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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa905b5fcb0729bc340e6bf380f8fc7a40714ff0 | 2,733 | cpp | C++ | src/json/json_string.cpp | karekoho/json | ee87dfd5d3e64c0efcd8942a93d67ed5a1adcd03 | [
"MIT"
] | null | null | null | src/json/json_string.cpp | karekoho/json | ee87dfd5d3e64c0efcd8942a93d67ed5a1adcd03 | [
"MIT"
] | 1 | 2021-05-13T12:15:09.000Z | 2021-06-05T10:30:12.000Z | src/json/json_string.cpp | karekoho/json | ee87dfd5d3e64c0efcd8942a93d67ed5a1adcd03 | [
"MIT"
] | null | null | null | #include "json_string.h"
#include "json_json.h"
format::json::string::string ()
: leaf (),
_startp (nullptr),
_string_value (nullptr),
_charc (0)
{
(void) __assign (L"", 0);
}
format::json::string::string (const wchar_t *const string_text)
: leaf (string_text),
_startp (nullptr),
_string_val... | 22.586777 | 90 | 0.629345 | karekoho |
aa90dcfc3dd8780996f079d8573be9c38c610781 | 1,948 | cpp | C++ | Products/Tools/Projucer/Source/BinaryData/Templates/jucer_MainTemplate_NoWindow.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 180 | 2015-11-17T22:53:08.000Z | 2022-03-29T16:22:58.000Z | Products/Tools/Projucer/Source/BinaryData/Templates/jucer_MainTemplate_NoWindow.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 14 | 2018-04-27T12:50:21.000Z | 2020-04-09T20:37:27.000Z | Products/Tools/Projucer/Source/BinaryData/Templates/jucer_MainTemplate_NoWindow.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 30 | 2015-11-18T20:23:13.000Z | 2022-01-17T02:39:43.000Z | /*
==============================================================================
This file contains the basic startup code for a JUCE application.
==============================================================================
*/
%%app_headers%%
//============================================================... | 37.461538 | 97 | 0.472279 | RobinSchmidt |
aa918306f2f11ac6b75c065d3a035d46726bb7c3 | 3,426 | cpp | C++ | pwm/libraries/touchgfx_lib/TouchGFX/generated/gui_generated/src/main_screen/MainViewBase.cpp | 1162431386/RT-Thread | 55223abcf9559baf7d77faddcbcde0c99b6c880b | [
"Apache-2.0"
] | 8 | 2020-12-15T13:40:34.000Z | 2021-11-28T14:49:37.000Z | libraries/touchgfx_lib/TouchGFX/generated/gui_generated/src/main_screen/MainViewBase.cpp | apeng2012/RT-Thread-tmc5160-demo | 2634ec85f7a050ef188ede1b23e73d0dfdce6c3e | [
"MIT"
] | null | null | null | libraries/touchgfx_lib/TouchGFX/generated/gui_generated/src/main_screen/MainViewBase.cpp | apeng2012/RT-Thread-tmc5160-demo | 2634ec85f7a050ef188ede1b23e73d0dfdce6c3e | [
"MIT"
] | 4 | 2020-12-15T14:01:36.000Z | 2022-01-25T00:17:14.000Z | /*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/main_screen/MainViewBase.hpp>
#include <touc... | 39.837209 | 294 | 0.726795 | 1162431386 |
aaa0e9b7e67e832f4dd889e249caac03158c4b2e | 50,855 | cpp | C++ | src/RTL/Component/Importing/CIFXLoadManager.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 44 | 2016-05-06T00:47:11.000Z | 2022-02-11T06:51:37.000Z | src/RTL/Component/Importing/CIFXLoadManager.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 3 | 2016-06-27T12:37:31.000Z | 2021-03-24T12:39:48.000Z | src/RTL/Component/Importing/CIFXLoadManager.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 15 | 2016-02-28T11:08:30.000Z | 2021-06-01T03:32:01.000Z | //***************************************************************************
//
// Copyright (c) 2000 - 2006 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 29.985259 | 199 | 0.726477 | alemuntoni |
aaa17bd7e938b533b9e41dc14ecd29edae9b3df5 | 4,237 | cpp | C++ | src/Icon.cpp | Cirn09/ShellAnything | 366ab31679b1e12fcf37c0766411a717b10be707 | [
"BSD-3-Clause",
"Zlib",
"MIT"
] | null | null | null | src/Icon.cpp | Cirn09/ShellAnything | 366ab31679b1e12fcf37c0766411a717b10be707 | [
"BSD-3-Clause",
"Zlib",
"MIT"
] | null | null | null | src/Icon.cpp | Cirn09/ShellAnything | 366ab31679b1e12fcf37c0766411a717b10be707 | [
"BSD-3-Clause",
"Zlib",
"MIT"
] | null | null | null | /**********************************************************************************
* MIT License
*
* Copyright (c) 2018 Antoine Beauchamp
*
* 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 So... | 32.098485 | 230 | 0.645976 | Cirn09 |
aaa1b2b60df578d1fc8c3a45bf9eeec24889d075 | 6,593 | cc | C++ | public/meta/suggest/server/methods/suggest_method_utils.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | 3 | 2015-05-18T14:52:47.000Z | 2018-11-12T07:51:00.000Z | public/meta/suggest/server/methods/suggest_method_utils.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | null | null | null | public/meta/suggest/server/methods/suggest_method_utils.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | 3 | 2015-08-04T05:58:18.000Z | 2018-11-12T07:51:01.000Z | // Copyright 2013 Room77 Inc. All Rights Reserved.
// Author: pramodg@room77.com (Pramod Gupta)
#include "meta/suggest/server/methods/suggest_method_utils.h"
#include <functional>
#include <unordered_set>
#include "util/string/strutil.h"
#include "util/file/csvreader.h"
#include "util/entity/entity_id.h"
#include "... | 39.011834 | 99 | 0.716518 | room77 |
aaa2f1fa5943a71d63fececb27ba0ab38c61a3fb | 463 | cpp | C++ | chapter-19/19.24.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-19/19.24.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-19/19.24.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // For self assignment of Token type object, since the data member tok is exactly the same;
// for copy assignment, follow the way which is illustrated in text book;
// there is no call of constructor or destructor of string class type and Sales_data class type, for any member of union the correspond assignment operat... | 57.875 | 174 | 0.766739 | zero4drift |
aaac925d984bf66af35bb0ffd9bb8cb8b7766dc8 | 2,872 | hpp | C++ | src/stan/mcmc/hmc/hamiltonians/ps_point.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | src/stan/mcmc/hmc/hamiltonians/ps_point.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/stan/mcmc/hmc/hamiltonians/ps_point.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T11:36:09.000Z | 2020-07-14T11:36:09.000Z | #ifndef STAN_MCMC_HMC_HAMILTONIANS_PS_POINT_HPP
#define STAN_MCMC_HMC_HAMILTONIANS_PS_POINT_HPP
#include <stan/callbacks/writer.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <boost/lexical_cast.hpp>
#include <Eigen/Dense>
#include <string>
#include <vector>
namespace stan {
namespace mcmc {
using Ei... | 27.352381 | 76 | 0.538649 | drezap |
aaaec192bf5a8e853a03596577df13a19fadd2bf | 130 | cc | C++ | Pods/gRPC-Core/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc | MrsTrier/RememberArt | 90314d1f05a1d63b9885ebb17d37bab5134a24f3 | [
"MIT"
] | null | null | null | Pods/gRPC-Core/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc | MrsTrier/RememberArt | 90314d1f05a1d63b9885ebb17d37bab5134a24f3 | [
"MIT"
] | null | null | null | Pods/gRPC-Core/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc | MrsTrier/RememberArt | 90314d1f05a1d63b9885ebb17d37bab5134a24f3 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:788ffe16c7a7354260583d97fedada4fbfd820725a686547be0bf087a70a40e6
size 11809
| 32.5 | 75 | 0.884615 | MrsTrier |
aab0a72875cd574dcee8cd652761cadbc47729e5 | 872 | cpp | C++ | src/26.cpp | dxscjx123/SwordOffer | e04958beb3f99c103f879b09f3da547679a208c4 | [
"MIT"
] | 3 | 2018-04-20T14:07:14.000Z | 2019-08-29T14:35:30.000Z | src/26.cpp | dxscjx123/SwordOffer | e04958beb3f99c103f879b09f3da547679a208c4 | [
"MIT"
] | null | null | null | src/26.cpp | dxscjx123/SwordOffer | e04958beb3f99c103f879b09f3da547679a208c4 | [
"MIT"
] | null | null | null | // 分析:
// 这个题的第一反应就是回溯法,直接就用回溯法写了,但最优解的方案,后续
// 再考虑最优解的方案,先记录本题思路。
// 对于整个字符串,建立一个字符串长度的vector,用于标记哪些元素被访问,每次
// 从访问未被访问的元素。
// 需要考虑的一种特殊情况,输入为aa,输出为aa,aa,没有对元素进行排重,故建立
// 了一个set,对多余的元素进行排重。
class Solution {
public:
void dfs(string str, string oneresult)
{
if (oneresult.size() == str.size())
{
if (setting.fin... | 18.956522 | 48 | 0.618119 | dxscjx123 |
82b45fe38b257057c0598d11dcbad43050c39c01 | 1,701 | cpp | C++ | cppserver/App.cpp | zhuzhonghua/Episode | 86626fb87696f9fff4b571a9647ca9d9ae77af7a | [
"MIT"
] | 24 | 2015-01-09T12:35:31.000Z | 2020-08-21T08:33:51.000Z | cppserver/App.cpp | 602147629/Episode | 86626fb87696f9fff4b571a9647ca9d9ae77af7a | [
"MIT"
] | null | null | null | cppserver/App.cpp | 602147629/Episode | 86626fb87696f9fff4b571a9647ca9d9ae77af7a | [
"MIT"
] | 11 | 2015-02-03T02:48:21.000Z | 2021-07-23T08:51:05.000Z | #include "StdAfx.h"
#include "App.h"
#include "MsgHandler.h"
#include "RoomManager.h"
#include "ConnectionManager.h"
App* App::s_inst;
App* App::inst()
{
return s_inst?s_inst:(s_inst = new App());
}
App::App():m_tick(m_io, boost::posix_time::microsec(TICK_MS)),m_pFSMaster(NULL)
{
}
bool App::i... | 19.77907 | 89 | 0.623163 | zhuzhonghua |
82b501b6884c2221430f85aab9298f9d19885056 | 154,438 | cpp | C++ | langdetectpp/src/profiles/langs/fr.cpp | kovdan01/langdetectpp | 85521e1372a4d45d4752b8183cb53aebb7080271 | [
"Apache-2.0"
] | 6 | 2018-05-30T11:13:59.000Z | 2022-02-25T05:41:05.000Z | langdetectpp/src/profiles/langs/fr.cpp | kovdan01/langdetectpp | 85521e1372a4d45d4752b8183cb53aebb7080271 | [
"Apache-2.0"
] | 3 | 2017-04-22T14:33:35.000Z | 2021-09-02T11:21:25.000Z | langdetectpp/src/profiles/langs/fr.cpp | kovdan01/langdetectpp | 85521e1372a4d45d4752b8183cb53aebb7080271 | [
"Apache-2.0"
] | 7 | 2018-09-26T08:37:30.000Z | 2021-02-11T14:04:16.000Z | #include "profiles/langs/fr.h"
#include <unordered_map>
#include <tuple>
static const std::unordered_map<uint32_t, size_t> fr_one_grams {
{ 101, 9206578 },
{ 97, 5160230 },
{ 110, 5070939 },
{ 105, 4746975 },
{ 115, 4479915 },
{ 116, 4403208 },
{ 114, 4208721 },
{ 108, 3535844 },
{ 111, 3525396 },
... | 67.914688 | 95 | 0.672173 | kovdan01 |
82b836b1e6f6fa472a98763d4b2de9837394e2a7 | 787 | cpp | C++ | leetcode/1542.leetcode.1.cpp | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | leetcode/1542.leetcode.1.cpp | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | leetcode/1542.leetcode.1.cpp | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | /**
* 1542. Find Longest Awesome Substring
* https://leetcode.com/problems/find-longest-awesome-substring/
*/
class Solution {
public:
int longestAwesome(string s) {
unordered_map<int, int> seen = {{0, -1}}; //states, index
int state = 0, n = s.size(), maxLen = 0;
for (int i = 0; i < n; +... | 31.48 | 75 | 0.481576 | jianershi |
82c0732f6283259d5008656273081a90e7d06990 | 12,947 | cpp | C++ | src/QtManagers/Images/nPictureRecognizer.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | src/QtManagers/Images/nPictureRecognizer.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | src/QtManagers/Images/nPictureRecognizer.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | #include <qtmanagers.h>
N::PictureRecognizer:: PictureRecognizer ( Plan * plan )
: FilterPlan ( plan )
, Flip ( true )
, FaceDetect ( QSize(12,12) )
... | 42.870861 | 91 | 0.338843 | Vladimir-Lin |
82c3621a3702d110a7958bf5cb94e472a59214f1 | 1,324 | cpp | C++ | regression/alignment.cpp | aurianer/gridtools | 5f99471bf36215e2a53317d2c7844bf057231ffa | [
"BSD-3-Clause"
] | null | null | null | regression/alignment.cpp | aurianer/gridtools | 5f99471bf36215e2a53317d2c7844bf057231ffa | [
"BSD-3-Clause"
] | null | null | null | regression/alignment.cpp | aurianer/gridtools | 5f99471bf36215e2a53317d2c7844bf057231ffa | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <gtest/gtest.h>
#include <gridtools/stencil_composition/cartesian.hpp>
#include <gridtools/stencil_composition/position... | 27.020408 | 117 | 0.707704 | aurianer |
82c81b533829865eb2b8bbf5cab0b021ff90942f | 5,905 | cpp | C++ | tests/src/stats/variances.cpp | LTLA/tatami | 134dbb98a0e47f4fa75426f37f08980efe61369b | [
"MIT"
] | 1 | 2021-09-13T01:10:45.000Z | 2021-09-13T01:10:45.000Z | tests/src/stats/variances.cpp | LTLA/libbioc | 134dbb98a0e47f4fa75426f37f08980efe61369b | [
"MIT"
] | 9 | 2021-07-22T08:29:24.000Z | 2022-03-24T11:25:42.000Z | tests/src/stats/variances.cpp | LTLA/tatami | 134dbb98a0e47f4fa75426f37f08980efe61369b | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <vector>
#include "tatami/base/DenseMatrix.hpp"
#include "tatami/utils/convert_to_dense.hpp"
#include "tatami/utils/convert_to_sparse.hpp"
#include "tatami/stats/variances.hpp"
#include "../data/data.h"
template<class L, class R>
void compare_double_vectors (const L& left, const R&... | 43.740741 | 137 | 0.687722 | LTLA |
82cedad2814fecc780e3acba7851c70b2d9d4ac5 | 16,550 | cpp | C++ | recipes-cgl/cgl/cgl/src/CglRedSplit2/CglRedSplit2Param.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | 8 | 2015-05-11T04:18:49.000Z | 2020-02-16T00:14:35.000Z | recipes-cgl/cgl/cgl/src/CglRedSplit2/CglRedSplit2Param.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | 9 | 2015-06-06T22:02:28.000Z | 2020-02-01T22:03:59.000Z | recipes-cgl/cgl/cgl/src/CglRedSplit2/CglRedSplit2Param.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | 4 | 2015-05-20T22:04:53.000Z | 2020-01-29T21:46:25.000Z | // Name: CglRedSplit2Param.hpp
// Author: Giacomo Nannicini
// Singapore University of Technology and Design
// Singapore
// email: nannicini@sutd.edu.sg
// Date: 03/09/09
//-----------------------------------------------------------------------------
// Copyright (C) 2010, Giaco... | 31.404175 | 106 | 0.61994 | Justin790126 |
82d2396de6ad77a52a1c742e64a447c041b27c56 | 2,873 | cpp | C++ | test/test-lib/mock_bufferevent.cpp | costanic/mbed-edge | 4900e950ff67f8974b7aeef955289ef56606c964 | [
"Apache-2.0"
] | 24 | 2018-03-27T16:44:18.000Z | 2020-04-28T15:28:34.000Z | test/test-lib/mock_bufferevent.cpp | costanic/mbed-edge | 4900e950ff67f8974b7aeef955289ef56606c964 | [
"Apache-2.0"
] | 19 | 2021-01-28T20:14:45.000Z | 2021-11-23T13:08:59.000Z | test/test-lib/mock_bufferevent.cpp | costanic/mbed-edge | 4900e950ff67f8974b7aeef955289ef56606c964 | [
"Apache-2.0"
] | 28 | 2018-04-02T02:36:48.000Z | 2020-10-13T05:37:16.000Z |
#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
extern "C" {
#include "jansson.h"
#include <string.h>
#include <assert.h>
#include "test-lib/evbase_mock.h"
#include "event2/bufferevent.h"
#include <event2/buffer.h>
#include "cpputest-custom-types/my_json_frame.h"
struct bufferevent *bufferevent... | 29.020202 | 100 | 0.676645 | costanic |
82dadffedccf0269ccbfa920736c9694cba9ed9a | 544 | cpp | C++ | tests/ParserTests.cpp | GregB76/commonItems | d616de2220ef26b758f1e6689d11a97bde278d9d | [
"MIT"
] | null | null | null | tests/ParserTests.cpp | GregB76/commonItems | d616de2220ef26b758f1e6689d11a97bde278d9d | [
"MIT"
] | null | null | null | tests/ParserTests.cpp | GregB76/commonItems | d616de2220ef26b758f1e6689d11a97bde278d9d | [
"MIT"
] | null | null | null | #include "../Parser.h"
#include "gtest/gtest.h"
#include <sstream>
TEST(ParserHelper_Tests, AbsorbBOMAbsorbsBOM)
{
std::stringstream input{"\xEF\xBB\xBFMore text"};
commonItems::absorbBOM(input);
char buffer[256];
input.getline(buffer, sizeof buffer);
ASSERT_EQ("More text", std::string{buffer});
}
TEST(Parse... | 20.923077 | 54 | 0.738971 | GregB76 |
82dd80756e3ab516b07e9a21e39779952b00c6c8 | 2,985 | cpp | C++ | week-3/day-11-sum-of-root-to-leaf-binary-numbers.cpp | suraj-kumbhar/january-2022-leetcoding-challenge | f3a4da1e552ab14651696009afc378fb2eef10a9 | [
"MIT"
] | null | null | null | week-3/day-11-sum-of-root-to-leaf-binary-numbers.cpp | suraj-kumbhar/january-2022-leetcoding-challenge | f3a4da1e552ab14651696009afc378fb2eef10a9 | [
"MIT"
] | null | null | null | week-3/day-11-sum-of-root-to-leaf-binary-numbers.cpp | suraj-kumbhar/january-2022-leetcoding-challenge | f3a4da1e552ab14651696009afc378fb2eef10a9 | [
"MIT"
] | null | null | null | // 1022. Sum of Root To Leaf Binary Numbers
// Easy
// 2256
// 138
// Add to List
// Share
// You are given the root of a binary tree where each node has a value 0 or 1. Each root-to-leaf path represents a binary number starting with the most significant bit.
// For example, if the path is 0 -> 1 -> 1 -> 0 -> 1, t... | 25.29661 | 168 | 0.516248 | suraj-kumbhar |
82e61ff22b2afa328b8e2af7ebca87feff5ac859 | 2,413 | cpp | C++ | shmdata/reader.cpp | nicobou/ubuntu-shmdata | f7c30ee32f3223e9add4a2f4a00404540a03a3d3 | [
"FTL"
] | null | null | null | shmdata/reader.cpp | nicobou/ubuntu-shmdata | f7c30ee32f3223e9add4a2f4a00404540a03a3d3 | [
"FTL"
] | null | null | null | shmdata/reader.cpp | nicobou/ubuntu-shmdata | f7c30ee32f3223e9add4a2f4a00404540a03a3d3 | [
"FTL"
] | null | null | null | /*
* Copyright (C) 2015 Nicolas Bouillot (http://www.nicolasbouillot.net)
*
* 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.1
* of the License, or (at your option) ... | 31.75 | 101 | 0.661832 | nicobou |
82e72612bcb8857c769a7927dfce1129e7ad0e16 | 841 | hpp | C++ | _thirdPartyLibs/include/boost/intrusive/detail/workaround.hpp | kamarianakis/glGA-edu | 17f0b33c3ea8efcfa8be01d41343862ea4e6fae0 | [
"BSD-4-Clause-UC"
] | 4 | 2018-08-22T03:43:30.000Z | 2021-03-11T18:20:27.000Z | _thirdPartyLibs/include/boost/intrusive/detail/workaround.hpp | kamarianakis/glGA-edu | 17f0b33c3ea8efcfa8be01d41343862ea4e6fae0 | [
"BSD-4-Clause-UC"
] | 7 | 2020-10-06T16:34:12.000Z | 2020-12-06T17:29:22.000Z | boost/boost/intrusive/detail/workaround.hpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | 71 | 2015-03-26T10:28:04.000Z | 2021-11-07T10:09:12.000Z | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/i... | 36.565217 | 97 | 0.627824 | kamarianakis |
82e9fb26d42359ec52dd44b53fd28cd8340d1858 | 507 | cpp | C++ | h-index/solution-1.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | h-index/solution-1.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | h-index/solution-1.cpp | tsenmu/leetcode | 6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int hIndex(vector<int>& citations) {
const int n = citations.size();
int count[n + 1]; // count[i] is the number of papers that has i citations.
memset(count, 0, sizeof count);
for (int i = 0; i < n; ++i) {
count[citations[i] > n ? n : citations[i]]++;
}
int su... | 25.35 | 84 | 0.5286 | tsenmu |
82ed76dc27fa5b54743a45b559d78787bfa873aa | 1,095 | cpp | C++ | syntax/src/Token.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | 3 | 2016-02-10T04:58:32.000Z | 2020-09-15T06:39:43.000Z | syntax/src/Token.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | null | null | null | syntax/src/Token.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2007-2015 Frank Mertens.
*
* Use of this source is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#include <flux/Memory>
#include <flux/syntax/Token>
namespace flux {
namespace syntax {
bool Token::project(TokenScreen *screen)
{
int i = i0_;
Token *chi... | 20.277778 | 68 | 0.526941 | frankencode |
82eed1326ed377b9ab216d3616a5aef69693f427 | 5,450 | cpp | C++ | test/mass_test.cpp | sousaw/BTE-Barna | 029ca43ef096c4b725d3aeb2955bc0df9ca544a9 | [
"MIT",
"BSD-3-Clause"
] | 5 | 2022-02-07T03:36:38.000Z | 2022-03-25T13:11:20.000Z | test/mass_test.cpp | sousaw/BTE-Barna | 029ca43ef096c4b725d3aeb2955bc0df9ca544a9 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | test/mass_test.cpp | sousaw/BTE-Barna | 029ca43ef096c4b725d3aeb2955bc0df9ca544a9 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | // Copyright 2015-2020 The ALMA Project Developers
//
// 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 l... | 39.781022 | 79 | 0.696881 | sousaw |
82f1b14008919d24828db5b51443e7975d633026 | 2,002 | cpp | C++ | Source/JavascriptEditor/JavascriptCustomColumn.cpp | toreskovic/Unreal.js-core | cdc7648b936bc8d9479bd2d11ef78567edfb7e38 | [
"BSD-3-Clause"
] | 232 | 2016-04-03T07:05:13.000Z | 2022-03-31T03:31:44.000Z | Source/JavascriptEditor/JavascriptCustomColumn.cpp | toreskovic/Unreal.js-core | cdc7648b936bc8d9479bd2d11ef78567edfb7e38 | [
"BSD-3-Clause"
] | 53 | 2016-06-09T08:49:33.000Z | 2022-03-10T19:31:12.000Z | Source/JavascriptEditor/JavascriptCustomColumn.cpp | toreskovic/Unreal.js-core | cdc7648b936bc8d9479bd2d11ef78567edfb7e38 | [
"BSD-3-Clause"
] | 108 | 2016-04-05T09:08:43.000Z | 2022-02-10T03:41:05.000Z | #include "JavascriptCustomColumn.h"
#include "Widgets/SBoxPanel.h"
#include "Widgets/Text/STextBlock.h"
#include "EditorStyleSet.h"
#include "IPropertyTable.h"
#include "IPropertyTableCell.h"
#include "JavascriptInvalidCellPresenter.h"
FJavascriptCustomColumn::FJavascriptCustomColumn(UJavascriptPropertyTable* InJavas... | 33.366667 | 214 | 0.773726 | toreskovic |
82f326f79e69b2c1bce64534f06b0c133548e6f4 | 1,553 | hpp | C++ | Dynamic_HD_Cpp_Code/include/base/enums.hpp | ThomasRiddick/DynamicHD | bff378a49ff6c709dc59c2d6835852e1083df20a | [
"BSD-3-Clause"
] | 1 | 2021-08-04T07:51:18.000Z | 2021-08-04T07:51:18.000Z | Dynamic_HD_Cpp_Code/include/base/enums.hpp | ThomasRiddick/DynamicHD | bff378a49ff6c709dc59c2d6835852e1083df20a | [
"BSD-3-Clause"
] | 1 | 2022-01-27T22:12:45.000Z | 2022-02-01T10:16:47.000Z | Dynamic_HD_Cpp_Code/include/base/enums.hpp | ThomasRiddick/DynamicHD | bff378a49ff6c709dc59c2d6835852e1083df20a | [
"BSD-3-Clause"
] | null | null | null | #ifndef ENUMS_HPP_
#define ENUMS_HPP_
enum height_types { flood_height = 0, connection_height, null_htype};
enum merge_types {no_merge = 0,
connection_merge_as_primary_flood_merge_as_primary = 1,
connection_merge_as_primary_flood_merge_as_secondary,
conne... | 51.766667 | 79 | 0.678042 | ThomasRiddick |
82f3e01a11a509e3920e736e00a5a30e4804ce61 | 742 | cpp | C++ | tests/optional_last_value.test.cpp | a-n-t-h-o-n-y/signals | 2db5f083a814b970dfd0f797873d9a894d80bf42 | [
"MIT"
] | 2 | 2018-09-03T03:51:41.000Z | 2020-05-29T06:27:49.000Z | tests/optional_last_value.test.cpp | a-n-t-h-o-n-y/signals | 2db5f083a814b970dfd0f797873d9a894d80bf42 | [
"MIT"
] | null | null | null | tests/optional_last_value.test.cpp | a-n-t-h-o-n-y/signals | 2db5f083a814b970dfd0f797873d9a894d80bf42 | [
"MIT"
] | 1 | 2020-11-03T05:37:27.000Z | 2020-11-03T05:37:27.000Z | #include <iterator>
#include <vector>
#include <signals/optional_last_value.hpp>
#include <catch2/catch.hpp>
using Result_t = sig::Optional_last_value<int>::Result_type;
TEST_CASE("Dereference each element and return last", "[optional_last_value]")
{
auto vec = std::vector<int>{1, 2, 3, 4, 5};
auto o... | 28.538462 | 78 | 0.650943 | a-n-t-h-o-n-y |
82f5fa9da40257d79e0d233ad337dd31b5a9d5f4 | 4,605 | cpp | C++ | MBExtender/plugins/GraphicsExtension/TextureSwapping.cpp | RandomityGuy/MBExtender | 5b5a4b5f8f9aafe76c6f50ab75f8a214ef22cb3c | [
"BSD-2-Clause"
] | 6 | 2018-11-04T00:40:15.000Z | 2021-12-22T03:12:48.000Z | MBExtender/plugins/GraphicsExtension/TextureSwapping.cpp | RandomityGuy/MBExtender | 5b5a4b5f8f9aafe76c6f50ab75f8a214ef22cb3c | [
"BSD-2-Clause"
] | null | null | null | MBExtender/plugins/GraphicsExtension/TextureSwapping.cpp | RandomityGuy/MBExtender | 5b5a4b5f8f9aafe76c6f50ab75f8a214ef22cb3c | [
"BSD-2-Clause"
] | 3 | 2020-05-17T21:27:12.000Z | 2021-04-11T05:49:37.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2017, The Platinum Team
//
// 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 restrict... | 34.62406 | 126 | 0.694463 | RandomityGuy |
82f97681d7b10aed5629e32f7108b71662732d4f | 28,203 | hpp | C++ | include/UnityEngine/Rect.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Rect.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Rect.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.ValueType
#include "System/ValueType.hpp"
// Including type: System.IEquatable... | 50.72482 | 188 | 0.725029 | RedBrumbler |
82ffff96cfb719e26fb888c5986fc65d4611660e | 3,899 | cpp | C++ | s32v234_sdk/libs/apex/common/src/hw_reg_user.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/libs/apex/common/src/hw_reg_user.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/libs/apex/common/src/hw_reg_user.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | 2 | 2021-01-21T02:06:16.000Z | 2021-01-28T10:47:37.000Z | /*****************************************************************************
*
* Freescale Confidential Proprietary
*
* Copyright (c) 2014 Freescale Semiconductor;
* All Rights Reserved
*
*****************************************************************************
*
* THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" A... | 32.22314 | 154 | 0.671967 | intesight |
d201601e961fd05d1fbf3e9ec225028979c7f113 | 1,541 | cpp | C++ | Beginners/DSA And Algorithm/testing.cpp | MaxFork/Hacktoberfest_2021 | c5e003e1b212886a69c1a53f73f39bcce874ac8b | [
"Apache-2.0"
] | 4 | 2021-10-07T07:48:25.000Z | 2022-01-02T20:22:27.000Z | Beginners/DSA And Algorithm/testing.cpp | MaxFork/Hacktoberfest_2021 | c5e003e1b212886a69c1a53f73f39bcce874ac8b | [
"Apache-2.0"
] | 14 | 2021-10-07T07:32:13.000Z | 2021-10-20T07:25:43.000Z | Beginners/DSA And Algorithm/testing.cpp | MaxFork/Hacktoberfest_2021 | c5e003e1b212886a69c1a53f73f39bcce874ac8b | [
"Apache-2.0"
] | 16 | 2021-10-07T17:57:54.000Z | 2021-10-30T06:50:46.000Z | //QUESTION-
Given a string and number of rows ‘n’. Print the string formed by concatenating n rows when the input string is written in row-wise Zig-Zag fashion.
Example 1:
Input:
str = "ABCDEFGH"
n = 2
Output: "ACEGBDFH"
Explanation:
Let us write input string in
Zig-Zag fashion in 2 rows.
A C E G
B D ... | 20.276316 | 148 | 0.477612 | MaxFork |
d20203b4aa0967987259d540f0d142497b341569 | 2,853 | cpp | C++ | studio/src/composition/fragment_item.cpp | blagodarin/aulos | c78ec06fd812c889ec618ac2e9f0cab9ad9db756 | [
"Apache-2.0"
] | null | null | null | studio/src/composition/fragment_item.cpp | blagodarin/aulos | c78ec06fd812c889ec618ac2e9f0cab9ad9db756 | [
"Apache-2.0"
] | null | null | null | studio/src/composition/fragment_item.cpp | blagodarin/aulos | c78ec06fd812c889ec618ac2e9f0cab9ad9db756 | [
"Apache-2.0"
] | null | null | null | // This file is part of the Aulos toolkit.
// Copyright (C) Sergei Blagodarin.
// SPDX-License-Identifier: Apache-2.0
#include "fragment_item.hpp"
#include "../theme.hpp"
#include <aulos/data.hpp>
#include <numeric>
#include <QGraphicsSceneEvent>
#include <QMenu>
#include <QPainter>
#include <QTextOption>
Fragmen... | 29.112245 | 179 | 0.725552 | blagodarin |
d2077097dae8e34235f3cff8d8c23a8c7775a574 | 1,706 | cpp | C++ | src/backend/graph_compiler/core/src/compiler/ir/graph/transform/inplace_transform.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | src/backend/graph_compiler/core/src/compiler/ir/graph/transform/inplace_transform.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | src/backend/graph_compiler/core/src/compiler/ir/graph/transform/inplace_transform.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://... | 37.086957 | 81 | 0.59027 | wuxun-zhang |
d20aa736356458c90d4261f73f9d368a8eedcf3a | 161,609 | cpp | C++ | src/stage/inventory-stage.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | 2 | 2019-02-28T00:28:08.000Z | 2019-10-20T14:39:48.000Z | src/stage/inventory-stage.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | src/stage/inventory-stage.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | 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++ and C#: http://www.viva64.com
// ----------------------------------------------------------------------------
// "THE BEER-WARE LICENSE" (Revision 42):
// <ztn@zurreal.com> wrote this fi... | 36.423034 | 101 | 0.550334 | tilnewman |
d20cbd3a95174dd27c9c2f632066d67c468b54da | 3,076 | hpp | C++ | src/3rd party/boost/boost/python/cast.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 8 | 2016-01-25T20:18:51.000Z | 2019-03-06T07:00:04.000Z | src/3rd party/boost/boost/python/cast.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | null | null | null | src/3rd party/boost/boost/python/cast.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 3 | 2016-02-14T01:20:43.000Z | 2021-02-03T11:19:11.000Z | // Copyright David Abrahams 2002. Permission to copy, use,
// modify, sell and distribute this software is granted provided this
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#ifndef CAST_D... | 28.747664 | 88 | 0.682705 | OLR-xray |
d20f1e105d69f39e077431eb965f349afee6c17b | 421 | cpp | C++ | VSUtility/VSTestTimer.cpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | 1 | 2018-04-17T14:03:36.000Z | 2018-04-17T14:03:36.000Z | VSUtility/VSTestTimer.cpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | VSUtility/VSTestTimer.cpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | #include <cmath>
#include <iostream>
#include <VSTestTimer.hpp>
using namespace VERITAS;
#ifdef TEST_MAIN
double x;
int main(int argc, char** argv)
{
VSTestTimer<VSTimerCoreIA32> a("a");
//VSTestTimer<VSTimerCoreUNIX> a("a");
a.start();
sleep(5);
a.stop();
std::cerr << a << std::endl;
VSTestTimer<VS... | 14.517241 | 40 | 0.629454 | sfegan |
d20f9d01af307e349a14442aabdbcf072370d6fd | 7,969 | cxx | C++ | MITK/Modules/IGIGui/Common/QmitkUltrasoundPinCalibrationWidget.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | MITK/Modules/IGIGui/Common/QmitkUltrasoundPinCalibrationWidget.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | MITK/Modules/IGIGui/Common/QmitkUltrasoundPinCalibrationWidget.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 30.532567 | 244 | 0.559167 | NifTK |
d20fe77e628a4c489e580e230c97385e8a75879e | 9,132 | hpp | C++ | contrib/autoboost/autoboost/mpl/aux_/full_lambda.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/mpl/aux_/full_lambda.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/mpl/aux_/full_lambda.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z |
#if !defined(AUTOBOOST_PP_IS_ITERATING)
///// header body
#ifndef AUTOBOOST_MPL_AUX_FULL_LAMBDA_HPP_INCLUDED
#define AUTOBOOST_MPL_AUX_FULL_LAMBDA_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2001-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy a... | 25.723944 | 93 | 0.711016 | CaseyCarter |
d2122a0c1a7254c61ce12a571e7a2ae2da37d6ea | 244 | cpp | C++ | old_content/Templates/Strings/##Z-Algo.cpp | codelegend/Algorithms | 7e1e3de99702ad3d5fa62d65d0afdb1d9de77394 | [
"MIT"
] | 5 | 2020-06-04T19:16:36.000Z | 2021-11-18T16:34:30.000Z | old_content/Templates/Strings/##Z-Algo.cpp | codelegend/Algorithms | 7e1e3de99702ad3d5fa62d65d0afdb1d9de77394 | [
"MIT"
] | 1 | 2020-09-29T09:10:40.000Z | 2020-09-29T09:10:40.000Z | old_content/Templates/Strings/##Z-Algo.cpp | codelegend/Algorithms | 7e1e3de99702ad3d5fa62d65d0afdb1d9de77394 | [
"MIT"
] | 1 | 2020-10-18T20:16:41.000Z | 2020-10-18T20:16:41.000Z | VI computeZ(string s) { VI z(s.size());
int l = -1, r = -1; z[0] = SZ(s);
FOR(i,1,SZ(s)) { z[i]=0;
if (r > i) z[i] = min(z[i-l],r-i+1);
while (s[i+z[i]] == s[z[i]]) ++z[i];
if (i+z[i]-1 > r) r = i+z[i]-1, l = i;
} return z; }
| 30.5 | 42 | 0.401639 | codelegend |
d21f1fbc407e3d4fa8a911a37ebb4826023f19c3 | 3,045 | cpp | C++ | clock.cpp | Spationaute/FullClock | a569d247ecfc7f79ea6f7f1da7d2de95f11475df | [
"MIT"
] | 1 | 2018-03-01T18:11:02.000Z | 2018-03-01T18:11:02.000Z | clock.cpp | Spationaute/FullClock | a569d247ecfc7f79ea6f7f1da7d2de95f11475df | [
"MIT"
] | null | null | null | clock.cpp | Spationaute/FullClock | a569d247ecfc7f79ea6f7f1da7d2de95f11475df | [
"MIT"
] | null | null | null | #include <stdio.h>
#if __MINGW32__
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
#endif
#if __linux__
#include <Fl/Fl.H>
#include <Fl/Fl_Window.H>
#include <Fl/Fl_Box.H>
#endif
#include <unistd.h>
#include <time.h>
#include "clockgauge.hpp"
unsigned int hour,min,sec,tz;
void printHelp()... | 21 | 83 | 0.63514 | Spationaute |
d22195c3a0eafd1b32733ecc802e0a166ee11353 | 18,272 | cpp | C++ | naive_bayes/resources/c++/time_support_test.cpp | antonnik/code-classifier | 9f3577bc2ac8efeca3c2c9cc9e0716518b2ca60b | [
"Apache-2.0"
] | null | null | null | naive_bayes/resources/c++/time_support_test.cpp | antonnik/code-classifier | 9f3577bc2ac8efeca3c2c9cc9e0716518b2ca60b | [
"Apache-2.0"
] | null | null | null | naive_bayes/resources/c++/time_support_test.cpp | antonnik/code-classifier | 9f3577bc2ac8efeca3c2c9cc9e0716518b2ca60b | [
"Apache-2.0"
] | null | null | null | /* Copyright 2013 10gen Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 49.652174 | 98 | 0.660574 | antonnik |
d22348925b08d10e63841f4f1ec382d5f3f73fa7 | 2,847 | cpp | C++ | mp/src/game/shared/Mod/FileConfig.cpp | hekar/luminousforts-2013 | 09f07df4def93fa0d774721375a6c7c9da26d71f | [
"Unlicense"
] | 7 | 2019-02-04T01:17:26.000Z | 2022-02-26T21:36:34.000Z | mp/src/game/server/Mod/FileConfig.cpp | hekar/luminousforts-2013 | 09f07df4def93fa0d774721375a6c7c9da26d71f | [
"Unlicense"
] | 11 | 2016-05-06T22:44:46.000Z | 2016-05-06T22:45:03.000Z | mp/src/game/server/Mod/FileConfig.cpp | hekar/luminousforts-2013 | 09f07df4def93fa0d774721375a6c7c9da26d71f | [
"Unlicense"
] | 2 | 2016-06-28T11:34:53.000Z | 2017-04-01T18:08:46.000Z | /* ***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/LGPL 2.1/GPL 2.0
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
...
for the specific language governing rights and limitations under the
License.
The Original Code... | 20.482014 | 77 | 0.720056 | hekar |
d229173380956ad0f75577449d80f9781cb64dc3 | 242 | cpp | C++ | 1913-maximum-product-difference-between-two-pairs/1913-maximum-product-difference-between-two-pairs.cpp | Edith-panda/leetcode | 175b4cbcd25b95b4863d793c876719eabb94dafc | [
"Apache-2.0"
] | null | null | null | 1913-maximum-product-difference-between-two-pairs/1913-maximum-product-difference-between-two-pairs.cpp | Edith-panda/leetcode | 175b4cbcd25b95b4863d793c876719eabb94dafc | [
"Apache-2.0"
] | null | null | null | 1913-maximum-product-difference-between-two-pairs/1913-maximum-product-difference-between-two-pairs.cpp | Edith-panda/leetcode | 175b4cbcd25b95b4863d793c876719eabb94dafc | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int maxProductDifference(vector<int>& arr) {
sort(arr.begin(), arr.end());
int prod = 1;
int n =arr.size();
prod = (arr[n-1]*arr[n-2]) - arr[0]*arr[1];
return prod;
}
}; | 24.2 | 51 | 0.508264 | Edith-panda |
d229ed713de25b82be6b9a6061bbc7ebe03888fb | 249 | cpp | C++ | 7-enum/exercise-1/main.cpp | zhangzhuang15/Step-Cplusplus | a45f72847054a6e13b94835910d10fd78036e3b6 | [
"MIT"
] | 1 | 2022-02-02T05:46:02.000Z | 2022-02-02T05:46:02.000Z | 7-enum/exercise-1/main.cpp | zhangzhuang15/Step-Cplusplus | a45f72847054a6e13b94835910d10fd78036e3b6 | [
"MIT"
] | null | null | null | 7-enum/exercise-1/main.cpp | zhangzhuang15/Step-Cplusplus | a45f72847054a6e13b94835910d10fd78036e3b6 | [
"MIT"
] | null | null | null | #include <iostream>
enum Protocol {
TCP = 5,
UDP = 10
};
int main() {
Protocol t = TCP;
if(t == 5) std::cout << "is TCP" << std::endl;
if(t == TCP) std::cout << "is TCP too" << std::endl;
}
// 运行代码 make run c=7 e=1
// 运行成功 | 13.105263 | 56 | 0.502008 | zhangzhuang15 |
d22a8eea158e36860b50d1de41a46b424bfa2e0c | 1,878 | cpp | C++ | libpvkernel/src/filter/PVChunkFilterByElt.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvkernel/src/filter/PVChunkFilterByElt.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvkernel/src/filter/PVChunkFilterByElt.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | //
// MIT License
//
// © ESI Group, 2015
//
// 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, pu... | 36.823529 | 95 | 0.674654 | inendi-inspector |
d22ba3906e544ac42054952fd17ea89a22d029fc | 1,734 | hpp | C++ | include/lexy/engine/until.hpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | 2 | 2021-09-02T07:59:45.000Z | 2021-09-02T07:59:47.000Z | include/lexy/engine/until.hpp | ExternalRepositories/lexy | edc6bd4aabd6f0ecbddba6f2bbf9bd2c6e4fa61d | [
"BSL-1.0"
] | null | null | null | include/lexy/engine/until.hpp | ExternalRepositories/lexy | edc6bd4aabd6f0ecbddba6f2bbf9bd2c6e4fa61d | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2020-2021 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef LEXY_ENGINE_UNTIL_HPP_INCLUDED
#define LEXY_ENGINE_UNTIL_HPP_INCLUDED
#include <lexy/engine/base.hpp>
namespace... | 24.083333 | 83 | 0.670127 | IohannRabeson |
d22c173c91b8f0ea7dcf16c2a27d395b1d82ef8a | 12,558 | cc | C++ | src/Retic.cc | enotnadoske/drunos | 79b72078e613c9c5d4e5c37721b726ca3374299b | [
"Apache-2.0"
] | null | null | null | src/Retic.cc | enotnadoske/drunos | 79b72078e613c9c5d4e5c37721b726ca3374299b | [
"Apache-2.0"
] | null | null | null | src/Retic.cc | enotnadoske/drunos | 79b72078e613c9c5d4e5c37721b726ca3374299b | [
"Apache-2.0"
] | null | null | null | #include "Retic.hh"
#include <chrono>
#include "Controller.hh"
#include "Common.hh"
#include "oxm/openflow_basic.hh"
#include "retic/applier.hh"
#include "retic/fdd.hh"
#include "retic/fdd_compiler.hh"
#include "retic/fdd_translator.hh"
#include "retic/traverse_fdd.hh"
#include "retic/tracer.hh"
#include "retic/leaf_... | 34.595041 | 122 | 0.602166 | enotnadoske |
d22d1ea2c90f52d88e0cc4b0f2fc7ad28b30f78a | 527 | cpp | C++ | 1101-9999/1387. Sort Integers by The Power Value.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1101-9999/1387. Sort Integers by The Power Value.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1101-9999/1387. Sort Integers by The Power Value.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | class Solution
{
unordered_map<int, int> m;
public:
int getKth(int lo, int hi, int k)
{
vector<pair<int, int>> nums;
for (; lo <= hi; ++lo)
{
nums.emplace_back(make_pair(getP(lo), lo));
}
nth_element(nums.begin(), nums.begin() + k - 1, nums.end());
return nums[k - 1].second;
}
i... | 15.969697 | 64 | 0.440228 | erichuang1994 |
d22e9c3e02a902919eb1af2c57aa4b6a7a23eac4 | 513 | cpp | C++ | Problems/0141. Linked List Cycle.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0141. Linked List Cycle.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0141. Linked List Cycle.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
bool hasCycle(ListNode *head) {
ListNode *slow_ptr{head}, *fast_ptr {head};
while(slow_ptr and fast_ptr and fast_ptr... | 23.318182 | 56 | 0.536062 | KrKush23 |
d232e13adc509fa5d9ae03af48c554185abada2d | 10,275 | cpp | C++ | source/fuzz/transformation_add_bit_instruction_synonym.cpp | DaveTheGameDev/SPIRV-Tools | 693d564db4e93fb249e938d84528cfc711d8d22b | [
"Apache-2.0"
] | 1 | 2021-05-23T12:58:09.000Z | 2021-05-23T12:58:09.000Z | source/fuzz/transformation_add_bit_instruction_synonym.cpp | DaveTheGameDev/SPIRV-Tools | 693d564db4e93fb249e938d84528cfc711d8d22b | [
"Apache-2.0"
] | null | null | null | source/fuzz/transformation_add_bit_instruction_synonym.cpp | DaveTheGameDev/SPIRV-Tools | 693d564db4e93fb249e938d84528cfc711d8d22b | [
"Apache-2.0"
] | 1 | 2021-11-06T21:48:43.000Z | 2021-11-06T21:48:43.000Z | // Copyright (c) 2020 André Perez Maselco
//
// 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 a... | 40.612648 | 80 | 0.688175 | DaveTheGameDev |
d2346914259862735967295291d914357f3b1286 | 836 | cpp | C++ | common/src/helpdialog.cpp | ScenarioCPP/scenario | 8559e6053e208dd7ddceb2b8374309314e19c946 | [
"MIT"
] | null | null | null | common/src/helpdialog.cpp | ScenarioCPP/scenario | 8559e6053e208dd7ddceb2b8374309314e19c946 | [
"MIT"
] | null | null | null | common/src/helpdialog.cpp | ScenarioCPP/scenario | 8559e6053e208dd7ddceb2b8374309314e19c946 | [
"MIT"
] | null | null | null | #include "helpdialog.h"
#include "ui_helpdialog.h"
#include <QVBoxLayout>
//#include <QWebEngineView>
HelpDialog::HelpDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::HelpDialog)
{
ui->setupUi(this);
/*!
Windows has an issue with this and only works with VS
so we'll work with it later
... | 26.967742 | 90 | 0.645933 | ScenarioCPP |
d23484f90092d1c05d4dacf38830ef0bba89222e | 485 | cpp | C++ | regression/esbmc-cpp/qt/QMap/map_unite_bug/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/qt/QMap/map_unite_bug/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/qt/QMap/map_unite_bug/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | // QMap::insert
#include <iostream>
#include <QMap>
#include <cassert>
using namespace std;
int main ()
{
QMap<char,int> first;
QMap<char,int> second;
//key() insert function version (single parameter):
first.insert ( 'a', 100 );
first.insert ( 'b', 200 );
first.insert ( 'c', 300 );
second.... | 18.653846 | 53 | 0.573196 | shmarovfedor |
d237469ffcd6c48bb1abdda7fa379e32b4237af4 | 6,005 | cpp | C++ | src/sys/macosx/platform-dirs-macosx.cpp | ezavada/pdg | c7260ede7efb2cba313b9413be57cb5bb222b716 | [
"BSD-2-Clause"
] | null | null | null | src/sys/macosx/platform-dirs-macosx.cpp | ezavada/pdg | c7260ede7efb2cba313b9413be57cb5bb222b716 | [
"BSD-2-Clause"
] | null | null | null | src/sys/macosx/platform-dirs-macosx.cpp | ezavada/pdg | c7260ede7efb2cba313b9413be57cb5bb222b716 | [
"BSD-2-Clause"
] | null | null | null | // -----------------------------------------------
// platform-dirs-macosx.cpp
//
// Mac OS X implementation of platform specific directory setup functions
// Cocoa implementation
//
// Written by Ed Zavada, 2004-2012
// Copyright (c) 2012, Dream Rock Studios, LLC
//
// Permission is hereby granted, free of charge, to... | 36.393939 | 108 | 0.683764 | ezavada |
d23929f37757c1f725399fcec77a4b93405f8e43 | 4,484 | cpp | C++ | tc tournaments/SafeDrive.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc tournaments/SafeDrive.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc tournaments/SafeDrive.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <map>
using namespace std;
long long T, D;
int N;
long long Lpos[51], La[51], Lb[51];
/*
In other words, between time 0 (inclusive) and tim... | 35.872 | 317 | 0.565789 | ibudiselic |
d2393b8cb4f7241f7b82d235212d32ae1ed1fdc4 | 1,362 | cpp | C++ | Dode/Dode/TaskManager/ThreadPool.cpp | vastamat/Data-Oriented-Design-Practice | f3114462331b43cedbdbe980493b81184e1970f5 | [
"MIT"
] | null | null | null | Dode/Dode/TaskManager/ThreadPool.cpp | vastamat/Data-Oriented-Design-Practice | f3114462331b43cedbdbe980493b81184e1970f5 | [
"MIT"
] | null | null | null | Dode/Dode/TaskManager/ThreadPool.cpp | vastamat/Data-Oriented-Design-Practice | f3114462331b43cedbdbe980493b81184e1970f5 | [
"MIT"
] | null | null | null | #include "ThreadPool.h"
namespace dode
{
ThreadPool::ThreadPool()
: m_Tasks()
, m_Threads()
, m_ConditionToAwake()
, m_Mutex()
, m_IsShuttingDown( false )
{
auto numberOfSupportedThreadsHint = std::thread::hardware_concurrency();
m_Threads.reserve( number... | 23.084746 | 104 | 0.476505 | vastamat |
d23cf0099aff5f230c77285c9d28e9fbc52635e9 | 3,022 | cpp | C++ | tapi-master/lib/Driver/DriverUtils.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | tapi-master/lib/Driver/DriverUtils.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | tapi-master/lib/Driver/DriverUtils.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | //===- lib/Driver/DriverUtils.cpp - TAPI Driver Utilities -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 31.154639 | 80 | 0.594639 | JunyiXie |
d23dc2402cd9ebfae7c384abba2fb28c389f0aa9 | 5,530 | cc | C++ | src/ast/operand.cc | thegameg/nolimix86 | dd4d092d4b3df16f5628bee8aee12636a14a8ee6 | [
"MIT"
] | 14 | 2016-03-21T15:09:58.000Z | 2019-04-20T21:15:18.000Z | src/ast/operand.cc | carllevif/nolimix86 | dd4d092d4b3df16f5628bee8aee12636a14a8ee6 | [
"MIT"
] | null | null | null | src/ast/operand.cc | carllevif/nolimix86 | dd4d092d4b3df16f5628bee8aee12636a14a8ee6 | [
"MIT"
] | 2 | 2016-03-22T13:47:07.000Z | 2016-06-08T07:13:22.000Z | #include <ast/operand.hh>
namespace nolimix86
{
namespace ast
{
operand::operand(temp_t temp_num, temp_tag)
: impl_{std::make_unique<temp_impl>(temp_num)}
, type_{type::TEMP}
{
}
operand::operand(const std::string& reg_name, reg_tag)
: impl_{std::make_unique<reg_impl>(reg_name)... | 20.481481 | 80 | 0.577577 | thegameg |
d23fab4b115d6a093ec4eddd0c431e3b2727e311 | 7,510 | hpp | C++ | src/core/geometry/HybridPixelDetectorModel.hpp | koenvdbrandt/Dynaxion | b7ebf2cc6860d721ae5eaba66e0bead866a60715 | [
"MIT"
] | 4 | 2017-11-09T17:13:57.000Z | 2019-03-01T08:47:05.000Z | src/core/geometry/HybridPixelDetectorModel.hpp | koenvdbrandt/Dynaxion | b7ebf2cc6860d721ae5eaba66e0bead866a60715 | [
"MIT"
] | 80 | 2017-08-08T10:46:18.000Z | 2021-12-03T03:31:32.000Z | src/core/geometry/HybridPixelDetectorModel.hpp | koenvdbrandt/Dynaxion | b7ebf2cc6860d721ae5eaba66e0bead866a60715 | [
"MIT"
] | 4 | 2017-09-25T08:58:02.000Z | 2020-11-26T12:14:17.000Z | /**
* @file
* @brief Parameters of a hybrid pixel detector model
*
* @copyright Copyright (c) 2017-2020 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges a... | 42.191011 | 122 | 0.616644 | koenvdbrandt |
d24a9a005cfc8cc8623046c53c59e696e348f7c6 | 3,009 | cpp | C++ | XJ Contests/2020/12.29/BB.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2020/12.29/BB.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2020/12.29/BB.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | /*
the vast starry sky,
bright for those who chase the light.
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define mk make_pair
const int inf=(int)1e9;
const ll INF=(ll)5e18;
const int MOD=1e9+7;
int _abs(int x){return x<0 ? -x : x;}
int add(int x,int y){x+=y; return ... | 29.792079 | 98 | 0.416417 | jinzhengyu1212 |
d24e86f26c182665f5c688048b455bb852928c5a | 2,667 | cpp | C++ | EZOJ/Contests/1423/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1423/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1423/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bo... | 19.610294 | 76 | 0.544807 | sshockwave |
d24eb88fd76598a8d90d40fef976102cf9c97029 | 8,875 | cxx | C++ | plugins/crg_grid/grid.cxx | tobias-haenel/cgv-density-estimation | 3be1b07a7b21d1cfd956fb19b5f0d83fb51bd308 | [
"BSD-3-Clause"
] | null | null | null | plugins/crg_grid/grid.cxx | tobias-haenel/cgv-density-estimation | 3be1b07a7b21d1cfd956fb19b5f0d83fb51bd308 | [
"BSD-3-Clause"
] | null | null | null | plugins/crg_grid/grid.cxx | tobias-haenel/cgv-density-estimation | 3be1b07a7b21d1cfd956fb19b5f0d83fb51bd308 | [
"BSD-3-Clause"
] | null | null | null | #include "grid.h"
#include <cgv/gui/key_event.h>
#include <cgv/base/find_action.h>
#include <cgv/signal/rebind.h>
#include <cgv/gui/trigger.h>
#include <cgv/utils/ostream_printf.h>
#include <cgv/utils/tokenizer.h>
#include <cgv/render/view.h>
#include <cgv/math/det.h>
#include <cgv/math/point_operations.h>
#include <cg... | 26.492537 | 178 | 0.665577 | tobias-haenel |
d9284fb62db4f8f220706f02dd5244125b3f9598 | 2,209 | hpp | C++ | 2SST/2LW/useful.hpp | AVAtarMod/University | 3c784a1e109b7a6f6ea495278ec3dc126258625a | [
"BSD-3-Clause"
] | 1 | 2021-07-31T06:55:08.000Z | 2021-07-31T06:55:08.000Z | 2SST/2LW/useful.hpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | 1 | 2020-11-25T12:00:11.000Z | 2021-01-13T08:51:52.000Z | 2SST/2LW/useful.hpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | null | null | null | #ifndef USEFUL
#define USEFUL
#include <iostream>
/**
* @brief Print text and return user answer.
* @param text Text for user
* @param storage Variable for store result.
* @param size Size of returned line (for string/c-string)
* @return Any type
*/
template <class T>
void printAndScan(const char *t... | 22.313131 | 61 | 0.622454 | AVAtarMod |
d93a4aa057893fffd2b83f4611d075c60a110335 | 517 | cpp | C++ | Network_Chess/rook.cpp | NBU-NetworkTechnologies-2016/NETB280-NetworkChess | 59a868ad5dad5027c343746bf7e7a929e313994e | [
"MIT"
] | null | null | null | Network_Chess/rook.cpp | NBU-NetworkTechnologies-2016/NETB280-NetworkChess | 59a868ad5dad5027c343746bf7e7a929e313994e | [
"MIT"
] | null | null | null | Network_Chess/rook.cpp | NBU-NetworkTechnologies-2016/NETB280-NetworkChess | 59a868ad5dad5027c343746bf7e7a929e313994e | [
"MIT"
] | null | null | null | #include "rook.h"
Rook::Rook()
{
}
Rook::~Rook()
{
// For the sake of less code, there will be a few invalid turns here.
}
/*
* Generates all possible moves for the piece
*/
QVector<Move > Rook::getPossibleMoves(int x, int y)
{
qDebug() << "Rook getPossibleMoves!!!!";
QVector<Move> a;
for(int i =... | 15.666667 | 73 | 0.547389 | NBU-NetworkTechnologies-2016 |
d93e6f1ac96794dab9f5bab3911e41b19e7cc4c4 | 4,242 | cpp | C++ | src/nc/core/Driver.cpp | treadstoneproject/tracethreat_nrml | bcf666b01c20f7da4234fed018dad3b2cf4d3d28 | [
"Apache-2.0"
] | 6 | 2016-09-06T02:10:08.000Z | 2021-01-19T09:02:04.000Z | src/nc/core/Driver.cpp | treadstoneproject/tracethreat_nrml | bcf666b01c20f7da4234fed018dad3b2cf4d3d28 | [
"Apache-2.0"
] | null | null | null | src/nc/core/Driver.cpp | treadstoneproject/tracethreat_nrml | bcf666b01c20f7da4234fed018dad3b2cf4d3d28 | [
"Apache-2.0"
] | 6 | 2015-10-02T14:11:45.000Z | 2021-01-19T09:02:07.000Z | /* The file is part of Snowman decompiler. */
/* See doc/licenses.asciidoc for the licensing information. */
#include "Driver.h"
#include <nc/common/Foreach.h>
#include <nc/common/Exception.h>
#include <nc/core/arch/Architecture.h>
#include <nc/core/arch/Disassembler.h>
#include <nc/core/arch/Instructions.h>
#includ... | 33.140625 | 114 | 0.627063 | treadstoneproject |
d93fb8eed042558999466c2d155db0e369a6b4a1 | 1,125 | cpp | C++ | chapter9/t9.18.cpp | xflcx1991/c_plus_plus_primer_exercise | 3904fc936c14c6959968eb6d681f3151a72ccc44 | [
"MulanPSL-1.0"
] | 1 | 2020-02-24T07:54:44.000Z | 2020-02-24T07:54:44.000Z | chapter9/t9.18.cpp | xflcx1991/c_plus_plus_primer_exercise | 3904fc936c14c6959968eb6d681f3151a72ccc44 | [
"MulanPSL-1.0"
] | null | null | null | chapter9/t9.18.cpp | xflcx1991/c_plus_plus_primer_exercise | 3904fc936c14c6959968eb6d681f3151a72ccc44 | [
"MulanPSL-1.0"
] | null | null | null | /*************************************************************************************
* Copyright (c) 2019 xffish
* c_plus_plus_primer_exercise is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://lic... | 28.846154 | 86 | 0.577778 | xflcx1991 |
d9434d0bfb934e6525f8c6b3cca7c6aa61009237 | 684 | cpp | C++ | DirectProgramming/DPC++/Jupyter/oneapi-essentials-training/09_DPCPP_Buffers_And_Accessors_Indepth/src/buffer_creation.cpp | abijaz/oneAPI-samples | 41aca6740afbccb5bd5b56d318fda151457a5199 | [
"MIT"
] | 1 | 2022-01-06T02:50:30.000Z | 2022-01-06T02:50:30.000Z | DirectProgramming/DPC++/Jupyter/oneapi-essentials-training/09_DPCPP_Buffers_And_Accessors_Indepth/src/buffer_creation.cpp | abijaz/oneAPI-samples | 41aca6740afbccb5bd5b56d318fda151457a5199 | [
"MIT"
] | 4 | 2021-07-05T15:35:22.000Z | 2022-03-28T15:51:54.000Z | DirectProgramming/DPC++/Jupyter/oneapi-essentials-training/09_DPCPP_Buffers_And_Accessors_Indepth/src/buffer_creation.cpp | junxnone/oneAPI-samples | f414747b5676688d690655c6043b71577027fc19 | [
"MIT"
] | 3 | 2020-08-24T00:36:23.000Z | 2022-01-09T03:17:48.000Z | //==============================================================
// Copyright © 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
// =============================================================
#include <CL/sycl.hpp>
using namespace sycl;
int main() {
// Create a buffer of ints from an input iterator... | 24.428571 | 71 | 0.52924 | abijaz |
d947fbf21ef46d3a96b97247ab889a8b7bed1f94 | 52 | hpp | C++ | src/boost_spirit_home_lex_lexer_sequence.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_lex_lexer_sequence.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_lex_lexer_sequence.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/lex/lexer/sequence.hpp>
| 26 | 51 | 0.788462 | miathedev |
d949a1c4cb17876ebaf96e97466ade05d45dce93 | 1,300 | cpp | C++ | images/imagedb/src/db/db.cpp | jeoygin/gadget | de703b53576eac7d11d625316a46a47e57596dcb | [
"MIT"
] | null | null | null | images/imagedb/src/db/db.cpp | jeoygin/gadget | de703b53576eac7d11d625316a46a47e57596dcb | [
"MIT"
] | null | null | null | images/imagedb/src/db/db.cpp | jeoygin/gadget | de703b53576eac7d11d625316a46a47e57596dcb | [
"MIT"
] | null | null | null | #include "db/db.hpp"
#include "db/db_filedb.hpp"
#ifdef WITH_LEVELDB
#include "db/db_leveldb.hpp"
#endif
#ifdef WITH_LMDB
#include "db/db_lmdb.hpp"
#endif
#ifdef WITH_ROCKSDB
#include "db/db_rocksdb.hpp"
#endif
#include <string>
#include <iostream>
namespace db {
DB* get_db(const string& backend) {
#ifdef WITH... | 19.117647 | 64 | 0.528462 | jeoygin |
d94df9b9562ebc0ac9bd4c4a3528e04aadeddacd | 12,434 | cpp | C++ | extensions/civetweb/processors/ListenHTTP.cpp | NiFiLocal/nifi-minifi-cpp | 8e153bed7fc782e1de1e782543016ebda3579d66 | [
"Apache-2.0"
] | 1 | 2021-03-23T17:03:27.000Z | 2021-03-23T17:03:27.000Z | extensions/civetweb/processors/ListenHTTP.cpp | minifirocks/nifi-minifi-cpp | d6618b99915d8b1ec05ac26e3333d3ef6ca9559c | [
"Apache-2.0"
] | 1 | 2017-12-04T19:02:18.000Z | 2017-12-05T12:12:28.000Z | extensions/civetweb/processors/ListenHTTP.cpp | NiFiLocal/nifi-minifi-cpp | 8e153bed7fc782e1de1e782543016ebda3579d66 | [
"Apache-2.0"
] | null | null | null | /**
* @file ListenHTTP.cpp
* ListenHTTP class implementation
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You un... | 37.227545 | 182 | 0.697442 | NiFiLocal |
d955a1a9f3f6b5ebc902ec73b45e65ca4c8f6641 | 2,289 | hpp | C++ | include/bsl/exchange.hpp | connojd/bsl | 9adebf89bf34ac14d92b26007cb19d5508de54ac | [
"MIT"
] | null | null | null | include/bsl/exchange.hpp | connojd/bsl | 9adebf89bf34ac14d92b26007cb19d5508de54ac | [
"MIT"
] | null | null | null | include/bsl/exchange.hpp | connojd/bsl | 9adebf89bf34ac14d92b26007cb19d5508de54ac | [
"MIT"
] | null | null | null | /// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... | 35.765625 | 81 | 0.682394 | connojd |
d956661aaf39d2566e29761076a9c8d37161269d | 819 | cpp | C++ | Semester-1/Homework-11/hw-11.2/hw-11.2.cpp | Timur-Zinnatulin/Homework | 7f36f4e347fd7ab3e1d7186accabbca03301bf5a | [
"Apache-2.0"
] | null | null | null | Semester-1/Homework-11/hw-11.2/hw-11.2.cpp | Timur-Zinnatulin/Homework | 7f36f4e347fd7ab3e1d7186accabbca03301bf5a | [
"Apache-2.0"
] | null | null | null | Semester-1/Homework-11/hw-11.2/hw-11.2.cpp | Timur-Zinnatulin/Homework | 7f36f4e347fd7ab3e1d7186accabbca03301bf5a | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include "graph.h"
#include "testing-routine.h"
using namespace std;
int main()
{
if (testingRoutine())
{
cout << "Testing successful!\n\n";
}
ifstream fin("input.txt");
cout << "Reading graph from input.txt...\n";
int amountOfCities = 0;
fin >> amoun... | 24.088235 | 92 | 0.691087 | Timur-Zinnatulin |
d95745ec2925be69595c96a043b1ca0d59b03ecc | 197 | cc | C++ | clownfish/base/tests/Timestamp_test.cc | liangyi/clownfish | fb39587ec9b9557fd213d9bd36e699d18100f0be | [
"MIT"
] | null | null | null | clownfish/base/tests/Timestamp_test.cc | liangyi/clownfish | fb39587ec9b9557fd213d9bd36e699d18100f0be | [
"MIT"
] | null | null | null | clownfish/base/tests/Timestamp_test.cc | liangyi/clownfish | fb39587ec9b9557fd213d9bd36e699d18100f0be | [
"MIT"
] | null | null | null | #include <clownfish/base/Timestamp.h>
#include <iostream>
using namespace std;
using namespace clownfish;
int main()
{
Timestamp t = Timestamp::now();
cout << t.toFmtString() << endl;
}
| 15.153846 | 37 | 0.680203 | liangyi |
d9588551c08d6028d9c4df7df5f6c20b854e3b93 | 1,797 | hpp | C++ | hpx/lcos/sync_fwd.hpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2019-07-04T10:18:01.000Z | 2019-07-04T10:18:01.000Z | hpx/lcos/sync_fwd.hpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2017-07-24T07:16:26.000Z | 2017-07-24T08:03:33.000Z | hpx/lcos/sync_fwd.hpp | biddisco/hpx | 2d244e1e27c6e014189a6cd59c474643b31fad4b | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2018 Hartmut Kaiser
//
// 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)
///////////////////////////////////////////////////////////////////////////////
#if !defined(HPX_LCOS_SYNC_FWD_JUL_21... | 33.277778 | 80 | 0.535337 | bremerm31 |
d95db651690802106b47a5ed22784a45481dca7e | 897 | hpp | C++ | src/sim-cache/config.hpp | EverNebula/RISC-V_Simulator | 23dcb6885834ec5f922e0ccf2546a1b0e66aca7b | [
"MIT"
] | null | null | null | src/sim-cache/config.hpp | EverNebula/RISC-V_Simulator | 23dcb6885834ec5f922e0ccf2546a1b0e66aca7b | [
"MIT"
] | null | null | null | src/sim-cache/config.hpp | EverNebula/RISC-V_Simulator | 23dcb6885834ec5f922e0ccf2546a1b0e66aca7b | [
"MIT"
] | null | null | null | #ifndef CONFIG_HEADER
#define CONFIG_HEADER
#include <stdio.h>
extern char *valid_cfg_u32[40];
#define ConfigU32Num 35
enum CFG_U32
{
SFT_CYC, // shift
ADD32_CYC, // add 32bit
ADD64_CYC, // add 64bit
MUL32_CYC, // mul 32bit
MUL64_CYC, // mul 64bit
DIV32_CYC, // div 32bit / rem 32bit
DIV64_CYC, ... | 14.467742 | 38 | 0.70903 | EverNebula |
d96090a4f2da23194f50e24004d7e9216afd209c | 11,879 | cpp | C++ | Target/LIN64/CCore/src/sys/SysFileSystem.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | 1 | 2016-05-22T07:51:02.000Z | 2016-05-22T07:51:02.000Z | Target/LIN64/CCore/src/sys/SysFileSystem.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | Target/LIN64/CCore/src/sys/SysFileSystem.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | /* SysFileSystem.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 2.00
//
// Tag: Target/LIN64
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
/... | 18.474339 | 95 | 0.612762 | SergeyStrukov |
d961ae100a80f288f45b0e5da81fd3037f5ba2c1 | 1,567 | cpp | C++ | Codeforces/2A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/2A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/2A.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
struct player{
char name[34];
int points;
} rounds[1000], players[1000], results[1000], actualPlayer;
int cantPlayers, cantResults, maxN=-(1e8);
int n;
bool found;
int addScore(){
for(int i=0; i<cantPlayers; i++){
if(strcmp(players[i].name, actualPlayer.name)==0... | 24.873016 | 60 | 0.52074 | DT3264 |
d9644ea5b4a17e2cdd29fa5fccd7b380893be527 | 790 | cpp | C++ | codeforces/626A.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | codeforces/626A.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | codeforces/626A.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
stack<char>st;
map<char,char>mp;
int main()
{
int n;
scanf("%d",&n);
string line;
char ch1,ch2;
cin>>line;
if(n==1) return cout<<line<<endl,0;
for(int i=n-1; i>-1; i--)
{
st.push(line[i]);
}
while(st.size()>1)
{
ch1=st.top();
st.pop();
ch2=st.top();
... | 20.789474 | 82 | 0.516456 | Shisir |
d96923ca13fac3e223fc8c297ec9c698d1d586a0 | 1,775 | cpp | C++ | essential_cpp/01_Array_Basics.cpp | parasguglani1/DSA_Practice | c8b5affe0d8789499ba12c7a4c5f175ab7ab5595 | [
"MIT"
] | 1 | 2022-01-29T06:12:32.000Z | 2022-01-29T06:12:32.000Z | essential_cpp/01_Array_Basics.cpp | parasguglani1/DSA_Practice | c8b5affe0d8789499ba12c7a4c5f175ab7ab5595 | [
"MIT"
] | null | null | null | essential_cpp/01_Array_Basics.cpp | parasguglani1/DSA_Practice | c8b5affe0d8789499ba12c7a4c5f175ab7ab5595 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
/*
* Array Basics
*
* int A[5];
*
* This is called a declaration of an array, you declare that you want to create an empty array
* that is 5 spaces in length starting at index 0. The array is then stored in the main memory.
*
* int A[5] = {1, 2, 3, 4, 5};
*
* You... | 25 | 95 | 0.561127 | parasguglani1 |
d96c6800ef44af90935e48c8a5fbc6eb0fdf2ef0 | 11,424 | hpp | C++ | Nacro/SDK/FN_ItemInspectUpgradeConfirmation_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_ItemInspectUpgradeConfirmation_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_ItemInspectUpgradeConfirmation_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// WidgetBlueprintGeneratedClass ItemInspectUpgrade... | 168 | 644 | 0.752889 | Milxnor |
d96d57d667e032f5b9e9ecdf1f3271089148d42b | 4,109 | hpp | C++ | include/munin/filled_box.hpp | KazDragon/munin | ca5ae77cf5f75f6604fddd1a39393fa6acb88769 | [
"MIT"
] | 6 | 2017-07-15T10:16:20.000Z | 2021-06-14T10:02:37.000Z | include/munin/filled_box.hpp | KazDragon/munin | ca5ae77cf5f75f6604fddd1a39393fa6acb88769 | [
"MIT"
] | 243 | 2017-05-01T19:27:07.000Z | 2021-09-01T09:32:49.000Z | include/munin/filled_box.hpp | KazDragon/munin | ca5ae77cf5f75f6604fddd1a39393fa6acb88769 | [
"MIT"
] | 2 | 2019-07-16T00:29:43.000Z | 2020-09-19T09:49:00.000Z | #pragma once
#include "munin/basic_component.hpp"
#include <terminalpp/element.hpp>
#include <functional>
namespace munin {
//* =========================================================================
/// \brief A class that models a box that is always completely filled with
/// a given element.
//* ====... | 46.168539 | 78 | 0.431492 | KazDragon |
d971975a7581d68d956808be1bf0b10d397e4de2 | 995 | cpp | C++ | Source/AProject/AAPlayerController.cpp | Mandey4172/ASpacePhip | 09450e2e61d178e5dfee189a0228c27313eb95aa | [
"MIT"
] | null | null | null | Source/AProject/AAPlayerController.cpp | Mandey4172/ASpacePhip | 09450e2e61d178e5dfee189a0228c27313eb95aa | [
"MIT"
] | null | null | null | Source/AProject/AAPlayerController.cpp | Mandey4172/ASpacePhip | 09450e2e61d178e5dfee189a0228c27313eb95aa | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "AAPlayerController.h"
#include "AACamera.h"
#include "Engine.h"
AAAPlayerController::AAAPlayerController()
{
CameraClass = AAACamera::StaticClass();
}
void AAAPlayerController::Tick(float DeltaTime)
{
Super::Tick(... | 22.613636 | 87 | 0.686432 | Mandey4172 |
d972bc2d96395bad683b554f8eec5ca83bf615d1 | 1,967 | cpp | C++ | src/miniframes/toolbarframe.cpp | helloer/polybobin | 63b2cea40d3afcfc9d6f62f49acbfacf6a8783e1 | [
"MIT"
] | 8 | 2016-10-06T11:49:14.000Z | 2021-11-06T21:06:36.000Z | src/miniframes/toolbarframe.cpp | helloer/polybobin | 63b2cea40d3afcfc9d6f62f49acbfacf6a8783e1 | [
"MIT"
] | 20 | 2017-04-25T14:23:02.000Z | 2018-12-04T22:46:04.000Z | src/miniframes/toolbarframe.cpp | helloer/polybobin | 63b2cea40d3afcfc9d6f62f49acbfacf6a8783e1 | [
"MIT"
] | 4 | 2018-07-04T00:14:41.000Z | 2018-07-17T09:08:25.000Z | #include "toolbarframe.hpp"
#include "../constants.hpp"
#include <utility>
#include <wx/filename.h>
#include <wx/stdpaths.h>
ToolbarFrame::ToolbarFrame(wxWindow *parent, ToolSelectionCallback toolSelecitoncallback)
: MiniFrame(parent, ID_FRAME_TOOLBAR, "Toolbar", wxDefaultPosition, wxDefaultSize)
, m_toolSelec... | 35.763636 | 126 | 0.724962 | helloer |
d974b490b4d312621b5389eeecb5dcea427da23e | 567 | cpp | C++ | segmentVis/main.cpp | acvictor/IDD-Viz | 0860c6a933f4d8706a3453ead4fc5db4e2df8c81 | [
"MIT"
] | null | null | null | segmentVis/main.cpp | acvictor/IDD-Viz | 0860c6a933f4d8706a3453ead4fc5db4e2df8c81 | [
"MIT"
] | null | null | null | segmentVis/main.cpp | acvictor/IDD-Viz | 0860c6a933f4d8706a3453ead4fc5db4e2df8c81 | [
"MIT"
] | null | null | null | #include "Image.h"
using namespace std;
using namespace cv;
#define cout(a) cout<<a<<endl
int main(int argc, char** argv)
{
ifstream file("segmentVis/imageList.txt");
if(file.is_open())
{
while(!file.eof())
{
string fName;
file >> fName;
Image image;
... | 18.290323 | 46 | 0.511464 | acvictor |
d9799db8b7fffe8d1966777b93d8309c0c58672d | 3,269 | cpp | C++ | Plugins/PLRendererOpenGL/src/FontTextureFixedFunctions.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Plugins/PLRendererOpenGL/src/FontTextureFixedFunctions.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Plugins/PLRendererOpenGL/src/FontTextureFixedFunctions.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: FontTextureFixedFunctions.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 40.8625 | 181 | 0.506577 | ktotheoz |
d97b994d433e5892f19a64164e5f0a7b08943ca6 | 65,733 | cpp | C++ | src/test/statistics/statistics_objects/generic_histogram_test.cpp | nannancy/hyrise | a22d270b0692a24605fe02937cbd070ee4b8ebcb | [
"MIT"
] | 1 | 2019-12-30T13:23:30.000Z | 2019-12-30T13:23:30.000Z | src/test/statistics/statistics_objects/generic_histogram_test.cpp | nannancy/hyrise | a22d270b0692a24605fe02937cbd070ee4b8ebcb | [
"MIT"
] | 11 | 2019-12-02T20:47:52.000Z | 2020-02-04T23:19:31.000Z | src/test/statistics/statistics_objects/generic_histogram_test.cpp | nannancy/hyrise | a22d270b0692a24605fe02937cbd070ee4b8ebcb | [
"MIT"
] | 1 | 2020-11-17T19:18:58.000Z | 2020-11-17T19:18:58.000Z | #include <limits>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base_test.hpp"
#include "constant_mappings.hpp"
#include "statistics/statistics_objects/generic_histogram.hpp"
#include "utils/load_table.hpp"
/**
* As well as testing GenericHistogram, we also test a lot of the fun... | 55.237815 | 158 | 0.675399 | nannancy |
d97cc3248ef0892c974f415abf86d84115f5e09f | 1,532 | cpp | C++ | dev/sample/so_5/coop_listener/main.cpp | ZaMaZaN4iK/sobjectizer | afe9fc4d9fac6157860ec4459ac7a129223be87c | [
"BSD-3-Clause"
] | 272 | 2019-05-16T11:45:54.000Z | 2022-03-28T09:32:14.000Z | dev/sample/so_5/coop_listener/main.cpp | ZaMaZaN4iK/sobjectizer | afe9fc4d9fac6157860ec4459ac7a129223be87c | [
"BSD-3-Clause"
] | 40 | 2019-10-29T18:19:18.000Z | 2022-03-30T09:02:49.000Z | dev/sample/so_5/coop_listener/main.cpp | ZaMaZaN4iK/sobjectizer | afe9fc4d9fac6157860ec4459ac7a129223be87c | [
"BSD-3-Clause"
] | 29 | 2019-05-16T12:05:32.000Z | 2022-03-19T12:28:33.000Z | /*
* A sample of the simpliest agent.
*/
#include <iostream>
// Main SObjectizer header.
#include <so_5/all.hpp>
// An agent class definition.
class a_hello_t final : public so_5::agent_t
{
public:
using so_5::agent_t::agent_t;
};
// The SObjectizer Environment initialization.
void init( so_5::environment_t & ... | 21.277778 | 66 | 0.663838 | ZaMaZaN4iK |
d982e58e5a950e4b1bd9eee1faf081b2668260df | 416 | cpp | C++ | Answers of Sheet#1 of Assuit University/Q - Coordinates of a Point.cpp | 7ossamamahmoud/Problem-Solving-Answers | 624892060f18fe6148835ea94d684df6a62b9341 | [
"MIT"
] | null | null | null | Answers of Sheet#1 of Assuit University/Q - Coordinates of a Point.cpp | 7ossamamahmoud/Problem-Solving-Answers | 624892060f18fe6148835ea94d684df6a62b9341 | [
"MIT"
] | null | null | null | Answers of Sheet#1 of Assuit University/Q - Coordinates of a Point.cpp | 7ossamamahmoud/Problem-Solving-Answers | 624892060f18fe6148835ea94d684df6a62b9341 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
using namespace std;
int main() {
float X, Y;
cin >> X >> Y;
if (X > 0 && Y > 0)
cout << "Q1";
else if (X < 0 && Y>0)
cout << "Q2";
else if (X < 0 && Y < 0)
cout << "Q3";
else if (X>0 && Y<0 )
cout << "Q4";
else if (X == 0 && Y == 0)
cout << "Origem";
else if (... | 17.333333 | 43 | 0.451923 | 7ossamamahmoud |
d98f263db80bd97c7388cee075ec04828c6cb1b5 | 13,523 | cpp | C++ | examples/Cpp/MultiRenderer/Example.cpp | beldenfox/LLGL | 3a54125ebfa79bb06fccf8c413d308ff22186b52 | [
"BSD-3-Clause"
] | null | null | null | examples/Cpp/MultiRenderer/Example.cpp | beldenfox/LLGL | 3a54125ebfa79bb06fccf8c413d308ff22186b52 | [
"BSD-3-Clause"
] | null | null | null | examples/Cpp/MultiRenderer/Example.cpp | beldenfox/LLGL | 3a54125ebfa79bb06fccf8c413d308ff22186b52 | [
"BSD-3-Clause"
] | null | null | null | /*
* Example.cpp (Example_MultiRenderer)
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#ifdef _WIN32
#include <ExampleBase.h>
#include <LLGL/Application.h>
#include <LLGL/Platform/NativeHandle.h>
/*
* MyRenderer class
... | 35.033679 | 134 | 0.621977 | beldenfox |
d993c5efa942e41ecc3a60962fd0c609a7230456 | 260 | cpp | C++ | YorozuyaGSLib/source/_server_notify_inform_zone.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_server_notify_inform_zone.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_server_notify_inform_zone.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_server_notify_inform_zone.hpp>
START_ATF_NAMESPACE
int _server_notify_inform_zone::size()
{
using org_ptr = int (WINAPIV*)(struct _server_notify_inform_zone*);
return (org_ptr(0x14011f1e0L))(this);
};
END_ATF_NAMESPACE
| 23.636364 | 75 | 0.723077 | lemkova |
d9963e1ba1facf2e66d81e16869307cfbd7884b6 | 45,206 | cpp | C++ | SILENT/threed.cpp | DPSablowski/silent | a042dadb9bfa0b2219e95d2b292e3e61c0298d0d | [
"Apache-2.0"
] | 2 | 2020-10-15T08:32:42.000Z | 2021-07-02T23:17:17.000Z | SILENT/threed.cpp | DPSablowski/silent | a042dadb9bfa0b2219e95d2b292e3e61c0298d0d | [
"Apache-2.0"
] | null | null | null | SILENT/threed.cpp | DPSablowski/silent | a042dadb9bfa0b2219e95d2b292e3e61c0298d0d | [
"Apache-2.0"
] | null | null | null | #include "threed.h"
#include "ui_threed.h"
#include <pthreed.h>
#include <cmath>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <iostream>
#include <QFile>
#include <QMessageBox>
using namespace std;
string tdpath;
double g3d, t3d, theta3d, eta3d, l3d, index3d, dn3d, d3d, dg3d, f13d, f23d, tune3d, ... | 29.03404 | 233 | 0.58187 | DPSablowski |
d996cb9bdc517adffff8a722d581b30bf419c6bb | 15,951 | cpp | C++ | packages/utility/core/test/tstGlobalMPISession.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/utility/core/test/tstGlobalMPISession.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/utility/core/test/tstGlobalMPISession.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstGlobalMPISession.cpp
//! \author Alex Robinson
//! \brief Global MPI session unit tests
//!
//---------------------------------------------------------------------------//
// Std Lib Includes
#include <iostream>
#includ... | 30.972816 | 227 | 0.593317 | bam241 |
d9993d869d12e71a737791b42d9d75de9d3e0c96 | 388 | hpp | C++ | core/visual/image/shape/square/Square.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | 2 | 2022-02-21T08:23:02.000Z | 2022-03-17T10:01:40.000Z | core/visual/image/shape/square/Square.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | 43 | 2022-02-21T13:07:08.000Z | 2022-03-22T11:02:16.000Z | core/visual/image/shape/square/Square.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | null | null | null | #ifndef MAD_SQUARE_HPP
#define MAD_SQUARE_HPP
#include "visual/image/shape/Shape.hpp"
namespace mad::core {
class Square : public Shape {
public:
explicit Square(float side, Color color);
[[nodiscard]] float get_side_length() const noexcept;
b2PolygonShape as_fixture() override;
... | 16.869565 | 61 | 0.667526 | PlatformerTeam |
d9a196f6573aa0123386e6ea06ba0e51e2eb1e8d | 766 | cpp | C++ | Section 3.5/Exercise355/Exercise355/Main.cpp | scottsidoli/C-for-Financial-Engineering---Baruch-Pre-MFE-Certificate | 79c2fb297a85c914d5f0b8671bb17636801e3ce7 | [
"MIT"
] | 1 | 2021-11-05T08:14:37.000Z | 2021-11-05T08:14:37.000Z | Section 3.5/Exercise355/Exercise355/Main.cpp | scottsidoli/C-for-Financial-Engineering---Baruch-Pre-MFE-Certificate | 79c2fb297a85c914d5f0b8671bb17636801e3ce7 | [
"MIT"
] | null | null | null | Section 3.5/Exercise355/Exercise355/Main.cpp | scottsidoli/C-for-Financial-Engineering---Baruch-Pre-MFE-Certificate | 79c2fb297a85c914d5f0b8671bb17636801e3ce7 | [
"MIT"
] | null | null | null | // Exercise 3.5.5 - Template Method Pattern
//
// by Scott Sidoli
//
// 5-17-19
//
// Main.cpp
//
// In this exercise, we add the member function Print() to the shape class. In its
// implementation, we send the toString() output to cout. We create a point object
// and a line object and call Print() on thes... | 26.413793 | 84 | 0.664491 | scottsidoli |
d2673b5f0d0b46a504aa58501a281a796543546b | 7,793 | hpp | C++ | bitmask.hpp | simdsoft/bitmask | a67fb7ee634de666f1edbd8d70f0dcac06875ee6 | [
"MIT"
] | 2 | 2020-03-25T01:43:42.000Z | 2020-06-09T10:14:45.000Z | bitmask.hpp | simdsoft/bitmask | a67fb7ee634de666f1edbd8d70f0dcac06875ee6 | [
"MIT"
] | null | null | null | bitmask.hpp | simdsoft/bitmask | a67fb7ee634de666f1edbd8d70f0dcac06875ee6 | [
"MIT"
] | null | null | null | /****************************************************************************
Copyright (c) 2020 Simdsoft Limited.
Purpose: Make bitmask operators could be use at different namespace.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation fi... | 74.219048 | 101 | 0.376235 | simdsoft |
d26f491c75851b2be1ab2658a95d41a59a16b833 | 3,793 | hpp | C++ | include/transformations/barrier_merge.hpp | softwareQinc/synthewareQ | e39a0664c3cbced7e6a6b7264b3212865a2c941f | [
"MIT"
] | null | null | null | include/transformations/barrier_merge.hpp | softwareQinc/synthewareQ | e39a0664c3cbced7e6a6b7264b3212865a2c941f | [
"MIT"
] | null | null | null | include/transformations/barrier_merge.hpp | softwareQinc/synthewareQ | e39a0664c3cbced7e6a6b7264b3212865a2c941f | [
"MIT"
] | null | null | null | /*
* This file is part of staq.
*
* Copyright (c) 2019 - 2022 softwareQ Inc. All rights reserved.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restrictio... | 30.344 | 80 | 0.634063 | softwareQinc |
d275e2fc23179cbc4c3eee87d6fca64f46b32803 | 875 | hpp | C++ | etl/_algorithm/find.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | 4 | 2021-11-28T08:48:11.000Z | 2021-12-14T09:53:51.000Z | etl/_algorithm/find.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | null | null | null | etl/_algorithm/find.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | null | null | null | /// \copyright Tobias Hienzsch 2019-2021
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
#ifndef TETL_ALGORITHM_FIND_HPP
#define TETL_ALGORITHM_FIND_HPP
namespace etl {
/// \brief Searches for an element equal to value.
///
... | 28.225806 | 98 | 0.704 | tobanteEmbedded |
d27a4103f1f3df6eba3d9479549f16a184f6a0ee | 3,902 | cpp | C++ | src-cpp/util/com/com_private_data.cpp | philpax/dxupvk-rs | 303d8f801efc036febea8c4fc3e7d75b04b66f1b | [
"Zlib"
] | 8,148 | 2017-10-29T10:51:20.000Z | 2022-03-31T12:52:51.000Z | src-cpp/util/com/com_private_data.cpp | philpax/dxupvk-rs | 303d8f801efc036febea8c4fc3e7d75b04b66f1b | [
"Zlib"
] | 2,270 | 2017-12-04T12:08:13.000Z | 2022-03-31T19:56:41.000Z | src-cpp/util/com/com_private_data.cpp | philpax/dxupvk-rs | 303d8f801efc036febea8c4fc3e7d75b04b66f1b | [
"Zlib"
] | 732 | 2017-11-28T13:08:15.000Z | 2022-03-31T21:05:59.000Z | #include <cmath>
#include <cstring>
#include <cstdlib>
#include "com_private_data.h"
namespace dxvk {
ComPrivateDataEntry::ComPrivateDataEntry() { }
ComPrivateDataEntry::ComPrivateDataEntry(
REFGUID guid,
UINT size,
const void* data)
: m_guid(guid),
m_type(ComPrivateDat... | 22.686047 | 86 | 0.596361 | philpax |
d27b22f52cc532990831ce011b85014bc89aa2f4 | 2,678 | hpp | C++ | software/init/xi_dnn_norm_utils.hpp | yhyoung/CHaiDNN | 1877a81e0d1b44773af455b0eab4399636bbc181 | [
"Apache-2.0"
] | 288 | 2018-03-23T01:41:40.000Z | 2022-03-03T08:52:54.000Z | software/init/xi_dnn_norm_utils.hpp | yhyoung/CHaiDNN | 1877a81e0d1b44773af455b0eab4399636bbc181 | [
"Apache-2.0"
] | 171 | 2018-03-25T11:03:23.000Z | 2022-01-29T14:16:59.000Z | software/init/xi_dnn_norm_utils.hpp | yhyoung/CHaiDNN | 1877a81e0d1b44773af455b0eab4399636bbc181 | [
"Apache-2.0"
] | 154 | 2018-03-23T01:31:33.000Z | 2022-03-04T14:26:40.000Z | /*----------------------------------------------------
Copyright 2017 Xilinx, 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 app... | 22.694915 | 104 | 0.681852 | yhyoung |
d27c4f6c0fac3073f33891bdd93795deb777c9c5 | 1,132 | cpp | C++ | src/vulkan/vulkan_framebuffer.cpp | cmaughan/vklive | 649c64335d7d77f4d3199ea8f66c04a53455b4a9 | [
"MIT"
] | null | null | null | src/vulkan/vulkan_framebuffer.cpp | cmaughan/vklive | 649c64335d7d77f4d3199ea8f66c04a53455b4a9 | [
"MIT"
] | null | null | null | src/vulkan/vulkan_framebuffer.cpp | cmaughan/vklive | 649c64335d7d77f4d3199ea8f66c04a53455b4a9 | [
"MIT"
] | null | null | null | #include "vklive/vulkan/vulkan_framebuffer.h"
#include "vklive/vulkan/vulkan_utils.h"
namespace vulkan
{
void framebuffer_destroy(VulkanContext& ctx, VulkanFrameBuffer& frame)
{
if (frame.framebuffer)
{
ctx.device.destroyFramebuffer(frame.framebuffer);
frame.framebuffer = nullptr;
}
}
void... | 32.342857 | 171 | 0.734982 | cmaughan |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.