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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
052af606b815e04b09750b243038edb8a78cac6a | 1,358 | cpp | C++ | atcoder/corp/codefes2016_fd.cpp | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | 1 | 2018-11-12T15:18:55.000Z | 2018-11-12T15:18:55.000Z | atcoder/corp/codefes2016_fd.cpp | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | atcoder/corp/codefes2016_fd.cpp | knuu/competitive-programming | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
typedef pair<ll, ll> Pll;
typedef vector<int> Vi;
//typedef tuple<int, int, int> T;
#define FOR(i,s,x) for(int i=s;i<(int)(x);i++)
#define REP(i,x) FOR(i,0,x)
#define ALL(c) c.begin(), c.end()
#define DUMP( x ) cerr << #x... | 27.714286 | 75 | 0.553019 | [
"vector"
] |
052e325190079a160705d56839b297c94585c923 | 473 | cpp | C++ | 0001-0100/0078.cpp | YKR/LeetCode2019 | e4c6346eae5c7b85ba53249c46051700a73dd95e | [
"MIT"
] | null | null | null | 0001-0100/0078.cpp | YKR/LeetCode2019 | e4c6346eae5c7b85ba53249c46051700a73dd95e | [
"MIT"
] | null | null | null | 0001-0100/0078.cpp | YKR/LeetCode2019 | e4c6346eae5c7b85ba53249c46051700a73dd95e | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> ret;
vector<int> cur;
void recurse(vector<int> & nums, int curp)
{
if (curp == nums.size())
{
ret.push_back(cur);
return;
}
recurse(nums, curp + 1);
cur.push_back(nums[curp]);
recurse(nu... | 20.565217 | 52 | 0.494715 | [
"vector"
] |
05311f3eb4e3403b72ad251e0f8c5785efa63a58 | 13,983 | cpp | C++ | src/ukf.cpp | bilalelsheemy/bilalelsheemy-Object-Tracking-in-2D-Using-Unscented-Kalman-Filter | a40004b0abac77d4f5b199120d00e37ea170e5dc | [
"MIT"
] | null | null | null | src/ukf.cpp | bilalelsheemy/bilalelsheemy-Object-Tracking-in-2D-Using-Unscented-Kalman-Filter | a40004b0abac77d4f5b199120d00e37ea170e5dc | [
"MIT"
] | null | null | null | src/ukf.cpp | bilalelsheemy/bilalelsheemy-Object-Tracking-in-2D-Using-Unscented-Kalman-Filter | a40004b0abac77d4f5b199120d00e37ea170e5dc | [
"MIT"
] | null | null | null | #include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializing Unscented Kalman filter parameters
* This is scaffolding, do not modify
*/
UKF::UKF() {
// set it initially to false
is_initialized_ = false;
//... | 28.420732 | 119 | 0.658728 | [
"object",
"vector",
"model"
] |
0534a27b2aaa28b512ac7ca5619d6346ab0e1b01 | 811 | cpp | C++ | datasets/github_cpp_10/5/14.cpp | yijunyu/demo-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | 1 | 2019-05-03T19:27:45.000Z | 2019-05-03T19:27:45.000Z | datasets/github_cpp_10/5/14.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null | datasets/github_cpp_10/5/14.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string st;
typedef vector<int> vi;
#define rep(i, n) for(int i = 0; i < n; ++i)
#define fogg(i,a,b) for(int i = (a); i <= (b); ++i)
#define ford(i,a,b) for(int i = (a); i >= (b); --i)
#define test int test_case; cin >> test_case; while(test... | 21.918919 | 77 | 0.573366 | [
"vector"
] |
053b5e37b8c469f5a494cd9260235b8f9d037dfc | 10,097 | cpp | C++ | ddtrlibrary/ddtrLibrary/tree-testing/tree-testing.cpp | mkatsa/DDTR_DRAM_NVM | 6efa624a8a3d75436ed4e416b965ff4cf9429c42 | [
"Apache-2.0"
] | null | null | null | ddtrlibrary/ddtrLibrary/tree-testing/tree-testing.cpp | mkatsa/DDTR_DRAM_NVM | 6efa624a8a3d75436ed4e416b965ff4cf9429c42 | [
"Apache-2.0"
] | null | null | null | ddtrlibrary/ddtrLibrary/tree-testing/tree-testing.cpp | mkatsa/DDTR_DRAM_NVM | 6efa624a8a3d75436ed4e416b965ff4cf9429c42 | [
"Apache-2.0"
] | null | null | null | //
// tree-testing.cpp
// tree-testing
//
// Created by Christos Baloukas on 14/4/21.
//
#include <iostream>
#include <sstream>
#include <random>
#include <chrono>
#include "../../definitions.h"
#include "../../config.h"
void print_map(std::string_view comment, const std::map<std::string, int>& m)
{
std::cout ... | 33.54485 | 108 | 0.578885 | [
"vector"
] |
05425ab09bd89707ffec93287bfe6dcdc80cca3c | 1,457 | cpp | C++ | Titan/src/Renderer/PostProcessTonemap.cpp | KyleKaiWang/titan | c420f1b476bd85193bcc3a493d115ac2a321a9ac | [
"Apache-2.0"
] | null | null | null | Titan/src/Renderer/PostProcessTonemap.cpp | KyleKaiWang/titan | c420f1b476bd85193bcc3a493d115ac2a321a9ac | [
"Apache-2.0"
] | null | null | null | Titan/src/Renderer/PostProcessTonemap.cpp | KyleKaiWang/titan | c420f1b476bd85193bcc3a493d115ac2a321a9ac | [
"Apache-2.0"
] | null | null | null | #include "tpch.h"
#include "PostProcessTonemap.h"
#include "Shader.h"
#include "Application.h"
#include "DeferredRendering.h"
#include "FrameBuffer.h"
#include "../ImGui/imgui.h"
#include "../Utility/Random.h"
#include <glad/glad.h>
namespace Titan {
static std::shared_ptr<Shader> tonemapShader;
float exposure = 0.... | 29.734694 | 114 | 0.719286 | [
"render"
] |
0542fb21c196ede35ce10a10548fb7f3f93ddc51 | 2,086 | cpp | C++ | Qv2ray/src/common/QvTranslator.cpp | DWXXX/cnRepo | 3e54581699e4bf4d0d2d8a7c85fe340ebbbb8eef | [
"Apache-2.0"
] | null | null | null | Qv2ray/src/common/QvTranslator.cpp | DWXXX/cnRepo | 3e54581699e4bf4d0d2d8a7c85fe340ebbbb8eef | [
"Apache-2.0"
] | null | null | null | Qv2ray/src/common/QvTranslator.cpp | DWXXX/cnRepo | 3e54581699e4bf4d0d2d8a7c85fe340ebbbb8eef | [
"Apache-2.0"
] | null | null | null | #include "QvTranslator.hpp"
#include "base/Qv2rayBase.hpp"
#include "common/QvHelpers.hpp"
using namespace Qv2ray::base;
// path searching list.
QStringList getLanguageSearchPaths()
{
// Configuration Path
QStringList list = Qv2rayAssetsPaths("lang");
#ifdef EMBED_TRANSLATIONS
// If the translations have... | 31.134328 | 141 | 0.59348 | [
"transform"
] |
05439546822aa2d8706946cf871e46a9fd17a3e7 | 5,864 | cxx | C++ | Applications/ResampleTubes/ResampleTubes.cxx | cdeepakroy/TubeTK | c39d1065bf10736a36a845cbd68749ff363f733f | [
"Apache-2.0"
] | 1 | 2016-09-08T21:34:25.000Z | 2016-09-08T21:34:25.000Z | Applications/ResampleTubes/ResampleTubes.cxx | cdeepakroy/TubeTK | c39d1065bf10736a36a845cbd68749ff363f733f | [
"Apache-2.0"
] | null | null | null | Applications/ResampleTubes/ResampleTubes.cxx | cdeepakroy/TubeTK | c39d1065bf10736a36a845cbd68749ff363f733f | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lic... | 28.604878 | 79 | 0.690314 | [
"transform",
"3d"
] |
054a0ef39baeb4739f50d249b1449a883679520c | 4,925 | hpp | C++ | include/mango/math/vector128_int8x16.hpp | galek/mango | 975b438ac9a22ed3a849da6187e1fdf3d547c926 | [
"Zlib"
] | 1 | 2021-08-06T09:27:45.000Z | 2021-08-06T09:27:45.000Z | include/mango/math/vector128_int8x16.hpp | galek/mango | 975b438ac9a22ed3a849da6187e1fdf3d547c926 | [
"Zlib"
] | null | null | null | include/mango/math/vector128_int8x16.hpp | galek/mango | 975b438ac9a22ed3a849da6187e1fdf3d547c926 | [
"Zlib"
] | 1 | 2021-07-10T11:41:01.000Z | 2021-07-10T11:41:01.000Z | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2017 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include "vector.hpp"
namespace mango
{
template <>
struct Vector<int8, 16> : VectorBase<int8, 16>
{
using vector_type = simd::int8x16;
simd::int8x16 m... | 23.677885 | 106 | 0.539695 | [
"vector",
"3d"
] |
d7295b63a1fa215f3efe357e20e33b65e97c6468 | 2,579 | cpp | C++ | src/ogdl_read.cpp | eivinsam/ogdl-cpp | f37ca09eea65c9585fbf10c6450732133209156f | [
"MIT"
] | null | null | null | src/ogdl_read.cpp | eivinsam/ogdl-cpp | f37ca09eea65c9585fbf10c6450732133209156f | [
"MIT"
] | null | null | null | src/ogdl_read.cpp | eivinsam/ogdl-cpp | f37ca09eea65c9585fbf10c6450732133209156f | [
"MIT"
] | null | null | null | #include <ogdl.h>
#include <fstream>
using namespace ogdl;
class Reader
{
static constexpr char EOT = 4;
std::istream& _in;
char _current;
char _advance()
{
const auto res = _current;
_in.get(_current);
if (!_in.good())
_current = EOT;
return res;
}
size_t _skip_space()
{
size_t result = 0;
... | 17.308725 | 87 | 0.572703 | [
"vector"
] |
d72e3c3858a9d0116d40c8650aaaa95ed6a037f0 | 3,516 | cpp | C++ | hphp/util/test/brotli-test.cpp | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2015-08-28T06:20:50.000Z | 2021-11-08T09:48:24.000Z | hphp/util/test/brotli-test.cpp | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-19T19:06:32.000Z | 2020-01-19T19:06:32.000Z | hphp/util/test/brotli-test.cpp | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2018-01-23T20:44:59.000Z | 2021-05-06T12:45:31.000Z | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 34.470588 | 76 | 0.527873 | [
"vector"
] |
d72f3150fa275c3d8c8195fba2deb38fe3939912 | 9,422 | cpp | C++ | source/sill/components/animation-component.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 15 | 2018-02-26T08:20:03.000Z | 2022-03-06T03:25:46.000Z | source/sill/components/animation-component.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 32 | 2018-02-26T08:26:38.000Z | 2020-09-12T17:09:38.000Z | source/sill/components/animation-component.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | null | null | null | #include <lava/sill/components/animation-component.hpp>
#include <lava/sill/components/transform-component.hpp>
#include <lava/sill/entity.hpp>
using namespace lava::chamber;
using namespace lava::sill;
AnimationComponent::AnimationComponent(Entity& entity)
: IComponent(entity)
{
}
void AnimationComponent::upda... | 40.437768 | 174 | 0.673212 | [
"transform"
] |
d7329c4135c5c5ab89c6375c7f1c62a28dfb3fd6 | 1,682 | cpp | C++ | Recursion and Backtracking/36. Valid Sudoku.cpp | ankitapuri/LeetCode-Solutions | 16d9b6a992663a19db373f207b23b95225f56c28 | [
"MIT"
] | 18 | 2021-11-07T06:45:25.000Z | 2022-03-03T10:37:01.000Z | Recursion and Backtracking/36. Valid Sudoku.cpp | ankitapuri/LeetCode-Solutions | 16d9b6a992663a19db373f207b23b95225f56c28 | [
"MIT"
] | 1 | 2021-10-12T15:32:27.000Z | 2021-11-06T11:48:11.000Z | Recursion and Backtracking/36. Valid Sudoku.cpp | ankitapuri/LeetCode-Solutions | 16d9b6a992663a19db373f207b23b95225f56c28 | [
"MIT"
] | 2 | 2021-11-25T10:25:44.000Z | 2021-12-31T15:16:47.000Z | class Solution {
public:
bool solveSudoku(vector<vector<char>> &board, int row, int col) {
// If the position is now at the end of the 9*9 grid
if(row == 8 and col == 9) return true;
// if column has reached upper bound
if(col==9) {
row++;
col=0;
... | 34.326531 | 105 | 0.470273 | [
"vector"
] |
d733646ab9a78dd6304e870fcd3e432fb1e5d010 | 2,569 | cpp | C++ | src/backend/base/base_chunk.cpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | src/backend/base/base_chunk.cpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | src/backend/base/base_chunk.cpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by kier on 2019-04-15.
//
#include "backend/base/base_chunk.h"
#include "backend/name.h"
#include "core/tensor_builder.h"
#include "utils/box.h"
namespace ts {
namespace base {
Chunk::Chunk() {
field(name::chunks, REQUIRED);
field(name::dim, OPTIONAL, tensor::from<i... | 28.230769 | 116 | 0.515765 | [
"shape",
"vector"
] |
d73481278c28cfacdc7b06cd93d6a5c58bd57a63 | 1,852 | cpp | C++ | ugene/src/corelibs/U2Gui/src/options_panel/GroupOptionsWidget.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | ugene/src/corelibs/U2Gui/src/options_panel/GroupOptionsWidget.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | ugene/src/corelibs/U2Gui/src/options_panel/GroupOptionsWidget.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <ugene@unipro.ru>
* http://ugene.unipro.ru
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version... | 30.360656 | 104 | 0.699784 | [
"solid"
] |
d738a07ec2e7710bb0814c84c3167904ef673a1e | 31,190 | cpp | C++ | src/gromacs/mdlib/updategroups.cpp | hejamu/gromacs | 4f4b9e4b197ae78456faada74c9f4cab7d128de6 | [
"BSD-2-Clause"
] | 384 | 2015-01-02T19:44:15.000Z | 2022-03-27T15:13:15.000Z | src/gromacs/mdlib/updategroups.cpp | hejamu/gromacs | 4f4b9e4b197ae78456faada74c9f4cab7d128de6 | [
"BSD-2-Clause"
] | 9 | 2015-04-07T20:48:00.000Z | 2022-01-24T21:29:26.000Z | src/gromacs/mdlib/updategroups.cpp | hejamu/gromacs | 4f4b9e4b197ae78456faada74c9f4cab7d128de6 | [
"BSD-2-Clause"
] | 258 | 2015-01-19T11:19:57.000Z | 2022-03-18T08:59:52.000Z | /*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2018,2019,2020,2021, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at... | 37.897934 | 127 | 0.58118 | [
"geometry",
"vector"
] |
d73d0c461f2dba23742dfa9e10aa2bbae67a5362 | 6,913 | cc | C++ | Alignment/CommonAlignment/src/AlignableBeamSpot.cc | samarendran23/cmssw | 849dd9897db9b894ca83e1b630a3c1eecafd6097 | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | Alignment/CommonAlignment/src/AlignableBeamSpot.cc | samarendran23/cmssw | 849dd9897db9b894ca83e1b630a3c1eecafd6097 | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | Alignment/CommonAlignment/src/AlignableBeamSpot.cc | p2l1pfp/cmssw | 9bda22bf33ecf18dd19a3af2b3a8cbdb1de556a9 | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | /** \file AlignableBeamSpot
*
* Original author: Andreas Mussgiller, August 2010
*
* $Date: 2010/10/26 19:53:53 $
* $Revision: 1.2 $
* (last update by $Author: flucke $)
*/
#include "Alignment/CommonAlignment/interface/AlignableDetUnit.h"
#include "CondFormats/Alignment/interface/Alignments.h"
#include "Con... | 43.20625 | 120 | 0.772458 | [
"vector",
"transform"
] |
d73df6418ddeb1fd65e5ce7901dc80206d2885b8 | 16,348 | cpp | C++ | src/qt/qtbase/src/3rdparty/angle/src/libGLESv2/renderer/d3d9/Blit.cpp | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 513 | 2015-09-27T15:16:57.000Z | 2022-03-08T09:26:35.000Z | src/qt/qtbase/src/3rdparty/angle/src/libGLESv2/renderer/d3d9/Blit.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 133 | 2015-09-28T23:41:42.000Z | 2021-06-21T03:59:11.000Z | src/qt/qtbase/src/3rdparty/angle/src/libGLESv2/renderer/d3d9/Blit.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 40 | 2016-01-18T16:56:36.000Z | 2022-02-27T13:03:51.000Z | #include "precompiled.h"
//
// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Blit.cpp: Surface copy utility class.
#include "libGLESv2/renderer/d3d9/Blit.h"
#include "libGLESv2/main... | 27.42953 | 193 | 0.669868 | [
"render"
] |
d73dfc638e88634dd127c7cc0aa2106ef63fac6e | 2,893 | cpp | C++ | Muriel/MuShader.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:15:27.000Z | 2017-03-01T12:15:27.000Z | Muriel/MuShader.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:19:17.000Z | 2017-03-01T12:19:52.000Z | Muriel/MuShader.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "MuShader.h"
#include "MuFileUtils.h"
#include "MuException.h"
#include "MuLog.h"
namespace Muriel
{
Shader::Shader()
{
}
Shader::Shader(const string& name, const string& path)
: Object(name)
{
//_shaderId = glCreateProgram();
//glAttachShader(_shaderId, verte... | 26.3 | 106 | 0.692707 | [
"object"
] |
d73e077675108a0504515325fef5796b17ffee94 | 12,972 | cxx | C++ | main/autodoc/source/ary/cpp/usedtype.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/autodoc/source/ary/cpp/usedtype.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/autodoc/source/ary/cpp/usedtype.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... | 22.757895 | 86 | 0.62288 | [
"vector"
] |
d73e4e55c72c2a0968090100bfec7a0cbc93611a | 16,095 | cpp | C++ | cpp-projects/exvr-designer/widgets/dialogs/resources_manager_dialog.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/widgets/dialogs/resources_manager_dialog.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null | cpp-projects/exvr-designer/widgets/dialogs/resources_manager_dialog.cpp | FlorianLance/exvr | 4d210780737479e9576c90e9c80391c958787f44 | [
"MIT"
] | null | null | null |
/***********************************************************************************
** exvr-designer **
** MIT License **
** Copyright (c) [2018] [Florian Lance][EPFL-LNCO] ... | 44.708333 | 179 | 0.606275 | [
"mesh",
"shape"
] |
d73efe63e16185a1b87c120fbe249d129876b91f | 2,461 | cpp | C++ | Zork/controller.cpp | bar0net/Zork | d2cca0cbc28b1f60165069dc080fa6f37634d616 | [
"MIT"
] | null | null | null | Zork/controller.cpp | bar0net/Zork | d2cca0cbc28b1f60165069dc080fa6f37634d616 | [
"MIT"
] | null | null | null | Zork/controller.cpp | bar0net/Zork | d2cca0cbc28b1f60165069dc080fa6f37634d616 | [
"MIT"
] | null | null | null | #include "controller.h"
Controller::Controller()
{
// associate key words with allowed action
translate["look"] = LOOK;
translate["read"] = LOOK;
translate["glance"] = LOOK;
translate["go"] = GO;
translate["walk"] = GO;
translate["run"] = GO;
translate["cross"] = GO;
translate["open"] = OPEN;
translate[... | 22.577982 | 90 | 0.631044 | [
"transform"
] |
d745d76afc67d9f005a0d75759e7937f6aa34a92 | 7,751 | cc | C++ | Modules/Plexil/src/app-framework/DarwinTimeAdapter.cc | 5nefarious/icarous | bfd759d88a47d9ee079fe35deaa6cf6d4459dcd8 | [
"Unlicense"
] | null | null | null | Modules/Plexil/src/app-framework/DarwinTimeAdapter.cc | 5nefarious/icarous | bfd759d88a47d9ee079fe35deaa6cf6d4459dcd8 | [
"Unlicense"
] | null | null | null | Modules/Plexil/src/app-framework/DarwinTimeAdapter.cc | 5nefarious/icarous | bfd759d88a47d9ee079fe35deaa6cf6d4459dcd8 | [
"Unlicense"
] | null | null | null | /* Copyright (c) 2006-2016, Universities Space Research Association (USRA).
* 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
... | 32.704641 | 128 | 0.673074 | [
"object"
] |
d749a282ceca94811f09c1d56f1f4e7d0aaf601a | 748 | cpp | C++ | Algorithmic Toolbox/Week 2/Last_Digit_of_the_Sum_of_Fibonacci_Numbers.cpp | fuboki10/Data-Structures-and-Algorithms-Specialization | 1f2dc9aded51fdb0268cbdf67d2d16d62ac6bd95 | [
"MIT"
] | null | null | null | Algorithmic Toolbox/Week 2/Last_Digit_of_the_Sum_of_Fibonacci_Numbers.cpp | fuboki10/Data-Structures-and-Algorithms-Specialization | 1f2dc9aded51fdb0268cbdf67d2d16d62ac6bd95 | [
"MIT"
] | null | null | null | Algorithmic Toolbox/Week 2/Last_Digit_of_the_Sum_of_Fibonacci_Numbers.cpp | fuboki10/Data-Structures-and-Algorithms-Specialization | 1f2dc9aded51fdb0268cbdf67d2d16d62ac6bd95 | [
"MIT"
] | null | null | null | // Fub0ki
#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
#include <unordered_map>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
#define mp make_pair
#define pb push_back
#define bn begin()
#define nd end()
#define all(v) v.begin(), v.end()
#define allr(v) v.rbegin(), v.rend()
#define EP... | 17.809524 | 40 | 0.566845 | [
"vector"
] |
d74ac9cdabc39436bcf9843f42ffde1abc62dd31 | 741 | hpp | C++ | src/include/execution/operator/join/physical_comparison_join.hpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | 1 | 2019-08-01T08:21:33.000Z | 2019-08-01T08:21:33.000Z | src/include/execution/operator/join/physical_comparison_join.hpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | null | null | null | src/include/execution/operator/join/physical_comparison_join.hpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | 1 | 2019-09-06T09:58:14.000Z | 2019-09-06T09:58:14.000Z | //===----------------------------------------------------------------------===//
// DuckDB
//
// execution/operator/join/physical_comparison_join.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "execution/operator/join/physical_j... | 26.464286 | 99 | 0.566802 | [
"vector"
] |
d7513784761a423636a62e7f24d4e2e689ad90dc | 4,212 | hpp | C++ | include/Mono/Net/Security/ServerCertValidationCallbackWrapper.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Mono/Net/Security/ServerCertValidationCallbackWrapper.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Mono/Net/Security/ServerCertValidationCallbackWrapper.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.MulticastDelegate
#include "System/MulticastDelegate.hpp"
#inc... | 61.043478 | 363 | 0.775404 | [
"object"
] |
d752404832945a2e4fcf178561d2ed610f02681f | 7,297 | cc | C++ | projects/packages/fitted-R-MAXQ/Environment/Taxi.cc | litlpoet/rl-library | b81cb3f9045756e031c30c8d8262c9b6e5c5d9c2 | [
"Apache-2.0"
] | null | null | null | projects/packages/fitted-R-MAXQ/Environment/Taxi.cc | litlpoet/rl-library | b81cb3f9045756e031c30c8d8262c9b6e5c5d9c2 | [
"Apache-2.0"
] | null | null | null | projects/packages/fitted-R-MAXQ/Environment/Taxi.cc | litlpoet/rl-library | b81cb3f9045756e031c30c8d8262c9b6e5c5d9c2 | [
"Apache-2.0"
] | 1 | 2020-08-02T11:58:51.000Z | 2020-08-02T11:58:51.000Z | // env_ function prototypes types
#include <rlglue/Environment_common.h>
// helpful functions for allocating structs and cleaning them up
#include <rlglue/utils/C/RLStruct_util.h>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <vector>
#include "Random.h"
#include "gridworld.hh"
namespac... | 25.967972 | 78 | 0.617103 | [
"vector"
] |
d75395b755b4c315b5a187d3c759ee0915bc165a | 4,792 | cpp | C++ | aplcore/src/graphic/graphicelementcontainer.cpp | tschaffter/apl-core-library | 3a05342ba0fa2432c320476795c13e8cd990e8ee | [
"Apache-2.0"
] | 28 | 2019-11-05T12:23:01.000Z | 2022-03-22T10:01:53.000Z | aplcore/src/graphic/graphicelementcontainer.cpp | alexa/apl-core-library | b0859273851c4f62290d1f85c42bf22eb087fb35 | [
"Apache-2.0"
] | 7 | 2020-03-28T12:44:08.000Z | 2022-01-23T17:02:27.000Z | aplcore/src/graphic/graphicelementcontainer.cpp | tschaffter/apl-core-library | 3a05342ba0fa2432c320476795c13e8cd990e8ee | [
"Apache-2.0"
] | 15 | 2019-12-25T10:15:52.000Z | 2021-12-30T03:50:00.000Z | /**
* Copyright 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" ... | 43.963303 | 134 | 0.653589 | [
"object"
] |
d7552803b8baabf7a4238e76b2c97838b24c4748 | 25,578 | cc | C++ | AICamera/app/src/main/cpp/caffe2/contrib/script/compiler.cc | blackxer/AICamera | 4f0a6a09a2288da2ec7140744b5c2862df114c78 | [
"MIT"
] | 1 | 2020-01-10T02:56:03.000Z | 2020-01-10T02:56:03.000Z | AICamera/app/src/main/cpp/caffe2/contrib/script/compiler.cc | blackxer/AICamera | 4f0a6a09a2288da2ec7140744b5c2862df114c78 | [
"MIT"
] | null | null | null | AICamera/app/src/main/cpp/caffe2/contrib/script/compiler.cc | blackxer/AICamera | 4f0a6a09a2288da2ec7140744b5c2862df114c78 | [
"MIT"
] | null | null | null | #include "caffe2/core/net.h"
#include "caffe2/utils/proto_utils.h"
#include "compiler.h"
#include "parser.h"
namespace caffe2 {
namespace script {
namespace {
static std::unordered_set<std::string> ops_containing_nets = {
"If",
"While",
"RecurrentNetwork",
};
// record of defined functio... | 32.214106 | 87 | 0.559622 | [
"object",
"shape",
"vector"
] |
d7591567d5f50fe07706460f1235144ba58f3599 | 2,836 | cpp | C++ | libs/liboclWrapper/oclWrapper.cpp | GabrielHapki/OpenCL | 44e58bc9c43867d24cc6f08eb2e30a9268c5db20 | [
"MIT"
] | null | null | null | libs/liboclWrapper/oclWrapper.cpp | GabrielHapki/OpenCL | 44e58bc9c43867d24cc6f08eb2e30a9268c5db20 | [
"MIT"
] | null | null | null | libs/liboclWrapper/oclWrapper.cpp | GabrielHapki/OpenCL | 44e58bc9c43867d24cc6f08eb2e30a9268c5db20 | [
"MIT"
] | null | null | null | #include "oclWrapper.hpp"
#include <iostream>
#include <fstream>
bool oclWrapper::Init(const ocl::Blocking_t block, const ocl::Profiling_t profiling)
{
std::vector<cl::Platform> all_platforms;
cl::Platform::get(&all_platforms);
if (all_platforms.size()==0) {
std::cout<<" No platforms found. Ch... | 32.227273 | 123 | 0.679831 | [
"vector"
] |
d7592d730bf16185ab44e63be13925882f0e5a58 | 7,592 | cpp | C++ | Modules/IGT/IO/mitkNavigationToolReader.cpp | maleike/MITK | 83b0c35625dfaed99147f357dbd798b1dc19815b | [
"BSD-3-Clause"
] | 5 | 2015-05-27T06:57:53.000Z | 2020-03-12T21:08:23.000Z | Modules/IGT/IO/mitkNavigationToolReader.cpp | rkhlebnikov/MITK | 4e084d2d790cac945757ead66b2898ca70e5cd28 | [
"BSD-3-Clause"
] | 4 | 2020-09-17T16:01:55.000Z | 2022-01-18T21:12:10.000Z | Modules/IGT/IO/mitkNavigationToolReader.cpp | rkhlebnikov/MITK | 4e084d2d790cac945757ead66b2898ca70e5cd28 | [
"BSD-3-Clause"
] | 2 | 2016-08-17T12:01:04.000Z | 2020-03-12T22:36:36.000Z | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 34.509091 | 169 | 0.70706 | [
"object",
"vector"
] |
d75ebcac556d8d392665e562b3be4b24f8a6d986 | 1,636 | cpp | C++ | 0123-Word Search/0123-Word Search.cpp | nmdis1999/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0101-0200/0123-Word Search/0123-Word Search.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0101-0200/0123-Word Search/0123-Word Search.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/**
* @param board: A list of lists of character
* @param word: A string
* @return: A boolean
*/
bool exist(vector<vector<char> > &board, string word) {
// write your code here
if (word.size() == 0)
{
return false;
}
... | 25.968254 | 112 | 0.397922 | [
"vector"
] |
d768c8aaeab120127bcfe843c759be859f620190 | 972 | cpp | C++ | c++/p0012.cpp | champson/leetcode | dee1ec06bbca2c8d2f8d1eda0885f99f39067d1c | [
"MIT"
] | null | null | null | c++/p0012.cpp | champson/leetcode | dee1ec06bbca2c8d2f8d1eda0885f99f39067d1c | [
"MIT"
] | null | null | null | c++/p0012.cpp | champson/leetcode | dee1ec06bbca2c8d2f8d1eda0885f99f39067d1c | [
"MIT"
] | null | null | null | /* 12. Integer to Roman
* Given an integer, convert it to a roman numeral.
*
* Input is guaranteed to be within the range from 1 to 3999.
*/
class Solution {
public:
string intToRoman(int num) {
string roman;
if (num < 1 || num > 3999) return "";
vector<pair<int, char>> romanMap = {{1000, '... | 32.4 | 121 | 0.481481 | [
"vector"
] |
d769fc2187288e2754ddb27014629db82723f2d1 | 10,731 | cpp | C++ | Medusa/Medusa/Node/Panel/ScrollPanel.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 143 | 2015-11-18T01:06:03.000Z | 2022-03-30T03:08:54.000Z | Medusa/Medusa/Node/Panel/ScrollPanel.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 1 | 2019-10-23T13:00:40.000Z | 2019-10-23T13:00:40.000Z | Medusa/Medusa/Node/Panel/ScrollPanel.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 45 | 2015-11-18T01:17:59.000Z | 2022-03-05T12:29:45.000Z | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaPreCompiled.h"
#include "ScrollPanel.h"
#include "Node/Input/Gesture/SwipeGestureRecognizer.h"
#include "Node/Input/InputDispatcher.h"
#include "Core/... | 25.733813 | 145 | 0.75445 | [
"mesh",
"geometry",
"model"
] |
d76c25d8622a0c65a18267b0bf40203664bf9462 | 3,263 | cc | C++ | engine/peer_impl.cc | snyderek/floating_temple | 267ee580620dc7f5a7fff7eb190dc03270267f4c | [
"Apache-2.0"
] | 2 | 2015-03-13T00:16:27.000Z | 2015-03-29T05:10:21.000Z | engine/peer_impl.cc | snyderek/floating_temple | 267ee580620dc7f5a7fff7eb190dc03270267f4c | [
"Apache-2.0"
] | null | null | null | engine/peer_impl.cc | snyderek/floating_temple | 267ee580620dc7f5a7fff7eb190dc03270267f4c | [
"Apache-2.0"
] | null | null | null | // Floating Temple
// Copyright 2015 Derek S. Snyder
//
// 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... | 29.93578 | 79 | 0.679743 | [
"vector"
] |
d76d4f6c487c1c358ed4450ba912abe116c77ab6 | 48,567 | cpp | C++ | src/engine/cpp/world_chunk.cpp | jjbandit/game | c28affd868201d3151ca75a20883e7fb26e09302 | [
"WTFPL"
] | 13 | 2017-04-12T16:26:46.000Z | 2022-03-01T22:04:34.000Z | src/engine/cpp/world_chunk.cpp | jjbandit/game | c28affd868201d3151ca75a20883e7fb26e09302 | [
"WTFPL"
] | null | null | null | src/engine/cpp/world_chunk.cpp | jjbandit/game | c28affd868201d3151ca75a20883e7fb26e09302 | [
"WTFPL"
] | null | null | null | inline b32
ChunkIsGarbage(world_chunk* Chunk)
{
Assert( IsSet(Chunk, Chunk_Queued) );
b32 Garbage = False;
if (IsSet(Chunk, Chunk_Garbage))
{
Chunk->Data->Flags = Chunk_Collected;
Garbage = True;
}
return Garbage;
}
bonsai_function world_chunk*
AllocateWorldChunk(memory_arena *Storage, world_posi... | 29.650183 | 204 | 0.655033 | [
"mesh"
] |
d7742cc2aa16b8dcc1e453d8ebcd80363a1bf8be | 12,126 | hpp | C++ | src/lattice.hpp | qftphys/Tight-Binding-Modeling-for-Materials-at-Mesoscale | b57237f87eec1e9beba8d1cfa13b3ebf4589e3be | [
"BSD-4-Clause"
] | 13 | 2017-01-04T17:54:51.000Z | 2022-01-26T12:49:37.000Z | src/lattice.hpp | qftphys/Tight-Binding-Modeling-for-Materials-at-Mesoscale | b57237f87eec1e9beba8d1cfa13b3ebf4589e3be | [
"BSD-4-Clause"
] | null | null | null | src/lattice.hpp | qftphys/Tight-Binding-Modeling-for-Materials-at-Mesoscale | b57237f87eec1e9beba8d1cfa13b3ebf4589e3be | [
"BSD-4-Clause"
] | 10 | 2017-07-23T15:37:33.000Z | 2019-11-29T14:41:52.000Z | /*-----------------------------------------------------------|
| Copyright (C) 2016 Yuan-Yen Tai, Hongchul Choi, |
| Jian-Xin Zhu |
| |
| This file is distributed under the terms of the BSD |
| Ber... | 27.748284 | 107 | 0.588982 | [
"geometry",
"object",
"vector",
"model",
"3d"
] |
d7769310081e4b04c17461bbcffc5333e8e5b95c | 1,231 | cpp | C++ | src/ftxui/dom/spinner_test.cpp | vnepogodin/FTXUI | 67e2d87f313205650e0fa978078e79aecf7a150c | [
"MIT"
] | null | null | null | src/ftxui/dom/spinner_test.cpp | vnepogodin/FTXUI | 67e2d87f313205650e0fa978078e79aecf7a150c | [
"MIT"
] | null | null | null | src/ftxui/dom/spinner_test.cpp | vnepogodin/FTXUI | 67e2d87f313205650e0fa978078e79aecf7a150c | [
"MIT"
] | null | null | null | #include <gtest/gtest-message.h> // for Message
#include <gtest/gtest-test-part.h> // for SuiteApiResolver, TestFactoryImpl, TestPartResult
#include <string> // for allocator
#include "ftxui/dom/elements.hpp" // for spinner
#include "ftxui/dom/node.hpp" // for Render
#include "ftxui/screen/... | 27.355556 | 92 | 0.671812 | [
"render"
] |
d77b4ebcf92a95e1b03643f5546ce220bce23a22 | 10,251 | h++ | C++ | include/nonius/main.h++ | podgorskiy/nonius | 3ce09960893083edf6c32311984d9697094a7eda | [
"CC0-1.0"
] | 1 | 2020-10-11T13:39:09.000Z | 2020-10-11T13:39:09.000Z | include/nonius/main.h++ | podgorskiy/nonius | 3ce09960893083edf6c32311984d9697094a7eda | [
"CC0-1.0"
] | null | null | null | include/nonius/main.h++ | podgorskiy/nonius | 3ce09960893083edf6c32311984d9697094a7eda | [
"CC0-1.0"
] | null | null | null | // Nonius - C++ benchmarking tool
//
// Written in 2014- by the nonius contributors <nonius@rmf.io>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public domain worldwide. This software is
// distributed without any warran... | 42.53527 | 146 | 0.531851 | [
"vector"
] |
d77bdd5b5076721730adffcdde8f58acecc37cf5 | 8,033 | cpp | C++ | MSCL/source/mscl/MicroStrain/MIP/Packets/MipDataPacket.cpp | contagon/MSCL | dc9029e7b7f83dc0eed5035ebb653102b0237060 | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | null | null | null | MSCL/source/mscl/MicroStrain/MIP/Packets/MipDataPacket.cpp | contagon/MSCL | dc9029e7b7f83dc0eed5035ebb653102b0237060 | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | null | null | null | MSCL/source/mscl/MicroStrain/MIP/Packets/MipDataPacket.cpp | contagon/MSCL | dc9029e7b7f83dc0eed5035ebb653102b0237060 | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | null | null | null | /*******************************************************************************
Copyright(c) 2015-2020 Parker Hannifin Corp. All rights reserved.
MIT Licensed. See the included LICENSE.txt for a copy of the full MIT License.
*******************************************************************************/
#include "st... | 33.894515 | 130 | 0.582597 | [
"vector"
] |
d7807a1d22d9f88aabb36458386e7b34e59c6bca | 401 | cpp | C++ | LeetCode/0674. Longest Continuous Increasing Subsequence/solution.cpp | InnoFang/oh-my-algorithms | f559dba371ce725a926725ad28d5e1c2facd0ab2 | [
"Apache-2.0"
] | 19 | 2018-08-26T03:10:58.000Z | 2022-03-07T18:12:52.000Z | LeetCode/0674. Longest Continuous Increasing Subsequence/solution.cpp | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | null | null | null | LeetCode/0674. Longest Continuous Increasing Subsequence/solution.cpp | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | 6 | 2020-03-16T23:00:06.000Z | 2022-01-13T07:02:08.000Z | /**
* 36 / 36 test cases passed.
* Status: Accepted
* Runtime: 8 ms
*/
class Solution {
public:
int findLengthOfLCIS(vector<int>& nums) {
int start = 0, ans = 0;
for (int i = 0; i < nums.size(); ++ i) {
if (i > 0 && nums[i] <= nums[i-1]) {
start = i;
}
... | 20.05 | 48 | 0.426434 | [
"vector"
] |
d7870df7e3cd78ea2b7cd956f76a2d21e31ace5c | 996 | cpp | C++ | bcge/renderer.cpp | SuperSumo/bcge | 189b9c81190b2abf61e95669d9ae59a559caa4bc | [
"MIT"
] | null | null | null | bcge/renderer.cpp | SuperSumo/bcge | 189b9c81190b2abf61e95669d9ae59a559caa4bc | [
"MIT"
] | null | null | null | bcge/renderer.cpp | SuperSumo/bcge | 189b9c81190b2abf61e95669d9ae59a559caa4bc | [
"MIT"
] | null | null | null | #include <gl/glew.h>
#include <SFML/OpenGL.hpp>
#include "renderer.h"
#include "manager.h"
#include "window.h"
#include "abc/game.h"
using namespace std;
Renderer::Renderer(Manager* manager):
_manager(manager)
{}
void Renderer::initialize()
{
cout << "Renderer::initialize()" << endl;
// Initia... | 20.75 | 65 | 0.660643 | [
"render"
] |
d78c0608592830b57d0acde9a253183a180cb55c | 1,226 | cpp | C++ | code archive/TIOJ/2054.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/TIOJ/2054.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/TIOJ/2054.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | //{
#include<cstdio>
#include<algorithm>
#include<vector>
using namespace std;
typedef int ll;
#define REP(i,n) for(int i=0;i<n;i++)
#define REP1(i,n) for(int i=1;i<=n;i++)
#define SZ(_a) (int)_a.size()
#define ALL(_a) _a.begin(),_a.end()
#define pb push_back
const ll MAXn=3e3+5,MAXlg=__lg(MAXn)+2;
const ll MOD=100000... | 22.703704 | 91 | 0.464927 | [
"vector"
] |
d7a187e7ee21d56046ce84ecae2ed1954613045d | 2,391 | cpp | C++ | game/serversearch.cpp | jmscreation/Capfla | 8a08603595f3abafbdb9c783f0aa223fee79f429 | [
"Apache-2.0"
] | 2 | 2021-02-14T01:39:58.000Z | 2021-02-14T10:17:08.000Z | game/serversearch.cpp | jmscreation/Capfla | 8a08603595f3abafbdb9c783f0aa223fee79f429 | [
"Apache-2.0"
] | null | null | null | game/serversearch.cpp | jmscreation/Capfla | 8a08603595f3abafbdb9c783f0aa223fee79f429 | [
"Apache-2.0"
] | 1 | 2021-04-15T15:54:38.000Z | 2021-04-15T15:54:38.000Z | #include "includes.h"
using namespace Engine;
using namespace std;
ServerSearch::ServerSearch(): close(false), error(false) {
foundServerList.reserve(8);
Handle = new sf::Thread(&ServerSearch::SearchHandle, this);
Handle->launch();
}
ServerSearch::~ServerSearch() {
close = true;
delete Handle;
}
... | 27.802326 | 87 | 0.519866 | [
"vector"
] |
d7a2c529baee8adae40be85be018a5f3abfddacf | 2,334 | cpp | C++ | src/xr_3da/xrGame/alife_surge_manager.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 10 | 2021-05-04T06:40:27.000Z | 2022-01-20T20:24:28.000Z | src/xr_3da/xrGame/alife_surge_manager.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | src/xr_3da/xrGame/alife_surge_manager.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 2 | 2021-11-07T16:57:19.000Z | 2021-12-05T13:17:12.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : alife_surge_manager.cpp
// Created : 25.12.2002
// Modified : 12.05.2004
// Author : Dmitriy Iassenev
// Description : ALife Simulator surge manager
//////////////////////////////////////////////////////////////////////... | 34.323529 | 235 | 0.641388 | [
"object"
] |
d7a5668aa7b530c5641b3c730bbcbc0796ef25b2 | 768 | cpp | C++ | codeforces/I.Wanna.Be.the.Guy.cpp | amarlearning/CodeForces | 6625d3be21cb6a78b88c7521860d1da263e77121 | [
"Unlicense"
] | 3 | 2017-06-17T21:27:04.000Z | 2020-08-07T04:56:56.000Z | codeforces/I.Wanna.Be.the.Guy.cpp | amarlearning/Codeforces | 6625d3be21cb6a78b88c7521860d1da263e77121 | [
"Unlicense"
] | null | null | null | codeforces/I.Wanna.Be.the.Guy.cpp | amarlearning/Codeforces | 6625d3be21cb6a78b88c7521860d1da263e77121 | [
"Unlicense"
] | 2 | 2018-07-26T21:00:42.000Z | 2019-11-30T19:33:57.000Z | #include <string.h>
#include <fstream>
#include <iostream>
#include <string>
#include <complex>
#include <math.h>
#include <set>
#include <vector>
#include <map>
#include <queue>
#include <stdio.h>
#include <stack>
#include <algorithm>
#include <list>
#include <ctime>
#include <memory.h>
#include <ctime>
#include <asse... | 14.222222 | 30 | 0.578125 | [
"vector"
] |
92e6df0f9b885f27e2fb61e0cc9a7ddfc809ebc7 | 3,140 | cpp | C++ | src/addon/register.cpp | jphacks/D_2104 | 54059ef1eec952c775ef6de2c6215912c5eb0a59 | [
"BSD-3-Clause"
] | null | null | null | src/addon/register.cpp | jphacks/D_2104 | 54059ef1eec952c775ef6de2c6215912c5eb0a59 | [
"BSD-3-Clause"
] | null | null | null | src/addon/register.cpp | jphacks/D_2104 | 54059ef1eec952c775ef6de2c6215912c5eb0a59 | [
"BSD-3-Clause"
] | null | null | null | #include <fstream>
#include <exception>
#include <stdexcept>
#include <cstdio>
#include "register.h"
#include "rapidjson/filewritestream.h"
#include "rapidjson/prettywriter.h"
using namespace std;
using namespace std::filesystem;
using namespace rapidjson;
void Register::WriteFeature(string& writePath, Feature& f){
... | 27.068966 | 74 | 0.540764 | [
"vector"
] |
92e77c57017ef42b966392684d56854a47b1a424 | 6,493 | cpp | C++ | src/LookingGlassOgre/ProcessAnyTime.cpp | Misterblue/LookingGlass-Viewer | c80120e3e5cc8ed699280763c95ca8bb8db8174b | [
"BSD-3-Clause"
] | 3 | 2018-10-14T18:06:33.000Z | 2021-07-23T15:00:10.000Z | src/LookingGlassOgre/ProcessAnyTime.cpp | Misterblue/LookingGlass-Viewer | c80120e3e5cc8ed699280763c95ca8bb8db8174b | [
"BSD-3-Clause"
] | null | null | null | src/LookingGlassOgre/ProcessAnyTime.cpp | Misterblue/LookingGlass-Viewer | c80120e3e5cc8ed699280763c95ca8bb8db8174b | [
"BSD-3-Clause"
] | 2 | 2018-10-14T18:06:37.000Z | 2019-06-10T22:35:37.000Z | /* Copyright (c) Robert Adams
* 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 conditions and the following disclaimer... | 36.892045 | 94 | 0.723086 | [
"mesh"
] |
92e7a5d566dbbe363b7d86c345627160d17cef55 | 15,259 | cpp | C++ | tests/math_tests/quaternion_operations.cpp | tomreddell/Hamilton | eec6e423f829a559237583803d11fbe06489a9b9 | [
"MIT"
] | 1 | 2020-09-19T14:48:32.000Z | 2020-09-19T14:48:32.000Z | tests/math_tests/quaternion_operations.cpp | tomreddell/Hamilton | eec6e423f829a559237583803d11fbe06489a9b9 | [
"MIT"
] | null | null | null | tests/math_tests/quaternion_operations.cpp | tomreddell/Hamilton | eec6e423f829a559237583803d11fbe06489a9b9 | [
"MIT"
] | 1 | 2021-01-01T02:23:55.000Z | 2021-01-01T02:23:55.000Z | #include "gtest/gtest.h"
#include "test_utils.hpp"
#include "math/core_math.hpp"
#include "math/quaternion.hpp"
TEST(Quaternion, BasicOperations)
{
// For convinience
constexpr auto UNIT_X = Vector3::UNIT_X();
constexpr auto UNIT_Y = Vector3::UNIT_Y();
constexpr auto UNIT_Z = Vector3:... | 41.240541 | 119 | 0.543876 | [
"vector",
"transform"
] |
92e9f3f6d2e5e1a5a2ef6f6e3011c7439664bf58 | 3,873 | hpp | C++ | src/chemistry/chemTabModel.hpp | kolosret/ablate | 755089ab5e39388d9cda8dedac5a45ba1b016dd5 | [
"BSD-3-Clause"
] | null | null | null | src/chemistry/chemTabModel.hpp | kolosret/ablate | 755089ab5e39388d9cda8dedac5a45ba1b016dd5 | [
"BSD-3-Clause"
] | null | null | null | src/chemistry/chemTabModel.hpp | kolosret/ablate | 755089ab5e39388d9cda8dedac5a45ba1b016dd5 | [
"BSD-3-Clause"
] | null | null | null | #ifndef ABLATELIBRARY_CHEMTABMODEL_HPP
#define ABLATELIBRARY_CHEMTABMODEL_HPP
#include <petscmat.h>
#include <filesystem>
#include <istream>
#include "chemistryModel.hpp"
#ifdef WITH_TENSORFLOW
#include <tensorflow/c/c_api.h>
#endif
namespace ablate::chemistry {
#ifdef WITH_TENSORFLOW
class ChemTabModel : public Che... | 44.517241 | 197 | 0.733798 | [
"vector",
"model"
] |
92ece0b7ebe8b99d691bba5c44c16a1129f8899d | 7,355 | cpp | C++ | src/protocol.cpp | Kozisto/pivx540 | 0251902cc1410c4128ff7c3548b49e8ccef98bc1 | [
"MIT"
] | 638 | 2017-01-07T23:55:36.000Z | 2022-03-29T21:02:43.000Z | src/protocol.cpp | Kozisto/pivx540 | 0251902cc1410c4128ff7c3548b49e8ccef98bc1 | [
"MIT"
] | 1,750 | 2017-01-08T12:29:27.000Z | 2022-03-09T18:32:16.000Z | src/protocol.cpp | Kozisto/pivx540 | 0251902cc1410c4128ff7c3548b49e8ccef98bc1 | [
"MIT"
] | 1,461 | 2017-01-08T00:49:42.000Z | 2022-03-20T07:13:39.000Z | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2017-2020 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-li... | 32.982063 | 183 | 0.687152 | [
"vector"
] |
92f3ce1e9f0e3d738d7b5008969b1c4bc5f47f5f | 39,720 | cpp | C++ | main.cpp | asyz8/pop-the-balloon | 1ccb595eaf2d2f663c8b049f22985e57de53e1fb | [
"BSD-3-Clause"
] | null | null | null | main.cpp | asyz8/pop-the-balloon | 1ccb595eaf2d2f663c8b049f22985e57de53e1fb | [
"BSD-3-Clause"
] | null | null | null | main.cpp | asyz8/pop-the-balloon | 1ccb595eaf2d2f663c8b049f22985e57de53e1fb | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////
//
// Harvard University
// CS175 : Computer Graphics
// Professor Steven Gortler
//
////////////////////////////////////////////////////////////////////////
#include <memory>
#include <stdexcept>
#include <string>
#include <vector>
#inclu... | 38.376812 | 146 | 0.628701 | [
"mesh",
"geometry",
"object",
"vector",
"solid"
] |
92f56b1a8ec5ba1952494556589d81ca64fbe9e8 | 2,214 | cpp | C++ | src/test/interface/io/json/json_data_handler_test.cpp | jtimonen/cmdstan | 8c1e014ed28b4ac3b0f8acc676a4508d07ab8f10 | [
"BSD-3-Clause"
] | 1 | 2021-06-23T15:21:15.000Z | 2021-06-23T15:21:15.000Z | src/test/interface/io/json/json_data_handler_test.cpp | jtimonen/cmdstan | 8c1e014ed28b4ac3b0f8acc676a4508d07ab8f10 | [
"BSD-3-Clause"
] | 2 | 2021-03-17T20:28:05.000Z | 2021-03-20T16:07:31.000Z | src/test/interface/io/json/json_data_handler_test.cpp | jtimonen/cmdstan | 8c1e014ed28b4ac3b0f8acc676a4508d07ab8f10 | [
"BSD-3-Clause"
] | 1 | 2021-04-27T13:58:58.000Z | 2021-04-27T13:58:58.000Z | #include <cmdstan/io/json/json_data.hpp>
#include <cmdstan/io/json/json_data_handler.hpp>
#include <cmdstan/io/json/json_error.hpp>
#include <cmdstan/io/json/json_handler.hpp>
#include <cmdstan/io/json/rapidjson_parser.hpp>
#include <gtest/gtest.h>
void test_rtl_2_ltr(size_t idx_rtl, size_t idx_ltr,
... | 27 | 70 | 0.677958 | [
"vector"
] |
92f76d3df74dfdbe05372f9751d0cb91f0dfe51a | 10,605 | cpp | C++ | core/interface/engine.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | 1 | 2016-01-01T02:23:55.000Z | 2016-01-01T02:23:55.000Z | core/interface/engine.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | null | null | null | core/interface/engine.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | null | null | null | #include "engine.h"
#include "core/hash.h"
#include "core/object.h"
#include "core/expression.h"
#include "core/general.h"
#include "core/syntax/syntax.h"
#include "core/native/native.h"
#include "core/thread/thread.h"
#include "core/gc/collect.h"
namespace ink {
pthread_mutex_t ink_native_exp_list_lock = PTHREAD_MU... | 24.267735 | 89 | 0.745403 | [
"object",
"vector"
] |
92f99df985e2a82101db1e31a81294add6100bc1 | 3,126 | cpp | C++ | tests/cpp/3SumClosest/3SumClosest.cpp | zlc18/LocalJudge | e8b141d2e80087d447a45cce36bac27b4ddb9cd1 | [
"MIT"
] | null | null | null | tests/cpp/3SumClosest/3SumClosest.cpp | zlc18/LocalJudge | e8b141d2e80087d447a45cce36bac27b4ddb9cd1 | [
"MIT"
] | null | null | null | tests/cpp/3SumClosest/3SumClosest.cpp | zlc18/LocalJudge | e8b141d2e80087d447a45cce36bac27b4ddb9cd1 | [
"MIT"
] | null | null | null | // Source : https://oj.leetcode.com/problems/3sum-closest/
// Author : Hao Chen
// Date : 2014-07-03
/**********************************************************************************
*
* Given an array S of n integers, find three integers in S such that the sum is
* closest to a given number, target. Return the... | 29.771429 | 114 | 0.478887 | [
"vector"
] |
92fb04d8401398b5a1267a0ebb3c9618a589595b | 12,619 | cpp | C++ | visa/iga/IGALibrary/Models/Models.cpp | isabella232/intel-graphics-compiler | 1e6e958a2988022e5c67313cbafac855bff2cab0 | [
"MIT"
] | null | null | null | visa/iga/IGALibrary/Models/Models.cpp | isabella232/intel-graphics-compiler | 1e6e958a2988022e5c67313cbafac855bff2cab0 | [
"MIT"
] | 1 | 2021-02-24T08:39:15.000Z | 2021-02-24T08:39:15.000Z | visa/iga/IGALibrary/Models/Models.cpp | isabella232/intel-graphics-compiler | 1e6e958a2988022e5c67313cbafac855bff2cab0 | [
"MIT"
] | null | null | null | #include "Models.hpp"
// this must precede model*.hpp inclusion below
#include "../strings.hpp"
// for bxml/Model operand type mappings
#define TYPE(T) \
ENUM_BITSET_VALUE(T, uint32_t)
#include "bxml/Model7P5.hpp"
#include "bxml/Model8.hpp"
#include "bxml/Model9.hpp"
#include "bxml/Model10.hpp"
#include "bxml/M... | 30.188995 | 139 | 0.586734 | [
"model"
] |
92fb93b6b5563992f8b0ed3214463681e42dc336 | 2,462 | cpp | C++ | opencv_contrib/src/+cv/private/TextDetectorCNN_.cpp | 1123852253/mexopencv | 17db690133299f561924a45e9092673a4df66c5b | [
"BSD-3-Clause"
] | 571 | 2015-01-04T06:23:19.000Z | 2022-03-31T07:37:19.000Z | opencv_contrib/src/+cv/private/TextDetectorCNN_.cpp | 1123852253/mexopencv | 17db690133299f561924a45e9092673a4df66c5b | [
"BSD-3-Clause"
] | 362 | 2015-01-06T14:20:46.000Z | 2022-01-20T08:10:46.000Z | opencv_contrib/src/+cv/private/TextDetectorCNN_.cpp | 1123852253/mexopencv | 17db690133299f561924a45e9092673a4df66c5b | [
"BSD-3-Clause"
] | 300 | 2015-01-20T03:21:27.000Z | 2022-03-31T07:36:37.000Z | /**
* @file TextDetectorCNN_.cpp
* @brief mex interface for cv::text::TextDetectorCNN
* @ingroup text
* @author Amro
* @date 2018
*/
#include "mexopencv.hpp"
#include "opencv2/text.hpp"
using namespace std;
using namespace cv;
using namespace cv::text;
// Persistent objects
namespace {
/// Last object id to allo... | 29.662651 | 76 | 0.597076 | [
"object",
"vector"
] |
92ffeaf0b591e026ee95f9281676ee8e16aa811e | 11,183 | cpp | C++ | src/Test/TestDarknet.cpp | uboborov/Synet | 0fb3c4b77193e7fd9c86c15e3c185fec0ee57b4b | [
"MIT"
] | null | null | null | src/Test/TestDarknet.cpp | uboborov/Synet | 0fb3c4b77193e7fd9c86c15e3c185fec0ee57b4b | [
"MIT"
] | null | null | null | src/Test/TestDarknet.cpp | uboborov/Synet | 0fb3c4b77193e7fd9c86c15e3c185fec0ee57b4b | [
"MIT"
] | null | null | null | /*
* Tests for Synet Framework (http://github.com/ermig1979/Synet).
*
* Copyright (c) 2018-2020 Yermalayeu Ihar.
*
* 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, ... | 38.829861 | 166 | 0.509613 | [
"shape",
"model"
] |
13049dfe60555ef2b8a6c508849f2f0e4ce796df | 15,053 | cxx | C++ | SimVascular-master/Code/Source/sv4gui/Plugins/org.sv.gui.qt.simulation/sv4gui_CapBCWidget.cxx | mccsssk2/SimVascularPM3_March2020 | 3cce6cc7be66545bea5dc3915a2db50a3892bf04 | [
"BSD-3-Clause"
] | null | null | null | SimVascular-master/Code/Source/sv4gui/Plugins/org.sv.gui.qt.simulation/sv4gui_CapBCWidget.cxx | mccsssk2/SimVascularPM3_March2020 | 3cce6cc7be66545bea5dc3915a2db50a3892bf04 | [
"BSD-3-Clause"
] | null | null | null | SimVascular-master/Code/Source/sv4gui/Plugins/org.sv.gui.qt.simulation/sv4gui_CapBCWidget.cxx | mccsssk2/SimVascularPM3_March2020 | 3cce6cc7be66545bea5dc3915a2db50a3892bf04 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) Stanford University, The Regents of the University of
* California, and others.
*
* All Rights Reserved.
*
* See Copyright-SimVascular.txt for additional details.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated doc... | 31.425887 | 129 | 0.610177 | [
"shape"
] |
1305d0ea81d08369dc1b1e221e6d839a99329dce | 5,367 | cpp | C++ | src/org/apache/poi/util/DefaultTempFileCreationStrategy.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/util/DefaultTempFileCreationStrategy.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/util/DefaultTempFileCreationStrategy.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/util/DefaultTempFileCreationStrategy.java
#include <org/apache/poi/util/DefaultTempFileCreationStrategy.hpp>
#include <java/io/File.hpp>
#include <java/io/IOException.hpp>
#include <java/lang/Long.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/Object.h... | 32.527273 | 181 | 0.697037 | [
"object"
] |
13081a2a77862bef84105db387794de925998cd6 | 12,855 | hh | C++ | src/libmess/d3.hh | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 9 | 2020-03-03T07:34:35.000Z | 2021-12-08T13:12:16.000Z | src/libmess/d3.hh | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 1 | 2022-03-23T10:57:25.000Z | 2022-03-31T12:30:44.000Z | src/libmess/d3.hh | dsjense/MESS | b54c161327e2e35a40bb3b71555bdc2eef7cd7f9 | [
"Apache-2.0"
] | 9 | 2019-12-18T19:59:13.000Z | 2022-01-31T01:49:43.000Z | /*
Chemical Kinetics and Dynamics Library
Copyright (C) 2008-2013, Yuri Georgievski <ygeorgi@anl.gov>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; e... | 28.006536 | 103 | 0.590354 | [
"vector"
] |
130ad73ad100135eb7c817847986c2f64d112da6 | 9,546 | cpp | C++ | OGLFrameworkLib/gfx/glrenderer/MeshRenderable.cpp | dasmysh/OGLFrameworkLib_uulm | 36fd5e65d7fb028a07f9d4f95c543f27a23a7d24 | [
"MIT"
] | null | null | null | OGLFrameworkLib/gfx/glrenderer/MeshRenderable.cpp | dasmysh/OGLFrameworkLib_uulm | 36fd5e65d7fb028a07f9d4f95c543f27a23a7d24 | [
"MIT"
] | null | null | null | OGLFrameworkLib/gfx/glrenderer/MeshRenderable.cpp | dasmysh/OGLFrameworkLib_uulm | 36fd5e65d7fb028a07f9d4f95c543f27a23a7d24 | [
"MIT"
] | 1 | 2019-11-14T06:24:26.000Z | 2019-11-14T06:24:26.000Z | /**
* @file MeshRenderable.cpp
* @author Sebastian Maisch <sebastian.maisch@googlemail.com>
* @date 2015.12.15
*
* @brief Contains the implementation of MeshRenderable.
*/
#include "MeshRenderable.h"
#include "GPUProgram.h"
#include "gfx/mesh/SceneMeshNode.h"
#include "gfx/mesh/SubMesh.h"
#include "gfx/Mate... | 40.621277 | 177 | 0.680075 | [
"mesh",
"render",
"object"
] |
130f6ac3f95e373654e482eb507b6d6d38c64de3 | 5,806 | cpp | C++ | advent/2021/23/23.1.cpp | evilmucedin/project-euler | 08ed51a5ff0d05f60271d99d35b3e601bcddf85d | [
"MIT"
] | 3 | 2020-03-23T04:31:14.000Z | 2021-01-17T09:03:09.000Z | advent/2021/23/23.1.cpp | evilmucedin/project-euler | 08ed51a5ff0d05f60271d99d35b3e601bcddf85d | [
"MIT"
] | null | null | null | advent/2021/23/23.1.cpp | evilmucedin/project-euler | 08ed51a5ff0d05f60271d99d35b3e601bcddf85d | [
"MIT"
] | 3 | 2018-03-28T20:53:27.000Z | 2020-04-27T07:03:02.000Z | #include "advent/lib/aoc.h"
#include "lib/init.h"
#include "lib/string.h"
#include "gflags/gflags.h"
#include "glog/logging.h"
DEFINE_int32(test, 1, "test number");
struct Item {
vector<vector<int>> rooms;
vector<int> hallway = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
void print() const {
REP(i, 4) {
... | 22.160305 | 81 | 0.396142 | [
"vector"
] |
13133c80b1185d224250bb2efe9b7bf08ef20661 | 2,823 | hpp | C++ | ThirdParty-mod/java2cpp/java/util/NoSuchElementException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/java/util/NoSuchElementException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/java/util/NoSuchElementException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.util.NoSuchElementException
================================================================================*/
#ifndef J2CPP_INCLUDE... | 26.632075 | 102 | 0.716968 | [
"object"
] |
131aae1de8b598b90f70b1d7707ff332c0b276a3 | 7,242 | cc | C++ | logging/rtc_event_log/encoder/rtc_event_log_encoder_v3.cc | wyshen2020/webrtc | b93e2240f1653b82e24553e092bbab84337774af | [
"BSD-3-Clause"
] | 2 | 2022-03-10T01:47:56.000Z | 2022-03-31T12:51:46.000Z | logging/rtc_event_log/encoder/rtc_event_log_encoder_v3.cc | wyshen2020/webrtc | b93e2240f1653b82e24553e092bbab84337774af | [
"BSD-3-Clause"
] | null | null | null | logging/rtc_event_log/encoder/rtc_event_log_encoder_v3.cc | wyshen2020/webrtc | b93e2240f1653b82e24553e092bbab84337774af | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 43.890909 | 80 | 0.7723 | [
"vector"
] |
131bf09c239bf8eb14b4379024ed554032491d55 | 6,582 | cpp | C++ | practica_6/practica_6_alt/practica6_texturizado.cpp | ValdrST/lab_computacion_grafica | 5971e7a57acafd9df93463da533e756608cde066 | [
"MIT"
] | null | null | null | practica_6/practica_6_alt/practica6_texturizado.cpp | ValdrST/lab_computacion_grafica | 5971e7a57acafd9df93463da533e756608cde066 | [
"MIT"
] | null | null | null | practica_6/practica_6_alt/practica6_texturizado.cpp | ValdrST/lab_computacion_grafica | 5971e7a57acafd9df93463da533e756608cde066 | [
"MIT"
] | null | null | null | /*
Semestre 2020-2
Pr�ctica 6 Texturizado
Usando librer�a stb_image.h
*/
//para cargar imagen
#define STB_IMAGE_IMPLEMENTATION
#include <stdio.h>
#include <string.h>
#include<cmath>
#include<vector>
#include <glew.h>
#include <glfw3.h>
//glm
#include<glm.hpp>
#include<gtc/matrix_transform.hpp>
#inc... | 27.539749 | 132 | 0.604527 | [
"mesh",
"vector",
"model"
] |
131f7364e20ee5874149c381238fe2d9903831e0 | 20,193 | cc | C++ | omaha/tools/goopdump/data_dumper_goopdate.cc | whitemike889/omaha | c8a6457a07e1f697a9b9bea7f0777018a207b8d7 | [
"Apache-2.0"
] | 4 | 2021-09-17T00:05:50.000Z | 2021-12-16T18:08:47.000Z | omaha/tools/goopdump/data_dumper_goopdate.cc | richard9810/chrome-mobile-ie- | 6aa9d7bfed998a0cd1854f04945b77206fea251d | [
"Apache-2.0"
] | 2 | 2021-09-21T15:48:48.000Z | 2021-09-24T19:58:14.000Z | omaha/tools/goopdump/data_dumper_goopdate.cc | richard9810/chrome-mobile-ie- | 6aa9d7bfed998a0cd1854f04945b77206fea251d | [
"Apache-2.0"
] | 3 | 2021-09-17T00:06:52.000Z | 2021-12-27T16:48:24.000Z | // Copyright 2008-2009 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 ... | 33.0491 | 92 | 0.622642 | [
"vector"
] |
132052257f111dcb36e9934564a2fffddf72ac46 | 2,681 | cpp | C++ | combination_sum.cpp | shifabanu/LeetCode | 785c3afb32c981a8bffbde0129ad1b1b5bd26928 | [
"MIT"
] | null | null | null | combination_sum.cpp | shifabanu/LeetCode | 785c3afb32c981a8bffbde0129ad1b1b5bd26928 | [
"MIT"
] | null | null | null | combination_sum.cpp | shifabanu/LeetCode | 785c3afb32c981a8bffbde0129ad1b1b5bd26928 | [
"MIT"
] | null | null | null | /******************************************************************************
Combination Sum
Medium
Given an array of distinct integers candidates and a target integer target,
return a list of all unique combinations of candidates where the chosen numbers
sum to target. You may return the combinations in any ord... | 36.22973 | 88 | 0.60276 | [
"vector"
] |
1324d5b386fb72093b6a9ea20b647ae9c032a704 | 2,415 | cpp | C++ | cpp/example_code/s3/delete_bucket_policy.cpp | iconara/aws-doc-sdk-examples | 52706b31b4fce8fb89468e56743edf5369e69628 | [
"Apache-2.0"
] | 1 | 2022-02-02T03:49:17.000Z | 2022-02-02T03:49:17.000Z | cpp/example_code/s3/delete_bucket_policy.cpp | iconara/aws-doc-sdk-examples | 52706b31b4fce8fb89468e56743edf5369e69628 | [
"Apache-2.0"
] | 1 | 2021-04-09T21:17:09.000Z | 2021-04-09T21:17:09.000Z | cpp/example_code/s3/delete_bucket_policy.cpp | iconara/aws-doc-sdk-examples | 52706b31b4fce8fb89468e56743edf5369e69628 | [
"Apache-2.0"
] | 27 | 2020-04-16T22:52:53.000Z | 2021-09-30T22:55:58.000Z | //snippet-sourcedescription:[delete_bucket_policy.cpp demonstrates how to delete a policy from an Amazon Simple Storage Service (Amazon S3) bucket.]
//snippet-keyword:[AWS SDK for C++]
//snippet-keyword:[Code Sample]
//snippet-service:[Amazon S3]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[12/15/2021]
//s... | 31.776316 | 148 | 0.670807 | [
"model"
] |
132b0ae679915fc1b20e6732380fd298403105a9 | 29,154 | cpp | C++ | src/circuits/FourToTwoGarbledBoleanCircuitNoAssumptions.cpp | manel1874/libscapi | 8cf705162af170c04c8e2299213f52888193cabe | [
"MIT"
] | null | null | null | src/circuits/FourToTwoGarbledBoleanCircuitNoAssumptions.cpp | manel1874/libscapi | 8cf705162af170c04c8e2299213f52888193cabe | [
"MIT"
] | 2 | 2021-03-31T20:04:20.000Z | 2021-12-13T20:47:34.000Z | src/circuits/FourToTwoGarbledBoleanCircuitNoAssumptions.cpp | manel1874/libscapi | 8cf705162af170c04c8e2299213f52888193cabe | [
"MIT"
] | null | null | null | /**
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI)
* This file is part of the SCAPI project.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Permission is hereby granted, free of charge, to any p... | 36.625628 | 187 | 0.668553 | [
"vector"
] |
132bea2f32257d4e9c598836c81aceb992ab7b5e | 1,950 | cpp | C++ | src/csapex_core/src/command/disable_node.cpp | ICRA-2018/csapex | 8ee83b9166d0281a4923184cce67b4a55f273ea2 | [
"BSD-3-Clause"
] | 21 | 2016-09-02T15:33:25.000Z | 2021-06-10T06:34:39.000Z | src/csapex_core/src/command/disable_node.cpp | ICRA-2018/csapex | 8ee83b9166d0281a4923184cce67b4a55f273ea2 | [
"BSD-3-Clause"
] | null | null | null | src/csapex_core/src/command/disable_node.cpp | ICRA-2018/csapex | 8ee83b9166d0281a4923184cce67b4a55f273ea2 | [
"BSD-3-Clause"
] | 10 | 2016-10-12T00:55:17.000Z | 2020-04-24T19:59:02.000Z | /// HEADER
#include <csapex/command/disable_node.h>
/// COMPONENT
#include <csapex/command/delete_connection.h>
#include <csapex/model/node_constructor.h>
#include <csapex/model/node.h>
#include <csapex/model/node_handle.h>
#include <csapex/model/node_state.h>
#include <csapex/factory/node_factory_impl.h>
#include <cs... | 24.683544 | 150 | 0.728718 | [
"model"
] |
132dea4bbc732872faf0b3b392556fe34f7ca732 | 660 | cpp | C++ | src/splitpdbqt.cpp | HongjianLi/istarutils | 2b113b4be8d33e6e31c334c4917d65125696f9cb | [
"MIT"
] | null | null | null | src/splitpdbqt.cpp | HongjianLi/istarutils | 2b113b4be8d33e6e31c334c4917d65125696f9cb | [
"MIT"
] | null | null | null | src/splitpdbqt.cpp | HongjianLi/istarutils | 2b113b4be8d33e6e31c334c4917d65125696f9cb | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
void write(const vector<string>& lines, const string filename)
{
ofstream ofs(filename);
for (const auto& line : lines)
{
ofs << line << endl;
}
}
int main(int argc, char* argv[])
{
vector<string> lines;
bool conte... | 16.5 | 62 | 0.595455 | [
"vector"
] |
133072f078fbeb38df1c1b3ec48fe36b1a799490 | 3,550 | cpp | C++ | QtOrm/AutoUpdater.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | null | null | null | QtOrm/AutoUpdater.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | 1 | 2016-11-04T14:26:58.000Z | 2016-11-04T14:27:57.000Z | QtOrm/AutoUpdater.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | null | null | null | #include "AutoUpdater.h"
#include <QDebug>
#include <QMetaObject>
#include "Mappings/ConfigurationMap.h"
#include "Query.h"
namespace QtOrm {
using namespace Config;
AutoUpdater::AutoUpdater(QObject *parent) : QObject(parent) {
onObjectPropertyChangedMethod = findOnObjectPropertyChangedMethod();
}
QString AutoU... | 30.603448 | 113 | 0.716901 | [
"object"
] |
133092885d7b9884fbeb048d17a722db8f7d0aee | 8,051 | cpp | C++ | src/uploaders/default/gdrivesettingsdialog.cpp | mightybruno/KShare | c1124354be9c8bb5c1931e37e19391f0b6c4389f | [
"MIT"
] | 16 | 2020-01-22T04:52:46.000Z | 2022-02-22T09:53:39.000Z | src/uploaders/default/gdrivesettingsdialog.cpp | mightybruno/KShare | c1124354be9c8bb5c1931e37e19391f0b6c4389f | [
"MIT"
] | 15 | 2020-02-16T01:12:42.000Z | 2021-05-03T21:51:26.000Z | src/uploaders/default/gdrivesettingsdialog.cpp | mightybruno/KShare | c1124354be9c8bb5c1931e37e19391f0b6c4389f | [
"MIT"
] | 3 | 2020-04-03T22:20:14.000Z | 2020-09-23T07:58:09.000Z | #include "gdrivesettingsdialog.hpp"
#include "ui_gdrivesettingsdialog.h"
#include <QDesktopServices>
#include <QDialogButtonBox>
#include <QLabel>
#include <QLineEdit>
#include <QNetworkReply>
#include <QPushButton>
#include <QUrl>
#include <io/ioutils.hpp>
#include <settings.hpp>
GDriveSettingsDialog::GDriveSettings... | 45.230337 | 215 | 0.532108 | [
"object"
] |
13315ca087f0dc507e4f05ebbaabcaacbbbbb3a2 | 654,183 | cpp | C++ | src/main_1200.cpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | src/main_1200.cpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | src/main_1200.cpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: Org.BouncyCastle.Security.PbeUtilities
#include "Org/BouncyCastle/Security/PbeUtilit... | 79.905093 | 463 | 0.77089 | [
"object",
"vector",
"transform"
] |
13319fa50719b53d2bdcb480eb1db3ddfa1f7ddf | 4,245 | cpp | C++ | src/Matlab/mex_compile/regularisers_GPU/PatchSelect_GPU.cpp | vais-ral/CCPi-FISTA_Reconstruction | 3c9ae36ac8e492d1c47142c808a8b643a16961c6 | [
"Apache-2.0"
] | 34 | 2018-07-30T21:42:45.000Z | 2021-11-18T06:01:19.000Z | src/Matlab/mex_compile/regularisers_GPU/PatchSelect_GPU.cpp | vais-ral/CCPi-FISTA_Reconstruction | 3c9ae36ac8e492d1c47142c808a8b643a16961c6 | [
"Apache-2.0"
] | 77 | 2018-05-02T14:59:49.000Z | 2021-11-19T11:55:17.000Z | src/Matlab/mex_compile/regularisers_GPU/PatchSelect_GPU.cpp | vais-ral/CCPi-FISTA_Reconstruction | 3c9ae36ac8e492d1c47142c808a8b643a16961c6 | [
"Apache-2.0"
] | 19 | 2018-11-13T20:30:16.000Z | 2021-11-02T18:12:09.000Z | /*
* This work is part of the Core Imaging Library developed by
* Visual Analytics and Imaging System Group of the Science Technology
* Facilities Council, STFC and Diamond Light Source Ltd.
*
* Copyright 2017 Daniil Kazantsev
* Copyright 2017 Srikanth Nagella, Edoardo Pasca
* Copyright 2018 Diamond Light Sourc... | 44.684211 | 124 | 0.659835 | [
"3d"
] |
1334ef0d84fb7b7823dfbd964ea809a7f49502bd | 6,357 | cc | C++ | RecoPPS/Local/src/RPixDetClusterizer.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | RecoPPS/Local/src/RPixDetClusterizer.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | RecoPPS/Local/src/RPixDetClusterizer.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | #include <iostream>
#include "FWCore/Utilities/interface/Exception.h"
#include "RecoPPS/Local/interface/RPixDetClusterizer.h"
namespace {
constexpr int maxCol = CTPPSPixelCluster::MAXCOL;
constexpr int maxRow = CTPPSPixelCluster::MAXROW;
constexpr double highRangeCal = 1800.;
constexpr double lowRangeCal = 26... | 39.73125 | 113 | 0.654397 | [
"vector"
] |
133508b59549fd08933db29c4292f30c5ab556fa | 724 | cpp | C++ | Week 6/id_400/LeetCode_36_400.cpp | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-10-12T06:48:45.000Z | 2019-10-12T06:48:45.000Z | Week 6/id_400/LeetCode_36_400.cpp | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-12-01T10:02:03.000Z | 2019-12-01T10:02:03.000Z | Week 6/id_400/LeetCode_36_400.cpp | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
bool isValidSudoku(vector<vector<char>>& board) {
vector<unordered_set<int>> row(9), col(9), block(9);
for (int i = 0; i < board.size(); i++) {
for (int j = 0; j < board[0].size(); j++) {
int cur = board[i][j];
int index = (i / 3) ... | 31.478261 | 88 | 0.388122 | [
"vector"
] |
1337499f9642d9e5f1a30700c2e4db2226bc4278 | 1,351 | hpp | C++ | src/KeyCombo.hpp | abitrolly/Hawck | a1b6ca18fbc020265419217cbbbf51cfe3f50a0e | [
"BSD-2-Clause"
] | 320 | 2018-08-28T14:49:53.000Z | 2022-03-31T05:26:11.000Z | src/KeyCombo.hpp | abitrolly/Hawck | a1b6ca18fbc020265419217cbbbf51cfe3f50a0e | [
"BSD-2-Clause"
] | 69 | 2018-08-28T15:11:29.000Z | 2022-03-14T20:58:28.000Z | src/KeyCombo.hpp | abitrolly/Hawck | a1b6ca18fbc020265419217cbbbf51cfe3f50a0e | [
"BSD-2-Clause"
] | 22 | 2019-08-12T19:31:27.000Z | 2021-12-04T10:39:50.000Z | #pragma once
#include <vector>
#include <limits.h>
#include <assert.h>
#include "KBDAction.hpp"
#include "KeyValue.hpp"
#include <iostream>
struct KeyCombo {
std::vector<int> key_seq;
int activator;
int num_seq;
inline KeyCombo(const std::vector<int>& seq) noexcept {
assert(seq.size() < INT_M... | 23.293103 | 79 | 0.545522 | [
"vector"
] |
13391c58b104367974add69762ed0c5e3b1134e0 | 94,142 | cpp | C++ | pxr/usdImaging/usdImaging/pointInstancerAdapter.cpp | yurivict/USD | 3b097e3ba8fabf1777a1256e241ea15df83f3065 | [
"Apache-2.0"
] | 1 | 2021-09-25T12:49:37.000Z | 2021-09-25T12:49:37.000Z | pxr/usdImaging/usdImaging/pointInstancerAdapter.cpp | yurivict/USD | 3b097e3ba8fabf1777a1256e241ea15df83f3065 | [
"Apache-2.0"
] | null | null | null | pxr/usdImaging/usdImaging/pointInstancerAdapter.cpp | yurivict/USD | 3b097e3ba8fabf1777a1256e241ea15df83f3065 | [
"Apache-2.0"
] | 1 | 2018-10-03T19:08:33.000Z | 2018-10-03T19:08:33.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... | 38.409629 | 82 | 0.601921 | [
"render",
"vector",
"model",
"transform"
] |
13472012e3aaba9e2631c26d92a6019a7b586815 | 24,567 | cpp | C++ | external_libs/CppUTest/tests/CppUTestExt/MockComparatorCopierTest.cpp | Dasudian/dsd-datahub-sdk-embedded-C | c3e6cdc3db6ef2efdeaab2a32ed78b80f3cbe430 | [
"Apache-2.0"
] | 5 | 2019-03-27T17:12:42.000Z | 2020-09-25T17:20:36.000Z | external_libs/CppUTest/tests/CppUTestExt/MockComparatorCopierTest.cpp | Dasudian/dsd-datahub-sdk-embedded-C | c3e6cdc3db6ef2efdeaab2a32ed78b80f3cbe430 | [
"Apache-2.0"
] | null | null | null | external_libs/CppUTest/tests/CppUTestExt/MockComparatorCopierTest.cpp | Dasudian/dsd-datahub-sdk-embedded-C | c3e6cdc3db6ef2efdeaab2a32ed78b80f3cbe430 | [
"Apache-2.0"
] | 1 | 2022-03-24T13:47:17.000Z | 2022-03-24T13:47:17.000Z | /*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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 cop... | 40.945 | 151 | 0.747018 | [
"object"
] |
134c2750a7bbf0016fbb59080bb94834d49fef33 | 7,935 | cpp | C++ | Source/TriangleInfoManager.cpp | sultim-t/RayTracedGL1 | f226f97f97554854cad807578efa282a5620bcb4 | [
"MIT"
] | 17 | 2021-09-05T01:34:40.000Z | 2022-03-12T03:25:38.000Z | Source/TriangleInfoManager.cpp | sultim-t/RayTracedGL1 | f226f97f97554854cad807578efa282a5620bcb4 | [
"MIT"
] | null | null | null | Source/TriangleInfoManager.cpp | sultim-t/RayTracedGL1 | f226f97f97554854cad807578efa282a5620bcb4 | [
"MIT"
] | 3 | 2021-11-14T01:02:25.000Z | 2022-02-14T08:56:22.000Z | // Copyright (c) 2021 Sultim Tsyrendashiev
//
// 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.906977 | 157 | 0.698551 | [
"geometry",
"vector",
"transform"
] |
1354d4178bfd8045d0ae1a4ee23a088a029f9d22 | 4,454 | cpp | C++ | third_parties/wcsp/src/LinearProgramSolverGurobi.cpp | nandofioretto/py_dcop | fb2dbc97b69360f5d1fb67d84749e44afcdf48c3 | [
"Apache-2.0"
] | 4 | 2018-08-06T08:55:36.000Z | 2018-09-28T12:54:21.000Z | third_parties/wcsp/src/LinearProgramSolverGurobi.cpp | nandofioretto/py_dcop | fb2dbc97b69360f5d1fb67d84749e44afcdf48c3 | [
"Apache-2.0"
] | null | null | null | third_parties/wcsp/src/LinearProgramSolverGurobi.cpp | nandofioretto/py_dcop | fb2dbc97b69360f5d1fb67d84749e44afcdf48c3 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2016-2017 Hong Xu
This file is part of WCSPLift.
WCSPLift 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.
W... | 27.158537 | 91 | 0.687023 | [
"object",
"vector"
] |
135c3876b246027b96268f590dd0ef0c9da8e9ca | 1,281 | hpp | C++ | isotactics/iso-lib/include/HelperMaps.hpp | flange/esp | 78925925daf876e4936ca7af046b4f884e8a4233 | [
"MIT"
] | 5 | 2017-08-22T12:24:07.000Z | 2019-05-21T07:51:38.000Z | isotactics/iso-lib/include/HelperMaps.hpp | flange/esp | 78925925daf876e4936ca7af046b4f884e8a4233 | [
"MIT"
] | null | null | null | isotactics/iso-lib/include/HelperMaps.hpp | flange/esp | 78925925daf876e4936ca7af046b4f884e8a4233 | [
"MIT"
] | 3 | 2017-08-24T10:44:26.000Z | 2017-09-13T01:18:26.000Z | #ifndef __HELPERMAPS_HPP__
#define __HELPERMAPS_HPP__
#include <set>
#include <unordered_map>
#include <vector>
#include "AlignmentUtils.hpp"
#include "GraphUtils.hpp"
#include "Utils.hpp"
using labelGroupingMap = std::unordered_map<label, alignmentGrouping>;
using labelAlmSubMap = std::unordered_map<label, alignme... | 25.62 | 80 | 0.786105 | [
"vector"
] |
135c5de691fed83be056b5c56dab57e2bd119c79 | 813 | cpp | C++ | C++/zigzag-iterator.cpp | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | 2 | 2020-04-08T17:57:43.000Z | 2021-11-07T09:11:51.000Z | C++/zigzag-iterator.cpp | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | null | null | null | C++/zigzag-iterator.cpp | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | 8 | 2018-03-13T18:20:26.000Z | 2022-03-09T19:48:11.000Z | // Time: O(n)
// Space: O(k)
class ZigzagIterator {
public:
ZigzagIterator(vector<int>& v1, vector<int>& v2) {
if (!v1.empty()) {
q.emplace(make_pair(v1.size(), v1.cbegin()));
}
if (!v2.empty()) {
q.emplace(make_pair(v2.size(), v2.cbegin()));
}
}
in... | 21.394737 | 70 | 0.507995 | [
"object",
"vector"
] |
135d4b3df1ffe7de41b59584ec1d470549b84b21 | 973 | hpp | C++ | include/caffe/layers/loss/styleloss_layer.hpp | JEF1056/MetaLearning-Neural-Style | 94ac33cb6a62c4de8ff2aeac3572afd61f1bda5d | [
"MIT"
] | 126 | 2017-09-14T01:53:15.000Z | 2021-03-24T08:57:41.000Z | include/caffe/layers/loss/styleloss_layer.hpp | hli1221/styletransfer | 5101f2c024638d3e111644c64398b3290fdeaec6 | [
"BSD-2-Clause"
] | 17 | 2017-09-14T09:11:50.000Z | 2019-11-27T08:56:52.000Z | include/caffe/layers/loss/styleloss_layer.hpp | hli1221/styletransfer | 5101f2c024638d3e111644c64398b3290fdeaec6 | [
"BSD-2-Clause"
] | 34 | 2017-09-14T09:14:21.000Z | 2020-12-16T09:49:40.000Z |
#ifndef CAFFE_StyleLoss_LAYER_HPP_
#define CAFFE_StyleLoss_LAYER_HPP_
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
namespace caffe {
class StyleLossLayer : public Layer {
public:
explicit StyleLossLayer(const LayerParameter& param): Layer(param) {}
... | 23.731707 | 85 | 0.73073 | [
"vector"
] |
13631d28850336363d557b7e4ecb266b578fb612 | 1,664 | cpp | C++ | problems/545.boundary-of-binary-tree.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | problems/545.boundary-of-binary-tree.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | problems/545.boundary-of-binary-tree.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | // 中等 根据左边界,叶子结点,右边界做,难度不大。错了一次,误解了题意,题目说不能有重复节点,可以有重复值,我理解成不能有重复数了。
class Solution {
void leftBoundry(TreeNode* root, vector<TreeNode*>& list) {
if (root) list.push_back(root);
else return;
if (!root->left) return;
TreeNode* cur = root->left;
while (cur)
{
list.push_back(cur);
if (cur->left) cur = c... | 24.470588 | 68 | 0.591346 | [
"vector"
] |
13653df608ae179fc7ec9273bc4e3315874943f2 | 5,053 | cpp | C++ | src/engine/engine.cpp | gregtour/tedge-cpp | 45f47ec7017d2124463430f1e584d9fb0dc8bdd8 | [
"Apache-2.0"
] | 1 | 2016-10-31T15:02:32.000Z | 2016-10-31T15:02:32.000Z | src/engine/engine.cpp | gregtour/tedge-cpp | 45f47ec7017d2124463430f1e584d9fb0dc8bdd8 | [
"Apache-2.0"
] | null | null | null | src/engine/engine.cpp | gregtour/tedge-cpp | 45f47ec7017d2124463430f1e584d9fb0dc8bdd8 | [
"Apache-2.0"
] | 1 | 2021-02-22T22:03:49.000Z | 2021-02-22T22:03:49.000Z | /*
* TeDGE:
* Team Duck Game Engine
*
* Copyright 2010 Team Duck
*/
/* Library Includes */
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <iostream>
#ifdef WIN32
#include <windows.h>
#endif
#include "SDL.h"
#include "SDL_opengl.h"
#include <GL/gl.h... | 19.140152 | 122 | 0.584801 | [
"render"
] |
1368c494e6fc7e178d898320cbcb678cc7337cc2 | 9,646 | cpp | C++ | to/lang/OpenCV-2.2.0/modules/highgui/src/grfmt_imageio.cpp | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | 1 | 2019-02-28T07:40:01.000Z | 2019-02-28T07:40:01.000Z | 3rdparty/OpenCV-2.3.0/modules/highgui/src/grfmt_imageio.cpp | fughz/frayer | ec0a671bc6df3c5f0fe3a94d07b6748a14a8ba91 | [
"BSD-3-Clause"
] | 14 | 2016-11-24T10:46:39.000Z | 2016-12-10T07:24:15.000Z | to/lang/OpenCV-2.2.0/modules/highgui/src/grfmt_imageio.cpp | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | 1 | 2021-07-14T13:23:14.000Z | 2021-07-14T13:23:14.000Z | /*
* grfmt_imageio.cpp
*
*
* Created by Morgan Conbere on 5/17/07.
*
*/
#include "precomp.hpp"
#ifdef HAVE_IMAGEIO
#include "grfmt_imageio.hpp"
namespace cv
{
/////////////////////// ImageIODecoder ///////////////////
ImageIODecoder::ImageIODecoder()
{
imageRef = NULL;
}
ImageIODecoder::~ImageIODecod... | 25.185379 | 107 | 0.556189 | [
"vector"
] |
137046fbc6fef48cbd505e38b64edabf76928c87 | 3,859 | hpp | C++ | include/debugger.hpp | tonyYSaliba/Software-Fault-Injector | 6e18bf2f6aad1588dc45acfcdf72a26e952a8f82 | [
"MIT"
] | null | null | null | include/debugger.hpp | tonyYSaliba/Software-Fault-Injector | 6e18bf2f6aad1588dc45acfcdf72a26e952a8f82 | [
"MIT"
] | null | null | null | include/debugger.hpp | tonyYSaliba/Software-Fault-Injector | 6e18bf2f6aad1588dc45acfcdf72a26e952a8f82 | [
"MIT"
] | 1 | 2021-05-23T14:24:54.000Z | 2021-05-23T14:24:54.000Z | #ifndef SOFI_DEBUGGER_HPP
#define SOFI_DEBUGGER_HPP
#include <utility>
#include <string>
#include <linux/types.h>
#include <unordered_map>
#include "breakpoint.hpp"
#include "dwarf/dwarf++.hh"
#include "elf/elf++.hh"
#define INFINITY 10
namespace sofi {
enum class symbol_type {
notype, // No... | 33.850877 | 127 | 0.62866 | [
"object",
"vector"
] |
137173f04d6829013ea67f3071f4e468b773435e | 10,351 | hpp | C++ | include/coin/CbcClique.hpp | fourkind/orwrap | fe33d01976ce27afefcbb34cf1111b372a417e55 | [
"Apache-2.0"
] | 5 | 2020-01-28T08:38:35.000Z | 2021-06-19T04:11:23.000Z | include/coin/CbcClique.hpp | fourkind/orwrap | fe33d01976ce27afefcbb34cf1111b372a417e55 | [
"Apache-2.0"
] | null | null | null | include/coin/CbcClique.hpp | fourkind/orwrap | fe33d01976ce27afefcbb34cf1111b372a417e55 | [
"Apache-2.0"
] | 3 | 2019-11-26T14:43:13.000Z | 2021-10-06T08:03:46.000Z | // $Id$
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
// Edwin 11/9/2009-- carved out of CbcBranchActual
#ifndef CbcClique_H
#define CbcClique_H
/** \brief Branching object for cliq... | 34.049342 | 126 | 0.669501 | [
"object",
"model"
] |
1371f46c629b1083bd09650a06accaa011e9c136 | 3,168 | cpp | C++ | Granite/third_party/fossilize/cli/SPIRV-Tools/source/fuzz/fuzzer_pass_add_global_variables.cpp | dmrlawson/parallel-rdp | f18e00728bb45e3a769ab7ad3b9064359ef82209 | [
"MIT"
] | 2 | 2021-11-08T02:53:14.000Z | 2021-11-08T09:40:43.000Z | source/fuzz/fuzzer_pass_add_global_variables.cpp | JaredTaoCore/spirv-tools | e95e07301ee6cdca38e8ea2fe3f6f60b8328618f | [
"Apache-2.0"
] | 1 | 2020-07-21T04:39:11.000Z | 2020-07-21T04:39:11.000Z | source/fuzz/fuzzer_pass_add_global_variables.cpp | JaredTaoCore/spirv-tools | e95e07301ee6cdca38e8ea2fe3f6f60b8328618f | [
"Apache-2.0"
] | 2 | 2020-07-06T04:48:31.000Z | 2020-07-23T16:36:46.000Z | // Copyright (c) 2020 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 ... | 41.684211 | 80 | 0.750631 | [
"vector"
] |
13796b45a5bb54f6411aed96b5a9a2c8b6727ae5 | 18,639 | cpp | C++ | src/hkxclasses/behavior/modifiers/bsdirectatmodifier.cpp | BrannigansLaw/Skyrim-Behavior-Editor- | 7b7167cb18e28f435a64069acbf61eca49a07be3 | [
"MIT"
] | 18 | 2019-05-15T08:01:43.000Z | 2022-02-12T15:29:37.000Z | src/hkxclasses/behavior/modifiers/bsdirectatmodifier.cpp | Zartar/Skyrim-Behavior-Editor- | 7b7167cb18e28f435a64069acbf61eca49a07be3 | [
"MIT"
] | 12 | 2018-01-06T21:19:55.000Z | 2019-01-05T15:08:16.000Z | src/hkxclasses/behavior/modifiers/bsdirectatmodifier.cpp | alexsylex/Skyrim-Behavior-Editor- | 7b7167cb18e28f435a64069acbf61eca49a07be3 | [
"MIT"
] | 9 | 2019-06-23T11:56:34.000Z | 2021-12-28T12:58:42.000Z | #include "bsdirectatmodifier.h"
#include "src/xml/hkxxmlreader.h"
#include "src/filetypes/behaviorfile.h"
uint BSDirectAtModifier::refCount = 0;
const QString BSDirectAtModifier::classname = "BSDirectAtModifier";
BSDirectAtModifier::BSDirectAtModifier(HkxFile *parent, long ref)
: hkbModifier(parent, ref),
... | 44.273159 | 240 | 0.685498 | [
"object"
] |
13797991cf59a78ef836844881291fff48909b87 | 14,635 | cpp | C++ | REDSI_1160929_1161573/boost_1_67_0/libs/coroutine/test/test_symmetric_coroutine.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 32 | 2019-02-27T06:57:07.000Z | 2021-08-29T10:56:19.000Z | REDSI_1160929_1161573/boost_1_67_0/libs/coroutine/test/test_symmetric_coroutine.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 1 | 2019-03-04T11:21:00.000Z | 2019-05-24T01:36:31.000Z | REDSI_1160929_1161573/boost_1_67_0/libs/coroutine/test/test_symmetric_coroutine.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z |
// Copyright Oliver Kowalke 2009.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <algorithm>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string... | 24.190083 | 106 | 0.571917 | [
"vector"
] |
137a506675550ee2fbfde9e052e02c108319f447 | 7,704 | cpp | C++ | bin/windows/cpp/obj/src/com/haxepunk/tweens/misc/MultiVarTween.cpp | DrSkipper/twogames | 916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b | [
"MIT"
] | null | null | null | bin/windows/cpp/obj/src/com/haxepunk/tweens/misc/MultiVarTween.cpp | DrSkipper/twogames | 916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b | [
"MIT"
] | null | null | null | bin/windows/cpp/obj/src/com/haxepunk/tweens/misc/MultiVarTween.cpp | DrSkipper/twogames | 916e8af6cd45cf85fbca4a6ea8ee12e24dd6689b | [
"MIT"
] | null | null | null | #include <hxcpp.h>
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
#ifndef INCLUDED_com_haxepunk_Tween
#include <com/haxepunk/Tween.h>
#endif
#ifndef INCLUDED_com_haxepunk_TweenType
#include <com/haxepunk/TweenType.h>
#endif
#ifndef INCLUDED_com_haxepunk_tweens_misc_MultiVarTween
#include <com/haxepunk/tweens/mis... | 28.639405 | 158 | 0.714694 | [
"object"
] |
137cb65f77d60a7db2e239c61b86ae6be5b4c551 | 3,930 | cpp | C++ | source/og-core/renderer/gl/PixelBufferGL.cpp | OpenWebGlobe/Application-SDK | b819ca8ccb44b70815f6c5332cfb041ea23dab61 | [
"MIT"
] | 4 | 2015-12-20T01:38:05.000Z | 2019-07-02T11:01:29.000Z | source/og-core/renderer/gl/PixelBufferGL.cpp | OpenWebGlobe/Application-SDK | b819ca8ccb44b70815f6c5332cfb041ea23dab61 | [
"MIT"
] | null | null | null | source/og-core/renderer/gl/PixelBufferGL.cpp | OpenWebGlobe/Application-SDK | b819ca8ccb44b70815f6c5332cfb041ea23dab61 | [
"MIT"
] | 6 | 2015-01-20T09:18:39.000Z | 2021-02-06T08:19:30.000Z | /*******************************************************************************
Project : i3D OpenGlobe SDK - Reference Implementation
Version : 1.0
Author : Martin Christen, martin.christen@fhnw.ch
Copyright : (c) 2006-2010 by FHNW/IVGI. All Rights Reserved
$License$
**************************... | 24.259259 | 98 | 0.52112 | [
"object"
] |
137fd20248768d19d7db3d10808079ea0064c7be | 5,378 | cpp | C++ | src/MathToolsArma_Polytopes.cpp | CRL-Technion/Variable-speed-Dubins-with-wind | 4c0cf8bb1ae11bcd78bffbba5392b892fee53608 | [
"MIT"
] | 3 | 2021-06-04T08:13:41.000Z | 2021-11-11T07:39:15.000Z | src/MathToolsArma_Polytopes.cpp | CRL-Technion/Variable-speed-Dubins-with-wind | 4c0cf8bb1ae11bcd78bffbba5392b892fee53608 | [
"MIT"
] | null | null | null | src/MathToolsArma_Polytopes.cpp | CRL-Technion/Variable-speed-Dubins-with-wind | 4c0cf8bb1ae11bcd78bffbba5392b892fee53608 | [
"MIT"
] | 2 | 2021-02-24T23:16:00.000Z | 2021-05-18T01:19:08.000Z | #include<MathTools.h>
#include<MathToolsArma_Polytopes.h>
#include<MathToolsArma_Combinatronics.h>
#include<MathToolsArma_VectorOperators.h>
// cddlib
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <string.h>
//
// -----------------------------------------------
// REJECTION SAMP... | 39.255474 | 81 | 0.606359 | [
"vector"
] |
1388e2e2bbefe9769031924fb6e2862858d2b81a | 3,092 | hpp | C++ | stapl_release/benchmarks/kripke/stapled/Kripke/Kernel/kernel_work_functions.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/benchmarks/kripke/stapled/Kripke/Kernel/kernel_work_functions.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/benchmarks/kripke/stapled/Kripke/Kernel/kernel_work_functions.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... | 30.019417 | 79 | 0.600582 | [
"vector"
] |
1389344af089a928bf171a6d74ac840d4f853b97 | 15,018 | cpp | C++ | rmf_fleet_adapter/rmf_rxcpp/RxCpp-4.1.0/Rx/v2/test/sources/scope.cpp | Capstone-S13/rmf_ros2 | 66721dd2ab5a458c050bad154c6a17d8e4b5c8f4 | [
"Apache-2.0"
] | 1,451 | 2018-05-04T21:36:08.000Z | 2022-03-27T07:42:45.000Z | rmf_fleet_adapter/rmf_rxcpp/RxCpp-4.1.0/Rx/v2/test/sources/scope.cpp | Capstone-S13/rmf_ros2 | 66721dd2ab5a458c050bad154c6a17d8e4b5c8f4 | [
"Apache-2.0"
] | 150 | 2018-05-10T10:38:19.000Z | 2022-03-24T14:15:11.000Z | rmf_fleet_adapter/rmf_rxcpp/RxCpp-4.1.0/Rx/v2/test/sources/scope.cpp | Capstone-S13/rmf_ros2 | 66721dd2ab5a458c050bad154c6a17d8e4b5c8f4 | [
"Apache-2.0"
] | 220 | 2018-05-05T08:11:16.000Z | 2022-03-13T10:34:41.000Z | #include "../test.h"
SCENARIO("scope, cold observable", "[scope][sources]"){
GIVEN("a test cold observable of ints"){
auto sc = rxsc::make_test();
auto w = sc.create_worker();
const rxsc::test::messages<int> on;
rxu::detail::maybe<rx::test::testable_observable<int>> xs;
ty... | 35.336471 | 99 | 0.404914 | [
"vector"
] |
138d3caf952abf87f46657a26b04c45b5cb0577d | 17,357 | cpp | C++ | src/backends/dx/Utility/StringUtility.cpp | shiinamiyuki/LuisaCompute | f8358f8ec138950a84f570c0ede24cc76fc159de | [
"BSD-3-Clause"
] | 31 | 2020-11-21T08:16:53.000Z | 2021-09-05T13:46:32.000Z | src/backends/dx/Utility/StringUtility.cpp | shiinamiyuki/LuisaCompute | f8358f8ec138950a84f570c0ede24cc76fc159de | [
"BSD-3-Clause"
] | 1 | 2021-03-08T04:15:26.000Z | 2021-03-19T04:40:02.000Z | src/backends/dx/Utility/StringUtility.cpp | shiinamiyuki/LuisaCompute | f8358f8ec138950a84f570c0ede24cc76fc159de | [
"BSD-3-Clause"
] | 4 | 2020-12-02T09:41:22.000Z | 2021-03-06T06:36:40.000Z |
#include <Utility/StringUtility.h>
#include <Common/BitArray.h>
void StringUtil::IndicesOf(const vstd::string& str, const vstd::string& sign, vstd::vector<uint>& v) {
v.clear();
if (str.empty()) return;
int count = str.length() - sign.length() + 1;
v.reserve(10);
for (int i = 0; i < count; ++i) {
bool success =... | 24.343619 | 146 | 0.598663 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.