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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
92b3ba3d2569d188a3ef802903e6e1da29adcc6e | 2,575 | hpp | C++ | example/json_fwd.hpp | tzlaine/parser | 095aa362d777a480fffef415d27d214cd6ffec4a | [
"BSL-1.0"
] | 7 | 2020-08-29T02:10:20.000Z | 2022-03-29T20:31:59.000Z | example/json_fwd.hpp | tzlaine/parser | 095aa362d777a480fffef415d27d214cd6ffec4a | [
"BSL-1.0"
] | 16 | 2020-08-29T21:33:08.000Z | 2022-03-22T03:01:02.000Z | example/json_fwd.hpp | tzlaine/parser | 095aa362d777a480fffef415d27d214cd6ffec4a | [
"BSL-1.0"
] | 1 | 2021-09-22T08:15:57.000Z | 2021-09-22T08:15:57.000Z | // Copyright (C) 2020 T. Zachary Laine
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef JSON_FWD_HPP
#define JSON_FWD_HPP
#include <string>
#include <unordered_map>
#include <vector>
namespace json {... | 25 | 75 | 0.600777 | [
"object",
"vector"
] |
92b44c9d3ae30b2ccae3264388c9a277f672e05b | 5,552 | cpp | C++ | MonoNative/mscorlib/System/Runtime/Remoting/mscorlib_System_Runtime_Remoting_ObjRef.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative/mscorlib/System/Runtime/Remoting/mscorlib_System_Runtime_Remoting_ObjRef.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative/mscorlib/System/Runtime/Remoting/mscorlib_System_Runtime_Remoting_ObjRef.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | #include <mscorlib/System/Runtime/Remoting/mscorlib_System_Runtime_Remoting_ObjRef.h>
#include <mscorlib/System/mscorlib_System_String.h>
#include <mscorlib/System/Runtime/Serialization/mscorlib_System_Runtime_Serialization_SerializationInfo.h>
#include <mscorlib/System/Runtime/Serialization/mscorlib_System_Runtime_Ser... | 44.416 | 192 | 0.715058 | [
"object"
] |
92b467b8681c1c03ab586093e9f377a8f45a27fd | 4,113 | cpp | C++ | aws-cpp-sdk-s3/source/model/ListObjectsV2Result.cpp | bswhite1/aws-sdk-cpp | a050168cf8f7f6ea920d52894eaad186953cb27b | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-s3/source/model/ListObjectsV2Result.cpp | bswhite1/aws-sdk-cpp | a050168cf8f7f6ea920d52894eaad186953cb27b | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-s3/source/model/ListObjectsV2Result.cpp | bswhite1/aws-sdk-cpp | a050168cf8f7f6ea920d52894eaad186953cb27b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 32.132813 | 129 | 0.710917 | [
"model"
] |
92bdc01af7df746e338f16212870dab51a1f6a35 | 9,556 | hpp | C++ | libs/EL/EventLoop.hpp | CP-Panizza/REG2.0 | 581389f3f93b60ee4288629e04f852f73230bcff | [
"MIT"
] | null | null | null | libs/EL/EventLoop.hpp | CP-Panizza/REG2.0 | 581389f3f93b60ee4288629e04f852f73230bcff | [
"MIT"
] | null | null | null | libs/EL/EventLoop.hpp | CP-Panizza/REG2.0 | 581389f3f93b60ee4288629e04f852f73230bcff | [
"MIT"
] | null | null | null | //
// Created by cmj on 20-4-15.
//
#ifndef EVENTLOOP_EVENTLOOP_H
#define EVENTLOOP_EVENTLOOP_H
#include <functional>
#define MAXLINE 4096
#define MAX_COUNT 1024
#include "../../socket_header.h"
#include <string.h>
#include <iostream>
#include <fcntl.h>
#include <unistd.h>
#include <vector>
#include "Event.hpp"... | 26.470914 | 152 | 0.477606 | [
"vector"
] |
92bde3ee90448fcbfc529d4255503effff5175e3 | 1,214 | cpp | C++ | source/82.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | 2 | 2017-02-28T11:39:13.000Z | 2019-12-07T17:23:20.000Z | source/82.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | source/82.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | //
// 82.cpp
// LeetCode
//
// Created by Narikbi on 14.04.17.
// Copyright © 2017 app.leetcode.kz. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <deque>
#include <queue>
#include <set>
#include <map>
#include <stack>
#include <cmat... | 17.852941 | 63 | 0.526359 | [
"vector"
] |
92d62a1777648fb8f2412d003f4758f890510b1d | 52,533 | cpp | C++ | src/theory/quantifiers/ce_guided_single_inv.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | src/theory/quantifiers/ce_guided_single_inv.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | src/theory/quantifiers/ce_guided_single_inv.cpp | FabianWolff/cvc4-debian | e38afe6cb10bdb79f0bae398b9605e4deae7578f | [
"BSL-1.0"
] | null | null | null | /********************* */
/*! \file ce_guided_single_inv.cpp
** \verbatim
** Top contributors (to current version):
** Andrew Reynolds, Tim King
** This file is part of the CVC4 project.
** Copyright (c) 2009-2016 by the authors listed in the file AUTHORS
*... | 40.50347 | 169 | 0.586907 | [
"vector"
] |
92d86a9291ae295e5057e85b114783935319fa07 | 1,355 | hpp | C++ | model copy/boost/statistics/model/wrap/include.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | model copy/boost/statistics/model/wrap/include.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | model copy/boost/statistics/model/wrap/include.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// statistics::model::wrap::include.hpp //
// //
// Copyright 2009 Erwann Rogard. Distributed under the Boost //
... | 56.458333 | 79 | 0.616974 | [
"model"
] |
2bae8f432744a58117cd251d479c43d25ba5f3a7 | 19,846 | cc | C++ | chrome/browser/browser_accessibility.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | chrome/browser/browser_accessibility.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/browser_accessibility.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/browser_accessibility.h"
#include "base/logging.h"
#include "chrome/browser/browser_accessibility_manager.h"
using web... | 29.357988 | 80 | 0.657412 | [
"object"
] |
2bb65efeadfe1069d791530c4653f556ab1bf5f8 | 29,576 | cpp | C++ | UI/Dialogs/BaseDialog.cpp | stephenegriffin/mfcmapi | bffbff6da9a8c292891568159c8088aac9b2052c | [
"MIT"
] | 655 | 2016-10-13T20:18:52.000Z | 2022-03-28T21:25:14.000Z | UI/Dialogs/BaseDialog.cpp | stephenegriffin/mfcmapi | bffbff6da9a8c292891568159c8088aac9b2052c | [
"MIT"
] | 285 | 2016-10-18T19:03:31.000Z | 2022-03-10T11:02:33.000Z | UI/Dialogs/BaseDialog.cpp | stephenegriffin/mfcmapi | bffbff6da9a8c292891568159c8088aac9b2052c | [
"MIT"
] | 129 | 2016-10-14T14:27:24.000Z | 2022-03-30T12:34:01.000Z | #include <StdAfx.h>
#include <UI/Dialogs/BaseDialog.h>
#include <UI/FakeSplitter.h>
#include <core/mapi/cache/mapiObjects.h>
#include <UI/ParentWnd.h>
#include <UI/Controls/SortList/SingleMAPIPropListCtrl.h>
#include <UI/Dialogs/Editors/Editor.h>
#include <UI/Dialogs/Editors/HexEditor.h>
#include <UI/Dialogs/MFCUtility... | 29.605606 | 114 | 0.718556 | [
"object"
] |
2bbfdb9b5e223d0d15ba7f6320874714827cee97 | 7,567 | hpp | C++ | opengl/src/Rendering/ImageEffects/DepthOfFieldImageEffect.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 36 | 2015-03-12T10:42:36.000Z | 2022-01-12T04:20:40.000Z | opengl/src/Rendering/ImageEffects/DepthOfFieldImageEffect.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 1 | 2015-12-17T00:25:43.000Z | 2016-02-20T12:00:57.000Z | opengl/src/Rendering/ImageEffects/DepthOfFieldImageEffect.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 6 | 2017-06-17T07:57:53.000Z | 2019-04-09T21:11:24.000Z | /*
* Copyright (c) 2013, Hernan Saez
* 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 cond... | 48.197452 | 119 | 0.61266 | [
"vector"
] |
2bc2743394b6efcbbaf428b79189994936a8a2e8 | 365 | cpp | C++ | nodes/control/PositionControlNode_px4_yawrate.cpp | larics/uav_ros_control | ec71445054ad148a8feb57ab59d9cbeca04c9f0d | [
"BSD-3-Clause"
] | 1 | 2020-03-19T09:10:07.000Z | 2020-03-19T09:10:07.000Z | nodes/control/PositionControlNode_px4_yawrate.cpp | lmark1/uav_ros_control | 5a00210e6c5418ad34da6fabea6e3bbcf6fbcf7c | [
"BSD-3-Clause"
] | 4 | 2021-01-12T15:30:54.000Z | 2021-05-27T23:28:09.000Z | nodes/control/PositionControlNode_px4_yawrate.cpp | lmark1/uav_ros_control | 5a00210e6c5418ad34da6fabea6e3bbcf6fbcf7c | [
"BSD-3-Clause"
] | 1 | 2020-03-20T17:23:15.000Z | 2020-03-20T17:23:15.000Z | #include <uav_ros_control/control/CascadePID.hpp>
int main(int argc, char **argv)
{
ros::init(argc, argv, "position_control_node");
ros::NodeHandle nh;
// Initialize distance control object
std::shared_ptr<uav_controller::CascadePID> carrotRefObj{
new uav_controller::CascadePID(nh)
};
uav_controller:... | 26.071429 | 60 | 0.750685 | [
"object"
] |
2bc6b29cbada25d6c2cc95a4196d6254abacbec5 | 8,803 | cpp | C++ | branch/old_angsys/angsys_beta3/source/platform/platform.desktop/source/input/controller.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta3/source/platform/platform.desktop/source/input/controller.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta3/source/platform/platform.desktop/source/input/controller.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include <ang/platform/win32/controller.h>
#include "event_args.h"
#include <Xinput.h>
using namespace ang;
using namespace ang::platform;
using namespace ang::platform::input;
struct controller::handle
{
uint id = 0;
events::event_listener digital_input_event;
events::event_listener analog_input_... | 33.988417 | 150 | 0.767693 | [
"object"
] |
2bcb1ef0aa06a91a95a3dd876c44b8510140abc0 | 718 | cpp | C++ | Module strings/KMP (prefix).cpp | Vinatorul/AandDS | b41f628c39103d8f3a060dee1e0e839b226cb9d2 | [
"CC0-1.0"
] | 5 | 2020-03-01T19:32:00.000Z | 2020-03-07T10:55:48.000Z | Module strings/KMP (prefix).cpp | Vinatorul/AandDS | b41f628c39103d8f3a060dee1e0e839b226cb9d2 | [
"CC0-1.0"
] | null | null | null | Module strings/KMP (prefix).cpp | Vinatorul/AandDS | b41f628c39103d8f3a060dee1e0e839b226cb9d2 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
using namespace std;
vector<int> prefix_function(string &s) {
vector<int> P(s.size());
P[0] = 0;
for (int i = 0; i < s.size() - 1; i++) {
int j = P[i];
while (j > 0 && s[i + 1] != s[j]) {
j = P[j - 1];
}
if ... | 20.514286 | 44 | 0.380223 | [
"vector"
] |
2bd314918f8f53741ad4634ba9faba832cbfba2d | 4,442 | hpp | C++ | nplus1/include/np1/rel/detail/merge_sort.hpp | AnthonyNystrom/r17 | a73f5faf07a554c9c693074192b34be834f3106c | [
"Apache-2.0"
] | 1 | 2015-11-05T21:40:47.000Z | 2015-11-05T21:40:47.000Z | nplus1/include/np1/rel/detail/merge_sort.hpp | AnthonyNystrom/r17 | a73f5faf07a554c9c693074192b34be834f3106c | [
"Apache-2.0"
] | null | null | null | nplus1/include/np1/rel/detail/merge_sort.hpp | AnthonyNystrom/r17 | a73f5faf07a554c9c693074192b34be834f3106c | [
"Apache-2.0"
] | null | null | null | // Copyright 2012 Matthew Nourse and n plus 1 computing pty limited unless otherwise noted.
// Please see LICENSE file for details.
#ifndef NP1_NP1_REL_DETAIL_MERGE_SORT_HPP
#define NP1_NP1_REL_DETAIL_MERGE_SORT_HPP
#include "np1/rel/record_ref.hpp"
#include <vector>
namespace np1 {
namespace rel {
namespace detail... | 23.88172 | 91 | 0.555155 | [
"vector"
] |
2bd59869cdf30620c4dfd68ff6344c3a3f14e4a0 | 11,124 | cxx | C++ | main/dbaccess/source/ui/browser/dsbrowserDnD.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/dbaccess/source/ui/browser/dsbrowserDnD.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/dbaccess/source/ui/browser/dsbrowserDnD.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... | 38.09589 | 160 | 0.625315 | [
"model"
] |
2bd5fef4f5758bbceed65fe7d51125c8272f9a7e | 3,832 | hh | C++ | src/tagger/TrellisColumn.hh | Traubert/FinnPos | 8a5184237a854e60e422bf3e5ef1de7b04bf962e | [
"Apache-2.0"
] | 36 | 2015-05-09T14:30:58.000Z | 2021-04-20T11:24:01.000Z | src/tagger/TrellisColumn.hh | Traubert/FinnPos | 8a5184237a854e60e422bf3e5ef1de7b04bf962e | [
"Apache-2.0"
] | 4 | 2016-04-19T20:27:21.000Z | 2020-03-09T09:07:45.000Z | src/tagger/TrellisColumn.hh | Traubert/FinnPos | 8a5184237a854e60e422bf3e5ef1de7b04bf962e | [
"Apache-2.0"
] | 10 | 2015-05-16T13:16:31.000Z | 2020-06-15T00:12:06.000Z | /**
* @file TrellisColumn.hh
* @Author Miikka Silfverberg
* @brief Class for representing the columns of a Trellis.
*/
///////////////////////////////////////////////////////////////////////////////
// ... | 31.933333 | 79 | 0.62761 | [
"vector"
] |
2bde1929147afbdbe414afb40c1a040fe7bac2d4 | 6,794 | cpp | C++ | Tracking/Viterbi/ViterbiTrackLinking.cpp | klezm/BaxterAlgorithms | fafcd6a7a14c95edf815098fde7588e1ee2c5eda | [
"MIT"
] | null | null | null | Tracking/Viterbi/ViterbiTrackLinking.cpp | klezm/BaxterAlgorithms | fafcd6a7a14c95edf815098fde7588e1ee2c5eda | [
"MIT"
] | null | null | null | Tracking/Viterbi/ViterbiTrackLinking.cpp | klezm/BaxterAlgorithms | fafcd6a7a14c95edf815098fde7588e1ee2c5eda | [
"MIT"
] | null | null | null | // Create the precompiler definition MATLAB in to compile mex file. Otherwise a standalone executable for for debugging will be generated.
#include "ArraySave.h"
#include "CellTrellis.h"
#include "LogStream.h"
#include "Tree.h"
#include <string>
#include <sstream>
// Matlab types and functions.
#include "mex.h"
#inc... | 37.955307 | 138 | 0.634678 | [
"vector"
] |
2bec19900ffec3c83cdb1419c9e66413eb0cfa6c | 716 | cpp | C++ | online_judges/atcoder/contests/abc203/c/c.cpp | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | 2 | 2018-02-20T14:44:57.000Z | 2018-02-20T14:45:03.000Z | online_judges/atcoder/contests/abc203/c/c.cpp | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | null | null | null | online_judges/atcoder/contests/abc203/c/c.cpp | miaortizma/competitive-programming | ea5adfc07e49935acfc0697eeb0a12c7dc6cd8cc | [
"MIT"
] | null | null | null | /* Generated by powerful Codeforces Tool
* You can download the binary file in here https://github.com/xalanq/cf-tool (Windows, macOS, Linux)
* Author: mia_ortizma
* Time: 2021-05-30 07:07:36
**/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pl... | 18.358974 | 101 | 0.562849 | [
"vector"
] |
2bec6bd671d435b9cedaae4e422ea6f17e9fef49 | 2,882 | cpp | C++ | FHC/2020_qual/A.cpp | igarash1/Competitive-Programming | ec118931d658492ae22f778dcd3800c70e0b1c4e | [
"MIT"
] | null | null | null | FHC/2020_qual/A.cpp | igarash1/Competitive-Programming | ec118931d658492ae22f778dcd3800c70e0b1c4e | [
"MIT"
] | null | null | null | FHC/2020_qual/A.cpp | igarash1/Competitive-Programming | ec118931d658492ae22f778dcd3800c70e0b1c4e | [
"MIT"
] | null | null | null | //
// Created by Koki Igarashi on 7/26/20.
//
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typedef int Int;
typedef pair<Int,Int> pii;
typedef pair<Int,double> pid;
typedef pair<double,double> pdd;
typedef pair<Int,pii> pip;
typedef pair<double,Int> pdp;
typedef v... | 30.659574 | 105 | 0.519778 | [
"vector"
] |
2bf33494d540100285dac0721ba77d3555394051 | 3,678 | cpp | C++ | DearPyGui/src/core/AppItems/plots/mvLabelSeries.cpp | NamWoo/DearPyGui | da4a3c7a0dbb3d5dfd8b0a7991521890ddd3e513 | [
"MIT"
] | null | null | null | DearPyGui/src/core/AppItems/plots/mvLabelSeries.cpp | NamWoo/DearPyGui | da4a3c7a0dbb3d5dfd8b0a7991521890ddd3e513 | [
"MIT"
] | null | null | null | DearPyGui/src/core/AppItems/plots/mvLabelSeries.cpp | NamWoo/DearPyGui | da4a3c7a0dbb3d5dfd8b0a7991521890ddd3e513 | [
"MIT"
] | null | null | null | #include <utility>
#include "mvLabelSeries.h"
#include "mvCore.h"
#include "mvApp.h"
#include "mvItemRegistry.h"
#include "mvImPlotThemeScope.h"
namespace Marvel {
void mvLabelSeries::InsertParser(std::map<std::string, mvPythonParser>* parsers)
{
mvPythonParser parser(mvPyDataType::String, "Undocumented function... | 27.044118 | 116 | 0.7031 | [
"vector"
] |
2bf5005150cc21dbe1d40cba67a179616c2523c8 | 21,378 | cpp | C++ | src/chainparams.cpp | Real-E-Coin/REC | 148063bd6afe431c565f3ae3e75f010b11b3d4e8 | [
"MIT"
] | 1 | 2021-12-30T23:58:45.000Z | 2021-12-30T23:58:45.000Z | src/chainparams.cpp | Real-E-Coin/REC | 148063bd6afe431c565f3ae3e75f010b11b3d4e8 | [
"MIT"
] | null | null | null | src/chainparams.cpp | Real-E-Coin/REC | 148063bd6afe431c565f3ae3e75f010b11b3d4e8 | [
"MIT"
] | 1 | 2022-01-10T22:13:20.000Z | 2022-01-10T22:13:20.000Z | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Copyright (c) 2021 The Real E Coin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or h... | 45.974194 | 241 | 0.772336 | [
"vector"
] |
2bfda7d69c7b26a7179ca4591f8ddc0c1a484b7c | 1,149 | cpp | C++ | BOJ/14000~14999/14267.cpp | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/14000~14999/14267.cpp | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/14000~14999/14267.cpp | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define for1(s,n) for(int i = s; i < n; i++)
#define for1j(s,n) for(int j = s; j < n; j++)
#define foreach(k) for(auto i : k)
#define foreachj(k) for(auto j : k)
#define pb(a) push_back(a)
#define sz(a) a.size()
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typede... | 19.810345 | 45 | 0.543081 | [
"vector"
] |
92017b1c0a1c3333b7168c84dec3890f85fe0903 | 852 | hpp | C++ | src/gui/text_button.hpp | fiddleplum/ve | 1e45de0488d593069032714ebe67725f468054f8 | [
"MIT"
] | null | null | null | src/gui/text_button.hpp | fiddleplum/ve | 1e45de0488d593069032714ebe67725f468054f8 | [
"MIT"
] | 16 | 2016-12-27T16:57:09.000Z | 2017-04-30T23:34:58.000Z | src/gui/text_button.hpp | fiddleplum/ve | 1e45de0488d593069032714ebe67725f468054f8 | [
"MIT"
] | null | null | null | #pragma once
#include "gui/widget.hpp"
#include "util/ptr.hpp"
namespace ve
{
class TextButton : public Widget
{
public:
// Constructor.
TextButton(Ptr<render::Scene> const & scene, Ptr<render::Shader> const & shader);
// Internal to gui. Returns the depth.
float getDepth() const override;
// Internal ... | 24.342857 | 99 | 0.715962 | [
"render"
] |
920befaf291784b0f9ac50166b60f8d0d87bb472 | 834 | cpp | C++ | source/core/entry/GearEnv.cpp | Johnny-Martin/Gear | 2c5cf5c10c700e3ee7f89011c9a2ec4851d4d9e3 | [
"MIT"
] | null | null | null | source/core/entry/GearEnv.cpp | Johnny-Martin/Gear | 2c5cf5c10c700e3ee7f89011c9a2ec4851d4d9e3 | [
"MIT"
] | null | null | null | source/core/entry/GearEnv.cpp | Johnny-Martin/Gear | 2c5cf5c10c700e3ee7f89011c9a2ec4851d4d9e3 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "GearEnv.h"
map<string, UIObject*> GearEnv::m_rootObjMap{};
HRESULT GearEnv::Init()
{
RenderManager::Init();
return S_OK;
}
HRESULT GearEnv::UnInit()
{
RenderManager::UnInit();
DestoryAllRootObject();
return S_OK;
}
bool GearEnv::AddRootObject(UIObject* pObj)
{
auto spObjName = pObj... | 19.857143 | 49 | 0.691847 | [
"object"
] |
92133d9b91a0d05858b69274fab87fc7ff799cd2 | 46,026 | cpp | C++ | src/gpu/text/GrTextBlob.cpp | Ghaker/my-skia | c1150db5e1cec1de2d6ce4df2e92146730e0ed53 | [
"BSD-3-Clause"
] | null | null | null | src/gpu/text/GrTextBlob.cpp | Ghaker/my-skia | c1150db5e1cec1de2d6ce4df2e92146730e0ed53 | [
"BSD-3-Clause"
] | null | null | null | src/gpu/text/GrTextBlob.cpp | Ghaker/my-skia | c1150db5e1cec1de2d6ce4df2e92146730e0ed53 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkColorFilter.h"
#include "include/gpu/GrContext.h"
#include "include/private/SkTemplates.h"
#include "src/codec/SkMasks.h"
#include "src/core/SkAutoMal... | 45.035225 | 100 | 0.572372 | [
"geometry",
"shape",
"transform"
] |
9213c10bd08c59254d57559271b1c3308c7c5f00 | 5,153 | cpp | C++ | test/nymph_test_client/nymph_test_client.cpp | martinmoene/NymphRPC | 99974556dddccf4143e214705b4b0f1529127e0c | [
"BSD-3-Clause"
] | 52 | 2018-05-31T16:54:59.000Z | 2022-02-15T20:55:07.000Z | test/nymph_test_client/nymph_test_client.cpp | martinmoene/NymphRPC | 99974556dddccf4143e214705b4b0f1529127e0c | [
"BSD-3-Clause"
] | 6 | 2019-11-22T10:58:47.000Z | 2021-08-01T08:05:04.000Z | test/nymph_test_client/nymph_test_client.cpp | martinmoene/NymphRPC | 99974556dddccf4143e214705b4b0f1529127e0c | [
"BSD-3-Clause"
] | 10 | 2019-09-11T05:44:12.000Z | 2021-11-21T13:01:40.000Z | /*
nymph_test_client.cpp - Test client application using the NymphRPC library.
Revision 0
Features:
-
Notes:
-
2017/06/24, Maya Posch : Initial version.
(c) Nyanko.ws
*/
#include "../../src/nymph.h"
#include <iostream>
#include <vector>
void logFunction(int level, std::string logStr) ... | 30.856287 | 100 | 0.662139 | [
"vector"
] |
9216a96cdf5af3b9d3c65943f4ce4824d3e68f26 | 5,197 | cpp | C++ | examples/tutorial/least-squares.cpp | denis14/ViennaCL-1.5.2 | fec808905cca30196e10126681611bdf8da5297a | [
"MIT"
] | null | null | null | examples/tutorial/least-squares.cpp | denis14/ViennaCL-1.5.2 | fec808905cca30196e10126681611bdf8da5297a | [
"MIT"
] | null | null | null | examples/tutorial/least-squares.cpp | denis14/ViennaCL-1.5.2 | fec808905cca30196e10126681611bdf8da5297a | [
"MIT"
] | null | null | null | /* =========================================================================
Copyright (c) 2010-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
Portions of this software are copyright by UChicago Argonne, LLC.
... | 35.841379 | 191 | 0.646142 | [
"vector"
] |
92176d86c27bac3efa32bb5551144a3b85be2806 | 53,335 | cc | C++ | fpga_interchange/site_router.cc | trabucayre/nextpnr | 8a9fb810369aeb5eed128ef4e7d4de456ef1ec8f | [
"0BSD"
] | null | null | null | fpga_interchange/site_router.cc | trabucayre/nextpnr | 8a9fb810369aeb5eed128ef4e7d4de456ef1ec8f | [
"0BSD"
] | null | null | null | fpga_interchange/site_router.cc | trabucayre/nextpnr | 8a9fb810369aeb5eed128ef4e7d4de456ef1ec8f | [
"0BSD"
] | null | null | null | /*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2021 Symbiflow Authors
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
... | 37.480675 | 120 | 0.589688 | [
"vector",
"model"
] |
921be0947bee5f18f35774d297c2ac97a9be7a5d | 5,954 | cpp | C++ | engine/src/wolf.content_pipeline/wavefront/obj.cpp | SiminBadri/Wolf.Engine | 3da04471ec26e162e1cbb7cc88c7ce37ee32c954 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | 1 | 2020-07-15T13:14:26.000Z | 2020-07-15T13:14:26.000Z | engine/src/wolf.content_pipeline/wavefront/obj.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | engine/src/wolf.content_pipeline/wavefront/obj.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | #include "w_cpipeline_pch.h"
#include "obj.h"
#define TINYOBJLOADER_IMPLEMENTATION
#include "tiny_obj_loader.h"
#include <w_thread_pool.h>
#include <sstream>
using namespace wolf::system;
using namespace wolf::content_pipeline;
using namespace wolf::content_pipeline::wavefront;
void obj::write(
_In_ std::vector<w_... | 25.886957 | 98 | 0.631676 | [
"mesh",
"object",
"vector",
"model"
] |
9223844398767b29f59ba714cfde786e5c23c801 | 17,196 | cpp | C++ | src/graphics/tcContainerGui.cpp | dhanin/friendly-bassoon | fafcfd3921805baddc1889dc0ee2fa367ad882f8 | [
"BSD-3-Clause"
] | 2 | 2021-11-17T10:59:38.000Z | 2021-11-17T10:59:45.000Z | src/graphics/tcContainerGui.cpp | dhanin/nws | 87a3f24a7887d84b9884635064b48d456b4184e2 | [
"BSD-3-Clause"
] | null | null | null | src/graphics/tcContainerGui.cpp | dhanin/nws | 87a3f24a7887d84b9884635064b48d456b4184e2 | [
"BSD-3-Clause"
] | null | null | null | /**
** @file tcContainerGui.cpp
*/
/*
** Copyright (c) 2014, GCBLUE PROJECT
** 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 co... | 22.478431 | 146 | 0.640323 | [
"vector"
] |
92261b0308a50a4bfce25f53ffb67baafb7c4484 | 5,014 | cpp | C++ | Sources/blocks/CascadeClassifier.cpp | Petititi/imGraph | 068890ffe2f8fa1fb51bc95b8d9296cc79737fac | [
"BSD-3-Clause"
] | 2 | 2015-01-12T11:27:45.000Z | 2015-03-25T18:24:38.000Z | Sources/blocks/CascadeClassifier.cpp | Petititi/imGraph | 068890ffe2f8fa1fb51bc95b8d9296cc79737fac | [
"BSD-3-Clause"
] | 30 | 2015-01-07T11:59:07.000Z | 2015-04-24T13:02:01.000Z | Sources/blocks/CascadeClassifier.cpp | Petititi/imGraph | 068890ffe2f8fa1fb51bc95b8d9296cc79737fac | [
"BSD-3-Clause"
] | 1 | 2018-12-20T12:18:18.000Z | 2018-12-20T12:18:18.000Z | #ifdef _WIN32
#pragma warning(disable:4503)
#pragma warning(push)
#pragma warning(disable:4996 4251 4275 4800 4190 4244)
#endif
#include <vector>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#ifdef _WIN32
#pragma warning(pop)
#endif
#include "Block.h"
#include "ParamValidator.h"
... | 48.211538 | 257 | 0.735939 | [
"vector"
] |
9232196a34a4de95eee5a28f717372535064b171 | 19,145 | cpp | C++ | gaap/src/v20180529/model/DomainRuleSet.cpp | datalliance88/tencentcloud-sdk-cpp | fbb8ea8e385620ac41b0a9ceb5abf1405b8aac8c | [
"Apache-2.0"
] | null | null | null | gaap/src/v20180529/model/DomainRuleSet.cpp | datalliance88/tencentcloud-sdk-cpp | fbb8ea8e385620ac41b0a9ceb5abf1405b8aac8c | [
"Apache-2.0"
] | null | null | null | gaap/src/v20180529/model/DomainRuleSet.cpp | datalliance88/tencentcloud-sdk-cpp | fbb8ea8e385620ac41b0a9ceb5abf1405b8aac8c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 30.879032 | 153 | 0.706764 | [
"vector",
"model"
] |
923769df9e660f55c82f837a1de6bbfa6ac379ec | 2,013 | cc | C++ | chromeos/login/auth/challenge_response/cert_utils_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chromeos/login/auth/challenge_response/cert_utils_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chromeos/login/auth/challenge_response/cert_utils_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.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 "chromeos/login/auth/challenge_response/cert_utils.h"
#include <string>
#include <vector>
#include "base/hash/sha1.h"
#include "base/memory/ref... | 31.952381 | 79 | 0.77844 | [
"vector"
] |
9238032867216ac84a53623e619762f3772f091a | 2,050 | hpp | C++ | sources/CastlesStrategy/Client/Ingame/FogOfWarManager.hpp | KonstantinTomashevich/castles-strategy | 5e57119ba7701e0f1f9c8d84ffb45abb6ad33a21 | [
"MIT"
] | null | null | null | sources/CastlesStrategy/Client/Ingame/FogOfWarManager.hpp | KonstantinTomashevich/castles-strategy | 5e57119ba7701e0f1f9c8d84ffb45abb6ad33a21 | [
"MIT"
] | null | null | null | sources/CastlesStrategy/Client/Ingame/FogOfWarManager.hpp | KonstantinTomashevich/castles-strategy | 5e57119ba7701e0f1f9c8d84ffb45abb6ad33a21 | [
"MIT"
] | null | null | null | #pragma once
#include <Urho3D/Core/Context.h>
#include <Urho3D/Graphics/Texture2D.h>
namespace CastlesStrategy
{
const float DEFAULT_FOG_OF_WAR_UPDATE_DELAY = 1.0f / 60.0f;
const Urho3D::String FOG_OF_WAR_MASK_TEXTURE_RESOURCE_NAME ("FogOfWarMask");
const Urho3D::Color DEFAULT_UNDER_FOG_OF_WAR_MASK_COLOR (0.35f, 0.35f... | 33.606557 | 96 | 0.745854 | [
"object"
] |
9240024ec4ac09725295e234fa43a4dd49479d29 | 1,643 | cpp | C++ | Old/Graphs/Trees/treecountsubtree.cpp | JanaSabuj/CodingLibrary | 92bc141ae327ce01b480fde7a10ffb0be0ba401d | [
"MIT"
] | 14 | 2020-05-17T18:31:32.000Z | 2021-02-04T03:56:30.000Z | Old/Graphs/Trees/treecountsubtree.cpp | JanaSabuj/cppdump | 92bc141ae327ce01b480fde7a10ffb0be0ba401d | [
"MIT"
] | null | null | null | Old/Graphs/Trees/treecountsubtree.cpp | JanaSabuj/cppdump | 92bc141ae327ce01b480fde7a10ffb0be0ba401d | [
"MIT"
] | 2 | 2020-05-27T10:42:36.000Z | 2021-02-02T11:59:04.000Z | /*--------------------------"SABUJ-JANA"------"JADAVPUR UNIVERSITY"--------*/
/*-------------------------------@greenindia-----------------------------------*/
/*---------------------- Magic. Do not touch.-----------------------------*/
/*------------------------------God is Great/\---------------------------------*... | 22.202703 | 99 | 0.457699 | [
"vector"
] |
9240f1e4a4142ca50f7f7f555231f02fbacbaf75 | 9,802 | cpp | C++ | asst6_hil00/skeleton.cpp | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | asst6_hil00/skeleton.cpp | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | asst6_hil00/skeleton.cpp | hibalubbad/hiba.baddie | 69001ad56c8a51f6e36a802bae061128d9fd5a71 | [
"MIT"
] | null | null | null | //this is just a skeleton. It does not compile without your partial or full solution
//it might contains some syntax error. it is given just as a starter
#include <iostream>
#include <fstream>
using namespace std;
// Define the song (node) class
class Song{
private:
string artist;
string title;
Song* n... | 29.70303 | 235 | 0.495103 | [
"object"
] |
92430cecd22ebefbd38b6d783754ddebd4ef5248 | 1,930 | cc | C++ | examples/ssl_socket/ssl_server.cc | vai-hhn/wampcc | ac206f60028406ea8af4c295e11cbc7de67cf2ad | [
"MIT"
] | 70 | 2017-03-09T12:45:30.000Z | 2021-12-31T20:34:40.000Z | examples/ssl_socket/ssl_server.cc | vai-hhn/wampcc | ac206f60028406ea8af4c295e11cbc7de67cf2ad | [
"MIT"
] | 54 | 2017-04-15T23:02:08.000Z | 2021-04-13T08:44:25.000Z | examples/ssl_socket/ssl_server.cc | vai-hhn/wampcc | ac206f60028406ea8af4c295e11cbc7de67cf2ad | [
"MIT"
] | 30 | 2017-06-02T14:12:28.000Z | 2021-12-06T07:28:48.000Z | /*
* Copyright (c) 2017 Darren Smith
*
* wampcc is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include "wampcc/wampcc.h"
#include <algorithm>
using namespace wampcc;
/* Store of client connections. For this simple demo we dont have... | 26.438356 | 79 | 0.640415 | [
"vector"
] |
924a344d1f0d411b7c4cc18dc33eb89f48a9c06f | 1,379 | cpp | C++ | semestral_project/src/event_setters.cpp | patrotom/pa2 | 900f6541017ad0e644f5a34d6a52b5ea438d0f5c | [
"MIT"
] | null | null | null | semestral_project/src/event_setters.cpp | patrotom/pa2 | 900f6541017ad0e644f5a34d6a52b5ea438d0f5c | [
"MIT"
] | null | null | null | semestral_project/src/event_setters.cpp | patrotom/pa2 | 900f6541017ad0e644f5a34d6a52b5ea438d0f5c | [
"MIT"
] | null | null | null | #include "event.h"
//--------------------------
void Event::setSummary ( string Summary ) { m_Summary = Summary; }
//--------------------------
void Event::setClass ( string Class ) { m_Class = Class; }
//--------------------------
void Event::setCategories ( vector<string> Categories ) { m_Categories = Categories; }
/... | 41.787879 | 86 | 0.453952 | [
"vector"
] |
924b797470b5276883ffc68a8dfd183cf731f45d | 6,849 | cpp | C++ | src/game/shared/utils/shared_utils.cpp | JoelTroch/halflife-unified-sdk | 0ebf7fbde22c346e202fdb26445d7470395eda2a | [
"Unlicense"
] | 31 | 2021-12-04T20:42:48.000Z | 2022-03-11T14:16:50.000Z | src/game/shared/utils/shared_utils.cpp | JoelTroch/halflife-unified-sdk | 0ebf7fbde22c346e202fdb26445d7470395eda2a | [
"Unlicense"
] | 79 | 2021-12-11T10:07:30.000Z | 2022-03-28T10:09:44.000Z | src/game/shared/utils/shared_utils.cpp | JoelTroch/halflife-unified-sdk | 0ebf7fbde22c346e202fdb26445d7470395eda2a | [
"Unlicense"
] | 8 | 2021-12-10T18:19:10.000Z | 2022-03-16T07:49:20.000Z | /***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... | 21.951923 | 123 | 0.635567 | [
"object",
"model"
] |
924f4a7a67dcc9ad39863ce2ca58eacf686728b0 | 4,744 | cpp | C++ | Opengl-Toolkit/ShaderProgram.cpp | Ultranull/visualglfwtest | 41b759d40463c4e9108b2f044144421c16450907 | [
"MIT"
] | 1 | 2019-02-18T22:20:13.000Z | 2019-02-18T22:20:13.000Z | Opengl-Toolkit/ShaderProgram.cpp | Ultranull/visualglfwtest | 41b759d40463c4e9108b2f044144421c16450907 | [
"MIT"
] | null | null | null | Opengl-Toolkit/ShaderProgram.cpp | Ultranull/visualglfwtest | 41b759d40463c4e9108b2f044144421c16450907 | [
"MIT"
] | null | null | null | #include "ShaderProgram.h"
#include <vector>
#include <fstream>
#include <sstream>
#include <string>
using namespace std;
string readFile(const char *file) {//FIX! place in a header as a util
string content;
ifstream stream(file);
if (stream.is_open()) {
stringstream ss;
ss << stream.rdbuf();
content = ss.st... | 27.581395 | 96 | 0.732293 | [
"vector"
] |
9254af011c4f6978039cdcaca8fd2661ad228852 | 1,602 | hpp | C++ | header/sem_analyzer.hpp | MatheusCTeixeira/Compiler | f9f75d6a1a092b8dcef11af6eac4e1ff59d9f6a0 | [
"MIT"
] | null | null | null | header/sem_analyzer.hpp | MatheusCTeixeira/Compiler | f9f75d6a1a092b8dcef11af6eac4e1ff59d9f6a0 | [
"MIT"
] | null | null | null | header/sem_analyzer.hpp | MatheusCTeixeira/Compiler | f9f75d6a1a092b8dcef11af6eac4e1ff59d9f6a0 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <iostream>
#include <utility>
#include <stack>
#include <unordered_map>
#include "lex_analyzer.hpp"
#include "infix_to_prefix.hpp"
namespace comp
{
struct var_table
{
std::string m_name;
int m_value;
int m_scope;
};
enum class DECLA... | 28.105263 | 115 | 0.696629 | [
"vector"
] |
925ae6bd373439d2c0eb6b19bd690a577f54b1c4 | 5,925 | cpp | C++ | sample/gl/icp/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | 24 | 2017-09-07T16:08:33.000Z | 2022-02-26T16:32:48.000Z | sample/gl/icp/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | null | null | null | sample/gl/icp/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | 8 | 2018-11-30T02:53:24.000Z | 2021-05-18T06:30:42.000Z | #define SP_USE_IMGUI 1
#include "simplesp.h"
#include "spex/spgl.h"
using namespace sp;
static bool ShowText(const char *text, const ImVec2 &pos, const ImVec4 &col = ImVec4(1.f, 1.f, 1.f, 1.f), const float scale = 1.f) {
char name[32] = { 0 };
const int maxv = 100;
for (int i = 0; i < maxv; i++) {
... | 26.809955 | 132 | 0.49519 | [
"render",
"model"
] |
925c9606d9b92fa530dd874c5c6026a1543d778a | 3,396 | cpp | C++ | problems/symbol-table/IntervalTree.cpp | rahulpawar1489/Algorithms | bdf26092f141526b7f3147772732bfbfb4fe1a17 | [
"MIT"
] | 1 | 2022-01-02T12:17:19.000Z | 2022-01-02T12:17:19.000Z | problems/symbol-table/IntervalTree.cpp | rahulpawar1489/Algorithms | bdf26092f141526b7f3147772732bfbfb4fe1a17 | [
"MIT"
] | null | null | null | problems/symbol-table/IntervalTree.cpp | rahulpawar1489/Algorithms | bdf26092f141526b7f3147772732bfbfb4fe1a17 | [
"MIT"
] | 1 | 2021-03-27T18:42:13.000Z | 2021-03-27T18:42:13.000Z | // https://www.geeksforgeeks.org/interval-tree/
// https://iq.opengenus.org/interval-tree/
#include <iostream>
#include <vector>
#include <climits>
class Interval
{
private:
int low;
int high;
public:
Interval() { }
Interval(int l, int h) : low(l), high(h) {}
int getLow() { return low; }
int ... | 22.490066 | 116 | 0.496172 | [
"vector"
] |
925eeadb8905b989bf8c587161f6d065a253326a | 1,837 | cpp | C++ | 2018/day-06/6a.cpp | Valokoodari/advent-of-code | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-27T18:59:11.000Z | 2022-01-10T02:31:36.000Z | 2018/day-06/6a.cpp | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | null | null | null | 2018/day-06/6a.cpp | Valokoodari/advent-of-code-2019 | c664987f739e0b07ddad34bad87d56768556a5a5 | [
"MIT"
] | 2 | 2021-12-23T17:29:10.000Z | 2021-12-24T03:21:49.000Z | #include <iostream>
#include <string>
#include <vector>
int a, s, sc;
int size = 360;
std::string c;
std::vector<int> d, e;
std::vector<std::vector<int>> cs;
std::vector<std::vector<int>> map(size);
int main() {
freopen("6_input", "r", stdin);
freopen("6a_output", "w", stdout);
for (int i = 0; i < map.si... | 23.551282 | 86 | 0.331519 | [
"vector"
] |
1782b525dbefcaec4398f222f381106be82ae87a | 3,179 | cpp | C++ | prj/src/dno.cpp | Jakub-Czerniak/ZadanieDron | 89b2fafbba58582b5bb1380dc36c77b066077e67 | [
"MIT"
] | null | null | null | prj/src/dno.cpp | Jakub-Czerniak/ZadanieDron | 89b2fafbba58582b5bb1380dc36c77b066077e67 | [
"MIT"
] | null | null | null | prj/src/dno.cpp | Jakub-Czerniak/ZadanieDron | 89b2fafbba58582b5bb1380dc36c77b066077e67 | [
"MIT"
] | null | null | null | #include "dno.hh"
dno::dno(Wektor3D srodek,double x)
{
Srodek=srodek;
X=x;
}
bool dno::Czy_Kolizja(InterfejsDrona *InDr)
{
double R=InDr->Get_R();
Wektor3D C=InDr->Get_C();
if(Srodek[2]+R<=C[2])
{
return false;
}
std::cout<<"Dno Kolizj... | 73.930233 | 307 | 0.619063 | [
"vector"
] |
1783830afb0214c7c15d68726b51e6e015aeb4c0 | 3,433 | cpp | C++ | aws-cpp-sdk-wafv2/source/model/IPSet.cpp | grujicbr/aws-sdk-cpp | bdd43c178042f09c6739645e3f6cd17822a7c35c | [
"Apache-2.0"
] | 1 | 2020-03-11T05:36:20.000Z | 2020-03-11T05:36:20.000Z | aws-cpp-sdk-wafv2/source/model/IPSet.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-wafv2/source/model/IPSet.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 22.292208 | 117 | 0.721526 | [
"model"
] |
178cf75c8e9d942012d2a8eac65ef9bfdbbf0e55 | 2,382 | cpp | C++ | ABC/ABC070/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | 1 | 2021-06-01T17:13:44.000Z | 2021-06-01T17:13:44.000Z | ABC/ABC070/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | ABC/ABC070/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | //#include <cassert>
//#include <cstdio>
//#include <cmath>
//#include <iostream>
//#include <sstream>
//#include <string>
//#include <vector>
//#include <map>
//#include <queue>
//#include <algorithm>
//
//const int MOD = 1000000007, INF = 1111111111;
//using namespace std;
//using lint = long long;
//
//template <cla... | 22.471698 | 78 | 0.52225 | [
"vector"
] |
178fa513f6cd9e5cd1815d971a99f5b89af5ca39 | 6,513 | cpp | C++ | examples/TimeTBB.cpp | kvmanohar22/gtsam | 8194b931fe07fb1bd346cdcf116a35f9c4e208ba | [
"BSD-3-Clause"
] | 14 | 2019-12-11T18:33:57.000Z | 2022-01-04T04:52:45.000Z | examples/TimeTBB.cpp | kvmanohar22/gtsam | 8194b931fe07fb1bd346cdcf116a35f9c4e208ba | [
"BSD-3-Clause"
] | 6 | 2019-10-30T21:17:33.000Z | 2020-02-18T18:47:40.000Z | examples/TimeTBB.cpp | kvmanohar22/gtsam | 8194b931fe07fb1bd346cdcf116a35f9c4e208ba | [
"BSD-3-Clause"
] | 5 | 2020-01-09T16:24:50.000Z | 2021-09-24T11:10:49.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -----------... | 33.060914 | 123 | 0.613082 | [
"vector"
] |
1792d19e9b2112f5fcd10edd4b5babf91374e5fb | 1,469 | cpp | C++ | src/Customs/FirstBossLifeScript.cpp | fgagamedev/voID | 37cd56fe2878d036c36dafcf595e48ed85408d02 | [
"MIT"
] | null | null | null | src/Customs/FirstBossLifeScript.cpp | fgagamedev/voID | 37cd56fe2878d036c36dafcf595e48ed85408d02 | [
"MIT"
] | null | null | null | src/Customs/FirstBossLifeScript.cpp | fgagamedev/voID | 37cd56fe2878d036c36dafcf595e48ed85408d02 | [
"MIT"
] | null | null | null | /**
@file FirstBossLifeScript.cpp
@brief Manage the first boss life.
@copyright MIT License.
*/
#include "Customs/FirstBossLifeScript.hpp"
#include "Globals/EngineGlobals.hpp"
/**
@brief Constructor of the FirstBossLifeScript class.
*/
FirstBossLifeScript::FirstBossLifeScript(GameObject *owner) : Scr... | 26.709091 | 77 | 0.663036 | [
"vector"
] |
179327f762b00920520eb82b3eecb2645bf13ad7 | 721 | cpp | C++ | C++/961. N-RepeatedElementInSize2NArray.cpp | josh-dp/LeetCode-Solutions | ef790260b8e390f207461e3ee1d79fd59d8b2258 | [
"MIT"
] | 263 | 2020-10-05T18:47:29.000Z | 2022-03-31T19:44:46.000Z | C++/961. N-RepeatedElementInSize2NArray.cpp | josh-dp/LeetCode-Solutions | ef790260b8e390f207461e3ee1d79fd59d8b2258 | [
"MIT"
] | 1,264 | 2020-10-05T18:13:05.000Z | 2022-03-31T23:16:35.000Z | C++/961. N-RepeatedElementInSize2NArray.cpp | josh-dp/LeetCode-Solutions | ef790260b8e390f207461e3ee1d79fd59d8b2258 | [
"MIT"
] | 760 | 2020-10-05T18:22:51.000Z | 2022-03-29T06:06:20.000Z | /*
Problem 961 - N-Repeated Element in Size 2N Array
You are given an integer array nums with the following properties:
nums.length == 2 * n.
nums contains n + 1 unique elements.
Exactly one element of nums is repeated n times.
Return the element that is repeated n times.
*/
class Solution {
public:
int repeatedN... | 28.84 | 107 | 0.565881 | [
"vector"
] |
179494c41308dd6fae69dafe0db7bc52f7efa447 | 646 | hpp | C++ | src/sprite.hpp | catsocks/sdl-grassland | 7d040a69a7daa97f025a8a572fa76c955a07859d | [
"CC0-1.0"
] | null | null | null | src/sprite.hpp | catsocks/sdl-grassland | 7d040a69a7daa97f025a8a572fa76c955a07859d | [
"CC0-1.0"
] | null | null | null | src/sprite.hpp | catsocks/sdl-grassland | 7d040a69a7daa97f025a8a572fa76c955a07859d | [
"CC0-1.0"
] | null | null | null | #pragma once
#include <SDL.h>
#include "tileset.hpp"
class Sprite {
const Tileset &tileset;
Rect2Di tile_rect;
int tile_variant{};
public:
// The defintion of Tile and the value of tile_variant_count is determined
// by the format of the character tilesets.
enum class Tile { front, left, rig... | 21.533333 | 78 | 0.684211 | [
"render"
] |
1799f416b7a5590e2056bda09b2e3a05d4ca56ff | 18,789 | cc | C++ | ash/app_list/app_list_presenter_impl.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/app_list/app_list_presenter_impl.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/app_list/app_list_presenter_impl.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-03-07T14:20:02.000Z | 2021-03-07T14:20:02.000Z | // Copyright 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 "ash/app_list/app_list_presenter_impl.h"
#include <utility>
#include "ash/app_list/app_list_metrics.h"
#include "ash/app_list/app_list_view_del... | 35.251407 | 80 | 0.706211 | [
"model",
"transform"
] |
17a309993a13b97b0a52367991c51e88d7f6c249 | 28,222 | hpp | C++ | include/Teisko/LateralChromaticAberration.hpp | intel/image-quality-and-characterization-utilities | ef58f9aea906e6453b8cec4a891104d16dd44f93 | [
"BSD-3-Clause"
] | 8 | 2019-04-10T14:21:16.000Z | 2020-11-13T06:26:22.000Z | include/Teisko/LateralChromaticAberration.hpp | intel/image-quality-and-characterization-utilities | ef58f9aea906e6453b8cec4a891104d16dd44f93 | [
"BSD-3-Clause"
] | null | null | null | include/Teisko/LateralChromaticAberration.hpp | intel/image-quality-and-characterization-utilities | ef58f9aea906e6453b8cec4a891104d16dd44f93 | [
"BSD-3-Clause"
] | 6 | 2019-04-30T11:39:08.000Z | 2021-02-17T11:38:29.000Z | /*
* Copyright (c) 2019, Intel Corporation
* 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 condi... | 44.165884 | 119 | 0.51598 | [
"shape",
"vector",
"model"
] |
17b3e1c2e430435644d1f0f32772e6ffd0c20327 | 3,247 | cpp | C++ | graph/MFMC(Dijkstra).cpp | jasonfan0328/algorithm | 3769a03c5c530381e3ee08c416c3593c96ee966c | [
"CC0-1.0"
] | 3 | 2021-05-03T01:14:04.000Z | 2021-05-05T05:47:56.000Z | graph/MFMC(Dijkstra).cpp | jason-fxz/algorithm | 3769a03c5c530381e3ee08c416c3593c96ee966c | [
"CC0-1.0"
] | null | null | null | graph/MFMC(Dijkstra).cpp | jason-fxz/algorithm | 3769a03c5c530381e3ee08c416c3593c96ee966c | [
"CC0-1.0"
] | null | null | null | #include <bits/stdc++.h>
#define fi first
#define se second
template<typename _Tp>
inline void red(_Tp &x) {
x = 0; bool fg = 0; char ch = getchar();
while (ch < '0' || ch > '9') {if (ch == '-') fg ^= 1; ch = getchar();}
while (ch >= '0' && ch <= '9') x = (x << 1) + (x << 3) + (_Tp)(ch ^ 48), ch = getchar()... | 34.542553 | 92 | 0.414844 | [
"vector"
] |
17b5b7a7e2bf2bacbf7411af12aaa83e366b029e | 1,835 | cpp | C++ | Core/src/Snake.cpp | WSeegers/-toy-nibbler | 3458001b76eb616feedc9f234910324dc265e1a4 | [
"MIT"
] | null | null | null | Core/src/Snake.cpp | WSeegers/-toy-nibbler | 3458001b76eb616feedc9f234910324dc265e1a4 | [
"MIT"
] | 1 | 2019-08-06T09:56:57.000Z | 2019-08-06T09:56:57.000Z | Core/src/Snake.cpp | WSeegers/-toy-nibbler | 3458001b76eb616feedc9f234910324dc265e1a4 | [
"MIT"
] | null | null | null | #include "Snake.hpp"
#include <algorithm>
const Vec2i Snake::_up(0, -1);
const Vec2i Snake::_left(-1, 0);
const Vec2i Snake::_down(0, 1);
const Vec2i Snake::_right(1, 0);
Snake::Snake()
: _body({Vec2i(0, 0), Vec2i(0, 0), Vec2i(0, 0), Vec2i(0, 0)}),
_nextDirection(Snake::_right),
_direction(Snake::_right) {}
... | 17.815534 | 71 | 0.637602 | [
"render"
] |
17b694fce046bd2f8df9d3c3dab1a81dc51302f0 | 9,009 | hpp | C++ | src/core/bvh/BinaryBvh.hpp | chaosink/tungsten | 88ea02044dbaf20472a8173b6752460b50c096d8 | [
"Apache-2.0",
"Unlicense"
] | 1,655 | 2015-01-12T13:05:37.000Z | 2022-03-31T13:37:57.000Z | src/core/bvh/BinaryBvh.hpp | chaosink/tungsten | 88ea02044dbaf20472a8173b6752460b50c096d8 | [
"Apache-2.0",
"Unlicense"
] | 65 | 2015-01-13T08:34:28.000Z | 2021-06-08T05:07:58.000Z | src/core/bvh/BinaryBvh.hpp | chaosink/tungsten | 88ea02044dbaf20472a8173b6752460b50c096d8 | [
"Apache-2.0",
"Unlicense"
] | 190 | 2015-01-12T14:53:05.000Z | 2022-03-30T17:30:00.000Z | #ifndef BINARYBVH_HPP_
#define BINARYBVH_HPP_
#include "BvhBuilder.hpp"
#include "math/Box.hpp"
#include "math/Vec.hpp"
#include "sse/SimdUtils.hpp"
#include "IntTypes.hpp"
namespace Tungsten {
#include "AlignedAllocator.hpp"
typedef Vec<float4, 3> Vec3pf;
namespace Bvh {
class BinaryBvh
{
template<typename... | 30.958763 | 125 | 0.50605 | [
"vector"
] |
17b7490a890c3370ec7f79c3f721a46bda344594 | 1,458 | hpp | C++ | src/trace/D3DCodegen/Generator/DXHGenerator.hpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 23 | 2016-01-14T04:47:13.000Z | 2022-01-13T14:02:08.000Z | src/trace/D3DCodegen/Generator/DXHGenerator.hpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 2 | 2018-03-25T14:39:20.000Z | 2022-03-18T05:11:21.000Z | src/trace/D3DCodegen/Generator/DXHGenerator.hpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 17 | 2016-02-13T05:35:35.000Z | 2022-03-24T16:05:40.000Z | /**************************************************************************
*
* Copyright (c) 2002 - 2011 by Computer Architecture Department,
* Universitat Politecnica de Catalunya.
* All rights reserved.
*
* The contents of this file may not be disclosed to third parties,
* copied or duplicated in any form, in... | 23.142857 | 80 | 0.537037 | [
"vector"
] |
17b93969f816160764d2c92aa56ee4fc3fdc5a3e | 3,924 | cpp | C++ | plugins/dali-script-v8/src/rendering/sampler-wrapper.cpp | tizenorg/platform.core.uifw.dali-toolkit | 146486a8c7410a2f2a20a6d670145fe855672b96 | [
"Apache-2.0"
] | null | null | null | plugins/dali-script-v8/src/rendering/sampler-wrapper.cpp | tizenorg/platform.core.uifw.dali-toolkit | 146486a8c7410a2f2a20a6d670145fe855672b96 | [
"Apache-2.0"
] | null | null | null | plugins/dali-script-v8/src/rendering/sampler-wrapper.cpp | tizenorg/platform.core.uifw.dali-toolkit | 146486a8c7410a2f2a20a6d670145fe855672b96 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 28.028571 | 121 | 0.717125 | [
"object"
] |
17bded3b76bc9788142dbe79fbd18f182f3dc1d6 | 61 | cxx | C++ | base/fs/utils/ntlib/src/object.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/fs/utils/ntlib/src/object.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/fs/utils/ntlib/src/object.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "pch.cxx"
#include "..\..\ulib\src\object.cxx"
| 20.333333 | 38 | 0.590164 | [
"object"
] |
17bf4f8e84711e369d9958bf2f164346029352bb | 711 | cpp | C++ | Aruco.Net/Board.cpp | horizongir/aruco.net | 1a085b917e2ec89f1c34568e509005e35f3a3223 | [
"MIT"
] | null | null | null | Aruco.Net/Board.cpp | horizongir/aruco.net | 1a085b917e2ec89f1c34568e509005e35f3a3223 | [
"MIT"
] | null | null | null | Aruco.Net/Board.cpp | horizongir/aruco.net | 1a085b917e2ec89f1c34568e509005e35f3a3223 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "Board.h"
using namespace System::Runtime::InteropServices;
Aruco::Net::Board::Board(const aruco::Board &board, float likelihood):
board(new aruco::Board(board)),
markers(gcnew List<Marker ^>(board.size())),
likelihood(likelihood)
{
std::vector<aruco::Marker>::const_iterator it... | 24.517241 | 71 | 0.670886 | [
"vector"
] |
17c677fb96601facc086d4adf1a7db04e0915a45 | 2,467 | hpp | C++ | ige/include/ige/plugin/UiPlugin.hpp | Arcahub/ige | b9f61209c924c7b683d2429a07e76251e6eb7b1b | [
"MIT"
] | 3 | 2021-06-05T00:36:50.000Z | 2022-02-27T10:23:53.000Z | ige/include/ige/plugin/UiPlugin.hpp | Arcahub/ige | b9f61209c924c7b683d2429a07e76251e6eb7b1b | [
"MIT"
] | 11 | 2021-05-08T22:00:24.000Z | 2021-11-11T22:33:43.000Z | ige/include/ige/plugin/UiPlugin.hpp | Arcahub/ige | b9f61209c924c7b683d2429a07e76251e6eb7b1b | [
"MIT"
] | 4 | 2021-05-20T12:41:23.000Z | 2021-11-09T14:19:18.000Z | #ifndef A3879050_3E91_426B_BD37_E5E44D0860BD
#define A3879050_3E91_426B_BD37_E5E44D0860BD
#include "ige/core/App.hpp"
#include "ige/ecs/Entity.hpp"
#include "ige/ecs/Resources.hpp"
#include "ige/ecs/World.hpp"
#include "ige/plugin/input/Mouse.hpp"
#include <cstdint>
#include <functional>
#include <glm/vec2.hpp>
#inclu... | 22.427273 | 80 | 0.6364 | [
"vector"
] |
17c6c467cd34b367e7e241316669d20a3637b52e | 4,900 | cc | C++ | src/extensions/far/farscript.cc | entn-at/openfst | 10ab103134b1872e475800fd5ea37747d1c0c858 | [
"Apache-2.0"
] | 336 | 2018-11-06T14:03:32.000Z | 2022-03-31T00:48:03.000Z | src/extensions/far/farscript.cc | entn-at/openfst | 10ab103134b1872e475800fd5ea37747d1c0c858 | [
"Apache-2.0"
] | 43 | 2017-07-13T21:04:44.000Z | 2022-02-16T19:47:53.000Z | src/extensions/far/farscript.cc | entn-at/openfst | 10ab103134b1872e475800fd5ea37747d1c0c858 | [
"Apache-2.0"
] | 77 | 2018-11-07T06:43:10.000Z | 2021-12-10T04:16:43.000Z | // See www.openfst.org for extensive documentation on this weighted
// finite-state transducer library.
//
// Definitions of 'scriptable' versions of FAR operations, that is,
// those that can be called with FstClass-type arguments.
#include <fst/extensions/far/farscript.h>
#include <fst/extensions/far/far.h>
#include... | 47.572816 | 80 | 0.672245 | [
"vector"
] |
17c9d03ef33eab90f68732b3d4e9188c108842ab | 981 | cpp | C++ | Codeforces/C1082.cpp | amrfahmyy/Problem-Solving | 4c7540a1df3c4be206fc6dc6c77d754b513b314f | [
"Apache-2.0"
] | null | null | null | Codeforces/C1082.cpp | amrfahmyy/Problem-Solving | 4c7540a1df3c4be206fc6dc6c77d754b513b314f | [
"Apache-2.0"
] | null | null | null | Codeforces/C1082.cpp | amrfahmyy/Problem-Solving | 4c7540a1df3c4be206fc6dc6c77d754b513b314f | [
"Apache-2.0"
] | 1 | 2021-04-02T14:20:11.000Z | 2021-04-02T14:20:11.000Z | #include <bits/stdc++.h>
#define SLAY ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define PI 3.141592653589793238
#define ll long long
#define pii pair<int , int>
#define pll pair<long long , long long>
#define INPUT freopen(".txt", "r", stdin);
using namespace std;
int dx[] = { 0 , 0 , 1 , -1};
int dy[]... | 21.326087 | 71 | 0.541284 | [
"vector"
] |
17cbe81b367c9179e73e254e9faebb6b6113f3d7 | 21,736 | cc | C++ | src/HashTableTest.cc | rohankumardubey/ramcloud | 3a30ba5edc4a81d5e12ab20fda0360cb9bacf50f | [
"0BSD"
] | 5 | 2015-11-14T16:49:06.000Z | 2019-09-03T13:21:30.000Z | src/HashTableTest.cc | rohankumardubey/ramcloud | 3a30ba5edc4a81d5e12ab20fda0360cb9bacf50f | [
"0BSD"
] | null | null | null | src/HashTableTest.cc | rohankumardubey/ramcloud | 3a30ba5edc4a81d5e12ab20fda0360cb9bacf50f | [
"0BSD"
] | 1 | 2018-02-25T11:16:27.000Z | 2018-02-25T11:16:27.000Z | /* Copyright (c) 2009-2010 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(... | 31.54717 | 79 | 0.643495 | [
"object"
] |
17ccb23e96cdc4dfa820b4c59f425444e8588269 | 14,853 | hpp | C++ | base_view.hpp | EDAII/Lista3_LucasMaciel_2019.1 | 9ea8b268bc08913bd88a9bb1588a3dfff8f6e6d9 | [
"MIT"
] | 1 | 2019-04-15T02:08:01.000Z | 2019-04-15T02:08:01.000Z | base_view.hpp | EDAII/Lista3_LucasMaciel_2019.1 | 9ea8b268bc08913bd88a9bb1588a3dfff8f6e6d9 | [
"MIT"
] | null | null | null | base_view.hpp | EDAII/Lista3_LucasMaciel_2019.1 | 9ea8b268bc08913bd88a9bb1588a3dfff8f6e6d9 | [
"MIT"
] | 1 | 2019-07-13T14:51:42.000Z | 2019-07-13T14:51:42.000Z | #ifndef COLORMAP_H
#define COLORMAP_H
#include <SFML/Graphics.hpp>
#include <SFML/Graphics/Color.hpp>
#include <cmath>
#include <string>
#include <map>
#define my_colormap (ColorMap::get_instance())
class ColorMap
{
private:
std::map<char, sf::Color> mapa;
ColorMap()
{
mapa['r'] = sf::Color::Red;... | 23.879421 | 136 | 0.512758 | [
"vector"
] |
17e3fe0f1dedccdee2133b5d2d55746f449f76ba | 14,047 | hpp | C++ | include/hipipe/core/utility/tuple.hpp | iterait/hipipe | c2a6cc13857dce93e5ae3f76a86e8f029ca3f921 | [
"BSL-1.0",
"MIT"
] | 16 | 2018-10-08T09:00:14.000Z | 2021-07-11T12:35:09.000Z | include/hipipe/core/utility/tuple.hpp | iterait/hipipe | c2a6cc13857dce93e5ae3f76a86e8f029ca3f921 | [
"BSL-1.0",
"MIT"
] | 19 | 2018-09-26T13:55:40.000Z | 2019-08-28T13:47:04.000Z | include/hipipe/core/utility/tuple.hpp | iterait/hipipe | c2a6cc13857dce93e5ae3f76a86e8f029ca3f921 | [
"BSL-1.0",
"MIT"
] | null | null | null | /****************************************************************************
* hipipe library
* Copyright (c) 2017, Cognexa Solutions s.r.o.
* Copyright (c) 2018, Iterait a.s.
* Author(s) Filip Matzner
*
* This file is distributed under the MIT License.
* See the accompanying file LICENSE.txt for the comp... | 29.887234 | 99 | 0.618637 | [
"vector",
"transform"
] |
17e5c0ef95366ed58fcccc80c0a0819edbfbd5d6 | 882 | cpp | C++ | atcoder/abc084/C/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | atcoder/abc084/C/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | atcoder/abc084/C/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int N;
vector<int> C, S, F;
vector<ll> solve() {
vector<ll> ans(N, 0);
for (int i = 0; i < N; ++i) {
ll t = 0;
for (int j = i; j < N - 1; ++j) {
if (t < S[j]) {
t = S[j];
t += C[j]... | 18.765957 | 57 | 0.351474 | [
"vector"
] |
17e6a19cbd93617cf2acbd47f50cf7d4514f704d | 5,667 | hpp | C++ | SU2-Quantum/Common/include/toolboxes/geometry_toolbox.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/Common/include/toolboxes/geometry_toolbox.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/Common/include/toolboxes/geometry_toolbox.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:40:08.000Z | 2021-12-03T06:40:08.000Z | /*!
* \file geometry_toolbox.hpp
* \brief Collection of common lightweight geometry-oriented methods.
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2020, SU2 Contributors (... | 30.304813 | 89 | 0.64108 | [
"geometry",
"vector",
"3d"
] |
17f14caabaabbedd63425dcf99ab2f5d7093c451 | 9,955 | cpp | C++ | src/openms/source/CHEMISTRY/EnzymaticDigestion.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | 1 | 2018-03-06T14:12:09.000Z | 2018-03-06T14:12:09.000Z | src/openms/source/CHEMISTRY/EnzymaticDigestion.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/openms/source/CHEMISTRY/EnzymaticDigestion.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 32.42671 | 149 | 0.6222 | [
"vector"
] |
17f1c5490d0ce5c2441bc1045545ee2ab18fe411 | 480 | cpp | C++ | Array/283_Move-Zeroes.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | Array/283_Move-Zeroes.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | Array/283_Move-Zeroes.cpp | YunWGui/LeetCode | 2587eca22195ec7d9263227554467ec4010cfe05 | [
"MIT"
] | null | null | null | /*
Title:
283. Move Zeroes
283. 移动零
Address:
https://leetcode-cn.com/problems/move-zeroes/
*/
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
void moveZeroes(vector<int>& nums) {
int idx = 0;
for ( int i = 0; i < (int)nums.size... | 15 | 54 | 0.5 | [
"vector"
] |
17f9132162ba6e5b33d4c9620ad7385766938dfb | 1,894 | cc | C++ | sandboxed_api/proto_helper.cc | 0xgpapad/sandboxed-api | 7004d59150c9fbfaa3e5fd1872affffd1ab14fe8 | [
"Apache-2.0"
] | 1 | 2022-02-10T10:38:30.000Z | 2022-02-10T10:38:30.000Z | sandboxed_api/proto_helper.cc | 0xgpapad/sandboxed-api | 7004d59150c9fbfaa3e5fd1872affffd1ab14fe8 | [
"Apache-2.0"
] | null | null | null | sandboxed_api/proto_helper.cc | 0xgpapad/sandboxed-api | 7004d59150c9fbfaa3e5fd1872affffd1ab14fe8 | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 33.821429 | 75 | 0.715417 | [
"vector"
] |
aa00d2ba124870409261c166cc51c81e109285cf | 4,174 | cpp | C++ | self_driving/ImpulseEngine-fix/main.cpp | zaqwes8811/coordinator-tasks | 7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a | [
"MIT"
] | null | null | null | self_driving/ImpulseEngine-fix/main.cpp | zaqwes8811/coordinator-tasks | 7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a | [
"MIT"
] | 15 | 2015-03-07T12:46:41.000Z | 2015-04-11T09:08:36.000Z | self_driving/ImpulseEngine-fix/main.cpp | zaqwes8811/micro-apps | 7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a | [
"MIT"
] | null | null | null | /*
Copyright (c) 2013 Randy Gaul http://RandyGaul.net
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including com... | 24.698225 | 95 | 0.700527 | [
"render",
"vector",
"model"
] |
aa01e21da343f8223e08f85445ff87bc5c6335dd | 3,112 | hpp | C++ | include/lexical_analyzer/DFA_Builder.hpp | Hamada14/JavaCompiler | ee01fdf3d4ef667fc8bebbdf1691391460dd0b16 | [
"MIT"
] | null | null | null | include/lexical_analyzer/DFA_Builder.hpp | Hamada14/JavaCompiler | ee01fdf3d4ef667fc8bebbdf1691391460dd0b16 | [
"MIT"
] | null | null | null | include/lexical_analyzer/DFA_Builder.hpp | Hamada14/JavaCompiler | ee01fdf3d4ef667fc8bebbdf1691391460dd0b16 | [
"MIT"
] | null | null | null | #ifndef DFA_BUILDER_HPP_INCLUDED
#define DFA_BUILDER_HPP_INCLUDED
#include "DFA.hpp"
#include "Graph.hpp"
#include "NFA.hpp"
#include "State.hpp"
#include "Print.hpp"
#include <climits>
#include <cstring>
#include <iostream>
#include <map>
#include <stack>
#include <stdio.h>
#include <unordered_map>
#include <unordere... | 26.372881 | 98 | 0.636247 | [
"vector"
] |
aa0278e6bd66c49c10473d715cae2b425f02192b | 729 | cpp | C++ | day15.cpp | tamastokes/AdventOfCode2020 | a2350bf9c735b36a23ca63506d337efdfb2552fc | [
"MIT"
] | null | null | null | day15.cpp | tamastokes/AdventOfCode2020 | a2350bf9c735b36a23ca63506d337efdfb2552fc | [
"MIT"
] | null | null | null | day15.cpp | tamastokes/AdventOfCode2020 | a2350bf9c735b36a23ca63506d337efdfb2552fc | [
"MIT"
] | null | null | null | #include <unordered_map>
#include <vector>
#include <iostream>
int main()
{
std::vector<int> v{0,6,1,7,2,19,20};
std::unordered_map<int,int> m;
for (int i=0; i<v.size()-1; ++i){
m[v[i]] = i+1;
}
int curr = v.back();
for (int i=v.size(); i<30000000; ++i)
{
int next;
... | 19.702703 | 42 | 0.421125 | [
"vector"
] |
aa076ef8c9490d46054fb2155b4da204da42076e | 9,353 | cpp | C++ | d-collide/narrowphase/spheretriangleintersector.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | 6 | 2015-12-08T05:38:03.000Z | 2021-04-09T13:45:59.000Z | d-collide/narrowphase/spheretriangleintersector.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | d-collide/narrowphase/spheretriangleintersector.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2007 by the members of PG 510, University of Dortmund: *
* d-collide-users@lists.sourceforge.net *
* Andreas Beckermann, Christian Bode, Marcel Ens, Sebastian Ens, ... | 46.073892 | 103 | 0.575858 | [
"mesh",
"vector"
] |
aa09df65b6c5e71a4a2c80b213414f827cfb0de7 | 13,236 | cc | C++ | skiko/src/nativeJsMain/cpp/common_interop.cc | smallshen/skiko | 6eaa4ba6b3bf2cff1eaa92f63adb5c7b02c5bd8d | [
"Apache-2.0"
] | null | null | null | skiko/src/nativeJsMain/cpp/common_interop.cc | smallshen/skiko | 6eaa4ba6b3bf2cff1eaa92f63adb5c7b02c5bd8d | [
"Apache-2.0"
] | null | null | null | skiko/src/nativeJsMain/cpp/common_interop.cc | smallshen/skiko | 6eaa4ba6b3bf2cff1eaa92f63adb5c7b02c5bd8d | [
"Apache-2.0"
] | null | null | null | #include "common.h"
#include "src/utils/SkUTF.h"
#include "include/core/SkImageInfo.h"
#include "TextStyle.h"
#include <stdio.h>
KLong packTwoInts(int32_t a, int32_t b) {
return (uint64_t (a) << 32) | b;
}
KLong packIPoint(SkIPoint p) {
return packTwoInts(p.fX, p.fY);
}
KLong packISize(SkISize p) {
retur... | 35.580645 | 135 | 0.5445 | [
"vector"
] |
aa0a61c4ccfc0f2dfba70c9c0f81efd364ca3dc4 | 773 | cpp | C++ | PhysicsExample/Source/PhysicsExample/CubeA.cpp | EduTeachers/UnrealEngine4-SampleCode | 80e8f0fe3c2bb930856d4f6a478bf0bdc51878d5 | [
"MIT"
] | 4 | 2022-01-20T18:14:00.000Z | 2022-02-24T14:45:47.000Z | PhysicsExample/Source/PhysicsExample/CubeA.cpp | EduTeachers/UnrealEngine4-SampleCode | 80e8f0fe3c2bb930856d4f6a478bf0bdc51878d5 | [
"MIT"
] | null | null | null | PhysicsExample/Source/PhysicsExample/CubeA.cpp | EduTeachers/UnrealEngine4-SampleCode | 80e8f0fe3c2bb930856d4f6a478bf0bdc51878d5 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "CubeA.h"
// Sets default values
ACubeA::ACubeA()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
StaticMeshComponent =... | 23.424242 | 114 | 0.751617 | [
"mesh"
] |
aa0d368957137b4b0fb57928ddd15f1189151616 | 10,332 | cc | C++ | chrome/browser/cart/commerce_hint_service.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/cart/commerce_hint_service.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/cart/commerce_hint_service.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/cart/commerce_hint_service.h"
#include <map>
#include <memory>
#include "base/metrics/histogram_functions.h"
#include "base/tim... | 38.125461 | 87 | 0.723868 | [
"object",
"vector"
] |
aa0f2ef2dde74453ed7dfa1df4dfd1aa8547ed03 | 3,515 | hpp | C++ | strings/suff-automaton.hpp | dendi239/algorithms-data-structures | 43db1aa8340f8ef9669bcb26894884f4bc420def | [
"MIT"
] | 10 | 2020-02-02T23:53:04.000Z | 2022-02-14T02:55:14.000Z | strings/suff-automaton.hpp | dendi239/algorithms-data-structures | 43db1aa8340f8ef9669bcb26894884f4bc420def | [
"MIT"
] | 2 | 2020-09-02T12:27:48.000Z | 2021-05-04T00:10:44.000Z | strings/suff-automaton.hpp | dendi239/algorithms-data-structures | 43db1aa8340f8ef9669bcb26894884f4bc420def | [
"MIT"
] | 1 | 2020-04-30T23:16:08.000Z | 2020-04-30T23:16:08.000Z | #pragma once
#include <string>
#include <map>
#include <unordered_map>
#include <vector>
template <class Key, class Value>
struct FastCheapMap {
bool count(Key key) const {
auto it = std::lower_bound(data_.begin(), data_.end(), std::pair{key, Value{}});
return it != data_.end() && it->first == key;
}
V... | 24.58042 | 89 | 0.611949 | [
"vector"
] |
aa10ebf4b70069a28854e7e70a41d1ad6d02fa95 | 504 | hpp | C++ | src/strap/common/core/class_indexed_data.hpp | likr/strap | 387162116bab2031e8855f8c686560d7e656b417 | [
"MIT"
] | null | null | null | src/strap/common/core/class_indexed_data.hpp | likr/strap | 387162116bab2031e8855f8c686560d7e656b417 | [
"MIT"
] | null | null | null | src/strap/common/core/class_indexed_data.hpp | likr/strap | 387162116bab2031e8855f8c686560d7e656b417 | [
"MIT"
] | null | null | null | #ifndef STRAP_COMMON_CORE_CLASS_INDEXED_DATA_HPP_
#define STRAP_COMMON_CORE_CLASS_INDEXED_DATA_HPP_
#include <vector>
namespace strap {
template<typename T>
class ClassIndexedData
{
public:
ClassIndexedData();
ClassIndexedData(const int m);
ClassIndexedData(const int m, const T& init);
int m() const;
T& g... | 18 | 49 | 0.744048 | [
"vector"
] |
aa14c0856d41946e84e7b6324b509e9985433370 | 7,218 | hpp | C++ | doc/quickbook/oglplus/quickref/sampler.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | 2 | 2017-06-09T00:28:35.000Z | 2017-06-09T00:28:43.000Z | doc/quickbook/oglplus/quickref/sampler.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | null | null | null | doc/quickbook/oglplus/quickref/sampler.hpp | highfidelity/oglplus | c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e | [
"BSL-1.0"
] | 8 | 2017-01-30T22:06:41.000Z | 2020-01-14T17:24:36.000Z | /*
* Copyright 2014-2015 Matus Chochlik. 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)
*/
//[oglplus_sampler_common
namespace oglplus {
template <>
class __ObjCommonOps<__tag_Sampler>
: public __SamplerNam... | 28.872 | 75 | 0.752147 | [
"object",
"vector"
] |
aa21dae40e8776091ec6b484841e721ac1542a22 | 865 | cpp | C++ | 0094_BinaryTreeInorderTraversal(iterative).cpp | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | null | null | null | 0094_BinaryTreeInorderTraversal(iterative).cpp | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | null | null | null | 0094_BinaryTreeInorderTraversal(iterative).cpp | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | 1 | 2020-03-18T05:23:40.000Z | 2020-03-18T05:23:40.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<int> DFS(TreeNode* root) {
vector<int> out;
if (root == NULL) return o... | 26.212121 | 109 | 0.521387 | [
"vector"
] |
aa223ac960de6e77842411c364a19701af3b31f7 | 11,439 | cpp | C++ | src/gui/gl/treerenderer.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | 5 | 2016-03-17T07:02:11.000Z | 2021-12-12T14:43:58.000Z | src/gui/gl/treerenderer.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | null | null | null | src/gui/gl/treerenderer.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | 3 | 2015-10-29T15:21:01.000Z | 2020-11-25T09:41:21.000Z | /*
* TreeRenderer.cpp
*
* Created on: 17.09.2013
* @author Ralph Schurade
*/
#include "treerenderer.h"
#include "../gl/glfunctions.h"
#include "../../algos/tree.h"
#include "../../data/enums.h"
#include "../../data/models.h"
#include "../../data/vptr.h"
#include "../../data/datasets/datasettree... | 32.776504 | 104 | 0.524958 | [
"geometry"
] |
aa22b69bc1f3700bdaa078969536653c70f1e76f | 828 | cpp | C++ | OIandACM/OJ/LeetCode/first/easy-53-最大子序和.cpp | ASC8384/MyCodeSnippets | aa74afa85672601bd25bf625590f26ac909b2042 | [
"CC0-1.0"
] | 8 | 2019-08-09T14:28:13.000Z | 2021-02-23T03:22:15.000Z | OIandACM/OJ/LeetCode/first/easy-53-最大子序和.cpp | ASC8384/MyCodeSnippets | aa74afa85672601bd25bf625590f26ac909b2042 | [
"CC0-1.0"
] | null | null | null | OIandACM/OJ/LeetCode/first/easy-53-最大子序和.cpp | ASC8384/MyCodeSnippets | aa74afa85672601bd25bf625590f26ac909b2042 | [
"CC0-1.0"
] | 4 | 2019-08-16T12:00:41.000Z | 2019-11-29T12:01:17.000Z | /*
* @lc app=leetcode.cn id=53 lang=cpp
*
* [53] 最大子序和
*
* https://leetcode-cn.com/problems/maximum-subarray/description/
*
* algorithms
* Easy (50.21%)
* Likes: 1845
* Dislikes: 0
* Total Accepted: 207.6K
* Total Submissions: 413.3K
* Testcase Example: '[-2,1,-3,4,-1,2,1,-5,4]'
*
* 给定一个整数数组 nums ... | 17.25 | 65 | 0.560386 | [
"vector"
] |
aa22f3dcb4d0eb16daabc945bbc9333f44b5e25d | 4,672 | hpp | C++ | src/ngraph/runtime/intelgpu/intelgpu_op_batchnorm.hpp | srinivasputta/ngraph | 7506133fff4a8e5c25914a8370a567c4da5b53be | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/intelgpu/intelgpu_op_batchnorm.hpp | srinivasputta/ngraph | 7506133fff4a8e5c25914a8370a567c4da5b53be | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/intelgpu/intelgpu_op_batchnorm.hpp | srinivasputta/ngraph | 7506133fff4a8e5c25914a8370a567c4da5b53be | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 52.494382 | 87 | 0.444349 | [
"shape"
] |
aa289892fcef9410488c8701e16cd9cbc039c988 | 27,066 | cpp | C++ | test/structure/math/polynom_modx_test.cpp | plamenko/altruct | e16fc162043933fbe282fe01a44e0c908df4f612 | [
"MIT"
] | 66 | 2016-10-18T20:37:09.000Z | 2021-11-28T09:56:41.000Z | test/structure/math/polynom_modx_test.cpp | plamenko/altruct | e16fc162043933fbe282fe01a44e0c908df4f612 | [
"MIT"
] | null | null | null | test/structure/math/polynom_modx_test.cpp | plamenko/altruct | e16fc162043933fbe282fe01a44e0c908df4f612 | [
"MIT"
] | 4 | 2018-02-11T17:56:03.000Z | 2019-01-18T15:41:15.000Z | #include "altruct/algorithm/collections/collections.h"
#include "altruct/algorithm/math/fft.h"
#include "altruct/structure/math/polynom.h"
#include "altruct/structure/math/modulo.h"
#include "structure_test_util.h"
#include "gtest/gtest.h"
using namespace std;
using namespace altruct::math;
using namespace... | 37.178571 | 133 | 0.559706 | [
"vector",
"transform"
] |
aa2a0551370a488885c0dbca92b4071486d60855 | 6,455 | cpp | C++ | build/moc_bitcoingui.cpp | JTAG-Romney/BatCoin | 7747f34bc023843b124b5f378cde89bbf8787ff6 | [
"MIT"
] | 6 | 2021-02-20T05:01:15.000Z | 2021-03-09T20:04:12.000Z | build/moc_bitcoingui.cpp | kevinmarks/indiecreddit | 6d8ab6053bc02401eaa793d6bff08eb03ae14938 | [
"MIT"
] | null | null | null | build/moc_bitcoingui.cpp | kevinmarks/indiecreddit | 6d8ab6053bc02401eaa793d6bff08eb03ae14938 | [
"MIT"
] | 6 | 2015-11-30T18:21:22.000Z | 2021-07-13T17:00:26.000Z | /****************************************************************************
** Meta object code from reading C++ file 'bitcoingui.h'
**
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.5)
**
** WARNING! All changes made in this file will be lost!
**********************************************************... | 39.601227 | 171 | 0.602014 | [
"object"
] |
a8f41ef5f440bb17342b0f8ca18bcd7ee3a13013 | 37,837 | cpp | C++ | third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | /*
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
* Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies)
* Copyright (C) 2007 Alp Toker <alp@atoker.com>
* Copyright (C) 2008 Eric Seidel <eric@webkit.org>
* Copyright (C) 2008 Dirk Schulze <krit... | 35.295709 | 163 | 0.713323 | [
"object",
"transform"
] |
a8ff3c73de466e0f84bdc693e747b63e742f0423 | 6,666 | cpp | C++ | src/examples/Applets/App_PolyDepthSorting.cpp | pasenau/VisualizationLibrary | 2fcf1808475aebd4862f40377754be62a7f77a52 | [
"BSD-2-Clause"
] | 1 | 2017-06-29T18:25:11.000Z | 2017-06-29T18:25:11.000Z | src/examples/Applets/App_PolyDepthSorting.cpp | pasenau/VisualizationLibrary | 2fcf1808475aebd4862f40377754be62a7f77a52 | [
"BSD-2-Clause"
] | null | null | null | src/examples/Applets/App_PolyDepthSorting.cpp | pasenau/VisualizationLibrary | 2fcf1808475aebd4862f40377754be62a7f77a52 | [
"BSD-2-Clause"
] | 1 | 2021-01-01T10:43:33.000Z | 2021-01-01T10:43:33.000Z | /**************************************************************************************/
/* */
/* Visualization Library */
/* http://visualizationlibrary.org ... | 51.674419 | 136 | 0.564506 | [
"geometry",
"object",
"transform"
] |
d11531d7cdad73cdf2587a81601807cf4ee959e3 | 400 | cpp | C++ | 10768.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 10768.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 10768.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <memory.h>
#include <math.h>
#include <queue>
using namespace std;
int main() {
int month, day;
cin >> month >> day;
if (month > 2) cout << "After";
else if (month < 2) cout << "Before";
else {
if (day > 18) cout << "After";
... | 18.181818 | 38 | 0.6075 | [
"vector"
] |
d12619fd216c1b8d4522147621512196a40a4cc4 | 910 | cpp | C++ | GY/Cup.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | GY/Cup.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | GY/Cup.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<cctype>
#include<ctime>
#include<iostream>
#include<string>
#include<map>
#include<queue>
#include<set>
#include<vector>
#include<iomanip>
#include<bitset>
#include<algorithm>
#define ll long long
#define double long double
using namespace st... | 16.851852 | 43 | 0.584615 | [
"vector"
] |
d132808752d5f04caecd8eeb7294da4381ceee66 | 774 | cpp | C++ | Angle.cpp | pannous/mark | 335a66070a9e186a17fed8ae8537cefa45827e63 | [
"MIT"
] | 1 | 2019-01-19T13:10:01.000Z | 2019-01-19T13:10:01.000Z | Angle.cpp | pannous/mark | 335a66070a9e186a17fed8ae8537cefa45827e63 | [
"MIT"
] | null | null | null | Angle.cpp | pannous/mark | 335a66070a9e186a17fed8ae8537cefa45827e63 | [
"MIT"
] | null | null | null | //
// Created by me on 18.05.20.
//
#define _main_
#include "mark.cpp"
//
//It has clean syntax with FULLY-TYPE data model (like JSON or even better)
//It is generic and EXTENSIBLE (like XML or even better)
//It has built-in MIXED CONTENT support (like HTML5 or even better)
//It supportsHIGH-ORDER COMPOSITION (like S... | 21.5 | 75 | 0.658915 | [
"model"
] |
d134b1bf0e92cea4590865a11065bef485a77e40 | 5,799 | cpp | C++ | clients/cpp-pistache-server/generated/model/PipelineRunNode.cpp | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/cpp-pistache-server/generated/model/PipelineRunNode.cpp | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/cpp-pistache-server/generated/model/PipelineRunNode.cpp | PankTrue/swaggy-jenkins | aca35a7cca6e1fcc08bd399e05148942ac2f514b | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | /**
* Swaggy Jenkins
* Jenkins API clients generated from Swagger / Open API specification
*
* OpenAPI spec version: 1.1.1
* Contact: blah@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
#i... | 19.859589 | 91 | 0.629074 | [
"object",
"vector",
"model"
] |
d13749fd0be5dfaaba9b7da0201d8df98f4bf507 | 11,572 | hpp | C++ | Viewer/ecflowUI/src/VNode.hpp | ecmwf/ecflow | 2498d0401d3d1133613d600d5c0e0a8a30b7b8eb | [
"Apache-2.0"
] | 11 | 2020-08-07T14:42:45.000Z | 2021-10-21T01:59:59.000Z | Viewer/ecflowUI/src/VNode.hpp | CoollRock/ecflow | db61dddc84d3d2c7dd6af95fd799d717c6bc2a6d | [
"Apache-2.0"
] | 10 | 2020-08-07T14:36:27.000Z | 2022-02-22T06:51:24.000Z | Viewer/ecflowUI/src/VNode.hpp | CoollRock/ecflow | db61dddc84d3d2c7dd6af95fd799d717c6bc2a6d | [
"Apache-2.0"
] | 6 | 2020-08-07T14:34:38.000Z | 2022-01-10T12:06:27.000Z | //============================================================================
// Copyright 2009-2020 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 privil... | 31.445652 | 116 | 0.715175 | [
"vector"
] |
d13b7a71e7395dfc40f15003cf0d97341a769e85 | 7,383 | cpp | C++ | src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp | tomas-pluskal/openms | 136ec9057435f6d45d65a8e1465b2a6cff9621a8 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp | tomas-pluskal/openms | 136ec9057435f6d45d65a8e1465b2a6cff9621a8 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp | tomas-pluskal/openms | 136ec9057435f6d45d65a8e1465b2a6cff9621a8 | [
"Zlib",
"Apache-2.0"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 43.429412 | 190 | 0.646892 | [
"vector",
"transform"
] |
d149de5288530597e01e00b5d72f1efa206c75f4 | 6,728 | cc | C++ | libsrc/pylith/feassemble/ConstraintSimple.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | null | null | null | libsrc/pylith/feassemble/ConstraintSimple.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | null | null | null | libsrc/pylith/feassemble/ConstraintSimple.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | null | null | null | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 39.810651 | 145 | 0.600327 | [
"mesh",
"object"
] |
d14cc431ce13b1ff9e22bb6d086c6c048b912e82 | 1,190 | cpp | C++ | cpp/3sum-closest/main.cpp | miRoox/Leetcode | 4c2be3b3499b9fddd7a4467b8fe440b6170d86e5 | [
"MIT"
] | 1 | 2022-01-20T06:05:03.000Z | 2022-01-20T06:05:03.000Z | cpp/3sum-closest/main.cpp | miRoox/Leetcode | 4c2be3b3499b9fddd7a4467b8fe440b6170d86e5 | [
"MIT"
] | null | null | null | cpp/3sum-closest/main.cpp | miRoox/Leetcode | 4c2be3b3499b9fddd7a4467b8fe440b6170d86e5 | [
"MIT"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
#include <vector>
using std::vector;
#include <algorithm>
#include <limits>
#include <cmath>
class Solution {
public:
int threeSumClosest(vector<int>& nums, int target) {
std::sort(nums.begin(), nums.end());
int result = 0;
in... | 25.319149 | 56 | 0.448739 | [
"vector"
] |
d1506200b2a0ca1d5f28fd8f59bc3e7229abc32e | 11,845 | cc | C++ | authpolicy/platform_helper.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | authpolicy/platform_helper.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | authpolicy/platform_helper.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | // Copyright 2016 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "authpolicy/platform_helper.h"
#include <fcntl.h>
#include <linux/capability.h>
#include <poll.h>
#include <sys/capability.h>
#include <sys/p... | 32.994429 | 80 | 0.652005 | [
"vector"
] |
d151b0f8d4a9162080ac4fb5352c0fc1995d9808 | 1,845 | hpp | C++ | src/maths/geometry/plane.hpp | otgaard/zap | d50e70b5baf5f0fbf7a5a98d80c4d1bcc6166215 | [
"MIT"
] | 8 | 2016-04-24T21:02:59.000Z | 2021-11-14T20:37:17.000Z | src/maths/geometry/plane.hpp | otgaard/zap | d50e70b5baf5f0fbf7a5a98d80c4d1bcc6166215 | [
"MIT"
] | null | null | null | src/maths/geometry/plane.hpp | otgaard/zap | d50e70b5baf5f0fbf7a5a98d80c4d1bcc6166215 | [
"MIT"
] | 1 | 2018-06-09T19:51:38.000Z | 2018-06-09T19:51:38.000Z | //
// Created by Darren Otgaar on 2016/08/07.
//
#ifndef ZAP_PLANE_HPP
#define ZAP_PLANE_HPP
#include <maths/maths.hpp>
#include <maths/geometry/ray.hpp>
namespace zap { namespace maths { namespace geometry {
template <typename T>
struct plane {
using vector = vec3<T>;
using real = T;
plane() = default... | 24.932432 | 83 | 0.580488 | [
"geometry",
"vector"
] |
d156ac3292ef0883fe43dc772275abef12c9a882 | 2,510 | cpp | C++ | examples/assert.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | examples/assert.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | examples/assert.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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 <fcppt/exception.hpp>
#include <fcppt/text.hpp>
#include <fcppt/assert/exception.hpp>
#in... | 14.852071 | 67 | 0.7 | [
"object"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.