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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fc020396547899e56c0c115c6ecb12fa1b0bc66a | 2,196 | cpp | C++ | Source/src/UI/WindowInspector.cpp | Erick9Thor/Engine3D | 32d78f79723fb7c319f79d5e26cdc26481d5cb35 | [
"MIT"
] | 1 | 2021-11-17T19:20:07.000Z | 2021-11-17T19:20:07.000Z | Source/src/UI/WindowInspector.cpp | Erick9Thor/Engine3D | 32d78f79723fb7c319f79d5e26cdc26481d5cb35 | [
"MIT"
] | null | null | null | Source/src/UI/WindowInspector.cpp | Erick9Thor/Engine3D | 32d78f79723fb7c319f79d5e26cdc26481d5cb35 | [
"MIT"
] | null | null | null | #include "WindowInspector.h"
#include "../Application.h"
#include "../GameObject.h"
#include "../Modules/ModuleEditor.h"
#include "imgui.h"
#include <IconsFontAwesome5.h>
WindowInspector::WindowInspector()
: Window("Inspector", true) {}
WindowInspector::~WindowInspector()
{
}
void WindowInspector::Update()
{
Im... | 27.45 | 182 | 0.689435 | [
"vector"
] |
fc0a5cc749a83f15df8cc512c79935acf1279252 | 817 | hpp | C++ | src/Include/Util/FinalAction.hpp | 0KABE/Owl | e9d5981e5d41f6d327ef84cb0c3a66f41d68b91b | [
"MIT"
] | 2 | 2021-09-11T07:35:06.000Z | 2022-03-05T09:52:00.000Z | src/Include/Util/FinalAction.hpp | 0KABE/Owl | e9d5981e5d41f6d327ef84cb0c3a66f41d68b91b | [
"MIT"
] | null | null | null | src/Include/Util/FinalAction.hpp | 0KABE/Owl | e9d5981e5d41f6d327ef84cb0c3a66f41d68b91b | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <algorithm>
#include <utility>
namespace Owl {
class FinalAction {
public:
using Action = std::function<void()>;
FinalAction() = default;
explicit FinalAction(Action action) : mActions({std::move(action)}) {}
explicit FinalAction(s... | 24.029412 | 105 | 0.567931 | [
"vector"
] |
fc0c498399941b75975989fd1db6eae4bf9b3aea | 496 | cc | C++ | 洛谷/普及-/P1100.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 67 | 2019-07-14T05:38:41.000Z | 2021-12-23T11:52:51.000Z | 洛谷/普及-/P1100.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | null | null | null | 洛谷/普及-/P1100.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 12 | 2020-01-16T10:48:01.000Z | 2021-06-11T16:49:04.000Z | #include <iostream>
#include <algorithm>
#include <string>
#include <bitset>
#include <vector>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
using std::sort;
using std::bitset;
int main(void) {
unsigned long long n = 0;
cin >> n;
bitset<32> binary(n),rev(0);
for (in... | 14.588235 | 34 | 0.580645 | [
"vector"
] |
fc14d8de2aaf563555d9a08ed09f9f887f44f20e | 39,908 | cpp | C++ | src/chess_engine_search.cpp | MetalPhaeton/sayuri | 27a65bc2c2a9be49d394fbc9abbe50ad91dfa718 | [
"MIT"
] | 7 | 2015-09-15T23:56:35.000Z | 2022-01-21T03:06:22.000Z | src/chess_engine_search.cpp | MetalPhaeton/sayuri | 27a65bc2c2a9be49d394fbc9abbe50ad91dfa718 | [
"MIT"
] | 5 | 2016-04-09T21:37:04.000Z | 2018-06-12T07:12:34.000Z | src/chess_engine_search.cpp | MetalPhaeton/sayuri | 27a65bc2c2a9be49d394fbc9abbe50ad91dfa718 | [
"MIT"
] | 2 | 2018-08-11T21:30:16.000Z | 2021-08-03T15:43:27.000Z | /* The MIT License (MIT)
*
* Copyright (c) 2013-2018 Hironori Ishibashi
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights... | 29.215227 | 79 | 0.569385 | [
"vector"
] |
fc16f9cf742ce7090c53811bdf4f9a674dd96385 | 2,335 | hh | C++ | src/plugin/compute/cuda/include/kernelobject.hh | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | 4 | 2015-05-13T16:28:36.000Z | 2017-05-24T15:34:14.000Z | src/plugin/compute/cuda/include/kernelobject.hh | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | null | null | null | src/plugin/compute/cuda/include/kernelobject.hh | bugengine/BugEngine | 1b3831d494ee06b0bd74a8227c939dd774b91226 | [
"BSD-3-Clause"
] | 1 | 2017-03-21T08:28:07.000Z | 2017-03-21T08:28:07.000Z | /* BugEngine <bugengine.devel@gmail.com>
see LICENSE for detail */
#ifndef BE_COMPUTE_CUDA_KERNELOBJECT_HH_
#define BE_COMPUTE_CUDA_KERNELOBJECT_HH_
/**************************************************************************************************/
#include <bugengine/plugin.compute.cuda/stdafx.h>
#include <bugeng... | 28.13253 | 100 | 0.552463 | [
"object"
] |
fc1ed1c42ed3be36e6aba3db42dfba2444413e57 | 1,356 | cpp | C++ | test/IniParserTest.cpp | hzx/mutant2 | 5029d4ef59dca55819a98975b47554110913d62e | [
"MIT"
] | 1 | 2016-08-03T13:15:05.000Z | 2016-08-03T13:15:05.000Z | test/IniParserTest.cpp | hzx/mutant2 | 5029d4ef59dca55819a98975b47554110913d62e | [
"MIT"
] | null | null | null | test/IniParserTest.cpp | hzx/mutant2 | 5029d4ef59dca55819a98975b47554110913d62e | [
"MIT"
] | null | null | null | #include <gmock/gmock.h>
#include <string>
#include <vector>
#include "mutant/IniParser.h"
#include "mutant/error.h"
class IniParserTest: public ::testing::Test {
public:
Config config;
IniParser parser;
};
TEST_F(IniParserTest, parse) {
std::string content = R"(
[core]
user.email = test@example.com
pat... | 23.789474 | 85 | 0.693953 | [
"vector"
] |
fc221ef8c5fc2cb3bd7817ee8a253e5d17408dad | 11,278 | hpp | C++ | 3rdparty/GPSTk/ext/lib/Geomatics/DiscCorr.hpp | mfkiwl/ICE | e660d031bb1bcea664db1de4946fd8781be5b627 | [
"MIT"
] | 50 | 2019-10-12T01:22:20.000Z | 2022-02-15T23:28:26.000Z | 3rdparty/GPSTk/ext/lib/Geomatics/DiscCorr.hpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | null | null | null | 3rdparty/GPSTk/ext/lib/Geomatics/DiscCorr.hpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | 14 | 2019-11-05T01:50:29.000Z | 2021-08-06T06:23:44.000Z | //============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk 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; ei... | 41.160584 | 86 | 0.580156 | [
"object",
"vector"
] |
fc22bedf626d0d072c9d41b0dc4736afec6b6cf4 | 1,231 | cpp | C++ | universal-problems/79.cpp | Galaxies99/leetcode | 8099cf93fa1c61032449e67032eac1ea66bcc8fc | [
"MIT"
] | 1 | 2020-07-19T15:37:01.000Z | 2020-07-19T15:37:01.000Z | universal-problems/79.cpp | Galaxies99/leetcode | 8099cf93fa1c61032449e67032eac1ea66bcc8fc | [
"MIT"
] | null | null | null | universal-problems/79.cpp | Galaxies99/leetcode | 8099cf93fa1c61032449e67032eac1ea66bcc8fc | [
"MIT"
] | null | null | null | const int dx[] = {0, 0, 1, -1};
const int dy[] = {1, -1, 0, 0};
class Solution {
public:
int n, m;
bool ok;
void dfs(int x, int y, vector<vector<char>>& board, vector<vector<bool>> &vis, string word, int step) {
if(ok) return;
if (board[x][y] != word[step]) return ;
if (step == word.... | 30.02439 | 107 | 0.393989 | [
"vector"
] |
fc27f6e02872db4c946afbecdd5f0c64e20c037d | 1,580 | cpp | C++ | src/nodes/pcss_directional_light_depth_node.cpp | hdachev/Nimble | 922144ebdf1d3ee8c3df44feab4454ff9b0d8375 | [
"MIT"
] | null | null | null | src/nodes/pcss_directional_light_depth_node.cpp | hdachev/Nimble | 922144ebdf1d3ee8c3df44feab4454ff9b0d8375 | [
"MIT"
] | null | null | null | src/nodes/pcss_directional_light_depth_node.cpp | hdachev/Nimble | 922144ebdf1d3ee8c3df44feab4454ff9b0d8375 | [
"MIT"
] | 1 | 2021-05-10T02:07:12.000Z | 2021-05-10T02:07:12.000Z | #include "pcss_directional_light_depth_node.h"
#include "../render_graph.h"
#include "../renderer.h"
namespace nimble
{
DEFINE_RENDER_NODE_FACTORY(PCSSDirectionalLightDepthNode)
// -----------------------------------------------------------------------------------------------------------------------------------
PCSS... | 35.909091 | 134 | 0.388608 | [
"vector"
] |
fc287d06bcf7da7902e8616de90139661e4a3035 | 4,526 | cpp | C++ | cgal-plane-detection/src/planefit.cpp | phygitalism/cgal-plane-detector | c34a5887d62501f14e51a07e69cc72ba960311fa | [
"MIT"
] | 7 | 2020-11-04T02:23:07.000Z | 2022-02-14T02:54:39.000Z | cgal-plane-detection/src/planefit.cpp | phygitalism/cgal-plane-detector | c34a5887d62501f14e51a07e69cc72ba960311fa | [
"MIT"
] | null | null | null | cgal-plane-detection/src/planefit.cpp | phygitalism/cgal-plane-detector | c34a5887d62501f14e51a07e69cc72ba960311fa | [
"MIT"
] | 1 | 2021-12-14T04:58:01.000Z | 2021-12-14T04:58:01.000Z | #include "planefit.h"
#include "polygons_helper.h"
util::Polygon_mesh util::build_planes(const Polygon_mesh & mesh, const Regions & regions, std::vector<Rectangle> & rectangles, double min_area)
{
using size_type = Polygon_mesh::size_type;
using Halfedge_index = Polygon_mesh::Halfedge_index;
using vertex_d... | 36.208 | 155 | 0.56076 | [
"mesh",
"vector"
] |
fc2be2e82f1ac65ee5e2dc58cd39c6d6d3cf10a3 | 6,980 | cpp | C++ | AGL/DefaultShaders.cpp | wolfprint3d/AlphaGL | d47ed65b529bfb13775de0599499951c8feabbf1 | [
"MIT"
] | 2 | 2018-12-19T11:40:16.000Z | 2018-12-19T14:15:12.000Z | AGL/DefaultShaders.cpp | wolfprint3d/AlphaGL | d47ed65b529bfb13775de0599499951c8feabbf1 | [
"MIT"
] | null | null | null | AGL/DefaultShaders.cpp | wolfprint3d/AlphaGL | d47ed65b529bfb13775de0599499951c8feabbf1 | [
"MIT"
] | 2 | 2018-10-18T11:49:04.000Z | 2019-12-02T22:35:05.000Z | #include "DefaultShaders.h"
namespace AGL
{
////////////////////////////////////////////////////////////////////////////
ShaderPair GetEngineShaderSource(EngineShader engineShader)
{
// LAZY init all the shaders
////////////////////////////////////////////////////////////////////////////////
static strvi... | 35.075377 | 98 | 0.571633 | [
"transform",
"3d"
] |
fc42f65571679dbf8a0252daba0e843e9f53dcc6 | 427 | cpp | C++ | solutions/467.unique-substrings-in-wraparound-string.298676947.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/467.unique-substrings-in-wraparound-string.298676947.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/467.unique-substrings-in-wraparound-string.298676947.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
int findSubstringInWraproundString(string p) {
vector<int> alp(26, 0);
int n = p.length();
int len = 0, res = 0;
for (int i = 0; i < n; i++) {
char cur = p[i] - 'a';
if (i > 0 && p[i - 1] != (cur + 26 - 1) % 26 + 'a')
len = 0;
len++;
if (len... | 17.791667 | 57 | 0.423888 | [
"vector"
] |
fc4b69e2b4d8178f5c0bd9f6611557bfefd180bd | 1,567 | cpp | C++ | cpp_unlimited_numbers_library/digit.cpp | Vanderkast/unlimited_numbers_cpp_library | 02de59e819ec5b2ea7c2588cf513ff4a6710b7c5 | [
"Apache-2.0"
] | null | null | null | cpp_unlimited_numbers_library/digit.cpp | Vanderkast/unlimited_numbers_cpp_library | 02de59e819ec5b2ea7c2588cf513ff4a6710b7c5 | [
"Apache-2.0"
] | null | null | null | cpp_unlimited_numbers_library/digit.cpp | Vanderkast/unlimited_numbers_cpp_library | 02de59e819ec5b2ea7c2588cf513ff4a6710b7c5 | [
"Apache-2.0"
] | null | null | null | #include "digit.h"
Digit::Digit() {
this->binary.resize(1, false);
}
void absAndTrim(int& number) {
number = abs(number) % 10;
}
void fillBinary(std::vector<bool>& vector, int number) {
while (number > 1) {
vector.push_back((bool)(number % 2));
number /= 2;
}
vector.push_back((bool)number);
}
Digit::Digit(... | 21.175676 | 116 | 0.668156 | [
"vector"
] |
fc4bc08cf2615e1e0622a46c170a52e56f05e6b8 | 3,846 | cpp | C++ | tests/prepared_statement_tests/replace_range.cpp | tstrutz/sqlite_orm | 1ee0a8653fe57ed4d4f69b5a65839b1861c41d32 | [
"BSD-3-Clause"
] | 1,566 | 2016-12-20T15:31:04.000Z | 2022-03-31T18:17:34.000Z | tests/prepared_statement_tests/replace_range.cpp | tstrutz/sqlite_orm | 1ee0a8653fe57ed4d4f69b5a65839b1861c41d32 | [
"BSD-3-Clause"
] | 620 | 2017-01-06T13:53:35.000Z | 2022-03-31T12:05:50.000Z | tests/prepared_statement_tests/replace_range.cpp | tstrutz/sqlite_orm | 1ee0a8653fe57ed4d4f69b5a65839b1861c41d32 | [
"BSD-3-Clause"
] | 274 | 2017-01-07T05:34:24.000Z | 2022-03-27T18:22:47.000Z | #include <sqlite_orm/sqlite_orm.h>
#include <catch2/catch.hpp>
#include "prepared_common.h"
using namespace sqlite_orm;
TEST_CASE("Prepared replace range") {
using namespace PreparedStatementTests;
using Catch::Matchers::UnorderedEquals;
const int defaultVisitTime = 50;
auto filename = "prepared.sq... | 42.263736 | 110 | 0.545762 | [
"vector"
] |
fc5214e54d8ea2634c3819b2e533c386e5ef695f | 17,855 | cc | C++ | beast_output.cc | migetwi25/oi90jj | f895deb1f19ae89f12634fd06d36b6e8601be279 | [
"BSD-2-Clause"
] | 23 | 2016-05-31T15:43:11.000Z | 2021-12-09T23:55:15.000Z | beast_output.cc | migetwi25/oi90jj | f895deb1f19ae89f12634fd06d36b6e8601be279 | [
"BSD-2-Clause"
] | 5 | 2016-10-10T11:46:14.000Z | 2021-11-17T09:40:23.000Z | beast_output.cc | migetwi25/oi90jj | f895deb1f19ae89f12634fd06d36b6e8601be279 | [
"BSD-2-Clause"
] | 9 | 2017-01-10T00:54:43.000Z | 2021-04-12T17:13:10.000Z | // Copyright (c) 2015-2016, FlightAware LLC.
// Copyright (c) 2015, Oliver Jowett <oliver@mutability.co.uk>
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code m... | 38.397849 | 418 | 0.585382 | [
"vector"
] |
fc5579b13362d8f609bf392740398479f042485f | 12,948 | cc | C++ | cpp_src/gtests/tests/unit/clientsstats_test.cc | andyoknen/reindexer | ff1b2bcc0a80c4692361c9c184243d74a920ead7 | [
"Apache-2.0"
] | null | null | null | cpp_src/gtests/tests/unit/clientsstats_test.cc | andyoknen/reindexer | ff1b2bcc0a80c4692361c9c184243d74a920ead7 | [
"Apache-2.0"
] | null | null | null | cpp_src/gtests/tests/unit/clientsstats_test.cc | andyoknen/reindexer | ff1b2bcc0a80c4692361c9c184243d74a920ead7 | [
"Apache-2.0"
] | null | null | null | #include "clientsstats_api.h"
#include "gason/gason.h"
#include "reindexer_version.h"
#include "tools/semversion.h"
#include "tools/stringstools.h"
TEST_F(ClientsStatsApi, ClientsStatsConcurrent) {
RunServerInThread(true);
RunClient(4, 1);
RunNSelectThread(10);
RunNReconnectThread(10);
std::this_thread::sleep_for... | 40.589342 | 133 | 0.711616 | [
"vector"
] |
fc561d13bbdb71ccfe6168e68f1076e6b5092a6d | 1,616 | cpp | C++ | SOLVER/src/models3D/geometric/Ellipticity.cpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 8 | 2020-06-05T01:13:20.000Z | 2022-02-24T05:11:50.000Z | SOLVER/src/models3D/geometric/Ellipticity.cpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 24 | 2020-10-21T19:03:38.000Z | 2021-11-17T21:32:02.000Z | SOLVER/src/models3D/geometric/Ellipticity.cpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 5 | 2020-06-21T11:54:22.000Z | 2021-06-23T01:02:39.000Z | //
// Ellipticity.cpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 5/29/20.
// Copyright © 2020 Kuangdai Leng. All rights reserved.
//
// ellipticity
#include "Ellipticity.hpp"
#include "sg_tools.hpp"
// get undulation on points
bool Ellipticity::getUndulation(const eigen::DMatX3 &spz,
... | 32.979592 | 77 | 0.600248 | [
"model"
] |
fc596cbb8a610b30c2a98b87a1a45675c42b72ec | 601 | cpp | C++ | src/apps/PathFinderApp.cpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | src/apps/PathFinderApp.cpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | src/apps/PathFinderApp.cpp | Person-93/aima-cpp | 08d062dcb971edeaddb9a10083cf6da5a1b869f7 | [
"MIT"
] | null | null | null | #include "PathFinderApp.hpp"
#include "util/parseTitle.hpp"
using namespace aima::core;
using namespace aima::path_finder;
using aima::apps::PathFinderApp;
PathFinderApp::PathFinderApp( aima::gui::ImGuiWrapper& imGuiWrapper ) :
App{ imGuiWrapper },
gui{ util::parseTitle<PathFinderApp>(), &stayOpen_ },... | 31.631579 | 91 | 0.697171 | [
"render"
] |
fc60b69dc747d10bd6817072eccaf879d3b10731 | 11,355 | hpp | C++ | src/GeneticAlgorithm.hpp | CLRN/GALGO-2.0 | b1af23ac5ce7aba074b9a994921b8a9165704aa8 | [
"MIT"
] | null | null | null | src/GeneticAlgorithm.hpp | CLRN/GALGO-2.0 | b1af23ac5ce7aba074b9a994921b8a9165704aa8 | [
"MIT"
] | null | null | null | src/GeneticAlgorithm.hpp | CLRN/GALGO-2.0 | b1af23ac5ce7aba074b9a994921b8a9165704aa8 | [
"MIT"
] | null | null | null | //=================================================================================================
// Copyright (C) 2017 Olivier Mallet - All Rights Reserved
//=================================================================================================
#ifndef GENETICALGO... | 31.717877 | 192 | 0.510348 | [
"vector"
] |
fc6a8371f2d6026a09abf8945140e0d075ad4eac | 2,013 | cpp | C++ | lynton/src/core/log.cpp | Light3039/lynton | e6610bcd2ebbf27d0a70cc82f7fa9a0bbd2d4f87 | [
"MIT"
] | 7 | 2021-01-04T15:16:48.000Z | 2021-12-01T21:43:42.000Z | lynton/src/core/log.cpp | Light3039/lynton | e6610bcd2ebbf27d0a70cc82f7fa9a0bbd2d4f87 | [
"MIT"
] | 3 | 2021-08-12T21:28:54.000Z | 2021-09-02T13:20:18.000Z | lynton/src/core/log.cpp | Light3039/lynton | e6610bcd2ebbf27d0a70cc82f7fa9a0bbd2d4f87 | [
"MIT"
] | 1 | 2021-07-26T10:41:56.000Z | 2021-07-26T10:41:56.000Z | #include "log.h"
#include "pch.h"
namespace Lynton {
std::shared_ptr<spdlog::logger> Log::s_lynton_logger;
std::shared_ptr<spdlog::logger> Log::s_client_logger;
std::shared_ptr<spdlog::logger> Log::s_error_logger;
void Log::init()
{
try {
// log to console and file
std::vector<spdlog::sink_ptr> d... | 40.26 | 119 | 0.682563 | [
"vector"
] |
fc6bb082b8295687e9a0c3eec063682ef4639227 | 17,487 | cpp | C++ | LDFV.cpp | constanton/bLDFV | 7609f9d3c719cd1e707eb05fb8472449bd11f0cf | [
"Apache-2.0"
] | 16 | 2015-04-11T12:44:36.000Z | 2021-07-19T15:14:40.000Z | LDFV.cpp | constanton/bLDFV | 7609f9d3c719cd1e707eb05fb8472449bd11f0cf | [
"Apache-2.0"
] | null | null | null | LDFV.cpp | constanton/bLDFV | 7609f9d3c719cd1e707eb05fb8472449bd11f0cf | [
"Apache-2.0"
] | 12 | 2015-04-14T12:12:15.000Z | 2018-12-10T00:15:12.000Z | /*
Copyright 2014 Konstantinos Antonakoglou
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 writing... | 33.5 | 143 | 0.69423 | [
"vector"
] |
fc70ead38760f9ab7ec2311ef42eb8b2eab3b7f4 | 30,377 | cpp | C++ | openstudiocore/src/model/GeneratorFuelCellAirSupply.cpp | Acidburn0zzz/OpenStudio | 8d7aa85fe5df7987cb6983984d4ce8698f1bd0bd | [
"MIT"
] | null | null | null | openstudiocore/src/model/GeneratorFuelCellAirSupply.cpp | Acidburn0zzz/OpenStudio | 8d7aa85fe5df7987cb6983984d4ce8698f1bd0bd | [
"MIT"
] | null | null | null | openstudiocore/src/model/GeneratorFuelCellAirSupply.cpp | Acidburn0zzz/OpenStudio | 8d7aa85fe5df7987cb6983984d4ce8698f1bd0bd | [
"MIT"
] | null | null | null | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitt... | 42.248957 | 159 | 0.757119 | [
"object",
"vector",
"model"
] |
fc73601fb6c8b3b48709611f7455484b3d888ed3 | 7,575 | cc | C++ | content/browser/renderer_host/render_widget_host_view_win_browsertest.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/renderer_host/render_widget_host_view_win_browsertest.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/renderer_host/render_widget_host_view_win_browsertest.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 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 <vector>
#include "base/command_line.h"
#include "base/win/metro.h"
#include "content/browser/renderer_host/render_widget_host_view_win.h"
#... | 33.370044 | 79 | 0.738746 | [
"vector"
] |
fc8a72f750bc67e19b8fa7a56e3f1d6ba8b43bd5 | 2,436 | cpp | C++ | jansson/JsonAuto.cpp | a4lg/OTrP | da3ff451d8adbbefab045cebf1a6b924a8bb2664 | [
"MIT"
] | null | null | null | jansson/JsonAuto.cpp | a4lg/OTrP | da3ff451d8adbbefab045cebf1a6b924a8bb2664 | [
"MIT"
] | null | null | null | jansson/JsonAuto.cpp | a4lg/OTrP | da3ff451d8adbbefab045cebf1a6b924a8bb2664 | [
"MIT"
] | null | null | null | /* Copyright (c) Microsoft Corporation. All Rights Reserved. */
#include "JsonAuto.h"
JsonAuto::JsonAuto() {
ptr = NULL;
}
JsonAuto::JsonAuto(const JsonAuto& value) {
ptr = json_incref(value);
}
JsonAuto::JsonAuto(json_t* value, bool donateReference)
{
if (donateReference || !value) {
ptr = valu... | 19.967213 | 74 | 0.569787 | [
"object"
] |
fc8ba2d750654ea745c2f6141973ffdd0ce7be45 | 11,732 | cpp | C++ | brds/brds~.cpp | TheTechnobear/Mi4Pd | f4aa6e936347a3952c928b925a03731331d1a627 | [
"MIT"
] | 74 | 2017-08-30T06:18:01.000Z | 2022-03-15T19:54:33.000Z | brds/brds~.cpp | TheTechnobear/TB_puredata | f4aa6e936347a3952c928b925a03731331d1a627 | [
"MIT"
] | 15 | 2018-03-08T23:37:19.000Z | 2022-01-17T09:49:38.000Z | brds/brds~.cpp | TheTechnobear/Mi4Pd | f4aa6e936347a3952c928b925a03731331d1a627 | [
"MIT"
] | 15 | 2017-10-18T04:56:06.000Z | 2022-01-17T08:22:46.000Z | #include "m_pd.h"
//IMPROVE - inlets
//IMPROVE - variable buffer size
#include <algorithm>
#include "braids/macro_oscillator.h"
#include "braids/envelope.h"
#include "braids/vco_jitter_source.h"
// TOOD
// add parameters
// trigger handling
// sync handling
// for signature_waveshaper, need abs
inline int16_t a... | 25.84141 | 125 | 0.621292 | [
"render",
"shape",
"transform"
] |
fc8c2f38596b24ea26262063a9a6467f750166a0 | 4,537 | hpp | C++ | include/deci/ast_t.hpp | masscry/deci.vm | e2126b6592f798b919de6219c32cbcc41f980e98 | [
"MIT"
] | 6 | 2019-07-25T08:54:17.000Z | 2022-01-10T06:15:53.000Z | include/deci/ast_t.hpp | masscry/deci.vm | e2126b6592f798b919de6219c32cbcc41f980e98 | [
"MIT"
] | 7 | 2019-07-08T12:00:42.000Z | 2019-07-14T18:05:56.000Z | include/deci/ast_t.hpp | masscry/deci.vm | e2126b6592f798b919de6219c32cbcc41f980e98 | [
"MIT"
] | null | null | null | #pragma once
#ifndef __DECI_AST_HEADER__
#define __DECI_AST_HEADER__
#include <fstream>
#include <vector>
namespace deci
{
class ast_item_t {
ast_item_t* parent;
public:
ast_item_t* Parent() const {
return this->parent;
}
void Parent(ast_item_t* parent) {
this->parent = parent;
... | 21.00463 | 115 | 0.672471 | [
"vector"
] |
fc8cdb34845f3bc9cd4ede3226bb9ae1295fc5d1 | 18,976 | cpp | C++ | src/nyx/features/gabor.cpp | friskluft/nyx | 338fa587a358588dc1d01ce938864c69a391cb07 | [
"MIT"
] | 1 | 2021-09-09T18:57:23.000Z | 2021-09-09T18:57:23.000Z | src/nyx/features/gabor.cpp | friskluft/nyx | 338fa587a358588dc1d01ce938864c69a391cb07 | [
"MIT"
] | null | null | null | src/nyx/features/gabor.cpp | friskluft/nyx | 338fa587a358588dc1d01ce938864c69a391cb07 | [
"MIT"
] | 1 | 2021-09-17T14:51:21.000Z | 2021-09-17T14:51:21.000Z | #define _USE_MATH_DEFINES // For M_PI, etc.
#include <cmath>
#include <omp.h>
#include "gabor.h"
void GaborFeature::calculate (LR& r)
{
const ImageMatrix& Im0 = r.aux_image_matrix;
double GRAYthr;
/* parameters set up in complience with the paper */
double gamma = 0.5, sig2lam = 0.56;
... | 33.64539 | 159 | 0.396817 | [
"vector"
] |
4759e5b9b4b1857aa32b0a90b28ac81f575acceb | 8,135 | cc | C++ | audio/dsp/eigen_types_test.cc | foolish-hungry-b/test | 5276d8169f398da068e5694eaf571c1cb1e25e06 | [
"Apache-2.0"
] | 58 | 2018-01-20T14:27:07.000Z | 2022-01-26T03:09:02.000Z | audio/dsp/eigen_types_test.cc | foolish-hungry-b/test | 5276d8169f398da068e5694eaf571c1cb1e25e06 | [
"Apache-2.0"
] | 1 | 2020-10-02T17:18:10.000Z | 2020-10-02T17:23:00.000Z | audio/dsp/eigen_types_test.cc | foolish-hungry-b/test | 5276d8169f398da068e5694eaf571c1cb1e25e06 | [
"Apache-2.0"
] | 30 | 2018-02-28T16:13:07.000Z | 2022-03-31T00:38:54.000Z | /*
* Copyright 2020-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 31.901961 | 75 | 0.702889 | [
"vector"
] |
476283b2045752010d96bb509d8a1810c1e04e42 | 4,494 | cpp | C++ | tools/disktool/src/WebWorker.cpp | DarkMaguz/CodingPiratesOS | 7750224b87646ad376664bd1f826aae5112ea41c | [
"MIT"
] | 1 | 2020-03-09T14:14:02.000Z | 2020-03-09T14:14:02.000Z | tools/disktool/src/WebWorker.cpp | DarkMaguz/CodingPiratesOS | 7750224b87646ad376664bd1f826aae5112ea41c | [
"MIT"
] | null | null | null | tools/disktool/src/WebWorker.cpp | DarkMaguz/CodingPiratesOS | 7750224b87646ad376664bd1f826aae5112ea41c | [
"MIT"
] | 2 | 2020-03-11T21:29:20.000Z | 2020-07-06T20:20:18.000Z | /*
* WebWorker.cpp
*
* Created on: Mar 13, 2022
* Author: magnus
*/
#include "WebWorker.h"
#include "AssistantSourcePage.h"
//#include <curlpp/cURLpp.hpp>
#include <curlpp/Easy.hpp>
#include <curlpp/Options.hpp>
#include <tinyxml2.h>
#include <string>
#include <sstream>
#include <iostream>
#include <exce... | 27.072289 | 96 | 0.617713 | [
"vector"
] |
476f4b287531e181ff506120bf78cc4549c9de67 | 6,819 | cxx | C++ | PWG/FLOW/Base/AliStarTrack.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWG/FLOW/Base/AliStarTrack.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWG/FLOW/Base/AliStarTrack.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 42.354037 | 125 | 0.64203 | [
"3d"
] |
47714411aa3b6cdb7a7c9365d3dc26e507b9e2b2 | 5,977 | cpp | C++ | src/core/gui/FreeTypeFont.cpp | KCL-Planning/strategic-tactical-pandora | aa609af26a59e756b25212fa57fa72be937766e7 | [
"BSD-2-Clause"
] | 2 | 2019-01-27T05:17:06.000Z | 2020-10-06T15:25:31.000Z | src/core/gui/FreeTypeFont.cpp | KCL-Planning/strategic-tactical-pandora | aa609af26a59e756b25212fa57fa72be937766e7 | [
"BSD-2-Clause"
] | null | null | null | src/core/gui/FreeTypeFont.cpp | KCL-Planning/strategic-tactical-pandora | aa609af26a59e756b25212fa57fa72be937766e7 | [
"BSD-2-Clause"
] | null | null | null | #include "FreeTypeFont.h"
#include <glm/gtc/matrix_transform.hpp>
FreeTypeFont::FreeTypeFont(const std::string& fontName, int screenWidth, int screenHeight, int fontSize)
{
m_fontName = fontName;
m_screenWidth = screenWidth;
m_screenHeight = screenHeight;
m_fontSize = fontSize;
shader_ ... | 31.130208 | 182 | 0.641124 | [
"vector"
] |
4772519fc317872a847fd7a69f56b537117fd878 | 842 | cpp | C++ | src/SceneDescription.cpp | diegomacario/Manta-Ray-Tracer | 39fca8343f682ca318119ffd220af0234597bf9d | [
"MIT"
] | 124 | 2017-10-24T00:11:02.000Z | 2021-12-06T17:19:09.000Z | src/SceneDescription.cpp | diegomacario/Manta-Ray-Tracer | 39fca8343f682ca318119ffd220af0234597bf9d | [
"MIT"
] | 5 | 2017-10-24T21:11:47.000Z | 2020-03-19T19:34:15.000Z | src/SceneDescription.cpp | diegomacario/Manta-Ray-Tracer | 39fca8343f682ca318119ffd220af0234597bf9d | [
"MIT"
] | 6 | 2017-10-24T20:29:25.000Z | 2021-10-19T08:13:35.000Z | #include "SceneDescription.h"
SceneDescription::SceneDescription(int width, int height, const std::string& outputFilename, const Point& eye, const Point& center, const Vector& up, float fovy)
: width(width)
, height(height)
, outputFilename(outputFilename)
, eye(eye)
, center(center)
, up(up)... | 16.509804 | 162 | 0.662708 | [
"vector"
] |
477763970b7e139a7be4bb247db7c8b6182df364 | 1,583 | cpp | C++ | random/appl_random_mgr.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | random/appl_random_mgr.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | random/appl_random_mgr.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | /* See LICENSE for license details */
/*
*/
#include <appl_status.h>
#include <appl_predefines.h>
#include <appl_types.h>
#include <object/appl_object.h>
#include <random/appl_random_mgr.h>
#include <random/appl_random.h>
#include <random/appl_random_pseudo.h>
#include <random/appl_random_handle.h>
#include ... | 14.794393 | 47 | 0.641819 | [
"object"
] |
4783f039c0675c7d4905366f6f816ab643751887 | 3,158 | cpp | C++ | common/Timer.cpp | caozhiyi/Hudp | 85108e675d90985666d1d2a8f364015a467ae72f | [
"BSD-3-Clause"
] | 57 | 2019-07-26T06:26:47.000Z | 2022-03-22T13:12:12.000Z | common/Timer.cpp | caozhiyi/Hudp | 85108e675d90985666d1d2a8f364015a467ae72f | [
"BSD-3-Clause"
] | 1 | 2019-12-09T11:16:06.000Z | 2020-04-09T12:22:23.000Z | common/Timer.cpp | caozhiyi/Hudp | 85108e675d90985666d1d2a8f364015a467ae72f | [
"BSD-3-Clause"
] | 20 | 2019-08-21T08:26:14.000Z | 2021-11-21T09:58:48.000Z | #include "IMsg.h"
#include "Timer.h"
#include "ISocket.h"
#include "HudpConfig.h"
using namespace hudp;
CTimer::CTimer() : _wait_time(__timer_empty_wait) {
}
CTimer::~CTimer() {
Stop();
_notify.notify_one();
Join();
}
uint64_t CTimer::AddTimer(uint32_t ms, std::shared_ptr<CMsg> ti) {
_time_tool... | 27.224138 | 117 | 0.525332 | [
"vector"
] |
4789342924514a4283ae84942c3aa7748a86ff19 | 3,392 | cpp | C++ | algo/sort/sort.cpp | slimccq/gist | 2b08c9df81a979e0499b39fcaa644d446cd0c43a | [
"Apache-2.0"
] | null | null | null | algo/sort/sort.cpp | slimccq/gist | 2b08c9df81a979e0499b39fcaa644d446cd0c43a | [
"Apache-2.0"
] | null | null | null | algo/sort/sort.cpp | slimccq/gist | 2b08c9df81a979e0499b39fcaa644d446cd0c43a | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2016 ichenq@outlook.com. All rights reserved.
// Distributed under the terms and conditions of the Apache License.
// See accompanying files LICENSE.
#include <assert.h>
#include <string>
#include <iostream>
#include <chrono>
#include <random>
#include "sort.h"
#include "merge_sort.h"
#include "heap_... | 24.056738 | 108 | 0.587264 | [
"vector"
] |
4797338b6d73fda3ee26cc9cd13e55c854c0e874 | 881 | cpp | C++ | seminars/1/15/lambda/lambdaExample2.cpp | peshe/SDP20-21 | af298e723c2934036048b26b168f8f8607fcec40 | [
"CC0-1.0"
] | 7 | 2020-10-05T09:32:28.000Z | 2022-03-25T07:58:12.000Z | seminars/1/15/lambda/lambdaExample2.cpp | peshe/SDP20-21 | af298e723c2934036048b26b168f8f8607fcec40 | [
"CC0-1.0"
] | 2 | 2020-11-16T20:41:04.000Z | 2020-12-15T11:10:20.000Z | seminars/1/15/lambda/lambdaExample2.cpp | peshe/SDP20-21 | af298e723c2934036048b26b168f8f8607fcec40 | [
"CC0-1.0"
] | 6 | 2020-10-09T15:46:55.000Z | 2021-01-12T17:47:11.000Z | #include <iostream>
#include <vector>
#include <functional>
using namespace std;
bool isPrime(int n) {
n = n<0 ? -n : n;
for(int i = 2; i*i< n; ++i) {
if(n % i == 0) {
return false;
}
}
return true;
}
int firstIndex(const vector<int>& arr, std::function<bool(int)> predic... | 22.589744 | 91 | 0.498297 | [
"vector"
] |
479bcc5447a0b1dfb50dfbda67e8d83e3b92c9a5 | 147 | hpp | C++ | include/xul/lang/object_base.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 2 | 2018-03-16T07:06:48.000Z | 2018-04-02T03:02:14.000Z | include/xul/lang/object_base.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | null | null | null | include/xul/lang/object_base.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 1 | 2019-08-12T05:15:29.000Z | 2019-08-12T05:15:29.000Z | #pragma once
#include <xul/lang/object_impl.hpp>
#include <assert.h>
namespace xul {
class object_base : public object_impl<object>
{
};
}
| 8.647059 | 46 | 0.70068 | [
"object"
] |
479da5c7ce290bcb35abdcd0a4250ce6c2679cc9 | 2,886 | cc | C++ | src/test/t_font.cc | rklogan/fontdiff | 9e0d7c3ab7e4dfa07e533846c5b1c1743839a72d | [
"Apache-2.0"
] | null | null | null | src/test/t_font.cc | rklogan/fontdiff | 9e0d7c3ab7e4dfa07e533846c5b1c1743839a72d | [
"Apache-2.0"
] | null | null | null | src/test/t_font.cc | rklogan/fontdiff | 9e0d7c3ab7e4dfa07e533846c5b1c1743839a72d | [
"Apache-2.0"
] | null | null | null | #include "t_font.h"
// Test Solutions
const vector<string> pathToFonts = vector<string>({
"./src/assets/fonts/OpenSans-BoldItalic.ttf",
"./src/assets/fonts/OpenSans-Bold.ttf",
"./src/assets/fonts/OpenSans-ExtraBold.ttf",
"./src/assets/fonts/OpenSans-ExtraBoldItalic.ttf",
"./src/assets/fon... | 30.0625 | 85 | 0.588011 | [
"vector"
] |
47a17b99daa986cdbeda596e85c78a612a675236 | 1,637 | hh | C++ | renderer/src/AmbiSphericalConvolution.hh | facebookincubator/Audio360 | 171bfbfa69c4724026ef8d06a0f5155b1a9de32b | [
"MIT"
] | 46 | 2018-04-27T20:37:51.000Z | 2019-10-09T17:32:17.000Z | renderer/src/AmbiSphericalConvolution.hh | facebookarchive/Audio360 | 171bfbfa69c4724026ef8d06a0f5155b1a9de32b | [
"MIT"
] | 1 | 2018-09-23T16:52:55.000Z | 2018-09-23T16:52:55.000Z | renderer/src/AmbiSphericalConvolution.hh | facebookincubator/Audio360 | 171bfbfa69c4724026ef8d06a0f5155b1a9de32b | [
"MIT"
] | 2 | 2018-04-27T21:28:16.000Z | 2018-04-30T05:35:30.000Z | /*
Copyright (c) 2018-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
#pragma once
#include "../../dsp/src/DSP.hh"
#include "AmbiDefinitions.hh"
#include <memory>
#include <vector>
namespace TBE {
class AmbiSpher... | 36.377778 | 100 | 0.750764 | [
"vector"
] |
47a98c27ff78d671f295a94e482ef103e0fe82b5 | 216 | cpp | C++ | graphic/geometry.cpp | MihailJP/MiHaJong | b81168ab2696dd29af5c400b84c870a9b8a2f01e | [
"MIT"
] | 13 | 2016-01-20T02:10:52.000Z | 2022-03-08T15:51:36.000Z | graphic/geometry.cpp | MihailJP/MiHaJong | b81168ab2696dd29af5c400b84c870a9b8a2f01e | [
"MIT"
] | 13 | 2020-09-28T12:57:52.000Z | 2022-02-20T19:20:57.000Z | graphic/geometry.cpp | MihailJP/MiHaJong | b81168ab2696dd29af5c400b84c870a9b8a2f01e | [
"MIT"
] | 4 | 2016-09-19T13:44:10.000Z | 2022-02-18T08:13:37.000Z | #include "geometry.h"
namespace mihajong_graphic {
unsigned Geometry::WindowWidth = 1024;
unsigned Geometry::WindowHeight = 768;
//unsigned Geometry::WindowWidth = 1280;
//unsigned Geometry::WindowHeight = 960;
}
| 19.636364 | 40 | 0.763889 | [
"geometry"
] |
47b37f7901f0be883c06fe9179d9ed6b1c5848c8 | 1,358 | cpp | C++ | .LHP/.Lop11/.HSG/New folder/New folder (2)/B/B/B.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.HSG/New folder/New folder (2)/B/B/B.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.HSG/New folder/New folder (2)/B/B/B.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <queue>
#include <vector>
#define maxN 5002
#define minR -5000000000001
#define del -2
typedef int maxn;
typedef long long maxa;
typedef std::pair <maxn, maxa> pq_t;
maxn n, K, N;
maxa a[maxN], res;
int imp[maxN];
void Prepare() {
std::cin >> n >> K >> a[0], res =... | 19.4 | 64 | 0.52651 | [
"vector"
] |
47b47c09e728186dbf2790c89db5d5eacb62e1f1 | 1,779 | cpp | C++ | source/serenum3.cpp | taogashi/mlib | 56d0ac08205b3a09cac7ed97209454cc6262c924 | [
"Unlicense",
"MIT"
] | 12 | 2020-07-08T04:21:44.000Z | 2022-03-24T10:02:03.000Z | source/serenum3.cpp | taogashi/mlib | 56d0ac08205b3a09cac7ed97209454cc6262c924 | [
"Unlicense",
"MIT"
] | null | null | null | source/serenum3.cpp | taogashi/mlib | 56d0ac08205b3a09cac7ed97209454cc6262c924 | [
"Unlicense",
"MIT"
] | 2 | 2020-07-22T09:00:40.000Z | 2021-06-29T13:54:10.000Z | /*!
\file serenum2.cpp Implementation of SerEnum_UsingRegistry() function.
(c) Mircea Neacsu 2017. All rights reserved.
*/
#include <mlib/serenum.h>
using namespace std;
namespace mlib {
/*!
\ingroup serenum
Enumerates all values under `HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM`
to retrieve availab... | 28.238095 | 134 | 0.698707 | [
"vector"
] |
47ba7f736214c7884f1778db659649c5e03b72a3 | 3,225 | hpp | C++ | dcgmi/MigIdParser.hpp | deepio/DCGM | d10273f18fb3d425da752ab6bb7e07af3d18caec | [
"Apache-2.0"
] | 85 | 2021-02-03T19:58:50.000Z | 2022-03-21T08:00:11.000Z | dcgmi/MigIdParser.hpp | deepio/DCGM | d10273f18fb3d425da752ab6bb7e07af3d18caec | [
"Apache-2.0"
] | 19 | 2021-03-19T08:13:58.000Z | 2022-03-17T02:50:41.000Z | dcgmi/MigIdParser.hpp | deepio/DCGM | d10273f18fb3d425da752ab6bb7e07af3d18caec | [
"Apache-2.0"
] | 17 | 2021-02-04T06:47:30.000Z | 2022-03-21T22:14:03.000Z | /*
* Copyright (c) 2021, NVIDIA CORPORATION. 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 requi... | 27.330508 | 119 | 0.693643 | [
"object"
] |
47bfca0e90b21d7b582e59f3e665629f51d009c8 | 4,409 | cpp | C++ | apps/HVCC_SG_GRADP_FORCE/init.cpp | Guo-astro/Simulations | 55c04dd1811993ef4099ea009af89fbd265c4241 | [
"MIT"
] | null | null | null | apps/HVCC_SG_GRADP_FORCE/init.cpp | Guo-astro/Simulations | 55c04dd1811993ef4099ea009af89fbd265c4241 | [
"MIT"
] | null | null | null | apps/HVCC_SG_GRADP_FORCE/init.cpp | Guo-astro/Simulations | 55c04dd1811993ef4099ea009af89fbd265c4241 | [
"MIT"
] | null | null | null | #include "header.h"
void Initialize(PS::ParticleSystem<RealPtcl>& sph_system) {
for (PS::S32 i = 0; i < sph_system.getNumberOfParticleLocal(); ++i) {
sph_system[i].smth = PARAM::SMTH * pow(sph_system[i].mass / sph_system[i].dens, 1.0 / (PS::F64) (PARAM::Dim));
sph_system[i].setPressure();
}
}
double f1(double ... | 31.949275 | 144 | 0.640054 | [
"vector"
] |
47c9b43e872853000e03ac0c82fc6db20063db22 | 8,905 | cpp | C++ | tech/Game/Scene.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | tech/Game/Scene.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | tech/Game/Scene.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | /******************************************************************************
Copyright (c) 2015 Teardrop Games
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including wit... | 27.828125 | 87 | 0.573723 | [
"object"
] |
47d4fba9ba7d28312a101b70555a7a59749d0014 | 2,745 | hpp | C++ | engine/engine/gems/serialization/json.hpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2020-04-14T13:55:16.000Z | 2020-04-14T13:55:16.000Z | engine/engine/gems/serialization/json.hpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 4 | 2020-09-25T22:34:29.000Z | 2022-02-09T23:45:12.000Z | engine/engine/gems/serialization/json.hpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2022-01-28T16:37:51.000Z | 2022-01-28T16:37:51.000Z | /*
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 29.516129 | 96 | 0.730055 | [
"object"
] |
47d5de830346c18969c8206587d0fe9923b81bd5 | 787 | cpp | C++ | Cpp_Primer_5E_Learning/Chapter3/E3.20.cpp | feiwofeifeixiaowo/CppPrimer5thAnswer | c22fb5f9369d05cafb7f3d8d75b4f499de4c2105 | [
"MIT"
] | null | null | null | Cpp_Primer_5E_Learning/Chapter3/E3.20.cpp | feiwofeifeixiaowo/CppPrimer5thAnswer | c22fb5f9369d05cafb7f3d8d75b4f499de4c2105 | [
"MIT"
] | null | null | null | Cpp_Primer_5E_Learning/Chapter3/E3.20.cpp | feiwofeifeixiaowo/CppPrimer5thAnswer | c22fb5f9369d05cafb7f3d8d75b4f499de4c2105 | [
"MIT"
] | null | null | null | //
// Created by Xiyun on 16/9/18.
// E3.20
//
#include <iostream>
#include <vector>
using namespace std;
int main()
{
char con;
int input;
vector<int> ivec;
cout << "input some int num:" << endl;
while(cin >> input)
{
ivec.push_back(input);
cout << "are you continue? (y/n)" <... | 19.195122 | 58 | 0.467598 | [
"vector"
] |
47d9dbea3d73e9bfb4d22dce5090e6c7ff39427e | 456 | cpp | C++ | Csgo Loader/client/src/util/io.cpp | Verfired/Csgo-Loader | f545bad20063a12eab16dfec26e2edb9205bc0ae | [
"BSL-1.0"
] | null | null | null | Csgo Loader/client/src/util/io.cpp | Verfired/Csgo-Loader | f545bad20063a12eab16dfec26e2edb9205bc0ae | [
"BSL-1.0"
] | null | null | null | Csgo Loader/client/src/util/io.cpp | Verfired/Csgo-Loader | f545bad20063a12eab16dfec26e2edb9205bc0ae | [
"BSL-1.0"
] | 1 | 2021-03-02T13:51:26.000Z | 2021-03-02T13:51:26.000Z | #include "../include.h"
#include "io.h"
bool io::read_file(const std::string_view path, std::vector<char>& out) {
std::ifstream file(path.data(), std::ios::binary);
if (!file.good()) {
log_error("{} isnt valid.", path);
return false;
}
file.unsetf(std::ios::skipws);
file.seekg(0, std::ios::end);
const size... | 18.24 | 73 | 0.633772 | [
"vector"
] |
c51b45d28cd5ebdc02918693cfb2f2e9678ee026 | 1,305 | cpp | C++ | Animation/ScalarInterpolator.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | 1 | 2021-09-18T12:50:35.000Z | 2021-09-18T12:50:35.000Z | Animation/ScalarInterpolator.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | null | null | null | Animation/ScalarInterpolator.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | null | null | null | /*
* ScalarInterpolator.cpp
*
* Created on: 28.03.2014
* Author: parojtbe
*/
#include "ScalarInterpolator.h"
#include <OgreControllerManager.h>
#include <OgrePredefinedControllers.h>
#include <OgreAnimationState.h>
namespace X3D {
const std::vector<float>& ScalarInterpolator::key() const {
return _key... | 24.622642 | 122 | 0.720307 | [
"vector"
] |
c5279aaabe152a7139eb227316204909cac4d07a | 838 | cpp | C++ | src/sea.cpp | PK1210/rafale-flight | ec30026b96982bf98325e01b47f44061cf18a9ec | [
"MIT"
] | null | null | null | src/sea.cpp | PK1210/rafale-flight | ec30026b96982bf98325e01b47f44061cf18a9ec | [
"MIT"
] | null | null | null | src/sea.cpp | PK1210/rafale-flight | ec30026b96982bf98325e01b47f44061cf18a9ec | [
"MIT"
] | null | null | null | #include "sea.h"
Sea::Sea(float side) {
this->position = glm::vec3(0, 0, 0);
static const GLfloat vertex_buffer_data[] = {
side, 0.0f, side,
-side, 0.0f, side,
-side, 0.0f, -side,
side, 0.0f, side,
side, 0.0f, -side,
-side, 0.0f, -side
};
this->obj... | 31.037037 | 103 | 0.593079 | [
"object",
"model"
] |
c52bc3048e8700395ddd1de9679f4df50619720c | 1,667 | cc | C++ | src/q_301_350/q0344.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 2 | 2021-09-28T18:41:03.000Z | 2021-09-28T18:42:57.000Z | src/q_301_350/q0344.cc | vNaonLu/Daily_LeetCode | 30024b561611d390931cef1b22afd6a5060cf586 | [
"MIT"
] | 16 | 2021-09-26T11:44:20.000Z | 2021-11-28T06:44:02.000Z | src/q_301_350/q0344.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 1 | 2021-11-22T09:11:36.000Z | 2021-11-22T09:11:36.000Z | #include <gtest/gtest.h>
#include <iostream>
#include <vector>
using namespace std;
/**
* This file is generated by leetcode_add.py v1.0
*
* 344.
* Reverse String
*
* ––––––––––––––––––––––––––––– Description –––––––––––––––––––––––––––––
*
* Write a function that reverses a string. The input string is... | 26.046875 | 132 | 0.543491 | [
"vector"
] |
c52bdd59d36f2a053509d0add8a5cf51d5c3e10e | 10,179 | hpp | C++ | include/Options.hpp | AugustoRuiz/dskgen | 8585d24312d127f6269b3e8b870ea1ffdc4ee933 | [
"MIT"
] | 6 | 2016-01-13T12:55:52.000Z | 2020-05-08T12:58:31.000Z | include/Options.hpp | AugustoRuiz/dskgen | 8585d24312d127f6269b3e8b870ea1ffdc4ee933 | [
"MIT"
] | 1 | 2017-12-18T23:36:47.000Z | 2017-12-18T23:36:47.000Z | include/Options.hpp | AugustoRuiz/dskgen | 8585d24312d127f6269b3e8b870ea1ffdc4ee933 | [
"MIT"
] | 7 | 2017-11-26T12:41:42.000Z | 2021-11-16T17:30:50.000Z | #ifndef _DSKGEN_OPTIONS_H_
#define _DSKGEN_OPTIONS_H_
#include <string>
#include <fstream>
#include <iostream>
#include <json/json.h>
#include "Types.hpp"
#include "FileToProcess.hpp"
using namespace std;
class Options {
public:
Options() { };
string OutputFileName;
string ... | 35.34375 | 103 | 0.661656 | [
"vector"
] |
c5354ace783036b99bb96acf95f8071bb56ea7dc | 1,471 | hpp | C++ | src/way_speed_map.hpp | ccebrand/route-annotator | e139e93550ad60cd29b5e230a3146929dfeb29b6 | [
"BSD-3-Clause"
] | 29 | 2016-04-26T09:48:31.000Z | 2022-03-21T12:34:42.000Z | src/way_speed_map.hpp | ccebrand/route-annotator | e139e93550ad60cd29b5e230a3146929dfeb29b6 | [
"BSD-3-Clause"
] | 45 | 2016-05-18T23:12:56.000Z | 2022-01-03T15:07:55.000Z | src/way_speed_map.hpp | ccebrand/route-annotator | e139e93550ad60cd29b5e230a3146929dfeb29b6 | [
"BSD-3-Clause"
] | 15 | 2017-03-06T00:21:42.000Z | 2021-07-26T06:43:23.000Z | #ifndef WAY_SPEED_MAP_H
#define WAY_SPEED_MAP_H
#include <fstream>
#include <iostream>
#include <sparsepp/spp.h>
#include <vector>
#include "types.hpp"
using spp::sparse_hash_map;
class WaySpeedMap
{
public:
/**
* Do-nothing constructor
*/
WaySpeedMap();
/**
* Loads from,to,speed data ... | 22.984375 | 85 | 0.649898 | [
"vector"
] |
c53626fac179f020a76a0a41eb289e277557fc76 | 751 | cpp | C++ | OmegaUp/Cool-Editor.cpp | JFAlexanderS/Contest-Archive | ef1415e56b3e46a16cb28aab05bfba4ada56edb4 | [
"MIT"
] | 2 | 2016-04-16T17:40:53.000Z | 2018-11-09T06:09:26.000Z | OmegaUp/Cool-Editor.cpp | JFAlexanderS/Contest-Archive | ef1415e56b3e46a16cb28aab05bfba4ada56edb4 | [
"MIT"
] | null | null | null | OmegaUp/Cool-Editor.cpp | JFAlexanderS/Contest-Archive | ef1415e56b3e46a16cb28aab05bfba4ada56edb4 | [
"MIT"
] | null | null | null | //https://omegaup.com/arena/problem/Cool-Editor#
#include <cstdio>
#include <string>
#include <vector>
using namespace std;
int mind, totes=1000000, mkill, words;
int dead[1005], curlen[1005];
char inp[1005];
vector<string> slist(1005);
int main()
{
scanf("%d", &words);
for(int i=1; i<=words; i++)
{
scanf("... | 16.326087 | 48 | 0.576565 | [
"vector"
] |
c53939c31e296c699a1ea18be20d84e547cf109b | 4,847 | cc | C++ | mogura-src/ParserAction.cc | mynlp/enju | d984a630b30b95de16f3b715277e95dc6fbe15b4 | [
"Apache-2.0"
] | 48 | 2016-10-11T06:07:02.000Z | 2022-03-02T16:26:25.000Z | mogura-src/ParserAction.cc | mynlp/enju | d984a630b30b95de16f3b715277e95dc6fbe15b4 | [
"Apache-2.0"
] | 7 | 2017-02-13T09:14:34.000Z | 2019-01-18T06:06:29.000Z | mogura-src/ParserAction.cc | mynlp/enju | d984a630b30b95de16f3b715277e95dc6fbe15b4 | [
"Apache-2.0"
] | 18 | 2016-11-13T23:14:28.000Z | 2022-01-12T15:21:44.000Z | #include <stdexcept>
#include "ParserAction.h"
namespace mogura {
////////////////////////////////////////////////////////////////////////////////
/// Action classes
////////////////////////////////////////////////////////////////////////////////
class Shift : public ParserAction {
protected:
Shift(void) {}
friend ... | 25.510526 | 117 | 0.60326 | [
"vector"
] |
c53e44bc907e3c289dbdcce12b335616c243b514 | 27,870 | hpp | C++ | mango/src/graphics/graphics_types.hpp | pethipet/Mango | f89a93a11df365440ce7a8fb48f8336eac2c63f0 | [
"Apache-2.0"
] | 3 | 2020-05-12T09:30:41.000Z | 2020-10-04T21:27:03.000Z | mango/src/graphics/graphics_types.hpp | pethipet/Mango | f89a93a11df365440ce7a8fb48f8336eac2c63f0 | [
"Apache-2.0"
] | 1 | 2020-03-21T20:34:10.000Z | 2020-03-22T13:58:41.000Z | mango/src/graphics/graphics_types.hpp | pethipet/Mango | f89a93a11df365440ce7a8fb48f8336eac2c63f0 | [
"Apache-2.0"
] | 3 | 2020-06-24T16:32:44.000Z | 2020-08-14T14:44:20.000Z | //! \file graphics_types.hpp
//! \author Paul Himmler
//! \version 1.0
//! \date 2021
//! \copyright Apache License 2.0
#ifndef MANGO_GRAPHICS_TYPES_HPP
#define MANGO_GRAPHICS_TYPES_HPP
//! \cond NO_COND
#define GLM_FORCE_SILENT_WARNINGS 1
//! \endcond
#include <glm/gtx/matrix_major_storage.hpp>
#inclu... | 30.727674 | 118 | 0.540079 | [
"geometry",
"render",
"object",
"3d"
] |
c548125c4ef98d3f11a0f4a21c41a879437ab988 | 2,197 | cpp | C++ | vox.render/physics/shape/sphere_collider_shape.cpp | SummerTree/DigitalVox4 | 2eb718abcaccc4cd1dde3b0f28090c197c1905d4 | [
"MIT"
] | 6 | 2022-01-23T04:58:50.000Z | 2022-03-16T06:11:38.000Z | vox.render/physics/shape/sphere_collider_shape.cpp | SummerTree/DigitalVox4 | 2eb718abcaccc4cd1dde3b0f28090c197c1905d4 | [
"MIT"
] | null | null | null | vox.render/physics/shape/sphere_collider_shape.cpp | SummerTree/DigitalVox4 | 2eb718abcaccc4cd1dde3b0f28090c197c1905d4 | [
"MIT"
] | 1 | 2022-01-20T05:53:59.000Z | 2022-01-20T05:53:59.000Z | // Copyright (c) 2022 Feng Yang
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "sphere_collider_shape.h"
#include "../physics_manager.h"
#ifdef _DEBUG
#include "mesh/mes... | 30.513889 | 128 | 0.730542 | [
"mesh",
"transform"
] |
c55a58e944f04b11fb01ee7bfe5062d380ffa927 | 25,713 | cpp | C++ | production/libs/fog/Fog/Src/Fog/Core/Tools/InternedString.cpp | Lewerow/DetailIdentifier | bd5e0b3b55b5ce5b24db51ae45ed53298d331687 | [
"MIT"
] | null | null | null | production/libs/fog/Fog/Src/Fog/Core/Tools/InternedString.cpp | Lewerow/DetailIdentifier | bd5e0b3b55b5ce5b24db51ae45ed53298d331687 | [
"MIT"
] | null | null | null | production/libs/fog/Fog/Src/Fog/Core/Tools/InternedString.cpp | Lewerow/DetailIdentifier | bd5e0b3b55b5ce5b24db51ae45ed53298d331687 | [
"MIT"
] | null | null | null | // [Fog-Core]
//
// [License]
// MIT, See COPYING file in package
// [Precompiled Headers]
#if defined(FOG_PRECOMP)
#include FOG_PRECOMP
#endif // FOG_PRECOMP
// [Dependencies]
#include <Fog/Core/Global/Init_p.h>
#include <Fog/Core/Memory/MemMgr.h>
#include <Fog/Core/Threading/Lock.h>
#include <Fog/Core/Tools/Hash.h>... | 25.508929 | 129 | 0.577646 | [
"shape",
"transform"
] |
c55dd9e309e22a61e5c889f52c292bc7c6b5a31e | 1,715 | cpp | C++ | src/engine/GameEngine.cpp | nickfourtimes/overbourn | 4fe0260222c454d9651b9fd6a5597148bdf0900d | [
"MIT"
] | null | null | null | src/engine/GameEngine.cpp | nickfourtimes/overbourn | 4fe0260222c454d9651b9fd6a5597148bdf0900d | [
"MIT"
] | 1 | 2020-06-08T14:31:17.000Z | 2020-06-08T14:31:17.000Z | src/engine/GameEngine.cpp | nickfourtimes/overbourn | 4fe0260222c454d9651b9fd6a5597148bdf0900d | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include "common.h"
#include "engine/GameEngine.h"
using namespace std;
/************************************************************************************************** DATA */
GameEngine* GameEngine::m_instance = NULL;
GameScreen* m_screen;
ScreenInfo* m_screenInfo;
/*... | 18.44086 | 120 | 0.588921 | [
"render"
] |
c56865480ff31baafe2b915050b2a1fd2207ab2f | 10,698 | hpp | C++ | relational_operators/RelationalOperator.hpp | udippant/incubator-quickstep | 8169306c2923d68235ba3c0c8df4c53f5eee9a68 | [
"Apache-2.0"
] | 1 | 2021-08-22T19:16:59.000Z | 2021-08-22T19:16:59.000Z | relational_operators/RelationalOperator.hpp | udippant/incubator-quickstep | 8169306c2923d68235ba3c0c8df4c53f5eee9a68 | [
"Apache-2.0"
] | null | null | null | relational_operators/RelationalOperator.hpp | udippant/incubator-quickstep | 8169306c2923d68235ba3c0c8df4c53f5eee9a68 | [
"Apache-2.0"
] | null | null | null | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 34.178914 | 97 | 0.697046 | [
"vector"
] |
c56bf6a99c82f3ef48b63a4de11e5acb95806a32 | 2,704 | cpp | C++ | src/main.cpp | gregoriobenatti/bmp-dds-dds-bmp | 84ca5081b92a23bbe288f5011e0dd98e78518743 | [
"MIT"
] | null | null | null | src/main.cpp | gregoriobenatti/bmp-dds-dds-bmp | 84ca5081b92a23bbe288f5011e0dd98e78518743 | [
"MIT"
] | null | null | null | src/main.cpp | gregoriobenatti/bmp-dds-dds-bmp | 84ca5081b92a23bbe288f5011e0dd98e78518743 | [
"MIT"
] | null | null | null |
#include "BMPFile.h"
#include "DDSFile.h"
#include "Converter.h"
#include <iostream>
#include <string>
#include <array>
#include <vector>
#include <iterator>
#include <sstream>
#include <fstream>
const std::string BMP = "bmp";
const std::string DDS = "dds";
const std::string HELP = "help";
const std::string MAN =... | 25.271028 | 95 | 0.566198 | [
"vector",
"transform"
] |
c56e23f981cf38d8a417a20857eeea916d00e73a | 604 | cpp | C++ | generator/cities_boundaries_checker.cpp | smartyw/organicmaps | 9b10eb9d3ed6833861cef294c2416cc98b15e10d | [
"Apache-2.0"
] | 4,879 | 2015-09-30T10:56:36.000Z | 2022-03-31T18:43:03.000Z | generator/cities_boundaries_checker.cpp | smartyw/organicmaps | 9b10eb9d3ed6833861cef294c2416cc98b15e10d | [
"Apache-2.0"
] | 7,549 | 2015-09-30T10:52:53.000Z | 2022-03-31T22:04:22.000Z | generator/cities_boundaries_checker.cpp | smartyw/organicmaps | 9b10eb9d3ed6833861cef294c2416cc98b15e10d | [
"Apache-2.0"
] | 1,493 | 2015-09-30T10:43:06.000Z | 2022-03-21T09:16:49.000Z | #include "generator/cities_boundaries_checker.hpp"
#include "geometry/rect2d.hpp"
namespace generator
{
CitiesBoundariesChecker::CitiesBoundariesChecker(CitiesBoundaries const & citiesBoundaries)
{
for (auto const & cb : citiesBoundaries)
m_tree.Add(cb, cb.m_bbox.ToRect());
}
bool CitiesBoundariesChecker::InCi... | 23.230769 | 97 | 0.731788 | [
"geometry"
] |
c56f9d41f16845682eed6ad4ac1569230779f0f8 | 6,959 | cpp | C++ | SirEngineThe3rdLib/src/platform/windows/graphics/vk/vkMeshManager.cpp | giordi91/SirEngineThe3rd | 551328144f513e7e7ea9af03327672096baae610 | [
"MIT"
] | 114 | 2020-12-03T10:25:21.000Z | 2022-03-16T20:06:15.000Z | SirEngineThe3rdLib/src/platform/windows/graphics/vk/vkMeshManager.cpp | giordi91/SirEngineThe3rd | 551328144f513e7e7ea9af03327672096baae610 | [
"MIT"
] | null | null | null | SirEngineThe3rdLib/src/platform/windows/graphics/vk/vkMeshManager.cpp | giordi91/SirEngineThe3rd | 551328144f513e7e7ea9af03327672096baae610 | [
"MIT"
] | 3 | 2021-01-11T16:22:26.000Z | 2022-01-29T16:41:09.000Z | #include "platform/windows/graphics/vk/vkMeshManager.h"
#include "SirEngine/io/binaryFile.h"
#include "SirEngine/io/fileUtils.h"
#include "SirEngine/log.h"
#include "platform/windows/graphics/vk/vk.h"
#include "platform/windows/graphics/vk/vkBufferManager.h"
namespace SirEngine::vk {
void VkMeshManager::cleanup() {
... | 37.616216 | 80 | 0.694496 | [
"mesh",
"object",
"vector"
] |
c57614d99452a569c33da3e8c4e6d67af3021b65 | 1,336 | cpp | C++ | walter/katana/WalterIn/FaceSetCook.cpp | all-in-one-of/OpenWalter | c2034f7fac20b36ffe3e500c01d40b87e84e2b97 | [
"libtiff"
] | 187 | 2018-08-14T19:06:20.000Z | 2022-03-04T06:03:25.000Z | walter/katana/WalterIn/FaceSetCook.cpp | all-in-one-of/OpenWalter | c2034f7fac20b36ffe3e500c01d40b87e84e2b97 | [
"libtiff"
] | 9 | 2018-08-22T15:34:48.000Z | 2019-11-27T13:45:21.000Z | walter/katana/WalterIn/FaceSetCook.cpp | all-in-one-of/OpenWalter | c2034f7fac20b36ffe3e500c01d40b87e84e2b97 | [
"libtiff"
] | 41 | 2018-08-14T19:06:09.000Z | 2021-09-04T20:01:10.000Z | #include "AbcCook.h"
#include "ArrayPropUtils.h"
#include "ScalarPropUtils.h"
#include "ArbitraryGeomParamUtils.h"
#include <FnAttribute/FnAttribute.h>
#include <FnAttribute/FnDataBuilder.h>
namespace WalterIn
{
void cookFaceset(AbcCookPtr ioCook, FnAttribute::GroupBuilder & oStaticGb)
{
Alembic::Abc... | 32.585366 | 78 | 0.650449 | [
"geometry"
] |
c576a4f8e20336e7b970085b000bc79a72373279 | 923 | cxx | C++ | Algorithms/Sorting/quicksort2.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | Algorithms/Sorting/quicksort2.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | Algorithms/Sorting/quicksort2.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
inline ostream &operator<< (ostream &os, vector<int> &v) {
auto i = begin(v), j = end(v);
if ( i != j ) {
os << *i;
while ( ++i != j )
os << ' ' << *i;
}
return os;
}
void quickSort(vector <int> &arr) {
vector<int> left, equ... | 19.638298 | 67 | 0.447454 | [
"vector"
] |
c576a820d5032c968c4dde065b27b5b51ece2f45 | 2,361 | cpp | C++ | src/lib/client/InfraredStateChangeNotifications.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 1 | 2021-05-21T21:10:09.000Z | 2021-05-21T21:10:09.000Z | src/lib/client/InfraredStateChangeNotifications.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 12 | 2021-06-12T16:42:30.000Z | 2022-02-01T18:44:42.000Z | src/lib/client/InfraredStateChangeNotifications.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019-2021 Grant Erickson
* 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... | 22.701923 | 78 | 0.703515 | [
"object",
"model"
] |
c5770c84276739e075eb994724431320db0dddb7 | 1,578 | cpp | C++ | src/game/Vector2D.cpp | padawin/RogueCard | 7a5d04fa2d7be47c1542b6d4908e277ccbbd01fc | [
"MIT"
] | null | null | null | src/game/Vector2D.cpp | padawin/RogueCard | 7a5d04fa2d7be47c1542b6d4908e277ccbbd01fc | [
"MIT"
] | null | null | null | src/game/Vector2D.cpp | padawin/RogueCard | 7a5d04fa2d7be47c1542b6d4908e277ccbbd01fc | [
"MIT"
] | null | null | null | #include "Vector2D.hpp"
#include <math.h>
Vector2D::Vector2D() {
m_iX = 0;
m_iY = 0;
}
Vector2D::Vector2D(const float x, const float y) {
m_iX = x;
m_iY = y;
}
float Vector2D::getLength() {
return sqrtf(powf(m_iX, 2.0) + powf(m_iY, 2.0));
}
float Vector2D::getX() {
return m_iX;
}
float Vector2D::getY() {
ret... | 17.533333 | 60 | 0.653359 | [
"vector"
] |
c5790e33a24f29ce42a26aa0f2c61e0c4021c61e | 17,766 | cxx | C++ | Podd/THaDetMap.cxx | MarkKJones/analyzer | 5f02974888b1655b9e7b9440a708b98ae9477af8 | [
"BSD-3-Clause"
] | 7 | 2016-01-26T19:37:26.000Z | 2019-02-18T20:50:39.000Z | Podd/THaDetMap.cxx | MarkKJones/analyzer | 5f02974888b1655b9e7b9440a708b98ae9477af8 | [
"BSD-3-Clause"
] | 108 | 2015-02-01T04:17:40.000Z | 2021-10-30T14:54:45.000Z | Podd/THaDetMap.cxx | MarkKJones/analyzer | 5f02974888b1655b9e7b9440a708b98ae9477af8 | [
"BSD-3-Clause"
] | 57 | 2015-05-08T17:14:11.000Z | 2022-03-24T16:38:40.000Z | //*-- Author : Ole Hansen 16/05/00
//////////////////////////////////////////////////////////////////////////
//
// THaDetMap
//
// The standard detector map for a Hall A detector.
//
//////////////////////////////////////////////////////////////////////////
#include "THaDetMap.h"
#include "Decoder.h"
#include <... | 31.5 | 119 | 0.651413 | [
"vector",
"model"
] |
c585e0e2d8a6ecb3e696da34830891fefefc5116 | 527 | cpp | C++ | Week-4/Day-22-frequencySort.cpp | utkarshavardhana/may-leetcoding-challenge | 4f7600c943460029c595a3b2d85f86e68d7b7066 | [
"MIT"
] | 1 | 2020-05-02T04:21:54.000Z | 2020-05-02T04:21:54.000Z | Week-4/Day-22-frequencySort.cpp | utkarshavardhana/may-leetcoding-challenge | 4f7600c943460029c595a3b2d85f86e68d7b7066 | [
"MIT"
] | null | null | null | Week-4/Day-22-frequencySort.cpp | utkarshavardhana/may-leetcoding-challenge | 4f7600c943460029c595a3b2d85f86e68d7b7066 | [
"MIT"
] | null | null | null | class Solution {
public:
string frequencySort(string s) {
unordered_map<char, int> m;
for(char c : s) m[c]++;
map<int, vector<char>, greater<int>> ma;
for(auto it=m.begin(); it!=m.end(); it++) {
ma[(*it).second].push_back((*it).first);
}
string re... | 27.736842 | 54 | 0.436433 | [
"vector"
] |
c58965f805354037690eb69e38b29dc0e330c87f | 14,164 | cpp | C++ | lib/MC/MCAnalysis/MCObjectSymbolizer.cpp | pwnzen-mobile/llvm_dagger_9.0 | ee097dc2a0cd194002fd54e574703de5094b12f1 | [
"Apache-2.0"
] | 4 | 2019-09-17T05:21:40.000Z | 2021-12-20T19:25:18.000Z | lib/MC/MCAnalysis/MCObjectSymbolizer.cpp | pwnzen-mobile/llvm_dagger_9.0 | ee097dc2a0cd194002fd54e574703de5094b12f1 | [
"Apache-2.0"
] | null | null | null | lib/MC/MCAnalysis/MCObjectSymbolizer.cpp | pwnzen-mobile/llvm_dagger_9.0 | ee097dc2a0cd194002fd54e574703de5094b12f1 | [
"Apache-2.0"
] | 2 | 2020-05-23T04:07:53.000Z | 2021-11-11T04:17:23.000Z | //===-- lib/MC/MCObjectSymbolizer.cpp -------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 33.327059 | 80 | 0.675657 | [
"object"
] |
c5909264c334d1678ce62f96c1df3478cc75771a | 109,517 | cpp | C++ | Src/lunaui/status-bar/StatusBarServicesConnector.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | null | null | null | Src/lunaui/status-bar/StatusBarServicesConnector.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | 1 | 2021-02-20T13:12:15.000Z | 2021-02-20T13:12:15.000Z | Src/lunaui/status-bar/StatusBarServicesConnector.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | null | null | null | /* @@@LICENSE
*
* Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P.
*
* 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
*
* Unl... | 31.910548 | 177 | 0.715241 | [
"vector"
] |
c592446b4fb58a60edfaaf2e5b342e45ce2798cb | 8,450 | cc | C++ | chrome/browser/android/download/chrome_download_delegate.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | chrome/browser/android/download/chrome_download_delegate.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/android/download/chrome_download_delegate.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/android/download/chrome_download_delegate.h"
#include <jni.h>
#include <string>
#include <type_traits>
#include "base/android/... | 38.584475 | 96 | 0.748757 | [
"vector"
] |
c59a8faf4a2378888a89c062378932b94a5c7cd0 | 3,301 | cpp | C++ | OpenGLParticleSystem/ParticleSystem.cpp | Co3us/OpenGLParticleSystem | 65a19510b5e03106cbb78624aeea0e24f9d94200 | [
"MIT"
] | 2 | 2020-02-17T20:06:42.000Z | 2021-03-31T08:01:38.000Z | OpenGLParticleSystem/ParticleSystem.cpp | Co3us/OpenGLParticleSystem | 65a19510b5e03106cbb78624aeea0e24f9d94200 | [
"MIT"
] | null | null | null | OpenGLParticleSystem/ParticleSystem.cpp | Co3us/OpenGLParticleSystem | 65a19510b5e03106cbb78624aeea0e24f9d94200 | [
"MIT"
] | null | null | null | #include "ParticleSystem.h"
using namespace std;
ParticleSystem::ParticleSystem(int _NMAX, int _numOfParticlesPerSecond) {
NMAX = _NMAX;
numOfParticlesPerSecond = _numOfParticlesPerSecond;
prevTime = glfwGetTime();
fpsTime = glfwGetTime();
partCounter = 0;
nbFrames = 0;
maxFilledIndex = 0;
currentDataSize... | 21.025478 | 100 | 0.632536 | [
"vector"
] |
c5a10e51cbdffc50e80ac30d42983d0909c7710f | 4,095 | cpp | C++ | qsrc/CQSVGBufferView.cpp | colinw7/CSVG | 049419b4114fc6ff7f5b25163398f02c21a64bf6 | [
"MIT"
] | 5 | 2015-04-11T14:56:03.000Z | 2021-12-14T10:12:36.000Z | qsrc/CQSVGBufferView.cpp | colinw7/CSVG | 049419b4114fc6ff7f5b25163398f02c21a64bf6 | [
"MIT"
] | 3 | 2015-04-20T19:23:15.000Z | 2021-09-03T20:03:30.000Z | qsrc/CQSVGBufferView.cpp | colinw7/CSVG | 049419b4114fc6ff7f5b25163398f02c21a64bf6 | [
"MIT"
] | 3 | 2015-05-21T08:33:12.000Z | 2020-05-13T15:45:11.000Z | #include <CQSVGBufferView.h>
#include <CQSVG.h>
#include <CQSVGRenderer.h>
#include <CSVGBuffer.h>
#include <CQSVGUtil.h>
#include <CQImage.h>
#include <CQUtil.h>
#include <QVBoxLayout>
#include <QComboBox>
#include <QCheckBox>
#include <QLabel>
#include <QPainter>
#include <QMouseEvent>
CQSVGBufferView::
CQSVGBuffer... | 17.882096 | 80 | 0.687912 | [
"vector",
"transform"
] |
c5a3a71175b3c20ebb90f131cda408a8005635c7 | 2,761 | cpp | C++ | IMU/VTK-6.2.0/ThirdParty/xdmf3/vtkxdmf3/core/XdmfItem.cpp | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 4 | 2016-03-30T14:31:52.000Z | 2019-02-02T05:01:32.000Z | IMU/VTK-6.2.0/ThirdParty/xdmf3/vtkxdmf3/core/XdmfItem.cpp | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | null | null | null | IMU/VTK-6.2.0/ThirdParty/xdmf3/vtkxdmf3/core/XdmfItem.cpp | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | null | null | null | /*****************************************************************************/
/* XDMF */
/* eXtensible Data Model and Format */
/* ... | 43.825397 | 80 | 0.357479 | [
"vector",
"model"
] |
c5ae563a10df678942a66e56167dd8337ed0235b | 700 | hpp | C++ | examples/gl-ball/paddle_renderer.hpp | EduRenesto/abcg | 4f7ab2d02e20e2a9351af03c34360a7629c219d1 | [
"MIT"
] | null | null | null | examples/gl-ball/paddle_renderer.hpp | EduRenesto/abcg | 4f7ab2d02e20e2a9351af03c34360a7629c219d1 | [
"MIT"
] | null | null | null | examples/gl-ball/paddle_renderer.hpp | EduRenesto/abcg | 4f7ab2d02e20e2a9351af03c34360a7629c219d1 | [
"MIT"
] | null | null | null | #ifndef __GLBALL_PADDLE_RENDERER_HPP
#define __GLBALL_PADDLE_RENDERER_HPP
#include <array>
#include <GL/glew.h>
#include "paddle.hpp"
namespace glball {
class PaddleRenderer {
public:
explicit PaddleRenderer(GLuint shader);
void render(Paddle& paddle, glm::mat4 &projection_matrix) const;
private:
... | 18.918919 | 73 | 0.632857 | [
"render"
] |
c5b094a4b45faae0e317ddeadb992429b9c8fa35 | 97,316 | hxx | C++ | source/OOSQL/include/OOSQL_StorageManager.hxx | odysseus-oosql/ODYSSEUS-OOSQL | 49a5e32b6f73cea611dafdcc0e6767f80d4450ae | [
"BSD-3-Clause"
] | 6 | 2016-08-29T08:03:21.000Z | 2022-03-25T09:56:23.000Z | source/OOSQL/include/OOSQL_StorageManager.hxx | odysseus-oosql/ODYSSEUS-OOSQL | 49a5e32b6f73cea611dafdcc0e6767f80d4450ae | [
"BSD-3-Clause"
] | null | null | null | source/OOSQL/include/OOSQL_StorageManager.hxx | odysseus-oosql/ODYSSEUS-OOSQL | 49a5e32b6f73cea611dafdcc0e6767f80d4450ae | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... | 55.993096 | 294 | 0.740032 | [
"object",
"vector"
] |
c5b1e8f3dd36b5ed3eac63d96db3e512d74eb7a0 | 23,720 | cpp | C++ | src/graphics/GraphicsSystem.cpp | Faaux/DingoEngine | 05c8ae59816befaaa203e8d5310c4e17da89bb7b | [
"MIT"
] | null | null | null | src/graphics/GraphicsSystem.cpp | Faaux/DingoEngine | 05c8ae59816befaaa203e8d5310c4e17da89bb7b | [
"MIT"
] | null | null | null | src/graphics/GraphicsSystem.cpp | Faaux/DingoEngine | 05c8ae59816befaaa203e8d5310c4e17da89bb7b | [
"MIT"
] | null | null | null | /**
* @file GraphicsSystem.cpp
* @author Faaux (github.com/Faaux)
* @date 11 February 2018
*/
#include "GraphicsSystem.h"
#include "Font.h"
#include "Shader.h"
#include "imgui/DG_Imgui.h"
#include "imgui/imgui_impl_sdl_gl3.h"
#include "main.h"
#include "math/BoundingBox.h"
namespace DG::graphics
{
Debug... | 36.158537 | 100 | 0.62715 | [
"mesh",
"render",
"vector",
"model",
"transform"
] |
c5b2fd67760f64c8b82005e0bb4c91d6d3a042be | 443 | cpp | C++ | atcoder/abc/abc_142/b.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | atcoder/abc/abc_142/b.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | atcoder/abc/abc_142/b.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
int main()
{
int N;
int K;
// input
std::cin >> N >> K;
std::vector<int> v(N);
for (int i = 0; i < v.size(); i++)
{
int h;
std::cin >> h;
v[i] = h;
}
// solve
int cnt = 0;
for (int i = 0; i < v.size(); i++)
... | 13.424242 | 38 | 0.354402 | [
"vector"
] |
c5b3fe52c0d1a84a0bda6ee8e5cb6ce2f20dc1f9 | 13,688 | cxx | C++ | src/medVtkInria/vtkDataManagement/vtkMetaVolumeMesh.cxx | nebatmusic/medInria-public | 09000bd2f129692e42314a8eb1313d238603252e | [
"BSD-1-Clause"
] | 1 | 2020-11-16T13:55:45.000Z | 2020-11-16T13:55:45.000Z | src/medVtkInria/vtkDataManagement/vtkMetaVolumeMesh.cxx | nebatmusic/medInria-public | 09000bd2f129692e42314a8eb1313d238603252e | [
"BSD-1-Clause"
] | null | null | null | src/medVtkInria/vtkDataManagement/vtkMetaVolumeMesh.cxx | nebatmusic/medInria-public | 09000bd2f129692e42314a8eb1313d238603252e | [
"BSD-1-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2014. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE... | 23.64076 | 129 | 0.597385 | [
"mesh",
"object"
] |
c5b5d896bf1dfad429bb39987013ead891ebf8f7 | 26,782 | cpp | C++ | ref.neo/d3xp/gamesys/Class.cpp | Grimace1975/bclcontrib-scriptsharp | 8c1b05024404e9115be96a328c79a8555eca2e4a | [
"MIT"
] | null | null | null | ref.neo/d3xp/gamesys/Class.cpp | Grimace1975/bclcontrib-scriptsharp | 8c1b05024404e9115be96a328c79a8555eca2e4a | [
"MIT"
] | null | null | null | ref.neo/d3xp/gamesys/Class.cpp | Grimace1975/bclcontrib-scriptsharp | 8c1b05024404e9115be96a328c79a8555eca2e4a | [
"MIT"
] | null | null | null | /*
===========================================================================
Doom 3 GPL Source Code
Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
Doom 3 Source Code is free software: you can redistribute it and/or modify... | 25.053321 | 342 | 0.616309 | [
"object"
] |
c5bfb355392f6579073d7fe28f5982f93c21556b | 37,897 | cc | C++ | src/vendor/mariadb-10.6.7/storage/innobase/mtr/mtr0mtr.cc | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/innobase/mtr/mtr0mtr.cc | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/innobase/mtr/mtr0mtr.cc | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | 2 | 2022-02-27T14:00:01.000Z | 2022-03-31T06:24:22.000Z | /*****************************************************************************
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 2022, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public L... | 27.303314 | 79 | 0.676412 | [
"object"
] |
c5c7c7597e84154f57acd4d47d8af497725748fa | 9,981 | cpp | C++ | src/core/separatetabbar.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/core/separatetabbar.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/core/separatetabbar.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2010-2011 Oleg Linkin
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 25.526854 | 94 | 0.665965 | [
"object"
] |
c5cb4f05e17bf828bf708463c1938f372fef96b1 | 301 | cpp | C++ | Src/Graph/TransformUpdateVisitor.cpp | patrickuhlmann/OpenGL-Scenegraph | 92c8a6fcadc48b185cf27db00474693916bc4802 | [
"MIT"
] | 1 | 2018-12-19T04:34:05.000Z | 2018-12-19T04:34:05.000Z | Src/Graph/TransformUpdateVisitor.cpp | patrickuhlmann/OpenGL-Scenegraph | 92c8a6fcadc48b185cf27db00474693916bc4802 | [
"MIT"
] | null | null | null | Src/Graph/TransformUpdateVisitor.cpp | patrickuhlmann/OpenGL-Scenegraph | 92c8a6fcadc48b185cf27db00474693916bc4802 | [
"MIT"
] | null | null | null | #include "TransformUpdateVisitor.hpp"
TransformUpdateVisitor::TransformUpdateVisitor( TransformStrategy* s ) : _strategy(s) {}
TransformUpdateVisitor::~TransformUpdateVisitor() { delete _strategy; }
void TransformUpdateVisitor::VisitTransform( Transform* node )
{
_strategy->Apply( node );
}
| 27.363636 | 88 | 0.777409 | [
"transform"
] |
c5cc0871de814a536226e8eb11024fa4d3404966 | 1,310 | cpp | C++ | cpp/until20/usability_variables/main.cpp | lonelyhentai/workspace | 2a996af58d6b9be5d608ed040267398bcf72403b | [
"MIT"
] | 2 | 2021-04-26T16:37:38.000Z | 2022-03-15T01:26:19.000Z | cpp/until20/usability_variables/main.cpp | lonelyhentai/workspace | 2a996af58d6b9be5d608ed040267398bcf72403b | [
"MIT"
] | null | null | null | cpp/until20/usability_variables/main.cpp | lonelyhentai/workspace | 2a996af58d6b9be5d608ed040267398bcf72403b | [
"MIT"
] | 1 | 2022-03-15T01:26:23.000Z | 2022-03-15T01:26:23.000Z | #include <iostream>
#include <vector>
#include <algorithm>
#include <initializer_list>
#include <tuple>
class Foo
{
public:
int value_a;
int value_b;
Foo(int a, int b): value_a(a), value_b(b) {}
};
class MagicFoo
{
public:
std::vector<int> vec;
MagicFoo(std::initializer_list<int> list)
{
for(std::initializer_... | 20.46875 | 99 | 0.558015 | [
"vector"
] |
c5cd07a72596886a9846e8a42b72eb9ef35274ad | 1,743 | cpp | C++ | subset_sum_dp.cpp | kshitijanand36/Important-programs | 6b5867896d64ab16453248e0f8c1ca0ba54036e3 | [
"MIT"
] | null | null | null | subset_sum_dp.cpp | kshitijanand36/Important-programs | 6b5867896d64ab16453248e0f8c1ca0ba54036e3 | [
"MIT"
] | null | null | null | subset_sum_dp.cpp | kshitijanand36/Important-programs | 6b5867896d64ab16453248e0f8c1ca0ba54036e3 | [
"MIT"
] | null | null | null | // Created by Kshitij Anand NSIT
#include <bits/stdc++.h>
//#include <ext/numeric>
//using namespace __gnu_cxx;
using namespace std;
#define int long long
#define pb push_back
#define P pair<int,int>
#define F first
#define S second
#define vi vector<int>
#define vc vector<char>
#define vb vector<bo... | 19.153846 | 91 | 0.520941 | [
"vector"
] |
c5ce19f7ef28fe2781ec5a8a8afe3520501d7be9 | 1,478 | cpp | C++ | GoonRenderer/Sources/Context.cpp | Snowapril/GoonRenderer | dce6c0cc5d89384d6ec29e98e63d0813bd138572 | [
"MIT"
] | 1 | 2019-09-14T11:07:16.000Z | 2019-09-14T11:07:16.000Z | GoonRenderer/Sources/Context.cpp | Snowapril/GoonRenderer | dce6c0cc5d89384d6ec29e98e63d0813bd138572 | [
"MIT"
] | null | null | null | GoonRenderer/Sources/Context.cpp | Snowapril/GoonRenderer | dce6c0cc5d89384d6ec29e98e63d0813bd138572 | [
"MIT"
] | 2 | 2021-03-21T02:53:48.000Z | 2021-04-02T08:25:03.000Z | #include "Context.h"
#include "Object/VBO.h"
#include "Buffer.h"
#include <cassert>
namespace gr
{
Context::~Context() noexcept
{
for (int i = 0; i < staticVBOs.size(); ++i)
if ( staticVBOs[i]) delete staticVBOs[i];
for (int i = 0; i < dynamicVBOs.size(); ++i)
if (dynam... | 28.980392 | 119 | 0.575778 | [
"object",
"vector"
] |
c5dcb03544631f049c9e4f3bc7bb57b9707b1c70 | 391 | cpp | C++ | Basic/1049.cpp | GodLovesJonny/PAT-Solutions | b32d7de549c6b0ad8dc2e48d8a0e5cbf2241ed77 | [
"MIT"
] | 6 | 2019-03-13T10:07:25.000Z | 2019-09-29T14:10:11.000Z | Basic/1049.cpp | GodLovesJonny/PAT-Solutions | b32d7de549c6b0ad8dc2e48d8a0e5cbf2241ed77 | [
"MIT"
] | null | null | null | Basic/1049.cpp | GodLovesJonny/PAT-Solutions | b32d7de549c6b0ad8dc2e48d8a0e5cbf2241ed77 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int N;
int main() {
ios::sync_with_stdio(false);
int i;
double sum;
double pivot;
cin >> N;
for (i = 0; i < N; i++) {
cin >> pivot;
sum +=... | 13.964286 | 35 | 0.601023 | [
"vector"
] |
c5e231f6eb1f58980dd9519158317617333d035c | 91,130 | cpp | C++ | libvast/src/type.cpp | krionbsd/vast | c9fbc7230cac21886cf9d032e57b752276ba7ff7 | [
"BSD-3-Clause"
] | null | null | null | libvast/src/type.cpp | krionbsd/vast | c9fbc7230cac21886cf9d032e57b752276ba7ff7 | [
"BSD-3-Clause"
] | null | null | null | libvast/src/type.cpp | krionbsd/vast | c9fbc7230cac21886cf9d032e57b752276ba7ff7 | [
"BSD-3-Clause"
] | null | null | null | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2021 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#include "vast/type.hpp"
#include "vast/data.hpp"
#incl... | 36.306773 | 81 | 0.624536 | [
"vector",
"model",
"transform"
] |
c5e5b6cf94c3d193390161c953f2a6afa56bdfec | 11,301 | hxx | C++ | main/svx/source/inc/sdbdatacolumn.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/svx/source/inc/sdbdatacolumn.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/svx/source/inc/sdbdatacolumn.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 82.489051 | 357 | 0.669852 | [
"object"
] |
c5e71f0f71c6dedc1332cdcddf7d0947c64c0a8f | 21,285 | cpp | C++ | part_2_stdlib/chapter_10_genericalg.cpp | lsqyling/PrimerAdvanced | f6831e73b04fcaf590f1dd99271b3ac0c8660117 | [
"CC0-1.0"
] | 1 | 2019-05-18T05:22:20.000Z | 2019-05-18T05:22:20.000Z | part_2_stdlib/chapter_10_genericalg.cpp | lsqyling/PrimerAdvanced | f6831e73b04fcaf590f1dd99271b3ac0c8660117 | [
"CC0-1.0"
] | null | null | null | part_2_stdlib/chapter_10_genericalg.cpp | lsqyling/PrimerAdvanced | f6831e73b04fcaf590f1dd99271b3ac0c8660117 | [
"CC0-1.0"
] | null | null | null | //
// Created by shiqing on 19-4-27.
//
#include <algorithm>
#include <fstream>
#include <sstream>
#include "../common/CommonHeaders.h"
#include "../part_1_foundation/SalesData.h"
/*
* Exercise 10.1:
* The algorithm header defines a function named count
* that, like find, takes a pair of iterators and a value. co... | 31.959459 | 228 | 0.622786 | [
"vector"
] |
c5e9f19ea80170dc3ab5831b34ba7e920e78dffe | 6,335 | cpp | C++ | spoopy/tools/vole/source/illumestimators/common/statistics.cpp | rodrigobressan/PADify | 362db2b3a33793ac53f938e89f90a6ecdf778e89 | [
"MIT"
] | 12 | 2019-11-26T07:44:08.000Z | 2021-03-03T09:51:43.000Z | spoopy/tools/vole/source/illumestimators/common/statistics.cpp | rodrigobressan/PADify | 362db2b3a33793ac53f938e89f90a6ecdf778e89 | [
"MIT"
] | 13 | 2020-01-28T22:09:41.000Z | 2022-03-11T23:43:37.000Z | spoopy/tools/vole/source/illumestimators/common/statistics.cpp | rodrigobressan/PADify | 362db2b3a33793ac53f938e89f90a6ecdf778e89 | [
"MIT"
] | 5 | 2020-01-02T09:52:42.000Z | 2022-02-21T15:45:23.000Z | /*
Copyright(c) 2012 Christian Riess <christian.riess@cs.fau.de>
and Johannes Jordan <johannes.jordan@cs.fau.de>.
This file may be licensed under the terms of of the GNU General Public
License, version 3, as published by the Free Software Foundation. You can
find it here: http://www.gnu.org/licenses/gpl.html
*/
... | 21.329966 | 138 | 0.58674 | [
"vector"
] |
c5eca9eec44e18e81b42e56a5744c7f59fb8aa31 | 5,705 | hpp | C++ | adf/inc/anfilter.hpp | aemeltsev/adf | 4ed5134c0a440c6dd545f0f394c25a52514296cd | [
"MIT"
] | 1 | 2021-06-23T14:44:00.000Z | 2021-06-23T14:44:00.000Z | adf/inc/anfilter.hpp | aemeltsev/adf | 4ed5134c0a440c6dd545f0f394c25a52514296cd | [
"MIT"
] | null | null | null | adf/inc/anfilter.hpp | aemeltsev/adf | 4ed5134c0a440c6dd545f0f394c25a52514296cd | [
"MIT"
] | null | null | null | #ifndef ANALOGFILTER_H
#define ANALOGFILTER_H
#include "genfilter.hpp"
namespace adf {
/**
* @class AnalogFilter
*/
template<typename T=double>
class AnalogFilter
{
CalcCoeffs<T>* m_calccoeffs;
FiltParam<T> m_fparam;
FilterType m_ftype;
ApproxType m_atype;
std::size_t m_order = 0;
std::vect... | 29.25641 | 127 | 0.585977 | [
"vector"
] |
c5f0ab6ed8418aaed481ece7533c30759ab37680 | 1,650 | cpp | C++ | uva.onlinejudge.org/MatrixTranspose.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | 6 | 2016-09-10T03:16:34.000Z | 2020-04-07T14:45:32.000Z | uva.onlinejudge.org/MatrixTranspose.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | null | null | null | uva.onlinejudge.org/MatrixTranspose.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | 2 | 2018-08-11T20:55:35.000Z | 2020-01-15T23:23:11.000Z | /*
By: facug91
From: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1836
Name: Matrix Transpose
Number: 10895
Date: 18/07/2014
*/
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <cstring>
#include <cmath>
#include <a... | 20.121951 | 107 | 0.558788 | [
"vector"
] |
c5fbcae5c64d552646a24747de146ecedafb51fc | 6,392 | hpp | C++ | Sisyphe/interpreter/plugins/libdebugPlg/interpreter/src/IDebugBreakpointPtrInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/interpreter/plugins/libdebugPlg/interpreter/src/IDebugBreakpointPtrInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/interpreter/plugins/libdebugPlg/interpreter/src/IDebugBreakpointPtrInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | /*
* IDebugBreakpointPtrInterpreter.hpp
*
*
* @date 12-07-2020
* @author Teddy DIDE
* @version 1.00
* Debug Interpreter generated by gensources.
*/
#ifndef _IDEBUGBREAKPOINTPTR_INTERPRETER_H_
#define _IDEBUGBREAKPOINTPTR_INTERPRETER_H_
#include "config.hpp"
#include "Macros.hpp"
#include "Base.... | 49.169231 | 179 | 0.767209 | [
"object",
"vector"
] |
680e87b3aecc5ddd69d01638d6cdd2247562192a | 724 | cc | C++ | caffe2/utils/cast_test.cc | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 60,067 | 2017-01-18T17:21:31.000Z | 2022-03-31T21:37:45.000Z | caffe2/utils/cast_test.cc | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 66,955 | 2017-01-18T17:21:38.000Z | 2022-03-31T23:56:11.000Z | caffe2/utils/cast_test.cc | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 19,210 | 2017-01-18T17:45:04.000Z | 2022-03-31T23:51:56.000Z | #include <memory>
#include <vector>
#include <gtest/gtest.h>
#include "caffe2/utils/cast.h"
namespace caffe2 {
TEST(CastTest, GetCastDataType) {
auto castOp = [](std::string t) {
// Ensure lowercase.
std::transform(t.begin(), t.end(), t.begin(), ::tolower);
auto op = CreateOperatorDef("Cast", "", {}, ... | 18.1 | 63 | 0.560773 | [
"vector",
"transform"
] |
680f1b10d014d3c8c9b186661f57a860be12ba95 | 1,051 | cpp | C++ | practice/algorithms/dynamic-programming/lego-blocks/lego-blocks.cpp | zeyuanxy/HackerRank | 5194a4af780ece396501c215996685d1be529e73 | [
"MIT"
] | 4 | 2017-01-18T17:51:58.000Z | 2019-10-20T12:14:37.000Z | practice/algorithms/dynamic-programming/lego-blocks/lego-blocks.cpp | zeyuanxy/HackerRank | 5194a4af780ece396501c215996685d1be529e73 | [
"MIT"
] | null | null | null | practice/algorithms/dynamic-programming/lego-blocks/lego-blocks.cpp | zeyuanxy/HackerRank | 5194a4af780ece396501c215996685d1be529e73 | [
"MIT"
] | 8 | 2016-03-14T17:16:59.000Z | 2021-06-26T10:11:33.000Z | #include <iostream>
#include <vector>
using namespace std;
const long long mod = 1000000007;
long long power(long long base, int degree) {
long long ret = 1;
while (degree) {
if (degree % 2 == 1) {
ret = ret * base % mod;
}
base = base * base % mod;
degree /= 2;
... | 23.355556 | 52 | 0.381541 | [
"vector"
] |
680f988c2bf9b525c507cdc6a39d3024493de953 | 23,744 | cpp | C++ | src/ydlidar_node.cpp | airuchen/ydlidar_ros2 | 5b345510ba26130590a44d92b85e94eca29f58f1 | [
"Apache-2.0"
] | null | null | null | src/ydlidar_node.cpp | airuchen/ydlidar_ros2 | 5b345510ba26130590a44d92b85e94eca29f58f1 | [
"Apache-2.0"
] | null | null | null | src/ydlidar_node.cpp | airuchen/ydlidar_ros2 | 5b345510ba26130590a44d92b85e94eca29f58f1 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2018 ADLINK Technology, Inc.
Developer:
* Alan Chen (alan.chen@adlinktech.com
* HaoChih, LIN (haochih.lin@adlinktech.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | 31.658667 | 137 | 0.484712 | [
"vector",
"model"
] |
6813616d460d8c0b4b9072ff6697661fe579a684 | 2,113 | hpp | C++ | api/core/nodejs/NJSRandomNumberGenerator.hpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | api/core/nodejs/NJSRandomNumberGenerator.hpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | api/core/nodejs/NJSRandomNumberGenerator.hpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from random.djinni
#ifndef DJINNI_GENERATED_NJSRANDOMNUMBERGENERATOR_HPP
#define DJINNI_GENERATED_NJSRANDOMNUMBERGENERATOR_HPP
#include <cstdint>
#include <vector>
#include <nan.h>
#include <node.h>
#include "../../../core/src/api/RandomNumberG... | 23.477778 | 105 | 0.669664 | [
"object",
"vector"
] |
681a2de3f897c0454a4b7d382ec65984f7b116fd | 4,561 | cc | C++ | ros/src/computing/perception/localization/packages/orb_localizer/src/analysis/orbslam2_python.cc | izeki/Autoware | 21dcd18c4166331c290bd573733e0b881ca29ad7 | [
"BSD-3-Clause"
] | 64 | 2018-11-19T02:34:05.000Z | 2021-12-27T06:19:48.000Z | ros/src/computing/perception/localization/packages/orb_localizer/src/analysis/orbslam2_python.cc | izeki/Autoware | 21dcd18c4166331c290bd573733e0b881ca29ad7 | [
"BSD-3-Clause"
] | 1 | 2019-01-24T14:30:58.000Z | 2019-01-24T14:30:58.000Z | ros/src/computing/perception/localization/packages/orb_localizer/src/analysis/orbslam2_python.cc | izeki/Autoware | 21dcd18c4166331c290bd573733e0b881ca29ad7 | [
"BSD-3-Clause"
] | 34 | 2018-11-27T08:57:32.000Z | 2022-02-18T08:06:04.000Z | #include <boost/python.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include "Map.h"
#include "MapPoint.h"
#include "KeyFrame.h"
#include "KeyFrameDatabase.h"
#include "Converter.h"
#include <string>
#include <vector>
using namespace std;
using boost::python::vector_indexing_suite;
vector<... | 22.691542 | 68 | 0.671783 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.