text stringlengths 54 60.6k |
|---|
<commit_before>//
// IMUOSCHandlers.cpp
// IMU2OSC
//
// Created by Jamie Bullock on 18/05/2012.
// Copyright (c) 2012 Jamie Bullock. All rights reserved.
//
#include <iostream>
#include "osc/OscOutboundPacketStream.h"
#include "ip/UdpSocket.h"
//#include "IpEndpointName.h"
#define OUTPUT_BUFFER_SIZE 1024
#def... |
<commit_before>//=======================================================================
// Copyright (c) 2014 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>#include "cqts_engine.h"
#include <QFile>
#include <QDir>
#include <QStringList>
#include <QTextStream>
#include <QDebug>
CQTs_engine::CQTs_engine()
{
}
/*****class handler*****/
/*ClassFile structure:
*Class Name
*lv max
*datanumber
*endofile
*/
CQTs_Class::CQTs_Class(QString classLink){
Q... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_FUNCTIONAL_BASE_HH
#define DUNE_GDT_FUNCTIONAL_BASE_HH
#include <dune/c... |
<commit_before>/**
* @file PathTest.cpp
* @brief Path class tester.
* @author zer0
* @date 2016-04-07
*/
#include <gtest/gtest.h>
#include <libtbag/filesystem/Path.hpp>
using namespace libtbag;
using namespace libtbag::filesystem;
TEST(PathStaticTest, StyleChecker)
{
#if defined(WIN32) || defined(_WIN32)
... |
<commit_before>
// CopyBlocks.cpp
// Implements the test for cChunkData::CopyBlockTypes() range copying
#include "Globals.h"
#include "ChunkData.h"
int main(int argc, char ** argv)
{
// Set up a cChunkData with known contents - all blocks 0x01, all metas 0x02:
cChunkData Data;
cChunkDef::BlockTypes Bloc... |
<commit_before>/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#include "SkHalf.h"
#include "SkRasterPipeline.h"
DEF_TEST(SkRasterPipeline, r) {
// Build and run a simple pipeline to exercise SkRaster... |
<commit_before>/* network.cpp
*
* Kubo Ryosuke
*/
#include "network/CsaClient.h"
#include <fstream>
using namespace sunfish;
int network() {
// logger settings
std::ofstream fout("network.log", std::ios::out);
if (fout) {
Loggers::send.addStream(fout);
Loggers::receive.addStream(fout);
}
Loggers::error... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include "dirtab.h"
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include "util.h"
namespace catalog {
Dirtab::Dirtab() : valid_(true) {}
bool Dirtab::Open(const std::string &dirtab_path) {
if (!FileExists(dirtab_path)) {
LogC... |
<commit_before>/*
* CvFindChessboardCorners_Processor.cpp
*
* Created on: 16-10-2010
* Author: mateusz
*/
#include "CvFindChessboardCorners_Processor.hpp"
namespace Processors {
namespace CvFindChessboardCorners {
using namespace std;
using namespace boost;
using namespace cv;
using namespace Types::Obje... |
<commit_before>/*
WiFiClient.cpp - TCP/IP client for esp8266, mostly compatible
with Arduino WiFi shield library
Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it a... |
<commit_before>// Copyright (c) 2009 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 "gfx/blit.h"
#include "base/logging.h"
#include "build/build_config.h"
#include "gfx/point.h"
#include "gfx/rect.h"
#include ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the Qt Compositor.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef STORED_VALUE_H
#define STORED_VALUE_H 1
#include "locks.hh"
extern "C" {
extern rel_time_t (*ep_current_time)();
}
// Forward declaration for StoredValue
class HashTable;
class StoredValue {
public:
Stored... |
<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 2011 Konrad Enzensberger <[email protected]>
// Copyright 2011 ... |
<commit_before>//==============================================================================
// Single cell simulation view
//==============================================================================
#include "cellmlfile.h"
#include "cellmlfilemanager.h"
#include "cellmlfileruntime.h"
#include "singlece... |
<commit_before>/*
Copyright (c) 2017-2019 Xavier Leclercq and the wxCharts contributors.
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 limi... |
<commit_before>/* Copyright 2014-present Facebook, Inc.
* Licensed under the Apache License, Version 2.0 */
#include "watchman.h"
#ifdef HAVE_UCRED_H
#include <ucred.h>
#endif
#ifdef HAVE_SYS_UCRED_H
#include <sys/ucred.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#include <folly/SocketAddress.h>... |
<commit_before>/***********************************************************************
filename: SampleData.cpp
created: 4/6/2012
author: Lukas E Meindl
*************************************************************************/
/***************************************************************************
* C... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include "document_iterator.h"
#include <vespa/document/select/gid_filter.h>
#include <vespa/vespalib/objects/nbostream.h>
#include <vespa/persistence/spi/do... |
<commit_before>#include <algorithm>
#include <ctime>
#include "caffe2/core/net.h"
#include "caffe2/core/operator.h"
#include "caffe2/core/workspace.h"
#include "caffe2/proto/caffe2.pb.h"
namespace caffe2 {
// TODO(Yangqing): move all the checks to a less fatal check mechanism.
OperatorBase::OperatorBase(const Operat... |
<commit_before>//
// NuoMaterial.cpp
// ModelViewer
//
// Created by middleware on 8/28/16.
// Copyright © 2016 middleware. All rights reserved.
//
#include "NuoMaterial.h"
NuoMaterial::NuoMaterial() : id(-1)
{
}
NuoMaterial::NuoMaterial(const tinyobj::material_t& material) :
id(0),
ambient_texname(... |
<commit_before>///
/// @file int128.cpp
/// @brief Test int128_t and uint128_t types.
///
/// Copyright (C) 2018 Kim Walisch, <[email protected]>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <int128_t.hpp>
#include <stdint.h>
#include... |
<commit_before>#include "catch.hpp"
#include "etl/fast_matrix.hpp"
//{{{ Init tests
TEST_CASE( "fast_matrix/init_1", "fast_matrix::fast_matrix(T)" ) {
etl::fast_matrix<double, 2, 2> test_matrix(3.3);
REQUIRE(test_matrix.size() == 4);
for(std::size_t i = 0; i < test_matrix.size(); ++i){
REQUIRE(... |
<commit_before>#include "../include/process.h"
#include "../include/sandbox.h"
#include <gtest/gtest.h>
#include <sys/syscall.h>
TEST (Sandbox, run) {
Sandbox sandbox;
constexpr size_t MEM_LIMIT = 16 << 20; // 16 MB (in bytes)
constexpr timespec REAL_TIME_LIMIT = {0, (int)0.5e9}; // 0.5 s
constexpr timespec CPU_... |
<commit_before>#include "test.h"
int main() {
rangetree<u16, const char> tree;
tree.add(1, 1, "one");
tree.add(1, 2, "two");
tree.add(1, 3, "three");
tree.finalize();
u32 res = tree.count(0, 1, 0, 1);
printf("The number of points in x (0, 1) and y (0, 1) is %u\n", res);
if (res != 1)
fail("Count wrong, g... |
<commit_before>include "test.haha"
<commit_msg>Updates<commit_after><|endoftext|> |
<commit_before>/*
* A little test program for md5 code which does a md5 on all the
* bytes sent to stdin.
*/
#include <string.h>
#include <cstdlib>
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include "../src/md5.h"
/*
* Print a signature
*/
static void print_si... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestPLYReaderTextureUV.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details... |
<commit_before>// Copyright 2019 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree/compiler/Translation/IREEVM.h"
#include "iree/compiler/Bindings/Na... |
<commit_before>
#include "tablemodelanovamodel.h"
#include <QMimeData>
#include <QDebug>
#include "qutils.h"
#include <boost/foreach.hpp>
#include "options/optionboolean.h"
using namespace std;
TableModelAnovaModel::TableModelAnovaModel(QObject *parent)
: TableModel(parent)
{
_boundTo = NULL;
_terms.setSortPar... |
<commit_before>/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkImageDecoder.h"
#include "SkBitmap.h"
#include "SkImagePriv.h"
#include "SkPixelRef.h"
#include "SkStream.h"
#include "SkTempla... |
<commit_before>#include "../include/oasis.h"
#ifdef HAVE_PARQUET
#include "../include/oasisparquet.h"
#endif
#include <cstring>
#include <map>
#include <vector>
namespace katparquet {
template<typename tableNameT>
void DoKat(const std::vector<std::string> &inFiles,
parquet::StreamWriter &osOut, std::vecto... |
<commit_before>/////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2008 Larry Gritz
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without r... |
<commit_before><commit_msg>Fix #1039 (#1040)<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2009-2020 The VOTCA Development Team
* (http://www.votca.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>/*
The MIT License (MIT)
Copyright (c) 2015 Marius Kaufmann, Tamara Frieß, Jannis Hoppe, Christian Hack
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, includi... |
<commit_before>/*
* Copyright 2018 Google 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 applicable la... |
<commit_before>#include "ptreferential.h"
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/qi_lit.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
#include <iostream>
#include "indexes2.h"
#include "where.h"
#include "reflexion.h"
#include "proto/type.pb.h"
#include <google/protobuf/descrip... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 *
* (c) 2006-2011 INRIA, USTL, UJF, CNRS, MGH *
* ... |
<commit_before>// LICENSE/*{{{*/
/*
sxc - Simple Xmpp Client
Copyright (C) 2008 Dennis Felsing, Andreas Waidler
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 3 of the Licen... |
<commit_before>// Copyright Joshua Boyce 2010-2012.
// 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)
// This file is part of HadesMem.
// <http://www.raptorfactor.com/> <[email protected]>
#inc... |
<commit_before>// Compare numerically calculated C-V curves with analytic solution
using namespace GeFiCa;
const int n=2001;
// get capacitance based on C=epsilon*A/d
double GetCfromDepletionDepth(double voltage, double thickness)
{
// calculate fields
Planar1D detector(n);
detector.Thickness=thickness;
det... |
<commit_before>/**************************************************************************
*
* Copyright 2011-2012 Jose Fonseca
* 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
*... |
<commit_before>//
// Copyright (c) Microsoft. All rights reserved.
// Copyright (c) Geoff Norton. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*++
Module Name:
seh-unwind.cpp
Abstract:
Implementation of exception API functi... |
<commit_before>//
// Copyright 2013 Jeff Bush
//
// 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 ... |
<commit_before>// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-member-init %t -- -config="{CheckOptions: [{key: "cppcoreguidelines-pro-type-member-init.UseAssignment", value: 1}]}" -- -std=c++11
struct T {
int i;
};
struct S {
bool b;
// CHECK-FIXES: bool b = false;
char c;
// CHECK-FIXES: char c = ... |
<commit_before>// compilation on OSX
// $ g++ -std=c++11 main.cpp -o main
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <cmath>
#include <future>
typedef std::string GameTitle;
typedef int GameTime;
typedef std::vector<GameTime> GameTimes;
typedef std::map<GameTitle, GameTimes> Game... |
<commit_before>/******************************************************************************
Copyright 2015 Tatsuya Yatagawa (tatsy)
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 restr... |
<commit_before>//------------------------------------------------------------------------------
// cpp-compile-test.cc
// Just check whether (most of) the sokol headers also comppile as C++.
//------------------------------------------------------------------------------
#define SOKOL_IMPL
#define SOKOL_WIN32_FORCE_M... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef DELETER_HH_
#define DELETER_HH_
struct deleter {
std::unique_ptr<deleter> next;
deleter(std::unique_ptr<deleter> next) : next(std::move(next)) {}
virtual ~deleter() {};
};
struct internal_deleter final : deleter {
// FIXME: ma... |
<commit_before>/*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABI... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2011 Emmanuel Benazera, [email protected]
*
* 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 ... |
<commit_before>#include "dreal/dreal_main.h"
#include <csignal>
#include <cstdlib>
#include <iostream>
#include "dreal/dr/run.h"
#include "dreal/smt2/run.h"
#include "dreal/solver/context.h"
#include "dreal/util/exception.h"
#include "dreal/util/filesystem.h"
#include "dreal/util/logging.h"
namespace dreal {
using ... |
<commit_before>/*
* Copyright 2015 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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
* (at your option... |
<commit_before>#include <LuaContext.hpp>
#include <gtest/gtest.h>
TEST(FunctionsWrite, NativeFunctions) {
struct Foo {
static int increment(int x)
{
return x + 1;
}
};
LuaContext context;
context.writeVariable("f", &Foo::increment);
context.writeFunction<int (int)>("g", &Foo::increment);
context.writ... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include <vespa/log/log.h>
LOG_SETUP(".proton.server.searchabledocsubdb");
#include "searchabledocsubdb.h"
#include <vespa/searchcore/proton/attribute/attri... |
<commit_before>// Copyright 2008, 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, this list ... |
<commit_before>/*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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 ... |
<commit_before>#pragma once
#include "SuperComponent.hpp"
namespace Video {
namespace Geometry {
class Geometry3D;
}
}
namespace Component {
/// %Component providing geometry to an entity.
class Mesh : public SuperComponent {
public:
/// Create new mesh.
Mesh()... |
<commit_before>//============================================================================
// Name : Monte_carlo.cpp
// Author : Rafael
// Version :
// Copyright : MIT
// Description : Hello World in C++, Ansi-style
// referencias:
// 1 - http://ta.twi.tudelft.nl/mf/users/oosterle/oosterlee/lec8-hi... |
<commit_before>#include "cmm_socket_receiver.h"
#include "cmm_socket_sender.h"
#include <pthread.h>
#include "debug.h"
#include "timeops.h"
#include <vector>
using std::vector;
class ReadyIROB {
public:
bool operator()(PendingIROB *pi) {
assert(pi);
PendingReceiverIROB *pirob = static_cast<Pendin... |
<commit_before>#pragma once
#include <eosio/chain/wasm_interface.hpp>
#include <eosio/chain/webassembly/wavm.hpp>
#include <eosio/chain/webassembly/binaryen.hpp>
#include <eosio/chain/webassembly/runtime_interface.hpp>
#include <eosio/chain/wasm_eosio_injection.hpp>
#include "IR/Module.h"
#include "Runtime/Intrinsics... |
<commit_before>#include <iostream>
#include "occa.hpp"
int main(int argc, char **argv){
int entries = 5;
//---[ Init CUDA ]------------------
int cuDeviceID;
void *cu_a, *cu_b, *cu_ab;
cudaMalloc(&cu_a , entries*sizeof(float));
cudaMalloc(&cu_b , entries*sizeof(float));
cudaMalloc(&cu_ab, entries*size... |
<commit_before>// Copyright 2015 Patrick Putnam
//
// 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 a... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include <Ogre.h>
#include <OgreTextAreaOverlayElement.h>
#include "EC_OgreConsoleOverlay.h"
#include "OgreRenderingModule.h"
#include "Renderer.h"
namespace OgreRenderer
{
EC_Ogre... |
<commit_before>#include <OpenSim/OpenSim.h>
namespace OpenSim {
class ComponentContainer : public ModelComponent {
OpenSim_DECLARE_CONCRETE_OBJECT(ComponentContainer, Component);
public:
OpenSim_DECLARE_LIST_PROPERTY(components, Component,
"List of serialized internal compo... |
<commit_before><commit_msg>Storytelling: Retire notification as we have customized UI now.<commit_after><|endoftext|> |
<commit_before>
#include "pch.h"
#include "slackapp.h"
#include "utils.h"
using namespace utility; // Common utilities like string conversions
using namespace web; // Common features like URIs.
using namespace web::http; // Common HTTP functionality
using namespace web:... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Coindex[1]right (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even t... |
<commit_before>/*=========================================================================
Program: Cerebra
Module: cbMRIRegistration.cxx
Copyright (c) 2011-2013 Qian Lu, David Adair
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provid... |
<commit_before>/*
Copyright (c) 2013, Tolga HOŞGÖR
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 conditi... |
<commit_before>//
// C++ Implementation: PresetLoader
//
// Description:
//
//
// Author: Carmelo Piccione <[email protected]>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "PresetLoader.hpp"
#include "Preset.hpp"
#include <iostream>
#include <sstream>
extern "C"
... |
<commit_before>/*
Filename: JSFS.cpp
Purpose: Javascript bindings for Engine::Filesystem
Part of Engine2D
Copyright (C) 2014 Vbitz
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 Licens... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved
*/
#ifndef _Stroika_Foundation_DataExchangeFormat_ObjectVariantMapper_inl_
#define _Stroika_Foundation_DataExchangeFormat_ObjectVariantMapper_inl_ 1
/*
*************************************************************************... |
<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>/*
Copyright (c) 2006 Volker Krause <[email protected]>
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
... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/mrs01.... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.C $ ... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved
*/
#include "../../../StroikaPreComp.h"
#include "Reader.h"
//// SEEE http://www.zlib.net/zlib_how.html
/// THIS SHOWS PRETTY SIMPLE EXAMPLE OF HOW TO DO COMPRESS/DECOMPRESS AND WE CAN USE THAT to amke new stream object... |
<commit_before>//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <Siv3D/... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// //
// AliFemtoCutMonitorParticleYPtWithWeights - the cut monitor for particles to study //
// the difference between reconstructed and true mom... |
<commit_before>
#include "allocore/ui/al_PresetMapper.hpp"
using namespace al;
void PresetMapper::readEntries(std::string path)
{
Dir presetDir(path);
while (presetDir.read()) {
FileInfo entry = presetDir.entry();
if (entry.type() == FileInfo::DIR) {
readEntries(entry.name());
} else if (entry.type() == Fi... |
<commit_before><commit_msg>imgui.cc: ocd fix of NULL -> nullptr<commit_after><|endoftext|> |
<commit_before><commit_msg>Fixed usage message.<commit_after><|endoftext|> |
<commit_before><commit_msg>GoldDigger Random Magic 0.7<commit_after><|endoftext|> |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "foreachfeature.h"
#include "valuefeature.h"
#include "utils.h"
#include <vespa/searchlib/fef/properties.h>
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/vespalib... |
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved.
#include "serializer/log/extent_manager.hpp"
#include <queue>
#include "arch/arch.hpp"
#include "logger.hpp"
#include "perfmon/perfmon.hpp"
#include "serializer/log/log_serializer.hpp"
struct extent_info_t {
public:
enum state_t {
stat... |
<commit_before>/*
*
* Copyright 2018 Asylo 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before><commit_msg>BZOJ 4712<commit_after><|endoftext|> |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Version: MPL 1.1 / GPLv3+ / LGPLv3+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License or as spec... |
<commit_before>#include "Commander.h"
#include <iostream>
#include <string>
using namespace std;
Commander::Commander(CmdContext *v_context)
: context(v_context)
{
if (this->context == NULL) throw CmdException("Uninitialized commander context!");
addCommand("q", new QuitCommand());
}
void Commander::cle... |
<commit_before>// converts scf names into mmap file
//
#include "lvvlib/mmap.h"
// LIBC
#include <fcntl.h>
#include <time.h>
// THRIFT
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/protocol/TDenseProtocol.h>
#include <thrift/protocol/TJSONProtocol.h>
#include <thrift/transport/TTransportUtils.h>
#inc... |
<commit_before>/******************************************************************************\
* ___ __ *
* /\_ \ __/\ \ *
* \//\ \ /\_\ \ \____ ___ _____ _____ __ ... |
<commit_before>/*
* Copyright (c) 2003 The Regents of The University of Michigan
* 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 copyri... |
<commit_before>/*
* Copyright (C) 2018 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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
* (at your op... |
<commit_before>
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <boost/random/normal_distribution.hpp>
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/gamma_distribution.hpp>
#include <boost/random/variate_genera... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.