text stringlengths 3.08k 12.5k |
|---|
// Copyright (c) 2009 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/browser/possible_url_model.h"
#include "app/gfx/codec/png_codec.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#incl... |
#include "UESVON/Public/SVONPathFinder.h"
#include "UESVON/Public/SVONLink.h"
#include "UESVON/Public/SVONNode.h"
#include "UESVON/Public/SVONVolume.h"
#include "UESVON.h"
#include "SVONNavigationPath.h"
int FSVONPathFinder::FindPath(const FSVONLink& aStart, const FSVONLink& aGoal, const FVector& aStartPos, const FVec... |
//<NAME>
//Discente da turma de 2019 em Ciência da Computação - UNIFAP
//Programação I
//<EMAIL>
//https://github.com/higorslva/hitech-lab/
#include <iostream>
#include <math.h>
#include <locale>
#include <stdlib.h>
using namespace std;
void RaizesEquacao(){
float a, b, c;
cout << "Calcular ra... |
#include "editor.h"
#include "gui/imgui.h"
#include "gui/imgui_impl_sdl_gl3.h"
#include <GL/gl3w.h>
/*
#include "editor.h"
Editor(EventQueue& eventqueue) : queue(eventqueue) {
// TODO create windows etc here?
}*/
static bool show_test_window = true;
static bool show_another_window = false;
static ImVec4 clear_color... |
#include <QDebug>
#include <QSettings>
#include <algorithm>
#include "graphic/owngraphicscene.h"
#include "gui/newannotationdialog.h"
#include "owngraphicscene.h"
OwnGraphicScene::OwnGraphicScene()
: isDrawn(false), isLeftPressed(false), isItemMove(false) {}
/**
* set background image to scene
*/
void OwnGraphi... |
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
class Util {
public:
static void writeString(ofstream& file, string value) {
int dim = value.size() + 1; //because we store the \0 also
//write the size
file.write((char*)&dim, sizeof(int));
//write the string value
file.write(... |
/*
* Copyright (c) 2019 <NAME> <<EMAIL>>
*/
#include "daemon.h"
#include "config.h"
#include "utils.h"
#include "signals.h"
#include "logger.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <iostream>
Daemon *Daemon::daemon_ ... |
//
// LiteCoreServ.cc
//
// Copyright (c) 2017 Couchbase, 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
//
// U... |
#include "gtest/gtest.h"
#include "math/Random.h"
using namespace nc;
TEST(Random_unit_tests, Fork_NewInstanceSeededFromNextValue)
{
constexpr size_t seed = 12345;
Random original{seed};
Random copy = original;
Random forked = original.Fork();
auto expectedSeed = copy.GetU64();
auto actualSeed... |
#include "argument_parser.h"
#include "endgame.h"
#include "engine_wrapper.h"
#include "movegen.h"
#include "polyglot.h"
#include "timer.h"
#include "uci.h"
#include "zobrist_hash.h"
#include <fstream>
constexpr int WIN_WHITE = 0;
constexpr int WIN_BLACK = 1;
constexpr int DRAW = 2;
struct GameParams
{
GameParam... |
// Copyright (c) 2021 <NAME>. All Rights Reserved.
#include "PiperTransforms.h"
#include "PiperIK.h"
#include "PiperFK.h"
#include "PiperMath.h"
#include "SwingTwistNode.h"
#include "TensionNode.h"
#include <maya/MFnPlugin.h>
MStatus initializePlugin(MObject obj)
{
MStatus status;
MFnPlugin plugin_fn(obj, "... |
// Standard Library includes
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include "TransformChar.hpp"
#include "runCaesarCipher.hpp"
// For std::isalpha and std::isupper
#include <cctype>
bool processCommandLine(const std::vector<std::string>& arg, bool& isEncrypting, bool& helpRequested... |
/*---------------------------------------------------------------------------------*/
/* NOMAD - Nonlinear Optimization by Mesh Adaptive Direct Search - */
/* */
/* NOMAD - Version 4 has been created by ... |
//==============================================================
// Copyright © 2019 Intel Corporation
//
// SPDX-License-Identifier: MIT
// =============================================================
#pragma once
#include <exception>
#include <iomanip>
#include <iostream>
constexpr int row_size = 100;
constexpr i... |
#pragma once
inline void makeRotatedMat(const cv::Mat src, cv::Mat& dst, double angle, cv::Mat& directRot)
{
double angleRad = angle * 3.1415 / 180;
float w = src.size().width, h = src.size().height;
cv::Point2f srcPoints[4] = { {0,0},{w,0},{0,h},{w,h} };
//cv::Point2f srcPoints[8] = { {w/3,0}... |
// Copyright 2017 Google 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed ... |
#include "monitor.h"
void general_disk_usage()
{
std::cout << "retrieving general disk usage...\n";
std::string script = "df\n";
std::string result = pegar_saida_comando(script.c_str());
std::istringstream sstream(result);
std::string line;
std::string trash;
// skips first line (headers)
getline(sstream, li... |
#include "stdafx.h"
#include <GWCA/Packets/StoC.h>
#include <GWCA/GameEntities/Player.h>
#include <GWCA/Managers/ChatMgr.h>
#include <GWCA/Managers/StoCMgr.h>
#include <GWCA/Managers/AgentMgr.h>
#include <GWCA/Managers/MapMgr.h>
#include <GWCA/Managers/GameThreadMgr.h>
#include <Logger.h>
#include <Modules/AprilFoo... |
#include "rdf4cpp/rdf/Dataset.hpp"
#include <serd-0/serd/serd.h>
#include <rdf4cpp/rdf/storage/util/robin-hood-hashing/robin_hood_hash.hpp>
#include <rdf4cpp/rdf/storage/util/tsl/sparse_map.h>
using Quad = rdf4cpp::rdf::Quad;
using namespace rdf4cpp::rdf;
struct SerdHandle {
using PrefixMap = rdf4cpp::rdf::stor... |
#pragma once
#include "quantumvk/utils/hash.hpp"
#include "quantumvk/utils/intrusive.hpp"
#include "quantumvk/utils/enum_cast.hpp"
#include "quantumvk/utils/object_pool.hpp"
#include "descriptor_set.hpp"
#include "quantumvk/vulkan/misc/cookie.hpp"
#include "quantumvk/vulkan/misc/limits.hpp"
#include "quantumvk/vulka... |
#ifdef HAVE_CONFIG_H
#include <../../config.h>
#endif
/*
* Copyright (c) 1990, 1991 Stanford University
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided
* that the above copyright notice appear in all copies and ... |
//
// Created by <NAME> on 2019-02-06.
//
#include <iostream>
#include <sstream>
#include <cmath>
#include <cstdlib>
#include <string>
#include <memory>
#include <vector>
#include <map>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
using std::cout;
using std::cin;
using std::ostream;
us... |
// ======================================================================================
// Copyright 2017 State Key Laboratory of Remote Sensing Science,
// Institute of Remote Sensing Science and Engineering, Beijing Normal University
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... |
#include "cmd_line.h"
#include "output_fstr.h"
#include <catboost/libs/algo/cv_data_partition.h>
#include <catboost/libs/algo/calc_fstr.h>
#include <catboost/libs/data/load_data.h>
#include <catboost/libs/helpers/mem_usage.h>
#include <catboost/libs/algo/train_model.h>
#include <catboost/libs/algo/params.h>
#include <... |
// Copyright (C) 2019 by <NAME>, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University ... |
/*
* FILE: run_tests.cpp
* AUTHORS: <NAME>
*
* Copyright (c) 2004 University of Glasgow
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must reta... |
#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
using namespace std;
typedef struct node {
int value;
struct node *dad;
struct node *left;
struct node *right;
} Node;
Node *root = NULL;
vector<int> elements;
int id;
int nulls;
void generate_vector(int size) {
for(in... |
/* rom.cpp - emulate a ROM in QBUS/UNIBUS IO page
Copyright (c) 2020, <NAME>, <EMAIL>, www.retrocmp.com
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must reta... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
#include "MD.h"
#include "MDRandomizer.h"
const uint32_t MDRandomizerClass::paramSelectMask[13] = {
// SELECT_FILTER
_BV32(MODEL_FLTF) | _BV32(MODEL_FLTW) | _BV32(MODEL_FLTQ),
// SELECT_AMD
_BV32(MODEL_AMD) | _BV32(MODEL_AMF),
// SELECT_EQ
_BV32(MODEL_EQF) | _BV32(MODEL_EQG),
// SELE... |
// -*- C++ -*-
//
// Package: PFTauDecayModeCutMultiplexer
// Class: PFTauDecayModeCutMultiplexer
//
/*
Description: Applies a different cut to a PFTauDiscriminator, depending on the
the reconstructed DecayMode (stored by RecoTauTag/RecoTau/PFTauDecayModeIndexProducer)
in PFTauD... |
/**
MIT License
Copyright (c) 2018 NVIDIA CORPORATION. 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 without restriction, including without limitation the rights
to use, co... |
#include <iomanip>
#include <iostream>
#pragma GCC optimize("Ofast")
#pragma GCC optimization ("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef string str;
typedef pair<ll,ll> pll;
typedef vector<ll> vl;
typedef vector<vector <ll> > vvl;
... |
#include <gtest/gtest.h>
#include "core/bits.h"
#include "core/io/iobuf.h"
#include "test_utils.h"
static const char *filename = "foo.bs";
TEST(BitStreamTestSuite, WriteBits)
{
FileBuf fp;
BitStream bs;
fp.open(filename, kFileWriteMode);
bs.open(&fp, 32768);
bs.putBits(15, 444); // Write 15 bi... |
/*
* Copyright (C) 2012 Samsung Electronics
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* ... |
// Copyright (c) 2012-2019 hors<<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, pub... |
#include <calc.hpp>
#include <vector>
#include <string>
#include <functional>
#include <cmath>
#include <regex>
#include <token.hpp>
#include <print_stl.hpp>
#include <error.hpp>
using namespace token;
static std::vector<std::string> tokenize(const std::string &expression) {
std::vector<std::string> result;
std::... |
#include <iostream>
#include <Windows.h>
#include <ctime>
#include <vector>
using namespace std;
enum ConsoleColor {
Black = 0,
Blue = 1,
Green = 2,
Cyan = 3,
Red = 4,
Magenta = 5,
Brown = 6,
LightGray = 7,
DarkGray = 8,
LightBlue = 9,
LightGreen = 10,
LightCyan = 11,
LightRed = 12,
LightMagenta = 13,
... |
// Copyright 2019 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... |
// Copyright (c) 2015 mogemimi. Distributed under the MIT license.
#include "HttpService.h"
#include "SlackClient.h"
#include "iTunesNowPlaying.h"
#include "TerminalHelper.h"
#include "somera/CommandLineParser.h"
#include "somera/StringHelper.h"
#include <iostream>
#include <thread>
#include <fstream>
#include <regex>... |
#include <ros/ros.h>
#include <nav_msgs/Path.h>
#include <nav_msgs/Odometry.h>
#include <ackermann_msgs/AckermannDrive.h>
#include <move_base_msgs/MoveBaseAction.h>
#include <actionlib/client/simple_action_client.h>
//#include <robotnik_pp_msgs/GoToActionGoal.h>
#include <iostream>
using namespace std;
// ---------... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... |
#include <QFile>
#include <QFileInfo>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QJsonArray>
#include <QBuffer>
#include "annotationmanager.h"
AnnotationManager::AnnotationManager(QObject *parent) : QObject(parent)
{
}
LabelCollector *AnnotationManager::labelCollector() const
{
... |
///////////////////////////////////////////////////////////////////////
// Name: BoundaryShapeManager.cpp
//
// *** INTERACTIVE DATA VISUALIZATION (IDV) PROPRIETARY INFORMATION ***
//
// Copyright (c) 2002-2003 IDV, Inc.
// All Rights Reserved.
//
// IDV, Inc.
// 1233 Washington St. Suite 610
//... |
#include "GViewApp.hpp"
using namespace GView::Type;
using namespace GView::Utils;
using namespace GView;
constexpr unsigned long long EXTENSION_EMPTY_HASH = 0xcbf29ce484222325ULL;
unsigned long long ExtensionToHash(std::string_view ext)
{
// use FNV algorithm ==> https://en.wikipedia.org/wiki/Fowler%E2%80%93Nol... |
#include "irods/fsckUtil.h"
#include "irods/rodsPath.h"
#include "irods/rodsErrorTable.h"
#include "irods/rodsLog.h"
#include "irods/miscUtil.h"
#include "irods/scanUtil.h"
#include "irods/checksum.h"
#include "irods/rcGlobalExtern.h"
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/convenience.h... |
/*******************************************************************\
Module:
Author: <NAME>
Date: August 2012
\*******************************************************************/
#include "run.h"
#ifdef _WIN32
#include <process.h>
#else
#include <cstring>
#include <unistd.h>
#include <cerrno>
#include <cstdio>... |
/*
* eval_basic_virtual.cpp
* Date: 2013-05-10
* Author: <NAME> (<EMAIL>)
*/
#define FUSION_MAX_VECTOR_SIZE 20
#include "parser.hpp"
#include "nodes.hpp"
#include "generate_data.hpp"
#include <gpcxx/eval/static_eval.hpp>
#include <gpcxx/generate/basic_generate_strategy.hpp>
#include <gpcxx/generate/uniform_symbo... |
#include "duckdb/main/client_context.hpp"
#include "duckdb/main/database.hpp"
#include "duckdb/parser/constraints/list.hpp"
#include "duckdb/parser/expression/cast_expression.hpp"
#include "duckdb/parser/statement/create_table_statement.hpp"
#include "duckdb/planner/binder.hpp"
#include "duckdb/planner/constraints/list... |
#include "CommonFunction.h"
#ifdef _WIN32
#include <windows.h>
std::string unified_path(const char* path)
{
char chpath[MAX_PATH];
GetModuleFileName(NULL, (LPSTR)chpath, sizeof(chpath));
std::string strPath = std::string(chpath);
strPath = strPath.substr(0,strPath.rfind("\\")+1);
return strPath + std... |
/*****************************************************************/
/* NAME: <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: main.cpp */
/* DATE: Dec 25th, 2015 ... |
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) <EMAIL>, Inc.
//-----------------------------------------------------------------------------
#include "core/dnet.h"
#include "game/gameConnection.h"
#include "game/gameBase.h"
#include "game/shapeBas... |
// Copyright 2017 Google 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
/*========================== begin_copyright_notice ============================
Copyright (c) 2000-2021 Intel Corporation
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, inc... |
/*
* Copyright 2012, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fs_attr.h>
#include <AutoDeleter.h>
static struct option const kLongOptio... |
/*
MIT License
Copyright (c) 2016-2017 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, ... |
// Software License Agreement (BSD-3-Clause)
//
// Copyright 2018 The University of North Carolina at Chapel Hill
//
// 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... |
/** @file Cube.cpp
*
* @brief Basic geometric object generator for rectangular prisms
*
* Copyright 2012-2013, <NAME>
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @author <NAME> (www.stewartghall.com)
* @date 12/31/2012
* @copyright Copyright 2... |
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/algorithm.h>
#include <CGAL/IO/OFF.h>
#include <CGAL/Polygon_mesh_processing/orientation.h>
#include <CGAL/Polygon_... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2010,2011,2012,2014,2017 by the GROMACS development team.
* Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed in the AUTHORS file i... |
// Copyright (c) 2019 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 law or agr... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
// Copyright 2018 The Dawn Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
//*****************************************************************************
// Copyright 2021 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.ap... |
// Copyright (c) 2013-2014, <NAME> <<EMAIL>>; part of Boda framework; see LICENSE
#include"boda_tu_base.H"
#include"nesi.H"
#include"str_util.H"
#include"pyif.H"
#include"octif.H"
#include"lexp.H"
#include"has_main.H"
#include"timers.H"
#include<ostream>
#include<iostream>
// boda.cc is the top level of control flow. ... |
//----------------------------------------------------------------------
// bidr_latlon: Given a standard latitude and longitude in a BIDR file,
// display the corresponding line and sample numbers.
//
// bidr_pixel: Given line and sample numbers in a BIDR file, display
// the correspondi... |
#include "config.h"
#include <unistd.h>
#include <phosphor-logging/elog.hpp>
#include <phosphor-logging/lg2.hpp>
#include <sdbusplus/bus.hpp>
#include <sdbusplus/exception.hpp>
#include <xyz/openbmc_project/Logging/Create/server.hpp>
#include <xyz/openbmc_project/Logging/Entry/server.hpp>
#include <cstdlib>
#include... |
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <iostream>
const size_t Size = 3e5 + 5;
template<class T> T max(const T &a, const T &b) {
return a > b? a : b;
}
template<class T> T min(const T &a, const T &b) {
return a < b? a : b;
}
template<class T> bool chkmin(T &a, const T &b) {
r... |
#include <cmath>
#include <cstdio>
#include <type_traits>
#include "spherecube.hpp"
#include "common.hpp"
template <typename FLOAT>
void latlon_to_sphere(FLOAT lat, FLOAT lon, FLOAT& u, FLOAT& v, FLOAT& w)
{
u = std::cos(lat) * std::cos(lon);
v = std::cos(lat) * std::sin(lon);
w = std::sin(lat);
}
temp... |
#include <configurator.h>
#include <RCSwitch.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <WiFiManager.h>
#include <ArduinoJson.h>
#define DEBUG false
/**
* This access point credentials used to start hub in access point mode
* and configure connection of hab as station to access point
*/
#defin... |
/******************************************************************************
* Name: asp_language (AspFrame class)
* Purpose: handling menu events of Psc1Frame class
*
* Author: JLP
* Version: 18/07/2015
******************************************************************************/
#include "asp... |
#include<iostream>
#include<opencv2\opencv.hpp>
#include<opencv2\highgui.hpp>
#include<opencv2\imgproc\imgproc.hpp>
using namespace std;
using namespace cv;
void DownSample(Mat &img1, Mat &img2)
{
int rows = img1.rows / 2;
int cols = img1.cols / 2;
int a;
int b;
for (a = 0; a < rows; a++) {
for (b = 0; b < cols... |
//
// Created by <NAME> - github.com/delimbetov - on 30.04.2021.
// Copyright (c) HAMMER OF THE GODS INC. - hotg.ai
//
#include <array>
#include <iostream>
#include <thread>
#include <vector>
#include <rune_vm/RuneVm.hpp>
// All logs are rerouted to the user-provided logger
struct StdoutLogger : public rune_vm::ILogg... |
// 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 in writi... |
/**********************************************
All Triangle Fuctions
**********************************************/
#include<stdio.h>
#include<math.h>
#define PI (2.*acos(0.))
#define dis(X1,Y1,X2,Y2) (sqrt((X1-X2)*(X1-X2) + (Y1-Y2)*(Y1-Y2)))
#define min(x,y) ((x<y)?(x):(y))
#define myabs(x) ((x>0)?(x)... |
#include "ir_generator.h"
Quaternion::Quaternion() {}
Quaternion::Quaternion(string op, string src1, string src2, string des) {
this->op = op;
this->src1 = src1;
this->src2 = src2;
this->des = des;
this->info[0] = {-1, false};
this->info[1] = {-1, false};
this->info[2] = {-1, false};
}
//... |
/*
Copyright (c) 2021, <NAME>
Antiprism - http://www.antiprism.com
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 t... |
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define gc getchar()
#define pc(x) putchar(x)
template<typename T> void scan(T &x){x = 0;bool _=0;T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x=_?-x:x;}
template<typename T> void print... |
#include <stdio.h>
#include "agg_trans_affine.h"
#include "agg_conv_stroke.h"
#include "agg_rasterizer_scanline_aa.h"
#include "agg_rendering_buffer.h"
#include "agg_scanline_u.h"
#include "agg_renderer_scanline.h"
#include "agg_gamma_lut.h"
#include "ctrl/agg_slider_ctrl.h"
#include "platform/agg_platform_support.h"
... |
#include "chunkmesh.hh"
#include "window.hh"
#include <glm/ext.hpp>
struct Vertex {
float x, y, z;
float ux, uy;
std::uint32_t data;
};
struct TriIndex {
GLuint a, b, c;
};
ChunkMesh::ChunkMesh(Chunk& chunk)
: chunk(chunk),
vertices(GL_ARRAY_BUFFER, false),
indices(GL_ELEMENT_ARRAY_BUFFER, false) {}
... |
#include <string>
#include <iostream>
#include <fstream>
#include <regex>
#include "vcfreader.h"
using namespace std;
const std::unordered_map<std::string, Value::Type> VcfReader::StringToTypeMap = {
{"String", Value::String},
{"Character", Value::String},
{"Integer", Value::Integer},
{"Flag", Value... |
#include <assert.h>
#include <pthread.h>
#include <zmq.hpp>
#include <unistd.h>
#include <iostream>
#include <rte_config.h>
#include <rte_ether.h>
#include "DPDKConnection.h"
#include "common.h"
#include "log.h"
#include "mutilate.h"
#include "dpdktcp.h"
/* Not used but must be defined */
struct scan_search_ctx sca... |
// Copyright (c) 2015-2017, RAPtor Developer Team
// License: Simplified BSD, http://opensource.org/licenses/BSD-2-Clause
#include "trilinos_wrapper.hpp"
Epetra_Vector* epetra_convert(raptor::ParVector& x_rap,
RAPtor_MPI_Comm comm_mat)
{
int rank;
MPI_Comm_rank(comm_mat, &rank);
Epe... |
/** \class BTaSkimLeptonJet
*
*
*
* \author <NAME>, FERMILAB
*
*/
#include <cmath>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "DataFormats/JetReco/interface/CaloJet.h"
#include "DataForm... |
//===========================================================================
/*
This file is part of the CHAI 3D visualization and haptics libraries.
Copyright (C) 2003-2010 by CHAI 3D. All rights reserved.
This library is free software; you can redistribute it and/or modify
it under the terms o... |
/*
* The MIT License (MIT)
* Copyright (c) 2018 <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... |
#define _CRT_SECURE_NO_WARNINGS
#include "stdafx.h"
#include<functional>
#include<vector>
#include<map>
#include<set>
#include<unordered_map>
#include<type_traits>
#include<iostream>
#include<utility>
#include<assert.h>
#include "lua_tinker.h"
#include "test.h"
int ff::s_val = 0;
int ff::s_ref = 0;
const int ff::s_... |
#include <queue>
#include <cstdio>
#include <string>
#include <iostream>
using namespace std;
/* Define */
#define SIZE 31
#define INF 987654321
#define BAN 9000
/* Inline Function */
template <class T>
void CopyArray(T * anArray1, T * anArray2, const int nMatrix)
{ for (int ii = 0; ii < nMatrix; ii++) { anArray1[ii]... |
#include "MusicController.h"
#include "RenkoFramework.h"
#include "AudioManager.h"
#include "AudioClock.h"
#include "Easing.h"
#include "Debug.h"
#include "game.h"
MusicController::MusicController(RenkoFramework* framework, AudioManager* audioManager) :
audioManager(0),
source(0),
group(0),
clip(0),
loopTime(0),... |
// General routines for Dalitz plot generation
//
// Author: <NAME> (2019)
// Affiliation: Joint Physics Analysis Center (JPAC)
// Email: <EMAIL>
// ---------------------------------------------------------------------------
#include "dalitz.hpp"
//----------------------------------------------... |
////////////////////////////////////////////////////////////////////////////////
//
// DgBoundedIDGG.cpp: DgBoundedIDGG class implementation
//
// Version 6.1 - <NAME>, 5/23/13
//
////////////////////////////////////////////////////////////////////////////////
#include <cstdint>
#include "DgBoundedIDGG.h"
#include "D... |
/*
* Copyright 2008 <NAME>, <EMAIL>
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "ConnectionInterface.h"
#include "ChannelInterface.h"
#include "FrameInterface.h"
#include <bluetooth/bdaddrUtils.h>
#include <bluetooth/HCI/btHCI_transport.h>
#include <bluetooth/HCI/btHCI_event.... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
/***************************************************************************
qgsalgorithmnultitingconstantbuffer.cpp
--------------------------
begin : February 2018
copyright : (C) 2018 by <NAME>
email : <EMAIL>
***... |
/*
*
* ______________.___. __________________ _____ .____ .____
* / _____/\__ | |/ _____/\_ ___ \ / _ \ | | | |
* \_____ \ / | |\_____ \ / \ \/ / /_\ \| | | |
* / \ \____ |/ \\ \____/ | \ |___| |___
* /_______ / / ______/____... |
/**
* Ball.cpp
* Implementation for a pool ball.
*
* @author <NAME>
* @version 1.0
* @since 2013-12-16
**/
#include "Ball.h"
/**
* Default constructor.
*
* @param number the number on the ball, 0 if the cue ball
**/
Ball::Ball(int number) : RADIUS(BALL_RADIUS), DIAMETER(2.0 * BALL_RADIUS), MASS(BALL_MASS), Pa... |
//######################################################################
//# Refiner Module
//#
//# Copyright (C) 2020 Siemens AG
//# SPDX-License-Identifier: MIT
//# Author 2020: This module has been developed by
//# <NAME> under supervision of Slobodan Ilic
//##############################... |
#include "Im2DRenderer.h"
#include <Engine/Common/ScopedPtr.h>
using namespace rh::engine;
Im2DRenderer::Im2DRenderer( const Im2DRendererInitParams ¶ms )
: mDeviceState( params.mDeviceState )
{
CreatePipelineLayout( params );
CreatePipeline( params );
CreateBuffers( params );
mCmdBufferCount =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.