text
string
size
int64
token_count
int64
#pragma once #include "stdafx.h" // MountainCar MDP - see Gridworld.hpp for comments regarding the general structure of these environment/MDP objects class MountainCar { public: MountainCar(); int getStateDim() const; int getNumActions() const; double update(const int & action, std::mt19937_64 & genera...
651
246
#include "FWCore/PluginManager/interface/ModuleDef.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/Framework/interface/ModuleFactory.h" #include "FWCore/Framework/interface/ESProducer.h" // Producers //#include "PixelTrackProducerWithZPos.h" //DEFINE_FWK_MODULE(PixelTrackProducerWithZPos); #in...
2,320
808
// license:BSD-3-Clause // copyright-holders:smf #include "emu.h" #include "atapicdr.h" #define SCSI_SENSE_ASC_MEDIUM_NOT_PRESENT 0x3a #define SCSI_SENSE_ASC_NOT_READY_TO_READY_TRANSITION 0x28 #define T10MMC_GET_EVENT_STATUS_NOTIFICATION 0x4a // device type definition DEFINE_DEVICE_TYPE(ATAPI_CDROM, atapi_cdrom...
4,571
2,180
//$Id$ //------------------------------------------------------------------------------ // CompareFilesDialog //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool // // Copyright (c) 2002 - 2020 United States Government as r...
26,843
8,432
#include <set> #include <vector> #include "dg/ReachingDefinitions/ReachingDefinitions.h" #include "dg/BBlocksBuilder.h" namespace dg { namespace dda { void ReadWriteGraph::buildBBlocks(bool dce) { assert(getRoot() && "No root node"); DBG(dda, "Building basic blocks"); BBlocksBuilder<RWBBlock> builder; ...
883
293
#include "features.hpp" #include <SDL2/SDL_scancode.h> #include <vector> int score; ImVec2 cursorPos; float deltaTime; bool alive = true; bool paused = false; float birdHeight; class Bird { public: void draw(ImDrawList* drawList) { drawList->AddRectFilled(ImVec2{cursorPos.x+60, cursorPos.y+(400-height)}, ...
3,957
1,443
/* Atanua Real-Time Logic Simulator Copyright (c) 2008-2014 Jari Komppa 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, in...
4,729
2,236
#include<iostream> #include<stdlib.h> using namespace std; // 单链表的操作 typedef struct LinkNode{ int data; struct LinkNode *next; }LinkNode; // headermake void creat(LinkNode *L){ LinkNode *node; for(int i = 0;i < 10;i++){ node = (LinkNode *)malloc(sizeof(LinkNode)); node->data = rand()%13...
2,392
963
#include "aoc21/helpers.h" #include <array> #include <algorithm> #include <list> #include <map> #include <set> #include <vector> namespace { constexpr int RoomCount = 4; constexpr int RoomDepth = 2; constexpr int HallwaySize = 4 + (RoomCount * 2) - 1; using Hallway = std::array<char, HallwaySize>; using Roo...
9,594
3,423
// // MIT License // // Copyright (c) 2017-2018 Thibault Martinez and Simon Ninon // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the r...
7,181
2,330
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) Microsoft Corporation. All rights reserved. ///////////////////////////////////////////////////////...
1,180
278
// JPZsumofdigits.cpp : Defines the entry point for the console application. // Joshua Paz; a program that takes a whole integer and adds the digits for a sum #include "stdafx.h" #include <iostream> using namespace std; int main() { //variables int userint = 0; int intholder = 0; int sum = 0; //pr...
771
285
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
10,727
3,502
/* * Copyright (c) 2015 - 2022, Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ #ifndef ENVIRONMENT_HPP_INCLUDE #define ENVIRONMENT_HPP_INCLUDE #include <string> #include <vector> #include <utility> #include <map> #include <set> #include <memory> namespace geopm { /// @brief Environment class en...
6,211
1,680
// ================================================================================================= // This file is part of the CLBlast project. The project is licensed under Apache Version 2.0. This // project loosely follows the Google C++ styleguide and uses a tab-size of two spaces and a max- // width of 100 char...
1,290
336
#pragma once #include <stdint.h> #include <memory> #include <string> #include "ServerState.hh" #include "Lobby.hh" #include "Client.hh" void process_chat_command(std::shared_ptr<ServerState> s, std::shared_ptr<Lobby> l, std::shared_ptr<Client> c, const std::u16string& text);
297
115
//////////////////////////////////////////////////////////////////////////////// // // (C) 2020, Jason Curl // //////////////////////////////////////////////////////////////////////////////// // // Header: getcurrentprocessornumber.cpp // // Description: // Entry points to the Windows DLL. // /////////////////////////...
1,454
437
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2017 Francois Beaune, The appleseedhq Organization // ...
29,325
7,986
// // $Id: Matrix.cpp 1539 2009-11-19 20:12:28Z khoff $ // // // Original author: Kate Hoff <katherine.hoff@proteowizard.org> // // 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 ma...
2,591
856
/****************************************************************************** Copyright (c) 2018, Alexander W. Winkler. 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...
3,816
1,321
#include <Windows.h> #include "Includes.h" #include "Menu.h" #include "Keyboard.h" #include "Items.h" #include "Colors.h" #include "EnableDebug.h" #include "Hacks.h" #include "DrawMenu.h" BOOL APIENTRY DllMain(HMODULE hmodule, DWORD ui_reason_for_call, LPVOID lpReserved) { EnableDebugPrivilege(); if (...
402
167
#include "AssignmentExpressionHandler.h" #include "StoreInstruction.h" #include "MathInstruction.h" #include "PopInstruction.h" #include "Assembler.h" namespace Powder { AssignmentExpressionHandler::AssignmentExpressionHandler() { } /*virtual*/ AssignmentExpressionHandler::~AssignmentExpressionHandler() { } /...
4,627
1,287
#pragma once //------------------------------------------------------------------------------ namespace reporter::resources::different_type_report { //------------------------------------------------------------------------------ extern const char * const Name; extern const char * const Header; extern const char * ...
548
116
#ifndef INITIALPOSE_NODE_H #define INITIALPOSE_NODE_H #include <initialpose_include.hpp> #include <initialpose_config.hpp> #include <initialpose_estimation.hpp> class initialpose_node { public: initialpose_node(std::string node_name); bool setTransform(std::string laser_topic_name); bool GetStaticMap(); void ...
947
349
#include "util/openglhelper.h"
33
16
#include <iostream> #include <TNL/Algorithms/ParallelFor.h> #include <TNL/Matrices/DenseMatrix.h> #include <TNL/Matrices/MatrixWrapping.h> #include <TNL/Devices/Host.h> #include <TNL/Devices/Cuda.h> template< typename Device > void wrapMatrixView() { const int rows( 3 ), columns( 4 ); TNL::Containers::Vector< do...
967
372
/* * Copyright (C) [2020] Futurewei Technologies, Inc. All rights reverved. * * OpenArkFE is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS...
46,314
15,899
#include "wkbreader.hpp" #include <sstream> WKBReader::WKBReader() { _reader = new geos::io::WKBReader(); } WKBReader::WKBReader(const geos::geom::GeometryFactory *gf) { _reader = new geos::io::WKBReader(*gf); } WKBReader::~WKBReader() {} Persistent<Function> WKBReader::constructor; void WKBReader::Initial...
2,199
743
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "SoundUtilitiesEditorModule.h" #include "CoreMinimal.h" #include "Stats/Stats.h" #include "Modules/ModuleInterface.h" #include "Modules/ModuleManager.h" #include "AssetToolsModule.h" #include "AssetTypeActions_SoundSimple.h" #include "AssetTypeActio...
1,148
356
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: bool isSameTree(TreeNode* p, TreeNode* q) { stack<TreeNode*> s1; stack<TreeNode...
2,848
937
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved #include "Utils/SpatialDebugger.h" #include "EngineClasses/SpatialNetDriver.h" #include "Interop/SpatialReceiver.h" #include "Interop/SpatialSender.h" #include "Interop/SpatialStaticComponentView.h" #include "LoadBalancing/GridBasedLBStrategy.h" #include "Lo...
18,247
6,399
/* * This is a simple example program to demonstrate the usage of the * PPUtils::UniformObjectPool class template. * * Author: Perttu Paarlahti perttu.paarlahti@gmail.com * Created: 29-June-2015 */ #include <iostream> #include <functional> #include "../../source/PPUtils/uniformobjectpool.hh" class VeryCo...
1,490
493
#include "rutil/ParseException.hxx" namespace resip { ParseException::ParseException(const Data& msg, const Data& context, const Data& file, const int line) : resip::BaseException(msg, file, line), mContext(con...
530
152
/******************************************************************************* * Copyright (C) 2017 Advanced Micro Devices, Inc. All rights reserved. *******************************************************************************/ #ifndef GUARD_MIOPENGEMM_DEGEMMAPIQQ_HPP #define GUARD_MIOPENGEMM_DEGEMMAPIQQ_HPP #i...
2,183
788
/* * Copyright (c) 2020, Andreas Kling <kling@seguebaseos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Badge.h> #include <AK/Function.h> #include <AK/HashMap.h> #include <LibGUI/DisplayLink.h> #include <LibGUI/WindowServerConnection.h> namespace GUI { class DisplayLinkCallback : public RefCount...
1,664
588
// Copyright Epic Games, Inc. All Rights Reserved. #include "BombastManifestDemo.h" #include "Modules/ModuleManager.h" IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, BombastManifestDemo, "BombastManifestDemo" );
223
81
#include <stdio.h> #include <stdlib.h> void * Realloc(void *ptr, int size) { if (size == 0) size = sizeof(int); if (ptr == NULL) ptr = calloc(size,1); else ptr = realloc(ptr, size); return(ptr); }
220
94
#include "Terminal.h" #include "STL/Graphics/Framebuffer.h" #include "STL/String/String.h" #include "STL/String/cstr.h" #include "STL/System/System.h" #include "Version.h" #define NEWLINE_OFFSET RAISED_WIDTH * 3 namespace Terminal { uint64_t PrevTick = 0; char Command[64]; STL::String Text; STL::Po...
6,346
2,072
// Borland C++ Builder // Copyright (c) 1995, 2002 by Borland Software Corporation // All rights reserved // (DO NOT EDIT: machine generated header) 'ElTreeDTPickEdit.pas' rev: 6.00 #ifndef ElTreeDTPickEditHPP #define ElTreeDTPickEditHPP #pragma delphiheader begin #pragma option push -w- #pragma option push -Vx #inc...
2,223
669
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library ...
8,541
2,758
/* * The MIT License (MIT) * * Copyright (c) 2015 Microsoft Corporation * * -=- Robust Distributed System Nucleus (rDSN) -=- * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software witho...
12,782
4,194
// solved: 2014-03-06 21:38:08 // https://codeforces.com/contest/394/problem/B #include <bits/stdc++.h> using namespace std; int main() { int p, x, n = 0, rem = 0, last; vector<int> num; cin >> p >> x; for (int i = 1; i <= 9; i++) { n = 1; last = i; rem = 0; num.push_...
925
357
/** * Copyright (c) 2012 - 2014 TideSDK contributors * http://www.tidesdk.org * Includes modified sources under the Apache 2 License * Copyright (c) 2008 - 2012 Appcelerator Inc * Refer to LICENSE for details of distribution and use. **/ #include "file_stream.h" #include <cstring> #include <sstream> #include <s...
12,750
3,924
/* * Open Source Movement Analysis Library * Copyright (C) 2016, Moveck Solution 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 reta...
2,439
827
/* * Copyright (C) 2010 University of Szeged * Copyright (C) 2010 Zoltan Herczeg * Copyright (C) 2013 Google 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: * 1. Redistributions of so...
5,921
1,893
/* * Copyright (C) 2004-2010 NXP Software * Copyright (C) 2010 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/...
12,808
3,777
// // fetch_request_test.cpp // ---------------------- // // Copyright (c) 2015 Daniel Joos // // Distributed under MIT license. (See file LICENSE) // #include <gtest/gtest.h> #include <libkafka_asio/libkafka_asio.h> class FetchRequestTest : public ::testing::Test { protected: virtual void SetUp() { ASSERT_...
2,109
866
/* * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. * Copyright (C) 2010 Google 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: * 1. Redistributions of source code must retai...
18,533
5,655
#include "Color.h" #include "Colorf.h" #include <nctl/algorithms.h> namespace ncine { /////////////////////////////////////////////////////////// // STATIC DEFINITIONS /////////////////////////////////////////////////////////// const Color Color::Black(0, 0, 0, 255); const Color Color::White(255, 255, 255, 255); con...
6,368
2,478
#include "stdafx.h" //HINTERNET int WINAPI winhttpopenrequesthook (DWORD RetAddr, pfnwinhttpopenrequest fnwinhttpopenrequest, HINTERNET hConnect, LPCWSTR pwszVerb, LPCWSTR pwszObjectName, LPCWSTR pwszVersion, LPCWSTR pwszReferrer, LPCWSTR* ppwszAcceptTypes, DWORD dwFlags) { //"spclient.wg.spotify.com" //POST...
2,940
1,158
/* Copyright (c) 2013, Richard Martin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
3,811
1,480
#include <Alerter/Alerter.h>
33
19
/** * @Author: Tian Qiao <qiaotian> * @Date: 2016-07-03T11:17:52+08:00 * @Email: qiaotian@me.com * @Last modified by: qiaotian * @Last modified time: 2016-07-03T11:19:50+08:00 * @License: Free License * @Inc: Google, Uber * @Easy */ Given a string, determine if a permutation of the string could form a palindrome....
1,315
479
// 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 "chrome/browser/sync/test/integration/passwords_helper.h" #include <sstream> #include <utility> #include "base/compiler_specific.h" #includ...
9,991
3,095
#define HL_NAME(n) hlimgui_##n #include <hl.h> #include "imgui/imgui.h" #include "utils.h" #include <string> typedef struct { float x; float y; float u; float v; float r; float g; float b; float a; } HeapVertex; static vclosure* s_render_function = nullptr; void renderDrawLists(ImDrawData* draw_data) { if...
6,770
3,032
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.ValueType #include "System/ValueType.hpp" // Including type: System.IntPtr #in...
2,402
733
/******************************************************************************* * Copyright (C) 2019-2021 Intel Corporation * * SPDX-License-Identifier: MIT ******************************************************************************/ #include "vaapi_context.h" #include "inference_backend/logger.h" #include "u...
4,709
1,567
/** * This file has been modified from its orginal sources. * * Copyright (c) 2012 Software in the Public Interest Inc (SPI) * Copyright (c) 2012 David Pratt * * 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...
2,594
756
/* * Copyright 2009, Google 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 conditio...
3,508
1,209
// Generated by Haxe 4.0.5 #include <hxcpp.h> #ifndef INCLUDED_kha_graphics4_ConstantLocation #include <hxinc/kha/graphics4/ConstantLocation.h> #endif #ifndef INCLUDED_kha_kore_graphics4_ConstantLocation #include <hxinc/kha/kore/graphics4/ConstantLocation.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_8a98049bf91d5975_10_ne...
3,361
1,327
/* * Copyright (C) 2005, 2006 Apple Inc. All rights reserved. * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) * Copyright (C) 2010 Igalia S.L. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met:...
7,086
2,494
// Problem Code: 1333A #include <iostream> #include <string> #include <vector> using namespace std; void little_artem(int n, int m) { vector<string> grid(n, string(m, 'B')); grid[0][0] = 'W'; for (int i = 0; i < n; i++) cout << grid[i] << endl; } int main() { int t; cin >> t; while (t--) { int n, m; cin...
369
176
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (c) Microsoft Corporation. All rights reserved #include "pch.h" #include "T...
6,046
1,667
/* * Stopwatch.cpp * * Created on: Jul 14, 2014 * Author: Pimenta */ // this #include "metallicar_time.hpp" namespace metallicar { Stopwatch::Stopwatch() : started(false), paused(false), initialTime(0), pauseTime(0) { } void Stopwatch::start() { started = true; paused = false; ...
817
309
#include <stdio.h> #include "ResourceFormatter/ResourceFormatterText.hpp" ResourceFormatterText::ResourceFormatterText() { } int ResourceFormatterText::decode(const std::vector<uint8_t> &data, std::ostream &out) { for(size_t i = 0; i < data.size(); i++) { out << static_cast<char>(data[i]); } re...
330
113
/************************************************************************** * Copyright 2017-2018 NextCash, LLC * * Contributors : * * Curtis Ellis <curtis@nextcash.tech> * * Distributed u...
145,529
56,620
#include "stdafx.h" #include "DummyTransformationSceneNode.h" #include "SceneNode.h" using namespace irr; using namespace System; namespace Irrlicht { namespace Scene { DummyTransformationSceneNode^ DummyTransformationSceneNode::Wrap(scene::IDummyTransformationSceneNode* ref) { if (ref == nullptr) return...
814
249
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
6,285
2,284
#include "pmx_utils.h" #include "ppl/nn/models/pmx/oputils/onnx/lstm.h" using namespace std; using namespace ppl::nn::onnx; using namespace ppl::nn::pmx::onnx; TEST_F(PmxTest, test_lstm) { DEFINE_ARG(LSTMParam, lstm); lstm_param1.activation_alpha = {0.23f}; lstm_param1.activation_beta = {0.33f}; lstm_...
1,356
590
/* * ModelLoader.h * * Created on: Jan 23, 2013 * Author: anton */ #ifndef MODELLOADER_H_ #define MODELLOADER_H_ #include "gdx-cpp/graphics/g3d/ModelLoaderHints.hpp" #include "gdx-cpp/graphics/g3d/model/Model.hpp" #include "gdx-cpp/files/FileHandle.hpp" namespace gdx { class ModelLoader { public: virtua...
442
188
/* * Copyright (C) 2016 Open Source Robotics Foundation * * 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 appl...
5,100
1,969
/** * @file <argos3/testing/experiment/test_loop_functions.cpp> * * @author Carlo Pinciroli <ilpincy@gmail.com> */ #include "test_loop_functions.h" #include <argos3/plugins/robots/foot-bot/simulator/footbot_entity.h> #include <argos3/plugins/simulator/entities/led_entity.h> /**************************************...
1,234
476
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a BSD-style license that can * be found in the License.html file in the root of the source tree. */ //--------------------------------------------------------------------------- // For user: you can disab...
9,875
2,790
/* FENCE.hpp * by Lut99 * * Created: * 28/06/2021, 16:57:12 * Last edited: * 28/06/2021, 16:57:12 * Auto updated? * Yes * * Description: * Contains a class that wraps a VkFence object. **/ #ifndef RENDERING_FENCE_HPP #define RENDERING_FENCE_HPP #include <vulkan/vulkan.h> #include "../gpu/GPU.hpp...
2,381
797
#include <QtGui/QApplication> #include <iostream> #include "login.h" bool hasArgument(const char* p, int argc, char* argv[]) { for (int i = 0; i < argc; i++) { int j = 0; bool areEqual = true; while (p[j] && argv[i][j] && areEqual) { if (p[j] != argv[i][j]) areEqual = false; j++; } if (areEqual) ...
549
256
#include "solution.h" xor_linked_list::xor_linked_list() : memory_(3), size_{0} {} void xor_linked_list::add(std::int32_t value) { if (size_ == 0) { memory_[0] = {0, value}; size_++; return; } // resize internam memory if necessary if (size_ == memory_.size() - 1) { me...
1,120
437
#include "Expression.h" Expression::Expression(Expressions typeExp, Symboles type):Symbole(type) { this->typeExp=typeExp; expression = NULL; } Expression::Expression():Symbole(type) { expression = NULL; } Expressions Expression::getExprType() { return this->typeExp; } Expression::~Expression() { //dtor } void...
639
210
// Created on: 1995-01-27 // Created by: Jacques GOUSSARD // Copyright (c) 1995-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the G...
5,248
1,753
// ----------------------------------------------------------------------- // // // MODULE : BodyFX.cpp // // PURPOSE : Body special FX - Implementation // // CREATED : 8/24/98 // // (c) 1998-1999 Monolith Productions, Inc. All Rights Reserved // // --------------------------------------------------------------------...
9,754
3,766
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */ #include <sstream> #include <limits> #include <map> #include "ifcpp/reader/ReaderUtil.h" #include "ifcpp/writer/WriterUtil.h" #include "ifcpp/model/BasicTypes.h" #include "ifcpp/model/BuildingException.h" #include "ifcpp/IFC4/include/IfcMeas...
1,584
590
// // FILE NAME: TestEvents_Scheduled.cpp // // AUTHOR: Dean Roddey // // CREATED: 09/21/2009 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2020 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://op...
6,750
2,147
// // Created by ice-phoenix on 5/27/15. // #include <llvm/Pass.h> #include "Passes/Defect/DefectManager.h" #include "Passes/PredicateStateAnalysis/PredicateStateAnalysis.h" #include "Passes/Tracker/SlotTrackerPass.h" #include "Reanimator/Reanimator.h" #include "State/Transformer/AggregateTransformer.h" #include "Sta...
2,406
798
#ifndef OSRM_EXTRACTOR_GUIDANCE_TURN_LANE_AUGMENTATION_HPP_ #define OSRM_EXTRACTOR_GUIDANCE_TURN_LANE_AUGMENTATION_HPP_ #include "extractor/guidance/intersection.hpp" #include "extractor/guidance/turn_lane_data.hpp" namespace osrm { namespace extractor { namespace guidance { namespace lanes { LaneDataVector handleNo...
601
216
#include <bits/stdc++.h> #define N 200020 #define ll long long using namespace std; inline int read(){ int x=0,f=1;char ch=getchar(); while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar()); while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar(); return f?x:-x; } int a[N]; bool b[N]; int n, sz; bool check(int x...
1,529
927
#include <chrono> #include "RandomGeneratorBase.hpp" namespace { long long createSeed() { auto seed = std::chrono::system_clock::now().time_since_epoch().count(); return seed; } } thread_local std::mt19937 RandomGeneratorBase::mEngine(static_cast<unsigned int>(createSeed()) ); std::mt19937 & RandomGeneratorBa...
363
132
// Copyright 2016 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 "third_party/blink/renderer/bindings/core/v8/generated_code_helper.h" #include "third_party/blink/renderer/bindings/core/v8/native_value_traits_...
21,481
6,679
// 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 "base/threading/platform_thread.h" #include <errno.h> #include <pthread.h> #include <sched.h> #include <stddef.h> #include <stdint.h> #inclu...
8,344
2,613
#include <stan/math/prim/meta.hpp> #include <gtest/gtest.h> TEST(MathMetaPrim, or_type) { bool temp = stan::math::disjunction<std::true_type, std::true_type, std::true_type>::value; EXPECT_TRUE(temp); temp = stan::math::disjunction<std::false_type, std::false_type, ...
681
224
#include<bits/stdc++.h> #include <windows.h> #include <glut.h> #define pi (2*acos(0.0)) using namespace std; double cameraHeight; double cameraAngle; int drawgrid; int drawaxes; double angle; double cylinderHeight = 20, cylinderRadius = 30, sphereRadius = 20; double movementOnZaxes = 40, sphereZaxisMovement = 40, ...
9,953
3,691
#include <iostream> #include <vector> using namespace std; using std::vector; using std::pair; void depth(vector<vector<int> > &adj ,vector<bool> &visited , int curr_node){ visited[curr_node] = true; for(int i = 0; i < adj[curr_node].size() ; i++){ int v = adj[curr_node][i]; if(!visited[v]) depth(adj,visite...
873
382
/* * (C) Copyright 2019 UCAR * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ #include "ufo/filters/obsfunctions/CLWRetMW.h" #include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #inclu...
16,712
6,206
#pragma once #include "base.hpp" int user1_value_by_visitation(Base& base);
76
29
#include <reversed.hpp> #include <array> #include <string> #include <utility> #include <vector> #include "catch.hpp" #define DECLARE_REVERSE_ITERATOR #include "helpers.hpp" #undef DECLARE_REVERSE_ITERATOR using iter::reversed; using Vec = const std::vector<int>; TEST_CASE("reversed: can reverse a vector", "[revers...
2,437
1,046
/** * Copyright (c) 2012 - 2014 TideSDK contributors * http://www.tidesdk.org * Includes modified sources under the Apache 2 License * Copyright (c) 2008 - 2012 Appcelerator Inc * Refer to LICENSE for details of distribution and use. **/ #include "javascript_module.h" namespace tide { KKJSMethod::KKJSMetho...
4,438
1,300
/* 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 by applicable law or...
2,765
1,002
/* Problem : Vertical Order Traversal of a Binary Tree */ // Approach make variable x and y and attach them with every node x for horizontal distance and y for vertical distance // Code map<int,set<pair<int,int>>> ans; void pre( TreeNode *root, int horizontal_Level, int vertical_Level ){ if(!root) ...
854
259
#include <iostream> #include <stdio.h> #include <string> #include <fstream> #include <vector> #include <unordered_map> #include <stack> #include <deque> #include <algorithm> using namespace std; int main() { cout << "Hello World!" << endl; return 0; }
268
97
// // Created by Vitali Kurlovich on 4/13/16. // #ifndef RMVECTORMATH_QUATERNION_DOUBLE_TYPE_HPP #define RMVECTORMATH_QUATERNION_DOUBLE_TYPE_HPP #include "../quaternion/TQuaternion.hpp" namespace rmmath { typedef quaternion::TQuaternion<double> dquat; } #endif //RMVECTORMATH_QUATERNION_DOUBLE_TYPE_HPP
312
147
// 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 "chrome/browser/importer/toolbar_importer_utils.h" #include <string> #include <vector> #include "base/bind.h" #include "base/strings/string...
2,679
840
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ int main() { auto x = new int[8]; auto y = new int[8]; y[0] = 42; auto x_ptr = x + 8; // one past the end if (x_ptr == &...
382
152