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
a16f72d14ec77d9b41e3cd7e269a78b0f9452883
5,686
cpp
C++
src/DebugReportCallback.cpp
ComicSansMS/GhulbusVulkan
b24ffb892a7573c957aed443a3fbd7ec281556e7
[ "MIT" ]
null
null
null
src/DebugReportCallback.cpp
ComicSansMS/GhulbusVulkan
b24ffb892a7573c957aed443a3fbd7ec281556e7
[ "MIT" ]
null
null
null
src/DebugReportCallback.cpp
ComicSansMS/GhulbusVulkan
b24ffb892a7573c957aed443a3fbd7ec281556e7
[ "MIT" ]
null
null
null
#include <gbVk/DebugReportCallback.hpp> #include <gbVk/Exceptions.hpp> #include <gbVk/Instance.hpp> namespace GHULBUS_VULKAN_NAMESPACE { DebugReportCallback::DebugReportCallback(Instance& instance, VkDebugReportFlagsEXT flags) :m_debugReportCallback(nullptr), m_instance(instance.getVkInstance()) { m_vkCreateD...
48.598291
117
0.780162
[ "object" ]
a175f5836450af521a90bdf857f27c47eaa95ecc
3,976
cc
C++
Engine/app/guifeature/androidguiinputhandler.cc
BikkyS/DreamEngine
47da4e22c65188c72f44591f6a96505d8ba5f5f3
[ "MIT" ]
26
2015-01-15T12:57:40.000Z
2022-02-16T10:07:12.000Z
Engine/app/guifeature/androidguiinputhandler.cc
BikkyS/DreamEngine
47da4e22c65188c72f44591f6a96505d8ba5f5f3
[ "MIT" ]
null
null
null
Engine/app/guifeature/androidguiinputhandler.cc
BikkyS/DreamEngine
47da4e22c65188c72f44591f6a96505d8ba5f5f3
[ "MIT" ]
17
2015-02-18T07:51:31.000Z
2020-06-01T01:10:12.000Z
/**************************************************************************** Copyright (c) 2011-2013,WebJet Business Division,CYOU http://www.genesis-3d.com.cn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal i...
30.584615
99
0.624748
[ "3d" ]
a176443fa480a5a1da32fa47b85d0d9773905390
535
cpp
C++
chapters/11/ch11.cpp
tmdefreitas/cpp4e
1e034bb0fa849903b6a2efe31e7817ebd6f5173e
[ "MIT" ]
null
null
null
chapters/11/ch11.cpp
tmdefreitas/cpp4e
1e034bb0fa849903b6a2efe31e7817ebd6f5173e
[ "MIT" ]
null
null
null
chapters/11/ch11.cpp
tmdefreitas/cpp4e
1e034bb0fa849903b6a2efe31e7817ebd6f5173e
[ "MIT" ]
null
null
null
// Ch. 11 - Select Operations //11.2 Free Store // free store == the heap == dynamic memory //C++ implementation does not guarantee the presence of a garbace collector //Good strategy to avoid "naked new" //Can overload new operator to allocate space other than the free store. //Use nothrow in this overload to avoid ...
28.157895
82
0.691589
[ "vector" ]
a17946b70fdeea84ceb09c18ec9274e467d30109
6,644
cpp
C++
ds/security/gina/samples/gptdemo/gptdemo.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
ds/security/gina/samples/gptdemo/gptdemo.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
ds/security/gina/samples/gptdemo/gptdemo.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
#include "main.h" #include <initguid.h> #include <gptdemo.h> #include <gpedit.h> // // Global variables for this DLL // LONG g_cRefThisDll = 0; HINSTANCE g_hInstance; ///////////////////////////////////////////////////////////////////////////// // DLL Entry Point extern "C" BOOL WINAPI DllMain(H...
29.0131
105
0.559452
[ "object" ]
a1796ce11a8b7d00613426093f4e4d0ed52bfbc5
2,219
hpp
C++
include/bcm-compressor.hpp
waYne1337/tbwt
e6c24549f38e0961b39b42ffb3cf56bd2c747e48
[ "MIT" ]
12
2018-04-06T06:07:18.000Z
2021-03-04T16:10:23.000Z
include/bcm-compressor.hpp
waYne1337/tbwt
e6c24549f38e0961b39b42ffb3cf56bd2c747e48
[ "MIT" ]
1
2018-04-06T14:35:23.000Z
2018-04-06T14:35:23.000Z
include/bcm-compressor.hpp
waYne1337/tbwt
e6c24549f38e0961b39b42ffb3cf56bd2c747e48
[ "MIT" ]
1
2018-05-19T11:56:16.000Z
2018-05-19T11:56:16.000Z
/* * bcm-compressor.hpp for bwt tunneling * Copyright (c) 2017 Uwe Baier All Rights Reserved. * * 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 li...
32.632353
103
0.729157
[ "model", "transform" ]
a17deb6ce8edcd9510736519f05f2c0dc569af11
3,008
cpp
C++
src/loaders/json_game_loader.cpp
dfyx/jumping-cubes-tactics
30a96816ebe698302f3cc0a8d4971f68689508a0
[ "WTFPL" ]
1
2015-08-26T12:12:38.000Z
2015-08-26T12:12:38.000Z
src/loaders/json_game_loader.cpp
dfyx/jumping-cubes-tactics
30a96816ebe698302f3cc0a8d4971f68689508a0
[ "WTFPL" ]
null
null
null
src/loaders/json_game_loader.cpp
dfyx/jumping-cubes-tactics
30a96816ebe698302f3cc0a8d4971f68689508a0
[ "WTFPL" ]
null
null
null
#include "json_game_loader.h" #include "json_game_loader_p.h" #include "../gamedata/game.h" #include "../gamedata/node.h" #include "../gamedata/edge.h" #include "../graphics/node_sprite.h" #include "../graphics/edge_sprite.h" #include <vector> #include <json/json.h> #include <iostream> #include <fstream> namespace JCT...
25.277311
98
0.580452
[ "vector" ]
a182b03caf7f7a8423e36a57260dbd26066027ac
7,396
cpp
C++
level_zero/tools/test/unit_tests/sources/sysman/temperature/windows/test_zes_temperature.cpp
againull/compute-runtime
3ef1ab88a4d9fad5c72e343f349365817c54da17
[ "Intel", "MIT" ]
1
2019-04-25T23:21:01.000Z
2019-04-25T23:21:01.000Z
level_zero/tools/test/unit_tests/sources/sysman/temperature/windows/test_zes_temperature.cpp
ConnectionMaster/compute-runtime
ea373d2664251b10e55aa237555e4ba9221ace0f
[ "Intel", "MIT" ]
null
null
null
level_zero/tools/test/unit_tests/sources/sysman/temperature/windows/test_zes_temperature.cpp
ConnectionMaster/compute-runtime
ea373d2664251b10e55aa237555e4ba9221ace0f
[ "Intel", "MIT" ]
null
null
null
/* * Copyright (C) 2020-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "level_zero/tools/source/sysman/temperature/windows/os_temperature_imp.h" #include "level_zero/tools/test/unit_tests/sources/sysman/temperature/windows/mock_temperature.h" #include "level_zero/tools/test/unit_tests/sourc...
44.554217
160
0.768388
[ "vector" ]
08514af3651fdd95a53f8fc97f8f1607fc07acd0
8,543
cpp
C++
libhail/src/hail/query/backend/compile.cpp
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
null
null
null
libhail/src/hail/query/backend/compile.cpp
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
null
null
null
libhail/src/hail/query/backend/compile.cpp
MariusDanner/hail
5ca0305f8243b5888931b1afaa1fbfb617dee097
[ "MIT" ]
null
null
null
#include <hail/query/backend/compile.hpp> #include <hail/query/backend/svalue.hpp> #include <llvm/IR/Verifier.h> #include <llvm/Support/raw_ostream.h> namespace hail { CompileModule::CompileModule(TypeContext &tc, STypeContext &stc, Module *module, const std::vector<EmitType> &param_types, ...
32.48289
99
0.705724
[ "vector" ]
08556e2b0d2d1f73890d82fd8ecaa33a6b9c47c9
12,331
cpp
C++
JEBString/JEBString/Utf8/Utf8String.cpp
jebreimo/JEBLib
9066403a9372951aa8ce4f129cd4877e2ae779ab
[ "BSD-3-Clause" ]
1
2019-12-25T05:30:20.000Z
2019-12-25T05:30:20.000Z
JEBString/JEBString/Utf8/Utf8String.cpp
jebreimo/JEBLib
9066403a9372951aa8ce4f129cd4877e2ae779ab
[ "BSD-3-Clause" ]
null
null
null
JEBString/JEBString/Utf8/Utf8String.cpp
jebreimo/JEBLib
9066403a9372951aa8ce4f129cd4877e2ae779ab
[ "BSD-3-Clause" ]
null
null
null
#include "Utf8String.hpp" #include "JEBString/JEBStringMacros.hpp" #include "JEBString/EncodedStrings/EncodedString.hpp" #include "JEBString/EncodedStrings/CodePageEncoding.hpp" #include "JEBString/EncodedStrings/Utf8Encoding.hpp" #include "JEBString/RawStrings/EscapedString.hpp" #include "JEBString/Utf16/Utf16...
30.8275
83
0.587544
[ "vector" ]
08580ce57e24070b1aab0397533d40b7b25af6fc
15,274
cpp
C++
Source/SystemQOR/MSWindows/WinQL/System/Devices/Battery/WinQLBattery.cpp
mfaithfull/QOR
0fa51789344da482e8c2726309265d56e7271971
[ "BSL-1.0" ]
9
2016-05-27T01:00:39.000Z
2021-04-01T08:54:46.000Z
Source/SystemQOR/MSWindows/WinQL/System/Devices/Battery/WinQLBattery.cpp
mfaithfull/QOR
0fa51789344da482e8c2726309265d56e7271971
[ "BSL-1.0" ]
1
2016-03-03T22:54:08.000Z
2016-03-03T22:54:08.000Z
Source/SystemQOR/MSWindows/WinQL/System/Devices/Battery/WinQLBattery.cpp
mfaithfull/QOR
0fa51789344da482e8c2726309265d56e7271971
[ "BSL-1.0" ]
4
2016-05-27T01:00:43.000Z
2018-08-19T08:47:49.000Z
//WinQLBattery.cpp // Copyright Querysoft Limited 2013, 2017 // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of the software and accompanying documentation covered by // this license (the "Software") to use, reproduce, display, distribute, // execute, and transmit ...
31.820833
229
0.600629
[ "object" ]
08588a443e7910ec15660d700bef89f13d87e78d
40,851
hpp
C++
libs/pika/schedulers/include/pika/schedulers/queue_holder_thread.hpp
pika-org/pika
c80f542b2432a7f108fcfba31a5fe5073ad2b3e1
[ "BSL-1.0" ]
13
2022-01-17T12:01:48.000Z
2022-03-16T10:03:14.000Z
libs/pika/schedulers/include/pika/schedulers/queue_holder_thread.hpp
pika-org/pika
c80f542b2432a7f108fcfba31a5fe5073ad2b3e1
[ "BSL-1.0" ]
163
2022-01-17T17:36:45.000Z
2022-03-31T17:42:57.000Z
libs/pika/schedulers/include/pika/schedulers/queue_holder_thread.hpp
pika-org/pika
c80f542b2432a7f108fcfba31a5fe5073ad2b3e1
[ "BSL-1.0" ]
4
2022-01-19T08:44:22.000Z
2022-01-31T23:16:21.000Z
// Copyright (c) 2019 John Biddiscombe // // SPDX-License-Identifier: BSL-1.0 // 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) #pragma once #include <pika/config.hpp> #include <pika/assert.hpp> #include <pika/d...
39.431467
85
0.489241
[ "object", "vector" ]
08625331506f2c70572194ab5de3b04d45538790
391
hpp
C++
include/Bomberman/GameBase/RenderGroup.hpp
PoetaKodu/bomberman
339f01e28afea0fde05f2b2c4e8e40a0d878945b
[ "MIT" ]
null
null
null
include/Bomberman/GameBase/RenderGroup.hpp
PoetaKodu/bomberman
339f01e28afea0fde05f2b2c4e8e40a0d878945b
[ "MIT" ]
null
null
null
include/Bomberman/GameBase/RenderGroup.hpp
PoetaKodu/bomberman
339f01e28afea0fde05f2b2c4e8e40a0d878945b
[ "MIT" ]
null
null
null
#pragma once #include <vector> namespace bmb { class Actor; class IRenderable; class RenderGroup { public: using RenderableContainer = std::vector< IRenderable* >; bool addUnique( IRenderable& renderable_ ); RenderableContainer const& getRenderables() const { return _renderab...
15.64
61
0.672634
[ "vector" ]
08672d88833e658e9147a78298b8d69d3bf3aa5c
1,058
hpp
C++
libs/geometry/test/point_concept/function_requiring_a_point.hpp
Ron2014/boost_1_48_0
19673f69677ffcba7c7bd6e08ec07ee3962f161c
[ "BSL-1.0" ]
null
null
null
libs/geometry/test/point_concept/function_requiring_a_point.hpp
Ron2014/boost_1_48_0
19673f69677ffcba7c7bd6e08ec07ee3962f161c
[ "BSL-1.0" ]
null
null
null
libs/geometry/test/point_concept/function_requiring_a_point.hpp
Ron2014/boost_1_48_0
19673f69677ffcba7c7bd6e08ec07ee3962f161c
[ "BSL-1.0" ]
null
null
null
// Boost.Geometry (aka GGL, Generic Geometry Library) Point concept unit tests // // Copyright (c) 2008-2011 Bruno Lalande, Paris, France. // Copyright (c) 2007-2011 Barend Gehrels, Amsterdam, the Netherlands. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See acco...
32.060606
80
0.716446
[ "geometry" ]
0867c3ee655585f12a3b5452d1b2fc3acedefce3
6,479
cpp
C++
private/shell/ext/netplwiz/advanced.cpp
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
11
2017-09-02T11:27:08.000Z
2022-01-02T15:25:24.000Z
private/shell/ext/netplwiz/advanced.cpp
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
null
null
null
private/shell/ext/netplwiz/advanced.cpp
King0987654/windows2000
01f9c2e62c4289194e33244aade34b7d19e7c9b8
[ "MIT" ]
14
2019-01-16T01:01:23.000Z
2022-02-20T15:54:27.000Z
#include "stdafx.h" #include "advanced.h" BOOL CAdvancedDialog::DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch (uMsg) { HANDLE_MSG(hwndDlg, WM_INITDIALOG, OnInitDialog); HANDLE_MSG(hwndDlg, WM_COMMAND, OnCommand); default: break; } ...
33.921466
93
0.617688
[ "object" ]
086a9d2a589b89210dca62c4f3298622b83dfcdc
11,696
inl
C++
modules/SofaBoundaryCondition/AffineMovementConstraint.inl
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
modules/SofaBoundaryCondition/AffineMovementConstraint.inl
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
modules/SofaBoundaryCondition/AffineMovementConstraint.inl
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH * * * ...
34.60355
177
0.660568
[ "mesh", "vector", "transform" ]
086d8d41b06e1381d1a7c669d459444948ed6ba8
754
hpp
C++
od_mstar3/mstar_utils.hpp
ct2034/PRIMAL2
1bd44cba6f674e37e78b893a323d35a348dfb759
[ "MIT" ]
75
2018-10-08T00:53:44.000Z
2021-09-17T12:26:21.000Z
od_mstar3/mstar_utils.hpp
544211707/distributedRL_MAPF
b7ea7a4accdb9593207ae30cc1d79d4c93965865
[ "MIT" ]
8
2020-11-20T07:41:03.000Z
2021-12-14T08:36:42.000Z
od_mstar3/mstar_utils.hpp
544211707/distributedRL_MAPF
b7ea7a4accdb9593207ae30cc1d79d4c93965865
[ "MIT" ]
36
2018-09-28T09:07:56.000Z
2021-09-20T14:10:29.000Z
#ifndef MSTAR_UTILS_H #define MSTAR_UTILS_H /** * Defines convinence functions for testing or other purposes not directly * related to the actual planning */ #include <iostream> #include "mstar_type_defs.hpp" namespace mstar{ void print_od_path(const OdPath &path){ for (const OdCoord &pos: path){ std...
20.944444
77
0.566313
[ "vector" ]
086fabab35a835e13ff973dd716a1d1f3d041c41
5,179
hpp
C++
Forest_Steiner.hpp
d5storm/Steiner-Forest
34f2656c0f2bad230f4c5fff20aca2a93de52bf8
[ "MIT" ]
2
2021-06-02T17:32:49.000Z
2021-11-22T20:17:34.000Z
Forest_Steiner.hpp
d5storm/Steiner-Forest
34f2656c0f2bad230f4c5fff20aca2a93de52bf8
[ "MIT" ]
null
null
null
Forest_Steiner.hpp
d5storm/Steiner-Forest
34f2656c0f2bad230f4c5fff20aca2a93de52bf8
[ "MIT" ]
null
null
null
// // Forest_Steiner.hpp // Steiner_Tree // // Created by sergio junior on 12/11/19. // Copyright © 2019 sergio junior. All rights reserved. // #ifndef Forest_Steiner_hpp #define Forest_Steiner_hpp #include <string> #include <vector> #include <iostream> #include <limits.h> #include <fstream> #include <cstdlib> #in...
30.110465
172
0.640278
[ "vector" ]
0874b4d06df5b2c5390858140ef901ac03bee894
6,606
cpp
C++
kern/drivers/pci/pci.cpp
greck2908/LudOS
db38455eb33dfc0dfc6d4be102e6bd54d852eee8
[ "MIT" ]
44
2018-01-28T20:07:48.000Z
2022-02-11T22:58:49.000Z
kern/drivers/pci/pci.cpp
greck2908/LudOS
db38455eb33dfc0dfc6d4be102e6bd54d852eee8
[ "MIT" ]
2
2017-09-12T15:38:16.000Z
2017-11-05T12:19:01.000Z
kern/drivers/pci/pci.cpp
greck2908/LudOS
db38455eb33dfc0dfc6d4be102e6bd54d852eee8
[ "MIT" ]
8
2018-08-17T13:30:57.000Z
2021-06-25T16:56:12.000Z
/* pci.cpp Copyright (c) 05 Yann BOUCHER (yann) 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, copy, modify, merge, publish, ...
27.07377
105
0.651226
[ "vector" ]
0878f4ed2b7d3c4b7eb193d74f4e267c6e3db79a
2,040
cpp
C++
leetcode.com/0236 Lowest Common Ancestor of a Binary Tree/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2020-08-20T11:02:49.000Z
2020-08-20T11:02:49.000Z
leetcode.com/0236 Lowest Common Ancestor of a Binary Tree/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
null
null
null
leetcode.com/0236 Lowest Common Ancestor of a Binary Tree/main.cpp
sky-bro/AC
29bfa3f13994612887e18065fa6e854b9a29633d
[ "MIT" ]
1
2022-01-01T23:23:13.000Z
2022-01-01T23:23:13.000Z
#include <iostream> #include <vector> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { private: TreeNode *result, *p, *q; // if result != null, we've found our LCA bool _helper(TreeNode *r...
37.090909
106
0.552941
[ "vector" ]
087dd197fc23847ee4a310a78b45b451c3afaf8f
1,929
hpp
C++
stan/math/prim/scal/fun/promote_scalar.hpp
jrmie/math
2850ec262181075a5843968e805dc9ad1654e069
[ "BSD-3-Clause" ]
null
null
null
stan/math/prim/scal/fun/promote_scalar.hpp
jrmie/math
2850ec262181075a5843968e805dc9ad1654e069
[ "BSD-3-Clause" ]
null
null
null
stan/math/prim/scal/fun/promote_scalar.hpp
jrmie/math
2850ec262181075a5843968e805dc9ad1654e069
[ "BSD-3-Clause" ]
null
null
null
#ifndef STAN_MATH_PRIM_SCAL_FUN_PROMOTE_SCALAR_HPP #define STAN_MATH_PRIM_SCAL_FUN_PROMOTE_SCALAR_HPP #include <stan/math/prim/scal/fun/promote_scalar_type.hpp> #include <stan/math/prim/scal/meta/index_type.hpp> namespace stan { namespace math { /** * General struct to hold static function for promoting underlying ...
27.956522
69
0.712805
[ "vector" ]
0881b2020760c05dd514edcf2ce8549c9c77d5c8
1,006
cpp
C++
LeetCode/Others/Matrix/DetermineWhetherMatrixCanBeObtainedByRotation.cpp
a4org/Angorithm4
d2227d36608491bed270375bcea67fbde134209a
[ "MIT" ]
3
2021-07-26T15:58:45.000Z
2021-09-08T14:55:11.000Z
LeetCode/Others/Matrix/DetermineWhetherMatrixCanBeObtainedByRotation.cpp
a4org/Angorithm4
d2227d36608491bed270375bcea67fbde134209a
[ "MIT" ]
null
null
null
LeetCode/Others/Matrix/DetermineWhetherMatrixCanBeObtainedByRotation.cpp
a4org/Angorithm4
d2227d36608491bed270375bcea67fbde134209a
[ "MIT" ]
2
2021-05-31T11:27:59.000Z
2021-10-03T13:26:00.000Z
/* * LeetCode 1886 Determine Whether Matrix Can Be Obtained By Rotation * Easy * Jiawei Wang * 2021 10.4 */ #include <vector> using namespace::std; class Solution { public: bool findRotation(vector<vector<int>>& mat, vector<vector<int>>& target) { for (int i = 0; i < 4; i++) { rotate(mat); if (ma...
19.346154
78
0.578529
[ "vector" ]
0885160082731e7153ef2c2895b62908c35e69c8
5,928
cpp
C++
flashlight/fl/dataset/Utils.cpp
imaginary-person/flashlight
30d45c1c8c0fbe335a2a9d1e4bab57847316b157
[ "BSD-3-Clause" ]
1
2021-09-29T06:24:41.000Z
2021-09-29T06:24:41.000Z
flashlight/fl/dataset/Utils.cpp
pkassotis/flashlight
1061e1727c77fac644713047be4c2fb95c02fd55
[ "BSD-3-Clause" ]
5
2021-06-20T23:58:27.000Z
2021-07-09T17:45:07.000Z
flashlight/fl/dataset/Utils.cpp
pkassotis/flashlight
1061e1727c77fac644713047be4c2fb95c02fd55
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "flashlight/fl/dataset/Utils.h" #include <algorithm> #include <stdexcept> namespace fl { std::vector<int64_t> par...
32.751381
99
0.652834
[ "vector" ]
088772bcba7c70ed242ff1f18513f38fee48807a
50,752
cc
C++
src/nnet3/nnet-example-utils.cc
zhuhuifeng/kaldi-zhf
8986d408fc51d0d804a064d3d0d450624f6a583c
[ "Apache-2.0" ]
5
2017-08-02T17:19:16.000Z
2019-05-13T05:03:24.000Z
src/nnet3/nnet-example-utils.cc
aashishyadavally/Working-with-Kaldi
38530efb23fc0f57a1d139d27b797be93ecb41b2
[ "Apache-2.0" ]
2
2015-11-11T14:51:47.000Z
2018-02-07T21:27:36.000Z
src/nnet3/nnet-example-utils.cc
aashishyadavally/Working-with-Kaldi
38530efb23fc0f57a1d139d27b797be93ecb41b2
[ "Apache-2.0" ]
2
2020-06-24T08:11:31.000Z
2021-11-30T13:10:11.000Z
// nnet3/nnet-example-utils.cc // Copyright 2012-2015 Johns Hopkins University (author: Daniel Povey) // 2014 Vimal Manohar // See ../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except i...
40.375497
92
0.630655
[ "vector" ]
0887feaf6b53def0b905d79ec70ab745798a06fd
20,666
hpp
C++
applications/SolidMechanicsApplication/custom_solvers/time_integration_methods/bdf_method.hpp
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/SolidMechanicsApplication/custom_solvers/time_integration_methods/bdf_method.hpp
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/SolidMechanicsApplication/custom_solvers/time_integration_methods/bdf_method.hpp
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
// // Project Name: KratosSolidMechanicsApplication $ // Created by: $Author: JMCarbonell $ // Last modified by: $Co-Author: $ // Date: $Date: April 2018 $ // Revision: $Revision: 0.0 $ // // #if !defin...
31.696319
240
0.643956
[ "object", "vector", "model" ]
088c64c12dbdf169de34b889069f0b7ce53d155c
6,827
cpp
C++
TemplePlus/InfinityEngine.cpp
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
69
2015-05-05T14:09:25.000Z
2022-02-15T06:13:04.000Z
TemplePlus/InfinityEngine.cpp
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
457
2015-05-01T22:07:45.000Z
2022-03-31T02:19:10.000Z
TemplePlus/InfinityEngine.cpp
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
25
2016-02-04T21:19:53.000Z
2021-11-15T23:14:51.000Z
#include "stdafx.h" #include "InfinityEngine.h" #include "zlib.h" #include <map> #include <tio/tio.h> InfiniData ieData; void InfiniData::ReadChitin(){ // read header auto chitin_file = tio_fopen("chitin.key", "rb"); if (chitin_file == nullptr) return; tio_fread(&keyHeader, sizeof(ChitinKeyHeader), 1, chitin...
25.285185
120
0.698989
[ "vector" ]
088d047ae291270d650013c9b945a55299554915
3,392
cpp
C++
3rdParty/boost/1.71.0/libs/convert/test/has_member.cpp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
12,278
2015-01-29T17:11:33.000Z
2022-03-31T21:12:00.000Z
3rdParty/boost/1.71.0/libs/convert/test/has_member.cpp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
9,469
2015-01-30T05:33:07.000Z
2022-03-31T16:17:21.000Z
3rdParty/boost/1.71.0/libs/convert/test/has_member.cpp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
1,343
2017-12-08T19:47:19.000Z
2022-03-26T11:31:36.000Z
// Boost.Convert test and usage example // Copyright (c) 2009-2016 Vladimir Batov. // Use, modification and distribution are subject to the Boost Software License, // Version 1.0. See http://www.boost.org/LICENSE_1_0.txt. #include "./test.hpp" #if defined(BOOST_CONVERT_IS_NOT_SUPPORTED) int main(int, char const* []) ...
32.304762
92
0.642983
[ "vector" ]
08903e5b5472e6f49849b7fb6fd315f5d35fe689
1,936
cpp
C++
CodeForces/501B_Misha_and_changing_handles.cpp
ASM-ATIKUR/Competitive_Programming_Atikur_Rahman
9552e4dca7daad5c07542514d4b8c8baabea1989
[ "MIT" ]
null
null
null
CodeForces/501B_Misha_and_changing_handles.cpp
ASM-ATIKUR/Competitive_Programming_Atikur_Rahman
9552e4dca7daad5c07542514d4b8c8baabea1989
[ "MIT" ]
null
null
null
CodeForces/501B_Misha_and_changing_handles.cpp
ASM-ATIKUR/Competitive_Programming_Atikur_Rahman
9552e4dca7daad5c07542514d4b8c8baabea1989
[ "MIT" ]
null
null
null
/*** ** A S M Atikur Rahman ** Update: 27-10-2019 ***/ #include <bits/stdc++.h> #define sci(x) scanf("%d", &(x)) #define scll(x) scanf("%lld", &(x)) #define scd(x) scanf("%lf", &(x)) #define scstr(x) scanf("%s", x) #define pfi(x) printf("%d", (x)) #define pfll(x) printf("%lld", (x)) #define pfd(x) printf("%f",...
17.761468
60
0.492252
[ "vector" ]
089232a4498f1a136f834731fc7e92cf9474298f
534
cpp
C++
src/util.cpp
BrunodaSilvaBelo/UltimaCompiler
2120aae040e4d39b3c79fbc5931041ffbcd9bef5
[ "MIT" ]
null
null
null
src/util.cpp
BrunodaSilvaBelo/UltimaCompiler
2120aae040e4d39b3c79fbc5931041ffbcd9bef5
[ "MIT" ]
1
2021-04-12T13:38:27.000Z
2021-04-12T13:38:41.000Z
src/util.cpp
BrunodaSilvaBelo/UltimaCompiler
2120aae040e4d39b3c79fbc5931041ffbcd9bef5
[ "MIT" ]
null
null
null
#include "util.h" #include "token.h" #include <map> #include <utility> std::string uc::show_token_to_alcino(std::vector<Token> const& container) { std::map<unsigned, std::map<unsigned, std::string>> m_map; for (auto& token : container) { auto position = token.get_position(); m_map...
22.25
75
0.578652
[ "vector" ]
08938942748433e45ecade5774609c0b1b1c888d
7,541
cpp
C++
src/writer/verilog/verilog_writer.cpp
robtaylor/iroha
e7713910ee64ca98f999b98b0c77c02fcfe2da09
[ "BSD-3-Clause" ]
34
2016-02-07T17:43:55.000Z
2021-12-18T12:01:08.000Z
src/writer/verilog/verilog_writer.cpp
robtaylor/iroha
e7713910ee64ca98f999b98b0c77c02fcfe2da09
[ "BSD-3-Clause" ]
5
2016-04-12T09:27:31.000Z
2021-06-29T10:59:18.000Z
src/writer/verilog/verilog_writer.cpp
robtaylor/iroha
e7713910ee64ca98f999b98b0c77c02fcfe2da09
[ "BSD-3-Clause" ]
5
2015-12-26T10:58:46.000Z
2021-06-25T18:58:40.000Z
#include "writer/verilog/verilog_writer.h" #include "design/design_util.h" #include "iroha/i_design.h" #include "iroha/logging.h" #include "iroha/resource_params.h" #include "iroha/stl_util.h" #include "writer/names.h" #include "writer/verilog/embedded_modules.h" #include "writer/verilog/indent.h" #include "writer/ver...
31.161157
78
0.629757
[ "vector" ]
089a1389cc4abbde68f69705cb6e08ddbeed0915
776
hpp
C++
src/CS2D/Model/Map.hpp
requizm/cs2d_vscode
ff623c0d91a12f690bd0eb4f7ca8cd4130b7a794
[ "MIT" ]
4
2021-02-17T16:52:28.000Z
2022-03-09T15:12:03.000Z
src/CS2D/Model/Map.hpp
requizm/cs2d_vscode
ff623c0d91a12f690bd0eb4f7ca8cd4130b7a794
[ "MIT" ]
10
2021-02-01T13:49:55.000Z
2022-03-06T17:40:42.000Z
src/CS2D/Model/Map.hpp
requizm/cs2d_vscode
ff623c0d91a12f690bd0eb4f7ca8cd4130b7a794
[ "MIT" ]
1
2021-02-01T13:21:37.000Z
2021-02-01T13:21:37.000Z
#ifndef MAP_H #define MAP_H #include <GL/glew.h> #include <cmath> // pow() #include <string> #include <vector> #include "../../Core/Renderer/SpriteRenderer.hpp" #include "Tile.hpp" #include "Weapon.hpp" class Map { public: std::vector<Tile *> tiles; std::vector<Weapon *> weapons; Map() = default; ...
18.046512
58
0.645619
[ "vector" ]
08a8920503eb95987e37a7b48d08cf0e8d146761
33,827
cpp
C++
packages/monte_carlo/collision/photon/test/tstAdjointPhotoatom.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
10
2019-11-14T19:58:30.000Z
2021-04-04T17:44:09.000Z
packages/monte_carlo/collision/photon/test/tstAdjointPhotoatom.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
43
2020-03-03T19:59:20.000Z
2021-09-08T03:36:08.000Z
packages/monte_carlo/collision/photon/test/tstAdjointPhotoatom.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
6
2020-02-12T17:37:07.000Z
2020-09-08T18:59:51.000Z
//---------------------------------------------------------------------------// //! //! \file tstAdjointPhotoatom.cpp //! \author Alex Robinson //! \brief Adjoint photoatom unit tests //! //---------------------------------------------------------------------------// // Std Lib Includes #include <iostream> // FREN...
39.016148
128
0.650752
[ "vector" ]
08a9a1ed04bef4d43c06cf0be496c0574ef98260
12,303
cc
C++
mars-master4/mars/comm/socket/local_ipstack.cc
zhudong10/MarsLogFrame
1c5d0161a4dbf06f60ef6910256e8950a0e2d75e
[ "MIT" ]
17
2017-09-06T01:30:26.000Z
2022-02-10T09:43:35.000Z
mars-master4/mars/comm/socket/local_ipstack.cc
zhudong10/MarsLogFrame
1c5d0161a4dbf06f60ef6910256e8950a0e2d75e
[ "MIT" ]
null
null
null
mars-master4/mars/comm/socket/local_ipstack.cc
zhudong10/MarsLogFrame
1c5d0161a4dbf06f60ef6910256e8950a0e2d75e
[ "MIT" ]
5
2018-02-05T08:48:55.000Z
2021-02-08T08:04:27.000Z
// Tencent is pleased to support the open source community by making Mars available. // Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. // Licensed under the MIT License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the Licens...
35.455331
137
0.653337
[ "vector" ]
08ab325eac3f2bdfee85e9c192c79862b1c92a20
701
hh
C++
transformations/linalg/Transpose.hh
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
5
2019-10-14T01:06:57.000Z
2021-02-02T16:33:06.000Z
transformations/linalg/Transpose.hh
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
transformations/linalg/Transpose.hh
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
#include "GNAObject.hh" class Transpose: public GNAObject, public TransformationBind<Transpose> { public: Transpose() { transformation_("transpose") .input("mat") .output("T") .types([](Transpose* obj, TypesFunctionArgs& fargs){ ...
35.05
110
0.473609
[ "shape" ]
08b28277578ac0e9d21329c065a75eb21e5b3dec
28,230
cpp
C++
test/quaternions/QuaternionTest.cpp
mcx/kindr
761303a6d82780b3e476473ba66a0c2abc623179
[ "BSD-3-Clause" ]
289
2018-08-06T15:57:18.000Z
2022-03-31T06:52:43.000Z
test/quaternions/QuaternionTest.cpp
mcx/kindr
761303a6d82780b3e476473ba66a0c2abc623179
[ "BSD-3-Clause" ]
15
2018-08-22T09:58:25.000Z
2021-03-26T06:32:14.000Z
test/quaternions/QuaternionTest.cpp
mcx/kindr
761303a6d82780b3e476473ba66a0c2abc623179
[ "BSD-3-Clause" ]
106
2018-08-24T08:39:49.000Z
2022-02-28T15:17:37.000Z
/* * Copyright (c) 2013, Christian Gehring, Hannes Sommer, Paul Furgale, Remo Diethelm * 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...
43.69969
150
0.754269
[ "vector" ]
08baf014759f5a8fc39e7bcc5ee0ba76b6bf2541
8,295
cpp
C++
lib/binding/darwin/cpu_meter/process.cpp
Time1ess/StatsGenius
9f6e83d7b6b18aa6ea77b5f795e3473f23530648
[ "MIT" ]
null
null
null
lib/binding/darwin/cpu_meter/process.cpp
Time1ess/StatsGenius
9f6e83d7b6b18aa6ea77b5f795e3473f23530648
[ "MIT" ]
null
null
null
lib/binding/darwin/cpu_meter/process.cpp
Time1ess/StatsGenius
9f6e83d7b6b18aa6ea77b5f795e3473f23530648
[ "MIT" ]
null
null
null
#include <ctime> #include <fstream> #include <iostream> #include <regex> #include <algorithm> #include <stdexcept> #include <unordered_map> #include <unordered_set> #include "process.hpp" namespace { static size_t MaxArgumentLength = 0; // Manually set. size_t GetMaxArgumentLength() { static const size_t MAX_ARG...
29.414894
80
0.653647
[ "object", "vector" ]
08c29eddd1fe2c9df7c51f6115af6e14ae0c118b
39,538
cpp
C++
admin/snapin/certmgr/saferentry.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
admin/snapin/certmgr/saferentry.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
admin/snapin/certmgr/saferentry.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
//+--------------------------------------------------------------------------- ///////////////////////////////////////////////////////////////////////////////// // // Microsoft Windows // Copyright (C) Microsoft Corporation, 2000-2002. // // File: SaferEntry.cpp // // Contents: Implementation of CSa...
33.678024
148
0.492387
[ "object" ]
08c4af0e1b1c61e125d4cdf8f49e83ce41a11795
32,592
cc
C++
tools/fidlcat/lib/syscall_decoder_dispatcher.cc
dahlia-os/fuchsia-pine64-pinephone
57aace6f0b0bd75306426c98ab9eb3ff4524a61d
[ "BSD-3-Clause" ]
10
2020-12-28T17:04:44.000Z
2022-03-12T03:20:43.000Z
tools/fidlcat/lib/syscall_decoder_dispatcher.cc
dahlia-os/fuchsia-pine64-pinephone
57aace6f0b0bd75306426c98ab9eb3ff4524a61d
[ "BSD-3-Clause" ]
1
2022-01-14T23:38:40.000Z
2022-01-14T23:38:40.000Z
tools/fidlcat/lib/syscall_decoder_dispatcher.cc
dahliaOS/fuchsia-pine64-pinephone
57aace6f0b0bd75306426c98ab9eb3ff4524a61d
[ "BSD-3-Clause" ]
4
2020-12-28T17:04:45.000Z
2022-03-12T03:20:44.000Z
// Copyright 2019 The Fuchsia 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 "tools/fidlcat/lib/syscall_decoder_dispatcher.h" #include <zircon/system/public/zircon/errors.h> #include <zircon/system/public/zircon/types.h> ...
40.386617
100
0.666697
[ "vector" ]
08c61481c40b6e225cfbbd68304bb088366257aa
1,985
cpp
C++
Elven/src/Elven/Core/Application.cpp
kryvytskyidenys/ElvenEngine
a9505df0df0bb85e8885e0a92452ce56028ec4b7
[ "Apache-2.0" ]
1
2021-01-18T12:49:28.000Z
2021-01-18T12:49:28.000Z
Elven/src/Elven/Core/Application.cpp
kryvytskyidenys/ElvenEngine
a9505df0df0bb85e8885e0a92452ce56028ec4b7
[ "Apache-2.0" ]
12
2021-04-10T10:29:53.000Z
2022-03-23T16:29:10.000Z
Elven/src/Elven/Core/Application.cpp
kryvytskyidenys/ElvenEngine
a9505df0df0bb85e8885e0a92452ce56028ec4b7
[ "Apache-2.0" ]
null
null
null
#include "elpch.h" #include "Elven/Core/Application.h" #include "Elven/Core/Input.h" #include "Elven/Renderer/Renderer.h" namespace Elven { Ref<VertexArray> VA; Application* Application::s_Instance = nullptr; Application::Application() : m_Running(true) { EL_CORE_ASSERT(!s_Instance,...
22.303371
92
0.55063
[ "render" ]
c0a347c1502d1b85291cdc8e1a1f525bc9007796
2,324
hpp
C++
shared/socket_utils.hpp
raygoe/nsp-asio
eccf6bce80f21aaf3c2b9cff45f4b225bec180bc
[ "MIT" ]
null
null
null
shared/socket_utils.hpp
raygoe/nsp-asio
eccf6bce80f21aaf3c2b9cff45f4b225bec180bc
[ "MIT" ]
null
null
null
shared/socket_utils.hpp
raygoe/nsp-asio
eccf6bce80f21aaf3c2b9cff45f4b225bec180bc
[ "MIT" ]
null
null
null
#ifndef SHARED_SOCKET_UTILS_HPP #define SHARED_SOCKET_UTILS_HPP #include <socket_types.hpp> #include <algorithm> //! Static object for several different utilities. class SocketUtils { public: //! Checks if the given connection handshake demonstrates little endianness. /*! * \param connection_handshake&...
30.578947
100
0.682874
[ "object" ]
c0a751efeedac5bef86cd8407f19eb1944951fc3
3,904
cpp
C++
build/android/jni/StarCatcherNative.cpp
JeremyCBrooks/StarGlider
90c12698dbdee754434aab8b1287d9f9b9baf904
[ "MIT" ]
1
2016-01-27T06:25:21.000Z
2016-01-27T06:25:21.000Z
build/android/jni/StarCatcherNative.cpp
JeremyCBrooks/StarGlider
90c12698dbdee754434aab8b1287d9f9b9baf904
[ "MIT" ]
null
null
null
build/android/jni/StarCatcherNative.cpp
JeremyCBrooks/StarGlider
90c12698dbdee754434aab8b1287d9f9b9baf904
[ "MIT" ]
null
null
null
#include <jni.h> #include <jniUtils.h> #include "StarCatcherApplication.h" #include "PlatformAndroid.h" extern "C" { jint JNI_OnLoad(JavaVM* vm, void* reserved) { JNIEnv* env; LOGD("Loading external library and passing jvm"); if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_...
27.111111
139
0.668801
[ "object" ]
c0aad35cd105235e983c08e1e4ee387ca1c8265f
139,208
cpp
C++
generated/nirfsa/nirfsa_service.cpp
vvacharya/grpc-device
22326f69b83d774457c0f5409b71ce7fc66002f6
[ "MIT" ]
null
null
null
generated/nirfsa/nirfsa_service.cpp
vvacharya/grpc-device
22326f69b83d774457c0f5409b71ce7fc66002f6
[ "MIT" ]
null
null
null
generated/nirfsa/nirfsa_service.cpp
vvacharya/grpc-device
22326f69b83d774457c0f5409b71ce7fc66002f6
[ "MIT" ]
null
null
null
//--------------------------------------------------------------------- // This file is automatically generated. All manual edits will be lost. //--------------------------------------------------------------------- // Service implementation for the NI-RFSA Metadata //--------------------------------------------------...
45.522564
243
0.608435
[ "vector" ]
c0abecf6df4b27182c916cf7b066dab1cd64b132
1,154
cpp
C++
#1126 Eulerian Path.cpp
ZachVec/PAT-Advanced
52ba5989c095ddbee3c297e82a4b3d0d2e0cd449
[ "MIT" ]
1
2021-12-26T08:34:47.000Z
2021-12-26T08:34:47.000Z
#1126 Eulerian Path.cpp
ZachVec/PAT-Advanced
52ba5989c095ddbee3c297e82a4b3d0d2e0cd449
[ "MIT" ]
null
null
null
#1126 Eulerian Path.cpp
ZachVec/PAT-Advanced
52ba5989c095ddbee3c297e82a4b3d0d2e0cd449
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; size_t DFSTrav(const vector<vector<size_t>> &graph, const size_t &src){ vector<bool> visit(graph.size(), false); auto DFS = [&graph, &visit](const size_t &src, const auto &DFS_ref) -> size_t { if(visit[src]) return 0; size_t cnt = 1; vis...
32.971429
83
0.555459
[ "vector" ]
c0b0dca6fe9ba4e8594797da9cf2939658c7d1b2
8,630
cpp
C++
src/jit/impl/mlir/compiler.cpp
Olalaye/MegEngine
695d24f24517536e6544b07936d189dbc031bbce
[ "Apache-2.0" ]
5,168
2020-03-19T06:10:04.000Z
2022-03-31T11:11:54.000Z
src/jit/impl/mlir/compiler.cpp
Olalaye/MegEngine
695d24f24517536e6544b07936d189dbc031bbce
[ "Apache-2.0" ]
286
2020-03-25T01:36:23.000Z
2022-03-31T10:26:33.000Z
src/jit/impl/mlir/compiler.cpp
Olalaye/MegEngine
695d24f24517536e6544b07936d189dbc031bbce
[ "Apache-2.0" ]
515
2020-03-19T06:10:05.000Z
2022-03-30T09:15:59.000Z
/** * \file src/jit/impl/mlir/compiler.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS...
33.843137
87
0.649247
[ "vector" ]
c0b2beeb856f7c30676ed1b35e25db31d176576a
6,365
cpp
C++
isis/src/newhorizons/objs/NewHorizonsMvicFrameCamera/NewHorizonsMvicFrameCamera.cpp
kdl222/ISIS3
aab0e63088046690e6c031881825596c1c2cc380
[ "CC0-1.0" ]
134
2018-01-18T00:16:24.000Z
2022-03-24T03:53:33.000Z
isis/src/newhorizons/objs/NewHorizonsMvicFrameCamera/NewHorizonsMvicFrameCamera.cpp
kdl222/ISIS3
aab0e63088046690e6c031881825596c1c2cc380
[ "CC0-1.0" ]
3,825
2017-12-11T21:27:34.000Z
2022-03-31T21:45:20.000Z
isis/src/newhorizons/objs/NewHorizonsMvicFrameCamera/NewHorizonsMvicFrameCamera.cpp
jlaura/isis3
2c40e08caed09968ea01d5a767a676172ad20080
[ "CC0-1.0" ]
164
2017-11-30T21:15:44.000Z
2022-03-23T10:22:29.000Z
/** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top level of this repository. **/ /* SPDX-License-Identifier: CC0-1.0...
35.758427
111
0.701021
[ "object", "vector", "model" ]
c0b79c03a94b511260303e955c5603bbd019327b
875
cpp
C++
ACM-ICPC Official/Qualification/NEERC, Southern Subregional/B.cpp
lxdlam/ACM
cde519ef9732ff9e4e9e3f53c00fb30d07bdb306
[ "MIT" ]
1
2017-10-25T13:33:27.000Z
2017-10-25T13:33:27.000Z
ACM-ICPC Official/Qualification/NEERC, Southern Subregional/B.cpp
lxdlam/ACM
cde519ef9732ff9e4e9e3f53c00fb30d07bdb306
[ "MIT" ]
null
null
null
ACM-ICPC Official/Qualification/NEERC, Southern Subregional/B.cpp
lxdlam/ACM
cde519ef9732ff9e4e9e3f53c00fb30d07bdb306
[ "MIT" ]
1
2021-05-05T01:16:28.000Z
2021-05-05T01:16:28.000Z
#include <iostream> #include <vector> using namespace std; const int SIZE = 2e5 + 10; vector<int> res[SIZE]; int big[SIZE] = {0}; int bs(int len, int k) { if (len <= 0 || big[len - 1] > k) return -1; int res = 0, l = 0, r = len - 1; int m; while (l <= r) { m = l + (r - l) / 2; if (big[m] < k) { ...
17.156863
46
0.446857
[ "vector" ]
c0b86fbb7b4ebbd08688492c751c2635bc90ba23
4,011
cpp
C++
BATS/code/BTHAIModule/Source/MedicAgent.cpp
Senth/bats
51d4ec39f3a118ed0eb90ec27a1864c0ceef3898
[ "Apache-2.0" ]
null
null
null
BATS/code/BTHAIModule/Source/MedicAgent.cpp
Senth/bats
51d4ec39f3a118ed0eb90ec27a1864c0ceef3898
[ "Apache-2.0" ]
null
null
null
BATS/code/BTHAIModule/Source/MedicAgent.cpp
Senth/bats
51d4ec39f3a118ed0eb90ec27a1864c0ceef3898
[ "Apache-2.0" ]
null
null
null
#include "MedicAgent.h" #include "PFManager.h" #include "AgentManager.h" #include "Utilities/Logger.h" #include "BATSModule/include/Config.h" #include "BATSModule/include/SquadManager.h" #include "BATSModule/include/Helper.h" #include "BATSModule/include/Squad.h" #include "BatsModule/include/UnitManager.h" using names...
26.215686
122
0.662678
[ "vector" ]
c0c94c62614b4c1f4f400d1ff1da99bdd3e990dc
5,692
cc
C++
components/viz/service/display/delegated_ink_point_renderer_skia.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
components/viz/service/display/delegated_ink_point_renderer_skia.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
components/viz/service/display/delegated_ink_point_renderer_skia.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-03-07T14:20:02.000Z
2021-03-07T14:20:02.000Z
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/viz/service/display/delegated_ink_point_renderer_skia.h" #include "base/metrics/histogram_macros.h" #include "base/trace_event/trace...
34.707317
80
0.727161
[ "geometry", "vector" ]
c0cbea86732cad44c1e75e631fa63e216d79e97d
1,339
cpp
C++
Modules/Core/src/DataManagement/mitkGeometry3D.cpp
liu3xing3long/MITK-2016.11
385c506f9792414f40337e106e13d5fd61aa3ccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Modules/Core/src/DataManagement/mitkGeometry3D.cpp
liu3xing3long/MITK-2016.11
385c506f9792414f40337e106e13d5fd61aa3ccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Modules/Core/src/DataManagement/mitkGeometry3D.cpp
liu3xing3long/MITK-2016.11
385c506f9792414f40337e106e13d5fd61aa3ccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied w...
27.326531
79
0.67289
[ "geometry" ]
c0d4b15b94ef8c609088b2f06b499e03b0f4edd2
1,303
cpp
C++
Cpp/Codes/Practice/LeetCode/413 Arithmetic Slices.cpp
QuincyWork/AllCodes
59fe045608dda924cb993dde957da4daff769438
[ "MIT" ]
null
null
null
Cpp/Codes/Practice/LeetCode/413 Arithmetic Slices.cpp
QuincyWork/AllCodes
59fe045608dda924cb993dde957da4daff769438
[ "MIT" ]
null
null
null
Cpp/Codes/Practice/LeetCode/413 Arithmetic Slices.cpp
QuincyWork/AllCodes
59fe045608dda924cb993dde957da4daff769438
[ "MIT" ]
1
2019-04-01T10:30:03.000Z
2019-04-01T10:30:03.000Z
#include <gtest\gtest.h> using namespace std; bool isArithmeticSlice(vector<int>& A, int begin, int end) { if (end - begin < 2) return false; int delta = A[begin] - A[begin + 1]; for (int i = begin + 1; i < end; ++i) { if ((A[begin] - A[begin + 1]) != delta) { return false; } } return true; } int n...
14.010753
58
0.523408
[ "vector" ]
c0d8382f85d5d3c397ff7e43663f8cdb98affb26
6,758
hh
C++
include/sdf/Noise.hh
FirefoxMetzger/sdformat
b25ecbc75f6d54b0f35ceafb0222c8dd544fdbbc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
include/sdf/Noise.hh
FirefoxMetzger/sdformat
b25ecbc75f6d54b0f35ceafb0222c8dd544fdbbc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
include/sdf/Noise.hh
FirefoxMetzger/sdformat
b25ecbc75f6d54b0f35ceafb0222c8dd544fdbbc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/* * Copyright 2019 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 applicab...
39.520468
79
0.690885
[ "object", "vector", "model" ]
c0e08704c79bcdde0cbed6c7d771d2ccdf665699
46,037
cpp
C++
Implementation/iOSIlluminati/lib/SRC/KPM/kpmUtil.cpp
samssonart/gmtThesisAR
14813a2efb2e7fcf0aaf753ca68ab3ed7edcbd2e
[ "MIT" ]
null
null
null
Implementation/iOSIlluminati/lib/SRC/KPM/kpmUtil.cpp
samssonart/gmtThesisAR
14813a2efb2e7fcf0aaf753ca68ab3ed7edcbd2e
[ "MIT" ]
null
null
null
Implementation/iOSIlluminati/lib/SRC/KPM/kpmUtil.cpp
samssonart/gmtThesisAR
14813a2efb2e7fcf0aaf753ca68ab3ed7edcbd2e
[ "MIT" ]
null
null
null
/* * kpmUtil.cpp * ARToolKit5 * * This file is part of ARToolKit. * * ARToolKit 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 3 of the License, or * (at your option) any...
37.581224
183
0.421704
[ "vector", "3d" ]
c0ef13b6ccd67c042387afde8e40b5d16e0bc734
5,584
cpp
C++
third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Source/modules/background_sync/SyncManager.cpp
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "modules/background_sync/SyncManager.h" #include "bindings/core/v8/CallbackPromiseAdapter.h" #include "bindings/core/v8/ScriptPromise.h" #includ...
36.496732
80
0.69914
[ "vector" ]
c0f1e32ff30fe239a33bfc320017e544662ef6de
1,654
cpp
C++
Adhoc Problems/equalise_prices.cpp
moinak878/Data-Structures-and-Algorithms-
75692d39c50e57121f12eb8175aa2de13c13196d
[ "MIT" ]
2
2019-10-20T03:13:35.000Z
2020-06-23T16:23:35.000Z
Adhoc Problems/equalise_prices.cpp
moinak878/Data-Structures-and-Algorithms-
75692d39c50e57121f12eb8175aa2de13c13196d
[ "MIT" ]
2
2019-10-01T16:02:25.000Z
2020-01-30T18:28:38.000Z
Adhoc Problems/equalise_prices.cpp
moinak878/Data-Structures-and-Algorithms-
75692d39c50e57121f12eb8175aa2de13c13196d
[ "MIT" ]
5
2020-01-30T17:08:21.000Z
2020-10-01T13:48:22.000Z
#include<iostream> #include<vector> //#include<bits/stdc++.h> /* using namespace std; long check(vector<long> a,long n,long k,long b){ if(abs(a[0]-b)>k||abs(a[n-1]-b)>k){ return 0; } return 1; } int main(){ long q; long n,k; cin>>q; vector <long> answer; for(long x=1;x<=q;x++...
18.175824
69
0.452237
[ "vector" ]
c0f511f1fd4c8e1bc94cb405c32c424b24c7f62f
6,495
cc
C++
chrome/browser/webshare/chromeos/sharesheet_client_unittest.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
chrome/browser/webshare/chromeos/sharesheet_client_unittest.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
chrome/browser/webshare/chromeos/sharesheet_client_unittest.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/webshare/chromeos/sharesheet_client.h" #include <string> #include <vector> #include "base/bind.h" #include "base/files/file_pat...
37.543353
79
0.712086
[ "vector" ]
c0f717891a7bca6b118af2dbd758eab19cd37560
31,742
cpp
C++
src/libclang/function_parser.cpp
stevencpp/cppast
ab7a9b6627cc9ccc34ed30473957741ed0be00d7
[ "MIT" ]
null
null
null
src/libclang/function_parser.cpp
stevencpp/cppast
ab7a9b6627cc9ccc34ed30473957741ed0be00d7
[ "MIT" ]
null
null
null
src/libclang/function_parser.cpp
stevencpp/cppast
ab7a9b6627cc9ccc34ed30473957741ed0be00d7
[ "MIT" ]
null
null
null
// Copyright (C) 2017-2018 Jonathan Müller <jonathanmueller.dev@gmail.com> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #include <cppast/cpp_function.hpp> #include <cppast/cpp_member_function.hpp> #include "libclang_visitor.hpp" #include "p...
38.475152
100
0.602293
[ "vector" ]
c0f9193c7aa1880bde78499b57e168f7326d4168
4,526
cpp
C++
src/utils/viewer/ObjectPickingHelper.cpp
qureshinomaan/habitat-sim
df2540b658d0444e84bbc7a0c3fb995f8d523b52
[ "MIT" ]
null
null
null
src/utils/viewer/ObjectPickingHelper.cpp
qureshinomaan/habitat-sim
df2540b658d0444e84bbc7a0c3fb995f8d523b52
[ "MIT" ]
null
null
null
src/utils/viewer/ObjectPickingHelper.cpp
qureshinomaan/habitat-sim
df2540b658d0444e84bbc7a0c3fb995f8d523b52
[ "MIT" ]
null
null
null
#include "ObjectPickingHelper.h" #include <Corrade/Containers/StridedArrayView.h> #include <Corrade/Utility/Assert.h> #include <Magnum/GL/Framebuffer.h> #include <Magnum/GL/Renderbuffer.h> #include <Magnum/GL/RenderbufferFormat.h> #include <Magnum/Image.h> #include <Magnum/Magnum.h> #include <Magnum/PixelFormat.h> #inc...
35.637795
80
0.714317
[ "object" ]
c0ff3e993228c658a9375b5c73d1342dd211ed8c
498
cpp
C++
src/events.cpp
lkk7/two-bodies
490f6fdc1cb5dec8c369b459e3d68835431746cb
[ "MIT" ]
null
null
null
src/events.cpp
lkk7/two-bodies
490f6fdc1cb5dec8c369b459e3d68835431746cb
[ "MIT" ]
null
null
null
src/events.cpp
lkk7/two-bodies
490f6fdc1cb5dec8c369b459e3d68835431746cb
[ "MIT" ]
null
null
null
#include "events.hpp" namespace events { /* Object for storing SDL events */ SDL_Event ev; } bool handle_events() { /* Check clicked keys */ while (SDL_PollEvent(&events::ev)) { if (events::ev.type == SDL_QUIT) { return false; } else if (events::ev.type ...
17.172414
57
0.485944
[ "object" ]
8d01da5fef07396422caace3a0ecee2c20779ed9
2,802
cxx
C++
MITK/Modules/MIDAS/Interactions/niftkFilteringStateMachine.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
13
2018-07-28T13:36:38.000Z
2021-11-01T19:17:39.000Z
MITK/Modules/MIDAS/Interactions/niftkFilteringStateMachine.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
null
null
null
MITK/Modules/MIDAS/Interactions/niftkFilteringStateMachine.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...
24.79646
85
0.544254
[ "vector" ]
8d02903f9a6edfb11d8984a1b5124b4b9c44f7de
11,119
cpp
C++
inetsrv/uddi/source/mmc/basesnap.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
inetsrv/uddi/source/mmc/basesnap.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
inetsrv/uddi/source/mmc/basesnap.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
#include <objbase.h> #include <olectl.h> #include <initguid.h> #include "guids.h" #include "basesnap.h" #include "comp.h" #include "compdata.h" #include "about.h" #include "uddi.h" #include <assert.h> LONG UnRegisterServer( const CLSID& clsid ); // // Globals Variables // HINSTANCE g_hinst; BOOL WI...
23.261506
96
0.620469
[ "object" ]
8d05d7fff4553b483e3656503bc976bcd7e55733
977
cpp
C++
problems/210.course-schedule-ii.cpp
bigfishi/leetcode
3e512f2822a742349384a0bdd7954696f5867683
[ "MIT" ]
null
null
null
problems/210.course-schedule-ii.cpp
bigfishi/leetcode
3e512f2822a742349384a0bdd7954696f5867683
[ "MIT" ]
null
null
null
problems/210.course-schedule-ii.cpp
bigfishi/leetcode
3e512f2822a742349384a0bdd7954696f5867683
[ "MIT" ]
null
null
null
// 在207的基础上修改,不要注意的是,如果无法完成拓扑遍历,返回空列表 class Solution { public: vector<int> findOrder(int numCourses, vector<vector<int>>& prerequisites) { vector<vector<int>> graph(numCourses); vector<int> in(numCourses, 0); for (size_t i = 0; i < graph.size(); i++) { for (size_t j = 0; j < numCourses; j++) { graph[...
19.938776
76
0.525077
[ "vector" ]
8d078a1923b5f51b0040d8bab1bbe0d039a21e4e
18,467
cpp
C++
Ipopt-3.12.7/Ipopt/contrib/RInterface/src/IpoptRNLP.cpp
MikeBMW/CarND-MPC-Project
81e6e92de2768dce9fbfd1848de6f4465d468a0e
[ "MIT" ]
9
2020-07-09T06:40:31.000Z
2022-03-28T02:50:21.000Z
third-party/CoinIpopt/Ipopt/contrib/RInterface/src/IpoptRNLP.cpp
WatsonZhouAnda/Cheetah-Software
05e416fb26f968300826f0deb0953be9afb22bfe
[ "MIT" ]
null
null
null
third-party/CoinIpopt/Ipopt/contrib/RInterface/src/IpoptRNLP.cpp
WatsonZhouAnda/Cheetah-Software
05e416fb26f968300826f0deb0953be9afb22bfe
[ "MIT" ]
5
2020-12-01T01:41:12.000Z
2022-01-04T01:21:49.000Z
/* * Copyright (C) 2010 Jelmer Ypma. All Rights Reserved. * This code is published under the Eclipse Public License. * * file: IpoptRNLP.cpp * author: Jelmer Ypma * date: 18 April 2010 * * This file defines a C++ class that derives from Ipopt::TNLP. The class * takes care of interaction between Ipopt and u...
31.247039
241
0.675692
[ "object", "vector" ]
8d0cc4836eff18a3c17c1400db9d12623cf87c02
1,197
cpp
C++
Algorithms/1505.Minimum_Possible_Integer_After_at_Most_K_Adjacent_Swaps_On_Digits.cpp
metehkaya/LeetCode
52f4a1497758c6f996d515ced151e8783ae4d4d2
[ "MIT" ]
2
2020-07-20T06:40:22.000Z
2021-11-20T01:23:26.000Z
Problems/LeetCode/Problems/1505.Minimum_Possible_Integer_After_at_Most_K_Adjacent_Swaps_On_Digits.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
Problems/LeetCode/Problems/1505.Minimum_Possible_Integer_After_at_Most_K_Adjacent_Swaps_On_Digits.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
class Solution { public: void update(int x , int n , int add , vector<int>& tree) { while(x <= n) { tree[x] += add; x += (x&(-x)); } } int query(int x , vector<int>& tree) { int res = 0; while(x) { res += tree[x]; x -= (x&(-x));...
28.5
62
0.314954
[ "vector" ]
8d0f34721fe5146c2ab45874f85b23a0bb13e09d
2,229
cpp
C++
CLRS/Sorting/MaximumAreaofaPieceofCakeAfterHorizontalandVerticalCuts.cpp
ComputerProgrammerStorager/DataStructureAlgorithm
508f7e37898c907ea7ea6ec40749621a2349e93f
[ "MIT" ]
null
null
null
CLRS/Sorting/MaximumAreaofaPieceofCakeAfterHorizontalandVerticalCuts.cpp
ComputerProgrammerStorager/DataStructureAlgorithm
508f7e37898c907ea7ea6ec40749621a2349e93f
[ "MIT" ]
null
null
null
CLRS/Sorting/MaximumAreaofaPieceofCakeAfterHorizontalandVerticalCuts.cpp
ComputerProgrammerStorager/DataStructureAlgorithm
508f7e37898c907ea7ea6ec40749621a2349e93f
[ "MIT" ]
null
null
null
/* You are given a rectangular cake of size h x w and two arrays of integers horizontalCuts and verticalCuts where: horizontalCuts[i] is the distance from the top of the rectangular cake to the ith horizontal cut and similarly, and verticalCuts[j] is the distance from the left of the rectangular cake to the jth vertic...
41.277778
221
0.705249
[ "vector" ]
8d0f9ea41e4ecf3ef60b4d18de1e69bd9aa5b893
1,775
hpp
C++
lkRay/Scene/BVH.hpp
lookeypl/lkRay
c12d87add95f5958d77a8a8a683fc954837b6c60
[ "WTFPL" ]
null
null
null
lkRay/Scene/BVH.hpp
lookeypl/lkRay
c12d87add95f5958d77a8a8a683fc954837b6c60
[ "WTFPL" ]
null
null
null
lkRay/Scene/BVH.hpp
lookeypl/lkRay
c12d87add95f5958d77a8a8a683fc954837b6c60
[ "WTFPL" ]
null
null
null
#pragma once #include "Geometry/AABB.hpp" #include "Renderer/RayCollision.hpp" #include "Containers.hpp" #include <list> #include <functional> namespace lkRay { namespace Scene { struct BVHNode; struct BVHLeafData { uint32_t obj[2]; BVHLeafData() : obj{ UINT32_MAX, UINT32_MAX } { } }; s...
17.75
101
0.651831
[ "geometry", "vector" ]
8d11170b481fae4a913334635c924ffa94526e8e
4,712
cpp
C++
WebKit/Source/WebKit/gtk/webkit/webkitwebplugindatabase.cpp
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
1
2019-06-18T06:52:54.000Z
2019-06-18T06:52:54.000Z
WebKit/Source/WebKit/gtk/webkit/webkitwebplugindatabase.cpp
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
null
null
null
WebKit/Source/WebKit/gtk/webkit/webkitwebplugindatabase.cpp
JavaScriptTesting/LJS
9818dbdb421036569fff93124ac2385d45d01c3a
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2010 Igalia S.L. * * 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 of the License, or (at your option) any later version. * * This libr...
30.797386
146
0.762946
[ "object", "vector" ]
8d1ab66bc0db89d637f4ab5de953d4bd2196996d
1,600
hpp
C++
src/common/utils.hpp
amiller/libsnark
d34b477ed9c0e36f74c78946012658bdecde0c00
[ "MIT" ]
null
null
null
src/common/utils.hpp
amiller/libsnark
d34b477ed9c0e36f74c78946012658bdecde0c00
[ "MIT" ]
null
null
null
src/common/utils.hpp
amiller/libsnark
d34b477ed9c0e36f74c78946012658bdecde0c00
[ "MIT" ]
null
null
null
/** @file ***************************************************************************** Declaration of misc math and serialization utility functions ***************************************************************************** * @author This file is part of libsnark, developed by SCIPR Lab * and co...
26.229508
98
0.61
[ "vector" ]
8d1c7e23e3a9bf3eac086166007860739aa23fda
50,082
cpp
C++
tbb/tbb41_20120718oss/src/test/test_join_node.cpp
glycerine/shore-mt
39f1802ba9588bc9d32d34386ed0193477f7e8d1
[ "Spencer-94", "Spencer-86", "Xnet", "Linux-OpenIB", "Spencer-99", "X11", "CECILL-B" ]
3
2016-07-15T08:22:56.000Z
2019-10-10T02:26:08.000Z
tbb/tbb41_20120718oss/src/test/test_join_node.cpp
glycerine/shore-mt
39f1802ba9588bc9d32d34386ed0193477f7e8d1
[ "Spencer-94", "Spencer-86", "Xnet", "Linux-OpenIB", "Spencer-99", "X11", "CECILL-B" ]
null
null
null
tbb/tbb41_20120718oss/src/test/test_join_node.cpp
glycerine/shore-mt
39f1802ba9588bc9d32d34386ed0193477f7e8d1
[ "Spencer-94", "Spencer-86", "Xnet", "Linux-OpenIB", "Spencer-99", "X11", "CECILL-B" ]
2
2020-12-23T06:49:23.000Z
2021-03-05T07:00:28.000Z
/* Copyright 2005-2012 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundat...
39.905976
150
0.635078
[ "object", "vector" ]
8d1ed745473455038fe2fafba69c51d41f286fea
955
cpp
C++
LeetCode/Algorithms/Easy/RemoveOneElementToMakeTheArrayStrictlyIncreasing.cpp
roshan11160/Competitive-Programming-Solutions
2d9cfe901c23a2b7344c410b7368eb02f7fa6e7e
[ "MIT" ]
40
2020-07-25T19:35:37.000Z
2022-01-28T02:57:02.000Z
LeetCode/Algorithms/Easy/RemoveOneElementToMakeTheArrayStrictlyIncreasing.cpp
afrozchakure/Hackerrank-Problem-Solutions
014155d841e08cb1f7609c23335576dc9b29cef3
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
LeetCode/Algorithms/Easy/RemoveOneElementToMakeTheArrayStrictlyIncreasing.cpp
afrozchakure/Hackerrank-Problem-Solutions
014155d841e08cb1f7609c23335576dc9b29cef3
[ "MIT" ]
24
2020-05-03T08:11:53.000Z
2021-10-04T03:23:20.000Z
class Solution { public: bool canBeIncreasing(vector<int>& nums) { int n = nums.size(); int count = 0; int index = -1; for(int i=1; i<n; i++) { if(nums[i-1] >= nums[i]) { count++; index = i; ...
21.222222
55
0.391623
[ "vector" ]
8d232723d6882fb3f518643726e6986e6e3096f3
1,248
cpp
C++
src/pyper/binding/init_experience_replay.cpp
maichmueller/per
17eddea4d1aa1aac8fb9664f7437ecc1f119dcf5
[ "MIT" ]
null
null
null
src/pyper/binding/init_experience_replay.cpp
maichmueller/per
17eddea4d1aa1aac8fb9664f7437ecc1f119dcf5
[ "MIT" ]
2
2021-12-22T12:14:20.000Z
2021-12-23T21:39:14.000Z
src/pyper/binding/init_experience_replay.cpp
maichmueller/per
17eddea4d1aa1aac8fb9664f7437ecc1f119dcf5
[ "MIT" ]
null
null
null
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include "per/per.hpp" namespace py = pybind11; void init_experience_replay(py::module_& m) { using PyPrioritizedExperience = per::PrioritizedExperience< py::object >; py::class_< PyPrioritizedExperience > pe(m, "PrioritizedExperience"); pe.def( ...
30.439024
100
0.661859
[ "object" ]
8d2614c1dfcb82c3065bf795d97cb49a6f04bf08
1,522
hpp
C++
nucleo_h7_gfx/src/ap/TouchGFX/gui/include/gui/model/Model.hpp
chcbaram/nucleo_h7_boy3
9cf524b04f9a6227fffe24de868c7ca6331317f5
[ "Apache-2.0" ]
6
2020-05-11T11:51:07.000Z
2022-03-17T08:33:59.000Z
nucleo_h7_gfx/src/ap/TouchGFX/gui/include/gui/model/Model.hpp
chcbaram/nucleo_h7_boy3
9cf524b04f9a6227fffe24de868c7ca6331317f5
[ "Apache-2.0" ]
1
2020-11-14T16:53:09.000Z
2020-11-14T16:53:09.000Z
nucleo_h7_gfx/src/ap/TouchGFX/gui/include/gui/model/Model.hpp
chcbaram/nucleo_h7_boy3
9cf524b04f9a6227fffe24de868c7ca6331317f5
[ "Apache-2.0" ]
3
2019-11-15T10:55:03.000Z
2020-07-04T13:39:30.000Z
#ifndef MODEL_HPP #define MODEL_HPP #include <touchgfx/Utils.hpp> class ModelListener; /** * The Model class defines the data model in the model-view-presenter paradigm. * The Model is a singular object used across all presenters. The currently active * presenter will have a pointer to the Model through deriving ...
31.708333
98
0.725361
[ "object", "model" ]
8d348233c181056f7e52d4c949752c0675f63f05
5,277
cpp
C++
Interactive-Visualization/Interactive-Visualization/cloth.cpp
tofhddl9/Interactive-visualization
3d09f344d44e492c024034ed2ad3ccd30da5fed8
[ "Apache-2.0" ]
null
null
null
Interactive-Visualization/Interactive-Visualization/cloth.cpp
tofhddl9/Interactive-visualization
3d09f344d44e492c024034ed2ad3ccd30da5fed8
[ "Apache-2.0" ]
null
null
null
Interactive-Visualization/Interactive-Visualization/cloth.cpp
tofhddl9/Interactive-visualization
3d09f344d44e492c024034ed2ad3ccd30da5fed8
[ "Apache-2.0" ]
null
null
null
#include "cloth.h" void Cloth::MakeCheckImage() { for (int i = 0; i < checkImageHeight; i++) { for (int j = 0; j < checkImageWidth; j++) { int c; if ((((i & 1) == 0) ^ ((j & 1)) == 0)) c = 255; else c = 0; checkImage[i][j][0] = (GLubyte)c; checkImage[i][j][1] = (GLubyte)c; checkImage[i][j...
23.246696
76
0.573053
[ "render" ]
8d38cb8d7ff445d8cab4e3deaa09752b37c1c7f7
659
cpp
C++
914.cpp
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
914.cpp
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
914.cpp
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
/* * @Author: Hata * @Date: 2020-08-03 21:14:55 * @LastEditors: Hata * @LastEditTime: 2020-08-03 21:29:12 * @FilePath: \LeetCode\914.cpp * @Description: https://leetcode-cn.com/problems/x-of-a-kind-in-a-deck-of-cards/ */ #include <bits/stdc++.h> class Solution { int cnt[10000]; public: bool hasGroupsS...
23.535714
81
0.474962
[ "vector" ]
8d3a11a0b49c52fa748c8645d3897274e253db9b
10,595
hxx
C++
main/svtools/inc/svtools/unoevent.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/svtools/inc/svtools/unoevent.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/svtools/inc/svtools/unoevent.hxx
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...
32.5
82
0.718075
[ "object" ]
8d3c404edda4adfcec8c877bbdb6f1f5d29e00fe
1,743
cc
C++
src/Board.cc
chrisboo/sudoku-solver
1053bfb54c8060f32998d4e11b45665837b04b5e
[ "MIT" ]
2
2018-07-08T11:30:52.000Z
2018-07-08T12:37:28.000Z
src/Board.cc
chrisboo/sudoku-solver
1053bfb54c8060f32998d4e11b45665837b04b5e
[ "MIT" ]
null
null
null
src/Board.cc
chrisboo/sudoku-solver
1053bfb54c8060f32998d4e11b45665837b04b5e
[ "MIT" ]
null
null
null
#include "Board.h" Board::Board() : rows_(9, std::vector<uint8_t>(9, 0)), cols_(9, std::vector<uint8_t>(9, 0)), subgrids_(9, std::vector<uint8_t>(9, 0)) {} Board::Board(std::vector<std::vector<uint8_t>> const& rows) : rows_(9, std::vector<uint8_t>(9, 0)), cols_(9, std::vector<uint8_t>(9, 0))...
24.9
86
0.502008
[ "vector" ]
8d3dd75b61063a7ddd28bce520c06555788d1ab9
1,591
cpp
C++
src/IceRay/render/2pierce/projector.cpp
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
2
2020-09-04T12:27:15.000Z
2022-01-17T14:49:40.000Z
src/IceRay/render/2pierce/projector.cpp
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
null
null
null
src/IceRay/render/2pierce/projector.cpp
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
1
2020-09-04T12:27:52.000Z
2020-09-04T12:27:52.000Z
#include "./projector.hpp" #include "../../camera/flat/perspective.hpp" #include "../3sheaf/all.hpp" using namespace GS_DDMRM::S_IceRay::S_render::S_pierce; GC_projector::GC_projector( void ) :M2_camera( nullptr ) ,M2_sheaf ( nullptr ) { Fv_camera( M2_camera ); Fv_sheaf( M2_sheaf ); } ...
22.097222
80
0.648649
[ "vector" ]
8d3fa049d822487dc9223cd50d463f0f886fc822
702
hpp
C++
scenes/animation/ant/project.hpp
Marie-charlotteCalisto/epita_image_animation3d_vcl
ee56033839336c3149b410cfb038e0c28f412e61
[ "MIT" ]
null
null
null
scenes/animation/ant/project.hpp
Marie-charlotteCalisto/epita_image_animation3d_vcl
ee56033839336c3149b410cfb038e0c28f412e61
[ "MIT" ]
null
null
null
scenes/animation/ant/project.hpp
Marie-charlotteCalisto/epita_image_animation3d_vcl
ee56033839336c3149b410cfb038e0c28f412e61
[ "MIT" ]
null
null
null
#pragma once #include "main/scene_base/base.hpp" #include "ant.hpp" #include "utils.hpp" #ifdef SCENE_ANT struct scene_model : scene_base { void setup_data(std::map<std::string,GLuint>& shaders, scene_structure& scene, gui_structure& gui); void frame_draw(std::map<std::string,GLuint>& shaders, scene_struct...
22.645161
103
0.717949
[ "vector" ]
1d33b6a638422bfe3b1f6fb0b7d2ce8819a83af9
29,041
hpp
C++
src/math/eigen_algebra.hpp
eric-heiden/tds-merge
1e18447b0096efbb6df5d9ad7d69c8b0cc282747
[ "Apache-2.0" ]
null
null
null
src/math/eigen_algebra.hpp
eric-heiden/tds-merge
1e18447b0096efbb6df5d9ad7d69c8b0cc282747
[ "Apache-2.0" ]
null
null
null
src/math/eigen_algebra.hpp
eric-heiden/tds-merge
1e18447b0096efbb6df5d9ad7d69c8b0cc282747
[ "Apache-2.0" ]
null
null
null
#pragma once #if USE_STAN #include <stan/math.hpp> #include <stan/math/fwd.hpp> #endif // clang-format off #ifdef USE_CPPAD #include <cppad/cg.hpp> #include "math/cppad/eigen_mat_inv.hpp" #endif //USE_CPPAD // clang-format on #include <Eigen/Core> #include <Eigen/Geometry> #include <iostream> #include "math/condit...
32.85181
80
0.560105
[ "geometry" ]
1d3bc5700f31eac184e4b24f1837f5701268c603
12,882
cpp
C++
src/libSBML/src/sbml/packages/render/sbml/LocalStyle.cpp
copasi/copasi-dependencies
c01dd455c843522375c32c2989aa8675f59bb810
[ "Unlicense" ]
5
2015-04-16T14:27:38.000Z
2021-11-30T14:54:39.000Z
src/libSBML/src/sbml/packages/render/sbml/LocalStyle.cpp
copasi/copasi-dependencies
c01dd455c843522375c32c2989aa8675f59bb810
[ "Unlicense" ]
8
2017-05-30T16:58:39.000Z
2022-02-22T16:51:34.000Z
src/libSBML/src/sbml/packages/render/sbml/LocalStyle.cpp
copasi/copasi-dependencies
c01dd455c843522375c32c2989aa8675f59bb810
[ "Unlicense" ]
7
2016-05-29T08:12:59.000Z
2019-05-02T13:39:25.000Z
/** * @file LocalStyle.cpp * @brief class for representing a local style * @author Ralph Gauges * @author Frank T. Bergmann * * <!-------------------------------------------------------------------------- * This file is part of libSBML. Please visit http://sbml.org for more * information about SBML, and...
22.921708
102
0.68064
[ "render", "object" ]
1d3e09a71a11fa8c5aa0c03371150bc6daad266f
13,818
hpp
C++
include/AnnEvents.hpp
Ybalrid/Annwvyn
30d63c722524c35a9054d51dcdd9f39af0599a3d
[ "MIT" ]
39
2015-04-02T15:32:19.000Z
2022-03-26T12:48:28.000Z
include/AnnEvents.hpp
Ybalrid/Annwvyn
30d63c722524c35a9054d51dcdd9f39af0599a3d
[ "MIT" ]
136
2015-02-24T19:45:59.000Z
2019-02-21T15:01:12.000Z
include/AnnEvents.hpp
Ybalrid/Annwvyn
30d63c722524c35a9054d51dcdd9f39af0599a3d
[ "MIT" ]
12
2015-02-24T19:37:38.000Z
2019-05-13T12:07:26.000Z
#pragma once #include "systemMacro.h" #include "AnnUserSpaceEvent.hpp" #include "AnnKeyCode.h" #include "AnnHandController.hpp" namespace Annwvyn { class AnnTimer; class AnnTriggerObject; class AnnPlayerBody; enum AnnEventType { NO_TYPE, USER_INPUT, TIMER_TIMEOUT, TRIGGER_CONTACT, HAND_CONTROLLER, CO...
28.968553
171
0.72876
[ "object", "vector", "model" ]
1d3e96741a9f2b4511104ef61c64a77c10f2200c
20,478
cpp
C++
Source/PluginPhysics_Ode/Wrapper/Joint.cpp
shanefarris/CoreGameEngine
5bef275d1cd4e84aa059f2f4f9e97bfa2414d000
[ "MIT" ]
3
2019-04-12T15:22:53.000Z
2022-01-05T02:59:56.000Z
Source/PluginPhysics_Ode/Wrapper/Joint.cpp
shanefarris/CoreGameEngine
5bef275d1cd4e84aa059f2f4f9e97bfa2414d000
[ "MIT" ]
null
null
null
Source/PluginPhysics_Ode/Wrapper/Joint.cpp
shanefarris/CoreGameEngine
5bef275d1cd4e84aa059f2f4f9e97bfa2414d000
[ "MIT" ]
2
2019-04-10T22:46:21.000Z
2020-05-27T16:21:37.000Z
#include "Geometry.h" #include "World.h" #include "Body.h" #include "Geometry.h" #include "Joint.h" using namespace Ode; using namespace Ogre; //------------------------------------------------------------------------------------------------ JointGroup::JointGroup(World *world): _world(world) { _joint_group = dJoint...
23.060811
119
0.740941
[ "geometry" ]
1d450ce54c27d3e429d18e688401c26ce3ebc152
13,316
hpp
C++
src/strads/ds/spmat.hpp
ForrestGan/public
2cada36c4b523cf80f16a4f0d0fdc01166a69df1
[ "BSD-3-Clause" ]
null
null
null
src/strads/ds/spmat.hpp
ForrestGan/public
2cada36c4b523cf80f16a4f0d0fdc01166a69df1
[ "BSD-3-Clause" ]
null
null
null
src/strads/ds/spmat.hpp
ForrestGan/public
2cada36c4b523cf80f16a4f0d0fdc01166a69df1
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2014, Sailing Lab // 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 an...
30.824074
123
0.664989
[ "vector" ]
1d473f47fbedc5fd646ff12fd3a33825c7710f01
2,599
cpp
C++
ESP8266/app/OTA_functions.cpp
lxkarthi/SHARP
60a547966f7d6475ba44346116065f190c9abbb8
[ "Apache-2.0" ]
null
null
null
ESP8266/app/OTA_functions.cpp
lxkarthi/SHARP
60a547966f7d6475ba44346116065f190c9abbb8
[ "Apache-2.0" ]
null
null
null
ESP8266/app/OTA_functions.cpp
lxkarthi/SHARP
60a547966f7d6475ba44346116065f190c9abbb8
[ "Apache-2.0" ]
null
null
null
/* * OTA_functions.cpp * * Created on: Jul 19, 2016 * Author: Karthikeyan Natarajan */ #include <user_config.h> #include <SmingCore/SmingCore.h> #include "common_functions.h" rBootHttpUpdate* otaUpdater = 0; void OtaUpdate_CallBack(bool result) { printTo("In callback...", SERIAL); if(result == true) { ...
24.990385
85
0.679107
[ "object" ]
1d495dee938fafce40065af58d83f9b41dfaa8ba
32,766
cxx
C++
IO/IOSS/vtkIOSSModel.cxx
LongerVisionUSA/VTK
1170774b6611c71b95c28bb821d51c2c18ff091f
[ "BSD-3-Clause" ]
null
null
null
IO/IOSS/vtkIOSSModel.cxx
LongerVisionUSA/VTK
1170774b6611c71b95c28bb821d51c2c18ff091f
[ "BSD-3-Clause" ]
null
null
null
IO/IOSS/vtkIOSSModel.cxx
LongerVisionUSA/VTK
1170774b6611c71b95c28bb821d51c2c18ff091f
[ "BSD-3-Clause" ]
null
null
null
/*========================================================================= Program: Visualization Toolkit Module: vtkIOSSModel.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is ...
33.606154
100
0.652353
[ "mesh", "vector", "model", "transform" ]
1d52c48446fd2b2ccb4d71e7ad6099f435f0edf1
2,054
cpp
C++
generator/translator.cpp
letko-dmitry/omim
83797b2070e22f8d67f36d9c7e291e31ea2480ea
[ "Apache-2.0" ]
1
2019-05-27T02:45:22.000Z
2019-05-27T02:45:22.000Z
generator/translator.cpp
Mahmoudabdelmobdy/omim
1d444650803b27e507b5e9532551d41bab621a53
[ "Apache-2.0" ]
null
null
null
generator/translator.cpp
Mahmoudabdelmobdy/omim
1d444650803b27e507b5e9532551d41bab621a53
[ "Apache-2.0" ]
null
null
null
#include "generator/translator.hpp" #include "generator/collector_interface.hpp" #include "generator/emitter_interface.hpp" #include "generator/intermediate_data.hpp" #include "generator/osm_element.hpp" #include "base/assert.hpp" namespace generator { Translator::Translator(std::shared_ptr<EmitterInterface> emitter...
25.675
104
0.733204
[ "vector" ]
1d5994c50c3d496c68c63c7693495346e4773779
20,116
cc
C++
components/update_client/ping_manager_unittest.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
components/update_client/ping_manager_unittest.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
components/update_client/ping_manager_unittest.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2021-01-05T23:43:46.000Z
2021-01-07T23:36:34.000Z
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/update_client/ping_manager.h" #include <stdint.h> #include <limits> #include <memory> #include <string> #include <utility> #include...
42.70913
80
0.689451
[ "vector" ]
1d5a555a009dec096a4d883e900832e7105e334a
1,113
cpp
C++
atcoder/abc165C_many_requirements.cpp
da-edra/kyopro
ad531d15bcccf6aafdaaef3cc69db850b0f7c471
[ "BSD-3-Clause" ]
2
2020-08-31T17:19:07.000Z
2021-01-08T21:35:48.000Z
atcoder/abc165C_many_requirements.cpp
edglaz/kyopro
b8ac4f6873418ad20ad417e46d731c35a8062c0d
[ "BSD-3-Clause" ]
null
null
null
atcoder/abc165C_many_requirements.cpp
edglaz/kyopro
b8ac4f6873418ad20ad417e46d731c35a8062c0d
[ "BSD-3-Clause" ]
null
null
null
// Vicfred & unihernandez22 // https://atcoder.jp/contests/abc165/tasks/abc165_c // dfs, brute force #include <algorithm> #include <iostream> #include <vector> #include <queue> using namespace std; int main() { int n, m, q; cin >> n >> m >> q; vector<int> a(q); vector<int> b(q); vector<int> c(q);...
19.189655
53
0.455526
[ "vector" ]
1d619867d480c7f120788fe8a141f58b3ab655ab
43,463
cpp
C++
indra/llcommon/tests/lltreeiterators_test.cpp
SaladDais/LSO2-VM-Performance
d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638
[ "ISC" ]
1
2022-01-29T07:10:03.000Z
2022-01-29T07:10:03.000Z
indra/llcommon/tests/lltreeiterators_test.cpp
bloomsirenix/Firestorm-manikineko
67e1bb03b2d05ab16ab98097870094a8cc9de2e7
[ "Unlicense" ]
null
null
null
indra/llcommon/tests/lltreeiterators_test.cpp
bloomsirenix/Firestorm-manikineko
67e1bb03b2d05ab16ab98097870094a8cc9de2e7
[ "Unlicense" ]
1
2021-10-01T22:22:27.000Z
2021-10-01T22:22:27.000Z
/** * @file lltreeiterators.cpp * @author Nat Goodspeed * @date 2008-08-20 * @brief Test of lltreeiterators.h * * $LicenseInfo:firstyear=2008&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/o...
35.801483
128
0.577319
[ "object", "vector", "model" ]
1d680e75bbc653b04f13d22de379e3b8d3fb5f9c
12,697
cpp
C++
samples/lightingDemo.cpp
baherramzy/b-engine
70a52826843362b44f287457202706d9cc84be4d
[ "MIT" ]
null
null
null
samples/lightingDemo.cpp
baherramzy/b-engine
70a52826843362b44f287457202706d9cc84be4d
[ "MIT" ]
null
null
null
samples/lightingDemo.cpp
baherramzy/b-engine
70a52826843362b44f287457202706d9cc84be4d
[ "MIT" ]
null
null
null
#include <glad/glad.h> #include <glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <iostream> #include "../lib/Shader/shader.cpp" #include "../lib/Texture/texture.cpp" #include "../lib/Camera/camera.cpp" const unsigned int width = 800, height = 600; Came...
37.125731
132
0.605261
[ "vector", "model" ]
1d6bc6008c457251713132d3e6a9b06609ed22df
40,395
cxx
C++
TPC/TPCsim/AliTPCDigitizer.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
null
null
null
TPC/TPCsim/AliTPCDigitizer.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
2
2016-11-25T08:40:56.000Z
2019-10-11T12:29:29.000Z
TPC/TPCsim/AliTPCDigitizer.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
null
null
null
/************************************************************************** * Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
34.733448
151
0.603243
[ "geometry", "object" ]
1d70f3da56596e86ad16947cfc87add616cf57d0
9,277
cpp
C++
Source/Core/CPU/HostCore/HostCore.cpp
woachk/FEX
66dc5ebc54f3ff9b51eed714eb37bff34a0a82e6
[ "MIT" ]
1
2020-05-24T22:00:46.000Z
2020-05-24T22:00:46.000Z
Source/Core/CPU/HostCore/HostCore.cpp
Sonicadvance1/FEX
d84b536c4a2f785870a714bd5ed9f914dff735a3
[ "MIT" ]
null
null
null
Source/Core/CPU/HostCore/HostCore.cpp
Sonicadvance1/FEX
d84b536c4a2f785870a714bd5ed9f914dff735a3
[ "MIT" ]
null
null
null
#include "Common/MathUtils.h" #include "Core/CPU/CPUBackend.h" #include "Core/CPU/CPUCore.h" #include "Core/CPU/DebugData.h" #include "Core/CPU/IR.h" #include "Core/CPU/IntrusiveIRList.h" #include "Core/CPU/HostCore/HostCore.h" #include "LogManager.h" #include <ucontext.h> #include <cassert> #include <iostream> #inclu...
34.486989
184
0.673278
[ "vector" ]
1d735bb0e5e0fee1d6646acb802f031701da4365
4,574
cpp
C++
src/Initializer/InitialFieldProjection.cpp
ivotron/SeisSol
51c2935566998480f948caf2b66b27b80df4b2c4
[ "BSD-3-Clause" ]
null
null
null
src/Initializer/InitialFieldProjection.cpp
ivotron/SeisSol
51c2935566998480f948caf2b66b27b80df4b2c4
[ "BSD-3-Clause" ]
null
null
null
src/Initializer/InitialFieldProjection.cpp
ivotron/SeisSol
51c2935566998480f948caf2b66b27b80df4b2c4
[ "BSD-3-Clause" ]
null
null
null
/** * @file * This file is part of SeisSol. * * @author Carsten Uphoff (c.uphoff AT tum.de, http://www5.in.tum.de/wiki/index.php/Carsten_Uphoff,_M.Sc.) * * @section LICENSE * Copyright (c) 2019, SeisSol Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modi...
40.122807
185
0.690424
[ "vector" ]
1d78d5b7bc962b71c6ff79a948a585166f9fa88a
101,896
hpp
C++
DynRleWithValue.hpp
itomomoti/OnlineRlbwt
602bcd37b1effb660dcf6dba54d59be0879600a3
[ "MIT" ]
11
2018-05-10T16:37:28.000Z
2021-04-29T12:08:42.000Z
DynRleWithValue.hpp
itomomoti/OnlineRLBWT
602bcd37b1effb660dcf6dba54d59be0879600a3
[ "MIT" ]
null
null
null
DynRleWithValue.hpp
itomomoti/OnlineRLBWT
602bcd37b1effb660dcf6dba54d59be0879600a3
[ "MIT" ]
1
2019-05-27T04:20:05.000Z
2019-05-27T04:20:05.000Z
/*! * Copyright (c) 2017 Tomohiro I * * This program is released under the MIT License. * http://opensource.org/licenses/mit-license.php */ /*! * @file DynRleWithValue.hpp * @brief Dynamic Run-length encoding with value. * @author Tomohiro I * @date 2017-12-16 */ #ifndef INCLUDE_GUARD_DynRleWithValue #define ...
34.090331
174
0.573428
[ "object" ]
1d7b0d5c77b9bf9e12fd3616a04f970aef766a38
89,942
cxx
C++
ds/ds/src/ism/trnsprts/smtp/xmitrecv.cxx
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
ds/ds/src/ism/trnsprts/smtp/xmitrecv.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
ds/ds/src/ism/trnsprts/smtp/xmitrecv.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*++ Copyright (c) 1998 Microsoft Corporation. All rights reserved. MODULE NAME: xmitrecv.cxx ABSTRACT: Methods to support send and receive via SMTP for the Intersite Messaging service. DETAILS: CREATED: 3/20/98 Jeff Parham (jeffparh) REVISION HISTORY: Jul 17, 199...
30.232605
149
0.576038
[ "object" ]
1d7d81662f3b8bef47b6dd5b168767bdcd7ac0cc
1,365
cpp
C++
leetcode/474.ones-and-zeroes.cpp
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
177
2017-08-21T08:57:43.000Z
2020-06-22T03:44:22.000Z
leetcode/474.ones-and-zeroes.cpp
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
2
2018-09-06T13:39:12.000Z
2019-06-03T02:54:45.000Z
leetcode/474.ones-and-zeroes.cpp
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
23
2017-08-23T06:01:28.000Z
2020-04-20T03:17:36.000Z
// f[i][j][k] = max(f[i - 1][j][k], f[i - 1][j - count0[i - 1]][k - count1[i - 1]] + 1 where j >=S0 and k >= S1 class Solution { public: int findMaxForm(vector<string>& strs, int m, int n) { int size = strs.size(); vector<int> count0(size, 0); vector<int> count1(size, 0); ...
29.673913
117
0.312088
[ "vector" ]
1d8473d957cfa4efacf176804a8729ff532a902e
7,162
hpp
C++
include/cpl/math/simplex.hpp
dieram3/competitive-programming-library
29bd0204d00c08e56d1f7fedc5c6c3603c4e5121
[ "BSL-1.0" ]
25
2016-05-03T02:08:58.000Z
2022-01-11T03:49:28.000Z
include/cpl/math/simplex.hpp
dieram3/competitive-programming-library
29bd0204d00c08e56d1f7fedc5c6c3603c4e5121
[ "BSL-1.0" ]
22
2016-04-26T04:46:17.000Z
2016-12-06T03:53:32.000Z
include/cpl/math/simplex.hpp
dieram3/competitive-programming-library
29bd0204d00c08e56d1f7fedc5c6c3603c4e5121
[ "BSL-1.0" ]
5
2017-04-04T16:10:42.000Z
2019-12-05T08:22:30.000Z
// Copyright Diego Ramirez 2015 // 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) #ifndef CPL_MATH_SIMPLEX_HPP #define CPL_MATH_SIMPLEX_HPP #include <cpl/utility/matrix.hpp> // matrix2 #inclu...
31.13913
80
0.568556
[ "vector" ]
1d8bd2411a6cc0f1961d543f19253069806e65b9
17,698
hpp
C++
include/UnityEngine/TestRunner/NUnitExtensions/Runner/CompositeWorkItem_-RunChildren-d__16.hpp
marksteward/BeatSaber-Quest-Codegen
a76f063f71cef207a9f048ad7613835f554911a7
[ "Unlicense" ]
null
null
null
include/UnityEngine/TestRunner/NUnitExtensions/Runner/CompositeWorkItem_-RunChildren-d__16.hpp
marksteward/BeatSaber-Quest-Codegen
a76f063f71cef207a9f048ad7613835f554911a7
[ "Unlicense" ]
null
null
null
include/UnityEngine/TestRunner/NUnitExtensions/Runner/CompositeWorkItem_-RunChildren-d__16.hpp
marksteward/BeatSaber-Quest-Codegen
a76f063f71cef207a9f048ad7613835f554911a7
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: UnityEngine.Te...
76.284483
772
0.763589
[ "object", "vector" ]
1d8d3c88f1405d551a95b0e8db86b9e1a23a1bef
4,155
cpp
C++
Source/Game/Components/Animation.cpp
gunstarpl/Perim-Game-07-2015
58efdee1857f5cccad909d5c2a76f2d6871657e6
[ "Unlicense", "MIT" ]
null
null
null
Source/Game/Components/Animation.cpp
gunstarpl/Perim-Game-07-2015
58efdee1857f5cccad909d5c2a76f2d6871657e6
[ "Unlicense", "MIT" ]
null
null
null
Source/Game/Components/Animation.cpp
gunstarpl/Perim-Game-07-2015
58efdee1857f5cccad909d5c2a76f2d6871657e6
[ "Unlicense", "MIT" ]
null
null
null
#include "Precompiled.hpp" #include "Animation.hpp" #include "Render.hpp" #include "Game/ComponentSystem.hpp" using namespace Game; using namespace Components; Animation::Animation() : m_render(nullptr), m_currentAnimation(nullptr), m_currentFrame(nullptr), m_frameIndex(0), m_frameTime(0.0f), m...
25.335366
94
0.596149
[ "render" ]
1d8f6bc69e117d6e3c5d60ba64ce6fcf3d17d120
2,239
cpp
C++
test/parsers/gdsii/test_driver.cpp
RedFantom/limbo
8d3e0d484a809fb4b3ff8aa72fd972d16cdab405
[ "MIT" ]
74
2017-10-19T03:10:52.000Z
2022-03-28T17:51:54.000Z
test/parsers/gdsii/test_driver.cpp
RedFantom/limbo
8d3e0d484a809fb4b3ff8aa72fd972d16cdab405
[ "MIT" ]
3
2017-12-06T01:49:21.000Z
2020-06-22T00:08:12.000Z
test/parsers/gdsii/test_driver.cpp
RedFantom/limbo
8d3e0d484a809fb4b3ff8aa72fd972d16cdab405
[ "MIT" ]
26
2017-11-07T10:32:54.000Z
2021-10-02T02:22:37.000Z
/** * @file gdsii/test_gdsdb.cpp * @brief test @ref GdsParser::GdsDriver * @author Yibo Lin * @date Nov 2014 */ #include <iostream> #include <limbo/parsers/gdsii/stream/GdsDriver.h> using std::cout; using std::endl; /// @brief a database for GdsParser::GdsDriver struct DataBase : public GdsParser::GdsDrive...
30.256757
84
0.570344
[ "vector" ]
1d8f851a6e3a9837ef6bf4e9e43bd54cbf156843
3,964
hpp
C++
src/config/ParseError.hpp
Seally/wba
5342152a13938afa5404bd72de089f438461b3a4
[ "MIT" ]
1
2021-12-27T18:49:41.000Z
2021-12-27T18:49:41.000Z
src/config/ParseError.hpp
Seally/wba
5342152a13938afa5404bd72de089f438461b3a4
[ "MIT" ]
null
null
null
src/config/ParseError.hpp
Seally/wba
5342152a13938afa5404bd72de089f438461b3a4
[ "MIT" ]
1
2021-12-27T18:49:43.000Z
2021-12-27T18:49:43.000Z
#pragma once #include <exception> #include <string> #include <string_view> #include <unordered_map> #include <variant> class ParseError : public std::runtime_error { public: explicit ParseError(const std::string& message) : std::runtime_error(message) {} explicit ParseError(const ch...
24.621118
81
0.628406
[ "vector" ]
1da0662539fd8d4119276644430f8104595ec534
33,016
cpp
C++
frameworks/cocos2d-x/cocos/2d/CCDrawNode.cpp
darkdukey/cocos2dx-lite
4222c11990cf88fb80c1ef9dc6970afef0939de5
[ "MIT" ]
56
2016-05-29T11:47:07.000Z
2022-02-04T12:53:56.000Z
frameworks/cocos2d-x/cocos/2d/CCDrawNode.cpp
darkdukey/cocos2dx-lite
4222c11990cf88fb80c1ef9dc6970afef0939de5
[ "MIT" ]
32
2016-07-06T06:22:18.000Z
2020-08-02T04:02:32.000Z
frameworks/cocos2d-x/cocos/2d/CCDrawNode.cpp
darkdukey/cocos2dx-lite
4222c11990cf88fb80c1ef9dc6970afef0939de5
[ "MIT" ]
25
2016-07-07T16:30:23.000Z
2021-04-19T17:27:57.000Z
/* Copyright (c) 2012 Scott Lembcke and Howling Moon Software * Copyright (c) 2012 cocos2d-x.org * Copyright (c) 2013-2016 Chukong Technologies Inc. * Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and asso...
32.9501
168
0.64287
[ "vector", "transform" ]