text stringlengths 3.08k 12.5k |
|---|
/*********************************************************************************
MIT License
Copyright (c) 2016 Microsoft
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, i... |
/*
Purpose:
Author: <NAME>
License: All rights reserved (2015 - 2019); licensed under the MIT license.
*/
#include <Scriptability.hpp>
#include "../ArchCommon.hpp"
#include "ArchOPCodes.hpp"
const uint8_t X64_MOVQDU_XMM_X_RDX[16][5] =
{
{ (uint8_t)0xf3, (uint8_t)0x0f, (uint8_t)0x6f, (uint8_t... |
#include "RenderableHeightmap.h"
#include <iostream>
using namespace std;
RenderableHeightmap::RenderableHeightmap(Heightmap* h)
: Heightmap(*h)
, renderDataCreated(false)
{
this->vertexCount = GetWidth()*GetHeight();
//this->texcoords = new vec2[vertexCount];
this->vertices = new vec3[vertexCount]... |
// cmd_validate_rrr.cc-- validate rrr correctness, regarding sdsl issue 365
#include <string>
#include <cstdlib>
#include <cstdint>
#include <iostream>
#include <iomanip>
#include "utilities.h"
#include "bit_vector.h"
#include "file_manager.h"
#include "support.h"
#include "commands.h"
#include "cmd_validate_rrr.h"
... |
#include <GLFW/glfw3.h>
#include <iostream>
#include "name.h"
#include "properties.h"
using namespace std;
/* GLobal variable */
double red_bg = 0;
double blue_bg = 0;
double green_bg = 0;
double red_nm = 255;
double green_nm = 73;
double blue_nm = 73;
double red_aw = 155;
double green_aw = 228;
double blue_aw = 211;... |
/*
* Copyright 2021 SYSON, <NAME>.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <conio.h>
#define pula printf("\n")
typedef struct{
int dia, mes, ano;
}Data;
typedef struct{
char NomeCompleto[80];
char sexo;
Data dataNasc;
float Altura;
float Peso;
}PerfilSaude;
//prototipos
PerfilSaude lerEstrutura ();
void exibePerfil(Perf... |
#include "cinder/Log.h"
#include "cinder/gl/gl.h"
#include "VrInterface.h"
using namespace ci;
using namespace ci::app;
using namespace components;
void VrInterface::cfg(cms::cfg::Cfg& cfg) {
cfg
.connectAttr<void()>("setupOn", [this](){ this->setup();})
.connectAttr<void()>("updateOn", [this](){ this->update... |
#include "stdafx.h"
// for convenience
using json = nlohmann::json;
void main(void) {
// Demonstrates how to begin receiving server-sent events, and to update
// your JSON database for each event.
// Put the streamdata token here.
const char *token = "YOUR TOKEN HERE";
// Put the sample api here.
const ch... |
/********************************************************************************************
MIT License
Copyright (c) 2019 <NAME> ... |
#include <fstream>
#include <vector>
#include <bitset>
#include <algorithm>
#include <string>
#include <string.h>
using namespace std;
const char infile[] = "seti.in";
const char outfile[] = "seti.out";
const int SIGMA = 52;
ifstream fin(infile);
ofstream fout(outfile);
string Txt, s;
vector <string> V;
int N, M, s... |
//#include "stdafx.h"
#include <iostream>
#include <cmath>
#include <string>
#include "string.h"
#define DEBUG_SPACING 10000
#define DELTAF false
#define LASTX false
#define ITERX true
#define DELTAF_PRECISION 0.0000001
#define PRECISION 0.0000001
#define MAX_ITERATIONS 1000000
#define GAMMA 0.01
using namespace st... |
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 - 2019, <NAME>, <NAME>, <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 wit... |
#include "segmenter.hpp"
static void fill_edges(const Mat &src, Mat &dst, int32_t val, int32_t edge_size)
{
int32_t border_type = BORDER_CONSTANT | BORDER_ISOLATED;
Scalar value(val, val, val);
Rect roi(edge_size, edge_size, src.cols - 2*edge_size,
src.rows - 2*edge_size);
copyMakeBorder(src(roi), d... |
/* Copyright 2018 <NAME>. 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 agreed to in writing,... |
#include <iostream>
#include <cmath>
#include <fstream>
#include <vector>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#define GLM_FORCE_RADIANS
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "main.h"
using namespace std;
voi... |
#include <Arduino.h>
#include "PPmax72xxAnimate.h"
uint8_t PPmax72xxAnimate::count_ch(const String *str, char ch) {
uint8_t count = 0;
for (uint16_t i = 0; i < str->length(); i++)
if (str->charAt(i) == ch) count++;
return count;
}
String PPmax72xxAnimate::nItem(const String *str, char ch, int item) {
... |
// Copyright 2020 Google LLC. 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... |
#include "IP.h"
using namespace IP;
void histoMatchApprox(ImagePtr, ImagePtr, ImagePtr);
ImagePtr scaleTargetHisto(ImagePtr, ImagePtr);
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// HW_histoMatch:
//
// Apply histogram matching to I1. Output is in I2.
//
void
HW_histoMatch(ImagePtr I1, ... |
/**
* @file
* @author <NAME>
* @brief Implementation of src/core/lxn.hxx
*/
/*
* l10n.cxx
*
* Created on: 24.06.2011
* Author: jason
*/
#include <map>
#include <vector>
#include <string>
#include <cstring>
#include <iostream>
#include <fstream>
#include <cerrno>
#include "lxn.hxx"
using namespace std... |
/*
* Copyright (c) 2017, NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software and ... |
// Copyright (c) 2020 The Orbit 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 <absl/synchronization/mutex.h>
#include <gtest/gtest.h>
#ifdef _WIN32
// No special windows header needed
#else
#include <pthread.h>
#endif
#i... |
/*
* 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 is distributed in the hope that it will be use... |
// ===============================
// AUTHOR : <NAME> (<EMAIL>lo12 AT vt DOT edu)
// CREATE DATE : 2018-07-03
// ===============================
//Headers
#include "mesh.h"
void Mesh::describeMesh(){
for(int i = 0; i < numVertices; ++i){
printf("Vertex %2.1d: %f, %f, %f \n",i,vertices[i].x, vertic... |
/**
* @author <NAME>.
* @version 2020/12/02
*/
/*
Given two arrays of length m and n with digits 0-9 representing two
numbers. Create the maximum number of length k <= m + n from digits
of the two. The relative order of the digits from the same array must
be preserved. Return an array of the k digit... |
/* The MIT License
Copyright (c) 2015 <NAME> <<EMAIL>>
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, mo... |
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 <NAME>
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY... |
//#include "stringparser.h"
#include "request.h"
#include "BusStopMap.h"
#include "json.h"
#include <iostream>
#include <vector>
#include <list>
#include <unordered_map>
#include <algorithm>
using namespace std;
using Requests = list<Request::RequestHolder>;
#define OUTPUT_REQUEST false
#define INPUT_REQUEST true
... |
#include "core.h"
#include "wbcompeldcamera.h"
#include "wbcompeldtransform.h"
#include "configmanager.h"
#include "wbentity.h"
#include "eldframework.h"
#include "collisioninfo.h"
#include "eldworld.h"
#include "mathcore.h"
#include "matrix.h"
#include "segment.h"
#include "wbeventmanager.h"
WBCompEldCamera::WBCompEl... |
/**
* @TODO update header
*
*/
#include "sd_test.h"
cid_t m_cid;
csd_t m_csd;
uint32_t m_eraseSize;
uint32_t m_ocr;
static ArduinoOutStream cout(Serial);
/**
* @TODO make note of where this came from
*/
void errorPrint(SdFat32 sd) {
if (sd.sdErrorCode()) {
cout << F("SD errorCode: ") << hex << showbas... |
#include "stdafx.h"
#include <GWCA/Utilities/Debug.h>
#include <GWCA/GameContainers/Array.h>
#include <GWCA/Managers/ChatMgr.h>
#include <GWCA/Managers/GameThreadMgr.h>
#include <Defines.h>
#include <Logger.h>
#include <GuiUtils.h>
#include <Modules/Resources.h>
#include <Modules/CrashHandler.h>
namespace {
FIL... |
#include "lexer.hpp"
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <string>
auto Token::to_string() const -> std::string {
std::string type_str = [this]() { // Immediately invoked lambda
switch (type) {
case TokenType::LEFT_PAREN: return "LEFT_PAREN";
case TokenT... |
// Copyright (C) 2020-2020 European Spallation Source, ERIC. See LICENSE file
#include <common/testutils/TestBase.h>
#include <common/reduction/HitVector.h>
#include <common/reduction/analysis/EventAnalyzer.h>
#include <common/reduction/clustering/GapClusterer.h>
#include <common/reduction/matching/CenterMatcher.h>
#... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <imgui_impl_opengl3.h>
#include <time.h>
#include "camera.hpp"
#include "compositor.hpp"
#include "gameplay.hpp"
#include "input.hpp"
bool needsResize = true;
void onResize(GLFWwindow* window, int width, int height)... |
/* CC3220SF_Init.cpp
* Copyright (c) 2018 ARM Limited
*
* 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... |
#ifdef LOCAL
#include "all.h"
#else
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#endif
using namespace std;
using namespace __gnu_pbds;
#include "dungeons.h"
typedef long long ll;
// SUBTASK 3
int n, lx;
vector<int> s,p,w,l;
vector<ll> win, cycle;
vector<bool... |
#include "StreamComp.h"
#include "Allegro.h"
#include "Line.h"
#include <stdio.h>
#include <stdlib.h>
unsigned int StreamComp::_timespan = 0;
unsigned int StreamComp::_lastInv = 0;
void StreamComp::add()
{
if (_timespan < kMaxTimespan)
{
++_timespan;
}
_lastInv = _lastInv + 1 >= kMaxTimespan... |
//51Nod - 1038
//N次剩余 O(\sqrt{p}*大常数)
typedef long long ll;
struct pli{
ll first;
int second;
pli(){}
pli (ll x_,int y_){
first=x_;
second=y_;
}
bool operator < (const pli &b) const {
if(first==b.first) return second>b.second;//因为second更大的解更小,所以重载>
return first<b.... |
#include <iostream>
#include <ctime>
#include <utility>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "hls_stream_utils.h"
#include "sizes.h"
#define TOTAL_SIZE 3500000
#ifndef PARALLELISATION
#define PARALLELISATION 8
#endif
//TRIPCOUNT identifiers
const unsigned int t_size = TOTAL_SIZE;
const u... |
/*
Copyright (c) 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicen... |
/* SIMPLE OBJECT (IMPLEMENTATION)
*
* This object has some simple functionality to show how to do basic method calls and property setting.
*
* March 30, 2010 <NAME> (Created)
*/
#include "jsoncpp.he"
#include "JsonValue.he"
#include "JsonFastWriter.he"
using boost::shared_ptr;
using namespace OmnisT... |
///////////////////////////////////////////////////////////////////////////////////
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. //
// //
// Licensed under the Apache License, Version 2.0 (the "License").... |
/*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
*
* 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 ve... |
/**
@file dvbresources.cpp
@brief This file is part of Kalinka mediaserver.
@author <NAME> <<EMAIL>>
Copyright (c) 2007-2012 Kalinka Team
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 t... |
/** -*- c++ -*-
*
* \file input_layer.cpp
* \date Sat May 14 11:55:59 2016
*
* \copyright
* Copyright (c) 2016 <NAME> <<EMAIL>>.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that the above copyright notice and this paragraph are
* duplicated in ... |
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <exception>
#include <unordered_map>
#include <unistd.h>
#include <dirent.h>
#include <getopt.h>
using namespace std;
#include "Partition.h"
#include "Report.h"
#include "util.h"
int inconsistencies = 0;
int missings = 0;
int duplica... |
//
// Created by <NAME> on 2019-02-07.
//
#include <iostream>
#include <sstream>
#include <cmath>
#include <cstdlib>
#include <string>
#include <memory>
#include <vector>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <queue>
#include <stack>
#include <algorithm>
#include <fun... |
/* Copyright 2016 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 applicable law or agreed to in ... |
/* Authors: <NAME> and <NAME> */
/*
* Copyright (c) 2019, The Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code ... |
/**
We can all benefit by doing occasional "toy" programs, when artificial
restrictions are set up, so that we are forced to push our abilities to
the limit.The art of tackling miniproblems with all our energy will sharpen
our talents for the real problems.
<NAME>... |
/* flags leaf nodes in nets for extracts function */
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <malloc.h>
extern "C" {
#include "parse.h"
#include "pconf.h"
}
char dict_file[LABEL_LEN] = "base.dic",
priority_file[LABEL_LEN] = "NET_PRIORITIES",
frames_file[LABEL_LEN] = "forms";
/* comma... |
#include <math.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <map>
#include <list>
#include <string>
#include <stdexcept>
#include <utility>
#include "font.hpp"
#include "rect.hpp"
#include "vector2.hpp"
using namespace Prova;
Font::Font(std::string path)
{
LoadBDF(path);
}
int Font::GetMax... |
//
// Created by hungr on 2021/07/11.
//
#include <gtest/gtest.h>
#include <list>
#include "gl++/vertex_buffer.h"
#include <GLFW/glfw3.h>
TEST(BUFFER_READ, BUFFER_TEST) {
std::vector<float> data { 1, 2, 3 };
gl::vertex_buffer<gl::buffer_trait<float, GL_ARRAY_BUFFER, GL_STATIC_DRAW>> vbo(data.begin(), data.e... |
//
// LICENSE:
//
// Copyright (c) 2016 -- 2019 <NAME>
//
// 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 th... |
//===- tpuc-interpreter.cpp - MLIR TPU Dialect Interpreter
// Driver---------------------===//
//
// Copyright 2019 The MLIR 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
//
//... |
#pragma once
#include "Math/Plane.hpp"
#include "Math/Vec3.hpp"
#include "Math/Mat4x4.hpp"
#include "Math/Projection.hpp"
struct FrustumPlanes
{
// Order: near, left, top, right, bottom, far
Plane planes[6];
void Update(const ProjectionParameters& params, const Mat4x4f& transform)
{
const Vec3f position = (tra... |
/*
* Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
*
* 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... |
// Copyright (c) 1999-2018 <NAME>
// See the file COPYING for more information
#include <sqlrelay/sqlrutil.h>
#include <rudiments/snooze.h>
#include <rudiments/charstring.h>
#include <rudiments/datetime.h>
#include <rudiments/file.h>
#include <rudiments/directory.h>
#include <rudiments/process.h>
#include <rudiments/p... |
// rotate results from the relativistic Green's function calculation
// green_function_rel.f to the global frame of reference
// this is from LSMS_1.9 gettau_c.f after the call to green_function_rel.
// this is rotr from LSMS_1.9
// ! rotation matrix for 3D vectors
// ! <NAME>: Rotations,Quaternions,..., p.75, Eq.(3.... |
#include "mynteye_img_logger_lib.h"
using namespace std;
using namespace ros;
using namespace cv;
using namespace message_filters;
MyntEyeImgLogger::MyntEyeImgLogger(const ConfigParam& cfg)
: cfgParam_(cfg), it_(nh_), nHeight_(640), nWidth_(480), bStartCamCallBack_(false), dAccumTime_(0.0)
{
// generating log fol... |
//
// Created by ZiT on 2021/7/21.
//
#include <optional>
#include <algorithm>
#include <iostream>
#include <utility>
using namespace std;
namespace data_structure {
namespace binary_search_tree {
typedef struct Node {
int key;
string val;
struct Node *left;
... |
/*
* Copyright (c) 2013-2015, <NAME> and <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list... |
#include "Transcriptcons.h"
#include <QJsonObject>
#include <QJsonDocument>
#include <QString>
#include <QJsonArray>
#include <string>
#include <QList>
QString Transcriptcons::getTranscript_id() const
{
return transcript_id;
}
void Transcriptcons::setTranscript_id(const QString &value)
{
transcript_id = val... |
#include "GraphicalInterface.h"
extern math::vec2 RedPos;
uint32_t Coloring = 0xff0000ff;
uint32_t cor = Coloring;
GraphicalInterface* GraphicalInterface::s_Instance = nullptr;
float MouseX;
float MouseY;
float d = 0.0f;
float e = 0.0f;
float f = 0.0f;
float g = 0.0f;
uint32_t timePressed = 0;
extern float MouseX1;
e... |
#include "pairnode.h"
#include <boost/foreach.hpp>
using namespace std;
int PairNode::m_numNodes;
PairNode::PairNode(const HyperParameters &hp, int depth) : m_hp( hp ), m_depth( depth ),
m_bestFeature( 0 ), m_bestThreshold( 0.0 )
{
m_isLeaf = false;
m_nodeIndex = m_numNodes++;
}
PairNode::PairNod... |
/*
* 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 without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute,... |
#include "JDEECoModule.h"
#include <assert.h>
#include <limits>
#include "JDEECoRuntime.h"
JDEECoModule::JDEECoModule() {
currentCallAtTime = std::numeric_limits<double>::min();
currentCallAtMessage = NULL;
initialized = false;
runtime = NULL;
}
JDEECoModule::~JDEECoModule() {
}
void JDEECoModule::callAt(doubl... |
// Copyright 2021 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
/* --------------------------------------------------------------------------
timeconv.cpp
Functions to perform various time conversion operations.
Copyright (C) 1994, Microsoft Corporation.
All rights reserved.
Author:
<NAME> - lindsayh
---------------------------------------------------------... |
/// MIT License
///
/// Copyright (c) 2020 <NAME>
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, including without limitation the rights
/// to use, copy, mo... |
/**********************************************
* MIT License
* Copyright (c) 2020 chciken/Niko
**********************************************/
#include "cpu.h"
#include <bitset>
#include <string>
#include "fmt/format.h"
#include "cpu_jumptable.cpp"
#include "cpu_ops.cpp"
Cpu::Cpu(sc_module_name name, bool attach... |
#include "rdmaio.h"
#include "all.h"
#include "TestConfigXml.h"
#define MAX_SERVERS 64
extern double tput[MAX_SERVERS];
extern TestConfig config;
uint64_t one_second = 0;
int stick_this_thread_to_core(int);
using namespace rdmaio;
void *run_client(void *arg) {
struct thread_config configs = *(struct thread_co... |
/**********************************************************************************
Copyright (c) 2019 <NAME>
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 without restriction,... |
#include <iostream>
#include <fstream>
#include <chrono>
#include <cstdlib>
#include <string>
#include <vector>
#include <algorithm>
#include <omp.h>
using namespace std;
template<typename T>
class CMatrix {
size_t _rows = 0, _columns = 0;
vector<T> _m;
public:
CMatrix() {};
CMatrix(size_t rows, size_t columns) {... |
/*
* Copyright 2021-2022 Hewlett Packard Enterprise Development LP
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
*
* You may obtai... |
//
// regkey.cpp
//
// (C) Copyright 2000 <NAME>.
// All Rights Reserved.
//
#include "regkey.h"
#include "../application.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// Constructor. Set's the handle to NULL.
ClsRegKey::ClsRegKey()
{
// Clear handle.
m_hKey... |
//
// Given a binary tree where each node is a character, locate the deepest nested node and print out the full path to that node.
//
#include <vector>
#include <cstdio>
#include <iterator>
using std::vector;
using std::copy;
using std::back_inserter;
template <typename T> void PrintStack (T & stack) {
for (auto... |
/*
* fEulerPreleapRB_TC.cpp
*
* Created on: Feb 7, 2011
* Author: <NAME>
*/
#include "fEuler.hh"
/*
fEulerPreleapRB_TC::fEulerPreleapRB_TC() : rxn(){
if (MoMMA::debug)
cout << "fEulerPreleapRB_TC constructor called." << endl;
}
*/
fEulerPreleapRB_TC::fEulerPreleapRB_TC(double eps, vector<Reaction*>& rxn)... |
// The MIT License (MIT)
//
// Copyright (c) 2016 <NAME> <<EMAIL>>
//
// 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... |
#include "../include/tetris.hpp"
Screen::Screen(int startLevel) {
// moves the screen string into a screen array
startLevel = startLevel;
level = startLevel;
string line;
stringstream f(screenstr);
int lineNum = 0;
while (getline(f, line)) {
// get number of lines in string
... |
/*************************************************************************
"I Have No Tomatoes"
Copyright (c) 2004, <NAME>
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 ... |
#include <iostream>
#include <SDL.h>
#include <SDL_image.h>
#include <mat4x4.h>
#include <vector3.h>
#include <quaternion.h>
#include "renderer.h"
#include "buffer.h"
#include "helpers.h"
const int width = 640;
const int height = 480;
/*
* Lesson 1: Hello World!
*/
int main(int argc, char** argv)
{
//First we n... |
// #include <iostream>
// using namespace std;
#include <math.h> /* round, floor, ceil, trunc */
#include "ColorC.h"
// FROM: https://www.rapidtables.com/convert/color/cmyk-to-rgb.html
// #include <iostream>
// using namespace std;
// #include <algorithm>
// #include <initializer_list>
uint32_t packColor(Rgb ... |
/*
* Copyright 2012 Open Source Robotics Foundation
*
* 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 applicab... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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) 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/chromedriver/server/http_server.h"
namespace {
// Maximum message size between app and ChromeDriver. Data larger than 150 MB
/... |
/// This is the structural solver benchmark CSM3 from this paper:
/// "Proposal for numerical benchmarking of fluid-structure interaction between an elastic object and laminar incompressible flow"
/// <NAME> and <NAME>, <Fluid-Structure Interaction>, 2006
///
/// Author: A.Shamanskiy (2016 - ...., TU Kaiserslautern)
#i... |
/**
* Description: BigInt (Big Integer library)
* Usage: See constructors, operators like +, -, *, /, >, >=, <, <=, ==, toString
* Note: Remove references '&' in overloaded operators for chaining operations.
* Source: https://github.com/dragonslayerx
*/
#include <iostream>
#include <cstdio>
#include <cstring>
#i... |
/* ------------------------------------------------------------------
Copyright (c) 2011-2020 <NAME>
email: <EMAIL>
This code is distributed under the MIT License.
Please see <root-path>/LICENSE for details.
-------------------------------------------------------------- */
#include "CtrlSolver.h... |
#include <sys/socket.h>
#include <pthread.h>
#include <errno.h>
#include <fcntl.h>
#include "url.h"
#include "socket.h"
#include "threads.h"
#include "qstring.h"
#include "dso.h"
/* regex pattern for parsing href */
static const char * HREF_PATTERN = "href=\"\\s*\\([^ >\"]*\\)\\s*\"";
/* convert header string to Head... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018 Intel Corporation
#include "precomp.hpp"
#include <ade/util/zip_range.hpp> // util::indexed
#inc... |
#include <IO/TinyPlyLoader/TinyPlyFileLoader.hpp>
#include <Core/Asset/FileData.hpp>
#include <tinyply.h>
#include <fstream>
#include <iostream>
#include <string>
const std::string plyExt( "ply" );
namespace Ra {
namespace IO {
using namespace Core::Utils; // log
using namespace Core::Asset; // Filedata
TinyPlyF... |
/**
Copyright (c) 2016, Ubiquity Robotics
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 conditions and the follo... |
// Copyright 2019 DeepMind Technologies Ltd. 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 require... |
/// \copyright Copyright (c) Catalysts GmbH
/// \author <NAME>, Catalysts GmbH
#include <mfhdf.h>
#include <stdexcept>
#include <hdf4cpp/HdfAttribute.h>
#include <hdf4cpp/HdfDefines.h>
#include <hdf4cpp/HdfException.h>
#include <hdf4cpp/HdfFile.h>
#include <hdf4cpp/HdfItem.h>
hdf4cpp::HdfFile::HdfFile(const std::s... |
#include "stdafx.h"
#include "convar.hpp"
ConVar _y_spt_overlay("_y_spt_overlay",
"0",
FCVAR_CHEAT,
"Enables the overlay camera in the top left of the screen.\n");
ConVar _y_spt_overlay_type(
"_y_spt_overlay_type",
"0",
FCVAR_CHEAT,
"Ov... |
/**
* \brief Example with LPC11C24 and Siemens S65 display.
*
* The S65 display is connected to GPIOs. Pinout is as follows:
*
*
*/
#include <xpcc/architecture.hpp>
#include <xpcc/driver/connectivity/spi.hpp>
// How to include the defines?
// #include "xpcc_config.hpp" does not work.
#include "../.... |
#include "EvaluaUI.hpp"
#include "EvaluaPresets.hpp"
#include "Window.hpp"
#include "common/components/ColorPalette.hpp"
#include "common/components/TextEdit.hpp"
#include "common/components/TextLabel.hpp"
#include "common/components/ValueFill.hpp"
#include "ev.h"
#include <cmath>
#include <cstdio>
#include <cstring>
... |
/**
* @file LaneDetection.cpp
* @brief LaneDetection class
* @details Implementation of LaneDetection class for detecting lanes
* @author <NAME>
* @version 1.0
* @copyright MIT License (c) 2018 <NAME>
*/
#include <math.h>
#include <string>
#include <vector>
#include "../include/LaneDetection.hpp"
#define PI 3.1415926... |
// Standard library modules
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
// libwjson modules
#include <core/token.cpp>
#include <core/json_exception.cpp>
#include <core/lexer.cpp>
#include <core/parser.cpp>
#include <core/ast.cpp>
// GTest
#include <gtest/gtest.h>
// wjsoncompact
#incl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.