text string | size int64 | token_count int64 |
|---|---|---|
/* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef TURI_TOOLKIT_FUNCTION_SPECIFICATION_HPP
#define TURI_TOOLKIT_FUNCTION_SPECIFICATION_HPP
#inc... | 2,240 | 656 |
/****************************
** Contrôle de l’écran LCD **
****************************/
#include <LiquidCrystal.h>
#include "Lcd.h"
#include "MorseCharacter.h"
/* Initialisation de la librairie de l'écran LCD */
LiquidCrystal lcd(LCDRS, LCDENABLE, LCDD4, LCDD5, LCDD6, LCDD7);
/* Fonction d'initialisation de l'écra... | 1,431 | 526 |
//============================================================================
//
// SSSS tt lll lll
// SS SS tt ll ll
// SS tttttt eeee ll ll aaaa
// SSSS tt ee ee ll ll aa
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emula... | 11,463 | 5,122 |
// This file is part of the dune-xt-functions project:
// https://github.com/dune-community/dune-xt-functions
// Copyright 2009-2018 dune-xt-functions developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ ... | 16,624 | 5,011 |
//---------------------------------------------------------------------------
// E L E N A P r o j e c t: Win32 ELENA System Routines
//
// (C)2018-2020, by Alexei Rakov
//---------------------------------------------------------------------------
#include "elena.h"
// ... | 2,088 | 706 |
// MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
namespace Plasma
{
// Sound Attenuator
LightningDefineType(SoundAttenuatorDisplay, builder, type)
{
}
String SoundAttenuatorDisplay::GetName(HandleParam object)
{
SoundAttenuator* soundAtten = object.Get<SoundAttenuator*>(GetOptions::AssertOnNull);
r... | 9,579 | 3,171 |
/*
// Copyright (c) 2015 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 4,503 | 1,657 |
/*
* CX - C++ framework for general purpose development
*
* https://github.com/draede/cx
*
* Copyright (C) 2014 - 2021 draede - draede [at] outlook [dot] com
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associate... | 7,448 | 3,447 |
#include "Item.h"
namespace Cta::Combat
{
}
| 46 | 23 |
//------------------------------------------------------------------------------
/*
This file is part of MUSO: https://github.com/MUSO/MUSO
Copyright (c) 2012-2017 MUSO Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided t... | 189,202 | 65,579 |
/*
* Copyright (c) 2016, The OpenThread Authors.
* 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 ... | 14,885 | 5,040 |
/*******************************************************************\
Module:
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
#include "boolbv_width.h"
#include <algorithm>
#include <util/arith_tools.h>
#include <util/invariant.h>
#include <util... | 5,706 | 2,144 |
#include "MathUtils.h"
MathUtils::MathUtils()
{
}
MathUtils::~MathUtils()
{
}
double
MathUtils::ToRadians(double degrees)
{
return (degrees * PI) / 180.0;
}
double
MathUtils::ToDegrees(double radians)
{
return (radians * 180.0) / PI;
}
double MathUtils::PI = 3.14159265359; | 277 | 129 |
/* Copyright 2016 CyberTech Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 2,245 | 682 |
#include "PostgreSQLReplicationHandler.h"
#include <DataStreams/PostgreSQLSource.h>
#include <Processors/QueryPipeline.h>
#include <Processors/Executors/PullingPipelineExecutor.h>
#include <Databases/PostgreSQL/fetchPostgreSQLTableStructure.h>
#include <Storages/PostgreSQL/StorageMaterializedPostgreSQL.h>
#include <In... | 24,729 | 6,887 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/device/usb/usb_service_mac.h"
#include <CoreFoundation/CFBase.h>
#include <CoreFoundation/CoreFoundation.h>
#include <IOKit/IOCFPlugIn... | 10,709 | 3,600 |
#include <migraphx/gpu/device/gelu.hpp>
#include <migraphx/gpu/device/nary.hpp>
#include <migraphx/gpu/device/types.hpp>
#include <cmath>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
namespace gpu {
namespace device {
// x * 0.5 * (1.0 + erf(x / sqrt(2.0)))
template <class T>
auto gelu_fn(T x) __device_... | 1,627 | 641 |
#include "entity.hpp"
#include "move.hpp"
#include "field.hpp"
#include "io.hpp"
#include <fstream>
Entity::Entity(int _displayChar)
{
setDisplayChar(_displayChar);
position.setXY(0, 0);
}
Entity::~Entity()
{
}
Position Entity::getPosition()
{
Position _pos;
_pos.from(position);
return _pos;
}
void Entity::setPos... | 1,086 | 428 |
#ifndef SHADER_LOADER_HPP
#define SHADER_LOADER_HPP
#include <map>
#include <string>
#include <glbinding/gl/enum.h>
using namespace gl;
namespace shader_loader {
// compile shader
unsigned shader(std::string const& file_path, GLenum shader_type);
// create program from given list of stages
unsig... | 385 | 139 |
#include "GameStateMachine.h"
#include <iostream>
void GameStateMachine::pushState(GameState* pState){
m_gameStates.push_back(pState);
m_gameStates.back()->onEnter();
}
void GameStateMachine::popState(){
if(!m_gameStates.empty()){
if(m_gameStates.back()->onExit()){
delete m_gameStates.back();
m_gameStates... | 884 | 368 |
#include "trie.hpp"
#include <cassert>
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
int main()
{
std::string str[113] = {"Bold","Daring","Clever","Intelligent","Careful","Cautious","Boistrous","Serious","Lighthearted","Funny","Sly","Tricky","Lucky","Selfish","Caring","Benevolent","Pea... | 1,674 | 620 |
#include "../pch.h"
#include "Shader.h"
#include "GL/glew.h"
#include "debug.h"
ShaderProgramSource Shader::ParseShader(const std::string &filePath)
{
std::ifstream stream(filePath);
enum class ShaderType {
NONE = -1, VERTEX = 0, FRAGMENT = 1
};
std::stringstream ss[2];
std::string line;... | 2,754 | 992 |
/* -----------------------------------------------------------------------------
The copyright in this software is being made available under the BSD
License, included below. No patent rights, trademark rights and/or
other Intellectual Property Rights other than the copyrights concerning
the Software are granted unde... | 20,622 | 8,198 |
/**
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
... | 1,068 | 360 |
// -*- mode: c++; c-basic-offset: 4 -*-
/*
* FlowStrip.{cc,hh} -- element FlowStrips bytes from front of packet
* Robert Morris, Eddie Kohler
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and a... | 2,516 | 860 |
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
struct node{
int info;
node *left,*right;
}*ptr,*start,*last,*save;
int c=1,i=0,data,item;
start=last=NULL;
while(c<4 && c>0){
cout<<"1.Insert\n2.Deletion\n3.Link List\n";
cin>>c;
switch(c){
case 1:
cout<<"Enter Data\n";
cin>>data;
... | 1,194 | 648 |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include <stdint.h>
#include "beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin forward declares
// Forward declaring namespace: Syst... | 2,868 | 974 |
#include <cmath>
#include "amr-wind/incflo.H"
#include "amr-wind/core/Physics.H"
#include "amr-wind/core/field_ops.H"
#include "amr-wind/equation_systems/PDEBase.H"
#include "amr-wind/turbulence/TurbulenceModel.H"
#include "amr-wind/utilities/console_io.H"
#include "amr-wind/utilities/PostProcessing.H"
#include "amr-w... | 20,048 | 6,308 |
//----------------------------------*-C++-*----------------------------------//
/*!
* \file c4/test/tstglobal_containers.cc
* \author Kent Budge
* \date Mon Mar 24 09:41:04 2008
* \note Copyright (C) 2008-2019 Triad National Security, LLC.
* All rights reserved. */
//---------------------------------... | 3,741 | 1,248 |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the... | 4,311 | 1,242 |
//=======================================================================
// Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
// Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
//
// This file is part of the Boost Graph Library
//
// You should have received a copy of the License Agreement for the
// ... | 5,990 | 2,128 |
/* Returns:
- pointer to the last unprocessed character (a scalar fallback should check the rest);
- nullptr if an error was detected.
*/
const char32_t* avx2_validate_utf32le(const char32_t* input, size_t size) {
const char32_t* end = input + size;
const __m256i standardmax = _mm256_set1_epi32(0x10ffff)... | 1,209 | 535 |
// Copyright (c) 2017 Intel Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, pub... | 4,201 | 1,446 |
#include <iostream>
#include <algorithm>
#include <cstdio>
#define maxN 102
#define maxA 20002
typedef int maxn, maxa;
maxn n, lim_n;
bool f[maxA][maxN];
maxa a[maxN], lim_t, sum, res;
void Prepare() {
std::cin >> n;
for (maxn i = 0; i < n; i++) std::cin >> a[i], sum += a[i];
lim_t = sum / 2, lim_n = n / 2 + (n... | 1,022 | 537 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 9,663 | 3,651 |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include "single_layer_tests/logical.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace LayerTestsDefinitions::LogicalParams;
namespace {
std::map<std::ve... | 3,181 | 1,193 |
# /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.com
# *
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http://www.boost... | 33,147 | 20,554 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/wm/core/shadow_types.h"
#include "ui/base/class_property.h"
namespace wm {
DEFINE_UI_CLASS_PROPERTY_KEY(int, kShadowElevationKey, kSha... | 1,113 | 390 |
/// @author Владимир Керимов
#pragma once
#include <exception/exception_holder.hpp>
#include <data/stacktrace>
namespace data
{
}
// sine qua non
| 163 | 62 |
#include "cardencoding.h"
#include "sorting_merging.h"
#include <cmath>
using namespace PBLib;
using namespace std;
CardEncoding::CardIncData::~CardIncData()
{
}
CardEncoding::CardIncData::CardIncData(vector< Lit >& outlits) : outlits(outlits) {}
void CardEncoding::CardIncData::encodeNewGeq(int64_t newGeq, ClauseDa... | 5,010 | 1,812 |
// GAMBIT: Global and Modular BSM Inference Tool
// *********************************************
/// \file
///
/// Square grid sampler.
///
/// *********************************************
///
/// Authors (add name and date if you modify):
//
/// \author Gregory Martinez
/// (gregory.david.martinez@gm... | 1,558 | 547 |
/*
* Blocks.cpp
* RVO2 Library
*
* Copyright 2008 University of North Carolina at Chapel Hill
*
* 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/... | 7,830 | 3,425 |
// *****************************************************************************************
//
// File description:
//
// Author: Joao Costa
// Purpose: Defines a DOM user handler to cleanup user added node information
//
// *****************************************************************************************
#if... | 1,278 | 325 |
// Copyright (c) Csaba Molnar & Daniel Butum. All Rights Reserved.
#include "SoCharacterSheet.h"
#include "SoIMortalTypes.h"
#include "Basic/Helpers/SoStaticHelper.h"
#include "SaveFiles/SoWorldState.h"
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////... | 6,245 | 1,953 |
/**
* @file BayesianBlocks.cxx
* @brief Implementation of BB algorithm for event, binned and point
* measurement data.
*
* @author J. Chiang
*
* $Header: /nfs/slac/g/glast/ground/cvs/BayesianBlocks/src/BayesianBlocks.cxx,v 1.1.1.1 2011/09/03 00:55:59 jchiang Exp $
*/
#include <cmath>
#include <iostream>
#inc... | 6,747 | 2,574 |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "app/sql/connection.h"
#include "app/sql/statement.h"
#include "app/sql/transaction.h"
#include "base/file_util.h"
#include "base/memory/scop... | 3,554 | 1,261 |
#pragma once
#include <vector>
#include <glm/glm.hpp>
namespace AGE
{
class DepthMapHandle;
class DepthMap
{
public:
void init(std::size_t width, std::size_t height, std::size_t mipmalLevel);
bool testPixel(uint32_t pixelDepth, std::size_t x, std::size_t y) const;
bool testBox(uint32_t pixelDepth, glm::uve... | 681 | 304 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_image_ref_counted_memory.h"
#include <stddef.h>
#include "base/check.h"
#include "base/memory/ref_counted_memory.h"
#include "base/tr... | 1,969 | 673 |
#include <Support/Threading/ThreadPool.h>
namespace jf{
namespace threading{
ThreadPoolWorker::ThreadPoolWorker(ThreadPool* owner, ThreadContext* threadContext)
: owner(owner)
, threadContext(threadContext)
, terminate(false)
, nextWorker(nullptr)
, job(nullptr){
thread.run(this);
}
ThreadPo... | 3,268 | 1,421 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/renderer/media/webmediaplayer_ms.h"
#include <limits>
#include "base/bind.h"
#include "base/callback.h"
#include "base/message_loop/me... | 12,994 | 4,303 |
/*
* Copyright (c) 2017 Jason Waataja
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publi... | 2,075 | 684 |
#include "convert.h"
| 21 | 9 |
#include <gecode/string.hh>
#include <gecode/driver.hh>
using namespace Gecode;
using namespace String;
class StringOptions : public Options {
public:
int N;
string SQL;
StringOptions(const char* s, int n): Options(s), N(n) {
this->c_d(1);
switch (n) {
case 11:
SQL = "A=B=C = B=C";
break;
cas... | 24,063 | 18,677 |
#include "preamble.h"
#if MODEL == 5
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "filzbach.h"
void pause(){PAUSE}
/************************************************************/
/* function headers */
/****************************************************... | 4,618 | 1,630 |
/*
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
* reserved.
* Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved.
* Copyright (C) 2011 Igalia S.L.
* Copyright (C) 2011 Motorola Mobility. All rights reserved.
*
* Redistribution and use in source and binary forms, with... | 21,031 | 6,375 |
// -*- C++ -*-
//===------------------------------ span ---------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===--------------------------... | 6,580 | 1,951 |
/**
* Copyright 2019-2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 17,653 | 6,043 |
#include "trace.h"
/***********************************************************************
* NAME : Trace()
*
* DESCRIPTION : Constructor for the Trace object.
*
* ********************************************************************/
Trace::Trace() {
/* initialize all of the boolean parameters */
allocInputP... | 53,040 | 22,751 |
#include <QApplication>
#include <QQmlApplicationEngine>
#include "fileio.h"
#include "clipboard.h"
#include "library.h"
#include <qqml.h>
#include <QResource>
#include <QQmlContext>
#include <QVariant>
#include <QDebug>
struct GraphblocksContext
{
graphblocks::Library m_lib;
};
GraphblocksContext* initializeGrap... | 1,374 | 463 |
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
#include "IntStream.h"
#include "atn/OrderedATNConfigSet.h"
#include "Token.h"
#include "LexerNoViableAltException.h"
#inc... | 21,966 | 7,261 |
// Copyright Take Vos 2020-2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#include "window_traffic_lights_widget.hpp"
#include "../GUI/gui_window.hpp"
#include "../GFX/pipeline_SDF_device_shared.hpp"
#inclu... | 10,628 | 3,495 |
#include "reply.hpp"
using namespace Moove;
Reply func()
{
return Reply();
}
int main()
{
Reply reply;
reply = func();
return 0;
}
| 139 | 62 |
// Tablacus Total Commander Listr Plugin Wrapper (C)2018 Gaku
// MIT Lisence
// Visual C++ 2017 Express Edition
// 32-bit Visual Studio 2015 - Windows XP (v140_xp)
// 64-bit Visual Studio 2017 (v141)
// https://tablacus.github.io/
#include "twlx.h"
// Global Variables:
const TCHAR g_szProgid[] = TEXT("Tablacus.TotalC... | 27,795 | 13,914 |
#include "config.h"
#include "environment.h"
#include "logging.h"
#include "locks.h"
#include <faabric/util/network.h>
namespace faabric::util {
SystemConfig &getSystemConfig() {
static SystemConfig conf;
return conf;
}
SystemConfig::SystemConfig() {
this->initialise();
}
... | 6,215 | 1,898 |
//---------------------------------------------------------------------------//
// Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://boos... | 2,356 | 794 |
// Copyright 1996-2021 Cyberbotics Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 2,692 | 868 |
#include <bits/stdc++.h>
using namespace std;
#define MAX 5
class Queue {
public:
int items[MAX];
int front;
int rear;
Queue() {
front = -1;
rear = -1;
};
void enQueue(int val) {
if(isFull()) {
cout << "Queue is Full" << endl;
return;
}
if(fron... | 1,530 | 557 |
//******************************************************************
//
// Copyright 2016 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | 15,455 | 5,098 |
/***********************************************************/
/* File: objectdetection-contours-video.cpp */
/* Author: Travis Bueter */
/* Desc: This file tests the use of identifying objects */
/* based on their contours of a video feed. */
/* ... | 4,112 | 1,609 |
#include <profiling.hpp>
#include <fstream>
namespace llarp
{
bool
RouterProfile::BEncode(llarp_buffer_t* buf) const
{
if(!bencode_start_dict(buf))
return false;
if(!BEncodeWriteDictInt("g", connectGoodCount, buf))
return false;
if(!BEncodeWriteDictInt("p", pathSuccessCount, buf))
... | 5,330 | 2,013 |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2010 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundat... | 10,259 | 3,784 |
// The MIT License (MIT)
//
// Copyright (c) 2017-2018 Alexander Kurbatov
#include "Unit.h"
#include "core/API.h"
#include "core/Helpers.h"
#include "Hub.h"
bp::Unit::Unit(sc2::UNIT_TYPEID who_builds_, sc2::UNIT_TYPEID required_addon_): m_who_builds(who_builds_), m_required_addon(required_addon_) {
}
bool bp::Unit::... | 1,115 | 419 |
/*
* Copyright 2002-2021 oZ/acy (名賀月晃嗣)
* Redistribution and use in source and binary forms,
* with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions an... | 3,383 | 1,373 |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 5,473 | 1,937 |
// DALICLOCK.CPP
// Implements the actual drawing of the melting numbers
// Earle F. Philhower, III <earle@ziplabel.com>
// Most of this code was adapted from xdaliclock by Jamie Zawinski <jwz@jwz.org>
//
// His copyright message is included below:
/* xscreensaver, Copyright (c) 1992, 1997 Jamie Zawinski <jwz@jw... | 10,773 | 4,683 |
// Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Security.Permissions
// Name: FileDialogPermission
// C++ Typed Name: mscorlib::System::Security::Permissions::FileDialogPermission
#include <gtest/gtest.h>
#include <mscorlib/System/Se... | 3,081 | 1,299 |
//by Hanchuan Peng
//2006-2011
#include "convert_type2uint8.h"
#include <stdio.h>
bool convert_type2uint8_3dimg_1dpt(void * &img, V3DLONG * sz, int datatype)
{
if (!img || !sz)
{
fprintf(stderr, "The input to convert_type2uint8_3dimg_1dpt() are invalid [%s][%d].\n", __FILE__, __LINE__);
return false;
}
if ... | 1,442 | 685 |
#include <gainput/gainput.h>
#include <gainput/GainputDebugRenderer.h>
#include "GainputInputDeviceKeyboardImpl.h"
#include "GainputKeyboardKeyNames.h"
#include <gainput/GainputInputDeltaState.h>
#include <gainput/GainputHelpers.h>
#include <gainput/GainputLog.h>
#if defined(GAINPUT_PLATFORM_LINUX)
#include "Gainpu... | 4,962 | 1,827 |
#include "MccMethodNameChecker.h"
#include "MccInvalidMethodNameError.h"
#include "MccFunctionDeclaration.h"
#include "MccRobot.h"
MccMethodNameChecker::MccMethodNameChecker(void)
{
}
MccMethodNameChecker::~MccMethodNameChecker(void)
{
}
void MccMethodNameChecker::detect(MccFunctionDeclaration *fun)
{
string fun... | 695 | 292 |
//===--- swift-api-digester.cpp - API change detector ---------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 105,491 | 32,933 |
#pragma once
#include "lue/info/property/same_shape/constant_shape/property.hpp"
#include "lue/object/property/properties_traits.hpp"
#include "lue/core/collection.hpp"
namespace lue {
namespace data_model {
namespace same_shape {
namespace constant_shape {
/*!
@brief Collection of same shape x constant sha... | 1,748 | 437 |
/*__________________________________________________________________________________________
(c) Hash(BEGIN(Satoshi[2010]), END(Sunny[2012])) == Videlicet[2014] ++
(c) Copyright The Nexus Developers 2014 - 2021
Distributed under the MIT software license, see the accompanying
file COPY... | 10,175 | 2,729 |
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
/***************************************************************************
HAR MadMax hardware
**************************************************************************/
#include "emu.h"
#include "includes/dcheese.h"
/********************************... | 9,455 | 4,336 |
//==============================================================
// Copyright (C) Intel Corporation
//
// SPDX-License-Identifier: MIT
// =============================================================
#include <math.h>
#include <string.h>
#include <algorithm>
#include <chrono>
#include <iomanip>
#include <iostream>
#i... | 13,616 | 4,831 |
#include <iostream>
#include <string>
void answer(const std::string& v)
{
std::cout << v << '\n';
}
void solve(const std::string& s)
{
std::string t;
for (const char c : s) {
while (!t.empty() && t.back() < c)
t.pop_back();
t.push_back(c);
}
answer(t);
}
int main()
{... | 392 | 158 |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Core Platform Miscellaneous Control Module
namespace McmPlasc{ ///<Crossbar switch (AXBS) slave configuration
using Addr = Register::Address<0xe0080008,0xffffff00,0x00000000,unsigned>;
///Each bit in the ASC field indicates if the... | 8,586 | 2,940 |
// Copyright John Maddock 2015.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef SC_
# define SC_(x) static_cast<T>(BOOST_JOIN(x, L))
#endif
static const boost::arr... | 49,917 | 44,586 |
/*
Developers: DSOR Team -> @irt.ist.pt Instituto Superior Tecnico
Description: Please check the documentation of this package for more info.
*/
#include "SensorSim.h"
/*
#######################################################################################################################
@.@ CONSTRUCTOR: put all di... | 17,513 | 6,294 |
//------------------------------------------------------------------------------
// This file was generated using the Faust compiler (https://faust.grame.fr),
// and the Faust post-processor (https://github.com/jpcima/faustpp).
//
// Source: NoiseLFO.dsp
// Name: NoiseLFO
// Author:
// Copyright:
// License:
// Ver... | 11,739 | 5,217 |
/*ckwg +29
* Copyright 2016 by Kitware, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of... | 4,177 | 1,480 |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warr... | 4,729 | 1,541 |
#include <ellalgo/cutting_plane.hpp> // for cutting_plane_dc
#include <ellalgo/ell.hpp> // for ell
#include <gsl/span> // for span
#include <lmisolver/lmi_old_oracle.hpp> // for lmi_old_oracle
#include <lmisolver/lmi_oracle.hpp> // for lmi_oracle
#include <tuple> ... | 5,804 | 2,641 |
#ifndef RFM69_MESSAGING_HANDLER_HPP_
#define RFM69_MESSAGING_HANDLER_HPP_
#include "message.hpp"
#include "message_handler.hpp"
namespace PeripheralMessages
{
class RFM69Handler
{
public:
static void begin(uint8_t node);
static void initializeIncomingMessages();
static bool publishMessage(const MessageBuffer& buffer... | 691 | 257 |
/* Author: Zachary Kingston */
#include <robowflex_dart/joints.h>
#include <robowflex_dart/space.h>
using namespace robowflex::darts;
///
/// RnJoint
///
RnJoint::RnJoint(StateSpace *space, //
dart::dynamics::Joint *joint, //
double low, double high)
: RnJoint(space,... | 3,140 | 1,157 |
// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... | 3,394 | 1,365 |
// David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2021
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 4.0.2019.08.13
#include <Graphics/GL45/GTGraphicsGL45PCH.h>
#i... | 20,202 | 5,814 |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... | 25,492 | 7,879 |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 1,006 | 357 |
#include "RC4.h"
NAMESPACE_UPP
RC4::RC4() : Cypher(1 /* stream cypher */)
{
memset(sbox, 0, 256);
si = sj = 0;
}
RC4::RC4(String const &key, String const &nonce) : Cypher(1 /* stream cypher */)
{
SetKey(key, nonce);
}
RC4::RC4(byte const *keyBuf, size_t keyLen, byte const *nonce, size_t nonceLen) : Cypher(1 /* s... | 1,540 | 758 |
#include "../headers/File_not_found.h"
File_not_found::File_not_found(std::string erro) : std::runtime_error(std::string("File : ")+erro+std::string(" not found!\n"))
{
}
File_not_found::File_not_found() :std::runtime_error("File not found !")
{
}
File_not_found::~File_not_found()
{
}
| 295 | 122 |