hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
16475c8f69d0e87b1ff43e8d1d661a5ffb0da94f | 1,984 | inl | C++ | 3rdParty/glm-0.9.7.5/test/external/gli/core/texture2d_array.inl | fakhirsh/3DRenderer | f46292ef7af54d2545d22623b1c12af5867cf9cd | [
"MIT"
] | 41 | 2016-03-25T18:14:37.000Z | 2022-01-20T11:16:52.000Z | src/lib/glm-0.9.8.4/test/external/gli/core/texture2d_array.inl | Rydgel/chip8 | 8d2aaecd90ec8a64d6d08e8fe3c33643b4d1977d | [
"BSD-3-Clause"
] | 31 | 2019-10-25T11:28:21.000Z | 2019-12-10T16:57:30.000Z | src/lib/glm-0.9.8.4/test/external/gli/core/texture2d_array.inl | Rydgel/chip8 | 8d2aaecd90ec8a64d6d08e8fe3c33643b4d1977d | [
"BSD-3-Clause"
] | 9 | 2016-05-23T01:51:25.000Z | 2021-08-21T15:32:37.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Image Copyright (c) 2008 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2011-04-06
// Updated : 2011... | 25.113924 | 100 | 0.561996 | fakhirsh |
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 |
164c2a4dc4f13f853934ab5e0655b88ddd932900 | 3,225 | cpp | C++ | test/main.cpp | DuinoDu/MotionDetection | da9ba307948882fe66910f3936743309fda07fbc | [
"MIT"
] | 1 | 2017-07-12T09:01:40.000Z | 2017-07-12T09:01:40.000Z | test/main.cpp | DuinoDu/MotionDetection | da9ba307948882fe66910f3936743309fda07fbc | [
"MIT"
] | null | null | null | test/main.cpp | DuinoDu/MotionDetection | da9ba307948882fe66910f3936743309fda07fbc | [
"MIT"
] | null | null | null | #include <iostream>
#include "windows.h"
#include "interface.h"
#include <opencv2/opencv.hpp>
using namespace std;
void __stdcall getResult(int* px, int* py, size_t size, void* context)
{
for (size_t i = 0; i < size; i++){
cout << "x: " << *px << ", y:" << *py << endl;
}
}
int main(int argc, cha... | 33.59375 | 115 | 0.714419 | DuinoDu |
164ef01f7b42bc218f8484b263fab96515a96651 | 945 | cpp | C++ | src/carl-logging/carl-logging.cpp | sjunges/carl | 5013c31c035990d9912a6265944e7d4add4c378b | [
"MIT"
] | 29 | 2015-05-19T12:17:16.000Z | 2021-03-05T17:53:00.000Z | src/carl-logging/carl-logging.cpp | sjunges/carl | 5013c31c035990d9912a6265944e7d4add4c378b | [
"MIT"
] | 36 | 2016-10-26T12:47:11.000Z | 2021-03-03T15:19:38.000Z | src/carl-logging/carl-logging.cpp | sjunges/carl | 5013c31c035990d9912a6265944e7d4add4c378b | [
"MIT"
] | 16 | 2015-05-27T07:35:19.000Z | 2021-03-05T17:53:08.000Z | #include "carl-logging.h"
#include "logging.h"
#include "Logger.h"
namespace carl {
namespace logging {
void setInitialLogLevel()
{
carl::logging::logger().configure("carl_logfile", "carl.log");
carl::logging::logger().filter("carl_logfile")
("carl", carl::logging::LogLevel::LVL_INFO)
("carl.ran", carl::logging... | 28.636364 | 63 | 0.691005 | sjunges |
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 |
1653587cd532458098b42d5b442feaf4cd2a72ec | 3,993 | cpp | C++ | sources/libcore/mesh/xatlas.cpp | Gaeldrin/cage | 6399a5cdcb3932e8d422901ce7d72099dc09273c | [
"MIT"
] | null | null | null | sources/libcore/mesh/xatlas.cpp | Gaeldrin/cage | 6399a5cdcb3932e8d422901ce7d72099dc09273c | [
"MIT"
] | null | null | null | sources/libcore/mesh/xatlas.cpp | Gaeldrin/cage | 6399a5cdcb3932e8d422901ce7d72099dc09273c | [
"MIT"
] | null | null | null | #include <cstddef> // fix missing size_t in xatlas
#include <cstdarg> // va_start
#include <cstdio> // vsprintf
#include <xatlas.h>
#include "mesh.h"
namespace cage
{
namespace
{
int xAtlasPrint(const char *format, ...)
{
char buffer[1000];
va_list arg;
va_start(arg, format);
auto result = vsprintf(... | 25.928571 | 120 | 0.664663 | Gaeldrin |
16539d4786d8054ccbdf0a94c1b13186c357fbdd | 67 | cpp | C++ | data_server/src/http_headers.cpp | Yanick-Salzmann/carpi | 29f5e1bf1eb6243e45690f040e4df8e7c228e897 | [
"Apache-2.0"
] | 2 | 2020-06-07T16:47:20.000Z | 2021-03-20T10:41:34.000Z | data_server/src/http_headers.cpp | Yanick-Salzmann/carpi | 29f5e1bf1eb6243e45690f040e4df8e7c228e897 | [
"Apache-2.0"
] | null | null | null | data_server/src/http_headers.cpp | Yanick-Salzmann/carpi | 29f5e1bf1eb6243e45690f040e4df8e7c228e897 | [
"Apache-2.0"
] | null | null | null | #include "data_server/http_headers.hpp"
namespace carpi::data {
} | 13.4 | 39 | 0.761194 | Yanick-Salzmann |
165a6df728a6e2219358f09a3a64fbd3f2f87886 | 101,521 | cpp | C++ | Framewave/domain/fwImage/src/Rotate.cpp | dbremner/framewave | 94babe445689538e6c3b44b1575cca27893b9bb4 | [
"Apache-2.0"
] | null | null | null | Framewave/domain/fwImage/src/Rotate.cpp | dbremner/framewave | 94babe445689538e6c3b44b1575cca27893b9bb4 | [
"Apache-2.0"
] | 1 | 2019-01-14T04:00:23.000Z | 2019-01-14T04:00:23.000Z | Framewave/domain/fwImage/src/Rotate.cpp | dbremner/framewave | 94babe445689538e6c3b44b1575cca27893b9bb4 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2006-2009 Advanced Micro Devices, Inc. All Rights Reserved.
This software is subject to the Apache v2.0 License.
*/
#include "fwdev.h"
#include "fwImage.h"
#include "FwSharedCode_SSE2.h"
#include "PointHandle.h"
namespace OPT_LEVEL
{
//Parameters
//pSrc - Pointer to the source image ... | 38.396747 | 136 | 0.553541 | dbremner |
165ad9fe7c8ceb9a0406830421b10ae345b2078d | 694 | cpp | C++ | examples/file_upload_cpp/fs_remove.cpp | SammyEnigma/QuickStreams | 999b517cf6c9321dee61ea80d9b51adf1e32aeec | [
"MIT"
] | 48 | 2017-05-20T22:17:58.000Z | 2021-05-06T13:27:04.000Z | examples/file_upload_cpp/fs_remove.cpp | SammyEnigma/QuickStreams | 999b517cf6c9321dee61ea80d9b51adf1e32aeec | [
"MIT"
] | 1 | 2018-04-23T11:10:57.000Z | 2018-04-23T16:04:14.000Z | examples/file_upload_cpp/fs_remove.cpp | SammyEnigma/QuickStreams | 999b517cf6c9321dee61ea80d9b51adf1e32aeec | [
"MIT"
] | 11 | 2017-05-20T22:18:01.000Z | 2019-08-28T23:30:53.000Z | #include "Filesystem.hpp"
#include <QuickStreams>
#include <QVariant>
#include <QString>
#include <QTimer>
#include <QDebug>
using namespace quickstreams;
Stream::Reference Filesystem::remove(const QString& fileId) {
qDebug() << "FS::remove > removing file: " << fileId;
// Create and return an atomic stream repres... | 26.692308 | 73 | 0.700288 | SammyEnigma |
165c9c36fecf26eb96f48dd52b60ba8a4be84c9e | 3,098 | cpp | C++ | src/parser.cpp | samcoppini/xrfc | 34055b3f8673dac17f9b59de90d2eb17163f25f1 | [
"BSL-1.0"
] | null | null | null | src/parser.cpp | samcoppini/xrfc | 34055b3f8673dac17f9b59de90d2eb17163f25f1 | [
"BSL-1.0"
] | null | null | null | src/parser.cpp | samcoppini/xrfc | 34055b3f8673dac17f9b59de90d2eb17163f25f1 | [
"BSL-1.0"
] | null | null | null | #include "parser.hpp"
using namespace std::string_literals;
namespace xrf {
namespace {
/**
* @brief Attempts to parse a XRF chunk, which will result in either a new,
* valid, chunk being added to the passed-in list of chunks, or new error
* messages being added to the list of errors
*
* @param file
* The... | 36.880952 | 113 | 0.631052 | samcoppini |
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 |
1660317546a7a152a90f506404d000dc585c4677 | 5,030 | cpp | C++ | Graphics/Mesh.cpp | KrasnovPavel/DSD_GameEngine | 0e22d6adcf26a9d47a7a950d448c959648b5a56d | [
"MIT"
] | null | null | null | Graphics/Mesh.cpp | KrasnovPavel/DSD_GameEngine | 0e22d6adcf26a9d47a7a950d448c959648b5a56d | [
"MIT"
] | null | null | null | Graphics/Mesh.cpp | KrasnovPavel/DSD_GameEngine | 0e22d6adcf26a9d47a7a950d448c959648b5a56d | [
"MIT"
] | null | null | null | //
// Created by Pavel Krasnov (krasnovpavel0@gmail.com) on 11.12.17.
//
#include <GL/gl.h>
#include <GL/glut.h>
#include "Mesh.h"
#include "MeshParser.h"
using namespace DSD;
INIT_REFLECTION(Mesh)
Mesh::Mesh(const std::string& meshFileName, const Vector3 &position, const Quaternion &rotation, const Vector3 &scale... | 30.301205 | 118 | 0.67833 | KrasnovPavel |
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 |
166abc748343e25fc7c514e4c84f20b5fda8a8d6 | 226 | cpp | C++ | lib/OpNet/TypeChain.cpp | LLNL/typeforge | e91c0447140040a9ae02f3a58af3621a00a5e242 | [
"BSD-3-Clause"
] | 2 | 2021-05-17T19:22:37.000Z | 2021-09-01T15:10:38.000Z | lib/OpNet/TypeChain.cpp | LLNL/typeforge | e91c0447140040a9ae02f3a58af3621a00a5e242 | [
"BSD-3-Clause"
] | null | null | null | lib/OpNet/TypeChain.cpp | LLNL/typeforge | e91c0447140040a9ae02f3a58af3621a00a5e242 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright 2020 Lawrence Livermore National Security, LLC and other Typeforge developers.
* See the top-level NOTICE file for details.
*
* SPDX-License-Identifier: BSD-3
*/
#include "Typeforge/OpNet/TypeChain.hpp"
| 22.6 | 91 | 0.743363 | LLNL |
166b26b731e353a281563a5e98335000d00974e1 | 34,851 | cpp | C++ | src/devices/cpu/pic16c62x/pic16c62x.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/devices/cpu/pic16c62x/pic16c62x.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/devices/cpu/pic16c62x/pic16c62x.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Tony La Porta
/**************************************************************************\
* Microchip PIC16C62X Emulator *
* *
* ... | 29.139632 | 166 | 0.584373 | Robbbert |
166f731e972767a615d1cb43a5d44ba04fd18b70 | 5,061 | cpp | C++ | src/REPL/Command/Match.cpp | nccgroup/xendbg | 74ce0c1ad6398b14e5702d0f58832d40088cea23 | [
"MIT"
] | 67 | 2019-01-27T01:49:40.000Z | 2022-02-18T16:01:09.000Z | src/REPL/Command/Match.cpp | SpencerMichaels/xendbg | e0290847eb0c345a9db681514c1adcf9269396c8 | [
"MIT"
] | 3 | 2019-06-30T14:51:56.000Z | 2020-02-14T19:17:23.000Z | src/REPL/Command/Match.cpp | SpencerMichaels/xendbg | e0290847eb0c345a9db681514c1adcf9269396c8 | [
"MIT"
] | 14 | 2019-01-28T07:11:23.000Z | 2021-06-14T13:33:12.000Z | //
// Copyright (C) 2018-2019 NCC Group
//
// 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, publ... | 31.830189 | 83 | 0.653626 | nccgroup |
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 |
1672231aec6c72c0744fc02d1906f9a9f9e9297f | 316 | cpp | C++ | runtime/pass/ContextAnalysis.cpp | Wheest/atJIT | 7e29862db7b5eb9cee470edeb165380f881903c9 | [
"BSD-3-Clause"
] | 47 | 2018-08-03T09:15:08.000Z | 2022-02-14T07:06:12.000Z | runtime/pass/ContextAnalysis.cpp | Wheest/atJIT | 7e29862db7b5eb9cee470edeb165380f881903c9 | [
"BSD-3-Clause"
] | 15 | 2018-06-18T19:50:50.000Z | 2019-08-29T16:52:11.000Z | runtime/pass/ContextAnalysis.cpp | Wheest/atJIT | 7e29862db7b5eb9cee470edeb165380f881903c9 | [
"BSD-3-Clause"
] | 5 | 2018-08-28T02:35:44.000Z | 2021-11-01T06:54:51.000Z | #include <easy/runtime/RuntimePasses.h>
using namespace llvm;
using namespace easy;
char easy::ContextAnalysis::ID = 0;
llvm::Pass* easy::createContextAnalysisPass(std::shared_ptr<easy::Context> C) {
return new ContextAnalysis(std::move(C));
}
static RegisterPass<easy::ContextAnalysis> X("", "", true, true);
| 24.307692 | 79 | 0.740506 | Wheest |
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 |
167c5dcbe25c27afb0aecd3c5dda990f34d22f29 | 45,499 | cc | C++ | apps/phone-call/phonecall_func.cc | zhiqiang-hu/cell-phone-ux-demo | 80df27f47bdf3318b60fe327890f868c3fe28969 | [
"Apache-2.0"
] | 13 | 2017-12-17T16:18:44.000Z | 2022-01-07T15:40:36.000Z | apps/phone-call/phonecall_func.cc | zhiqiang-hu/cell-phone-ux-demo | 80df27f47bdf3318b60fe327890f868c3fe28969 | [
"Apache-2.0"
] | null | null | null | apps/phone-call/phonecall_func.cc | zhiqiang-hu/cell-phone-ux-demo | 80df27f47bdf3318b60fe327890f868c3fe28969 | [
"Apache-2.0"
] | 8 | 2018-07-07T03:08:33.000Z | 2022-01-27T09:25:08.000Z | ///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.... | 35.518345 | 105 | 0.660608 | zhiqiang-hu |
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 |
16859bae680005ef9c5b767174458121a17b3063 | 3,820 | cc | C++ | src/converter/converter_regression_test.cc | google-admin/mozc | d0efe11cc6232c4e99371c19d2e02303ba889233 | [
"BSD-3-Clause"
] | null | null | null | src/converter/converter_regression_test.cc | google-admin/mozc | d0efe11cc6232c4e99371c19d2e02303ba889233 | [
"BSD-3-Clause"
] | null | null | null | src/converter/converter_regression_test.cc | google-admin/mozc | d0efe11cc6232c4e99371c19d2e02303ba889233 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2010-2021, Google 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... | 36.730769 | 80 | 0.756021 | google-admin |
168a0040034c92b44f4d34d6c41c4f370d3ff330 | 587 | cpp | C++ | zoom/canonical.cpp | indexgeo/yazpp | e2de35b08a9cb2aeca511bfe39e61c3c5b67b9d0 | [
"BSD-3-Clause"
] | 3 | 2018-09-14T11:02:44.000Z | 2020-10-07T21:48:21.000Z | zoom/canonical.cpp | indexgeo/yazpp | e2de35b08a9cb2aeca511bfe39e61c3c5b67b9d0 | [
"BSD-3-Clause"
] | null | null | null | zoom/canonical.cpp | indexgeo/yazpp | e2de35b08a9cb2aeca511bfe39e61c3c5b67b9d0 | [
"BSD-3-Clause"
] | 3 | 2016-01-29T08:02:22.000Z | 2017-02-14T10:23:23.000Z | /* g++ -g -o canonical canonical.cpp -lyaz++ -lyaz -lxml2 */
#include <iostream>
#include <yaz++/zoom.h>
using namespace ZOOM;
int main(int argc, char **argv)
{
connection conn("lx2.loc.gov", 210);
conn.option("databaseName", "LCDB");
conn.option("preferredRecordSyntax", "USMARC");
resultSet rs(conn,... | 22.576923 | 60 | 0.640545 | indexgeo |
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 |
168c5e0c9c9aefd0d15b3bdd7d521e1917a5f2fc | 1,585 | cpp | C++ | src/numeric_overflow.cpp | prasertcbs/C_plus_plus | d2ad3665506e861e7664710971b361ed0e023a8c | [
"MIT"
] | null | null | null | src/numeric_overflow.cpp | prasertcbs/C_plus_plus | d2ad3665506e861e7664710971b361ed0e023a8c | [
"MIT"
] | null | null | null | src/numeric_overflow.cpp | prasertcbs/C_plus_plus | d2ad3665506e861e7664710971b361ed0e023a8c | [
"MIT"
] | null | null | null | // numeric overflow
// ex. https://arstechnica.com/information-technology/2014/12/gangnam-style-overflows-int_max-forces-youtube-to-go-64-bit/
#include <iostream>
#include <limits> // to find min, max values of data types
#include <cmath> // to use pow() function
#include <bitset> // to print binary number
using name... | 37.738095 | 122 | 0.605047 | prasertcbs |
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 |
16988c3e07be73bc3d520b058bc1391636533902 | 1,663 | cpp | C++ | src/tests/main.cpp | benh/twesos | 194e1976d474005d807f37e7204ea08766e4b42a | [
"BSD-3-Clause"
] | 1 | 2019-02-17T15:56:26.000Z | 2019-02-17T15:56:26.000Z | src/tests/main.cpp | benh/twesos | 194e1976d474005d807f37e7204ea08766e4b42a | [
"BSD-3-Clause"
] | null | null | null | src/tests/main.cpp | benh/twesos | 194e1976d474005d807f37e7204ea08766e4b42a | [
"BSD-3-Clause"
] | 3 | 2017-07-10T07:28:30.000Z | 2020-07-25T19:48:07.000Z | #include <glog/logging.h>
#include <gtest/gtest.h>
#include <libgen.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include "testing_utils.hpp"
#include "common/fatal.hpp"
#include "configurator/configurator.hpp"
using namespace mesos::internal;
using namespace mesos::internal::test;
namespace {
... | 28.186441 | 76 | 0.719784 | benh |
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 |
169977495cb8e6861436c9b8b5ca9e435815dd5d | 1,093 | cpp | C++ | Codeforces/Gym100889D.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Codeforces/Gym100889D.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Codeforces/Gym100889D.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <bits/stdc++.h>
#define MAXN 2000010
using namespace std;
const long long M=1e9+7;
int T,n,m,prime[MAXN],tot;
long long fac[MAXN],inv[MAXN],invfac[MAXN];
bool not_prime[MAXN];
inline void Sieve()
{
int n=2e6;
for (int i=2;i<=n;i++)
{
if (!not_prime[i]) prime[++tot]=i;
for (int j=1;i*prime[j]<=n;j++)
... | 17.918033 | 57 | 0.546203 | HeRaNO |
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 |
16a99c240a8c1823786c4c60cced12bd5401e5d4 | 103,675 | cpp | C++ | cxx4/ncVar.cpp | tkameyama/netcdf-cxx4 | c244f2de7818d9562eeadee548811872d4ac2975 | [
"NetCDF"
] | 93 | 2015-04-23T19:46:14.000Z | 2022-03-28T08:12:23.000Z | cxx4/ncVar.cpp | tkameyama/netcdf-cxx4 | c244f2de7818d9562eeadee548811872d4ac2975 | [
"NetCDF"
] | 90 | 2015-04-11T23:15:09.000Z | 2022-02-25T10:02:29.000Z | cxx4/ncVar.cpp | tkameyama/netcdf-cxx4 | c244f2de7818d9562eeadee548811872d4ac2975 | [
"NetCDF"
] | 59 | 2015-01-25T17:38:24.000Z | 2022-02-23T22:28:42.000Z | #include "ncVarAtt.h"
#include "ncDim.h"
#include "ncVar.h"
#include "ncGroup.h"
#include "ncCheck.h"
#include "ncException.h"
#include<netcdf.h>
using namespace std;
using namespace netCDF::exceptions;
namespace netCDF {
// Global comparator operator ==============
// comparator operator
bool operator<(const N... | 53.997396 | 189 | 0.736542 | tkameyama |
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 |
16ab559f2ab33a517b17c65a9ff1d6f7754d6c18 | 1,618 | cpp | C++ | venv/boost_1_73_0/libs/histogram/examples/guide_custom_accumulators_advanced.cpp | uosorio/heroku_face | 7d6465e71dba17a15d8edaef520adb2fcd09d91e | [
"Apache-2.0"
] | 188 | 2019-02-08T14:11:02.000Z | 2022-01-27T08:37:05.000Z | 3rdparty/boost_1_73_0/libs/histogram/examples/guide_custom_accumulators_advanced.cpp | qingkouwei/mediaones | cec475e1bfd5807b5351cc7e38d244ac5298ca16 | [
"MIT"
] | 186 | 2016-05-05T14:01:09.000Z | 2019-11-20T22:38:43.000Z | 3rdparty/boost_1_73_0/libs/histogram/examples/guide_custom_accumulators_advanced.cpp | qingkouwei/mediaones | cec475e1bfd5807b5351cc7e38d244ac5298ca16 | [
"MIT"
] | 43 | 2019-02-09T16:16:55.000Z | 2022-01-25T20:24:36.000Z | // Copyright 2019 Hans Dembinski
//
// 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)
//[ guide_custom_accumulators_advanced
#include <boost/format.hpp>
#include <boost/histogram.hpp>
#include <iostream>
#include... | 30.528302 | 90 | 0.623609 | uosorio |
16ac06a946869f05185c846abe524d4788a7399e | 29,035 | cc | C++ | src/ballistica/python/class/python_class_material.cc | Benefit-Zebra/ballistica | eb85df82cff22038e74a2d93abdcbe9cd755d782 | [
"MIT"
] | null | null | null | src/ballistica/python/class/python_class_material.cc | Benefit-Zebra/ballistica | eb85df82cff22038e74a2d93abdcbe9cd755d782 | [
"MIT"
] | null | null | null | src/ballistica/python/class/python_class_material.cc | Benefit-Zebra/ballistica | eb85df82cff22038e74a2d93abdcbe9cd755d782 | [
"MIT"
] | null | null | null | // Released under the MIT License. See LICENSE for details.
#include "ballistica/python/class/python_class_material.h"
#include "ballistica/dynamics/material/impact_sound_material_action.h"
#include "ballistica/dynamics/material/material.h"
#include "ballistica/dynamics/material/material_component.h"
#include "ballis... | 40.214681 | 80 | 0.634786 | Benefit-Zebra |
16b03c60f3c722000fc79ede31fa65f040176794 | 266 | cpp | C++ | hamming-distance/Solution2.cpp | marcos-sb/leetcode | 35369f5cd9e84d3339343080087e32ec1264f410 | [
"Apache-2.0"
] | 1 | 2019-10-07T15:58:39.000Z | 2019-10-07T15:58:39.000Z | hamming-distance/Solution2.cpp | marcos-sb/leetcode | 35369f5cd9e84d3339343080087e32ec1264f410 | [
"Apache-2.0"
] | null | null | null | hamming-distance/Solution2.cpp | marcos-sb/leetcode | 35369f5cd9e84d3339343080087e32ec1264f410 | [
"Apache-2.0"
] | null | null | null | class Solution2 {
public:
int hammingDistance(int x, int y) {
int count = 0;
int diff = x ^ y;
int mask = 1;
while(diff > 0) {
if(diff & mask) count++;
diff >>= 1;
}
return count;
}
};
| 17.733333 | 39 | 0.424812 | marcos-sb |
16b134c8c7f46ce0ae27fbca44c4fc748ed6d916 | 5,703 | cc | C++ | services/video_capture/public/interfaces/device_descriptor_struct_traits.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | services/video_capture/public/interfaces/device_descriptor_struct_traits.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | services/video_capture/public/interfaces/device_descriptor_struct_traits.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/video_capture/public/interfaces/device_descriptor_struct_traits.h"
namespace mojo {
// static
video_capture::mojom::VideoCaptureApi
E... | 40.161972 | 85 | 0.742241 | google-ar |
16b33500d7a4b5157cfb2a9e3712eee37cb3f193 | 23,355 | cpp | C++ | src/ClusterRGB.cpp | ArcGIS/lepcc | 5cbf22fe4aaf2d35263782db1f6b8b2ca7f41b40 | [
"Apache-2.0"
] | 23 | 2018-03-15T20:14:43.000Z | 2022-01-18T15:10:02.000Z | src/ClusterRGB.cpp | ArcGIS/lepcc | 5cbf22fe4aaf2d35263782db1f6b8b2ca7f41b40 | [
"Apache-2.0"
] | 3 | 2018-09-06T23:56:27.000Z | 2021-09-10T01:06:07.000Z | src/ClusterRGB.cpp | ArcGIS/lepcc | 5cbf22fe4aaf2d35263782db1f6b8b2ca7f41b40 | [
"Apache-2.0"
] | 9 | 2018-08-28T20:36:57.000Z | 2021-11-01T06:30:55.000Z | /*
Copyright 2016 Esri
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, software
dist... | 28.037215 | 116 | 0.56352 | ArcGIS |
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 |
16bf682a8fd632322155badfd9a624fe0545db34 | 3,407 | cpp | C++ | third_party/CppADCodeGen/test/cppad/cg/patterns/cross_iteration.cpp | eric-heiden/tds-merge | 1e18447b0096efbb6df5d9ad7d69c8b0cc282747 | [
"Apache-2.0"
] | null | null | null | third_party/CppADCodeGen/test/cppad/cg/patterns/cross_iteration.cpp | eric-heiden/tds-merge | 1e18447b0096efbb6df5d9ad7d69c8b0cc282747 | [
"Apache-2.0"
] | null | null | null | third_party/CppADCodeGen/test/cppad/cg/patterns/cross_iteration.cpp | eric-heiden/tds-merge | 1e18447b0096efbb6df5d9ad7d69c8b0cc282747 | [
"Apache-2.0"
] | null | null | null | /* --------------------------------------------------------------------------
* CppADCodeGen: C++ Algorithmic Differentiation with Source Code Generation:
* Copyright (C) 2013 Ciengis
*
* CppADCodeGen is distributed under multiple licenses:
*
* - Eclipse Public License Version 1.0 (EPL1), and
* - GNU Ge... | 26.617188 | 85 | 0.533314 | eric-heiden |
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 |
16c6da7292c0fd8129bbb1a04f152b337f5a375c | 15,168 | cpp | C++ | snake-omp/main.cpp | jeffhammond/HeCBench | 926ad2a2d760d189008f637a52c24e0f30d31946 | [
"BSD-3-Clause"
] | 58 | 2020-08-06T18:53:44.000Z | 2021-10-01T07:59:46.000Z | snake-omp/main.cpp | jeffhammond/HeCBench | 926ad2a2d760d189008f637a52c24e0f30d31946 | [
"BSD-3-Clause"
] | 2 | 2020-12-04T12:35:02.000Z | 2021-03-04T22:49:25.000Z | snake-omp/main.cpp | jeffhammond/HeCBench | 926ad2a2d760d189008f637a52c24e0f30d31946 | [
"BSD-3-Clause"
] | 13 | 2020-08-19T13:44:18.000Z | 2021-09-08T04:25:34.000Z | /*
* Copyright (c) <2017 - 2020>, ETH Zurich and Bilkent University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice... | 33.557522 | 182 | 0.516152 | jeffhammond |
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 |
16d2ba13fc0d169b85e5e7aefbfdeb3f7ce6cbb9 | 2,411 | cpp | C++ | Main/RobotPoseQt/floatarrayframe.cpp | hpbader42/Klampt | 89faaef942c0c6fca579a3770314c6610e2ac772 | [
"BSD-3-Clause"
] | 238 | 2015-01-09T15:21:27.000Z | 2022-03-30T22:48:45.000Z | Main/RobotPoseQt/floatarrayframe.cpp | hpbader42/Klampt | 89faaef942c0c6fca579a3770314c6610e2ac772 | [
"BSD-3-Clause"
] | 89 | 2015-08-26T16:56:42.000Z | 2022-03-29T23:45:46.000Z | Main/RobotPoseQt/floatarrayframe.cpp | hpbader42/Klampt | 89faaef942c0c6fca579a3770314c6610e2ac772 | [
"BSD-3-Clause"
] | 84 | 2015-01-10T18:41:52.000Z | 2022-03-30T03:32:50.000Z | #include "floatarrayframe.h"
#include "ui_floatarrayframe.h"
#include <iostream>
using namespace std;
FloatArrayFrame::FloatArrayFrame(ResourceFrame* _frame,QWidget *parent)
:QGroupBox(parent),
resource(NULL),
frame(_frame),
ui(new Ui::FloatArrayFrame)
{
ui->setupUi(this);
}
void FloatArrayFrame::set(Fl... | 24.85567 | 71 | 0.666528 | hpbader42 |
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 |
16d5304ea3611b73add7e09aaa9aa7d46d8f21ba | 27,541 | cxx | C++ | admin/netui/shell/enum/wnetenum.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/netui/shell/enum/wnetenum.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/netui/shell/enum/wnetenum.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /**********************************************************************/
/** Microsoft Windows/NT **/
/** Copyright(c) Microsoft Corp., 1991 **/
/**********************************************************************/
/*
WNETENUM.CXX
... | 32.43934 | 110 | 0.48081 | npocmaka |
16d785a0b0b6666fc3a2d9598d015c24478537ec | 5,375 | cc | C++ | tensorflow_serving/servables/caffe/caffe_session_bundle.cc | rayglover-ibm/serving-caffe | 7dfc79fe42c06397c22a371fe67913a29a27e625 | [
"Apache-2.0"
] | 48 | 2016-10-31T08:16:29.000Z | 2021-03-25T08:49:24.000Z | tensorflow_serving/servables/caffe/caffe_session_bundle.cc | rayglover-ibm/serving-caffe | 7dfc79fe42c06397c22a371fe67913a29a27e625 | [
"Apache-2.0"
] | 12 | 2016-06-14T16:35:51.000Z | 2019-03-13T14:08:34.000Z | tensorflow_serving/servables/caffe/caffe_session_bundle.cc | rayglover-ibm/serving-caffe | 7dfc79fe42c06397c22a371fe67913a29a27e625 | [
"Apache-2.0"
] | 18 | 2016-08-30T10:30:50.000Z | 2018-02-12T05:51:49.000Z | /*
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, software
distributed under the License ... | 34.455128 | 80 | 0.700465 | rayglover-ibm |
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 |
16d8f0aff39b6f2da129ebe7fd78c2c0e7cc6ea9 | 502 | cpp | C++ | vnext/Microsoft.ReactNative/Views/PaperShadowNode.cpp | terrorizer1980/react-native-windows | f656ccde6064dcff187240ee37220cbe26c3708a | [
"MIT"
] | 9,106 | 2019-05-06T21:04:22.000Z | 2022-03-31T11:32:09.000Z | vnext/Microsoft.ReactNative/Views/PaperShadowNode.cpp | sjalim/react-native-windows | 04e766ef7304d0852a06e772cbfc1982897a3808 | [
"MIT"
] | 5,657 | 2019-05-06T21:11:29.000Z | 2022-03-31T22:11:58.000Z | vnext/Microsoft.ReactNative/Views/PaperShadowNode.cpp | sjalim/react-native-windows | 04e766ef7304d0852a06e772cbfc1982897a3808 | [
"MIT"
] | 727 | 2019-05-06T21:06:55.000Z | 2022-03-31T21:49:11.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "Views/PaperShadowNode.h"
namespace Microsoft::ReactNative {
ShadowNode::~ShadowNode() {}
void ShadowNode::dispatchCommand(
const std::string &commandId,
winrt::Microsoft::ReactNative::JSValueArray &&commandArgs) ... | 26.421053 | 90 | 0.731076 | terrorizer1980 |
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 |
16e686c5373e5cd8974ef03a3f5f01e9ec49ac66 | 741 | cpp | C++ | test/nmea/Test_nmea_waypoint.cpp | mfkiwl/marnav | 53a1c987bf72d48df134c12dd1edc44d7f230921 | [
"BSD-4-Clause"
] | 62 | 2015-07-20T03:24:21.000Z | 2022-03-30T10:39:24.000Z | test/nmea/Test_nmea_waypoint.cpp | mfkiwl/marnav | 53a1c987bf72d48df134c12dd1edc44d7f230921 | [
"BSD-4-Clause"
] | 37 | 2016-03-30T05:38:32.000Z | 2021-12-26T18:11:38.000Z | test/nmea/Test_nmea_waypoint.cpp | mfkiwl/marnav | 53a1c987bf72d48df134c12dd1edc44d7f230921 | [
"BSD-4-Clause"
] | 39 | 2015-07-20T03:15:44.000Z | 2022-02-03T07:32:23.000Z | #include <marnav/nmea/waypoint.hpp>
#include <gtest/gtest.h>
namespace
{
using namespace marnav;
class Test_nmea_waypoint : public ::testing::Test
{
};
TEST_F(Test_nmea_waypoint, default_construction)
{
nmea::waypoint wp;
EXPECT_EQ(0u, wp.size());
EXPECT_TRUE(wp.empty());
EXPECT_STREQ("", wp.c_str());
}
TEST_F... | 15.765957 | 57 | 0.717949 | mfkiwl |
16e9059bdf585407db664ea77fbda7455c25e826 | 10,327 | cc | C++ | ash/common/devtools/ash_devtools_dom_agent.cc | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | ash/common/devtools/ash_devtools_dom_agent.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/common/devtools/ash_devtools_dom_agent.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/common/devtools/ash_devtools_dom_agent.h"
#include "ash/common/wm_lookup.h"
#include "ash/common/wm_window.h"
#include "components/ui_devto... | 37.014337 | 80 | 0.714535 | xzhan96 |
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 |
16f095a49d917c5f723009ffd6c4ef8f7f0004d7 | 11,690 | cpp | C++ | include/re/input/joystick_input.cpp | Chukobyte/learn-engine-dev | 3f4437ed4abab9011d584bdc0ab4eff921393f00 | [
"CC-BY-4.0",
"CC0-1.0"
] | 5 | 2021-08-13T01:53:59.000Z | 2022-01-23T18:50:17.000Z | include/re/input/joystick_input.cpp | Chukobyte/learn-engine-dev | 3f4437ed4abab9011d584bdc0ab4eff921393f00 | [
"CC-BY-4.0",
"CC0-1.0"
] | null | null | null | include/re/input/joystick_input.cpp | Chukobyte/learn-engine-dev | 3f4437ed4abab9011d584bdc0ab4eff921393f00 | [
"CC-BY-4.0",
"CC0-1.0"
] | null | null | null | #include "joystick_input.h"
JoystickInput::JoystickInput() : logger(Logger::GetInstance()) {}
JoystickInput::~JoystickInput() {
SDL_JoystickClose(joystickController);
SDL_GameControllerClose(gameController);
}
void JoystickInput::ProcessButtonPress(InputEvent &inputEvent) {
const std::string &buttonValue... | 50.387931 | 125 | 0.735672 | Chukobyte |
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 |
a8442967a4b999bce6b62485ab930b954feed50d | 2,001 | cc | C++ | zircon/system/ulib/io-scheduler/stream.cc | OpenTrustGroup/fuchsia | 647e593ea661b8bf98dcad2096e20e8950b24a97 | [
"BSD-3-Clause"
] | 1 | 2019-04-21T18:02:26.000Z | 2019-04-21T18:02:26.000Z | zircon/system/ulib/io-scheduler/stream.cc | OpenTrustGroup/fuchsia | 647e593ea661b8bf98dcad2096e20e8950b24a97 | [
"BSD-3-Clause"
] | 16 | 2020-09-04T19:01:11.000Z | 2021-05-28T03:23:09.000Z | zircon/system/ulib/io-scheduler/stream.cc | OpenTrustGroup/fuchsia | 647e593ea661b8bf98dcad2096e20e8950b24a97 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <io-scheduler/stream.h>
#include <io-scheduler/io-scheduler.h>
#include <fbl/auto_lock.h>
namespace ioscheduler {
Stream::Stream(uint32_t id, u... | 25.329114 | 73 | 0.682659 | OpenTrustGroup |