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
6413561ec480c8c1d73fd18b7fbf6f54b98eee64
2,869
cpp
C++
problems/uva/uva259.cpp
phogbinh/cp
41a86550e14571c8f54bbec9579060647e77209c
[ "MIT" ]
null
null
null
problems/uva/uva259.cpp
phogbinh/cp
41a86550e14571c8f54bbec9579060647e77209c
[ "MIT" ]
null
null
null
problems/uva/uva259.cpp
phogbinh/cp
41a86550e14571c8f54bbec9579060647e77209c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; #define LOCAL #define MAX_V 50 #define V 38 #define INF ( int )10E9 enum { UNVISITED = 0, VISITED }; string str; int totalAppsCount; int res[MAX_V][MAX_V]; int s = 0, t = 37; int mf, f; vi p; void reset() { totalAppsCount = 0; m...
20.941606
101
0.47961
[ "vector" ]
641507e789c33a35242a28b361654d669562ac99
1,338
cpp
C++
454_4Sum_II.cpp
AvadheshChamola/LeetCode
b0edabfa798c4e204b015f4c367bfc5acfbd8277
[ "MIT" ]
null
null
null
454_4Sum_II.cpp
AvadheshChamola/LeetCode
b0edabfa798c4e204b015f4c367bfc5acfbd8277
[ "MIT" ]
null
null
null
454_4Sum_II.cpp
AvadheshChamola/LeetCode
b0edabfa798c4e204b015f4c367bfc5acfbd8277
[ "MIT" ]
null
null
null
/* 454. 4Sum II Medium Given four integer arrays nums1, nums2, nums3, and nums4 all of length n, return the number of tuples (i, j, k, l) such that: 0 <= i, j, k, l < n nums1[i] + nums2[j] + nums3[k] + nums4[l] == 0 Example 1: Input: nums1 = [1,2], nums2 = [-2,-1], nums3 = [-1,2], nums4 = [0,2] Output: 2 Expl...
26.76
125
0.488789
[ "vector" ]
641c39d45b1b5896ae079870d8840ba51bbfd1c3
2,762
hpp
C++
QuantExt/qle/models/cdsoptionhelper.hpp
mrslezak/Engine
c46ff278a2c5f4162db91a7ab500a0bb8cef7657
[ "BSD-3-Clause" ]
335
2016-10-07T16:31:10.000Z
2022-03-02T07:12:03.000Z
QuantExt/qle/models/cdsoptionhelper.hpp
mrslezak/Engine
c46ff278a2c5f4162db91a7ab500a0bb8cef7657
[ "BSD-3-Clause" ]
59
2016-10-31T04:20:24.000Z
2022-01-03T16:39:57.000Z
QuantExt/qle/models/cdsoptionhelper.hpp
mrslezak/Engine
c46ff278a2c5f4162db91a7ab500a0bb8cef7657
[ "BSD-3-Clause" ]
180
2016-10-08T14:23:50.000Z
2022-03-28T10:43:05.000Z
/* Copyright (C) 2017 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can redistribute it and/or modify it under the terms of the Modified BSD License...
39.457143
115
0.763215
[ "model" ]
6420a8ca74b8f90783a5947f7c6272d882b2688b
6,491
cpp
C++
objects/objcomposite.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
10
2016-12-28T22:06:31.000Z
2021-05-24T13:42:30.000Z
objects/objcomposite.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
4
2015-10-09T23:55:10.000Z
2020-04-04T08:09:22.000Z
objects/objcomposite.cpp
lukas-ke/faint-graphics-editor
33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf
[ "Apache-2.0" ]
null
null
null
// -*- coding: us-ascii-unix -*- // Copyright 2012 Lukas Kemmer // // Licensed under the Apache License, Version 2.0 (the "License"); you // may not use this file except in compliance with the License. You // may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
26.711934
80
0.640733
[ "object", "vector" ]
64217504578ec01bda4538ab040e389ab5cdad8f
5,306
cc
C++
core/graphics/measure.cc
jbeals12/clip
8a987d1ee92290d7724db040094050d5e41e5013
[ "Apache-2.0" ]
null
null
null
core/graphics/measure.cc
jbeals12/clip
8a987d1ee92290d7724db040094050d5e41e5013
[ "Apache-2.0" ]
null
null
null
core/graphics/measure.cc
jbeals12/clip
8a987d1ee92290d7724db040094050d5e41e5013
[ "Apache-2.0" ]
null
null
null
/** * This file is part of the "clip" project * Copyright (c) 2018 Paul Asmuth * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to in writing, software * distributed under the ...
21.224
82
0.607802
[ "vector" ]
642233db3f8f8cc7eedb39787a8240076628d0ef
5,905
cpp
C++
deform_control/external_libs/OpenSceneGraph-2.8.5/applications/osgviewer/osgviewer.cpp
UM-ARM-Lab/mab_ms
f199f05b88060182cfbb47706bd1ff3479032c43
[ "BSD-2-Clause" ]
3
2018-08-20T12:12:43.000Z
2021-06-06T09:43:27.000Z
deform_control/external_libs/OpenSceneGraph-2.8.5/applications/osgviewer/osgviewer.cpp
UM-ARM-Lab/mab_ms
f199f05b88060182cfbb47706bd1ff3479032c43
[ "BSD-2-Clause" ]
null
null
null
deform_control/external_libs/OpenSceneGraph-2.8.5/applications/osgviewer/osgviewer.cpp
UM-ARM-Lab/mab_ms
f199f05b88060182cfbb47706bd1ff3479032c43
[ "BSD-2-Clause" ]
1
2022-03-31T03:12:23.000Z
2022-03-31T03:12:23.000Z
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This application is open source and may be redistributed and/or modified * freely and without restriction, both in commericial and non commericial applications, * as long as this copyright notice is maintained. * * This application is d...
37.138365
164
0.696528
[ "render", "object", "model", "3d" ]
6427f7e04fab9595002ef102e06221ba685c23a4
18,681
cpp
C++
third_party/WebKit/Source/core/frame/FrameSerializer.cpp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
1
2020-09-15T08:43:34.000Z
2020-09-15T08:43:34.000Z
third_party/WebKit/Source/core/frame/FrameSerializer.cpp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Source/core/frame/FrameSerializer.cpp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
38.438272
152
0.69659
[ "object", "vector" ]
643d66a7db044ed9c89acb020e5e537bf09c36e8
3,375
hpp
C++
include/details/storage_with_backref.hpp
obhi-d/cpptables
5716eac6463b1eb028147c2201c116c8e04b7f7b
[ "MIT" ]
null
null
null
include/details/storage_with_backref.hpp
obhi-d/cpptables
5716eac6463b1eb028147c2201c116c8e04b7f7b
[ "MIT" ]
3
2019-09-26T10:57:39.000Z
2019-12-12T12:08:39.000Z
include/details/storage_with_backref.hpp
obhi-d/cpptables
5716eac6463b1eb028147c2201c116c8e04b7f7b
[ "MIT" ]
null
null
null
#pragma once #include "basic_types.hpp" namespace cpptables { namespace details { template <typename Ty, typename Backref, typename SizeType> struct storage_with_backref { using constants = details::constants<SizeType>; storage_with_backref() noexcept { set_null(); } storage_with_backref(const storage_with_backr...
28.125
87
0.68
[ "object" ]
6443ddb2426c1b3d6fef9bc98c27e25171bba5dd
133,787
cpp
C++
ripley/src/DefaultAssembler2D.cpp
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
null
null
null
ripley/src/DefaultAssembler2D.cpp
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
ripley/src/DefaultAssembler2D.cpp
svn2github/Escript
9c616a3b164446c65d4b8564ecd04fafd7dcf0d2
[ "Apache-2.0" ]
null
null
null
/***************************************************************************** * * Copyright (c) 2003-2018 by The University of Queensland * http://www.uq.edu.au * * Primary Business: Queensland, Australia * Licensed under the Apache License, version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Development unt...
56.260303
170
0.386166
[ "vector" ]
64460008b4cbb951aa8a0ce50bd686787b169457
2,592
cpp
C++
Days 181 - 190/Day 184/FindGCD.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
Days 181 - 190/Day 184/FindGCD.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
Days 181 - 190/Day 184/FindGCD.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
#include <algorithm> #include <cmath> #include <iostream> #include <iterator> #include <unordered_map> #include <vector> std::vector<unsigned int> GetPrimeNumbers(const unsigned int max) noexcept { static constexpr unsigned int SmallestPrime = 2u; std::vector<unsigned int> primeNumbers{ SmallestPrime }; for (unsig...
21.966102
134
0.696373
[ "vector" ]
644a5d7fdba838d98395bbff8d492c13a557f4ec
33,612
hpp
C++
gsa/wit/COIN/include/ClpSimplex.hpp
kant/CMMPPT
c64b339712db28a619880c4c04839aef7d3b6e2b
[ "Apache-2.0" ]
1
2019-10-25T05:25:23.000Z
2019-10-25T05:25:23.000Z
gsa/wit/COIN/include/ClpSimplex.hpp
kant/CMMPPT
c64b339712db28a619880c4c04839aef7d3b6e2b
[ "Apache-2.0" ]
2
2019-09-04T17:34:59.000Z
2020-09-16T08:10:57.000Z
gsa/wit/COIN/include/ClpSimplex.hpp
kant/CMMPPT
c64b339712db28a619880c4c04839aef7d3b6e2b
[ "Apache-2.0" ]
18
2019-07-22T19:01:25.000Z
2022-03-03T15:36:11.000Z
// Copyright (C) 2002, International Business Machines // Corporation and others. All Rights Reserved. /* Authors John Forrest */ #ifndef ClpSimplex_H #define ClpSimplex_H #include <iostream> #include <cfloat> #include "ClpModel.hpp" #include "ClpMatrixBase.hpp" class ClpDualRowPivot; class ClpPrimalCol...
36.855263
79
0.695198
[ "vector", "model" ]
6459861738d1b276e9ddf59b24e17e304cf2c5fe
1,049
cpp
C++
game/prefabs/HoldableBarPrefab.cpp
Khuongnb1997/game-aladdin
74b13ffcd623de0d6f799b0669c7e8917eef3b14
[ "MIT" ]
2
2017-11-08T16:27:25.000Z
2018-08-10T09:08:35.000Z
game/prefabs/HoldableBarPrefab.cpp
Khuongnb1997/game-aladdin
74b13ffcd623de0d6f799b0669c7e8917eef3b14
[ "MIT" ]
null
null
null
game/prefabs/HoldableBarPrefab.cpp
Khuongnb1997/game-aladdin
74b13ffcd623de0d6f799b0669c7e8917eef3b14
[ "MIT" ]
4
2017-11-08T16:25:30.000Z
2021-05-23T06:14:59.000Z
#include "HoldableBarPrefab.h" #include "../Define.h" USING_NAMESPACE_ALA; ALA_CLASS_SOURCE_1(HoldableBarPrefab, ala::PrefabV2) void HoldableBarPrefab::doInstantiate( ala::GameObject* object, std::istringstream& argsStream ) const { // args const auto height = 3.0f; const auto width = nextFloat( argsStream ); ...
28.351351
104
0.71592
[ "object", "transform" ]
645f861f8781d541ab89643299ba49ed50f9500c
120,502
cpp
C++
osx/devkit/plug-ins/gpuCache/CacheReaderAlembic.cpp
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
10
2018-03-30T16:09:02.000Z
2021-12-07T07:29:19.000Z
osx/devkit/plug-ins/gpuCache/CacheReaderAlembic.cpp
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
null
null
null
osx/devkit/plug-ins/gpuCache/CacheReaderAlembic.cpp
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
9
2018-06-02T09:18:49.000Z
2021-12-20T09:24:35.000Z
//- //**************************************************************************/ // Copyright 2015 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk // license agreement provided at the time of installation or download, // or which otherwise accompanies this soft...
33.982516
117
0.608753
[ "mesh", "geometry", "object", "shape", "vector", "transform" ]
64600dcd977f0e00623ec058223c7c17926fa61f
2,520
cpp
C++
Algorithms/Work 5/taskA.cpp
alexstrive/Ifmo-Works
1f4fb67dfde9c4e14130b6614be9ec4b0642d3c0
[ "Unlicense" ]
4
2017-10-06T08:26:23.000Z
2017-10-17T12:40:52.000Z
Algorithms/Work 5/taskA.cpp
novopashin/Ifmo-Works
1f4fb67dfde9c4e14130b6614be9ec4b0642d3c0
[ "Unlicense" ]
5
2017-11-16T18:01:51.000Z
2018-01-15T18:05:58.000Z
Algorithms/Work 5/taskA.cpp
allordiron/LabWorks
1f4fb67dfde9c4e14130b6614be9ec4b0642d3c0
[ "Unlicense" ]
1
2017-12-08T06:48:42.000Z
2017-12-08T06:48:42.000Z
#include <fstream> #include <vector> using namespace std; class LinkedList { private: class Node { public: int value; Node *next; explicit Node(int data, Node *next = nullptr) : value(data), next(next) {}; }; Node *head = nullptr; public: void insert(const int value) {...
20
83
0.522619
[ "vector" ]
6468125e9c2a5a70e3e384a23cdd549f74b2aca0
206
cpp
C++
engine/SfmlEngine/draw.cpp
Quinn-R/HackingGameG
e22c6f326b3efbcfa6b9610638bc8633b88741b5
[ "Unlicense" ]
null
null
null
engine/SfmlEngine/draw.cpp
Quinn-R/HackingGameG
e22c6f326b3efbcfa6b9610638bc8633b88741b5
[ "Unlicense" ]
null
null
null
engine/SfmlEngine/draw.cpp
Quinn-R/HackingGameG
e22c6f326b3efbcfa6b9610638bc8633b88741b5
[ "Unlicense" ]
null
null
null
#include "../SfmlEngine.hpp" void SfmlEngine::draw() { clear(); display(); } void SfmlEngine::draw(sf::Color col, std::vector<sf::RectangleShape> &rects) { clear(col); drawEntity(rects); display(); }
17.166667
78
0.669903
[ "vector" ]
646889df9f2209812cf2924fe0b93e61bcd4ab7c
41,740
cpp
C++
LotteryScan/Helper/common.cpp
agelessZeal/LotteryScan-iOS
d1115a0f7a9cf7323e931eba85a74614939e803a
[ "MIT" ]
null
null
null
LotteryScan/Helper/common.cpp
agelessZeal/LotteryScan-iOS
d1115a0f7a9cf7323e931eba85a74614939e803a
[ "MIT" ]
null
null
null
LotteryScan/Helper/common.cpp
agelessZeal/LotteryScan-iOS
d1115a0f7a9cf7323e931eba85a74614939e803a
[ "MIT" ]
null
null
null
#include "common.h" #include "Coupon.h" bool insertCouponTomapvector(vector <map<int, cv::Rect>>& coupon_rects) { int prev_coupon_number=0; vector <map<int, Rect>>::iterator preiter=coupon_rects.begin(); for (vector <map<int, Rect>>::iterator it=coupon_rects.begin(); it!=coupon_rects.end(); it++) { if ...
33.87987
192
0.511572
[ "vector" ]
6488dadc417dfe31f3428105215595ca69d0be17
798
cpp
C++
Days 151 - 160/Day 156/SumOfSquaredNumbers.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
Days 151 - 160/Day 156/SumOfSquaredNumbers.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
Days 151 - 160/Day 156/SumOfSquaredNumbers.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
#include <iostream> #include <iterator> #include <vector> unsigned int GetTotalSquareSum(unsigned int number) noexcept { std::vector<unsigned int> validSquares; unsigned int squareCounter = 1; while (squareCounter * squareCounter < number) { validSquares.push_back(squareCounter * squareCounter); ++squareCount...
18.55814
60
0.696742
[ "vector" ]
52be2081f4bc6f699a0b977f03bed02bed4c481b
2,828
cpp
C++
leetcode/top_interview_questions/easy/linked_list/4.cpp
bvbasavaraju/competitive_programming
a82ffc1b639588a84f4273b44285d57cdc2f4b11
[ "Apache-2.0" ]
1
2020-05-05T13:06:51.000Z
2020-05-05T13:06:51.000Z
leetcode/top_interview_questions/easy/linked_list/4.cpp
bvbasavaraju/competitive_programming
a82ffc1b639588a84f4273b44285d57cdc2f4b11
[ "Apache-2.0" ]
null
null
null
leetcode/top_interview_questions/easy/linked_list/4.cpp
bvbasavaraju/competitive_programming
a82ffc1b639588a84f4273b44285d57cdc2f4b11
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <vector> using namespace std; /* Q: Merge Two Sorted Lists Merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists. Example 1: Input: l1 = [1,2,4], l2 = [1,3,4] Output: [1,1,2,3,4,4] Exa...
18.979866
142
0.381895
[ "vector" ]
52c198df51655e2a64e751d49d4f7408ddb20799
5,415
hh
C++
dune/gdt/test/interpolations/default.hh
pymor/dune-gdt
fabc279a79e7362181701866ce26133ec40a05e0
[ "BSD-2-Clause" ]
4
2018-10-12T21:46:08.000Z
2020-08-01T18:54:02.000Z
dune/gdt/test/interpolations/default.hh
dune-community/dune-gdt
fabc279a79e7362181701866ce26133ec40a05e0
[ "BSD-2-Clause" ]
154
2016-02-16T13:50:54.000Z
2021-12-13T11:04:29.000Z
dune/gdt/test/interpolations/default.hh
dune-community/dune-gdt
fabc279a79e7362181701866ce26133ec40a05e0
[ "BSD-2-Clause" ]
5
2016-03-02T10:11:20.000Z
2020-02-08T03:56:24.000Z
// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://opensource.org/lice...
41.976744
117
0.64783
[ "geometry", "vector" ]
52c36316f31ba6f34cb0775d38b4f4ea009a030e
3,436
cpp
C++
src/pbnjson_c/selectors/test/TestSyntaxParser.cpp
webosce/libpbnjson
6cd4815a81830bbf6b22647ae8bb4fc818148ee7
[ "Apache-2.0" ]
4
2018-03-20T15:15:50.000Z
2020-05-02T02:30:15.000Z
src/pbnjson_c/selectors/test/TestSyntaxParser.cpp
webosce/libpbnjson
6cd4815a81830bbf6b22647ae8bb4fc818148ee7
[ "Apache-2.0" ]
null
null
null
src/pbnjson_c/selectors/test/TestSyntaxParser.cpp
webosce/libpbnjson
6cd4815a81830bbf6b22647ae8bb4fc818148ee7
[ "Apache-2.0" ]
4
2018-03-19T12:43:43.000Z
2020-05-02T02:30:19.000Z
// Copyright (c) 2015-2018 LG Electronics, 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...
23.534247
104
0.684808
[ "vector" ]
52c49ad1ca8bbdd45e01226f27f86f36b361c65e
10,427
cpp
C++
oldsrc/findpertsurface2_fft.cpp
ron2015schmitt/coildes
2583bc1beb6b5809ed75367970e4f32ba242894a
[ "MIT" ]
null
null
null
oldsrc/findpertsurface2_fft.cpp
ron2015schmitt/coildes
2583bc1beb6b5809ed75367970e4f32ba242894a
[ "MIT" ]
null
null
null
oldsrc/findpertsurface2_fft.cpp
ron2015schmitt/coildes
2583bc1beb6b5809ed75367970e4f32ba242894a
[ "MIT" ]
null
null
null
/************************************************************************* * * File Name : findpertsurface2_fft.cpp * Platform : gnu C++ compiler * Author : Ron Schmitt * Date : * * * SYNOPSIS * * This takes the differnece between the necessary fourier flux coef's ...
23.915138
113
0.622614
[ "vector" ]
52c6c2f83091ac35624bc7881a2864d9c2dff4ed
1,315
cpp
C++
app/hexperiment/sqlutil.cpp
vsui/hypergraph-k-cut
1134ca254fb709bce62a4506c931362d84a06894
[ "MIT" ]
2
2021-01-17T07:31:36.000Z
2021-07-14T08:36:50.000Z
app/hexperiment/sqlutil.cpp
vsui/hypergraph-k-cut
1134ca254fb709bce62a4506c931362d84a06894
[ "MIT" ]
null
null
null
app/hexperiment/sqlutil.cpp
vsui/hypergraph-k-cut
1134ca254fb709bce62a4506c931362d84a06894
[ "MIT" ]
null
null
null
// // Created by Victor on 4/16/20. // #include "sqlutil.hpp" #include <algorithm> sqlutil::InsertStatementBuilder::InsertStatementBuilder(std::string table_name) : table_name_(std::move(table_name)) {} void sqlutil::InsertStatementBuilder::add(const std::string &col_name, const std::string &val) { col_vals_.empl...
32.875
119
0.643346
[ "vector", "transform" ]
52cb5ac13f8cea1d033e02e6285f8c7c994d8775
23,920
hpp
C++
Aha/Aha/OBJModel.hpp
templateguy/aha
8965f3dfa318a8ee02e38fa082bbc5c8c6afa100
[ "MIT" ]
null
null
null
Aha/Aha/OBJModel.hpp
templateguy/aha
8965f3dfa318a8ee02e38fa082bbc5c8c6afa100
[ "MIT" ]
null
null
null
Aha/Aha/OBJModel.hpp
templateguy/aha
8965f3dfa318a8ee02e38fa082bbc5c8c6afa100
[ "MIT" ]
1
2018-04-27T05:48:41.000Z
2018-04-27T05:48:41.000Z
// // OBJModel.hpp // AhaOBJ // // Created by Sinha, Saurabh on 5/8/18. // Copyright © 2018 Sinha, Saurabh. All rights reserved. // #pragma once #include "Texture.hpp" #include "Shader.hpp" namespace aha { class OBJModel { public: void loadModel(const std::string& fileName) { ...
41.170396
203
0.386998
[ "mesh", "render", "object", "shape", "vector", "model" ]
52cfe63c6046512b763fd625a0f30b963d71c82d
2,727
cpp
C++
SPlisHSPlasH/PCISPH/SimulationDataPCISPH.cpp
esCharacter/SPlisHSPlasH
139e5fd0e4f0ace801f039ab065a2e5ee72f8f9f
[ "MIT" ]
2
2022-03-04T02:16:35.000Z
2022-03-30T02:05:48.000Z
SPlisHSPlasH/PCISPH/SimulationDataPCISPH.cpp
HuangChunying/SPlisHSPlasH
139e5fd0e4f0ace801f039ab065a2e5ee72f8f9f
[ "MIT" ]
null
null
null
SPlisHSPlasH/PCISPH/SimulationDataPCISPH.cpp
HuangChunying/SPlisHSPlasH
139e5fd0e4f0ace801f039ab065a2e5ee72f8f9f
[ "MIT" ]
1
2017-06-27T09:48:20.000Z
2017-06-27T09:48:20.000Z
#include "SimulationDataPCISPH.h" #include "SPlisHSPlasH/SPHKernels.h" #include <iostream> #include "SPlisHSPlasH/TimeManager.h" using namespace SPH; SimulationDataPCISPH::SimulationDataPCISPH() { m_model = NULL; } SimulationDataPCISPH::~SimulationDataPCISPH(void) { cleanup(); } void SimulationDataPCISPH::init(Fl...
28.113402
130
0.6685
[ "model" ]
52d262af76e5f2e9c5c40f8774eb67aa9ab5169a
3,293
cpp
C++
aligndiff/algorithms/ses_dp.cpp
mogemimi/daily-snippets
d9da3db8c62538e4a37f0f6b69c5d46d55c4225f
[ "MIT" ]
14
2017-06-16T22:52:38.000Z
2022-02-14T04:11:06.000Z
aligndiff/algorithms/ses_dp.cpp
mogemimi/daily-snippets
d9da3db8c62538e4a37f0f6b69c5d46d55c4225f
[ "MIT" ]
2
2016-03-13T14:50:04.000Z
2019-04-01T09:53:17.000Z
aligndiff/algorithms/ses_dp.cpp
mogemimi/daily-snippets
d9da3db8c62538e4a37f0f6b69c5d46d55c4225f
[ "MIT" ]
2
2016-03-13T14:05:17.000Z
2018-09-18T01:28:42.000Z
// Copyright (c) 2017 mogemimi. Distributed under the MIT license. #include "aligndiff.h" #include "optional.h" #include <cassert> namespace aligndiff { std::vector<DiffEdit> computeShortestEditScript_DynamicProgramming( const std::string& text1, const std::string& text2) { if (text1.empty() && text2.emp...
29.401786
87
0.541755
[ "vector", "3d" ]
52e60bc7296b8fa4cf04ed325cf95a248b764b90
2,864
cpp
C++
examples/vector_prof.cpp
JCGoran/LATfield2
6d6d61d9c9730252c2ad08ef0150beddb8eb946e
[ "MIT" ]
13
2016-04-21T06:25:35.000Z
2021-08-11T07:19:51.000Z
examples/vector_prof.cpp
JCGoran/LATfield2
6d6d61d9c9730252c2ad08ef0150beddb8eb946e
[ "MIT" ]
13
2017-02-16T14:58:44.000Z
2021-05-29T21:42:31.000Z
examples/vector_prof.cpp
Lagrang3/LATfield2
5f21b631385f6e32f97f693d8259e34fa196e37a
[ "MIT" ]
13
2017-07-10T13:51:23.000Z
2021-11-08T02:32:32.000Z
/*! file gettingStarted.cpp Created by David Daverio. A simple example of LATfield2 usage. */ #include "LATfield2.hpp" using namespace LATfield2; #include <scorep/SCOREP_User.h> #include "timer.hpp" #define NTIMER 16 #define T_FADD_COMP 0 #define T_FDER3 1 #define T_FADD_COMP_OLD 2 #define T_FDER3_...
21.862595
90
0.54993
[ "object" ]
52f623909654750c43d9f0b3f66bd6274f06c04b
9,069
cpp
C++
apps/solver/list_controller.cpp
VersiraSec/epsilon-cfw
d12b44c6c6668ecc14b60d8dd098ba5c230b1291
[ "FSFAP" ]
1,442
2017-08-28T19:39:45.000Z
2022-03-30T00:56:14.000Z
apps/solver/list_controller.cpp
VersiraSec/epsilon-cfw
d12b44c6c6668ecc14b60d8dd098ba5c230b1291
[ "FSFAP" ]
1,321
2017-08-28T23:03:10.000Z
2022-03-31T19:32:17.000Z
apps/solver/list_controller.cpp
VersiraSec/epsilon-cfw
d12b44c6c6668ecc14b60d8dd098ba5c230b1291
[ "FSFAP" ]
421
2017-08-28T22:02:39.000Z
2022-03-28T20:52:21.000Z
#include "list_controller.h" #include "app.h" #include <poincare/circuit_breaker_checkpoint.h> #include <poincare/code_point_layout.h> #include <poincare/variable_context.h> #include <assert.h> using namespace Shared; using namespace Escher; namespace Solver { ListController::ListController(Responder * parentRespond...
36.421687
270
0.72632
[ "model" ]
52f62a8a68079134fe2c1423cfcba963c0e41ac7
58,180
cc
C++
third_party/blink/renderer/core/layout/ng/inline/ng_inline_cursor.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/blink/renderer/core/layout/ng/inline/ng_inline_cursor.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/blink/renderer/core/layout/ng/inline/ng_inline_cursor.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 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/layout/ng/inline/ng_inline_cursor.h" #include "third_party/blink/renderer/core/editing/position_with_affinity.h...
32.214839
91
0.705053
[ "geometry", "vector" ]
5e0165153de56f6f969230107c3466765508e0a2
1,182
cpp
C++
code/Combination Sum.cpp
htfy96/leetcode-solutions
4736e87958d7e5aea3cbd999f88c7a86de13205a
[ "Apache-2.0" ]
1
2021-02-21T15:43:13.000Z
2021-02-21T15:43:13.000Z
code/Combination Sum.cpp
htfy96/leetcode-solutions
4736e87958d7e5aea3cbd999f88c7a86de13205a
[ "Apache-2.0" ]
null
null
null
code/Combination Sum.cpp
htfy96/leetcode-solutions
4736e87958d7e5aea3cbd999f88c7a86de13205a
[ "Apache-2.0" ]
1
2018-12-13T07:14:09.000Z
2018-12-13T07:14:09.000Z
class Solution { public: vector<vector<int>> combinationSum(vector<int>& candidates, int target) { vector<vector<vector<int>>> a((target+1) * 2); if (!target) return {{}}; #define idx(i, j) ((i) % 2 * (target + 1) + (j)) for (int i=0; i<candidates.size(); ++i) for (int j=...
38.129032
95
0.367174
[ "vector" ]
5e028cb777ed62050510e15c3ccbfa7b432f61d9
5,439
cpp
C++
test/unit/math/opencl/rev/uniform_lcdf_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
null
null
null
test/unit/math/opencl/rev/uniform_lcdf_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
null
null
null
test/unit/math/opencl/rev/uniform_lcdf_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
null
null
null
#ifdef STAN_OPENCL #include <stan/math/opencl/rev.hpp> #include <stan/math.hpp> #include <gtest/gtest.h> #include <test/unit/math/opencl/util.hpp> #include <vector> TEST(ProbDistributionsUniformLcdf, error_checking) { int N = 3; Eigen::VectorXd y(N); y << 0.3, 0.8, 1.0; Eigen::VectorXd y_size(N - 1); y_size...
33.368098
79
0.640375
[ "vector" ]
5e0350e2cecb160e979bae38dff9705ad1d2eb54
7,014
hpp
C++
include/seqan3/alignment/pairwise/alignment_selector.hpp
giesselmann/seqan3
3a26b42b7066ac424b6e604115fe516607c308c0
[ "BSD-3-Clause" ]
null
null
null
include/seqan3/alignment/pairwise/alignment_selector.hpp
giesselmann/seqan3
3a26b42b7066ac424b6e604115fe516607c308c0
[ "BSD-3-Clause" ]
null
null
null
include/seqan3/alignment/pairwise/alignment_selector.hpp
giesselmann/seqan3
3a26b42b7066ac424b6e604115fe516607c308c0
[ "BSD-3-Clause" ]
null
null
null
// ============================================================================ // SeqAn - The Library for Sequence Analysis // ============================================================================ // // Copyright (c) 2006-2018, Knut Reinert & Freie Universitaet Berlin // Copyright (c) 2016-2018,...
47.391892
117
0.614485
[ "object", "vector", "model" ]
5e0aeb6019c257d390b7941f9361e7d74fe298d1
3,857
hpp
C++
libpharos/znode.hpp
dberlin/pharos
2ff59e71b59725742ab9c53a77ba49316e6fe44e
[ "RSA-MD" ]
3
2015-07-15T08:43:56.000Z
2021-02-28T17:53:52.000Z
libpharos/znode.hpp
dberlin/pharos
2ff59e71b59725742ab9c53a77ba49316e6fe44e
[ "RSA-MD" ]
null
null
null
libpharos/znode.hpp
dberlin/pharos
2ff59e71b59725742ab9c53a77ba49316e6fe44e
[ "RSA-MD" ]
null
null
null
// Copyright 2018 Carnegie Mellon University. See LICENSE file for terms. #ifndef Pharos_Z3_H #define Pharos_Z3_H #include <z3++.h> #include <rose.h> #include <boost/optional.hpp> #include <BinaryZ3Solver.h> #include "misc.hpp" namespace pharos { using CFG = Rose::BinaryAnalysis::ControlFlow::Graph; class FunctionD...
27.748201
83
0.67021
[ "vector" ]
5e0d01380243b7763d8f36c734113cf1c58676df
2,582
cpp
C++
libs/scope_exit/example/world.cpp
zyiacas/boost-doc-zh
689e5a3a0a4dbead1a960f7b039e3decda54aa2c
[ "BSL-1.0" ]
11
2015-07-12T13:04:52.000Z
2021-05-30T23:23:46.000Z
libs/scope_exit/example/world.cpp
sdfict/boost-doc-zh
689e5a3a0a4dbead1a960f7b039e3decda54aa2c
[ "BSL-1.0" ]
null
null
null
libs/scope_exit/example/world.cpp
sdfict/boost-doc-zh
689e5a3a0a4dbead1a960f7b039e3decda54aa2c
[ "BSL-1.0" ]
3
2015-12-23T01:51:57.000Z
2019-08-25T04:58:32.000Z
// Copyright Alexander Nasonov 2009 // // 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) #include <vector> #include <ostream> #include <boost/foreach.hpp> #include <boost/scope_exit.hpp> // The fol...
22.452174
73
0.587142
[ "vector" ]
5e15a2d3fd60b015437fd648e43fb0a8f1c2dd8f
3,443
cpp
C++
src/window.cpp
kz04px/chip8-interpreter
51476ca70fec25c1657ae94a92a31758b49e195e
[ "MIT" ]
null
null
null
src/window.cpp
kz04px/chip8-interpreter
51476ca70fec25c1657ae94a92a31758b49e195e
[ "MIT" ]
null
null
null
src/window.cpp
kz04px/chip8-interpreter
51476ca70fec25c1657ae94a92a31758b49e195e
[ "MIT" ]
null
null
null
#include "window.hpp" #include <array> #include <cassert> #include <stdexcept> #include "options.hpp" Window::Window(const char *title, const int w, const int h) : width_(w), height_(h) { assert(title); window_ = SDL_CreateWindow(title, SDL_WINDOWPOS_UNDEFINED, ...
26.083333
111
0.559686
[ "render" ]
5e17c5a5f2ef5fa09957fc3cbaa79363a3dfb78a
21,003
cpp
C++
source/Camera/InfoUtilOther/ZividBenchmark/ZividBenchmark.cpp
marvinx97/zivid-cpp-samples
7be83661adeb48d28286458b1e01b3dde28e0a43
[ "BSD-3-Clause" ]
1
2020-12-21T03:04:34.000Z
2020-12-21T03:04:34.000Z
source/Camera/InfoUtilOther/ZividBenchmark/ZividBenchmark.cpp
marvinx97/zivid-cpp-samples
7be83661adeb48d28286458b1e01b3dde28e0a43
[ "BSD-3-Clause" ]
null
null
null
source/Camera/InfoUtilOther/ZividBenchmark/ZividBenchmark.cpp
marvinx97/zivid-cpp-samples
7be83661adeb48d28286458b1e01b3dde28e0a43
[ "BSD-3-Clause" ]
null
null
null
/* Zividbenchmarks is a sample that will test the average speed of different operations on your computer. It will provide the mean and median for connects, disconnects, single imaging, HDR and filtering. */ #include <Zivid/Zivid.h> #include <algorithm> #include <iostream> #include <numeric> namespace { const int...
39.184701
120
0.620054
[ "vector", "3d" ]
5e1ff83ff0f056b96bf071e1268b3688cbf43701
803
cpp
C++
src/modules/sl_urcontrol/URControl/xscal_fEJVUpjd.cpp
DelftDroneControl/Firmware
0bcf7318a8caf5e0d4966fa8635f62d6b1fb8ff6
[ "BSD-3-Clause" ]
1
2018-12-19T10:57:36.000Z
2018-12-19T10:57:36.000Z
src/modules/sl_urcontrol/URControl/xscal_fEJVUpjd.cpp
DelftDroneControl/Firmware
0bcf7318a8caf5e0d4966fa8635f62d6b1fb8ff6
[ "BSD-3-Clause" ]
null
null
null
src/modules/sl_urcontrol/URControl/xscal_fEJVUpjd.cpp
DelftDroneControl/Firmware
0bcf7318a8caf5e0d4966fa8635f62d6b1fb8ff6
[ "BSD-3-Clause" ]
null
null
null
/* * /home/sihao/src/monorepo/simulink_model/.codeGenCache/slprj/grt/_sharedutils/xscal_fEJVUpjd.cpp * * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * Code gene...
29.740741
98
0.691158
[ "model" ]
5e1ffcda1b1650196f762339085f1fc25fdbedca
508
cpp
C++
0011 Container With Most Water/solution.cpp
Aden-Tao/LeetCode
c34019520b5808c4251cb76f69ca2befa820401d
[ "MIT" ]
1
2019-12-19T04:13:15.000Z
2019-12-19T04:13:15.000Z
0011 Container With Most Water/solution.cpp
Aden-Tao/LeetCode
c34019520b5808c4251cb76f69ca2befa820401d
[ "MIT" ]
null
null
null
0011 Container With Most Water/solution.cpp
Aden-Tao/LeetCode
c34019520b5808c4251cb76f69ca2befa820401d
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; class Solution { public: int maxArea(vector<int>& height) { int res = 0; for (int i = 0, j = height.size() - 1; i < j; ) { res = max(res, min(height[i], height[j]) * (j - i)); if (height[i] > height[j]) j...
20.32
55
0.448819
[ "vector" ]
5e271fd04f568a14f11dd49263595c5666a1a19d
363
hh
C++
Intra/Math.hh
gammaker/Intra
aed1647cd2cf1781ab0976c2809533d0f347e87e
[ "MIT" ]
8
2017-05-22T12:55:40.000Z
2018-11-11T22:36:56.000Z
Intra/Math.hh
gammaker/Intra
aed1647cd2cf1781ab0976c2809533d0f347e87e
[ "MIT" ]
1
2020-03-14T11:26:17.000Z
2020-03-14T12:31:11.000Z
Intra/Math.hh
devoln/Intra
aed1647cd2cf1781ab0976c2809533d0f347e87e
[ "MIT" ]
1
2017-10-12T10:03:56.000Z
2017-10-12T10:03:56.000Z
#pragma once #include "Math/Bit.h" #include "Math/FixedPoint.h" #include "Math/ExponentRange.h" #include "Math/SineRange.h" #include "Math/HalfFloat.h" #include "Math/Math.h" #include "Math/Geometry.hh" #include "Math/Matrix3.h" #include "Math/Matrix4.h" #include "Math/Quaternion.h" #include "Math/Vector2.h" #include ...
22.6875
31
0.738292
[ "geometry" ]
5e2966a90f7d8ef2ea688686b70875c44b07b0bb
12,318
cpp
C++
source/msynth/msynth/model/mixer/MDefaultMixer.cpp
MRoc/MSynth
3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829
[ "MIT" ]
1
2022-01-30T07:40:31.000Z
2022-01-30T07:40:31.000Z
source/msynth/msynth/model/mixer/MDefaultMixer.cpp
MRoc/MSynth
3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829
[ "MIT" ]
null
null
null
source/msynth/msynth/model/mixer/MDefaultMixer.cpp
MRoc/MSynth
3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829
[ "MIT" ]
null
null
null
/* MDefaultMixer (C)2001 MRoc hifiShock A mixer is a collection of channels. A channel can be added, removed and the number of channels is given. Because a Mixer has a Master-Section, a Mixer inheritances from MMixerChannel and so its a MixerChannel too. Dont delete MMixerChannels, only Contr...
24.784708
125
0.651486
[ "render", "model" ]
5e2b5dba1c9d1261b197194d71f3af4387819362
11,414
cpp
C++
src/io/chemkinReader/source/reactionParser.cpp
sm453/MOpS
f1a706c6552bbdf3ceab504121a02391a1b51ede
[ "MIT" ]
3
2020-09-08T14:06:33.000Z
2020-12-04T07:52:19.000Z
src/io/chemkinReader/source/reactionParser.cpp
sm453/MOpS
f1a706c6552bbdf3ceab504121a02391a1b51ede
[ "MIT" ]
null
null
null
src/io/chemkinReader/source/reactionParser.cpp
sm453/MOpS
f1a706c6552bbdf3ceab504121a02391a1b51ede
[ "MIT" ]
3
2021-11-15T05:18:26.000Z
2022-03-01T13:51:20.000Z
/* * reactionParser.cpp * * Created on: Jun 23, 2011 * Author: gigadot * License: Apache 2.0 */ #include <boost/algorithm/string.hpp> #include "boost/algorithm/string/trim.hpp" #include "reactionParser.h" #include "stringFunctions.h" #include "reaction.h" using namespace std; using namespace boost; ...
26.299539
140
0.544244
[ "vector" ]
5e318d6401963ed4094329b8e588b6287eb10880
5,419
cpp
C++
libmoon/deps/MoonState/tests/helloByeClientDump.cpp
anonReview/Implementation
b86e0c48a1a9183a143687a2875b160504bcb202
[ "MIT" ]
4
2019-04-26T07:33:02.000Z
2019-08-07T12:35:34.000Z
libmoon/deps/MoonState/tests/helloByeClientDump.cpp
anonReview/Implementation
b86e0c48a1a9183a143687a2875b160504bcb202
[ "MIT" ]
null
null
null
libmoon/deps/MoonState/tests/helloByeClientDump.cpp
anonReview/Implementation
b86e0c48a1a9183a143687a2875b160504bcb202
[ "MIT" ]
1
2018-09-27T17:03:30.000Z
2018-09-27T17:03:30.000Z
#ifdef WITH_PCAP #include <array> #include <iostream> #include <string> #include <vector> #include "IPv4_5TupleL2Ident.hpp" #include "helloByeProto.hpp" #include "pcapBackend.hpp" #include "samplePacket.hpp" #include "stateMachine.hpp" #include <netinet/ether.h> #include <pcap/pcap.h> using namespace std; using I...
27.095
86
0.695331
[ "vector" ]
5e34321278351b84ebda609694b22d616f811760
912
cpp
C++
C++/1443-Minimum-Time-to-Collect-All-Apples-in-a-Tree/soln.cpp
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
C++/1443-Minimum-Time-to-Collect-All-Apples-in-a-Tree/soln.cpp
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
C++/1443-Minimum-Time-to-Collect-All-Apples-in-a-Tree/soln.cpp
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution { public: int minTime(int n, vector<vector<int>>& edges, vector<bool>& hasApple) { // need to know how many vector<vector<int>> tree(n); for(auto & e : edges) { int u = e[0], v = e[1]; tree[u].push_back(v); tree[v].push_back(u); } ...
30.4
83
0.491228
[ "vector" ]
5e36a9f666fd10f3e082c8d2a8295b1db6fe1421
794
hpp
C++
src/model/package.hpp
TheSonOfDeimos/network-routing-optimization
7030b5cf333f19ab68952b6841463f4cfd664895
[ "MIT" ]
null
null
null
src/model/package.hpp
TheSonOfDeimos/network-routing-optimization
7030b5cf333f19ab68952b6841463f4cfd664895
[ "MIT" ]
null
null
null
src/model/package.hpp
TheSonOfDeimos/network-routing-optimization
7030b5cf333f19ab68952b6841463f4cfd664895
[ "MIT" ]
null
null
null
#ifndef PACKAGE_HPP #define PACKAGE_HPP #include "types.hpp" #include "time.hpp" #include "algorithmBase.hpp" struct Package { Package(hostAddress_t src, hostAddress_t dst, dataVolume_t vol); hostAddress_t source; hostAddress_t destination; dataVolume_t volume; // In bytes TransportProto protocol...
20.894737
68
0.698992
[ "vector" ]
5e3ca7128f6700d6daaf6c404e156a13ff87dff6
1,716
cpp
C++
AdventOfCode9-1/Program.cpp
noasoder/AdventOfCode
a570a2bb04026a2d865947232b84b3e80c0554c5
[ "MIT" ]
null
null
null
AdventOfCode9-1/Program.cpp
noasoder/AdventOfCode
a570a2bb04026a2d865947232b84b3e80c0554c5
[ "MIT" ]
null
null
null
AdventOfCode9-1/Program.cpp
noasoder/AdventOfCode
a570a2bb04026a2d865947232b84b3e80c0554c5
[ "MIT" ]
null
null
null
#include "Program.h" #include <iostream> #include <fstream> #include <vector> uint16_t BitsToInt(std::string str) { uint16_t result = 0; for (char c : str) { result = (result << 1) | (c - '0'); } return result; } Program::Program() { std::fstream file; file.open("input.txt", std::ios::in); if (!file.is...
14.3
52
0.555361
[ "vector" ]
1e0f533d0efd1881da3cbb14253341ac7247d129
13,475
cpp
C++
ImportantExample/cuteReportView/cutereport/src/plugins/standard/core_plugins/datasets/sql/sqldataset.cpp
xiaohaijin/Qt
54d961c6a8123d8e4daf405b7996aba4be9ab7ed
[ "MIT" ]
3
2018-12-24T19:35:52.000Z
2022-02-04T14:45:59.000Z
ImportantExample/cuteReportView/cutereport/src/plugins/standard/core_plugins/datasets/sql/sqldataset.cpp
xiaohaijin/Qt
54d961c6a8123d8e4daf405b7996aba4be9ab7ed
[ "MIT" ]
null
null
null
ImportantExample/cuteReportView/cutereport/src/plugins/standard/core_plugins/datasets/sql/sqldataset.cpp
xiaohaijin/Qt
54d961c6a8123d8e4daf405b7996aba4be9ab7ed
[ "MIT" ]
1
2019-05-09T02:42:40.000Z
2019-05-09T02:42:40.000Z
/*************************************************************************** * This file is part of the CuteReport project * * Copyright (C) 2012-2015 by Alexander Mikhalov * * alexander.mikhalov@gmail.com * * ...
24.411232
165
0.616698
[ "model" ]
1e0f93712185850546b856a7aa708fa9c5c8045d
1,158
cpp
C++
Leetcode/L1033.cpp
yanjinbin/Foxconn
d8340d228deb35bd8ec244f6156374da8a1f0aa0
[ "CC0-1.0" ]
8
2021-02-14T01:48:09.000Z
2022-01-29T09:12:55.000Z
Leetcode/L1033.cpp
yanjinbin/Foxconn
d8340d228deb35bd8ec244f6156374da8a1f0aa0
[ "CC0-1.0" ]
null
null
null
Leetcode/L1033.cpp
yanjinbin/Foxconn
d8340d228deb35bd8ec244f6156374da8a1f0aa0
[ "CC0-1.0" ]
null
null
null
#include <algorithm> #include <iostream> #include <map> #include <queue> #include <vector> using namespace std; const int INF = 0x3F3F3F3F; #define debug puts("pigtoria bling bling ⚡️⚡️"); #define FOR(i, a, b) for (int i = a; i < b; i++) #define ll long long #define pii pair<int, int> class Solution { public: /...
28.95
65
0.426598
[ "vector" ]
1e1119d660559dce4c3f10b621d8cb9a8790d5f4
3,168
cpp
C++
unit_tests/core/containers/t4mesh_compute_mesh_quality/src/unit_t4mesh_compute_mesh_quality.cpp
ricortiz/OpenTissue
f8c8ebc5137325b77ba90bed897f6be2795bd6fb
[ "Zlib" ]
76
2018-02-20T11:30:52.000Z
2022-03-31T12:45:06.000Z
unit_tests/core/containers/t4mesh_compute_mesh_quality/src/unit_t4mesh_compute_mesh_quality.cpp
ricortiz/OpenTissue
f8c8ebc5137325b77ba90bed897f6be2795bd6fb
[ "Zlib" ]
27
2018-11-20T14:32:49.000Z
2021-11-24T15:26:45.000Z
unit_tests/core/containers/t4mesh_compute_mesh_quality/src/unit_t4mesh_compute_mesh_quality.cpp
ricortiz/OpenTissue
f8c8ebc5137325b77ba90bed897f6be2795bd6fb
[ "Zlib" ]
24
2018-02-21T01:45:26.000Z
2022-03-07T07:06:49.000Z
// // OpenTissue, A toolbox for physical based simulation and animation. // Copyright (C) 2007 Department of Computer Science, University of Copenhagen // #include <OpenTissue/configuration.h> #include <OpenTissue/core/containers/t4mesh/t4mesh.h> #include <OpenTissue/core/geometry/geometry_compute_inscribed_circumscri...
33.702128
130
0.723169
[ "geometry", "vector" ]
1e168ff02e702f3c9a0c0f594c8e002f0d3ac88d
26,101
cpp
C++
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBallotBroadcastTests.cpp
ShabbyX/VK-GL-CTS
74ffed6e0b286e6279ed3db1a6c50aad6b387836
[ "Apache-2.0" ]
null
null
null
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBallotBroadcastTests.cpp
ShabbyX/VK-GL-CTS
74ffed6e0b286e6279ed3db1a6c50aad6b387836
[ "Apache-2.0" ]
1
2019-09-02T06:26:06.000Z
2019-09-02T06:26:06.000Z
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBallotBroadcastTests.cpp
ShabbyX/VK-GL-CTS
74ffed6e0b286e6279ed3db1a6c50aad6b387836
[ "Apache-2.0" ]
null
null
null
/*------------------------------------------------------------------------ * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2019 The Khronos Group Inc. * Copyright (c) 2019 Google Inc. * Copyright (c) 2017 Codeplay Software Ltd. * * Licensed under the Apache License, Version 2.0 (the "Lic...
35.754795
266
0.676679
[ "geometry", "vector" ]
1e16b60b799e9864e9399ffd30b868a9c5fd8fdc
7,159
cxx
C++
main/linguistic/source/iprcache.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/linguistic/source/iprcache.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/linguistic/source/iprcache.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
25.476868
79
0.690879
[ "object" ]
1e1a1fdd580afdf21cbb05d99fc196f720137349
847
cpp
C++
Lab Sessions/Lab 5/poisonousPlants.cpp
bimalka98/Data-Structures-and-Algorithms
7d358a816561551a5b04af8de378141becda42bd
[ "MIT" ]
1
2021-03-21T07:54:08.000Z
2021-03-21T07:54:08.000Z
Lab Sessions/Lab 5/poisonousPlants.cpp
bimalka98/Data-Structures-and-Algorithms
7d358a816561551a5b04af8de378141becda42bd
[ "MIT" ]
null
null
null
Lab Sessions/Lab 5/poisonousPlants.cpp
bimalka98/Data-Structures-and-Algorithms
7d358a816561551a5b04af8de378141becda42bd
[ "MIT" ]
null
null
null
int poisonousPlants(vector<int> p) { int num_of_plants = p.size(); // Number of plants at the begining. int days = 0; while(true){ // Trying to get the remaining plants after a day. // There's no plant left to the first plant. Therefore it is preserved anyway. vector<int> remainin...
35.291667
116
0.606848
[ "vector" ]
1e1b760acde05ce7a5d8f36a2af4c9ec9185dce1
2,180
cpp
C++
Source/EngineProject/Components/RigidBodyComponent/RigidBody.cpp
GBCNewGamePlus/Elasticity
0cc7af3a26e4cacd61aa908877b60937bae99413
[ "MIT" ]
null
null
null
Source/EngineProject/Components/RigidBodyComponent/RigidBody.cpp
GBCNewGamePlus/Elasticity
0cc7af3a26e4cacd61aa908877b60937bae99413
[ "MIT" ]
null
null
null
Source/EngineProject/Components/RigidBodyComponent/RigidBody.cpp
GBCNewGamePlus/Elasticity
0cc7af3a26e4cacd61aa908877b60937bae99413
[ "MIT" ]
null
null
null
#include "../CircleComponent/CircleComponent.h" #include "RigidBody.h" #include "../../Systems/RigidBodySystem.h" #include "../SquareComponent/SquareComponent.h" #include "../TransformComponent/TransformComponent.h" RigidBody::RigidBody() { componentName = "rigidBodyComponent"; id = -1; // -1 = ID not set. ID is set...
21.8
96
0.686239
[ "transform" ]
1e1e56532494e210043de43fda0b8829f8535c73
4,189
cpp
C++
tc 160+/BestYahtzeeScore.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
3
2015-05-25T06:24:37.000Z
2016-09-10T07:58:00.000Z
tc 160+/BestYahtzeeScore.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
null
null
null
tc 160+/BestYahtzeeScore.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
5
2015-05-25T06:24:40.000Z
2021-08-19T19:22:29.000Z
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; int sum(const string &s) { int ret = 0; for (int i=0; i<5; ++i) ret += (s[i]-'0'); return ret; } void makeCnt(const string ...
26.18125
309
0.559322
[ "vector" ]
1e200f92519ab61b85444c69e4e0c9ed14561298
1,489
cpp
C++
main.cpp
Budlee/SFML-Graph
00d46393c0e3e31c9905db9942e4fd719f93daa0
[ "WTFPL" ]
null
null
null
main.cpp
Budlee/SFML-Graph
00d46393c0e3e31c9905db9942e4fd719f93daa0
[ "WTFPL" ]
null
null
null
main.cpp
Budlee/SFML-Graph
00d46393c0e3e31c9905db9942e4fd719f93daa0
[ "WTFPL" ]
null
null
null
#include <stdio.h> #include <iostream> #include <thread> #include <inttypes.h> #include "GraphLines.h" #include "OanadaPricePuller.h" #include <SFML/Graphics.hpp> #include <SFML/Window.hpp> #include <SFML/System.hpp> void renderingThread(sf::RenderWindow* window, GraphLines *glines) { // the rendering loop ...
23.634921
111
0.601075
[ "render" ]
1e224a04c7c3be9e3764e95d4998003cb9a02372
19,235
cpp
C++
oglmanager.cpp
JustLuoxi/HairAirSimulation
ea2558d5a646f6a9abd74511b84a7507c62c1cad
[ "MIT" ]
1
2020-05-22T09:26:24.000Z
2020-05-22T09:26:24.000Z
oglmanager.cpp
JustLuoxi/HairAirSimulation
ea2558d5a646f6a9abd74511b84a7507c62c1cad
[ "MIT" ]
null
null
null
oglmanager.cpp
JustLuoxi/HairAirSimulation
ea2558d5a646f6a9abd74511b84a7507c62c1cad
[ "MIT" ]
null
null
null
#include "oglmanager.h" #include <QPalette> #include "model.h" #include "light.h" #include "air.h" #include "resourcemanager.h" #include <QDebug> #include <mainwindow.h> //#include "quaternion.h" const QVector3D CAMERA_POSITION(0.0f, 0.0f, 3.0f); const QVector3D LIGHT_POSITION(0.0f, 3.0f, 3.0f); const QVector3D AIRGR...
32.993139
162
0.604211
[ "model" ]
1e2fff5c9871c36b8692245c8f94d50d62cf5077
6,340
cc
C++
src/operator/contrib/hawkes_ll.cc
mchoi8739/incubator-mxnet
cff583250479b31c394f568ffb835b720cb84dc4
[ "Apache-2.0" ]
211
2016-06-06T08:32:36.000Z
2021-07-03T16:50:16.000Z
src/operator/contrib/hawkes_ll.cc
mchoi8739/incubator-mxnet
cff583250479b31c394f568ffb835b720cb84dc4
[ "Apache-2.0" ]
82
2016-03-29T02:40:02.000Z
2021-02-06T22:20:40.000Z
src/operator/contrib/hawkes_ll.cc
mchoi8739/incubator-mxnet
cff583250479b31c394f568ffb835b720cb84dc4
[ "Apache-2.0" ]
58
2016-10-27T07:37:08.000Z
2021-07-03T16:50:17.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 you under the Apache License, Version 2.0 (the * "License"); you ...
42.266667
509
0.682492
[ "shape", "vector" ]
1e3e76fd1f5b119c9f504016d42d0f51a7115d85
11,395
cpp
C++
test/lua/main.cpp
Loghorn/ponder
6026163debce834b6460799b8907caf331d3246d
[ "MIT" ]
null
null
null
test/lua/main.cpp
Loghorn/ponder
6026163debce834b6460799b8907caf331d3246d
[ "MIT" ]
null
null
null
test/lua/main.cpp
Loghorn/ponder
6026163debce834b6460799b8907caf331d3246d
[ "MIT" ]
null
null
null
/**************************************************************************** ** ** This file is part of the Ponder library. ** ** The MIT License (MIT) ** ** Copyright (C) 2015-2020 Nick Trout. ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and associate...
32.008427
96
0.52681
[ "object" ]
1e41b1d5ba2c7e46a19e0a9d18eae6d5dee07b0c
8,232
cpp
C++
Tutorial0/application_draw.cpp
asm128/gpftw_expert
8dbed3d0466f273d60f390c98be1389396784141
[ "MIT" ]
null
null
null
Tutorial0/application_draw.cpp
asm128/gpftw_expert
8dbed3d0466f273d60f390c98be1389396784141
[ "MIT" ]
null
null
null
Tutorial0/application_draw.cpp
asm128/gpftw_expert
8dbed3d0466f273d60f390c98be1389396784141
[ "MIT" ]
null
null
null
#include "application.h" #include "llc_bitmap_target.h" ::llc::error_t drawBoxes (::SApplication& applicationInstance) { // --- This function will draw some coloured symbols in each cell of the ASCII screen. ::llc::SFramework & framework = applicationInstance.Fram...
69.176471
248
0.698494
[ "transform" ]
1e42a5b7e068d63879e0449750b1628faa28b4bb
778
cpp
C++
day01b.cpp
Fossegrimen/advent-of-code
d9323346c167435fe461214e9eae990a1940c78e
[ "MIT" ]
null
null
null
day01b.cpp
Fossegrimen/advent-of-code
d9323346c167435fe461214e9eae990a1940c78e
[ "MIT" ]
null
null
null
day01b.cpp
Fossegrimen/advent-of-code
d9323346c167435fe461214e9eae990a1940c78e
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> typedef std::vector<size_t> Vector; int main() { Vector expenses; size_t expense = 0; while (std::cin >> expense) { expenses.push_back(expense); } for (size_t i = 0; i < expenses.size(); i++) { for (size_t j = i + 1; j < expenses.siz...
20.473684
83
0.437018
[ "vector" ]
1e4b91c2ef06c9fe108b8c549ad37b6eeeb31e96
2,628
cc
C++
garnet/bin/test_runner/run_integration_tests/test_runner_config.cc
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
garnet/bin/test_runner/run_integration_tests/test_runner_config.cc
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
16
2020-09-04T19:01:11.000Z
2021-05-28T03:23:09.000Z
garnet/bin/test_runner/run_integration_tests/test_runner_config.cc
OpenTrustGroup/fuchsia
647e593ea661b8bf98dcad2096e20e8950b24a97
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
// Copyright 2017 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 "garnet/bin/test_runner/run_integration_tests/test_runner_config.h" #include <sys/socket.h> #include <iostream> #include <string> #include "src...
32.04878
94
0.686834
[ "vector" ]
1e4daeb0dd89447e06907aa70789af5749e204c1
832
cpp
C++
leetcode/0071_Simplify_Path/result.cpp
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
leetcode/0071_Simplify_Path/result.cpp
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
leetcode/0071_Simplify_Path/result.cpp
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
/** * Copyright (C) 2021 All rights reserved. * * FileName :result.cpp * Author :C.K * Email :theck17@163.com * DateTime :2021-08-08 18:13:25 * Description : */ #include <vector> //STL 动态数组容器 #include <valarray> //对包含值的数组的操作 #include <ctime> //定义关...
25.212121
61
0.504808
[ "vector" ]
1e5581e6cf67d7e759b3aeb7d723ed36b80fc127
13,355
hxx
C++
src/include/sk/posix/detail/io_uring_reactor.hxx
sikol/sk-async
fc8fb2dbfa119b8b8d68c203459b8ca676576076
[ "BSL-1.0" ]
3
2021-04-08T12:47:39.000Z
2021-09-25T11:43:41.000Z
src/include/sk/posix/detail/io_uring_reactor.hxx
sikol/sk-cio
fc8fb2dbfa119b8b8d68c203459b8ca676576076
[ "BSL-1.0" ]
null
null
null
src/include/sk/posix/detail/io_uring_reactor.hxx
sikol/sk-cio
fc8fb2dbfa119b8b8d68c203459b8ca676576076
[ "BSL-1.0" ]
null
null
null
/* * Copyright (c) 2019, 2020, 2021 SiKol Ltd. * * Boost Software License - Version 1.0 - August 17th, 2003 * * 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, reproduc...
34.24359
80
0.573119
[ "object" ]
1e603502f8e3134df73907bc437ef1fd3c4dd623
22,969
cpp
C++
Eudora71/Eudora/QCTaskManager.cpp
dusong7/eudora-win
850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2
[ "BSD-3-Clause-Clear" ]
10
2018-05-23T10:43:48.000Z
2021-12-02T17:59:48.000Z
Eudora71/Eudora/QCTaskManager.cpp
dusong7/eudora-win
850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2
[ "BSD-3-Clause-Clear" ]
1
2019-03-19T03:56:36.000Z
2021-05-26T18:36:03.000Z
Eudora71/Eudora/QCTaskManager.cpp
evilneuro/eudora-win
850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2
[ "BSD-3-Clause-Clear" ]
11
2018-05-23T10:43:53.000Z
2021-12-27T15:42:58.000Z
// QCTaskManager.cpp: impementation file for QCTaskManager // // Copyright (c) 1997-2000 by QUALCOMM, Incorporated /* Copyright (c) 2016, Computer History Museum All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the ...
25.807865
149
0.693892
[ "object" ]
1e6e597c826df7aed4b226aa737439d3180f63b4
4,009
cpp
C++
src/IStrategizer/MoveAction.cpp
ogail/IStrategizer
d214f150fdfee3c3a865a826546058d131dd9100
[ "Apache-2.0" ]
1
2017-12-20T13:53:09.000Z
2017-12-20T13:53:09.000Z
src/IStrategizer/MoveAction.cpp
ogail/IStrategizer
d214f150fdfee3c3a865a826546058d131dd9100
[ "Apache-2.0" ]
null
null
null
src/IStrategizer/MoveAction.cpp
ogail/IStrategizer
d214f150fdfee3c3a865a826546058d131dd9100
[ "Apache-2.0" ]
null
null
null
#include "MoveAction.h" #include "EngineAssist.h" #include "GameEntity.h" #include "AbstractAdapter.h" #include "OnlineCaseBasedPlannerEx.h" #include "CaseBasedReasonerEx.h" #include "RtsGame.h" #include "GamePlayer.h" #include "And.h" #include "EntityClassExist.h" #include "EntityClassNearArea.h" #include <math.h> #i...
36.117117
103
0.569219
[ "vector" ]
1e748eb474502f0a655fd7e0097188dd44db2999
11,256
hpp
C++
include/Btk/widget.hpp
BusyStudent/Btk
27b23aa77e4fbcc48bdfe566ce7cae46183c289c
[ "MIT" ]
2
2021-06-19T08:21:38.000Z
2021-08-15T21:37:30.000Z
include/Btk/widget.hpp
BusyStudent/Btk
27b23aa77e4fbcc48bdfe566ce7cae46183c289c
[ "MIT" ]
null
null
null
include/Btk/widget.hpp
BusyStudent/Btk
27b23aa77e4fbcc48bdfe566ce7cae46183c289c
[ "MIT" ]
1
2021-04-03T14:27:39.000Z
2021-04-03T14:27:39.000Z
#if !defined(_BTK_WIDGET_HPP_) #define _BTK_WIDGET_HPP_ #include <cstdio> #include <list> #include "function.hpp" #include "signal.hpp" #include "themes.hpp" #include "font.hpp" #include "rect.hpp" #include "defs.hpp" namespace Btk{ class Font; class Theme; class Window; class Renderer; //Event...
30.016
90
0.46322
[ "render", "object" ]
1e7bcd6c023d60810efd4936a766babdc2d0015a
688
cpp
C++
http-server/src/http-body-parser.cpp
cprkv/http-server
788ff90744846d29e0b60136eaca833f9e4c8702
[ "MIT" ]
null
null
null
http-server/src/http-body-parser.cpp
cprkv/http-server
788ff90744846d29e0b60136eaca833f9e4c8702
[ "MIT" ]
null
null
null
http-server/src/http-body-parser.cpp
cprkv/http-server
788ff90744846d29e0b60136eaca833f9e4c8702
[ "MIT" ]
null
null
null
#include "http-server/http-body-parser.hpp" using namespace http; //--------------------------------------------------------------- bool HttpBodyJson::parse(const std::string& body) { try { object = json::parse(body); } catch (...) { return false; } return true; } //---------------------------------...
22.933333
82
0.465116
[ "object" ]
1e7cf4b5d0054c837a7bba1affb98d8570326c41
1,348
cpp
C++
hdu-winter-2020/problems/团与婚姻匹配/1001.cpp
songhn233/Algorithm-Packages
56d6f3c2467c175ab8a19b82bdfb25fc881e2206
[ "CC0-1.0" ]
1
2020-08-10T21:40:21.000Z
2020-08-10T21:40:21.000Z
hdu-winter-2020/problems/团与婚姻匹配/1001.cpp
songhn233/Algorithm-Packages
56d6f3c2467c175ab8a19b82bdfb25fc881e2206
[ "CC0-1.0" ]
null
null
null
hdu-winter-2020/problems/团与婚姻匹配/1001.cpp
songhn233/Algorithm-Packages
56d6f3c2467c175ab8a19b82bdfb25fc881e2206
[ "CC0-1.0" ]
null
null
null
#include<cstdio> #include<algorithm> #include<cstring> #include<iostream> #include<vector> #include<queue> #include<cmath> #include<map> #include<set> #define ll long long #define F(i,a,b) for(int i=(a);i<=(b);i++) #define mst(a,b) memset((a),(b),sizeof(a)) #define PII pair<int,int> using namespace std; template<class ...
18.465753
67
0.553412
[ "vector" ]
1e84be71e5291be08cc05407734a81af190ef3d3
4,230
cpp
C++
lib/InputDevice/DataFromMR3.cpp
mcx/rtosim
e8831e4e4b0ce2d82ffcb35b58387a1d4693c36f
[ "Apache-2.0" ]
21
2016-07-06T17:03:25.000Z
2022-03-17T02:18:53.000Z
lib/InputDevice/DataFromMR3.cpp
mcx/rtosim
e8831e4e4b0ce2d82ffcb35b58387a1d4693c36f
[ "Apache-2.0" ]
17
2016-07-06T06:14:58.000Z
2022-02-17T07:24:34.000Z
lib/InputDevice/DataFromMR3.cpp
mcx/rtosim
e8831e4e4b0ce2d82ffcb35b58387a1d4693c36f
[ "Apache-2.0" ]
14
2016-07-06T17:03:33.000Z
2022-02-09T11:36:56.000Z
#include "rtosim/DataFromMR3.h" #include "rtosim/EndOfData.h" using std::begin; using std::end; /* Components names from MR3 player device.player.player.mm_gait;line.human.head;type.input.motion.rot; device.player.player.mm_gait;line.human.spine.upper;type.input.motion.rot; device.player.player.mm_gait;line.human.lt....
37.767857
79
0.735934
[ "vector", "transform" ]
1e9025c3e76b36a884f98a45a26b299a6759a0be
3,170
cpp
C++
2018/0421_ARC096/E.cpp
kazunetakahashi/atcoder
16ce65829ccc180260b19316e276c2fcf6606c53
[ "MIT" ]
7
2019-03-24T14:06:29.000Z
2020-09-17T21:16:36.000Z
2018/0421_ARC096/E.cpp
kazunetakahashi/atcoder
16ce65829ccc180260b19316e276c2fcf6606c53
[ "MIT" ]
null
null
null
2018/0421_ARC096/E.cpp
kazunetakahashi/atcoder
16ce65829ccc180260b19316e276c2fcf6606c53
[ "MIT" ]
1
2020-07-22T17:27:09.000Z
2020-07-22T17:27:09.000Z
/** * File : E.cpp * Author : Kazune Takahashi * Created : 2018-5-16 21:22:53 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn)...
18.430233
103
0.502839
[ "vector" ]
1e906f7a2c142acc87777d2a70000f0a6a47baa6
5,811
cpp
C++
libvvhd/src/XStreamfunction.cpp
rosik/vvflow
87caadf3973b31058a16a1372365ae8a7a157cdb
[ "MIT" ]
29
2020-08-05T16:08:35.000Z
2022-02-21T06:43:01.000Z
libvvhd/src/XStreamfunction.cpp
rosik/vvflow
87caadf3973b31058a16a1372365ae8a7a157cdb
[ "MIT" ]
6
2021-01-07T21:29:57.000Z
2021-06-28T20:54:04.000Z
libvvhd/src/XStreamfunction.cpp
rosik/vvflow
87caadf3973b31058a16a1372365ae8a7a157cdb
[ "MIT" ]
6
2020-07-24T06:53:54.000Z
2022-01-06T06:12:45.000Z
#include "XStreamfunction.hpp" #include "MFlowmove.hpp" #include "MEpsilonFast.hpp" #include "elementary.h" #include <cmath> #include <limits> using std::vector; XStreamfunction::XStreamfunction( const Space &S, double xmin, double ymin, double dxdy, int xres, int yres ): XField(xmin, ymin, dxdy...
27.28169
110
0.548443
[ "vector" ]
1e9a55a0e4dd8c951ec14f172106344f4a77a410
11,768
cpp
C++
Win32xx/samples/ToolBarDemo/src/Mainfrm.cpp
mufunyo/VisionRGBApp
c09092770032150083eda171a22b1a3ef0914dab
[ "Unlicense" ]
2
2021-03-25T04:19:22.000Z
2021-05-03T03:23:30.000Z
Win32xx/samples/ToolBarDemo/src/Mainfrm.cpp
mufunyo/VisionRGBApp
c09092770032150083eda171a22b1a3ef0914dab
[ "Unlicense" ]
null
null
null
Win32xx/samples/ToolBarDemo/src/Mainfrm.cpp
mufunyo/VisionRGBApp
c09092770032150083eda171a22b1a3ef0914dab
[ "Unlicense" ]
1
2020-12-28T08:53:42.000Z
2020-12-28T08:53:42.000Z
//////////////////////////////////////////////////// // Mainfrm.cpp #include "stdafx.h" #include "mainfrm.h" #include "resource.h" // Definitions for the CMainFrame class CMainFrame::CMainFrame() : m_useBigIcons(FALSE) { // Constructor for CMainFrame. Its called after CFrame's constructor //Set m_View as th...
28.702439
115
0.652787
[ "vector" ]
1ea1b5b741b0a3102606fcb62b74f5bc42c65457
2,477
hpp
C++
rclpy/src/rclpy/action_goal_handle.hpp
RoboStack/rclpy
c67e43a69a1580eeac4a90767e24ceeea31a298e
[ "Apache-2.0" ]
121
2015-11-19T19:46:09.000Z
2022-03-17T16:36:52.000Z
rclpy/src/rclpy/action_goal_handle.hpp
RoboStack/rclpy
c67e43a69a1580eeac4a90767e24ceeea31a298e
[ "Apache-2.0" ]
759
2016-01-29T01:44:19.000Z
2022-03-30T13:37:26.000Z
rclpy/src/rclpy/action_goal_handle.hpp
RoboStack/rclpy
c67e43a69a1580eeac4a90767e24ceeea31a298e
[ "Apache-2.0" ]
160
2016-01-12T16:56:21.000Z
2022-03-22T23:20:35.000Z
// Copyright 2021 Open Source Robotics Foundation, 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 appli...
27.522222
103
0.754945
[ "object" ]
1ea3c2f7fc6407f92fbadda757596445355afa20
63,439
cpp
C++
Entregas/ACM_Proyecto01/sudoku.cpp
cesar-magana/Advanced_Programming
7b5ff09cd2816b67ca9f68d5ede211c73fb73de5
[ "MIT" ]
null
null
null
Entregas/ACM_Proyecto01/sudoku.cpp
cesar-magana/Advanced_Programming
7b5ff09cd2816b67ca9f68d5ede211c73fb73de5
[ "MIT" ]
null
null
null
Entregas/ACM_Proyecto01/sudoku.cpp
cesar-magana/Advanced_Programming
7b5ff09cd2816b67ca9f68d5ede211c73fb73de5
[ "MIT" ]
null
null
null
/*------------------------------------------------------------ PROGRAMACIÓN AVANZADA I PROYECTO SUDOKU César Magaña cesar@cimat.mx --------------------------------------------------------------*/ //#include "config.h" #include <iostream> #include <string> #include <map> #include <set> #include <stdlib.h> #include <sy...
26.3451
195
0.575167
[ "vector" ]
1ea49b2a99a69d064c3cd37677d7d1ea8c8a6020
2,855
cc
C++
src/visualisers/HeightTechnique.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
41
2018-12-07T23:10:50.000Z
2022-02-19T03:01:49.000Z
src/visualisers/HeightTechnique.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
59
2019-01-04T15:43:30.000Z
2022-03-31T09:48:15.000Z
src/visualisers/HeightTechnique.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
13
2019-01-07T14:36:33.000Z
2021-09-06T14:48:36.000Z
/* * (C) Copyright 1996-2016 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an in...
26.933962
118
0.629422
[ "vector" ]
1eaf82da3d426e372d68ebda08a927faaecd9947
5,166
cpp
C++
examples/roadef2020_main.cpp
fontanf/localsearchsolver
68fa39189660a7ce0673df44943862362681f98c
[ "MIT" ]
1
2021-10-30T11:42:30.000Z
2021-10-30T11:42:30.000Z
examples/roadef2020_main.cpp
fontanf/localsearchsolver
68fa39189660a7ce0673df44943862362681f98c
[ "MIT" ]
null
null
null
examples/roadef2020_main.cpp
fontanf/localsearchsolver
68fa39189660a7ce0673df44943862362681f98c
[ "MIT" ]
null
null
null
#include "examples/roadef2020.hpp" #include "localsearchsolver/read_args.hpp" #include <boost/program_options.hpp> using namespace localsearchsolver; using namespace localsearchsolver::roadef2020; int main(int argc, char *argv[]) { namespace po = boost::program_options; // Parse program options std::st...
37.434783
100
0.631823
[ "vector" ]
1eb08f499768adc547ef3422dde56ed2fe686330
8,860
cpp
C++
src/O2FS/IO/BeMusicReader.cpp
SirusDoma/O2FS
3ffa2d5476b8ee883be145c275df5e7759c1e520
[ "MIT" ]
1
2022-02-16T12:36:32.000Z
2022-02-16T12:36:32.000Z
src/O2FS/IO/BeMusicReader.cpp
SirusDoma/O2FS
3ffa2d5476b8ee883be145c275df5e7759c1e520
[ "MIT" ]
null
null
null
src/O2FS/IO/BeMusicReader.cpp
SirusDoma/O2FS
3ffa2d5476b8ee883be145c275df5e7759c1e520
[ "MIT" ]
null
null
null
#include <O2FS/IO/BeMusicReader.hpp> #include <fstream> #include <sstream> #include <unordered_map> #include <filesystem> #include <boolinq.h> namespace O2FS { static std::vector<std::string> SplitString(const std::string &s, char delim) { std::vector<std::string> result; std::stringstream ss...
35.15873
106
0.441084
[ "vector" ]
1eb10a5956c6e718d9287dc5cc1010d160fb9191
9,813
cpp
C++
src/plugins/lmp/collectionwidget.cpp
0xd34df00d/leechcraft
c599858ffcf59f0626f07f677362fc4538cc6552
[ "BSL-1.0" ]
120
2015-01-22T14:10:39.000Z
2021-11-25T12:57:16.000Z
src/plugins/lmp/collectionwidget.cpp
0xd34df00d/leechcraft
c599858ffcf59f0626f07f677362fc4538cc6552
[ "BSL-1.0" ]
8
2015-02-07T19:38:19.000Z
2017-11-30T20:18:28.000Z
src/plugins/lmp/collectionwidget.cpp
0xd34df00d/leechcraft
c599858ffcf59f0626f07f677362fc4538cc6552
[ "BSL-1.0" ]
33
2015-02-07T16:59:55.000Z
2021-10-12T00:36:40.000Z
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 Georg Rudoy * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE...
31.654839
115
0.697748
[ "model" ]
1eb48e3d113ffbb370b00b7c8ecd9ed0ae186480
1,319
hpp
C++
src/ContinuousCondition.hpp
Nolnocn/Bayesian-Inference
76ee29171c6e3a4a69b752c1f68ae3fef2526f92
[ "MIT" ]
1
2021-07-07T02:45:55.000Z
2021-07-07T02:45:55.000Z
src/ContinuousCondition.hpp
Nolnocn/Bayes-Classifier
76ee29171c6e3a4a69b752c1f68ae3fef2526f92
[ "MIT" ]
null
null
null
src/ContinuousCondition.hpp
Nolnocn/Bayes-Classifier
76ee29171c6e3a4a69b752c1f68ae3fef2526f92
[ "MIT" ]
null
null
null
#ifndef ContinuousCondition_hpp #define ContinuousCondition_hpp #include <string> #include <vector> #include "BayesOutcomeDefs.h" namespace Bayes { // Forward dec class BayesAction; /* * Class representing a single continuous condition of a BayesDecider * Stores data for values that fall into a range */ ...
24.425926
70
0.739196
[ "vector" ]
1eb6b00356271f58ea3ca76de68dac4cef27d36a
2,270
cpp
C++
Strings/WordCombinations.cpp
JanaSabuj/cses-fi
5879e4d936cddb0f0f0a3850daefd6e4a98babcf
[ "MIT" ]
3
2021-06-11T14:40:35.000Z
2021-10-10T12:06:40.000Z
Strings/WordCombinations.cpp
JanaSabuj/cses-fi
5879e4d936cddb0f0f0a3850daefd6e4a98babcf
[ "MIT" ]
null
null
null
Strings/WordCombinations.cpp
JanaSabuj/cses-fi
5879e4d936cddb0f0f0a3850daefd6e4a98babcf
[ "MIT" ]
null
null
null
/* Sabuj Jana / @greenindia https://www.janasabuj.github.io */ #include <bits/stdc++.h> using namespace std; #define crap ios::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL) #define int long long int #define double long double typedef vector<int> vi; typedef vector<vector<int>> vvi; typedef pair<int, int> pii; #de...
20.267857
126
0.597797
[ "vector" ]
1eb7766c22cc1c13946446b3933e39a4897a3e68
3,679
cpp
C++
test_angle.cpp
possibly-wrong/angle
77c50720c8983788dfbe68f37ad7746d5594fde4
[ "Unlicense" ]
null
null
null
test_angle.cpp
possibly-wrong/angle
77c50720c8983788dfbe68f37ad7746d5594fde4
[ "Unlicense" ]
null
null
null
test_angle.cpp
possibly-wrong/angle
77c50720c8983788dfbe68f37ad7746d5594fde4
[ "Unlicense" ]
null
null
null
#include "math_angle.h" #include <random> #include <limits> #include <iostream> using namespace math; // Compute and display angle between vectors u and v. bool show(int region, double log10_offset, int rotate, const Vector& u, const Vector& v) { Rational truth = angle_exact(u, v); if (std::isfi...
36.425743
85
0.444958
[ "vector" ]
1ebd0dac4e4bb76da8a048037b6f6f1e333660e6
2,604
cpp
C++
source/main.cpp
GeertArien/mantis-tools
919506e4081a6c9a8f982bdbb1c18cab751d6cc2
[ "MIT" ]
null
null
null
source/main.cpp
GeertArien/mantis-tools
919506e4081a6c9a8f982bdbb1c18cab751d6cc2
[ "MIT" ]
null
null
null
source/main.cpp
GeertArien/mantis-tools
919506e4081a6c9a8f982bdbb1c18cab751d6cc2
[ "MIT" ]
null
null
null
#include <iostream> #include <iomanip> #include <Parser.h> #include <Argument.h> #include <spirv_glsl.hpp> static std::vector<uint32_t> ReadSpirvFile(const char *path) { FILE *file = fopen(path, "rb"); if (!file) { fprintf(stderr, "Failed to open SPIRV file: %s\n", path); return {}; } fseek(file, 0, SEEK_END...
25.782178
123
0.667435
[ "vector" ]
363487a4d1bf3689a29d893a3cca2e50aa9531d5
63,888
cpp
C++
test/crypto_Aes192Encryptor_TestClass.cpp
toolbrew/libtoolchain
fd98be60d1c5ca62871c16c88b8e59be05d7f0ac
[ "MIT" ]
4
2019-01-30T21:04:33.000Z
2022-03-20T04:24:34.000Z
test/crypto_Aes192Encryptor_TestClass.cpp
toolbrew/libtoolchain
fd98be60d1c5ca62871c16c88b8e59be05d7f0ac
[ "MIT" ]
2
2021-11-18T09:07:53.000Z
2021-11-19T13:25:20.000Z
test/crypto_Aes192Encryptor_TestClass.cpp
toolbrew/libtoolchain
fd98be60d1c5ca62871c16c88b8e59be05d7f0ac
[ "MIT" ]
1
2021-11-18T09:11:04.000Z
2021-11-18T09:11:04.000Z
#include <iostream> #include <sstream> #include <fstream> #include <mbedtls/aes.h> #include "crypto_Aes192Encryptor_TestClass.h" #include <tc/Exception.h> #include <tc/crypto/AesEncryptor.h> #include <tc/cli/FormatUtil.h> #include <tc/io/PaddingSource.h> void crypto_Aes192Encryptor_TestClass::runAllTests(void) { ...
47.820359
206
0.776891
[ "vector" ]
3635bb4ecd80358132b68bdfa144427f8bbeaa19
46,319
cpp
C++
solid/frame/mprpc/src/mprpcmessagewriter.cpp
solidoss/solidframe
92fa8ce5737b9e88f3df3f549a38e9df79b7bf96
[ "BSL-1.0" ]
4
2020-12-05T23:33:32.000Z
2021-10-04T02:59:41.000Z
solid/frame/mprpc/src/mprpcmessagewriter.cpp
solidoss/solidframe
92fa8ce5737b9e88f3df3f549a38e9df79b7bf96
[ "BSL-1.0" ]
1
2020-03-22T20:38:05.000Z
2020-03-22T20:38:05.000Z
solid/frame/mprpc/src/mprpcmessagewriter.cpp
solidoss/solidframe
92fa8ce5737b9e88f3df3f549a38e9df79b7bf96
[ "BSL-1.0" ]
2
2021-01-30T09:08:52.000Z
2021-02-20T03:33:33.000Z
// solid/frame/ipc/src/ipcmessagereader.cpp // // Copyright (c) 2015 Valentin Palade (vipalade @ gmail . com) // // This file is part of SolidFrame framework. // // 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. // #in...
41.616352
402
0.61912
[ "solid" ]
363dc6c7975cd19976ac7318cec454110b31fd6d
1,248
cpp
C++
codeforces/C - Classroom Watch/Time limit exceeded on pretest 1.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
codeforces/C - Classroom Watch/Time limit exceeded on pretest 1.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
codeforces/C - Classroom Watch/Time limit exceeded on pretest 1.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: Oct/16/2017 17:56 * solution_verdict: Time limit exceeded on pretest 1 language: GNU C++14 * run...
27.733333
111
0.39984
[ "vector" ]
3640943250a3e451eb9dadfe3f0653667aaec806
13,773
cpp
C++
example/inverse_chi_squared_bayes_eg.cpp
oleg-alexandrov/math
2137c31eb8e52129d997a76b893f71c1da0ccc5f
[ "BSL-1.0" ]
233
2015-01-12T19:26:01.000Z
2022-03-11T09:21:47.000Z
3rdparty/boost_1_73_0/libs/math/example/inverse_chi_squared_bayes_eg.cpp
qingkouwei/mediaones
cec475e1bfd5807b5351cc7e38d244ac5298ca16
[ "MIT" ]
626
2015-02-05T18:12:27.000Z
2022-03-20T13:19:18.000Z
3rdparty/boost_1_73_0/libs/math/example/inverse_chi_squared_bayes_eg.cpp
qingkouwei/mediaones
cec475e1bfd5807b5351cc7e38d244ac5298ca16
[ "MIT" ]
243
2015-01-17T17:46:32.000Z
2022-03-07T12:56:26.000Z
// inverse_chi_squared_bayes_eg.cpp // Copyright Thomas Mang 2011. // Copyright Paul A. Bristow 2011. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) // This file is written ...
40.628319
135
0.752487
[ "model" ]
364101396cc26175a1280e35d5ecab0563bc384c
6,240
cpp
C++
AgeEstimation.cpp
wuxuef2/face
377f5d17e0d3500720f4f609c0a4d70fa02fc11b
[ "MIT" ]
18
2015-05-07T13:54:53.000Z
2020-02-29T05:21:34.000Z
AgeEstimation.cpp
wuxuef2/face
377f5d17e0d3500720f4f609c0a4d70fa02fc11b
[ "MIT" ]
null
null
null
AgeEstimation.cpp
wuxuef2/face
377f5d17e0d3500720f4f609c0a4d70fa02fc11b
[ "MIT" ]
16
2015-12-22T05:43:53.000Z
2019-12-26T02:37:09.000Z
/* * AgeEstimation.cpp * * Created on: Mar 22, 2015 * Author: wuxuef */ #include "AgeEstimation.h" //#include <direct.h> #define free2dvector(vec) \ { \ for(int i = 0; i < vec.size(); i++) vec[i].clear(); \ vec.clear(); \ } /* get reference to pixel at (col,row), ...
29.714286
103
0.651282
[ "shape", "vector" ]
364214bc72fce4810f680dbc305ec4e19ace2e16
13,788
cc
C++
components/payments/content/payment_request_spec.cc
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
components/payments/content/payment_request_spec.cc
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
components/payments/content/payment_request_spec.cc
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/payments/content/payment_request_spec.h" #include <utility> #include "base/feature_list.h" #include "base/logging.h" #include "base...
37.983471
80
0.740499
[ "vector", "transform" ]
3644fcfed9e0c116af878b33eb197b8c817ffe19
7,919
cpp
C++
ModelViewer/QtSceneFromModel_T2D_CHM_mt.cpp
COFS-UWA/MPM3D
1a0c5dc4e92dff3855367846002336ca5a18d124
[ "MIT" ]
null
null
null
ModelViewer/QtSceneFromModel_T2D_CHM_mt.cpp
COFS-UWA/MPM3D
1a0c5dc4e92dff3855367846002336ca5a18d124
[ "MIT" ]
2
2020-10-19T02:03:11.000Z
2021-03-19T16:34:39.000Z
ModelViewer/QtSceneFromModel_T2D_CHM_mt.cpp
COFS-UWA/MPM3D
1a0c5dc4e92dff3855367846002336ca5a18d124
[ "MIT" ]
1
2020-04-28T00:33:14.000Z
2020-04-28T00:33:14.000Z
#include "ModelViewer_pcp.h" #include "QtSceneFromModel_T2D_CHM_mt.h" QtSceneFromModel_T2D_CHM_mt::QtSceneFromModel_T2D_CHM_mt( QOpenGLFunctions_3_3_Core &_gl) : QtSceneFromModel(_gl), model(nullptr), pt_num(0), pts(nullptr), display_bg_mesh(true), bg_mesh_obj(_gl), display_pcls(true), pcls_obj(_gl), display_p...
24.143293
95
0.698826
[ "model" ]
3653eafbb2c449a5468dfbc4dccdd30bf8406803
29,973
hpp
C++
include/fluid/oclsph.hpp
tom91136/libfluid
a0d54d06b1fe754db14ddc7d511fb7b57a5cce45
[ "Apache-2.0" ]
4
2019-03-11T18:12:22.000Z
2019-07-11T12:39:35.000Z
include/fluid/oclsph.hpp
tom91136/libfluid
a0d54d06b1fe754db14ddc7d511fb7b57a5cce45
[ "Apache-2.0" ]
null
null
null
include/fluid/oclsph.hpp
tom91136/libfluid
a0d54d06b1fe754db14ddc7d511fb7b57a5cce45
[ "Apache-2.0" ]
null
null
null
#ifndef LIBFLUID_CLSPH_HPP #define LIBFLUID_CLSPH_HPP #define CL_HPP_TARGET_OPENCL_VERSION 120 #define CL_HPP_MINIMUM_OPENCL_VERSION 120 #define CL_HPP_CL_1_2_DEFAULT_BUILD #define CL_HPP_ENABLE_EXCEPTIONS #define GLM_ENABLE_EXPERIMENTAL #define CURVE_UINT3_TYPE glm::tvec3<size_t> #define CURVE_UINT3_CTOR(x, y, z) (...
31.751059
144
0.618924
[ "mesh", "geometry", "vector" ]
3659a371d2e8fe5b5144f4b6ecec02a21f79baf2
5,435
cpp
C++
fundamentals/operator-overload/member.cpp
kaanguney/c_plus_plus
cc7c4d26184ea9dd86aec588aa8a07dbcd65b33a
[ "MIT" ]
null
null
null
fundamentals/operator-overload/member.cpp
kaanguney/c_plus_plus
cc7c4d26184ea9dd86aec588aa8a07dbcd65b33a
[ "MIT" ]
null
null
null
fundamentals/operator-overload/member.cpp
kaanguney/c_plus_plus
cc7c4d26184ea9dd86aec588aa8a07dbcd65b33a
[ "MIT" ]
null
null
null
#include <iostream> #include "matrix.h" using namespace std; Matrix::Matrix() { // default constructor rowNumber = 0; columnNumber = 0; elements = NULL; } int Matrix::getRowNumber() const { return rowNumber; } int Matrix::getColumnNumber() const { return columnNumber; } ...
20.984556
116
0.463661
[ "object" ]
3664749bac80bf6a4102c0b44e2a9c25e0311d9e
1,596
cc
C++
test/geometry_test.cc
RuiwenTang/Skity
2f98d8bda9946a9055d955fae878fef43c4eee57
[ "MIT" ]
65
2021-08-05T09:52:49.000Z
2022-03-29T14:45:20.000Z
test/geometry_test.cc
RuiwenTang/Skity
2f98d8bda9946a9055d955fae878fef43c4eee57
[ "MIT" ]
1
2022-03-24T09:35:06.000Z
2022-03-25T06:38:20.000Z
test/geometry_test.cc
RuiwenTang/Skity
2f98d8bda9946a9055d955fae878fef43c4eee57
[ "MIT" ]
9
2021-08-08T07:30:13.000Z
2022-03-29T14:45:25.000Z
#include "src/geometry/geometry.hpp" #include <gtest/gtest.h> #include <iostream> #include <vector> #include "src/geometry/math.hpp" TEST(QUAD, tangents) { std::vector<std::array<skity::Point, 3>> pts = { {skity::Point{10, 20, 0, 1}, skity::Point{10, 20, 0, 1}, skity::Point{20, 30, 0, 1}}, {ski...
31.92
80
0.605263
[ "geometry", "vector" ]
366b4424e4eec1855c559e6e93edc6146a3a177a
13,718
cpp
C++
cpp/CF++/source/CFPP-String.cpp
vzaccaria/teasy-2.0
a0ec0e020fb0b0517e4a250e2c3cae4494cef40a
[ "MIT" ]
24
2016-04-13T10:40:16.000Z
2016-12-20T04:19:10.000Z
cpp/CF++/source/CFPP-String.cpp
vzaccaria/teasy-2.0
a0ec0e020fb0b0517e4a250e2c3cae4494cef40a
[ "MIT" ]
null
null
null
cpp/CF++/source/CFPP-String.cpp
vzaccaria/teasy-2.0
a0ec0e020fb0b0517e4a250e2c3cae4494cef40a
[ "MIT" ]
null
null
null
/******************************************************************************* * Copyright (c) 2014, Jean-David Gadina - www.xs-labs.com / www.digidna.net * Distributed under the Boost Software License, Version 1.0. * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted,...
24.98725
136
0.489503
[ "object" ]
366fc2668c6e8d4dae6a8d2df2cc1f9175f13933
3,837
hpp
C++
include/Serialization/ISerializedObject.hpp
rhymu8354/Serialization
42b8bc5cde56225dea0a6a28d8fd80f401999a2a
[ "MIT" ]
null
null
null
include/Serialization/ISerializedObject.hpp
rhymu8354/Serialization
42b8bc5cde56225dea0a6a28d8fd80f401999a2a
[ "MIT" ]
null
null
null
include/Serialization/ISerializedObject.hpp
rhymu8354/Serialization
42b8bc5cde56225dea0a6a28d8fd80f401999a2a
[ "MIT" ]
1
2021-06-27T19:22:20.000Z
2021-06-27T19:22:20.000Z
#ifndef SERIALIZATION_I_SERIALIZED_OBJECT_HPP #define SERIALIZATION_I_SERIALIZED_OBJECT_HPP /** * @file ISerializedObject.hpp * * This module declares the Serialization::ISerializedObject * interface. * * Copyright (c) 2013-2018 by Richard Walters */ #include <string> #include <SystemAbstractions/IFile.hpp> n...
32.516949
79
0.587438
[ "render", "object" ]
3674759bc46bd3140f4a541e239f1b4620830993
1,942
cpp
C++
docs/snippets/gpu/preprocessing.cpp
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
docs/snippets/gpu/preprocessing.cpp
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
docs/snippets/gpu/preprocessing.cpp
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
#include <openvino/runtime/core.hpp> #include <openvino/runtime/intel_gpu/ocl/ocl.hpp> #include <openvino/runtime/intel_gpu/properties.hpp> #include <openvino/core/preprocess/pre_post_process.hpp> ov::intel_gpu::ocl::ClImage2DTensor get_y_tensor(); ov::intel_gpu::ocl::ClImage2DTensor get_uv_tensor(); int main() { ...
35.309091
98
0.685891
[ "vector", "model" ]
367478d9760c2acccbfc50795f8869b2f9e17b6b
31,812
cpp
C++
testing_source_hdf5/testing_harness_write_hdf5.cpp
mlawsonca/empress
aa3eb8544f2e01fcbd77749f7dce1b95fbfa11e9
[ "MIT" ]
5
2018-11-28T19:38:23.000Z
2021-03-15T20:44:07.000Z
testing_source_hdf5/testing_harness_write_hdf5.cpp
mlawsonca/empress
aa3eb8544f2e01fcbd77749f7dce1b95fbfa11e9
[ "MIT" ]
null
null
null
testing_source_hdf5/testing_harness_write_hdf5.cpp
mlawsonca/empress
aa3eb8544f2e01fcbd77749f7dce1b95fbfa11e9
[ "MIT" ]
1
2018-07-18T15:22:36.000Z
2018-07-18T15:22:36.000Z
/* * Copyright 2018 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. * * The MIT License (MIT) * * Copyright (c) 2018 Sandia Corporation * * Permission is hereby granted, ...
38.235577
186
0.655224
[ "vector" ]
3676cbc71848e02fb041d0a7e9521591c8ecdd66
2,213
cpp
C++
EntityComponentSystem/PbrRenderer/Model.cpp
Spheya/Slamanander-Engine
d0708399eacab26b243045b33b51ff30d614b7bd
[ "MIT" ]
null
null
null
EntityComponentSystem/PbrRenderer/Model.cpp
Spheya/Slamanander-Engine
d0708399eacab26b243045b33b51ff30d614b7bd
[ "MIT" ]
null
null
null
EntityComponentSystem/PbrRenderer/Model.cpp
Spheya/Slamanander-Engine
d0708399eacab26b243045b33b51ff30d614b7bd
[ "MIT" ]
null
null
null
#include "Model.hpp" #include <iostream> #pragma warning(push, 0) #pragma warning(disable : 4701) #include <tiny_obj_loader.h> #pragma warning(pop) renderer::Model::Model(const std::string file) : _vao(GL_TRIANGLES, 0) { objl::Loader loader; std::vector<glm::vec3> positions; std::vector<glm::vec2> uvCoords; st...
31.169014
180
0.723904
[ "vector", "model" ]
367a5af1c4e5060a9f95bb4771a60026416311b8
8,321
cc
C++
src/main/dtw_merge.cc
takenori-y/SPTK
573df2dd032c39db2aa24de012d2fe9a44f96280
[ "Apache-2.0" ]
null
null
null
src/main/dtw_merge.cc
takenori-y/SPTK
573df2dd032c39db2aa24de012d2fe9a44f96280
[ "Apache-2.0" ]
null
null
null
src/main/dtw_merge.cc
takenori-y/SPTK
573df2dd032c39db2aa24de012d2fe9a44f96280
[ "Apache-2.0" ]
null
null
null
// ------------------------------------------------------------------------ // // Copyright 2021 SPTK Working Group // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
36.982222
159
0.570004
[ "vector" ]
367e11bfc304bd58afe19973fe12b89c4fe0f5ad
1,596
cpp
C++
simplefvm/src/FVMSolver/CoeffsPartsVelocity/Flux/VFluxPort.cpp
artvns/SimpleFvm
5a8eca332d6780e738c0bc6c8c2b787b47b5b20d
[ "MIT" ]
4
2022-01-03T08:45:55.000Z
2022-01-06T19:57:11.000Z
simplefvm/src/FVMSolver/CoeffsPartsVelocity/Flux/VFluxPort.cpp
artvns/SimpleFvm
5a8eca332d6780e738c0bc6c8c2b787b47b5b20d
[ "MIT" ]
null
null
null
simplefvm/src/FVMSolver/CoeffsPartsVelocity/Flux/VFluxPort.cpp
artvns/SimpleFvm
5a8eca332d6780e738c0bc6c8c2b787b47b5b20d
[ "MIT" ]
null
null
null
#include "VFluxPort.h" namespace fvmsolver { VFluxPort::VFluxPort( const SolverFluidPropsMask& fluid, const SolverFieldsMask& fields, const SolverMeshParamsMask& mesh, const SolverCellNumsGlobalMask& nums, const SolverAdjCellGlobalNumsVMask& adjCellNums) : ...
23.470588
63
0.64411
[ "mesh" ]
3682429dabcc680c06e24a24df6162c8b36ce561
4,103
cpp
C++
osprey/testsuite/cases/cern/root/TRandom3/TRandom3.cpp
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
osprey/testsuite/cases/cern/root/TRandom3/TRandom3.cpp
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
osprey/testsuite/cases/cern/root/TRandom3/TRandom3.cpp
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
// J.M. Dana // dana@ace.ual.es #include <stdio.h> // Compatibility with #include <errno.h> // gcc 2.96 #include <iostream> #include <sys/time.h> #include <unistd.h> #include <vector> #include <string> #include "timing.h" #include "Rtypes.h" #include "TRandom.h" #include "TRandom3.h" using namespace std; #define ...
26.301282
80
0.541555
[ "object", "vector" ]
3682b9b508188d681d60325cfe891c49a7f4532b
15,477
cc
C++
src/visualisers/TephiGrid.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
41
2018-12-07T23:10:50.000Z
2022-02-19T03:01:49.000Z
src/visualisers/TephiGrid.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
59
2019-01-04T15:43:30.000Z
2022-03-31T09:48:15.000Z
src/visualisers/TephiGrid.cc
b8raoult/magics
eb2c86ec6e392e89c90044128dc671f22283d6ad
[ "ECL-2.0", "Apache-2.0" ]
13
2019-01-07T14:36:33.000Z
2021-09-06T14:48:36.000Z
/* * (C) Copyright 1996-2016 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an in...
34.546875
117
0.558442
[ "vector" ]
3682ba8f9b54e75d3288a39352c2c4270861ca4a
21,839
cpp
C++
src/CQChartsColorEdit.cpp
SammyEnigma/CQCharts
56433e32c943272b6faaf6771d0652c0507f943e
[ "MIT" ]
14
2018-05-22T15:06:08.000Z
2022-01-20T12:18:28.000Z
src/CQChartsColorEdit.cpp
SammyEnigma/CQCharts
56433e32c943272b6faaf6771d0652c0507f943e
[ "MIT" ]
6
2020-09-04T15:49:24.000Z
2022-01-12T19:06:45.000Z
src/CQChartsColorEdit.cpp
SammyEnigma/CQCharts
56433e32c943272b6faaf6771d0652c0507f943e
[ "MIT" ]
9
2019-04-01T13:10:11.000Z
2022-01-22T01:46:27.000Z
#include <CQChartsColorEdit.h> #include <CQColors.h> #include <CQChartsObj.h> #include <CQChartsWidgetUtil.h> #include <CQChartsUtil.h> #include <CQChartsVariant.h> #include <CQCharts.h> #include <CQColorsEditModel.h> #include <CQPropertyView.h> #include <CQWidgetMenu.h> #include <CQRealSpin.h> #include <CQIntegerSpin...
24.483184
96
0.670772
[ "object", "model" ]