text stringlengths 3.08k 12.5k |
|---|
#include "mixer.lib.h"
#include "mixer.vd.d3d11.h"
#include "mixer.vd.d3d11.shader.h"
#include "mixer.vd.d3d11.shader.Rectangle.h"
#include "math/mixer.mat.h"
extern Mat4 g_guiProjectionMatrix;
extern miD3D11 * g_d3d11;
D3D11ShaderRectangle::D3D11ShaderRectangle()
:
m_cbVertex(0)
{
}
D3D11ShaderRectangle::~D3D11... |
// compiler parameter: g++ -O4 name.cpp -lgmpxx -lgmp -pthread -std=c++11
#include <math.h>
#include <iostream>
#include <ctime>
#include <vector>
#include <string>
#include <iostream>
#include <gmpxx.h>
#include <fstream>
#include <algorithm>
#include <stdio.h>
#include <thread>
#include <future>
using namespace std;... |
/*
* Copyright (c) 2012-2016 <NAME> (<EMAIL>)
* Copyright CERN 2013 <NAME> (<EMAIL>)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version... |
#include "geometry/coordinate.hpp"
#include "geometry/level.hpp"
#include "geometry/spatial_vector.hpp"
#include <gtest/gtest.h>
#include <tuple>
TEST(Coordinate, Constructors)
{
using namespace jps;
std::vector<std::tuple<LengthUnit, LengthUnit>> values{
{10.32423_m, 213_mm},
{-989.43854389_... |
/*
* Copyright (C) 2011 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
#include <iostream>
#include <stdlib.h>
#include <fcntl.h> //fcntl bloqueante
#include <sys/stat.h> //stat permisos
#include <sstream> //stringstream
#include <sys/resource.h> //setpriority getpriority
#include "fdstream.h"
using namespace std;
void Error(string s){
cerr << s << endl;
exit(1);
}
bool getMessages(... |
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gflags/gflags.h>
#include <glog/logging.h>
#include "source/util/CvUtil.h"
#include "source/util/SystemUtil.... |
/**
* @file Audio.cpp
* @brief Linux Audio Class Implementation
* @author KrizTioaN (<EMAIL>)
* @date 2021-07-19
* @note BSD-3 licensed
*
***********************************************/
#include "Audio.h"
Audio::Audio() {
Audio::mixer = NULL;
Audio::samples = NULL;
Audio::n_samples = 0;
Au... |
/*
The MIT License (MIT)
Copyright (c) 2013-2018 menonon
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, ... |
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1998.
//
// File: scopetbl.hxx
//
// Contents: Persistent scope table
//
// Classes: CCiScopeTable
//
// History: 14-Jul-97 SitaramR ... |
/*
** tsk_loaddb
** The Sleuth Kit
**
** <NAME> [carrier <at> sleuthkit [dot] org]
** Copyright (c) 2010-2011 <NAME>. All Rights reserved
**
** This software is distributed under the Common Public License 1.0
**
*/
#include "tsk/tsk_tools_i.h"
#include "tsk/auto/tsk_case_db.h"
#include <locale.h>
static TS... |
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
typedef long long ll;
struct Point3 {
int x, y, z;
Point3 (int x = 0, int y = 0, int z = 0): x(x), y(y), z(z) {}
bool operator < (const Point3& u) const { return x-u.x<0 || (x-u.x==0 && y-u.y<0) || (x-u.x==0 && y-u.y==... |
#include <iostream>
#include <vector>
#include <fstream>
#include <array>
#include <list>
#include <cassert>
#include <limits>
namespace {
template<bool LOG_DEBUG=false>
class GraphFile{
private:
int minEdge_ = std::numeric_limits<int>::max();
int maxEdge_ = std::numeric_limits<int>::min();
int minNode_ =... |
#pragma once
#include <unistd.h>
#include <assert.h>
#include <iomanip>
//#include <strads/include/common.hpp>
#include <strads/util/utility.hpp>
#include <strads/include/indepds.hpp>
#include <glog/logging.h>
void PrintSysFlags(void);
void PrintAllFlags(void);
class sysparam{
public:
sysparam(
std::string &m... |
#include "serialization_common.h"
#include "serialization_2.h"
#include "utils/base64/base64.h"
#include <sstream>
#include <iomanip>
// taken from here: https://stackoverflow.com/a/33799784/3162383
static std::string escape_json(cstr s, size_t size) {
std::ostringstream o;
for(size_t i = 0; i < size; ++i) {
... |
/*
Copyright (c) 2007 <NAME>. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... |
/*-------------------------------------------------------------------------
This source file is a part of m8rscript
For the latest info, see http:www.marrin.org/
Copyright (c) 2018-2019, <NAME>
All rights reserved.
Use of this source code is governed by the MIT license that can be
found in the L... |
/*
Let's take an example to illustrate.
Stamp = "abc", Target = "ababcbc`
1. Target = ab***bc
2. Target = ab*****
3. Target = *******
You can see in the step 1, we replace substring abc with ***.
Then we keep doing the same thing. In the step 2, you will find we replace substring *bc to ***.
* can match to any cha... |
#include <numeric>
#include <thread>
#include <optional>
#include <CLI/CLI.hpp>
#include <pstl/execution>
#include <spdlog/spdlog.h>
#include <tbb/task_scheduler_init.h>
#include "recursive_graph_bisection.hpp"
#include "util/progress.hpp"
#include "util/inverted_index_utils.hpp"
#include "payload_vector.hpp"
using ... |
/*
AI Lib
Copyright (C) 2014 <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 applic... |
#include "tools.h"
#include <fstream>
#include <algorithm>
#include <pcrecpp.h>
void ReplaceAtoB(std::string & str, std::string A, std::string B)
{
size_t i = 0;
while((i = str.find(A, i)) != -1)
{
str.replace(i, A.length(), B);
i += B.length();
}
}
void explode(const std::string& s, std::string e, std::set<... |
#include <cstdio>
#include <cstring>
#include <climits>
#include <cmath>
#include <queue>
#include <vector>
#include <algorithm>
using namespace std;
#define EPSILON 0.0000001
template <typename T>
inline bool almost_equal(const T &a, const T &b) {
return fabs(a - b) < EPSILON;
}
#define NMAX 100
struct Edge {... |
/*
* A test for sequence of child cooperation deregistration.
*/
#include <iostream>
#include <sstream>
#include <set>
#include <so_5/all.hpp>
#include <various_helpers_1/time_limited_execution.hpp>
struct msg_child_started : public so_5::signal_t {};
void
create_and_register_agent(
so_5::environment_t & env,
... |
#pragma once
#define _USE_MATH_DEFINES
#include "linesegment.h"
#include "hash.h"
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <string>
#include <utility>
#include <cmath>
std::vector<LineSegment> mergeHelper(std::vector<LineSegment>& lineSegments)
{
//First we sort the co... |
/* Copyright 2020, 2021 <NAME> <<EMAIL>>
* Copyright 2020, 2021 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
//
// Created by joe on 19-4-7.
//
#include "hook.hpp"
#include <unistd.h>
#include "xhook.h"
#define HOOK_MACRO(FUN) xhook_register(".*libnfc-nci\\.so$", (#FUN), \
reinterpret_cast<void *>(my_##FUN), \
reinterpret_cast<void **>(&sys_##FUN));
//#define DEHOOK_M... |
/**
* @file slbf.cpp
* @author LDRobot (<EMAIL>)
* @brief LiDAR near-range filtering algorithm
* This code is only applicable to LDROBOT LiDAR LD00 LD03 LD08 LD14
* products sold by Shenzhen LDROBOT Co., LTD
* @version 0.1
* @date 2021-11-09
*
* @copyright Copyright (c) 2021 SHENZHEN LDROBOT CO., LTD... |
/*
* Copyright (c) 2016, SRCH2
* 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 ... |
/*
* This file is part of SRS project.
*
* SRS 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.
*
* SRS is distribut... |
#include "Globals.h"
#include "Application.h"
#include "ModuleRender.h"
#include "ModuleSceneIntro.h"
#include "ModuleInput.h"
#include "ModuleTextures.h"
#include "ModulePhysics.h"
ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled)
{
circle = box = rick = NULL;
}
M... |
// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... |
#include"Compiler.h"
#include<assert.h>
Compiler::Compiler(const string &filename)
{
setBasicOper();
assert(!basic_oper.empty());//test
getCode(filename);
assert(!code.empty());//test
codeAnalysis();
}
void Compiler::setBasicOper()
{
vector<char> basic{ '+', '-', '*', '/', '^', '%' };
for (auto c : basic)
bas... |
#include <agile_grasp2/importance_sampling.h>
// sampling methods
const int SUM = 1; // sum of Gaussians
const int MAX = 2; // max of Gaussians
// standard parameters
const int ImportanceSampling::NUM_ITERATIONS = 5;
const int ImportanceSampling::NUM_SAMPLES = 50;
const int ImportanceSampling::NUM_INIT_SAMPLES = 100... |
#include <QtGui>
#include <QtOpenGL>
#include "glwidget.h"
#include "LibVT_Internal.h"
#include "LibVT.h"
#include "LibVT_Config.h"
GLWidget::GLWidget(QWidget *parent) : QGLWidget(QGLFormat(QGL::SampleBuffers), parent)
{
xPos = 0;
yPos = 0;
zoom = 10;
}
GLWidget::~GLWidget()
{
vtShutdown();
}
voi... |
#include <unordered_set>
#include <vector>
#include "gtest/gtest.h"
namespace
{
class Solution
{
public:
std::vector<int> gridIllumination(int n, std::vector<std::vector<int>> const &lamps, std::vector<std::vector<int>> const &queries) const
{
const size_t rowMax = static_cast<size_t>(n) - 1;
... |
#include <AccelStepper.h>
#include <Arduino.h>
#include <Encoder.h>
// Motor pin definitions
#define motorPin1 2 // IN1 on the ULN2003 driver 1
#define motorPin2 3 // IN2 on the ULN2003 driver 1
#define motorPin3 4 // IN3 on the ULN2003 driver 1
#define motorPin4 5 // IN4 on the ULN2003 driver 1
... |
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup() {
//kinect.init(true); //shows infrared image
kinect.init();
kinect.setVerbose(true);
kinect.open();
colorImg.allocate(kinect.width, kinect.height);
grayImage.allocate(kinect.width, kinect.height);
gra... |
// Copyright 2008 by BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h"
#include <cstddef>
#include <string>
#include "Generic/parse/ParserTrainer/HeadlessParseNode.h"
#include "Generic/common/Symbol.h"
#include "Generic/common/UTF8Token.h"
#include "Generic/trainers/H... |
#include <iostream>
#include <vector>
#include <cmath>
#include <random>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <algorithm>
#include <cmath>
using namespace std;
template<class T, class S>
ostream& operator<<(ostream& os, const unordered_map<T, S>& v)... |
/*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... |
#include "ComputerEye.h"
#pragma Constructors
ComputerEye::ComputerEye(char* mainWindowName, char* smallWindowName)
{
this->mainWindowName = mainWindowName;
this->smallWindowName = smallWindowName;
CreateMainWindow();
CreateSmallWindow();
moveWindow(mainWindowName, 20, 20);
moveWindow(smallWindowName, 40, 40)... |
#include "ros/ros.h"
#include <unistd.h>
#include <sstream>
#include "std_msgs/Empty.h"
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/Point.h>
#include <tf/tf.h>
#include <queue>
#include "EventTriggerUtility.h"
#include "PerformTaskConstants.h"
#include "elderly_care_simula... |
#define UNICODE
#include <stdio.h>
#include <windows.h>
#include <psapi.h>
static WCHAR g_awcApp[ MAX_PATH + 1 ] = {0};
static WCHAR g_awcProcess[ 32768 ] = {0};
class CPerfTime
{
private:
LARGE_INTEGER liLastCall;
LARGE_INTEGER liFrequency;
NUMBERFMT NumberFormat;
WCHAR awcRender... |
//
// controls.cpp
// opengl
//
// Created by <NAME> on 13-10-14.
// Copyright (c) 2014 BoschIt. All rights reserved.
//
#include "GameControlles.h"
float translateSpeed = 15.0f;
float zoomSpeed = .2f;
GameControlles::GameControlles() :
_position(0.0f, 0.0f, 4.0f),
_minZoom(0.05),
_maxZoom(6),
_inputBool(true),
_... |
#include "DQMOffline/Muon/interface/GEMOfflineMonitor.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "Geometry/CommonTopologies/interface/StripTopology.h"
#include "Geometry/Records/interface/MuonGeometryRecord.h"
#include "DataF... |
/* -------------------------------------------------------------------------------------
** This software is implemented as part of the course
** Algorithms in Bioinformatics - Sequences Q1/2015
** at Aarhus Univerity Denmark.
**
** global_linear.cpp
** The .cpp file where all the functions of the global linear alg... |
/*
Einstein puzzle in Gecode.
This is a Gecode version of the OPL code presented in
Daniel Selman's "Einstein's Puzzle - Or, 'The Right Tool for the Job'"
http://blogs.ilog.com/brms/2009/02/16/einsteins-puzzle/
"""
* Norwegian cats water Dunhill yellow
* Dane horses tea Blends blue
* Brit birds milk ... |
/*
* This file contains code from "C++ Primer, Fifth Edition", by <NAME>.
* Lippman, <NAME>, and <NAME>, and is covered under the
* copyright and warranty notices given in that book:
*
* "Copyright (c) 2013 by Objectwrite, Inc., <NAME>, and <NAME>."
*
*
* "The authors and publisher have taken care in the pre... |
//#include <bits/stdc++.h>
#include "../StrHash.h"
#include "tsl/robin_map.h"
#include "tsl/hopscotch_map.h"
#include "robin_hood.h"
#define EMH_BUCKET_INDEX 2
#include "emhash/hash_table7.hpp"
#include "emhash/hash_table5.hpp"
#include "emhash/hash_table8.hpp"
#include "sparsehash/dense_hash_map"
#include "phmap/phm... |
/*
Copyright (c) 2002-2009 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... |
#include <iostream>
#include <vector>
#include <eigen3/Eigen/Dense>
#include <string>
#include "board.h"
using namespace std;
using Eigen::Array;
extern void initialize_piece_square_tables();
Board::Board(bool debug) {
initialize();
debug_mode = debug;
}
void Board::initialize() {
// ensure bitboards ar... |
// this file implements the routines required by gmpfrxx.h
// it is modeled on mpfr-2.2.1/out_str.c
// gmp-4.2.1/mpz/set_f.c
// gmp-4.2.1/mpq/set_f.c
// (written by <NAME> on Aug 8, 2007)
#include "gmpfrxx.h"
#include <cstdlib>
#include <climits>
using namespace std;
// MpFrC i... |
// vim: sw=4 expandtab
#include "Cube.hpp"
#include "CubeMesh.hpp"
#include "matrix.h"
#include "opengl/programs.h"
#include "glm/vec3.hpp"
#include "glm/gtc/type_ptr.hpp"
#include <vector>
#include <array>
#include <cstdint>
#include <cmath>
enum {
VERTBUF,
NORMBUF,
INDXBUF
};
using namespace std;
stat... |
#include "HDFactory.h"
#include "HttpUtil.h"
#include "Context.h"
#include <workflow/DnsRoutine.h>
static const int INET_ADDR_LEN = 128;
SeriesWork *HDFactory::create_dns_series(ParallelWork *pwork, const std::string &host)
{
spdlog::trace("create dns series");
auto *dns_ctx = new DnsCtx;
dns_ctx->host = ... |
#include "GameObjects/Ball.h"
#include "GameObjects/Paddle.h"
#include "GameObjects/Components/PaddleController.h"
#include "GameObjects/Brick.h"
#include "GameObjects/Powerup.h"
#include "Core/Assert.h"
#include "Core/Graphics/GraphicsContext.h"
#include "Core/Graphics/TextureCache.h"
#include "Core/Delegate.h"
#inc... |
//
// OBJWriter.cpp
// libraries/fbx/src/
//
// Created by <NAME> on 2017-1-27.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "OBJWriter.h"
#include <QFile>
#inclu... |
#include <string>
#include <vector>
using namespace std;
#include "../include/node.h"
#include "../include/variables.hpp"
#include "../include/main.hpp"
#include "../include/usefull.h"
#include "../include/parser.h"
const char *get_completion(string token)
{
if (token == "{")
{
return "}";
}
else if (token ==... |
/*
* Copyright (C) 2014-2020 Savoir-faire Linux Inc.
*
* Author: <NAME> <<EMAIL>>
*
* 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 o... |
////////////////////////////////////////////////////////////
// //
// This file is part of the VRPH software package for //
// generating solutions to vehicle routing problems. //
// VRPH was developed by <NAME> (<EMAIL>). //
// ... |
#include <nanosoft/netflow/netflowserver.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
static nf_message_t message;
NetFlowServer::NetFlowServer(): counters(0), filters(0)
{
collector = new NetFlowCollector;
}
NetFlowServer::~NetFlowServer()
{
}
... |
/**
close_and_record.cpp
Purpose: a ROS node for closing the hand and recording on a bag file the norm and the components
of accelerometer readings of Pisa IIT SoftHand fingers using the IMU Glove.
N.B: - The qb_interface_imu node from package qb_interface must be running.
- The norm_pu... |
#include <fstream>
#include <limits>
#include <vector>
#include <queue>
#include <list>
class Net {
public:
class Edge {
public:
Edge(size_t to, int maxcapacity) : to(to), maxcapacity(maxcapacity) {}
int get_capacity() const {
return maxcapacity - flow;
}
Edge* rev... |
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/*
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 condit... |
/*-------------worstsort.cpp--------------------------------------------------//
*
* Purpose: Implement worstsort for all the bad things to happen in 2016
*
*-----------------------------------------------------------------------------*/
#include <iostream>
#include <random>
#include <vector>
#include <algorithm>
#inc... |
#include <utilities/maths.h>
#include <Log.h>
#include "master_renderer.h"
#include "entity_renderer.h"
#include "window_manager.h"
#include <skybox/skybox_renderer.h>
#include <terrain_renderer.h>
#include <glm/gtc/matrix_transform.hpp>
#include <algorithm>
glm::mat4 MasterRenderer::_projectionMatrix;
Shader Master... |
//#define LCM_USE_SSECOMPLEX
#include <iostream>
#include <complex>
#include "cmatrix_utils.h"
#include "cmatrix_complex.h"
//#define CTYPE std::complex<double>
//#define CTYPE libcmatrix::complex
//#define CTYPE SSEcomplex
// struct padded {
// char x;
// const libcmatrix::complex z;
// padded(char xv, const l... |
#include "graph.h"
Graph::Graph(int v) {
vertex_count = v;
adjacent.resize(vertex_count);
for (int i = 0; i < vertex_count; i++) {
vertices.push_back( Vertex(i) );
adjacent[i].head = nullptr;
}
}
void Graph::breadth_first_search() {
std::queue<Vertex*> toVisit;
std::set<Vertex *> s;
//... |
/// @file
///
/// @brief An adapter to make imaging equation a derivative from IMeasurementEquation
/// @details The current imaging code works with iterators, rather than accessors.
/// Although ImagingMultiChunkEquation allows to take this iterator dependency
/// in stages, it is still a lot of work to convert calcE... |
/*
* FILE: Maximum_Sum-108.cpp
*
* @author: Md. <NAME> <arafathasanjenin[at]gmail[dot]com>
*
* LINK:
*
* DATE CREATED: 31-05-17 02:20:48 (+06)
* LAST MODIFIED: 31-05-17 03:07:04 (+06)
*
* DESCRIPTION:
*
* DEVELOPMENT HISTORY:
* Date Version Description
* ---------------------------------------... |
//
// Created by Oliver_Sun on 2020/3/17.
//
#define TEST
#define _TIME_TEST
#include <iostream>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <vector>
#include <time.h>
#include <cmath>
#include <assert.h>
#include <string.h>
#include <numeric>
using namespace std;
class LogisticRegression {... |
#include "normal_distribution.hpp"
#include <iostream>
#include <random>
#include <string>
#include <chrono>
#include <map>
#include <iomanip>
// Blog: http://blog.csdn.net/fengbingchun/article/details/73770856
///////////////////////////////////////////////////////////////
// reference: http://www.cplusplus.com/refe... |
/*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.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) 2000-2003, Intel Corporation
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 conditio... |
// 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... |
//
// Created by Nikitos on 10.06.18.
//
#include <vector>
#include <iostream>
#include "tree.h"
tree::node::node(uint64_t cnt, node* left, node* right)
: cnt(cnt)
, letter(0)
, left(left)
, right(right) {}
tree::node::node(uint64_t cnt, uint8_t c)
: cnt(cnt)
, letter... |
/* MIT License
*
* Copyright (c) 2021 laferenorg
*
* 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, m... |
#include "dataprocessor.h"
#include "mesh.h"
#include "antennadata.h"
#include "radpatterndata.h"
#include "globject.h"
#include <QMatrix4x4>
#define degToRad(angleInDegrees) ((angleInDegrees) * M_PI / 180.0)
DataProcessor::DataProcessor(QObject *parent) : QObject(parent)
, m_sequence(20)
{
}
void DataProcessor::... |
//
// MIT License
//
// © ESI Group, 2015
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, pu... |
/*
* A- Fazer a TF de uma imagem, zerar as bordas da matriz e em seguida
* calcular a inversa para obter a nova imagem processada.
*
* B- Fazer a TF de uma imagem, zerar os cantos da matriz resultante da
* TF e em seguida calcular a inversa para obter a nova imagem processada.
*/
#include <iostream>
#include <op... |
/*
* 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 ... |
//
//
// MIT License
//
// Copyright (c) 2017 Stellacore Corporation.
//
// 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 ... |
/***************************************************************************************
* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences
*
* XiangShan is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may... |
/*
* Firmware for GRA & AFCH's NCS318 Nixie Clock
* Copyright 2019 <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
* l... |
/*
This file is a modification of yolo_v2_class.hpp
*/
#pragma once
#include <deque>
#include <iostream>
#include <memory>
#include <stdexcept>
#include <string>
#include <vector>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#define C_SHARP_MAX_OBJECTS 1000
struct bb... |
//#include <iostream>
#include "GameManager.h"
#include "LTexture.h"
#include "ImageGroup.h"
#include "Image.h"
#include "Screen.h"
#include "Screenf.h"
#include "ScreenEnd.h"
#include "Constants.h"
using namespace std;
Screen *startScreen;
Screenf *fightScreen;
Screenf *lastFightScreen;
ScreenEnd *winScreen;
Scree... |
#include "optimizer.h"
#include <iostream>
#include <regex>
const static std::unordered_map<std::string, std::string> BROADCAST_TO_EDGE = {
{"BroadcastSrcNode", "BroadcastSrcNodeType"},
{"BroadcastDstNode", "BroadcastDstNodeType"}};
const static std::unordered_map<std::string, std::string> TYPE_BROADCAST_MM ... |
#include <iostream>
#include <iomanip>
#include "MathHelper.h"
#include <fstream>
#include "Airfoil.h"
#include <cmath>
#include <cstdlib>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_permutation.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_blas.h>
using namespace std;
int SourcePanel... |
#include "Machine.h"
#include <util/Logger.h>
#include <util/SerializeUtil.h>
#include <assets/AssetManager.h>
#include <lua/libs/LuaAssets.h>
#include <game/database/GameDatabase.h>
#include "../Vehicle.h"
#include "Part.h"
#include "sol/sol.hpp"
Machine::Machine(std::shared_ptr<cpptoml::table> init_toml, std::stri... |
#include "World.h"
#include "ChunkMesh.h"
#include "BlockManager.h"
Block World::m_nullBlock = Block();
Block World::m_airBlock = Block(1);
World::World(BlockManager& blockManager) {
m_blockManager = &blockManager;
}
std::unique_lock<std::mutex> World::getLock() {
return std::unique_lock<std::mutex>(m_mutex)... |
// Copyright (c) 1998 - 1999 Microsoft Corporation. All Rights Reserved.
#include "stdafx.h"
#include <ks.h>
#include <ksmedia.h>
#include <ksproxy.h>
#include "ksaudio.h"
//--------------------------------------------------------------------------;
//
// BuildPnpAudDeviceList
//
// Add the correct ksprox... |
/************************** TRICK HEADER **********************************************************
@copyright Copyright 2019 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
LIBRARY DEPENDENCY:
((aspects/fluid/source... |
#include "CpuUsage.h"
#include<TlHelp32.h>
#include<sstream>
#include<iomanip>
#include"Log.h"
CCpuUsage::CCpuUsage()
: m_dMax(-1)
, m_dMin(101)
, m_dCur(0)
, dwNUMBER_OF_PROCESSORS(__GetCpuConut())
, m_ullLastTime(0)
, m_ullLastIdleTime(0) {
LOGOUT("CCpuUsage构造");
}
CCpuUsage::~CCpuUsage... |
//
// MIT License
//
// © ESI Group, 2015
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, pu... |
/*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softwar... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "antares_ke_imp.hpp"
#include "nnfusion/util/curl_request.hpp"
using namespace nnfusion;
using namespace nnfusion::kernels;
DECLARE_string(fantares_codegen_server);
std::unordered_map<std::string, std::pair<std::string, bool>> Antar... |
#include <network/rpc.hpp>
#include <debug.hpp>
/*
* Constructor initializes `clusterConf` and `myNodeConf`.
*/
RPCInterface::RPCInterface()
{
if (cmdConf == nullptr || memConf == nullptr) {
d_err("cmdConf & memConf should be initialized!");
exit(-1);
}
if (clusterConf != nullptr || myNo... |
#define _DEBUG_
#include <iostream>
#include <windows.h>
#include <tlhelp32.h>
#include <iterator>
#include <filesystem>
#include "find_steam.h"
namespace fs = std::filesystem;
bool Inject(HANDLE, const wchar_t*);
bool InjectSetDllDirectory(HANDLE, const wchar_t*);
inline bool does_file_exist(const wchar_t* name)... |
#include <Eigen/Dense>
#include <fmt/core.h>
#include <fmt/ranges.h>
#include <algorithm>
#include <array>
#include <fstream>
#include <iostream>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
auto parseFile(char const *file_name) {
auto file = std::ifstream(file_name);
std::string line... |
#include <iostream>
#include <fstream>
#include <ctype.h>
#include <string>
#include "tesplayfair.cpp"
#include "polyalphabetic.cpp"
using namespace std;
#ifdef WINDOWS
bool isWIndows = true;
#else
bool isWindows = false;
#endif
// Kriptografi tugas 1
// Name : <NAME>.
// Student id : 4611416038
// Site : h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.