text stringlengths 3.08k 22k |
|---|
#include<bits/stdc++.h>
// Constants are the integer part of the sines of integers (in radians) * 2^32.
const uint32_t k[64] =
{
0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee ,
0xf57c0faf, 0x4787c62a, 0xa8304613, 0xfd469501 ,
0x698098d8, 0x8b44f7af, 0xffff5bb1, 0x895cd7be ,
0x6b901122, 0xfd987193, 0xa679438e, 0x4... |
#include <HTMLViz.h>
#include <algorithm>
#include <unordered_map>
std::string sanitize_string(const std::string& str);
std::unordered_map<char, std::string> utf8_emoji_mapping(
{
{ 'v', u8"\U0001f447" },
{ '>', u8"\U0001f449" },
{ '<', u8"\U0001f448" },
{ '^', u... |
// Host Account Management
#include <glib.h> // g_option_context_new(), g_file_test(), etc...
#include <stdlib.h> // strtoll(), EXIT_SUCCESS
#include <syslog.h> // syslog()
#include <limits.h> // LINE_MAX, LLONG_MIN, LLONG_MAX
#include <errno.h> // errno, E... |
//=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
#include "snippetctrl.h"
SnippetCtrl::SnippetCtrl(wxWindow* parent, FloEditor* editor):wxPanel(parent),mEditor(editor) {
wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
mList = new wxListView(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_LIST);
sizer->Add(mList, 1, wxEXPAND);
SetSizerAndFit(sizer);
popul... |
/* Copyright 2018 <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 agreed to in writ... |
#define lua_c
#include "lprefix.hpp"
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.hpp"
#include "lauxlib.hpp"
#include "lualib.hpp"
#include <wrapper/LuaContext.hpp>
#define Lua_code " contract_global_variable={'ret',abc=1} \
a=0 b=1 \
... |
#include "board_state.h"
#include "action.h"
#include <queue>
#include <memory>
using namespace std;
BoardState::BoardState() : walls_(Matrix(8, 8)) {
player_positions_[0] = Vectori(4, 0);
player_positions_[1] = Vectori(4, 8);
player_wall_counts_[0] = 10;
player_wall_counts_[1] = 10;
distance_matr... |
#include <Arduino.h>
#include <Arduino_GFX_Library.h>
#include "DHTStable.h"
#if DEBUG
#include "avr8-stub.h"
#endif
// OLED Constants =====================================================================================
//
// SPI Wiring for OLED Display Pins on Arduino Nano
//
// SPI | Display Name | Wire co... |
//
// Created by alejandro on 27/09/16.
//
#include "headers/Recognizer.h"
#include "headers/utils.h"
#include <fstream>
#include <iostream>
#include <string>
#include <chrono>
using namespace chrono;
using namespace std;
using namespace cv;
/* Aux methods */
bool isConvex(const vector <Point2f>& scene_corners);
... |
#include "Etalonnage.h"
#include "Detection.h"
#include "utils.h"
Etalonnage::Etalonnage(Config *config) {
this->config = config;
}
JsonResult Etalonnage::run(const Mat &source) {
auto start = arig_utils::startTiming();
spdlog::info("ETALONNAGE {}", ++index);
Mat output1 = source.clone();
JsonRes... |
// For licensing and usage information, read docs/winui_license.txt
//****************************************************************************
// standard windows headers
#include <windows.h>
#include <ddraw.h>
// standard C headers
#include <stdio.h>
// MAME/MAMEUI headers
#include "directinput.h"
#include "dxd... |
#include "codify/codify.hpp"
int data_block_size = 1;
int data_block_offset = 1;
/** @readme Possible DECODE sample
*/
void read2(int argc, char* argv[]) {
if (argc < 2) {
std::cout << "expected: " << argv[0] << " <fname_video>" << std::endl;
return;
}
cv::VideoCapture vc(argv[1]);// "E:\\ImPACT\\record_2018-1... |
#include "quadsquare.h"
#include "aux_texture.h"
float SphereTransformRenderlevel = 0;
static void TerrainMakeActive( const TerrainTexture &text )
{
if (text.tex.t) {
GFXEnable( TEXTURE0 );
text.tex.t->MakeActive();
} else {
GFXDisable( TEXTURE0 );
}
GFXBlendMode( text.blendSrc... |
#include "UM.h"
#include <boost/container/flat_set.hpp>
#include <jde/Str.h>
#include <jde/io/File.h>
#include "../Settings.h"
#include "../db/DataSource.h"
#include "../db/Database.h"
#include "../db/GraphQL.h"
#include "../db/Syntax.h"
#define var const auto
namespace Jde
{
static const LogTag& _logLevel{ Logging:... |
/*
Copyright (c) 2003-2019 <NAME>.
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 3 of the License or
(at your option) any later version.
This program is distributed in the hop... |
#include "Hero.hpp"
#include "Misc.hpp"
#include "global.h"
#include "debug.h"
Hero :: Hero()
{
// int count1;
type = TYPE_HERO;
action = ACTION_IDLE_RIGHT;
velocity.x = 0;
velocity.y = 0;
minVelocity.x = 1;
minVelocity.y = 0;
maxVelocity.x ... |
#include "stdafx.h"
#include "Minimap.h"
#include "LoadShader.h"
#include <assert.h>
#define VERT_TOTAL 6
#define MINIMAP_V_SIZE (VERT_TOTAL * 3)
#define MINIMAP_N_SIZE (VERT_TOTAL * 3)
#define MINIMAP_T_SIZE (VERT_TOTAL * 2)
#define V_COORD_SZ 3
#define N_COORD_SZ 3
#define T_COORD_SZ 2
#define FLOAT_SZ sizeof(f... |
//========================================================================
// Zinc - Web Server
// Copyright (c) 2019, <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 witho... |
/* -------------------------------------------------------------------------- *
* Simbody(tm) *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... |
#include <math.h>
#include <string.h>
#include <algorithm>
#include <iostream>
#include <limits>
#include <vector>
#include "heuristics/maxcut/max_cut_solution.h"
#include "util/random.h"
// Empty solution
MaxCutSolution::MaxCutSolution(const MaxCutInstance& mi,
MaxCutHeuristic *heuristic,
int init... |
#include <fstream>
#include <iomanip>
#include <map>
#include <tuple>
#include <unordered_set>
#include <vector>
#include <dirent.h>
#include <inttypes.h>
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/lib/io/path.h"
#include "tensorflow/core/lib/strings/numbers.h"
#include "tensorflow/core/... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/***************************************************************************
video.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "emu.h"
#include "includes/redcla... |
//
// Created by sGenn on 28.02.2018.
//
#include "func.hpp"
/**
* size_t get_infile_length(std::ifstream *input_file)
* @param input_file
* @return the length of input_file
*/
size_t get_infile_length(std::ifstream *input_file) {
std::streampos begin,end;
input_file->seekg(0,input_file->beg);
begin = input_fi... |
#include "CollisionManager.h"
#include <cmath>
#include <stdlib.h>
#define PI 3.14159265
#define PLATFORM_HEIGHT 20
#define LEFT 0
#define RIGHT 1
#define TOP 2
#define BOTTOM 3
#define BARREL_CODE 'B'
#define CHARACTER_CODE 'C'
#define EMBER_CODE 'E'
#define FIRE_CODE 'F'
#define FLAME_CODE 'f'
#define MONKEY_CODE... |
#include "tracking.h"
#include <vector>
#include <iostream>
#include <chrono>
#include <thread>
// Sensors
float rDelta, lDelta, bDelta;
std::vector<double> encoders;
// Temp
float rDist, lDist, aDelta, rLast, lLast, halfA;
float bDist, bLast;
// Constants and macros
const float lrOffset = WHEELBASE/2.0f; // 9.5 inch ... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "helpers.h"
#include "json.hpp"
#include "spline.h"
// for convenience
using nlohmann::json;
using std::string;
using std::vector;
using ... |
#include <cmath>
#include <numeric>
#include <limits>
#include <random>
#include <sstream>
#include <algorithm>
#include <iomanip>
#include "base_model.h"
#include "gene_family_reconstructor.h"
#include "matrix_cache.h"
#include "gene_family.h"
#include "user_data.h"
#include "root_equilibrium_distribution.h"
#include... |
// Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers, [ ] developers.
// Licensed under the GNU Lesser General Public License. See LICENSE for details.
#include "KVBinaryOutputStream.hpp"
#include "KVBinaryCommon.hpp"
#include <cassert>
#include <iostream>
#include <stdexcept>
#incl... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "PatchAdvection.H"
#include "PatchAdvectionF_F.H"
#include "OldLoHi... |
// Copyright (c) 2021 by Rockchip Electronics Co., Ltd. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... |
#include "StatsTracker.hpp"
#include <iostream>
#include <cassert>
#include <cmath>
//
static void populateCdfQuantiles(map_type &sizeMap,
const unsigned totalCount, std::vector<int> &quantiles) {
const unsigned quantileNum(quantiles.size());
const float pFactor(1 / static_cast<float>(totalCount));
unsigned fil... |
#include <string.h>
#include <memory>
#include <string>
#include <unordered_set>
#include "benchmark/benchmark.h"
#include <brotli/encode.h>
#include "huf.h"
#include "lz4.h"
#include <snappy.h>
#include "zlib.h"
#include "zstd.h"
enum Compress
{
Brotli,
Huff0, // only for input size <= 128KiB
LZ4,
None, /... |
/*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
#pragma once
#include <cassert>
#include <functional>
#include <iostream>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
class ExceptionValue;
class FalseValue;
class FnValue;
class HashMapValue;
class IntegerValue;
class KeywordValue;
class ListValue;
class NilValue;
class String... |
// ------------------------------------ //
#include "SingleView.h"
#include "resources/DatabaseAction.h"
#include "resources/Image.h"
#include "resources/Tags.h"
#include "components/ImageListScroll.h"
#include "components/SuperViewer.h"
#include "components/TagEditor.h"
#include "Common.h"
#include "Database.h"
#in... |
#include "DIDeviceFactory.h"
#include <wbemidl.h>
#include <oleauto.h>
#include <wchar.h>
#ifndef SAFE_RELEASE
#define SAFE_RELEASE(x) \
if(x != NULL) \
{ \
x->Release(); \
x = NULL; \
}
#endif
//---------------------------------------------------------------... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2016 <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, ... |
/** @file serialise.cc
* @brief functions to convert Xapian objects to strings and back
*/
/* Copyright (C) 2006,2007,2008,2009,2010,2011,2014,2015,2017 <NAME>
*
* 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... |
#include <algorithm>
#include <iostream>
#include <fstream>
#include <limits>
#include <optional>
#include <sstream>
#include <vector>
auto get_inc_from_direction(const char direction) -> std::pair<int, int>
{
switch (direction)
{
case 'U':
return { 0, -1};
case 'D':
return { 0, 1};
case 'L':
return ... |
#include "Chapter12.h"
#include "Editor/UnrealEd/Public/UnrealEd.h"
#include "Editor/UnrealEd/Classes/Editor/UnrealEdEngine.h"
#include "Runtime/Online/HTTP/Public/HttpManager.h"
#include "Runtime/Online/HTTP/Public/HttpModule.h"
#include "Runtime/Online/HTTP/Public/HttpRetrySystem.h"
#include "Runtime/Online/HTTP/Pu... |
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */
/*
* Copyright (c) 1994-1997 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... |
/**
******************************************************************************
* @file BME280.cpp
* @author <NAME>
* @brief BME280 class implementation
******************************************************************************
*/
/* mbed Microcontroller Library
* Copyright (c) 2006-2020 AR... |
//
// Created by <NAME>.
//
// uncomment to disable assert()
// #define NDEBUG
#include <cassert>
#include <iostream>
#include <cstdio>
#include <iomanip>
#include <ios>
#include <sstream>
#include <fstream>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <array>
#... |
#include "deploy.h"
#include "MCMF.h"
using namespace std;
//C++整数规划+模拟退火方案
//通过调用alarm来设置计时器,然后继续做别的事情。当计时器计时到0时,信号发送,处理函数被调用。
void timer(int sig)
{
isExit = 0;
}
void deploy_server(char *topo[MAX_EDGE_NUM], int line_num, char *filename)
{
int TotalNeed;//所有消费节点总需求
int SeverCost;
stringstream r... |
#ifdef WIN32
#include <windows.h>
#endif
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <stdlib.h>
#include <ctime>
#include <memory>
#include <thread>
#include <map>
#include <future>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <traceur/core/kernel/basic.hpp... |
// Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved.
// http://getmoai.com
#include "pch.h"
#include <uslscore/USDeflateReader.h>
#include <uslscore/USZip.h>
//================================================================//
// USDeflateReader
//=======================================================... |
/*
W-Towers CUDA Implementation. Radio Astronomy.
This is an implementation of W-Towers, an algorithmic framework
for image-generation in radio astronomy. This framework was
first proposed by <NAME>.
Author: <NAME> <<EMAIL>>
Institution: University of Cambridge
*/
#include <iostream>
#include <cstdlib>
#include... |
#include "Cube.h"
Cube::Cube(GLfloat centerX, GLfloat centerY, GLfloat centerZ, GLfloat tallNess, GLfloat width, GLfloat length) {
SetCube(centerX, centerY, centerZ, 1, tallNess, width, length);
}
void Cube::SetCube(GLfloat centerX, GLfloat centerY, GLfloat centerZ, GLfloat edgeLength, GLfloat tallNess, GLfloat width... |
/**
* Copyright 2018 VMware
* 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 applica... |
#include "hashsha1.h"
#define SHA1CALC1(a, b, c, d, e, t, data) \
t = (b & (c ^ d) ^ d) + Rotate(a, 5) + e + data + 0x5a827999; \
b = Rotate(b, 30);
#define SHA1CALC2(a, b, c, d, e, t, data) \
t = (b ^ c ^ d) + Rotate(a, 5) + e + data + 0x6ed9eba1; \
b = Rotate(b, 30);
#define SHA1CALC3(a, b, c, d, e, ... |
/*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... |
/**
* particle_filter.cpp
*
* Created on: Jan 8, 2020
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include <limits>
#include "helper_functions.h"
using st... |
#include <cstdio>
#include <cmath>
#include <cstring>
#include <queue>
#include <algorithm>
using namespace std;
const double eps = 1e-8;
int read() {
int x = 0, f = 1; char ch = getchar();
while (ch < '0' || '9' < ch) { if (ch == '-') f = -1; ch = getchar(); }
while ('0' <= ch && ch <= '9') {x = x * 10 + c... |
/*
* Simple Tic Tac Toe Game.
* Compile : g++ TicTacToe.cpp
* Run : ./a.out
*/
#include <iostream>
#include <cstdlib>
#include <stdlib.h>
#include <windows.h>
using namespace std;
char board[10] = {'o', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
int check_win();
void board_status();
void gameplay(char, in... |
#include "lib/front_end/grpc/GrpcFrontEnd.h"
#include "lib/data/CameraModel.h"
#include <opencv2/core/core.hpp>
#include <opencv2/opencv.hpp>
#include <string>
#include "lib/util/Utility.h"
const std::string GrpcFrontEnd::none = "None";
GrpcFrontEnd::GrpcFrontEnd(int grpcServerAddr, unsigned int maxClients) {
_numCl... |
/*******************************************************************
** THIS FILE IS PART OF THE SPF (SPIN-PHONON-FERMION) **
** COMPUTER PROGRAM **
** **
** SPF VERSION 6.4 ... |
#include "gtest/gtest.h"
#include <PnC/DracoPnC/PredictionModule/DCMWalkingReference.hpp>
#include <PnC/DracoPnC/PredictionModule/DCMWalkingReferenceTrajectoryModule.hpp>
#include <Utils/IO/IOUtilities.hpp>
#include <Utils/Math/MathUtilities.hpp>
TEST(DCMReferenceTest, footsteps){
DCMWalkingReference dcm_reference;
... |
// <NAME>
// <EMAIL>
// #define X11 X11
#if defined __APPLE__ && !defined X11
#include <GLUT/glut.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#endif
#include <cmath>
#include <cstdio>
#include <cstring>
// #include <FreeImage.h>
#include <fstream>... |
//
// OscQueryServerMgr.cpp
// BasicSketch
//
// Created by <NAME> on 10/02/2018.
//
//
#include "OscQueryServerMgr.h"
#include <Poco/Net/HTTPServerResponse.h>
#include "ofxRemoteUIServer.h"
#include <Poco/Pipe.h>
using namespace std;
OscQueryServerMgr::OscQueryServerMgr(){}
void OscQueryServerMgr::setup() {
s... |
/**
* This file is part of the CernVM File System
*
* This tool signs a CernVM-FS manifest with an X.509 certificate.
*/
#include "cvmfs_config.h"
#include "swissknife_sign.h"
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <termios.h>
#include <unistd.h>
#include <cstdio>
#include <cst... |
#include <iostream>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/core/simd_intrinsics.hpp>
using namespace std;
using namespace cv;
const int N = 100005, K = 2000;
namespace
{
void conv_seq(Mat src, Mat &d... |
#include "UiLuaContext.h"
#include <chrono>
#include "plugs/SameBoyPlug.h"
#include "util/fs.h"
#include "util/DataBuffer.h"
#include "util/File.h"
#include "model/FileManager.h"
#include "util/base64enc.h"
#include "util/base64dec.h"
#include "config.h"
#include "platform/Menu.h"
#include "platform/Platform.h"
#in... |
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
/**
* \file WznmWrdbsDeploy.cpp
* Wznm operation processor - write database access library deployment scripts (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WZNMCMBD
#include <Wznmcmbd.h>
#else
... |
/*
* Copyright 2021 The Fraud Detection Framework Authors. 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
*
*... |
/*
Copyright (c) 2007 <NAME>. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... |
#include "j1Entities.h"
#include "j1EntityManager.h"
#include "j1Input.h"
#include "j1Map.h"
#include "j1Minimap.h"
j1Carrier::j1Carrier(float x, float y, int level, int team)
{
type = EntityType::CARRIER;
terrain = NodeType::WATER;
fog_range = 4;
iPoint tile = App->map->WorldToMap(x, y);
position = App->map->M... |
#include "SMTSolver.h"
#include <llvm/ADT/APInt.h>
#include <llvm/ADT/SmallString.h>
#include <llvm/Support/Debug.h>
#include <llvm/Support/raw_ostream.h>
#include <algorithm>
#include <assert.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
extern "C" {
#include <boolector/boolector.h>
}
using namespace ... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... |
/********************* */
/*! \file quant_equality_engine.cpp
** \verbatim
** Top contributors (to current version):
** <NAME>, <NAME>
** This file is part of the CVC4 project.
** Copyright (c) 2009-2016 by the authors listed in the file AUTHORS
** in the t... |
/* Portions copyright (c) 2006-2013 Stanford University and Simbios.
* Contributors: <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
* w... |
/*
* Copyright 2010-2012 <NAME> <<EMAIL>>
* Copyright 2012, 2013 <NAME> <<EMAIL>>
*
* 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
* no... |
#include "ClientSocket.h"
// Static constants
const std::string ClientSocket::SERVER_NOT_FULL = "OK"; // Server's response when there are free spots a client can join
const std::string ClientSocket::SERVER_FULL = "FULL"; // Server's response when there are no free spots, so a clie... |
/************************************************************************************
*
* @author Elmü
*
* This library has been tested with Desfire EV1 cards.
* It will surely not work with older Desfire cards (deprecated) because legacy authentication is not implemented.
* I have older code with lagacy aut... |
/* MikMod sound library
(c) 2004, <NAME> and others - see file AUTHORS for
complete list.
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 ... |
//
// Created by <NAME> on 05/02/2018.
//
#include "Physics.h"
void ScreenPosToWorldRay(
int mouseX, int mouseY, // Mouse position, in pixels, from bottom-left corner of the window
int screenWidth, int screenHeight, // Window size, in pixels
glm::mat4 ViewMatrix, //... |
/*
This file is part of TACS: The Toolkit for the Analysis of Composite
Structures, a parallel finite-element code for structural and
multidisciplinary design optimization.
Copyright (C) 2010 University of Toronto
Copyright (C) 2012 University of Michigan
Copyright (C) 2014 Georgia Tech Research Corporatio... |
// Copyright (C) 2016 DNAnexus, Inc.
//
// This file is part of dx-toolkit (DNAnexus platform client libraries).
//
// 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://w... |
/*
Copyright (c) 2012 <NAME>, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following d... |
/*
* Copyright (c) 2017, 2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* r... |
/* ----------------------------------------------------------------------
MR-MPI = MapReduce-MPI library
http://www.cs.sandia.gov/~sjplimp/mapreduce.html
<NAME>, <EMAIL>, Sandia National Laboratories
Copyright (2009) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporat... |
#include "system.h"
char* one_line ( char*, char* );
void indent ( char*, char* );
void display_text ( char_data*, char* );
/*
* SUPPORT FUNCTIONS
*/
void display_text( char_data* ch, char* input )
{
char line [ MAX_STRING_LENGTH ];
char buf [ MAX_STRIN... |
#include "Laptop/IMPHomePage.h"
#include "Directories.h"
#include "Laptop/CharProfile.h"
#include "Laptop/IMPVideoObjects.h"
#include "Laptop/Laptop.h"
#include "Laptop/LaptopSave.h"
#include "Local.h"
#include "MessageBoxScreen.h"
#include "SGP/ButtonSystem.h"
#include "SGP/English.h"
#include "SGP/Font.h"
#include "... |
/*
* Copyright 2014 BrewPi/<NAME>.
*
* This file is part of BrewPi.
*
* BrewPi is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... |
// Copyright by Potato Engine contributors. See accompanying License.txt for copyright details.
#include "d3d12_texture.h"
#include "d3d12_command_list.h"
#include "d3d12_desc_heap.h"
#include "d3d12_device.h"
#include "d3d12_platform.h"
#include "d3d12_utils.h"
#include "potato/runtime/assertion.h"
#include "potato/... |
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <vector>
#include <Eigen/Core>
#include <pcl/common/angles.h>
#include <pcl/common/distances.h>
#include <pcl/filters/random_sample.h>
#include <pcl/filters/uniform_sampling.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/io/ply_... |
/*
* =====================================================================================
*
* Filename: motor.cpp
*
* Description: Classe Motor - Motor Class
*
* Version: 0.1
* Created: 25/05/2020
* Revision: none
* Compiler: Arduino IDE 1.8.12
*
* Author: <NAME>,... |
#include "ConnectionGeometry.hpp"
#include <cmath>
#include "StyleCollection.hpp"
using QtNodes::ConnectionGeometry;
using QtNodes::PortType;
ConnectionGeometry::
ConnectionGeometry()
: _in(0, 0)
, _out(0, 0)
,_points({QPointF(),QPointF(),QPointF(),QPointF()})
//, _animationPhase(0)
, _lineWid... |
/**
* @filename : epd2in9b.cpp
* @brief : Implements for Dual-color e-paper library
* @author : <NAME>
*
* Copyright (C) Waveshare August 10 2017
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documnetation files (the "... |
/****************************************************************************
* Copyright (c) 2021, CEA
* 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 retai... |
// Copyright (c) 2017 Sony Corporation. 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 ... |
/************************************************************************************
Filename : CollisionPrimitive.cpp
Content : Generic collision class supporting ray / triangle intersection.
Created : September 10, 2014
Authors : <NAME>
Copyright : Copyright (c) Facebook Technologies, LL... |
#include <list>
#include <unordered_map>
#include <utility>
template <typename key_t /*primary key type*/, typename value_t /*primary value type*/,
template <class...> class map_t = std::unordered_map /*std::map, std::unordered_map, or a map type alias with your allocator*/,
template <class...> cla... |
//
// Compiler.cpp
// sj
//
// Created by <NAME> on 12/25/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include <sjc.h>
namespace fs = boost::filesystem;
typedef struct yy_buffer_state *YY_BUFFER_STATE;
struct YYLOCATION {
int l;
int c;
};
extern int yyparse(void*, Compiler*, CParseFile*);
ext... |
#include "obj_loader.h"
#include "loader.h"
#include "tiny_obj_loader.h"
#include <Log.h>
#include <algorithm>
#include <fstream>
#include <iterator>
#define TINYOBJLOADER_IMPLEMENTATION
#include <tiny_obj_loader.h>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/string_cast.hpp>
const std::string MODEL_DIR = "res... |
#include <iostream>
#include <fstream>
#include <bitset>
using namespace std;
struct mp3_header {
unsigned char version,
layer,
crc,
bitrate,
sampling_rate,
padding_bit,
private_bit,
channel_mode,
mode_extension,
copyright,
original_data,
emphasis;
};
mp3_header extract_header(unsigned char buf... |
/*
*
* Copyright (C) 2013 <NAME> <anwarelmakrahy[at]gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ver... |
// This file is part of comma, a generic and flexible library
// 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. Redistributions of source cod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.