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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e03ab28d3b8b3beba9be5d3d05535e99b2ef780 | 6,656 | cpp | C++ | Sources/main.cpp | anirul/Vector3vsVector4 | e5d8633666bf20232c92dcdeccdf5d337689addc | [
"MIT"
] | null | null | null | Sources/main.cpp | anirul/Vector3vsVector4 | e5d8633666bf20232c92dcdeccdf5d337689addc | [
"MIT"
] | null | null | null | Sources/main.cpp | anirul/Vector3vsVector4 | e5d8633666bf20232c92dcdeccdf5d337689addc | [
"MIT"
] | null | null | null | #include <array>
#include <vector>
#include <chrono>
#include <cmath>
#include <iostream>
#include <numeric>
#include <algorithm>
#include <random>
// A simple vec3.
struct vec3 {
vec3() : x(0), y(0), z(0) {}
vec3(float a) : x(a), y(0), z(0) {}
vec3(float a, float b, float c) : x(a), y(b), z(c) {}
float x = 0;
fl... | 22.716724 | 70 | 0.580829 | [
"vector"
] |
4e0ebe684718f1d9049b28130ecec81b0db49e23 | 22,807 | cpp | C++ | mainwindow.cpp | fsziegler/qt-git | 0402f2772498da2c5e42a7e497a3a47e04b1b7a5 | [
"MIT"
] | null | null | null | mainwindow.cpp | fsziegler/qt-git | 0402f2772498da2c5e42a7e497a3a47e04b1b7a5 | [
"MIT"
] | 2 | 2016-07-08T03:16:37.000Z | 2016-07-11T05:43:42.000Z | mainwindow.cpp | fsziegler/qt-git | 0402f2772498da2c5e42a7e497a3a47e04b1b7a5 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QFileDialog>
#include <QProcess>
#include <QDesktopWidget>
#include <QInputDialog>
#include <QJsonDocument>
#include <QMessageBox>
#include "testdialog.h"
#include "octaldialog.h"
#include <iostream>
#include <sstream>
using namespace std;
QJsonObject Ma... | 35.469673 | 101 | 0.557504 | [
"object"
] |
4e0f34149976cd106919b3c65858f44ca6ee9466 | 16,184 | cpp | C++ | gdax_zorro_plugin/gdax/client.cpp | kzhdev/gdax_zorro_plugin | 796e15cf57662ec05a854ca24de80d37565dac6d | [
"MIT"
] | 2 | 2021-04-02T18:53:04.000Z | 2021-09-19T00:07:36.000Z | gdax_zorro_plugin/gdax/client.cpp | kzhdev/gdax_zorro_plugin | 796e15cf57662ec05a854ca24de80d37565dac6d | [
"MIT"
] | 1 | 2022-02-17T09:55:43.000Z | 2022-02-17T13:14:52.000Z | gdax_zorro_plugin/gdax/client.cpp | kzhdev/gdax_zorro_plugin | 796e15cf57662ec05a854ca24de80d37565dac6d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "gdax/client.h"
#include <sstream>
#include <memory>
#include <optional>
#include <chrono>
#include <algorithm>
#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"
#include "cryptopp/cryptlib.h"
using CryptoPP::Exception;
#include "cryptopp/... | 34.804301 | 184 | 0.53763 | [
"vector"
] |
4e109529edf0e509007c44cf1f8d0dab4b8bd358 | 684 | hpp | C++ | driver_massless/IUpdatable.hpp | Massless-io/OpenVRDriver_MasslessPen | bce3c01877752d4e9c2135dec3e56b40e956ae60 | [
"BSD-3-Clause-Clear",
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | driver_massless/IUpdatable.hpp | Massless-io/OpenVRDriver_MasslessPen | bce3c01877752d4e9c2135dec3e56b40e956ae60 | [
"BSD-3-Clause-Clear",
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | driver_massless/IUpdatable.hpp | Massless-io/OpenVRDriver_MasslessPen | bce3c01877752d4e9c2135dec3e56b40e956ae60 | [
"BSD-3-Clause-Clear",
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | /* Copyright (C) 2020 Massless Corp. - All Rights Reserved
* Author: Jacob Hilton.
* You may use, distribute and modify this code under the
* terms of the BSD 3-Clause "New" or "Revised" License.
*
* You should have received a copy of this license with
* this file. If not, please email support@massless.io
*/
#p... | 27.36 | 63 | 0.684211 | [
"vector"
] |
4e126245fb0c1630ea269fdcb6bd33f2826a7c57 | 1,718 | hxx | C++ | tests/Observer/references/MyObserver.hxx | UltimateScript/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | null | null | null | tests/Observer/references/MyObserver.hxx | UltimateScript/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | 2 | 2021-07-07T17:31:49.000Z | 2021-07-16T11:40:38.000Z | tests/Observer/references/MyObserver.hxx | OuluLinux/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | null | null | null | #ifndef MYOBSERVER_HXX
#define MYOBSERVER_HXX
#ifndef VECTOR_H
#include <vector.H>
#endif
class MyObserver;
class MySubject;
class MyMessage
{
public:
#line 10 "tests/Observer/Observer.fog"
virtual void dispatch_to(MyObserver& anObserver, MySubject& aSubject) const;
};
class MyMessage1 : public MyMessage
{
priv... | 17.895833 | 85 | 0.731665 | [
"vector"
] |
4e23cc4e5f39cb64bfaade23a9008d21630b2e8a | 1,294 | cpp | C++ | CodeForces/arraystab.cpp | unstablesun/CodeForces | bd7437200ec0cdb911b78cb6b6c82857dcbb2d69 | [
"MIT"
] | null | null | null | CodeForces/arraystab.cpp | unstablesun/CodeForces | bd7437200ec0cdb911b78cb6b6c82857dcbb2d69 | [
"MIT"
] | null | null | null | CodeForces/arraystab.cpp | unstablesun/CodeForces | bd7437200ec0cdb911b78cb6b6c82857dcbb2d69 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <cmath>
// g++ -std=c++11 -O2 -Wall arraystab.cpp -o arraystab
using namespace std;
int main()
{
int n;
int stabArray[100000];
cin >> n;
for (int i = 0; i < n; i++)
{
int b;
cin >> b;
stabArray[i] = b;
}... | 17.486486 | 54 | 0.421947 | [
"vector"
] |
4e25962ae5f6f2a1e1b751c4b7be1cd740e44d5c | 3,960 | cpp | C++ | Libraries/RobsJuceModules/rosic/filters/lopt.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Libraries/RobsJuceModules/rosic/filters/lopt.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Libraries/RobsJuceModules/rosic/filters/lopt.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | // lopt.cpp -- Optimum 'L' Filter algorithm.
// (C) 2004, C. Bond.
//
// Based on discussion in Kuo, "Network Analysis and Synthesis",
// pp. 379-383. Original method due to A.Papoulis."On Monotonic
// Response Filters", Proc. IRE, 47, Feb. 1959.
//
#include <math.h>
// This routine calculates the coefficients o... | 19.130435 | 81 | 0.354545 | [
"vector"
] |
4e2769d58a45f0bb25e3a39e0abfedc235270206 | 2,308 | cpp | C++ | 34.find-first-and-last-position-of-element-in-sorted-array.cpp | meyash/LeetCode-Solutions | a9e064af64436e5a24bc3a2c93bd15d3c43f2391 | [
"MIT"
] | 1 | 2022-01-08T14:26:11.000Z | 2022-01-08T14:26:11.000Z | 34.find-first-and-last-position-of-element-in-sorted-array.cpp | meyash/LeetCode-Solutions | a9e064af64436e5a24bc3a2c93bd15d3c43f2391 | [
"MIT"
] | null | null | null | 34.find-first-and-last-position-of-element-in-sorted-array.cpp | meyash/LeetCode-Solutions | a9e064af64436e5a24bc3a2c93bd15d3c43f2391 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=34 lang=cpp
*
* [34] Find First and Last Position of Element in Sorted Array
*
* https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/description/
*
* algorithms
* Medium (36.95%)
* Likes: 4728
* Dislikes: 181
* Total Accepted: 622.9K
* Total S... | 22.851485 | 101 | 0.515598 | [
"vector"
] |
89ed0fecfbb6db4017880401337149199bddeb80 | 45,225 | cpp | C++ | SourceSDK/tier1/strtools.cpp | SDLash3D/libvinterface | 4030b748f7e2b56870dc7a6a6b1c671d6f188089 | [
"MIT"
] | 1 | 2016-04-24T21:00:02.000Z | 2016-04-24T21:00:02.000Z | SourceSDK/tier1/strtools.cpp | SDLash3D/libvinterface | 4030b748f7e2b56870dc7a6a6b1c671d6f188089 | [
"MIT"
] | null | null | null | SourceSDK/tier1/strtools.cpp | SDLash3D/libvinterface | 4030b748f7e2b56870dc7a6a6b1c671d6f188089 | [
"MIT"
] | null | null | null | //===== Copyright (C) 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose: String Tools
//
//===========================================================================//
// These are redefined in the project settings to prevent anyone from using them.
// We in this module are of a higher ... | 23.204207 | 136 | 0.526213 | [
"render"
] |
89f1119b7a2a107fdcdbafc209485a67c0015fbc | 5,606 | hpp | C++ | packages/teamplay/include/int/actions/cAbstractAction.hpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 2 | 2021-01-15T13:27:19.000Z | 2021-08-04T08:40:52.000Z | packages/teamplay/include/int/actions/cAbstractAction.hpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | null | null | null | packages/teamplay/include/int/actions/cAbstractAction.hpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 5 | 2018-05-01T10:39:31.000Z | 2022-03-25T03:02:35.000Z | // Copyright 2016-2020 Erik Kouters (Falcons)
// SPDX-License-Identifier: Apache-2.0
/*
* cAbstractAction.hpp
*
* Created on: Apr 30, 2016
* Author: Erik Kouters
*/
#ifndef CABSTRACTACTION_HPP_
#define CABSTRACTACTION_HPP_
#include <stdint.h>
#include <vector>
#include <string>
#include <map>
#include <boo... | 40.623188 | 312 | 0.674099 | [
"vector"
] |
89fd58dd58b8db027dd2ceb8d584f88e01ff4b97 | 7,414 | cpp | C++ | src/tty/convneuralnet.cpp | GustavoSilvera/OF_neuralNet | 42b28ea3b7e3855120342be32b584359c449d105 | [
"MIT"
] | 1 | 2019-07-18T05:06:42.000Z | 2019-07-18T05:06:42.000Z | src/tty/convneuralnet.cpp | GustavoSilvera/OF_neuralNet | 42b28ea3b7e3855120342be32b584359c449d105 | [
"MIT"
] | null | null | null | src/tty/convneuralnet.cpp | GustavoSilvera/OF_neuralNet | 42b28ea3b7e3855120342be32b584359c449d105 | [
"MIT"
] | null | null | null | #include "convneuralnet.h"
#include "util.h"
#include <algorithm>
#include <chrono>
#include <iostream>
#include <string.h>
#include <thread>
#include <unistd.h> /*getcwd*/
using namespace std;
size_t convneuralnet::get_num_networks() const
{
return num_networks;
}
net convneuralnet::get_network(size_t i) const
{
... | 28.190114 | 200 | 0.587402 | [
"vector"
] |
d601bbf5cefab8f64f2eb829767331dd81c08cb2 | 171 | hpp | C++ | libraries/chain/include/eosio/chain/wast_to_wasm.hpp | abitmore/mandel | dfa3c92a713e7a093fc671fefa453a3033e27b0a | [
"MIT"
] | 60 | 2022-01-03T18:41:12.000Z | 2022-03-25T07:08:19.000Z | libraries/chain/include/eosio/chain/wast_to_wasm.hpp | abitmore/mandel | dfa3c92a713e7a093fc671fefa453a3033e27b0a | [
"MIT"
] | 37 | 2022-01-13T22:23:58.000Z | 2022-03-31T13:32:38.000Z | libraries/chain/include/eosio/chain/wast_to_wasm.hpp | abitmore/mandel | dfa3c92a713e7a093fc671fefa453a3033e27b0a | [
"MIT"
] | 11 | 2022-01-14T21:14:11.000Z | 2022-03-25T07:08:29.000Z | #pragma once
#include <vector>
#include <string>
namespace eosio { namespace chain {
std::vector<uint8_t> wast_to_wasm( const std::string& wast );
} } /// eosio::chain
| 17.1 | 61 | 0.701754 | [
"vector"
] |
d606491648ebccd94fa3462831a5c268d3afc056 | 5,954 | cc | C++ | chromium/components/mus/mus_app.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/components/mus/mus_app.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/components/mus/mus_app.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/mus/mus_app.h"
#include "base/stl_util.h"
#include "build/build_config.h"
#include "components/mus/common/args.h"
#include "componen... | 35.230769 | 80 | 0.753275 | [
"object"
] |
d606810de5910780c38202d8c3fd2e283cbe94b9 | 941 | hpp | C++ | include/choice.hpp | richard-vock/graphene | 1a721894a9972c8865a1ad0861d500cef8436932 | [
"Unlicense"
] | null | null | null | include/choice.hpp | richard-vock/graphene | 1a721894a9972c8865a1ad0861d500cef8436932 | [
"Unlicense"
] | null | null | null | include/choice.hpp | richard-vock/graphene | 1a721894a9972c8865a1ad0861d500cef8436932 | [
"Unlicense"
] | null | null | null | #pragma once
#include "common.hpp"
#include "text.hpp"
#include "tracked.hpp"
namespace graphene {
template <typename T>
struct active
{
active(T v) : value(v) {}
T value;
};
template <typename T>
struct option
{
option(const std::string& l, T v) : label(l), value(v) {}
std::string label;
T va... | 17.109091 | 78 | 0.628055 | [
"render",
"vector"
] |
d60c622e0972cf3327d542de07fede103e6839ba | 2,752 | cpp | C++ | C++OperatorExamples/GoogleTests/PositiveTests/PositiveTests.cpp | RomanoViolet/C- | 95fdb40e57875d68ddb8ea69c2caf9c86df7ab48 | [
"MIT"
] | null | null | null | C++OperatorExamples/GoogleTests/PositiveTests/PositiveTests.cpp | RomanoViolet/C- | 95fdb40e57875d68ddb8ea69c2caf9c86df7ab48 | [
"MIT"
] | null | null | null | C++OperatorExamples/GoogleTests/PositiveTests/PositiveTests.cpp | RomanoViolet/C- | 95fdb40e57875d68ddb8ea69c2caf9c86df7ab48 | [
"MIT"
] | null | null | null | #include "CastFromEnum.hpp"
#include "TypeAsOperator.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest-death-test.h"
#include "gtest/gtest.h"
#include <ctime>
#include <string>
#include <type_traits>
TEST( Operators, FloatTypeAcceptance )
{
TypeAsOperator< float > typeAsOperator{ 4.5F };
// assign the value of th... | 38.222222 | 99 | 0.747093 | [
"object"
] |
d6114478e3b0b780d9570242e55eb3ada0f256c8 | 7,015 | cpp | C++ | src/main.cpp | Lalaland/SuperGunBros | 87da6138ac7d1c8eee5e9b5cac8bcec4a38e2998 | [
"MIT"
] | 2 | 2017-02-06T19:55:01.000Z | 2017-08-16T18:05:47.000Z | src/main.cpp | Lalaland/SuperGunBros | 87da6138ac7d1c8eee5e9b5cac8bcec4a38e2998 | [
"MIT"
] | null | null | null | src/main.cpp | Lalaland/SuperGunBros | 87da6138ac7d1c8eee5e9b5cac8bcec4a38e2998 | [
"MIT"
] | null | null | null | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <vector>
#include "rendering/renderlist.h"
#include "rendering/render.h"
#include "screens/menuscreen.h"
#include <cmath>
#include "soundthread.h"
const int screen_width = 1280;
const int screen_heigh... | 30.107296 | 115 | 0.684533 | [
"render",
"vector"
] |
d614d7f49ba214d3e8fd114a9662d7beccd13e1e | 8,776 | cc | C++ | Validation/SiTrackerPhase2V/plugins/Phase2ITValidateRecHit.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Validation/SiTrackerPhase2V/plugins/Phase2ITValidateRecHit.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Validation/SiTrackerPhase2V/plugins/Phase2ITValidateRecHit.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | // Package: Phase2ITValidateRecHit
// Class: Phase2ITValidateRecHit
//
/**\class Phase2ITValidateRecHit Phase2ITValidateRecHit.cc
Description: Plugin for Phase2 RecHit validation
*/
//
// Author: Shubhi Parolia, Suvankar Roy Chowdhury
// Date: June 2020
//
// system include files
#include <memory>
#include <... | 44.323232 | 110 | 0.711258 | [
"geometry",
"vector"
] |
d61e6007fe8a2a719a7f48459805e9621fc67ce6 | 947 | cc | C++ | ui/gfx/extension_set.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | ui/gfx/extension_set.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | ui/gfx/extension_set.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/extension_set.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
namespace gfx {
ExtensionSet MakeExtensio... | 33.821429 | 76 | 0.713833 | [
"vector"
] |
d623f5569e866d7d92edbc7d0df49b7b9da9de34 | 876 | cpp | C++ | Source/UtilsNet/UiCtrlsNet/TreeNodeAscendingSorter.cpp | keshbach/Arcade | 662048e92d5a65b6100fd424a00545069a175651 | [
"Apache-2.0"
] | 1 | 2021-12-11T14:21:55.000Z | 2021-12-11T14:21:55.000Z | Source/UtilsNet/UiCtrlsNet/TreeNodeAscendingSorter.cpp | keshbach/Arcade | 662048e92d5a65b6100fd424a00545069a175651 | [
"Apache-2.0"
] | null | null | null | Source/UtilsNet/UiCtrlsNet/TreeNodeAscendingSorter.cpp | keshbach/Arcade | 662048e92d5a65b6100fd424a00545069a175651 | [
"Apache-2.0"
] | 1 | 2021-06-23T14:01:55.000Z | 2021-06-23T14:01:55.000Z | /////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2014-2014 Kevin Eshbach
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "TreeNodeAscendingSorter.h"
System::Int32 Common::Forms::TreeNodeAscendingSorter::Compare(
... | 41.714286 | 103 | 0.47032 | [
"object"
] |
d62423257d65754560df31a25c86c3bc0613c0d8 | 8,138 | cpp | C++ | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/scxml/ScXMLState.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/scxml/ScXMLState.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/scxml/ScXMLState.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | /**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by Kongsberg Oil & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public ... | 26.594771 | 112 | 0.626812 | [
"vector",
"3d"
] |
d6285c19da5f5c7193f9588928fdf37e854fa630 | 3,232 | cpp | C++ | code/SupportComponents/SymbolTable/SymbolTable.cpp | LLDevLab/LLDevCompiler | f73f13d38069ab5b571fb136e068eb06387caf4c | [
"BSD-3-Clause"
] | 5 | 2019-10-22T18:37:43.000Z | 2020-12-09T14:00:03.000Z | code/SupportComponents/SymbolTable/SymbolTable.cpp | LLDevLab/LLDevCompiler | f73f13d38069ab5b571fb136e068eb06387caf4c | [
"BSD-3-Clause"
] | 1 | 2020-03-29T15:30:45.000Z | 2020-03-29T15:30:45.000Z | code/SupportComponents/SymbolTable/SymbolTable.cpp | LLDevLab/LLDevCompiler | f73f13d38069ab5b571fb136e068eb06387caf4c | [
"BSD-3-Clause"
] | 1 | 2019-12-23T06:51:45.000Z | 2019-12-23T06:51:45.000Z | #include "SymbolTable.h"
SymbolTable::~SymbolTable()
{
map<string, Symbol*>::iterator sym_map_it;
vector<ObjFile*>::iterator obj_file_vect_it;
for (sym_map_it = symbols_map.begin(); sym_map_it != symbols_map.end(); sym_map_it++)
{
Symbol* sym = sym_map_it->second;
delete sym;
}
symbols_map.clear();
for (o... | 23.42029 | 112 | 0.70854 | [
"vector"
] |
d639a49fe88eeee267013f22e38f6fe9d8383dbd | 1,456 | cpp | C++ | aws-cpp-sdk-resource-groups/source/model/GroupResourcesResult.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-resource-groups/source/model/GroupResourcesResult.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-resource-groups/source/model/GroupResourcesResult.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2020-10-27T18:16:01.000Z | 2020-10-27T18:16:01.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/resource-groups/model/GroupResourcesResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#includ... | 27.471698 | 108 | 0.746566 | [
"model"
] |
d63a9e6e9e8ac2ee5cc315af19b8ace54e409efe | 8,266 | cc | C++ | modules/Runtime/Main_gtk.cc | trueinteractions/tint2 | 8ec9ad70c4ab5355f5d06de67ba724830372a365 | [
"MIT"
] | 380 | 2015-01-06T15:52:07.000Z | 2021-11-08T11:17:02.000Z | modules/Runtime/Main_gtk.cc | trueinteractions/tint2 | 8ec9ad70c4ab5355f5d06de67ba724830372a365 | [
"MIT"
] | 124 | 2015-01-01T02:51:40.000Z | 2021-03-03T18:06:55.000Z | modules/Runtime/Main_gtk.cc | trueinteractions/tint2 | 8ec9ad70c4ab5355f5d06de67ba724830372a365 | [
"MIT"
] | 36 | 2015-01-09T19:01:16.000Z | 2019-09-05T05:34:12.000Z | #include "node.cc" // this is a hack to get at node's internal globals.
#include <tint_version.h>
#include <gtk/gtk.h>
#include <nan.h>
#include "../libraries/gir/src/namespace_loader.h"
#include <sys/types.h>
#include <sys/epoll.h>
#include <sys/time.h>
static bool packaged = false;
static int embed_closed = 0;
stat... | 30.058182 | 185 | 0.670336 | [
"object"
] |
d63dbf9e0586be21ca0d20b2d315318e9a616ca9 | 1,369 | cpp | C++ | aws-cpp-sdk-backup-gateway/source/model/ListVirtualMachinesResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-backup-gateway/source/model/ListVirtualMachinesResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-backup-gateway/source/model/ListVirtualMachinesResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/backup-gateway/model/ListVirtualMachinesResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#in... | 27.38 | 126 | 0.769175 | [
"model"
] |
d64039e056b81ebd96fa7dd830e246e11befb7ae | 6,084 | cpp | C++ | HDUOJ/3468/dinic_bfs.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | HDUOJ/3468/dinic_bfs.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | HDUOJ/3468/dinic_bfs.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <cstring>
#include <string>
#include <iomanip>
#include <climits>
#include <vector>
#include <queue>
#include <map>
#include <set>
#define ROW_COLUMN_SIZE 101
#define CHAR_SIZE 52
#define VERTEX_SIZE 10010
#define EDGE_SIZE 2100000
usi... | 25.140496 | 146 | 0.475181 | [
"vector"
] |
d64590cd72516b446c949afe088b885ddad865e0 | 3,388 | cpp | C++ | src/spec/ast/type/enum.cpp | betasheet/diffingo | 285d21b16c118155e5c149b20fcb20a20276f3d7 | [
"MIT"
] | null | null | null | src/spec/ast/type/enum.cpp | betasheet/diffingo | 285d21b16c118155e5c149b20fcb20a20276f3d7 | [
"MIT"
] | null | null | null | src/spec/ast/type/enum.cpp | betasheet/diffingo | 285d21b16c118155e5c149b20fcb20a20276f3d7 | [
"MIT"
] | null | null | null | /*
* enum.cpp
*
* Distributed under the MIT License (MIT).
*
* Copyright (c) 2015 Eric Seckler
*
* 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 withou... | 28.711864 | 80 | 0.68595 | [
"render"
] |
d64cc7f706c60f42bb7c29a1555d4bba880a0a47 | 7,400 | hpp | C++ | include/VROSC/PredictiveHitWisp.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/PredictiveHitWisp.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/PredictiveHitWisp.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#include ... | 48.684211 | 211 | 0.732973 | [
"vector",
"transform"
] |
d6526c26e574b69204f3b44ec3889ec614f60b20 | 25,062 | cc | C++ | codec/L2/demos/pikEnc/host/host_dev.cc | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | 1 | 2021-09-11T01:05:01.000Z | 2021-09-11T01:05:01.000Z | codec/L2/demos/pikEnc/host/host_dev.cc | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | null | null | null | codec/L2/demos/pikEnc/host/host_dev.cc | vmayoral/Vitis_Libraries | 2323dc5036041e18242718287aee4ce66ba071ef | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 41.424793 | 115 | 0.601468 | [
"vector"
] |
d65895d8d414c2e3b164c67ff7178530db0e8ca8 | 8,547 | cpp | C++ | src/analyses/variable-sensitivity/value_set_pointer_abstract_object.cpp | tobireinhard/cbmc | fc165c119985adf8db9a13493f272a2def4e79fa | [
"BSD-4-Clause"
] | 412 | 2016-04-02T01:14:27.000Z | 2022-03-27T09:24:09.000Z | src/analyses/variable-sensitivity/value_set_pointer_abstract_object.cpp | tobireinhard/cbmc | fc165c119985adf8db9a13493f272a2def4e79fa | [
"BSD-4-Clause"
] | 4,671 | 2016-02-25T13:52:16.000Z | 2022-03-31T22:14:46.000Z | src/analyses/variable-sensitivity/value_set_pointer_abstract_object.cpp | tobireinhard/cbmc | fc165c119985adf8db9a13493f272a2def4e79fa | [
"BSD-4-Clause"
] | 266 | 2016-02-23T12:48:00.000Z | 2022-03-22T18:15:51.000Z | /*******************************************************************\
Module: analyses variable-sensitivity
Author: Diffblue Ltd.
\*******************************************************************/
/// \file
/// Value Set of Pointer Abstract Object
#include <analyses/variable-sensitivity/constant_pointer_abstr... | 27.570968 | 80 | 0.732772 | [
"object",
"vector",
"transform"
] |
d65b76400d3e0337ca8457ffa19ae62d2034eda1 | 1,661 | cpp | C++ | utilities/extractlines.cpp | HongjianLi/zinc | 16dfb3cb9713d2fd0a02dbf4162a4e66f2ee2548 | [
"Apache-2.0"
] | null | null | null | utilities/extractlines.cpp | HongjianLi/zinc | 16dfb3cb9713d2fd0a02dbf4162a4e66f2ee2548 | [
"Apache-2.0"
] | null | null | null | utilities/extractlines.cpp | HongjianLi/zinc | 16dfb3cb9713d2fd0a02dbf4162a4e66f2ee2548 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <boost/filesystem/fstream.hpp>
#include <boost/lexical_cast.hpp>
using std::cout;
using std::vector;
using std::string;
using boost::filesystem::path;
using boost::filesystem::ifstream;
inline bool starts_with(const string& str, const string& start)
{
... | 18.662921 | 115 | 0.605659 | [
"vector"
] |
d65ebf24f78eeffd4df2d9dd00f292462357d5ff | 5,436 | cpp | C++ | B2G/gecko/xpcom/tests/TestExpirationTracker.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/xpcom/tests/TestExpirationTracker.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/xpcom/tests/TestExpirationTracker.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.... | 26.517073 | 79 | 0.623436 | [
"object"
] |
d661f149a1e835c054d3b3263d507e55da4a44c9 | 19,004 | cc | C++ | tests/sdglib/files_tests.cc | KatOfCats/sdg | 1916e5c86dd88e601ab7476f38daef2bd3b3b6fc | [
"MIT"
] | null | null | null | tests/sdglib/files_tests.cc | KatOfCats/sdg | 1916e5c86dd88e601ab7476f38daef2bd3b3b6fc | [
"MIT"
] | null | null | null | tests/sdglib/files_tests.cc | KatOfCats/sdg | 1916e5c86dd88e601ab7476f38daef2bd3b3b6fc | [
"MIT"
] | null | null | null | //
// Created by Luis Yanes (EI) on 23/08/2018.
//
#include <catch.hpp>
#include <sdglib/readers/FileReader.hpp>
#include <sdglib/workspace/WorkSpace.hpp>
#include <random>
#include <sdglib/datastores/ReadPathsDatastore.hpp>
TEST_CASE("Workspace create, read, write") {
// Long reads
std::string Lr_filepath(".... | 83.350877 | 9,153 | 0.874237 | [
"vector"
] |
699506bff3a52af509dac6599f09be66bee49815 | 433 | hpp | C++ | src/parser_nodes/join_parser_node_pre.hpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | src/parser_nodes/join_parser_node_pre.hpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | src/parser_nodes/join_parser_node_pre.hpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | //
// Copyright (c) 2020 Erwin Rol <erwin@erwinrol.com>
//
// SPDX-License-Identifier: MIT
//
#ifndef NEDERROCK_SRC_JOIN_PARSER_NODE_PRE_HPP
#define NEDERROCK_SRC_JOIN_PARSER_NODE_PRE_HPP
#include <memory>
#include <vector>
class Join_Parser_Node;
using Join_Parser_Node_Ptr = std::shared_ptr<Join_Parser_Node>;
usin... | 22.789474 | 66 | 0.810624 | [
"vector"
] |
699926fcfe0d78c2d76796668df23aaf00009084 | 46,314 | cpp | C++ | javaStructures/jdk-master/src/hotspot/share/cds/archiveBuilder.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | javaStructures/jdk-master/src/hotspot/share/cds/archiveBuilder.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | javaStructures/jdk-master/src/hotspot/share/cds/archiveBuilder.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 39.116554 | 143 | 0.700026 | [
"object"
] |
699aa934600508ad29b0a43b8acdb70634ba6984 | 12,489 | cpp | C++ | modules/segmentation/src/Slic.cpp | byiii/clone_v4r_j | 628359c7ba19389004618defd6a8d8ab5af35967 | [
"MIT"
] | null | null | null | modules/segmentation/src/Slic.cpp | byiii/clone_v4r_j | 628359c7ba19389004618defd6a8d8ab5af35967 | [
"MIT"
] | null | null | null | modules/segmentation/src/Slic.cpp | byiii/clone_v4r_j | 628359c7ba19389004618defd6a8d8ab5af35967 | [
"MIT"
] | null | null | null | /**
* $Id$
* Johann Prankl, 2014-3
* johann.prankl@josephinum.at
*/
#include <cfloat>
#include <cmath>
#include <iostream>
#include <fstream>
#include <opencv2/imgproc/imgproc.hpp>
#ifdef _OPENMP
#include <omp.h>
#endif
#include <v4r/segmentation/Slic.h>
namespace v4r
{
using namespace std;
... | 25.230303 | 161 | 0.533189 | [
"vector"
] |
699da0e201c0eb9327d86879473e5185b1bc23cc | 411 | cc | C++ | kattis/bing.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | kattis/bing.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | kattis/bing.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://open.kattis.com/problems/bing
#include<bits/stdc++.h>
using namespace std;
using vi=vector<int>;
using vvi=vector<vi>;
int main(){
int n,z=1;
cin>>n;
vvi t(n*32, vi(27));
for(int i=0;i<n;i++){
string s;
cin>>s;
int k=0;
for(char c:s){
t[k][26]++;
if(!t[k][c-'a'])
t... | 17.125 | 40 | 0.474453 | [
"vector"
] |
69a039bde056e5728b8412f15fa2234c8a7e01ee | 2,424 | cpp | C++ | aws-cpp-sdk-clouddirectory/source/model/BatchListObjectParentPathsResponse.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-clouddirectory/source/model/BatchListObjectParentPathsResponse.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-clouddirectory/source/model/BatchListObjectParentPathsResponse.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/clouddirectory/model/BatchListObjectParentPathsResponse.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Uti... | 29.204819 | 174 | 0.801568 | [
"model"
] |
69a1b2b9452c69322fd1bbfd0bf86799de2d157c | 21,306 | cpp | C++ | sensors/cameras/flycapture/flycapture.cpp | mission-systems-pty-ltd/snark | 2bc8a20292ee3684d3a9897ba6fee43fed8d89ae | [
"BSD-3-Clause"
] | 63 | 2015-01-14T14:38:02.000Z | 2022-02-01T09:56:03.000Z | sensors/cameras/flycapture/flycapture.cpp | NEU-LC/snark | db890f73f4c4bbe679405f3a607fd9ea373deb2c | [
"BSD-3-Clause"
] | 39 | 2015-01-21T00:57:38.000Z | 2020-04-22T04:22:35.000Z | sensors/cameras/flycapture/flycapture.cpp | NEU-LC/snark | db890f73f4c4bbe679405f3a607fd9ea373deb2c | [
"BSD-3-Clause"
] | 36 | 2015-01-15T04:17:14.000Z | 2022-02-17T17:13:35.000Z | // This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistr... | 43.217039 | 206 | 0.582183 | [
"vector",
"model"
] |
69a88ce407d3f202a8c5c8aa423291bc25b4b551 | 2,199 | cpp | C++ | compiler/src/ast/type/ast_typecreating_node.cpp | TuplexLanguage/tuplex | fc436c78224522663e40e09d36f83570fd76ba2d | [
"Apache-2.0"
] | 15 | 2017-08-15T20:46:44.000Z | 2021-12-15T02:51:13.000Z | compiler/src/ast/type/ast_typecreating_node.cpp | TuplexLanguage/tuplex | fc436c78224522663e40e09d36f83570fd76ba2d | [
"Apache-2.0"
] | null | null | null | compiler/src/ast/type/ast_typecreating_node.cpp | TuplexLanguage/tuplex | fc436c78224522663e40e09d36f83570fd76ba2d | [
"Apache-2.0"
] | 1 | 2017-09-28T14:48:15.000Z | 2017-09-28T14:48:15.000Z | #include "ast_typecreating_node.hpp"
#include "ast/ast_entitydecls.hpp"
#include "symbol/type_registry.hpp"
#include "tx_logging.hpp"
#include "tx_error.hpp"
void TxTypeCreatingNode::typeexpr_declaration_pass() {
// The context of this node represents its outer scope.
// The type expression's created type ... | 37.913793 | 103 | 0.719873 | [
"vector"
] |
69b85823c7f4d14c2d6ce9c18557b8381ba0a1a0 | 21,337 | cpp | C++ | elfling.cpp | google/elfling | 35164742157c2ab04c8fea693256e8a154c02133 | [
"Apache-2.0"
] | 26 | 2015-01-28T08:28:22.000Z | 2021-06-29T23:08:29.000Z | elfling.cpp | google/elfling | 35164742157c2ab04c8fea693256e8a154c02133 | [
"Apache-2.0"
] | null | null | null | elfling.cpp | google/elfling | 35164742157c2ab04c8fea693256e8a154c02133 | [
"Apache-2.0"
] | 11 | 2015-01-25T18:38:56.000Z | 2021-07-12T12:25:06.000Z | // Copyright 2014 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 33.976115 | 144 | 0.558982 | [
"object",
"vector",
"3d"
] |
69bdf820f02cf9e2ffc86bcc6b694adc60db790a | 825 | cpp | C++ | PolynomialCalculator/src/checker.cpp | Austin4705/CodingQuestions | 78742097c450d307c7015a2d9e072c42584fb099 | [
"MIT"
] | null | null | null | PolynomialCalculator/src/checker.cpp | Austin4705/CodingQuestions | 78742097c450d307c7015a2d9e072c42584fb099 | [
"MIT"
] | null | null | null | PolynomialCalculator/src/checker.cpp | Austin4705/CodingQuestions | 78742097c450d307c7015a2d9e072c42584fb099 | [
"MIT"
] | null | null | null | //
// Created by austi on 8/30/2020.
//
#include <string>
#include "checker.h"
#include <vector>
using std::string;
bool checker::rudimentaryCheck(string input) {//checks if all characters in the string are valid, invalid char are put into a dynamic array to be shown to the user
bool badCharFlag = false;
for ... | 20.625 | 163 | 0.455758 | [
"vector"
] |
69c2b0badedba0b0089397b9f15e9b1bc9e24a48 | 1,231 | hpp | C++ | cpp_make/include/request_manager.hpp | likun97/Low_quality_classification_with_mobilenetv3 | a9e6f66caad937fc7c8e101cddb76f116219b255 | [
"Apache-2.0"
] | null | null | null | cpp_make/include/request_manager.hpp | likun97/Low_quality_classification_with_mobilenetv3 | a9e6f66caad937fc7c8e101cddb76f116219b255 | [
"Apache-2.0"
] | null | null | null | cpp_make/include/request_manager.hpp | likun97/Low_quality_classification_with_mobilenetv3 | a9e6f66caad937fc7c8e101cddb76f116219b255 | [
"Apache-2.0"
] | null | null | null | #ifndef REQUEST_MANAGET_HPP
#define REQUEST_MANAGET_HPP
#include "base_task.hpp"
#include "request.hpp"
#include "configuration.hpp"
#include "wait_list.hpp"
#include <list>
#include <vector>
#include <FreeImage.h>
class request_manager : public base_task
{
public:
static request_manager *Instance... | 21.224138 | 74 | 0.562145 | [
"vector"
] |
69cde0113f4cb1f2dca59872aa53110359ddbe8d | 2,055 | cpp | C++ | test/sorted_static_vector_test.cpp | decimad/microlib | 49abf34316d06839fbef618726d4a8e77c062210 | [
"BSL-1.0"
] | null | null | null | test/sorted_static_vector_test.cpp | decimad/microlib | 49abf34316d06839fbef618726d4a8e77c062210 | [
"BSL-1.0"
] | null | null | null | test/sorted_static_vector_test.cpp | decimad/microlib | 49abf34316d06839fbef618726d4a8e77c062210 | [
"BSL-1.0"
] | null | null | null | // Copyright Michael Steinberg 2015
// 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 "sorted_static_vector_test.hpp"
#include "stdafx.h"
#include <chrono>
#include <iostream>
#includ... | 26.688312 | 140 | 0.53382 | [
"vector"
] |
69d020dde1751186e00972d40a3ceb84c82adf09 | 1,136 | cpp | C++ | src/debugger/client/tcp_attach.cpp | HaiyongLi/LuaDebugCode | 8a12e5b21ab5fb74b7b5cd1b50393191df1382ca | [
"MIT"
] | 2 | 2019-09-29T07:06:32.000Z | 2021-09-10T09:46:19.000Z | src/debugger/client/tcp_attach.cpp | HaiyongLi/LuaDebugCode | 8a12e5b21ab5fb74b7b5cd1b50393191df1382ca | [
"MIT"
] | null | null | null | src/debugger/client/tcp_attach.cpp | HaiyongLi/LuaDebugCode | 8a12e5b21ab5fb74b7b5cd1b50393191df1382ca | [
"MIT"
] | null | null | null | #include <debugger/client/tcp_attach.h>
#include <debugger/client/stdinput.h>
#include <base/util/format.h>
tcp_attach::tcp_attach(stdinput& io_)
: poller()
, io(io_)
, base_type(&poller)
{
net::socket::initialize();
}
bool tcp_attach::event_in()
{
if (!base_type::event_in())
return false;
std::vector<char> t... | 21.037037 | 79 | 0.685739 | [
"vector"
] |
69d059c330109e6c261aed27d9d54c5b013f5214 | 934 | cpp | C++ | tests/cosma_test.cpp | simonpintarelli/COSMA | db26aeac475e3b0a15d36d74e56514392d3e8e00 | [
"BSD-3-Clause"
] | null | null | null | tests/cosma_test.cpp | simonpintarelli/COSMA | db26aeac475e3b0a15d36d74e56514392d3e8e00 | [
"BSD-3-Clause"
] | 1 | 2020-04-29T17:46:25.000Z | 2020-04-29T17:46:25.000Z | tests/cosma_test.cpp | simonpintarelli/COSMA | db26aeac475e3b0a15d36d74e56514392d3e8e00 | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <cctype>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "../utils/parse_strategy.hpp"
#include "../utils/cosma_utils.hpp"
using namespace cosma;
int main(int argc, char **argv) {
MPI_Init(&argc, &argv);
int P, rank;
MPI_... | 26.685714 | 75 | 0.672377 | [
"vector"
] |
69d11179144a05416af55fbd5e65c507f5624219 | 377 | hpp | C++ | src/include/types/function.hpp | Yukikamome316/MineCode | 65ffbd06a05f09c11cbd43c4de934f97eaffca6d | [
"MIT"
] | 17 | 2020-12-07T10:58:03.000Z | 2021-09-10T05:49:38.000Z | src/include/types/function.hpp | Yukikamome316/MineCode | 65ffbd06a05f09c11cbd43c4de934f97eaffca6d | [
"MIT"
] | 2 | 2021-05-16T18:45:36.000Z | 2021-10-20T13:02:35.000Z | src/include/types/function.hpp | Yukikamome316/MineCode | 65ffbd06a05f09c11cbd43c4de934f97eaffca6d | [
"MIT"
] | 8 | 2021-01-11T09:11:21.000Z | 2021-09-02T17:52:46.000Z | #pragma once
#ifndef PARSER_FUNCTION_H
#define PARSER_FUNCTION_H
#include <inttypes.h>
#include <expr/expr_t.hpp>
#include <vector>
namespace parserTypes {
enum funcArgType { INT, CSTR, WSTR, PTR };
struct funcArg {
funcArgType type;
struct expr defaultValue;
};
struct function {
uint32_t addr;
std::vector<st... | 18.85 | 42 | 0.745358 | [
"vector"
] |
69d2156da2be205e072625a662b6161b41df6336 | 2,031 | cpp | C++ | cpp/expressionTemplates/expTmplt.cpp | jl-wynen/code_stuffs | 91ee6cd9075a7bc8697b03ce2eec13cb4fffb3ad | [
"MIT"
] | null | null | null | cpp/expressionTemplates/expTmplt.cpp | jl-wynen/code_stuffs | 91ee6cd9075a7bc8697b03ce2eec13cb4fffb3ad | [
"MIT"
] | null | null | null | cpp/expressionTemplates/expTmplt.cpp | jl-wynen/code_stuffs | 91ee6cd9075a7bc8697b03ce2eec13cb4fffb3ad | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <assert.h>
#include <cmath>
#include <chrono>
using namespace std;
template <typename E>
class VecExpression {
public:
double operator[](size_t i) const {
return static_cast<E const&>(*this)[i];
}
size_t size() const {
return static_cast<E con... | 23.344828 | 87 | 0.576071 | [
"vector"
] |
69d33ddd3fb11b567980940bbe975bf325872ee7 | 9,092 | cpp | C++ | GenreHash.cpp | kyb1206/git_song | d8437eb1e8ce814a814621be9b0c5e82ac989304 | [
"MIT"
] | 3 | 2019-10-18T05:32:03.000Z | 2020-05-06T05:51:27.000Z | GenreHash.cpp | gabriel-madera/TopNStreaming | 31940546e450b8d5b057bade0b0251e4b4c27713 | [
"MIT"
] | null | null | null | GenreHash.cpp | gabriel-madera/TopNStreaming | 31940546e450b8d5b057bade0b0251e4b4c27713 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
#include "GenreHash.hpp"
//Genre Key
//Rap == 0
//Alternative == 1
//Country == 2
//Hip Hop == 3
//Pop == 4
//Rock == 5
//EDM == 6
//r&b == 7
GenreHash :: GenreHash(int hashTableSize)
{
hashTable = new Song*[hashTableSize];
this->has... | 23.43299 | 167 | 0.5022 | [
"vector"
] |
69ed4464cb236acf1e304956c335b1b330e430e3 | 854 | hpp | C++ | src/GameLevel.hpp | HoraGladiis/HoraGladiis | 86a600af001441edda357c504ac54f3f9a43cf18 | [
"MIT"
] | 1 | 2021-12-16T11:47:24.000Z | 2021-12-16T11:47:24.000Z | src/GameLevel.hpp | HoraGladiis/HoraGladiis | 86a600af001441edda357c504ac54f3f9a43cf18 | [
"MIT"
] | 11 | 2021-12-01T15:39:20.000Z | 2021-12-29T22:04:52.000Z | src/GameLevel.hpp | HoraGladiis/HoraGladiis | 86a600af001441edda357c504ac54f3f9a43cf18 | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include "Tilemap.hpp"
#include "Tileset.hpp"
#include <iostream>
#include <vector>
#include <map>
class GameLevel : public sf::Drawable
{
private:
std::vector<IsoTileMap> tileLayers;
std::map<std::string, sf::Texture> textures;
std::string name;
virtual void draw(sf::Rend... | 21.897436 | 78 | 0.5726 | [
"vector"
] |
69f4afbc7ff29f484b62ea9c35f6dc120dd71ae7 | 435 | cpp | C++ | leetcode/.template/solution.cpp | mkmark/leetcode | 638a9d37fb3223107d2852ce493d831996a7649e | [
"MIT"
] | null | null | null | leetcode/.template/solution.cpp | mkmark/leetcode | 638a9d37fb3223107d2852ce493d831996a7649e | [
"MIT"
] | null | null | null | leetcode/.template/solution.cpp | mkmark/leetcode | 638a9d37fb3223107d2852ce493d831996a7649e | [
"MIT"
] | null | null | null | /*
author: mark@mkmark.net
time: O()
space: O()
Runtime:
Memory Usage:
*/
#include <bits/stdc++.h>
using namespace std;
#define all(x) begin(x), end(x)
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
class Solution {
public:
int solution() {
}
};
const static auto initialize = [] {
... | 14.032258 | 37 | 0.622989 | [
"vector"
] |
69f63579d2dc7cffd3be92ef9fa9d4c62551beb1 | 3,724 | hpp | C++ | extra/facs/cytolib/include/cytolib/readFCSHeader.hpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/facs/cytolib/include/cytolib/readFCSHeader.hpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/facs/cytolib/include/cytolib/readFCSHeader.hpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | /* Copyright 2019 Fred Hutchinson Cancer Research Center
* See the included LICENSE file for details on the license that is granted to the
* user of this software.
* readFCSHeader.hpp
*
* Created on: Sep 21, 2017
* Author: wjiang2
*/
#ifndef INST_INCLUDE_CYTOLIB_READFCSHEADER_HPP_
#define INST_INCLUDE_CYT... | 30.276423 | 145 | 0.719656 | [
"vector"
] |
69f782f28dd3fb98d69e66cf96ae4cf9345a1b37 | 2,203 | hpp | C++ | src/rendering/include/rendering/rendering_interface.hpp | Sampas/cavez | b89185554477b92bf987c9e5d26b0a8abe1ae568 | [
"MIT"
] | 2 | 2019-03-11T11:26:52.000Z | 2019-09-26T07:50:55.000Z | src/rendering/include/rendering/rendering_interface.hpp | Sampas/cavez | b89185554477b92bf987c9e5d26b0a8abe1ae568 | [
"MIT"
] | 1 | 2020-10-29T15:44:47.000Z | 2020-10-29T15:44:47.000Z | src/rendering/include/rendering/rendering_interface.hpp | Sampas/cavez | b89185554477b92bf987c9e5d26b0a8abe1ae568 | [
"MIT"
] | 1 | 2020-10-28T18:56:46.000Z | 2020-10-28T18:56:46.000Z | /// Copyright (c) 2019 Joni Louhela
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to
/// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
/// sell copies of the Software, and to pe... | 36.716667 | 92 | 0.733545 | [
"render",
"vector"
] |
0e035c3fcb108a57fa3ad1c45dd95d973197a808 | 3,740 | cc | C++ | test/thread_pool_benchmarks.cc | cbraley/threadpool | 0ff006429439698e716d78ba665c51b33b67e395 | [
"MIT"
] | 5 | 2019-10-09T03:08:45.000Z | 2021-12-06T15:37:55.000Z | test/thread_pool_benchmarks.cc | cbraley/threadpool | 0ff006429439698e716d78ba665c51b33b67e395 | [
"MIT"
] | 1 | 2021-09-19T05:23:18.000Z | 2022-01-02T05:59:10.000Z | test/thread_pool_benchmarks.cc | cbraley/threadpool | 0ff006429439698e716d78ba665c51b33b67e395 | [
"MIT"
] | 2 | 2020-05-09T01:22:24.000Z | 2022-01-24T08:06:17.000Z | #include <benchmark/benchmark.h>
#include <array>
#include <cmath>
#include <cstdint>
#include <iostream>
#include "src/thread_pool.h"
// Default number of iterations when simulating a CPU bound task.
constexpr uint64_t kNumIterations = 50000;
// When comparing std::async to launching using a thread pool, we spawn ... | 29.92 | 76 | 0.668449 | [
"vector"
] |
0e083bb320e2f165d0da3961a38e5e0b4e359a69 | 18,832 | cpp | C++ | include/delfem2/opengl/color_glold.cpp | fixedchaos/delfem2 | c8a7a000ec6a51c44bc45bc6ad0d0106d9315ade | [
"MIT"
] | null | null | null | include/delfem2/opengl/color_glold.cpp | fixedchaos/delfem2 | c8a7a000ec6a51c44bc45bc6ad0d0106d9315ade | [
"MIT"
] | null | null | null | include/delfem2/opengl/color_glold.cpp | fixedchaos/delfem2 | c8a7a000ec6a51c44bc45bc6ad0d0106d9315ade | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019 Nobuyuki Umetani
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <cstring>
#include "delfem2/color.h"
#if defined(__APPLE__) && defined(__MACH__)
#include <OpenGL/gl.h>
#elif defined(__MINGW32__) /... | 32.027211 | 88 | 0.615123 | [
"vector",
"3d"
] |
97c1ec8e906694ebe9c215be1b1a0ebd68112271 | 1,279 | cpp | C++ | MEIClient/AMTHIClient/Src/GetIPv6LanInterfaceStatusCommand.cpp | rgl/lms | cda6a25e0f39b2a18f10415560ee6a2cfc5fbbcb | [
"Apache-2.0"
] | 18 | 2019-04-17T10:43:35.000Z | 2022-03-22T22:30:39.000Z | MEIClient/AMTHIClient/Src/GetIPv6LanInterfaceStatusCommand.cpp | rgl/lms | cda6a25e0f39b2a18f10415560ee6a2cfc5fbbcb | [
"Apache-2.0"
] | 9 | 2019-10-03T15:29:51.000Z | 2021-12-27T14:03:33.000Z | MEIClient/AMTHIClient/Src/GetIPv6LanInterfaceStatusCommand.cpp | isabella232/lms | 50d16f81b49aba6007388c001e8137352c5eb42e | [
"Apache-2.0"
] | 8 | 2019-06-13T23:30:50.000Z | 2021-06-25T15:51:59.000Z | /* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2010-2019 Intel Corporation
*/
/*++
@file: GetIPv6LanInterfaceStatusCommand.cpp
--*/
#include "GetIPv6LanInterfaceStatusCommand.h"
namespace Intel {
namespace MEI_Client {
namespace AMTHI_Client {
GetIPv6LanInterfaceStatusCommand::GetIPv6LanInterf... | 31.195122 | 185 | 0.76466 | [
"vector"
] |
97d27602f59a887ef47aecc25fcf43988d421bb5 | 62,846 | cpp | C++ | src/uvmsc/base/uvm_component.cpp | stoitchog/uvm-systemc-1.0-beta2 | 67a445dc5f587d2fd16c5b5ee913d086b2242583 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2021-11-04T14:37:00.000Z | 2022-03-14T12:57:50.000Z | src/uvmsc/base/uvm_component.cpp | stoitchog/uvm-systemc-1.0-beta2 | 67a445dc5f587d2fd16c5b5ee913d086b2242583 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/uvmsc/base/uvm_component.cpp | stoitchog/uvm-systemc-1.0-beta2 | 67a445dc5f587d2fd16c5b5ee913d086b2242583 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-02-22T05:46:04.000Z | 2021-02-22T05:46:04.000Z | //----------------------------------------------------------------------
//! Copyright 2012-2015 NXP B.V.
//! Copyright 2013-2014 Fraunhofer-Gesellschaft zur Foerderung
// der angewandten Forschung e.V.
//! Copyright 2007-2011 Mentor Graphics Corporation
//! Copyright 2007-2011 Cadence Design Systems, Inc.
//! ... | 36.602213 | 166 | 0.513605 | [
"object",
"vector"
] |
97d7ea85d4ab0f5193e2055071487aab706d12b9 | 607 | cpp | C++ | week5_dynamic_programming1/1_money_change_again/change_dp.cpp | michaelehab/Algorithmic-Toolbox-San-Diego | 550ba930482b2e59021dae36053c548cd029b8ae | [
"MIT"
] | 2 | 2022-02-23T02:43:38.000Z | 2022-02-23T21:39:39.000Z | week5_dynamic_programming1/1_money_change_again/change_dp.cpp | michaelehab/Algorithmic-Toolbox-San-Diego | 550ba930482b2e59021dae36053c548cd029b8ae | [
"MIT"
] | null | null | null | week5_dynamic_programming1/1_money_change_again/change_dp.cpp | michaelehab/Algorithmic-Toolbox-San-Diego | 550ba930482b2e59021dae36053c548cd029b8ae | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <climits>
#include <algorithm>
using namespace std;
// The possible coins are 1, 3, 4
int coins[3] = {1, 3, 4};
int get_change(int m) {
vector<int> total(m + 1, INT_MAX);
total[0] = 0;
for(int i = 1; i <= m; i++){
for(int c = 0; c < 3; c++){
if(i >= coins[c]){
... | 19.580645 | 89 | 0.574959 | [
"vector"
] |
97eac7300316b1ae11e983cd683d784b5b1367c6 | 1,109 | hpp | C++ | third_party/boost/simd/function/cosd.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/function/cosd.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/cosd.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//=========================... | 22.18 | 100 | 0.575293 | [
"object"
] |
97ebe91cf0393b5ca7b477280309841f8ec9172a | 2,319 | cpp | C++ | tests/test_parser.cpp | newenclave/parserstuff | 7bd799d3ec80eea23a713fc131e957b877c1b2ed | [
"MIT"
] | null | null | null | tests/test_parser.cpp | newenclave/parserstuff | 7bd799d3ec80eea23a713fc131e957b877c1b2ed | [
"MIT"
] | null | null | null | tests/test_parser.cpp | newenclave/parserstuff | 7bd799d3ec80eea23a713fc131e957b877c1b2ed | [
"MIT"
] | null | null | null |
#include <iostream>
#include <vector>
#include "erules/objects.h"
#include "erules/parser.h"
#include "erules/rule_lexem.h"
#include "erules/rule_lexer.h"
#include "erules/rule_parser.h"
#include "erules/rules_basic_operations.h"
using namespace erules;
using namespace erules::objects;
using namespace erules::filter... | 33.608696 | 77 | 0.601121 | [
"vector",
"transform"
] |
97ecb7d6b9ed511ec56a88887e54646e71390186 | 597,864 | cpp | C++ | hphp/parser/hphp.7.tab.cpp | MaxSem/hhvm | 8e8544c324e0157404374cf313a237bfa70b35d4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/parser/hphp.7.tab.cpp | MaxSem/hhvm | 8e8544c324e0157404374cf313a237bfa70b35d4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/parser/hphp.7.tab.cpp | MaxSem/hhvm | 8e8544c324e0157404374cf313a237bfa70b35d4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | // @generated
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
... | 40.530405 | 174 | 0.3726 | [
"shape",
"vector"
] |
97f258cb2d23b0167d768425236a08570742510d | 3,151 | cpp | C++ | src/MushMesh/MushMeshUtils.cpp | quimnuss/adanaxis | a04eb945fe808aeb9be5da305a37ff47e04dd006 | [
"MIT"
] | null | null | null | src/MushMesh/MushMeshUtils.cpp | quimnuss/adanaxis | a04eb945fe808aeb9be5da305a37ff47e04dd006 | [
"MIT"
] | null | null | null | src/MushMesh/MushMeshUtils.cpp | quimnuss/adanaxis | a04eb945fe808aeb9be5da305a37ff47e04dd006 | [
"MIT"
] | null | null | null | //%Header {
/*****************************************************************************
*
* File: src/MushMesh/MushMeshUtils.cpp
*
* Author: Andy Southgate 2002-2005
*
* This file contains original work by Andy Southgate. The author and his
* employer (Mushware Limited) irrevocably waive all of their copyrig... | 25.41129 | 107 | 0.60457 | [
"mesh",
"vector"
] |
97f46c794f5346eb3044b7fa93bda54c984dd09b | 1,792 | cpp | C++ | REDSI_1160929_1161573/boost_1_67_0/libs/container_hash/test/hash_vector_test.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/container_hash/test/hash_vector_test.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 1 | 2019-04-04T18:00:00.000Z | 2019-04-04T18:00:00.000Z | REDSI_1160929_1161573/boost_1_67_0/libs/container_hash/test/hash_vector_test.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z |
// Copyright 2005-2009 Daniel James.
// 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 "./config.hpp"
#ifdef BOOST_HASH_TEST_EXTENSIONS
# ifdef BOOST_HASH_TEST_STD_INCLUDES
# include <function... | 25.971014 | 80 | 0.663504 | [
"vector"
] |
97fbb3032cbfb44d82cce04a85be9ef404bfb26a | 4,675 | cpp | C++ | test/hash/sha_test.cpp | Warchant/ed25519-sha3 | b25f5f25b999ae7e86fe779db628c486c5bae24a | [
"Apache-2.0"
] | 24 | 2018-02-08T05:28:44.000Z | 2022-01-16T07:43:47.000Z | test/hash/sha_test.cpp | Warchant/ed25519-sha3 | b25f5f25b999ae7e86fe779db628c486c5bae24a | [
"Apache-2.0"
] | 6 | 2018-03-23T20:31:57.000Z | 2019-09-29T09:47:25.000Z | test/hash/sha_test.cpp | Warchant/ed25519-sha3 | b25f5f25b999ae7e86fe779db628c486c5bae24a | [
"Apache-2.0"
] | 19 | 2018-02-05T15:54:24.000Z | 2022-01-29T20:08:32.000Z | #include <ed25519/ed25519/sha256.h>
#include <ed25519/ed25519/sha512.h>
#include <gtest/gtest.h>
#include "hexutil.hpp"
#define STRINGIFY2(x) #x
#define STRINGIFY(x) STRINGIFY2(x)
#ifndef TESTDATA_PATH
#error "Define TESTDATA_PATH"
#endif
struct TestCase {
std::string msg;
std::string sha256;
std::string sha51... | 28.162651 | 77 | 0.614118 | [
"vector"
] |
3f0dcde8d36c707beb956d06e58ca916db3c0bf2 | 431 | cpp | C++ | fcpp/fenwick_tree1.cpp | iddoroshenko/Team-Reference-document-ICPC-2019 | 6c2146e2598ccf91d556201c4672063344ba0aae | [
"MIT"
] | null | null | null | fcpp/fenwick_tree1.cpp | iddoroshenko/Team-Reference-document-ICPC-2019 | 6c2146e2598ccf91d556201c4672063344ba0aae | [
"MIT"
] | null | null | null | fcpp/fenwick_tree1.cpp | iddoroshenko/Team-Reference-document-ICPC-2019 | 6c2146e2598ccf91d556201c4672063344ba0aae | [
"MIT"
] | 1 | 2020-01-10T19:53:06.000Z | 2020-01-10T19:53:06.000Z | vector<int> t;
int n;
void init (int nn)
{
n = nn;
t.assign (n, 0);
}
int sum (int r)
{
int result = 0;
for (; r >= 0; r = (r & (r+1)) - 1)
result += t[r];
return result;
}
void inc (int i, int delta)
{
for (; i < n; i = (i | (i+1)))
t[i] += delta;
}
int sum (int l, int r)
{
return sum (r) - sum (l-1);
}
... | 13.46875 | 40 | 0.484919 | [
"vector"
] |
3f2058d277b536c2c9df85e63b97a01cd4aacb81 | 16,406 | cpp | C++ | compiler/Engines/multithread-engine/specific/src/InteractionValue.cpp | toandv/IFinder | 7d7c48c87034fb1f66ceb5473f516dd833f49450 | [
"CECILL-B"
] | null | null | null | compiler/Engines/multithread-engine/specific/src/InteractionValue.cpp | toandv/IFinder | 7d7c48c87034fb1f66ceb5473f516dd833f49450 | [
"CECILL-B"
] | null | null | null | compiler/Engines/multithread-engine/specific/src/InteractionValue.cpp | toandv/IFinder | 7d7c48c87034fb1f66ceb5473f516dd833f49450 | [
"CECILL-B"
] | null | null | null | /**
* Copyright Verimag laboratory.
*
* contributors:
* Jacques Combaz (jacques.combaz@univ-grenoble-alpes.fr)
*
* This software is a computer program whose purpose is to generate
* executable code from BIP models.
*
* This software is governed by the CeCILL-B license under French law and
* abiding by the... | 31.429119 | 123 | 0.695965 | [
"vector"
] |
3f273a60fc057a2519333a5f5a73560bd8e18bb1 | 733 | cpp | C++ | codes/leetcode/SingleNumberlll.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/leetcode/SingleNumberlll.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/leetcode/SingleNumberlll.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : mehrab.24csedu.001@gmail.com
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
class Solution {
public:
vector<i... | 22.90625 | 51 | 0.39427 | [
"vector"
] |
3f31cce28e8fee08169290e5ef8a5c4cf9b12de3 | 37,833 | hh | C++ | include/tchecker/parsing/declaration.hh | pictavien/tchecker | 5db2430b5b75a5b94cfbbe885840a4809b267be8 | [
"MIT"
] | 4 | 2019-04-09T16:28:45.000Z | 2021-09-21T08:25:40.000Z | include/tchecker/parsing/declaration.hh | pictavien/tchecker | 5db2430b5b75a5b94cfbbe885840a4809b267be8 | [
"MIT"
] | 8 | 2019-04-05T12:53:12.000Z | 2019-06-22T05:49:31.000Z | include/tchecker/parsing/declaration.hh | pictavien/tchecker | 5db2430b5b75a5b94cfbbe885840a4809b267be8 | [
"MIT"
] | 3 | 2019-04-01T21:23:51.000Z | 2021-03-03T14:16:18.000Z | /*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#ifndef TCHECKER_PARSING_DECLARATION_HH
#define TCHECKER_PARSING_DECLARATION_HH
#include <cassert>
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
#include <boost/core... | 28.212528 | 120 | 0.570296 | [
"vector"
] |
3f3406d8f49938a8575461ee75cbd3bfcca857ed | 4,739 | cpp | C++ | src/QtAIV/AIV/nSelectionListFilter.cpp | Vladimir-Lin/QtAIV | a96b52a1df9c85dbadfc1dfcfc38d60948462c89 | [
"MIT"
] | null | null | null | src/QtAIV/AIV/nSelectionListFilter.cpp | Vladimir-Lin/QtAIV | a96b52a1df9c85dbadfc1dfcfc38d60948462c89 | [
"MIT"
] | null | null | null | src/QtAIV/AIV/nSelectionListFilter.cpp | Vladimir-Lin/QtAIV | a96b52a1df9c85dbadfc1dfcfc38d60948462c89 | [
"MIT"
] | null | null | null | #include <qtaiv.h>
N::SelectionListFilter:: SelectionListFilter (int row, int column)
: AbstractFilter (SelectionListFilter::Type, row, column)
{
setProperty("dataSource", N::SelectionListFilter::Filter);
}
N::SelectionListFilter::~SelectionListFilter(void)
{
}
QWidget* N::SelectionList... | 40.504274 | 166 | 0.604558 | [
"model"
] |
3f34d58a2e178bbaa1c34e0aaab7931b17aca8a6 | 137,469 | cpp | C++ | openrave/plugins/qtcoinrave/qtcoinviewer.cpp | jdsika/TUM_HOly | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | 2 | 2015-11-13T16:40:57.000Z | 2017-09-15T15:37:19.000Z | openrave/plugins/qtcoinrave/qtcoinviewer.cpp | jdsika/holy | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | 1 | 2016-06-13T01:29:51.000Z | 2016-06-14T00:38:27.000Z | openrave/plugins/qtcoinrave/qtcoinviewer.cpp | jdsika/holy | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | null | null | null | // -*- coding: utf-8 -*-
// Copyright (C) 2006-2013 Rosen Diankov <rosen.diankov@gmail.com>
//
// OpenRAVE is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// ... | 35.357253 | 524 | 0.606486 | [
"geometry",
"render",
"object",
"shape",
"vector",
"model",
"transform",
"3d"
] |
3f393d1b867677897959705b16d2748052feb339 | 354 | cc | C++ | abc/abc060/abc060c.cc | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | abc/abc060/abc060c.cc | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | abc/abc060/abc060c.cc | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
ll N, T;
cin >> N >> T;
vector<ll> t(N);
rep(i, N) cin >> t[i];
ll X = 0;
for (int i = 1; i < N; i++) {
X += min(t[i] - t[i - 1], T);
}
X += T;
c... | 16.857143 | 46 | 0.426554 | [
"vector"
] |
278d5a97bfff77033e28c665b3a73b07c1bdaf0d | 1,770 | cpp | C++ | src/StatProcessor/statProcessor.cpp | antoinecordelle/Obiwan | 30fe469549cdb0368608281c71add49c32eb2fd0 | [
"MIT"
] | 1 | 2020-07-18T23:49:09.000Z | 2020-07-18T23:49:09.000Z | src/StatProcessor/statProcessor.cpp | antoinecordelle/Obiwan | 30fe469549cdb0368608281c71add49c32eb2fd0 | [
"MIT"
] | null | null | null | src/StatProcessor/statProcessor.cpp | antoinecordelle/Obiwan | 30fe469549cdb0368608281c71add49c32eb2fd0 | [
"MIT"
] | 1 | 2022-02-11T01:46:13.000Z | 2022-02-11T01:46:13.000Z | #include "statProcessor.hpp"
#include <iostream>
using namespace std;
StatProcessor::StatProcessor(int timeWindow)
:mTimeWindow(timeWindow)
{
}
void StatProcessor::initialize(const HttpPacket &httpPacket) {
mCurrentMetric = Metric(httpPacket.date);
}
bool StatProcessor::processLine(const HttpPacket &httpPacket)... | 36.122449 | 121 | 0.721469 | [
"vector"
] |
27ab58a5c5a46fa178f49ef9918023a9806de7e1 | 2,733 | hpp | C++ | include/TensorProlongation.hpp | kmorel/MGARD | a7c44d57fda76a5c3e6fa38702ca8c8c12150b83 | [
"Apache-2.0"
] | 19 | 2019-03-08T15:21:36.000Z | 2022-02-11T04:02:50.000Z | include/TensorProlongation.hpp | kmorel/MGARD | a7c44d57fda76a5c3e6fa38702ca8c8c12150b83 | [
"Apache-2.0"
] | 100 | 2019-01-14T15:34:09.000Z | 2022-03-29T13:39:30.000Z | include/TensorProlongation.hpp | kmorel/MGARD | a7c44d57fda76a5c3e6fa38702ca8c8c12150b83 | [
"Apache-2.0"
] | 22 | 2018-11-16T01:13:57.000Z | 2022-03-14T23:53:28.000Z | #ifndef TENSORPROLONGATION_HPP
#define TENSORPROLONGATION_HPP
//!\file
//!\brief Prolongation–addition for tensor product grids.
#include "TensorLinearOperator.hpp"
namespace mgard {
//! Prolongation–addition (interpolate the values on the 'old' nodes to the
//! 'new' nodes and add (not overwrite)) for continuous pi... | 36.932432 | 80 | 0.716429 | [
"mesh"
] |
27b928fbf7a2a7fe5a2cf5a3300ddf8585daab81 | 2,528 | cc | C++ | vpc/src/model/DeleteNqaRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | vpc/src/model/DeleteNqaRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | vpc/src/model/DeleteNqaRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 24.07619 | 88 | 0.75 | [
"model"
] |
27bf42034087942e85bcbb8fbc879023c564c188 | 94,837 | cpp | C++ | src/missionui/missionshipchoice.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 1 | 2020-07-14T07:29:18.000Z | 2020-07-14T07:29:18.000Z | src/missionui/missionshipchoice.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2019-01-01T22:35:56.000Z | 2022-03-14T07:34:00.000Z | src/missionui/missionshipchoice.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2021-03-07T11:40:42.000Z | 2021-12-26T21:40:39.000Z | /*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on
* the source.
*/
/*
* $Logfile: /Freespace2/code/MissionUI/MissionShipChoice.cpp $
* $Revisi... | 27.544874 | 162 | 0.674884 | [
"render",
"object",
"model",
"3d"
] |
27c6d928245a0116b438061f3ef21fdf3ffe44cf | 4,945 | cpp | C++ | src/backend/common/BindGroupLayout.cpp | imagineagents/nxt-standalone | 060f254468299dc08a5f11c34e2330f645eb25c1 | [
"Apache-2.0"
] | 1 | 2018-07-15T12:12:26.000Z | 2018-07-15T12:12:26.000Z | src/backend/common/BindGroupLayout.cpp | imagineagents/nxt-standalone | 060f254468299dc08a5f11c34e2330f645eb25c1 | [
"Apache-2.0"
] | null | null | null | src/backend/common/BindGroupLayout.cpp | imagineagents/nxt-standalone | 060f254468299dc08a5f11c34e2330f645eb25c1 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 The NXT Authors
//
// 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... | 34.103448 | 144 | 0.615369 | [
"object"
] |
27cbaa011132e73c78cc74865c2dcc235a5185fe | 2,062 | cpp | C++ | aws-cpp-sdk-ssm/source/model/Fault.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-ssm/source/model/Fault.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-ssm/source/model/Fault.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ssm/model/Fault.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace ... | 26.435897 | 92 | 0.57614 | [
"model"
] |
27cff82656bf20f85252f9dc5d175d434d099b3f | 574,640 | cpp | C++ | ripley/src/DefaultAssembler3D.cpp | svn2github/Escript | 9c616a3b164446c65d4b8564ecd04fafd7dcf0d2 | [
"Apache-2.0"
] | null | null | null | ripley/src/DefaultAssembler3D.cpp | svn2github/Escript | 9c616a3b164446c65d4b8564ecd04fafd7dcf0d2 | [
"Apache-2.0"
] | 1 | 2019-01-14T03:07:43.000Z | 2019-01-14T03:07:43.000Z | ripley/src/DefaultAssembler3D.cpp | svn2github/Escript | 9c616a3b164446c65d4b8564ecd04fafd7dcf0d2 | [
"Apache-2.0"
] | null | null | null |
/*****************************************************************************
*
* Copyright (c) 2003-2018 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development unt... | 79.151515 | 293 | 0.398058 | [
"vector"
] |
27d59d35928fc93c25061c6609cb7c82c1a04c82 | 8,895 | cpp | C++ | rqt-stream-manipulator-3d/src/filters/cropbox.cpp | 3DVision-Stack/stream-manipulator-3D | 7a17dc3eadf4a3d7618275223b3fee51967367db | [
"BSD-3-Clause"
] | 4 | 2016-07-04T23:01:17.000Z | 2017-03-16T23:04:02.000Z | rqt-stream-manipulator-3d/src/filters/cropbox.cpp | 3DVision-Stack/stream-manipulator-3D | 7a17dc3eadf4a3d7618275223b3fee51967367db | [
"BSD-3-Clause"
] | null | null | null | rqt-stream-manipulator-3d/src/filters/cropbox.cpp | 3DVision-Stack/stream-manipulator-3D | 7a17dc3eadf4a3d7618275223b3fee51967367db | [
"BSD-3-Clause"
] | 3 | 2017-03-20T09:21:33.000Z | 2018-03-14T02:13:44.000Z | // Software License Agreement (BSD License)
//
// Stream Manipulator 3d - https://github.com/3DVision-Stack/stream-manipulator-3D
// Copyright (c) 2016, Federico Spinelli (fspinelli@gmail.com)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are per... | 36.158537 | 91 | 0.632265 | [
"3d"
] |
27d9c836cc22a2f1b29bc5811cd82641fa318204 | 869 | hpp | C++ | source/ppm_image.hpp | ArpanRatanghayra/Non-Linear-Anisotropic-Diffussion | 1a653cd1d195a28e379da374d6cfbe9c5b64986b | [
"MIT"
] | 1 | 2022-03-03T05:09:36.000Z | 2022-03-03T05:09:36.000Z | source/ppm_image.hpp | ArpanRatanghayra/Non-Linear-Anisotropic-Diffussion | 1a653cd1d195a28e379da374d6cfbe9c5b64986b | [
"MIT"
] | null | null | null | source/ppm_image.hpp | ArpanRatanghayra/Non-Linear-Anisotropic-Diffussion | 1a653cd1d195a28e379da374d6cfbe9c5b64986b | [
"MIT"
] | 1 | 2022-03-03T05:09:45.000Z | 2022-03-03T05:09:45.000Z | /*!
\file
\brief PPM image io
\author Ilya Shoshin (Galarius)
\copyright (c) 2016, Research Institute of Instrument Engineering
*/
#ifndef __PPM_IMAGE__
#define __PPM_IMAGE__
#include <vector>
#include <string>
class PPMImage
{
public:
PPMImage();
~PPMImage();
PPMImage(int w, int h);
PPMImage... | 22.868421 | 67 | 0.674338 | [
"vector"
] |
27db24d65b5a9eac832f80f187d849012316cf74 | 12,651 | cpp | C++ | Co-Simulation/Sumo/sumo-1.7.0/src/microsim/engine/RealisticEngineModel.cpp | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | Co-Simulation/Sumo/sumo-1.7.0/src/microsim/engine/RealisticEngineModel.cpp | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | Co-Simulation/Sumo/sumo-1.7.0/src/microsim/engine/RealisticEngineModel.cpp | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | /****************************************************************************/
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
// Copyright (C) 2001-2020 German Aerospace Center (DLR) and others.
// This program and the accompanying materials are made available under the
// terms of the Ecli... | 40.809677 | 151 | 0.717967 | [
"model"
] |
27e28a78821dede66d5814678f4b1bfe6b1ad58f | 13,520 | cpp | C++ | src/AppLogic/ImageLoader.cpp | h4koo/FSP_ImageDeconvolution | 724b3c9a1a0a7c45803bd783f61e0363046a2d79 | [
"MIT"
] | null | null | null | src/AppLogic/ImageLoader.cpp | h4koo/FSP_ImageDeconvolution | 724b3c9a1a0a7c45803bd783f61e0363046a2d79 | [
"MIT"
] | null | null | null | src/AppLogic/ImageLoader.cpp | h4koo/FSP_ImageDeconvolution | 724b3c9a1a0a7c45803bd783f61e0363046a2d79 | [
"MIT"
] | null | null | null | #include "ImageLoader.hpp"
namespace AppLogic
{
bool AppLogic::ImageLoader::_is_canceled = false;
const string ImageLoader::FILTER_SAVE_LOCATION = string(getenv("HOME")) + "/.fsp_imgdcnv/";
using namespace cimg_library;
void ImageLoader::addImageFileInfo(const string &full_path)
{
... | 31.296296 | 118 | 0.508284 | [
"vector"
] |
27e54019463341923c800f017261f2eddfa838f6 | 2,605 | hpp | C++ | src/weather_particle_system.hpp | sweetkristas/anura | 5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd | [
"CC0-1.0"
] | null | null | null | src/weather_particle_system.hpp | sweetkristas/anura | 5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd | [
"CC0-1.0"
] | null | null | null | src/weather_particle_system.hpp | sweetkristas/anura | 5e8cbcfc7b761c5c01e5c5509a0fb159b8fb60cd | [
"CC0-1.0"
] | null | null | null | /*
Copyright (C) 2003-2013 by David White <davewx7@gmail.com>
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 2 of the License, or
(at your option) any later version.... | 28.010753 | 90 | 0.761612 | [
"vector"
] |
27ecf9d1fd046d9cae6c90ba32b45e2fea7814b5 | 1,347 | hpp | C++ | include/gui/c8form.hpp | dawikur/c8 | 8b335158d92c283965c71e911a10bc897f293d97 | [
"MIT"
] | 2 | 2016-05-11T07:57:48.000Z | 2018-01-05T04:51:18.000Z | include/gui/c8form.hpp | dawikur/c8 | 8b335158d92c283965c71e911a10bc897f293d97 | [
"MIT"
] | 15 | 2016-05-11T07:02:52.000Z | 2016-05-20T18:14:42.000Z | include/gui/c8form.hpp | dawikur/c8 | 8b335158d92c283965c71e911a10bc897f293d97 | [
"MIT"
] | null | null | null | // Copyright 2016 Dawid Kurek. All Rights Reserved.
#ifndef INCLUDE_GUI_C8FORM_HPP_
#define INCLUDE_GUI_C8FORM_HPP_
#include <functional>
#include <memory> // fix for nana
#include <stdexcept> // fix... | 22.830508 | 94 | 0.641425 | [
"vector"
] |
27f470c047e701930fc94ba33c14a13fcae4f3a5 | 4,110 | cc | C++ | src/des/util/Scheduler_TEST.cc | nicmcd/libdes | e7fe1f4923437df3edd4fe7381ebc4c1b4ccbbfc | [
"BSD-3-Clause"
] | 2 | 2017-12-04T17:51:12.000Z | 2021-02-27T06:01:58.000Z | src/des/util/Scheduler_TEST.cc | nicmcd/libdes | e7fe1f4923437df3edd4fe7381ebc4c1b4ccbbfc | [
"BSD-3-Clause"
] | null | null | null | src/des/util/Scheduler_TEST.cc | nicmcd/libdes | e7fe1f4923437df3edd4fe7381ebc4c1b4ccbbfc | [
"BSD-3-Clause"
] | null | null | null | /*
* 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.
*
* - Redistributions in binar... | 29.568345 | 80 | 0.694161 | [
"vector"
] |
27f4779af27eaa52fe5fac3f094a606f43279b84 | 1,001 | cpp | C++ | 474_find_max_form/find_max_form.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 474_find_max_form/find_max_form.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 474_find_max_form/find_max_form.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | /*
* @Date: 2021-06-06 09:36:27
* @Author: Mengsen Wang
* @LastEditors: Mengsen Wang
* @LastEditTime: 2021-06-06 09:44:49
*/
#include <cassert>
#include <string>
#include <vector>
using namespace std;
int findMaxForm(vector<string>& strs, int m, int n) {
vector<vector<int>> dp(m + 1, vector<int>(n + 1, 0));
... | 22.75 | 66 | 0.505495 | [
"vector"
] |
27faef4541b4aa8e436e215c622d25c9d8976526 | 682 | hpp | C++ | src/IRenderer.hpp | trevorsm7/game-engine | a233201b380ba724f8b7392299505ccd3fcfe29d | [
"MIT"
] | 1 | 2021-02-05T12:57:32.000Z | 2021-02-05T12:57:32.000Z | src/IRenderer.hpp | blockspacer/game-engine | a233201b380ba724f8b7392299505ccd3fcfe29d | [
"MIT"
] | null | null | null | src/IRenderer.hpp | blockspacer/game-engine | a233201b380ba724f8b7392299505ccd3fcfe29d | [
"MIT"
] | 1 | 2021-02-05T12:57:34.000Z | 2021-02-05T12:57:34.000Z | #pragma once
#include "Transform.hpp"
#include <string>
#include <vector>
class TileMap;
class IRenderer
{
public:
virtual ~IRenderer() {}
virtual void preRender() = 0;
virtual void postRender() = 0;
virtual void pushModelTransform(Transform& transform) = 0;
virtual void pushCameraTransform(Tr... | 23.517241 | 66 | 0.696481 | [
"vector",
"transform"
] |
27fcc9a752f78a9b119c9fbc42000fc54e3c4a66 | 11,510 | hpp | C++ | include/glhelper/glhelper_core.hpp | louishobson/GLHelper | 2a914dd90eeb96797e3963f94d39b25625d47054 | [
"Apache-2.0"
] | null | null | null | include/glhelper/glhelper_core.hpp | louishobson/GLHelper | 2a914dd90eeb96797e3963f94d39b25625d47054 | [
"Apache-2.0"
] | null | null | null | include/glhelper/glhelper_core.hpp | louishobson/GLHelper | 2a914dd90eeb96797e3963f94d39b25625d47054 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2020 Louis Hobson <louis-hobson@hotmail.co.uk>. All Rights Reserved.
*
* Distributed under MIT licence as a part of the GLHelper C++ library.
* For details, see: https://github.com/louishobson/GLHelper/blob/master/LICENSE
*
* include/glhelper/glhelper_core.hpp
*
* core header for glhelper ... | 23.586066 | 129 | 0.63119 | [
"object"
] |
7e06ab79fe7e349993a7c3d72af6863aa11713b4 | 900 | cpp | C++ | codeforces/1392/1392B/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | codeforces/1392/1392B/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | codeforces/1392/1392B/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// O(N)
void solve(int N, ll K, vector<ll>& A) {
assert(N >= 1 && K >= 1);
auto const& next = [&]() {
ll D = *max_element(A.begin(), A.end());
for (int i = 0; i < N; ++i) {
A[i] = D - A[i];
}
};
-... | 16.666667 | 48 | 0.365556 | [
"vector"
] |
7e0e2b6dc2eadf7274bdaa92de3adc09994a9ad3 | 705 | hpp | C++ | src/application.hpp | kz04px/chip8-interpreter | 51476ca70fec25c1657ae94a92a31758b49e195e | [
"MIT"
] | null | null | null | src/application.hpp | kz04px/chip8-interpreter | 51476ca70fec25c1657ae94a92a31758b49e195e | [
"MIT"
] | null | null | null | src/application.hpp | kz04px/chip8-interpreter | 51476ca70fec25c1657ae94a92a31758b49e195e | [
"MIT"
] | null | null | null | #ifndef APPLICATION_HPP
#define APPLICATION_HPP
#include <chrono>
#include "chip8.hpp"
#include "options.hpp"
#include "window.hpp"
using clockz = std::chrono::high_resolution_clock;
class Application {
public:
[[nodiscard]] Application(const char *title, const int w, const int h);
[[nodiscard]] bool run... | 18.552632 | 75 | 0.675177 | [
"render"
] |
7e1499dce6dbf04d328f1ae492a9ab6db8f4004a | 3,602 | cpp | C++ | source/RD/Core/Core.cpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:18.000Z | 2021-12-26T12:48:18.000Z | source/RD/Core/Core.cpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | null | null | null | source/RD/Core/Core.cpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:25.000Z | 2021-12-26T12:48:25.000Z | /**
* @file Core.cpp
* @details Version 20210203.
*/
#include <Core.hpp>
bool RD::Core::WriteFile(const std::vector<uint8_t>& in, std::string filename){
return RD::Core::WriteFile(in, filename.c_str());
}
bool RD::Core::WriteFile(const std::vector<uint8_t>& in, const char* filename){
// Open file
... | 27.707692 | 109 | 0.58523 | [
"vector"
] |
7e1e2fc29d2b75be3fde57e8c7c7ec59116b8f5c | 2,376 | cpp | C++ | src/cgal_kernel/colored_box_with_colored_points.cpp | dyna-mis/geoWordle | f49dd0500e2ad2c14b244b0f8e316b676a967fde | [
"MIT"
] | 3 | 2021-11-03T18:32:27.000Z | 2021-11-08T05:10:09.000Z | src/cgal_kernel/colored_box_with_colored_points.cpp | dyna-mis/geoWordle | f49dd0500e2ad2c14b244b0f8e316b676a967fde | [
"MIT"
] | null | null | null | src/cgal_kernel/colored_box_with_colored_points.cpp | dyna-mis/geoWordle | f49dd0500e2ad2c14b244b0f8e316b676a967fde | [
"MIT"
] | null | null | null | #pragma once
#include "colored_box_with_colored_points.h"
colored_box_with_colored_points::colored_box_with_colored_points(double xMin, double xMax, double yMin, double yMax) :colored_box(xMin, xMax, yMin, yMax, -1)
{
};
void colored_box_with_colored_points::set(vector<colored_point>& points_t) {
size_t size = poi... | 22.205607 | 157 | 0.642677 | [
"vector"
] |
7e2103046e114f557e77f6142c28f436f346b136 | 8,843 | cpp | C++ | source/rastertechnique/scenerastercolortexturetechnique.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | 2 | 2022-03-25T00:37:25.000Z | 2022-03-26T00:13:53.000Z | source/rastertechnique/scenerastercolortexturetechnique.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | null | null | null | source/rastertechnique/scenerastercolortexturetechnique.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | 1 | 2022-03-02T21:11:29.000Z | 2022-03-02T21:11:29.000Z | /*
Copyright 2022 Alejandro Cosin & Gustavo Patow
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | 40.56422 | 175 | 0.724302 | [
"render"
] |
7e26cdc3a5a0fdddf449854345d6b4fab9bebf54 | 697 | hpp | C++ | AoC_2017/day17.hpp | c-goldschmidt/AoC_2017 | 6455b14bca9dc67ec6ceaf1f3c16ddb4c0b599e0 | [
"CC0-1.0"
] | null | null | null | AoC_2017/day17.hpp | c-goldschmidt/AoC_2017 | 6455b14bca9dc67ec6ceaf1f3c16ddb4c0b599e0 | [
"CC0-1.0"
] | null | null | null | AoC_2017/day17.hpp | c-goldschmidt/AoC_2017 | 6455b14bca9dc67ec6ceaf1f3c16ddb4c0b599e0 | [
"CC0-1.0"
] | null | null | null | #pragma once
#include "day_factory.hpp"
DAY(Day17)
void splinlock(vector<int> *result, int steps, int value, int *pos) {
*pos = (*pos + steps) % result->size() + 1;
result->insert(result->begin() + *pos, value);
}
void Day17::part1() {
vector<int> result = {0};
int steps = stoi(fileContent[0]);
int pos = 0;
fo... | 19.361111 | 69 | 0.595409 | [
"vector"
] |
7e270645403fc48973ea9450a6fc4c7935673ed0 | 1,324 | cpp | C++ | test/translator_test.cpp | metaVariable/ghostz | 273cc1efe6278f8012fa9232d854e392b467477f | [
"BSD-2-Clause"
] | null | null | null | test/translator_test.cpp | metaVariable/ghostz | 273cc1efe6278f8012fa9232d854e392b467477f | [
"BSD-2-Clause"
] | null | null | null | test/translator_test.cpp | metaVariable/ghostz | 273cc1efe6278f8012fa9232d854e392b467477f | [
"BSD-2-Clause"
] | null | null | null | /*
* translator_test.cpp
*
* Created on: 2010/10/03
* Author: shu
*/
#include <gtest/gtest.h>
#include <string>
#include <stdint.h>
#include "../src/translator.h"
#include "../src/alphabet_type.h"
#include "../src/protein_type.h"
#include "../src/dna_sequence.h"
#include "../src/protein_sequence.h"
using n... | 30.090909 | 59 | 0.70997 | [
"vector"
] |
7e2a010a96ac43980e665ae741c5edac8dc4e8c6 | 3,571 | cc | C++ | ortools/math_opt/samples/basic_example.cc | bhoeferlin/or-tools | dfdcfb58d7228fa0ae6d0182ba9b314c7122519f | [
"Apache-2.0"
] | null | null | null | ortools/math_opt/samples/basic_example.cc | bhoeferlin/or-tools | dfdcfb58d7228fa0ae6d0182ba9b314c7122519f | [
"Apache-2.0"
] | null | null | null | ortools/math_opt/samples/basic_example.cc | bhoeferlin/or-tools | dfdcfb58d7228fa0ae6d0182ba9b314c7122519f | [
"Apache-2.0"
] | null | null | null | // Copyright 2010-2021 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 in... | 36.438776 | 75 | 0.703444 | [
"model"
] |
7e2f97acae73123b0580f507c07ff61cf74ab053 | 2,365 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/text/CLengthFilter.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/text/CLengthFilter.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/text/CLengthFilter.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 26.875 | 97 | 0.594503 | [
"object"
] |
7e327ea916833eeef2c60574fc415f85fb0516ab | 3,270 | cc | C++ | gnuradio-3.7.13.4/gr-fft/lib/fft_vfc_fftw.cc | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | 1 | 2021-03-09T07:32:37.000Z | 2021-03-09T07:32:37.000Z | gnuradio-3.7.13.4/gr-fft/lib/fft_vfc_fftw.cc | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | gnuradio-3.7.13.4/gr-fft/lib/fft_vfc_fftw.cc | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | /* -*- c++ -*- */
/*
* Copyright 2004,2007,2008,2010,2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio 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... | 25.748031 | 86 | 0.652599 | [
"vector"
] |
cce21a2a96934378cf90ca63cbc77c8c035f9c2b | 1,302 | cpp | C++ | Source/Engine/RenderGraph/RenderGraphScheduler.cpp | KaiH0717/Kaguya | 6bdcac77984e3d359ea2fabe926dd44a467dde68 | [
"MIT"
] | 176 | 2020-10-31T21:28:27.000Z | 2022-01-22T12:15:38.000Z | Source/Engine/RenderGraph/RenderGraphScheduler.cpp | KaiH0717/Kaguya | 6bdcac77984e3d359ea2fabe926dd44a467dde68 | [
"MIT"
] | null | null | null | Source/Engine/RenderGraph/RenderGraphScheduler.cpp | KaiH0717/Kaguya | 6bdcac77984e3d359ea2fabe926dd44a467dde68 | [
"MIT"
] | 9 | 2020-12-25T01:12:48.000Z | 2022-01-13T16:28:43.000Z | #include "RenderGraphScheduler.h"
#include "RenderGraph.h"
auto RenderGraphScheduler::CreateTexture(std::string_view Name, const TextureDesc& Desc) -> RenderResourceHandle
{
if (Desc.Resolution == ETextureResolution::Render || Desc.Resolution == ETextureResolution::Viewport)
{
assert(Desc.Type == ETextureType::Tex... | 28.304348 | 112 | 0.778034 | [
"render"
] |
ccead2b251ade7ac1ed4372ce819f06527ee0f9f | 711 | cpp | C++ | dev/libs/algorithm/src/sort3elements.cpp | jeffujioka/envio_challenge | db5fd5cab777b120be22a255b3fdc053a0fd2550 | [
"MIT"
] | null | null | null | dev/libs/algorithm/src/sort3elements.cpp | jeffujioka/envio_challenge | db5fd5cab777b120be22a255b3fdc053a0fd2550 | [
"MIT"
] | null | null | null | dev/libs/algorithm/src/sort3elements.cpp | jeffujioka/envio_challenge | db5fd5cab777b120be22a255b3fdc053a0fd2550 | [
"MIT"
] | null | null | null | #include "algorithm/sort3elements.h"
#include <stdexcept>
#include <utility>
#include <iostream>
namespace envio
{
namespace algorithm
{
void Sort3Elements::Sort(std::vector<uint32_t>& vec) {
uint32_t low_idx = 0u;
uint32_t high_idx = vec.size() - 1u;
uint32_t middle_idx = 0u;
while(middle_idx <= high_id... | 18.230769 | 70 | 0.623066 | [
"vector"
] |
ccfd7cbe18cae798da6832326bb94cea764f6310 | 402 | hpp | C++ | internal/term_flags/term_flags.hpp | YarikRevich/SyE | 3f73350f7e8fd9975e747c9c49667bbee278b594 | [
"MIT"
] | null | null | null | internal/term_flags/term_flags.hpp | YarikRevich/SyE | 3f73350f7e8fd9975e747c9c49667bbee278b594 | [
"MIT"
] | null | null | null | internal/term_flags/term_flags.hpp | YarikRevich/SyE | 3f73350f7e8fd9975e747c9c49667bbee278b594 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
namespace TermFlags
{
extern int n_argc;
extern char **n_argv;
extern std::vector<std::string> n_single_flags;
void add_args(int argc, char **argv);
bool check_single_flag(std::string flag);
bool last_is_flag();
void check_exclude_syntax_h... | 21.157895 | 51 | 0.706468 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.