text stringlengths 3.08k 12.5k |
|---|
/**
* @file token.cc
* @brief Token类具体实现
*/
#include "../include/token.h"
#include <iomanip>
using std::setw;
using std::setfill;
using std::endl;
vector<string> Token::TOKEN_TYPE = {
"keyword",
"identifier",
"digit constant",
"operator",
"separator",
"string cons... |
#pragma once
#include <torch/torch.h>
#include <iostream>
#include <vector>
#include <opencv2/opencv.hpp>
#include <string>
#include <memory>
#include <fstream>
#include <torch/data/example.h>
#include <torch/data/datasets/base.h>
#include <c10/util/ArrayRef.h>
#include ... |
#include "camera.h"
Camera::Camera()
: position(ers::vec3(0.0f, 0.0f, 0.0f)),
width(1280.0f),
height(720.f),
fov(ers::HALF_PI<float>::val() * 0.5f),
zNear(0.1f),
zFar(100.0f),
up(ers::vec3(0.0f, 1.0f, 0.0f)),
world_up(ers::vec3(0.0f, 1.0f, 0.0f)),
movement_sensitivity(DEFAULT_MOVEMENT_SENSITIVITY),... |
#include <SFML/Graphics.hpp>
#include <iostream>
#include <algorithm> //For std::swap
void drawClippingWindow(sf::Vertex [],sf::RenderWindow&);
bool clipTest(float p, float q, float& u1, float& u2)
{
float r;
bool retVal = true;
if (p < 0.0) {
r = q / p;
if (r > u2)
... |
/*
* SuiBoxImplementation.cpp
*
* Created on: 30/01/2010
* Author: victor
*/
#include "server/zone/objects/player/sui/SuiBox.h"
#include "server/zone/packets/ui/SuiCreatePageMessage.h"
#include "server/zone/packets/ui/SuiForceClosePage.h"
#include "server/zone/objects/scene/SceneObject.h"
#include <regex>
#... |
// Copyright <NAME>. All Rights Reserved.
#include "AnimNodes/AnimGraphNode_BlendListByTag.h"
#include "Textures/SlateIcon.h"
#include "Framework/Commands/UIAction.h"
#include "ToolMenus.h"
#include "Kismet2/BlueprintEditorUtils.h"
#include "ScopedTransaction.h"
#include "Kismet2/CompilerResultsLog.h"
#include "Blue... |
/**
* Copyright (c) 2020, Inc.
* All rights reserved.
* @Author:
* @Mail:
*/
#include "rtspclient/hevc_sps.h"
#include "hobotlog/hobotlog.hpp"
class NALStream {
public:
NALStream()
: m_data(NULL),
m_len(0),
m_idx(0),
m_bits(0),
m_byte(0),
m_zeros(0) {
}
... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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 ... |
/**
* File: SelectiveServer.cpp
* Description: Implementation for the selective repeat protocol
* Created at: 2017-12-8
*/
#include "SelectiveServer.h"
SelectiveServer::SelectiveServer(int server_socket, double plp, unsigned int seed, uint32_t max_window_size) {
this->server_socket = server_socket;
thi... |
#include <Arduino.h>
/*
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
rf24ping85.ino by tong67 ( https://github.com/tong67 )
This is an example of how to use the RF24 class to co... |
/*
* MessagePool_test.cpp
*
* Created on: 27 Apr 2014
* Author: <NAME> (<EMAIL>)
*
* Copyright <NAME> 2012 - 2014.
* Distributed under the Boost Software License, Version 1.0.
* (See http://www.boost.org/LICENSE_1_0.txt)
*
*/
#define BOOST_TEST_MODULE MessagePool_test
#include <sys/syscall.h>
#inclu... |
#include "scoreboardscreen.h"
#include "../ui.h"
#include "../menuselectadjustableline.h"
#include "../menuselectoptionelement.h"
#include "../menuselectoptiontextbutton.h"
#include "../resizableelement.h"
#include "../misc.h"
#include "../../globalcontext.h"
#include "../../scoreboard.h"
#include "../../engine.h"
#i... |
//
// Zero-One IP Solver
//
// Description:
// Balas's branch-and-bound 0-1 IP sovler.
// It seeks an integer solution to min c'x s.t. Ax <= b, x in {0,1}^n.
// The algorithm enumerates x with some branch-and-bound techniques
// without solving the corresponding LP.
//
// It scales about n <= 30.
//
//
// Re... |
/*
* extract.cpp
*
* Created on: Jun 26, 2009
* Author: wim
*/
/*
* convert.cpp
*
* Created on: Jun 26, 2009
* Author: wim
*/
#include "tkdCmdParser.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkImage.h"
#include "itkExtractImageFilter.h"
/**
* Convert input to... |
#include <memory>
#include <vector>
#include <iostream>
#include <optional>
#include <version>
#include <chrono>
#include <sys/time.h>
#include <string>
#include <strstream>
#include <fmt/chrono.h>
#include <fmt/ostream.h>
#include <algorithm>
#include <cstdint>
#include <benchmark/benchmark.h>
using namespace std;
/*... |
/*
Copyright (c) 2019 <NAME> Y29udGFjdEBkaWF0aC5uZXQ=
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,... |
// *****************************************************************************
/*!
\file src/Walker/Integrator.cpp
\copyright 2012-2015 <NAME>,
2016-2018 Los Alamos National Security, LLC.,
2019 Triad National Security, LLC.
All rights reserved. See the LICENSE file for... |
// Disable deprecated
#pragma warning(disable : 4995)
#include <assert.h>
#include <list>
#include <string>
#include <fstream>
#include <vector>
#include <stdlib.h>
#include "linkfile.h"
#ifdef LINUX_
#include <strings.h>
#include <cstring>
#endif
#ifdef LINUX_
#define StrCmp strcasecmp
#else
#define StrCmp stricmp
... |
TTree t("t","t");
int Result, Board, Channel, Length, EventID,GBsLength,GBhLength;
unsigned int hversion,hlength;
char GBs;
char GBh;
unsigned long int rimestamp;
unsigned long int Timestamp;
unsigned long int dTimestamp;
unsigned long int oTimestamp;
unsigned long int fTime;
unsigned short pOffset;
unsigned long int s... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Copyright (c) 2019-2020 vadique
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php
#include "primitives/transaction.h"
#include "hash.h"
#i... |
#include <math.h>
#include <iostream>
#include <string>
#include <vector>
#include <stdexcept>
#include <random>
#include <iterator>
#include <sstream>
#include <lifehash/lifehash.hpp>
#include "png-writer.hpp"
using namespace std;
vector<string> args;
string appending_path_component(const string& path, const stri... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
#include "pc.h"
#include "Model.h"
Model::Model(const char* name, int SizeOfVertex) {
sName = name;
mVertexSize = SizeOfVertex;
cbBoolTexturesInst = new ConstantBuffer();
cbBoolTexturesInst->CreateDefault(sizeof(cbBoolTextures));
}
Model::Model(const char* name) {
sName = name;
cbBoolTexturesI... |
// Copyright (C) 2019 by <NAME>, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University ... |
#include "shader.h"
mat4x4 MODEL_MATRIX;
mat4x4 MODEL_INVERSE_TRANSPOSE_MATRIX; // model的逆转置矩阵
mat4x4 VIEW_MATRIX;
mat4x4 V_TRANSPOSE_MATRIX;
mat4x4 V_INVERSE_MATRIX;
mat4x4 MV_INVERSE_TRANSPOSE_MATRIX; // (view * model)的逆转置矩阵
mat4x4 PROJ_MATRIX;
mat4x4 VP_MATRIX;
vec4 LIGHT0;
std::vector<Shade... |
#include <plan_visualization/planning_visualization.h>
PlanningVisualization::PlanningVisualization(ros::NodeHandle& nh) {
node = nh;
goal_pub_ = node.advertise<visualization_msgs::Marker>("/planning_vis/goal", 20);
pubs_.push_back(goal_pub_);
subgoal_pub_ = node.advertise<visualization_msgs::Marker>("/plan... |
/*
* Copyright (C) 2012 by <NAME> (<EMAIL>)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <algorithm>
#include "hal.h"
using namespace std;
using namespace hal;
static void printSequenceLine(ostream& outStream, const Sequence* sequence,
... |
//###############################################################################################################################################
//
// Meta and Builder Object Network V2.0 for GME
// Common.cpp
//
//########################################################################################################... |
//
// Created by nhatv on 2 Jan 2022.
//
#include "audioresizer.h"
#include "timeline.h"
double Timeline::default_audio_length = 5;
void Timeline::addAudio(audio::Audio* audio, QString displayName, double sourceLength, double start, double end) {
auto *item = new AudioItem(audio, displayName, sourceLength, QPoin... |
#pragma once
#include "problem.hh"
#include "parsing.hh"
#include "util.hh"
#include <queue>
#include <map>
#include <optional>
struct Statistics {
void reset();
Timer total;
Timer propagate;
size_t tableau_initial{0};
double tableau_average{0};
size_t tableau_average_n{0};
size_t pivots... |
/*
* Copyright (c) 2011, <NAME>, <NAME>, University of Southern California
* 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
*... |
#include<bits/stdc++.h>
#include<graphics.h>
using namespace std;
void ddaSolve(int X1, int Y1, int X2, int Y2);
void boundaryfill4(int x,int y,int fill_color,int boundary_color);
void floodfill4(int x,int y,int fill_color, int default_color);
void boundaryfill8(int x,int y,int fill_color,int boundary_color);
void flo... |
/*
Copyright 2013 GHI Electronics 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,... |
#include <QDialog>
#include <QAction>
#include <QWidget>
#include <QDebug>
#include <QFileDialog>
#include <QMenuBar>
#include <QMessageBox>
#include <QStatusBar>
#include <QToolBar>
#include <QLineEdit>
#include <QFile>
#include <QSize>
#include <string>
#include <QTextStream>
#include <QDataStream>
#include <vector>
... |
// This file is part of the B library, which is released under the MIT license.
// Copyright (C) 2002-2007, 2016-2020 <NAME> <<EMAIL>>
// See the file LICENSE for the license terms.
#include <b/binary_tree.h>
#include <b/array.h>
#include <b/pseudorandom.h>
#include "test_case.h"
struct element : public b::binary_t... |
/*****************************************************************/
/* NAME: <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: UPV_MOOSApp.cpp */
/* DATE: May 18th, 2012 ... |
#include "renderer.h"
#include "camera.h"
#include "shader.h"
#include "mesh.h"
#include "texture.h"
#include "prefab.h"
#include "material.h"
#include "utils.h"
#include "scene.h"
#include "extra/hdre.h"
using namespace GTR;
void Renderer::renderScene(GTR::Scene* scene, Camera* camera)
{
//set th... |
#include <iostream>
#include <fstream>
#include <string>
#include <stdio.h>
#include <time.h>
#include <algorithm>
#include <vector>
#include <map>
// OpenCV headers
#include <cv.h>
#include <highgui.h>
#include <opencv2/contrib/contrib.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#in... |
/*
* Hedgewars, a free turn based strategy game
* Copyright (c) 2009 <NAME> <<EMAIL>>
* Copyright (c) 2004-2015 <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; version ... |
#include <iostream>
#include <sstream>
#include <fstream>
#include <opencv2/cudaarithm.hpp>
#include <opencv2/cudaimgproc.hpp>
#include <opencv2/cudawarping.hpp>
#include "nn/onnx.h"
using namespace nvinfer1;
using namespace nvonnxparser;
using GpuMat = cv::cuda::GpuMat;
using namespace cv;
ONNXNetwork::ONNXNetwork(... |
#include "stdafx.h"
#include <string>
#include <vector>
#include <stack>
#include <atlapp.h>
#include <atlmisc.h>
using namespace std ;
#include "charsource.h"
#include "charoutput.h"
#include "token.h"
#include "tokeniser.h"
#include "rtftokens.h"
#include "RTFReader.h"
//==========================================... |
#include "MCP.h"
#include "UCP.h"
#include "Application.h"
#include "ModuleAgentContainer.h"
// MCP
enum State
{
ST_INIT,
ST_REQUESTING_MCCs,
ST_ITERATING_OVER_MCCs,
// TODO: Other states
ST_WAITING_ACCEPTANCE,
ST_NEGOTIATING,
ST_NEGOTIATION_FINISHED
};
MCP::MCP(Node *node, uint16_t requestedItemID, uint16_t ... |
/*!
* Copyright (c) 2021 by Contributors
* \file test_threading_utils.cc
* \author <NAME>
* \brief C++ tests for threading utilities
*/
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <vector>
#include <algorithm>
#include <thread>
#include <random>
#include <cstddef>
#include <cstdint>
#include "thread... |
//===========================================================================
//Copyright (C) 2003, 2004 <NAME>
//
//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 ab... |
/*Copyright 2017 Bang & <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublic... |
// Surface.cpp : class for manipulation and blitting of surfaces
#include "stdafx.h"
CSurface::CSurface(void)
{
// CSurface construction
m_surface = NULL;
m_ColorKey = -1;
}
CSurface::~CSurface(void)
{
// CSurface destruction
Destroy();
}
BOOL CSurface::Create(LPDIRECTDRAW7 hDD, int width, int... |
#include <emptyspace/graphics/textures.hpp>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include <filesystem>
#include <sstream>
Texture* Texture::FromFile(const std::string_view filepath, const u32 component)
{
s32 width{};
s32 height{};
s32 components{};
if (!std::filesystem::exists(fi... |
/* ************************************************************************
* Copyright (c) 2020-2022 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include "testing_sygvx_hegvx.hpp"
using ::testing::Combine;
using ::testing::TestWithParam;
using ::tes... |
#include <stdio.h>
#include <iostream>
#include "PathNode.h"
#include "PowerUp.h"
#include "Weapon.h"
#include "Health.h"
#include "Armor.h"
#include "UnitTest.h"
#include <math.h>
#include <queue>
#include <unordered_map>
#include <unordered_set>
static PathNodes sPathNodes;
static PowerUps sPowerUps;
//compare fun... |
#include "../../head.h"
class SolutionTimeLimit {
public:
std::vector<int> findMinHeightTrees(int n, std::vector<std::vector<int>> const & edges) {
std::vector<std::vector<int>> graph(n);
std::vector<int> degree(n, 0);
for (int i = 0; i < edges.size(); i++) {
graph[edges[i][0]]... |
#include <benchmark/benchmark.h>
#include <list>
#include <unordered_set>
#include <numeric>
#include <algorithm>
#include <random>
constexpr int64_t START_SIZE = 8;
constexpr int64_t END_SIZE = 8 << 12;
constexpr int64_t MAX_CONTAINERS = 8 << 12;
constexpr int64_t MAX_ELEMENTS = 8 << 22;
static int64_t toIncrement =... |
/*
* Use an inverted index to find the longest substring(s) that is repeated
* a specified number of times in a corpus of documents.
*
* Documentation in https://github.com/peterwilliams97/repeated_sequences
*/
#include <assert.h>
#include <iostream>
#include "mytypes.h"
#include "utils.h"
#include "timer.h"
#in... |
/*!
* \file
* \details This file is part of https://github.com/kurogit/arduino_pong which is licensed under the MIT License.
* \copyright 2016 <NAME> <<EMAIL>>
*/
#include "GameField.hpp"
#include "CollisionProcessor.hpp"
#include "Renderer.hpp"
namespace
{
constexpr int FieldWidth = 160;
constexpr int FieldHeig... |
#include "main.h"
#include "gui.h"
#include "game/game.h"
#include "game/RW/RenderWare.h"
extern CGUI *pGUI;
RwRaster* g_FontRaster = nullptr;
RwIm2DVertex* g_pVB = nullptr; // vertex buffer
unsigned int g_VertexBufferSize = 5000;
ImVec4 g_ScissorRect;
void ImGui_ImplRenderWare_RenderDrawData(ImDrawData* draw_data)... |
//===-- xray_interface.cpp --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "snowman.hpp"
#include <stdexcept>
#include <string>
#include <iostream>
#include <algorithm>
#include <array>
using namespace ariel;
using namespace std;
/**
* Implemantion of snowman creator, each method attached with explanations
* H=head , X=left hand, L=left eye, N= nose , R= right eye, Y=right hand... |
/*
Copyright (c) 2013 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sub... |
// 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<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define FILL(i,n) memset(i,n,sizeof i)
#define X first
#define Y second
#define SZ(_a) (int)_a.size()
#define ALL(_a) _a.begin(),_... |
#include "battle/ScriptVariables.hpp"
#include <sstream>
#include "battle/data/Pokemon.hpp"
#include "battle/helpers/battle-utils.hpp"
#include "components/battle/Battle.hpp"
#include "constants.hpp"
#include "core-functions.hpp"
#include "CoreStructures.hpp"
namespace {
template<typename T>
void set(engine::... |
#define LARGE_JSON_BUFFERS 1
#define ARDUINOJSON_USE_LONG_LONG 1
#include <Ticker.h>
#include <Arduino.h>
#include <ArduinoJson.h>
// webthings
#include <WebThingAdapter.h>
#include <Thing.h>
// Network
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
// OTA
#include <ESP8266HTTPClient.h>
#include <ESP8266httpUpda... |
#pragma once
/**
* @brief OS configuration header
* @author Liastre
* @copyright MIT
*
* Available user defines description:
* CASM_DEBUG
* description:
* debug define with 5 levels of debug messages
* value:
* integer value from 0 to 5
*
*
* Config produced defines:
* PLATFORM
... |
#include "look_up_table_2d.h"
#include<iostream>
LookUpTable2D::LookUpTable2D(std::vector<double> x_breakpoints, std::vector<double> y_breakpoints){
_x_breakpoints = x_breakpoints;
_y_breakpoints = y_breakpoints;
}
LookUpTable2D::~LookUpTable2D(){
}
void LookUpTable2D::loadDatum(double x, double y, double ... |
//
// $Id: uipmc_test.cpp 91825 2010-09-17 09:10:22Z johnnyw $
//
#include "ace/Task.h"
#include "ace/Mutex.h"
#include "Hello_Impl.h"
#include "orbsvcs/PortableGroup/GOA.h"
#include "ace/Get_Opt.h"
#include "ace/Manual_Event.h"
#include "tao/Policy_Manager.h"
#define CLIENT_SLEEP_TIME 1000 /* in microsecon... |
#pragma once
/* Third Party */
#include <sodium/crypto_generichash_blake2b.h>
#include <sodium/randombytes.h>
/* Third Party */
#include <sodium/crypto_generichash_blake2b.h>
#include <sodium/randombytes.h>
#include <boost/serialization/array.hpp>
#include <boost/serialization/vector.hpp>
/* Ligero */
#include "Comm... |
#include "TextWindow.h"
#include "Colors.h"
#include <string>
#include <syslog.h>
TextWindow::TextWindow( SDL_Surface *pSurface ) : SDLChildWindow( pSurface )
{
_currentLine = new std::list<StringEntry * >;
#ifdef WIN32
const char* fontName = "fonts\\FreeMono.ttf";
#else
const char* fontName =... |
/**
* @file SentimentService.cpp
* @date May 11, 2017
* @author <NAME>
* copyright 2017 <NAME>
* @brief Parsed input from the user.
*/
#include <glob.h>
#include <std_msgs/Int8.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <map>
#include <memory>
#include <Parser.hpp>
... |
// This file is part of comma, a generic and flexible library
// Copyright (c) 2011 The University of Sydney
// 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 cod... |
//
// Created by yche on 10/2/17.
//
#include "SCANSuperNaiveGraph.h"
#include <cmath>
#include <chrono>
#include <queue>
using namespace std;
using namespace chrono;
using namespace yche;
SCANSuperNaiveGraph::SCANSuperNaiveGraph(const char *dir_string, const char *eps_s, int min_u) {
io_helper_ptr = yche::make... |
#include "LogStorage.hpp"
/**
* \file LogStorage.cpp
* \ingroup lcc
*/
using namespace std::placeholders;
LogStorage::LogStorage() :
/*Set up communication*/
log_reader(std::bind(&LogStorage::log_callback, this, _1), "log", true)
{
file.open(filename, std::ofstream::out | std::ofstream::trunc);
... |
/**************************************************************************
Copyright (c) 2012, <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 ab... |
//
// XInt_Handler.cpp
// HYCodeScan
//
// Created by admin on 2020/8/1.
//
#include "XNum_Handler.hpp"
#include "XCommanFunc.hpp"
#include "XVar.h"
#include "XCodeLine.h"
using namespace hygen;
int Num_Handler::supportMode() {
return CodeMode_OC | CodeMode_C | CodeMode_CXX;
}
void Num_Handler::supportTypes... |
/*!
* @brief Strategy for logger configuration
*
* This file maps user configuration (parsed from configuration.json) to
* logger objects.
*
* @copyright Copyright (c) 2016-2017 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... |
// Standard includes
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <memory.h>
#include <string.h>
// STL includes
#include <vector>
// The size of the hash space
static const uint64_t HASH_SPACE_SIZE = 1UL << 32UL;
// The maximum number of characters in the string
static const size_t MA... |
/*
* Copyright (C) 2020 The Android Open Source Project
*
* 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,
*... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
#include "Model.h"
// #define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
Model::Model(std::string path)
{
this->loadModel(path);
}
void Model::Draw(Shader shader)
{
for(GLuint i = 0; i < this->meshes.size(); i++)
this->meshes[i].Draw(shader);
}
void Model::loadModel(std::string path)
{
Assi... |
//
// Copyright 2020 Autodesk
//
// 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 ... |
/**
* @file scheduler.h
* @brief This file contains functions and variables related to the Scheduler and worker threads.
*
*/
#include "kmp.h"
#include "mtsp.h"
#include "scheduler.h"
#include "task_graph.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
pthread_t* volatile workerThreads = nul... |
/*************************************************************************/
/* audio_stream_generator.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "shared.h"
struct Test
{
RenderTarget& target;
scene_graph::HeightMap& height_map;
scene_graph::controllers::Water::Pointer water;
Test (RenderTarget& in_target, scene_graph::HeightMap& in_height_map, scene_graph::controllers::Water::Pointer in_water)
:... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/tab_icon_view.h"
#if defined(OS_WIN)
#include <windows.h>
#include <shellapi.h>
#endif
#include "base/file_util.h"... |
#include "main.h"
#include "../Hacks/aimbot.h"
#include "../Hacks/antiaim.h"
#include "../Hacks/autoshoot.h"
#include "../Hacks/bhop.h"
#include "../Hacks/clantag.h"
#include "../Hacks/spammer.h"
#include "../Hacks/fakewalk.h"
#include "../Backtrack.hpp"
#include "../moonwalk.hpp"
#include "../Hacks/triggerbot.hpp"
#i... |
/*=========================================================================
Program: Bender
Copyright (c) Kitware 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.a... |
/*
Phobos 3d
September 2010
Copyright (c) 2005-2013 <NAME> http://code.google.com/p/phobos3d
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 softwa... |
#include "ML_modules.hpp"
using simd::float_4;
struct OctaSwitch : Module {
enum ParamIds {
THRESHOLD_PARAM,
NUM_PARAMS
};
enum InputIds {
THRESHOLD_INPUT,
GATE_INPUT,
A_INPUT = GATE_INPUT + 8,
B_INPUT = A_INPUT + 8,
NUM_INPUTS = B_INPUT + 8
};
enum OutputIds {
OUT_OUTPUT,
NUM_OUTPUTS = O... |
// Copyright 2011-2014 Google
// 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... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include "base/os.h"
#include "testing/gunit.h"
#include <base/logging.h>
#include <io/event_manager.h>
#include <io/test/event_manager_test.h>
#include <tbb/task.h>
#include <base/task.h>
#include <cmn/agent_cmn.h>
#include "cfg/cfg_init.h"
#... |
// TermColor: AviSynth filter that demonstrates the terminal color
// quantizations used by Turbo Vision.
//
// Tested with AVS+ 3.7, Linux x86_64.
//
// TermColor(clip c, string "mode")
//
// * clip c: input clip must be RGB24 or RGB32.
// * string mode: one of: indexed8, indexed16, indexed256, direct.
#include <avis... |
/*************************************************************************/
/* texture_editor_plugin.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* Copyright (c) 2017 Sprint
*
* 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,... |
#include <iostream>
#include "Cell.hpp"
Cell::Cell() : m_vA0(0.0, 0.0, 0.0) {
};
void Cell::SetConstants(double aa, double bb, double cc, double al, double be, double ga) {
double sin_ga, cos_ga;
double sin_be, cos_be;
double cos_al;
Vector3 vA, vB, vC;
al = M_PI * al / 180.0;
be = M_PI * be / 180.0;
ga... |
//===- llvm-crash-analyzer-ta.cpp -------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-------------------... |
#include "stdafx.h"
#include "Camera.h"
#include "Engine.h"
#include "GameEntity.h"
#include "Input.h"
#include "Material.h"
#include "Mesh.h"
#include "ShaderHelper.h"
Engine::Engine()
{
}
Engine::~Engine()
{
glfwTerminate();
if ( fs ) glDeleteShader( fs );
if ( vs ) glDeleteShader( vs );
if ( tankM... |
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "syslog-cat/syslogcat.h"
#include <memory>
#include <sys/socket.h>
#include <sys/un.h>
#include <base/files/file_path.h>
#include <base/fil... |
//{
#include "lib2013.h"
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define FILL(i,n) memset(i,n,sizeof i)
#define X first
#define Y second
#define SZ(_a) (int)_a.size()
#define ALL(_... |
/**
* @file main.cpp
*
* This module holds the main() function, which is the entrypoint
* to the program.
*
* © 2019 by <NAME>
*/
#include <algorithm>
#include <fstream>
#include <functional>
#include <map>
#include <math.h>
#include <memory>
#include <set>
#include <stdlib.h>
#include <stdio.h>
#include <strin... |
#include "stdafx.h"
#include "AIProcessor.h"
#include "ControlComponent.h"
#include "PhysicComponent.h"
#include "BaseAICommand.h"
#include "GameContext.h"
#include "ObjectsStorage.h"
#include "Vars.h"
namespace
{
UseIntVar CONTROL_TURN_UP("CONTROL_TURN_UP" );
UseIntVar CONTROL_TURN_DOWN("CONTROL_TURN_DO... |
/*
* File: TrafficPage.cpp
* Author: danny
*
* Created on March 12, 2015, 11:16 PM
*/
#include "TrafficPage.h"
#include <Poco/Data/Session.h>
#include <Poco/Util/Application.h>
#include "DataSubsystem.h"
#include "WebForm.h"
#include "WhoisPage.h"
#include "TrafficZoomPage.h"
#include "AuthorizedTrafficPage.h"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.