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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3cb198d33f95bdd3132669e84740a6d37efc2dca | 954 | cpp | C++ | ARWorkspaceEngine/Source/Utility.cpp | SekiShuhei/ARWorkspace | 917089e29f5ea41336ffea4cd6f545bffb1f1c16 | [
"Apache-2.0"
] | null | null | null | ARWorkspaceEngine/Source/Utility.cpp | SekiShuhei/ARWorkspace | 917089e29f5ea41336ffea4cd6f545bffb1f1c16 | [
"Apache-2.0"
] | 5 | 2020-04-17T10:08:29.000Z | 2020-04-26T07:17:18.000Z | ARWorkspaceEngine/Source/Utility.cpp | SekiShuhei/ARWorkspace | 917089e29f5ea41336ffea4cd6f545bffb1f1c16 | [
"Apache-2.0"
] | null | null | null |
#include "Utility.hpp"
namespace ARWorkspace {
const s3d::String Utility::GetExecFilePath()
{
s3d::String result_path = U"";
char path[MAX_PATH], drive[MAX_PATH], dir[MAX_PATH], fname[MAX_PATH], ext[MAX_PATH];
if (::GetModuleFileNameA(NULL, path, MAX_PATH) != 0)
{
::_splitpath_s(path, drive, dir... | 22.714286 | 86 | 0.666667 | SekiShuhei |
3cb4c762c2c70a08d39a18777f8e7c27b8e0e624 | 955 | cpp | C++ | .KickStart/Kick Start 2021/Round C 2021/B/B.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .KickStart/Kick Start 2021/Round C 2021/B/B.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .KickStart/Kick Start 2021/Round C 2021/B/B.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <string>
#define maxN 100002
#define LAST ((n + 1) / 2)
typedef long maxn;
typedef long long maxa;
const maxa MOD = 1e9 + 7;
std::string s;
maxn n;
maxa K, pw[maxN], res;
void Prepare() {
std::cin >> n >> K >> s;
pw[0] = 1;
for(maxn i = 1; i <= n;... | 17.685185 | 80 | 0.452356 | sxweetlollipop2912 |
3cb89f8aae2e9f8d0479ebcd20ae911e29f5844e | 2,989 | cpp | C++ | CPE_UVa/uva10252/uva10252_DP.cpp | PetiingCat/CPP | 38a2ea941d51e03be05d2e446a77a9cb5016807e | [
"MIT"
] | null | null | null | CPE_UVa/uva10252/uva10252_DP.cpp | PetiingCat/CPP | 38a2ea941d51e03be05d2e446a77a9cb5016807e | [
"MIT"
] | null | null | null | CPE_UVa/uva10252/uva10252_DP.cpp | PetiingCat/CPP | 38a2ea941d51e03be05d2e446a77a9cb5016807e | [
"MIT"
] | null | null | null | /**
* 本解法只能解uva10252的部分答案
* 失敗原因:
* uva10252 != LCS problem
* uva10252只是找尋兩字串的"最大共同子字串"的排列
* 但LSC problem是兩序列的最大共同子序列(限定順序)
* |longest_subsequence of uva10252 problem| > |longest_subsequence of LCS problem|
*
* 不過至少題目給的範例測資輸/出入是正確的
* <Sample Input>
* pretty
* women
* walking
* down
* the
* street
*
... | 24.702479 | 104 | 0.473068 | PetiingCat |
3cb9afc676777a97bdcf527c7b5dce8de08d3421 | 35,029 | cpp | C++ | src/editor/views/MeasureView.cpp | yuxshao/pxtone-qt | 2ff9e88a63730f576a2748c0a51f7fde3b161e3a | [
"MIT"
] | null | null | null | src/editor/views/MeasureView.cpp | yuxshao/pxtone-qt | 2ff9e88a63730f576a2748c0a51f7fde3b161e3a | [
"MIT"
] | null | null | null | src/editor/views/MeasureView.cpp | yuxshao/pxtone-qt | 2ff9e88a63730f576a2748c0a51f7fde3b161e3a | [
"MIT"
] | null | null | null | #include "MeasureView.h"
#include <QPaintEvent>
#include <QPainter>
#include <QPainterPath>
#include "ViewHelper.h"
#include "editor/ComboOptions.h"
#include "editor/Settings.h"
#include "editor/StyleEditor.h"
constexpr int FLAG_HEIGHT = 8;
constexpr int FLAG_WIDTH = 40;
constexpr int MEASURE_NUM_BLOCK_WIDTH = 27;
c... | 40.969591 | 80 | 0.612435 | yuxshao |
3cbfce1eefc8001f1827768ca2f06987f2058855 | 689 | hpp | C++ | include/pcp/algorithm/common.hpp | Q-Minh/octree | 0c3fd5a791d660b37461daf968a68ffb1c80b965 | [
"BSL-1.0"
] | 2 | 2021-03-10T09:57:45.000Z | 2021-04-13T21:19:57.000Z | include/pcp/algorithm/common.hpp | Q-Minh/octree | 0c3fd5a791d660b37461daf968a68ffb1c80b965 | [
"BSL-1.0"
] | 22 | 2020-12-07T20:09:39.000Z | 2021-04-12T20:42:59.000Z | include/pcp/algorithm/common.hpp | Q-Minh/octree | 0c3fd5a791d660b37461daf968a68ffb1c80b965 | [
"BSL-1.0"
] | null | null | null | #ifndef PCP_ALGORITHM_COMMON_HPP
#define PCP_ALGORITHM_COMMON_HPP
/**
* @file
* @ingroup algorithm
*/
namespace pcp {
template <class T>
T const& self(T const& any)
{
return any;
}
template <class T>
T self(T const& any)
{
return any;
}
template <class T>
T& self(T& any)
{
return any;
}
namespace a... | 15.311111 | 82 | 0.69521 | Q-Minh |
3cc92cb060367b55056069d954ffc5126ae9fa0e | 6,028 | hpp | C++ | utils/utils.hpp | ShieldQiQi/Path-Planning-Showed-By-Animation | c6b888edfc8a7d6b623e0d8ff000161ed8243a48 | [
"Apache-2.0"
] | 6 | 2021-11-13T02:41:30.000Z | 2022-03-24T12:29:09.000Z | utils/utils.hpp | ShieldQiQi/Path-Planning-Showed-By-Animation | c6b888edfc8a7d6b623e0d8ff000161ed8243a48 | [
"Apache-2.0"
] | null | null | null | utils/utils.hpp | ShieldQiQi/Path-Planning-Showed-By-Animation | c6b888edfc8a7d6b623e0d8ff000161ed8243a48 | [
"Apache-2.0"
] | 1 | 2022-01-19T06:36:06.000Z | 2022-01-19T06:36:06.000Z | /**
* @file utils.hpp
* @author vss2sn
* @brief Contains common/commonly used funtions and classes
*/
#ifndef UTILS_H
#define UTILS_H
#include <iostream>
#include <queue>
#include <unordered_set>
#include <vector>
#include <limits>
#define BLACK "\x1b[1;30m"
#define RED "\x1b[1;31m"
#define GREEN "\x1b[1;32m"
#... | 27.153153 | 82 | 0.61347 | ShieldQiQi |
3ccdf7a4ac6b12aec213b70854403a07e5784299 | 12,507 | hpp | C++ | NetModuleWrapper/mta/sdk/SharedUtil.AllocTracking.hpp | correaAlex/Slipe-Server | 3dd982efd672674b6aca6ea92e491fd36b01a4dd | [
"MIT"
] | 23 | 2020-06-24T21:14:45.000Z | 2021-12-27T22:54:22.000Z | NetModuleWrapper/mta/sdk/SharedUtil.AllocTracking.hpp | correaAlex/Slipe-Server | 3dd982efd672674b6aca6ea92e491fd36b01a4dd | [
"MIT"
] | 137 | 2020-06-25T17:05:08.000Z | 2022-03-31T18:21:56.000Z | NetModuleWrapper/mta/sdk/SharedUtil.AllocTracking.hpp | correaAlex/Slipe-Server | 3dd982efd672674b6aca6ea92e491fd36b01a4dd | [
"MIT"
] | 13 | 2020-06-24T21:15:02.000Z | 2022-03-19T19:39:26.000Z | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.AllocTracking.hpp
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
*******... | 26.27521 | 147 | 0.574878 | correaAlex |
3cd6659072945dde9136320eda5f5a1e10cf19d1 | 319 | hpp | C++ | src/typedefs.hpp | mpardalos/MIPS-Simulator | f9e1184dcad3707f2d3c517e01c9b4dcd285de90 | [
"MIT"
] | null | null | null | src/typedefs.hpp | mpardalos/MIPS-Simulator | f9e1184dcad3707f2d3c517e01c9b4dcd285de90 | [
"MIT"
] | null | null | null | src/typedefs.hpp | mpardalos/MIPS-Simulator | f9e1184dcad3707f2d3c517e01c9b4dcd285de90 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
using Address = uint32_t;
using Offset = int16_t;
using Word = uint32_t;
using Byte = uint8_t;
using Halfword = uint16_t;
using U_Product = uint64_t;
using Product = int64_t;
struct RegisterId {
uint8_t value;
};
const RegisterId rRA = RegisterId { 31 }; | 18.764706 | 41 | 0.673981 | mpardalos |
3cd815626c0f518e53650ffa3e8a2ab68e429e8c | 17,315 | cpp | C++ | torch/csrc/jit/mobile/backport_manager.cpp | shivamsp133/pytorch | 457a3fb6d1441721cb72dca90b8f20b32d553856 | [
"Intel"
] | 3 | 2018-11-01T10:50:25.000Z | 2021-04-20T09:04:20.000Z | torch/csrc/jit/mobile/backport_manager.cpp | shivamsp133/pytorch | 457a3fb6d1441721cb72dca90b8f20b32d553856 | [
"Intel"
] | null | null | null | torch/csrc/jit/mobile/backport_manager.cpp | shivamsp133/pytorch | 457a3fb6d1441721cb72dca90b8f20b32d553856 | [
"Intel"
] | null | null | null | #include <ATen/core/ivalue.h>
#include <c10/util/Exception.h>
#include <caffe2/serialize/file_adapter.h>
#include <caffe2/serialize/inline_container.h>
#include <torch/csrc/jit/mobile/backport_manager.h>
#include <torch/csrc/jit/mobile/import.h>
#include <torch/csrc/jit/mobile/model_compatibility.h>
#include <torch/csr... | 35.554415 | 108 | 0.716084 | shivamsp133 |
3cd8dc585e0aa86844d50a9aeec9fe123b44b7fb | 1,801 | ipp | C++ | include/polyscope/pick.ipp | hydrocarborane/polyscope | bee34c22cd7ac1b1e01686b55b7b8ceeee20d2fe | [
"MIT"
] | 930 | 2018-02-19T16:38:29.000Z | 2022-03-30T22:16:01.000Z | include/polyscope/pick.ipp | hydrocarborane/polyscope | bee34c22cd7ac1b1e01686b55b7b8ceeee20d2fe | [
"MIT"
] | 142 | 2018-02-19T16:14:28.000Z | 2022-03-25T13:51:08.000Z | include/polyscope/pick.ipp | hydrocarborane/polyscope | bee34c22cd7ac1b1e01686b55b7b8ceeee20d2fe | [
"MIT"
] | 92 | 2018-05-13T01:41:04.000Z | 2022-03-28T03:26:44.000Z | #pragma once
namespace polyscope {
namespace pick {
// Constant for bit-bashing functions below
// single-precision floats always have at least 22 bits of integer mantissa, and 22*3 > 64, so we can safely store 64
// bit integer quantities like size_t usually is in a vec3
const uint64_t bitsForPickPacking = 22;
// co... | 35.313725 | 117 | 0.705719 | hydrocarborane |
3cd8e3527096c2c5d055549cbb6a9f47eb17eeda | 1,125 | cpp | C++ | test/homework_test/tic_tac_toe_test/tic_tac_toe_test.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-DavMill13 | 5eb739cb25b2aebddd7f8899da3defe95179a15d | [
"MIT"
] | null | null | null | test/homework_test/tic_tac_toe_test/tic_tac_toe_test.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-DavMill13 | 5eb739cb25b2aebddd7f8899da3defe95179a15d | [
"MIT"
] | null | null | null | test/homework_test/tic_tac_toe_test/tic_tac_toe_test.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-DavMill13 | 5eb739cb25b2aebddd7f8899da3defe95179a15d | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "tic_tac_toe.h"
TEST_CASE("Verify Test Configuration", "verification") {
REQUIRE(true == true);
}
TEST_CASE("Verify TicTacToe mark board function")
{
TicTacToe game;
REQUIRE_THROWS_AS(gam... | 19.736842 | 97 | 0.705778 | acc-cosc-1337-spring-2020 |
3cdb61d59ddade8f9a155d4d896ed48937c2af79 | 835 | cpp | C++ | source/Ch08/orai_anyag/func1.cpp | Vada200/UDProg-Introduction | c424b2676d6e5bfc4d53d61c5d0deded566c1c84 | [
"CC0-1.0"
] | null | null | null | source/Ch08/orai_anyag/func1.cpp | Vada200/UDProg-Introduction | c424b2676d6e5bfc4d53d61c5d0deded566c1c84 | [
"CC0-1.0"
] | null | null | null | source/Ch08/orai_anyag/func1.cpp | Vada200/UDProg-Introduction | c424b2676d6e5bfc4d53d61c5d0deded566c1c84 | [
"CC0-1.0"
] | null | null | null | #include "std_lib_facilities.h"
int my_find (vector<string>, string);
int my_find (vector<string>, string, int);
int main()
{
vector <string> words = {"apple", "pear", "grapes", "lemon", "prange"};
string s = "pear";
int index = my_find(words, s, 3);
if (index >= 0)
cout << "Found at index "<<... | 17.395833 | 73 | 0.504192 | Vada200 |
3cdbc5f7fedcc2878fc8a1432d8525328ee82d25 | 1,267 | cpp | C++ | hrodvitnir-core/src/tree-builder.cpp | sorsarre/hrodvitnir-core | efae62da958c71f792fbdc25aff299b18057418a | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | hrodvitnir-core/src/tree-builder.cpp | sorsarre/hrodvitnir-core | efae62da958c71f792fbdc25aff299b18057418a | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | hrodvitnir-core/src/tree-builder.cpp | sorsarre/hrodvitnir-core | efae62da958c71f792fbdc25aff299b18057418a | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019-2020, Andrey Kaydalov
// SPDX-FileCopyrightText: 2019-2022 Andrey Kaydalov <sorsarre@gmail.com>
//
// SPDX-License-Identifier: BSD-3-Clause
#include <hrodvitnir/core/tree/tree-builder.hpp>
namespace hrodvitnir::core
{
//--------------------------------------------------------------------------
t... | 25.857143 | 76 | 0.469613 | sorsarre |
c9e42daf5f622e1bbc7d017d20e5bfcb1fc72171 | 453 | cpp | C++ | lib/antlr/parseonly.cpp | jasonKercher/fql | 1296d50c2a63560436e04a4633591a3a8a27413d | [
"MIT"
] | 17 | 2021-06-19T17:30:25.000Z | 2022-01-04T21:16:47.000Z | lib/antlr/parseonly.cpp | jasonKercher/fql | 1296d50c2a63560436e04a4633591a3a8a27413d | [
"MIT"
] | 1 | 2021-06-18T16:38:16.000Z | 2021-06-18T16:38:16.000Z | lib/antlr/parseonly.cpp | jasonKercher/fql | 1296d50c2a63560436e04a4633591a3a8a27413d | [
"MIT"
] | null | null | null | #include "parseonly.h"
ParseOnly::ParseOnly(const std::vector<std::string>& rules)
{
_rule_names = rules;
}
void ParseOnly::enterEveryRule(antlr4::ParserRuleContext * ctx)
{
std::cerr << "ENTER: " << _rule_names[ctx->getRuleIndex()] << " : " << ctx->getText() << std::endl;
}
void ParseOnly::exitEveryRule(antlr4::... | 21.571429 | 100 | 0.646799 | jasonKercher |
c9e47b1b8ba45534ab8a3254025f416e2d5fcc66 | 4,017 | cpp | C++ | Sources/input.cpp | vrmiguel/minishell-2 | f50934f180a85fd696134d0dcea72eae9d71deba | [
"MIT"
] | null | null | null | Sources/input.cpp | vrmiguel/minishell-2 | f50934f180a85fd696134d0dcea72eae9d71deba | [
"MIT"
] | null | null | null | Sources/input.cpp | vrmiguel/minishell-2 | f50934f180a85fd696134d0dcea72eae9d71deba | [
"MIT"
] | null | null | null | /*
* miniSHELL-2
* https://github.com/vrmiguel/minishell-2
*
* Copyright (c) 2020 Vinícius R. Miguel <vinicius.miguel at unifesp.br>
*
* 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 ... | 31.629921 | 118 | 0.6236 | vrmiguel |
c9e9a0df12c22ffe28e41d909296bb7dfcfcf157 | 13,690 | cpp | C++ | btcb/node/peers.cpp | melnaquib/btcb | f55c9867113d403118c3028d5ba11a0debcd7609 | [
"BSD-2-Clause"
] | 8 | 2019-03-01T13:33:33.000Z | 2019-06-02T04:42:38.000Z | btcb/node/peers.cpp | melnaquib/btcb | f55c9867113d403118c3028d5ba11a0debcd7609 | [
"BSD-2-Clause"
] | null | null | null | btcb/node/peers.cpp | melnaquib/btcb | f55c9867113d403118c3028d5ba11a0debcd7609 | [
"BSD-2-Clause"
] | 5 | 2019-04-03T14:27:56.000Z | 2019-12-22T17:14:28.000Z | #include <btcb/node/peers.hpp>
btcb::endpoint btcb::map_endpoint_to_v6 (btcb::endpoint const & endpoint_a)
{
auto endpoint_l (endpoint_a);
if (endpoint_l.address ().is_v4 ())
{
endpoint_l = btcb::endpoint (boost::asio::ip::address_v6::v4_mapped (endpoint_l.address ().to_v4 ()), endpoint_l.port ());
}
return end... | 28.70021 | 202 | 0.67962 | melnaquib |
c9ecf7152fe927a9e050fb6811d52aef09e0a299 | 2,937 | cpp | C++ | codes/UVA/00001-00999/uva589.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/00001-00999/uva589.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/00001-00999/uva589.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <vector>
#include <queue>
using namespace std;
const int N = 30;
const int M = 10000;
const int INF = 0x3f3f3f3f;
const int d[4][2] = { {0, 1}, {1, 0}, {-1, 0}, {0, -1}};
const char sign[N] = "esnwESNW";
struct point {
int x, y;
};
struct state {
int x, y;
int cnt;... | 19.322368 | 82 | 0.447736 | JeraKrs |
c9ed61f8163b2259eede57bb193b72ad913cab54 | 3,245 | cpp | C++ | string/appl_string.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | string/appl_string.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | string/appl_string.cpp | fboucher9/appl | bb90398cf9985d4cc0a2a079c4d49d891108e6d1 | [
"MIT"
] | null | null | null | /* See LICENSE for license details */
/*
*/
#include <string.h>
#include <appl_status.h>
#include <appl_types.h>
#include <object/appl_object.h>
#include <buf/appl_buf.h>
#include <string/appl_string.h>
#include <allocator/appl_allocator_handle.h>
#include <context/appl_context_handle.h>
#include <heap/appl_... | 15.093023 | 65 | 0.565485 | fboucher9 |
c9f7df5e3ccc9cb35e5be315d3a3243742ca73d6 | 391 | hpp | C++ | inc/sort/introsort.hpp | petuzk/Algorytmy-sortowania | c00a0907b99fe52180fd35e5847db2b8c392ba5e | [
"MIT"
] | null | null | null | inc/sort/introsort.hpp | petuzk/Algorytmy-sortowania | c00a0907b99fe52180fd35e5847db2b8c392ba5e | [
"MIT"
] | null | null | null | inc/sort/introsort.hpp | petuzk/Algorytmy-sortowania | c00a0907b99fe52180fd35e5847db2b8c392ba5e | [
"MIT"
] | null | null | null | #pragma once
// http://www.cs.rpi.edu/~musser/gp/introsort.ps
#include <cstdlib>
#include "inc/sort/heapsort.hpp"
#include "inc/sort/quicksort.hpp"
inline int log2_floor(unsigned long x);
template<typename T>
void introsort_dl(T* array, std::size_t length, int depth_limit, bool reverse = false);
template<typename... | 24.4375 | 87 | 0.746803 | petuzk |
c9f806177e957efa8c72c6280d9bbcdeaf597afa | 1,408 | hpp | C++ | library/previousMenuMenuItem.hpp | JasperOosterbroek/ipass_menu | 42d76d0b093c2ac80d6e661f4110cd084b29db28 | [
"BSL-1.0"
] | null | null | null | library/previousMenuMenuItem.hpp | JasperOosterbroek/ipass_menu | 42d76d0b093c2ac80d6e661f4110cd084b29db28 | [
"BSL-1.0"
] | null | null | null | library/previousMenuMenuItem.hpp | JasperOosterbroek/ipass_menu | 42d76d0b093c2ac80d6e661f4110cd084b29db28 | [
"BSL-1.0"
] | null | null | null | // ==========================================================================
//
// File : previousMenuMenuItem.hpp
// Part of : C++ light menu, easy to use menu library
// Author : Jasper Oosterbroek
// Github : https://github.com/JasperOosterbroek/light-menu
// Copyright : jasper.oosterbroek@student.hu.n... | 28.734694 | 106 | 0.645597 | JasperOosterbroek |
c9fbdbad5472b398341f935199391332ff86b6a2 | 4,738 | cpp | C++ | cmd/kv_seek_both.cpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | null | null | null | cmd/kv_seek_both.cpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | null | null | null | cmd/kv_seek_both.cpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 The Silkrpc 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 agreed t... | 39.483333 | 135 | 0.636133 | enriavil1 |
a005b614e1010c8f717b0d8ef51e701ddc2617fa | 2,430 | cpp | C++ | aws-cpp-sdk-comprehend/source/model/AugmentedManifestsDocumentTypeFormat.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-comprehend/source/model/AugmentedManifestsDocumentTypeFormat.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-comprehend/source/model/AugmentedManifestsDocumentTypeFormat.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehend/model/AugmentedManifestsDocumentTypeFormat.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
us... | 34.225352 | 116 | 0.687243 | perfectrecall |
a00af87022bfe9c85d774c94e04412aa035686a5 | 3,284 | cpp | C++ | etpClientExample/main.cpp | cgodkin/fesapi | d25c5e30ccec537c471adc3bb036c48f2c51f2c9 | [
"Apache-2.0"
] | null | null | null | etpClientExample/main.cpp | cgodkin/fesapi | d25c5e30ccec537c471adc3bb036c48f2c51f2c9 | [
"Apache-2.0"
] | null | null | null | etpClientExample/main.cpp | cgodkin/fesapi | d25c5e30ccec537c471adc3bb036c48f2c51f2c9 | [
"Apache-2.0"
] | null | null | null | /*-----------------------------------------------------------------------
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under ... | 38.186047 | 146 | 0.732643 | cgodkin |
a00b8311283027e034daa43b27b77762bd6a77b1 | 5,922 | cpp | C++ | src/generate.cpp | H1KHC/GenSol | 57ab852e049adf682cf4063ea3fb131b88152360 | [
"MIT"
] | null | null | null | src/generate.cpp | H1KHC/GenSol | 57ab852e049adf682cf4063ea3fb131b88152360 | [
"MIT"
] | 3 | 2018-02-07T14:25:43.000Z | 2018-02-07T15:31:12.000Z | src/generate.cpp | H1KHC/GenSol | 57ab852e049adf682cf4063ea3fb131b88152360 | [
"MIT"
] | null | null | null | #include "solution.h"
#include "modules/task.h"
#include "out.h"
#include <set>
#include <regex>
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
static std::set<std::string> directories;
void generateInstall(Solution* sol) {
out <<"# install tasks\n.PHONY:";
for(auto& target : targets)
if(target... | 31.333333 | 103 | 0.595576 | H1KHC |
a00f94fe595560acb6adcfa7385bb7752063fd27 | 1,688 | cpp | C++ | C++/1.helloworld.cpp | Song2017/LabSourceCode | fb0a30f161c99f9c27d2fcdcf5fbb939c94684b8 | [
"MIT"
] | 2 | 2018-12-04T01:07:48.000Z | 2019-01-02T09:49:25.000Z | C++/1.helloworld.cpp | Song2017/LabSourceCode | fb0a30f161c99f9c27d2fcdcf5fbb939c94684b8 | [
"MIT"
] | 5 | 2020-05-25T09:15:49.000Z | 2021-03-15T02:21:40.000Z | C++/1.helloworld.cpp | Song2017/LabSourceCode | fb0a30f161c99f9c27d2fcdcf5fbb939c94684b8 | [
"MIT"
] | 3 | 2019-04-09T07:30:21.000Z | 2019-07-09T12:48:13.000Z | #include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
// vector<string> msg = {"Hello", "C++", "World", "from", "VS Code", "and the C++ extension!"};
// for (const string &word : msg)
// {
// // output
// cout << word << " ";
// }
cout << endl;
... | 24.463768 | 99 | 0.437796 | Song2017 |
a010780c8ef83d6a26c8f5f41a936c2523f28711 | 1,484 | cpp | C++ | lib/symbolic/examples/pexample3.cpp | Sc-lab-2016/lab3 | 10d59a72ce87684417e126f84ad14fee8bbbe4fd | [
"MIT"
] | null | null | null | lib/symbolic/examples/pexample3.cpp | Sc-lab-2016/lab3 | 10d59a72ce87684417e126f84ad14fee8bbbe4fd | [
"MIT"
] | null | null | null | lib/symbolic/examples/pexample3.cpp | Sc-lab-2016/lab3 | 10d59a72ce87684417e126f84ad14fee8bbbe4fd | [
"MIT"
] | null | null | null | /*
SymbolicC++ : An object oriented computer algebra system written in C++
Copyright (C) 2008 Yorick Hardy and Willi-Hans Steeb
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; ei... | 31.574468 | 75 | 0.647574 | Sc-lab-2016 |
a010e16a45234d2091556eeed381a3932dc203c1 | 219 | cpp | C++ | C++.schowlsw3/12.user.input.strings.cpp | yakult07/Beginner | 69871132069e820d9a2a9d7898adf1be667986bb | [
"MIT"
] | null | null | null | C++.schowlsw3/12.user.input.strings.cpp | yakult07/Beginner | 69871132069e820d9a2a9d7898adf1be667986bb | [
"MIT"
] | null | null | null | C++.schowlsw3/12.user.input.strings.cpp | yakult07/Beginner | 69871132069e820d9a2a9d7898adf1be667986bb | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main () {
string fullName ;
cout << "Digite seu nome completo";
getline (cin , fullName);
cout <<"Seu nome e " << fullName;
return 0;
} | 19.909091 | 39 | 0.621005 | yakult07 |
a013c5959e9cac06410330aede9bdaaff9e9265f | 1,050 | cpp | C++ | tests/catmulrom/catmulrom.cpp | dehancer/dehancer-maths-cpp | 7183e240a93be50b672b25edef9f99ed63f01834 | [
"MIT"
] | null | null | null | tests/catmulrom/catmulrom.cpp | dehancer/dehancer-maths-cpp | 7183e240a93be50b672b25edef9f99ed63f01834 | [
"MIT"
] | null | null | null | tests/catmulrom/catmulrom.cpp | dehancer/dehancer-maths-cpp | 7183e240a93be50b672b25edef9f99ed63f01834 | [
"MIT"
] | 1 | 2022-01-10T11:52:08.000Z | 2022-01-10T11:52:08.000Z | //
// Created by denn nevera on 2019-09-06.
//
#include "gtest/gtest.h"
#include "dehancer/math.hpp"
#include "../common/matlab_utils.hpp"
#include <memory>
std::vector<dehancer::math::float2> points = {
// {0,0},
// {0.1,0.2},
// {0.2,0.4},
// {0.5,0.7},
// {0.9,0.5},
// {1... | 19.811321 | 76 | 0.495238 | dehancer |
a019667a572c047fe449edbb8d3f54a1826d1961 | 467 | cpp | C++ | main.cpp | VirtualRaven/WasmGallery | 265b8b4d09710c8024438c5d2f7f04dd1325a6ac | [
"MIT"
] | null | null | null | main.cpp | VirtualRaven/WasmGallery | 265b8b4d09710c8024438c5d2f7f04dd1325a6ac | [
"MIT"
] | null | null | null | main.cpp | VirtualRaven/WasmGallery | 265b8b4d09710c8024438c5d2f7f04dd1325a6ac | [
"MIT"
] | null | null | null | #include "layout.hpp"
#include "allData.hpp"
#include <iostream>
#include <string>
int main()
{
Layout::calcScaleFactors({1500,100,4.0,10.0});
auto row = Calculated::Row[0];
for( int i = 0; i< Data::NumPictures; i++ ){
std::string s(" ");
if(i==0){
s="";
}
if(row!... | 21.227273 | 50 | 0.477516 | VirtualRaven |
a01fed5fac767bf8ee6f8a7ee7f36c752c6007d0 | 2,970 | cpp | C++ | vulkanon/source/img/bg_result_pressstart.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | 5 | 2020-04-20T02:28:15.000Z | 2021-12-05T22:04:06.000Z | vulkanon/source/img/bg_result_pressstart.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | null | null | null | vulkanon/source/img/bg_result_pressstart.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | null | null | null | /*
Bmp 4/8 Bits to GBA Converter By Bruno Vedder.
With modifications by Pete Elmore.
bg/bg_result_pressstart.bmp Opened.
Bmp signature found.
Bmp width: 72
Bmp height: 8
Bmp not compressed: ok.
One plane.
Bmp is 4 Bit per pixel.
16 colors used. (0 mean full bpp).
Bmp data starts at 76h.
Allocating 288 bytes.
CMAP loade... | 22.671756 | 112 | 0.60303 | pqrs-org |
a023158d17a12a2be2962658e1a83324bf4438c8 | 7,511 | cpp | C++ | commands/tools/selection/kpToolSelectionResizeScaleCommand.cpp | mikefncu/ikPaint | ee787809c5df0a1b78995962ced4ec3870cc139c | [
"BSD-2-Clause"
] | null | null | null | commands/tools/selection/kpToolSelectionResizeScaleCommand.cpp | mikefncu/ikPaint | ee787809c5df0a1b78995962ced4ec3870cc139c | [
"BSD-2-Clause"
] | null | null | null | commands/tools/selection/kpToolSelectionResizeScaleCommand.cpp | mikefncu/ikPaint | ee787809c5df0a1b78995962ced4ec3870cc139c | [
"BSD-2-Clause"
] | null | null | null |
/*
Copyright (c) 2003-2007 Clarence Dang <dang@kde.org>
Modified by Maikel Diaz <ariguanabosoft@gmail.com>
Copyright (c) 2015-2018
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
... | 26.921147 | 88 | 0.679137 | mikefncu |
a024ed863ec4b85ad954257cc29e73ee07a5ecc4 | 840 | cpp | C++ | OscillatorBase.cpp | Meromorph-Sound/Reason-Kontakte | aca0f40442724f50068a0ce5de9a019c0681215f | [
"BSD-3-Clause"
] | null | null | null | OscillatorBase.cpp | Meromorph-Sound/Reason-Kontakte | aca0f40442724f50068a0ce5de9a019c0681215f | [
"BSD-3-Clause"
] | null | null | null | OscillatorBase.cpp | Meromorph-Sound/Reason-Kontakte | aca0f40442724f50068a0ce5de9a019c0681215f | [
"BSD-3-Clause"
] | null | null | null | /*
* OscillatorBase.cpp
*
* Created on: 12 Feb 2021
* Author: julianporter
*/
#include "OscillatorBase.hpp"
namespace meromorph {
namespace click {
void OscillatorBase::update() {
delta = meromorph::TwoPi*frequency/sampleRate;
}
void OscillatorBase::setSampleRate(const float32 rate) {
sampleRate=rate;
... | 15.555556 | 56 | 0.686905 | Meromorph-Sound |
a0251421e1e971d7adf33af5f4ae941d2ed5354b | 24,149 | cpp | C++ | src/ScreenMagic.cpp | anonidiot/Wizardry8Editor | 2e844b8bbab9adbee5796de3190f478a91cc829a | [
"BSD-2-Clause"
] | null | null | null | src/ScreenMagic.cpp | anonidiot/Wizardry8Editor | 2e844b8bbab9adbee5796de3190f478a91cc829a | [
"BSD-2-Clause"
] | null | null | null | src/ScreenMagic.cpp | anonidiot/Wizardry8Editor | 2e844b8bbab9adbee5796de3190f478a91cc829a | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2022 Anonymous Idiot
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following... | 54.635747 | 206 | 0.520187 | anonidiot |
a025748124f2769efcfae2fc2fc5b138e7b6f79e | 9,198 | cpp | C++ | RakMagic/raknet/ConsoleServer.cpp | ezbooz/RakMagic | 045d7b08e0623ca007c43c010635f4c9c8ae0a54 | [
"MIT"
] | 11 | 2020-08-04T05:01:39.000Z | 2022-03-16T06:15:38.000Z | RakMagic/raknet/ConsoleServer.cpp | ezbooz/RakMagic | 045d7b08e0623ca007c43c010635f4c9c8ae0a54 | [
"MIT"
] | 2 | 2021-03-09T10:23:52.000Z | 2022-02-08T01:51:35.000Z | RakMagic/raknet/ConsoleServer.cpp | ezbooz/RakMagic | 045d7b08e0623ca007c43c010635f4c9c8ae0a54 | [
"MIT"
] | 5 | 2020-11-15T12:44:36.000Z | 2021-12-17T09:50:34.000Z | #include "ConsoleServer.h"
#include "TransportInterface.h"
#include "CommandParserInterface.h"
#include <string.h>
#include <stdlib.h>
#define COMMAND_DELINATOR ' '
#define COMMAND_DELINATOR_TOGGLE '"'
#if (defined(__GNUC__) || defined(__GCCXML__)) && !defined(_stricmp)
#define _stricmp strcasecmp
#endif
ConsoleSer... | 33.569343 | 164 | 0.677321 | ezbooz |
a029a308f3088c3888587272d6b1c8c7ab6a6a17 | 10,859 | cpp | C++ | adaptors/base/environment-options.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | adaptors/base/environment-options.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | adaptors/base/environment-options.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 26.746305 | 141 | 0.768947 | pwisbey |
a02d796068618f336a2976b05bffddb95645f312 | 805 | hpp | C++ | INIGroup.hpp | nking1232/INIUtil | abd88265cae610567f786e649dbb4f29d4dc3189 | [
"MIT"
] | null | null | null | INIGroup.hpp | nking1232/INIUtil | abd88265cae610567f786e649dbb4f29d4dc3189 | [
"MIT"
] | null | null | null | INIGroup.hpp | nking1232/INIUtil | abd88265cae610567f786e649dbb4f29d4dc3189 | [
"MIT"
] | null | null | null | #ifndef INIGROUP_HPP_INCLUDED
#define INIGROUP_HPP_INCLUDED
#include <list>
#include <string>
#include <iostream>
#include <sstream>
class INIKey;
using namespace std;
class INIGroup{
public:
INIGroup();
INIGroup(string);
INIGroup(string, list< INIKey* >);
void addChild(IN... | 14.375 | 39 | 0.619876 | nking1232 |
a02ea2e4ba44e06d7b92ab3acc86b79d4ed878ec | 2,751 | cc | C++ | hw16/lib/shell.cc | mrinaldhillon/oop-cpp | b2c1b766f8856390dbeeef484367dea14ff6cf78 | [
"MIT"
] | null | null | null | hw16/lib/shell.cc | mrinaldhillon/oop-cpp | b2c1b766f8856390dbeeef484367dea14ff6cf78 | [
"MIT"
] | null | null | null | hw16/lib/shell.cc | mrinaldhillon/oop-cpp | b2c1b766f8856390dbeeef484367dea14ff6cf78 | [
"MIT"
] | null | null | null | #include "lib/shell.h"
#include <iostream>
#include "lib/cd.h"
#include "lib/chown.h"
#include "lib/command_history.h"
#include "lib/count.h"
#include "lib/cp.h"
#include "lib/dir.h"
#include "lib/du.h"
#include "lib/history.h"
#include "lib/ln.h"
#include "lib/ls.h"
#include "lib/mkdir.h"
#include "lib/mv.h"
#include ... | 29.265957 | 79 | 0.577972 | mrinaldhillon |
a02ecb1b38736a38872c52c0b6fd3cde772953dd | 3,164 | cc | C++ | bridge/bindings/jsc/DOM/comment_node.cc | jeromehan/kraken | cbc4977de5f3a9ac62b3e6cb5aa0383988d8178a | [
"Apache-2.0"
] | 1 | 2021-03-14T06:34:02.000Z | 2021-03-14T06:34:02.000Z | bridge/bindings/jsc/DOM/comment_node.cc | jeromehan/kraken | cbc4977de5f3a9ac62b3e6cb5aa0383988d8178a | [
"Apache-2.0"
] | 1 | 2021-05-08T08:43:08.000Z | 2021-05-08T08:43:08.000Z | bridge/bindings/jsc/DOM/comment_node.cc | jeromehan/kraken | cbc4977de5f3a9ac62b3e6cb5aa0383988d8178a | [
"Apache-2.0"
] | 1 | 2021-09-13T03:51:47.000Z | 2021-09-13T03:51:47.000Z | /*
* Copyright (C) 2020 Alibaba Inc. All rights reserved.
* Author: Kraken Team.
*/
#include "comment_node.h"
namespace kraken::binding::jsc {
void bindCommentNode(std::unique_ptr<JSContext> &context) {
auto commentNode = JSCommentNode::instance(context.get());
JSC_GLOBAL_SET_PROPERTY(context, "CommentNode", ... | 33.305263 | 114 | 0.756953 | jeromehan |
a02fae0438e167f563315fa978a3b16ce7f7a869 | 6,076 | cpp | C++ | src/libmettle/log/summary.cpp | Hamled/mettle | 11e0979c2d84027f4ac941ff922a4278994a8f09 | [
"BSD-3-Clause"
] | null | null | null | src/libmettle/log/summary.cpp | Hamled/mettle | 11e0979c2d84027f4ac941ff922a4278994a8f09 | [
"BSD-3-Clause"
] | null | null | null | src/libmettle/log/summary.cpp | Hamled/mettle | 11e0979c2d84027f4ac941ff922a4278994a8f09 | [
"BSD-3-Clause"
] | null | null | null | #include <mettle/driver/log/summary.hpp>
#include <cassert>
#include <cmath>
#include <boost/io/ios_state.hpp>
#include <mettle/driver/log/term.hpp>
namespace mettle {
namespace log {
summary::summary(indenting_ostream &out, std::unique_ptr<file_logger> &&log,
bool show_time, bool show_termin... | 29.639024 | 80 | 0.579822 | Hamled |
a03cb446fd2695307806c2e5211a16440905d8f4 | 3,289 | cpp | C++ | cube.cpp | Joel714/CubeCollision | a5cd6197cc585989b7ad4636b6629bcd02996705 | [
"MIT"
] | null | null | null | cube.cpp | Joel714/CubeCollision | a5cd6197cc585989b7ad4636b6629bcd02996705 | [
"MIT"
] | null | null | null | cube.cpp | Joel714/CubeCollision | a5cd6197cc585989b7ad4636b6629bcd02996705 | [
"MIT"
] | null | null | null | #include "cube.h"
Cube::Cube(){
color[0] = 0.0; color[1] = 0.0; color[2] = 0.0;
vertices[0][0] = -1.0; vertices[0][1] = 1.0; vertices[0][2] = 1.0; vertices[0][3] = 1.0;//front top left
vertices[1][0] = 1.0; vertices[1][1] = 1.0; vertices[1][2] = 1.0; vertices[1][3] = 1.0;//front top right
vertices[2][0] = 1.0; v... | 36.544444 | 109 | 0.652174 | Joel714 |
a045fe4167e3f0f4ce2adbeebcd03a36a2ec6f24 | 2,879 | hxx | C++ | include/opengm/unittests/test.hxx | amueller/opengm | bf2d0c611ade9bbf1d2ae537fee0df4cb6553777 | [
"Unlicense"
] | 1 | 2020-03-13T20:56:48.000Z | 2020-03-13T20:56:48.000Z | include/opengm/unittests/test.hxx | amueller/opengm | bf2d0c611ade9bbf1d2ae537fee0df4cb6553777 | [
"Unlicense"
] | null | null | null | include/opengm/unittests/test.hxx | amueller/opengm | bf2d0c611ade9bbf1d2ae537fee0df4cb6553777 | [
"Unlicense"
] | null | null | null | #pragma once
#ifndef OPENGM_TEST_HXX
#define OPENGM_TEST_HXX
#include <cstdlib>
#include <sstream>
#include <stdexcept>
#include <iostream>
#include <vector>
#include "opengm/opengm.hxx"
#include "opengm/utilities/indexing.hxx"
/// \cond HIDDEN_SYMBOLS
#define OPENGM_TEST(x) \
if(!(x)) { \
std::stringstream ... | 27.682692 | 114 | 0.6471 | amueller |
a04b898544ceb2f4abb5d9611875a0b0b7d1ac94 | 2,582 | cpp | C++ | cetty-core/example/proxy/HexDumpProxy.cpp | frankee/cetty2 | 62ac0cd1438275097e47a9ba471e72efd2746ded | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 26 | 2015-11-08T10:58:21.000Z | 2021-02-25T08:27:26.000Z | cetty-core/example/proxy/HexDumpProxy.cpp | frankee/cetty2 | 62ac0cd1438275097e47a9ba471e72efd2746ded | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2019-02-18T08:46:17.000Z | 2019-02-18T08:46:17.000Z | cetty-core/example/proxy/HexDumpProxy.cpp | frankee/cetty2 | 62ac0cd1438275097e47a9ba471e72efd2746ded | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 8 | 2016-02-27T02:37:10.000Z | 2021-09-29T05:25:00.000Z | /*
* Copyright 2009 Red Hat, Inc.
*
* Red Hat licenses this file to you 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 ... | 32.683544 | 79 | 0.647947 | frankee |
a04f60c528f6d5166ca4d6691ebbf12420b2b381 | 5,449 | cpp | C++ | astring_path_utils.cpp | MaxAkaAltmer/alterlib | ba17c4fa1c1d995c68477820924b93e8a0b75fbe | [
"MIT"
] | null | null | null | astring_path_utils.cpp | MaxAkaAltmer/alterlib | ba17c4fa1c1d995c68477820924b93e8a0b75fbe | [
"MIT"
] | null | null | null | astring_path_utils.cpp | MaxAkaAltmer/alterlib | ba17c4fa1c1d995c68477820924b93e8a0b75fbe | [
"MIT"
] | null | null | null | /*****************************************************************************
This is part of Alterlib - the free code collection under the MIT License
------------------------------------------------------------------------------
Copyright (C) 2006-2020 Maxim L. Grishin (altmer@arts-union.ru)
Permission is h... | 24.434978 | 80 | 0.488163 | MaxAkaAltmer |
a054f704015e2957a72bb4f965783e9f6dc0c345 | 1,278 | cpp | C++ | LeetCode/ThousandTwo/1742-max_num_ball_in_box.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1742-max_num_ball_in_box.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1742-max_num_ball_in_box.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 1742. 盒子中小球的最大数量
你在一家生产小球的玩具厂工作,有 n 个小球,编号从 lowLimit 开始,到 highLimit 结束(包括 lowLimit 和 highLimit ,即 n == highLimit - lowLimit + 1)。
另有无限数量的盒子,编号从 1 到 infinity 。
你的工作是将每个小球放入盒子中,其中盒子的编号应当等于小球编号上每位数字的和。
例如,编号 321 的小球应当放入编号 3 + 2 + 1 = 6 的盒子,而编号 10 的小球应当放入编号 1 + 0 = 1 的盒子。
给你两个整数 lowLimit 和 h... | 18.794118 | 112 | 0.607199 | Ginkgo-Biloba |
a057ea7f7dfa5ec0be948cc4ef371a40892d5327 | 13,347 | cpp | C++ | Editor/UI/FileDialog.cpp | ValtoForks/Directus3D | 32b2c38bdf88e8b3e29010b17c313a26dcd9fbbd | [
"MIT"
] | null | null | null | Editor/UI/FileDialog.cpp | ValtoForks/Directus3D | 32b2c38bdf88e8b3e29010b17c313a26dcd9fbbd | [
"MIT"
] | null | null | null | Editor/UI/FileDialog.cpp | ValtoForks/Directus3D | 32b2c38bdf88e8b3e29010b17c313a26dcd9fbbd | [
"MIT"
] | null | null | null | /*
Copyright(c) 2016-2018 Panos Karabelas
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, publish, distrib... | 28.33758 | 206 | 0.712894 | ValtoForks |
a058874f238a6e7ba5111199e657564d954e1b43 | 2,410 | cpp | C++ | Octree/OctreePointCloudCompression.cpp | QuMIke/PracticePCL | efe947607516d28c176721c9930be049b50ad18a | [
"MIT"
] | null | null | null | Octree/OctreePointCloudCompression.cpp | QuMIke/PracticePCL | efe947607516d28c176721c9930be049b50ad18a | [
"MIT"
] | null | null | null | Octree/OctreePointCloudCompression.cpp | QuMIke/PracticePCL | efe947607516d28c176721c9930be049b50ad18a | [
"MIT"
] | null | null | null | /*
Point clouds consist of huge data sets describing three dimensional points associated with additional information
such as distance, color, normals, etc. Additionally, they can be created at high rate
and therefore occupy a significant amount of memory resources.
Once point clouds have to be stored or transmitted ov... | 34.428571 | 113 | 0.766805 | QuMIke |
a0588a74a22c9027891313d328ed4eb95b67a489 | 2,658 | cpp | C++ | tests/Unit/Domain/BoundaryConditions/Test_BoundaryCondition.cpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | tests/Unit/Domain/BoundaryConditions/Test_BoundaryCondition.cpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | tests/Unit/Domain/BoundaryConditions/Test_BoundaryCondition.cpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <memory>
#include <pup.h>
#include <string>
#include "Domain/BoundaryConditions/BoundaryCondition.hpp"
#include "Framework/TestHelpers.hpp"
#include "Helpers/Domain/BoundaryConditions/BoundaryCond... | 39.671642 | 80 | 0.674567 | nilsvu |
a05c1bd7485121e8d3ac8a497d621c8fe960875b | 18,641 | cpp | C++ | tests/test_stokes.cpp | pratyuksh/NumHypSys | 29e03f9cc0572178701525210561b152d89999d4 | [
"MIT"
] | null | null | null | tests/test_stokes.cpp | pratyuksh/NumHypSys | 29e03f9cc0572178701525210561b152d89999d4 | [
"MIT"
] | null | null | null | tests/test_stokes.cpp | pratyuksh/NumHypSys | 29e03f9cc0572178701525210561b152d89999d4 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "mfem.hpp"
using namespace mfem;
#include <iostream>
#include <fstream>
#include <random>
#include <Eigen/Core>
#include <Eigen/Dense>
#include "../include/mymfem/mybilinearform.hpp"
#include "../include/mymfem/utilities.hpp"
#include "../include/core/config.hpp"
#include "../incl... | 29.402208 | 73 | 0.644815 | pratyuksh |
a06243fd2fab1aca5c6ae0283dce69c2b4d16c88 | 252 | cpp | C++ | cpp/copyfile/copyfile.cpp | jxtopher/quick-codes | 577711394f3f338c061f1e53df875d958c645071 | [
"Apache-2.0"
] | null | null | null | cpp/copyfile/copyfile.cpp | jxtopher/quick-codes | 577711394f3f338c061f1e53df875d958c645071 | [
"Apache-2.0"
] | null | null | null | cpp/copyfile/copyfile.cpp | jxtopher/quick-codes | 577711394f3f338c061f1e53df875d958c645071 | [
"Apache-2.0"
] | null | null | null | #include "copyfile.h"
int main(int argc, char **argv) {
if (argc != 3) {
fprintf(stderr, "%s src dst\n",argv[0]);
return EXIT_FAILURE;
}
jxtopher::copyfile(argv[1], argv[2]);
return EXIT_SUCCESS;
}
| 18 | 56 | 0.527778 | jxtopher |
a063a18dafb776e40941f3fb1e3b5da753868bac | 1,666 | cpp | C++ | Chap_5/5.7/5.7.cpp | DrC0okie/Exercices | 40bb8040ff3bda218850fa348ceb9a7079eaaef0 | [
"MIT"
] | 1 | 2022-02-21T18:54:28.000Z | 2022-02-21T18:54:28.000Z | Chap_5/5.7/5.7.cpp | DrC0okie/HEIG_PRG1_Exercices | 40bb8040ff3bda218850fa348ceb9a7079eaaef0 | [
"MIT"
] | null | null | null | Chap_5/5.7/5.7.cpp | DrC0okie/HEIG_PRG1_Exercices | 40bb8040ff3bda218850fa348ceb9a7079eaaef0 | [
"MIT"
] | null | null | null | // File: 5.7.cpp
// Author: Timothee Van Hove
// Date: 10.11.2021
// Description: Exercise 5.7 "Remplacement de valeurs par une valeur donnée"
// Compiler: g++ 11.2.0
// Options: -std=c++20 -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -pedantic
#include <iostream>
using namesp... | 29.22807 | 88 | 0.589436 | DrC0okie |
a0655235bbb67881903f4c1826ea3ef065faaf38 | 2,621 | cpp | C++ | cpp/visual studio/CalculatorServer/reader/reader_hud_statistics.cpp | NiHoel/Anno1404UXEnhancer | 29d854a5264752f53e1f6f25f3749631b40bbd0a | [
"Apache-2.0"
] | 2 | 2020-12-17T19:49:41.000Z | 2021-12-05T23:41:40.000Z | cpp/visual studio/CalculatorServer/reader/reader_hud_statistics.cpp | NiHoel/Anno1404UXEnhancer | 29d854a5264752f53e1f6f25f3749631b40bbd0a | [
"Apache-2.0"
] | null | null | null | cpp/visual studio/CalculatorServer/reader/reader_hud_statistics.cpp | NiHoel/Anno1404UXEnhancer | 29d854a5264752f53e1f6f25f3749631b40bbd0a | [
"Apache-2.0"
] | null | null | null | #include "reader_hud_statistics.hpp"
#include <iostream>
#include <queue>
#include <regex>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
namespace reader
{
const cv::Scalar hud_params::background_brown_light = cv::Scalar(126, 179, 216, 255);
const cv::Rect2f hud_params::position_population_top_icon ... | 25.696078 | 138 | 0.741702 | NiHoel |
a065d72b3e6db3fbe708f10a93a78ae0fdb8b5cb | 4,798 | cpp | C++ | wildstar_area_3d/common/material.cpp | zerotacg/wildstar-tools | 2ad6a10a47d835045ff987198dc0b3d2c8d03fa0 | [
"MIT"
] | null | null | null | wildstar_area_3d/common/material.cpp | zerotacg/wildstar-tools | 2ad6a10a47d835045ff987198dc0b3d2c8d03fa0 | [
"MIT"
] | 1 | 2016-09-25T15:57:05.000Z | 2016-10-04T10:42:44.000Z | wildstar_area_3d/common/material.cpp | zerotacg/wildstar-tools | 2ad6a10a47d835045ff987198dc0b3d2c8d03fa0 | [
"MIT"
] | 2 | 2019-11-30T13:09:00.000Z | 2021-04-14T02:34:40.000Z | #include "material.h"
#include <qopenglfunctions_3_1.h>
#include <QOpenGLShaderProgram>
Material::Material()
: m_shader( new QOpenGLShaderProgram )
{
m_funcs = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_1>();
if ( !m_funcs )
{
qWarning() << "Requires multi-texturing ... | 39.327869 | 128 | 0.664652 | zerotacg |
a0684892fff98604f4f696838cf6dc316df4cc87 | 2,364 | hpp | C++ | src/main/cpp/ks/Logger.hpp | BoomDivX/sgl | 8a13f6b70bd0e2c83344e5a57e8795d1a95129f3 | [
"Unlicense"
] | 6 | 2021-05-18T16:13:39.000Z | 2021-11-17T16:30:31.000Z | src/main/cpp/ks/Logger.hpp | BoomDivX/sgl | 8a13f6b70bd0e2c83344e5a57e8795d1a95129f3 | [
"Unlicense"
] | 1 | 2021-10-17T19:16:01.000Z | 2021-10-17T19:16:04.000Z | src/main/cpp/ks/Logger.hpp | BoomDivX/sgl | 8a13f6b70bd0e2c83344e5a57e8795d1a95129f3 | [
"Unlicense"
] | 2 | 2021-07-23T20:19:24.000Z | 2021-10-17T19:10:36.000Z | #pragma once
#include "Logger.h"
/**
* Put this at the top of each file you call logging functions in and define
* a name for the module. This name is added to the log strings on log calls
*/
#ifndef LOG_MODULE
#define S1(x) #x
#define S2(x) S1(x)
#define LOG_MODULE strrchr(__FILE__ ":" S2(__LINE__), '/') ? \
... | 32.833333 | 129 | 0.685702 | BoomDivX |
a06f60688b85230738a3e672c16fdb06adf8b1bf | 398 | cc | C++ | utility/src/path_util.cc | shrenikm/Mnyrve | 6e0f41adfc9665ab4b516db73fa64a236e684c71 | [
"MIT"
] | null | null | null | utility/src/path_util.cc | shrenikm/Mnyrve | 6e0f41adfc9665ab4b516db73fa64a236e684c71 | [
"MIT"
] | 2 | 2018-11-04T07:01:20.000Z | 2018-11-17T07:40:19.000Z | utility/src/path_util.cc | shrenikm/Mnyrve | 6e0f41adfc9665ab4b516db73fa64a236e684c71 | [
"MIT"
] | null | null | null | #include "utility/include/path_util.h"
namespace mnyrve {
namespace utility {
std::string GetCurrentDirectory() {
std::ifstream path_file("tools/data/mnyrve_path.txt");
if (!path_file) {
std::cerr << "Unable to open mnyrve_path.txt" << std::endl;
exit(-3);
}
std::string path;
std::getline(path_fi... | 15.92 | 63 | 0.668342 | shrenikm |
a0705180036a1e69c3b76e2987ad3ff2435885e5 | 618 | cpp | C++ | Ouroboros/Source/oHLSL/half_stringize.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oHLSL/half_stringize.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oHLSL/half_stringize.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | // Copyright (c) 2014 Antony Arciuolo. See License.txt regarding use.
#include <half.h>
#include <oString/string.h>
#include <oString/stringize.h>
namespace ouro {
char* to_string(char* _StrDestination, size_t _SizeofStrDestination, const half& _Value) { if (to_string(_StrDestination, _SizeofStrDestination, st... | 51.5 | 294 | 0.754045 | jiangzhu1212 |
a070d5d2bd6ef1be142e8f4fea38ee8c966dc2e0 | 379 | hpp | C++ | code/aoce_win_mf/MFVideoDevice/MFVideoManager.hpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 71 | 2020-10-15T03:13:50.000Z | 2022-03-30T02:04:28.000Z | code/aoce_win_mf/MFVideoDevice/MFVideoManager.hpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 9 | 2021-02-20T10:30:10.000Z | 2022-03-04T07:59:58.000Z | code/aoce_win_mf/MFVideoDevice/MFVideoManager.hpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 19 | 2021-01-01T12:03:02.000Z | 2022-03-21T07:59:59.000Z | #pragma once
#include "videodevice/VideoManager.hpp"
namespace aoce {
namespace win {
namespace mf {
class MFVideoManager : public VideoManager {
private:
/* data */
public:
MFVideoManager(/* args */);
virtual ~MFVideoManager() override;
protected:
virtual void getDevices() override;
};
... | 18.95 | 44 | 0.670185 | msqljj |
a07379db5579f24a032c9b091bf9ed16e4b50b5e | 1,211 | cpp | C++ | c++/.leetcode/741.cherry-pickup.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | c++/.leetcode/741.cherry-pickup.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | c++/.leetcode/741.cherry-pickup.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | /*
* @lc app=leetcode id=741 lang=cpp
*
* [741] Cherry Pickup
*/
// @lc code=start
class Solution {
public:
int cherryPickup(vector<vector<int>>& grid) {
int m = grid.size(), n = grid[0].size();
int f[m][n];
for(int i = 0; i < m; i++){
for(int j = 0; j < n; j++)... | 26.911111 | 92 | 0.328654 | ming197 |
a0751eb058eaa06f0eedd6db1d5d500e0dbaa47b | 1,353 | cpp | C++ | MaximalSubsequence/main.cpp | rNexeR/AnalisisAlgoritmos | cc9a86a93319cd412a40eed300f8249630540d19 | [
"MIT"
] | null | null | null | MaximalSubsequence/main.cpp | rNexeR/AnalisisAlgoritmos | cc9a86a93319cd412a40eed300f8249630540d19 | [
"MIT"
] | null | null | null | MaximalSubsequence/main.cpp | rNexeR/AnalisisAlgoritmos | cc9a86a93319cd412a40eed300f8249630540d19 | [
"MIT"
] | null | null | null | #include "Test.h"
#include <iostream>
#include <climits>
using namespace std;
int maxSequenceSum(vector<int> numbers, int begin, int end)
{
if(begin == end)
return numbers[begin];
int index_half = begin + (end - begin)/2;
int max_left = maxSequenceSum(numbers, begin, index_half);
int max_right = maxSeque... | 19.056338 | 61 | 0.632668 | rNexeR |
a075f4651c5151ed55bc8fff6d9e26f2723b9fd9 | 9,947 | cpp | C++ | Old/mp3_InfoManager/io_helpers.cpp | Harteex/Tuniac | dac98a68c1b801b7fc82874aad16cc8adcabb606 | [
"BSD-3-Clause"
] | 3 | 2022-01-05T08:47:51.000Z | 2022-01-06T12:42:18.000Z | Old/mp3_InfoManager/io_helpers.cpp | Harteex/Tuniac | dac98a68c1b801b7fc82874aad16cc8adcabb606 | [
"BSD-3-Clause"
] | null | null | null | Old/mp3_InfoManager/io_helpers.cpp | Harteex/Tuniac | dac98a68c1b801b7fc82874aad16cc8adcabb606 | [
"BSD-3-Clause"
] | 1 | 2022-01-06T16:12:58.000Z | 2022-01-06T16:12:58.000Z | // $Id: io_helpers.cpp,v 1.1 2005/07/22 01:27:34 twistedddx Exp $
// id3lib: a C++ library for creating and manipulating id3v1/v2 tags
// Copyright 1999, 2000 Scott Thomas Haug
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Library General Public License as p... | 26.525333 | 86 | 0.650447 | Harteex |
a078b6d1f001cd680ac77f76cf3a805c7c98d713 | 41,361 | cpp | C++ | samples/hello_ar_c/app/src/main/gef_abertay/platform/vita/audio/audio_manager_vita.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | samples/hello_ar_c/app/src/main/gef_abertay/platform/vita/audio/audio_manager_vita.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | samples/hello_ar_c/app/src/main/gef_abertay/platform/vita/audio/audio_manager_vita.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | #include <platform/vita/audio/audio_manager_vita.h>
#include <system/Platform.h>
#include <kernel.h>
#include <stdio.h>
#include <string>
#include <stdlib.h>
#include <libsysmodule.h>
#include <audioout.h>
#include <sceerror.h>
#include <libdbg.h>
#define FILE_READ_CHUNK_SIZE (64 * 1024)
#define AUDIO_UPDATE_THREAD_S... | 30.502212 | 184 | 0.734315 | JD1305 |
a0887f0668b59bafeff5a2e7c1f9f4c9eebc54b7 | 6,111 | cc | C++ | google/cloud/internal/minimal_iam_credentials_stub.cc | jacobsa/google-cloud-cpp | ebfa1c583e0a4c83a77eafacf19475e8b3239ad2 | [
"Apache-2.0"
] | 1 | 2020-10-30T09:05:17.000Z | 2020-10-30T09:05:17.000Z | google/cloud/internal/minimal_iam_credentials_stub.cc | jacobsa/google-cloud-cpp | ebfa1c583e0a4c83a77eafacf19475e8b3239ad2 | [
"Apache-2.0"
] | null | null | null | google/cloud/internal/minimal_iam_credentials_stub.cc | jacobsa/google-cloud-cpp | ebfa1c583e0a4c83a77eafacf19475e8b3239ad2 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 39.941176 | 78 | 0.724595 | jacobsa |
a090b520598cbd31270be9cd304ca5043d89808a | 8,362 | cpp | C++ | Examples/merger_history_bonus.cpp | dnelson86/sublink | b5ef5938868f7f1095b564f1e529675cfab44f85 | [
"BSD-3-Clause"
] | 1 | 2022-01-20T22:24:12.000Z | 2022-01-20T22:24:12.000Z | Examples/merger_history_bonus.cpp | dnelson86/sublink | b5ef5938868f7f1095b564f1e529675cfab44f85 | [
"BSD-3-Clause"
] | null | null | null | Examples/merger_history_bonus.cpp | dnelson86/sublink | b5ef5938868f7f1095b564f1e529675cfab44f85 | [
"BSD-3-Clause"
] | null | null | null | /** @file merger_history_bonus.cpp
* @brief Calculate a few more merger statistics, such as the
* mean (mass-weighted) mass ratio of all mergers, the mean
* (mass-weighted) time since all mergers, and the mean
* (mass-weighted) cold gas fraction of the secondary progenitors.
*
* @author Vicen... | 35.2827 | 123 | 0.674121 | dnelson86 |
a0941e2ec27143b7bdb3f9abe7b0437c1ea77608 | 1,159 | cpp | C++ | src/sMenu.cpp | psjuan97/JamEngine | 20d98e6f3e962a518cc519fecd90205a52aba249 | [
"MIT"
] | 3 | 2019-09-30T08:23:03.000Z | 2020-07-18T09:09:56.000Z | src/sMenu.cpp | psjuan97/JamEngine | 20d98e6f3e962a518cc519fecd90205a52aba249 | [
"MIT"
] | 1 | 2019-09-28T14:17:05.000Z | 2019-09-28T14:17:05.000Z | src/sMenu.cpp | psjuan97/JamEngine | 20d98e6f3e962a518cc519fecd90205a52aba249 | [
"MIT"
] | null | null | null | #include "sMenu.hpp"
#include "engineModules/JamEngine.hpp"
#include "engineModules/EventManager.hpp"
#include "engineModules/StateMachine.hpp"
#include "sGame.hpp"
#include "ASSETS_IDs.hpp"
sMenu::sMenu()
{
}
sMenu::~sMenu(){
}
void sMenu::Init(){
AssetManager::Instance()->loadInitialAssets();
Spl... | 22.288462 | 80 | 0.681622 | psjuan97 |
90b4c0b2b8d8f8edae07d9ccd255dc9180a992b5 | 7,406 | cc | C++ | engine/source/game/gameInterface.cc | close-code/Torque2D | ad141fc7b5f28b75f727ef29dcc93aafbb3f5aa3 | [
"MIT"
] | 1,309 | 2015-01-01T02:46:14.000Z | 2022-03-14T04:56:02.000Z | engine/source/game/gameInterface.cc | close-code/Torque2D | ad141fc7b5f28b75f727ef29dcc93aafbb3f5aa3 | [
"MIT"
] | 155 | 2015-01-11T19:26:32.000Z | 2021-11-22T04:08:55.000Z | engine/source/game/gameInterface.cc | close-code/Torque2D | ad141fc7b5f28b75f727ef29dcc93aafbb3f5aa3 | [
"MIT"
] | 1,595 | 2015-01-01T23:19:48.000Z | 2022-02-17T07:00:52.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2013 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 restr... | 30.858333 | 109 | 0.63246 | close-code |
90c0b80e002c27ce08b8d98c18e0b4808975427a | 4,468 | cpp | C++ | AppleOpenSource/WebKit2-7609.3.5.1.3/UIProcess/WebURLSchemeHandler.cpp | lzackx/Zone | bf8a3d2b965c383a691a6e7b61d23db15ce11dba | [
"MIT"
] | null | null | null | AppleOpenSource/WebKit2-7609.3.5.1.3/UIProcess/WebURLSchemeHandler.cpp | lzackx/Zone | bf8a3d2b965c383a691a6e7b61d23db15ce11dba | [
"MIT"
] | null | null | null | AppleOpenSource/WebKit2-7609.3.5.1.3/UIProcess/WebURLSchemeHandler.cpp | lzackx/Zone | bf8a3d2b965c383a691a6e7b61d23db15ce11dba | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017 Apple Inc. 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, this list of conditions a... | 36.325203 | 206 | 0.755372 | lzackx |
90c3ddeed04cab4135674dd5aa586a9cb0888007 | 7,476 | cc | C++ | service/testing/carbon_connector_test.cc | sharpyfox/soa | 193cdae4e1412f09d655d8135c41f82225907099 | [
"Apache-2.0"
] | 1 | 2018-12-14T17:47:20.000Z | 2018-12-14T17:47:20.000Z | service/testing/carbon_connector_test.cc | sharpyfox/soa | 193cdae4e1412f09d655d8135c41f82225907099 | [
"Apache-2.0"
] | null | null | null | service/testing/carbon_connector_test.cc | sharpyfox/soa | 193cdae4e1412f09d655d8135c41f82225907099 | [
"Apache-2.0"
] | null | null | null | /* graphite_connector_test.cc
Jeremy Barnes, 3 August 2011
Copyright (c) 2011 Datacratic. All rights reserved.
Test for the carbon connector.
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include "soa/service/carbon_connector.h"
#include "jml/arch/atomic_ops.h"... | 26.98917 | 77 | 0.567282 | sharpyfox |
90c624069bbee3542cd60540bfb28a5bf7cb4b57 | 1,834 | cpp | C++ | thirdparty-cpp/boost_1_62_0/libs/hana/test/detail/variadic/take.cpp | nxplatform/nx-mobile | 0dc174c893f2667377cb2ef7e5ffeb212fa8b3e5 | [
"Apache-2.0"
] | 1 | 2018-12-15T19:57:24.000Z | 2018-12-15T19:57:24.000Z | thirdparty-cpp/boost_1_62_0/libs/hana/test/detail/variadic/take.cpp | nxplatform/nx-mobile | 0dc174c893f2667377cb2ef7e5ffeb212fa8b3e5 | [
"Apache-2.0"
] | null | null | null | thirdparty-cpp/boost_1_62_0/libs/hana/test/detail/variadic/take.cpp | nxplatform/nx-mobile | 0dc174c893f2667377cb2ef7e5ffeb212fa8b3e5 | [
"Apache-2.0"
] | null | null | null | // Copyright Louis Dionne 2013-2016
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/detail/variadic/take.hpp>
#include <boost/hana/assert.hpp>
#include <laws/base.hpp>
using namespace boost::... | 29.580645 | 136 | 0.482552 | nxplatform |
90c88cb9c4f22d49ab779cf93114c679353f9d72 | 1,362 | cpp | C++ | XSwitchFlags.cpp | dlsocool/dcx | 3d209d27cbd719f1d6c6d125b6f935ecaa79094c | [
"BSD-3-Clause"
] | null | null | null | XSwitchFlags.cpp | dlsocool/dcx | 3d209d27cbd719f1d6c6d125b6f935ecaa79094c | [
"BSD-3-Clause"
] | null | null | null | XSwitchFlags.cpp | dlsocool/dcx | 3d209d27cbd719f1d6c6d125b6f935ecaa79094c | [
"BSD-3-Clause"
] | null | null | null | #include "defines.h"
// Constructor
XSwitchFlags::XSwitchFlags(const TString &switches) {
ZeroMemory(flags, sizeof(bool) * 28);
ZeroMemory(flags_cap, sizeof(bool) * 26);
// no - sign, & no + sign, invalid syntax
if (switches[0] == TEXT('-'))
flags[26] = true;
else if (switches[0] == TEXT('+'))
fla... | 24.321429 | 62 | 0.559471 | dlsocool |
90c91d5275a0830376f8a21ca6e10efd11031910 | 1,244 | hpp | C++ | src/bembel/kernel/events/input-events.hpp | JoachimHerber/Bembel-Game-Engine | 5c4e46c5a15356af6e997038a8d76065b0691b50 | [
"MIT"
] | 2 | 2018-01-02T14:07:54.000Z | 2021-07-05T08:05:21.000Z | src/bembel/kernel/events/input-events.hpp | JoachimHerber/Bembel-Game-Engine | 5c4e46c5a15356af6e997038a8d76065b0691b50 | [
"MIT"
] | null | null | null | src/bembel/kernel/events/input-events.hpp | JoachimHerber/Bembel-Game-Engine | 5c4e46c5a15356af6e997038a8d76065b0691b50 | [
"MIT"
] | null | null | null | #ifndef BEMBEL_KERNEL_EVENTS_INPUTEVENTS_HPP
#define BEMBEL_KERNEL_EVENTS_INPUTEVENTS_HPP
#include "./event-manager.hpp"
namespace bembel::kernel {
class Window;
struct KeyPressEvent {
Window* const window;
int key_id;
int scancode;
int mods;
};
struct KeyRepeatEvent {
Window* const window;
... | 16.155844 | 45 | 0.684084 | JoachimHerber |
90c94d25006f9222367611ab2ff8177a98911e80 | 9,145 | cpp | C++ | source/scripting/Camera.cpp | JohnnyCrazy/scripthookvdotnet | ff56a2ffbde0cc6e72ddd718fee615e74f6d1c4a | [
"Zlib"
] | null | null | null | source/scripting/Camera.cpp | JohnnyCrazy/scripthookvdotnet | ff56a2ffbde0cc6e72ddd718fee615e74f6d1c4a | [
"Zlib"
] | 1 | 2015-06-18T18:46:33.000Z | 2015-06-18T18:47:06.000Z | source/scripting/Camera.cpp | JohnnyCrazy/scripthookvdotnet | ff56a2ffbde0cc6e72ddd718fee615e74f6d1c4a | [
"Zlib"
] | 2 | 2015-05-06T18:19:04.000Z | 2019-08-11T22:03:23.000Z | #include "Camera.hpp"
#include "Ped.hpp"
#include "Native.hpp"
namespace GTA
{
Camera::Camera(int handle) : _handle(handle)
{
}
int Camera::Handle::get()
{
return _handle;
}
void Camera::DepthOfFieldStrength::set(float strength)
{
Native::Function::Call(Native::Hash::SET_CAM_DOF_STRENGTH, Handle, strength... | 33.745387 | 218 | 0.729579 | JohnnyCrazy |
90cb02270427d27e783642092594a01e838d3dc9 | 2,469 | cpp | C++ | src/drivers/FDDriver.cpp | FR-GRE-BDS-HPC-SW-SAGE2-GMA/ummap-io-v2 | bfcd3c1bccf9a798ada3ebf6d2ed16e60ab44660 | [
"Apache-2.0"
] | 1 | 2022-01-28T16:03:04.000Z | 2022-01-28T16:03:04.000Z | src/drivers/FDDriver.cpp | FR-GRE-BDS-HPC-SW-SAGE2-GMA/ummap-io-v2 | bfcd3c1bccf9a798ada3ebf6d2ed16e60ab44660 | [
"Apache-2.0"
] | null | null | null | src/drivers/FDDriver.cpp | FR-GRE-BDS-HPC-SW-SAGE2-GMA/ummap-io-v2 | bfcd3c1bccf9a798ada3ebf6d2ed16e60ab44660 | [
"Apache-2.0"
] | null | null | null | /*****************************************************
* PROJECT : ummap-io-v2 *
* LICENSE : Apache 2.0 *
* COPYRIGHT: 2020-2021 Bull SAS All rights reserved *
*****************************************************/
/******************** HEADERS ************... | 23.074766 | 84 | 0.520049 | FR-GRE-BDS-HPC-SW-SAGE2-GMA |
90cbbc6fc8f5b61296d9cd680a920ad89a4b6f2f | 4,660 | cpp | C++ | openstudiocore/src/model/SpaceLoad.cpp | ORNL-BTRIC/OpenStudio | 878f94bebf6f025445d1373e8b2304ececac16d8 | [
"blessing"
] | null | null | null | openstudiocore/src/model/SpaceLoad.cpp | ORNL-BTRIC/OpenStudio | 878f94bebf6f025445d1373e8b2304ececac16d8 | [
"blessing"
] | null | null | null | openstudiocore/src/model/SpaceLoad.cpp | ORNL-BTRIC/OpenStudio | 878f94bebf6f025445d1373e8b2304ececac16d8 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... | 29.871795 | 100 | 0.64206 | ORNL-BTRIC |
90d4ff1e2a32c009bf8803cb6459f50ee490254b | 2,697 | cpp | C++ | Common/melobaseapp.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Common/melobaseapp.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Common/melobaseapp.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | //
// melobaseapp.cpp
// MelobaseStation
//
// Created by Daniel Cliche on 2014-07-21.
// Copyright (c) 2014-2021 Daniel Cliche. All rights reserved.
//
#include "melobaseapp.h"
#include <font.h>
#include <melobasecore.h>
#include <platform.h>
#include "helpers.h"
#include "midihub.h"
#define SERVER_PORT 8008
... | 29.637363 | 120 | 0.599184 | dcliche |
90d52c08990b3d239149ca976568383ac12a592e | 2,453 | cpp | C++ | targets/libraries/mcp3428/mcp3428.cpp | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 20 | 2017-10-12T10:49:10.000Z | 2022-03-16T03:21:46.000Z | targets/libraries/mcp3428/mcp3428.cpp | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 2 | 2018-06-22T16:00:02.000Z | 2019-09-01T13:32:27.000Z | targets/libraries/mcp3428/mcp3428.cpp | sicrisembay/mbed_target | dd7af2f2903fdc633ccd6028e6ae4f7b3cdd54c8 | [
"Apache-2.0"
] | 9 | 2017-08-13T12:15:32.000Z | 2021-11-21T07:57:08.000Z | /* Copyright 2015 M. Marquardt, HS Wismar */
#include "mcp3428.h"
// constructor
// valid addr values 0 to 7
MCP3428::MCP3428(I2C *i2c, uint8_t addr)
{
_i2c = i2c;
dev_addr = (MCP3428_BASE_ADDR | ((addr & 0x7) << 1));
}
// perform atomic read
// ret: zero if OK
// none zero Fail
bool MCP3428::read(int16_t... | 19.624 | 107 | 0.624541 | sicrisembay |
90d63f803056fe0b44c7ea21e9f874a04b345944 | 407 | cpp | C++ | Codeforces/192B - Walking in the Rain.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/192B - Walking in the Rain.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/192B - Walking in the Rain.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
int n;
cin >> n;
vector<int> arr(n);
for (auto &el: arr) cin >> el;
int mn = numeric_limits<int>::max();
for (int i = 0; i < n - 1; ++i) {
mn = min(mn, max(arr[i], arr[i + 1]));
}
mn = m... | 19.380952 | 46 | 0.484029 | naimulcsx |
90dba8b90a135d97ead09f062a98316f5826a968 | 1,348 | hpp | C++ | Part-I-The-Basics/Chapter-03-Nontype-Template-Parameters/basics/stacknontype.hpp | RingZEROtlf/Cpp-Templates-Complete-Guide | e5de63f89019b8d688a7807f88cb0d5f7028b345 | [
"MIT"
] | null | null | null | Part-I-The-Basics/Chapter-03-Nontype-Template-Parameters/basics/stacknontype.hpp | RingZEROtlf/Cpp-Templates-Complete-Guide | e5de63f89019b8d688a7807f88cb0d5f7028b345 | [
"MIT"
] | null | null | null | Part-I-The-Basics/Chapter-03-Nontype-Template-Parameters/basics/stacknontype.hpp | RingZEROtlf/Cpp-Templates-Complete-Guide | e5de63f89019b8d688a7807f88cb0d5f7028b345 | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <cassert>
template<typename T, std::size_t Maxsize>
class Stack {
private:
std::array<T, Maxsize> elems; // elements
std::size_t numElems; // current number of elements
public:
Stack(); // constructor
void push(T const& elem); // push e... | 26.431373 | 68 | 0.613501 | RingZEROtlf |
90dc56e7c3423cd50fdcef7b537430119eaf8b56 | 1,262 | hpp | C++ | Library/Deps/MessagePack/Include/msgpack/v1/adaptor/array_ref_decl.hpp | rneogns/simpleio | 20830a2b9b22c31eab23508acd25b275b53103c9 | [
"MIT"
] | null | null | null | Library/Deps/MessagePack/Include/msgpack/v1/adaptor/array_ref_decl.hpp | rneogns/simpleio | 20830a2b9b22c31eab23508acd25b275b53103c9 | [
"MIT"
] | null | null | null | Library/Deps/MessagePack/Include/msgpack/v1/adaptor/array_ref_decl.hpp | rneogns/simpleio | 20830a2b9b22c31eab23508acd25b275b53103c9 | [
"MIT"
] | null | null | null | //
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MSGPACK_V1_... | 22.535714 | 66 | 0.699683 | rneogns |
90ddc1edc9969cb5b081bb9909e03e8d65c8cf5d | 30,621 | cpp | C++ | Website/RootLogin.cpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | 5 | 2015-10-28T07:05:27.000Z | 2021-09-29T12:14:17.000Z | Website/RootLogin.cpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | null | null | null | Website/RootLogin.cpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | 2 | 2015-10-24T18:24:38.000Z | 2019-02-02T05:06:48.000Z | /**
* @file
* @author Mohammad S. Babaei <info@babaei.net>
* @version 0.1.0
*
* @section LICENSE
*
* (The MIT License)
*
* Copyright (c) 2016 Mohammad S. Babaei
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | 39.10728 | 115 | 0.578459 | NuLL3rr0r |
90ded1a038d176ae77152ca96e34809070c09411 | 1,427 | cpp | C++ | touhou/BomberFunctions/Bomber_Reisen.cpp | axt32/tohoxp | 1dee92da45f8adb2d6475154bd73f940d30e8cf3 | [
"MIT"
] | null | null | null | touhou/BomberFunctions/Bomber_Reisen.cpp | axt32/tohoxp | 1dee92da45f8adb2d6475154bd73f940d30e8cf3 | [
"MIT"
] | null | null | null | touhou/BomberFunctions/Bomber_Reisen.cpp | axt32/tohoxp | 1dee92da45f8adb2d6475154bd73f940d30e8cf3 | [
"MIT"
] | null | null | null | #include "Bomber_Reisen.h"
void Bomber_Reisen_Init(GamePlayer *IN_GamePlayer, int IN_iParam0, int IN_iParam1, int IN_iParam2, int IN_iParam3, int IN_iParam4)
{
int * iFrameCount = &(IN_GamePlayer->iBomberParameters[0]);
int * iDesiredFrameCount = &(IN_GamePlayer->iBomberParameters[1]);
int * iCurrentShotCount = &(I... | 27.980392 | 130 | 0.71829 | axt32 |
90e033e569a6ff8879ca8272c8902aec1bc6183d | 2,081 | cc | C++ | telican/lampe_command.cc | hcanIngo/openHCAN | 8aef7070482af7ae996755799e5d65d0d3b56553 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 21 | 2015-12-19T21:08:02.000Z | 2021-09-09T09:39:23.000Z | telican/lampe_command.cc | RealMerlin/openHCAN | 7e15e725c3d6f2a5a36ccd55f5699685356d8287 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 10 | 2015-12-18T20:24:22.000Z | 2021-07-03T12:30:15.000Z | telican/lampe_command.cc | RealMerlin/openHCAN | 7e15e725c3d6f2a5a36ccd55f5699685356d8287 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 6 | 2015-12-27T17:15:21.000Z | 2021-09-09T09:39:38.000Z | #include "lampe_command.h"
#include <boost/regex.hpp>
#include <iostream>
#include <hcan_multicast.h>
lampe_command::lampe_command(hcan::transport_connection &tcon, uint16_t src) :
m_tcon(tcon),
m_src(src)
{
}
lampe_command::~lampe_command()
{
}
bool lampe_command::exec(const string &line)
{
try
{
boost::cmatc... | 24.197674 | 81 | 0.641038 | hcanIngo |
90e0ae5eb5ec0dff9ce1a292f1c1c92d77b3e895 | 12,089 | hpp | C++ | include/ScopedTiming.hpp | caseymcc/Vorb | a2782bbff662c226002fa69bae688a44770deaf4 | [
"MIT"
] | 1 | 2018-10-17T06:37:17.000Z | 2018-10-17T06:37:17.000Z | include/ScopedTiming.hpp | caseymcc/Vorb | a2782bbff662c226002fa69bae688a44770deaf4 | [
"MIT"
] | null | null | null | include/ScopedTiming.hpp | caseymcc/Vorb | a2782bbff662c226002fa69bae688a44770deaf4 | [
"MIT"
] | null | null | null | //
// ScopedTiming.hpp
// Vorb Engine
//
// Created by Cristian Zaloj on 16 Jan 2015
// Copyright 2014 Regrowth Studios
// All Rights Reserved
//
/*! \file ScopedTiming.hpp
* @brief Simple implementation of an lifetime-based timer.
*/
#pragma once
#ifndef Vorb_ScopedTiming_hpp__
//! @cond DOXY_SHOW_HEADER_GUARDS
#... | 37.427245 | 123 | 0.62652 | caseymcc |
90e17f520cc5dfe0def1b0630b61b172dbc9315e | 2,429 | cc | C++ | INET_EC/physicallayer/pathloss/TwoRayInterference.cc | LarryNguyen/ECSim- | 0d3f848642e49845ed7e4c7b97dd16bd3d65ede5 | [
"Apache-2.0"
] | 12 | 2020-11-30T08:04:23.000Z | 2022-03-23T11:49:26.000Z | INET_EC/physicallayer/pathloss/TwoRayInterference.cc | LarryNguyen/ECSim- | 0d3f848642e49845ed7e4c7b97dd16bd3d65ede5 | [
"Apache-2.0"
] | 1 | 2021-01-26T10:49:56.000Z | 2021-01-31T16:58:52.000Z | INET_EC/physicallayer/pathloss/TwoRayInterference.cc | LarryNguyen/ECSim- | 0d3f848642e49845ed7e4c7b97dd16bd3d65ede5 | [
"Apache-2.0"
] | 8 | 2021-03-15T02:05:51.000Z | 2022-03-21T13:14:02.000Z | #include "inet/physicallayer/contract/packetlevel/IRadioMedium.h"
#include "inet/physicallayer/pathloss/TwoRayInterference.h"
namespace inet {
namespace physicallayer {
Define_Module(TwoRayInterference);
TwoRayInterference::TwoRayInterference() :
epsilon_r(1.0)
{
}
void TwoRayInterference::initialize(int stage)... | 34.211268 | 113 | 0.715932 | LarryNguyen |
90e47d83e34231f47a4f3e2d2bc6c9071ad15f2b | 2,028 | hpp | C++ | src/visual/xml_generator.hpp | toppic-suite/toppic-suite | b5f0851f437dde053ddc646f45f9f592c16503ec | [
"Apache-2.0"
] | 8 | 2018-05-23T14:37:31.000Z | 2022-02-04T23:48:38.000Z | src/visual/xml_generator.hpp | toppic-suite/toppic-suite | b5f0851f437dde053ddc646f45f9f592c16503ec | [
"Apache-2.0"
] | 9 | 2019-08-31T08:17:45.000Z | 2022-02-11T20:58:06.000Z | src/visual/xml_generator.hpp | toppic-suite/toppic-suite | b5f0851f437dde053ddc646f45f9f592c16503ec | [
"Apache-2.0"
] | 4 | 2018-04-25T01:39:38.000Z | 2020-05-20T19:25:07.000Z | //Copyright (c) 2014 - 2020, The Trustees of Indiana University.
//
//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 a... | 22.786517 | 74 | 0.746548 | toppic-suite |
90e4e213588de4eb404b4c3bf832e28511aeb9a8 | 6,187 | cpp | C++ | plugins/unifiedvideoinertialtracker/ThreadsafeBodyReporting.cpp | ethanpeng/OSVR-Core | 59405fc1b1a25aea051dfbba0be5171fa19b8b30 | [
"Apache-2.0"
] | 369 | 2015-03-08T03:12:41.000Z | 2022-02-08T22:15:39.000Z | plugins/unifiedvideoinertialtracker/ThreadsafeBodyReporting.cpp | ethanpeng/OSVR-Core | 59405fc1b1a25aea051dfbba0be5171fa19b8b30 | [
"Apache-2.0"
] | 486 | 2015-03-09T13:29:00.000Z | 2020-10-16T00:41:26.000Z | plugins/unifiedvideoinertialtracker/ThreadsafeBodyReporting.cpp | ethanpeng/OSVR-Core | 59405fc1b1a25aea051dfbba0be5171fa19b8b30 | [
"Apache-2.0"
] | 166 | 2015-03-08T12:03:56.000Z | 2021-12-03T13:56:21.000Z | /** @file
@brief Implementation
@date 2016
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2016 Sensics, 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 L... | 36.827381 | 80 | 0.638759 | ethanpeng |
90e61333e858e0f02ff719f3643cab5a5eb28255 | 94,846 | cpp | C++ | src/qt/src/corelib/arch/symbian/heap_hybrid.cpp | martende/phantomjs | 5cecd7dde7b8fd04ad2c036d16f09a8d2a139854 | [
"BSD-3-Clause"
] | 1 | 2015-03-16T20:49:09.000Z | 2015-03-16T20:49:09.000Z | src/qt/src/corelib/arch/symbian/heap_hybrid.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | src/qt/src/corelib/arch/symbian/heap_hybrid.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
**... | 28.337616 | 172 | 0.668547 | martende |
90ebba13c127f03a0ebfb8a9340e2525d833785a | 7,092 | hh | C++ | src/renderer/draw_2d.hh | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | 4 | 2015-10-01T20:10:20.000Z | 2021-08-28T23:43:33.000Z | src/renderer/draw_2d.hh | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | src/renderer/draw_2d.hh | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | /*
draw_2d.hh -- Copyright (c) 2013 Noel Cower. All rights reserved.
See COPYING under the project root for the source code license. If this file
is not present, refer to <https://raw.github.com/nilium/snow/master/COPYING>.
*/
#ifndef __SNOW__DRAW_2D_HH__
#define __SNOW__DRAW_2D_HH__
#include "../config.hh"
#inc... | 35.46 | 84 | 0.625212 | nilium |
90f24a4e631d31d3e973f0686d0bd7c3526d019f | 196 | cpp | C++ | pre_ast/nodes/in_type.cpp | kahveciderin/cornpiler | b6f843eb44e7b79ef74b0943ec9792ab1cb4740c | [
"Unlicense"
] | null | null | null | pre_ast/nodes/in_type.cpp | kahveciderin/cornpiler | b6f843eb44e7b79ef74b0943ec9792ab1cb4740c | [
"Unlicense"
] | null | null | null | pre_ast/nodes/in_type.cpp | kahveciderin/cornpiler | b6f843eb44e7b79ef74b0943ec9792ab1cb4740c | [
"Unlicense"
] | null | null | null | #include "in_type.hpp"
ast_types::in_type::in_type() { act = act_type::type; }
std::string ast_types::in_type::print_node() {
return "\"in_type\": {\"type\":" + this->type.print_node() + "}";
} | 32.666667 | 67 | 0.637755 | kahveciderin |
90f7604cda5adc8a6881f37c148fd968184da520 | 2,720 | hpp | C++ | openstudiocore/src/runmanager/lib/RubyJob.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/runmanager/lib/RubyJob.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/runmanager/lib/RubyJob.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2013, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published ... | 29.247312 | 83 | 0.641176 | bobzabcik |
90fb1325d59bf46e09cf67f713bae1f0df2e9549 | 917 | cpp | C++ | src/blast_helper.cpp | ResearchDx/HardSearch | 718a11f51d9130314ea631a541fb8a8b012f2aeb | [
"MIT"
] | null | null | null | src/blast_helper.cpp | ResearchDx/HardSearch | 718a11f51d9130314ea631a541fb8a8b012f2aeb | [
"MIT"
] | 1 | 2018-09-29T22:18:06.000Z | 2018-09-29T22:18:06.000Z | src/blast_helper.cpp | ResearchDx/HardSearch | 718a11f51d9130314ea631a541fb8a8b012f2aeb | [
"MIT"
] | null | null | null | /*
* main.cpp
*
* Created on: Jul 29, 2014
* Author: galaxy
*/
#include <stdio.h>
#include <string>
#include <cstring>
#include <cstdlib>
int main(int argc, char *argv[])
{
std::string cmd;
std::string rs;
std::string blast_path;
std::string blast_ref;
rs = std::string(argv[1], strlen(argv[1]));
bl... | 18.714286 | 62 | 0.620502 | ResearchDx |
290226cb40f3ac78b103cc98d8be4b49c4155c57 | 28,981 | cpp | C++ | iup/srcmglplot/mgl/mgl_vect.cpp | xuminic/iup-porting | 1146f0c683f3d3487cf5524d7d9d7dc01b20aec9 | [
"MIT"
] | 68 | 2015-01-21T11:06:38.000Z | 2022-03-18T11:01:40.000Z | iup/srcmglplot/mgl/mgl_vect.cpp | xuminic/iup-porting | 1146f0c683f3d3487cf5524d7d9d7dc01b20aec9 | [
"MIT"
] | null | null | null | iup/srcmglplot/mgl/mgl_vect.cpp | xuminic/iup-porting | 1146f0c683f3d3487cf5524d7d9d7dc01b20aec9 | [
"MIT"
] | 17 | 2015-01-08T16:38:03.000Z | 2022-01-20T15:00:57.000Z | /***************************************************************************
* mgl_vect.cpp is part of Math Graphic Library
* Copyright (C) 2007 Alexey Balakin <balakin@appl.sci-nnov.ru> *
* *
* This program is free software; you c... | 43.449775 | 157 | 0.528933 | xuminic |
2904840b7cae1872f0d7c3088cc41cc327cba724 | 3,051 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/Message.DefaultPropertiesToSend/CPP/message_defaultandpriority.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Remoting/Message.DefaultPropertiesToSend/CPP/message_defaultandpriority.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Remoting/Message.DefaultPropertiesToSend/CPP/message_defaultandpriority.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z | // <Snippet1>
#using <system.dll>
#using <system.messaging.dll>
using namespace System;
using namespace System::Messaging;
/// <summary>
/// Provides a container class for the example.
/// </summary>
ref class MyNewQueue
{
//**************************************************
// Sends a string mes... | 28.25 | 80 | 0.529007 | hamarb123 |
290bae909d5620b3c722b37b8752f1162a44d2fb | 1,102 | cpp | C++ | test_func.cpp | mihneasaracin/Distributed-CSP | 8e4b0cc9e70cbc2451463458aa07c60d66a78c7c | [
"MIT"
] | null | null | null | test_func.cpp | mihneasaracin/Distributed-CSP | 8e4b0cc9e70cbc2451463458aa07c60d66a78c7c | [
"MIT"
] | null | null | null | test_func.cpp | mihneasaracin/Distributed-CSP | 8e4b0cc9e70cbc2451463458aa07c60d66a78c7c | [
"MIT"
] | null | null | null | #include <unordered_map>
#include <iostream>
#include <cassert>
#include <typeinfo>
// Example to have a map with different types of function
class Handler
{
public:
template <typename T>
Handler(T fn)
: f((void(*)())(fn))
, info(typeid(T))
{
}
template <typename... Args... | 21.192308 | 87 | 0.512704 | mihneasaracin |
290dc0b822c421c48cb72bcf1ae7597057e7c2a1 | 630 | cpp | C++ | c++11/understanding-cpp11/chapter2/2-10-1.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter2/2-10-1.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter2/2-10-1.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class MathObject{
public:
virtual double Arith() = 0;
virtual void Print() = 0;
};
class Printable : public MathObject{
public:
double Arith() = 0;
void Print() // C++98中我们无法阻止该接口被重写
{
cout << "Output is: " << Arith() << endl;
}
};
class Add2 : pu... | 18 | 59 | 0.580952 | cuiwm |
29150c5b7515d019d91e73f111e5282f15c47e00 | 3,906 | cpp | C++ | src/Collector.cpp | ar808x/wanderer-bot | df4ba9d8736cced1c4a8498cdca10b887068828a | [
"MIT"
] | null | null | null | src/Collector.cpp | ar808x/wanderer-bot | df4ba9d8736cced1c4a8498cdca10b887068828a | [
"MIT"
] | 2 | 2020-12-08T23:45:02.000Z | 2020-12-16T00:07:35.000Z | src/Collector.cpp | ar808x/wanderer-bot | df4ba9d8736cced1c4a8498cdca10b887068828a | [
"MIT"
] | 1 | 2020-12-20T00:14:22.000Z | 2020-12-20T00:14:22.000Z | /*****************************************************************************************
Copyright (C) 2020 Arjun Srinivasan Ambalam,Rajeshwar N.S
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of s... | 35.189189 | 91 | 0.701997 | ar808x |
29169e5c75e2c93f11c26d49a64e470dc0f522bf | 516 | cpp | C++ | codeforces/p1330A.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | codeforces/p1330A.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | codeforces/p1330A.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--)
{
int n, x;
cin >> n >> x;
vector<int> a(n);
for(auto &it:a) cin >> it;
int i = 1;
for(; i < 1000; i++)
{
bool find = false;
for(auto it... | 17.793103 | 51 | 0.335271 | freedomDR |
2918dfceef7fe6137842e6227ecbb97d6c032c02 | 504 | cpp | C++ | hoardingCpp/DiceRoll.cpp | rishabh2d/Monopoly | cd484a71f2dc50b6f088c61e46fc3daf68bf5f0a | [
"MIT"
] | null | null | null | hoardingCpp/DiceRoll.cpp | rishabh2d/Monopoly | cd484a71f2dc50b6f088c61e46fc3daf68bf5f0a | [
"MIT"
] | null | null | null | hoardingCpp/DiceRoll.cpp | rishabh2d/Monopoly | cd484a71f2dc50b6f088c61e46fc3daf68bf5f0a | [
"MIT"
] | null | null | null | //
// Created by Rishabh 2 on 2/7/18.
//
#include <iostream>
#include "SpaceX.h"
int Monopoly::DiceRollClass::getDiceRoll (FILE *RANDOM_FILENAME, Monopoly::BoardClass &board, int *num1, int *num2) {
fscanf(RANDOM_FILENAME, "%d\n%d\n", &(*num1), &(*num2));
diceRoll = (*num1 % 6) + (*num2 % 6) + 2;
*num1... | 21.913043 | 117 | 0.607143 | rishabh2d |
29195dc5421b124d43f2173593c73f2db4328bdb | 4,873 | hpp | C++ | Application/include/Config.hpp | einsteinx2/TriPlayer | cb9e12fb71b90241b9fa08c40b8ca73a209ca8c2 | [
"MIT"
] | null | null | null | Application/include/Config.hpp | einsteinx2/TriPlayer | cb9e12fb71b90241b9fa08c40b8ca73a209ca8c2 | [
"MIT"
] | null | null | null | Application/include/Config.hpp | einsteinx2/TriPlayer | cb9e12fb71b90241b9fa08c40b8ca73a209ca8c2 | [
"MIT"
] | null | null | null | #ifndef CONFIG_HPP
#define CONFIG_HPP
#include "Log.hpp"
#include "ui/frame/Frame.hpp"
#include "ui/Theme.hpp"
#include "utils/nx/Button.hpp"
// Forward declarations as we only need the types here
class minIni;
// The config class interacts with the config file stored on
// the SD Card to read/write both the applica... | 29.713415 | 74 | 0.628155 | einsteinx2 |
291a3a970274d4b8a7557cd28ce2d8de5d910283 | 707 | cpp | C++ | hdu/1000/1711.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2020-07-22T16:54:07.000Z | 2020-07-22T16:54:07.000Z | hdu/1000/1711.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2018-05-12T12:53:06.000Z | 2018-05-12T12:53:06.000Z | hdu/1000/1711.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstring>
#include<string>
using namespace std;
const int N = 1000010;
const int M = 10010;
int a[N], b[M];
int ne[M];
int n, m,t;
void getnext(){
int j = 0, k = -1;
ne[0] = -1;
while (j < m){
if (k == -1 || b[j] == b[k])
ne[++j] = ++k;
else k = ... | 16.068182 | 30 | 0.465347 | TheBadZhang |
291c0672d5b5737879b577fdbad7e74105bbde90 | 318 | cpp | C++ | test_programs/wchar/wctype_test4.cpp | sodero/clib2-1 | f1f328909735c88ec2e1d4059d1b941ba859ba91 | [
"Unlicense",
"BSD-3-Clause"
] | null | null | null | test_programs/wchar/wctype_test4.cpp | sodero/clib2-1 | f1f328909735c88ec2e1d4059d1b941ba859ba91 | [
"Unlicense",
"BSD-3-Clause"
] | null | null | null | test_programs/wchar/wctype_test4.cpp | sodero/clib2-1 | f1f328909735c88ec2e1d4059d1b941ba859ba91 | [
"Unlicense",
"BSD-3-Clause"
] | null | null | null | // An example C++ program to demonstrate use
// of wcslen()
#include <iostream>
#include <cwchar>
using namespace std;
int main()
{
// wide-char type array string
wchar_t waname[] = L"geeksforgeeks";
wcout << L"The length of '" << waname
<< L"' is " << wcslen(waname) << endl;
return 0;
}
| 18.705882 | 48 | 0.603774 | sodero |
291cdd9e53435400213c2a85712612e101615803 | 3,627 | hpp | C++ | WebEngines/QWebEngine/ContextMenuData.hpp | Feldrise/SieloNavigateurBeta | faa5fc785271b49d26237a5e9985d6fa22565076 | [
"MIT"
] | 89 | 2018-04-26T14:28:13.000Z | 2019-07-03T03:58:17.000Z | WebEngines/QWebEngine/ContextMenuData.hpp | inviu/webBrowser | 37b24eded2e168e43b3f9c9ccc0487ee59410332 | [
"MIT"
] | 51 | 2018-04-26T12:43:00.000Z | 2019-04-24T20:39:59.000Z | WebEngines/QWebEngine/ContextMenuData.hpp | inviu/webBrowser | 37b24eded2e168e43b3f9c9ccc0487ee59410332 | [
"MIT"
] | 34 | 2018-05-11T07:09:36.000Z | 2019-04-19T08:12:40.000Z | /***********************************************************************************
** MIT License **
** **
** Copyright (c) 2018 Victor DENIS (victordenis01@gmail.com) ... | 35.213592 | 84 | 0.589744 | Feldrise |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.