text stringlengths 3.08k 12.5k |
|---|
#include "stdafx.h"
#include "../attractors.h"
#include "buddhabrot.h"
/*
Crude, but functional, little program to calculate the
So called "buddha mandelbrot" or "buddhabrot"
Please note that this is not supposed to be the most efficient
implementation, it is only intended to be a simple example with
p... |
#include <pass.h>
#include <iostream>
#include <fstream>
#include <iomanip>
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/IRBuilder.h"
using namespace llvm;
#define DEBUG_TYPE "findInstruction"
#define findInstructionPassLog(M) LLVM_DEBUG(dbgs() << "FindInstructionPass: " << M << "\n")
#define oprint(s) (outs()... |
//--------------------------------------------------------------------------------
// This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed
// under the MIT License, available in the root of this distribution and
// at the following URL:
//
// http://www.opensource.org/licenses/mit-license.ph... |
//
// Created by <NAME> on 09/10/15.
//
#include <future>
#include <netdb.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <iostream>
#include <ifaddrs.h>
#include <cstring>
#include <unistd.h>
const char* mcastaddr = "fc00:db20:35b:7399::5";
const short PORT = 9877;
#define E(expr) CHECK((... |
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... |
// Copyright 2013 <NAME>
// This program converts a set of images to a leveldb by storing them as DatumPosNeg
// proto buffers.
// Usage:
// convert_imageset ROOTFOLDER/ LISTFILE DB_NAME [0/1]
// where ROOTFOLDER is the root folder that holds all the images, and LISTFILE
// should be a list of files as well as their... |
#include "st7789.hpp"
#include <cstdlib>
#include <math.h>
#include "hardware/dma.h"
#include "hardware/pwm.h"
//Credits: pimoroni
void ST7789::setup(uint16_t _width, uint16_t _height, uint16_t *_frame_buffer, spi_inst_t *_spi,
int8_t _cs, int8_t _dc, int8_t _sck, int8_t _mosi, int8_t _rst, int8_t _bl,... |
/*******************************************************************************
* Copyright (C) 2009-2015 Intel Corporation. All Rights Reserved.
* The information and material ("Material") provided below is owned by Intel
* Corporation or its suppliers or licensors, and title to such Material remains
* with Intel... |
#include <iostream>
#include <string>
#include <cstdio>
#include <sstream>
#include <cstring>
using namespace std;
bool operator== (string s1, string s2){
return (strcmp(s1.c_str(), s2.c_str()) == 0);
}
string itostr(int i){
stringstream out;
out << i;
string s = out.str();
return s;
}
int strtoi(string s){
... |
/**
* @file main.cpp
* @author <NAME>
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 <NAME>
* @date Mar 2015
* @brief
*/
#include <random>
//#define BLYNK_DEBUG
#define BLYNK_PRINT stdout
#ifdef RASPBERRY
#include <BlynkApiWiringPi.h>
#else... |
/*
* Copyright 2014 RWTH Aachen University. All rights reserved.
*
* Licensed under the RWTH LM License (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an ... |
/*******************************************************************************
* Hardware.cpp
*
*
*******************************************************************************/
#include <avr/io.h>
#include "Hardware.h"
#include <util/delay.h>
void hwr_InitPorts()
{
// PORTA use for menu but... |
/*
* This file is part of Healpix_cxx.
*
* Healpix_cxx 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.
*
* Healpix_cxx is... |
/*
* fam_dump_dataitem.cpp
* Copyright (c) 2019 Hewlett Packard Enterprise Development, LP. 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 abo... |
#ifndef WIN32
#include <libgen.h>
#include <unistd.h>
#else
#include <io.h>
#endif
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <stdlib.h>
#include "SVGSystem.h"
#include "SVGDevice.h"
#include "SVGFont.h"
#include "GUIDOParse.h"
#include "GUIDOEngine.h"
using namespace std;... |
#include "GenHFBFrames.hpp"
#include "Config.hpp" // for Config
#include "StageFactory.hpp" // for REGISTER_KOTEKAN_STAGE, StageMakerTemplate
#include "Telescope.hpp" // for stream_t
#include "buffer.h" // for allocate_new_metadata_object, mark_frame_full, register_pr...
#include "chimeMetadat... |
#include "eal/lmice_eal_time.h"
/** service */
#include "include/service_logging.h"
#include "include/trader_femas2_emulator.h"
#include "include/trader_femas2_spi.h"
typedef lmice::lm_worker_board board_type;
board_type* g_board = nullptr;
/** global function */
void print_usage(void);
int main(int argc, char* a... |
#include <vector>
#include <algorithm>
#include <random>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <chrono>
#include "../include/farray1.hpp"
#include "../tests/test_classes.hpp"
using namespace std;
using namespace std::chrono;
using namespace Farray1Direct;
template<typename T, getRandom<... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* 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
* ... |
#include <ros/ros.h>
#include <ros/duration.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/Pose2D.h>
#include <mavros_msgs/CommandBool.h>
#include <mavros_msgs/SetMode.h>
#include <mavros_msgs/State.h>
#include <mavros_msgs/PositionTarget.h>
#include <mavros_msgs/CommandTOL.h>
#include <nav_msgs/O... |
//
// Created by Golfer on 2020/7/19.
//
#include <cstdio>
#include <queue>
#include <vector>
#include <set>
#include <cmath>
using namespace std;
//class Solution {
//public:
// int numIslands(vector<vector<char>>& grid) {
// int n = grid.size();
// int m = grid[0].size();
// int first_land... |
/**
* Usage: ./server server_port worker_count
*
* Creates a server listening on `server_port` that accepts payloads from
* clients containing a hash of a rubik cube. The server finds the moves
* necessary to solve the cube and sends them back to the client.
*
* The server creates 'worker_count' threads to handl... |
// Trader.cpp
// Main algo logic
#include "Trader.hpp"
#include "../tools/FileReadingUtilities.hpp"
#include "../tools/FileWritingUtilities.hpp"
#include "../tools/NetworkingUtilities.hpp"
#include "../tools/PreprocessorOptions.hpp"
#include "../tools/Authentication.hpp"
#include "../tools/JSONUtilities.hpp"
#include... |
// -*- c++ -*-
/*
* Copyright (c) 2010-2012, <NAME>
* All rights reserved.
*
* ndarray is distributed under a simple BSD-like license;
* see the LICENSE file that should be present in the root
* of the source distribution, or alternately available at:
* https://github.com/ndarray/ndarray
*/
#include "ndarray/ei... |
/**
* \file Err.cpp
* error functionality (implementation)
* \copyright (C) 2017-2020 MPSI Technologies GmbH
* \author <NAME>
* \date created: 29 Apr 2017
*/
#include "Err.h"
using namespace std;
using namespace Sbecore;
using namespace Xmlio;
/******************************************************************... |
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2024-08-24
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
#include "cbase.h"
#include "openal.h"
#include "openal_oggsample.h"
#include "KeyValues.h"
// We are declaring some utility functions in order to help ogg know how to use
// the Source engine's filesystem functionality instead of standard I/O methods.
size_t vorbis_read_func(void *ptr, size_t size, size_t nmemb, void... |
/*******************************************************************************
* Copyright 2018 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.o... |
/**
* Copyright 2020 @author tjgurwara99
* @file
*
* A basic implementation of Miller-Rabin primality test.
*/
#include <cassert>
#include <iostream>
#include <random>
#include <vector>
/**
* Function to give a binary representation of a number in reverse order
* @param num integer number that we want to conve... |
#include <elastos.h>
#include <eltypes.h>
#include <stdio.h>
#include <elastos/StringBuilder.h>
//#include <elastos/IntegralToString.h>
using namespace Elastos;
using namespace Elastos::Core;
void testStringBuilder()
{
printf("==== Enter testStringBuilder ====\n");
printf("\n === Construct === \n");
Str... |
#include "tensorNet.h"
#include <NvUffParser.h>
#include <cuda_runtime.h>
using namespace nvuffparser;
using namespace nvinfer1;
#define MAX_WORKSPACE (1 << 30)
size_t getBufferSize(Dims d, DataType t)
{
size_t size = 1;
for(size_t i=0; i<d.nbDims; i++)
size*= d.d[i];
switch (t) {
... |
#include <std_c++.h>
#include <CNascom/CNascom.h>
#include <CArgs/CArgs.h>
#include <CXLib/CXMachine.h>
#include <CXLib/CXWindow.h>
#include <CXLib/CXImage.h>
#include <CXLibPixelRenderer/CXLibPixelRenderer.h>
#include <CAtExit/CAtExit.h>
#include <COS/COS.h>
struct CNascomXScreen : public CZ80Screen {
typedef map<u... |
#include <iostream>
#include <boost/tokenizer.hpp>
#include <boost/log/trivial.hpp>
/* required for string case insensitive comparison */
#include <boost/algorithm/string/predicate.hpp>
/*
* For the boost builtin parser.
*/
#include <boost/config/warning_disable.hpp>
#include <boost/spirit/include/qi.hpp>
#include ... |
/*************************************************************************/
/* position_2d.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* echo-server.cpp
* echo server with libev
*
* */
#include <ev++.h>
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <array>
#include <iomanip>
#include <iostream>
#include <map>
#include <memory>
#in... |
/*Underwater Object Detection involving color correction algorithm
Author : <NAME>*/
#include<opencv2/opencv.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
using namespace cv;
using namespace std;
double mul = 1;
int iter = 10; //iterations required for c... |
// APPLICATION SOLAR - Text3D Source
// COMPUTER GRAPHICS WiSe 17/18 - Assignments
// <NAME>. (115853)
// <NAME>. (116610)
#include "text_3D.hpp"
Text3D::Text3D(std::string text, std::shared_ptr<Font> font, glm::fvec3 pos, glm::fvec3 color, unsigned int winWidth, unsigned int winHeight)
: Text(text, font, pos, col... |
#include <iostream>
#include <vector>
#include <memory>
#include <thread>
#include <functional>
#include <fstream>
#include <string>
#include <stdexcept>
#include <chrono>
using namespace std;
using namespace std::chrono;
struct matrix {
int size;
vector<shared_ptr<int>> data;
matrix(){}
void fill(... |
#include "libfbjs/node.hpp"
#include <iostream>
#include <string.h>
#include <map>
using namespace fbjs;
using namespace std;
typedef map<string, int> symbol_t;
#define for_nodes(p, i) \
for (node_list_t::iterator i = (p)->childNodes().begin(); \
i != (p)->childNodes().end(); \
... |
/*
To be used with M5Stick with or without the Wiimote.
Use Chataigne file: IMU_Stick.noisette
M5 Stick resolution: 80x160
*/
#include <Arduino.h>
#include <M5StickC.h>
#include <WiFi.h>
#include <WiFiUdp.h>
#include <OSCMessage.h>
#include <OSCBundle.h>
#include <OSCData.h>
#include <NintendoExtensionCtrl.h>
#include... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
stop = 0;
}
MainWindow::~MainWindow()
{
delete ui;
}
// 设置网卡混杂模式
void MainWindow::set_promiscuous_mode(char *interface_name) {
int fd;
... |
// Copyright (c) 2013
// <NAME> (University of Wisconsin-Madison)
// <EMAIL>
//
// This file is part of REF-EVAL.
//
// REF-EVAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the Licens... |
#include <cstdio>
#include <celerity.h>
int len_str1 = 100, len_str2 = 100;
template <typename T>
void init_zero(celerity::distr_queue& queue, celerity::buffer<T, 1> buf) {
queue.submit([=](celerity::handler& cgh) {
auto dw_buf = buf.template get_access<cl::sycl::access::mode::discard_write>(cgh, celerit... |
#include <glm/vec3.hpp>
#include <glm/geometric.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "FramePass.h"
#include "wrappers/AllWrappers.h"
using glm::vec3;
static const vec3 camera_position{0, 0, 1};
static const vec3 direction{0, 0, -1};
static const vec3 up{0, 1, 0};
static const vec3 right{1, 0, 0};
te... |
/***
*
* Fast primality check with Miller Rabin
*
* Uses the deterministic variant of Miller Rabin
* For more details, check https://miller-rabin.appspot.com/
*
* Complexity: O(24) + O(7 * log n)
* Or, O(24) + O(4 * log n) when n ≤ INT_MAX
*
* For large random numbers not exceeding 2^63, it can process 2*10^6... |
/*
* Copyright (c) 2016-2019 <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 the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial appli... |
#include "ps2_mouse.h"
#include "kernel.h"
#include "liumos.h"
PS2MouseController* PS2MouseController::mouse_ctrl_;
constexpr uint16_t kIOPortKeyboardStatus = 0x0064;
constexpr uint16_t kIOPortKeyboardCmd = 0x0064;
constexpr uint8_t kKBCStatusNotReady = 0x02;
constexpr uint8_t kKBCCmdPrefixSendToMouse = 0xD4;
constex... |
#include "interfejs.h"
#include "konfiguracja.h"
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <ctime>
Interfejs::Interfejs(const char *nazwa_pliku)
{
//Inicjalizacje
maxCzas = INT_MAX; //Poki co nie znalezlismy lepszego rozwiazania niz nieskonczonosc
zb... |
#include "Planet.h"
#include <math.h>
Planet::Planet(btDiscreteDynamicsWorld* worldN, glm::vec3 offset)
{
translate = offset;
isGhost = true;
rotateAngle = 0;
rotateAxisAngle = rand() % 360;
std::normal_distribution<float> rotateDistro(.05, .2);
rotateRate = GetDistribution(rotateDistro);
orbitAngle = 0;
std... |
#include <NTPClient.h>
#include <WiFiUdp.h>
#include <Wire.h> // incluye libreria para interfaz I2C
#include <RTClib.h> // incluye libreria para el manejo del modulo RTC
WiFiUDP ntpUDP; // Cliente NTP
NTPClient timeClient(ntpUDP); // para obtener tiempo actual
RTC_DS1307 rtc; // crea obj... |
#include <gecode/string.hh>
#include <gecode/driver.hh>
using namespace Gecode;
using namespace String;
class StringOptions : public Options {
public:
int N;
StringOptions(const char* s, int n): Options(s), N(n) {
this->c_d(1);
}
};
class Benchmark : public Script {
IntVarArray int_vars;
StringVar... |
#include "ofApp.h"
void ofApp::setup() {
ofSetWindowShape(1280, 800);
ccv.setup("image-net-2012.sqlite3");
grab.initGrabber(640, 480);
}
void ofApp::update() {
if (inputMode == 0 && ccv.isLoaded()) {
grab.update();
ccv.encode(grab, ccv.numLayers());
}
}
void ofApp::draw() {
o... |
// ADMINISTRACIÓN DE UN ÁRBOL BINARIO DE BÚSQUEDA
// <NAME> 00002521
#include <iostream>
using namespace std;
struct nodo{
int dato;
nodo *hijoIzq; // Puntero al subárbol izquierdo.
nodo *hijoDer; // Puntero al subárbol derecho.
};
class ABB{
private:
nodo *pAbb;
pu... |
/**
* Copyright (c) 2017 Melown Technologies SE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... |
/**
* ****** COPS v7 Emulator - Open Source ******
* Copyright (C) 2012 - 2014 <NAME>
*
* Please read the WARNING, DISCLAIMER and PATENTS
* sections in the LICENSE file.
*/
#include "msgplayer.h"
#include "stringpacker.h"
#include "player.h"
#include "monster.h"
#include <string.h>
MsgPlayer :: MsgPlayer(const ... |
/* dof_renderer.hpp.
*
* Written by: <NAME>.
*
*
* This file contains the source of the DepthOfFieldRenderer class,
* which is an implementation of a simple layered depth of field
* rendering algorithm based on Gaussian blurring.
*/
#include "../include/dof_renderer.hpp"
static void PrintPixelValue(int event... |
#include <minlib.h>
#include "events.h"
#include "keyboard.h"
// Dimensions
constexpr unsigned int nWidth = 600;
constexpr unsigned int nHeight = 600;
constexpr unsigned int nTilesPerDimension = 20;
constexpr unsigned int nTileSize = nWidth / nTilesPerDimension;
// Colours
constexpr unsigned int cEmpty = Graphics::cP... |
#include <cstdio>
#include <cstdlib>
#include <list>
#include <fstream>
#include <iostream>
#include <sstream>
#include <cstring>
#include <random>
#include <unordered_map>
#include <stdio.h>
#include <stdlib.h>
#include <sys/timeb.h>
#include <cmath>
#include "../QmaxIn.hpp"
#include "../HeapIn.hpp"
#include "../Ski... |
#include "Mesher3D.h"
#include "MeshFlow3D.h"
#include "MeshFlowMT.h"
using namespace generic;
using namespace emesh;
Mesher3D::Mesher3D()
{
std::string dataPath = filesystem::CurrentPath() + GENERIC_FOLDER_SEPS + "thirdpart" + GENERIC_FOLDER_SEPS + "internal" + GENERIC_FOLDER_SEPS + "testdata";
// std::string... |
#include "pnc/whole_body_controllers/managers/end_effector_trajectory_manager.hpp"
EndEffectorTrajectoryManager::EndEffectorTrajectoryManager(
Task *_pos_task, Task *_ori_task, RobotSystem *_robot) {
util::PrettyConstructor(2, "TrajectoryManager: End-effector");
robot_ = _robot;
pos_task_ = _pos_task;
o... |
#include "../include/debugging.h"
#include "../include/maxproduct.h"
#include "../include/testing.h"
#include <iostream>
#include <string>
namespace {
const std::string hpcString{
"37665812358859416220545400502284475141627778694123"
"07699482907769113268717216818322831603491835999456"
"015306915009196661... |
// atcoder/abl/E/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << ","... |
#include "MainGame.h"
#include <conio.h>
#include <iostream>
#include <string>
MainGame::MainGame()
{
score1 = 0;
score2 = 0;
isDone = false;
}
void MainGame::run()
{
std::string input;
std::cout << "\t\t\t\t\tSELECT GAME MODE\n\n";
std::cout << "+ + + + + + + + + + + + + + + + + + + + + + ... |
//
// RoadFinder.cpp
// road-discovery: deploy_test:gneti
//
// Created by <NAME> on 18/4/8.
//
#include "RoadFinder.h"
RoadFinder::RoadFinder(AerialMap &am, string model, string weights):aerialMap(am){
// Init caffe model
// Logging before InitGoogleLogging() is written to STDERR
net.reset(new Net<fl... |
/* audio/WavSampleStorage.cpp
*
* This file is part of AFV-Native.
*
* Copyright (c) 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 copyr... |
// This file is part of Notepad++ project
// Copyright (C)2003 <NAME> <<EMAIL>>
//
// 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... |
// @(#)lib/base:$Id$
// Author: <NAME> 18/11/2017
/*************************************************************************
* Copyright (C) 2017-2018, <NAME>. *
* All rights reserved. *
* ... |
/*!
* \file BLDCM-frontend.cpp
* \name BLDCM-frontend.cpp - Arduino library to control Infineon's BLDC Motor Control Shield with Tle9563
* \author Infineon Technologies AG
* \copyright 2020-2021 Infineon Technologies AG
* \version 1.0.0
* \brief This library includes functions... |
#include <iostream>
#include <chrono>
#include <thread>
#include <SDL.h>
#include <GL/glew.h>
#include "imgui.h"
#include "imgui_impl_sdl.h"
#include "imgui_impl_opengl3.h"
#include "imfilebrowser.h"
#include "panaroiacontroller.h"
void displayGameWindow(PanaroiaController &controller);
void displayKeypad(PanaroiaCo... |
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include <stdint.h>
#include <time.h>
#include "at86rf212/at86rf212.hpp"
#include "at86rf212/at86rf212_regs.h"
#include "at86rf212/at86rf212_defs.h"
#include "mock_spi.hpp"
#include "usbthing/usbthing.h"
#include "usbthing_bindings.h"
using namespace AT86RF212;
us... |
/*
* Copyright 2015 <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
/* dbesk1.f -- translated by f2c (version 20100827).
This file no longer depends on f2c.
*/
#include "slatec-internal.hpp"
/* Table of constant values */
static integer const c__3 = 3;
static integer const c__16 = 16;
static integer const c__2 = 2;
static integer const c__1 = 1;
/* Initialized data */
static do... |
#include "EffectLayer.h"
USING_NS_CC;
//////////////////////////////////////////////////////////////////////////
//! _ArrowData
static inline float bezierat( float a, float b, float c, float d, float t )
{
return (powf(1-t,3) * a +
3*t*(powf(1-t,2))*b +
3*powf(t,2)*(1-t)*c +
... |
#include "SQLite/SQLite.h"
#include "SQLite/Field.h"
#include "Account.h"
#include <iostream>
using namespace std;
namespace bs = beesoft::sqlite;
const char* const CreateAccount =
"CREATE TABLE account ("
"id INTEGER PRIMARY KEY,"
"name TEXT NOT NULL COLLATE NOCASE,"
"is_default INTEG... |
//
// Created by maros on 16/09/2021.
//
#include "assets_modder.hpp"
#include "main/helpers/filesystem.hpp"
#include <imgui.h>
void renderPakContents(const assets::PakContents& contents) {
ImGui::Begin("Pak Contents");
if(ImGui::CollapsingHeader("File header", ImGuiTreeNodeFlags_DefaultOpen)) {
c... |
#include <stdlib.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <memory>
#include <vector>
#include "PMTimeSeries.h"
#include "seispp.h"
#include "ThreeComponentSeismogram.h"
#include "PfStyleMetadata.h"
#include "StreamObjectReader.h"
#include "StreamObjectWriter.h"
using namespace std;
using nam... |
/*
* See header file for a description of this class.
*
* \author <NAME> INFN Padova
*
*/
//-----------------------
// This Class' Header --
//-----------------------
#include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHBuToJPsiKBuilder.h"
//-------------------------------
// Collaborating Class Headers --... |
/*
Alice and Bob need to send secret messages to each other and are discussing ways to encode their messages:
Alice: “Let’s just use a very simple code: We’ll assign ‘A’ the code word 1, ‘B’ will be 2, and so on down to ‘Z’ being assigned 26.”
Bob: “That’s a stupid code, Alice. Suppose I send you the word ‘BEAN’ encod... |
// Copyright 2018 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.
// This binary generates a Huffman encoded trie from the top domain skeleton
// list. The keys of the trie are skeletons and the values are the correspond... |
/* Libraries
libcugl
libglut32
libopeng32
libglu32
*/
#include <cassert>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <vector>
#include "cugl.h"
#include <GL/glut.h>
using namespace std;
using namespace cugl;
int windowWidth = 800;
int window... |
#include "neuon/neuon_c.h"
#include "neuon_cxx.h"
#include "configuration.h"
#include "composer.h"
#include "speech_detection.h"
#include "face_detection.h"
#include "model.h"
#include "tensorflow_api.h"
#include "tensorflow_static.h"
#include "license.h"
#include "demo.h"
#include "log.h"
#include "birthday.h"
#inc... |
/* TestEnum.cpp --
*
* Copyright (c) 2014, <NAME> <lex at chou dot it>
* 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 copyrigh... |
#include <stdio.h>
#include "connector.h"
#include "neuron.h"
#include "layer.h"
#include <assert.h>
/* ---- "theReality" ----- */
double theReality (double x1, double x2) {
if( x1 >= 50.0) {
if(x2 >= 50.0) {
return 0.3;
} else {
return 0.5;
}
} else {
if(x2 >= 50.0)... |
#include "core.h"
#include "wbcomprosaanchor.h"
#include "wbcomprosatransform.h"
#include "ray.h"
#include "collisioninfo.h"
#include "rosaworld.h"
#include "configmanager.h"
#include "idatastream.h"
#include "wbeventmanager.h"
#include "matrix.h"
WBCompRosaAnchor::WBCompRosaAnchor()
: m_IsAnchored( false )
, m_Anchor... |
/**
* Copyright 2016 neurodata (http://neurodata.io/)
* Written by <NAME> (<EMAIL>)
*
* This file is part of knor
*
* 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.... |
/* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the License.
This program is distributed in the hop... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2009-2012, <NAME>, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
#include <cstdio>
#include <cstdint>
#include <cstring>
#include <cassert>
#include <stdlib.h>
#include <vednn.h>
#include "kernel.h"
REGISTER_KERNEL("Conv2DBackpropFilter", "conv2d_backprop_filter");
extern "C" {
int conv2d_backprop_filter(const void* arg, size_t len);
}
struct TensorParam {
int w,h,c,n ... |
/*!
* @file solver_config.cpp
* @author <NAME>
* @date 22.07.2020
* @version 1.0
* @brief description
*/
#include <cmath>
#include <iostream>
#include "mppi/core/config.h"
using namespace mppi;
bool Config::init_from_file(const std::string& file) {
parsing_error = false;
YAML::Node config;
... |
/*
* Copyright 1996 University Corporation for Atmospheric Research
* See ../COPYRIGHT file for copying and redistribution conditions.
*/
/* $Id: timeunits.cc,v 1.2 2010/02/04 05:24:54 dicast Exp $ */
#include "log/log.hh"
#include "timeunits.h"
#include "product_data.h"
extern Log *logFile;
/*
* Name used ... |
/****************************************************************************
* ==> TSP_Application -----------------------------------------------------*
****************************************************************************
* Description: The main application class *
* Devel... |
#include "lstmsdparser/listbased.h"
ListBased::ListBased() {}
ListBased::~ListBased() {}
// return if w1 is one head of w0
bool ListBased::has_head(int w0, int w1){
if (w0 <= 0) return false;
for (auto w : graph[w0 - 1]){
if (w.first == w1 - 1)
return true;
}
return false;
}
bool ListBased::has_un... |
// Copyright (c) 2006-2008 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.
// This is a gTest-based test that runs the Selenium Core testsuite in Chrome
// using the UITest automation. The number of total and failed tes... |
/* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain soft... |
//
// Tizen C++ SDK
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Flora License, Version 1.1 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://floralicense.org/license
//
// Unless required by app... |
#include "diffusion_solver.h"
#include "chi_log.h"
extern ChiLog& chi_log;
//###################################################################
/**Assembles PWLC matrix for general cells.*/
void chi_diffusion::Solver::CFEM_Assemble_A_and_b(chi_mesh::Cell& cell,
int g... |
/*
Recursive implementation of the Floyd-Warshall algorithm using tbb:task_group.
command line arguments: N, B, T
N = size of graph
B = size of submatrix when recursion stops
T = number of threads
works only for N, B = 2^k
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <mat... |
/**
@file MeshAlgWeld.cpp
The MeshAlg::computeWeld method.
@maintainer <NAME>, http://graphics.cs.williams.edu
@created 2003-10-22
@edited 2005-02-24
Copyright 2000-2003, <NAME>.
All rights reserved.
*/
#include "G3D/MeshAlg.h"
#include "G3D/Table.h"
#include "G3D/Set.h"
namespace G3D {
namespace... |
#include <cond/eval.h>
#include <cond/util.h>
#include <eval.h>
#include <parserCore.h>
#include <parserTypes.h>
#include <stmtProcessor.h>
#include <syntaxError.h>
#include <util.h>
#include <primary/all.hpp>
using namespace synErr;
using namespace parserTypes;
void stmtProcessor::For(parserCore *that, std::wstring... |
#include "s3fs.hpp"
#include "crypto.hpp"
#include "guinsoodb.hpp"
using namespace guinsoodb;
static HeaderMap create_s3_get_header(std::string url, std::string host, std::string region, std::string service,
std::string method, std::string access_key_id, std::string secret_access... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.