hexsha stringlengths 40 40 | size int64 19 11.4M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 270 | max_stars_repo_name stringlengths 5 110 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 270 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 270 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 19 11.4M | avg_line_length float64 1.93 229k | max_line_length int64 12 688k | alphanum_fraction float64 0.07 0.99 | matches listlengths 1 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f0cb1c9533c70a2a1ec476f9f05fcf6b03233e8 | 12,690 | cpp | C++ | src/gfx-obj/ImporterObj.cpp | alecnunn/mud | 9e204e2dc65f4a8ab52da3d11e6a261ff279d353 | [
"Zlib"
] | 1 | 2019-03-28T20:45:32.000Z | 2019-03-28T20:45:32.000Z | src/gfx-obj/ImporterObj.cpp | alecnunn/mud | 9e204e2dc65f4a8ab52da3d11e6a261ff279d353 | [
"Zlib"
] | null | null | null | src/gfx-obj/ImporterObj.cpp | alecnunn/mud | 9e204e2dc65f4a8ab52da3d11e6a261ff279d353 | [
"Zlib"
] | null | null | null | // Copyright (c) 2019 Hugo Amiard hugo.amiard@laposte.net
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#include <infra/Cpp20.h>
#ifndef MUD_CPP_20
#include <array>
#include <fstream>
... | 28.452915 | 126 | 0.653349 | [
"mesh",
"vector",
"model",
"transform"
] |
6f0f3a324fc26f05d5c94f81fd207bb402b82b18 | 30,841 | cpp | C++ | src/game/client/c_te.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/client/c_te.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/client/c_te.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//===========================================================================//
#include "cbase.h"
#include "itempents.h"
#include "effect_dispatch_data.h"
#include "tier1/KeyValues.h"
#include "iefx.h"
#i... | 43.933048 | 120 | 0.58432 | [
"vector"
] |
6f10a4900ba5c74ab24324df47d0ab94d36bcf54 | 2,097 | cpp | C++ | Radiatie/radiatie.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 11 | 2015-08-29T13:41:22.000Z | 2020-01-08T20:34:06.000Z | Radiatie/radiatie.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | null | null | null | Radiatie/radiatie.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 5 | 2016-01-20T18:17:01.000Z | 2019-10-30T11:57:15.000Z | #include <fstream>
#include <algorithm>
#include <vector>
#include <iostream>
using namespace std;
const int maxn = 15005;
const int maxl = 16;
int n, m, k, father[maxn], dp[maxl][maxn], ancestor[maxl][maxn], level[maxn];
vector <pair<int, pair<int, int > > > edges;
vector <pair<int, int> > g[maxn];
inline int find... | 20.97 | 77 | 0.531235 | [
"vector"
] |
6f169bc04994598e42bb07696c7d598ca49e1df7 | 14,741 | cc | C++ | src/flatzinc/solver.cc | sammy5976/ThinkNin | 601dff2ed70691555294152de37d9547494e4bb1 | [
"Apache-2.0"
] | null | null | null | src/flatzinc/solver.cc | sammy5976/ThinkNin | 601dff2ed70691555294152de37d9547494e4bb1 | [
"Apache-2.0"
] | null | null | null | src/flatzinc/solver.cc | sammy5976/ThinkNin | 601dff2ed70691555294152de37d9547494e4bb1 | [
"Apache-2.0"
] | 3 | 2016-04-14T10:31:30.000Z | 2017-02-05T06:04:21.000Z | // Copyright 2010-2014 Google
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 35.779126 | 84 | 0.618276 | [
"vector",
"model"
] |
6f17fc06fef42f1281a37e2b2743ea776a8ad43b | 2,921 | cpp | C++ | tests/validation/reference/ChannelExtract.cpp | elenita1221/ComputeLibrary | 3d2d44ef55ab6b08afda8be48301ce3c55c7bc67 | [
"MIT"
] | 2 | 2020-07-25T20:27:14.000Z | 2021-08-22T17:20:59.000Z | tests/validation/reference/ChannelExtract.cpp | elenita1221/ComputeLibrary | 3d2d44ef55ab6b08afda8be48301ce3c55c7bc67 | [
"MIT"
] | null | null | null | tests/validation/reference/ChannelExtract.cpp | elenita1221/ComputeLibrary | 3d2d44ef55ab6b08afda8be48301ce3c55c7bc67 | [
"MIT"
] | 1 | 2021-08-22T17:09:09.000Z | 2021-08-22T17:09:09.000Z | /*
* Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... | 38.434211 | 162 | 0.71277 | [
"shape",
"vector"
] |
6f18cb4e3815cbb946171c9daee8b6c0688a6e08 | 1,892 | hpp | C++ | include/codegen/include/GlobalNamespace/ShaderVariantsSO.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/ShaderVariantsSO.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/ShaderVariantsSO.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: PersistentScriptableObject
#include "GlobalNamespace/Pe... | 42.044444 | 90 | 0.728858 | [
"object"
] |
6f1c521df0f73d4fc7852876f0e49ecf8360f781 | 4,680 | cxx | C++ | track_oracle/core/track_oracle_row_view.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | 1 | 2017-07-31T07:07:32.000Z | 2017-07-31T07:07:32.000Z | track_oracle/core/track_oracle_row_view.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | 4 | 2021-03-19T00:52:41.000Z | 2022-03-11T23:48:06.000Z | track_oracle/core/track_oracle_row_view.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | /*ckwg +5
* Copyright 2010-2016 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "track_oracle_row_view.h"
#include <vital/logger/logger.h>
static kwiver::vita... | 21.272727 | 91 | 0.666026 | [
"vector"
] |
6f1de17433437d2500edd996fb36641fa6d44c85 | 2,322 | hpp | C++ | drw.hpp | DaveDuck321/dwm_cpp | 86ae2d57c4d7338deeb94c28156dae50bb8e045c | [
"MIT"
] | null | null | null | drw.hpp | DaveDuck321/dwm_cpp | 86ae2d57c4d7338deeb94c28156dae50bb8e045c | [
"MIT"
] | null | null | null | drw.hpp | DaveDuck321/dwm_cpp | 86ae2d57c4d7338deeb94c28156dae50bb8e045c | [
"MIT"
] | null | null | null | /* See LICENSE file for copyright and license details. */
#pragma once
#include <X11/Xft/Xft.h>
#include <X11/Xlib.h>
#include <memory>
#include <optional>
#include <string_view>
#include <vector>
class CursorFont {
public:
CursorFont(Display*, int shape);
CursorFont(CursorFont&&);
~CursorFont();
... | 22.543689 | 77 | 0.67528 | [
"shape",
"vector"
] |
6f2cd170502725d32f94d547cb3b4bf7fab379ed | 6,798 | cxx | C++ | smtk/mesh/testing/cxx/UnitTestCreateMesh.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | null | null | null | smtk/mesh/testing/cxx/UnitTestCreateMesh.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | 4 | 2016-11-10T15:49:51.000Z | 2017-02-06T23:24:16.000Z | smtk/mesh/testing/cxx/UnitTestCreateMesh.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | null | null | null |
//=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOS... | 34.160804 | 91 | 0.620035 | [
"mesh",
"vector"
] |
6f340a57388903f56b39128297731d8f5f10a892 | 1,732 | cpp | C++ | cpp/Selecting Courses/Selecting Courses.cpp | xuzishan/Algorithm-learning-through-Problems | 4aee347af6fd7fd935838e1cbea57c197e88705c | [
"MIT"
] | 27 | 2016-11-04T09:18:25.000Z | 2022-02-12T12:34:01.000Z | cpp/Selecting Courses/Selecting Courses.cpp | Der1128/Algorithm-learning-through-Problems | 4aee347af6fd7fd935838e1cbea57c197e88705c | [
"MIT"
] | 1 | 2016-11-05T02:30:24.000Z | 2016-11-16T10:21:09.000Z | cpp/Selecting Courses/Selecting Courses.cpp | Der1128/Algorithm-learning-through-Problems | 4aee347af6fd7fd935838e1cbea57c197e88705c | [
"MIT"
] | 20 | 2016-11-04T10:26:02.000Z | 2021-09-25T05:41:21.000Z | //
// Selecting Courses.cpp
// laboratory
//
// Created by 徐子珊 on 15/6/15.
// Copyright (c) 2015年 xu_zishan. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <string>
#include "../utility/maxflow.h"
pair<Network , vector<vector<int>>> makeGraph(vector<vector<pair<int, int>>> &cours... | 26.646154 | 87 | 0.550808 | [
"vector"
] |
6f36453ad85cd871ca6519d7c808862660c288f9 | 3,538 | cpp | C++ | src/tests/ascent/t_ascent_web_main.cpp | srini009/ascent | 70558059dc3fe514206781af6e48715d8934c37c | [
"BSD-3-Clause"
] | null | null | null | src/tests/ascent/t_ascent_web_main.cpp | srini009/ascent | 70558059dc3fe514206781af6e48715d8934c37c | [
"BSD-3-Clause"
] | null | null | null | src/tests/ascent/t_ascent_web_main.cpp | srini009/ascent | 70558059dc3fe514206781af6e48715d8934c37c | [
"BSD-3-Clause"
] | null | null | null | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) Lawrence Livermore National Security, LLC and other Ascent
// Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
// other details. No copyright assignment is required to contribute to Ascent.
//~~~~... | 24.741259 | 103 | 0.541266 | [
"mesh"
] |
6f375051f42ceb7cc4084166296627090e0330cf | 2,843 | cpp | C++ | test/performance/saxpy_b.cpp | karl-lunarg/vulkan-compute-example | 1f31b2ce7312b4c16f1561f593c70560c2e8cd22 | [
"MIT"
] | 42 | 2018-07-31T13:43:32.000Z | 2022-03-27T14:46:45.000Z | test/performance/saxpy_b.cpp | karl-lunarg/vulkan-compute-example | 1f31b2ce7312b4c16f1561f593c70560c2e8cd22 | [
"MIT"
] | 1 | 2018-04-17T08:34:27.000Z | 2018-04-17T08:34:27.000Z | test/performance/saxpy_b.cpp | karl-lunarg/vulkan-compute-example | 1f31b2ce7312b4c16f1561f593c70560c2e8cd22 | [
"MIT"
] | 5 | 2019-11-09T13:07:55.000Z | 2021-11-12T23:22:36.000Z | #include <sltbench/Bench.h>
#include <example_filter.h>
#include <vulkan_helpers.hpp>
#include <memory>
#include <vector>
namespace {
struct Params{
uint32_t width;
uint32_t height;
float a;
auto operator== (const Params& other) const-> bool {
return width == other.width && height == other.hei... | 27.336538 | 102 | 0.610271 | [
"vector"
] |
6f3c219989884545b8f131464c75c269ea61530f | 20,446 | cpp | C++ | InSight/src/InSight/Shader/BaseShader.cpp | I-Hudson/InSightEngine | a766c87a7be51a19ab796a81888fbbf93a8a43be | [
"Apache-2.0"
] | 3 | 2019-05-26T19:22:27.000Z | 2019-07-09T21:42:18.000Z | InSight/src/InSight/Shader/BaseShader.cpp | I-Hudson/InSightEngine | a766c87a7be51a19ab796a81888fbbf93a8a43be | [
"Apache-2.0"
] | 15 | 2019-05-26T09:32:22.000Z | 2019-06-11T11:31:03.000Z | InSight/src/InSight/Shader/BaseShader.cpp | I-Hudson/Insight-Engine | a766c87a7be51a19ab796a81888fbbf93a8a43be | [
"Apache-2.0"
] | null | null | null | #include "Shader/BaseShader.h"
#include "Utilities.h"
#include "Log.h"
#include "Entity/Entity.h"
#include "Component/MeshComponent.h"
#include <glm/ext.hpp>
using namespace::InSight;
void BaseShader::setLightVolumeManager(LightVolumeManager * aManager)
{
//set light volume manager
mLightVolumes = aManager;
}
Ba... | 27.29773 | 156 | 0.683019 | [
"mesh",
"geometry",
"render",
"vector"
] |
6f3dc6146a00981db88986c6a022cbf5a69a5e4a | 7,262 | cpp | C++ | integrators/pathtracer.cpp | capagot/swpathtracer | 613045f5bf75e0295a5cdcc60bebdfb8a534f4ae | [
"MIT"
] | 14 | 2016-08-11T19:15:18.000Z | 2022-02-11T18:32:37.000Z | integrators/pathtracer.cpp | capagot/swpathtracer | 613045f5bf75e0295a5cdcc60bebdfb8a534f4ae | [
"MIT"
] | null | null | null | integrators/pathtracer.cpp | capagot/swpathtracer | 613045f5bf75e0295a5cdcc60bebdfb8a534f4ae | [
"MIT"
] | null | null | null | #include "pathtracer.h"
#include "timer.h"
PathTracer::PathTracer(Camera& camera, const Scene& scene, PathTerminationCriterion path_termination_criterion,
int path_length, std::unique_ptr<PixelSampler> pixel_sampler,
PRNG<std::uniform_real_distribution, float, std::mt19937... | 44.280488 | 207 | 0.612779 | [
"render"
] |
6f49500e47447f61f552136e902edc56017e2cd5 | 17,505 | hxx | C++ | main/comphelper/inc/comphelper/locale.hxx | jimjag/openoffice | 74746a22d8cc22b031b00fcd106f4496bf936c77 | [
"Apache-2.0"
] | 1 | 2019-12-27T19:25:34.000Z | 2019-12-27T19:25:34.000Z | main/comphelper/inc/comphelper/locale.hxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | 1 | 2019-11-25T03:08:58.000Z | 2019-11-25T03:08:58.000Z | main/comphelper/inc/comphelper/locale.hxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | 6 | 2019-11-19T00:28:25.000Z | 2019-11-22T06:48:49.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 39.073661 | 130 | 0.471694 | [
"object",
"vector"
] |
6f5da7a3c1b6806b18a4acb65ff3198d8f25bb74 | 17,203 | cpp | C++ | src/hand/pose3d/mediapipe/mediapipe.cpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | 1 | 2022-02-08T06:42:05.000Z | 2022-02-08T06:42:05.000Z | src/hand/pose3d/mediapipe/mediapipe.cpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | null | null | null | src/hand/pose3d/mediapipe/mediapipe.cpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | null | null | null | #include "mediapipe.hpp"
#include "mat.h"
#include <math.h>
namespace ovhand3d {
static float calculate_scale(float min_scale, float max_scale, int stride_index,
int num_strides) {
if (num_strides == 1)
return (min_scale + max_scale) * 0.5f;
else
return min_scale +
... | 32.035382 | 80 | 0.621403 | [
"vector"
] |
6f5e7abc7f4c74958266e15651f0974149d61d5a | 14,263 | cpp | C++ | marsyas-vamp/marsyas/src/apps/rhythmMap/rhythmMap.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/apps/rhythmMap/rhythmMap.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/apps/rhythmMap/rhythmMap.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | #include <marsyas/system/MarSystemManager.h>
#include <marsyas/marsystems/SimilarityMatrix.h>
#include <marsyas/marsystems/Metric2.h>
#include <marsyas/marsystems/DTW.h>
#include <marsyas/marsystems/AveragingPattern.h>
#include <marsyas/Collection.h>
using namespace std;
using namespace Marsyas;
#define MAX_TEMPLATES... | 33.56 | 92 | 0.615719 | [
"vector"
] |
6f5ea14e269abf8b274b12acf5e0f3630d0012b7 | 5,818 | cpp | C++ | spike/rasters/components/CollignonMesh/CollignonMesh_test.cpp | davidson16807/libtectonics | aa0ae2b8a4a1d2a9a346bbdeb334be876ad75646 | [
"CC-BY-4.0"
] | 7 | 2020-06-09T19:56:55.000Z | 2021-02-17T01:53:30.000Z | spike/rasters/components/CollignonMesh/CollignonMesh_test.cpp | davidson16807/tectonics.cpp | c40278dba14260c598764467c7abf23b190e676b | [
"CC-BY-4.0"
] | null | null | null | spike/rasters/components/CollignonMesh/CollignonMesh_test.cpp | davidson16807/tectonics.cpp | c40278dba14260c598764467c7abf23b190e676b | [
"CC-BY-4.0"
] | null | null | null |
// 3rd party libraries
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch/catch.hpp"
#define GLM_FORCE_PURE // disable anonymous structs so we can build with ISO C++
#define GLM_ENABLE_EXPERIMENTAL // disable anonymous structs so we can build wi... | 42.779412 | 120 | 0.580784 | [
"mesh",
"vector"
] |
6f5f418f2b0f2391d1b552004964f35682438d2b | 2,787 | cpp | C++ | android-31/android/media/tv/TvView_TvInputCallback.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/media/tv/TvView_TvInputCallback.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/media/tv/TvView_TvInputCallback.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "./TvContentRating.hpp"
#include "../../net/Uri.hpp"
#include "../../../JString.hpp"
#include "./TvView_TvInputCallback.hpp"
namespace android::media::tv
{
// Fields
// QJniObject forward
TvView_TvInputCallback::TvView_TvInputCallback(QJniObject obj) : JObject(obj) {}
// Constructors
TvView_TvInputCa... | 23.225 | 108 | 0.69573 | [
"object"
] |
6f637efe99c16dc1dc2d1434d76889fdbd73b8a5 | 8,873 | cc | C++ | L1Trigger/L1TCommon/plugins/L1TSummary.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | L1Trigger/L1TCommon/plugins/L1TSummary.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | L1Trigger/L1TCommon/plugins/L1TSummary.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | // -*- C++ -*-
//
// L1TSummary: produce command line visible summary of L1T system
//
#include <iostream>
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "F... | 34.126923 | 121 | 0.598219 | [
"vector"
] |
6f6a0a7d2227c0712babffe625f4e153139e01e3 | 2,345 | cpp | C++ | MonteCarlo/monte_carlo.cpp | fchapoton/NaCl | d3a584c548e7e81cf7734209a5e65a77763156a5 | [
"Apache-2.0"
] | 59 | 2015-01-06T14:16:28.000Z | 2021-07-22T04:31:45.000Z | MonteCarlo/monte_carlo.cpp | fchapoton/NaCl | d3a584c548e7e81cf7734209a5e65a77763156a5 | [
"Apache-2.0"
] | 4 | 2016-02-02T07:56:50.000Z | 2016-11-14T23:16:10.000Z | MonteCarlo/monte_carlo.cpp | fchapoton/NaCl | d3a584c548e7e81cf7734209a5e65a77763156a5 | [
"Apache-2.0"
] | 29 | 2015-03-10T15:35:55.000Z | 2021-07-22T04:31:46.000Z | #include "mc_instance.hpp"
#include "singleton_factory.hpp"
#include <vector>
#include <thread>
#include <functional>
pp::Module* pp::CreateModule() {
return new InstanceFactory<MonteCarloInstance>();
}
void MonteCarloInstance::Simulate( int32_t /*result*/,
std::function<int(double,double)> model, unsigne... | 35 | 91 | 0.677186 | [
"vector",
"model"
] |
6f713343725ba855c93ab475b34de417fb49f69c | 6,449 | cc | C++ | src/kerberos.cc | NickNaso/kerberos | 743afb5da3adb00b51462f5d89447a97b0ad8b7a | [
"Apache-2.0"
] | null | null | null | src/kerberos.cc | NickNaso/kerberos | 743afb5da3adb00b51462f5d89447a97b0ad8b7a | [
"Apache-2.0"
] | null | null | null | src/kerberos.cc | NickNaso/kerberos | 743afb5da3adb00b51462f5d89447a97b0ad8b7a | [
"Apache-2.0"
] | null | null | null | #include <memory>
#include "common.h"
#include "kerberos.h"
#include "kerberos_client.h"
#include "kerberos_server.h"
#include "kerberos_worker.h"
using v8::FunctionTemplate;
#define GSS_MECH_OID_KRB5 9
#define GSS_MECH_OID_SPNEGO 6
static char krb5_mech_oid_bytes[] = "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02";
gss_OID... | 41.076433 | 117 | 0.630951 | [
"object"
] |
4cff5297a53e9f2cac213cbf706c30b4ee77abba | 1,664 | cc | C++ | src/include_diagram/visitor/translation_unit_context.cc | buffyanamin/clang-uml | 7ca70d97eecc0f3ab1267b024771edc6131950fb | [
"Apache-2.0"
] | null | null | null | src/include_diagram/visitor/translation_unit_context.cc | buffyanamin/clang-uml | 7ca70d97eecc0f3ab1267b024771edc6131950fb | [
"Apache-2.0"
] | null | null | null | src/include_diagram/visitor/translation_unit_context.cc | buffyanamin/clang-uml | 7ca70d97eecc0f3ab1267b024771edc6131950fb | [
"Apache-2.0"
] | null | null | null | /**
* src/include_diagram/visitor/translation_unit_context.cc
*
* Copyright (c) 2021-2022 Bartek Kryza <bkryza@gmail.com>
*
* 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... | 26 | 78 | 0.752404 | [
"model"
] |
98096abf0131b1333a6aafbbfea9b6fd4c138ae3 | 4,750 | cpp | C++ | GoogleCodeJam/GCJ21/Round2/B.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | 2 | 2018-12-11T14:37:24.000Z | 2022-01-23T18:11:54.000Z | GoogleCodeJam/GCJ21/Round2/B.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | GoogleCodeJam/GCJ21/Round2/B.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
// g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 1000000007
#define EPS 1e-6
#define ll long long int
#define ld long double
#define fi first
#define se second
#define all(v) v.begin(),v.e... | 31.25 | 226 | 0.473684 | [
"vector"
] |
981c5ee33896be6f36d4c731797f463c4297e22e | 4,881 | cpp | C++ | LibRocketNet/Context.cpp | daeken/LibRocket.Net | 6990f3f5cab214e0cded94054af980bd01795d5f | [
"MIT"
] | 1 | 2016-10-29T02:58:18.000Z | 2016-10-29T02:58:18.000Z | LibRocketNet/Context.cpp | daeken/LibRocket.Net | 6990f3f5cab214e0cded94054af980bd01795d5f | [
"MIT"
] | null | null | null | LibRocketNet/Context.cpp | daeken/LibRocket.Net | 6990f3f5cab214e0cded94054af980bd01795d5f | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Context.h"
#include "Util.h"
#include "Element.h"
#include "ElementDocument.h"
#include "Rocket/Core/Context.h"
namespace LibRocketNet {
Context::Context(Rocket::Core::Context * ctx) {
ContextPtr = ctx;
ContextPtr->AddReference();
}
Context::~Context() {
ContextPtr->RemoveRef... | 28.711765 | 130 | 0.754558 | [
"render"
] |
981dacdca6ef7be9e6e5d2ae65e21b5e0cbd85e8 | 4,319 | hpp | C++ | src/boost/test/utils/runtime/argument.hpp | Liastre/uri | f5a701d19e3dd9cec950dcc70f6a42f0d9151f89 | [
"BSL-1.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | src/boost/test/utils/runtime/argument.hpp | Liastre/uri | f5a701d19e3dd9cec950dcc70f6a42f0d9151f89 | [
"BSL-1.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | src/boost/test/utils/runtime/argument.hpp | Liastre/uri | f5a701d19e3dd9cec950dcc70f6a42f0d9151f89 | [
"BSL-1.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | // (C) Copyright Gennadiy Rozental 2001.
// 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$
//
// Version : ... | 32.719697 | 102 | 0.542487 | [
"model"
] |
98222aeb5fe416f8a421d790a7d53d5a5c4d29a9 | 8,743 | hpp | C++ | lg/solvers/htd-master/include/htd/MultiHypergraph.hpp | vuphan314/dpo | e24fe63fc3321c0cd6d2179c3300596b91082ab5 | [
"MIT"
] | 14 | 2020-01-31T23:02:39.000Z | 2021-12-26T06:00:13.000Z | lg/solvers/htd-master/include/htd/MultiHypergraph.hpp | vuphan314/dpo | e24fe63fc3321c0cd6d2179c3300596b91082ab5 | [
"MIT"
] | 3 | 2020-06-27T21:11:46.000Z | 2020-06-27T21:11:47.000Z | lg/solvers/htd-master/include/htd/MultiHypergraph.hpp | vuphan314/dpo | e24fe63fc3321c0cd6d2179c3300596b91082ab5 | [
"MIT"
] | 2 | 2020-08-08T03:04:30.000Z | 2021-05-21T04:56:02.000Z | /*
* File: MultiHypergraph.hpp
*
* Author: ABSEHER Michael (abseher@dbai.tuwien.ac.at)
*
* Copyright 2015-2017, Michael Abseher
* E-Mail: <abseher@dbai.tuwien.ac.at>
*
* This file is part of htd.
*
* htd is free software: you can redistribute it and/or modify it under
* the terms of the GNU General... | 41.240566 | 143 | 0.669335 | [
"object",
"vector"
] |
982dddcf7d82a8db9ee5b3ac13670949411a308f | 989 | cpp | C++ | Cpp/Kattis/Naive/flexible.cpp | kchevali/OnlineJudge | c1d1894078fa45eef05c8785aba29758d9adf0c6 | [
"MIT"
] | null | null | null | Cpp/Kattis/Naive/flexible.cpp | kchevali/OnlineJudge | c1d1894078fa45eef05c8785aba29758d9adf0c6 | [
"MIT"
] | null | null | null | Cpp/Kattis/Naive/flexible.cpp | kchevali/OnlineJudge | c1d1894078fa45eef05c8785aba29758d9adf0c6 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define PB emplace_back
#define C cout <<
#define E << "\n"
#define _ << " " <<
#define gc getchar_unlocked
#define fpp(i, a, b) for (i = a; i < b; i++)
using namespace std;
typedef long long l;
typedef vector<l> vl;
typedef vector<bool> vb;
typedef vector<vl> vvl;
void read(l &x) { // cann... | 18.314815 | 57 | 0.450961 | [
"vector"
] |
9830c85fb40b119c7ab8f5282a88aedc3ef87e8d | 13,559 | cxx | C++ | main/sc/source/ui/docshell/docsh6.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sc/source/ui/docshell/docsh6.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sc/source/ui/docshell/docsh6.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 28.972222 | 117 | 0.664208 | [
"object"
] |
9837f9aeae49112aa39581340f52cbd6d25adaad | 1,179 | cpp | C++ | igl/snap_to_fixed_up.cpp | sabinaRachev/3D-Snake-Game-Final-Project | 5c1f2044d848f24d6ce60dc61411393b503c8da2 | [
"Apache-2.0"
] | null | null | null | igl/snap_to_fixed_up.cpp | sabinaRachev/3D-Snake-Game-Final-Project | 5c1f2044d848f24d6ce60dc61411393b503c8da2 | [
"Apache-2.0"
] | null | null | null | igl/snap_to_fixed_up.cpp | sabinaRachev/3D-Snake-Game-Final-Project | 5c1f2044d848f24d6ce60dc61411393b503c8da2 | [
"Apache-2.0"
] | null | null | null | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// 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 ... | 34.676471 | 113 | 0.690416 | [
"geometry"
] |
983ab898e919d8fd11b04a758a2de1d6e8ebad2f | 1,861 | cc | C++ | mindspore/ccsrc/minddata/dataset/kernels/data/one_hot_op.cc | kungfu-team/mindspore-bert | 71501cf52ae01db9d6a73fb64bcfe68a6509dc32 | [
"Apache-2.0"
] | 1 | 2021-03-10T09:05:13.000Z | 2021-03-10T09:05:13.000Z | mindspore/ccsrc/minddata/dataset/kernels/data/one_hot_op.cc | kungfu-team/mindspore-bert | 71501cf52ae01db9d6a73fb64bcfe68a6509dc32 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/minddata/dataset/kernels/data/one_hot_op.cc | kungfu-team/mindspore-bert | 71501cf52ae01db9d6a73fb64bcfe68a6509dc32 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2019 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 37.979592 | 110 | 0.740999 | [
"shape",
"vector"
] |
983b62b4c665bab4b5e9f1158f264cbdb1a9026e | 10,940 | cpp | C++ | src/Pegasus/Compiler/cimmofMessages.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | null | null | null | src/Pegasus/Compiler/cimmofMessages.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | null | null | null | src/Pegasus/Compiler/cimmofMessages.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | 1 | 2022-03-07T22:54:02.000Z | 2022-03-07T22:54:02.000Z | //%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Cor... | 44.836066 | 109 | 0.66947 | [
"object"
] |
983b81c08ea7529f9e6a646093ff06c266138143 | 4,586 | cc | C++ | modules/perception/obstacle/camera/visualizer/gl_fusion_visualizer.cc | BaiduXLab/apollo | 2764e934b6d0da1342be781447348288ac84c5e9 | [
"Apache-2.0"
] | 22 | 2018-10-10T14:46:32.000Z | 2022-02-28T12:43:43.000Z | modules/perception/obstacle/camera/visualizer/gl_fusion_visualizer.cc | BaiduXLab/apollo | 2764e934b6d0da1342be781447348288ac84c5e9 | [
"Apache-2.0"
] | 5 | 2020-06-13T00:36:33.000Z | 2022-02-10T17:50:43.000Z | modules/perception/obstacle/camera/visualizer/gl_fusion_visualizer.cc | BaiduXLab/apollo | 2764e934b6d0da1342be781447348288ac84c5e9 | [
"Apache-2.0"
] | 12 | 2018-12-24T02:17:19.000Z | 2021-12-06T01:54:09.000Z | /******************************************************************************
* Copyright 2017 The Apollo 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
... | 32.524823 | 80 | 0.656782 | [
"render"
] |
983b8d20b75334b834316e8a06c807a93ec2c0fa | 368 | cc | C++ | 2017-10-14-Intro/sum1.cc | karinakozarova/Algo-course-TUES | b499f893251a1558b43f3c4e763a9153f354ebeb | [
"MIT"
] | 2 | 2017-12-11T22:20:15.000Z | 2019-11-17T02:52:20.000Z | 2017-10-14-Intro/sum1.cc | karinakozarova/Algo-course-TUES | b499f893251a1558b43f3c4e763a9153f354ebeb | [
"MIT"
] | null | null | null | 2017-10-14-Intro/sum1.cc | karinakozarova/Algo-course-TUES | b499f893251a1558b43f3c4e763a9153f354ebeb | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
//Дадено са естествени числа X и N.
// Да се намери по колко начина може
// X да се представи като сбор на
// N-ти степени на различни естествени числа.
int main() {
int x,n,count = 1; // every nu... | 19.368421 | 48 | 0.668478 | [
"vector"
] |
983c5c7621a639d8b7bb75e031f53deeeccfc691 | 2,521 | cpp | C++ | tests/pure/test_moving.cpp | vacing/flexcore | 08c08e98556f92d1993e2738cbcb975b3764fa2d | [
"Apache-2.0"
] | 47 | 2016-09-23T10:27:17.000Z | 2021-12-14T07:31:40.000Z | tests/pure/test_moving.cpp | vacing/flexcore | 08c08e98556f92d1993e2738cbcb975b3764fa2d | [
"Apache-2.0"
] | 10 | 2016-12-04T16:40:29.000Z | 2020-04-28T08:46:50.000Z | tests/pure/test_moving.cpp | vacing/flexcore | 08c08e98556f92d1993e2738cbcb975b3764fa2d | [
"Apache-2.0"
] | 20 | 2016-09-23T17:14:41.000Z | 2021-10-09T18:24:47.000Z | #include <boost/test/unit_test.hpp>
#include <flexcore/core/connection.hpp>
#include <flexcore/pure/pure_ports.hpp>
#include <algorithm>
#include <vector>
using namespace fc;
BOOST_AUTO_TEST_SUITE(test_tokens_testing)
namespace
{
/**
* token for testing that cannot be copied only moved.
*/
class move_token
{
pub... | 24.715686 | 90 | 0.694169 | [
"vector"
] |
9849e8d99f28718359e1f206d3992cd8390dfcfb | 10,033 | cc | C++ | src/service/async_service_impl.cc | pewpewp3w/authservice | 449a9536e3213c9e56c2c1d6afbdd82a3c150e8e | [
"Apache-2.0"
] | 163 | 2019-05-13T19:01:01.000Z | 2022-03-30T20:31:01.000Z | src/service/async_service_impl.cc | pewpewp3w/authservice | 449a9536e3213c9e56c2c1d6afbdd82a3c150e8e | [
"Apache-2.0"
] | 203 | 2019-05-21T21:23:48.000Z | 2022-03-31T00:36:32.000Z | src/service/async_service_impl.cc | pewpewp3w/authservice | 449a9536e3213c9e56c2c1d6afbdd82a3c150e8e | [
"Apache-2.0"
] | 45 | 2019-05-10T00:31:37.000Z | 2022-02-07T01:31:43.000Z | #include "async_service_impl.h"
#include <grpcpp/server_builder.h>
#include <boost/asio.hpp>
#include <csignal>
#include <memory>
#include "boost/asio/io_context.hpp"
#include "boost/thread/detail/thread.hpp"
#include "src/common/http/http.h"
#include "src/config/get_config.h"
namespace authservice {
namespace serv... | 35.704626 | 79 | 0.682049 | [
"object",
"vector"
] |
984f2e65d3d1cd14067620396b2c429a5650784d | 5,742 | cpp | C++ | samples/tools/grab.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | samples/tools/grab.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | samples/tools/grab.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | #include <iostream>
#include <boost/format.hpp>
#include <boost/program_options.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <v4r/common/unprojection.h>
#include <v4r/io/grabber.h>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/... | 40.153846 | 120 | 0.658481 | [
"3d"
] |
9853ec79f32c1e175d38cbe1da1891961a1cd2fa | 2,025 | cpp | C++ | Core/Utilities/QProgInfo/Visualization/Qvisualization.cpp | QianJianhua1/QPanda-2 | a13c7b733031b1d0007dceaf1dae6ad447bb969c | [
"Apache-2.0"
] | null | null | null | Core/Utilities/QProgInfo/Visualization/Qvisualization.cpp | QianJianhua1/QPanda-2 | a13c7b733031b1d0007dceaf1dae6ad447bb969c | [
"Apache-2.0"
] | null | null | null | Core/Utilities/QProgInfo/Visualization/Qvisualization.cpp | QianJianhua1/QPanda-2 | a13c7b733031b1d0007dceaf1dae6ad447bb969c | [
"Apache-2.0"
] | null | null | null | #include "Core/Utilities/QProgInfo/Visualization/QVisualization.h"
#include "Core/Utilities/QProgInfo/QCircuitInfo.h"
USING_QPANDA
using namespace std;
using namespace DRAW_TEXT_PIC;
string QPanda::draw_qprog(QProg prog, PIC_TYPE p /* = PIC_TYPE::TEXT */, bool with_logo /* = false */, uint32_t length /*= 100*/, const... | 34.322034 | 170 | 0.710123 | [
"vector"
] |
985cbd1b8a8370c1657f98f97c1e16571123320e | 8,322 | cpp | C++ | src/othello/ai/QLearningPlayer.cpp | Orfby/Othello-MMP | 72be0ee38a329eff536b17d1e5334353cfd58c6f | [
"MIT"
] | null | null | null | src/othello/ai/QLearningPlayer.cpp | Orfby/Othello-MMP | 72be0ee38a329eff536b17d1e5334353cfd58c6f | [
"MIT"
] | null | null | null | src/othello/ai/QLearningPlayer.cpp | Orfby/Othello-MMP | 72be0ee38a329eff536b17d1e5334353cfd58c6f | [
"MIT"
] | null | null | null | //Othello headers:
#include <othello/ai/QLearningPlayer.hpp>
namespace othello
{
namespace ai
{
////////////////////////////////////////////////////////////////
FANN::neural_net QLearningPlayer::mlp = {};
/////////////////////////////////////////////////////... | 43.34375 | 122 | 0.472963 | [
"vector"
] |
985ffb63917591e01a29e63089b02c914a6453db | 14,295 | cpp | C++ | cpp/src/TensorflowOperators/CudaRenderer/CudaRenderer.cpp | aytewari/GVV-Differentiable-CUDA-Renderer | 5da6bdab3fd44074ae752bd8192fc2aad9fb77e6 | [
"CC-BY-4.0"
] | 40 | 2020-10-09T06:13:32.000Z | 2021-04-09T21:48:29.000Z | cpp/src/TensorflowOperators/CudaRenderer/CudaRenderer.cpp | ayushtewari/GVV-Differentiable-CUDA-Renderer | 5da6bdab3fd44074ae752bd8192fc2aad9fb77e6 | [
"CC-BY-4.0"
] | 2 | 2020-10-10T07:16:33.000Z | 2021-03-27T09:07:57.000Z | cpp/src/TensorflowOperators/CudaRenderer/CudaRenderer.cpp | ayushtewari/GVV-Differentiable-CUDA-Renderer | 5da6bdab3fd44074ae752bd8192fc2aad9fb77e6 | [
"CC-BY-4.0"
] | 2 | 2021-06-29T15:40:03.000Z | 2022-01-31T16:09:44.000Z | #include "CudaRenderer.h"
//==============================================================================================//
REGISTER_OP("CudaRendererGpu")
.Input("vertex_pos: float")
.Input("vertex_color: float")
.Input("texture: float")
.Input("sh_coeff: float")
.Input("target_image: float")
.Input("ext... | 42.044118 | 192 | 0.678139 | [
"render",
"vector",
"3d"
] |
9861295c93e14c348704e3a7dd94d028d6ee999c | 3,461 | cc | C++ | cinn/frontend/decomposer/activation_test.cc | Xreki/CINN | 8a45557685224f4ff6699da155e2d7879e32e0d3 | [
"Apache-2.0"
] | null | null | null | cinn/frontend/decomposer/activation_test.cc | Xreki/CINN | 8a45557685224f4ff6699da155e2d7879e32e0d3 | [
"Apache-2.0"
] | null | null | null | cinn/frontend/decomposer/activation_test.cc | Xreki/CINN | 8a45557685224f4ff6699da155e2d7879e32e0d3 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2021 CINN 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 appl... | 32.961905 | 88 | 0.681306 | [
"shape",
"vector"
] |
98630c6268f08d52282526020643bc6b57113108 | 5,497 | hh | C++ | cc/utils/messages.hh | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | cc/utils/messages.hh | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | cc/utils/messages.hh | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | #pragma once
#include <set>
#include <vector>
#include <string>
#include "ext/fmt.hh"
#include "virus/type-subtype.hh"
// ----------------------------------------------------------------------
namespace ae
{
struct MessageLocation
{
std::string filename{};
size_t line_no{0};
};
stru... | 34.791139 | 175 | 0.504093 | [
"vector"
] |
98638c2e8fa57b37e5f71c1a0bffe860cc2f88cb | 23,825 | cpp | C++ | ql/experimental/models/gaussian1dfloatfloatswaptionengine.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/models/gaussian1dfloatfloatswaptionengine.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/models/gaussian1dfloatfloatswaptionengine.cpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | 1 | 2022-03-29T05:44:27.000Z | 2022-03-29T05:44:27.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2013 Peter Caspers
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/o... | 47.365805 | 80 | 0.391815 | [
"vector"
] |
98650135ecd2ea81cdd57caa2f1f6e836cc1d482 | 4,276 | cpp | C++ | src/gui/qgsgeometryrubberband.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/gui/qgsgeometryrubberband.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/gui/qgsgeometryrubberband.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
qgsgeometryrubberband.cpp
-------------------------
begin : December 2014
copyright : (C) 2014 by Marco Hugentobler
email : marco at sourcep... | 26.395062 | 139 | 0.551918 | [
"transform"
] |
98677e3e73011638331381bbcf353a3cdfdc6996 | 7,646 | cc | C++ | src/affilechooser-ui.cc | mpayrits/alarmfsck | 9586debf2d7b4cf3076a76576f0b76b9521b84c4 | [
"MIT"
] | null | null | null | src/affilechooser-ui.cc | mpayrits/alarmfsck | 9586debf2d7b4cf3076a76576f0b76b9521b84c4 | [
"MIT"
] | null | null | null | src/affilechooser-ui.cc | mpayrits/alarmfsck | 9586debf2d7b4cf3076a76576f0b76b9521b84c4 | [
"MIT"
] | null | null | null | #include "affilechooser.h"
#include "aflaunch.h"
#include "common.h"
#include <gtkmm/filechooserdialog.h>
#include <gtkmm/cellrenderertext.h>
#include <iostream>
#include <cstdlib>
const char FILE_DELIM = '/';
AlarmFsckFileChooser::AlarmFsckFileChooser(AlarmFsckLauncher& parent) :
addFilesButton("Add Files"),
... | 39.210256 | 131 | 0.721031 | [
"render",
"vector"
] |
986fd70c4b0d074feac8924c969764c7cfe2b846 | 2,056 | hpp | C++ | menoh/composite_backend/backend/generic/operator/mul.hpp | yuhonghong66/menoh | cdb33dfc8ba4c8dbb4c2bc70aae4f52433116402 | [
"MIT"
] | 284 | 2018-06-21T02:00:08.000Z | 2021-11-22T07:50:22.000Z | menoh/composite_backend/backend/generic/operator/mul.hpp | yuhonghong66/menoh | cdb33dfc8ba4c8dbb4c2bc70aae4f52433116402 | [
"MIT"
] | 174 | 2018-06-21T06:01:57.000Z | 2020-12-28T06:26:55.000Z | menoh/composite_backend/backend/generic/operator/mul.hpp | yuhonghong66/menoh | cdb33dfc8ba4c8dbb4c2bc70aae4f52433116402 | [
"MIT"
] | 33 | 2018-06-21T04:19:17.000Z | 2020-05-08T12:51:55.000Z | #ifndef MENOH_IMPL_COMPOSITE_BACKEND_BACKEND_GENERIC_OPERATOR_MUL_HPP
#define MENOH_IMPL_COMPOSITE_BACKEND_BACKEND_GENERIC_OPERATOR_MUL_HPP
#include <menoh/array.hpp>
#include <menoh/graph.hpp> // for dimension_mismatch error
#include <menoh/composite_backend/procedure.hpp>
namespace menoh_impl {
namespace compos... | 41.959184 | 78 | 0.524805 | [
"vector"
] |
987499d0aca97b7b57e4cbf8cdd0e1a3cb4cc378 | 3,114 | cpp | C++ | platforms/cuda/src/CudaPYKernelFactory.cpp | chemalot/openmm-py | 256dd76f6dc06ef0b99a11b8dca77588b1d9459e | [
"MIT",
"Unlicense"
] | 1 | 2019-01-25T16:32:19.000Z | 2019-01-25T16:32:19.000Z | platforms/cuda/src/CudaPYKernelFactory.cpp | chemalot/openmm-py | 256dd76f6dc06ef0b99a11b8dca77588b1d9459e | [
"MIT",
"Unlicense"
] | 1 | 2019-01-18T23:52:51.000Z | 2019-01-18T23:52:51.000Z | platforms/cuda/src/CudaPYKernelFactory.cpp | chemalot/openmm-py | 256dd76f6dc06ef0b99a11b8dca77588b1d9459e | [
"MIT",
"Unlicense"
] | null | null | null | /* -------------------------------------------------------------------------- *
* The MIT License
*
* SPDX short identifier: MIT
*
* Copyright 2019 Genentech Inc. South San Francisco
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation ... | 39.923077 | 123 | 0.661529 | [
"vector"
] |
9875e1b4f12a13a38a821a30e1f296f187370ae6 | 10,817 | hxx | C++ | cpp/src/nvgraph/include/lanczos.hxx | rgsl888prabhu/cugraph | e030a2fe22ad308fba05d6146765a3c9aa865e5b | [
"Apache-2.0"
] | 16 | 2019-09-13T11:43:26.000Z | 2022-03-02T10:11:59.000Z | cpp/src/nvgraph/include/lanczos.hxx | rgsl888prabhu/cugraph | e030a2fe22ad308fba05d6146765a3c9aa865e5b | [
"Apache-2.0"
] | 5 | 2020-02-12T14:55:25.000Z | 2021-12-06T17:55:12.000Z | cpp/src/nvgraph/include/lanczos.hxx | rgsl888prabhu/cugraph | e030a2fe22ad308fba05d6146765a3c9aa865e5b | [
"Apache-2.0"
] | 6 | 2020-04-06T01:34:45.000Z | 2021-01-21T17:13:24.000Z | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 45.44958 | 84 | 0.710178 | [
"object"
] |
9878c571c66aae2b517eab40ffe8116da49e7830 | 27,239 | cpp | C++ | src/ttauri/text/text_shaper.cpp | RustWorks/ttauri | 4b093eb16465091d01d80159e23fd26e5d4e4c03 | [
"BSL-1.0"
] | null | null | null | src/ttauri/text/text_shaper.cpp | RustWorks/ttauri | 4b093eb16465091d01d80159e23fd26e5d4e4c03 | [
"BSL-1.0"
] | null | null | null | src/ttauri/text/text_shaper.cpp | RustWorks/ttauri | 4b093eb16465091d01d80159e23fd26e5d4e4c03 | [
"BSL-1.0"
] | null | null | null | // Copyright Take Vos 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#include "text_shaper.hpp"
#include "font_book.hpp"
#include "../unicode/unicode_line_break.hpp"
#include "../unicode/unicode_bidi.hpp"
#... | 33.01697 | 128 | 0.637028 | [
"vector"
] |
988dcf6eaa2185d21c2b55eca4e7c81b3ff5b426 | 1,209 | cpp | C++ | jeff/day-08/part-1.cpp | jeffphi/advent-of-code-2018 | 8e54bd23ebfe42fcbede315f0ab85db903551532 | [
"MIT"
] | 1 | 2018-12-23T01:40:07.000Z | 2018-12-23T01:40:07.000Z | jeff/day-08/part-1.cpp | jeffphi/advent-of-code-2018 | 8e54bd23ebfe42fcbede315f0ab85db903551532 | [
"MIT"
] | null | null | null | jeff/day-08/part-1.cpp | jeffphi/advent-of-code-2018 | 8e54bd23ebfe42fcbede315f0ab85db903551532 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include "jefflib.h"
#include <boost/tokenizer.hpp>
#include <map>
#include <set>
using namespace std;
using namespace boost;
void processNode(vector<int>& data, int& index, int& checksum);
int main()
{
vector<string> vect;
if(GetStringInput(vect)){
... | 21.210526 | 63 | 0.578164 | [
"vector"
] |
9891b0a4cdf9f3ad13f60810f2d4ca72adf92997 | 16,035 | cc | C++ | physicalrobots/player/server/drivers/position/lasersafe/lasersafe.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | physicalrobots/player/server/drivers/position/lasersafe/lasersafe.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | physicalrobots/player/server/drivers/position/lasersafe/lasersafe.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
* Player - One Hell of a Robot Server
* Copyright (C) 2006
* Toby Collett
*
*
* This library 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.1 of the License, or... | 29.048913 | 133 | 0.640287 | [
"object",
"model"
] |
98961d058c33a2afcefd04dc4ace17190c1e6f26 | 1,697 | cpp | C++ | src/JsonParser.cpp | developer-kikikaikai/linux_router | e4c29f407b5ace64298f798d6b1afabd81c2b6f5 | [
"MIT"
] | null | null | null | src/JsonParser.cpp | developer-kikikaikai/linux_router | e4c29f407b5ace64298f798d6b1afabd81c2b6f5 | [
"MIT"
] | 14 | 2018-07-22T19:12:21.000Z | 2018-08-21T08:54:49.000Z | src/JsonParser.cpp | developer-kikikaikai/linux_router | e4c29f407b5ace64298f798d6b1afabd81c2b6f5 | [
"MIT"
] | null | null | null | #include <string.h>
#include <fstream>
#include <iostream>
#include "JsonParser.hpp"
JsonParser::JsonParser(const char * input_setting) {
/*read file first*/
std::string input_string;
try {
/*openfile*/
std::ifstream ifs(input_setting, std::ios::binary);
/*read all*/
std::string buf;
while(getline(ifs, ... | 23.246575 | 79 | 0.642899 | [
"object"
] |
989a43a57997cd196053e7637eba3798a328d802 | 2,103 | inl | C++ | src/cunumeric/matrix/trilu_template.inl | marcinz/cunumeric | c40b038d4eb0611f7bb16d5bd11891a633ef7892 | [
"Apache-2.0"
] | 118 | 2021-04-12T18:06:59.000Z | 2021-10-12T21:30:24.000Z | src/cunumeric/matrix/trilu_template.inl | marcinz/cunumeric | c40b038d4eb0611f7bb16d5bd11891a633ef7892 | [
"Apache-2.0"
] | 51 | 2021-04-21T10:40:13.000Z | 2021-09-10T22:09:26.000Z | src/cunumeric/matrix/trilu_template.inl | marcinz/cunumeric | c40b038d4eb0611f7bb16d5bd11891a633ef7892 | [
"Apache-2.0"
] | 9 | 2021-04-14T03:07:42.000Z | 2021-09-22T17:02:53.000Z | /* Copyright 2021 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 30.478261 | 90 | 0.696148 | [
"shape"
] |
989c2a3e54ca202e7e72c0457ad107a09aab890b | 37,203 | cpp | C++ | services/distributeddataservice/libs/distributeddb/test/unittest/common/common/distributeddb_auto_launch_test.cpp | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | null | null | null | services/distributeddataservice/libs/distributeddb/test/unittest/common/common/distributeddb_auto_launch_test.cpp | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | null | null | null | services/distributeddataservice/libs/distributeddb/test/unittest/common/common/distributeddb_auto_launch_test.cpp | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | 1 | 2021-09-13T12:07:54.000Z | 2021-09-13T12:07:54.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 37.731237 | 118 | 0.686665 | [
"vector"
] |
989f28e4caef654ac80ba043e4713c150b567b2c | 11,004 | cpp | C++ | wbsModels/EmeraldAshBorer/EmeraldAshBorerColdHardiness.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 6 | 2017-05-26T21:19:41.000Z | 2021-09-03T14:17:29.000Z | wbsModels/EmeraldAshBorer/EmeraldAshBorerColdHardiness.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 5 | 2016-02-18T12:39:58.000Z | 2016-03-13T12:57:45.000Z | wbsModels/EmeraldAshBorer/EmeraldAshBorerColdHardiness.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 1 | 2019-06-16T02:49:20.000Z | 2019-06-16T02:49:20.000Z | //**************************************************************************************************************
// 20/03/2019 1.0.2 Rémi Saint-Amant new equation of mortality based on logistic model
// 13/04/2018 1.0.1 Rémi Saint-Amant Compile with VS 2017
// 08/05/2017 1.0.0 Rémi Saint-Amant Create from articles ... | 29.660377 | 175 | 0.630044 | [
"vector",
"model",
"transform"
] |
f0f9490805e26e547e86b152eb464d0b0ec1be48 | 4,967 | cpp | C++ | src/gui_algorithm/GuiAlgorithm.cpp | vakokako/play_cpp | ae7d9aa63d94e033a646df28206428231ae6e134 | [
"Unlicense"
] | null | null | null | src/gui_algorithm/GuiAlgorithm.cpp | vakokako/play_cpp | ae7d9aa63d94e033a646df28206428231ae6e134 | [
"Unlicense"
] | null | null | null | src/gui_algorithm/GuiAlgorithm.cpp | vakokako/play_cpp | ae7d9aa63d94e033a646df28206428231ae6e134 | [
"Unlicense"
] | null | null | null | // #include "GuiQt.hpp"
#include <QApplication>
#include <QDoubleSpinBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QVBoxLayout>
#include <QWidget>
#include <iostream>
#include <tuple>
template <auto... T>
class ptype;
template <class T>
struct Property {
using ValueT = T;
// explicit Property(std::s... | 27.748603 | 79 | 0.60157 | [
"solid"
] |
f0fa255285658bf239ed69ae9c914efbc3b7c38d | 13,454 | cpp | C++ | lib/Common/Memory/RecyclerSweep.cpp | P1umer/ChakraCore | 6b471d9b9096ded789a924bc7f0518bbb000c320 | [
"MIT"
] | 3 | 2018-08-08T03:36:56.000Z | 2019-05-24T08:45:30.000Z | lib/Common/Memory/RecyclerSweep.cpp | P1umer/ChakraCore | 6b471d9b9096ded789a924bc7f0518bbb000c320 | [
"MIT"
] | 19 | 2019-03-15T17:40:15.000Z | 2019-03-20T18:26:35.000Z | lib/Common/Memory/RecyclerSweep.cpp | P1umer/ChakraCore | 6b471d9b9096ded789a924bc7f0518bbb000c320 | [
"MIT"
] | 6 | 2018-09-07T05:16:47.000Z | 2021-03-23T20:30:38.000Z | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | 43.96732 | 149 | 0.790248 | [
"object"
] |
f0fceae474c7b1f200b00c2d5be7751c836a20c0 | 4,480 | cpp | C++ | libmime/util/token.cpp | Jim-CodeHub/libMIME | 5027372f2d30f72f357af2ae8cc8525e7925de2c | [
"Apache-2.0"
] | 1 | 2020-05-13T04:23:28.000Z | 2020-05-13T04:23:28.000Z | libmime/util/token.cpp | Jim-CodeHub/libMIME | 5027372f2d30f72f357af2ae8cc8525e7925de2c | [
"Apache-2.0"
] | null | null | null | libmime/util/token.cpp | Jim-CodeHub/libMIME | 5027372f2d30f72f357af2ae8cc8525e7925de2c | [
"Apache-2.0"
] | 1 | 2022-02-24T20:02:48.000Z | 2022-02-24T20:02:48.000Z | /**-----------------------------------------------------------------------------------------------------------------
* @file token.cpp
* @brief token utility tool
*
* Copyright (c) 2019-2019 Jim Zhang 303683086@qq.com
*----------------------------------------------------------------------------------------------... | 26.826347 | 116 | 0.576563 | [
"vector"
] |
0b02a048af6f082014db180ff55f71031d28f2e0 | 1,574 | cpp | C++ | src/ai/sensor/camera/kinect/SimKinect.cpp | icaros-usc/wecook | 27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc | [
"BSD-3-Clause"
] | 15 | 2019-09-15T05:24:19.000Z | 2021-02-26T20:31:19.000Z | src/ai/sensor/camera/kinect/SimKinect.cpp | icaros-usc/wecook | 27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc | [
"BSD-3-Clause"
] | 16 | 2019-10-10T23:27:00.000Z | 2020-05-14T02:30:56.000Z | src/ai/sensor/camera/kinect/SimKinect.cpp | icaros-usc/wecook | 27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc | [
"BSD-3-Clause"
] | 2 | 2020-02-01T16:31:29.000Z | 2020-04-07T21:00:04.000Z | //
// Created by hejia on 11/29/19.
//
#include "ai/sensor/camera/kinect/SimKinect.h"
void updateObjectPoses(const Eigen::Affine3d &tf) {
}
void updateTree() {
}
cv::Point3d wecook::ai::sensor::camera::kinect::SimKinect::projectPixelTo3dRay(const cv::Point2f &uv_rect) const {
cv::Point3d ray;
ray.x = (uv_rect... | 30.862745 | 114 | 0.660737 | [
"object",
"vector",
"model"
] |
0b032914000b4ff1f0f2ec6fbd318117629ef090 | 16,522 | hpp | C++ | CAX/gm_cloudauthx/bootil/src/3rdParty/stlencoders/base16.hpp | kurozael/project-archive | dcac1a9a8dee65c11f4a631ec08d6eef320f5ad0 | [
"MIT"
] | 13 | 2021-06-30T15:47:33.000Z | 2021-09-18T15:44:34.000Z | lib/GWEN-master/gwen/src/3rdParty/stlencoders/base16.hpp | mpavlinsky/bobsgame | dd4c0713828594ef601c61785164b3fa41e27e2a | [
"Unlicense"
] | null | null | null | lib/GWEN-master/gwen/src/3rdParty/stlencoders/base16.hpp | mpavlinsky/bobsgame | dd4c0713828594ef601c61785164b3fa41e27e2a | [
"Unlicense"
] | 7 | 2021-06-30T17:14:41.000Z | 2021-10-14T01:41:18.000Z | /*
* Copyright (c) 2011, 2012 Thomas Kemmer <tkemmer@computer.org>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to us... | 35.153191 | 91 | 0.579591 | [
"object"
] |
0b037f1b5bd8d01ec8ab2c2e8bc5f67950ce3a84 | 14,525 | cpp | C++ | src/optimizer/rule_impls.cpp | xinzhang1234/peloton | 9b11d92dd5a2a0b32d5c39a9ba0b1aa45fe0b654 | [
"Apache-2.0"
] | 2 | 2017-07-24T12:25:58.000Z | 2022-03-17T11:43:42.000Z | src/optimizer/rule_impls.cpp | xinzhang1234/peloton | 9b11d92dd5a2a0b32d5c39a9ba0b1aa45fe0b654 | [
"Apache-2.0"
] | 2 | 2016-10-01T00:36:16.000Z | 2016-11-05T23:40:07.000Z | src/optimizer/rule_impls.cpp | xinzhang1234/peloton | 9b11d92dd5a2a0b32d5c39a9ba0b1aa45fe0b654 | [
"Apache-2.0"
] | 3 | 2016-09-24T01:22:30.000Z | 2019-01-09T16:17:25.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// rule_impls.cpp
//
// Identification: src/optimizer/rule_impls.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===--------------------------------------------------... | 32.064018 | 80 | 0.694664 | [
"vector",
"transform"
] |
0b039618406f80ea6b24f0978af51a7609d952de | 27,913 | cpp | C++ | src/providers/wfs/qgswfssourceselect.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/providers/wfs/qgswfssourceselect.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/providers/wfs/qgswfssourceselect.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
qgswfssourceselect.cpp
-------------------
begin : August 25, 2006
copyright : (C) 2016 by Marco Hugentobler
email : marco dot hugentobl... | 35.557962 | 149 | 0.700534 | [
"geometry"
] |
0b0c86e9446ebdb389d733e609970d9d256816f2 | 1,754 | cpp | C++ | Lessons/2-Arrays/cyclicRotation.cpp | Visn0/Codility | 51999e0f61bbc0ed8c30304cc8181e2adaf90c5b | [
"MIT"
] | null | null | null | Lessons/2-Arrays/cyclicRotation.cpp | Visn0/Codility | 51999e0f61bbc0ed8c30304cc8181e2adaf90c5b | [
"MIT"
] | null | null | null | Lessons/2-Arrays/cyclicRotation.cpp | Visn0/Codility | 51999e0f61bbc0ed8c30304cc8181e2adaf90c5b | [
"MIT"
] | null | null | null | /*
An array A consisting of N integers is given. Rotation of the array means that each element is
shifted right by one index, and the last element of the array is moved to the first place. For
example, the rotation of array A = [3, 8, 9, 7, 6] is [6, 3, 8, 9, 7] (elements are shifted right by
one index and 6 is moved t... | 24.361111 | 100 | 0.614595 | [
"vector"
] |
0b1c18ff41cbc485d2e11b3a4e04dd890df0b89c | 3,154 | hpp | C++ | cpp/src/copying/legacy/slice.hpp | wbo4958/cudf | b12f24d25815145a573a9d70f8c6140a8ab9d2cb | [
"Apache-2.0"
] | null | null | null | cpp/src/copying/legacy/slice.hpp | wbo4958/cudf | b12f24d25815145a573a9d70f8c6140a8ab9d2cb | [
"Apache-2.0"
] | null | null | null | cpp/src/copying/legacy/slice.hpp | wbo4958/cudf | b12f24d25815145a573a9d70f8c6140a8ab9d2cb | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 BlazingDB, Inc.
* Copyright 2019 Christian Noboa Mardini <christian@blazingdb.com>
* Copyright 2019 William Scott Malpica <william@blazingdb.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 39.425 | 88 | 0.723209 | [
"vector"
] |
0b20dde7f49d97722d203a2c14e6afa26e2af85f | 4,126 | cpp | C++ | src/render/mesh.cpp | ugozapad/pbr-sandbox | 07417cc68b9422ff01b4c293a42d8ce65f9297ca | [
"BSD-2-Clause"
] | null | null | null | src/render/mesh.cpp | ugozapad/pbr-sandbox | 07417cc68b9422ff01b4c293a42d8ce65f9297ca | [
"BSD-2-Clause"
] | null | null | null | src/render/mesh.cpp | ugozapad/pbr-sandbox | 07417cc68b9422ff01b4c293a42d8ce65f9297ca | [
"BSD-2-Clause"
] | null | null | null | #include "render/mesh.h"
#include "render/renderdevice.h"
#include "render/vertexbuffer.h"
#include "render/indexbuffer.h"
#include <string>
#include <glm/gtx/matrix_decompose.hpp>
#include "glad/glad.h"
inline static glm::mat4 ai_to_gl(const aiMatrix4x4& from)
{
return glm::mat4(
(double)from.a1, (double)from.b... | 28.853147 | 147 | 0.721037 | [
"mesh",
"render",
"vector"
] |
0b216927a54cce75064232b65460713ded160087 | 654 | cpp | C++ | Oath3D/src/System/ECS/Entity.cpp | BertilBraun/Oath3D | e713f4f97bd1998d6c7a67414ff5f80d6d30e7f9 | [
"MIT"
] | 3 | 2019-01-10T18:39:45.000Z | 2022-01-11T01:33:57.000Z | Oath3D/src/System/ECS/Entity.cpp | BertilBraun/Oath3D | e713f4f97bd1998d6c7a67414ff5f80d6d30e7f9 | [
"MIT"
] | null | null | null | Oath3D/src/System/ECS/Entity.cpp | BertilBraun/Oath3D | e713f4f97bd1998d6c7a67414ff5f80d6d30e7f9 | [
"MIT"
] | 1 | 2019-12-23T19:37:00.000Z | 2019-12-23T19:37:00.000Z | #include "Common/Common.h"
#include "Entity.h"
#include "Manager.h"
namespace Oath {
ECS::Entity::Entity(Manager* ecs) : ecs(ecs), transform(this) { }
ECS::Entity::~Entity()
{
for (ECS::Entity* child : childs)
ecs->removeEntity(child);
}
void ECS::Entity::add(Entity * e) {
childs.push_back(e);
e->pa... | 17.210526 | 78 | 0.648318 | [
"transform"
] |
0b22b070fae94af0382e6bb8a20e8729d372e21c | 2,021 | hpp | C++ | include/Core/Utils/MapUtils.hpp | BestEggplant/ObEngine | 4543ff027cc05de0eddede8f55b28f0cf1138189 | [
"MIT"
] | 1 | 2020-07-23T14:23:59.000Z | 2020-07-23T14:23:59.000Z | include/Core/Utils/MapUtils.hpp | BestEggplant/ObEngine | 4543ff027cc05de0eddede8f55b28f0cf1138189 | [
"MIT"
] | null | null | null | include/Core/Utils/MapUtils.hpp | BestEggplant/ObEngine | 4543ff027cc05de0eddede8f55b28f0cf1138189 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <vector>
/**
* \brief Some functions to handle maps
*/
namespace obe::Utils::Map
{
/**
* \nobind
* \brief Check if the given value is found in the std::map
* \tparam MapType type of the std::map you want to search a value from
* \param item Value to searc... | 29.720588 | 90 | 0.602672 | [
"vector"
] |
0b2971908a4d3ace5cdc7a0437960b4df5dddb00 | 3,275 | cpp | C++ | Test/POP3/SmtpMailer.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 67 | 2018-03-02T10:50:02.000Z | 2022-03-23T18:20:29.000Z | Test/POP3/SmtpMailer.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | null | null | null | Test/POP3/SmtpMailer.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 9 | 2018-03-01T16:38:28.000Z | 2021-03-02T16:17:09.000Z | // ---------------------------
// (c) Reliable Software, 2005
// ---------------------------
#include "precompiled.h"
#include "SmtpMailer.h"
#include "EmailMessage.h"
#include <Mail/Base64.h>
#include <Mail/SmtpMessage.h>
#include <Mail/SmtpUtils.h>
#include <Mail/MsgTree.h>
Smtp::Mailer::Mailer (
std::string const... | 30.607477 | 108 | 0.679389 | [
"vector"
] |
0b2ebe58ed1076b7b40a85ceb5c459220d78a158 | 889 | cpp | C++ | HiringContests/CodeVita2017/mockvita_ram_and_chocolate.cpp | ysumit99/Compi-Coding | d0e96c4f024328b0bfb799fab927919dae367f7a | [
"MIT"
] | 1 | 2019-04-19T13:06:33.000Z | 2019-04-19T13:06:33.000Z | HiringContests/CodeVita2017/mockvita_ram_and_chocolate.cpp | ysumit99/Compi-Coding | d0e96c4f024328b0bfb799fab927919dae367f7a | [
"MIT"
] | null | null | null | HiringContests/CodeVita2017/mockvita_ram_and_chocolate.cpp | ysumit99/Compi-Coding | d0e96c4f024328b0bfb799fab927919dae367f7a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
//using namespace std;
int main(int argc, char const *argv[])
{
int n,ele;
scanf("%d",&n);
int first = 0,rest = 0;
std::vector<int> v;
for (int i = 0; i < n; ++i)
{
scanf("%d",&ele);
v.push_back(ele);
if(i == 0 )
first = ele;
else
rest += ele;
}
//cout<<first<<" "<<r... | 15.327586 | 39 | 0.490439 | [
"vector"
] |
0b314bb7694ddf08bd17cdd44b5c836a3618ebd5 | 10,859 | cpp | C++ | src/sampling.cpp | hsloot/cvalr | c5f9f9af607f73b30c40bd91a0cd4d855f5efb52 | [
"MIT"
] | 1 | 2021-05-13T21:32:31.000Z | 2021-05-13T21:32:31.000Z | src/sampling.cpp | hsloot/cvalr | c5f9f9af607f73b30c40bd91a0cd4d855f5efb52 | [
"MIT"
] | 27 | 2021-01-16T15:29:35.000Z | 2021-11-28T16:46:15.000Z | src/sampling.cpp | hsloot/cvalr | c5f9f9af607f73b30c40bd91a0cd4d855f5efb52 | [
"MIT"
] | 1 | 2021-05-13T21:32:14.000Z | 2021-05-13T21:32:14.000Z |
// clang-format off
#include <Rcpp.h>
#include <rmolib/random/r_engine.hpp> // must be included before <rmolib/*>
// clang-format on
#include "rmolib/algorithm/r_shuffle.hpp"
#include "rmolib/random/multivariate/armageddon_extmo_distribution.hpp"
#include "rmolib/random/multivariate/markovian_exmo_distribution.hpp"
#... | 42.920949 | 102 | 0.689198 | [
"object",
"vector",
"model",
"transform"
] |
0b32e1afac3f2bac68c1b463d0fd93c105383ab8 | 6,687 | cpp | C++ | Acodemia/source/manager/PhysicalManager.cpp | jackflower/Acodemia | 779d1ea76cf7c3841aa57e7a3f3c45591a5a2940 | [
"MIT"
] | 2 | 2019-11-26T09:50:56.000Z | 2019-11-30T19:40:42.000Z | Acodemia/source/manager/PhysicalManager.cpp | jackflower/Acodemia | 779d1ea76cf7c3841aa57e7a3f3c45591a5a2940 | [
"MIT"
] | null | null | null | Acodemia/source/manager/PhysicalManager.cpp | jackflower/Acodemia | 779d1ea76cf7c3841aa57e7a3f3c45591a5a2940 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////
//
// Acodemia Copyright (C) Jacek Kwiatek
// e-mail: jackflower (at) poczta.onet.pl
// acodemia.pl
//
// To oprogramowanie dostarczane jest w postaci takiej,
// w jakiej jest, bez wyraźnych ani domniemanych gwarancji.
//
// W żadnym wypadku Autor nie ponosi... | 26.121094 | 97 | 0.706744 | [
"render",
"object",
"vector"
] |
0b366674e8526028d4e7e37952829870772ccbaf | 40,116 | cpp | C++ | srcs/simulate.cpp | colematt/apex-sim | 304dfdb8789729639099869e1222a2325fd2752f | [
"MIT"
] | 1 | 2017-09-23T04:55:23.000Z | 2017-09-23T04:55:23.000Z | srcs/simulate.cpp | colematt/apex-sim | 304dfdb8789729639099869e1222a2325fd2752f | [
"MIT"
] | 5 | 2016-11-21T23:49:10.000Z | 2016-12-11T23:05:37.000Z | srcs/simulate.cpp | colematt/apex-sim | 304dfdb8789729639099869e1222a2325fd2752f | [
"MIT"
] | 1 | 2018-11-17T03:40:04.000Z | 2018-11-17T03:40:04.000Z | #include <vector>
#include <string>
#include "cpu.h"
#include "apex.h"
// FORWARDING 1 : forwarding occurs
// FORWARDING 0 : forwarding does not occur
#define FORWARDING 1
int CPU::simulate(Code &mycode, Registers &myregisters, Data &mydata,
ROB &myrob, IQ &myiq){
/*FORWARDING PHASE********************************... | 30.41395 | 97 | 0.569773 | [
"vector"
] |
0b37870577dc80a88381057533f9a64d1c6e43dc | 4,743 | cpp | C++ | src/aws_hls4ml.cpp | sznajder/hls4ml_c | ca104370f2029fab6fe0db0e775ab768fe01f3eb | [
"Unlicense"
] | 3 | 2019-06-12T15:40:49.000Z | 2021-12-03T20:44:08.000Z | src/aws_hls4ml.cpp | violatingcp/hls4ml_c | ca104370f2029fab6fe0db0e775ab768fe01f3eb | [
"Unlicense"
] | null | null | null | src/aws_hls4ml.cpp | violatingcp/hls4ml_c | ca104370f2029fab6fe0db0e775ab768fe01f3eb | [
"Unlicense"
] | 4 | 2019-02-06T15:49:40.000Z | 2022-01-04T20:33:26.000Z | /**********
Copyright (c) 2018, Xilinx, 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 notice,
this list of conditions and the fol... | 40.538462 | 140 | 0.701033 | [
"vector"
] |
0b39b6b098e8f8faf26a692f58310282c5138670 | 11,062 | hpp | C++ | turtlebot2/kobuki_base/kobuki_ros/kobuki_node/include/kobuki_node/kobuki_ros.hpp | RoboticsLabURJC/2021-tfg-carlos-caminero | e23991616cb971b9a0bd95b653789c54f571a930 | [
"Apache-2.0"
] | null | null | null | turtlebot2/kobuki_base/kobuki_ros/kobuki_node/include/kobuki_node/kobuki_ros.hpp | RoboticsLabURJC/2021-tfg-carlos-caminero | e23991616cb971b9a0bd95b653789c54f571a930 | [
"Apache-2.0"
] | null | null | null | turtlebot2/kobuki_base/kobuki_ros/kobuki_node/include/kobuki_node/kobuki_ros.hpp | RoboticsLabURJC/2021-tfg-carlos-caminero | e23991616cb971b9a0bd95b653789c54f571a930 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2012, Yujin Robot.
* 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 ... | 47.681034 | 118 | 0.735491 | [
"vector"
] |
0b3eae881017a522ef253234b8571298f940b962 | 752 | cpp | C++ | Data Structure/Arrays/Sparse Arrays.cpp | pranayspeed/HackerRank-Solutions-C- | 54c3e1c567a96a22284ff079fb2c121ce68fe8b7 | [
"MIT"
] | null | null | null | Data Structure/Arrays/Sparse Arrays.cpp | pranayspeed/HackerRank-Solutions-C- | 54c3e1c567a96a22284ff079fb2c121ce68fe8b7 | [
"MIT"
] | null | null | null | Data Structure/Arrays/Sparse Arrays.cpp | pranayspeed/HackerRank-Solutions-C- | 54c3e1c567a96a22284ff079fb2c121ce68fe8b7 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int N;
cin>>N;
vector<string> strList;
for(int i=0;i<N;i++)
{
string s;
cin... | 17.904762 | 78 | 0.470745 | [
"vector"
] |
0b3f358188a357bce97bdeaf3b43063eae33aa3f | 1,687 | hpp | C++ | src/algorithms/data_structures/array/min_subarray_equal_to_value.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | src/algorithms/data_structures/array/min_subarray_equal_to_value.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | src/algorithms/data_structures/array/min_subarray_equal_to_value.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #ifndef MIN_SUBARRAY_EQUAL_TO_VALUE_HPP
#define MIN_SUBARRAY_EQUAL_TO_VALUE_HPP
// https://leetcode.com/problems/minimum-size-subarray-sum/description/
/*
Given an array of n positive integers and a positive integer s, find the
minimal length of a contiguous subarray of which the sum ≥ s. If there isn't
one, return 0... | 26.777778 | 76 | 0.589804 | [
"vector"
] |
0b421201397134330914540fa908e6adc98ff8a0 | 13,112 | cpp | C++ | tests/benchdnn/dnnl_memory.cpp | OpenImageDenoise/mkl-dnn | f53274c9fef211396655fc4340cb838452334089 | [
"Apache-2.0"
] | 4 | 2019-02-01T11:16:59.000Z | 2020-04-27T17:27:06.000Z | tests/benchdnn/dnnl_memory.cpp | OpenImageDenoise/mkl-dnn | f53274c9fef211396655fc4340cb838452334089 | [
"Apache-2.0"
] | null | null | null | tests/benchdnn/dnnl_memory.cpp | OpenImageDenoise/mkl-dnn | f53274c9fef211396655fc4340cb838452334089 | [
"Apache-2.0"
] | 5 | 2019-02-08T07:36:01.000Z | 2021-07-14T07:58:50.000Z | /*******************************************************************************
* Copyright 2019-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 of the License at
*
* http://www.apa... | 36.220994 | 80 | 0.598841 | [
"object"
] |
0b4acd8080225e4da2d6751d14e0130399bf843c | 6,086 | cpp | C++ | src/level/object.cpp | geoo89/Lix | 47dfd2317509ed5cb39b7b230b2de138dc613a6d | [
"CC0-1.0"
] | 1 | 2015-08-29T05:22:40.000Z | 2015-08-29T05:22:40.000Z | src/level/object.cpp | carvalhomb/AdaptiveLix | d7054c5f96fae54dccef23e48760851b4981a109 | [
"CC0-1.0"
] | null | null | null | src/level/object.cpp | carvalhomb/AdaptiveLix | d7054c5f96fae54dccef23e48760851b4981a109 | [
"CC0-1.0"
] | null | null | null | /*
* level/special.cpp
*
*/
#include "object.h"
#include "../graphic/glob_gfx.h" // colors for the selbox determination
#include "../other/file/io.h"
#include "../other/globals.h"
Object::Object(const Cutbit& c, Type t, int st)
:
cb (c),
type (t),
subtype (st),
selbox_x (cb.get_xl())... | 29.687805 | 78 | 0.50608 | [
"object",
"vector"
] |
0b4e87be75f7f1127da5abb5eb7c3e32ffe12231 | 428 | cpp | C++ | Leet Code/268_missing_number.cpp | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 2 | 2020-06-25T21:10:32.000Z | 2020-12-10T06:53:45.000Z | Leet Code/268_missing_number.cpp | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | null | null | null | Leet Code/268_missing_number.cpp | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 3 | 2020-05-15T14:17:09.000Z | 2021-07-25T13:18:20.000Z | class Solution {
public:
int missingNumber(vector<int>& nums) {
int m = nums.size();
int s = 0;
for(int i = 0; i < m; i++){
s ^=(i+1)^(nums[i]);
}
return s;
}
};
class Solution {
public:
int missingNumber(vector<int>& nums) {
int m = nums.size();
... | 18.608696 | 42 | 0.418224 | [
"vector"
] |
0b4fe3fdd1ac9caae807e9f481c568741cb12a80 | 17,485 | cc | C++ | minios/screens/screen_network.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | minios/screens/screen_network.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | minios/screens/screen_network.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 The Chromium OS 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 "minios/screens/screen_network.h"
#include <base/logging.h>
#include <dbus/minios/dbus-constants.h>
#include <dbus/shill/dbus-constants.h>
#... | 33.820116 | 80 | 0.639348 | [
"vector"
] |
0b5663f7d1aeba58b8d7e24a7f7a29dac3bbe80d | 10,936 | cpp | C++ | Plugin~/Src/MeshSync/SceneCache/msOSceneCacheImpl.cpp | leegoonz/MeshSync | 484be18431d20aa5056e010d62de62779ee3c3f4 | [
"Apache-2.0"
] | 1,047 | 2017-02-01T01:56:55.000Z | 2022-03-30T10:27:07.000Z | Plugin~/Src/MeshSync/SceneCache/msOSceneCacheImpl.cpp | leegoonz/MeshSync | 484be18431d20aa5056e010d62de62779ee3c3f4 | [
"Apache-2.0"
] | 112 | 2017-03-03T09:10:01.000Z | 2022-03-24T16:25:20.000Z | Plugin~/Src/MeshSync/SceneCache/msOSceneCacheImpl.cpp | leegoonz/MeshSync | 484be18431d20aa5056e010d62de62779ee3c3f4 | [
"Apache-2.0"
] | 120 | 2017-07-26T22:25:59.000Z | 2022-02-22T06:15:42.000Z | #include "pch.h"
#include "msOSceneCacheImpl.h"
#include "Utils/msDebug.h"
#include "MeshSync/NetworkData/msMeshDataFlags.h"
#include "MeshSync/SceneGraph/msMeshRefineFlags.h"
#include "MeshSync/SceneGraph/msTransform.h"
#include "MeshSync/SceneGraph/msMesh.h"
namespace ms {
OSceneCacheImpl::OSceneCacheImpl(StreamP... | 31.335244 | 138 | 0.541057 | [
"mesh",
"geometry",
"vector"
] |
0b5cd14fdd1e716aa95c64ecbc4b9ddd17834cc8 | 608 | cpp | C++ | ArduinoTerminalReportBuilder.cpp | skmatik/piot-home | 97bd10487b36dbe190d0f21de2d7e131379edb61 | [
"Apache-2.0"
] | null | null | null | ArduinoTerminalReportBuilder.cpp | skmatik/piot-home | 97bd10487b36dbe190d0f21de2d7e131379edb61 | [
"Apache-2.0"
] | null | null | null | ArduinoTerminalReportBuilder.cpp | skmatik/piot-home | 97bd10487b36dbe190d0f21de2d7e131379edb61 | [
"Apache-2.0"
] | null | null | null | //
// Created by martin.maliska on 9/22/2019.
//
#include <sstream>
#include <utility>
#include "ArduinoTerminalReportBuilder.h"
vector<string> ArduinoTerminalReportBuilder::build() {
vector<string> report = vector<string>();
for (int i = 0 ; i < sensors->size() ; i++) {
string line = string(sensors->... | 28.952381 | 108 | 0.662829 | [
"vector"
] |
0b5ee89aa36124569cba689757de69aba49bd225 | 3,494 | cpp | C++ | samples/templet/templet.cpp | Templet-language/mpiruntime | e7b13366591d2ce296e99045434ebcb04f5ee5e9 | [
"Apache-2.0"
] | null | null | null | samples/templet/templet.cpp | Templet-language/mpiruntime | e7b13366591d2ce296e99045434ebcb04f5ee5e9 | [
"Apache-2.0"
] | null | null | null | samples/templet/templet.cpp | Templet-language/mpiruntime | e7b13366591d2ce296e99045434ebcb04f5ee5e9 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
//#include <vector>
#include <queue>
#include <map>
#include <math.h>
using namespace std;
double x,sin2,cos2,one;
struct engine;
struct proc;
struct chan;
struct engine{
std::queue<chan*> ready;
std::map<int,chan*> chans;// channel id --> channel ref
std::map<int,proc*> procs;// proc... | 19.852273 | 69 | 0.593589 | [
"vector"
] |
0b694f71b93162b036143412251454b73a4b146c | 12,638 | cxx | C++ | Root/TauJetMatching.cxx | seangal/xAODAnaHelpers | 49f15c8525bf4aed9beceec2c58e58964d57e034 | [
"Apache-2.0"
] | 40 | 2015-05-19T17:55:42.000Z | 2021-06-22T07:40:41.000Z | Root/TauJetMatching.cxx | seangal/xAODAnaHelpers | 49f15c8525bf4aed9beceec2c58e58964d57e034 | [
"Apache-2.0"
] | 1,269 | 2015-05-19T21:39:26.000Z | 2022-03-21T06:18:10.000Z | Root/TauJetMatching.cxx | seangal/xAODAnaHelpers | 49f15c8525bf4aed9beceec2c58e58964d57e034 | [
"Apache-2.0"
] | 120 | 2015-05-25T15:14:48.000Z | 2022-03-04T20:39:25.000Z | // c++ include(s):
#include <iostream>
#include <typeinfo>
#include <map>
// EL include(s):
#include <EventLoop/Job.h>
#include <EventLoop/StatusCode.h>
#include <EventLoop/Worker.h>
// EDM include(s):
//#include "xAODCore/ShallowCopy.h"
//#include "AthContainers/ConstDataVector.h"
#include "xAODEventInfo/EventInfo.h... | 33.170604 | 176 | 0.664979 | [
"object",
"vector"
] |
0b6e666819e5299c8fdb0380a3cf656b075c5fc3 | 16,583 | cpp | C++ | src/kits/storage/Resources.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | 3 | 2018-05-21T15:32:32.000Z | 2019-03-21T13:34:55.000Z | src/kits/storage/Resources.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/kits/storage/Resources.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | /*
* Copyright 2001-2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
* Copyright 2013 Haiku, Inc.
* All Rights Reserved. Distributed under the terms of the MIT License.
*
* Authors:
* John Scipione, jscipione@gmail.com
* Ingo Weinhold, bonefish@cs.tu-berlin.de
*/
#include <Resources.h>
#include <new>
#in... | 23.929293 | 87 | 0.694567 | [
"object"
] |
0b71a9b70cf06fb92233d876397bdce99f67c1fa | 811 | cpp | C++ | 931/main.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 13 | 2019-10-12T14:36:32.000Z | 2021-06-08T04:26:30.000Z | 931/main.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 1 | 2020-02-29T14:02:39.000Z | 2020-02-29T14:02:39.000Z | 931/main.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 3 | 2020-02-08T12:04:28.000Z | 2020-03-17T11:53:00.000Z | class Solution {
public:
int minFallingPathSum(vector<vector<int>>& A) {
int n = A.size();
int m = A[0].size();
vector<vector<int>> f(n, vector<int>(m, 0));
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
if (i == 0)
... | 27.033333 | 57 | 0.293465 | [
"vector"
] |
0b7a5eb15663d5c4b8801509b87497c56b8f9b6a | 2,183 | cpp | C++ | src/shape.cpp | mfirmin/c5sc | 66b06061bf0f1a53c435f4109cd7fa636466c353 | [
"MIT"
] | 1 | 2015-01-05T07:49:33.000Z | 2015-01-05T07:49:33.000Z | src/shape.cpp | mfirmin/c5sc | 66b06061bf0f1a53c435f4109cd7fa636466c353 | [
"MIT"
] | null | null | null | src/shape.cpp | mfirmin/c5sc | 66b06061bf0f1a53c435f4109cd7fa636466c353 | [
"MIT"
] | null | null | null |
#define dSINGLE
#include "shape.h"
#include "globals.h"
#include <ode/ode.h>
#include <iostream>
void Shape::initialize(dBodyID& body, dGeomID& geom) const
{
dMatrix3 R;
dBodySetPosition(body, pos.x, pos.y, pos.z);
dBodySetLinearVel(body, vel.x, vel.y, vel.z);
dRFromAxisAndAngle(R, rot[0], rot[1], rot[2], ro... | 18.191667 | 93 | 0.638571 | [
"shape",
"vector"
] |
0b8164c366f874d1d6d6463cd95922f787401548 | 1,510 | cpp | C++ | AtCoder/abc222/D.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | 2 | 2021-09-14T15:57:24.000Z | 2022-03-18T14:11:04.000Z | AtCoder/abc222/D.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | null | null | null | AtCoder/abc222/D.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | null | null | null | /*
"An anomaly, I'm Muhammad Ali
Cause I know one day I'm gonna be the"
- Greatest, Eminem
*/
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define ff first
#define Shazam ios_base::sync_with_stdio(false); cin.tie(NULL)... | 25.166667 | 81 | 0.483444 | [
"vector"
] |
0b81ba1cde1ccc86f5934a137b2923444ae940fa | 18,410 | cc | C++ | src/as_helper.cc | gkvs/gkvs-cpp | c11adc759d5aeaf7877b085434a742f0bca634bd | [
"Apache-2.0"
] | null | null | null | src/as_helper.cc | gkvs/gkvs-cpp | c11adc759d5aeaf7877b085434a742f0bca634bd | [
"Apache-2.0"
] | null | null | null | src/as_helper.cc | gkvs/gkvs-cpp | c11adc759d5aeaf7877b085434a742f0bca634bd | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright 2018-present GKVS 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 law ... | 23.070175 | 114 | 0.558012 | [
"object"
] |
0b841ac6610b22bcfb48d5e3294c65b9021ed210 | 285,913 | cpp | C++ | Sharing/Src/Source/Client/ClientWrapperAPI_CSharp.cpp | ScriptBox99/MixedRealityToolkit | 9c9e6557263001bcbc48b8396c84ac840eff7c4c | [
"MIT"
] | 300 | 2017-08-12T12:57:42.000Z | 2019-05-06T00:31:29.000Z | Sharing/Src/Source/Client/ClientWrapperAPI_CSharp.cpp | ScriptBox99/MixedRealityToolkit | 9c9e6557263001bcbc48b8396c84ac840eff7c4c | [
"MIT"
] | 84 | 2017-08-14T11:03:37.000Z | 2019-04-24T22:59:59.000Z | Sharing/Src/Source/Client/ClientWrapperAPI_CSharp.cpp | ScriptBox99/MixedRealityToolkit | 9c9e6557263001bcbc48b8396c84ac840eff7c4c | [
"MIT"
] | 114 | 2017-08-12T03:51:58.000Z | 2019-05-06T03:36:26.000Z | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.10
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. D... | 31.308914 | 706 | 0.719659 | [
"vector"
] |
0b8b194a74c3f761f957c15546b4d2e0d6fa72d1 | 13,454 | cpp | C++ | EmojicodeReal-TimeEngine/JSON.cpp | icodeing/emojicode | f39fa328763b9f48a5c18cada709da964371c2a4 | [
"Artistic-2.0"
] | 1 | 2017-04-24T01:57:00.000Z | 2017-04-24T01:57:00.000Z | EmojicodeReal-TimeEngine/JSON.cpp | icodeing/emojicode | f39fa328763b9f48a5c18cada709da964371c2a4 | [
"Artistic-2.0"
] | null | null | null | EmojicodeReal-TimeEngine/JSON.cpp | icodeing/emojicode | f39fa328763b9f48a5c18cada709da964371c2a4 | [
"Artistic-2.0"
] | null | null | null | //
// JSON.c
// Emojicode
//
// Created by Theo Weidmann on 16/12/15.
// Copyright © 2015 Theo Weidmann. All rights reserved.
//
#include <cmath>
#include "Engine.hpp"
#include "Dictionary.h"
#include "List.h"
#include "Thread.hpp"
namespace Emojicode {
enum JSONState {
JSON_NONE = 0,
JSON_STRING = 1,
... | 40.041667 | 202 | 0.44195 | [
"object"
] |
0b8bfbd40b5de7c74a53bc55437f3401af068690 | 966 | cpp | C++ | uva/156.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | 3 | 2020-06-25T21:04:02.000Z | 2021-05-12T03:33:19.000Z | uva/156.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | null | null | null | uva/156.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | 1 | 2020-06-25T21:04:06.000Z | 2020-06-25T21:04:06.000Z | // Author: btjanaka (Bryon Tjanaka)
// Problem: (UVa) 156
#include <bits/stdc++.h>
#define GET(x) scanf("%d", &x)
#define GED(x) scanf("%lf", &x)
typedef long long ll;
using namespace std;
typedef pair<int, int> ii;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// bool tells if this anagram has ... | 24.15 | 79 | 0.57971 | [
"vector"
] |
0b8cad2c51ba42d74ac11890b667c66adabdd7aa | 13,872 | hpp | C++ | includes/rumal/declares.hpp | neel/rumal | 3348b936057457360f9a17b643b59f398667dd50 | [
"BSD-2-Clause"
] | null | null | null | includes/rumal/declares.hpp | neel/rumal | 3348b936057457360f9a17b643b59f398667dd50 | [
"BSD-2-Clause"
] | null | null | null | includes/rumal/declares.hpp | neel/rumal | 3348b936057457360f9a17b643b59f398667dd50 | [
"BSD-2-Clause"
] | 1 | 2019-11-25T12:47:14.000Z | 2019-11-25T12:47:14.000Z | /*
* Copyright (c) 2018, Sunanda Bose (Neel Basu) (neel.basu.z@gmail.com)
* 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 c... | 50.079422 | 132 | 0.670487 | [
"shape",
"transform"
] |
0b8ea7ee7cbdc9a3cf1ddda8b93bf714cc0d2951 | 842 | cpp | C++ | geometry/geometry_tests/vector_test.cpp | bowlofstew/omim | 8045157c95244aa8f862d47324df42a19b87e335 | [
"Apache-2.0"
] | 2 | 2019-01-24T15:36:20.000Z | 2019-12-26T10:03:48.000Z | geometry/geometry_tests/vector_test.cpp | bowlofstew/omim | 8045157c95244aa8f862d47324df42a19b87e335 | [
"Apache-2.0"
] | 13 | 2015-09-28T13:59:23.000Z | 2015-10-08T20:12:45.000Z | geometry/geometry_tests/vector_test.cpp | bowlofstew/omim | 8045157c95244aa8f862d47324df42a19b87e335 | [
"Apache-2.0"
] | 1 | 2019-08-09T21:21:09.000Z | 2019-08-09T21:21:09.000Z | #include "testing/testing.hpp"
#include "geometry/avg_vector.hpp"
namespace
{
template <class T, size_t N> bool EqualArrays(T (&a1)[N], T (&a2)[N])
{
for (size_t i = 0; i < N; ++i)
if (!my::AlmostEqualULPs(a1[i], a2[i]))
return false;
return true;
}
}
UNIT_TEST(AvgVector_Smoke)
{
math::A... | 20.047619 | 69 | 0.577197 | [
"geometry"
] |
0b8eadaa5db45bb3edb7daa7d91a97db80899163 | 604 | cpp | C++ | boot32/plainvga32.cpp | leakingmemory/jeokernel | 7c2413921cc2d30eef2b340de4efed66d41afeb1 | [
"MIT"
] | null | null | null | boot32/plainvga32.cpp | leakingmemory/jeokernel | 7c2413921cc2d30eef2b340de4efed66d41afeb1 | [
"MIT"
] | null | null | null | boot32/plainvga32.cpp | leakingmemory/jeokernel | 7c2413921cc2d30eef2b340de4efed66d41afeb1 | [
"MIT"
] | null | null | null | //
// Created by sigsegv on 17.04.2021.
//
#include "plainvga32.h"
static _plainvga32buf_text &get_vgabuf() {
_plainvga32buf_text *vgabuf = (_plainvga32buf_text *) 0xB8000;
return *vgabuf;
}
plainvga32::plainvga32() : vgabuf(get_vgabuf()) {
}
void plainvga32::display(uint8_t line, uint8_t start, const char ... | 22.37037 | 72 | 0.620861 | [
"vector"
] |
0b9739dc7df679f296f6343e8adfec0084def838 | 1,175 | hpp | C++ | Board.hpp | LielBerniker/task_2_b_cpp | 0adea725f8a554d01af43fcd1b17e867f64ca641 | [
"MIT"
] | null | null | null | Board.hpp | LielBerniker/task_2_b_cpp | 0adea725f8a554d01af43fcd1b17e867f64ca641 | [
"MIT"
] | null | null | null | Board.hpp | LielBerniker/task_2_b_cpp | 0adea725f8a554d01af43fcd1b17e867f64ca641 | [
"MIT"
] | null | null | null | #pragma once
#include "Direction.hpp"
#include <string>
#include <vector>
#include <unordered_map>
#include <utility>
namespace ariel
{
const unsigned int FIVE = 5;
const std::string USI_ERROR = "unsgined int range";
class Board
{
public:
Board();
void post(unsigned int row, unsign... | 35.606061 | 118 | 0.685106 | [
"vector"
] |
0b9e7c9e3c955b4026f32e776b158fbc8606d8c2 | 788 | cpp | C++ | 485-max-consecutive-ones/max-consecutive-ones.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 485-max-consecutive-ones/max-consecutive-ones.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 485-max-consecutive-ones/max-consecutive-ones.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | // Given a binary array, find the maximum number of consecutive 1s in this array.
//
// Example 1:
//
// Input: [1,1,0,1,1,1]
// Output: 3
// Explanation: The first two digits or the last three digits are consecutive 1s.
// The maximum number of consecutive 1s is 3.
//
//
//
// Note:
//
// The input array wi... | 22.514286 | 82 | 0.572335 | [
"vector"
] |
0ba457adcbfee9745cc64fd8005b70d7314ffe25 | 1,475 | cpp | C++ | lang/cpp/selection_sort_jayden.cpp | jaeyp/c3 | 69f294f7af4e34a5b40f0abe08086de86d0afd66 | [
"BSD-2-Clause"
] | 1 | 2019-06-08T17:12:54.000Z | 2019-06-08T17:12:54.000Z | lang/cpp/selection_sort_jayden.cpp | jaeyp/c3 | 69f294f7af4e34a5b40f0abe08086de86d0afd66 | [
"BSD-2-Clause"
] | 6 | 2019-06-15T13:15:37.000Z | 2022-02-18T07:03:24.000Z | lang/cpp/selection_sort_jayden.cpp | jaeyp/c3 | 69f294f7af4e34a5b40f0abe08086de86d0afd66 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <utility> // std::swap
#include <vector>
// O(n * n)
template<typename T>
void SelectionSort(T data[], int size)
{
for(int i = 0; i < size-1; i++)
{
int least = i;
for(int j = i+1; j < size; j++)
{
if(data[j] < data[least])
{
least = j;
}
}
if(i != least) // if... | 19.155844 | 101 | 0.543051 | [
"vector"
] |
2437d8c96770d1e4898f4bb084a1715d433da115 | 19,758 | cpp | C++ | src/callm_db_val.cpp | zjshi/Maast | 01428afa8dad042cb8fcbba024b60f176b228898 | [
"MIT"
] | null | null | null | src/callm_db_val.cpp | zjshi/Maast | 01428afa8dad042cb8fcbba024b60f176b228898 | [
"MIT"
] | 8 | 2022-03-24T22:17:19.000Z | 2022-03-29T15:42:00.000Z | src/callm_db_val.cpp | zjshi/Maast | 01428afa8dad042cb8fcbba024b60f176b228898 | [
"MIT"
] | null | null | null | #if __linux__
#include <linux/version.h>
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,22)
#define _MAP_POPULATE_AVAILABLE
#endif
#endif
#ifdef _MAP_POPULATE_AVAILABLE
#define MMAP_FLAGS (MAP_PRIVATE | MAP_POPULATE)
#else
#define MMAP_FLAGS MAP_PRIVATE
#endif
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/s... | 24.915511 | 326 | 0.561899 | [
"vector"
] |
243c8935e6e7c784b16a32803f7bf7f77e6c8d9d | 1,543 | hpp | C++ | app/ui.hpp | cl-volume-renderer/cl-volume-renderer | 9d6bc470a97ece955778104081bc1b803b2cc77c | [
"Apache-2.0"
] | null | null | null | app/ui.hpp | cl-volume-renderer/cl-volume-renderer | 9d6bc470a97ece955778104081bc1b803b2cc77c | [
"Apache-2.0"
] | null | null | null | app/ui.hpp | cl-volume-renderer/cl-volume-renderer | 9d6bc470a97ece955778104081bc1b803b2cc77c | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <SDL.h>
#include <SDL_opengl.h>
#include <imgui_impl_sdl.h>
#include <imgui_impl_opengl2.h>
#include <string>
#include "volume_block.hpp"
#include <clw_image.hpp>
#include <clw_context.hpp>
#include "common.hpp"
#include "reference_volume.hpp"
#include "env_map.hpp"
struct ui_state{
std::strin... | 27.553571 | 100 | 0.715489 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.