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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63a80bbe143fb119463e5d2338a7175850b44a13 | 75,656 | cpp | C++ | source/solution_zoo/xstream/methods/fasterrcnnmethod/src/faster_rcnn_imp.cpp | HorizonRobotics-Platform/AI-EXPRESS | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 98 | 2020-09-11T13:52:44.000Z | 2022-03-23T11:52:02.000Z | source/solution_zoo/xstream/methods/fasterrcnnmethod/src/faster_rcnn_imp.cpp | HorizonRobotics-Platform/ai-express | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 8 | 2020-10-19T14:23:30.000Z | 2022-03-16T01:00:07.000Z | source/solution_zoo/xstream/methods/fasterrcnnmethod/src/faster_rcnn_imp.cpp | HorizonRobotics-Platform/AI-EXPRESS | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 28 | 2020-09-17T14:20:35.000Z | 2022-01-10T16:26:00.000Z | //
// Created by yaoyao.sun on 2019-04-23.
// Copyright (c) 2019 Horizon Robotics. All rights reserved.
//
#include <assert.h>
#include <stdint.h>
#include <algorithm>
#include <fstream>
#include <map>
#include <memory>
#include <mutex>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include <u... | 37.771343 | 80 | 0.651898 | [
"shape",
"vector",
"model"
] |
63aad3b56d469cc1c4ec597ed14869d02695c4a1 | 3,079 | cc | C++ | src/pcl_viewer_custom.cc | vincentlooi/labelme_3D | c083299ac512c6f6bc0ae35cabda8f39bc3953f4 | [
"MIT"
] | 8 | 2019-01-08T16:05:58.000Z | 2021-12-27T10:29:27.000Z | src/pcl_viewer_custom.cc | vincentlooi/labelme_3D | c083299ac512c6f6bc0ae35cabda8f39bc3953f4 | [
"MIT"
] | null | null | null | src/pcl_viewer_custom.cc | vincentlooi/labelme_3D | c083299ac512c6f6bc0ae35cabda8f39bc3953f4 | [
"MIT"
] | 4 | 2019-08-12T18:42:55.000Z | 2020-06-30T06:48:33.000Z | #include "pcl_viewer_custom.hh"
#include <vtkVersion.h>
#include <vtkPolyData.h>
#include <vtkCamera.h>
#include <vtkWindowToImageFilter.h>
#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkObjectFactory.h>
#if VTK_RENDERING_BACKEND_OPENGL_VERSION < 2
#include ... | 22.977612 | 165 | 0.659955 | [
"render"
] |
63acbf651c9dc690f6d63d98b35ce342473bfab6 | 843 | cc | C++ | app/menus/menu_model.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | app/menus/menu_model.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | app/menus/menu_model.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009 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 "app/menus/menu_model.h"
namespace menus {
bool MenuModel::GetModelAndIndexForCommandId(int command_id,
... | 29.068966 | 77 | 0.616845 | [
"model"
] |
63afc81814400f4fc0288ed91ed586cf4b852abc | 24,022 | hpp | C++ | lib/event/EventManager.hpp | carnegie-technologies/pravala-toolkit | 77dac4a910dc0692b7515a8e3b77d34eb2888256 | [
"Apache-2.0"
] | null | null | null | lib/event/EventManager.hpp | carnegie-technologies/pravala-toolkit | 77dac4a910dc0692b7515a8e3b77d34eb2888256 | [
"Apache-2.0"
] | null | null | null | lib/event/EventManager.hpp | carnegie-technologies/pravala-toolkit | 77dac4a910dc0692b7515a8e3b77d34eb2888256 | [
"Apache-2.0"
] | 2 | 2020-02-07T00:16:51.000Z | 2020-02-11T15:10:45.000Z | /*
* Copyright 2019 Carnegie Technologies
*
* 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 l... | 50.150313 | 119 | 0.635251 | [
"object"
] |
63b2d2be0026d66add53aae997996e0a4d286999 | 772 | cxx | C++ | cli/tasks/db-task.cxx | Sigill/Elfxplore | 1da52555ab7b71fd0a6e9f23d1051050259eb44a | [
"MIT"
] | null | null | null | cli/tasks/db-task.cxx | Sigill/Elfxplore | 1da52555ab7b71fd0a6e9f23d1051050259eb44a | [
"MIT"
] | null | null | null | cli/tasks/db-task.cxx | Sigill/Elfxplore | 1da52555ab7b71fd0a6e9f23d1051050259eb44a | [
"MIT"
] | null | null | null | #include "db-task.hxx"
#include <iostream>
#include "Database3.hxx"
namespace bpo = boost::program_options;
boost::program_options::options_description DB_Task::options()
{
bpo::options_description opt("Options");
opt.add_options()
("clear-symbols", "Clear the symbols table.")
("optimize", "Optimize... | 19.3 | 74 | 0.651554 | [
"vector"
] |
63b6a545a2220868587c030e35268a3ed627b13a | 24,655 | cpp | C++ | src/lib/objects/acatalogue.cpp | leaderit/ananas-qt4 | 6830bf5074b316582a38f6bed147a1186dd7cc95 | [
"MIT"
] | 1 | 2021-03-16T21:47:41.000Z | 2021-03-16T21:47:41.000Z | src/lib/objects/acatalogue.cpp | leaderit/ananas-qt4 | 6830bf5074b316582a38f6bed147a1186dd7cc95 | [
"MIT"
] | null | null | null | src/lib/objects/acatalogue.cpp | leaderit/ananas-qt4 | 6830bf5074b316582a38f6bed147a1186dd7cc95 | [
"MIT"
] | null | null | null | /****************************************************************************
** $Id: acatalogue.cpp,v 1.3 2008/11/09 21:09:11 leader Exp $
**
** Catalogue metadata object implementation file of
** Ananas application library
**
** Created : 20031201
**
** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved.
*... | 21.495205 | 106 | 0.665423 | [
"object"
] |
63b8b7c7cbb1e6fa13f8a654ce36290b3e989a99 | 682 | cpp | C++ | Problems/0769. Max Chunks To Make Sorted.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0769. Max Chunks To Make Sorted.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0769. Max Chunks To Make Sorted.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | class Solution {
public:
int maxChunksToSorted(vector<int>& arr) {
// SOLUTION 1 =============================
stack<int> st;
for(auto i:arr){
int curMax = (st.empty()) ? i : max(i, st.top());
while(!st.empty() and st.top() > i)
s... | 24.357143 | 61 | 0.347507 | [
"vector"
] |
63bac102ee2d22eb6d7867da4d0f46d082832e06 | 2,120 | cc | C++ | Geometry/CommonTopologies/src/RectangularStripTopology.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | Geometry/CommonTopologies/src/RectangularStripTopology.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | Geometry/CommonTopologies/src/RectangularStripTopology.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include "Geometry/CommonTopologies/interface/RectangularStripTopology.h"
#include <iostream>
#include <cmath>
#include <algorithm>
RectangularStripTopology::RectangularStripTopology(int ns, float p, float l) :
thePitch(p), theNumberOfStrips(ns), theStripLength(l) {
theOffset = -0.5f*theNumberOfStrips * thePitc... | 29.444444 | 94 | 0.722642 | [
"geometry"
] |
63bdb96b20ff62e3e1fdb420c25bfb6c7d285bd5 | 5,698 | hpp | C++ | openstudiocore/src/openstudio_lib/YearSettingsWidget.hpp | hellok-coder/OS-Testing | e9e18ad9e99f709a3f992601ed8d2e0662175af4 | [
"blessing"
] | 1 | 2019-11-12T02:07:03.000Z | 2019-11-12T02:07:03.000Z | openstudiocore/src/openstudio_lib/YearSettingsWidget.hpp | hellok-coder/OS-Testing | e9e18ad9e99f709a3f992601ed8d2e0662175af4 | [
"blessing"
] | 1 | 2019-02-04T23:30:45.000Z | 2019-02-04T23:30:45.000Z | openstudiocore/src/openstudio_lib/YearSettingsWidget.hpp | hellok-coder/OS-Testing | e9e18ad9e99f709a3f992601ed8d2e0662175af4 | [
"blessing"
] | null | null | null | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 30.967391 | 162 | 0.734117 | [
"vector",
"model"
] |
63bf19c79ffd44a6cf1e747095d4fe0ac8726e81 | 1,295 | cpp | C++ | C++/0073-Set-Matrix-Zeroes/soln.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/0073-Set-Matrix-Zeroes/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/0073-Set-Matrix-Zeroes/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | typedef vector< int > vi;
typedef vector< vi > vvi;
typedef pair< int,int > ii;
typedef long long ll;
#define REP(i,a,b) for (int i = a; i < b; i++)
#define sz(a) int((a).size())
#define pb push_back
#define all(c) (c).begin(),(c).end()
#define tr(c,i) for(typeof((c).begin() i = (c).begin(); i != (c).end(); i++)
#defin... | 28.152174 | 76 | 0.425483 | [
"vector"
] |
63c3308965ad51aa75299db0416f697296fe8aff | 2,950 | cc | C++ | soa/js/testing/js_exception_passing_module.cc | etnrlz/rtbkit | 0d9cd9e2ee2d7580a27453ad0a2d815410d87091 | [
"Apache-2.0"
] | 737 | 2015-01-04T01:40:46.000Z | 2022-03-07T10:09:23.000Z | js/testing/js_exception_passing_module.cc | leobispo/soa | 57eeddd841157250232004af9a4d69b487c43ae3 | [
"Apache-2.0"
] | 56 | 2015-01-05T16:01:03.000Z | 2020-06-22T19:02:37.000Z | js/testing/js_exception_passing_module.cc | leobispo/soa | 57eeddd841157250232004af9a4d69b487c43ae3 | [
"Apache-2.0"
] | 329 | 2015-01-01T06:54:27.000Z | 2022-02-12T22:21:02.000Z | /* v8_inheritance_module.cc -*- C++ -*-
Jeremy Barnes, 26 July 2010
Copyright (c) 2010 Datacratic. All rights reserved.
Module to test v8 inheritance from C++.
*/
#include <signal.h>
#include "soa/js/js_wrapped.h"
#include "soa/js/js_utils.h"
#include "soa/js/js_regist... | 25.877193 | 83 | 0.573898 | [
"object"
] |
63c4454ae86ad636a4664daf076ec810d5cac4af | 1,263 | cpp | C++ | LeetCode/4. Median of Two Sorted Arrays.cpp | anubhawbhalotia/Competitive-Programming | 32d7003abf9af4999b3dfa78fe1df9022ebbf50b | [
"MIT"
] | null | null | null | LeetCode/4. Median of Two Sorted Arrays.cpp | anubhawbhalotia/Competitive-Programming | 32d7003abf9af4999b3dfa78fe1df9022ebbf50b | [
"MIT"
] | null | null | null | LeetCode/4. Median of Two Sorted Arrays.cpp | anubhawbhalotia/Competitive-Programming | 32d7003abf9af4999b3dfa78fe1df9022ebbf50b | [
"MIT"
] | 1 | 2020-05-20T18:36:31.000Z | 2020-05-20T18:36:31.000Z | class Solution {
public:
double findMedianSortedArrays(vector<int>& n1, vector<int>& n2) {
int m = n1.size(), n = n2.size(), p = (m + n - 1) / 2;
if(m == 0)
return (n2[n / 2] + n2[(n - 1) / 2]) / 2.0;
if(n == 0)
return (n1[m / 2] + n1[(m - 1) / 2]) / 2.0;
int ... | 30.804878 | 69 | 0.292162 | [
"vector"
] |
63cf8ea491f0d26d9b40295092a2f7b778f22599 | 1,266 | hpp | C++ | src/ProgrammersGlasses/modules/INode.hpp | vividos/ProgrammersGlasses | d54f4dce46aa1db1b2fb5db8f6b00366aaf23e02 | [
"MIT"
] | 1 | 2020-05-11T11:46:38.000Z | 2020-05-11T11:46:38.000Z | src/ProgrammersGlasses/modules/INode.hpp | vividos/ProgrammersGlasses | d54f4dce46aa1db1b2fb5db8f6b00366aaf23e02 | [
"MIT"
] | null | null | null | src/ProgrammersGlasses/modules/INode.hpp | vividos/ProgrammersGlasses | d54f4dce46aa1db1b2fb5db8f6b00366aaf23e02 | [
"MIT"
] | null | null | null | //
// Programmer's Glasses - a developer's file content viewer
// Copyright (c) 2020 Michael Fink
//
/// \file INode.hpp
/// \brief single node in a tree structure of a reader
//
#pragma once
#include <vector>
#include <memory>
class IContentView;
/// Icon IDs from resources for node tree items
enum class NodeTreeIc... | 27.521739 | 77 | 0.683254 | [
"object",
"vector"
] |
63d178f3e2d5311195ada89a68db19423bfebcf1 | 7,933 | cpp | C++ | dev/Code/Framework/AzFramework/AzFramework/Scene/SceneSystemComponent.cpp | pawandayma/lumberyard | e178f173f9c21369efd8c60adda3914e502f006a | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Framework/AzFramework/AzFramework/Scene/SceneSystemComponent.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Framework/AzFramework/AzFramework/Scene/SceneSystemComponent.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license belo... | 39.665 | 253 | 0.629522 | [
"vector"
] |
63d3530c9e328bdc3bbd40174d507ea50bc7fe17 | 11,298 | cpp | C++ | qmf/wals/WALSEngine.cpp | taozhijiang/qmf | ed2a46222f7e6113b61fb36ce669190ed6e0965a | [
"Apache-2.0"
] | 1 | 2020-05-03T09:23:58.000Z | 2020-05-03T09:23:58.000Z | qmf/wals/WALSEngine.cpp | taozhijiang/qmf | ed2a46222f7e6113b61fb36ce669190ed6e0965a | [
"Apache-2.0"
] | null | null | null | qmf/wals/WALSEngine.cpp | taozhijiang/qmf | ed2a46222f7e6113b61fb36ce669190ed6e0965a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 Quora, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 31.558659 | 80 | 0.589839 | [
"vector"
] |
63d8e67fbaf0da7f44b180964a26a6544effd201 | 3,549 | cpp | C++ | leetcode/algorithms/bfs/Q200-number-of-islands.cpp | jatin69/Revision-cpp | 52742ea76ee2440d92b116252399360fef46e0c7 | [
"MIT"
] | 4 | 2020-01-16T14:49:46.000Z | 2021-08-23T12:45:19.000Z | leetcode/algorithms/bfs/Q200-number-of-islands.cpp | jatin69/coding-practice | 52742ea76ee2440d92b116252399360fef46e0c7 | [
"MIT"
] | 2 | 2018-06-06T13:08:11.000Z | 2018-10-02T19:07:32.000Z | leetcode/algorithms/bfs/Q200-number-of-islands.cpp | jatin69/coding-practice | 52742ea76ee2440d92b116252399360fef46e0c7 | [
"MIT"
] | 5 | 2018-10-02T13:49:16.000Z | 2021-08-11T07:29:50.000Z | /*
* Author : Jatin Rohilla
* Date : June-July-2019
*
* Compiler : g++ 5.1.0
* flags : -std=c++14
*/
#include<bits/stdc++.h>
using namespace std;
// better - 12ms
class Solution {
public:
void capture(vector<vector<char>>& grid, int i, int j){
if(i<0 || j<0 || i>=grid.size() || j>=grid[0].siz... | 26.288889 | 91 | 0.32009 | [
"vector"
] |
63da7fb3464b24646f48b7b3763c1e60766624ee | 1,697 | cc | C++ | src/lib.cc | rbrisita/node-ntsuspend | 1ad2b43b156dfaa893f750c201f0681b2c87106b | [
"MIT"
] | 4 | 2021-05-28T23:53:29.000Z | 2021-12-16T02:38:03.000Z | src/lib.cc | rbrisita/node-ntsuspend | 1ad2b43b156dfaa893f750c201f0681b2c87106b | [
"MIT"
] | 2 | 2021-05-28T23:58:13.000Z | 2021-11-08T17:20:10.000Z | src/lib.cc | rbrisita/node-ntsuspend | 1ad2b43b156dfaa893f750c201f0681b2c87106b | [
"MIT"
] | 1 | 2021-06-17T05:13:19.000Z | 2021-06-17T05:13:19.000Z | #include <windows.h>
#include <napi.h>
#include <math.h>
#define NT_SUCCESS(Status) (((NTSTATUS)(Status)) >= 0)
typedef NTSTATUS (NTAPI *pNtSuspendProcess)(IN HANDLE ProcessHandle);
static pNtSuspendProcess NtSuspendProcess;
static pNtSuspendProcess NtResumeProcess;
static inline bool ntsuspend(const Napi::Value p... | 33.27451 | 90 | 0.746022 | [
"object"
] |
63dc26ef0ba12bef8e258dc2ed364af16285a9b1 | 32,035 | hpp | C++ | include/bencode/detail/bvalue/basic_bvalue.hpp | fbdtemme/bencode | edf7dd5b580c44723821dbf737c8412d628294e4 | [
"MIT"
] | 25 | 2020-08-24T01:54:10.000Z | 2021-12-22T08:55:54.000Z | include/bencode/detail/bvalue/basic_bvalue.hpp | fbdtemme/bencode | edf7dd5b580c44723821dbf737c8412d628294e4 | [
"MIT"
] | 1 | 2021-12-29T05:38:56.000Z | 2021-12-29T05:38:56.000Z | include/bencode/detail/bvalue/basic_bvalue.hpp | fbdtemme/bencode | edf7dd5b580c44723821dbf737c8412d628294e4 | [
"MIT"
] | 4 | 2020-08-18T19:31:26.000Z | 2022-02-01T18:57:51.000Z | #pragma once
#include <compare>
#include <iosfwd>
#include <limits>
#include <type_traits>
#include <variant>
#include <fmt/format.h>
#include "bencode/detail/concepts.hpp"
#include "bencode/detail/utils.hpp"
#include "bencode/detail/bad_conversion.hpp"
#include "bencode/detail/bencode_type.hpp"
#include "bencode/d... | 41.766623 | 126 | 0.625597 | [
"object"
] |
63dca029e26c83639be2430467693aaa2d09f28b | 5,464 | cpp | C++ | src/Intersection.cpp | xichen-de/ConcurrentTrafficSimulation | 27418cdd44b6bd74ab798fe319de70549ba54ef7 | [
"MIT"
] | null | null | null | src/Intersection.cpp | xichen-de/ConcurrentTrafficSimulation | 27418cdd44b6bd74ab798fe319de70549ba54ef7 | [
"MIT"
] | null | null | null | src/Intersection.cpp | xichen-de/ConcurrentTrafficSimulation | 27418cdd44b6bd74ab798fe319de70549ba54ef7 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2021 Xi Chen
//
// 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, mer... | 34.802548 | 127 | 0.69235 | [
"vector"
] |
63df5032f53516197cc8f9a079634c42a4212c83 | 921 | cpp | C++ | Algorithm_1001-2000/id1035_UncrossedLines/code.cpp | Louis266/LeetCode | 467a25ae2206d1c1e3ec52c155d3cb07395d5f95 | [
"MIT"
] | null | null | null | Algorithm_1001-2000/id1035_UncrossedLines/code.cpp | Louis266/LeetCode | 467a25ae2206d1c1e3ec52c155d3cb07395d5f95 | [
"MIT"
] | null | null | null | Algorithm_1001-2000/id1035_UncrossedLines/code.cpp | Louis266/LeetCode | 467a25ae2206d1c1e3ec52c155d3cb07395d5f95 | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
using namespace std;
int maxUncrossedLines(vector<int>& nums1, vector<int>& nums2) {
int m = nums1.size();
int n = nums2.size();
vector<vector<int> > dp (m+1, vector<int>(n+1));
for (int i = 1; i <= m; i++)
{
int num1 = nums1[i-1];
for (int j ... | 18.795918 | 63 | 0.446254 | [
"vector"
] |
63e4e586106072baef407650c7d89e26a8f004cf | 584 | hh | C++ | src/Waffle/Container/Argument/ArgumentResolverInterface.hh | azjezz/waffle | 3a880ac4e7bd10739bc7134aaf1a531bfb623ba3 | [
"MIT"
] | 5 | 2018-11-27T20:20:13.000Z | 2018-12-28T15:30:35.000Z | src/Waffle/Container/Argument/ArgumentResolverInterface.hh | azjezz/waffle | 3a880ac4e7bd10739bc7134aaf1a531bfb623ba3 | [
"MIT"
] | 3 | 2018-12-13T19:11:09.000Z | 2018-12-21T01:11:51.000Z | src/Waffle/Container/Argument/ArgumentResolverInterface.hh | azjezz/waffle | 3a880ac4e7bd10739bc7134aaf1a531bfb623ba3 | [
"MIT"
] | null | null | null | <?hh // strict
namespace Waffle\Container\Argument;
use type Waffle\Container\ContainerAwareInterface;
use type ReflectionFunctionAbstract;
interface ArgumentResolverInterface extends ContainerAwareInterface
{
/**
* Resolve a vector of arguments to their concrete implementations.
*/
public function... | 26.545455 | 72 | 0.731164 | [
"vector"
] |
63ee1825b2aa3ca84b3903449a422bd2f6bd8cc7 | 23,867 | cpp | C++ | Source/Source/KG3DEngine/KG3DEngine/KG3DFlexibleBody.cpp | uvbs/FullSource | 07601c5f18d243fb478735b7bdcb8955598b9a90 | [
"MIT"
] | 2 | 2018-07-26T07:58:14.000Z | 2019-05-31T14:32:18.000Z | Jx3Full/Source/Source/KG3DEngine/KG3DEngine/KG3DFlexibleBody.cpp | RivenZoo/FullSource | cfd7fd7ad422fd2dae5d657a18839c91ff9521fd | [
"MIT"
] | null | null | null | Jx3Full/Source/Source/KG3DEngine/KG3DEngine/KG3DFlexibleBody.cpp | RivenZoo/FullSource | cfd7fd7ad422fd2dae5d657a18839c91ff9521fd | [
"MIT"
] | 5 | 2021-02-03T10:25:39.000Z | 2022-02-23T07:08:37.000Z | //////////////////////////////////////////////////////////////////////////////////
////
//// FileName : KG3DFlexibleBody.cpp
//// Version : 1.0
//// Creator : Wu Caizhong
//// Create Date : 2008/12/24 15:12:14
//// Comment :
////
/////////////////////////////////////////////////////////////... | 30.71686 | 162 | 0.587296 | [
"object",
"vector",
"model"
] |
63f1b21515553b98f37f63226085598fd32097f8 | 4,085 | cc | C++ | SimG4Core/Application/test/SimTrackSimVertexDumper.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 1 | 2020-02-07T11:20:02.000Z | 2020-02-07T11:20:02.000Z | SimG4Core/Application/test/SimTrackSimVertexDumper.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | SimG4Core/Application/test/SimTrackSimVertexDumper.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 2 | 2019-09-27T08:33:22.000Z | 2019-11-14T10:52:30.000Z | // -*- C++ -*-
//
// Package: SimTrackerDumper
// Class: SimTrackSimVertexDumper
//
/*
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
//
// system include files
#include <memory>
#include "SimG4Core/Application/test/SimTrackSimVertexDumper.h"
// user include fil... | 36.473214 | 114 | 0.675398 | [
"vector"
] |
63f1cb7a0b779c3aed7cce7fe3942eb5b67b0dd5 | 1,244 | cpp | C++ | src/util/cfg.cpp | jie-meng/Util | edf197b61f8606c72fc8f3b0bdbb46b57187b2ff | [
"MIT"
] | 6 | 2017-07-16T17:55:54.000Z | 2021-01-06T15:40:49.000Z | src/util/cfg.cpp | joshua-meng/Util | edf197b61f8606c72fc8f3b0bdbb46b57187b2ff | [
"MIT"
] | 30 | 2015-05-08T03:21:10.000Z | 2017-05-07T12:37:06.000Z | src/util/cfg.cpp | joshua-meng/Util | edf197b61f8606c72fc8f3b0bdbb46b57187b2ff | [
"MIT"
] | 2 | 2017-03-16T08:48:34.000Z | 2017-06-20T10:56:19.000Z | #include "cfg.hpp"
#include <vector>
#include <list>
#include <algorithm>
#include "file.hpp"
namespace util
{
typedef std::vector<std::string> StrVector;
typedef std::list<std::string> StrList;
void TextCfg::load(const std::string& cfg_file)
{
cfg_file_ = cfg_file;
cfg_map_.clear();
if (isPathFile(cfg_... | 23.471698 | 93 | 0.598875 | [
"vector"
] |
1204ec9bbb617d3ec4e092cb2a4988b52b2a66de | 18,947 | hh | C++ | unisim/component/cxx/processor/arm/cpu.hh | binsec/unisim_archisec | 6556a45c180b6769dc1850ff3f695707d8835e90 | [
"BSD-3-Clause"
] | null | null | null | unisim/component/cxx/processor/arm/cpu.hh | binsec/unisim_archisec | 6556a45c180b6769dc1850ff3f695707d8835e90 | [
"BSD-3-Clause"
] | null | null | null | unisim/component/cxx/processor/arm/cpu.hh | binsec/unisim_archisec | 6556a45c180b6769dc1850ff3f695707d8835e90 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2007-2019,
* Commissariat a l'Energie Atomique (CEA)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above c... | 35.481273 | 136 | 0.601837 | [
"object",
"vector"
] |
1206a44a31e6dc4d5d1f53b4cb7b638a4ae788ed | 485 | hpp | C++ | projects/PolyhedralModel/projects/spmd-generator/toolboxes/rose-toolbox.hpp | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 4 | 2015-03-17T13:52:21.000Z | 2022-01-12T05:32:47.000Z | projects/PolyhedralModel/projects/spmd-generator/toolboxes/rose-toolbox.hpp | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | null | null | null | projects/PolyhedralModel/projects/spmd-generator/toolboxes/rose-toolbox.hpp | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 2 | 2019-02-19T01:27:51.000Z | 2019-02-19T12:29:49.000Z |
#ifndef __ROSE_TOOLBOX_HPP__
#define __ROSE_TOOLBOX_HPP__
#include <vector>
#include <utility>
class SgExpression;
#include "rose/Variable.hpp"
SgExpression * vecToExp(std::vector<std::pair<RoseVariable, int> > & vec);
SgExpression * genAnd(std::vector<SgExpression *> & terms);
SgExpression * genMin(std::vector<Sg... | 24.25 | 74 | 0.750515 | [
"vector"
] |
1209800588304b3193ad33e334bcd963fc8e6c0f | 5,232 | cpp | C++ | src/GrassObject.cpp | YuqiaoZhang/ResponsiveGrassDemo | 3b5a5c0fdd45e5433ca7bf64139140458c34078f | [
"BSD-3-Clause"
] | null | null | null | src/GrassObject.cpp | YuqiaoZhang/ResponsiveGrassDemo | 3b5a5c0fdd45e5433ca7bf64139140458c34078f | [
"BSD-3-Clause"
] | null | null | null | src/GrassObject.cpp | YuqiaoZhang/ResponsiveGrassDemo | 3b5a5c0fdd45e5433ca7bf64139140458c34078f | [
"BSD-3-Clause"
] | null | null | null | /**
* (c) Klemens Jahrmann
* klemens.jahrmann@net1220.at
*/
#include "GrassObject.h"
GrassObject::GrassObject(const std::string& filename, const SceneObjectGeometry::BasicGeometry type, const glm::vec3& scale, const bool generatePhysicalObject, const float staticFriction, const float dynamicFriction, const float rest... | 34.88 | 630 | 0.692469 | [
"geometry",
"vector",
"model",
"transform"
] |
120ba7a59a69d03c2ca72ebd3fa41c389a2bfe41 | 27,658 | cpp | C++ | media/codec2/components/gav1/C2SoftGav1Dec.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | null | null | null | media/codec2/components/gav1/C2SoftGav1Dec.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | null | null | null | media/codec2/components/gav1/C2SoftGav1Dec.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | 2 | 2021-07-08T07:42:11.000Z | 2021-07-09T21:56:10.000Z | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 35.323116 | 84 | 0.620182 | [
"vector"
] |
120ce80e5c0f1d8c6554c7b6eb2abc1730dc7dd6 | 101,548 | cpp | C++ | sdktools/debuggers/exts/extdll/analyze.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | sdktools/debuggers/exts/extdll/analyze.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | sdktools/debuggers/exts/extdll/analyze.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //----------------------------------------------------------------------------
//
// Generic failure analysis framework.
//
// Copyright (C) Microsoft Corporation, 2001.
//
//----------------------------------------------------------------------------
#include "precomp.h"
#pragma hdrstop
#include <time.h>
... | 29.256122 | 103 | 0.5045 | [
"object"
] |
120ebc5fc94670d0ebacbed0233655628052e3c0 | 32,088 | cxx | C++ | Common/DataModel/Testing/Cxx/otherStructuredGrid.cxx | LongerVisionUSA/VTK | 1170774b6611c71b95c28bb821d51c2c18ff091f | [
"BSD-3-Clause"
] | 1 | 2019-05-31T14:00:53.000Z | 2019-05-31T14:00:53.000Z | Common/DataModel/Testing/Cxx/otherStructuredGrid.cxx | LongerVisionUSA/VTK | 1170774b6611c71b95c28bb821d51c2c18ff091f | [
"BSD-3-Clause"
] | null | null | null | Common/DataModel/Testing/Cxx/otherStructuredGrid.cxx | LongerVisionUSA/VTK | 1170774b6611c71b95c28bb821d51c2c18ff091f | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Visualization Toolkit
Module: otherStructuredGrid.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 softw... | 25.08835 | 98 | 0.577568 | [
"3d"
] |
120ebca448a3670354939e245b9139bc50d0d2d3 | 1,657 | cpp | C++ | src/Utils/Python/ConstantsPython.cpp | DockBio/utilities | 213ed5ac2a64886b16d0fee1fcecb34d36eea9e9 | [
"BSD-3-Clause"
] | null | null | null | src/Utils/Python/ConstantsPython.cpp | DockBio/utilities | 213ed5ac2a64886b16d0fee1fcecb34d36eea9e9 | [
"BSD-3-Clause"
] | null | null | null | src/Utils/Python/ConstantsPython.cpp | DockBio/utilities | 213ed5ac2a64886b16d0fee1fcecb34d36eea9e9 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.\n
* See LICENSE.txt for details.
*/
#include <Utils/Geometry/ElementData.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
using... | 46.027778 | 86 | 0.750754 | [
"geometry"
] |
1219a1f327fe84268c4bc5db26996ef8e8508bc5 | 10,212 | cpp | C++ | gempyrelib/src/graphics.cpp | mmertama/Gempyre | 7fa25471f565a95d9959c1345ce86cc6aaa1d5d5 | [
"MIT"
] | 3 | 2021-01-07T07:52:44.000Z | 2021-08-06T06:13:17.000Z | gempyrelib/src/graphics.cpp | mmertama/Gempyre | 7fa25471f565a95d9959c1345ce86cc6aaa1d5d5 | [
"MIT"
] | null | null | null | gempyrelib/src/graphics.cpp | mmertama/Gempyre | 7fa25471f565a95d9959c1345ce86cc6aaa1d5d5 | [
"MIT"
] | 1 | 2020-03-24T14:12:39.000Z | 2020-03-24T14:12:39.000Z | #include "gempyre_graphics.h"
#include "gempyre_utils.h"
#include <any>
using namespace Gempyre;
CanvasData::~CanvasData() {
}
CanvasDataPtr CanvasElement::makeCanvas(int width, int height) { //could be const, but is it sustainable?
gempyre_graphics_assert(width > 0 && height > 0, "Graphics size is expected be m... | 42.907563 | 175 | 0.585096 | [
"vector",
"transform"
] |
1219e1eac99fd59b372b44991d7b73fcbbc2b8d1 | 1,676 | cpp | C++ | libot/core/memberreference.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | 6 | 2021-11-12T15:03:53.000Z | 2022-01-28T18:30:33.000Z | libot/core/memberreference.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | libot/core/memberreference.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | // ObjectTalk Scripting Language
// Copyright (c) 1993-2022 Johan A. Goossens. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
// Include files
//
#include "ot/function.h"
#include "ot/boundfunction.h"
#include "ot/memb... | 22.648649 | 101 | 0.723747 | [
"object",
"model"
] |
121e11aa967e36b827887d6699a271cbf22b6f27 | 12,287 | cpp | C++ | olp-cpp-sdk-dataservice-write/src/IndexLayerClientImpl.cpp | heremaps/here-olp-edge-sdk-cpp | b8afbd496390e3ef4eba2e6ff2b78a63352a48e9 | [
"Apache-2.0"
] | 21 | 2019-07-03T07:26:52.000Z | 2019-09-04T08:35:07.000Z | olp-cpp-sdk-dataservice-write/src/IndexLayerClientImpl.cpp | heremaps/here-olp-sdk-cpp | b8afbd496390e3ef4eba2e6ff2b78a63352a48e9 | [
"Apache-2.0"
] | 639 | 2019-09-13T17:14:24.000Z | 2020-05-13T11:49:14.000Z | olp-cpp-sdk-dataservice-write/src/IndexLayerClientImpl.cpp | heremaps/here-olp-edge-sdk-cpp | b8afbd496390e3ef4eba2e6ff2b78a63352a48e9 | [
"Apache-2.0"
] | 10 | 2019-07-03T07:52:18.000Z | 2019-08-22T01:13:09.000Z | /*
* Copyright (C) 2019-2021 HERE Europe B.V.
*
* 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... | 35.409222 | 80 | 0.67722 | [
"model"
] |
1226d993e9a68b28500839f7f7065a0653d0ddd5 | 10,724 | cpp | C++ | src/luxcorescenedemo.cpp | SimonDanisch/LuxRay.jl | b949f6b5cec6280fba6be661b6beb21a14cb5d78 | [
"MIT"
] | null | null | null | src/luxcorescenedemo.cpp | SimonDanisch/LuxRay.jl | b949f6b5cec6280fba6be661b6beb21a14cb5d78 | [
"MIT"
] | 5 | 2015-11-07T16:25:34.000Z | 2015-11-07T16:31:06.000Z | src/luxcorescenedemo.cpp | SimonDanisch/LuxRay.jl | b949f6b5cec6280fba6be661b6beb21a14cb5d78 | [
"MIT"
] | 2 | 2015-11-07T11:43:49.000Z | 2021-10-01T18:02:04.000Z | /***************************************************************************
* Copyright 1998-2013 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxRender. *
* ... | 37.496503 | 132 | 0.556509 | [
"mesh",
"render",
"object",
"vector",
"transform",
"3d"
] |
122b3b7195ff7173c665b9bcaa327d7556d232cc | 287 | hh | C++ | includes/emmagic/stl.hh | arcanis/emmagic | 0144983123e5d380fdf3efc1af672cfb3d4a1de7 | [
"MIT",
"Unlicense"
] | 5 | 2019-10-28T11:03:43.000Z | 2022-01-31T20:41:26.000Z | includes/emmagic/stl.hh | arcanis/emmagic | 0144983123e5d380fdf3efc1af672cfb3d4a1de7 | [
"MIT",
"Unlicense"
] | null | null | null | includes/emmagic/stl.hh | arcanis/emmagic | 0144983123e5d380fdf3efc1af672cfb3d4a1de7 | [
"MIT",
"Unlicense"
] | null | null | null | #pragma once
#ifndef EMMAGIC_READY
# error "Please include 'emmagic/magic.hh' before this file"
#endif
#include "./stl/array.hh"
#include "./stl/list.hh"
#include "./stl/map.hh"
#include "./stl/optional.hh"
#include "./stl/set.hh"
#include "./stl/string.hh"
#include "./stl/vector.hh"
| 20.5 | 60 | 0.69338 | [
"vector"
] |
122c33be75a244caee6b649624458221c3ab23d7 | 2,178 | cpp | C++ | SNTDataBase/src/LoaderUnloader/CsvReader.cpp | mihaillatyshov/SNTDataBase | a8341cf57a4bb24315d3b6b5cad1ec1b286b2812 | [
"MIT"
] | 3 | 2021-06-29T08:27:17.000Z | 2021-09-09T16:01:35.000Z | SNTDataBase/src/LoaderUnloader/CsvReader.cpp | mihaillatyshov/SNTDataBase | a8341cf57a4bb24315d3b6b5cad1ec1b286b2812 | [
"MIT"
] | null | null | null | SNTDataBase/src/LoaderUnloader/CsvReader.cpp | mihaillatyshov/SNTDataBase | a8341cf57a4bb24315d3b6b5cad1ec1b286b2812 | [
"MIT"
] | null | null | null | #include "CsvReader.h"
#include <iostream>
#include <iomanip>
#include <fstream>
#include <filesystem>
#include <algorithm>
#include "Utils/Converter.h"
namespace LM
{
CsvReader::CsvReader(std::string_view _FileName)
: m_FileName(_FileName)
{
Load();
}
void CsvReader::RemoveColumn(int _Id)
{
std::for_ea... | 23.170213 | 123 | 0.606061 | [
"vector"
] |
123475c9c65d90165246229729d675c5f6fcb913 | 19,317 | cpp | C++ | srcs/utils/opengl/UI/ABaseUI.cpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | 6 | 2020-03-13T16:45:13.000Z | 2022-03-30T18:20:48.000Z | srcs/utils/opengl/UI/ABaseUI.cpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | 191 | 2020-03-02T14:47:19.000Z | 2020-06-03T08:13:00.000Z | srcs/utils/opengl/UI/ABaseUI.cpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | null | null | null | #include "ABaseUI.hpp"
#include "ABaseMasterUI.hpp"
#include "Logging.hpp"
/**
* @brief Construct a new ABaseUI::ABaseUI object
*
* @param pos The position of the UI element
* @param size The size of the UI element
*/
ABaseUI::ABaseUI(glm::vec2 pos, glm::vec2 size)
: _enabled(true),
_selected(false),
_pos(pos... | 28.282577 | 118 | 0.695967 | [
"object"
] |
123614dc932ba0fde1afd54d0af7bbded3c12db8 | 7,239 | cpp | C++ | rc110_core/rc110_teleop/src/rc110_joy_teleop.cpp | z-Nakajima/robocar110_ros | 30b53866c61a06565bc2e4030af5eeaf2c3fed26 | [
"MIT"
] | 7 | 2021-09-23T22:44:33.000Z | 2022-03-02T22:33:31.000Z | rc110_core/rc110_teleop/src/rc110_joy_teleop.cpp | z-Nakajima/robocar110_ros | 30b53866c61a06565bc2e4030af5eeaf2c3fed26 | [
"MIT"
] | 5 | 2022-01-07T04:58:57.000Z | 2022-02-09T07:33:49.000Z | rc110_core/rc110_teleop/src/rc110_joy_teleop.cpp | z-Nakajima/robocar110_ros | 30b53866c61a06565bc2e4030af5eeaf2c3fed26 | [
"MIT"
] | 2 | 2021-11-11T08:05:24.000Z | 2021-12-24T02:07:03.000Z | /*
* Copyright (C) 2020 ZMP Inc info@zmp.co.jp
*
* Distributed under the MIT License (http://opensource.org/licenses/MIT)
*
* Written by btran
*/
#include "rc110_joy_teleop.hpp"
#include <std_srvs/SetBool.h>
#include <topic_tools/MuxSelect.h>
namespace zmp
{
namespace
{
enum AxisSetting { AXIS_ID, AXIS_MAX, AX... | 36.376884 | 115 | 0.677303 | [
"vector"
] |
72ea281886cf893dfbc6250d6c80d9e2c84578d1 | 4,580 | cc | C++ | tools/StructGridInterpolation.cc | vbertone/NangaParbat | 49529d0a2e810dfe0ec676c8e96081be39a8800d | [
"MIT"
] | 3 | 2020-01-16T17:15:54.000Z | 2020-01-17T10:59:39.000Z | tools/StructGridInterpolation.cc | vbertone/NangaParbat | 49529d0a2e810dfe0ec676c8e96081be39a8800d | [
"MIT"
] | null | null | null | tools/StructGridInterpolation.cc | vbertone/NangaParbat | 49529d0a2e810dfe0ec676c8e96081be39a8800d | [
"MIT"
] | 3 | 2020-01-18T22:10:02.000Z | 2020-08-01T18:42:36.000Z | //
// Author: Valerio Bertone: valerio.bertone@cern.ch
// Chiara Bissolotti: chiara.bissolotti01@universitadipavia.it
//
#include "NangaParbat/createtmdgrid.h"
#include "NangaParbat/factories.h"
#include "NangaParbat/bstar.h"
#include "NangaParbat/nonpertfunctions.h"
#include <LHAPDF/LHAPDF.h>
#include <sys/s... | 37.540984 | 189 | 0.521616 | [
"vector"
] |
72ef033df526d8a00670730762385ba67970fdf4 | 20,250 | cc | C++ | chrome/browser/sync/sync_setup_wizard_unittest.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-05-19T08:53:12.000Z | 2017-08-28T11:59:26.000Z | chrome/browser/sync/sync_setup_wizard_unittest.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | chrome/browser/sync/sync_setup_wizard_unittest.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2020-01-12T00:55:53.000Z | 2020-11-04T06:36:41.000Z | // Copyright (c) 2011 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.
// TODO(jhawkins): Rewrite these tests to handle the new inlined sync UI.
#include "chrome/browser/sync/sync_setup_wizard.h"
#include "base/json/jso... | 37.709497 | 80 | 0.749185 | [
"model"
] |
72f1f7641c6906c15de0ebb2b64e0af858b882df | 8,293 | cpp | C++ | cluster_points.cpp | luccosta/tmr-hdl-writer | 9971809b20d69fcc76a827ebf57b9937d7f44b4e | [
"MIT"
] | null | null | null | cluster_points.cpp | luccosta/tmr-hdl-writer | 9971809b20d69fcc76a827ebf57b9937d7f44b4e | [
"MIT"
] | null | null | null | cluster_points.cpp | luccosta/tmr-hdl-writer | 9971809b20d69fcc76a827ebf57b9937d7f44b4e | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <vector>
#include <map>
#include <utility>
#include <memory>
#include <iterator>
#include <cstdlib>
#include <cmath>
using namespace std;
class Circuito;
struct Matrices{double M[2][2];};
struct Matriz
{
double SF[4];
};
struct l_p... | 27.922559 | 118 | 0.580851 | [
"vector"
] |
72f247a16e94ded8963658f7d620b30b83efeb18 | 799 | cpp | C++ | DP div250/PalindromicSubstringsDiv2.cpp | fastestmk/Competitive-Programming-Solutions | cbd211337ede4a26e3bb5c0b2c271a760b468da8 | [
"MIT"
] | null | null | null | DP div250/PalindromicSubstringsDiv2.cpp | fastestmk/Competitive-Programming-Solutions | cbd211337ede4a26e3bb5c0b2c271a760b468da8 | [
"MIT"
] | null | null | null | DP div250/PalindromicSubstringsDiv2.cpp | fastestmk/Competitive-Programming-Solutions | cbd211337ede4a26e3bb5c0b2c271a760b468da8 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
class PalindromicSubstringsDiv2{
public:
int count(vector<string>, vector<string>);
};
int PalindromicSubstringsDiv2::count(vector<string> S1, vector<string> S2){
string res;
for(int i = 0; i < S1.size(); ++i){
res += S1[i];
}
for(... | 19.975 | 75 | 0.429287 | [
"vector"
] |
72f3c7d38df4a9adeafa7f7b756da98de3b35835 | 660 | cpp | C++ | PAT/B1013.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | PAT/B1013.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | PAT/B1013.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<vector>
using namespace std;
const int MAXN=1e6;
bool isPrime[MAXN+1];
vector<int> prime;
int main(void){
// freopen("in.txt","r",stdin);
int M,N;
scanf("%d%d",&M,&N);
memset(isPrime,true,sizeof isPrime);
isPrime[1]=false;
prime.push_back(0);
fo... | 18.857143 | 65 | 0.569697 | [
"vector"
] |
72f8e9a5c8ba14bc2e70e26989d5ca76ed8227fe | 15,773 | hpp | C++ | stan/math/prim/err/check_flag_sundials.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/err/check_flag_sundials.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/err/check_flag_sundials.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_ERR_CHECK_FLAG_SUNDIALS_HPP
#define STAN_MATH_PRIM_ERR_CHECK_FLAG_SUNDIALS_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err/domain_error.hpp>
#include <kinsol/kinsol.h>
#include <cvodes/cvodes.h>
#include <array>
namespace stan {
namespace math {
#define CHECK_CVODES_CALL(ca... | 36.852804 | 80 | 0.564192 | [
"vector"
] |
f40141fe0fe9317b2996606ba327b6f0326bc950 | 2,183 | cpp | C++ | solutions/LeetCode/C++/757.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | solutions/LeetCode/C++/757.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | solutions/LeetCode/C++/757.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 32 ms submission
static const auto _ = []() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
return nullptr;
}();
class Solution {
public:
static bool interval_compare(const ... | 29.90411 | 114 | 0.543747 | [
"vector"
] |
f40bdc1849a7f42d0ff30b1ed2866f46b93fc5af | 10,063 | cpp | C++ | rest-server/src/services/admin_dao.cpp | OS-WASABI/CADG | b214edff82d4238e51569a42a6bdfab6806d768f | [
"BSD-3-Clause"
] | null | null | null | rest-server/src/services/admin_dao.cpp | OS-WASABI/CADG | b214edff82d4238e51569a42a6bdfab6806d768f | [
"BSD-3-Clause"
] | 22 | 2018-10-26T17:30:24.000Z | 2019-04-15T23:38:18.000Z | rest-server/src/services/admin_dao.cpp | OS-WASABI/CADG | b214edff82d4238e51569a42a6bdfab6806d768f | [
"BSD-3-Clause"
] | 1 | 2019-03-23T16:02:17.000Z | 2019-03-23T16:02:17.000Z | // Copyright 2018 Vaniya Agrawal, Ross Arcemont, Kristofer Hoadley,
// Shawn Hulce, Michael McCulley
/**
* Implementation of AdminDao.
*
* @file admin_dao.cpp
* @authors Kristofer Hoadley, Micheal McCulley
* @date November, 2018
*/
#include <string>
#include <vector>
#include ... | 44.724444 | 108 | 0.562556 | [
"vector"
] |
f40d2557a8717a889c71ee5c52f12bb81a563e6e | 8,477 | cpp | C++ | 3-1-Cpp Programming II/StoreQT/Merchandise.cpp | Awdrtgg/Coursework-Projects | d48124b71e477f71b6370f5c3317c6800f8fdb06 | [
"MIT"
] | 3 | 2018-12-02T13:52:55.000Z | 2019-02-26T13:19:50.000Z | 3-1-Cpp Programming II/StoreQT/Merchandise.cpp | Awdrtgg/Coursework-Projects | d48124b71e477f71b6370f5c3317c6800f8fdb06 | [
"MIT"
] | null | null | null | 3-1-Cpp Programming II/StoreQT/Merchandise.cpp | Awdrtgg/Coursework-Projects | d48124b71e477f71b6370f5c3317c6800f8fdb06 | [
"MIT"
] | null | null | null | /*************************************************************************
* Copyright (c)2017, by Beijing University of Posts and Telecommunications
* All rights reserved.
* FileName: Merchandise.cpp
* System: Windows 10
* Author: Xiao Yunming
* Date: 2017.12.15
* Version: 1.0
* Description:
Complete the methods... | 28.931741 | 123 | 0.617435 | [
"vector"
] |
f41741e5cd24fc9325560896c4724a42ff8c175c | 1,230 | hpp | C++ | src/include/LogRendererSystem.hpp | jmher019/GameEngine-UIComponents | 8606ca75e6c7e0542d4415b16f0d32e93a814e89 | [
"MIT"
] | null | null | null | src/include/LogRendererSystem.hpp | jmher019/GameEngine-UIComponents | 8606ca75e6c7e0542d4415b16f0d32e93a814e89 | [
"MIT"
] | null | null | null | src/include/LogRendererSystem.hpp | jmher019/GameEngine-UIComponents | 8606ca75e6c7e0542d4415b16f0d32e93a814e89 | [
"MIT"
] | null | null | null | #ifndef LOG_RENDERER_SYSTEM_HPP
#define LOG_RENDERER_SYSTEM_HPP
#include <Timer.hpp>
#include <UIElement.hpp>
#include <LogMessage.hpp>
class LogRendererSystem {
private:
static unique_ptr<UIElement> logDisplayer;
static vec4 logNormalColor;
static vec4 logWarningColor;
static vec4 logErrorColor;
... | 29.285714 | 128 | 0.779675 | [
"vector"
] |
f420f748ae7e95d66f988e7922c98284525e0520 | 15,306 | cpp | C++ | blades/xtreemfs/cpp/src/libxtreemfs/file_info.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | blades/xtreemfs/cpp/src/libxtreemfs/file_info.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | blades/xtreemfs/cpp/src/libxtreemfs/file_info.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | /*
* Copyright (c) 2011 by Michael Berlin, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
#include "libxtreemfs/file_info.h"
#include "libxtreemfs/file_handle_implementation.h"
#include "libxtreemfs/helper.h"
#include "libxtreemfs/options.h"
#include "libxtreemfs/vol... | 32.427966 | 80 | 0.697831 | [
"object"
] |
f42129f3dcc45d94fa02abfb191fb1383afc55ad | 775 | cpp | C++ | tests/history.cpp | claby2/claditor | 3dfbef9001a7b46712c2dfc960ce06e727f17ae9 | [
"MIT"
] | null | null | null | tests/history.cpp | claby2/claditor | 3dfbef9001a7b46712c2dfc960ce06e727f17ae9 | [
"MIT"
] | null | null | null | tests/history.cpp | claby2/claditor | 3dfbef9001a7b46712c2dfc960ce06e727f17ae9 | [
"MIT"
] | null | null | null | #include "history.hpp"
#include <catch2/catch.hpp>
#include <string>
#include <vector>
TEST_CASE("History has unsaved changes", "[history]") {
History history;
std::vector<std::string> original_lines = {"foo", "bar"};
std::vector<std::string> new_lines = {"hello", "world"};
history.set_content(origina... | 32.291667 | 66 | 0.699355 | [
"vector"
] |
f422f2014eba6f0debaee635a2177081e6942473 | 4,732 | hpp | C++ | scripting.hpp | voodooattack/ADWIF | 5267400362f66986ab138e376807720584f52811 | [
"BSD-2-Clause"
] | 6 | 2015-05-24T17:51:08.000Z | 2020-06-07T09:33:35.000Z | scripting.hpp | voodooattack/ADWIF | 5267400362f66986ab138e376807720584f52811 | [
"BSD-2-Clause"
] | null | null | null | scripting.hpp | voodooattack/ADWIF | 5267400362f66986ab138e376807720584f52811 | [
"BSD-2-Clause"
] | 2 | 2019-05-27T14:47:48.000Z | 2022-02-04T05:39:56.000Z | /* Copyright (c) 2013, Abdullah A. Hassan <voodooattack@hotmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright no... | 42.25 | 172 | 0.702451 | [
"object"
] |
f4285239d540fba1bbee1de46638216ab94a7229 | 19,000 | cpp | C++ | src/prod/src/Common/Directory.test.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Common/Directory.test.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Common/Directory.test.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include ... | 36.608863 | 209 | 0.612684 | [
"vector"
] |
f42a1bb55c76837d4fcc119dc6649b008289ec9b | 1,598 | hxx | C++ | A_tour_of_cpp/src/060_Chapter_6/Workspace.hxx | NaPiZip/Programming_basics_c- | d84bf4baa25fbcf28b12fb06be7a6270c143effc | [
"MIT"
] | null | null | null | A_tour_of_cpp/src/060_Chapter_6/Workspace.hxx | NaPiZip/Programming_basics_c- | d84bf4baa25fbcf28b12fb06be7a6270c143effc | [
"MIT"
] | null | null | null | A_tour_of_cpp/src/060_Chapter_6/Workspace.hxx | NaPiZip/Programming_basics_c- | d84bf4baa25fbcf28b12fb06be7a6270c143effc | [
"MIT"
] | null | null | null | // Copyright 2019, Nawin
template<typename T>
section_6_2::Vector<T>::Vector(int sz) : element_{ new T[sz] }, sz_{sz} {
for (auto idx = 0; idx != sz_; ++idx) {
element_[idx] = 0;
}
}
template<typename T>
section_6_2::Vector<T>::Vector(std::initializer_list<T> list) :
element_{ new T[list.size()] ... | 22.828571 | 74 | 0.603254 | [
"vector"
] |
f430eafc25131684f0f59e07702faa1666ab4d38 | 38,030 | cpp | C++ | Unix/tests/codec/mof/blue/test_mofserializer.cpp | DalavanCloud/omi | 6d8bf93ea036a58cea78a24b4fb293d2f4d5ad33 | [
"MIT"
] | 1 | 2018-09-30T01:04:47.000Z | 2018-09-30T01:04:47.000Z | Unix/tests/codec/mof/blue/test_mofserializer.cpp | DalavanCloud/omi | 6d8bf93ea036a58cea78a24b4fb293d2f4d5ad33 | [
"MIT"
] | null | null | null | Unix/tests/codec/mof/blue/test_mofserializer.cpp | DalavanCloud/omi | 6d8bf93ea036a58cea78a24b4fb293d2f4d5ad33 | [
"MIT"
] | null | null | null | /*
**==============================================================================
**
** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE
** for license information.
**
**==============================================================================
*/
#include <vector>
#include <string>
#in... | 26.501742 | 99 | 0.440941 | [
"vector"
] |
f433f9227dd8258e64827f53ce1025e0f5810672 | 525 | hpp | C++ | src/SmaCounter.hpp | BitsonFire/signal-estimator | 7348473517d64b95f7ca9b34e07bfdd2236ffa7f | [
"MIT"
] | null | null | null | src/SmaCounter.hpp | BitsonFire/signal-estimator | 7348473517d64b95f7ca9b34e07bfdd2236ffa7f | [
"MIT"
] | null | null | null | src/SmaCounter.hpp | BitsonFire/signal-estimator | 7348473517d64b95f7ca9b34e07bfdd2236ffa7f | [
"MIT"
] | null | null | null | /* Copyright (c) 2020 Victor Gaydov
*
* This code is licensed under the MIT License.
*/
#pragma once
#include <vector>
namespace signal_estimator {
// simple moving average
class SmaCounter {
public:
SmaCounter(size_t size);
SmaCounter(const SmaCounter&) = delete;
SmaCounter& operator=(const SmaCoun... | 15.909091 | 54 | 0.670476 | [
"vector"
] |
f437d1a1975a7f0a4698dea0faf7c1309ad1bdba | 1,007 | cpp | C++ | countingSort/main.cpp | Luke-zhang-04/Sorting_Algorithms | dc89ce0f1651252b30509062fddff72d423689a3 | [
"Unlicense"
] | 1 | 2020-01-03T10:09:33.000Z | 2020-01-03T10:09:33.000Z | countingSort/main.cpp | Luke-zhang-04/Sorting_Algorithms | dc89ce0f1651252b30509062fddff72d423689a3 | [
"Unlicense"
] | 1 | 2020-06-11T13:46:57.000Z | 2020-06-11T13:46:57.000Z | countingSort/main.cpp | Luke-zhang-04/Sorting_Algorithms | dc89ce0f1651252b30509062fddff72d423689a3 | [
"Unlicense"
] | 2 | 2020-01-03T10:17:39.000Z | 2020-06-13T06:15:17.000Z | #include <vector>
#include "main.h"
#include "../utils/max.h"
/**
* Main countingsort function
* @param array - array to sort
* @returns void; sorts in-place
*/
void countingSort(std::vector<int> &array) {
std::vector<int> count;
std::vector<int> output; //create output array
// Fill arrays
for (... | 25.175 | 89 | 0.571003 | [
"vector"
] |
f442a07345c2199fcd0577657de431756d95ecc3 | 5,211 | cpp | C++ | src/mio/http_server.cpp | Ryooooooga/mio | 9ec4e0819eb0eda35e4a4a314ca6aa8aeeedcd9d | [
"MIT"
] | 1 | 2021-09-14T15:07:23.000Z | 2021-09-14T15:07:23.000Z | src/mio/http_server.cpp | Ryooooooga/mio | 9ec4e0819eb0eda35e4a4a314ca6aa8aeeedcd9d | [
"MIT"
] | null | null | null | src/mio/http_server.cpp | Ryooooooga/mio | 9ec4e0819eb0eda35e4a4a314ca6aa8aeeedcd9d | [
"MIT"
] | null | null | null | #include "mio/http_server.hpp"
#include <cassert>
#include <sstream>
#include <thread>
#include <netinet/in.h>
#include <unistd.h>
#include "mio/application.hpp"
#include "mio/bodies/x_www_form_url_encoded.hpp"
#include "mio/http1/request.hpp"
#include "mio/http1/response.hpp"
#include "mio/sockets/socket.hpp"
#incl... | 35.209459 | 152 | 0.517367 | [
"vector"
] |
f45f56cdae5e213f321a3523057c330ea0265d75 | 10,974 | cpp | C++ | ctf.cpp | KhodrJ/FastCTF | 61a836fa558b2e97b00a0c34ccddbb3d7e4103a9 | [
"MIT"
] | 2 | 2021-12-09T23:39:03.000Z | 2021-12-17T18:07:56.000Z | ctf.cpp | KhodrJ/FastCTF | 61a836fa558b2e97b00a0c34ccddbb3d7e4103a9 | [
"MIT"
] | null | null | null | ctf.cpp | KhodrJ/FastCTF | 61a836fa558b2e97b00a0c34ccddbb3d7e4103a9 | [
"MIT"
] | null | null | null | /*
* ==================================================================================
*
* ______ _ _____ _______ ______
* | ____| | | / ____|__ __| ____|
* | |__ __ _ ___| |_| | | | | |__
* | __/ _` / __| __| |... | 28.210797 | 412 | 0.564243 | [
"vector"
] |
f463baf2d9307c18efd0d56df26d6749ae02e40d | 9,902 | cpp | C++ | sp/src/game/server/prop_bomb.cpp | ZombieRoxtar/cZeroR | 8c67b9e2e2da2479581d5a3863b8598d44ee69bb | [
"Unlicense"
] | 2 | 2016-11-22T04:25:54.000Z | 2020-02-02T12:24:42.000Z | sp/src/game/server/prop_bomb.cpp | ZombieRoxtar/cZeroR | 8c67b9e2e2da2479581d5a3863b8598d44ee69bb | [
"Unlicense"
] | null | null | null | sp/src/game/server/prop_bomb.cpp | ZombieRoxtar/cZeroR | 8c67b9e2e2da2479581d5a3863b8598d44ee69bb | [
"Unlicense"
] | null | null | null | //===== Copyright Bit Mage's Stuff, All rights probably reserved. =====
//
// Purpose: Prop with a specialized Use function
//
//=============================================================================
#include "cbase.h"
#include "prop_bomb.h"
#include "trigger_special_zone.h"
#include "sprite.h"
#include "explode... | 25.324808 | 148 | 0.718239 | [
"vector",
"model",
"transform"
] |
f463e78b758807600be25f2ef6caaf1c20e1c684 | 775 | cpp | C++ | Dataset/Leetcode/train/13/114.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/13/114.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/13/114.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int XXX(string s) {
map<string, int> table = {
{"M", 1000}, {"CM", 900}, {"D", 500}, {"CD", 400}, {"C", 100}, {"XC", 90}, {"L", 50}, {"XL", 40}, {"X", 10}, {"IX", 9},
{"V", 5}, {"IV", 4}, {"I", 1}
};
vector<string> key = {"M", "CM", "D", "CD",... | 26.724138 | 131 | 0.326452 | [
"vector"
] |
c2e1429837fcbabc8e3d671f6327caf6af651cdf | 588 | cpp | C++ | leetcode/377. Combination Sum IV/s1.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/377. Combination Sum IV/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/377. Combination Sum IV/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/combination-sum-iv/
// Author: github.com/lzl124631x
// Time: O(NT)
// Space: O(T)
class Solution {
unordered_map<int, int> m {{0, 1}};
int dp(vector<int>& nums, int target) {
if (m.count(target)) return m[target];
int cnt = 0;
for (int n : nums) {
... | 28 | 56 | 0.540816 | [
"vector"
] |
c2ed7788cf1e81db043a2f989c69f1930c9871c3 | 2,787 | hpp | C++ | goop/generic/geometry.hpp | johannes-braun/goop-gfx | f2a5dbac3d18299efdffe900e0e1d615c0c3c98d | [
"MIT"
] | null | null | null | goop/generic/geometry.hpp | johannes-braun/goop-gfx | f2a5dbac3d18299efdffe900e0e1d615c0c3c98d | [
"MIT"
] | null | null | null | goop/generic/geometry.hpp | johannes-braun/goop-gfx | f2a5dbac3d18299efdffe900e0e1d615c0c3c98d | [
"MIT"
] | null | null | null | #pragma once
#include <span>
#include <rnu/math/math.hpp>
#include <vector>
#include <memory>
#include <mutex>
#include "draw_state.hpp"
#include "mapped_buffer.hpp"
namespace goop
{
struct vertex
{
rnu::vec3 position;
rnu::vec3 normal;
rnu::vec2 uv[3];
rnu::vec4ui8 color;
rn... | 29.336842 | 121 | 0.681378 | [
"vector"
] |
c2efc7ac00cad09434d9b0cba2922e2e08aa69ba | 3,356 | cpp | C++ | src/Game.cpp | cjmar/battleship | 8fb895ebe7b89ddd1640f78b6607cfbbdb33cde9 | [
"MIT"
] | null | null | null | src/Game.cpp | cjmar/battleship | 8fb895ebe7b89ddd1640f78b6607cfbbdb33cde9 | [
"MIT"
] | null | null | null | src/Game.cpp | cjmar/battleship | 8fb895ebe7b89ddd1640f78b6607cfbbdb33cde9 | [
"MIT"
] | null | null | null | #include "Game.h"
#include <iostream>
#include "TextureManager.h"
bool DRAW_GRID = false;
using namespace Battleship;
SDL_Renderer* Game::renderer = nullptr;
SDL_Texture* Game::spriteSheet = nullptr;
bool Game::running = false;
TTF_Font* Game::font = nullptr;
int Game::GAME_WIDTH = 0;
int Game::GAME_H... | 21.240506 | 124 | 0.636472 | [
"render"
] |
c2fc1bf835493108d4c206919a09d560a1941ea1 | 276 | cpp | C++ | atcoder/abc109/a.cpp | Lambda1/atcoder | a4a57ddc21cc29b8b795173630e1d07db4abb559 | [
"MIT"
] | null | null | null | atcoder/abc109/a.cpp | Lambda1/atcoder | a4a57ddc21cc29b8b795173630e1d07db4abb559 | [
"MIT"
] | null | null | null | atcoder/abc109/a.cpp | Lambda1/atcoder | a4a57ddc21cc29b8b795173630e1d07db4abb559 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <map>
int main(int argc,char *argv[])
{
int a,b;
std::cin >> a >> b;
if(a%2 && b%2) std::cout << "Yes" << std::endl;
else std::cout << "No" << std::endl;
return 0;
}
| 16.235294 | 48 | 0.594203 | [
"vector"
] |
c2fe1bac6cee854a2b18137677ec2218cdc53297 | 1,232 | cc | C++ | chromium/mash/wm/shelf_layout.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/mash/wm/shelf_layout.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/mash/wm/shelf_layout.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"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 "mash/wm/shelf_layout.h"
#include "components/mus/public/cpp/property_type_converters.h"
#include "components/mus/public/cpp/window.h"
#include ... | 33.297297 | 79 | 0.762175 | [
"geometry"
] |
6c02d7edfe5738b0d4e7977f52fd5179b784d970 | 3,948 | cc | C++ | src/neurogram_similiarity_index_measure.cc | sswensen/visqol | 943b42b7234d5d750b96521e1b10041dccd3c7ec | [
"Apache-2.0"
] | 292 | 2020-01-30T04:03:17.000Z | 2022-03-31T14:55:59.000Z | src/neurogram_similiarity_index_measure.cc | sswensen/visqol | 943b42b7234d5d750b96521e1b10041dccd3c7ec | [
"Apache-2.0"
] | 52 | 2020-04-04T13:31:28.000Z | 2022-03-31T00:31:55.000Z | src/neurogram_similiarity_index_measure.cc | sswensen/visqol | 943b42b7234d5d750b96521e1b10041dccd3c7ec | [
"Apache-2.0"
] | 76 | 2020-04-04T13:07:48.000Z | 2022-03-29T09:08:20.000Z | // Copyright 2019 Google LLC, Andrew Hines
//
// 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... | 43.384615 | 80 | 0.732523 | [
"vector",
"transform"
] |
6c05d52af936cdca38cb796075c459a78f1f1183 | 2,545 | cpp | C++ | src/OptPlan/Opt_Column.cpp | fsaintjacques/cstore | 3300a81c359c4a48e13ad397e3eb09384f57ccd7 | [
"BSD-2-Clause"
] | 14 | 2016-07-11T04:08:09.000Z | 2022-03-11T05:56:59.000Z | src/OptPlan/Opt_Column.cpp | ibrarahmad/cstore | 3300a81c359c4a48e13ad397e3eb09384f57ccd7 | [
"BSD-2-Clause"
] | null | null | null | src/OptPlan/Opt_Column.cpp | ibrarahmad/cstore | 3300a81c359c4a48e13ad397e3eb09384f57ccd7 | [
"BSD-2-Clause"
] | 13 | 2016-06-01T10:41:15.000Z | 2022-01-06T09:01:15.000Z | /*
* Opt_Column.h
* C-Store - Optimimzation
*
* Created by Nga Tran on 10/28/05.
*
* Questions, ask Nga Tran at nga@brandeis.edu or Tien Hoang at hoangt@brandeis.edu
*
* This class implements an attribute of a table
*/
#include "Opt_Column.h"
#include <iostream>
using namespace std;
// Default constr... | 19.882813 | 104 | 0.733988 | [
"object"
] |
6c06dcfbddb80d5a7ba3ab977549729fbe70f1c6 | 10,315 | cpp | C++ | src/ObjectBuilderPlugin/PipeBuilderWidget.cpp | kirohy/hairo-world-plugin | bc5e5d32e022e3a3b926e4f9f35969fb9bcbdfe4 | [
"MIT"
] | null | null | null | src/ObjectBuilderPlugin/PipeBuilderWidget.cpp | kirohy/hairo-world-plugin | bc5e5d32e022e3a3b926e4f9f35969fb9bcbdfe4 | [
"MIT"
] | null | null | null | src/ObjectBuilderPlugin/PipeBuilderWidget.cpp | kirohy/hairo-world-plugin | bc5e5d32e022e3a3b926e4f9f35969fb9bcbdfe4 | [
"MIT"
] | null | null | null | /**
\file
\author Kenta Suzuki
*/
#include "PipeBuilderWidget.h"
#include <cnoid/Button>
#include <cnoid/EigenTypes>
#include <cnoid/EigenUtil>
#include <cnoid/MainWindow>
#include <cnoid/SpinBox>
#include <cnoid/stdx/filesystem>
#include <cnoid/YAMLWriter>
#include <QColorDialog>
#include <QGridLayout>
#include... | 32.955272 | 102 | 0.636161 | [
"geometry",
"shape"
] |
6c11fbf71d9b2c8b5ee5b89ed44c7314fac2b1a9 | 1,840 | hpp | C++ | include/boost/rpc/message.hpp | bytemaster/Boost.RPC | a27795d37481fb5d53774cc8cf4270fff1f84964 | [
"Unlicense"
] | 23 | 2015-03-31T05:54:47.000Z | 2022-02-27T14:30:16.000Z | include/boost/rpc/message.hpp | bytemaster/Boost.RPC | a27795d37481fb5d53774cc8cf4270fff1f84964 | [
"Unlicense"
] | null | null | null | include/boost/rpc/message.hpp | bytemaster/Boost.RPC | a27795d37481fb5d53774cc8cf4270fff1f84964 | [
"Unlicense"
] | 13 | 2015-04-22T04:32:26.000Z | 2019-08-29T13:22:21.000Z | #ifndef __BOOST_RPC_MESSAGE_HPP_
#define __BOOST_RPC_MESSAGE_HPP_
#include <boost/reflect/reflect.hpp>
#include <boost/rpc/varint.hpp>
#include <boost/rpc/required.hpp>
#include <boost/optional.hpp>
namespace boost { namespace rpc {
using boost::optional;
/**
* Based upon the JSON-RPC 2.0 Specification
*/
struct e... | 29.206349 | 98 | 0.659783 | [
"object"
] |
6c14498be764343d63b077b0c076c56a3fe2715e | 3,686 | cpp | C++ | searchlib/src/vespa/searchlib/index/docidandfeatures.cpp | bowlofstew/vespa | 5212c7a5568769eadb5c5d99b6a503a70c82af48 | [
"Apache-2.0"
] | null | null | null | searchlib/src/vespa/searchlib/index/docidandfeatures.cpp | bowlofstew/vespa | 5212c7a5568769eadb5c5d99b6a503a70c82af48 | [
"Apache-2.0"
] | 1 | 2021-01-21T01:37:37.000Z | 2021-01-21T01:37:37.000Z | searchlib/src/vespa/searchlib/index/docidandfeatures.cpp | bowlofstew/vespa | 5212c7a5568769eadb5c5d99b6a503a70c82af48 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "docidandfeatures.h"
#include <vespa/vespalib/objects/nbostream.h>
#include <vespa/log/log.h>
LOG_SETUP(".index.docidandfeatures");
namespace search::index {
using vespalib::nbostream;
Doc... | 29.725806 | 129 | 0.71758 | [
"vector"
] |
6c18585e57af53074a0e79106d9d5793b526c9f8 | 25,996 | cpp | C++ | src/game/server/hl1/hl1_npc_hassassin.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/server/hl1/hl1_npc_hassassin.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/server/hl1/hl1_npc_hassassin.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#include "cbase.h"
#include "ai_default.h"
#include "ai_task.h"
#include "ai_schedule.h"
#include "ai_nod... | 29.0783 | 124 | 0.548084 | [
"vector"
] |
6c1e9f0003cd3bdc923219faccfb6a3422a0b4a1 | 167 | cpp | C++ | ceppengine/src/ceppengine/object.cpp | Winded/ceppengine | 52a9c1723dc45aba4d85d50e4c919ec8016c8d94 | [
"MIT"
] | 2 | 2017-11-13T11:29:03.000Z | 2017-11-13T12:09:12.000Z | ceppengine/src/ceppengine/object.cpp | Winded/ceppengine | 52a9c1723dc45aba4d85d50e4c919ec8016c8d94 | [
"MIT"
] | null | null | null | ceppengine/src/ceppengine/object.cpp | Winded/ceppengine | 52a9c1723dc45aba4d85d50e4c919ec8016c8d94 | [
"MIT"
] | null | null | null | #include "object.h"
#include <iostream>
namespace cepp {
Object::Object() : mRefCount(0)
{
}
Object::~Object()
{
assert(mRefCount == 0);
}
} // namespace cepp
| 10.4375 | 31 | 0.628743 | [
"object"
] |
6c23ef9c41494d6bf084411ae5ad89b4152e00cf | 77,875 | cpp | C++ | src/universal/ktxtexture.cpp | VladislavShubnikov/dwnsmpl | 10986b83bc32e0f552b41556ee81b6d425c2967d | [
"MIT"
] | null | null | null | src/universal/ktxtexture.cpp | VladislavShubnikov/dwnsmpl | 10986b83bc32e0f552b41556ee81b6d425c2967d | [
"MIT"
] | null | null | null | src/universal/ktxtexture.cpp | VladislavShubnikov/dwnsmpl | 10986b83bc32e0f552b41556ee81b6d425c2967d | [
"MIT"
] | null | null | null | // ****************************************************************************
//
// ****************************************************************************
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <math.h>
#include <string.h>
#include <assert.h>
#in... | 29.917403 | 107 | 0.554607 | [
"3d"
] |
6c260ef082b19b8ae710fff93efba6edf24b8fb2 | 764 | cpp | C++ | code/LeetCode_11.cpp | Aden-Q/LeetCode | 4bbf772c886f42ce3d72d01fd737929b99df3eb3 | [
"MIT"
] | 1 | 2019-09-22T03:08:14.000Z | 2019-09-22T03:08:14.000Z | code/LeetCode_11.cpp | Aden-Q/leetcode | ebd4804edd4f172b9981b22c18d9ff654cf20762 | [
"Apache-2.0"
] | null | null | null | code/LeetCode_11.cpp | Aden-Q/leetcode | ebd4804edd4f172b9981b22c18d9ff654cf20762 | [
"Apache-2.0"
] | null | null | null | //盛最多水的容器
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int maxArea(vector<int>& height) {
int minvalue = 0;
int maxarea = 0;
int area;
for(int i=0;i<height.size();i++){
for(int j=height.size()-1;j>=i;j--){
minvalue... | 20.648649 | 71 | 0.455497 | [
"vector"
] |
6c311953e728fabb5a795c9cf88e8e9cf5d5a250 | 1,365 | cpp | C++ | cf/1195/d.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 2 | 2021-06-09T12:27:07.000Z | 2021-06-11T12:02:03.000Z | cf/1195/d.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 1 | 2021-09-08T12:00:05.000Z | 2021-09-08T14:52:30.000Z | cf/1195/d.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10, mod = 998244353;
int f[25];
int a[N], n, ans, cnt[12];
vector<int> v[12];
int cc[12][12];
int pi[22], pj[22];
void pre(int i) {
for(auto f: v[i]) {
for(int len = 1; len <= i; ++len) {
cc[i][len] = (cc[i][len] + f % 10) % mod;
f /= 10;
... | 17.278481 | 65 | 0.451282 | [
"vector"
] |
6c35cc242a6c4e4ce6d1ef36b025c93e3f9c7f03 | 654 | hpp | C++ | nonogram.hpp | thatoddmailbox/duck_hero | d96e379491b165dc0bb868ab2a0e4ef6f2365986 | [
"MIT"
] | 1 | 2021-02-19T05:09:10.000Z | 2021-02-19T05:09:10.000Z | nonogram.hpp | thatoddmailbox/duck_hero | d96e379491b165dc0bb868ab2a0e4ef6f2365986 | [
"MIT"
] | 2 | 2021-02-18T22:13:47.000Z | 2021-02-18T22:30:41.000Z | nonogram.hpp | thatoddmailbox/duck_hero | d96e379491b165dc0bb868ab2a0e4ef6f2365986 | [
"MIT"
] | null | null | null | #ifndef _NONOGRAM_HPP
#define _NONOGRAM_HPP
#include <cstdlib>
#include <vector>
namespace duckhero
{
enum NonogramCell
{
Empty,
Flagged,
Filled
};
class Nonogram
{
public:
int width, height;
std::vector<std::vector<NonogramCell>> data;
std::vector<std::vector<NonogramCell>> solution;
bool have_... | 15.571429 | 54 | 0.700306 | [
"vector"
] |
6c35ec2f9bf0240740dfd0f261e76c9bbf33cada | 45,310 | cpp | C++ | DxImageLoader/ktx_interface.cpp | hnjm/ImageViewer | f57908a0aae802380d615fc55c510cf609df8b52 | [
"MIT"
] | 1 | 2021-06-06T15:55:40.000Z | 2021-06-06T15:55:40.000Z | DxImageLoader/ktx_interface.cpp | hnjm/ImageViewer | f57908a0aae802380d615fc55c510cf609df8b52 | [
"MIT"
] | null | null | null | DxImageLoader/ktx_interface.cpp | hnjm/ImageViewer | f57908a0aae802380d615fc55c510cf609df8b52 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "ktx_interface.h"
#include "../dependencies/ktx/include/ktx.h"
#include <stdexcept>
#include <algorithm>
#include "VkFormat.h"
#include <unordered_map>
#include <string>
#include <thread>
#include "GliImage.h"
#include "interface.h"
gli::format convertFormat(VkFormat format);
... | 52.200461 | 123 | 0.804767 | [
"vector"
] |
6c36124dc28cc75c30039d07607629430cf3d025 | 1,829 | cpp | C++ | ishxiao/1026/12598332_AC_188MS_140K.cpp | ishx/poj | b4e5498117d7c8fc3d96eca2fa7f71f2dfa13c2d | [
"MIT"
] | null | null | null | ishxiao/1026/12598332_AC_188MS_140K.cpp | ishx/poj | b4e5498117d7c8fc3d96eca2fa7f71f2dfa13c2d | [
"MIT"
] | null | null | null | ishxiao/1026/12598332_AC_188MS_140K.cpp | ishx/poj | b4e5498117d7c8fc3d96eca2fa7f71f2dfa13c2d | [
"MIT"
] | null | null | null | //1026
#include <iostream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <cstring>
#include <algorithm>
#include <string>
#include <map>
#include <set>
#define CL(arr, val) memset(arr, val, sizeof(arr))
#define REP(i, n) for((i) = 0; (i) < (n); ++(i))
#define FOR(i, l, h) for((... | 22.304878 | 58 | 0.360306 | [
"vector"
] |
6c41e4c5e64448ab8df643c7312826d99b16bc3f | 5,287 | cpp | C++ | src/core/Core/Config/ParameterBuilder.cpp | krieselreihe/litr | ffaa7ecd09bfede01f5eb6edc957562363eadfc2 | [
"MIT"
] | 3 | 2020-11-26T15:46:48.000Z | 2021-08-16T11:12:48.000Z | src/core/Core/Config/ParameterBuilder.cpp | krieselreihe/litr | ffaa7ecd09bfede01f5eb6edc957562363eadfc2 | [
"MIT"
] | 57 | 2020-09-21T08:00:29.000Z | 2022-03-31T18:46:29.000Z | src/core/Core/Config/ParameterBuilder.cpp | krieselreihe/litr | ffaa7ecd09bfede01f5eb6edc957562363eadfc2 | [
"MIT"
] | null | null | null | #include "ParameterBuilder.hpp"
#include "Core/Debug/Instrumentor.hpp"
#include "Core/Error/Handler.hpp"
#include "Core/Log.hpp"
namespace Litr::Config {
ParameterBuilder::ParameterBuilder(const toml::table& file, const toml::value& data, const std::string& name)
: m_File(file), m_Table(data), m_Parameter(Create... | 28.272727 | 116 | 0.594666 | [
"vector"
] |
6c493a94f35bdcd6bedbd570a7ba767f8db9ee56 | 3,240 | hpp | C++ | headers/select.hpp | elfring/libsocket | 3d54f82c5c5bc28aec289dab9d333030d67b3bb5 | [
"BSD-2-Clause"
] | 1 | 2017-05-20T13:53:45.000Z | 2017-05-20T13:53:45.000Z | headers/select.hpp | elfring/libsocket | 3d54f82c5c5bc28aec289dab9d333030d67b3bb5 | [
"BSD-2-Clause"
] | null | null | null | headers/select.hpp | elfring/libsocket | 3d54f82c5c5bc28aec289dab9d333030d67b3bb5 | [
"BSD-2-Clause"
] | 3 | 2015-01-08T12:31:26.000Z | 2020-09-02T13:46:26.000Z | # ifndef SELECT_H
# define SELECT_H
# include <vector>
# include <map>
# include <utility>
# include <list>
# include <cstring>
# include <sys/select.h>
/**
* @file select.hpp
*
* The class selectset provides a possibility to wait for data on multiple sockets.
*/
/*
The committers of the libsocket project, al... | 38.571429 | 125 | 0.72284 | [
"vector"
] |
6c54fc550974b2ad6bdb1aec116983d580b584f4 | 10,171 | cc | C++ | cc/layer_sorter_unittest.cc | jianglong0156/chromium.src | d496dfeebb0f282468827654c2b3769b3378c087 | [
"BSD-3-Clause"
] | 5 | 2018-03-10T13:08:42.000Z | 2021-07-26T15:02:11.000Z | cc/layer_sorter_unittest.cc | sanyaade-mobiledev/chromium.src | d496dfeebb0f282468827654c2b3769b3378c087 | [
"BSD-3-Clause"
] | 1 | 2015-07-21T08:02:01.000Z | 2015-07-21T08:02:01.000Z | cc/layer_sorter_unittest.cc | jianglong0156/chromium.src | d496dfeebb0f282468827654c2b3769b3378c087 | [
"BSD-3-Clause"
] | 6 | 2016-11-14T10:13:35.000Z | 2021-01-23T15:29:53.000Z | // Copyright 2011 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 "config.h"
#include "cc/layer_sorter.h"
#include "cc/layer_impl.h"
#include "cc/math_util.h"
#include "cc/single_thread_proxy.h"
#include "test... | 37.951493 | 112 | 0.70878 | [
"geometry",
"vector",
"transform",
"3d"
] |
6c5dc853939592b45abbdff2235315246346e890 | 4,172 | cpp | C++ | src/gdal_linestring.cpp | blairdgeo/node-gdal | a9bb3c082b30605ed1668dd9fe49afd25a7bb9d6 | [
"Apache-2.0"
] | 1 | 2015-07-04T20:09:20.000Z | 2015-07-04T20:09:20.000Z | src/gdal_linestring.cpp | blairdgeo/node-gdal | a9bb3c082b30605ed1668dd9fe49afd25a7bb9d6 | [
"Apache-2.0"
] | null | null | null | src/gdal_linestring.cpp | blairdgeo/node-gdal | a9bb3c082b30605ed1668dd9fe49afd25a7bb9d6 | [
"Apache-2.0"
] | null | null | null |
#include "gdal_common.hpp"
#include "gdal_geometry.hpp"
#include "gdal_linestring.hpp"
#include "gdal_point.hpp"
#include "collections/linestring_points.hpp"
#include <stdlib.h>
namespace node_gdal {
Persistent<FunctionTemplate> LineString::constructor;
void LineString::Initialize(Handle<Object> target)
{
NanScop... | 21.957895 | 91 | 0.704698 | [
"geometry",
"object"
] |
484833dbb87017db4e2737d1451e3831d5417739 | 1,486 | cpp | C++ | src/main_profiling.cpp | dudu3107/cpp-life-of-boids | 89b1edcd35aa7c957e61d7131a06025f6cdbc71f | [
"Apache-2.0"
] | null | null | null | src/main_profiling.cpp | dudu3107/cpp-life-of-boids | 89b1edcd35aa7c957e61d7131a06025f6cdbc71f | [
"Apache-2.0"
] | null | null | null | src/main_profiling.cpp | dudu3107/cpp-life-of-boids | 89b1edcd35aa7c957e61d7131a06025f6cdbc71f | [
"Apache-2.0"
] | null | null | null | #ifndef __GNUC__
#pragma region declarations
#endif
#include <glad/glad.h>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include <array>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <vector>
#include "lib/myMath/Vec2.hpp"
#include "lib/myMath/utils.hpp"
#include "resources/mo... | 24.766667 | 95 | 0.643338 | [
"vector",
"model"
] |
484f29d5e21de1cfb4722e59690cea4fd7e81fe8 | 206 | hpp | C++ | src/VideoSystem.hpp | feliwir/openSage-deprecated | 4e6b3e7da577d37892cd0dfae31701c502247fb9 | [
"MIT"
] | 4 | 2018-11-22T23:15:23.000Z | 2021-04-27T06:55:24.000Z | src/VideoSystem.hpp | feliwir/openSage-deprecated | 4e6b3e7da577d37892cd0dfae31701c502247fb9 | [
"MIT"
] | null | null | null | src/VideoSystem.hpp | feliwir/openSage-deprecated | 4e6b3e7da577d37892cd0dfae31701c502247fb9 | [
"MIT"
] | 1 | 2019-08-27T13:02:59.000Z | 2019-08-27T13:02:59.000Z | // Stephan Vedder 2015
#pragma once
#include <vector>
#include <thread>
#include <memory>
#include "Loaders/Vp6Stream.hpp"
class VideoSystem
{
public:
static void initialize();
static void release();
}; | 14.714286 | 32 | 0.73301 | [
"vector"
] |
485484f0ae175b302e3d41e288ab92bbe96f8208 | 1,524 | cpp | C++ | scenes/inf585/06_skinning/src/skinning.cpp | DanonOfficial/inf585_vcl | 32eb10c3ddeba8192943381462b437c8490a8c92 | [
"MIT"
] | 1 | 2020-01-09T19:33:20.000Z | 2020-01-09T19:33:20.000Z | scenes/inf585/06_skinning/src/skinning.cpp | DanonOfficial/inf585_vcl | 32eb10c3ddeba8192943381462b437c8490a8c92 | [
"MIT"
] | null | null | null | scenes/inf585/06_skinning/src/skinning.cpp | DanonOfficial/inf585_vcl | 32eb10c3ddeba8192943381462b437c8490a8c92 | [
"MIT"
] | 6 | 2020-02-25T14:33:11.000Z | 2021-03-07T11:26:03.000Z | #include "skinning.hpp"
namespace vcl
{
void normalize_weights(buffer<buffer<float>>& weights)
{
size_t const N = weights.size();
for (size_t k = 0; k < N; ++k) {
float s = 0.0f;
for(float w : weights[k]) s += w;
assert_vcl_no_msg(s>1e-5f);
for(float& w : weights[k]) w /= s;
}
}
// Linear Blend... | 34.636364 | 130 | 0.707349 | [
"mesh"
] |
485f7e3c09a501eecc23bb4373bd8d6d4c171347 | 34,226 | cpp | C++ | vnpy/api/xtp/vnxtp/generated_files/generated_functions_0.cpp | andrewchenshx/vnpy | b479ade5262f1bac460f05811a9db92a5ed465f1 | [
"MIT"
] | 10 | 2019-06-18T04:52:38.000Z | 2019-12-29T03:11:15.000Z | vnpy/api/xtp/vnxtp/generated_files/generated_functions_0.cpp | andrewchenshx/vnpy | b479ade5262f1bac460f05811a9db92a5ed465f1 | [
"MIT"
] | null | null | null | vnpy/api/xtp/vnxtp/generated_files/generated_functions_0.cpp | andrewchenshx/vnpy | b479ade5262f1bac460f05811a9db92a5ed465f1 | [
"MIT"
] | 1 | 2020-07-21T05:54:49.000Z | 2020-07-21T05:54:49.000Z | #include <iostream>
#include <string>
#include <pybind11/pybind11.h>
#include <autocxxpy/autocxxpy.hpp>
#include "module.hpp"
#include "wrappers.hpp"
#include "generated_functions.h"
#include "xtp_trader_api.h"
#include "xtp_quote_api.h"
void generate_vnxtp(pybind11::module & parent)
{
{
auto m = parent... | 38.369955 | 162 | 0.64004 | [
"object"
] |
485f99a57abdd81ce481000fb14d95bf3079a5e2 | 7,182 | cpp | C++ | descriptor.cpp | ESIR2-IN-promo2017/local-textures-descriptors | e7e1696c4097a21b534e6701dcb5fda9cfa90c03 | [
"CECILL-B"
] | null | null | null | descriptor.cpp | ESIR2-IN-promo2017/local-textures-descriptors | e7e1696c4097a21b534e6701dcb5fda9cfa90c03 | [
"CECILL-B"
] | 1 | 2016-04-07T08:40:11.000Z | 2017-05-15T09:17:47.000Z | descriptor.cpp | ESIR2-IN-promo2017/local-textures-descriptors | e7e1696c4097a21b534e6701dcb5fda9cfa90c03 | [
"CECILL-B"
] | null | null | null | /**
* @file descriptor.cpp
* @brief
* @author Amaury Louarn
* @version 1.0
* @date 2016-03-08
*/
#include "descriptor.h"
const int TAILLE = 12;
float getPixel(cv::Mat const& mat, long i, long j)
{
unsigned int ii = (unsigned int) std::max(0l, std::min(i, (long) mat.rows));
unsigned int jj = (unsigned i... | 30.432203 | 172 | 0.592175 | [
"vector"
] |
486a28d7c69082ed476c9e578ebe884c4b2ea8e1 | 558 | cpp | C++ | LintCode/14.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | 7 | 2019-02-25T13:15:00.000Z | 2021-12-21T22:08:39.000Z | LintCode/14.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | null | null | null | LintCode/14.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | 1 | 2019-04-03T06:12:46.000Z | 2019-04-03T06:12:46.000Z | class Solution {
public:
/**
* @param nums: The integer array.
* @param target: Target to find.
* @return: The first position of target. Position starts from 0.
*/
int bs(vector<int> &v,int a,int b,int t){
if(a==b){
return v[a]==t?a:-1;
}
int k = (a+b)/2;
if(v[k]==t && (k==a || v[k-... | 22.32 | 69 | 0.562724 | [
"vector"
] |
486e2db2ffbb609811123170e75a60aa3d391e5b | 3,972 | hpp | C++ | include/synthizer/generator.hpp | wiresong/synthizer | d6fb7a5f9eb0c5760411eee29b12a10fdd7ad420 | [
"Unlicense"
] | 25 | 2020-09-05T18:21:21.000Z | 2021-12-05T02:47:42.000Z | include/synthizer/generator.hpp | wiresong/synthizer | d6fb7a5f9eb0c5760411eee29b12a10fdd7ad420 | [
"Unlicense"
] | 77 | 2020-07-08T23:33:46.000Z | 2022-03-19T05:34:26.000Z | include/synthizer/generator.hpp | wiresong/synthizer | d6fb7a5f9eb0c5760411eee29b12a10fdd7ad420 | [
"Unlicense"
] | 9 | 2020-07-08T18:16:53.000Z | 2022-03-02T21:35:28.000Z | #pragma once
#include "synthizer/base_object.hpp"
#include "synthizer/fade_driver.hpp"
#include "synthizer/pausable.hpp"
#include "synthizer/property_internals.hpp"
#include "synthizer/types.hpp"
#include <atomic>
#include <cstdint>
#include <memory>
#include <optional>
namespace synthizer {
class Context;
/*
* A... | 31.776 | 117 | 0.728852 | [
"object"
] |
486efa6ff96965abd3e99995d0d04f52c8b279ba | 891 | hpp | C++ | include/zboss/math/shape.hpp | ZeroBone/ZBoss | 03f4636c613e7ddd0056df20b99eb961fb064581 | [
"MIT"
] | null | null | null | include/zboss/math/shape.hpp | ZeroBone/ZBoss | 03f4636c613e7ddd0056df20b99eb961fb064581 | [
"MIT"
] | null | null | null | include/zboss/math/shape.hpp | ZeroBone/ZBoss | 03f4636c613e7ddd0056df20b99eb961fb064581 | [
"MIT"
] | null | null | null | #ifndef ZBOSS_MATH_SHAPE_HPP
#define ZBOSS_MATH_SHAPE_HPP
#include <zboss/math/vector.hpp>
#include <vector>
namespace zboss {
struct Edge {
Vector2D start;
Vector2D end;
Edge(Vector2D s, Vector2D e) : start(s), end(e) {}
Vector2D as_vector() const {
return end - s... | 17.470588 | 63 | 0.59596 | [
"shape",
"vector"
] |
4875078606ca3b9d1724db275ec06bdffacff2a4 | 3,111 | cpp | C++ | src/rrr/RRRTable.cpp | fgulan/bioinformatics-project | 151d666bb754c57fb237ecf469413766e203ab75 | [
"MIT"
] | null | null | null | src/rrr/RRRTable.cpp | fgulan/bioinformatics-project | 151d666bb754c57fb237ecf469413766e203ab75 | [
"MIT"
] | null | null | null | src/rrr/RRRTable.cpp | fgulan/bioinformatics-project | 151d666bb754c57fb237ecf469413766e203ab75 | [
"MIT"
] | null | null | null | //
// Created by Jure Cular on 28/12/2017.
//
#include <cassert>
#include <cmath>
#include "RRRTable.h"
// MARK: - Constructors -
RRRTable::RRRTable(block_size_t block_size) : table{block_size + 1},
bit_offset_vector(block_size + 1, 0),
... | 25.925 | 96 | 0.60945 | [
"vector"
] |
48756fca47f631cfcdc6653a1fb0eb984f09ebea | 1,640 | cpp | C++ | codeBase/HackerRank/Algorithms/Search/Cut The Tree/Solution.cpp | suren3141/codeBase | 10ed9a56aca33631dc8c419cd83859c19dd6ff09 | [
"Apache-2.0"
] | 3 | 2020-03-16T14:59:08.000Z | 2021-07-28T20:51:53.000Z | codeBase/HackerRank/Algorithms/Search/Cut The Tree/Solution.cpp | suren3141/codeBase | 10ed9a56aca33631dc8c419cd83859c19dd6ff09 | [
"Apache-2.0"
] | 1 | 2020-03-15T10:57:02.000Z | 2020-03-15T10:57:02.000Z | codeBase/HackerRank/Algorithms/Search/Cut The Tree/Solution.cpp | killerilaksha/codeBase | 91cbd950fc90066903e58311000784aeba4ffc02 | [
"Apache-2.0"
] | 18 | 2020-02-17T23:17:37.000Z | 2021-07-28T20:52:13.000Z | /*
Copyright (C) 2020, Sathira Silva.
Problem Statement: Anna loves graph theory! She has a tree where each vertex is numbered from 1 to n, and each contains a data
value. The sum of a tree is the sum of all its nodes' data values. If she cuts an edge in her tree, she forms
... | 31.538462 | 134 | 0.584146 | [
"vector"
] |
4875cea3e487d9ae12c03bc077cf1ee08913df0c | 1,496 | cpp | C++ | Engine/Source/Audio/AudioClip.cpp | FloatyMonkey/FmEngine | f187f00c2d25ae662218de72b69ea57a93de6d41 | [
"MIT"
] | 15 | 2019-12-01T10:17:17.000Z | 2022-01-30T00:37:43.000Z | Engine/Source/Audio/AudioClip.cpp | FloatyMonkey/FmEngine | f187f00c2d25ae662218de72b69ea57a93de6d41 | [
"MIT"
] | null | null | null | Engine/Source/Audio/AudioClip.cpp | FloatyMonkey/FmEngine | f187f00c2d25ae662218de72b69ea57a93de6d41 | [
"MIT"
] | 2 | 2020-01-18T21:32:22.000Z | 2021-06-28T07:51:46.000Z | // Copyright (c) 2020 Lauro Oyen, FmEngine contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed.
#include "AudioClip.h"
#include "../ThirdParty/dr/dr_wav.h"
#include "../Utility/Logger/Log.h"
#include "../Utility/Memory.h"
#include <f... | 21.070423 | 99 | 0.683824 | [
"vector"
] |
4876c6a528a4264ea395c2914838061936ba7a28 | 1,602 | hpp | C++ | B-CPP-500-LYN-5-1-babel/include/server/Asqlite3.hpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 2 | 2022-02-07T12:44:51.000Z | 2022-02-08T12:04:08.000Z | B-CPP-500-LYN-5-1-babel/include/server/Asqlite3.hpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | null | null | null | B-CPP-500-LYN-5-1-babel/include/server/Asqlite3.hpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 1 | 2022-01-23T21:26:06.000Z | 2022-01-23T21:26:06.000Z | /*
** EPITECH PROJECT, 2021
** B-CPP-500-LYN-5-1-babel-
** File description:
** ASqlite3
*/
#include "sqlite3.h"
#include "common/standard.h"
#include "common/User.hpp"
#ifndef ASQLITE3_HPP_
#define ASQLITE3_HPP_
#define DB_DIR "../user.db"
#define SELECT_QUERY(x) static_cast<std::string>("SELECT ") + x
#define FROM... | 33.375 | 113 | 0.667291 | [
"vector"
] |
48794e5594c1abe684aec7ac8fb57ad4dd968fa5 | 2,155 | cpp | C++ | lib/structs/responses/notifications.cpp | govynnus/mtxclient | 3888ae70d51cdfe7b69d375560448f36991793e6 | [
"MIT"
] | 18 | 2019-03-11T20:23:53.000Z | 2022-02-25T20:55:27.000Z | lib/structs/responses/notifications.cpp | govynnus/mtxclient | 3888ae70d51cdfe7b69d375560448f36991793e6 | [
"MIT"
] | 55 | 2019-02-07T01:21:03.000Z | 2022-03-06T15:42:34.000Z | lib/structs/responses/notifications.cpp | govynnus/mtxclient | 3888ae70d51cdfe7b69d375560448f36991793e6 | [
"MIT"
] | 22 | 2019-02-24T17:28:31.000Z | 2022-03-10T22:40:22.000Z | #include "mtx/responses/notifications.hpp"
#include "mtx/responses/common.hpp"
#include <nlohmann/json.hpp>
using json = nlohmann::json;
namespace mtx {
namespace responses {
void
from_json(const json &obj, Notification &res)
{
res.actions = obj.at("actions").get<decltype(res.actions)>();
res.read = obj.... | 25.963855 | 86 | 0.64594 | [
"object",
"vector"
] |
487a1f8f5077d5f21aa132248b9847458bd0caef | 3,572 | cc | C++ | zircon/system/ulib/hwreg/test/indirect-test.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | 3 | 2020-08-02T04:46:18.000Z | 2020-08-07T10:10:53.000Z | zircon/system/ulib/hwreg/test/indirect-test.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | zircon/system/ulib/hwreg/test/indirect-test.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | 1 | 2020-08-07T10:11:49.000Z | 2020-08-07T10:11:49.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 <assert.h>
#include <stdio.h>
#include <zircon/types.h>
#include <climits>
#include <limits>
#include <hwreg/bitfields.h>
#include <hwreg/indire... | 30.793103 | 94 | 0.723684 | [
"object"
] |
4881bb97b721a047e5222e6d37b4b0ae964b6ab2 | 37,084 | cpp | C++ | main.cpp | karelvaculik/ewaldis | 36a301f93ccd59bdf084e427251205432aa80dae | [
"Apache-2.0"
] | null | null | null | main.cpp | karelvaculik/ewaldis | 36a301f93ccd59bdf084e427251205432aa80dae | [
"Apache-2.0"
] | null | null | null | main.cpp | karelvaculik/ewaldis | 36a301f93ccd59bdf084e427251205432aa80dae | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
#include <fstream>
#include <string.h>
#include <sstream>
#include "src/DynamicGraph.h"
#include "src/DynamicGraphExamples.h"
#include "src/RandomGenerator.h"
#include <ctime>
#include <random>
#include "PatternMiner.h"
#include "commonutilstemplated.h"
#include ... | 48.730618 | 180 | 0.540179 | [
"vector"
] |
48883611a4b1b31c78632b8e1e7143ed395ab32e | 2,596 | cpp | C++ | Tema_5_Ordenamiento/biblioteca/biblioteca/Biblioteca.cpp | vcubells/tc1031 | 43d328df12194be840e8c83966b814e5625347b3 | [
"MIT"
] | 10 | 2020-08-15T16:54:13.000Z | 2021-10-05T16:24:05.000Z | Tema_5_Ordenamiento/biblioteca/biblioteca/Biblioteca.cpp | vcubells/tc1031 | 43d328df12194be840e8c83966b814e5625347b3 | [
"MIT"
] | null | null | null | Tema_5_Ordenamiento/biblioteca/biblioteca/Biblioteca.cpp | vcubells/tc1031 | 43d328df12194be840e8c83966b814e5625347b3 | [
"MIT"
] | 4 | 2020-09-05T02:12:52.000Z | 2021-09-22T00:54:25.000Z | //
// Biblioteca.cpp
// biblioteca
//
// Created by Vicente Cubells Nonell on 09/09/20.
// Copyright © 2020 Vicente Cubells Nonell. All rights reserved.
//
#include "Biblioteca.hpp"
Biblioteca::~Biblioteca()
{
libros.clear();
}
void Biblioteca::adicionarLibro(Libro libro)
{
libros.push_back(libro);
}
st... | 20.124031 | 99 | 0.597072 | [
"vector"
] |
48985970674e3bdf60cb0482aa742edc0885d7ac | 8,149 | cpp | C++ | hackathon/yang/neuronrecon/3rdparty/houghtransform/sphere.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 8 | 2019-11-01T11:46:46.000Z | 2022-03-21T12:07:47.000Z | hackathon/yang/neuronrecon/3rdparty/houghtransform/sphere.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | hackathon/yang/neuronrecon/3rdparty/houghtransform/sphere.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 3 | 2020-04-22T07:19:36.000Z | 2020-11-04T12:43:05.000Z | //
// sphere.cpp
// Class that implements direction quantization as described in
// Jeltsch, Dalitz, Pohle-Froehlich: "Hough Parameter Space
// Regularisation for Line Detection in 3D." VISAPP, pp. 345-352, 2016
//
// Author: Manuel Jeltsch, Tilman Schramke, Christoph Dalitz
// Date: 2017-03-16
// Lice... | 24.398204 | 75 | 0.540189 | [
"3d"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.