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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
061478842688533a52c569a891f65709f1ec7aae | 1,019 | hpp | C++ | src/rendering.hpp | IsaacWoods/Islands | d4b14b34884ca3f7ba1a97670dfef653b207befa | [
"MIT"
] | null | null | null | src/rendering.hpp | IsaacWoods/Islands | d4b14b34884ca3f7ba1a97670dfef653b207befa | [
"MIT"
] | null | null | null | src/rendering.hpp | IsaacWoods/Islands | d4b14b34884ca3f7ba1a97670dfef653b207befa | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017, Isaac Woods.
* See LICENCE.md
*/
#pragma once
#include <gl3w.hpp>
#include <maths.hpp>
#include <asset.hpp>
#include <entity.hpp>
// --- Mesh ---
struct Mesh
{
Mesh(const MeshData& meshData);
~Mesh();
unsigned int numElements;
GLuint vao;
GLuint vbo;
GLuint ebo;
};
void Draw... | 15.676923 | 87 | 0.651619 | IsaacWoods |
0615fe2d21d35e02f9957a6dcc70cad407e9469e | 1,867 | cpp | C++ | modules/task_1/vitulin_i_sum_vector_elements/sum_vector_elements.cpp | Oskg/pp_2021_autumn | c05d35f4d4b324cc13e58188b4a0c0174f891976 | [
"BSD-3-Clause"
] | 1 | 2021-12-09T17:20:25.000Z | 2021-12-09T17:20:25.000Z | modules/task_1/vitulin_i_sum_vector_elements/sum_vector_elements.cpp | Oskg/pp_2021_autumn | c05d35f4d4b324cc13e58188b4a0c0174f891976 | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/vitulin_i_sum_vector_elements/sum_vector_elements.cpp | Oskg/pp_2021_autumn | c05d35f4d4b324cc13e58188b4a0c0174f891976 | [
"BSD-3-Clause"
] | 3 | 2022-02-23T14:20:50.000Z | 2022-03-30T09:00:02.000Z | // Copyright 2021 Vitulin Ivan 381908-1
#include <mpi.h>
#include <vector>
#include <random>
#include <algorithm>
#include "../../../modules/task_1/vitulin_i_sum_vector_elements/sum_vector_elements.h"
std::vector<int> getRandomVectorElements(int vector_size, int k) {
std::random_device dev;
std::mt19937 gen(de... | 35.226415 | 100 | 0.677022 | Oskg |
061635a4452d766021fcb322ad836e7e98c9d49d | 1,942 | cpp | C++ | src/main.cpp | dleliuhin/cservice_template | 63d47faee1065e3615c47ebfd222b49cbd8b7bd8 | [
"DOC"
] | null | null | null | src/main.cpp | dleliuhin/cservice_template | 63d47faee1065e3615c47ebfd222b49cbd8b7bd8 | [
"DOC"
] | null | null | null | src/main.cpp | dleliuhin/cservice_template | 63d47faee1065e3615c47ebfd222b49cbd8b7bd8 | [
"DOC"
] | 1 | 2021-08-06T22:15:04.000Z | 2021-08-06T22:15:04.000Z | /*! \file main.cpp
* \brief Entry app file.
*
* \authors Dmitrii Leliuhin
* \date July 2020
*
* Details.
*
*/
//=======================================================================================
#include "subscribe.h"
#include "config.h"
#include "core.h"
#include "publish.h"
#ifdef GUI
#include "view.h"... | 22.847059 | 89 | 0.427909 | dleliuhin |
1646f6cfdc0e1c95857e9ef9a0754cfe0d94d27a | 3,206 | cpp | C++ | src/cpp/utils/StringMatching.cpp | DimaRU/Fast-DDS | 4874d11575f396f7787c0f93254a989e7f523e68 | [
"Apache-2.0"
] | 548 | 2020-06-02T11:59:31.000Z | 2022-03-30T00:59:33.000Z | src/cpp/utils/StringMatching.cpp | DimaRU/Fast-DDS | 4874d11575f396f7787c0f93254a989e7f523e68 | [
"Apache-2.0"
] | 1,068 | 2020-06-01T12:36:33.000Z | 2022-03-31T09:57:34.000Z | src/cpp/utils/StringMatching.cpp | DimaRU/Fast-DDS | 4874d11575f396f7787c0f93254a989e7f523e68 | [
"Apache-2.0"
] | 230 | 2020-06-04T02:46:23.000Z | 2022-03-30T01:35:58.000Z | // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 20.291139 | 75 | 0.635059 | DimaRU |
16485af28f3bbcfb93e31d8ef700c6925714eaa4 | 4,169 | cpp | C++ | TEST_TOOL/project/Hermes/Novatel_Log_Handler/controllwidget.cpp | EIDOSDATA/ARGOS_QT_Series | f451312249607b03ed4d6848ec8bc068f245718f | [
"Unlicense"
] | null | null | null | TEST_TOOL/project/Hermes/Novatel_Log_Handler/controllwidget.cpp | EIDOSDATA/ARGOS_QT_Series | f451312249607b03ed4d6848ec8bc068f245718f | [
"Unlicense"
] | null | null | null | TEST_TOOL/project/Hermes/Novatel_Log_Handler/controllwidget.cpp | EIDOSDATA/ARGOS_QT_Series | f451312249607b03ed4d6848ec8bc068f245718f | [
"Unlicense"
] | null | null | null | #include "controllwidget.h"
#include "ui_controllwidget.h"
#include <QFileDialog>
#include <QDropEvent>
#include <QMimeData>
#include <sstream>
std::vector<std::string> tokenize(const std::string& data, const char delimiter = ' ')
{
std::vector<std::string> result;
std::string token;
std::stringstream ss(data);
... | 23.6875 | 115 | 0.716479 | EIDOSDATA |
16501f43eed203126863529622aa43d9f9a295cf | 26,971 | cpp | C++ | src/compiler/EncodeDecode.cpp | yudanli/fast_ber | d3e790f86ff91df8b6d6a0f308803606f59452af | [
"BSL-1.0"
] | 74 | 2019-02-07T03:24:10.000Z | 2022-03-22T04:40:44.000Z | src/compiler/EncodeDecode.cpp | yudanli/fast_ber | d3e790f86ff91df8b6d6a0f308803606f59452af | [
"BSL-1.0"
] | 32 | 2019-06-02T10:13:13.000Z | 2021-12-09T08:56:08.000Z | src/compiler/EncodeDecode.cpp | yudanli/fast_ber | d3e790f86ff91df8b6d6a0f308803606f59452af | [
"BSL-1.0"
] | 11 | 2019-05-26T18:06:00.000Z | 2021-11-21T16:08:07.000Z | #include "fast_ber/compiler/EncodeDecode.hpp"
#include "fast_ber/compiler/CppGeneration.hpp"
#include "fast_ber/compiler/Identifier.hpp"
#include "fast_ber/compiler/ResolveType.hpp"
#include "fast_ber/compiler/Visit.hpp"
#include "absl/strings/string_view.h"
#include <iostream>
#include <string>
#include <vector>
s... | 46.262436 | 122 | 0.45497 | yudanli |
16517c730c5ab6812c064ae5c6a1bfbda0aafbaf | 2,906 | cpp | C++ | Lab 8/src/utils/source/outUtils.cpp | chemizt/parallel-programming-labs | b8ba6e41bc03cf8c9e9bff1e353f8c7af9a45c20 | [
"WTFPL"
] | 1 | 2019-11-25T10:19:46.000Z | 2019-11-25T10:19:46.000Z | Lab 8/src/utils/source/outUtils.cpp | chemizt/parallel-programming-labs | b8ba6e41bc03cf8c9e9bff1e353f8c7af9a45c20 | [
"WTFPL"
] | 3 | 2019-12-01T22:27:43.000Z | 2019-12-01T22:38:54.000Z | Lab 8/src/utils/source/outUtils.cpp | chemizt/parallel-programming-labs | b8ba6e41bc03cf8c9e9bff1e353f8c7af9a45c20 | [
"WTFPL"
] | null | null | null | #include "outUtils.hpp"
struct Comma final : std::numpunct<char> // inspired by (copy-typed from) https://stackoverflow.com/a/42331536
{
char do_decimal_point() const override { return ','; }
};
void outputIntMatrix(intMatrix matrix)
{
uInt maxNumLength = getMaxNumberLengthInIntMatrix(matrix);
for (uInt ... | 24.216667 | 114 | 0.538885 | chemizt |
165191a2f7f5f5f718fe2c045b55e1df7b870e19 | 20,173 | cpp | C++ | sp/src/game/server/mod/npc_base_custom.cpp | jarnar85/source-sdk-2013 | 8c279299883421fd78e7691545522ea863e0b646 | [
"Unlicense"
] | null | null | null | sp/src/game/server/mod/npc_base_custom.cpp | jarnar85/source-sdk-2013 | 8c279299883421fd78e7691545522ea863e0b646 | [
"Unlicense"
] | 8 | 2019-09-07T10:19:52.000Z | 2020-03-31T19:44:45.000Z | sp/src/game/server/mod/npc_base_custom.cpp | jarnar85/source-sdk-2013 | 8c279299883421fd78e7691545522ea863e0b646 | [
"Unlicense"
] | null | null | null | //=//=============================================================================//
//
// Purpose: A base class from which to extend new custom NPCs.
// This class may seem redundant with CAI_BaseNPC and a lot of Valve's NPC classes.
// However, the redundancy is necessary for compatibility with a variety of mods;
// ... | 31.768504 | 144 | 0.598374 | jarnar85 |
16526570f5c665f6ef3d7f50e27cc69083c71453 | 489 | cpp | C++ | 53_soma_casas_forca_bruta.cpp | dannluciano/codcad | a226fa11dab0e1cc6524c42859b01435d58ce4f0 | [
"MIT"
] | null | null | null | 53_soma_casas_forca_bruta.cpp | dannluciano/codcad | a226fa11dab0e1cc6524c42859b01435d58ce4f0 | [
"MIT"
] | null | null | null | 53_soma_casas_forca_bruta.cpp | dannluciano/codcad | a226fa11dab0e1cc6524c42859b01435d58ce4f0 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
int main() {
int numero_de_casas;
scanf("%d", &numero_de_casas);
int casas[numero_de_casas];
for (int i = 0; i < numero_de_casas; i++) {
scanf("%d", &casas[i]);
}
int soma_das_casas;
scanf("%d", &soma_das_casas);
for (int i = 0; i < numero_de_casas - 1; i++) {
for (i... | 21.26087 | 51 | 0.543967 | dannluciano |
165e1d9c106c370b141dcf62bc6db45a84154fc2 | 14,930 | cpp | C++ | src/libtsduck/plugin/tsInputSwitcherArgs.cpp | cedinu/tsduck | dc693912b1fda85bcac3fcb830d7753bd8112552 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/plugin/tsInputSwitcherArgs.cpp | cedinu/tsduck | dc693912b1fda85bcac3fcb830d7753bd8112552 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/plugin/tsInputSwitcherArgs.cpp | cedinu/tsduck | dc693912b1fda85bcac3fcb830d7753bd8112552 | [
"BSD-2-Clause"
] | null | null | null | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 45.242424 | 124 | 0.624313 | cedinu |
166846b6ee5a616929638ff6570411fe764d5a03 | 7,166 | hpp | C++ | ivarp/include/ivarp/math_fn/n_ary_ops.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/math_fn/n_ary_ops.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/math_fn/n_ary_ops.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | // The code is open source under the MIT license.
// Copyright 2019-2020, Phillip Keldenich, TU Braunschweig, Algorithms Group
// https://ibr.cs.tu-bs.de/alg
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to de... | 50.111888 | 175 | 0.653224 | phillip-keldenich |
16703495a18512431801766b039c37972da543e0 | 2,774 | cc | C++ | server/db_slice.cc | romange/midi-redis | 35e7bce4ce6246716464fb78445babc0317b5000 | [
"Apache-2.0"
] | 12 | 2021-12-09T18:50:47.000Z | 2022-03-11T17:47:04.000Z | server/db_slice.cc | romange/midi-redis | 35e7bce4ce6246716464fb78445babc0317b5000 | [
"Apache-2.0"
] | null | null | null | server/db_slice.cc | romange/midi-redis | 35e7bce4ce6246716464fb78445babc0317b5000 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021, Roman Gershman. All rights reserved.
// See LICENSE for licensing terms.
//
#include "server/db_slice.h"
#include <boost/fiber/fiber.hpp>
#include <boost/fiber/operations.hpp>
#include "base/logging.h"
#include "server/engine_shard_set.h"
#include "util/fiber_sched_algo.h"
#include "util/proactor... | 23.709402 | 98 | 0.695746 | romange |
167617b29e0a47bd7fa225320f67a6ac0effe74f | 9,027 | cpp | C++ | vnext/Microsoft.ReactNative.IntegrationTests/TurboModuleTests.cpp | harinikmsft/react-native-windows | c73ecd0ffb8fb4ee5205ec610ab4b6dbc7f6ee21 | [
"MIT"
] | 2 | 2020-12-19T17:37:56.000Z | 2021-10-18T03:28:11.000Z | vnext/Microsoft.ReactNative.IntegrationTests/TurboModuleTests.cpp | sjalim/react-native-windows | 04e766ef7304d0852a06e772cbfc1982897a3808 | [
"MIT"
] | 2 | 2020-11-04T17:36:33.000Z | 2020-11-16T10:12:46.000Z | vnext/Microsoft.ReactNative.IntegrationTests/TurboModuleTests.cpp | sjalim/react-native-windows | 04e766ef7304d0852a06e772cbfc1982897a3808 | [
"MIT"
] | 1 | 2019-10-17T20:48:17.000Z | 2019-10-17T20:48:17.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include <NativeModules.h>
#include <sstream>
#include <string>
using namespace React;
using namespace winrt::Microsoft::ReactNative;
namespace ReactNativeIntegrationTests {
REACT_MODULE(SampleTurboModule)
stru... | 42.580189 | 119 | 0.713305 | harinikmsft |
16767a771591a5d8a76020a00e589ef65359e441 | 33,346 | cpp | C++ | s32v234_sdk/libs/apexcv_pro/orb/src/apexcv_pro_orb.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/libs/apexcv_pro/orb/src/apexcv_pro_orb.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/libs/apexcv_pro/orb/src/apexcv_pro_orb.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | 2 | 2021-01-21T02:06:16.000Z | 2021-01-28T10:47:37.000Z | /*******************************************************************************
*
* NXP Confidential Proprietary
*
* Copyright (c) 2016-2017 NXP Semiconductor;
* All Rights Reserved
*
*******************************************************************************
*
* THIS SOFTWARE IS PROVIDED BY NXP "AS IS" A... | 34.735417 | 162 | 0.55314 | intesight |
16782b280ef5d9a2ade28b1763bfa3d83086b2bd | 15,704 | cpp | C++ | src/main.cpp | HTLife/Logger2 | 0810e72b3b94eaf164ad98a70feae9ad80d61b79 | [
"BSD-2-Clause"
] | null | null | null | src/main.cpp | HTLife/Logger2 | 0810e72b3b94eaf164ad98a70feae9ad80d61b79 | [
"BSD-2-Clause"
] | null | null | null | src/main.cpp | HTLife/Logger2 | 0810e72b3b94eaf164ad98a70feae9ad80d61b79 | [
"BSD-2-Clause"
] | null | null | null | #include "main.h"
int find_argument(int argc, char** argv, const char* argument_name)
{
for(int i = 1; i < argc; ++i)
{
if(strcmp(argv[i], argument_name) == 0)
{
return (i);
}
}
return (-1);
}
int parse_argument(int argc, char** argv, const char* str, ... | 29.969466 | 187 | 0.604687 | HTLife |
167b87db97246dbaeb9eb96becfa5211c30e744f | 16,137 | cpp | C++ | src/gui/color.cpp | strandfield/yasl | d109eb3166184febfe48d1a2d1c96683c4a813f7 | [
"MIT"
] | 1 | 2020-12-28T01:41:35.000Z | 2020-12-28T01:41:35.000Z | src/gui/color.cpp | strandfield/yasl | d109eb3166184febfe48d1a2d1c96683c4a813f7 | [
"MIT"
] | null | null | null | src/gui/color.cpp | strandfield/yasl | d109eb3166184febfe48d1a2d1c96683c4a813f7 | [
"MIT"
] | null | null | null | // Copyright (C) 2018 Vincent Chambrin
// This file is part of the Yasl project
// For conditions of distribution and use, see copyright notice in LICENSE
#include "yasl/gui/color.h"
#include "yasl/common/binding/class.h"
#include "yasl/common/binding/default_arguments.h"
#include "yasl/common/binding/namespace.h"
#i... | 47.60177 | 121 | 0.684576 | strandfield |
167d1a6a38f47e1add1967c79c3dcb161c3cf94f | 2,821 | cpp | C++ | src/Common/TokenType.cpp | Morphlng/cploxplox | f7f64c535b76bdaab90d7ea7fd0377bf44595c71 | [
"MIT"
] | null | null | null | src/Common/TokenType.cpp | Morphlng/cploxplox | f7f64c535b76bdaab90d7ea7fd0377bf44595c71 | [
"MIT"
] | null | null | null | src/Common/TokenType.cpp | Morphlng/cploxplox | f7f64c535b76bdaab90d7ea7fd0377bf44595c71 | [
"MIT"
] | null | null | null | #include "Common/TokenType.h"
namespace CXX {
const char* TypeName(TokenType type)
{
switch (type)
{
case TokenType::PLUS: // +
return "PLUS";
case TokenType::MINUS: // -
return "MINUS";
case TokenType::MUL: // *
return "MUL";
case TokenType::DIV: // /
return "DIV";
case TokenType::MOD: //... | 21.371212 | 59 | 0.631691 | Morphlng |
167e531f1fabb80e12c24ac291623b3e2646b1ce | 304 | cpp | C++ | Main/P1615.cpp | qinyihao/Luogu_Problem_Solver | bb4675f045affe513613023394027c3359bb0876 | [
"MIT"
] | null | null | null | Main/P1615.cpp | qinyihao/Luogu_Problem_Solver | bb4675f045affe513613023394027c3359bb0876 | [
"MIT"
] | null | null | null | Main/P1615.cpp | qinyihao/Luogu_Problem_Solver | bb4675f045affe513613023394027c3359bb0876 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
long long a2,b2,c2,s2;
long long a1,b1,c1,s1;
long long k,ans;
int main()
{
scanf("%lld:%lld:%lld\n%lld:%lld:%lld",&a1,&b1,&c1,&a2,&b2,&c2);
s1=a1*3600+b1*60+c1;
s2=a2*3600+b2*60+c2;
scanf("%lld",&k);
ans=k*(s2-s1);
printf("%lld",ans);
return 0;
}
| 16.888889 | 65 | 0.605263 | qinyihao |
168098d4959918324edb9474d337f02c97e1b905 | 2,148 | cpp | C++ | src/Utils.cpp | lyftt/WebServer | adc2ef7f999e6c6e75cea46087161fe21116bd40 | [
"MIT"
] | null | null | null | src/Utils.cpp | lyftt/WebServer | adc2ef7f999e6c6e75cea46087161fe21116bd40 | [
"MIT"
] | null | null | null | src/Utils.cpp | lyftt/WebServer | adc2ef7f999e6c6e75cea46087161fe21116bd40 | [
"MIT"
] | null | null | null | #include "Utils.h"
#include <fcntl.h>
#include <sys/epoll.h>
#include "config.h"
#include "http_conn.h"
#include "TimerSortList.h"
#include "webserver.h"
/*静态遍历定义*/
int Utils::u_epollfd = -1;
/*
*
* 设置fd为非阻塞
*
*/
int Utils::setnonblocking(int fd)
{
int old_opt = fcntl(fd,F_GETFL);
int new_opt = ... | 15.565217 | 77 | 0.604749 | lyftt |
1682841d20ba5c157c575c46c93dbb99c6bb5b30 | 2,972 | cpp | C++ | Ilya Bondarenko/EditedFinance.cpp | soomrack/MR2020 | 2de7289665dcdac4a436eb512f283780aa78cb76 | [
"MIT"
] | 4 | 2020-09-22T12:04:07.000Z | 2020-10-03T22:28:00.000Z | Ilya Bondarenko/EditedFinance.cpp | soomrack/MR2020 | 2de7289665dcdac4a436eb512f283780aa78cb76 | [
"MIT"
] | null | null | null | Ilya Bondarenko/EditedFinance.cpp | soomrack/MR2020 | 2de7289665dcdac4a436eb512f283780aa78cb76 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
// Edited by Panteleev M. D.
int main()
{
setlocale(LC_ALL, "Rus");
float d1=0;
float x, y,z, t, n;
n = 0;
// программа для подсчета выполаты по ипотеке
//начало
float stavka, ttt, mstavka, os, emp, od, pch, och, x2, sk, pow1, time, ... | 24.97479 | 122 | 0.564266 | soomrack |
168340b0962936f89e2b4371955683ee49c3f378 | 3,871 | cpp | C++ | pgadmin/dlg/dlgSchema.cpp | cjayho/pgadmin3 | df5f0b83175b4fb495bfcb4d4ce175def486c9df | [
"PostgreSQL"
] | 111 | 2015-01-02T15:39:46.000Z | 2022-01-08T05:08:20.000Z | pgadmin/dlg/dlgSchema.cpp | cjayho/pgadmin3 | df5f0b83175b4fb495bfcb4d4ce175def486c9df | [
"PostgreSQL"
] | 13 | 2015-07-08T20:26:20.000Z | 2019-06-17T12:45:35.000Z | pgadmin/dlg/dlgSchema.cpp | cjayho/pgadmin3 | df5f0b83175b4fb495bfcb4d4ce175def486c9df | [
"PostgreSQL"
] | 96 | 2015-03-11T14:06:44.000Z | 2022-02-07T10:04:45.000Z | //////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2016, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// dlgSchema.cpp - PostgreSQL Schema Property
//
////////////////////////////////////... | 22.637427 | 132 | 0.676828 | cjayho |
1683814c6cc41a6ceed66a8ca49dc183f55e68c5 | 886 | cpp | C++ | elasticfusionpublic/GUI/src/Main.cpp | beichendexiatian/InstanceFusion | cd48e3f477595a48d845ce01302f564b6b3fc6f6 | [
"Apache-2.0"
] | 27 | 2016-03-02T09:43:59.000Z | 2021-12-01T06:30:31.000Z | elasticfusionpublic/GUI/src/Main.cpp | beichendexiatian/InstanceFusion | cd48e3f477595a48d845ce01302f564b6b3fc6f6 | [
"Apache-2.0"
] | 1 | 2022-03-27T13:09:39.000Z | 2022-03-27T13:09:39.000Z | GUI/src/Main.cpp | YabinXuTUD/HRBFFusion3D | 20dbff99782f31844791b09824bbfd9370d4a0c4 | [
"BSD-3-Clause"
] | 4 | 2016-03-02T05:52:59.000Z | 2018-04-29T00:37:30.000Z | /*
* This file is part of ElasticFusion.
*
* Copyright (C) 2015 Imperial College London
*
* The use of the code within this file and all code within files that
* make up the software that is ElasticFusion is permitted for
* non-commercial purposes only. The full terms and conditions that
* apply to the cod... | 30.551724 | 111 | 0.732506 | beichendexiatian |
168a35a894b7e48f5b34bc5d0054435015ddd494 | 6,773 | hpp | C++ | SGXDNN/layers/maxpool2d.hpp | LukeZheZhu/slalom | 96ff15977b7058b96d2a00a51c6aabbe729cc6d5 | [
"MIT"
] | 128 | 2018-06-11T06:07:21.000Z | 2022-03-30T19:33:29.000Z | SGXDNN/layers/maxpool2d.hpp | LukeZheZhu/slalom | 96ff15977b7058b96d2a00a51c6aabbe729cc6d5 | [
"MIT"
] | 41 | 2018-09-03T15:33:35.000Z | 2022-02-09T23:40:03.000Z | SGXDNN/layers/maxpool2d.hpp | LukeZheZhu/slalom | 96ff15977b7058b96d2a00a51c6aabbe729cc6d5 | [
"MIT"
] | 46 | 2018-11-23T09:11:20.000Z | 2022-03-21T08:38:39.000Z | #ifndef SGXDNN_MAXPOOL2D_H_
#define SGXDNN_MAXPOOL2D_H_
#include <iostream>
#include <string>
#include "../mempool.hpp"
#include "layer.hpp"
#include "eigen_maxpool.h"
using namespace tensorflow;
namespace SGXDNN
{
template<typename T>
void fast_maxpool(T* input, T* output,
int batch, int input_rows_, in... | 32.878641 | 151 | 0.643142 | LukeZheZhu |
168f66ea15283d8a72bc9c195b260f907bb4b951 | 2,439 | cpp | C++ | src/day09/day09.cpp | alikoptan/adventofcode2020 | 2d1cb40dcbc35cfc24ba22e20fdb6df127b7a318 | [
"Unlicense"
] | null | null | null | src/day09/day09.cpp | alikoptan/adventofcode2020 | 2d1cb40dcbc35cfc24ba22e20fdb6df127b7a318 | [
"Unlicense"
] | null | null | null | src/day09/day09.cpp | alikoptan/adventofcode2020 | 2d1cb40dcbc35cfc24ba22e20fdb6df127b7a318 | [
"Unlicense"
] | null | null | null | #include "string"
#include "deque"
#include "vector"
#include "iostream"
#include "climits"
#include "unordered_map"
using namespace std;
class day9 {
private:
const int PERMABLE = 25;
long long anomaly = 0;
vector <long long> numberList, prefixSum;
deque <long long> window;
void readFile() {
... | 27.404494 | 67 | 0.481755 | alikoptan |
169229f94fc636e7c4b8b51c519734346a41cf4a | 2,911 | cpp | C++ | Terminal/Source/LoadJPEG.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 80 | 2020-06-17T15:26:27.000Z | 2022-03-29T11:17:01.000Z | Terminal/Source/LoadJPEG.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 11 | 2020-07-19T15:22:06.000Z | 2022-03-31T03:33:13.000Z | Terminal/Source/LoadJPEG.cpp | Gravecat/BearLibTerminal | 64fec04101350a99a71db872c513e17bdd2cc94d | [
"MIT"
] | 18 | 2020-09-16T01:29:46.000Z | 2022-03-27T18:48:09.000Z | /*
* BearLibTerminal
* Copyright (C) 2013-2014 Cfyz
*
* 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, merg... | 31.301075 | 116 | 0.701134 | Gravecat |
169379be3d546912001d578df643de860221fa4b | 335 | hpp | C++ | src/rsm/options.hpp | Nadrin/rsm | 7cdeb4a17a4b01bfd135d81a97b6f9690f8700d9 | [
"MIT"
] | 5 | 2019-01-29T03:56:56.000Z | 2019-08-13T15:17:26.000Z | src/rsm/options.hpp | Nadrin/rsm | 7cdeb4a17a4b01bfd135d81a97b6f9690f8700d9 | [
"MIT"
] | null | null | null | src/rsm/options.hpp | Nadrin/rsm | 7cdeb4a17a4b01bfd135d81a97b6f9690f8700d9 | [
"MIT"
] | 1 | 2019-03-28T08:48:31.000Z | 2019-03-28T08:48:31.000Z | /*
* rsm :: Random Sampling Mathematics
* Copyright (c) 2018 Michał Siejak
* Released under the MIT license; see LICENSE file for details.
*/
#pragma once
#include <cstdint>
namespace rsm {
using options_t = uint8_t;
namespace opt {
enum option_bits {
none = 0,
jitter = 1,
shuffle = 2,
};
} /... | 13.4 | 64 | 0.638806 | Nadrin |
169725ec4d220cbd21892f14e6b98bce36409e80 | 30,147 | cpp | C++ | Samples/Win7Samples/netds/peertopeer/DRT/CAPIWrappers.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/netds/peertopeer/DRT/CAPIWrappers.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/netds/peertopeer/DRT/CAPIWrappers.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | // CAPIWrappers.cpp - Functions for dealing with certificates.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c... | 30.086826 | 157 | 0.533983 | windows-development |
1697eb193469b75698534159d177bde187a7da96 | 67 | hpp | C++ | 3rdparty/kapok/Kapok.hpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 202 | 2015-04-12T14:06:10.000Z | 2022-02-28T15:08:33.000Z | 3rdparty/kapok/Kapok.hpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 7 | 2015-04-12T14:17:57.000Z | 2018-05-29T01:43:28.000Z | 3rdparty/kapok/Kapok.hpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 93 | 2015-04-12T08:25:10.000Z | 2020-11-05T02:57:03.000Z | #pragma once
#include "Serializer.hpp"
#include "DeSerializer.hpp"
| 16.75 | 27 | 0.776119 | wohaaitinciu |
169973eeda99fb85b47b792f8215de8cc9c04a21 | 508 | hpp | C++ | src/classifier/svm/svm_binary_classifier.hpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | 1 | 2022-02-08T06:42:05.000Z | 2022-02-08T06:42:05.000Z | src/classifier/svm/svm_binary_classifier.hpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | null | null | null | src/classifier/svm/svm_binary_classifier.hpp | bububa/openvision | 0864e48ec8e69ac13d6889d41f7e1171f53236dd | [
"Apache-2.0"
] | null | null | null | #ifndef _CLASSIFIER_SVM_BINARY_CLASSIFIER_H_
#define _CLASSIFIER_SVM_BINARY_CLASSIFIER_H_
#include "svm_classifier.hpp"
namespace ovclassifier {
class SVMBinaryClassifier : public SVMClassifier {
public:
SVMBinaryClassifier();
~SVMBinaryClassifier();
int LoadModel(const char *modelfile);
double Predict(const ... | 25.4 | 61 | 0.787402 | bububa |
169a7726b883813a797f1edb1cafbf61c2138cc6 | 10,234 | cpp | C++ | Rise/src/Platform/OpenGL/OpenGLShader.cpp | Super-Shadow/Rise | 38f0cfd1d63365958c6ff8252598ce871525c885 | [
"Apache-2.0"
] | null | null | null | Rise/src/Platform/OpenGL/OpenGLShader.cpp | Super-Shadow/Rise | 38f0cfd1d63365958c6ff8252598ce871525c885 | [
"Apache-2.0"
] | null | null | null | Rise/src/Platform/OpenGL/OpenGLShader.cpp | Super-Shadow/Rise | 38f0cfd1d63365958c6ff8252598ce871525c885 | [
"Apache-2.0"
] | null | null | null | #include "rspch.h"
#include "OpenGLShader.h"
#include <fstream>
#include <utility>
#include <glad/glad.h>
#include "glm/gtc/type_ptr.hpp"
namespace Rise
{
static GLenum ShaderTypeFromString(const std::string& type)
{
if (type == "vertex")
return GL_VERTEX_SHADER;
if (type == "fragment" || type == "pixel")
... | 30.188791 | 191 | 0.707543 | Super-Shadow |
169b5d902e718a2729be42c7c2d447d5a6eef8f7 | 4,362 | cpp | C++ | luogu/APIO-fun/fun.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | luogu/APIO-fun/fun.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | luogu/APIO-fun/fun.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include "fun.h"
using namespace std;
typedef vector<int> V;
const int N=120000;
int dep[N],sz[N],rt=0,n,cnt=0,id[3],nowpos=-1;
vector<int> son[N],ans;
bool cmp(int x,int y){return dep[x]<dep[y];}
void solver2(int idx,int idy){//X first
while(!son[idx].empty()||!son[idy].empty()){
if... | 36.655462 | 84 | 0.475928 | jinzhengyu1212 |
169fd335a59b3723d4d21ba0e9d773c14d5bee16 | 10,690 | hpp | C++ | tests/test_queue.hpp | bcfrutuozo/Data-Structures-C-Plus-Plus | decd87c89380dbd98445411772567706cfa1e9b4 | [
"MIT"
] | null | null | null | tests/test_queue.hpp | bcfrutuozo/Data-Structures-C-Plus-Plus | decd87c89380dbd98445411772567706cfa1e9b4 | [
"MIT"
] | null | null | null | tests/test_queue.hpp | bcfrutuozo/Data-Structures-C-Plus-Plus | decd87c89380dbd98445411772567706cfa1e9b4 | [
"MIT"
] | null | null | null | //
// Created by bcfrutuozo on 18/03/2022.
//
#ifndef CPPDATASTRUCTURES_TEST_QUEUE_HPP
#define CPPDATASTRUCTURES_TEST_QUEUE_HPP
#include <catch2/catch.hpp>
#include <cstring>
#include "../Queue.h"
TEST_CASE("Queue<T>")
{
SECTION("Instantiation")
{
SECTION("Primitive types")
{
SECT... | 29.449036 | 89 | 0.389429 | bcfrutuozo |
16a1b63592a799349ae4ceee6923bc274609e766 | 1,800 | cpp | C++ | aws-cpp-sdk-workspaces-web/source/model/CreatePortalRequest.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-workspaces-web/source/model/CreatePortalRequest.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-workspaces-web/source/model/CreatePortalRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/workspaces-web/model/CreatePortalRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WorkSpacesWeb::Model;
using namespace Aws::Utils::Js... | 24 | 130 | 0.757778 | perfectrecall |
16a8a92be01e8f75ab13847343727400919aa1bf | 234 | hpp | C++ | chaine/src/topology/vertex/vertex_topology.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | chaine/src/topology/vertex/vertex_topology.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | chaine/src/topology/vertex/vertex_topology.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | #pragma once
#include "index.hpp"
#include "mesh_topology.hpp"
#include "proxy.hpp"
namespace face_vertex {
inline
VertexTopology& vertex_topology(VertexTopologyProxy vtp) {
return mesh_topology(vtp).vertices[index(vtp)];
}
}
| 15.6 | 58 | 0.760684 | the-last-willy |
16a96378d705e59dea9725ce272640df3a1753d2 | 799 | cpp | C++ | test/training_data/plag_original_codes/01_000_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | 13 | 2021-01-20T19:53:16.000Z | 2021-11-14T16:30:32.000Z | test/training_data/plag_original_codes/01_000_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | test/training_data/plag_original_codes/01_000_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | // 引用元 : https://atcoder.jp/contests/abc122/submissions/5997478
// 得点 : 300
// コード長 : 695
// 実行時間 : 70
#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <cmath>
#include <vector>
#define rep(i, n) for(int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;... | 17.755556 | 64 | 0.439299 | xryuseix |
16a9bfb5be620f91ef04c39ba3805580f30c4aff | 308 | cpp | C++ | C7Editing/data/c7framedata.cpp | xshanlin/c7es | 520ab5b7efe54521aeb930e6baf60b8bb62a8027 | [
"MIT"
] | null | null | null | C7Editing/data/c7framedata.cpp | xshanlin/c7es | 520ab5b7efe54521aeb930e6baf60b8bb62a8027 | [
"MIT"
] | null | null | null | C7Editing/data/c7framedata.cpp | xshanlin/c7es | 520ab5b7efe54521aeb930e6baf60b8bb62a8027 | [
"MIT"
] | null | null | null | #include "c7framedata.h"
PO1_IMPLEMENTATION_BEGIN(C7FrameData, RIID_C7FRAME_DATA)
//PO1_ITEM_IMPLEMENTATION(C7BufferIO2D, RIID_C7BUFFER_IO_2D)
PO1_IMPLEMENTATION_END(C7Obj)
C7FrameData::C7FrameData(std::weak_ptr<C7Obj> outerObj) : C7Obj(outerObj) {
//ctor
}
C7FrameData::~C7FrameData() {
//dtor
}
| 22 | 75 | 0.782468 | xshanlin |
16b57a15a8897b655aa2d8b37f92ea3b7bbf4cf3 | 5,047 | cpp | C++ | code/wxWidgets/src/mac/classic/metafile.cpp | Bloodknight/NeuTorsion | a5890e9ca145a8c1b6bec7b70047a43d9b1c29ea | [
"MIT"
] | 38 | 2016-02-20T02:46:28.000Z | 2021-11-17T11:39:57.000Z | code/wxWidgets/src/mac/classic/metafile.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 17 | 2016-02-20T02:19:55.000Z | 2021-02-08T15:15:17.000Z | code/wxWidgets/src/mac/classic/metafile.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 46 | 2016-02-20T02:47:33.000Z | 2021-01-31T15:46:05.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: metafile.cpp
// Purpose: wxMetaFile, wxMetaFileDC etc. These classes are optional.
// Author: Stefan Csomor
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id: metafile.cpp,v 1.4 2005/07/28 22:08:23 VZ Exp $... | 23.151376 | 96 | 0.626907 | Bloodknight |
16b5f2b5511dc3654c63a913753b1c2314fc2545 | 6,636 | cc | C++ | ch16/generic_programing/copy.cc | leschus/cpp_primer_plus_6th | 1d0ca7e22d41e5039dd08befd451c2c339e854f1 | [
"MIT"
] | 1 | 2022-03-04T08:34:18.000Z | 2022-03-04T08:34:18.000Z | ch16/generic_programing/copy.cc | leschus/cpp_primer_plus_6th | 1d0ca7e22d41e5039dd08befd451c2c339e854f1 | [
"MIT"
] | null | null | null | ch16/generic_programing/copy.cc | leschus/cpp_primer_plus_6th | 1d0ca7e22d41e5039dd08befd451c2c339e854f1 | [
"MIT"
] | null | null | null | #include <iterator> // 提供多种迭代器模板: ostream_iterator, istream_iterator,
// reverse_iterator, back_insert_iterator,
// front_insert_iterator, insert_iterator
#include <algorithm> // 提供了copy()函数
#include <iostream>
#include <vector>
#include <list>
using std::copy;
using std::cout;... | 35.486631 | 76 | 0.673297 | leschus |
16ba4692823cbbf7a6af51d11079ba6959c5bd4b | 1,165 | cpp | C++ | Core/Src/userInterface.cpp | xlord13/vescUserInterface | ff26bc1245ec35cb545042fe01ce3111c92ef80f | [
"MIT"
] | null | null | null | Core/Src/userInterface.cpp | xlord13/vescUserInterface | ff26bc1245ec35cb545042fe01ce3111c92ef80f | [
"MIT"
] | null | null | null | Core/Src/userInterface.cpp | xlord13/vescUserInterface | ff26bc1245ec35cb545042fe01ce3111c92ef80f | [
"MIT"
] | null | null | null | #include <userInterface.h>
#include <stdio.h>
#include <gui/common/FrontendApplication.hpp>
#include <touchgfx/hal/OSWrappers.hpp>
#ifdef __cplusplus
extern "C" {
#endif
int ui_initialize(void)
{
return 0;
}
void ui_print_esc_values(mc_values *val)
{
// printf("Input voltage: %.2f V\r\n", val->v_in);
// printf(... | 28.414634 | 85 | 0.623176 | xlord13 |
16bf04bfeeb15804e59f194e27095c8ba412f58d | 798 | cpp | C++ | 1.5/1.5/Source.cpp | albusshin/CTCI | 0794c9f78cc881a60daf883ba2caa5d82bb8833d | [
"CC0-1.0"
] | 2 | 2015-03-25T09:33:38.000Z | 2016-05-23T06:57:31.000Z | 1.5/1.5/Source.cpp | albusshin/CTCI | 0794c9f78cc881a60daf883ba2caa5d82bb8833d | [
"CC0-1.0"
] | null | null | null | 1.5/1.5/Source.cpp | albusshin/CTCI | 0794c9f78cc881a60daf883ba2caa5d82bb8833d | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
void compressStr(char *str) {
int len = strlen(str);
if (len == 0) return;
char prev = str[0], now = prev;
int count = 1;
int i = 1;
stringstream ss;
while ((now = str[i++]) != NULL) {
if (now == prev) count++;
else {
ss << pre... | 18.55814 | 44 | 0.596491 | albusshin |
16c1362b29ffb0307af36b5a0702ca43dc1462de | 1,808 | cpp | C++ | Exercise_3_16_springs/src/ofApp.cpp | ChongChongS/P52Of | 1904f58e02f15b329c6c01c47e251bbadf427e5e | [
"MIT"
] | null | null | null | Exercise_3_16_springs/src/ofApp.cpp | ChongChongS/P52Of | 1904f58e02f15b329c6c01c47e251bbadf427e5e | [
"MIT"
] | null | null | null | Exercise_3_16_springs/src/ofApp.cpp | ChongChongS/P52Of | 1904f58e02f15b329c6c01c47e251bbadf427e5e | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetWindowShape(640,360);
ofSetBackgroundColor(255);
m1 = new Mover(ofGetWindowWidth()/2,100);
m2 = new Mover(ofGetWindowWidth()/2,50);
m3 = new Mover(ofGetWindowWidth()/2,150);
s1 = new Spring(m1,m2,100);
... | 22.320988 | 64 | 0.369469 | ChongChongS |
16c4fa6645d5e1b0d521c7a1db5e3307559f7841 | 3,247 | cpp | C++ | tests/Graphics/Renderer/AbstractFramebufferRenderer.cpp | danielealbano/rpi4-status-display | 8ee56844715fb02e3070baa815e25e05f06d93f4 | [
"BSD-2-Clause"
] | 1 | 2021-01-09T17:38:08.000Z | 2021-01-09T17:38:08.000Z | tests/Graphics/Renderer/AbstractFramebufferRenderer.cpp | danielealbano/rpi4-status-display | 8ee56844715fb02e3070baa815e25e05f06d93f4 | [
"BSD-2-Clause"
] | 2 | 2021-01-09T17:32:52.000Z | 2021-01-09T17:42:32.000Z | tests/Graphics/Renderer/AbstractFramebufferRenderer.cpp | danielealbano/rpi4-status-display | 8ee56844715fb02e3070baa815e25e05f06d93f4 | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright 2020-2021 Albano Daniele Salvatore
*
* 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 foll... | 46.385714 | 121 | 0.767478 | danielealbano |
16c5869e8b00276ebede32bfb0df9f5ff40bd596 | 214 | cpp | C++ | CluVRPsol.cpp | christofdefryn/CluVRP | 42c037f4c54eca461128efdcb8a574be8903da5f | [
"Apache-2.0"
] | 6 | 2018-11-30T04:04:25.000Z | 2021-04-22T14:14:15.000Z | CluVRPsol.cpp | RunningPhoton/CluVRP | 42c037f4c54eca461128efdcb8a574be8903da5f | [
"Apache-2.0"
] | 1 | 2017-12-28T02:43:50.000Z | 2018-10-01T08:45:48.000Z | CluVRPsol.cpp | RunningPhoton/CluVRP | 42c037f4c54eca461128efdcb8a574be8903da5f | [
"Apache-2.0"
] | 6 | 2019-09-19T08:59:09.000Z | 2020-06-12T19:43:36.000Z | #include "CluVRPsol.h"
CluVRPsol::CluVRPsol(ClusterSolution* sCluster, NodeSolution* sNode)
{
sCluster_ = sCluster;
sNode_ = sNode;
}
CluVRPsol::~CluVRPsol()
{
delete sNode_;
delete sCluster_;
} | 15.285714 | 69 | 0.691589 | christofdefryn |
16c78f9486ec6537376e122aef5ec3f3fa39bf7c | 621 | hpp | C++ | obsoleted/old/lib-obsolete/device/include/device.hpp | cppcoder123/led-server | 8ebac31e1241bb203d2cedfd644fe52619007cd6 | [
"MIT"
] | 1 | 2021-12-23T13:50:53.000Z | 2021-12-23T13:50:53.000Z | obsoleted/old/lib-obsolete/device/include/device.hpp | cppcoder123/led-server | 8ebac31e1241bb203d2cedfd644fe52619007cd6 | [
"MIT"
] | null | null | null | obsoleted/old/lib-obsolete/device/include/device.hpp | cppcoder123/led-server | 8ebac31e1241bb203d2cedfd644fe52619007cd6 | [
"MIT"
] | null | null | null | //
//
//
#ifndef DEVICE_DEVICE_HPP
#define DEVICE_DEVICE_HPP
#include "device-codec.hpp"
#include "device-id.h"
#include "matrix.hpp"
namespace device
{
class device_t
{
public:
virtual ~device_t () {}
using codec_t = core::device::codec_t;
using msg_t = codec_t::msg_t;
using char_t = codec_... | 16.783784 | 64 | 0.653784 | cppcoder123 |
16c7906f922a315fa5e35d709cacfa8b2c6491cc | 411 | cpp | C++ | Vortex/src/Vortex/Core/Input.cpp | olleh-dlrow/Vortex | f52574bcf33f53c7ed21dabf54aa91e70fde9060 | [
"Apache-2.0"
] | null | null | null | Vortex/src/Vortex/Core/Input.cpp | olleh-dlrow/Vortex | f52574bcf33f53c7ed21dabf54aa91e70fde9060 | [
"Apache-2.0"
] | null | null | null | Vortex/src/Vortex/Core/Input.cpp | olleh-dlrow/Vortex | f52574bcf33f53c7ed21dabf54aa91e70fde9060 | [
"Apache-2.0"
] | null | null | null | #include "vtpch.h"
#include "Vortex/Core/Input.h"
#ifdef VT_PLATFORM_WINDOWS
#include "Platform/Windows/WindowsInput.h"
#endif
namespace Vortex {
Scope<Input> Input::s_Instance = Input::Create();
Scope<Input> Input::Create()
{
#ifdef VT_PLATFORM_WINDOWS
return CreateScope<WindowsInput>();
#else
... | 18.681818 | 53 | 0.683698 | olleh-dlrow |
16c991fffd6c4aa1a1ae2485e5577a89c7eab0e7 | 1,647 | hpp | C++ | src/org/apache/poi/poifs/storage/SmallBlockTableReader.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/poifs/storage/SmallBlockTableReader.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/poifs/storage/SmallBlockTableReader.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/poifs/storage/SmallBlockTableReader.java
#pragma once
#include <fwd-POI.hpp>
#include <org/apache/poi/poifs/common/fwd-POI.hpp>
#include <org/apache/poi/poifs/property/fwd-POI.hpp>
#include <org/apache/poi/poifs/storage/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct de... | 41.175 | 243 | 0.757741 | pebble2015 |
16cda066b93ddef1f3818fdc45ced2af72b6a220 | 1,308 | cpp | C++ | sourcecode/02_hello_triangle/maths_funcs.cpp | FahrenheitKid/OpenGLAmbientOcclusion | 6fd0fbda5338d818d6156c6b1fc85fa51799f97f | [
"MIT"
] | null | null | null | sourcecode/02_hello_triangle/maths_funcs.cpp | FahrenheitKid/OpenGLAmbientOcclusion | 6fd0fbda5338d818d6156c6b1fc85fa51799f97f | [
"MIT"
] | null | null | null | sourcecode/02_hello_triangle/maths_funcs.cpp | FahrenheitKid/OpenGLAmbientOcclusion | 6fd0fbda5338d818d6156c6b1fc85fa51799f97f | [
"MIT"
] | null | null | null | /******************************************************************************\
| OpenGL 4 Example Code. |
| Accompanies written series "Anton's OpenGL 4 Tutorials" |
| Email: anton at antongerdelan dot net ... | 50.307692 | 80 | 0.417431 | FahrenheitKid |
16d0ccf659fdcbb29fb75618ca5b4d978def871b | 5,179 | hh | C++ | tamer/websocket.hh | kohler/tamer | 0953029ad7fc5c3fd58869227976c359674c670f | [
"BSD-3-Clause"
] | 23 | 2015-04-11T06:41:04.000Z | 2021-11-06T21:34:14.000Z | tamer/websocket.hh | kohler/tamer | 0953029ad7fc5c3fd58869227976c359674c670f | [
"BSD-3-Clause"
] | 2 | 2015-04-15T07:00:31.000Z | 2016-08-16T13:46:22.000Z | tamer/websocket.hh | kohler/tamer | 0953029ad7fc5c3fd58869227976c359674c670f | [
"BSD-3-Clause"
] | 5 | 2015-08-18T19:24:07.000Z | 2021-04-18T04:35:35.000Z | #ifndef TAMER_WEBSOCKET_HH
#define TAMER_WEBSOCKET_HH 1
#include "http.hh"
namespace tamer {
class websocket_handshake {
public:
static bool request(http_message& req, std::string& key);
static bool is_request(const http_message& req);
static bool response(http_message& resp, const http_message& req);
... | 26.695876 | 94 | 0.720409 | kohler |
16d317e517655bc2b5010c6d9b60af3667acc089 | 7,112 | cpp | C++ | source/MultiLibrary/Media/SoundStream.cpp | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 2 | 2018-06-22T12:43:57.000Z | 2019-05-31T21:56:27.000Z | source/MultiLibrary/Media/SoundStream.cpp | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 1 | 2017-09-09T01:21:31.000Z | 2017-11-12T17:52:56.000Z | source/MultiLibrary/Media/SoundStream.cpp | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 1 | 2022-03-30T18:57:41.000Z | 2022-03-30T18:57:41.000Z | /*************************************************************************
* MultiLibrary - https://danielga.github.io/multilibrary/
* A C++ library that covers multiple low level systems.
*------------------------------------------------------------------------
* Copyright (c) 2014-2022, Daniel Almeida
* All righ... | 25.768116 | 139 | 0.683493 | danielga |
16d32c4153cac0729484ff226a9ea64ef4791e77 | 311 | cpp | C++ | ros/src/computing/perception/localization/packages/vmml/src/bin/lidar_mapper/ScanOdometry.cpp | sujiwo/autoware | 435869592aa98a6fcb2b0a24594c27ee85bb27fe | [
"Apache-2.0"
] | null | null | null | ros/src/computing/perception/localization/packages/vmml/src/bin/lidar_mapper/ScanOdometry.cpp | sujiwo/autoware | 435869592aa98a6fcb2b0a24594c27ee85bb27fe | [
"Apache-2.0"
] | null | null | null | ros/src/computing/perception/localization/packages/vmml/src/bin/lidar_mapper/ScanOdometry.cpp | sujiwo/autoware | 435869592aa98a6fcb2b0a24594c27ee85bb27fe | [
"Apache-2.0"
] | null | null | null | /*
* ScanOdometry.cpp
*
* Created on: Jun 4, 2019
* Author: sujiwo
*/
#include "LidarMapper.h"
#include "ScanOdometry.h"
ScanOdometry::ScanOdometry(const LidarMapper &parent)
{
// TODO Auto-generated constructor stub
}
ScanOdometry::~ScanOdometry() {
// TODO Auto-generated destructor stub
}
| 14.136364 | 53 | 0.694534 | sujiwo |
16d7de132ae061d3a4c8d66292cf5f887b3f685d | 3,495 | cpp | C++ | arch/drisc/AncillaryRegisterFile.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | 7 | 2016-03-01T13:16:59.000Z | 2021-08-20T07:41:43.000Z | arch/drisc/AncillaryRegisterFile.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | null | null | null | arch/drisc/AncillaryRegisterFile.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | 5 | 2015-04-20T14:29:38.000Z | 2018-12-29T11:09:17.000Z | #include "AncillaryRegisterFile.h"
#include <sim/config.h>
#include <iomanip>
using namespace std;
namespace Simulator
{
namespace drisc
{
void AncillaryRegisterFile::Cmd_Info(std::ostream& out, const std::vector<std::string>& /*arguments*/) const
{
out << "The ancillary registers hold information c... | 33.932039 | 156 | 0.589413 | svp-dev |
16d989b03f8829b29b5e973e716ba08d4b59ff59 | 130 | cpp | C++ | dependencies/physx-4.1/source/geomutils/src/mesh/GuMeshQuery.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/mesh/GuMeshQuery.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/mesh/GuMeshQuery.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:b02719bdb687f6f2a0ec35ad50b06f79819681104750d72ed46969554055bd46
size 11165
| 32.5 | 75 | 0.884615 | realtehcman |
16da084f143d809d68cc50f25d7e61ca8e896f3e | 28 | cpp | C++ | run/Builder.cpp | hzx/run | ed8c77ab0aae7ab4d1362f48ccd22a7f36e2ddcc | [
"MIT"
] | null | null | null | run/Builder.cpp | hzx/run | ed8c77ab0aae7ab4d1362f48ccd22a7f36e2ddcc | [
"MIT"
] | null | null | null | run/Builder.cpp | hzx/run | ed8c77ab0aae7ab4d1362f48ccd22a7f36e2ddcc | [
"MIT"
] | null | null | null |
class Builder {
public:
};
| 5.6 | 15 | 0.642857 | hzx |
16dbd308625bbaefd7670bfd290af308b019cd3f | 721 | cpp | C++ | server/Common/Packets/GCLeaveScene.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Common/Packets/GCLeaveScene.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Common/Packets/GCLeaveScene.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
#include "GCLeaveScene.h"
BOOL GCLeaveScene::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ObjID), sizeof(ObjID_t));
iStream.Read( (CHAR*)(&m_byLeaveCode), sizeof(BYTE));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}
BOOL GCLeaveScene::Write... | 16.767442 | 60 | 0.700416 | viticm |
16dd3f927778627cd5faedcaebc1c2b5b069b778 | 399 | cpp | C++ | CppImport/src/ClangFrontendActionFactory.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | null | null | null | CppImport/src/ClangFrontendActionFactory.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | null | null | null | CppImport/src/ClangFrontendActionFactory.cpp | patrick-luethi/Envision | b93e6f9bbb2a534b5534a5e48ed40a2c43baba8a | [
"BSD-3-Clause"
] | null | null | null | #include "ClangFrontendActionFactory.h"
#include "TranslateFrontendAction.h"
#include "manager/TranslateManager.h"
namespace CppImport {
ClangFrontendActionFactory::ClangFrontendActionFactory(ClangAstVisitor* visitor, CppImportLogger* log)
: visitor_{visitor}, log_{log}
{}
clang::FrontendAction* ClangFrontendActio... | 21 | 102 | 0.809524 | patrick-luethi |
16dec42dd1a8804c5551a1d3a5ee68feda5cd6b7 | 3,790 | hpp | C++ | apps/constellation/settings.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1 | 2019-09-23T07:58:16.000Z | 2019-09-23T07:58:16.000Z | apps/constellation/settings.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | null | null | null | apps/constellation/settings.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1 | 2019-12-06T10:02:35.000Z | 2019-12-06T10:02:35.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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 Licen... | 27.071429 | 82 | 0.648813 | chr15murray |
16e3d26ca33464a0d4d0996c433ace93dc93fc6f | 386 | hpp | C++ | src/singleton.hpp | TulioAbreu/game-project | 24367a8abe982a022354b0586f95d78f3d851c8d | [
"MIT"
] | null | null | null | src/singleton.hpp | TulioAbreu/game-project | 24367a8abe982a022354b0586f95d78f3d851c8d | [
"MIT"
] | 20 | 2020-04-26T12:09:56.000Z | 2020-09-25T23:30:12.000Z | src/singleton.hpp | TulioAbreu/game-project | 24367a8abe982a022354b0586f95d78f3d851c8d | [
"MIT"
] | null | null | null | #ifndef SINGLETON_HPP
#define SINGLETON_HPP
template <typename T>
class Singleton {
protected:
static T* mInstance;
Singleton() {}
public:
virtual ~Singleton() {
}
static T* getInstance() {
if (!mInstance) {
mInstance = new T();
}
return mInstance;
}
};
t... | 14.846154 | 37 | 0.598446 | TulioAbreu |
16e47215b684537f73a94d6b21173d6927967319 | 25,494 | hpp | C++ | stf-inc/stf_buffered_reader.hpp | sparcians/stf_lib | 9e4933bff0c956dba464ced72e311e73507342dc | [
"MIT"
] | 1 | 2022-02-17T00:48:44.000Z | 2022-02-17T00:48:44.000Z | stf-inc/stf_buffered_reader.hpp | sparcians/stf_lib | 9e4933bff0c956dba464ced72e311e73507342dc | [
"MIT"
] | null | null | null | stf-inc/stf_buffered_reader.hpp | sparcians/stf_lib | 9e4933bff0c956dba464ced72e311e73507342dc | [
"MIT"
] | null | null | null | /**
* \brief This file defines a buffered STF trace reader class
*
*/
#ifndef __STF_BUFFERED_READER_HPP__
#define __STF_BUFFERED_READER_HPP__
#include <sys/stat.h>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <string>
#include <string_view>
#include "stf_enums.hpp"
#include "stf_exception.hpp"... | 37.491176 | 121 | 0.467169 | sparcians |
16e5c3adc2b7f9f761b415edb4a098df465cd777 | 5,463 | cpp | C++ | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/hw/d3dswapchainwithswdc.cpp | txlos/wpf | 4004b4e8c8d5c0d5e9de0f1be1fd929c3dee6fa1 | [
"MIT"
] | 5,937 | 2018-12-04T16:32:50.000Z | 2022-03-31T09:48:37.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/hw/d3dswapchainwithswdc.cpp | txlos/wpf | 4004b4e8c8d5c0d5e9de0f1be1fd929c3dee6fa1 | [
"MIT"
] | 4,151 | 2018-12-04T16:38:19.000Z | 2022-03-31T18:41:14.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/hw/d3dswapchainwithswdc.cpp | txlos/wpf | 4004b4e8c8d5c0d5e9de0f1be1fd929c3dee6fa1 | [
"MIT"
] | 1,084 | 2018-12-04T16:24:21.000Z | 2022-03-30T13:52:03.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//-----------------------------------------------------------------------------
//
//
// Description:
// Con... | 25.059633 | 92 | 0.601135 | txlos |
16e9faef1b0f81f6d70040eb863b7ffe84e61718 | 347 | cpp | C++ | OOP/stuclass.cpp | PranavDherange/Data_Structures | 9962b5145f6b42d9317e2c328c2b3124f028ca70 | [
"MIT"
] | 2 | 2021-02-25T11:54:50.000Z | 2021-02-25T11:54:54.000Z | OOP/stuclass.cpp | PranavDherange/Data_Structures | 9962b5145f6b42d9317e2c328c2b3124f028ca70 | [
"MIT"
] | null | null | null | OOP/stuclass.cpp | PranavDherange/Data_Structures | 9962b5145f6b42d9317e2c328c2b3124f028ca70 | [
"MIT"
] | 1 | 2021-10-03T17:39:10.000Z | 2021-10-03T17:39:10.000Z | #include <bits/stdc++.h>
using namespace std;
#include "Studentclass.cpp"
int main()
{
char name[] = "abcd";
Student s1(20, name);
s1.display();
Student s2(s1);
s2.name[0] = 'x';
s2.display();
s1.display();
// name[3] = 'e';
// Student s2(24, name);
// s2.display();
// s1... | 15.772727 | 28 | 0.521614 | PranavDherange |
16ead209c586f2e074f1d4422af59ed6684e6b06 | 12,201 | cc | C++ | src/expression/typechecking.cc | pictavien/tchecker | 5db2430b5b75a5b94cfbbe885840a4809b267be8 | [
"MIT"
] | null | null | null | src/expression/typechecking.cc | pictavien/tchecker | 5db2430b5b75a5b94cfbbe885840a4809b267be8 | [
"MIT"
] | null | null | null | src/expression/typechecking.cc | pictavien/tchecker | 5db2430b5b75a5b94cfbbe885840a4809b267be8 | [
"MIT"
] | null | null | null | /*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#include <tuple>
#include "tchecker/expression/type_inference.hh"
#include "tchecker/expression/typechecking.hh"
namespace tchecker {
namespace details {
/*!
\class expression_typec... | 36.861027 | 132 | 0.58823 | pictavien |
16edb80f7661e00b275c94644380bfaf2f291740 | 318 | cpp | C++ | smb2/cpp/GUI/Wrapper/Controls/ctrackbar.cpp | loginsinex/smb2 | fd1347e8d730edd092df19a3d388684944016522 | [
"MIT"
] | 8 | 2018-02-23T20:39:02.000Z | 2022-02-14T23:57:36.000Z | smb2/cpp/GUI/Wrapper/Controls/ctrackbar.cpp | loginsinex/smb2 | fd1347e8d730edd092df19a3d388684944016522 | [
"MIT"
] | 1 | 2020-02-25T22:57:44.000Z | 2020-02-27T02:07:17.000Z | smb2/cpp/GUI/Wrapper/Controls/ctrackbar.cpp | loginsinex/smb2 | fd1347e8d730edd092df19a3d388684944016522 | [
"MIT"
] | 1 | 2017-06-08T00:56:42.000Z | 2017-06-08T00:56:42.000Z |
#include "precomp.h"
VOID CTrackBar::SetMinMax(UINT min, UINT max)
{
cSendMessage(TBM_SETRANGEMIN, TRUE, min);
cSendMessage(TBM_SETRANGEMAX, TRUE, max);
}
VOID CTrackBar::Pos(UINT uPos)
{
cSendMessage(TBM_SETPOS, TRUE, uPos);
}
UINT CTrackBar::Pos()
{
return (UINT) cSendMessage(TBM_GETPOS);
} | 17.666667 | 46 | 0.694969 | loginsinex |
16ef060d11c261a958069e8da8881267b134d95c | 1,412 | cpp | C++ | src/m581expT.cpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | 1 | 2021-12-12T22:08:23.000Z | 2021-12-12T22:08:23.000Z | src/m581expT.cpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | null | null | null | src/m581expT.cpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | 1 | 2021-12-12T22:08:29.000Z | 2021-12-12T22:08:29.000Z | #include "../include/m581expT.hpp"
void m581expT::process(const ProcessArgs &args)
{
int curStp = getStep();
if(curStp >= 0)
{
float v = params[Z8PULSE_TIME].getValue();
if(curStp != prevStep)
{
pulses[curStp].trigger(v/1000.f);
prevStep=curStp;
}
}
float deltaTime = 1.0 / args.sampleRate;
// 1 = ... | 25.672727 | 139 | 0.634561 | CardinalModules |
16efa27a12f51ec1eaac9620496887e857ae7aba | 612 | hpp | C++ | mod/memlite/src/interface/instancer.hpp | kniz/worldlang | 78701ab003c158211d42d129f91259d17febbb22 | [
"MIT"
] | 7 | 2019-03-12T03:04:32.000Z | 2021-12-26T04:33:44.000Z | mod/memlite/src/interface/instancer.hpp | kniz/worldlang | 78701ab003c158211d42d129f91259d17febbb22 | [
"MIT"
] | 7 | 2019-02-13T14:01:43.000Z | 2020-11-20T11:09:06.000Z | mod/memlite/src/interface/instancer.hpp | kniz/worldlang | 78701ab003c158211d42d129f91259d17febbb22 | [
"MIT"
] | null | null | null | #pragma once
#include "../pool/pool.hpp"
#include "../watcher/watcher.hpp"
namespace wrd {
class instancer {
WRD_DECL_ME(instancer)
WRD_INIT_META(me)
friend class instance;
public:
wbool bind(const instance& new1);
wbool rel(const instance& old);
const pool& g... | 21.103448 | 52 | 0.601307 | kniz |
16f0cd1949c0c93b84ebe4ce1972566fcd01344e | 5,134 | hpp | C++ | stan/math/opencl/kernel_generator/select.hpp | kedartal/math | 77248cf73c1110660006c9700f78d9bb7c02be1d | [
"BSD-3-Clause"
] | null | null | null | stan/math/opencl/kernel_generator/select.hpp | kedartal/math | 77248cf73c1110660006c9700f78d9bb7c02be1d | [
"BSD-3-Clause"
] | null | null | null | stan/math/opencl/kernel_generator/select.hpp | kedartal/math | 77248cf73c1110660006c9700f78d9bb7c02be1d | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_OPENCL_KERNEL_GENERATOR_SELECT_HPP
#define STAN_MATH_OPENCL_KERNEL_GENERATOR_SELECT_HPP
#ifdef STAN_OPENCL
#include <stan/math/prim/meta.hpp>
#include <stan/math/opencl/matrix_cl_view.hpp>
#include <stan/math/opencl/kernel_generator/type_str.hpp>
#include <stan/math/opencl/kernel_generator/name_gener... | 39.79845 | 79 | 0.668679 | kedartal |
16f23bb4e00852d5112a4b9b4fe9b892a39c7bdc | 6,159 | cpp | C++ | RayEngine/Source/System/Application.cpp | Mumsfilibaba/RayEngine | 68496966c1d7b91bc8fbdd305226ece9b9f596b2 | [
"Apache-2.0"
] | null | null | null | RayEngine/Source/System/Application.cpp | Mumsfilibaba/RayEngine | 68496966c1d7b91bc8fbdd305226ece9b9f596b2 | [
"Apache-2.0"
] | null | null | null | RayEngine/Source/System/Application.cpp | Mumsfilibaba/RayEngine | 68496966c1d7b91bc8fbdd305226ece9b9f596b2 | [
"Apache-2.0"
] | null | null | null | /*////////////////////////////////////////////////////////////
Copyright 2018 Alexander Dahlin
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
THIS SOF... | 25.878151 | 123 | 0.562267 | Mumsfilibaba |
16f4e67cff58e7112c1221c466841c08adc38c2f | 486 | cpp | C++ | Game/JMath.cpp | Jdasi/DXTK-Boids | 9612de4f91846ec9c5307ac6d675c0c07b373a7d | [
"MIT"
] | null | null | null | Game/JMath.cpp | Jdasi/DXTK-Boids | 9612de4f91846ec9c5307ac6d675c0c07b373a7d | [
"MIT"
] | null | null | null | Game/JMath.cpp | Jdasi/DXTK-Boids | 9612de4f91846ec9c5307ac6d675c0c07b373a7d | [
"MIT"
] | null | null | null | #include "JMath.h"
// Clamps a float. I.e. returns _min when _min is exceeded.
float JMath::clampf(float _curr, float _min, float _max)
{
if (_curr < _min)
return _min;
if (_curr > _max)
return _max;
return _curr;
}
// Inversely clamps a float. I.e. returns _min when _max is exceeded.
fl... | 18.692308 | 69 | 0.623457 | Jdasi |
a84398d66f3c34c7da355a05051940f65ba14609 | 2,888 | hxx | C++ | include/cstddef.hxx | K-Wu/libcxx.doc | c3c0421b2a9cc003146e847d0b8dd3a37100f39a | [
"Apache-2.0"
] | null | null | null | include/cstddef.hxx | K-Wu/libcxx.doc | c3c0421b2a9cc003146e847d0b8dd3a37100f39a | [
"Apache-2.0"
] | null | null | null | include/cstddef.hxx | K-Wu/libcxx.doc | c3c0421b2a9cc003146e847d0b8dd3a37100f39a | [
"Apache-2.0"
] | null | null | null | // -*- C++ -*-
//===--------------------------- cstddef ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... | 22.387597 | 80 | 0.686981 | K-Wu |
a84442cee063dad11d5a9cad2c5d748f9fcc3c46 | 4,971 | cc | C++ | src/actions/transformations/js_decode.cc | Peercraft/deb-modsecurity | 6d608c3ea5d762b370bf682ba24e2febffd4f382 | [
"Apache-2.0"
] | null | null | null | src/actions/transformations/js_decode.cc | Peercraft/deb-modsecurity | 6d608c3ea5d762b370bf682ba24e2febffd4f382 | [
"Apache-2.0"
] | null | null | null | src/actions/transformations/js_decode.cc | Peercraft/deb-modsecurity | 6d608c3ea5d762b370bf682ba24e2febffd4f382 | [
"Apache-2.0"
] | null | null | null | /*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the files rela... | 29.414201 | 79 | 0.396097 | Peercraft |
a859ffcda73443198aa4f1e6f89bd3a2501e2e90 | 2,541 | hpp | C++ | ivarp/include/ivarp/math_fn/eval/custom.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/math_fn/eval/custom.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/math_fn/eval/custom.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | // The code is open source under the MIT license.
// Copyright 2019-2020, Phillip Keldenich, TU Braunschweig, Algorithms Group
// https://ibr.cs.tu-bs.de/alg
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to de... | 43.067797 | 117 | 0.681621 | phillip-keldenich |
a85be22b7ff30f9baa398b2a425d727c6faf163b | 14,129 | cpp | C++ | test/range/test-any_range.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | test/range/test-any_range.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | test/range/test-any_range.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2013, 2015 Rogier van Dalen.
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 writing, ... | 36.228205 | 80 | 0.583764 | rogiervd |
a85df51766a4e04ecc4d4dff6e50cdae3d006497 | 13,423 | cc | C++ | DRsim/src/DRsimDetectorConstruction.cc | kyHwangs/DRC_generic | efb5a791c57706ac1848907af5bef36cb8480ca2 | [
"Apache-2.0"
] | null | null | null | DRsim/src/DRsimDetectorConstruction.cc | kyHwangs/DRC_generic | efb5a791c57706ac1848907af5bef36cb8480ca2 | [
"Apache-2.0"
] | null | null | null | DRsim/src/DRsimDetectorConstruction.cc | kyHwangs/DRC_generic | efb5a791c57706ac1848907af5bef36cb8480ca2 | [
"Apache-2.0"
] | 1 | 2022-03-28T04:06:32.000Z | 2022-03-28T04:06:32.000Z | #include "DRsimDetectorConstruction.hh"
#include "DRsimCellParameterisation.hh"
#include "DRsimFilterParameterisation.hh"
#include "DRsimMirrorParameterisation.hh"
#include "DRsimSiPMSD.hh"
#include "G4VPhysicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4PVParameterised.hh"
#include "G4IntersectionSolid.hh"
#i... | 46.286207 | 212 | 0.716606 | kyHwangs |
a85e22945433eba2ae0840f32b9c59fbc589962a | 10,259 | hpp | C++ | chat_room/ChatRoom_multithreads/cpp_headers/aws_s3.hpp | LiaoWC/cpp_programs | da78030d02cb916466ad5f0b0794f5c443cc05b4 | [
"MIT"
] | null | null | null | chat_room/ChatRoom_multithreads/cpp_headers/aws_s3.hpp | LiaoWC/cpp_programs | da78030d02cb916466ad5f0b0794f5c443cc05b4 | [
"MIT"
] | null | null | null | chat_room/ChatRoom_multithreads/cpp_headers/aws_s3.hpp | LiaoWC/cpp_programs | da78030d02cb916466ad5f0b0794f5c443cc05b4 | [
"MIT"
] | null | null | null | #ifndef _AWS_S3_HPP_
#define _AWS_S3_HPP_
#include <iostream>
#include <fstream>
#include <sys/stat.h>
#include <fstream>
#include <string>
#include <aws/core/Aws.h>
#include <aws/s3/S3Client.h>
#include <aws/s3/model/DeleteObjectRequest.h>
#include <aws/s3/model/PutObjectRequest.h>
#include <aws/s3/model/GetObjectReq... | 39.007605 | 136 | 0.499951 | LiaoWC |
a85ea5203a902486716faaf97cc4619262159d6c | 1,530 | cpp | C++ | src/prod/src/Management/healthmanager/RequestContextKind.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Management/healthmanager/RequestContextKind.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Management/healthmanager/RequestContextKind.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
namespace... | 40.263158 | 99 | 0.538562 | vishnuk007 |
a85f657b71cb0c42e060c9ab6f5cc1cd63fc78cb | 617 | hpp | C++ | configuration/ConfigurationArgumentProcessor_test/ConfigurationArgumentProcessor_test.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | configuration/ConfigurationArgumentProcessor_test/ConfigurationArgumentProcessor_test.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | configuration/ConfigurationArgumentProcessor_test/ConfigurationArgumentProcessor_test.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | #if !defined CONFIGURATION_ARGUMENT_PROCESSOR_TEST
#define CONFIGURATION_ARGUMENT_PROCESSOR_TEST
#include "Test.hpp"
#include "TestCases.hpp"
#include "TestMacros.hpp"
namespace Configuration
{
TEST_CASES_BEGIN(ArgumentProcessor_test)
TEST(RegisterPositionalArgument)
TEST(RegisterOptionalArgumen... | 19.28125 | 50 | 0.71799 | leighgarbs |
a86b36606b70fd77b4b9118cc6e54bf4366c7dae | 1,811 | cpp | C++ | mshp/algo/graphs/Dijkstra_dist_from_given_to_all.cpp | zer0main/problems | 264dd359f74e0906b9b7505506d50c879c4fb737 | [
"MIT"
] | 5 | 2015-12-25T20:53:39.000Z | 2017-07-18T23:19:04.000Z | mshp/algo/graphs/Dijkstra_dist_from_given_to_all.cpp | zer0main/problems | 264dd359f74e0906b9b7505506d50c879c4fb737 | [
"MIT"
] | null | null | null | mshp/algo/graphs/Dijkstra_dist_from_given_to_all.cpp | zer0main/problems | 264dd359f74e0906b9b7505506d50c879c4fb737 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2015-2017 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#include <bits/stdc++.h>
#define MAX_LENGTH 1000000000
typedef std::vector<int> Ints;
typedef std::vector<bool> Bools;
typedef std::pair<int, int> IntPair;
typedef std::vector<IntPair> IntPairs;
typedef std::vector<IntPairs> ... | 25.152778 | 70 | 0.484263 | zer0main |
a86b85be14ff439ef1872f123b2e6ed04ecfaa94 | 4,053 | cpp | C++ | src/coreclr/ToolBox/superpmi/mcs/verbdumpmap.cpp | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 3 | 2021-06-24T15:39:52.000Z | 2021-11-04T02:13:43.000Z | src/coreclr/ToolBox/superpmi/mcs/verbdumpmap.cpp | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 18 | 2019-12-03T00:21:59.000Z | 2022-01-30T04:45:58.000Z | src/coreclr/ToolBox/superpmi/mcs/verbdumpmap.cpp | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 2 | 2022-01-23T12:24:04.000Z | 2022-02-07T15:44:03.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "standardpch.h"
#include "simpletimer.h"
#include "methodcontext.h"
#include "methodcontextiterator.h"
#include "verbdumpmap.h"
#include "verbildump.h"
#include "spmiutil.h"... | 27.760274 | 83 | 0.585986 | JimmyCushnie |
a87087d87447957d1ebad46267fb85baf7063457 | 1,930 | cpp | C++ | testing/visualizer/Main.cpp | ElliottSlingsby/ChunkPool | b4dd1bc5c8e88b2519029bca8329ef7092e8352f | [
"MIT"
] | null | null | null | testing/visualizer/Main.cpp | ElliottSlingsby/ChunkPool | b4dd1bc5c8e88b2519029bca8329ef7092e8352f | [
"MIT"
] | null | null | null | testing/visualizer/Main.cpp | ElliottSlingsby/ChunkPool | b4dd1bc5c8e88b2519029bca8329ef7092e8352f | [
"MIT"
] | null | null | null | #include "ChunkPool.hpp"
#include <iostream>
#include <ctime>
#include <random>
#include <chrono>
// Testing code, shouldn't really be here
struct Test{
inline Test(int x = 0, int y = 0, int z = 0) : x(x), y(y), z(z){}
inline void print() const{
std::cout << x << ", " << y << ", " << z << "\n";
}
int x;
int... | 21.685393 | 118 | 0.614508 | ElliottSlingsby |
a871bc75a1f740ea9243e61d603db9554171f971 | 272 | cpp | C++ | PrintImageSizeUtil/PrintImageSizeUtil.cpp | myarichuk/HunterDemo | def3f9e2ef6dbef901249ff71724217a9137e744 | [
"MIT"
] | null | null | null | PrintImageSizeUtil/PrintImageSizeUtil.cpp | myarichuk/HunterDemo | def3f9e2ef6dbef901249ff71724217a9137e744 | [
"MIT"
] | null | null | null | PrintImageSizeUtil/PrintImageSizeUtil.cpp | myarichuk/HunterDemo | def3f9e2ef6dbef901249ff71724217a9137e744 | [
"MIT"
] | null | null | null | // PrintImageSizeUtil.cpp : Defines the entry point for the application.
//
#include "PrintImageSizeUtil.h"
using namespace std;
int main()
{
const auto img = cv::imread("e:\\Capture.JPG");
cout << "image size: " << img.cols << "x" << img.rows << endl;
return 0;
}
| 19.428571 | 73 | 0.654412 | myarichuk |
a879d12611f6ebd30250cdb311437014b97d3515 | 247 | cpp | C++ | src/test.cpp | Liuchang0812/leetcode | d71f87b0035e661d0009f4382b39c4787c355f89 | [
"MIT"
] | 9 | 2015-09-09T20:28:31.000Z | 2019-05-15T09:13:07.000Z | src/test.cpp | liuchang0812/leetcode | d71f87b0035e661d0009f4382b39c4787c355f89 | [
"MIT"
] | 1 | 2015-02-25T13:10:09.000Z | 2015-02-25T13:10:09.000Z | src/test.cpp | liuchang0812/leetcode | d71f87b0035e661d0009f4382b39c4787c355f89 | [
"MIT"
] | 1 | 2016-08-31T19:14:52.000Z | 2016-08-31T19:14:52.000Z | #include <deque>
#include <iostream>
using namespace std;
int main()
{
deque<int> dq;
dq.push(1);
dq.push(2);
dq.push(4);
for (auto i = dq.begin(); i != dq.end(); ++i)
{
cout << *i << endl;
}
return 0;
}
| 13 | 49 | 0.48583 | Liuchang0812 |
a87ede10a7fddd75d660071f5973acce06b32bd8 | 4,892 | cpp | C++ | Source/main.cpp | RPKQ/OpenGL_scratchUp | cbe0268d6bb86bc0de49fafdcf078e5b85395964 | [
"CC-BY-3.0"
] | null | null | null | Source/main.cpp | RPKQ/OpenGL_scratchUp | cbe0268d6bb86bc0de49fafdcf078e5b85395964 | [
"CC-BY-3.0"
] | null | null | null | Source/main.cpp | RPKQ/OpenGL_scratchUp | cbe0268d6bb86bc0de49fafdcf078e5b85395964 | [
"CC-BY-3.0"
] | null | null | null | #include "Program.h"
#include "AssimpModel.h"
#include "Camera.h"
#include "../Source/GLIncludes.h"
using namespace glm;
using namespace std;
enum { MENU_TIMER_START, MENU_TIMER_STOP, MENU_EXIT,
MENU_SHADER_NORMAL, MENU_SHADER_LIGHTING, MENU_SHADER_TEXTURE,
MENU_SCENE_SPONZA, MENU_SCENE_EMPIRE};
const int windowW... | 20.817021 | 93 | 0.721382 | RPKQ |
a883b658b1e81dc4e10753441051c4208c03e1ba | 4,332 | cpp | C++ | tests/pimpl_tests/pimpl_basic_header_only/heap_allocations.cpp | lubkoll/friendly-type-erasure | 719830233a8652ccf18164653b466b0054a617f6 | [
"MIT"
] | null | null | null | tests/pimpl_tests/pimpl_basic_header_only/heap_allocations.cpp | lubkoll/friendly-type-erasure | 719830233a8652ccf18164653b466b0054a617f6 | [
"MIT"
] | 22 | 2016-08-03T16:51:10.000Z | 2016-11-23T20:53:03.000Z | tests/pimpl_tests/pimpl_basic_header_only/heap_allocations.cpp | lubkoll/friendly-type-erasure | 719830233a8652ccf18164653b466b0054a617f6 | [
"MIT"
] | null | null | null | //#include <gtest/gtest.h>
//#include "interface.hh"
//#include "../mock_fooable.hh"
//#include "../util.hh"
//using Fooable = Basic::Fooable;
//using Mock::MockFooable;
//TEST( TestBasicFooable_HeapAllocations, Empty )
//{
// auto expected_heap_allocations = 0u;
// CHECK_HEAP_ALLOC( Fooable fooable,
// ... | 29.671233 | 84 | 0.638273 | lubkoll |
a885f6f314b0365739ff6bfbe9cfb9a4a8394f54 | 962 | hpp | C++ | CodeRed/Vulkan/VulkanSwapChain.hpp | LinkClinton/Code-Red | 491621144aba559f068c7f91d71e3d0d7c87761e | [
"MIT"
] | 34 | 2019-09-11T09:12:16.000Z | 2022-02-13T12:50:25.000Z | CodeRed/Vulkan/VulkanSwapChain.hpp | LinkClinton/Code-Red | 491621144aba559f068c7f91d71e3d0d7c87761e | [
"MIT"
] | 7 | 2019-09-22T14:21:26.000Z | 2020-03-24T10:36:20.000Z | CodeRed/Vulkan/VulkanSwapChain.hpp | LinkClinton/Code-Red | 491621144aba559f068c7f91d71e3d0d7c87761e | [
"MIT"
] | 6 | 2019-10-21T18:05:55.000Z | 2021-04-22T05:07:30.000Z | #pragma once
#include "../Interface/GpuSwapChain.hpp"
#include "VulkanUtility.hpp"
#ifdef __ENABLE__VULKAN__
namespace CodeRed {
class VulkanSwapChain final : public GpuSwapChain {
public:
explicit VulkanSwapChain(
const std::shared_ptr<GpuLogicalDevice>& device,
const std::shared_ptr<GpuCommandQueue>& qu... | 21.863636 | 76 | 0.740125 | LinkClinton |
a888391d77c4bf5c0886e107f0b4b35c0415904b | 3,011 | hpp | C++ | include/jbkernel/IVoidEthernet.hpp | JohnnyB1290/jblib-platform-abstract-jbkernel | 6e9e3e26e0ea4cbfdffc5cdde30e64ae78dc82a7 | [
"Apache-2.0"
] | null | null | null | include/jbkernel/IVoidEthernet.hpp | JohnnyB1290/jblib-platform-abstract-jbkernel | 6e9e3e26e0ea4cbfdffc5cdde30e64ae78dc82a7 | [
"Apache-2.0"
] | null | null | null | include/jbkernel/IVoidEthernet.hpp | JohnnyB1290/jblib-platform-abstract-jbkernel | 6e9e3e26e0ea4cbfdffc5cdde30e64ae78dc82a7 | [
"Apache-2.0"
] | null | null | null | /**
* @file
* @brief Void Ethernet Interface
*
*
* @note
* Copyright © 2019 Evgeniy Ivanov. Contacts: <strelok1290@gmail.com>
* All rights reserved.
* @note
* 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 ... | 29.23301 | 94 | 0.756891 | JohnnyB1290 |
a888f5426dbaf33bdc3f32567acf49c1dd5e918a | 10,364 | cpp | C++ | Remove_bad_split_good/Assign05P1.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | Remove_bad_split_good/Assign05P1.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | Remove_bad_split_good/Assign05P1.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | #include "llcpInt.h"
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
void SeedRand();
int BoundedRandomInt(int lowerBound, int upperBound);
int ListLengthCheck(Node* head, int whatItShouldBe);
bool match(Node* head, const int procInts[], int procSize);
void PruneArray(int a[], int& size,... | 31.987654 | 123 | 0.489579 | awagsta |
a88bc31a83c5f97d81192f7d0a59b0b995720750 | 720 | cpp | C++ | 1-FMT_IO/number-comparer.cpp | lotcz/PJC_ukoly | 33d4c8b32c78b6a0df26e05c47fef840aa08cfe3 | [
"MIT"
] | null | null | null | 1-FMT_IO/number-comparer.cpp | lotcz/PJC_ukoly | 33d4c8b32c78b6a0df26e05c47fef840aa08cfe3 | [
"MIT"
] | null | null | null | 1-FMT_IO/number-comparer.cpp | lotcz/PJC_ukoly | 33d4c8b32c78b6a0df26e05c47fef840aa08cfe3 | [
"MIT"
] | null | null | null | #include "number-comparer.hpp"
#include <iostream>
#include <stdexcept>
#include <sstream>
/**
* return true if str1 is bigger than str2.
*/
bool NumberComparer::compare(std::string& str1, std::string& str2) {
if (str1.length() > str2.length()) {
return true;
} else if (str1.length() < str2.length()) {
ret... | 17.560976 | 68 | 0.551389 | lotcz |
a89889a31d8cf760da02d84a186e39e997b683af | 17,960 | cpp | C++ | src/common/settings.cpp | linquize/cppan | 014d9604183360dfa0628f5ec71198b57f89d9fc | [
"Apache-2.0"
] | null | null | null | src/common/settings.cpp | linquize/cppan | 014d9604183360dfa0628f5ec71198b57f89d9fc | [
"Apache-2.0"
] | null | null | null | src/common/settings.cpp | linquize/cppan | 014d9604183360dfa0628f5ec71198b57f89d9fc | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2016-2017, Egor Pugin
*
* 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 agree... | 29.636964 | 127 | 0.619488 | linquize |
a899d8c1bf83a99b830acff1dad1e2b64c4eeba4 | 2,987 | hpp | C++ | modules/encode/src/video/video_stream/video_stream.hpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | null | null | null | modules/encode/src/video/video_stream/video_stream.hpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | null | null | null | modules/encode/src/video/video_stream/video_stream.hpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* Copyright (C) [2020] by Cambricon, Inc. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | 31.776596 | 112 | 0.694342 | HFauto |
a89a3303c865f25d9aaeefc2ff9659cc08253660 | 2,035 | cpp | C++ | Daemon/ydotoold.cpp | StoneDot/ydotool | cf38f107bb998e938cdf8cd5cd5eafb88739a414 | [
"MIT"
] | null | null | null | Daemon/ydotoold.cpp | StoneDot/ydotool | cf38f107bb998e938cdf8cd5cd5eafb88739a414 | [
"MIT"
] | null | null | null | Daemon/ydotoold.cpp | StoneDot/ydotool | cf38f107bb998e938cdf8cd5cd5eafb88739a414 | [
"MIT"
] | null | null | null | /*
This file is part of ydotool.
Copyright (C) 2018-2019 ReimuNotMoe
This program is free software: you can redistribute it and/or modify
it under the terms of the MIT License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied wa... | 23.662791 | 113 | 0.653071 | StoneDot |
a89b9d3fecc3cb13ea796b2a462af7d2ae414ca2 | 331 | cpp | C++ | Unreal4/FogOfWar/UnchartedWaters/Source/unchartedwaters/UI/UWGameHUD.cpp | fangguanya/study | 4e0ae19d97c5665208657fdb280bd2c25ce05190 | [
"MIT"
] | null | null | null | Unreal4/FogOfWar/UnchartedWaters/Source/unchartedwaters/UI/UWGameHUD.cpp | fangguanya/study | 4e0ae19d97c5665208657fdb280bd2c25ce05190 | [
"MIT"
] | null | null | null | Unreal4/FogOfWar/UnchartedWaters/Source/unchartedwaters/UI/UWGameHUD.cpp | fangguanya/study | 4e0ae19d97c5665208657fdb280bd2c25ce05190 | [
"MIT"
] | 1 | 2022-03-08T01:36:39.000Z | 2022-03-08T01:36:39.000Z | #pragma once
// !< All right is reserved by HW-Storm Game Studio, Even not mentioned clearly with signature.
// !< This is not a free ware, Please do-not copy it outside of HW-Storm Game Studio
// !< File : UWGameState
// !< Date : 2/27/2017 12:03:53 PM
// !< Author : fanggang
#include "unchartedwaters.h"
#include "UW... | 33.1 | 95 | 0.700906 | fangguanya |
a89bd2a83e044b1bcaab8b2b6b77ecf6d8ca80bd | 2,197 | cc | C++ | src/base-element.cc | banetl/bson-parser | b5c15c1f10863d7e4ea2aa6fc07188728ed2de04 | [
"MIT"
] | null | null | null | src/base-element.cc | banetl/bson-parser | b5c15c1f10863d7e4ea2aa6fc07188728ed2de04 | [
"MIT"
] | null | null | null | src/base-element.cc | banetl/bson-parser | b5c15c1f10863d7e4ea2aa6fc07188728ed2de04 | [
"MIT"
] | 1 | 2018-04-05T11:53:23.000Z | 2018-04-05T11:53:23.000Z | #include <map>
#include <string>
#include "base-element.hh"
#include "utils.hh"
namespace bson
{
BaseElement::BaseElement(BaseElement::Type type, const std::string key)
: type_(type),
key_(key)
{
}
std::string BaseElement::get_type_string(BaseElement::Type e) const
{
co... | 35.435484 | 75 | 0.543013 | banetl |
a89c4847dfe0405d41b72a1e6dd932ef1b11774a | 78 | cpp | C++ | Windows/VS2017/vtkCommonDataModel/vtkCommonDataModel.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkCommonDataModel/vtkCommonDataModel.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkCommonDataModel/vtkCommonDataModel.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | #include "vtkCommonDataModel.h"
vtkCommonDataModel::vtkCommonDataModel()
{
}
| 13 | 40 | 0.794872 | WinBuilds |
a89eef6e13458396ada343fe487e175568f46273 | 1,068 | cpp | C++ | 1138/main.cpp | Heliovic/PAT_Solutions | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | 2 | 2019-03-18T12:55:38.000Z | 2019-09-07T10:11:26.000Z | 1138/main.cpp | Heliovic/My_PAT_Answer | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | null | null | null | 1138/main.cpp | Heliovic/My_PAT_Answer | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | null | null | null | #include <cstdio>
#define MAX_N 51200
using namespace std;
int preorder[MAX_N];
int inorder[MAX_N];
int N;
bool flag = false;
struct node
{
int data;
node* lc;
node* rc;
node() {lc = rc = NULL;}
};
node* root = NULL;
node* rebuild(int pl, int pr, int il, int ir)
{
if (pl > pr || il > ir)
... | 14.630137 | 52 | 0.449438 | Heliovic |
a8a15dd1bd099b9a6edfeeb0e0d7f1e8fe317f19 | 93 | hpp | C++ | lib/hwlib-extra/hwlib-extra.hpp | Fusion86/gesture-gloves | 17ebff2c7ea63cffd4f78e9d7ec35a004cb457e2 | [
"MIT"
] | null | null | null | lib/hwlib-extra/hwlib-extra.hpp | Fusion86/gesture-gloves | 17ebff2c7ea63cffd4f78e9d7ec35a004cb457e2 | [
"MIT"
] | null | null | null | lib/hwlib-extra/hwlib-extra.hpp | Fusion86/gesture-gloves | 17ebff2c7ea63cffd4f78e9d7ec35a004cb457e2 | [
"MIT"
] | null | null | null | #pragma once
#include <hwlib.hpp>
hwlib::ostream& operator<<(hwlib::ostream& os, float f);
| 15.5 | 56 | 0.698925 | Fusion86 |
a8a1843d2251bfd8946be5202b9fc309288531db | 2,315 | hpp | C++ | src/seal/kernel/sum_seal.hpp | EvonneH/he-transformer | 85b3b629e46a25795ffcd913c8c5ffe7e4d50afc | [
"Apache-2.0"
] | null | null | null | src/seal/kernel/sum_seal.hpp | EvonneH/he-transformer | 85b3b629e46a25795ffcd913c8c5ffe7e4d50afc | [
"Apache-2.0"
] | null | null | null | src/seal/kernel/sum_seal.hpp | EvonneH/he-transformer | 85b3b629e46a25795ffcd913c8c5ffe7e4d50afc | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2018-2020 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://w... | 39.237288 | 80 | 0.657451 | EvonneH |
a8a91abb8516aa351c075c34550896cbe193bb21 | 6,802 | cpp | C++ | src/imtjson/src/imtjson/array.cpp | martykadlcek/trading-bot | c2f34ef1e6746f02642dde3cb3d11010213f0121 | [
"MIT"
] | 7 | 2017-01-12T08:56:33.000Z | 2022-03-09T17:25:20.000Z | src/imtjson/src/imtjson/array.cpp | martykadlcek/trading-bot | c2f34ef1e6746f02642dde3cb3d11010213f0121 | [
"MIT"
] | 1 | 2017-01-19T16:25:01.000Z | 2017-01-19T16:25:01.000Z | src/imtjson/src/imtjson/array.cpp | martykadlcek/trading-bot | c2f34ef1e6746f02642dde3cb3d11010213f0121 | [
"MIT"
] | 1 | 2016-10-14T06:24:16.000Z | 2016-10-14T06:24:16.000Z | #include "array.h"
#include "arrayValue.h"
#include "object.h"
#include <time.h>
namespace json {
Array::Array(Value value): base(value),changes(value)
{
}
Array::Array() : base(AbstractArrayValue::getEmptyArray())
{
}
Array::Array(const std::initializer_list<Value> &v) {
reserve(v.size());
for (auto &&x ... | 21.593651 | 91 | 0.636136 | martykadlcek |
a8a9a9b0eab95164006e56947f358a6338c08fac | 7,014 | hpp | C++ | mesp/mesp_inner.hpp | KuceraMartin/mesp-fpt | 295a6a65ba5aedde775eb57805d7a74124e63c66 | [
"MIT"
] | null | null | null | mesp/mesp_inner.hpp | KuceraMartin/mesp-fpt | 295a6a65ba5aedde775eb57805d7a74124e63c66 | [
"MIT"
] | null | null | null | mesp/mesp_inner.hpp | KuceraMartin/mesp-fpt | 295a6a65ba5aedde775eb57805d7a74124e63c66 | [
"MIT"
] | null | null | null | #ifndef IMPL_MESP_INNER_HPP
#define IMPL_MESP_INNER_HPP
#include <boost/dynamic_bitset.hpp>
#include <queue>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "../common/common.hpp"
#include "../common/graph.hpp"
#include "constrained_set_cover.hpp"
class mesp_inner {
publ... | 22.699029 | 152 | 0.550613 | KuceraMartin |
a8aefe93bfad9ad7ea0f6ba41d5a8a505d0ab170 | 271 | hh | C++ | src/state/secondary_variable_field_evaluator_fromfunction_reg.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/state/secondary_variable_field_evaluator_fromfunction_reg.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/state/secondary_variable_field_evaluator_fromfunction_reg.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | #include "secondary_variable_field_evaluator_fromfunction.hh"
namespace Amanzi {
Utils::RegisteredFactory<FieldEvaluator,SecondaryVariableFieldEvaluatorFromFunction> SecondaryVariableFieldEvaluatorFromFunction::fac_("secondary variable from function");
} // namespace
| 33.875 | 171 | 0.867159 | fmyuan |
a8b165b4934772d0c528880b4800c6b25ea181f7 | 352 | cpp | C++ | files/mnem_gen_abacaba.cpp | kborozdin/palindromic-length | 2fad58e82b5cc079bfceb9e782b7e2a8ee4306d2 | [
"MIT"
] | null | null | null | files/mnem_gen_abacaba.cpp | kborozdin/palindromic-length | 2fad58e82b5cc079bfceb9e782b7e2a8ee4306d2 | [
"MIT"
] | null | null | null | files/mnem_gen_abacaba.cpp | kborozdin/palindromic-length | 2fad58e82b5cc079bfceb9e782b7e2a8ee4306d2 | [
"MIT"
] | null | null | null | // abacaba
#include <stdio.h>
#include <string.h>
#define MAX 100000
char str[MAX];
int main(int argc,char *argv[]) {
int n,k,i;
sscanf(argv[1],"%d",&n);
str[0]='a';
k=1;
char c='a';
for(;n>1;--n) {
str[k]=++c;
for(i=0;i<k;++i)
str[k+1+i]=str[i];
k=k+k+1;
}
print... | 14.666667 | 34 | 0.465909 | kborozdin |
a8b269f1eddb55832cddc194dcb7ca705ca1e3d4 | 644 | hpp | C++ | Notemania/include/Screen.hpp | lunacys/Notemania | fcf314ea37fa3f5aa0ca7817708d0b5e8ec171ba | [
"MIT"
] | 1 | 2017-06-27T09:38:45.000Z | 2017-06-27T09:38:45.000Z | Notemania/include/Screen.hpp | lunacys/Notemania | fcf314ea37fa3f5aa0ca7817708d0b5e8ec171ba | [
"MIT"
] | 1 | 2017-06-29T16:31:41.000Z | 2017-06-29T16:31:41.000Z | Notemania/include/Screen.hpp | lunacys/Notemania | fcf314ea37fa3f5aa0ca7817708d0b5e8ec171ba | [
"MIT"
] | 3 | 2017-06-27T09:52:19.000Z | 2017-07-20T13:35:12.000Z | #ifndef NOMA_SCREEN_HPP_
#define NOMA_SCREEN_HPP_
#include <string>
namespace noma
{
class IScreenManager;
class Screen
{
public:
Screen* find_screen();
Screen* find_screen(const std::string& name);
void show(const std::string& name, bool hideThis);
void show();
... | 16.512821 | 58 | 0.607143 | lunacys |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.