text stringlengths 54 60.6k |
|---|
<commit_before>/* Copyright 2017 - 2022 R. Thomas
* Copyright 2017 - 2022 Quarkslab
*
* 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
... |
<commit_before>// Filename: texturePool.cxx
// Created by: drose (26Apr00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
/... |
<commit_before>/* This file is part of the KDE libraries
Copyright (C) 2008 Niko Sams <niko.sams\gmail.com>
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 ... |
<commit_before>/*
* Written by Nitin Kumar Maharana
* nitin.maharana@gmail.com
*/
//Delete a node from BST.
#include <iostream>
using namespace std;
struct node
{
node *left;
int val;
node *right;
};
node* insert(node *root, int val)
{
if(root == nullptr)
{
root = new node();
root->val = val;
root->l... |
<commit_before><commit_msg>merging<commit_after><|endoftext|> |
<commit_before>/*
* Copyright © 2012, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* yo... |
<commit_before>/*
* Copyright (c) 2012-2018 Daniele Bartolini and individual contributors.
* License: https://github.com/dbartolini/crown/blob/master/LICENSE
*/
#include "config.h"
#include "core/command_line.h"
#include "core/filesystem/path.h"
#include "device/device_options.h"
#include <stdlib.h>
namespace crow... |
<commit_before>//
// Copyright RIME Developers
// Distributed under the BSD License
//
// 2011-11-27 GONG Chen <chen.sst@gmail.com>
//
#include <boost/filesystem.hpp>
#include <boost/lexical_cast.hpp>
#include <utf8.h>
#include <rime/service.h>
#include <rime/dict/preset_vocabulary.h>
#include <rime/dict/text_db.h>
na... |
<commit_before>/** \brief Utility for deleting partial or entire MARC records based on an input list.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2015 Universitätsbiblothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it an... |
<commit_before>/*
* Copyright (c) 2007-2009 Digital Bazaar, Inc. All rights reserved.
*/
#define __STDC_CONSTANT_MACROS
#include "monarch/rt/System.h"
// include NULL
#include <stddef.h>
#ifdef WIN32
#include <windows.h>
#elif MACOS
#include <sys/param.h>
#include <sys/sysctl.h>
#else
#include <unistd.h>
#endif
u... |
<commit_before>// 最適化の有無で結果が変わるテストと
// デバッガから実行したかどうかで結果が変わるテスト
#include <cstdint>
#include <algorithm>
#include <atomic>
#include <future>
#include <iostream>
#include <string>
#include <thread>
#include <vector>
#include <gtest/gtest.h>
#include <windows.h>
#include "cFriendsCommon.h"
#include "cppFriend... |
<commit_before>// uzrect_Mollerup.C --- A 2D solution to Richard's equation in a rect. grid.
//
// Copyright 2006 Mikkel Mollerup and KVL.
//
// This file is part of Daisy.
//
// Daisy is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser Public License as published by
// the... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
<commit_before>#include "objparser.hpp"
#include "../src/meshoptimizer.hpp"
#include <algorithm>
#define NOMINMAX
#include <windows.h>
#include <GL/gl.h>
#pragma comment(lib, "opengl32.lib")
struct Options
{
bool wireframe;
enum { Mode_Default, Mode_Texture, Mode_Normals } mode;
};
struct Vertex... |
<commit_before>/* Copyright (c) 2008-2020 the MRtrix3 contributors.
*
* 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/.
*
* Covered Software is provided under this L... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
Copyright 2008 Brain Research Institute, Melbourne, Australia
Written by J-Donald Tournier, 27/06/08.
This file is part of MRtrix.
MRtrix 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 Sof... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Co... |
<commit_before>// Copyright (C) 2018 Egor Pugin <egor.pugin@gmail.com>
//
// 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 <primitives/executor.h>
#include ... |
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. 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
//
//... |
<commit_before>/*
Copyright (c) 2010 Ariya Hidayat <ariya.hidayat@gmail.com>
Copyright (c) 2009 Einar Lielmanis
Copyright (c) 2010 Nicolas Ferrero <ferrero.nicolas@gmail.com>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentati... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011,2012 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
/... |
<commit_before>/*
* Copyright (c) <2002-2006> <Jean-Philippe Barrette-LaPierre>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (cURLpp), to deal in the Software without restriction,
* including without l... |
<commit_before>/*
* Clever programming language
* Copyright (c) 2011 Clever Team
*
* 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 t... |
<commit_before>#include <fstream>
#include <sstream>
#include <vector>
#include <iostream>
#include <utility>
#include <optional>
#include "core/argparse.h"
#include "core/io.h"
#include "core/image.h"
#include "core/image_draw.h"
#include "core/pack.h"
using namespace euphoria::core;
struct ImageAndFile
{
Ima... |
<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>/**
Copyright (c) 2013, Philip Deegan.
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 conditions... |
<commit_before>// cvt.c - IEEE floating point formatting routines for FreeBSD
// from GNU libc-4.6.27
//
// Copyright (C) 2002 Michael Ringgaard. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met... |
<commit_before>#include "DiagPrinterFancyUnix.hpp"
using namespace Mond;
DiagPrinterFancy::DiagPrinterFancy(Source &source) : DiagPrinterFancyCore(source)
{
}
void DiagPrinterFancy::SetColor(Severity s)
{
}
void DiagPrinterFancy::ResetColor()
{
}<commit_msg>Added color to Unix fancy printer.<commit_after>#include "... |
<commit_before>// Copyright (c) 2010 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.
#if defined(OS_MACOSX)
#include <signal.h>
#include <unistd.h>
#endif // OS_MACOSX
#include "base/command_line.h"
#include "base/debu... |
<commit_before>#include "data-general.hpp"
using namespace std;
string tostring(int i) {
ostringstream tmp;
tmp << i;
return tmp.str();
}
int stringToInt(string const& str) {
istringstream i(str);
int x;
i >> x;
return x;
}
float stringToFloat(string const& str) {
istringstream i(str);
float x;
i >> x;
re... |
<commit_before>/*
* guide_algorithm_resistswitch.cpp
* PHD Guiding
*
* Created by Bret McKee
* Copyright (c) 2012 Bret McKee
* All rights reserved.
*
* Based upon work by Craig Stark.
* Copyright (c) 2006-2010 Craig Stark.
* All rights reserved.
*
* This source code is distributed under the followi... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>//
// PROJECT: Aspia Remote Desktop
// FILE: host/console_session_launcher.cc
// LICENSE: See top-level directory
// PROGRAMMERS: Dmitry Chapyshev (dmitry@aspia.ru)
//
#include "host/console_session_launcher.h"
#include <userenv.h>
#include <wtsapi32.h>
#includ... |
<commit_before>#include "http2/adapter/nghttp2_session.h"
#include "common/platform/api/quiche_logging.h"
namespace http2 {
namespace adapter {
NgHttp2Session::NgHttp2Session(Perspective perspective,
nghttp2_session_callbacks_unique_ptr callbacks,
const n... |
<commit_before>/**
* \file dcs/testbed/rain/sensors.hpp
*
* \brief Sensor for RAIN-driven applications.
*
* \author Marco Guazzone (marco.guazzone@gmail.com)
*
* <hr/>
*
* Copyright (C) 2012 Marco Guazzone (marco.guazzone@gmail.com)
* [Distributed Computing System (DCS) Group,
... |
<commit_before>/**
* \file dcs/testbed/rain/sensors.hpp
*
* \brief Sensor for RAIN-driven applications.
*
* \author Marco Guazzone (marco.guazzone@gmail.com)
*
* <hr/>
*
* Copyright 2012 Marco Guazzone (marco.guazzone@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... |
<commit_before>// Part of the apollo library -- Copyright (c) Christian Neumüller 2015
// This file is subject to the terms of the BSD 2-Clause License.
// See LICENSE.txt or http://opensource.org/licenses/BSD-2-Clause
#ifndef APOLLO_BUILTIN_TYPES_HPP_INCLUDED
#define APOLLO_BUILTIN_TYPES_HPP_INCLUDED APOLLO_BUILTIN_T... |
<commit_before>//======================================================================
//-----------------------------------------------------------------------
/**
* @file iutest_filepath.ipp
* @brief iris unit test ファイルパスクラス ファイル
*
* @author t.shirayanagi
* @par copyright
* C... |
<commit_before>/*
Copyright (c) 2007, Un Shyam
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 conditions... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>#pragma once
#include "oqpi/scheduling/task_base.hpp"
#include "oqpi/scheduling/task_result.hpp"
#include "oqpi/scheduling/task_notifier.hpp"
namespace oqpi {
template<task_type _TaskType, typename _EventType, typename _TaskContext, typename _Func>
class task final
: public task_base
... |
<commit_before>#pragma once
#include <rex/config.hpp>
#ifndef REX_DISABLE_ASYNC
#include <mutex>
#endif
#include <unordered_map>
#include <rex/thero.hpp>
#include <rex/exceptions.hpp>
#include <rex/exceptions.hpp>
#include <rex/resourceview.hpp>
#include <rex/sourceview.hpp>
#ifndef REX_DISABLE_ASYNC
#include <re... |
<commit_before>#ifndef RFR_BINARY_NODES_HPP
#define RFR_BINARY_NODES_HPP
#include <vector>
#include <deque>
#include <array>
#include <tuple>
#include <sstream>
#include <algorithm>
#include <random>
#include "rfr/data_containers/data_container.hpp"
#include "rfr/data_containers/data_container_utils.hpp"
#include "rf... |
<commit_before>
#include "SiconosConfig.h"
#include "MechanicsIO.hpp"
#define DUMMY(X, Y) class X : public Y {}
#undef BULLET_CLASSES
#undef OCC_CLASSES
#undef MECHANISMS_CLASSES
#include <BodyDS.hpp>
#define XBULLET_CLASSES() \
REGISTER(BulletR)
#ifdef SICONOS_HAVE_BULLET
#include <BulletR.hpp>
#else
#include ... |
<commit_before><commit_msg>SCROWS64K is not used anywhere<commit_after><|endoftext|> |
<commit_before>#include "../search/search.hpp"
#include "../structs/binheap.hpp"
#include "../utils/pool.hpp"
#include <limits>
#include <vector>
void dfrowhdr(FILE *, const char *name, int ncols, ...);
void dfrow(FILE *, const char *name, const char *colfmt, ...);
void fatal(const char*, ...);
template <class D> str... |
<commit_before>#include <sl.h>
#include <stdio.h>
#include "thread.h"
#include "overlay.h"
typedef struct _THREAD_LIST THREAD_LIST_ENTRY;
typedef struct _THREAD_LIST {
UINT16 ThreadId;
UINT64 cycles;
UINT8 cpuUsage;
//VOID* handle;
BOOLEAN ... |
<commit_before>#include "tests-base.hpp"
#include "utf8rewind.h"
#include "helpers-strings.hpp"
TEST(ToTitle, BasicLatinUppercase)
{
const char* c = "J";
const size_t s = 256;
char b[s] = { 0 };
int32_t errors = 0;
EXPECT_EQ(1, utf8totitle(c, strlen(c), b, s - 1, 0, &errors));
EXPECT_UTF8EQ("J",... |
<commit_before>/*
* Copyright (c) 2015, Nagoya University
* 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>#pragma once
//=====================================================================//
/*! @file
@brief RL78/G13 グループ・データ・フラッシュ制御
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RL78/blob/ma... |
<commit_before>/*
Copyright (C) 2017 Alexandr Akulich <akulichalexander@gmail.com>
This file is a part of TelegramQt library.
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; ei... |
<commit_before>/*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org... |
<commit_before>/*
Copyright (C) 2017 Alexandr Akulich <akulichalexander@gmail.com>
This file is a part of TelegramQt library.
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; ei... |
<commit_before>//
// server_main.cpp
// sophos
//
// Created by Raphael Bost on 03/04/2016.
// Copyright © 2016 Raphael Bost. All rights reserved.
//
#include "sophos_server.hpp"
#include <stdio.h>
#include <csignal>
grpc::Server *server_ptr__ = NULL;
void exit_handler(int signal)
{
std::cout << "\nExiting ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef EP_HH
#define EP_HH 1
#include <pthread.h>
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <stdexcept>
#include <iostream>
#include <queue>
#include <set>
... |
<commit_before>#include <parseopt.h>
#include <arpc.h>
#include "lsdctl_prot.h"
/* Much of the structure and code here is taken from sfskey.C which is GPL2'd.
* See http://www.fs.net/ */
bool opt_verbose;
bool opt_quiet;
char *control_socket = "/tmp/lsdctl-sock";
/* Prototypes for table. */
void lsdctl_help (int ar... |
<commit_before>/*
* Copyright (c) 2008-2015, Hazelcast, Inc. 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
*
* U... |
<commit_before>#include "sotauptaneclient.h"
#include <unistd.h>
#include <boost/make_shared.hpp>
#include "crypto.h"
#include "httpclient.h"
#include "json/json.h"
#include "logger.h"
#include "uptane/exceptions.h"
#include "utils.h"
SotaUptaneClient::SotaUptaneClient(const Config &config_in, event::Channel *events... |
<commit_before>/*
* StubModule.cpp
* Copyright (C) 2017 by MegaMol Team
* All rights reserved. Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "mmcore/special/StubModule.h"
#include "mmcore/CoreInstance.h"
#include "mmcore/factories/CallAutoDescription.h"
using namespace megamol;
using namespace megamol... |
<commit_before>//
// Projectname: amos-ss16-proj5
//
// Copyright (c) 2016 de.fau.cs.osr.amos2016.gruppe5
//
// This file is part of the AMOS Project 2016 @ FAU
// (Friedrich-Alexander University Erlangen-Nürnberg)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the G... |
<commit_before>#include "Arduino.h"
#include "Nokia_5110.h"
#include "Font.h"
Nokia_5110::Nokia_5110(unsigned short RST, unsigned short CE, unsigned short DC, unsigned short DIN, unsigned short CLK){
_RST = RST;
_CE = CE;
_DC = DC;
_DIN = DIN;
_CLK = CLK;
pinMode(RST, OUTPUT);
pinMode(CE, ... |
<commit_before>#ifndef VERTEX_FORMAT_HPP
#define VERTEX_FORMAT_HPP
#include <glm/glm.hpp>
namespace plush {
/// A vertex structure that has only two elements: a position in 3d,
/// and a color.
struct Vertex_pos_color {
glm::vec3 pos;
glm::vec3 color;
};
}
#endif<commit_msg>Added... |
<commit_before>//===- RustWrapper.cpp - Rust wrapper for core functions --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "TemplateMatch.h"
#include "PI3OpencvCompat.h"
int lowThreshold;
void CannyThreshold(int, void*) {
}
TemplateMatch::TemplateMatch()
{
initialize();
}
TemplateMatch::~TemplateMatch()
{
}
void TemplateMatch::sortCorners(std::vector<cv::Point2f>& corners, cv::Point2f center) {
std::vector<... |
<commit_before>// Copyright 2013 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 "chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h"
#include "base/bind.h"
#include "base/callback.h"
#inclu... |
<commit_before>//snippet-sourcedescription:[s3-demo.cpp demonstrates how to perform various operations for Amazon Simple Storage Service (Amazon S3).]
//snippet-keyword:[AWS SDK for C++]
//snippet-keyword:[Code Sample]
//snippet-service:[Amazon S3]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[12/15/2021]
/... |
<commit_before>#include <iostream>
#include <string>
#include "tagged_struct.h"
int main() {
tagged_struct<member<"hello", auto_, [] { return 5; }>,
member<"world", std::string,[]{}>,
member<"test", auto_,
[](auto& t) {
return 2 * get<"... |
<commit_before>#include "master.hpp"
namespace factor {
HMODULE hFactorDll;
bool set_memory_locked(cell base, cell size, bool locked) {
int prot = locked ? PAGE_NOACCESS : PAGE_READWRITE;
DWORD ignore;
int status = VirtualProtect((char*)base, size, prot, &ignore);
return status != 0;
}
void factor_vm::init_... |
<commit_before>#ifndef GCL_TMP_H_
# define GCL_TMP_H_
#include <array>
namespace gcl::mp
{ // C++17
template <typename ... ts>
struct super : ts...
{};
template <template <typename...> class trait_type, typename ... ts>
struct partial_template
{
template <typename ... us>
using type = trait_type<ts..., us.... |
<commit_before>#include "lightstep_span.h"
#include "utility.h"
using opentracing::SystemTime;
using opentracing::SystemClock;
using opentracing::SteadyClock;
using opentracing::SteadyTime;
namespace lightstep {
//------------------------------------------------------------------------------
// ComputeStartTimestamps... |
<commit_before>// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/heads_up_display_layer.h"
#include "base/debug/trace_event.h"
#include "cc/heads_up_display_layer_impl.h"
#include "cc/layer_... |
<commit_before>/*
This file is part of the clang-lazy static checker.
Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
Author: Sérgio Martins <sergio.martins@kdab.com>
Copyright (C) 2015 Sergio Martins <smartins@kde.org>
This program is free software; you can redistribu... |
<commit_before>// Copyright (c) 2010 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 "chrome_frame/module_utils.h"
#include <atlbase.h>
#include "base/logging.h"
const wchar_t kBeaconWindowClassName[] =
L"... |
<commit_before>/*******************************************************************************
* Copyright 2016 ROBOTIS CO., LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... |
<commit_before>#include "NotifyingTextView.h"
/*
* Copyright 2003-2009, IM Kit Team.
* Distributed under the terms of the MIT License.
*
* Authors:
* Michael Davidson <slaad@bong.com.au>
*/
#include <app/Messenger.h>
//#pragma mark Constructor
NotifyingTextView::NotifyingTextView(BRect frame, const char *name... |
<commit_before>/*=========================================================================*/
/* */
/* @file Optimizer.cpp */
/* @author Chirantan Ekbote (ekbote@seas.harvard.edu) ... |
<commit_before>#include "settingswindow.h"
SettingsWindow::SettingsWindow(QWidget *parent) : QDialog(parent)
{
this->setWindowFlags(Qt::Dialog | Qt::WindowSystemMenuHint);
this->setWindowTitle(QString::fromUtf8("Параметры"));
tabbedWidget = new QTabWidget;
tabbedWidget->setUsesScrollButtons(false);
... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm 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://ww... |
<commit_before>/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://opensource.org/licenses/BSD-3-Clause for
details. */
#include <functional>
#include "helpers.h"
#include "transform.h"
using namespace std::placeholders;
static void delete_span(std::vec... |
<commit_before>#ifndef ATL_GC_HH
#define ATL_GC_HH
// @file /home/ryan/programming/atl/gc.hpp
// @author Ryan Domigan <ryan_domigan@sutdents@uml.edu>
// Created on Jan 08, 2014
//
// A garbage collected environment.
#include <limits>
#include <algorithm>
#include <functional>
#include <list>
#include <memory>
#includ... |
<commit_before>/******************************************************************************\
* File: lexers.cpp
* Purpose: Implementation of wxExLexers classes
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 2008-2009 Anton van Wezenbeek
* All rights are reserved. Reproduc... |
<commit_before>
// $Id: patch.C,v 1.4 2007-02-13 17:10:48 roystgnr Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as ... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
wizard = new Wizard(this);
wizard->exec();
ui->room_view->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
ui-... |
<commit_before>#include <string>
#include <vector>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/stat.h>
#include <string.h>
#include <atomic>
#include "mailbox.h"
using namespace std;
Mailbox::Mailbox (){
//Attempt to create a new memory segment.
controlID = shmget(controlKey, cont... |
<commit_before>/*
* Copyright (c) 2014, webvariants GmbH, http://www.webvariants.de
*
* This file is released under the terms of the MIT license. You can find the
* complete text in the attached LICENSE file or online at:
*
* http://www.opensource.org/licenses/mit-license.php
*
* @author: Thomas Krause (thomas.... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>/**
* C S O U N D V S T
*
* A VST plugin version of Csound, with Python scripting.
*
* L I C E N S E
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
*... |
<commit_before>#include "Connection.hpp"
namespace et {
Connection::Connection(std::shared_ptr<SocketHandler> _socketHandler,
const string& _key)
: socketHandler(_socketHandler), key(_key), shuttingDown(false) {}
Connection::~Connection() {
if (!shuttingDown) {
LOG(ERROR) << "Call shu... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
... |
<commit_before>/**
@file SuccessScene.cpp
*/
#include "LevelInfo.h"
#include "SaveData.h"
#include "Scene.h"
#include "../Menu.h"
#include "../../OpenGLESApp2/OpenGLESApp2.Android.NativeActivity/Renderer.h"
#include <vector>
#include <random>
namespace SunnySideUp {
using namespace Mai;
/** Show the success eve... |
<commit_before>//
// brainCloudClientObjc.hh
// brainCloudClientObjc
//
// Copyright (c) 2016 bitHeads. All rights reserved.
//
#pragma once
//#import <UIKit/UIKit.h>
//! Project version number for brainCloudClientObjc.
//FOUNDATION_EXPORT double brainCloudClientObjcVersionNumber;
//! Project version string for b... |
<commit_before>/*
* This file is part of the FreeStreamer project,
* (C)Copyright 2011 Matias Muhonen <mmu@iki.fi>
* See the file ''LICENSE'' for using the code.
*/
#include "http_stream.h"
#include "audio_queue.h"
namespace astreamer {
const size_t HTTP_Stream::STREAM_BUFSIZ = Audio_Queue::AQ_BUFSIZ;
CFStringR... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: FuzzyConnectApp.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2001 Insight Consortium
All rights reserved.
Redistribution a... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: FuzzyConnectApp.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2001 Insight Consortium
All rights reserved.
Redistribution a... |
<commit_before>
// FastRandom.cpp
// Implements the cFastRandom class representing a fast random number generator
#include "Globals.h"
#include <time.h>
#include "FastRandom.h"
#if 0 && defined(_DEBUG)
// Self-test
// Both ints and floats are quick-tested to see if the random is calculated correctly, checking th... |
<commit_before>/*
* For licensing please refer to the LICENSE.md file
*/
#include "GmshReader.hpp"
#include "GmshReaderException.hpp"
#include <algorithm>
#include <chrono>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <json/json.h>
namespace gmsh
{
Reader::Reader(std::stri... |
<commit_before>/*************************************************************************
> File Name: CardLoader.cpp
> Project Name: Hearthstone++
> Author: Chan-Ho Chris Ohk
> Purpose: Card loader that loads data from cards.json.
> Created Time: 2017/08/13
> Copyright (c) 2017, Chan-Ho Chris Ohk
*********************... |
<commit_before>/****************************************************************************
** libebml : parse EBML files, see http://embl.sourceforge.net/
**
** <file/class description>
**
** Copyright (C) 2002-2004 Ingo Ralf Blum. All rights reserved.
**
** This library is free software; you can redistribute it and... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.