text stringlengths 54 60.6k |
|---|
<commit_before>// RegAccess.cpp: implementation of the neTKVMRegAccess class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "RegAccess.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
////////////////////////... |
<commit_before>/******************************************************************************\
* File: support.cpp
* Purpose: Implementation of DecoratedFrame class
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 1998-2009 Anton van Wezenbeek
* All rights are reserved. Repro... |
<commit_before>#define LOG_TAG "silk-h264-enc"
#include "SimpleH264Encoder.h"
#include <queue>
#include <media/stagefright/MediaBuffer.h>
#include <media/stagefright/MetaData.h>
// This is an ugly hack. We forked this from libstagefright
// so we can trigger key frames and adjust bitrate
#include "MediaCodecSource.h"... |
<commit_before>/*
* File: AizuJudger.cpp
* Author: 51isoft
*
* Created on 2014年8月13日, 下午2:53
*/
#include "AizuJudger.h"
AizuJudger::AizuJudger(JudgerInfo * _info) : VirtualJudger(_info) {
language_table["1"] = "C++";
language_table["2"] = "C";
language_table["3"] = "JAVA";
language_table["6"] = "... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, 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... |
<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>#include <stdio.h>
#include <stdlib.h>
#define N 3
#define MAX 0x200
struct TAlumno {
char nombre_completo[MAX];
double programacion;
double bases_de_datos;
};
int main(int argc, char *argv[]){
struct TAlumno clase[N];
/* Pedir los datos */
for (int i=0; i<N; i++){
... |
<commit_before><commit_msg>Add ICU platform to aerial_v4.<commit_after><|endoftext|> |
<commit_before><commit_msg>Create 1180 - Lowest Number and Position.cpp<commit_after><|endoftext|> |
<commit_before><commit_msg>DBG: added corner traj info<commit_after><|endoftext|> |
<commit_before>#include "Capture.h"
#include "Compute.h"
#include "ImageLogger.h"
#include "Timer.h"
#include "Motor.h"
#include "Radio.h"
#include "Navio/Util.h"
#include <iostream>
#include <limits.h>
#include <signal.h>
#include <stdlib.h>
#include <time.h>
static volatile bool quit = false;
static void Quit(in... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef APPLY_HH_
#define APPLY_HH_
#include <tuple>
template <size_t... I>
struct index_list {
};
template <size_t Cur, size_t N, typename Result>
struct index_list_helper;
template <size_t N, size_t... I>
struct index_list_helper<N, N, index_list... |
<commit_before>#include "util.h"
#include <iostream>
#include <iomanip>
#include <stdlib.h>
using namespace std;
const char* kpcSampleDatabase = "mysql_cpp_data";
void
print_stock_table(mysqlpp::Query& query)
{
// You must reset the query object when re-using it.
query.reset();
// You can write to the query obj... |
<commit_before>/*************************************************************************
*
* $RCSfile: Object.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: rt $ $Date: 2003-04-24 13:21:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*
* util.hpp
*
* Created on: Feb 28, 2015
* Author: hugo
*/
#ifndef MFLASH_CPP_CORE_UTIL_HPP_
#define MFLASH_CPP_CORE_UTIL_HPP_
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <unistd.h>
#include "../core/type.hpp"
using namespace std;
namespace mflas... |
<commit_before>#ifndef GNR_COROUTINE_HPP
# define GNR_COROUTINE_HPP
# pragma once
#include <cassert>
#include <cstdint>
#include <functional>
#include <memory>
#include "savestate.hpp"
namespace gnr
{
namespace
{
// half a megabyte stack default
enum : std::size_t { anon_default_stack_size = 512 * 1024 };
}
t... |
<commit_before>#include <iostream>
#include <string>
#include <cstdlib>
#include <cstring>
#include <cerrno>
#include <fcntl.h>
#include <unistd.h>
using std::cout;
using std::endl;
using std::string;
void nope_out(const string & prefix);
int main(const int argc, const char * argv []) {
if (argc != 2) {
cout ... |
<commit_before>#ifndef GENERIC_COROUTINE_HPP
# define GENERIC_COROUTINE_HPP
# pragma once
#include <cassert>
#include <csetjmp>
#include <functional>
#include "forwarder.hpp"
#include "lightptr.hpp"
namespace generic
{
class coroutine
{
jmp_buf env_in_;
jmp_buf env_out_;
::std::function<void()> f_;
boo... |
<commit_before>/*
* qi_roivolumes.cpp
*
* Copyright (c) 2016 Tobias Wood.
*
* 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 <iostream>
#incl... |
<commit_before>
#include "drake/solvers/NloptSolver.h"
#include <stdexcept>
#include <list>
#include <vector>
#include <nlopt.hpp>
#include "drake/core/Gradient.h"
#include "drake/solvers/Optimization.h"
using drake::solvers::SolutionResult;
namespace Drake {
namespace {
Eigen::VectorXd MakeEigenVector(const std::... |
<commit_before>#include "gtest/gtest.h"
#include <rapidcheck/gtest.h>
#include <algorithm>
#include <iterator>
#include <vector>
#include SPECIFIC_HEADER
// Running tests
TEST(TEST_NAME, NoValue)
{
std::vector<unsigned> expected = { };
ASSERT_EQ(expected, build_grays(0));
}
TEST(TEST_NAME, SpecificNumberOfVal... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2018 Satya Das
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 rights to... |
<commit_before>#include "error.h"
#include <curl/curl.h>
namespace cpr {
ErrorCode getErrorCodeForCurlError(int curlCode) {
switch (curlCode) {
case CURLE_OK:
return ErrorCode::OK;
case CURLE_UNSUPPORTED_PROTOCOL:
return ErrorCode::UNSUPPORTED_PROTOCOL;
case CURLE_... |
<commit_before>// Copyright (c) 2017 Pierre Fourgeaud
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "drivers/xml/serializablecodec_xml.h"
#include "core/enginecontext.h"
#include "core/fileaccess.h"
#include "core/resourceloader.h"
#include "core/serializa... |
<commit_before>/*************************************************************************
*
* $RCSfile: salogl.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: kz $ $Date: 2005-01-18 15:17:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2016 Haggi Krey, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any pers... |
<commit_before>#include "sipclienttransaction.h"
#include "siptransactionuser.h"
#include <QDebug>
// 2 seconds for a SIP reply
const unsigned int TIMEOUT = 2000;
// 1 minute for the user to react
const unsigned int INVITE_TIMEOUT = 60000;
SIPClientTransaction::SIPClientTransaction():
ongoingTransactionType_(SIP_... |
<commit_before>// Copyright 2010-2021 Google LLC
// 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 ... |
<commit_before>//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// ScenicWindow.cpp:
// Implements methods from ScenicWindow
//
#include "util/fuchsia/ScenicWindow.h"
#include <fuchsia/ima... |
<commit_before>// Virvo - Virtual Reality Volume Rendering
// Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University
// Contact: Jurgen P. Schulze, jschulze@ucsd.edu
//
// This file is part of Virvo.
//
// Virvo is free software; you can redistribute it and/or
// modify it under the terms of the GN... |
<commit_before>// -*- coding: us-ascii-unix -*-
// Copyright 2015 Lukas Kemmer
//
// 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
//
// Unles... |
<commit_before>#include "SboxByte.h"
#include "SboxByte64Tab.h"
using namespace std;
using namespace magma;
// @todo #89:15min SboxByte should use source sbox as is, without creating tab
SboxByte::SboxByte(const std::vector<uint8_t> &uz)
: SboxByte(
make_unique<SboxByte64Tab>(uz, 0),
make_unique<SboxByte64Tab>(u... |
<commit_before>#include "sl_generator.h"
#include <vector>
#include <algorithm>
#include <random>
#include "sl_problem.h"
#include "sl_field.h"
#include "sl_clue_placement.h"
#include "sl_generator_option.h"
#include "../common/grid_loop_helper.h"
#include "../common/union_find.h"
namespace penciloid
{... |
<commit_before>/*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directo... |
<commit_before>#include "Memory.h"
#include "Memory/MBC1.h"
#include "Memory/MBC2.h"
#include "Memory/MBC3.h"
#include "Memory/RomOnly.h"
MemoryChip* Memory::createMemoryChipForCartridge(Memory* memory, Cartridge* cartridge) {
MemoryChip* chip;
switch (cartridge->getCartridgeType()) {
case Cartridge::CartridgeTyp... |
<commit_before>#ifndef __RULE_GENERATOR_HPP__
#define __RULE_GENERATOR_HPP__
#include <string>
#include <tuple>
#include <type_traits>
#include <boost/function_types/result_type.hpp>
#include <boost/function_types/parameter_types.hpp>
#include <boost/function_types/function_arity.hpp>
#include "boost/mpl/at.hpp"
t... |
<commit_before>//===- PDBSymbolFunc.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>//===--- BaremMetal.cpp - Bare Metal ToolChain ------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#pragma once
#include <pip/syntax.hpp>
#include <functional>
#include <unordered_set>
namespace pip
{
// Kinds of declarations.
enum decl_kind : int
{
dk_program,
dk_table,
dk_meter,
};
// Kinds of matching strategies.
enum rule_kind : int
{
rk_exact,
rk_prefix,
r... |
<commit_before>/* mockturtle: C++ logic network library
* Copyright (C) 2018-2019 EPFL
*
* 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 limita... |
<commit_before>//===-- X86TargetMachine.cpp - Define TargetMachine for the X86 -----------===//
//
// 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>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "cling/UserInterface/UserInter... |
<commit_before>#include <QCloseEvent>
#include <QDateTime>
#include <QMessageBox>
#include <qwt_symbol.h>
#include <stdexcept>
#include <vector>
#include "mainwindow.h"
#include "ui_mainwindow.h"
const double sampleIUnit = 1000.;
const double sampleThicknessUnit = 1000000.;
MainWindow::MainWindow(QWidget *parent) :
... |
<commit_before>/*
* Copyright (C) 2009, 2010, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <l... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <functional>
#include <sstream>
class Parser {
public:
using Constraint = std::function<bool(std::vector<std::string>)>;
Parser(int argc, char **argv);
void add_arg(std::string longhand, std::vector<Constraint> constraints={}, std::st... |
<commit_before>/// \file PwFont.cpp
//-----------------------------------------------------------------------------
#include "stdafx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
void
SetPasswordFont(CWnd* pDlgItem)
{
// Initialize a CFont object with the charac... |
<commit_before>#include "QNETag.h"
#include <QString>
#include <QFile>
#include <QByteArray>
#include <QCryptographicHash>
#include <QFileInfo>
#include <QDataStream>
QNETag::QNETag()
{
}
QNETag::~QNETag()
{
}
QString QNETag::UrlSafeBase64Encode(QByteArray data)
{
QByteArray encodedData = data.toBase64();
QSt... |
<commit_before>#include <sstream>
#include "helper_functions.h"
using namespace std;
bool compareArr(const int* array1, const int* array2){
while (*array1 != 0 || *array2 != 0){
if (*array1 != *array2){
return false;
}
*array1++;
*array2++;
}
return true;
}
// See interface ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: querystatus.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-07 18:06:51 $
*
* The Contents of this file are ma... |
<commit_before>#include "AConfig.h"
#if(HAS_CAMERASERVO)
// Includes
#include <Arduino.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "CCameraServo.h"
#include "CServo.h"
#include "CPin.h"
#include "NConfigManager.h"
#include "NDataManager.h"
#include "NModuleManager.h"
#include "NCommManager.h"
#include ... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2015 Dennis Wandschura
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 rights
to use, c... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
using namespace std;
//Function to count the lines of the script to be converted
int linecounter(string dir){
int counter = 0;
string line;
//Create new file stream to file to be converted
ifstream file(dir);
while (getli... |
<commit_before>#include <QtCore/QDebug>
#include <QtCore/QTimer>
#include <QtDBus/QtDBus>
#include <QtTest/QtTest>
#include <QDateTime>
#include <QString>
#include <QVariantMap>
#include <TelepathyQt4/Account>
#include <TelepathyQt4/ChannelFactory>
#include <TelepathyQt4/ConnectionFactory>
#include <TelepathyQt4/Debu... |
<commit_before>#include "appinfo.h"
const Version AppInfo::version = Version(0, 7, 1, 259);
const std::string AppInfo::name = "JASP";
std::string AppInfo::getShortDesc()
{
return AppInfo::name + " " + AppInfo::version.asString();
}
<commit_msg>Version bump: 0.7.1.5<commit_after>#include "appinfo.h"
const Version ... |
<commit_before>// Copyright (c) 2011 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 <vector>
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/string_util.h"
#include "base/utf_string_con... |
<commit_before>//--------------------------------------------------------------------------------------
// File: SpriteFont.cpp
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY... |
<commit_before><commit_msg>Fix a typo that crashes oobe.<commit_after><|endoftext|> |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2012 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before><commit_msg>Update screen view is reset while language is switched.<commit_after><|endoftext|> |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>#include "nxtFlashTool.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QDir>
#include <QtWidgets/QMessageBox>
using namespace qReal;
using namespace qReal::robots::generators;
NxtFlashTool::NxtFlashTool(qReal::ErrorReporterInterface *errorReporter)
: mErrorReporter(errorReporter)
, mUploadS... |
<commit_before>#ifndef DYNAMIC_FUSION_QUATERNION_HPP
#define DYNAMIC_FUSION_QUATERNION_HPP
#pragma once
#include <iostream>
#include <kfusion/types.hpp>
//Adapted from https://github.com/Poofjunior/QPose
namespace kfusion{
namespace utils{
/**
* \class Quaternion
* \brief a templated qua... |
<commit_before>/*
This file is part of the kolab resource - the implementation of the
Kolab storage format. See www.kolab.org for documentation on this.
Copyright (c) 2004 Bo Thorsen <bo@klaralvdalens-datakonsult.se>
This library is free software; you can redistribute it and/or
modify it under the... |
<commit_before>/*
This file is part of the kolab resource - the implementation of the
Kolab storage format. See www.kolab.org for documentation on this.
Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk>
This library is free software; you can redistribute it and/or
modify it under the terms of the GN... |
<commit_before>#include "chainerx/cuda/memory_pool.h"
#include <gtest/gtest.h>
#include "chainerx/error.h"
namespace chainerx {
namespace cuda {
TEST(MemoryPoolTest, Malloc) {
MemoryPool memory_pool{0};
void* ptr1 = memory_pool.Malloc(1);
void* ptr2 = memory_pool.Malloc(1);
EXPECT_NE(ptr1, ptr2);
... |
<commit_before>/*************************************************************************
*
* $RCSfile: salfontutils.hxx,v $
*
* $Revision: 1.3 $
* last change: $Author: bmahbod $ $Date: 2001-03-26 21:53:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before><commit_msg>coverity#735656 Division or modulo by zero<commit_after><|endoftext|> |
<commit_before>// Recursive function that has one parameter n of type int and that returns
// the nth Fibonacci number:
// F0 = 1, F1 = 1, F2 = 2, F3 = 3, F4 = 5
// F(i+2) = F(i) + F(i+1) for i = 0, 1, 2, ...
#include <iostream>
#include <cstdlib>
#include <assert.h>
using std::cout;
using std::cin;
using std::endl;
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: salsys.cxx,v $
*
* $Revision: 1.17 $
*
* last change: $Author: obo $ $Date: 2007-01-25 11:25:53 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: salogl.cxx,v $
*
* $Revision: 1.21 $
*
* last change: $Author: rt $ $Date: 2007-07-03 14:08:16 $
*
* The Contents of this file are made a... |
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
#include "test.h"
// verify stats after a new row inserted into the root
// verify stats after a row overw... |
<commit_before>/** @file
*
* @ingroup dspSoundFileLib
*
* @brief Provides a common interface to soundfile data
*
* @details This object provides a common set of attributes and methods for working with soundfiles at a specific filepath.
* This allows us to access metadata and copy values in a common way without d... |
<commit_before>/**
* @file curl.cpp
* @brief Brief description of file.
*
*/
#include <stdio.h>
#include <angort/angort.h>
#include <angort/hash.h>
#include <curl/curl.h>
using namespace angort;
struct CurlWrapper : GarbageCollected {
char buf[CURL_ERROR_SIZE];
CURL *c;
char *data;
size_t len,ma... |
<commit_before>#include "ssdt.h"
#include "undocumented.h"
#include "pe.h"
#include "log.h"
#include "ntdll.h"
//structures
struct SSDTStruct
{
LONG* pServiceTable;
PVOID pCounterTable;
#ifdef _WIN64
ULONGLONG NumberOfServices;
#else
ULONG NumberOfServices;
#endif
PCHAR pArgumentTable;
};
//Ba... |
<commit_before>#include <cassert>
#include <cmath>
#include "BankedMemory.h"
#include "functions.h"
using namespace Simulator;
using namespace std;
BankedMemory::Bank::Bank()
: func(NULL), busy(false)
{
}
BankedMemory::Bank::~Bank()
{
delete func;
}
void BankedMemory::Request::release()
{
... |
<commit_before>/*
* SimpleGeoSphereRenderer.cpp
*
* Copyright (C) 2012 by CGV (TU Dresden)
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "vislib/graphics/gl/IncludeAllGL.h"
#include "mmcore/moldyn/SimpleGeoSphereRenderer.h"
#include "mmcore/view/CallRender3D.h"
#include "vislib/graphics/gl/ShaderSour... |
<commit_before>/*=========================================================================
Program: NeuroLib (DTI command line tools)
Language: C++
Date: $Date: 2008-07-02 15:54:54 $
Version: $Revision: 1.5 $
Author: Casey Goodlett (gcasey@sci.utah.edu)
Copyright (c) Casey Goodlett. All righ... |
<commit_before>/*
sound.cpp: sound handling class.
* By 2MB Solutions: https//2mb.solutions
* Released under the MIT license. See license.txt for details.
* Billy: https://stormdragon.tk/
* Michael: https://michaeltaboada.me
* */
#include "sound.h"
int sound::sounds=0;
ALLEGRO_VOICE* sound::voice = NULL;
map<strin... |
<commit_before><commit_msg>CID-287<commit_after><|endoftext|> |
<commit_before>#include "Thread.h"
using namespace std;
extern "C" TVMMainEntry VMLoadModule(const char *module);
extern "C" void VMUnloadModule(void);
void fileCallback(void* calldata, int result);
void timerISR(void*);
void idle(void*);
void scheduler();
TVMThreadID nextID; //increment every time a thread is crea... |
<commit_before>/*
* Copyright (c) 2018-2019 Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... |
<commit_before>/*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before><commit_msg>use OString::equalsL<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
** Copyright (c) 2014-2015, Intel Corporation **
** All rights reserved. **
** ... |
<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>// Copyright 2015 Markus Ilmola
// 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; either
// version 2.1 of the License, or (at your option) any later version.
#include <f... |
<commit_before><commit_msg>Add IsWindowActive to the Mac plugin interpose list<commit_after><|endoftext|> |
<commit_before><commit_msg>Modifies Installation return codes to not return success (0) if an existing version was launched. Omaha needs to know the correct error result if it is to show the right error message to the user.<commit_after><|endoftext|> |
<commit_before>/**************************************************************************
*
* Copyright 2011 LunarG, Inc.
* All Rights Reserved.
*
* Based on glretrace_glx.cpp, which has
*
* Copyright 2011 Jose Fonseca
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of th... |
<commit_before>#include <LSM303DLH.h>
#include <Wire.h>
#include <math.h>
// Defines ////////////////////////////////////////////////////////////////
// The Arduino two-wire interface uses a 7-bit number for the address,
// and sets the last bit correctly based on reads and writes
#define ACC_ADDRESS (0x30 >... |
<commit_before>/*
PubSubClient.cpp - A simple client for MQTT.
Nicholas O'Leary
http://knolleary.net
*/
#include "PubSubClient.h"
#include <string.h>
PubSubClient::PubSubClient() {
this->_client = NULL;
}
PubSubClient::PubSubClient(uint8_t *ip, uint16_t port, void (*callback)(char*,uint8_t*,unsigned int), Cl... |
<commit_before>#include <vector>
#include <deque>
#include <stdio.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdlib.h>
// Ros
#include "ros/ros.h"
#include "std_msgs/String.h"
#include <lps/LPSRange.h>
// System V IPC
#include <sys/shm.h> /... |
<commit_before><commit_msg>Rename tests.<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (C) 2016 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>/*
* Copyright (C) 2012
* Alessio Sclocco <a.sclocco@vu.nl>
*
* 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
* (at your option) any lat... |
<commit_before>#include <cassert>
#include <cstring>
#include <iostream>
#include <map>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
// 1) Try to use N4082's any class, or fall back to Boost's.
// 2) Try to use N4082's string_view class, or fall back to std::string
#ifdef __has_include
#... |
<commit_before>
#ifndef __BIG_INT_HPP__
#define __BIG_INT_HPP__
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <string>
#include <tuple>
#include <vector>
namespace hausp {
class big_int {
friend std::ostream& operator<<(std::ostream&, const big_int&);
using UNI... |
<commit_before>//=======================================================================
// Copyright (c) 2013-2018 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================... |
<commit_before>//=======================================================================
// Copyright (c) 2014 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.