text
string
size
int64
token_count
int64
// Copyright (C) 2019 Samy Bensaid // This file is part of the Teal project. // For conditions of distribution and use, see copyright notice in LICENSE #pragma once #ifndef TEAL_STATES_HPP #define TEAL_STATES_HPP #include <Nazara/Core/String.hpp> #include <Nazara/Renderer/Texture.hpp> #include <Nazara/Lua/LuaState.h...
4,255
1,299
// 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 "base/process/launch.h" #include <errno.h> #include <stdio.h> #include <unistd.h> #include <string> #include <utility> #include <vector> #incl...
3,059
1,188
/******************************************************************************* * 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.a...
9,794
2,625
/* heuristic_search library * * Copyright (c) 2016, * Maciej Przybylski <maciej.przybylski@mchtr.pw.edu.pl>, * Warsaw University of Technology. * All rights reserved. * */ #include <gtest/gtest.h> #include "heuristic_search/SearchLoop.h" #include "heuristic_search/StdOpenList.h" #include "heuristic_search/...
5,678
1,949
#pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // WidgetBlueprintGeneratedClass News.News_C // 0x0...
5,814
1,581
#pragma once #include <algorithm> #include <veritacpp/dsl/math/core_concepts.hpp> #include <veritacpp/dsl/math/constants.hpp> namespace veritacpp::dsl::math { template <uint64_t N> struct Variable; template<uint64_t N, Functional F> struct VariableBindingHolder { F f; static constexpr auto VariableID = N; ...
2,950
959
// 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 "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" #include "base/macros.h" #include "base/strings/utf_string_conversions.h" #in...
29,813
9,426
/* hw16_9 */ #include <iostream> #include <cstdlib> using namespace std; int _max(int,int,int); int _max(int,int); int main(void) { int a=2,b=1,c=3; cout<<"_max("<<a<<", "<<b<<", "<<c<<")="<<_max(a,b,c)<<endl; cout<<"_max("<<b<<", "<<a<<")="<<_max(b,a)<<endl; system("pause"); return 0; } int _max(int a,int b,i...
521
302
// Fill out your copyright notice in the Description page of Project Settings. #include "ReloadknockBackMod.h" #include "GruntCharacter.h" #include "Kismet/KismetMathLibrary.h" #include "Kismet/GameplayStatics.h" #include "GameFramework/PawnMovementComponent.h" #include "GameFramework/CharacterMovementComponent.h" U...
1,224
459
//----------------------------------------------------------------------------// // Part of the Fox project, licensed under the MIT license. // See LICENSE.txt in the project root for license information. // File : Lexer.hpp // Author : Pierre van Houtryve //------------------...
5,267
1,405
#include "stdafx.h" #include "FingerTapAndDragTapEvent.h" #include "Mouse.h" namespace envyTouchPad { FingerTapAndDragTapEvent::FingerTapAndDragTapEvent(int numberOfFingersTrigger) { fNumberOfFingersTrigger = numberOfFingersTrigger; clear(true); } bool FingerTapAndDragTapEvent::fingersPresent(Configuration...
3,332
936
// Geometric Tools, LLC // Copyright (c) 1998-2014 // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // // File Version: 5.0.0 (2010/01/01) #include "PointInPolyhedron.h" WM5_WINDOW_APPLICATION(PointInPo...
8,572
3,128
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "UObject/LinkerPlaceholderBase.h" #include "UObject/UnrealType.h" #include "Blueprint/BlueprintSupport.h" #if USE_DEFERRED_DEPENDENCY_CHECK_VERIFICATION_TESTS #define DEFERRED_DEPENDENCY_ENSURE(EnsueExpr) ensure(EnsueExpr) #else // USE_DEFERRED_D...
24,417
7,542
// Copyright (c) 2019 PaddlePaddle 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...
4,171
1,665
// Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se) // For other contributors see Contributors.txt // // 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. //...
4,564
1,226
#include "CEGame.h" #include <spdlog/spdlog.h> #include <windowsx.h> #include "CEConsole.h" #include "../Graphics/DirectX12/CEDX12Manager.h" #include "../Graphics/Vulkan/CEVManager.h" #include "../Graphics/OpenGL/CEOGLManager.h" namespace GameEngine = ConceptEngineFramework::Game; namespace GraphicsEngine = ConceptE...
13,238
4,848
// Fill out your copyright notice in the Description page of Project Settings. #include "HotUpdateSubsystem.h" #include "Serialization/JsonSerializer.h" #include "FileDownloadManager.h" #include "FileDownLog.h" #include "IPlatformFilePak.h" #include "HttpModule.h" #include "TimerManager.h" #include "Kismet/GameplaySt...
10,058
2,955
// Copyright (c) Meta Platforms, Inc. and its affiliates. // 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. #include <c10d/logging.h> #include <c10d/debug.h> namespace c10d { namespace detail { bool isLogLev...
956
329
#pragma once #include "prism.hpp" #include "cuboid.hpp" #include "lacze_do_gnuplota.hpp" #include <unistd.h> #include <vector> /*! * \file drone.hpp * * \brief Plik zawiera definicję klasy reprezentujacej drona, * budowanie i przemieszczanie go */ /*! * \class Drone * \brief Opisuje drona o prosto...
14,576
4,504
#include "Arduino.h" #ifndef __COLOR__ #define __COLOR__ #include "Color.cpp" #endif extern unsigned long timer0_millis; class ColorAnimator { private: int time; float durationMs; unsigned long offset, position; int dr, dg, db, r, g, b; Color color, from, to; public: float Progress; ColorAnimator(Co...
908
344
#include "stdafx.h" #include "Hypodermic/ContainerBuilder.h" #include "TestingTypes.h" namespace Hypodermic { namespace Testing { BOOST_AUTO_TEST_SUITE(RegistrationTests) BOOST_AUTO_TEST_CASE(should_call_activation_handler_everytime_an_instance_is_activated_through_resolution) { // Arrange ...
2,325
697
/* * ghex-org * * Copyright (c) 2014-2021, ETH Zurich * All rights reserved. * * Please, refer to the LICENSE file in the root directory. * SPDX-License-Identifier: BSD-3-Clause */ #pragma once #include <oomph/util/mpi_error.hpp> #include "./context.hpp" namespace oomph { class channel_base { protected: ...
2,096
761
#ifndef MENOH_IMPL_COMPOSITE_BACKEND_BACKEND_GENERIC_OPERATOR_IDENTITY_HPP #define MENOH_IMPL_COMPOSITE_BACKEND_BACKEND_GENERIC_OPERATOR_IDENTITY_HPP #include <algorithm> #include <menoh/array.hpp> #include <menoh/composite_backend/procedure.hpp> namespace menoh_impl { namespace composite_backend { names...
1,554
455
/*********************************************************** * AGSBlend * * * * Author: Steven Poulton * * * * Date: 09/01/...
37,370
11,470
/* * Timebased_rules.cpp * * Created on: Nov 16, 2021 * Author: nikolaj */ /***********************************************************************************************+ * \brief -- XX -- Library - CPP Source file * \par * \par @DETAILS * * * \li LIMITATION-TO-CLASS * \li...
1,468
548
#ifndef _TENSOR_OPS_HPP_ #define _TENSOR_OPS_HPP_ #include "common.hpp" #include "network.hpp" #include "vector.hpp" #include <vector> // Routine to compute the second left eigenvector of the Markov Chain // induced by the stationary distribution. // // triples is the list of third order moments (must be symmetric) ...
1,576
494
// generated from rosidl_typesupport_c/resource/idl__type_support.cpp.em // with input from deepracer_interfaces_pkg:srv/SoftwareUpdateStateSrv.idl // generated code does not contain a copyright notice #include "cstddef" #include "rosidl_runtime_c/message_type_support_struct.h" #include "deepracer_interfaces_pkg/msg/r...
10,548
3,878
/* * Copyright (c) 2008, Willow Garage, 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 l...
5,378
1,877
#include "Game.h" #include "Log.h" #include <mutex> #include <future> #include <chrono> #include "UserAction.h" #include "../component/Health.h" namespace tbsd { void Game::processAction(const Action& action) { switch (action.getType()) { case Action::Type::Connected: users.emplace_back(std::any_ca...
2,862
847
/// \file BoundarySetting.cpp /// \brief Model of Boundaries in the XML /// \date Dec 01, 2021 /// \author von Mach /// \copyright <2015-2021> Forschungszentrum Juelich GmbH. All rights reserved. #include "BoundarySetting.h" namespace Settings { BoundarySetting::BoundarySetting(tinyxml2::XMLElem...
703
241
//== ВКЛЮЧЕНИЯ. #include "dialog-about.h" #include "ui_dialog-about.h" //== ФУНКЦИИ КЛАССОВ. //== Класс диалога "О программе". // Конструктор. DialogAbout::DialogAbout(QWidget *p_WidgetParent) : QDialog(p_WidgetParent), p_UI(new Ui::DialogAbout) { p_UI->setupUi(this); } // Деструктор. DialogAbout::~DialogAbout() { de...
333
144
/* =============================================================================== FILE: Rxp2Lasdll CONTENTS: This source code converts rxp riegl format to LAS format (1.4) or - its compressed, but identical twin - the LAZ format. via RIVLIB (dll) + LasLib (dll) VERSIONS: --> CODEBLOCKS 16.01 + mingw 4.9 (G...
30,205
10,693
/* * $Id: $ * * System I/O dispatching implementation * * Copyright (c) 2014-2015 Zerone.IO (Shanghai). All rights reserved. * * $Log: $ * */ #include "Base.h" #include "Log.h" #include "Trace.h" #include "GlobalDefine.h" #include "DispatchIO.h" #include "algoapi/zmq/ZmqHelper.h" #include <string> using nam...
4,356
1,658
/* **============================================================================== ** ** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE ** for license information. ** **============================================================================== */ /* @migen@ */ #include <MI.h> #include ...
3,494
1,201
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
3,545
943
#include <dis6/LinearSegmentParameter.h> using namespace DIS; LinearSegmentParameter::LinearSegmentParameter(): _segmentNumber(0), _segmentAppearance(), _location(), _orientation(), _segmentLength(0), _segmentWidth(0), _segmentHeight(0), _segmentDepth(0), _pad1(0) { } LinearSegmen...
6,228
1,998
#ifndef ENCODER_HPP #define ENCODER_HPP #include <QImage> #include <QSize> extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libswscale/swscale.h> } struct OutputStream { AVStream *st = NULL; AVCodecContext *enc = NULL; int64_t nextPts = 0; AVFrame *frame = NUL...
946
362
#include <Kin/F_qFeatures.h> #include <Kin/F_PairCollision.h> #include <Kin/TM_angVel.h> #include <Kin/F_dynamics.h> #include <Kin/F_pose.h> #include <Kin/F_contacts.h> #include <Kin/forceExchange.h> #include <iomanip> extern bool orsDrawWires; extern bool rai_Kin_frame_ignoreQuatNormalizationWarning; //=============...
2,796
1,214
#include<bits/stdc++.h> #define FOR(i,m,n) for(int i=m;i<(n);i++) #define REP(i,n) FOR(i,0,n) #define ALL(x) (x).begin(),(x).end() using namespace std; typedef long long ll; int main(void){ int q; cin >> q; if (q == 1) cout << "ABC" << endl; else cout << "chokudai" << endl; return 0; }
306
147
// 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 "extensions/common/api/bluetooth/bluetooth_manifest_handler.h" #include "extensions/common/api/bluetooth/bluetooth_manifest_data.h" #include "ex...
1,597
474
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "longformer_attention_base.h" namespace onnxruntime { namespace contrib { Status LongformerAttentionBase::CheckInputs(const TensorShape& input_shape, const TensorShape&...
5,364
1,815
/* ** EPITECH PROJECT, 2019 ** PauseState.hpp ** File description: ** MenuState header */ #ifndef PAUSESTATE_HPP #define PAUSESTATE_HPP #include "State.hpp" class PauseState : public State { public: PauseState(std::shared_ptr<GameData> gameData); ~PauseState(); void onStart(); vo...
494
165
/* * * Copyright (C) 2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "source/loader/driver_discovery.h" #include "source/inc/ze_util.h" #include <iostream> #include <sstream> #include <string> namespace loader { static const char *knownDriverNames[] = { MAKE_LIBRARY_NAME("ze_intel_gp...
936
345
#pragma once #include "Channel.hpp" #include "TObject.h" #include <string> #include <vector> class Event: public TObject { public: Event()=default; void addChannel(const Channel& ch); void clear(); double BoardID{0}; int EventNumber{0}; int ...
636
188
/* * This file is part of Poedit (http://www.poedit.net) * * Copyright (C) 1999-2012 Vaclav Slavik * Copyright (C) 2005 Olivier Sannier * * 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 ...
4,040
1,341
/* Obq_LightSaturationFilter : Send receive test. *------------------------------------------------------------------------ Copyright (c) 2012-2015 Marc-Antoine Desjardins, ObliqueFX (marcantoinedesjardins@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and a...
4,505
1,701
/* AUTHOR: julianferres */ #include <bits/stdc++.h> using namespace std; // neal Debugger template<typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) { return os << '(' << p.first << ", " << p.second << ')'; } template<typename T_container, typename T = typename enable_if<!is_same<T_cont...
2,354
998
/* * Copyright (C) 2011-2020 Intel Corporation. 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 li...
10,192
4,366
#include "generator/osm_source.hpp" #include "generator/intermediate_data.hpp" #include "generator/intermediate_elements.hpp" #include "generator/osm_element.hpp" #include "generator/towns_dumper.hpp" #include "generator/translator_factory.hpp" #include "platform/platform.hpp" #include "geometry/mercator.hpp" #inclu...
7,805
2,531
#include "../menu.hpp" void Menu::drawRageTab() { ImGui::Text("Rage"); }
77
32
// // Copyright (C) OpenSim Ltd. // // This program 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 Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is dis...
5,442
1,513
/* SPDX-License-Identifier: BSD-3-Clause */ /* Copyright © 2019 Fragcolor Pte. Ltd. */ #pragma once #include "foundation.hpp" #include "imgui.h" #include "ImGuizmo.h" namespace ImGuiExtra { #include "imgui_memory_editor.h" }; namespace chainblocks { namespace ImGui { constexpr uint32_t ImGuiContextCC = 'gui '; st...
3,909
1,336
#include <bits/stdc++.h> #define False 'N' #define True 'S' using namespace std; char memo[100002][1002]; void resetar_memo(int n, int m) { for(int i=0;i<=n;i++) { for(int j=0;j<=m;j++) { memo[i][j] = 'F'; } } } char coins(int v, int m, vector<int> moedas) { int troco; char ans, add, nadd; if(memo[v][m]...
1,198
652
#include "Piece.hpp" #include "server/board/Board.hpp" #include <algorithm> #include <iostream> namespace chesspp { namespace server { namespace piece { Piece::Piece(board::Board &b, Position_t const &pos_, Suit_t const &s_, Class_t const &pc) : board(b) //can't use {} , p{pos_} ...
1,506
491
#include <bits/stdc++.h> using namespace std; /* A binary tree node has data, pointer to left child and a pointer to right child */ struct Node { int data; struct Node *left, *right; Node(int data) { this->data = data; left = right = NULL; } }; /* Given a binary tree, print its nodes according to the "bottom...
1,153
443
#include <bits/stdc++.h> using namespace std; /* Given an array of elements, return the length of the longest subarray where all its elements are distinct. For example, given the array [5, 1, 3, 5, 2, 3, 4, 1], return 5 as the longest subarray of distinct elements is [5, 2, 3, 4, 1]. */ int longestSubarrayDistinct(i...
849
381
/** * @file np2arg.cpp * @brief 引数情報クラスの動作の定義を行います */ #include "compiler.h" #include "np2arg.h" #include "dosio.h" #define MAXARG 32 //!< 最大引数エントリ数 #define ARG_BASE 1 //!< win32 の lpszCmdLine の場合の開始エントリ //! 唯一のインスタンスです Np2Arg Np2Arg::sm_instance; /** * コンストラクタ */ Np2Arg::Np2Arg() { ...
2,056
1,181
#pragma once #include "../Input/KeyStates.hpp" #include "../WindowEvent/EventStates.hpp" namespace teaGameLib { input::KeyStates GetKeyStates(); windowEvent::EventStates GetEventStates(); }
192
65
#include <string> #include <vector> /* Model data */ static const struct CatboostModel { unsigned int FloatFeatureCount = 50; unsigned int BinaryFeatureCount = 12; unsigned int TreeCount = 2; unsigned int TreeDepth[2] = {6, 6}; unsigned int TreeSplits[12] = {7, 5, 0, 4, 9, 3, 11, 6, 1, 10, 2, 8}; ...
4,174
2,793
#include "CfgPatches.hpp" #include "..\CfgAreaCategories.inc" class MAP_METADATA_ROOTCLASS { class Altis { class Fotia { #include "Fotia.hpp" }; class KavalaPier { #include "KavalaPier.hpp" }; class Kastro { #include "Kastro.hpp" }; class Kavala { #include "Kavala.hpp" }; class A...
5,127
2,795
#include "cpp_header.h" class Solution { struct customGreater1 { bool operator()(const string & a, const string & b) const { return a.length() > b.length(); } } ; struct { bool operator()(const string & a, const string & b) const { return a.length() > b.length(); } } customGreater2; public: i...
3,430
1,774
#include <iostream> #include <fstream> #include <limits> #include <algorithm> #include <vector> #include <iterator> #include <ctime> #include <cstdio> using namespace std; int minimum(int a, int b) { return a > b ? b : a; } void findMax(vector<int> v, vector<int> &indexes, vector<int> &prev) { int ...
2,497
1,219
#pragma once namespace nestris_x86 { class Das { public: constexpr static int NTSC_FULL_CHARGE = 16; constexpr static int NTSC_MIN_CHARGE = 10; constexpr static int PAL_FULL_CHARGE = 12; constexpr static int PAL_MIN_CHARGE = 8; Das(const int das_full_charge, const int das_min_charge) : das_full_char...
1,075
382
#include "SceneObjectLocation.hpp" #include "../Math/QuaternionUtils.hpp" void SceneObjectLocation::SetPrincipalRight(DirectX::XMVECTOR right) { DirectX::XMVECTOR defaultRight = DirectX::XMVectorSet(1.0f, 0.0f, 0.0f, 0.0f); DirectX::XMStoreFloat4(&RotationQuaternion, Utils::QuaternionBetweenTwoVectorsNormalized(defa...
893
365
#include "StdAfx.h" #ifndef DISABLE_MULTITHREADED #include "StringConv.h" #include "Win32ThreadSupport.h" MultiThreaded::Win32ThreadConstructionInfo::~Win32ThreadConstructionInfo() { this->!Win32ThreadConstructionInfo(); } MultiThreaded::Win32ThreadConstructionInfo::!Win32ThreadConstructionInfo() { ...
6,581
2,152
/* * @Author: gpinchon * @Date: 2021-03-12 16:08:58 * @Last Modified by: gpinchon * @Last Modified time: 2021-05-18 18:26:25 */ #include <Camera/Camera.hpp> #include <Light/SkyLight.hpp> #include <Renderer/Renderer.hpp> #include <Renderer/Surface/GeometryRenderer.hpp> #include <Scene/Scene.hpp> #includ...
7,143
2,584
#include "search/result.hpp" #include "search/common.hpp" #include "search/geometry_utils.hpp" namespace search { Result::Result(FeatureID const & id, m2::PointD const & pt, string const & str, string const & address, string const & type, uint32_t featureType, Metadata const & meta) : ...
7,404
2,677
/* B O O L E A N . C P P * BRL-CAD * * Copyright (c) 2013-2022 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as ...
122,528
50,538
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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) =========================================...
4,708
1,439
{Aviso: Coerção implícita do valor atribuído para 'a', variável a flutuante recebendo um inteiro} {Erro: Função 'func' do tipo inteiro retornando flutuante} {Aviso: Função 'func' declarada, mas não utilizada} {Aviso: Chamada recursiva para a função 'principal'} {Erro: Função 'principal' deveria retornar inteiro, mas re...
435
176
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
3,736
1,162
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
2,574
696
#ifndef RECTANGULAR_PARTICLE_HPP #define RECTANGULAR_PARTICLE_HPP #include <SFML\Graphics.hpp> #include "..\..\include\MiniParticle.hpp" class RectangularParticle : public MiniParticle { public: RectangularParticle(); RectangularParticle(sf::Vector2f pos,sf::Vector2f velocity,sf::Color color,sf::Vector2f size,floa...
885
325
template <class T> class BinaryTreeNode { public: BinaryTreeNode(const T &e, BinaryTreeNode *lchild, BinaryTreeNode *rchild) { data = e; BinaryTreeNode::lchild = lchild; BinaryTreeNode::rchild = rchild; } private: T data; BinaryTreeNode<T> *lchild, *rchild; };
308
104
/******************************************************************************** * File Name: * listing.hpp * * Description: * List out all the threads in use with the project * * 2021 | Brandon Braun | brandonbraun653@gmail.com *************************************************************************...
3,100
808
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* OpenSceneGraph example, osgstereomatch. * * 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 restrict...
19,622
7,743
// (C) Copyright Gennadiy Rozental 2001-2005. // 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://www.boost.org/libs/test for the library home page. // // File : $RCSfile: unit_test.hpp,v...
3,488
1,188
/* * 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 ...
4,135
1,444
/* * Copyright (c) 2019 by flomesh.io * * Unless prior written consent has been obtained from the copyright * owner, the following shall not be allowed. * * 1. The distribution of any source codes, header files, make files, * or libraries of the software. * * 2. Disclosure of any source codes pertaini...
6,504
2,576
#define CATCH_CONFIG_MAIN #define CATCH_CONFIG_NOSTDOUT #include <catch2/catch.hpp> class out_buff : public std::stringbuf { std::FILE *m_stream; public: out_buff(std::FILE *stream) : m_stream(stream) {} ~out_buff() { pubsync(); } int sync() { int ret = 0; for (unsigned char c : str()) { if (putc(c, m_s...
708
300
#include "pch_script.h" #include "WeaponShotgun.h" #include "WeaponAutomaticShotgun.h" using namespace luabind; #pragma optimize("s",on) void CWeaponShotgun::script_register (lua_State *L) { module(L) [ class_<CWeaponShotgun,CGameObject>("CWeaponShotgun") .def(constructor<>()), class_<CWeaponAut...
409
182
// Copyright 2015 The Gemmlowp 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 ...
12,064
5,040
// // Copyright (C) 2007-2013 Greg Landrum // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <GraphMol/RDKitBase.h> #include <Grap...
18,412
6,680
#include "LoopManager.hpp" LoopManager::LoopManager(const sf::Time & _timePerFrame) :timePerFrame(_timePerFrame) { timeSinceLastUpdate = sf::Time::Zero; } void LoopManager::increaseTime() { timeSinceLastUpdate += clock.restart(); } bool LoopManager::canChangeTheFrame() { return timeSinceLastUpdate <= timePer...
404
134
#include "label_utils.h" #include <QtXml/QDomDocument> #include <QtCore/QFile> #include <QtCore/QStringList> #include <QtCore/QString> void getLabelNames(const std::string& filename, std::map<uint32_t, std::string>& label_names) { QDomDocument doc("mydocument"); QFile file(QString::fromStdString(filename)); ...
1,811
657
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "mozilla/Util.h" #includ...
5,027
1,697
//////////////////////////////////////////////////////////////////////////// // // splitex.cpp // Based upon code from Oleg G. Galkin // Modified to handle multiple hidden rows #include "stdafx.h" #include "splitex.h" #if defined(_DEBUG) && !defined(MMGR) #define new DEBUG_NEW #undef THIS_FILE static char...
11,109
5,406
//////////////////////////////////////////////////////////// // // PySFML - Python binding for SFML (Simple and Fast Multimedia Library) // Copyright (C) 2007, 2008 Rémi Koenig (remi.k2620@gmail.com) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors ...
13,736
5,481
#include <stdio.h> #include <algorithm> #define MAX_N 250 using namespace std; pair<int, int> p[MAX_N]; int main() { int n, x, y, a, b; scanf("%d%d%d", &n, &x, &y); for (int i = 0; i < n; i++) { scanf("%d%d", &a, &b); p[i] = make_pair((x-a) * (x-a) + (y-b) * (y - b), i + 1); } ...
421
213
#include "Ticket.h" using namespace std; Ticket::Ticket(const Flight& flight, const bool& baggage): flight(flight) { this->baggage = baggage; checked_in = false; } Flight Ticket::getFlight() const { return flight; } bool Ticket::getBaggage() const { return baggage; } void Ticket::checkIn() { checked...
394
152
#include "fileIOPlugin.h" #include "../../SharedMemoryPublic.h" #include "../b3PluginContext.h" #include <stdio.h> #include "../../../CommonInterfaces/CommonFileIOInterface.h" #include "../../../Utils/b3ResourcePath.h" #include "Bullet3Common/b3HashMap.h" #include <string.h> //memcpy/strlen #ifndef B3_EXCLUDE_DEFAULT_F...
15,832
7,307
//------------------------------------------------------------------------------------- // ExportMaterial.cpp // // Advanced Technology Group (ATG) // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // // http://go.microsoft.com/fwlink/?LinkId=226208 //-----------------------------------...
1,638
457
// // Created by Quentin Liardeaux on 10/5/19. // #include "AddFriendWidget.hpp" ui::AddFriendWidget::AddFriendWidget(boost::shared_ptr<NotificationHandler> notifHandler, QWidget *parent) : QWidget(parent), notifHandler_(notifHandler) { QPointer<QPushButton> closeButton = new QPushButton(tr("Close...
1,012
321
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // This is a GPU-backend specific test. #include "Test.h" #if SK_SUPPORT_GPU #include "GrBackendSurface.h" #include "GrContextPriv.h" #include "GrProxyProvider.h" #include ...
16,809
4,264
#include "include/gcc_builtin.hpp" #include "include/mss.hpp" charBuffer *pb; int FORCE_NOINLINE helper(bool option) { charBuffer buffer; if(option) { update_by_pointer(pb->data, 0, 8, 1, 'c'); return check(buffer.data, 7, 1, 'c'); } else { pb = &buffer; char_buffer_init(&buffer, 'u', 'd', 'o'...
430
185
/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
5,844
3,068
struct MSX2 : MSX { auto name() -> string override { return "MSX2"; } auto extensions() -> vector<string> override { return {"msx2"}; } };
143
48
// Copyright (C) 1998 Microsoft Corporation // // Splash screen for unattended mode // // 10-1-98 sburns #include "headers.hxx" #include "UnattendSplashDialog.hpp" #include "resource.h" #include "state.hpp" const UINT SELF_DESTRUCT_MESSAGE = WM_USER + 200; static const DWORD HELP_MAP[] = { ...
1,842
729
#include "switch_wrapper.h" #include <limits.h> #include <locale.h> #include <stdlib.h> #include <unistd.h> #include <zlib.h> #include "main/main.h" #include "os_switch.h" #define FB_WIDTH 1280 #define FB_HEIGHT 720 int main(int argc, char *argv[]) { socketInitializeDefault(); nxlinkStdio(); int apptype = applet...
2,405
1,179
/****************************************************************************** ** Copyright (C) 1998 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 1.4 ** ** Author: 07/01/99 ** ** Date: 99/07/05 ** ** File: mc_mwf...
30,382
12,111