text
string
size
int64
token_count
int64
// Copyright 2018 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <lib/unittest/unittest.h> #include <lib/unittest/user_memory.h> #include <lib/user_copy/user_ptr.h> #include <stdio.h> #...
7,329
3,026
/// /// anax /// An open source C++ entity system. /// /// Copyright (C) 2013-2014 Miguel Martin (miguel@miguel-martin.com) /// /// 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 r...
3,358
1,002
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /** * @brief A header file that provides ExecutableNetwork class * * @file ie_executable_network.hpp */ #pragma once #include <ostream> #include <map> #include <memory> #include <string> #include <vector> #include "cpp/ie_cnn...
6,712
1,815
#include <bits/stdc++.h> using namespace std; // shortened type names typedef long long ll; typedef vector<int> vi; typedef pair<int, int> node; // macros #define X first #define Y second #define PB push_back #define MP make_pair #define REP(i, a, b) for (int i = a; i < b; i++) #define REPI(i, a, b) for (int i = a; i...
2,651
1,069
/* * Copyright 2021-2022 Niket Naidu. 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 a...
2,686
879
/* * A test for stardard coop reg/dereg notificators. */ #include <iostream> #include <sstream> #include <so_5/all.hpp> #include <test/3rd_party/various_helpers/time_limited_execution.hpp> struct msg_child_deregistered : public so_5::signal_t {}; class a_child_t : public so_5::agent_t { typedef so_5::agent_t b...
2,414
1,190
/* * 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 may ...
15,343
3,930
/* file: svd_fast_distributed_mpi.cpp */ /******************************************************************************* * Copyright 2017-2021 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...
7,138
2,239
/* Copyright (c) 2015, Google Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
2,506
960
//******************************************************************* // Copyright (C) 2000 ImageLinks Inc. // // License: MIT // // See LICENSE.txt file in the top level directory for more details. // // Author: Garrett Potts // //************************************************************************* // $Id: ossi...
1,596
557
// Copyright (c) 2014-2019, The Monero Project // Copyright (c) 2018, The Loki Project // // 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 reta...
13,115
4,899
class Solution { public: vector<string> uncommonFromSentences(string A, string B) { stringstream ss(A + ' ' + B); string s; unordered_map<string, int> table; while (getline(ss, s, ' ')) { ++table[s]; } vector<string> result; for (auto& p : table) {...
453
143
/* * 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...
4,886
1,679
// ======================================================================== // // Copyright 2009-2013 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
53,580
18,527
#include "uiMenu.h" #include "uiSelectionBox.h" #include "uiNodeSystem.h" #include "../serializer.h" #include "../pathUtils.h" #include <iostream> #include <portable-file-dialogs.h> namespace uiMenu { sf::RenderWindow* renderWindow; const sf::Vector2i* mouseScreenPosPointer; uiSelectionBox selectionBox; std::...
3,139
1,183
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBmpStandardCodec.h" #include "SkCodecPriv.h" #include "SkColorData.h" #include "SkStream.h" /* * Creates an instance of the decoder * Called only by NewFromStre...
13,447
4,043
/* * * Copyright 2015 gRPC authors. * * 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 la...
11,315
4,093
/* Copyright 2008 Intel Corporation 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 BOOST_POLYGON_POLYGON_HPP #define BOOST_POLYGON_POLYGON_HPP #define BOOST_...
2,523
977
/* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
16,125
5,172
/* * Copyright (c) 2021 * Nakata, Maho * 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 li...
17,443
8,730
#include <gtest/gtest-message.h> // for Message #include <gtest/gtest-test-part.h> // for TestPartResult, SuiteApiResolver, TestFactoryImpl #include <memory> // for __shared_ptr_access, shared_ptr, allocator #include <string> // for wstring, basic_string #include <vector> // for vector #include "ftxui/component/c...
4,051
1,524
#include <iostream> using namespace std; #define MOVE_CTOR class MovePtr { public: MovePtr() : d(new int(0)) { cout << "ctor:" << ++n_ctor << endl; } MovePtr(const MovePtr& m) : d(new int(*(m.d))) { cout << "copy ctor:" << ++n_cptr << endl; } #ifdef MOVE_CTOR MovePtr(MovePtr&& m)...
1,051
447
/****************************************************************************** * * Freescale Semiconductor Inc. * (c) Copyright 2013 Freescale Semiconductor, Inc. * ALL RIGHTS RESERVED. * *************************************************************************** * * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND...
11,440
4,032
/////////////////////////////////////////////////////////////////////////////// // File: FP420DigiMain.cc // Date: 12.2006 // Description: FP420DigiMain for FP420 // Modifications: /////////////////////////////////////////////////////////////////////////////// #include "SimDataFormats/TrackingHit/interface/PSimHit.h" #...
11,591
4,485
/******************************************************************************* * Copyright 2019-2022 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.apa...
16,123
6,367
#ifndef TIMESTEPPING_RK_HPP #define TIMESTEPPING_RK_HPP class TimesteppingRK { // runge kutta data storages DataArray<2>** RK_h_t; DataArray<2>** RK_u_t; DataArray<2>** RK_v_t; int runge_kutta_order; public: TimesteppingRK() : RK_h_t(nullptr), RK_u_t(nullptr), RK_v_t(nullptr), runge_kutta_order(-1) ...
8,977
5,331
/* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * Copyright (C) 2018-2020 CS Systemes d'Information (CS SI) * * 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...
68,643
23,511
#include <iostream> #include <cstring> using namespace std; class Bank{ public: char name[20]; char account_no[20]; char type[10]; float bal; Bank() { bal = 0; } void deposit(); void withdraw(); void balance(); }; v...
2,817
830
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 4.0.0 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do...
992,789
377,951
#include "UpdateManager.h" namespace Hooks { void Install() { UpdateManager::Install(); UpdateManager::InstallScalePatch(); logger::info("Update hook installed."); } }
178
60
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
6,432
1,897
#ifndef HLT_H #define HLT_H #ifdef _WIN32 #define _USE_MATH_DEFINES #endif #include <list> #include <cmath> #include <vector> #include <random> #include <algorithm> #include <functional> #include <iostream> #include <fstream> #include <sstream> #include <assert.h> #include <array> #include <unordered_map> #include "...
4,171
1,147
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.hpp" #include "tic_tac_toe.h" #include "tic_tac_toe_manager.h" #include "tic_tac_toe_3.h" #include "tic_tac_toe_4.h" TEST_CASE("Verify Test Configuration", "verification") { REQUIRE(true == true); } TEST...
18,303
8,096
#ifndef CLICK_SETTCPCHECKSUM_HH #define CLICK_SETTCPCHECKSUM_HH #include <click/batchelement.hh> #include <click/glue.hh> CLICK_DECLS /* * =c * SetTCPChecksum([FIXOFF]) * =s tcp * sets TCP packets' checksums * =d * Input packets should be TCP in IP. * * Calculates the TCP header's checksum and sets the checksu...
901
339
#include<iostream.h> class arith { private: int a,b,r; char op; public: void getdata(); void operate(); void display(); }; void arith::getdata() { cout<<"Enter Values of a & b"<<endl; cin>>a>>b; } void arith::operate() { do { cout<<"Enter your choice + or - or * or / or Exit:"<<endl; ...
836
397
// 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 "net/socket/tcp_socket.h" #include <errno.h> #include <netinet/tcp.h> #include <sys/socket.h> #include "base/bind.h" #include "base/files/file_...
27,938
9,410
#include "Solution.h" #include <cmath> #include <fstream> Solution::Solution(const std::string& n, Element* e, std::size_t elements) { name = n; element = e; elementsCount = elements; auto size = elementsCount * (e->getDimension() - 1) + 1; solution = Vector(size, 0.); load_vector = Vector(s...
2,634
964
/* ============================================================================= Nav6 source code is placed under the MIT license Copyright (c) 2013 Kauai Labs Portions of this work are based upon the FreeIMU Library by Fabio Varesano. (www.freeimu.com) which is open-source licensed under the GPL v3 License. This wo...
10,479
3,699
// client.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include<iostream> #include<winsock.h> #include<windows.h> #include <mmintrin.h> //MMX #include <xmmintrin.h> //SSE(include mmintrin.h) #include <emmintrin.h> //SSE2(include xmmintrin.h) #include <pmmintrin.h> //SSE3(include emmintrin.h) #include <tmmintrin.h>//SSSE3(...
13,724
6,762
/* Copyright (c) 2016 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...
7,385
2,627
#include "ctranslate2/ops/split.h" #include <numeric> #include "device_dispatch.h" #include "type_dispatch.h" namespace ctranslate2 { namespace ops { Split::Split(dim_t axis, bool no_copy) : _axis(axis) , _total_size(0) , _no_copy(no_copy) { check_arguments(); } Split::Split(d...
3,069
926
/* BLOCKING QUEUES Version B: A fast producer and a slow consumer Blocking queues in C++ POSIX threading are not supported by default. So, I use mylib::BlockingQueue for this demonstration. */ #include <iostream> #include <string> #include <unistd.h> #include <pthread.h> #include "../cpp-std/mylib-blockingqueue.hpp"...
1,488
511
Record records[SIZE] = ...; int f() { int recordIdx = 0; recordIdx = readUserInput(); //recordIdx is returned from a function // there is no check so it could be negative doFoo(&(records[recordIdx])); //but is not checked before use as an array offset }
267
85
#include "lunarlady/File.hpp" #include "lunarlady/FileSystem.hpp" #include "lunarlady/StringUtils.hpp" #include "lunarlady/Error.hpp" #include <sstream> namespace lunarlady { void WriteFile(const std::string iFileName, const char* iBuffer, std::size_t iSize) { PHYSFS_file* file = PHYSFS_openWrite(iFileName.c_str())...
2,191
885
// // mustache_template.hpp // fibio // // Created by Chen Xu on 14/12/1. // Copyright (c) 2014 0d0a.com. All rights reserved. // #ifndef fibio_http_server_template_hpp #define fibio_http_server_template_hpp #include <fibio/http/common/json.hpp> #include <fibio/http/server/templates/mustache.hpp> #include <fibio/...
1,867
534
/*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, insta...
7,059
2,183
#include <bits/stdc++.h> using namespace std; // Data structure to store a Binary Tree node struct Node { int data; Node *left, *right; }; // Function to create a new binary tree node having given key Node* newNode(int key) { Node* node = new Node; node->data = key; node->left = node->right = nullptr; return n...
2,531
918
//////////////////////////////////////////////////////////////////////// // // File: SQLVariantOperatorMod.cpp // // Copyright (c) 1998-2022 ir. W.E. Huisman // All rights reserved // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files ...
49,535
18,795
/*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...
40,813
11,707
/* -------------------------------------------------------------------------- * * File DemoQuery.cpp * Ported By Young-Hwan Mun * Contact xmsoft77@gmail.com * * -------------------------------------------------------------------------- * * Copyright (c) 2010-2013...
4,807
1,895
#include <string> #include <vector> #include <type_traits> #include <neutrino/utils/mp/typelist.hh> #include <doctest/doctest.h> using namespace neutrino::mp; TEST_CASE("Test typelist size") { using t0 = type_list<>; using t1 = type_list<int>; using t2 = type_list<int, float>; using t3 = type_list<int...
7,667
3,462
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved. // Copyright (c) 2021 by Apex.AI Inc. 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:...
6,057
1,752
namespace cdot { const char* CastNames[] = {"<noop>", "<lvalue_to_rvalue>", "inttofp", "fptoint", "ext", "trunc", "ptrtoint", "in...
1,630
358
#ifndef MODULES_DIRECTORY #define MODULES_DIRECTORY modules #endif class GRAD_lbm { class common { file = MODULES_DIRECTORY\grad-listBuymenu\functions\common; class addFunds {}; class addInteraction {}; class checkCargoSpace {}; class getModuleRoot {}; class getP...
1,517
425
#include "GetWeaponGoal_Evaluator.h" #include "../Raven_ObjectEnumerations.h" #include "misc/Stream_Utility_Functions.h" #include "../Raven_Game.h" #include "../Raven_Map.h" #include "Goal_Think.h" #include "Raven_Goal_Types.h" #include "Raven_Feature.h" #include <string> //------------------- CalculateDesirabilit...
2,121
724
#pragma once #include "adc/make.hpp"
36
15
#include <dmzRenderConsts.h> #include "dmzRenderModuleIsectOSG.h" #include <dmzRenderUtilOSG.h> #include <dmzRenderObjectDataOSG.h> #include <dmzRuntimePluginFactoryLinkSymbol.h> #include <dmzTypesHandleContainer.h> #include <dmzTypesVector.h> #include <dmzTypesString.h> #include <osg/CullFace> #include <osg/Drawable>...
9,356
2,893
#include <iostream> #include "binarysearchtree.h" #include "binarysearchtree.cpp" using namespace std; struct Node { int data; Node *left, *right; }; Node* newNode(int key) { Node* node = new Node; node->data = key; node->left = node->right = nullptr; return node; } void inorder(Node* root) { if (root ==...
1,180
498
// Copyright (C) 2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "dsr_tests_common.hpp" namespace { using namespace LayerTestsUtils::vpu; struct SplitTestCase { DataShapeWithUpperBound dataShapes; int64_t axis, numSplits; }; const auto combinations = testing::Combine( test...
1,923
684
#include "pch.h" #if defined _WIN32 #if defined _DEBUG #pragma comment(lib, "libboost_regex-vc142-mt-gd-x64-1_75.lib") #else #pragma comment(lib, "libboost_regex-vc142-mt-x64-1_75.lib") #endif #endif int main(int argc, char* argv[]) { const int exitCode = ZenUnit::RunTests(argc, argv); return exitC...
329
153
// -*- C++ -*- //===----------------------------------------------------------------------===// // // 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,022
333
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // 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 Licen...
1,410
405
#ifndef BUILDING_NODE_EXTENSION #define BUILDING_NODE_EXTENSION #endif #include <nan.h> #include "WebRtcConnection.h" #include "OneToManyProcessor.h" #include "OneToManyTranscoder.h" #include "SyntheticInput.h" #include "ExternalInput.h" #include "ExternalOutput.h" #include "ThreadPool.h" #include "IOThreadPool.h" NAN...
598
222
//***************************************************************************** // 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.ap...
22,248
9,345
/* AngelCode Scripting Library Copyright (c) 2003-2007 Andreas Jonsson 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...
19,920
7,585
#include <errno.h> #include <sys/socket.h> #include <bits/ensure.h> #include <mlibc/debug.hpp> #include <mlibc/posix-sysdeps.hpp> int accept(int fd, struct sockaddr *__restrict addr_ptr, socklen_t *__restrict addr_length) { if(addr_ptr || addr_length) mlibc::infoLogger() << "\e[35mmlibc: accept() does not fill st...
5,287
2,453
// Copyright (c) 2007-2008 Facebook // // 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 a...
7,989
2,695
// 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 "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h" #include "base/files/file_path.h" #include "ios/public/provider/web/we...
1,179
365
#include <CondFormats/CSCObjects/interface/CSCTriggerMapping.h> #include <DataFormats/MuonDetId/interface/CSCTriggerNumbering.h> #include <iostream> CSCTriggerMapping::CSCTriggerMapping() : myName_("CSCTriggerMapping"), debugV_(false) {} CSCTriggerMapping::~CSCTriggerMapping() {} int CSCTriggerMapping::chamber(int e...
2,690
902
/** * Copyright (C) 2011 Nokia Inc. All rights reserved. * Copyright (C) 2012 Google Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version ...
15,584
8,338
/// \file // Range v3 library // // Copyright Eric Niebler 2014-present // // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying // file LICENSE.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.com/ericniebler/ran...
3,207
1,082
/* Copyright 2019 The TensorFlow 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 a...
4,885
1,500
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * 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/....
2,975
1,030
/******************************************************************************* MIT License Copyright (c) 2021 Romain Vinders 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, ...
8,166
3,025
// // main.cpp // binarysearch // // Created by Rain on 12/04/2017. // Copyright © 2017 Rain. All rights reserved. // #include <iostream> #include <vector> using namespace std; int getPos(vector<int> A, int n, int val) { // write code here vector<int>count(10000,0); for(int i=0;i<n;i++)...
1,156
412
#include <stdio.h> #include <stdlib.h> void NotPrime(); int main() { int i; scanf("%d", &i); if (i == 1) { NotPrime(); } for (int n = 2; n*n <= i; n++) { if (i%n == 0) { NotPrime(); return 0; } } printf("This is a Prime."); system("pause"); return 0; } void NotPrime() { printf("This is not ...
426
237
#pragma once #include <cstdint> #include "Hash.hpp" namespace NWNXLib { namespace API { // Forward class declarations (defined in the source file) struct Table; struct Schema { int32_t schema_cookie; int32_t iGeneration; Hash tblHash; Hash idxHash; Hash trigHash; Hash fkeyHash; Table* ...
430
163
/* Copyright (c) 2008, Arvid Norberg 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 f...
5,540
2,302
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #include "platform/platform.h" #include "Alux3D/shotgunprojectile.h" #include "scene/sceneRenderState.h" #include "scene/sceneManager.h" #include "lighting/lightInfo.h" #include "lighting/lightManage...
29,388
12,045
#pragma once #include "MainLoopTypes.hpp" #include "Vec3f.hpp" class SensorCalibration { public: /** * @brief SensorCalibration the constructor for this class. This class wraps away * the calibration routine. The user can specify over how many iterations he * wants to calibrate; * @param measurementsTo...
2,026
610
/****************************************************************************** * * * Copyright (c) 2018, Tsung-Wei Huang, Chun-Xun Lin, and Martin D. F. Wong, * * University of Illinois at Urbana-Champaign (UIUC), IL, USA. * ...
1,129
265
/* * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 retain the above copyright ...
170,457
51,747
#include <zurch_barzer.h> #include <zurch_docidx.h> #include <zurch_settings.h> /// Copyright Barzer LLC 2012 /// Code is property Barzer for authorized use only /// ////// THIS IS A TEMPLATE forcustomized XML PARSER ///// clone it into a new file and fill out the TAGS (search for XXX) #include <iostream> #includ...
9,250
3,449
/******************************Module*Header*******************************\ * Module Name: CAntialias.cpp * * This file contains the code to support the functionality test harness * for GDI+. This includes menu options and calling the appropriate * functions for execution. * * Created: 05-May-2000 - Jeff Vezi...
787
259
//****************************************************************************** // // Copyright (c) 2015 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
9,997
2,933
#include <fractals/julia/Julia.h> #include <algorithm> #include <cmath> #include <math/Vector.h> #include <QDebug> #define MAX_RAYCAST_STEP 128 namespace CGCP::fractal { float JuliaParametrized::raycast( math::Vector3 const &ro, math::Vector3 const &rd, math::Vector4 &resco...
3,498
1,275
#include <libsystem/Logger.h> #include <libsystem/Result.h> #include <libsystem/core/CString.h> #include "kernel/node/Directory.h" #include "kernel/node/Handle.h" static Result directory_open(FsDirectory *node, FsHandle *handle) { DirectoryListing *listing = (DirectoryListing *)malloc(sizeof(DirectoryListing) + ...
3,646
1,165
#ifndef Framework_HCTypeTag_icc #define Framework_HCTypeTag_icc // -*- C++ -*- // // Package: HeteroContainer // Module: HCTypeTag // // Description: <one line class summary> // // Implementation: // <Notes on implementation> // // Author: Chris D. Jones // Created: Sun Sep 20 15:27:25 EDT 1998 //...
3,291
1,244
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "nullprofiler.h" GUID NullProfiler::GetClsid() { // {9C1A6E14-2DEC-45CE-9061-F31964D8884D} GUID clsid = { 0x9C1A6E14, 0x2DEC, 0x45CE,{ 0x90, 0x61, 0xF3, 0x19, 0x64,...
710
330
#include <ros/ros.h> #include <thread> // #include <autharl_core/controller/gravity_compensation.h> // #include <autharl_core/robot/robot_sim.h> #include <autharl_core> #include <lwr_robot/robot.h> // // #include <autharl_core/viz/ros_state_publisher.h> // #include <autharl_core/robot/ros_model.h> #include <kuka_imp...
1,488
547
// 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 "net/spdy/spdy_protocol.h" #include <limits> #include "base/basictypes.h" #include "base/memory/scoped_ptr.h" #include "net/spdy/spdy_bitma...
2,245
891
#include "genericEntity.h" #include "Application.h" genericEntity::genericEntity() { } genericEntity::~genericEntity() { } void genericEntity::Init(const Vector3& pos, const Vector3& target, const Vector3& up) { this->position = pos; this->target = target; view = (target - position).Normalized(); r...
1,179
437
#include "RE/TESContainer.h" #include "RE/FormTypes.h" #include "RE/TESForm.h" namespace RE { auto TESContainer::GetContainerObjectAt(UInt32 a_idx) const -> std::optional<ContainerObject*> { if (a_idx < numContainerObjects) { return std::make_optional(containerObjects[a_idx]); } else { return std::null...
612
260
#pragma once #include <3dstris/util.hpp> class GUI; class Widget { public: Widget(GUI& parent, const Pos pos, const WH wh); virtual ~Widget() = default; virtual void draw() const = 0; virtual void update(const touchPosition touch, const touchPosition previousTouch) = 0; Pos getPos() const noexcept { r...
426
152
//================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================================================================================================== #pr...
3,180
1,102
// Copyright 2015 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/utility/importer/edge_database_reader_win.h" #include <windows.h> #include <stddef.h> #include <stdint.h> #include <vector> namespace...
9,785
2,978
#include <wmrde/eigensolve.h> void eigenSolveDynamic( const int nrows, const int ncols, Real* A, Real* b, Real* x ) { Eigen::Map<MatrixXr> A_(A,nrows,ncols); Eigen::Map<MatrixXr> b_(b,nrows,1); Eigen::Map<MatrixXr> x_(x,ncols,1); if ( nrows == ncols ) { x_ = A_.llt().solve(b_); //requires positive definite } el...
3,738
1,932
#include "StillDataTask.h" StillDataTaskClass::StillDataTaskClass(StillDataContextClass &context, FileServiceClass &fileService, SensorDataClass &data, SettingsClass &settings) : _settings(settings), _data(data), _fileService(fileService), _context(context) { } void StillDataTaskClass::exec() { if (_context.clear...
827
298
/* * 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...
3,176
1,042
/*========================================================================= Program: Visualization Toolkit Module: $RCSfile: vtkTensor.cxx,v $ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This s...
1,303
443