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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
55d8872d553ea4681a9589bed989cd63eca8d952 | 6,070 | cxx | C++ | panda/src/pgui/pgWaitBar.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | panda/src/pgui/pgWaitBar.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | panda/src/pgui/pgWaitBar.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: pgWaitBar.cxx
// Created by: drose (14Mar02)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should ... | 33.722222 | 72 | 0.527842 | [
"geometry",
"render",
"object",
"transform",
"3d"
] |
55d989e2541e930afef82ad90262162f0388fd2f | 230 | hpp | C++ | Cppquarium/Observer.hpp | Nicochou/CppQuarium | 0ae54081d35f1c0147084fc1c9fd3735e51a959d | [
"MIT"
] | null | null | null | Cppquarium/Observer.hpp | Nicochou/CppQuarium | 0ae54081d35f1c0147084fc1c9fd3735e51a959d | [
"MIT"
] | null | null | null | Cppquarium/Observer.hpp | Nicochou/CppQuarium | 0ae54081d35f1c0147084fc1c9fd3735e51a959d | [
"MIT"
] | null | null | null | #ifndef OBSERVER_HPP
#define OBSERVER_HPP
#include "Event.hpp"
template <typename Object>
class Observer {
public:
Observer() {};
virtual ~Observer() {};
virtual void refresh(Event<Object>* e) = 0;
};
#endif // OBSERVER_HPP | 15.333333 | 44 | 0.708696 | [
"object"
] |
55defe38ca363c3b5b88e0bdd9ef6332b7d4d871 | 7,197 | cpp | C++ | TCPReassembler.cpp | xstupi00/DNS-Export | c3ece89984b66aa7e4efe7a9aa854accbc3afc98 | [
"MIT"
] | null | null | null | TCPReassembler.cpp | xstupi00/DNS-Export | c3ece89984b66aa7e4efe7a9aa854accbc3afc98 | [
"MIT"
] | null | null | null | TCPReassembler.cpp | xstupi00/DNS-Export | c3ece89984b66aa7e4efe7a9aa854accbc3afc98 | [
"MIT"
] | null | null | null | /**************************************************************
* Project: DNS Export
* File: TCPReassembler.cpp
* Author: Šimon Stupinský
* University: Brno University of Technology
* Faculty: Faculty of Information Technology
* Course: Network Applications and Network Administration
* Date: 28.09.... | 46.432258 | 120 | 0.551202 | [
"vector"
] |
55e267103e38c48d867baeec77955805fa269ad5 | 18,088 | cpp | C++ | src/CQChartsImagePlot.cpp | Qt-Widgets/CQCharts | 0ee923c5a2794b9e3845d0d88fa519fcdea7694a | [
"MIT"
] | null | null | null | src/CQChartsImagePlot.cpp | Qt-Widgets/CQCharts | 0ee923c5a2794b9e3845d0d88fa519fcdea7694a | [
"MIT"
] | null | null | null | src/CQChartsImagePlot.cpp | Qt-Widgets/CQCharts | 0ee923c5a2794b9e3845d0d88fa519fcdea7694a | [
"MIT"
] | null | null | null | #include <CQChartsImagePlot.h>
#include <CQChartsView.h>
#include <CQChartsAxis.h>
#include <CQChartsUtil.h>
#include <CQCharts.h>
#include <CQChartsDrawUtil.h>
#include <CQChartsTip.h>
#include <CQChartsPaintDevice.h>
#include <CQChartsHtml.h>
#include <CQPropertyViewItem.h>
#include <CQPerfMonitor.h>
#include <QMen... | 22.441687 | 99 | 0.6501 | [
"model"
] |
55e83c270d6019036d86dd14b8d22b1873b93f14 | 1,299 | cpp | C++ | src/processor.cpp | blacksaturn1/CppND-System-Monitor-Project-Updated | 4048fde198dd4807c30489e394c4993ddf3c3fbf | [
"MIT"
] | null | null | null | src/processor.cpp | blacksaturn1/CppND-System-Monitor-Project-Updated | 4048fde198dd4807c30489e394c4993ddf3c3fbf | [
"MIT"
] | null | null | null | src/processor.cpp | blacksaturn1/CppND-System-Monitor-Project-Updated | 4048fde198dd4807c30489e394c4993ddf3c3fbf | [
"MIT"
] | null | null | null | #include "processor.h"
#include "linux_parser.h"
#include <vector>
#include <string>
#include <iostream>
#include <unistd.h>
using std::cerr;
// TODONE: Return the aggregate CPU utilization
float Processor::Utilization() {
std::vector<std::string> cpuStats2=LinuxParser::CpuUtilization();
do... | 34.184211 | 123 | 0.635104 | [
"vector"
] |
55ea87a2fc01145322e57bfc66ec6ed371d115b3 | 1,310 | cpp | C++ | src/bit_stream_tests.cpp | thousandvoices/memb | edbee1773a762d7fbe5eaebd15b95803b23254a6 | [
"MIT"
] | 5 | 2019-02-05T09:46:33.000Z | 2019-02-11T12:29:41.000Z | src/bit_stream_tests.cpp | thousandvoices/memb | edbee1773a762d7fbe5eaebd15b95803b23254a6 | [
"MIT"
] | null | null | null | src/bit_stream_tests.cpp | thousandvoices/memb | edbee1773a762d7fbe5eaebd15b95803b23254a6 | [
"MIT"
] | 1 | 2019-02-05T16:50:08.000Z | 2019-02-05T16:50:08.000Z | #include <boost/test/unit_test.hpp>
#include "bit_stream.h"
using namespace memb;
std::string prettyBitString(uint16_t value, size_t maxBits)
{
std::string result;
for (size_t i = 0; i < maxBits; ++i) {
result.push_back('0' + value % 2);
value /= 2;
}
std::reverse(result.begin(), resu... | 21.129032 | 61 | 0.615267 | [
"vector"
] |
55f2d75a6553f098e166b06a6f42be53794c942b | 1,346 | cc | C++ | 2D/Image.cc | pfederl/FEM2D-cracks | f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf | [
"MIT"
] | null | null | null | 2D/Image.cc | pfederl/FEM2D-cracks | f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf | [
"MIT"
] | null | null | null | 2D/Image.cc | pfederl/FEM2D-cracks | f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf | [
"MIT"
] | 1 | 2020-04-14T07:34:33.000Z | 2020-04-14T07:34:33.000Z | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <malloc.h>
#include "Image.hh"
#include "readrgb.hh"
Image::Image()
{
data = NULL;
width = 0;
height = 0;
}
int Image::load( const char * fname)
{
fprintf( stderr, "Image::load( %s)\n", fname);
int tmp_width, tmp_height, tmp_components;
unsign... | 21.365079 | 70 | 0.617385 | [
"transform"
] |
55f65cb8967650f7dd552d51ec25816514de359e | 46,887 | cpp | C++ | src/chain/script.cpp | ccccbjcn/nuls-v2-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | 1 | 2020-04-26T07:32:52.000Z | 2020-04-26T07:32:52.000Z | src/chain/script.cpp | CCC-NULS/nuls-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | null | null | null | src/chain/script.cpp | CCC-NULS/nuls-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2020 libnuls developers (see AUTHORS)
*
* This file is part of libnuls.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 31.154153 | 83 | 0.62721 | [
"vector",
"transform"
] |
55fb0f183101f22e3fa4758c1bf19a35e3156477 | 5,507 | cc | C++ | tests/test-engine.cc | CS126SP20/final-project-jananir2 | 74e0799403fbd904ed99979b18407e654a0725e4 | [
"MIT"
] | null | null | null | tests/test-engine.cc | CS126SP20/final-project-jananir2 | 74e0799403fbd904ed99979b18407e654a0725e4 | [
"MIT"
] | null | null | null | tests/test-engine.cc | CS126SP20/final-project-jananir2 | 74e0799403fbd904ed99979b18407e654a0725e4 | [
"MIT"
] | null | null | null |
#include <catch2/catch.hpp>
#include <mylibrary/setup.h>
#include <mylibrary/engine.h>
using namespace std;
TEST_CASE("Test handles quiz choice correctly",
"[retrieve question][retrieve answer]") {
mylibrary::Engine engine_{"quizzes/quiz1.csv", "quizzes/quiz2.csv",
"quizzes/... | 30.938202 | 80 | 0.65099 | [
"vector"
] |
3604520cb795478aaf16f90188485114f2763f92 | 3,039 | cpp | C++ | examples/DSPDemo/Source/Demos/OverdriveDemo.cpp | jpcima/DISTRHO-JUCE | 08c983c6dc718b7bbdba8c0625d7a4ee2a837f4c | [
"ISC"
] | 1 | 2020-10-23T05:31:32.000Z | 2020-10-23T05:31:32.000Z | examples/DSPDemo/Source/Demos/OverdriveDemo.cpp | pierreguillot/JUCE-LV2 | b12aa69c81f496d07066a603b5320601aa93fcc0 | [
"ISC"
] | null | null | null | examples/DSPDemo/Source/Demos/OverdriveDemo.cpp | pierreguillot/JUCE-LV2 | b12aa69c81f496d07066a603b5320601aa93fcc0 | [
"ISC"
] | null | null | null | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End... | 33.032609 | 102 | 0.556762 | [
"vector"
] |
360deb308c04f4d7747e385537ae729ef0869886 | 6,456 | hpp | C++ | src/HashTables/LinearProbing.hpp | ragoragino/partitionedhashjoin | 6f3830794364ba15f3445b4518b90ac12959666b | [
"MIT"
] | null | null | null | src/HashTables/LinearProbing.hpp | ragoragino/partitionedhashjoin | 6f3830794364ba15f3445b4518b90ac12959666b | [
"MIT"
] | null | null | null | src/HashTables/LinearProbing.hpp | ragoragino/partitionedhashjoin | 6f3830794364ba15f3445b4518b90ac12959666b | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <atomic>
#include <cmath>
#include <cstdint>
#include <map>
#include <thread>
#include <vector>
#include "Common/IHasher.hpp"
#include "Common/Table.hpp"
#include "Common/XXHasher.hpp"
namespace HashTables {
struct LinearProbingConfiguration {
double HASH_TABLE_SIZE_RAT... | 28.069565 | 99 | 0.60347 | [
"vector"
] |
3610c36411ed15cfcaf874e14adad8716cf1fdf0 | 75,462 | cpp | C++ | dwarf/SB/Game/zEntDestructObj.cpp | stravant/bfbbdecomp | 2126be355a6bb8171b850f829c1f2731c8b5de08 | [
"OLDAP-2.7"
] | 1 | 2021-01-05T11:28:55.000Z | 2021-01-05T11:28:55.000Z | dwarf/SB/Game/zEntDestructObj.cpp | sonich2401/bfbbdecomp | 5f58b62505f8929a72ccf2aa118a1539eb3a5bd6 | [
"OLDAP-2.7"
] | null | null | null | dwarf/SB/Game/zEntDestructObj.cpp | sonich2401/bfbbdecomp | 5f58b62505f8929a72ccf2aa118a1539eb3a5bd6 | [
"OLDAP-2.7"
] | 1 | 2022-03-30T15:15:08.000Z | 2022-03-30T15:15:08.000Z | typedef struct RpPolygon;
typedef struct RxPipelineNode;
typedef struct xEntMotionMPData;
typedef struct xAnimPlay;
typedef struct zFrag;
typedef struct zParEmitter;
typedef struct xEntERData;
typedef struct xAnimEffect;
typedef struct xParSys;
typedef struct anim_coll_data;
typedef struct RwV3d;
typedef struct RwObjec... | 20.725625 | 96 | 0.764398 | [
"mesh",
"geometry",
"render",
"object",
"model"
] |
36141d571870d3443806038a8b4f5dc1481e2bdd | 3,230 | hh | C++ | src/bindee.hh | LLNL/bindee | 3df620803ef5b198a32732341e52971342493863 | [
"MIT"
] | 5 | 2020-02-19T08:10:46.000Z | 2021-02-03T01:28:34.000Z | src/bindee.hh | LLNL/bindee | 3df620803ef5b198a32732341e52971342493863 | [
"MIT"
] | null | null | null | src/bindee.hh | LLNL/bindee | 3df620803ef5b198a32732341e52971342493863 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020, Lawrence Livermore National Security, LLC and other
* bindee developers. See the top-level LICENSE file for details.
*
* SPDX-License-Identifier: MIT
*/
#ifndef BINDEE_HH
#define BINDEE_HH
#include <string>
#include <vector>
#include <unordered_map>
#include "param.hh"
namespace Bindee {... | 27.142857 | 74 | 0.64644 | [
"vector"
] |
361ea142add26f7ca8056c5f2c56a6c53d11df76 | 3,285 | cpp | C++ | ext/zindosteg/jpeg.cpp | zindorsky/zindosteg-ruby | 95ea88b9b7b9d5b872a390f729ad4c6a07e77123 | [
"MIT"
] | 1 | 2022-01-25T17:58:47.000Z | 2022-01-25T17:58:47.000Z | ext/zindosteg/jpeg.cpp | zindorsky/zindosteg-ruby | 95ea88b9b7b9d5b872a390f729ad4c6a07e77123 | [
"MIT"
] | null | null | null | ext/zindosteg/jpeg.cpp | zindorsky/zindosteg-ruby | 95ea88b9b7b9d5b872a390f729ad4c6a07e77123 | [
"MIT"
] | null | null | null | #include "jpeg.h"
#include "steg_endian.h"
#include "file_utils.h"
#include <stdexcept>
namespace zindorsky {
namespace steganography {
jpeg_provider::jpeg_provider( filesystem::path const& filename )
: jpeg_provider( utils::load_from_file(filename) )
{
}
jpeg_provider::jpeg_provider(byte_vector const& data)
: jpe... | 29.330357 | 156 | 0.716895 | [
"object"
] |
361f605049fc709c90edf2707da4986b2841b253 | 6,334 | cpp | C++ | subcomp/neuralnetwork/test/BackpropagationTest.cpp | lekic-ai/neneta | 45febf7f0edfb03575e30b0f16aa8004470bc3fa | [
"MIT"
] | 1 | 2020-12-22T10:07:18.000Z | 2020-12-22T10:07:18.000Z | subcomp/neuralnetwork/test/BackpropagationTest.cpp | lekic-ai/neneta | 45febf7f0edfb03575e30b0f16aa8004470bc3fa | [
"MIT"
] | null | null | null | subcomp/neuralnetwork/test/BackpropagationTest.cpp | lekic-ai/neneta | 45febf7f0edfb03575e30b0f16aa8004470bc3fa | [
"MIT"
] | 1 | 2020-12-22T10:07:23.000Z | 2020-12-22T10:07:23.000Z | #include <gtest/gtest.h>
#include <Utils.h>
#include <OpenCLContext.h>
#include <OpenCLProgram.h>
#include <OpenCLExecutionPlan.h>
using namespace neneta;
using namespace neneta::net;
extern conf::ConfigurationReader envReader;
TEST(BackPropagationTest, basic_bp_test)
{
gpu::OpenCLContext oclCon... | 49.874016 | 203 | 0.630565 | [
"vector"
] |
362c0a5fb03835ca5df81fbb91e50121316a5489 | 7,988 | cpp | C++ | src/prod/src/data/txnreplicator/statemanager/StateManager.RemovePerfTest.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/data/txnreplicator/statemanager/StateManager.RemovePerfTest.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/data/txnreplicator/statemanager/StateManager.RemovePerfTest.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.309091 | 123 | 0.65323 | [
"object"
] |
362d0f4199e6af283d8052d31e787bc255f7a12e | 10,608 | cpp | C++ | src/client/clientMain.cpp | jingwei87/sgxdedup | e1e9bc2a3755fa79b6477d9a4c23928dc1d80af4 | [
"MIT"
] | 7 | 2021-05-14T06:08:30.000Z | 2022-03-03T06:39:36.000Z | src/client/clientMain.cpp | tinoryj/SGXDedup | 43609c012b281f0a0fe8daf1ee6e11e96f165a68 | [
"MIT"
] | 1 | 2021-11-23T08:58:30.000Z | 2021-11-23T08:58:30.000Z | src/client/clientMain.cpp | jingwei87/sgxdedup | e1e9bc2a3755fa79b6477d9a4c23928dc1d80af4 | [
"MIT"
] | 1 | 2021-11-05T13:43:21.000Z | 2021-11-05T13:43:21.000Z | #include "../enclave/include/powClient.hpp"
#include "chunker.hpp"
#include "configure.hpp"
#include "encoder.hpp"
#include "fingerprinter.hpp"
#include "keyClient.hpp"
#include "recvDecode.hpp"
#include "retriever.hpp"
#include "sender.hpp"
#include "sys/time.h"
#include <bits/stdc++.h>
#include <boost/thread/thread.h... | 34.780328 | 141 | 0.604638 | [
"vector"
] |
15734e050de70cf579c62455ebfc643170eb3df8 | 2,958 | cpp | C++ | src/Src/utilidades.cpp | chestacio/PPP-greedy-tabusearch | e120f4c696cd7a58c0e6ab1200bf0dc74c306ead | [
"MIT"
] | null | null | null | src/Src/utilidades.cpp | chestacio/PPP-greedy-tabusearch | e120f4c696cd7a58c0e6ab1200bf0dc74c306ead | [
"MIT"
] | null | null | null | src/Src/utilidades.cpp | chestacio/PPP-greedy-tabusearch | e120f4c696cd7a58c0e6ab1200bf0dc74c306ead | [
"MIT"
] | 1 | 2020-02-04T19:10:48.000Z | 2020-02-04T19:10:48.000Z | #include <iostream>
#include <fstream>
#include <stdlib.h>
#include <vector>
#include <string>
#include <string.h>
#include <map>
#include <sstream>
#include <time.h>
#include <iomanip>
#include <unistd.h>
using namespace std;
typedef map <pair<string, string>, int> Dict;
typedef vector< vector<int> > matrix;
struct... | 20.541667 | 84 | 0.596687 | [
"vector"
] |
1576ab987b33122d8a05c6f428b93db6e0879d3c | 20,184 | cc | C++ | crypto/implementation/dragonfly_v1.cc | technoglub/ssc | 9c3cf70cf4c5c2d8187fbd30f0dc950854bd4995 | [
"BSD-2-Clause"
] | 1 | 2021-05-27T10:31:02.000Z | 2021-05-27T10:31:02.000Z | crypto/implementation/dragonfly_v1.cc | technoglub/ssc | 9c3cf70cf4c5c2d8187fbd30f0dc950854bd4995 | [
"BSD-2-Clause"
] | null | null | null | crypto/implementation/dragonfly_v1.cc | technoglub/ssc | 9c3cf70cf4c5c2d8187fbd30f0dc950854bd4995 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (c) 2019-2020 Stuart Steven Calder
* All rights reserved.
* See accompanying LICENSE file for licensing information.
*/
#include "dragonfly_v1.hh"
using namespace std;
// Just in case we need to do this.
#define __STDC_FORMAT_MACROS
#include <cinttypes>
#if defined (LOCK_MEMORY_) || defined (UNLOCK... | 43.406452 | 144 | 0.664685 | [
"object",
"vector"
] |
1576b2bec9c0a1f47a8b46219510fddbfa78aa57 | 16,495 | hpp | C++ | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_ATM_QOS_MIB.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_ATM_QOS_MIB.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_ATM_QOS_MIB.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z | #ifndef _CISCO_ATM_QOS_MIB_
#define _CISCO_ATM_QOS_MIB_
#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>
namespace cisco_ios_xe {
namespace CISCO_ATM_QOS_MIB {
class CISCOATMQOSMIB : public ydk::Entity
{
public:
CISCOATMQOSMIB();
~CISCOATMQ... | 49.683735 | 162 | 0.701607 | [
"vector"
] |
1577a45e95eb335877c8d332435945efd3d8be78 | 4,710 | cpp | C++ | src/scenes/editor/gui/button.cpp | olekolek1000/MPS | 30461844febb50fadf744cfbaeef88fbfdd5538f | [
"MIT"
] | 9 | 2018-05-15T06:03:51.000Z | 2022-01-30T01:23:24.000Z | src/scenes/editor/gui/button.cpp | olekolek1000/MPS | 30461844febb50fadf744cfbaeef88fbfdd5538f | [
"MIT"
] | 5 | 2018-06-28T16:48:04.000Z | 2021-06-05T21:24:32.000Z | src/scenes/editor/gui/button.cpp | olekolek1000/MPS | 30461844febb50fadf744cfbaeef88fbfdd5538f | [
"MIT"
] | 9 | 2018-05-03T19:40:54.000Z | 2021-06-05T17:54:32.000Z | #include "button.hpp"
#include "lib/opengl.hpp"
#include "transform.hpp"
#include "../editor.hpp"
#include "text.hpp"
#include "lib/glm.hpp"
#include "render/func.hpp"
#include "timestep.hpp"
int GuiButton::getWidth(){
return width;
}
int GuiButton::getHeight(){
return height;
}
int GuiButton::getPosX(){
... | 26.460674 | 234 | 0.583439 | [
"render",
"model",
"transform"
] |
157c987e07e83ddb6f0ecdcb98e4ed37a0bb5f79 | 1,611 | cpp | C++ | 207-Course-Schedule/Course-Schedule.cpp | xta0/LeetCode-Solutions | ab0de97b35fb54c24bcef0398a9d75bdac9ee8b2 | [
"MIT"
] | 4 | 2018-08-07T11:45:32.000Z | 2019-05-19T08:52:19.000Z | 207-Course-Schedule/Course-Schedule.cpp | xta0/LeetCode-Solutions | ab0de97b35fb54c24bcef0398a9d75bdac9ee8b2 | [
"MIT"
] | null | null | null | 207-Course-Schedule/Course-Schedule.cpp | xta0/LeetCode-Solutions | ab0de97b35fb54c24bcef0398a9d75bdac9ee8b2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <unordered_set>
#include <unordered_map>
using namespace std;
/*
Solution: TopoSort + BFS
Time: O(N)
Space: O(N)
*/
class Solution {
public:
bool canFinish(int numCourses, vector<pair<i... | 20.1375 | 75 | 0.443824 | [
"vector"
] |
157d0fe9ed7fb43ad21aa18bfb5d85956e005b08 | 486 | cpp | C++ | Algorithms/Implementation/Easy/The-Hurdle-Race.cpp | Justin-Teng/HackerRank | bb501715d4fb0322ccffa70b75c4d6df1463a334 | [
"MIT"
] | null | null | null | Algorithms/Implementation/Easy/The-Hurdle-Race.cpp | Justin-Teng/HackerRank | bb501715d4fb0322ccffa70b75c4d6df1463a334 | [
"MIT"
] | null | null | null | Algorithms/Implementation/Easy/The-Hurdle-Race.cpp | Justin-Teng/HackerRank | bb501715d4fb0322ccffa70b75c4d6df1463a334 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int hurdleRace(int k, vector <int> height) {
int maxH = 1;
for (int i = 0; i < height.size(); i++) {
maxH = max(maxH, height[i]);
}
return max(maxH-k, 0);
}
int main() {
int n;
int k;
cin >> n >> k;
vector<int> height(n);
for(i... | 19.44 | 52 | 0.530864 | [
"vector"
] |
157d4c9c8d1816dd8675e6c5a368aa0bd87bb5bf | 17,875 | hpp | C++ | staticdb/execution.hpp | TyRoXx/staticdb | de855406252198729deb3f9b5a677ab965398df4 | [
"MIT"
] | null | null | null | staticdb/execution.hpp | TyRoXx/staticdb | de855406252198729deb3f9b5a677ab965398df4 | [
"MIT"
] | null | null | null | staticdb/execution.hpp | TyRoXx/staticdb | de855406252198729deb3f9b5a677ab965398df4 | [
"MIT"
] | null | null | null | #ifndef STATICDB_EXECUTION_HPP
#define STATICDB_EXECUTION_HPP
#include <staticdb/expressions.hpp>
#include <staticdb/layout.hpp>
#include <staticdb/storage.hpp>
#include <staticdb/bit_source.hpp>
#include <staticdb/multiply.hpp>
namespace staticdb
{
namespace execution
{
template <class Storage>
struct storage_... | 32.918969 | 114 | 0.613203 | [
"vector"
] |
1583ab6625bfceca11f583880bf7a3f084ae15e6 | 1,025 | cc | C++ | src/printer.cc | were/json-parser | 41364252e300843835822763002ef2d40addbd84 | [
"MIT"
] | null | null | null | src/printer.cc | were/json-parser | 41364252e300843835822763002ef2d40addbd84 | [
"MIT"
] | null | null | null | src/printer.cc | were/json-parser | 41364252e300843835822763002ef2d40addbd84 | [
"MIT"
] | null | null | null | #include "json/visitor.h"
namespace json {
void JSONPrinter::PrintIndent() { os << std::string(indent, ' '); }
void JSONPrinter::Visit(Object* node) {
os << "{\n";
indent += 2;
bool first = true;
for (auto& elem : *node->As<plain::Object>()) {
if (!first) os << ",\n";
PrintIndent();
os << '"' << ... | 22.777778 | 89 | 0.527805 | [
"object"
] |
1586e46dfa8e21485eb7cc325ff84cebde3fb7c0 | 488 | cpp | C++ | Code/shapes/plane.cpp | TheVeggydude/raytracer | 5d927a3f7ab680dfe54810f8c0e00ad7e055cee0 | [
"MIT"
] | null | null | null | Code/shapes/plane.cpp | TheVeggydude/raytracer | 5d927a3f7ab680dfe54810f8c0e00ad7e055cee0 | [
"MIT"
] | null | null | null | Code/shapes/plane.cpp | TheVeggydude/raytracer | 5d927a3f7ab680dfe54810f8c0e00ad7e055cee0 | [
"MIT"
] | null | null | null | #include "plane.h"
#include <iostream>
#include <math.h>
/************************** Plane **********************************/
void Plane::computeTexCoords(Point center, double* u, double* v)
{
*u = 0.0;
*v = 0.0;
}
Hit Plane::intersect(const Ray &ray)
{
float d = normal.dot(ray.D);
Vector p = origin - r... | 16.827586 | 69 | 0.491803 | [
"vector"
] |
1588144b7526b792eec3adf80f6a01e9a5130c93 | 457 | cpp | C++ | src/common/string.cpp | metthal/ccool | 5b26208fbd61c0f115e37fbbce57716ceaed398b | [
"MIT"
] | null | null | null | src/common/string.cpp | metthal/ccool | 5b26208fbd61c0f115e37fbbce57716ceaed398b | [
"MIT"
] | null | null | null | src/common/string.cpp | metthal/ccool | 5b26208fbd61c0f115e37fbbce57716ceaed398b | [
"MIT"
] | null | null | null | #include "string.hpp"
namespace ccool {
std::vector<std::string_view> split(std::string_view str, char delim)
{
std::vector<std::string_view> result;
std::string::size_type pos = 0, last_pos = 0;
while ((pos = str.find(delim, last_pos)) != std::string::npos)
{
result.emplace_back(str.begin() + last_pos, str.be... | 21.761905 | 69 | 0.673961 | [
"vector"
] |
158948bd0469a6325538ec9647f3c137189debff | 15,659 | cpp | C++ | multimedia/directx/dmusic/dmusic/dmksclk.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | multimedia/directx/dmusic/dmusic/dmksclk.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | multimedia/directx/dmusic/dmusic/dmksclk.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //
// DMKSClk.CPP
//
// Copyright (c) 1997-1999 Microsoft Corporation
//
// Wrapper for using a KS clock as the DirectMusic master clock
//
//
//
#include <objbase.h>
#include <winerror.h>
#include "dmusicp.h"
#include "debug.h"
#include "resource.h"
// Since we only allocate one of these clocks in the... | 26.859348 | 130 | 0.555272 | [
"object"
] |
159167314e7ec36f0b59a5b5194dbf98d362f1d8 | 5,546 | cpp | C++ | test/conv_bias.cpp | luxteam/MIOpen | f7b73815c1f9c3ccb95ed759590277de0be74cef | [
"MIT"
] | 2 | 2020-01-13T10:34:34.000Z | 2020-04-21T13:35:47.000Z | test/conv_bias.cpp | luxteam/MIOpen | f7b73815c1f9c3ccb95ed759590277de0be74cef | [
"MIT"
] | 5 | 2019-07-22T09:45:51.000Z | 2019-10-21T08:35:47.000Z | test/conv_bias.cpp | luxteam/MIOpen | f7b73815c1f9c3ccb95ed759590277de0be74cef | [
"MIT"
] | 2 | 2021-04-12T08:27:15.000Z | 2021-05-11T12:01:20.000Z | /*******************************************************************************
*
* MIT License
*
* Copyright (c) 2018 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | 30.98324 | 99 | 0.614858 | [
"vector"
] |
15924231ba451f845d8aa55336c9fcdd78f7d673 | 1,086 | cpp | C++ | array/Factorial_of_large_number/CPP/CPP_Factorial_of_large_number.cpp | leonardrizta/Problem-Solving | 66df1df75f582a93ab783de621c1f2bb7e0d2841 | [
"Apache-2.0"
] | 1 | 2021-10-01T05:04:15.000Z | 2021-10-01T05:04:15.000Z | array/Factorial_of_large_number/CPP/CPP_Factorial_of_large_number.cpp | leonardrizta/Problem-Solving | 66df1df75f582a93ab783de621c1f2bb7e0d2841 | [
"Apache-2.0"
] | null | null | null | array/Factorial_of_large_number/CPP/CPP_Factorial_of_large_number.cpp | leonardrizta/Problem-Solving | 66df1df75f582a93ab783de621c1f2bb7e0d2841 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define ln "\n"
#define ll long long int
#define vll vector<ll>
using namespace std;
void solve()
{
ll n;
cin >> n; // for which number you want the factorial
vll v; //declaring a vector to store a number in reverse order
v.push_back(1);
for (ll i = 2; i <= n... | 20.490566 | 81 | 0.449355 | [
"vector"
] |
1592f57f375e923e38760ec0007c3a7af6febc03 | 19,974 | cpp | C++ | Game/SystemApi.cpp | RMDarth/Chewman-Vulkan | 7ebd3fb378b78c67844055c5bf1dc51c54a48324 | [
"MIT"
] | 65 | 2019-10-22T01:06:07.000Z | 2022-03-26T14:41:28.000Z | Game/SystemApi.cpp | heitaoflower/Chewman-Vulkan | dfd4d8b4e58b8a01e5f41f256795ec6e0d2b633e | [
"MIT"
] | 9 | 2019-09-24T15:51:14.000Z | 2021-08-19T09:52:03.000Z | Game/SystemApi.cpp | heitaoflower/Chewman-Vulkan | dfd4d8b4e58b8a01e5f41f256795ec6e0d2b633e | [
"MIT"
] | 6 | 2020-01-31T08:51:14.000Z | 2021-01-08T05:49:47.000Z | // Chewman Vulkan game
// Copyright (c) 2018-2019, Igor Barinov
// Licensed under the MIT License
#include "SystemApi.h"
#include <SDL2/SDL.h>
#include <iostream>
#ifdef __ANDROID__
#include <jni.h>
#endif
namespace Chewman
{
namespace System
{
#ifdef __ANDROID__
void callVoidMethod(const char* const name)
{
JNI... | 25.477041 | 125 | 0.688395 | [
"object",
"vector"
] |
15954be6a48f7e400982826c9c2cae3fb0469b0d | 1,543 | cpp | C++ | answers/hackerrank/Sherlock and Valid String.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | 3 | 2015-09-04T21:32:31.000Z | 2020-12-06T00:37:32.000Z | answers/hackerrank/Sherlock and Valid String.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | answers/hackerrank/Sherlock and Valid String.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | //@result Submitted a few seconds ago • Score: 100.00 Status: Accepted Test Case #0: 0s Test Case #1: 0s Test Case #2: 0s Test Case #3: 0s Test Case #4: 0s Test Case #5: 0s Test Case #6: 0s Test Case #7: 0s Test Case #8: 0s Test Case #9: 0s Test Case #10: 0s Test Case #11: 0s Test Case #12: 0s Test Case #13: 0s Test Ca... | 39.564103 | 348 | 0.558652 | [
"vector"
] |
15976cd6f801f9904d015004281fd88aa8a74efd | 4,108 | hpp | C++ | src/evaluation/asymptotic.hpp | Thanduriel/StableNN | 2457fbadee8491eaa3d52ff76d66dc45c27cb84a | [
"MIT"
] | null | null | null | src/evaluation/asymptotic.hpp | Thanduriel/StableNN | 2457fbadee8491eaa3d52ff76d66dc45c27cb84a | [
"MIT"
] | null | null | null | src/evaluation/asymptotic.hpp | Thanduriel/StableNN | 2457fbadee8491eaa3d52ff76d66dc45c27cb84a | [
"MIT"
] | null | null | null | #pragma once
namespace eval {
// energy level indicating that the simulation grows unbounded
constexpr double INF_ENERGY = 4.0;
constexpr double THRESHOLD = 0.02;
// @return energy of attractors and intervals bounding the position
// of possible initial states for bifurcation points
template<typename ... | 27.205298 | 127 | 0.604187 | [
"vector"
] |
159894176197bea44693564b677d0f77bde0ed6b | 7,790 | cpp | C++ | final/image_saver/src/image_saver_node.cpp | songdaegeun/school-zone-enforcement-system | b5680909fd5a348575563534428d2117f8dc2e3f | [
"MIT"
] | null | null | null | final/image_saver/src/image_saver_node.cpp | songdaegeun/school-zone-enforcement-system | b5680909fd5a348575563534428d2117f8dc2e3f | [
"MIT"
] | null | null | null | final/image_saver/src/image_saver_node.cpp | songdaegeun/school-zone-enforcement-system | b5680909fd5a348575563534428d2117f8dc2e3f | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include "std_msgs/Byte.h"
#include <image_transport/image_transport.h> //package.xml에 추가. 이미지데이터를 받고 보내기위해 사용.
#include <cv_bridge/cv_bridge.h> //package.xml에 추가
#include <sensor_msgs/image_encodings.h> //package.xml에 추가. cv_bridge::CvImagePtr에 값을 대입하기 위한 인자로 사용된다.
#include <openc... | 33.148936 | 162 | 0.666239 | [
"vector"
] |
15a0b54367fcc80c2bc81e731d3e4ac847cde8dd | 428,576 | cxx | C++ | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_54.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:11.000Z | 2020-02-08T04:09:11.000Z | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_54.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 40 | 2018-08-26T08:34:34.000Z | 2021-09-28T13:01:55.000Z | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_54.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:10:14.000Z | 2020-02-08T04:10:14.000Z | // This file is part of the dune-xt-data project:
// https://github.com/dune-community/dune-xt-data
// Copyright 2009-2018 dune-xt-data developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensou... | 115.612625 | 119 | 0.56929 | [
"vector"
] |
15a2fd721b5b2fcd4711ee1fa7211167e3e706ba | 1,024 | cpp | C++ | src/source/zombye/rendering/screen_quad.cpp | kasoki/project-zombye | 30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05 | [
"MIT"
] | 1 | 2019-05-29T01:37:44.000Z | 2019-05-29T01:37:44.000Z | src/source/zombye/rendering/screen_quad.cpp | atomicptr/project-zombye | 30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05 | [
"MIT"
] | 1 | 2015-08-31T22:44:27.000Z | 2015-08-31T22:44:27.000Z | src/source/zombye/rendering/screen_quad.cpp | kasoki/project-zombye | 30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05 | [
"MIT"
] | null | null | null | #include <glm/glm.hpp>
#include <zombye/rendering/rendering_system.hpp>
#include <zombye/rendering/screen_quad.hpp>
#include <zombye/rendering/mesh.hpp>
namespace zombye {
screen_quad::screen_quad(vertex_layout& layout, const glm::vec2& top_left, const glm::vec2& bottom_right)
: vbo_{6 * sizeof(vertex), GL_STATIC_D... | 36.571429 | 106 | 0.654297 | [
"mesh"
] |
15ad7175817ce73508be9254703bba607ae4f797 | 1,015 | cpp | C++ | src/fireengine.native.player/src/core/object.cpp | iamkevinf/FireEngine | abf440f7a1e5596165b08fcc691ce894dfe2faef | [
"MIT"
] | 1 | 2021-12-15T07:14:53.000Z | 2021-12-15T07:14:53.000Z | src/fireengine.native.player/src/core/object.cpp | iamkevinf/FireEngine | abf440f7a1e5596165b08fcc691ce894dfe2faef | [
"MIT"
] | null | null | null | src/fireengine.native.player/src/core/object.cpp | iamkevinf/FireEngine | abf440f7a1e5596165b08fcc691ce894dfe2faef | [
"MIT"
] | null | null | null | #include "object.h"
#include "transform.h"
#include <memory>
#include <iostream>
namespace FireEngine
{
std::map<uint16_t, ObjectWeakPtr> ObjectManager::objPool;
uint16_t ObjectManager::s_cur = 1;
ObjectHandle ObjectManager::Register(ObjectPtr obj, ObjectType type)
{
uint16_t id = ObjectManager:... | 23.604651 | 73 | 0.710345 | [
"object",
"transform"
] |
15b3f052f06fef825e4e985ae6c52f7dfc1bac9e | 697 | cpp | C++ | src/SkyEffect.cpp | nmaks293/sbisolet | b9acabe48e3d5cf72e19cc0565f8164331a888c7 | [
"MIT"
] | 3 | 2019-04-20T11:25:37.000Z | 2019-10-22T07:15:19.000Z | src/SkyEffect.cpp | nmaks293/sbisolet | b9acabe48e3d5cf72e19cc0565f8164331a888c7 | [
"MIT"
] | null | null | null | src/SkyEffect.cpp | nmaks293/sbisolet | b9acabe48e3d5cf72e19cc0565f8164331a888c7 | [
"MIT"
] | 2 | 2019-04-19T09:16:32.000Z | 2019-04-21T16:33:09.000Z | #include "precomp.h"
#include "SkyEffect.h"
#include "Scene.h"
#include "Camera.h"
SkyEffect::SkyEffect() {
effectDuration = 0;
activeTime=0;
FloatRect rect = Camera::instance->getRect();
effect.setSize(Vector2f(rect.width,rect.height));
}
void SkyEffect::startEffect(Color color,float duration) {
... | 22.483871 | 57 | 0.695839 | [
"render"
] |
15c4a65dd8586581305893ed2f45a341bb06cd45 | 29,675 | cpp | C++ | lib/parser/parse/expression.cpp | rtlayzell/rush | a11392f2f81518835db4a95c5ccd81542b70f9bb | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2020-05-08T01:57:35.000Z | 2022-01-16T03:14:49.000Z | lib/parser/parse/expression.cpp | rtlayzell/rush | a11392f2f81518835db4a95c5ccd81542b70f9bb | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-05-27T08:45:52.000Z | 2020-05-27T08:45:52.000Z | lib/parser/parse/expression.cpp | rush-lang/rush | e1e2173452715ff92f58c0f333b74403dd06a815 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*************************************************************************
* Copyright 2018 Reegan Troy Layzell
*
* 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... | 42.453505 | 125 | 0.65604 | [
"vector"
] |
15cb12c4d7d0ce6287cd032018a607e071af5049 | 4,087 | hpp | C++ | src/libraries/dynamicMesh/meshMotion/fvMotionSolver/fvMotionSolvers/displacement/laplacian/displacementLaplacianFvMotionSolver.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/dynamicMesh/meshMotion/fvMotionSolver/fvMotionSolvers/displacement/laplacian/displacementLaplacianFvMotionSolver.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/dynamicMesh/meshMotion/fvMotionSolver/fvMotionSolvers/displacement/laplacian/displacementLaplacianFvMotionSolver.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
under... | 28.985816 | 79 | 0.571568 | [
"mesh"
] |
15d39a986b129102cf9073a92d9add918dc94d91 | 296,674 | cpp | C++ | YoloDetectionHoloLensUnity/app3/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_2Table.cpp | atolegen/YoloDetect | 30f230508d28859225bc9c199d69f7e723d12c0f | [
"MIT"
] | null | null | null | YoloDetectionHoloLensUnity/app3/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_2Table.cpp | atolegen/YoloDetect | 30f230508d28859225bc9c199d69f7e723d12c0f | [
"MIT"
] | null | null | null | YoloDetectionHoloLensUnity/app3/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_2Table.cpp | atolegen/YoloDetect | 30f230508d28859225bc9c199d69f7e723d12c0f | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... | 45.635133 | 319 | 0.851989 | [
"object"
] |
15d4157f4a8ce2be781f6ca8a043cfa1ba29c229 | 21,087 | cc | C++ | Message.cc | rannger/irc | e409aca27eb3fe5d0334c375640f36270378e32c | [
"MIT"
] | null | null | null | Message.cc | rannger/irc | e409aca27eb3fe5d0334c375640f36270378e32c | [
"MIT"
] | null | null | null | Message.cc | rannger/irc | e409aca27eb3fe5d0334c375640f36270378e32c | [
"MIT"
] | null | null | null | #include "Message.h"
#include "macro.h"
#include <regex>
#include <sstream>
#include <utility>
#include <memory>
inline std::vector<str_t> &split(const str_t &s, char delim, std::vector<str_t> &elems) {
std::stringstream *ss = new std::stringstream(s);
str_t *item = new str_t();
while (std::getline(*ss, *ite... | 32.243119 | 89 | 0.501067 | [
"vector"
] |
15d8d91c19c253c8ad542e65dfce97712c6c05a0 | 3,147 | cpp | C++ | Module1/problem/TSPReader.cpp | gbrsouza/HeuristicOptimization | 22bbf7fe7be8cc4e4a0e6d7cd70f078c363a014d | [
"MIT"
] | null | null | null | Module1/problem/TSPReader.cpp | gbrsouza/HeuristicOptimization | 22bbf7fe7be8cc4e4a0e6d7cd70f078c363a014d | [
"MIT"
] | null | null | null | Module1/problem/TSPReader.cpp | gbrsouza/HeuristicOptimization | 22bbf7fe7be8cc4e4a0e6d7cd70f078c363a014d | [
"MIT"
] | null | null | null | //
// Created by gabri on 11/10/2020.
//
#include <fstream>
#include <iostream>
#include <cmath>
#include "TSPReader.h"
#include "../util/Splitter.h"
TSP TSPReader::loadInstance(const std::string& path) {
unsigned int dimension = 0;
int **tmpData = nullptr;
std::string line;
std::ifstream instance (p... | 34.582418 | 92 | 0.471242 | [
"vector"
] |
15db674a0cb7ed2eb3fd01f4728ac6a251a6630a | 8,996 | cpp | C++ | IO/config/config.cpp | chenjiunfeng/openMaelstrom | 6dc6ffe3501f056eb83d1d6306d2ac5ec754c192 | [
"MIT"
] | 45 | 2019-11-07T13:51:50.000Z | 2022-02-11T01:51:14.000Z | IO/config/config.cpp | chenjiunfeng/openMaelstrom | 6dc6ffe3501f056eb83d1d6306d2ac5ec754c192 | [
"MIT"
] | 2 | 2020-03-06T20:25:02.000Z | 2021-02-07T21:45:39.000Z | IO/config/config.cpp | chenjiunfeng/openMaelstrom | 6dc6ffe3501f056eb83d1d6306d2ac5ec754c192 | [
"MIT"
] | 10 | 2019-08-22T09:11:23.000Z | 2022-02-07T07:04:55.000Z | #include <IO/config/config.h>
#include <IO/config/initialize.h>
#include <IO/config/parser.h>
#include <IO/config/snapshot.h>
#include <boost/algorithm/string.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <iostream>
#i... | 30.391892 | 153 | 0.610271 | [
"vector"
] |
15deebfc9cbbf4d2d2718d1182d6a603cb3f5ceb | 30,834 | cpp | C++ | GdaConst.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | GdaConst.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | GdaConst.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | /**
* GeoDa TM, Copyright (C) 2011-2015 by Luc Anselin - all rights reserved
*
* This file is part of GeoDa.
*
* GeoDa is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... | 36.318021 | 93 | 0.72313 | [
"vector",
"3d"
] |
15e3efaebc0461a78c1e7100d189ef51ebd9eae6 | 8,652 | cpp | C++ | Analysis/Image/LSRowImageProcessor.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 125 | 2015-01-22T05:43:23.000Z | 2022-03-22T17:15:59.000Z | Analysis/Image/LSRowImageProcessor.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 59 | 2015-02-10T09:13:06.000Z | 2021-11-11T02:32:38.000Z | Analysis/Image/LSRowImageProcessor.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 98 | 2015-01-17T01:25:10.000Z | 2022-03-18T17:29:42.000Z | /* Copyright (C) 2011 Ion Torrent Systems, Inc. All Rights Reserved */
#include <armadillo>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cinttypes>
#include "ByteSwapUtils.h"
#include "LSRowImageProcessor.h"
#define N_CORRECTION_GROUPS 8
#define SKIP_ROWS_AT_END 10
#define PINNED_HIGH_LIM... | 31.234657 | 120 | 0.623093 | [
"object",
"vector"
] |
15f1650589281df9b1d23e2a8be523e78293426b | 6,519 | hpp | C++ | c4/range.hpp | akasitskyi/c4 | 56925e25430bc73cd407a8976656797b04d52348 | [
"MIT"
] | 2 | 2020-11-11T12:28:27.000Z | 2022-01-31T20:31:28.000Z | c4/range.hpp | akasitskyi/c4 | 56925e25430bc73cd407a8976656797b04d52348 | [
"MIT"
] | 15 | 2018-09-30T12:48:50.000Z | 2020-07-14T18:36:50.000Z | c4/range.hpp | akasitskyi/c4 | 56925e25430bc73cd407a8976656797b04d52348 | [
"MIT"
] | 3 | 2019-01-04T07:04:44.000Z | 2020-09-06T16:53:21.000Z | //MIT License
//
//Copyright(c) 2018 Alex Kasitskyi
//
//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, merg... | 27.276151 | 135 | 0.516183 | [
"vector"
] |
15f1b2dcd55f5598c93cb28055ed72a59bf33e3a | 15,353 | cpp | C++ | tests/http/test_chunk.cpp | kenba/via-httplib | 728df42e9b95ee4bfdbce424fef5eb943722ed59 | [
"BSL-1.0"
] | 41 | 2015-03-31T02:21:30.000Z | 2021-11-04T05:04:04.000Z | tests/http/test_chunk.cpp | kenba/via-httplib | 728df42e9b95ee4bfdbce424fef5eb943722ed59 | [
"BSL-1.0"
] | 18 | 2015-04-05T08:39:33.000Z | 2018-10-26T16:29:45.000Z | tests/http/test_chunk.cpp | kenba/via-httplib | 728df42e9b95ee4bfdbce424fef5eb943722ed59 | [
"BSL-1.0"
] | 17 | 2015-01-20T18:26:18.000Z | 2021-11-16T12:48:03.000Z | //////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2013-2021 Via Technology Ltd. All Rights Reserved.
// (ken dot barker at via-technology dot co dot uk)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// ... | 31.65567 | 78 | 0.685469 | [
"vector"
] |
15f386294a6b8a472518faa4a6273843c5b14fcc | 7,307 | hpp | C++ | coding/diff.hpp | kudlav/organicmaps | 390236365749e0525b9229684132c2888d11369d | [
"Apache-2.0"
] | 4,879 | 2015-09-30T10:56:36.000Z | 2022-03-31T18:43:03.000Z | coding/diff.hpp | mbrukman/omim | d22fe2b6e0beee697f096e931df97a64f9db9dc1 | [
"Apache-2.0"
] | 7,549 | 2015-09-30T10:52:53.000Z | 2022-03-31T22:04:22.000Z | coding/diff.hpp | mbrukman/omim | d22fe2b6e0beee697f096e931df97a64f9db9dc1 | [
"Apache-2.0"
] | 1,493 | 2015-09-30T10:43:06.000Z | 2022-03-21T09:16:49.000Z | #pragma once
#include "base/assert.hpp"
#include "base/base.hpp"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <unordered_map>
#include <utility>
#include <vector>
namespace diff
{
enum Operation
{
OPERATION_COPY = 0,
OPERATION_DELETE = 1,
OPERATION_INSERT = 2,
};
template <class PatchWr... | 33.063348 | 99 | 0.646777 | [
"vector"
] |
15f70c1c021ec175aad67bbfd700b98eefb17b57 | 5,630 | cc | C++ | src/developer/debug/zxdb/common/data_extractor_unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | src/developer/debug/zxdb/common/data_extractor_unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 5 | 2019-12-04T15:13:37.000Z | 2020-02-19T08:11:38.000Z | src/developer/debug/zxdb/common/data_extractor_unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 73 | 2019-03-06T18:55:23.000Z | 2022-03-26T12:04:51.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 "src/developer/debug/zxdb/common/data_extractor.h"
#include <limits>
#include <gtest/gtest.h>
namespace zxdb {
TEST(DataExtractor, Empty) {
... | 28.57868 | 89 | 0.684725 | [
"vector"
] |
15f8ba61cfd91654f273be8c86d1e80c874b94a4 | 1,280 | cpp | C++ | lib/draw/rendermanager.cpp | LeDYoM/sgh | 66a56d0df5c0acc8a3f47212a91da7ea889695de | [
"MIT"
] | null | null | null | lib/draw/rendermanager.cpp | LeDYoM/sgh | 66a56d0df5c0acc8a3f47212a91da7ea889695de | [
"MIT"
] | null | null | null | lib/draw/rendermanager.cpp | LeDYoM/sgh | 66a56d0df5c0acc8a3f47212a91da7ea889695de | [
"MIT"
] | null | null | null | #include "rendermanager.hpp"
#include <lib/core/log.hpp>
#include "transformation.hpp"
#include "renderstates.hpp"
#include "rendernode.hpp"
#include "camera.hpp"
#include <lib/drivers/render/rendertarget.hpp>
#include <lib/core/appcontroller.hpp>
#include <lib/core/driver.hpp>
#include <SFML/Graphics/Shader.hpp>
#i... | 20.31746 | 103 | 0.711719 | [
"render"
] |
15fccaa8cd1af130e9bb51d81e799b30af948558 | 754 | cpp | C++ | dp/coin_change/cpp/ashutosh_coinchange.cpp | CarbonDDR/al-go-rithms | 8e65affbe812931b7dde0e2933eb06c0f44b4130 | [
"CC0-1.0"
] | 1,253 | 2017-06-06T07:19:25.000Z | 2022-03-30T17:07:58.000Z | dp/coin_change/cpp/ashutosh_coinchange.cpp | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 554 | 2017-09-29T18:56:01.000Z | 2022-02-21T15:48:13.000Z | dp/coin_change/cpp/ashutosh_coinchange.cpp | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 2,226 | 2017-09-29T19:59:59.000Z | 2022-03-25T08:59:55.000Z | /*Problem link (Leetcode) : https://leetcode.com/problems/coin-change/ */
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int coinChange(vector<int>& coins, int amount) {
int n = coins.size();
vector<int> dp(amount+1, INT8_MAX);
dp[0] = 0;
for(int i =1; i <= ... | 22.176471 | 73 | 0.496021 | [
"vector"
] |
c60a92624b6f27cdd1274506fb7dbc783cc835c7 | 6,163 | cc | C++ | code/addons/db/table.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 377 | 2018-10-24T08:34:21.000Z | 2022-03-31T23:37:49.000Z | code/addons/db/table.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 11 | 2020-01-22T13:34:46.000Z | 2022-03-07T10:07:34.000Z | code/addons/db/table.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 23 | 2019-07-13T16:28:32.000Z | 2022-03-20T09:00:59.000Z | //------------------------------------------------------------------------------
// table.cc
// (C) 2006 Radon Labs GmbH
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "foundation/stdneb.h"
#include "db/table.h"
#in... | 29.347619 | 91 | 0.540808 | [
"object"
] |
c60b56e933831246c8797aba6a94e5733aa9fc35 | 17,914 | cc | C++ | src/visualisers/EmagramGrid.cc | b8raoult/magics | eb2c86ec6e392e89c90044128dc671f22283d6ad | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-12-07T23:10:50.000Z | 2022-02-19T03:01:49.000Z | src/visualisers/EmagramGrid.cc | b8raoult/magics | eb2c86ec6e392e89c90044128dc671f22283d6ad | [
"ECL-2.0",
"Apache-2.0"
] | 59 | 2019-01-04T15:43:30.000Z | 2022-03-31T09:48:15.000Z | src/visualisers/EmagramGrid.cc | b8raoult/magics | eb2c86ec6e392e89c90044128dc671f22283d6ad | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2019-01-07T14:36:33.000Z | 2021-09-06T14:48:36.000Z | /*
* (C) Copyright 1996-2018 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an in... | 34.85214 | 119 | 0.555766 | [
"vector"
] |
723c668e43a55c9a11d48cff58652b3339f2f707 | 1,632 | cpp | C++ | aws-cpp-sdk-logs/source/model/PutQueryDefinitionRequest.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-logs/source/model/PutQueryDefinitionRequest.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-logs/source/model/PutQueryDefinitionRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/logs/model/PutQueryDefinitionRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::CloudWatchLogs::Model;
using namespace Aws::Utils::Json;... | 23.314286 | 117 | 0.761642 | [
"model"
] |
7240ab427d8f1fb903a30fbc8b5d9ca4ae44e284 | 2,888 | cpp | C++ | Code/Framework/AzToolsFramework/AzToolsFramework/UI/UICore/AspectRatioAwarePixmapWidget.cpp | Schneidex69/o3de | d9ec159f0e07ff86957e15212232413c4ff4d1dc | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-19T23:54:05.000Z | 2021-07-19T23:54:05.000Z | Code/Framework/AzToolsFramework/AzToolsFramework/UI/UICore/AspectRatioAwarePixmapWidget.cpp | Schneidex69/o3de | d9ec159f0e07ff86957e15212232413c4ff4d1dc | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Framework/AzToolsFramework/AzToolsFramework/UI/UICore/AspectRatioAwarePixmapWidget.cpp | Schneidex69/o3de | d9ec159f0e07ff86957e15212232413c4ff4d1dc | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzToolsFramework_precompiled.h"
AZ_PUSH_DISABLE_WARNING(4251 4800, "-Wunknown-warning-op... | 33.581395 | 225 | 0.623269 | [
"render",
"3d"
] |
7243894f8e222c9b4f1e237e9f69376c192501be | 2,943 | cpp | C++ | src/c++/cpp_python.cpp | AnkerC/codecomplete | 84a5db2f4de904156622429e10c81349ab7a26d6 | [
"Apache-2.0"
] | null | null | null | src/c++/cpp_python.cpp | AnkerC/codecomplete | 84a5db2f4de904156622429e10c81349ab7a26d6 | [
"Apache-2.0"
] | null | null | null | src/c++/cpp_python.cpp | AnkerC/codecomplete | 84a5db2f4de904156622429e10c81349ab7a26d6 | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <cstddef> // for nullptr
#include <iostream>
#include <Python.h> // C++调用Python需要该头文件
using namespace std;
/*
* C++和python互相调用示例
* ubuntu下需要先安装 apt-get install python-dev
* linux下编译: g++ -o test cpp_python.cpp -I/usr/include/python2.7 -lpython2.7 --std=c++11
*/
/*
1. 下面演示C++调用pyth... | 17.311765 | 88 | 0.575943 | [
"vector"
] |
724a21b36194a62fd37396222b985072b94798c3 | 5,472 | cpp | C++ | past2014-2015/0420/0420_2_3.cpp | kazunetakahashi/icpc-challenge | 6c3aa2bfd03b88d3ffa439e5c364e3086e31d640 | [
"MIT"
] | null | null | null | past2014-2015/0420/0420_2_3.cpp | kazunetakahashi/icpc-challenge | 6c3aa2bfd03b88d3ffa439e5c364e3086e31d640 | [
"MIT"
] | null | null | null | past2014-2015/0420/0420_2_3.cpp | kazunetakahashi/icpc-challenge | 6c3aa2bfd03b88d3ffa439e5c364e3086e31d640 | [
"MIT"
] | null | null | null | // http://poj.org/problem?id=3532
/*
通らないのでもう寝ます。
結果:G++ Runtime Error、C++ Wrong Answer
Runtime Errorだから、多分0の割り算がまだ出ている。
以下のケースで、できるだけ潰したと思うのですが、これ以上原因がもう思いつきませんでした。
Sample Input 1
4 6
1 2 1
1 3 1
1 4 1
2 3 1
2 4 1
4 3 1
Sample Output 1
0.50
Sample Input 2
4 4
1 3 1
1 3 1
3 4 1
1... | 21.046154 | 107 | 0.452303 | [
"vector"
] |
724a7a73fe33e47752cbac768e9ae95bfc61e516 | 653 | cpp | C++ | 378.kth-smallest-element-in-a-sorted-matrix.158915099.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | 378.kth-smallest-element-in-a-sorted-matrix.158915099.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | 378.kth-smallest-element-in-a-sorted-matrix.158915099.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
struct compare{
bool operator()(vector<int> a,vector<int> b)
{
return a[0]>b[0];
}
};
int kthSmallest(vector<vector<int>>& matrix, int k) {
//minheaps
vector<int> ele;
priority_queue<vector<int>,vector<vector<int>> , compare> pq;
... | 24.185185 | 68 | 0.460949 | [
"vector"
] |
724b9ef921bf99b9765febe81cdb3e04d6f28e0f | 12,774 | cpp | C++ | sycl/src/vec-pose-inner.cpp | jeffhammond/miniBUDE | 99362eb36805ee9b66bb8d8c7ea20c6348f62c46 | [
"Apache-2.0"
] | 8 | 2021-06-25T13:40:44.000Z | 2022-03-22T06:34:50.000Z | sycl/src/vec-pose-inner.cpp | jeffhammond/miniBUDE | 99362eb36805ee9b66bb8d8c7ea20c6348f62c46 | [
"Apache-2.0"
] | 7 | 2020-12-03T20:23:38.000Z | 2021-04-15T16:00:31.000Z | sycl/src/vec-pose-inner.cpp | jeffhammond/miniBUDE | 99362eb36805ee9b66bb8d8c7ea20c6348f62c46 | [
"Apache-2.0"
] | 5 | 2021-07-02T04:26:37.000Z | 2022-01-11T09:27:22.000Z | #include <cmath>
#include "bude.h"
#define ZERO 0.0f
#define QUARTER 0.25f
#define HALF 0.5f
#define ONE 1.0f
#define TWO 2.0f
#define FOUR 4.0f
#define CNSTNT 45.0f
// Energy evaluation parameters
#define HBTYPE_F 70
#define HBTYPE_E 69
#define HARDNESS 38.0f
#define NPNPDIST 5.5f
#define NPPDIST ... | 37.681416 | 133 | 0.62682 | [
"transform"
] |
725153642304561d94c706db97eb9651495f8e0e | 1,107 | cpp | C++ | src/utils/bits.cpp | ElrondNetwork/elrond-sdk-erdcpp | a7530399ccd5e735e644e867a6e6c1c0b8f1c3f2 | [
"MIT"
] | 3 | 2021-07-16T08:08:05.000Z | 2021-07-21T09:42:03.000Z | src/utils/bits.cpp | ElrondNetwork/elrond-sdk-erdcpp | a7530399ccd5e735e644e867a6e6c1c0b8f1c3f2 | [
"MIT"
] | null | null | null | src/utils/bits.cpp | ElrondNetwork/elrond-sdk-erdcpp | a7530399ccd5e735e644e867a6e6c1c0b8f1c3f2 | [
"MIT"
] | null | null | null | #include "bits.h"
#include "errors.h"
namespace util
{
bytes convertBits(bytes const &data, unsigned int const fromBits, unsigned int const toBits, bool const pad)
{
unsigned int acc = 0;
unsigned int bits = 0;
std::vector<uint8_t> ret;
unsigned int maxVal = (1 << toBits) - 1;
unsigned int maxAcc =... | 23.0625 | 108 | 0.528455 | [
"vector"
] |
7257f899cb4010f3fedae49ee3a9f89455da0cf2 | 60,416 | cpp | C++ | external/dokun-ui/src/engine.cpp | larteyoh/neroshop | f8d9e6bc74b4b7e49abbe2dba657c4fb87c3af4b | [
"AML"
] | null | null | null | external/dokun-ui/src/engine.cpp | larteyoh/neroshop | f8d9e6bc74b4b7e49abbe2dba657c4fb87c3af4b | [
"AML"
] | null | null | null | external/dokun-ui/src/engine.cpp | larteyoh/neroshop | f8d9e6bc74b4b7e49abbe2dba657c4fb87c3af4b | [
"AML"
] | null | null | null | #include "../include/engine.hpp"
////////////
dokun::Engine::Engine(void)
{}
////////////
dokun::Engine::~Engine(void)
{
close();
}
////////////
dokun::Engine * dokun::Engine::engine_ptr (new dokun::Engine());
////////////
bool dokun::Engine::status (false);
////////////
bool dokun::Engine::open()
{
... | 54.873751 | 378 | 0.597805 | [
"vector",
"model",
"3d"
] |
72605acb66d39dfc2c418d7ad6f4b8c24e1ffd73 | 8,154 | hpp | C++ | stitcher.hpp | whdlgp/basic_stitcher- | 38f0970ae4f9cc67b03a25da7d08fe96642554da | [
"MIT"
] | null | null | null | stitcher.hpp | whdlgp/basic_stitcher- | 38f0970ae4f9cc67b03a25da7d08fe96642554da | [
"MIT"
] | null | null | null | stitcher.hpp | whdlgp/basic_stitcher- | 38f0970ae4f9cc67b03a25da7d08fe96642554da | [
"MIT"
] | null | null | null | #ifndef STITCHER_HPP
#define STITCHER_HPP
#include <iostream>
#include <fstream>
#include <string>
#include "opencv2/opencv_modules.hpp"
#include <opencv2/core/utility.hpp>
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/stitching/detail/autocalib.hpp"
#include "opencv2/stitching/deta... | 54.724832 | 155 | 0.536792 | [
"vector"
] |
72615425936ad86e8103627059896c71c52a4f20 | 82,091 | cc | C++ | semant/seal-parse.cc | Snowfall99/seal-compiler | 8ea600d6312d1da145e6d8f018c20751826d4efa | [
"MIT"
] | 4 | 2020-10-25T14:40:20.000Z | 2020-11-22T05:38:17.000Z | semant/seal-parse.cc | Snowfall99/seal-compiler | 8ea600d6312d1da145e6d8f018c20751826d4efa | [
"MIT"
] | 1 | 2020-10-17T16:18:18.000Z | 2020-10-19T14:46:31.000Z | semant/seal-parse.cc | Snowfall99/seal-compiler | 8ea600d6312d1da145e6d8f018c20751826d4efa | [
"MIT"
] | 2 | 2020-12-01T06:17:05.000Z | 2020-12-02T10:13:18.000Z | /* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... | 32.281164 | 125 | 0.496766 | [
"object"
] |
7261d99a11c1bb95391c4a0fb9d5efa7d65cb2cb | 6,454 | cpp | C++ | shading/Texture.cpp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | 6 | 2015-12-29T07:21:01.000Z | 2020-05-29T10:47:38.000Z | shading/Texture.cpp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | shading/Texture.cpp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | /*! \file Texture.cpp
* \author Jared Hoberock
* \brief Implementation of Texture class.
*/
#ifdef WIN32
#define OPENEXR_DLL
#define NOMINMAX
#endif // WIN32
#include "Texture.h"
#include <numeric>
#include <halfLimits.h>
#include <ImfRgbaFile.h>
#include <ImfRgba.h>
#include <ImfStringAttribute.h>
#include <I... | 25.409449 | 104 | 0.599783 | [
"vector"
] |
72685880c102efa0f545559fd2bcdd9999fbf09c | 8,587 | cpp | C++ | src/Evaluator.cpp | bluezephyr/interpreter | 874b4d7f9b6cc690fd39d3111ae57e4ad2452e96 | [
"MIT"
] | 2 | 2020-03-30T08:33:39.000Z | 2021-05-25T12:15:23.000Z | src/Evaluator.cpp | bluezephyr/interpreter | 874b4d7f9b6cc690fd39d3111ae57e4ad2452e96 | [
"MIT"
] | null | null | null | src/Evaluator.cpp | bluezephyr/interpreter | 874b4d7f9b6cc690fd39d3111ae57e4ad2452e96 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Blue Zephyr
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
*/
#include "Ast.h"
#include "ControlToken.h"
#include "Evaluator.h"
Evaluator::Evaluator() : goingUp(false), breakBlock(false) {}
std::shared_ptr<Obje... | 27.088328 | 104 | 0.613253 | [
"object",
"vector"
] |
726ede81e24fd67e89d9b84bf2da8dc21550ba92 | 30,310 | cpp | C++ | PageFlipLib/src/main/cpp/PageFlipJNI.cpp | eschao/android-PageFlip-JNI | 52451dc52d45ff54fbd29b469ad1dbc310506385 | [
"Apache-2.0"
] | 16 | 2017-03-03T09:07:49.000Z | 2020-11-17T06:38:10.000Z | PageFlipLib/src/main/cpp/PageFlipJNI.cpp | eschao/android-PageFlip-JNI | 52451dc52d45ff54fbd29b469ad1dbc310506385 | [
"Apache-2.0"
] | 2 | 2017-01-06T02:12:33.000Z | 2020-09-12T15:38:19.000Z | PageFlipLib/src/main/cpp/PageFlipJNI.cpp | eschao/android-PageFlip-JNI | 52451dc52d45ff54fbd29b469ad1dbc310506385 | [
"Apache-2.0"
] | 4 | 2017-12-06T06:27:16.000Z | 2019-11-22T13:52:04.000Z | /*
* Copyright (C) 2016 eschao <esc.chao@gmail.com>
*
* 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 applica... | 32.382479 | 80 | 0.545497 | [
"object"
] |
727ef7fa47c03780223d0a26e0d1263310b08462 | 3,277 | cpp | C++ | Adim1_Ornekler/32_Vector/src/main.cpp | KMACEL/TR-Cpp | dac7bebd1d5fd2d69a76be5a9809417333f01817 | [
"Apache-2.0"
] | 1 | 2021-05-25T22:11:13.000Z | 2021-05-25T22:11:13.000Z | Adim1_Ornekler/32_Vector/src/main.cpp | KMACEL/TR-Cpp | dac7bebd1d5fd2d69a76be5a9809417333f01817 | [
"Apache-2.0"
] | null | null | null | Adim1_Ornekler/32_Vector/src/main.cpp | KMACEL/TR-Cpp | dac7bebd1d5fd2d69a76be5a9809417333f01817 | [
"Apache-2.0"
] | null | null | null | //============================================================================
// İsim : 22_Pointer
// Yazan : Mert AceL
// Version : 1.0
// Copyright : AceL
// Açıklama :22_Pointer
//============================================================================
#include<iostream>
#include<vector>
#... | 26.860656 | 79 | 0.433628 | [
"vector"
] |
7284d83ef735bd9bedb4a5292eae89a975528793 | 18,625 | cpp | C++ | test/TestBuilder.cpp | ConnectionMaster/jsonbuilder | 65dd8ab59cdfcb93e0ac42a3030c41730d783eb6 | [
"MIT"
] | 11 | 2020-05-09T10:09:42.000Z | 2021-11-15T10:06:50.000Z | test/TestBuilder.cpp | microsoft/jsonbuilder | 65dd8ab59cdfcb93e0ac42a3030c41730d783eb6 | [
"MIT"
] | 4 | 2020-02-23T18:45:16.000Z | 2022-03-21T11:32:28.000Z | test/TestBuilder.cpp | ConnectionMaster/jsonbuilder | 65dd8ab59cdfcb93e0ac42a3030c41730d783eb6 | [
"MIT"
] | 7 | 2020-06-30T15:51:08.000Z | 2021-06-09T18:13:11.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <catch2/catch.hpp>
#include <jsonbuilder/JsonBuilder.h>
using namespace jsonbuilder;
TEST_CASE("JsonBuilder buffer reserve", "[builder]")
{
constexpr auto c_maxSize = JsonBuilder::buffer_max_size();
Json... | 30.186386 | 80 | 0.576483 | [
"object"
] |
7285302db5d394042c11cb05ad45b2f0fafe2b89 | 3,707 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/shared/qbs/src/lib/corelib/buildgraph/rawscanresults.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | Src/shared/qbs/src/lib/corelib/buildgraph/rawscanresults.cpp | kevinlq/QSD | b618fc63dc3aa5a18701c5b23e3ea3cdd253e89a | [
"MIT"
] | null | null | null | Src/shared/qbs/src/lib/corelib/buildgraph/rawscanresults.cpp | kevinlq/QSD | b618fc63dc3aa5a18701c5b23e3ea3cdd253e89a | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qbs.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this fil... | 32.517544 | 97 | 0.70758 | [
"vector"
] |
7285ae37fd5a14f8d14a161320833484e0926f8d | 20,313 | cc | C++ | main.cc | rajatthepagal/8085-Assembler | cea2e99ac26b3252cabc48adf2373cc1638c670f | [
"Apache-2.0"
] | null | null | null | main.cc | rajatthepagal/8085-Assembler | cea2e99ac26b3252cabc48adf2373cc1638c670f | [
"Apache-2.0"
] | null | null | null | main.cc | rajatthepagal/8085-Assembler | cea2e99ac26b3252cabc48adf2373cc1638c670f | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <array>
#include <vector>
#include <ctype.h>
#include <bitset>
// generate list of tokens <name , value > e.g <"id0", "NOP" , line_no , mem_loc> , <"id1","JMP" , line_no , mem_loc>
//<"DATA" , "00H" , line_no , mem_loc>
// evaluate whether the sequence of token... | 29.610787 | 240 | 0.553094 | [
"vector"
] |
728d98f0eeb16e67df66eb851c27322cd4d19a89 | 2,663 | hpp | C++ | czrpc/base/thread_pool.hpp | chxuan/czrpc | 95695f6400e8d981f6e451707937cea3d92c87d5 | [
"MIT"
] | 5 | 2017-02-12T14:39:28.000Z | 2021-10-07T04:54:09.000Z | czrpc/base/thread_pool.hpp | xulinzhang/czrpc | 95695f6400e8d981f6e451707937cea3d92c87d5 | [
"MIT"
] | null | null | null | czrpc/base/thread_pool.hpp | xulinzhang/czrpc | 95695f6400e8d981f6e451707937cea3d92c87d5 | [
"MIT"
] | 4 | 2018-08-24T02:31:14.000Z | 2021-02-20T07:34:29.000Z | #pragma once
#include <vector>
#include <queue>
#include <memory>
#include <thread>
#include <atomic>
#include <mutex>
#include <condition_variable>
#include <future>
#include <functional>
#include <stdexcept>
namespace czrpc
{
namespace base
{
class thread_pool
{
public:
explicit thread_pool() : is_stop_threadp... | 23.156522 | 143 | 0.547127 | [
"vector"
] |
728e7f6800305e095a79cc5216eb77345f5a8cd4 | 2,059 | cpp | C++ | main.cpp | ushitora-anqou/aqTFHE | 608fb791c65f2208c96cc3dfb9bb8610d2f693ca | [
"Apache-2.0"
] | 1 | 2020-03-30T11:07:50.000Z | 2020-03-30T11:07:50.000Z | main.cpp | ushitora-anqou/aqTFHE | 608fb791c65f2208c96cc3dfb9bb8610d2f693ca | [
"Apache-2.0"
] | null | null | null | main.cpp | ushitora-anqou/aqTFHE | 608fb791c65f2208c96cc3dfb9bb8610d2f693ca | [
"Apache-2.0"
] | null | null | null | #include "aqtfhe.hpp"
//
#include <gperftools/profiler.h>
#include <chrono>
#include <iostream>
//
#include "test.inc"
int main()
{
test_aqtfhe();
using namespace aqtfhe::native;
std::random_device randeng;
std::bernoulli_distribution binary(0.5);
secret_key skey{lwe_params::tfhe_default(), ... | 28.205479 | 77 | 0.606605 | [
"vector"
] |
729005149d6e74bb8b54fb8f1ff4430692acaea2 | 6,765 | cpp | C++ | AMS/源码/androidP/system/core/init/ueventd_test.cpp | chen188669/AndroidStudyNotes | 1fa01eb88c267049dda1e4bd998bff2e4abd92b4 | [
"Apache-2.0"
] | null | null | null | AMS/源码/androidP/system/core/init/ueventd_test.cpp | chen188669/AndroidStudyNotes | 1fa01eb88c267049dda1e4bd998bff2e4abd92b4 | [
"Apache-2.0"
] | null | null | null | AMS/源码/androidP/system/core/init/ueventd_test.cpp | chen188669/AndroidStudyNotes | 1fa01eb88c267049dda1e4bd998bff2e4abd92b4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2017 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... | 33 | 96 | 0.618921 | [
"vector"
] |
729313e7566c5b25049fc9d39b3f33ef0af185ed | 10,111 | cpp | C++ | src/collision/narrowphase/Penetration.cpp | jonnytown/positional | 3c23d9fa00509936f6300393255bcc40aabf1ec5 | [
"MIT"
] | null | null | null | src/collision/narrowphase/Penetration.cpp | jonnytown/positional | 3c23d9fa00509936f6300393255bcc40aabf1ec5 | [
"MIT"
] | null | null | null | src/collision/narrowphase/Penetration.cpp | jonnytown/positional | 3c23d9fa00509936f6300393255bcc40aabf1ec5 | [
"MIT"
] | null | null | null | #include "Penetration.h"
#include "simulation/Body.h"
#include "collision/collider/Collider.h"
#include "collision/collider/BoxCollider.h"
#include "collision/collider/SphereCollider.h"
#include "collision/collider/CapsuleCollider.h"
#include "Simplex.h"
#include "Polytope.h"
namespace Positional::Collision
{
const F... | 27.777473 | 128 | 0.671348 | [
"shape",
"vector"
] |
7299ecacf3f4ff3ae04183004456eeb30dc4c803 | 1,857 | cpp | C++ | homsearch_test.cpp | agharbi6/homsearch | 78dc8d0b573efb12f0cb685fc520e09cbab156dc | [
"MIT"
] | 6 | 2015-11-21T09:53:53.000Z | 2021-12-09T00:21:09.000Z | homsearch_test.cpp | rostam/homsearch | 9f69cec1d1496e4721fd79f43c4d1591dd1eb35c | [
"MIT"
] | null | null | null | homsearch_test.cpp | rostam/homsearch | 9f69cec1d1496e4721fd79f43c4d1591dd1eb35c | [
"MIT"
] | 3 | 2015-11-11T09:50:54.000Z | 2021-07-29T13:34:20.000Z | /*
* Copyright (c) 2015 Tomas Gavenciak <gavento@ucw.cz>
*
* 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, m... | 34.388889 | 103 | 0.67259 | [
"vector"
] |
729e22e25fe1df1971364f71be7a7809231dd89c | 5,086 | cpp | C++ | HistBackProject_V4/main.cpp | BonTub/OpenCV_SimpleDemos | 21b423f9c7e54b4bb943ef4fb44001fafacb51cb | [
"MIT"
] | null | null | null | HistBackProject_V4/main.cpp | BonTub/OpenCV_SimpleDemos | 21b423f9c7e54b4bb943ef4fb44001fafacb51cb | [
"MIT"
] | null | null | null | HistBackProject_V4/main.cpp | BonTub/OpenCV_SimpleDemos | 21b423f9c7e54b4bb943ef4fb44001fafacb51cb | [
"MIT"
] | null | null | null | #include "colorhistogram.h"
#include "contentfinder.h"
#include <opencv2/videoio/videoio.hpp>
#include <opencv2/video/tracking.hpp>
#include <iostream>
void mouseHandler(int event, int x, int y, int flags, void *param);
cv::Rect box = cv::Rect(0,0,-1,-1);
bool drawing_box = false;
bool flag_init = false;
c... | 28.413408 | 74 | 0.480535 | [
"vector"
] |
72a1864cdef40190df4a0e965a1a1ee31b7b96e1 | 11,219 | cpp | C++ | statisticslibsvm/src/statisticslibsvm.cpp | AngelinaScheck/BachelorBioinfo | 9148666f9184439f4326c65f437b6fdb47d2d2dd | [
"BSD-3-Clause"
] | null | null | null | statisticslibsvm/src/statisticslibsvm.cpp | AngelinaScheck/BachelorBioinfo | 9148666f9184439f4326c65f437b6fdb47d2d2dd | [
"BSD-3-Clause"
] | null | null | null | statisticslibsvm/src/statisticslibsvm.cpp | AngelinaScheck/BachelorBioinfo | 9148666f9184439f4326c65f437b6fdb47d2d2dd | [
"BSD-3-Clause"
] | null | null | null | #include <seqan/vcf_io.h>
#include <seqan/find.h>
#include <iostream>
#include <fstream>
#include <limits>
#include <ctype.h>
#include <stdlib.h>
#include <vector>
#include "statisticslibsvm.h"
#include "svm.h"
#define Malloc(type,n) (type *)malloc((n)*sizeof(type))
#define CharStringToStdString(x) std::string(to... | 37.026403 | 179 | 0.58909 | [
"vector",
"model"
] |
72a266d2901c058fe2d143970cc48a7cfd3092e6 | 5,043 | cpp | C++ | code/tweakval.cpp | joeld42/darkstar | e857e313db7fdd3b77d45a692d22da0c953aff58 | [
"MIT"
] | null | null | null | code/tweakval.cpp | joeld42/darkstar | e857e313db7fdd3b77d45a692d22da0c953aff58 | [
"MIT"
] | null | null | null | code/tweakval.cpp | joeld42/darkstar | e857e313db7fdd3b77d45a692d22da0c953aff58 | [
"MIT"
] | 1 | 2019-10-05T02:04:19.000Z | 2019-10-05T02:04:19.000Z |
#include <map>
#include <vector>
#include <string>
#include <sys/stat.h>
#include <stdlib.h>
#include "tweakval.h"
#if TV_USE_TWEAKVAL
struct Tweakable
{
enum TweakableType
{
Type_INT,
Type_FLOAT,
};
TweakableType type;
union {
float f_val;
int i_val;
} val;
};
struct TweakableSourceFile
{
std::s... | 21.926087 | 91 | 0.63256 | [
"vector"
] |
72a43969158890a300af0e54f65ca88966972385 | 16,566 | cpp | C++ | video/ffmpeg.cpp | VulkanWorks/Granite-scene-graph-gui-ffmpeg-dsp | a725ec78eeb5de2d3c25257b1a9372f5e38910f6 | [
"MIT"
] | null | null | null | video/ffmpeg.cpp | VulkanWorks/Granite-scene-graph-gui-ffmpeg-dsp | a725ec78eeb5de2d3c25257b1a9372f5e38910f6 | [
"MIT"
] | null | null | null | video/ffmpeg.cpp | VulkanWorks/Granite-scene-graph-gui-ffmpeg-dsp | a725ec78eeb5de2d3c25257b1a9372f5e38910f6 | [
"MIT"
] | null | null | null | /* Copyright (c) 2017-2020 Hans-Kristian Arntzen
*
* 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, me... | 26.59069 | 124 | 0.701618 | [
"render",
"vector"
] |
72a6e705601a29e1104d86ed7fcb96df1a6e9e67 | 3,091 | cpp | C++ | CIM_Framework/CIMFramework/CPPClasses/Src/CIM_SAPAvailableForElement.cpp | rgl/lms | cda6a25e0f39b2a18f10415560ee6a2cfc5fbbcb | [
"Apache-2.0"
] | 18 | 2019-04-17T10:43:35.000Z | 2022-03-22T22:30:39.000Z | CIM_Framework/CIMFramework/CPPClasses/Src/CIM_SAPAvailableForElement.cpp | rgl/lms | cda6a25e0f39b2a18f10415560ee6a2cfc5fbbcb | [
"Apache-2.0"
] | 9 | 2019-10-03T15:29:51.000Z | 2021-12-27T14:03:33.000Z | CIM_Framework/CIMFramework/CPPClasses/Src/CIM_SAPAvailableForElement.cpp | isabella232/lms | 50d16f81b49aba6007388c001e8137352c5eb42e | [
"Apache-2.0"
] | 8 | 2019-06-13T23:30:50.000Z | 2021-06-25T15:51:59.000Z | //----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_SAPAvailableForElement.cpp
//
// Contents: CIM_SAPAvailableForElement conveys the semantics of a Service Access Point that is available for a... | 36.364706 | 447 | 0.739566 | [
"object",
"vector"
] |
72ab2d33eedd9697130e4c6dcd96aa0579c6269b | 1,730 | cpp | C++ | kactl/stress-tests/geometry/insidePolygon.cpp | prince776/CodeBook | 874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b | [
"CC0-1.0"
] | 17 | 2021-01-25T12:07:17.000Z | 2022-02-26T17:20:31.000Z | kactl/stress-tests/geometry/insidePolygon.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | null | null | null | kactl/stress-tests/geometry/insidePolygon.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | 4 | 2021-02-28T11:13:44.000Z | 2021-11-20T12:56:20.000Z | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < int(b); ++i)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
const double EPS =1e-8;
#include "../utilities/genPolygon.h"
#include "../../co... | 27.903226 | 89 | 0.590751 | [
"geometry",
"vector"
] |
72b3e4b26214b773e342da3012326989fb6c9918 | 317 | cpp | C++ | bixeCamp_2019/aula6_DFS/Kefa_and_Park.cpp | valdenicio22/Programming-Marathon | 6870b3da1625192b0c69a0c89d700f0c36769bae | [
"MIT"
] | null | null | null | bixeCamp_2019/aula6_DFS/Kefa_and_Park.cpp | valdenicio22/Programming-Marathon | 6870b3da1625192b0c69a0c89d700f0c36769bae | [
"MIT"
] | null | null | null | bixeCamp_2019/aula6_DFS/Kefa_and_Park.cpp | valdenicio22/Programming-Marathon | 6870b3da1625192b0c69a0c89d700f0c36769bae | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define MAXN 100005
#define pb push_back
using namespace std;
int cats[MAXN];
vector<int> adj[MANX];
int main(){
int n, k;
for(int i=0;i<n;i++){
cin >> cats[i];
}
for(int i=1;i<=n;i++){
int a, b; cin >> a >> b;
adj[a].pb(b);
adj[b].pb(a);
}
return 0;
}
| 11.321429 | 28 | 0.523659 | [
"vector"
] |
72bd26b16e402b67793930a822baa4560cf33db6 | 7,105 | cpp | C++ | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/designer/src/components/formeditor/formeditor_optionspage.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/designer/src/components/formeditor/formeditor_optionspage.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/designer/src/components/formeditor/formeditor_optionspage.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid com... | 34.658537 | 115 | 0.716397 | [
"object"
] |
72c7e681cb361bd62d16075f1d2cc0e3e37893f5 | 5,886 | inl | C++ | Code/Framework/AzNetworking/AzNetworking/Serialization/ISerializer.inl | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | Code/Framework/AzNetworking/AzNetworking/Serialization/ISerializer.inl | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Framework/AzNetworking/AzNetworking/Serialization/ISerializer.inl | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/std/typetraits/underlying_type.h>
#include <AzCore/std/typetraits/con... | 30.65625 | 158 | 0.603296 | [
"3d"
] |
72c8591635336f22a582ef19053d2e7f89b8a847 | 1,569 | hpp | C++ | Source/Game/Script/ScriptComponent.hpp | gunstarpl/Game-Engine-12-2013 | bfc53f5c998311c17e97c1b4d65792d615c51d36 | [
"MIT",
"Unlicense"
] | 6 | 2017-12-31T17:28:40.000Z | 2021-12-04T06:11:34.000Z | Source/Game/Script/ScriptComponent.hpp | gunstarpl/Game-Engine-12-2013 | bfc53f5c998311c17e97c1b4d65792d615c51d36 | [
"MIT",
"Unlicense"
] | null | null | null | Source/Game/Script/ScriptComponent.hpp | gunstarpl/Game-Engine-12-2013 | bfc53f5c998311c17e97c1b4d65792d615c51d36 | [
"MIT",
"Unlicense"
] | null | null | null | #pragma once
#include "Precompiled.hpp"
#include "MainGlobal.hpp"
#include "Game/Component/Component.hpp"
//
// Script Component
//
class ScriptComponent : public Component
{
public:
// Type declarations.
typedef std::vector<Lua::LuaRef> ScriptList;
public:
ScriptComponent();
~ScriptComponent();
... | 23.41791 | 73 | 0.547482 | [
"vector"
] |
72ca1b2da2034e99f01b905c5a9adbb518a8ae5c | 1,154 | cxx | C++ | dtool/src/prc/configVariable.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | dtool/src/prc/configVariable.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | dtool/src/prc/configVariable.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: configVariable.cxx
// Created by: drose (18Oct04)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You sh... | 34.969697 | 70 | 0.533795 | [
"3d"
] |
72d137ece5a7179e523dfaed38364fec230f6006 | 20,661 | cc | C++ | ion/profile/calltracemanager.cc | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | ion/profile/calltracemanager.cc | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | ion/profile/calltracemanager.cc | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | /**
Copyright 2016 Google Inc. 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
Unless required by applicable law or agreed to in... | 31.495427 | 80 | 0.665021 | [
"vector"
] |
72d1d9b9139719f86c91aa32d1f3c5c564ff43ec | 11,647 | cpp | C++ | tools/dc/src/fdSimple.cpp | nonlocalmodels/NLMech | 1f7c73438277daf215e38f57aa5bf49e0679987a | [
"BSL-1.0"
] | 7 | 2020-10-25T12:46:40.000Z | 2021-11-22T09:03:56.000Z | tools/dc/src/fdSimple.cpp | nonlocalmodels/NLMech | 1f7c73438277daf215e38f57aa5bf49e0679987a | [
"BSL-1.0"
] | 24 | 2020-09-04T00:16:38.000Z | 2021-07-20T18:44:49.000Z | tools/dc/src/fdSimple.cpp | PeriHPX/PeriHPX | 93b2861574cfe3bb071f27d8805fa79c295716b3 | [
"BSL-1.0"
] | 1 | 2020-10-25T12:53:52.000Z | 2020-10-25T12:53:52.000Z | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2019 Prashant K. Jha
// Copyright (c) 2019 Patrick Diehl
//
// 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)
/////... | 28.3382 | 80 | 0.538078 | [
"mesh",
"vector"
] |
72d5300b2b6a675468261eb53a82a0edef9c05ac | 4,403 | cpp | C++ | DK/DKFramework/DKTriangleMeshProxyShape.cpp | hhg128/DKGL | c61bc6546ac5655da97462cc532a9034ba08516d | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | DK/DKFramework/DKTriangleMeshProxyShape.cpp | hhg128/DKGL | c61bc6546ac5655da97462cc532a9034ba08516d | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | DK/DKFramework/DKTriangleMeshProxyShape.cpp | hhg128/DKGL | c61bc6546ac5655da97462cc532a9034ba08516d | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | //
// File: DKTriangleMeshProxyShape.cpp
// Author: Hongtae Kim (tiff2766@gmail.com)
//
// Copyright (c) 2015 Hongtae Kim. All rights reserved.
//
#include "Private/BulletUtils.h"
#include "DKTriangleMeshProxyShape.h"
using namespace DKFoundation;
using namespace DKFramework;
using namespace DKFramework::Private;
... | 27.01227 | 246 | 0.749035 | [
"shape"
] |
72d7e037a2564149c195d2d3ff91e99dac53c14e | 5,864 | hpp | C++ | tests/PokemonBuilder.hpp | Ghabriel/PokemonCpp | dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e | [
"Apache-2.0"
] | 6 | 2018-08-05T21:45:23.000Z | 2021-10-30T19:48:34.000Z | tests/PokemonBuilder.hpp | Ghabriel/PokemonCpp | dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e | [
"Apache-2.0"
] | null | null | null | tests/PokemonBuilder.hpp | Ghabriel/PokemonCpp | dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e | [
"Apache-2.0"
] | 1 | 2021-11-01T20:15:38.000Z | 2021-11-01T20:15:38.000Z | #ifndef POKEMON_BUILDER_HPP
#define POKEMON_BUILDER_HPP
#include <optional>
#include "battle/data/Pokemon.hpp"
#include "battle/data/PokemonSpeciesData.hpp"
#include "battle/helpers/generate-pokemon.hpp"
#include "engine/resource-system/include.hpp"
class PokemonBuilder {
using ResourceStorage = engine::resources... | 30.541667 | 92 | 0.70498 | [
"vector"
] |
72dddba9411ce7cc2ff2db7475924b5f0eddc83d | 237 | cc | C++ | hw08/mytest.cc | ranstotz/ece_3822 | 0fad15070f9047a9eccdab9178e4a38cfc148987 | [
"MIT"
] | null | null | null | hw08/mytest.cc | ranstotz/ece_3822 | 0fad15070f9047a9eccdab9178e4a38cfc148987 | [
"MIT"
] | null | null | null | hw08/mytest.cc | ranstotz/ece_3822 | 0fad15070f9047a9eccdab9178e4a38cfc148987 | [
"MIT"
] | null | null | null | #include "mytest.h"
int main(int argc, char** argv) {
// Test the class and create test object
//
MyTest test;
// Test the debug method to print
//
test.set_debug(MyTest::FULL);
// Exit gracefully
//
return 0;
}
| 13.941176 | 42 | 0.616034 | [
"object"
] |
72e314ab9b2fcf6cbb56636353401fe9594fc716 | 3,030 | cpp | C++ | RoadLine.cpp | Teeuwis10/SIMULATION | 59e99e4cbf9da8db7e24189519237262c9bb032d | [
"MIT"
] | null | null | null | RoadLine.cpp | Teeuwis10/SIMULATION | 59e99e4cbf9da8db7e24189519237262c9bb032d | [
"MIT"
] | null | null | null | RoadLine.cpp | Teeuwis10/SIMULATION | 59e99e4cbf9da8db7e24189519237262c9bb032d | [
"MIT"
] | null | null | null | #include "RoadLine.h"
#include <vector>
#include <iostream>
#include <cstdlib>
#include "RoadEvent.h"
#include <stdlib.h>
#include <iostream>
#include "Tools.h"
#include <iomanip>
#include <iterator>
#include <Windows.h>
#include "ConsolColor.h"
RoadLine::RoadLine(std::string roadName, std::string lineName,std::vector<... | 27.053571 | 210 | 0.569637 | [
"vector"
] |
72e53c801321e2b71e292d025fb011ecb74ef88d | 9,201 | hpp | C++ | _engine/code/include/global/component/app_interrupter/real.hpp | Shelim/pixie_engine | bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1 | [
"MIT"
] | null | null | null | _engine/code/include/global/component/app_interrupter/real.hpp | Shelim/pixie_engine | bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1 | [
"MIT"
] | null | null | null | _engine/code/include/global/component/app_interrupter/real.hpp | Shelim/pixie_engine | bf1d80f3f03bd3d6890f4dfc63440f7dd0ff34a1 | [
"MIT"
] | null | null | null | #ifndef ENGINE_COMPONENT_APP_INTERRUPTER_REAL_HPP
#define ENGINE_COMPONENT_APP_INTERRUPTER_REAL_HPP
#pragma once
#include "global/component/logger.hpp"
#include "global/component/app_interrupter.hpp"
#include "utility/container/concurrent_queue.hpp"
#include "global/core/process/service.hpp"
#include <map>
#include <m... | 32.62766 | 284 | 0.727638 | [
"vector"
] |
6392b1e5c8e8a3caa711b683c8289bde3fe7f1d3 | 31,409 | hpp | C++ | pdedsl/proto_vector.hpp | cau-se/sprat-pde-dsl | 15621aaf8b3e78f67f39a7c3c5ae30e02ee7c9ee | [
"Apache-2.0"
] | null | null | null | pdedsl/proto_vector.hpp | cau-se/sprat-pde-dsl | 15621aaf8b3e78f67f39a7c3c5ae30e02ee7c9ee | [
"Apache-2.0"
] | null | null | null | pdedsl/proto_vector.hpp | cau-se/sprat-pde-dsl | 15621aaf8b3e78f67f39a7c3c5ae30e02ee7c9ee | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2014-2015 Arne Johanson
*
* 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 a... | 37.660671 | 176 | 0.740648 | [
"vector"
] |
63985ef806df82c86092c040bf19f481716694d2 | 7,008 | cpp | C++ | src/Dispatcher.cpp | ludlyl/MulleMech | c29f146ecb6ec8a400390a2c4a6d8d69e1152d6a | [
"MIT"
] | 6 | 2019-08-14T23:19:23.000Z | 2021-04-21T18:06:12.000Z | src/Dispatcher.cpp | ludlyl/MulleMech | c29f146ecb6ec8a400390a2c4a6d8d69e1152d6a | [
"MIT"
] | null | null | null | src/Dispatcher.cpp | ludlyl/MulleMech | c29f146ecb6ec8a400390a2c4a6d8d69e1152d6a | [
"MIT"
] | 1 | 2021-07-08T21:48:28.000Z | 2021-07-08T21:48:28.000Z | // The MIT License (MIT)
//
// Copyright (c) 2017-2018 Alexander Kurbatov
#include "Dispatcher.h"
#include "Historican.h"
#include "Hub.h"
#include "Reasoner.h"
#include "IntelligenceHolder.h"
#include "core/API.h"
#include "core/Helpers.h"
#include "core/Map.h"
#include "core/Timer.h"
#include "plugins/ChatterBox.h"
... | 33.855072 | 160 | 0.661815 | [
"vector"
] |
639b58f18117ddf9421352ad7c34ecd6f8f501ec | 3,852 | cpp | C++ | Contest/MIPT-2016 Pre-Finals Workshop, Div A, Kent Nikaido Contest 1/solutions/f.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Contest/MIPT-2016 Pre-Finals Workshop, Div A, Kent Nikaido Contest 1/solutions/f.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Contest/MIPT-2016 Pre-Finals Workshop, Div A, Kent Nikaido Contest 1/solutions/f.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include<cstdio>
#include<algorithm>
#include<stack>
#include<queue>
#include<vector>
#include<string>
#include<string.h>
#include<cstdlib>
#include<ctime>
#include<cmath>
#include<complex>
#include<map>
#include<set>
#include<bitset>
#include<iostream>
#include<sstream>
#define fi first
#define se second
#define rep(i... | 26.204082 | 104 | 0.56568 | [
"vector"
] |
639c0e41d5d07aa3513a996bfc97445a455d17e3 | 3,513 | cpp | C++ | Chapter09-comm/05_encoder/src/ofApp.cpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | 6 | 2017-09-27T14:13:44.000Z | 2020-06-24T18:16:22.000Z | Chapter09-comm/05_encoder/src/ofApp.cpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | null | null | null | Chapter09-comm/05_encoder/src/ofApp.cpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | 3 | 2017-10-27T20:33:33.000Z | 2019-09-17T05:42:13.000Z | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetWindowShape(1280, 800);
ofSetWindowTitle("encoder");
ofSetFrameRate(60);
ofBackground(0);
ofEnableSmoothing();
ofSetCircleResolution(30);
serial.setup(0, 9600);
}
//----------... | 24.914894 | 64 | 0.364076 | [
"vector"
] |
63a24dcc2305ac69b321714f22783cb0a635deff | 9,527 | cpp | C++ | core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/ssch.cpp | qiuhere/Bench | 80f15facb81120b754547586cf3a7e5f46ca1551 | [
"Apache-2.0"
] | null | null | null | core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/ssch.cpp | qiuhere/Bench | 80f15facb81120b754547586cf3a7e5f46ca1551 | [
"Apache-2.0"
] | null | null | null | core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/ssch.cpp | qiuhere/Bench | 80f15facb81120b754547586cf3a7e5f46ca1551 | [
"Apache-2.0"
] | null | null | null | /////////////////////////////////////////////////
// Includes
#include "sch.h"
/////////////////////////////////////////////////
// Schedule-Task
TSchTask::TSchTask(const int& _TaskId, const TStrV& _DimObjNmV,
const TSecTm& _StartTm, const TSecTm& _EndTm):
TaskId(_TaskId), DimObjNmV(_DimObjNmV), StartTm(_StartTm), ... | 27.534682 | 75 | 0.654036 | [
"object"
] |
63a2567d1771a3aa8185372f576a761560e81943 | 8,974 | hxx | C++ | main/vcl/source/fontsubset/ttcr.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/vcl/source/fontsubset/ttcr.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/vcl/source/fontsubset/ttcr.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 34.782946 | 111 | 0.577335 | [
"object"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.