text stringlengths 3.08k 12.5k |
|---|
#include <cmath>
#include "fun_physics.hpp"
// helper functions
static ImVec2 operator+(ImVec2 const &a, ImVec2 const &b) noexcept { return {a.x + b.x, a.y + b.y}; }
static ImVec2 operator-(ImVec2 const &a, ImVec2 const &b) noexcept { return {a.x - b.x, a.y - b.y}; }
static ImVec2 operator*(ImVec2 const &a, float b) ... |
#include "optimum/evolutionary/genetic.h"
#include <gtest/gtest.h>
#include <algorithm>
#include <cstdlib>
#include <random>
#include <string>
#include <unordered_map>
#include "optimum/evolutionary/selection.h"
#include "optimum/evolutionary/termination.h"
struct random_word_generator {
random_word_generator()... |
#include <stdafx.h>
#include <thread>
#include "updater.h"
#include "config/config.h"
#include <platform/windows.h>
#include <infrastructure/json11.hpp>
struct Updater::Impl {
~Impl();
// Full path to Update.exe or empty if it doesnt exist.
std::wstring updaterPath;
// Mutex for communicating between the two... |
//g++-5 --std=c++11 -g -o ds_tree_traversal_levelorder_bt ds_tree_traversal_levelorder_bt.cc
/**
* @file BT/BST tree traversal code (level_order, level_order bottup-up)
* @brief Implement all forms of tree traversal
*/
// https://leetcode.com/problems/binary-tree-level-order-traversal-ii/
// https://leetcode.com/... |
#include "Lib.h"
Interface::Interface(Mapa * m) {
map = m;
}
void Interface::corre() {
string comando;
int comandoEsp = 0;
string str;
string str2;
int num;
int num2;
int num3;
char c;
int x = 0;
int y = 2;
char tipo;
while (true) {
imprime();
Consola::gotoxy(0, 1);
cout << " ... |
/*
* Copyright (C) 2017 Prism Skylabs
*/
#include "artifact-uploader.h"
#include "client.h"
#include "private/UploadQueue.h"
#include "private/util.h"
#include "private/const-strings.h"
#include "easylogging++.h"
#include "boost/filesystem.hpp"
#include "boost/make_shared.hpp"
#include "boost/thread/thread.hpp"
n... |
//=============================================================================
// Copyright (c) Zombie Master Development Team. All rights reserved.
// The use and distribution terms for this software are covered by the MIT
// License (http://opensource.org/licenses/mit-license.php) which
// can be found in the file L... |
#include "nn_acc/CombBase.hh"
#include "debug/CombBase.hh"
CombBase::CombBase(CombBaseParams *params) :
MemObject(params),
_combEvent(* this)
{
for (int i = 0; i < params->port_master_connection_count; ++i) {
_master.emplace_back(name() + csprintf(".master[%d]", i), i, this);
}
... |
//=============================================================================
/**
* @file Nested_Non_Servant_Upcalls.cpp
*
* $Id: Nested_Non_Servant_Upcalls.cpp 93650 2011-03-28 08:44:53Z johnnyw $
*
* This program tests that nested non-servant upcalls are handled
* correctly.
*
*
* @author <NAM... |
//
// Simu5G
//
// Authors: <NAME>, <NAME>, <NAME> (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are part of the software itself,... |
/////////////////////////////////////////////////////////////////////////////////
// MIT License
//
// Copyright (c) 2020 RoboLab19
//
// 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 witho... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... |
/* Copyright (c) 2011-2012, 2015, 2020, The Linux Foundation. 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
* n... |
/**
* Program ntcThermostat.cpp
* Author 2022-01-31 <NAME> (https://www.dodeka.ch)
*
* Purpose The program shows how to regulate the room temperature or the temperature
* of a closed container with the help of the class NTCthermostat.
* The thermostat requires a referen... |
#include <cmath>
#include <iostream>
#include <string>
#include "Menu.h"
void Menu::editToggled() {
if(editing){ // Bug: editing updates for listeners before this callback, so opposite here
addFlags({ImGuiWindowFlags_NoInputs, ImGuiWindowFlags_NoBackground});
}
else{
removeFlags({ImGuiWindo... |
// Copyright 2020, <NAME>
// Licensed under the terms of MIT. See LICENSE file in project root for terms.
#include "evidencefilter.h"
EvidenceFilters::EvidenceFilters() = default;
QString EvidenceFilters::standardizeFilterKey(QString key) {
if (FILTER_KEYS_ERROR.contains(key, Qt::CaseInsensitive)) {
return FIL... |
#include "AssetManager.hpp"
#include <Planet/PlanetTerrainSystem.hpp>
#include <Planet/TerrainChunk.hpp>
glm::dvec3 Planet::TerrainChunk::ChunkCenterPosition(glm::dvec3 planetPosition, double radius, glm::quat rotation)
{
int actualDetailLevel = (int)glm::pow(2, m_detailLevel);
glm::dvec2 percent = glm::dvec... |
#include "stdafx.h"
#include "weaponrpg7.h"
#include "xrserver_objects_alife_items.h"
#include "explosiverocket.h"
#include "entity.h"
#include "level.h"
#include "player_hud.h"
#include "HUDManager.h"
CWeaponRPG7::CWeaponRPG7()
{
}
CWeaponRPG7::~CWeaponRPG7()
{
}
void CWeaponRPG7::Load (LPCSTR sec... |
#include "WebSystemController.h"
#include "Overlay.h"
#include "Crawl.h"
#pragma mark – Life Cycle
void WebSystemController::init() {
// Connect the websystem
connection.setHost("projectvictory.hostfile", 80);
// Set up listeners
connection.addHashTagCountListener(this, &WebSystemController::onHashTag... |
#include "QuadRenderer.h"
#include "Shader.h"
#include "Scene/Scene.h"
using namespace ForestHunt;
static constexpr uint32_t QUAD_VERTEX_COUNT = 4;
static constexpr glm::vec3 QUAD_VERTEX_POSITIONS[QUAD_VERTEX_COUNT] = {
{ -0.5f, -0.5f, 0.0f },
{ 0.5f, -0.5f, 0.0f },
{ 0.5f, 0.5f, 0.0f },
{ -0.5f... |
//segment tree divide and conquer
//linear base, dsu(rollback)
#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
struct Linear_Base {
int a[30];
Linear_Base() {memset(a, 0, sizeof(a));}
void insert(int val) {
for(int i = 29; ~i; --i) {
if((val >> i) & 1) {
if(a[i] == 0) {
a[i] = v... |
/*
* new_level:
* Dig and draw a new level
*
* @(#)new_level.c 4.38 (Berkeley) 02/05/99
*
* Rogue: Exploring the Dungeons of Doom
* Copyright (C) 1980-1983, 1985, 1999 <NAME>, <NAME> and <NAME>
* All rights reserved.
*
* See the file LICENSE.TXT for full copyright and licensing information.
*/
#include <cst... |
// MainFrm.cpp : implmentation of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "resource.h"
#include "aboutdlg.h"
#include "View.h"
#include "MainFrm.h"
CMainFrame::CMainFrame() : m_view(this) {
}
BOOL CMainFrame::PreTranslateMessage... |
//-------------------------------------------------------------------------------------------------
//
// llcsv 4/20/2020 <NAME>
//
// CSV command line tool
//
//-------------------------------------------------------------------------------------------------
//
// Author: <NAME> - 2020
// http://landenlab... |
#include "console.hpp"
#include "kisasum.h"
#include <cwctype>
#include <memory>
#include <unordered_map>
class AllocSingle {
public:
enum {
kInternalBufferSize = 1024 * 1024,
};
AllocSingle(const AllocSingle &) = delete;
AllocSingle &operator=(const AllocSingle &) = delete;
AllocSingle() = ... |
/*
Tencent is pleased to support the open source community by making
Plato available.
Copyright (C) 2019 THL A29 Limited, a Tencent company.
All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may
not use this file except in compliance with the License. You may
obtain a copy... |
#include "application.h"
#include <windows.h>
#include <thread>
#include <filesystem>
#include "../rasterizer/input_handler.h"
#include "../integrators/whitted.h"
#include "../integrators/path_tracer.h"
#include "../integrators/direct_lighting.h"
const unsigned int SCR_WIDTH = 900;
const unsigned int SCR_HEIGHT = 70... |
#include "pilercr.h"
/***
Generate default aligner parameters given:
minimum hit length.
minimum fractional identity.
sequence lengths.
maximum memory.
***/
const int DEFAULT_LENGTH = 400;
const double DEFAULT_MIN_ID = 0.94;
const double RAM_FRACT = 0.80;
/***
For minimum word length, choose k=4 a... |
#include "rrtstar.h"
#include "utils/params.h"
#include <QRandomGenerator>
#include "algorithm/obstacles.h"
void RRTStar::plan(double start_x, double start_y, double end_x, double end_y)
{
// exploration
NodeList.clear();
NodeList.push_back(Node(start_x, start_y));
for(int iter=0; iter<PARAMS::RRTStar... |
/*
* visualization.cpp
*
* Created on: Jan 18, 2012
* Author: eba
*/
#include "mhfpython.h"
#include <boost/foreach.hpp>
#include "visualization.h"
#include <numpy/noprefix.h>
// TODO expand the definition of this function to handle higher dimensional cases
//PyObject * actualDistributionAfterPredict(con... |
/*
* Copyright 2017 <NAME> <<EMAIL>>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "Assistant.h"
#include <Messenger.h>
#include <MimeType.h>
#include <Path.h>
#include <Resources.h>
#include <String.h>
#include <kernel/image.h>
#include <queue>
#include <stdio.h>
#include "... |
/* jpl_int.cpp: internal definitions for JPL ephemeris functions
Copyright (C) 2011, Project Pluto
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 ... |
/**************************************************************
* TODO time to time do init_GSM
*
**************************************************************/
#include <Wire.h> // required by BME280 library
#include <BME280_t.h>
#include "main.h"
BME280<>... |
#include "error_recovery.h"
#include "ProjectManager.h"
#include "Parser.h"
#include "DebugManager.h"
#include <wx/strconv.h>
#include <wx/utils.h>
#include "mxSource.h"
#include "mxMainWindow.h"
#include <csignal>
#include "mxMessageDialog.h"
#include "Language.h"
#include "mxCompiler.h"
using namespace std;
string g... |
/*
Copyright (c) 2012 <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, modify, merge, publish,
distribute, ... |
//
// Created by Charles on 16/1/18.
//
#include <iostream>
#include <fstream>
#include <chrono>
#include "JSONConvert.hpp"
#include "JSONQuery.hpp"
using namespace std;
using namespace json;
struct es_search_result
{
struct shared
{
int64_t failed = 0;
int64_t skipped = 0;
int64_t s... |
/* Copyright 2018 <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 in writi... |
#include "server/grid/lbs_index.h"
#include <stdio.h>
#include <stdlib.h>
#include "common/log.h"
#include "server/grid/lbs_distance.h"
#define LBS_LON_MIN 116
#define LBS_LON_MAX 117
#define LBS_LAT_MIN 39
#define LBS_LAT_MAX 41
#define LBS_ROW_NUM 200
#define LBS_COL_NUM 100
#include "lbs_grid.h"
#include "get... |
/*!@file
* @copyright This code is licensed under the 3-clause BSD license.
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.
* See LICENSE.txt for details.
*/
#define BOOST_FILESYSTEM_NO_DEPRECATED
#include "boost/filesystem.hpp"
#include "boost/program_options.hpp"
#include "boost/rege... |
#define SOL_ALL_SAFETIES_ON 1
#include <ngf/Graphics/RenderTarget.h>
#include <ngf/Graphics/Vertex.h>
#include <imgui.h>
#include <cstring>
#include <ngf/Graphics/FntFont.h>
#include "DemoApplication.h"
#include "Graphics.h"
struct Lua {
static void init() {}
static void draw() {}
static void update(float) {}
};... |
/*! @file
*
* @brief A weighted undirected adjacency list.
*
* This class contains the methods for defining a weighted undirected
* adjacency list (a Graph). It also contains a function to find the
* shortest path between two verticies.
*
* @author arosspope
* @date 12-10-2017
*/
#include "graph.h"
#inc... |
////////////////////////////////////////////////////////////////////////////////
//
// CoinNodeSocketSync.cpp
//
// Copyright (c) 2011-2013 <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... |
#include "common/TOP_Data.hpp"
#include "greedy/TOP_Greedy.hpp"
#include "common/Utils.hpp"
#include <sstream>
#include <fstream>
#include <algorithm>
#include <filesystem>
#include <random>
#include <chrono>
#include <vector>
#include <string>
using namespace std;
namespace fs = std::filesystem;
/**... |
/*
* Copyright (c) 2013, The Robot Studio
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of con... |
// Copyright (c) 2016 <NAME>. All rights reserved.
// Contacts: <<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... |
#include "Repository.h"
#include "Prop.h"
#include "Dbg.h"
#include <stdio.h>
#include <stdlib.h>
using namespace std;
using namespace yarp::os;
void Repository::load_part(const char *postfix, int idx) {
string base = "Disp";
if (idx==-2) base = "Thumb";
string dark = base + "DarkData";
string light = base +... |
#include <iostream>
#include <array>
#include <fstream>
#include <string>
#include "typedefs.h"
#include "MHNG_math.h"
#include "file_operations.h"
std::string file_in = "./boat-1024.bmp";
std::string file_out = "./b_spd.bmp";
int WIDTH;
int HEIGHT;
int FILESIZE;
int RESIZE = 0;
char* BMPHEADER = new char[54];
//*... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2018 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
#include <sgfx/window.hpp>
#include <stdexcept>
namespace {
const char* vertex_shader_source =
R"(#version 120
attribute vec2 vertices;
varying vec2 tex_coord;
void main()
{
vec2 tmp=(vertices+vec2(1,1))/2;
tex_coord=vec2(tmp[0],-(tmp[1]-1));
gl_Position=vec4(vertices,0, 1);
}
)";
const cha... |
#include <fstream>
#include <iostream>
#include <vector>
#include <numeric>
#include <algorithm>
#include <valarray>
#include "../include/utils.h"
template<class C>
class seat_plan {
public:
seat_plan(const C& ns, int c, int r)
: column_count(c), row_count(r), data(ns.size(), '.'), non_seats(ns) {}
seat_pl... |
/*
* Copyright (c) 2008, <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 must retain the above copyright
* notice, this list o... |
// This file in a part of LibAn8, Copyright (c) 2002-2007, <NAME>
// It's licence can be found in an8loader.h included in this package
// WebSite: texel3d.free.fr
#include "An8Loader.h"
using namespace std;
An8Face::An8Face(void)
{
NbrVertex = 0; // Number of vertices in the face
Mask = 0; // Mask
Material = ... |
#include<stdio.h>
#include<malloc.h>
#include<stdlib.h>
struct ListNode {
char data;
ListNode* Next;
ListNode* Last;
};
struct List {
ListNode* header;
ListNode* trailer;
int _size;
};
void CreateList(List* l)//build the list
{
l->_size = 0;
l->header = (ListNode*)malloc(sizeof(ListNode));
l->trailer = (Li... |
//---------------------------------------------------------------------------------------
// Example code that encapsulates three related objects.
// 1. The TressFXHairObject
// 2. An interface to get the current set of bones in world space that drive the hair object.
// 3. An interface to set up for drawing the... |
#include "bindings.h"
#include "utils.h"
#include "BRMerchandiseList.h"
void CreateTransactionImpl(
RE::BSFixedString api_url,
RE::BSFixedString api_key,
int32_t shop_id,
bool is_sell,
int32_t quantity,
int32_t amount,
RE::TESForm* merch_base,
RE::TESObjectREFR* result_handler
) {
logger::info("Entered Creat... |
/*
* Copyright 2016 <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 in wr... |
#include "mesh.h"
#include <macro.h>
#include <algorithm>
#include <meshoptimizer.h>
#include <objparser.h>
float NegativeIndexHelper(float* src, int i, int sub)
{
return i < 0 ? 0.f : src[i * 3 + sub];
}
float HalfToFloat(uint16_t v) {
uint16_t sign = v >> 15;
uint16_t exp = (v >> 10) & 31;
uint16_t ... |
#include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
#include "reduction.h"
// [[Rcpp::depends(RcppProgress)]]
#include <progress.hpp>
#include <progress_bar.hpp>
// Sparse Matrix class using Armadillo
template< typename Value >
struct ReducibleSpMat {
using value_type = Value;
arma::SpMat< value_type >&... |
//
// VROShapeUtils.cpp
// ViroRenderer
//
// Created by <NAME> on 12/3/15.
// Copyright © 2015 Viro Media. All rights reserved.
//
// 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 w... |
/*
* Copyright (c) 2017, <NAME> University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of ... |
#include "read_data.h"
using namespace cv;
using namespace std;
int
ReverseInt (int i){
unsigned char ch1, ch2, ch3, ch4;
ch1 = i & 255;
ch2 = (i >> 8) & 255;
ch3 = (i >> 16) & 255;
ch4 = (i >> 24) & 255;
return((int) ch1 << 24) + ((int)ch2 << 16) + ((int)ch3 << 8) + ch4;
}
void
read_MNIST_d... |
/*
* IPK.2017
*
* TCP communication with REST API.
*
* <NAME> (xmrvam01)
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <unistd.h>
#include <iostream>
#include <string>
#in... |
//
// Created by <NAME> on 1/11/16.
//
#include <set>
#include <map>
#include <iostream>
#include "WaveletTree.h"
#include "WaveletNodeNull.h"
// Same as WaveletNode::bitcode but with caching. Given map is used for caching.
bool code(std::map<char, bool> &map, std::vector<char> &alphabet, char q) {
if (map.find(q) ... |
#include <vector>
#include <iostream>
#include <stdio.h>
#include <string>
#include <algorithm>
#include <chrono>
using namespace std;
vector<string> split_string(string);
/*
* Complete the bricksGame function below.
*/
//vector<long> vals[2];
//vector<long> sums;
//int arrSize = 0;
//int bricksGameHelp(int* a,... |
/**
* @file test_opencv_opticalflow.cpp
* @brief Container for training/testing images
*
* @section LICENSE
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ... |
// Copyright 2020, Verizon Media
// Licensed under the terms of MIT. See LICENSE file in project root for terms.
#include "getinfo.h"
#include <QKeySequence>
#include <QMessageBox>
#include "appsettings.h"
#include "components/evidence_editor/evidenceeditor.h"
#include "helpers/netman.h"
#include "helpers/stopreply.... |
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <map>
#include <sstream>
#include <cmath>
#include <bitset>
#include <utility>
#include <set>
#include <numeric>
#include <time.h... |
// Template for GP1, version 1
// IGAD/NHTV - <NAME> - 2006-2013
#pragma warning (disable : 4530) // complaint about exception handler
#include "string.h"
#include "game.h"
#include "surface.h"
#include "stdlib.h"
#include "template.h"
#include "raytracer.h"
#include "Renderer.h"
#include <SDL.h>
#include <AntTweakBar... |
/*
Sample of using OpenCV dnn module with Torch ENet model.
*/
#include <opencv2/dnn.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
using namespace cv;
using namespace cv::dnn;
#include <fstream>
#include <iostream>
#include <cstdlib>
#include <sstream>
using namespace std;
const String keys =
... |
#pragma once
#include "Protocol.hpp"
#include "tasks/TaskSerializer.hpp"
#include <vector>
/**
* @brief Waiter that hands the forks to the philosophers.
*
* The waiter is needed to ensure a synchronization point between philosophers.
* Each philosopher will request the forks to the waiter. The access to the... |
#include <cstdio>
#include <cstring>
#include <deque>
#include <string>
#include <optional>
#include <stb_image.h>
#include "image.h"
#include "encode.h"
bool verbose = false;
int qFactor = 1;
std::string getFilename(const std::string &name) {
size_t begin = 0, end = name.length();
size_t slash = name.find_l... |
#include <frovedis.hpp>
#include <frovedis/ml/glm/logistic_regression_with_lbfgs.hpp>
#include <boost/program_options.hpp>
using namespace boost;
using namespace frovedis;
using namespace std;
double to_double(std::string& line) {
return boost::lexical_cast<double>(line);
}
void do_train(const string& input, cons... |
/*
Copyright (c) 2005-2020 Intel 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 la... |
#include <iostream>
#include "imedian_computer.h"
#include "tree_median/bst_median.h"
#include "tree_median/rbt_median.h"
#include "split_median.h"
#include "heap_median/heap_median.h"
//For testing purposes
#include <algorithm>
#include <vector>
#include <random>
#include <functional>
#include <chrono>
#include <thre... |
/****************************************************************************************
Copyright (C) 2016 Autodesk, Inc.
All rights reserved.
Use of this software is subject to the terms of the Autodesk license agreement
provided at the time of installation or download, or which otherwise accompa... |
#include <bits/stdtr1c++.h>
#define clr(ar) memset(ar, 0, sizeof(ar))
#define read() freopen("lol.txt", "r", stdin)
#define dbg(x) cout << #x << " = " << x << endl
using namespace std;
namespace ftor{
/// Note use only for factorization
#define MLIM 1000 /// Used in Brent Pollard Rho
#define PLIM 10 ///... |
// 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 "ipc/ipc_message.h"
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include "base/atomic_sequence_num.h"
#include "base/loggin... |
#include "cylinder.h"
#include <iostream>
using std::cout;
using std::endl;
Cylinder::Cylinder(float radius, float height, int slices, int stacks)
: m_color(0, 0, 1, 1), m_spec_color(1, 1, 1, 1), m_vbo(NULL),
m_radius(radius), m_height(height), m_slices(slices), m_stacks(stacks) {
m_stripsize = (slices +... |
/**
*
* Portions COPYRIGHT 2017 STMicroelectronics
* Copyright (C) 2017, ChaN, all right reserved.
*
******************************************************************************
*
* <h2><center>© Copyright (c) 2017 STMicroelectronics International N.V.
* All rights reserved.</center></h2>
*
... |
// -----------------------------------------------------------------------------
// The 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 wi... |
#pragma comment(linker, "/STACK: 2000000")
//misaka and rin will carry me to cm
#include <iostream>
#include <cstdio>
#include <cstring>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <array>
#include <tuple>
#include <random>
#include <chrono>
#define ll long long
#define lb l... |
// Copyright (c) 2012-2014 <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 without restriction, including without limitation
// the rights to use, copy, modify, m... |
/*
* command_converter.cpp
* Command Converter for Cubic Spline Trajectory Generation
*
* Created by <NAME> on 7/17/15.
* Copyright (c) 2015 <NAME>. All rights reserved.
* <EMAIL>
*
*/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
/*
Copyright(c) 2019 <NAME>(anatoliy_kuznetsov at yahoo.com)
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 agr... |
// For documentation about this code, see the glfw3 quick start guide
// https://www.glfw.org/docs/3.3/quick.html
#include "AGL.h"
#include "ppm_image.h"
#include <cmath>
#include <iostream>
extern void ray_trace(agl::ppm_image& image);
const GLchar* vertexShader[] =
{
"#version 400\n"
"in vec3 VertexPosition;"
"o... |
//Illustration of SIFT keypoint matching
// <NAME>, 2017-2022
//This code is licensed under the 3-Clause BSD License. See LICENSE file for details.
#include <iostream>
#include <vector>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/features2d.hpp>
#include "combine.hpp"
struct match_d... |
/***************************************************************
* Nome: <NAME>
* File name: main.cpp
* Data 17/02/2021
*
***************************************************************/
#include <iostream>
#include <vector>
#include <iostream>
#include<fstream>
#include <cstdlib>
#include <ctime>
#... |
// Scintilla source code edit control
/** @file LexSAS.cxx
** Lexer for SAS
**/
// Author: <NAME> (<EMAIL>)
//
// The License.txt file describes the conditions under which this software may
// be distributed.
//
// Developed as part of the StatTag project at Northwestern University Feinberg
// School of Medicine with... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2018 Pilz GmbH & Co. KG
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistr... |
/*!
* *****************************************************************************
* \file genFaceMaps.cpp
* \author moennen
* \brief
* \date 2018-09-19
* *****************************************************************************/
#include "utils/cv_utils.h"
#include "utils/imgFileLst.h"
#include ... |
/* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas o... |
// Copyright (c) 2007-2009 Google Inc.
// Copyright (c) 2006-2007 Jaiku Ltd.
// Copyright (c) 2002-2006 <NAME> and <NAME>
//
// This software is licensed at your choice under either 1 or 2 below.
//
// 1. MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software ... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
#include<boost/python.hpp>
#include<cstdarg>
#include<iostream>
#include"timeutils.h"
#include"network_definition.h"
#include"mnist.h"
#include"machinelearning_function.h"
using namespace std;
class Sequential
{
private:
struct network * net;
int recog = 0;
int i;
int temp_cnt = 0;
public:
Sequent... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
ofSetCircleResolution(200);
//
// Workflow
//
// 1. The addon will clone all the params (sources) to new ones (targets).
// 2. Before trig the tween:
// We will prepare the source params first.
// To tw... |
// -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Paragraph
// Copyright (c) 2016-2019 Illumina, 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:... |
/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
noaddr.cpp
Abstract:
Contains address resolution routine
Author:
<NAME> (urih) 22-Aug-99
Enviroment:
Platform-independent
--*/
#include "libpch.h"
#include <svcguid.h>
#include <Winsock2.h>
#include <No.h>
#include <... |
#include "samplingSequences.h"
#include "logFile.h"
#include "talRandom.h"
sampleSequences::sampleSequences(sequenceContainer &sc){
_sc = sc;
}
sequenceContainer sampleSequences::removeSequences(sequenceContainer &sc){
int noOfSeq = sc.numberOfSeqs();
int gap = sc.getAlphabet()->gap();
int unknown = ... |
#include "essentials/mqtt.hpp"
#include "essentials/config.hpp"
#include "essentials/device_info.hpp"
#include "essentials/esp32_storage.hpp"
#include "essentials/settings_server.hpp"
#include "essentials/wifi.hpp"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
namespace es = essentials;
// don't forget t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.