text stringlengths 3.08k 22k |
|---|
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009, Anima Vitae 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:
//
// * Redistribu... |
#include "segment.pb.h" // for ResizeArgs (generated file)
#include "scanner/api/kernel.h" // for VideoKernel and REGISTER_KERNEL
#include "scanner/api/op.h" // for REGISTER_OP
#include "scanner/util/memory.h" // for device-independent memory management
#include "scanner/util/opencv.h" // for using... |
//
// Created by dimitrije on 2/11/19.
//
#include <SharedEmployee.h>
#include <memory>
#include "HeapRequestHandler.h"
#include "StoStoreOnPageRequest.h"
#include "StoGetSetPagesRequest.h"
#include "StoGetSetPagesResult.h"
#include <boost/filesystem/path.hpp>
#include <PDBSetPageSet.h>
#include <PDBStorageManagerBack... |
#include "SimplexNoise.hpp"
/*
Hash lookup table as defined by <NAME>.
This is a randomly arranged array of all numbers from 0-255 inclusive.
*/
static constexpr std::uint8_t ORIGINAL_PERMUTATION[256] = {
151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7,
225, 140, 36, 103, 30,... |
#include "bip39.h"
#include "mnemonic.h"
#include "pbkdf2_sha512/sha2.hpp"
#include "utils.h"
#include <iostream>
#ifndef _WIN32
# ifdef __linux__
# include <linux/random.h>
# else
# include <sys/random.h>
# endif
# include <sstream>
# include <sys/syscall.h>
# include <unistd.h>
#else
... |
#include "stdafx.h"
#include "ed.h"
static lisp bq_process (lisp x);
static lisp
bq_mapcar_cadr (lisp list)
{
if (list == Qnil)
return Qnil;
check_cons (list);
lisp result = xcons (Fcadar (list), Qnil);
lisp p = result;
while (1)
{
list = xcdr (list);
if (!consp (list))
break;
... |
/*
* Copyright (c) 2020-2021, NVIDIA 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
#include <stdlib.h>
#include <GL/glut.h>
#include <stdio.h>
#include <vector>
#include <math.h>
#include "utils/Colors.h"
#include "utils/Points.h"
#include "utils/Renderer.h"
#include "utils/Draw.h"
#define THICK_LINE 3
#define THIN_LINE 1
#define IT_CNT 5
#define MAX_IT_CNT 10
const int ESC = 27;
const int ENTER ... |
/*
* Adplug - Replayer for many OPL2/OPL3 audio file formats.
* Copyright (C) 1999 - 2003 <NAME> <<EMAIL>>, et al.
*
* 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
* versi... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* game.cpp :+: :+: :+: ... |
#include <QCoreApplication>
#include "TX60L.h"
#include <string>
#include <fstream>
#include <iostream>
#include <QThread>
#include "tcpserver.h"
#define PI 3.14159265
#define SQR(x) ((x)*(x))
#define SUM(x, y, z, r, s, t) ((x) + (y) + (z) + (r) + (s) + (t))
using namespace std;
class Sleeper : public QThread
{
pub... |
//
// Description: 3D Extrusion
// Author: <NAME> and Scidian Software
// License: Distributed under the MIT License
// Source(s): https://github.com/stevinz/extrude
//
// Copyright (c) 2021 <NAME> and Scidian Software
//
//
#include <iomanip>
#include "../compare.h"
#include "color.h"
inl... |
#include "CoolProp.h"
#include <vector>
#include "CPExceptions.h"
#include "FluidClass.h"
#include "DMC.h"
static char EOSstr [] = "<NAME>, <NAME> and <NAME>, \"Thermodynamic Properties of Dimethyl Carbonate\", J. Phys. Chem. Ref. Data, Vol. 40, No. 4, 2011";
DimethylCarbonateClass::DimethylCarbonateClass()
{
double... |
/*
* Copyright (c) 2019 <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <iostream>
#include <cmath>
#include <random>
#if defined(_WIN32) // windows
# define NOMINMAX // to remove min,max macro
# include <windows.... |
#include "characterdata.hpp"
#include "editor.hpp"
#include "list_skills.hpp"
#include "sqlite3.h"
#include "utils.hpp"
#include "parse.hpp"
#include <ctype.h>
#include <ncurses.h>
#include <panel.h>
#include <sstream>
#include <string.h>
extern sqlite3* savefile;
extern gurps_cdata gchar_data;
std::string find_rel... |
/*
-- clMAGMA (version 0.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@author <NAME>
@precisions normal z -> s d c
*/
#include "common_magma.h"
#define A(i, j) (a +(j)*lda + (i))
#define dA(i, j) dwork, ((j)*ldda +... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include <iostream>
#include <fstream>
#include <vector>
#include <cmath>
#include <opencv2/opencv.hpp>
#include <string>
using namespace std;
struct point {
float x;
float y;
};
struct segment {
int id;
vector<point> points;
vector<point> left;
vector<point> middle;
vector<point> orig;
... |
#include "classification.h"
#include <iosfwd>
#include <vector>
#define USE_CUDNN 1
#include <caffe/caffe.hpp>
#include <opencv2/cudaarithm.hpp>
#include <opencv2/cudaimgproc.hpp>
#include <opencv2/cudawarping.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "common.h"
#include "gpu_allocator.h"
using namespace... |
/* choose_marker_plugin.cpp
* This is a test plugin, you can use it as a demo.
* 2018-7-19 : by LXF
*/
#include "v3d_message.h"
#include <vector>
#include <iostream>
#include "choose_marker_plugin.h"
#include "../../../../v3d_external/v3d_main/basic_c_fun/basic_surf_objs.h"
using namespace std;
Q_EXPORT_PLUGIN2(ch... |
#pragma once
#include <fstream>
#include <iostream>
#include <vector>
#include "cppjit/cppjit.hpp"
#include "cppjit/function_traits.hpp"
#include "abstract_kernel.hpp"
#include "autotune_exception.hpp"
#include "continuous_parameter.hpp"
#include "fixed_set_parameter.hpp"
#include "parameter_value_set.hpp"
namespac... |
#include "musicallogic.h"
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <unistd.h>
#include <QTimer>
#include <QQmlContext>
#include <QQmlProperty>
#define PLOT 0
const int millisecondsPerSecond = 1000;
const int microsecondsPerSecond = millisecondsPerSecond * 1000;
const int nanosecondsPerSecond =... |
#include <iostream>
#include<cmath>
#include<ctime>
using namespace std;
#define N 20 // city
#define M 30 //ants
double d[N][N];
double c[N][2];
double alpha = 2;
double beta = 3;
double rou = 0.1;
double alpha1 = 0.1;
double qzero = 0.01;
double Lnn;
class antcolonysystem{
private:
double info... |
/* test_DM.cpp - test the ../bin/dm-materialize executable
*
* The tests require UTF-8 support in the database.
MySQL:
CREATE USER DM@localhost IDENTIFIED BY "DM";
GRANT ALL PRIVILEGES ON DM.* TO DM@localhost;
SET character_set_server = utf8;
CREATE DATABASE DM;
or create the database without setting charac... |
/**
* @author <NAME>
* @version 2.4.0, Dec 8, 2015
*
* @file Bidder.cpp
*
* Bidder class implementation
*/
#include "Bidder.h"
#include "../lib_graphs/Graph.h"
#include "../lib_graphs/Subgraph.h"
#include "../lib_graphs/SpanningTree.h"
#include "../lib_graphs/Path.h"
#include "../lib_auction/AuctionDefs.h"
#inc... |
#include "ZSkeleton.h"
#include "BitConverter.h"
#include "StringHelper.h"
#include "Globals.h"
#include "HighLevel/HLModelIntermediette.h"
#include <typeinfo>
using namespace std;
using namespace tinyxml2;
ZLimbStandard::ZLimbStandard()
{
name = "";
transX = 0;
transY = 0;
transZ = 0;
childIndex = 0;
siblingIn... |
#define DEBUG_TYPE "epp_profile"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/CFG.h"
#include "llvm/Bitcode/BitcodeWriter.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Domin... |
/**
******************************************************************************
* @file gapuino_himax.c
* @author GreenWave Technologies Application Team
* @brief This file includes a standard driver for the HIMAX I2C
* camera mounted on GAPUINO board.
@verbatim
=======================================... |
// **************************************************************************************************
//
// The MIT License (MIT)
//
// 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"),... |
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2001 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
//%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Cor... |
/*
* CometOS --- a component-based, extensible, tiny operating system
* for wireless networks
*
* Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... |
/*
* Copyright 2019 Xilinx 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 ... |
/*
* main.cpp for FR-HIT
* Copyright (c) 2010-2011 <NAME> All Rights Reserved.
*
* 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... |
/*
Copyright 1999 Microsoft Corporation
Neptune data collection server
<NAME> (wsmith)
Matches Symbols with The Corresponding Binary
*/
#include <windows.h>
#include <dbghelp.h>
#include <symres.h>
#include <stdio.h>
#include <stdlib.h>
#include <shlwapi.h>
#include <sys\stat.... |
//
// $Id$
//
#include "OMPTest.h"
#include <fstream>
#include <stdlib.h>
// test1
#include <omp.h>
// test2
#include <tbb/parallel_for.h>
#include <tbb/blocked_range.h>
#include <tbb/task_scheduler_init.h>
OMPTest1::OMPTest1() : OMPTest(), a(NULL), b(NULL), c(NULL)
{
setMatrixSize();
setLoops();
}
void
OM... |
/*
* Copyright (C) 2015 The Android Open Source Project
* 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, t... |
/* Copyright (c) 2005, Regents of Massachusetts Institute of Technology,
* Brandeis University, Brown University, and University of Massachusetts
* Boston. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
/*
** m i m e d e m . c p p
**
** Purpose: implement the loader functions for defer/demand -loaded libraries
**
** Creators: yst
** Created: 2/10/99
**
** Copyright (C) Microsoft Corp. 1999
*/
#include "pch.hxx"
#include "imnact.h"
#include <acctimp.h>
#include "resource.h"
// W4 stuff
#pragm... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
dvs.setup();
//GUI
int x = 0;
int y = 0;
ofSetWindowPosition(0, 0);
f1 = new ofxDatGuiFolder("Control", ofColor::fromHex(0xFFD00B));
f1->addBreak();
f1->addFRM();
f1->addBre... |
// Copyright 2020 Massachusetts Institute of Technology.
// Subject to FAR 52.227-11 – Patent Rights – Ownership by the Contractor (May 2014)
// SPDX-License-Identifier: MIT
// See License.txt
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <thread>
#include "SRanipal.h"
#include "SRanipal_Eye.h"... |
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
/*
ID: ivan.bu1
PROG: prime3
LANG: C++
*/
#include <iostream>
#include <iterator>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <cctype>
#include <cstring>
#include <cstring>
#include <sstream>
#include <cassert>
using namespace std;
#define MAXPRIME 100000
int... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
// cmd_random_bv.cc-- generate random bit vectors
#include <string>
#include <cstdlib>
#include <cstdint>
#include <iostream>
#include <vector>
#include <random>
#include "utilities.h"
#include "prng.h"
#include "bit_vector.h"
#include "bloom_filter.h"
#include "support.h"
#include "commands.h"
#include "cmd_random_... |
/**********************************************************************/
/** Microsoft Windows NT **/
/** Copyright(c) Microsoft Corp., 1991 **/
/**********************************************************************/
/*
dlg.cxx
... |
//
// Parser.cpp
// Exercises
//
// Created by <NAME> on 07/07/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#include "Parsley.h"
#include "ParsleyErrors.h"
#include <fstream>
// FIXME: Re-write comments into file after parsing.
std::string strip(Str_cItr begin, Str_cItr end)
{
while (begin != en... |
#include "GIRepository.hpp"
#include "../Gtk/GIBaseInfo.hpp"
#include "../thread.hpp"
#include "../algorithm.hpp"
#include "../convert/string.hpp"
#include "../convert/callable.hpp"
#include "../convert/numeric.hpp"
#include <iostream>
/*
=head1 NAME
require "luacxx.search.GIRepository"
=head1 DESCRIPTION
This s... |
// Sample.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//
#include "stdafx.h"
#define WIN32_LEAN_AND_MEAN
#include "LogPCD.h"
#include "CustomFilter.h"
#include <string.h>
#include "RGBRegGrowing.h"
#include "NormalRegGrowing.h"
#include <pcl/console/parse.h>
#include <pcl/io/pcd_io.h>
#include "findObjects.h"
#include "robo... |
#include <stdio.h>
#include <vector>
#include "unacked_buffer.hpp"
#define MAX_CYCLE 100
using namespace std;
int cycle = 0;
class test_util {
public:
test_util();
~test_util() {}
void run_one_cycle(stream<struct net_axis_64> *tx_buff_payload,
stream<struct route_info> *tx_buff_route_info,
stream<... |
#include "enforced_hill_climbing_search.h"
#include "successor_generator.h"
#include "policy-repair/deadend.h"
#include "heuristic.h"
#include "operator.h"
#include "pref_evaluator.h"
#include "plugin.h"
#include "utilities.h"
EnforcedHillClimbingSearch::EnforcedHillClimbingSearch(
const Options &opts)
: Searc... |
#include "../advent_of_code.hpp"
#include <algorithm>
#include <cstring>
// https://adventofcode.com/2015/day/21
//! You have 100 hp and you want to defeat the monster described in the input.
//!
//! You can buy items from a shop. You have to buy 1 weapon, at most 1 armor,
//! and at most 2 rings.
//!
//! What is the... |
// =========================================================================== //
// //
// Copyright 2009 <NAME> and McGill University. //
// //
// Licens... |
/*
*********************************************************
This code is a proprietary of Kapil Rana
Following may not be used in part on in whole without the
prior permission of Kapil Rana
Author: <NAME>
Date: 20/06/2015
Purpose: PUSH FYI RS SSL TCP Server Listener.
****************************************... |
/*
* tiny_IRremote
* Version 0.2 July, 2016
* <NAME>
* Fixed what was originally rather broken code from http://www.gammon.com.au/Arduino/
* ...itself based on work by <NAME>.
*
* This code was tested for both sending and receiving IR on an ATtiny85 DIP-8 chip.
* IMPORTANT: IRsend only works from PB4 ("pin 4" a... |
/*
* test_vk_handler.cpp - test vulkan handler
*
* Copyright (c) 2018 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://www.apache.org/licenses/LICEN... |
/*
* *
* This code is designed to make the quad autonomously *
* takeoff in ALT_HOLD mode, hover in the air for 5 seconds, and then *
* land by changing to LAND mode. *
*******... |
/* Copyright 2020 <NAME>. 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 agreed to in writ... |
#include "UniversityAccessSystem.h"
using namespace std;
/*
* guests -> lecture room, conference room on the first floor <-> blue level
* students —> class room, conference room <—> green level
* lab employees —> class room, conference room <—> green level
* professors —> blue + green level rooms + lecture room, ... |
/*
* Copyright 2018 Azlehria
*
* 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,
* di... |
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "address_space.h"
#include "gtt.h"
std::unique_ptr<GpuMapping> AddressSpace::MapBufferGpu(std::shared_ptr<AddressSpace> address_space,
... |
/*
Copyright (c) 2018-2020 <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, distribute, sub... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2012, <NAME>, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be us... |
#include <iostream>
#include <fstream>
#include <string>
#include "acmacs-base/argv.hh"
#include "acmacs-base/file-stream.hh"
#include "acmacs-base/temp-file.hh"
#include "acmacs-base/quicklook.hh"
#include "geographic-settings.hh"
#include "geographic-map.hh"
#include "setup-dbs.hh"
// -----------------------------... |
#include <stdint.h>
#include <stdarg.h>
#include "libRtspServer.h"
#include "xop/RtspServer.h"
#include "xop/H264Parser.h"
static std::shared_ptr<xop::EventLoop> event_loop(new xop::EventLoop());
static std::shared_ptr<xop::RtspServer> rtsp_server;
// Default log printf function
static int logprintf_default(const ch... |
// Copyright <NAME> (c) 2018
//
// 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 "p2m1.hpp" //polygon2D_to_Vector2D
#include <gnuplot-iostream.h> //Gnuplot
#include <configSpaceTools.hpp> //Polygon2D, Robot, World, Vector2D
#include <b0RemoteApi.h> //para comunicação com o coppeliaSim via Blue-zero
#include <utils.hpp> //pioneer_model
#include <iostream> //cout
#include <stdio.h> //... |
#include <time.h>
#include <plog/Log.h>
#include <iostream>
#include <fstream>
#include <memory>
#include <future>
#include <thread>
#include <ctime>
#include "transaction_manager.h"
#include "result.h"
#include "api_store.h"
#include "packet_sender.h"
#include "state.h"
#include "config_accessor.h"
#include "constan... |
#define _GLIBCXX_USE_NANOSLEEP // Workaround to use std::this_thread::sleep_for
#include <iostream>
#include <map>
#include <iterator>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <thread>
#include <signal.h>
#include <sys/mman.h>
#include <boost/atomic.hpp>
#include <chrono>
#include <arpa/ine... |
#include <stdio.h>
#include <iostream.h>
#include "flags.h"
#include "genrl.h"
#include "stack.h"
FLAGS::FLAGS(FIELD<float>& f,float low): FIELD<int>(f.dimX(),f.dimY())
//Construct this and adjust f by thresholding f with value low. f will be set to
//0 outside the evolved region, 1 on its boundary, and INFINITY in... |
#include <stdio.h>
#include <stdint.h>
#include <chrono>
#include <math.h>
typedef unsigned char byte;
double cpuFreq;
extern "C" void sha256_update(byte* ctx, byte* input, int num_blocks, byte* k);
#ifdef _WIN32
#include <intrin.h>
#include <Windows.h>
#pragma intrinsic(__rdtsc)
#else
#include <unistd.h> /* For sle... |
// ======================================================================== //
// BLOSPRAY - OSPRay as a Blender render engine //
// <NAME>, SURFsara <<EMAIL>> //
// Plugin API //
// ====================... |
/*
* Building.cpp
*
* Created on: Nov 10, 2016
* Author: Kyle
*/
#include "../Header/Building.h"
#include <math.h>
#include <string>
#include <vector>
using namespace std;
Building::Building(int x, int y) {
// Declare only values that will be constant for all building types
construct = 0... |
#include "nanodet_mnn.hpp"
using namespace std;
NanoDet::NanoDet(const std::string &mnn_path,
int input_width, int input_length, int num_thread_,
float score_threshold_, float nms_threshold_)
{
num_thread = num_thread_;
in_w = input_width;
in_h = input_length;
... |
#include "leditdist.hpp"
// The basic algorithm is as follows:
//
// Let A[n] represent the nth character of string n
// A[n..] represent the substring of A starting at n
// if n > length of A then it is considered an empty string
//
// edit_distance(A,B,limit) = ed(A,B,0)
// where ed(A,B,d) = d ... |
// STL Includes
#include <iostream>
#include <string>
// SDL Includes
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <SDL_mixer.h>
// Rebound Includes
#include "ball.hpp"
#include "brick.hpp"
#include "mainwindow.hpp"
#include "painter.hpp"
#include "rebound.hpp"
#include "sdlrects.hpp"
#includ... |
// SPDX-License-Identifier: MIT
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <assimp/cimport.h>
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include <boost/program_options.hpp>
#include <glm/vec2.hpp> // glm::vec2
#include <glm/vec3.hp... |
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <string>
#include <fstream>
#include <time.h>
using namespace std;
#define nokr 20
#define nkom 5
#define nreg 4
ofstream out;
int tab[nokr][nkom],wyniki[nokr][nkom];
int wynReg[nreg][nkom],wynGlob[nkom];
string naz[nokr];
void fmandaty(int glosy[],i... |
#include "goatcontrol.h"
using namespace std;
// Class for A* algorithm
// Takes in information from sensor readings
// Outputs a vector of coordinate pairs outlining a path from the start position to the target position
// TO DO: update this GoatControl constructor to reflect its use in the listener node
GoatContro... |
/// @file tmerge.cc
///
/// @brief test/development program for updates to normal equation merging.
///
/// @copyright (c) 2015 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// <EMAIL>
///
/// Th... |
/*
* ASCLITE
* Author: <NAME>, <NAME>, <NAME>, <NAME>
*
* This software was developed at the National Institute of Standards and Technology by
* employees of the Federal Government in the course of their official duties. Pursuant
* to title 17 Section 105 of the United States Code this software is not subject to... |
#include <iostream>
#include <fstream>
using namespace std;
class Student {
public:
char* nume;
int *note;
int nrNote;
int cod;
Student(char* Nume, int Cod) {
this->nume = new char[strlen(Nume) + 1];
strcpy(this->nume, Nume);
this->cod = Cod;
this->note = NULL;
this->nrNote = 0;
}
Student() {
this->... |
#include "ModuleImport.h"
#include "Application.h"
#include "ConsoleWindow.h"
#include "SceneViewerWindow.h"
#include "ComponentCamera.h"
#include "MeshImport.h"
#include "MaterialImport.h"
#include "Assimp/include/cimport.h"
#include "Assimp/include/postprocess.h"
#include "Assimp/include/cfileio.h"
#include "Componen... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
#include <iostream>
#include <fstream>
#include <sstream>
#include "CommonHeader.h"
#include <omp.h>
#include "NonlinearOptimizerInfo.h"
static Robot SimRobotObj;
static int SwingLimbIndex;
static std::vector<int> SwingLimbChain;
static Vector3 PosGoal;
static Vector3 GradGoal;
static std::vector<double> RefConfig;
st... |
//
// MyPathFinder.cpp
// MicromouseMazeSolver
//
// Created by <NAME> on 4/5/20.
// Copyright © 2020 UCLA. All rights reserved.
//
/*
enum MouseMovement {
MoveForward, // Move in the direction mouse is facing
MoveBackward, // Move opposite of the direction mouse is facing
TurnC... |
#include <windows.h>
#include <tchar.h>
#include "resource.h"
#include "server\VarController.h"
#include "MyMsgProc.h"
#include "server\LowDbAccess.h"
HWND ChkDatStartWith;
HWND ChkDatNotStartWith;
HWND ChkDatEndWith;
HWND ChkDatNotEndWith;
HWND ChkDatContains;
HWND ChkDatNotContains;
HWND ChkDatEqual;
HWND ChkDatNot... |
#include "requests.h"
struct WriteThis {
const char *readptr;
size_t sizeleft;
};
static size_t read_callback(void *dest, size_t size, size_t nmemb, void *userp)
{
struct WriteThis *wt = (struct WriteThis *)userp;
size_t buffer_size = size*nmemb;
if(wt->sizeleft) {
/* copy as much as possible from ... |
#include "decode.h"
int main(){
char a[100] = "10000000001";
initial();
int num = str_to_int(a);
cout<<num<<endl;
}
void initial()
{
ins[0].opcode = "0110111";
ins[0].opstring = "LUI";
ins[1].opcode = "0010111";
ins[1].opstring = "AUIPC";
ins[2].opcode = "1101111";
ins[2].o... |
#include "_all.h"
#define DEBUG_TYPE "clang-sfi-injector-mlpa"
std::string SMLPAInjector::toString() {
return "SMLPA";
};
std::string MLPAInjector::toString() {
return "MLPA";
};
std::vector<std::vector<const Stmt *>> getStmtLists(const CompoundStmt &block, ASTContext &Context,
... |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="greeter_client.cpp" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// --------------------------------------------------------... |
//
// skin.cpp
// - June 2001.
// - Sept 2001.
//
#include <sys/kernel.h>
#include <iostream.h>
// YARP stuff first.
#include "YARPImage.h"
#include "YARPPort.h"
#include "YARPImagePort.h"
#include "YARPImageFile.h"
#include "YARPTime.h"
#include "YARPImageDraw.h"
#define for if(1) for
// still some functions to be ... |
#include "gtest/gtest.h"
#include "pressio/ode_steppers_implicit.hpp"
#include "pressio/ode_advancers.hpp"
struct MyApp
{
using scalar_type = double;
using state_type = Eigen::VectorXd;
using velocity_type = state_type;
using jacobian_type = Eigen::SparseMatrix<double>;
public:
velocity_type createVel... |
#include "pch.hpp"
#include "imgui.h"
#include "WinImgui.hpp"
WinImgui::WinImgui( HWND hWnd, std::filesystem::path const& iniPath ) : mhWnd{ hWnd }, mTime{}, mTicksPerSecond{}, mLastMouseCursor{ ImGuiMouseCursor_COUNT }, mIniFilePath{ ( iniPath / "imgui.ini" ).string() }
{
IMGUI_CHECKVERSION();
ImGui::Creat... |
#include "injector.hpp"
unsigned int injector::inst_cnt_ = 0;
TOKEN_PRIVILEGES injector::old_tp_;
injector::injector()
:is_blocking_(true)
{
if(!inst_cnt_)
adjust_privileges(true);
inst_cnt_++;
}
injector::injector(const injector &inj)
:is_blocking_(inj.is_blocking_)
{
inst_cnt_++;
}
... |
/*
*
* Copyright (c) 2013-2017 <NAME>, Inc.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... |
// <NAME>, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2018
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.0 (2016/06/19)
#include "PlaneEstimationWindow.h"
int main(i... |
#include "image_renderer.h"
#include "observer.h"
const FLOAT ImageRenderer::cStrokeWidth = 1.5F;
ImageRenderer::ImageRenderer(Observer *observer)
: m_hWnd(0),
m_sourceWidth(0),
m_sourceHeight(0),
m_sourceStride(0),
m_pD2DFactory(NULL),
m_pRenderTarget(NULL),
m_pBi... |
#include <iostream>
#include <memory>
#include <functional>
#include <cmath>
#include <kdl/joint.hpp>
#include <kdl/frames.hpp>
#include <manus/messages.h>
#include <yaml-cpp/yaml.h>
using namespace echolib;
using namespace manus::messages;
using namespace std;
#include "voxelgrid.h"
#include <manus/files.h>
#def... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.