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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f78ff73179ac8110e5ebd3c3773fba05f90a3f34 | 1,467 | cpp | C++ | src/driver/model/find_one_and_delete.cpp | hanumantmk/mongo-cxx-driver | 3455d12030d8b10a05bd42a0fcebec13a443ba1b | [
"Apache-2.0"
] | null | null | null | src/driver/model/find_one_and_delete.cpp | hanumantmk/mongo-cxx-driver | 3455d12030d8b10a05bd42a0fcebec13a443ba1b | [
"Apache-2.0"
] | null | null | null | src/driver/model/find_one_and_delete.cpp | hanumantmk/mongo-cxx-driver | 3455d12030d8b10a05bd42a0fcebec13a443ba1b | [
"Apache-2.0"
] | null | null | null | // Copyright 2014 MongoDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 31.212766 | 93 | 0.749148 | [
"model"
] |
f79cc2ac7aa72b6c829dcb91e5d24bf6f8c07d22 | 3,565 | hh | C++ | src/HostManager.hh | VadimNvr/SDN_RunOS | 74df09f78f8672f144a283823b24de3106f8e419 | [
"Apache-2.0"
] | null | null | null | src/HostManager.hh | VadimNvr/SDN_RunOS | 74df09f78f8672f144a283823b24de3106f8e419 | [
"Apache-2.0"
] | null | null | null | src/HostManager.hh | VadimNvr/SDN_RunOS | 74df09f78f8672f144a283823b24de3106f8e419 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Applied Research Center for Computer Networks
*
* 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 b... | 31.830357 | 88 | 0.71136 | [
"object",
"vector",
"model"
] |
f79d19d69863ad7026ef9608cb51020bd50ac4d0 | 5,025 | cpp | C++ | third_party/libSBML-5.11.0-Source/src/sbml/packages/render/sbml/Transformation.cpp | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | third_party/libSBML-5.11.0-Source/src/sbml/packages/render/sbml/Transformation.cpp | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | third_party/libSBML-5.11.0-Source/src/sbml/packages/render/sbml/Transformation.cpp | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | /**
* @file Transformation.cpp
* @brief class representing a 3D affine transformation
* @author Ralph Gauges
*
*/
/* Copyright 2010 Ralph Gauges
*
* This library 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 Fre... | 24.876238 | 101 | 0.699303 | [
"render",
"object",
"3d"
] |
f7a18d5caf0ac1a3ee34f0e8b02be9d2c74f7a14 | 465 | hpp | C++ | src/parser_nodes/continue_parser_node_pre.hpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | src/parser_nodes/continue_parser_node_pre.hpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | src/parser_nodes/continue_parser_node_pre.hpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | //
// Copyright (c) 2020 Erwin Rol <erwin@erwinrol.com>
//
// SPDX-License-Identifier: MIT
//
#ifndef NEDERROCK_SRC_CONTINUE_PARSER_NODE_PRE_HPP
#define NEDERROCK_SRC_CONTINUE_PARSER_NODE_PRE_HPP
#include <memory>
#include <vector>
class Continue_Parser_Node;
using Continue_Parser_Node_Ptr = std::shared_ptr<Continu... | 24.473684 | 74 | 0.823656 | [
"vector"
] |
f7ac9e721a36ea4fb2f876c10dcd0ee0469afad2 | 21,882 | cpp | C++ | src/World.cpp | NguyenTam/air-combat | 715a13c1f7d7b81096b7f6469bca7b80c53e7a03 | [
"MIT"
] | 1 | 2018-12-26T15:40:54.000Z | 2018-12-26T15:40:54.000Z | src/World.cpp | NguyenTam/air-combat | 715a13c1f7d7b81096b7f6469bca7b80c53e7a03 | [
"MIT"
] | null | null | null | src/World.cpp | NguyenTam/air-combat | 715a13c1f7d7b81096b7f6469bca7b80c53e7a03 | [
"MIT"
] | null | null | null | /**
* @file World.cpp
* @brief Source file for class Ẃorld
*/
#include "World.hpp"
/* Class World */
/* Constructor */
World::World(sf::RenderWindow &main_window, ResourceManager &_resources) : resources(_resources), window(main_window) {}
/* Parse level .txt file and create world's entities */
b... | 30.90678 | 177 | 0.613472 | [
"object",
"vector"
] |
fc8de01d35d05b6e4476dde0ebd4d375196f46b1 | 1,295 | cpp | C++ | src/storage/table/persistent_segment.cpp | peterboncz/duckdb | 20031c8137895560a67bbf11b11628f067f057ef | [
"MIT"
] | 1 | 2021-11-01T12:24:40.000Z | 2021-11-01T12:24:40.000Z | src/storage/table/persistent_segment.cpp | peterboncz/duckdb | 20031c8137895560a67bbf11b11628f067f057ef | [
"MIT"
] | null | null | null | src/storage/table/persistent_segment.cpp | peterboncz/duckdb | 20031c8137895560a67bbf11b11628f067f057ef | [
"MIT"
] | null | null | null | #include "duckdb/storage/table/persistent_segment.hpp"
#include "duckdb/common/exception.hpp"
#include "duckdb/common/types/vector.hpp"
#include "duckdb/common/vector_operations/vector_operations.hpp"
#include "duckdb/common/types/null_value.hpp"
#include "duckdb/storage/checkpoint/table_data_writer.hpp"
#include "duck... | 40.46875 | 114 | 0.74749 | [
"vector"
] |
fc8ed370e6b0b00a46f8f06eff02d95cbc879614 | 10,514 | cpp | C++ | src/window.cpp | Salgac/PPGSO-project | 4ad118746fdf22cbf9f91903e42d0429b3c8c87a | [
"MIT"
] | null | null | null | src/window.cpp | Salgac/PPGSO-project | 4ad118746fdf22cbf9f91903e42d0429b3c8c87a | [
"MIT"
] | null | null | null | src/window.cpp | Salgac/PPGSO-project | 4ad118746fdf22cbf9f91903e42d0429b3c8c87a | [
"MIT"
] | null | null | null |
#include <iostream>
#include <vector>
#include <list>
#include <shaders/light_vert_glsl.h>
#include <shaders/light_frag_glsl.h>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/glm.hpp>
#include <glm/gtx/matrix_transform_2d.hpp>
#include <glm/gtx/euler_angles.hpp>
#include <ppgso/ppgso.h>
#include "shapes/cube.cpp"
#i... | 28.263441 | 133 | 0.66635 | [
"mesh",
"render",
"object",
"vector"
] |
fc9341b14be6dea15cbfd10f910d5746e18c3313 | 3,723 | cpp | C++ | Sample4_2/app/src/main/cpp/bndev/SixPointedStar.cpp | luopan007/Vulkan_Develpment_Samples | 1be40631e3b2d44aae7140f0ef17c5643a86545e | [
"Unlicense"
] | 5 | 2020-11-20T00:06:30.000Z | 2021-12-07T11:39:17.000Z | Sample4_2/app/src/main/cpp/bndev/SixPointedStar.cpp | luopan007/Vulkan_Develpment_Samples | 1be40631e3b2d44aae7140f0ef17c5643a86545e | [
"Unlicense"
] | null | null | null | Sample4_2/app/src/main/cpp/bndev/SixPointedStar.cpp | luopan007/Vulkan_Develpment_Samples | 1be40631e3b2d44aae7140f0ef17c5643a86545e | [
"Unlicense"
] | 7 | 2021-01-01T10:54:58.000Z | 2022-01-13T02:21:54.000Z |
#include "SixPointedStar.h"
#include <vector>
#include <math.h>
#include <string.h>
float *SixPointedStar::vdata;
int SixPointedStar::dataByteCount;
int SixPointedStar::vCount;
float toRadians(float degree) {
return degree * 3.1415926535898 / 180;
}
void SixPointedStar::genStarData(float R, float r, float z) {
... | 56.409091 | 99 | 0.409616 | [
"vector"
] |
fca2dc3a83e090b0edcd86003c380a984a839c0e | 6,617 | cpp | C++ | geometry.cpp | kvendy/Notes | 065449c517305db1b4a9ff6475e029d9eb132909 | [
"MIT"
] | null | null | null | geometry.cpp | kvendy/Notes | 065449c517305db1b4a9ff6475e029d9eb132909 | [
"MIT"
] | null | null | null | geometry.cpp | kvendy/Notes | 065449c517305db1b4a9ff6475e029d9eb132909 | [
"MIT"
] | null | null | null | #include "geometry.h"
Position::Position(int x, int y, int width, int height)
{
if (y < BORDER)
vertical_ = Vertical::top;
else if (y > height - BORDER)
vertical_ = Vertical::bottom;
else
vertical_ = Vertical::none;
if (x < CORNER)
horizontal_ = Horizontal::left;
else if (x > width - CORNER)... | 27.686192 | 147 | 0.612815 | [
"geometry",
"shape"
] |
fca6484225a2928f32b41ee2a1a4f8a70c1dde9a | 21,107 | cpp | C++ | dev/Code/Sandbox/Plugins/CryDesigner/Tools/Select/MovePipeline.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Sandbox/Plugins/CryDesigner/Tools/Select/MovePipeline.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Sandbox/Plugins/CryDesigner/Tools/Select/MovePipeline.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 30.326149 | 181 | 0.567063 | [
"vector",
"model"
] |
fcb8f38265b5b4b7b56aaed89d681fdb430565ad | 6,272 | cc | C++ | cc/scrollbar_layer_impl.cc | junmin-zhu/chromium-rivertrail | eb1a57aca71fe68d96e48af8998dcfbe45171ee1 | [
"BSD-3-Clause"
] | null | null | null | cc/scrollbar_layer_impl.cc | junmin-zhu/chromium-rivertrail | eb1a57aca71fe68d96e48af8998dcfbe45171ee1 | [
"BSD-3-Clause"
] | null | null | null | cc/scrollbar_layer_impl.cc | junmin-zhu/chromium-rivertrail | eb1a57aca71fe68d96e48af8998dcfbe45171ee1 | [
"BSD-3-Clause"
] | 1 | 2020-11-04T07:27:33.000Z | 2020-11-04T07:27:33.000Z | // Copyright 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 "config.h"
#include "cc/scrollbar_layer_impl.h"
#include "cc/quad_sink.h"
#include "cc/scrollbar_animation_controller.h"
#include "cc/texture_d... | 30.896552 | 229 | 0.756856 | [
"geometry"
] |
fcc07d2e65e1c7f266d5b9c9e450fb0ab2f12878 | 2,367 | cpp | C++ | Tests/TestingData.cpp | haopan27/BWEM-community | 3f28901d143e55b86a6a4d41d9b82533042d25f7 | [
"X11"
] | 20 | 2018-04-01T21:13:43.000Z | 2021-12-06T02:49:44.000Z | Tests/TestingData.cpp | haopan27/BWEM-community | 3f28901d143e55b86a6a4d41d9b82533042d25f7 | [
"X11"
] | 18 | 2018-04-19T03:10:20.000Z | 2021-06-01T19:02:18.000Z | Tests/TestingData.cpp | haopan27/BWEM-community | 3f28901d143e55b86a6a4d41d9b82533042d25f7 | [
"X11"
] | 11 | 2018-04-13T08:24:56.000Z | 2020-05-09T15:51:51.000Z | #include <vector>
std::vector<std::string> mapsForTest = {
"data/maps/(2)Showdown.scx",
"data/maps/onlywater.scm",
"data/maps/onlydirt.scm",
};
std::vector<std::pair<int, int>> mapTileDimensions = {
{ 64, 192 },
{ 128, 128 },
{ 128, 128 },
};
std::vector<std::pair<int, int>> mapWalkDimensions = {
{ 256, 768 }... | 18.068702 | 61 | 0.552598 | [
"vector"
] |
fcc34e410de770e9cc4a589007bf4a864215d8a7 | 551 | cpp | C++ | acmp.ru/1182/1182_alter.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | acmp.ru/1182/1182_alter.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | acmp.ru/1182/1182_alter.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <set>
#include <vector>
using namespace std;
int main(){
int n, k, m;
int tmpBe, tmpEn;
scanf("%d%d%d", &n,&k,&m);
vector<int> a(n-1, k);
set<int> zeros;
for(int i = 0; i<m; i++)
{
scanf("%d%d", &tmpBe, &tmpEn);
if(zeros.lower_bound(tmpBe)==zer... | 14.128205 | 78 | 0.482759 | [
"vector"
] |
fcc58f08aa98731690e37d9c277178d19b2e156f | 7,603 | cpp | C++ | library/src/RadJav/cpp/RadJavCPPOSScreenInfo.cpp | FogChainInc/RadJavPrivate | 4dd01ba3e36d642ad9c0a1b80cd60b94dbe302d0 | [
"MIT"
] | null | null | null | library/src/RadJav/cpp/RadJavCPPOSScreenInfo.cpp | FogChainInc/RadJavPrivate | 4dd01ba3e36d642ad9c0a1b80cd60b94dbe302d0 | [
"MIT"
] | null | null | null | library/src/RadJav/cpp/RadJavCPPOSScreenInfo.cpp | FogChainInc/RadJavPrivate | 4dd01ba3e36d642ad9c0a1b80cd60b94dbe302d0 | [
"MIT"
] | null | null | null | /*
MIT-LICENSE
Copyright (c) 2017-2018 Higher Edge Software, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, m... | 31.679167 | 123 | 0.683809 | [
"object"
] |
fcc98bd3dcdf0e07d8bcb1dd74821d24133b58c6 | 3,180 | cc | C++ | uARM/src/UarmController.cc | abstractguy/gym_gazebo_kinetic | 61a55966cf66de493b149ad314c1d9b987d1deb9 | [
"MIT"
] | 1 | 2021-06-06T14:12:32.000Z | 2021-06-06T14:12:32.000Z | uARM/src/UarmController.cc | abstractguy/gym_gazebo_kinetic | 61a55966cf66de493b149ad314c1d9b987d1deb9 | [
"MIT"
] | 6 | 2021-04-06T12:35:34.000Z | 2022-03-12T00:58:16.000Z | uARM/src/UarmController.cc | abstractguy/gym_gazebo_kinetic | 61a55966cf66de493b149ad314c1d9b987d1deb9 | [
"MIT"
] | 2 | 2020-03-05T00:09:48.000Z | 2021-06-03T20:06:03.000Z | #include "UarmController.hh"
#include "new_position.pb.h"
namespace gazebo
{
UarmController::UarmController()
{
// initialize the pid controller
for (int i = 0; i < NUM_JOINTS; i++)
{
this->jointPIDs[i] = common::PID(40, 0, 20, 1, -1);
this->jointPositions[i] = 0;
this->jointVelocities[i] = 0;
th... | 32.44898 | 112 | 0.632704 | [
"model"
] |
fccd3f3863a2988c03ffda7182293a88b9b833a0 | 151 | cpp | C++ | src/Task.cpp | nguyentrungduc08/Dinjector | 5f2ebbac60b503c067bdaba707b8f58f164f6e0c | [
"MIT"
] | null | null | null | src/Task.cpp | nguyentrungduc08/Dinjector | 5f2ebbac60b503c067bdaba707b8f58f164f6e0c | [
"MIT"
] | null | null | null | src/Task.cpp | nguyentrungduc08/Dinjector | 5f2ebbac60b503c067bdaba707b8f58f164f6e0c | [
"MIT"
] | null | null | null | #include "Task.h"
Task::Task(){
std::cout << "Create Task object" << std::endl;
}
Task::~Task(){
std::cout << "Release Task object" << std::endl;
} | 16.777778 | 49 | 0.589404 | [
"object"
] |
fcdd46558aa8b397106abd89de08cdf6a964fab8 | 7,119 | cc | C++ | visualdl/logic/sdk_test.cc | nepeplwu/VisualDL | a6928902ca0802419fa337236b71d2db8e669e13 | [
"Apache-2.0"
] | 1 | 2019-08-23T08:42:44.000Z | 2019-08-23T08:42:44.000Z | visualdl/logic/sdk_test.cc | nepeplwu/VisualDL | a6928902ca0802419fa337236b71d2db8e669e13 | [
"Apache-2.0"
] | null | null | null | visualdl/logic/sdk_test.cc | nepeplwu/VisualDL | a6928902ca0802419fa337236b71d2db8e669e13 | [
"Apache-2.0"
] | 1 | 2020-01-29T03:38:35.000Z | 2020-01-29T03:38:35.000Z | /* Copyright (c) 2017 VisualDL Authors. All Rights Reserve.
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 agre... | 29.057143 | 79 | 0.645175 | [
"shape",
"vector",
"model"
] |
fcde58606663feab673bda4832566cf9ef2092f3 | 3,318 | cc | C++ | src/env/binary_interface.cc | mzdun/cxx-modules | aec9a153fa7339f6372d9128964a652d50c116fc | [
"MIT"
] | null | null | null | src/env/binary_interface.cc | mzdun/cxx-modules | aec9a153fa7339f6372d9128964a652d50c116fc | [
"MIT"
] | null | null | null | src/env/binary_interface.cc | mzdun/cxx-modules | aec9a153fa7339f6372d9128964a652d50c116fc | [
"MIT"
] | null | null | null | #include "env/binary_interface.hh"
namespace env {
namespace {
std::u8string append(char8_t ch, std::filesystem::path const& dirname) {
auto result = dirname.generic_u8string();
if (!result.empty() && result.back() != ch) result.push_back(ch);
return result;
}
std::u8string prepend(char8_t ch, std::fi... | 34.5625 | 74 | 0.617541 | [
"vector"
] |
fce0cdc43c1d9a5659fbc5f456d29be35caa8fcd | 2,843 | cpp | C++ | Overdrive/render/vertexarray.cpp | png85/Overdrive | e763827546354c7c75395ab1a82949a685ecb880 | [
"MIT"
] | 41 | 2015-02-21T08:54:00.000Z | 2021-05-11T16:01:29.000Z | Overdrive/render/vertexarray.cpp | png85/Overdrive | e763827546354c7c75395ab1a82949a685ecb880 | [
"MIT"
] | 1 | 2018-05-14T10:02:09.000Z | 2018-05-14T10:02:09.000Z | Overdrive/render/vertexarray.cpp | png85/Overdrive | e763827546354c7c75395ab1a82949a685ecb880 | [
"MIT"
] | 10 | 2015-10-07T05:44:08.000Z | 2020-12-01T09:00:01.000Z | #include "stdafx.h"
#include "vertexarray.h"
#include "gltypes.h"
namespace overdrive {
namespace render {
VertexArray::VertexArray() {
glGenVertexArrays(1, &mHandle);
}
VertexArray::~VertexArray() {
if (mHandle)
glDeleteVertexArrays(1, &mHandle);
}
GLuint VertexArray::getHandle()... | 24.508621 | 101 | 0.624692 | [
"render"
] |
fce646e8d47c2cf5e82bef8f649043316e4944e6 | 5,552 | cpp | C++ | IEProtLib/tf_ops/cc/src/compute_topo_dist.cpp | luwei0917/IEConv_proteins | 9c79ea000c20088fa48234f1868e42883a9b5a21 | [
"MIT"
] | 24 | 2021-03-09T02:42:12.000Z | 2022-03-25T23:48:14.000Z | IEProtLib/tf_ops/cc/src/compute_topo_dist.cpp | luwei0917/IEConv_proteins | 9c79ea000c20088fa48234f1868e42883a9b5a21 | [
"MIT"
] | 1 | 2021-11-05T20:06:16.000Z | 2021-11-05T20:06:16.000Z | IEProtLib/tf_ops/cc/src/compute_topo_dist.cpp | luwei0917/IEConv_proteins | 9c79ea000c20088fa48234f1868e42883a9b5a21 | [
"MIT"
] | 8 | 2021-05-21T14:07:56.000Z | 2022-01-24T09:52:42.000Z | /////////////////////////////////////////////////////////////////////////////
/// \file compute_topo_dist.cpp
///
/// \brief
///
/// \copyright Copyright (c) 2020 Visual Computing group of Ulm University,
/// Germany. See the LICENSE file at the top-level directory of
/// this distribution.
//... | 43.716535 | 128 | 0.576189 | [
"shape"
] |
fce6dca6b07d5475c496132647763205936eb58c | 1,804 | cpp | C++ | src/sources/Pinky.cpp | Mobiletainment/Pacman-DirectX-ClanLib | 2e9490d3dc0e46e21d78b3351b4caf1efaaa4c9a | [
"MIT",
"Unlicense"
] | 2 | 2015-07-11T08:49:38.000Z | 2018-06-17T08:13:52.000Z | src/sources/Pinky.cpp | Mobiletainment/Pacman-DirectX-ClanLib | 2e9490d3dc0e46e21d78b3351b4caf1efaaa4c9a | [
"MIT",
"Unlicense"
] | null | null | null | src/sources/Pinky.cpp | Mobiletainment/Pacman-DirectX-ClanLib | 2e9490d3dc0e46e21d78b3351b4caf1efaaa4c9a | [
"MIT",
"Unlicense"
] | null | null | null | #include "precomp.h"
#include "Pinky.h"
#include "Game.h"
using namespace KI;
Pinky::Pinky(CL_GraphicContext& gc, Tile* startingTile): Ghost(gc, startingTile)
{
SetFrames(2, 3);
patrolTiles[0] = Game::Level->GetTileForSpeedy();
patrolTiles[1] = Game::Level->GetTileAtGridPosition(6,5);
_targetTile = patrolTiles[1... | 26.529412 | 135 | 0.711197 | [
"object"
] |
fcf0734ae5fdd20abcf91a2a2d32bf2bec78c852 | 5,811 | cpp | C++ | src/mandelbrot/mandelbrot.cpp | Toxe/mandelbrot-sfml-imgui | e9375290a475a264c5b57e7678851ffae752d3b0 | [
"MIT"
] | 6 | 2021-04-14T15:49:46.000Z | 2022-03-05T12:39:31.000Z | src/mandelbrot/mandelbrot.cpp | Toxe/mandelbrot-sfml-imgui | e9375290a475a264c5b57e7678851ffae752d3b0 | [
"MIT"
] | null | null | null | src/mandelbrot/mandelbrot.cpp | Toxe/mandelbrot-sfml-imgui | e9375290a475a264c5b57e7678851ffae752d3b0 | [
"MIT"
] | null | null | null | #include "mandelbrot.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <numeric>
#include <SFML/Graphics/Color.hpp>
void mandelbrot_calc(const ImageSize& image, const FractalSection& section, const int max_iterations,
std::vector<CalculationResult>& results_per_point, const Ca... | 47.243902 | 175 | 0.627087 | [
"vector",
"transform"
] |
fcfa1550d0350037a169480db54e2b5b8e9ef3e4 | 5,920 | hpp | C++ | src/collision_tensor/dense/multi_slices_factory.hpp | simonpp/2dBoltzmann | bc6b7bbeffa242ce80937947444383b416ba3fc9 | [
"BSD-3-Clause"
] | null | null | null | src/collision_tensor/dense/multi_slices_factory.hpp | simonpp/2dBoltzmann | bc6b7bbeffa242ce80937947444383b416ba3fc9 | [
"BSD-3-Clause"
] | null | null | null | src/collision_tensor/dense/multi_slices_factory.hpp | simonpp/2dBoltzmann | bc6b7bbeffa242ce80937947444383b416ba3fc9 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <boost/mpl/at.hpp>
#include <cassert>
#include <cstdio>
#include <functional>
#include <iostream>
#include "aux/filtered_range.hpp"
#include "spectral/basis/toolbox/spectral_basis.hpp"
#include "storage/multi_slice.hpp"
namespace boltzmann {
namespace ct_dense {
class multi_slices_factory
{
p... | 35.878788 | 98 | 0.596284 | [
"vector",
"3d"
] |
fcfa3028b731563c508c370b313e54e4be39b919 | 4,246 | hpp | C++ | miniapps/pnp/utils/NonlinearConvection_Integrator.hpp | fanronghong/mfem | 5bc8d5ea1b7e3a0b377423773e78428bf7160612 | [
"BSD-3-Clause"
] | 1 | 2020-04-28T05:08:24.000Z | 2020-04-28T05:08:24.000Z | miniapps/pnp/utils/NonlinearConvection_Integrator.hpp | fanronghong/mfem | 5bc8d5ea1b7e3a0b377423773e78428bf7160612 | [
"BSD-3-Clause"
] | null | null | null | miniapps/pnp/utils/NonlinearConvection_Integrator.hpp | fanronghong/mfem | 5bc8d5ea1b7e3a0b377423773e78428bf7160612 | [
"BSD-3-Clause"
] | null | null | null |
#ifndef _NONLINEAERCONVECTION_INTEGRATOR_HPP_
#define _NONLINEAERCONVECTION_INTEGRATOR_HPP_
#include "mfem.hpp"
#include <iostream>
using namespace mfem;
using namespace std;
// Convective nonlinear term: N(u,u,v) = (u \cdot \nabla u, v), u,v都是向量型的
class VectorConvectionNLFIntegrator : public NonlinearFormIntegrat... | 27.044586 | 81 | 0.492228 | [
"shape",
"vector"
] |
fcfb292069ef0b2bf56e8d836ab0e7cdada41bec | 1,765 | cpp | C++ | refgen/crefgen/tests/costtest.cpp | chipscal/refgen | c59ee977b87a2cf7b2e56c1ef794ee11a93ddcf1 | [
"MIT"
] | 1 | 2020-10-11T15:25:05.000Z | 2020-10-11T15:25:05.000Z | refgen/crefgen/tests/costtest.cpp | chipscal/refgen | c59ee977b87a2cf7b2e56c1ef794ee11a93ddcf1 | [
"MIT"
] | null | null | null | refgen/crefgen/tests/costtest.cpp | chipscal/refgen | c59ee977b87a2cf7b2e56c1ef794ee11a93ddcf1 | [
"MIT"
] | 1 | 2020-12-12T19:44:57.000Z | 2020-12-12T19:44:57.000Z | /****************************************************************************
* Author: Luca Calacci *
* Company: Universita' degli studi di Roma - Tor Vergata *
* Email: luca.calacci@gmail.com *
* *
****************************************************************************... | 23.223684 | 85 | 0.539377 | [
"shape"
] |
fcff8b67e80b2ae8778ffad4d9150a52f8bc45e4 | 1,336 | cpp | C++ | Binary tree/Iterative_Postorder_Traversal.cpp | linyos/GreekForGeeks-Practice | eaabce3ac9e45a86dfb28f2296129c2016e570bf | [
"MIT"
] | null | null | null | Binary tree/Iterative_Postorder_Traversal.cpp | linyos/GreekForGeeks-Practice | eaabce3ac9e45a86dfb28f2296129c2016e570bf | [
"MIT"
] | null | null | null | Binary tree/Iterative_Postorder_Traversal.cpp | linyos/GreekForGeeks-Practice | eaabce3ac9e45a86dfb28f2296129c2016e570bf | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <set>
#include <algorithm>
#include <map>
#include <unordered_set>
#include <time.h>
#include <string>
#include <math.h>
#include <vector>
#include <queue>
#include <stack>
using namespace std;
/// Using Two Stack
class node
{
public:
int data;
node * left, * right ;
... | 16.911392 | 55 | 0.618263 | [
"vector"
] |
1e09e44e6abe7d8c9093450dd3fc64712c7acd1a | 11,183 | cc | C++ | xt_base/ginterf/rgbzimg.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | xt_base/ginterf/rgbzimg.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | xt_base/ginterf/rgbzimg.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 27.27561 | 76 | 0.438612 | [
"render"
] |
1f6ada6d407023135b346d9da78f4b0945c97804 | 17,796 | cpp | C++ | main.cpp | nsf/cppmandel | d43386822522a418a7a7a9c7ade658edf20b612c | [
"MIT"
] | 3 | 2017-11-21T18:26:31.000Z | 2018-09-06T07:08:36.000Z | main.cpp | nsf/cppmandel | d43386822522a418a7a7a9c7ade658edf20b612c | [
"MIT"
] | null | null | null | main.cpp | nsf/cppmandel | d43386822522a418a7a7a9c7ade658edf20b612c | [
"MIT"
] | 2 | 2017-11-26T07:42:02.000Z | 2021-06-18T12:35:06.000Z | #include "Core/BitArray.h"
#include "Core/UniquePtr.h"
#include "Core/Vector.h"
#include "Math/Color.h"
#include "Math/Rect.h"
#include "Math/Utils.h"
#include "Math/Vec.h"
#include "OS/AsyncQueue.h"
#include <complex>
#include <experimental/coroutine>
#include <initializer_list>
#include <SDL2/SDL_opengl.h>
#include ... | 26.286558 | 112 | 0.650764 | [
"object",
"vector"
] |
1f7325928358acaccec6a35a8e1b5dcce7c8a1e8 | 775 | cpp | C++ | square.cpp | amgross/boardHW | 2fb87b55891567d2837d4bdabb20af5bf0b40705 | [
"MIT"
] | null | null | null | square.cpp | amgross/boardHW | 2fb87b55891567d2837d4bdabb20af5bf0b40705 | [
"MIT"
] | null | null | null | square.cpp | amgross/boardHW | 2fb87b55891567d2837d4bdabb20af5bf0b40705 | [
"MIT"
] | null | null | null | //
// Created by arye gross on 04 2018.
//
#include "Board.h"
square::square(){
shape='.';//set on empty
}
char& square::operator=(const char& in){//set operator
if (in!='X'&&in!='O'&&in!='.') throw IllegalCharException(in);
shape=in;
return shape;
}
square& square::operator=(const square& in){//set... | 20.945946 | 66 | 0.620645 | [
"shape"
] |
1f86e83faa98878f86d93fd17db020a2562722be | 17,375 | hpp | C++ | include/lean_vtk.hpp | jellespijker/lean-vtk | 2e58a493779a57413c4b6efc2009c38eb6848a40 | [
"MIT"
] | 21 | 2020-07-30T07:28:04.000Z | 2022-03-18T07:57:55.000Z | include/lean_vtk.hpp | jellespijker/lean-vtk | 2e58a493779a57413c4b6efc2009c38eb6848a40 | [
"MIT"
] | 3 | 2021-09-02T18:19:42.000Z | 2021-09-17T23:23:25.000Z | src/proprietary/core/leanVTK.hpp | kasperjp/cryoPonD | 29cac40f78bc4f37f92cddcdc26493b4729b1963 | [
"BSD-2-Clause"
] | 4 | 2020-07-30T07:28:13.000Z | 2021-10-10T10:21:16.000Z |
#ifndef VTU_WRITER_HPP
#define VTU_WRITER_HPP
#include <string>
#include <cassert>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
namespace leanvtk {
inline int index(int N, int i, int j) {
assert(N > 0);
return i * N + j;
}
template <typename T> class VTKDataNode {
public:
VTKDat... | 45.844327 | 101 | 0.454101 | [
"mesh",
"vector",
"3d"
] |
1f8d01d44f08e4be74a8bb5964d5fd5a253861c4 | 12,914 | hpp | C++ | include/am/succinct/fm-index/range_list.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 31 | 2015-03-03T19:13:42.000Z | 2020-09-03T08:11:56.000Z | include/am/succinct/fm-index/range_list.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 1 | 2016-12-24T00:12:11.000Z | 2016-12-24T00:12:11.000Z | include/am/succinct/fm-index/range_list.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 8 | 2015-09-06T01:55:21.000Z | 2021-12-20T02:16:13.000Z | #ifndef _FM_INDEX_RANGE_LIST_HPP
#define _FM_INDEX_RANGE_LIST_HPP
#include "wavelet_tree_node.hpp"
#include <util/mem_utils.h>
#include <boost/memory.hpp>
#include <boost/tuple/tuple.hpp>
NS_IZENELIB_AM_BEGIN
namespace succinct
{
namespace fm_index
{
typedef boost::tuple<size_t, size_t, double> range_type;
typede... | 24.504744 | 138 | 0.577435 | [
"vector"
] |
1f8d8d277ec171adcd7eeec03dbb65f457f9383b | 5,080 | cpp | C++ | Base/PLScene/src/Scene/SceneNodeModifiers/SNMPositionLinearAnimation.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 1 | 2019-11-09T16:54:04.000Z | 2019-11-09T16:54:04.000Z | Base/PLScene/src/Scene/SceneNodeModifiers/SNMPositionLinearAnimation.cpp | naetherm/pixelligh | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLScene/src/Scene/SceneNodeModifiers/SNMPositionLinearAnimation.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | null | null | null | /*********************************************************\
* File: SNMPositionLinearAnimation.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 36.546763 | 168 | 0.565945 | [
"vector"
] |
1f8f88c50e5dfeedcac28825f09565d04adf190e | 640 | hpp | C++ | Editor/Code/Editor/Editor.hpp | cugone/Abrams2019 | 0b94c43275069275bbbeadfa773c336fa1947882 | [
"MIT"
] | 1 | 2020-07-14T06:58:50.000Z | 2020-07-14T06:58:50.000Z | Editor/Code/Editor/Editor.hpp | cugone/Abrams2019 | 0b94c43275069275bbbeadfa773c336fa1947882 | [
"MIT"
] | 1 | 2020-04-06T06:52:11.000Z | 2020-04-06T06:52:19.000Z | Editor/Code/Editor/Editor.hpp | cugone/Abrams2019 | 0b94c43275069275bbbeadfa773c336fa1947882 | [
"MIT"
] | 2 | 2019-05-01T21:49:33.000Z | 2021-04-01T08:22:21.000Z | #pragma once
#include "Engine/Game/GameBase.hpp"
class Editor : public GameBase {
public:
void Initialize() noexcept override;
void BeginFrame() noexcept override;
void Update(TimeUtils::FPSeconds deltaSeconds) noexcept override;
void Render() const noexcept override;
void EndFrame() noexcept over... | 25.6 | 69 | 0.7375 | [
"render"
] |
1f93dfa3da068080f13f38e611c1c3596f7b7a38 | 2,153 | cpp | C++ | Game/Scorpio/src/PhysicsSimulation/PS_BoxCollider.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Scorpio/src/PhysicsSimulation/PS_BoxCollider.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Scorpio/src/PhysicsSimulation/PS_BoxCollider.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "PS_BoxCollider.h"
//------------------------------------------------------------------------------
PS_BoxCollider::PS_BoxCollider(const PS_Vector3& extents)
: PS_MovableCollider()
, mExtents(extents)
, mHalfExtents(extents / 2)
{
assert(extents.x > 0 && extents.y > 0 && extents.z > 0);
}
//--... | 29.902778 | 102 | 0.489085 | [
"transform"
] |
1f95dfe64098db188f46991baf9479894f435493 | 2,696 | cpp | C++ | tests/src/TestHalfEdgeMesh.cpp | educelab/OpenABF | 8b8c7cfc23e7bef21979f54099f19d28eba0e682 | [
"Apache-2.0"
] | 10 | 2021-03-12T17:39:19.000Z | 2022-01-24T03:58:32.000Z | tests/src/TestHalfEdgeMesh.cpp | educelab/OpenABF | 8b8c7cfc23e7bef21979f54099f19d28eba0e682 | [
"Apache-2.0"
] | null | null | null | tests/src/TestHalfEdgeMesh.cpp | educelab/OpenABF | 8b8c7cfc23e7bef21979f54099f19d28eba0e682 | [
"Apache-2.0"
] | 3 | 2021-03-12T17:39:21.000Z | 2022-01-04T13:30:08.000Z | #include <gtest/gtest.h>
#include "OpenABF/OpenABF.hpp"
using namespace OpenABF;
template <typename T>
auto ConstructPyramid() -> typename HalfEdgeMesh<T>::Pointer
{
auto mesh = HalfEdgeMesh<T>::New();
mesh->insert_vertex(0, 0, 0);
mesh->insert_vertex(2, 0, 0);
mesh->insert_vertex(1, std::sqrt(3), 0)... | 29.626374 | 77 | 0.645772 | [
"mesh",
"geometry"
] |
1f96363abc5bfe09d388ece8a985c365194387ed | 5,213 | cpp | C++ | source/Parameters_openReadsFiles.cpp | fossabot/STAR-1 | e2e036b1fd47eb44eb4a8afed0eab2f11bd20324 | [
"MIT"
] | 1 | 2022-03-08T13:42:23.000Z | 2022-03-08T13:42:23.000Z | source/Parameters_openReadsFiles.cpp | pascalg/STAR | ecec9ee35da0d4920ae64038cfb8fc59cef2e0ca | [
"MIT"
] | null | null | null | source/Parameters_openReadsFiles.cpp | pascalg/STAR | ecec9ee35da0d4920ae64038cfb8fc59cef2e0ca | [
"MIT"
] | null | null | null | #include "Parameters.h"
#include "ErrorWarning.h"
#include <fstream>
#include <sys/stat.h>
void Parameters::openReadsFiles()
{
if (readFilesCommandString=="") {//read from file
for (uint ii=0;ii<readFilesIn.size();ii++) {//open readIn files
readFilesCommandPID[ii]=0;//no command process IDs
... | 46.544643 | 130 | 0.564358 | [
"vector"
] |
1f98151e714ad03b577e1720239abf8417e2e90c | 9,086 | cpp | C++ | src/test/cpp/src/ExpectedInPlaceGenMatRowIndsGenMat.cpp | SRAhub/ArmadilloJava | 061121e22708111a8df3a2da92f6278c3a581e26 | [
"MIT"
] | 3 | 2016-10-04T03:51:35.000Z | 2016-11-27T03:41:44.000Z | src/test/cpp/src/ExpectedInPlaceGenMatRowIndsGenMat.cpp | sebiniemann/ArmadilloJava | 061121e22708111a8df3a2da92f6278c3a581e26 | [
"MIT"
] | 33 | 2019-10-20T21:53:37.000Z | 2019-10-20T21:53:47.000Z | src/test/cpp/src/ExpectedInPlaceGenMatRowIndsGenMat.cpp | sebiniemann/ArmadilloJava | 061121e22708111a8df3a2da92f6278c3a581e26 | [
"MIT"
] | 2 | 2020-08-06T17:01:28.000Z | 2021-06-16T18:45:14.000Z | /*******************************************************************************
* Copyright 2013-2014 Sebastian Niemann <niemann@sra.uni-hannover.de>.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 24.690217 | 80 | 0.513207 | [
"vector"
] |
1fafde4e5f83372a125ffda0fe809e755571469b | 6,643 | cpp | C++ | src/Scanner.cpp | sousajf1/loxs | a5301c308b5c2df4f6d2e0865d47065bf3ef7984 | [
"Unlicense"
] | 1 | 2021-06-23T07:47:30.000Z | 2021-06-23T07:47:30.000Z | src/Scanner.cpp | sousajf1/loxs | a5301c308b5c2df4f6d2e0865d47065bf3ef7984 | [
"Unlicense"
] | 5 | 2021-06-30T15:07:34.000Z | 2021-08-03T10:25:24.000Z | src/Scanner.cpp | sousajf1/loxs | a5301c308b5c2df4f6d2e0865d47065bf3ef7984 | [
"Unlicense"
] | null | null | null | #include "Scanner.hpp"
namespace loxs {
/* Helper functions to add tokens to tokens list */
void Scanner::addToken(TokenType type, std::any literal) {
auto sub_string = source.substr(start, current-start);
tokens.emplace_back(Token(type, sub_string, std::move(literal), line));
}
/* Hel... | 33.049751 | 87 | 0.485473 | [
"vector"
] |
1fb08e1ca3881916daadfcd2e5eb77446efbc86b | 662 | hpp | C++ | Include/SA/Render/Base/Texture/RawCubemap.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | 1 | 2022-01-20T23:17:18.000Z | 2022-01-20T23:17:18.000Z | Include/SA/Render/Base/Texture/RawCubemap.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | Include/SA/Render/Base/Texture/RawCubemap.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Sapphire's Suite. All Rights Reserved.
#pragma once
#ifndef SAPPHIRE_RENDER_RAW_CUBEMAP_GUARD
#define SAPPHIRE_RENDER_RAW_CUBEMAP_GUARD
#include <SA/Render/Base/Texture/RawTexture.hpp>
namespace Sa
{
struct RawCubemap : public RawTexture
{
std::vector<char> irradiancemapData;
// Maximu... | 20.060606 | 64 | 0.753776 | [
"render",
"vector"
] |
1fb866e601c8cbec8c7bfe5767b368b38a06f6ef | 1,236 | hpp | C++ | PlatformerEngine/core/Map.hpp | pixelpicosean/PlatformerEngine | 2093289bac9fd7de53bfa64a445c05c3d30dff86 | [
"MIT"
] | 1 | 2020-11-03T16:04:25.000Z | 2020-11-03T16:04:25.000Z | PlatformerEngine/core/Map.hpp | pixelpicosean/PlatformerEngine | 2093289bac9fd7de53bfa64a445c05c3d30dff86 | [
"MIT"
] | null | null | null | PlatformerEngine/core/Map.hpp | pixelpicosean/PlatformerEngine | 2093289bac9fd7de53bfa64a445c05c3d30dff86 | [
"MIT"
] | null | null | null | //
// Map.hpp
// PlatformerEngine
//
// Created by Sean on 10/3/16.
// Copyright © 2016 Sean. All rights reserved.
//
#ifndef Map_hpp
#define Map_hpp
#include <vector>
#include <SFML/Graphics.hpp>
using namespace sf;
typedef int TileType;
const TileType EMPTY = 0;
const TileType BLOCK = 1;
const TileType ON... | 19.935484 | 76 | 0.654531 | [
"render",
"vector"
] |
1fb9933db5605770f3aef66ebd01a31568c3b589 | 705 | hh | C++ | extern/typed-geometry/src/typed-geometry/detail/operators/ops_size.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/typed-geometry/src/typed-geometry/detail/operators/ops_size.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/typed-geometry/src/typed-geometry/detail/operators/ops_size.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #pragma once
#include <typed-geometry/detail/macros.hh>
#include <typed-geometry/detail/scalar_traits.hh>
#include <typed-geometry/types/size.hh>
namespace tg
{
// size +- size = size
TG_IMPL_DEFINE_BINARY_OP(size, size, size, +);
TG_IMPL_DEFINE_BINARY_OP(size, size, size, -);
// size */ size = size
TG_IMPL_DEFINE_B... | 26.111111 | 49 | 0.760284 | [
"geometry"
] |
1fc07e85eecac95c015fbb330f77856f43a15c68 | 913 | cpp | C++ | src/sfml-test.cpp | ChristianFrisson/mxe | 3451656eb93f3f31ab24f388409aadef6bcafcaf | [
"MIT"
] | 4 | 2017-08-12T08:03:47.000Z | 2019-10-08T13:21:54.000Z | src/sfml-test.cpp | ChristianFrisson/mxe | 3451656eb93f3f31ab24f388409aadef6bcafcaf | [
"MIT"
] | null | null | null | src/sfml-test.cpp | ChristianFrisson/mxe | 3451656eb93f3f31ab24f388409aadef6bcafcaf | [
"MIT"
] | 4 | 2015-02-04T00:24:38.000Z | 2018-11-24T12:40:31.000Z | /*
* This file is part of MXE.
* See index.html for further information.
*/
#include <SFML/Audio.hpp>
#include <SFML/Network.hpp>
#include <SFML/Graphics.hpp>
using namespace sf;
int main()
{
// Create the main window
RenderWindow window(VideoMode(800, 600), "SFML window");
Music music;
Texture t... | 19.425532 | 60 | 0.56736 | [
"shape"
] |
1fc28c9f176eb175cd166d84912b267dc46337d1 | 4,179 | cpp | C++ | src/soulblight/BelladammaVolga.cpp | rweyrauch/AoSSimulator | d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b | [
"MIT"
] | 5 | 2019-02-01T01:41:19.000Z | 2021-06-17T02:16:13.000Z | src/soulblight/BelladammaVolga.cpp | rweyrauch/AoSSimulator | d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b | [
"MIT"
] | 2 | 2020-01-14T16:57:42.000Z | 2021-04-01T00:53:18.000Z | src/soulblight/BelladammaVolga.cpp | rweyrauch/AoSSimulator | d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b | [
"MIT"
] | 1 | 2019-03-02T20:03:51.000Z | 2019-03-02T20:03:51.000Z | /*
* Warhammer Age of Sigmar battle simulator.
*
* Copyright (C) 2021 by Rick Weyrauch - rpweyrauch@gmail.com
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include <soulblight/BelladammaVolga.h>
#include <UnitFactory.h>
#include <spells/MysticShield.h>
#include <B... | 36.33913 | 126 | 0.610433 | [
"model"
] |
1fc2a5882bb285aa3bc8f2b8226c60cb733e9acc | 860 | hpp | C++ | C++/Multiplayer/Step 5 - Weapons/shared/entities/Create.hpp | ProfPorkins/GameTech | aa45062d9003c593bf19f65708efcb99a13063c3 | [
"MIT"
] | 13 | 2016-07-14T16:27:25.000Z | 2021-03-31T23:32:46.000Z | C++/Multiplayer/Step 5 - Weapons/shared/entities/Create.hpp | ProfPorkins/GameTech | aa45062d9003c593bf19f65708efcb99a13063c3 | [
"MIT"
] | 5 | 2018-03-22T16:11:39.000Z | 2021-05-30T16:34:06.000Z | C++/Multiplayer/Step 5 - Weapons/shared/entities/Create.hpp | ProfPorkins/GameTech | aa45062d9003c593bf19f65708efcb99a13063c3 | [
"MIT"
] | 6 | 2018-03-22T16:00:02.000Z | 2020-04-11T12:46:23.000Z | #pragma once
#include "entities/Entity.hpp"
#include "misc/math.hpp"
#include <chrono>
#include <memory>
#include <string>
// --------------------------------------------------------------
//
// Function to create a player entity
//
// --------------------------------------------------------------
namespace entities... | 31.851852 | 168 | 0.515116 | [
"vector"
] |
1fc5de23c85165d1960bc3d5fe90008c71b5c4da | 1,361 | cpp | C++ | crack-data-structures-and-algorithms/leetcode/clone_graph_q133.cpp | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 20 | 2016-05-16T11:09:04.000Z | 2021-12-08T09:30:33.000Z | crack-data-structures-and-algorithms/leetcode/clone_graph_q133.cpp | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 1 | 2018-12-30T09:55:31.000Z | 2018-12-30T14:08:30.000Z | crack-data-structures-and-algorithms/leetcode/clone_graph_q133.cpp | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 11 | 2016-05-02T09:17:12.000Z | 2021-12-08T09:30:35.000Z | #include <deque>
#include <unordered_map>
using namespace std;
// Definition for a Node.
class Node {
public:
int val;
vector<Node*> neighbors;
Node() {
val = 0;
neighbors = vector<Node*>();
}
Node(int _val) {
val = _val;
neighbors = vector<Node*>();
}
No... | 22.311475 | 61 | 0.525349 | [
"vector"
] |
1fcfdd0090cd094f42fa463aa688792030eccd38 | 8,337 | cpp | C++ | src/watchman.cpp | tidev/winreglib | 86e303b1f2763939d7427e24d6d30bc6358a3ff8 | [
"Apache-2.0"
] | 2 | 2022-03-10T12:41:09.000Z | 2022-03-10T12:41:23.000Z | src/watchman.cpp | tidev/winreglib | 86e303b1f2763939d7427e24d6d30bc6358a3ff8 | [
"Apache-2.0"
] | 2 | 2019-09-08T11:18:52.000Z | 2021-08-31T19:52:08.000Z | src/watchman.cpp | tidev/winreglib | 86e303b1f2763939d7427e24d6d30bc6358a3ff8 | [
"Apache-2.0"
] | 2 | 2019-09-08T11:19:09.000Z | 2021-09-10T11:47:50.000Z | #include "watchman.h"
#include <list>
#include <node_api.h>
#include <sstream>
using namespace winreglib;
static void execute(napi_env env, void* data) {
((Watchman*)data)->run();
}
static void complete(napi_env env, napi_status status, void* data) {
LOG_DEBUG("Watchman::complete", L"Worker thread exited")
}
/**
... | 29.88172 | 134 | 0.665107 | [
"vector"
] |
9511fcbf8bee824854859c9893a5efa243b18688 | 1,229 | cpp | C++ | src/processor.cpp | Gary9/CppND-System-Monitor | 111dfe73c1eef79139cd85854e27bfe1e3811897 | [
"MIT"
] | null | null | null | src/processor.cpp | Gary9/CppND-System-Monitor | 111dfe73c1eef79139cd85854e27bfe1e3811897 | [
"MIT"
] | null | null | null | src/processor.cpp | Gary9/CppND-System-Monitor | 111dfe73c1eef79139cd85854e27bfe1e3811897 | [
"MIT"
] | null | null | null | #include "processor.h"
#include <iostream>
#include <vector>
// Return the aggregate CPU utilization
//With help from https://stackoverflow.com/questions/23367857/accurate-calculation-of-cpu-usage-given-in-percentage-in-linux
float Processor::Utilization() {
Jiffies(LinuxParser::CpuUtilization()) ;
... | 32.342105 | 124 | 0.632221 | [
"vector"
] |
95166e1e76344a7aa13bd9b98a115f63dc180dc5 | 536 | cpp | C++ | LeetCode/Solutions/LC0859.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | LeetCode/Solutions/LC0859.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | LeetCode/Solutions/LC0859.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | /*
Problem Statement: https://leetcode.com/problems/buddy-strings/
Time: O(n)
Space: O(26)
Author: Mohammed Shoaib, github.com/Mohammed-Shoaib
*/
class Solution {
public:
bool buddyStrings(string A, string B) {
bool dup = false;
int swaps = 0, n = A.length();
vector<int> freq_a(26), freq_b(26);
if (n != B.... | 20.615385 | 63 | 0.570896 | [
"vector"
] |
95186cff6506cc40134706a751b72789c7d66379 | 5,634 | cpp | C++ | as/src/v20180419/model/CreateAutoScalingGroupFromInstanceRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | as/src/v20180419/model/CreateAutoScalingGroupFromInstanceRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | as/src/v20180419/model/CreateAutoScalingGroupFromInstanceRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* 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
... | 28.892308 | 108 | 0.758786 | [
"model"
] |
9523b862936eaaee667042c47d9882710a8e4e9c | 1,447 | cpp | C++ | cpp/leetcode/GrumpyBookstore.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/GrumpyBookstore.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/GrumpyBookstore.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | //Leetcode Problem No 1052. Grumpy Bookstore Owner
//Solution written by Xuqiang Fang on 26 May, 2019
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include <stack>
#include <queue>
using namespace std;
class Solution {
public:
int m... | 24.948276 | 66 | 0.422253 | [
"vector"
] |
95250c61abd3a58d11df9f38b8380313f162c712 | 4,734 | cc | C++ | src/modular/bin/sessionmgr/annotations.cc | EnderNightLord-ChromeBook/fuchsia-pine64-pinephone | 05e2c059b57b6217089090a0315971d1735ecf57 | [
"BSD-3-Clause"
] | 14 | 2020-10-25T05:48:36.000Z | 2021-09-20T02:46:20.000Z | src/modular/bin/sessionmgr/annotations.cc | JokeZhang/fuchsia | d6e9dea8dca7a1c8fa89d03e131367e284b30d23 | [
"BSD-3-Clause"
] | null | null | null | src/modular/bin/sessionmgr/annotations.cc | JokeZhang/fuchsia | d6e9dea8dca7a1c8fa89d03e131367e284b30d23 | [
"BSD-3-Clause"
] | 2 | 2020-10-25T01:13:49.000Z | 2020-10-26T02:32:13.000Z | // Copyright 2019 The Fuchsia 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 "src/modular/bin/sessionmgr/annotations.h"
namespace modular::annotations {
using Annotation = fuchsia::modular::Annotation;
std::vector<Annota... | 33.814286 | 100 | 0.681876 | [
"vector",
"transform"
] |
9526f926712573728e7ae82f840efa25b19c9387 | 56,812 | hxx | C++ | xsd-4.0.0/xsd/cxx/tree/date-time.hxx | beroset/OpenADR-VEN-Library | 16546464fe1dc714a126474aaadf75483ec9cbc6 | [
"Apache-2.0"
] | 12 | 2016-09-21T19:07:13.000Z | 2021-12-13T06:17:36.000Z | xsd-4.0.0/xsd/cxx/tree/date-time.hxx | beroset/OpenADR-VEN-Library | 16546464fe1dc714a126474aaadf75483ec9cbc6 | [
"Apache-2.0"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | xsd-4.0.0/xsd/cxx/tree/date-time.hxx | beroset/OpenADR-VEN-Library | 16546464fe1dc714a126474aaadf75483ec9cbc6 | [
"Apache-2.0"
] | 12 | 2018-06-10T10:52:56.000Z | 2020-12-08T15:47:13.000Z | // file : xsd/cxx/tree/date-time.hxx
// copyright : Copyright (c) 2005-2014 Code Synthesis Tools CC
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
/**
* @file
*
* @brief Contains C++ class definitions for the XML Schema date/time types.
*
* This is an internal header and is included by... | 29.119426 | 78 | 0.528779 | [
"object"
] |
952ec4e16750476dcfa19e52acf96bf6f82debe5 | 1,822 | cpp | C++ | octree/octree/filenames.cpp | pauldinh/O-CNN | fecefd92b559bdfe94a3983b2b010645167c41a1 | [
"MIT"
] | 299 | 2019-05-27T02:18:56.000Z | 2022-03-31T15:29:20.000Z | octree/octree/filenames.cpp | pauldinh/O-CNN | fecefd92b559bdfe94a3983b2b010645167c41a1 | [
"MIT"
] | 100 | 2019-05-07T03:17:01.000Z | 2022-03-30T09:02:04.000Z | octree/octree/filenames.cpp | pauldinh/O-CNN | fecefd92b559bdfe94a3983b2b010645167c41a1 | [
"MIT"
] | 84 | 2019-05-17T17:44:06.000Z | 2022-02-14T04:32:02.000Z | #include "filenames.h"
#include <algorithm>
string extract_path(string str) {
std::replace(str.begin(), str.end(), '\\', '/');
size_t pos = str.rfind('/');
if (string::npos == pos) {
return string(".");
} else {
return str.substr(0, pos);
}
}
string extract_filename(string str) {
std::replace(str... | 21.186047 | 82 | 0.653128 | [
"vector",
"transform"
] |
953071e411e67124d1e104ecd56ddf7cab50a156 | 16,633 | cc | C++ | servlib/conv_layers/ConnectionConvergenceLayer.cc | LeoIannacone/dtn | b7ee725bb147e29cc05ac8790b1d24efcd9f841e | [
"Apache-2.0"
] | 2 | 2017-10-29T11:15:47.000Z | 2019-09-15T13:43:25.000Z | servlib/conv_layers/ConnectionConvergenceLayer.cc | LeoIannacone/dtn | b7ee725bb147e29cc05ac8790b1d24efcd9f841e | [
"Apache-2.0"
] | null | null | null | servlib/conv_layers/ConnectionConvergenceLayer.cc | LeoIannacone/dtn | b7ee725bb147e29cc05ac8790b1d24efcd9f841e | [
"Apache-2.0"
] | 3 | 2015-03-27T05:56:05.000Z | 2020-01-02T22:18:02.000Z | /*
* Copyright 2006 Intel Corporation
*
* 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 a... | 35.016842 | 85 | 0.561474 | [
"object"
] |
9533caede1f306f6d62404de5853ca72c062fdb9 | 5,325 | cc | C++ | decoder/ff_rules.cc | kho/cdec | d88186af251ecae60974b20395ce75807bfdda35 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 114 | 2015-01-11T05:41:03.000Z | 2021-08-31T03:47:12.000Z | decoder/ff_rules.cc | kho/cdec | d88186af251ecae60974b20395ce75807bfdda35 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 29 | 2015-01-09T01:00:09.000Z | 2019-09-25T06:04:02.000Z | decoder/ff_rules.cc | kho/cdec | d88186af251ecae60974b20395ce75807bfdda35 | [
"BSD-3-Clause-LBNL",
"Apache-2.0"
] | 50 | 2015-02-13T13:48:39.000Z | 2019-08-07T09:45:11.000Z | #include "ff_rules.h"
#include <sstream>
#include <cassert>
#include <cmath>
#include "filelib.h"
#include "stringlib.h"
#include "sentence_metadata.h"
#include "lattice.h"
#include "fdict.h"
#include "verbose.h"
#include "tdict.h"
#include "hg.h"
#include "trule.h"
using namespace std;
namespace {
string Escape(... | 33.074534 | 94 | 0.534085 | [
"vector"
] |
953495c8494b792fc72648c57405b1a066452124 | 2,888 | hpp | C++ | libs/ledger/include/ledger/identifier.hpp | devjsc/ledger | 5681480faf6e2aeee577f149c17745d6ab4d4ab3 | [
"Apache-2.0"
] | 1 | 2019-09-11T09:46:04.000Z | 2019-09-11T09:46:04.000Z | libs/ledger/include/ledger/identifier.hpp | devjsc/ledger | 5681480faf6e2aeee577f149c17745d6ab4d4ab3 | [
"Apache-2.0"
] | null | null | null | libs/ledger/include/ledger/identifier.hpp | devjsc/ledger | 5681480faf6e2aeee577f149c17745d6ab4d4ab3 | [
"Apache-2.0"
] | 1 | 2019-09-19T12:38:46.000Z | 2019-09-19T12:38:46.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... | 30.723404 | 99 | 0.638504 | [
"vector"
] |
953a913cad24e11ce42f2f3a60cdf46e982e200e | 23,037 | cpp | C++ | tests/test-generic-solver.cpp | cdonovick/smt-switch | 27857defa356b5178935e5e75b5958145eafef1c | [
"BSD-3-Clause"
] | null | null | null | tests/test-generic-solver.cpp | cdonovick/smt-switch | 27857defa356b5178935e5e75b5958145eafef1c | [
"BSD-3-Clause"
] | 3 | 2020-11-04T22:30:05.000Z | 2021-02-24T23:33:04.000Z | tests/test-generic-solver.cpp | lstuntz/smt-switch | 15f796bc1692a44a984dfed78425ce084b25d4dc | [
"BSD-3-Clause"
] | null | null | null | /********************* */
/*! \file test-generic-solver.cpp
** \verbatim
** Top contributors (to current version):
** Yoni Zohar
** This file is part of the smt-switch project.
** Copyright (c) 2020 by the authors listed in the file AUTHORS
** in the top-level so... | 24.352008 | 80 | 0.665538 | [
"vector"
] |
953c0f380ea48bb5e6bf7ccd14e13f16b0fc82d3 | 4,615 | cpp | C++ | ASTWrapper/KLStmt.cpp | leegoonz/FabricServices | 8f5bd5eb753b4aba64aab8a251cc677763b26b28 | [
"BSD-3-Clause"
] | 1 | 2017-12-04T16:56:13.000Z | 2017-12-04T16:56:13.000Z | ASTWrapper/KLStmt.cpp | leegoonz/FabricServices | 8f5bd5eb753b4aba64aab8a251cc677763b26b28 | [
"BSD-3-Clause"
] | null | null | null | ASTWrapper/KLStmt.cpp | leegoonz/FabricServices | 8f5bd5eb753b4aba64aab8a251cc677763b26b28 | [
"BSD-3-Clause"
] | 1 | 2021-08-21T21:52:02.000Z | 2021-08-21T21:52:02.000Z | // Copyright 2010-2015 Fabric Software Inc. All rights reserved.
#include "KLStmt.h"
#include "KLCompoundStmt.h"
#include "KLConditionalStmt.h"
#include "KLCStyleLoopStmt.h"
#include "KLSwitchStmt.h"
#include "KLCaseStmt.h"
#include "KLVarDeclStmt.h"
#include "KLExprStmt.h"
#include "KLLocation.h"
#include <limits.h>... | 23.426396 | 110 | 0.673239 | [
"vector"
] |
953c115a9cafd9bbc9a483e0df6c169d863b0067 | 10,920 | cpp | C++ | src/Util.cpp | shieldai/AdaptiveShielding | d281b5541139a3e9e6de003392790bb2298075c6 | [
"MIT"
] | null | null | null | src/Util.cpp | shieldai/AdaptiveShielding | d281b5541139a3e9e6de003392790bb2298075c6 | [
"MIT"
] | null | null | null | src/Util.cpp | shieldai/AdaptiveShielding | d281b5541139a3e9e6de003392790bb2298075c6 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <cassert>
#include <sys/stat.h>
#include <fstream>
#include <fcntl.h>
#include <iostream>
#include <wait.h>
#include <boost/program_options.hpp>
#include <boost/algorithm/string/trim.hpp>
#include "Util.h"
struct configInfo gConfig;
std::vector<struct blockEventInfo> re... | 31.652174 | 116 | 0.623718 | [
"vector"
] |
95436e91c0caaab0b2a03928a2f3bc78c7222a7e | 1,218 | hh | C++ | src/math/MatrixEntries.hh | kwisniew/devsim | 3a7c1e9c4d28a8a6f9e7a43e5d5475ea2cdfe138 | [
"Apache-2.0"
] | null | null | null | src/math/MatrixEntries.hh | kwisniew/devsim | 3a7c1e9c4d28a8a6f9e7a43e5d5475ea2cdfe138 | [
"Apache-2.0"
] | null | null | null | src/math/MatrixEntries.hh | kwisniew/devsim | 3a7c1e9c4d28a8a6f9e7a43e5d5475ea2cdfe138 | [
"Apache-2.0"
] | null | null | null | /***
DEVSIM
Copyright 2013 Devsim LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | 25.914894 | 72 | 0.756979 | [
"vector"
] |
9546317958c16d14b387cf181e9f40b7be60f7e4 | 3,124 | cpp | C++ | code/hologine_platform/hologine/core/threading/thread.cpp | aaronbolyard/hologine | 6fd07d28c6acfd9cfc49b3efa55b23c95240374e | [
"MIT"
] | 3 | 2015-02-23T21:32:18.000Z | 2017-08-14T10:34:52.000Z | code/hologine_platform/hologine/core/threading/thread.cpp | aaronbolyard/hologine | 6fd07d28c6acfd9cfc49b3efa55b23c95240374e | [
"MIT"
] | null | null | null | code/hologine_platform/hologine/core/threading/thread.cpp | aaronbolyard/hologine | 6fd07d28c6acfd9cfc49b3efa55b23c95240374e | [
"MIT"
] | null | null | null | #include "core/exception.hpp"
#include "core/threading/thread.hpp"
const holo::thread_return_status holo::thread_return_status_ok = 0;
holo::thread::thread()
{
init_argument(nullptr, nullptr);
}
holo::thread::thread(holo::thread_callback callback, void* userdata)
{
// The callback must be valid (otherwise just use... | 21.108108 | 102 | 0.729834 | [
"object"
] |
9546ba4aeda6b5e2ef00c52135eda80589d7f7c0 | 502,220 | cc | C++ | EnergyPlus/SetPointManager.cc | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | EnergyPlus/SetPointManager.cc | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | 1 | 2020-07-08T13:32:09.000Z | 2020-07-08T13:32:09.000Z | EnergyPlus/SetPointManager.cc | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | // EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Batt... | 55.758854 | 204 | 0.584328 | [
"object",
"model"
] |
954f2027ed5773d964087a654b578fce495acffa | 34,918 | cpp | C++ | opencl/bmfr.cpp | TheVaffel/bmfr | 163fc5e11f2008e36366828d7d293494a856b7dd | [
"MIT"
] | null | null | null | opencl/bmfr.cpp | TheVaffel/bmfr | 163fc5e11f2008e36366828d7d293494a856b7dd | [
"MIT"
] | null | null | null | opencl/bmfr.cpp | TheVaffel/bmfr | 163fc5e11f2008e36366828d7d293494a856b7dd | [
"MIT"
] | null | null | null | /* The MIT License (MIT)
*
* Copyright (c) 2019 Matias Koskela / Tampere University
* Copyright (c) 2018 Kalle Immonen / Tampere University of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... | 38.711752 | 148 | 0.669397 | [
"object",
"vector"
] |
9558a4ebd55c9e74f7004f99fdc941fb19099fb7 | 18,991 | hpp | C++ | include/OpenFrames/ReferenceFrame.hpp | ravidavi/OpenFrames | 67cce87f1ccd23df91d6d070d86c06ceb180dadb | [
"Apache-2.0"
] | 26 | 2017-08-16T18:17:50.000Z | 2022-03-11T10:23:52.000Z | include/OpenFrames/ReferenceFrame.hpp | ravidavi/OpenFrames | 67cce87f1ccd23df91d6d070d86c06ceb180dadb | [
"Apache-2.0"
] | 4 | 2018-10-18T12:31:19.000Z | 2020-08-12T08:59:25.000Z | include/OpenFrames/ReferenceFrame.hpp | ravidavi/OpenFrames | 67cce87f1ccd23df91d6d070d86c06ceb180dadb | [
"Apache-2.0"
] | 11 | 2018-09-10T18:29:07.000Z | 2022-03-09T13:53:52.000Z | /***********************************
Copyright 2020 Ravishankar Mathur
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... | 31.864094 | 128 | 0.635038 | [
"vector",
"transform"
] |
955ae105d6f107c848f8b9ce16c3831f1ab00a44 | 288 | hpp | C++ | src/chat/chat.hpp | senior-sigan/chat_from_scratch | a550da2da008c754c4bf4ee89dd1a9394e99261f | [
"MIT"
] | null | null | null | src/chat/chat.hpp | senior-sigan/chat_from_scratch | a550da2da008c754c4bf4ee89dd1a9394e99261f | [
"MIT"
] | null | null | null | src/chat/chat.hpp | senior-sigan/chat_from_scratch | a550da2da008c754c4bf4ee89dd1a9394e99261f | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <string>
#include <sstream>
class Chat {
std::vector<std::string> users_;
public:
std::string selectedUser = "";
std::stringstream textInput;
void AddUser(const std::string& user);
const std::vector<std::string>& GetUsers() const;
};
| 18 | 51 | 0.690972 | [
"vector"
] |
9563c794989a5b11d6c748434faeb379a1fc9647 | 71,043 | cpp | C++ | common/automation.cpp | grodansparadis/vscpl2drv-automation | ae5ecf45e6c25284321c1b119abaf9246e516a1c | [
"MIT"
] | 1 | 2019-11-19T14:54:31.000Z | 2019-11-19T14:54:31.000Z | common/automation.cpp | grodansparadis/vscpl2drv-automation | ae5ecf45e6c25284321c1b119abaf9246e516a1c | [
"MIT"
] | null | null | null | common/automation.cpp | grodansparadis/vscpl2drv-automation | ae5ecf45e6c25284321c1b119abaf9246e516a1c | [
"MIT"
] | null | null | null | // automation.cpp
//
// This file is part of the VSCP (http://www.vscp.org)
//
// The MIT License (MIT)
//
// Copyright (C) 2000-2021 Ake Hedman, Grodans Paradis AB
// <info@grodansparadis.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated document... | 36.33913 | 125 | 0.467252 | [
"object"
] |
956520131a6395030bc74b484e9d50d72ce18d78 | 458 | cpp | C++ | leetcode_archived_cpp/LeetCode_581.cpp | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | null | null | null | leetcode_archived_cpp/LeetCode_581.cpp | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | 7 | 2021-03-19T04:41:21.000Z | 2021-10-19T15:46:36.000Z | leetcode_archived_cpp/LeetCode_581.cpp | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | null | null | null | class Solution {
public:
int findUnsortedSubarray(vector<int>& nums) {
int begin = -1, end = -2, n = nums.size(), min_ = nums[n-1], max_ = nums[0];
for (int i = 0;i < n; i++)
{
max_ = max(max_, nums[i]);
min_ = min(min_, nums[n-1-i]);
if (nums[i] < max_)
... | 26.941176 | 84 | 0.419214 | [
"vector"
] |
9567023268d352083391a760441bd6dd7ed259f3 | 2,653 | cpp | C++ | chess-ai/Renderer.cpp | zacholade/chess-ai | cf207023ceb0a2635147e98637dd6be5b1fb5462 | [
"MIT"
] | 1 | 2021-03-18T22:37:23.000Z | 2021-03-18T22:37:23.000Z | chess-ai/Renderer.cpp | zacholade/chess-ai | cf207023ceb0a2635147e98637dd6be5b1fb5462 | [
"MIT"
] | null | null | null | chess-ai/Renderer.cpp | zacholade/chess-ai | cf207023ceb0a2635147e98637dd6be5b1fb5462 | [
"MIT"
] | null | null | null | #include "Renderer.h"
#include "Constants.h"
#include <iostream>
Renderer::Renderer(SDL_Renderer* renderer)
{
this->renderer = renderer;
}
Renderer::~Renderer()
{
SDL_DestroyRenderer(renderer);
}
void Renderer::render(
Window* window,
Board* board,
std::map<const int, SDL_Texture*> textureMap,
int Perspective)... | 26.267327 | 111 | 0.698832 | [
"render",
"vector"
] |
95692e8d0ab199261b894a8894a55fd1961806c1 | 1,091 | hpp | C++ | include/common.hpp | forcecore/CsfStuff | 5640aeaa8fd8cd2ef47298e0cdd527251dce1f66 | [
"MIT"
] | 1 | 2021-08-01T00:27:29.000Z | 2021-08-01T00:27:29.000Z | include/common.hpp | forcecore/CsfStuff | 5640aeaa8fd8cd2ef47298e0cdd527251dce1f66 | [
"MIT"
] | 8 | 2021-03-14T11:24:51.000Z | 2021-03-18T10:08:23.000Z | include/common.hpp | forcecore/CsfStuff | 5640aeaa8fd8cd2ef47298e0cdd527251dce1f66 | [
"MIT"
] | null | null | null | #pragma once
#include <cassert>
#include <iostream>
#include <string>
#include <vector>
#ifndef NDEBUG
# define ASSERT(condition, message) \
do { \
if (! (condition)) { \
std::cerr << "Assertion `" #condition "` failed in " << __FILE__ \
<< " line " << __LINE__ << ": " ... | 20.203704 | 80 | 0.589368 | [
"vector"
] |
95708bc246077b62be1700adeeeaf4c1e83bedd3 | 1,066 | cc | C++ | packages/MC/mc/Fission_Matrix_Solver.pt.cc | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 19 | 2015-06-04T09:02:41.000Z | 2021-04-27T19:32:55.000Z | packages/MC/mc/Fission_Matrix_Solver.pt.cc | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | null | null | null | packages/MC/mc/Fission_Matrix_Solver.pt.cc | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 5 | 2016-10-05T20:48:28.000Z | 2021-06-21T12:00:54.000Z | //----------------------------------*-C++-*----------------------------------//
/*!
* \file MC/mc/Fission_Matrix_Solver.pt.cc
* \author Thomas M. Evans
* \date Mon Dec 08 17:18:34 2014
* \brief Fission_Matrix_Solver member definitions.
* \note Copyright (C) 2014 Oak Ridge National Laboratory, UT-Battelle, L... | 36.758621 | 79 | 0.5394 | [
"geometry"
] |
9576e8c536e789011d1351e2a7d64f2e823c47f1 | 8,847 | hpp | C++ | performance_test/src/utilities/cpu_usage_tracker.hpp | RoverRobotics-forks/performance_test | 1e59823b4058bbb8aabdb4c06e42a5ffdae6aaa1 | [
"Apache-2.0"
] | null | null | null | performance_test/src/utilities/cpu_usage_tracker.hpp | RoverRobotics-forks/performance_test | 1e59823b4058bbb8aabdb4c06e42a5ffdae6aaa1 | [
"Apache-2.0"
] | null | null | null | performance_test/src/utilities/cpu_usage_tracker.hpp | RoverRobotics-forks/performance_test | 1e59823b4058bbb8aabdb4c06e42a5ffdae6aaa1 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Apex.AI, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 27.475155 | 94 | 0.657511 | [
"vector"
] |
d2ebe5db2d872e008eaba9d2c3131b208c67a8f6 | 27,304 | cpp | C++ | Engine/DataStructure/GridUniform3D.cpp | jmhong-simulation/LithopiaOpen | 49c4c0863714ee11730e4807eb10c1e1ebb520f1 | [
"MIT"
] | 8 | 2017-06-01T07:00:10.000Z | 2021-12-16T11:01:29.000Z | Engine/DataStructure/GridUniform3D.cpp | jmhong-simulation/LithopiaOpen | 49c4c0863714ee11730e4807eb10c1e1ebb520f1 | [
"MIT"
] | null | null | null | Engine/DataStructure/GridUniform3D.cpp | jmhong-simulation/LithopiaOpen | 49c4c0863714ee11730e4807eb10c1e1ebb520f1 | [
"MIT"
] | null | null | null | // The Lithopia project initiated by Jeong-Mo Hong for 3D Printing Community.
// Copyright (c) 2015 Jeong-Mo Hong - All Rights Reserved.
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
#include "GridUniform3D.h"
#include "Array1D.h"... | 38.134078 | 235 | 0.693671 | [
"3d"
] |
d2edd72704d13a272d26b9dceae3dea627909f5d | 25,301 | cpp | C++ | MeshTools/FECVDDecimationModifier.cpp | chunkeey/FEBioStudio | f342d4ac2bc3581db792373c4265454109af92b3 | [
"MIT"
] | null | null | null | MeshTools/FECVDDecimationModifier.cpp | chunkeey/FEBioStudio | f342d4ac2bc3581db792373c4265454109af92b3 | [
"MIT"
] | null | null | null | MeshTools/FECVDDecimationModifier.cpp | chunkeey/FEBioStudio | f342d4ac2bc3581db792373c4265454109af92b3 | [
"MIT"
] | null | null | null | /*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... | 27.059893 | 107 | 0.55567 | [
"mesh",
"vector"
] |
d2eecca6d8aa3c23d730776e3edb7b95f636fafb | 2,463 | cpp | C++ | applications/ParticlesEditor/src/Render/RenderObserverFactory.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | applications/ParticlesEditor/src/Render/RenderObserverFactory.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | applications/ParticlesEditor/src/Render/RenderObserverFactory.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | #include <mtt/editorLib/Render/CrossRenderObserver.h>
#include <Render/BlockerRenderObserver.h>
#include <Render/EmitterRenderObserver.h>
#include <Render/FieldRenderObserver.h>
#include <Render/FluidModificatorObserver.h>
#include <Render/ObserverWithIcon.h>
#include <Render/RenderObserverFactory.h>
#define ICON_SIZ... | 34.690141 | 80 | 0.596833 | [
"render",
"object"
] |
d2fe94221428da37bd7e17d02a49234fd2ecae71 | 1,028 | cpp | C++ | acmicpc.net/source/14863.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 7 | 2019-06-26T07:03:32.000Z | 2020-11-21T16:12:51.000Z | acmicpc.net/source/14863.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | null | null | null | acmicpc.net/source/14863.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 9 | 2019-02-28T03:34:54.000Z | 2020-12-18T03:02:40.000Z | // 14863. 서울에서 경산까지
// 2019.05.22
// 다이나믹 프로그래밍
#include<vector>
#include<algorithm>
#include<iostream>
using namespace std;
int visit[101][100001];
// arr[i][0~4]:구간 i를 0:도보로 이동 걸리는 시간 1: 이때 모금액
// arr[i][0~4]:구간 i를 2:자전거로 이동 걸리는 시간 3: 이때 모금액
int arr[101][4];
int d[101][100001]; // d[i][j] : 도시 i까지 j이내의 시간에 이동하면서 ... | 18.690909 | 80 | 0.448444 | [
"vector"
] |
9603e142570fd25274b27b28e8eee88b0baf2abb | 2,718 | cpp | C++ | plugins/archvis/src/MSMRenderTaskDataSource.cpp | tobiasrau/megamol | ce7b0b5337a9c52822f5f88a61cec1cc7ddbe39e | [
"BSD-3-Clause"
] | null | null | null | plugins/archvis/src/MSMRenderTaskDataSource.cpp | tobiasrau/megamol | ce7b0b5337a9c52822f5f88a61cec1cc7ddbe39e | [
"BSD-3-Clause"
] | null | null | null | plugins/archvis/src/MSMRenderTaskDataSource.cpp | tobiasrau/megamol | ce7b0b5337a9c52822f5f88a61cec1cc7ddbe39e | [
"BSD-3-Clause"
] | null | null | null | #include "MSMRenderTaskDataSource.h"
#include "mesh/CallGPUMaterialData.h"
#include "mesh/GPUMeshCollection.h"
#include "mesh/CallGPUMeshData.h"
#include "mesh/CallGPURenderTaskData.h"
#include "MSMDataCall.h"
megamol::archvis::MSMRenderTaskDataSource::MSMRenderTaskDataSource()
: m_MSM_callerSlot("getMSM", "Conn... | 33.555556 | 105 | 0.699411 | [
"mesh",
"vector"
] |
96043ac7fff646cd013d1cadb164422d7942305c | 3,763 | hh | C++ | include/ftk/basic/shared_union_find.hh | hguo/FTT | f1d5387d6353cf2bd165c51fc717eb5d6b2675ef | [
"MIT"
] | 19 | 2018-11-01T02:15:17.000Z | 2022-03-28T16:55:00.000Z | include/ftk/basic/shared_union_find.hh | hguo/FTT | f1d5387d6353cf2bd165c51fc717eb5d6b2675ef | [
"MIT"
] | 12 | 2019-04-14T12:49:41.000Z | 2021-10-20T03:59:21.000Z | include/ftk/basic/shared_union_find.hh | hguo/FTT | f1d5387d6353cf2bd165c51fc717eb5d6b2675ef | [
"MIT"
] | 9 | 2019-02-08T19:40:46.000Z | 2021-06-15T00:31:09.000Z | #ifndef _FTK_SHARED_UNION_FIND_H
#define _FTK_SHARED_UNION_FIND_H
#include <ftk/config.hh>
#include <vector>
#include <map>
#include <set>
#include <iostream>
// TBD
// Complete thread-safe add function
// Add unit test.
// Union-find algorithm with shared-memory parallelism
// All elements need to be added ... | 20.905556 | 94 | 0.55275 | [
"vector"
] |
96050560ce8ce61c2a2d1d4c066c09d0b132c5f1 | 358,931 | cpp | C++ | HCTC-PARS-FINAL/360 Panorama PARS FINAL/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues_13Table.cpp | Eiris/HCTC-PARS-FINAL | d90e11d4bb09a9ab6ab94e1808e6607847cd5150 | [
"MIT"
] | null | null | null | HCTC-PARS-FINAL/360 Panorama PARS FINAL/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues_13Table.cpp | Eiris/HCTC-PARS-FINAL | d90e11d4bb09a9ab6ab94e1808e6607847cd5150 | [
"MIT"
] | null | null | null | HCTC-PARS-FINAL/360 Panorama PARS FINAL/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues_13Table.cpp | Eiris/HCTC-PARS-FINAL | d90e11d4bb09a9ab6ab94e1808e6607847cd5150 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il... | 44.933776 | 202 | 0.83165 | [
"object"
] |
9606209077941717fad2ec152fa905220a026f16 | 3,924 | cpp | C++ | pcl-mps/src/mps.cpp | isnow4ever/pcl | 4a0f386f652835fca53fa84ad3e8e4ebf8181bb3 | [
"MIT"
] | 2 | 2017-08-18T03:03:12.000Z | 2019-08-31T09:40:27.000Z | pcl-mps/src/mps.cpp | isnow4ever/pcl | 4a0f386f652835fca53fa84ad3e8e4ebf8181bb3 | [
"MIT"
] | null | null | null | pcl-mps/src/mps.cpp | isnow4ever/pcl | 4a0f386f652835fca53fa84ad3e8e4ebf8181bb3 | [
"MIT"
] | null | null | null | #include <Eigen/Core>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/common/time.h>
#include <pcl/console/print.h>
#include <pcl/features/normal_3d_omp.h>
#include <pcl/features/fpfh_omp.h>
#include <pcl/filters/filter.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/io/pcd_io.h>
#include <... | 36.333333 | 112 | 0.714577 | [
"object",
"vector",
"model"
] |
960b8d06577aabd99d516aa84ec2795b80810f0d | 2,488 | cpp | C++ | Observer.cpp | raven91/deformable_cell_model_integration | fa9e31ef42044cb42f534f0be0f20d8ead69c34e | [
"MIT"
] | null | null | null | Observer.cpp | raven91/deformable_cell_model_integration | fa9e31ef42044cb42f534f0be0f20d8ead69c34e | [
"MIT"
] | null | null | null | Observer.cpp | raven91/deformable_cell_model_integration | fa9e31ef42044cb42f534f0be0f20d8ead69c34e | [
"MIT"
] | null | null | null | //
// Created by Nikita Kruk on 15.03.21.
//
#include "Observer.hpp"
#include <iostream>
#include <sstream>
Observer::Observer()
{
node_file_name_ = "/Users/nikita/Documents/Projects/DeformableCellModel/nodes.txt";
node_file_.open(node_file_name_, std::ios::out | std::ios::trunc);
if (!node_file_.is_open())
... | 25.387755 | 118 | 0.628215 | [
"vector"
] |
960cf22755d50d16dad616e7035099cb63a83db3 | 1,287 | cpp | C++ | lab4/geometry/Point.cpp | Adrjanjan/JiMP-Exercises | 0c5de5878bcf0ede27fedcdf3cebbe081679e180 | [
"MIT"
] | null | null | null | lab4/geometry/Point.cpp | Adrjanjan/JiMP-Exercises | 0c5de5878bcf0ede27fedcdf3cebbe081679e180 | [
"MIT"
] | null | null | null | lab4/geometry/Point.cpp | Adrjanjan/JiMP-Exercises | 0c5de5878bcf0ede27fedcdf3cebbe081679e180 | [
"MIT"
] | null | null | null | //
// Created by adrja on 02.04.2018.
//
#include "Point.h"
#include "Square.h"
#include <cmath>
#include <iostream>
using ::std::cout;
using ::std::endl;
using ::std::ostream;
namespace geometry {
Point::Point() : x_(0), y_(0) {
//cout << "Konstruktor bezparametrowy" << endl;
}
Point::Point(do... | 21.098361 | 100 | 0.508936 | [
"geometry"
] |
9610cc029873627916ea1723690c060639002866 | 128,538 | cpp | C++ | DEM/Low/src/Render/D3D11/D3D11GPUDriver.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 15 | 2019-05-07T11:26:13.000Z | 2022-01-12T18:26:45.000Z | DEM/Low/src/Render/D3D11/D3D11GPUDriver.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 16 | 2021-10-04T17:15:31.000Z | 2022-03-20T09:34:29.000Z | DEM/Low/src/Render/D3D11/D3D11GPUDriver.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 2 | 2019-04-28T23:27:48.000Z | 2019-05-07T11:26:18.000Z | #include "D3D11GPUDriver.h"
#include <Render/D3D11/D3D11DriverFactory.h>
#include <Render/D3D11/D3D11DisplayDriver.h>
#include <Render/D3D11/D3D11VertexLayout.h>
#include <Render/D3D11/D3D11VertexBuffer.h>
#include <Render/D3D11/D3D11IndexBuffer.h>
#include <Render/D3D11/D3D11Texture.h>
#include <Render/D3D11/D3D11Ren... | 33.772465 | 183 | 0.703823 | [
"render",
"object",
"vector",
"3d",
"solid"
] |
9612a21155f48c7bea82921f93637b39ddb44cab | 1,760 | cpp | C++ | vpc/src/v2/model/DeleteSecurityGroupRuleRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | vpc/src/v2/model/DeleteSecurityGroupRuleRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | vpc/src/v2/model/DeleteSecurityGroupRuleRequest.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/vpc/v2/model/DeleteSecurityGroupRuleRequest.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Vpc {
namespace V2 {
namespace Model {
DeleteSecurityGroupRuleRequest::DeleteSecurityGroupRuleRequest()
{
securityGroupRuleId_ = "";
securityGroupRuleIdIsSet_ = false;
}
DeleteSecurityG... | 21.463415 | 115 | 0.730682 | [
"object",
"model"
] |
9615c3d167071e086b5b9f4e072fc261855b3e2c | 15,430 | cpp | C++ | animatron.cpp | Atrix256/Animatron | 85ba4dede18ff08cf9fba8d433c9cccc167e0414 | [
"MIT"
] | 17 | 2020-09-26T09:07:09.000Z | 2020-11-04T22:14:41.000Z | animatron.cpp | Atrix256/Animatron | 85ba4dede18ff08cf9fba8d433c9cccc167e0414 | [
"MIT"
] | 1 | 2020-10-10T23:50:27.000Z | 2020-10-10T23:50:27.000Z | animatron.cpp | Atrix256/Animatron | 85ba4dede18ff08cf9fba8d433c9cccc167e0414 | [
"MIT"
] | null | null | null | #include "animatron.h"
#include "utils.h"
#include "cas.h"
#include "entities.h"
#include <algorithm>
#include <direct.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb/stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb/stb_image_write.h"
bool ValidateAndFixupDocument(Data::Document& document)
{
... | 39.063291 | 176 | 0.601491 | [
"render",
"vector",
"3d"
] |
9616dcff2feae8db3625e92d7a4a4fbbf0c9a413 | 4,993 | hpp | C++ | contrib/autoboost/autoboost/mpl/vector/aux_/numbered.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/mpl/vector/aux_/numbered.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/mpl/vector/aux_/numbered.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z |
// NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION
#if defined(AUTOBOOST_PP_IS_ITERATING)
// Copyright Aleksey Gurtovoy 2000-2004
//
// 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)
//
// See h... | 22.799087 | 83 | 0.679752 | [
"vector"
] |
96183830a11c724cf0ac646a56782806ce94aa26 | 623 | cpp | C++ | test/src/PiecewiseLinear_test.cpp | andrsd/godzilla | da2dd8918450d7d28e8f1897466eb82f2a65a467 | [
"MIT"
] | null | null | null | test/src/PiecewiseLinear_test.cpp | andrsd/godzilla | da2dd8918450d7d28e8f1897466eb82f2a65a467 | [
"MIT"
] | 24 | 2021-11-13T01:32:41.000Z | 2021-12-11T14:16:24.000Z | test/src/PiecewiseLinear_test.cpp | andrsd/godzilla | da2dd8918450d7d28e8f1897466eb82f2a65a467 | [
"MIT"
] | null | null | null | #include "gmock/gmock.h"
#include "Godzilla.h"
#include "GodzillaApp_test.h"
#include "PiecewiseLinear.h"
using namespace godzilla;
TEST(PiecewiseLinearTest, eval)
{
TestApp app;
InputParameters params = PiecewiseLinear::valid_params();
params.set<const App *>("_app") = &app;
params.set<std::string>(... | 24.92 | 61 | 0.64687 | [
"vector"
] |
9618b750b3db0f7ab7f9bf1da7760cad1f23d9a8 | 9,827 | cpp | C++ | tests/Switch.TUnit.UnitTests/Switch/TUnit/AssertTest.cpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | tests/Switch.TUnit.UnitTests/Switch/TUnit/AssertTest.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | tests/Switch.TUnit.UnitTests/Switch/TUnit/AssertTest.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | #include <Switch/System/Version.hpp>
#include <Switch/TUnit/Assert.hpp>
#include <Switch/TUnit/Expect.hpp>
#include <Switch/TUnit/TestFixture.hpp>
using namespace System;
using namespace TUnit;
namespace SwitchUnitTests {
class AssertTest : public TestFixture {
protected:
AssertTest() {}
void SetUp() ove... | 30.424149 | 107 | 0.672026 | [
"object"
] |
961bab4dbe157f161ca7ce0ae14be874ebad587d | 2,651 | cpp | C++ | .LHP/.Lop11/.T.Minh/MV/MV/MV.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.T.Minh/MV/MV/MV.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.T.Minh/MV/MV/MV.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<string>
#include<sstream>
#include<vector>
#include <algorithm>
#define maxN 65
typedef int maxn;
typedef long long maxa;
maxn N, K, M;
maxa d[maxN][maxN], f[maxN][maxN][maxN];
std::vector<maxn> V;
void Prepare() {
std::cin >> N >> K >> M;
}
maxa DFS_STT(maxn I, m... | 22.277311 | 127 | 0.382497 | [
"vector"
] |
961fa0b183e4cad16b525f20450e07f2dfcc78c4 | 3,750 | cpp | C++ | DT3Core/Scripting/ScriptingOpenURL.cpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2016-01-27T13:17:18.000Z | 2019-03-19T09:18:25.000Z | DT3Core/Scripting/ScriptingOpenURL.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3Core/Scripting/ScriptingOpenURL.cpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | //==============================================================================
///
/// File: ScriptingOpenURL.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part ... | 30.991736 | 85 | 0.4016 | [
"object"
] |
96215f5286db5f1bda706e2cb26bb1e91fa43af4 | 1,453 | cpp | C++ | Source/RuntimeMeshComponent/Private/RuntimeMeshRendering.cpp | matthewswallace/RuntimeMeshComponent | fd1696acdea95292a79f2bac628345011187f04a | [
"MIT"
] | 5 | 2021-01-07T06:45:00.000Z | 2022-02-01T15:53:23.000Z | Source/RuntimeMeshComponent/Private/RuntimeMeshRendering.cpp | matthewswallace/RuntimeMeshComponent | fd1696acdea95292a79f2bac628345011187f04a | [
"MIT"
] | null | null | null | Source/RuntimeMeshComponent/Private/RuntimeMeshRendering.cpp | matthewswallace/RuntimeMeshComponent | fd1696acdea95292a79f2bac628345011187f04a | [
"MIT"
] | null | null | null | // Copyright 2016-2020 Chris Conway (Koderz). All Rights Reserved.
#include "RuntimeMeshRendering.h"
#include "RuntimeMeshComponentPlugin.h"
#include "RuntimeMeshSectionProxy.h"
FRuntimeMeshVertexBuffer::FRuntimeMeshVertexBuffer(bool bInIsDynamicBuffer, int32 DefaultVertexSize)
: bIsDynamicBuffer(bInIsDynamicBuffer... | 22.353846 | 125 | 0.789401 | [
"render"
] |
96233e436be4524fb6ec2e1d6f1289fb2f2514b8 | 6,448 | hh | C++ | src/sim/power_domain.hh | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 765 | 2015-01-14T16:17:04.000Z | 2022-03-28T07:46:28.000Z | src/sim/power_domain.hh | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 148 | 2018-07-20T00:58:36.000Z | 2021-11-16T01:52:33.000Z | src/sim/power_domain.hh | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 807 | 2015-01-06T09:55:38.000Z | 2022-03-30T10:23:36.000Z | /*
* Copyright (c) 2017, 2019-2020 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation o... | 37.488372 | 79 | 0.717587 | [
"object",
"vector"
] |
96235489b1827797de72e753561f24627f1e5d6c | 3,881 | cpp | C++ | tests/numerics/ode/TestODE45.cpp | philsupertramp/game-math | 56526b673bfc9c71515c8402b5ffa237f1819a39 | [
"MIT"
] | null | null | null | tests/numerics/ode/TestODE45.cpp | philsupertramp/game-math | 56526b673bfc9c71515c8402b5ffa237f1819a39 | [
"MIT"
] | 34 | 2020-11-27T13:33:04.000Z | 2022-03-06T13:40:39.000Z | tests/numerics/ode/TestODE45.cpp | philsupertramp/game-math | 56526b673bfc9c71515c8402b5ffa237f1819a39 | [
"MIT"
] | null | null | null | #include "../../Test.h"
#include <math/numerics/ode/ODESolver.h>
class ODE45TestCase : public Test
{
bool TestOde45() {
auto ode = []([[maybe_unused]] double t, const Matrix<double>& y) { return y; };
std::vector<double> tInterval = { 0.0, 2.0 };
Matrix<double> y0 ... | 36.613208 | 109 | 0.454007 | [
"vector"
] |
9631f74bc13472a6ee16a7b3ef72d0013aea0429 | 5,336 | cc | C++ | src/analog_audio_provider.cc | henriwoodcock/pico-wake-word | ece0053f5a38d9a245bf553d1a1e1f4f3dc09384 | [
"Apache-2.0"
] | 16 | 2021-03-18T09:20:58.000Z | 2022-03-23T04:31:10.000Z | src/analog_audio_provider.cc | henriwoodcock/pico-wake-word | ece0053f5a38d9a245bf553d1a1e1f4f3dc09384 | [
"Apache-2.0"
] | 2 | 2021-06-25T05:12:00.000Z | 2022-01-22T15:49:01.000Z | src/analog_audio_provider.cc | henriwoodcock/pico-wake-word | ece0053f5a38d9a245bf553d1a1e1f4f3dc09384 | [
"Apache-2.0"
] | 2 | 2021-03-30T03:56:19.000Z | 2021-08-11T13:02:53.000Z | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | 38.388489 | 82 | 0.73557 | [
"transform"
] |
96389a0eeeea93a17ed6399858d47e097ef6919f | 9,295 | cpp | C++ | packages/geometry/dagmc/src/Geometry_DagMCRay.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/geometry/dagmc/src/Geometry_DagMCRay.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/geometry/dagmc/src/Geometry_DagMCRay.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file Geometry_DagMCRay.cpp
//! \author Alex Robinson
//! \brief The DagMC ray definition
//!
//---------------------------------------------------------------------------//
// FRENSIE Includes
#include "Geometry_DagMCRay.hpp"
#... | 28.688272 | 85 | 0.654868 | [
"geometry"
] |
963b8cf91b785933f4d7123dc16f6126908a2c0f | 5,672 | hpp | C++ | code/renderer/rendergraph/r_rendergraph.hpp | LiamTyler/Progression | 35680b47dcd4481fe80e2310c722354ccfa53ed8 | [
"MIT"
] | 3 | 2020-01-30T19:20:05.000Z | 2021-06-30T13:24:51.000Z | code/renderer/rendergraph/r_rendergraph.hpp | LiamTyler/Progression | 35680b47dcd4481fe80e2310c722354ccfa53ed8 | [
"MIT"
] | 1 | 2021-03-31T16:12:45.000Z | 2021-03-31T16:12:45.000Z | code/renderer/rendergraph/r_rendergraph.hpp | LiamTyler/Progression | 35680b47dcd4481fe80e2310c722354ccfa53ed8 | [
"MIT"
] | 2 | 2020-03-30T05:18:46.000Z | 2021-03-31T16:13:08.000Z | #pragma once
#include "core/pixel_formats.hpp"
#include "glm/vec4.hpp"
#include "renderer/graphics_api/framebuffer.hpp"
#include "renderer/graphics_api/render_pass.hpp"
#include "renderer/graphics_api/texture.hpp"
#include <functional>
#include <vector>
namespace PG
{
class Scene;
namespace Gfx
{
enum class Resour... | 27.009524 | 193 | 0.713681 | [
"render",
"vector"
] |
963c7112741ebafdffa2f9d2397db7efa187c92e | 732 | cpp | C++ | Classes/SimpleClasses/main.cpp | csulb-cecs282-2015sp/lectures | f7a88c52b85472f4e871ed439bfe65ee784f4aa9 | [
"MIT"
] | 11 | 2015-01-20T05:57:50.000Z | 2021-05-03T10:47:36.000Z | Classes/SimpleClasses/main.cpp | csulb-cecs282-2015sp/lectures | f7a88c52b85472f4e871ed439bfe65ee784f4aa9 | [
"MIT"
] | null | null | null | Classes/SimpleClasses/main.cpp | csulb-cecs282-2015sp/lectures | f7a88c52b85472f4e871ed439bfe65ee784f4aa9 | [
"MIT"
] | 26 | 2015-01-20T04:38:39.000Z | 2017-01-11T00:49:57.000Z | #include <iostream>
using namespace std;
// design a simple class for representing a point in 2D space
class Point {
public: // everything that follows is public
double X;
double Y;
};
int mains(int argc, char* argv[]) {
// variables of type Point can now be declared.
Point p; // Note the lack of "new"... | 22.875 | 71 | 0.610656 | [
"object"
] |
9643d27ce279d1d470610c7886888883a192f046 | 18,254 | cpp | C++ | game/graphics/opengl_renderer/ocean/CommonOceanRenderer.cpp | LuminarLight/jak-project | f341be65e9848977158c9a9a2898f0f047a157df | [
"ISC"
] | 54 | 2022-02-08T13:07:50.000Z | 2022-03-31T14:18:42.000Z | game/graphics/opengl_renderer/ocean/CommonOceanRenderer.cpp | LuminarLight/jak-project | f341be65e9848977158c9a9a2898f0f047a157df | [
"ISC"
] | 120 | 2022-02-08T05:19:11.000Z | 2022-03-30T22:26:52.000Z | game/graphics/opengl_renderer/ocean/CommonOceanRenderer.cpp | LuminarLight/jak-project | f341be65e9848977158c9a9a2898f0f047a157df | [
"ISC"
] | 8 | 2022-02-13T22:39:55.000Z | 2022-03-30T02:17:57.000Z | #include "CommonOceanRenderer.h"
CommonOceanRenderer::CommonOceanRenderer() {
m_vertices.resize(4096 * 10); // todo decrease
for (auto& buf : m_indices) {
buf.resize(4096 * 10);
}
// create OpenGL objects
glGenBuffers(1, &m_ogl.vertex_buffer);
glGenBuffers(NUM_BUCKETS, m_ogl.index_buffer);
glGenVer... | 34.835878 | 100 | 0.614769 | [
"mesh"
] |
96440d72d9f4ca4cfefbea136b727b83ce822bb1 | 4,668 | cpp | C++ | demo/ImmediateRenderer2D.cpp | tobguent/image-triangulation | a5c6830528ce63e1ced28a4f29669fee6d9c9936 | [
"MIT"
] | 6 | 2020-01-14T08:27:41.000Z | 2021-06-03T13:18:13.000Z | demo/ImmediateRenderer2D.cpp | tobguent/image-triangulation | a5c6830528ce63e1ced28a4f29669fee6d9c9936 | [
"MIT"
] | null | null | null | demo/ImmediateRenderer2D.cpp | tobguent/image-triangulation | a5c6830528ce63e1ced28a4f29669fee6d9c9936 | [
"MIT"
] | 3 | 2019-05-17T23:16:10.000Z | 2021-04-23T17:22:42.000Z | #include "stdafx.h"
#include "ImmediateRenderer2D.h"
#include "D3D.h"
ImmediateRenderer2D::ImmediateRenderer2D(int bufferSize) :
_BufferSize(bufferSize),
_Offset(0),
Color(1,163.0f/255.0f,0,1),
_VbPosition(NULL),
_InputLayoutPos(NULL),
_Fx(NULL)
{
}
ImmediateRenderer2D::~ImmediateRenderer2D()
{
D3DReleaseDevice();
... | 32.416667 | 156 | 0.699871 | [
"geometry",
"render",
"vector"
] |
964c5b7b79a4fc76a1e5b4535cb495400fbe3787 | 10,032 | hpp | C++ | beelzebub/arc/x86/inc/system/interrupt_controllers/lapic.hpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 32 | 2015-09-02T22:56:22.000Z | 2021-02-24T17:15:50.000Z | beelzebub/arc/x86/inc/system/interrupt_controllers/lapic.hpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 30 | 2015-04-26T18:35:07.000Z | 2021-06-06T09:57:02.000Z | beelzebub/arc/x86/inc/system/interrupt_controllers/lapic.hpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 11 | 2015-09-03T20:47:41.000Z | 2021-06-25T17:00:01.000Z | /*
Copyright (c) 2015 Alexandru-Mihai Maftei. All rights reserved.
Developed by: Alexandru-Mihai Maftei
aka Vercas
http://vercas.com | https://github.com/vercas/Beelzebub
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation... | 29.162791 | 87 | 0.542265 | [
"vector"
] |
965086d5872ba4bb73958696f663e796d1b1c363 | 2,682 | hpp | C++ | include/pcg.hpp | arotem3/SchrodingerSEM | b1d5c5a959efe46cb8d473f284d150c3c7f0beb6 | [
"Apache-2.0"
] | null | null | null | include/pcg.hpp | arotem3/SchrodingerSEM | b1d5c5a959efe46cb8d473f284d150c3c7f0beb6 | [
"Apache-2.0"
] | null | null | null | include/pcg.hpp | arotem3/SchrodingerSEM | b1d5c5a959efe46cb8d473f284d150c3c7f0beb6 | [
"Apache-2.0"
] | null | null | null | #ifndef PCG_HPP
#define PCG_HPP
#include <iostream>
#include <cmath>
#include <concepts>
#include "solver_base.hpp"
// preconditioned, first iteration
template <std::floating_point real, typename vec, std::invocable<vec, vec> Dot, std::invocable<vec> Precond>
real conj_grad(vec& p, const vec& r, Dot dot, Precond pr... | 26.554455 | 135 | 0.62528 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.