text stringlengths 3.08k 12.5k |
|---|
//##########################################################################
//# #
//# CLOUDCOMPARE #
//# #
//# This pr... |
/**
* Filename: p1300-future.cpp
* Description:
*
* Instead of using a user-defined coroutine type (as in most other examples),
* this example uses the future type that Microsoft has extended
* with coroutine functionality and comes with the installation of
* Microsoft Studio 2019.
*
* This implement... |
#include<iostream>
#include<memory>
#include<assert.h>
template<typename T>
class Vector
{
private:
T* array{nullptr}; // array of type T
std::size_t size{0}; // actual size
std::size_t capacity{0}; // dimension of the array
private:
/**
* REALLOC
*
* @brief this function al... |
/*!
* Copyright (c) 2021 Bosch Sensortec GmbH. All rights reserved.
*
* BSD-3-Clause
*
* 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
* no... |
/*
* Name: <NAME>
* Entry Number: 2019CS10349
* Assignment 3 Q2
*/
#include <fstream>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include <bits/stdc++.h>
using namespace ns3;
NS_LOG_COMPONEN... |
//WA
//51 / 69 test cases passed.
class Solution {
public:
int leastInterval(vector<char>& tasks, int n) {
map<char, int> counter;
map<char, int>::iterator it;
for(char task : tasks){
counter[task]++;
}
// it = counter.begin();
// while(!... |
/*HJ95 人民币转换
考试题目和要点:
1、中文大写金额数字前应标明“人民币”字样。中文大写金额数字应用壹、贰、叁、肆、伍、陆、柒、捌、玖、拾、佰、仟、万、亿、元、角、分、零、整等字样填写。
2、中文大写金额数字到“元”为止的,在“元”之后,应写“整字,如532.00应写成“人民币伍佰叁拾贰元整”。在”角“和”分“后面不写”整字。
3、阿拉伯数字中间有“0”时,中文大写要写“零”字,阿拉伯数字中间连续有几个“0”时,中文大写金额中间只写一个“零”字,如6007.14,应写成“人民币陆仟零柒元壹角肆分。
4、10应写作“拾”,100应写作“壹佰”。例如,1010.00应写作“人民币壹仟零拾元整”,110.00应写作“人民币壹佰拾元... |
/*
* Bumble Bots, a Gamebuino game
*
* Copyright 2018, <NAME>
*/
#include <Gamebuino-Meta.h>
#include "ProgressTracker.h"
#include "Levels.h"
//-----------------------------------------------------------------------------
// ProgressTracker implementation
const uint8_t VMAJOR = 1;
const uint8_t VMINOR = 1;
co... |
/**
* @file
* @brief Report which species, jobs and combos are playable.
*/
#include "AppHdr.h"
#include <algorithm>
#include <vector>
#include "json.h"
#include "json-wrapper.h"
#include "filter-enum.h"
#include "playable.h"
#include "jobs.h"
#include "newgame.h"
#include "ng-restr.h"
#include "species.h"
#incl... |
#include "Control.h"
// min and max altitude defaults [ft]
#define MIN_ALTITUDE 60000
#define MAX_ALTITUDE 80000
// min velocity and acceleration defaults
#define MIN_VELOCITY 0
#define MIN_ACCEL 0
// default alpha, beta, gamma weights
#define DEFAULT_BAL_ALPHA 1
#define DEFAULT_BAL_BETA 1
#define DEFAULT_BAL_GAMMA 1... |
#include "cmod_singleowner_test.h"
#include "cmod_financial_eqns.h"
#include "gtest/gtest.h"
TEST_F(CMSingleOwner, ResidentialDefault_cmod_swh) {
int errors = run_module(data, "singleowner");
ASSERT_EQ(errors, 0);
ssc_number_t npv;
ssc_data_get_number(data, "project_return_aftertax_npv", &npv);
... |
/*
niaw is a program like the built-in cat: it
just transfers data from standard input to
standard output. The difference is that it
uses the hl aio system.
*/
#include"all_defines.hpp"
#include"aio.hpp"
#include<boost/shared_ptr.hpp>
#include<vector>
#include<queue>
#include<stdexcept>
#include<iostream>
#ifndef ... |
// Copyright (c) 2019, Lawrence Livermore National Security, LLC.
// See top-level LICENSE file for details.
// Sampler.cpp
// Caliper sampler service
#include "caliper/CaliperService.h"
#include "caliper/Caliper.h"
#include "caliper/SnapshotRecord.h"
#include "caliper/common/Log.h"
#include "caliper/common/Runtime... |
#include "PlatformPrecomp.h"
#include "Game.h"
#include <stdio.h>
#include <stdlib.h>
#include "GUI/GUI_MainMenu.h"
#include "Defines/GameScaleValues.h"
Game::Game()
{
}
Game::Game( Board *board, Figure *figures, Render *io, int screenHeight )
{
m_screenHeight = screenHeight;
// Get the pointer to t... |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2006, 2010 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <db_cxx.h>
#include "SimpleConfigInfo.h"
using std::cout;
using std::cin;
using std::cerr;
... |
/*
* Copyright (c) 2013-2014,2016 - Adjacent Link LLC, Bridgewater, New
* Jersey
* Copyright (c) 2009-2010 - DRS CenGen, LLC, Columbia, Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
string S;
vector<string> W;
int dp[51][51];
int inf = 123456789;
int dp2[51][51];
int cnt[50][26];
int cntS[50][50][26];
int ... |
/*
* Copyright (c) <2010> <<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, dist... |
#include "torch/script.h"
#include "torch/torch.h"
#include "trtorch/trtorch.h"
#include "trtorch/ptq.h"
#include "NvInfer.h"
#include "datasets/cifar10.h"
#include "benchmark/benchmark.h"
#include <iostream>
#include <sstream>
#include <memory>
#include <sys/stat.h>
namespace F = torch::nn::functional;
// Actual ... |
/*******************************************************************************
* File: Amcl_pairings.cpp
* Description: Routines for checking pairings using AMCL
*
* Author: <NAME>
* Created: Wednesday 28 November 2018
*
* (C) Copyright 2018, University of Surrey.
*
***************************... |
/******************************************************************************
* Copyright 2018 The Apollo Authors. 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
... |
//=======================================================================
// Copyright <NAME> 2015-2017.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
#include <iostrea... |
// ---------------------------------------------------------------------------
// Unified Panoptic Segmentation Network
//
// Copyright (c) 2018-2019 Uber Technologies, Inc.
//
// Licensed under the Uber Non-Commercial License (the "License");
// you may not use this file except in compliance with the License.
// You... |
#include <rmg/math/euler.hpp>
#include <gtest/gtest.h>
#include <rmg/math/mat3.hpp>
using namespace rmg;
/**
* @brief Euler constructor test
*/
TEST(Euler, constructor) {
Euler rot1 = Euler();
ASSERT_EQ(0, rot1.roll);
ASSERT_EQ(0, rot1.pitch);
ASSERT_EQ(0, rot1.yaw);
Euler rot2 = Euler(0... |
// Copyright 2018 Google 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 writi... |
/*
* Copyright (c) 2019, The Robot Studio
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of cond... |
#include "md5.h"
uint32_t md5sum::leftrotate(uint32_t x, uint32_t c)
{
return (x << c) | (x >> (32 - c));
}
bool md5(const char *message,
size_t buffer_size,
size_t size,
unsigned char *md5)
{
for (uint32_t i = 0; i < 16; ++i)
md5[i] = 0;
constexpr... |
/*
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... |
#pragma once
#include "Grid2D.hpp"
#include "StarDraftMap.hpp"
#include <algorithm>
#include <vector>
// a base is just a rectangle encompassing some portion of the map
// if translated back to BWAPI, just add all the resources in the rectabgle
struct BaseBorder
{
int left = std::numeric_limits<int>::max();
... |
#include "player.hpp"
CPlayer::CPlayer( const int & n_x, const int & n_y, const int n_health, const int n_level, const int n_damage ,
const int n_progress, const char n_direction, const int n_equip_damage) : m_x ( n_x ), m_y ( n_y ), health ( n_health ), player_damage ( n_damage ),
level ( n_lev... |
//
// Created by wlbf on 9/10/21.
//
#include "socket_ops.h"
#include "glog/logging.h"
#include "fcntl.h"
#include <cerrno>
#include <cstdio>
#include <strings.h>
#include <sys/socket.h>
#include <unistd.h>
namespace {
using SA = struct sockaddr;
const SA *sockaddr_cast(const struct sockaddr_in *addr) {
... |
//
// Session.cpp
// SimpleTextMaster
//
// Created by <NAME> on 12/12/15.
//
//
#include "Session.h"
Session::Session(){
}
Session::~Session(){
}
Session::Session(License* l,string url){
this->sessionLicense = l;
this->contentinformationURL = url;
this->backgroundImagePath = "content... |
//--------------------------------------------------------------------------
// File and Version Information:
// $Id: AppBasicCommand.cc 509 2010-01-14 15:18:55Z stroili $
//
// Description:
// Class AppBasicCommand. This is an abstract class that acts as the
// parent for the "module", "sequence" and "path" commands.... |
/*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of the ParaView lice... |
// -*- C++ -*-
// Copyright 2006-2007 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz
// or its licensors, as applicable.
//
// You may not use this file except under the terms of the accompanying license.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this file excep... |
/*
The MIT License
Copyright (c) 2017-2017 <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... |
#include "mcp3008Spi.h"
#include "vector.h"
using namespace std;
/**********************************************************
* spiOpen() :function is called by the constructor.
* It is responsible for opening the spidev device
* "devspi" and then setting up the spidev interface.
* private member variables are used... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)2014-2019, WWIV Software Services */
/* ... |
//===- PatternMatch.cpp - Base classes for pattern match ------------------===//
//
// 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 "LR1.h"
#include <string>
#include <fstream>
#include <iostream>
#include <sstream>
#include <list>
#include <deque>
#include "Node.h"
#include "ParsingFailure.h"
#include "States.h"
void LR1::ReadLr1(std::deque<std::string> lines) {
// Read terminals
int num_terminals = Utils::ReadIntLineFromLines(li... |
/* kitty: C++ truth table library
* Copyright (C) 2017-2020 EPFL
*
* 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... |
/*
* This file is part of Poedit (https://poedit.net)
*
* Copyright (C) 2018-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 l... |
// Copyright <NAME> 2014-2017
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
// If you like this project, please add a star!
#pragma once
#include "Data/JsonBufferAllocated.hpp"
#include "Data/List.hpp"
#include "Data/ReferenceType.hpp"
#include "Data/ValueSetter.hpp"
#include "... |
#include "platform/platform.cc"
#include "gl/gl.cc"
#include "renderer/renderer.cc"
#include "renderer/camera.cc"
#include "simulation/camera.cc"
#include "gfx/gfx.cc"
#include "math/math.cc"
v3f cpos(0.f, 0.f, 100.f);
v3f ctgt(0.f, 0.f, 0.f);
v3f cup(0.f, 1.f, 0.f);
float speed = 10.f;
v3f cubepos(0.f, 0.f, 0.f);
v3f... |
/// \file PressureI.cpp
/// \brief Interface for pressure method
/// \date Sep 14, 2016
/// \author Severt
/// \copyright <2015-2020> Forschungszentrum Juelich GmbH. All rights reserved.
#include "PressureI.h"
#include "../utility/Parameters.h"
#include "../Domain.h"
#include "../boundary/BoundaryController.h"... |
/**
BSD-3-Clause
Copyright 2019 Alliance for Sustainable Energy, LLC
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... |
#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... |
/*=========================================================================
Program: Visualization Toolkit
Module: TestImageDataOrientation.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distrib... |
#include "pch.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <opencv2/core/core.hpp>
#include "opencv2/imgcodecs.hpp"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include "dirent.h"
#include <stdlib.h>
#include <time.h>
using namespace cv;
using namespace std;
#define ... |
#include "snake/snakeserver.hpp"
int16_t SnakeGameServer::addSnake(){
if (snakesAmount == maxSnakesAmount) return -1;
snakesAmount++;
snakes[snakesAmount - 1] = new Snake(snakesAmount, getRandomReal<float>(0, width - 1), getRandomReal<float>(0, height - 1));
return getSnakeId(snakes[snakesAmount - 1]);
}
void ... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
#include "emu.h"
#include "includes/higemaru.h"
void higemaru_state::higemaru_videoram_w(offs_t offset, uint8_t data)
{
m_videoram[offset] = data;
m_bg_tilemap->mark_tile_dirty(offset);
}
void higemaru_state::higemaru_colorram_w(offs_t offset, uint8_t data)
{
m_c... |
#include "Molmodel.h"
#include <iostream>
#include <fstream>
using namespace SimTK;
// Propane is a three carbon linear alkane
// C(3)H(8), or CH3-CH2-CH3
class Propane : public Molecule
{
public:
// constructor
Propane()
{
setCompoundName("Propane");
// First atom
... |
// Copyright (c) 2019 AUTHORS
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "octotiger/test_problems/rotating_star.hpp"
#include "octotiger/defs.hpp"
#include "octotiger/options.hpp"
#include <c... |
/*
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2014 Intel 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
* wit... |
#pragma once
// Forward type declarations
struct Vec2;
struct IntVec2;
struct Vec3;
struct AABB2;
struct Vertex_PCU;
struct OBB2;
struct FloatRange;
class Polygon2;
float GetShortestAngularDisplacement( float originDegrees, float targetDegrees );
float GetTurnedToward( float originDegrees, float targetDegrees, floa... |
//bbbb
//cccc
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
void my_sleep(unsigned msec)
{
struct timespec req, rem;
int err;
req.tv_sec = msec / 1000;
req.t... |
//
// File: YNGP_M8.cpp
// Created by: <NAME>
// Created on: May 2010
//
/*
Copyright or © or Copr. Bio++ Development Team, (November 16, 2004)
This software is a computer program whose purpose is to provide classes
for phylogenetic data analysis.
This software is governed by the CeCILL license under Fr... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#define _CRT_SECURE_NO_WARNINGS // "secure" CRT not available on all platforms --add this at the top of all CPP files that give "function or variable may be u... |
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <ctime>
#include <vector>
#include <queue>
#include <stack>
#include <map>
using namespace std;
#define F first
#define S second
#define MP make_pair
typedef long long ll;
typedef long double ld;
t... |
/*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
nntpstr.cpp
Abstract:
This module contains definition all string definitions
Author:
<NAME> (JohnsonA) 25-Sept-1995
Revision History:
--*/
//#include "tigris.hxx"
#include "stdinc.h"
//
// from extcmk2.h
//
... |
/**
* Specialization of a vector class to handle vector<bool> more efficiently.
*
* @author <NAME>
* @url https://github.com/petergottschling/discovering_modern_cpp/blob/master/c%2B%2B11/derivative.cpp
*/
#include <cassert>
#include <iostream>
#include <memory>
#include <algorithm>
/*
* PART A: Generic v... |
/*
* Copyright 2006-2012, <NAME> <<EMAIL>>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "Exporter.h"
#include <fs_attr.h>
#include <new>
#include <stdio.h>
#include <Alert.h>
#include <Catalog.h>
#include <File.h>
#include <Locale.h>
#include <Node.h>
#include <NodeInfo.h>
#... |
/*********************************************************************************
* Developers:
* <NAME> https://bitbucket.org/anilkayan
* <NAME> https://github.com/onurozuduru
*
*License: The MIT License (MIT)
*
* Copyright (c) 2015 <NAME> - <NAME>
* Permission is hereby granted, free of charge, to any ... |
/****************************************************************************************************************/
/* */
/* OpenNN: Open Neural Networks Library ... |
#include "nb/WalkingArm.h"
using namespace Kinematics;
using boost::shared_ptr;
using namespace std;
WalkingArm::WalkingArm(const MetaGait* _gait, ChainID id)
: state(SUPPORTING),
chainID(id),
gait(_gait),
frameCounter(0),
startStep(true),
lastStepType(REGULA... |
/*************************************************************************/
/* vg_texture_renderer.cpp */
/*************************************************************************/
#include "vector_graphics_texture_renderer.h"
#include "vector_graphics_path.h"
static Ref... |
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistributions ... |
/*==================realizeCascades.cpp====================================
PROGRAMMER: <NAME> 03/08/17
UPDATES:
PURPOSE: Generate ROOT trees for realizations of neutron capture
cascades specified in input files.
====================================... |
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sourc... |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and r... |
#include "LargeImageData.hpp"
#include "Common.hpp"
#include <Gosu/Bitmap.hpp>
#include <Gosu/Graphics.hpp>
#include <Gosu/Math.hpp>
#include <cmath>
using namespace std;
Gosu::LargeImageData::LargeImageData(Graphics& graphics,
const Bitmap& source, unsigned partWidth, unsigned partHeight,
unsigned borderFlags... |
#pragma ident "@(#)para.cxx 1.7 05/08/01 21:49:11 BSN"
/*-
File: para.cxx
Version: 1
Description: class PARA - index documents by paragraphs
Author: <NAME>, Scott Technologies, Inc.
Modifications: <NAME>, <EMAIL>
*/
#include <ctype.h>
#include "common.hxx"
#include "para.hxx"
#include "doc_conf.hxx"
... |
//
// Mesh.cpp
// GameEngineX
//
// Created by <NAME> on 21/05/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include "Mesh.hpp"
#include "../Common/stringhelpers.h"
Mesh::~Mesh() {
glDeleteBuffers(1, &_vertexbuffer);
glDeleteBuffers(1, &_indexbuffer);
}
void Mesh::Initialize(const std::vector<... |
#include <algorithm>
#include <thread>
#include <unordered_map>
#include "build/kmer_index/build.hpp"
#include "build/kmer_index/kmers.hpp"
#include "build/kmer_index/load.hpp"
using namespace gram;
Sequence gram::deserialize_next_kmer(const uint64_t &kmer_start_index,
const sdsl... |
//
// Lua.cpp
// Copyright (c) <NAME>. All rights reserved.
//
#include "Lua.hpp"
#include "LuaFileSystem.hpp"
#include "LuaSystem.hpp"
#include "LuaContext.hpp"
#include "LuaGraph.hpp"
#include "LuaTargetPrototype.hpp"
#include "LuaToolsetPrototype.hpp"
#include "LuaTarget.hpp"
#include "LuaToolset.hpp"
#include "typ... |
#include "selfdrive/ui/qt/sidebar.h"
#include <QMouseEvent>
#include "selfdrive/ui/qt/util.h"
void Sidebar::drawMetric(QPainter &p, const QString &label, QColor c, int y) {
const QRect rect = {30, y, 240, label.contains("\n") ? 124 : 100};
p.setPen(Qt::NoPen);
p.setBrush(QBrush(c));
p.setClipRect(rect.x() +... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... |
//
// Created by nineball on 7/7/21.
//
#include "Initializers.h"
VkCommandPoolCreateInfo init::command_pool_create_info(uint32_t queueFamilyIndex, VkCommandPoolCreateFlags flags) {
VkCommandPoolCreateInfo info = {};
info.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
info.pNext = nullptr;
info.... |
#include "player.h"
#include "card.h"
#include "selectCardDialog.h"
#include "game_500_settings.h"
#include "mainwindow.h"
#include "logic.h"
#include "playcards.h"
PlayCards::PlayCards(Player **players, Bid *bid, QObject *parent) : QObject(parent)
{
m_players = players;
m_leadPlayer = bid->GetPlayerId();
m_bid = ... |
/*
pbrt source code Copyright(c) 1998-2010 <NAME> and <NAME>.
This file is part of pbrt.
pbrt 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 2 of the License, or
(at your... |
/////////////////////////////////////////////////////////////
// //
// Copyright (c) 2003-2017 by The University of Queensland //
// Centre for Geoscience Computing //
// http://earth.uq.edu.au/centre-geoscience-computing //
// ... |
#include <iostream>
#include "wash_opt_structure.h"
SoilingFunction::SoilingFunction()
{
}
SoilingFunction::SoilingFunction(
double day,
double week,
double month,
double six_month
)
{
day_degradation = day;
week_degradation = week;
month_degradation = month;
sixmo_degradation = six_month;
}
double SoilingFu... |
#include "libint2eints.hpp"
#include "fmgamma.hpp"
using namespace aquarius::input;
using namespace aquarius::symmetry;
using namespace aquarius::task;
namespace aquarius
{
namespace integrals
{
Libint2eIntegrals::Libint2eIntegrals(const Shell& a, const Shell& b, const Shell& c, const Shell& d)
: TwoElectronIntegra... |
//
// Created by <NAME> on 22/12/17.
//
#include "TWMCSystemData.hpp"
#include "Base/NoisyMatrix.hpp"
#include "Base/Settings.hpp"
#include "Base/Utils/EigenUtils.hpp"
#include "easylogging++.h"
#include <algorithm>
#include <iostream>
TWMCSystemData::TWMCSystemData(const Settings* settings) {
nx = settings->get<s... |
#include <iostream>
#include <cmath>
#include <x86intrin.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
using namespace std;
#define KERNEL_SIZE 3
#define IMAGE_PATH "Lenna.png"
char* calculate_gradient_serial(char *image_data, int img_width, int img_height, char kern... |
/****************************************************************
* This file is based on the code of Chaco by <NAME> *
* and <NAME> at Sandia National Laboratories *
****************************************************************/
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include ... |
/***************************************************************************
*cr
*cr (C) Copyright 2008-2010 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
***************************************************************... |
/*********************************************************************/
/* Copyright (c) 2016-2018, EPFL/Blue Brain Project */
/* <NAME> <<EMAIL>> */
/* All rights reserved. */
/* ... |
/*
Copyright (c) 2019 Sogou, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... |
#include "precomp.h"
#include <commain.h>
#include <clsfac.h>
#include "logfile.h"
#include "cmdline.h"
#include "evtlog.h"
#include "ProcKiller.h"
#include <tchar.h>
const CLSID CLSID_WbemLogFileConsumer =
{0x266c72d4,0x62e8,0x11d1,{0xad,0x89,0x00,0xc0,0x4f,0xd8,0xfd,0xff}};
const CLSID CLSID_Wb... |
#include "GDIFontTool.h"
using namespace Gdiplus;
GDIFontTool::Font::Font(Factory* factory, const std::wstring& face, float size, int style) :
size(size),
style((Style)style),
factory(factory)
{
//setting the face regenerates the other attributes,
//so this will bootstrap the object effectively
setFace(fa... |
#include <stdio.h>
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <sensor_msgs/CameraInfo.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <message_filters/subscriber.h>
#inc... |
#include "Isis.h"
#include <cmath>
#include "Cube.h"
#include "ProcessByLine.h"
#include "SpecialPixel.h"
#include "LineManager.h"
#include "FileName.h"
#include "IException.h"
#include "Projection.h"
#include "AlphaCube.h"
#include "Table.h"
#include "SubArea.h"
using namespace std;
using namespace Isis;
// Global... |
/*
* Copyright (c) 2019-2020, University of Southampton and Contributors.
* All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <spdlog/fmt/fmt.h>
#include <spdlog/spdlog.h>
#include <systemc>
#include "include/cm0-fused.h"
#include "libs/make_unique.hpp"
#include "mcu/cortex-m0/Gpio.hpp"
#in... |
#include "emp.h"
using namespace std;
// methods of abstr_emp
abstr_emp::abstr_emp() : fname(""), lname(""), job("Unknown") {}
abstr_emp::abstr_emp(const string & fn, const string & ln,
const string & j)
: fname(fn), lname(ln), job(j) {}
void abstr_emp::showall() const
{
cout << "Nam... |
#include <qtcomponents.h>
static N::BalloonTip * theSolitaryBalloonTip = NULL ;
N::BalloonTip::BalloonTip (const QString & title ,
const QString & message ,
QWidget * parent )
: QWidget (parent, Qt::ToolTip )
, timerId ... |
#include <iomanip>
#include <iostream>
#include <bits/stdc++.h>
#include<iostream>
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC target("fma,sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native")
#pragma GCC optimize("unroll-loops")
#define ar array
#define ll long long
#define ld ... |
#include <Arduino.h>
#include <SPI.h>
#include <Wire.h>
#include <Keypad.h>
#include <U8g2lib.h>
// display
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, U8X8_PIN_NONE);
const byte LCDROWS = 5;
const byte LCDCOLS = 21;
const byte FONTHEIGHT = 11;
char buf[LCDROWS][LCDCOLS + 1];
// cursor
short int pos = 0;
// key... |
#include "util.hpp"
#include <math.h>
#include <random>
#include <vector>
#include "gtest/gtest.h"
#include "types.hpp"
TEST(util, isclose) {
ASSERT_TRUE(isclose(0, 0)) << "basic sanity check";
ASSERT_FALSE(isclose(0, 1)) << "not equal at any point";
ASSERT_TRUE(isclose(1, 1.000001, 1e-6)) << "close for sa... |
/*
By: facug91
From: http://www.spoj.com/problems/TORNJEVI/
Name: TORNJEVI
Date: 03/10/2015
*/
#include <bits/stdc++.h>
#define next asjkdbg1238dv8ydf38gy832gf8yd
#define prev jasdjksadjsadho32r80ejd8h3rsd
#define right nkdbj3dsbuhdfhu32rbhkdfhubj38
#define down pjasfias3dbasdgsauidb39dgsa92
#define EPS 1e-9
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.