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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a49b4ad00d39fadcc9127ff747a740350a8e2ffc | 25,608 | cpp | C++ | middleware/queue/unittest/isolated/source/test_group_database.cpp | tompis/casual | d838716c7052a906af8a19e945a496acdc7899a2 | [
"MIT"
] | null | null | null | middleware/queue/unittest/isolated/source/test_group_database.cpp | tompis/casual | d838716c7052a906af8a19e945a496acdc7899a2 | [
"MIT"
] | null | null | null | middleware/queue/unittest/isolated/source/test_group_database.cpp | tompis/casual | d838716c7052a906af8a19e945a496acdc7899a2 | [
"MIT"
] | null | null | null | //!
//! test_server_database.cpp
//!
//! Created on: Jun 6, 2014
//! Author: Lazan
//!
#include <gtest/gtest.h>
#include "queue/group/database.h"
#include "common/file.h"
#include "common/exception.h"
#include "common/environment.h"
namespace casual
{
namespace queue
{
namespace local
{
... | 33.562254 | 199 | 0.572048 | [
"vector"
] |
a49cd24e2c439b5e7b2215b12fa21a8d570cf6aa | 10,785 | cpp | C++ | Enging/Game/d3dApp.cpp | Inyuan/StrikeEngine | 50e6b52e4bc5e6a7954ef9fd7c1ef691c5eb1d58 | [
"MIT"
] | 1 | 2021-08-14T12:19:17.000Z | 2021-08-14T12:19:17.000Z | Enging/Game/d3dApp.cpp | Inyuan/StrokeEngine | 50e6b52e4bc5e6a7954ef9fd7c1ef691c5eb1d58 | [
"MIT"
] | null | null | null | Enging/Game/d3dApp.cpp | Inyuan/StrokeEngine | 50e6b52e4bc5e6a7954ef9fd7c1ef691c5eb1d58 | [
"MIT"
] | null | null | null | //***************************************************************************************
// d3dApp.cpp by Frank Luna (C) 2015 All Rights Reserved.
//***************************************************************************************
#include "d3dApp.h"
#include <WindowsX.h>
using Microsoft::WRL::ComPtr;
using na... | 25.801435 | 122 | 0.728883 | [
"render",
"vector"
] |
a4a5bb40d2c43176f0f3c4e2231bc3593fff0840 | 10,425 | hh | C++ | firmware/src/MightyBoard/shared/Menu_locales.hh | jake-b/Sailfish-MightyBoardFirmware | 1db488ffe24a34f41e9fbe469210cf5d9fd38c99 | [
"AAL"
] | null | null | null | firmware/src/MightyBoard/shared/Menu_locales.hh | jake-b/Sailfish-MightyBoardFirmware | 1db488ffe24a34f41e9fbe469210cf5d9fd38c99 | [
"AAL"
] | null | null | null | firmware/src/MightyBoard/shared/Menu_locales.hh | jake-b/Sailfish-MightyBoardFirmware | 1db488ffe24a34f41e9fbe469210cf5d9fd38c99 | [
"AAL"
] | null | null | null | #ifndef __MENU__LOCALES__
#define __MENU__LOCALES__
#include <avr/pgmspace.h>
#include <string.h>
#include "Model.hh"
const static PROGMEM prog_uchar ON_CELCIUS_MSG[] = "/ C";
const static PROGMEM prog_uchar CELCIUS_MSG[] = "C ";
const static PROGMEM prog_uchar BLANK_CHAR_MSG[] = " ";
const static PROGMEM pro... | 56.967213 | 2,974 | 0.602974 | [
"model",
"3d"
] |
a4a71b2d7cf17d1216a237f7dd4d1a9c5483f35a | 4,156 | cpp | C++ | src/editor/Widgets/PropertyEditor.cpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | src/editor/Widgets/PropertyEditor.cpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | src/editor/Widgets/PropertyEditor.cpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | #include "PropertyEditor.hpp"
#include "EditorUtils.hpp"
#include "ui_PropertyEditor.h"
#include <QToolButton>
#include <QInputDialog>
#include <QMessageBox>
#include <QMenu>
#include <iostream>
PropertyEditor::PropertyEditor(QWidget *parent)
: QWidget(parent)
, ui(new Ui::PropertyEditor)
, m_menuAdd(new QMenu)
, m_va... | 26.812903 | 104 | 0.731954 | [
"object"
] |
a4ac01d40a4fa65c38f9f97538d345d792fa7179 | 605 | hpp | C++ | include/alg/watershed.hpp | InsaneHamster/ihamster | 0f09e7eec3dff68ba7c2e899b03fd75940d3e242 | [
"MIT"
] | 1 | 2018-01-28T14:10:26.000Z | 2018-01-28T14:10:26.000Z | include/alg/watershed.hpp | InsaneHamster/ihamster | 0f09e7eec3dff68ba7c2e899b03fd75940d3e242 | [
"MIT"
] | null | null | null | include/alg/watershed.hpp | InsaneHamster/ihamster | 0f09e7eec3dff68ba7c2e899b03fd75940d3e242 | [
"MIT"
] | null | null | null | #pragma once
#include <cmn/fwd.hpp>
#include <cmn/point.hpp>
#include <alg/seg_object.hpp>
namespace alg
{
//on input image in format rgba8
//on output: binary masks of found images. ready to pass to pattern matching
//on ouput optionally: colored image to output for debug or other purposes.
void watershed( std::ve... | 28.809524 | 113 | 0.733884 | [
"vector"
] |
8a54d60b53db9f12f1023420928cb7348f211e21 | 8,835 | cpp | C++ | ouzel/graphics/Texture.cpp | keima97/ouzel | e6673e678b4739235371a15ae3863942b692c5fb | [
"BSD-2-Clause"
] | null | null | null | ouzel/graphics/Texture.cpp | keima97/ouzel | e6673e678b4739235371a15ae3863942b692c5fb | [
"BSD-2-Clause"
] | null | null | null | ouzel/graphics/Texture.cpp | keima97/ouzel | e6673e678b4739235371a15ae3863942b692c5fb | [
"BSD-2-Clause"
] | null | null | null | // Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <algorithm>
#include "Texture.h"
#include "Renderer.h"
#include "Image.h"
#include "core/Engine.h"
#include "utils/Utils.h"
#include "math/MathUtils.h"
namespace ouzel
{
namespace graphics
{
Texture::Texture()
... | 31.109155 | 140 | 0.41811 | [
"vector"
] |
8a58646d747a9b7be54c5bf0202ca082cf11372d | 5,482 | cpp | C++ | source/Kai/Array.cpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | 4 | 2016-07-19T08:53:09.000Z | 2021-08-03T10:06:41.000Z | source/Kai/Array.cpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | null | null | null | source/Kai/Array.cpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | null | null | null | //
// Array.cpp
// This file is part of the "Kai" project, and is released under the MIT license.
//
// Created by Samuel Williams on 21/09/10.
// Copyright 2010 Orion Transfer Ltd. All rights reserved.
//
//
#include "Array.hpp"
#include "Cell.hpp"
#include "Frame.hpp"
#include "Number.hpp"
#include "Table.hpp"
#... | 21.084615 | 107 | 0.615651 | [
"object"
] |
8a5cd3a00bf00ecb89688072eefc427ad4d627d2 | 20,073 | cpp | C++ | GAPortfolioSelection_PC/GAPortfolioSelection_PC/GAPortfolioSelection_PC.cpp | JinyuShi/Select-and-Optimize-a-S-P-500-Investment-Portfolio-by-Genetic-Algorithm | ea33c28511e0e2f32889e4281308d8e105621d5b | [
"MIT"
] | null | null | null | GAPortfolioSelection_PC/GAPortfolioSelection_PC/GAPortfolioSelection_PC.cpp | JinyuShi/Select-and-Optimize-a-S-P-500-Investment-Portfolio-by-Genetic-Algorithm | ea33c28511e0e2f32889e4281308d8e105621d5b | [
"MIT"
] | null | null | null | GAPortfolioSelection_PC/GAPortfolioSelection_PC/GAPortfolioSelection_PC.cpp | JinyuShi/Select-and-Optimize-a-S-P-500-Investment-Portfolio-by-Genetic-Algorithm | ea33c28511e0e2f32889e4281308d8e105621d5b | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <map>
#include <fstream>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include "curl_easy.h"
#include "curl_form.h"
#include "curl_ios.h"
#include "curl_exception.h"
#include "json/json.h"
#include <sqlite3.h>
#include "MarketDataLogic.h"
#include "Database... | 39.358824 | 522 | 0.641957 | [
"vector"
] |
8a63d526e35a1cfe6337310de58dd5194c07ef37 | 2,627 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/webkit/ConsoleMessage.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/webkit/ConsoleMessage.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/webkit/ConsoleMessage.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... | 25.259615 | 75 | 0.629616 | [
"object"
] |
8a68657b5b44c9bdb78c687ed0e5da53e3d2486d | 6,160 | cpp | C++ | Floating Pixels Esp32Pixel/src/main.cpp | Mechatronikwelt/Swimming-Pixels | 29745a4aecc5fb29e80226956ffc704837cedd17 | [
"Unlicense"
] | null | null | null | Floating Pixels Esp32Pixel/src/main.cpp | Mechatronikwelt/Swimming-Pixels | 29745a4aecc5fb29e80226956ffc704837cedd17 | [
"Unlicense"
] | null | null | null | Floating Pixels Esp32Pixel/src/main.cpp | Mechatronikwelt/Swimming-Pixels | 29745a4aecc5fb29e80226956ffc704837cedd17 | [
"Unlicense"
] | null | null | null | //-----------------------------------------------
// Program: Swimming Pixel Slave (ESP32)
// File: Main
// Karlsruhe University of Applied Science
// Authors: Patrick Rodinger, Lukas Reimold
// Current Status: Release (22.04.2020)
//------------------------------------------------
#include <WiFi.h>
#include ... | 30.8 | 137 | 0.578084 | [
"object"
] |
8a725bacf37d30bc869ab6c504eae0e596804bbe | 16,837 | cpp | C++ | src/Layers/xrRender/ModelPool.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 2 | 2015-02-23T10:43:02.000Z | 2015-06-11T14:45:08.000Z | src/Layers/xrRender/ModelPool.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 17 | 2022-01-25T08:58:23.000Z | 2022-03-28T17:18:28.000Z | src/Layers/xrRender/ModelPool.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 1 | 2015-06-05T20:04:00.000Z | 2015-06-05T20:04:00.000Z | #include "stdafx.h"
#include "ModelPool.h"
#ifndef _EDITOR
#include "xrEngine/IGame_Persistent.h"
#include "xrCore/FMesh.hpp"
#include "FHierrarhyVisual.h"
#include "SkeletonAnimated.h"
#include "FVisual.h"
#include "FProgressive.h"
#include "FSkinned.h"
#include "FLOD.h"
#include "FTreeVisual.h"
#include "ParticleGr... | 27.025682 | 109 | 0.556572 | [
"render",
"object",
"model",
"transform",
"3d"
] |
8a7e50ace56c61f58d890ee8519812abb57f0c1a | 1,827 | cxx | C++ | ants/lib/LOCAL_SmoothImage.cxx | xemio/ANTsPy | ef610318e217bb04d3850d480c2e51df695d56c0 | [
"Apache-2.0"
] | 338 | 2017-09-01T06:47:54.000Z | 2022-03-31T12:11:46.000Z | ants/lib/LOCAL_SmoothImage.cxx | xemio/ANTsPy | ef610318e217bb04d3850d480c2e51df695d56c0 | [
"Apache-2.0"
] | 306 | 2017-08-30T20:05:07.000Z | 2022-03-31T16:20:44.000Z | ants/lib/LOCAL_SmoothImage.cxx | xemio/ANTsPy | ef610318e217bb04d3850d480c2e51df695d56c0 | [
"Apache-2.0"
] | 115 | 2017-09-08T11:53:17.000Z | 2022-03-27T05:53:39.000Z |
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <exception>
#include <algorithm>
#include <vector>
#include "itkDiscreteGaussianImageFilter.h"
#include "LOCAL_antsImage.h"
namespace py = pybind11;
template <typename ImageType>
py::capsule smoothImage( py::capsule ants_inimg,
... | 28.107692 | 100 | 0.679803 | [
"vector"
] |
8a7e7c4968fd3bd9cfe57cbdd809dad9f8739da8 | 940 | hpp | C++ | Server/include/OperationStatusHandlers/TCPOperationStatusHandler.hpp | arokasprz100/Proxy_server | 5393613dd2b744814d1151d2aee93767d67646bd | [
"MIT"
] | 3 | 2020-05-18T02:05:34.000Z | 2020-05-18T04:42:46.000Z | Server/include/OperationStatusHandlers/TCPOperationStatusHandler.hpp | arokasprz100/Proxy_server | 5393613dd2b744814d1151d2aee93767d67646bd | [
"MIT"
] | null | null | null | Server/include/OperationStatusHandlers/TCPOperationStatusHandler.hpp | arokasprz100/Proxy_server | 5393613dd2b744814d1151d2aee93767d67646bd | [
"MIT"
] | 1 | 2019-06-08T17:07:58.000Z | 2019-06-08T17:07:58.000Z | /**
* @file TCPOperationStatusHandler.hpp
* @brief This file contains the definition of the plain HTTP connection to proxy handler.
*/
#ifndef TCPOperationStatusHandler_hpp
#define TCPOperationStatusHandler_hpp
#include "../Client.hpp"
/**
* @class TCPOperationStatusHandler
*/
class TCPOperationStatusHa... | 33.571429 | 164 | 0.755319 | [
"object",
"vector"
] |
8a7eec3e9fa06cc67cea3de4a59ac26106bc4001 | 1,019 | cpp | C++ | 1062_Talent_and_Virtue/1062_Talent_and_Virtue/1062_Talent_and_Virtue.cpp | Iluvata/PAT-Advanced-Level-Practice | 08a02e82eef30c81ed9ef8e4f327f7b2a9535582 | [
"MIT"
] | 2 | 2020-10-17T12:26:42.000Z | 2021-11-12T08:47:10.000Z | 1062_Talent_and_Virtue/1062_Talent_and_Virtue/1062_Talent_and_Virtue.cpp | Iluvata/PAT-Advanced-Level-Practice | 08a02e82eef30c81ed9ef8e4f327f7b2a9535582 | [
"MIT"
] | 1 | 2020-10-19T11:31:55.000Z | 2020-10-19T11:31:55.000Z | 1062_Talent_and_Virtue/1062_Talent_and_Virtue/1062_Talent_and_Virtue.cpp | Iluvata/PAT-Advanced-Level-Practice | 08a02e82eef30c81ed9ef8e4f327f7b2a9535582 | [
"MIT"
] | 1 | 2020-10-18T01:08:34.000Z | 2020-10-18T01:08:34.000Z | // 1062_Talent_and_Virtue.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include "pch.h"
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int n, l, h;
struct Grade {
string id;
int r;
int v;
int t;
};
bool cmp(Grade &g1, Grade &g2) {
if (g1.r == g2.r) {
if (g1.v +... | 16.174603 | 69 | 0.473013 | [
"vector"
] |
8a839a7c99d8dbfa5e778fa77572e63a8a0f3087 | 1,531 | cpp | C++ | Graph/Network Flow/Variants/Angry Programmer.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | 3 | 2017-08-12T06:09:39.000Z | 2018-09-16T02:31:27.000Z | Graph/Network Flow/Variants/Angry Programmer.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | null | null | null | Graph/Network Flow/Variants/Angry Programmer.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector <int> vi;
#define inf (int)1e9
int n, m, f, mf, s, t, res[105][105];
vi p;
void augment(int v, int minEdge){
if(v == s) f = minEdge;
else if(p[v] != -1){
augment(p[v], min(minEdge, res[p[v]][v]));
res[p[v]][v] -... | 24.301587 | 54 | 0.397126 | [
"vector"
] |
8a882e04458b98652045e4d974a2c8a44d593933 | 1,313 | hpp | C++ | src/modules/timesync/server.hpp | DerangedMonkeyNinja/openperf | cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16 | [
"Apache-2.0"
] | 20 | 2019-12-04T01:28:52.000Z | 2022-03-17T14:09:34.000Z | src/modules/timesync/server.hpp | DerangedMonkeyNinja/openperf | cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16 | [
"Apache-2.0"
] | 115 | 2020-02-04T21:29:54.000Z | 2022-02-17T13:33:51.000Z | src/modules/timesync/server.hpp | DerangedMonkeyNinja/openperf | cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16 | [
"Apache-2.0"
] | 16 | 2019-12-03T16:41:18.000Z | 2021-11-06T04:44:11.000Z | #ifndef _OP_TIMESYNC_SERVER_HPP_
#define _OP_TIMESYNC_SERVER_HPP_
#include <memory>
#include <variant>
#include "core/op_core.h"
#include "timesync/api.hpp"
#include "timesync/clock.hpp"
#include "timesync/source_ntp.hpp"
#include "timesync/source_system.hpp"
namespace openperf::timesync::api {
class server
{
publi... | 27.93617 | 70 | 0.722011 | [
"vector"
] |
8a889d8b2085e7eb0ba7faabff9d72e76fcc6cdc | 938 | cpp | C++ | Algorithms/1958.Check_if_Move_is_Legal.cpp | metehkaya/LeetCode | 52f4a1497758c6f996d515ced151e8783ae4d4d2 | [
"MIT"
] | 2 | 2020-07-20T06:40:22.000Z | 2021-11-20T01:23:26.000Z | Problems/LeetCode/Problems/1958.Check_if_Move_is_Legal.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | Problems/LeetCode/Problems/1958.Check_if_Move_is_Legal.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<char>> ar;
bool f(int r , int c , int dr , int dc , char color , char other) {
bool var = false;
r += dr;
c += dc;
while(r >= 0 && r < 8 && c >= 0 && c < 8 && ar[r][c] == other)
var = true , r += dr , c += dc;
if(!var)
... | 36.076923 | 116 | 0.444563 | [
"vector"
] |
8a8ba32ff974b4eafcd6182c449f2fd77c0d8b0d | 4,438 | cpp | C++ | benchmark/benchmark_tf.cpp | xuqiang/cuBERT | 8255916d4ca5d11d41d7cac46f7642a582e14111 | [
"MIT"
] | 486 | 2019-03-13T05:31:43.000Z | 2022-03-31T05:16:45.000Z | benchmark/benchmark_tf.cpp | copperdong/cuBERT | 4ed413dc20a9e22be30f9fa2c4b5e5f227be912a | [
"MIT"
] | 44 | 2019-03-28T04:54:53.000Z | 2021-04-09T01:30:12.000Z | benchmark/benchmark_tf.cpp | copperdong/cuBERT | 4ed413dc20a9e22be30f9fa2c4b5e5f227be912a | [
"MIT"
] | 82 | 2019-03-14T01:53:57.000Z | 2022-03-24T14:24:30.000Z | #include <random>
#include <chrono>
#include <iostream>
#include <cmath>
#include <fstream>
#include "tensorflow/c/c_api.h"
const int max_batch_size = 128;
const int batch_size = 128;
const int seq_length = 32;
const int hidden_size = 768;
// define model output
const int output_size = batch_size * hidden_size;
cons... | 34.403101 | 112 | 0.669671 | [
"model"
] |
8a923b5c74dd9359b33f9347fa7c06d4c79d0f77 | 626 | cpp | C++ | LuaKitProject/src/Projects/jni/java_weak_ref.cpp | andrewvmail/luakit | edbadd7824bd17b6a430d8323f255d404498c27a | [
"MIT"
] | 321 | 2018-06-17T03:52:46.000Z | 2022-03-18T02:34:52.000Z | LuaKitProject/src/Projects/jni/java_weak_ref.cpp | andrewvmail/luakit | edbadd7824bd17b6a430d8323f255d404498c27a | [
"MIT"
] | 19 | 2018-06-26T10:37:45.000Z | 2020-12-09T03:16:45.000Z | LuaKitProject/src/Projects/jni/java_weak_ref.cpp | andrewvmail/luakit | edbadd7824bd17b6a430d8323f255d404498c27a | [
"MIT"
] | 58 | 2018-06-21T10:43:03.000Z | 2022-03-29T12:42:11.000Z | #include "java_weak_ref.h"
#include "JniEnvWrapper.h"
#include "base/logging.h"
java_weak_ref::java_weak_ref(jobject obj) : weak_ref_(NULL) {
JniEnvWrapper env;
if (env->IsSameObject(obj, NULL)) {
LOG(INFO) << "java object is null";
} else {
weak_ref_ = env->NewWeakGlobalRef(obj)... | 25.04 | 62 | 0.592652 | [
"object"
] |
8a9b62f65f54a3e11aae943cd7a5425e85f79fb5 | 7,276 | cpp | C++ | src/qt/btcu/leasingmodel.cpp | newcodepusher/bu | 309652ccff4992fd8265900cde6d3aaeb9c86dad | [
"MIT"
] | null | null | null | src/qt/btcu/leasingmodel.cpp | newcodepusher/bu | 309652ccff4992fd8265900cde6d3aaeb9c86dad | [
"MIT"
] | null | null | null | src/qt/btcu/leasingmodel.cpp | newcodepusher/bu | 309652ccff4992fd8265900cde6d3aaeb9c86dad | [
"MIT"
] | null | null | null | // Copyright (c) 2020 The BTCU developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/btcu/leasingmodel.h"
#include "uint256.h"
#include "bitcoinunits.h"
#include "guiutil.h"
#include "addressbook.h"
#include "a... | 31.227468 | 132 | 0.634689 | [
"vector"
] |
8aa32f671c687dbfe71ae298b49e97e24769ece7 | 562 | cpp | C++ | pixie/2dEngine/TextureAnimator.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | pixie/2dEngine/TextureAnimator.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | pixie/2dEngine/TextureAnimator.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
void cTextureAnimator::Activated(cPixieObject &Object)
{
}
cPixieObjectAnimator::eAnimateResult cTextureAnimator::Animate(cPixieObject &Object)
{
auto Elapsed=gFrameTime-GetStartTime();
auto Frame=(Elapsed*mFramesPerSec)/1000;
if(Frame!=mPreviousFrame)
{
mPreviousFrame=Frame;
Object.SetStr... | 28.1 | 123 | 0.791815 | [
"object"
] |
8aa4d51cc1898bccdcd589240a947ad875220678 | 14,024 | cc | C++ | auth/src/auth.cc | gwaldvogel/firebase-cpp-sdk | ae8c32e63165de9ff13f74694e8c9104a36915ee | [
"Apache-2.0"
] | 193 | 2019-03-18T16:30:43.000Z | 2022-03-30T17:39:32.000Z | auth/src/auth.cc | gwaldvogel/firebase-cpp-sdk | ae8c32e63165de9ff13f74694e8c9104a36915ee | [
"Apache-2.0"
] | 647 | 2019-03-18T20:50:41.000Z | 2022-03-31T18:32:33.000Z | auth/src/auth.cc | gwaldvogel/firebase-cpp-sdk | ae8c32e63165de9ff13f74694e8c9104a36915ee | [
"Apache-2.0"
] | 86 | 2019-04-21T09:40:38.000Z | 2022-03-26T20:48:37.000Z | /*
* Copyright 2016 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 37.597855 | 80 | 0.647675 | [
"object",
"vector"
] |
8ab16ef7ea2688cf39c2e4b228a326a7784d48a7 | 11,902 | cpp | C++ | tests/doctests/token_exchange_action_tests.cpp | JackDiSalvatore/eosio.contracts-token-exchange | 5b78a49629d0fd2bf94d4f5cebffcd596b70c174 | [
"MIT"
] | 1 | 2022-01-07T09:51:17.000Z | 2022-01-07T09:51:17.000Z | tests/doctests/token_exchange_action_tests.cpp | JackDiSalvatore/eosio.contracts-token-exchange | 5b78a49629d0fd2bf94d4f5cebffcd596b70c174 | [
"MIT"
] | null | null | null | tests/doctests/token_exchange_action_tests.cpp | JackDiSalvatore/eosio.contracts-token-exchange | 5b78a49629d0fd2bf94d4f5cebffcd596b70c174 | [
"MIT"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
#include <eosio/testing/tester.hpp>
#include <eosio/chain/abi_serializer.hpp>
#include <eosio/chain/resource_limits.hpp>
#include "../contracts.hpp"
#include "../eosio.system_tester.hpp"
using namespace eosio::chain;
using namespace eosio::testing;
usin... | 39.151316 | 153 | 0.599143 | [
"vector",
"transform"
] |
8ab53800308e0f27af83fddd98b1c0281b053803 | 2,210 | cpp | C++ | days/Day10.cpp | willkill07/AdventOfCode2021 | 06e62cd8a8c7f1e99374075b7302f6dcfb770bb0 | [
"Apache-2.0"
] | 12 | 2021-12-02T01:44:53.000Z | 2022-02-02T17:22:23.000Z | days/Day10.cpp | willkill07/AdventOfCode2021 | 06e62cd8a8c7f1e99374075b7302f6dcfb770bb0 | [
"Apache-2.0"
] | null | null | null | days/Day10.cpp | willkill07/AdventOfCode2021 | 06e62cd8a8c7f1e99374075b7302f6dcfb770bb0 | [
"Apache-2.0"
] | 1 | 2021-12-03T04:25:32.000Z | 2021-12-03T04:25:32.000Z | #include <algorithm>
#include <bitset>
#include <cctype>
#include <limits>
#include <memory>
#include <numeric>
#include <ranges>
#include <vector>
#include <scn/all.h>
#include "AdventDay.hpp"
#include "Day10.hpp"
namespace detail {
using namespace day10;
using Day = AdventDay<id, parsed, result1, result2>;
}
u... | 23.763441 | 86 | 0.604977 | [
"vector"
] |
8ac3a5d7adb76be838a50331d16278803e571391 | 30,355 | cpp | C++ | inetcore/setup/ieak5/brandll/rsopadm.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/setup/ieak5/brandll/rsopadm.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/setup/ieak5/brandll/rsopadm.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "precomp.h"
// The following bug may be due to having CHICAGO_PRODUCT set in sources.
// This file and all rsop??.cpp files need to have WINVER defined at at least 500
// BUGBUG: (andrewgu) no need to say how bad this is!
#undef WINVER
#define WINVER 0x0501
#include <userenv.h>
#include "RSoP.h... | 29.442289 | 126 | 0.542579 | [
"object"
] |
e9d2dc79ad5ddc8bcda25ec30bb9bd53d474c6e3 | 440 | cpp | C++ | cpp/tests/GasStationTest.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | 4 | 2018-03-05T02:27:16.000Z | 2021-03-15T14:19:44.000Z | cpp/tests/GasStationTest.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | null | null | null | cpp/tests/GasStationTest.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | 2 | 2018-07-22T10:32:10.000Z | 2018-10-20T03:14:28.000Z | #include "GasStation.h"
#include "gtest/gtest.h"
#include <string>
using namespace lcpp;
TEST(GasStation, Solution134_1) {
std::vector<int> Gas1{1, 2, 3, 4, 5}, Cost1{3, 4, 5, 1, 2};
const int Expected1 = 3;
EXPECT_EQ(Expected1, Solution134_1().canCompleteCircuit(Gas1, Cost1));
std::vector<int> Gas2{2, 3, 4}... | 29.333333 | 72 | 0.690909 | [
"vector"
] |
e9d37bc7302842732034b95a5f53f5c294177dc8 | 5,423 | cc | C++ | src/RpcChannel.cc | sroycode/zqrpc | aa2eee8b794f71998e0861f40f0a4e9895d2c527 | [
"MIT"
] | 6 | 2015-01-08T17:09:43.000Z | 2022-01-28T01:45:57.000Z | src/RpcChannel.cc | sroycode/zqrpc | aa2eee8b794f71998e0861f40f0a4e9895d2c527 | [
"MIT"
] | null | null | null | src/RpcChannel.cc | sroycode/zqrpc | aa2eee8b794f71998e0861f40f0a4e9895d2c527 | [
"MIT"
] | 3 | 2016-03-04T10:54:42.000Z | 2022-01-28T01:45:59.000Z | /**
* @project zqrpc
* @file src/RpcChannel.cc
* @author S Roychowdhury <sroycode @ gmail DOT com>
* @version 0.1
*
* @section LICENSE
*
* Copyright (c) 2014 S Roychowdhury
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files ... | 33.68323 | 97 | 0.699797 | [
"vector"
] |
e9d58e00c588bb88e92550eac1e19c8c268eec30 | 1,642 | cpp | C++ | assignment2.cpp | krisf01/Computer-Systems-and-C-Programming | e6c3f464bcd12e06c86b57ce7bc12aacc03e423a | [
"MIT"
] | null | null | null | assignment2.cpp | krisf01/Computer-Systems-and-C-Programming | e6c3f464bcd12e06c86b57ce7bc12aacc03e423a | [
"MIT"
] | null | null | null | assignment2.cpp | krisf01/Computer-Systems-and-C-Programming | e6c3f464bcd12e06c86b57ce7bc12aacc03e423a | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#define SIZE 100
using namespace std;
class Array
{
//declare pointer to array
int *arr;
int size;
public:
Array();
int setVale(int index,int val);
int operator[](int index) const;
int getCapacity();
//destroctor
~Arra... | 17.655914 | 67 | 0.504263 | [
"object"
] |
e9d7fd68ca2f30dd3f90fe9aea47267867420672 | 1,974 | cpp | C++ | test/unit/module/real/combinatorial/fibonacci.cpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 340 | 2020-09-16T21:12:48.000Z | 2022-03-28T15:40:33.000Z | test/unit/module/real/combinatorial/fibonacci.cpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 383 | 2020-09-17T06:56:35.000Z | 2022-03-13T15:58:53.000Z | test/unit/module/real/combinatorial/fibonacci.cpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 28 | 2021-02-27T23:11:23.000Z | 2022-03-25T12:31:29.000Z | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 38.705882 | 100 | 0.457953 | [
"vector"
] |
e9f61fa589947d2cbecb494d0ed1b64a4030632b | 20,209 | cpp | C++ | mwa29_a9/shapes_a6.cpp | jetblack87/cs537 | 8ed7b4ef8247b025d025c911cef0fb6df5b1fcd1 | [
"Apache-2.0"
] | null | null | null | mwa29_a9/shapes_a6.cpp | jetblack87/cs537 | 8ed7b4ef8247b025d025c911cef0fb6df5b1fcd1 | [
"Apache-2.0"
] | null | null | null | mwa29_a9/shapes_a6.cpp | jetblack87/cs537 | 8ed7b4ef8247b025d025c911cef0fb6df5b1fcd1 | [
"Apache-2.0"
] | null | null | null | #include "Angel.h"
#include "mat.h"
#include "vec.h"
#include <stdio.h>
#include <string>
#include <vector>
typedef vec3 color3;
typedef vec4 color4;
typedef vec4 point4;
//--------------------------------------------------------------------------
//---- CONSTANTS -----------------------------------------------... | 28.911302 | 123 | 0.672473 | [
"object",
"vector"
] |
e9f7851c5a0e123b4664bce10b37a1c870bef314 | 685 | cpp | C++ | Online Judges/SPOJ/TOPOSORT/3500621_AC_80ms_7270kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | 4 | 2017-02-20T17:41:14.000Z | 2019-07-15T14:15:34.000Z | Online Judges/SPOJ/TOPOSORT/3500621_AC_80ms_7270kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | Online Judges/SPOJ/TOPOSORT/3500621_AC_80ms_7270kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n,p,ok[1000001],x,y;
vector<int>as,sv[11010];
int main()
{
//cin>>n>>p;
scanf("%d%d",&n,&p);
for(int i=0;i<p;i++)
{
//cin>>x>>y;
scanf("%d%d",&x,&y);
sv[x].push_back(y);
ok[y]++;
}
priority_queue<int>q;
for(int i=1;i<=n;i++)
{
if(ok[i]==0) q.push(-1*i)... | 15.568182 | 45 | 0.486131 | [
"vector"
] |
e9fa594ceb5b4a46201ebcfac63a907e6989e98a | 14,442 | cpp | C++ | example/ch9_backgroundAVG.cpp | gdijaejung/Learning-OpenCV | 20942678b467e4ce6053ed2f9c59f852affa4a24 | [
"MIT"
] | null | null | null | example/ch9_backgroundAVG.cpp | gdijaejung/Learning-OpenCV | 20942678b467e4ce6053ed2f9c59f852affa4a24 | [
"MIT"
] | null | null | null | example/ch9_backgroundAVG.cpp | gdijaejung/Learning-OpenCV | 20942678b467e4ce6053ed2f9c59f852affa4a24 | [
"MIT"
] | null | null | null | // Background average sample code done with averages and done with codebooks
//
// Files are ch9_backgroundAVG.cpp
// ch9_AvgBackground.cpp and .h
// cv_yuv_codebook.cpp and .h
//
// As of the writing of this book, the cv_yuv_codebook files are going to be a permanent part of
// OpenCV (with i... | 32.093333 | 111 | 0.564949 | [
"vector",
"model"
] |
e9fc5f9ea1facf179262a84d31a286c3601b285c | 5,816 | cpp | C++ | librtt/Display/Rtt_ContainerObject.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 1,968 | 2018-12-30T21:14:22.000Z | 2022-03-31T23:48:16.000Z | librtt/Display/Rtt_ContainerObject.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 303 | 2019-01-02T19:36:43.000Z | 2022-03-31T23:52:45.000Z | librtt/Display/Rtt_ContainerObject.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 254 | 2019-01-02T19:05:52.000Z | 2022-03-30T06:32:28.000Z | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: support@coronalabs.com
//
////////////////////////... | 27.563981 | 112 | 0.65784 | [
"transform"
] |
180116dd344de4a6a0ae8e3aa71f72edd3ad45ae | 11,063 | cpp | C++ | Applications/C3Edit/C3Edit.cpp | keelanstuart/Celerity | 57ad7ccd2fbb661868680df43cae2d76ec80104b | [
"MIT"
] | 1 | 2022-02-11T03:06:33.000Z | 2022-02-11T03:06:33.000Z | Applications/C3Edit/C3Edit.cpp | keelanstuart/Celerity | 57ad7ccd2fbb661868680df43cae2d76ec80104b | [
"MIT"
] | null | null | null | Applications/C3Edit/C3Edit.cpp | keelanstuart/Celerity | 57ad7ccd2fbb661868680df43cae2d76ec80104b | [
"MIT"
] | null | null | null |
// C3Edit.cpp : Defines the class behaviors for the application.
//
#include "pch.h"
#include "framework.h"
#include "afxwinappex.h"
#include "afxdialogex.h"
#include "C3Edit.h"
#include "C3EditFrame.h"
#include "C3EditDoc.h"
#include "C3EditView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
//... | 25.848131 | 122 | 0.683992 | [
"object",
"transform"
] |
1801a31915607f9d35925778e32e40ed033b3cf5 | 9,900 | cpp | C++ | src/fnt/text_shaper.cpp | cpp-niel/cdv | 9aa310c6fe66dbc7f224ace3a3d4212ca6f0ed4a | [
"MIT"
] | 1 | 2020-08-09T01:05:30.000Z | 2020-08-09T01:05:30.000Z | src/fnt/text_shaper.cpp | cpp-niel/cdv | 9aa310c6fe66dbc7f224ace3a3d4212ca6f0ed4a | [
"MIT"
] | null | null | null | src/fnt/text_shaper.cpp | cpp-niel/cdv | 9aa310c6fe66dbc7f224ace3a3d4212ca6f0ed4a | [
"MIT"
] | null | null | null | #include <cdv/fnt/text_shaper.hpp>
#include <fnt/freetype_error.hpp>
#include <fnt/mfl_font_face.hpp>
#include <fontconfig/fontconfig.h>
#include <harfbuzz/hb-ft.h>
#include <mfl/layout.hpp>
#include <range/v3/algorithm/count.hpp>
namespace cdv::fnt
{
namespace
{
using namespace units_literals;
... | 46.261682 | 120 | 0.587778 | [
"shape",
"vector"
] |
180845c99cb15ce97a7257581cbb5782486a58d8 | 14,377 | cpp | C++ | tests/src/array.cpp | dhurum/sjparser | 1881c050e8c6752ecaf2c41d5115ffb489efc711 | [
"MIT"
] | 1 | 2021-04-12T05:22:35.000Z | 2021-04-12T05:22:35.000Z | tests/src/array.cpp | dhurum/sjparser | 1881c050e8c6752ecaf2c41d5115ffb489efc711 | [
"MIT"
] | null | null | null | tests/src/array.cpp | dhurum/sjparser | 1881c050e8c6752ecaf2c41d5115ffb489efc711 | [
"MIT"
] | null | null | null | /*******************************************************************************
Copyright (c) 2016-2017 Denis Tikhomirov <dvtikhomirov@gmail.com>
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 ... | 25.267135 | 80 | 0.625861 | [
"object",
"vector"
] |
1815ccc5becb0622a547a0d6e320b47a2d1752f3 | 5,212 | cpp | C++ | src/mrp/snmp-engine/main.cpp | fredsongyu/mmitss-az | 62fb59a9e5a19f62a1096971f3cc0ecc04599106 | [
"Apache-2.0"
] | 10 | 2018-12-05T14:48:59.000Z | 2022-02-17T02:10:51.000Z | src/mrp/snmp-engine/main.cpp | fredsongyu/mmitss-az | 62fb59a9e5a19f62a1096971f3cc0ecc04599106 | [
"Apache-2.0"
] | null | null | null | src/mrp/snmp-engine/main.cpp | fredsongyu/mmitss-az | 62fb59a9e5a19f62a1096971f3cc0ecc04599106 | [
"Apache-2.0"
] | 8 | 2018-11-16T06:38:25.000Z | 2022-03-09T18:22:59.000Z | /***************************************************************************************
© 2019 Arizona Board of Regents on behalf of the University of Arizona with rights
granted for USDOT OSADP distribution with the Apache 2.0 open source license.
************************************************************... | 40.403101 | 133 | 0.642172 | [
"object"
] |
1817753059981c91c2c86ec848e9a54dee9c91aa | 20,533 | hpp | C++ | oss_src/graphlab/engine/warp_graph_broadcast.hpp | parquette/ParFrame | 0522aa6afdf529b3e91505b70e918f1500aae886 | [
"BSD-3-Clause"
] | null | null | null | oss_src/graphlab/engine/warp_graph_broadcast.hpp | parquette/ParFrame | 0522aa6afdf529b3e91505b70e918f1500aae886 | [
"BSD-3-Clause"
] | null | null | null | oss_src/graphlab/engine/warp_graph_broadcast.hpp | parquette/ParFrame | 0522aa6afdf529b3e91505b70e918f1500aae886 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) 2015 Dato, Inc.
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
/*
* Copyright (c) 2009 Carnegie Mellon University.
* All rights reserved.
*
* Licensed under the Apache License, Vers... | 43.046122 | 146 | 0.594555 | [
"object",
"vector",
"transform"
] |
1817ff49429b18e409301c18eabfb5e366c5331e | 439 | cpp | C++ | TouchMindLib/touchmind/prop/LineStyle.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | 15 | 2015-07-10T05:03:27.000Z | 2021-06-08T08:24:46.000Z | TouchMindLib/touchmind/prop/LineStyle.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | null | null | null | TouchMindLib/touchmind/prop/LineStyle.cpp | yohei-yoshihara/TouchMind | 3ad878aacde7322ae7c4f94d462e0a2d4a24d3fa | [
"MIT"
] | 10 | 2015-01-04T01:23:56.000Z | 2020-12-29T11:35:47.000Z | #include "stdafx.h"
#include "touchmind/prop/LineStyle.h"
std::wostream &touchmind::operator<<(std::wostream &os, const touchmind::LINE_STYLE &lineStyle) {
switch (lineStyle) {
case LINE_STYLE_UNSPECIFIED:
os << L"UNSPECIFIED";
break;
case LINE_STYLE_SOLID:
os << L"SOLID";
break;
case LINE_STYL... | 20.904762 | 97 | 0.658314 | [
"solid"
] |
181aae6aac16844c9fd9a807cdc8a56fc9967527 | 2,300 | cpp | C++ | Map.cpp | whiskermrr/PathFinder | 8f2fcb42c0b9fcd783b8fdefb85dc51610f2934e | [
"MIT"
] | null | null | null | Map.cpp | whiskermrr/PathFinder | 8f2fcb42c0b9fcd783b8fdefb85dc51610f2934e | [
"MIT"
] | null | null | null | Map.cpp | whiskermrr/PathFinder | 8f2fcb42c0b9fcd783b8fdefb85dc51610f2934e | [
"MIT"
] | null | null | null | #include "Map.h"
Map::Map(std::string fileName)
{
std::fstream file("resources/" + fileName);
this->width = 0;
this->height = 0;
this->startNode = nullptr;
this->endNode = nullptr;
if (file.is_open())
{
char x;
while (!file.eof())
{
file >> x;
if (isdigit(x))
{
Vector2int coords;
coo... | 16.083916 | 85 | 0.560435 | [
"render",
"vector"
] |
182a3e186e744c6d9936086de2343d782bbd3230 | 813 | hpp | C++ | Typon/src/quote_loader.hpp | ihsuy/Typon | 55aa2d82ed3aecf10b88891e5b962daf5944b6f3 | [
"MIT"
] | 65 | 2019-03-06T15:47:27.000Z | 2022-03-05T09:14:29.000Z | Typon/src/quote_loader.hpp | ihsuy/Typon | 55aa2d82ed3aecf10b88891e5b962daf5944b6f3 | [
"MIT"
] | null | null | null | Typon/src/quote_loader.hpp | ihsuy/Typon | 55aa2d82ed3aecf10b88891e5b962daf5944b6f3 | [
"MIT"
] | 5 | 2019-04-11T01:15:04.000Z | 2021-11-21T18:57:47.000Z |
#ifndef quote_loader_hpp
#define quote_loader_hpp
#include "tools.hpp"
#include <fstream>
#include <sstream>
#include <vector>
using namespace std;
struct quote_loader {
const string quote_relative_path = "/quotes/";
string quote_dir;
const int ID_RANGE;
// default read-in quote file format
st... | 24.636364 | 78 | 0.665437 | [
"vector"
] |
182b657968c4745bbdf1aa007e33bbeb91106af6 | 48,553 | cxx | C++ | pandatool/src/egg-optchar/eggOptchar.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | pandatool/src/egg-optchar/eggOptchar.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | pandatool/src/egg-optchar/eggOptchar.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | /**
* 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 have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file eggOptchar.cxx
* @auth... | 31.879842 | 125 | 0.640681 | [
"geometry",
"object",
"vector",
"model",
"transform",
"3d"
] |
18378bea7aa503736985e97ef99d48b848984464 | 2,471 | cpp | C++ | eip/src/v3/model/DisassociatePublicipsRequest.cpp | huaweicloud/huaweicloud-sdk-cpp-v3 | d3b5e07b0ee8367d1c7f6dad17be0212166d959c | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | eip/src/v3/model/DisassociatePublicipsRequest.cpp | ChenwxJay/huaweicloud-sdk-cpp-v3 | f821ec6d269b50203e0c1638571ee1349c503c41 | [
"Apache-2.0"
] | null | null | null | eip/src/v3/model/DisassociatePublicipsRequest.cpp | ChenwxJay/huaweicloud-sdk-cpp-v3 | f821ec6d269b50203e0c1638571ee1349c503c41 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/eip/v3/model/DisassociatePublicipsRequest.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Eip {
namespace V3 {
namespace Model {
DisassociatePublicipsRequest::DisassociatePublicipsRequest()
{
publicipId_ = "";
publicipIdIsSet_ = false;
bodyIsSet_ = false;
}
DisassociatePub... | 21.301724 | 102 | 0.691623 | [
"object",
"model"
] |
183c537e42360f3f78bdeb0656dbc4ace9f23bbb | 3,659 | cpp | C++ | Services/quiz.cpp | AStepaniuk/GasTraining | c831a224f4c6f70b98a1bff2c94b36685ed932bb | [
"MIT"
] | null | null | null | Services/quiz.cpp | AStepaniuk/GasTraining | c831a224f4c6f70b98a1bff2c94b36685ed932bb | [
"MIT"
] | null | null | null | Services/quiz.cpp | AStepaniuk/GasTraining | c831a224f4c6f70b98a1bff2c94b36685ed932bb | [
"MIT"
] | null | null | null | #include "quiz.h"
#include <algorithm>
#include "turngeometry.h"
#include "randomgenerator.h"
namespace QuizImpl
{
bool arePipesEqual(const Pipeline* pipeline1, const Pipeline* pipeline2)
{
if (pipeline1 == pipeline2)
{
return true;
}
if (pipeline1... | 21.397661 | 84 | 0.520087 | [
"model"
] |
18419a00a20c3bcdc04123e8858e3a5c9ecd4fd7 | 1,633 | cpp | C++ | unit_tests/wind_energy/actuator/test_disk_functions.cpp | alhs6577/amr-wind | 8dea2fbab479a2c75d54c9b0b1e04021a1da7d21 | [
"BSD-3-Clause"
] | null | null | null | unit_tests/wind_energy/actuator/test_disk_functions.cpp | alhs6577/amr-wind | 8dea2fbab479a2c75d54c9b0b1e04021a1da7d21 | [
"BSD-3-Clause"
] | null | null | null | unit_tests/wind_energy/actuator/test_disk_functions.cpp | alhs6577/amr-wind | 8dea2fbab479a2c75d54c9b0b1e04021a1da7d21 | [
"BSD-3-Clause"
] | null | null | null | #include "gtest/gtest.h"
#include "amr-wind/wind_energy/actuator/disk/disk_ops.H"
namespace amr_wind {
namespace actuator {
namespace disk {
class TestComputeDiskPoints : public ::testing::TestWithParam<vs::Vector>
{};
TEST_P(TestComputeDiskPoints, disk_translation_x_aligned)
{
DiskBaseData data;
data.center... | 32.019608 | 73 | 0.606246 | [
"vector"
] |
18484cacb5010bfe91ded71b19e0bc35a99d5e9e | 512 | cpp | C++ | boboleetcode/Play-Leetcode-master/0509-Fibonacci-Number/cpp-0509/main2.cpp | yaominzh/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 2 | 2021-03-25T05:26:55.000Z | 2021-04-20T03:33:24.000Z | boboleetcode/Play-Leetcode-master/0509-Fibonacci-Number/cpp-0509/main2.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 6 | 2019-12-04T06:08:32.000Z | 2021-05-10T20:22:47.000Z | boboleetcode/Play-Leetcode-master/0509-Fibonacci-Number/cpp-0509/main2.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | null | null | null | /// Source : https://leetcode.com/problems/fibonacci-number/
/// Author : liuyubobobo
/// Time : 2019-01-09
#include <iostream>
#include <vector>
using namespace std;
/// Dynamic Programming
/// Time Complexity: O(n)
/// Space Complexity: O(n)
class Solution {
public:
int fib(int N) {
vector<int> dp(... | 16.516129 | 60 | 0.519531 | [
"vector"
] |
184ce318db4251e73e7eacdd08a4f5a65be4b42d | 6,711 | hpp | C++ | src/PluginHDF5/HDFImporter.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | src/PluginHDF5/HDFImporter.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | src/PluginHDF5/HDFImporter.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2022 The Voxie Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | 37.283333 | 91 | 0.717479 | [
"object",
"shape",
"vector"
] |
4c7b575790a37cd3d5eff5d8a4febafb783f65c5 | 5,218 | cpp | C++ | RegExMove.cpp | IanEmmons/CmdLineUtil | bd20d59d4d9fcc0d7d82a3031106d56ad10aad16 | [
"BSD-3-Clause"
] | null | null | null | RegExMove.cpp | IanEmmons/CmdLineUtil | bd20d59d4d9fcc0d7d82a3031106d56ad10aad16 | [
"BSD-3-Clause"
] | null | null | null | RegExMove.cpp | IanEmmons/CmdLineUtil | bd20d59d4d9fcc0d7d82a3031106d56ad10aad16 | [
"BSD-3-Clause"
] | null | null | null |
#include "RegExMove.h"
#include "main.h"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/format.hpp>
#include <vector>
namespace b = ::boost;
namespace balg = ::boost::algorithm;
namespace fs = ::std::filesystem;
using ::std::cout;
using ::std::endl;
using ::std::ostream;
using ::std::regex;
using :... | 21.832636 | 94 | 0.6468 | [
"vector"
] |
4c7f73f2bbb38505fa6d9260438c17b818fddca4 | 6,364 | hpp | C++ | day08/day08.hpp | adrn/advent-of-code | d36c274b5e8ed872ea302113bf8f772b666fb694 | [
"MIT"
] | 2 | 2021-12-01T17:42:56.000Z | 2021-12-02T02:26:26.000Z | day08/day08.hpp | adrn/advent-of-code | d36c274b5e8ed872ea302113bf8f772b666fb694 | [
"MIT"
] | null | null | null | day08/day08.hpp | adrn/advent-of-code | d36c274b5e8ed872ea302113bf8f772b666fb694 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <tuple>
#include <map>
#include "helpers.hpp"
std::map<int, std::string> digit_to_signal = {
{0, "abcefg"},
{1, "cf"},
{2, "acdeg"},
{3, "acdfg"},
{4, "bcdf"},
{5, "abdfg"},
{6, "abcefg"},
{7, "acf"},
... | 34.586957 | 83 | 0.534098 | [
"vector"
] |
4c8142b13ea002e8fea1c91399a04c59fb7e891b | 2,033 | cpp | C++ | RawBinary.cpp | mshockwave/MIPS-R3000-CPU-Simulator | ef90317990ed4b340ce063c5a6876152afc0d65b | [
"Apache-2.0"
] | null | null | null | RawBinary.cpp | mshockwave/MIPS-R3000-CPU-Simulator | ef90317990ed4b340ce063c5a6876152afc0d65b | [
"Apache-2.0"
] | null | null | null | RawBinary.cpp | mshockwave/MIPS-R3000-CPU-Simulator | ef90317990ed4b340ce063c5a6876152afc0d65b | [
"Apache-2.0"
] | null | null | null | #include "RawBinary.h"
#include "Utils.h"
#include <fstream>
extern "C" {
#include <sys/mman.h>
};
RawBinary::RawBinary(std::string instFilePath, std::string dataFilePath) {
DEBUG_BLOCK {
Log::D("Instructions Read") << "Start Time(ms): " << getCurrentTimeMs() << std::endl;
};
FILE* instFile = fop... | 36.963636 | 113 | 0.617806 | [
"vector"
] |
4c978503ee3c0af3693bc9ddf1805232ae3750b4 | 843 | cpp | C++ | armplanning_test/planarmpath.cpp | Boberito25/ButlerBot | 959f961bbc8c43be0ccb533dd2e2af5c55b0cc2a | [
"BSD-3-Clause"
] | null | null | null | armplanning_test/planarmpath.cpp | Boberito25/ButlerBot | 959f961bbc8c43be0ccb533dd2e2af5c55b0cc2a | [
"BSD-3-Clause"
] | 1 | 2015-06-08T19:55:40.000Z | 2015-06-08T19:55:40.000Z | armplanning_test/planarmpath.cpp | Boberito25/ButlerBot | 959f961bbc8c43be0ccb533dd2e2af5c55b0cc2a | [
"BSD-3-Clause"
] | null | null | null | #include "astar.cpp"
#include <Eigen/Dense>
#include "forward_kinematics.h"
#include <vector>
#include <stdio.h>
int main(int argc, char** argv )
{
std::cout << "Start Program\n";
Astar planner;
configState start;
start.theta[0] = 0;
start.theta[1] = 0;
start.theta[2] = 0;
start.theta[3] = 0;
start.t... | 21.075 | 66 | 0.635824 | [
"vector"
] |
4c98d55d1a89ae97813cb888c63f8eda5e8b85f4 | 2,543 | cpp | C++ | Data Structures and Algorithms/PA4/Hash.cpp | colegarien/school_projects | 98147b463164aa2f26a5db3e209623e33bde6982 | [
"MIT"
] | null | null | null | Data Structures and Algorithms/PA4/Hash.cpp | colegarien/school_projects | 98147b463164aa2f26a5db3e209623e33bde6982 | [
"MIT"
] | null | null | null | Data Structures and Algorithms/PA4/Hash.cpp | colegarien/school_projects | 98147b463164aa2f26a5db3e209623e33bde6982 | [
"MIT"
] | null | null | null | //------------------------
// Cole Garien
// Data Struct & Algo
// MW 5:45
// PA4
//------------------------
#include <iostream>
#include <vector>
#include <cmath>
#include "Hash.h"
using namespace std;
// return number of attempts
int Hash::QuadraticProbing(int val, int c1, int c2){
// the intial place to try and ... | 22.90991 | 60 | 0.642548 | [
"vector"
] |
4c9e1cc84c83d1c2c1d94c4a880a0f8f7353cc89 | 3,883 | cpp | C++ | lib/lexer/Lexer.cpp | federico-terzi/ninx | ff760a481fc6c16ab06fe106c0f2051125f1b9c6 | [
"MIT"
] | 2 | 2020-08-18T23:12:52.000Z | 2021-11-15T11:29:19.000Z | lib/lexer/Lexer.cpp | federico-terzi/ninx | ff760a481fc6c16ab06fe106c0f2051125f1b9c6 | [
"MIT"
] | 15 | 2018-12-29T20:33:14.000Z | 2019-02-03T15:13:47.000Z | lib/lexer/Lexer.cpp | federico-terzi/ninx | ff760a481fc6c16ab06fe106c0f2051125f1b9c6 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2018 Federico Terzi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | 37.336538 | 157 | 0.599021 | [
"vector"
] |
4ca1ceb561a827df3098e38416487ef5f7f63fe6 | 6,503 | cpp | C++ | NeuralNetwork/Sources/NeuralNetwork/ANetworkData.cpp | sousav/DeepNetwork | 8931c05d5d703477325b0c3d7d5fd2c75658bc6b | [
"MIT"
] | null | null | null | NeuralNetwork/Sources/NeuralNetwork/ANetworkData.cpp | sousav/DeepNetwork | 8931c05d5d703477325b0c3d7d5fd2c75658bc6b | [
"MIT"
] | null | null | null | NeuralNetwork/Sources/NeuralNetwork/ANetworkData.cpp | sousav/DeepNetwork | 8931c05d5d703477325b0c3d7d5fd2c75658bc6b | [
"MIT"
] | null | null | null | /**
* @Author: Victor Sousa <vicostudio>
* @Date: 29/04/2018 20:10:29
* @Email: victor.sousa@epitech.eu
* @Last modified by: vicostudio
* @Last modified time: 29/04/2018 20:27:50
*/
#include "ANetworkData.hpp"
Neural::ANetworkData::ANetworkData(const std::vector<unsigned> &topology, double recentAverageSm... | 31.264423 | 135 | 0.616946 | [
"vector"
] |
4ca2488749954eebaab79328877a19510d41f34f | 3,692 | hpp | C++ | include/derecho/objectstore/Object.hpp | xinzheyang/derecho-unified | b5e79638fcf667cdba42a78fe1404db4235cd462 | [
"BSD-3-Clause"
] | null | null | null | include/derecho/objectstore/Object.hpp | xinzheyang/derecho-unified | b5e79638fcf667cdba42a78fe1404db4235cd462 | [
"BSD-3-Clause"
] | null | null | null | include/derecho/objectstore/Object.hpp | xinzheyang/derecho-unified | b5e79638fcf667cdba42a78fe1404db4235cd462 | [
"BSD-3-Clause"
] | null | null | null | #ifndef OBJECT_HPP
#define OBJECT_HPP
#include <chrono>
#include <iostream>
#include <map>
#include <memory>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
#include <optional>
#include <tuple>
#include <derecho/conf/conf.hpp>
#include <derecho/core/derecho.hpp>
#include <derecho/mutils-seria... | 27.759398 | 131 | 0.640033 | [
"object",
"vector"
] |
4ca74ed193ab5bdef5a39805aa46961e10c9520d | 908 | cpp | C++ | pressdatafilter.cpp | futr/sensorreader | 52e17ef7b4352071951b55ec9e4594a06881d70a | [
"MIT"
] | null | null | null | pressdatafilter.cpp | futr/sensorreader | 52e17ef7b4352071951b55ec9e4594a06881d70a | [
"MIT"
] | null | null | null | pressdatafilter.cpp | futr/sensorreader | 52e17ef7b4352071951b55ec9e4594a06881d70a | [
"MIT"
] | null | null | null | #include "pressdatafilter.h"
PressDataFilter::PressDataFilter(QObject *parent) :
AbstractDataFilter(parent)
{
m_fileName = "pressure.csv";
m_filterName = "PressFilter";
m_filterID = ID_LPS331AP;
}
bool PressDataFilter::parseAndSave(unsigned int step, QByteArray data)
{
// データー処理
QTextStrea... | 21.116279 | 82 | 0.63326 | [
"vector"
] |
4caca4a79d8312b36fbb57207ce270f0cae41af9 | 4,790 | cpp | C++ | app/main.cpp | jenadzi/pointcloud-raster | 1c97f8aaedfa567ac068312797cc11fe76fa582d | [
"MIT"
] | null | null | null | app/main.cpp | jenadzi/pointcloud-raster | 1c97f8aaedfa567ac068312797cc11fe76fa582d | [
"MIT"
] | null | null | null | app/main.cpp | jenadzi/pointcloud-raster | 1c97f8aaedfa567ac068312797cc11fe76fa582d | [
"MIT"
] | 1 | 2021-09-09T21:56:16.000Z | 2021-09-09T21:56:16.000Z | #include <iostream>
#include <pointcloud_raster/raster/pointcloud_rasterizer.hpp>
#ifdef WITH_LAS
#include <pointcloud_raster/io/las/las_reader.hpp>
#endif
#include <pointcloud_raster/io/txt/txt_reader.hpp>
#include <pointcloud_raster/io/ply/ply_reader.hpp>
int
main(int argc, char *argv[])
{
if (argc < 4)
{
... | 43.545455 | 112 | 0.651566 | [
"vector",
"transform"
] |
4cba9c6bb4bc715b769406dda9dc07ad7c9037b6 | 3,811 | cxx | C++ | tests/core/moneta/traits/members_test.cxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 2 | 2015-10-09T12:11:54.000Z | 2016-01-20T15:34:33.000Z | tests/core/moneta/traits/members_test.cxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 5 | 2015-07-04T20:31:32.000Z | 2015-07-04T20:44:58.000Z | tests/core/moneta/traits/members_test.cxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | null | null | null | // [===========================================================================]
// [ M o n e t a ]
// [---------------------------------------------------------------------------]
// [ ... | 43.306818 | 94 | 0.608239 | [
"model"
] |
4cd84062b3c4ed40a0667d5e75f8fcec770b36fb | 16,088 | hpp | C++ | inc/vmath/core/vector.hpp | kernan/vmath | 6c28e7e731a2ea47a7b66b5dd4170283e84f1e02 | [
"MIT"
] | 1 | 2018-09-15T13:56:26.000Z | 2018-09-15T13:56:26.000Z | inc/vmath/core/vector.hpp | kernan/math | 6c28e7e731a2ea47a7b66b5dd4170283e84f1e02 | [
"MIT"
] | 7 | 2016-07-05T19:11:09.000Z | 2017-05-08T21:19:58.000Z | inc/vmath/core/vector.hpp | kernan/vmath | 6c28e7e731a2ea47a7b66b5dd4170283e84f1e02 | [
"MIT"
] | 1 | 2018-11-06T21:00:34.000Z | 2018-11-06T21:00:34.000Z | #ifndef VMATH_CORE_VECTOR_HPP
#define VMATH_CORE_VECTOR_HPP
#include <array>
#include <cstddef>
#include <ostream>
#include <type_traits>
#include <vmath/core/swizzle/swizzle2.hpp>
#include <vmath/core/swizzle/swizzle3.hpp>
#include <vmath/core/swizzle/swizzle4.hpp>
#include <vmath/core/swizzle/swizzle_gen.hpp>
names... | 29.304189 | 110 | 0.685356 | [
"object",
"vector"
] |
4cda9fccc5588d6e8c3ff01bddb687455d5d6586 | 1,579 | cpp | C++ | aws-cpp-sdk-ec2/source/model/ImportInstanceRequest.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-ec2/source/model/ImportInstanceRequest.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-ec2/source/model/ImportInstanceRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ec2/model/ImportInstanceRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::EC2::Model;
using namespace Aws::U... | 23.567164 | 91 | 0.69981 | [
"model"
] |
4cdf2a8009fb45342264ad18305c685e451b06c7 | 1,103 | cpp | C++ | test/unit_tests/common/adt/vec_ptr_test.cpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | 10 | 2020-01-23T20:41:19.000Z | 2021-12-28T20:24:44.000Z | test/unit_tests/common/adt/vec_ptr_test.cpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | 22 | 2021-03-25T16:22:08.000Z | 2022-03-17T12:50:38.000Z | test/unit_tests/common/adt/vec_ptr_test.cpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include "common/adt/vec_ptr.hpp"
namespace tiro::test {
TEST_CASE("VecPtr basic operations", "[vec_ptr]") {
std::vector<int> vec{1, 2, 3};
VecPtr v0(vec, 0);
REQUIRE(v0.valid());
REQUIRE(v0.get() == &vec[0]);
REQUIRE(*v0 == 1);
REQUIRE(v0 == v0);
VecPtr v2(v... | 22.979167 | 53 | 0.587489 | [
"vector"
] |
4ce03236647174caa227160ffa5dad3091b3211a | 33,174 | cpp | C++ | src/mpepc/evaluation/social_norm_results.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/mpepc/evaluation/social_norm_results.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/mpepc/evaluation/social_norm_results.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 39.968675 | 120 | 0.633116 | [
"object",
"vector",
"solid"
] |
4cef7c07bc74d0a95c4f556af229491e4ee3278d | 6,104 | hpp | C++ | cpp/include/raft/common/detail/nvtx.hpp | kaatish/raft | f487da7f2585e60f0a11aef43ce17c990cc6145a | [
"Apache-2.0"
] | 65 | 2020-04-25T12:05:44.000Z | 2022-03-26T03:45:26.000Z | cpp/include/raft/common/detail/nvtx.hpp | kaatish/raft | f487da7f2585e60f0a11aef43ce17c990cc6145a | [
"Apache-2.0"
] | 527 | 2019-06-21T06:07:23.000Z | 2022-03-31T23:13:52.000Z | cpp/include/raft/common/detail/nvtx.hpp | kaatish/raft | f487da7f2585e60f0a11aef43ce17c990cc6145a | [
"Apache-2.0"
] | 78 | 2020-04-28T02:43:10.000Z | 2022-02-07T08:13:32.000Z | /*
* Copyright (c) 2021, NVIDIA 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 29.921569 | 99 | 0.663008 | [
"vector"
] |
e07a057e6c3a9264eb102d4a082a43ccfa0a6b0f | 1,998 | hh | C++ | src/RK/computeRKVolumes.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/RK/computeRKVolumes.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/RK/computeRKVolumes.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //------------------------------------------------------------------------------
// Compute the moments necessary for RK corrections.
//------------------------------------------------------------------------------
#ifndef __Spheral__computeRKVolumes__
#define __Spheral__computeRKVolumes__
#include <vector>
#include "... | 48.731707 | 97 | 0.643143 | [
"geometry",
"vector"
] |
e07c2f6a951cfde70145093f3959da77fcbb0eeb | 4,729 | hpp | C++ | viennacl/tools/matrix_generation.hpp | ddemidov/viennacl-dev | 0f7de9cd28e54a5ca8f7c2ab03263bc56bf004ef | [
"MIT"
] | 2 | 2016-08-23T17:05:21.000Z | 2016-08-23T17:06:24.000Z | viennacl/tools/matrix_generation.hpp | ddemidov/viennacl-dev | 0f7de9cd28e54a5ca8f7c2ab03263bc56bf004ef | [
"MIT"
] | null | null | null | viennacl/tools/matrix_generation.hpp | ddemidov/viennacl-dev | 0f7de9cd28e54a5ca8f7c2ab03263bc56bf004ef | [
"MIT"
] | null | null | null | #ifndef VIENNACL_TOOLS_MATRIX_GENERATION_HPP_
#define VIENNACL_TOOLS_MATRIX_GENERATION_HPP_
/* =========================================================================
Copyright (c) 2010-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... | 31.738255 | 141 | 0.661239 | [
"object",
"vector"
] |
e07dd790308b1c3e6061be936f67303512051251 | 3,519 | cc | C++ | jsp/rcm_denoising/horny_toad/tests/test_polar.cc | jeffsp/kaggle_denoising | ad0e86a34c8c0c98c95e3ec3fe791a6b75154a27 | [
"MIT"
] | 1 | 2015-06-04T14:34:01.000Z | 2015-06-04T14:34:01.000Z | jsp/rcm_denoising/horny_toad/tests/test_polar.cc | jeffsp/kaggle_denoising | ad0e86a34c8c0c98c95e3ec3fe791a6b75154a27 | [
"MIT"
] | null | null | null | jsp/rcm_denoising/horny_toad/tests/test_polar.cc | jeffsp/kaggle_denoising | ad0e86a34c8c0c98c95e3ec3fe791a6b75154a27 | [
"MIT"
] | null | null | null | /// @file test_polar.cc
/// @brief test polar
/// @author Jeff Perry <jeffsp@gmail.com>
/// @version 1.0
/// @date 2013-01-14
#include "horny_toad/about_equal.h"
#include "horny_toad/pi.h"
#include "horny_toad/polar.h"
#include "horny_toad/verify.h"
#include <iostream>
#include <vector>
using namespace std;
using nam... | 32.284404 | 79 | 0.498153 | [
"vector"
] |
e08747d76725c5b6d598c9c201a6a0a55c724232 | 5,139 | cpp | C++ | RiptideRecorder/Macro.cpp | ironmig/RiptideRecorder | 6e7a42a800157e6f1e6cc4ac812ff6f4ade52257 | [
"MIT"
] | 1 | 2015-04-12T04:37:59.000Z | 2015-04-12T04:37:59.000Z | RiptideRecorder/Macro.cpp | ironmig/RiptideRecorder | 6e7a42a800157e6f1e6cc4ac812ff6f4ade52257 | [
"MIT"
] | null | null | null | RiptideRecorder/Macro.cpp | ironmig/RiptideRecorder | 6e7a42a800157e6f1e6cc4ac812ff6f4ade52257 | [
"MIT"
] | null | null | null | /*
* Macro.cpp
*
* Created on: Apr 4, 2015
* Author: kma1660
*/
#include "Macro.h"
#include "Commands/RecordCommand.h"
#include "Commands/PlayBackCommand.h"
#include "Commands/PlayBackFileCommand.h"
#include "Commands/RecordFileCommand.h"
Macro::Macro(std::vector<Device*> devices) {
Values = Vals{};
for(... | 31.722222 | 109 | 0.653435 | [
"vector"
] |
e08dac56a325d5475c4dc115c2f421fd2f9369a8 | 963 | cpp | C++ | Leetcode Practice Set/1.two-sum.cpp | MiracleShadow/Use-Cpp-practice-algorithm | c61116cd5516de9242100ed0c0ec48c79e9d17b5 | [
"MIT"
] | 1 | 2019-01-19T10:33:39.000Z | 2019-01-19T10:33:39.000Z | Leetcode Practice Set/1.two-sum.cpp | MiracleShadow/Use-Cpp-practice-algorithm | c61116cd5516de9242100ed0c0ec48c79e9d17b5 | [
"MIT"
] | null | null | null | Leetcode Practice Set/1.two-sum.cpp | MiracleShadow/Use-Cpp-practice-algorithm | c61116cd5516de9242100ed0c0ec48c79e9d17b5 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode.cn id=1 lang=cpp
*
* [1] 两数之和
*
* https://leetcode-cn.com/problems/two-sum/description/
*
* algorithms
* Easy (43.78%)
* Total Accepted: 219.4K
* Total Submissions: 501.1K
* Testcase Example: '[2,7,11,15]\n9'
*
* 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。
*
... | 21.4 | 65 | 0.534787 | [
"vector"
] |
e08e60419c3d9f05c35db76c5790cb1f4c17841f | 659 | cpp | C++ | ABC135/ABC135C.cpp | tayoon/AtCoder | 1d7c2a290cf881233259e5a71e17fb28f2f683df | [
"MIT"
] | null | null | null | ABC135/ABC135C.cpp | tayoon/AtCoder | 1d7c2a290cf881233259e5a71e17fb28f2f683df | [
"MIT"
] | null | null | null | ABC135/ABC135C.cpp | tayoon/AtCoder | 1d7c2a290cf881233259e5a71e17fb28f2f683df | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector <long long> a(n+1, 0);
vector <long long> b(n+1, 0);
for (int i = 0; i < n+1; i++) cin >> a[i];
for (int i = 0; i < n; i++) cin >> b[i];
long long next = 0, cnt = 0;
for (int i = 0; i < n+1; i++) {
... | 19.969697 | 46 | 0.338392 | [
"vector"
] |
e09717c47987a342166282ea7a29d0ecb268a1ca | 11,377 | hpp | C++ | include/Proyecto26/HttpBase.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/Proyecto26/HttpBase.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/Proyecto26/HttpBase.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils-met... | 70.664596 | 348 | 0.766107 | [
"object",
"vector"
] |
e09b841281670613ba67b85d5b629f7bb47bb000 | 3,748 | cxx | C++ | src/lib/Hists/GCRFit.cxx | fermi-lat/calibGenCAL | 9b207d7ba56031f5ecd7aab544e68a6dedc7d776 | [
"BSD-3-Clause"
] | null | null | null | src/lib/Hists/GCRFit.cxx | fermi-lat/calibGenCAL | 9b207d7ba56031f5ecd7aab544e68a6dedc7d776 | [
"BSD-3-Clause"
] | null | null | null | src/lib/Hists/GCRFit.cxx | fermi-lat/calibGenCAL | 9b207d7ba56031f5ecd7aab544e68a6dedc7d776 | [
"BSD-3-Clause"
] | null | null | null | // $Header: /nfs/slac/g/glast/ground/cvs/calibGenCAL/src/lib/Hists/GCRFit.cxx,v 1.4 2008/04/21 20:32:32 fewtrell Exp $
/** @file
@author Zachary Fewtrell
*/
// LOCAL INCLUDES
#include "GCRFit.h"
#include "GCRHists.h"
#include "HistIdx.h"
#include "MPDHists.h"
#include "src/lib/Util/CGCUtil.h"
#include "src/lib/Ut... | 29.511811 | 118 | 0.529616 | [
"shape"
] |
e09c95336259c79ddebc56ec02f24b3421fef3e0 | 1,593 | cpp | C++ | cppLibs/cmdParse.cpp | Justist/justLibraries | fdf9dea2291b600c6e46ab2356321e01fb8ca547 | [
"Apache-2.0"
] | null | null | null | cppLibs/cmdParse.cpp | Justist/justLibraries | fdf9dea2291b600c6e46ab2356321e01fb8ca547 | [
"Apache-2.0"
] | null | null | null | cppLibs/cmdParse.cpp | Justist/justLibraries | fdf9dea2291b600c6e46ab2356321e01fb8ca547 | [
"Apache-2.0"
] | null | null | null | #include "cmdParse.hpp"
CMDParse::CMDParse(int argc, char* argv[], std::string commands) {
parseCommands(commands);
parseArguments(argc, argv);
}
CMDParse::CMDParse() {
std::cout << R"(
Usage:
It is highly preferable to use the cmdp::parse() command,
as defined in the header. This requires argc, argv,... | 27.947368 | 76 | 0.625235 | [
"vector"
] |
e0ab760a2742f00d9f46efbc163cc88839acd2ca | 6,866 | cpp | C++ | booserver/timetable_screen_builder.cpp | sundersb/booserver | c91dcdd33af3aba590d177f50dafe994a16ba24b | [
"BSD-2-Clause"
] | 1 | 2019-03-03T04:40:07.000Z | 2019-03-03T04:40:07.000Z | booserver/timetable_screen_builder.cpp | sundersb/booserver | c91dcdd33af3aba590d177f50dafe994a16ba24b | [
"BSD-2-Clause"
] | null | null | null | booserver/timetable_screen_builder.cpp | sundersb/booserver | c91dcdd33af3aba590d177f50dafe994a16ba24b | [
"BSD-2-Clause"
] | null | null | null | #include "timetable_screen_builder.h"
#include "date.h"
#include "png_files.h"
#include <iostream>
#include <sstream>
#include <cstring>
#include <assert.h>
TimetableScreenBuilder::TimetableScreenBuilder(const Options &options):
canvas(options.getWidth(), options.getHeight()),
background(nullptr),
line_height(op... | 31.934884 | 134 | 0.642587 | [
"vector"
] |
e0b100f8376b942cd691e95a1c1d7c2bbc287137 | 1,612 | cpp | C++ | misc/algos/shellsort.cpp | k-kapp/ShortCppProblems | d7825b60c0d44b5c8108636bcf4765057b1a1e7d | [
"Apache-2.0"
] | null | null | null | misc/algos/shellsort.cpp | k-kapp/ShortCppProblems | d7825b60c0d44b5c8108636bcf4765057b1a1e7d | [
"Apache-2.0"
] | null | null | null | misc/algos/shellsort.cpp | k-kapp/ShortCppProblems | d7825b60c0d44b5c8108636bcf4765057b1a1e7d | [
"Apache-2.0"
] | null | null | null | /*
This is my implementation of the shellsort algorithm
*/
#include <iostream>
#include <vector>
#include <random>
#include "test_utils.h"
using namespace std;
template<typename Iterator, typename Comparator>
void sort_sublist(Iterator begin, Iterator end, Comparator comp, int h)
{
int list_end = 0;
Iterator cu... | 18.744186 | 100 | 0.641439 | [
"vector"
] |
e0b2c69ab3e9df843a6078ce8710dd8cd3ecdff0 | 20,773 | cpp | C++ | geograph3d/test_data.cpp | legion-zver/geograph3d | ce4b3cf27fa6b5d35b34d8ca055ed3e61d943e5b | [
"MIT"
] | 5 | 2016-10-01T15:43:33.000Z | 2021-11-12T11:29:49.000Z | geograph3d/test_data.cpp | legion-zver/geograph3d | ce4b3cf27fa6b5d35b34d8ca055ed3e61d943e5b | [
"MIT"
] | null | null | null | geograph3d/test_data.cpp | legion-zver/geograph3d | ce4b3cf27fa6b5d35b34d8ca055ed3e61d943e5b | [
"MIT"
] | null | null | null | #include "test_data.hpp"
#include "jute.hpp"
using namespace GeoGraph3D;
#define FLOOR_HEIGHT 0.03f;
//#define DEBUG_TEST_TRANSITIONS
void FillGraphExample01(Graph* graph) {
if(graph != NULL) {
Roads roads;
std::string jsonRoads = "{\"0\":[[{\"lat\":55.776253774269,\"lng\":37.6552782207... | 153.874074 | 8,804 | 0.618158 | [
"vector"
] |
e0cb43ad3cd6fa5fe3f0d4bbfb7da60c102019cd | 5,305 | hh | C++ | register/include/ignition/plugin/Register.hh | scpeters-test/ign-plugin | 94482af3e9b2cc1cbb7c2dbeb2c7846f8283f0f6 | [
"Apache-2.0"
] | 10 | 2020-04-15T16:59:32.000Z | 2022-03-18T20:36:17.000Z | register/include/ignition/plugin/Register.hh | scpeters-test/ign-plugin | 94482af3e9b2cc1cbb7c2dbeb2c7846f8283f0f6 | [
"Apache-2.0"
] | 47 | 2020-05-04T15:07:18.000Z | 2022-03-18T20:53:54.000Z | register/include/ignition/plugin/Register.hh | scpeters-test/ign-plugin | 94482af3e9b2cc1cbb7c2dbeb2c7846f8283f0f6 | [
"Apache-2.0"
] | 11 | 2020-05-05T22:04:44.000Z | 2022-03-18T13:59:46.000Z | /*
* Copyright (C) 2017 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 37.624113 | 80 | 0.728746 | [
"object"
] |
e0cf7c05e8fa4a450b2c668d6281df30a729f54f | 5,947 | hpp | C++ | Modules/ExampleModule/include/CommonTypes.hpp | pv6/smart-refinement-tool | 1221a0a22ec0fc868cf922267fd0af73697025ea | [
"BSD-3-Clause"
] | null | null | null | Modules/ExampleModule/include/CommonTypes.hpp | pv6/smart-refinement-tool | 1221a0a22ec0fc868cf922267fd0af73697025ea | [
"BSD-3-Clause"
] | null | null | null | Modules/ExampleModule/include/CommonTypes.hpp | pv6/smart-refinement-tool | 1221a0a22ec0fc868cf922267fd0af73697025ea | [
"BSD-3-Clause"
] | null | null | null | #ifndef ANNOTATIONCOMMONTYPES_H
#define ANNOTATIONCOMMONTYPES_H
#include <array>
#include <algorithm>
#include <utility>
#include <memory>
#include <unordered_map>
#include <functional>
#include <vector>
#include <fstream>
static std::vector<std::string> UseCaseNames =
{
"ForegroundBackgroundClean",
"SmartBrushLevelS... | 22.612167 | 78 | 0.571717 | [
"mesh",
"vector",
"3d"
] |
e0f0ce8e296db8a51cb9f76ef5ca46766a5279fe | 11,685 | cpp | C++ | src/RTL/Component/Importing/CIFXShaderLitTextureDecoder.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 44 | 2016-05-06T00:47:11.000Z | 2022-02-11T06:51:37.000Z | src/RTL/Component/Importing/CIFXShaderLitTextureDecoder.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 3 | 2016-06-27T12:37:31.000Z | 2021-03-24T12:39:48.000Z | src/RTL/Component/Importing/CIFXShaderLitTextureDecoder.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 15 | 2016-02-28T11:08:30.000Z | 2021-06-01T03:32:01.000Z | //***************************************************************************
//
// Copyright (c) 2001 - 2006 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
//
// ... | 30.994695 | 110 | 0.737612 | [
"render",
"object",
"transform"
] |
804232431c755706a7e66fc0f5b4c7a529e8bb5d | 3,765 | hpp | C++ | src/geometry.hpp | haskelladdict/mcell_ng | 6a84b1fc39bc1bb8cd9bd19e249a6381a24c5eb5 | [
"BSD-3-Clause"
] | null | null | null | src/geometry.hpp | haskelladdict/mcell_ng | 6a84b1fc39bc1bb8cd9bd19e249a6381a24c5eb5 | [
"BSD-3-Clause"
] | null | null | null | src/geometry.hpp | haskelladdict/mcell_ng | 6a84b1fc39bc1bb8cd9bd19e249a6381a24c5eb5 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 Markus Dittrich
// Licensed under BSD license, see LICENSE file for details
#ifndef GEOMETRY_HPP
#define GEOMETRY_HPP
#include <array>
#include <memory>
#include "molecules.hpp"
#include "species.hpp"
#include "util.hpp"
#include "vector.hpp"
namespace geom {
// this epsilon is used for geometri... | 33.026316 | 86 | 0.706242 | [
"mesh",
"geometry",
"vector",
"model"
] |
8043876f27d679f259102d401ff9fe88b15eb496 | 9,341 | cpp | C++ | demos/rlPlanDemo/ConfigurationSpaceScene.cpp | mcx/rl | aa6eb334b5279ece8523258957b70e3b8c0c42ce | [
"BSD-2-Clause"
] | null | null | null | demos/rlPlanDemo/ConfigurationSpaceScene.cpp | mcx/rl | aa6eb334b5279ece8523258957b70e3b8c0c42ce | [
"BSD-2-Clause"
] | null | null | null | demos/rlPlanDemo/ConfigurationSpaceScene.cpp | mcx/rl | aa6eb334b5279ece8523258957b70e3b8c0c42ce | [
"BSD-2-Clause"
] | null | null | null | //
// Copyright (c) 2009, Markus Rickert
// 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 condit... | 23.411028 | 118 | 0.703779 | [
"vector",
"model",
"transform"
] |
80468ca8801de0b47a2abfe48bc6f4bae44afc2a | 624 | cpp | C++ | src/bounce/renderer/ctor.cpp | cbosoft/bounce | f63e5ad1aabe201debf7a9a73525e93973c34932 | [
"MIT"
] | null | null | null | src/bounce/renderer/ctor.cpp | cbosoft/bounce | f63e5ad1aabe201debf7a9a73525e93973c34932 | [
"MIT"
] | null | null | null | src/bounce/renderer/ctor.cpp | cbosoft/bounce | f63e5ad1aabe201debf7a9a73525e93973c34932 | [
"MIT"
] | null | null | null | #include <bounce/renderer/renderer.hpp>
/**
* Construct Renderer. Set most things to zero. Create an empty fallback Texture called "null".
*
* This creates the Renderer object, but it still needs to be initialised by calling the Renderer#init method. This is
* done in Game#setup.
*/
Renderer::Renderer()
: game(nu... | 22.285714 | 118 | 0.684295 | [
"object"
] |
805e2df712d989bf92ed69f39985192542aff378 | 10,968 | cpp | C++ | src/demo/grasp_poses_visualizer_demo.cpp | NateWright/MoveItGrasps | 10330ff38c72075035a69ed754fa9ed40a7c846b | [
"BSD-3-Clause"
] | 55 | 2019-03-14T01:45:28.000Z | 2022-03-27T16:39:36.000Z | src/demo/grasp_poses_visualizer_demo.cpp | NateWright/MoveItGrasps | 10330ff38c72075035a69ed754fa9ed40a7c846b | [
"BSD-3-Clause"
] | 49 | 2019-03-28T21:17:51.000Z | 2021-11-16T09:29:27.000Z | src/demo/grasp_poses_visualizer_demo.cpp | NateWright/MoveItGrasps | 10330ff38c72075035a69ed754fa9ed40a7c846b | [
"BSD-3-Clause"
] | 39 | 2019-04-02T02:51:27.000Z | 2022-03-25T09:23:30.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, University of Colorado, Boulder
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... | 45.891213 | 117 | 0.719001 | [
"object",
"vector"
] |
80600272e6355968643289dd18de0940abbb6850 | 91,076 | cpp | C++ | src/mongo/s/query/async_results_merger_test.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/s/query/async_results_merger_test.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/s/query/async_results_merger_test.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 44.931426 | 117 | 0.693113 | [
"vector"
] |
80650242b3090c2c6884fe385f6c223cbc5f0c21 | 3,333 | cpp | C++ | LeetCode/Problems/Algorithms/#37_SudokuSolver.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#37_SudokuSolver.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#37_SudokuSolver.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
private:
vector<vector<char>> board;
vector<vector<bool>> line_vis_elem;
vector<vector<bool>> col_vis_elem;
vector<vector<bool>> sub_box_vis_elem;
vector<short int> next_pos;
void back(short int cur_pos, short int vis_cnt, bool& is_solved){
if(vis_cnt == 9... | 35.457447 | 114 | 0.426343 | [
"vector"
] |
8068381a8039e0076880a066cd49af0086116c51 | 2,734 | cpp | C++ | src/bdhost/ConfigHandler.cpp | drvcoin/drive | e92e62b9600c0bb2812216212b641e86d3677a94 | [
"MIT"
] | 1 | 2018-06-13T09:14:19.000Z | 2018-06-13T09:14:19.000Z | src/bdhost/ConfigHandler.cpp | drvcoin/drive | e92e62b9600c0bb2812216212b641e86d3677a94 | [
"MIT"
] | 24 | 2018-08-21T01:28:40.000Z | 2018-11-05T07:55:15.000Z | src/bdhost/ConfigHandler.cpp | drvcoin/drive | e92e62b9600c0bb2812216212b641e86d3677a94 | [
"MIT"
] | 3 | 2018-05-18T01:46:45.000Z | 2018-06-05T08:35:37.000Z | /*
Copyright (c) 2018 Drive Foundation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, ... | 32.547619 | 104 | 0.677762 | [
"object"
] |
8069cefb8aa4b4bf3197efa69373beb360359233 | 1,521 | cpp | C++ | src/geometry.cpp | LaurentValette/BulletGL | 1272fa305b0e2818b98b44c481ae90d76b2f06f0 | [
"MIT"
] | null | null | null | src/geometry.cpp | LaurentValette/BulletGL | 1272fa305b0e2818b98b44c481ae90d76b2f06f0 | [
"MIT"
] | null | null | null | src/geometry.cpp | LaurentValette/BulletGL | 1272fa305b0e2818b98b44c481ae90d76b2f06f0 | [
"MIT"
] | null | null | null | #include "geometry.h"
Cal::Geometry::Geometry(const std::vector<glm::vec3>& vertices, const std::vector<glm::vec3>& normals)
{
m_vertices = vertices;
m_normals = normals;
// Create vertex array object
glGenVertexArrays(1, &vertex_array_object);
glBindVertexArray(vertex_array_object);
// Creat... | 33.065217 | 106 | 0.723866 | [
"geometry",
"render",
"object",
"vector",
"model"
] |
8071d1a37c4d36df7177194552008717112fc4bf | 15,351 | cpp | C++ | myglwidget.cpp | AlgoTyc/Computergrafik | ff37616e79f87971071b3ceac4090edf58f5cd6c | [
"MIT"
] | null | null | null | myglwidget.cpp | AlgoTyc/Computergrafik | ff37616e79f87971071b3ceac4090edf58f5cd6c | [
"MIT"
] | null | null | null | myglwidget.cpp | AlgoTyc/Computergrafik | ff37616e79f87971071b3ceac4090edf58f5cd6c | [
"MIT"
] | null | null | null |
#include "myglwidget.h"
#include <iostream>
#include <QVector3D>
#include <QtMath>
#include <QElapsedTimer>
#include <QRandomGenerator>
MyGLWidget::MyGLWidget(QWidget *parent): QOpenGLWidget{parent}{
//create model
gimbal= new Model();
sphere= new Model();
skybox = new Skybox();
}... | 30.702 | 133 | 0.59742 | [
"object",
"model"
] |
80724c07c9638093a8a243f8d8192e8a3ae8a709 | 1,101 | cpp | C++ | leetcode/200-number-of-islands.cpp | vsmolyakov/competitive_programming | ec7891eee86b5d051bcb4d9eff056d4cafab668e | [
"MIT"
] | 1 | 2020-04-21T05:12:34.000Z | 2020-04-21T05:12:34.000Z | leetcode/200-number-of-islands.cpp | rossanag/competitive_programming | 5d1bd3d00f2fa8589bdbeee07abeacceb693e930 | [
"MIT"
] | null | null | null | leetcode/200-number-of-islands.cpp | rossanag/competitive_programming | 5d1bd3d00f2fa8589bdbeee07abeacceb693e930 | [
"MIT"
] | 2 | 2019-08-13T21:27:05.000Z | 2019-12-30T02:32:09.000Z | class Solution {
public:
int numIslands(vector<vector<char>>& grid) {
result = 0;
if (grid.size() == 0 || grid[0].size() == 0) {return 0;}
num_rows = grid.size(); num_cols = grid[0].size();
for (int i = 0; i < num_rows; ++i)
{
for (int j = 0; j <... | 22.02 | 64 | 0.338783 | [
"vector"
] |
807461977912c98d7e2c5b629eca2444fc9edf9e | 422 | hpp | C++ | include/State.hpp | naufaladrna08/flappy-bird-cpp | 52bb69d53270eba72716c1a0a34ef9d3a90c0ba8 | [
"MIT"
] | null | null | null | include/State.hpp | naufaladrna08/flappy-bird-cpp | 52bb69d53270eba72716c1a0a34ef9d3a90c0ba8 | [
"MIT"
] | null | null | null | include/State.hpp | naufaladrna08/flappy-bird-cpp | 52bb69d53270eba72716c1a0a34ef9d3a90c0ba8 | [
"MIT"
] | null | null | null | #ifndef __STATE_H__
#define __STATE_H__
#include <iostream>
#include <SFML/Graphics.hpp>
class State {
public:
State(sf::RenderWindow* window);
~State();
virtual void Update(const float dt) = 0;
virtual void UpdateInput(sf::Event e) = 0;
virtual void Render(sf::RenderTarget* target = nullptr) =... | 20.095238 | 64 | 0.672986 | [
"render"
] |
80757eea17d0df34573091fe5092d7391d8d71f4 | 3,635 | cc | C++ | chrome/browser/safe_browsing/srt_global_error_win.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2015-08-13T21:04:58.000Z | 2015-08-13T21:04:58.000Z | chrome/browser/safe_browsing/srt_global_error_win.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/safe_browsing/srt_global_error_win.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | // Copyright 2014 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/safe_browsing/srt_global_error_win.h"
#include "base/callback.h"
#include "base/metrics/histogram.h"
#include "chrome/app/chrome... | 30.805085 | 78 | 0.739202 | [
"vector"
] |
807efafd508a42e3f5bf885479b276e2ac87ac00 | 11,752 | cc | C++ | scf.cc | recoli/MyQC | ab9170930064b742470a6da3327adb779337f41c | [
"BSD-3-Clause"
] | 6 | 2016-10-20T16:52:27.000Z | 2021-09-29T12:24:42.000Z | scf.cc | recoli/MyQC | ab9170930064b742470a6da3327adb779337f41c | [
"BSD-3-Clause"
] | null | null | null | scf.cc | recoli/MyQC | ab9170930064b742470a6da3327adb779337f41c | [
"BSD-3-Clause"
] | 1 | 2021-09-29T12:24:43.000Z | 2021-09-29T12:24:43.000Z | /*****************************************************************************
This file is part of the XLQC program.
Copyright (C) 2015 Xin Li <lixin.reco@gmail.com>
Filename... | 32.464088 | 94 | 0.543057 | [
"vector"
] |
8085c24fcf0d9f3a191bcdca47ba6bdc2abf17db | 4,591 | cc | C++ | homeworks/ErrorEstimatesForTraces/templates/teelaplrobinassembly.cc | padomu/NPDECODES | d2bc5b0d2d5e76e4d5b8ab6948c82f902211182e | [
"MIT"
] | 15 | 2019-04-29T11:28:56.000Z | 2022-03-22T05:10:58.000Z | homeworks/ErrorEstimatesForTraces/templates/teelaplrobinassembly.cc | padomu/NPDECODES | d2bc5b0d2d5e76e4d5b8ab6948c82f902211182e | [
"MIT"
] | 12 | 2020-02-29T15:05:58.000Z | 2022-02-21T13:51:07.000Z | homeworks/ErrorEstimatesForTraces/templates/teelaplrobinassembly.cc | padomu/NPDECODES | d2bc5b0d2d5e76e4d5b8ab6948c82f902211182e | [
"MIT"
] | 26 | 2020-01-09T15:59:23.000Z | 2022-03-24T16:27:33.000Z | /**
* @file
* @brief NPDE homework ErrorEstimatesForTraces
* @author Erick Schulz
* @date 25/03/2019
* @copyright Developed at ETH Zurich
*/
#include "teelaplrobinassembly.h"
#include <cassert>
namespace ErrorEstimatesForTraces {
Eigen::VectorXd solveBVP(
std::shared_ptr<lf::uscalfe::FeSpaceLagrangeO1<dou... | 41.736364 | 79 | 0.705729 | [
"mesh",
"object",
"vector"
] |
808aeafe0465e83e445676bfbb279f91c67a926c | 32,014 | cpp | C++ | frameworks/bridge/js_frontend/engine/v8/v8_animation_bridge.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | null | null | null | frameworks/bridge/js_frontend/engine/v8/v8_animation_bridge.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | null | null | null | frameworks/bridge/js_frontend/engine/v8/v8_animation_bridge.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:50.000Z | 2021-09-13T11:17:50.000Z | /*
* Copyright (c) 2021 Huawei Device 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 law ... | 42.458886 | 120 | 0.685263 | [
"object",
"vector"
] |
8090a0af416d72f1dd4629624757424f8975598d | 494 | cpp | C++ | leet/array/almostIncreasingSequence.cpp | peterlamar/cpp-cp-cheatsheet | 23af2e893992141572005de7a438c3a2d376547e | [
"Apache-2.0"
] | null | null | null | leet/array/almostIncreasingSequence.cpp | peterlamar/cpp-cp-cheatsheet | 23af2e893992141572005de7a438c3a2d376547e | [
"Apache-2.0"
] | null | null | null | leet/array/almostIncreasingSequence.cpp | peterlamar/cpp-cp-cheatsheet | 23af2e893992141572005de7a438c3a2d376547e | [
"Apache-2.0"
] | null | null | null | /*
For sequence = [1, 3, 2, 1], the output should be
almostIncreasingSequence(sequence) = false.
*/
bool almostIncreasingSequence(vector<int> sequence) {
int count = 0;
for (int i=1; i < sequence.size(); i++){
if(sequence[i] <= sequence[i-1]) {
count++;
if ((i>1)&&(i+... | 29.058824 | 114 | 0.508097 | [
"vector"
] |
80928d6352c4a01ebc30d407dde16905cd4cbf35 | 6,700 | cpp | C++ | src/encoding_task.cpp | greendev5/GreenMp3Encoder | cc8f984a024f082f397b472035fde284df2aa53a | [
"Apache-2.0"
] | null | null | null | src/encoding_task.cpp | greendev5/GreenMp3Encoder | cc8f984a024f082f397b472035fde284df2aa53a | [
"Apache-2.0"
] | null | null | null | src/encoding_task.cpp | greendev5/GreenMp3Encoder | cc8f984a024f082f397b472035fde284df2aa53a | [
"Apache-2.0"
] | null | null | null | #include "encoding_task.h"
#include <string.h>
#include <vector>
#include <lame/lame.h>
#include "worker_thread.h"
using namespace GMp3Enc;
EncodingTask::EncodingTask(
const RiffWave &wave,
const std::string &mp3Destination,
size_t taskId)
: wave_(wave)
, sourceFilePath_(wave.riffWav... | 24.452555 | 99 | 0.551642 | [
"vector"
] |
80958eac40e47ceeab8eb8b0f72fc4efafd584a1 | 106 | cpp | C++ | main.cpp | gau0522/Algorithms-DataStructures | c6a262bc582b6b2a3cd0394c25cc1efd9ed1f3ed | [
"MIT"
] | null | null | null | main.cpp | gau0522/Algorithms-DataStructures | c6a262bc582b6b2a3cd0394c25cc1efd9ed1f3ed | [
"MIT"
] | null | null | null | main.cpp | gau0522/Algorithms-DataStructures | c6a262bc582b6b2a3cd0394c25cc1efd9ed1f3ed | [
"MIT"
] | null | null | null | #include<vector>
#include<iostream>
#include<limits.h>
using namespace std;
int main() {
return 0;
} | 11.777778 | 20 | 0.688679 | [
"vector"
] |
8096cbca23bdca92099551b3a067d1824dfeaf77 | 5,997 | cpp | C++ | randmio_dir_connected.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | randmio_dir_connected.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | randmio_dir_connected.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | #include "bct.h"
/*
* Returns a randomized graph with equivalent degree sequence to the original
* weighted directed graph, and with preserved connectedness. On average, each
* edge is rewired ITER times. Out-strength is preserved for weighted graphs,
* while in-strength is not.
*/
MATRIX_T* BCT_NAMESPACE::rand... | 28.023364 | 85 | 0.54594 | [
"vector"
] |
80a81c21e284588a7ea60045aa6b18fd07df40a6 | 13,996 | cpp | C++ | Source/AllProjects/CIDBuild/CIDBuild_ProjectList.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/CIDBuild/CIDBuild_ProjectList.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/CIDBuild/CIDBuild_ProjectList.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDBuild_ProjectList.Cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 08/21/1998
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://open... | 33.165877 | 98 | 0.547299 | [
"object"
] |
80ac468543dfcb1f49effcaafa158b675b842add | 1,597 | cpp | C++ | threshsign/test/TestMisc.cpp | MaggieQi/concord-bft | 8db0cfbec988e691ce592901124bee6617d64be4 | [
"Apache-2.0"
] | null | null | null | threshsign/test/TestMisc.cpp | MaggieQi/concord-bft | 8db0cfbec988e691ce592901124bee6617d64be4 | [
"Apache-2.0"
] | null | null | null | threshsign/test/TestMisc.cpp | MaggieQi/concord-bft | 8db0cfbec988e691ce592901124bee6617d64be4 | [
"Apache-2.0"
] | 1 | 2021-05-18T02:12:33.000Z | 2021-05-18T02:12:33.000Z | // Concord
//
// Copyright (c) 2018 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License").
// You may not use this product except in compliance with the Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyright
// ... | 25.349206 | 81 | 0.691296 | [
"vector"
] |
80ae071233a16e528d8fd1411e6c73f07f41becb | 2,017 | cpp | C++ | src/ColonyAutomata.cpp | aaronshappell/ColonyAutomata | c8e999c0e6cdc53534d208a6dedec686f47db273 | [
"MIT"
] | null | null | null | src/ColonyAutomata.cpp | aaronshappell/ColonyAutomata | c8e999c0e6cdc53534d208a6dedec686f47db273 | [
"MIT"
] | 1 | 2017-09-10T15:04:08.000Z | 2017-09-13T21:14:23.000Z | src/ColonyAutomata.cpp | aaronshappell/ColonyAutomata | c8e999c0e6cdc53534d208a6dedec686f47db273 | [
"MIT"
] | null | null | null | #include <iostream>
#include "ColonyAutomata.h"
ColonyAutomata::ColonyAutomata(int width, int height) : window(sf::VideoMode(width, height), "Colony Automata"), width(width), height(height) {
std::cout << "People memory allocated" << std::endl;
people = new Person[width * height];
/*
for(int r = 0; r < height; r... | 24.597561 | 144 | 0.67179 | [
"render"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.