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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dfa6c16092c417b89bb5016c7868185840f378f4 | 9,730 | cpp | C++ | AviSynthPlus/avs_core/filters/overlay/OF_darken.cpp | wurui1994/AviSynth | d318f4b455c49a8864c30b3cce84925ebb16c002 | [
"MIT"
] | 1 | 2018-09-27T09:37:42.000Z | 2018-09-27T09:37:42.000Z | AviSynthPlus/avs_core/filters/overlay/OF_darken.cpp | wurui1994/AviSynth | d318f4b455c49a8864c30b3cce84925ebb16c002 | [
"MIT"
] | null | null | null | AviSynthPlus/avs_core/filters/overlay/OF_darken.cpp | wurui1994/AviSynth | d318f4b455c49a8864c30b3cce84925ebb16c002 | [
"MIT"
] | null | null | null | // Avisynth v2.5. Copyright 2002 Ben Rudiak-Gould et al.
// http://www.avisynth.org
// 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 2 of the License, or
// (at your option) a... | 44.429224 | 154 | 0.628366 | wurui1994 |
dfa93fb2abfb01533e4181072994105a30fda027 | 7,105 | hxx | C++ | drivers/storage/volsnap/vss/server/inc/wrtcommon.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | drivers/storage/volsnap/vss/server/inc/wrtcommon.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | drivers/storage/volsnap/vss/server/inc/wrtcommon.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 2001 Microsoft Corporation
Abstract:
module common.hxx |
Author:
Michael C. Johnson [mikejohn] 03-Feb-2000
Stefan R. Steiner [SSteiner] 25-Jul-2001
Description:
Contains general code and definitions used by the Shim writer and the various other writers
... | 35.703518 | 138 | 0.654328 | npocmaka |
dfaae9e95a0b05cd15389c68e0d5fc556694a867 | 21,863 | cpp | C++ | src/CPhpCounter.cpp | dutchedge/Unified_Code_Count | 8c2d12942595dc11f13f36e2282e3821707b8ffd | [
"DOC"
] | 12 | 2015-06-08T16:19:33.000Z | 2020-02-11T13:40:58.000Z | src/CPhpCounter.cpp | dutchedge/Unified_Code_Count | 8c2d12942595dc11f13f36e2282e3821707b8ffd | [
"DOC"
] | null | null | null | src/CPhpCounter.cpp | dutchedge/Unified_Code_Count | 8c2d12942595dc11f13f36e2282e3821707b8ffd | [
"DOC"
] | 6 | 2016-09-09T11:55:19.000Z | 2020-07-08T16:04:04.000Z | //! Code counter class methods for the PHP language.
/*!
* \file CPhpCounter.cpp
*
* This file contains the code counter class methods for the PHP language.
*/
#include "CPhpCounter.h"
/*!
* Constructs a CPhpCounter object.
*/
CPhpCounter::CPhpCounter()
{
classtype = PHP;
language_name = "PHP";
file_extension.pus... | 29.745578 | 133 | 0.649225 | dutchedge |
dfab58aaf4fb966676ac829669eb137e395f6ea8 | 6,455 | cpp | C++ | Ko-Fi Engine/Source/PanelAssets.cpp | Chamfer-Studios/Ko-Fi-Engine | cdc7fd9fd8c30803ac2e3fe0ecaf1923bbd7532e | [
"MIT"
] | 2 | 2022-02-26T23:35:53.000Z | 2022-03-04T16:25:18.000Z | Ko-Fi Engine/Source/PanelAssets.cpp | Chamfer-Studios/Ko-Fi-Engine | cdc7fd9fd8c30803ac2e3fe0ecaf1923bbd7532e | [
"MIT"
] | 2 | 2022-02-23T09:41:09.000Z | 2022-03-08T08:46:21.000Z | Ko-Fi Engine/Source/PanelAssets.cpp | Chamfer-Studios/Ko-Fi-Engine | cdc7fd9fd8c30803ac2e3fe0ecaf1923bbd7532e | [
"MIT"
] | 1 | 2022-03-03T18:41:32.000Z | 2022-03-03T18:41:32.000Z | #include "PanelAssets.h"
#include "M_FileSystem.h"
#include "PanelTextEditor.h"
#include "Engine.h"
#include "FSDefs.h"
#include <imgui.h>
#include "M_Editor.h"
#include "glew.h"
#include <gl/GL.h>
#include <gl/GLU.h>
PanelAssets::PanelAssets(M_Editor* editor) : currentDir(assetsDir), fileIcon(ICONS_DIR + std::string(... | 26.895833 | 180 | 0.670488 | Chamfer-Studios |
dfabf11f4cdde0b5e82e03604196b467b5ae14a4 | 2,528 | hpp | C++ | src/atlas/graphics/Mesh.hpp | Groutcho/atlas | b69b7759be0361ffdcbbba64501e07feb79143be | [
"MIT"
] | 5 | 2018-12-13T03:41:12.000Z | 2020-08-27T04:45:11.000Z | src/atlas/graphics/Mesh.hpp | Groutcho/atlas | b69b7759be0361ffdcbbba64501e07feb79143be | [
"MIT"
] | 1 | 2020-09-08T07:26:59.000Z | 2020-09-08T09:21:44.000Z | src/atlas/graphics/Mesh.hpp | Groutcho/atlas | b69b7759be0361ffdcbbba64501e07feb79143be | [
"MIT"
] | 5 | 2018-12-20T10:31:09.000Z | 2021-09-07T07:38:49.000Z | #ifndef ATLAS_GRAPHICS_MESH_HPP
#define ATLAS_GRAPHICS_MESH_HPP
#include "AtlasGraphics.hpp"
#include "Node.hpp"
#include "Drawable.hpp"
#include "Renderer.hpp"
#include "Shader.hpp"
#include "Vertex.hpp"
#include "Material.hpp"
#include "Image.hpp"
#include "atlas/core/Ellipsoid.hpp"
using namespace atlas::core;
n... | 32.410256 | 141 | 0.615902 | Groutcho |
dface710795e3a5f36d1d75638a36c64de386994 | 2,079 | cpp | C++ | example/download_history/main.cpp | NewYaroslav/binary-cpp-api | 1bc32ca0e66a0b1cb892be666dda9a695920b0a7 | [
"MIT"
] | 8 | 2019-09-06T04:47:55.000Z | 2022-03-20T12:16:49.000Z | example/download_history/main.cpp | NewYaroslav/binary-cpp-api | 1bc32ca0e66a0b1cb892be666dda9a695920b0a7 | [
"MIT"
] | 5 | 2018-11-29T17:30:46.000Z | 2019-01-27T19:47:24.000Z | example/download_history/main.cpp | NewYaroslav/binary-cpp-api | 1bc32ca0e66a0b1cb892be666dda9a695920b0a7 | [
"MIT"
] | 9 | 2019-09-05T15:12:08.000Z | 2022-01-28T12:28:38.000Z | #include <iostream>
#include <xtime.hpp>
#include "BinaryAPI.hpp"
#include "BinaryApiEasy.hpp"
using namespace std;
int main() {
BinaryAPI apiBinary;
apiBinary.set_use_log(true);
std::vector<std::string> symbols;
std::vector<double> candles_close;
std::vector<unsigned long long... | 46.2 | 185 | 0.579125 | NewYaroslav |
dfad6024a88616bae4d3a220fdd85ee734bb5b1a | 2,979 | cc | C++ | database/src/desktop/push_child_name_generator.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 193 | 2019-03-18T16:30:43.000Z | 2022-03-30T17:39:32.000Z | database/src/desktop/push_child_name_generator.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 647 | 2019-03-18T20:50:41.000Z | 2022-03-31T18:32:33.000Z | database/src/desktop/push_child_name_generator.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 86 | 2019-04-21T09:40:38.000Z | 2022-03-26T20:48:37.000Z | // Copyright 2017 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.639535 | 81 | 0.716348 | oliwilkinsonio |
dfad6872d506a1915e52e8b00069cd2bceb4440f | 1,318 | cpp | C++ | experiments/athenahealth/tTemplate.cpp | hungptit/algorithms | 65d2a4af3c24e1a3bc3421a9dee75bd17f06e7b3 | [
"BSD-2-Clause"
] | null | null | null | experiments/athenahealth/tTemplate.cpp | hungptit/algorithms | 65d2a4af3c24e1a3bc3421a9dee75bd17f06e7b3 | [
"BSD-2-Clause"
] | null | null | null | experiments/athenahealth/tTemplate.cpp | hungptit/algorithms | 65d2a4af3c24e1a3bc3421a9dee75bd17f06e7b3 | [
"BSD-2-Clause"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include "boost/filesystem.hpp"
#include "boost/program_options.hpp"
template <typename Container>
void print(Container &data, const std::string &msg) {
std::cout << msg << "\n";
std::for_each(data.begin(), data.end(), [](auto item) {
... | 26.36 | 89 | 0.604704 | hungptit |
dfb0e41d85284d1a95f68001e748920a8b76db6f | 11,614 | cpp | C++ | lib/cocos2d-x/external/luaproxy/ui/UIUtil.cpp | sc1987910/quick-cocos2d-x | ed37e34fc94b3f9bd9bacefd776ada169e1072a1 | [
"MIT"
] | 1 | 2015-11-05T15:58:37.000Z | 2015-11-05T15:58:37.000Z | lib/cocos2d-x/external/luaproxy/ui/UIUtil.cpp | takaaptech/quick-cocos2d-x | 9173dee5ad5f844d8d5ab77e27aa04430140f983 | [
"MIT"
] | null | null | null | lib/cocos2d-x/external/luaproxy/ui/UIUtil.cpp | takaaptech/quick-cocos2d-x | 9173dee5ad5f844d8d5ab77e27aa04430140f983 | [
"MIT"
] | 1 | 2021-06-21T12:37:52.000Z | 2021-06-21T12:37:52.000Z | #include "UIUtil.h"
CCRenderTexture * UIUtil::createStroke(CCLabelTTF *label, float size, ccColor3B color){
if(!label || size <= 0){ return NULL;}
float x = label->getTexture()->getContentSize().width+size*2;
float y = label->getTexture()->getContentSize().height+size*2;
CCRenderTexture *rt = CCRenderTexture::crea... | 31.99449 | 109 | 0.690374 | sc1987910 |
dfba0a3fe7ba409caac15cb878a7863d74c82dfb | 2,625 | cpp | C++ | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IAppHostAdminLibrary/cpp/IAppHostElementSetMetadata.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 90 | 2017-06-13T19:56:04.000Z | 2022-03-15T16:42:09.000Z | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IAppHostAdminLibrary/cpp/IAppHostElementSetMetadata.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 453 | 2017-05-22T18:00:05.000Z | 2022-03-30T21:07:55.000Z | samples/snippets/cpp/VS_Snippets_IIS/IIS7/IAppHostAdminLibrary/cpp/IAppHostElementSetMetadata.cpp | mitchelsellers/iis-docs | 376c5b4a1b88b807eb8dbe7c63ba7cd9c59f7429 | [
"CC-BY-4.0",
"MIT"
] | 343 | 2017-05-26T08:57:30.000Z | 2022-03-25T23:05:04.000Z | // <snippet4>
#pragma once
#include <stdio.h>
#include <string.h>
#include <ahadmin.h>
int main()
{
IAppHostWritableAdminManager * pWMgr = NULL;
IAppHostElement * pElement = NULL;
HRESULT hr = S_OK;
BSTR bstrConfigCommitPath = SysAllocString(L"M... | 26.515152 | 89 | 0.581714 | mitchelsellers |
dfba278325a2b320486ebb15a20456104422e9ce | 4,328 | cc | C++ | iot/src/model/GetEdgeInstanceMessageRoutingResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | iot/src/model/GetEdgeInstanceMessageRoutingResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | iot/src/model/GetEdgeInstanceMessageRoutingResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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... | 38.990991 | 102 | 0.768946 | aliyun |
dfbbd6092dda1ac57977a3577417ea43d862e256 | 1,261 | cpp | C++ | VST Files/VST3/TestVST/source/KickButtonWP.cpp | jdm7dv/Test-VST | 13738ebf57cb492ee508aaff9f771c93218a201b | [
"MIT"
] | null | null | null | VST Files/VST3/TestVST/source/KickButtonWP.cpp | jdm7dv/Test-VST | 13738ebf57cb492ee508aaff9f771c93218a201b | [
"MIT"
] | null | null | null | VST Files/VST3/TestVST/source/KickButtonWP.cpp | jdm7dv/Test-VST | 13738ebf57cb492ee508aaff9f771c93218a201b | [
"MIT"
] | null | null | null | #include "KickButtonWP.h"
namespace VSTGUI {
CKickButtonWP::CKickButtonWP(const VSTGUI::CRect& size, CControlListener* listener, int32_t tag, CBitmap* background, const CPoint& offset)
: CKickButton(size, listener, tag, background, offset)
{
uMouseBehavior = mouseUpAndDown;
}
//------------------------------------... | 23.792453 | 139 | 0.62728 | jdm7dv |
dfbbf02b7b4070e2231a8aa2c343c4601ec62cde | 1,662 | cpp | C++ | test/test_quaternion.cpp | frostburn/density-tracer | 6a2518b60449d19fb7b6cd8f0a8c838d9deb5569 | [
"MIT"
] | null | null | null | test/test_quaternion.cpp | frostburn/density-tracer | 6a2518b60449d19fb7b6cd8f0a8c838d9deb5569 | [
"MIT"
] | null | null | null | test/test_quaternion.cpp | frostburn/density-tracer | 6a2518b60449d19fb7b6cd8f0a8c838d9deb5569 | [
"MIT"
] | null | null | null | #include <cassert>
#include <cmath>
#include "density-tracer/quaternion.h"
void test_sir_william_rowan_hamilton_on_16th_of_october_1843() {
assert(Q_I*Q_I == Q_J*Q_J);
assert(Q_J*Q_J == Q_K*Q_K);
assert(Q_I*Q_J*Q_K == -1);
}
void test_multiplication() {
quaternion a = {3, 5, 7, 11};
quaternion b ... | 22.16 | 64 | 0.554753 | frostburn |
dfc2a3df6ff572014f1df38d7fbb28f93c48c132 | 1,960 | cpp | C++ | Src/SudokuLib/PuzzlePrinter.cpp | wokste/sudokugen | ed866fdccad856acfb8f52982e74129326557e8f | [
"MIT"
] | null | null | null | Src/SudokuLib/PuzzlePrinter.cpp | wokste/sudokugen | ed866fdccad856acfb8f52982e74129326557e8f | [
"MIT"
] | 8 | 2019-04-11T12:14:31.000Z | 2019-04-13T18:59:12.000Z | Src/SudokuLib/PuzzlePrinter.cpp | wokste/sudokugen | ed866fdccad856acfb8f52982e74129326557e8f | [
"MIT"
] | null | null | null | #include "PuzzlePrinter.h"
#include <vector>
#include <string_view>
#include <fstream>
using namespace std;
void SvgPuzzlePrinter::print(const Puzzle & puzzle, std::vector<CellValue>& board) const
{
std::ofstream stream("puzzle.svg", std::ofstream::out);
XmlWriter xmlDoc(stream);
auto svg = xmlDoc.makeTag("svg");
... | 26.133333 | 122 | 0.621939 | wokste |
dfc34d0e051ab565ffdbe027b18a249a4a8af26d | 5,036 | cpp | C++ | ClassifyMembranes/train_randomforest.cpp | Rhoana/rhoana | b4027a57451d175ea02c2c7ef472cf9c4e1a0efc | [
"MIT"
] | 26 | 2015-01-08T08:30:10.000Z | 2021-07-08T06:21:35.000Z | ClassifyMembranes/train_randomforest.cpp | andudu/rhoana | b4027a57451d175ea02c2c7ef472cf9c4e1a0efc | [
"MIT"
] | null | null | null | ClassifyMembranes/train_randomforest.cpp | andudu/rhoana | b4027a57451d175ea02c2c7ef472cf9c4e1a0efc | [
"MIT"
] | 11 | 2015-01-23T23:30:26.000Z | 2019-02-06T21:56:33.000Z | #include <opencv/cv.h>
#include <opencv/highgui.h>
#include <opencv/ml.h>
#include <H5Cpp.h>
#include <assert.h>
using namespace cv;
using namespace H5;
using namespace std;
H5File open_feature_file(char *filename);
vector<string> get_feature_names(H5File h5f);
void read_feature(H5File h5f, Mat &image_out, const char ... | 39.34375 | 128 | 0.55004 | Rhoana |
dfc39f4956a77880847e942de51dd6dfac7c73c2 | 6,310 | cpp | C++ | Engine/Core/Src/Render/Systems/HierarchyProxy.cpp | bluesky013/Explosion | 1950121c48280fc5749e490c86acd75960ae8494 | [
"MIT"
] | null | null | null | Engine/Core/Src/Render/Systems/HierarchyProxy.cpp | bluesky013/Explosion | 1950121c48280fc5749e490c86acd75960ae8494 | [
"MIT"
] | null | null | null | Engine/Core/Src/Render/Systems/HierarchyProxy.cpp | bluesky013/Explosion | 1950121c48280fc5749e490c86acd75960ae8494 | [
"MIT"
] | null | null | null | //
// Created by Zach Lee on 2021/9/19.
//
#include <Engine/ECS.h>
#include <Engine/Render/Components/BasicComponent.h>
#include <Engine/Render/Systems/HierarchyProxy.h>
#include "../Components/HierarchyComponent.h"
namespace Explosion {
template <typename T>
static void TryAdd(ECS::Registry& registry, ECS::... | 31.708543 | 100 | 0.58859 | bluesky013 |
dfc4313d8222fc64ddbd98aa54407d35a98d49c7 | 4,528 | cpp | C++ | rv32i/core/vectors.cpp | Bergi84/vihal | 7c139b544bb5ed5a27088bbb6b993f061e055ce8 | [
"BSD-2-Clause"
] | 1 | 2022-02-07T02:37:45.000Z | 2022-02-07T02:37:45.000Z | rv32i/core/vectors.cpp | Bergi84/vihal | 7c139b544bb5ed5a27088bbb6b993f061e055ce8 | [
"BSD-2-Clause"
] | 2 | 2022-03-12T10:18:07.000Z | 2022-03-14T20:06:26.000Z | rv32i/core/vectors.cpp | Bergi84/vihal | 7c139b544bb5ed5a27088bbb6b993f061e055ce8 | [
"BSD-2-Clause"
] | 2 | 2022-01-04T12:47:20.000Z | 2022-01-07T20:40:13.000Z | // vector.cpp
#include "platform.h"
extern "C"
{
void Default_Handler(void);
void Exception_Handler(void);
/* Peripheral handlers */
void IRQ_Handler_01 ( void ) __attribute__ ((weak, alias("Default_Handler")));
void IRQ_Handler_02 ( void ) __attribute__ ((weak, alias("Default_Handler")));
void IRQ_Hand... | 35.936508 | 84 | 0.683746 | Bergi84 |
dfc549c2f3126a87a44d5ae736e7a0e53c8f30b2 | 521 | hpp | C++ | Jagerts.Kaleid.Graphics/Particle.hpp | Jagreaper/Kaleid | 4fd28f5921d54048d9dfd75f1640abe68a09f580 | [
"MIT"
] | null | null | null | Jagerts.Kaleid.Graphics/Particle.hpp | Jagreaper/Kaleid | 4fd28f5921d54048d9dfd75f1640abe68a09f580 | [
"MIT"
] | null | null | null | Jagerts.Kaleid.Graphics/Particle.hpp | Jagreaper/Kaleid | 4fd28f5921d54048d9dfd75f1640abe68a09f580 | [
"MIT"
] | null | null | null | #pragma once
#include "Jagerts.Kaleid.Shared/Common.hpp"
#include "Jagerts.Kaleid.Math/Transform.hpp"
#include "Jagerts.Kaleid.Graphics/Renderer.hpp"
namespace Jagerts::Kaleid::Graphics
{
class JAGERTS_KALEID_GRAPHICS_API Particle : public Jagerts::Kaleid::Graphics::RenderableObject, public Jagerts::Kaleid::Math::Tr... | 28.944444 | 147 | 0.800384 | Jagreaper |
2545cde7899a58c227ca187c7d09a9611ca9a4c0 | 6,790 | hpp | C++ | include/mbedTLScpp/MsgDigestBase.hpp | zhenghaven/mbedTLScpp | 9921ce81d5ee0102fc3f4a8ee3a6b7e80d0f1cd3 | [
"MIT"
] | null | null | null | include/mbedTLScpp/MsgDigestBase.hpp | zhenghaven/mbedTLScpp | 9921ce81d5ee0102fc3f4a8ee3a6b7e80d0f1cd3 | [
"MIT"
] | null | null | null | include/mbedTLScpp/MsgDigestBase.hpp | zhenghaven/mbedTLScpp | 9921ce81d5ee0102fc3f4a8ee3a6b7e80d0f1cd3 | [
"MIT"
] | null | null | null | #pragma once
#include "ObjectBase.hpp"
#include <mbedtls/md.h>
#include "Common.hpp"
#include "Exceptions.hpp"
#ifndef MBEDTLSCPP_CUSTOMIZED_NAMESPACE
namespace mbedTLScpp
#else
namespace MBEDTLSCPP_CUSTOMIZED_NAMESPACE
#endif
{
/** @brief Enum that represent hash types */
enum class HashType
{
SHA224,
SHA25... | 30.585586 | 115 | 0.684978 | zhenghaven |
254753e223a4d24f29e0f9afcffb73d92721571f | 7,427 | cpp | C++ | engine/arctic_platform_pi_opengl_glx.cpp | Livictor213/testing2 | 4121cbb23ec6cb55d8aad3524d1dc029165c8532 | [
"MIT"
] | 6 | 2021-03-27T01:54:55.000Z | 2021-12-15T22:50:28.000Z | engine/arctic_platform_pi_opengl_glx.cpp | Livictor213/testing2 | 4121cbb23ec6cb55d8aad3524d1dc029165c8532 | [
"MIT"
] | null | null | null | engine/arctic_platform_pi_opengl_glx.cpp | Livictor213/testing2 | 4121cbb23ec6cb55d8aad3524d1dc029165c8532 | [
"MIT"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
// The MIT License (MIT)
//
// Copyright (c) 2017 - 2021 Huldra
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of... | 27.205128 | 83 | 0.734617 | Livictor213 |
254ac030b67465092c3f890a36bf988c55d461fc | 3,231 | cpp | C++ | tests/tl.test.cpp | Quincunx271/TerseLambda | ab643911a0e23c9daad814053a5492afc9326af0 | [
"MIT"
] | 13 | 2018-11-02T18:02:08.000Z | 2021-12-24T09:22:25.000Z | tests/tl.test.cpp | Quincunx271/TerseLambda | ab643911a0e23c9daad814053a5492afc9326af0 | [
"MIT"
] | 6 | 2021-05-23T20:49:38.000Z | 2022-02-09T05:18:06.000Z | tests/tl.test.cpp | Quincunx271/TerseLambda | ab643911a0e23c9daad814053a5492afc9326af0 | [
"MIT"
] | 1 | 2021-11-16T15:40:52.000Z | 2021-11-16T15:40:52.000Z | #include <tl/tl.hpp>
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <cassert>
#include <type_traits>
#include <utility>
namespace {
template <typename... Ls>
struct overload : Ls...
{
using Ls::operator()...;
};
template <typename... Ls>
overload(Ls...) -> overload<Ls...>;
}
int main()... | 23.757353 | 89 | 0.382854 | Quincunx271 |
254f6ae593504ecc328f02955872d28853b465ae | 5,686 | cpp | C++ | unit-tests/utilities/time/test-work_week.cpp | NobuoTsukamoto/librealsense | bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d | [
"Apache-2.0"
] | 6,457 | 2016-01-21T03:56:07.000Z | 2022-03-31T11:57:15.000Z | unit-tests/utilities/time/test-work_week.cpp | NobuoTsukamoto/librealsense | bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d | [
"Apache-2.0"
] | 8,393 | 2016-01-21T09:47:28.000Z | 2022-03-31T22:21:42.000Z | unit-tests/utilities/time/test-work_week.cpp | NobuoTsukamoto/librealsense | bc0910f8ba3c33307ff247a29dd2b9e9ef1b269d | [
"Apache-2.0"
] | 4,874 | 2016-01-21T09:20:08.000Z | 2022-03-31T15:18:00.000Z | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
//#cmake:add-file ../../../common/utilities/time/work_week.h
//#cmake:add-file ../../../common/utilities/time/work_week.cpp
#include "common.h"
#include "../common/utilities/time/work_week.h"
#inc... | 38.945205 | 98 | 0.638586 | NobuoTsukamoto |
254fe76ce4ff5c2359f29fc047d9f1a383fd02d8 | 466 | hpp | C++ | src/maths/curves/curves.hpp | otgaard/zap | d50e70b5baf5f0fbf7a5a98d80c4d1bcc6166215 | [
"MIT"
] | 8 | 2016-04-24T21:02:59.000Z | 2021-11-14T20:37:17.000Z | src/maths/curves/curves.hpp | otgaard/zap | d50e70b5baf5f0fbf7a5a98d80c4d1bcc6166215 | [
"MIT"
] | null | null | null | src/maths/curves/curves.hpp | otgaard/zap | d50e70b5baf5f0fbf7a5a98d80c4d1bcc6166215 | [
"MIT"
] | 1 | 2018-06-09T19:51:38.000Z | 2018-06-09T19:51:38.000Z | //
// Created by Darren Otgaar on 2016/06/22.
//
#ifndef ZAP_CURVES_HPP
#define ZAP_CURVES_HPP
#include <maths/maths.hpp>
namespace zap { namespace maths { namespace curves {
template <typename T, typename FncX, typename FncY>
struct curve2 {
constexpr static auto make_fnc(FncX fncX, FncY fncY) {
... | 20.26087 | 62 | 0.603004 | otgaard |
255162d5484a1298f50010e9b116425fbeb2befb | 1,303 | cpp | C++ | adaptors/emscripten/wrappers/render-task-wrapper.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | adaptors/emscripten/wrappers/render-task-wrapper.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | adaptors/emscripten/wrappers/render-task-wrapper.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... | 25.54902 | 99 | 0.732924 | pwisbey |
2551bfda4713d569efc131a5c9a47b7dd0615995 | 502 | hpp | C++ | Protocol_Omega.sara_dbe1/scripts/hints/Advance_Hints_EH.hpp | JhonArroyo/ArmA-3-Scripts | 3b7b9fe6aad5a26da8b19dc27a8925d15054ccb7 | [
"CC0-1.0"
] | null | null | null | Protocol_Omega.sara_dbe1/scripts/hints/Advance_Hints_EH.hpp | JhonArroyo/ArmA-3-Scripts | 3b7b9fe6aad5a26da8b19dc27a8925d15054ccb7 | [
"CC0-1.0"
] | null | null | null | Protocol_Omega.sara_dbe1/scripts/hints/Advance_Hints_EH.hpp | JhonArroyo/ArmA-3-Scripts | 3b7b9fe6aad5a26da8b19dc27a8925d15054ccb7 | [
"CC0-1.0"
] | null | null | null | class AirdropInstructions
{
displayName = "AIRDROP ZAG LORD";
class Airdrop01
{
displayName = "AIRDROP ZAG LORD BRAVO RADIO";
description = "Para utilizar el airdrop designado debes elegir la opcion de radio en el menu de comandos y elegir dicha opcion";
tip = "<t color='#1bed39'>tenga en cuent... | 35.857143 | 176 | 0.711155 | JhonArroyo |
25558b8c56264ecac334376f10e81a123a94f80e | 423 | hpp | C++ | headers/fun/instances/_instances.hpp | BlackMATov/fun.hpp | 11b208996c3c3784d31afb6463b34d5b68b47bd4 | [
"MIT"
] | 12 | 2019-01-07T05:55:35.000Z | 2020-04-21T08:37:25.000Z | headers/fun/types/_types.hpp | BlackMATov/fun.hpp | 11b208996c3c3784d31afb6463b34d5b68b47bd4 | [
"MIT"
] | 1 | 2019-01-07T08:53:56.000Z | 2019-01-07T08:53:56.000Z | headers/fun/types/_types.hpp | BlackMATov/fun.hpp | 11b208996c3c3784d31afb6463b34d5b68b47bd4 | [
"MIT"
] | 1 | 2019-01-08T07:51:30.000Z | 2019-01-08T07:51:30.000Z | /*******************************************************************************
* This file is part of the "https://github.com/blackmatov/fun.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2019-2020, by Matvey Cherevko (blackmatov@gmail.com)
**********************... | 47 | 80 | 0.458629 | BlackMATov |
255646eb7332695cb5348f49b92bced9cf744230 | 13,858 | hpp | C++ | include/graphics/gl/OpenGLAPI.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | 5 | 2018-07-03T17:05:43.000Z | 2020-02-03T00:23:46.000Z | include/graphics/gl/OpenGLAPI.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | null | null | null | include/graphics/gl/OpenGLAPI.hpp | manvis/IYFEngine | 741a8d0dcc9b3e3ff8a8adb92850633523516604 | [
"BSD-3-Clause"
] | null | null | null | // The IYFEngine
//
// Copyright (C) 2015-2018, Manvydas Šliamka
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// condi... | 42.904025 | 222 | 0.730264 | manvis |
2559d7971b2a203426be4518963d35957bf531db | 9,101 | cpp | C++ | CodeForces-Solution/1404D.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-01-23T07:18:07.000Z | 2022-01-23T07:18:07.000Z | CodeForces-Solution/1404D.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | null | null | null | CodeForces-Solution/1404D.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-02-05T11:53:04.000Z | 2022-02-05T11:53:04.000Z | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using db = double;
using str = string; // yay python!
using pi = pair<int,int>;
using pl = pair<ll,ll>;
using pd = pair<db,db>;
using vi = vector<int>;
using vb = vector<bool>;
using vl = vector<ll>;
using vd = vector<db>... | 24.663957 | 101 | 0.524887 | Tech-Intellegent |
255e25985092f8306485c41a5da653057efdb8b8 | 1,247 | hpp | C++ | src/include/common/logic/object_factory.hpp | arthurmco/familyline | 849eee40cff266af9a3f848395ed139b7ce66197 | [
"MIT"
] | 6 | 2018-05-11T23:16:02.000Z | 2019-06-13T01:35:07.000Z | src/include/common/logic/object_factory.hpp | arthurmco/familyline | 849eee40cff266af9a3f848395ed139b7ce66197 | [
"MIT"
] | 33 | 2018-05-11T14:12:22.000Z | 2022-03-12T00:55:25.000Z | src/include/common/logic/object_factory.hpp | arthurmco/familyline | 849eee40cff266af9a3f848395ed139b7ce66197 | [
"MIT"
] | 1 | 2018-12-06T23:39:55.000Z | 2018-12-06T23:39:55.000Z | /* Represents an object factory
Copyright (C) 2016, 2018, 2020 Arthur M
*/
#pragma once
#include <map>
#include <string>
#include "game_object.hpp"
namespace familyline::logic
{
/**
* \brief Helper class to instantiate an object without knowing its class
*
* Since we will support a lot of objects, objects l... | 24.45098 | 87 | 0.673617 | arthurmco |
255e9f65a751351c15a5b030cc28c1d8c2926026 | 20 | cpp | C++ | Tests/Pch.cpp | kirillkovalenko/wirnrtopml | 86eb423701f30fdc5dae34b8f5324769d3628e0a | [
"MIT"
] | null | null | null | Tests/Pch.cpp | kirillkovalenko/wirnrtopml | 86eb423701f30fdc5dae34b8f5324769d3628e0a | [
"MIT"
] | null | null | null | Tests/Pch.cpp | kirillkovalenko/wirnrtopml | 86eb423701f30fdc5dae34b8f5324769d3628e0a | [
"MIT"
] | null | null | null | #include "Pch.hpp"
| 10 | 19 | 0.65 | kirillkovalenko |
2561651c11d29ad64229e61fd87b8926f3b58a48 | 684 | cpp | C++ | streams/voxel_stream_file.cpp | wrathofrathma/godot_voxel | f61758b47602fcbe3b4f0556e415dd891274e7ce | [
"MIT"
] | null | null | null | streams/voxel_stream_file.cpp | wrathofrathma/godot_voxel | f61758b47602fcbe3b4f0556e415dd891274e7ce | [
"MIT"
] | null | null | null | streams/voxel_stream_file.cpp | wrathofrathma/godot_voxel | f61758b47602fcbe3b4f0556e415dd891274e7ce | [
"MIT"
] | null | null | null | #include "voxel_stream_file.h"
#include "../server/voxel_server.h"
#include "../util/profiling.h"
#include <core/os/file_access.h>
#include <core/os/os.h>
thread_local VoxelBlockSerializerInternal VoxelStreamFile::_block_serializer;
FileAccess *VoxelStreamFile::open_file(const String &fpath, int mode_flags, Error *er... | 32.571429 | 89 | 0.763158 | wrathofrathma |
2565a35c7d2fe49dfe83fc57de7c826c3d81fcef | 8,010 | cpp | C++ | src/operations/types.cpp | rationalis-petra/hydra | a1c14e560f5f1c64983468e5fd0be7b32824971d | [
"MIT"
] | 2 | 2021-01-14T11:19:02.000Z | 2021-03-07T03:08:08.000Z | src/operations/types.cpp | rationalis-petra/hydra | a1c14e560f5f1c64983468e5fd0be7b32824971d | [
"MIT"
] | null | null | null | src/operations/types.cpp | rationalis-petra/hydra | a1c14e560f5f1c64983468e5fd0be7b32824971d | [
"MIT"
] | null | null | null | #include <list>
#include <string>
#include "expressions.hpp"
#include "operations/types.hpp"
#include "types.hpp"
#include "utils.hpp"
using std::list;
using std::string;
using namespace expr;
using namespace interp;
Object *op_typep(list<Object *> arg_list, LocalRuntime &r, LexicalScope &s) {
Object *obj = arg_... | 29.776952 | 85 | 0.606991 | rationalis-petra |
2565c19fce02ba10271c8348585d25dbfe4de4ef | 17,954 | hpp | C++ | LetheNut/LetheNut/Vendor/OpenGL.hpp | Atlanticity91/LetheNut | 5c536ed5a4ebc180da12cef07987e2ead695724f | [
"MIT"
] | null | null | null | LetheNut/LetheNut/Vendor/OpenGL.hpp | Atlanticity91/LetheNut | 5c536ed5a4ebc180da12cef07987e2ead695724f | [
"MIT"
] | null | null | null | LetheNut/LetheNut/Vendor/OpenGL.hpp | Atlanticity91/LetheNut | 5c536ed5a4ebc180da12cef07987e2ead695724f | [
"MIT"
] | null | null | null | /************************************************************************************
*
* _ _ _ _ _ _
* | | | | | | | \ | | | |
* | | ___| |_| |__ ___| \| |_ _| |_
* | | / _ \ __| '_ \ / _ \ . ` | | | | __|
* | |___| __/ |_| | | | __/ |\ | |_| | |_
* ... | 26.02029 | 138 | 0.623928 | Atlanticity91 |
2566861101ae967cf5417b8df6c442333df5f729 | 5,133 | hpp | C++ | src/include/MPI_Context.hpp | coetaur0/MPICapsule | 427ffcd2ee00c576127390b1282f405a794c3376 | [
"Apache-2.0"
] | null | null | null | src/include/MPI_Context.hpp | coetaur0/MPICapsule | 427ffcd2ee00c576127390b1282f405a794c3376 | [
"Apache-2.0"
] | null | null | null | src/include/MPI_Context.hpp | coetaur0/MPICapsule | 427ffcd2ee00c576127390b1282f405a794c3376 | [
"Apache-2.0"
] | null | null | null | #ifndef __MPI_CONTEXT_H__
#define __MPI_CONTEXT_H__
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include "mpi.h"
#include "DistributedData.hpp"
#include "MPI_SendRecv.hpp"
#include "FileError.hpp"
class MPI_Context
{
private :
int nProc;
int rank;
int master;
public :
/**
* \... | 32.694268 | 109 | 0.721216 | coetaur0 |
2569654ec78ce6e497c01095913dbfeb1ad43f1c | 23,345 | cpp | C++ | tests/unittests/HeadersUnitTest.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 147 | 2017-10-05T01:42:02.000Z | 2022-01-21T08:15:05.000Z | tests/unittests/HeadersUnitTest.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 20 | 2018-05-17T01:55:16.000Z | 2021-04-20T07:27:00.000Z | tests/unittests/HeadersUnitTest.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 32 | 2018-05-05T13:04:34.000Z | 2022-03-25T16:57:11.000Z | /*
* Copyright 2017 Sony Corporation
*/
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "Poco/ListMap.h"
#include "easyhttpcpp/Headers.h"
#include "easyhttpcpp/HttpException.h"
#include "EasyHttpCppAssertions.h"
namespace easyhttpcpp {
namespace test {
static const std::string HeaderName = "X-My-Heade... | 40.529514 | 140 | 0.736389 | commshare |
25728befb643aa76271af75b45622eb471211f22 | 4,081 | cpp | C++ | codeforces/1261c.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | codeforces/1261c.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | codeforces/1261c.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#undef LOCAL
string to_string(string s) { return '"' + s + '"'; }
string to_string(bool x) { return (x ? "T" : "F"); }
string to_string(const char* s) { return to_string((string)s); }
template <typename A, typename B>
string to_string(pair<A, B> p) { return "(" + to_strin... | 25.03681 | 102 | 0.413134 | sogapalag |
2572f6f8d2964ea18bd62c867a21974a931c51b0 | 25,344 | cpp | C++ | toy_compiler/munster/ast/node_factory.cpp | Wmbat/toy_compiler | 370a2e76aaaa874de5fb6c25e0755638dd84b8b4 | [
"MIT"
] | null | null | null | toy_compiler/munster/ast/node_factory.cpp | Wmbat/toy_compiler | 370a2e76aaaa874de5fb6c25e0755638dd84b8b4 | [
"MIT"
] | null | null | null | toy_compiler/munster/ast/node_factory.cpp | Wmbat/toy_compiler | 370a2e76aaaa874de5fb6c25e0755638dd84b8b4 | [
"MIT"
] | null | null | null | #include <toy_compiler/munster/ast/node_factory.hpp>
#include <toy_compiler/munster/ast/decl/array_access_decl.hpp>
#include <toy_compiler/munster/ast/decl/array_decl.hpp>
#include <toy_compiler/munster/ast/decl/class_decl.hpp>
#include <toy_compiler/munster/ast/decl/compound_member_decl.hpp>
#include <toy_compiler/mu... | 35.053942 | 100 | 0.576349 | Wmbat |
2572f935db3114dd9644afa337893d5dfa2eb735 | 12,063 | cpp | C++ | level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.h"
#include "shared/source/os_interface/linux/system_info.h"
#include "level_zero/tools/source/sysman/sysman_const.h"
#include "drm/intel_hwconfig_types.h"
... | 38.539936 | 151 | 0.669983 | mattcarter2017 |
257a91c31deb8c6604d4c8fd070b4577c1bfaf68 | 1,128 | cpp | C++ | Kattis/jewelrybox.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | 1 | 2020-10-16T18:14:30.000Z | 2020-10-16T18:14:30.000Z | Kattis/jewelrybox.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | null | null | null | Kattis/jewelrybox.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>
... | 24.521739 | 86 | 0.601064 | hardik0899 |
2581898439886abbf0128601a390248fc9c1c214 | 212 | cpp | C++ | WaterandJugProblem.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | 3 | 2017-11-27T03:01:50.000Z | 2021-03-13T08:14:00.000Z | WaterandJugProblem.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | WaterandJugProblem.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | class Solution {
public:
bool canMeasureWater(int x, int y, int z) {
if (z > x + y) return false;
if (z == x || z == y || z == x + y) return true;
return z % __gcd(x, y) == 0;
}
}; | 26.5 | 56 | 0.471698 | yplusplus |
2581ba50e07b59a40ae4f8ac5ead03b7747003d3 | 1,044 | cpp | C++ | sensors/src/main/lcd.cpp | ukayzm/wsm | becda2651be9da14f24621e6e83a789189a9bc52 | [
"MIT"
] | null | null | null | sensors/src/main/lcd.cpp | ukayzm/wsm | becda2651be9da14f24621e6e83a789189a9bc52 | [
"MIT"
] | null | null | null | sensors/src/main/lcd.cpp | ukayzm/wsm | becda2651be9da14f24621e6e83a789189a9bc52 | [
"MIT"
] | null | null | null | #include "Arduino.h"
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
LiquidCrystal_I2C lcdI2C(0x3F, 16, 2);
void initLcd() {
lcdI2C.init();
lcdI2C.backlight();
lcdI2C.setCursor(0, 0);
lcdI2C.print("begin");
}
void printDigits(char *buf, int value, int numDigits) {
int i;
for (i = 0; i < numD... | 22.695652 | 57 | 0.535441 | ukayzm |
25842379e2cb7f4bcf79e00f797eb7e35d20fe94 | 3,142 | cpp | C++ | services/convolution/kernels.cpp | vient/proctf-2019 | b7b954fff2396a7a7a83c90ec55d75bce4a3485c | [
"MIT"
] | 2 | 2020-04-22T19:36:16.000Z | 2020-09-16T07:45:54.000Z | services/convolution/kernels.cpp | vient/proctf-2019 | b7b954fff2396a7a7a83c90ec55d75bce4a3485c | [
"MIT"
] | 3 | 2021-03-31T19:21:51.000Z | 2021-06-08T20:31:48.000Z | services/convolution/kernels.cpp | leetchicken/proctf-2019 | b7b954fff2396a7a7a83c90ec55d75bce4a3485c | [
"MIT"
] | 3 | 2019-10-26T00:25:03.000Z | 2019-11-23T21:10:10.000Z | #include "kernels.h"
#include <mutex>
#include <map>
#include <stdio.h>
#include <string.h>
#include "log.h"
static std::mutex GMutex;
static std::map<std::string, std::string> GConvolutionKernels;
static std::vector<std::string> GGConvolutionKernelsId;
static FILE* GDatabase = nullptr;
static uint32_t GDatabaseOffset... | 25.33871 | 78 | 0.617123 | vient |
25851d47293fe16bfff34fdcf6cd1d23b1403201 | 12,823 | cpp | C++ | src/libharp-mpi/math/harp_mpi_linalg.cpp | tskisner/HARP | e21435511c3dc95ce1318c852002a95ca59634b1 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/libharp-mpi/math/harp_mpi_linalg.cpp | tskisner/HARP | e21435511c3dc95ce1318c852002a95ca59634b1 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/libharp-mpi/math/harp_mpi_linalg.cpp | tskisner/HARP | e21435511c3dc95ce1318c852002a95ca59634b1 | [
"BSD-3-Clause-LBNL"
] | null | null | null | /*
High Performance Astrophysical Reconstruction and Processing (HARP)
(c) 2014-2015, The Regents of the University of California,
through Lawrence Berkeley National Laboratory. See top
level LICENSE file for details.
*/
#include <harp_mpi_math_internal.hpp>
using namespace std;
using namespace harp;
ha... | 22.30087 | 139 | 0.580909 | tskisner |
258a7d1300b46d0b138b46d55227df3a178e7afd | 4,624 | cpp | C++ | src/storage/test/PrefixBloomFilterBenchmark.cpp | amosbird/nebula | aeb9b1b21bddf28d983e7a8a3e939c5fb3ddc819 | [
"Apache-2.0"
] | 1 | 2020-12-10T05:59:11.000Z | 2020-12-10T05:59:11.000Z | src/storage/test/PrefixBloomFilterBenchmark.cpp | amosbird/nebula | aeb9b1b21bddf28d983e7a8a3e939c5fb3ddc819 | [
"Apache-2.0"
] | null | null | null | src/storage/test/PrefixBloomFilterBenchmark.cpp | amosbird/nebula | aeb9b1b21bddf28d983e7a8a3e939c5fb3ddc819 | [
"Apache-2.0"
] | 1 | 2020-03-25T10:17:26.000Z | 2020-03-25T10:17:26.000Z | /* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "base/Base.h"
#include <rocksdb/db.h>
#include <folly/Benchmark.h>
#include "fs/TempDir.h"
#include "kvstore/Ro... | 38.533333 | 82 | 0.548443 | amosbird |
259358a35836f58e1c95958ec4719743692dd767 | 2,876 | cpp | C++ | source/polyvec/io/vtk_curve_writer.cpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 27 | 2020-08-17T17:25:59.000Z | 2022-03-01T05:49:12.000Z | source/polyvec/io/vtk_curve_writer.cpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 4 | 2020-08-26T13:54:59.000Z | 2020-09-21T07:19:22.000Z | source/polyvec/io/vtk_curve_writer.cpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 5 | 2020-08-26T23:26:48.000Z | 2021-01-04T09:06:07.000Z | #include <cstdio>
#include <polyvec/io/vtk_curve_writer.hpp>
namespace polyvec {
void
VtkCurveWriter::add_line ( const Eigen::Vector2d& p0, const Eigen::Vector2d& p1 ) {
Eigen::Matrix2Xd polyline ( 2, 2 );
polyline.col ( 0 ) = p0;
polyline.col ( 1 ) = p1;
add_polyline ( polyline );
}
void
VtkCurv... | 24.581197 | 123 | 0.536509 | ShnitzelKiller |
2594b6b9063ae6489d288c730885c9f7c4bc41c9 | 8,986 | cpp | C++ | services/distributeddataservice/app/src/device_kvstore_impl.cpp | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | null | null | null | services/distributeddataservice/app/src/device_kvstore_impl.cpp | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | null | null | null | services/distributeddataservice/app/src/device_kvstore_impl.cpp | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | 1 | 2021-09-13T12:07:54.000Z | 2021-09-13T12:07:54.000Z | /*
* Copyright (c) 2021 Huawei Device 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 law ... | 31.75265 | 119 | 0.673826 | openharmony-gitee-mirror |
2594f7ad17efe16aa5d30086c70a0587d18b2419 | 6,950 | cpp | C++ | cpp/atomsciflow/cmd/asflow_traj.cpp | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 6 | 2020-03-06T16:13:08.000Z | 2022-03-09T07:53:34.000Z | cpp/atomsciflow/cmd/asflow_traj.cpp | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-10-02T02:23:08.000Z | 2021-11-08T13:29:37.000Z | cpp/atomsciflow/cmd/asflow_traj.cpp | DeqiTang/pymatflow | bd8776feb40ecef0e6704ee898d9f42ded3b0186 | [
"MIT"
] | 1 | 2021-07-10T16:28:14.000Z | 2021-07-10T16:28:14.000Z | #include <boost/program_options.hpp>
//#include <experimental/filesystem>
#include <boost/filesystem.hpp>
#include <iostream>
#include <string>
#include <regex>
#include <cstdlib>
#include <armadillo>
#include "atomsciflow/parser/cif.h"
#include "atomsciflow/parser/xyz.h"
#include "atomsciflow/base/crystal.h"... | 37.978142 | 202 | 0.507482 | DeqiTang |
25951e5d52478c602a15ae1afafb6fe3ce5fb316 | 6,160 | hxx | C++ | src/odbus/AppendIter.hxx | CM4all/libcommon | fba0eae725b0e7a6cf93ff0be231d90e2c0aa04e | [
"BSD-2-Clause"
] | 13 | 2017-06-30T15:38:21.000Z | 2022-03-11T06:49:17.000Z | src/odbus/AppendIter.hxx | CM4all/libcommon | fba0eae725b0e7a6cf93ff0be231d90e2c0aa04e | [
"BSD-2-Clause"
] | 2 | 2017-10-29T18:28:28.000Z | 2020-08-20T00:43:21.000Z | src/odbus/AppendIter.hxx | CM4all/libcommon | fba0eae725b0e7a6cf93ff0be231d90e2c0aa04e | [
"BSD-2-Clause"
] | 6 | 2017-10-29T11:38:13.000Z | 2021-10-12T00:36:38.000Z | /*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 abo... | 29.194313 | 85 | 0.734903 | CM4all |
259728bd8a5465df06c43fe4422f65b9e5dcdbc6 | 44,854 | cpp | C++ | src/tools/kinect_rgbd_to_stereo/stereogen/src/multicore.cpp | kamarain/rgbd_dense_slam-code | 0ace518f9e9640ac2d61df868e4a6a73cdd89cf8 | [
"MIT"
] | 1 | 2020-12-19T01:36:23.000Z | 2020-12-19T01:36:23.000Z | src/tools/kinect_rgbd_to_stereo/stereogen/src/multicore.cpp | kamarain/rgbd_dense_slam-code | 0ace518f9e9640ac2d61df868e4a6a73cdd89cf8 | [
"MIT"
] | null | null | null | src/tools/kinect_rgbd_to_stereo/stereogen/src/multicore.cpp | kamarain/rgbd_dense_slam-code | 0ace518f9e9640ac2d61df868e4a6a73cdd89cf8 | [
"MIT"
] | null | null | null | /*
stereo-gen
Copyright (c) 2014, Tommi Tykkälä, All rights reserved.
This source code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3.0 of the License, or (at your option) any later versi... | 41.724651 | 179 | 0.501293 | kamarain |
2598b6b577168acdf4e8e9537ecb51ae011bf9fb | 17,913 | cc | C++ | chrome/browser/chromeos/login/user_controller.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-02-20T14:25:04.000Z | 2019-12-13T13:58:28.000Z | chrome/browser/chromeos/login/user_controller.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | chrome/browser/chromeos/login/user_controller.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-08-09T09:03:23.000Z | 2020-05-26T09:14:49.000Z | // Copyright (c) 2011 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/login/user_controller.h"
#include <algorithm>
#include <vector>
#include "base/utf_string_conversions.h"
#include ... | 31.930481 | 80 | 0.689332 | SlimKatLegacy |
2599234e96ace2eff6d638e27d317635d3fa486a | 756 | cpp | C++ | test/DummyTranslator.cpp | bitwizeshift/DataTranslator | 62fee6df96963c4c74a55b4c291be6e17449b8d2 | [
"MIT"
] | 1 | 2018-03-19T18:38:28.000Z | 2018-03-19T18:38:28.000Z | test/DummyTranslator.cpp | bitwizeshift/DataTranslator | 62fee6df96963c4c74a55b4c291be6e17449b8d2 | [
"MIT"
] | null | null | null | test/DummyTranslator.cpp | bitwizeshift/DataTranslator | 62fee6df96963c4c74a55b4c291be6e17449b8d2 | [
"MIT"
] | null | null | null | /**
* @file DummyTranslator.cpp
*
* @todo Add description
*
* @author Matthew Rodusek (matthew.rodusek@gmail.com)
* @date Aug 3, 2016
*
*/
#include "DummyTranslator.hpp"
const bool DummyTranslator::bool_value = true;
const int DummyTranslator::int_value = 42;
const float DummyTranslator... | 30.24 | 90 | 0.666667 | bitwizeshift |
259a0806e8afd3244db04dc9f5a3f42ef4086bc1 | 227,780 | cpp | C++ | src/SharpLLVM.Native/LLVM_wrap.cpp | xen2/SharpLang | 07902915970ace70c4ee0430a672d25187a75d3a | [
"BSD-2-Clause-FreeBSD"
] | 277 | 2015-01-04T20:42:36.000Z | 2022-03-21T06:52:03.000Z | src/SharpLLVM.Native/LLVM_wrap.cpp | xen2/SharpLang | 07902915970ace70c4ee0430a672d25187a75d3a | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2015-01-05T08:00:38.000Z | 2016-01-05T01:18:59.000Z | src/SharpLLVM.Native/LLVM_wrap.cpp | xen2/SharpLang | 07902915970ace70c4ee0430a672d25187a75d3a | [
"BSD-2-Clause-FreeBSD"
] | 46 | 2015-01-21T00:41:59.000Z | 2021-03-23T07:00:01.000Z | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.0
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do... | 24.729128 | 314 | 0.712332 | xen2 |
259c06b4dcd7ba445a02d1b6efae5a30d71de2bb | 2,589 | cpp | C++ | src/Game/GameState.cpp | rokups/Urho3D-Base | aef893dc4834e1a0a21270d497dbd0750036fa5a | [
"MIT"
] | 2 | 2016-08-19T02:54:25.000Z | 2016-11-14T00:39:43.000Z | src/Game/GameState.cpp | rokups/Urho3D-Base | aef893dc4834e1a0a21270d497dbd0750036fa5a | [
"MIT"
] | null | null | null | src/Game/GameState.cpp | rokups/Urho3D-Base | aef893dc4834e1a0a21270d497dbd0750036fa5a | [
"MIT"
] | null | null | null | //
// Copyright (c) 2016 Rokas Kupstys
//
// 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, publi... | 30.104651 | 99 | 0.705678 | rokups |
259d8ef3b32ea246d6863970917aeaf7d7e5bc19 | 1,379 | hpp | C++ | 1_term/made_2019_cpp/04/Matrix/matrix.hpp | Ilyabasharov/made_mail.ru | a81bfd874ab80eb8c7eaad8a4acf723f327f2f50 | [
"MIT"
] | 1 | 2020-02-15T06:20:30.000Z | 2020-02-15T06:20:30.000Z | 1_term/made_2019_cpp/04/Matrix/matrix.hpp | Ilyabasharov/made_mail.ru | a81bfd874ab80eb8c7eaad8a4acf723f327f2f50 | [
"MIT"
] | null | null | null | 1_term/made_2019_cpp/04/Matrix/matrix.hpp | Ilyabasharov/made_mail.ru | a81bfd874ab80eb8c7eaad8a4acf723f327f2f50 | [
"MIT"
] | 1 | 2021-08-31T08:47:24.000Z | 2021-08-31T08:47:24.000Z | //
// Matrix class realisation
//
// matrix.hpp
// Matrix
//
// Created by Илья Башаров on 05/11/2019.
// Copyright © 2019 MIPT. All rights reserved.
//
#ifndef matrix_hpp
#define matrix_hpp
#include <iostream>
#include <vector>
#include <stdexcept>
#include <cassert>
class pMatrix
{
private:
std::vector<in... | 23.775862 | 91 | 0.64467 | Ilyabasharov |
259e042916082573849554c3028661ba379bbfa5 | 2,114 | cpp | C++ | RayCaster/main_AVR.cpp | rohatsu/RayCaster | bb245222a11328884764a5fc4eaddad7025f4af8 | [
"MIT"
] | 8 | 2020-02-03T13:12:41.000Z | 2021-09-12T04:31:03.000Z | RayCaster/main_AVR.cpp | rohatsu/RayCaster | bb245222a11328884764a5fc4eaddad7025f4af8 | [
"MIT"
] | null | null | null | RayCaster/main_AVR.cpp | rohatsu/RayCaster | bb245222a11328884764a5fc4eaddad7025f4af8 | [
"MIT"
] | 3 | 2020-06-29T11:55:40.000Z | 2021-02-20T23:16:06.000Z | #include <Arduino.h>
#include "RayCaster.h"
#include "RayCasterData.h"
#include "RayCasterFixed.h"
#include "ST7735R_TFT.h"
int main(void)
{
init();
ST7735R_Begin();
BEGIN_TFT();
ST7735R_FillRect(0, 0, ST7735R_WIDTH - 1, ST7735R_HEIGHT - 1, 0, 0, 0);
RayCasterFixed rayCaster;
int16_t ... | 27.454545 | 101 | 0.508515 | rohatsu |
259e0ac379b32589119f8ffc70972166a9c98a2f | 384 | cpp | C++ | src/KandiLab/Contact.cpp | sppp/AR-AirHockey | b8c000538b8e664e9f6a59207bf893155d5ec772 | [
"Unlicense"
] | 3 | 2016-11-09T15:03:30.000Z | 2020-10-27T08:29:48.000Z | src/KandiLab/Contact.cpp | sppp/AR-AirHockey | b8c000538b8e664e9f6a59207bf893155d5ec772 | [
"Unlicense"
] | null | null | null | src/KandiLab/Contact.cpp | sppp/AR-AirHockey | b8c000538b8e664e9f6a59207bf893155d5ec772 | [
"Unlicense"
] | 2 | 2016-11-09T15:06:05.000Z | 2020-10-27T08:17:36.000Z | #include "AirHockey.h"
namespace GameCtrl {
using namespace Upp;
Contact::Contact() {
}
Contact::Contact(b2Contact* c) : contact(c) {
}
ContactListener::ContactListener() {
}
void ContactListener::BeginContact(b2Contact* contact) {
ContactBegin(contact);
}
void ContactListener::EndCo... | 12.8 | 57 | 0.664063 | sppp |
25a08b2b60787c7df75bdee5783d1da001e5329d | 1,293 | cpp | C++ | nodes/NodeOutput.cpp | zhyvchyky/filters | 7158aa8a05fb004cdea63fdbd7d31111a1f4c796 | [
"MIT"
] | null | null | null | nodes/NodeOutput.cpp | zhyvchyky/filters | 7158aa8a05fb004cdea63fdbd7d31111a1f4c796 | [
"MIT"
] | 2 | 2020-11-26T21:08:23.000Z | 2020-12-03T15:22:09.000Z | nodes/NodeOutput.cpp | zhyvchyky/filters | 7158aa8a05fb004cdea63fdbd7d31111a1f4c796 | [
"MIT"
] | null | null | null | //
// Created by noxin on 11/30/20.
//
#include "NodeOutput.h"
#include <utility>
void NodeOutput::process() {
if (this->inputs.empty()){
writeImageToFile(std::make_shared<Image>(0, 0, 255, new Pixel[0]), this->filePath);
}
else {
writeImageToFile(this->inputs[0]->getOutputPtr(), this->fi... | 24.865385 | 91 | 0.597061 | zhyvchyky |
25a26466f8f01ff4106ccc97818745152b8b7cd4 | 4,476 | cpp | C++ | Common/MdfModel/Box2D.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Common/MdfModel/Box2D.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Common/MdfModel/Box2D.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 36.688525 | 78 | 0.428284 | achilex |
25a4d4ab85760e3fc9a0e63a7b09a71204b94a29 | 449 | hpp | C++ | Consumers/GpLogConsumerConfigBuilder.hpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | Consumers/GpLogConsumerConfigBuilder.hpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | Consumers/GpLogConsumerConfigBuilder.hpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "GpLogConsumerFactory.hpp"
#include "GpLogConsumerConfigDesc.hpp"
namespace GPlatform {
class GPLOG_API GpLogConsumerConfigBuilder
{
public:
CLASS_REMOVE_CTRS_DEFAULT_MOVE_COPY(GpLogConsumerConfigBuilder)
CLASS_DECLARE_DEFAULTS(GpLogConsumerConfigBuilder)
public:
stat... | 23.631579 | 106 | 0.783964 | aofitserov |
25a5365bea61cd29f4acf9a3e10da338ee7a4861 | 2,048 | cpp | C++ | 2015/NOIP&NOI/NOIP2007tigao/game.cpp | jasha64/jasha64 | 653881f0f79075a628f98857e77eac27aef1919d | [
"MIT"
] | null | null | null | 2015/NOIP&NOI/NOIP2007tigao/game.cpp | jasha64/jasha64 | 653881f0f79075a628f98857e77eac27aef1919d | [
"MIT"
] | null | null | null | 2015/NOIP&NOI/NOIP2007tigao/game.cpp | jasha64/jasha64 | 653881f0f79075a628f98857e77eac27aef1919d | [
"MIT"
] | 1 | 2020-06-15T07:58:13.000Z | 2020-06-15T07:58:13.000Z | #include <fstream>
#include <algorithm>
#include <cstring>
using namespace std;
ifstream cin("game.in");
ofstream cout("game.out");
const int N = 87;
int a[N][N];
struct largeint
{
static const long long S = 17, B = 1000000000;
long long size, s[S];
largeint() {size = 0; fill(s, s + S, 0);}
largeint(long long n... | 20.48 | 82 | 0.486816 | jasha64 |
25a7327379e86eef049fd72b8792ae02170f98c6 | 183 | cpp | C++ | Odd_Even_Using_Binary_Operators.cpp | shivam123-dev/CPPwithShivam | b9d824f0439d0aa05770c6ad16e722ef445462cc | [
"MIT"
] | 1 | 2021-03-27T06:33:08.000Z | 2021-03-27T06:33:08.000Z | Odd_Even_Using_Binary_Operators.cpp | shivam123-dev/cppwithShivam | b9d824f0439d0aa05770c6ad16e722ef445462cc | [
"MIT"
] | null | null | null | Odd_Even_Using_Binary_Operators.cpp | shivam123-dev/cppwithShivam | b9d824f0439d0aa05770c6ad16e722ef445462cc | [
"MIT"
] | 1 | 2021-05-09T16:48:02.000Z | 2021-05-09T16:48:02.000Z | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
if (n & 1 == 1) {
cout << "Odd Number" << endl;
}
else {
cout << "Even Number" << endl;
}
return 0;
} | 14.076923 | 32 | 0.535519 | shivam123-dev |
25a8ff8eddd1aed5c8ea7c3c7518c3c937d5cc5b | 2,108 | inl | C++ | c++/Ail/SocketManager.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Ail/SocketManager.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Ail/SocketManager.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////
//......................................................................................
// This is a part of AI Library [Arthur's Interfaces Library]. .
// 1998-2001 Arthur Amshukov ... | 31.462687 | 88 | 0.495256 | aamshukov |
25a9dfff7706ef4011471478be0ac9eb31f82459 | 766 | hxx | C++ | util-lib/include/util/TWaveFormRawData.hxx | andrey-nakin/caen-v1720e-frontend | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | null | null | null | util-lib/include/util/TWaveFormRawData.hxx | andrey-nakin/caen-v1720e-frontend | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | 8 | 2019-03-06T08:43:29.000Z | 2019-05-07T11:28:08.000Z | util-lib/include/util/TWaveFormRawData.hxx | andrey-nakin/gneis-daq | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | null | null | null | #ifndef UTIL_LIB_TWaveFormRawData_hxx
#define UTIL_LIB_TWaveFormRawData_hxx
#include <cstdint>
#include <TGenericData.hxx>
#include "types.hxx"
namespace util {
class TWaveFormRawData: public TGenericData {
public:
typedef uint16_t value_type;
typedef value_type const* const_iterator_type;
using difference_type ... | 17.409091 | 93 | 0.765013 | andrey-nakin |
25ab54858d29b83b64cac95e55571cf70fbb69ed | 13,749 | cpp | C++ | examples/example_vertexEnumeration.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 22 | 2016-10-05T12:19:01.000Z | 2022-01-23T09:14:41.000Z | examples/example_vertexEnumeration.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 23 | 2017-05-08T15:02:39.000Z | 2021-11-03T16:43:39.000Z | examples/example_vertexEnumeration.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 12 | 2017-06-07T23:51:09.000Z | 2022-01-04T13:06:21.000Z | /**
* A simple example file to test the vertex enumeration algorithm.
*/
#include "../src/hypro/algorithms/convexHull/vertexEnumeration.h"
#include "../src/hypro/representations/GeometricObjectBase.h"
int main() {
using Number = mpq_class;
hypro::HPolytope<Number> poly;
hypro::matrix_t<Number> constraints =... | 66.100962 | 80 | 0.752346 | hypro |
25ace2c8131e1e73c5046dbc6722fced5c09745f | 7,246 | cpp | C++ | src/extern/inventor/lib/database/src/so/nodes/SoMaterial.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/inventor/lib/database/src/so/nodes/SoMaterial.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/inventor/lib/database/src/so/nodes/SoMaterial.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... | 31.920705 | 80 | 0.621584 | OpenXIP |
25af99539256822bc5ee29abee59eb202b133f42 | 389 | cpp | C++ | MntoneUIFramework/source/button.cpp | mntone/MntoneUIFramework | 61a66977b2a1d8a9208d998493f8f99c6aa94380 | [
"MIT"
] | 12 | 2015-07-06T10:18:12.000Z | 2019-03-11T02:48:00.000Z | MntoneUIFramework/source/button.cpp | mntone/MntoneUIFramework | 61a66977b2a1d8a9208d998493f8f99c6aa94380 | [
"MIT"
] | null | null | null | MntoneUIFramework/source/button.cpp | mntone/MntoneUIFramework | 61a66977b2a1d8a9208d998493f8f99c6aa94380 | [
"MIT"
] | 4 | 2016-07-06T13:04:17.000Z | 2019-10-19T02:08:25.000Z | #include "pch.hpp"
#include "button.hpp"
using namespace mnfx;
HRESULT button::on_command(WORD /*id*/, WORD notify_code, bool& handled) noexcept
{
HRESULT hr = S_OK;
auto const nc = static_cast<button_notify_code>(notify_code);
switch (nc)
{
case button_notify_code::clicked:
hr = click_.invoke(*this, event_ar... | 20.473684 | 81 | 0.70437 | mntone |
25b681aa999820285467a044f7305e95f64df338 | 16,166 | cpp | C++ | B2G/gecko/media/libsydneyaudio/src/sydney_audio_gonk.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/media/libsydneyaudio/src/sydney_audio_gonk.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/media/libsydneyaudio/src/sydney_audio_gonk.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /* 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 <stdlib.h>
#include <time.h>
extern "C" {
#include "sydney_audio.h"
}
#include "gonk/AudioTrack.h"
#inc... | 32.267465 | 141 | 0.673574 | wilebeast |
25b6be3d41c4bcf2b8f1b04e2e3ee709c020983a | 942 | cpp | C++ | Dataset/Leetcode/train/88/722.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/88/722.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/88/722.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
void XXX(vector<int>& nums1, int m, vector<int>& nums2, int n) {
if(m == 0) //特判
for(int i = 0; i < n; i++)
nums1[i] = nums2[i];
for(int i = 0; i < n; i++) {
if(nums2[i] <= nums1[0]) { //如果nums2的元素小于nums1的第一个,则直接插入到第一个
... | 32.482759 | 72 | 0.322718 | kkcookies99 |
25bcc5f49b25166d790a18a39b1c27c751d64261 | 3,527 | cpp | C++ | Topcoder/Solved/GCDGraph.cpp | seeva92/Competitive-Programming | 69061c5409bb806148616fe7d86543e94bf76edd | [
"Apache-2.0"
] | null | null | null | Topcoder/Solved/GCDGraph.cpp | seeva92/Competitive-Programming | 69061c5409bb806148616fe7d86543e94bf76edd | [
"Apache-2.0"
] | null | null | null | Topcoder/Solved/GCDGraph.cpp | seeva92/Competitive-Programming | 69061c5409bb806148616fe7d86543e94bf76edd | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
typedef long long ll;
const int mod = 1e9 + 7;
const int MAX = 1e5 + 7;
using namespace std;
typedef vector<int> vi;
int vis[10 * MAX];
class GCDGraph
{
public:
int fnd(int i) { return vis[i] == i ? i : vis[i] = fnd(vis[i]); }
string possible(int n, int k, ll x, ll y) {
for (int i = 1; i <=... | 20.747059 | 104 | 0.508081 | seeva92 |
25be38dbadd2dc32d0449928b05e800d792e5f06 | 1,894 | cpp | C++ | engine/utility/math/vertex.cpp | craftablescience/ChiraEngine | 18179b9c6f50c6c8f7cb3cef65be9d3f51cf223d | [
"MIT"
] | 5 | 2021-09-13T17:37:06.000Z | 2022-02-28T20:19:41.000Z | engine/utility/math/vertex.cpp | craftablescience/ChiraEngine | 18179b9c6f50c6c8f7cb3cef65be9d3f51cf223d | [
"MIT"
] | 5 | 2021-08-19T18:54:49.000Z | 2022-03-01T14:07:37.000Z | engine/utility/math/vertex.cpp | craftablescience/ChiraEngine | 18179b9c6f50c6c8f7cb3cef65be9d3f51cf223d | [
"MIT"
] | 3 | 2021-08-19T09:41:45.000Z | 2022-02-17T22:14:15.000Z | #include "vertex.h"
using namespace chira;
Position::Position(GLfloat x, GLfloat y, GLfloat z) {
this->x = x;
this->y = y;
this->z = z;
}
Normal::Normal(GLfloat r, GLfloat g, GLfloat b) {
this->r = r;
this->g = g;
this->b = b;
}
Color::Color(GLfloat r, GLfloat g, GLfloat b) {
this->r = r... | 31.04918 | 138 | 0.606125 | craftablescience |
25c3ae75c5ffe0c1d4b3f31978718ea3835bfcb4 | 1,704 | hpp | C++ | Source/Core/Network/Packet.hpp | ace13/AngelscriptMP | 583d481fdbef75e4d96a45eb2942a21189087c77 | [
"MIT"
] | 1 | 2017-01-05T01:55:16.000Z | 2017-01-05T01:55:16.000Z | Source/Core/Network/Packet.hpp | ace13/AngelscriptMP | 583d481fdbef75e4d96a45eb2942a21189087c77 | [
"MIT"
] | null | null | null | Source/Core/Network/Packet.hpp | ace13/AngelscriptMP | 583d481fdbef75e4d96a45eb2942a21189087c77 | [
"MIT"
] | null | null | null | #include <SFML/Network/Packet.hpp>
namespace Network
{
struct BitSize
{
BitSize(uint8_t size) :
Size(size)
{
}
uint8_t Size;
};
class Packet : sf::Packet
{
public:
Packet& operator>>(BitSize size);
Packet& operator>>(bool& data);
Packet& operator>>(int8_t& data);
Packet& operator>>(uint8_t&... | 28.4 | 46 | 0.6027 | ace13 |
5ad2e231f7ed02deffe6582a936bfcf38ba89b1b | 668 | cpp | C++ | 39. Combination Sum.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | 3 | 2017-02-22T14:28:27.000Z | 2017-04-26T16:26:06.000Z | 39. Combination Sum.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | null | null | null | 39. Combination Sum.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | null | null | null | class Solution2 {
public:
vector<vector<int>> combinationSum(vector<int>& candidates, int target) {
sort(candidates.begin(), candidates.end());
vector<vector<int>> rst;
vector<int> sol;
combination(rst, sol, candidates, 0, candidates.size(), target);
return rst;
}
void combination(vector<vector<int>>& r... | 29.043478 | 113 | 0.625749 | qinenergy |
5ae0730e264b65f1166f98414fb78f823728fa04 | 2,013 | cpp | C++ | src/ast.cpp | khasanov/raft | 5577273b2bcdb70538d6004e06b4d6a8ba816266 | [
"MIT"
] | null | null | null | src/ast.cpp | khasanov/raft | 5577273b2bcdb70538d6004e06b4d6a8ba816266 | [
"MIT"
] | null | null | null | src/ast.cpp | khasanov/raft | 5577273b2bcdb70538d6004e06b4d6a8ba816266 | [
"MIT"
] | null | null | null | #include "ast.h"
namespace raft {
Literal::Literal(object::Object value)
: value{value}
{
}
Logical::Logical(Expr *left, Token op, Expr *right)
: left{left}
, op{op}
, right{right}
{
}
Unary::Unary(Token op, Expr *right)
: op{std::move(op)}
, right{right}
{
}
Binary::Binary(Expr *left, Toke... | 15.135338 | 83 | 0.625435 | khasanov |
5ae0e8778f5637dd1a7e122bbcf90d7ce5986bc1 | 2,290 | cpp | C++ | firmware-usbhost/common/mdb/master/cashless/MdbMasterCashlessInterface.cpp | Zzzzipper/cppprojects | e9c9b62ca1e411320c24a3d168cab259fa2590d3 | [
"MIT"
] | null | null | null | firmware-usbhost/common/mdb/master/cashless/MdbMasterCashlessInterface.cpp | Zzzzipper/cppprojects | e9c9b62ca1e411320c24a3d168cab259fa2590d3 | [
"MIT"
] | 1 | 2021-09-03T13:03:20.000Z | 2021-09-03T13:03:20.000Z | firmware-usbhost/common/mdb/master/cashless/MdbMasterCashlessInterface.cpp | Zzzzipper/cppprojects | e9c9b62ca1e411320c24a3d168cab259fa2590d3 | [
"MIT"
] | null | null | null | #include "MdbMasterCashlessInterface.h"
#include "fiscal_register/include/FiscalSale.h"
#include "logger/RemoteLogger.h"
#include "logger/include/Logger.h"
#include <string.h>
enum EventDepositeParam {
EventDepositeParam_Type1 = 0,
EventDepositeParam_Nominal1,
EventDepositeParam_Type2,
EventDepositeParam_Nominal... | 36.935484 | 150 | 0.782533 | Zzzzipper |
5ae0f49ac8c76b6d2bae055fab7d7cfd6ca0f434 | 548 | hh | C++ | testData/parser/Types/Int.hh | jhsx/hacklang-idea | 45d190444662c8ced0614c91f8fa7701f0936e95 | [
"MIT"
] | 3 | 2016-03-05T13:24:29.000Z | 2016-09-20T11:54:06.000Z | testData/parser/Types/Int.hh | jhsx/hacklang-idea | 45d190444662c8ced0614c91f8fa7701f0936e95 | [
"MIT"
] | 1 | 2016-05-04T23:30:45.000Z | 2016-06-10T13:36:27.000Z | testData/parser/Types/Int.hh | jhsx/hacklang-idea | 45d190444662c8ced0614c91f8fa7701f0936e95 | [
"MIT"
] | null | null | null | <?hh // strict
namespace NS_int;
class C {
const int MAX = 1000;
private int $prop = 10;
public function setProp(int $val): void {
$this->prop = $val;
}
public function getProp(): int {
return $this->prop;
}
}
function main(): void {
var_dump(-PHP_INT_MAX - 1);
var_dump(-PHP_INT_MAX - 1 - 1... | 18.266667 | 61 | 0.642336 | jhsx |
5ae62ac0e213d719063c23a52c840e7f9fb2ea3a | 1,660 | cpp | C++ | hphp/runtime/ext/icu/ext_icu_iterator.cpp | dolfly/hhvm | 2153ed0f4a010e412902388341435a9d517cf3e3 | [
"PHP-3.01",
"Zend-2.0"
] | 4 | 2015-11-05T15:52:36.000Z | 2021-12-17T09:45:07.000Z | hphp/runtime/ext/icu/ext_icu_iterator.cpp | amit2014/hhvm | 5c6896ccd1b51466233c08b7bd2c6b60bcdb4ff5 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/ext/icu/ext_icu_iterator.cpp | amit2014/hhvm | 5c6896ccd1b51466233c08b7bd2c6b60bcdb4ff5 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-02-02T01:57:38.000Z | 2019-07-03T07:28:45.000Z | #include "hphp/runtime/ext/icu/ext_icu_iterator.h"
namespace HPHP { namespace Intl {
//////////////////////////////////////////////////////////////////////////////
const StaticString s_IntlIterator("IntlIterator");
IntlIterator *IntlIterator::Get(Object obj) {
return GetResData<IntlIterator>(obj, s_IntlIterator.ge... | 25.538462 | 78 | 0.58012 | dolfly |
5ae834a1e4cf9f4cd8c2be118c8fb365440ce339 | 646 | cpp | C++ | examples/utility_singleton.cpp | GheisMohammadi/CppCommon | 8785825f1f6a38f52ba2b5ecbd25ab0e550e897a | [
"MIT"
] | 211 | 2016-10-09T04:10:21.000Z | 2022-03-22T19:46:55.000Z | examples/utility_singleton.cpp | GheisMohammadi/CppCommon | 8785825f1f6a38f52ba2b5ecbd25ab0e550e897a | [
"MIT"
] | 26 | 2019-04-15T09:04:06.000Z | 2022-02-18T10:52:44.000Z | examples/utility_singleton.cpp | GheisMohammadi/CppCommon | 8785825f1f6a38f52ba2b5ecbd25ab0e550e897a | [
"MIT"
] | 87 | 2018-12-28T14:01:03.000Z | 2022-03-29T09:14:48.000Z | /*!
\file utility_singleton.cpp
\brief Singleton example
\author Ivan Shynkarenka
\date 31.08.2016
\copyright MIT License
*/
#include "utility/singleton.h"
#include <iostream>
class MySingleton : public CppCommon::Singleton<MySingleton>
{
friend CppCommon::Singleton<MySingleton>;
public:
... | 21.533333 | 79 | 0.651703 | GheisMohammadi |
5ae8cfea1db492394ef0053faf8384a5eb995d8c | 609 | hpp | C++ | src/inputmanager.hpp | intbeam/dos-rpg-game | 7b2ee87d00319da609b61f054ebf4eed34714768 | [
"MIT"
] | 2 | 2021-01-23T19:22:53.000Z | 2021-09-15T10:39:41.000Z | src/inputmanager.hpp | intbeam/dos-rpg-game | 7b2ee87d00319da609b61f054ebf4eed34714768 | [
"MIT"
] | null | null | null | src/inputmanager.hpp | intbeam/dos-rpg-game | 7b2ee87d00319da609b61f054ebf4eed34714768 | [
"MIT"
] | null | null | null | #ifndef INPUTMANAGER_HPP
#define INPUTMANAGER_HPP
#include "inputmapper.hpp"
#include <stdio.h>
#include <vector>
struct key_state
{
char state;
public:
int is_pressed();
int is_held();
int is_released();
};
#define VKEY_STATE_PRESSED 1
#define VKEY_STATE_HELD 2
#define VKEY_STATE_RE... | 17.4 | 47 | 0.692939 | intbeam |
5aebad66821b269f6d5440132fb66531c6647f1c | 11,031 | cpp | C++ | tests/test_raspberrypi3_vdec.cpp | webosose/media-resource-calculator | 312e04b1734c7a5496463c5f338a07005bae230d | [
"Apache-2.0"
] | 4 | 2018-03-19T01:53:32.000Z | 2019-05-06T05:22:06.000Z | tests/test_raspberrypi3_vdec.cpp | webosose/media-resource-calculator | 312e04b1734c7a5496463c5f338a07005bae230d | [
"Apache-2.0"
] | null | null | null | tests/test_raspberrypi3_vdec.cpp | webosose/media-resource-calculator | 312e04b1734c7a5496463c5f338a07005bae230d | [
"Apache-2.0"
] | 2 | 2018-03-22T18:47:47.000Z | 2018-08-21T05:41:50.000Z | /*
* Copyright (c) 2008-2018 LG Electronics, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law... | 33.837423 | 76 | 0.746261 | webosose |
5af016608cbd54e6e200d9443194f811d7031992 | 3,730 | cpp | C++ | test-code/iv2scenegraph.cpp | coin3d/smallchange | cf1f7647803281575456ea8de80d67253d0bf76f | [
"BSD-3-Clause"
] | 1 | 2020-11-30T23:22:09.000Z | 2020-11-30T23:22:09.000Z | test-code/iv2scenegraph.cpp | coin3d/smallchange | cf1f7647803281575456ea8de80d67253d0bf76f | [
"BSD-3-Clause"
] | 5 | 2019-12-26T00:25:01.000Z | 2021-03-20T23:59:53.000Z | test-code/iv2scenegraph.cpp | coin3d/smallchange | cf1f7647803281575456ea8de80d67253d0bf76f | [
"BSD-3-Clause"
] | 1 | 2020-01-01T15:25:08.000Z | 2020-01-01T15:25:08.000Z | #include <Inventor/SoDB.h>
#include <Inventor/SoInput.h>
#include <Inventor/SoOutput.h>
#include <Inventor/SoInteraction.h>
#include <Inventor/SoOffscreenRenderer.h>
#include <Inventor/nodekits/SoNodeKit.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoOrthographicCamera.h>
#include <Inventor/actio... | 30.826446 | 83 | 0.655228 | coin3d |
5af06da61c3eb0af419bc1e101c9bcf4044a075f | 4,989 | cpp | C++ | 2D/Box2DDebugDrawer.cpp | WriterOfAlicrow/SOTE | 79d320c36cc88f5ebb556c3e5506cd1e2a034cf6 | [
"MIT"
] | null | null | null | 2D/Box2DDebugDrawer.cpp | WriterOfAlicrow/SOTE | 79d320c36cc88f5ebb556c3e5506cd1e2a034cf6 | [
"MIT"
] | null | null | null | 2D/Box2DDebugDrawer.cpp | WriterOfAlicrow/SOTE | 79d320c36cc88f5ebb556c3e5506cd1e2a034cf6 | [
"MIT"
] | null | null | null | #include "Box2DDebugDrawer.h"
#include "globals.h"
Box2DDebugDrawer::Box2DDebugDrawer()
{
_group = new osg::Group();
//_group->setName("Box2D Debug Drawing");
_geode = new osg::Geode();
//_geode->setName("Box2D Debug Drawing");
//_geode->setDataVariance(osg::Object::DYNAMIC);
/// BUG: Data variance should be se... | 28.186441 | 276 | 0.753458 | WriterOfAlicrow |
5af07575335ef63fb7bbdfe9f2d22bd4ba944318 | 1,388 | cpp | C++ | data/dailyCodingProblem192.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem192.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem192.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
You are given an array of nonnegative integers. Let's say you start
at the beginning of the array and are trying to advance to the end.
You can advance at most, the number of steps that you're currently on.
Determine whether you can get to the end of the array.
For exa... | 23.931034 | 71 | 0.648415 | vidit1999 |
5af454fa7705d47b1be3ff888356b52162ace764 | 1,515 | cpp | C++ | src/filesystem.cpp | mbits-os/yums | 98a2afe5f2ce4c1cfae7262c3018916535d956bc | [
"MIT"
] | null | null | null | src/filesystem.cpp | mbits-os/yums | 98a2afe5f2ce4c1cfae7262c3018916535d956bc | [
"MIT"
] | null | null | null | src/filesystem.cpp | mbits-os/yums | 98a2afe5f2ce4c1cfae7262c3018916535d956bc | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2015 midnightBITS
*
* 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.234043 | 70 | 0.743894 | mbits-os |
5af45ad7998840eaf02574c97c7d4bf71c353200 | 6,774 | hpp | C++ | util/indexed_priority_queue.hpp | santanusen/mit_6006 | f4c4a402c2022a53aded4bb1830178e322591177 | [
"Apache-2.0"
] | null | null | null | util/indexed_priority_queue.hpp | santanusen/mit_6006 | f4c4a402c2022a53aded4bb1830178e322591177 | [
"Apache-2.0"
] | null | null | null | util/indexed_priority_queue.hpp | santanusen/mit_6006 | f4c4a402c2022a53aded4bb1830178e322591177 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2021 Santanu Sen. All Rights Reserved.
//
// Licensed under the Apache License 2.0 (the "License"). You may not use
// this file except in compliance with the License. You can obtain a copy
// in the file LICENSE in the source distribution.
//
#pragma once
#ifdef DEBUG_IPQ
#include <cassert>
#endif
#i... | 30.931507 | 80 | 0.6615 | santanusen |
5af49af4f3f9ff14f07277d247c97db84d739e8a | 1,309 | hpp | C++ | include/edfio/core/Device.hpp | idotta/edfio | 0c78877145dfe4bb67db174e622ed4e273527322 | [
"MIT"
] | 2 | 2019-04-25T05:27:38.000Z | 2020-01-10T13:30:09.000Z | include/edfio/core/Device.hpp | idotta/edfio | 0c78877145dfe4bb67db174e622ed4e273527322 | [
"MIT"
] | null | null | null | include/edfio/core/Device.hpp | idotta/edfio | 0c78877145dfe4bb67db174e622ed4e273527322 | [
"MIT"
] | 2 | 2017-12-13T18:28:11.000Z | 2020-09-17T14:04:31.000Z | //
// Copyright(c) 2017-present Iuri Dotta (dotta dot iuri at gmail dot com)
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
//
// Official repository: https://github.com/idotta/edfio
//
#pragma once
#include <iterator>
namespace edfio
... | 23.375 | 92 | 0.749427 | idotta |
5af658f7ddd7c8ddcbcbfac190dd952c574ca7b6 | 1,168 | cpp | C++ | LeetCode/Maximum Number of Removable Characters/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | LeetCode/Maximum Number of Removable Characters/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | null | null | null | LeetCode/Maximum Number of Removable Characters/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | null | null | null | class Solution {
private:
bool isSubsequence(const string &s1, const string &s2) {
int n = s1.size(), m = s2.size(), j = 0;
if (n > m) return false;
if (n == m) return s1 == s2;
if (m == 0) return false;
if (n == 0) return true;
for (int i = 0; i < m; i++) ... | 28.487805 | 70 | 0.357877 | Code-With-Aagam |
5af77c8dbc3dd643b08af264398eeb4ebb64237a | 398 | cc | C++ | C++Primer_4e/chap3/3.7.cc | NicoleRobin/ExerciseCode | b7ce94cb5d2f6d15afd08eadd1c70a787dbfaa59 | [
"MIT"
] | null | null | null | C++Primer_4e/chap3/3.7.cc | NicoleRobin/ExerciseCode | b7ce94cb5d2f6d15afd08eadd1c70a787dbfaa59 | [
"MIT"
] | null | null | null | C++Primer_4e/chap3/3.7.cc | NicoleRobin/ExerciseCode | b7ce94cb5d2f6d15afd08eadd1c70a787dbfaa59 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main(void)
{
string s1, s2;
cout << "please input two string:" << endl;
cin >> s1 >> s2;
if (s1 == s2)
{
cout << s1 << " = " << s2 << endl;
}
else if (s1 > s2)
{
cout << s1 << " > " << s2 << endl;
}
... | 14.740741 | 47 | 0.41206 | NicoleRobin |
5af7b8c489ec7f533a28b1919bf456d02a3d1972 | 674 | hpp | C++ | include/sprout/numeric/fft/fft.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | 4 | 2021-12-29T22:17:40.000Z | 2022-03-23T11:53:44.000Z | dsp/lib/sprout/sprout/numeric/fft/fft.hpp | TheSlowGrowth/TapeLooper | ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264 | [
"MIT"
] | 16 | 2021-10-31T21:41:09.000Z | 2022-01-22T10:51:34.000Z | include/sprout/numeric/fft/fft.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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)
==... | 39.647059 | 79 | 0.603858 | thinkoid |
5af812314b98520205b357336010ea818447a129 | 1,115 | cpp | C++ | BAC/exercises/ch9/UVa348.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch9/UVa348.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch9/UVa348.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa348 Optimal Array Multiplication Sequence
// Rujia Liu
// 题意:最优矩阵链乘,n<=10,要求输出方案
// 算法:动态规划。d[i][j]为矩阵i~j的最少乘法次数,则d[i][j] = min{d[i][k] + d[k+1][j] + a[i]*b[k]*b[j]}
// 输出方案的时候,记录d[i][j]的最优k,即sol[i][j],然后递归打印
#include<cstdio>
#include<cstring>
using namespace std;
const int maxn = 10 + 5;
int n, a[maxn], b[maxn]... | 22.3 | 84 | 0.489686 | Anyrainel |
5af910c7b84cf82f24bdd7496e1a3b8a40938dbb | 6,782 | hpp | C++ | include/System/Reflection/MonoEvent.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Reflection/MonoEvent.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Reflection/MonoEvent.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Reflection.RuntimeEventInfo
#include "System/Reflection/Runtime... | 50.992481 | 132 | 0.723533 | darknight1050 |
5af9606b7b2d70ae2b687d9ce4005cddb93f5451 | 1,095 | cpp | C++ | App/Lib/Bal/Source/graphics/balFrameBuffer.cpp | belmayze/bal | 710a96d011855fdab4e4b6962a2ba5b6b6b35aae | [
"MIT"
] | null | null | null | App/Lib/Bal/Source/graphics/balFrameBuffer.cpp | belmayze/bal | 710a96d011855fdab4e4b6962a2ba5b6b6b35aae | [
"MIT"
] | null | null | null | App/Lib/Bal/Source/graphics/balFrameBuffer.cpp | belmayze/bal | 710a96d011855fdab4e4b6962a2ba5b6b6b35aae | [
"MIT"
] | null | null | null | /*!
* @file balFrameBuffer.cpp
* @brief
* @author belmayze
*
* Copyright (c) 2020 belmayze. All rights reserved.
*/
// bal
#include <graphics/balFrameBuffer.h>
#include <graphics/balICommandList.h>
#include <graphics/balIRenderTarget.h>
namespace bal {
// ---------------------------------------------------... | 23.804348 | 86 | 0.473059 | belmayze |
5afd53879cece49c330d2bde72e752336b45a0d2 | 1,193 | hpp | C++ | 4.CalculatePairCopulas/include/EigenUtils.hpp | covit2019/analysis_codes | 0c580c51f790723390676eef85422055007e2354 | [
"MIT"
] | null | null | null | 4.CalculatePairCopulas/include/EigenUtils.hpp | covit2019/analysis_codes | 0c580c51f790723390676eef85422055007e2354 | [
"MIT"
] | null | null | null | 4.CalculatePairCopulas/include/EigenUtils.hpp | covit2019/analysis_codes | 0c580c51f790723390676eef85422055007e2354 | [
"MIT"
] | 1 | 2020-04-09T12:59:17.000Z | 2020-04-09T12:59:17.000Z | #pragma once
#include <Eigen/Core>
#include <iterator>
#include <memory>
namespace VineCopulaUtil {
template <class Matrix, class T>
inline void matrix_to_array1d(const Matrix& matrix, T* array1d)
{
const int cols = matrix.size();
const int rows = matrix[0].size();
for (int i = 0 ; i < cols; ++... | 29.825 | 106 | 0.69824 | covit2019 |
5afe45d9104e3db80d2c8db7165e97deef0b88aa | 122 | cpp | C++ | Random.cpp | crkian/SDL-Project | 7f43e55648e95abf0a8357651bae2ce3995af6b7 | [
"libtiff",
"Libpng",
"BSD-3-Clause"
] | null | null | null | Random.cpp | crkian/SDL-Project | 7f43e55648e95abf0a8357651bae2ce3995af6b7 | [
"libtiff",
"Libpng",
"BSD-3-Clause"
] | null | null | null | Random.cpp | crkian/SDL-Project | 7f43e55648e95abf0a8357651bae2ce3995af6b7 | [
"libtiff",
"Libpng",
"BSD-3-Clause"
] | null | null | null | #include "Random.h"
#include <stdlib.h>
int Random::Int(int lower, int upper)
{
return rand()%(upper-lower+1) + lower;
} | 17.428571 | 39 | 0.672131 | crkian |
5afed42cbffba18b37bf424d8ac0cd25fc4115b7 | 2,594 | cpp | C++ | solutions/minimum_height_trees.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | solutions/minimum_height_trees.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | solutions/minimum_height_trees.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | // A tree is an undirected graph in which any two vertices are connected by exactly one path. In other words, any connected graph without simple cycles is a tree.
// Given a tree of n nodes labelled from 0 to n - 1, and an array of n - 1 edges where edges[i] = [ai, bi] indicates that there is an undirected edge betwee... | 27.305263 | 425 | 0.499614 | kmykoh97 |
85006d5960842803a9439532fb42b4e1e01b86ef | 756 | cc | C++ | ja2/Build/TileEngine/PhysMath.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | ja2/Build/TileEngine/PhysMath.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | ja2/Build/TileEngine/PhysMath.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | #include "TileEngine/PhysMath.h"
#include <math.h>
vector_3 VAdd(vector_3 *a, vector_3 *b) {
vector_3 c;
c.x = a->x + b->x;
c.y = a->y + b->y;
c.z = a->z + b->z;
return (c);
}
vector_3 VMultScalar(vector_3 *a, real b) {
vector_3 c;
c.x = a->x * b;
c.y = a->y * b;
c.z = a->z * b;
return (c);
}... | 17.181818 | 57 | 0.52381 | gtrafimenkov |
85067db0c529b7a879f6e153dabc44cb84459e78 | 543 | cpp | C++ | mission/controller/acs/AcsParameters.cpp | levkovigor/freertos-template2 | 7fdac94eb8e83da752d6db6cedb323c4e0ee8203 | [
"Apache-2.0"
] | null | null | null | mission/controller/acs/AcsParameters.cpp | levkovigor/freertos-template2 | 7fdac94eb8e83da752d6db6cedb323c4e0ee8203 | [
"Apache-2.0"
] | null | null | null | mission/controller/acs/AcsParameters.cpp | levkovigor/freertos-template2 | 7fdac94eb8e83da752d6db6cedb323c4e0ee8203 | [
"Apache-2.0"
] | null | null | null | /**
* @author Mikael Senger
*
* About:
*/
#include <fsfw/globalfunctions/constants.h>
#include "AcsParameters.h"
#include <stddef.h>
#include <cmath>
AcsParameters::AcsParameters(uint8_t parameterModuleId) :
parameterModuleId(parameterModuleId) {
}
AcsParameters::~AcsParameters() {
}
ReturnValue_t AcsP... | 21.72 | 85 | 0.747698 | levkovigor |
8506cdcf7beb8e7f46c77af001905144d5550b47 | 1,267 | cpp | C++ | Ver.MO/Client/Client/CBaseObject.cpp | kbm0996/Network-Programming-AsyncselectModel-WINAPI_2DGame | ee2eea45589979859329bf9af4d4abbfc34c5594 | [
"MIT"
] | 2 | 2021-07-09T18:38:47.000Z | 2022-03-28T08:18:33.000Z | Ver.MO/Client/Client/CBaseObject.cpp | kbm0996/Network-Programming-AsyncselectModel-WINAPI_2DGame | ee2eea45589979859329bf9af4d4abbfc34c5594 | [
"MIT"
] | null | null | null | Ver.MO/Client/Client/CBaseObject.cpp | kbm0996/Network-Programming-AsyncselectModel-WINAPI_2DGame | ee2eea45589979859329bf9af4d4abbfc34c5594 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CBaseObject.h"
void CBaseObject::SetPosition(int iX, int iY)
{
_CurX = iX;
_CurY = iY;
}
void CBaseObject::GetPosition(int * OutX, int * OutY)
{
OutX = &_CurX;
OutY = &_CurY;
}
int CBaseObject::GetCurX()
{
return _CurX;
}
int CBaseObject::GetCurY()
{
return _CurY;
}
BOOL CBaseOb... | 14.397727 | 78 | 0.715864 | kbm0996 |
85076ca24b58a1ca9fa06479ddac96f7ef33c4f7 | 1,714 | cpp | C++ | src/BinDecHexOctConverter/main.cpp | RedSpiderMkV/Bin-Dec-Hex-Converter | a3cde288aefed1a96d04685600bba56c3ba5a698 | [
"MIT"
] | 1 | 2018-05-24T06:51:21.000Z | 2018-05-24T06:51:21.000Z | src/BinDecHexOctConverter/main.cpp | RedSpiderMkV/Bin-Dec-Hex-Converter | a3cde288aefed1a96d04685600bba56c3ba5a698 | [
"MIT"
] | 1 | 2017-03-29T10:55:28.000Z | 2017-03-29T11:32:22.000Z | src/BinDecHexOctConverter/main.cpp | RedSpiderMkV/Bin-Dec-Hex-Converter | a3cde288aefed1a96d04685600bba56c3ba5a698 | [
"MIT"
] | 3 | 2018-05-24T06:51:22.000Z | 2020-12-03T08:31:58.000Z | /*
* File: main.cpp
* Author: RedSpiderMkV
*
* Created on 11 November 2015, 21:38
*/
#include <iostream>
#include <string>
#include "Converter/ConverterBase.h"
#include "NumberBaseConverterFactory.h"
using namespace std;
using namespace NumberBaseConverter;
bool argumentCountValid(int argc)
{
if(argc != ... | 27.206349 | 92 | 0.601517 | RedSpiderMkV |
8507a1bde59efa151e24b9085a182a00ecea1127 | 1,492 | cpp | C++ | C++/competitive/LeetCode/unique_paths.cpp | dipakpawar152000/programming | f343857d413c7dcce876c7720c0ffc4e44b63a48 | [
"Apache-2.0"
] | 33 | 2019-10-20T15:28:26.000Z | 2021-12-17T22:34:22.000Z | C++/competitive/LeetCode/unique_paths.cpp | dipakpawar152000/programming | f343857d413c7dcce876c7720c0ffc4e44b63a48 | [
"Apache-2.0"
] | 111 | 2019-05-10T18:52:55.000Z | 2022-02-04T08:53:42.000Z | C++/competitive/LeetCode/unique_paths.cpp | dipakpawar152000/programming | f343857d413c7dcce876c7720c0ffc4e44b63a48 | [
"Apache-2.0"
] | 141 | 2019-10-20T15:00:02.000Z | 2021-03-23T05:51:12.000Z | // Copyright 2019 Aman Mehara
//
// 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 ... | 38.25641 | 78 | 0.652815 | dipakpawar152000 |
850c62f6de6eb2be3bfc98604d408263bdef1ad0 | 19,438 | cpp | C++ | Build/Evolution/Wheeler.cpp | JeremyARussell/Evolution-Game | d3e74a76c13acfbfe27d0fc74305864c1f7df1f2 | [
"Unlicense",
"MIT"
] | 15 | 2016-03-14T15:26:56.000Z | 2021-09-04T15:33:40.000Z | Build/Evolution/Wheeler.cpp | JeremyARussell/Evolution-Game | d3e74a76c13acfbfe27d0fc74305864c1f7df1f2 | [
"Unlicense",
"MIT"
] | 1 | 2016-03-15T10:07:12.000Z | 2021-05-03T08:05:27.000Z | Build/Evolution/Wheeler.cpp | JeremyARussell/Evolution-Game | d3e74a76c13acfbfe27d0fc74305864c1f7df1f2 | [
"Unlicense",
"MIT"
] | 2 | 2016-03-15T02:33:56.000Z | 2016-03-17T01:26:52.000Z | #include "Wheeler.h"
#include "Build\Evolution\collision_enums.h"
#include <stdio.h>
using namespace std;
#define DEGTORAD 0.0174532925199432957f
#define RADTODEG 57.295779513082320876f
//Rendering for the Wheeler
void Wheeler::render() {
b2Vec2 pos = cart->GetPosition();
glPushMatrix();
glTranslate... | 36.814394 | 183 | 0.678774 | JeremyARussell |