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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a0270ba921c97b9e11884de1d7532fab07d9f679 | 25,217 | cpp | C++ | exportNF/release/windows/obj/src/flixel/input/touch/FlxTouchManager.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | exportNF/release/windows/obj/src/flixel/input/touch/FlxTouchManager.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | exportNF/release/windows/obj/src/flixel/input/touch/FlxTouchManager.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | // Generated by Haxe 4.2.1+bf9ff69
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_flixel_input_FlxInput
#include <flixel/input/FlxInput.h>
#endif
#ifndef INCLUDED_flixel_input_FlxPointer
#include <flixel/input/FlxPointer.h>
#endif
#ifndef INCLUDED_flixel_input_IFlxInput
#include <flix... | 41.75 | 243 | 0.720823 | [
"object",
"3d"
] |
a02a2d8cff90fc14ace2d766f70bec8d3cbbc2de | 2,206 | cpp | C++ | lib/tTetraedr.cpp | B1Z0N/KPI-geometrylib | a83b4394f9c150c131f6533d8cd8c39886684886 | [
"MIT"
] | 2 | 2019-04-28T16:38:54.000Z | 2019-12-27T20:09:43.000Z | lib/tTetraedr.cpp | B1Z0N/KPI-geometrylib | a83b4394f9c150c131f6533d8cd8c39886684886 | [
"MIT"
] | null | null | null | lib/tTetraedr.cpp | B1Z0N/KPI-geometrylib | a83b4394f9c150c131f6533d8cd8c39886684886 | [
"MIT"
] | null | null | null | #include "../include/geometry.hpp"
tTetraedr::tTetraedr(const tPoint &V1, const tPoint &V2, const tPoint &V3, const tPoint &S, char const *NewName)
: tNamed(NewName), fT(V1, V2, V3), fS(S)
{
assert(correct());
}
tTetraedr::tTetraedr(const tTriangle &N, const tPoint &S, char const *NewName)
: tNamed(NewName)... | 21.211538 | 120 | 0.602901 | [
"geometry"
] |
a02c170233ea08198798909bf336041ff22b571c | 3,064 | cpp | C++ | Plugins/org.mitk.gui.qt.diffusionimaging/src/QmitkResidualAnalysisWidget.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Plugins/org.mitk.gui.qt.diffusionimaging/src/QmitkResidualAnalysisWidget.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Plugins/org.mitk.gui.qt.diffusionimaging/src/QmitkResidualAnalysisWidget.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied w... | 25.966102 | 77 | 0.658616 | [
"vector"
] |
a02da65ce907a035dad53817ff807f981ce8e599 | 4,061 | cpp | C++ | src/libcore/src/libcore/util/BasicLruCache.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 6 | 2018-05-08T10:08:21.000Z | 2021-11-13T13:22:58.000Z | src/libcore/src/libcore/util/BasicLruCache.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 1 | 2018-05-08T10:20:17.000Z | 2018-07-23T05:19:19.000Z | src/libcore/src/libcore/util/BasicLruCache.cpp | sparkoss/ccm | 9ed67a7cbdc9c69f4182e72be8e8b6b23d7c3c8d | [
"Apache-2.0"
] | 4 | 2018-03-13T06:21:11.000Z | 2021-06-19T02:48:07.000Z | //=========================================================================
// Copyright (C) 2018 The C++ Component Model(CCM) Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Lic... | 26.89404 | 92 | 0.614873 | [
"model"
] |
a034cbd8b84aa86951bbb120e0ef3e659fbbc7e4 | 1,710 | cpp | C++ | lib/random/rand.cpp | listenlink/isaac | b0a265ee45337f92f1e8e9f2fb08a057292b0240 | [
"MIT"
] | 17 | 2017-01-22T10:40:52.000Z | 2021-12-01T07:42:40.000Z | lib/random/rand.cpp | listenlink/isaac | b0a265ee45337f92f1e8e9f2fb08a057292b0240 | [
"MIT"
] | 3 | 2017-01-19T07:17:29.000Z | 2017-02-08T06:07:48.000Z | lib/random/rand.cpp | listenlink/isaac | b0a265ee45337f92f1e8e9f2fb08a057292b0240 | [
"MIT"
] | 13 | 2017-01-10T13:21:03.000Z | 2021-08-11T11:44:06.000Z | /* Copyright 2015-2017 Philippe Tillet
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* pub... | 32.264151 | 94 | 0.740936 | [
"shape",
"vector"
] |
a03b39936a10a99206f4822fb91fd1850885f0e7 | 4,540 | cpp | C++ | ui.cpp | xanxys/construct | d0a4eaa21a02e9e4440274c1c13dbb5d8ce73ab9 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-01-12T05:42:02.000Z | 2018-11-30T20:02:00.000Z | ui.cpp | xanxys/construct | d0a4eaa21a02e9e4440274c1c13dbb5d8ce73ab9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ui.cpp | xanxys/construct | d0a4eaa21a02e9e4440274c1c13dbb5d8ce73ab9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "ui.h"
#include <boost/algorithm/string.hpp>
namespace construct {
UserMenuScript::UserMenuScript(std::function<Json::Value()> getStat,
cairo_surface_t* surface) :
getStat(getStat), surface(surface) {
}
UserMenuScript::~UserMenuScript() {
cairo_surface_destroy(surface);
}
void UserMenuScript::step(flo... | 26.091954 | 99 | 0.720264 | [
"object",
"vector"
] |
a03d3ad95cd258291a032090fcc6a62e4bcbfdc4 | 2,975 | cc | C++ | src/Core/Algorithms/Legacy/Fields/MeshData/GetMeshQualityField.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | src/Core/Algorithms/Legacy/Fields/MeshData/GetMeshQualityField.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | src/Core/Algorithms/Legacy/Fields/MeshData/GetMeshQualityField.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (... | 29.455446 | 78 | 0.689748 | [
"mesh"
] |
a0447859cac30e6f70c397f1f4a70ad60fe9cb97 | 21,850 | hxx | C++ | include/LOCAL_itkResourceProbe.hxx | InsightSoftwareConsortium/ITKPerformanceBenchmarking | f9a8dc22b67ec63eee023c0734fc7aa5f119356a | [
"Apache-2.0"
] | 1 | 2017-12-07T21:29:59.000Z | 2017-12-07T21:29:59.000Z | include/LOCAL_itkResourceProbe.hxx | InsightSoftwareConsortium/ITKPerformanceBenchmarking | f9a8dc22b67ec63eee023c0734fc7aa5f119356a | [
"Apache-2.0"
] | 33 | 2017-06-30T19:35:06.000Z | 2021-09-22T00:07:26.000Z | include/LOCAL_itkResourceProbe.hxx | InsightSoftwareConsortium/ITKPerformanceBenchmarking | f9a8dc22b67ec63eee023c0734fc7aa5f119356a | [
"Apache-2.0"
] | 6 | 2017-06-30T18:22:47.000Z | 2020-02-19T23:10:16.000Z | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 36.477462 | 120 | 0.635652 | [
"vector",
"transform"
] |
a049d811ea3b23b5326bb4cdf4386b2ae96b2e14 | 13,264 | cc | C++ | chrome/browser/chromeos/drive/download_handler_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/chromeos/drive/download_handler_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/chromeos/drive/download_handler_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.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 "chrome/browser/chromeos/drive/download_handler.h"
#include <stdint.h>
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#... | 37.050279 | 80 | 0.77111 | [
"vector"
] |
a04b28c4116abac90e4e357290622feb84ed7e8b | 2,963 | cpp | C++ | Leetcode/Coding Interviews/37_Serialize_and_Deserialize_Binary_Tree.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | 1 | 2019-11-26T11:52:25.000Z | 2019-11-26T11:52:25.000Z | Leetcode/Coding Interviews/37_Serialize_and_Deserialize_Binary_Tree.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | Leetcode/Coding Interviews/37_Serialize_and_Deserialize_Binary_Tree.cpp | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | /*
注意:本题与主站 297 题相同:https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/
请实现两个函数,分别用来序列化和反序列化二叉树。
示例:
你可以将以下二叉树:
1
/ \
2 3
/ \
4 5
序列化为 "[1,2,3,null,null,4,5]"
*/
#include <iostream>
#include <string>
#include <queue>
#include <sstream>
#include <algorithm>
using namespace ... | 26.221239 | 88 | 0.488356 | [
"object",
"vector"
] |
a051e8f0060f96a951c6e8754f1609e9dd4a9a50 | 8,451 | cc | C++ | src/systemc/core/sc_process_handle.cc | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 765 | 2015-01-14T16:17:04.000Z | 2022-03-28T07:46:28.000Z | src/systemc/core/sc_process_handle.cc | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 148 | 2018-07-20T00:58:36.000Z | 2021-11-16T01:52:33.000Z | src/systemc/core/sc_process_handle.cc | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 807 | 2015-01-06T09:55:38.000Z | 2022-03-30T10:23:36.000Z | /*
* Copyright 2018 Google, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer;
* ... | 25.68693 | 79 | 0.738137 | [
"vector"
] |
a052605d5f6034de80b4e6890c5eddf14f35d087 | 929 | cpp | C++ | red-microdnf/red-lib/redtransaction.cpp | redpesk-labs/red-pak | bd11881f50ae627a0641448ae0b307a9a9e2877e | [
"Apache-2.0"
] | 5 | 2021-02-24T09:00:36.000Z | 2022-02-10T16:37:10.000Z | red-microdnf/red-lib/redtransaction.cpp | redpesk-labs/red-pak | bd11881f50ae627a0641448ae0b307a9a9e2877e | [
"Apache-2.0"
] | null | null | null | red-microdnf/red-lib/redtransaction.cpp | redpesk-labs/red-pak | bd11881f50ae627a0641448ae0b307a9a9e2877e | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021 IoT.bzh
author: Clément Bénier <clement.benier@iot.bzh>
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 ... | 30.966667 | 92 | 0.775027 | [
"vector"
] |
a0537ce07d9c5ef93abee4ae9ac90980d8b5c3ab | 524 | hpp | C++ | archive/native/src/knapsack.hpp | bbboll/knapsack | 9d3ad8884133a0f62eb6144b2bb705c9c2b7fa2e | [
"MIT"
] | null | null | null | archive/native/src/knapsack.hpp | bbboll/knapsack | 9d3ad8884133a0f62eb6144b2bb705c9c2b7fa2e | [
"MIT"
] | null | null | null | archive/native/src/knapsack.hpp | bbboll/knapsack | 9d3ad8884133a0f62eb6144b2bb705c9c2b7fa2e | [
"MIT"
] | null | null | null | #ifndef KNAPSACK_H
#define KNAPSACK_H
#include <vector>
// struct to hold item data
struct Item {
int weight;
int value;
};
// this data type is used when passing the solution
// of a knapsack problem to python
typedef std::vector<Item> ItemList;
// class to hold knapsack problem data and expose solver
class Knap... | 16.903226 | 56 | 0.725191 | [
"vector"
] |
a05443e36dcb087e5c9b87a7378caab77ac35a84 | 3,745 | cc | C++ | third_party/blink/renderer/modules/installedapp/navigator_installed_app.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/modules/installedapp/navigator_installed_app.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/modules/installedapp/navigator_installed_app.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 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 "third_party/blink/renderer/modules/installedapp/navigator_installed_app.h"
#include <memory>
#include "third_party/blink/renderer/bindings/cor... | 38.214286 | 85 | 0.773031 | [
"object"
] |
a055ea38dff3791b7512d17fda1c5318487dff35 | 10,523 | cpp | C++ | APEX_1.4/samples_v2/SampleBase/ApexRenderMaterial.cpp | gongyiling/PhysX-3.4 | 99bc1c62880cf626f9926781e76a528b5276c68b | [
"Unlicense"
] | 1,863 | 2018-12-03T13:06:03.000Z | 2022-03-29T07:12:37.000Z | APEX_1.4/samples_v2/SampleBase/ApexRenderMaterial.cpp | cctxx/PhysX-3.4-1 | 5e42a5f112351a223c19c17bb331e6c55037b8eb | [
"Unlicense"
] | 71 | 2018-12-03T19:48:39.000Z | 2022-01-11T09:30:52.000Z | APEX_1.4/samples_v2/SampleBase/ApexRenderMaterial.cpp | cctxx/PhysX-3.4-1 | 5e42a5f112351a223c19c17bb331e6c55037b8eb | [
"Unlicense"
] | 265 | 2018-12-03T14:30:03.000Z | 2022-03-25T20:57:01.000Z | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... | 34.276873 | 158 | 0.726029 | [
"vector"
] |
a056e00f912f8ea9351cbe1ab2a68b05c351be51 | 25,197 | hpp | C++ | include/crab/domains/variable_domain.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | null | null | null | include/crab/domains/variable_domain.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | null | null | null | include/crab/domains/variable_domain.hpp | LinerSu/crab | 8f3516f4b4765f4a093bb3c3a94ac2daa174130c | [
"Apache-2.0"
] | null | null | null | #pragma once
/* Classical variable propagation domain */
#include <crab/domains/abstract_domain.hpp>
#include <crab/domains/backward_assign_operations.hpp>
#include <crab/domains/interval.hpp>
#include <crab/domains/separate_domains.hpp>
#include <crab/support/stats.hpp>
#include <boost/optional.hpp>
namespace crab... | 31.575188 | 80 | 0.585863 | [
"object"
] |
a058df4a35e626ec50154fd8f9b14c6d0c9a431b | 9,337 | cpp | C++ | client/UI/angelscript/Checkbox.cpp | vblanco20-1/NovusCore-Client | 662596465a1851cb87240290f34544f4edf76aa0 | [
"MIT"
] | null | null | null | client/UI/angelscript/Checkbox.cpp | vblanco20-1/NovusCore-Client | 662596465a1851cb87240290f34544f4edf76aa0 | [
"MIT"
] | null | null | null | client/UI/angelscript/Checkbox.cpp | vblanco20-1/NovusCore-Client | 662596465a1851cb87240290f34544f4edf76aa0 | [
"MIT"
] | null | null | null | #include "Checkbox.h"
#include "Panel.h"
#include "../../Scripting/ScriptEngine.h"
#include "../../Utils/ServiceLocator.h"
#include <GLFW/glfw3.h>
#include "../ECS/Components/Singletons/UILockSingleton.h"
#include "../ECS/Components/Visible.h"
#include "../ECS/Components/Renderable.h"
#include "../ECS/Components/Coll... | 44.889423 | 157 | 0.686944 | [
"transform"
] |
a058fd75441724de2adb3d0d5d7fb6bf52526fc8 | 7,924 | cpp | C++ | samples/sources/sample_00/sample_00.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 92 | 2018-08-07T14:45:33.000Z | 2021-11-14T20:37:23.000Z | samples/sources/sample_00/sample_00.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 43 | 2018-09-30T20:48:03.000Z | 2020-04-20T20:05:26.000Z | samples/sources/sample_00/sample_00.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 13 | 2018-08-08T13:45:28.000Z | 2020-10-02T11:55:58.000Z | /*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018-2020, by Matvey Cherevko (blackmatov@gmail.com)
***************************************************... | 35.533632 | 107 | 0.528142 | [
"geometry",
"render"
] |
a059bdd314f94f21e5b3b30aa64e478767c723f4 | 5,397 | cpp | C++ | Src/GIS/tile2/heightmap3.cpp | jjuiddong/Car-Navigation | 4b9a33f9a386d5e9355b174962d6b5b756dfc477 | [
"MIT"
] | 4 | 2019-12-08T23:10:15.000Z | 2019-12-18T11:38:27.000Z | Src/GIS/tile2/heightmap3.cpp | jjuiddong/Car-Navigation | 4b9a33f9a386d5e9355b174962d6b5b756dfc477 | [
"MIT"
] | 1 | 2020-01-17T19:00:29.000Z | 2020-01-17T19:00:29.000Z | Src/GIS/tile2/heightmap3.cpp | jjuiddong/Car-Navigation | 4b9a33f9a386d5e9355b174962d6b5b756dfc477 | [
"MIT"
] | 2 | 2019-12-11T21:12:14.000Z | 2021-12-31T09:48:41.000Z |
#include "stdafx.h"
#include "heightmap3.h"
using namespace graphic;
using namespace gis2;
const float cHeightmap3::DEFAULT_H = 2.f;
cHeightmap3::cHeightmap3()
: m_level(0)
, m_x(0)
, m_y(0)
, m_width(0)
, m_height(0)
, m_data(nullptr)
, m_maxH(1.f)
, m_minH(-1.f)
, m_texture(nullptr)
, m_isTextureUpdate... | 21.501992 | 85 | 0.672966 | [
"vector"
] |
a065cdfa8b0c15f3e37f8b94528dea6dbca28fe9 | 1,677 | hh | C++ | packages/data/Material_Factory.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/data/Material_Factory.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/data/Material_Factory.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #ifndef Material_Factory_hh
#define Material_Factory_hh
#include <memory>
#include <vector>
class Angular_Discretization;
class Energy_Discretization;
class Material;
/*
Create a Material object standard data
*/
class Material_Factory
{
public:
// Constructor
Material_Factory(std::shared_ptr<Angular_Discr... | 39 | 111 | 0.517591 | [
"object",
"vector"
] |
a066e191213ffaa91af6a6c382acbde5a72ba696 | 9,549 | cpp | C++ | SampleGraphics/Skinning/Skinning.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | SampleGraphics/Skinning/Skinning.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | SampleGraphics/Skinning/Skinning.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Restricted Libraries source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf
// and may not be copie... | 26.673184 | 78 | 0.485705 | [
"mesh",
"geometry",
"object",
"vector"
] |
a06792dfc268549e496d3146458ebb43c19971a6 | 6,594 | cc | C++ | src/main/layer.cc | hisahi/malpinx | 3fd3630073d5abc6e53aa18e6672fb3265f5da94 | [
"MIT"
] | null | null | null | src/main/layer.cc | hisahi/malpinx | 3fd3630073d5abc6e53aa18e6672fb3265f5da94 | [
"MIT"
] | null | null | null | src/main/layer.cc | hisahi/malpinx | 3fd3630073d5abc6e53aa18e6672fb3265f5da94 | [
"MIT"
] | null | null | null | /****************************************************************************/
/* */
/* MALPINX SOURCE CODE (C) 2020 SAMPO HIPPELAINEN (HISAHI). */
/* SEE THE LICENSE FILE IN THE SOURCE ROOT DIRECTORY FOR LICENSE INFO. */
... | 29.048458 | 81 | 0.523961 | [
"transform"
] |
a07441d434d27450233761407d26cfe30ace518f | 9,010 | cpp | C++ | src/render/opengl/shaders/sphere_shaders.cpp | nyorem/polyscope | 320b0ec454723a8df1965f6b1f37fbf361282477 | [
"MIT"
] | 1 | 2020-05-17T17:22:03.000Z | 2020-05-17T17:22:03.000Z | src/render/opengl/shaders/sphere_shaders.cpp | nyorem/polyscope | 320b0ec454723a8df1965f6b1f37fbf361282477 | [
"MIT"
] | null | null | null | src/render/opengl/shaders/sphere_shaders.cpp | nyorem/polyscope | 320b0ec454723a8df1965f6b1f37fbf361282477 | [
"MIT"
] | null | null | null | #include "polyscope/render/opengl/shaders/sphere_shaders.h"
namespace polyscope {
namespace render {
namespace backend_openGL3_glfw {
// clang-format off
const ShaderStageSpecification FLEX_SPHERE_VERT_SHADER = {
ShaderStageType::Vertex,
// uniforms
{
{"u_modelView", DataType::Matrix44Float... | 27.723077 | 145 | 0.563596 | [
"geometry",
"render"
] |
a07c9c4ad9b443ba90a2af1838002eb4bf2bd570 | 830 | cpp | C++ | code/fft.cpp | pedroteosousa/caderno | 9d13449df8734dc979d1f66cd4c424b8a7d8cc48 | [
"MIT"
] | null | null | null | code/fft.cpp | pedroteosousa/caderno | 9d13449df8734dc979d1f66cd4c424b8a7d8cc48 | [
"MIT"
] | 4 | 2018-02-06T16:52:39.000Z | 2018-10-13T05:21:24.000Z | code/fft.cpp | pedroteosousa/caderno | 9d13449df8734dc979d1f66cd4c424b8a7d8cc48 | [
"MIT"
] | null | null | null | typedef complex<double> cpx;
const double pi = acos(-1.0);
// DFT if type = 1, IDFT if type = -1
// If you are multiplying, remember to let EACH vector with n >= sum of degrees of both polys
// n is required to be a power of 2
void FFT(vector<cpx> &v, vector<cpx> &ans, int n, int type, int p[]) { // p[n]
assert(!(n & ... | 36.086957 | 93 | 0.466265 | [
"vector"
] |
a07e8ec862f2fbcf05be6c9c5013a090100d276f | 1,839 | hpp | C++ | src/terark/io/DataInput_LittleEndian.hpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 44 | 2020-12-21T05:14:38.000Z | 2022-03-15T11:27:32.000Z | src/terark/io/DataInput_LittleEndian.hpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 2 | 2020-12-28T10:42:03.000Z | 2021-05-21T07:22:47.000Z | src/terark/io/DataInput_LittleEndian.hpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 21 | 2020-12-22T09:40:16.000Z | 2021-12-07T18:16:00.000Z | public:
DATA_IO_GEN_LITTLE_ENDIAN_INT_INPUT(short)
DATA_IO_GEN_LITTLE_ENDIAN_INT_INPUT(unsigned short)
DATA_IO_GEN_LITTLE_ENDIAN_INT_INPUT(int)
DATA_IO_GEN_LITTLE_ENDIAN_INT_INPUT(unsigned int)
DATA_IO_GEN_LITTLE_ENDIAN_INT_INPUT(long)
DATA_IO_GEN_LITTLE_ENDIAN_INT_INPUT(unsigned long)
#if defined(BOOST_HAS_LON... | 24.197368 | 76 | 0.745514 | [
"vector"
] |
a08440f204804069ed5971e39b3534729176a822 | 65,579 | cpp | C++ | src/pbaas/pbaas.cpp | DavidLDawes/VerusCoin | 925fe06aac13471fd6dcdce39848d9a9b3f3e9ae | [
"Unlicense"
] | null | null | null | src/pbaas/pbaas.cpp | DavidLDawes/VerusCoin | 925fe06aac13471fd6dcdce39848d9a9b3f3e9ae | [
"Unlicense"
] | null | null | null | src/pbaas/pbaas.cpp | DavidLDawes/VerusCoin | 925fe06aac13471fd6dcdce39848d9a9b3f3e9ae | [
"Unlicense"
] | null | null | null | /********************************************************************
* (C) 2019 Michael Toutonghi
*
* Distributed under the MIT software license, see the accompanying
* file COPYING or http://www.opensource.org/licenses/mit-license.php.
*
* This provides support for PBaaS initialization, notarization, and cros... | 40.232515 | 222 | 0.547264 | [
"object",
"vector"
] |
a086288e493765c313d30c221cc647757fd0bf00 | 72,021 | cpp | C++ | openEAR-0.1.0/src/configManager.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | openEAR-0.1.0/src/configManager.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | openEAR-0.1.0/src/configManager.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | /*F******************************************************************************
*
* openSMILE - open Speech and Music Interpretation by Large-space Extraction
* the open-source Munich Audio Feature Extraction Toolkit
* Copyright (C) 2008-2009 Florian Eyben, Martin Woellmer, Bjoern Schuller
*
*
* Institu... | 33.327626 | 198 | 0.586634 | [
"object"
] |
a08b3fb13f50d15c50c48d8dbfcee211af631437 | 47,576 | cpp | C++ | jni/guacd/cairo/src/skia/cairo-skia-context.cpp | maqiangddb/AndroidVncServer | 3bd4414ff4a84cd7407493364078dc4d77d4e5ad | [
"MIT"
] | 2 | 2016-05-26T06:54:21.000Z | 2021-05-09T18:05:50.000Z | addons/cairo/src/skia/cairo-skia-context.cpp | alvatar/sphere-fusion | f0bd78be9bbd42955677f3b8d73ccce167f7e486 | [
"Zlib"
] | null | null | null | addons/cairo/src/skia/cairo-skia-context.cpp | alvatar/sphere-fusion | f0bd78be9bbd42955677f3b8d73ccce167f7e486 | [
"Zlib"
] | 1 | 2019-03-16T08:46:46.000Z | 2019-03-16T08:46:46.000Z | /* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
* Copyright © 2010 Intel Corporation
*
* This library is free software; you can re... | 27.232971 | 154 | 0.731335 | [
"vector",
"transform",
"solid"
] |
a09395ea448e222b21a7208ed4d8548d70414529 | 22,111 | cpp | C++ | weex_core/Source/core/render/manager/render_manager.cpp | Blankdlh/incubator-weex | 8bcd48dff97046e444f5cd4dff34baad6a4b0850 | [
"Apache-2.0"
] | 1 | 2019-08-07T14:59:20.000Z | 2019-08-07T14:59:20.000Z | weex_core/Source/core/render/manager/render_manager.cpp | x-flower-rain/incubator-weex | 3bfb619122bbb87431b90790dd0d47a8db8ef193 | [
"Apache-2.0"
] | 12 | 2019-07-09T05:55:28.000Z | 2019-07-31T01:12:28.000Z | weex_core/Source/core/render/manager/render_manager.cpp | x-flower-rain/incubator-weex | 3bfb619122bbb87431b90790dd0d47a8db8ef193 | [
"Apache-2.0"
] | null | null | null | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 34.93049 | 123 | 0.638144 | [
"render",
"vector"
] |
90b759e5df2711abd92563e56b3fdf226648ec9e | 9,358 | hpp | C++ | include/OVR/AmbienceEmitter.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/OVR/AmbienceEmitter.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/OVR/AmbienceEmitter.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#include ... | 43.525581 | 168 | 0.710515 | [
"vector",
"transform"
] |
90bc4f4961bbf66236a9768cbdda387dcccca2ed | 19,218 | cc | C++ | src/stream.cc | kwiberg/frz | 8661247c70e89a671b2b412c8c4f4c3f329ef98d | [
"Apache-2.0"
] | null | null | null | src/stream.cc | kwiberg/frz | 8661247c70e89a671b2b412c8c4f4c3f329ef98d | [
"Apache-2.0"
] | 12 | 2021-02-24T22:48:56.000Z | 2021-03-21T12:33:05.000Z | src/stream.cc | kwiberg/frz | 8661247c70e89a671b2b412c8c4f4c3f329ef98d | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021 Karl Wiberg
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, ... | 39.14053 | 80 | 0.577844 | [
"object",
"vector"
] |
90c15a549812fea0b815da6757a94eb7a398b181 | 797 | cpp | C++ | game/actors/Rock.cpp | mbellman/polygarden | 265d7f2516b94df3c930da73bc385871f0d1f896 | [
"Unlicense"
] | null | null | null | game/actors/Rock.cpp | mbellman/polygarden | 265d7f2516b94df3c930da73bc385871f0d1f896 | [
"Unlicense"
] | 1 | 2020-10-08T04:04:17.000Z | 2020-10-08T04:04:17.000Z | game/actors/Rock.cpp | mbellman/polygarden | 265d7f2516b94df3c930da73bc385871f0d1f896 | [
"Unlicense"
] | null | null | null | #include <PolyEngine.h>
#include "actors/Rock.h"
#include "HeightMap.h"
void Rock::onRegistered() {
stage->add<ReferenceMesh>("rock", [&](ReferenceMesh* rock) {
Mesh* shadowLod = new Mesh();
shadowLod->from(ObjLoader("./assets/rock-1/model-lod.obj"));
rock->from(ObjLoader("./assets/rock-1/model.obj"))... | 30.653846 | 76 | 0.643664 | [
"mesh",
"model"
] |
90c1c22e8cde5c69b554202951a529beb605186f | 1,987 | hpp | C++ | wechat/models/wx_msg.hpp | ArkBriar/WxPenguin | ae1cf9719a185b3ecb546e4f0537c6afc77ddb45 | [
"MIT"
] | 1 | 2017-03-13T09:59:30.000Z | 2017-03-13T09:59:30.000Z | wechat/models/wx_msg.hpp | arkbriar/WxPenguin | ae1cf9719a185b3ecb546e4f0537c6afc77ddb45 | [
"MIT"
] | null | null | null | wechat/models/wx_msg.hpp | arkbriar/WxPenguin | ae1cf9719a185b3ecb546e4f0537c6afc77ddb45 | [
"MIT"
] | null | null | null | #pragma once
#ifndef WX_MSG_HPP_ZFY2D0BN
#define WX_MSG_HPP_ZFY2D0BN
#include <string>
#include "../json/json.hpp"
namespace WebWx {
namespace Model {
class WxMsg {
public:
class WxRecommendInfo {
public:
WxRecommendInfo();
WxRecommendInfo... | 24.530864 | 55 | 0.471565 | [
"model"
] |
90c7a999530dc1230016999095a3be917ec6c696 | 8,215 | cpp | C++ | src/platformer/game/platformer_animation.cpp | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | 1 | 2021-06-16T15:25:47.000Z | 2021-06-16T15:25:47.000Z | src/platformer/game/platformer_animation.cpp | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | null | null | null | src/platformer/game/platformer_animation.cpp | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | null | null | null | #include "animation.h"
#include <sstream>
#include "util/token.h"
#include "util/graphics/bitmap.h"
#include "util/debug.h"
#include "util/funcs.h"
#include "util/file-system.h"
#include "util/exceptions/load_exception.h"
using namespace std;
using namespace Platformer;
Frame::Frame(const Token *the_token, imageMap... | 29.65704 | 155 | 0.53451 | [
"vector"
] |
90cf10e8c368226d87032630970065d4b32bbabb | 21,732 | hpp | C++ | Model/Pods/Realm/core/include/tightdb/group_shared.hpp | huhuanming/ModelExampleForiOS | 78d442807e42da4851b0717f8916a4ee9adcf821 | [
"MIT"
] | 1 | 2016-01-14T09:45:31.000Z | 2016-01-14T09:45:31.000Z | Model/Pods/Realm/include-ios/tightdb/group_shared.hpp | huhuanming/ModelExampleForiOS | 78d442807e42da4851b0717f8916a4ee9adcf821 | [
"MIT"
] | null | null | null | Model/Pods/Realm/include-ios/tightdb/group_shared.hpp | huhuanming/ModelExampleForiOS | 78d442807e42da4851b0717f8916a4ee9adcf821 | [
"MIT"
] | null | null | null | /*************************************************************************
*
* TIGHTDB CONFIDENTIAL
* __________________
*
* [2011] - [2012] TightDB Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of TightDB Incorporated and its suppliers,
* if any. T... | 37.860627 | 99 | 0.695104 | [
"transform"
] |
90d15939b5a9e8736b1397a4d74db546b099c603 | 1,107 | cpp | C++ | lib/tolerator-rt/runtime.cpp | chintanaprabhu/LLVM-dynamic-analysis | dff9140b194a49c343bfa4062b52ee646e3fd409 | [
"MIT"
] | null | null | null | lib/tolerator-rt/runtime.cpp | chintanaprabhu/LLVM-dynamic-analysis | dff9140b194a49c343bfa4062b52ee646e3fd409 | [
"MIT"
] | null | null | null | lib/tolerator-rt/runtime.cpp | chintanaprabhu/LLVM-dynamic-analysis | dff9140b194a49c343bfa4062b52ee646e3fd409 | [
"MIT"
] | null | null | null |
#include <cstdint>
#include <cstdio>
#include <iostream>
#include <map>
#include <vector>
extern "C" {
// This macro allows us to prefix strings so that they are less likely to
// conflict with existing symbol names in the examined programs.
// e.g. TOLERATE(entry) yields ToLeRaToR_entry
#define TOLERATE(X) ToLeRaT... | 23.0625 | 73 | 0.599819 | [
"vector"
] |
90d3ba6fe66c7d47044ff7bf2f587bf39c88151a | 2,069 | cc | C++ | SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestG4Geometry.cc | skyriacoCMS/cmssw | 17507fb9bbd5f1db06dda9c95d52758ef2356994 | [
"Apache-2.0"
] | null | null | null | SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestG4Geometry.cc | skyriacoCMS/cmssw | 17507fb9bbd5f1db06dda9c95d52758ef2356994 | [
"Apache-2.0"
] | null | null | null | SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestG4Geometry.cc | skyriacoCMS/cmssw | 17507fb9bbd5f1db06dda9c95d52758ef2356994 | [
"Apache-2.0"
] | null | null | null | #include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/ESTransientHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DetectorDescription/DDCMS/interface/... | 31.348485 | 80 | 0.777187 | [
"geometry"
] |
90d4a4ead42c14b93c4b76a7cf4826c250c5be78 | 876 | cpp | C++ | tests/Mock/FFTCheckerFilter.cpp | AudioTK/AudioTK | dba42eea68534501efe74692b74edf4792cca231 | [
"BSD-3-Clause"
] | 23 | 2021-02-04T10:47:46.000Z | 2022-03-25T03:45:00.000Z | tests/Mock/FFTCheckerFilter.cpp | AudioTK/AudioTK | dba42eea68534501efe74692b74edf4792cca231 | [
"BSD-3-Clause"
] | 2 | 2021-02-01T15:45:06.000Z | 2021-09-13T19:39:05.000Z | tests/Mock/FFTCheckerFilter.cpp | AudioTK/AudioTK | dba42eea68534501efe74692b74edf4792cca231 | [
"BSD-3-Clause"
] | 2 | 2021-04-12T03:28:12.000Z | 2021-12-17T00:47:11.000Z | /**
* \file FFTCheckerFilter.cpp
*/
#include <ATK/Core/TypedBaseFilter.h>
#include <ATK/Mock/FFTCheckerFilter.h>
#include <ATK/Mock/SimpleSinusGeneratorFilter.h>
#include <gtest/gtest.h>
constexpr gsl::index PROCESSSIZE = (1024 * 1024);
TEST(FFTCheckerFilter, sinus_test)
{
ATK::SimpleSinusGeneratorFilter<doubl... | 26.545455 | 56 | 0.760274 | [
"vector"
] |
90d5d4bc6faecc749e6fb5675d78614627ca61a6 | 42,135 | cc | C++ | cryptohome/vault_keyset_unittest.cc | ascii33/platform2 | b78891020724e9ff26b11ca89c2a53f949e99748 | [
"BSD-3-Clause"
] | null | null | null | cryptohome/vault_keyset_unittest.cc | ascii33/platform2 | b78891020724e9ff26b11ca89c2a53f949e99748 | [
"BSD-3-Clause"
] | null | null | null | cryptohome/vault_keyset_unittest.cc | ascii33/platform2 | b78891020724e9ff26b11ca89c2a53f949e99748 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Unit tests for VaultKeyset.
#include "cryptohome/vault_keyset.h"
#include <memory>
#include <openssl/evp.h>
#include <optional>
#include <stri... | 39.158922 | 80 | 0.775507 | [
"object",
"vector"
] |
90dcc051b8f8676b59a38025ce724fe0d9ff16a7 | 1,013 | cpp | C++ | test.cpp | anttisalonen/libcommon | f16ecf275af944329a0d2285823a9c1f73c84e98 | [
"MIT"
] | null | null | null | test.cpp | anttisalonen/libcommon | f16ecf275af944329a0d2285823a9c1f73c84e98 | [
"MIT"
] | null | null | null | test.cpp | anttisalonen/libcommon | f16ecf275af944329a0d2285823a9c1f73c84e98 | [
"MIT"
] | 4 | 2016-08-03T08:43:15.000Z | 2021-08-23T14:20:43.000Z | #include <time.h>
#include <iostream>
#include <cstdlib>
int math_segment_segment_3d_distance(int argc, char** argv);
int geometry(int argc, char** argv);
int quadtree(int argc, char** argv);
int linequadtree(int argc, char** argv);
int math_quaternion(int argc, char** argv);
int main(int argc, char** argv)
{
int s... | 19.480769 | 65 | 0.64462 | [
"geometry",
"3d"
] |
90e326162834fb033da5656aa1c4704fbaeba2b0 | 3,257 | cpp | C++ | DSVis/app/app.cpp | Dreamerryao/CPlusPlus-Project | 5861a277f13fb23c6a6c0548095014c25ae32b62 | [
"MIT"
] | 1 | 2020-07-25T14:49:10.000Z | 2020-07-25T14:49:10.000Z | DSVis/app/app.cpp | Dreamerryao/CPlusPlus-Project | 5861a277f13fb23c6a6c0548095014c25ae32b62 | [
"MIT"
] | null | null | null | DSVis/app/app.cpp | Dreamerryao/CPlusPlus-Project | 5861a277f13fb23c6a6c0548095014c25ae32b62 | [
"MIT"
] | null | null | null | #include <QApplication>
#include "app.h"
app::app()
{
}
app::~app()
{
}
void app::run(){
//model初始化
model = std::make_shared<ArrayModel>();
Tmodel = std::make_shared<TreeModel>();
//viewModel初始化,绑定model
viewmodel = std::make_shared<ArrayViewModel>();
viewmodel->setArrayModel(model);
Tvi... | 31.019048 | 66 | 0.747006 | [
"model"
] |
90e87db26b09fc8f0f7e542fb6cb1e16a7eb4f1a | 2,244 | cpp | C++ | test/test_txid.cpp | fujita-cg/cfd-core | 9f3bbf0dfdfbc33dd4fd00cb6d81665dc98bffe2 | [
"MIT"
] | null | null | null | test/test_txid.cpp | fujita-cg/cfd-core | 9f3bbf0dfdfbc33dd4fd00cb6d81665dc98bffe2 | [
"MIT"
] | 2 | 2019-11-11T06:29:38.000Z | 2020-07-18T08:02:16.000Z | test/test_txid.cpp | fujita-cg/cfd-core | 9f3bbf0dfdfbc33dd4fd00cb6d81665dc98bffe2 | [
"MIT"
] | 1 | 2019-11-08T13:13:42.000Z | 2019-11-08T13:13:42.000Z | #include "gtest/gtest.h"
#include <vector>
#include "cfdcore/cfdcore_common.h"
#include "cfdcore/cfdcore_transaction.h"
#include "cfdcore/cfdcore_exception.h"
// https://qiita.com/yohm/items/477bac065f4b772127c7
// The main function are using gtest's main().
// TEST(test_suite_name, test_name)
using cfd::core::Txi... | 28.769231 | 94 | 0.745544 | [
"vector"
] |
90ef2bdbbe153d646c7e7c3abbb5548053514bbc | 1,895 | hpp | C++ | boost/log/utility/functional/fun_ref.hpp | HelloSunyi/boost_1_54_0 | 429fea793612f973d4b7a0e69c5af8156ae2b56e | [
"BSL-1.0"
] | 61 | 2015-12-05T19:34:20.000Z | 2021-06-25T09:07:09.000Z | boost/log/utility/functional/fun_ref.hpp | graehl/boost | 37cc4ca77896a86ad10e90dc03e1e825dc0d5492 | [
"BSL-1.0"
] | 38 | 2015-07-22T07:35:45.000Z | 2019-03-14T16:03:06.000Z | boost/log/utility/functional/fun_ref.hpp | graehl/boost | 37cc4ca77896a86ad10e90dc03e1e825dc0d5492 | [
"BSL-1.0"
] | 35 | 2015-12-17T00:09:14.000Z | 2021-01-27T10:47:11.000Z | /*
* Copyright Andrey Semashev 2007 - 2013.
* 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)
*/
/*!
* \file fun_ref.hpp
* \author Andrey Semashev
* \date 30.03.2008
*
* This header ... | 23.6875 | 101 | 0.716095 | [
"object"
] |
90ef5fe95ac63eff75a9e4dd65368357b1e26b8c | 1,223 | cpp | C++ | Test/Test.cpp | DrizztDoUrden/OpenCLMocker | f3382ce780483f2af9c44b112ee76a2d374f097c | [
"MIT"
] | null | null | null | Test/Test.cpp | DrizztDoUrden/OpenCLMocker | f3382ce780483f2af9c44b112ee76a2d374f097c | [
"MIT"
] | null | null | null | Test/Test.cpp | DrizztDoUrden/OpenCLMocker | f3382ce780483f2af9c44b112ee76a2d374f097c | [
"MIT"
] | null | null | null | #include <CL/cl.h>
#include <cassert>
#include <iostream>
#include <vector>
void Validate(cl_int status)
{
assert(status==CL_SUCCESS);
}
int main()
{
auto platformsNumber = cl_uint{};
Validate(clGetPlatformIDs(0, nullptr, &platformsNumber));
auto platforms = std::vector<cl_platform_id>{};
platfo... | 29.119048 | 99 | 0.665576 | [
"vector"
] |
90f3726331caa3fece610a03554bed4afd8acfed | 1,231 | hpp | C++ | ql/experimental/preexperimental/tDistribution1d.hpp | universe1987/QuantLib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 4 | 2016-03-28T15:05:23.000Z | 2020-02-17T23:05:57.000Z | ql/experimental/preexperimental/tDistribution1d.hpp | universe1987/QuantLib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 1 | 2015-02-02T20:32:43.000Z | 2015-02-02T20:32:43.000Z | ql/experimental/preexperimental/tDistribution1d.hpp | pcaspers/quantlib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 10 | 2015-01-26T14:50:24.000Z | 2015-10-23T07:41:30.000Z | /*! \file tDistribution1d.hpp
t distribution 1 dim, for nu=0.0 normal distribution
Peter Caspers */
#ifndef quantlib_tDistribution1d_hpp
#define quantlib_tDistribution1d_hpp
#include <ql/quantlib.hpp>
#include <gammaFunction.hpp>
#include <vector>
#include <math.h>
#include <stdio.h>
#define SMALL 1.0E-8 // for p... | 20.180328 | 103 | 0.69212 | [
"vector"
] |
90f5e893675206496935cad03621d187897fc94c | 659 | cpp | C++ | 07. Reverse Integer.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | 6 | 2017-11-18T02:16:35.000Z | 2017-12-17T06:30:40.000Z | 07. Reverse Integer.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | null | null | null | 07. Reverse Integer.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | null | null | null | // 主要要防止int 溢出的情况,所以 res ,p 都设为long long 来防止溢出.
class Solution {
public:
int reverse(int x) {
vector<int> a;
if(x==0 ) return 0;
int flag =1;
if(x<0)
{
x =-x;
flag =0;
}
while(x!=0)
{
int number = x%10;
... | 19.969697 | 54 | 0.365706 | [
"vector"
] |
90f6f5426d31fd647b488cd527db32548fa15ff7 | 45,414 | cpp | C++ | glvis.cpp | hudsabel/glvis | 8f769890f8260eaba7c320f6eabb96e0e61cda94 | [
"BSD-3-Clause"
] | null | null | null | glvis.cpp | hudsabel/glvis | 8f769890f8260eaba7c320f6eabb96e0e61cda94 | [
"BSD-3-Clause"
] | null | null | null | glvis.cpp | hudsabel/glvis | 8f769890f8260eaba7c320f6eabb96e0e61cda94 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-443271.
//
// This file is part of the GLVis visualization tool and library. For more
// information and source co... | 27.177738 | 92 | 0.492932 | [
"mesh",
"geometry",
"vector",
"3d"
] |
90fb5ab30d2e48e2e06ba30bd0348fb97cdb6e98 | 1,814 | cpp | C++ | UVa/UVA - 11997/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | UVa/UVA - 11997/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | UVa/UVA - 11997/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2019-10-18 23:13:20
* solution_verdict: Accepted language: C++
* run... | 27.074627 | 111 | 0.384234 | [
"vector"
] |
90fc1c55388e29979f2a5d04c9eb4573006d7b23 | 5,308 | cpp | C++ | src/MainFrame.cpp | Drusy/qt-borderless | e46af84034bc6b8cf57d40283c84d5d5514102e2 | [
"MIT"
] | 5 | 2016-06-06T13:25:53.000Z | 2021-04-18T22:53:05.000Z | src/MainFrame.cpp | Drusy/qt-borderless | e46af84034bc6b8cf57d40283c84d5d5514102e2 | [
"MIT"
] | null | null | null | src/MainFrame.cpp | Drusy/qt-borderless | e46af84034bc6b8cf57d40283c84d5d5514102e2 | [
"MIT"
] | 2 | 2015-06-26T12:06:04.000Z | 2019-05-15T13:30:40.000Z | #include "MainFrame.h"
#include "TitleBar.h"
#include "HoverMoveFilter.h"
#include "WindowTitleFilter.h"
MainFrame::MainFrame()
{
mMousePressed = false;
setFrameShape(Panel);
// Make this a borderless window which can't
// be resized or moved via the window system
setWindowFlags(Qt::FramelessWindo... | 30.331429 | 144 | 0.555765 | [
"geometry"
] |
2908b2b4804887104a6a86d42ae28d5e85f99860 | 2,500 | cpp | C++ | src/asn-one-objects/LdapSearchRequestAsnOneObject.cpp | gflix/LdapServer | 1865caeec95c0e984cfab70d54976197349457eb | [
"MIT"
] | 1 | 2020-10-04T21:00:42.000Z | 2020-10-04T21:00:42.000Z | src/asn-one-objects/LdapSearchRequestAsnOneObject.cpp | gflix/LdapServer | 1865caeec95c0e984cfab70d54976197349457eb | [
"MIT"
] | null | null | null | src/asn-one-objects/LdapSearchRequestAsnOneObject.cpp | gflix/LdapServer | 1865caeec95c0e984cfab70d54976197349457eb | [
"MIT"
] | null | null | null | /*
* LdapSearchRequestAsnOneObject.cpp
*
* Created on: 14.05.2017
* Author: felix
*/
#include <cassert>
#include <asn-one-objects/LdapSearchRequestAsnOneObject.h>
#include <common/Log.h>
namespace Flix {
LdapSearchRequestAsnOneObject::LdapSearchRequestAsnOneObject():
GenericAsnOneObject(AsnOneObjectTy... | 25.252525 | 123 | 0.6784 | [
"object"
] |
290e3e3345464ed569686228ed294be0aa7ae0c7 | 66,740 | cpp | C++ | src/PdnPinDumper/src/dr/FlexDR_maze.cpp | ax3ghazy/pdn | a53aaf9620654fc799227f2f48d61eceb0322b36 | [
"BSD-3-Clause"
] | null | null | null | src/PdnPinDumper/src/dr/FlexDR_maze.cpp | ax3ghazy/pdn | a53aaf9620654fc799227f2f48d61eceb0322b36 | [
"BSD-3-Clause"
] | null | null | null | src/PdnPinDumper/src/dr/FlexDR_maze.cpp | ax3ghazy/pdn | a53aaf9620654fc799227f2f48d61eceb0322b36 | [
"BSD-3-Clause"
] | null | null | null | /* Authors: Lutong Wang and Bangqi Xu */
/*
* Copyright (c) 2019, The Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sour... | 37.942013 | 154 | 0.587084 | [
"vector",
"transform"
] |
2912dd1180ccf161e6ff9d609ff9409aff4b4cb3 | 486 | cpp | C++ | January Challenges/Day21-Find the Most Competitive Subsequence.cpp | kaushalk844/leetcode | c9497a1cf36e4d7f84161cf8d12e2cfc4a6b937d | [
"MIT"
] | null | null | null | January Challenges/Day21-Find the Most Competitive Subsequence.cpp | kaushalk844/leetcode | c9497a1cf36e4d7f84161cf8d12e2cfc4a6b937d | [
"MIT"
] | null | null | null | January Challenges/Day21-Find the Most Competitive Subsequence.cpp | kaushalk844/leetcode | c9497a1cf36e4d7f84161cf8d12e2cfc4a6b937d | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> mostCompetitive(vector<int>& nums, int k) {
vector<int> ans;
int rem = nums.size()-k;
for(auto a:nums){
while(ans.size() && rem && a<ans.back()){
ans.pop_back();
rem--;
}
... | 19.44 | 59 | 0.37037 | [
"vector"
] |
291d0dd77fad4b7ffbf7410965e515ea108dd057 | 14,255 | hpp | C++ | external/jigsaw/src/marche.hpp | crohr88/jigsaw-matlab | 372b960d33ac135dc12574a34107848146d43c6e | [
"Unlicense"
] | null | null | null | external/jigsaw/src/marche.hpp | crohr88/jigsaw-matlab | 372b960d33ac135dc12574a34107848146d43c6e | [
"Unlicense"
] | null | null | null | external/jigsaw/src/marche.hpp | crohr88/jigsaw-matlab | 372b960d33ac135dc12574a34107848146d43c6e | [
"Unlicense"
] | null | null | null |
/*
--------------------------------------------------------
*
* ,o, ,o, /
* ` ` e88~88e d88~\ /~~~8e Y88b e /
* 888 888 88 88 C888 88b Y88b d8b /
* 888 888 "8b_d8" Y88b e88~-888 Y888/Y88b/
* 888 888 / 888D C88 888 Y8/ Y8/
... | 27.679612 | 69 | 0.407085 | [
"mesh",
"object"
] |
291e8141bdd5f7d5aa62d81fad8494b2df82c690 | 15,824 | cpp | C++ | src/names/main.cpp | opensourcerulez/xaya | 0bd3b6658c29f04bc8a40dbc9cc35fbdb26ff3cf | [
"MIT"
] | null | null | null | src/names/main.cpp | opensourcerulez/xaya | 0bd3b6658c29f04bc8a40dbc9cc35fbdb26ff3cf | [
"MIT"
] | null | null | null | src/names/main.cpp | opensourcerulez/xaya | 0bd3b6658c29f04bc8a40dbc9cc35fbdb26ff3cf | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2018 Daniel Kraft
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <names/main.h>
#include <chainparams.h>
#include <coins.h>
#include <consensus/validation.h>
#include <dbwrapper.h>
#include <hash... | 30.140952 | 80 | 0.594603 | [
"object",
"vector"
] |
29200b6c73a0a0094f1d6c33f50fdbcf1c752a9d | 7,519 | hpp | C++ | include/VROSC/NoteSwitchMaterialController.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/VROSC/NoteSwitchMaterialController.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/VROSC/NoteSwitchMaterialController.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: VROSC.NoteBoardNoteVisualController... | 47.89172 | 200 | 0.741987 | [
"object",
"vector"
] |
29223e2353fa9bee914f5327cab5db1be29b4777 | 914 | cpp | C++ | CSES/Sorting-and-Serching/1085.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | CSES/Sorting-and-Serching/1085.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | CSES/Sorting-and-Serching/1085.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | // Binary Search
// 3
// 10-09-2020
#include <bits/stdc++.h>
#define all(A) begin(A), end(A)
#define rall(A) rbegin(A), rend(A)
#define sz(A) int(A.size())
#define pb push_back
#define mp make_pair
using namespace std;
typedef long long ll;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
type... | 19.869565 | 68 | 0.515317 | [
"vector"
] |
292686660723b1f23d1fa25d67615dd669705c79 | 5,633 | cpp | C++ | src/new_expr/internal_functions.cpp | phantom9999/BaikalDB | 094a7fc457cb345d8e9834a052d7bc17e996999f | [
"Apache-2.0"
] | 1 | 2018-08-07T13:33:47.000Z | 2018-08-07T13:33:47.000Z | src/new_expr/internal_functions.cpp | MinHaoSun/BaikalDB | 191870058f1956d8b50258526aef92c24fc0262f | [
"Apache-2.0"
] | null | null | null | src/new_expr/internal_functions.cpp | MinHaoSun/BaikalDB | 191870058f1956d8b50258526aef92c24fc0262f | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2018 Baidu, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | 26.952153 | 92 | 0.587964 | [
"vector",
"transform"
] |
292c65e4dc2402eea2d53a5ec30547598c2fa2af | 1,721 | hpp | C++ | RPG-Game/Game.hpp | mDevv/RPG-Game | e83857c2e71f2689053e6fd114ee85dae05ddcb1 | [
"MIT"
] | null | null | null | RPG-Game/Game.hpp | mDevv/RPG-Game | e83857c2e71f2689053e6fd114ee85dae05ddcb1 | [
"MIT"
] | 1 | 2017-06-14T17:34:50.000Z | 2017-06-14T17:34:50.000Z | RPG-Game/Game.hpp | mDevv/RPG-Game | e83857c2e71f2689053e6fd114ee85dae05ddcb1 | [
"MIT"
] | null | null | null | //
// Game.hpp
// RPG-Game
//
// Created by Michał Dziewulski on 10.05.2017.
// Copyright © 2017 Michał Dziewulski. All rights reserved.
//
#ifndef Game_hpp
#define Game_hpp
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <memory>
#include <fstream>
#include "json.hpp"
#include "ResourcePath.hpp"
... | 22.644737 | 61 | 0.689715 | [
"render"
] |
a0963106e9857b4d0929ffec82db5466bafbb64e | 1,562 | cpp | C++ | TG/bookcodes/ch5/la4287_kosaraju.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | TG/bookcodes/ch5/la4287_kosaraju.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | TG/bookcodes/ch5/la4287_kosaraju.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // LA4287 Proving Equivalences:用Kosaraju算法算SCC
// Rujia Liu
#include<cstdio>
#include<algorithm>
#include<vector>
#include<cstring>
#include<stack>
using namespace std;
const int maxn = 20000 + 10;
vector<int> G[maxn], G2[maxn];
vector<int> S;
int vis[maxn], sccno[maxn], scc_cnt;
void dfs1(int u) {
if(vis[u]) retu... | 21.694444 | 68 | 0.495519 | [
"vector"
] |
a096e99db8d0353ece4a2bdaf0f31cd6b6acd0e4 | 845 | cpp | C++ | aten/src/ATen/native/quantized/cpu/xnnpack_utils.cpp | dme65/pytorch | bc512253d5fe718a029324c45f175a81b088facd | [
"Intel"
] | null | null | null | aten/src/ATen/native/quantized/cpu/xnnpack_utils.cpp | dme65/pytorch | bc512253d5fe718a029324c45f175a81b088facd | [
"Intel"
] | null | null | null | aten/src/ATen/native/quantized/cpu/xnnpack_utils.cpp | dme65/pytorch | bc512253d5fe718a029324c45f175a81b088facd | [
"Intel"
] | null | null | null | #include <ATen/ATen.h>
#ifdef USE_XNNPACK
namespace at {
namespace native {
namespace xnnp_utils {
std::vector<size_t> get_mem_format_aware_shape(const at::Tensor& in) {
const auto mem_format = in.suggest_memory_format();
const auto& sizes = in.sizes();
std::vector<size_t> ret(sizes.begin(), sizes.end());
if ... | 25.606061 | 70 | 0.590533 | [
"vector"
] |
a09855d13c4a380ef97aa1ec9c20dd56810df112 | 4,059 | cpp | C++ | src/imgui_toolbars.cpp | yak32/glw_imgui | 546b8658558629cd7f5a5f72470b2faad61e68df | [
"BSD-2-Clause"
] | 56 | 2016-09-22T03:34:21.000Z | 2022-02-08T23:47:31.000Z | src/imgui_toolbars.cpp | yak32/glw_imgui | 546b8658558629cd7f5a5f72470b2faad61e68df | [
"BSD-2-Clause"
] | null | null | null | src/imgui_toolbars.cpp | yak32/glw_imgui | 546b8658558629cd7f5a5f72470b2faad61e68df | [
"BSD-2-Clause"
] | 13 | 2017-05-25T08:19:09.000Z | 2020-06-15T10:08:07.000Z | // glw_imgui
// Copyright (C) 2016 Iakov Sumygin - BSD license
#include "imgui_toolbars.h"
#include "imgui_ui.h"
#include "imgui_rollout.h"
#include <math.h>
#include <cstdlib>
namespace imgui {
Toolbar* Toolbar::add_rollout(Rollout* r, float _div, bool _horz) {
div = _div;
horz = _horz;
if (div == 1.0f) {
rollo... | 26.357143 | 98 | 0.600887 | [
"vector"
] |
a09b89cbd79bf1639e6b27fa984c6d7b8af4d097 | 4,259 | cpp | C++ | unittest/srdf.cpp | mkatliar/pinocchio | b755b9cf2567eab39de30a68b2a80fac802a4042 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | unittest/srdf.cpp | mkatliar/pinocchio | b755b9cf2567eab39de30a68b2a80fac802a4042 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | unittest/srdf.cpp | mkatliar/pinocchio | b755b9cf2567eab39de30a68b2a80fac802a4042 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2020-02-25T13:34:37.000Z | 2020-02-25T13:34:37.000Z | //
// Copyright (c) 2016-2018 CNRS
//
#include <iostream>
#include "pinocchio/multibody/model.hpp"
#include "pinocchio/parsers/urdf.hpp"
#include "pinocchio/parsers/srdf.hpp"
#include <boost/test/unit_test.hpp>
using namespace pinocchio;
using namespace std;
BOOST_AUTO_TEST_SUITE ( BOOST_TEST_MODULE )
BOOST_AUTO_... | 29.576389 | 108 | 0.722705 | [
"vector",
"model"
] |
a09cb7363694d6c6418c875eb12298133adaf4af | 10,090 | cpp | C++ | src/caffe/RFCN/psroi_align_layer.cpp | xyt2008/frcnn | 32a559e881cceeba09a90ff45ad4aae1dabf92a1 | [
"BSD-2-Clause"
] | 198 | 2018-01-07T13:44:29.000Z | 2022-03-21T12:06:16.000Z | src/caffe/RFCN/psroi_align_layer.cpp | xyt2008/frcnn | 32a559e881cceeba09a90ff45ad4aae1dabf92a1 | [
"BSD-2-Clause"
] | 18 | 2018-02-01T13:24:53.000Z | 2021-04-26T10:51:47.000Z | src/caffe/RFCN/psroi_align_layer.cpp | xyt2008/frcnn | 32a559e881cceeba09a90ff45ad4aae1dabf92a1 | [
"BSD-2-Clause"
] | 82 | 2018-01-06T14:21:43.000Z | 2022-02-16T09:39:58.000Z | // ------------------------------------------------------------------
// R-FCN
// Written by Jiangfan Deng
// Written by Afanti<afanti.deng@gmail.com>
// Modify by fyk to add CPU forward
// ------------------------------------------------------------------
#include <algorithm>
#include <cfloat>
#include <string>
#inc... | 46.712963 | 137 | 0.5 | [
"vector"
] |
a0a73b9d840d1163f7fd40e85c2dd2b250bd367c | 6,649 | cpp | C++ | tests/main.cpp | kevcadieux/irrlicht | 97472da9c22ae4a49dfcefb9da5156601fa6a82a | [
"IJG"
] | 440 | 2015-01-04T16:01:46.000Z | 2022-03-25T08:31:38.000Z | tests/main.cpp | kevcadieux/irrlicht | 97472da9c22ae4a49dfcefb9da5156601fa6a82a | [
"IJG"
] | 2 | 2021-02-14T19:28:53.000Z | 2021-02-14T20:41:58.000Z | tests/main.cpp | svn2github/irrlicht-trunk | 284c35911e87c0d4ae9ee2100b704af10cef57a5 | [
"IJG"
] | 189 | 2015-01-06T10:39:46.000Z | 2022-02-21T07:20:59.000Z | // Copyright (C) 2008-2012 Colin MacDonald and Christian Stehno
// No rights reserved: this software is in the public domain.
// This is the entry point for the Irrlicht test suite.
// This is an MSVC pragma to link against the Irrlicht library.
// Other builds must link against it in the project files.
#if de... | 25.475096 | 110 | 0.650023 | [
"vector",
"3d"
] |
a0a9fae364d6860219dce2a031450125f43fe5d6 | 2,433 | hpp | C++ | doc/quickbook/oglplus/quickref/enums/capability_class.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | doc/quickbook/oglplus/quickref/enums/capability_class.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | doc/quickbook/oglplus/quickref/enums/capability_class.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | // File doc/quickbook/oglplus/quickref/enums/capability_class.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/capability.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 Matus Chochlik.
// Distributed under the Boost Soft... | 42.684211 | 75 | 0.792437 | [
"transform"
] |
a0a9ff146a9d12286b86ac7aa497c2137e0d2a72 | 9,085 | cpp | C++ | src/grt/src/MakeWireParasitics.cpp | ravi-varadarajan/OpenROAD | dc228c6a539157349d9391d893ed255b51dd4f64 | [
"BSD-3-Clause-Clear"
] | null | null | null | src/grt/src/MakeWireParasitics.cpp | ravi-varadarajan/OpenROAD | dc228c6a539157349d9391d893ed255b51dd4f64 | [
"BSD-3-Clause-Clear"
] | null | null | null | src/grt/src/MakeWireParasitics.cpp | ravi-varadarajan/OpenROAD | dc228c6a539157349d9391d893ed255b51dd4f64 | [
"BSD-3-Clause-Clear"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
//
// BSD 3-Clause License
//
// Copyright (c) 2019, The Regents of the University of California
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the... | 35.488281 | 80 | 0.627188 | [
"vector"
] |
a0aadee2d0fa9323e3318adee27f36f5f1e03290 | 5,299 | cpp | C++ | src/program/evolution-sequential.cpp | demiurge-project/ARGoS3-NEAT | bcd6d3073cc00c8d8958f09c748b9bef2559605e | [
"Apache-2.0"
] | 1 | 2020-01-14T10:59:19.000Z | 2020-01-14T10:59:19.000Z | src/program/evolution-sequential.cpp | demiurge-project/ARGoS3-NEAT | bcd6d3073cc00c8d8958f09c748b9bef2559605e | [
"Apache-2.0"
] | null | null | null | src/program/evolution-sequential.cpp | demiurge-project/ARGoS3-NEAT | bcd6d3073cc00c8d8958f09c748b9bef2559605e | [
"Apache-2.0"
] | 1 | 2020-08-14T08:27:45.000Z | 2020-08-14T08:27:45.000Z | // Standard C++ Library
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <math.h>
// NEAT
#include "../NEAT/experiments.h"
// ARGOS
#include <argos3/core/simulator/simulator.h>
#include <argos3/core/simulator/loop_functions.h>
#include <argos3/core/simulator/visualization/visualizat... | 36.544828 | 174 | 0.661823 | [
"vector"
] |
a0b2702b4de76e56c39272c1d507468a4634904e | 5,723 | hpp | C++ | include/testmatch/helpers.hpp | LiamBlake/TestMatch-Backend | 58f48641857042aa52c383db6e3b6d994be91479 | [
"MIT"
] | 1 | 2021-03-28T09:46:39.000Z | 2021-03-28T09:46:39.000Z | include/testmatch/helpers.hpp | LiamBlake/TestMatch | aae0cb0863b76dc9a53d95dffe6788a49fa9ec0e | [
"MIT"
] | 16 | 2021-03-28T09:50:48.000Z | 2021-09-15T19:13:17.000Z | include/testmatch/helpers.hpp | LiamBlake/TestMatch | aae0cb0863b76dc9a53d95dffe6788a49fa9ec0e | [
"MIT"
] | null | null | null | // -*- lsst-c++ -*-
/* Utility.h
*
* Contains various helper functions used throughout the program. Includes
* functions for converting between strings and their encodings as integers, and
* vice-versa. These are used primarily in conversions from simulation backend
* to printed/displayed results (e.g. a scorecard... | 26.995283 | 80 | 0.615062 | [
"vector",
"transform"
] |
a0b2a342e57646e088e61cdabd85cfb96d9a55ef | 336 | cpp | C++ | foo.cpp | RCoeurjoly/CPP-Crash-Course | 17f98e5d0b6c6d62acaab96b8210d2050ce72c64 | [
"MIT"
] | null | null | null | foo.cpp | RCoeurjoly/CPP-Crash-Course | 17f98e5d0b6c6d62acaab96b8210d2050ce72c64 | [
"MIT"
] | null | null | null | foo.cpp | RCoeurjoly/CPP-Crash-Course | 17f98e5d0b6c6d62acaab96b8210d2050ce72c64 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdexcept>
#include <fstream>
#include <sstream>
#include <vector>
#include <map>
#include <string>
#include <algorithm>
#include <stdio.h>
using namespace std;
float foo( float a=0, float b=1, float c=2 ){return a+b+c;}
int main() {
cout << foo(1) << endl << foo(1,2) << endl << foo(1,... | 19.764706 | 67 | 0.645833 | [
"vector"
] |
a0b713159b3c951339345a486bc84e205cb55332 | 3,248 | cpp | C++ | example/windows/main.cpp | drisme/fb_auth | 20355f7df9286c42b73a10a2ac2f94035bb5d219 | [
"MIT"
] | 3 | 2019-10-16T19:26:24.000Z | 2020-05-21T07:29:30.000Z | example/windows/main.cpp | Jeremywhiteley/fb_auth | c76a274f05996291aeed1838df2b8ed818a9f3bb | [
"MIT"
] | null | null | null | example/windows/main.cpp | Jeremywhiteley/fb_auth | c76a274f05996291aeed1838df2b8ed818a9f3bb | [
"MIT"
] | 1 | 2021-01-21T02:50:44.000Z | 2021-01-21T02:50:44.000Z | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 34.924731 | 80 | 0.730296 | [
"vector"
] |
a0bcd972a3087d85ec90d60325b27486cf4de9bd | 4,229 | cpp | C++ | adaptors/base/separate-update-render/update-thread.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | adaptors/base/separate-update-render/update-thread.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | adaptors/base/separate-update-render/update-thread.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* 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... | 29.368056 | 173 | 0.725467 | [
"render"
] |
a0bdbbd24c6874cad6947bfc6c3c3c9c17ae90ca | 4,134 | cc | C++ | src/sol/model/olm/cw.cc | awong100/SOL | 1c522a1b667d258f4c9482788c19b74cdf9e6d69 | [
"Apache-2.0"
] | 84 | 2016-08-27T13:13:41.000Z | 2021-04-28T14:24:57.000Z | src/sol/model/olm/cw.cc | awong100/SOL | 1c522a1b667d258f4c9482788c19b74cdf9e6d69 | [
"Apache-2.0"
] | 9 | 2017-01-23T01:12:20.000Z | 2020-08-29T07:46:28.000Z | src/sol/model/olm/cw.cc | awong100/SOL | 1c522a1b667d258f4c9482788c19b74cdf9e6d69 | [
"Apache-2.0"
] | 37 | 2016-09-05T06:27:39.000Z | 2021-04-15T02:17:29.000Z | /*********************************************************************************
* File Name : cw.cc
* Created By : yuewu
* Description : Confidence Weighted Online Learning
**********************************************************************************/
#include... | 27.932432 | 83 | 0.553943 | [
"vector",
"model"
] |
a0be2c2bed2784eb3f965956b6ea73765d51765b | 6,027 | cpp | C++ | tests-batch/eventdata/main.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | 18 | 2016-08-04T16:09:52.000Z | 2022-01-17T15:43:37.000Z | tests-batch/eventdata/main.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | 123 | 2015-01-08T17:32:39.000Z | 2021-12-22T00:55:00.000Z | tests-batch/eventdata/main.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | 21 | 2016-11-04T18:36:29.000Z | 2022-03-01T19:44:11.000Z |
#include <iostream>
#include <data/VRDataIndex.h>
#include <event/VREvent.h>
#include <math/VRMath.h>
int main(int argc, char **argv) {
// fill a data index with an example for each of the VRCoreTypes
VRDataIndex e1Data;
// VRInt
e1Data.addData("MyInteger", 1);
// VRDouble
e1Data.addData("MyFloa... | 30.439394 | 153 | 0.6519 | [
"object"
] |
a0be6dbd4d8ec363b821afd0ef5378729d5f86d7 | 19,920 | hpp | C++ | src/percept/mesh/gen/SweepMesher.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 3 | 2017-08-08T21:06:02.000Z | 2020-01-08T13:23:36.000Z | src/percept/mesh/gen/SweepMesher.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2016-12-17T00:18:56.000Z | 2019-08-09T15:29:25.000Z | src/percept/mesh/gen/SweepMesher.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2017-11-30T07:02:41.000Z | 2019-08-05T17:07:04.000Z | // Copyright 2002 - 2008, 2010, 2011 National Technology Engineering
// Solutions of Sandia, LLC (NTESS). Under the terms of Contract
// DE-NA0003525 with NTESS, the U.S. Government retains certain rights
// in this software.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the L... | 33.591906 | 152 | 0.558333 | [
"mesh",
"vector",
"transform"
] |
a0c21de837e2b2859001a6909a7a0a5ab9c6921e | 6,597 | cc | C++ | third_party/openfst/src/lib/fst.cc | hellais/marionette | 12be546b5d166033e7ca3b2a6a3379122b71b8ce | [
"Apache-2.0"
] | 11 | 2016-03-04T16:29:06.000Z | 2021-10-02T03:27:55.000Z | third_party/openfst/src/lib/fst.cc | hellais/marionette | 12be546b5d166033e7ca3b2a6a3379122b71b8ce | [
"Apache-2.0"
] | 5 | 2015-04-08T16:52:03.000Z | 2015-08-22T18:14:50.000Z | third_party/openfst/src/lib/fst.cc | hellais/marionette | 12be546b5d166033e7ca3b2a6a3379122b71b8ce | [
"Apache-2.0"
] | 5 | 2015-08-20T16:39:58.000Z | 2021-10-19T18:48:27.000Z | // fst.cc
// 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, software
// d... | 33.658163 | 80 | 0.736395 | [
"vector"
] |
a0c4dfb109b98ee3bb1e4d78832a1a47d73cf0fa | 11,178 | cc | C++ | gui/qfilesystemtreeview/QFileSystemTreeView.cc | amyznikov/SerStacker | 6657240210af0b35fff1c5adc1d6f9d51b469e80 | [
"CC0-1.0"
] | 1 | 2021-09-03T06:02:59.000Z | 2021-09-03T06:02:59.000Z | gui/qfilesystemtreeview/QFileSystemTreeView.cc | amyznikov/SerStacker | 6657240210af0b35fff1c5adc1d6f9d51b469e80 | [
"CC0-1.0"
] | 1 | 2021-09-03T03:43:54.000Z | 2021-09-10T01:30:46.000Z | gui/qfilesystemtreeview/QFileSystemTreeView.cc | amyznikov/SerStacker | 6657240210af0b35fff1c5adc1d6f9d51b469e80 | [
"CC0-1.0"
] | null | null | null | /*
* QFileSystemTreeView.cc
*
* Created on: Dec 17, 2016
* Author: amyznikov
*/
#include "QFileSystemTreeView.h"
#include <gui/widgets/QWaitCursor.h>
#define ICON_copy "copy"
#define ICON_delete "delete"
static QIcon getIcon(const QString & name)
{
return QIcon(QString(":/qfilesystemtreeview/icons/%1"... | 29.033766 | 122 | 0.616747 | [
"model"
] |
a0c6799264c1d4f2cdd0dc3e9ef00cb02785f5ec | 2,949 | cpp | C++ | 3rdparty/FlyCube/src/Core/Pipeline/VKRayTracingPipeline.cpp | CU-Production/FlyCube-Demos | 2763720818499bc9244eb4b16e60e647a5c88827 | [
"MIT"
] | 8 | 2021-03-17T19:25:12.000Z | 2022-02-05T02:08:21.000Z | 3rdparty/FlyCube/src/Core/Pipeline/VKRayTracingPipeline.cpp | THISISAGOODNAME/SSSR | ea4b6350b2da3d5656c7aa8c87f9965144369d22 | [
"MIT"
] | null | null | null | 3rdparty/FlyCube/src/Core/Pipeline/VKRayTracingPipeline.cpp | THISISAGOODNAME/SSSR | ea4b6350b2da3d5656c7aa8c87f9965144369d22 | [
"MIT"
] | 2 | 2021-09-22T14:39:51.000Z | 2021-11-08T09:47:38.000Z | #include "Pipeline/VKRayTracingPipeline.h"
#include "Pipeline/VKGraphicsPipeline.h"
#include <Device/VKDevice.h>
#include <Adapter/VKAdapter.h>
#include <Program/VKProgram.h>
#include <BindingSetLayout/VKBindingSetLayout.h>
#include <Shader/Shader.h>
#include <map>
VKRayTracingPipeline::VKRayTracingPipeline(VKDevice& ... | 39.851351 | 166 | 0.716853 | [
"vector"
] |
a0d32c608ac61e069e22d03e90a721843ed24d47 | 35,204 | cpp | C++ | tests/test_value.cpp | khoitd1997/toml11 | d685088c923c6eb4e4f62df28e4bfd9559c1aa52 | [
"MIT"
] | null | null | null | tests/test_value.cpp | khoitd1997/toml11 | d685088c923c6eb4e4f62df28e4bfd9559c1aa52 | [
"MIT"
] | null | null | null | tests/test_value.cpp | khoitd1997/toml11 | d685088c923c6eb4e4f62df28e4bfd9559c1aa52 | [
"MIT"
] | null | null | null | #define BOOST_TEST_MODULE "test_value"
#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST
#include <boost/test/unit_test.hpp>
#else
#define BOOST_TEST_NO_LIB
#include <boost/test/included/unit_test.hpp>
#endif
#include <toml.hpp>
#include <map>
#include <list>
#if __cplusplus >= 201703L
#include <string_view>
#endif
BOOST_AUTO... | 38.770925 | 103 | 0.612402 | [
"vector"
] |
a0d3af47c1ad14412d489622886f7480a896e902 | 1,685 | cpp | C++ | src/Render.cpp | assalw/Allanite | 1709b9b523ed65dfa63e016abc4d27c55bcf874c | [
"BSD-2-Clause"
] | 2 | 2017-12-25T09:04:26.000Z | 2017-12-26T08:48:23.000Z | src/Render.cpp | assalw/Allanite | 1709b9b523ed65dfa63e016abc4d27c55bcf874c | [
"BSD-2-Clause"
] | null | null | null | src/Render.cpp | assalw/Allanite | 1709b9b523ed65dfa63e016abc4d27c55bcf874c | [
"BSD-2-Clause"
] | null | null | null | //
// Created by Wadie Assal on 25-12-17.
//
#include <GL/glew.h>
#include <string>
#include <stdexcept>
#include "../include/Render.h"
Render::Render() : windowOpened()
{}
void Render::createWindow(std::string name, int width, int height)
{
if (!windowOpened) {
SDL_LogInfo(SDL_LOG_CATEGORY_RENDER, "Cr... | 22.466667 | 120 | 0.642136 | [
"render"
] |
a0de365783dbafc3bbbabe54c15a267a19f7c458 | 6,199 | cpp | C++ | agent/chord_instr_agent.cpp | CSA-PLLab/STAND | 2e41f21b842ab43f23aecbf5527f6043ce837b29 | [
"BSD-3-Clause"
] | null | null | null | agent/chord_instr_agent.cpp | CSA-PLLab/STAND | 2e41f21b842ab43f23aecbf5527f6043ce837b29 | [
"BSD-3-Clause"
] | null | null | null | agent/chord_instr_agent.cpp | CSA-PLLab/STAND | 2e41f21b842ab43f23aecbf5527f6043ce837b29 | [
"BSD-3-Clause"
] | null | null | null | /*
* This agent expects at least one of the following arguments:
*
* 1. event_handler_class=<CLASS NAME>
* If this argument is present, then this agent takes the following actions:
* a) When the VMInit event is called by JVMTI, this agent calls the static
* synchronized method "void init(String)... | 29.379147 | 82 | 0.63607 | [
"vector"
] |
a0df2f128a7067cfa90c981cc92926867cd3013a | 1,401 | hh | C++ | extern/polymesh/src/polymesh/attribute_base.hh | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | extern/polymesh/src/polymesh/attribute_base.hh | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | extern/polymesh/src/polymesh/attribute_base.hh | huzjkevin/portal_maze_zgl | efb32b1c3430f20638c1401095999ecb4d0af5aa | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <vector>
// Helper for mesh-based attribute bookkeeping
namespace polymesh
{
class Mesh;
template <class MeshT>
struct low_level_api_base;
template <class tag>
struct primitive_attribute_base
{
// members
protected:
Mesh const... | 24.578947 | 99 | 0.709493 | [
"mesh",
"vector"
] |
a0e08eacf40a49ae98e30607a7dae1b6d61b7310 | 1,802 | hpp | C++ | programs/koinos-types/lang/koinos_codegen_cpp/rt/exceptions.hpp | joticajulian/koinos-types | 7d01248437d063deb780af03057737e4937f82d1 | [
"MIT"
] | null | null | null | programs/koinos-types/lang/koinos_codegen_cpp/rt/exceptions.hpp | joticajulian/koinos-types | 7d01248437d063deb780af03057737e4937f82d1 | [
"MIT"
] | null | null | null | programs/koinos-types/lang/koinos_codegen_cpp/rt/exceptions.hpp | joticajulian/koinos-types | 7d01248437d063deb780af03057737e4937f82d1 | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
#define KOINOS_PACK_MAX_ARRAY_ALLOC_SIZE (1024*1024*10)
#define KOINOS_PACK_MAX_RECURSION_DEPTH (20)
namespace koinos::pack {
#define KOINOS_PACK_DECLARE_EXCEPTION( exception ) \
struct exception final : std::runtime_error \
{ ... | 23.710526 | 71 | 0.726415 | [
"object"
] |
a0e102465cfabf66636a081b02ee194e68b7013f | 1,049 | hpp | C++ | TGEngine/public/graphics/vulkan/VulkanShaderPipe.hpp | Troblecodings/TGEngine | 09c845f6ad68f99e51fdd7f9139e45475010f3d9 | [
"Apache-2.0"
] | 9 | 2018-03-22T16:01:54.000Z | 2022-01-12T02:27:10.000Z | TGEngine/public/graphics/vulkan/VulkanShaderPipe.hpp | Troblecodings/TGEngine | 09c845f6ad68f99e51fdd7f9139e45475010f3d9 | [
"Apache-2.0"
] | 20 | 2018-03-11T12:35:55.000Z | 2020-02-19T17:36:47.000Z | TGEngine/public/graphics/vulkan/VulkanShaderPipe.hpp | Troblecodings/TGEngine | 09c845f6ad68f99e51fdd7f9139e45475010f3d9 | [
"Apache-2.0"
] | 6 | 2019-02-26T13:59:55.000Z | 2021-07-15T14:11:10.000Z | #pragma once
#include <vulkan/vulkan.hpp>
#include <string>
#include <vector>
#include <array>
namespace tge::shader {
using namespace vk;
_CONSTEXPR20_CONTAINER std::string operator""_str(const char *chr,
std::size_t size) {
return std::string(chr, size);
}
cons... | 31.787879 | 76 | 0.745472 | [
"vector"
] |
a0e1d3ba957e9268ea4d852f75d88113b72c4c58 | 13,916 | cxx | C++ | PathReconstruction/Widgets/qSlicerPathReconstructionTableWidget.cxx | tavaughan/SlicerPathReconstruction | 5504e03ade1892e7c0186495c21e64ebf93d3cce | [
"MIT"
] | 1 | 2019-04-18T15:00:05.000Z | 2019-04-18T15:00:05.000Z | PathReconstruction/Widgets/qSlicerPathReconstructionTableWidget.cxx | tavaughan/SlicerPathReconstruction | 5504e03ade1892e7c0186495c21e64ebf93d3cce | [
"MIT"
] | 11 | 2018-03-24T16:06:06.000Z | 2019-04-10T18:36:22.000Z | PathReconstruction/Widgets/qSlicerPathReconstructionTableWidget.cxx | tavaughan/SlicerPathReconstruction | 5504e03ade1892e7c0186495c21e64ebf93d3cce | [
"MIT"
] | 1 | 2018-04-02T14:00:33.000Z | 2018-04-02T14:00:33.000Z | /*==============================================================================
Copyright (c) Thomas Vaughan
Laboratory for Percutaneous Surgery (PerkLab)
Queen's University, Kingston, ON, Canada. All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless... | 39.646724 | 196 | 0.685686 | [
"object",
"model"
] |
a0e5a0a3f51e9e83ecebe3b1f425ecfe2816d48b | 2,221 | cpp | C++ | cpp/33.search-in-rotated-sorted-array.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | cpp/33.search-in-rotated-sorted-array.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | cpp/33.search-in-rotated-sorted-array.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=33 lang=cpp
*
* [33] Search in Rotated Sorted Array
*
* https://leetcode.com/problems/search-in-rotated-sorted-array/description/
*
* algorithms
* Medium (33.15%)
* Total Accepted: 498.4K
* Total Submissions: 1.5M
* Testcase Example: '[4,5,6,7,0,1,2]\n0'
*
* Suppose an array so... | 26.440476 | 79 | 0.538046 | [
"vector"
] |
a0ee433b271f058cee044edac537fe243d45d502 | 3,455 | cpp | C++ | src/Kernel/src/Color.cpp | till213/SkyDolly | 75caa54fa9fcbaae04b6605c3c1a68e0cb9a0c16 | [
"MIT"
] | 21 | 2021-03-01T00:19:41.000Z | 2022-02-22T02:57:19.000Z | src/Kernel/src/Color.cpp | till213/SkyDolly | 75caa54fa9fcbaae04b6605c3c1a68e0cb9a0c16 | [
"MIT"
] | 11 | 2021-06-20T20:16:56.000Z | 2022-03-28T19:03:34.000Z | src/Kernel/src/Color.cpp | till213/SkyDolly | 75caa54fa9fcbaae04b6605c3c1a68e0cb9a0c16 | [
"MIT"
] | 3 | 2021-04-06T19:06:16.000Z | 2022-01-20T21:22:39.000Z | /**
* Sky Dolly - The Black Sheep for your Flight Recordings
*
* Copyright (c) Oliver Knoll
* All rights reserved.
*
* MIT License
*
* 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
* ... | 40.647059 | 120 | 0.692619 | [
"vector"
] |
a0f57570e2c7f9d4fed4199bed861a706826c755 | 31,361 | cpp | C++ | Audio/Announcer.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | Audio/Announcer.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | Audio/Announcer.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
/*************************************************************************
-------------------------------------------------------------------------
History:
- 21:07:2009 Created by Tim Furnish
****************************************************... | 33.469584 | 242 | 0.643411 | [
"vector"
] |
9d028466350aadfcb550086d0aa3cf887822f104 | 10,785 | cpp | C++ | test/aes-brute-force.cpp | GiantDarth/aes256-brute-force | 8e2385f41d569b78f2cbe290262207a9d412d6dd | [
"Apache-2.0"
] | null | null | null | test/aes-brute-force.cpp | GiantDarth/aes256-brute-force | 8e2385f41d569b78f2cbe290262207a9d412d6dd | [
"Apache-2.0"
] | null | null | null | test/aes-brute-force.cpp | GiantDarth/aes256-brute-force | 8e2385f41d569b78f2cbe290262207a9d412d6dd | [
"Apache-2.0"
] | null | null | null | #include "aes_ni.h"
#include <chrono>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <cstdint>
#include <thread>
#include <string>
#include <vector>
#include <assert.h>
int hexdigit_value(char c){
int nibble = -1;
if(('0'<=c) && (c<='9')) nibble = c-'0';
if(('a'<=c) && (c<='f... | 31.627566 | 132 | 0.626889 | [
"vector"
] |
9d048dc1e0f8fc569cc24bfe175486875f1ba3a5 | 24,127 | cpp | C++ | src/cgi/map/cgi_Layers.cpp | marek-cel/mscsim-cc0 | 348f659eae61fd998df8bf2fa81090596548d06d | [
"CC0-1.0"
] | 4 | 2020-03-03T08:10:59.000Z | 2021-09-04T08:02:17.000Z | src/cgi/map/cgi_Layers.cpp | marek-cel/mscsim-cc0 | 348f659eae61fd998df8bf2fa81090596548d06d | [
"CC0-1.0"
] | null | null | null | src/cgi/map/cgi_Layers.cpp | marek-cel/mscsim-cc0 | 348f659eae61fd998df8bf2fa81090596548d06d | [
"CC0-1.0"
] | null | null | null | /****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* Creative Commons Legal Code
*
* CC0 1.0 Universal
*
* CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
* LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE... | 43.550542 | 102 | 0.607286 | [
"geometry"
] |
9d0818c794b0e62db9129f13b6fcc2ffe7224546 | 13,746 | cc | C++ | src/channel_state.cc | Fusoppark/DRAMsim3 | 9e9d12b10cc2fff0282ce851c873bb21f870048e | [
"MIT"
] | 1 | 2021-04-01T11:47:53.000Z | 2021-04-01T11:47:53.000Z | src/channel_state.cc | Fusoppark/DRAMsim3 | 9e9d12b10cc2fff0282ce851c873bb21f870048e | [
"MIT"
] | null | null | null | src/channel_state.cc | Fusoppark/DRAMsim3 | 9e9d12b10cc2fff0282ce851c873bb21f870048e | [
"MIT"
] | 1 | 2021-09-06T06:09:52.000Z | 2021-09-06T06:09:52.000Z | #include "channel_state.h"
namespace dramsim3 {
ChannelState::ChannelState(const Config& config, const Timing& timing)
: rank_idle_cycles(config.ranks, 0),
config_(config),
timing_(timing),
rank_is_sref_(config.ranks, false),
four_aw_(config_.ranks, std::vector<uint64_t>()),
... | 37.972376 | 138 | 0.559508 | [
"vector"
] |
9d08fd836cdbee5fed51f491fb32d2284b694af1 | 888 | cpp | C++ | src/Burst.cpp | XianchaoZhang/hdr-plus | 7435e79bfebef1e5239f57bfa96961ee7e7c3587 | [
"MIT"
] | 1 | 2019-04-11T02:23:07.000Z | 2019-04-11T02:23:07.000Z | src/Burst.cpp | XianchaoZhang/hdr-plus | 7435e79bfebef1e5239f57bfa96961ee7e7c3587 | [
"MIT"
] | null | null | null | src/Burst.cpp | XianchaoZhang/hdr-plus | 7435e79bfebef1e5239f57bfa96961ee7e7c3587 | [
"MIT"
] | null | null | null | #include "Burst.h"
Halide::Runtime::Buffer<uint16_t> Burst::ToBuffer() const {
if (Raws.empty()) {
return Halide::Runtime::Buffer<uint16_t>();
}
Halide::Runtime::Buffer<uint16_t> result(GetWidth(), GetHeight(), Raws.size());
for (int i = 0; i < Raws.size(); ++i) {
auto resultSlice = re... | 31.714286 | 118 | 0.647523 | [
"vector"
] |
9d0a846ecb0c2b07eb53dfb06a4b1dfdb74ce3f8 | 2,648 | cpp | C++ | fp/b5.cpp | nyirock/plasmid_2015 | 01d89632bcf432b735dbef11fd06d1a279e69370 | [
"MIT"
] | null | null | null | fp/b5.cpp | nyirock/plasmid_2015 | 01d89632bcf432b735dbef11fd06d1a279e69370 | [
"MIT"
] | null | null | null | fp/b5.cpp | nyirock/plasmid_2015 | 01d89632bcf432b735dbef11fd06d1a279e69370 | [
"MIT"
] | null | null | null | /*
* fp.cpp
*
* Created on: Jul 6, 2015
* Author: andriy
*/
#include<iostream>
#include<cstdlib>
#include<algorithm>// find(), search() count() functions
//#include <gmp.h>
//using std::count;
//using std::cout;
//using std::endl;
#include<map> //for key value relations
#include<vector>
#include<string>... | 28.170213 | 130 | 0.686556 | [
"vector"
] |
9d0b8d357db8a667097daf2e01f94760248768fd | 5,667 | cpp | C++ | SOLVER/src/models3D/Model3D.cpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 8 | 2020-06-05T01:13:20.000Z | 2022-02-24T05:11:50.000Z | SOLVER/src/models3D/Model3D.cpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 24 | 2020-10-21T19:03:38.000Z | 2021-11-17T21:32:02.000Z | SOLVER/src/models3D/Model3D.cpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 5 | 2020-06-21T11:54:22.000Z | 2021-06-23T01:02:39.000Z | //
// Model3D.cpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 3/26/20.
// Copyright © 2020 Kuangdai Leng. All rights reserved.
//
// base class of all 3D models
#include "Model3D.hpp"
#include "Quad.hpp"
#include "vicinity.hpp"
// compute spz on element
eigen::DMatX3 Model3D::computeElemSPZ(const Quad &quad, ... | 33.532544 | 78 | 0.541556 | [
"geometry",
"vector",
"model",
"3d"
] |
9d15723a9a6d53e108f84c4937e84f1f9fa06bdd | 13,231 | cc | C++ | src/cuda_api_profiler/globals.cc | UofT-EcoSystem/rlscope | cdd9bbdc2a3a832be24f20105b8c9fe28149cb63 | [
"Apache-2.0"
] | 35 | 2021-01-26T22:34:17.000Z | 2022-03-02T01:25:11.000Z | src/cuda_api_profiler/globals.cc | UofT-EcoSystem/rlscope | cdd9bbdc2a3a832be24f20105b8c9fe28149cb63 | [
"Apache-2.0"
] | 1 | 2022-03-15T01:40:03.000Z | 2022-03-15T01:40:03.000Z | src/cuda_api_profiler/globals.cc | UofT-EcoSystem/rlscope | cdd9bbdc2a3a832be24f20105b8c9fe28149cb63 | [
"Apache-2.0"
] | 1 | 2021-03-17T08:49:07.000Z | 2021-03-17T08:49:07.000Z | //
// Created by jagle on 8/19/2019.
//
#include <string>
#include <algorithm>
#include <cctype>
#include <iostream>
#include <fstream>
#include <memory>
#include <unistd.h>
#include <signal.h>
#include <regex>
#include "common/util.h"
#include <boost/process.hpp>
#include <boost/algorithm/string.hpp>
//#include <bo... | 32.58867 | 169 | 0.674325 | [
"vector",
"transform"
] |
1dd71475da85a11886a70a1081b47bd8eff1f163 | 10,180 | hpp | C++ | MTimeTool.hpp | yzyw0702/cppToolSet | 5a3d1015cce7a3c81bce8dc89bfc580ba226d834 | [
"MIT"
] | 1 | 2018-09-27T04:02:27.000Z | 2018-09-27T04:02:27.000Z | MTimeTool.hpp | yzyw0702/cpptoolset | 5a3d1015cce7a3c81bce8dc89bfc580ba226d834 | [
"MIT"
] | null | null | null | MTimeTool.hpp | yzyw0702/cpptoolset | 5a3d1015cce7a3c81bce8dc89bfc580ba226d834 | [
"MIT"
] | null | null | null | //===========================
//====> MDateTimeTool
//===========================
#include <iostream>
#include <time.h>
#include <stdlib.h>
#include <algorithm>
#include "MStringTool.hpp"
using namespace std;
#ifndef _MTIMETOOL_HPP_
#define _MTIMETOOL_HPP_
namespace tooltime {
class MDateTime {
public... | 31.131498 | 135 | 0.574656 | [
"vector"
] |
1ddba0271ef2f10dcdd13d776389f4b52d3cff29 | 726 | cpp | C++ | Third Maximum Number.cpp | durgirajesh/Leetcode | 18b11cd90e8a5ce33f4029d5b7edf9502273bc76 | [
"MIT"
] | 2 | 2020-06-25T12:46:13.000Z | 2021-07-06T06:34:33.000Z | Third Maximum Number.cpp | durgirajesh/Leetcode | 18b11cd90e8a5ce33f4029d5b7edf9502273bc76 | [
"MIT"
] | null | null | null | Third Maximum Number.cpp | durgirajesh/Leetcode | 18b11cd90e8a5ce33f4029d5b7edf9502273bc76 | [
"MIT"
] | null | null | null | class Solution {
public:
int thirdMax(vector<int>& nums) {
int n=nums.size();
priority_queue<int> maxheap;
for(int i=0;i<n;i++){
maxheap.push(nums[i]);
}
vector<int> vec;
int prev=maxheap.top();
vec.push_back... | 21.352941 | 46 | 0.37741 | [
"vector"
] |
1de2b5bc3542adbe66381a25fb7eb0e834cfc5bd | 15,856 | cpp | C++ | source/Vulkan/GraphicsPipelineManager.cpp | hadryansalles/Luz | a262b809cb7e2e9e6ca033afcab300cbafc689f4 | [
"MIT"
] | 43 | 2021-07-27T19:22:35.000Z | 2022-03-19T19:11:06.000Z | source/Vulkan/GraphicsPipelineManager.cpp | hadryansalles/Luz | a262b809cb7e2e9e6ca033afcab300cbafc689f4 | [
"MIT"
] | null | null | null | source/Vulkan/GraphicsPipelineManager.cpp | hadryansalles/Luz | a262b809cb7e2e9e6ca033afcab300cbafc689f4 | [
"MIT"
] | 3 | 2021-09-26T13:32:10.000Z | 2021-12-08T10:18:15.000Z | #include "Luzpch.hpp"
#include "GraphicsPipelineManager.hpp"
#include "PhysicalDevice.hpp"
#include "LogicalDevice.hpp"
#include "SwapChain.hpp"
#include "Instance.hpp"
#include "VulkanUtils.hpp"
void GraphicsPipelineManager::Create() {
auto device = LogicalDevice::GetVkDevice();
auto allocator = Instance::Ge... | 47.050445 | 144 | 0.682265 | [
"vector"
] |
1de925f77ea4b50c374f3f8f4ddc14ece4cd2cee | 2,530 | cpp | C++ | YelBelt/week 6/result/database.cpp | Bytan97/CpSpec | 31ec3c960c2f9446c3f3928ce08b24a872eb288b | [
"Unlicense"
] | null | null | null | YelBelt/week 6/result/database.cpp | Bytan97/CpSpec | 31ec3c960c2f9446c3f3928ce08b24a872eb288b | [
"Unlicense"
] | null | null | null | YelBelt/week 6/result/database.cpp | Bytan97/CpSpec | 31ec3c960c2f9446c3f3928ce08b24a872eb288b | [
"Unlicense"
] | null | null | null | #include "database.h"
void Database::Add(const Date &date, const std::string &event) {
if (!data_unique[date].count(event)) {
data[date].push_back(event);
}
data_unique[date].insert(event);
}
void Database::Print(std::ostream &os) const {
for (const auto &[key, value] : data) {
for (const auto &event ... | 32.435897 | 125 | 0.572727 | [
"vector"
] |
1de991b7bbf3d68e527abe675552da6e64724b38 | 3,288 | hpp | C++ | src/served/parameters.hpp | ColquhounAudio/served | 612fa1cc8a71555109b2614cb3e29609c1c16b77 | [
"MIT"
] | null | null | null | src/served/parameters.hpp | ColquhounAudio/served | 612fa1cc8a71555109b2614cb3e29609c1c16b77 | [
"MIT"
] | null | null | null | src/served/parameters.hpp | ColquhounAudio/served | 612fa1cc8a71555109b2614cb3e29609c1c16b77 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2014 MediaSift Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publ... | 30.728972 | 96 | 0.714112 | [
"object"
] |
1dea770431d42ac2e7871c749e5bab022e5263d8 | 13,525 | cpp | C++ | src/linking/entry_point.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 1 | 2020-10-20T14:33:25.000Z | 2020-10-20T14:33:25.000Z | src/linking/entry_point.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 1 | 2017-02-22T14:35:19.000Z | 2017-02-27T08:49:58.000Z | src/linking/entry_point.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 4 | 2019-01-19T03:32:21.000Z | 2021-12-20T14:25:19.000Z | /*******************************************************************\
Module:
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
#include <cassert>
#include <cstdlib>
#include <util/namespace.h>
#include <util/expr_util.h>
#include <util/std_expr.h>... | 26.624016 | 89 | 0.606802 | [
"object"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.