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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5489bc4061d37a20d9b00ce63970cd8ac0643d5e | 6,638 | cpp | C++ | gui/shapes/Rect.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | null | null | null | gui/shapes/Rect.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | null | null | null | gui/shapes/Rect.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | 1 | 2020-04-19T23:20:25.000Z | 2020-04-19T23:20:25.000Z | #include "Rect.h"
/// <summary>
/// Non top-left anchor shapes are hard to draw, so there is a absolute representation
/// which is converted from the user defined anchor and location to the equivalent
/// coordinate as if the shape is using a top-left anchor. I tried to convert negative
/// size, but that is too much... | 25.049057 | 95 | 0.679271 | TrapGameStudio |
5492500a037577e2aee33d1952ea23d1b496ae76 | 887 | cpp | C++ | The Adventures of Aladdin/apple.cpp | AkeelMedina22/The-Adventures-of-Aladdin | 35954db21cc5fa16617334f8cfb7c7dac0949a59 | [
"MIT"
] | null | null | null | The Adventures of Aladdin/apple.cpp | AkeelMedina22/The-Adventures-of-Aladdin | 35954db21cc5fa16617334f8cfb7c7dac0949a59 | [
"MIT"
] | null | null | null | The Adventures of Aladdin/apple.cpp | AkeelMedina22/The-Adventures-of-Aladdin | 35954db21cc5fa16617334f8cfb7c7dac0949a59 | [
"MIT"
] | null | null | null | #include "apple.hpp"
#include <iostream>
Apple::Apple(SDL_Texture *asst):assets(asst)
{
mover = {900, 540, 35, 35};
//health =1;
}
void Apple::draw(SDL_Renderer* gRenderer)
{
SDL_RenderCopy(gRenderer, assets, &src, &mover); //crashes at this line
//SDL_RenderCopyEx(gRenderer, assets, &src,... | 19.282609 | 81 | 0.554679 | AkeelMedina22 |
54992dfbb246a4767b290e9cf0168181edfa74d2 | 1,707 | cpp | C++ | main.cpp | Druggist/arkanoid-3d-opengl | df67234723379aa20cdee9337ed7dbcc65f6e442 | [
"MIT"
] | null | null | null | main.cpp | Druggist/arkanoid-3d-opengl | df67234723379aa20cdee9337ed7dbcc65f6e442 | [
"MIT"
] | null | null | null | main.cpp | Druggist/arkanoid-3d-opengl | df67234723379aa20cdee9337ed7dbcc65f6e442 | [
"MIT"
] | null | null | null | #include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "constants.h"
#include "game.h"
Game Arkanoid;
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode){
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) glfwSetWindowShouldClose(window, GL_TRUE);
if (key >= 0 && key < 1024) {
if ... | 21.884615 | 95 | 0.71529 | Druggist |
549da7fd12822d1e9257854c8746462d34e93629 | 518 | cpp | C++ | OXGame/Game Design/StageMenu.cpp | kreuwont/OXGame | 6de134161f2bb67c09c99f52b2ec966c31aed4fd | [
"MIT"
] | null | null | null | OXGame/Game Design/StageMenu.cpp | kreuwont/OXGame | 6de134161f2bb67c09c99f52b2ec966c31aed4fd | [
"MIT"
] | null | null | null | OXGame/Game Design/StageMenu.cpp | kreuwont/OXGame | 6de134161f2bb67c09c99f52b2ec966c31aed4fd | [
"MIT"
] | null | null | null | #include "stdh.h"
#include "Game.h"
#include "..\Interface\UIManager.h"
#include "StageMenu.h"
#include "..\Interface\UIMenu.h"
#include "..\Interface\UIRoomSettings.h"
void StageMenu::Init()
{
UIManager* pUIManager = UIManager::getSingleton();
GameManager* pManager = GameManager::getSingleton();
pUIManager->GetMe... | 22.521739 | 53 | 0.716216 | kreuwont |
549dfff473b7957f7e0036345498c0eeb73e4ed5 | 7,778 | cc | C++ | Root/PruningUtil.cc | liboyang0112/TRExFitter | 052e56162de0c31259e70aeff846dce634a40602 | [
"BSD-2-Clause"
] | null | null | null | Root/PruningUtil.cc | liboyang0112/TRExFitter | 052e56162de0c31259e70aeff846dce634a40602 | [
"BSD-2-Clause"
] | null | null | null | Root/PruningUtil.cc | liboyang0112/TRExFitter | 052e56162de0c31259e70aeff846dce634a40602 | [
"BSD-2-Clause"
] | null | null | null | // Class include
#include "TRExFitter/PruningUtil.h"
#include "TRExFitter/Common.h"
// C++ includes
#include <memory>
// -------------------------------------------------------------------------------------------------
// class PruningUtil
//___________________________________________________________________________... | 36.009259 | 146 | 0.64181 | liboyang0112 |
54a50e92d2883d987d1ef80b8e0155fdf048a0f1 | 928 | hpp | C++ | src/Screen.hpp | Antonito/c8emu | 2997b3dcbf25cba9364c80d3b6d5a85f43b199fe | [
"MIT"
] | null | null | null | src/Screen.hpp | Antonito/c8emu | 2997b3dcbf25cba9364c80d3b6d5a85f43b199fe | [
"MIT"
] | null | null | null | src/Screen.hpp | Antonito/c8emu | 2997b3dcbf25cba9364c80d3b6d5a85f43b199fe | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <array>
namespace c8emu {
class Screen {
public:
Screen(std::uint32_t const width, std::uint32_t const height,
std::array<std::uint8_t, 0x800> const &gfx, std::array<bool, 16> &keys,
std::uint8_t const scaleFactor);
in... | 22.634146 | 80 | 0.672414 | Antonito |
54ab2a327565fb96afa48ba07573431d29e56942 | 2,001 | inl | C++ | Dev/Cpp/src/RendererGodot/Shaders/Model2D.inl | swimming92404/EffekseerForGodot3 | abb890364b2f0f0853b7893b5ec484c525bc5513 | [
"MIT"
] | 89 | 2021-02-17T04:06:54.000Z | 2022-03-31T08:40:26.000Z | Dev/Cpp/src/RendererGodot/Shaders/Model2D.inl | swimming92404/EffekseerForGodot3 | abb890364b2f0f0853b7893b5ec484c525bc5513 | [
"MIT"
] | 9 | 2021-03-14T22:51:24.000Z | 2022-03-29T21:24:14.000Z | Dev/Cpp/src/RendererGodot/Shaders/Model2D.inl | swimming92404/EffekseerForGodot3 | abb890364b2f0f0853b7893b5ec484c525bc5513 | [
"MIT"
] | 9 | 2021-03-05T06:21:34.000Z | 2022-03-10T18:08:20.000Z |
const char code[] =
#if !LIGHTING
R"(
render_mode unshaded;
)"
#endif
R"(
uniform mat4 ViewMatrix;
uniform mat4 ModelMatrix;
uniform vec4 ModelUV;
uniform vec4 ModelColor : hint_color;
)"
#if DISTORTION
R"(
uniform float DistortionIntensity;
uniform sampler2D DistortionTexture : hint_normal;
)"
#elif LIGHTING
R"(
... | 23.541176 | 115 | 0.703648 | swimming92404 |
54b04987412002345d7c15d28c8b4b50d9d50b6b | 13,970 | cpp | C++ | src/shape_signatures/heat_kernel_signature.cpp | josefgraus/self_similiarity | c032daa3009f60fdc8a52c437a07c6e3ba2efe4b | [
"MIT"
] | 1 | 2021-02-25T09:35:14.000Z | 2021-02-25T09:35:14.000Z | src/shape_signatures/heat_kernel_signature.cpp | josefgraus/self_similarity | c032daa3009f60fdc8a52c437a07c6e3ba2efe4b | [
"MIT"
] | null | null | null | src/shape_signatures/heat_kernel_signature.cpp | josefgraus/self_similarity | c032daa3009f60fdc8a52c437a07c6e3ba2efe4b | [
"MIT"
] | 2 | 2021-02-25T09:35:15.000Z | 2021-08-12T13:26:38.000Z | #include "heat_kernel_signature.h"
#include <memory>
#include <exception>
#include <unsupported/Eigen/MatrixFunctions>
#include <cppoptlib/solver/lbfgsbsolver.h>
#include <geometry/patch.h>
#include <matching/threshold.h>
#include <matching/quadratic_bump.h>
#include <utilities/units.h>
#include <matching/constrain... | 29.978541 | 157 | 0.721546 | josefgraus |
2a5b668d11f4ffffb6010aef49e9ba94c4f7ab79 | 1,993 | hh | C++ | src/utils/field_sources/DipoleFieldSource.hh | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 17 | 2018-02-09T23:39:06.000Z | 2022-03-04T16:27:04.000Z | src/utils/field_sources/DipoleFieldSource.hh | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 22 | 2017-05-31T19:40:14.000Z | 2021-09-24T22:07:47.000Z | src/utils/field_sources/DipoleFieldSource.hh | LeoRya/py-orbit | 340b14b6fd041ed8ec2cc25b0821b85742aabe0c | [
"MIT"
] | 37 | 2016-12-08T19:39:35.000Z | 2022-02-11T19:59:34.000Z | //////////////////////////////// -*- C++ -*- //////////////////////////////
//
// FILE NAME
// DipoleFieldSource.hh
//
// AUTHOR
// A. Shishlo
//
// CREATED
// 12/25/2020
//
// DESCRIPTION
// A class is an implementation of ShiftedFieldSource class.
// This class describes dipole magnetic field. It needs ... | 24.304878 | 83 | 0.556949 | LeoRya |
2a615a51da61ae8caa5e034aa95f45fd55c7c526 | 1,130 | cc | C++ | pegasus/ops/parsing_utils_test.cc | akhilbobby/pegasus | 4c00483789a4c5c4db58fef95e3f135940a4b82b | [
"Apache-2.0"
] | 1,270 | 2020-03-25T04:20:42.000Z | 2022-03-31T07:50:34.000Z | pegasus/ops/parsing_utils_test.cc | rohitsroch/pegasus | 1e029a8928e8fdfba6ec7b241f6fbce92e078740 | [
"Apache-2.0"
] | 199 | 2020-04-17T14:06:43.000Z | 2022-03-23T09:57:19.000Z | pegasus/ops/parsing_utils_test.cc | rohitsroch/pegasus | 1e029a8928e8fdfba6ec7b241f6fbce92e078740 | [
"Apache-2.0"
] | 276 | 2020-04-16T10:44:55.000Z | 2022-03-25T01:18:29.000Z | // Copyright 2020 The PEGASUS Authors..
//
// 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 agr... | 31.388889 | 75 | 0.722124 | akhilbobby |
2a615af8a5939932bff1e9fd2eabb884417d67d5 | 2,703 | cc | C++ | big-lalr/test/util-test.cc | hooddanielc/stone | e3bfd674e35a6e0c11a6985fb61cf63accb73a1a | [
"Apache-2.0"
] | null | null | null | big-lalr/test/util-test.cc | hooddanielc/stone | e3bfd674e35a6e0c11a6985fb61cf63accb73a1a | [
"Apache-2.0"
] | null | null | null | big-lalr/test/util-test.cc | hooddanielc/stone | e3bfd674e35a6e0c11a6985fb61cf63accb73a1a | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <lick/lick.h>
#include <big-lalr/util.h>
using namespace biglr;
FIXTURE(get_random_string_result) {
auto str1 = get_random_str(10);
auto str2 = get_random_str(10);
EXPECT_NE(str1, str2);
EXPECT_EQ(str1.size(), str2.size());
EXPECT_EQ(str1.siz... | 25.027778 | 85 | 0.657788 | hooddanielc |
2a61d539199b995b2cceadbe99ece28acdb5b1a3 | 5,716 | hpp | C++ | wz4/wz4frlib/chaosfx.hpp | wzman/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 47 | 2015-03-22T05:58:47.000Z | 2022-03-29T19:13:37.000Z | wz4/wz4frlib/chaosfx.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | null | null | null | wz4/wz4frlib/chaosfx.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 16 | 2015-12-31T08:13:18.000Z | 2021-03-09T02:07:30.000Z | /*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... | 24.744589 | 82 | 0.557208 | wzman |
2a6592ea65d0d5efb94aee12373bf7caec7b72c3 | 2,844 | hpp | C++ | src/libField/Serialization.hpp | CD3/libField | 8aa93e21d3bbc01c38ecc3a6ea31bd4ceb8bbfd6 | [
"MIT"
] | null | null | null | src/libField/Serialization.hpp | CD3/libField | 8aa93e21d3bbc01c38ecc3a6ea31bd4ceb8bbfd6 | [
"MIT"
] | 5 | 2017-06-18T17:05:04.000Z | 2022-02-05T19:14:38.000Z | src/libField/Serialization.hpp | CD3/libField | 8aa93e21d3bbc01c38ecc3a6ea31bd4ceb8bbfd6 | [
"MIT"
] | null | null | null | #ifndef Serialization_hpp
#define Serialization_hpp
/** @file Serialization.hpp
* @brief Provides serialization support to library.
* @author C.D. Clark III
* @date 07/18/17
*/
#if SERIALIZATION_ENABLED
#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
#error \
"Boost member template friends must be disabled in order ... | 29.319588 | 88 | 0.677567 | CD3 |
2a6702b60db14ee7923639fada27f3582d2ed959 | 13,605 | cpp | C++ | dev/Code/Framework/AzToolsFramework/AzToolsFramework/Manipulators/LinearManipulator.cpp | yuriy0/lumberyard | 18ab07fd38492d88c34df2a3e061739d96747e13 | [
"AML"
] | null | null | null | dev/Code/Framework/AzToolsFramework/AzToolsFramework/Manipulators/LinearManipulator.cpp | yuriy0/lumberyard | 18ab07fd38492d88c34df2a3e061739d96747e13 | [
"AML"
] | null | null | null | dev/Code/Framework/AzToolsFramework/AzToolsFramework/Manipulators/LinearManipulator.cpp | yuriy0/lumberyard | 18ab07fd38492d88c34df2a3e061739d96747e13 | [
"AML"
] | null | null | null | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 47.239583 | 133 | 0.722528 | yuriy0 |
2a69bb77e9d7465d497e2d7f879468c60767eaec | 2,854 | cpp | C++ | source/ui/framework/box_element.cpp | ThatNerdyPikachu/Tinfoil | abef7e3648f483368301b43611017c7ffa6f6fc2 | [
"MIT"
] | 9 | 2020-12-24T00:12:29.000Z | 2022-02-22T11:37:45.000Z | source/ui/framework/box_element.cpp | skvaznoi/Tinfoil | abef7e3648f483368301b43611017c7ffa6f6fc2 | [
"MIT"
] | null | null | null | source/ui/framework/box_element.cpp | skvaznoi/Tinfoil | abef7e3648f483368301b43611017c7ffa6f6fc2 | [
"MIT"
] | 1 | 2020-07-20T01:30:03.000Z | 2020-07-20T01:30:03.000Z | #include "ui/framework/box_element.hpp"
#include "util/graphics_util.hpp"
#include "error.hpp"
namespace tin::ui
{
BoxElement::BoxElement(u32 width, u32 height) :
Element(width, height)
{
}
void BoxElement::Draw(Canvas canvas, Position position)
{
// There is nothing to draw if t... | 31.362637 | 151 | 0.555011 | ThatNerdyPikachu |
2a6b274a5bd14e6af1a96918d94d45122af4d020 | 1,124 | cpp | C++ | Striver SDE Sheet/Day - 19 (Binary Tree)/Construct BTree from Inorder and Preorder(Hard).cpp | HariAcidReign/Striver-SDE-Solutions | 80757b212abe479f3975b890398a8d877ebfd41e | [
"MIT"
] | 25 | 2021-08-17T04:04:41.000Z | 2022-03-16T07:43:30.000Z | Striver SDE Sheet/Day - 19 (Binary Tree)/Construct BTree from Inorder and Preorder(Hard).cpp | hashwanthalla/Striver-Sheets-Resources | 80757b212abe479f3975b890398a8d877ebfd41e | [
"MIT"
] | null | null | null | Striver SDE Sheet/Day - 19 (Binary Tree)/Construct BTree from Inorder and Preorder(Hard).cpp | hashwanthalla/Striver-Sheets-Resources | 80757b212abe479f3975b890398a8d877ebfd41e | [
"MIT"
] | 8 | 2021-08-18T02:02:23.000Z | 2022-02-11T06:05:07.000Z | // Hari
class Solution {
public:
int idx = 0;
unordered_map<int, int> m;
TreeNode* helper(vector<int>preorder, vector<int>inorder, int start, int end){
// traverse preorder
if(start > end) return nullptr; // base case
TreeNode* curr = new TreeNode(preorder[idx++]);
if(s... | 35.125 | 84 | 0.580071 | HariAcidReign |
2a722c31cdb4c459fc0986aa3c8189d900650a90 | 86,907 | cpp | C++ | Engine/source/interior/interior.cpp | baktubak/Torque3D | c26235c5b81ed55b231af86254d740ce17540d25 | [
"MIT"
] | 6 | 2015-06-01T15:44:43.000Z | 2021-01-07T06:50:21.000Z | Engine/source/interior/interior.cpp | timmgt/Torque3D | ebc6c9cf3a2c7642b2cd30be3726810a302c3deb | [
"Unlicense"
] | null | null | null | Engine/source/interior/interior.cpp | timmgt/Torque3D | ebc6c9cf3a2c7642b2cd30be3726810a302c3deb | [
"Unlicense"
] | 10 | 2015-01-05T15:58:31.000Z | 2021-11-20T14:05:46.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | 32.844671 | 130 | 0.558735 | baktubak |
2a73a0677563f7662cc6c10b8cd50885ef91645b | 51 | hpp | C++ | src/boost_type_traits_has_pre_increment.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_type_traits_has_pre_increment.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_type_traits_has_pre_increment.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/type_traits/has_pre_increment.hpp>
| 25.5 | 50 | 0.843137 | miathedev |
2a73d8f6d62a04bb23f4877e543e931268253c59 | 1,472 | cc | C++ | backend/place_test.cc | zyw199515/hive-cpp | b4b9f8d9446476f94ffb3ee0fbaec19f232c2879 | [
"MIT"
] | null | null | null | backend/place_test.cc | zyw199515/hive-cpp | b4b9f8d9446476f94ffb3ee0fbaec19f232c2879 | [
"MIT"
] | null | null | null | backend/place_test.cc | zyw199515/hive-cpp | b4b9f8d9446476f94ffb3ee0fbaec19f232c2879 | [
"MIT"
] | null | null | null |
#include "backend/place.h"
#include "glog/logging.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
using namespace hive;
// Test samples are constructed according to official ruling book examples.
TEST(PlaceTest, GetPlacePieceTypes) {
HiveState state;
state.active_player = Side::kBlack;
state.black_piece_... | 38.736842 | 100 | 0.685462 | zyw199515 |
2a74c014ed2e2775784522dbce71e21211697aab | 4,787 | cpp | C++ | ShareLib/DBCmd.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | ShareLib/DBCmd.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | ShareLib/DBCmd.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | 1 | 2022-01-17T09:34:39.000Z | 2022-01-17T09:34:39.000Z | #include <boost/format.hpp>
#include "bnf.h"
#include "logsystem.h"
#include "DBCmd.h"
#include "PrintExcuteInfo.h"
CDBCmd::CDBCmd()
: m_dbconn(NULL)
, m_nrecords(0)
, m_res(NULL)
, m_row(NULL)
, m_fieldinfo(NULL)
, m_nfields(0)
{
}
CDBCmd::CDBCmd(MYSQL* mysql)
: m_dbconn(mysql)
, m_nrecords(0)
, m_res(NULL)... | 15.956667 | 121 | 0.633382 | openlastchaos |
2a76b7d6750f1cdf37b9f4d40dd7ed485a45f9d7 | 3,464 | cpp | C++ | src/Profiling/denoise-profiling/src/denoise_multiple.cpp | sayandipde/approx_ibc | b8878ed24accab2a32a51cac9d0cdc6f61a49e75 | [
"Apache-2.0"
] | 1 | 2021-01-12T07:33:15.000Z | 2021-01-12T07:33:15.000Z | src/Profiling/denoise-profiling/src/denoise_multiple.cpp | sayandipde/approx_ibc | b8878ed24accab2a32a51cac9d0cdc6f61a49e75 | [
"Apache-2.0"
] | null | null | null | src/Profiling/denoise-profiling/src/denoise_multiple.cpp | sayandipde/approx_ibc | b8878ed24accab2a32a51cac9d0cdc6f61a49e75 | [
"Apache-2.0"
] | 3 | 2020-09-29T22:43:07.000Z | 2021-01-23T08:08:41.000Z | /*
* Copyright (c) 2020 sayandipde
* Eindhoven University of Technology
* Eindhoven, The Netherlands
*
* Name : image_signal_processing.cpp
*
* Authors : Sayandip De (sayandip.de@tue.nl)
* Sajid Mohamed (s.mohamed@tue.nl)
*
* Date : March 26, 2020
*
* Function ... | 28.393443 | 130 | 0.626155 | sayandipde |
2a773aeadc27cee30e75bd0534fa1903ce803f61 | 1,385 | cpp | C++ | 1311-F.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | 1311-F.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | 1 | 2020-02-24T19:45:57.000Z | 2020-02-24T19:45:57.000Z | 1311-F.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null |
// . . . . . . . . Not Completed
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// Author : Ankit Raj
// Problem Name : Moving Points
// Problem Link : https://codeforces.com/contest/1311/problem/F
// * * * ... | 23.083333 | 90 | 0.46426 | ankiiitraj |
2a7df292397a18f6003ec9edf48bc85571e4bb2a | 140 | cpp | C++ | Projects/Sample/source/main.cpp | Nohzmi/Reflectpp | 35a340f277ef374c9f9aeef89849918fdf7c2848 | [
"BSD-3-Clause"
] | 3 | 2021-02-16T23:01:49.000Z | 2021-03-10T16:13:55.000Z | Projects/Sample/source/main.cpp | Nohzmi/Reflectpp | 35a340f277ef374c9f9aeef89849918fdf7c2848 | [
"BSD-3-Clause"
] | null | null | null | Projects/Sample/source/main.cpp | Nohzmi/Reflectpp | 35a340f277ef374c9f9aeef89849918fdf7c2848 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2020, Nohzmi. All rights reserved.
#include "window.h"
int main()
{
Window app;
app.Update();
return EXIT_SUCCESS;
}
| 11.666667 | 51 | 0.671429 | Nohzmi |
2a8a9376f3a8e3721e2078ce814b7d00aae01c8f | 43,033 | cpp | C++ | wfs/stored_queries/StoredObsQueryHandler.cpp | nakkim/smartmet-plugin-wfs | 851334dd3be1a24b9708f66696f088fdc857a999 | [
"MIT"
] | null | null | null | wfs/stored_queries/StoredObsQueryHandler.cpp | nakkim/smartmet-plugin-wfs | 851334dd3be1a24b9708f66696f088fdc857a999 | [
"MIT"
] | null | null | null | wfs/stored_queries/StoredObsQueryHandler.cpp | nakkim/smartmet-plugin-wfs | 851334dd3be1a24b9708f66696f088fdc857a999 | [
"MIT"
] | null | null | null | #include "stored_queries/StoredObsQueryHandler.h"
#include "FeatureID.h"
#include "StoredQueryHandlerFactoryDef.h"
#include "WfsConst.h"
#include "WfsConvenience.h"
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include <boost/lambda/lambda.hpp>
#include <macgyver/Exception.h>
#include <macgyver/Str... | 37.881162 | 147 | 0.615249 | nakkim |
2a8e5b39811a76bd7f064d076522da7a82c909b7 | 1,538 | cpp | C++ | GeeksForGeeks/C Plus Plus/Binary_Tree_to_BST.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 4 | 2021-06-19T14:15:34.000Z | 2021-06-21T13:53:53.000Z | GeeksForGeeks/C Plus Plus/Binary_Tree_to_BST.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 2 | 2021-07-02T12:41:06.000Z | 2021-07-12T09:37:50.000Z | GeeksForGeeks/C Plus Plus/Binary_Tree_to_BST.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 3 | 2021-06-19T15:19:20.000Z | 2021-07-02T17:24:51.000Z | /*
Problem Statement:
-----------------
Given a Binary Tree, convert it to Binary Search Tree in such a way that keeps the original structure of Binary Tree intact.
Example 1:
---------
Input:
1
/ \
2 3
Output: 1 2 3
Example 2:
----------
Input:
1
/ \
2 3
/ ... | 19.717949 | 155 | 0.529909 | ankit-sr |
2a8e675565d5df500801d12f84ecc49f43a47f54 | 798 | cpp | C++ | leetcode/medium/918. Maximum Sum Circular Subarray.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | 7 | 2019-08-05T14:49:41.000Z | 2022-03-13T07:10:51.000Z | leetcode/medium/918. Maximum Sum Circular Subarray.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | null | null | null | leetcode/medium/918. Maximum Sum Circular Subarray.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | 4 | 2021-01-04T03:45:22.000Z | 2021-10-06T06:11:00.000Z | /**
* problem : https://leetcode.com/problems/maximum-sum-circular-subarray/
* time comlexity : O(N)
*/
class Solution {
public:
int maxSubarraySumCircular(vector<int>& A) {
int ans = A[0];
int maxSub = A[0];
int minSub = A[0];
int sum = 0;
int sumMax =... | 24.9375 | 73 | 0.448622 | Jeongseo21 |
2a8f1c571837b15f19fc0a4b761e789d2d16f7ce | 497 | cpp | C++ | Project/expense.cpp | aczapi/BudgetApp | 63cb171d1384e7ca12542632da7ce9b3ae46d21b | [
"Unlicense"
] | null | null | null | Project/expense.cpp | aczapi/BudgetApp | 63cb171d1384e7ca12542632da7ce9b3ae46d21b | [
"Unlicense"
] | null | null | null | Project/expense.cpp | aczapi/BudgetApp | 63cb171d1384e7ca12542632da7ce9b3ae46d21b | [
"Unlicense"
] | null | null | null | #include "expense.hpp"
void Expense::setUserId(int userId) {
if (userId > 0)
userId_ = userId;
}
void Expense::setExpenseId(int expenseId) {
if (expenseId > 0)
expenseId_ = expenseId;
}
void Expense::setDate(std::string date) {
date_ = date;
}
void Expense::setItem(std::string item) {
i... | 20.708333 | 43 | 0.645875 | aczapi |
2a921f050f9bc5f64e3f358c2ce808b5042ec8a6 | 188 | cxx | C++ | src/lib/models/model/test/tst_model.cxx | johanneslochmann/cppprojecttemplate | 28f1bd4dd1bc414ed38c8a739e33974f65891f83 | [
"BSD-3-Clause"
] | null | null | null | src/lib/models/model/test/tst_model.cxx | johanneslochmann/cppprojecttemplate | 28f1bd4dd1bc414ed38c8a739e33974f65891f83 | [
"BSD-3-Clause"
] | null | null | null | src/lib/models/model/test/tst_model.cxx | johanneslochmann/cppprojecttemplate | 28f1bd4dd1bc414ed38c8a739e33974f65891f83 | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include <models/model/model.hxx>
PRAM_NS_BEGIN
MODEL_NAMESPACE_BEGIN
TEST(tst_model, testCtor) {
Model m;
(void) m;
}
MODEL_NAMESPACE_END
PRAM_NS_END
| 12.533333 | 33 | 0.744681 | johanneslochmann |
2aa1957907c190a5d7921edb2a90a8e29f76fab4 | 3,121 | hpp | C++ | modules/core/include/core/shader_codex.hpp | Wmbat/vermillon | 3dafc3d17a3225d32c62a3169b6b3dda32182b88 | [
"MIT"
] | 1 | 2021-04-07T03:02:47.000Z | 2021-04-07T03:02:47.000Z | modules/core/include/core/shader_codex.hpp | Wmbat/vermillon | 3dafc3d17a3225d32c62a3169b6b3dda32182b88 | [
"MIT"
] | null | null | null | modules/core/include/core/shader_codex.hpp | Wmbat/vermillon | 3dafc3d17a3225d32c62a3169b6b3dda32182b88 | [
"MIT"
] | null | null | null | #pragma once
#include <core/core.hpp>
#include <util/containers/dense_hash_map.hpp>
#include <vkn/shader.hpp>
#include <glslang/Public/ShaderLang.h>
namespace core
{
enum class shader_codex_error
{
failed_to_open_file,
unknow_shader_type,
failed_to_preprocess_shader,
failed_to_parse_s... | 34.296703 | 98 | 0.655239 | Wmbat |
2aa433a4bd1fcf9dace87958b7f15ebe6d244241 | 747 | cpp | C++ | program/OccurrencesCounter.cpp | wojtkolos/huffman_tree_generator | 1679ead8c2b180024a782b1d027beffac7a95f64 | [
"Apache-2.0"
] | null | null | null | program/OccurrencesCounter.cpp | wojtkolos/huffman_tree_generator | 1679ead8c2b180024a782b1d027beffac7a95f64 | [
"Apache-2.0"
] | null | null | null | program/OccurrencesCounter.cpp | wojtkolos/huffman_tree_generator | 1679ead8c2b180024a782b1d027beffac7a95f64 | [
"Apache-2.0"
] | null | null | null | #include "OccurrencesCounter.h"
OccurrencesCounter::OccurrencesCounter(std::vector<std::string> inp) : vec(inp) {}
void OccurrencesCounter::calculate() {
for (auto i = 0; i < vec.size(); ++i) {
for (auto el : vec[i])
{
if ((el >= 65 && el >= 90) or (el >= 97 && el <= 122))
... | 28.730769 | 85 | 0.487282 | wojtkolos |
2aa725fe58dfa44e0477431e0c02ee98c2f79c17 | 8,287 | cpp | C++ | source/binding/Research.cpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | source/binding/Research.cpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | source/binding/Research.cpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | /*
** Research.cpp for bomberman in /home/care_j/work/bomberman/source/binding
**
** Made by care_j
** Login <care_j@epitech.net>
**
*/
#include "Research.hpp"
bbman::Research::Research(void)
{
this->_trueA.addBlockType(bbman::ItemID::II_BLOCK_INBRKABLE);
this->_trueA.addBlockType(bbman::ItemID::II_BLOCK_BRKABL... | 30.579336 | 165 | 0.60975 | Stephouuu |
2aa980fad1466bdf6478d16d9bcfc6e13b9bd41a | 692 | hpp | C++ | sprout/math/signbit.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/math/signbit.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/math/signbit.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_MATH_SIGNBIT_HPP
#define SPROUT_MATH_SIGNBIT_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/math/detail/config.hpp>
#include <sprout/type_traits/enabler_if.hpp>
namespace sprout {
namespace math {
namespace detail {
template<
typename FloatType,
type... | 23.862069 | 98 | 0.710983 | osyo-manga |
2aaa5ac4465ddd0f6c9761459157b8d640b29a0f | 1,581 | cpp | C++ | stack07.cpp | LuluFighting/DataStructAndAlgorithm | af8fe59a0bcf41c48034182de4e00bb91f9e411a | [
"MIT"
] | 1 | 2020-03-11T16:02:41.000Z | 2020-03-11T16:02:41.000Z | stack07.cpp | LuluFighting/DataStructAndAlgorithm | af8fe59a0bcf41c48034182de4e00bb91f9e411a | [
"MIT"
] | null | null | null | stack07.cpp | LuluFighting/DataStructAndAlgorithm | af8fe59a0bcf41c48034182de4e00bb91f9e411a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using std::vector;
//数组栈
class Stack{
public:
Stack(int size)
:_size(size),_index(0),_items(new int[size]())
{
std::cout << "having create a stack " << std::endl;
}
bool push(int item){
if(_index == _size){
return false;
}
... | 20.802632 | 60 | 0.510436 | LuluFighting |
2aab6c86af0b918717ca52bc87acc7d31ac73840 | 1,076 | hpp | C++ | src/rfx/compiler/Signal.hpp | JKot-Coder/RedRaven | b0f9a679c39e0d87bee60c7f4f202ca1a795eaa9 | [
"BSD-3-Clause"
] | null | null | null | src/rfx/compiler/Signal.hpp | JKot-Coder/RedRaven | b0f9a679c39e0d87bee60c7f4f202ca1a795eaa9 | [
"BSD-3-Clause"
] | null | null | null | src/rfx/compiler/Signal.hpp | JKot-Coder/RedRaven | b0f9a679c39e0d87bee60c7f4f202ca1a795eaa9 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
namespace RR
{
namespace Rfx
{
enum class SignalType
{
Unexpected,
Unimplemented,
AssertFailure,
Unreachable,
InvalidOperation,
AbortCompilation,
};
void handleSignal(SignalType type, const U8S... | 27.589744 | 68 | 0.567844 | JKot-Coder |
2ab2712909da74b138ba8aca26a880f009c4a7ff | 3,344 | cpp | C++ | src/plugins/azoth/plugins/chathistory/storagethread.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/azoth/plugins/chathistory/storagethread.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/azoth/plugins/chathistory/storagethread.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 35.574468 | 89 | 0.686005 | MellonQ |
2ab709282cd25bc805e687ba40a60e78c8d669da | 111 | cpp | C++ | Project2/test.cpp | dss875914213/dll_demo | 31efea0135f39d9592b5769f6c09e7bb5e8a101e | [
"MIT"
] | null | null | null | Project2/test.cpp | dss875914213/dll_demo | 31efea0135f39d9592b5769f6c09e7bb5e8a101e | [
"MIT"
] | null | null | null | Project2/test.cpp | dss875914213/dll_demo | 31efea0135f39d9592b5769f6c09e7bb5e8a101e | [
"MIT"
] | null | null | null | #include "test.h"
int Add(int a, int b)
{
return a + b;
}
int Min(int a, int b)
{
return a > b ? b : a;
}
| 8.538462 | 22 | 0.522523 | dss875914213 |
2abeb5a7e5e840da07615aa4d784fdd1aa0253ea | 6,070 | cc | C++ | inet/src/inet/applications/tcpapp/TcpBasicClientApp.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/applications/tcpapp/TcpBasicClientApp.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/applications/tcpapp/TcpBasicClientApp.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T13:32:40.000Z | 2021-07-02T13:32:40.000Z | //
// Copyright (C) 2004 Andras Varga
//
// This program 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
// of the License, or (at your option) any later version.
//
// This program i... | 29.609756 | 143 | 0.667381 | ntanetani |
2ac4e38de2a487099d74701a368830a7c975d0cd | 9,439 | cpp | C++ | ICC_interface/ICC_interface/Control.cpp | ArminPCM/GolfBall-Logo-Recognition | b03896c5b0d0f54dbdd06896b741509968ba02f3 | [
"Unlicense"
] | null | null | null | ICC_interface/ICC_interface/Control.cpp | ArminPCM/GolfBall-Logo-Recognition | b03896c5b0d0f54dbdd06896b741509968ba02f3 | [
"Unlicense"
] | null | null | null | ICC_interface/ICC_interface/Control.cpp | ArminPCM/GolfBall-Logo-Recognition | b03896c5b0d0f54dbdd06896b741509968ba02f3 | [
"Unlicense"
] | null | null | null | #include "stdafx.h"
#include "ControlWindow.h"
#include "OptionsWindow.h"
#include "StatisticsWindow.h"
#include "SnapshotWindow.h"
namespace ICC_interface
{
const wchar_t* settingFile = L"settings.bin";
namespace golfTransmissionConsts
{
const int maximgwidth = 2048;
const int maximgheight = 1088;
... | 30.253205 | 154 | 0.687679 | ArminPCM |
2ac81f8158fc864fde09d0c5b551d1c5b071934b | 2,703 | hpp | C++ | include/gSparse/ER/Policy/ExactERJacobiCG.hpp | As-12/gSparse | 66c7d60544565d4bdafbffa0ba08d62db620f9d1 | [
"MIT"
] | 6 | 2018-09-14T09:38:12.000Z | 2021-12-11T13:03:55.000Z | include/gSparse/ER/Policy/ExactERJacobiCG.hpp | As-12/gSparse | 66c7d60544565d4bdafbffa0ba08d62db620f9d1 | [
"MIT"
] | null | null | null | include/gSparse/ER/Policy/ExactERJacobiCG.hpp | As-12/gSparse | 66c7d60544565d4bdafbffa0ba08d62db620f9d1 | [
"MIT"
] | 1 | 2021-12-11T13:03:58.000Z | 2021-12-11T13:03:58.000Z | // Copyright (C) 2018 Thanaphon Chavengsaksongkram <as12production@gmail.com>, He Sun <he.sun@ed.ac.uk>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef GSPARSE_ER_POLICY_EXACTERJACOBICG_HPP
#define GSPARSE_ER_POLICY_EXACTERJACOBICG_HPP
... | 45.05 | 146 | 0.559378 | As-12 |
2acbc4abdd1548b347448e08f07c19af376088a6 | 2,707 | cpp | C++ | avs/vis_avs/g_avi.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 18 | 2020-07-30T11:55:23.000Z | 2022-02-25T02:39:15.000Z | avs/vis_avs/g_avi.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 34 | 2021-01-13T02:02:12.000Z | 2022-03-23T12:09:55.000Z | avs/vis_avs/g_avi.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 3 | 2021-03-18T12:53:58.000Z | 2021-10-02T20:24:41.000Z | #include "g__lib.h"
#include "g__defs.h"
#include "c_avi.h"
#include "resource.h"
#include <windows.h>
#include <commctrl.h>
static void EnableWindows(HWND hwndDlg, C_THISCLASS* config)
{
EnableWindow(GetDlgItem(hwndDlg,IDC_PERSIST),config->adapt);
EnableWindow(GetDlgItem(hwndDlg,IDC_PERSIST_TITLE),config->adapt);
... | 38.671429 | 100 | 0.735131 | semiessessi |
2aceb1a1fbc5a319db71632b3e09e6478202f42c | 406 | cpp | C++ | C++/Tutorial/30Days/14.cpp | gietal/HackerRank | 66e88359022d02cf14a9cef5fc1d76946bb59c7d | [
"MIT"
] | null | null | null | C++/Tutorial/30Days/14.cpp | gietal/HackerRank | 66e88359022d02cf14a9cef5fc1d76946bb59c7d | [
"MIT"
] | null | null | null | C++/Tutorial/30Days/14.cpp | gietal/HackerRank | 66e88359022d02cf14a9cef5fc1d76946bb59c7d | [
"MIT"
] | null | null | null | // Add your code here
Difference(const vector<int> e)
: elements(e) {
}
void computeDifference() {
maximumDifference = 0;
for(int i = 0; i < elements.size() - 1; ++i) {
for(int j = 0; j < elements.size(); ++j) {
maximumDifference = ma... | 29 | 92 | 0.470443 | gietal |
2ad0376b3ccd61f96c4d54acbefaec10122e35a2 | 3,043 | cpp | C++ | 13_greedy_prob/7_weight_job_sch.cpp | ShyamNandanKumar/coding-ninja2 | a43a21575342261e573f71f7d8eff0572f075a17 | [
"MIT"
] | 11 | 2021-01-02T10:07:17.000Z | 2022-03-16T00:18:06.000Z | 13_greedy_prob/7_weight_job_sch.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | null | null | null | 13_greedy_prob/7_weight_job_sch.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | 5 | 2021-05-19T11:17:18.000Z | 2021-09-16T06:23:31.000Z | /*
You are given N jobs where every job is represented as:
1.Start Time
2.Finish Time
3.Profit Associated
Find the maximum profit subset of jobs such that no two jobs in the subset overlap.
Input
The first line of input contains one integer denoting N.
Next N lines contains three space separated integers denoting the s... | 24.739837 | 134 | 0.546172 | ShyamNandanKumar |
2ad17dd8d904775f1e7296b4eb519658aa26bcc4 | 5,242 | cpp | C++ | GameEngine/TestUserActor.cpp | csyonghe/GameEngine | 1ac8174714a3a52e22a935f573121dd1ab0fa546 | [
"MIT"
] | 60 | 2016-12-02T17:12:51.000Z | 2022-01-23T09:23:19.000Z | GameEngine/TestUserActor.cpp | csyonghe/GameEngine | 1ac8174714a3a52e22a935f573121dd1ab0fa546 | [
"MIT"
] | 5 | 2016-11-14T21:18:57.000Z | 2019-07-12T04:01:12.000Z | GameEngine/TestUserActor.cpp | csyonghe/GameEngine | 1ac8174714a3a52e22a935f573121dd1ab0fa546 | [
"MIT"
] | 11 | 2016-11-14T21:11:46.000Z | 2020-09-10T07:29:01.000Z | #ifndef TEST_USER_ACTOR_H
#define TEST_USER_ACTOR_H
#include "Engine.h"
#include "Level.h"
#include "CoreLib/LibUI/LibUI.h"
#include "SystemWindow.h"
#include "RendererService.h"
using namespace GraphicsUI;
using namespace GameEngine;
using namespace VectorMath;
class TestUserActor : public Actor
{
private:
RefPtr<... | 35.90411 | 282 | 0.585464 | csyonghe |
2ada44ee5b1e2e14e1a78d03268b78fcd27ce895 | 3,454 | hpp | C++ | libcaf_core/caf/make_source_result.hpp | v2nero/actor-framework | c2f811809143d32c598471a20363238b0882a761 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-07-16T19:01:52.000Z | 2020-07-16T19:01:52.000Z | libcaf_core/caf/make_source_result.hpp | Boubou818/actor-framework | da90ef78b26da5d225f039072e616da415c48494 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/make_source_result.hpp | Boubou818/actor-framework | da90ef78b26da5d225f039072e616da415c48494 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-02-19T11:25:15.000Z | 2021-02-19T11:25:15.000Z | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 36.357895 | 80 | 0.505501 | v2nero |
2adae3809de644fd7832ebcbc335df751e1be204 | 585 | cpp | C++ | voj/contest/418207/F.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2020-07-22T16:54:07.000Z | 2020-07-22T16:54:07.000Z | voj/contest/418207/F.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2018-05-12T12:53:06.000Z | 2018-05-12T12:53:06.000Z | voj/contest/418207/F.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | null | null | null | #include <iostream>
long long F (long long n) {
if (n == 0) {
return 0;
} else if (n % 10) {
return n%10;
} else {
return F(n/10);
}
}
long long ans;
void S(long long l, long long r) {
if (r - 1 < 9) {
for (int i = 1; i <= r; ++i) {
ans += F(i);
}
return ;
}
while (l % 10) {
ans += F(l);
++l... | 11.938776 | 34 | 0.432479 | TheBadZhang |
2adfd40c1074f0fca553eb7419662220dedd05c3 | 13,330 | cpp | C++ | src/Services/RenderService/RenderTextureService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Services/RenderService/RenderTextureService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Services/RenderService/RenderTextureService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "RenderTextureService.h"
#include "Interface/WatchdogServiceInterface.h"
#include "Interface/PrefetcherServiceInterface.h"
#include "Interface/GraveyardServiceInterface.h"
#include "Interface/ConfigServiceInterface.h"
#include "Interface/CodecServiceInterface.h"
#include "Interface/EnumeratorServiceInterface.... | 37.027778 | 238 | 0.595874 | irov |
2aebde647e6537300825004bf2fe34d60977bb39 | 2,054 | cpp | C++ | qt/pubnub.cpp | sghiocel/pubnub-c | 149e536e4e1e973a717b324034aa08df9b1bc3a8 | [
"MIT"
] | 47 | 2015-07-09T14:14:32.000Z | 2022-03-03T21:47:16.000Z | qt/pubnub.cpp | parasyte/c-core | 943b39284837ea5db65eb2445fdc27a60753b183 | [
"MIT"
] | 52 | 2015-11-03T16:59:24.000Z | 2022-03-09T15:52:37.000Z | qt/pubnub.cpp | parasyte/c-core | 943b39284837ea5db65eb2445fdc27a60753b183 | [
"MIT"
] | 69 | 2015-08-19T11:32:27.000Z | 2022-03-31T16:20:13.000Z | #include "pubnub.hpp"
#include <QCoreApplication>
extern "C" {
#include "pubnub_helper.h"
}
using namespace pubnub;
futres::futres(context &ctx, pubnub_res initial) :
d_ctx(ctx), d_result(initial), d_triggered(false), d_mutex(QMutex::Recursive)
{
connect(&ctx.d_pbqt, SIGNAL(outcome(pubnub_res)), this, SLOT... | 21.175258 | 92 | 0.675755 | sghiocel |
2aef9b7bd6d40b9b372e903996061fdde1d8dae3 | 6,222 | cpp | C++ | System.Core/src/Switch/Microsoft/Win32/RegistryKeyAll.cpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 4 | 2021-10-14T01:43:00.000Z | 2022-03-13T02:16:08.000Z | System.Core/src/Switch/Microsoft/Win32/RegistryKeyAll.cpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | null | null | null | System.Core/src/Switch/Microsoft/Win32/RegistryKeyAll.cpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 2 | 2022-03-13T02:16:06.000Z | 2022-03-14T14:32:57.000Z | #if defined(__linux__) || defined(__APPLE__)
#include "../../../../include/Switch/Microsoft/Win32/Registry.hpp"
#include "../../../../include/Switch/Microsoft/Win32/RegistryKey.hpp"
#include "../../../../include/Switch/System/IO/Directory.hpp"
#include "../../../../include/Switch/System/IO/DirectoryInfo.hpp"
#include ... | 34.186813 | 170 | 0.701221 | kkptm |
2af3e2a3cdaa268634481eb382b94b07ee1df8bc | 12,231 | cpp | C++ | prefetcher/prefetcher.cpp | compor/prodigy_compiler_support_public | 014885eb9466076770e76b8c8b1fbe31735b4104 | [
"BSD-3-Clause"
] | 1 | 2021-12-30T10:48:08.000Z | 2021-12-30T10:48:08.000Z | prefetcher/prefetcher.cpp | compor/prodigy_compiler_support_public | 014885eb9466076770e76b8c8b1fbe31735b4104 | [
"BSD-3-Clause"
] | null | null | null | prefetcher/prefetcher.cpp | compor/prodigy_compiler_support_public | 014885eb9466076770e76b8c8b1fbe31735b4104 | [
"BSD-3-Clause"
] | 1 | 2021-12-30T10:47:58.000Z | 2021-12-30T10:47:58.000Z | /*
BSD 3-Clause License
Copyright (c) 2021, Kuba Kaszyk and Chris Vasiladiotis
All rights reserved.
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,... | 29.831707 | 239 | 0.678358 | compor |
2af4c8ead66fb0806b58c9656ba5b9bba909a8a4 | 3,875 | cpp | C++ | fon9/PkCont_UT.cpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 21 | 2019-01-29T14:41:46.000Z | 2022-03-11T00:22:56.000Z | fon9/PkCont_UT.cpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | null | null | null | fon9/PkCont_UT.cpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 9 | 2019-01-27T14:19:33.000Z | 2022-03-11T06:18:24.000Z | // \file fon9/PkCont_UT.cpp
// \author fonwinz@gmail.com
#define _CRT_SECURE_NO_WARNINGS
#include "fon9/PkCont.hpp"
#include "fon9/TestTools.hpp"
#include "fon9/Endian.hpp"
#include "fon9/CountDownLatch.hpp"
struct Feeder : public fon9::PkContFeeder {
fon9_NON_COPY_NON_MOVE(Feeder);
using base = fon9::PkContFee... | 34.292035 | 97 | 0.592774 | fonwin |
2af998d639656d149eaf69afaa59f19811f3116a | 702 | cpp | C++ | src/obsolete/udev.cpp | pdumais/dhas | 424212d4766c02f5df9e363ddb8ad2c295ed49d8 | [
"MIT"
] | 12 | 2015-09-09T07:05:27.000Z | 2020-12-27T12:52:28.000Z | src/obsolete/udev.cpp | pdumais/dhas | 424212d4766c02f5df9e363ddb8ad2c295ed49d8 | [
"MIT"
] | null | null | null | src/obsolete/udev.cpp | pdumais/dhas | 424212d4766c02f5df9e363ddb8ad2c295ed49d8 | [
"MIT"
] | 2 | 2016-10-23T05:23:20.000Z | 2020-09-17T22:01:33.000Z | #include "DHASLogging.h"
#include <stdio.h>
#include <string>
#include <sstream>
#include "config.h"
#include "UDev.h"
#include <string.h>
unsigned long getMemUsage()
{
char buf[1024];
FILE* f = fopen("/proc/self/status","r");
while (fgets(buf,1024,f))
{
if (!strncmp(buf,"VmSize:",7))
... | 18.972973 | 57 | 0.534188 | pdumais |
2afa230a6982415423598f47a93dfd858fb2510d | 774 | cpp | C++ | src/blinktask.cpp | XMrVertigoX/DualLampSwitch | c86a0bd38cc4e585de24cc2d8494067468fc4483 | [
"MIT"
] | null | null | null | src/blinktask.cpp | XMrVertigoX/DualLampSwitch | c86a0bd38cc4e585de24cc2d8494067468fc4483 | [
"MIT"
] | null | null | null | src/blinktask.cpp | XMrVertigoX/DualLampSwitch | c86a0bd38cc4e585de24cc2d8494067468fc4483 | [
"MIT"
] | null | null | null | #include <em_cmu.h>
#include <em_gpio.h>
#include <FreeRTOS.h>
#include <semphr.h>
#include <task.h>
#include "blinktask.hpp"
using namespace xXx;
BlinkTask::BlinkTask(uint16_t stack, UBaseType_t priority)
: ArduinoTask(stack, priority), _LastWakeTime(0) {}
BlinkTask::~BlinkTask() {}
void BlinkTask::setup() {... | 22.114286 | 63 | 0.728682 | XMrVertigoX |
2afa4086cdaae5e0aa81c05a98e43cfd82547e84 | 774 | cpp | C++ | UVA10924.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 17 | 2015-12-08T18:50:03.000Z | 2022-03-16T01:23:20.000Z | UVA10924.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | null | null | null | UVA10924.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 6 | 2017-04-04T18:16:23.000Z | 2020-06-28T11:07:22.000Z | #include <iostream>
#include <unordered_set>
#include <bitset>
#include <string>
#include <cctype>
using namespace std;
typedef long long ll;
ll sieve_size;
bitset<10000010> bs;
unordered_set<int> primes;
void sieve(ll upperbound) {
sieve_size=upperbound+1; bs.set(); bs[0]=bs[1]=0;
for (ll i=2; i<=sieve_size; i++) ... | 22.114286 | 63 | 0.595607 | MaSteve |
6306f6446d8b5786251e2fbf734199ab4c649530 | 2,203 | cpp | C++ | BearIO/BearFilePackageStream.cpp | BearIvan/bearcore | 330a7983cb831fa4222b3ddfefc4c02df1267f0f | [
"MIT"
] | 1 | 2020-10-17T08:04:12.000Z | 2020-10-17T08:04:12.000Z | BearIO/BearFilePackageStream.cpp | BearIvan/bearcore | 330a7983cb831fa4222b3ddfefc4c02df1267f0f | [
"MIT"
] | null | null | null | BearIO/BearFilePackageStream.cpp | BearIvan/bearcore | 330a7983cb831fa4222b3ddfefc4c02df1267f0f | [
"MIT"
] | 1 | 2020-04-24T20:19:07.000Z | 2020-04-24T20:19:07.000Z | #include "BearCore.hpp"
BearFilePackageStream::BearFilePackageStream():m_tell(0),m_ptr(0),m_size(0)
{
}
BearFilePackageStream::~BearFilePackageStream()
{
}
BearFilePackageStream::BearFilePackageStream(const BearFilePackageStream & right) :m_tell(0), m_ptr(0), m_size(0)
{
Copy(right);
}
BearFilePackageStream::Bear... | 19.669643 | 113 | 0.744893 | BearIvan |
deb9535f6d3e6ecfd7e6144eb84d3cfc2ef6ebac | 733 | cpp | C++ | DanielaBarrios_Final.cpp | DanielaFBL/DanielaBarrios_Final | f2914a67021bd2aba09078e564970374831f90ec | [
"MIT"
] | null | null | null | DanielaBarrios_Final.cpp | DanielaFBL/DanielaBarrios_Final | f2914a67021bd2aba09078e564970374831f90ec | [
"MIT"
] | null | null | null | DanielaBarrios_Final.cpp | DanielaFBL/DanielaBarrios_Final | f2914a67021bd2aba09078e564970374831f90ec | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
int main(){
float m = 7294.29;
float q = 2;
float omega=1.0;
return 0;
}
void leapfrog (float t0, float tf, float dt, float m, float q, string datos){
float t0=0.0;
float x=1.0;
float y=0.0;
float tf=10.0;... | 15.270833 | 77 | 0.45839 | DanielaFBL |
debf8fff70fdf33dae3f3a3c91062b23b981beee | 1,988 | cpp | C++ | src/Coordination/WriteBufferFromNuraftBuffer.cpp | 540522905/ClickHouse | 299445ec7da10bd2ef62d8e333a95b7ab12bf5f2 | [
"Apache-2.0"
] | 15,577 | 2019-09-23T11:57:53.000Z | 2022-03-31T18:21:48.000Z | src/Coordination/WriteBufferFromNuraftBuffer.cpp | 540522905/ClickHouse | 299445ec7da10bd2ef62d8e333a95b7ab12bf5f2 | [
"Apache-2.0"
] | 16,476 | 2019-09-23T11:47:00.000Z | 2022-03-31T23:06:01.000Z | src/Coordination/WriteBufferFromNuraftBuffer.cpp | 540522905/ClickHouse | 299445ec7da10bd2ef62d8e333a95b7ab12bf5f2 | [
"Apache-2.0"
] | 3,633 | 2019-09-23T12:18:28.000Z | 2022-03-31T15:55:48.000Z | #include <Coordination/WriteBufferFromNuraftBuffer.h>
#include <base/logger_useful.h>
namespace DB
{
namespace ErrorCodes
{
extern const int CANNOT_WRITE_AFTER_END_OF_BUFFER;
}
void WriteBufferFromNuraftBuffer::nextImpl()
{
if (is_finished)
throw Exception("WriteBufferFromNuraftBuffer is finished", E... | 27.611111 | 159 | 0.703219 | 540522905 |
dec0c16542a97df2aeea3aa4987d740f8fb06e5d | 943 | cpp | C++ | src/objective3d.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/objective3d.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/objective3d.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file objective3d.cpp
* @brief Application dynamic library entry
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2001-12-25
* @copyright Copyright (C) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/objective3d.h"
#include "o3d/core/architecture.h"
// it... | 23 | 86 | 0.658537 | dream-overflow |
ded2a7014e51e63036da42da0be6559d3da9077e | 3,881 | cpp | C++ | src/app.cpp | antongus/clock-7-seg | 090778c28d078541e376531327e23a9a669e8b29 | [
"MIT"
] | null | null | null | src/app.cpp | antongus/clock-7-seg | 090778c28d078541e376531327e23a9a669e8b29 | [
"MIT"
] | null | null | null | src/app.cpp | antongus/clock-7-seg | 090778c28d078541e376531327e23a9a669e8b29 | [
"MIT"
] | null | null | null | /**
* @file app.cpp
*
* Application class implementation.
* Copyright © 2015 Anton B. Gusev aka AHTOXA
**/
#include "app.h"
#include "textbuf.h"
/**
* Dynamic indication loop.
*/
OS_PROCESS void Application::RefreshLoop()
{
int kbdCounter = 20;
// restore brightness at startup
digits_.SetBrightness(BKP->DR2);... | 19.118227 | 60 | 0.646998 | antongus |
ded510b573e3c00f111631fc62198da623024f50 | 1,371 | cpp | C++ | Flatten/GA/c2ga_draw.cpp | mauriciocele/arap-svd | bbefe4b0f18d7cd5e834b4c54e518f0d70f49565 | [
"MIT"
] | 4 | 2021-01-05T15:14:34.000Z | 2021-09-08T14:08:49.000Z | Flatten/GA/c2ga_draw.cpp | mauriciocele/arap-svd | bbefe4b0f18d7cd5e834b4c54e518f0d70f49565 | [
"MIT"
] | null | null | null | Flatten/GA/c2ga_draw.cpp | mauriciocele/arap-svd | bbefe4b0f18d7cd5e834b4c54e518f0d70f49565 | [
"MIT"
] | null | null | null | // 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) any later version.
// This program is distributed in the hope that it will be useful,
... | 27.42 | 88 | 0.722101 | mauriciocele |
ded513904dbd40be12eaf1d591259c65228ac98f | 6,759 | cpp | C++ | Enterprise/src/Enterprise/Time/Time.cpp | theOtherMichael/Enterprise | 1f018e364c58808c36af9a428a081bb441387847 | [
"Apache-2.0"
] | null | null | null | Enterprise/src/Enterprise/Time/Time.cpp | theOtherMichael/Enterprise | 1f018e364c58808c36af9a428a081bb441387847 | [
"Apache-2.0"
] | null | null | null | Enterprise/src/Enterprise/Time/Time.cpp | theOtherMichael/Enterprise | 1f018e364c58808c36af9a428a081bb441387847 | [
"Apache-2.0"
] | null | null | null | #include "EP_PCH.h"
#include "Time.h"
#include "Enterprise/Graphics/Graphics.h"
using Enterprise::Time;
static uint64_t fixedTimestepInRealTicks;
#ifdef EP_CONFIG_DIST
static uint64_t fixedTimestepInGameTicks, maxFrameDeltaInRealTicks;
#endif
static double currentTimeScale = 1.0;
static uint64_t currentSysTimeInTic... | 33.626866 | 149 | 0.802486 | theOtherMichael |
ded73efd2f98c074186f084b6a378806ec7572fa | 927 | cpp | C++ | DP/Cut_rod_example.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | DP/Cut_rod_example.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | DP/Cut_rod_example.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | /* ***********************************************************************
> File Name: Cut_rod_example.cpp
> Author: zzy
> Mail: 942744575@qq.com
> Created Time: Sun 03 Mar 2019 03:17:27 PM CST
********************************************************************** */
/*
* 不同长度的钢条,具有不同的价值,而切割工序没有成本支出,公司管理... | 23.175 | 95 | 0.488673 | obviouskkk |
ded793c27eb89f826a9204701ae3d557dbcfd876 | 21,198 | cpp | C++ | tests/eosio.limitauth_tests.cpp | guilledk/mandel-contracts | 0d452a3b45404a57f039c8a944534be1368032be | [
"MIT"
] | 8 | 2022-01-06T19:55:54.000Z | 2022-03-25T07:11:36.000Z | tests/eosio.limitauth_tests.cpp | gofractally/mandel-contracts | 0d452a3b45404a57f039c8a944534be1368032be | [
"MIT"
] | 6 | 2022-01-06T17:59:06.000Z | 2022-01-31T15:25:15.000Z | tests/eosio.limitauth_tests.cpp | gofractally/mandel-contracts | 0d452a3b45404a57f039c8a944534be1368032be | [
"MIT"
] | 8 | 2022-01-13T21:27:23.000Z | 2022-03-25T07:11:42.000Z | #include <Runtime/Runtime.h>
#include <boost/test/unit_test.hpp>
#include <cstdlib>
#include <eosio/chain/contract_table_objects.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/global_property_object.hpp>
#include <eosio/chain/resource_limits.hpp>
#include <eosio/chain/wast_to_wasm.hpp>
#include <fc/lo... | 41.810651 | 152 | 0.688603 | guilledk |
ded885b9243bd911d25f242d9ddf53b2bf47b6aa | 1,197 | hh | C++ | src/Common/fasta.hh | sagrudd/amos | 47643a1d238bff83421892cb74daaf6fff8d9548 | [
"Artistic-1.0"
] | 10 | 2015-03-20T18:25:56.000Z | 2020-06-02T22:00:08.000Z | src/Common/fasta.hh | sagrudd/amos | 47643a1d238bff83421892cb74daaf6fff8d9548 | [
"Artistic-1.0"
] | 5 | 2015-05-14T17:51:20.000Z | 2020-07-19T04:17:47.000Z | src/Common/fasta.hh | sagrudd/amos | 47643a1d238bff83421892cb74daaf6fff8d9548 | [
"Artistic-1.0"
] | 10 | 2015-05-17T16:01:23.000Z | 2020-05-20T08:13:43.000Z | // A. L. Delcher
//
// File: fasta.h
//
// Last Modified: 25 November 2002
//
// Routines to manipulate FASTA format files
#ifndef __FASTA_HH
#define __FASTA_HH
#include "delcher.hh"
#include <string>
#include <vector>
#include <cstring>
const int DEFAULT_FASTA_WIDTH = 60;
// Max number of characte... | 23.019231 | 75 | 0.658312 | sagrudd |
dee150a933928bf6bfe92c09c1a8d382c686db74 | 2,651 | hpp | C++ | libs/ecs/include/GameplayManager.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | null | null | null | libs/ecs/include/GameplayManager.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | null | null | null | libs/ecs/include/GameplayManager.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | 1 | 2021-03-21T16:52:22.000Z | 2021-03-21T16:52:22.000Z | #pragma once
#include <cassert>
#include <memory>
#include <unordered_map>
#include <vector>
#include "ComponentManager.hpp"
#include "ECSTypes.hpp"
#include "EntityManager.hpp"
#include "SystemManager.hpp"
class GameplayManager
{
public:
void Init()
{
// Create pointers to each manager
componentManager = std:... | 24.1 | 76 | 0.763108 | Sharpyfile |
dee1db6933d541784cdb98aa468e12af688755d7 | 1,810 | hpp | C++ | lihowarlib/include/lihowarlib/io/ConfigSerializer.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | lihowarlib/include/lihowarlib/io/ConfigSerializer.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | lihowarlib/include/lihowarlib/io/ConfigSerializer.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | /*
* Copyright (c) 2020-2021 Lihowar
*
* This software is licensed under OSEF License.
*
* The "Software" is defined as the pieces of code, the documentation files, the config
* files, the textures assets, the Wavefront OBJ assets, the screenshot image, the sound
* effects and music associated with.
*
* ... | 30.677966 | 122 | 0.712155 | ludchieng |
dee8f55e6a4095f23c71dc5914919940c8bfd820 | 8,986 | cpp | C++ | tests/FileSender.cpp | catid/tonk | e993c9b7d1bf14bd510739036e022cf24c3ecf3c | [
"BSD-3-Clause"
] | 91 | 2018-09-14T12:35:50.000Z | 2021-12-24T18:09:35.000Z | tests/FileSender.cpp | catid/tonk | e993c9b7d1bf14bd510739036e022cf24c3ecf3c | [
"BSD-3-Clause"
] | 6 | 2018-09-15T00:30:37.000Z | 2018-09-18T17:58:22.000Z | tests/FileSender.cpp | catid/tonk | e993c9b7d1bf14bd510739036e022cf24c3ecf3c | [
"BSD-3-Clause"
] | 9 | 2018-09-14T14:04:16.000Z | 2022-03-22T14:36:45.000Z | /*
Copyright (c) 2018 Christopher A. Taylor. 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 ... | 29.462295 | 132 | 0.637992 | catid |
deea02df274624662688c1f57af5633f8709c74d | 9,853 | cpp | C++ | src/wigner_d.cpp | dglazier/jpacPhoto | a364cf40610f793bee50c4e1ce61615cd30f30a5 | [
"MIT"
] | null | null | null | src/wigner_d.cpp | dglazier/jpacPhoto | a364cf40610f793bee50c4e1ce61615cd30f30a5 | [
"MIT"
] | null | null | null | src/wigner_d.cpp | dglazier/jpacPhoto | a364cf40610f793bee50c4e1ce61615cd30f30a5 | [
"MIT"
] | null | null | null | // Wigner little-d functions for half-integer spin particles
//
// Author: Daniel Winney (2020)
// Affiliation: Joint Physics Analysis Center (JPAC)
// Email: dwinney@iu.edu
// ---------------------------------------------------------------------------
#include "misc_math.hpp"
// --------------... | 24.388614 | 91 | 0.357962 | dglazier |
deed00e11b964c85558aa5e5ef32d5eb3f8ee7b1 | 419 | cpp | C++ | src/TimeStats.cpp | dudad/words | bba0d3bd1c2a5fd395fa3f0166fcf9c4c2063074 | [
"MIT"
] | null | null | null | src/TimeStats.cpp | dudad/words | bba0d3bd1c2a5fd395fa3f0166fcf9c4c2063074 | [
"MIT"
] | null | null | null | src/TimeStats.cpp | dudad/words | bba0d3bd1c2a5fd395fa3f0166fcf9c4c2063074 | [
"MIT"
] | null | null | null | #include "TimeStats.h"
#include <numeric>
void TimeStats::init(unsigned int bucket)
{
m_currBucketIdx = bucket;
m_ticks = SDL_GetTicks();
}
void TimeStats::set(unsigned int bucket)
{
Uint32 now = SDL_GetTicks();
m_buckets[m_currBucketIdx] += (now - m_ticks);
m_currBucketIdx = bucket;
m_ticks = now;
}
u... | 18.217391 | 64 | 0.706444 | dudad |
deedcad9d367c22ea4b40f7019b82c2d9253f67a | 3,363 | cpp | C++ | source/gloperate/source/stages/lights/LightBufferTextureStage.cpp | lordgeorg/gloperate | 13a6363fdac1f9ff06d91c9bc99649eacd87078e | [
"MIT"
] | 34 | 2015-10-07T12:26:27.000Z | 2021-04-06T06:35:01.000Z | source/gloperate/source/stages/lights/LightBufferTextureStage.cpp | lordgeorg/gloperate | 13a6363fdac1f9ff06d91c9bc99649eacd87078e | [
"MIT"
] | 219 | 2015-07-07T15:55:03.000Z | 2018-09-28T08:54:36.000Z | source/gloperate/source/stages/lights/LightBufferTextureStage.cpp | lordgeorg/gloperate | 13a6363fdac1f9ff06d91c9bc99649eacd87078e | [
"MIT"
] | 21 | 2015-07-07T14:33:08.000Z | 2018-12-23T12:43:56.000Z |
#include <gloperate/stages/lights/LightBufferTextureStage.h>
#include <glm/vec3.hpp>
#include <glbinding/gl/enum.h>
#include <globjects/Buffer.h>
#include <globjects/Texture.h>
#include <gloperate/rendering/Light.h>
namespace
{
struct ColorTypeEntry
{
glm::vec3 color;
float type;
};
}
namespace glopera... | 27.565574 | 101 | 0.742194 | lordgeorg |
def56e35d0f136d3049c042b236e8e909086cc68 | 1,862 | cpp | C++ | source/shared/kernels/resourcekernels/emotion.cpp | AmonShokhinAhmed/TattleTale | b3ec96ca7831d38f2cce88f1ef02f351d9f8547f | [
"MIT"
] | 1 | 2022-03-22T16:17:45.000Z | 2022-03-22T16:17:45.000Z | source/shared/kernels/resourcekernels/emotion.cpp | AmonShokhinAhmed/TattleTale | b3ec96ca7831d38f2cce88f1ef02f351d9f8547f | [
"MIT"
] | 88 | 2022-01-31T09:16:19.000Z | 2022-03-29T19:30:50.000Z | source/shared/kernels/resourcekernels/emotion.cpp | AmonShokhinAhmed/TattleTale | b3ec96ca7831d38f2cce88f1ef02f351d9f8547f | [
"MIT"
] | null | null | null | #include "shared/kernels/resourcekernels/emotion.hpp"
#include <assert.h>
#include <iostream>
#include <fmt/core.h>
#include "shared/actor.hpp"
namespace tattletale
{
Emotion::Emotion(EmotionType type, size_t id, size_t tick, Actor *owner, std::vector<Kernel *> reasons, float value)
: Resource(
... | 34.481481 | 121 | 0.581096 | AmonShokhinAhmed |
def95af310a929968f78ff84aec0cdbd52e0130f | 28 | hpp | C++ | Engine/vendor/zed/include/sl/Camera.hpp | jeroennelis/Engine | 43ed6c76d1eeeeddd7fd2b3b38d17ed72d312f1f | [
"Apache-2.0"
] | 2 | 2019-05-17T17:08:30.000Z | 2020-12-15T09:42:04.000Z | Engine/vendor/zed/include/sl/Camera.hpp | jeroennelis/Engine | 43ed6c76d1eeeeddd7fd2b3b38d17ed72d312f1f | [
"Apache-2.0"
] | null | null | null | Engine/vendor/zed/include/sl/Camera.hpp | jeroennelis/Engine | 43ed6c76d1eeeeddd7fd2b3b38d17ed72d312f1f | [
"Apache-2.0"
] | null | null | null | #include <sl_zed/Camera.hpp> | 28 | 28 | 0.785714 | jeroennelis |
defbc8aa803262daf230b57e40a564e58c6dfeb3 | 2,215 | hpp | C++ | Source/server/src/DBBackEnd.hpp | fmiguelgarcia/crossover | 380d12e7cb9f892894889f7a0f25ecd60c775fc7 | [
"MIT"
] | null | null | null | Source/server/src/DBBackEnd.hpp | fmiguelgarcia/crossover | 380d12e7cb9f892894889f7a0f25ecd60c775fc7 | [
"MIT"
] | null | null | null | Source/server/src/DBBackEnd.hpp | fmiguelgarcia/crossover | 380d12e7cb9f892894889f7a0f25ecd60c775fc7 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 Francisco Miguel Garcia
*
* 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,... | 33.059701 | 77 | 0.728668 | fmiguelgarcia |
defcb26b2fa2f23bd59d5339838adfb13477bf8d | 33,706 | cpp | C++ | src/prefsdlg.cpp | devinsmith/ngnc | cbcf69b435cc8c26ff6adf2f86a0eae1cfdc948e | [
"0BSD"
] | null | null | null | src/prefsdlg.cpp | devinsmith/ngnc | cbcf69b435cc8c26ff6adf2f86a0eae1cfdc948e | [
"0BSD"
] | null | null | null | src/prefsdlg.cpp | devinsmith/ngnc | cbcf69b435cc8c26ff6adf2f86a0eae1cfdc948e | [
"0BSD"
] | null | null | null | /*
* Copyright (c) 2016-2019 Devin Smith <devin@devinsmith.net>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | 53.757576 | 241 | 0.648015 | devinsmith |
defcc13dbe875f434dad15e1fd141052733dd4de | 245 | cxx | C++ | source/code/icelib/private/output/elements/include.cxx | iceshard-engine/code-emitter | b86eda2bc0cbdc4302fb4b03ce012ca2a0f3aeea | [
"BSD-3-Clause-Clear"
] | null | null | null | source/code/icelib/private/output/elements/include.cxx | iceshard-engine/code-emitter | b86eda2bc0cbdc4302fb4b03ce012ca2a0f3aeea | [
"BSD-3-Clause-Clear"
] | 2 | 2019-09-30T05:20:37.000Z | 2019-10-10T19:18:59.000Z | source/code/icelib/private/output/elements/include.cxx | iceshard-engine/code-emitter | b86eda2bc0cbdc4302fb4b03ce012ca2a0f3aeea | [
"BSD-3-Clause-Clear"
] | null | null | null | #include <ice/output/elements/include.hxx>
namespace ice::output
{
template<>
auto ice::output::identifier(Include const& data) noexcept -> std::string
{
return { "include:" + data.path };
}
} // namespace ice::output
| 18.846154 | 77 | 0.632653 | iceshard-engine |
defd03bc6160f50bfe311cc7021a0b293db8d6d0 | 303 | cpp | C++ | src/utils/log.cpp | vtavernier/libshadertoy | a0b2a133199383cc7e9bcb3c0300f39eb95177c0 | [
"MIT"
] | 2 | 2020-02-23T09:33:07.000Z | 2021-11-15T18:23:13.000Z | src/utils/log.cpp | vtavernier/libshadertoy | a0b2a133199383cc7e9bcb3c0300f39eb95177c0 | [
"MIT"
] | 2 | 2019-08-09T15:48:07.000Z | 2020-11-16T13:51:56.000Z | src/utils/log.cpp | vtavernier/libshadertoy | a0b2a133199383cc7e9bcb3c0300f39eb95177c0 | [
"MIT"
] | 3 | 2019-12-12T09:42:34.000Z | 2020-12-14T03:56:30.000Z | #include "shadertoy/utils/log.hpp"
using namespace shadertoy::utils;
namespace spd = spdlog;
bool log::initialized_ = false;
std::shared_ptr<spd::logger> log::shadertoy()
{
if (!initialized_)
{
initialized_ = true;
return spd::stderr_color_st("shadertoy");
}
return spd::get("shadertoy");
}
| 16.833333 | 45 | 0.709571 | vtavernier |
7206a085f7fd472287fb054f58ad85f266e4432c | 2,715 | cpp | C++ | src/parser/src/TypeCheckingSymbolTable.cpp | CUDA-me-impressed/CuMat-Compiler | d5050f96a2712d4d135c1729484cd91db2bdd42e | [
"MIT"
] | 2 | 2020-10-18T10:29:34.000Z | 2021-01-05T15:46:34.000Z | src/parser/src/TypeCheckingSymbolTable.cpp | CUDA-me-impressed/CuMat-Compiler | d5050f96a2712d4d135c1729484cd91db2bdd42e | [
"MIT"
] | 11 | 2020-10-08T18:41:20.000Z | 2021-03-19T14:49:19.000Z | src/parser/src/TypeCheckingSymbolTable.cpp | CUDA-me-impressed/CuMat-Compiler | d5050f96a2712d4d135c1729484cd91db2bdd42e | [
"MIT"
] | null | null | null | #include "TypeCheckingSymbolTable.hpp"
#include "TypeCheckingUtils.hpp"
std::shared_ptr<Typing::Type> TypeCheckUtils::TypeCheckingSymbolTable::getFuncType(std::string funcName, std::string nameSpace) {
if (this->funcTypes.contains(nameSpace)) {
if (this->funcTypes[nameSpace].contains(funcName)) {
... | 36.689189 | 166 | 0.684346 | CUDA-me-impressed |
7207cce9bbf86f5d3492770c0ce8b2a1c2b11cd0 | 762 | hpp | C++ | core/source/core/game/components/text_component.hpp | Karlashenko/engine-2d | 842c67fb6a7f19eaf16550b441ec7b79af2a0b7a | [
"MIT"
] | null | null | null | core/source/core/game/components/text_component.hpp | Karlashenko/engine-2d | 842c67fb6a7f19eaf16550b441ec7b79af2a0b7a | [
"MIT"
] | null | null | null | core/source/core/game/components/text_component.hpp | Karlashenko/engine-2d | 842c67fb6a7f19eaf16550b441ec7b79af2a0b7a | [
"MIT"
] | null | null | null | #pragma once
#include <utility>
#include "../../fonts/font.hpp"
class TextComponent final
{
public:
U32 space_width;
U32 line_height;
TextComponent(const Shared<Font>& p_font, String p_text)
: m_font(p_font), m_text(std::move(p_text))
{
space_width = m_font->get_size() * 0.4F;
... | 18.585366 | 60 | 0.598425 | Karlashenko |
7208deee29978030b07f41137afca85f463d16eb | 263 | hpp | C++ | src/snabl/timer.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 22 | 2018-08-27T15:28:10.000Z | 2022-02-13T08:18:00.000Z | src/snabl/timer.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 3 | 2018-08-27T01:44:51.000Z | 2020-06-28T20:07:42.000Z | src/snabl/timer.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 2 | 2018-08-26T18:55:47.000Z | 2018-09-29T01:04:36.000Z | #ifndef SNABL_TIMER_HPP
#define SNABL_TIMER_HPP
#include "snabl/types.hpp"
namespace snabl {
struct Timer {
static steady_clock::time_point now();
steady_clock::time_point start;
Timer();
void reset();
I64 ns() const;
};
}
#endif
| 13.842105 | 42 | 0.661597 | codr4life |
720b2059c817949fe594cde895e62f1b045106fd | 5,420 | cpp | C++ | src/drivers/win32/input_win32.cpp | demurzasty/rabb | f980fd18332f7846cd22b502f1075d224938379c | [
"MIT"
] | 8 | 2020-11-21T17:59:09.000Z | 2022-02-13T05:14:40.000Z | src/drivers/win32/input_win32.cpp | demurzasty/rabb | f980fd18332f7846cd22b502f1075d224938379c | [
"MIT"
] | null | null | null | src/drivers/win32/input_win32.cpp | demurzasty/rabb | f980fd18332f7846cd22b502f1075d224938379c | [
"MIT"
] | 1 | 2020-11-23T23:01:14.000Z | 2020-11-23T23:01:14.000Z | #include "input_win32.hpp"
#include "window_win32.hpp"
#include <Windows.h>
#include <unordered_map>
using namespace rb;
static std::unordered_map<keycode, int> key_map = {
{ keycode::left_system, VK_LWIN },
{ keycode::right_system, VK_RWIN },
{ keycode::menu, VK_APPS },
{ keycode::semi... | 32.071006 | 119 | 0.587269 | demurzasty |
720b2358fe2a4572d5b19235af339cd0493a96c3 | 1,525 | cpp | C++ | January Challenge 2021/Long Challenge/BILLRD/main.cpp | pratheekpai/CodeChef | 067ae2be32cd95a4fd77f1c2100d8db819ffe2ae | [
"MIT"
] | null | null | null | January Challenge 2021/Long Challenge/BILLRD/main.cpp | pratheekpai/CodeChef | 067ae2be32cd95a4fd77f1c2100d8db819ffe2ae | [
"MIT"
] | null | null | null | January Challenge 2021/Long Challenge/BILLRD/main.cpp | pratheekpai/CodeChef | 067ae2be32cd95a4fd77f1c2100d8db819ffe2ae | [
"MIT"
] | null | null | null |
#include <bits/stdc++.h>
using namespace std;
void point_of_impact(){
long long n, k, i, x, y, p;
cin >> n >> k >> x >> y;
if(x == y){
cout << n << " " << n << endl;
}
else if(y < x){
if(x == n && y == 0){
cout << x << " " << y << endl;
}
... | 25.847458 | 67 | 0.252459 | pratheekpai |
720d1e4ca36f2a3d8fe4762bd77b5a8bc3b5d837 | 126 | cpp | C++ | tests/PhiCore/compile_failure/src/core/scope_ptr/not_null_reset_nullptr.fail.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 3 | 2020-12-21T13:47:35.000Z | 2022-03-16T23:53:21.000Z | tests/PhiCore/compile_failure/src/core/scope_ptr/not_null_reset_nullptr.fail.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 53 | 2020-08-07T07:46:57.000Z | 2022-02-12T11:07:08.000Z | tests/PhiCore/compile_failure/src/core/scope_ptr/not_null_reset_nullptr.fail.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 1 | 2020-08-19T15:50:02.000Z | 2020-08-19T15:50:02.000Z | #include <phi/core/scope_ptr.hpp>
int main()
{
phi::not_null_scope_ptr<int> ptr(new int(21));
ptr.reset(nullptr);
}
| 14 | 50 | 0.65873 | AMS21 |
720e45e5d8839ea3929e61714f0f48dd1ebc33a4 | 912 | cpp | C++ | src/output/TableOutput.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 4 | 2017-04-13T02:11:15.000Z | 2021-11-29T18:04:16.000Z | src/output/TableOutput.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 27 | 2018-01-15T08:37:38.000Z | 2018-04-26T13:01:58.000Z | src/output/TableOutput.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 3 | 2017-07-24T13:13:28.000Z | 2019-04-10T19:09:56.000Z | #include "../output/TableOutput.h"
using namespace std;
namespace ysk {
void TableOutput::writeHeader(string label, size_t solution, size_t numberOfNodes, size_t numberOfClusters) {
_os<<numberOfNodes<<endl;
_os<<numberOfClusters<<endl;
_os<<"name\tcluster"<<endl;
}
void TableOutput::writeBeginNodes(siz... | 18.24 | 109 | 0.691886 | mironec |
720e69e272248e9022cc0c7c0fc9133b90eefc27 | 22,449 | cpp | C++ | tests/value.cpp | sinisa-susnjar/mgclient | 81a1086aa066d5fc03e770b3f1b0bdf0d5f95f00 | [
"Apache-2.0"
] | 30 | 2020-03-01T20:00:52.000Z | 2022-03-22T08:40:07.000Z | tests/value.cpp | sinisa-susnjar/mgclient | 81a1086aa066d5fc03e770b3f1b0bdf0d5f95f00 | [
"Apache-2.0"
] | 11 | 2019-08-19T13:34:21.000Z | 2022-03-18T11:25:15.000Z | tests/value.cpp | sinisa-susnjar/mgclient | 81a1086aa066d5fc03e770b3f1b0bdf0d5f95f00 | [
"Apache-2.0"
] | 4 | 2019-08-21T12:07:53.000Z | 2021-08-01T22:23:00.000Z | // Copyright (c) 2016-2020 Memgraph Ltd. [https://memgraph.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.apache.org/licenses/LICENSE-2.0
//
// Unless required ... | 35.9184 | 80 | 0.71139 | sinisa-susnjar |
72124b5d1a1bdc5b89468906144d2f8dd5aa0f4f | 951 | cpp | C++ | src/rotate-list.cpp | amoudgl/leetcode-solutions | dc6570bb06b82c2c70d6f387b3486897035cc995 | [
"MIT"
] | null | null | null | src/rotate-list.cpp | amoudgl/leetcode-solutions | dc6570bb06b82c2c70d6f387b3486897035cc995 | [
"MIT"
] | null | null | null | src/rotate-list.cpp | amoudgl/leetcode-solutions | dc6570bb06b82c2c70d6f387b3486897035cc995 | [
"MIT"
] | null | null | null | // Author: Abhinav Moudgil [ https://leetcode.com/amoudgl/ ]
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* rotateRight(ListNode* head, int k) {
ListNode *ptr;
... | 22.116279 | 60 | 0.446898 | amoudgl |
721737962dc6ed67f62c0ca81ca7146f3c7bc9ad | 2,990 | cpp | C++ | 02_camera/source/program.cpp | DamianReloaded/ModernOpenGL | c7fe024e4d13c7bd06c0704fa66124ddf7ea75fa | [
"MIT"
] | null | null | null | 02_camera/source/program.cpp | DamianReloaded/ModernOpenGL | c7fe024e4d13c7bd06c0704fa66124ddf7ea75fa | [
"MIT"
] | null | null | null | 02_camera/source/program.cpp | DamianReloaded/ModernOpenGL | c7fe024e4d13c7bd06c0704fa66124ddf7ea75fa | [
"MIT"
] | null | null | null | #include "program.h"
#include <fstream>
#include <sstream>
#include <vector>
#include <GL/glew.h>
using namespace reload;
program::program()
{
//ctor
}
program::~program()
{
//dtor
}
const uint32_t& program::id()
{
return m_id;
}
bool program::load (const std::string& _path_vertex_shader, const std::str... | 27.431193 | 101 | 0.666221 | DamianReloaded |
721a73cea2ba9a66abd9651520c16dcf693fd4bb | 5,068 | hpp | C++ | include/atomic_ops/atomic_ops.hpp | ldalessa/atomic_ops | b718286789732fe36107b170e9a73b058db609ff | [
"BSD-3-Clause"
] | null | null | null | include/atomic_ops/atomic_ops.hpp | ldalessa/atomic_ops | b718286789732fe36107b170e9a73b058db609ff | [
"BSD-3-Clause"
] | null | null | null | include/atomic_ops/atomic_ops.hpp | ldalessa/atomic_ops | b718286789732fe36107b170e9a73b058db609ff | [
"BSD-3-Clause"
] | null | null | null | // BSD 3-Clause License
//
// Copyright (c) 2020, Luke D'Alessandro
// Copyright (c) 2020, Trustees of Indiana University
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributio... | 29.126437 | 81 | 0.709747 | ldalessa |
721dfcb5a7fa7feae736e75dd26a4e38ca9a7206 | 9,614 | cpp | C++ | crashfix_service/libdumper_tests/StackWalkerTests.cpp | jsonzilla/crashfix | 278a0dfb94f815709067bef61e64f1b290f17fa0 | [
"BSD-3-Clause"
] | 3 | 2019-01-07T20:55:30.000Z | 2019-04-10T10:04:16.000Z | crashfix_service/libdumper_tests/StackWalkerTests.cpp | 0um/crashfix | f283498b92efbaf150f6f09251d4bd69d8335a6b | [
"BSD-3-Clause"
] | 9 | 2020-04-04T13:33:00.000Z | 2020-04-04T13:33:18.000Z | crashfix_service/libdumper_tests/StackWalkerTests.cpp | jsonzilla/crashfix | 278a0dfb94f815709067bef61e64f1b290f17fa0 | [
"BSD-3-Clause"
] | 1 | 2021-04-25T14:26:27.000Z | 2021-04-25T14:26:27.000Z | #include "stdafx.h"
#include "Tests.h"
#include "Utils.h"
#include "MiniDumpReader.h"
#include "StackWalker.h"
#include "Thread.h"
#include "FileFinder.h"
#include "CrashReportReader.h"
#include "strconv.h"
class StackWalkerTests : public CTestCase
{
BEGIN_TEST_MAP(StackWalkerTests, "CStackWalker class tests")
... | 25.101828 | 103 | 0.717183 | jsonzilla |
722b15f11db4d3b6c941c8b4a6c5d395b11b035f | 1,415 | hpp | C++ | third_party/libprocess/include/process/io.hpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | null | null | null | third_party/libprocess/include/process/io.hpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | null | null | null | third_party/libprocess/include/process/io.hpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | 1 | 2022-02-19T10:59:37.000Z | 2022-02-19T10:59:37.000Z | #ifndef __PROCESS_IO_HPP__
#define __PROCESS_IO_HPP__
#include <string>
#include <process/future.hpp>
namespace process {
namespace io {
// Possible events for polling.
const short READ = 0x01;
const short WRITE = 0x02;
// Returns the events (a subset of the events specified) that can be
// performed on the specif... | 35.375 | 80 | 0.749823 | clearstorydata |
723025a1ef0eeda1798b6627132eb46872ce35f5 | 5,292 | cpp | C++ | src/renderer/raycaster/geometry.cpp | lPrimemaster/Liquid | 72c11bf96cccb3f93725f46f0e0756a1b732163c | [
"MIT"
] | null | null | null | src/renderer/raycaster/geometry.cpp | lPrimemaster/Liquid | 72c11bf96cccb3f93725f46f0e0756a1b732163c | [
"MIT"
] | null | null | null | src/renderer/raycaster/geometry.cpp | lPrimemaster/Liquid | 72c11bf96cccb3f93725f46f0e0756a1b732163c | [
"MIT"
] | null | null | null | #include "geometry.h"
#include "../../utils/fileloader.h"
#include "accelerator/bvh.h"
#include <unordered_map>
#include <chrono>
internal std::unordered_map<std::string, Geometry*> GeometryRegistry;
bool Triangle::hit(const TriangleMesh* mesh, const Ray* r, f32 tmin, f32 tmax, HitRecord* rec) const
{
Vector3 e1... | 29.4 | 118 | 0.590703 | lPrimemaster |
72372cd66527e1d39402ddf3bc250a2ef264c0ac | 5,973 | hpp | C++ | Firmware/core/gpio/gpio.hpp | OstapFerensovych/BMW-K1200LT-ABS-Conversion | 17442f79261a0d5e28f52b9f0572f02a01dd9092 | [
"MIT"
] | 3 | 2021-02-21T14:50:38.000Z | 2021-12-19T21:52:39.000Z | Firmware/core/gpio/gpio.hpp | OstapFerensovych/BMW-K1200LT-ABS-Conversion | 17442f79261a0d5e28f52b9f0572f02a01dd9092 | [
"MIT"
] | null | null | null | Firmware/core/gpio/gpio.hpp | OstapFerensovych/BMW-K1200LT-ABS-Conversion | 17442f79261a0d5e28f52b9f0572f02a01dd9092 | [
"MIT"
] | null | null | null | #pragma once
#include <stm32f0xx.h>
#include <cstdint>
#include <tuple>
#include "platform.hpp"
namespace gpio {
enum class port {
a = 0,
b = 1,
c = 2,
f = 3,
_max_ports,
};
enum class mode : uint8_t {
input = 0,
gp_out = 1,
af_io = 2,
analog = 3,
};
enum class drive : uint8_t {
push_pull =... | 24.8875 | 112 | 0.642391 | OstapFerensovych |
7239546831e0ba248bcc427c224de2ef22e45b14 | 3,151 | cpp | C++ | test_package/test.cpp | jpilet/mediagraph | fa3986ef91ad0ec8d0e379f2818140df7854a139 | [
"BSD-3-Clause"
] | null | null | null | test_package/test.cpp | jpilet/mediagraph | fa3986ef91ad0ec8d0e379f2818140df7854a139 | [
"BSD-3-Clause"
] | 8 | 2020-02-25T13:55:37.000Z | 2020-10-05T13:08:48.000Z | test_package/test.cpp | jpilet/mediagraph | fa3986ef91ad0ec8d0e379f2818140df7854a139 | [
"BSD-3-Clause"
] | 1 | 2020-02-26T09:59:04.000Z | 2020-02-26T09:59:04.000Z | #include <mediagraph/graph.h>
#include <mediagraph/stream.h>
#include <mediagraph/stream_reader.h>
#include <iostream>
struct MyData {
std::string str;
int64_t seq;
};
namespace media_graph {
namespace {
template <> std::string typeName<MyData>() { return "MyData"; }
} // namespace
} // namespace medi... | 27.163793 | 100 | 0.576325 | jpilet |
5cfaf825c700e948f576f668ada65b1417eafa7c | 4,882 | cpp | C++ | Core/Utils/Utils_win.cpp | zenden2k/KeeneticRainmeterPlugin | fb8e61e161422acfa095215ed1237727e5a9f5f9 | [
"MIT"
] | 2 | 2021-05-01T14:08:48.000Z | 2021-09-05T11:14:19.000Z | Core/Utils/Utils_win.cpp | zenden2k/KeeneticRainmeterPlugin | fb8e61e161422acfa095215ed1237727e5a9f5f9 | [
"MIT"
] | null | null | null | Core/Utils/Utils_win.cpp | zenden2k/KeeneticRainmeterPlugin | fb8e61e161422acfa095215ed1237727e5a9f5f9 | [
"MIT"
] | null | null | null | /*
Image Uploader - free application for uploading images/files to the Internet
Copyright 2007-2018 Sergey Svistunov (zenden2k@gmail.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 ... | 29.587879 | 132 | 0.633961 | zenden2k |
5cfe4f1990c4b5e9a6df1dfe7b308188aff29003 | 727 | cpp | C++ | Codeforces/div3#634/C.cpp | igortakeo/Solutions-CF | d945f0ae21c691120b69db78ff3d240b7dedc0a7 | [
"MIT"
] | 1 | 2020-05-25T15:32:23.000Z | 2020-05-25T15:32:23.000Z | Codeforces/div3#634/C.cpp | igortakeo/Solutions-CF | d945f0ae21c691120b69db78ff3d240b7dedc0a7 | [
"MIT"
] | null | null | null | Codeforces/div3#634/C.cpp | igortakeo/Solutions-CF | d945f0ae21c691120b69db78ff3d240b7dedc0a7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
#define pii pair<int,int>
#define fastcin ios_base::sync_with_stdio(false); cin.tie(NULL);
using namespace std;
int main(){
fastcin
int t;
cin >> t;
while(t--){
int n;
cin >> n;
vector<int>v(n);
int freq[n+1];
int d=0, ig=0;
memset(freq, 0, siz... | 14.836735 | 65 | 0.499312 | igortakeo |
cf0015e749c1fae912992594be4f700014607427 | 353 | hpp | C++ | .hemtt/template/addon/script_component.hpp | YonVclaw/xmarkers | 1e9a72a43b1ef4f920e728b2ecf9d649591645a3 | [
"MIT"
] | null | null | null | .hemtt/template/addon/script_component.hpp | YonVclaw/xmarkers | 1e9a72a43b1ef4f920e728b2ecf9d649591645a3 | [
"MIT"
] | null | null | null | .hemtt/template/addon/script_component.hpp | YonVclaw/xmarkers | 1e9a72a43b1ef4f920e728b2ecf9d649591645a3 | [
"MIT"
] | null | null | null | #define COMPONENT %%addon%%
#include "\z\XMARK\addons\xmarkers\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
#ifdef DEBUG_ENABLED_%%ADDON%%
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_OTHER
#define DEBUG_SETTINGS DEBUG_SETTINGS_%%ADDON%%
#endif
#include "\z\XMARK\ad... | 23.533333 | 53 | 0.767705 | YonVclaw |
cf01e392fba3f838a707b4b15cd7c7aa7c7590b4 | 4,426 | hpp | C++ | core/mmap_allocator.hpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | core/mmap_allocator.hpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | core/mmap_allocator.hpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#ifndef MMAP_ALLOCATOR_H
#define MMAP_ALLOCATOR_H
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <cassert>
#include <iostream>
#define MMAPA_INIT_ENTRIES (1ULL << ... | 26.189349 | 115 | 0.598961 | tamim-asif |
cf029815b9d064889480f84e11f40c5f113ac1e0 | 778 | cpp | C++ | src/MFLOInstruction.cpp | dulvinw/MIPSSimulator | 82325e56dccbd45a2257056362b955b6ef690c34 | [
"MIT"
] | null | null | null | src/MFLOInstruction.cpp | dulvinw/MIPSSimulator | 82325e56dccbd45a2257056362b955b6ef690c34 | [
"MIT"
] | null | null | null | src/MFLOInstruction.cpp | dulvinw/MIPSSimulator | 82325e56dccbd45a2257056362b955b6ef690c34 | [
"MIT"
] | null | null | null | #include "MFLOInstruction.h"
#include <iostream>
#include <sstream>
int MFLOInstruction::execute(int* registers, DataMap& data) {
registers[_dest] = registers[LO_REGISTER_ADDRESS];
return _instructionId + NEXT_INSTRUCTION_OFFSET;
}
std::string MFLOInstruction::decode() {
std::stringstream ss;
ss << g... | 26.827586 | 107 | 0.705656 | dulvinw |
cf05c2b2368f78a29b6858c9fbc00bc77a44fd5c | 872 | cpp | C++ | code/cpp/MaxAndMin.cpp | analgorithmaday/analgorithmaday.github.io | d43f98803bc673f61334bff54eed381426ee902e | [
"MIT"
] | null | null | null | code/cpp/MaxAndMin.cpp | analgorithmaday/analgorithmaday.github.io | d43f98803bc673f61334bff54eed381426ee902e | [
"MIT"
] | null | null | null | code/cpp/MaxAndMin.cpp | analgorithmaday/analgorithmaday.github.io | d43f98803bc673f61334bff54eed381426ee902e | [
"MIT"
] | null | null | null | void getRange(int *arr, int size)
{
int min;
int max;
int start=0;
if((size & 1) == 1) {
min = arr[0];
max = arr[0];
start = 1;
}
else {
if(arr[0] < arr[1]) {
min = arr[0];
max = arr[1];
}
else {
min = arr[1];
... | 17.44 | 38 | 0.352064 | analgorithmaday |
cf08b895eb4e57974481e7d8d0d60809b410881c | 10,307 | cc | C++ | Zapocet 2/test_g.cc | xchovanecv1/PS2 | 913c2cd7adf65fab2e4cf420aafa766b3e2232c7 | [
"MIT"
] | null | null | null | Zapocet 2/test_g.cc | xchovanecv1/PS2 | 913c2cd7adf65fab2e4cf420aafa766b3e2232c7 | [
"MIT"
] | null | null | null | Zapocet 2/test_g.cc | xchovanecv1/PS2 | 913c2cd7adf65fab2e4cf420aafa766b3e2232c7 | [
"MIT"
] | null | null | null | /*
Vytvorte casovu udalost (vramci prvych 30s), ktora rozpohybuje uzly v strede. (1b)
Vytvorte funkciu ktorou zachytite zmenu CongestionWindow na triede TcpSocket (iba 1z3 app pouziva Tcp). (1b)
Ak poklesne CongestionWindow zvyste rychlosti uzlov v strede. inak spomalte ;) (1b)
Zachytte udalost (PhyRxDrop || Ph... | 36.679715 | 180 | 0.644707 | xchovanecv1 |
cf1498d674dd9b3949a47ed3b16fb53e85c84272 | 2,434 | cpp | C++ | libs/outcome/doc/src/snippets/policies.cpp | ztchu/boost_1_70_0 | f86bf1a4ad9efe7b2d76e4878ea240ac35ca4250 | [
"BSL-1.0"
] | 32 | 2018-05-14T23:26:54.000Z | 2020-06-14T10:13:20.000Z | libs/outcome/doc/src/snippets/policies.cpp | ztchu/boost_1_70_0 | f86bf1a4ad9efe7b2d76e4878ea240ac35ca4250 | [
"BSL-1.0"
] | 79 | 2018-08-01T11:50:45.000Z | 2020-11-17T13:40:06.000Z | libs/outcome/doc/src/snippets/policies.cpp | ztchu/boost_1_70_0 | f86bf1a4ad9efe7b2d76e4878ea240ac35ca4250 | [
"BSL-1.0"
] | 14 | 2021-01-08T05:05:19.000Z | 2022-03-27T14:56:56.000Z | #include "../../../include/boost/outcome.hpp"
namespace outcome = BOOST_OUTCOME_V2_NAMESPACE;
//! [abort_policy]
struct abort_policy : outcome::policy::base
{
template <class Impl> static constexpr void wide_value_check(Impl &&self)
{
if(!base::_has_value(std::forward<Impl>(self)))
std::abort();
}
... | 27.348315 | 103 | 0.664749 | ztchu |
cf1e74641ad881ee5fb40a7e26a4c52e9f13f9d4 | 498 | cpp | C++ | packrat/lib/x86_64-w64-mingw32/3.6.1/Rcpp/examples/ConvolveBenchmarks/overhead_1.cpp | Denia-Vargas-Araya/ApartamentosR | 3e62de9946efb5b6545ce431972f5cc790dae673 | [
"MIT"
] | 113 | 2018-07-12T07:49:33.000Z | 2021-04-16T12:41:53.000Z | packrat/lib/x86_64-w64-mingw32/3.6.1/Rcpp/examples/ConvolveBenchmarks/overhead_1.cpp | Denia-Vargas-Araya/ApartamentosR | 3e62de9946efb5b6545ce431972f5cc790dae673 | [
"MIT"
] | 81 | 2018-03-01T18:05:41.000Z | 2020-01-15T18:47:31.000Z | packrat/lib/x86_64-w64-mingw32/3.6.1/Rcpp/examples/ConvolveBenchmarks/overhead_1.cpp | Denia-Vargas-Araya/ApartamentosR | 3e62de9946efb5b6545ce431972f5cc790dae673 | [
"MIT"
] | 55 | 2017-05-20T12:42:19.000Z | 2019-03-26T16:38:16.000Z | // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*-
// This is a rewrite of the 'Writing R Extensions' section 5.10.1 example
#include <Rcpp.h>
// using namespace Rcpp ;
SEXP overhead_cpp(SEXP a, SEXP b) {
return R_NilValue ;
}
extern "C" void R_init_overhead_1(DllInfo *info){
R_CallM... | 22.636364 | 73 | 0.638554 | Denia-Vargas-Araya |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.