hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 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 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 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 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
347aad507de9bd6a965e36ddf32231fb0aa739bd | 7,199 | hpp | C++ | vector_methods.hpp | MrTAB/GameDevUtilities | aba3543efbfcfee4efeec36fe73382c1bf85e420 | [
"MIT"
] | null | null | null | vector_methods.hpp | MrTAB/GameDevUtilities | aba3543efbfcfee4efeec36fe73382c1bf85e420 | [
"MIT"
] | null | null | null | vector_methods.hpp | MrTAB/GameDevUtilities | aba3543efbfcfee4efeec36fe73382c1bf85e420 | [
"MIT"
] | null | null | null | /*
*
* vector_methods.hpp
*
* Utility methods for working on vectors of two floats
*
* These utility methods were created in this format for work with the Box2D
* physics engine, and thus Box2D is a dependency on this unit
*
------------------------------------------------------------------------------... | 30.504237 | 87 | 0.690374 | MrTAB |
347cd862a4aec18fe769d2334020bd7bd09862b3 | 572 | cpp | C++ | solved/o-q/professor-lazy-phd/professor.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/o-q/professor-lazy-phd/professor.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/o-q/professor-lazy-phd/professor.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
typedef long long i64;
int a, b;
i64 n;
int main()
{
while (true) {
scanf("%d%d%lld", &a, &b, &n);
if (a == 0) break;
int ans = 0;
switch (n % 5) {
case 0:
ans = a;
break;
case 1:
ans = b;
break;
... | 15.459459 | 38 | 0.33042 | abuasifkhan |
3480b076c7d15fe4fb47c801e302c5df2e6d9c25 | 5,809 | hpp | C++ | inc/alignment/TrackingGroup.hpp | CrankOne/StromaV | ef271444d496f7a2552058638c023bc86684e780 | [
"MIT"
] | 1 | 2022-01-17T11:08:12.000Z | 2022-01-17T11:08:12.000Z | inc/alignment/TrackingGroup.hpp | CrankOne/StromaV | ef271444d496f7a2552058638c023bc86684e780 | [
"MIT"
] | null | null | null | inc/alignment/TrackingGroup.hpp | CrankOne/StromaV | ef271444d496f7a2552058638c023bc86684e780 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 Renat R. Dusaev <crank@qcrypt.org>
* Author: Renat R. Dusaev <crank@qcrypt.org>
*
* 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... | 42.713235 | 106 | 0.715097 | CrankOne |
34844efbf2f5c482087ba346375852e7fb460a61 | 120 | cpp | C++ | MoreRadioWheels/NativeWheel.cpp | LfxB/MoreNativeWheels-GTAV | 9e8a4f67729054ba7b5e5fe61584a90c94f873ef | [
"MIT"
] | 2 | 2020-08-31T00:23:45.000Z | 2022-01-16T10:32:10.000Z | MoreRadioWheels/NativeWheel.cpp | LfxB/MoreNativeWheels-GTAV | 9e8a4f67729054ba7b5e5fe61584a90c94f873ef | [
"MIT"
] | null | null | null | MoreRadioWheels/NativeWheel.cpp | LfxB/MoreNativeWheels-GTAV | 9e8a4f67729054ba7b5e5fe61584a90c94f873ef | [
"MIT"
] | null | null | null | #include "NativeWheel.hpp"
NativeWheel::NativeWheel(string name)
{
Name = name;
}
NativeWheel::~NativeWheel()
{
}
| 8.571429 | 37 | 0.691667 | LfxB |
34855cb2edcdb0e6854c5a396acabbcbd8667d40 | 907 | hpp | C++ | include/Exception.hpp | niniemann/sempr | 2f3b04c031d70b9675ad441f97728a8fb839abed | [
"BSD-3-Clause"
] | 8 | 2018-03-28T19:45:47.000Z | 2022-03-23T16:53:24.000Z | include/Exception.hpp | niniemann/sempr | 2f3b04c031d70b9675ad441f97728a8fb839abed | [
"BSD-3-Clause"
] | 58 | 2018-01-31T11:10:04.000Z | 2021-08-13T11:48:31.000Z | include/Exception.hpp | niniemann/sempr | 2f3b04c031d70b9675ad441f97728a8fb839abed | [
"BSD-3-Clause"
] | 1 | 2018-07-04T12:30:06.000Z | 2018-07-04T12:30:06.000Z | #ifndef SEMPR_CORE_EXCEPTION_HPP_
#define SEMPR_CORE_EXCEPTION_HPP_
#include <exception>
#include <string>
/// namespace only sempr. TODO: refactor the rest of the code? simplify it, use namespaces to group themes together, not code-similarities?
namespace sempr {
/**
A basic sempr-exception. Why our own? Becaus... | 32.392857 | 139 | 0.732084 | niniemann |
348665551d12834aaadea5e31eeba8501719cea8 | 3,178 | cpp | C++ | owEngine/SceneManager.cpp | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | null | null | null | owEngine/SceneManager.cpp | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | null | null | null | owEngine/SceneManager.cpp | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | 1 | 2020-05-11T13:32:49.000Z | 2020-05-11T13:32:49.000Z | #include "stdafx.h"
// General
#include "SceneManager.h"
CSceneManager::CSceneManager(SceneNode* _rootNode) :
m_RootNode(_rootNode),
m_IntersectedNode(nullptr),
m_MainCamera(nullptr),
m_FrustrumCamera(nullptr),
m_RenderQueueDebug(false),
m_Engine(GetManager<IEngine>()),
m_Video(GetSettingsGroup<CGroupVideo>())... | 21.186667 | 146 | 0.695721 | adan830 |
3486d65f9c86aaa01c1bb8245a5e35311989f601 | 438 | cpp | C++ | src/ui/puiframe.cpp | pandepic/PandaSDL | 5e57859ea4b3870926428439b1e4c4b90e6d4cd9 | [
"MIT"
] | 3 | 2020-09-02T00:13:23.000Z | 2021-08-14T23:13:11.000Z | src/ui/puiframe.cpp | pandepic/PandaSDL | 5e57859ea4b3870926428439b1e4c4b90e6d4cd9 | [
"MIT"
] | null | null | null | src/ui/puiframe.cpp | pandepic/PandaSDL | 5e57859ea4b3870926428439b1e4c4b90e6d4cd9 | [
"MIT"
] | 1 | 2021-06-17T05:46:19.000Z | 2021-06-17T05:46:19.000Z | #include "puiframe.h"
PandaSDL::PUIFrame::PUIFrame(PUIMenu *parent, pugi::xml_node &node, const PUIWidgetBuilder &widgetBuilder)
{
Parent = parent;
auto widgetsRoot = node.child("Widgets");
_widgetContainer.Load(widgetsRoot, widgetBuilder);
}
PandaSDL::PUIFrame::~PUIFrame()
{
}
std::shared_ptr<... | 21.9 | 106 | 0.723744 | pandepic |
348fc6232951f4e215e25e897501375d16f2b6ed | 948 | hpp | C++ | headers/sourceapp.hpp | CNLouisLiu/cso2-launcher | 11e054318d08a19ae923130541271cd898ac047b | [
"MIT"
] | 1 | 2019-12-01T20:21:36.000Z | 2019-12-01T20:21:36.000Z | headers/sourceapp.hpp | CNLouisLiu/cso2-launcher | 11e054318d08a19ae923130541271cd898ac047b | [
"MIT"
] | null | null | null | headers/sourceapp.hpp | CNLouisLiu/cso2-launcher | 11e054318d08a19ae923130541271cd898ac047b | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include "appframework/AppFramework.h"
#include "tier0/ICommandLine.h"
class CAppSystemGroup;
class IFileSystem;
//-----------------------------------------------------------------------------
// Inner loop: initialize, shutdown main systems, load steam to
//--------------------------... | 26.333333 | 79 | 0.593882 | CNLouisLiu |
349475618393ffb2064eb8981a67a7cd8aec7a4e | 3,437 | hpp | C++ | cpp/include/tokenizer.osr.hpp | aurelienwaite/ucam-smt | 92781cd777bb62c69e6e73fb29edcd80112e76c9 | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2015-06-05T16:26:45.000Z | 2021-04-09T06:41:19.000Z | cpp/include/tokenizer.osr.hpp | aurelienwaite/ucam-smt | 92781cd777bb62c69e6e73fb29edcd80112e76c9 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-02-18T13:29:05.000Z | 2015-12-08T13:30:48.000Z | cpp/include/tokenizer.osr.hpp | aurelienwaite/ucam-smt | 92781cd777bb62c69e6e73fb29edcd80112e76c9 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2016-03-25T02:34:11.000Z | 2019-10-20T15:32:22.000Z | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use these files 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
// distributed... | 34.717172 | 89 | 0.637184 | aurelienwaite |
349c6068739ac9c08f301dceb935fd15470feaab | 6,975 | cpp | C++ | src/apps/backend/face/face_recognizer_service.cpp | raymanfx/seraphim | 4d388d21831d349fe1085bc3cb7c73f5d2b103a7 | [
"MIT"
] | null | null | null | src/apps/backend/face/face_recognizer_service.cpp | raymanfx/seraphim | 4d388d21831d349fe1085bc3cb7c73f5d2b103a7 | [
"MIT"
] | null | null | null | src/apps/backend/face/face_recognizer_service.cpp | raymanfx/seraphim | 4d388d21831d349fe1085bc3cb7c73f5d2b103a7 | [
"MIT"
] | null | null | null | /*
* (C) Copyright 2019
* The Seraphim Project Developers.
*
* SPDX-License-Identifier: MIT
*/
#include <seraphim/face/utils.h>
#include <seraphim/iop/opencv/mat.h>
#include <utils.h>
#include "face_recognizer_service.h"
using namespace sph;
using namespace sph::face;
FaceRecognizerService::FaceRecognizerServi... | 33.056872 | 100 | 0.581935 | raymanfx |
349ccc0d150e5cf3e08115f2234e34d0fef203dc | 19,490 | hpp | C++ | include/vulkan/internal/struct/VkPerformance.hpp | skyline-emu/vkhpp | a4b8f74942a932ea191dc95cc4a210fea524508f | [
"Apache-2.0"
] | 2 | 2020-04-22T21:14:24.000Z | 2021-11-03T18:21:12.000Z | include/vulkan/internal/struct/VkPerformance.hpp | skyline-emu/vkhpp | a4b8f74942a932ea191dc95cc4a210fea524508f | [
"Apache-2.0"
] | null | null | null | include/vulkan/internal/struct/VkPerformance.hpp | skyline-emu/vkhpp | a4b8f74942a932ea191dc95cc4a210fea524508f | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2015-2019 The Khronos Group 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 applicab... | 34.495575 | 248 | 0.723756 | skyline-emu |
349ec6e62d5838b7a22655ea2df7ddf19c2d2928 | 511 | cpp | C++ | hw1_2/identify.cpp | kinstaky/CourseDataAnalysis | 9f44f5816ca55b2419df2aa4251fa4107bd9f3fc | [
"MIT"
] | null | null | null | hw1_2/identify.cpp | kinstaky/CourseDataAnalysis | 9f44f5816ca55b2419df2aa4251fa4107bd9f3fc | [
"MIT"
] | null | null | null | hw1_2/identify.cpp | kinstaky/CourseDataAnalysis | 9f44f5816ca55b2419df2aa4251fa4107bd9f3fc | [
"MIT"
] | null | null | null | void identify() {
TFile *ipf = new TFile("AddVeto.root");
TTree *tree = (TTree*)ipf->Get("tree");
tree->AddFriend("tree", "TOFNorm.root");
tree->AddFriend("tree", "QProcessor.root");
//tree->Draw("q0:ntof >> (480, 4, 20, 450, 0, 4500) ", "qLimit && tLimit && ntof > 5", "colz");
tree->Draw("q0:ce >> (480... | 36.5 | 103 | 0.544031 | kinstaky |
349face6b2ec36e05d2ca9ab3b618d62a6046ae7 | 3,098 | hh | C++ | tce/src/applibs/LLVMBackend/plugin/TCERegisterInfo.hh | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 74 | 2015-10-22T15:34:10.000Z | 2022-03-25T07:57:23.000Z | tce/src/applibs/LLVMBackend/plugin/TCERegisterInfo.hh | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 79 | 2015-11-19T09:23:08.000Z | 2022-01-12T14:15:16.000Z | tce/src/applibs/LLVMBackend/plugin/TCERegisterInfo.hh | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 38 | 2015-11-17T10:12:23.000Z | 2022-03-25T07:57:24.000Z | /*
Copyright (c) 2002-2009 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... | 34.043956 | 90 | 0.707553 | kanishkan |
34a1c408a25765c0c751b65c050a72ef19b593ae | 2,704 | cc | C++ | stapl_release/src/runtime/executor.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/src/runtime/executor.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/src/runtime/executor.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... | 29.075269 | 79 | 0.719675 | parasol-ppl |
34a20746c7007bd70d4e99263acc0fd496b26e3f | 3,567 | cpp | C++ | src/cd++/parser/pini.cpp | SimulationEverywhere/CDPP_SantiSimulator | 7dde59e48a7d8cca6d505b6d5323a57825c97a5b | [
"MIT"
] | 4 | 2018-10-26T20:13:27.000Z | 2020-11-21T21:42:43.000Z | src/cd++/parser/pini.cpp | SimulationEverywhere/CDPP_SantiSimulator | 7dde59e48a7d8cca6d505b6d5323a57825c97a5b | [
"MIT"
] | 13 | 2018-10-29T03:16:16.000Z | 2020-09-16T05:57:24.000Z | src/cd++/parser/pini.cpp | SimulationEverywhere/CDPP_SantiSimulator | 7dde59e48a7d8cca6d505b6d5323a57825c97a5b | [
"MIT"
] | 4 | 2019-04-28T00:20:48.000Z | 2019-11-27T22:02:45.000Z | /*******************************************************************
*
* DESCRIPTION: class PIni
*
* AUTHOR: Alejandro Troccoli
*
* EMAIL: mailto://atroccol@dc.uba.ar
*
* DATE: 17/8/2000
*
*******************************************************************/
/** include files **/
#include <fstream>
#include "pi... | 25.478571 | 80 | 0.428091 | SimulationEverywhere |
34a433909f1c704640045e20dda7348e37a767d8 | 2,120 | cpp | C++ | src/String.cpp | ASxa86/asx-object | e18d96cdbdfa3fedec0fcb7fec004e1ee0625352 | [
"MIT"
] | null | null | null | src/String.cpp | ASxa86/asx-object | e18d96cdbdfa3fedec0fcb7fec004e1ee0625352 | [
"MIT"
] | null | null | null | src/String.cpp | ASxa86/asx-object | e18d96cdbdfa3fedec0fcb7fec004e1ee0625352 | [
"MIT"
] | null | null | null | #include <asx-object/String.h>
namespace
{
// https://stackoverflow.com/questions/68472720/stdto-chars-minimal-floating-point-buffer-size
template <typename T>
constexpr int Log10ceil(T num)
{
return num < 10 ? 1 : 1 + Log10ceil(num / 10);
}
template <typename T>
constexpr int BufferSizeScientific()
{
ret... | 24.651163 | 115 | 0.696698 | ASxa86 |
34a5ab1f2ec2dfd25ee9c0d3c2af184fa80eb6df | 3,733 | cpp | C++ | Lab_3/Source/Lab_3/SimpleAIController.cpp | akashin/HSE_AI_Labs | 17082121c0924675d6034941192302c32d43d85f | [
"MIT"
] | 8 | 2016-09-13T16:48:07.000Z | 2021-06-01T10:49:37.000Z | Lab_3/Source/Lab_3/SimpleAIController.cpp | akashin/HSE_AI_Labs | 17082121c0924675d6034941192302c32d43d85f | [
"MIT"
] | 2 | 2016-10-15T18:43:18.000Z | 2018-11-01T15:51:47.000Z | Lab_3/Source/Lab_3/SimpleAIController.cpp | akashin/HSE_AI_Labs | 17082121c0924675d6034941192302c32d43d85f | [
"MIT"
] | 20 | 2016-09-13T12:12:34.000Z | 2017-05-27T14:26:32.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "Lab_3.h"
#include "SimpleAIController.h"
#include "MazeExit.h"
ASimpleAIController::ASimpleAIController()
{
InitialScale = 100.0f;
ScaleDecayRate = 0.8f;
MinAllowedScale = 1.0f;
bHasDirection = false;
Moveme... | 27.248175 | 103 | 0.668631 | akashin |
34a85f6c34859fdb845b735bf6f5a38b9e7dd17d | 2,840 | hpp | C++ | third_party/omr/jitbuilder/apigen/extras/cpp/TypeDictionaryExtrasOutsideClass.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/jitbuilder/apigen/extras/cpp/TypeDictionaryExtrasOutsideClass.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/jitbuilder/apigen/extras/cpp/TypeDictionaryExtrasOutsideClass.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2018, 2018 IBM Corp. and others
* * This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 38.378378 | 135 | 0.694014 | xiacijie |
34ae79771c4af6de6e8882755c1031b77728d002 | 1,347 | hpp | C++ | include/make_heap.hpp | vreverdy/bit-algorithms | bc12928d46846eb32b3d9e0a006549a947c4803f | [
"BSD-3-Clause"
] | 16 | 2019-06-17T23:56:15.000Z | 2021-07-04T23:35:31.000Z | include/make_heap.hpp | bkille/bit-algorithms | bc12928d46846eb32b3d9e0a006549a947c4803f | [
"BSD-3-Clause"
] | 3 | 2019-04-28T04:53:31.000Z | 2019-06-01T15:15:11.000Z | include/make_heap.hpp | bkille/bit-algorithms | bc12928d46846eb32b3d9e0a006549a947c4803f | [
"BSD-3-Clause"
] | 6 | 2019-03-13T19:21:36.000Z | 2020-01-01T12:31:34.000Z | // =============================== MAKE HEAP =============================== //
// Project: The Experimental Bit Algorithms Library
// Name: make_heap.hpp
// Description: bit_iterator overloads for std::make_heap
// Creator: Vincent Reverdy
// Contributor(s):
// License: BSD 3-Clause License
// =======================... | 32.071429 | 85 | 0.446177 | vreverdy |
34b372f8a4898f11d993543eca940fed8acadddb | 2,115 | cpp | C++ | GLFramework/Components/CameraComponent.cpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 39 | 2016-03-23T00:39:46.000Z | 2022-02-07T21:26:05.000Z | GLFramework/Components/CameraComponent.cpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 1 | 2016-03-24T14:39:45.000Z | 2016-03-24T17:34:39.000Z | GLFramework/Components/CameraComponent.cpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 3 | 2016-08-15T01:27:13.000Z | 2021-12-29T01:37:51.000Z | #include "stdafx.hpp"
#include "CameraComponent.hpp"
#include "../Base/Settings.hpp"
#include "../Base/Context.hpp"
#include "TransformComponent.hpp"
#include "../Graphics/Frustum.h"
#include <glm/gtc/matrix_transform.hpp>
#define CONTEXT Context::GetInstance()
CameraComponent::CameraComponent():
m_FOV(45),
m_Nea... | 24.882353 | 116 | 0.725768 | Illation |
34b3dac7cec0c7bc467310ce629e557054f9a804 | 2,900 | cpp | C++ | Source/MLJuceApp/MLAppWindow.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null | Source/MLJuceApp/MLAppWindow.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null | Source/MLJuceApp/MLAppWindow.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null |
// MadronaLib: a C++ framework for DSP applications.
// Copyright (c) 2013 Madrona Labs LLC. http://www.madronalabs.com
// Distributed under the MIT license: http://madrona-labs.mit-license.org/
#include "MLAppWindow.h"
// --------------------------------------------------------------------------------
#pragma mark... | 24.166667 | 85 | 0.67069 | afofo |
34b4c37afbd952aacd86039a6a80b6d253d66581 | 1,452 | cpp | C++ | src/comments/commentssortfiltermodel.cpp | black-sheep-dev/harbour-hafenschau | 8384e769a0d6d5b85787e92565c475be9d2f37fa | [
"MIT"
] | 8 | 2021-01-09T21:37:36.000Z | 2022-01-05T09:27:13.000Z | src/comments/commentssortfiltermodel.cpp | black-sheep-dev/harbour-hafenschau | 8384e769a0d6d5b85787e92565c475be9d2f37fa | [
"MIT"
] | null | null | null | src/comments/commentssortfiltermodel.cpp | black-sheep-dev/harbour-hafenschau | 8384e769a0d6d5b85787e92565c475be9d2f37fa | [
"MIT"
] | 1 | 2021-03-13T11:21:03.000Z | 2021-03-13T11:21:03.000Z | #include "commentssortfiltermodel.h"
#include "commentsmodel.h"
CommentsSortFilterModel::CommentsSortFilterModel(QObject *parent) :
QSortFilterProxyModel(parent)
{
setSortRole(CommentsModel::TimestampRole);
connect(this, &CommentsSortFilterModel::sortOrderChanged, this, &CommentsSortFilterModel::sortMode... | 26.888889 | 121 | 0.731405 | black-sheep-dev |
34b52bd1ecb6656963d7055a0bceda41e19bd20c | 12,703 | cpp | C++ | code/parser/xml_cprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | 1 | 2019-03-28T20:40:36.000Z | 2019-03-28T20:40:36.000Z | code/parser/xml_cprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | null | null | null | code/parser/xml_cprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | null | null | null | // *****************************************************************************************
//
// File description:
//
// Author: Joao Costa
// Purpose: Implementation of a generic XML configuration processor
//
// *****************************************************************************************
// **********... | 25.714575 | 113 | 0.609541 | jmpcosta |
34b6516ac0e24d01c71e8890ed88bfd0b10661ed | 6,057 | cpp | C++ | example/exampleWidgetQt/keywordsubstitutioneditor.cpp | JohnDTill/Forscape | dbbab01f30597af00f87527a8a3d7b468c04b67b | [
"MIT"
] | 10 | 2021-11-13T12:39:06.000Z | 2022-03-19T13:40:05.000Z | example/exampleWidgetQt/keywordsubstitutioneditor.cpp | JohnDTill/Forscape | dbbab01f30597af00f87527a8a3d7b468c04b67b | [
"MIT"
] | 22 | 2021-11-13T12:57:10.000Z | 2022-03-15T21:42:05.000Z | example/exampleWidgetQt/keywordsubstitutioneditor.cpp | JohnDTill/Forscape | dbbab01f30597af00f87527a8a3d7b468c04b67b | [
"MIT"
] | null | null | null | #include "keywordsubstitutioneditor.h"
#include <hope_common.h>
#include <typeset_keywords.h>
#include <typeset_view.h>
#include <cassert>
#include <QFormLayout>
#include <QLineEdit>
#include <QMessageBox>
#include <QPushButton>
#include <QRegularExpressionValidator>
#include <QSettings>
using Hope::Typeset::Keywords;... | 36.053571 | 109 | 0.704474 | JohnDTill |
34b80b13252c1e04619a75ea7c3d211782ace9be | 1,969 | hpp | C++ | E_Util/Include/Vector.hpp | EavanKim/E_Flow_Dev | a8b076df8f748d4cc2f0d6da2ee01e7601f860b8 | [
"MIT"
] | null | null | null | E_Util/Include/Vector.hpp | EavanKim/E_Flow_Dev | a8b076df8f748d4cc2f0d6da2ee01e7601f860b8 | [
"MIT"
] | null | null | null | E_Util/Include/Vector.hpp | EavanKim/E_Flow_Dev | a8b076df8f748d4cc2f0d6da2ee01e7601f860b8 | [
"MIT"
] | null | null | null | #ifndef VECTOR_HPP__
#define VECTOR_HPP__
namespace util
{
class UTIL_EXPORTS Vector
{
public:
Vector();
Vector(__m128 _Vector);
Vector(float _x, float _y, float _z, float _a);
Vector(const Vector& other);
float x() const;
float y() const;
float z() const;
float a() const;
void set(const std::in... | 26.608108 | 62 | 0.727273 | EavanKim |
34b952038bd4e593498fc451b8f0eb2b120171d3 | 1,543 | cpp | C++ | Source/Scripting/bsfScript/Generated/BsScriptSkeletonBoneInfoEx.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 1,745 | 2018-03-16T02:10:28.000Z | 2022-03-26T17:34:21.000Z | Source/Scripting/bsfScript/Generated/BsScriptSkeletonBoneInfoEx.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 395 | 2018-03-16T10:18:20.000Z | 2021-08-04T16:52:08.000Z | Source/Scripting/bsfScript/Generated/BsScriptSkeletonBoneInfoEx.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 267 | 2018-03-17T19:32:54.000Z | 2022-02-17T16:55:50.000Z | //********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsScriptSkeletonBoneInfoEx.generated.h"
#include "BsMonoMeth... | 29.673077 | 124 | 0.73558 | bsf2dev |
34bad13772c44783bb48ca469eb1b7be8bbc95a8 | 6,741 | cpp | C++ | src/libtextmode/utf8.cpp | joelpob/ansilove-term | 2842c41bc2429a98d51e02e2d6eb55254afa79bb | [
"BSD-3-Clause"
] | null | null | null | src/libtextmode/utf8.cpp | joelpob/ansilove-term | 2842c41bc2429a98d51e02e2d6eb55254afa79bb | [
"BSD-3-Clause"
] | null | null | null | src/libtextmode/utf8.cpp | joelpob/ansilove-term | 2842c41bc2429a98d51e02e2d6eb55254afa79bb | [
"BSD-3-Clause"
] | null | null | null | #include "utf8.h"
#include <string>
uint16_t cp_437_to_unicode(const uint8_t& cp_437)
{
switch(cp_437) {
case 1:
return 0x263A;
case 2:
return 0x263B;
case 3:
return 0x2665;
case 4:
return 0x2666;
case 5:
return 0x2663;
case 6:
return 0x2660;
... | 18.829609 | 63 | 0.519804 | joelpob |
34c100713ae8964de2399b354af749dbc1f6ae78 | 4,315 | cpp | C++ | core/src/UniFlagStorage.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | core/src/UniFlagStorage.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | core/src/UniFlagStorage.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | #include "stdafx.h"
#include "mmcore/UniFlagStorage.h"
#include "mmcore/UniFlagCalls.h"
using namespace megamol;
using namespace megamol::core;
UniFlagStorage::UniFlagStorage(void)
: readFlagsSlot("readFlags", "Provides flag data to clients.")
, writeFlagsSlot("writeFlags", "Accepts updated flag data... | 36.260504 | 117 | 0.716802 | azuki-monster |
34c7d233f9d8092818c166adb3bdd8ff6dd4ea26 | 12,390 | cpp | C++ | src/SqliteManager.cpp | Furkanzmc/qutils | 65e433176e7175ba5ffc31f1fc603c020873b076 | [
"Unlicense"
] | 28 | 2017-04-26T15:33:00.000Z | 2021-03-22T23:28:26.000Z | src/SqliteManager.cpp | foxoman/qutils | 65e433176e7175ba5ffc31f1fc603c020873b076 | [
"Unlicense"
] | 1 | 2017-09-03T14:00:42.000Z | 2017-09-03T14:00:42.000Z | src/SqliteManager.cpp | foxoman/qutils | 65e433176e7175ba5ffc31f1fc603c020873b076 | [
"Unlicense"
] | 2 | 2019-12-02T01:16:29.000Z | 2020-05-12T20:36:06.000Z | #include "qutils/SqliteManager.h"
#include "qutils/Macros.h"
// Qt
#include <QSqlQuery>
#include <QSqlRecord>
namespace zmc
{
SqliteManager::SqliteManager()
: m_LastError()
{
}
QSqlDatabase SqliteManager::openDatabase(const QString &databasePath)
{
QSqlDatabase db;
if (QSqlDatabase::contains(databasePat... | 28.948598 | 157 | 0.60226 | Furkanzmc |
34cb58bd9c62ea3cefe37587b871bdcfee6caaff | 5,114 | cc | C++ | app/kk-y.cc | hailongz/kk-game | 56463c13347a5608e54ae0a069b0b9263f32d7c8 | [
"MIT"
] | null | null | null | app/kk-y.cc | hailongz/kk-game | 56463c13347a5608e54ae0a069b0b9263f32d7c8 | [
"MIT"
] | null | null | null | app/kk-y.cc | hailongz/kk-game | 56463c13347a5608e54ae0a069b0b9263f32d7c8 | [
"MIT"
] | null | null | null | //
// kk-yaml.cc
// KKGame
//
// Created by zhanghailong on 2018/4/28.
// Copyright © 2018年 kkmofang.cn. All rights reserved.
//
#include "kk-config.h"
#include "kk-y.h"
#if defined(KK_PLATFORM_IOS)
#include <KKObject/KKObject.h>
#else
#include "kk-string.h"
#endif
namespace kk {
void YStringMa... | 28.254144 | 104 | 0.516034 | hailongz |
34ccec0fbddb7bead1fba1b27d84b6ca1a3f46ea | 1,160 | hpp | C++ | ufora/core/math/Smallest.hpp | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | ufora/core/math/Smallest.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | ufora/core/math/Smallest.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | /***************************************************************************
Copyright 2015 Ufora 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/licen... | 24.680851 | 77 | 0.614655 | ufora |
34d05cb5c414405e14aaf50e4d2d5d0ccdf409c4 | 99 | cpp | C++ | 1000.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 22 | 2017-08-12T11:56:19.000Z | 2022-03-27T10:04:31.000Z | 1000.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 2 | 2017-12-17T02:52:59.000Z | 2018-02-09T02:10:43.000Z | 1000.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 4 | 2017-12-22T15:24:38.000Z | 2020-05-18T14:51:16.000Z | #include <iostream>
int a,b;
int main(){
using namespace std;
cin>>a>>b;
cout<<a+b;
return 0;
} | 12.375 | 21 | 0.626263 | yyong119 |
34d12c5e7cdb2f53819bc022e22d53513e3f7e28 | 8,725 | cc | C++ | modules/external_packages/src/alien/kernels/petsc/linear_solver/field_split/PETScPrecConfigFieldSplitService.cc | cedricga91/alien_legacy_plugins | 459701026d76dbe1e8a6b20454f6b50ec9722f7f | [
"Apache-2.0"
] | 4 | 2021-12-02T09:06:38.000Z | 2022-01-10T14:22:35.000Z | modules/external_packages/src/alien/kernels/petsc/linear_solver/field_split/PETScPrecConfigFieldSplitService.cc | cedricga91/alien_legacy_plugins | 459701026d76dbe1e8a6b20454f6b50ec9722f7f | [
"Apache-2.0"
] | null | null | null | modules/external_packages/src/alien/kernels/petsc/linear_solver/field_split/PETScPrecConfigFieldSplitService.cc | cedricga91/alien_legacy_plugins | 459701026d76dbe1e8a6b20454f6b50ec9722f7f | [
"Apache-2.0"
] | 7 | 2021-11-23T14:50:58.000Z | 2022-03-17T13:23:07.000Z | /* Author : gratienj
* Preconditioner created by combining separate preconditioners for individual
* fields or groups of fields. See the users manual section "Solving Block Matrices"
* for more details in PETSc 3.3 documentation :
* http://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf
*/
#include <alien/ker... | 37.12766 | 91 | 0.626934 | cedricga91 |
34d578e992a3519707dd652438e22bb310f749ff | 409 | hpp | C++ | submodules/msgpack-c/include/msgpack/adaptor/complex.hpp | zhengwang/gaia-zbar-demo | 8410dc3f12ffb4b1b1e79f66f376dd207b79e7b5 | [
"MIT"
] | 199 | 2017-12-29T13:36:53.000Z | 2022-03-31T19:38:01.000Z | submodules/msgpack-c/include/msgpack/adaptor/complex.hpp | zhengwang/gaia-zbar-demo | 8410dc3f12ffb4b1b1e79f66f376dd207b79e7b5 | [
"MIT"
] | 188 | 2017-11-03T18:22:46.000Z | 2022-03-03T17:43:55.000Z | submodules/msgpack-c/include/msgpack/adaptor/complex.hpp | zhengwang/gaia-zbar-demo | 8410dc3f12ffb4b1b1e79f66f376dd207b79e7b5 | [
"MIT"
] | 35 | 2017-11-02T19:18:34.000Z | 2021-10-05T09:37:22.000Z | //
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2020 KONDO Takatoshi
//
// 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)
//
#ifndef MSGPACK_TYPE_COMPLEX_HPP
#define MSGPACK_TYPE_CO... | 25.5625 | 64 | 0.748166 | zhengwang |
34d5b46bf2d84f751764db1a2bd7ab092f9b9853 | 399 | cc | C++ | beautiful_matrix.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | null | null | null | beautiful_matrix.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | 3 | 2021-01-04T18:33:39.000Z | 2021-01-04T19:37:21.000Z | beautiful_matrix.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
//#include <utility>
int main() {
int x, y, v, x_c, y_c, ans = 0;
for (y = 0; y < 5; ++y) {
for (x = 0; x < 5; ++x) {
std::cin >> v;
if(v == 1) {
x_c = x;
y_c = y;
}
}
}
ans += abs... | 17.347826 | 35 | 0.340852 | maximilianbrine |
34d8d80e31c05a000c472c646582c4cb390c24ef | 24,464 | hpp | C++ | integer.hpp | arbitrary-precision/ap | fc6dffabba8edcf09255c429ec81eed0b3fd63a8 | [
"MIT"
] | 11 | 2021-12-14T14:05:14.000Z | 2022-01-09T20:24:56.000Z | integer.hpp | arbitrary-precision/ap | fc6dffabba8edcf09255c429ec81eed0b3fd63a8 | [
"MIT"
] | null | null | null | integer.hpp | arbitrary-precision/ap | fc6dffabba8edcf09255c429ec81eed0b3fd63a8 | [
"MIT"
] | 1 | 2022-01-30T03:20:40.000Z | 2022-01-30T03:20:40.000Z | #ifndef DEOHAYER_AP_INT_HPP
#define DEOHAYER_AP_INT_HPP
#include "integer_api.hpp"
#include "integer_handle.hpp"
#include <iostream>
namespace ap
{
namespace library
{
#define AP_DEFAULT_STR_BASE 10
#define AP_DEFAULT_STR "0123456789ABCDEF"
////////////////////////////////////////////////////////////////////////////... | 33.604396 | 146 | 0.485039 | arbitrary-precision |
34dd7abf37e1b8c2f160ba3f0f1f5a6dbb9d7da3 | 1,219 | hpp | C++ | include/lol/op/GetRsoAuthV1AuthorizationIdToken.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/op/GetRsoAuthV1AuthorizationIdToken.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/op/GetRsoAuthV1AuthorizationIdToken.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_op.hpp"
#include <functional>
#include "../def/RsoAuthIdToken.hpp"
namespace lol {
template<typename T>
inline Result<RsoAuthIdToken> GetRsoAuthV1AuthorizationIdToken(T& _client)
{
try {
return ToResult<RsoAuthIdToken>(_client.https.request("get", "/rso-auth/v1/authorizat... | 36.939394 | 141 | 0.635767 | Maufeat |
34df8aed70c93ced2056c7ae0483152508c930ff | 56 | hpp | C++ | src/boost_compute_iterator_constant_iterator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_compute_iterator_constant_iterator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_compute_iterator_constant_iterator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/compute/iterator/constant_iterator.hpp>
| 28 | 55 | 0.839286 | miathedev |
34dfe1dbfbe1f7492fcb0e7352db58607d736265 | 976 | cpp | C++ | src/luogu/P1122/26984594_ac_100_32ms_1164k_noO2.cpp | lnkkerst/oj-codes | d778489182d644370b2a690aa92c3df6542cc306 | [
"MIT"
] | null | null | null | src/luogu/P1122/26984594_ac_100_32ms_1164k_noO2.cpp | lnkkerst/oj-codes | d778489182d644370b2a690aa92c3df6542cc306 | [
"MIT"
] | null | null | null | src/luogu/P1122/26984594_ac_100_32ms_1164k_noO2.cpp | lnkkerst/oj-codes | d778489182d644370b2a690aa92c3df6542cc306 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cctype>
struct Edge {
int to, nex;
} edges[23333 << 1];
int n, ans, cnt;
int a[23333], f[23333];
int h[23333];
int read() {
int ret, f = 1;
char ch;
while(!isdigit(ch = getchar())) (ch == '-') && (f = -1);
for(ret = ch - '0'; isdigit(ch = getchar()); ret *= 10, ret += ch - '0');
ret... | 16.827586 | 74 | 0.478484 | lnkkerst |
34e08cbd509422605d89e432daa71260e3448977 | 752 | hpp | C++ | src/tracer/camera.hpp | marovira/ctrt | 86c59f398dd5c1ba800ab5e5b2909c990f3fd9c6 | [
"BSD-3-Clause"
] | 2 | 2021-03-15T19:29:23.000Z | 2021-11-16T03:35:40.000Z | src/tracer/camera.hpp | marovira/ctrt | 86c59f398dd5c1ba800ab5e5b2909c990f3fd9c6 | [
"BSD-3-Clause"
] | null | null | null | src/tracer/camera.hpp | marovira/ctrt | 86c59f398dd5c1ba800ab5e5b2909c990f3fd9c6 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "ray.hpp"
class Camera
{
public:
constexpr Camera() : m_distance{0.0f}
{}
constexpr Camera(Point const& eye,
Vector const& look_at,
Vector const& up,
float distance) :
m_eye{eye}, m_distance{distance}
{
... | 19.789474 | 64 | 0.537234 | marovira |
34e2b373272df2b8e92e33d97c71e1f1f52dc379 | 203 | cpp | C++ | Chapter01/in_out.cpp | Vaibhav-Kashyap/CPPDataStructures-Algorithmspackt | 8fa5ecbcdc836321e63a8361fd8be4b7df392961 | [
"MIT"
] | 207 | 2018-04-24T22:39:37.000Z | 2022-03-28T12:16:16.000Z | Chapter01/in_out.cpp | Vaibhav-Kashyap/CPPDataStructures-Algorithmspackt | 8fa5ecbcdc836321e63a8361fd8be4b7df392961 | [
"MIT"
] | 1 | 2020-06-24T23:47:28.000Z | 2020-07-17T12:56:41.000Z | Chapter01/in_out.cpp | Vaibhav-Kashyap/CPPDataStructures-Algorithmspackt | 8fa5ecbcdc836321e63a8361fd8be4b7df392961 | [
"MIT"
] | 98 | 2018-04-28T15:03:48.000Z | 2022-01-03T12:16:07.000Z | // in_out.cpp
#include <iostream>
int main ()
{
int i;
std::cout << "Please enter an integer value: ";
std::cin >> i;
std::cout << "The value you entered is " << i;
std::cout << "\n";
return 0;
}
| 15.615385 | 48 | 0.576355 | Vaibhav-Kashyap |
34e4f806db8a642ebe01b1ce6aa1a24d17b8fa4e | 1,412 | cc | C++ | algorithm_dbosch.cc | jkloe/pageDistanceBasedContourGenerator | 92e8768b596c98ffc09f4b5eeb7db8aafccda01a | [
"MIT"
] | 6 | 2019-03-06T23:54:01.000Z | 2020-08-24T09:18:33.000Z | algorithm_dbosch.cc | jkloe/pageDistanceBasedContourGenerator | 92e8768b596c98ffc09f4b5eeb7db8aafccda01a | [
"MIT"
] | 6 | 2019-03-07T00:31:48.000Z | 2021-01-10T13:28:41.000Z | algorithm_dbosch.cc | jkloe/pageDistanceBasedContourGenerator | 92e8768b596c98ffc09f4b5eeb7db8aafccda01a | [
"MIT"
] | 8 | 2019-03-07T00:08:43.000Z | 2021-05-13T12:14:08.000Z | #include "algorithm_dbosch.hpp"
namespace prhlt {
using namespace log4cxx;using namespace log4cxx::helpers;
using namespace boost;
using namespace Eigen;
Algorithm_DBOSCH::Algorithm_DBOSCH(cv::Mat &ex_image):Algorithm_Distance_Map(ex_image){
}
void Algorithm_DBOSCH::run(int ex_curvat... | 38.162162 | 137 | 0.711756 | jkloe |
34e57981fd9d911119ec0cecd2155e407a72a31e | 2,160 | cpp | C++ | RaiderEngine/Collider2DCircle.cpp | rystills/RaiderEngine | 5a5bce4b3eca2f2f8c166e3a6296b07309af0d8a | [
"MIT"
] | 4 | 2019-07-20T08:41:04.000Z | 2022-03-04T01:53:38.000Z | RaiderEngine/Collider2DCircle.cpp | rystills/RaiderEngine | 5a5bce4b3eca2f2f8c166e3a6296b07309af0d8a | [
"MIT"
] | null | null | null | RaiderEngine/Collider2DCircle.cpp | rystills/RaiderEngine | 5a5bce4b3eca2f2f8c166e3a6296b07309af0d8a | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Collider2DCircle.hpp"
#include "Collider2DRectangle.hpp"
#include "Collider2DPolygon.hpp"
#include "Collider2DLine.hpp"
#include "terminalColors.hpp"
#include "graphics.hpp"
Collider2DCircle::Collider2DCircle(float radius, int collisionLayer) : radius(radius), Collider2D(circle, collision... | 45.957447 | 182 | 0.735185 | rystills |
34e73a26f3faaba69bd211507e911461a5b8c1e6 | 360 | cpp | C++ | origin_code/factorial.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | origin_code/factorial.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | origin_code/factorial.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null |
// compute n!
#include <iostream>
using namespace std;
int factorial(int n)
{// Compute n!
if (n <= 1) return 1;
else return n * factorial(n - 1);
}
int main()
{// test the function
cout << "0! = " << factorial(0) << endl;
cout << "1! = " << factorial(1) << endl;
cout << "5! = " << ... | 17.142857 | 44 | 0.508333 | vectordb-io |
34e75b64636ca2e276112e5b6eb7bdedbcf8a0f1 | 175 | cpp | C++ | transitin-sqlite/validation.cpp | alairon/transitin-sqlite | 6533b45ed2bc5da976ff86680e3a4aa9e40d874b | [
"MIT"
] | null | null | null | transitin-sqlite/validation.cpp | alairon/transitin-sqlite | 6533b45ed2bc5da976ff86680e3a4aa9e40d874b | [
"MIT"
] | null | null | null | transitin-sqlite/validation.cpp | alairon/transitin-sqlite | 6533b45ed2bc5da976ff86680e3a4aa9e40d874b | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "system.hpp"
using namespace std;
/*Checks if a file exists*/
bool fileExists(string file) {
ifstream inFile(file);
return (inFile.good());
} | 15.909091 | 30 | 0.708571 | alairon |
34e8ea90741ea4c57fa7ef28af12d1c530219695 | 8,351 | hh | C++ | aspects/thermal/GunnsThermoelectricDevice.hh | nasa/gunns | 248323939a476abe5178538cd7a3512b5f42675c | [
"NASA-1.3"
] | 18 | 2020-01-23T12:14:09.000Z | 2022-02-27T22:11:35.000Z | aspects/thermal/GunnsThermoelectricDevice.hh | nasa/gunns | 248323939a476abe5178538cd7a3512b5f42675c | [
"NASA-1.3"
] | 39 | 2020-11-20T12:19:35.000Z | 2022-02-22T18:45:55.000Z | aspects/thermal/GunnsThermoelectricDevice.hh | nasa/gunns | 248323939a476abe5178538cd7a3512b5f42675c | [
"NASA-1.3"
] | 7 | 2020-02-10T19:25:43.000Z | 2022-03-16T01:10:00.000Z | #ifndef GunnsThermoelectricDevice_EXISTS
#define GunnsThermoelectricDevice_EXISTS
/**
@file
@brief GUNNS Thermoelectric Device Link declarations
@defgroup TSM_GUNNS_THERMAL_ELECTRIC_DEVICE GUNNS Thermoelectric Device Link
@ingroup TSM_GUNNS_THERMAL
@copyright Copyright 2019 United States Government as repre... | 52.522013 | 118 | 0.576099 | nasa |
34eb33e6701356fea57a57dbb655d34ab8559d7e | 1,086 | cpp | C++ | oop_class_car.cpp | rostislav-nikitin/edu.cpp | 3cbb87b32042cc24ebfc9937927ba86ca24a92aa | [
"MIT"
] | null | null | null | oop_class_car.cpp | rostislav-nikitin/edu.cpp | 3cbb87b32042cc24ebfc9937927ba86ca24a92aa | [
"MIT"
] | null | null | null | oop_class_car.cpp | rostislav-nikitin/edu.cpp | 3cbb87b32042cc24ebfc9937927ba86ca24a92aa | [
"MIT"
] | null | null | null | // Single-line comment
/*
* Multiple line comment
*/
#include <iostream>
#include "oop_class_car.h"
using namespace std;
int Car::total_count {0};
Car::Car():Car(0)
{
cout << "Car()" << endl;
}
Car::Car(float amount):Car(amount, 0)
{
cout << "Car(float)" << endl;
}
Car::Car(float fuel, int passengers)
{
cou... | 13.575 | 48 | 0.594843 | rostislav-nikitin |
34ecded46f74d21e4a0a033cd7b253a8672dd0bc | 35,641 | cpp | C++ | emulator/src/mame/audio/cinemat.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/audio/cinemat.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/audio/cinemat.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Aaron Giles
/***************************************************************************
Cinematronics vector hardware
Special thanks to Neil Bradley, Zonn Moore, and Jeff Mitchell of the
Retrocade Alliance
Update:
6/27/99 Jim Hernandez -- 1st Attempt ... | 24.29516 | 140 | 0.693499 | rjw57 |
34ed87a9d1efa199b206d61ed3f7d92013b33158 | 19,064 | cpp | C++ | src/main.cpp | 7h3730B/SuperDuperLedAppESP | f73512bacba9ddb71b2ab23bfe4f82ddce3e9b2b | [
"MIT"
] | null | null | null | src/main.cpp | 7h3730B/SuperDuperLedAppESP | f73512bacba9ddb71b2ab23bfe4f82ddce3e9b2b | [
"MIT"
] | null | null | null | src/main.cpp | 7h3730B/SuperDuperLedAppESP | f73512bacba9ddb71b2ab23bfe4f82ddce3e9b2b | [
"MIT"
] | 1 | 2019-11-16T16:31:35.000Z | 2019-11-16T16:31:35.000Z | #include "Arduino.h"
#include "Debug.h"
#include "ESP8266WiFi.h"
#include "ESP8266WebServer.h"
#include "ArduinoJson.h"
#include "FS.h"
#include "FastLED.h"
#include "WiFiUdp.h"
#include <ESP8266HTTPUpdateServer.h>
#include "effect.h"
#include "effects/comet.cpp"
#include "effects/rainbow.cpp"
#include "effects/rippl... | 25.972752 | 117 | 0.570027 | 7h3730B |
34f19772ef73e6f4e8de31117a0db3cbbeda4c70 | 1,370 | cpp | C++ | src/third_party/mozjs/extract/intl/components/src/DateTimePatternGenerator.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/mozjs/extract/intl/components/src/DateTimePatternGenerator.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/mozjs/extract/intl/components/src/DateTimePatternGenerator.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/intl/DateTimePatternGenerator.h"
namespace mozilla::intl {
DateTimePatternGenerator::~DateTimeP... | 27.959184 | 77 | 0.742336 | benety |
34f4a2556ab4c48c551ae5c89f92cacbdec792e0 | 2,536 | cpp | C++ | Gems/EMotionFX/Code/EMotionFX/Source/Parameter/Parameter.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 11 | 2021-07-08T09:58:26.000Z | 2022-03-17T17:59:26.000Z | Gems/EMotionFX/Code/EMotionFX/Source/Parameter/Parameter.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 29 | 2021-07-06T19:33:52.000Z | 2022-03-22T10:27:49.000Z | Gems/EMotionFX/Code/EMotionFX/Source/Parameter/Parameter.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 4 | 2021-07-06T19:24:43.000Z | 2022-03-31T12:42:27.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "Parameter.h"
#include <AzCore/Component/ComponentApplicationBus.h>
#include <AzCore/Ser... | 29.835294 | 131 | 0.556388 | cypherdotXd |
34f585b51562fd7b18ca96b9ac20b6bba8799f2c | 1,570 | hh | C++ | mcg/src/external/BSR/include/concurrent/threads/synchronization/locks/auto_read_lock.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 392 | 2015-01-14T13:19:40.000Z | 2022-02-12T08:47:33.000Z | mcg/src/external/BSR/include/concurrent/threads/synchronization/locks/auto_read_lock.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 45 | 2015-02-03T12:16:10.000Z | 2022-03-07T00:25:09.000Z | mcg/src/external/BSR/include/concurrent/threads/synchronization/locks/auto_read_lock.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 168 | 2015-01-05T02:29:53.000Z | 2022-02-22T04:32:04.000Z | /*
* Auto read lock.
*
* An auto_read_lock takes a read lock on a synchronizable object when
* constructed and releases the read lock when destructed.
*/
#ifndef CONCURRENT__THREADS__SYNCHRONIZATION__LOCKS__AUTO_READ_LOCK_HH
#define CONCURRENT__THREADS__SYNCHRONIZATION__LOCKS__AUTO_READ_LOCK_HH
namespace concurre... | 19.625 | 72 | 0.699363 | mouthwater |
34f76223f2f225f9ff4403084937752047aa9973 | 8,761 | cc | C++ | include/tradingcore2/protos/tradingcore2.grpc.pb.cc | zhs007/tradingcore2 | 5c9f29bda37828ebb6c71d1555567035f2a4d978 | [
"Apache-2.0"
] | 5 | 2020-12-05T10:37:53.000Z | 2021-08-01T14:25:22.000Z | include/tradingcore2/protos/tradingcore2.grpc.pb.cc | zhs007/tradingcore2 | 5c9f29bda37828ebb6c71d1555567035f2a4d978 | [
"Apache-2.0"
] | 113 | 2020-10-04T01:13:11.000Z | 2021-06-24T14:36:55.000Z | include/tradingcore2/protos/tradingcore2.grpc.pb.cc | zhs007/tradingcore2 | 5c9f29bda37828ebb6c71d1555567035f2a4d978 | [
"Apache-2.0"
] | 1 | 2021-07-10T07:19:34.000Z | 2021-07-10T07:19:34.000Z | // Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: tradingcore2.proto
#include "tradingcore2.pb.h"
#include "tradingcore2.grpc.pb.h"
#include <functional>
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcpp/i... | 63.028777 | 247 | 0.764182 | zhs007 |
34f77a1fb98fc4a8447d86e90c848013d011c36b | 757 | cpp | C++ | C++/Uni-Ruse/1. Intro to Programming/09.02.2015.13.13.cpp | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | 1 | 2018-05-24T11:30:05.000Z | 2018-05-24T11:30:05.000Z | C++/Uni-Ruse/1. Intro to Programming/09.02.2015.13.13.cpp | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | null | null | null | C++/Uni-Ruse/1. Intro to Programming/09.02.2015.13.13.cpp | dvt32/cpp-journey | afd7db7a1ad106c41601fb09e963902187ae36e6 | [
"MIT"
] | 2 | 2017-08-11T06:53:30.000Z | 2017-08-29T12:07:52.000Z | /* Димитър Валериев Трифонов, КН, 50Б, 146518 */
/*
4. Да се намери при кое от две зададени цели числа средно-аритметичното на цифрите е по-голяма.
*/
#include "stdafx.h"
using namespace std;
#include <iostream>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
#include <string>
double br = 0, sum = 0;
d... | 14.283019 | 95 | 0.59181 | dvt32 |
34f7d6ad3c594eb56a275d607fd7e21b5481a92f | 45 | cpp | C++ | 6.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | 6.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | 6.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | //
// Created by sunguoyan on 2017/2/27.
//
| 9 | 37 | 0.6 | Sherryhaha |
5a5568b8b9972a0e9d452be5e4276b692ba7d335 | 2,660 | cpp | C++ | render/Mesh.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | 6 | 2019-01-25T08:41:14.000Z | 2021-08-22T07:06:11.000Z | render/Mesh.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | null | null | null | render/Mesh.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | 3 | 2019-01-25T08:41:16.000Z | 2020-09-04T06:04:29.000Z | //
// Created by huangkun on 04/04/2018.
//
#include "Mesh.h"
using namespace std;
Mesh::Mesh(const std::vector<Vertex> &vertices, const std::vector<unsigned int> &indices,
const std::vector<Texture> &textures) {
_vertices = vertices;
_indices = indices;
_textures = textures;
}
Mesh::Mesh(con... | 30.930233 | 112 | 0.659023 | kunka |
5a55c50767623636a8ef1617308af3d06107a8d7 | 662 | cpp | C++ | C++/0214-Shortest-Palindrome/soln.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/0214-Shortest-Palindrome/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/0214-Shortest-Palindrome/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution {
public:
string shortestPalindrome(string s) {
string rs(s);
reverse(rs.begin(), rs.end());
string ns = s + '#' + rs;
int n = ns.length();
vector<int> fail(n, 0);
int j = 1, k = 0;
while (j < n) {
if (ns[j] == ns[k]) {
... | 24.518519 | 45 | 0.362538 | wyaadarsh |
5a57ec1f0537267968c18b7300a5bb8d5f64792b | 6,944 | cpp | C++ | examples/get-started/Vegg_BLE_DW/components/arduino/libraries/Painless_Mesh/src/painlessMeshAP.cpp | Techtesh/dwranging | 3233947d7b91a8bf1b9d17417d0ae4e22689a865 | [
"Apache-2.0"
] | null | null | null | examples/get-started/Vegg_BLE_DW/components/arduino/libraries/Painless_Mesh/src/painlessMeshAP.cpp | Techtesh/dwranging | 3233947d7b91a8bf1b9d17417d0ae4e22689a865 | [
"Apache-2.0"
] | null | null | null | examples/get-started/Vegg_BLE_DW/components/arduino/libraries/Painless_Mesh/src/painlessMeshAP.cpp | Techtesh/dwranging | 3233947d7b91a8bf1b9d17417d0ae4e22689a865 | [
"Apache-2.0"
] | null | null | null | //
// painlessMeshAP.cpp
//
//
// Created by Bill Gray on 7/26/16.
//
//
#include <Arduino.h>
#include "painlessMesh.h"
extern "C" {
#include <esp_wifi.h>
}
extern painlessMesh* staticThis;
extern HardwareSerial Serial_log;
extern HardwareSerial Serial_com;
extern HardwareSerial BLE_log;
// AP functions
//****... | 44.8 | 397 | 0.539747 | Techtesh |
5a586c0f37641816648c3e0a7e70ad8fdb728715 | 9,123 | cpp | C++ | msqlquery-demo/msqlquery/msqldatabase.cpp | Opostol/MSqlQuery | 67cdfde4b1d94f1c5aff7fc6017e967d492fc3a2 | [
"Unlicense"
] | 6 | 2017-04-22T14:10:54.000Z | 2021-11-02T20:24:02.000Z | msqlquery-demo/msqlquery/msqldatabase.cpp | Opostol/MSqlQuery | 67cdfde4b1d94f1c5aff7fc6017e967d492fc3a2 | [
"Unlicense"
] | 1 | 2018-07-11T17:52:50.000Z | 2018-08-22T18:44:35.000Z | msqlquery-demo/msqlquery/msqldatabase.cpp | Opostol/MSqlQuery | 67cdfde4b1d94f1c5aff7fc6017e967d492fc3a2 | [
"Unlicense"
] | 1 | 2018-07-11T11:16:32.000Z | 2018-07-11T11:16:32.000Z | #include "msqldatabase.h"
#include "qthreadutils.h"
#include "msqlthread.h"
#include <QSqlDatabase>
#include <QStringList>
#include <QSqlDriver>
#include <QDebug>
#include <QReadWriteLock>
#include <QWriteLocker>
#include <QReadLocker>
#include <QGlobalStatic>
#include <QCoreApplication>
const QString MSqlDatabase::de... | 33.914498 | 113 | 0.726515 | Opostol |
5a58ca764da2e79c8e1952db75476407b7a00a2e | 1,604 | cxx | C++ | tableio/private/pybindings/I3Datatype.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 1 | 2020-12-24T22:00:01.000Z | 2020-12-24T22:00:01.000Z | tableio/private/pybindings/I3Datatype.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | null | null | null | tableio/private/pybindings/I3Datatype.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 3 | 2020-07-17T09:20:29.000Z | 2021-03-30T16:44:18.000Z | /**
* copyright (C) 2010
* The Icecube Collaboration
*
* $Id: I3Datatype.cxx 177710 2019-12-05 22:20:21Z kjmeagher $
*
* @version $Revision: 177710 $
* @date $LastChangedDate: 2019-12-05 15:20:21 -0700 (Thu, 05 Dec 2019) $
* @author Jakob van Santen <vansanten@wisc.edu> $LastChangedBy: kjmeagher $
*/
#includ... | 34.12766 | 83 | 0.661471 | hschwane |
5a5a0640575f75efe6b8b0e80973a250d7df286a | 2,385 | cpp | C++ | modules/messaging/platform/src/Messaging.cpp | krishnaprasad/alexa-auto-sdk | 2fb8d28a9c4138111f9b19c2527478562acc4643 | [
"Apache-2.0"
] | 139 | 2018-08-09T15:14:05.000Z | 2019-06-21T20:47:58.000Z | modules/messaging/platform/src/Messaging.cpp | krishnaprasad/alexa-auto-sdk | 2fb8d28a9c4138111f9b19c2527478562acc4643 | [
"Apache-2.0"
] | 13 | 2020-12-17T00:32:05.000Z | 2022-03-30T10:45:21.000Z | modules/messaging/platform/src/Messaging.cpp | krishnaprasad/alexa-auto-sdk | 2fb8d28a9c4138111f9b19c2527478562acc4643 | [
"Apache-2.0"
] | 98 | 2019-06-28T08:34:20.000Z | 2022-03-07T23:14:22.000Z | /*
* Copyright 2020 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "licen... | 35.073529 | 116 | 0.754298 | krishnaprasad |
5a5af17e4a33fe660465020bd1be228aa45d11b6 | 1,916 | c++ | C++ | LeetCode/Add Two Numbers - Medium.c++ | ammar-sayed-taha/problem-solving | 9677a738c0cc30078f6450f40fcc26ba2a379a8b | [
"MIT"
] | 1 | 2020-02-20T00:04:54.000Z | 2020-02-20T00:04:54.000Z | LeetCode/Add Two Numbers - Medium.c++ | ammar-sayed-taha/Problem-Solving | c3ef98b8b0ebfbcc31d45990822b81a9dc549fe8 | [
"MIT"
] | null | null | null | LeetCode/Add Two Numbers - Medium.c++ | ammar-sayed-taha/Problem-Solving | c3ef98b8b0ebfbcc31d45990822b81a9dc549fe8 | [
"MIT"
] | null | null | null | /**
* assume N: length of list1 and M: length of list 2
* Time Complex :O(N) where N >= M
* Space Complexity: O(N) where N >= M
*/
class Solution {
public:
ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) {
ListNode * zeroNode = new ListNode(0);
string num1 = getNums(l1);
string num2... | 29.030303 | 120 | 0.516701 | ammar-sayed-taha |
5a67a2b24c1e32c44c4b8219c6cd3c247060afe4 | 6,465 | hpp | C++ | simulation/libsimulator/include/simulator/function.hpp | SylemST-UtilCollection/libtorrent-build | 76c22d0f0aa0e6541983fa793789f3a5774cf0ca | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | simulation/libsimulator/include/simulator/function.hpp | SylemST-UtilCollection/libtorrent-build | 76c22d0f0aa0e6541983fa793789f3a5774cf0ca | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | simulation/libsimulator/include/simulator/function.hpp | SylemST-UtilCollection/libtorrent-build | 76c22d0f0aa0e6541983fa793789f3a5774cf0ca | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2017, Arvid Norberg
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | 29.253394 | 108 | 0.682289 | SylemST-UtilCollection |
5a6a15e4c296c6cbff98d822814ac672fc01c12d | 1,664 | cpp | C++ | src/CImagePixelRenderer.cpp | colinw7/CRenderer | 02028f9f33dedabf49dafee0541bf1c9d2a9b942 | [
"MIT"
] | null | null | null | src/CImagePixelRenderer.cpp | colinw7/CRenderer | 02028f9f33dedabf49dafee0541bf1c9d2a9b942 | [
"MIT"
] | null | null | null | src/CImagePixelRenderer.cpp | colinw7/CRenderer | 02028f9f33dedabf49dafee0541bf1c9d2a9b942 | [
"MIT"
] | 1 | 2019-04-01T13:46:50.000Z | 2019-04-01T13:46:50.000Z | #include <CImagePixelRenderer.h>
#include <CImageLib.h>
CImagePixelRenderer::
CImagePixelRenderer(int width, int height) :
CPixelRenderer()
{
image_ = CImageMgrInst->createImage();
image_->setDataSize(width, height);
}
CImagePixelRenderer::
CImagePixelRenderer(CImagePtr image) :
CPixelRenderer(), image_(image)... | 15.127273 | 81 | 0.728966 | colinw7 |
5a6ace6c23e91d6a1108a30f4a3c1b0b09114333 | 3,351 | cpp | C++ | android-29/android/media/ThumbnailUtils.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/media/ThumbnailUtils.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/media/ThumbnailUtils.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../graphics/Bitmap.hpp"
#include "../os/CancellationSignal.hpp"
#include "../util/Size.hpp"
#include "../../java/io/File.hpp"
#include "../../JString.hpp"
#include "./ThumbnailUtils.hpp"
namespace android::media
{
// Fields
jint ThumbnailUtils::OPTIONS_RECYCLE_INPUT()
{
return getStaticField<jint>(
"... | 28.398305 | 148 | 0.723963 | YJBeetle |
5a75b5afcf6a1b5335ec3362018ca37d60a8788c | 1,364 | cc | C++ | components/keyed_service/content/browser_context_keyed_service_shutdown_notifier_factory.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | components/keyed_service/content/browser_context_keyed_service_shutdown_notifier_factory.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | components/keyed_service/content/browser_context_keyed_service_shutdown_notifier_factory.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/keyed_service/content/browser_context_keyed_service_shutdown_notifier_factory.h"
#include "components/keyed_service/content/browser_... | 35.894737 | 101 | 0.826246 | zealoussnow |
5a7d6fa149f270feb0ba867fbaa92235678f9430 | 534 | cpp | C++ | Youtube/Not_using_namespace_std.cpp | lance-lh/learning-c-plusplus | 90342cc5d26a5adb87aa3e97795d4bbfca7bef52 | [
"MIT"
] | 1 | 2019-03-27T13:00:02.000Z | 2019-03-27T13:00:02.000Z | Youtube/Not_using_namespace_std.cpp | lance-lh/learning-c-plusplus | 90342cc5d26a5adb87aa3e97795d4bbfca7bef52 | [
"MIT"
] | null | null | null | Youtube/Not_using_namespace_std.cpp | lance-lh/learning-c-plusplus | 90342cc5d26a5adb87aa3e97795d4bbfca7bef52 | [
"MIT"
] | 1 | 2021-01-12T22:01:28.000Z | 2021-01-12T22:01:28.000Z | #include<iostream>
#include<string>
namespace apple // it needs implicit conversion
{
void print(const std::string& text)
{
std::cout << text << std::endl;
}
}
namespace orrange // if both exist, this one is a better choice
{
void print(const char* text)
{
std::string temp = text;
std::reverse(temp.be... | 17.8 | 72 | 0.653558 | lance-lh |
5a806b36c71311311a30e63237185541ff4ccbf6 | 2,312 | cpp | C++ | tests/test_main.cpp | account-login/arggen | d105c330b97ed7eaf86e1d62f9fa59d37382d749 | [
"MIT"
] | 2 | 2020-02-05T08:49:44.000Z | 2020-04-09T07:08:24.000Z | tests/test_main.cpp | account-login/arggen | d105c330b97ed7eaf86e1d62f9fa59d37382d749 | [
"MIT"
] | null | null | null | tests/test_main.cpp | account-login/arggen | d105c330b97ed7eaf86e1d62f9fa59d37382d749 | [
"MIT"
] | null | null | null | #include <ostream>
#include "catch.hpp"
#include "test.h"
using namespace std;
inline ostream &operator <<(ostream &os, const MyOption &value) {
os << value.to_string();
return os;
}
TEST_CASE("Test parse args") {
MyOption expected;
expected.asdf = {"A1", "A2"};
expected.bar = 456;
expect... | 27.2 | 79 | 0.519896 | account-login |
5a83c0f2ac4d959c3a272ce53ae258398212f0ab | 8,003 | cpp | C++ | src/utils/vmpi_private/mysql_wrapper/mysql_wrapper.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/utils/vmpi_private/mysql_wrapper/mysql_wrapper.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/utils/vmpi_private/mysql_wrapper/mysql_wrapper.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
// mysql_wrapper.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
extern "C"
{
#include "mys... | 22.292479 | 117 | 0.580782 | cstom4994 |
5a8812002933e02d811cb75264cdab98d00687ca | 3,437 | hh | C++ | usd/src/sdf_parser/UsdTestUtils.hh | srmainwaring/sdformat | 53b9d8ef57f0971929ed92f21243a7c71daddd34 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | usd/src/sdf_parser/UsdTestUtils.hh | srmainwaring/sdformat | 53b9d8ef57f0971929ed92f21243a7c71daddd34 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | usd/src/sdf_parser/UsdTestUtils.hh | srmainwaring/sdformat | 53b9d8ef57f0971929ed92f21243a7c71daddd34 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2022 Open Source Robotics Foundation
*
* 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 appl... | 33.368932 | 78 | 0.716904 | srmainwaring |
5a89fff9491c8a42e38cac9520558565357a282b | 349 | cpp | C++ | codeforces/1618A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1618A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1618A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | // A. Polycarp and Sums of Subsequences
#include <iostream>
#include <vector>
int main() {
int t;
std::cin >> t;
while (t--) {
std::vector<int> b(7);
for (auto &el: b) {
std::cin >> el;
}
std::cout << b[0] << ' ' << b[1] << ' ' << b[6] - b[0] - b[1] << std::... | 15.173913 | 83 | 0.415473 | sgrade |
5a8bbce4cb908b36aa019c3baee270fe8429bf56 | 1,342 | hpp | C++ | Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/mkldnn/src/ocl/ocl_executor.hpp | goswamig/training_results_v0.7 | 4278ce8a0f3d4db6b5e6054277724ca36278d7a3 | [
"Apache-2.0"
] | 48 | 2020-07-29T18:09:23.000Z | 2021-10-09T01:53:33.000Z | Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/mkldnn/src/ocl/ocl_executor.hpp | goswamig/training_results_v0.7 | 4278ce8a0f3d4db6b5e6054277724ca36278d7a3 | [
"Apache-2.0"
] | 9 | 2021-04-02T02:28:07.000Z | 2022-03-26T18:23:59.000Z | Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/mkldnn/src/ocl/ocl_executor.hpp | lablup/training_results_v0.7 | f5bb59aa0f8b18b602763abe47d1d24d0d54b197 | [
"Apache-2.0"
] | 42 | 2020-08-01T06:41:24.000Z | 2022-01-20T10:33:08.000Z | /*******************************************************************************
* Copyright 2019 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.o... | 31.952381 | 80 | 0.663934 | goswamig |
5a8fe2cb455366de690d7e6aadf8c5030866e7e1 | 2,107 | cpp | C++ | Nettitude/Injection/SeDebugPrivilege.cpp | nettitude/DLLInjection | 633ce4cc88ef6edb685204e9f3683f8a42962c63 | [
"Unlicense"
] | 71 | 2016-09-01T08:52:19.000Z | 2022-02-07T11:31:45.000Z | Nettitude/Injection/SeDebugPrivilege.cpp | nettitude/DLLInjection | 633ce4cc88ef6edb685204e9f3683f8a42962c63 | [
"Unlicense"
] | null | null | null | Nettitude/Injection/SeDebugPrivilege.cpp | nettitude/DLLInjection | 633ce4cc88ef6edb685204e9f3683f8a42962c63 | [
"Unlicense"
] | 31 | 2016-09-20T10:22:57.000Z | 2022-03-30T01:10:32.000Z | /*
Copyright (c) 2015, Nettitude
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclai... | 39.018519 | 106 | 0.755577 | nettitude |
5a91e505b826ed44bbf8d7665a2945c89e907a86 | 12,400 | cpp | C++ | gcg/src/dec_postprocess.cpp | avrech/scipoptsuite-6.0.2-avrech | bb4ef31b6e84ff7e1e65cee982acf150739cda86 | [
"MIT"
] | null | null | null | gcg/src/dec_postprocess.cpp | avrech/scipoptsuite-6.0.2-avrech | bb4ef31b6e84ff7e1e65cee982acf150739cda86 | [
"MIT"
] | null | null | null | gcg/src/dec_postprocess.cpp | avrech/scipoptsuite-6.0.2-avrech | bb4ef31b6e84ff7e1e65cee982acf150739cda86 | [
"MIT"
] | 1 | 2022-01-19T01:15:11.000Z | 2022-01-19T01:15:11.000Z | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program */
/* GCG --- Generic Column Generation */
... | 38.509317 | 404 | 0.662258 | avrech |
5a96431c0947c30573b929acaee65c1270686cd4 | 44,752 | cpp | C++ | src/ui/mapeditor/map_editor.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/ui/mapeditor/map_editor.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/ui/mapeditor/map_editor.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 3.9.0 Dec 31 2020)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "ui/mapeditor/glob... | 48.328294 | 119 | 0.56288 | anuranbaka |
5a9d94105120166fcc9f0cf9936a0836e5769b6f | 2,380 | cpp | C++ | Source Code/Source/ReturnoftheGorm/Shotgun.cpp | creosB/Return-Of-the-Gorm | 09f413cf30ae5bd74dd8f8afccf3a2824a82eeb3 | [
"MIT"
] | null | null | null | Source Code/Source/ReturnoftheGorm/Shotgun.cpp | creosB/Return-Of-the-Gorm | 09f413cf30ae5bd74dd8f8afccf3a2824a82eeb3 | [
"MIT"
] | null | null | null | Source Code/Source/ReturnoftheGorm/Shotgun.cpp | creosB/Return-Of-the-Gorm | 09f413cf30ae5bd74dd8f8afccf3a2824a82eeb3 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Shotgun.h"
#include "Components/SkeletalMeshComponent.h"
#include "ReturnoftheGorm/ProjectileBase.h"
#include "Kismet/GameplayStatics.h"
// Sets default values
AShotgun::AShotgun()
{
// Set this actor to call Tick() every frame... | 36.615385 | 114 | 0.805882 | creosB |
5aa374e7856fe47fe00278225a9acc46e548a392 | 3,942 | cpp | C++ | Tests/algorithm.cpp | klassen-software-solutions/kssutil | 985a80e96d648c448f2ac81d7dcbc48054e0c7aa | [
"MIT"
] | 1 | 2019-05-08T16:45:02.000Z | 2019-05-08T16:45:02.000Z | Tests/algorithm.cpp | klassen-software-solutions/kssutil | 985a80e96d648c448f2ac81d7dcbc48054e0c7aa | [
"MIT"
] | 14 | 2019-01-23T15:22:55.000Z | 2021-08-27T23:23:42.000Z | Tests/algorithm.cpp | klassen-software-solutions/kssutil | 985a80e96d648c448f2ac81d7dcbc48054e0c7aa | [
"MIT"
] | 1 | 2022-02-05T09:04:53.000Z | 2022-02-05T09:04:53.000Z | //
// algorithm.cpp
// KSSCore
//
// Created by Steven W. Klassen on 2014-12-27.
// Copyright (c) 2014 Klassen Software Solutions. All rights reserved.
// Licensing follows the MIT License.
//
#include <cstdlib>
#include <vector>
#include <kss/test/all.h>
#include <kss/util/algorithm.hpp>
using namespace std;
u... | 34.884956 | 78 | 0.5 | klassen-software-solutions |
5aa380b57e4a4f18197f6f785c6fe1861d9faa2d | 2,342 | cpp | C++ | src/math_floating_point.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 7 | 2017-07-12T11:15:54.000Z | 2021-10-29T18:33:33.000Z | src/math_floating_point.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 18 | 2017-05-16T03:48:45.000Z | 2022-03-16T19:51:26.000Z | src/math_floating_point.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 1 | 2018-08-02T09:05:08.000Z | 2018-08-02T09:05:08.000Z | // The current file is licensed under the license terms found in the main header file "calculator.h".
// For additional information refer to the file "calculator.h".
#include "math_general.h"
#include <math.h>
double FloatingPoint::sqrtFloating(double argument) {
return ::sqrt(argument);
}
double FloatingPoint::si... | 24.652632 | 114 | 0.704526 | tmilev |
5aa3d5a2fb829a60dcab2706f0f42bff946bf7ce | 21,287 | cpp | C++ | src/fastable/FastABLE.cpp | LRMPUT/wifiSeq | f6137839b1967075b98758fda1178af55c24048d | [
"BSD-2-Clause"
] | 2 | 2020-10-27T07:03:13.000Z | 2020-10-27T10:14:48.000Z | src/fastable/FastABLE.cpp | LRMPUT/wifiSeq | f6137839b1967075b98758fda1178af55c24048d | [
"BSD-2-Clause"
] | null | null | null | src/fastable/FastABLE.cpp | LRMPUT/wifiSeq | f6137839b1967075b98758fda1178af55c24048d | [
"BSD-2-Clause"
] | 2 | 2019-09-23T15:31:33.000Z | 2022-02-17T10:28:24.000Z | /*
Copyright (c) 2019, Mobile Robots Laboratory:
-Michal Nowicki (michal.nowicki@put.poznan.pl),
-Jan Wietrzykowski (jan.wietrzykowski@put.poznan.pl).
Poznan University of Technology
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided t... | 41.015414 | 178 | 0.631888 | LRMPUT |
5aa609774db721185e28ada74645337ef4fbbed7 | 1,030 | cpp | C++ | components/render/scene_render/interchange/tests/inprocess_exchange.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/render/scene_render/interchange/tests/inprocess_exchange.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/render/scene_render/interchange/tests/inprocess_exchange.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include "shared.h"
struct A
{
int id;
A (int in_id) : id (in_id) { printf ("A::A(%d)\n", id); }
~A () { printf ("A::~A(%d)\n", id); }
};
int main ()
{
printf ("Results of inprocess_exchange_test:\n");
object_id_t owner_id = InprocessExchangeStorage::AllocateOwnerId ();
printf ("before attach\n");
... | 21.914894 | 106 | 0.666019 | untgames |
5aa843a1a498535b7a7d9f7206a065c0519764e9 | 15,622 | cpp | C++ | sources/kv-storage.cpp | dimakirol/lab-10-kv-storage | 00096f700ab304894b954ac55b3eee0b75109045 | [
"MIT"
] | 1 | 2020-05-12T09:00:02.000Z | 2020-05-12T09:00:02.000Z | sources/kv-storage.cpp | dimakirol/lab-10-kv-storage | 00096f700ab304894b954ac55b3eee0b75109045 | [
"MIT"
] | null | null | null | sources/kv-storage.cpp | dimakirol/lab-10-kv-storage | 00096f700ab304894b954ac55b3eee0b75109045 | [
"MIT"
] | null | null | null | // Copyright 2019 dimakirol <your_email>
#include <kv-storage.hpp>
class RandomString {
public:
RandomString() {
alpha =
"abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"1234567890";
auto now = static_cast<unsigned int>(time(nullptr));
randomizer = static... | 32.27686 | 78 | 0.537639 | dimakirol |
5aabcff4c5f609eadb6d9c1551193b52a7cb7b3c | 2,011 | hpp | C++ | include/source.hpp | Neverlord/stream-simulator | d0dd4537bd83ec219cad44c7b68e9baab539d099 | [
"BSD-3-Clause"
] | null | null | null | include/source.hpp | Neverlord/stream-simulator | d0dd4537bd83ec219cad44c7b68e9baab539d099 | [
"BSD-3-Clause"
] | null | null | null | include/source.hpp | Neverlord/stream-simulator | d0dd4537bd83ec219cad44c7b68e9baab539d099 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 41.895833 | 80 | 0.406763 | Neverlord |
5ab11f03536a1304aa5424c68a6028f627f6c339 | 2,291 | cpp | C++ | Tga3D/Source/tga2dcore/tga2d/imguiinterface/ImGuiInterface.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | 1 | 2022-03-10T11:43:24.000Z | 2022-03-10T11:43:24.000Z | Tga3D/Source/tga2dcore/tga2d/imguiinterface/ImGuiInterface.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | Tga3D/Source/tga2dcore/tga2d/imguiinterface/ImGuiInterface.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ImGuiInterface.h"
#include <string>
#include <tga2d/engine.h>
#include <tga2d/graphics/DX11.h>
//#pragma comment(lib, "..\\Libs\\imgui.lib")
//#pragma comment(lib, "..\\Libs\\imgui_canvas.lib")
using namespace Tga2D;
namespace Tga2D
{
class ImGuiInterfaceImpl
{
publi... | 22.460784 | 124 | 0.694457 | sarisman84 |
5ab2c93d1ca032b3ca83f5a53b44ca5e67a897a0 | 426 | cpp | C++ | Ass_2/C files/diff.cpp | pratik8696/Assignment | 6fa02f4f7ec135b13dbebea9920eeb2a57bd1489 | [
"MIT"
] | null | null | null | Ass_2/C files/diff.cpp | pratik8696/Assignment | 6fa02f4f7ec135b13dbebea9920eeb2a57bd1489 | [
"MIT"
] | null | null | null | Ass_2/C files/diff.cpp | pratik8696/Assignment | 6fa02f4f7ec135b13dbebea9920eeb2a57bd1489 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main(){
int a,b,c,d,e,f;
printf("enter first number \n");
scanf("%d",&a);
printf("enter second number \n");
scanf("%d",&b);
c=a+b;
d=a-b;
e=a*b;
f=a/b;
printf("Addition of a and b is : %d\n",c);
printf("Subtraction of a and b is : %d\n",d);
printf(... | 21.3 | 52 | 0.521127 | pratik8696 |
5ab51771fe0383c47e0511fc6dd17dc448044783 | 1,857 | hpp | C++ | Encoder/SpectralNoiseShaping.hpp | Casper-Bonde-Bose/liblc3codec | 6e8ad0bd28108201e86507cd8a0f4eb130a12c5c | [
"Apache-2.0"
] | 30 | 2021-04-13T12:00:06.000Z | 2022-03-22T06:13:13.000Z | Encoder/SpectralNoiseShaping.hpp | Casper-Bonde-Bose/liblc3codec | 6e8ad0bd28108201e86507cd8a0f4eb130a12c5c | [
"Apache-2.0"
] | 6 | 2021-04-06T09:29:10.000Z | 2022-03-28T10:58:55.000Z | Encoder/SpectralNoiseShaping.hpp | Casper-Bonde-Bose/liblc3codec | 6e8ad0bd28108201e86507cd8a0f4eb130a12c5c | [
"Apache-2.0"
] | 20 | 2021-03-23T06:48:30.000Z | 2022-03-20T13:03:49.000Z | /*
* SpectralNoiseShaping.hpp
*
* Copyright 2019 HIMSA II K/S - www.himsa.com. Represented by EHIMA - www.ehima.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | 27.716418 | 84 | 0.693592 | Casper-Bonde-Bose |
5ab51fb5df78cd399aefe3450ec6d14ae60954c9 | 2,351 | cc | C++ | core/metricsd/collectors/disk_usage_collector.cc | Keneral/asystem | df12381b72ef3d629c8efc61100cc8c714195320 | [
"Unlicense"
] | 1,144 | 2018-12-18T09:46:47.000Z | 2022-03-07T14:51:46.000Z | openwrt/package/utils/adbd/src/metricsd/collectors/disk_usage_collector.cc | Rokid/YodaOS | d0d7bbc277c0fc1c64e2e0a1c82fe6e63f6eb954 | [
"Apache-2.0"
] | 16 | 2019-01-28T06:08:40.000Z | 2019-12-04T10:26:41.000Z | openwrt/package/utils/adbd/src/metricsd/collectors/disk_usage_collector.cc | Rokid/YodaOS | d0d7bbc277c0fc1c64e2e0a1c82fe6e63f6eb954 | [
"Apache-2.0"
] | 129 | 2018-12-18T09:46:50.000Z | 2022-03-30T07:30:13.000Z | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 30.934211 | 79 | 0.703956 | Keneral |
5ab6d31bddf6b45abb349ad04bb031ea01790950 | 690 | cpp | C++ | src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/street/StraightDetection.cpp | AppliedAutonomyOffenburg/AADC_2015_A2O | 19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac | [
"BSD-4-Clause"
] | 1 | 2018-09-09T21:39:29.000Z | 2018-09-09T21:39:29.000Z | src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/street/StraightDetection.cpp | TeamAutonomousCarOffenburg/A2O_2015 | 19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac | [
"BSD-4-Clause"
] | null | null | null | src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/street/StraightDetection.cpp | TeamAutonomousCarOffenburg/A2O_2015 | 19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac | [
"BSD-4-Clause"
] | 1 | 2016-04-05T06:34:08.000Z | 2016-04-05T06:34:08.000Z | #include "StraightDetection.h"
using namespace A2O;
StraightDetection::StraightDetection(const Pose2D& pose)
: SegmentDetection(1), _pose(pose)
{
}
StraightDetection::~StraightDetection()
{
}
const Pose2D& StraightDetection::getPose() const
{
return _pose;
}
void StraightDetection::add(const Pose2D& pose)... | 19.714286 | 79 | 0.76087 | AppliedAutonomyOffenburg |
5ab80a368e52b4575fd3412c5622033137c09761 | 2,374 | cpp | C++ | tests/unit/testipaddresslookup.cpp | aaronkollasch/mozilla-vpn-client | e5ae002016c5b540eca4e46d7f4441723581fe29 | [
"Apache-2.0"
] | null | null | null | tests/unit/testipaddresslookup.cpp | aaronkollasch/mozilla-vpn-client | e5ae002016c5b540eca4e46d7f4441723581fe29 | [
"Apache-2.0"
] | null | null | null | tests/unit/testipaddresslookup.cpp | aaronkollasch/mozilla-vpn-client | e5ae002016c5b540eca4e46d7f4441723581fe29 | [
"Apache-2.0"
] | null | null | null | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "testipaddresslookup.h"
#include "../../src/ipaddresslookup.h"
#include "../../src/constants.h"
#include ... | 29.675 | 79 | 0.692081 | aaronkollasch |
5ac00b786ffa5f51e23f9ed3f83767b1e1b24579 | 67,207 | cxx | C++ | test/core/configuration/ServerConfigurationTest.cxx | Dynatrace/openkit-native | e072599196ea9086a2f9cfe67bae701d7d470fc0 | [
"Apache-2.0"
] | 8 | 2018-09-18T15:33:51.000Z | 2022-02-20T12:19:03.000Z | test/core/configuration/ServerConfigurationTest.cxx | Dynatrace/openkit-native | e072599196ea9086a2f9cfe67bae701d7d470fc0 | [
"Apache-2.0"
] | 2 | 2018-09-19T07:15:36.000Z | 2019-03-14T17:16:19.000Z | test/core/configuration/ServerConfigurationTest.cxx | Dynatrace/openkit-native | e072599196ea9086a2f9cfe67bae701d7d470fc0 | [
"Apache-2.0"
] | 15 | 2018-09-17T07:37:06.000Z | 2020-10-02T11:47:47.000Z | /**
* Copyright 2018-2021 Dynatrace 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 ag... | 32.404532 | 146 | 0.786972 | Dynatrace |
5ac078d2dcaaf7950af1c979cc2075ff04749117 | 1,720 | cpp | C++ | Native/MyoJavaAPI/MyoJavaAPI/com_thalmic_myo_Myo.cpp | tylertian123/MyoJavaSDK | ace7625b5a3a8d3cbec892fc141348b5923e7c83 | [
"MIT"
] | null | null | null | Native/MyoJavaAPI/MyoJavaAPI/com_thalmic_myo_Myo.cpp | tylertian123/MyoJavaSDK | ace7625b5a3a8d3cbec892fc141348b5923e7c83 | [
"MIT"
] | 1 | 2018-09-06T16:29:47.000Z | 2018-09-06T16:29:47.000Z | Native/MyoJavaAPI/MyoJavaAPI/com_thalmic_myo_Myo.cpp | tylertian123/MyoJavaSDK | ace7625b5a3a8d3cbec892fc141348b5923e7c83 | [
"MIT"
] | null | null | null | #include "com_thalmic_myo_Myo.h"
#include <myo/myo.hpp>
using namespace myo;
Myo* getPointer(JNIEnv *env, jobject obj) {
jfieldID fid = env->GetFieldID(env->GetObjectClass(obj), "_nativePointer", "J");
return reinterpret_cast<Myo*>(env->GetLongField(obj, fid));
}
JNIEXPORT void JNICALL Java_com_thalmic_myo_Myo__1v... | 31.272727 | 101 | 0.761047 | tylertian123 |
5ac2871d9c8aca50d6c0e3bfd37b0943267623b2 | 551 | hxx | C++ | ROOTXMLPlot/PlottingSelections.hxx | luketpickering/ROOTXMLPlot | e2e05d14e930925cd740025fd042b1cc3f0bd91c | [
"MIT"
] | null | null | null | ROOTXMLPlot/PlottingSelections.hxx | luketpickering/ROOTXMLPlot | e2e05d14e930925cd740025fd042b1cc3f0bd91c | [
"MIT"
] | null | null | null | ROOTXMLPlot/PlottingSelections.hxx | luketpickering/ROOTXMLPlot | e2e05d14e930925cd740025fd042b1cc3f0bd91c | [
"MIT"
] | null | null | null | #ifndef __PLOTTTINGSELECTIONS_HXX_SEEN__
#define __PLOTTTINGSELECTIONS_HXX_SEEN__
#include <map>
#include <string>
#include "PlottingTypes.hxx"
#include "PlottingUtils.hxx"
namespace PlottingSelections {
extern std::map<std::string, PlottingTypes::Selection1D> Selections1D;
extern std::map<std::string, PlottingT... | 27.55 | 72 | 0.791289 | luketpickering |
5ac98b0d9cf945b682fd78fa44a765804efeaf1b | 8,169 | cpp | C++ | source/datastorage.cpp | SirDifferential/proceduralis | a614c9809ab0766ade78c1732668c05b30a7f263 | [
"MIT"
] | 9 | 2016-01-05T12:35:44.000Z | 2021-04-20T23:30:59.000Z | source/datastorage.cpp | SirDifferential/proceduralis | a614c9809ab0766ade78c1732668c05b30a7f263 | [
"MIT"
] | null | null | null | source/datastorage.cpp | SirDifferential/proceduralis | a614c9809ab0766ade78c1732668c05b30a7f263 | [
"MIT"
] | null | null | null | #include "datastorage.hpp"
#include "application.hpp"
#include "toolbox.hpp"
DataStorage::DataStorage()
{
}
/**
* Loads the data that is required by the game for
* displaying the game before it officially starts
* This includes loading screens, loading music
* and similar
* Returns 0 if successful
*/
int DataStorage:... | 28.663158 | 135 | 0.669849 | SirDifferential |
5aca5c525590bf21454973408e36b3f0f963358e | 9,484 | cpp | C++ | src/manager/client/client-common.cpp | Samsung/ckm | a61e9ce01fa45323b381e6456d07117516d2e55d | [
"Apache-2.0"
] | 10 | 2015-06-02T09:16:16.000Z | 2022-03-18T11:30:21.000Z | src/manager/client/client-common.cpp | Samsung/ckm | a61e9ce01fa45323b381e6456d07117516d2e55d | [
"Apache-2.0"
] | null | null | null | src/manager/client/client-common.cpp | Samsung/ckm | a61e9ce01fa45323b381e6456d07117516d2e55d | [
"Apache-2.0"
] | 6 | 2017-01-28T04:21:33.000Z | 2022-02-07T03:25:43.000Z | /*
* Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 26.198895 | 106 | 0.611135 | Samsung |
5acb38e153040ffdd31aaf5382c14ac9f81905f8 | 1,380 | cpp | C++ | src/common/errorsystem.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | 1 | 2019-07-01T02:02:40.000Z | 2019-07-01T02:02:40.000Z | src/common/errorsystem.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | null | null | null | src/common/errorsystem.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | null | null | null | #include "errorsystem.hpp"
#include "logger.hpp"
void Noctis::ErrorSystem::Error(StdStringView text)
{
g_Logger.SetForeColor(LoggerColor::ForeRed);
g_Logger.Log("[%s] error:", m_CurFile.c_str());
g_Logger.Log(text);
g_Logger.SetForeColor(LoggerColor::ForeGray);
}
void Noctis::ErrorSystem::Warning(StdStringView te... | 28.75 | 107 | 0.747101 | noct-lang |
5ad04f44b6f307afebc8e3d7dc5ad38eb60d5d95 | 563 | hpp | C++ | cheats/features/backtrack/backtrack.hpp | DemonLoverHvH/csgo | f7ff0211fd843bbf00cac5aa62422e5588552b23 | [
"MIT"
] | null | null | null | cheats/features/backtrack/backtrack.hpp | DemonLoverHvH/csgo | f7ff0211fd843bbf00cac5aa62422e5588552b23 | [
"MIT"
] | null | null | null | cheats/features/backtrack/backtrack.hpp | DemonLoverHvH/csgo | f7ff0211fd843bbf00cac5aa62422e5588552b23 | [
"MIT"
] | null | null | null | #pragma once
#include "../../game.hpp"
#include "../../../SDK/interfaces/interfaces.hpp"
#include <deque>
#include <array>
// TODO: fix setupbones for better results
namespace backtrack
{
struct StoredRecord
{
float simTime = 0.0f;
Vector head = { 0, 0, 0 };
// use origin to set abs or for whatever need
Vect... | 22.52 | 57 | 0.669627 | DemonLoverHvH |
62c4adf69d79740da7434ad50e62455657120e56 | 67,115 | cpp | C++ | opencl/test/unit_test/command_queue/blit_enqueue_1_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/command_queue/blit_enqueue_1_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/command_queue/blit_enqueue_1_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/local_memory_access_modes.h"
#include "shared/source/helpers/pause_on_gpu_properties.h"
#include "shared/source/helpers/vec.h"
#include "shared/source/memory_manager/unified_memory_manager.h"
#incl... | 44.241925 | 182 | 0.753453 | mattcarter2017 |
62c546c1cbef1d98d36b2dca1330d78398364851 | 860 | cpp | C++ | p728e/self_dividing_numbers.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | 1 | 2020-02-20T12:04:46.000Z | 2020-02-20T12:04:46.000Z | p728e/self_dividing_numbers.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | p728e/self_dividing_numbers.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | // g++ -std=c++11 *.cpp -o test && ./test && rm -f test
#include <vector>
#include <iostream>
using namespace std;
class Solution {
public:
vector<int> selfDividingNumbers(int left, int right) {
auto isSelfDividingNumber = [](int x) -> bool {
int n = x;
while (n) {
... | 25.294118 | 67 | 0.489535 | l33tdaima |
62c6ecde9af57882fc66cffa2388ee77cbd0d053 | 1,807 | cpp | C++ | USACO/2015 Silver US Open Contest/buffet.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | 1 | 2020-10-16T18:14:30.000Z | 2020-10-16T18:14:30.000Z | USACO/2015 Silver US Open Contest/buffet.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | null | null | null | USACO/2015 Silver US Open Contest/buffet.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | 1 | 2021-01-06T04:45:38.000Z | 2021-01-06T04:45:38.000Z | #define __USE_MINGW_ANSI_STDIO 0
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <algorithm>
#include <queue>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <stack>
#include <deque>
#include <string.h>
#include <sstream>
... | 28.234375 | 80 | 0.543442 | hardik0899 |
62c989954f915000e8e38d66e45ae5ad07105343 | 306 | cpp | C++ | willow/src/transforms/autodiff/gradnongradpair.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | willow/src/transforms/autodiff/gradnongradpair.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | willow/src/transforms/autodiff/gradnongradpair.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | // Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#include <transforms/autodiff/gradnongradpair.hpp>
namespace popart {
GradNonGradPair::GradNonGradPair(Op *g_, Op *ng_) : grad(g_), nongrad(ng_) {}
GradNonGradPair::GradNonGradPair() : GradNonGradPair(nullptr, nullptr) {}
} // namespace popart
| 27.818182 | 77 | 0.751634 | gglin001 |
62cad65a87ce4b904a4735e8d2c3ad7339b5a8b6 | 338 | cpp | C++ | Alignment/OfflineValidation/test/testPVPlotting.cpp | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Alignment/OfflineValidation/test/testPVPlotting.cpp | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Alignment/OfflineValidation/test/testPVPlotting.cpp | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include <iostream>
#include <sstream>
#include "Alignment/OfflineValidation/macros/FitPVResiduals.C"
#include "Alignment/OfflineValidation/macros/FitPVResolution.C"
int main(int argc, char** argv) {
FitPVResiduals("PVValidation_test_0.root=testing", true, true, "", true);
FitPVResolution("PVValidation_test_0.root... | 33.8 | 75 | 0.772189 | ckamtsikis |