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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
536f3880b91e5bbffba0069225e1094037533f00 | 169,421 | cxx | C++ | inetcore/mshtml/src/site/text/rclclptr.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/mshtml/src/site/text/rclclptr.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/mshtml/src/site/text/rclclptr.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+------------------------------------------------------------------------
//
// Class: CRecalcLinePtr implementation
//
// Synopsis: Special line pointer. Encapsulate the use of a temporary
// line array when building lines. This pointer automatically
// switches between the m... | 40.052246 | 149 | 0.472126 | [
"object"
] |
53735de9b9521892edfdfda69bbae27af9643e5f | 55,274 | cc | C++ | bloom_filter.cc | tlemane/HowDeSBT | d1dfb39c2784697f80c79451954c4cc45e1416eb | [
"MIT"
] | null | null | null | bloom_filter.cc | tlemane/HowDeSBT | d1dfb39c2784697f80c79451954c4cc45e1416eb | [
"MIT"
] | null | null | null | bloom_filter.cc | tlemane/HowDeSBT | d1dfb39c2784697f80c79451954c4cc45e1416eb | [
"MIT"
] | 1 | 2021-04-08T07:37:45.000Z | 2021-04-08T07:37:45.000Z | // bloom_filter.cc-- classes representing bloom filters.
//
// References:
//
// [1] Solomon, Brad, and Carl Kingsford. "Improved Search of Large
// Transcriptomic Sequencing Databases Using Split Sequence Bloom
// Trees." International Conference on Research in Computational
// Molecular Biolog... | 28.954426 | 124 | 0.646488 | [
"object",
"vector"
] |
5378ffca59ccaa6a4dcbed21673bd6ee9604e1f7 | 4,043 | cpp | C++ | src/Entities/Entity.cpp | Gegel85/GameJam2020 | c6f9f0fd83ddea9a069b1775b7e3de6d38e0d59d | [
"CC0-1.0"
] | 1 | 2020-01-31T19:17:42.000Z | 2020-01-31T19:17:42.000Z | src/Entities/Entity.cpp | Gegel85/GameJam2020 | c6f9f0fd83ddea9a069b1775b7e3de6d38e0d59d | [
"CC0-1.0"
] | null | null | null | src/Entities/Entity.cpp | Gegel85/GameJam2020 | c6f9f0fd83ddea9a069b1775b7e3de6d38e0d59d | [
"CC0-1.0"
] | 3 | 2020-01-31T19:18:38.000Z | 2020-02-15T13:24:16.000Z | //
// Created by andgel on 31/01/2020
//
#include <iostream>
#include "../Rendering/Screen.hpp"
#include "Entity.hpp"
#include "../Game.hpp"
namespace DungeonIntern
{
Entity::Entity(unsigned maxHealth, EntityConfig cfg, float maxSpeed, float x, float y, unsigned sx, unsigned sy, Orientation r) :
_entity(cfg.screen... | 25.111801 | 140 | 0.613159 | [
"render"
] |
53828f224ea3562f7587d8c1633664a3770edb42 | 952 | cpp | C++ | classwork/04_assign/main.cpp | acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-RJMcManamy | 9bc28fa87c5efebc512f71c61620875b690ce95b | [
"MIT"
] | null | null | null | classwork/04_assign/main.cpp | acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-RJMcManamy | 9bc28fa87c5efebc512f71c61620875b690ce95b | [
"MIT"
] | null | null | null | classwork/04_assign/main.cpp | acc-cosc-1337-spring-2019/acc-cosc-1337-spring-2019-RJMcManamy | 9bc28fa87c5efebc512f71c61620875b690ce95b | [
"MIT"
] | null | null | null | #include "sequence.h"
/*
Write code to create a vector of string names, add the values "John", "Mary", "Patty",
"Sam" to the vector, call the function display_vector and pass the names vector as
an argument, prompt user for a name to search for and a value to replace searched value with.
Afterward, call the update... | 32.827586 | 94 | 0.693277 | [
"vector"
] |
5388d44c6f5ad13fbe09a8d0aa825446fe4a4f26 | 13,150 | cc | C++ | content/browser/indexed_db/leveldb/leveldb_transaction.cc | MIPS/external-chromium_org | e31b3128a419654fd14003d6117caa8da32697e7 | [
"BSD-3-Clause"
] | 2 | 2018-11-24T07:58:44.000Z | 2019-02-22T21:02:46.000Z | content/browser/indexed_db/leveldb/leveldb_transaction.cc | carlosavignano/android_external_chromium_org | 2b5652f7889ccad0fbdb1d52b04bad4c23769547 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/indexed_db/leveldb/leveldb_transaction.cc | carlosavignano/android_external_chromium_org | 2b5652f7889ccad0fbdb1d52b04bad4c23769547 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2017-07-31T19:09:52.000Z | 2019-01-04T18:48:50.000Z | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/indexed_db/leveldb/leveldb_transaction.h"
#include "base/logging.h"
#include "content/browser/indexed_db/leveldb/leveldb_da... | 27.568134 | 80 | 0.678859 | [
"vector"
] |
538f6c406f08a53cfce4a158c33a0dbe9163898d | 2,676 | cpp | C++ | test/Group-test.cpp | jpunzel/jray | a78792356f8ffafdb41fd958f24b4bcebc165507 | [
"Unlicense"
] | null | null | null | test/Group-test.cpp | jpunzel/jray | a78792356f8ffafdb41fd958f24b4bcebc165507 | [
"Unlicense"
] | null | null | null | test/Group-test.cpp | jpunzel/jray | a78792356f8ffafdb41fd958f24b4bcebc165507 | [
"Unlicense"
] | null | null | null | #include "gtest/gtest.h"
#include "Tuple.h"
#include "Vector.h"
#include "Point.h"
#include "Ray.h"
#include "Sphere.h"
#include "Group.h"
#include <iostream>
#include <memory>
TEST(GroupTest, intersectEmptyGroup) {
auto g = Group::make();
Ray r = Ray(Point(0,0,0), Vector(0,0,1));
Iset xs;
bool hit = ... | 28.774194 | 75 | 0.608371 | [
"vector"
] |
5391cd7ad0a736ca8c4906a85b256ece973afeae | 5,707 | cpp | C++ | src/cg/data/model.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | 2 | 2019-04-02T14:19:01.000Z | 2021-05-27T13:42:20.000Z | src/cg/data/model.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | 4 | 2016-11-05T14:17:14.000Z | 2017-03-30T15:03:37.000Z | src/cg/data/model.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | null | null | null | #include "cg/data/model.h"
#include "cg/base/base.h"
#include "cg/data/model_assimp.h"
namespace {
using cg::data::Assimp_postprocess_flags;
using cg::data::Model_geometry_data;
using cg::data::Model_geometry_vertex;
using cg::data::vertex_attribs;
using cg::data::make_cg_vector;
template<vertex_at... | 30.848649 | 107 | 0.73734 | [
"mesh",
"model"
] |
5395011b94c89d1f93ec90f811b65f92d2878da6 | 6,418 | hpp | C++ | Noxis/Node.hpp | mr-linch/noxis | 7b8015bc36f478a81aafa3fb7ef84156ff642343 | [
"MIT"
] | null | null | null | Noxis/Node.hpp | mr-linch/noxis | 7b8015bc36f478a81aafa3fb7ef84156ff642343 | [
"MIT"
] | 3 | 2017-07-28T12:56:52.000Z | 2017-07-28T12:56:52.000Z | Noxis/Node.hpp | mr-linch/noxis | 7b8015bc36f478a81aafa3fb7ef84156ff642343 | [
"MIT"
] | null | null | null | #pragma once
#include "ns.hpp"
#include "Transform.hpp"
#include <list>
#include <string>
NOXIS_NS_BEGIN;
class Renderer;
class Node {
public:
/**
* @brief Create node
* @param name name of this node
* @param parent pointer to parent of this node in scene tree, if this is ro... | 22.758865 | 102 | 0.492365 | [
"render",
"object",
"transform"
] |
5395dbfa42b19f5e46f16b4294333acbdc0d86f2 | 8,672 | cpp | C++ | src/RequestHandler.cpp | nicledomaS/BinaryMapper | 8ad99c0d39d530b6409ccd6fa4340d6b7086eeb3 | [
"Apache-2.0"
] | null | null | null | src/RequestHandler.cpp | nicledomaS/BinaryMapper | 8ad99c0d39d530b6409ccd6fa4340d6b7086eeb3 | [
"Apache-2.0"
] | null | null | null | src/RequestHandler.cpp | nicledomaS/BinaryMapper | 8ad99c0d39d530b6409ccd6fa4340d6b7086eeb3 | [
"Apache-2.0"
] | null | null | null | #include "RequestHandler.h"
#include "BinaryMapper.h"
#include "BinaryObject.h"
#include "BinaryData.h"
#include "CallData.h"
#include "ExecType.h"
#include "cpprest/http_msg.h"
#include "cpprest/json.h"
#include <iostream>
#include <functional>
#include <map>
namespace
{
constexpr auto NameKey = "name";
constexpr... | 28.620462 | 97 | 0.613699 | [
"object",
"vector",
"transform"
] |
539d7189f79c2efac01658f1661dbde6ba239c2c | 12,147 | hpp | C++ | src/snake_publisher/include/SnakeGame.hpp | Desperationis/rviz-snake | f54cc3ce921ac9dbbf9b21f769cc57c4505c2149 | [
"MIT"
] | null | null | null | src/snake_publisher/include/SnakeGame.hpp | Desperationis/rviz-snake | f54cc3ce921ac9dbbf9b21f769cc57c4505c2149 | [
"MIT"
] | null | null | null | src/snake_publisher/include/SnakeGame.hpp | Desperationis/rviz-snake | f54cc3ce921ac9dbbf9b21f769cc57c4505c2149 | [
"MIT"
] | null | null | null | #ifndef SNAKEGAME_HPP
#define SNAKEGAME_HPP
#include <memory>
#include <thread>
#include <functional>
#include <chrono>
#include <vector>
#include <ncurses.h>
#include <csignal>
#include <list>
#include "rclcpp/rclcpp.hpp"
#include "rclcpp/executor.hpp"
#include "visualization_msgs/msg/marker.hpp"
#include "geometry_m... | 24.993827 | 141 | 0.678439 | [
"render",
"vector",
"3d"
] |
539f0170728684714504b335b9523558d7144fff | 13,547 | hpp | C++ | src/gc/identity.hpp | Gwenio/synafis | 37176e965318ae555fdc542fc87ffb79866f770f | [
"ISC"
] | 1 | 2019-01-27T14:44:50.000Z | 2019-01-27T14:44:50.000Z | src/gc/identity.hpp | Gwenio/synafis | 37176e965318ae555fdc542fc87ffb79866f770f | [
"ISC"
] | null | null | null | src/gc/identity.hpp | Gwenio/synafis | 37176e965318ae555fdc542fc87ffb79866f770f | [
"ISC"
] | null | null | null |
/*
ISC License (ISC)
Copyright 2018-2019 Adam Armstrong
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above copyright
notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DI... | 35.095855 | 98 | 0.704879 | [
"object"
] |
53a8887b846b431b982f1314a50d3c265c82cda1 | 4,747 | cpp | C++ | ICPC/Repechaje2021/c.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | ICPC/Repechaje2021/c.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | ICPC/Repechaje2021/c.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string>
#include <vector>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <stack>
#include <utility>
#include <queue>
#include <set>
#include <iomanip>
using namespace std;
typedef int64_t ll;
typedef pair<int,ll> pil... | 22.49763 | 69 | 0.492943 | [
"vector"
] |
53c220ec9333c111cc94a0be7fb4b9a2dec62617 | 8,481 | cpp | C++ | src/qt/qtwebkit/Source/WebKit2/UIProcess/efl/TextCheckerClientEfl.cpp | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 1 | 2015-05-27T13:52:20.000Z | 2015-05-27T13:52:20.000Z | src/qt/qtwebkit/Source/WebKit2/UIProcess/efl/TextCheckerClientEfl.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtwebkit/Source/WebKit2/UIProcess/efl/TextCheckerClientEfl.cpp | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 1 | 2017-03-19T13:03:23.000Z | 2017-03-19T13:03:23.000Z | /*
* Copyright (C) 2013 Samsung Electronics
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the followin... | 39.816901 | 170 | 0.780568 | [
"vector"
] |
53cb4bf6b2ad93fe904c281871fcedfc09a794df | 1,380 | cpp | C++ | essential/udacity-cpp-nano/Chapters/3_Object_Oriented_Programming/2_14_Encapsulation/main.cpp | disono/cp-cheat-sheet | 02edee3d822f56770e1a1a3cc4db6be3691a7a38 | [
"MIT"
] | null | null | null | essential/udacity-cpp-nano/Chapters/3_Object_Oriented_Programming/2_14_Encapsulation/main.cpp | disono/cp-cheat-sheet | 02edee3d822f56770e1a1a3cc4db6be3691a7a38 | [
"MIT"
] | null | null | null | essential/udacity-cpp-nano/Chapters/3_Object_Oriented_Programming/2_14_Encapsulation/main.cpp | disono/cp-cheat-sheet | 02edee3d822f56770e1a1a3cc4db6be3691a7a38 | [
"MIT"
] | null | null | null | #include <cassert>
class Date
{
public:
Date(int day, int month, int year);
int Day() const { return day_; }
void Day(int day);
int Month() const { return month_; }
void Month(int month);
int Year() const { return year_; }
void Year(int year);
private:
int day_{1};
int month_{1};
... | 19.166667 | 118 | 0.544928 | [
"object"
] |
53d37651d29f7e8bdde070f97ba94a527e10bcae | 8,725 | cpp | C++ | src/qt/pivx/moc_coldstakingwidget.cpp | PlutusCapital/core | 9a02ab820245afdb2b3ab4bea621a78bfef37590 | [
"MIT"
] | null | null | null | src/qt/pivx/moc_coldstakingwidget.cpp | PlutusCapital/core | 9a02ab820245afdb2b3ab4bea621a78bfef37590 | [
"MIT"
] | null | null | null | src/qt/pivx/moc_coldstakingwidget.cpp | PlutusCapital/core | 9a02ab820245afdb2b3ab4bea621a78bfef37590 | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'coldstakingwidget.h'
**
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "qt/pivx/coldstakingwidget.... | 39.840183 | 173 | 0.625444 | [
"object"
] |
53d69d1a00eba88b532d8b9109df7e437e61d8cf | 1,057 | cpp | C++ | tests/answer_bonus_2_b_smorse_main.cpp | ThomasPDye/smorse | 9714539a1606974af0870e7cf03b98385ba14106 | [
"MIT"
] | null | null | null | tests/answer_bonus_2_b_smorse_main.cpp | ThomasPDye/smorse | 9714539a1606974af0870e7cf03b98385ba14106 | [
"MIT"
] | null | null | null | tests/answer_bonus_2_b_smorse_main.cpp | ThomasPDye/smorse | 9714539a1606974af0870e7cf03b98385ba14106 | [
"MIT"
] | null | null | null | #include "answer_bonus_2_b_smorse.hpp"
#include <iostream>
int main(int argc, char **argv)
{
int result = -1;
if (argc == 4)
{
std::string ifname(argv[1]);
std::string charstr(argv[2]);
std::string countstr(argv[3]);
if (charstr.size() == 1ul)
{
char c = ... | 34.096774 | 129 | 0.486282 | [
"vector"
] |
53dd3d3142427b33e3cc8e7db2f22e11de9554af | 6,049 | hpp | C++ | include/wui/control/list.hpp | ud84/wui | 354260df9882c3e582c2a337a4bbb8be6e030e13 | [
"BSL-1.0"
] | 1 | 2021-12-18T16:38:30.000Z | 2021-12-18T16:38:30.000Z | include/wui/control/list.hpp | ud84/wui | 354260df9882c3e582c2a337a4bbb8be6e030e13 | [
"BSL-1.0"
] | null | null | null | include/wui/control/list.hpp | ud84/wui | 354260df9882c3e582c2a337a4bbb8be6e030e13 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2021-2022 Anton Golovkov (udattsk at gmail dot com)
//
// 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)
//
// Official repository: https://github.com/ud84/wui
//
#pragma once
#include <wui/contr... | 28.942584 | 181 | 0.709539 | [
"vector"
] |
53deede37665e539bbbadf47c8fbed17422c50c7 | 3,626 | hpp | C++ | Core/BufferMgr.hpp | Calvin-Ruiz/EntityCore | 04361a2597c71078ac676067a71cfc1a005c2ff8 | [
"MIT"
] | 4 | 2021-12-20T16:33:40.000Z | 2022-03-08T12:09:07.000Z | Core/BufferMgr.hpp | Calvin-Ruiz/EntityCore | 04361a2597c71078ac676067a71cfc1a005c2ff8 | [
"MIT"
] | null | null | null | Core/BufferMgr.hpp | Calvin-Ruiz/EntityCore | 04361a2597c71078ac676067a71cfc1a005c2ff8 | [
"MIT"
] | null | null | null | #ifndef BUFFER_MGR_HPP
#define BUFFER_MGR_HPP
#include <vulkan/vulkan.h>
#include "EntityCore/SubMemory.hpp"
#include "EntityCore/SubBuffer.hpp"
#include <vector>
#include <memory>
#include <list>
#include <thread>
#include <mutex>
class VulkanMgr;
/**
* \brief Manage SubBuffer allocation like MemoryManager
* Th... | 44.219512 | 231 | 0.733591 | [
"vector"
] |
53f5e89d542b2da2c45ba1cf1393e5bf6abdb8d9 | 8,477 | cpp | C++ | src/files/files_fat32.cpp | nitz/PowerOverwhelmiing | a2fcd1d1ce22af7022144576d93f24c0da301381 | [
"0BSD"
] | 24 | 2020-09-28T17:11:52.000Z | 2022-02-11T04:33:33.000Z | src/files/files_fat32.cpp | nitz/PowerOverwhelmiing | a2fcd1d1ce22af7022144576d93f24c0da301381 | [
"0BSD"
] | 100 | 2020-10-11T20:55:39.000Z | 2021-12-23T15:55:13.000Z | src/files/files_fat32.cpp | nitz/PowerOverwhelmiing | a2fcd1d1ce22af7022144576d93f24c0da301381 | [
"0BSD"
] | 5 | 2020-09-28T16:19:02.000Z | 2021-09-09T23:18:12.000Z | #include "files_fat32.h"
#include "diskio.h"
#include "diskio_blkdev.h"
#include "cwalk.h"
#include "global/global_data.h"
#include "files_log_module.ii"
namespace files
{
namespace
{
constexpr const char* DriveRoot = "";
constexpr uint8_t MountOptionDelayed = 0;
constexpr uint8_t MountOptionImmediate = 1;
... | 21.034739 | 133 | 0.651882 | [
"geometry"
] |
d87ea9f9affc66378d22ed571d67c297aaa10c4f | 6,042 | cpp | C++ | iecp/src/v20210914/model/DescribeEdgeOperationLogsRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | iecp/src/v20210914/model/DescribeEdgeOperationLogsRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | iecp/src/v20210914/model/DescribeEdgeOperationLogsRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 26.5 | 96 | 0.716816 | [
"vector",
"model"
] |
d88236d71433ebfff3dec3150e87b407840e1468 | 15,443 | cpp | C++ | src/String.cpp | gmalysa/gui2d | 0675d396b3f1e28073b77903026c3c797cd445b9 | [
"BSD-3-Clause"
] | null | null | null | src/String.cpp | gmalysa/gui2d | 0675d396b3f1e28073b77903026c3c797cd445b9 | [
"BSD-3-Clause"
] | null | null | null | src/String.cpp | gmalysa/gui2d | 0675d396b3f1e28073b77903026c3c797cd445b9 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file 2dgui/String.cpp
* @todo License/copyright statement
*/
// Standard headers
// None
// Project definitions
#include "2dgui/String.h"
#include "2dgui/Manager.h"
/**
* This is the only constructor that should be used, to configure the necessary
* rendering information immediately.
* @p... | 29.028195 | 128 | 0.685877 | [
"render",
"object"
] |
d8948e753026e61bdbf2732686d37052949ba6c0 | 3,515 | cxx | C++ | examples/force_integration.cxx | LinjianMa/ctf | 06a50b6ea4be2eeb7f3d6c43f05a0befae94f08e | [
"BSD-2-Clause"
] | 108 | 2018-01-01T21:29:15.000Z | 2022-02-24T17:51:15.000Z | examples/force_integration.cxx | LinjianMa/ctf | 06a50b6ea4be2eeb7f3d6c43f05a0befae94f08e | [
"BSD-2-Clause"
] | 91 | 2017-12-27T04:28:09.000Z | 2022-03-10T09:14:43.000Z | examples/force_integration.cxx | LinjianMa/ctf | 06a50b6ea4be2eeb7f3d6c43f05a0befae94f08e | [
"BSD-2-Clause"
] | 45 | 2017-12-26T21:15:21.000Z | 2022-02-10T11:16:40.000Z | /*Copyright (c) 2011, Edgar Solomonik, all rights reserved.*/
/** \addtogroup examples
* @{
* \defgroup force_integration force_integration
* @{
* \brief tests custom element-wise transform by doing force integration
*/
#include <ctf.hpp>
#include "moldynamics.h"
using namespace CTF;
int force_integrati... | 22.677419 | 130 | 0.580654 | [
"vector",
"transform"
] |
d894b9aabd3f793a23929929c30cde8a44d7eb47 | 25,678 | hpp | C++ | fprime-sphinx-drivers/SPWManager/test/ut/GTestBase.hpp | Joshua-Anderson/fprime-sphinx-drivers | 28334b667c31a796c69e0f7005e4a9c0545e65fe | [
"Apache-2.0"
] | 1 | 2021-02-22T12:34:25.000Z | 2021-02-22T12:34:25.000Z | fprime-sphinx-drivers/SPWManager/test/ut/GTestBase.hpp | Joshua-Anderson/fprime-sphinx-drivers | 28334b667c31a796c69e0f7005e4a9c0545e65fe | [
"Apache-2.0"
] | 2 | 2021-08-11T17:14:54.000Z | 2021-09-09T22:31:19.000Z | fprime-sphinx-drivers/SPWManager/test/ut/GTestBase.hpp | Joshua-Anderson/fprime-sphinx-drivers | 28334b667c31a796c69e0f7005e4a9c0545e65fe | [
"Apache-2.0"
] | 1 | 2021-05-19T02:04:10.000Z | 2021-05-19T02:04:10.000Z | // ======================================================================
// \title SPWManager/test/ut/GTestBase.hpp
// \author Auto-generated
// \brief hpp file for SPWManager component Google Test harness base class
//
// \copyright
// Copyright 2009-2015, by the California Institute of Technology.
// ALL RIGHTS RE... | 42.725458 | 137 | 0.542721 | [
"object"
] |
d8990453c5ddb24c89edc3161f627d8bfe48d957 | 787 | cpp | C++ | Algorithms/Strings/Gemstones/main.cpp | ugurcan-sonmez-95/HackerRank_Problems | 187d83422128228c241f279096386df5493d539d | [
"MIT"
] | null | null | null | Algorithms/Strings/Gemstones/main.cpp | ugurcan-sonmez-95/HackerRank_Problems | 187d83422128228c241f279096386df5493d539d | [
"MIT"
] | null | null | null | Algorithms/Strings/Gemstones/main.cpp | ugurcan-sonmez-95/HackerRank_Problems | 187d83422128228c241f279096386df5493d539d | [
"MIT"
] | null | null | null | // Gemstones - Solution
#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
void gemstones(std::vector<std::string> &str_vec) {
std::map<char, int> char_dict;
for (auto &str: str_vec) {
std::sort(str.begin(), str.end());
for (int i{}; i < str.size(); i++)
if (... | 22.485714 | 51 | 0.514612 | [
"vector"
] |
d89dbd08e63438520055a947f93859c3c53ca7c6 | 42,362 | cc | C++ | orly/indy/disk/merge_data_file.test.cc | orlyatomics/orly | d413f999f51a8e553832dab4e3baa7ca68928840 | [
"Apache-2.0"
] | 69 | 2015-01-06T05:12:57.000Z | 2021-11-06T20:34:10.000Z | orly/indy/disk/merge_data_file.test.cc | waderly/orly | 9d7660ea9d07591f8cc6b1b92d8e6c3b8b78eeee | [
"Apache-2.0"
] | 5 | 2015-07-09T02:21:50.000Z | 2021-08-13T11:10:26.000Z | orly/indy/disk/merge_data_file.test.cc | waderly/orly | 9d7660ea9d07591f8cc6b1b92d8e6c3b8b78eeee | [
"Apache-2.0"
] | 15 | 2015-01-23T13:34:05.000Z | 2020-06-15T16:46:50.000Z | /* <orly/indy/disk/merge_data_file.test.cc>
Unit test for <orly/indy/disk/merge_data_file.h>.
Copyright 2010-2014 OrlyAtomics, 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
... | 75.511586 | 364 | 0.659837 | [
"vector"
] |
d89f4076469e5b30c25605ed656efa33fee91a37 | 2,288 | cc | C++ | tests/test_json.cc | cisco/goFish | cc890b96e341d15b72fd6c95d9ce2ff22011c15e | [
"BSD-2-Clause"
] | 10 | 2019-05-20T23:41:57.000Z | 2021-11-08T11:18:07.000Z | tests/test_json.cc | cisco/goFish | cc890b96e341d15b72fd6c95d9ce2ff22011c15e | [
"BSD-2-Clause"
] | null | null | null | tests/test_json.cc | cisco/goFish | cc890b96e341d15b72fd6c95d9ce2ff22011c15e | [
"BSD-2-Clause"
] | 3 | 2020-10-02T14:07:37.000Z | 2021-03-16T12:11:59.000Z | #include "test_json.h"
void JSONTest::setUp()
{
_json = std::make_unique<JSON>("");
}
void JSONTest::TestConstructors()
{
{
std::string name = "";
auto j = new JSON(name);
_json.reset(j);
CPPUNIT_ASSERT_EQUAL(_json->GetName(), name);
CPPUNIT_ASSERT_EQUAL(_json->GetJSON... | 27.902439 | 125 | 0.555944 | [
"object"
] |
d8a56112b4fc23a2e94d533d20b6c07939560d7c | 1,452 | cpp | C++ | tests/test_linalg_transposed.cpp | stigrs/scilib | c49f1f882bf2031a4de537e0f5701b2648af181f | [
"MIT"
] | null | null | null | tests/test_linalg_transposed.cpp | stigrs/scilib | c49f1f882bf2031a4de537e0f5701b2648af181f | [
"MIT"
] | null | null | null | tests/test_linalg_transposed.cpp | stigrs/scilib | c49f1f882bf2031a4de537e0f5701b2648af181f | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Stig Rune Sellevag
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.
#include <scilib/mdarray.h>
#include <scilib/linalg.h>
#include <gtest/gtest.h>
TEST(TestMatrix, Te... | 24.2 | 78 | 0.513774 | [
"vector"
] |
d8a9852b6cca6a8e6cee7a10070b9e849d3d4613 | 4,089 | cc | C++ | src/main.cc | DanShaders/cpp-protoc-initializers | b262c68df15cce43ba9ddf0726311f3d17548de7 | [
"MIT"
] | null | null | null | src/main.cc | DanShaders/cpp-protoc-initializers | b262c68df15cce43ba9ddf0726311f3d17548de7 | [
"MIT"
] | null | null | null | src/main.cc | DanShaders/cpp-protoc-initializers | b262c68df15cce43ba9ddf0726311f3d17548de7 | [
"MIT"
] | null | null | null | #include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/cpp/cpp_generator.h>
#include <google/protobuf/compiler/plugin.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/io/printer.h>
#include <vector>
using namespace google::protobuf;
class Generator : public compile... | 31.697674 | 90 | 0.642944 | [
"vector"
] |
d8b850433842ea64cdf7d7a1dda025a04bd91005 | 4,914 | cpp | C++ | src/geometry/sphere.cpp | Twinklebear/tray | eeb6dc930a3f81bb2abd74a41a4fb409a0e0865b | [
"MIT"
] | 61 | 2015-01-01T10:58:21.000Z | 2022-01-05T14:22:15.000Z | src/geometry/sphere.cpp | Twinklebear/tray | eeb6dc930a3f81bb2abd74a41a4fb409a0e0865b | [
"MIT"
] | null | null | null | src/geometry/sphere.cpp | Twinklebear/tray | eeb6dc930a3f81bb2abd74a41a4fb409a0e0865b | [
"MIT"
] | 3 | 2016-04-11T19:07:47.000Z | 2018-05-31T12:40:50.000Z | #include "monte_carlo/util.h"
#include "linalg/util.h"
#include "linalg/ray.h"
#include "linalg/vector.h"
#include "geometry/sphere.h"
Sphere::Sphere(float radius) : radius(radius){}
bool Sphere::intersect(Ray &ray, DifferentialGeometry &diff_geom) const {
//Compute quadratic sphere coefficients
Vector ray_orig{ray.... | 37.227273 | 103 | 0.692308 | [
"geometry",
"vector",
"transform",
"solid"
] |
d8c5d980e262c3b278cf84be4273628a27cbbb03 | 1,596 | cpp | C++ | OverlordEngine/Components/ColliderComponent.cpp | Zakatos/Rift-Traveller | cbce326e4c508f9342a4fa9904bfad2a9fcabb92 | [
"MIT"
] | null | null | null | OverlordEngine/Components/ColliderComponent.cpp | Zakatos/Rift-Traveller | cbce326e4c508f9342a4fa9904bfad2a9fcabb92 | [
"MIT"
] | null | null | null | OverlordEngine/Components/ColliderComponent.cpp | Zakatos/Rift-Traveller | cbce326e4c508f9342a4fa9904bfad2a9fcabb92 | [
"MIT"
] | null | null | null | //Precompiled Header [ALWAYS ON TOP IN CPP]
#include "stdafx.h"
#include "ColliderComponent.h"
#include "RigidBodyComponent.h"
#include "../Base/GeneralStructs.h"
#include "../Diagnostics/Logger.h"
#include "../Scenegraph/GameObject.h"
ColliderComponent::ColliderComponent(std::shared_ptr<PxGeometry> & geometry, const... | 23.130435 | 134 | 0.766917 | [
"geometry",
"object",
"shape"
] |
d8ccb19da5d9fbd8cc64728ce98c5d6f6b635fe1 | 3,618 | cpp | C++ | aws-cpp-sdk-monitoring/source/model/GetInsightRuleReportResult.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-monitoring/source/model/GetInsightRuleReportResult.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-monitoring/source/model/GetInsightRuleReportResult.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/monitoring/model/GetInsightRuleReportResult.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include... | 35.470588 | 173 | 0.736042 | [
"model"
] |
d8d2b0a90488da973e27625fcca72ef001e987b7 | 4,632 | hh | C++ | component/oai-ausf/src/common/unicode/normalizer.hh | kukkalli/oai-cn5g-fed | 15634fac935ac8671b61654bdf75bf8af07d3c3a | [
"Apache-2.0"
] | null | null | null | component/oai-ausf/src/common/unicode/normalizer.hh | kukkalli/oai-cn5g-fed | 15634fac935ac8671b61654bdf75bf8af07d3c3a | [
"Apache-2.0"
] | null | null | null | component/oai-ausf/src/common/unicode/normalizer.hh | kukkalli/oai-cn5g-fed | 15634fac935ac8671b61654bdf75bf8af07d3c3a | [
"Apache-2.0"
] | null | null | null | #ifndef UNF_NORMALIZER_HH
#define UNF_NORMALIZER_HH
#include <vector>
#include <string>
#include <algorithm>
#include <cstring>
#include "searcher.hh"
#include "char_stream.hh"
#include "table.hh"
#include "util.hh"
namespace UNF {
class Normalizer {
public:
enum Form { FORM_NFD, FORM_NFC, FORM_NFKD, FORM_NFKC };
... | 30.27451 | 78 | 0.64918 | [
"vector"
] |
d8d3cfdac364cb7dc6c923f6393ae3b50104476b | 2,551 | cpp | C++ | peer/listener_thread.cpp | jhengyilin/chatNT | 7287a90bf2270d12584157285dd160b2e55dd0b3 | [
"MIT"
] | 6 | 2020-12-17T09:11:30.000Z | 2021-04-16T08:29:33.000Z | peer/listener_thread.cpp | jhengyilin/chatNT | 7287a90bf2270d12584157285dd160b2e55dd0b3 | [
"MIT"
] | null | null | null | peer/listener_thread.cpp | jhengyilin/chatNT | 7287a90bf2270d12584157285dd160b2e55dd0b3 | [
"MIT"
] | 2 | 2020-12-29T07:44:45.000Z | 2020-12-29T09:37:01.000Z | #include "listener_thread.h"
#include "logger.h"
#include <cstring>
#include <thread>
#include <unistd.h>
#define LISTENER_NUM 10
#ifdef __linux__
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#elif _WIN32
#include <WinSock2.h>
typedef int socklen_t;
#endif
using namespace std;
//constructo... | 27.728261 | 163 | 0.732262 | [
"vector"
] |
d8e26b538ed11fca2600dbd03dae48912160165e | 5,498 | cpp | C++ | auxiliary/renderer/OpenGL/GLSimpleMeshRenderer.cpp | billhj/Etoile2015 | c9311fc2a901cd60b2aeead5462ca8d6f7c5aa3a | [
"Apache-2.0"
] | null | null | null | auxiliary/renderer/OpenGL/GLSimpleMeshRenderer.cpp | billhj/Etoile2015 | c9311fc2a901cd60b2aeead5462ca8d6f7c5aa3a | [
"Apache-2.0"
] | null | null | null | auxiliary/renderer/OpenGL/GLSimpleMeshRenderer.cpp | billhj/Etoile2015 | c9311fc2a901cd60b2aeead5462ca8d6f7c5aa3a | [
"Apache-2.0"
] | null | null | null | /**
* Copyright(C) 2009-2012
* @author Jing HUANG
* @file GLSimpleMeshRenderer.cpp
* @brief
* @date 1/2/2011
*/
#include "GLSimpleMeshRenderer.h"
#include "glhead.h"
#include "geometry/TextureManager.h"
#include "geometry/Texture.h"
#include "geometry/ModelTransform.h"
#include "geometry/Entity.h"
na... | 26.180952 | 119 | 0.68825 | [
"mesh",
"geometry"
] |
d8f04d0d9d3ab00e590aefff7051d94c5e182f94 | 4,284 | cpp | C++ | Feature_construction/2_resi_pattern_detection/deadloc_detect/loc_arr.cpp | HPCCS/PARIS | a245b3c9ea201a098329b1d2c52c825286a4199a | [
"MIT"
] | null | null | null | Feature_construction/2_resi_pattern_detection/deadloc_detect/loc_arr.cpp | HPCCS/PARIS | a245b3c9ea201a098329b1d2c52c825286a4199a | [
"MIT"
] | null | null | null | Feature_construction/2_resi_pattern_detection/deadloc_detect/loc_arr.cpp | HPCCS/PARIS | a245b3c9ea201a098329b1d2c52c825286a4199a | [
"MIT"
] | null | null | null | /* split dynamic trace into batches.
* For each batch, there is a location
* array, in which there is no copied
* locations
*/
#include "loc_arr.h"
#include "omp.h"
/*/ if elem in vec
template <class T>
bool isInOrNot(vector<T> &vec, T elem){
int sz = vec.size();
for(int i=0;i<sz;i++){
if(vec[i]==elem){
... | 22.909091 | 76 | 0.552754 | [
"vector"
] |
d8f7234543efcbc6d874438c0240f9ab89cc753e | 147,439 | cc | C++ | vasptest.cc | idaholab/hpcswtest | 1f976b913231a7d3259a8a10a7af58af3929c5b2 | [
"Apache-2.0"
] | 6 | 2017-08-15T19:46:32.000Z | 2022-02-16T01:32:49.000Z | vasptest.cc | idaholab/hpcswtest | 1f976b913231a7d3259a8a10a7af58af3929c5b2 | [
"Apache-2.0"
] | 5 | 2017-08-15T19:45:28.000Z | 2021-12-10T21:29:38.000Z | vasptest.cc | idaholab/hpcswtest | 1f976b913231a7d3259a8a10a7af58af3929c5b2 | [
"Apache-2.0"
] | 3 | 2017-08-15T15:36:22.000Z | 2021-12-04T16:22:37.000Z | /*
Copyright 2017 Battelle Energy Alliance, 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... | 85.521462 | 177 | 0.705939 | [
"object",
"vector"
] |
2b0345d729789a7c6315e8d8e5c9f427eba97770 | 17,055 | cc | C++ | test/tensor.cc | fengwang/ceras | 15d10e8909ded656f45201aecc45b8eefe961b2d | [
"BSD-3-Clause"
] | 65 | 2020-12-07T01:15:41.000Z | 2022-03-28T01:17:33.000Z | test/tensor.cc | fengwang/ceras | 15d10e8909ded656f45201aecc45b8eefe961b2d | [
"BSD-3-Clause"
] | 1 | 2021-04-08T13:20:39.000Z | 2021-04-09T00:37:02.000Z | test/tensor.cc | fengwang/ceras | 15d10e8909ded656f45201aecc45b8eefe961b2d | [
"BSD-3-Clause"
] | 7 | 2021-01-07T08:52:39.000Z | 2022-03-08T13:04:37.000Z | #include "../include/tensor.hpp"
#include "../include/utils/fmt.hpp"
#include <iostream>
int main()
{
ceras::random_generator.seed( 123 );
ceras::tensor<double> A{ {2, 2}, {1.0, 2.0, 3.0, 1.0} };
std::cout << "A = \n" << A << std::endl;
std::cout << "A*A = \n" << A*A << std::endl;
ceras::tensor<d... | 39.941452 | 109 | 0.428496 | [
"shape",
"vector"
] |
2b15082b47ddb4f8be72a6eb3079843a31153bfe | 1,671 | hpp | C++ | legacy/galaxy/resource/FontBook.hpp | reworks/rework | 90508252c9a4c77e45a38e7ce63cfd99f533f42b | [
"Apache-2.0"
] | 19 | 2020-02-02T16:36:46.000Z | 2021-12-25T07:02:28.000Z | legacy/galaxy/resource/FontBook.hpp | reworks/rework | 90508252c9a4c77e45a38e7ce63cfd99f533f42b | [
"Apache-2.0"
] | 103 | 2020-10-13T09:03:42.000Z | 2022-03-26T03:41:50.000Z | legacy/galaxy/resource/FontBook.hpp | reworks/rework | 90508252c9a4c77e45a38e7ce63cfd99f533f42b | [
"Apache-2.0"
] | 5 | 2020-03-13T06:14:37.000Z | 2021-12-12T02:13:46.000Z | ///
/// FontBook.hpp
/// galaxy
///
/// Refer to LICENSE.txt for more details.
///
#ifndef GALAXY_RESOURCE_FONTBOOK_HPP_
#define GALAXY_RESOURCE_FONTBOOK_HPP_
#include "galaxy/fs/Serializable.hpp"
#include "galaxy/graphics/text/Font.hpp"
#include "galaxy/resource/ResourceCache.hpp"
namespace galaxy
{
namespace res
... | 18.163043 | 86 | 0.605625 | [
"object"
] |
1a7878395f0cb031f010677ab3212a24e9be3dc7 | 1,887 | cpp | C++ | src/texture.cpp | FrMarchand/pbr-material-viewer | cc665a10f036dc13b6fd6c94c48d5b8ddc3596a4 | [
"MIT"
] | 5 | 2019-08-07T09:48:04.000Z | 2021-08-12T07:31:51.000Z | src/texture.cpp | FrMarchand/pbr-material-viewer | cc665a10f036dc13b6fd6c94c48d5b8ddc3596a4 | [
"MIT"
] | null | null | null | src/texture.cpp | FrMarchand/pbr-material-viewer | cc665a10f036dc13b6fd6c94c48d5b8ddc3596a4 | [
"MIT"
] | 4 | 2020-03-19T04:30:55.000Z | 2021-08-08T01:28:28.000Z | #include "texture.h"
#include <stb_image.h>
#include <iostream>
#include <vector>
#include <cmrc\cmrc.hpp>
CMRC_DECLARE(resources);
Texture::Texture()
{
glGenTextures(1, &mID);
}
Texture::Texture(const GLchar* texturePath, bool srgb)
{
glGenTextures(1, &mID);
loadTexture(texturePath, srgb);
}
Texture::~Texture()
... | 23.886076 | 112 | 0.732909 | [
"vector"
] |
1a799b585e9a9fbf481ab70eb15628cbb17da394 | 1,706 | cpp | C++ | sem_2/course_algorithms/contest_5/E.cpp | KingCakeTheFruity/mipt | e32cfe5e53236cdd2933d8b666ca995508300f0f | [
"MIT"
] | null | null | null | sem_2/course_algorithms/contest_5/E.cpp | KingCakeTheFruity/mipt | e32cfe5e53236cdd2933d8b666ca995508300f0f | [
"MIT"
] | null | null | null | sem_2/course_algorithms/contest_5/E.cpp | KingCakeTheFruity/mipt | e32cfe5e53236cdd2933d8b666ca995508300f0f | [
"MIT"
] | null | null | null | /*
Сложность задачи заключается только в том, чтобы ввести данные. В остальном все как обычно - из ненас. L запускаем дфс
по ориентированным ребрам. Делаем вид, что сами нашли парсоч
*/
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <set>
using std::vector;
using std::set;
void dfs(const vector<set... | 17.232323 | 118 | 0.523447 | [
"vector"
] |
1a7a17cfb50d65b0e5858b3379a7130c1f15250f | 5,669 | cpp | C++ | source/FAST/Data/ImagePyramid.cpp | nikolaseu/FAST | 4aa0dc0f6337449faeaf55e8be7043c6ab2e86e9 | [
"BSD-2-Clause"
] | null | null | null | source/FAST/Data/ImagePyramid.cpp | nikolaseu/FAST | 4aa0dc0f6337449faeaf55e8be7043c6ab2e86e9 | [
"BSD-2-Clause"
] | null | null | null | source/FAST/Data/ImagePyramid.cpp | nikolaseu/FAST | 4aa0dc0f6337449faeaf55e8be7043c6ab2e86e9 | [
"BSD-2-Clause"
] | null | null | null | #include "ImagePyramid.hpp"
#include <openslide/openslide.h>
#include <FAST/Utility.hpp>
#include <FAST/Data/Image.hpp>
#include <FAST/Algorithms/ImageChannelConverter/ImageChannelConverter.hpp>
namespace fast {
void ImagePyramid::create(openslide_t *fileHandle, std::vector<ImagePyramid::Level> levels) {
m_fileHa... | 35.43125 | 159 | 0.67825 | [
"vector"
] |
1a7ca5e03cfb7cba1e8b85a440ecc7a1a48dfb7b | 2,632 | hxx | C++ | main/autodoc/inc/ary/idl/i_namelookup.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/autodoc/inc/ary/idl/i_namelookup.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/autodoc/inc/ary/idl/i_namelookup.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... | 28.608696 | 65 | 0.493161 | [
"vector"
] |
1a7de9ade3c62261c27e123243cbc8ac75359c8f | 13,230 | cpp | C++ | examples/SSAODemo.cpp | wessles/vkmerc | cb087f425cdbc0b204298833474cf62874505388 | [
"Unlicense"
] | 6 | 2020-10-09T02:48:54.000Z | 2021-07-30T06:31:20.000Z | examples/SSAODemo.cpp | wessles/vkmerc | cb087f425cdbc0b204298833474cf62874505388 | [
"Unlicense"
] | null | null | null | examples/SSAODemo.cpp | wessles/vkmerc | cb087f425cdbc0b204298833474cf62874505388 | [
"Unlicense"
] | null | null | null | #include <Tracy.hpp>
#include <iostream>
#include <filesystem>
#include <VulkanContext.h>
#include <VulkanDevice.h>
#include <VulkanSwapchain.h>
#include <VulkanTexture.h>
#include <VulkanDescriptorSet.h>
#include <VulkanMesh.h>
#include <VulkanMaterial.h>
#include <VulkanUniform.h>
#include <shader/ShaderCache.h>
#i... | 28.512931 | 172 | 0.696674 | [
"render",
"object",
"vector",
"transform"
] |
1a7f8caaa55903f2b6c2463a8910d7fafe7b2bc8 | 1,709 | cpp | C++ | keybmouse_controller.cpp | dridk/tankfighter | 2a4f9e72b524bb991ad1d5c665890845d4e288ba | [
"Zlib",
"MIT"
] | 1 | 2019-04-17T14:54:19.000Z | 2019-04-17T14:54:19.000Z | keybmouse_controller.cpp | dridk/tankfighter | 2a4f9e72b524bb991ad1d5c665890845d4e288ba | [
"Zlib",
"MIT"
] | null | null | null | keybmouse_controller.cpp | dridk/tankfighter | 2a4f9e72b524bb991ad1d5c665890845d4e288ba | [
"Zlib",
"MIT"
] | 1 | 2019-04-17T14:54:20.000Z | 2019-04-17T14:54:20.000Z | #include "controller.h"
#include "player.h"
#include "geometry.h"
#include "engine.h"
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Window/Mouse.hpp>
#include <SFML/Window/Keyboard.hpp>
#include <math.h>
#include "input.h"
#include "misc.h"
using namespace sf;
static void detectKeyboardMovement(Player *pla... | 30.517857 | 125 | 0.705676 | [
"geometry"
] |
1a88425ee48af480dde8e2295d23b2280980eb29 | 7,976 | cc | C++ | src/coord/cluster/cluster_router.cc | lujingwei002/coord | cb5e5723293d8529663ca89e0c1d6b8c348fffff | [
"MIT"
] | null | null | null | src/coord/cluster/cluster_router.cc | lujingwei002/coord | cb5e5723293d8529663ca89e0c1d6b8c348fffff | [
"MIT"
] | null | null | null | src/coord/cluster/cluster_router.cc | lujingwei002/coord | cb5e5723293d8529663ca89e0c1d6b8c348fffff | [
"MIT"
] | null | null | null | #include "coord/cluster/cluster_router.h"
#include "coord/cluster/cluster.h"
#include "coord/cluster/cluster_notify.h"
#include "coord/cluster/cluster_request.h"
#include "coord/cluster/cluster_response.h"
#include "coord/component/script_component.h"
#include "util/date/date.h"
#include "coord/coord.h"
namespace coor... | 34.08547 | 194 | 0.650075 | [
"object"
] |
1a896eecfe713f77ce5326a3e5a66debe9a898ae | 2,924 | cpp | C++ | src/test/core/reflection.cpp | toeb/sine | 96bcde571218f89a2b0b3cc51c19ad2b7be89c13 | [
"MIT"
] | null | null | null | src/test/core/reflection.cpp | toeb/sine | 96bcde571218f89a2b0b3cc51c19ad2b7be89c13 | [
"MIT"
] | null | null | null | src/test/core/reflection.cpp | toeb/sine | 96bcde571218f89a2b0b3cc51c19ad2b7be89c13 | [
"MIT"
] | null | null | null | #include <core.testing.h>
#include "conversion.h"
#include <core.h>
#include <string>
#include <sstream>
using namespace nspace;
using namespace std;
class Tmp : public virtual PropertyChangingObject{
REFLECTABLE_OBJECT(Tmp);
PROPERTY(int,IntValue){}
PROPERTY(std::string,StringValue){}
};
void... | 25.426087 | 109 | 0.680917 | [
"object"
] |
1a8ad6889f7042d47a555ec7c21552dfaeec83df | 860 | cpp | C++ | src/question235.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question235.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question235.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
struct TreeNode
{
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), lef... | 23.243243 | 90 | 0.544186 | [
"vector"
] |
1a9081dc551df70cc530f3c2210d2f17b6735a09 | 1,616 | cpp | C++ | command-line/pdf-reorder.cpp | FearlessSniper/Pdf-reorder | e7bae6ad2ab2f2e8c64de82efea3d1d64f53aa0e | [
"MIT"
] | null | null | null | command-line/pdf-reorder.cpp | FearlessSniper/Pdf-reorder | e7bae6ad2ab2f2e8c64de82efea3d1d64f53aa0e | [
"MIT"
] | null | null | null | command-line/pdf-reorder.cpp | FearlessSniper/Pdf-reorder | e7bae6ad2ab2f2e8c64de82efea3d1d64f53aa0e | [
"MIT"
] | null | null | null | /**
* @file pdf-reorder.cpp
* @author FearlessSniper (47030588+FearlessSniper@users.noreply.github.com)
* @brief Reorders a PDF document to the correct order with the original order
* be odd pages, then even pages
* @version 0.1
* @date 2020-02-24
*/
#include <iostream>
#include <string>
#include <cmath>
... | 32.979592 | 91 | 0.670173 | [
"object"
] |
1a9c15b1fbd39ac84ccd696389659f8eff9d4b9b | 5,700 | cpp | C++ | 3. Red/Week 5/11. ConcurrentMap/main.cpp | AmaterasuOmikami/The-art-of-modern-Cpp-development | 4f0958197da92d216ee526384a6f7386a0fe62a0 | [
"MIT"
] | 1 | 2022-02-17T10:58:58.000Z | 2022-02-17T10:58:58.000Z | 3. Red/Week 5/11. ConcurrentMap/main.cpp | AmaterasuOmikami/The-art-of-modern-Cpp-development | 4f0958197da92d216ee526384a6f7386a0fe62a0 | [
"MIT"
] | null | null | null | 3. Red/Week 5/11. ConcurrentMap/main.cpp | AmaterasuOmikami/The-art-of-modern-Cpp-development | 4f0958197da92d216ee526384a6f7386a0fe62a0 | [
"MIT"
] | null | null | null | /*
* В заготовке решения задачи «Шаблон Synchronized» мы уже слегка коснулись идеи
* о том, что уменьшение размера критической секции позволяет повысить скорость
* работы многопоточной программы. В этой задаче мы разовьём её больше.
*
* Давайте представим, что у нас есть map, к которому обращаются несколько
* пот... | 31.666667 | 81 | 0.692982 | [
"vector"
] |
1aa93e33f943253643aef38b5625a3185fff5de0 | 11,080 | cpp | C++ | Sources/Internal/Platform/TemplateAndroid/CorePlatformAndroid.cpp | reven86/dava.engine | ca47540c8694668f79774669b67d874a30188c20 | [
"BSD-3-Clause"
] | 5 | 2020-02-11T12:04:17.000Z | 2022-01-30T10:18:29.000Z | Sources/Internal/Platform/TemplateAndroid/CorePlatformAndroid.cpp | reven86/dava.engine | ca47540c8694668f79774669b67d874a30188c20 | [
"BSD-3-Clause"
] | null | null | null | Sources/Internal/Platform/TemplateAndroid/CorePlatformAndroid.cpp | reven86/dava.engine | ca47540c8694668f79774669b67d874a30188c20 | [
"BSD-3-Clause"
] | 4 | 2019-11-28T19:24:34.000Z | 2021-08-24T19:12:50.000Z | #include "Base/Platform.h"
#if !defined(__DAVAENGINE_COREV2__)
#if defined(__DAVAENGINE_ANDROID__)
extern void FrameworkDidLaunched();
extern void FrameworkWillTerminate();
#include "Platform/DeviceInfo.h"
#include "Input/InputSystem.h"
#include "UI/UIEvent.h"
#include "FileSystem/FileSystem.h"
#include "Platform/... | 27.839196 | 171 | 0.699278 | [
"render",
"vector"
] |
1ab6ba807bd5ff7d3b9defda7fa434bc71875978 | 6,506 | cpp | C++ | problems_001-050/euler_37.cpp | sedihub/project_euler | 2d7d40ee67a1e0402aa68e78a5f7d7cf18221db5 | [
"Apache-2.0"
] | null | null | null | problems_001-050/euler_37.cpp | sedihub/project_euler | 2d7d40ee67a1e0402aa68e78a5f7d7cf18221db5 | [
"Apache-2.0"
] | null | null | null | problems_001-050/euler_37.cpp | sedihub/project_euler | 2d7d40ee67a1e0402aa68e78a5f7d7cf18221db5 | [
"Apache-2.0"
] | null | null | null | /*
PROBLEM:
The number 3797 has an interesting property. Being prime itself, it is possible to continuously
remove digits from left to right, and remain prime at each stage: 3797, 797, 97, and 7.
Similarly we can work from right to left: 3797, 379, 37, and 3.
Find the sum of the only eleven primes that are bo... | 28.915556 | 97 | 0.638795 | [
"vector"
] |
1ac1d100db1ac89d3131a925abd439b1a5497bde | 34,797 | cpp | C++ | src/physics/havok/clothsetup.cpp | Caprica666/vixen | b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d | [
"BSD-2-Clause"
] | 1 | 2019-02-13T15:39:56.000Z | 2019-02-13T15:39:56.000Z | src/physics/havok/clothsetup.cpp | Caprica666/vixen | b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d | [
"BSD-2-Clause"
] | null | null | null | src/physics/havok/clothsetup.cpp | Caprica666/vixen | b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d | [
"BSD-2-Clause"
] | 2 | 2017-11-09T12:06:41.000Z | 2019-02-13T15:40:02.000Z | #include "vixen.h"
#include "physics/havok/vxphysics.h"
#include "physics/havok/vxcloth.h"
#include <Common/Base/KeyCode.h>
#include <Common/Base/hkBase.h>
#include <Common/Base/System/hkBaseSystem.h>
#include <Common/Base/Math/QsTransform/hkQsTransform.h>
#include <Common/SceneData/Skin/hkxSkinBinding.h>
#include <Co... | 35.326904 | 146 | 0.7413 | [
"mesh",
"geometry",
"object",
"shape",
"model",
"transform"
] |
1ac2342bd68493042981e10c594af8d2eeb22223 | 3,443 | cc | C++ | test/orange/surfaces/GeneralQuadric.test.cc | tmdelellis/celeritas | 5252bcb0659892ae9082ca2b6716e3c84e18004b | [
"Apache-2.0",
"MIT"
] | 22 | 2020-03-31T14:18:22.000Z | 2022-01-10T09:43:06.000Z | test/orange/surfaces/GeneralQuadric.test.cc | tmdelellis/celeritas | 5252bcb0659892ae9082ca2b6716e3c84e18004b | [
"Apache-2.0",
"MIT"
] | 261 | 2020-04-29T15:14:29.000Z | 2022-03-31T19:07:14.000Z | test/orange/surfaces/GeneralQuadric.test.cc | tmdelellis/celeritas | 5252bcb0659892ae9082ca2b6716e3c84e18004b | [
"Apache-2.0",
"MIT"
] | 15 | 2020-05-01T19:47:19.000Z | 2021-12-25T06:12:09.000Z | //----------------------------------*-C++-*----------------------------------//
// Copyright 2021 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 35.864583 | 79 | 0.593959 | [
"shape"
] |
1ac32786576d4b759f76632679a9c5963bd0c2e0 | 14,969 | cpp | C++ | test/com/ResultToTextTest/ResultToTextTest.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | test/com/ResultToTextTest/ResultToTextTest.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | test/com/ResultToTextTest/ResultToTextTest.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | //=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... | 35.056206 | 73 | 0.783753 | [
"object"
] |
1ac511d5d018f4be397ca5e911e09716043f5dec | 7,951 | cpp | C++ | Library/src/showpage/OptionHandler.cpp | jplflyer/BeatPatterns | 6d6b7e5b9bdab9c6636444f963aef324ebf03f70 | [
"MIT"
] | 1 | 2020-01-26T23:26:34.000Z | 2020-01-26T23:26:34.000Z | Library/src/showpage/OptionHandler.cpp | jplflyer/BeatPatterns | 6d6b7e5b9bdab9c6636444f963aef324ebf03f70 | [
"MIT"
] | null | null | null | Library/src/showpage/OptionHandler.cpp | jplflyer/BeatPatterns | 6d6b7e5b9bdab9c6636444f963aef324ebf03f70 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
#include <cctype>
#include "OptionHandler.h"
using namespace std;
/**
* Parse the command line. Returns true if clean, false if bad args or help was provided.
*/
bool
OptionHandler::handleOptions(int argc, const char * const *argv, Argument *arguments, Hel... | 25.082019 | 156 | 0.555528 | [
"vector"
] |
1ad396c5d6dcb7ff7598e8bf140a277f8c4f4750 | 1,542 | cc | C++ | smart_pointers/04-pointer.cc | aakbar5/handy-cplusplus | fd8ae187811f1ff9a6d19909202ed31564c4e384 | [
"MIT"
] | null | null | null | smart_pointers/04-pointer.cc | aakbar5/handy-cplusplus | fd8ae187811f1ff9a6d19909202ed31564c4e384 | [
"MIT"
] | null | null | null | smart_pointers/04-pointer.cc | aakbar5/handy-cplusplus | fd8ae187811f1ff9a6d19909202ed31564c4e384 | [
"MIT"
] | null | null | null | //
// Program
// This program simply creates weak pointer.
// - You can only create a std::weak_ptr out of a
// std::shared_ptr or another std::weak_ptr.
//
// Compile
// g++ -std=c++17 -o 04-pointer 04-pointer.cc
//
// Execution
// ./04-pointer
//
#include <iostream>
#include <memory>
//
// Entry function
//... | 28.555556 | 99 | 0.503891 | [
"object"
] |
1ae50d701f9ae1c0079ce989f23b0d6b9563ed5c | 471 | cpp | C++ | cppLearn/test.cpp | adammorley/cpp | ff8682843f64f808b51f45b6e9530b0755455f27 | [
"Apache-2.0"
] | null | null | null | cppLearn/test.cpp | adammorley/cpp | ff8682843f64f808b51f45b6e9530b0755455f27 | [
"Apache-2.0"
] | null | null | null | cppLearn/test.cpp | adammorley/cpp | ff8682843f64f808b51f45b6e9530b0755455f27 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <map>
int main() {
std::vector<int> values = {100, 50, 33};
std::vector<int> weights = {10, 25, 10};
std::map<double, int> r_index;
for (int i = 0; i < values.size(); i++) {
double r = (double) values[i] / weights[i];
r_index[r] = i;
}
... | 22.428571 | 68 | 0.56051 | [
"vector"
] |
1aeb4dc481ab0c7d83e28af056d7e12d2de59115 | 4,903 | cxx | C++ | nvbench/named_values.cxx | S-o-T/nvbench | a72f248af6323915419e03c0d7d56a35c9b4819a | [
"Apache-2.0"
] | 157 | 2021-04-14T19:35:08.000Z | 2022-03-29T14:35:31.000Z | nvbench/named_values.cxx | S-o-T/nvbench | a72f248af6323915419e03c0d7d56a35c9b4819a | [
"Apache-2.0"
] | 44 | 2021-04-21T22:54:13.000Z | 2022-02-18T21:54:46.000Z | nvbench/named_values.cxx | S-o-T/nvbench | a72f248af6323915419e03c0d7d56a35c9b4819a | [
"Apache-2.0"
] | 21 | 2021-04-14T19:36:27.000Z | 2022-03-14T22:11:17.000Z | /*
* Copyright 2021 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 with the LLVM exception
* (the "License"); you may not use this file except in compliance with
* the License.
*
* You may obtain a copy of the License at
*
* http://llvm.org/foundation/relicensing/LICENSE.txt
*... | 27.391061 | 80 | 0.643076 | [
"vector",
"transform"
] |
8c1b8e4631015af708e0cf80f2a5d3e486434302 | 27,055 | cc | C++ | Agent.cc | c-trinh/wumpus-ai-agent | 86145c19fb60d77eb5139b514dd1d42817ce11b5 | [
"MIT"
] | null | null | null | Agent.cc | c-trinh/wumpus-ai-agent | 86145c19fb60d77eb5139b514dd1d42817ce11b5 | [
"MIT"
] | null | null | null | Agent.cc | c-trinh/wumpus-ai-agent | 86145c19fb60d77eb5139b514dd1d42817ce11b5 | [
"MIT"
] | null | null | null | /* Cong Trinh
* Artificial Intelligence
* 11/9/19
*/
// Agent.cc
#include <iostream>
#include <iomanip>
#include <vector>
#include "Agent.h"
#include "Action.h"
#include "Location.h"
#include "Orientation.h"
#include <algorithm>
using namespace std;
Agent::Agent()
{
firstTry = true;
}
Agent::~Agent()
{
}
v... | 26.039461 | 185 | 0.637923 | [
"vector"
] |
8c2b0a5524bf1c7efb17a057b9e5f850d5ff2c51 | 3,229 | cpp | C++ | intuit/12.cpp | 19yetnoob/-6Companies30days | 93f8dc6370cae7a8907d02b3ac8de610b73b8d9f | [
"MIT"
] | null | null | null | intuit/12.cpp | 19yetnoob/-6Companies30days | 93f8dc6370cae7a8907d02b3ac8de610b73b8d9f | [
"MIT"
] | null | null | null | intuit/12.cpp | 19yetnoob/-6Companies30days | 93f8dc6370cae7a8907d02b3ac8de610b73b8d9f | [
"MIT"
] | null | null | null | // class Solution {
// public:
// void dfs(vector<vector<int>>adj,int node,int par,vector<int>done,vector<int>visit,int &c,vector<int>&curr){
// visit[node]=1;
// for(auto a:adj[node]){
// if(c!=0)
// break;
// if(visit[a]==-1){
// if(... | 27.836207 | 115 | 0.315268 | [
"vector"
] |
8c42322675eb7c00874d8b8bc1fa4e26300edb85 | 387 | cpp | C++ | e_pascal_triangle2.cpp | skyera/myleetcode | c3524e73b320afb863d0c04d40b1b660ff9fec8c | [
"MIT"
] | null | null | null | e_pascal_triangle2.cpp | skyera/myleetcode | c3524e73b320afb863d0c04d40b1b660ff9fec8c | [
"MIT"
] | null | null | null | e_pascal_triangle2.cpp | skyera/myleetcode | c3524e73b320afb863d0c04d40b1b660ff9fec8c | [
"MIT"
] | null | null | null | // Pascal triangle II
// 9/4/2017
// Easy
#include <iostream>
#include <vector>
using namespace std;
vector<int> getrow(int rowindex) {
vector<int> array;
for (int i = 0; i <= rowindex; i++) {
for (int j = i - 1; j > 0; j--) {
array[j] = array[j-1] + array[j];
}
array.push... | 14.884615 | 45 | 0.516796 | [
"vector"
] |
8c48a16a40040ebc2b50103b852497b61543de8c | 8,835 | cpp | C++ | SimpleMesh/XML.cpp | plisdku/trogdor6 | d77eb137dd0c03635c0016801ada54117697e521 | [
"MIT"
] | null | null | null | SimpleMesh/XML.cpp | plisdku/trogdor6 | d77eb137dd0c03635c0016801ada54117697e521 | [
"MIT"
] | null | null | null | SimpleMesh/XML.cpp | plisdku/trogdor6 | d77eb137dd0c03635c0016801ada54117697e521 | [
"MIT"
] | null | null | null | //
// XML.cpp
// Trogdor6
//
// Created by Paul Hansen on 3/4/18.
// Copyright 2018 Stanford University.
//
// * This file is covered by the MIT license. See LICENSE.txt.
#include "XML.h"
#include <string>
#include <sstream>
#include <stdexcept>
#include "XMLExtras.h"
#include "tinyxml.h"
namespace SimpleMesh... | 33.850575 | 118 | 0.63339 | [
"vector",
"solid"
] |
8c49cff07425a8bba94fade4369cd3856d099113 | 4,960 | cpp | C++ | momentumopt/demos/demo_momentumopt.cpp | ferdinand-wood/kino_dynamic_opt | ba6bef170819c55d1d26e40af835a744d1ae663f | [
"BSD-3-Clause"
] | 26 | 2019-11-18T17:39:43.000Z | 2021-12-18T00:38:22.000Z | momentumopt/demos/demo_momentumopt.cpp | ferdinand-wood/kino_dynamic_opt | ba6bef170819c55d1d26e40af835a744d1ae663f | [
"BSD-3-Clause"
] | 25 | 2019-11-11T19:54:51.000Z | 2021-04-07T13:41:47.000Z | momentumopt/demos/demo_momentumopt.cpp | ferdinand-wood/kino_dynamic_opt | ba6bef170819c55d1d26e40af835a744d1ae663f | [
"BSD-3-Clause"
] | 10 | 2019-12-15T14:36:51.000Z | 2021-09-29T10:42:19.000Z | /*
* Copyright [2017] Max Planck Society. All rights reserved.
*
* 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 3 of the License, or
* (at your option) any later version.
... | 44.285714 | 130 | 0.742944 | [
"object"
] |
8c5b6f851eddbd956fe1ba2cc873c7c5fe96a7cd | 16,213 | cpp | C++ | oi/ceoi/2016/icc/graderlib.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | oi/ceoi/2016/icc/graderlib.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | oi/ceoi/2016/icc/graderlib.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #ifndef INTERACTION_IMLP
#define INTERACTION_IMLP
#include "icc.h"
#include <cstdio>
#include <cmath>
#include <array>
#include <fstream>
#include <iostream>
#include <vector>
using namespace std;
#define DEBUG(...) if (0) { __VA_ARGS__; }
namespace ceoi_2016 {
const bool PRINT_SCORE_TO_STDERR = false;
void Fail(... | 27.386824 | 134 | 0.498489 | [
"vector"
] |
8c5bb685970469739716fa1756945d5d47f547a8 | 1,482 | cpp | C++ | allocation.cpp | TavaresJoao/TSPDL-using-a-Greedy-Algorithm | 3b997c4d4ba0dfd95477540fb74d0e63e082a46e | [
"MIT"
] | null | null | null | allocation.cpp | TavaresJoao/TSPDL-using-a-Greedy-Algorithm | 3b997c4d4ba0dfd95477540fb74d0e63e082a46e | [
"MIT"
] | 2 | 2018-09-02T05:32:42.000Z | 2018-09-02T05:38:34.000Z | allocation.cpp | TavaresJoao/TSPDL-using-a-Greedy-Algorithm | 3b997c4d4ba0dfd95477540fb74d0e63e082a46e | [
"MIT"
] | null | null | null | #include "headers.h"
// Cria uma matriz n x n
int** create_Matrix(int n)
{
int **matrix;
matrix = (int**) malloc(n*sizeof(int*));
for(int i=0; i<n; i++)
matrix[i] = (int*) malloc(n*sizeof(int));
return matrix;
}
// Cria um vetor de tamnho n
int* create_Vector(int n)
{
int *vector;
vector = (int*) m... | 15.4375 | 45 | 0.654521 | [
"vector"
] |
8c6a1c13d1f816f92e50f8de5f57b1302b4cd1f0 | 504 | cpp | C++ | Cplus/NumberofGoodWaystoSplitaString.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/NumberofGoodWaystoSplitaString.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/NumberofGoodWaystoSplitaString.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
using namespace std;
class Solution
{
public:
int numSplits(string s)
{
vector<int> left(26), right(26);
for (auto c : s)
++right[c - 'a'];
int res = 0, leftcount = 0, rightcount = 0;
for (int i = 0; i < 26; ++i)
rightcount += right[i] > 0 ? 1 : 0;
for (auto c : s)... | 17.37931 | 45 | 0.52381 | [
"vector"
] |
8c78fc24c3403c5444d3d26d36f72c87f6d9ffd4 | 7,184 | cpp | C++ | src/FusionEKF.cpp | bifrost/CarND-Extended-Kalman-Filter-Project | 0223960d39a6aa69a4080196e5c1e6ef91627b7d | [
"MIT"
] | null | null | null | src/FusionEKF.cpp | bifrost/CarND-Extended-Kalman-Filter-Project | 0223960d39a6aa69a4080196e5c1e6ef91627b7d | [
"MIT"
] | null | null | null | src/FusionEKF.cpp | bifrost/CarND-Extended-Kalman-Filter-Project | 0223960d39a6aa69a4080196e5c1e6ef91627b7d | [
"MIT"
] | null | null | null | #include "FusionEKF.h"
#include "tools.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/*
* Constructor.
*/
FusionEKF::FusionEKF()
{
is_initialized_ = false;
previous_timestamp_ = 0;
// initializing matrices
R_laser_ = Mat... | 28.0625 | 106 | 0.579204 | [
"vector"
] |
8c7a090b8d3c9968b726637edc5a8e732f9cd7de | 440 | cpp | C++ | Level_6_HW/Section 4.2a/Exercise 1/Exercise 1/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_6_HW/Section 4.2a/Exercise 1/Exercise 1/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_6_HW/Section 4.2a/Exercise 1/Exercise 1/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | //
// main.cpp
// Exercise 1
//
// Created by Zhehao Li on 2020/3/26.
// Copyright © 2020 Zhehao Li. All rights reserved.
//
// Exercise 1: Templated Array Class
#include "Shape.hpp"
#include "Point.hpp"
#include "Array.hpp"
#include <iostream>
int main(int argc, const char * argv[]) {
namespace CTD = Z... | 18.333333 | 52 | 0.631818 | [
"cad",
"shape"
] |
8c7c5db0919b02ffe5e5a68f325817cb5984941d | 3,591 | hpp | C++ | src/common/StateFieldRegistry.hpp | Pathfinder-for-Pitch-Momentum-Bias/FlightSoftware | 7256f52f7c5887af7fc8679b163629d1235fa1bb | [
"MIT"
] | 6 | 2020-02-24T07:46:22.000Z | 2021-09-26T22:57:05.000Z | src/common/StateFieldRegistry.hpp | pathfinder-for-autonomous-navigation/FlightSoftware | a3c30b10e2a28d17a2de0180c996bcc5f9ada7c7 | [
"MIT"
] | 537 | 2019-05-29T04:31:30.000Z | 2022-03-06T17:18:56.000Z | src/common/StateFieldRegistry.hpp | Pathfinder-for-Pitch-Momentum-Bias/FlightSoftware | 7256f52f7c5887af7fc8679b163629d1235fa1bb | [
"MIT"
] | 5 | 2020-04-01T17:29:37.000Z | 2022-02-25T22:26:14.000Z | #ifndef STATE_FIELD_REGISTRY_HPP_
#define STATE_FIELD_REGISTRY_HPP_
#include <memory>
#include <set>
#include "StateField.hpp"
#include "Event.hpp"
#include "Fault.hpp"
/**
* @brief Registry of state fields and which tasks have read/write access to
* the fields. StateField objects use this registry to verify valid ... | 29.925 | 98 | 0.662768 | [
"vector"
] |
8c83358be1ff922ca7785a2026d7b732a252d2c7 | 2,142 | cpp | C++ | Numerical methods/Linear algebra methods/src/test/CholeskyTests.cpp | ShkalikovOleh/Labs | 04161ee96c729d1a8b84906b453c5f0e386aaa8b | [
"MIT"
] | null | null | null | Numerical methods/Linear algebra methods/src/test/CholeskyTests.cpp | ShkalikovOleh/Labs | 04161ee96c729d1a8b84906b453c5f0e386aaa8b | [
"MIT"
] | null | null | null | Numerical methods/Linear algebra methods/src/test/CholeskyTests.cpp | ShkalikovOleh/Labs | 04161ee96c729d1a8b84906b453c5f0e386aaa8b | [
"MIT"
] | 1 | 2020-11-22T16:21:14.000Z | 2020-11-22T16:21:14.000Z | #include <gtest/gtest.h>
#include "Matrix.h"
#include "Vector.h"
#include "Cholesky.h"
using namespace LinAlg;
Matrix<int> testMatrix()
{
//Example from: https://en.wikipedia.org/wiki/cholesky_decomposition
Matrix<int> matrix(3, 3);
matrix(0, 0) = 4;
matrix(0, 1) = matrix(1, 0) = 12;
matrix(0, 2)... | 20.018692 | 72 | 0.560224 | [
"vector"
] |
8c83d7a775591c7118ac3768e7eae4356dc2745f | 4,276 | cpp | C++ | src/objReader.cpp | jmlien/mesh_unfolder | 3f1ed2f4b906a57bebf7b35ed75c7c3fa976de58 | [
"MIT"
] | 1 | 2021-06-18T16:05:54.000Z | 2021-06-18T16:05:54.000Z | src/objReader.cpp | jmlien/mesh_unfolder | 3f1ed2f4b906a57bebf7b35ed75c7c3fa976de58 | [
"MIT"
] | null | null | null | src/objReader.cpp | jmlien/mesh_unfolder | 3f1ed2f4b906a57bebf7b35ed75c7c3fa976de58 | [
"MIT"
] | null | null | null | /*
* objReader.cpp
*
*/
#include "objReader.h"
#include "util/Path.h"
namespace masc{
namespace obj{
//convert a string to a list of tokens
inline list<string> tokenize(char * tmp, const char * ignore)
{
list<string> tokens;
char * tok = strtok(tmp, ignore);
while (tok != NULL) {
tokens.push_back(to... | 24.434286 | 91 | 0.502806 | [
"vector"
] |
8c8432236b2df2d050adb9e87e425eee4cd5c4b7 | 1,605 | cpp | C++ | src/base/RenderStageSequence.cpp | kostrykin/Carna | 099783bb7f8a6f52fcc8ccd4666e491cf0aa864c | [
"BSD-3-Clause"
] | null | null | null | src/base/RenderStageSequence.cpp | kostrykin/Carna | 099783bb7f8a6f52fcc8ccd4666e491cf0aa864c | [
"BSD-3-Clause"
] | null | null | null | src/base/RenderStageSequence.cpp | kostrykin/Carna | 099783bb7f8a6f52fcc8ccd4666e491cf0aa864c | [
"BSD-3-Clause"
] | 3 | 2015-07-23T12:10:14.000Z | 2021-06-08T16:07:05.000Z | /*
* Copyright (C) 2010 - 2015 Leonid Kostrykin
*
* Chair of Medical Engineering (mediTEC)
* RWTH Aachen University
* Pauwelsstr. 20
* 52074 Aachen
* Germany
*
*/
#include <Carna/base/RenderStageSequence.h>
#include <Carna/base/RenderStage.h>
#include <vector>
namespace Carna
{
namespace base
{
// ... | 18.448276 | 102 | 0.543302 | [
"vector"
] |
8c90b73107e79c4ad2c2d2b76e6ce5e3be9e130f | 9,708 | hpp | C++ | include/Polylidar/Types.hpp | JeremyBYU/polylidar | 81390535887644aa5492d85d4768b5f797098531 | [
"MIT"
] | 149 | 2020-02-05T14:51:22.000Z | 2022-03-29T12:43:53.000Z | include/Polylidar/Types.hpp | JeremyBYU/polylidar | 81390535887644aa5492d85d4768b5f797098531 | [
"MIT"
] | 10 | 2020-04-29T04:38:41.000Z | 2022-02-21T12:48:52.000Z | include/Polylidar/Types.hpp | JeremyBYU/polylidar | 81390535887644aa5492d85d4768b5f797098531 | [
"MIT"
] | 22 | 2020-02-28T11:39:27.000Z | 2022-03-29T02:39:42.000Z | #ifndef POLYLIDAR_TYPES
#define POLYLIDAR_TYPES
#define _USE_MATH_DEFINES
#include <limits>
#include <vector>
#include <cstdint>
#include <array>
#include <unordered_map>
#include <deque>
#include <memory>
// include a fast parallel hash map implementation
#ifdef PL_USE_STD_UNORDERED_MAP
#include <parallel_hashmap/phm... | 32.145695 | 132 | 0.639782 | [
"mesh",
"object",
"vector"
] |
8c90bbaa952dd0f46badca801513808c3c84382a | 2,177 | cc | C++ | app/demo-rasterizer/RDemoRunner.cc | stognini/celeritas | 6c6d72fece6d9e9c6eb6b43f926941137a1b9517 | [
"Apache-2.0",
"MIT"
] | 22 | 2020-03-31T14:18:22.000Z | 2022-01-10T09:43:06.000Z | app/demo-rasterizer/RDemoRunner.cc | mrguilima/celeritas | e61879ee24665664dabe6d12d5dc1cbc529343ae | [
"Apache-2.0",
"MIT"
] | 261 | 2020-04-29T15:14:29.000Z | 2022-03-31T19:07:14.000Z | app/demo-rasterizer/RDemoRunner.cc | mrguilima/celeritas | e61879ee24665664dabe6d12d5dc1cbc529343ae | [
"Apache-2.0",
"MIT"
] | 15 | 2020-05-01T19:47:19.000Z | 2021-12-25T06:12:09.000Z | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 30.661972 | 79 | 0.467157 | [
"geometry"
] |
8c929f317fa32a940a98aefec275559ca9f27df9 | 1,082 | cpp | C++ | hackerrank/practice/mathematics/number_theory/find_the_operations__mb.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | 4 | 2018-06-05T14:15:52.000Z | 2022-02-08T05:14:23.000Z | hackerrank/practice/mathematics/number_theory/find_the_operations__mb.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | null | null | null | hackerrank/practice/mathematics/number_theory/find_the_operations__mb.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | 1 | 2018-10-21T11:01:35.000Z | 2018-10-21T11:01:35.000Z | // https://www.hackerrank.com/challenges/flip
#include "common/linear_algebra/bool/matrix.h"
#include "common/linear_algebra/bool/read.h"
#include "common/linear_algebra/bool/solve.h"
#include "common/linear_algebra/bool/vector.h"
#include "common/stl/base.h"
using TModular = ModularBool;
using TVector = la::VectorBo... | 27.74359 | 64 | 0.563771 | [
"vector"
] |
8c958fb431d1a1401b9cbdbedfaa05bc73ec880d | 2,973 | cpp | C++ | Pi/envelope.cpp | FundCompXbee/XBeeMessenger | f3210077cb82e1597980b33bc6e2f8f9cf7bc042 | [
"MIT"
] | 1 | 2016-04-29T22:30:58.000Z | 2016-04-29T22:30:58.000Z | Pi/envelope.cpp | FundCompXbee/XBeeMessenger | f3210077cb82e1597980b33bc6e2f8f9cf7bc042 | [
"MIT"
] | null | null | null | Pi/envelope.cpp | FundCompXbee/XBeeMessenger | f3210077cb82e1597980b33bc6e2f8f9cf7bc042 | [
"MIT"
] | null | null | null | // Team: XBeeMessenger
// Course: Fundamentals of Computing II
// Assignment: Final Project
// Purpose: Implementation of the Envelope class
#include "envelope.hpp"
#ifdef LOG1
#include "../loggerTesting/log1.h"
#else
#include "../loggerTesting/log.h"
#endif
// Private inheritance is utilised to provide a custom
// ... | 24.983193 | 107 | 0.674067 | [
"object"
] |
8c9bebc1cc33ba368dd51922934834b95e9c6669 | 10,996 | hpp | C++ | mtvmtl/core/manifold_spd.hpp | pdebus/MTVMTL | 65a7754b34d1f6a1e86d15e3c2d4346b9418414f | [
"MIT"
] | 3 | 2017-05-08T12:40:46.000Z | 2019-06-02T05:11:01.000Z | mtvmtl/core/manifold_spd.hpp | pdebus/MTVMTL | 65a7754b34d1f6a1e86d15e3c2d4346b9418414f | [
"MIT"
] | null | null | null | mtvmtl/core/manifold_spd.hpp | pdebus/MTVMTL | 65a7754b34d1f6a1e86d15e3c2d4346b9418414f | [
"MIT"
] | null | null | null | #ifndef TVMTL_MANIFOLD_SPD_HPP
#define TVMTL_MANIFOLD_SPD_HPP
#include <cmath>
#include <complex>
#include <iostream>
#include <Eigen/Core>
#include <Eigen/Sparse>
#include <Eigen/SVD>
#include <unsupported/Eigen/MatrixFunctions>
#include <unsupported/Eigen/KroneckerProduct>
//own includes
#include "enumerators.hpp"... | 30.208791 | 148 | 0.677701 | [
"vector"
] |
8ca14daee00d319dd86b8f13fcbf19a7febaf4d4 | 2,262 | cpp | C++ | CodeForces-Contest/620/E.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-01-23T07:18:07.000Z | 2022-01-23T07:18:07.000Z | CodeForces-Contest/620/E.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | null | null | null | CodeForces-Contest/620/E.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-02-05T11:53:04.000Z | 2022-02-05T11:53:04.000Z | #include<bits/stdc++.h>
using namespace std;
const int N = 4e5 + 9;
int a[N];
int st[N], en[N], T, f[N];
struct ST {
#define lc (n << 1)
#define rc ((n << 1) | 1)
long long t[4 * N], lazy[4 * N];
ST() {
memset(t, 0, sizeof t);
memset(lazy, 0, sizeof lazy);
}
inline void push(in... | 22.848485 | 77 | 0.407604 | [
"vector"
] |
8cae88091cf5f7eadc48e37b6ea0934da3bd0e37 | 1,198 | cpp | C++ | list/300-longest-increasing-subsequence/300-longest-increasing-subsequence-path1.cpp | ZonePG/my-leetcode-solution | 9efa4c19e4c9be9f47b5f5d4e9a47fceae26e0bb | [
"MIT"
] | null | null | null | list/300-longest-increasing-subsequence/300-longest-increasing-subsequence-path1.cpp | ZonePG/my-leetcode-solution | 9efa4c19e4c9be9f47b5f5d4e9a47fceae26e0bb | [
"MIT"
] | null | null | null | list/300-longest-increasing-subsequence/300-longest-increasing-subsequence-path1.cpp | ZonePG/my-leetcode-solution | 9efa4c19e4c9be9f47b5f5d4e9a47fceae26e0bb | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> lengthOfLIS(vector<int> &nums) {
int max_length_id = 0;
vector<vector<int>> path(nums.size(), vector<int>());
for (int i = 0; i < nums.size(); i++) {
path[i].push_back(nums[i]);
... | 23.96 | 76 | 0.474124 | [
"vector"
] |
8cb7f4c92acab348e2720e6d4f808cbde6e809d9 | 1,311 | cpp | C++ | hard/0042trappingRainWater.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | hard/0042trappingRainWater.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | hard/0042trappingRainWater.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | //
// Created by wangheng on 2021/9/7.
//
#include <bits/stdc++.h>
using namespace std;
class Solution{
public:
int trap(vector<int>& height) {
stack<int> stk;
int ans = 0;
int n = height.size();
for(int i = 0; i < n; ++i) {
while (!stk.empty() && height[i] > height[stk.... | 26.22 | 75 | 0.440122 | [
"vector"
] |
8cbc574656ce7c6f79030d952d0dfb20e2886f64 | 1,973 | hh | C++ | hackt_docker/hackt/src/Object/unroll/instance_attribute_registry.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/unroll/instance_attribute_registry.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/unroll/instance_attribute_registry.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/unroll/instance_attribute_registry.hh"
The home of instance attribute registries, a tcc file.
By putting these definitions separate from "instance_attribute.tcc"
we can control where these static map members are instantiated.
$Id: instance_attribute_registry.hh,v 1.1 2008/10/07 03:22:32 fang Ex... | 34.614035 | 79 | 0.682717 | [
"object"
] |
8cbcf4598fd3423fa163c0ebfed5d9b88a55bc21 | 8,067 | cpp | C++ | src/linux_parser.cpp | mehmetalici/LinuxSystemMonitor | b6f34e1b549b52f02efd9442dfb577637c69faba | [
"MIT"
] | null | null | null | src/linux_parser.cpp | mehmetalici/LinuxSystemMonitor | b6f34e1b549b52f02efd9442dfb577637c69faba | [
"MIT"
] | null | null | null | src/linux_parser.cpp | mehmetalici/LinuxSystemMonitor | b6f34e1b549b52f02efd9442dfb577637c69faba | [
"MIT"
] | null | null | null | #include <dirent.h>
#include <unistd.h>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
#include <map>
#include <experimental/filesystem>
#include "linux_parser.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
namespace fs = std::experimental::filesystem;
// ... | 28.305263 | 89 | 0.66394 | [
"vector"
] |
8cbd9bf6ed15fd6fe6a92499a0064bcc138b56a9 | 505 | cc | C++ | pascalsTriangleII.cc | zxylvlp/MyLeetCode | 7b2fe7a5f6515c365b903511d87e6879c0b62734 | [
"MIT"
] | 1 | 2015-11-16T05:06:10.000Z | 2015-11-16T05:06:10.000Z | pascalsTriangleII.cc | zxylvlp/MyLeetCode | 7b2fe7a5f6515c365b903511d87e6879c0b62734 | [
"MIT"
] | null | null | null | pascalsTriangleII.cc | zxylvlp/MyLeetCode | 7b2fe7a5f6515c365b903511d87e6879c0b62734 | [
"MIT"
] | null | null | null | #include <vector>
#include "printHelper.hh"
using namespace std;
class Solution {
public:
vector<int> getRow(int rowIndex) {
vector<int> res(rowIndex+1, 1);
for (int i=2; i<=rowIndex; i++) {
for (int j=(rowIndex-i+1); j<rowIndex; j++) {
res[j] = re... | 21.041667 | 61 | 0.459406 | [
"vector"
] |
8cc5c291bd984a35b070eec3389d705e50577056 | 16,420 | cxx | C++ | smtk/mesh/MeshSet.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | null | null | null | smtk/mesh/MeshSet.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | 4 | 2016-11-10T15:49:51.000Z | 2017-02-06T23:24:16.000Z | smtk/mesh/MeshSet.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | null | null | null | //=========================================================================
// Copyright (c) Kitware, Inc.
// 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... | 35.929978 | 89 | 0.544884 | [
"mesh",
"vector",
"model"
] |
8cc60fec69f17f9d09025c53f556bd5a3b37dc08 | 3,288 | cpp | C++ | platform/windows/Corona.Native.Library.Win32/Rtt/Rtt_WinScreenSurface.cpp | pouwelsjochem/corona | 86ffe9002e42721b4bb2c386024111d995e7b27c | [
"MIT"
] | null | null | null | platform/windows/Corona.Native.Library.Win32/Rtt/Rtt_WinScreenSurface.cpp | pouwelsjochem/corona | 86ffe9002e42721b4bb2c386024111d995e7b27c | [
"MIT"
] | null | null | null | platform/windows/Corona.Native.Library.Win32/Rtt/Rtt_WinScreenSurface.cpp | pouwelsjochem/corona | 86ffe9002e42721b4bb2c386024111d995e7b27c | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: support@coronalabs.com
//
////////////////////////... | 26.95082 | 111 | 0.712591 | [
"render"
] |
8cc7e98dfc99a60d8be4e4e3a8f28644bc291255 | 13,012 | cpp | C++ | Scheduler/CoinOR/examplesMakefiles/CbcBranchUser.cpp | enyquist/Concordia_Scheduling | 5eb96ed585e7f2002983159b8ee0837b791753fa | [
"MIT"
] | null | null | null | Scheduler/CoinOR/examplesMakefiles/CbcBranchUser.cpp | enyquist/Concordia_Scheduling | 5eb96ed585e7f2002983159b8ee0837b791753fa | [
"MIT"
] | null | null | null | Scheduler/CoinOR/examplesMakefiles/CbcBranchUser.cpp | enyquist/Concordia_Scheduling | 5eb96ed585e7f2002983159b8ee0837b791753fa | [
"MIT"
] | null | null | null | // $Id: CbcBranchUser.cpp 1574 2011-01-05 01:13:55Z lou $
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#if defined(_MSC_VER)
// Turn off compiler warning about long names
# pragma w... | 28.597802 | 87 | 0.681448 | [
"object",
"model"
] |
bc514e33a93c77a10804506e09199bcd1de33e58 | 3,762 | cpp | C++ | Pang/Pang/Source/ModuleGunShot.cpp | UriKurae/Pang | 2634bb22e674f022c0218a3802d0d5f80a9661fa | [
"MIT"
] | 1 | 2020-12-21T17:21:28.000Z | 2020-12-21T17:21:28.000Z | Pang/Pang/Source/ModuleGunShot.cpp | UriKurae/Pang | 2634bb22e674f022c0218a3802d0d5f80a9661fa | [
"MIT"
] | null | null | null | Pang/Pang/Source/ModuleGunShot.cpp | UriKurae/Pang | 2634bb22e674f022c0218a3802d0d5f80a9661fa | [
"MIT"
] | null | null | null | #include "ModuleGunShot.h"
#include "ModulePlayer.h"
#include"Application.h"
#include "Globals.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModuleInput.h"
#include "ModuleCollisions.h"
#include "ModuleScene.h"
#include "ModuleScene2.h"
#include "ModuleEnemies.h"
#include "ModuleParticles.h"
#incl... | 26.871429 | 103 | 0.656566 | [
"render"
] |
bc59d1410ef1c6f06bb1b808a84d3671765dfc9b | 252 | cpp | C++ | src/example_linear_model.cpp | mlverse/cuda.ml | 54fc9575e271b6a94c8650bea1887bb7ffa2b333 | [
"MIT"
] | 12 | 2021-10-05T15:34:55.000Z | 2021-12-28T14:50:44.000Z | src/example_linear_model.cpp | mlverse/cuml4r | 54fc9575e271b6a94c8650bea1887bb7ffa2b333 | [
"MIT"
] | 39 | 2021-07-12T13:12:52.000Z | 2021-08-24T14:18:05.000Z | src/example_linear_model.cpp | mlverse/cuda.ml | 54fc9575e271b6a94c8650bea1887bb7ffa2b333 | [
"MIT"
] | 1 | 2021-11-06T02:28:04.000Z | 2021-11-06T02:28:04.000Z | #include "example_linear_model.h"
#include "lm.h"
Rcpp::List cuml4r_example_linear_model() {
// return a trivial model
Rcpp::List model;
model[cuml4r::lm::kCoef] = Rcpp::NumericVector(10);
model[cuml4r::lm::kIntercept] = 0;
return model;
}
| 21 | 53 | 0.702381 | [
"model"
] |
bc5a9de782ec4fd87de3c2fd7bd0ed7a4d722068 | 5,611 | hpp | C++ | engine/include/stl/static_hash_map.hpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 44 | 2017-01-25T05:57:21.000Z | 2021-09-21T13:36:49.000Z | engine/include/stl/static_hash_map.hpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 1 | 2017-04-05T01:50:18.000Z | 2017-04-05T01:50:18.000Z | engine/include/stl/static_hash_map.hpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 3 | 2017-09-28T08:11:00.000Z | 2019-03-27T03:38:47.000Z | #pragma once
#include <stl/deque.hpp>
#include <stl/murmur_hash.hpp>
// @TODO:
// 1. Turn HashEntry array into SOA. [DONE]
// 2. Add new StringBuffer16 (or 32) array for Keys.
// 3. Finish data swap-and-pop upon erase. [DONE]
// 4. Implement iterators.
// 5. Add prev index to HashEntry. [DONE]
// (48 + sizeof(T)) * ... | 26.592417 | 73 | 0.592408 | [
"object"
] |
bc5cd5262ef4ed804de7fedc3650cc028e7d56a7 | 4,906 | hpp | C++ | include/graphics/materials/MaterialInstanceDefinition.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | 5 | 2018-07-03T17:05:43.000Z | 2020-02-03T00:23:46.000Z | include/graphics/materials/MaterialInstanceDefinition.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | null | null | null | include/graphics/materials/MaterialInstanceDefinition.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | null | null | null | // The IYFEngine
//
// Copyright (C) 2015-2018, Manvydas Šliamka
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// condi... | 45.850467 | 180 | 0.743579 | [
"render",
"object",
"vector"
] |
bc60845b215311a05eaa599adcd1f450f19cb7f8 | 9,538 | cpp | C++ | spt/features/vag_trace.cpp | tmob03/SourcePauseTool | 5bc27b63c74a2392803c0471067d2af138c43efd | [
"RSA-MD"
] | 1 | 2021-11-13T05:42:45.000Z | 2021-11-13T05:42:45.000Z | spt/features/vag_trace.cpp | lipsanen/SourcePauseTool | 5bc27b63c74a2392803c0471067d2af138c43efd | [
"RSA-MD"
] | null | null | null | spt/features/vag_trace.cpp | lipsanen/SourcePauseTool | 5bc27b63c74a2392803c0471067d2af138c43efd | [
"RSA-MD"
] | null | null | null | #include "stdafx.h"
#if defined(SSDK2007) || defined(SSDK2013)
#include "..\feature.hpp"
#include "icliententity.h"
#include "..\utils\game_detection.hpp"
#include "ent_utils.hpp"
#include "interfaces.hpp"
#include "..\cvars.hpp"
#include "tickrate.hpp"
#include "signals.hpp"
#include "playerio.hpp"
#include "..\overl... | 30.967532 | 129 | 0.568673 | [
"vector"
] |
bc664d53c600907f5e113afcdae6570ea3e6b2af | 895 | cpp | C++ | AtCoder/Educational DP Contest/F.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AtCoder/Educational DP Contest/F.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AtCoder/Educational DP Contest/F.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | /**
* author: MaGnsi0
* created: 29/07/2021 17:04:23
**/
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
string s, t;
cin >> s >> t;
int n = s.size(), m = t.size();
vector<vector<int>> dp(n + 1, vector<int>(m + 1, 0));
... | 26.323529 | 80 | 0.373184 | [
"vector"
] |
bc6df7924c07469cd58d88779287e784220ad119 | 1,767 | cc | C++ | benchmark/prod.cc | s-kanev/gperftools | 6af68f4cc7877deeae43dbe3510047d32f031153 | [
"BSD-3-Clause"
] | null | null | null | benchmark/prod.cc | s-kanev/gperftools | 6af68f4cc7877deeae43dbe3510047d32f031153 | [
"BSD-3-Clause"
] | null | null | null | benchmark/prod.cc | s-kanev/gperftools | 6af68f4cc7877deeae43dbe3510047d32f031153 | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <chrono>
#include <cstdlib>
#include <cstdint>
#include <cstring>
#include <random>
#include <thread>
#include <vector>
#include <pthread.h>
#include "run_benchmark.h"
#include "num_iterations.h"
std::vector<void*> allocated[REPEATS];
std::vector<size_t> free_ind[REPEATS];
static void ... | 21.814815 | 71 | 0.63554 | [
"vector"
] |
bc6fcb907231fadd38b9eb0ad82578cdf58d8b9d | 5,810 | cc | C++ | L1Trigger/TrackFindingTMTT/src/InputData.cc | djcranshaw/cmssw | d66d1b15005a5f253dcbd3704591620e39fe4290 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | L1Trigger/TrackFindingTMTT/src/InputData.cc | djcranshaw/cmssw | d66d1b15005a5f253dcbd3704591620e39fe4290 | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | L1Trigger/TrackFindingTMTT/src/InputData.cc | djcranshaw/cmssw | d66d1b15005a5f253dcbd3704591620e39fe4290 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "SimDataFormats/Track/interface/SimTrack.h"
#include "SimDataFor... | 38.733333 | 113 | 0.744062 | [
"geometry"
] |
bc70e615365c36f21c309539ca05aeac44513626 | 6,419 | cpp | C++ | MAIN/src/main.cpp | MagicRB/MODDABLE_RPG | 567f007b15eead07bac73608a6e980c138553761 | [
"MIT"
] | null | null | null | MAIN/src/main.cpp | MagicRB/MODDABLE_RPG | 567f007b15eead07bac73608a6e980c138553761 | [
"MIT"
] | null | null | null | MAIN/src/main.cpp | MagicRB/MODDABLE_RPG | 567f007b15eead07bac73608a6e980c138553761 | [
"MIT"
] | null | null | null | #include "main.h"
#include <iostream>
#include <map>
#include <cmath>
#include <iomanip>
#include "player.hpp"
#include "door.hpp"
#include "generic_wall.hpp"
bool mouse_left_pressed;
player* pl;
std::vector<std::string> split(const char *str, char c = ' ')
{
std::vector<std::string> result;
do
{
... | 50.148438 | 209 | 0.674871 | [
"vector"
] |
bc77f4152ef00ea8b5d29b2d1a36d6116da70bdd | 2,443 | cpp | C++ | test/SelectTest.cpp | ruszkait/DefQuery | bb2269cd7d918a5ce36cb7a1e9fd426c37370f68 | [
"Apache-2.0"
] | null | null | null | test/SelectTest.cpp | ruszkait/DefQuery | bb2269cd7d918a5ce36cb7a1e9fd426c37370f68 | [
"Apache-2.0"
] | null | null | null | test/SelectTest.cpp | ruszkait/DefQuery | bb2269cd7d918a5ce36cb7a1e9fd426c37370f68 | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include <DefQuery/from.h>
#include <DefQuery/select.h>
#include <list>
TEST(SelectTest, ProjectionTest)
{
std::list<int> list = {1, 2, 3};
auto enumerator = DefQuery::from(list).select([](int a) { return a * 1.5; });
ASSERT_TRUE(++enumerator);
ASSERT_EQ(1.5, *enumerator);
ASSERT_TRUE(+... | 23.718447 | 97 | 0.706918 | [
"vector"
] |
bc7b87a27ac30fa46de35ebe9c997ae158853096 | 8,305 | cpp | C++ | src/algorithms.cpp | vavilovm/photoeditor-project-cpp | c9f5e3ea3476b08e50bbad4befa37b452feae702 | [
"MIT"
] | 1 | 2022-02-14T22:34:13.000Z | 2022-02-14T22:34:13.000Z | src/algorithms.cpp | vavilovm/photoeditor-project-cpp | c9f5e3ea3476b08e50bbad4befa37b452feae702 | [
"MIT"
] | null | null | null | src/algorithms.cpp | vavilovm/photoeditor-project-cpp | c9f5e3ea3476b08e50bbad4befa37b452feae702 | [
"MIT"
] | 1 | 2020-02-27T17:37:11.000Z | 2020-02-27T17:37:11.000Z | //
// Created by mark on 27.02.2020.
//
#include "../include/algorithms.h"
namespace image_algorithms {
using namespace cv;
cv::Mat takePicture(cv::VideoCapture camera) {
cv::Mat image;
while (!camera.isOpened()) {
std::cout << "Failed to make connection to camera" << std::endl;... | 24.865269 | 98 | 0.571463 | [
"transform"
] |
bc960f8627a514dbb3ea801baec4b6264efefb45 | 15,135 | cpp | C++ | Engine/Plugins/MovieScene/ActorSequenceEditor/Source/ActorSequenceEditor/Private/ActorSequenceEditorTabSummoner.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Plugins/MovieScene/ActorSequenceEditor/Source/ActorSequenceEditor/Private/ActorSequenceEditorTabSummoner.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Plugins/MovieScene/ActorSequenceEditor/Source/ActorSequenceEditor/Private/ActorSequenceEditorTabSummoner.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "ActorSequenceEditorTabSummoner.h"
#include "ActorSequence.h"
#include "ISequencer.h"
#include "ISequencerModule.h"
#include "LevelEditorSequencerIntegration.h"
#include "SSCSEditor.h"
#include "SlateIconFinder.h"
#include "BlueprintEditorUtils.h"
... | 28.719165 | 149 | 0.762273 | [
"object"
] |
bc9a85377db909fe3f64313e8ba47eb3ad270527 | 3,245 | cpp | C++ | src/cless/new_blockdt_cl.cpp | roarkhabegger/athena-public-version | 3446d2f4601c1dbbfd7a98d4f53335d97e21e195 | [
"BSD-3-Clause"
] | 1 | 2021-03-05T20:59:04.000Z | 2021-03-05T20:59:04.000Z | src/cless/new_blockdt_cl.cpp | roarkhabegger/athena-public-version | 3446d2f4601c1dbbfd7a98d4f53335d97e21e195 | [
"BSD-3-Clause"
] | null | null | null | src/cless/new_blockdt_cl.cpp | roarkhabegger/athena-public-version | 3446d2f4601c1dbbfd7a98d4f53335d97e21e195 | [
"BSD-3-Clause"
] | 2 | 2019-02-26T18:49:13.000Z | 2019-07-22T17:04:41.000Z | //========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... | 27.974138 | 90 | 0.540832 | [
"mesh",
"3d"
] |
bc9d64e764519fded38757b36353a23aca8c18b0 | 9,196 | cpp | C++ | src/particle_filter.cpp | ramiejleh/Particle-Filter-Localization | 268b2d05795ab21ab828f223176ad5228728b67d | [
"MIT"
] | null | null | null | src/particle_filter.cpp | ramiejleh/Particle-Filter-Localization | 268b2d05795ab21ab828f223176ad5228728b67d | [
"MIT"
] | null | null | null | src/particle_filter.cpp | ramiejleh/Particle-Filter-Localization | 268b2d05795ab21ab828f223176ad5228728b67d | [
"MIT"
] | null | null | null | /**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::string;... | 37.688525 | 123 | 0.671161 | [
"vector",
"transform"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.