text stringlengths 54 60.6k |
|---|
<commit_before>#include "stdafx.h"
#include "Misc.h"
#include "Common.h"
#include "Core/FileManager.h"
#include <iostream>
#ifdef _MSC_VER
#include <Windows.h>
#endif
std::vector<Logger::QueueEntry> Logger::queue;
std::vector<std::wstring> Logger::errors;
bool Logger::error = false;
bool Logger::fatalError = false;
b... |
<commit_before>#include <iostream>
#include <iomanip>
#include <string>
#include <openssl/sha.h>
using namespace std;
#define HASHSIZE 32
string getCutHex(unsigned char hash[HASHSIZE]) {
string base64Index = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#";
string output = "";
for (int i = 0; i ... |
<commit_before>#include "Include.h"
#include "Node.h"
using namespace std;
Node::Node(int init){
//Creation
value = init;
visited = false;
x_pos = 0;
y_pos = 0;
}
Node::~Node(){
//Destruction
}
// 0 clean, 1 dirty, 2 blocked, 3 unknown/yet to visit, 4 node for Ai2
int Node::getValue(){
return value;
}
int ... |
<commit_before>// ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<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 <vector>
#include <unordered_set>
#include <sys/mman.h>
#include "it.x64.asm.h"
static const struct rejit_threadset_t *NFA = NULL; // used for offset calculation
static const struct rejit_thread_t *THREAD = NULL;
struct re2jit::native
{
void init() {}
void * entry;
void * ... |
<commit_before>// Main.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "arduino.h"
#include "OneNoteHelper.h"
#include "MinSerLib.h"
#include <time.h>
int _tmain(int argc, _TCHAR* argv[])
{
return RunArduinoSketch();
}
const int buttonPin = 2;
int buttonState = 0... |
<commit_before><commit_msg>TriggerPaintEvent too then<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: accessiblecontexthelper.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: fs $ $Date: 2002-04-26 14:24:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the ... |
<commit_before>///
/// @file PhiTiny.hpp
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef PHITINY_HPP
#define PHITINY_HPP
#include <int128.hpp>
#include <stdint.h>
#include <casser... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: Renderer.hh
Language: C++
Date: $Date$
Version: $Revision$
This file is part of the Visualization Toolkit. No part of this file or its
contents may be copied, reprod... |
<commit_before>//=======================================================================
// Copyright (c) 2013-2017 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Bertrand Martel
*
* 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 th... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "statuswebserver.h"
#include <vespa/storageframework/storageframework.h>
#include <vespa/storageapi/message/persistence.h>
#include <vespa/fastlib/net/url.h>
#include <vespa/ve... |
<commit_before>//============================================================================
// MCKL/include/mckl/random/threefry_generic.hpp
//----------------------------------------------------------------------------
// MCKL: Monte Carlo Kernel Library
//------------------------------------------------------------... |
<commit_before>
#include "../../Flare.h"
#include "FlarePlanetaryBox.h"
void SFlarePlanetaryBox::Construct(const SFlarePlanetaryBox::FArguments& InArgs)
{
Radius = 200;
PlanetImage = NULL;
ClearChildren();
// Add slots
const int32 NumSlots = InArgs.Slots.Num();
for (int32 SlotIndex = 0; SlotIndex < NumSlots; +... |
<commit_before>#include "fenwick/fenwick_tree.hpp"
#include "fenwick/typef.hpp"
#include "fenwick/typel.hpp"
#include "fenwick/bytef.hpp"
#include "fenwick/bytel.hpp"
#include "fenwick/bitf.hpp"
#include "fenwick/bitl.hpp"
#include "fenwick/hybrid.hpp"
<commit_msg>Added FixedF and FixedL<commit_after>#include "fenw... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
* / /_// /\ / /_// / ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/*
CS 3306
Chris Chan
Last updated 9/30/14
Write a program using C++ to find the minimal spanning tree of a graph. The graph is
represented by an adjacency matrix.
*/
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
bool isInMST(int, int[], int); //first param is what wer'... |
<commit_before>#include "stdafx.h"
#include "AlembicModel.h"
#include "AlembicXform.h"
#include "sceneGraph.h"
using namespace XSI;
using namespace MATH;
AlembicModel::AlembicModel(SceneNodePtr eNode, AlembicWriteJob * in_Job, Abc::OObject oParent)
: AlembicObject(eNode, in_Job, oParent)
{
AbcG::OXform xform(GetM... |
<commit_before>#include "SoundPlayer.h"
#include <Windows.h>
#include <dshow.h>
#pragma comment(lib, "Strmiids.lib")
SoundPlayer::SoundPlayer(std::wstring filePath) {
HRESULT hr;
hr = CoCreateInstance(
CLSID_FilterGraph,
NULL,
CLSCTX_INPROC_SERVER,
IID_IGraphBuilder,
... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>/**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.
*/
#include "../ui_module.h"
namespace ti {
void menu_callback(gpointer data);
GtkMenuItemImpl::GtkM... |
<commit_before> // Time: O(c * n + n), n is length of string, c is count of "++"
// Space: O(1), no extra space excluding that result requires at most O(n^2) space
class Solution {
public:
vector<string> generatePossibleNextMoves(string s) {
vector<string> res;
int n = s.length();
... |
<commit_before>#include <iostream>
#include <arpa/inet.h>
#include "radix_tree.hpp"
class rtentry {
public:
in_addr_t addr;
int prefix_len;
rtentry() : addr(0), prefix_len(0) { }
in_addr_t operator[] (int n) const
{
in_addr_t bit;
if (a... |
<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: BConnection.cxx,v $
* $Revision:... |
<commit_before>// playHistoryTracker.cpp : Defines the entry point for the DLL application.
//
#include "bzfsAPI.h"
#include <string>
#include <map>
BZ_GET_PLUGIN_VERSION
// event handler callback
class PlayHistoryTracker : public bz_EventHandler
{
public:
PlayHistoryTracker();
virtual ~PlayHistoryTracker();
v... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: HStorageMap.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2006-06-20 01:30:16 $
*
* The Contents of this file are m... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ConnectionLog.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: ihi $ $Date: 2007-11-21 15:07:56 $
*
* The Contents of this file are... |
<commit_before>//
// Created by Ray Jenkins on 4/20/15.
//
#include "ConservatorFramework.h"
#include "SetDataBuilderImpl.h"
#include "GetChildrenBuilderImpl.h"
#include "GetACLBuilderImpl.h"
#include "SetACLBuilderImpl.h"
void watcher(zhandle_t *zzh, int type, int state, const char *path,
void *watcherC... |
<commit_before>//! @Alan
//!
//! Exercise 10.34:
//! Use reverse_iterators to print a vector in reverse order.
//!
//! Exercise 10.35:
//! Now print the elements in reverse order using ordinary iterators.
//!
//! Exercise 10.36:
//! Use find to find the last element in a list of ints with value 0.
//!
//! Exercise 10.3... |
<commit_before>/*
* Copyright (C) 2009 Brent Fulgham. All rights reserved.
* Copyright (C) 2009 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 s... |
<commit_before><commit_msg>cyber: fix compile warning<commit_after><|endoftext|> |
<commit_before>#include "stdafx.h"
#include "messaging.h"
#include "utilities.h"
#pragma warning (disable: 4091)
#include <dbghelp.h>
LONG CALLBACK unhandled_handler(::EXCEPTION_POINTERS* e)
{
auto hDbgHelp = ::LoadLibraryA("dbghelp");
if (hDbgHelp == nullptr)
return EXCEPTION_CONTINUE_SEARCH;
auto pMiniDumpWrit... |
<commit_before>
#include "mitkManualSegmentationToSurfaceFilter.h"
#include <fstream>
int mitkManualSegmentationToSurfaceFilterTest(int argc, char* argv[])
{
mitk::ManualSegmentationToSurfaceFilter::Pointer filter;
std::cout << "Testing mitk::ManualSegmentationToSurfaceFilter::New(): ";
filter = mitk::ManualSeg... |
<commit_before>/*
* Copyright 2019-2020 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/... |
<commit_before>#include "Halide.h"
#include <cstdio>
#include <algorithm>
#include "benchmark.h"
using namespace Halide;
// 32-bit windows defines powf as a macro, which won't work for us.
#ifdef _WIN32
extern "C" __declspec(dllexport) float pow_ref(float x, float y) {
return pow(x, y);
}
#else
extern "C" float p... |
<commit_before>/*
* Copyright 2022-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include <utility>
#include <seastar/core/future.hh>
#include "utils/result.hh"
namespace utils {
// Converts a result into either a ready or an exceptional future.
// Supports only results wh... |
<commit_before>/*
* AudioInputAccessor.cpp
*
* Created on: Mar 13, 2014
* Author: Jimin
*/
#include "AudioInputAccessor.h"
static const float kShortMax = (float)(SHRT_MAX);
void recorderCallback(SLAndroidSimpleBufferQueueItf bq, void *context)
{
((AudioInputAccessor *)context)->newInputBuffer();
};
A... |
<commit_before>/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016-2018 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... |
<commit_before><commit_msg>Add a reference I forgot to add. I didn't mean to copy this string. Review URL: http://codereview.chromium.org/14171<commit_after><|endoftext|> |
<commit_before>/**
* Copyright 2012 FAU (Friedrich Alexander University of Erlangen-Nuremberg)
*
* 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/LICENS... |
<commit_before>// puss_module_linenoise_ng.c
#include "puss_plugin.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include <stdlib.h>
#include <string.h>
#include "linenoise.h"
#define PUSS_LINENOISE_NG_LIB_NAME "[PussLinenoiseNGLib]"
static lua_State* linenoiseCompletionState = NULL;
s... |
<commit_before>/* vim: set ts=4 sw=4 tw=79 et :*/
/* 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/. */
#include "TestHarness.h"
#include "base/io/Path.h"
int main(in... |
<commit_before><commit_msg>Launcher: support multi-URLs in cmd line whether using --cdata or not<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2015, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Jeongseok Lee <jslee02@gmail.com>
*
* Geoorgia Tech Graphics Lab and Humanoid Robotics Lab
*
* Directed by Prof. C. Karen Liu and Prof. Mike Stilman
* <karenliu@cc.gatech.edu> <mstilman@cc.gatech.edu... |
<commit_before><commit_msg>Restore disable-sync flag.<commit_after><|endoftext|> |
<commit_before><commit_msg>Linux: switch red and blue channels<commit_after><|endoftext|> |
<commit_before>#ifdef LINUX_PLATFORM
#include "LinuxEventLoop.hpp"
#include "ActivityHandler.hpp"
#include "Context.hpp"
#include "InputService.hpp"
#include "TimeService.hpp"
#include "Global.hpp"
#include "Profiler.hpp"
#include "Render.hpp"
#include "Log.hpp"
using namespace std;
namespace MPACK
{
namespace Cor... |
<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 "SkCanvas.h"
#include "SkDocument.h"
#include "SkFontMgr.h"
#include "SkGradientShader.h"
#include "SkPaint.h"
#include "SkStream.h"
#include "SkString... |
<commit_before>#include <math.h>
#include <tgmath.h>
#define ISINT(x) !(fabs((x) - std::nearbyint(x)) > 1e-7)
// double lfastchoose(double n, double k)
// {
// double tmp = log(boost::math::beta(n - k + 1., k + 1.));
// return -log(n + 1.) - tmp;
// }
/* mathematically the same:
less stable typically, but useful ... |
<commit_before>/**
* A program performing detection of obstacles in the given file feed
* and visualizing their approximations.
*/
#include <iostream>
#include <pcl/io/openni2_grabber.h>
#include <pcl/io/pcd_grabber.h>
#include "lepp2/BaseObstacleDetector.hpp"
#include "lepp2/GrabberVideoSource.hpp"
#include "lepp... |
<commit_before>#include "machine.h"
void Machine::set_id(int i){
id = i;
}
void Machine::set_start(int i){
stopt = i;
}
void Machine::set_stop(int i){
startt = i;
}
int Machine::get_id(){
return id;
}
int Machine::get_srt(){
return startt;
}
int Machine::get_sop(){
return stopt;
}
bool Machine::add(int tas... |
<commit_before>/*
* Source MUD
* Copyright (C) 2000-2005 Sean Middleditch
* See the file COPYING for license details
* http://www.sourcemud.org
*/
#include "common.h"
#include "common/mail.h"
#include "common/log.h"
#include "mud/settings.h"
#ifdef HAVE_SENDMAIL
void MailMessage::append(const std::string& data... |
<commit_before>/*
* Source MUD
* Copyright (C) 2000-2005 Sean Middleditch
* See the file COPYING for license details
* http://www.sourcemud.org
*/
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include... |
<commit_before>#include "options.h"
Options* Options::instance()
{
static Options* _instance = 0;
if (!_instance)
_instance = new Options;
return _instance;
}
Options::Options()
: m_errorLimit(20)
, m_readFromStdin(false)
{
}
Options::~Options()
{
}
void Options::parseCommandLine()
{
... |
<commit_before>// Copyright 2018, OpenCensus 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>//
// Eltwise.cpp
// CoreML
//
// Created by Srikrishna Sridhar on 11/13/16.
// Copyright © 2016 Apple Inc. All rights reserved.
//
#include "CaffeConverter.hpp"
#include "Utils-inl.hpp"
#include <stdio.h>
#include <string>
#include <sstream>
#include <iostream>
using namespace CoreML;
void CoreML... |
<commit_before>/****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full r... |
<commit_before>/*
Copyright 2013 SINTEF ICT, Applied Mathematics.
*/
#pragma once
#include <opm/autodiff/AutoDiffHelpers.hpp>
#include <opm/core/utility/parameters/ParameterGroup.hpp>
#include <opm/core/grid/GridManager.hpp>
#include <opm/core/linalg/LinearSolverFactory.hpp>
#include <vector>
#include <string>
#in... |
<commit_before>/*
* Copyright (c) 2003-2009, John Wiegley. 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>//===-- InstrProfiling.cpp - Frontend instrumentation based profiling -----===//
//
// 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: xmlencryption_nssimpl.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 17:35:34 $
*
* The Contents of this f... |
<commit_before>#ifndef TATUM_COMMON_ANALYSIS_VISITOR_HPP
#define TATUM_COMMON_ANALYSIS_VISITOR_HPP
#include "tatum_error.hpp"
#include "TimingGraph.hpp"
#include "TimingConstraints.hpp"
#include "TimingTags.hpp"
namespace tatum { namespace detail {
/** \file
*
* Common analysis functionality for both setup and hold... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pe_iface.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-07 19:01:48 $
*
* The Contents of this file are made ... |
<commit_before>#include <ACGL/Utils/Log.hh>
#include <ACGL/OpenGL/GL.hh> // this has to be included before glfw.h !
#include <ACGL/OpenGL/Debug.hh>
#include <ACGL/HardwareSupport/SimpleRiftController.hh>
#include <ACGL/OpenGL/Objects.hh>
#include <GLFW/glfw3.h>
#include "world/world.hh"
using namespace std;
using name... |
<commit_before>/*************************************************************************
*
* $RCSfile: simplereferenceobject.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: sb $ $Date: 2001-06-05 15:20:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the fo... |
<commit_before>#pragma once
/*
* Covariant Mozart Utility Library: Any
*
* 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 License, or
* any later version.
*
* This program... |
<commit_before>#ifndef RUBY_ALLOCATOR_HH
#define RUBY_ALLOCATOR_HH
#include <ruby/defines.h>
template <class T> class ruby_allocator
{
public:
typedef T value_type;
typedef value_type* pointer;
typedef const value_type* const_pointer;
typedef value_type& reference;
typedef const ... |
<commit_before>/*
*
* Copyright 2017, 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>/******************************************************************************
* 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>/* Copyright (C) 2004 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 useful,
... |
<commit_before>//===-- OperatingSystemPython.cpp --------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------... |
<commit_before>//
// Main.cpp
//
#include "pch.h"
#include "Game.h"
#include <shellapi.h>
using namespace DirectX;
namespace
{
std::unique_ptr<Game> g_game;
#ifdef WM_DEVICECHANGE
HDEVNOTIFY g_hNewAudio;
#endif
};
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
void ParseCommandLine(_In_ LPWSTR lpCm... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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 License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>#include <itkAffineTransform.h>
#include <itkTransformFileWriter.h>
#include <itkImageFileReader.h>
#include <string>
#include <itkPoint.h>
#include <itkVector.h>
#include "transforms.h"
#include <sstream>
void GetImageCenter( itk::Image<unsigned short, 3>::Pointer image,
itk::Image... |
<commit_before>/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* All rights reserved. *
* *
... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved
*/
#include "../../../StroikaPreComp.h"
#include "../../../../Foundation/Characters/Format.h"
#include "../../../../Foundation/Characters/String_Constant.h"
#include "../../../../Foundation/Containers/Sequence.h"
#include "../..... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "Stroika/Frameworks/StroikaPreComp.h"
#include <iostream>
#include "Stroika/Foundation/Characters/FloatConversion.h"
#include "Stroika/Foundation/Characters/ToString.h"
#include "Stroika/Foundation/DataExchange/Vari... |
<commit_before><commit_msg>Don't crash when there is no mainGuiFactory.<commit_after><|endoftext|> |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/mrs00.... |
<commit_before>#include <cstring>
#include <cassert>
#include <string>
#include <atomic>
#include <memory>
#include <set>
#include <boost/asio.hpp>
#include <mutex>
#include "I2PService.h"
#include "Destination.h"
#include "HTTPProxy.h"
#include "util.h"
#include "Identity.h"
#include "Streaming.h"
#include "Destinati... |
<commit_before>#include "HashTable.h"
HashTable::HashTable()
:method{LINEAR} {
if (method == PERFECT)
perfectTable = std::vector<std::vector<int>>(100);
else
openTable = std::vector<int>(100);
}
/* Param: METHOD m, int Size
* Desc: initializes hash table with size `size` and hashing algorithm `m`.
*/
Hash... |
<commit_before>#include "iteration/updater/source_updater_gauss_seidel.h"
#include <memory>
#include <deal.II/base/mpi.h>
#include <deal.II/lac/petsc_parallel_vector.h>
#include "test_helpers/test_helper_functions.h"
#include "test_helpers/gmock_wrapper.h"
#include "system/moments/spherical_harmonic_types.h"
#includ... |
<commit_before><commit_msg>handle abstract origin attributes when accessing die names<commit_after><|endoftext|> |
<commit_before>#include "ConfigServer.h"
static ConfigServer * confServer;
void ConfigServer::returnOK()
{
sendHeader("Connection", "close");
sendHeader("Access-Control-Allow-Origin", "*");
send(200, "text/plain", "Configuration updated. Rebooting in 10 seconds...\r\n");
delay (10000);
ESP.restart();
}... |
<commit_before>// Config file test for MUON spectormeter
// Remember to define the directory and option
// gAlice->SetConfigFunction("Config('$HOME','box');");
void Config(char directory[100]="", char option[6]="param")
{
//
// Config file for MUON test
//
//===================================================... |
<commit_before>// Config file test for MUON spectormeter
// Remember to define the directory and option
// gAlice->SetConfigFunction("Config('$HOME','box');");
void Config(char directory[100]="", char option[6]="param")
{
//
// Config file for MUON test
//
//===================================================... |
<commit_before>/*
* Copyright © 2011 Stéphane Raimbault <stephane.raimbault@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your optio... |
<commit_before>/*************************************************************************/
/* quick_open.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#include "EM_Classes.h"
Model::Model(const int &N_, const int &lagsY_,
const bool &sigma_, const bool &beta_,
const bool &meanCorrected):
N(N_), lagsY(lagsY_), sigma(sigma_), beta(beta_),
meanCorrected(meanCorrected){
Nm = std::pow(N, lagsY + 1);
}
Data::Data(const MatrixXd & y,const Ma... |
<commit_before>#include "NeuralNet.h"
//---------------------------------------------------------------Neuron---------------------------------------------------------------
Neuron::Neuron(unsigned numInputs)
{
for(unsigned i=0; i<numInputs+1; i++)
{
m_weights.push_back(randomValue());
}
}
dou... |
<commit_before>#include "OSGWidget.h"
#include <osg/Camera>
#include <osg/DisplaySettings>
#include <osg/Geode>
#include <osg/Material>
#include <osg/Shape>
#include <osg/ShapeDrawable>
#include <osgGA/EventQueue>
#include <osgGA/TrackballManipulator>
#include <osgUtil/IntersectionVisitor>
#include <osgUtil/Polytop... |
<commit_before>#include "FboQuickView.h"
#include <QScopedPointer>
#include <QQuickItem>
FboQuickView::FboQuickView( QOpenGLContext* context /*= 0*/ )
: FboQuickWindow( context ), m_qmlComponent( 0 ), m_rootItem( 0 )
{
}
FboQuickView::~FboQuickView()
{
}
void FboQuickView::setSource( const QUrl& source )
{
... |
<commit_before>#include <SFML/Graphics.hpp>
#include <iostream>
using namespace std;
int main() {
sf::RenderWindow drawingBoard(sf::VideoMode(1300, 1300), "Drawing Board"),
textWindow(sf::VideoMode(1100, 800), "Shell");
drawingBoard.setPosition(sf::Vector2i{1100, 0});
textWindow.setPosition(sf... |
<commit_before>/*
* Restructuring Shogun's statistical hypothesis testing framework.
* Copyright (C) 2016 Soumyajit De
*
* 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 o... |
<commit_before>#include <msgpack.hpp>
#include <msgpack/fbuffer.hpp>
#include <msgpack/fbuffer.h>
#include <msgpack/zbuffer.hpp>
#include <gtest/gtest.h>
#include <string.h>
TEST(buffer, sbuffer)
{
msgpack::sbuffer sbuf;
sbuf.write("a", 1);
sbuf.write("a", 1);
sbuf.write("a", 1);
EXPECT_EQ(3, sbuf.size());
EXPE... |
<commit_before><commit_msg>Added missing include<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.