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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa404ef86985f3f5f1cc24dbb2268bc6f72c6bc1 | 5,512 | cpp | C++ | nucleo_boy_fw/src/ap/EngineMETA/Object.cpp | chcbaram/nucleo_boy | 5a2d19f927e6f3b9ac6a86ab7e91825a0ddb7b6d | [
"Apache-2.0"
] | null | null | null | nucleo_boy_fw/src/ap/EngineMETA/Object.cpp | chcbaram/nucleo_boy | 5a2d19f927e6f3b9ac6a86ab7e91825a0ddb7b6d | [
"Apache-2.0"
] | null | null | null | nucleo_boy_fw/src/ap/EngineMETA/Object.cpp | chcbaram/nucleo_boy | 5a2d19f927e6f3b9ac6a86ab7e91825a0ddb7b6d | [
"Apache-2.0"
] | null | null | null | #include "Object.h"
#include "Engine.h"
#include "Toolbox.h"
Object::Object() {
init();
}
Object::Object(float X, float Y, float W, float H, float VX, float VY) {
init();
x = X;
y = Y;
vx = VX;
vy = VY;
width = W;
height = H;
}
void Object::init() {
x = random(8, 72);
y = random(8, 56);
vx = 0... | 25.518519 | 117 | 0.496916 | [
"object"
] |
fa4f6b2b742f60cfb3f0ef06973ea09bdf1e507a | 2,039 | hh | C++ | include/tchecker/variables/static_analysis.hh | karthik-314/PDTA_Reachability | 86c380ed8558a40ae75d5634d68273902d59399d | [
"MIT"
] | 4 | 2019-04-09T16:28:45.000Z | 2021-09-21T08:25:40.000Z | include/tchecker/variables/static_analysis.hh | karthik-314/PDTA_Reachability | 86c380ed8558a40ae75d5634d68273902d59399d | [
"MIT"
] | 8 | 2019-04-05T12:53:12.000Z | 2019-06-22T05:49:31.000Z | include/tchecker/variables/static_analysis.hh | karthik-314/PDTA_Reachability | 86c380ed8558a40ae75d5634d68273902d59399d | [
"MIT"
] | 3 | 2019-04-01T21:23:51.000Z | 2021-03-03T14:16:18.000Z | /*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#ifndef TCHECKER_VARIABLES_STATIC_ANALYSIS_HH
#define TCHECKER_VARIABLES_STATIC_ANALYSIS_HH
#include "tchecker/variables/access.hh"
/*!
\file static_analysis.hh
\brief Static analysis for variables
... | 29.550725 | 151 | 0.734674 | [
"model"
] |
fa5725fb2bcfab2d3cdf3d77ca2874c1ee4f9b10 | 1,275 | cpp | C++ | tt.cpp | kawgit/VisionChess | 977fa5c51483c816c06869e365a254037f316d76 | [
"MIT"
] | null | null | null | tt.cpp | kawgit/VisionChess | 977fa5c51483c816c06869e365a254037f316d76 | [
"MIT"
] | null | null | null | tt.cpp | kawgit/VisionChess | 977fa5c51483c816c06869e365a254037f316d76 | [
"MIT"
] | null | null | null | #include "pos.h"
#include "bits.h"
#include "tt.h"
#include "search.h"
void TTEntry::save(BB _hashkey, Eval _eval, Bound _bound, Depth _depth, Move _move, Gen _gen) {
if ( _gen > gen ||
(bound != EXACT && (_bound == EXACT || depth < _depth)) ||
(bound == EXACT && (_bound == EXACT && depth < _depth))) {
hashkey3... | 21.610169 | 100 | 0.621176 | [
"vector"
] |
fa5b03134a838c2f2fae5c9f5c06521881566836 | 276 | cpp | C++ | LEDServer/C++/ColorCalculator.cpp | nordicway/Calamarity | 8cac2afb3ac20144ddcc468cdaf4bcdd2dd000a2 | [
"MIT"
] | null | null | null | LEDServer/C++/ColorCalculator.cpp | nordicway/Calamarity | 8cac2afb3ac20144ddcc468cdaf4bcdd2dd000a2 | [
"MIT"
] | null | null | null | LEDServer/C++/ColorCalculator.cpp | nordicway/Calamarity | 8cac2afb3ac20144ddcc468cdaf4bcdd2dd000a2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ColorCalculator.h"
ColorCalculator::ColorCalculator(void)
{
}
ColorCalculator::~ColorCalculator(void)
{
}
std::vector<unsigned char> ColorCalculator::calc(RGBLED* rgbLED, float value)
{
return std::vector<unsigned char>();
} | 16.235294 | 78 | 0.702899 | [
"vector"
] |
fa5db64bb107e59d7e332cb83c981d2ef326e609 | 1,592 | hpp | C++ | Simulation/Drawable/DrawableVehicle.hpp | devmichalek/Autonomous-Vehicles-Simulator | 7edc16e5b03392f407b800cbc10922f158ebfb59 | [
"MIT"
] | null | null | null | Simulation/Drawable/DrawableVehicle.hpp | devmichalek/Autonomous-Vehicles-Simulator | 7edc16e5b03392f407b800cbc10922f158ebfb59 | [
"MIT"
] | null | null | null | Simulation/Drawable/DrawableVehicle.hpp | devmichalek/Autonomous-Vehicles-Simulator | 7edc16e5b03392f407b800cbc10922f158ebfb59 | [
"MIT"
] | null | null | null | #pragma once
#include "DrawableInterface.hpp"
#include "MathContext.hpp"
#include "VehicleBuilder.hpp"
class DrawableVehicle :
public DrawableInterface
{
protected:
sf::ConvexShape m_bodyShape;
std::vector<EdgeShape> m_beams;
sf::CircleShape m_sensorShape;
sf::Color m_defaultColor; // Default color representing ... | 23.072464 | 88 | 0.748744 | [
"vector"
] |
fa5fac66ab501cf21547b0c22367a613d967231c | 5,251 | cc | C++ | src/speech_recog.cc | CPqD/asr-sdk-cpp | ca1d0a81a250f54c272b6bc39d2a1c5a1c9f58a1 | [
"Apache-2.0"
] | 4 | 2017-10-12T20:09:31.000Z | 2021-05-24T13:46:26.000Z | src/speech_recog.cc | CPqD/asr-sdk-cpp | ca1d0a81a250f54c272b6bc39d2a1c5a1c9f58a1 | [
"Apache-2.0"
] | null | null | null | src/speech_recog.cc | CPqD/asr-sdk-cpp | ca1d0a81a250f54c272b6bc39d2a1c5a1c9f58a1 | [
"Apache-2.0"
] | 4 | 2017-10-04T14:30:11.000Z | 2022-02-25T10:13:06.000Z | /*****************************************************************************
* Copyright 2017 CPqD. 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:... | 30.178161 | 79 | 0.671301 | [
"vector"
] |
fa6a2800f8ffe4f8759a219780d5e62c1654f997 | 753 | cpp | C++ | lib/3d/blanks/QinitFunc.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | lib/3d/blanks/QinitFunc.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | lib/3d/blanks/QinitFunc.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | #include "tensors.h"
// *REQUIRED*
//
// This is a user-required routine that defines the initial conditions for the
// problem.
//
// Each application is REQUIRED to define one of these.
//
// Input:
//
// xpts( 1:numpts, 1:ndim ) - The x,y, and z-coordinates for a list of points
//
// Output:
//
// qvals( 1... | 22.147059 | 82 | 0.572377 | [
"vector"
] |
fa6a56f46ec3fedcfeef6cb9a1039e541647071e | 15,719 | cpp | C++ | lib/Dialect/Stencil/PeelOddIterationsPass.cpp | havogt/open-earth-compiler | 1e48dee6a1a021bc11d6621432450406349b3733 | [
"Apache-2.0"
] | 40 | 2020-07-16T17:30:00.000Z | 2022-03-30T02:15:11.000Z | lib/Dialect/Stencil/PeelOddIterationsPass.cpp | JackMoriarty/open-earth-compiler | 1e48dee6a1a021bc11d6621432450406349b3733 | [
"Apache-2.0"
] | 25 | 2020-08-18T18:14:24.000Z | 2022-03-09T14:19:51.000Z | lib/Dialect/Stencil/PeelOddIterationsPass.cpp | JackMoriarty/open-earth-compiler | 1e48dee6a1a021bc11d6621432450406349b3733 | [
"Apache-2.0"
] | 9 | 2020-08-04T08:05:50.000Z | 2022-03-28T03:55:22.000Z | #include "Dialect/Stencil/Passes.h"
#include "Dialect/Stencil/StencilDialect.h"
#include "Dialect/Stencil/StencilOps.h"
#include "Dialect/Stencil/StencilTypes.h"
#include "Dialect/Stencil/StencilUtils.h"
#include "PassDetail.h"
#include "mlir/Dialect/StandardOps/IR/Ops.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR... | 40.722798 | 80 | 0.676061 | [
"shape"
] |
fa6aaf769622aea666b9e2afcb41eda8fdc73966 | 98,191 | cpp | C++ | tests/localization/22.locale.num.put.cpp | isabella232/stdcxx | b0b0cab391b7b1f2d17ef4342aeee6b792bde63c | [
"Apache-2.0"
] | 53 | 2015-01-13T05:46:43.000Z | 2022-02-24T23:46:04.000Z | tests/localization/22.locale.num.put.cpp | mann-patel/stdcxx | a22c5192f4b2a8b0b27d3588ea8f6d1faf8b037a | [
"Apache-2.0"
] | 1 | 2021-11-04T12:35:39.000Z | 2021-11-04T12:35:39.000Z | tests/localization/22.locale.num.put.cpp | isabella232/stdcxx | b0b0cab391b7b1f2d17ef4342aeee6b792bde63c | [
"Apache-2.0"
] | 33 | 2015-07-09T13:31:00.000Z | 2021-11-04T12:12:20.000Z | /***************************************************************************
*
* 22.locale.num.put.cpp - tests exercising the std::num_put facet
*
* $Id$
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contr... | 39.915041 | 80 | 0.450775 | [
"object"
] |
fa77a7456f1ca8ce8171ad8ec2f6be182b7110c4 | 12,204 | hpp | C++ | include/ssci/bio/vioalt.hpp | syntheticgio/fda-hive | 5e645c6a5b76b5a437635631819a1c934c7fd7fc | [
"Unlicense",
"MIT"
] | null | null | null | include/ssci/bio/vioalt.hpp | syntheticgio/fda-hive | 5e645c6a5b76b5a437635631819a1c934c7fd7fc | [
"Unlicense",
"MIT"
] | null | null | null | include/ssci/bio/vioalt.hpp | syntheticgio/fda-hive | 5e645c6a5b76b5a437635631819a1c934c7fd7fc | [
"Unlicense",
"MIT"
] | null | null | null | /*
* ::718604!
*
* Copyright(C) November 20, 2014 U.S. Food and Drug Administration
* Authors: Dr. Vahan Simonyan (1), Dr. Raja Mazumder (2), et al
* Affiliation: Food and Drug Administration (1), George Washington University (2)
*
* All rights Reserved.
*
* The MIT License (MIT)
*
* Permission is hereb... | 40.95302 | 221 | 0.611275 | [
"object"
] |
fa858726b6f856ee899c674c19a5016a7a9bd42d | 5,092 | cpp | C++ | Game/Source/Player.cpp | Paideieitor/PlatformerGame | e00602171807c694b0c5f4afac50157ce9cd23b1 | [
"MIT"
] | null | null | null | Game/Source/Player.cpp | Paideieitor/PlatformerGame | e00602171807c694b0c5f4afac50157ce9cd23b1 | [
"MIT"
] | null | null | null | Game/Source/Player.cpp | Paideieitor/PlatformerGame | e00602171807c694b0c5f4afac50157ce9cd23b1 | [
"MIT"
] | null | null | null | #include "EntityManager.h"
#include "Animation.h"
#include "Audio.h"
#include "Collisions.h"
#include "DungeonScene.h"
#include "Input.h"
#include "Player.h"
#define MAX_JUMPS 1
Player::Player(fPoint position, bool flip) : Entity(EntityType::PLAYER, position, flip, nullptr)
{
wall = WallCollision::NONE;
grounded =... | 24.247619 | 170 | 0.646504 | [
"render"
] |
fa953d8ca556e806449758371e4b2de74fc34d1d | 4,969 | cpp | C++ | clang/ExtentCollection.cpp | djp952/tools-llvm | 01503ab630354dc7196a8dfe15f4525bf9a0e1ec | [
"MIT"
] | 1 | 2016-09-11T11:32:08.000Z | 2016-09-11T11:32:08.000Z | clang/ExtentCollection.cpp | djp952/tools-llvm | 01503ab630354dc7196a8dfe15f4525bf9a0e1ec | [
"MIT"
] | 3 | 2016-06-04T03:55:58.000Z | 2016-06-09T03:13:15.000Z | clang/ExtentCollection.cpp | djp952/tools-llvm | 01503ab630354dc7196a8dfe15f4525bf9a0e1ec | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
// Copyright (c) 2016 Michael G. Brehm
//
// 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 restri... | 34.506944 | 138 | 0.613604 | [
"object"
] |
fa9549eb5c887b811e405bc015c955f754fdd8c2 | 6,842 | hpp | C++ | src/clcontext.hpp | tigrazone/fluctus | 7f5721d725f2787e5fb705107c83611200fc5ebb | [
"MIT"
] | null | null | null | src/clcontext.hpp | tigrazone/fluctus | 7f5721d725f2787e5fb705107c83611200fc5ebb | [
"MIT"
] | null | null | null | src/clcontext.hpp | tigrazone/fluctus | 7f5721d725f2787e5fb705107c83611200fc5ebb | [
"MIT"
] | 3 | 2021-05-06T12:43:07.000Z | 2021-05-27T15:32:18.000Z | #pragma once
#ifdef _DEBUG
#define CPU_DEBUGGING
#endif
#include "cl2.hpp"
#include "geom.h"
#include <clt.hpp>
#include <string>
typedef struct
{
float primary = 0.0f;
float extension = 0.0f;
float shadow = 0.0f;
float samples = 0.0f;
float total = 0.0f;
} PerfNumbers;
class EnvironmentMap;
cla... | 31.675926 | 113 | 0.694241 | [
"vector"
] |
fa971bd4b45eb42cc78f5365cbcd5e81e622c9a0 | 5,880 | cxx | C++ | MITK/Plugins/uk.ac.ucl.cmic.igitrackedimage/src/internal/TrackedImageViewPreferencePage.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | MITK/Plugins/uk.ac.ucl.cmic.igitrackedimage/src/internal/TrackedImageViewPreferencePage.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | MITK/Plugins/uk.ac.ucl.cmic.igitrackedimage/src/internal/TrackedImageViewPreferencePage.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 37.452229 | 125 | 0.690476 | [
"object"
] |
b702d4671b66eda4aa0dbb2c06382c10b49bc72a | 20,851 | cpp | C++ | Source/Urho3D/EffekseerUrho3D/RendererUrho3D/EffekseerUrho3D.ModelRenderer.cpp | aimoonchen/rbfx | de4f1fd795f4f42009693a71b6f887a221aa19db | [
"MIT"
] | null | null | null | Source/Urho3D/EffekseerUrho3D/RendererUrho3D/EffekseerUrho3D.ModelRenderer.cpp | aimoonchen/rbfx | de4f1fd795f4f42009693a71b6f887a221aa19db | [
"MIT"
] | null | null | null | Source/Urho3D/EffekseerUrho3D/RendererUrho3D/EffekseerUrho3D.ModelRenderer.cpp | aimoonchen/rbfx | de4f1fd795f4f42009693a71b6f887a221aa19db | [
"MIT"
] | null | null | null |
//----------------------------------------------------------------------------------
// Include
//----------------------------------------------------------------------------------
#include "EffekseerUrho3D.RenderState.h"
#include "EffekseerUrho3D.RendererImplemented.h"
#include "EffekseerUrho3D.IndexBuffer.h"
#inclu... | 49.176887 | 175 | 0.687785 | [
"vector",
"model"
] |
b70b3878d7996a4b5eb51ca646219fe4b7f807e3 | 19,415 | cpp | C++ | SymmetricalBroccoli.cpp | tml1024/SymmetricalBroccoli | de5cb80093513476a417fb33b60f711fee55120a | [
"MIT"
] | 3 | 2021-02-11T15:34:12.000Z | 2022-03-24T04:52:40.000Z | SymmetricalBroccoli.cpp | tml1024/SymmetricalBroccoli | de5cb80093513476a417fb33b60f711fee55120a | [
"MIT"
] | null | null | null | SymmetricalBroccoli.cpp | tml1024/SymmetricalBroccoli | de5cb80093513476a417fb33b60f711fee55120a | [
"MIT"
] | 1 | 2020-11-04T04:09:57.000Z | 2020-11-04T04:09:57.000Z | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
MIT License
Copyright (c) 2020 Tor Lillqvist
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... | 29.151652 | 170 | 0.636518 | [
"vector",
"3d"
] |
b70bf8434f628130cb6bd2b02ed07d8c0f8a65e3 | 8,792 | cpp | C++ | src/subdivision.cpp | abhisachdev17/Subdivisions | 34e1f2279318209f13d40f8117f5657238c76887 | [
"CC0-1.0"
] | null | null | null | src/subdivision.cpp | abhisachdev17/Subdivisions | 34e1f2279318209f13d40f8117f5657238c76887 | [
"CC0-1.0"
] | null | null | null | src/subdivision.cpp | abhisachdev17/Subdivisions | 34e1f2279318209f13d40f8117f5657238c76887 | [
"CC0-1.0"
] | null | null | null | #include "subdivision.h"
#include "types.h"
#include "gputypes.h"
#include <iostream>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "common.h"
#include <chrono>
void addFaceToMesh(Mesh* m, Vertex *v1, Vertex* v2, Vertex* v3, Vertex* v4, int id) {
Vertex** vs =... | 29.80339 | 141 | 0.651388 | [
"mesh",
"vector"
] |
b70c17868da501a147cd7faa4b38c5813274df52 | 1,155 | cpp | C++ | Museum/src/Scene/Display3.cpp | coolzoom/Museum | 7c177beda99bd47ac7c7af358fbad9cb08e74bbc | [
"Apache-2.0"
] | 1 | 2021-04-01T12:27:39.000Z | 2021-04-01T12:27:39.000Z | Museum/src/Scene/Display3.cpp | coolzoom/Museum | 7c177beda99bd47ac7c7af358fbad9cb08e74bbc | [
"Apache-2.0"
] | null | null | null | Museum/src/Scene/Display3.cpp | coolzoom/Museum | 7c177beda99bd47ac7c7af358fbad9cb08e74bbc | [
"Apache-2.0"
] | 1 | 2021-04-01T12:30:35.000Z | 2021-04-01T12:30:35.000Z | #include "Display3.h"
#include "Frame1.h"
#include "Frame2.h"
#include "Model.h""
Display3::Display3() {
painting1 = std::make_shared<Frame2>("res/textures/art/art3_1.jpg");
painting1->frameModel->transform.Translate(0.0f, .5f, 9.99f);
painting1->frameModel->transform.Rotate(0.0f, 90.0f, 0.0f);
paint... | 41.25 | 70 | 0.700433 | [
"model",
"transform"
] |
b7155440720f5a8a4bf62ee457278016ee784d12 | 2,280 | cpp | C++ | ext/stub/java/util/WeakHashMap_Entry-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/java/util/WeakHashMap_Entry-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/java/util/WeakHashMap_Entry-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <java/util/WeakHashMap_Entry.hpp>
extern void unimplemented_(const char16_t* name);
java::util::WeakHashMap_Entry::WeakHashMap_Entry(const ::default_init_tag&)
: super(*static_cast< ::default_init_tag* >(0))
... | 32.571429 | 203 | 0.689474 | [
"object"
] |
b71c969828037efba533a22910202e007046d8da | 31,817 | cxx | C++ | Source/CPack/cmCPackDragNDropGenerator.cxx | eWert-Online/esy-cmake | c0de72da9a1bc4d9b4fbe3766bafcbaca442cc2c | [
"MIT"
] | null | null | null | Source/CPack/cmCPackDragNDropGenerator.cxx | eWert-Online/esy-cmake | c0de72da9a1bc4d9b4fbe3766bafcbaca442cc2c | [
"MIT"
] | null | null | null | Source/CPack/cmCPackDragNDropGenerator.cxx | eWert-Online/esy-cmake | c0de72da9a1bc4d9b4fbe3766bafcbaca442cc2c | [
"MIT"
] | null | null | null | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackDragNDropGenerator.h"
#include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <map>
#include <CoreFoundation/CoreFoundation.h>
#include <cm3p... | 34.248654 | 79 | 0.623252 | [
"vector"
] |
b71f3bc1af55894b24fe479dcde7de9fcd99132b | 17,749 | cpp | C++ | src/cpp/NAM/FS_NameService.cpp | IBMStreams/OSStreams | c6287bd9ec4323f567d2faf59125baba8604e1db | [
"Apache-2.0"
] | 10 | 2021-02-19T20:19:24.000Z | 2021-09-16T05:11:50.000Z | src/cpp/NAM/FS_NameService.cpp | xguerin/openstreams | 7000370b81a7f8778db283b2ba9f9ead984b7439 | [
"Apache-2.0"
] | 7 | 2021-02-20T01:17:12.000Z | 2021-06-08T14:56:34.000Z | src/cpp/NAM/FS_NameService.cpp | IBMStreams/OSStreams | c6287bd9ec4323f567d2faf59125baba8604e1db | [
"Apache-2.0"
] | 4 | 2021-02-19T18:43:10.000Z | 2022-02-23T14:18:16.000Z | /*
* Copyright 2021 IBM 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... | 36.900208 | 100 | 0.523015 | [
"object",
"vector"
] |
b7256615492cfb68a8efc022928db346b835d3ea | 1,443 | cpp | C++ | 901-1000/981-990/986-intervalIntersection/intervalIntersection.cpp | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | 901-1000/981-990/986-intervalIntersection/intervalIntersection.cpp | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | 901-1000/981-990/986-intervalIntersection/intervalIntersection.cpp | xuychen/Leetcode | c8bf33af30569177c5276ffcd72a8d93ba4c402a | [
"MIT"
] | null | null | null | #include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
vector<vector<int>> intervalIntersection(vector<vector<int>>& a, vector<vector<int>>& b) {
size_t aIndex = 0, bIndex = 0;
size_t aLength = a.size(), bLength = b.size();
vector<vector<int>> result;
... | 29.44898 | 95 | 0.505891 | [
"vector"
] |
b72660f9aabed0725ddf6c80d844715516814f7b | 2,917 | cpp | C++ | ICPC_Mirrors/Nitc_44/g.cpp | Shahraaz/CP_P_S5 | b068ad02d34338337e549d92a14e3b3d9e8df712 | [
"MIT"
] | null | null | null | ICPC_Mirrors/Nitc_44/g.cpp | Shahraaz/CP_P_S5 | b068ad02d34338337e549d92a14e3b3d9e8df712 | [
"MIT"
] | null | null | null | ICPC_Mirrors/Nitc_44/g.cpp | Shahraaz/CP_P_S5 | b068ad02d34338337e549d92a14e3b3d9e8df712 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "/debug.h"
#else
#define db(...)
#endif
#define all(v) v.begin(), v.end()
#define pb push_back
using ll = long long;
const int NAX = 2e5 + 5, MOD = 1000000007;
struct Bit
{
int size;
vector<int> table;
Bit(int size)
{
this->s... | 21.448529 | 68 | 0.41241 | [
"vector"
] |
b72c7bea1aa9c685434d439179eb4ae1ae48e72a | 4,391 | cc | C++ | test/integration/server_fixture.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | test/integration/server_fixture.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | test/integration/server_fixture.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012-2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 32.768657 | 75 | 0.59622 | [
"geometry",
"model"
] |
b72ebf5c6f17cd1ab908b9a57ef4957a3c6421e5 | 1,090 | hpp | C++ | Getopt.hpp | jancarlsson/snarkfront | 7f90a4181721f758f114497382aa462185e71dae | [
"MIT"
] | 60 | 2015-01-02T12:28:40.000Z | 2021-04-13T01:40:07.000Z | Getopt.hpp | artree222/snarkfront | 7f90a4181721f758f114497382aa462185e71dae | [
"MIT"
] | 8 | 2015-03-05T13:12:39.000Z | 2018-07-03T07:17:45.000Z | Getopt.hpp | artree222/snarkfront | 7f90a4181721f758f114497382aa462185e71dae | [
"MIT"
] | 17 | 2015-01-22T03:10:49.000Z | 2020-12-27T12:22:17.000Z | #ifndef _SNARKFRONT_GETOPT_HPP_
#define _SNARKFRONT_GETOPT_HPP_
#include <cstdint>
#include <map>
#include <set>
#include <string>
#include <vector>
namespace snarkfront {
////////////////////////////////////////////////////////////////////////////////
// command line handling
//
class Getopt
{
public:
Getopt(i... | 22.244898 | 80 | 0.607339 | [
"vector"
] |
b731155366ded032c06206e10c9975aae7705735 | 11,205 | cpp | C++ | spatial/core/resources/cppgen/datastructures/static/DeliteCpp.cpp | dkoeplin/spatial | 55e9a67b28f83caf3606e0c7bbead82a12cfbd2a | [
"MIT"
] | 107 | 2017-02-14T03:05:33.000Z | 2022-01-05T08:41:15.000Z | spatial/core/resources/cppgen/datastructures/static/DeliteCpp.cpp | dkoeplin/spatial | 55e9a67b28f83caf3606e0c7bbead82a12cfbd2a | [
"MIT"
] | 258 | 2017-02-16T08:03:45.000Z | 2018-11-30T19:39:37.000Z | spatial/core/resources/cppgen/datastructures/static/DeliteCpp.cpp | dkoeplin/spatial | 55e9a67b28f83caf3606e0c7bbead82a12cfbd2a | [
"MIT"
] | 15 | 2017-02-17T01:01:35.000Z | 2018-11-24T05:49:49.000Z | #include "DeliteCpp.h"
bool regex_metachar(char c) {
switch (c) {
case '\\': case '^': case '$': case '.': case '|': case '?':
case '*': case '+': case '(': case ')': case '[': case '{':
return true;
default:
return false;
}
}
char find_delim(const string &pattern) {
if (pattern.length()... | 30.867769 | 143 | 0.676484 | [
"vector",
"transform"
] |
b7363f95a5e61c9c9fe70430772a7fc8424339b3 | 6,803 | cpp | C++ | apps/src/libvideostitch-gui/widgets/crop/croprectangleeditor.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 1 | 2022-02-04T20:42:25.000Z | 2022-02-04T20:42:25.000Z | apps/src/libvideostitch-gui/widgets/crop/croprectangleeditor.cpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | null | null | null | apps/src/libvideostitch-gui/widgets/crop/croprectangleeditor.cpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 1 | 2021-12-11T07:56:51.000Z | 2021-12-11T07:56:51.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "croprectangleeditor.hpp"
#include <QMouseEvent>
#include <QPainter>
CropRectangleEditor::CropRectangleEditor(const QSize thumbnailSize, const QSize frameSize, const Crop &initCrop,
QWidget *con... | 40.736527 | 120 | 0.710128 | [
"shape"
] |
b739c34ccd0969e48a980cecebbe95ad0ef374c2 | 1,222 | cpp | C++ | L1_Vector/src/main.cpp | JoshuaCrotts/C-Tutorials | 01a75a5f23609e4f6c0d725488f6ea486a8076a7 | [
"MIT"
] | 2 | 2020-08-19T19:00:30.000Z | 2020-08-20T20:50:47.000Z | L1_Vector/src/main.cpp | JoshuaCrotts/Cpp-Tutorials | 01a75a5f23609e4f6c0d725488f6ea486a8076a7 | [
"MIT"
] | null | null | null | L1_Vector/src/main.cpp | JoshuaCrotts/Cpp-Tutorials | 01a75a5f23609e4f6c0d725488f6ea486a8076a7 | [
"MIT"
] | null | null | null | #include "../include/commons.hpp"
#include "../include/vector.hpp"
template <class T> static void printVector( const Vector<T> &v );
template <class T> static void printCapacityAndSize( const Vector<T> &v );
int
main( int argc, char *argv[] ) {
Vector<int> v;
printCapacityAndSize( v );
v.addElement( 10 );
v.a... | 27.155556 | 89 | 0.620295 | [
"vector"
] |
b747090e7ff69f743a62e25fca8c48900fba7a2c | 5,690 | cpp | C++ | gcodejam/2021/quals/B/B.cpp | mathemage/CompetitiveProgramming | fe39017e3b017f9259f9c1e6385549270940be64 | [
"MIT"
] | 2 | 2015-08-18T09:51:19.000Z | 2019-01-29T03:18:10.000Z | gcodejam/2021/quals/B/B.cpp | mathemage/CompetitiveProgramming | fe39017e3b017f9259f9c1e6385549270940be64 | [
"MIT"
] | null | null | null | gcodejam/2021/quals/B/B.cpp | mathemage/CompetitiveProgramming | fe39017e3b017f9259f9c1e6385549270940be64 | [
"MIT"
] | null | null | null | /* ========================================
* File Name : B.cpp
* Creation Date : 26-03-2021
* Last Modified : Sat 27 Mar 2021 08:29:31 PM CET
* Created By : Karel Ha <mathemage@gmail.com>
* URL : https://codingcompetitions.withgoogle.com/codejam/round/000000000043580a/00000000006d1145
* Points/Time :... | 26.465116 | 103 | 0.520211 | [
"vector"
] |
b7483566cd5126225050f907d7557ff17b964c00 | 396 | cpp | C++ | tutorials/zetcode/02_strings/01_simple_methods/simple_methods.cpp | ASHellos/CS311 | c23802f7ab587f69c6a3ba95c9d220d52e1a085e | [
"MIT"
] | null | null | null | tutorials/zetcode/02_strings/01_simple_methods/simple_methods.cpp | ASHellos/CS311 | c23802f7ab587f69c6a3ba95c9d220d52e1a085e | [
"MIT"
] | null | null | null | tutorials/zetcode/02_strings/01_simple_methods/simple_methods.cpp | ASHellos/CS311 | c23802f7ab587f69c6a3ba95c9d220d52e1a085e | [
"MIT"
] | 4 | 2021-11-06T17:00:00.000Z | 2021-12-18T14:51:04.000Z | #include <QTextStream>
#include <iostream>
#include <vector>
using entry = std::pair<QString, int>
int main()
{
//Initialiasing a strea on stdout
QTextStream out(stdout);
QString temp("Welcome %1 This your %2 th login");
vector<entry> values {{"Hafsa", 2},{"Khadija", 10}, {"Rim", 20}};
out... | 12.375 | 69 | 0.583333 | [
"vector"
] |
b74b8e9b5aaf28b92554adbbc2db4e8b4e4a862b | 8,059 | cc | C++ | cpp/test/test_mp_values.cc | waffle-iron/Cap | c3e1f585177211bdd5b8cd4637291d659738eb41 | [
"BSD-3-Clause"
] | null | null | null | cpp/test/test_mp_values.cc | waffle-iron/Cap | c3e1f585177211bdd5b8cd4637291d659738eb41 | [
"BSD-3-Clause"
] | null | null | null | cpp/test/test_mp_values.cc | waffle-iron/Cap | c3e1f585177211bdd5b8cd4637291d659738eb41 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2016, the Cap authors.
*
* This file is subject to the Modified BSD License and may not be distributed
* without copyright and license information. Please refer to the file LICENSE
* for the text and further information on this license.
*/
#define BOOST_TEST_MODULE MaterialPropertyValues
#includ... | 44.772222 | 80 | 0.756918 | [
"geometry",
"vector"
] |
b74ef43d5ab009ba02df542d76b643b8db1e3095 | 16,245 | cxx | C++ | PHOS/PHOSrec/AliPHOSTrackSegmentMakerv2.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | PHOS/PHOSrec/AliPHOSTrackSegmentMakerv2.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | PHOS/PHOSrec/AliPHOSTrackSegmentMakerv2.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 34.56383 | 144 | 0.654786 | [
"geometry",
"object"
] |
b753bb9d84e923b35a6254a378cbd01356477fd4 | 8,642 | cpp | C++ | Engine/src/Audio/AudioSystem.cpp | Proyecto03/Motor | 9e7f379f1f64bc911293434fdfb8aa18bb8f99ab | [
"MIT"
] | 1 | 2021-07-24T03:10:38.000Z | 2021-07-24T03:10:38.000Z | Engine/src/Audio/AudioSystem.cpp | Proyecto03/Motor | 9e7f379f1f64bc911293434fdfb8aa18bb8f99ab | [
"MIT"
] | null | null | null | Engine/src/Audio/AudioSystem.cpp | Proyecto03/Motor | 9e7f379f1f64bc911293434fdfb8aa18bb8f99ab | [
"MIT"
] | 2 | 2021-05-11T10:47:37.000Z | 2021-07-24T03:10:39.000Z | #include "AudioSystem.h"
#include <vector>
#include <iostream>
#include "Vector3.h"
#include <math.h>
#include <chrono>
#include <thread>
#include "checkML.h"
AudioSystem* AudioSystem::instance_ = nullptr;
AudioSystem* AudioSystem::getInstance()
{
return instance_;
}
bool AudioSystem::setupInstance()
{
if (in... | 27.434921 | 142 | 0.679125 | [
"vector",
"3d"
] |
b759f481211c4b565b9c04b0a1ce926367fa77bd | 14,039 | cpp | C++ | build-image_proc_sys-Desktop_Qt_5_5_1_MinGW_32bit-Release/release/qrc_qml.cpp | tong123/image_proc_sys | 8f5b3a8a88b8f946529e84cb1c48bd7e5e4d9440 | [
"Apache-2.0"
] | null | null | null | build-image_proc_sys-Desktop_Qt_5_5_1_MinGW_32bit-Release/release/qrc_qml.cpp | tong123/image_proc_sys | 8f5b3a8a88b8f946529e84cb1c48bd7e5e4d9440 | [
"Apache-2.0"
] | null | null | null | build-image_proc_sys-Desktop_Qt_5_5_1_MinGW_32bit-Release/release/qrc_qml.cpp | tong123/image_proc_sys | 8f5b3a8a88b8f946529e84cb1c48bd7e5e4d9440 | [
"Apache-2.0"
] | 2 | 2022-02-25T08:53:21.000Z | 2022-02-25T09:51:36.000Z | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.5.1
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... | 61.03913 | 146 | 0.754612 | [
"object"
] |
b75d03017dc1b441b608b8201980d34898e99d60 | 10,186 | hpp | C++ | samples/datasets/src/middlebury2005.hpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 97 | 2015-10-16T04:32:33.000Z | 2022-03-29T07:04:02.000Z | samples/datasets/src/middlebury2005.hpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 19 | 2016-07-01T16:37:02.000Z | 2020-09-10T06:09:39.000Z | samples/datasets/src/middlebury2005.hpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 41 | 2015-11-17T05:59:23.000Z | 2022-02-16T09:30:28.000Z |
// This file is part of the LITIV framework; visit the original repository at
// https://github.com/plstcharles/litiv for more information.
//
// Copyright 2016 Pierre-Luc St-Charles; pierre-luc.st-charles<at>polymtl.ca
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file ... | 78.96124 | 238 | 0.69625 | [
"vector"
] |
b765732346b76fff7bd440c9289c424f23b533e7 | 3,957 | hpp | C++ | ThirdParty-mod/java2cpp/java/io/WriteAbortedException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/java/io/WriteAbortedException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/java/io/WriteAbortedException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.io.WriteAbortedException
================================================================================*/
#ifndef J2CPP_INCLUDE_IM... | 31.15748 | 144 | 0.718221 | [
"object"
] |
b768caa487f434be12b482d43fe2a908174f05d2 | 5,984 | cpp | C++ | src/add-ons/kernel/drivers/audio/echo/generic/CEchoGalsMTC.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/add-ons/kernel/drivers/audio/echo/generic/CEchoGalsMTC.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/add-ons/kernel/drivers/audio/echo/generic/CEchoGalsMTC.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | // ****************************************************************************
//
// CEchoGalsMTC.cpp
//
// CEchoGalsMTC is used to add MIDI time code sync to the base
// CEchoGals class. CEchoGalsMTC derives from CEchoGals; CLayla and
// CLayla24 derive in turn from CEchoGalsMTC.
//
// Set editor tabs to 3 for ... | 22.666667 | 79 | 0.502005 | [
"object"
] |
b76c73558e48ca87fa5b2b3641c85e7eaa10b339 | 1,492 | hpp | C++ | Ryukuo Injector/advancedinjectorwindow.hpp | Iciclez/ryukuo-injector | d7de5b71bdc6dfa2ab09493bf45de7538caa5d8e | [
"MIT"
] | null | null | null | Ryukuo Injector/advancedinjectorwindow.hpp | Iciclez/ryukuo-injector | d7de5b71bdc6dfa2ab09493bf45de7538caa5d8e | [
"MIT"
] | null | null | null | Ryukuo Injector/advancedinjectorwindow.hpp | Iciclez/ryukuo-injector | d7de5b71bdc6dfa2ab09493bf45de7538caa5d8e | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <string>
#include "window.hpp"
#include "numericupdown.hpp"
#include "button.hpp"
#include "checklistview.hpp"
#include "groupbox.hpp"
#include "inject.hpp"
class mainwindow;
typedef HINSTANCE hinstance;
typedef HANDLE handle;
class advancedinjectorwindow
{
private:
std::s... | 19.128205 | 72 | 0.784853 | [
"vector"
] |
b777e0fb8a09f951fae12f396132d9eb690ad811 | 6,769 | cpp | C++ | ohm/VoxelBlockCompressionQueue.cpp | jmackay2/ohm | 15f7b9f221419d2faf3802404a2f378ef570a990 | [
"Zlib"
] | 45 | 2020-06-09T23:26:47.000Z | 2022-03-16T12:16:33.000Z | ohm/VoxelBlockCompressionQueue.cpp | jmackay2/ohm | 15f7b9f221419d2faf3802404a2f378ef570a990 | [
"Zlib"
] | 1 | 2022-01-10T05:50:36.000Z | 2022-01-24T02:50:01.000Z | ohm/VoxelBlockCompressionQueue.cpp | jmackay2/ohm | 15f7b9f221419d2faf3802404a2f378ef570a990 | [
"Zlib"
] | 5 | 2021-02-25T15:08:46.000Z | 2022-03-30T13:08:03.000Z | // Copyright (c) 2019
// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
// ABN 41 687 119 230
//
// Author: Kazys Stepanas
#include "VoxelBlockCompressionQueue.h"
#include "VoxelBlock.h"
#include "private/VoxelBlockCompressionQueueDetail.h"
#include <algorithm>
#include <chrono>
#include <cintt... | 27.855967 | 114 | 0.677205 | [
"vector"
] |
b77d555183f1d3945bf351157cb24c5b1e2eff79 | 6,471 | cpp | C++ | server/main.cpp | akinaru/ssl-cert-dashboard | 8bcef5b0fd8cc2dc885c5cc38a374451397bc475 | [
"MIT"
] | 1 | 2019-12-08T14:19:29.000Z | 2019-12-08T14:19:29.000Z | server/main.cpp | akinaru/ssl-cert-dashboard | 8bcef5b0fd8cc2dc885c5cc38a374451397bc475 | [
"MIT"
] | null | null | null | server/main.cpp | akinaru/ssl-cert-dashboard | 8bcef5b0fd8cc2dc885c5cc38a374451397bc475 | [
"MIT"
] | null | null | null | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Bertrand Martel
*
* 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 ... | 34.057895 | 160 | 0.622315 | [
"object"
] |
b7833cfe50d307482608058394fe87d924124e98 | 993 | cpp | C++ | Part-I-The-Basics/Chapter-06-Move-Semantics-and-enable_if/basics/specialmemtmpl1.cpp | RingZEROtlf/Cpp-Templates-Complete-Guide | e5de63f89019b8d688a7807f88cb0d5f7028b345 | [
"MIT"
] | null | null | null | Part-I-The-Basics/Chapter-06-Move-Semantics-and-enable_if/basics/specialmemtmpl1.cpp | RingZEROtlf/Cpp-Templates-Complete-Guide | e5de63f89019b8d688a7807f88cb0d5f7028b345 | [
"MIT"
] | null | null | null | Part-I-The-Basics/Chapter-06-Move-Semantics-and-enable_if/basics/specialmemtmpl1.cpp | RingZEROtlf/Cpp-Templates-Complete-Guide | e5de63f89019b8d688a7807f88cb0d5f7028b345 | [
"MIT"
] | null | null | null | #include <utility>
#include <string>
#include <iostream>
class Person
{
private:
std::string name;
public:
// constructor for passed initial name:
explicit Person(std::string const& n) : name(n) {
std::cout << "copying string-CONSTR for '" << name << "'\n";
}
explicit Person(std::string&& n) : name(std... | 30.090909 | 85 | 0.592145 | [
"object"
] |
b787dbccdd81a2e13e7de35c93e0c4c07a4a56eb | 838 | cpp | C++ | test/snippet/range/views/trim_phred42.cpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | 1 | 2021-03-01T11:12:56.000Z | 2021-03-01T11:12:56.000Z | test/snippet/range/views/trim_phred42.cpp | simonsasse/seqan3 | 0ff2e117952743f081735df9956be4c512f4ccba | [
"CC0-1.0",
"CC-BY-4.0"
] | 2 | 2017-05-17T07:16:19.000Z | 2020-02-13T16:10:10.000Z | test/snippet/range/views/trim_phred42.cpp | simonsasse/seqan3 | 0ff2e117952743f081735df9956be4c512f4ccba | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | #include <string>
#include <vector>
#include <seqan3/alphabet/quality/phred42.hpp>
#include <seqan3/range/views/trim.hpp>
#include <seqan3/range/views/to_char.hpp>
int main()
{
std::vector<seqan3::phred42> vec{seqan3::phred42{40}, seqan3::phred42{40}, seqan3::phred42{30},
seqa... | 33.52 | 99 | 0.5358 | [
"vector"
] |
b78f2df5b79a8f76664550167cbc5c9efe6c26cd | 661 | cpp | C++ | Challenge-2020-11/27_partition_equal_subset_sum.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Challenge-2020-11/27_partition_equal_subset_sum.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Challenge-2020-11/27_partition_equal_subset_sum.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | #include "../header.h"
class Solution {
public:
bool canPartition(vector<int>& nums) {
int sum = accumulate(nums.begin(), nums.end(), 0);
if (sum % 2 != 0) {
return false;
}
int target = sum / 2;
vector<bool> dp (target + 1, false);
dp[0] = true;
... | 26.44 | 78 | 0.399395 | [
"vector"
] |
b78fd61e7200b918a7fc654f07ade28a1541426d | 8,196 | cpp | C++ | src/server/rmlui/source/Core/StyleSheetContainer.cpp | PureTryOut/NymphCast | ffb76861dbdcba954789a55c62272f5302a47689 | [
"BSD-3-Clause"
] | null | null | null | src/server/rmlui/source/Core/StyleSheetContainer.cpp | PureTryOut/NymphCast | ffb76861dbdcba954789a55c62272f5302a47689 | [
"BSD-3-Clause"
] | null | null | null | src/server/rmlui/source/Core/StyleSheetContainer.cpp | PureTryOut/NymphCast | ffb76861dbdcba954789a55c62272f5302a47689 | [
"BSD-3-Clause"
] | null | null | null | /*
* This source file is part of RmlUi, the HTML/CSS Interface Middleware
*
* For the latest information, see http://github.com/mikke89/RmlUi
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
* Copyright (c) 2019 The RmlUi Team, and contributors
*
* Permission is hereby granted, free of charge, to... | 33.317073 | 131 | 0.741093 | [
"vector"
] |
b793eb1ab46de1c17ac265b475ede70e3a6cc479 | 9,088 | hpp | C++ | packages/dev-tools/src/ek/editor/gui/HierarchyWindow_impl.hpp | highduck/ekx | 928300bd2af88dfddd92cc4e1754b9e53969640f | [
"0BSD"
] | 12 | 2021-04-10T18:39:19.000Z | 2022-02-01T05:21:42.000Z | packages/dev-tools/src/ek/editor/gui/HierarchyWindow_impl.hpp | highduck/ekx | 928300bd2af88dfddd92cc4e1754b9e53969640f | [
"0BSD"
] | 109 | 2021-09-09T23:53:45.000Z | 2022-03-31T23:21:28.000Z | packages/dev-tools/src/ek/editor/gui/HierarchyWindow_impl.hpp | highduck/ekx | 928300bd2af88dfddd92cc4e1754b9e53969640f | [
"0BSD"
] | 3 | 2021-05-20T03:23:10.000Z | 2022-01-10T14:22:31.000Z | #pragma once
#include "HierarchyWindow.hpp"
#include <ek/editor/imgui/imgui.hpp>
#include <ek/scenex/base/Node.hpp>
#include <ek/scenex/2d/Display2D.hpp>
#include <ek/scenex/2d/Transform2D.hpp>
#include <ek/scenex/base/Script.hpp>
#include <ek/scenex/base/Interactive.hpp>
#include <ek/scenex/3d/Light3D.hpp>
#include ... | 30.80678 | 116 | 0.607835 | [
"3d"
] |
b79bd7ea3fbbb2ce5dba18c33975260c9164e9b6 | 6,218 | cpp | C++ | src/mplfe/test/fe_type_manager_test.cpp | harmonyos-mirror/OpenArkCompiler-test | 1755550ea22eb185cbef8cc5864fa273caebf95a | [
"MulanPSL-1.0"
] | 796 | 2019-08-30T16:20:33.000Z | 2021-12-25T14:45:06.000Z | src/mplfe/test/fe_type_manager_test.cpp | harmonyos-mirror/OpenArkCompiler-test | 1755550ea22eb185cbef8cc5864fa273caebf95a | [
"MulanPSL-1.0"
] | 16 | 2019-08-30T18:04:08.000Z | 2021-09-19T05:02:58.000Z | src/mplfe/test/fe_type_manager_test.cpp | harmonyos-mirror/OpenArkCompiler-test | 1755550ea22eb185cbef8cc5864fa273caebf95a | [
"MulanPSL-1.0"
] | 326 | 2019-08-30T16:11:29.000Z | 2021-11-26T12:31:17.000Z | /*
* Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under the Mulan PSL v1.
* You can use this software according to the terms and conditions of the Mulan PSL v1.
* You may obtain a copy of Mulan PSL v1 at:
*
* http://license.coscl.org.cn/MulanPSL
*
* ... | 47.830769 | 118 | 0.618044 | [
"object"
] |
b7a450c5083716564196f4d2dd03577bfb592d0c | 440 | cpp | C++ | 202102/4/_867_TransposeMatrix.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | 202102/4/_867_TransposeMatrix.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | 202102/4/_867_TransposeMatrix.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | //
// Created by gyc on 2021/2/25.
//
#include "../../common.h"
class Solution {
public:
vector<vector<int>> transpose(vector<vector<int>>& matrix) {
int row = matrix.size(), col = matrix[0].size();
auto res = vector(col, vector(row, 0));
for(int i = 0; i < row; ++i) {
for(in... | 20 | 64 | 0.461364 | [
"vector"
] |
b7af13b7a055f0f7659aa85342cf564e49c2234d | 8,856 | inl | C++ | code/Math/Include/T3DIntrRayTriangle.inl | answerear/Fluid | 7b7992547a7d3ac05504dd9127e779eeeaddb3ab | [
"MIT"
] | 1 | 2021-11-16T15:11:52.000Z | 2021-11-16T15:11:52.000Z | code/Math/Include/T3DIntrRayTriangle.inl | answerear/Fluid | 7b7992547a7d3ac05504dd9127e779eeeaddb3ab | [
"MIT"
] | null | null | null | code/Math/Include/T3DIntrRayTriangle.inl | answerear/Fluid | 7b7992547a7d3ac05504dd9127e779eeeaddb3ab | [
"MIT"
] | null | null | null | /*******************************************************************************
* This file is part of Tiny3D (Tiny 3D Graphic Rendering Engine)
* Copyright (C) 2015-2020 Answer Wong
* For latest info, see https://github.com/answerear/Tiny3D
*
* This program is free software: you can redistribute it and/or modi... | 27.333333 | 81 | 0.432588 | [
"3d"
] |
5d9c79cbc9b151271f324e8164f8947bc35a67df | 3,644 | hpp | C++ | include/util.hpp | sxyu/nivalis | 3b05e3105ef640f6d24670d2ecff23ec6ab1d2d9 | [
"Apache-2.0"
] | 11 | 2020-05-17T04:13:52.000Z | 2022-02-07T06:38:48.000Z | include/util.hpp | sxyu/nivalis | 3b05e3105ef640f6d24670d2ecff23ec6ab1d2d9 | [
"Apache-2.0"
] | null | null | null | include/util.hpp | sxyu/nivalis | 3b05e3105ef640f6d24670d2ecff23ec6ab1d2d9 | [
"Apache-2.0"
] | 2 | 2021-03-17T09:57:36.000Z | 2021-05-20T02:25:51.000Z | #pragma once
#ifndef _UTIL_H_4EB09B11_F909_45C4_AD5D_8AA7A6644106
#define _UTIL_H_4EB09B11_F909_45C4_AD5D_8AA7A6644106
#include <string>
#include <string_view>
#include <vector>
#include <ostream>
#include <istream>
namespace nivalis {
namespace util {
constexpr bool is_numeric(char c) {
return (c >= '0' && c <= '... | 28.030769 | 85 | 0.618277 | [
"vector"
] |
5d9ec2e9bff6013977c572c1f19c72500ecb448c | 14,260 | cpp | C++ | src/main.cpp | mmicko/RetroCommander | 4e4090b77008e1e82ed1761b040b472200c7c454 | [
"BSD-3-Clause"
] | 1 | 2015-06-12T17:16:37.000Z | 2015-06-12T17:16:37.000Z | src/main.cpp | mmicko/RetroCommander | 4e4090b77008e1e82ed1761b040b472200c7c454 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | mmicko/RetroCommander | 4e4090b77008e1e82ed1761b040b472200c7c454 | [
"BSD-3-Clause"
] | 1 | 2021-07-18T05:06:43.000Z | 2021-07-18T05:06:43.000Z | /*
* Copyright 2015 Miodrag Milanovic. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-3-Clause
*/
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include "common.h"
#include <bgfx/bgfx.h>
#include <bx/uint32_t.h>
#include "imgui/imgui.h"
#include "cmd.h"
#include "inpu... | 33.474178 | 231 | 0.622931 | [
"vector"
] |
5da17645372b912aee783726c58033a2e0e59253 | 4,598 | cpp | C++ | lz4.cpp | zsuzuki/test_cpp | 05cfb4c53cfb245ae873e7ca06d991bdb6a9f64b | [
"MIT"
] | null | null | null | lz4.cpp | zsuzuki/test_cpp | 05cfb4c53cfb245ae873e7ca06d991bdb6a9f64b | [
"MIT"
] | null | null | null | lz4.cpp | zsuzuki/test_cpp | 05cfb4c53cfb245ae873e7ca06d991bdb6a9f64b | [
"MIT"
] | null | null | null | #include <array>
#include <atomic>
#include <chrono>
#include <cstdint>
#include <fstream>
#include <future>
#include <iostream>
#include <lz4.h>
#include <thread>
#include <vector>
namespace
{
constexpr size_t BLOCK_BYTES = 8 * 1024;
using BLOCK = std::array<char, LZ4_COMPRESSBOUND(BLOCK_BYTES)>;
usi... | 22.105769 | 115 | 0.57699 | [
"vector"
] |
5db56ff82aac6180f5876d36defc3cba020d2be9 | 9,761 | cpp | C++ | computer-networks/labs-src/lab3/broadcast.cpp | vampy/university | 9496cb63594dcf1cc2cec8650b8eee603f85fdab | [
"MIT"
] | 6 | 2015-06-22T19:43:13.000Z | 2019-07-15T18:08:41.000Z | computer-networks/labs-src/lab3/broadcast.cpp | vampy/university | 9496cb63594dcf1cc2cec8650b8eee603f85fdab | [
"MIT"
] | null | null | null | computer-networks/labs-src/lab3/broadcast.cpp | vampy/university | 9496cb63594dcf1cc2cec8650b8eee603f85fdab | [
"MIT"
] | 1 | 2015-09-26T09:01:54.000Z | 2015-09-26T09:01:54.000Z | #include "../os.hpp"
#include "../udp.hpp"
#include <thread>
#include <chrono>
#include <mutex>
#include <atomic>
#include <vector>
#include <cstring>
#include <ncurses.h>
// Executable is kinda huge, because of all the libraries, TODO optimize
/*
send to broadcast address
multiple listens on that broadcast address
ke... | 25.960106 | 120 | 0.543489 | [
"vector"
] |
5db791c805b58466c2036b5935e1d3a336399a83 | 3,481 | cpp | C++ | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/nodes/SoCacheHint.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/nodes/SoCacheHint.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/nodes/SoCacheHint.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | /**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by Kongsberg Oil & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public ... | 25.408759 | 86 | 0.675955 | [
"geometry",
"3d"
] |
5dbaf6b92b59826ab47a1bb7a33b162417645efc | 1,266 | hpp | C++ | src/axom/klee/tests/KleeTestUtils.hpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 86 | 2019-04-12T20:39:37.000Z | 2022-01-28T17:06:08.000Z | src/axom/klee/tests/KleeTestUtils.hpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 597 | 2019-04-25T22:36:16.000Z | 2022-03-31T20:21:54.000Z | src/axom/klee/tests/KleeTestUtils.hpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 21 | 2019-06-27T15:53:08.000Z | 2021-09-30T20:17:41.000Z | // Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#ifndef AXOM_KLEETESTUTILS_HPP
#define AXOM_KLEETESTUTILS_HPP
#include <array>
#include "axom/core/numerics/Matrix.hp... | 25.836735 | 84 | 0.759084 | [
"geometry",
"vector",
"3d"
] |
5dbd4fc793421d3f5009b60e2945b0e73c645cd4 | 2,135 | cpp | C++ | Love-Babbar-450-In-CPPTest/08_greedy/01_activity_selection_problem.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | Love-Babbar-450-In-CPPTest/08_greedy/01_activity_selection_problem.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | Love-Babbar-450-In-CPPTest/08_greedy/01_activity_selection_problem.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | /*
link: https://practice.geeksforgeeks.org/problems/n-meetings-in-one-room-1587115620/1
custom sort function to sort the finishing time.
why static ?
in some online judge platform we have to keep it static so it wont change in lifetime of the program.
*/
#include "CppUnitTest.h"
#include <iostream>
#i... | 28.466667 | 133 | 0.512881 | [
"vector"
] |
5dc4e91ebd16b7b02475147e83055158927e75b4 | 5,147 | hpp | C++ | SU2-Quantum/SU2_CFD/include/output/filewriter/CSurfaceFVMDataSorter.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/include/output/filewriter/CSurfaceFVMDataSorter.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/include/output/filewriter/CSurfaceFVMDataSorter.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:40:08.000Z | 2021-12-03T06:40:08.000Z | /*!
* \file CSurfaceFVMDataSorter.hpp
* \brief Headers for the surface FVM data sorter class.
* \author T. Albring
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2020, SU2 ... | 38.125926 | 121 | 0.70818 | [
"geometry",
"vector"
] |
5dcb52d8c3a51d4af7d29c0186bfc447902549b4 | 4,518 | cpp | C++ | code/my_vector.cpp | XXY911/Skill-Tree | 3478d8d10e288c9d929499ccd6dc9b024cea0991 | [
"MIT"
] | 11 | 2018-06-04T03:08:42.000Z | 2021-06-18T07:56:19.000Z | code/my_vector.cpp | ccechod/Skill-Tree | d5d480ef24251e054c4915d14685c75074b88ac6 | [
"MIT"
] | null | null | null | code/my_vector.cpp | ccechod/Skill-Tree | d5d480ef24251e054c4915d14685c75074b88ac6 | [
"MIT"
] | 5 | 2018-12-21T03:21:20.000Z | 2019-12-17T08:59:34.000Z | #include <iostream>
#include <assert.h>
#define DOUBLE_SIZE
using namespace std;
template <typename T>
class Vector {
private:
const int ADD_SIZE = 64;
T *array;
unsigned int vsize;
unsigned int vcapacity;
T *allocator(unsigned int size);
void destory(T *array);
public:
Vector():array(0), v... | 25.525424 | 102 | 0.578796 | [
"vector"
] |
5dcd36901edb59bc15a817f19d1935a4a38f8e40 | 727 | cpp | C++ | src/function/interpret.cpp | ujtakk/fixednets | b7681947852a2bacd78290a34fc4c48e492ce2d5 | [
"MIT"
] | null | null | null | src/function/interpret.cpp | ujtakk/fixednets | b7681947852a2bacd78290a34fc4c48e492ce2d5 | [
"MIT"
] | null | null | null | src/function/interpret.cpp | ujtakk/fixednets | b7681947852a2bacd78290a34fc4c48e492ce2d5 | [
"MIT"
] | null | null | null | #ifdef _INTERPRET_HPP_
#include <numeric>
template <typename T>
int classify(Mat1D<T> probs)
{
const int len = probs.size();
int number = -1;
T temp = std::numeric_limits<T>::min();
for (int i = 0; i < len; ++i) {
if (temp < probs[i]) {
temp = probs[i];
number = i;
}
}
return number;... | 18.175 | 56 | 0.581843 | [
"vector"
] |
5dd3e36a45eac0e429158d1c65f04bef52222205 | 9,856 | cpp | C++ | unit_tests/zero_page_mode_ROR.cpp | vcato/qt-quick-6502-emulator | 6202e546efddc612f229da078238f829dd756e12 | [
"Unlicense"
] | null | null | null | unit_tests/zero_page_mode_ROR.cpp | vcato/qt-quick-6502-emulator | 6202e546efddc612f229da078238f829dd756e12 | [
"Unlicense"
] | 3 | 2019-09-14T02:46:26.000Z | 2020-12-22T01:07:08.000Z | unit_tests/zero_page_mode_ROR.cpp | vcato/qt-quick-6502-emulator | 6202e546efddc612f229da078238f829dd756e12 | [
"Unlicense"
] | null | null | null | #include "addressing_mode_helpers.hpp"
struct ROR_ZeroPage_Expectations
{
NZCFlags flags;
uint8_t operand; // Data to be operated upon in Zero Page
};
using RORZeroPage = ROR<ZeroPage, ROR_ZeroPage_Expectations, 5>;
using RORZeroPageMode = ParameterizedInstructionExecutorTestFixture<RORZeroPage>;
st... | 36.639405 | 157 | 0.558847 | [
"vector"
] |
5de22c9be2131feec5c720303cd06ba11c44ef00 | 2,239 | cc | C++ | plugins/test_cppapi/test_cppapi.cc | zhangzhongkui/http-over-http | 18e27573e3338ee797648c44d7e01114e1d3321c | [
"Apache-2.0"
] | null | null | null | plugins/test_cppapi/test_cppapi.cc | zhangzhongkui/http-over-http | 18e27573e3338ee797648c44d7e01114e1d3321c | [
"Apache-2.0"
] | null | null | null | plugins/test_cppapi/test_cppapi.cc | zhangzhongkui/http-over-http | 18e27573e3338ee797648c44d7e01114e1d3321c | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 25.735632 | 127 | 0.69272 | [
"vector"
] |
5de7e3c4881aba8b7f01b8401ff5ee308c547f57 | 22,307 | hxx | C++ | include/itkPhaseCorrelationOptimizer.hxx | jhlegarreta/ITKMontage | c5f9214ab8993dec0ba2fe0a95eb614cd6558bfa | [
"Apache-2.0"
] | 15 | 2018-01-16T14:42:06.000Z | 2022-03-24T13:24:42.000Z | include/itkPhaseCorrelationOptimizer.hxx | jhlegarreta/ITKMontage | c5f9214ab8993dec0ba2fe0a95eb614cd6558bfa | [
"Apache-2.0"
] | 114 | 2018-01-09T23:06:13.000Z | 2022-03-07T19:35:39.000Z | include/itkPhaseCorrelationOptimizer.hxx | jhlegarreta/ITKMontage | c5f9214ab8993dec0ba2fe0a95eb614cd6558bfa | [
"Apache-2.0"
] | 13 | 2018-02-05T20:06:08.000Z | 2021-12-13T14:53:52.000Z | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 34.477589 | 117 | 0.629175 | [
"vector"
] |
5de95638fe338a31e9ede8e9aa03a4b36696e603 | 2,145 | hpp | C++ | source/device/opencl/ocl_cpp_helper.hpp | L-Net-1992/Tengine | c2e8ff2af88393c883b29304dc43b31f63e6f3e4 | [
"Apache-2.0"
] | 1 | 2018-08-30T08:52:09.000Z | 2018-08-30T08:52:09.000Z | source/device/opencl/ocl_cpp_helper.hpp | gaojinwei01/Tengine | 6799ddbe998c0ac8960243e40b5aa3b15908177e | [
"Apache-2.0"
] | null | null | null | source/device/opencl/ocl_cpp_helper.hpp | gaojinwei01/Tengine | 6799ddbe998c0ac8960243e40b5aa3b15908177e | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 30.211268 | 63 | 0.745921 | [
"vector"
] |
5defa5ed86bd90634a280a842cd55c0ba2e537ab | 737 | cpp | C++ | pantaray/cpp/scene.cpp | ichko/pantaray | 8cb25c2c790ff99fb5c32acf5b03a88d7ead2b34 | [
"MIT"
] | 2 | 2017-03-09T22:31:26.000Z | 2017-05-02T06:29:22.000Z | pantaray/cpp/scene.cpp | ichko/pantaray | 8cb25c2c790ff99fb5c32acf5b03a88d7ead2b34 | [
"MIT"
] | null | null | null | pantaray/cpp/scene.cpp | ichko/pantaray | 8cb25c2c790ff99fb5c32acf5b03a88d7ead2b34 | [
"MIT"
] | 1 | 2018-07-22T18:22:36.000Z | 2018-07-22T18:22:36.000Z | #include "../hpp/scene.hpp"
namespace PantaRay {
bool Scene::Intersect(const Ray& ray, Intersection& intersection) {
auto closest_intersection = Intersection();
closest_intersection.distance = Constants::inf;
Mesh* closest_mesh = nullptr;
for (auto& object : GetObjects()) {
... | 27.296296 | 72 | 0.605156 | [
"mesh",
"geometry",
"object"
] |
5dfd22be98e37828f6584e4c00628d2e0c85f29b | 5,921 | hpp | C++ | C++/DimensionalDataStructures/Homework4/Homework4/QuadTree.hpp | znickle24/ZanderProjects | 674d72d2cba888d0605d9bc8230ecee724ec09b1 | [
"MIT"
] | null | null | null | C++/DimensionalDataStructures/Homework4/Homework4/QuadTree.hpp | znickle24/ZanderProjects | 674d72d2cba888d0605d9bc8230ecee724ec09b1 | [
"MIT"
] | null | null | null | C++/DimensionalDataStructures/Homework4/Homework4/QuadTree.hpp | znickle24/ZanderProjects | 674d72d2cba888d0605d9bc8230ecee724ec09b1 | [
"MIT"
] | null | null | null | //
// QuadTree.hpp
// Homework4
//
// Created by Zander Nickle on 6/20/18.
// Copyright © 2018 Zander Nickle. All rights reserved.
//
#ifndef QuadTree_h
#define QuadTree_h
#include "Point.hpp"
#include <memory>
#include <vector>
#include <queue>
#include <algorithm>
template<int Dimension>
class QuadTree {
publ... | 32.532967 | 213 | 0.577267 | [
"vector"
] |
5dff4350bfc8cd28f6cf2081c6f0f8a7a760bfc2 | 2,445 | cpp | C++ | 72_construct-binary-tree-from-inorder-and-postorder-traversal/construct-binary-tree-from-inorder-and-postorder-traversal.cpp | litaotju/lintcode | d614bfd33d5a772325f62f83edbc56e07bbdab6c | [
"MIT"
] | 2 | 2016-07-30T01:25:06.000Z | 2017-10-07T12:30:24.000Z | 72_construct-binary-tree-from-inorder-and-postorder-traversal/construct-binary-tree-from-inorder-and-postorder-traversal.cpp | litaotju/lintcode | d614bfd33d5a772325f62f83edbc56e07bbdab6c | [
"MIT"
] | null | null | null | 72_construct-binary-tree-from-inorder-and-postorder-traversal/construct-binary-tree-from-inorder-and-postorder-traversal.cpp | litaotju/lintcode | d614bfd33d5a772325f62f83edbc56e07bbdab6c | [
"MIT"
] | null | null | null | /*
@Copyright:LintCode
@Author: taoleetju
@Problem: http://www.lintcode.com/problem/construct-binary-tree-from-inorder-and-postorder-traversal
@Language: C++
@Datetime: 16-06-13 14:18
*/
/**
* Definition of TreeNode:
* class TreeNode {
* public:
* int val;
* TreeNode *left, *right;
* TreeNod... | 30.185185 | 101 | 0.528016 | [
"vector"
] |
b90596a7ff9ac7daabc66215a518b48561ffa7c8 | 6,641 | cpp | C++ | src/Debug/Camera.cpp | Kanma/Athena-Graphics | 7e531c404ee55ca8f1ca39e94b55c3d505a2901f | [
"MIT"
] | 1 | 2016-10-30T07:34:29.000Z | 2016-10-30T07:34:29.000Z | src/Debug/Camera.cpp | Kanma/Athena-Graphics | 7e531c404ee55ca8f1ca39e94b55c3d505a2901f | [
"MIT"
] | null | null | null | src/Debug/Camera.cpp | Kanma/Athena-Graphics | 7e531c404ee55ca8f1ca39e94b55c3d505a2901f | [
"MIT"
] | null | null | null | /** @file Camera.cpp
@author Philip Abbet
Implementation of the class 'Athena::Graphics::Debug::Camera'
*/
#include <Athena-Graphics/Debug/Camera.h>
#include <Athena-Graphics/MeshBuilder.h>
#include <Athena-Core/Log/LogManager.h>
#include <Ogre/OgreMaterialManager.h>
#include <Ogre/OgreSceneManager.h>
#incl... | 29.914414 | 111 | 0.518747 | [
"mesh",
"solid"
] |
b90664010d094970f28c67e825e76a1c4b8a528f | 4,566 | hpp | C++ | examples/write_structures_to_xml/stubs.hpp | incoder1/libio | fbfd83fe31ca59a69670e5269f5847b2b4c6c553 | [
"BSL-1.0"
] | 14 | 2018-06-12T15:42:43.000Z | 2022-02-28T16:19:20.000Z | examples/write_structures_to_xml/stubs.hpp | incoder1/libio | fbfd83fe31ca59a69670e5269f5847b2b4c6c553 | [
"BSL-1.0"
] | null | null | null | examples/write_structures_to_xml/stubs.hpp | incoder1/libio | fbfd83fe31ca59a69670e5269f5847b2b4c6c553 | [
"BSL-1.0"
] | null | null | null | #ifndef STUBS_HPP_INCLUDED
#define STUBS_HPP_INCLUDED
#include <xml_types.hpp>
#ifdef HAS_PRAGMA_ONCE
#pragma once
#endif // HAS_PRAGMA_ONCE
class config {
public:
typedef std::chrono::time_point<std::chrono::system_clock> date_t;
config() noexcept:
id_(0),
enabled_(false),
time_created_(),
name_()
{}
... | 24.031579 | 95 | 0.688349 | [
"vector"
] |
b906aa8ccf715dff64a3b1494ce3a8017e6b4c98 | 2,179 | cpp | C++ | src/bucket_collection.cpp | strikles/poker-mcts | 6bd1443a7b497cf64fafd4b25e8d3bb64219e18c | [
"MIT"
] | 9 | 2019-08-22T06:25:12.000Z | 2021-02-17T16:27:27.000Z | src/bucket_collection.cpp | strikles/poker-mcts | 6bd1443a7b497cf64fafd4b25e8d3bb64219e18c | [
"MIT"
] | null | null | null | src/bucket_collection.cpp | strikles/poker-mcts | 6bd1443a7b497cf64fafd4b25e8d3bb64219e18c | [
"MIT"
] | 4 | 2019-09-04T14:20:05.000Z | 2022-02-09T06:32:14.000Z | #include <algorithm>
#include "bucket_collection.hpp"
namespace freedom {
BucketCollection::BucketCollection(const unsigned &nb_buckets)
: buckets(nb_buckets) {}
BucketCollection::BucketCollection(const vector<Bucket> &buckets_)
: buckets(buckets_) {}
BucketCollection::Bucket &BucketCollection::operator[](u... | 27.582278 | 72 | 0.685636 | [
"vector"
] |
b914dc745e4d515eba13b6396cb1542e916a230e | 2,147 | cpp | C++ | camera/CameraParameters.cpp | SmombieRom/klte-common | 3d72aada6042701d4ba144cf57a09d7b7f128c82 | [
"FTL"
] | null | null | null | camera/CameraParameters.cpp | SmombieRom/klte-common | 3d72aada6042701d4ba144cf57a09d7b7f128c82 | [
"FTL"
] | null | null | null | camera/CameraParameters.cpp | SmombieRom/klte-common | 3d72aada6042701d4ba144cf57a09d7b7f128c82 | [
"FTL"
] | null | null | null | /*
* Copyright (C) 2017 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 48.795455 | 102 | 0.775501 | [
"object"
] |
2c71ab4e55e23d669dabdbabafc66f64be2baba1 | 13,605 | cc | C++ | src/Bloch/BlochMx.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | 4 | 2021-03-15T10:02:13.000Z | 2022-01-16T11:06:28.000Z | src/Bloch/BlochMx.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | 1 | 2022-01-27T15:35:03.000Z | 2022-01-27T15:35:03.000Z | src/Bloch/BlochMx.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | null | null | null | /* BlochMx.cc ****************************************************-*-c++-*-
** **
** G A M M A **
** **
** Bloch Matri... | 42.515625 | 82 | 0.511944 | [
"vector"
] |
2c73872c576c68ff22a8c9659f7918bdeb198091 | 3,215 | hpp | C++ | source/external/mongo-cxx-driver/include/mongocxx/v_noabi/mongocxx/options/bulk_write.hpp | VincentPT/vschk | f8f40a7666d80224a9a24c097a4d52f5507d03de | [
"MIT"
] | null | null | null | source/external/mongo-cxx-driver/include/mongocxx/v_noabi/mongocxx/options/bulk_write.hpp | VincentPT/vschk | f8f40a7666d80224a9a24c097a4d52f5507d03de | [
"MIT"
] | null | null | null | source/external/mongo-cxx-driver/include/mongocxx/v_noabi/mongocxx/options/bulk_write.hpp | VincentPT/vschk | f8f40a7666d80224a9a24c097a4d52f5507d03de | [
"MIT"
] | 1 | 2021-06-18T05:00:10.000Z | 2021-06-18T05:00:10.000Z | // Copyright 2014 MongoDB Inc.
//
// 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... | 30.619048 | 100 | 0.682426 | [
"object"
] |
2c7bf961f9b369667fb8e011a3379f48d34107dc | 1,270 | cpp | C++ | contests/uri/uri-1031.cpp | leomaurodesenv/contest-codes | f7ae7e9d8c67e43dea7ac7dd71afce20d804f518 | [
"MIT"
] | null | null | null | contests/uri/uri-1031.cpp | leomaurodesenv/contest-codes | f7ae7e9d8c67e43dea7ac7dd71afce20d804f518 | [
"MIT"
] | null | null | null | contests/uri/uri-1031.cpp | leomaurodesenv/contest-codes | f7ae7e9d8c67e43dea7ac7dd71afce20d804f518 | [
"MIT"
] | null | null | null | /*
* Problema: Crise de Energia
* https://www.urionlinejudge.com.br/judge/pt/problems/view/1031
*/
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <sstream>
#include <iomanip>
#include <locale>
#include <bitset>
#include <map>
#include <vector>
#include <queue>
#i... | 20.483871 | 96 | 0.610236 | [
"vector"
] |
2c800e543706d27031ea5924f328c9a6e9fd9f84 | 1,659 | cc | C++ | sim/scenarios/drop-rate/drop-rate-error-model.cc | WesleyRosenblum/quic-network-simulator | b1d8ddf018d89e08ab88d7a229820870e5cb5256 | [
"Apache-2.0"
] | null | null | null | sim/scenarios/drop-rate/drop-rate-error-model.cc | WesleyRosenblum/quic-network-simulator | b1d8ddf018d89e08ab88d7a229820870e5cb5256 | [
"Apache-2.0"
] | null | null | null | sim/scenarios/drop-rate/drop-rate-error-model.cc | WesleyRosenblum/quic-network-simulator | b1d8ddf018d89e08ab88d7a229820870e5cb5256 | [
"Apache-2.0"
] | null | null | null | #include "../helper/tcp-packet.h"
#include "../helper/quic-packet.h"
#include "drop-rate-error-model.h"
using namespace std;
NS_OBJECT_ENSURE_REGISTERED(DropRateErrorModel);
TypeId DropRateErrorModel::GetTypeId(void) {
static TypeId tid = TypeId("DropRateErrorModel")
.SetParent<ErrorModel>()
.Add... | 28.603448 | 132 | 0.59132 | [
"model"
] |
2c8337a533243828012c472294d71fbe17f2f791 | 3,823 | cpp | C++ | solutions/17-dynamic-allocation/sources/user-tasks-step17.cpp | pierremolinaro/real-time-kernel-pi-pico | 581360dd1135e17fe0c4ddabbe74052a366de7d6 | [
"MIT"
] | 3 | 2021-05-05T19:40:01.000Z | 2021-05-08T06:40:35.000Z | solutions/17-dynamic-allocation/sources/user-tasks-step17.cpp | pierremolinaro/real-time-kernel-pi-pico | 581360dd1135e17fe0c4ddabbe74052a366de7d6 | [
"MIT"
] | null | null | null | solutions/17-dynamic-allocation/sources/user-tasks-step17.cpp | pierremolinaro/real-time-kernel-pi-pico | 581360dd1135e17fe0c4ddabbe74052a366de7d6 | [
"MIT"
] | null | null | null | #include "all-headers.h"
//--------------------------------------------------------------------------------------------------
static const uint32_t BUFFER_SIZE = 200 ;
//--------------------------------------------------------------------------------------------------
class Buffer {
//--- Default constructor
publ... | 29.635659 | 100 | 0.459587 | [
"object"
] |
2c9275337219456efd62d000938905bd588e9f38 | 6,269 | hpp | C++ | legion/engine/physics/mesh_splitter_utils/half_edge_finder.hpp | Rythe-Interactive/Legion-Engine.rythe-legacy | e199689024436c40054942796ce9dcd4d097d7fd | [
"MIT"
] | null | null | null | legion/engine/physics/mesh_splitter_utils/half_edge_finder.hpp | Rythe-Interactive/Legion-Engine.rythe-legacy | e199689024436c40054942796ce9dcd4d097d7fd | [
"MIT"
] | null | null | null | legion/engine/physics/mesh_splitter_utils/half_edge_finder.hpp | Rythe-Interactive/Legion-Engine.rythe-legacy | e199689024436c40054942796ce9dcd4d097d7fd | [
"MIT"
] | null | null | null | #pragma once
#include <physics/mesh_splitter_utils/mesh_splitter_typedefs.hpp>
namespace legion::physics
{
/** @struct HalfEdgeFinder
* @brief Responsible for creating a half-edge data structure for a mesh
*/
struct HalfEdgeFinder
{
meshHalfEdgePtr currentPtr;
/** @brief Given a mesh an... | 36.236994 | 137 | 0.550806 | [
"mesh",
"vector",
"transform"
] |
2c9e00d81b7801259c884df9128a4f33d576a809 | 9,897 | cpp | C++ | src/main.cpp | kurbaniec/PuzzleGame | 5fdf67d14ee635f8c74f82a6b2af4ed354b6e5fe | [
"MIT"
] | null | null | null | src/main.cpp | kurbaniec/PuzzleGame | 5fdf67d14ee635f8c74f82a6b2af4ed354b6e5fe | [
"MIT"
] | null | null | null | src/main.cpp | kurbaniec/PuzzleGame | 5fdf67d14ee635f8c74f82a6b2af4ed354b6e5fe | [
"MIT"
] | null | null | null | #include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "utils/print.h"
#include "utils/model.h"
#include "engine/model/simplemodel.h"
#include "engine/factory/InstanceFactory.h"
#include "engine/camera/camera.h"
#include "engine/renderer/renderer.h"
#include "game/demo/DemoGame.h"
#include "game/... | 37.206767 | 127 | 0.636152 | [
"render",
"model"
] |
2c9fcf42b311469c8098642a99e150874816c634 | 1,053 | cpp | C++ | HDU/HDU-2181.cpp | zhchuu/OJ-Solutions | 09e1c18104db35d7c6919257ebaa0f170f54796c | [
"MIT"
] | null | null | null | HDU/HDU-2181.cpp | zhchuu/OJ-Solutions | 09e1c18104db35d7c6919257ebaa0f170f54796c | [
"MIT"
] | null | null | null | HDU/HDU-2181.cpp | zhchuu/OJ-Solutions | 09e1c18104db35d7c6919257ebaa0f170f54796c | [
"MIT"
] | null | null | null | /*
* HDU-2181
* Hint: dfs
* */
#include<stdio.h>
#include<memory.h>
#include<algorithm>
#include<math.h>
#include<vector>
using namespace std;
const int maxn = 20+2;
int map[maxn][3], m, cnt;
bool vis[maxn];
vector<int> store;
void output(){
printf("%d: ", ++cnt);
for(int i=0; i<store.size(); i++)
... | 20.25 | 68 | 0.474834 | [
"vector"
] |
2c9fd7bdeb8ec0f44fa060178c63e7179b601cc7 | 5,238 | hpp | C++ | Source/AllProjects/CIDKernel/CIDKernel_Signals.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/CIDKernel/CIDKernel_Signals.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/CIDKernel/CIDKernel_Signals.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDKernel_Signals.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 07/25/1999
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensou... | 31.939024 | 79 | 0.434326 | [
"object"
] |
2ca29a20da2eedc177253c5dc58b05403d5db22f | 1,357 | cpp | C++ | LeetCode/AC/598.cpp | JackoQm/Daily_Practices | 1662ab963263a27ca8b183463ea645935e86fee6 | [
"MIT"
] | null | null | null | LeetCode/AC/598.cpp | JackoQm/Daily_Practices | 1662ab963263a27ca8b183463ea645935e86fee6 | [
"MIT"
] | null | null | null | LeetCode/AC/598.cpp | JackoQm/Daily_Practices | 1662ab963263a27ca8b183463ea645935e86fee6 | [
"MIT"
] | null | null | null | /*
* From: LeetCode - 598. Range Addition II (https://leetcode.com/problems/range-addition-ii/description/)
* Level: Easy
* Question: Given an m * n matrix M initialized with all 0's and several update operations.
Operations are represented by a 2D array, and each operation is represented by an array with two p... | 28.87234 | 206 | 0.572587 | [
"vector"
] |
2ca4051d2f6f319ecec7c471ad45e6d4e7fb5a0a | 4,345 | hpp | C++ | bnn/cuda/core/tensor_impl.hpp | czgdp1807/BNN | 9c080eda661aa289b30a1b6105b6c2732ac92d77 | [
"BSD-3-Clause"
] | 1 | 2020-01-22T20:18:17.000Z | 2020-01-22T20:18:17.000Z | bnn/cuda/core/tensor_impl.hpp | czgdp1807/BNN | 9c080eda661aa289b30a1b6105b6c2732ac92d77 | [
"BSD-3-Clause"
] | null | null | null | bnn/cuda/core/tensor_impl.hpp | czgdp1807/BNN | 9c080eda661aa289b30a1b6105b6c2732ac92d77 | [
"BSD-3-Clause"
] | null | null | null | #ifndef BNN_BNN_CUDA_CORE_TENSOR_IMPL_HPP
#define BNN_BNN_CUDA_CORE_TENSOR_IMPL_HPP
#include <bnn/cuda/core/tensor.hpp>
#include <bnn/cuda/utils/cuda_wrappers.hpp>
#include <bnn/utils/utils.hpp>
namespace bnn
{
namespace cuda
{
namespace core
{
template <class data_type>
... | 31.715328 | 77 | 0.457537 | [
"shape",
"vector"
] |
2ca4d1414829c9bd7d46cf4c9fc5ed819fd761d6 | 1,360 | cpp | C++ | 1054/ConsoleApplicationLab3/ConsoleApplicationLab3/Source.cpp | catalinboja/cpp_examples_2016 | 784741ea12fd3dd2ebc659b431f7daaf17898956 | [
"Apache-2.0"
] | null | null | null | 1054/ConsoleApplicationLab3/ConsoleApplicationLab3/Source.cpp | catalinboja/cpp_examples_2016 | 784741ea12fd3dd2ebc659b431f7daaf17898956 | [
"Apache-2.0"
] | null | null | null | 1054/ConsoleApplicationLab3/ConsoleApplicationLab3/Source.cpp | catalinboja/cpp_examples_2016 | 784741ea12fd3dd2ebc659b431f7daaf17898956 | [
"Apache-2.0"
] | 4 | 2016-12-21T15:31:37.000Z | 2018-08-04T10:36:34.000Z | #include <iostream>
using namespace std;
class Student {
public:
int code;
char* name;
public:
int* grades;
int noGrades;
};
Student initStudent(Student s) {
s.code = 0;
//DON'T DO THIS
//s.name = "John Doe";
s.name = new char [strlen("John Doe")+1];
strcpy(s.name, "John Doe");
s.noGrades = 0;
s.grades = N... | 17.435897 | 47 | 0.618382 | [
"object"
] |
2ca66001716b6b129edee9a049a6ee06787df1bb | 14,210 | cpp | C++ | src/core/demo/NTTSource.cpp | mattdano/palisade | 6e49bc3a850672a142eea209e6d71505e689cb81 | [
"BSD-2-Clause"
] | null | null | null | src/core/demo/NTTSource.cpp | mattdano/palisade | 6e49bc3a850672a142eea209e6d71505e689cb81 | [
"BSD-2-Clause"
] | null | null | null | src/core/demo/NTTSource.cpp | mattdano/palisade | 6e49bc3a850672a142eea209e6d71505e689cb81 | [
"BSD-2-Clause"
] | null | null | null | /*
* @author TPOC: contact@palisade-crypto.org
*
* @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT)
* 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. Redistributi... | 31.577778 | 171 | 0.689937 | [
"vector"
] |
2cad21987fbc9261c4ec1ad8cf54d5f40209168e | 7,648 | cpp | C++ | circe/gl/scene/bvh.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | 1 | 2021-09-17T18:12:47.000Z | 2021-09-17T18:12:47.000Z | circe/gl/scene/bvh.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | null | null | null | circe/gl/scene/bvh.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | 2 | 2021-09-17T18:13:02.000Z | 2021-09-17T18:16:21.000Z | /*
* Copyright (c) 2017 FilipeCN
*
* The MIT License (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 rights
* to use, cop... | 37.126214 | 81 | 0.634022 | [
"mesh",
"vector",
"transform"
] |
2cb654ef9b4f07ec00ebd629db2e7c37148c999d | 3,136 | cpp | C++ | src/Manager.cpp | sunillshastry/residence-cli | 40c1164105839557317af3eea1b820bef60f23d4 | [
"MIT"
] | null | null | null | src/Manager.cpp | sunillshastry/residence-cli | 40c1164105839557317af3eea1b820bef60f23d4 | [
"MIT"
] | 7 | 2022-01-07T13:32:46.000Z | 2022-01-09T16:26:33.000Z | src/Manager.cpp | sunillshastry/residence-cli | 40c1164105839557317af3eea1b820bef60f23d4 | [
"MIT"
] | null | null | null | #include <iostream>
// #include <vector>
#include "./../include/Manager.h"
/**
* The default constructor for the Manager class. Initialises all values to null or zero
* Uses the BasicManager class to set all the attribute values to zero
*/
Manager::Manager() : BasicManager() {}
/**
* The main constructor for the ... | 26.576271 | 107 | 0.688776 | [
"object",
"vector"
] |
2cbc97788ca2f5c934c6b36c80f96d1bc789d887 | 3,709 | cpp | C++ | src/umundo/discovery/BroadcastDiscovery.cpp | tklab-tud/umundo | 31da28e24c6c935370099745311dd78c80763bd8 | [
"BSD-3-Clause"
] | 44 | 2015-02-01T12:39:51.000Z | 2022-03-30T15:13:50.000Z | src/umundo/discovery/BroadcastDiscovery.cpp | tklab-tud/umundo | 31da28e24c6c935370099745311dd78c80763bd8 | [
"BSD-3-Clause"
] | 3 | 2015-01-13T12:47:21.000Z | 2017-06-24T04:13:46.000Z | src/umundo/discovery/BroadcastDiscovery.cpp | tklab-tud/umundo | 31da28e24c6c935370099745311dd78c80763bd8 | [
"BSD-3-Clause"
] | 19 | 2015-04-17T13:50:15.000Z | 2022-03-09T09:50:46.000Z | #include "umundo/discovery/BroadcastDiscovery.h"
namespace umundo {
/**
* Have a look at https://github.com/zeromq/czmq/blob/master/src/zbeacon.c#L81 to
* see how to setup UDP sockets for broadcast.
*
* Receiving Broadcast messages: https://github.com/zeromq/czmq/blob/master/src/zbeacon.c#L700
* Sending Broadcas... | 24.401316 | 114 | 0.728498 | [
"object",
"vector"
] |
2cca34c475f1d52adb286a289b50db7e9efdd4f3 | 1,151 | hpp | C++ | include/hitables/plane.hpp | smukherjee2016/ToyRT2018 | 56b1140d1e796beecc78cc8987771fd9d497a267 | [
"Apache-2.0"
] | null | null | null | include/hitables/plane.hpp | smukherjee2016/ToyRT2018 | 56b1140d1e796beecc78cc8987771fd9d497a267 | [
"Apache-2.0"
] | null | null | null | include/hitables/plane.hpp | smukherjee2016/ToyRT2018 | 56b1140d1e796beecc78cc8987771fd9d497a267 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "objects/object.hpp"
/*
* A plane is defined by a point and a normal.
*/
class Plane : public Object {
public:
Point3 distanceFromWorldOrigin;
Vector3 normal;
Plane(const Point3& _distanceFromWorldOrigin, const Vector3& _normal) :
distanceFromWorldOrigin(_distanceFromWorldOri... | 25.577778 | 90 | 0.655083 | [
"object"
] |
2cd23d7ce65c29749cd3ba6ad5abc7cf77fc3f7f | 800 | cpp | C++ | test/from_string_test.cpp | roopchansinghv/gadgetron | fb6c56b643911152c27834a754a7b6ee2dd912da | [
"MIT"
] | 1 | 2022-02-22T21:06:36.000Z | 2022-02-22T21:06:36.000Z | test/from_string_test.cpp | apd47/gadgetron | 073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2 | [
"MIT"
] | null | null | null | test/from_string_test.cpp | apd47/gadgetron | 073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2 | [
"MIT"
] | null | null | null | //
// Created by dchansen on 2/21/19.
//
#include <gtest/gtest.h>
#include "io/from_string.h"
using namespace Gadgetron::Core;
TEST(FromStringTest,FloatTest){
ASSERT_EQ(42.0f, IO::from_string<float>("42"));
ASSERT_EQ(42.0f, IO::from_string<float>("42.0"));
ASSERT_EQ(42.0f, IO::from_string<float>("42.0f")... | 23.529412 | 71 | 0.66 | [
"vector"
] |
2ce3a4c55b0cdaad035fb09160f1373cad1d75fd | 33,433 | cc | C++ | src/xenia/kernel/util/xex2.cc | wtfaremyinitials/xenia | 16b3ecd5897051f82bc236ad9a4d0ab5cab22e87 | [
"BSD-3-Clause"
] | 2 | 2016-11-18T23:12:36.000Z | 2019-02-08T14:43:40.000Z | src/xenia/kernel/util/xex2.cc | wtfaremyinitials/xenia | 16b3ecd5897051f82bc236ad9a4d0ab5cab22e87 | [
"BSD-3-Clause"
] | null | null | null | src/xenia/kernel/util/xex2.cc | wtfaremyinitials/xenia | 16b3ecd5897051f82bc236ad9a4d0ab5cab22e87 | [
"BSD-3-Clause"
] | null | null | null | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... | 34.185072 | 80 | 0.621512 | [
"vector"
] |
2ce69aa4094600941d87d75a72889a1cf2bbbe86 | 2,783 | cpp | C++ | src/VariableValue.cpp | robertsmeets/rjhg-pl | 87721b77f92d5180c34123265fac70dcf54c77a9 | [
"MIT"
] | 1 | 2015-03-19T15:38:20.000Z | 2015-03-19T15:38:20.000Z | src/VariableValue.cpp | robertsmeets/rjhg-pl | 87721b77f92d5180c34123265fac70dcf54c77a9 | [
"MIT"
] | 7 | 2016-04-08T05:32:53.000Z | 2019-03-05T05:26:10.000Z | src/VariableValue.cpp | robertsmeets/rjhg-pl | 87721b77f92d5180c34123265fac70dcf54c77a9 | [
"MIT"
] | 1 | 2015-04-13T14:23:50.000Z | 2015-04-13T14:23:50.000Z | /*
* VariableValue.cpp
*
* Created on: Jul 1, 2015
* Author: Robert
*/
#include "VariableValue.h"
VariableValue::VariableValue(string c) {
value = c;
}
VariableValue::~VariableValue() {
}
void VariableValue::print(int level) {
for (int i = 0; i < level; i++) {
printf("+");
}
printf("Varia... | 25.53211 | 80 | 0.508444 | [
"vector"
] |
2ce9649b14a158ac107222af455996838d2f56a6 | 2,968 | cpp | C++ | test/unit_tests/UnitTestSearch.cpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 3 | 2017-08-08T21:06:02.000Z | 2020-01-08T13:23:36.000Z | test/unit_tests/UnitTestSearch.cpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2016-12-17T00:18:56.000Z | 2019-08-09T15:29:25.000Z | test/unit_tests/UnitTestSearch.cpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2017-11-30T07:02:41.000Z | 2019-08-05T17:07:04.000Z | // Copyright 2002 - 2008, 2010, 2011 National Technology Engineering
// Solutions of Sandia, LLC (NTESS). Under the terms of Contract
// DE-NA0003525 with NTESS, the U.S. Government retains certain rights
// in this software.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the L... | 27.481481 | 128 | 0.667116 | [
"vector"
] |
f8e9613c174a0f93a29da2154c8aba08d457366b | 785 | cpp | C++ | tests/std/tests/Dev09_152755_tr1_nested_bind/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 8,232 | 2019-09-16T22:51:24.000Z | 2022-03-31T03:55:39.000Z | tests/std/tests/Dev09_152755_tr1_nested_bind/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 2,263 | 2019-09-17T05:19:55.000Z | 2022-03-31T21:05:47.000Z | tests/std/tests/Dev09_152755_tr1_nested_bind/test.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 1,276 | 2019-09-16T22:51:40.000Z | 2022-03-31T03:30:05.000Z | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include <algorithm>
#include <assert.h>
#include <functional>
#include <math.h>
#include <vector>
using namespace std;
using namespace std::placeholders;
#define STATIC_ASSERT(...) static_assert(__VA_ARGS_... | 21.216216 | 99 | 0.614013 | [
"vector"
] |
f8fb998277aa09ff08769146443f783c17910178 | 1,291 | cpp | C++ | BinarySearchTree/bfsTraversal.cpp | rt1599/algorithms | 4bce9649875af5d1a99ca2365a76cf07021be4d4 | [
"MIT"
] | 472 | 2018-05-25T06:45:44.000Z | 2020-01-06T15:46:09.000Z | BinarySearchTree/bfsTraversal.cpp | rt1599/algorithms | 4bce9649875af5d1a99ca2365a76cf07021be4d4 | [
"MIT"
] | 6 | 2020-01-25T22:22:44.000Z | 2021-06-01T04:53:25.000Z | BinarySearchTree/bfsTraversal.cpp | rt1599/algorithms | 4bce9649875af5d1a99ca2365a76cf07021be4d4 | [
"MIT"
] | 44 | 2019-03-02T07:38:38.000Z | 2020-01-01T16:05:06.000Z | /**
* LevelOrder traversal of a tree is breadth first traversal for the tree
*
* Example:
*
* F
* / \
* B G
* / \ \
* A D I
*
* Level Order Traversal := F -> B -> G -> A -> D -> I
*/
#include <iostream>
#include <queue>
#include "BST/BST.hpp"
void levelOrder(const B... | 20.822581 | 73 | 0.522851 | [
"object",
"vector"
] |
f8fed1a174b04e43971e641f365a930cf5131f2f | 702 | cpp | C++ | cf/shua/743D.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 2 | 2021-06-09T12:27:07.000Z | 2021-06-11T12:02:03.000Z | cf/shua/743D.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 1 | 2021-09-08T12:00:05.000Z | 2021-09-08T14:52:30.000Z | cf/shua/743D.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
long long dp[N], sz[N], ans = -1e18;
int n, a[N], x, y;
vector<int> G[N];
void dfs(int rt, int fa) {
sz[rt] = a[rt];
for(auto j : G[rt]) {
if(j == fa) continue;
dfs(j, rt);
if(dp[rt] != -1e18)
ans = max(ans, dp[rt] + dp[j]);
dp[rt] =... | 16.325581 | 36 | 0.482906 | [
"vector"
] |
5d12381ae4e872fac4c9ee5a07ae424e03f3653b | 610 | cpp | C++ | codeforces/520/B.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | 5 | 2020-06-30T12:44:25.000Z | 2021-07-14T06:35:57.000Z | codeforces/520/B.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | null | null | null | codeforces/520/B.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ll long long
using namespace std;
map<ll,ll> d;
vector<ll> adj;
map<ll,bool> v;
void bfs(ll n, ll m){
queue<ll> q;
q.push(n);
d[n]=0;
while(!q.empty()){
ll s = q.front();
q.pop();
v[s]=true;
if(2*s <= 2*m && !v[2*s]) adj.push_back(2*s);
if(s-1 > 0 && !v[s-1]) adj.push_back... | 14.878049 | 47 | 0.493443 | [
"vector"
] |
5d1e11094945b4c453a59df2f950acbd5c0680b3 | 15,048 | cc | C++ | examples/prolonged_ncs/tworobots/scots-files/tworobots.cc | mkhaled87/SENSE | a0f5ce28fc03181d66f0751a1849cc39a88e7cd7 | [
"BSD-3-Clause"
] | 2 | 2019-10-10T21:39:43.000Z | 2020-12-21T20:34:12.000Z | examples/prolonged_ncs/tworobots/scots-files/tworobots.cc | mkhaled87/SENSE | a0f5ce28fc03181d66f0751a1849cc39a88e7cd7 | [
"BSD-3-Clause"
] | null | null | null | examples/prolonged_ncs/tworobots/scots-files/tworobots.cc | mkhaled87/SENSE | a0f5ce28fc03181d66f0751a1849cc39a88e7cd7 | [
"BSD-3-Clause"
] | null | null | null | /*
* robot.cc
*
* created on: 11.01.2017
* author: M. Khaled
*/
/*
* information about this example is given in the readme file
*
*/
#include <array>
#include <iostream>
#include "cuddObj.hh"
#include "SymbolicSet.hh"
#include "SymbolicModelGrowthBound.hh"
#include "TicToc.hh"
#include "RungeKutta4.h... | 30.035928 | 116 | 0.607257 | [
"object",
"model"
] |
5d226ef6900eb3dd1e7c939456f105702a49912c | 1,837 | cpp | C++ | 2_course/2_week/3_merge_tables/main.cpp | claytonjwong/Algorithms-UCSD | 09d433a1cbc00dc8d913ece8716ac539b81340cd | [
"Unlicense"
] | 6 | 2019-11-13T01:19:28.000Z | 2021-08-10T19:19:57.000Z | 2_course/2_week/3_merge_tables/main.cpp | claytonjwong/Algorithms-UCSD | 09d433a1cbc00dc8d913ece8716ac539b81340cd | [
"Unlicense"
] | null | null | null | 2_course/2_week/3_merge_tables/main.cpp | claytonjwong/Algorithms-UCSD | 09d433a1cbc00dc8d913ece8716ac539b81340cd | [
"Unlicense"
] | 3 | 2019-11-13T03:11:15.000Z | 2020-11-28T20:05:38.000Z | /**
*
* C++ implementation to merge tables using Union-Find algorithm (disjoint sets)
*
* (c) Copyright 2019 Clayton J. Wong ( http://www.claytonjwong.com )
*
**/
#include <iostream>
#include <sstream>
#include <algorithm>
#include <iterator>
#include <vector>
#include <string>
using namespace std;
class Disjo... | 30.114754 | 217 | 0.481764 | [
"vector"
] |
5d23223a95ee724d2547c5bf38fbd2cfdaf3c695 | 123,767 | cxx | C++ | inetcore/mshtml/src/site/base/dom.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/mshtml/src/site/base/dom.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/mshtml/src/site/base/dom.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "headers.hxx"
#pragma MARK_DATA(__FILE__)
#pragma MARK_CODE(__FILE__)
#pragma MARK_CONST(__FILE__)
#ifndef X_ELEMENT_HXX_
#define X_ELEMENT_HXX_
#include "element.hxx"
#endif
#ifndef X_FORMKRNL_HXX_
#define X_FORMKRNL_HXX_
#include "formkrnl.hxx"
#endif
#ifndef X_DOM_HXX_
#define X_DOM_HXX... | 24.57157 | 184 | 0.561684 | [
"object"
] |
5d236743f75875e1a63d811a8547a8c53d203177 | 303 | cxx | C++ | ants/lib/WRAP_DenoiseImage.cxx | xemio/ANTsPy | ef610318e217bb04d3850d480c2e51df695d56c0 | [
"Apache-2.0"
] | 338 | 2017-09-01T06:47:54.000Z | 2022-03-31T12:11:46.000Z | ants/lib/WRAP_DenoiseImage.cxx | xemio/ANTsPy | ef610318e217bb04d3850d480c2e51df695d56c0 | [
"Apache-2.0"
] | 306 | 2017-08-30T20:05:07.000Z | 2022-03-31T16:20:44.000Z | ants/lib/WRAP_DenoiseImage.cxx | xemio/ANTsPy | ef610318e217bb04d3850d480c2e51df695d56c0 | [
"Apache-2.0"
] | 115 | 2017-09-08T11:53:17.000Z | 2022-03-27T05:53:39.000Z |
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "antscore/DenoiseImage.h"
namespace py = pybind11;
int DenoiseImage( std::vector<std::string> instring )
{
return ants::DenoiseImage(instring, NULL);
}
PYBIND11_MODULE(DenoiseImage, m)
{
m.def("DenoiseImage", &DenoiseImage);
} | 17.823529 | 53 | 0.729373 | [
"vector"
] |
5d23f740806c6ae732b2a28e8633860b1c9e107a | 30,029 | cc | C++ | pdb/src/pipeline/headers/ComputePlan.cc | SeraphL/plinycompute | 7788bc2b01d83f4ff579c13441d0ba90734b54a2 | [
"Apache-2.0"
] | 3 | 2019-05-04T05:17:30.000Z | 2020-02-21T05:01:59.000Z | pdb/src/pipeline/headers/ComputePlan.cc | dcbdan/plinycompute | a6f1c8ac8f75c09615f08752c82179f33cfc6d89 | [
"Apache-2.0"
] | 3 | 2020-02-20T19:50:46.000Z | 2020-06-25T14:31:51.000Z | pdb/src/pipeline/headers/ComputePlan.cc | dcbdan/plinycompute | a6f1c8ac8f75c09615f08752c82179f33cfc6d89 | [
"Apache-2.0"
] | 5 | 2019-02-19T23:17:24.000Z | 2020-08-03T01:08:04.000Z | #include <utility>
/*****************************************************************************
* *
* Copyright 2018 Rice University *
* ... | 50.384228 | 218 | 0.540311 | [
"object",
"vector"
] |
5d24a3225fbba6b1052d57552712d2954c410603 | 7,858 | hpp | C++ | viennashe/postproc/displacement_current.hpp | FelipeSenra/viennashe-dev | 1b42f01b0826322c0b49a6fcf08fc0db5946e21f | [
"MIT"
] | 3 | 2020-05-07T14:38:52.000Z | 2021-05-30T09:43:18.000Z | viennashe/postproc/displacement_current.hpp | FelipeSenra/viennashe-dev | 1b42f01b0826322c0b49a6fcf08fc0db5946e21f | [
"MIT"
] | 1 | 2021-05-02T13:50:52.000Z | 2021-05-03T03:49:51.000Z | viennashe/postproc/displacement_current.hpp | FelipeSenra/viennashe-dev | 1b42f01b0826322c0b49a6fcf08fc0db5946e21f | [
"MIT"
] | 3 | 2020-05-07T14:39:07.000Z | 2021-05-08T12:15:26.000Z | #ifndef VIENNASHE_UTIL_POSTPROC_DISPLACEMENT_CURRENT_HPP
#define VIENNASHE_UTIL_POSTPROC_DISPLACEMENT_CURRENT_HPP
/* ============================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific... | 37.066038 | 176 | 0.634767 | [
"mesh",
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.