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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0bb13cfb0c00d0ec1cf38368fe8d74434b262f52 | 16,275 | cpp | C++ | src/lava_lib/reader_bgeo/test/test_pack_fragments6_anim.cpp | cinepost/Falcor | f70bd1d97c064d6f91a017d4409aa2037fd6903a | [
"BSD-3-Clause"
] | 7 | 2018-09-25T23:45:52.000Z | 2021-07-07T04:08:01.000Z | src/lava_lib/reader_bgeo/test/test_pack_fragments6_anim.cpp | cinepost/Falcor | f70bd1d97c064d6f91a017d4409aa2037fd6903a | [
"BSD-3-Clause"
] | 2 | 2021-03-02T10:16:06.000Z | 2021-08-13T10:10:21.000Z | src/lava_lib/reader_bgeo/test/test_pack_fragments6_anim.cpp | cinepost/Lava | f70bd1d97c064d6f91a017d4409aa2037fd6903a | [
"BSD-3-Clause"
] | 3 | 2020-06-07T05:47:48.000Z | 2020-10-03T12:34:54.000Z | /*
* Copyright 2018 Laika, LLC. Authored by Peter Stuart
*
* Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
* http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
* http://opensource.org/licenses/MIT>, at your option. This file may not be
* copied, modified, or distr... | 32.100592 | 82 | 0.661075 | [
"vector",
"transform"
] |
0bb4c4420e440c9c5ab65f515b447fd026ceedcc | 6,099 | cpp | C++ | source/Ch07/drill/calculator08.cpp | Atroox/UDProg-Introduction | ac0ddca66825480c0e3c8fe2d93ba2a57da4068f | [
"CC0-1.0"
] | null | null | null | source/Ch07/drill/calculator08.cpp | Atroox/UDProg-Introduction | ac0ddca66825480c0e3c8fe2d93ba2a57da4068f | [
"CC0-1.0"
] | null | null | null | source/Ch07/drill/calculator08.cpp | Atroox/UDProg-Introduction | ac0ddca66825480c0e3c8fe2d93ba2a57da4068f | [
"CC0-1.0"
] | null | null | null | /*
calculator08buggy.cpp
Helpful comments removed.
We have inserted 3 bugs that the compiler will catch and 3 that it won't.
*/
/* GRAMMAR
=======
Calculation:
Statement
Print
Quit
Calculation Statement
Statement:
Declaration
Expression
Declaration:
"l... | 19.119122 | 94 | 0.597967 | [
"vector"
] |
0bb68a6af1b655357e107af1412d7a0c170404c1 | 15,368 | cc | C++ | rocket/rocket_generator.cc | ebruneton/black_hole_shader | e72b3f293409893a6fa25528b29572c96fc57f57 | [
"BSD-3-Clause"
] | 68 | 2020-04-12T20:40:22.000Z | 2022-03-19T08:20:22.000Z | rocket/rocket_generator.cc | ebruneton/black_hole_shader | e72b3f293409893a6fa25528b29572c96fc57f57 | [
"BSD-3-Clause"
] | null | null | null | rocket/rocket_generator.cc | ebruneton/black_hole_shader | e72b3f293409893a6fa25528b29572c96fc57f57 | [
"BSD-3-Clause"
] | 9 | 2020-07-06T08:46:29.000Z | 2022-03-02T00:20:08.000Z | /**
* Copyright (c) 2020 Eric Bruneton
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condi... | 33.701754 | 80 | 0.594092 | [
"mesh",
"vector"
] |
0bb69c1fd900dbe0049ad50e356be81b9523283f | 6,681 | cc | C++ | nox/src/lib/poll-loop.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/lib/poll-loop.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/lib/poll-loop.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | /* Copyright 2008 (C) Nicira, Inc.
*
* This file is part of NOX.
*
* NOX 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, or
* (at your option) any later version.
*
* N... | 27.607438 | 79 | 0.587487 | [
"vector"
] |
0bbb26ee6aaef5bca242737fcef658be03571563 | 8,839 | cpp | C++ | CmnCtrl1/toolbar2.cpp | zemtsov-artem/PywinautoTestapps | 09153eb9ed3a951f1a7014d7e70e31ae02696b58 | [
"MIT"
] | 2 | 2020-06-17T15:22:30.000Z | 2022-02-08T00:02:03.000Z | CmnCtrl1/toolbar2.cpp | zemtsov-artem/PywinautoTestapps | 09153eb9ed3a951f1a7014d7e70e31ae02696b58 | [
"MIT"
] | 2 | 2016-02-29T20:21:22.000Z | 2020-05-28T00:51:33.000Z | CmnCtrl1/toolbar2.cpp | zemtsov-artem/PywinautoTestapps | 09153eb9ed3a951f1a7014d7e70e31ae02696b58 | [
"MIT"
] | 10 | 2015-12-14T18:55:28.000Z | 2021-06-30T11:39:08.000Z | // ToolBar2.cpp : implementation file
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation prov... | 27.113497 | 107 | 0.716484 | [
"object"
] |
0bbf05fae7dc6b429782faf94e79d8c50d54fe41 | 11,230 | hpp | C++ | include/chronicle/data_log.hpp | ortfero/chronicle | 01142507775676d7e671f5a16353123184cf3e9a | [
"MIT"
] | null | null | null | include/chronicle/data_log.hpp | ortfero/chronicle | 01142507775676d7e671f5a16353123184cf3e9a | [
"MIT"
] | null | null | null | include/chronicle/data_log.hpp | ortfero/chronicle | 01142507775676d7e671f5a16353123184cf3e9a | [
"MIT"
] | null | null | null | /* This file is part of chronicle library
* Copyright 2020-2021 Andrei Ilin <ortfero@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 without restriction, including without l... | 29.397906 | 136 | 0.673197 | [
"vector"
] |
0bc23fa876809877ecb415a6db222df12275dad2 | 16,157 | cpp | C++ | app/PrefsDialog.cpp | Toysoft/ciderpress | 640959dad551ba75a48bd3c49629579730ead351 | [
"BSD-3-Clause"
] | null | null | null | app/PrefsDialog.cpp | Toysoft/ciderpress | 640959dad551ba75a48bd3c49629579730ead351 | [
"BSD-3-Clause"
] | null | null | null | app/PrefsDialog.cpp | Toysoft/ciderpress | 640959dad551ba75a48bd3c49629579730ead351 | [
"BSD-3-Clause"
] | null | null | null | /*
* CiderPress
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
* See the file LICENSE for distribution terms.
*/
#include "stdafx.h"
#include "PrefsDialog.h"
#include "ChooseDirDialog.h"
#ifdef CAN_UPDATE_FILE_ASSOC
#include "EditAssocDialog.h"
#endif
#include "Main.h"
#include "NufxArch... | 31.556641 | 91 | 0.644303 | [
"object"
] |
0bc44b688408a15050784e8b0ba6b7f0b32410e5 | 29,074 | cpp | C++ | src/old/generate_constraints.cpp | souradeep-111/sherlock | bf34fb4713e5140b893c98382055fb963230d69d | [
"MIT"
] | 34 | 2018-02-17T14:18:57.000Z | 2022-03-08T19:21:00.000Z | src/old/generate_constraints.cpp | souradeep-111/sherlock_2 | 763e5817cca2b69f0e96560835a442434980b3a8 | [
"MIT"
] | 4 | 2018-02-09T07:58:44.000Z | 2021-01-15T14:32:02.000Z | src/old/generate_constraints.cpp | souradeep-111/sherlock_2 | 763e5817cca2b69f0e96560835a442434980b3a8 | [
"MIT"
] | 12 | 2018-02-05T15:13:05.000Z | 2021-10-05T04:16:44.000Z | #include "generate_constraints.h"
mutex mtx_gen_cons;
bool debug_gen_constr = true;
constraints_stack :: constraints_stack()
{
env_ptr = new GRBEnv();
erase_line();
env_ptr->set(GRB_IntParam_OutputFlag, 0);
model_ptr = new GRBModel(*env_ptr);
model_ptr->set(GRB_DoubleParam_IntFeasTol, sherlock_parameters.int... | 38.559682 | 134 | 0.687865 | [
"vector"
] |
0bcf61b5b9442b1241ff60a3d4b3a72d3a8869ca | 1,354 | hpp | C++ | ppsh/proc.hpp | easyeagel/core | 3c1c4e5e6337cc319e70ff38af3fa820de0c83dc | [
"MIT"
] | null | null | null | ppsh/proc.hpp | easyeagel/core | 3c1c4e5e6337cc319e70ff38af3fa820de0c83dc | [
"MIT"
] | null | null | null | ppsh/proc.hpp | easyeagel/core | 3c1c4e5e6337cc319e70ff38af3fa820de0c83dc | [
"MIT"
] | null | null | null | // Copyright [2014] <lgb (LiuGuangBao)>
//=====================================================================================
//
// Filename: proc.hpp
//
// Description: Linux proc 文件系统
//
// Version: 1.0
// Created: 2013年12月26日 14时49分23秒
// Revision: none
// Compiler: gcc
//
// ... | 16.119048 | 87 | 0.522157 | [
"vector"
] |
0bd517310d2536600b9dd5d982c87d66245f207c | 4,423 | cc | C++ | TopDownTW.cc | JoeyEremondi/treewidth-memoization | 5cd6be9e05bba189d14409f28c37805948ef11b3 | [
"BSD-3-Clause"
] | 1 | 2015-07-25T15:09:11.000Z | 2015-07-25T15:09:11.000Z | TopDownTW.cc | JoeyEremondi/treewidth-memoization | 5cd6be9e05bba189d14409f28c37805948ef11b3 | [
"BSD-3-Clause"
] | 1 | 2015-09-19T00:44:24.000Z | 2015-09-21T16:47:12.000Z | TopDownTW.cc | JoeyEremondi/treewidth-memoization | 5cd6be9e05bba189d14409f28c37805948ef11b3 | [
"BSD-3-Clause"
] | null | null | null | #include "TopDownTW.hh"
#include "UpperBound.hh"
#include "BottomUpTW.hh"
#include "Simplicial.hh"
#include <algorithm>
#include <iostream>
#include <string>
#include <sstream> // for ostringstream
#include <cassert>
const int maxDictSize = 1000000000;
const int maxBottumUpSize = 1000000000;
const int topLevelNoS... | 20.668224 | 104 | 0.631246 | [
"vector"
] |
0be2f69df31a8b252ed6d23f862b667f921bf704 | 6,346 | cpp | C++ | src/blocks/loop_roll.cpp | AjayBrahmakshatriya/mirror-cpp | f19fdfbfdc3f333a5e20f88374b87a3509dd1af7 | [
"MIT"
] | 46 | 2021-01-06T22:32:35.000Z | 2022-03-20T23:22:36.000Z | src/blocks/loop_roll.cpp | AjayBrahmakshatriya/mirror-cpp | f19fdfbfdc3f333a5e20f88374b87a3509dd1af7 | [
"MIT"
] | 2 | 2021-01-07T15:24:05.000Z | 2022-03-31T18:32:19.000Z | src/blocks/loop_roll.cpp | AjayBrahmakshatriya/mirror-cpp | f19fdfbfdc3f333a5e20f88374b87a3509dd1af7 | [
"MIT"
] | 4 | 2021-03-02T19:25:53.000Z | 2021-12-26T14:12:47.000Z | #include "blocks/loop_roll.h"
#include "builder/builder.h"
#include "builder/dyn_var.h"
namespace block {
static bool is_roll(std::string s) {
if (s != "" && s.length() > 5 && s[0] == 'r' && s[1] == 'o' &&
s[2] == 'l' && s[3] == 'l' && s[4] == '.')
return true;
return false;
}
static int unique_counter = 0;
st... | 29.654206 | 78 | 0.670816 | [
"vector"
] |
0be66ce08e600d71cdd1dae2fea54795b66b50e8 | 28,021 | cc | C++ | dcmtk-master2/dcmsr/libcmr/cid7469.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | dcmtk-master2/dcmsr/libcmr/cid7469.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | dcmtk-master2/dcmsr/libcmr/cid7469.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | /*
*
* Copyright (C) 2015-2021, J. Riesmeier, Oldenburg, Germany
* All rights reserved. See COPYRIGHT file for details.
*
* Source file for class CID7469_GenericIntensityAndSizeMeasurements
*
* Generated automatically from DICOM PS 3.16-2021d
* File created on 2021-09-13 09:26:40 by J. Riesmeier
*
*/
... | 79.379603 | 190 | 0.714714 | [
"mesh",
"shape",
"3d"
] |
0be7f0348d7b46250940dc32817d066b5e12dc01 | 1,893 | cpp | C++ | heap/basic implementation.cpp | BhavinRaichura/algo | 126f4063383a0942f6829a54090d72893ce188a4 | [
"MIT"
] | null | null | null | heap/basic implementation.cpp | BhavinRaichura/algo | 126f4063383a0942f6829a54090d72893ce188a4 | [
"MIT"
] | null | null | null | heap/basic implementation.cpp | BhavinRaichura/algo | 126f4063383a0942f6829a54090d72893ce188a4 | [
"MIT"
] | null | null | null |
void insertIntoHeap(vector<int>&arr,int n){
// n = last element of array which gonna need to add in heap
while(n>0 and arr[n/2]<arr[n]){
int k = arr[n];
arr[n]=arr[n/2];
arr[n/2]=k;
n=n/2;
}
cout<<"max heap: "<<arr[0]<<endl;
}
... | 22.535714 | 73 | 0.37401 | [
"vector"
] |
0beb6196f64cc537a9df32951429b4118c09374c | 5,401 | cpp | C++ | UVA Solved Problem/10047 - The Monocycle/10047 - The Monocycle.cpp | ahmed-dinar/UVA | 5cb43864744475ed7ac94e6cb6cae50ad80603c7 | [
"MIT"
] | null | null | null | UVA Solved Problem/10047 - The Monocycle/10047 - The Monocycle.cpp | ahmed-dinar/UVA | 5cb43864744475ed7ac94e6cb6cae50ad80603c7 | [
"MIT"
] | null | null | null | UVA Solved Problem/10047 - The Monocycle/10047 - The Monocycle.cpp | ahmed-dinar/UVA | 5cb43864744475ed7ac94e6cb6cae50ad80603c7 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<sstream>
#include<cstdlib>
#include<cctype>
#include<cmath>
#include<algorithm>
#include<set>
#include<queue>
#include<deque>
#include<stack>
#include<list>
#include<iostream>
#include<fstream>
#include<numeric>
#include<string>
#include<vector>
#include<cstring>
#include<map>... | 27.416244 | 159 | 0.524162 | [
"vector"
] |
0bf0876599dd12629c3a0bdb48c145ce3d9681ea | 10,772 | hpp | C++ | src/graph/impl/KokkosGraph_Distance2Color_MatrixSquared_impl.hpp | hmaarrfk/kokkos-kernels | d86db111124cea12e23dd3447b6c307f96ef7439 | [
"BSD-3-Clause"
] | null | null | null | src/graph/impl/KokkosGraph_Distance2Color_MatrixSquared_impl.hpp | hmaarrfk/kokkos-kernels | d86db111124cea12e23dd3447b6c307f96ef7439 | [
"BSD-3-Clause"
] | 4 | 2020-01-06T23:37:05.000Z | 2021-06-07T20:03:05.000Z | src/graph/impl/KokkosGraph_Distance2Color_MatrixSquared_impl.hpp | hmaarrfk/kokkos-kernels | d86db111124cea12e23dd3447b6c307f96ef7439 | [
"BSD-3-Clause"
] | null | null | null | /*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... | 45.07113 | 129 | 0.660787 | [
"object",
"vector"
] |
0bf6380135bf1f0f6f4fa437d7eff3e5c725b2d6 | 3,988 | cpp | C++ | src/assetManager.cpp | Yattabyte/MiniAssets | 7e28d0cf03a0833924b8d1cd4edddf4f9e29c97e | [
"BSD-3-Clause"
] | 1 | 2020-06-13T18:52:50.000Z | 2020-06-13T18:52:50.000Z | src/assetManager.cpp | Yattabyte/MiniAssets | 7e28d0cf03a0833924b8d1cd4edddf4f9e29c97e | [
"BSD-3-Clause"
] | null | null | null | src/assetManager.cpp | Yattabyte/MiniAssets | 7e28d0cf03a0833924b8d1cd4edddf4f9e29c97e | [
"BSD-3-Clause"
] | null | null | null | #include "assetManager.hpp"
#include <algorithm>
#include <chrono>
#include <thread>
///////////////////////////////////////////////////////////////////////////
/// Use our shared namespace mini
using namespace mini;
///////////////////////////////////////////////////////////////////////////
/// shareAsset
//////////... | 36.587156 | 116 | 0.52332 | [
"vector"
] |
0bfa1b57206f389c6c62ed3778ea913de16a2ccc | 6,477 | cpp | C++ | VCL/Frames/archive/TClientSocketFrameUsingVCLSocket.cpp | TotteKarlsson/dsl | 3807cbe5f90a3cd495979eafa8cf5485367b634c | [
"BSD-2-Clause"
] | null | null | null | VCL/Frames/archive/TClientSocketFrameUsingVCLSocket.cpp | TotteKarlsson/dsl | 3807cbe5f90a3cd495979eafa8cf5485367b634c | [
"BSD-2-Clause"
] | null | null | null | VCL/Frames/archive/TClientSocketFrameUsingVCLSocket.cpp | TotteKarlsson/dsl | 3807cbe5f90a3cd495979eafa8cf5485367b634c | [
"BSD-2-Clause"
] | null | null | null | #ifdef MTK_PCH
#include "dsl_pch.h"
#endif
#pragma hdrstop
#include <string>
#include <vector>
#include "TClientSocketFrameUsingVCLSocket.h"
#include "dslUtils.h"
#include "dslVCLUtils.h"
using namespace std;
using namespace dsl;
//---------------------------------------------------------------------------
#pragma pac... | 30.408451 | 122 | 0.537131 | [
"vector"
] |
0bfde2b5636813fd7794910202fd24aacfc67f0d | 1,344 | cpp | C++ | src/bits_of_matcha/engine/ops/Multiply.cpp | matcha-ai/matcha | c1375fc2bfc9fadcbd643fc1540e3ac470dd9408 | [
"MIT"
] | null | null | null | src/bits_of_matcha/engine/ops/Multiply.cpp | matcha-ai/matcha | c1375fc2bfc9fadcbd643fc1540e3ac470dd9408 | [
"MIT"
] | null | null | null | src/bits_of_matcha/engine/ops/Multiply.cpp | matcha-ai/matcha | c1375fc2bfc9fadcbd643fc1540e3ac470dd9408 | [
"MIT"
] | null | null | null | #include "bits_of_matcha/engine/ops/Multiply.h"
#include "bits_of_matcha/engine/cpu/kernels/fill.h"
#include "bits_of_matcha/engine/cpu/kernels/elementwiseBinaryBack.h"
namespace matcha::engine::ops {
Multiply::Multiply(Tensor* a, Tensor* b)
: ElementwiseBinaryOp(a, b)
{}
OpMeta<Multiply> Multiply::meta {
.name... | 20.676923 | 68 | 0.588542 | [
"shape"
] |
0bfe843b1c9573548d7ee51a703a8b130c425e62 | 2,491 | cpp | C++ | tests/cpp/countingBits/CountingBits.cpp | zlc18/LocalJudge | e8b141d2e80087d447a45cce36bac27b4ddb9cd1 | [
"MIT"
] | null | null | null | tests/cpp/countingBits/CountingBits.cpp | zlc18/LocalJudge | e8b141d2e80087d447a45cce36bac27b4ddb9cd1 | [
"MIT"
] | null | null | null | tests/cpp/countingBits/CountingBits.cpp | zlc18/LocalJudge | e8b141d2e80087d447a45cce36bac27b4ddb9cd1 | [
"MIT"
] | null | null | null | // Source : https://leetcode.com/problems/counting-bits/
// Author : Hao Chen
// Date : 2016-05-30
/***************************************************************************************
*
* Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤
* num calculate the number of 1's in t... | 36.632353 | 89 | 0.531513 | [
"vector"
] |
0bff3f800256e9d6828ed1e49224307d3d3e0b0f | 94 | cpp | C++ | limbo/thirdparty/dlx/test/polyomino/deps.cpp | RedFantom/limbo | 8d3e0d484a809fb4b3ff8aa72fd972d16cdab405 | [
"MIT"
] | 74 | 2017-10-19T03:10:52.000Z | 2022-03-28T17:51:54.000Z | limbo/thirdparty/dlx/test/polyomino/deps.cpp | RedFantom/limbo | 8d3e0d484a809fb4b3ff8aa72fd972d16cdab405 | [
"MIT"
] | 3 | 2017-12-06T01:49:21.000Z | 2020-06-22T00:08:12.000Z | limbo/thirdparty/dlx/test/polyomino/deps.cpp | RedFantom/limbo | 8d3e0d484a809fb4b3ff8aa72fd972d16cdab405 | [
"MIT"
] | 26 | 2017-11-07T10:32:54.000Z | 2021-10-02T02:22:37.000Z | #include "../../example/polyomino/Polyomino.cpp"
#include "../../example/polyomino/Shape.cpp"
| 31.333333 | 48 | 0.702128 | [
"shape"
] |
0bffa18de394931b0340b130392b5e8c4922f6c2 | 4,674 | hpp | C++ | shadow/operators/kernels/scale.hpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 20 | 2017-07-04T11:22:47.000Z | 2022-01-16T03:58:32.000Z | shadow/operators/kernels/scale.hpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 2 | 2017-12-03T13:07:39.000Z | 2021-01-13T11:11:52.000Z | shadow/operators/kernels/scale.hpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 10 | 2017-09-30T05:06:30.000Z | 2020-11-13T05:43:44.000Z | #ifndef SHADOW_OPERATORS_KERNELS_SCALE_HPP_
#define SHADOW_OPERATORS_KERNELS_SCALE_HPP_
#include "core/kernel.hpp"
namespace Shadow {
namespace Vision {
template <DeviceType D, typename T>
void ScaleBias(const T* in_data, int count, const T* scale_data,
const T* bias_data, int scale_num, int inner_nu... | 38.95 | 80 | 0.602054 | [
"shape"
] |
0406e6f89459dcbcf12c9c7ca38cb3f999c1ecb5 | 20,906 | cxx | C++ | main/bridges/source/cpp_uno/msvc_win32_intel/except.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/bridges/source/cpp_uno/msvc_win32_intel/except.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/bridges/source/cpp_uno/msvc_win32_intel/except.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 33.289809 | 104 | 0.589448 | [
"object"
] |
0407d432300959d88db1baeb067ade3f86a3e3fd | 4,578 | cpp | C++ | src/particles.cpp | Tearnote/Minote | 35f63fecc01cf9199db1098256277465e1d41d1e | [
"MIT"
] | 8 | 2021-01-18T12:06:21.000Z | 2022-02-13T17:12:56.000Z | src/particles.cpp | Tearnote/Minote | 35f63fecc01cf9199db1098256277465e1d41d1e | [
"MIT"
] | null | null | null | src/particles.cpp | Tearnote/Minote | 35f63fecc01cf9199db1098256277465e1d41d1e | [
"MIT"
] | null | null | null | /**
* Implementation of effects.h
* @file
*/
#include "particles.hpp"
#include <time.h>
#include "cephes/protos.h"
#include "base/array.hpp"
#include "sys/glfw.hpp"
#include "engine/model.hpp"
#include "base/util.hpp"
#include "base/rng.hpp"
using namespace minote;
/// Progress level after which a particle begin... | 26.16 | 82 | 0.683049 | [
"model",
"transform"
] |
040a78ef4f78cfd3a038dcf06a06e5eaae547cc4 | 5,731 | cc | C++ | src/geometry.cc | bengoana/CPURaytracer | ded16cad975d7e9b5ce6cb715c91403718786316 | [
"MIT"
] | null | null | null | src/geometry.cc | bengoana/CPURaytracer | ded16cad975d7e9b5ce6cb715c91403718786316 | [
"MIT"
] | null | null | null | src/geometry.cc | bengoana/CPURaytracer | ded16cad975d7e9b5ce6cb715c91403718786316 | [
"MIT"
] | null | null | null | /*---------------------------------------------------------------------
Copyright (c) 2020 Pablo Bengoa (bengoana)
https://github.com/bengoana
This software is released under the MIT license.
This program is a college project uploaded for showcase purposes.
-----------------------------------------------------... | 27.161137 | 121 | 0.573547 | [
"mesh",
"geometry",
"shape",
"vector"
] |
0416b0b54fdf84b456596d13227627c513399da0 | 49,852 | cpp | C++ | sta-src/Entry/reentry.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 6 | 2018-09-05T12:41:59.000Z | 2021-07-01T05:34:23.000Z | sta-src/Entry/reentry.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-02-07T19:09:21.000Z | 2015-08-14T03:15:42.000Z | sta-src/Entry/reentry.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-03-25T15:50:31.000Z | 2017-12-06T12:16:47.000Z | /*
This program is free software; you can redistribute it and/or modify it under
the terms of the European Union Public Licence - EUPL v.1.1 as published by
the European Commission.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of... | 42.499574 | 203 | 0.644347 | [
"model"
] |
0417a03fe5099e5e86ac65c7cb27ee5e2fb48541 | 7,076 | cpp | C++ | controller/net/PacketReassembler.cpp | danog/libtgvoip | e6211103f04f728200504c0756eff3561746e218 | [
"Unlicense"
] | 1 | 2018-10-20T18:40:21.000Z | 2018-10-20T18:40:21.000Z | controller/net/PacketReassembler.cpp | danog/libtgvoip | e6211103f04f728200504c0756eff3561746e218 | [
"Unlicense"
] | null | null | null | controller/net/PacketReassembler.cpp | danog/libtgvoip | e6211103f04f728200504c0756eff3561746e218 | [
"Unlicense"
] | 1 | 2019-02-03T18:42:01.000Z | 2019-02-03T18:42:01.000Z | //
// Created by Grishka on 19.03.2018.
//
#include "PacketReassembler.h"
#include "tools/logging.h"
#include "VoIPController.h"
#include "video/VideoFEC.h"
#include <assert.h>
#include <sstream>
#define NUM_OLD_PACKETS 3
#define NUM_FEC_PACKETS 10
using namespace tgvoip;
using namespace tgvoip::video;
PacketReass... | 25.824818 | 166 | 0.657434 | [
"vector"
] |
04207f45fe19ec54b02e7ce643ef9108b1765584 | 2,678 | cpp | C++ | Linux/condor-remove/moc_Condor_Remove.cpp | BigWhiteCat/Qt-QML | 7d601721db535167ea257e8baffc1de83cc0aa15 | [
"MIT"
] | null | null | null | Linux/condor-remove/moc_Condor_Remove.cpp | BigWhiteCat/Qt-QML | 7d601721db535167ea257e8baffc1de83cc0aa15 | [
"MIT"
] | null | null | null | Linux/condor-remove/moc_Condor_Remove.cpp | BigWhiteCat/Qt-QML | 7d601721db535167ea257e8baffc1de83cc0aa15 | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'Condor_Remove.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.1)
**
** WARNING! All changes made in this file will be lost!
******************************************************... | 29.428571 | 96 | 0.658327 | [
"object"
] |
04235748db6125964043d9365fa959c6f1ab0e55 | 33,402 | cpp | C++ | src/gui/video_writer_ufmf.cpp | hhhHanqing/bias | ac409978ac0bfc6bc4cf8570bf7ce7509e81a219 | [
"Apache-2.0"
] | 5 | 2020-07-23T18:59:08.000Z | 2021-12-14T02:56:12.000Z | src/gui/video_writer_ufmf.cpp | hhhHanqing/bias | ac409978ac0bfc6bc4cf8570bf7ce7509e81a219 | [
"Apache-2.0"
] | 4 | 2020-08-30T13:55:22.000Z | 2022-03-24T21:14:15.000Z | src/gui/video_writer_ufmf.cpp | hhhHanqing/bias | ac409978ac0bfc6bc4cf8570bf7ce7509e81a219 | [
"Apache-2.0"
] | 3 | 2020-10-04T17:53:15.000Z | 2022-02-24T05:55:53.000Z | #include "video_writer_ufmf.hpp"
#include "basic_types.hpp"
#include "exception.hpp"
#include "lockable.hpp"
#include "background_data_ufmf.hpp"
#include "background_histogram_ufmf.hpp"
#include "background_median_ufmf.hpp"
#include <QThreadPool>
#include <QFileInfo>
#include <QDir>
#include <iostream>
nam... | 38.975496 | 111 | 0.545536 | [
"vector",
"model"
] |
04266ca3961ab38ed517fa071b0c368f8eac43da | 9,130 | cpp | C++ | src/shader.cpp | jondgoodwin/pegasus3d | b30cf4bcc707b4aca9c32c3fbd5aafc3798d7ec5 | [
"MIT-0",
"MIT"
] | 4 | 2018-01-01T08:57:08.000Z | 2021-12-01T14:36:58.000Z | src/shader.cpp | jondgoodwin/pegasus3d | b30cf4bcc707b4aca9c32c3fbd5aafc3798d7ec5 | [
"MIT-0",
"MIT"
] | null | null | null | src/shader.cpp | jondgoodwin/pegasus3d | b30cf4bcc707b4aca9c32c3fbd5aafc3798d7ec5 | [
"MIT-0",
"MIT"
] | null | null | null | /** Shader compilation and use
* @file
*
* This source file is part of the Pegasus3d browser.
* See Copyright Notice in pegasus3d.h
*/
#include <stdio.h>
#include <stdlib.h>
#include "pegasus3d.h"
#include "xyzmath.h"
/** Structure for holding a ready-to-use shader program.
We do this so that we can depend on ... | 37.418033 | 143 | 0.697152 | [
"render",
"shape"
] |
54b685ceb36ffb164286027b2ed7c3316934ce0a | 2,143 | hpp | C++ | solid/frame/aio/aioactor.hpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 26 | 2015-08-25T16:07:58.000Z | 2019-07-05T15:21:22.000Z | solid/frame/aio/aioactor.hpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-10-15T22:55:15.000Z | 2017-09-19T12:41:10.000Z | solid/frame/aio/aioactor.hpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-09-15T10:34:52.000Z | 2018-10-30T11:46:46.000Z | // solid/frame/aio/aioactor.hpp
//
// Copyright (c) 2014 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.
//
#pragma once
... | 21.646465 | 90 | 0.65749 | [
"solid"
] |
54bbb51d3732d7b0d562079c6c8181c46379e792 | 1,181 | hpp | C++ | tests/models/models/role.hpp | MrAhmedSayedAli/TinyORM | f185e76cfa955475df9b807c3e7ecaa4c20989c0 | [
"MIT"
] | 4 | 2021-07-07T01:21:34.000Z | 2022-02-01T01:38:24.000Z | tests/models/models/role.hpp | MrAhmedSayedAli/TinyORM | f185e76cfa955475df9b807c3e7ecaa4c20989c0 | [
"MIT"
] | 2 | 2022-03-04T10:57:15.000Z | 2022-03-26T17:10:28.000Z | tests/models/models/role.hpp | MrAhmedSayedAli/TinyORM | f185e76cfa955475df9b807c3e7ecaa4c20989c0 | [
"MIT"
] | 2 | 2021-08-10T01:31:31.000Z | 2022-03-04T10:37:42.000Z | #pragma once
#ifndef MODELS_ROLE_HPP
#define MODELS_ROLE_HPP
#include "orm/tiny/model.hpp"
#include "models/roleuser.hpp"
#include "models/user.hpp"
namespace Models
{
using Orm::Constants::NAME;
using Orm::Tiny::Model;
using Orm::Tiny::Relations::BelongsToMany;
class User;
// NOLINTNEXTLINE(misc-no-recursion)
cl... | 21.089286 | 100 | 0.660457 | [
"model"
] |
54c26aa604b7144429f02d1fe2c3e24e5fc8d511 | 3,619 | hpp | C++ | test/SurveySystemTest.hpp | CBcidco/MBES-lib | 6b7759554db48c62d6b350d315283eb3fe0fd009 | [
"MIT"
] | 13 | 2019-10-29T14:16:13.000Z | 2022-02-24T06:44:37.000Z | test/SurveySystemTest.hpp | CBcidco/MBES-lib | 6b7759554db48c62d6b350d315283eb3fe0fd009 | [
"MIT"
] | 62 | 2019-04-16T13:53:50.000Z | 2022-03-07T19:44:23.000Z | test/SurveySystemTest.hpp | CBcidco/MBES-lib | 6b7759554db48c62d6b350d315283eb3fe0fd009 | [
"MIT"
] | 18 | 2019-04-10T19:51:21.000Z | 2022-01-31T21:42:22.000Z | /*
* Copyright 2017 © Centre Interdisciplinaire de développement en Cartographie des Océans (CIDCO), Tous droits réservés
*/
/*
* File: SurveySystemTest.cpp
* Author: glm,jordan
*
*/
#include <Eigen/Dense>
#include <Eigen/src/Core/Matrix.h>
#include "catch.hpp"
#include "../src/SurveySystem.hpp"
#include "../... | 31.469565 | 123 | 0.629179 | [
"model"
] |
54c28b729b7e69869111ac265aa3acb26d133bab | 28,669 | cpp | C++ | applications/plugins/Compliant/odesolver/CompliantImplicitSolver.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/Compliant/odesolver/CompliantImplicitSolver.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/Compliant/odesolver/CompliantImplicitSolver.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | #include "CompliantImplicitSolver.h"
#include <SofaEigen2Solver/EigenSparseMatrix.h>
#include <sofa/core/ObjectFactory.h>
#include "../assembly/AssemblyVisitor.h"
#include "../utils/scoped.h"
namespace sofa {
namespace component {
namespace odesolver {
SOFA_DECL_CLASS(CompliantImplicitSolver)
int CompliantImplicitS... | 36.992258 | 293 | 0.562036 | [
"vector"
] |
54c3d46c69360b9b0b975d0fba1d1449501ad288 | 23,502 | cc | C++ | contrib/fluxbox/src/FocusControl.cc | xk2600/lightbox | 987d901366fe706de1a8bbd1efd49b87abff3e0b | [
"BSD-2-Clause"
] | null | null | null | contrib/fluxbox/src/FocusControl.cc | xk2600/lightbox | 987d901366fe706de1a8bbd1efd49b87abff3e0b | [
"BSD-2-Clause"
] | 2 | 2017-05-30T05:21:59.000Z | 2018-03-14T07:21:33.000Z | src/FocusControl.cc | antix-skidoo/fluxbox | b83ee923f4ab2ab51f3b8c14343bda0579e538c6 | [
"MIT"
] | null | null | null | // FocusControl.cc
// Copyright (c) 2006 Fluxbox Team (fluxgen at fluxbox dot org)
//
// 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
// t... | 33.148096 | 99 | 0.617564 | [
"model"
] |
54cc5366a49a3c7588e4528dd7f2224b1fb14bf3 | 51,882 | cpp | C++ | src/miner.cpp | xoleozhao/BitCash | 988186531b3c17d73a396dfdbc9dadf1fb4e4212 | [
"MIT"
] | null | null | null | src/miner.cpp | xoleozhao/BitCash | 988186531b3c17d73a396dfdbc9dadf1fb4e4212 | [
"MIT"
] | null | null | null | src/miner.cpp | xoleozhao/BitCash | 988186531b3c17d73a396dfdbc9dadf1fb4e4212 | [
"MIT"
] | null | null | null | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <miner.h>
#include <amount.h>
#include <boost/algorithm/string.hpp>
#in... | 35.317903 | 229 | 0.625072 | [
"vector"
] |
54d1311e53b5608db9746f4bc0dfba4a3bfefec7 | 535 | cpp | C++ | 06_TessellateTeapot/TeapotPatch.cpp | techlabxe/vulkan_book_3 | 039e6de75f5513155f3dd86321eec4cb4f10bcb3 | [
"CC-BY-3.0"
] | 2 | 2020-05-13T13:00:03.000Z | 2021-04-13T02:47:10.000Z | 06_TessellateTeapot/TeapotPatch.cpp | techlabxe/vulkan_book_3 | 039e6de75f5513155f3dd86321eec4cb4f10bcb3 | [
"CC-BY-3.0"
] | null | null | null | 06_TessellateTeapot/TeapotPatch.cpp | techlabxe/vulkan_book_3 | 039e6de75f5513155f3dd86321eec4cb4f10bcb3 | [
"CC-BY-3.0"
] | 3 | 2020-05-13T13:00:07.000Z | 2022-03-12T18:35:56.000Z | #include "TeapotPatch.h"
#include <algorithm>
#include <sstream>
#include <iomanip>
#include <Windows.h>
using namespace TeapotPatch;
#include "TeapotPatch2.inc"
std::vector<vec3> TeapotPatch::GetTeapotPatchPoints()
{
std::vector<vec3> controls(teapot_points, teapot_points + _countof(teapot_points));
... | 22.291667 | 96 | 0.734579 | [
"vector"
] |
54d42024fe960939d7ac261da01ec2c89a5143a3 | 14,179 | cpp | C++ | src/Synthesis/sat_swap_synth.cpp | paniash/tweedledum | fe997bea3413a02033d76b20034e3a24b840bffb | [
"MIT"
] | 76 | 2018-07-21T08:12:17.000Z | 2022-01-25T06:22:25.000Z | src/Synthesis/sat_swap_synth.cpp | paniash/tweedledum | fe997bea3413a02033d76b20034e3a24b840bffb | [
"MIT"
] | 44 | 2018-10-26T10:44:39.000Z | 2022-02-07T01:07:38.000Z | src/Synthesis/sat_swap_synth.cpp | paniash/tweedledum | fe997bea3413a02033d76b20034e3a24b840bffb | [
"MIT"
] | 23 | 2018-09-27T15:28:48.000Z | 2022-03-07T12:21:37.000Z | /*------------------------------------------------------------------------------
| Part of Tweedledum Project. This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*-----------------------------------------------------------------------------*/
#include "tweedledum/Synthesis/sa... | 35.896203 | 80 | 0.527259 | [
"vector",
"model"
] |
54d96cc07ac102befca559290d964e327a00c3d9 | 736 | cpp | C++ | cpp/011-020/Letter Combinations of a Phone Number.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/011-020/Letter Combinations of a Phone Number.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/011-020/Letter Combinations of a Phone Number.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
public:
vector<string> letterCombinations(string digits) {
string symbols[10] = {"", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"};
vector<string> result;
if (digits.empty()) {
return result;
}
result.push_back("");
... | 26.285714 | 96 | 0.434783 | [
"vector"
] |
54e40e77524998395be2b4db2ca2d0894f8aa076 | 14,047 | cpp | C++ | master.cpp | umbax/HyGP_3_0 | 2cd156e3c3b1ab6a60aadfe4f774a9a8bb169589 | [
"Apache-2.0"
] | 3 | 2017-07-08T21:53:12.000Z | 2022-02-09T08:16:48.000Z | master.cpp | umbax/HyGP_3_0 | 2cd156e3c3b1ab6a60aadfe4f774a9a8bb169589 | [
"Apache-2.0"
] | null | null | null | master.cpp | umbax/HyGP_3_0 | 2cd156e3c3b1ab6a60aadfe4f774a9a8bb169589 | [
"Apache-2.0"
] | 1 | 2017-07-08T21:53:02.000Z | 2017-07-08T21:53:02.000Z | // Copyright 2016 Dr Umberto Armani
//
// 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... | 41.559172 | 152 | 0.654802 | [
"object"
] |
54e456ee3ac98d48067703cd29c0a5c531019778 | 632 | hpp | C++ | include/SimEngine/SmartThingSchedule.hpp | buzyaba/SimEngine | e5469f927154de43ea52ad74c0ca4a0af9a7b721 | [
"MIT"
] | 5 | 2019-10-21T11:38:56.000Z | 2020-05-30T04:50:50.000Z | include/SimEngine/SmartThingSchedule.hpp | buzyaba/SimEngine | e5469f927154de43ea52ad74c0ca4a0af9a7b721 | [
"MIT"
] | 2 | 2020-03-16T13:16:27.000Z | 2020-10-10T07:35:15.000Z | include/SimEngine/SmartThingSchedule.hpp | buzyaba/SimEngine | e5469f927154de43ea52ad74c0ca4a0af9a7b721 | [
"MIT"
] | 3 | 2019-10-10T15:10:57.000Z | 2020-02-14T13:11:50.000Z | #pragma once
#include <string>
#include <vector>
#include "SimEngine/SmartThing.h"
#include "../lib/pugixml/include/pugixml.hpp"
#include "SimEngine/common.h"
#include <stdexcept>
class TSmartThingSchedule {
public:
TSmartThingSchedule() = default;
TSmartThingSchedule(std::vector<TSmartThing*>& _things, std::str... | 25.28 | 79 | 0.751582 | [
"vector"
] |
54e47a3e859b0c0437fcce1f4f6a84814927104b | 474 | cpp | C++ | examples/exporting/save/save_2.cpp | kurogane1031/matplotplusplus | 44d21156edba8effe1e764a8642b0b70590d597b | [
"MIT"
] | 2 | 2020-09-02T14:02:26.000Z | 2020-10-28T07:00:44.000Z | examples/exporting/save/save_2.cpp | kurogane1031/matplotplusplus | 44d21156edba8effe1e764a8642b0b70590d597b | [
"MIT"
] | null | null | null | examples/exporting/save/save_2.cpp | kurogane1031/matplotplusplus | 44d21156edba8effe1e764a8642b0b70590d597b | [
"MIT"
] | 2 | 2020-09-01T16:22:07.000Z | 2020-09-02T14:02:27.000Z | #include <matplot/matplot.h>
int main() {
using namespace matplot;
auto f = figure(true);
std::vector<double> x = {2, 4, 7, 2, 4, 5, 2, 5, 1, 4};
bar(x);
save("img/barchart_ps","postscript");
save("img/barchart_latex","epslatex");
/*
* Add to your latex document:
* \begin{figur... | 19.75 | 59 | 0.561181 | [
"vector"
] |
54e723b2953bbfb9ae1c6bf3b3878868f0da48d5 | 3,951 | cpp | C++ | drl_fluid_film_python3/gym-film/gym_film/envs/simulation_solver/advect_in_time.cpp | vbelus/falling-liquid-film-drl | b2fe80ffecbb71afb0bef8ded0d47e823b283868 | [
"MIT"
] | 13 | 2019-12-03T11:54:39.000Z | 2022-02-03T17:44:19.000Z | drl_fluid_film_python3/gym-film/gym_film/envs/simulation_solver/advect_in_time.cpp | vbelus/falling-liquid-film-drl | b2fe80ffecbb71afb0bef8ded0d47e823b283868 | [
"MIT"
] | 4 | 2019-11-29T16:46:10.000Z | 2019-12-10T15:25:28.000Z | drl_fluid_film_python3/gym-film/gym_film/envs/simulation_solver/advect_in_time.cpp | vbelus/falling-liquid-film-drl | b2fe80ffecbb71afb0bef8ded0d47e823b283868 | [
"MIT"
] | 3 | 2019-12-04T12:39:09.000Z | 2022-02-25T03:17:00.000Z | #include <valarray>
#include "TVD3.h"
#include "advect_in_time.h"
#include <cassert>
#include "utils.h"
#include <vector>
#define MACRO_H_XX(i) ((h[i-1] + h[i+1] - 2.0 * h[i]) / dx / dx)
namespace ait
{
void advect_in_time(std::valarray<double> & h,
std::valarray<double> & q,
std::valarray<double> & noise,... | 27.823944 | 155 | 0.498861 | [
"vector"
] |
54e84776d0bd6e81a3aa266f2cf5a2574d8c3efc | 411 | cpp | C++ | Codeforces/Round-494-Div3/C.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | Codeforces/Round-494-Div3/C.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | Codeforces/Round-494-Div3/C.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | // Brute Force
// 2
// 08-01-2019
#include <bits/stdc++.h>
using namespace std;
int main () {
int n, k;
cin >> n >> k;
vector <int> arr(n + 1, 0);
for (int i = 1; i <= n; i++) cin >> arr[i], arr[i] += arr[i - 1];
double ans = 0;
for (int i = 1; i <= n; i++) for (int j = i + k - 1; j <= n; j++) ans = max(... | 21.631579 | 126 | 0.457421 | [
"vector"
] |
54e9b59ae357cde7a30513949652bec9e74a48a7 | 60,015 | cpp | C++ | plugins/stereo/resnet18_1025x321_net.cpp | ddoron9/jetson-inference | a96e2e70f3c08dd8c9625dc8929809e9b5cff07c | [
"MIT"
] | 5,788 | 2016-08-22T09:09:46.000Z | 2022-03-31T17:05:54.000Z | plugins/stereo/resnet18_1025x321_net.cpp | barisulgen/jetson-inference | 4e6b7ff37935a9bc64271119f42cd25366ce8c79 | [
"MIT"
] | 1,339 | 2016-08-15T08:51:10.000Z | 2022-03-31T18:44:20.000Z | plugins/stereo/resnet18_1025x321_net.cpp | barisulgen/jetson-inference | 4e6b7ff37935a9bc64271119f42cd25366ce8c79 | [
"MIT"
] | 2,730 | 2016-08-23T11:04:26.000Z | 2022-03-30T14:06:08.000Z | // Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
// Full license terms provided in LICENSE.md file.
//-------------------------------------------------------------------
// !!! This file was automatically generated. Do not edit. !!!
//-------------------------------------------------------------------
... | 57.873674 | 160 | 0.694043 | [
"3d"
] |
54eae3b2d0f63acf3dd62f4e5e16ba588d0b9c63 | 1,157 | cpp | C++ | mine/17-letter_combination_of_a_phone_number.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | mine/17-letter_combination_of_a_phone_number.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | mine/17-letter_combination_of_a_phone_number.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | class Solution {
public:
vector<string> recursiveBody(vector<string> prev, string digits){
if(digits.size() == 0) return prev;
char c = digits[0];
vector<char> c_digits;
switch(c){
case '2': c_digits = {'a', 'b', 'c'}; break;
case '3': c_digits = {'d',... | 36.15625 | 70 | 0.438202 | [
"vector"
] |
54f1b14524d2cccc20770776a896b2a5696d51f2 | 707 | hpp | C++ | input/raw/out_of_band.hpp | 5cript/debugger-interface | 61d6fd73275b2240f61f19a3978015d9bb0c1e3c | [
"MIT"
] | null | null | null | input/raw/out_of_band.hpp | 5cript/debugger-interface | 61d6fd73275b2240f61f19a3978015d9bb0c1e3c | [
"MIT"
] | null | null | null | input/raw/out_of_band.hpp | 5cript/debugger-interface | 61d6fd73275b2240f61f19a3978015d9bb0c1e3c | [
"MIT"
] | null | null | null | #pragma once
#include "result.hpp"
#include "../../adapt.hpp"
#include <boost/optional.hpp>
namespace DebuggerInterface::RawData
{
struct StreamRecord
{
char type;
std::string value;
bool wasSet;
};
struct OutOfBand
{
boost::optional <long long> ... | 18.128205 | 51 | 0.612447 | [
"vector"
] |
54f28722deb9ede394afe429e13c60275b2058c1 | 4,274 | hpp | C++ | 3rdparty/mml/mml/src/mml/window/unix/clipboard_impl.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 791 | 2016-11-04T14:13:41.000Z | 2022-03-20T20:47:31.000Z | 3rdparty/mml/mml/src/mml/window/unix/clipboard_impl.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 28 | 2016-12-01T05:59:30.000Z | 2021-03-20T09:49:26.000Z | 3rdparty/mml/mml/src/mml/window/unix/clipboard_impl.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 151 | 2016-12-21T09:44:43.000Z | 2022-03-31T13:42:18.000Z | #ifndef MML_CLIPBOARD_IMPL_HPP
#define MML_CLIPBOARD_IMPL_HPP
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <X11/Xlib.h>
#include <deque>
#include <string>
namespace mml
{
namespace priv
{
////////////////////////////////... | 33.390625 | 97 | 0.441507 | [
"object"
] |
07098efaca677b8480ad29eab53d91ae451fb59c | 5,169 | cpp | C++ | src/AerialImage.cpp | matheusbg8/aracati2017 | bb00a847e02087f012c9094126120ea5f0a9324c | [
"MIT"
] | 1 | 2022-03-24T04:46:50.000Z | 2022-03-24T04:46:50.000Z | src/AerialImage.cpp | matheusbg8/aracati2017 | bb00a847e02087f012c9094126120ea5f0a9324c | [
"MIT"
] | null | null | null | src/AerialImage.cpp | matheusbg8/aracati2017 | bb00a847e02087f012c9094126120ea5f0a9324c | [
"MIT"
] | 1 | 2022-01-01T04:28:31.000Z | 2022-01-01T04:28:31.000Z | #include "AerialImage.h"
bool AerialImage::loadYaml(const path &file)
{
// if(!is_regular_file(file))
// return false;
//cout << "Load map config from " << file.string() << endl;
FileStorage fs;
fs.open(file.string(), FileStorage::READ | FileStorage::FORMAT_YAML);
if (!fs.isOpened())
{
... | 23.179372 | 106 | 0.609402 | [
"transform"
] |
071002e68c1bfb13e5680b67aec4c971e825ac30 | 25,166 | hpp | C++ | src/old_arrayview.hpp | dblalock/conv | 90ef25db56a1f8855b8aa4950acd3b57499700d5 | [
"Apache-2.0"
] | null | null | null | src/old_arrayview.hpp | dblalock/conv | 90ef25db56a1f8855b8aa4950acd3b57499700d5 | [
"Apache-2.0"
] | null | null | null | src/old_arrayview.hpp | dblalock/conv | 90ef25db56a1f8855b8aa4950acd3b57499700d5 | [
"Apache-2.0"
] | null | null | null | //
// array.hpp
// Arr
//
// Created by DB on 11/21/18.
// Copyright © 2018 D Blalock. All rights reserved.
//
#ifndef arrayview_h
#define arrayview_h
#include <array>
#include <assert.h>
//#include "bint.hpp"
#include "macros.hpp" // for SFINAE macros
namespace ar {
//#include "array_utils.hpp" // for debug
... | 37.617339 | 98 | 0.642255 | [
"shape"
] |
071338842daa3a9fac3f08a9288ece62b63715a8 | 2,623 | cpp | C++ | Arduino/Wheelly/IMU.cpp | m-marini/wheelly | 80446e72c9e44f8f845cdcd96325ae4d9632e643 | [
"MIT"
] | null | null | null | Arduino/Wheelly/IMU.cpp | m-marini/wheelly | 80446e72c9e44f8f845cdcd96325ae4d9632e643 | [
"MIT"
] | 16 | 2022-02-13T16:16:13.000Z | 2022-03-27T18:27:09.000Z | Arduino/Wheelly/IMU.cpp | m-marini/wheelly | 80446e72c9e44f8f845cdcd96325ae4d9632e643 | [
"MIT"
] | null | null | null | #include "IMU.h"
#define G_VALUE 9.80665
#define ACC_SCALE (4.0 * G_VALUE / 32768.0)
#define GYRO_SCALE (1.0 / 32768.0)
#define WATCH_DOG_INTERVAL 100000ul
IMU::IMU(MPU6050& mpu) : _mpu {mpu} {
_watchDogInterval = WATCH_DOG_INTERVAL;
_devStatus = IMU_FAILURE_STATUS;
}
void IMU::b... | 23.419643 | 78 | 0.642013 | [
"vector"
] |
071a23bcfb8f716d3b746814e94a9234e28289bc | 3,621 | cpp | C++ | aws-cpp-sdk-dms/source/model/ReplicationSubnetGroup.cpp | ambasta/aws-sdk-cpp | c81192e00b572b76d175d84dff77185bd17ae1ac | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-dms/source/model/ReplicationSubnetGroup.cpp | ambasta/aws-sdk-cpp | c81192e00b572b76d175d84dff77185bd17ae1ac | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-dms/source/model/ReplicationSubnetGroup.cpp | ambasta/aws-sdk-cpp | c81192e00b572b76d175d84dff77185bd17ae1ac | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 26.625 | 99 | 0.765811 | [
"model"
] |
071de3ef742c8f12c33fba9b10dd5361e7dc32f9 | 9,505 | cpp | C++ | src/utils/icp.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 6 | 2020-03-29T09:37:01.000Z | 2022-01-20T08:56:31.000Z | src/utils/icp.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 1 | 2021-03-05T08:00:50.000Z | 2021-03-05T08:00:50.000Z | src/utils/icp.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 11 | 2019-05-13T00:04:38.000Z | 2022-01-20T08:56:38.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... | 30.86039 | 174 | 0.570121 | [
"vector",
"transform"
] |
07296f7cbe6fb81847e22d536bb7372646db0dee | 1,564 | cpp | C++ | tests/lang/type_checker_array_tests.cpp | faouellet/Tostitos | a34776c2c81a1f6658aa098da0c9fda90110197e | [
"MIT"
] | 1 | 2016-01-29T01:07:15.000Z | 2016-01-29T01:07:15.000Z | tests/lang/type_checker_array_tests.cpp | faouellet/Tostitos | a34776c2c81a1f6658aa098da0c9fda90110197e | [
"MIT"
] | 20 | 2015-08-05T10:36:29.000Z | 2016-06-21T23:19:16.000Z | tests/lang/type_checker_array_tests.cpp | Alex-B09/Tostitos | a34776c2c81a1f6658aa098da0c9fda90110197e | [
"MIT"
] | 1 | 2021-07-14T02:45:43.000Z | 2021-07-14T02:45:43.000Z | #ifdef STAND_ALONE
# define BOOST_TEST_MODULE Main
#else
#ifndef _WIN32
# define BOOST_TEST_MODULE TypeCheckerArrayTests
#endif
#endif
#include <boost/test/unit_test.hpp>
#include "toslang_sema_fixture.h"
BOOST_FIXTURE_TEST_SUITE( SemaTestSuite, TosLangSemaFixture )
//////////////////// CORRECT USE CASES //////... | 32.583333 | 138 | 0.727621 | [
"vector"
] |
0729a0776d5ecc690a4872a8cba47524ba703bdf | 3,459 | cc | C++ | ndash/src/mpd/adaptation_set.cc | google/ndash | 1465e2fb851ee17fd235280bdbbbf256e5af8044 | [
"Apache-2.0"
] | 41 | 2017-04-19T19:38:10.000Z | 2021-09-07T02:40:27.000Z | ndash/src/mpd/adaptation_set.cc | google/ndash | 1465e2fb851ee17fd235280bdbbbf256e5af8044 | [
"Apache-2.0"
] | 8 | 2017-04-21T16:40:09.000Z | 2019-12-09T19:48:40.000Z | ndash/src/mpd/adaptation_set.cc | google/ndash | 1465e2fb851ee17fd235280bdbbbf256e5af8044 | [
"Apache-2.0"
] | 19 | 2017-04-24T14:43:18.000Z | 2022-03-17T19:13:45.000Z | /*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 28.121951 | 79 | 0.756577 | [
"vector"
] |
0731443db4fbab858dea4428a783a2d2226adf5c | 1,508 | cpp | C++ | 6_adv_recursion/11_keypad_approach2.cpp | ShyamNandanKumar/coding-ninja2 | a43a21575342261e573f71f7d8eff0572f075a17 | [
"MIT"
] | 11 | 2021-01-02T10:07:17.000Z | 2022-03-16T00:18:06.000Z | 6_adv_recursion/11_keypad_approach2.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | null | null | null | 6_adv_recursion/11_keypad_approach2.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | 5 | 2021-05-19T11:17:18.000Z | 2021-09-16T06:23:31.000Z | // Given an integer n, using phone keypad find out and print all the possible strings that can be made using digits of input n.
// Note : The order of strings are not important. Just print different strings in new lines.
// Input Format :
// Integer n
// Output Format :
// All possible strings in different lines
// Con... | 27.418182 | 130 | 0.611406 | [
"vector"
] |
0735585b59b896dda14654c05773c4ac1b30436d | 3,164 | cpp | C++ | Source/src/ezcard/parameter/vcard_parameter_case_classes.cpp | ProtonMail/cpp-openpgp | b47316c51357b8d15eb3bcc376ea5e59a6a9a108 | [
"MIT"
] | 5 | 2019-10-30T06:10:10.000Z | 2020-04-25T16:52:06.000Z | Source/src/ezcard/parameter/vcard_parameter_case_classes.cpp | ProtonMail/cpp-openpgp | b47316c51357b8d15eb3bcc376ea5e59a6a9a108 | [
"MIT"
] | null | null | null | Source/src/ezcard/parameter/vcard_parameter_case_classes.cpp | ProtonMail/cpp-openpgp | b47316c51357b8d15eb3bcc376ea5e59a6a9a108 | [
"MIT"
] | 2 | 2019-11-27T23:47:54.000Z | 2020-01-13T16:36:03.000Z | //
// vcard_parameter_case_classes.cpp
// OpenPGP
//
// Created by Yanfeng Zhang on 1/10/17.
//
// The MIT License
//
// Copyright (c) 2019 Proton Technologies AG
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Soft... | 39.061728 | 142 | 0.687737 | [
"object",
"vector"
] |
07375b9b8e2ca5922f910cdce7c6346413644447 | 6,785 | cpp | C++ | libraries/plugins/transaction/transaction_plugin.cpp | Whitecoin-Owner/Whitecoin-core | a48c1c229b9a311b10654ac79335890ca57aec4a | [
"MIT"
] | 10 | 2020-09-26T12:00:03.000Z | 2021-07-27T06:41:40.000Z | libraries/plugins/transaction/transaction_plugin.cpp | r8d8/Whitecoin-core | ba4438a0e41babde272c67a3b2048b4247a7dc4e | [
"MIT"
] | 23 | 2020-05-31T13:08:03.000Z | 2021-12-08T09:07:30.000Z | libraries/plugins/transaction/transaction_plugin.cpp | r8d8/Whitecoin-core | ba4438a0e41babde272c67a3b2048b4247a7dc4e | [
"MIT"
] | 4 | 2019-12-05T15:32:08.000Z | 2021-09-21T17:53:41.000Z | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... | 31.85446 | 174 | 0.728224 | [
"vector"
] |
07438b07e888c0071a66863a297fd650b2c3e17c | 25,682 | hpp | C++ | include/ripple/graph/node.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | 4 | 2021-04-25T16:38:12.000Z | 2021-12-23T08:32:15.000Z | include/ripple/graph/node.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | null | null | null | include/ripple/graph/node.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | null | null | null | /**=--- ripple/graph/node.hpp ------------------------------ -*- C++ -*- ---==**
*
* Ripple
*
* Copyright (c) 2019 - 2021 Rob Clucas.
*
* This file is distributed under the MIT License. See LICENSE for details.
*
*==-----------------------------------------... | 35.180822 | 80 | 0.641772 | [
"object",
"vector"
] |
0748d6902898ea9833998ad1a92c2d2d1e82b918 | 90,146 | hpp | C++ | core/unit_test/TestViewSubview.hpp | ORNL-CEES/kokkos | 70d113838b7dade09218a46c1e8aae44b6dbd321 | [
"BSD-3-Clause"
] | 1 | 2019-10-15T19:26:22.000Z | 2019-10-15T19:26:22.000Z | core/unit_test/TestViewSubview.hpp | ORNL-CEES/kokkos | 70d113838b7dade09218a46c1e8aae44b6dbd321 | [
"BSD-3-Clause"
] | 16 | 2019-04-15T20:52:05.000Z | 2020-01-24T05:13:25.000Z | core/unit_test/TestViewSubview.hpp | ORNL-CEES/kokkos | 70d113838b7dade09218a46c1e8aae44b6dbd321 | [
"BSD-3-Clause"
] | 1 | 2019-11-25T14:06:26.000Z | 2019-11-25T14:06:26.000Z | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softw... | 44.081174 | 101 | 0.55795 | [
"3d"
] |
074e5d1ab34453db5fa99b059acaf2d535b7b31f | 5,085 | hpp | C++ | include/GlobalNamespace/INetworkConfig.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/INetworkConfig.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/INetworkConfig.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin forward declares
// Forward declaring namespace: GlobalNam... | 50.85 | 211 | 0.743559 | [
"vector"
] |
074ebb3bbb5fc9aec2c07f18407e1a4277cc8f05 | 8,747 | cpp | C++ | src/VirtualMachine.cpp | xilwen/servant-base-lib | 432c67cb90774b67b350cf1f9e642665ef8c4f4d | [
"MIT"
] | null | null | null | src/VirtualMachine.cpp | xilwen/servant-base-lib | 432c67cb90774b67b350cf1f9e642665ef8c4f4d | [
"MIT"
] | null | null | null | src/VirtualMachine.cpp | xilwen/servant-base-lib | 432c67cb90774b67b350cf1f9e642665ef8c4f4d | [
"MIT"
] | null | null | null | #include "VirtualMachine.hpp"
#include "VBoxWrapperClient.hpp"
#include "PackageManager.hpp"
#include "ProfileManager.hpp"
#include <json.hpp>
using json = nlohmann::json;
VirtualMachine::VirtualMachine()
{
}
VirtualMachine::~VirtualMachine()
{
}
void VirtualMachine::setUuid(std::wstring uuid)
{
this->uuid = u... | 24.501401 | 120 | 0.63839 | [
"vector"
] |
07585c2f485014207a06cff043a97f823780e6ee | 2,179 | cc | C++ | algac/common/algorithm_test.cc | algac/algac | 09323a8bb27c8ac6a69bf7a076df1e93bf997b56 | [
"MIT"
] | 1 | 2019-01-23T23:01:31.000Z | 2019-01-23T23:01:31.000Z | algac/common/algorithm_test.cc | algac/algac | 09323a8bb27c8ac6a69bf7a076df1e93bf997b56 | [
"MIT"
] | null | null | null | algac/common/algorithm_test.cc | algac/algac | 09323a8bb27c8ac6a69bf7a076df1e93bf997b56 | [
"MIT"
] | null | null | null | // Copyright (C) 2019-2021, YU
#include "algac/common/algorithm.h"
#include <atomic>
#include <deque>
#include <functional> // function
#include <queue>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "algac/common/common.h"
#include "algac/test_utils/t... | 24.211111 | 78 | 0.576411 | [
"vector"
] |
075cc42e2fd72754a148d05033bad77c18c3b016 | 3,092 | cpp | C++ | Codeforces/Gym102823H.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Codeforces/Gym102823H.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Codeforces/Gym102823H.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include<bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define SZ(x) ((int)x.size())
#define lowbit(x) x&-x
#define pb push_back
#define ALL(x) (x).begin(),(x).end()
#define UNI(x) sort(ALL(x)),x.resize(unique(ALL(x))-x.begin())
#define GETPOS(c,x) (lower_bound(ALL(c),x)-c.begin())
#define LEN(... | 22.405797 | 135 | 0.555304 | [
"vector"
] |
075f383443baf159a6b609ed5ef0cb097a3094d6 | 1,121 | cpp | C++ | Implementation/Migratory Birds.cpp | AbdallahHemdan/HackerRank_ProblemSolving_Solutions | 4c1684d706c0185cc71154c26b84ab0216f633e0 | [
"MIT"
] | 3 | 2020-01-03T11:39:26.000Z | 2021-03-12T21:44:09.000Z | Implementation/Migratory Birds.cpp | AbdallahHemdan/HackerRank_ProblemSolving_Solutions | 4c1684d706c0185cc71154c26b84ab0216f633e0 | [
"MIT"
] | null | null | null | Implementation/Migratory Birds.cpp | AbdallahHemdan/HackerRank_ProblemSolving_Solutions | 4c1684d706c0185cc71154c26b84ab0216f633e0 | [
"MIT"
] | 1 | 2019-10-21T19:31:24.000Z | 2019-10-21T19:31:24.000Z | #include <iostream>
#include <cmath>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <algorithm>
#include <iomanip>
#include <assert.h>
#include <vector>
#include <cstring>
#include <map>
#include <deque>
#include <queue>
#include <stack>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#inclu... | 16.984848 | 34 | 0.597681 | [
"vector"
] |
0760830b67a258938a03c3308d25ed923b7e9487 | 775 | cpp | C++ | modules/labraytracer/rayintersection.cpp | victorca25/inviwo | 34b6675f6b791a08e358d24aea4f75d5baadc6da | [
"BSD-2-Clause"
] | 4 | 2018-01-21T20:38:47.000Z | 2021-01-10T03:16:16.000Z | modules/labraytracer/rayintersection.cpp | victorca25/inviwo | 34b6675f6b791a08e358d24aea4f75d5baadc6da | [
"BSD-2-Clause"
] | null | null | null | modules/labraytracer/rayintersection.cpp | victorca25/inviwo | 34b6675f6b791a08e358d24aea4f75d5baadc6da | [
"BSD-2-Clause"
] | 19 | 2018-09-09T19:43:30.000Z | 2022-02-01T07:59:30.000Z | /*********************************************************************
* Author : Himangshu Saikia
* Init : Tuesday, October 17, 2017 - 10:41:28
*
* Project : KTH Inviwo Modules
*
* License : Follows the Inviwo BSD license model
*********************************************************************
*/
#... | 26.724138 | 94 | 0.534194 | [
"model"
] |
79e3c0762649c60b3ddc34bc03453480823783e3 | 6,867 | cpp | C++ | test/WidomMoveTests.cpp | hsidky/LNTMC | 6f1cc81476718ef19f85fd596d0815a194705a50 | [
"MIT"
] | 10 | 2016-08-16T23:32:33.000Z | 2021-07-06T09:39:58.000Z | test/WidomMoveTests.cpp | hsidky/LNT-MC | 6f1cc81476718ef19f85fd596d0815a194705a50 | [
"MIT"
] | 33 | 2015-04-09T16:19:51.000Z | 2016-02-06T04:34:01.000Z | test/WidomMoveTests.cpp | hsidky/LNT-MC | 6f1cc81476718ef19f85fd596d0815a194705a50 | [
"MIT"
] | 8 | 2015-02-16T18:34:46.000Z | 2021-01-11T19:37:14.000Z | #include "../src/ForceFields/LennardJonesFF.h"
#include "../src/ForceFields/ForceFieldManager.h"
#include "../src/Simulation/StandardSimulation.h"
#include "../src/Moves/MoveManager.h"
#include "../src/Moves/TranslateMove.h"
#include "../src/Moves/InsertParticleMove.h"
#include "../src/Moves/DeleteParticleMove.h"
#incl... | 28.143443 | 89 | 0.678608 | [
"vector"
] |
79ee4d338ded91356f9a2748b4833dee43525be2 | 2,546 | cpp | C++ | leetcode/947.most-stones-removed-with-same-row-or-column.cpp | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 107 | 2019-10-25T07:46:59.000Z | 2022-03-29T11:10:56.000Z | leetcode/947.most-stones-removed-with-same-row-or-column.cpp | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 1 | 2021-08-13T05:42:27.000Z | 2021-08-13T05:42:27.000Z | leetcode/947.most-stones-removed-with-same-row-or-column.cpp | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 18 | 2020-12-09T14:24:22.000Z | 2022-03-30T06:56:01.000Z | /*
* @lc app=leetcode id=947 lang=cpp
*
* [947] Most Stones Removed with Same Row or Column
*/
#include <bits/stdc++.h>
using namespace std;
// @lc code=start
class Solution {
public:
int removeStones(vector<vector<int>>& stones) {
map<int, map<int, bool>> m, m1;
map<int, map<int, int>> par... | 34.405405 | 102 | 0.382561 | [
"vector"
] |
79f03988c533ea52a2c78bf36f491f8805aa1093 | 918 | hh | C++ | elements/flow/flowrouter.hh | MassimoGirondi/fastclick | 71b9a3392c2e847a22de3c354be1d9f61216cb5b | [
"BSD-3-Clause-Clear"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/flow/flowrouter.hh | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/flow/flowrouter.hh | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | #ifndef CLICK_FLOWROUTER_HH
#define CLICK_FLOWROUTER_HH
#include <click/string.hh>
#include <click/timer.hh>
#include "ctxmanager.hh"
#include <vector>
#include <click/flow/flowelement.hh>
CLICK_DECLS
class FlowRouter: public FlowSpaceElement<int> {
public:
FlowRouter() CLICK_COLD;
~FlowRouter() CLICK_COLD {};
... | 20.4 | 69 | 0.696078 | [
"vector"
] |
79f7b97bb40f8ac719f0e97c1dd94983fc7c22cd | 2,961 | cpp | C++ | Sources/XML/Resources/xml_resource_node.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Sources/XML/Resources/xml_resource_node.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Sources/XML/Resources/xml_resource_node.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | /*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... | 27.165138 | 153 | 0.745019 | [
"vector"
] |
79fdf8186d5705327edd604529e85c02b549f593 | 27,358 | hpp | C++ | packages/monte_carlo/estimator/native/src/MonteCarlo_TetMeshTrackLengthFluxEstimator_def.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/estimator/native/src/MonteCarlo_TetMeshTrackLengthFluxEstimator_def.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/estimator/native/src/MonteCarlo_TetMeshTrackLengthFluxEstimator_def.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_TetMeshTrackLengthFluxEstimator.cpp
//! \author Alex Robinson, Eli Moll
//! \brief Tet mesh flux estimator class declaration.
//!
//---------------------------------------------------------------------------//
/... | 35.391979 | 138 | 0.606404 | [
"mesh",
"vector",
"3d"
] |
031d4b65510d2f584bf7c1372e6e645edd9581f2 | 7,352 | cpp | C++ | src/BThreadPack/BThreadPoolPrivate.cpp | zhangbolily/BThreadPack | 6565309d253039e1e7e45c702b84a488fc837a58 | [
"MIT"
] | 2 | 2019-03-30T03:39:00.000Z | 2021-09-08T13:02:30.000Z | src/BThreadPack/BThreadPoolPrivate.cpp | zhangbolily/BThreadPack | 6565309d253039e1e7e45c702b84a488fc837a58 | [
"MIT"
] | null | null | null | src/BThreadPack/BThreadPoolPrivate.cpp | zhangbolily/BThreadPack | 6565309d253039e1e7e45c702b84a488fc837a58 | [
"MIT"
] | 2 | 2019-12-23T22:08:53.000Z | 2021-09-08T10:55:21.000Z | /* MIT License
*
* Copyright (c) 2018 Ball Chang
*
* 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, ... | 36.039216 | 94 | 0.642274 | [
"vector"
] |
032584bb7f17b8611cac80841db4905b4eb87401 | 9,584 | cpp | C++ | test/cpp/unit/data/samplers/test_negative.cpp | ryansun117/marius | c6a81b2ea6b6b468baf5277cf6955f9543b66c82 | [
"Apache-2.0"
] | null | null | null | test/cpp/unit/data/samplers/test_negative.cpp | ryansun117/marius | c6a81b2ea6b6b468baf5277cf6955f9543b66c82 | [
"Apache-2.0"
] | null | null | null | test/cpp/unit/data/samplers/test_negative.cpp | ryansun117/marius | c6a81b2ea6b6b468baf5277cf6955f9543b66c82 | [
"Apache-2.0"
] | null | null | null | //
// Created by Jason Mohoney on 2/9/22.
//
#include <gtest/gtest.h>
#include <data/samplers/negative.h>
int num_nodes = 6;
torch::Tensor edges = torch::tensor({{0, 2},
{0, 4},
{1, 3},
{1, 5},
... | 38.801619 | 143 | 0.626878 | [
"shape"
] |
03260b9a491ec395e56140757eb5c2bab228aa5f | 912 | cpp | C++ | CSES/ProblemSet/IntroductoryProblems/GrayCode_sol6_iterative_approach_and_pattern_O(N2^N)_time_O(2^N)_extra_space_80ms.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | CSES/ProblemSet/IntroductoryProblems/GrayCode_sol6_iterative_approach_and_pattern_O(N2^N)_time_O(2^N)_extra_space_80ms.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | CSES/ProblemSet/IntroductoryProblems/GrayCode_sol6_iterative_approach_and_pattern_O(N2^N)_time_O(2^N)_extra_space_80ms.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution{
public:
void generateGrayCode(int n, vector<int>& grayCode){
const int FULL_MASK = (1 << n) - 1;
grayCode.clear();
grayCode.resize(FULL_MASK + 1, 0);
for(int mask = 0; mask <= FULL_MASK; ++mask){
for(int bit =... | 24 | 78 | 0.419956 | [
"vector"
] |
032f49a5575423133596ee96094571817f446683 | 11,401 | cpp | C++ | pxr/usd/lib/sdf/abstractData.cpp | YuqiaoZhang/USD | bf3a21e6e049486441440ebf8c0387db2538d096 | [
"BSD-2-Clause"
] | 27 | 2017-10-17T02:44:43.000Z | 2021-06-10T08:23:54.000Z | pxr/usd/lib/sdf/abstractData.cpp | YuqiaoZhang/USD | bf3a21e6e049486441440ebf8c0387db2538d096 | [
"BSD-2-Clause"
] | 1 | 2020-07-07T22:39:42.000Z | 2020-07-07T22:39:42.000Z | pxr/usd/lib/sdf/abstractData.cpp | YuqiaoZhang/USD | bf3a21e6e049486441440ebf8c0387db2538d096 | [
"BSD-2-Clause"
] | 7 | 2018-07-11T19:03:59.000Z | 2022-03-24T07:57:06.000Z | //
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 27.875306 | 79 | 0.634944 | [
"object",
"vector"
] |
033eb69743bb47ee46cb8eae9a2448f27f812166 | 5,643 | cpp | C++ | src/lidar_measurement_model_likelihood.cpp | doctorwk007/mcl_3dl | 6eda33369a52d09c4f3927e36fd26f8f64fd2ece | [
"BSD-3-Clause"
] | null | null | null | src/lidar_measurement_model_likelihood.cpp | doctorwk007/mcl_3dl | 6eda33369a52d09c4f3927e36fd26f8f64fd2ece | [
"BSD-3-Clause"
] | 1 | 2019-10-23T06:36:32.000Z | 2019-10-23T06:36:32.000Z | src/lidar_measurement_model_likelihood.cpp | yuseidesu/mcl_3dl | 8ff95840b8a51fda367f0bb76e674d3b1b68197b | [
"BSD-3-Clause"
] | 1 | 2019-11-09T03:35:51.000Z | 2019-11-09T03:35:51.000Z | /*
* Copyright (c) 2018, the mcl_3dl authors
* 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 l... | 35.490566 | 105 | 0.735247 | [
"vector",
"transform"
] |
03480ddb420c242dd5d4b3a0333c8b1b944f337e | 3,304 | inl | C++ | android/spatialiteandroidlibrary/src/main/jni/geos-3.2.2/source/headers/geos/geom/Coordinate.inl | fedort/react-native-spatial | f12fe12c567ecb6c088a2b0cb9468c2f28d4cbba | [
"MIT"
] | null | null | null | android/spatialiteandroidlibrary/src/main/jni/geos-3.2.2/source/headers/geos/geom/Coordinate.inl | fedort/react-native-spatial | f12fe12c567ecb6c088a2b0cb9468c2f28d4cbba | [
"MIT"
] | null | null | null | android/spatialiteandroidlibrary/src/main/jni/geos-3.2.2/source/headers/geos/geom/Coordinate.inl | fedort/react-native-spatial | f12fe12c567ecb6c088a2b0cb9468c2f28d4cbba | [
"MIT"
] | 1 | 2021-01-13T17:59:17.000Z | 2021-01-13T17:59:17.000Z | /**********************************************************************
* $Id: Coordinate.inl 2554 2009-06-06 21:14:51Z strk $
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2005-2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify ... | 18.355556 | 95 | 0.66132 | [
"geometry"
] |
034bf9077325a16d539fcae72364021f3a1f02ff | 863 | cpp | C++ | acwing/1128.cpp | zyzisyz/OJ | 55221a55515231182b6bd133edbdb55501a565fc | [
"Apache-2.0"
] | null | null | null | acwing/1128.cpp | zyzisyz/OJ | 55221a55515231182b6bd133edbdb55501a565fc | [
"Apache-2.0"
] | null | null | null | acwing/1128.cpp | zyzisyz/OJ | 55221a55515231182b6bd133edbdb55501a565fc | [
"Apache-2.0"
] | 2 | 2020-01-01T13:49:08.000Z | 2021-03-06T06:54:26.000Z | #include <iostream>
#include <vector>
using namespace std;
const int INF = 1e5+3;
int n, m;
vector<vector<int>> g;
int dijstra() {
vector<int> dist(n+1, INF);
vector<bool> used(n+1, false);
dist[1] = 0;
for(int i=0; i<n; i++) {
int t = -1;
int cmp = INF;
for(int j=1; j<=n; j++) {
if(used[j]==false && ... | 15.140351 | 44 | 0.479722 | [
"vector"
] |
035361dea276de26cce0f1bdc0e616c7e4a12ab8 | 62,796 | cc | C++ | media/gpu/vaapi/vaapi_video_encode_accelerator.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | media/gpu/vaapi/vaapi_video_encode_accelerator.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | media/gpu/vaapi/vaapi_video_encode_accelerator.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.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 "media/gpu/vaapi/vaapi_video_encode_accelerator.h"
#include <string.h>
#include <va/va.h>
#include <va/va_enc_h264.h>
#include <va/va_enc_vp8.h>... | 39.052239 | 80 | 0.722259 | [
"vector"
] |
0355acd89f119a29105d1a580545fd980a757537 | 3,163 | cpp | C++ | examples/p1897.cpp | Chlorie/libunifex | 9869196338016939265964b82c7244915de6a12f | [
"Apache-2.0"
] | 1 | 2021-11-23T11:30:39.000Z | 2021-11-23T11:30:39.000Z | examples/p1897.cpp | Chlorie/libunifex | 9869196338016939265964b82c7244915de6a12f | [
"Apache-2.0"
] | null | null | null | examples/p1897.cpp | Chlorie/libunifex | 9869196338016939265964b82c7244915de6a12f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applicab... | 23.962121 | 85 | 0.672463 | [
"vector",
"transform"
] |
03583dbe6fcb1a4450fadb7c05dd27a593280539 | 4,447 | hpp | C++ | src/Engine/Renderer/RenderTechnique/ShaderConfiguration.hpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/RenderTechnique/ShaderConfiguration.hpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/RenderTechnique/ShaderConfiguration.hpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | #ifndef RADIUMENGINE_SHADERCONFIGURATION_HPP
#define RADIUMENGINE_SHADERCONFIGURATION_HPP
#include <Engine/RaEngine.hpp>
#include <set>
#include <string>
#include <array>
#include <list>
namespace Ra
{
namespace Engine
{
enum ShaderType : uint
{
ShaderTyp... | 45.377551 | 126 | 0.584664 | [
"mesh"
] |
035a9c6de30a15b1ecd3318621f37830b603c932 | 204,327 | cpp | C++ | DataProxy/test/DatabaseProxyTest.cpp | aol/DataProxyLibrary | b1a16e6abadcf3e1cd07448086e2375511a337e6 | [
"BSD-3-Clause"
] | null | null | null | DataProxy/test/DatabaseProxyTest.cpp | aol/DataProxyLibrary | b1a16e6abadcf3e1cd07448086e2375511a337e6 | [
"BSD-3-Clause"
] | null | null | null | DataProxy/test/DatabaseProxyTest.cpp | aol/DataProxyLibrary | b1a16e6abadcf3e1cd07448086e2375511a337e6 | [
"BSD-3-Clause"
] | null | null | null | // FILE NAME: $HeadURL: svn+ssh://svn.cm.aol.com/advertising/adlearn/gen1/trunk/lib/cpp/DataProxy/test/DatabaseProxyTest.cpp $
//
// REVISION: $Revision: 303696 $
//
// COPYRIGHT: (c) 2006 Advertising.com All Rights Reserved.
//
// LAST UPDATED: $Date: 2014-07-31 18:04:05 -0400 (Thu, 31 Jul 2014) ... | 42.164053 | 189 | 0.669574 | [
"vector"
] |
035e1427bb1b2b31034272488c4a3c9c9469c45c | 876 | cpp | C++ | src/processor.cpp | encomp/CppND-System-Monitor | f16f0168f001c6e64257e44daac2ebb55f0c64f3 | [
"MIT"
] | null | null | null | src/processor.cpp | encomp/CppND-System-Monitor | f16f0168f001c6e64257e44daac2ebb55f0c64f3 | [
"MIT"
] | null | null | null | src/processor.cpp | encomp/CppND-System-Monitor | f16f0168f001c6e64257e44daac2ebb55f0c64f3 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include "processor.h"
using std::vector;
using std::string;
using std::stoi;
Processor::Processor(vector<string> cpu) {
init = false;
if (cpu.size() == 10) {
user = stoi(cpu[0]);
nice = stoi(cpu[1]);
system = stoi(cpu[2]);
idle = stoi(cpu[3]... | 23.675676 | 68 | 0.528539 | [
"vector"
] |
24ee714e84513ec025333ada5787169758ecfac7 | 19,923 | cpp | C++ | src/meshing/dual_contouring.cpp | aschier/MishMesh | 6128e33501935b57c80c7e0816aa1b2229907990 | [
"BSD-3-Clause"
] | 2 | 2019-08-15T11:10:35.000Z | 2022-01-27T02:30:47.000Z | src/meshing/dual_contouring.cpp | aschier/MishMesh | 6128e33501935b57c80c7e0816aa1b2229907990 | [
"BSD-3-Clause"
] | null | null | null | src/meshing/dual_contouring.cpp | aschier/MishMesh | 6128e33501935b57c80c7e0816aa1b2229907990 | [
"BSD-3-Clause"
] | 1 | 2021-05-26T13:25:28.000Z | 2021-05-26T13:25:28.000Z | #include "MishMesh/dual_contouring.h"
#include "vertexfit.hpp"
#include "grid.hpp"
#include <list>
namespace MishMesh {
namespace Meshing {
namespace DualContouring {
struct MeshProperties {
OpenMesh::VPropHandleT<std::vector<OpenMesh::Vec3d>> normals;
OpenMesh::VPropHandleT<std::vector<OpenMesh::Vec3d... | 45.279545 | 288 | 0.66501 | [
"mesh",
"vector"
] |
24f3d92ed6184b75f3177e5e3b52b4b47af6cc17 | 3,222 | cpp | C++ | test/test_opcode.cpp | stfnwong/smips | f305d24e16632b0a4907607386fc9d98f3d389b5 | [
"MIT"
] | null | null | null | test/test_opcode.cpp | stfnwong/smips | f305d24e16632b0a4907607386fc9d98f3d389b5 | [
"MIT"
] | null | null | null | test/test_opcode.cpp | stfnwong/smips | f305d24e16632b0a4907607386fc9d98f3d389b5 | [
"MIT"
] | null | null | null | /* TEST_OPCODE
* Unit tests for opcode table
*
* Stefan Wong 2019
*/
#define CATCH_CONFIG_MAIN
#include "catch/catch.hpp"
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
// unit under test
#include "Opcode.hpp"
// sample instruction codes
typedef enum instr_code
{
LEX_NULL,
... | 27.538462 | 70 | 0.6527 | [
"vector"
] |
24fb836aa42c286acab021f8b40bab8fb2993443 | 953 | cpp | C++ | 944-smallest-range-i/smallest-range-i.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 944-smallest-range-i/smallest-range-i.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 944-smallest-range-i/smallest-range-i.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | // Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i].
//
// After this process, we have some array B.
//
// Return the smallest possible difference between the maximum value of B and the minimum value of B.
//
//
//
//
//
//
//
// Example 1:
//
//
// Inp... | 15.370968 | 113 | 0.47744 | [
"vector"
] |
700224b94e827c4d59610568a84ee359e214f2de | 9,029 | cpp | C++ | source/palette.cpp | JROB774/tein-editor | f952a1c7ad1941f5a5266c232b1d50ab1a26f379 | [
"MIT"
] | 2 | 2018-09-02T11:30:27.000Z | 2020-07-21T15:53:05.000Z | source/palette.cpp | thatb0y/tein-editor | 4c49be9534e439154553a188df758fa956b20e49 | [
"MIT"
] | null | null | null | source/palette.cpp | thatb0y/tein-editor | 4c49be9534e439154553a188df758fa956b20e49 | [
"MIT"
] | null | null | null | GLOBAL constexpr const char* PALETTE_FILE = "textures/palette.png";
GLOBAL constexpr const char* TILESET_FILE = "data/tilesets.txt";
GLOBAL constexpr const char* APPEND_FILE = "data/tilesets.txt.append";
GLOBAL constexpr const char* MERGE_FILE = "data/tilesets.txt.merge";
GLOBAL constexpr const char* PATCH_FILE = ... | 38.751073 | 129 | 0.538709 | [
"object",
"vector"
] |
7002a37da2eaa245fb10d68de8c450b8c720e56a | 4,168 | cpp | C++ | hw03/playfair_encode.cpp | xuan-415/Cryptography | df4ca035cebeb49263a1aff8241fb232373d24ad | [
"MIT"
] | null | null | null | hw03/playfair_encode.cpp | xuan-415/Cryptography | df4ca035cebeb49263a1aff8241fb232373d24ad | [
"MIT"
] | null | null | null | hw03/playfair_encode.cpp | xuan-415/Cryptography | df4ca035cebeb49263a1aff8241fb232373d24ad | [
"MIT"
] | null | null | null | #include<vector>
#include<iostream>
#include<string>
#include<ctype.h>
using namespace std;
vector<vector<char>> table(5);
void trim(string &s){
int index = 0;
if( !s.empty())
{
while( (index = s.find(' ',index)) != string::npos)
{
s.erase(index,1);
}
}
}
... | 23.817143 | 63 | 0.395393 | [
"vector"
] |
7004e326a3ccf95a07b21276df3efe33be94bd2b | 5,809 | tcc | C++ | src/cpu/power/predictors/bloomfilter.tcc | JimmyZhang12/gem5 | 34a009b9f7f33667cc230ac7f7ebfb8705718c5d | [
"BSD-3-Clause"
] | null | null | null | src/cpu/power/predictors/bloomfilter.tcc | JimmyZhang12/gem5 | 34a009b9f7f33667cc230ac7f7ebfb8705718c5d | [
"BSD-3-Clause"
] | null | null | null | src/cpu/power/predictors/bloomfilter.tcc | JimmyZhang12/gem5 | 34a009b9f7f33667cc230ac7f7ebfb8705718c5d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2020, University of Illinois
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation ... | 34.993976 | 83 | 0.696161 | [
"object",
"vector"
] |
7009ba7c097778b1a6dcfaf394a83a58fac7934a | 2,031 | cpp | C++ | PrinterContextNativeRuntimeComponent/PrinterPrintQueueEventHandlerHelper.cpp | Ganeshcoep/print-oem-samples | 0508c31e2881ee0d4379cd7ff830e0062e818a6c | [
"MIT"
] | 4 | 2020-03-25T20:39:20.000Z | 2021-04-20T16:11:17.000Z | PrinterContextNativeRuntimeComponent/PrinterPrintQueueEventHandlerHelper.cpp | Ganeshcoep/print-oem-samples | 0508c31e2881ee0d4379cd7ff830e0062e818a6c | [
"MIT"
] | 2 | 2019-06-13T23:13:13.000Z | 2020-07-30T18:01:03.000Z | PrinterContextNativeRuntimeComponent/PrinterPrintQueueEventHandlerHelper.cpp | Ganeshcoep/print-oem-samples | 0508c31e2881ee0d4379cd7ff830e0062e818a6c | [
"MIT"
] | 7 | 2019-06-13T23:15:42.000Z | 2020-08-05T14:57:37.000Z | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*
* This class re... | 37.611111 | 258 | 0.666667 | [
"object"
] |
7010bdc138e6fcfafc13c7eea52025b061c3eb38 | 510 | cpp | C++ | Cplus/AllDivisionsWiththeHighestScoreofaBinaryArray.cpp | Jum1023/leetcode | d8248aa84452cb1ea768d9b05ecd72a6746c0016 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/AllDivisionsWiththeHighestScoreofaBinaryArray.cpp | Jum1023/leetcode | d8248aa84452cb1ea768d9b05ecd72a6746c0016 | [
"MIT"
] | null | null | null | Cplus/AllDivisionsWiththeHighestScoreofaBinaryArray.cpp | Jum1023/leetcode | d8248aa84452cb1ea768d9b05ecd72a6746c0016 | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
class Solution
{
public:
vector<int> maxScoreIndices(vector<int> &nums)
{
int zero = 0, one = 0;
for (auto n : nums)
{
if (n == 1)
++one;
}
int sum = one, minsum = one;
vector<int> res = {0};
for (int i = 0; i < (int)nums.size(); ++i)
{
if (nums[i] == ... | 15.454545 | 47 | 0.498039 | [
"vector"
] |
701247d471be4cbe3c77e450c1543ec3eacd24eb | 24,314 | cpp | C++ | 3rdparty/etl/src/ETPatch.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | 3rdparty/etl/src/ETPatch.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | 3rdparty/etl/src/ETPatch.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | /********************************************************************************
EDITABLE TERRAIN LIBRARY v3 for Ogre
Copyright (c) 2008 Holger Frydrych <frydrych@oddbeat.de>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arisin... | 36.289552 | 113 | 0.655178 | [
"vector"
] |
7015e5f27a70f86b5d95234471a68390f8595f13 | 19,758 | cc | C++ | chromeos/dbus/experimental_bluetooth_device_client.cc | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chromeos/dbus/experimental_bluetooth_device_client.cc | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chromeos/dbus/experimental_bluetooth_device_client.cc | codenote/chromium-test | 0637af0080f7e80bf7d20b29ce94c5edc817f390 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:25:45.000Z | 2020-11-04T07:25:45.000Z | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/dbus/experimental_bluetooth_device_client.h"
#include <map>
#include <utility>
#include "base/bind.h"
#include "base/logging.h"
#... | 38.665362 | 80 | 0.699767 | [
"object",
"vector"
] |
702ff7c530dfa928468455391ac45d0d3f93a7f5 | 13,277 | cpp | C++ | function-pointer-analysis/LLVMAssignment.cpp | kippesp/clang-llvm-tutorial | 92e5478fdebb9a11c60dc39e5a0556056346e957 | [
"WTFPL"
] | null | null | null | function-pointer-analysis/LLVMAssignment.cpp | kippesp/clang-llvm-tutorial | 92e5478fdebb9a11c60dc39e5a0556056346e957 | [
"WTFPL"
] | null | null | null | function-pointer-analysis/LLVMAssignment.cpp | kippesp/clang-llvm-tutorial | 92e5478fdebb9a11c60dc39e5a0556056346e957 | [
"WTFPL"
] | 1 | 2021-11-15T12:55:27.000Z | 2021-11-15T12:55:27.000Z | //===- Hello.cpp - Example code from "Writing an LLVM Pass" ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 30.592166 | 80 | 0.57287 | [
"vector",
"transform"
] |
7032932a22ff170788ee7d4e205571bfba359e63 | 2,489 | cpp | C++ | ext/libigl/external/cgal/src/CGAL_Project/examples/Point_set_processing_3/normals_example.cpp | liminchen/OptCuts | cb85b06ece3a6d1279863e26b5fd17a5abb0834d | [
"MIT"
] | 187 | 2019-01-23T04:07:11.000Z | 2022-03-27T03:44:58.000Z | ext/libigl/external/cgal/src/CGAL_Project/examples/Point_set_processing_3/normals_example.cpp | xiaoxie5002/OptCuts | 1f4168fc867f47face85fcfa3a572be98232786f | [
"MIT"
] | 8 | 2019-03-22T13:27:38.000Z | 2020-06-18T13:23:23.000Z | ext/libigl/external/cgal/src/CGAL_Project/examples/Point_set_processing_3/normals_example.cpp | xiaoxie5002/OptCuts | 1f4168fc867f47face85fcfa3a572be98232786f | [
"MIT"
] | 34 | 2019-02-13T01:11:12.000Z | 2022-02-28T03:29:40.000Z | #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/pca_estimate_normals.h>
#include <CGAL/mst_orient_normals.h>
#include <CGAL/property_map.h>
#include <CGAL/IO/read_xyz_points.h>
#include <utility> // defines std::pair
#include <list>
#include <fstream>
// Types
typedef CGAL::Exact_predic... | 37.712121 | 86 | 0.668943 | [
"vector"
] |
703803632a13be1bf0b65db2afe7edd95793fd3f | 10,741 | cpp | C++ | src/ql/ql_manager.cpp | li-plus/redbase-cpp | 38f9612b2cf4fbd792a2da13ca95295e789ba8aa | [
"MIT"
] | 18 | 2021-02-15T14:28:06.000Z | 2022-03-30T19:58:38.000Z | src/ql/ql_manager.cpp | li-plus/redbase-cpp | 38f9612b2cf4fbd792a2da13ca95295e789ba8aa | [
"MIT"
] | null | null | null | src/ql/ql_manager.cpp | li-plus/redbase-cpp | 38f9612b2cf4fbd792a2da13ca95295e789ba8aa | [
"MIT"
] | 5 | 2021-05-22T06:07:32.000Z | 2022-03-10T05:32:10.000Z | #include "ql_manager.h"
#include "ql_node.h"
#include "record_printer.h"
#include "sm/sm.h"
#include "ix/ix.h"
static TabCol check_column(const std::vector<ColMeta> &all_cols, TabCol target) {
if (target.tab_name.empty()) {
// Table name not specified, infer table name from column name
std::string ... | 38.916667 | 109 | 0.5884 | [
"vector"
] |
7044fc84391a6deb9e8e13f75878c964e7ebb276 | 23,234 | hpp | C++ | core/src/Cabana_Sort.hpp | suchyta1/Cabana | 126d67ce76645b90042197174fcc4cf494e6a56d | [
"Unlicense"
] | null | null | null | core/src/Cabana_Sort.hpp | suchyta1/Cabana | 126d67ce76645b90042197174fcc4cf494e6a56d | [
"Unlicense"
] | null | null | null | core/src/Cabana_Sort.hpp | suchyta1/Cabana | 126d67ce76645b90042197174fcc4cf494e6a56d | [
"Unlicense"
] | null | null | null | /****************************************************************************
* Copyright (c) 2018-2019 by the Cabana authors *
* All rights reserved. *
* *
* This ... | 35.043741 | 80 | 0.608806 | [
"vector"
] |
704e8a425b9cc4e791d60d40b612c27ac3c201d2 | 7,138 | hh | C++ | CRVResponse/standalone/wls/include/G4CerenkovNew.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2021-06-25T00:00:12.000Z | 2021-06-25T00:00:12.000Z | CRVResponse/standalone/wls/include/G4CerenkovNew.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | CRVResponse/standalone/wls/include/G4CerenkovNew.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 3 | 2021-05-24T20:17:02.000Z | 2021-06-08T09:29:18.000Z | /*
Cerenkov process which doesn't assume that the the index of refraction increases with increasing energy.
In this more general case, the integrals, and cut-offs need to be treated differently.
*/
#ifndef G4Cerenkov_h
#define G4Cerenkov_h 1
/////////////
// Includes
/////////////
#include <CLHEP/Units/SystemOfUnits... | 30.245763 | 104 | 0.592463 | [
"vector"
] |
7051f8e5d5b2a8523ff9afe19035bf051084faab | 9,485 | cc | C++ | src/DIF/RIB/RIBdListeners.cc | Miguel-A/RinaSim | 70ff28dc05e8250ca28c438290cf8c08f8a94a23 | [
"MIT"
] | 1 | 2016-02-24T19:31:04.000Z | 2016-02-24T19:31:04.000Z | src/DIF/RIB/RIBdListeners.cc | Miguel-A/RinaSim | 70ff28dc05e8250ca28c438290cf8c08f8a94a23 | [
"MIT"
] | null | null | null | src/DIF/RIB/RIBdListeners.cc | Miguel-A/RinaSim | 70ff28dc05e8250ca28c438290cf8c08f8a94a23 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project
//
// 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 wit... | 35.524345 | 95 | 0.653769 | [
"object"
] |
7052c8484e6510ef88305d033e2d075320466765 | 2,363 | cpp | C++ | test/RangeQuery_test.cpp | Suraj-Yadav/PhysicsEngine2D | 557c47d6319e26f928dae6ae95ee5a0d7b7c82ae | [
"MIT"
] | 1 | 2019-05-01T02:05:47.000Z | 2019-05-01T02:05:47.000Z | test/RangeQuery_test.cpp | Suraj-Yadav/PhysicsEngine2D | 557c47d6319e26f928dae6ae95ee5a0d7b7c82ae | [
"MIT"
] | null | null | null | test/RangeQuery_test.cpp | Suraj-Yadav/PhysicsEngine2D | 557c47d6319e26f928dae6ae95ee5a0d7b7c82ae | [
"MIT"
] | null | null | null | #include <doctest.h>
#include <PhysicsEngine2D/KdTree.hpp>
#include <PhysicsEngine2D/RangeTree2D.hpp>
#include "TestUtil.hpp"
TYPE_TO_STRING(KdTree<int>);
TYPE_TO_STRING(RangeTree2D<int>);
TEST_CASE_TEMPLATE(
"Test RangeTree Range Query", Tree, KdTree<int>, RangeTree2D<int>) {
SUBCASE("Empty Input") {
std::vect... | 29.911392 | 69 | 0.671181 | [
"vector"
] |
7054b404e4dfb30cffd46b1b82c22b5d427500b4 | 16,643 | cxx | C++ | Filters/AMR/Testing/Cxx/TestAMRGhostLayerStripping.cxx | txwhhny/vtk | 854d9aa87b944bc9079510515996406b98b86f7c | [
"BSD-3-Clause"
] | 1,755 | 2015-01-03T06:55:00.000Z | 2022-03-29T05:23:26.000Z | Filters/AMR/Testing/Cxx/TestAMRGhostLayerStripping.cxx | txwhhny/vtk | 854d9aa87b944bc9079510515996406b98b86f7c | [
"BSD-3-Clause"
] | 29 | 2015-04-23T20:58:30.000Z | 2022-03-02T16:16:42.000Z | Filters/AMR/Testing/Cxx/TestAMRGhostLayerStripping.cxx | txwhhny/vtk | 854d9aa87b944bc9079510515996406b98b86f7c | [
"BSD-3-Clause"
] | 1,044 | 2015-01-05T22:48:27.000Z | 2022-03-31T02:38:26.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: TestAMRGhostLayerStripping.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Thi... | 33.153386 | 100 | 0.634501 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.