text stringlengths 3.08k 12.5k |
|---|
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup() {
ofSetLogLevel(OF_LOG_VERBOSE);
// enable depth->video image calibration
kinect.setRegistration(true);
kinect.init();
//kinect.init(true); // shows infrared instead of RGB video image
//kinect.ini... |
#include <vector>
#include <cstdio>
#include "vulkan_context.h"
#include "vulkan_error.h"
namespace {
const char *kEngineName = "nGen";
const uint32_t kEngineVersion = VK_MAKE_VERSION(1, 0, 0);
const uint32_t kVulkanSdkVersion = VK_API_VERSION_1_0;
const char* kValidationLayers[] = {
"VK_LAYER... |
/*
* algorithms.cpp
*
* Author: <NAME>
*/
#include "./algorithm.hpp"
template<typename RT, typename T>
RT algorithm::_h::naive_summation(big_size_t begin, big_size_t end, T *x) {
RT sum = 0;
for (big_size_t i = begin; i < end; i++) {
sum += x[i];
}
return sum;
}
template<typename RT, typename T>
RT algo... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
/**
* File : E.cpp
* Author : <NAME>
* Created : 2018-9-30 15:28:44
* 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... |
/* author: dongchangzhang */
/* time: Sat 01 Apr 2017 11:52:25 PM CST */
#include "dfa.h"
#include <iostream>
DFA::DFA(Status& status)
{
dstatus.clear();
dstatus.push_back(status);
start_status = 0;
}
size_t DFA::add_status(const Status& status1, const Token& token, const Status& status2)
{
#ifdef DEBUG_... |
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cctype>
using namespace std;
template<class T>
string to_str(T x)
{
string ret;
ostringstream os(ret);
os << x;
return os.str();
}
vector<int> stack(80001, 0);
class QuiningT... |
#include <array>
#include <cstdio>
#include <gtk/gtk.h>
#include <iostream>
#include <memory>
#include <opencv2/highgui.hpp>
#include <opencv2/stitching.hpp>
#include <opencv2/video.hpp>
#include <stdexcept>
#include <string>
#include <vector>
using namespace cv;
using namespace std;
std::string exec(const char *cmd)... |
// Copyright (c) 2021 Bitcoin Association
// Distributed under the Open BSV software license, see the accompanying file LICENSE.
#include "http_protocol.h"
#include "block_index_store.h"
#include "validation.h"
#include "rpc/server.h"
#include "safe_mode.h"
#include "jsonwriter.h"
#include "logging.h"
UniValue ignore... |
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/tensor_shape.h"
#include "tensorflow/core/platform/default/logging.h"
#include "tensorflow/core/framework/shape_inference.h"
#include<cmath>
// Signatures for GPU kernels here
using namespace tensorflow;
#include "NeoHookean.h"
R... |
/*
* Copyright (c) 2016 University of Cordoba and University of Illinois
* All rights reserved.
*
* Developed by: IMPACT Research Group
* University of Cordoba and University of Illinois
* http://impact.crhc.illinois.edu/
*
* Permission is hereby granted, free of charge, to ... |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... |
/*
Copyright 2011 <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 is distributed in ... |
/*******************************************************************************
Name: <NAME>
Z#: Z23146703
Course: Foundations of Computer Science (COP3014)
Professor: Dr. <NAME>
Due Date: 16.06.12
Due Time: 23:30
Total Points: 100
Assignment 3: Call Cost Calculator w/ File Streams
Description:
In this assignment a... |
/*
* Copyright 2021 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 ag... |
/*
# MINX
Copyright (c) 2013-2014 <NAME>, <NAME>
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 any purpose,
including commercial ap... |
/**
* @author : <NAME>
* @School : CUET CSE 11
* @Topcoder : the_redback
* @CodeForces : the_redback
* @UVA : the_redback
* @link : http://www.fb.com/maruf.2hin
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long llu;
#defi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <map>
#include <algorithm>
struct Triple{
long val[3];
};
long findrank( long *subsetpar, long loc){
if (subsetpar[loc] != loc)
subsetpar[loc] = findrank(subsetpar, subsetpar[loc]);
return subsetpar[loc];
}
void mst(long test, long vertcount... |
//=======================================================================
// Copyright 2001 University of Notre Dame.
// Author: <NAME>
//
// This file is part of the Boost Graph Library
//
// You should have received a copy of the License Agreement for the
// Boost Graph Library along with the software; see the... |
#include <string.h>
#include <stdlib.h>
#include <_types.h>
#include <util/string.h>
#ifdef _UNIX_
#include <pwd.h>
#endif
/*---------------------------------------------------------------------------*/
/* get_fpath_components
* --------------------
* Breaks up a file path into its last component + ... |
// https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/
// 378. Kth Smallest Element in a Sorted Matrix
// my solution
// merge all rows into one row
// then get Kth smallest element
// Time: O(n^3)
// Space: O(n^2)
class Solution
{
/**
* @brief merge given vector into target vector,
*... |
/*
** Copyright 2003, <NAME>, <EMAIL>. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#include <Collator.h>
#include <Locale.h>
#include <LocaleRoster.h>
#include <Message.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
const char *kStrings[] = {
... |
#include <iostream>
#include <list>
#include <unistd.h>
#include "src/Util/Logger/Logger.h"
#include "src/Util/INIReader/INIReader.h"
#include "src/Domain/Order/Order.h"
#include "src/Domain/Receptionist/Receptionist.h"
#include "src/Domain/Cook/Cook.h"
#include <sys/wait.h>
#include "src/Domain/Oven/Oven.h"
#include "... |
//
// Geo.cpp
//
//
// Cf par exemple :
// http://www.ign.fr/telechargement/FAQ
//
// Et http://williams.best.vwh.net/avform.htm :
// The great circle distance d between two points with coordinates {lat1,lon1}
// and {lat2,lon2} is given by:
// d=acos(sin(lat1)*sin(lat2)+cos(lat1)*cos(lat2)*cos(lon1-lon2))
// A ... |
#include "ros/ros.h"
#include <ros/console.h>
#include "std_msgs/Int64.h"
ros::Publisher sonic_front_pub;
ros::Subscriber sonic_sub1, sonic_sub2, sonic_sub3, sonic_sub4, sonic_sub5, sonic_sub6, sonic_sub7, sonic_sub8;
std_msgs::Int64 sonic_front_warning;
// Define variables
int sensor_data [8];
bool warnings[8];
boo... |
#include "NosZlibOpener.h"
#include "../Ui/TreeItems/OnexNS4BbData.h"
#include "../Ui/TreeItems/OnexNSipData.h"
#include "../Ui/TreeItems/OnexNSmpData.h"
#include "../Ui/TreeItems/OnexNStcData.h"
#include "../Ui/TreeItems/OnexNStpData.h"
#include "../Ui/TreeItems/OnexNStgData.h"
#include "../Ui/TreeItems/OnexNSmcData.h... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
int bc[1<<20];
long long F[21];
const long long mod = 1000000007;
int R[8], C[8];
int cnt;
int M, N;
int RHB[20];
int has_black... |
#include <CoreFoundation/CoreFoundation.h>
#include <utility>
#include "Board.hpp"
#include "Utils.hpp"
#include "Log.hpp"
aic::Piece::Piece()
{}
aic::Piece::Piece(Type _type, Color _color, char _file, int _rank)
: type(_type), color(_color), file(_file), rank(_rank)
{}
void aic::Piece::setPiecePos(char file,... |
/* The MIT License (MIT)
Copyright (c) 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... |
#include "chip8emu.h"
#include <algorithm>
#include <iostream>
#include <fstream>
#include <memory>
chip8emu::Chip8Emu::Chip8Emu(std::unique_ptr<chip8emu::CPU> cpu, std::shared_ptr<chip8emu::PPU> ppu, std::shared_ptr<chip8emu::Keyboard> keyboard)
: mCpu(std::move(cpu)), mGfx(ppu), mKeyboard(keyboard), mPixelRects(... |
/*
* Copyright (c) 2015, Nagoya University
* 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 ... |
// Copyright 2019, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
// SPDX-License-Identifier: BSD-2-Clause
#include <limits>
#include <list>
#include <algorithm>
#include "CScheduleAlgorithmReMinMin2.h"
#include "CTask.h"
#include "CTaskCopy.h"
#include "CEstimation.h"
#include "CSchedule.h"
#include "CScheduleExt.h"
#include "CL... |
#include "Halide.h"
#include <stdio.h>
using namespace Halide;
using namespace Halide::Internal;
template<typename T>
bool constant_expr_equals(Expr expr, T expected) {
return (expr.type() == type_of<T>() &&
is_const_one(simplify(expr == Expr(expected))));
}
int main(int argc, char **argv) {
#define... |
#include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include <boost/gil/image.hpp>
#include <boost/gil/extension/io/jpeg_io.hpp>
#include <boost/timer/timer.hpp>
#include <CL/opencl.h>
using namespace std;
using namespace boost::gil;
// simple timer
class timer
{
public:
void start(const... |
#include "ToggleButton.h"
ToggleButton::ToggleButton(int XCoord, int YCoord, int Width, int Height, HWND Parent, HINSTANCE ins, HMENU ID, String Text, bool Multiselect, StyleSheet Style, TextStyleSheet TextStyle, bool CheckState)
{
if (!_ThisAtom)
InitBase(ins);
_Checked = CheckState;
_Multi = Multiselect;
_Sty... |
// Commander X16 Emulator
// Copyright (c) 2021 <NAME>
// All rights reserved. License: 2-clause BSD
// MCP7940N RTC
// * RTC
// * 24h and AM/PM supported
// * oscillator can be turned off
// * alarms etc. not supported
#include "rtc.h"
#include "glue.h"
#include <stdbool.h>
#include <stdio.h>
#include <time.h>... |
/*
Copyright (C) 2009-2010 ProFUSION embedded systems
Copyright (C) 2009-2011 Samsung Electronics
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of t... |
#include <iostream>
#include <cstdlib>
#include <algorithm>
using namespace std;
void print(int value) {
for (int i = 5; 0 < value; i++) {
char answer;
cin >> answer;
switch (answer) {
case 'a':
cout << " __ _ " << endl;
cout << " / _` |" << endl;
cout << " \\\__,_|" << endl;
break;
case '... |
/*L*****************************************************************************
*
* Copyright (c) 2015, Smart Surveillance Interest Group, all rights reserved.
*
* IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
*
* By downloading, copying, installing or using the software you agree to this
* lic... |
//
// Created by <NAME> on 2017/1/2.
//
#include <err.h>
#include <sys/time.h>
#include <iostream>
#include <stdexcept>
#include "fec.h"
#include "sess.h"
#include "encoding.h"
FEC::FEC(ReedSolomon enc) :enc(enc) {}
FEC
FEC::New(int rxlimit, int dataShards, int parityShards) {
if (dataShards <= 0 || parityShard... |
#include "logging.hpp"
#include "screens.hpp"
#include "button.hpp"
#include "rectangle.hpp"
#include "scaledtext.hpp"
#define FL(actor) {true, new actor}
#define INT(actor) {false, new actor}
const std::map<Static::Screens::ScreenNames, std::shared_ptr<Static::Screens::Screen>> Static::Screens::SCREEN_SELECTIONS = ... |
#include "globals.h"
#include "InstructionRelocation/arm64/ARM64InstructionRelocation.h"
#include "core/arch/arm64/registers-arm64.h"
#include "core/modules/assembler/assembler-arm64.h"
#include "core/modules/codegen/codegen-arm64.h"
#include "ExecMemory/ExecutableMemoryArena.h"
#include "PlatformInterface/ExecMemo... |
#include "Integrator.hh"
#include <math.h>
#include <iostream>
#include <ostream>
#include <fstream>
#include <iomanip>
#include "regula_falsi.h"
#include <string.h>
#define PI 3.141592653589793
#define RAD_PER_DEG (2.0*PI/180.0)
typedef struct {
double pos[2];
double vel[2];
double acc[2];
} BALL;
void... |
/*
* Copyright 2012 <NAME>, CRACS & INESC-TEC, DCC/FCUP
*
* 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 requir... |
#include <iostream>
#include <string>
#include <string.h>
#include <vector>
#include <unordered_set>
#include "string.h"
#include "defines.h"
using namespace std;
vector<string> splitWords(char * line, string firstWordRequired="", string separators=wordSeparators){
vector<string> words;
int pos = 0;
if(line[pos] !=... |
/*
* VIB Class Library - DataSet wrapper
* @author <NAME>
*/
#ifdef _MSC_VER
#pragma warning(disable : 4800 4355)
#endif
#include "../vibdatabase.h"
#include "../vibdataset.h"
#include "classVIBDataSet.h"
#include "VIBInternalErrors.h"
#include "VIBUtils.h"
//
// Property class implementations
//
VIB::DataSet::... |
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <boost/foreach.hpp>
#include <boost/algorithm/string.hpp>
using namespace std;
using namespace boost;
vector... |
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* TestBPWriteTypes.c
*
* Created on: Aug 9, 2017
* Author: Haocheng
*/
#include <adios2_c.h>
#ifdef ADIOS2_HAVE_MPI
#include <mpi.h>
#endif
#include <gtest/gtest.h>
#include "Smal... |
#include "k3dLevelLoader.h"
#include <json/json.h>
#include <Core/k3dFile.h>
#include <Core/k3dDbg.h>
#include <Core/k3dJsonObject.h>
#include "k3dSceneManager.h"
#include "k3dEngine.h"
#include "k3dFreeCamera.h"
#include "k3dTargetCamera.h"
#include "k3dFollowCamera.h"
#include <Entity/k3dVehicleController.h>
#define... |
#include "robotcontrol.h"
#include <QGridLayout>
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
#include <QStyle>
#include <QDebug>
using std::vector;
RobotControl::RobotControl(QWidget *parent) : QGroupBox (parent)
{
setTitle("???");
QGridLayout *layout = new QGridLayout();
m_icons.push_b... |
#include <stdio.h>
#include <string>
#include <map>
#include <vector>
#include <errno.h>
#include <time.h>
#include "myutil.h"
#include "sim.h"
// レジスタの状態を出力する
void print_state()
{
fi fpr[32];
for (int i = 0; i < 32; i++)
fpr[i].f = cur_env.FPR[i];
printf("PC: %llu\nGPR\n", cur_env.PC);
for (i... |
//===-- llvm/CodeGen/Spiller.cpp - Spiller -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright (C) 2021 <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:
//
// 1. Redistributions of source code must retain the above copyright notice, this
// list of conditions and t... |
#include <cstdio>
#include <cmath>
#include <utility>
#include <vector>
#include <ctime>
#include <cmath>
#include <random>
#include <chrono>
#include <omp.h>
#include <stdexcept>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <unistd.h>
using namespace std;
float SIM_STEP = 0.025;
int nrn_number ... |
#include "vau_tb.h"
#include "vecbuf_access_unit.h"
#include "hls_stream.h"
#include "./overlay.h"
#include "ap_fixed.h"
#ifndef __SYNTHESIS__
#include <iostream>
#include <iomanip>
#include <vector>
#endif
void data_feeder(
const IDX_T *test_col_idx_gmem,
const unsigned *partition_table,
hls::stream<EDGE... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "chipsong.h"
void write_dword(FILE* f, unsigned int dword)
{
fwrite(&dword, 1, 4, f);
}
void write_word(FILE* f, unsigned short word)
{
fwrite(&word, 1, 2, f);
}
void write_byte(FILE* f, unsigned char byte)
{
fwrite(&byte, 1, 1, f);
}
void writ... |
// Copyright 2021, Autonomous Space Robotics Lab (ASRL)
//
// 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 appli... |
/*
* map_saver
* Copyright (c) 2008, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, ... |
#include "globals.hpp"
/*
Polygon Rastering Stuff
Conceptually, we want to be able to create implied class points which are inside
of a polygon (a bit away from the border) and overlay a polygon to guarantee
that a point within the polygon is marked appropriately.
These notebooks demonstrate how to render a polygon... |
/*
* Copyright 2012 Google, 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.0
*
* Unless required by applic... |
#include <cassert>
#include <algorithm>
#include <cstring>
#include <memory>
#include <math.h>
#include "core.h"
#include "rram_array.h"
int Core::op_init(void)
{
/*set up memories*/
//create weight & bias mem
float *mem3 = memhub.getMemory("weight_and_bias_mem").getPtr();
memhub.addSharedMemory("... |
/*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/**************************************************************************\
* 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 <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include "needle.h"
#include <stdio.h>
#define SDATA( index) CUT_BANK_CHECKER(sdata, index)
int
maximum( int a,
int b,
int c){
int k;
if( a <= b )
k = b;
else
k = a;
if( k <=c )
return(c);
else
return(k);
}
void
needle_cuda_shared_1( int* ... |
#pragma once
#include "stdafx.h"
#include <iostream>
#include <sstream>
#include <stdio.h>
#include "cv.h"
#include "cvaux.h"
#include <cxcore.h>
#include "highgui.h"
#include <videoInput.h>
//Initializations
static CvMemStorage *storage = cvCreateMemStorage(0);
int screenshot = 555;
int key = 0;
CvSeq ... |
/*
* H.265 video codec.
* Copyright (c) 2015 struktur AG, <NAME> <<EMAIL>>
*
* This file is part of libde265.
*
* libde265 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 Licens... |
#include <iostream>
#include <iostream>
#include <random>
#include <cstdlib>
#include <vector>
#include <cstring>
#include <sstream>
#include <signal.h>
#include "timer.h"
/* all generated sources are pure C99 */
extern "C"
{
/* vital runtime functions */
#include <aurora_runtime.h>
/**
* kernel fi... |
/*
* Copyright (c) 2011-2013 University of Texas at Austin. All rights reserved.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* This file is part of PerfExpert.
*
* PerfExpert is free software: you can redistribute it and/or modify it under
* the terms of the The University of Texas at Austin Resea... |
// Copyright 2021 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstdio>
#include<cstring>
#include"Huffman.h"
#include"compress.h"
namespace compress {
const int N = 256, M = 2 * N - 1;
HTNode pHT[2 * N + 1];
HuffmanCode pHC[N + 1];
struct HEAD head;
}
using namespace std;
using namespace compress;
... |
#include "CSV-header/csv.h"
#include <algorithm>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <random>
#include <sstream>
#include <string>
#include <string_view>
#include <vector>
using person = std::string;
using people = std::vector<person>;
using date = std::string;
... |
#include "advent.h"
#include <iomanip>
IntVec parseUInts(std::string s)
{
IntVec v;
auto k{s.find_first_of("0123456789")};
while (k != string::npos)
{
s = s.substr(k);
auto n{std::stoi(s, &k)};
v.emplace_back(n);
k = s.find_first_of("0123456789", k);
}
return v;
... |
///////////////////////////////////////////////////
//
// Mental Plugin
// Sub Mixer VCV Module
// Built from fundamental VCMixer
//
// Strum 2017-19
// <EMAIL>
//
///////////////////////////////////////////////////
#include "mental.hpp"
struct MentalSubMixer : Module
{
enum ParamIds
{
MIX_PARAM,
CH_... |
/*<std-header orig-src='shore'>
$Id: sort_stream.cpp,v 1.3 2010/09/21 14:26:28 nhall Exp $
SHORE -- Scalable Heterogeneous Object REpository
Copyright (c) 1994-99 Computer Sciences Department, University of
Wisconsin -- Madison
All Rights Reserved.
Permission to use, copy, modify and distribu... |
#include <stdlib.h>
#include <string.h>
#include <string>
#include <stdio.h>
#include "setupglew.h"
#include <GL/glut.h>
//#include <glh_extensions.h>
#include "RIP.h"
#include "UI.h"
#include "holoren.h"
int displaystatic = 0;
using namespace std;
int main(int argc, char **argv)
{
char configfile[512] = "models/r... |
#include "MyImGUI.h"
static void ShowExampleAppCustomNodeGraph(bool* nodeMenu);
extern float g_FrameRate = 0.0f;
extern int g_WindowWidth = 600, g_WindowHeight = 600;
MyImGUI::MyImGUI()
{
}
MyImGUI::~MyImGUI()
{
if (m_Windows.size() > 0)
for (auto temp : m_Windows)
{
delete temp.second;
}
m_Windows.clear(... |
#include <bits/stdc++.h>
#define ll long long
#define ls id << 1
#define rs id << 1 | 1
#define mem(array, value, size, type) memset(array, value, ((size) + 5) * sizeof(type))
#define memarray(array, value) memset(array, value, sizeof(array))
#define pb(x) push_back(x)
#define st(x) (1LL << (x))
#define pii pair<int, i... |
#include <memory>
#include "Validation/MuonCSCDigis/interface/CSCStubResolutionValidation.h"
#include "Validation/MuonCSCDigis/interface/CSCStubMatcher.h"
CSCStubResolutionValidation::CSCStubResolutionValidation(const edm::ParameterSet& pset, edm::ConsumesCollector&& iC)
: CSCBaseValidation(pset) {
const auto& ... |
#include "experiments/util/prune_util.hpp"
#include "src/dtl/bitmap/diff/diff.hpp"
#include <dtl/bitmap/dynamic_roaring_bitmap.hpp>
#include "src/dtl/bitmap/diff/merge.hpp"
#include <algorithm>
#include <random>
/*
Experiment: compare TEB + roaring with in-place TEB with number of updates applied
*/
void run_diff_be... |
/*------------------------------------------------------------------------------
* Copyright (C) 2020-2021 LEIDOS.
*
* 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/l... |
#include "simulation/ElementCommon.h"
static int update(UPDATE_FUNC_ARGS);
static int graphics(GRAPHICS_FUNC_ARGS);
void Element::Element_PAPR() {
Identifier = "DEFAULT_PT_PAPR";
Name = "PAPR";
Colour = PIXPACK(0xFAFAFA);
MenuVisible = 1;
MenuSection = SC_SOLIDS;
Enabled = 1;
Advection = 0.0f;
AirDrag = 0.00... |
#include "decomposition.h"
#include "info.h"
// #include <vector>
#include "../Vector/vector.h"
// First LU Decompose
// A = LU
// Uij = Aij - Sum[k=1,i-1](UkjLik)
// Lij = 1/Ujj(Aij - Sum[k=1,j-1](UkjLik))
void printVector(Vector &v) {
std::cout << "PRINT VECTOR" << std::endl;
for (std::size_t i = 0; i < v.size()... |
/*
Copyright (c) 2013, Trail of Bits
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the followin... |
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
#include "ma/container/nucSeq.h"
#include <iostream>
#include <time.h>
#include <db_base.h>
#include <db_con_pool.h>
#include <sql_api.h>
#include "msv/container/sv_db/tables/pairedRead.h"
#include "msv/container/sv_db/tables/read.h"
#include "msv/container/sv_db/tables/... |
// 共享内存通讯.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include "IPC/ShareMemory.h"
#include "help_str.h"
#include "NamePipeTest.h"
#include "ThreadTest.h"
#include "IPC/NamePipe.h"
#include <iostream>
#include <iomanip>
#include <nlohmann/jso... |
#include <string.h>
#include "arghandler.h"
#include "logmanager.h"
#include "shellcommand.h"
using namespace std;
using namespace ARG;
using namespace G2;
#define TAG "ArgHandler"
#define CHAR_DELIMETER "="
#define CHAR_KEY_PRECEDENCE '-'
#define KEY_DEF_BL_FORCE "-bf"
#define KEY_DEF_DEBUG "-... |
/**
* @file text.cpp
* @author <NAME> (<EMAIL>)
* @brief реализация класса Text
* @version 0.1
* @date 2021-11-28
*/
#include "text.h"
// программа для вертексов символа
static const char *vscode = R"(
attribute vec2 pos;
attribute vec2 tex;
varying vec2 texpos;
void main() {
gl_Position = ... |
//
// Created by <NAME> on 07/10/2018.
//
#include "TcpIpSignalKDataServer.hpp"
TcpIpSignalKDataServer::TcpIpSignalKDataServer(bool enabled,std::string id,SignalK::SignalKModel *pSignalKModel, std::string bind, int port) :SignalKDataServer(enabled,id,pSignalKModel){
this->type="servers/signalk/tcpip";
thi... |
// Copyright 2020 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
#include "packet_entity.hpp"
bool PacketEntity::fetch(const std::string &k, value_type& v) {
if (properties->fetch(k, v)) return true;
return classBaseline->fetch(k, v);
}
bool PacketEntity::fetchBool(const std::string &k, bool& v) {
if (properties->fetchBool(k, v)) return true;
return classBaseline->fetchBool... |
/*
* MSPBSL_Connection
*
* An interface to define basic BSL functionality across all families
*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
/*********************************************************************/
/* Copyright (c) 2016-2018, EPFL/Blue Brain Project */
/* <NAME> <<EMAIL>> */
/* All rights reserved. */
/* ... |
// Copyright (c) 2020 midnightBITS
// This code is licensed under MIT license (see LICENSE for details)
#include "dtd_database.hh"
#include "dtd_parser.hh"
#include <algorithm>
using namespace std::literals;
struct references {
size_t lookup(elem_info const& info, std::string const& name) {
auto it = elem2id.lowe... |
/*
* Copyright (c) 2013, "StormyDragon"
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* lis... |
/*********************************************************************/
/* Copyright (c) 2014-2018, EPFL/Blue Brain Project */
/* <NAME> <<EMAIL>> */
/* All rights reserved. */
/* ... |
#include "base.h"
Economy::Economy(std::vector<std::string> goods) : goods(goods), numGoods(goods.size()) {
rng = util::get_rng();
}
std::shared_ptr<Person> Economy::add_person() {
return util::create<Person>(this);
}
void Economy::add_agent(std::shared_ptr<Person> person) {
std::lock_guard<std::mutex> l... |
//--------------------------------------------------------------------------------------
//
//
// Copyright 2014 ADVANCED MICRO DEVICES, INC. All Rights Reserved.
//
// AMD is granting you permission to use this software and documentation (if
// any) (collectively, the "Materials") pursuant to the terms and conditions... |
////////////////////////////////////////////////////////////////////////////
// Name: Board.cpp
// Description: Implementation of a class that represents a Board
// Created: May 2, 2004 12:17:27 PM
// Author: <NAME>
// Email: <EMAIL>
// Copyright: (c) 2004 <NAME>
//////////////////////////... |
/*******************************************************************************
License:
This software and/or related materials was developed at the National Institute
of Standards and Technology (NIST) by employees of the Federal Government
in the course of their official duties. Pursuant to title 17 Section 105
of... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2021, Institute for Factory Automation and Production Systems (FAPS)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.