text stringlengths 5.71k 33.7k |
|---|
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... |
/* Hello GLFW
* Based on https://www.glfw.org/docs/3.3/quick.html
*/
#include "main.hpp"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <imgui/imgui.h>
#include <imgui/imgui_impl_glfw.h>
#include <imgui/imgui_impl_opengl3.h>
#include <thread>
#include "graphics/background.hpp"
using namespace std;
GLFW... |
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "biginteger.cpp"
using namespace std;
void AddFunc(string, string, string); //v
void SubFunc(string, string, string); //v
void MulFunc(string, string, string); //v
void DivFunc(string, string, string); //v
void ModFunc(string, string, st... |
/***************************************************************************
* Copyright (C) 2008-2021 by <NAME> *
* <EMAIL> *
* *
* This program is free softwar... |
#include "tools.hpp"
#include "tools-ui.hpp"
#include "script-extractor.hpp"
#include "text-renderer.hpp"
struct ScriptContext : Script {
string category; //the type of script this is ("Chapter" or "Field")
string filename; //the filename sans path of this script on disk
u32 index; ... |
#include "solvers/csdpnsolver.hpp"
#include "common/config.hpp"
#include "common/globalconstants.hpp"
#include "common/io.hpp"
#include "common/mesh.hpp"
#include "fluxes/numericalflux.hpp"
#include "kernels/scatteringkernelbase.hpp"
#include "problems/icru.hpp"
#include "problems/problembase.hpp"
#include "solvers/csd... |
#include "ros/ros.h"
#include "std_msgs/String.h"
#include "geometry_msgs/Twist.h"
#include "std_msgs/Float64.h"
#include "shared_memory.h"
#include <sstream>
#include <stdlib.h>
#include <stdio.h>
const double PI= 3.141592653589793;
const double Ts=.01;
bool safe = true;
bool pos_received = false;
bool initial_done ... |
#include "citymap.h"
#include <algorithm>
#include <cmath>
#include <random>
#include "olcPixelGameEngine.h"
#include "bdg_random.h"
#include "carswithguns.h"
#include "constants.h"
#include "names.h"
#include "primes.h"
void CityMap::populate(int x, int y, int population,
bool eE, bool eN, bool eW, bool... |
#pragma once
#include <cassert>
#include <cerrno>
#include <iostream>
#include <string>
#include <typeinfo>
#include "../BufferManager/BufferManager.hpp"
#include "../SlottedPages/TID.hpp"
#define FANOUT 4
template<class Key, class Value>
struct InnerNode {
bool isLeaf;
unsigned lsn;
uint64_t upper; //p... |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2009 Pelican Ventures, Inc.
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software ... |
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringE... |
#pragma once
#pragma comment(lib,"Ws2_32.lib")
#include<WinSock2.h>
#include<Windows.h>
#include<iostream>
#include<vector>
#include <math.h>
#include<list>
#include <ctime>
#include "geoCoord.h"
#include "BasicVehicle.h"
#include "ListHandle.h"
#include "LinkedList.h"
#include "ConnVeh.h"
#include <random>
using ... |
/*
Same as pix2pix-example with the addition of live webcam input. See description of pix2pix-example for more info on pix2pix and the models I provide.
I'm using a very simple and ghetto method of transforming the webcam input into the desired colour palette before feeding into the model. See the code for more inf... |
/*
* Copyright (c) 2009-2012, <NAME> <antirez at gmail dot com>
* 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... |
/*******************************************************************************
* Copyright 2021 Intel Corporation
*
* Licensed under the BSD-2-Clause Plus Patent License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource... |
// Copyright (c) 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, distr... |
/*
MIT License
Copyright (c) 2021 abhilashraju
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, d... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Texas A&M University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
#include <iostream>
#include <cassandra.h>
#include "gtest/gtest.h"
#include "../src/CacheTable.h"
#include "../src/StorageInterface.h"
#include <arrow/memory_pool.h>
#include <arrow/status.h>
#include <arrow/ipc/reader.h>
#include <arrow/buffer.h>
#include <arrow/array.h>
#include <arrow/type.h>
#include <arrow/type_... |
/*
*
* Copyright (c) 2007-2018, University of California / Singapore Management University
* <NAME> <<EMAIL>> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without... |
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; ei... |
// cmd_Decompiler.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream> // console output
#include <D3Dcompiler.h>
#include "DecompileHLSL.h"
//#include "version.h"
#include "log.h"
//#include "util.h"
#include "shader.h"
using namespace std;
FILE *LogFile = stde... |
#include <iostream>
#include <string>
#include <cmath>
#include <iomanip>
using namespace std;
const int maxpop = 100;
const int maxstring = 24;
typedef bool chromosom[maxstring];
struct Rozwiazanie
{
bool chromosom[maxstring];
float x, dopasowanie;
int rodzic1, rodzic2, pRozciecia, pRozciecia1, pRozciecia2;
};
type... |
//===- Writer.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 <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include "matplotlibcpp.h" // NOLINT
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/features2d.hpp>
#include "radar_utils.hpp"
#include "features.hpp"
#include "association.hpp"
name... |
#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... |
#include "Table.h"
Table::Table() {
//
}
Table::~Table() {
//
}
void Table::exportTable(std::ofstream &file) {
//Save symbolIndexVec
int size = symbolIndexVec.size();
file.write((char*)&size, sizeof(int));
for (int i = 0; i < symbolIndexVec.size(); i++) {
//Save the name
std::string symbolName = symbolInde... |
#include "voatol_internal.h"
#include "algorithm_utils.h"
#include "blas.h"
#include "sort.h"
bool verbose = false;
int mat_size = 128;
int main(int argc, char **argv) {
struct timeval start, end, total_start, total_end;
gettimeofday(&total_start, NULL);
// timing variables
double t_total = 0.0;
double ... |
#include <algorithm>
#include <unordered_set>
#include <unordered_map>
#include <sstream>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/date_time.hpp>
#include <glog/logging.h>
#include <util/aplication_error.h>
#include "break.h"
#include "route.h"
#include "scheduled_visit.h"
#include "so... |
#include "scene_inspector.h"
#include <unistd.h>
namespace inspector
{
static FILE *recording_file;
static size_t *frame_offsets;
static char recording_filename[128];
static size_t frame_index;
static size_t frame_count;
static bool dirty_frame_flag;
static size_t cloud_size;
static V... |
#define _XOPEN_SOURCE 500
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <errno.h>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <pthread.h>
#include <unistd.h>
#include <cassandra.h>
#inc... |
/*
** Copyright (C) 1998-2010 <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 2 of the License, or
** (at your option) any later version.
**
** This program... |
#include "ecooling.h"
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstring>
#ifdef _OPENMP
#include <omp.h>
#endif // _OPENMP
#include "constants.h"
#include "cooler.h"
#include "force.h"
#include "functions.h"
#include "ring.h"
#include <fstream>
void ECoolRate::electron_density(Ions& ion... |
//********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//********************************************************
#include "arPrecompiled.h"
#define SZG_DO_NOT_EXPORT
#include "arMath.h"
#include "arDataUtilities.h"
... |
#include "plainx.h"
#include "gglob.h"
#include "objects.h"
#include "map.h"
CMap::CMap()
{
m_Key[0] = 156; m_Key[1] = 71; m_Key[2] = 45; m_Key[3] = 10; m_Key[4] = 30;
m_Key[5] = 0; m_Key[6] = 175; m_Key[7] = 176; m_Key[8] = 217; m_Key[9] = 254;
m_Key[10] = 163; m_Key[11] = 204;... |
/*
* BuildControlFlow.cpp
*
* Created on: 29 nov. 2016
* Author: <NAME>
*/
#include <stdio.h>
#include <dbt/dbtPlateform.h>
#include <dbt/insertions.h>
#include <dbt/profiling.h>
#include <isa/irISA.h>
#include <isa/vexISA.h>
#include <stdlib.h>
#include <string.h>
#include <lib/endianness.h>
#include <... |
#include "core.h"
#include "stdio.h"
#include <queue>
#include <sys/time.h>
//目前没有New出来的内存
Block::~Block() {
}
Block::Block(int color, Map *whole_map) : whole_map_(whole_map), color_(color) {
status_node_count_ = 0;
for (int i = 0; i < whole_map_->x_; i ++)
for (int f = 0; f < whole_map_->y_; f... |
//--------------------------------------------------------------------------------------
//
//
// Copyright 2014 ADVANCED MICRO DEVICES, INC. All Rights Reserved.
//
// AMD is granting you permission to use this software and documentation (if
// any) (collectively, the "Materials") pursuant to the terms and conditions... |
/*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... |
// ***************************************************************************
// BamToolsIndex.cpp (c) 2010 <NAME>
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
// Last modified: 27 April 2011 (DB)
// ---------... |
/* Copyright 2001, 2019 IBM Corporation
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following d... |
#include "hw05.hpp"
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
using namespace YoUtil;
// Prepare the needed GPU stuff (context, device, commandQueue)
void prepareGPU(mygpu& gpu) {
//cout << "\nDo not forget to implement prepareGPU! Line " << __LINE__ << "@ " << __FILE__;
... |
/* -*- C++ -*- */
/*=============================================================================
// //
// This file is part of the TypeAccess/C-Super-Script software package. //
// //
// Copyright (C) 1995 <NAME>, <NAME>, //
// <NAME>, and Carnegie Mellon University ... |
// 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 "base/json/json_reader.h"
#include "base/float_util.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/stringpr... |
#include "ProxyServer.hh"
#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>
#include <event2/event.h>
#include <event2/listener.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#inc... |
#include<stdio.h>
#include"../shader.cpp"
#include "glm/ext/matrix_transform.hpp"
#include "glm/trigonometric.hpp"
#include<GL/glew.h>
#include<glfw3.h>
#define STB_IMAGE_IMPLEMENTATION
#include"stb_image.h"
#include<glm/glm.hpp>
#include<glm/gtc/matrix_transform.hpp>
#include<glm/gtc/type_ptr.hpp>
#define GL_SILENCE_D... |
/***************************************
DDS File handler class
Copyright (c) 1995-2017 by <NAME> <<EMAIL>>
It is released under an MIT Open Source license. Please see LICENSE for
license details. Yes, you can use it in a commercial title without paying
anything, just give me a credit.
Pleas... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General... |
/* -*- c-basic-offset: 4 -*- */
#include "IntegralExperiment.h"
#include "CombatSearch.h"
#include "CombatSearch_Integral_DFS.h"
//#include "CombatSearch_Integral_MCTS.h"
#include "CombatSearch_Bucket.h"
#include "CombatSearch_BestResponse.h"
#include "FileTools.h"
#include "Eval.h"
#include <chrono>
#include <thread... |
#include <vector>
#include <unordered_map>
#include <string>
#include <fstream>
#include <iomanip>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/quaternion.hpp>
st... |
//
// MNNV2Basic.cpp
// MNN
//
// Created by MNN on 2019/01/22.
// Copyright © 2018, Alibaba Group Holding Limited
//
#define MNN_OPEN_TIME_TRACE
#include <stdlib.h>
#include <algorithm>
#include <cstring>
#include <fstream>
#include <iostream>
#include <map>
#include <memory>
#include <sstream>
#include <string>... |
#include <stdio.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <netinet/in.h>
#include <errno.h>
#include <fcntl.h>
#include <sched.h>
#include "log.h"
#include "config.h"
#include "simulator.h" //interface to config file single... |
// if s1 starts with s2 returns true, else false
// len is the length of s1
// s2 should be null-terminated
static bool starts_with(const char *s1, int len, const char *s2) {
int n = 0;
while (*s2 && n < len) {
if (*s1++ != *s2++)
return false;
n++;
}
return *s2 == 0;
}
#ifdef __linux__
#includ... |
#include "camera.h"
Camera::Camera() {
camDict = dc1394_new();
error = dc1394_camera_enumerate(camDict, &camList);
if (error != DC1394_SUCCESS) {
std::cerr << "Failed to enumerate cameras." << std::endl;
exit(EXIT_FAILURE);
}
numCams = camList->num;
numDMABuffers = 3;
FRAM... |
/*
Copyright(C) 2017 <NAME>
All rights reserved.
Licensed under:
MIT License
*/
#include "stdafx.h"
#include "RoomAlignment.h"
#include "Application.h"
constexpr size_t MaxIterations = 0;
constexpr float Leafsize = 0.000f;
//constexpr float Leafsize = 0.01f;
//constexpr float Leafsize = 0.05f;
//constexpr size_t M... |
// Common higher-level routines for FINUFFT: options, kernel FT, deconvolution.
// Note that algorithm parameters are now defined in defs.h (not common.h).
#include "common.h"
#include "defs.h"
#include <fftw3.h>
#include <math.h>
#include <stdio.h>
#include <vector>
#ifdef NEED_EXTERN_C
extern "C" {
#include "../c... |
#include "device.hpp"
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <algorithm>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_ttf.h>
#include "game.hpp"
#include "ai.hpp"
#include "material.hpp"
#include "inputs.hpp"
using namespace ... |
// Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
#include "Jit/frame.h"
#include "Python.h"
#include "internal/pycore_pystate.h"
#include "internal/pycore_shadow_frame.h"
#include "Jit/codegen/gen_asm.h"
#include "Jit/log.h"
#include "Jit/runtime.h"
#include "Jit/util.h"
#include <option... |
#include "toolbox_stdafx.h"
#include "SkyBox.h"
#include "DemoEntityManager.h"
#include "DemoCamera.h"
#include "PhysicsUtils.h"
#include "DemoMesh.h"
#include "OpenGlUtil.h"
class BuoyancyTriggerManager: public dCustomTriggerManager
{
public:
class TriggerCallback
{
public:
TriggerCallback(dCustomTriggerContro... |
// Copyright 2018 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 "components/omnibox/browser/actions/omnibox_pedal_provider.h"
#include <numeric>
#include "base/containers/cxx20_erase.h"
#include "base/i18n/c... |
/**
* 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... |
#include "externals.h"
#include "AccessorPacker.h"
#include "Arguments.h"
#include "ExportableAsset.h"
#include "filesystem.h"
#include "milo.h"
#include "picosha2.h"
#include "progress.h"
#include "timeControl.h"
#include "version.h"
using GLTF::Constants::WebGL;
struct MStringComparer {
bool operator()(const M... |
/*
Editor: <NAME>
https://github.com/TakeshiOkamoto/TESP8266/
このライブラリはqoosky氏がMITライセンスで公開している
---
Arduino_HttpClient_ESP8266_AT
Copyright (c) 2016 Qoosky
https://github.com/qoosky/Arduino_HttpClient_ESP8266_AT
---
の機能を拡張したライブラリです。
*/
#include "TESP8266.h"
// ---------------------------------... |
//===- lib/MC/MCELFStreamer.cpp - ELF Object Output ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------------------... |
/**
* fwdmodel_asl_multiphase.cc
*
* Implements a model for correcting off resonance effect
* for multiphase pcASL
*
* <NAME>, QuBIc (IBME) & FMRIB Image Analysis Group
*
* Copyright (C) 2013 University of Oxford
*/
/* CCOPYRIGHT */
#include "fwdmodel_asl_multiphase.h"
#include <fabber_core/tools.h>
#in... |
//
// Created by lenz on 7/8/21.
//
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <oslib/osfile.h>
#include <oslib/osfind.h>
#include <oslib/osargs.h>
#include <oslib/osgbpb.h>
#include <Wimptypes.h>
#include <tbx/application.h>
#include "CLClipboard.h"
#include "Logger.h"
CLClipboard* CLClipboard:... |
/* todotoo main function, including
* - managing a window and 'dear imgui' context
* - defining and managing the set of active to-do lists
*
* Much code here originated in ../imgui/examples/example_glfw_opengl2/main.cpp
*/
/* We use OpenGL renderer and GLFW platform bindings */
#include "imgui.h"
#include "imgui_... |
/******************************************************************************
* Copyright 2019 The Robotics Group, The <NAME>-<NAME> Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... |
/*
Authors:
150101037: <NAME>
150101045: <NAME>
150101072: <NAME>
// Network topology
//
// n0 n4
// \ 80 Mb/s, 20ms /
// \ 30Mb/s, 100ms /
// n2--------------------------n3
// / \
// / 80 Mb/s, 20ms \
// n1... |
#include "Core.h"
#include "Console.h"
#include "modules/Buildings.h"
#include "modules/Constructions.h"
#include "modules/EventManager.h"
#include "modules/Job.h"
#include "modules/World.h"
#include "df/building.h"
#include "df/construction.h"
#include "df/global_objects.h"
#include "df/item.h"
#include "df/job.h"
#i... |
/*
* mhash.cpp
*
* Copyright (c) 2008, Ueda Laboratory LMNtal Group
* <<EMAIL>> All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must reta... |
// This file is part of snark, a generic and flexible library for robotics research
// 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. Redistr... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
#include <algorithm>
#include <array>
#include "Compression.h"
#include "FLCFile.h"
#include "components/debug/Debug.h"
#include "components/utilities/Buffer.h"
#include "components/utilities/Bytes.h"
#include "components/utilities/String.h"
#include "components/vfs/manager.hpp"
enum class FileType : uint16_t
{
FLC... |
#include "CP.h"
#include <math.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <algorithm>
#include <queue>
#include "Utils.h"
#include "BinDivider.h"
using namespace std;
template <typename T>
bool isSubset(std::vector<T> A, std::vector<T> B)
{
std::sort(A.begin(), A.end()... |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "plaidml_ops.hpp"
#include "plaidml_util.hpp"
#include "ngraph/opsets/opset4.hpp"
#include "plaidml/op/op.h"
using namespace plaidml; // NOLINT[build/namespaces]
using ngraph::opset4::Proposal;
namespace {
edsl::Tensor gene... |
/*
* License:The MIT License (MIT)
*
* Copyright (c) 2013,2014 <NAME>
* State Key Laboratory of Robotics and System, Harbin Institute of Technology
*
* 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 So... |
/******************************************************************************
* Copyright (c) 2018, ACES Lab, Univesity of California San Diego, CA, US.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... |
// <NAME>
#include "OledDisplay.h"
//#include "stdlib.h"
#include "spark_wiring_spi.h"
#include "rgbled.h"
#include "font5x7.h"
#include "font8x16.h"
#include "fontlargenumber.h"
static byte screen_buf[] = {
/* LCD Memory organised in 64 horizontal pixel and 6 rows of byte
B B .............B -----
y y ...... |
/**************************************************************
*
* 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 yo... |
/*
* The MIT License
*
* Copyright (c) 1997-2021 The University of Utah
*
* 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
* right... |
#include <iostream>
#include <cmath>
#include <map>
#include <string>
#include <iterator>
#include <functional>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
RNG rng(12345);
using LineTestFn = function<bool(Rect&, Mat&)>;
using ExpandRectFn = function<Rect(Rect&, Mat&)>;
//#define VERBOSE
n... |
#include "gtest/gtest.h"
#include <iostream>
#include "GeomMath.h"
using namespace std;
using namespace Me;
TEST(GeomMathMatrix, Initiation) {
Matrix<int, 3, 2> m1 = {{{
{1, 2},
{3, 4},
{5, 6}
... |
//codedforC++98standard
//CreatebyJamesJallorina
#include "tlvdecoder.h"
#if 0
using emv::emv_tag_71;
using emv::emv_tag_72;
using emv::emv_tag_82;
using emv::emv_tag_84;
using emv::emv_tag_91;
using emv::emv_tag_95;
using emv::emv_tag_9A;
using emv::emv_tag_9C;
using emv::emv_tag_5F2A;
using emv::emv_tag_9F02;
using ... |
/*
* Copyright (C) 2019 Trinity. All rights reserved.
* Copyright (C) 2019 <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... |
#include <cuda_graph_types.hpp>
#include <gtest/gtest.h>
#include <logger.hpp>
#include <test_support.hpp>
#include <embedding_lists.hpp>
#include <cuda_computation_parameters.hpp>
#include <cuda_gspan_ops.hpp>
#include <cuda_tools.hpp>
#include <thrust/sort.h>
using namespace types;
using std::string;
using gspan_... |
/* remotegdb.cc - GNU Debugger glue for VMIPS remote debugger interface.
Based on
gdb/remote.c - Remote target communications for serial-line targets
in custom GDB protocol.
Copyright 1988, 1991, 1992, 1993, 1994, 1995, 1996, 1997 Free Software
Foundation, Inc.
Copyright 2001, 2002, 2003 <NAME>.... |
#include <unordered_set>
#include <spdlog/spdlog.h>
#include <imgui/imgui.h>
#include "utility/Scan.hpp"
#include "REFramework.hpp"
#include "FirstPerson.hpp"
FirstPerson* g_firstPerson = nullptr;
FirstPerson::FirstPerson() {
// thanks imgui
g_firstPerson = this;
m_attachBoneImgui.reserve(256);
//... |
// Copyright (c) 2014-2016, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
/... |
/*<html><pre> -<a href="qh-qhull.htm"
>-------------------------------</a><a name="TOP">-</a>
qvoronoi.c
compute Voronoi diagrams and furthest-point Voronoi
diagrams using qhull
see unix.c for full interface
copyright (c) 1993-2003, The Geometry Center
*/
#include <... |
////////////////////////////////////////////////////////////////////////////////
//
// Compares output files from PrintGeomInfo created using DDD and DD4hep
// inputs. Usage:
//
// SimFileCompare infile1 infile2 type files mode debug
// infile1 (const char*) First file name
// infile2 (const char*) ... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2022 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "Profile.h"
#include "Utils.h"
#include "JsonUtils.h"
#include "../../types/inc/Utils.hpp"
#include <DefaultSettings.h>
#include "LegacyProfileGeneratorNamespaces.h"
#include "TerminalSettingsSerializationH... |
// ===================================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top leve... |
#include <config.hh>
#include <cerrno>
#include <fcntl.h>
#include <unistd.h>
#include <cstdlib>
#include <cassert>
#include <cstring>
#include <pthread.h>
#include <sys/poll.h>
#include <memory>
#include <iostream>
#include <ncpp/NotCurses.hh>
#include <ncpp/PanelReel.hh>
#include <ncpp/Tablet.hh>
#include "demo.hh"... |
#include "stdafx.h"
#include "build.h"
#include "ogf_face.h"
//#include "std_classes.h"
#include "xrcore/fs.h"
#include "xrEngine/fmesh.h"
#include "xrOcclusion.h"
using namespace std;
void set_status(char* N, int id, int f, int v) {
string1024 status_str;
xr_sprintf(status_str, "Model #%4d [F:%5d, V:%5d]: %... |
// atlas functions
#include <atlas/array.h>
#include <atlas/grid.h>
#include <atlas/mesh.h>
#include <atlas/mesh/actions/BuildEdges.h>
#include <atlas/output/Gmsh.h>
#include <atlas/util/CoordinateEnums.h>
// atlas interface for dawn generated code
#include "interface/atlas_interface.hpp"
// driver includes
#include ... |
#include "suggest.h"
// fst::fst_error_fatal = 0;
using namespace std;
suggest::suggest(string& filename_autocorrection, string& filename_autosuggestion, std::string &domain)
{
int nadded = 0;
int nlines = 0;
_use_correspondance_data = false;
_symSpellModel_correction = new symspell::SymSpell();... |
#include <memory>
#include <iostream>
#include <fstream>
#include <chrono>
#include "tclap/CmdLine.h"
#include "cola/parse.hpp"
#include "cola/ast.hpp"
#include "cola/observer.hpp"
#include "cola/util.hpp"
#include "types/preprocess.hpp"
#include "types/rmraces.hpp"
#include "types/check.hpp"
#include "types/cave.hpp... |
#include "util.h"
#include "Option.h"
#include "Tensor.h"
#include "Tucker.h"
double Fit = -1;
double Error, RMSE, TestRMSE;
spinLock mapLock;
#define ARMA_USE_LAPACK
#define ARMA_USE_BLAS
using namespace std;
using namespace arma;
/* Compute the delta vector (i.e., \delta_(alpha)^(targetOrder)) and ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.