text stringlengths 3.08k 22k |
|---|
// -*-mode: c++; indent-tabs-mode: nil; -*-
#include <iostream>
#include <fstream>
#include <sys/types.h> // opendir
#include <dirent.h> // opendir, readdir
#include <sys/types.h> // stat
#include <sys/stat.h> // stat
#include <unistd.h> // stat
#include <limits.h> // realpath
#include <stdlib.h> // re... |
#define FLS_WRAP_IN_NAMESPACE
#include "FluxLinearSolver_Standalone.hxx"
#include "CAFReader.hxx"
#include "PlotProcessor.hxx"
#include "ROOTUtility.hxx"
#include "DUNETDRDetHelper.hxx"
#include "OscillationHelper.hxx"
#include "fhiclcpp/ParameterSet.h"
#include "fhiclcpp/make_ParameterSet.h"
struct OAWeigher {
E... |
/************************************************************
* uuencode/decode functions
************************************************************/
//
// Taken from NCSA HTTP and wwwlib.
//
// NOTE: These conform to RFC1113, which is slightly different then the Unix
// uuencode and uudecode!
... |
// testHashClash.cpp
// tool for HDiff
// An estimation method for detecting hash clashs
/*
The MIT License (MIT)
Copyright (c) 2012-2019 HouSisong
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 Sof... |
#include "KDTree.h"
#include <assert.h>
using namespace cs500;
static const Vec3 k_XAxis(1.0f, 0.0f, 0.0f);
static const Vec3 k_YAxis(0.0f, 1.0f, 0.0f);
static const Vec3 k_ZAxis(0.0f, 0.0f, 1.0f);
KDTreeNode::KDTreeNode() :
_axis(X_AXIS)
{
}
void KDTreeNode::setSplitPlane(SplitAxis splitAxis, float splitPos)
... |
#pragma once
#include <bits/stdc++.h>
using namespace std;
struct dft_node_empty {
void pushdown(bool, dft_node_empty&, dft_node_empty&) {}
void pushup(bool, const dft_node_empty&, const dft_node_empty&) {}
};
/**
* A different way to implement euler tour trees without support for rerooting.
* The splay tr... |
#include "macdecls.h"
#include "mpi.h"
#include <chrono>
#include <tamm/tamm.hpp>
using namespace tamm;
template<typename T>
void test_2_dim_mult_op(Scheduler& sch, size_t N, Tile tilesize) {
TiledIndexSpace tis1{IndexSpace{range(N)}, tilesize};
auto [i, j, k] = tis1.labels<3>("all");
Tensor<T> A{i, k};... |
/*
* <NAME> CS 361
*/
#include <iostream>
#include <random>
#include <ctime>
#include <list>
#include <queue>
#include <fstream>
#include <math.h>
#include "main.h"
#include "triangle.h"
#include "point.h"
using namespace std;
void refine(triangle current, default_random_engine *generatorPointer... |
// DDT3 client
#include <cassert>
#include <vector>
#include <iostream>
#include <iosfwd>
#include <fstream>
#include <cwctype>
#include <unordered_set>
#include <unordered_map>
#include <memory>
#include <algorithm>
#include <thread>
#include <stdexcept>
#include <iostream>
#include "wx/wx.h"
#include "wx/app.h"
#i... |
/**
* @file rad_planck_mean.cc
* \brief Source file for child class rad_planck_mean
*/
#include "rad_planck_mean.h"
#include <iostream>
#include <cstdlib>
using namespace std;
///////////////////////////////////////////////////////////////////////////////
const double rad_planck_mean::pmCoefs_H2O[6] = {-0.2309... |
#include <iostream>
#include <opencv2/opencv.hpp>
#include <pangolin/pangolin.h>
#include <Eigen/Core>
#include <vector>
using namespace std;
using namespace cv;
// 相机内参
#define L_FX 7.188560000000e+02
#define L_FY 7.188560000000e+02
#define L_CX 6.071928000000e+02
#define L_CY 1.852157000000e+02
#define R_FX 7.188... |
/*
* Copyright 2011-2012 <NAME>, Cornell University
* (<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 retain the above copyright
* ... |
#include <math.h>
#include "ModuleParticles.h"
#include "Application.h"
#include "ModuleAudio.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModuleCollision.h"
#include "ModulePlayer.h"
#include "SDL/include/SDL_timer.h"
ModuleParticles::ModuleParticles()
{}
ModuleParticles::~ModuleParticles()
{}
... |
/*
* This file is part of the "IdTool" utility app.
*
* MIT License
*
* Copyright (c) 2019 <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 wit... |
#include "Arduino.h"
#include <SoftwareSerial.h>
#include "ESPConn.h"
#define DEBUG
#ifdef DEBUG
#define DEBUG_PRINTLN(x) Serial.println(x)
#define DEBUG_PRINT(x) Serial.print(x)
#define DEBUG_WRITE_BYTES(x, y) Serial.write(x, y)
#define DEBUG_WRITE(x) Serial.write(x)
#else
#define DEBUG_PRINTLN(x)
#defin... |
// Exercise 10.6 Solution: Date.cpp
// Member-function definitions for class Date.
#include <iostream>
#include <iomanip>
#include <ctime>
#include "Date.h" // include Date class definition
using namespace std;
// default constructor that sets date using <ctime> functions
Date::Date()
{
// pointer of typ... |
// jpeg2bmp.cpp : Defines the entry point for the console application.
//
#include "kdtree.h"
#include <boost/gil/extension/io/jpeg.hpp>
#include <iostream>
#include <array>
#include <set>
#include <vector>
#include <random>
#include <limits.h>
#include <float.h>
#include <math.h>
#include <Windows.h>
const WORD ... |
/******************************************************************************
*******************************************************************************
Easy GL2D
2D + 3D example
Shows a way to combine a 3D renderer
with the 2D capabilities of Easy GL2D
Relminator (<NAME> BSN RN)
Http://Rel.Phatcode.Net... |
/* The Image Registration Toolkit (IRTK)
*
* Copyright 2008-2015 Imperial College London
*
* 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... |
#include <iostream>
#include <string>
#include <dirent.h>
#include <cstdlib>
#include <fstream>
#include <ctype.h>
#include <queue>
#include <vector>
#include "classes.hpp"
#include "funcoes.hpp"
using namespace std;
//feito
template <typename T>
T inserir_campo(int tipo, T pKey){
bool control = true;
... |
/** \file
\author <NAME> - <EMAIL>
\copyright
\parblock
Copyright 2017 <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 applic... |
//============================================================================
// Name : jellyfish_service.cpp
// Author : CBM adapted from <NAME>
// Version : 1.0
// Copyright : ICARUS-UPC
// Description : LCM service to detect jellyfish in an image
//=================================================... |
#include "CWinSocket.h"
SOCKET CWinSocket::m_listenSocket = INVALID_SOCKET;
CWinSocket::CWinSocket()
{
m_clientSocket = INVALID_SOCKET;
m_state = ESOCKETSTATE_LOGIN;
clearReadBuffer();
m_recycle = false;
}
CWinSocket::~CWinSocket()
{
// temporary variables
int iResult;
// shutdown the connection since we're d... |
// Copyright 2019 The Fuchsia 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 <lib/fit/defer.h>
#include <signal.h>
#include <stdlib.h>
#include <fstream>
#include <iostream>
#include <optional>
#include <string>
#include <... |
//===- PassStatistics.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
//
//===---------------------------... |
/*
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmRulePlaceholderExpander.h"
#include <ctype.h>
#include <string.h>
#include <utility>
#include "cmOutputConverter.h"
#include "cmSystemTools.h"
cmRulePlacehol... |
/*
* Copyright (c) 2019, Systems Group, ETH Zurich
* Copyright (c) 2016, Xilinx, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the ... |
/*
* Copyright (c) 2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/* LICENSE:
Copyright (c) Members of the EGEE Collaboration. 2010.
See http://www.eu-egee.org/partners/ for details on the copyright
holders.
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
... |
//Link: https://cses.fi/problemset/result/1965549/
//Input:
//8 3
//3 2 4 5 1 1 5 3
//2 4
//1 2 5 1
//2 4
//
//Output:
//5
//6
//Solution: here we have 8 values and 3 time queries,now first the values are 3 2 4 5 1 1 5 3
//then added 1 with index 2 to 5 and thus it becomes 3 3 5 6 2 2 5 3 and before this we had k=4 ind... |
/*
* See header file for a description of this class.
*
* \author <NAME> - INFN Torino
*/
#include "CalibMuon/DTCalibration/plugins/DTTTrigCalibration.h"
#include "CalibMuon/DTCalibration/interface/DTTimeBoxFitter.h"
#include "CalibMuon/DTDigiSync/interface/DTTTrigSyncFactory.h"
#include "CalibMuon/DTDigiSync/int... |
/*****************************************************************************
* McPAT/CACTI
* SOFTWARE LICENSE AGREEMENT
* Copyright 2012 Hewlett-Packard Development Company, L.P.
* All Rights Reserved
*
* Redistribution and ... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... |
#include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include "math.h"
#include "stdlib.h"
#include "stdio.h"
#include "string.h"
#include "vector"
using namespace std;
struct cmp //自定义比较规则
{
bool operator () (const string& str1, const string& str2) const
{
return str1.length() < str2... |
/*
Copyright (c) 2014 by <NAME>
This library contains portions of other open source products covered by separate
licenses. Please see the corresponding source files for specific terms.
RI is provided under the terms of The MIT License (MIT):
Permission is hereby granted, free of charge, to any person obtaining a cop... |
/****************************************************************************
*
* Copyright (C) 2019 PX4 Development Team. 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. Redistri... |
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <string>
#include <vector>
#include <marisa.h>
#include "marisa-assert.h"
namespace {
void TestTypes() {
TEST_START();
ASSERT(sizeof(marisa_uint8) == 1);
ASSERT(sizeof(marisa_uint16) == 2);
ASSERT(sizeof(marisa_uint32) == 4);
ASSERT(sizeof(m... |
//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2016 musikcube team
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redist... |
/*******************************************************************************
Omicron Player Classic
Author: <NAME>
Website: http://fabiopichler.net
License: BSD 3-Clause License
Copyright (c) 2015-2019, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
... |
# include <iostream>
# include <math.h>
# include <time.h>
# include <omp.h>
# define THREAD_COUNT 2
using namespace std;
double* initialize_1D_matrix(int N) {
/* This function initializes a 1D matrix of size-N dymically.
Parameters -
int N - dimension of the array
Returns -
double* A - pointer to... |
//
// riscv-disasm.cc
//
#include <cstdio>
#include <cstring>
#include <cstdarg>
#include <cassert>
#include <map>
#include <algorithm>
#include <functional>
#include <vector>
#include <deque>
#include <string>
#include "riscv-types.h"
#include "riscv-endian.h"
#include "riscv-format.h"
#include "riscv-meta.h"
#incl... |
/*
This file is part of the PhantomJS project from Ofi Labs.
Copyright (C) 2012 execjosh, http://execjosh.blogspot.com
Copyright (C) 2012 <NAME> <<EMAIL>>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Red... |
//===-- SystemZSelectionDAGInfo.cpp - SystemZ SelectionDAG Info -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* Copyright (c) 2010 WiYun Inc.
* Author: luma(<EMAIL>)
*
* For all entities this program is free software; you can redistribute
* it and/or modify it under the terms of the 'WiEngine' license with
* the additional provision that 'WiEngine' must be credited in a manner
* that can be be observed by end users, ... |
/*
* Copyright (c) 2015-2017, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... |
#include<iostream>
#include<string>
using namespace std;
/*Ths function subtracts two given strings of numbers. This function runs only for positive integers and assumes that a > b*/
string add(string a, string b);
string sub(string a, string b);
string multiply(string a, string b);
string naive_multiply(string &a, st... |
#include "Names.h"
#ifdef _WIN32
#include <windows.h>
#endif
#include <GL/glew.h>
#if defined(__APPLE__)
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif
const char* TOPOLOGY_ITEM_NAMES[] =
{
"Undefined",
"PointList",
"LineList",
"LineStrip",
"TriangleList",
"TriangleStrip",
"LineListAdjecent",
"LineSt... |
#include "tree.h"
// Clear tree's layers
// Doesn't release memory
void Tree::clear()
{
for (int i = 0; i < MAX_TREE_QUEUE; ++i) {
this->layer[i].clear();
}
}
// Init the tree's memory and initial state
void Tree::init(PieceType* init_queue, int queue_count)
{
// Init setting
this->queue.cl... |
#include "OptimizeBitwidth/OptimizeBitwidth.h"
#include <cmath>
using uint = unsigned int;
using llvm::Instruction;
// Recall that a typical backward function has prototype :
//void backwardFunc(Info* acc, const Info* iOut, const Info** iOps, unsigned int targetOp);
//These backward function only concern ... |
// Copyright 2017-2018 ccls Authors
// SPDX-License-Identifier: Apache-2.0
#include "test.hh"
#include "filesystem.hh"
#include "indexer.hh"
#include "pipeline.hh"
#include "platform.hh"
#include "sema_manager.hh"
#include "serializer.hh"
#include "utils.hh"
#include <llvm/ADT/StringRef.h>
#include <llvm/Config/llvm... |
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
#include <iostream>
#include <iomanip>
#include <arprec/mp_real.h>
using std::cerr;
using std::cout;
using std::endl;
bool flag_verbose = false;
bool check_result(const char *msg, const mp_real &x_comp,
const mp_real &x_truth, const mp_real &eps = mp_real::_eps) {
cout << msg << "... ";
mp_re... |
#include <kernel/dt.hpp>
#include <stdio.h>
#include <string.h>
#include <kernel/panic.hpp>
#include <kernel/ioport.hpp>
#include <kernel/mem.hpp>
using namespace kernel;
/* GDT function */
extern "C" int __gdt_flush( size_t size, void * gdt );
extern "C" void __tss_flush();
static size_t gdt_size = 6 * 2;
uint32... |
#include "Sort.h"
#include "Random.h"
#include <algorithm>
#include <queue>
#include "ExpressionEvaluation.h"
#include "FlatbuffersReaders.h"
#include "FlatbuffersWriters.h"
class MergeItem {
public:
const tuix::Row *v;
uint32_t run_idx;
};
void external_merge(SortedRunsReader &r, uint32_t run_start, uint32_t n... |
#include "Buttongrid.h"
/*
Buttongrid::Buttongrid(unsigned char size){
if(text = (char *)malloc(DISPLAY_SIZE+1)) memset(text,0,DISPLAY_SIZE+1);
columns = size;
rows = size;
gridSize = size;
//Allocate memory for labels and states
if(rows >= 0 && columns >= 0){
char qty = rows * columns;
if(labels = (const ... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "fx_cs_shared.h"
#include "weapon_csbase.h"
#ifndef CLIENT_DLL
#include "ilagcompensationmanager.h"
#endif
Con... |
// 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 ... |
/*
* Copyright 2001-2010 DarkWyrm <<EMAIL>>
* Copyright 2014 <NAME> <<EMAIL>>
* Distributed under the terms of the MIT License.
*
* Authors:
* DarkWyrm, <EMAIL>
* <NAME>, <EMAIL>
*/
#include "ErrorWindow.h"
#include <Alignment.h>
#include <Application.h>
#include <Catalog.h>
#include <Button.h>
#include <C... |
// Copyright 2017 The Fuchsia 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 <stdio.h>
#include <stdlib.h>
#include <zircon/syscalls.h>
#include <zircon/types.h>
#include <memory>
#include <utility>
#include <acpica/acpi.... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/ccpr/GrCoverageCountingPathRenderer.h"
#include "include/pathops/SkPathOps.h"
#include "src/core/SkMakeUnique.h"
#include "src/gpu/GrCaps.h"
#include "src/g... |
/*
* collate.cpp
*
* The `leviosam collate` program that makes sure a split paired-end
* BAM file is properly paired
*
* Authors: <NAME>
*
* Distributed under the MIT license
* https://github.com/alshai/levioSAM
*/
#include <ctime>
#include <getopt.h>
#include <iostream>
#include <stdio.h>
#include <htslib/sa... |
#include <iostream>
#include <algorithm>
#include <vector>
#include <sstream>
#include <string>
#include <complex>
using namespace std;
const complex<double> I(0,1); // imaginary unit
const double PI = 3.14159265359;
template<class T> struct duplet {
int ind;
T val;
duplet(int p, T v) {
ind = p;
val = v;
}
... |
#include "core.h"
#include "wbcompeldfrobber.h"
#include "wbeventmanager.h"
#include "wbcompeldtransform.h"
#include "wbcompeldcollision.h"
#include "wbcompeldfrobbable.h"
#include "wbcompeldcamera.h"
#include "wbcomponentarrays.h"
#include "configmanager.h"
#include "segment.h"
#include "aabb.h"
#include "c... |
///PyBullet / BulletRobotics GRPC server.
///works as standalone GRPC server as as a GRPC server bridge,
///connecting to a local physics server using shared memory
#include <stdio.h>
#include "../../CommonInterfaces/CommonGUIHelperInterface.h"
#include "Bullet3Common/b3CommandLineArgs.h"
#include "PhysicsClientC_API.... |
/****************************************************
Author: ciaoSora
File: ParseTree.cpp
Desc: The parse tree data structure
****************************************************/
#include "ParseTree.h"
#include <iostream>
#include "SVG.h"
#include <algorithm>
std::string ParseTree::FILL1 = "#99cc33";
std::string Pa... |
#include <CGAL/Exact_rational.h>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polyhedron_3.h>
#include <fstream>
#include <vector>
#include <CGAL/Convex_hull_traits_3.h>
#include <CGAL/convex_hull_3.h>
#include <CGAL/Object.h>
#include <CGAL/point_generators_3.h>
#include <cassert>
typedef CGAL::Exact_rational ... |
#include <sstream>
#include <fstream>
#include <cmath>
#include "SMPSInput.hpp"
using namespace std;
namespace {
// helper function for copying bools and strings from mps file
template<typename T1, typename T2> void copySubset(
CoinMpsIO const &reader, T2 (CoinMpsIO::*f)(int) const,
int from, int to, vector<T1> &... |
#include "gplib/log_likelihood_classification.hpp"
#include <ceres/ceres.h>
#include <random>
using namespace librav;
// Constructor for Gaussian Process Classification
GaussianProcessClassification::GaussianProcessClassification(const Kernel::Ptr& kernel, double noise, const std::shared_ptr<std::vector<Eigen::Vector... |
/////////////////////////////////////////////////////////////////////////////
// Purpose: resCtrl style processing functions
// Author: <NAME>
// Copyright: Copyright (c) 2020-2021 KeyWorks Software (<NAME>)
// License: Apache License -- see ../../LICENSE
/////////////////////////////////////////////////////////... |
/// \file main.cpp
/// \brief A test program for uintx_t.
#include "uintx_t.h"
#include "uintx_math.h"
uint32_t g_nTestCount = 0; ///< Number of tests performed.
uint32_t g_nPassCount = 0; ///< Number of tests passed.
//////////////////////////////////////////////////////////////////////////////
// Helper functions
... |
/*
Xeon (AVX2) by http://www.kde.cs.tsukuba.ac.jp/~shihakata
*/
#include "scanxp.h"
#include <chrono>
using namespace std::chrono;
SCAN_XP::SCAN_XP(int thread_num, int min_u, double epsilon, char *dir) : thread_num_(thread_num), min_u_(min_u),
... |
/**
@file hlagent_main.cc
@ingroup Communication
@brief High-level agent main routine
@author <NAME>
@verbatim
Revision: $Revision$
Revision date: Dec 10, 2015
Committed by: <NAME>
This file is part of the Periscope performance measurement tool.
See http://www.lrr.in.t... |
#include "Enemy_Zombie.h"
#include "j1App.h"
#include "j1Textures.h"
#include "j1Colliders.h"
#include "p2Point.h"
#include "j1Render.h"
#include "j1Map.h"
#include "j1Pathfinding.h"
#include "j1Entities.h"
#include "Player.h"
#include "j1Scene.h"
#include "j1Audio.h"
Enemy_Zombie::Enemy_Zombie(int x, int y, ENTITY_T... |
/*
*
* Copyright 2016 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... |
/* <jhm/jhm.cc>
JHM build system.
TODO:
- Make it so that we minimize the amount of stuff which builds up in the foreground thread / we keep the worker
queue busier all the time
- Remove Stdout/Stderr printing from work_finder.h, so it's more portable
- Make jobs and files const more of the ti... |
/*************************************************************************/
/* editor_scene_importer_gltf.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "sico/conversions/lla_utm.hpp"
#include "sico/types/angles.hpp"
#include "sico/types/units.hpp"
using namespace sico;
using namespace literals;
namespace {
struct {
double const a = 6378137.0;
double const b = 6356752.31424518;
double const f = 0.0033528107; // ellipsoid flattening
double ... |
#pragma once
#include <cstdio>
#include <exception>
#include <mpi.h>
#include <string>
#include <sstream>
#include <chrono>
#include <mutex>
#include <chrono>
#include <thread>
#include <condition_variable>
#include <array>
#include <cstdlib>
#include <cstring>
#include "log.hpp"
#include "setsm_code.hpp"
static bool... |
#include "lab_m1/lab3/lab3.h"
#include <vector>
#include <iostream>
#include "lab_m1/lab3/transform2D.h"
#include "lab_m1/lab3/object2DD.h"
using namespace std;
using namespace m1;
/*
* To find out more about `FrameStart`, `Update`, `FrameEnd`
* and the order in which they are called, see `world.cpp`.
*/
La... |
#pragma once
#include "BVH.hpp"
#include "Intersection.hpp"
#include "Material.hpp"
#include "OBJ_Loader.hpp"
#include "Object.hpp"
#include "Triangle.hpp"
#include <cassert>
#include <array>
bool rayTriangleIntersect(const Vector3f& v0, const Vector3f& v1,
const Vector3f& v2, const Vector3f... |
#include "selfdrive/common/util.h"
#include <sys/stat.h>
#include <dirent.h>
#include <cassert>
#include <cerrno>
#include <cstring>
#include <dirent.h>
#include <fstream>
#include <iomanip>
#include <sstream>
#ifdef __linux__
#include <sys/prctl.h>
#include <sys/syscall.h>
#ifndef __USE_GNU
#define __USE_GNU
#endif... |
#include "StdBodyWriter.h"
#include <cnoid/StdSceneWriter>
#include <cnoid/Body>
#include <cnoid/Link>
#include <cnoid/BodyHandler>
#include <cnoid/SceneGraph>
#include <cnoid/YAMLWriter>
#include <cnoid/EigenArchive>
#include <cnoid/NullOut>
#include <cnoid/stdx/filesystem>
#include <fmt/format.h>
#include <mutex>
#in... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <climits>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "config.h"
#include "h264_bitstream_parser.h"
#include "h264_common.h"
#include "rtc_base/bit_buffer.h"
extern in... |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -----------... |
#include "../core/GLFilter.h"
#include "../core/GLImage.h"
#include "../core/ImageAllocator.h"
#include "caffe2/core/timer.h"
#include "caffe2/operators/pool_op.h"
class GLPool : public GLFilter {
public:
typedef enum { AveragePool, MaxPool } PoolType;
struct point {
int x;
int y;
};
... |
//
// Camera.cpp
// KinFu
//
// Created by Dave on 19/05/2016.
// Copyright © 2016 Sindesso. All rights reserved.
//
#include <cmath>
#include <iostream>
#include "Camera.hpp"
#include "Definitions.hpp"
const float EPS = 1e-6;
/**
* Common construction code
*/
void Camera::init( ) {
m_k_inverse = m_k.inve... |
#include "corridor/frenet_types.h"
#include <Eigen/Core>
#include <iostream>
#include "corridor/cubic_spline/cubic_spline_types.h"
#include "corridor/unscented_transformation/polar_coordinate_transformation.h"
using namespace corridor;
// /////////////////////////////////////////////////////////////////////////////... |
// Copyright 2010 <NAME>
// henry UNDERSCORE christophe AT hotmail DOT com
// This is an extended version of the state machine available in the boost::mpl library
// Distributed under the same license as the original.
// Copyright for the original version:
// Copyright 2005 <NAME> and <NAME>. Distributed
// under... |
#include <render/particleDirectionRender/particleDirectionRender.h>
#include <render/util/color_map.h>
static const char *vertexShaderSource = R"(#version 450
in vec4 posAttr;
in vec4 position;
in vec4 renderArray;
in float volume;
uniform vec4 camera_right;
uniform vec4 camera_up;
uniform mat4 perspective_matrix;
u... |
// Universidade Federal do Rio Grande do Sul
// Instituto de Informática
// Departamento de Informática Aplicada
//
// INF01047 Fundamentos de Computação Gráfica 2017/2
// Prof. <NAME>
//
// TRABALHO FINAL
//
// BOMBERMAN - FARM EDITION
//
// <NAME>
//... |
/*-
* BSD LICENSE
*
* Copyright (c) Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyri... |
//
// CorrWorker.cpp
// corr_client_opencl
//
// Created by tihmstar on 19.03.20.
// Copyright © 2020 tihmstar. All rights reserved.
//
#include "CorrWorker.hpp"
#include <netdb.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <stdio.h>
#inc... |
/* Copyright 2019 The TensorFlow 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#include <bits/stdc++.h>
using namespace std;
template <typename T> ostream& operator<<(ostream &os, const vector<T> &v) { os << '{'; string sep; for (const auto &x : v) os << sep << x, sep = ", "; return os << '}'; }
template <typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) { return ... |
/** \file locify_main.cpp
*
* Defines the "vg locify" subcommand
*/
#include <omp.h>
#include <unistd.h>
#include <getopt.h>
#include <iostream>
#include "subcommand.hpp"
#include "../vg.hpp"
#include "../xg.hpp"
#include "../index.hpp"
#include "../convert.hpp"
#include <vg/io/stream.hpp>
#include <vg/io/vpkg.... |
/*
###############################################################################
# If you use PhysiCell in your project, please cite PhysiCell and the version #
# number, such as below: #
# ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.