text stringlengths 3.08k 12.5k |
|---|
bool debug = true;
#include<vector>
#include<stack>
#include<map>
#include<bitset>
#include<unordered_map>
#include<set>
#include<string>
#include<iostream>
#include<algorithm>
#include<stdlib.h>
#include<string.h>
#include<stdio.h>
#include<math.h>
#include<time.h>
using namespace std;
typedef pair<int,int> pii;
#... |
// InfinityDebugTools.cpp : Este arquivo contém a função 'main'. A execução do programa começa e termina ali.
//
#include <windows.h>
#include <iostream>
#include <conio.h>
#include <stdio.h>
#include <psapi.h>
#include <intsafe.h>
#include <string>
#include <sstream>
#include <tlhelp32.h>
#include <tchar.... |
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include "SimpleMOC-kernel_header.h"
#include <time.h>
// Gets I from user and sets defaults
Input * set_default_input( void )
{
Input * I = (Input *) malloc(sizeof(Input));
I->source_2D_regions = 5000;
I->coarse_axial_intervals = 27;
I->fine_axial_intervals = 5... |
/* ============= */
/* Include files */
/* ============= */
#include "dxstdafx.h"
#include "wave_functions.h"
/*********************************************************************************
/
/ Function: MakeSoundBuffer
/
/ Description: Returns a DirectSound buffer for the sample specified.
/
******... |
#include <string>
#include <tk.h>
#include <stdlib.h>
#include "defines.h"
#include "plvGlobals.h"
#include "plvCmds.h"
#include "Timer.h"
#include "plvScene.h"
#include "plvDrawCmds.h"
#include "FileNameUtils.h"
// BUGBUG - shouldn't need this here, but it helps with the compile.
class Scene;
int
PlvParamCmd(ClientD... |
/**
* \file similarity_matrix.cc
* This file is part of FSA, a sequence alignment algorithm.
* \author Source code in this file was written by <NAME>.
*/
#include <iostream>
#include <iomanip>
#include "math/mathematics.h"
#include "seq/similarity_matrix.h"
using namespace fsa;
Sequence_kmer_counts::Sequence_k... |
// T is required to be a field.
template<typename T>
struct GaussianElimination {
public:
// Apply gaussian elimination to matrix A.
static bool solve(std::vector<std::vector<T>>& A) {
std::vector<T> extra_column(A.size());
gaussian_elimination_internal(A, extra_column);
return true;
}
// Return t... |
/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** This file is part of the Qt Components project on Qt Labs.
**
** No Commercial Usage
** This file co... |
/**
* MIT License
*
* Copyright (c) 2019 <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, mo... |
/* *
* fgui - an extensive oop gui framework *
* */
// includes
#include "notifications.hh"
#include "../handler/handler.hh"
fgui::notification::notification() {
fgui::notification::m_x = 0;
fgui::notification::m_y = 50;
fgui::... |
/* -*- c++ -*- */
/*
* Copyright 2002 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio 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, or (at your option... |
/*
* Copyright (c) 2011-2019, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
// created by <NAME>
#include "stdafx.h"
#include <algorithm>
#include <numeric>
#include "PictureStats.h"
#include <qlayout.h>
// as of right now, the position of this control is not affected by the mode or the trigger mode.
void PictureStats::initialize( IChimeraQtWindow* parent )
{
QVBoxLayout* layout = new QVBox... |
#include "pixmapcodeccommon.h"
#include <Tempest/IDevice>
#include <Tempest/ODevice>
#include <Tempest/MemReader>
#include <Tempest/Except>
#include <cstring>
#include <algorithm>
#define STBI_MALLOC(sz) malloc(sz)
#define STBI_REALLOC(p,newsz) realloc(p,newsz)
#define STBI_FREE(p) free(p)... |
#include "AliFemtoXiTrackPairCut.h"
#include <string>
#include <cstdio>
#ifdef __ROOT__
/// \cond CLASSIMP
ClassImp(AliFemtoXiTrackPairCut);
/// \endcond
#endif
//__________________
AliFemtoXiTrackPairCut::AliFemtoXiTrackPairCut():
fV0TrackPairCut(nullptr),
fNPairsPassed(0),
fNPairsFailed(0),
fMinAvgSe... |
#include <gsl/gsl_integration.h>
#include <stdio.h>
#include "friction.hh"
#include "big-vector.hh"
#include "vector-io.hh"
/*
All these hard coded numbers are inspired by DiMaio.
*/
Friction_definition::Friction_definition()
{
peak_maximum_param = 0.0075;
peak_length = 0.02;
peak_extra_force = 14.0/48... |
#include <iostream>
#include <fstream>
using namespace std;
const char NOMEFILE[] = "coda.txt";
// descrittore della coda di utenti
struct coda_t {
char *utenti; // puntatore all'array dinamico di codici in coda
int inizio, fine, quanti, N; // parametri implementazione coda
};
/*
* Inizializza coda a vuota, assu... |
//
// BLACK - Bounded Ltl sAtisfiability ChecKer
//
// (C) 2021 <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... |
// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// <NAME>, U.S. Geological Survey
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2017 University of California, Davis
//
// See ... |
#include <vcl_iostream.h>
#include <vcl_cmath.h>
#include <vcl_cassert.h>
#include "bgld_diffgeom.h"
#include "dbgl_diffgeom.h"
#define DIFFGEOM_EPS 2.2204e-16
/**
* Compute the inverse matrix of | 1.0, -Ta, Ta^2 |
* | 1.0, 0.0, 0.0 |
* | 1.0, -Tb, Tb^2 ... |
/** Description: Check correlation between PFJet pairs and filtered PFTau pairs and store the PFJet pairs.
For (j1, j2, t1, t2) where j1, j2 from the PFJet collection and t1, t2 from the filtered PFTau collection,
the module checks if there is no overlap (within dRmin) between j1, j2, t1, t2, i.e. they are 4 different ... |
#include <falconn/experimental/pipes.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <iostream>
#include <vector>
using falconn::core::RandomProjectionSketches;
using falconn::experimental::DeduplicationPipe;
using falconn::experimental::DistanceScorer;
using falconn::experimental::ExhaustiveProducer;
... |
/*!
* \file
* toolbox Linalg
*
* by <NAME>
* <EMAIL>
*
* File mexConjGrad.h
* \brief mex-file, function mexConjGrad.h
* Usage: x = mexRidgeRegression(b,A,x0,param);
* Usage: x = mexRidgeRegression(b,delta,A,x0,param); */
#include <mex.h>
#includ... |
#include "solution.h"
Solution::
Solution() : solutionValues(9, std::vector<ushort>(9, 0)) {
this->openCells.reserve(81);
this->assignedCells.reserve(81);
this->puzzle.buildPuzzle();
Cell *tempCell = nullptr;
for(ushort i = 0; i < 9; i++) {
for(ushort j = 0; j < 9; j++) {
... |
#include "one_up.h"
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <fstream>
OneUp::OneUp() {
srand(time(nullptr)); // use current time as seed for random generator
};
bool OneUp::loadTiles(const std::string &tileFilename) {
std::ifstream tileFile(tileFilename);
char t;
while (tileFile >... |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// File: tetSubset.cpp
// Author: <NAME>
// Date: 7/15/2021
// Purpose: Inputs a virtual noded BCC tetrahedral structure. This code creates a subset of those
// tetrahedra which have a unique location (i.... |
#include "share/scream_session.hpp"
#include "share/util/file_utils.hpp"
#include "share/util/scream_utils.hpp"
#include "share/scream_types.hpp"
#include "share/scream_assert.hpp"
#include "physics/p3/p3_f90.hpp"
#include "physics/p3/p3_ic_cases.hpp"
#include <vector>
namespace {
using namespace scream;
using names... |
//==============================================================================
// Copyright (c) 2019, <NAME>, TU Chemnitz
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistribut... |
/*
def get_neighbors_for_node(condensed_matrix,node,nodes_left,cutoff):
"""
As the name of the function says, it will pick all the neighbor elements for a given
element of the dataset. One element is neighbor of another if their distance falls within
a cutoff. nodes_lef will be the remaining nodes of t... |
#include <iostream>
#include <vector>
#include <queue>
struct Node;
class Graph;
struct BFSTreeNode;
class BFSTree;
void BFS(Graph *graph, char targetNodeId, BFSTree *bfsTree);
int main(int argc, char **argv)
{
Node *A = new Node('A');
Node *B = new Node('B');
Node *C = new Node('C');
Node *D = new Node('D');
No... |
/* Copyright (c) 2017, ARM Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "include/util.hh"
#include "include/pipe.hh"
#include "include/protocol.hh"
#include "include/acceptor.hh"
#include <errno.h>
#include <fcntl.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#inc... |
/**
Dinic algorithm with scaling and not scaling.
Complexity with scaling : O(VE * lg(U)). here, U is the maximum capacity
Complexity without scaling : O((V^2)E)
//////
Complexity in bipartite graph matching: O(E*sqrt(V)).
Complexity in unit graph: O(E*sqrt(V)). (but, Chilli says it is wrong and actual complexity is O(... |
#include <ros/ros.h>
#include <math.h>
#include <std_msgs/Int8.h>
#include <std_msgs/UInt16MultiArray.h>
#include <sensor_msgs/CompressedImage.h>
#include <drv_msgs/recognized_target.h>
#include <drv_msgs/recognize.h>
#include <cv_bridge/cv_bridge.h>
#include <image_transport/image_transport.h>
#include <image_tra... |
//
// Created by <NAME> on 25/11/18.
//
#include "precomp.h"
static float getrandom(unsigned int *seed0, unsigned int *seed1) {
*seed0 = 36969 * ((*seed0) & 65535) + ((*seed0) >> 16); // hash the seeds using bitwise AND and bitshifts
*seed1 = 18000 * ((*seed1) & 65535) + ((*seed1) >> 16);
unsigned int ires = ((*s... |
// **********************************************************************************
// OLED display management source file for remora project
// **********************************************************************************
// Creative Commons Attrib Share-Alike License
// You are free to use/extend but please ab... |
#include <chrono>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "Allocators.hpp"
using Allocator = Malloc;
struct Allocation
{
std::vector<void*> Allocs;
size_t Size;
long long Time;
};
long long TotalDuration = 0;
std::string AsSize(const size_t size)
{
... |
/**
* @file webDAVHelperProxy.cc
* @author <NAME>
* @copyright (C) 2018 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in
* 'LICENSE.txt'
*/
#include "posixHelper.h"
#include "webDAVHelper.h"
#include <boost/make_shared.hpp>
#include <boost/python.hpp>
#include <boost/python... |
/**
* File : F.cpp
* Author : <NAME>
* Created : 2018-2-26 20:57:11
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) // substr... |
/*
* Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: <NAME> <<EMAIL>>
*
* 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... |
#include "modules/test/build_ref.h"
#include "modules/pipeline/primitives.h"
#include "modules/bio_mapred/overlap_graph.h"
#include "modules/io/progress.h"
#include "modules/bio_base/reference.h"
#include <vector>
#include <gtest/gtest.h>
struct dup_record
{
dup_record(size_t _i, size_t _j, bool _flipped)
: i(_i... |
#include <algorithm>
#include <atomic>
#include <csignal>
#include <functional>
#include <iterator>
#include <optional>
#include <thread>
#include <type_traits>
#include <vector>
#include <cuckoo_time_translator/DeviceTimeTranslator.h>
#include "geometry_msgs/PoseStamped.h"
#include "geometry_msgs/TwistStamped.h"
#in... |
#include <sge_editor.h>
#include <sge_render/mesh/RenderMesh.h>
#include <sge_render/mesh/WavefrontObjLoader.h>
#include <sge_render/command/RenderCommand.h>
#include <sge_render/vertex/Vertex.h>
#include <sge_render/vertex/VertexLayoutManager.h>
namespace sge {
class MainWin : public NativeUIWindow {
... |
/*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 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 Public License as published by the
* Free Software Founda... |
#include "DL_Aircon.h"
#ifndef DL_SERIAL
#define DL_SERIAL Serial
#endif
/*
* YX1FF
*
* 32 Bit Value
* NEC Encoding
* | Timer hrs |
* +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
* | Mode |ON| Fan | 0| S|Temperature|.5|10|20|TO|
* +--+--+--+--+--+--+--+--+--+--+--+--... |
#include <mbgl/renderer/fill_bucket.hpp>
#include <mbgl/style/layers/fill_layer.hpp>
#include <mbgl/renderer/painter.hpp>
#include <mbgl/shader/plain_shader.hpp>
#include <mbgl/shader/pattern_shader.hpp>
#include <mbgl/shader/outline_shader.hpp>
#include <mbgl/shader/outlinepattern_shader.hpp>
#include <mbgl/gl/gl.hpp>... |
#include "game.hpp"
#include <math.h>
#include "b3d.h"
#include "ship2.h"
#include "manlowpoly.h"
#include "sprite.h"
using namespace blit;
render_t rnd;
B3LObj_t* pShip;
B3LObj_t *pBox;
B3LObj_t* pBox2;
B3LObj_t* pBitmap;
B3LObj_t* pMan;
B3LObj_t* pRain;
euler3_t angle;
#define B3L_logMat3(m)\
... |
#include "githubtab.h"
GithubTab::GithubTab(QWidget *parent) : QWidget(parent){
qRegisterMetaType<QTextCursor>("QTextCursor");
qRegisterMetaType<QTextCharFormat>("QTextCharFormat");
auto gridlayout = new QGridLayout();
auto *pr1 = new QGroupBox("PRs awaiting approval");
auto layout = new QVBoxLay... |
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <strings.h>
#include <cstring>
#include <map>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
#define MAX 9 // max length of each word string, not including '\0'
typedef struct {
char str[MAX];
char* tokenType;
... |
/********************************* TRICK HEADER *******************************
PURPOSE: ( Simulate a hot-air balloon. )
LIBRARY DEPENDENCY:
((Balloon.o))
*******************************************************************************/
#include "balloon/include/Balloon.hh"
#include "atmosphere/include/atmosphere.h"... |
#include <Arduino.h>
#include "database.h"
#include "scheduler.h"
#include "ostime.h"
#include "xsynchro.h"
#include "spy.h"
#include "logging.h"
#include "rs485.h"
#include <SPI.h>
#include <Ethernet.h>
#include <pinprog.h>
#define NUM_JOBS 6
#define NUM_INIT_JOBS 8
T_JOB *activeJobTable;
long numJobs;
/**
* prin... |
/*
InputReader.cpp
The header handles all the input phases of the program
from the name of the file to the input of the file.
<NAME> A01039589
Version: 7.0 last modified 19/11/2019
*/
//.b =150
//.d=60
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <cmath... |
#include <iostream>
#include <cstdio>
#include <cassert>
#ifdef DEBUG
#include <ctime>
#include <iomanip>
#endif
#include "boost/numeric/ublas/matrix.hpp"
#include "boost/numeric/ublas/vector.hpp"
#include "types.h"
#include "codes.h"
#include "debug.h"
#include "error.h"
#include "util.h"
#include "yices_wrapp... |
#include "RenderGLWidget.h"
RenderGLWidget::RenderGLWidget(QWidget *parent) : QOpenGLWidget(parent), shaders(NULL), contextSetup(false) {
// // qDebug() << "in RenderGLWidget constructor";
vertices.data = NULL;
vertices.size = 0;
points.data = NULL;
points.size = 0;
color.data = NULL;
color.size = 0;
vertic... |
#include "FileSplit.h"
std::vector<std::string> FileSplit::split(const std::string &filepath,
long int chunk_size,
bool del_oldfiles,
const std::string &savedir) {
index_ = 0;
long __f... |
/**
* @file Creature.cpp
* Purpose : Define the creature behavior and mind.
*
* @author Eresia & Monsieur
* @version 1.0
* @date 29/02/2016
* @copyright The Unlicense
*/
#include "Creature.hpp"
using namespace std;
Creature::Creature(int id, Map& map, Position position) : Creature(id, map, position, NeuralNetwork(BRA... |
/**************************************************************
* Problem: OJ ProID
* Author: 芊枫
* Date: 2021 Mon Date
* Algorithm:
**************************************************************/
#include <algorithm>
#include <bits/stdc++.h>
#include <cstdint>
#include <cstdio>
#include <shared_mutex>
#define INF ... |
/*
* Kod interpretera maszyny rejestrowej do projektu z JFTT2014
*
* Autor: <NAME>
* http://mgc.im.pwr.wroc.pl/
* 2014-04-14
*/
#include<iostream>
#include<fstream>
#include<vector>
#include<map>
#include<stdlib.h> // rand()
#include<time.h>
using namespace std;
const int SCAN = 0;
const int PRINT = 1;
const ... |
// Copyright (c) 2021 <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, merge, publish, distr... |
/* Copyright 1986, 1988, 1989, 1990 by Abacus Research and
* Development, Inc. All rights reserved.
*/
/* Forward declarations in QuickDraw.h (DO NOT DELETE THIS LINE) */
#include <base/common.h>
#include <QuickDraw.h>
#include <CQuickDraw.h>
#include <MemoryMgr.h>
#include <quickdraw/cquick.h>
#include <quickdraw... |
// CryEngine Source File.
// Copyright (C), Crytek, 1999-2014.
#include "StdAfx.h"
#include "GameVolumesManager.h"
//#pragma optimize("", off)
//#pragma inline_depth(0)
CGameVolumesManager::CGameVolumesManager()
{
}
CGameVolumesManager::~CGameVolumesManager()
{
}
IGameVolumesEdit* CGameVolumesManager::GetEditor... |
// #include "../../head.h"
// #include "../dlinked_node.h"
class LRUCache {
public:
struct DLinkedNode {
int key;
int value;
DLinkedNode* pre;
DLinkedNode* next;
DLinkedNode() : key(0), value(0), pre(nullptr), next(nullptr) {}
DLinkedNode(int key, int value) : key(ke... |
/*************************************************************************
> File Name: sampler.cc
> Author: anryyang
> Mail: <EMAIL>
> Created Time: Fri 29 Sep 2017 10:35:41 AM
************************************************************************/
#include "sampler.h"
#include <stdlib.h> /* s... |
// ---------------------------------------------------
/// State machine for period (which are transformed into bits)
// ---------------------------------------------------
#include "PeriodSM.h"
unsigned long aulDbgTimeDiff[100];
unsigned char aucDbgState[100];
unsigned int unDbgIdx = 0;
namespace Dcc
{
/// [us] M... |
#include <cstdio>
#include <algorithm>
#include <vector>
#include <queue>
#include <unordered_map>
#include "HuffmanArchive.h"
#include "HuffmanDearchive.h"
using std::priority_queue;
extern size_t eprintf(const char* format, ...);
extern bool outputTree;
namespace HuffmanOldArchive {
struct BinatyBuffer {
un... |
// Copyright 2016-2018 SICK AG. All rights reserved.
#include "DeviceSelector.h"
#include "GenIRanger.h"
#include "SampleUtils.h"
#include "SingleDeviceConsumer.h"
#include <fstream>
#include <string>
void usage(int, char* argv[])
{
std::cout << "Usage:" << std::endl
<< argv[0] << " <file path for buf... |
// (n+q) log n segtree
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define gc getchar()
#define pc(x) putchar(x)
template<typename T> void scan(T &x){x = 0;bool _=0;T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x=_?-x:x;}
templat... |
// Copyright (c) 2020-present, VidarDB, 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 directory.
//
// 1. PREREQUISITE:
//... |
#include "Client/GameLayer.hh"
#include "GUI/String.hh"
#include "GUI/Input.hh"
#include "GUI/Sprite.hh"
#include "GUI/Utility/Graphic.hh"
#include "SimpleIni/SimpleIni.hpp"
GameLayer::GameLayer() :
MainMenuItem("GAME"),
_square_color_picker(sf::Quads, 16),
_tri_color_picker(sf::Quads, 4)
{
CSimpleIniA &ini = ... |
/*
* World.cpp
*
* Created on: 9 mar 2016
* Author: ms
*/
#include "world.hpp"
#include <cstdlib>
#include <ctime>
#include <algorithm>
#include <thread>
#include <fstream>
#include <boost/make_shared.hpp>
#include "serializationCustom.hpp"
#include "shapeGenerator.hpp"
#include "worldGenerator.hpp"
#i... |
#include <time.h>
#include <malloc.h>
#include <string.h>
#include <stdio.h>
#include <setjmp.h>
#include <android/log.h>
#include "Image.h"
extern char* gLoadBuffer;
extern long gLoadFileSize;
extern int gLoadError;
extern BUFFMNG* gBuffMng;
extern long gBuffNum;
extern int gCancel;
extern char gDitherX_3bit[8][8... |
#include "Bar.hpp"
#include <iostream>
#include <QDebug>
using namespace aurals;
bool barLog = false;
int aurals::translateDenum(std::uint8_t den)
{
switch (den)
{
case 1: return 4000;
case 2: return 2000;
case 4: return 1000;
case 8: return 500;
case 16: return 250;
... |
#include <errno.h>
#include <limits.h>
#include <pthread.h>
#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <pthread_np.h> // for pthread_set_name_np
#endif
#include <sched.h> // for sched_yield
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <sys/mman.h>
#include... |
#include <GL/freeglut.h>
#include <utility>
#include <math.h>
#include <iostream>
#include <string>
#include "GLMatrixf.h"
#include "GLVector3f.h"
#include "Timer.h"
#include "Camera.h"
#include "Constants.h"
GLuint star;
float rotation;
Timer timer;
Camera camera;
std::pair<float, float> rotate2d(const std::pair<f... |
/*
* @file GemOverlayMergeAlg.cxx
*
* @brief Calls an user-chosen tool to merge GemOverlay from input overlay files
*
* @author <NAME>
*
* $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/Overlay/src/MergeAlgs/GemOverlayMergeAlg.cxx,v 1.3 2011/06/27 17:45:57 usher Exp $
*/
#include "GaudiKernel/Algori... |
/**************************************************************************//**
*
* @file taurob_flipper_node.cpp
* @author <NAME>, taurob GmbH
* @date 30 May 2016
* @brief Node to integrate taurob flipper functionality with ROS
*
*
* Copyright (c) 2016 taurob GmbH. All rights reserved.
* Perfektast... |
//
// Copyright 2013 <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.
//
// This program ... |
/**
*
* @file customisation/sfinae.hpp
*
* @brief A set of utility routines to implement SFINAE patterns
*
* @details This file defines some metaprogramming functions and structures
* for using Substitution Failure Is Not An Error (SFINAE) patterns
* during parameter substitutio... |
#include <iostream>
#include <stdint.h>
#include "Rasterizer.h"
void generateTextureVector(double* texture)
{
// texture
//c1
texture[0] = 1.00f;
texture[1] = 0.00f;
texture[2] = 0.00f;
texture[3] = 1.00f;
//c2
texture[4] = 0.00f;
texture[5] = 1.00f;
texture[6] = ... |
/*
* Copyright 2010 <NAME> <<EMAIL>>. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#include "CodecTable.h"
extern "C" {
#include "avcodec.h"
#include "avformat.h"
}
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (50 << 8))
typedef AVCodecID CodecID;
#else
#define AV_CODEC_ID_NONE CODE... |
/**
* gcodetimer
*
* Copyright © 2016 <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, merge,... |
//===--- TypeCheckCompletionCallback.cpp ----------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include "Config.hpp"
#include <algorithm>
#include <cstdio>
#include <map>
#include <memory>
#include <string>
#include <obs-module.h>
#include <util/bmem.h>
#include <util/config-file.h>
#include <util/platform.h>
namespace {
using namespace OBSRazerChroma;
static constexpr const char *c_config_name = "config.in... |
/*
* File: main.cpp
* Author: Raman
*
* Created on 7 January, 2018, 8:39 PM
*/
// INCLUDES
#include <iostream>
#include <stdlib.h>
#include "headerFiles/trees/trees.h"
using namespace std;
// DEFAULT GLOBAL VARIABLES
// _Warning: Do not change the position of any option_
string exitOption = "Exit (X)";
stri... |
#include <fstream>
#include <string.h>
#include "BVH.h"
BVH::BVH()
{
motion = NULL;
Clear();
}
BVH::BVH( const char * bvh_file_name )
{
motion = NULL;
Clear();
Load( bvh_file_name );
}
BVH::~BVH()
{
Clear();
}
void BVH::Clear()
{
int i;
for ( i=0; i<channels.size(); i++ )
... |
// MU_ID:19105754
// FZU_ID:831901114
// Lab_2.cpp
// Lab_2
// XI_LIN_19EE1
// Created by <NAME> on 2021/9/22.
//
#include <iostream>
#include <fstream>
#include <string>
#include <queue>
#include <stack>
#include <ctype.h>
using namespace std;
const string Keyword[32] =
{
"auto", "break", "case","char",
... |
/*
* Copyright (c) 2019 by flomesh.io
*
* Unless prior written consent has been obtained from the copyright
* owner, the following shall not be allowed.
*
* 1. The distribution of any source codes, header files, make files,
* or libraries of the software.
*
* 2. Disclosure of any source codes pertaini... |
#pragma once
#include "system/Config.hpp"
#include "graphics/GPUTypes.hpp"
#include "Common.hpp"
class Texture;
/** \brief Provides helpers for serialization/deserialization of basic types.
\ingroup System
*/
class Codable {
public:
/** Decode a boolean from a parameters tuple, at a specified position.
A boolea... |
//
// NextNodeInBinaryTrees.cpp
// OfferReview
//
// Created by CHM on 2020/7/28.
// Copyright © 2020 CHM. All rights reserved.
//
#include "NextNodeInBinaryTrees.hpp"
NextNodeInBinaryTrees::BinaryTreeNode* NextNodeInBinaryTrees::getNext(BinaryTreeNode* pNode) {
if (pNode == nullptr) {
return nullptr;... |
//---------------------------------------------------------- -*- Mode: C++ -*-
// $Id$
//
// Created 2008/06/11
//
//
// Copyright 2008 Quantcast Corp.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compli... |
// SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2021 <NAME> <<EMAIL>>
*
* @file unittest_interpreter.cpp
* @date 02 April 2021
* @brief interpreter test
* @see https://github.com/nnstreamer/nntrainer
* @author <NAME> <<EMAIL>>
* @bug No known bugs except for NYI items
*/
#include <functional>
#incl... |
/**
* Copyright 2020 Huawei Technologies 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
//
// Copyright 2016 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.
//
// translator_fuzzer.cpp: A libfuzzer fuzzer for the shader translator.
#include <cstddef>
#include <cstdint>
#include <iostream>
#include <me... |
/*
-\Delta u + u - 2v = 0
-0.5\Delta v = 3 * sin(x) * sin(y) * sin(z)
-u_x + 3u|_{x=0} = 3 * (-1/3 * sin(y) * sin(z))
u_x + 3u|_{x=pi} = 3 * (-1/3 * sin(y) * sin(z))
-u_y + 3u|_{y=0} = 3 * (-1/3 * sin(x) * sin(z))
u_y + 3u|_{y=pi} = 3 * (-1/3 * sin(x) * sin(z))
-u_z + 3u|_{z=0} = 3 * (-1/3 * sin(x) * sin(y))
u_z + 3u|_... |
// STL includes
#include <csignal>
#include <iomanip>
// QT includes
#include <QImage>
// getoptPlusPLus includes
#include <getoptPlusPlus/getoptpp.h>
// Dispmanx grabber includes
#include <grabber/dispmanx/DispmanxFrameGrabber.h>
using namespace vlofgren;
static bool running = true;
void signal_handler(int sign... |
/**
* @author <NAME> (<EMAIL>)
* @file nbc_main.cpp
*
* This program runs the Simple Naive Bayes Classifier.
*
* This classifier does parametric naive bayes classification assuming that the
* features are sampled from a Gaussian distribution.
*
* mlpack is free software; you may redistribute it and/or modify i... |
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
using namespace std;
struct Solicitare
{
int ziuaCazarii;
int durataCazarii;
};
/*
-> numarCamere reprezinta numarul camerelor libere (sau care vor fi libere in ziua in care o perioada de cazare se sfarseste)
-> numarSolicitari r... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
/*
MIT License
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 limitation the rights
to use, copy, modify, merge, publish, distrib... |
#include "rpc.h"
#include "rq.h"
#include "multi.h"
#include "location.h"
#include "utils.h"
#include <util/generic/hash.h>
#include <util/thread/factory.h>
#include <util/system/yield.h>
#include <util/system/spinlock.h>
using namespace NNeh;
namespace {
typedef std::pair<TString, IServiceRef> TServiceDescr;
... |
#include "c_engine_display.h"
#include "world.h"
#include "location.h"
c_engine_display::c_engine_display()
{
}
void c_engine_display::displayWindow(){
int worldSize_X = 20;
int worldSize_Y = 20;
world NewWorld(worldSize_X,worldSize_Y);
//int specialcounter=0;
sf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.