text stringlengths 3.08k 12.5k |
|---|
/****************************************
* Universita' degli Studi di Udine *
* Ingegneria Elettronica *
* <NAME> *
* <NAME> - 133047 *
* File: driver_server.hpp *
****************************************/
#include <iostream>
#include <fstream>
#include <str... |
/*
* @Author : Spider
* @Date : 2020-06-27
* @copyleft Apache 2.0
*/
#include "httpresponse.h"
using namespace std;
const unordered_map<string, string> HttpResponse::SUFFIX_TYPE = {
{ ".html", "text/html" },
{ ".xml", "text/xml" },
{ ".xhtml", "application/xhtml+xml" },
{ ".txt",... |
//===- MemoryLocation.cpp - Memory location descriptions -------------------==//
//
// The LLVM37 Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------... |
//
// COMP 371 Assignment Framework
//
// Created by <NAME> on 15/7/15.
// with help from <NAME>
//
// Copyright (c) 2014-2019 Concordia University. All rights reserved.
//
#include "ParticleSystem.h"
#include "ParticleDescriptor.h"
#include "ParticleEmitter.h"
#include "EventManager.h"
#include "World.h"
#in... |
/*
* $Id$
*
* Copyright (c) 2011 Surfnet
* Copyright (c) 2011 .SE (The Internet Infrastructure Foundation).
* Copyright (c) 2011 OpenDNSSEC AB (svb)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
/*
* clip_amiga.cpp - Clipboard handling, AmigaOS implementation
*
* Basilisk II (C) 1997-2008 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Licens... |
// include this before other header for independence test
#include <ulib/crypt_aes.h>
#include <ulib/util_hexdump.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
const unsigned char test_key1[16] =
{ 0x80 };
const unsigned char test_vec1[16] =
{ 0x0e, 0xdd, 0x33, 0xd3, 0xc6, 0x21, 0xe5, 0x46, 0x45, 0x5b,... |
// Copyright 2014 Open Source Robotics Foundation, Inc.
// Copyright 2020 <NAME>
//
// 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
//
//... |
#include <memory>
#include <algorithm>
#include <cassert>
#include <iostream>
#include <cstddef>
namespace example01 {
template <typename T>
class my_vector {
public:
explicit my_vector(int size)
: size_{size}, data_{ new T[size_] } { }
my_vector(my_vector const& that)
: ... |
/*
* Copyright 2020 OmniSci, 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 law or agreed t... |
// Copyright (c) 2013 <NAME>
//
// 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)
#include <hpx/hpx_init.hpp>
#include <hpx/include/lcos.hpp>
#include <hpx/include/actions.hpp>
#include <hpx/include/iostreams.hpp>... |
//
// Clipboard display test application for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2014 by <NAME> and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see ... |
#include "http_server.h"
#include "string_utils.h"
#include <map>
#include <ios>
#include <iostream>
#include <fstream>
#include <filesystem>
HttpServer::HttpServer(std::string _addr, int _port){
address = _addr;
port = _port;
listen_socket = INVALID_SOCKET;
running = false;
WSADATA ws... |
#include "GraphToJson.h"
#define TO_ID_T() ToString()
using namespace graphToJson;
Json::Value GraphToJsonVisitor::StructureBuilding(const untyped::Object& data) {
Json::Value curr;
curr["id"] = data["id"].TO_ID_T();
curr["name"] = data["name"].ToString();
curr["namespace"] = data["namespace"].ToString();
Json... |
#include "track_analyzing/serialization.hpp"
#include "track_analyzing/track.hpp"
#include "track_analyzing/track_analyzer/utils.hpp"
#include "track_analyzing/track_matcher.hpp"
#include "track_analyzing/utils.hpp"
#include "routing_common/num_mwm_id.hpp"
#include "storage/routing_helpers.hpp"
#include "storage/stor... |
/*
sarge.cpp - Implementation file for the Sarge command line argument parser project.
Revision 0
Features:
-
Notes:
-
2019/03/16, <NAME>
*/
#include "sarge.h"
#include <iostream>
// --- SET ARGUMENT ---
void Sarge::setArgument(std::string arg_short, std::string arg_long, std::string desc,... |
// Project: Assignment 2 - Genetic Algorithms - Breaking a simple Substitution Cipher
// Author: <NAME>
// Course: CS 572 Evolutionary Computation
// Semester: Fall 2016
// Github: https://github.com/GhostofGoes/cgoes-cs572
// License: MITv2
// If you're in the class, don't copy the code
// You're welcome to us... |
/*
* Name: <NAME>
* Entry Number: 2019CS10349
* Assignment 3 Q1
*/
#include <fstream>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
using namespace ns3;
NS_LOG_COMPONENT_DEFINE ("Part1");
int d... |
/*
* AIFF/AIFF-C muxer
* Copyright (c) 2006 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 ... |
/***************************************************************
*
* Copyright (C) 2019, HTCondor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You m... |
// Copyright 2017 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* ______ __ __ __
* / __/ /_ ____ __ / //_/__ _______ ___ / /
* / _// / // /\ \ / / ,< / -_) __/ _ \/ -_) /
* /_/ /_/\_,_//_\_\ /_/|_|\__/_/ /_//_/\__/_/
*
* copyright (c) 2021 <NAME> (aka corigan01)
*
* Permission is hereby granted, free of charge... |
// Copyright (C) 2019-2020 Zilliz. 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
//
// Unless required by applicable l... |
/******************************************************************************
* $Id$
*
* Project: Erdas Imagine (.img) Translator
* Purpose: Testing mainline for HFA services - transitory.
* Author: <NAME>, <EMAIL>
*
******************************************************************************
* Copyrigh... |
/*
Copyright (C) EEMBC(R). All Rights Reserved
All EEMBC Benchmark Software are products of EEMBC and are provided under the
terms of the EEMBC Benchmark License Agreements. The EEMBC Benchmark Software
are proprietary intellectual properties of EEMBC and its Members and is
protected under all applicable laws, includi... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#include "lldb/Core/Module.h"
#include "lldb/Symbol/Function.h"
#include "lldb/Symbol/SymbolContext.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/StackFrameList.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Logging.h"
#include "lldb... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "WindowsErrorReport.h"
#include "CrashDebugHelperModule.h"
#include "CrashReportUtil.h"
#include "CrashDescription.h"
#include "CrashDebugHelper.h"
#include "Misc/FileHelper.h"
#include "Modules/ModuleManager.h"
#include "Internationalization/Text.h... |
//*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// 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://w... |
/**
* TrueRandom - A true random number generator for Arduino.
*
* Copyright (c) 2010 <NAME>, Tinker.it! All rights reserved.
*/
#include <avr/io.h>
#include "TrueRandom.h"
int TrueRandomClass::randomBitRaw(void) {
uint8_t copyAdmux, copyAdcsra, copyAdcsrb, copyPortc, copyDdrc;
uint16_t i;
uint8_t bit;
vo... |
/*
Copyright (c) DataStax, 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 law or agreed to in writing, so... |
#include "drmkPCH.h"
#include "CryptoHelpers.h"
#include "KList.h"
#include "../DRMKMain/StreamMgr.h"
#include "AudioDescrambler.h"
//------------------------------------------------------------------------------
// When doing noise addition, we only decryptt the low bits. These constants define
// the number o... |
/* ************************************************************************
* Copyright (c) 2018 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without re... |
/*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "zello_common.h"
extern bool verbose;
bool verbose = false;
void executeGpuKernelAndValidate(ze_context_handle_t context, ze_device_handle_t &device, bool &outputValidationSuccessful) {
ze_command_queue_handle_t cm... |
/******************************************************************************
*
* MantaFlow fluid solver framework
* Copyright 2011 <NAME>, <NAME>
*
* This program is free software, distributed under the terms of the
* Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Preprocesso... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2013-, <NAME>
*
* 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... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SampleCode.h"
#include "SkAnimTimer.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkDrawable.h"
#include "SkGradientShader.h"
#include "SkPath.h"
#include "... |
/** \class HLTJetCollectionsVBFFilter
*
*
* \author <NAME>
*
*/
#include "HLTrigger/JetMET/interface/HLTJetCollectionsVBFFilter.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#inc... |
//
// XOCMethod.cpp
// HYCodeScan
//
// Created by admin on 2020/7/29.
//
#include "XOCMethod.hpp"
#include "XCommanFunc.hpp"
#include "XContext.h"
#include "XTypeManager.h"
#include "XCodeLine.h"
#include "XVar.h"
#include "XCodeFactory.hpp"
using namespace hygen;
void OCMethod::onDeclare(hygen::Context *context... |
/* This file is part of Into.
* Copyright (C) Intopii 2013.
* All rights reserved.
*
* Licensees holding a commercial Into license may use this file in
* accordance with the commercial license agreement. Please see
* LICENSE.commercial for commercial licensing terms.
*
* Alternatively, this file may be used und... |
#include <hal_ugv/Navigation.h>
#define DEBUG false
#define PI 3.14159265359
#define MASK_GPS 0b00000001
#define MASK_ALT 0b00000010
#define MASK_MAG 0b00000100
#define MASK_IMU 0b00001000
#define MASK_ROT 0b00010000
#define MASK_ALL 0b00011111
using namespace hal::ugv;
Navigation::Navigation() : data(0x0), re... |
#include <iostream>
#include <cassert>
#include "Queue.h"
#include "List.h"
#include "DList.h"
using namespace std;
bool is_set(List<int>& list) {
list.iterStart();
if (list.length() <= 1) {
return true;
}
for (Node<int> * i = list.iter(); i->next; i = i->next) {
for (Node<int> * k = i->next; ... |
#include "bitmap_manager.hpp"
using namespace std;
#define PREWITT 0
#define SOBEL 1
/**
* @fn カラー画像をグレイスケール画像へ変換
* @param bmp ビットマップマネージャー
* @count ヒストグラム用の配列 [0 256)
*/
void color2Grayscale(BitmapManager *bmp, int *count) {
//! 各色に乗ずる係数
const float c_r = 0.3;
const float c_g = 0.59;
const float... |
#include "graph_al_indir.h"
#include "graph_exception.h"
#include <ostream>
#include <iostream>
#include <stack>
#include <queue>
#include <iomanip>
#include <algorithm>
graph_al_indir::graph_al_indir(int v, int e) : a_graph_al(v, e)
{
}
void graph_al_indir::add_edge(int v_start, int v_end, int e_weight)
{
try
{
... |
// -*- C++ -*-
// Copyright (c) 2017, Just Software Solutions Ltd
// 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 ... |
// pbrt is Copyright(c) 1998-2020 <NAME>, <NAME>, and <NAME>.
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0
#include <gtest/gtest.h>
#include <pbrt/pbrt.h>
#include <pbrt/samplers.h>
using namespace pbrt;
// Make sure all samplers give the same sample values if we g... |
#include "display/game_window.hpp"
#include "shaders/shader.hpp"
#include "utils/input.hpp"
#include "cameras/camera3d_perspective.hpp"
#include "models/model.hpp"
#include <iostream>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "models/meshgen.hpp"
#include "u... |
/* WinChat 3.1.2
* Copyright 2014 <NAME>.
*
*
* 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 later version.
... |
// Copyright (c) 2014 Baidu, Inc.
// Author: <NAME> (<EMAIL>)
// Date: 2015/09/15 15:42:55
#include "bvar/detail/percentile.h"
#include "butil/logging.h"
#include <gtest/gtest.h>
#include <gperftools/profiler.h>
#include <fstream>
class PercentileTest : public testing::Test {
protected:
void SetUp() {}
void ... |
///////////////////////////////////////////////////////////////////////////////
// Copyright <NAME> 2007 - 2015.
// 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)
//
#include <array>
#include <cstddef>... |
//************************************************************************
// Copyright 2021 Massachusetts Institute of Technology
// SPDX License Identifier: BSD-2-Clause
//
// File Name:
// Program: Common Evaluation Platform (CEP)
// Description: to be used with openocd
// Notes:
//
//*****... |
#include "BrokenWheelCar.h"
#include <iostream>
//TODO Reset which way wheel is stuck on reset
BrokenWheelCar::BrokenWheelCar(sf::Texture* img)
{
this->image.setTexture(*img);
this->onlyLeft = ((rand() % 2) == 0) ? true: false;
this->position = sf::Vector2f(0.0f, 0.0f);
this->size.x = 131; //100
this->size.y = ... |
/*
* Copyright (c) 2005 The Regents of The University of Michigan
* Copyright (c) 2007 MIPS Technologies, Inc.
* Copyright (c) 2016 The University of Virginia
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following co... |
#include "hdr_image.h"
#include "../lib/log.h"
#include <sf_libs/stb_image.h>
#include <sf_libs/tinyexr.h>
HDR_Image::HDR_Image() : w(0), h(0) {
}
HDR_Image::HDR_Image(size_t w, size_t h) : w(w), h(h) {
assert(w > 0 && h > 0);
pixels.resize(w * h);
}
HDR_Image HDR_Image::copy() const {
HDR_Image ret;
... |
/*
FusionEKF.cpp - initializes the filter, calls the predict function, calls the update function
How the Files Relate to Each Other
FusionEKF.cpp takes the sensor data and initializes variables and updates variables. The Kalman filter equations are not in this file. FusionEKF.cpp has a variable called ekf_, which is a... |
// Copyright 2020 TensorFlow 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 applicable law or agree... |
/*****************************************************************************
unionBedGraphs.cpp
(c) 2010 - <NAME>, CSHL
- <NAME>, UVA
Hall Laboratory
Department of Biochemistry and Molecular Genetics
University of Virginia
<EMAIL>
Licenced under the GNU General Public License 2.0 license.
*... |
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QUtil.hh>
#include <qpdf/BufferInputSource.hh>
#include <qpdf/Buffer.hh>
#include <qpdf/Pl_Discard.hh>
#include <qpdf/QPDFPageDocumentHelper.hh>
#include <qpdf/QPDFPageObjectHelper.hh>
#include <qpdf/QPDFPageLabelDocumentHelper.hh>
#include <qpdf/QPDF... |
/*
* Copyright (c), Microsoft Open Technologies, 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... |
#include "../advent_of_code.hpp"
#include <algorithm>
#include <vector>
#include <variant>
#include <memory>
#include <map>
#include <regex>
// https://adventofcode.com/2020/day/19
static const char * const RULE_DESCRIPTION = R"(^([0-9]*): (.*)$)";
// ================================================================... |
// laplace.cpp: successive over-relaxation with adaptive unum/posit precision
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#ifdef _MSC_VER
#pragma warning(disable : 4514)
#endif
// Configure th... |
// generated by Fast Light User Interface Designer (fluid) version 2.1000
#include "template_panel.h"
// Code for //\n// "$Id$"\n//\n// FLUID template support for ...
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fltk/string.h>
#include <fltk/events.h>
#include <fltk/filename.h>
#include <fltk/as... |
#include "controller.h"
void controllerRunnable(jvmtiEnv *jvmti_env, JNIEnv *jni_env, void *arg) {
IMPLICITLY_USE(jvmti_env);
IMPLICITLY_USE(jni_env);
Controller *control = (Controller *) arg;
sigset_t mask;
sigemptyset(&mask);
sigaddset(&mask, SIGPROF);
if (pthread_sigmask(SIG_BLOCK, &ma... |
///////////////////////////////////////////////////////////////////////////
// Copyright (c) 2013 Academy of Motion Picture Arts and Sciences
// ("A.M.P.A.S."). Portions contributed by others as indicated.
// All rights reserved.
//
// A worldwide, royalty-free, non-exclusive right to copy, modify, create
// derivati... |
#include "core.h"
#include "filepacker.h"
#include "filestream.h"
#include "file.h"
#include "zlib.h"
#include <memory.h>
FilePacker::FilePacker()
: m_InFileSize( 0 )
, m_InFileBuffer( NULL )
, m_InFileCompressionSize( 0 )
, m_InFileCompressionBuffer( NULL )
, m_Header()
, m_FileEntries()
, m_Existin... |
/*
+--------------------------------------------------------------------+
| libmemcached-awesome - C/C++ Client Library for memcached |
+--------------------------------------------------------------------+
| Redistribution and use in source and binary forms, with or without |
| modificatio... |
// Copyright 2018 InnoVisioNate Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ObjectInOffice.h"
#include <OleCtl.h>
#include "utils.h"
STDMETHODIMP ObjectInOffice::SetClientSite(IOleClientSite *pcs) {
if ( pIOleInPla... |
////////////////////////////////////////////////////////////////////////////////
// //
// Name: PlotCLScan.cxx //
// ... |
/*
* Fledge notification service.
*
* Copyright (c) 2018 Dianomic Systems
*
* Released under the Apache 2.0 Licence
*
* Author: <NAME>
*/
#include <notification_service.h>
#include <management_api.h>
#include <management_client.h>
#include <service_record.h>
#include <plugin_manager.h>
#include <plugin_api.h>
#... |
#include <algorithm>
#include <cstdio>
#include <string>
#include <vector>
using namespace std;
typedef struct {
int id;
int solved;
int penalty;
} team;
bool icpc_cmp(team a, team b) {
if (a.solved != b.solved) // can use this primary field to decide sorted order
return a.solved > b.solved;... |
/*
Copyright (c) A better Software http://abettersoftware.com
All rights reserved.
*/
#include "MemoryModel.hpp"
#include "Version.hpp" // For c_nDatabaseVersion
// ------------------------------------------------------------------------------
// CONSTANTS GLOBALS STATICS
// ------------------------... |
/*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: <NAME> <<EMAIL>>
*
* 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
... |
/*****************************************************************************
** STAIR VISION LIBRARY
** Copyright (c) 2007-2010, <NAME>
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
** ... |
#include <poplar/Vertex.hpp>
#include <cstddef>
#include <cstdlib>
#include <print.h>
#include <math.h>
#include <ipudef.h>
#include <stdint.h>
#include "ParticleCodeletsCommon.h"
#include <assert.h>
using namespace poplar;
inline auto asTileData(void *ref) -> TileData *const {
return reinterpret_cast<TileData ... |
#include "reader.h"
#include "streamview.h"
#include <cereal/archives/binary.hpp>
#include <cereal/cereal.hpp>
#include <cereal/types/array.hpp>
#include <cereal/types/map.hpp>
#include <cereal/types/vector.hpp>
#include <emp/io/ContiguousStream.hpp>
#include <mpi.h>
#include <numeric>
#include <vector>
namespace emp... |
#include <cstdio>
#include <iostream>
#include <cstring>
#include <string>
#include <stack>
#include <queue>
#include <vector>
#include <fstream>
#include <map>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <ios>
#include <set>
#include <utility>
using namespace std;
#define SIZE... |
#include "SceneMainTitle.h"
#include "Application.h"
#include <string.h>
#include <string>
#include <iostream>
using namespace std;
Timer mainMenuTimer;
FadeInOut* fade;
SceneMainTitle::SceneMainTitle()
{
ID = 1;
}
SceneMainTitle::~SceneMainTitle()
{
}
bool SceneMainTitle::Start()
{
#pragma region Textures Se... |
// This compares the various tesselation spacing options
// Interactivity: The up arrow increases tesselation, down arrow decreases tesselation
#include <iostream>
#include <memory>
#include <vector>
#include "base_app.h"
#include "glsl_program.h"
// Positions of three triangles
static const GLfloat triangle_vertic... |
/*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... |
// -----------------------------------------------------------------------------
// Copyright : (C) 2014-2017 <NAME>
// License : MIT (see the file LICENSE)
// Maintainer : <NAME> <<EMAIL>>
// Stability : experimental
//
// Renderer
// -----------------------------------------------------------------------------
... |
#include "objects/box2d/joint/joint.h"
#include <bitset>
#include "body/body.h"
#include "common/bidirectionalmap.h"
#include "physics/physics.h"
#include "world/world.h"
using namespace love;
love::Type Joint::type("Joint", &Object::type);
Joint::Joint(Body* body) : world(body->world), userdata(nullptr), bodyA(bo... |
//
// Created by pascal on 30.12.18.
//
#include <cstring>
#include <iostream>
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include "../include/print.hpp"
column_sizes::column_sizes() :
id(0),
name(0),
mode(0),
left_side(0),
right_side(0)
{ }
void print_line(con... |
//=============================================================================
// FILE:
// FindFCmpEq.cpp
//
// DESCRIPTION:
// Visits all instructions in a function and returns all equality-based
// floating point comparisons. The results can be printed through the use of
// a printing pass.
//
// This... |
#ifdef RICH_MPI
#include "source/mpi/MeshPointsMPI.hpp"
#endif
#include <iostream>
#include <cmath>
#include "source/newtonian/two_dimensional/hdsim2d.hpp"
#include "source/newtonian/two_dimensional/geometric_outer_boundaries/SquareBox.hpp"
#include "source/tessellation/VoronoiMesh.hpp"
#include "source/newtonian/commo... |
/*
* Copyright (c) 2021, the Basil authors
* All rights reserved.
*
* This source code is licensed under the 3-Clause BSD License, the full text
* of which can be found in the LICENSE file in the root directory
* of this project.
*/
#include "driver.h"
#include "eval.h"
#include "obj.h"
// Runs the "help" mode... |
//
// Created by <NAME> on 18.12.21.
//
#include "ICPOptimizer.h"
LinearICPOptimizer::LinearICPOptimizer(unsigned int m_nIterations) : ICPOptimizer(m_nIterations) {
}
LinearICPOptimizer::~LinearICPOptimizer()
{
std::cout << "LinearICPOptimizer deleted!" << std::endl;
}
bool LinearICPOptimizer::estimatePose(std... |
/*
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#include <string>
#include <vector>
#include <iostream>
using namespace std;
const int WEEKS = 14;
class Section {
public:
Section(const string& sN, const string& sD, int sT) : sectionName(sN), sectionTimeSlot(sD, sT) {}
void display() const {
cout << "Section: " << sectionName << ", Time Slot:";
sectionTimeS... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
/*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [<NAME>][EPFL-LNCO] ... |
#include "QTransform.hpp"
#include "../convert/callable.hpp"
#include "../thread.hpp"
#include <QTransform>
int QTransform_map(lua_State* const state)
{
auto self = lua::get<QTransform*>(state, 1);
if (lua_gettop(state) == 2) {
if (lua::is_type<QPointF>(state, 2)) {
// QPointF map(const Q... |
/*
* Copyright 2018-, <NAME> LAAS-CNRS
*
*/
#define EIGEN_RUNTIME_NO_MALLOC
#include <Eigen/Dense>
#include <dynamic-graph/factory.h>
#include <sot/core/debug.hh>
#include <sot/torque_control/commands-helper.hh>
#include <sot/torque_control/ddp-actuator-solver.hh>
#if DEBUG
#define ODEBUG(x) std::cout << x << std... |
#include "DelphesLCIOConfig.h"
#include <fstream>
#include <sstream>
#include <iostream>
/// return list of map names for extra jet collection (containing substring 'ExtraJet' )
std::vector<std::string> DelphesLCIOConfig::getExtraJetMapNames() const {
std::vector<std::string> ejmapNames ;
for( auto& it : _maps... |
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include "../include/gamma.h"
using namespace std;
// Helper functions
template<class T> string to_string(T t);
template<class T> bool from_string(T& t, const string& s, ios_base& (*f)(ios_base&));
void tokenize(const string &str, vector<float... |
/**
* @file vmm.cpp
* @brief 虚拟内存头文件
* @author Zone.N (<EMAIL>)
* @version 1.0
* @date 2021-09-18
* @copyright MIT LICENSE
* https://github.com/Simple-XX/SimpleKernel
* @par change log:
* <table>
* <tr><th>Date<th>Author<th>Description
* <tr><td>2021-09-18<td>digmouse233<td>迁移到 doxygen
* </table>
*/
#inc... |
#include <bits/stdc++.h>
using namespace std;
// *****
#define MAXV 51
mt19937 mt(random_device{}());
void vector_erase(vector<int>& vec, int n) { vec.erase(find(begin(vec), end(vec), n)); }
struct vec_hasher {
template <template <typename...> class Container, typename V, typename... T>
size_t operator()(... |
#include "sstar2/sstar.h"
void SStarCaller::write_header(std::ostream &output){
output <<
"chrom\twinstart\twinend\t"
"n_snps\tn_ind_snps\tn_region_ind_snps\t"
"ind_id\tpop\t"
"s_star\tnum_s_star_snps\ts_star_snps\t"
"hap_1_s_start\thap_1_s_end\t"
"hap_2_s_start\tha... |
/*************** <auto-copyright.rb BEGIN do not edit this line> **************
*
* Copyright 2012-2013 by Ames Laboratory
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License version 2.1 as published by the Free Software Foundat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.