text stringlengths 3.08k 12.5k |
|---|
/*
* DigitalFilterInlet.cc
* \author <NAME>
* \date August 2012
* \brief implements a turbulent inlet that is derived from a digital filter method
* -have a prespecified table with t,j,k points listed with u,v,w vectors
* j,k will change based on the normal face (xface y/z, yface x/z, zface x/y)
* -create... |
#include "ff.h"
#include "grafo.h"
/*
Implementación del algoritmo de Ford y Fulkerson para hallar el flujo máximo de una red.
Basado fuertemente en el pseudocódigo de Algo 3. Te amo Paula.
Autor: tinchino ahre quien era
*/
void insertarEnRedResidual(const grafo &G, int i, int j, redResidual &R) {
if(G[i... |
void setFrontendMapping(const int direction, const std::string &mapping);
std::string getFrontendMapping(const int direction) const;
size_t getNumChannels(const int direction) const;
SoapySDR::Kwargs getChannelInfo(const int direction, const size_t channel) const;
bool getFullDuplex(const int direction, const size_t ... |
/******************************************************************************\
* Copyright (C) 2012-2013 Leap Motion, Inc. All rights reserved. *
* Leap Motion proprietary and confidential. Not for distribution. *
* Use subject to the terms of the Leap Motion SDK Agreement available at ... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
/*
* 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 You under the Apache License, Version 2.0
* (the "License"); you may ... |
#include <dtn-config.h>
#include <oasys/util/UnitTest.h>
#include <oasys/util/ScratchBuffer.h>
#include <oasys/util/StringBuffer.h>
#include <oasys/debug/Log.h>
#include "prophet/Params.h"
#include "prophet/Stats.h"
#include "prophet/Table.h"
#include "prophet/Repository.h"
#include "prophet/AckList.h"
#include "proph... |
/* Copyright 2001, 2019 IBM Corporation
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following d... |
#include <csignal>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <condition_variable>
#include <thread>
#include <vsomeip/vsomeip.hpp>
#include <vsomeip/internal/logger.hpp>
#define SERVICE_ID 0x1234
#define SERVICE_METHOD_ID 0x0421
#define SERVICE_INSTANCE_ID 0x5678
#define SERVICE_EVENTGROUP_ID ... |
// Copyright 2019-20 <NAME>
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
... |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
using namespace std;
typedef long long lint;
inline bool is_num(char c){
return c>='0'&&c<='9';
}
inline int ni(){
int i=0;char c;
while(!is_num(c=getchar()));
while(i=i*10-'0'+c,is_num(c=getchar()));
return i;
}
inline void apmin(int &a,i... |
#include "CubeX.h"
CubeX::CubeX()
{
GetGameOffsets();
creature_temp->GUID = -1;
}
void CubeX::GetGameOffsets()
{
offset.CubeBase = (unsigned int)GetModuleHandle(NULL);
offset.GameController = *(unsigned int*)(offset.CubeBase + CubeOffset::GameController);
offset.CameraDistance = offset.GameController + Cube... |
/*
* File: LenkermotorV2.cpp
* Autor: AB
* Date: 26.11.2018
* Sources:
* Content: Eine Header-Datei um auf alle Konstanten, Variablen und Funktion definieren, die f�r unser Fahrrad ben�tigt werden
* ToDo: Aufgabe Bearbeiter fertig/in Bearbeitung
*
*/
#include <Arduino.h>
#include "cLenkermotorV2.h"
#inclu... |
#include "Arduino_HX8357B.h"
Arduino_HX8357B::Arduino_HX8357B(Arduino_DataBus *bus, int8_t rst, uint8_t r, bool ips /* = false */)
: Arduino_TFT(bus, rst, r, ips, HX8357B_TFTWIDTH, HX8357B_TFTHEIGHT, 0, 0, 0, 0)
{
}
void Arduino_HX8357B::begin(int32_t speed)
{
Arduino_TFT::begin(speed);
}
/********... |
#include "FL.h"
#include "constants.h"
void writeLabels(char** label, char *filename, int nFeaturesVectors){
FILE *fp = fopen(filename,"w");
for (int i = 0; i < nFeaturesVectors; ++i) {
fprintf(fp, "s\n", label[i]);
}
fclose(fp);
}
void printFeatureMatrixWithName(FeatureMatrix *m, int nFeature... |
/* FILE: mmsolve.cc -*-Mode: c++-*-
*
* Skeleton for mmsolve interpreter shell application.
*
*/
#include "oc.h"
#include "nb.h"
#include "vf.h"
#include "mmsolve.h" /* Mmsolve_Init, Mmsolve_SafeInit */
/* End includes */
#ifdef USE_MPI
// MPI process control routines
static MPI_Datatype MMS_MPI_R... |
#include<iostream>
#include<vector>
#include<string>
#include<unordered_map>
using namespace std;
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ... |
// Copyright (c) 2012, <NAME>
// All rights reserved.
//
// Author(s): <NAME> <<EMAIL>>
//
// You may use this file under the terms of the New BSD license as follows:
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
/... |
/* Animated Parabola and Squares */
// Header files
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
// Global variables for rotation factors
static float spin = 0.0;
static float spin2 = 0.0;
// This Section creates a Window, bu... |
#pragma once
#include <x86intrin.h>
#include <iostream>
static inline __m512d _mm512_load2_m256d(const double* hiaddr,
const double* loaddr) {
__m512d ret = _mm512_castpd256_pd512(_mm256_load_pd(loaddr));
ret = _mm512_insertf64x4(ret, _mm256_load_pd(hiaddr), 0x1);
return... |
#include "driver.h"
const int GEMS_COUNT = 3;
void clear_line(const Position& position){ // For the record, this is a stupid way to do this and I know this
mvprintw(position.y, position.x, " ");
}
void screen_log(const char* string, const Position& position){
clear_line(position)... |
#include "libimse.h"
#include "image_helper.h"
#include <sstream>
// todo: do we need the average image outside of this thread -> no
/* todo: every 10 minutes, determine the center and edge of the planet.
start with center of mass, then 32 rays to the edge until 30% brightness is reached
then fit an ellipse
*/
/* ... |
#include "StdAfx.h"
#include "InstallerConfig.h"
#include "resource.h"
#include "json/json.h"
#include "akali/stringencode.h"
using namespace akali;
InstallerConfig::InstallerConfig() {
LoadJSON();
}
InstallerConfig::~InstallerConfig() {}
CoreConfig InstallerConfig::GetCoreCfg() {
return coreConfig_;
}
OptionD... |
/*
* File: TransmissionTimer.cpp
* Class: ICS 451
* Project #: 3
* Team Members: <NAME>, <NAME>, <NAME>
* Author: <NAME>
* Created Date: 04-22-09
* Desc: This file contains the definition for the TransmissionTimer class
* which can act as a timed notification mechanism for transmissions.
*/
#includ... |
// Program.cpp
#include "stdafx.h"
#include <cstring>
void Example1();
void Example2();
void Example3();
void UserExercise1();
void UserExercise2();
void UserExercise3();
void SetIntTo42( int* toChange );
void SwapNumbers( int* a, int* b );
void ReverseString( char* name );
// The entry point of the program.
int _t... |
/******************************************************************************
******************************************************************************
*** ***
*** Extension class derviced from CRegKey to provide some more useful *... |
/*NOTE THAT THIS PROGRAM IS QUITE USER UNFRIENDLY BECAUSE IT IS JUST A TEST*/
/*There are many incomplete features so only I may be able to enter info
correctly as of now*/
/*ALSO THERE ARE MANY MISTAKES TO BE RECTIFIED LATER*/
# include <iostream>
# include <conio.h>
# include <cstdlib>
# include <string>//string cl... |
#include <gtest/gtest.h>
#include <string>
#include <fstream>
#include <hardware/chip.hpp>
// Prime number near 10Kb
// Prime because tests on chips with larger memory need to wrap addresses.
#define CHIP_REGISTER_SIZE 10243
#define STR(S) STR_(S)
#define STR_(S) #S
unsigned char register_memory[CHIP_REGISTER_SIZE]... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services 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:
* Redistributions of source code must retain the above copyright notice, this list of co... |
/** Testbed for gwcConnector **/
#include "swxCodecConstants.h"
#include "gwcConnector.h"
#include "fields.h"
using namespace std;
using namespace neueda;
class sessionCallbacks : public gwcSessionCallbacks
{
public:
virtual void onConnected ()
{
mLog->info ("session logged on...");
}
virtua... |
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <getopt.h>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
#include <glog/logging.h>
#include "status.h"
#include "vengine.h"
#include "vindex_annoy.h"
float random_float(float min, float max) {
float r = min + sta... |
/**
* Copyright © 2019 IBM 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 law or agr... |
/**
* Copyright (C) 2013, <NAME>
* All rights reserved.
*/
#define _USE_MATH_DEFINES
#include <cmath>
#include <pr1mitive/defines.h>
#include <ospline.h>
#include "res/description/Opr1m_randomwalk.h"
#include "menu.h"
template <typename T> void swap(T& a, T& b) {
T& temp = a;
a = b;
b = temp;
}
typede... |
/**
*Copyright (c) 2000-2001, <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 conditions and the f... |
/*
* Bumble Bots, a Gamebuino game
*
* Copyright 2018, <NAME>
*/
#include "StatsScreen.h"
#include "Globals.h"
#include "Images.h"
#include "ProgressTracker.h"
//-----------------------------------------------------------------------------
// Helper functions
void drawScreen() {
int8_t x0 = 0;
int8_t y0 = 0... |
//*****************************************************************************
// Copyright 2017-2020 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://w... |
///*|-----------------------------------------------------------------------------
// *| This source code is provided under the Apache 2.0 license --
// *| and is provided AS IS with no warranty or guarantee of fit for purpose. --
// *| See the project's LICENSE.md for details. ... |
/*
* Copyright (C) 2011 True Blood <http://www.trueblood-servers.com/>
* By Asardial
*
* Copyright (C) 2011 - 2013 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software... |
/*
* Copyright (c) 2011, <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, this list of ... |
#include "profiler.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#ifdef __APPLE__
// See comment in Accessors class
pthread_key_t Accessors::key_;
#else
__thread JNIEnv *Accessors::env_;
#endif
ASGCTType Asgct::asgct_;
int Profiler::failures_[kNumCallTraceErrors + 1];
namespac... |
#include "toast/bootstrap/loader.hpp"
#include "toast/filesystem.hpp"
#include "toast/util.hpp"
#include "toast/logger.hpp"
#include "toast/memory.hpp"
#include "toast/resources.hpp"
#include <iostream>
#include <iomanip>
#include <sstream>
#include <vector>
#include <thread>
#include <stdlib.h>
#ifdef OS_WIN
#inclu... |
#include "merger_weapon.h"
#include "merger_util.h"
using namespace std;
string WeaponParams::Namer::getName(const vector<string> &line) {
if(line[0] == "") {
CHECK(prefix.size() || lastid == -1);
if(prefix.size() && line[1] != "" && line[1] != "Params") {
CHECK(line[1] == roman_number(lastid) || (l... |
/*
* MIT License
*
* Copyright (c) 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,... |
/* Copyright (c) 2020 UATC, LLC
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 writing, software
d... |
#include "CharacterHelpers.h"
#include "Character.h"
#include <QDateTime>
/*
* Character Methods
*/
// Getter
uint32_t getLevel(const Character &c) { return c.m_char_data.m_level; }
uint32_t getCombatLevel(const Character &c) { return c.m_char_data.m_combat_level; }
uint32_t getSecur... |
#include "CumulativeDistributionFunction.hpp"
#include <cassert>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <stdexcept>
CumulativeDistributionFunction::CumulativeDistributionFunction()
: _vM1()
, _vY1()
, _vX1()
, _vM2()
, _vY2()
, _vX2()
, _fMin()
, _fMax()
, _nSteps()
... |
/*
Copyright 2020 The Silkworm Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... |
#include "OinkTestHarness.hpp"
#include <engine/Position.hpp>
#include <engine/BasicOperations.hpp>
#include <engine/MoveGenerator.hpp>
#include <engine/Evaluator.hpp>
#include <engine/Search.hpp>
#include <engine/Perft.hpp>
#include <fen_parser/FenParser.hpp>
#include <display/PgnWriter.hpp>
#include <display/Console... |
/*****************************************************************************
** DARWIN: A FRAMEWORK FOR MACHINE LEARNING RESEARCH AND DEVELOPMENT
** Distributed under the terms of the BSD license (see the LICENSE file)
** Copyright (c) 2007-2017, <NAME>
** All rights reserved.
**
*************************************... |
//============================================================================
// Name : Class15and16_OperatorSTL.cpp
// Author : Biplav
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//=================================================================... |
/**************************************************************
This file is a part of
https://github.com/atiderko/esp8266-ansulta-alexa
Licensed under MIT license
This class handles the detected motions.
**************************************************************/
#include "motion_detector.h"
#include "debug.h... |
// Helper utilities for launching LLVM-based JIts.
//
// <NAME> [http://eli.thegreenplace.net]
// This code is in the public domain.
#include "llvm_jit_utils.h"
#include "utils.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/IR/Mangler.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Suppo... |
/*
* Copyright 2017, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
*/
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <SupportDefs.h>
#include... |
#include <iostream>
#include <vector>
#include <string>
#include <list>
using namespace std;
class Course{
private:
string course_name;
string teacher_name;
public:
Course(string course_name, string teacher_name):course_name{course_name}, teacher_name{teacher_name} {}
string get_course_name() {return... |
#include <cctype>
#include <imgui.h>
#include <L/src/engine/Engine.h>
#include <L/src/engine/Resource.h>
#include <L/src/engine/Resource.inl>
using namespace L;
static bool opened = false;
static char input_buffer[512];
static int32_t scroll_to_bottom = 0, history_pos = -1;
static Array<String> history, items, cand... |
/* Copyright 2015 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 applicable law or agreed to in wri... |
// jhcAssocMem.cpp : deductive rules for use in halo of ALIA system
//
// Written by <NAME>, <EMAIL>
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2017-2019 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file... |
/*
* HWSerial.cpp
*
* Created on: 2019年8月31日
* Author: happe
*/
#include "HWSerial.h"
#include "SYSTEM/Nvic.hpp"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
//#define BV(b) (1 << b)
//extern uint8_t Serial_setup(HWSerial * Seri);
HWSerial::HWSerial(USART_TypeDef * UARTx, ... |
#include <vector>
#include <set>
#include <iterator>
#include <iostream>
#include "Hungarian.h"
#include "Tracker.hpp"
using namespace std;
Tracker::Tracker() {
frame_count = 0;
max_age = 1;
min_hits = 3;
iouThreshold = 0.3;
trkNum = detNum = 0;
KalmanTracker::kf_count = 0; // tracking id relies on this,... |
// Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#define BOOST_TEST_MODULE ConvOptionsTest
#include "poputil/TileMapping.hpp"
#include <boost/test/unit_test.hpp>
#include <popfloat/experimental/CastToGfloat.hpp>
#include <popfloat/experimental/CastToHalf.hpp>
#include <popfloat/experimental/codelets.hpp>
#in... |
/**************************************************************************
* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
//////////////////////////////////////////////////////////////////////
//
// PinholeCamera.cpp - Implementation of the pinhole camera
//
// Author: <NAME>
// Date of Birth: October 31, 2001
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
///////////////////////////... |
#include<bits/stdc++.h>
// g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 1000000007
#define EPS 1e-6
#define ll long long int
#define ld long double
#define fi first
#define se second
#define all(v) v.begin(),v.e... |
// BST Sequences: A binary search tree was created by traversing through an
// array from left to right and inserting each element.Given a binary search
// tree with distinct elements, print all possible arrays that could have led to
// this tree.
// EXAMPLE
// Input:
// 2
// /\
// 1 3
// Output: {2, 1, 3}, {2, ... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <signal.h>
#include <bits/stdc++.h>
#include <iostream>
#include <sstream>
#i... |
#include "teacherpage.h"
#include "ui_teacherpage.h"
#include <QMessageBox>
TeacherPage::TeacherPage(QWidget *parent, QString username, QString password) :
QDialog(parent),
ui(new Ui::TeacherPage)
{
ui->setupUi(this);
ui->tableView_student->resizeRowsToContents();
ui->tableView_student-... |
//! @file config.cpp
//! @brief configクラスの定義
//--------------------------------------------------------------------------------
//
// OpenXOPS
// Copyright (c) 2014-2018, OpenXOPS Project / [-_-;](mikan) All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modif... |
/*!
* \file trc_mem_acc_base.cpp
* \brief OpenCSD : Trace memory accessor base class.
*
* \copyright Copyright (c) 2015, ARM Limited. All Rights Reserved.
*/
/*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditi... |
/*
* 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 ... |
/*=========================================================================
*
* Copyright Insight Software 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
*
* h... |
#include "bufferManager/bufferRoadnetwork.h"
void BufferRoadNetwork :: init()
{
//pair<CollectiveAttributes*, CollectiveAttributes*>* attr = getAllToAllData();
//printf("%d\n", args->rank);
//printCollectiveAttributes(attr, args->numProcesses);
m_attr = getAllToAllData();
//return ... |
/*
The MIT License (MIT)
Copyright (c) 2016 British Broadcasting Corporation.
This software is provided by Lancaster University by arrangement with the BBC.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to dea... |
//===-- SparcJITInfo.cpp - Implement the Sparc JIT Interface --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <gtest/gtest.h>
#include "xmol/Frame.h"
#include "xmol/algo/alignment-impl.h"
#include "xmol/geom/UnitCell.h"
using ::testing::Test;
using namespace xmol;
using namespace xmol::algo;
using namespace xmol::geom;
using namespace xmol::geom::affine;
class GeomTests : public Test {
public:
template <typename ... |
#include "ao_io.h"
#include "ao_save.h"
#include "ao_physics.h"
#include "ao_const.h"
#include <unistd.h>
#include <chrono>
#include <thread>
#include <curses.h>
#include <math.h>
#include <string>
#include <random>
using namespace std;
// Load planets
void genPlanets(planet * array){
random_device rd;
mt19937... |
//
// Created by HuongNguyenXuan on 8/1/2021.
//
#include "Device.h"
Device::Device(ANativeWindow* platformWindow,
VkApplicationInfo* appInfo) {
this->CreateVulkanDevice(platformWindow,appInfo);
}
// Create vulkan device
void Device::CreateVulkanDevice(ANativeWindow* platformWindow,
... |
#include <cstdint>
#include <cassert>
#include "VulkanSwapchain.hpp"
#include "VulkanRenderer.hpp"
using namespace giygas;
VulkanSwapchain::VulkanSwapchain()
: _rendertarget(this)
{
_renderer = nullptr;
_image_count = 0;
_image_view_count = 0;
_swapchain = VK_NULL_HANDLE;
}
VulkanSwapchain::~Vulk... |
/*
Copyright (c) 2003-2016, <NAME>
Antiprism - http://www.antiprism.com
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 rig... |
#include "../meter/consolidation_registry.h"
#include "../meter/manual_clock.h"
#include "../util/config.h"
#include "../meter/id_format.h"
#include "../util/logger.h"
#include "test_utils.h"
#include "test_registry.h"
#include <gtest/gtest.h>
using atlas::meter::ConsolidationRegistry;
using atlas::meter::Id;
using at... |
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2017-2018, Karbo developers
//
// 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. Redist... |
#ifndef _PRAGMA_COPYRIGHT_
#define _PRAGMA_COPYRIGHT_
#pragma comment(copyright, "%Z% %I% %W% %D% %T%\0")
#endif /* _PRAGMA_COPYRIGHT_ */
/****************************************************************************
* Copyright (c) 2008, 2010 IBM Corporation.
* All rights reserved. This program and the accompanying ma... |
#include <Homie.h>
#include <errno.h>
#include <NTPClient.h>
#include <Timezone.h>
#include "settings.h"
#include "Valve.h"
#include "Program.h"
#include "System.h"
#include "config.h"
#include "handlers.h"
#include "handlersPrg.h"
#include "handlersValve.h"
#include "handlersSys.h"
#include "handlersH... |
#include "svmgsuparams.h"
#include "svmgsumodel.h"
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <string.h>
#include <stdexcept>
#include <sstream>
using namespace std;
static double str2double(const string& text)
{
istringstream ss(text);
double result;
return ss >> result ? result ... |
#include "opencv2/opencv.hpp"
#include <iostream>
#include <sys/types.h>
#include <dirent.h>
using namespace std;
using namespace cv;
//PARAMETER CONFIGURATION
bool useClahe=true; //use CLAHE
int clipLimit=5; //clip limit of CLAHE
bool useHSV=true; //use HSV or RGB color space
int histSize = 50; //histogram bin size... |
#include <shared/defs.h>
#include <sol/sol.hpp>
#include <mp/client.h>
#include <mp/game/player.h>
#include <mp/game/level.h>
#include <game/game.h>
#include <game/control.h>
#include <game/minecart.h>
#include "cf_defs.h"
import prof;
void cf_level::register_functions(sol::state* vm)
{
vm->set_function("resetLe... |
/*
* Beceem WiMax USB Driver.
* Copyright (c) 2010 <NAME> <<EMAIL>>
* Distributed under the terms of the GNU General Public License.
*
* Based on GPL code developed by: Beceem Communications Pvt. Ltd
*
* Control the MIPS cpu within the Beceem chipset.
*
*/
#include "BeceemCPU.h"
#include "Driver.h"
#include ... |
#include "node_helpers.hpp"
#include <iterator>
#include <iostream>
using namespace v8;
using namespace node;
static char encoding_table[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', '... |
/*
* Example illustrating web socket server.
*
* Server Usage:
* ./distribution/example/web_socket
*
* Client Usage:
* open browser at 'restbed/distribution/resource/web_socket.html'
*
* Further Reading:
* https://tools.ietf.org/html/rfc6455
* http://lucumr.pocoo.org/2012/9/24/websockets-101
*
... |
#include <iostream>
#include <memory>
#include <utility>
#include <typeindex>
#include <type_traits>
#include <map>
#include <vector>
#include <string>
// c++14 add "add_pointer_t" helper
// #if !defined(_MSC_VER) || ( _MSC_VER < 1800 )
// namespace std {
// template <typename T>
// using add_pointer_t = typename... |
/*
Copyright <2018> <Ainstein, Inc.>
Redistribution and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer... |
// CSetSystemLocal.cpp : Implementation of CSetSystemLocalApp and DLL registration.
#include "stdafx.h"
#include "SetSystemLocale.h"
#include "CSetSystemLocale.h"
#include "Aclapi.h"
#include "Userenv.h"
const ULONG CMDLINE_LENGTH = MAX_PATH+128;
const TCHAR G_LOCALEFILEPATH [] = TEXT("\\System32\\Server... |
#include "__nemesys__.hh"
#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <memory>
#include <phosg/Time.hh>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "../Debug.hh"
#include "../Compiler/Contexts.hh"
#inc... |
#include "atrac3.h"
#include <sstream>
extern "C" {
#include <libavutil/opt.h>
#include <libavutil/samplefmt.h>
}
#include "../data/archive.h"
AT3File::AT3File() : avData_(NULL), decoded_frame(NULL) {
}
AT3File::~AT3File() {
if (decoded_frame) {
av_frame_free(&decoded_frame);
}
avformat_close_input(&format_)... |
// -*- C++ -*-
/*! \author <NAME>
* \author <NAME>
* \note The original Prim was written in F90 by <NAME>.
*/
// The Clebsch_Gordan class
//
// Contains the Clebsch-Gordan Coefficients in the array cg
// in the following form:
//
// < l1 m1; l2 m2 | L m1+m2 > <---> cg[l1][l2][L][m1+6][m2+6]
//
// The "+6" o... |
// Copyright 2015 <NAME>
/*
- Designer will publish:
http://docs.ros.org/indigo/api/trajectory_msgs/html/msg/JointTrajectory.html
- Designer will receive: (with root link as 0,0,0)
http://docs.ros.org/indigo/api/sensor_msgs/html/msg/JointState.html
*/
#include <cstdlib>
#include <string>
#include <ros/ros.h>
#inc... |
#include <signal.h>
#include <stdio.h>
#include "sigaction-win.h"
#include <windows.h>
TIMECALLBACK winhacktimeEventHandler;
void winhackmaskedSignalHandler(int);
struct sigaction winhackmaskedSignalTable[24] = { {NULL, 0, 0}, {NULL, 0, 0},
{NULL, 0, 0}, //INT
{NULL, 0, 0},
{NULL, 0, 0}, //ILL
{NULL, 0, 0... |
/*
* ============================================================================
*
* Filename: query.cc
*
* Description:
*
* Version: 1.0
* Created: 2017-10-27 12:56:50 AM
* Revision: none
* Compiler: gcc
*
* Author: <NAME> (), <EMAIL>
* Organization: ... |
// Copyright 2013-2014 [Author: <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 ... |
#include"main.h"
#include "boat.h"
Boat::Boat(float x,float y,float z) {
this->position = glm::vec3(x, y, z);
this->position_f = glm::vec3(x, y, z);
this->color = color;
this->rotation = 0;
this->rotation_f = 0;
GLfloat boat_base[10000];
boat_base[0] = -0.1;
boat_base[1] = 0.8;
b... |
/**
* BSD 3-Clause License
*
* Copyright (c) 2019, <NAME> - <EMAIL>
* Technical University of Munich
* Chair of Robotics, Artificial Intelligence and Real-time Systems
* Department of Informatics / I6, Boltzmannstraße 3, 85748 Garching bei München, Germany
* https://www6.in.tum.de
*
* All rights reserved.
*
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.