text stringlengths 5.71k 33.7k |
|---|
#include <GL/glut.h>
#include <vector>
#include <ctime>
#include <iostream>
using namespace std;
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h> // inet_aton
#include <pthrea... |
#include "StdAfx.h"
#include "CmIluImgs.h"
void CmIluImgs::ImgsOptions::Initial(CStr &wkDir)
{
_w = 200, _H = 2800;
_inDir = wkDir + "/Sal/";
_outDir = wkDir + "/Supp/";
_texName = wkDir + "SupFig.tex";
}
Mat CmIluImgs::Retreival(CStr wkDir, vector<vecM> &subImgs, const char* nameW[], int H, int W)
{
bool toRow ... |
#include "MirrorPlasma.hpp"
#include "PlasmaPhysics.hpp"
#include "AtomicPhysics.hpp"
#include <cmath>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <boost/math/quadrature/gauss_kronrod.hpp>
Species Electron{ .type = Species::Electron, .Charge = -1, .Mass =... |
#include <windows.h>
#include <winnt.h>
#include <imagehlp.h>
#include <stdio.h>
#include <stdlib.h>
LOADED_IMAGE Image;
int __cdecl CompareNames (const void *pv1, const void *pv2)
{
return(strcmp((const char *)pv1, *(const char **)pv2));
}
char *rgszBetaAPIs[] = {
"ABProviderInit",
"AddIn... |
/*
Lightweight Automated Planning Toolkit
Copyright (C) 2012
<NAME> <<EMAIL>>
<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 3 of the License, or
(at your option) any... |
/* Copyright (c) 2007-2013, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file dnsserv.c \brief Implements client-side DNS proxy server code. Note:
* this is the DNS Server code, not the Server DNS code. Confused? This code
* runs on client-side, and acts as a DNS server. The code ... |
#include <iostream>
#include <cmath>
// GLEW
#include <glad/glad.h>
// GLFW for windows
#include <GLFW/glfw3.h>
// Other Libs
// GLM Mathematics
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
// Other includes
#include "Shader.h"
#include "Camera.h"
// Function pro... |
#include "spirit.h"
#include "io_templates.hpp"
using arma::cx_mat;
using arma::vec;
using namespace std;
using namespace NDarray;
SPIRIT::SPIRIT() {
// Kernel Size Defaults
kr_f = 0.0;
krx_f = 3.0;
kry_f = 3.0;
krz_f = 3.0;
// Calibration Size Defaults
cr = 0;
crx = 12;
cry = 12;
crz = 12;
svd... |
/**
* @file This file is part of snakesGL.
*
* @section LICENSE
* GNU General Public License v2.0
*
* Copyright (c) 2018-2019 <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... |
#include "conf.h"
#include "webServer.h"
#include <Humblesoft_LedMat.h>
#include <MoviePlayer.h>
#include <ESP8266WebServer.h>
#include <SPI.h>
#include <SD.h>
#define FS_NO_GLOBALS
#include <FS.h>
// #include "FsHandler.h"
// #include "SpiffsHandler.h"
#include "SdHandler.h"
#include <time.h>
#include "Si... |
/* Digger Remastered
Copyright (c) <NAME> 1998-2004 */
#include <stdlib.h>
#include "def.h"
#include "monster.h"
#include "main.h"
#include "sprite.h"
#include "digger.h"
#include "drawing.h"
#include "bags.h"
#include "sound.h"
#include "scores.h"
#include "record.h"
struct monster
{
Sint4 x,y,h,v,xr,yr,dir,hdi... |
#include "Pokemon.h"
#include "main.h"
#include "Database.h"
// Capacity
Capacity::Capacity()
{}
void Capacity::Load(int ID, string name, int type, int category, int target, int power, int accuracy, int PP,
int attlvl, int deflvl, int spattlvl, int spdeflvl, int speedlvl, int dodgelvl, int acclvl,
int a... |
#include "path_planner.h"
using namespace std;
using namespace tk;
bool isInSameLane(int lande_id, double other_d);
static double deg2rad(double x) { return x * pi() / 180; }
static double rad2deg(double x) { return x * 180 / pi(); }
static void print_double(vector<double> v) {
for (double n: v) {
std::cout << n... |
// Copyright (c) 2014 The Sikacoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypto/sha1.h"
#include "crypto/common.h"
#include <string.h>
// Internal implementation code.
namespace
{
/// Inter... |
// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyright (c) 2011 The... |
/*****************************************************************/
/* NAME: <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: AngleUtils.cpp */
/* DATE: Nov 26, 2000 ... |
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <sfx.h>
#include <stage.h>
#include "boss.h"
#include "player.h"
class daRamboo_c : public daBoss {
int onCreate();
int onDelete();
int onExecute();
int onDraw();
mHeapAllocator_c allocator;
m3d::mdl_c bodyModel;
m3d::mdl_c hideModel;
m3d::mdl... |
/* Base structure and authentic idea PSeudo (Credits: <NAME>) */
#include "Global.h"
CstrDraw draw;
void CstrDraw::init(sh w, sh h, int multiplier) {
window.h = w;
window.v = h;
window.multiplier = multiplier;
// OpenGL
GLViewport(0, 0, window.h * 2, window.v * 2);
GLClearColor(0.1, 0.1... |
//===- AIECoreToStandard.cpp ------------------------------------*- C++ -*-===//
//
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// (c) Copyright 2019 Xilinx Inc.
//... |
/* Copyright (c) 2015 Convey Computer Corporation
*
* This file is part of the OpenHT jpegscale application.
*
* Use and distribution licensed under the BSD 3-clause license.
* See the LICENSE file for the complete license text.
*/
#include <stdint.h>
#include <assert.h>
#include <string.h>
#include "JobInfo.h"
... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012-2015 DreamWorks Animation LLC
//
// All rights reserved. This software is distributed under the
// Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
//
// Redistributions of source code must retain the abov... |
#include "Mcmc.h"
#define INDEPENDENCE 1
#define CARRYING_CAPACITY 2
#define DISTANCE_NORM 3
#define CARRYING_CAPACITY_AND_DISTANCE_NORM 4
Mcmc::Mcmc(Areas* a, GeoCoords* g, MbRandom* r, Model* m, Tree* t, Settings* s) {
// remember the address of important objects
ranPtr = r;
modelPtr = m;
treePtr ... |
#include <iostream>
//
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CommonTools/UtilAlgos/interface/TFileService.h"
//
#include "RecoEgamma/Examples/plugins/MCPhotonAnalyzer.h"
#include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruthFinder.h"
#include "RecoEgamma/EgammaMCTools/interface/PhotonMCTru... |
/*
main.cpp (timonel-twim-ss)
==========================
Timonel library test program (Single Slave) v1.4 "Valen"
----------------------------------------------------------------------------
This demo implements an I2C serial commander to control interactively a
Tiny85 microcontroller running the Timonel bo... |
#include "stdafx.h"
#include <GWCA/Packets/Opcodes.h>
#include <GWCA/Constants/Constants.h>
#include <GWCA/Utilities/Export.h>
#include <GWCA/Utilities/Hooker.h>
#include <GWCA/Utilities/Macros.h>
#include <GWCA/Utilities/Scanner.h>
#include <GWCA/GameContainers/GamePos.h>
#include <GWCA/Packets/StoC.h>
#include <G... |
#include "main.h"
#include <filesystem>
#include <iostream>
#include <memory>
#include "args.h"
#include "fail.h"
#include "file.h"
#include "js_api_process.h"
#include "json.h"
#include "thread.h"
#include "version.h"
int main(int argc, char* argv[]) {
InitFail();
InitArgs(argc, argv);
InitLog();
InitMainTh... |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... |
#include <iostream>
#include <vector>
#include <random>
#include "fish.h"
#include "olcConsoleGameEngine.h"
using namespace std;
float Dist(float, float, float, float); // return the distance
float DistSqu(float, float, float, float); // return the square of distance
struct food
{
float px, py;
};
... |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2020, University of Padova, Dep. of Information Engineering, SIGNET lab
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by... |
/*
FLUIDS v.1 - SPH Fluid Simulator for CPU and GPU
Copyright (C) 2009. <NAME>, http://www.rchoetzlein.com
ZLib license
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.
Permissi... |
#include "Vertex.h"
#include "HalfEdge.h"
#include "Edge.h"
#include "Face.h"
#include "Mesh.h"
#include <fstream>
#include <cstring>
#include <iostream>
#include <map>
#include "FormTrait.h"
using namespace MeshLib;
//access e->v
Vertex *Mesh::edge_vertex_1(Edge *e) {
assert(e->halfedge(0) != NULL);... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
#include "stdafx.h"
ServerStatsConfig Config;
//Constructor
ServerStats::ServerStats(QWidget *parent) : QWidget(parent), retry_5_seconds(false)
{
//Sets up the user interface
ui.setupUi(this);
//Invalidate the timer so no packets will be sent before the first server stats packet is received
stats_timer.invalidat... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... |
#include "loadGTF.h"
#include "IncludeDefine.h"
#include "ErrorWarning.h"
#include "serviceFuns.cpp"
#include "streamFuns.h"
#include "TimeFunctions.h"
#include <ctime>
#include <map>
#define GTF_exonLoci_size 4
#define GTF_exonTrID(ii) ((ii)*GTF_exonLoci_size)
#define GTF_exonStart(ii) ((ii)*GTF_exonLoci_size+1)
#... |
/*
Cafu Engine, http://www.cafu.de/
Copyright (c) <NAME> and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "Network.hpp"
#include <stdio.h>
#ifndef _WIN32
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
#include... |
#include "main.h"
#include "timer.h"
#include "ball.h"
#include "ground.h"
#include "pine.h"
#include "rectangle.h"
using namespace std;
GLMatrices Matrices;
GLuint programID;
GLFWwindow *window;
int score = 0;
int lives = 5;
/**************************
* Customizable functions *
**************************/
d... |
/*******************************************************************************
* Copyright 2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.... |
//! Constructor
template <unsigned Tdim>
mpm::MPMImplicit<Tdim>::MPMImplicit(const std::shared_ptr<IO>& io)
: mpm::MPMBase<Tdim>(io) {
//! Logger
console_ = spdlog::get("MPMImplicit");
// Check if stress update is not newmark
if (stress_update_ != "newmark") {
console_->warn(
"The stress_update... |
#include "session.hpp"
#include "../logger/logger.hpp"
#include <algorithm>
//Create Session instance and initialize variables
Session::Session() {
this->last_subsystem_tick = 0;
this->last_video_tick = 0;
//Network stats
this->r_tp = 0;
this->bs_tp = 0;
this->t_tp = 0;
//Initializing au... |
#include <ros/ros.h>
#include <std_msgs/Float64.h>
#include <nav_msgs/Odometry.h>
#include <queue>
#include <std_msgs/String.h>
#include <nav_msgs/OccupancyGrid.h>
#include <nav_msgs/Path.h>
#include <nav_msgs/GetMap.h>
#include <bits/stdc++.h>
#include <random>
#include <cmath>
class rrt_planner {
private:
r... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <stb_image.h>
#include <SOIL.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/glm.hpp>
#include <learnopengl/filesystem.h>
#include <iostream>
#include <chrono>
#include <ctime>
#include <common/R... |
/*************************************************************************/
/* bytecode_620ec47.cpp */
/*************************************************************************/
#include "core/io/marshalls.h"
#include "core/templates/map.h"
#include "core/string/print_... |
/*
* Copyright (c) 2009 <NAME> University.
* 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 "protocol.h"
#include "storage.h"
#include "logger.h"
#include "cache.h"
#include <algorithm>
#include <cstdlib>
#include <vector>
#include <deque>
#include <iostream>
#include <list>
#include <ctime>
#include <map>
#include <set>
#include <boost/lexical_cast.hpp>
#include <boost/bind.hpp>
#include <boost/sh... |
//
// $Id: Matcher.cpp 2051 2010-06-15 18:39:13Z chambm $
//
//
// Original author: <NAME> <<EMAIL>>
//
// Copyright 2009 Center for Applied Molecular Medicine
// University of Southern California, Los Angeles, CA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file excep... |
/*
* Copyright (c) 2018-2020, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list ... |
#include "MyBOClass.h"
// MyBOClass
void MyBOClass::Init(void)
{
m_m4ToWorld = IDENTITY_M4;
m_v3Center = vector3(0.0f);
m_v3Min = vector3(0.0f);
m_v3Max = vector3(0.0f);
m_v3CenterG = vector3(0.0f);
m_v3MinG = vector3(0.0f);
m_v3MaxG = vector3(0.0f);
m_v3HalfWidth = vector3(0.0f);
m_v3HalfWidthG = vector3(... |
//===--- CanonicalizeInstruction.cpp - canonical SIL peepholes ------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/*
Copyright (C) 2020 Xilinx, Inc
Licensed under the Apache License, Version 2.0 (the "License"). You may
not use this file except in compliance with the License. A copy of the
License is located at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... |
//===- AsyncRuntimeRefCounting.cpp - Async Runtime Ref Counting -----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include <chrono>
#include <exception>
#include <experimental/filesystem>
#include <fstream>
#include <map>
#include <optional>
#include <random>
#include <regex>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include <boost/program_options.hpp>
#include <boost/... |
//===-- gold-plugin.cpp - Plugin to gold for Link Time Optimization ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright (c) 2015 Baidu, 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... |
//
// quickfs.cpp
// resurrExion
//
// Created by <NAME> on 20 July 2020.
//
// Copyright (C) 2020 <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restri... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <err.h>
#define NUMENTRADA 1000
#define TAMLINHA 1000
#define MAXTAM 50
typedef struct {
char string[MAXTAM];
}String;
typedef struct {
char *nome;
int altura;
double peso;
char *corDoCabelo;
char *cor... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2021 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
/*!
* Copyright (c) 2017-2020 by Contributors
* \file lightgbm.cc
* \brief Frontend for LightGBM model
* \author <NAME>
*/
#include <dmlc/data.h>
#include <treelite/frontend.h>
#include <treelite/tree.h>
#include <unordered_map>
#include <limits>
#include <queue>
namespace {
treelite::Model ParseStream(dmlc::St... |
#include "cgstd.h"
#include "cgallocregs.h"
#include "cgdebug.h"
#include "cgutil.h"
#include <float.h>
//quick debug
//#define _DEBUG_ALLOCREGS
//BIG debug!
//#define _DEBUG_REGALLOC
using namespace CG;
using namespace std;
static CGFlow *flow;
static CGFrame *frame;
struct Node;
typedef set<Node*> NodeSet;
ty... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2017-2019 The WaykiChain Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "dexoperatortx.h"
#include "config/configuration.h"
#include "main.h"
#include ... |
// AddCert.cpp : implementation file
//
#include "stdafx.h"
#include "certmap.h"
// persistence and mapping includes
#include "WrapMaps.h"
#include "wrapmb.h"
#include "ListRow.h"
#include "ChkLstCt.h"
// mapping page includes
#include "brwsdlg.h"
#include "EdtOne11.h"
#include "Ed11Maps.h"
#includ... |
#include <cstddef> // NULL
#include <sstream>
#include <stack>
#include <algorithm>
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include "Search.hh"
int HypoPath::g_count = 0;
// FIXME: check that every log_prob has the same base! Now they
// should be log10 everywhere.
// Returns the first (and sho... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
//
// Created by francescobonacina on 06/12/18.
//
#include "Analyzer.h"
/// global pointer set to nullptr
Analyzer* Analyzer::fgAnalyzer = nullptr;
/// to instance an object Analyzer, it ensures that there is only one object at a time.
/// It calls the private constructor.
Analyzer* Analyzer::Instance(std::vector... |
/*
* Copyright 2016-2020 NXP
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of conditions and th... |
/**************************************************************
*
* 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 y... |
/**
*-----------------------------------------------------------------------------
* Title : Rogue EPICS V3 Interface: Generic Value Container
* ----------------------------------------------------------------------------
* File : Value.cpp
* Created : 2018-11-18
* ----------------------------------... |
// Copyright 2017 <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 writ... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html
#include "opencv2/3d.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#in... |
//
// Copyright (c) 2015, Novartis Institutes for BioMedical Research Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above... |
// vray_LatLongStereo Shader v0.5
// 2015-04-01 11.38 pm
// ---------------------------------
// Ported to Vray 2.5 by <NAME>/<NAME>
// Based upon the mental ray shader LatLong_Stereo
// by <NAME>
//**************************************************
//**************************************************
#include "vra... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2012... |
/*
This is a Beta version.
last modified 14/02/2012.
This library is based on one developed by Arduino Labs
and it is modified to preserve the compability
with the Arduino's product.
The library is modified to use the GSM Shield,
developed by www.open-electronics.org
(http://www.open-electronics.org/arduino-gsm-shiel... |
/***************************************************************************
Copyright (c) 2020-2021 <NAME>
This file a part of the "CO2-Ampel" source code.
https://github.com/lrswss/co2ampel
Published under Apache License 2.0
***************************************************************************/
#inc... |
#include "externals.h"
#include "MeshVertices.h"
#include "MayaException.h"
#include "dump.h"
#include "spans.h"
#include "IndentableStream.h"
#include "Arguments.h"
#include "MeshIndices.h"
#include "mikktspace.h"
#include "MeshSkeleton.h"
#include "ExportableScene.h"
#include "ExportableNode.h"
struct M... |
#include "game/snake.h"
#include <iostream>
#include <array>
#include "game/math.h"
bool Snake::Tick(long dt, SectorSeq *ss) {
uint8_t changes = 0;
if (update & (change_dying | change_dead)) {
return false;
}
if (bot) {
ai_ticks += dt;
if (ai_ticks > ai_step_interval) {
const long frames ... |
#include "cola/transform.hpp"
#include "cola/util.hpp"
#include <set>
#include <iostream>
using namespace cola;
struct CasFinderVisitor : public Visitor {
const CompareAndSwap* found = nullptr;
bool on_top_level = true;
bool found_low_level = false;
void visit(const VariableDeclaration& /*node*/) {
on_top_lev... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
// Copyright 2009 <NAME> and <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 distrib... |
#include "stdafx.h"
#include "UIMpTradeWnd.h"
#include "UIXmlInit.h"
#include "UIMpItemsStoreWnd.h"
#include "UITabControl.h"
#include "UITabButtonMP.h"
#include "UIDragDropListEx.h"
#include "UIItemInfo.h"
#include "UIHelper.h"
#include "UIBuyWeaponTab.h"
#include "object_broker.h"
LPCSTR _list_name... |
/*
Copyright 2011 <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 writing,... |
/*
Copyright (c) 2004-2021 The FlameRobin Development Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modi... |
/*
* Copyright (C) 2013, <NAME> <<EMAIL>>.
*
* All Rights Reserved.
*/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* (1) Redistributions of source code must retain the above
* copyright... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPConnectivityFilter.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distribut... |
#include <cstring>
#include <random>
#include "client_callback_mockup.hpp"
/* ---------------- Blob implementation ---------------- */
Blob::Blob(const uint8_t* const b, const decltype(size) s)
: is_temporary(false), bytes(nullptr), size(0) {
if(s > 0) {
bytes = new uint8_t[s];
if(b != nul... |
//$Id: NativeSerial_linux.cpp,v 1.7 2010-06-29 22:07:42 scipio Exp $
/* Copyright (c) 2000-2003 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
#include "clm.h"
void JelinekMercerFeature::set_interpolation(float lambda) {
this->_bigram_contribution = 1.0 - lambda;
this->_unigram_contribution = lambda;
}
float JelinekMercerFeature::interpolation() const {
return this->_unigram_contribution;
}
void JelinekMercerFeature::set_slop(int slop) {
assert(... |
// read this tutorial
// http://prideout.net/blog/?p=61 The Little Grasshopper : Tron, Volumetric Lines, and Meshless Tubes
#include <stdlib.h>
#include <stdio.h>
#include <GL/glew.h>
//#define GL3_PROTOTYPES 1
//#define GL_GLEXT_PROTOTYPES
//#include <GL/gl.h>
#include <SDL2/SDL.h>
#include "Vec2.h"
#include ... |
#include <gtest/gtest.h>
#include <torch/nn/module.h>
#include <torch/nn/modules/batchnorm.h>
#include <torch/nn/modules/conv.h>
#include <torch/nn/modules/dropout.h>
#include <torch/nn/modules/embedding.h>
#include <torch/nn/modules/functional.h>
#include <torch/nn/modules/linear.h>
#include <torch/types.h>
#include ... |
// main.cpp
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <Application.h>
#include <Bitmap.h>
#include <Button.h>
#include <Message.h>
#include <MessageRunner.h>
#include <Messenger.h>
#include <View.h>
#include <Window.h>
#include "bitmap.h"
enum {
MSG_RESET = 'rset',
MSG... |
#include "ControlFlow.h"
#include "BasicBlock.h"
#include "Function.h"
#include "JanusContext.h"
#include "Utility.h"
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
using namespace std;
using namespace janus;
#define BB_LEADER 2
#define BB_TERMINATOR 1
static void
buildBasi... |
/*
Copyright (c) 2017, Massachusetts Institute of Technology 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 condition... |
/*
* The Biomechanical ToolKit
* Copyright (c) 2009-2014, <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
* ... |
#include "CostVolume.hpp"
#include "CostVolume.cuh"
CostVolume::CostVolume(int _rows, int _cols, int _layers, float _near, float _far, const cv::Mat& K_cpu, std::string similarity):
rows(_rows), cols(_cols), layers(_layers), near(_near), far(_far), K_cpu(K_cpu), similarity(similarity)
{
CV_Assert(layers >= 8);
CV_A... |
#include <iostream>
#include <cassert>
#include <cstdio>
#include <cstring>
#include "glad/glad.h"
#include "GLFW/glfw3.h"
#include "glslprogram.h"
#include <vector>
#include <sstream>
#include "utils.h"
#include "consts.h"
#include "glm/gtc/matrix_transform.hpp"
#include "vbocube.h"
#include "vborectangle.h"
#include ... |
/*
* MainApp.cpp - Media Player for the Haiku Operating System
*
* Copyright (C) 2006 <NAME> <<EMAIL>>
* Copyright (C) 2008 <NAME> <<EMAIL>> (MIT Ok)
*
* Released under the terms of the MIT license.
*/
#include "MainApp.h"
#include <Alert.h>
#include <Autolock.h>
#include <Catalog.h>
#include <Entry.h>
#inclu... |
#include "branch_detection_model.h"
Branch_Detection_Model::Branch_Detection_Model()
{
p4DImage=NULL;
thres_2d =20;
window_size=3;
length_point=2;
ray_numbers_2d=64;
x_coordinate=0,y_coordinate=0,z_coordinate=0;
based_distance=15;
num_layer = 6;
}
void Branch_Detection_Model::Get_Image... |
/*
Copyright (C) 2019-2020 <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 commercia... |
/*
* Copyright (C) 2020 The Android Open Source Project
*
* 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 app... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.