text stringlengths 3.08k 12.5k |
|---|
//
// MIT License
//
// Copyright (c) 2017 MRSD Team D - LoCo
// The Robotics Institute, Carnegie Mellon University
// http://mrsdprojects.ri.cmu.edu/2016teamd/
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to ... |
/**
@file Degradation.cc
@ingroup DynamicProperties
@brief Dynamic performance analysis property
@author <NAME>
@verbatim
Revision: $Revision$
Revision date: $Date$
Committed by: $Author$
This file is part of the Periscope performance measurement tool.
See http://www.l... |
/**
* This source code is part of the samples for "Game Programming in C++: Start to Finish".
*
* @Author : <NAME>
* @Date : 09/01/2005
* @Version: 1.0
*
* @Goal: Just about every game these days (okay not every one but a lot of them) allow
* you to take "snapshots" in the game. "World of Warcraft" lets you do this,... |
//misaka and rin will carry me to cm
#include <iostream>
#include <cstdio>
#include <cstring>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <array>
#include <tuple>
#define ll long long
#define lb long double
#define sz(vec) ((int)(vec.size()))
#define all(x) x.begin(), x.end()... |
/*
* scompare.c The cgi application for the ICU string compare
* demo web sample.
*
********************************************************************
* COPYRIGHT:
* Copyright (c) 2004-2006, International Business Machines Corporation and
* others. All Rights Reserved.
*********************... |
#define TESTING
#include "src/mc-graph.hpp"
#include "src/checks.hpp"
#include <bits/stdc++.h>
using namespace std;
void Prepare(vector<int>& anodes, vector<vector<int>>& bcomponents) {
sort(anodes.begin(), anodes.end());
for (auto& component : bcomponents) sort(component.begin(), component.end());
sort(... |
/*
serLCD.cpp - Library for controlling a SparkFun serLCD
module.
Code written for firmware version 2.5
Created by <NAME>, September 9, 2011
Modified by <NAME>, Dec 5, 2011. (Version 1.5)
Version 1.4 - This version wrote specifically for 16x2
Display.
More display support coming in later version... |
#include "parse.h"
#include <map>
using namespace std;
namespace {
// read in dim-dimensional control points into a vector
vector<Vector3f> readCps(istream &in, unsigned dim)
{
// number of control points
unsigned n;
in >> n;
cerr << " " << n << " c... |
#include<cstdio>
#include<iostream>
#include<algorithm>
#include<string>
#include<cstring>
#include<string.h>
#include<vector>
#include<stack>
#include<map>
#include<queue>
#include<math.h>
#include<functional>
using namespace std;
typedef long long LL;
const int INF = 1<<30;
const int maxn = 550;
str... |
//<NAME>
//EE1301
//HW7A: The house database
//8 May 2019
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
class houseData {
public:
//id,value,bedrooms,bathrooms,sqft,yr_built,zipcode
long int id = 0;
int price = 0;
int bedrooms = 0;
int bathrooms = ... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
/*******************************************************************
TCS1011 - Data Structure & Algorithms
<NAME>
Email: <EMAIL>
Project Page: https://farshid.ws/projects.php?id=114
Year: 2012
********************************************************************/
#include <iostream>
#include <fstream>
#include <string... |
#include <iostream>
#include "Matriz.h"
#include <time.h>
#include <stdlib.h>
using namespace std;
void imprimir(Matriz mat)
{
for(int i=0; i<mat.getDimension(); i++)
{
for(int j=0; j<mat.getDimension(); j++)
{
cout <<" "<< mat.getValue(i,j);
}
cout <... |
/*
- dsu + rollbacks.
- tle. in order to ac, one must use dfs.
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef pair<int, int> ii;
const int maxN =... |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth 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; e... |
// MIT License
//
// Copyright (c) 2018 <NAME>.
//
// 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, copy, modify, mer... |
#include <string.h>
#include "topic.h"
using namespace std;
const char* keyProducerStr = "producer_head";
const char* prefixConsumerStr = "consumer_head_";
const char* keyConsumerStr = "consumer_head_%s";
int descCmp(const MDB_val *a, const MDB_val *b) {
/* DESC order in size */
if (a->mv_size > b->mv_size)... |
/*
* Copyright (c) 2009 <NAME> <<EMAIL>>
*
* 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, copy, modify, merge, pu... |
#include <stdint.h>
#include <string.h>
#include <string>
#include <benchmark/benchmark.h>
#include <immintrin.h>
#define HASHTABLE_SEARCH_MAX (16*32)
#define HASHTABLE_BUCKET_FLAGS_FILLED 0x01
typedef union ht_bucket ht_bucket_t;
union ht_bucket {
uint32_t hash;
struct {
// filled represent just one... |
//
// Copyright © 2020 Sandcastle Software Ltd. All rights reserved.
//
// This file is part of 'Oaknut' which is released under the MIT License.
// See the LICENSE file in the root of this installation for details.
//
#include <oaknut.h>
#include <sched.h>
namespace oak {
static pthread_t s_mainThread;
sta... |
//----------------------------------------------------------
// The standard SD File handling code is borked on Arduino!
// This is an effort to get around that problem - those
// problems actually!
//
// FILE_WRITE opens the file in APPEND mode, not WRITE. That
// is configured deliberately in the source. This "librar... |
#include "mainwindow.h"
#include <Tempest/Assert>
#include <Tempest/RenderState>
#include <Tempest/Log>
static MainWindow::Vertex quadVb[] = {
{ 1,-1,-1, 1,1},
{-1,-1,-1, 0,1},
{-1, 1,-1, 0,0},
{ 1, 1,-1, 1,0},
{-1,-1, 1, 1,1},
{ 1,-1, 1, 0,1},
{ 1, 1, 1, 0,0},
{-1, 1, 1, 1,0},
{-1, 1,-1,... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "fitsphere.h"
/*----------------------------------------------------------------------
Copyright (c) 2004 Open Dynamics Framework Group
www.physicstools.org
All rights reserved.
Redistribution and us... |
/* Copyright 2018 <NAME> (<EMAIL>)
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
*... |
/* This is a game made by LiquidByte Studios */
// load user-defined libraries
#include "Global.h"
#include "Input.h"
#include "Player.h"
#include "Bullet.h"
using namespace Global;
// making the sprite information
Sprite *LevelSprite = new Sprite("Sprites/LevelSprites.txt", { 200, 80 }, 2);
namespace Screen {
... |
#include <vector>
#include <stdio.h>
#include <string>
#include <cstring>
#include <glm/glm.hpp>
#include "objloader.hpp"
bool loadOBJ(
const char * path,
std::vector<glm::vec3> & out_vertices,
std::vector<glm::vec2> & out_uvs,
std::vector<glm::vec3> & out_normals
){
printf("Loading OBJ file %s...\n", path)... |
/*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the ... |
#include "graphics.h"
#include "romfile.h"
#include <QPixmap>
QImage *banks = 0;
uint numBanks = 0;
uint8_t bankTable[3][256];
const romaddr_t bankListPtr[3] = {{0x13, 0xA6A9},
{0x13, 0xA6AE},
{0x13, 0xA6B3}};
//const uint bankListBank = 0x05;... |
/* Copyright (C) 2013 Ion Torrent Systems, Inc. All Rights Reserved */
#include <math.h>
#include <stdio.h>
#include <vector>
#include <map>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstring>
#define QVTABLEBIN_VERSION "1.0.0"
using namespace std;
const size_t kNumPred... |
#include <stdlib.h>
#include <string.h>
#include <flinter/linkage/easy_context.h>
#include <flinter/linkage/easy_handler.h>
#include <flinter/linkage/easy_server.h>
#include <flinter/thread/keyed_thread_pool.h>
#include <flinter/timeout_pool.h>
#include <flinter/logger.h>
#include <flinter/msleep.h>
#include <flinte... |
#include "FemtoDstFormat/BranchWriter.h"
#include "FemtoDstFormat/TClonesArrayWriter.h"
#include "FemtoDstFormat/BranchReader.h"
#include "FemtoDstFormat/TClonesArrayReader.h"
#include "ChainLoader.h"
#include "TFile.h"
#include "TTree.h"
#include "TRandom3.h"
#include "FemtoDstFormat/FemtoEvent.h"
#include "Femt... |
#include <CL/Utils/Device.hpp>
#include <algorithm>
#include <vector>
#include <string>
bool cl::util::opencl_c_version_contains(const cl::Device& device,
const cl::string& version_fragment)
{
return device.getInfo<CL_DEVICE_OPENCL_C_VERSION>().find(version_fragment)
... |
#include <stdio.h>
#include <iostream>
#include <queue>
uint32_t *raw[5];
uint32_t *diffs[5];
void init_frequency_table()
{
raw[0] = new uint32_t[4096];
raw[1] = new uint32_t[4096];
raw[2] = new uint32_t[4096];
raw[3] = new uint32_t[2048];
raw[4] = new uint32_t[2048];
diffs[0] = new uint32_t[8192];
dif... |
// $Id$
// Copyright (c) 2008 <NAME> <<EMAIL>>
// Alle Rechte vorbehalten.
#include "ElevationProfileRenderArea.h"
#include <QtGlobal>
#include <QPainterPath>
#include <QPainter>
#include <QFontMetrics>
#include <cstdlib>
#include <cmath>
#ifdef _DEBUG
#include <QtDebug>
#endif // _DEBUG
ElevationProfileRenderAre... |
#include "ads12xx.h"
volatile int DRDY_state = HIGH;
// Waits untill DRDY Pin is falling (see Interrupt setup).
// Some commands like WREG, RREG need the DRDY to be low.
bool waitforDRDY() {
int timeout=0;
timeout = millis();
while (DRDY_state) {
//Serial.println("Wait for DRDY");
//if(millis()-timeout >10000... |
//#include "stdafx.h"
#include "ShaderManager.hpp"
#include <luapath\luapath.hpp>
using std::string;
using std::vector;
ShaderManager& ShaderManager::get()
{
static ShaderManager singleton;
return singleton;
}
ShaderManager::ShaderManager()
{
}
ShaderManager::~ShaderManager()
{
shaderProgramSet::iterator it = l... |
#include "pch.h"
#include "PTriangle.h"
#include "Ray.h"
#include "HitInfo.h"
#include <iostream>
PTriangle::PTriangle(const std::vector<FPoint3>& points, Material* pMaterial, bool isVisible, Cullmode cullMode)
: PTriangle(points[0], points[1], points[2], pMaterial, isVisible, cullMode)
{
}
PTriangle::PTriangle(con... |
#include "addpicturedialog.h"
#include "ui_addpicturedialog.h"
#include "cvqt.h"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/contrib/contrib.hpp>
#include <QMessageBox>
#include <QDir>
AddPictureDialog::AddPictureDialog(QString file, Person *person, QWidget *parent)
: QDialog(parent), ui(new Ui::AddPi... |
#include <ros/ros.h>
#include <std_msgs/String.h>
#include <std_msgs/Int16.h>
#include <std_msgs/Float32.h>
#include "white_ticket/Distance.h"
#include <stdio.h>
#include <string>
#include <vector>
#include <time.h>
#include <iostream>
using namespace std;
const int LIMIT = 3;
const int ALL = 6;
const int SAME = 3;
c... |
//
// Created by cristoffer on 2015-05-26.
//
#include "entityx/entityx.h"
#include "systems/PlayerControlSystem.hpp"
#include "components/PlayerComponent.hpp"
#include "components/DimensionComponent.hpp"
#include "components/PhysicsComponent.hpp"
#include "components/DimensionComponent.hpp"
#include "game_constant... |
#include <stdio.h>
#include <omp.h>
#include <string.h>
#include <sys/time.h>
#include "arch.hpp"
#include "../../global.hpp"
#include "sandy_bridge.hpp"
#include "ivy_bridge.hpp"
#include "haswell.hpp"
#include "skylake_256.hpp"
#include "broadwell.hpp"
#include "cannon_lake_256.hpp"
#include "ice_lake.hpp"
#include... |
#include "NumberWithUnits.hpp"
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <map>
#include <set>
using namespace std;
using namespace ariel;
const double TOLERANCE = 0.000003;
namespace ariel
{
void Update(string typeA ,string typeB){
... |
/* Copyright 2019 The fast_sparse_interpolation 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 appl... |
/************************************************************
*
* CmdExportNym.cpp
*
*/
/************************************************************
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General P... |
/*
* Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
// Copyright (c) 2021 The Eleccoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <fs.h>
#include <streams.h>
#include <util/translation.h>
#include <wallet/bdb.h>
#include <wallet/salvage.h>
#include <... |
#include <iostream>
#include <vector>
#include <tuple>
#include <utility>
/**
* bigs are always **stored** in the flipped format
* e.g. 123,456 = big{6,5,4,3,2,1}
* ~~~
* for sanity, Convert is provided for the translation
* */
using big = std::vector<unsigned int>;
using signed_big = std::tuple<bool, big>;
name... |
/*****************************************************************************
Copyright (c) [2017] [<NAME>]
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 ... |
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <string>
#include "cripto.h"
const std::string CHARS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
const size_t MIN_SALT_LENGTH = 5;
const size_t VARIANCE_SIZE_LENGTH = 5;
const size_t ONE_BLOCK_SIZE_BYTES = 64;
c... |
/*
Copyright (c) 2018, Globallogic s.r.o.
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 and the fo... |
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... |
//===---------------- Reshape.cpp - Lowering Reshape Op -------------------===//
//
// Copyright 2019 The IBM Research Authors.
//
// =============================================================================
//
// This file lowers the ONNX Reshape Operator to Krnl dialect.
//
//===----------------------------------... |
/*
*
* Copyright 2015 gRPC 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... |
// D3D12AppParam.cpp
//
// written by <NAME>
// ===========================================
// include
#include <stdexcept>
#include <wrl.h> // Microsoft::WRL::ComPtr
#include <d3d12.h>
#pragma comment(lib,"d3d12.lib")
#include <dxgi1_6.h>
#pragma comment(lib,"dxgi.lib")
#include "D3D... |
#include<iostream>
#include "RBTree.h"
RBTree::RBTree() {
TNULL = new RBNode;
TNULL->color = 0;
TNULL->left = nullptr;
TNULL->right = nullptr;
root = TNULL;
}
void RBTree::insert(int key) {
NodePtr node = new RBNode;
node->parent = nullptr;
node->val = key;
node->left = TNULL;
... |
#include <iostream>
#include <fstream>
#include <queue>
#include <vector>
#include <stack>
using namespace std;
struct node_for_Q{
int position;
int cost;
int loaded;
bool operator< ( const node_for_Q& other) const
{
if (cost... |
//
// This file is part of T-Rex, a Complex Event Processing Middleware.
// See http://home.dei.polimi.it/margara
//
// Authors: <NAME>
//
// This program 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 Foundatio... |
// Copyright (c) 2006, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... |
#include<iostream>
#include<cmath>
using namespace std;
class Set{
public:
char *arr;
int c;
Set(int i){
c=i;
arr=new char[c];
}
void getElements(){
cout<<"\nEnter array elements:\n";
for(int i=0;i<c;i++)
cin>>arr[i];
}
void removeDuplicates(){
for(int ... |
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2019 Intel Corporation. All Rights Reserved.
#include <librealsense2/rs.hpp> // Include RealSense Cross Platform API
#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/image_processing/render_face_detections.h>
#include ... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrVkRenderPass.h"
#include "GrVkFramebuffer.h"
#include "GrVkGpu.h"
#include "GrVkRenderTarget.h"
#include "GrVkUtil.h"
void setup_simple_vk_attachment_description(VkAt... |
#include <iostream>
#include <stdio.h>
#include <TDirectory.h>
#include <TFile.h>
#include <TKey.h>
#include <TH1.h>
#include <Riostream.h>
#include <string>
#include <vector>
#include <set>
#include <fstream>
#include <sstream>
#include <string>
#include <stdint.h>
#include <cstdlib>
#include <cstdio>
#include "listb... |
// Copyright 2016 The Fuchsia Authors
// Copyright (c) 2014 <NAME>
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <assert.h>
#include <platform.h>
#include <trace.h>
#include <zircon/errors.h>
#include <zirc... |
#define BOOST_TEST_MODULE lue framework io write
#include <hpx/config.hpp>
#include "lue/data_model/hl/raster_view.hpp"
#include "lue/framework/io/read_into.hpp"
#include "lue/framework/io/write_into.hpp"
#include "lue/framework/algorithm/create_partitioned_array.hpp"
#include "lue/framework/algorithm/default_policies/... |
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#ifdef _WIN32 // compiling on windows
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#else // NOT compiling on windows
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#endif
std::s... |
#include "openglwindow.hpp"
#include <imgui.h>
#include <cppitertools/itertools.hpp>
#include <glm/gtx/fast_trigonometry.hpp>
void OpenGLWindow::initializeGL() {
abcg::glClearColor(0, 0, 0, 1);
// Enable depth buffering
abcg::glEnable(GL_DEPTH_TEST);
// Create program
m_program = createProgramFromFile(ge... |
//----------------------------------------------------------------------------//
// //
// ozz-animation is hosted at http://github.com/guillaumeblanc/ozz-animation //
// and distributed under the MIT License (MIT). ... |
#include <vector>
#include <unordered_set>
#include <iostream>
#include <fstream>
#include <random>
#include <ANN/ANN.h>
#include "Point.hpp"
#include "IOUtil.hpp"
#include "SetCover.hpp"
using namespace std;
vector<Point> queries;
vector<double> results;
default_random_engine generator(0);
normal_distribution<doub... |
/*
* Copyright (C) 2013, British Broadcasting Corporation
* All Rights Reserved.
*
* Author: <NAME>
*
* 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 (C) 2019-2020 Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and... |
#include <iostream>
#include <vector>
#include <ostream>
#include <fstream>
#include <chrono>
#include <hmath/core.hpp>
#include <dyna/core.hpp>
#include <dyna/systems.hpp>
#include <CGeometry/core.hpp>
#include <CGeometry/projective.hpp>
// Define some important constants
long double d_em = 4.6e10 * hmath::unit::met... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2018 INRIA.
*
* 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
*
*... |
/*=========================================================================
*
* Copyright (c) 2014-2015 The Regents of the University of California.
* All Rights Reserved.
*
* Portions of the code Copyright (c) 2009-2011 Open Source Medical
* Software Corporation, University of California, San Diego.
*
* Portio... |
#include "source_code\Fpl_Headers_Precompiled.h"
//#include "Fpl_Random_Generator_Ranmar.h"
//init the static members (members of ranmar generator)
double Fpl_Random_Generator_Ranmar::c=0.0;
double Fpl_Random_Generator_Ranmar::u[98]={0.0};
double Fpl_Random_Generator_Ranmar::cd=0.0;
double Fpl_Random_Generator_Ranmar:... |
// The MIT License (MIT)
//
// Copyright (c) 2014-2015 WUSTL ZPLAB
// Copyright (c) 2016-2021 Celiagg Contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, i... |
#include "bugged.hpp"
#include <vpp/util/allocation.hpp>
#include <vpp/imageOps.hpp>
#include <vpp/formats.hpp>
#include <vpp/vk.hpp>
TEST(align) {
EXPECT(vpp::align(1023, 4), 1024);
EXPECT(vpp::align(1023u, 2u), 1024u);
EXPECT(vpp::align(1u, 1024u), 1024u);
EXPECT(vpp::align(0u, 2u), 0u);
EXPECT(vpp::align(233u,... |
#include "MProGlobal.h"
#include "../cs/substitution_matrix-inl.h"
#include "../cs/gonnet_matrix.h"
#include "../cs/blosum_matrix.h"
#include "../cs/profile_library-inl.h"
#include "../cs/utils-inl.h"
#include <iomanip>
#include <limits>
#include <string>
#include <vector>
#include <fstream>
MProGlobal* MProGlobal::... |
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "combine_str.h"
combine_str_t::combine_str_t(kaitai::kstream* p__io, kaitai::kstruct* p__parent, combine_str_t* p__root) : kaitai::kstruct(p__io) {
m__parent = p__parent;
m__root = this;
f_limit_or... |
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* 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 appl... |
/*
* Copyright (c) 2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Assertions.h>
#include <AK/LexicalPath.h>
#include <AK/Span.h>
#include <AK/Vector.h>
#include <LibArchive/TarStream.h>
#include <LibCompress/Gzip.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/DirIterator.h>
... |
/************************************************************************
* Author: <NAME>
* Filename: Console.cpp
* Date Created: 2/5/16
* Modifications: N/A
*************************************************************************/
#include "FCBoard.h"
#include "FreeArea.h"
#include "HomeArea.h"
#include "PlayArea... |
/*
* Copyright (c)2006-2010 <NAME> (Janelia Farm, Howard Hughes Medical Institute).
* All rights reserved.
*/
/************
********* LICENSE NOTICE ************
This folder contains all source codes for the V3D project, which is subject to the following conditions i... |
/***************************************************************************************[Equivs.cc]
Copyright (c) 2011, <NAME>
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,
... |
/* -------------------------------------------------------------------------- *
* OpenSim: SimpleOptimizationExample.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... |
// Assignment 2: Longest non-decreasing subsequence problem, power set algorithm
/****************************************
* Name: <NAME> & <NAME> *
* CPSC 335-01 13115 *
* D... |
/*
** Haaf's Game Engine 1.7
** Copyright (C) 2003-2007, Relish Games
** hge.relishgames.com
**
** Tutorial 06 - Creating menus
*/
// In menuitem.cpp/h we define the
// behaviour of our custom GUI control
#include "menuitem.h"
// This is a GUI control constructor,
// we should initialize all the variables here
hgeGU... |
// Author:Frankie.Chu
// Date:9 April,2012
//
// 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.
//
// ... |
//
// Copyright 1998-2012 <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... |
#include "PrecompiledHeaders.h"
#include "XMLWriterFile.h"
#include "XML.h"
#include "XMLNode.h"
#include "XMLAttribute.h"
#include "FilePathManager.h"
#include "AttributePacking.h"
void XMLWriterFile::appendString( kstl::string &sAppend, bool isElementText )
{
mData.emplace_back();
auto& s = mData.back();
if... |
#include <ros/ros.h>
#include <std_msgs/MultiArrayDimension.h>
#include <std_msgs/UInt8MultiArray.h>
//declare callback functions
void subByteCallback(const std_msgs::UInt8MultiArray::ConstPtr &msg);
void subRealCallback(const std_msgs::UInt8MultiArray::ConstPtr &msg);
void subByteArrayCallback(const std_msgs::UInt8M... |
// Copyright 2018 <NAME>
// derived from ir_Lasertag.cpp, Copyright 2017 <NAME>
#include <algorithm>
#include "IRrecv.h"
#include "IRsend.h"
#include "IRutils.h"
// MM MM WW WW MM MM
// MMM MMM WW WW MMM MMM
// MM M MM WW W WW MM M MM
// ... |
/*
Software License Agreement (BSD License)
Copyright (c) 2016--, <NAME> (<EMAIL>)
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 no... |
/*
This library handles the state machine for the game
==============================================================================*/
#include "game.h"
#include "display.h"
#include <Arduino.h>
// constants for playing audio to match the direction
#define AUDIO_PIN 18
// sounds similar to the real Simon game
#def... |
// (C) LHMP Team 2013-2016; Licensed under Apache 2; See LICENSE;;
#include <iostream>
#include <stdio.h>
#include "CCore.h"
#include <string>
#include "squirrelheads.h"
#include "CConfig.h"
#include <lhmp_tools.h>
#include <lhmp_version.h>
#ifdef _MSC_VER
#pragma comment (lib ,"squirrel.lib")
#pragma comment (lib ,... |
#include "phylo_forest.h"
PhyloForest::PhyloForest(
const std::vector<std::pair<std::string, std::string>> sequences,
const unsigned int sequence_lengths,
const pll_partition_t *reference_partition,
PLLBufferManager *const pll_buffer_manager)
: reference_partition(reference_partition),
pll_bu... |
//%Header {
/*****************************************************************************
*
* File: src/Game/GameController.cpp
*
* Author: <NAME> 2002-2005
*
* This file contains original work by <NAME>. The author and his
* employer (Mushware Limited) irrevocably waive all of their copyright rights
* vested... |
#include "player.hpp"
Player::Player() = default;
Player::~Player() = default;
void Player::clean_line(int num_chars) {
char blank_str[16];
sprintf(blank_str, "\r%%%is\r", num_chars);
printf(blank_str, "");
}
void Player::play_audio_stream(std::string file_path, int rendering_endpoint_buffer_duration) {
// Dec... |
/*
* MANAGES EVERY INDIVIDUAL SIMULATION THAT IS BEING RUN
*/
#include "Simulation.h"
//region Constructor
Simulation::Simulation(int _simID) : simID(_simID) {
setRandomStock();
}
//endregion
//region Functions
void Simulation::pause() {
isPaused = true;
}
void Simulation::resume() {
isPaused = false;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.