text stringlengths 3.08k 22k |
|---|
#include "SourceTypeResource.h"
#include <string>
//#include <iostream>
#include <Entry.h>
#include <File.h>
#include <stdio.h>
#include <Menu.h>
#include <MenuItem.h>
#include <Messenger.h>
#include <Node.h>
#include <NodeInfo.h>
#include <Resources.h>
#include "BuildInfo.h"
#include "DebugTools.h"
#include "FileAc... |
#include "SDIOAnalyzer.h"
#include "SDIOAnalyzerSettings.h"
#include <AnalyzerChannelData.h>
SDIOAnalyzer::SDIOAnalyzer()
: Analyzer2(),
mSettings( new SDIOAnalyzerSettings() ),
mSimulationInitilized( false ),
mAlreadyRun(false),
packetState(WAITING_FOR_CMD)
{
SetAnalyzerSettings(mSettings.get());
}
SDIOAnalyz... |
#include "Common.h"
#include "TConfig.h"
#include <fstream>
#include <iostream>
#include <istream>
#include <sstream>
// General
static constexpr std::string_view StrDebug = "Debug";
static constexpr std::string_view StrPrivate = "Private";
static constexpr std::string_view StrPort = "Port";
static constexpr std::str... |
/**
* prCube.cpp
*
* Copyright 2014 <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 applicabl... |
#include "predict.h"
string fixWord(string w){
if(w[0] == ' ')
w = w.substr(1,w.size());
for(unsigned int i = 0; i < w.size(); i++)
if(ispunct(w[i]))
w.erase(i--, 1);
else
w[i] = tolower(w[i]);
return w;
}
void getStopWords(Set &stopWords){
string buffer;
ifstream SW;
SW.open("stopWords");
... |
#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
#include <vector>
#include <set>
#include <utility>
#include <deque>
#include <iomanip>
#include <algorithm>
#include <chrono>
#include "mpi.h"
#include "Strategy.hpp"
#include "CheckEfficiencyByGraph.hpp"
#include "TraceGSNegatives.hpp"
using... |
#include <trees/nodes.h>
#include <analysis/x86_analysis.h>
#include <utility/defines.h>
#include <common/common_defines.h>
#include <algorithm>
#include <fstream>
#include <ostream>
using namespace std;
/* this implements the abstract class - Node */
/* constructors */
Node::Node()
{
para_num = -1;
is_para ... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* This is script-generated code (for the most part). */
/* See dataObjPut.h for a description of this API call.*/
#include "dataObjPut.h"
#include "rodsLog.h"... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#include "tools.h"
#include <fstream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measure... |
#include <iostream>
#include <fstream>
#include <queue>
#include <algorithm>
#include <map>
#include <set>
using namespace std;
ofstream outputFile("output.txt");
map<string,int> comingOrder; // process name and order
struct process{
int priority;
string name;
string codeFile;
int arrivalTime;
int... |
/*******************************************************************************
* nemesis. an experimental finite element code. *
* Copyright (C) 2004-2011 F.E.Karaoulanis [http://www.nemesis-project.org] *
* ... |
/*----------------------------------------------------------------------------
ChucK Concurrent, On-the-fly Audio Programming Language
Compiler and Virtual Machine
Copyright (c) 2003 <NAME> and <NAME>. All rights reserved.
http://chuck.stanford.edu/
http://chuck.cs.princeton.edu/
This program is free softwar... |
#include <sstream>
#include <algorithm>
#include <string>
#include <ofxAntescofog.h>
#include "ofxTLAntescofoNote.h"
#include "ofxTLAntescofoAction.h"
#include "Score.h"
#include "Values.h"
#include "Action.h"
#include <location.hh>
#include <position.hh>
#include "ofxCodeEditor.h"
ofxTLAntescofoSim::ofxTLAntescofoS... |
#include <wbmqtt/utils.h>
#include <wbmqtt/mqtt_wrapper.h>
#include <chrono>
#include <getopt.h>
#include <iostream>
#include <fstream>
#include <string>
#include <exception>
#include <stdexcept>
#include <mosquittopp.h>
#include <ctime>
#include <stdio.h>
#include <unistd.h>
#include <sstream>
#include <vector>
using... |
// Shooter.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include "SFML-2.5.1\include\SFML\Graphics.hpp"
#include "SFML-2.5.1\include\SFML\Audio.hpp"
#include "Hero.h"
#include "Enemy.h"
#include "Rocket.h"
sf::Vector2f viewSize(1024, 768);
sf::VideoM... |
// Filename: textMonitor.cxx
// Created by: drose (12Jul00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You shoul... |
/*
$info$
tags: Bin|AOTIRMerge
desc: Used merge AOTIR cache
$end_info$
*/
#include <FEXCore/Config/Config.h>
#include <FEXCore/IR/IntrusiveIRList.h>
#include <FEXCore/IR/RegisterAllocationData.h>
#include <FEXCore/Utils/Allocator.h>
#include <FEXCore/IR/AOTIR.h>
#include <atomic>
#include <filesystem>
#include <map>
... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
// ..
#include "ShaderFormatVectorVM.h"
#include "VectorVMBackend.h"
#include "CoreMinimal.h"
#include "FileHelper.h"
#include "ShaderCore.h"
#include "CrossCompilerCommon.h"
#include "ShaderCompilerCommon.h"
#include "ShaderPreprocessor.h"
#include "Vector... |
//Topic 14: Object Orientation: Interface vs. Implementation *
#include "blackJack.h"
#include <regex>
void blackJack::game() {
//Topic 9: Kontrollfluß: grundlegende Kontrollstrukturen
while (mm != EXIT) {
//Topic 9: Kontrollfluß: grundlegende Kontrollstrukturen
if (gs == LEAVE) {
... |
// Taken from Verilator manpage (CC0 license).
// stdlib
#include <cstdlib>
#include <cstdio>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <iostream>
// Common verilator headers
#include <verilated.h>
#include <verilated_fst_c.h>
// Other libs
#include <cxxopts.hpp>
/... |
//
// Created by monty on 24/09/16.
//
#include "glm/glm.hpp"
#include <iostream>
#include <functional>
#include <memory>
#include <string>
#include <sstream>
#include <iterator>
#include <unordered_set>
#include <map>
#include <EASTL/vector.h>
#include <EASTL/array.h>
using eastl::vector;
using eastl::array;
#inc... |
/******************************************************
*
* #, #, CCCCCC VV VV MM MM RRRRRRR
* % %( #%%# CC CC VV VV MMM MMM RR RR
* % %# # CC V V MM M M MM RR RR
* ,% % CC VV VV MM MM MM RRRRRR
* (% %, CC CC VVVV MM ... |
#include "lineUtilities.h"
// todo: add first and last line things... (no degenerate first and last points)
float doubleExponentialSigmoid (float x, float a){
float epsilon = 0.00001;
float min_param_a = 0.0 + epsilon;
float max_param_a = 1.0 - epsilon;
a = MIN(max_param_a, MAX(min_param_a, a));
a = 1.0-... |
/*******************************************************************************
*
* jlp_gseg_gnome_draw.cpp
* Drawing routines of JLP_Gseg_Gnome class
* JLP
* Version 30/10/2016
*******************************************************************************/
#include <stdlib.h>
#include <math.h>
#include "jlp_gseg_gno... |
#include<vector>
#include <fstream>
#include <stdlib.h>
#include <vnl/vnl_cross.h>
#include "Point2D.h"
#include "RandomNumberGenerator.h"
#include "LineParametersEstimator.h"
#include "Line2DParametersEstimator.h"
using namespace lsqrRecipes;
/**
* Generate points on a line with additive Gaussian nois... |
#include "Event_Handler.h"
#include <string>
#include <sstream>
#include <vector>
using namespace std;
// Placing actions in header file is recommended
void Event::actionEvent(ENetPeer* peer, string cch, string str) {
if (cch.find("action|wrench") == 0) {
// do something
}
else if (cch.find("action... |
//Rubisks trying to wrap leveldb-mcpe
#include <leveldb/cache.h>
#include <leveldb/comparator.h>
#include <leveldb/db.h>
#include <leveldb/env.h>
#include <leveldb/filter_policy.h>
#include <leveldb/write_batch.h>
#include <leveldb/zlib_compressor.h>
#define BOOST_PYTHON_STATIC_LIB
#define BOOST_SYSTEM_STATIC_LIB
#defi... |
// Copyright 2020 <NAME> <your_email>
#include <header.hpp>
#include <gtest/gtest.h>
#include <limits>
TEST(Task1, Middle) {
// базовый сценарий
std::vector<float> v1 = {11, 2, 36, 47, 5, 53, 56};
float result = mean(v1);
EXPECT_NEAR(result, 30, std::numeric_limits<float>::epsilon());
// отрицательные коэфи... |
/*
* Copyright (c) 2020 <NAME>
* 31515 Wunstorf (Hannover) Germany
* Licensed under the Apache License, Version 2.0);
*/
#include "main.h"
#include "ProgramInterface.h"
#include "RadioShuttle.h"
#include "RadioStatus.h"
#include "RadioSecurity.h"
#include "RadioBase.h"
#ifdef FEATURE_NVPROPERTY
#include <NVProp... |
/*
* Model.cpp
*
* Created on: May 18, 2013
* Author: planke
*/
#include "Model.h"
#include <cstddef>
#include "../Tools/BW_Point.h"
#include "../Tools/BW_Time.h"
#include "Units/Base.h"
#include "Units/Tower.h"
#include "../Network/NetworkSingleton.h"
#include "../SceneControl.h"
#include "../Tools/Support... |
/****************************** Module Header ******************************\
Module Name: CppVDSFormatVolume.cpp
Project: CppVDSFormatVolume (VDS Format Volume)
Copyright (c) Microsoft Corporation.
Demonstrates how to use VDS to format volumes.
This source is subject to the Microsoft Public License.
See http:/... |
#include "mainHeader.h"
#ifdef _WIN32
#include <winsock2.h>
#define socklen_t int
#else
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <iostream>
#include <fstream>
#include <std... |
#include "Common.hpp"
#include <stdio.h>
#include <memory.h>
#include <string.h>
#include <string>
#ifndef MAKEFOURCC
#define MAKEFOURCC(ch0, ch1, ch2, ch3) \
((unsigned int)(unsigned char)(ch0) | ((unsigned int)(unsigned char)(ch1) << 8) | \
((unsigned int)(unsigned char)(ch2) << 16) | ((unsigned int)(unsigned c... |
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* 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 "InfoPanel.h"
static const unsigned int TRANSPARENT_COLOR = (255 << 8) + (255 << 0);
int InfoPanel::WIDTH =PANEL_TILE_WIDTH * Map::TILE_WIDTH;
int InfoPanel::HEIGHT=13 * Map::TILE_HEIGHT; //unknown here
bool InfoPanel::DRAW_HEALTH_UNDER_PLAYERS = true;
InfoPanel::InfoPanel(SDL_Surface* backbuf, int numP... |
#include "Geometry.h"
#include <iostream>
GLuint Geometry::vao = 0;
GLuint Geometry::vbo = 0;
GLuint Geometry::ebo = 0;
Shader Geometry::shader = Shader();
vector<float> Geometry::vertex_data = vector<float>();
vector<unsigned int> Geometry::index_data = vector<unsigned int>();
int Geometry::triangle_count = 0;
... |
// $Header: /nfs/slac/g/glast/ground/cvs/calibGenCAL/src/lib/Hists/GCRHists.cxx,v 1.15 2008/08/04 14:54:59 fewtrell Exp $
/** @file
@author <NAME>
*/
// LOCAL INCLUDES
#include "GCRHists.h"
#include "src/lib/Util/ROOTUtil.h"
#include "src/lib/Specs/CalResponse.h"
// GLAST INCLUDES
// EXTLIB INCLUDES
#include "... |
#include "Lux.h"
#include "liblux/lux.h"
#include <unistd.h>
#include <cmath>
#include <initializer_list>
// Lux helper functions
static int lux_strip_get_length (int fd, uint32_t lux_id, int flags) {
// TODO: replace with get_descriptor
struct lux_packet packet;
packet.destination = lux_id;
packet.com... |
/*
* Drawing instructions for Weather icons
*
*/
#include "events.h"
#include "icons.h"
#include "text.h"
#include "cal.h"
#include "common.h"
int eventItem(GxEPD2_GFX& display, U8G2_FOR_ADAFRUIT_GFX& u8g2Fonts, int y, const char *description, const char *location, const char *start, const char *end, const char *... |
#include "tFileIO.h"
#include <QtTest/QtTest>
#include <QJsonDocument>
#include <QFile>
#include "FileIO.h"
#include "ROI/ROIs.h"
#include "ImageView.h"
#include "dockwidgets/TraceViewWidget.h"
#include "VideoData.h"
#include "testUtils.h"
struct tFileIO::objptrs {
ImageView iview;
TraceViewWidget tview;
... |
/*
* zfilterfactory.cpp
* PHD Guiding
*
* Created by <NAME>
* Copyright (c) 2018 <NAME>
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... |
//
// Created by kellerberrin on 25/02/18.
//
#include "kgl_variant_factory_vcf_parse_info.h"
#include "kgl_variant_factory_vcf_parse_header.h"
#include "kgl_variant_factory_readvcf_impl.h"
#include "kgl_variant_factory_pf_impl.h"
#include "kgl_variant.h"
namespace kgl = kellerberrin::genome;
// Process VCF header... |
/* VocabMatchScript_desc.cpp */
/* Build a database from a vocab tree and score a few images */
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <string>
#include "VocabTree.h"
#include "keys2.h"
#include "defines.h"
#include "qsort.h"
#ifdef COLORED_NODES
#in... |
/*
Copyright (c) 2014 University of Edinburgh, Imperial College, University of Manchester.
Developed in the PAMELA project, EPSRC Programme Grant EP/K008730/1
This code is licensed under the MIT License.
*/
#include <supereight/denseslam/DenseSLAMSystem.h>
#include <default_parameters.h>
#include <interface.h>
#... |
#include "NCBITaxonomy.h"
#include "NCBITaxonomyRanks.hpp"
#include "utilities.hpp"
#include <utility>
#include <algorithm>
const std::unordered_map<std::string, int>* NCBITaxonomy::_taxonomy_ranks = &_NCBI_TAXONOMY_RANKS_;
const NCBITaxonomy::Node* NCBITaxonomy::getNode(int tax_id) const {
if(_nodes.find(tax_id)... |
/*
* =========================================================================================
* Name : dbLib.cpp
* Author : <NAME>
* Email : <EMAIL>
* Copyright : Faculty of Computer Science and Engineering - Bach Khoa University
* Description : library for Assignment 2 - Data structures and ... |
/*
* Copyright (C) 2003-2011 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice, this
* list of cond... |
/// @file main.cpp
/// @author rev
#include "StdAfx.h"
#define NOGDI // avoid #define ERROR - conflicts with glog
#include <glog/logging.h>
#include "WsaData.h"
#include "EventHandle.h"
#include "CommandLineProcessor.h"
#include "Utilities.h"
#include "rpw.tw.proxy_manifest.h"
//#include "ThreadSafeSqliteDatabaseFa... |
/*
* Copyright (C) 2020 The AXiG Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/********************************************
*
* $ mkdir build
* $ cd build
* $ cmake -DCMAKE_PREFIX_PATH=/path/to/libtorch ..
* $ make
**********************************************/
#include <torch/torch.h>
#include <cstddef>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
#includ... |
#include "Defs.h"
#include "Log.h"
#include "App.h"
#include "Input.h"
#include "Textures.h"
#include "Fonts.h"
#include "Render.h"
#include "Window.h"
#include "Map.h"
#include "Audio.h"
#include "PathFinding.h"
#include "Entity_Manager.h"
#include "UserInterface.h"
#include "Horde_Manager.h"
#include "ParamBox.h"
#in... |
/*
* Copyright 2021 The DAPHNE Consortium
*
* 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 ... |
#include <cstdio>
#include <getopt.h>
#include <string>
#include <tuple>
extern "C" {
#include <zlib.h>
#ifndef AC_KSEQ_H
#include "kseq.h"
KSEQ_INIT(gzFile, gzread);
#endif
}
#include "rowbowt.hpp"
#include "rowbowt_io.hpp"
#include "fbb_string.hpp"
#include "gtest/gtest.h"
// Tests simple seeding scheme which assume... |
#include "vehicle.h"
#include "cost.h"
#include <iostream>
#include <math.h>
#include <vector>
#include <map>
#include <string>
#include <iterator>
double change_lane_cost(Vehicle* vehicle_ptr, vector<Vehicle::snapshot> trajectory, map<int,vector < vector<double> > > predictions, TrajectoryData data){
// Penalizes... |
#include <iostream>
#include <fstream>
#include "core.hpp"
#include "ppm.hpp"
#include <algorithm>
#include <cstdint>
#include <cstdlib>
#include <string>
#include <iterator>
using namespace std;
using namespace core;
using namespace ppm;
void syntax() {
cout << "Usage: ppm2dcm <input_file>.ppm <o... |
#include "cfg.h"
Cfg::Cfg(string _prgName, string _prgVersion) {
prgName = _prgName;
prgVersion = _prgVersion;
}
//Cfg::~Cfg() {
//}
//Cfg::Cfg() {
//}
void Cfg::processParams(const char* prgName, int argc, char* argv[]) {
configFile = "x";
int c;
// processing argc and argv[]
while (1) {
st... |
#include "stdafx.h"
void CSkeletonBasics::delimited_output(std::string delimiter, std::string filename){
std::string outputFile;
time_t currenttime = time(NULL);
char* timestring = ctime(¤ttime);
outputFile = filename;
std::string conv(timestring);
conv = conv.substr(0, conv.length() - 1);
for (int i = ... |
/*
* Copyright 2002-2008, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Copyright 2001, <NAME>. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
/** Manages kernel add-ons and their exported modules. */
#include "module.h"
#include <stdlib.h>
... |
/*
-------------------------------------------------------------------------------
Copyright (c) <NAME>.
Contributor(s): none yet.
-------------------------------------------------------------------------------
This software is provided 'as-is', without any express or implied
warranty. In no event will t... |
/*
Copyright 2013 KLab 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 ... |
#include <cstdio>
#include <cstdlib>
#include <limits>
#include <algorithm>
const int kMaxN = 20000;
const int kMaxK = 100;
const int kMaxA = 1000000;
const int kLo = 1;
const int kEq = 2;
const int kGr = 3;
template<class T>
class RangeTree {
public:
RangeTree(T (*operation)(const T&, const T&), T init_with,
... |
/*#############################################################
###############################################################
################ CG MINI PROJECT ##############################
MADE BY: <NAME> 3210, <NAME> 3201
CLASS: SE COMP "A"
ENJOY THE GAME!!!*/
#include<windows.h>
#include <GL/glut.... |
#include "Server.h"
Server::Server()
{
// this server use TCP. that why SOCK_STREAM & IPPROTO_TCP
// if the server use UDP we will use: SOCK_DGRAM & IPPROTO_UDP
_serverSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (_serverSocket == INVALID_SOCKET)
throw std::exception(__FUNCTION__ " - socket");
... |
#include <iostream>
#include <chrono>
#include <math.h>
#include <stdio.h>
#include <mpi.h>
#define MAP 101 // Tag for messages mapping rows from master to worker nodes
#define GATHER 102 // Tag for messages gathering computed results from worker nodes to master
using namespace std;
int N_DEF = 1000;
in... |
/*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 2000-2009, PostgreSQL Global Development Group
*
* 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:
*
... |
#include "Pics.hpp"
Pics::Pics()
{
IMG_Init(IMG_INIT_PNG);
path1 = "Images/Drawn/"; // Correct Address!
images = {"Title.png", "Bee1.png", "Bee2.png", "Bee3.png", "Grub.png", "Tulip1.png", "Wasp.png", "Wasp2.png", "Wasp3.png", "Top_Flowers.png", "Bottom_Flowers.png", "Bee_paddle.png", "Wasp_paddle.png... |
#include <iostream>
#define BOP_MATRIX_MULTIPLY_DISCARD_TINY
#include <bop-maths/maths.hpp>
#include <bop-utility/Benchmark.hpp>
#include <bop-defaults/types.hpp>
#include <iostream>
#include <complex>
#define TEST_COUNT 1000000
using namespace bop::maths;
using namespace bop::util;
using namespace bop;
#define BENC... |
#include "Gui.h"
DrawGui* g_pDraw = new DrawGui;
D3DTLVERTEX DrawGui::CreateD3DTLVERTEX(float X, float Y, float Z, float RHW, D3DCOLOR color, float U, float V)
{
D3DTLVERTEX v;
v.fX = X;
v.fY = Y;
v.fZ = Z;
v.fRHW = RHW;
v.Color = color;
v.fU = U;
v.fV = V;
return v;
}
void DrawGui::DrawCircle(GuiVector2 co... |
#include "SimpleModel.h"
#include "Utilities.h"
#include <cmath>
#include <cstdlib>
#include <random>
#include <iostream>
#include <array>
using namespace std;
//const int seed_SM = 87192837;//time(0);
//std::default_random_engine generator_SM(seed_SM);
/**
Constants and types used in corridor model.
*/
const dou... |
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string.h>
#include <math.h>
#include <hls_stream.h>
#include "ap_int.h"
#include <stdint.h>
// AXI interface data width
#define axis_data_width 64
struct axis_word
{
ap_uint<64> data;
ap_uint<8> keep;
ap_uint<1> last;
};
struct fifo_word
{
ap_... |
/*******************************************************************************
* Copyright (c) 2007, 2008, CerroKai Development
* 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... |
// Clough42 Electronic Leadscrew
// https://github.com/clough42/electronic-leadscrew
//
// 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 So... |
/* Copyright (C) 2009-2010 The Trustees of Indiana University. */
/* */
/* Use, modification and distribution is subject to the Boost Software */
/* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */
/* http:... |
/******************************Module*Header*******************************\
* Module Name: fillddi.cxx
*
* Contains filling simulations code and help functions.
*
* Created: 04-Apr-1991 17:30:35
* Author: <NAME> [wendywu]
*
* Copyright (c) 1990-1999 Microsoft Corporation
\*************************************... |
//
// Created by wushuohan on 19-5-23.
//
#include "fcgi.h"
#include "fastcgi.h"
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <errno.h>
#include "../ConfigInit.h"
static const int PARAMS_BUFF_LEN = 2048; ... |
/**
* @file multi_cam.cpp
* @author Dr <NAME> (Spot), <EMAIL>
* @author Mr <NAME>, <EMAIL>
* @author Mr <NAME>, <EMAIL>
* @author Mr <NAME>, <EMAIL>
*
* This code is conceptualised, created and published by the SPOT-IT 3D team
* from the Department of Mechanical Engineering, Faculty of Engineering
* at the N... |
#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 ... |
/**
* @file Arduboy2Core.cpp
* \brief
* The Arduboy2Core class for Arduboy hardware initilization and control.
*/
#include "Arduboy2Core.h"
#ifndef OLED_I2C
TFT_eSPI screen;
// Adafruit_MCP23017 mcp;
// Adafruit_MCP4725 dac;
ESPboyLED myled;
uint8_t Arduboy2Core::sBuffer[];
#endif
Arduboy2Core::Arduboy2Core() {... |
/*********************************************************************
(c) <NAME> 2017
http://trederia.blogspot.com
xygineXT - Zlib license.
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
liable for any damages arising from the use of this software.
P... |
/*
MiniXPath is part of SoapESP32 library and used for scanning XML streams.
It is based on <NAME> (<EMAIL>) "MicroXPath" but needs
substantially more RAM and the following features have been added:
- extracting attributes
- extracting whole sub trees if requested
- using C++ strings
*/
#include "MiniXPa... |
// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 3.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 <core/BSPParser.h>
void BSPParser::Load(const std::string &path)
{
std::ifstream file(path, std::ios::in | std::ios::ate | std::ios::binary);
unsigned char* data;
size_t data_len;
/* Get file size */
file.seekg(0, file.end);
data_len = file.tellg();
file.seekg(0, file.beg);
/* Read file into a buffe... |
#define FORWARD_LIST_DEBUG
#include "kanon/algo/forward_list.h"
#include <gtest/gtest.h>
#include <algorithm>
#include <random>
using namespace zstl;
template<typename T>
using FL = ForwardList<T>;
template<typename List>
bool equal_list(List const& list, std::initializer_list<typename List::ValueType> il)
{
retu... |
#include "player.h"
#include <GL/glut.h>
#include <cmath>
#define PI 3.14159265
void desenhaEsfera(double radius, float R, float G, float B, int slice, int stack){
float materialEmission[] = { R, G, B, 1 };
float materialColor[] = { R, G, B, 1 };
float mat_specular[] = { 1, 1, 1, 1 };
float mat_shininess... |
#include <utility>
//
// Created by zhongzhendong on 2018/8/11.
//
#include "http_session_read_task.hpp"
#include "http_session_task.hpp"
#include <curl/curl.h>
#include <sstream>
#include <assert.h>
#include <http_session_read_task.hpp>
#include "http_session_config.hpp"
#include "http_curl_wrapper.hpp"
#define kD... |
// (C) Copyright 2016-2021 Xilinx, Inc.
// All Rights Reserved.
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to yo... |
/*
* Copyright (c), <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 notice, this
* list of condition... |
/*
This file is part of Felicity Egtb, distributed under 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 limita... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
#include "hzpch.h"
#include "Sandbox2D.h"
#include <imgui/imgui.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
//Temp
#include "Platform\OpenGL\OpenGLShader.h"
Sandbox2D::Sandbox2D()
: Layer("Sandbox2D"), m_CameraController(1280.0f / 720.0f, true), m_CustomColor({ 0.2f, 0.3f, 0.8f, 1.0... |
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... |
#include "properties.h"
#include "loadcell_util.h"
HX711 scale1(SCALE_DT_PIN1, SCALE_SCK_PIN1);
HX711 scale2(SCALE_DT_PIN2, SCALE_SCK_PIN2);
HX711 scale3(SCALE_DT_PIN3, SCALE_SCK_PIN3);
void initLoadCellsConf(void) {
Serial.println("scale: initializing...");
/*
Serial.println("Before setting up the scale:");... |
/*****************************************************************************\
* (c) Copyright 2018 CERN for the benefit of the LHCb Collaboration *
* *
* This software is distributed under the terms of the Apache version 2 *
... |
//
// Created by <NAME> on 29/07/16.
//
#include "AdaptiveLM.h"
#include <cmath>
#include <iostream>
using namespace std;
using namespace mmt;
using namespace mmt::ilm;
static const float kUnigramEpsilon = 1.f;
static const size_t kDictionaryUpperBound = 10000000;
namespace mmt {
namespace ilm {
struct ... |
//
// Created by <NAME> on 11/2/20.
//
#include "gfs.h"
using namespace gfs_manager_space;
gfsManager::gfsManager(vector<vector<int> > dataset, vector<int> labels_input, string strategy_arg) {
for (int i = 0; i < labels_input.size(); ++i) {
this->labels.push_back(to_string(labels_input.at(i)));
}
... |
#include <cstdlib>
#include <cstring>
#include "Kafka.h"
#include "benchmarks/applications/ClusterMonitoring/CM1.cpp"
#include "benchmarks/applications/ClusterMonitoring/CM2.cpp"
#include "benchmarks/applications/LinearRoadBenchmark/LRB1.cpp"
#include "benchmarks/applications/LinearRoadBenchmark/LRB2.cpp"
#include "be... |
//Includes
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <glew.h>
#include <glfw3.h>
#include <string>
#include <vector>
#include "Transform.h"
#include "Light.h"
#include "PointLight.h"
#include "DirectionalLight.h"
#include "SpotLight.h"
#include "Shader.h"
#include "UniformHand... |
#include "Actor.h"
#include "CRigidBody.h"
#include "EventSystem.h"
#include "Game.h"
#include "PhysicsMaterial.h"
#include "PhysicsSystem.h"
#include "ResourceManager.h"
#include "Util.h"
#include <algorithm>
#include <string>
using namespace rapidxml;
IComponent* buildRigidBody(xml_node<>* node, Actor* actor)
{
... |
#include "AcornDFS.h"
#include <string.h>
const size_t DFS_SECTOR0_OFFSET = 0;
const size_t DFS_SECTOR1_OFFSET = 256;
const size_t DFS_SECTOR_SIZE = 256;
const size_t DFS_FILENAME_LENGTH = 7;
DFSEntry::DFSEntry()
{
directory = '$';
loadAddress = 0;
execAddress = 0;
fileSize = 0;
startSe... |
/* Copyright (c) <2003-2011> <<NAME>, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.