text stringlengths 3.08k 22k |
|---|
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <tuple>
#include <clang-c/Index.h>
#include "cmdparser.hpp"
using namespace std;;
struct EnumInfo {
string name;
vector<string> enumconstants;
};
struct FuncDecl {
string name;
string resulttype;
vector<string> paramtype... |
#include "mddft3d.cu" // will be defined on command line with --pre-include
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <hipfft.h>
#include "rocfft.h"
#include <stdlib.h>
#include <string.h>
#ifndef M
#define M 32
#define N 32
#define K 32
#endif
// extern void mddft3d(double *Y, double *X);
// gene... |
/** @file
File che si occupa di gestire gli handler del ::pomodoro_t per l'interfaccia grafica
*/
#include <gtk/gtk.h>
#include <sstream>
#include <string>
#ifdef DEBUG_MODE
#include "./include/debug.h"
#include <iostream>
#else
#define DEB(a)
#define VER(a)
#endif
using namespace std ;
#include "include/esame.h"... |
#include <cstdio>
#include <iostream>
#include <vector>
#include <cmath>
#include <cstring>
#include <iterator>
#include "IO.hpp"
#include "common.h"
#include "mkl.h"
#include "BenchmarkUtils.hpp"
#include <unordered_map>
#include "lib/timer.hpp"
using namespace std;
class DokMatrix {
public:
int n;
int nnzs;
... |
#include <limits>
#include <iostream>
#include <omp.h>
#include <chrono>
#include <ctime>
#include <algorithm> // std::sort
#include <random>
#include "../headers/grafo.h"
#include "../headers/full_perm.h"
#include "../headers/minla_node.h"
#include "../headers/partial_search.h"
#include "../headers/minla_omp_search... |
#include "Properties.h"
#include <io/InputStream.h>
#include <io/OutputStream.h>
#include <io/InputStreamReader.h>
#include <io/OutputStreamWriter.h>
#include <io/IOException.h>
#include <lang/Character.h>
#include <util/Vector.h>
#include <algorithm>
#include <string.h>
#include "config.h"
//-------------... |
#include <stdio.h>
#include <omp.h>
#include <stdint.h>
#include <cstddef>
#pragma omp requires unified_shared_memory
#include "../utilities/check.h"
#include "../utilities/utilities.h"
/*
export "LD_LIBRARY_PATH=/gsa/yktgsa/home/e/i/eichen/new-tlomp/lomp/source/lib64:/usr/local/cuda/lib64"
export LIBRARY_PATH="/hom... |
#include <iostream>
#include <fstream>
#include <cmath>
#include <armadillo>
#include <gtkmm-3.0/gtkmm.h>
// Compílelo así:
//g++ py1.cpp -larmadillo -llapack -lblas `pkg-config gtkmm-3.0 --cflags --libs`
//Hola hola
class Sustancia
{
public:
std::string nombre;
int indiceS;
double v25; //v... |
#include <iostream>
#include <fstream>
#include <chrono>
#include <string>
#include <memory>
#include <gkls_function.hpp>
#include <grishagin_function.hpp>
#include <cmdline.h>
#include "multievolventSolver.hpp"
void saveStatistics(const std::vector<std::vector<int>>& stat, const cmdline::parser& parser);
void initP... |
#include "pyrocksdb.hpp"
#include <iostream>
#include <stdexcept>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
PYBIND11_MAKE_OPAQUE(std::vector<ColumnFamilyHandle*>);
PYBIND11_MAKE_OPAQUE(std::vector<ColumnFamilyDescriptor, std::allocator<ColumnFamilyDescriptor>>);
// class ColumnFamilyHandleWrapper {
... |
#include <imgui/imgui.h>
#include "visualize_profiler.h"
#include "core/profiler.h"
#include "core/memory/linear_allocator.h"
#include "core/container/hash_map.h"
#include "core/container/sstring.h"
#include <stdio.h>
#include <algorithm>
int is_max(int a, int b) {
return a > b ? a : b;
}
#define ms(value) (value / ... |
// Copyright (C) 2013-2016 <NAME>
// All rights reserved.
#include <c4d.h>
#include <c4d_apibridge.h>
#include <webp/decode.h>
#include <webp/encode.h>
#define ID_WEBP_BITMAP_SAVER 1030523
#define ID_WEBP_BITMAP_LOADER 1030524
#define BASEBITMAP_MAX_DIMENSION 16000
template <typename T, void (*FREE)(void*)> cl... |
#include <CGUL.hpp>
using namespace CGUL;
#include <GL/glew.h>
#include <iostream>
UIntN LoadShader(const String& vertexFile, const String& fragmentFile)
{
// Create the shaders
UIntN vertexShader, fragmentShader;
vertexShader = GL::CreateShader(GL_VERTEX_SHADER);
fragmentShader = GL::CreateShader(GL... |
// Copyright (C) 2017 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University of
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2011 - 2016 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University... |
/*********************************************************************************
* Copyright (c) 2011-2012, <NAME>
* <NAME>
* <NAME>
* <NAME>
* <NAME>
* <NAME>
* ... |
//===- MCExpr.cpp - Assembly Level Expression Implementation --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "test.h"
#include "commands.h"
#include "halley.h"
#include "DebugServer.h"
#include "BayeuxClientIface.h"
#include <readline/readline.h>
#include <readline/history.h>
// Tells which mode we are in - either lua or command mode
// ctrl-d switches be... |
/*
WorldEditBE
Made by Imrglop
https://github.com/Imrglop/WorldEditBE
*/
#include "WorldEdit.h"
#include "../Core/main.h"
#include "../Core/Logger.h"
#include <math.h>
#include <Psapi.h>
#include "../Depends/VTHook/vtable_hook.h"
#include "../Utils/Utils.h"
#include "../Utils/Game.h"
#include "../Minecraft/World/Leve... |
#include "rip.h"
#include <stdint.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include<stdio.h>
/*
在头文件 rip.h 中定义了如下的结构体:
#define RIP_MAX_ENTRY 25
typedef struct {
// all fields are big endian
// we don't store 'family', as it is always 2(for response) and 0(for request)
// we don't store 'tag', as... |
//failed
class Solution {
public:
int repeatedStringMatch(string A, string B) {
// if(A.find(B) != string::npos){
// /**
// A: "aa"
// B: "a"
// **/
// return 1;
// }
// int prev_s = 0, s = 0;
// int count = 0;
// ... |
#include "bbox.hpp"
#include "node/node.hpp"
#include "hit.hpp"
#include "ray.hpp"
#include <glm/gtc/type_precision.hpp>
#include <numeric>
#include <iostream>
Bbox::Bbox():
m_min(glm::vec3(std::numeric_limits<float>::max())),
m_max(glm::vec3(std::numeric_limits<float>::lowest()))
{}
Bbox::Bbox(glm::vec3 const& ... |
#pragma once
/**
* @file fc_light/reflect.hpp
*
* @brief Defines types and macros used to provide reflection.
*
*/
#include <fc_light/utility.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/preprocessor/seq/for_each.hpp>
#include <boost/preprocessor/seq/enum.hpp>
#include <boost/preprocessor/seq/size.hpp>
... |
#include "lap3d.h"
#include "shiftengine3d.h"
#include "gaussianfilterbasis.h"
Gadgetron::LAP3D::LAP3D()
{
}
Gadgetron::LAP3D::LAP3D(const CubeType &I1_, const CubeType &I2_, int levelMin_, int levelMax_)
{
// Check if images have same size
if (I1_.n_rows != I2_.n_rows || I1_.n_rows != I2_.n_rows || I1_.n_rows != I... |
//
// Created by bobin on 17-11-10.
//
#include "Viewer.h"
#include <pangolin/pangolin.h>
#include "Tracker.h"
#include <mutex>
using namespace std;
Viewer::Viewer(const cv::FileStorage &fsSettings, Tracker* _tracker) {
tracker = _tracker;
float fps = fsSettings["Camera.FPS"];
if (fps < 1)
fps =... |
// =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... |
#include "game.h"
#include "globals.h"
#include "physics.h"
#include "wall.h"
#include "pothole.h"
#include "goal.h"
#include "windmill.h"
#include "token.h"
#include "sandtrap.h"
#include "arena.h"
#include "rewind.h"
#include "saves.h"
int tokenUse = 0;
int score = 0;
/** Erases the ball from the screen by drawi... |
/*
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... |
//------------------------------------------------------------------
//
// @@@ START COPYRIGHT @@@
//
// 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. ... |
#include <cstdio>
#include <celerity.h>
int len_str1 = 100, len_str2 = 100;
const int ALPHASIzE = 4;
const char AlphaBATES[] = "acgt";
template <typename T>
void init_first_row(celerity::distr_queue& queue, celerity::buffer<T, 1> buf) {
queue.submit([=](celerity::handler& cgh) {
auto dw_buf = buf.templat... |
#include <SFML/Graphics.hpp>
#include <iostream>
#include "../include/Constants.h"
#include "../include/Grid.h"
#include "../include/Utils.h"
void initializeGrid(Grid grid) {
for (int x = 0; x < grid.columns; ++x)
for (int y = 0; y < grid.lines; ++y)
initializeCellAt(grid, x, y);
for (int x = 0; x < (grid.c... |
#include "map.h"
#include "agent.h"
#include <fstream>
#include <iostream>
#include <functional>
#include <set>
Map::Map()
: agent_view(nullptr)
, width(0)
, height(0)
{
}
Map::~Map() = default;
// -----
void Map::load(std::string const &_file)
{
std::ifstream file(_file);
if (!file) {
... |
#include "Vector3.hpp"
#include "Quaternion.hpp"
#include "Matrix3.hpp"
#include <sstream>
// NOTE: Matrices in this game engine are row-major.
const Matrix3 Matrix3::Identity(Vector3::Right, Vector3::Up, Vector3::Forward);
Matrix3::Matrix3(const Vector3& row0, const Vector3& row1, const Vector3& row2)
{
SetRo... |
#include "FirstOrderTriangleFEGA.hpp"
/**
* Galerkin approach
* */
void solveWithFirstOrderTriangleFE(TriangleContributionMatrix *&contributionMatrix,
TriangleRightPart *&localRigthParts,
Point **&coordinateMesh,
... |
/** <NAME> (msp3430)
* File: diver_segmentation.cpp
*
* This code takes in videos of divers diving, and creates a mosaic of the diver during the dive.
* This mosaic is saved in ./output/<video_name>.jpg.
*
* For each video in ./videos/, the program first creates a background model using the MOG2
* algorithm... |
#include "Turbo3D.h"
#include "N64.h"
#include "RSP.h"
#include "RDP.h"
#include "gSP.h"
#include "gDP.h"
#include "DisplayWindow.h"
/******************Turbo3D microcode*************************/
#define GT_FLAG_NOMTX 0x01 /* don't load the matrix */
#define GT_FLAG_NO_XFM 0x02 /* load vtx, use verbatim */
#define ... |
#include "PostProcessor_pcp.h"
#include "DisplayModel_S2D.h"
DisplayModel_S2D::DisplayModel_S2D() :
bgm_vao(0), bgm_vbo(0), bgm_elem_n_id_num(0),
pcls_vao(0), pcls_vbo(0), pcls_id_num(0),
pt_vao(0), pt_vbo(0), pt_num(0) {}
DisplayModel_S2D::~DisplayModel_S2D()
{
if (bgm_vao)
{
glDeleteBuffers(1, &bgm_vbo);
... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
// implicit Free List
int heap_init();
uint64_t mem_alloc(uint32_t size);
void mem_free(uint64_t vaddr);
static uint32_t get_blocksize(uint64_t header_vaddr);
static uint32_t get_allocated(uint64_t header_vaddr);
static void set_blocksize... |
#include "highscore.hpp"
#include <iostream>
CHighScore::CHighScore ( SDL_Renderer * r )
{
renderer = r;
id = "high_score";
nscore = 0;
can_set_widgets = true;
name = score = level = 0;
#if _WIN32 || _WIN64
char p2[FILENAME_MAX];
#ifndef PREFIX
sprintf(path, "%s\\DT_highscore", _getcwd(p2, sizeof(p2)))... |
#include <Quark.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "imgui.h"
#include <Platform/OpenGL/OpenGLShader.hpp>
class ExampleLayer : public Qk::Layer
{
public:
ExampleLayer() :
Layer("Example"), m_Camera(-1.6f, 1.6f, -0.9f, 0.9f), m_SquarePosition(0.0f)
{
m_SquareV... |
#include <list>
#include <iostream>
#include <algorithm>
#include <map>
#include <set>
#include <math.h>
#include <Line.hpp>
using namespace std;
using namespace sf;
using namespace graphics;
namespace {
struct Edge {
public:
Edge(float x, float d, float sy, float y)
:posX(x), startY(sy), endY(y), delta(d) {}
... |
#include<iostream>
#include<string>
using namespace std;
enum COLOR { RED, BLACK};
class Node {
public:
int nValue;
Node *pParent;
Node *lChild;
Node *rChild;
COLOR color;
friend class BRT;
public:
Node(int value = 0) : nValue(value) {
this->pParent = NULL;
this->lChild = NULL;
this->rChild = NULL;
th... |
// Copyright (c) 2021 <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, distri... |
/*
* putdownModules.cpp
*
* Created on: Aug 20, 2015
* Author: andreas
*/
#include "planner_modules_pr2/putdown_modules.h"
#include "planner_modules_pr2/manipulation_exceptions.h"
VERIFY_INIT_MODULE_DEF(putdown_init);
VERIFY_CONDITIONCHECKER_DEF(can_putdown);
namespace planner_modules_pr2
{
namespace putd... |
#include <iostream>
#include "../../lib/JVM/Interpretador.hpp"
#include "../../lib/Uteis/Flags_Tags.hpp"
#include "../../lib/Uteis/Arquivos.hpp"
#include "../../lib/Tipos/CPDados.hpp"
Interpretador::Interpretador (Carregador *const area_metodos) : Interpretador() {
this->area_metodos = area_metodos;
}
void Inter... |
// 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... |
#include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <stdlib.h>
#include <vector>
#include <sstream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_mixer.h>
#include "game.h"
#include "texturemanager.h"
#include "stage1state.h"
#include "deadstate.h"
#incl... |
//
// Fast Fourier Transform in N * (sum of factors of N) Time
// <NAME> 1985/08/11.
//
#include "stdafx.h"
#include "Venera15.h"
static Complex zero;
static int AB;
static int prime[] = {
4, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41,
43, 47, 53, 59, 61, 67, 71, 73, 79,... |
/*
* Copyright(c) <NAME> (2017-2019)
*
* This file is part of brokkr framework
* (see https://github.com/fsole/brokkr).
* The use of this software is governed by the LICENSE file.
*/
#include "core/mesh.h"
#include "core/maths.h"
#include "core/image.h"
#include "core/timer.h"
#include "framework/application.h"
#incl... |
#include "parser.h"
/**
* @brief Parser::Parser Default Constructor
*/
Parser::Parser(){
}
/**
* @brief Parser::Parser Constructor
* @param G Grammar
* @param words Words
*/
Parser::Parser(const Grammar& G, const Wvector& words){
_G = G;
_words = words;
}
/**
* @brief Parser::setGrammar Set the Gramm... |
#include "PackfileVFS.h"
#include "common/filesystem/Path.h"
#include "common/filesystem/File.h"
#include "common/string/String.h"
#include "application/project/Project.h"
#include <RfgTools++\formats\packfiles\Packfile3.h>
#include "Log.h"
#include <filesystem>
void PackfileVFS::Init(const string& packfileFolderPath,... |
/*
* Barcode
* Copyright <NAME>
*
* Distributed under the terms of the MIT License.
* The full license is in the file LICENSE, distributed with this software.
*/
#include <cmath> // sqrt, cos, sin
#include <stdexcept> // runtime_error
#include "struct_hamil.h"
#include "fftw_array.h"
#include "fftwrapper.h" // ... |
#include <ICoCoProblem.h>
#include "CommInterface.hxx"
#include "ProcessorGroup.hxx"
#include "MPIProcessorGroup.hxx"
#include "TrioDEC.hxx"
#include <set>
#include <time.h>
#include <ICoCoTrioField.h>
#include <fstream>
#include <string.h>
using namespace MEDCoupling;
using namespace std;
using namespace ICoCo;
//u... |
/******************************************************************************\
* *
* ____ _ _ _ *
* | __ ) ___ ___ ___| |_ / \ ___| |_ ___ _ __ *... |
// See LICENSE_CELLO file for license and copyright information
/// @file problem_ProlongLinear.cpp
/// @author <NAME> (<EMAIL>)
/// @date 2013-05-09
/// @brief Implentation of default linear prolongation
// #define CELLO_TRACE
// #define DEBUG_ARRAY
#include "problem.hpp"
// #define TRACE_SUMS
//----... |
#include <string.h>
#include <iostream>
#include "pdfdocument.h"
#include "public/fpdf_structtree.h"
#include "public/fpdf_catalog.h"
#include "public/fpdf_edit.h"
#include "public/fpdf_text.h"
#include "fpdf_stringhelper.h"
#include "assert.h"
static int testPageIndex = 35;
PDFDocument::PDFDocument(const char *pat... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
// Purpose:
//
// Test the IO routines for particles. This test creates a Pa... |
/***************************************************
This is a library for the L3GD20 GYROSCOPE
Designed specifically to work with the Adafruit L3GD20 Breakout
----> https://www.adafruit.com/products/1032
These sensors use I2C or SPI to communicate, 2 pins (I2C)
or 4 pins (SPI) are required to interface.
Adafruit in... |
#include "qbase.h"
// each test module could contain no more then one 'main' file with init function defined
// alternatively you could define init function yourself
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <chrono>
#include <ctime>
template<class String>
void test_util_format(... |
#include <BasicUsageEnvironment.hh>
#include <GroupsockHelper.hh>
#include "logger.h"
#include "H264_V4l2DeviceSource.h"
#include "ServerMediaSubsession.h"
#include "Capture.h"
#include "ALSACapture.h"
extern "C" {
#include "LibLive.h"
}
using namespace std;
char quit = 0;
snd_pcm_format_t decodeAudioFormat(const ... |
#include "utils.h"
#include "ps/ps.h"
#include <thread>
#include <chrono>
#include <numeric>
#include <array>
/*
Tests for locality-conscious part of the parameter server API:
PullIfLocal()
IsFinished()
*/
using namespace ps;
// handle and server types
typedef long ValT;
typedef DefaultColoServerHandle<ValT> ... |
#include <stdio.h>
#include <string.h>
#include "byakugan.h"
#include "stdwindbg.h"
char bypassFalse[] = "\x33\xc0" // xor eax, eax
"\xc2\x08\x00"; // ret 8
struct debugClientNode *headDebugClient = NULL;
detectionCallBack::detectionCallBack() : type(NULL), count(0) {}
HRES... |
#include "quadratures/qgausslegendretensorized.hpp"
#include "common/config.hpp"
#include "toolboxes/errormessages.hpp"
QGaussLegendreTensorized::QGaussLegendreTensorized( Config* settings ) : QuadratureBase( settings ) {
SetName();
CheckOrder();
SetNq();
SetPointsAndWeights();
SetConnectivity();
... |
// Copyright 2013 the V8 project authors. 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 ... |
/*
The zlib/libpng License
Copyright (c) 2005-2007 <NAME> (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no event will
the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this... |
// mex clipper.cpp mexclipper.cpp
//
// Modified 2014-10-24, <NAME> (JR), University West, <EMAIL>
// replaced "Polygons" to "Paths"
// replaced "AddPolygons" by "AddPaths"
// replaced the call to "OffsetPolygons" by use of the "ClipperOffset" class
#include "mex.h"
#include "clipper.hpp"
using namespace ClipperLib;... |
#include "x_client_thumbnail.hpp"
#include <xcb/xcb_renderutil.h>
x_client_thumbnail::x_client_thumbnail(x_connection & c,
const rectangle & rect,
const xcb_window_t & window,
std::shared_ptr<x_client>... |
/************************************************************************
> File Name: MtxSpMpi.cpp
> Author: <NAME>
> Descriptions: implementation of class mtxSpMpi
> Created Time: Before 2020
************************************************************************/
#include "MtxSpMpi.hpp"
#include <unordered... |
////////////////////////////////////////////////////////////////////////////////
//
// Package: RoadNarrows Robotics Laelaps Mobile Robot ROS Package
//
// Link: https://github.com/roadnarrows-robotics/laelaps
//
// ROS Node: laelaps_control
//
// File: laelaps_control_main.cpp
//
/*! \file
*
* $LastChan... |
// 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 "content/browser/gamepad/gamepad_platform_data_fetcher_linux.h"
#include <fcntl.h>
#include <linux/joystick.h>
#include <string.h>
#include ... |
// Copyright 2019 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 <fcntl.h>
#include <unistd.h>
#include "cast/common/certificate/cast_crl.h"
#include "cast/common/certificate/testing/test_helpers.h"
#include "... |
#include "StandardInput.h"
#include "z3++.h"
StandardInput::StandardInput(
AXDSignature const & sig,
z3::expr_vector const & conjunction,
z3::expr_vector & initial_index_vars,
Preprocessor::ArrayVars const & array_var_ids) :
sig(sig),
diff_map(array_var_ids, sig),
write_vector(),
instantiated... |
// Copyright 2010 by <NAME>
// Please see included license information in file
// COPYING or visit
// http://opensource.org/licenses/mit-license.php
// sendit.cc
// This is the class that will send the email message.
// It inherits from the MailSender class.
// It has to parse the file for a from address and to
// add... |
#include <vector>
#include "caffe/layers/conv_layer.hpp"
// MINSOO haha
#include <fstream>
#include <iostream>
#include "minsoo/Statis.hpp"
extern bool log_report;
bool statis_on;
bool mult_dump(false);
bool mult_dump2(false);
bool mult_dump3(false);
int dump_layer(0);
Statis<float>* statis;
Batch<float>* batch;
int ... |
#define WINVER 0x0600
#include <dwrite.h>
#include <dwrite_1.h>
#pragma comment(lib, "Dwrite")
#include <unordered_set>
#include "text/FontDescriptor.hpp"
using namespace fui;
// throws a JS error when there is some exception in DirectWrite
#define HR(hr) ... |
/*
* CDispWonProc.cpp : 勝ちキャラ表示
*
*/
#include "CDispWonProc.h"
#include "CGameInfo.h"
#include "RndCtrl.h"
// コンストラクタ //
CDispWonProc::CDispWonProc(CGameInfo *pSys)
{
m_pSys = pSys;
m_RetCode = PBGPROC_OK;
m_Count = 0;
m_WindowHeight = 0; // ウィンドウの高さ
m_pBG = ... |
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
** Software License B, Version 1.1 (the "License"), the contents of this
** file are subject only to the provisions of the License. You may not use
** this file except in co... |
/*
* \file EcalEndcapDigisValidation.cc
*
* \author <NAME>
*
*/
#include <Validation/EcalDigis/interface/EcalEndcapDigisValidation.h>
#include "CalibCalorimetry/EcalTrivialCondModules/interface/EcalTrivialConditionRetriever.h"
using namespace cms;
using namespace edm;
using namespace std;
EcalEndcapDigisValidati... |
/***************************************************************************
guifont.cpp -- GLTT fonts management
-------------------
created : Fri Aug 13 22:19:09 CEST 1999
copyright : (C) 1999 by <NAME>
email : <E... |
#include <thread>
#include <cmath>
#include <omp.h>
#include <atomic>
#include <direct.h>
#include <array>
#include <vector>
#include <algorithm>
#include "progress.h"
#define SINGLE_THREADED() false
static const float c_goldenRatio = 1.618033988749894f;
static const float c_goldenRatioConjugate = 0.618033988749894f... |
//
// Created by chnlkw on 11/28/17.
//
#include "DataCopy.h"
#include "Task.h"
#include "Data.h"
#include "Array.h"
#include "Worker.h"
#include "Allocator.h"
#include <cassert>
#include <cstring>
#include <iostream>
#include <easylogging++.h>
#define LG(x) CLOG(x, "DataCopy")
namespace Xuanwu {
#if 1
using... |
#include "RendererSectionData.hpp"
#include <array>
#include <glm/gtc/matrix_transform.hpp>
#include "World.hpp"
inline const BlockId& GetBlockId(const Vector& pos, const std::array<BlockId, 4096> &blockIdData) {
return blockIdData[pos.y * 256 + pos.z * 16 + pos.x];
}
inline const BlockId& GetBlockId(int x, int y... |
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* 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
*
* h... |
/*
Copyright (c) 2010-2016, <NAME> - IntRoLab - Universite de Sherbrooke
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 (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 "remoting/client/plugin/pepper_view.h"
#include <functional>
#include "base/message_loop/message_loop.h"
#include "base/strings/string_util... |
/* Copyright (c) <2003-2016> <Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* includi... |
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gtest/gtest.h>
#include <stdio.h>
#include <unistd.h>
extern "C" {
#include "audio_thread.h"
#include "cras_bt_log.h"
#include "cras_message... |
//===--- CompilationDatabase.cpp - ----------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright 2010 The Native Client 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 "examples/graphics/photo_c_salt/photo.h"
#include <sys/time.h>
#include <sys/times.h>
#include <algorithm>
#include <cassert>
#include <cm... |
/*
see copyright notice in squirrel.h
*/
#include "sqpcheader.h"
#include "sqvm.h"
#include "sqtable.h"
#include "sqfuncproto.h"
#include "sqclosure.h"
SQTable::SQTable(SQSharedState *ss,SQInteger nInitialSize)
{
SQInteger pow2size=MINPOWER2;
while(nInitialSize>pow2size)pow2size=pow2size<<1;
AllocNodes... |
/**
* @file client.cpp
* @author Unknown
* @brief Client main
*
* Generated by 'brix11 generate client' @ 2014-03-02 15:41:45 +0100
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "tao/x11/idl_traits_t.h"
// X11_FUZZ: disable check_taox11_namespaces
namespace TAOX11_NAMESPACE
{
namespa... |
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" // for .png loading
#include "../../imgui.h"
#ifdef _MSC_VER
#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen
#end... |
#include "ChessGLCanvas.h"
ChessGLCanvas::ChessGLCanvas(wxTextCtrl *log,
wxWindow *parent, wxWindowID id,
const wxPoint& pos, const wxSize& size)
: MyGLCanvas(parent, id, pos, size)
{
this->log = log;
int w,h;
GetClientSize(&w,&h);
... |
/* diff - compute a shortest edit script(SES) given two sequences
* Copyright(c) 2004 <NAME> <mba2000 ioplex.com>
*
* The MIT License
*
* 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 wi... |
/*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE USE OF... |
// prueba de la clase mensaje
#define TITULO "Mensaje: Probando getByteAt() setByteAt() pushByte_back()"
#include "Mensaje.hpp"
#include <iostream>
#include <iomanip>
int pruebas = 0;
int fallos = 0;
void miraCorrectoGet(Mensaje& men, unsigned ind, uint8_t corr) {
pruebas++;
uint8_t dev = men.getByteAt(ind);
... |
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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. ... |
//============================================================================
// Name : InstrucDynamixel.cpp
// Author : <NAME>
// Version : 1.0
// Copyright : Free_Green_Team
// Description : Librería para el manejo y manupulación de instruciones en los
// servomotores Dynamixel
... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, University of Colorado, Boulder
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "consensus/validation/babe_block_validator.hpp"
#include <algorithm>
#include <boost/assert.hpp>
#include "common/mp_utils.hpp"
#include "crypto/sr25519_provider.hpp"
#include "scale/scale.hpp"
OUTCOME_CPP_... |
/**
* This file is part of gltoolbox
*
* MIT License
*
* Copyright (c) 2021 <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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.