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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28d64eea4e63951387dac634b5f96eeae38f0569 | 1,753 | cpp | C++ | hash table/36 Valid Sudoku.cpp | CoderQuinnYoung/leetcode | 6ea15c68124b16824bab9ed2e0e5a40c72eb3db1 | [
"BSD-3-Clause"
] | null | null | null | hash table/36 Valid Sudoku.cpp | CoderQuinnYoung/leetcode | 6ea15c68124b16824bab9ed2e0e5a40c72eb3db1 | [
"BSD-3-Clause"
] | null | null | null | hash table/36 Valid Sudoku.cpp | CoderQuinnYoung/leetcode | 6ea15c68124b16824bab9ed2e0e5a40c72eb3db1 | [
"BSD-3-Clause"
] | null | null | null | //
// 36 Valid Sudoku.cpp
// Leetcode
//
// Created by Quinn on 2020/8/12.
// Copyright © 2020 Quinn. All rights reserved.
//
#include <vector>
#include <unordered_map>
using namespace std;
class Solution {
public:
bool isValidSudoku(vector<vector<char>>& board) {
bool state[10];
for(... | 25.042857 | 62 | 0.302339 | CoderQuinnYoung |
28d77e9564225e08a0bc5085c7bc8bd52f15bbb5 | 508 | cpp | C++ | Framerate.cpp | Mac21/pillpopper | 6941d0a5cb32e326da2ecf47dc3b9a1e4272af59 | [
"MIT"
] | null | null | null | Framerate.cpp | Mac21/pillpopper | 6941d0a5cb32e326da2ecf47dc3b9a1e4272af59 | [
"MIT"
] | null | null | null | Framerate.cpp | Mac21/pillpopper | 6941d0a5cb32e326da2ecf47dc3b9a1e4272af59 | [
"MIT"
] | null | null | null | #include "Framerate.hpp"
Framerate::Framerate() {
sf::Font f;
if (!f.loadFromFile("assets/Ubuntu-R.ttf")) {
std::cout << "Failed to load font file\n";
exit(EXIT_FAILURE);
}
font = f;
sf::Text t;
t.setFont(font);
t.setString("Framerate: 0");
fontText = t;
}
void Framerate::update(sf... | 18.142857 | 73 | 0.625984 | Mac21 |
28da08917b6d6495624924bd1d887fe6279b86f5 | 16,177 | cpp | C++ | components/ESC/src/FuelGauge.cpp | xmrhaelan/turpial-firmware | 1ac3fd01448e2bf1061cb67f47d20d12d9b2e13c | [
"Apache-2.0"
] | null | null | null | components/ESC/src/FuelGauge.cpp | xmrhaelan/turpial-firmware | 1ac3fd01448e2bf1061cb67f47d20d12d9b2e13c | [
"Apache-2.0"
] | null | null | null | components/ESC/src/FuelGauge.cpp | xmrhaelan/turpial-firmware | 1ac3fd01448e2bf1061cb67f47d20d12d9b2e13c | [
"Apache-2.0"
] | null | null | null | /**
* @file FuelGauge.cpp
* @author Locha Mesh project developers (locha.io)
* @brief
* @version 0.1
* @date 2019-12-17
*
* @copyright Copyright (c) 2019 Locha Mesh project
*
*/
#include "FuelGauge.h"
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <esp_err.h>
#include <esp_log.h>
#includ... | 25.718601 | 80 | 0.653706 | xmrhaelan |
28e2d2bced7f8c72830745b9c24350a9c874dccd | 14,709 | cpp | C++ | Dependencies/Angelscript/source/as_callfunc_x64_gcc.cpp | CyberSys/ogitor | ef907e1cec77c397f809fa31b2a83cca733108e9 | [
"MIT"
] | 303 | 2015-07-11T17:12:55.000Z | 2018-01-08T03:02:37.000Z | Dependencies/Angelscript/source/as_callfunc_x64_gcc.cpp | CyberSys/ogitor | ef907e1cec77c397f809fa31b2a83cca733108e9 | [
"MIT"
] | 39 | 2017-04-08T09:01:47.000Z | 2021-10-10T12:15:57.000Z | Dependencies/Angelscript/source/as_callfunc_x64_gcc.cpp | CyberSys/ogitor | ef907e1cec77c397f809fa31b2a83cca733108e9 | [
"MIT"
] | 45 | 2017-01-07T08:25:29.000Z | 2021-11-03T08:44:07.000Z | /*
AngelCode Scripting Library
Copyright (c) 2003-2014 Andreas Jonsson
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.
Permission is granted to anyone to use this software f... | 30.64375 | 140 | 0.656129 | CyberSys |
28e3e755cd2fa347658d818599f0150fdd64f942 | 1,071 | cpp | C++ | Source/Common/Android/utils_android.cpp | marswe/libHttpClient | c027c9a5f4babef09d5670a1ec00f2c197adb7db | [
"MIT"
] | 2 | 2018-12-25T03:09:22.000Z | 2021-04-08T13:43:46.000Z | Source/Common/Android/utils_android.cpp | marswe/libHttpClient | c027c9a5f4babef09d5670a1ec00f2c197adb7db | [
"MIT"
] | null | null | null | Source/Common/Android/utils_android.cpp | marswe/libHttpClient | c027c9a5f4babef09d5670a1ec00f2c197adb7db | [
"MIT"
] | 2 | 2020-12-21T09:05:10.000Z | 2021-07-20T01:22:34.000Z | // Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "utils_android.h"
#include "../HTTP/Android/android_platform_context.h"
NAMESPACE_XBOX_HTTP_CLIENT_BEGIN
JNIEnv* get_jvm_env()
{
auto httpSingleto... | 30.6 | 135 | 0.715219 | marswe |
28e5e070f347193bfa1429bad87a6a9d7bbed87d | 13,344 | cpp | C++ | lsteamclient/cppISteamFriends_SteamFriends012.cpp | Miouyouyou/Proton | 72499898a7da4b3d17c748e308b50d9347f4b370 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-09-29T02:03:45.000Z | 2019-09-29T02:03:45.000Z | lsteamclient/cppISteamFriends_SteamFriends012.cpp | Miouyouyou/Proton | 72499898a7da4b3d17c748e308b50d9347f4b370 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | lsteamclient/cppISteamFriends_SteamFriends012.cpp | Miouyouyou/Proton | 72499898a7da4b3d17c748e308b50d9347f4b370 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | #include "steam_defs.h"
#include "steamworks_sdk_119x/steam_api.h"
#include "steamclient_private.h"
#include "cppISteamFriends_SteamFriends012.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "struct_converters_119x.h"
const char * cppISteamFriends_SteamFriends012_GetPersonaName(void *linux_side)
{
return ((IStea... | 40.807339 | 183 | 0.822842 | Miouyouyou |
28e98636a33b89d3480185b66511584b7bd2475e | 1,782 | cpp | C++ | implementations/Segtree2.cpp | LeoRiether/Competicao-Programativa | ad5bd4eba58792ad1ce7057fdf9fa6ef8970b17e | [
"MIT"
] | 1 | 2019-12-15T22:23:20.000Z | 2019-12-15T22:23:20.000Z | implementations/Segtree2.cpp | LeoRiether/Competicao-Programativa | ad5bd4eba58792ad1ce7057fdf9fa6ef8970b17e | [
"MIT"
] | null | null | null | implementations/Segtree2.cpp | LeoRiether/Competicao-Programativa | ad5bd4eba58792ad1ce7057fdf9fa6ef8970b17e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
using vi = vector<int>;
#define LEFT(i) 2*i+1
#define RIGHT(i) 2*i+2
int getSTSize(int x) {
return 1<<int(ceil(log2(x))+1);
}
struct Segtree {
int n;
vi data, lazy;
Segtree(int n) : n(n) {
int s = getSTSize(n... | 19.582418 | 64 | 0.446689 | LeoRiether |
28ea2b0d11dbb9467d83fc08a5e444619dcd0edc | 12,899 | cc | C++ | test/t_api.cc | yuex1994/iw_ilang | e31ffdca4e2c6503804e229b54a44211eb214980 | [
"MIT"
] | null | null | null | test/t_api.cc | yuex1994/iw_ilang | e31ffdca4e2c6503804e229b54a44211eb214980 | [
"MIT"
] | null | null | null | test/t_api.cc | yuex1994/iw_ilang | e31ffdca4e2c6503804e229b54a44211eb214980 | [
"MIT"
] | null | null | null | /// \file
/// Unit test for c++ API
#include "unit-include/config.h"
#include "unit-include/eq_ilas.h"
#include "unit-include/simple_cpu.h"
#include "unit-include/util.h"
#include <ilang/ilang++.h>
#include <vector>
#define REG_NUM 16
#define REG_SIZE 8
namespace ilang {
TEST(TestApi, LogicShift) {
auto c = BvCon... | 27.503198 | 74 | 0.667726 | yuex1994 |
28eb79f9570331643522c81991e661346f6a2414 | 996 | hpp | C++ | include/roq/utils/number.hpp | roq-trading/api | a5910c88df3759496957d7b9748cf6c1364e8bec | [
"MIT"
] | null | null | null | include/roq/utils/number.hpp | roq-trading/api | a5910c88df3759496957d7b9748cf6c1364e8bec | [
"MIT"
] | null | null | null | include/roq/utils/number.hpp | roq-trading/api | a5910c88df3759496957d7b9748cf6c1364e8bec | [
"MIT"
] | null | null | null | /* Copyright (c) 2017-2022, Hans Erik Thrane */
#pragma once
#include <fmt/format.h>
#include "roq/decimals.hpp"
#include "roq/utils/common.hpp"
namespace roq {
namespace utils {
struct Number final {
Number() = default;
Number(double value, Decimals decimals) : value(value), decimals(decimals) {}
const do... | 24.9 | 111 | 0.685743 | roq-trading |
28ecf97b9bd3d3b084553cd98643e3b25c4d6f87 | 1,128 | hpp | C++ | src/pipemode_op/test/testRecordReader/TestTFRecordReader.hpp | laurenyu/sagemaker-tensorflow-extensions | 14d15e7a292926a69aa590cad3fd2c9d68bd7df5 | [
"Apache-2.0"
] | 43 | 2018-07-18T20:07:11.000Z | 2022-02-19T20:38:58.000Z | src/pipemode_op/test/testRecordReader/TestTFRecordReader.hpp | laurenyu/sagemaker-tensorflow-extensions | 14d15e7a292926a69aa590cad3fd2c9d68bd7df5 | [
"Apache-2.0"
] | 91 | 2018-07-28T17:55:08.000Z | 2022-02-23T22:09:14.000Z | src/pipemode_op/test/testRecordReader/TestTFRecordReader.hpp | laurenyu/sagemaker-tensorflow-extensions | 14d15e7a292926a69aa590cad3fd2c9d68bd7df5 | [
"Apache-2.0"
] | 53 | 2018-07-18T20:07:15.000Z | 2022-02-07T22:47:06.000Z |
#ifndef SRC_PIPEMODE_OP_TEST_TESTRECORDREADER_TESTTFRECORDREADER_HPP_
#define SRC_PIPEMODE_OP_TEST_TESTRECORDREADER_TESTTFRECORDREADER_HPP_
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You
// may not use this file exce... | 31.333333 | 74 | 0.764184 | laurenyu |
28eff6aa924b1ece0bf63d7e5b958956e467cee4 | 7,812 | cpp | C++ | IvyProjects/GLTestApp/Particles.cpp | endy/Ivy | 23d5a61d34793c74527ef803bf3693df79291539 | [
"MIT"
] | null | null | null | IvyProjects/GLTestApp/Particles.cpp | endy/Ivy | 23d5a61d34793c74527ef803bf3693df79291539 | [
"MIT"
] | null | null | null | IvyProjects/GLTestApp/Particles.cpp | endy/Ivy | 23d5a61d34793c74527ef803bf3693df79291539 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////////////////////
///
/// Ivy Engine - Generic OpenGL Test App
///
/// Copyright 2010-2012, Brandon Light
/// All rights reserved.
///
///////////////////////////////////////////////////////////////////////////////////////////... | 32.686192 | 132 | 0.64913 | endy |
28f250ef07d37c533c06837ed623cf5f50961916 | 574 | hpp | C++ | cpp/StringTokenize.hpp | sigurdstorve/supersplines | a49cac9f7e166b660fb1da688f9bf5d90f05dcdb | [
"BSL-1.0"
] | 2 | 2020-01-07T02:40:42.000Z | 2022-03-21T07:09:08.000Z | cpp/StringTokenize.hpp | sigurdstorve/supersplines | a49cac9f7e166b660fb1da688f9bf5d90f05dcdb | [
"BSL-1.0"
] | null | null | null | cpp/StringTokenize.hpp | sigurdstorve/supersplines | a49cac9f7e166b660fb1da688f9bf5d90f05dcdb | [
"BSL-1.0"
] | null | null | null | // RealtimeCppAV - Developed by Sigurd Storve (sigurd.storve@ntnu.no)
// This file contains convenience code to split ut a string.
#include <iostream>
#include <string>
#include <vector>
#include <boost/tokenizer.hpp>
inline std::vector<std::string> StringTokenize(const std::string& str, const std::string& separator... | 31.888889 | 103 | 0.691638 | sigurdstorve |
28f274927c371865b88c1547e9958a961eb18f79 | 900 | cpp | C++ | SurfaceReconstruction/SurfaceReconstruction/Refinement/RangedVertexIdx.cpp | pavelsevecek/TSR | ca411dedf178e5830f0536e361136f1e16751bc8 | [
"BSD-3-Clause"
] | 102 | 2017-10-17T10:10:59.000Z | 2022-01-19T02:10:29.000Z | SurfaceReconstruction/SurfaceReconstruction/Refinement/RangedVertexIdx.cpp | pavelsevecek/TSR | ca411dedf178e5830f0536e361136f1e16751bc8 | [
"BSD-3-Clause"
] | 2 | 2019-12-21T11:59:15.000Z | 2020-09-08T11:38:36.000Z | SurfaceReconstruction/SurfaceReconstruction/Refinement/RangedVertexIdx.cpp | pavelsevecek/TSR | ca411dedf178e5830f0536e361136f1e16751bc8 | [
"BSD-3-Clause"
] | 27 | 2017-10-18T09:37:34.000Z | 2022-03-22T01:30:51.000Z | /*
* Copyright (C) 2018 by Author: Aroudj, Samir
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the License.txt file for details.
*/
#include "SurfaceReconstruction/Ref... | 31.034483 | 102 | 0.752222 | pavelsevecek |
28f6077f0621e0f3888722288ef6893897f254dc | 4,587 | cpp | C++ | src/tracer/raytracer.cpp | NHollmann/CmdPathtracer | 6c6c0382948bb6ea547458f743937b70c090ca6c | [
"MIT"
] | null | null | null | src/tracer/raytracer.cpp | NHollmann/CmdPathtracer | 6c6c0382948bb6ea547458f743937b70c090ca6c | [
"MIT"
] | null | null | null | src/tracer/raytracer.cpp | NHollmann/CmdPathtracer | 6c6c0382948bb6ea547458f743937b70c090ca6c | [
"MIT"
] | null | null | null | #include "raytracer.hpp"
#include "../material/material.hpp"
#include <thread>
#include <atomic>
#include <vector>
namespace tracer
{
inline int colorFloatToInt(floating color)
{
return (int)(255.99f * color);
}
void raytraceSimple(output::ImageOutput* imageOut, world::WorldData* world, int w... | 35.55814 | 166 | 0.444953 | NHollmann |
28f7e38cdf423e4f4d40939d4cd0281c3ab77f91 | 743 | hpp | C++ | cudamapper/include/claragenomics/cudamapper/cudamapper.hpp | billchenxi/ClaraGenomicsAnalysis | 544effc5881560de6d316f39c47c87014da14d70 | [
"Apache-2.0"
] | 1 | 2020-01-21T09:07:02.000Z | 2020-01-21T09:07:02.000Z | cudamapper/include/claragenomics/cudamapper/cudamapper.hpp | billchenxi/ClaraGenomicsAnalysis | 544effc5881560de6d316f39c47c87014da14d70 | [
"Apache-2.0"
] | 1 | 2020-12-04T06:24:05.000Z | 2020-12-04T06:24:05.000Z | cudamapper/include/claragenomics/cudamapper/cudamapper.hpp | billchenxi/ClaraGenomicsAnalysis | 544effc5881560de6d316f39c47c87014da14d70 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software and ... | 23.21875 | 76 | 0.755047 | billchenxi |
28f9b9e02926d532e3f2f23ef65d52ad52ce8c44 | 4,673 | cpp | C++ | C++/Read_from_file/is_palindromic.cpp | juliafeingold/My-Cpp-programs | cbc7095082da25ce2a4f66d711d77af8d794206c | [
"Apache-2.0"
] | null | null | null | C++/Read_from_file/is_palindromic.cpp | juliafeingold/My-Cpp-programs | cbc7095082da25ce2a4f66d711d77af8d794206c | [
"Apache-2.0"
] | null | null | null | C++/Read_from_file/is_palindromic.cpp | juliafeingold/My-Cpp-programs | cbc7095082da25ce2a4f66d711d77af8d794206c | [
"Apache-2.0"
] | null | null | null | //libraries
#include <iostream>
#include <cstring>
#include <string>
using namespace std;
//Programmer defined functions
int myStrlen (char *s1);
void myStrcat (char *s1, char *s2);
void myStrcpy (char *s1, char *s2);
void myStrcat_BC (char *s1, char *s2, int SIZE);
bool isPalindromic (char *s1);
//main program
int ... | 22.906863 | 81 | 0.55168 | juliafeingold |
28fb599ed55c4df97dc288785db3a5542b41d361 | 227 | hpp | C++ | tutorials/SkipGram/TextDataSet_utils.hpp | ChanhyoLee/TextDataset | 397571f476a89ad42ef3ed77b82c76fc19ac3e33 | [
"Apache-2.0"
] | null | null | null | tutorials/SkipGram/TextDataSet_utils.hpp | ChanhyoLee/TextDataset | 397571f476a89ad42ef3ed77b82c76fc19ac3e33 | [
"Apache-2.0"
] | null | null | null | tutorials/SkipGram/TextDataSet_utils.hpp | ChanhyoLee/TextDataset | 397571f476a89ad42ef3ed77b82c76fc19ac3e33 | [
"Apache-2.0"
] | null | null | null | #ifndef __TEXT_DATA_SET_UTILS_HPP__
#define __TEXT_DATA_SET_UTILS_HPP__
#include "TextDataSet/ParalleledCorpusDataset.hpp"
#include "TextDataSet/SkipGramDataset.hpp"
#include "TextDataSet/FourTermAnalogyDataset.hpp"
#endif
| 20.636364 | 50 | 0.854626 | ChanhyoLee |
28fd9919f861eea6a1677447dc099d344721ee2f | 123 | cpp | C++ | triangle.cpp | Piain/GeoShapeCalculator | a102b2b3a1776c92b7220e4bedee733b954394f1 | [
"MIT"
] | 2 | 2021-11-27T17:40:05.000Z | 2021-11-28T07:22:36.000Z | triangle.cpp | Piain/GeoShapeCalculator | a102b2b3a1776c92b7220e4bedee733b954394f1 | [
"MIT"
] | null | null | null | triangle.cpp | Piain/GeoShapeCalculator | a102b2b3a1776c92b7220e4bedee733b954394f1 | [
"MIT"
] | null | null | null | #include "triangle.h"
float Triangle::Area()
{
return 0.5 * dim1 * dim2;
}
char Triangle::Type()
{
return 't';
}
| 10.25 | 29 | 0.585366 | Piain |
28fe3a0a51aaeea36b871c3a6099665a365a0e82 | 14,596 | hpp | C++ | Lib/Chip/CM4/STMicro/STM32L4x6/FLASH.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/CM4/STMicro/STM32L4x6/FLASH.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/CM4/STMicro/STM32L4x6/FLASH.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Flash
namespace FlashAcr{ ///<Access control register
using Addr = Register::Address<0x40022000,0xffff80f8,0x00000000,std::uint32_t>;
///Latency
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,0),Register:... | 75.237113 | 222 | 0.702042 | operativeF |
e90390da38c32e8c601412c45fe0b2b171107b1c | 1,161 | cpp | C++ | KMPSearch/main.cpp | Kapil706/GeeksForGeeks.Cpp- | 3251fe2caf29e485656626d758058bd968e50ae1 | [
"MIT"
] | 1 | 2019-07-31T16:47:51.000Z | 2019-07-31T16:47:51.000Z | KMPSearch/main.cpp | Kapil706/GeeksForGeeks.Cpp- | 3251fe2caf29e485656626d758058bd968e50ae1 | [
"MIT"
] | null | null | null | KMPSearch/main.cpp | Kapil706/GeeksForGeeks.Cpp- | 3251fe2caf29e485656626d758058bd968e50ae1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void ComputeLpsArray(string pat, int m, int*lps){
lps[0]=0;
int i=1;
int len=0;
while (i<m){
if(pat[i]==pat[len]){
len++;
lps[i]=len;
i++;
}
else{
if(len!=0){
len=lps[len-1];... | 13.5 | 49 | 0.342808 | Kapil706 |
e905bd6971c4717a7cd38b8b99a598ae100833b8 | 390 | hpp | C++ | src/widgets/settingspages/AccountsPage.hpp | devolution2409/chatterino2 | 978931bcfc40bae63f65c18e7a3274c77c0f45ca | [
"MIT"
] | null | null | null | src/widgets/settingspages/AccountsPage.hpp | devolution2409/chatterino2 | 978931bcfc40bae63f65c18e7a3274c77c0f45ca | [
"MIT"
] | null | null | null | src/widgets/settingspages/AccountsPage.hpp | devolution2409/chatterino2 | 978931bcfc40bae63f65c18e7a3274c77c0f45ca | [
"MIT"
] | null | null | null | #pragma once
#include "widgets/AccountSwitchWidget.hpp"
#include "widgets/settingspages/SettingsPage.hpp"
#include <QPushButton>
namespace chatterino {
class AccountsPage : public SettingsPage
{
public:
AccountsPage();
private:
QPushButton *addButton;
QPushButton *removeButton;
Acc... | 17.727273 | 50 | 0.720513 | devolution2409 |
e905e9b07d91960f9659ef9fe7291a47d8ede80e | 424 | cpp | C++ | 1100/90/1196.cpp | actium/timus | 6231d9e7fd325cae36daf5ee2ec7e61381f04003 | [
"Unlicense"
] | null | null | null | 1100/90/1196.cpp | actium/timus | 6231d9e7fd325cae36daf5ee2ec7e61381f04003 | [
"Unlicense"
] | null | null | null | 1100/90/1196.cpp | actium/timus | 6231d9e7fd325cae36daf5ee2ec7e61381f04003 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <unordered_set>
int main()
{
unsigned n;
std::cin >> n;
std::unordered_set<unsigned> s;
while (n-- > 0) {
unsigned x;
std::cin >> x;
s.insert(x);
}
unsigned m;
std::cin >> m;
unsigned q = 0;
while (m-- > 0) {
unsigned ... | 13.25 | 35 | 0.441038 | actium |
e90a396e37cf316b800bb1638a672768528671b4 | 1,285 | hpp | C++ | hpx/traits/has_xxx.hpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2019-07-04T10:18:01.000Z | 2019-07-04T10:18:01.000Z | hpx/traits/has_xxx.hpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2018-04-20T14:17:33.000Z | 2018-04-20T14:17:33.000Z | hpx/traits/has_xxx.hpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2019-03-13T04:53:43.000Z | 2019-03-13T04:53:43.000Z | // Copyright (c) 2016 Agustin Berge
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef HPX_TRAITS_HAS_XXX_HPP
#define HPX_TRAITS_HAS_XXX_HPP
#include <hpx/util/always_void.hpp>
#include <hpx/util/de... | 40.15625 | 79 | 0.52607 | bremerm31 |
e90d6270cb1a7c77a3e59e11f2183b4f5a2aaeb8 | 2,237 | cc | C++ | tensorflow/compiler/mlir/lite/utils/variables_utils.cc | weikhor/tensorflow | ce047fc05c7b5ff54868ba53d724d9c171c4adbb | [
"Apache-2.0"
] | 10 | 2021-05-25T17:43:04.000Z | 2022-03-08T10:46:09.000Z | tensorflow/compiler/mlir/lite/utils/variables_utils.cc | CaptainGizzy21/tensorflow | 3457a2b122e50b4d44ceaaed5a663d635e5c22df | [
"Apache-2.0"
] | 1,056 | 2019-12-15T01:20:31.000Z | 2022-02-10T02:06:28.000Z | tensorflow/compiler/mlir/lite/utils/variables_utils.cc | CaptainGizzy21/tensorflow | 3457a2b122e50b4d44ceaaed5a663d635e5c22df | [
"Apache-2.0"
] | 6 | 2016-09-07T04:00:15.000Z | 2022-01-12T01:47:38.000Z | /* Copyright 2021 The TensorFlow Authors. 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 at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 39.245614 | 80 | 0.692892 | weikhor |
e90ded7a67d3e0d2b70ea29f3c88c62f3096cdb4 | 13,040 | cpp | C++ | tests/gtests/test_reorder.cpp | yzhliu/mkl-dnn | 3e1f8f53f6845dce23abf8089501c2eb45420b9e | [
"Apache-2.0"
] | 1 | 2021-04-05T19:16:20.000Z | 2021-04-05T19:16:20.000Z | tests/gtests/test_reorder.cpp | yzhliu/mkl-dnn | 3e1f8f53f6845dce23abf8089501c2eb45420b9e | [
"Apache-2.0"
] | null | null | null | tests/gtests/test_reorder.cpp | yzhliu/mkl-dnn | 3e1f8f53f6845dce23abf8089501c2eb45420b9e | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2016-2017 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://www.apa... | 48.838951 | 87 | 0.58796 | yzhliu |
e90e2e5d2bbae2764a68b6f7df88deb4231acee8 | 5,579 | cpp | C++ | Tudat/SimulationSetup/PropagationSetup/createStateDerivativeModel.cpp | different91988/tudat | 97b287fe759979cf2028c9180f0abafa2487dde4 | [
"BSD-3-Clause"
] | null | null | null | Tudat/SimulationSetup/PropagationSetup/createStateDerivativeModel.cpp | different91988/tudat | 97b287fe759979cf2028c9180f0abafa2487dde4 | [
"BSD-3-Clause"
] | null | null | null | Tudat/SimulationSetup/PropagationSetup/createStateDerivativeModel.cpp | different91988/tudat | 97b287fe759979cf2028c9180f0abafa2487dde4 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010-2018, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
*... | 51.183486 | 143 | 0.743861 | different91988 |
e912754c7a362cbcfffacfd153478740497bd4e7 | 210 | cpp | C++ | cpp_primer/01/1.4/printIntNumber_for.cpp | jo-ny/cplusplus_learn | d1a126b2d7efd0c7599785c14a25b6c7e1b19c73 | [
"Apache-2.0"
] | null | null | null | cpp_primer/01/1.4/printIntNumber_for.cpp | jo-ny/cplusplus_learn | d1a126b2d7efd0c7599785c14a25b6c7e1b19c73 | [
"Apache-2.0"
] | null | null | null | cpp_primer/01/1.4/printIntNumber_for.cpp | jo-ny/cplusplus_learn | d1a126b2d7efd0c7599785c14a25b6c7e1b19c73 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
int main(){
int start,end;
std::cout << "Enter start and end number:";
std::cin >> start >> end;
for (; start <= end; ++start){
std::cout << start << " ";
}
std::cout << std::endl;
}
| 19.090909 | 44 | 0.561905 | jo-ny |
e912d79a48ed51f65a29fc19c25ce0ebb7737135 | 10,434 | cpp | C++ | Level_9_HW/F_FiniteDifferenceMethods/F_FiniteDifferenceMethods/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_9_HW/F_FiniteDifferenceMethods/F_FiniteDifferenceMethods/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_9_HW/F_FiniteDifferenceMethods/F_FiniteDifferenceMethods/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | //
// main.cpp
// F_FiniteDifferenceMethods
//
// Created by Zhehao Li on 2020/5/27.
// Copyright © 2020 Zhehao Li. All rights reserved.
//
// F. Finite Difference Methods (Introduction)
#include "FDMDirector.hpp"
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
// Black Scholes names... | 33.549839 | 99 | 0.437512 | ZhehaoLi9705 |
e914b0504a4a37f31875d012cb9980fd92d63821 | 988 | hpp | C++ | engine/runtime/rendering/generator/axis_swap_shape.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 791 | 2016-11-04T14:13:41.000Z | 2022-03-20T20:47:31.000Z | engine/runtime/rendering/generator/axis_swap_shape.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 28 | 2016-12-01T05:59:30.000Z | 2021-03-20T09:49:26.000Z | engine/runtime/rendering/generator/axis_swap_shape.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 151 | 2016-12-21T09:44:43.000Z | 2022-03-31T13:42:18.000Z | #ifndef GENERATOR_AXISSWAPSHAPE_HPP
#define GENERATOR_AXISSWAPSHAPE_HPP
#include "transform_shape.hpp"
namespace generator
{
/// Swaps the x and y axis.
template <typename shape_t>
class axis_swap_shape_t
{
private:
using impl_t = transform_shape_t<shape_t>;
impl_t transform_shape_;
public:
/// @param shape Sour... | 19.76 | 67 | 0.733806 | ValtoForks |
e914c30bd57cf84a2460967272810126e63625c0 | 5,990 | cpp | C++ | NoFTL_v1.0/shoreMT/src/sm/pax-tests/sm_hash.cpp | DBlabRT/NoFTL | cba8b5a6d9c422bdd39b01575244e557cbd12e43 | [
"Unlicense"
] | 4 | 2019-01-24T02:00:23.000Z | 2021-03-17T11:56:59.000Z | NoFTL_v1.0/shoreMT/src/sm/pax-tests/sm_hash.cpp | DBlabRT/NoFTL | cba8b5a6d9c422bdd39b01575244e557cbd12e43 | [
"Unlicense"
] | null | null | null | NoFTL_v1.0/shoreMT/src/sm/pax-tests/sm_hash.cpp | DBlabRT/NoFTL | cba8b5a6d9c422bdd39b01575244e557cbd12e43 | [
"Unlicense"
] | 4 | 2019-01-22T10:35:55.000Z | 2021-03-17T11:57:23.000Z | /////////////////////////////////////////////////////////
// memory hash table to be used in hash join.
///////////////////////////////////////////////////////
#include "sm_hash.h"
// import the hash function from stringhash.C
w_base_t::uint4_t hash(const char *p) {
//FUNC(hash(char *));
const char *c=p;
... | 24.54918 | 96 | 0.546912 | DBlabRT |
e915a52d0863d1963ed11820027f9e01f5e1a972 | 8,424 | cpp | C++ | Libraries/Editor/ColorScheme.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 1 | 2019-07-13T03:36:11.000Z | 2019-07-13T03:36:11.000Z | Libraries/Editor/ColorScheme.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Editor/ColorScheme.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
namespace Zero
{
namespace Events
{
DefineEvent(ColorSchemeChanged);
}
void GetStringsTextConfig(HandleParam instance, Property* property, Array<String>& strings)
{
ColorScheme* colorScheme = instance.Get<ColorScheme*>();
forRange (auto& scheme, colorS... | 32.152672 | 117 | 0.757597 | RyanTylerRae |
e915d58ddc52be378b67ad716cf8dfdf39d03f45 | 641 | cpp | C++ | lab_01/month.cpp | srafi1/csci13600-labs-1 | 60081dced2c237f6843b28f335db9a4ed56a8ac2 | [
"BSD-3-Clause"
] | null | null | null | lab_01/month.cpp | srafi1/csci13600-labs-1 | 60081dced2c237f6843b28f335db9a4ed56a8ac2 | [
"BSD-3-Clause"
] | 2 | 2018-11-15T17:15:08.000Z | 2018-11-20T18:14:33.000Z | lab_01/month.cpp | srafi1/csci13600-labs-1 | 60081dced2c237f6843b28f335db9a4ed56a8ac2 | [
"BSD-3-Clause"
] | 4 | 2018-11-08T15:05:15.000Z | 2018-12-14T04:08:49.000Z | #include <iostream>
[[noreturn]] void myexit(unsigned int val) {
std::cout << val;
std::cout << " days";
std::cout << std::endl;
exit(0);
}
int main() {
std::cout << "Enter year: ";
int year;
std::cin >> year;
std::cout << "Enter month: ";
int month;
std::cin >> month;
std::cout << std::endl;
... | 14.244444 | 44 | 0.464899 | srafi1 |
e918c2ab70f3b76deb17239e7b39c7c72a5553ae | 51,260 | cc | C++ | talk/owt/sdk/p2p/p2ppeerconnectionchannel.cc | JamesTerm/owt-client-native | 91eff5607438690c88e01b718c1fd5441e89e1f7 | [
"Apache-2.0"
] | 1 | 2021-01-26T07:57:43.000Z | 2021-01-26T07:57:43.000Z | talk/owt/sdk/p2p/p2ppeerconnectionchannel.cc | JamesTerm/owt-client-native | 91eff5607438690c88e01b718c1fd5441e89e1f7 | [
"Apache-2.0"
] | null | null | null | talk/owt/sdk/p2p/p2ppeerconnectionchannel.cc | JamesTerm/owt-client-native | 91eff5607438690c88e01b718c1fd5441e89e1f7 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) <2018> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#include <thread>
#include <vector>
#include "talk/owt/sdk/base/eventtrigger.h"
#include "talk/owt/sdk/base/functionalobserver.h"
#include "talk/owt/sdk/base/sdputils.h"
#include "talk/owt/sdk/base/sysinfo.h"
#include "talk/owt/sdk/p2p/... | 39.159664 | 99 | 0.686208 | JamesTerm |
e919f6adf3e97dbd17434dee435304c8044efaf5 | 991 | cpp | C++ | Nov2020/29Nov/KKAndCrush.cpp | shivanisbp/2monthsOfCoding | 26dc53e3160c7b313dff974b957c81350bf9f1a1 | [
"MIT"
] | null | null | null | Nov2020/29Nov/KKAndCrush.cpp | shivanisbp/2monthsOfCoding | 26dc53e3160c7b313dff974b957c81350bf9f1a1 | [
"MIT"
] | null | null | null | Nov2020/29Nov/KKAndCrush.cpp | shivanisbp/2monthsOfCoding | 26dc53e3160c7b313dff974b957c81350bf9f1a1 | [
"MIT"
] | null | null | null | /*
Problem Name: KK and crush
Problem Link: https://www.hackerearth.com/practice/data-structures/hash-tables/basics-of-hash-tables/practice-problems/algorithm/exists/
*/
#include<bits/stdc++.h>
using namespace std;
#define test(t) int t; cin>>t; while(t--)
int main(){
ios::sync_with_stdio(0);
cin.tie... | 22.022222 | 136 | 0.400605 | shivanisbp |
e91bd998f0b8dd5bb328ede2d5c32564c80a5fae | 14,978 | hpp | C++ | library/src/auxiliary/rocauxiliary_stein.hpp | rkamd/rocSOLVER | de338c6cfc78e9e00be141d11529b8faeaba911f | [
"BSD-2-Clause"
] | null | null | null | library/src/auxiliary/rocauxiliary_stein.hpp | rkamd/rocSOLVER | de338c6cfc78e9e00be141d11529b8faeaba911f | [
"BSD-2-Clause"
] | null | null | null | library/src/auxiliary/rocauxiliary_stein.hpp | rkamd/rocSOLVER | de338c6cfc78e9e00be141d11529b8faeaba911f | [
"BSD-2-Clause"
] | null | null | null | /************************************************************************
* Derived from the BSD3-licensed
* LAPACK routine (version 3.7.0) --
* Univ. of Tennessee, Univ. of California Berkeley,
* Univ. of Colorado Denver and NAG Ltd..
* December 2016
* Copyright (c) 2019-2022 Advanced Micro Devices, ... | 37.074257 | 100 | 0.426225 | rkamd |
11ead98b728074eba9901c432769b0091275c0a5 | 972 | hpp | C++ | include/tao/json/external/pegtl/internal/require.hpp | ClausKlein/json | eeabe4bdef13ccba985b4423ce558438fd2f5497 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | null | null | null | include/tao/json/external/pegtl/internal/require.hpp | ClausKlein/json | eeabe4bdef13ccba985b4423ce558438fd2f5497 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | null | null | null | include/tao/json/external/pegtl/internal/require.hpp | ClausKlein/json | eeabe4bdef13ccba985b4423ce558438fd2f5497 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (c) 2016-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_JSON_PEGTL_INTERNAL_REQUIRE_HPP
#define TAO_JSON_PEGTL_INTERNAL_REQUIRE_HPP
#include "../config.hpp"
#include "enable_control.hpp"
#include "success.hpp"
#include "../t... | 22.604651 | 92 | 0.686214 | ClausKlein |
11eb95469c375c969c97813e8bea43a3ba8adcda | 7,517 | cpp | C++ | examples/strings_example.cpp | Ptomaine/nstd | 72daa4abab97dc82b407c774b00476459df0730b | [
"MIT"
] | 31 | 2017-06-28T09:50:03.000Z | 2021-08-11T14:09:35.000Z | examples/strings_example.cpp | Ptomaine/nstd | 72daa4abab97dc82b407c774b00476459df0730b | [
"MIT"
] | null | null | null | examples/strings_example.cpp | Ptomaine/nstd | 72daa4abab97dc82b407c774b00476459df0730b | [
"MIT"
] | 5 | 2017-06-29T13:43:23.000Z | 2020-09-01T02:47:11.000Z | /*
MIT License
Copyright (c) 2017 Arlen Keshabyan (arlen.albert@gmail.com)
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,... | 44.217647 | 197 | 0.603698 | Ptomaine |
11ed1b9e0328f4afa71af4d18c3da6b495dd25ef | 77,919 | cpp | C++ | src/ast/simplifier/bv_simplifier_plugin.cpp | ezulkosk/z3 | 1361340d553f67d86bd373e73c64876015a508f8 | [
"MIT"
] | 1 | 2018-06-15T00:27:24.000Z | 2018-06-15T00:27:24.000Z | src/ast/simplifier/bv_simplifier_plugin.cpp | smt-js/z3 | f54a7db1086b8151d42315ae7e2d96efa8ebdbd0 | [
"MIT"
] | null | null | null | src/ast/simplifier/bv_simplifier_plugin.cpp | smt-js/z3 | f54a7db1086b8151d42315ae7e2d96efa8ebdbd0 | [
"MIT"
] | null | null | null | /*++
Copyright (c) 2007 Microsoft Corporation
Module Name:
bv_simplifier_plugin.cpp
Abstract:
Simplifier for the bv family.
Author:
Leonardo (leonardo) 2008-01-08
Nikolaj Bjorner (nbjorner) 2008-01-05
--*/
#include"bv_simplifier_plugin.h"
#include"ast_ll_pp.h"
#include"ast_pp.h"
#include"arit... | 34.615282 | 151 | 0.534029 | ezulkosk |
11eee67e9cd88a25428e83e5c2c896d6ce908252 | 5,818 | cpp | C++ | examples/vectoradd.cpp | JackWolfard/cash | a646c0b94d075fa424a93904b7499a0dee90ac89 | [
"BSD-3-Clause"
] | 14 | 2018-08-08T19:02:21.000Z | 2022-01-07T14:42:43.000Z | examples/vectoradd.cpp | JackWolfard/cash | a646c0b94d075fa424a93904b7499a0dee90ac89 | [
"BSD-3-Clause"
] | null | null | null | examples/vectoradd.cpp | JackWolfard/cash | a646c0b94d075fa424a93904b7499a0dee90ac89 | [
"BSD-3-Clause"
] | 3 | 2020-04-20T20:58:34.000Z | 2021-11-23T14:50:14.000Z | #include <core.h>
#include <htl/fixed.h>
#include <eda/altera/avalon.h>
#include <eda/altera/avalon_sim.h>
#include "common.h"
using namespace ch::core;
using namespace ch::htl;
using namespace eda::altera::avalon;
template <typename T>
class vectoradd {
public:
__io (
__in (ch_uint<avm_v0::AddrW>) dst,
__i... | 29.989691 | 111 | 0.64438 | JackWolfard |
11f0946859c9ce8aacbbb58e7668aefeb92b4579 | 1,384 | cpp | C++ | tests/music/playMusic/mp3.cpp | jamesl-github/scc | c1dddf41778eeb2ef2a910372d1eb6a6a8dfa68e | [
"Zlib"
] | 8 | 2018-04-21T07:49:58.000Z | 2019-02-21T15:04:28.000Z | tests/music/playMusic/mp3.cpp | jamesl-github/scc | c1dddf41778eeb2ef2a910372d1eb6a6a8dfa68e | [
"Zlib"
] | null | null | null | tests/music/playMusic/mp3.cpp | jamesl-github/scc | c1dddf41778eeb2ef2a910372d1eb6a6a8dfa68e | [
"Zlib"
] | 2 | 2018-04-21T02:25:47.000Z | 2018-04-21T15:03:15.000Z | /*
SDL C++ Classes
Copyright (C) 2017-2018 Mateus Carmo M. de F. Barbosa
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software fo... | 32.952381 | 76 | 0.742775 | jamesl-github |
11f10517359204a8ecccfb6213b897b4d94e0573 | 705 | cpp | C++ | LeetCode/530.Minimum_Absolute_Difference_in_BST.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | LeetCode/530.Minimum_Absolute_Difference_in_BST.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | LeetCode/530.Minimum_Absolute_Difference_in_BST.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | // 即中序相鄰最小絕對差值
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int getMinimumDifference(TreeNode* root) {
vector<int> arr;
dfs(... | 22.741935 | 59 | 0.497872 | w181496 |
11f3e133b0853a2119c6b848c70e9bbee788a674 | 2,792 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/libsupc++/eh_exception.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/libsupc++/eh_exception.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/libsupc++/eh_exception.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // -*- C++ -*- std::exception implementation.
// Copyright (C) 1994-2017 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
// GCC is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either versio... | 32.091954 | 77 | 0.746418 | best08618 |
11fa84e0e6ed2b4b1950cdb19b4b651fe4292f1c | 9,074 | cpp | C++ | net.cpp | yibopi/latency-imbalance | 2a5836bdbcf197d3373d1478b27c0ffcc8bd8a77 | [
"BSD-3-Clause"
] | 5 | 2020-06-24T21:42:41.000Z | 2021-09-15T12:27:30.000Z | net.cpp | yibopi/latency-imbalance | 2a5836bdbcf197d3373d1478b27c0ffcc8bd8a77 | [
"BSD-3-Clause"
] | null | null | null | net.cpp | yibopi/latency-imbalance | 2a5836bdbcf197d3373d1478b27c0ffcc8bd8a77 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
Program: $Id: net.cpp 14 2014-12-30 02:33:44Z laalt $
Date: $Date: 2014-12-29 18:33:44 -0800 (Mon, 29 Dec 2014) $
Description: networking routines
***************************************************************************... | 27.413897 | 86 | 0.606789 | yibopi |
11ff047791d9e44ef03347df805f7aac43d6faea | 13,374 | cpp | C++ | FindMeSAT_SW/amateurfunk-funkrufmaster_19862/src/astronom.cpp | DF4IAH/GPS-TrackMe | 600511a41c995e98ec6e06a9e5bb1b64cce9b7a6 | [
"MIT"
] | 2 | 2018-01-18T16:03:41.000Z | 2018-04-01T15:55:59.000Z | FindMeSAT_SW/amateurfunk-funkrufmaster_19862/src/astronom.cpp | DF4IAH/GPS-TrackMe | 600511a41c995e98ec6e06a9e5bb1b64cce9b7a6 | [
"MIT"
] | null | null | null | FindMeSAT_SW/amateurfunk-funkrufmaster_19862/src/astronom.cpp | DF4IAH/GPS-TrackMe | 600511a41c995e98ec6e06a9e5bb1b64cce9b7a6 | [
"MIT"
] | 2 | 2020-05-22T17:01:24.000Z | 2021-10-08T15:53:01.000Z | /****************************************************************************
* *
* *
* Copyright (C) 2002-2004 by Holger Flemming *
* ... | 29.137255 | 96 | 0.53761 | DF4IAH |
f50080b795108d17c462e85194a9d1350fe17c9e | 69 | cpp | C++ | test/clustering_coef_wd_cpp.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | test/clustering_coef_wd_cpp.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | test/clustering_coef_wd_cpp.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | #include "bct_test.h"
MATRIX_TO_VECTOR_FUNCTION(clustering_coef_wd)
| 17.25 | 45 | 0.855072 | devuci |
f50bb88e714b2c3badf2d3383a1472ce553182eb | 962 | cpp | C++ | contest/C181/Q2/main.cpp | Modnars/LeetCode | 1c91fe9598418e6ed72233260f9cd8d5737fe216 | [
"Apache-2.0"
] | 2 | 2021-11-26T14:06:13.000Z | 2021-11-26T14:34:34.000Z | contest/C181/Q2/main.cpp | Modnars/LeetCode | 1c91fe9598418e6ed72233260f9cd8d5737fe216 | [
"Apache-2.0"
] | 2 | 2021-11-26T14:06:49.000Z | 2021-11-28T11:28:49.000Z | contest/C181/Q2/main.cpp | Modnars/LeetCode | 1c91fe9598418e6ed72233260f9cd8d5737fe216 | [
"Apache-2.0"
] | null | null | null | // URL : https://leetcode-cn.com/contest/weekly-contest-181/problems/four-divisors/
// Author : Modnar
// Date : 2020/03/22
#include <bits/stdc++.h>
/* ************************* */
class Solution {
public:
int sumFourDivisors(std::vector<int> &nums) {
int ans = 0;
for (int i = 0; i != nums.s... | 23.463415 | 86 | 0.453222 | Modnars |
f50d9fec2a8298fe7643c856e87b779af2eae057 | 1,964 | cpp | C++ | src/mongo/db/audit/audit_file.cpp | wangke1020/percona-server-mongodb | 5008975f1ac220fdb82ea85c85f2794f554ce3d9 | [
"Apache-2.0"
] | 1 | 2019-01-16T12:59:12.000Z | 2019-01-16T12:59:12.000Z | src/mongo/db/audit/audit_file.cpp | wangke1020/percona-server-mongodb | 5008975f1ac220fdb82ea85c85f2794f554ce3d9 | [
"Apache-2.0"
] | 4 | 2019-02-22T10:05:59.000Z | 2021-03-26T00:20:23.000Z | src/mongo/db/audit/audit_file.cpp | wangke1020/percona-server-mongodb | 5008975f1ac220fdb82ea85c85f2794f554ce3d9 | [
"Apache-2.0"
] | 10 | 2018-11-29T07:17:30.000Z | 2022-03-07T01:33:41.000Z | /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
/*======
This file is part of Percona Server for MongoDB.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
Percona Server for MongoDB is free software: you can redistri... | 31.677419 | 80 | 0.645621 | wangke1020 |
f50f5dbfc2ea160a169c5329b660927ede48004e | 2,841 | cpp | C++ | modules/tracktion_engine/tracktion_engine_model_1.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/tracktion_engine_model_1.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/tracktion_engine_model_1.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 45.822581 | 84 | 0.746568 | jbloit |
f510e4cf79ef1b6762759fccac213ba0854dcc1a | 984 | hpp | C++ | src/includes/Module_interface.hpp | Exus1/eBot | f39a967de5207d81f4ee3671c23dd98b932a2cb6 | [
"MIT"
] | null | null | null | src/includes/Module_interface.hpp | Exus1/eBot | f39a967de5207d81f4ee3671c23dd98b932a2cb6 | [
"MIT"
] | null | null | null | src/includes/Module_interface.hpp | Exus1/eBot | f39a967de5207d81f4ee3671c23dd98b932a2cb6 | [
"MIT"
] | null | null | null | #ifndef _MODULE_INTEFACE__HPP
#define _MODULE_INTEFACE__HPP
#include <iostream>
#include <map>
#include <string>
#include <Ts3Api/Server.hpp>
#include <ConfigFile.hpp>
using namespace std;
class Module_interface {
friend class Modules_manager;
friend class Module_thread;
protected:
struct module_informations {
... | 20.5 | 117 | 0.753049 | Exus1 |
f5135ce80e758c114faab4c6abf99c7a7be23b12 | 5,608 | cpp | C++ | apps/openmw/mwgui/itemmodel.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/itemmodel.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/itemmodel.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #include "itemmodel.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/containerstore.hpp"
#include "../mwworld/store.hpp"
#include "../mwworld/esmstore.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
namespace MWGui
{
ItemStack::ItemStack(const MWWorld::Ptr &base, ItemModel *cre... | 33.783133 | 160 | 0.613053 | Bodillium |
f516e5001905ce67efe58e80aa9a09a220fe6391 | 2,221 | cc | C++ | DreamDaq/codeBackup/DreamDaq.101104/decode_tb2008/MCommon/mhistof.cc | ivivarel/DREMTubes | ac768990b4c5e2c23d986284ed10189f31796b38 | [
"MIT"
] | 3 | 2021-07-22T12:17:48.000Z | 2021-07-27T07:22:54.000Z | DreamDaq/codeBackup/DreamDaq.101104/decode_tb2008/MCommon/mhistof.cc | ivivarel/DREMTubes | ac768990b4c5e2c23d986284ed10189f31796b38 | [
"MIT"
] | 38 | 2021-07-14T15:41:04.000Z | 2022-03-29T14:18:20.000Z | DreamDaq/codeBackup/DreamDaq.101104/decode_tb2008/MCommon/mhistof.cc | ivivarel/DREMTubes | ac768990b4c5e2c23d986284ed10189f31796b38 | [
"MIT"
] | 7 | 2021-07-21T12:00:33.000Z | 2021-11-13T10:45:30.000Z | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "mhistof.h"
mhistof::mhistof(char *Name, int aSize) {
name = (char *) calloc(strlen(Name)+1, sizeof *name);
sprintf(name, "%s", Name);
asize = aSize;
n = (int *) calloc(asize, sizeof *n);
sum = (float *) calloc(a... | 17.217054 | 74 | 0.488969 | ivivarel |
f51bed92cb87d2a564142c6c39f3dea330c6fcb9 | 2,626 | ipp | C++ | windows/include/boost/archive/impl/archive_pointer_iserializer.ipp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | 6 | 2015-12-29T07:21:01.000Z | 2020-05-29T10:47:38.000Z | windows/include/boost/archive/impl/archive_pointer_iserializer.ipp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | windows/include/boost/archive/impl/archive_pointer_iserializer.ipp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// pointer_iserializer.ipp:
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy a... | 31.638554 | 88 | 0.684311 | jaredhoberock |
f51cadb9a52acebd4a9905ca5bebbb3dd40b99c2 | 315 | hpp | C++ | rtos/Source/taskertimerservice.hpp | ntsiopliakis/CortexLib | da33b8312de4d3547b28458b8e9c896c72211ed0 | [
"MIT"
] | null | null | null | rtos/Source/taskertimerservice.hpp | ntsiopliakis/CortexLib | da33b8312de4d3547b28458b8e9c896c72211ed0 | [
"MIT"
] | null | null | null | rtos/Source/taskertimerservice.hpp | ntsiopliakis/CortexLib | da33b8312de4d3547b28458b8e9c896c72211ed0 | [
"MIT"
] | null | null | null | // Filename: taskertypes.hpp
// Created by by Sergey Kolody aka Lamerok on 29.03.2020.
#pragma once
template <typename Tasker, typename ...Timers>
struct TaskerTimerService {
static void OnSystemTick()
{
Tasker::IsrEntry() ;
(Timers::OnTick(), ...) ;
Tasker::IsrExit() ;
}
} ;
| 21 | 57 | 0.622222 | ntsiopliakis |
f5234a324d231047108a168dcd6d4e8808c38ad4 | 3,369 | cpp | C++ | android-project/jni/libtesseract/src/ccstruct/ocrpara.cpp | pixelsquare/tesseract-ocr-unity | f5f16c3d77cb4898f3fa96aed4abd82817de39fd | [
"MIT"
] | 6 | 2019-08-22T11:42:27.000Z | 2021-12-24T09:23:23.000Z | android-project/jni/libtesseract/src/ccstruct/ocrpara.cpp | pixelsquare/tesseract-ocr-unity | f5f16c3d77cb4898f3fa96aed4abd82817de39fd | [
"MIT"
] | 1 | 2018-11-30T15:53:24.000Z | 2020-01-23T16:46:24.000Z | android-project/jni/libtesseract/src/ccstruct/ocrpara.cpp | pixelsquare/tesseract-ocr-unity | f5f16c3d77cb4898f3fa96aed4abd82817de39fd | [
"MIT"
] | 3 | 2019-05-30T04:13:56.000Z | 2021-12-24T09:23:26.000Z | /////////////////////////////////////////////////////////////////////
// File: ocrpara.cpp
// Description: OCR Paragraph Output Type
// Author: David Eger
//
// (C) Copyright 2010, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in co... | 35.840426 | 101 | 0.677649 | pixelsquare |
f527efe3d0d2e041fb32fa2cc6f40baf71a5efff | 1,259 | hpp | C++ | include/TreeDS/policy/siblings.hpp | barsan-ds/generic-tree | a01ff9dc0a0e0e6dd9d380cf2469d7ea0cc86c60 | [
"MIT"
] | 3 | 2018-10-02T20:18:52.000Z | 2018-10-04T20:16:45.000Z | include/TreeDS/policy/siblings.hpp | barsan-ds/tree-ds | a01ff9dc0a0e0e6dd9d380cf2469d7ea0cc86c60 | [
"MIT"
] | null | null | null | include/TreeDS/policy/siblings.hpp | barsan-ds/tree-ds | a01ff9dc0a0e0e6dd9d380cf2469d7ea0cc86c60 | [
"MIT"
] | null | null | null | #pragma once
#include <TreeDS/policy/policy_base.hpp>
namespace md::detail {
template <typename NodePtr, typename NodeNavigator, typename Allocator>
class siblings_impl final
: public policy_base<siblings_impl<NodePtr, NodeNavigator, Allocator>, NodePtr, NodeNavigator, Allocator> {
public:
using pol... | 28.613636 | 115 | 0.687847 | barsan-ds |
f52858a7b4eca2ae55b22f3d6864140a6191a4c7 | 265 | hpp | C++ | tests/headers/class_with_dtor.hpp | pcwalton/rust-bindgen | fae3dc180fef48cb806b4953bceffd7d15efe587 | [
"BSD-3-Clause"
] | 1,848 | 2018-11-22T06:08:21.000Z | 2022-03-31T10:54:10.000Z | tests/headers/class_with_dtor.hpp | pcwalton/rust-bindgen | fae3dc180fef48cb806b4953bceffd7d15efe587 | [
"BSD-3-Clause"
] | 845 | 2016-06-22T21:55:20.000Z | 2018-10-31T15:50:10.000Z | tests/headers/class_with_dtor.hpp | pcwalton/rust-bindgen | fae3dc180fef48cb806b4953bceffd7d15efe587 | [
"BSD-3-Clause"
] | 274 | 2018-11-23T17:46:29.000Z | 2022-03-27T04:52:37.000Z | // bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq
template <typename T>
class HandleWithDtor {
T* ptr;
~HandleWithDtor() {}
};
typedef HandleWithDtor<int> HandleValue;
class WithoutDtor {
HandleValue shouldBeWithDtor;
};
| 17.666667 | 77 | 0.713208 | pcwalton |
f52ef911dad5bd6ddceed4935a551136e99cebe9 | 7,579 | cpp | C++ | data/converted/busy_0_svg.cpp | mdubb2341/EmulationStationGV | 8e7ee6c93190bc8ca1879f3877184cffff530496 | [
"Apache-2.0",
"MIT"
] | 30 | 2015-12-13T18:25:04.000Z | 2021-03-07T11:24:31.000Z | data/converted/busy_0_svg.cpp | mdubb2341/EmulationStationGV | 8e7ee6c93190bc8ca1879f3877184cffff530496 | [
"Apache-2.0",
"MIT"
] | 46 | 2015-12-17T09:00:15.000Z | 2018-08-27T21:02:58.000Z | data/converted/busy_0_svg.cpp | mdubb2341/EmulationStationGV | 8e7ee6c93190bc8ca1879f3877184cffff530496 | [
"Apache-2.0",
"MIT"
] | 14 | 2016-03-17T19:19:34.000Z | 2017-06-01T03:47:21.000Z | // this file was auto-generated from "busy_0.svg" by res2h
#include "../Resources.h"
const uint16_t busy_0_svg_size = 1347;
const uint8_t busy_0_svg_data[1347] = {
0x3c,0x3f,0x78,0x6d,0x6c,0x20,0x76,0x65,0x72,0x73,
0x69,0x6f,0x6e,0x3d,0x22,0x31,0x2e,0x30,0x22,0x20,
0x65,0x6e,0x63,0x6f,0x64,0x69,0x6e,0x67,... | 52.631944 | 58 | 0.727273 | mdubb2341 |
f5316e58bab4b97f023c9871b45ecc5d281d685a | 2,273 | cpp | C++ | Frontend/GItems/Mini/RUKeyUp.cpp | Gattic/gfxplusplus | f0c05a0f424fd65c8f7fd26ee0dee1802a033336 | [
"MIT"
] | 3 | 2020-02-12T23:22:45.000Z | 2020-02-19T01:03:07.000Z | Frontend/GItems/Mini/RUKeyUp.cpp | MeeseeksLookAtMe/gfxplusplus | f0c05a0f424fd65c8f7fd26ee0dee1802a033336 | [
"MIT"
] | null | null | null | Frontend/GItems/Mini/RUKeyUp.cpp | MeeseeksLookAtMe/gfxplusplus | f0c05a0f424fd65c8f7fd26ee0dee1802a033336 | [
"MIT"
] | null | null | null | // Copyright 2020 Robert Carneiro, Derek Meer, Matthew Tabak, Eric Lujan
//
// 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... | 31.136986 | 101 | 0.714474 | Gattic |
f532819a10ab366e07177a187bed928822559df6 | 1,200 | cpp | C++ | demo/tuple.cpp | divad1196/CPPTools | 9526708469ed899fd8f73dc8ad32eeb4bee8e05c | [
"MIT"
] | 1 | 2021-06-15T09:25:31.000Z | 2021-06-15T09:25:31.000Z | demo/tuple.cpp | divad1196/CPPTools | 9526708469ed899fd8f73dc8ad32eeb4bee8e05c | [
"MIT"
] | null | null | null | demo/tuple.cpp | divad1196/CPPTools | 9526708469ed899fd8f73dc8ad32eeb4bee8e05c | [
"MIT"
] | 1 | 2022-01-07T19:09:55.000Z | 2022-01-07T19:09:55.000Z | #include <cstdlib>
#include <iostream>
#include "../src/tuple.h"
int main(int argc, char* argv[]) {
auto a = std::index_sequence<1,4,5>();
auto b = cond_extends<true, 3>(a);
auto c = cond_extends<false, 3>(a);
std::tuple<int, int> d{};
auto e = extends(d, std::string("hello"), 5.6);
auto ... | 24.489796 | 81 | 0.545833 | divad1196 |
f536953e03a417a52b8bef7a7e4bfbbc47c393c6 | 605 | cpp | C++ | VosVideo.Common/AutoResetEvent.cpp | atelyshev/vosvideoserver | 689e6b2a49ee253528903b93011e3d16af1fa74b | [
"MIT"
] | 19 | 2017-11-24T05:18:27.000Z | 2021-06-25T19:34:17.000Z | VosVideo.Common/AutoResetEvent.cpp | atelyshev/vosvideoserver | 689e6b2a49ee253528903b93011e3d16af1fa74b | [
"MIT"
] | null | null | null | VosVideo.Common/AutoResetEvent.cpp | atelyshev/vosvideoserver | 689e6b2a49ee253528903b93011e3d16af1fa74b | [
"MIT"
] | 9 | 2017-10-02T03:42:49.000Z | 2020-09-17T07:59:04.000Z | #include "stdafx.h"
#include "AutoResetEvent.h"
using namespace threading;
AutoResetEvent::AutoResetEvent(bool initial)
: flag_(initial)
{
}
void AutoResetEvent::Set()
{
std::lock_guard<std::mutex> _(protect_);
flag_ = true;
signal_.notify_one();
}
void AutoResetEvent::Reset()
{
std::lock_gu... | 17.794118 | 61 | 0.669421 | atelyshev |
f53a2d93891ac72d7feeda17a9666e5e6ee613b0 | 22,088 | cpp | C++ | src/libshit/options.cpp | u3shit/libshit | 8ab8f12b4068edc269356debef78cd04de67edb4 | [
"WTFPL",
"BSD-3-Clause"
] | null | null | null | src/libshit/options.cpp | u3shit/libshit | 8ab8f12b4068edc269356debef78cd04de67edb4 | [
"WTFPL",
"BSD-3-Clause"
] | null | null | null | src/libshit/options.cpp | u3shit/libshit | 8ab8f12b4068edc269356debef78cd04de67edb4 | [
"WTFPL",
"BSD-3-Clause"
] | null | null | null | #include "libshit/options.hpp"
#include <algorithm>
#include <array>
#include <climits>
#include <cstring>
#include <iostream>
#include <iterator>
#include <map>
#include <string>
#include <type_traits>
#include "libshit/doctest.hpp"
namespace Libshit
{
TEST_SUITE_BEGIN("Libshit::Options");
namespace
{
str... | 25.185861 | 96 | 0.48592 | u3shit |
f53c207ca9546b7be5a530108a6007ce8489e003 | 4,212 | cpp | C++ | test/test_lexer.cpp | miccol/derplanner | cd5d15acb741f027807796af9a12ed8968b4a91e | [
"Zlib"
] | 37 | 2015-05-02T20:26:49.000Z | 2022-01-19T01:28:38.000Z | test/test_lexer.cpp | BantamJoe/derplanner | d1042ba74eea856891132e1dc51cbcad6662f8c3 | [
"Zlib"
] | 3 | 2015-01-03T12:46:49.000Z | 2021-10-04T00:55:17.000Z | test/test_lexer.cpp | BantamJoe/derplanner | d1042ba74eea856891132e1dc51cbcad6662f8c3 | [
"Zlib"
] | 12 | 2015-01-05T12:08:49.000Z | 2022-01-19T01:28:39.000Z | //
// Copyright (c) 2015 Alexander Shafranov shafranov@gmail.com
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any ... | 33.428571 | 144 | 0.635328 | miccol |
f5425b355df028bb6007d937c62bf374bd879944 | 6,989 | cpp | C++ | dlib/dlib/test/matrix_lu.cpp | mohitjain4395/mosip | 20ee978dc539be42c8b79cd4b604fdf681e7b672 | [
"MIT"
] | 11,719 | 2015-01-03T22:38:57.000Z | 2022-03-30T21:45:04.000Z | dlib/test/matrix_lu.cpp | KiLJ4EdeN/dlib | eb1f08ce6ab3ca6f9d10425d899103de3c0df56c | [
"BSL-1.0"
] | 2,518 | 2015-01-04T04:38:06.000Z | 2022-03-31T11:55:43.000Z | dlib/test/matrix_lu.cpp | KiLJ4EdeN/dlib | eb1f08ce6ab3ca6f9d10425d899103de3c0df56c | [
"BSL-1.0"
] | 3,308 | 2015-01-01T14:34:16.000Z | 2022-03-31T07:20:07.000Z | // Copyright (C) 2009 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#include <dlib/matrix.h>
#include <sstream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <vector>
#include "../stl_checked.h"
#include "../array.h"
#include "../rand.h"
#i... | 31.200893 | 118 | 0.487337 | mohitjain4395 |
f5490eebdba9af20fab2a8198521554d85b5272e | 733 | hpp | C++ | test/unittests/lib/core/runtime/f32_neg_unittest.hpp | yuhao-kuo/WasmVM | b4dcd4f752f07ba4180dc275d47764c363776301 | [
"BSD-3-Clause"
] | 125 | 2018-10-22T19:00:25.000Z | 2022-03-14T06:33:25.000Z | test/unittests/lib/core/runtime/f32_neg_unittest.hpp | yuhao-kuo/WasmVM | b4dcd4f752f07ba4180dc275d47764c363776301 | [
"BSD-3-Clause"
] | 80 | 2018-10-18T06:35:07.000Z | 2020-04-20T02:40:22.000Z | test/unittests/lib/core/runtime/f32_neg_unittest.hpp | yuhao-kuo/WasmVM | b4dcd4f752f07ba4180dc275d47764c363776301 | [
"BSD-3-Clause"
] | 27 | 2018-11-04T12:05:35.000Z | 2021-09-06T05:11:50.000Z | #include <skypat/skypat.h>
#define _Bool bool
extern "C" {
#include <dataTypes/Value.h>
#include <core/Runtime.h>
}
#undef _Bool
SKYPAT_F(Runtime_f32_neg, regular)
{
// prepare
Stack stack = new_Stack();
Value *val1 = new_f32Value(5), *val2 = new_f32Value(-3);
push_Value(stack, val1);
push_Value(s... | 18.794872 | 60 | 0.638472 | yuhao-kuo |
f549cf951f6391a1292dd4aa2591a6da6f49f7ad | 3,030 | cpp | C++ | engine/src/Object.cpp | EvilPyro/2D_Game_Framework | b3b8538354a65288bdbfb9d787086038dbb57785 | [
"Zlib"
] | null | null | null | engine/src/Object.cpp | EvilPyro/2D_Game_Framework | b3b8538354a65288bdbfb9d787086038dbb57785 | [
"Zlib"
] | null | null | null | engine/src/Object.cpp | EvilPyro/2D_Game_Framework | b3b8538354a65288bdbfb9d787086038dbb57785 | [
"Zlib"
] | null | null | null | #include "Object.h"
#include "Engine.h"
#include <iostream>
#include <cassert>
#include <limits>
std::map<std::string,ObjectFactory*>& Object::getFactories() { //Singleton
static std::map<std::string,ObjectFactory*> factories;
return factories;
}
void Object::registerType(const std::string& name, ObjectFactory* fac... | 32.234043 | 104 | 0.6967 | EvilPyro |
f54a1f3a13f712eff13d7cd6639319cf570e70f3 | 2,956 | cxx | C++ | src/mlio/shuffled_instance_reader.cxx | laurencer/ml-io | b40a88f0b61f7dfd2b74897a9b2385539d5796aa | [
"Apache-2.0"
] | null | null | null | src/mlio/shuffled_instance_reader.cxx | laurencer/ml-io | b40a88f0b61f7dfd2b74897a9b2385539d5796aa | [
"Apache-2.0"
] | 2 | 2020-04-08T01:37:44.000Z | 2020-04-14T20:14:07.000Z | src/mlio/shuffled_instance_reader.cxx | laurencer/ml-io | b40a88f0b61f7dfd2b74897a9b2385539d5796aa | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "lice... | 23.275591 | 76 | 0.656292 | laurencer |
f54c49e33f370b3af445d43201765aa3ef4fbd95 | 3,006 | cpp | C++ | src/d3d11/d3d11_interop.cpp | archfan/dxvk | 91c82f17cc34a2410191f15c8d66fb6fa9b927c2 | [
"Zlib"
] | 7 | 2019-03-31T15:44:23.000Z | 2021-07-15T23:34:11.000Z | src/d3d11/d3d11_interop.cpp | archfan/dxvk | 91c82f17cc34a2410191f15c8d66fb6fa9b927c2 | [
"Zlib"
] | null | null | null | src/d3d11/d3d11_interop.cpp | archfan/dxvk | 91c82f17cc34a2410191f15c8d66fb6fa9b927c2 | [
"Zlib"
] | 1 | 2019-11-04T07:48:24.000Z | 2019-11-04T07:48:24.000Z | #include "d3d11_context_imm.h"
#include "d3d11_interop.h"
#include "d3d11_device.h"
#include "../dxvk/dxvk_adapter.h"
#include "../dxvk/dxvk_device.h"
#include "../dxvk/dxvk_instance.h"
namespace dxvk {
D3D11VkInterop::D3D11VkInterop(
IDXGIObject* pContainer,
D3D11Device* pD... | 28.093458 | 85 | 0.653027 | archfan |
f54e973b502816b39cdadf58abe3251542b12ee7 | 6,271 | cpp | C++ | SRC/symbolic.cpp | anastasiiakim/ranked_probs | be6248b57e033e39f9db133a88fb68993ac7dc99 | [
"MIT"
] | 5 | 2020-07-03T04:21:39.000Z | 2021-04-01T20:25:50.000Z | SRC/symbolic.cpp | anastasiiakim/ranked_probs | be6248b57e033e39f9db133a88fb68993ac7dc99 | [
"MIT"
] | 1 | 2020-02-06T19:52:46.000Z | 2020-02-06T19:52:54.000Z | SRC/symbolic.cpp | anastasiiakim/ranked_probs | be6248b57e033e39f9db133a88fb68993ac7dc99 | [
"MIT"
] | 1 | 2020-07-08T02:40:17.000Z | 2020-07-08T02:40:17.000Z | #include <string>
#include <fstream>
#include <iostream>
#include <stack>
#include <cmath>
#include <algorithm>
#include <iomanip> // output more decimals
#define EPS 1e-8
#include "string_manipulations.h"
#include "node.h"
#include "queue.h"
#include "probs_calculation.h"
#include "symbolic.h"
using namespace std;
... | 23.664151 | 215 | 0.556052 | anastasiiakim |
f55272e08aaea75186312ad68e602b586a63e5ff | 4,808 | cc | C++ | proxy/EventName.cc | garfieldonly/ats_git | 940ff5c56bebabb96130a55c2a17212c5c518138 | [
"Apache-2.0"
] | 1 | 2022-01-19T14:34:34.000Z | 2022-01-19T14:34:34.000Z | proxy/EventName.cc | mingzym/trafficserver | a01c3a357b4ff9193f2e2a8aee48e3751ef2177a | [
"Apache-2.0"
] | 2 | 2017-12-05T23:48:37.000Z | 2017-12-20T01:22:07.000Z | proxy/EventName.cc | maskit/trafficserver | 3ffa19873f7cd7ced2fbdfed5a0ac8ddbbe70a68 | [
"Apache-2.0"
] | null | null | null | /** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you und... | 30.05 | 77 | 0.744176 | garfieldonly |
f55290f6493eb9b106cbbbf3b995e695a1b2ff68 | 13,668 | cc | C++ | src/rocksdb2/java/rocksjni/rocksjni.cc | Py9595/Backpack-Travel-Underlying-Code | c5758792eba7cdd62cb6ff46e642e8e4e4e5417e | [
"BSL-1.0"
] | 89 | 2015-04-23T20:24:58.000Z | 2022-03-20T12:35:30.000Z | src/rocksdb2/java/rocksjni/rocksjni.cc | Py9595/Backpack-Travel-Underlying-Code | c5758792eba7cdd62cb6ff46e642e8e4e4e5417e | [
"BSL-1.0"
] | 14 | 2020-05-25T15:42:18.000Z | 2022-03-20T12:44:56.000Z | src/rocksdb2/java/rocksjni/rocksjni.cc | Py9595/Backpack-Travel-Underlying-Code | c5758792eba7cdd62cb6ff46e642e8e4e4e5417e | [
"BSL-1.0"
] | 41 | 2015-01-19T05:26:34.000Z | 2022-02-23T03:47:39.000Z | // Copyright (c) 2014, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// This file implements the "... | 31.934579 | 80 | 0.677349 | Py9595 |
f553f5efe7d4e0ff79f30408953876cb3c400939 | 3,924 | cpp | C++ | WonderBrush/src/tools/transform/ObjectSelection.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 11 | 2018-11-10T11:14:11.000Z | 2021-12-27T17:17:08.000Z | WonderBrush/src/tools/transform/ObjectSelection.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 27 | 2018-11-11T00:06:25.000Z | 2021-06-24T06:43:38.000Z | WonderBrush/src/tools/transform/ObjectSelection.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 7 | 2018-11-10T20:32:49.000Z | 2021-03-15T18:03:42.000Z | // ObjectSelection.cpp
#include <stdio.h>
#include <string.h>
#include "Stroke.h"
#include "TransformState.h"
#include "TransformAction.h"
#include "ObjectSelection.h"
// constructor
ObjectSelection::ObjectSelection(CanvasView* view,
TransformState* state,
Stroke** objects,
int32 count)
... | 22.422857 | 75 | 0.657492 | waddlesplash |
f554b74cb93f2e31cd0f27cb323cc21fa402db5a | 505 | cpp | C++ | InterviewBit/ValidBinarySearchTree.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | InterviewBit/ValidBinarySearchTree.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | InterviewBit/ValidBinarySearchTree.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | 2 | 2021-01-23T14:35:48.000Z | 2021-03-15T05:04:24.000Z | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
int isBST(TreeNode *root, int min, int max) {
if (root == NULL) {
return 1;
}
if (root->val < min || root->val > max) {
retu... | 21.041667 | 88 | 0.586139 | Code-With-Aagam |
f556a8b4605b18d3341f0a8ef4cb758604d7d134 | 56,427 | hpp | C++ | yactfr/internal/proc.hpp | eepp/yactfr | 5cec5680d025d82a4f175ffc19c0704b32ef529f | [
"MIT"
] | 7 | 2016-08-26T14:20:06.000Z | 2022-02-03T21:17:25.000Z | yactfr/internal/proc.hpp | eepp/yactfr | 5cec5680d025d82a4f175ffc19c0704b32ef529f | [
"MIT"
] | 2 | 2018-05-29T17:43:37.000Z | 2018-05-30T18:38:39.000Z | yactfr/internal/proc.hpp | eepp/yactfr | 5cec5680d025d82a4f175ffc19c0704b32ef529f | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2016-2022 Philippe Proulx <eepp.ca>
*
* This software may be modified and distributed under the terms of the
* MIT license. See the LICENSE file for details.
*/
/*
* Here are the possible instructions for the yactfr VM.
*
* No numeric bytecode is involved here: the VM deals with a sequence o... | 23.501458 | 100 | 0.677849 | eepp |
f556b5e2a660e342dd95b2f11d1e7a91d39772d2 | 10,728 | cpp | C++ | ext/RadioHead/STM32ArduinoCompat/HardwareSerial.cpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | ext/RadioHead/STM32ArduinoCompat/HardwareSerial.cpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | ext/RadioHead/STM32ArduinoCompat/HardwareSerial.cpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | // ArduinoCompat/HardwareSerial.cpp
//
// Author: mikem@airspayce.com
#include "HardwareSerial.h"
#include <stm32f4xx_usart.h>
// Preinstantiated Serial objects
HardwareSerial Serial1(USART1);
HardwareSerial Serial2(USART2);
HardwareSerial Serial3(USART3);
HardwareSerial Serial4(UART4);
HardwareSerial Serial5(UART5);... | 30.916427 | 93 | 0.723527 | walmis |
f5577de6da973e2043752baef0fd29205c64a734 | 2,808 | cc | C++ | src/cobalt/bin/app/logger_factory_impl.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | src/cobalt/bin/app/logger_factory_impl.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | src/cobalt/bin/app/logger_factory_impl.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 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 "src/cobalt/bin/app/logger_factory_impl.h"
#include "src/cobalt/bin/app/utils.h"
#include "src/lib/fsl/vmo/strings.h"
namespace cobalt {
using ... | 40.695652 | 92 | 0.747863 | zarelaky |
f559e212f5fc8d585fd435ccaf42db72d8ba4d50 | 2,431 | cpp | C++ | Actor/Characters/Enemy/GBoxEnemy_Close/StateAI/States/StateAI_GBEC_Combat.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/GBoxEnemy_Close/StateAI/States/StateAI_GBEC_Combat.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/GBoxEnemy_Close/StateAI/States/StateAI_GBEC_Combat.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "StateAI_GBEC_Combat.h"
void UStateAI_GBEC_Combat::Init(class UStateMng_AI* pMng)
{
Super::Init(pMng);
m_pStateClass.Add(static_cast<int32>(E_StateAI_GBEC_Combat::E_Combat_Attack), NewObject<UStateAI_GBEC_Combat_Attack>());
m_... | 24.069307 | 130 | 0.736734 | Bornsoul |
f55ea5477a5f21d56e55a862c7e6a9e68b8a07e1 | 6,176 | cc | C++ | gazebo/gui/building/LineSegmentItem.cc | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2015-07-02T08:23:30.000Z | 2020-11-17T19:00:38.000Z | gazebo/gui/building/LineSegmentItem.cc | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/gui/building/LineSegmentItem.cc | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2015-04-22T18:33:15.000Z | 2021-11-16T10:17:45.000Z | /*
* Copyright 2012 Open Source Robotics Foundation
*
* 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 applicab... | 25.841004 | 80 | 0.560719 | thomas-moulard |
f55ec82fd546cce41ca632498d164f023ada7ae6 | 605 | hpp | C++ | math/famous_sequence/Bernoulli_numbers.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | 7 | 2021-07-20T15:25:00.000Z | 2022-03-13T11:58:25.000Z | math/famous_sequence/Bernoulli_numbers.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | 10 | 2021-03-11T16:08:22.000Z | 2022-03-13T08:40:36.000Z | math/famous_sequence/Bernoulli_numbers.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | null | null | null | #ifndef BERNOULLI_NUMBERS_HEADER_HPP
#define BERNOULLI_NUMBERS_HEADER_HPP
/**
* @brief Bernoulli number
* @docs docs/math/famous_sequence/Bernoulli_numbers.md
*/
#include "../formal_power_series/prime_binomial.hpp"
namespace lib {
template <typename PolyType>
void Bernoulli_numbers(int n, PolyType &... | 24.2 | 62 | 0.664463 | hly1204 |
f5641dbeb6088106ed581fa624e36d01f00209e5 | 350 | cpp | C++ | id1026/main.cpp | adogadaev/timus | eeadeb3ac60b7259988fe579422d386b95c4ca9d | [
"Apache-2.0"
] | null | null | null | id1026/main.cpp | adogadaev/timus | eeadeb3ac60b7259988fe579422d386b95c4ca9d | [
"Apache-2.0"
] | null | null | null | id1026/main.cpp | adogadaev/timus | eeadeb3ac60b7259988fe579422d386b95c4ca9d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main() {
int n;
int aNum[100000];
cin >> n;
for (int i = 0; i < n; i++)
cin >> aNum[i];
sort(aNum, aNum+n);
int k;
int idx;
string str;
cin >> str;
cin >> k;
for (int i = 0; i < k; i++) {
cin >> idx;
cout << aNum[idx... | 12.962963 | 30 | 0.542857 | adogadaev |
f564adaea88496b092c7dcd43290303ea37b6cb8 | 2,919 | cpp | C++ | test/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 187 | 2015-02-28T11:50:45.000Z | 2022-02-20T12:51:00.000Z | test/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 2 | 2019-06-24T20:44:59.000Z | 2020-06-17T18:41:35.000Z | test/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 80 | 2015-01-02T12:44:41.000Z | 2022-01-20T15:37:54.000Z | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 35.168675 | 87 | 0.465913 | caiohamamura |
f56573316115cbb38dff79e0207857936c77fad1 | 3,828 | hpp | C++ | include/xul/posix/daemon_controller.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 2 | 2018-03-16T07:06:48.000Z | 2018-04-02T03:02:14.000Z | include/xul/posix/daemon_controller.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | null | null | null | include/xul/posix/daemon_controller.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 1 | 2019-08-12T05:15:29.000Z | 2019-08-12T05:15:29.000Z | #pragma once
#include <xul/net/message_socket.hpp>
#include <xul/lang/object_ptr.hpp>
#include <xul/util/singleton.hpp>
#include <xul/net/io_service.hpp>
#include <vector>
#include <assert.h>
#include <unistd.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include ... | 27.342857 | 126 | 0.621996 | hindsights |
f57a7df454a16465cbc646589405653915111427 | 316 | hpp | C++ | Plugins/Animation/src/AnimationPluginMacros.hpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | Plugins/Animation/src/AnimationPluginMacros.hpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | Plugins/Animation/src/AnimationPluginMacros.hpp | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | #ifndef ANIMATIONPLUGINMACROS_HPP_
#define ANIMATIONPLUGINMACROS_HPP_
#include <Core/CoreMacros.hpp>
/// Defines the correct macro to export dll symbols.
#if defined Animation_EXPORTS
#define ANIM_PLUGIN_API DLL_EXPORT
#else
#define ANIM_PLUGIN_API DLL_IMPORT
#endif
#endif // ANIMATIONPLUGINMACROS_HPP_
| 22.571429 | 52 | 0.810127 | nmellado |
f57ae066c42d93ac79a304371105ecc923a49ae0 | 15,019 | cpp | C++ | Operations/mafOpDecomposeTimeVarVME.cpp | gradicosmo/MAF2 | 86ddf1f52a2de4479c09fd3f43dc321ff412af42 | [
"Apache-2.0"
] | 1 | 2021-05-10T19:01:10.000Z | 2021-05-10T19:01:10.000Z | Operations/mafOpDecomposeTimeVarVME.cpp | gradicosmo/MAF2 | 86ddf1f52a2de4479c09fd3f43dc321ff412af42 | [
"Apache-2.0"
] | null | null | null | Operations/mafOpDecomposeTimeVarVME.cpp | gradicosmo/MAF2 | 86ddf1f52a2de4479c09fd3f43dc321ff412af42 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
Program: MAF2
Module: mafOpDecomposeTimeVarVME
Authors: Roberto Mucci
Copyright (c) B3C
All rights reserved. See Copyright.txt or
http://www.scsitaly.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; w... | 27.608456 | 113 | 0.51881 | gradicosmo |
f57b8727750a198e0a1502f24d0edbd886da32e4 | 432 | cpp | C++ | source/signalzeug/source/ScopedConnection.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | source/signalzeug/source/ScopedConnection.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null | source/signalzeug/source/ScopedConnection.cpp | kateyy/libzeug | ffb697721cd8ef7d6e685fd5e2c655d711565634 | [
"MIT"
] | null | null | null |
#include <signalzeug/ScopedConnection.h>
namespace signalzeug
{
ScopedConnection::ScopedConnection()
{
}
ScopedConnection::ScopedConnection(const Connection & connection)
: m_connection(connection)
{
}
ScopedConnection::~ScopedConnection()
{
m_connection.disconnect();
}
void ScopedConnection::operator=(const ... | 14.896552 | 65 | 0.773148 | kateyy |
f583ea1463abd5da636caf8e2ca724603832cdf3 | 627 | cpp | C++ | examples/filesystem_symlink.cpp | GheisMohammadi/CppCommon | 8785825f1f6a38f52ba2b5ecbd25ab0e550e897a | [
"MIT"
] | 211 | 2016-10-09T04:10:21.000Z | 2022-03-22T19:46:55.000Z | examples/filesystem_symlink.cpp | GheisMohammadi/CppCommon | 8785825f1f6a38f52ba2b5ecbd25ab0e550e897a | [
"MIT"
] | 26 | 2019-04-15T09:04:06.000Z | 2022-02-18T10:52:44.000Z | examples/filesystem_symlink.cpp | GheisMohammadi/CppCommon | 8785825f1f6a38f52ba2b5ecbd25ab0e550e897a | [
"MIT"
] | 87 | 2018-12-28T14:01:03.000Z | 2022-03-29T09:14:48.000Z | /*!
\file filesystem_symlink.cpp
\brief Filesystem symlink example
\author Ivan Shynkarenka
\date 04.09.2016
\copyright MIT License
*/
#include "filesystem/symlink.h"
#include <iostream>
int main(int argc, char** argv)
{
CppCommon::Symlink symlink("example.lnk");
// Create a new symbolic... | 22.392857 | 78 | 0.676236 | GheisMohammadi |
f5889140110839388281084925b1664fd3e98579 | 92,347 | cc | C++ | test/aarch32/test-simulator-cond-rdlow-rnlow-operand-immediate-t32.cc | Componolit/android_external_vixl | 0cc1043fc66e89d6f0d538a10668a7b3bb1a372b | [
"BSD-3-Clause"
] | null | null | null | test/aarch32/test-simulator-cond-rdlow-rnlow-operand-immediate-t32.cc | Componolit/android_external_vixl | 0cc1043fc66e89d6f0d538a10668a7b3bb1a372b | [
"BSD-3-Clause"
] | null | null | null | test/aarch32/test-simulator-cond-rdlow-rnlow-operand-immediate-t32.cc | Componolit/android_external_vixl | 0cc1043fc66e89d6f0d538a10668a7b3bb1a372b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016, VIXL authors
// 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 conditions ... | 57.180805 | 81 | 0.394696 | Componolit |
f588a2ea22778a6a8a78380301933ddbd2ddf6d4 | 1,079 | hpp | C++ | addons/common/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/common/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/common/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | #define COMPONENT common
#include "\z\tfd\addons\main\script_mod.hpp"
#include "\a3\ui_f\hpp\defineCommonGrids.inc"
#include "\a3\ui_f\hpp\defineResincl.inc"
#include "\a3\ui_f\hpp\defineResinclDesign.inc"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
#ifdef DEBUG_ENABLED_COMMON
#define DEBUG_MODE_... | 29.972222 | 62 | 0.741427 | Task-Force-Dagger |
f58b4926d6c493a53ef80f4ba139bc6102c1b583 | 9,595 | cpp | C++ | opencl/test/unit_test/api/cl_create_program_with_built_in_kernels_tests.cpp | dkjiang2018/compute-runtime | 310947e6ddefc4bb9a7a268fc1ee8639155b730c | [
"MIT"
] | 1 | 2020-04-17T05:46:04.000Z | 2020-04-17T05:46:04.000Z | opencl/test/unit_test/api/cl_create_program_with_built_in_kernels_tests.cpp | dkjiang2018/compute-runtime | 310947e6ddefc4bb9a7a268fc1ee8639155b730c | [
"MIT"
] | null | null | null | opencl/test/unit_test/api/cl_create_program_with_built_in_kernels_tests.cpp | dkjiang2018/compute-runtime | 310947e6ddefc4bb9a7a268fc1ee8639155b730c | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/built_ins/built_ins.h"
#include "shared/source/compiler_interface/compiler_interface.h"
#include "shared/source/device/device.h"
#include "opencl/source/built_ins/built_in_ops_vme.h"
#include "opencl/sour... | 36.207547 | 201 | 0.726733 | dkjiang2018 |
f58d7a49622539388f0cd229f37cb285f99c8b16 | 7,014 | cpp | C++ | kcfi/llvm-kcfi/tools/clang/test/SemaTemplate/instantiate-local-class.cpp | IntelSTORM/Projects | b983417a5ca22c7679da5a1144b348863bea5698 | [
"Intel"
] | 1 | 2022-01-11T11:12:00.000Z | 2022-01-11T11:12:00.000Z | kcfi/llvm-kcfi/tools/clang/test/SemaTemplate/instantiate-local-class.cpp | IntelSTORMteam/Jurassic-Projects | b983417a5ca22c7679da5a1144b348863bea5698 | [
"Intel"
] | null | null | null | kcfi/llvm-kcfi/tools/clang/test/SemaTemplate/instantiate-local-class.cpp | IntelSTORMteam/Jurassic-Projects | b983417a5ca22c7679da5a1144b348863bea5698 | [
"Intel"
] | null | null | null | // RUN: %clang_cc1 -verify -std=c++11 %s
// RUN: %clang_cc1 -verify -std=c++11 -fdelayed-template-parsing %s
template<typename T>
void f0() {
struct X;
typedef struct Y {
T (X::* f1())(int) { return 0; }
} Y2;
Y2 y = Y();
}
template void f0<int>();
// PR5764
namespace PR5764 {
struct X {
template ... | 17.667506 | 98 | 0.546336 | IntelSTORM |
f58ed89cdf2bfd321a1e18b6f6f97985171e7f8a | 365 | cpp | C++ | mod.cpp | M3ales/ACE-Grenade-Select-Interaction | 793bfcdf223f6c680efa557a959a6a2cee10e692 | [
"Apache-2.0",
"MIT"
] | null | null | null | mod.cpp | M3ales/ACE-Grenade-Select-Interaction | 793bfcdf223f6c680efa557a959a6a2cee10e692 | [
"Apache-2.0",
"MIT"
] | null | null | null | mod.cpp | M3ales/ACE-Grenade-Select-Interaction | 793bfcdf223f6c680efa557a959a6a2cee10e692 | [
"Apache-2.0",
"MIT"
] | null | null | null | name = "ACE Vehicle Medical";
tooltipOwned="ACE Vehicle Medical";
picture = "";
logoSmall = "";
logo = "";
logoOver = "";
hideName = 0;
hidePicture = 0;
actionName = "Github";
action = "https://github.com/M3ales/MIRA_Vehicle_Medical";
description = "Adds ACE medical menu showing wounded to vehicles";
overview = "Adds A... | 30.416667 | 66 | 0.723288 | M3ales |
f590210649af57877b138696f4dae9488a1056d2 | 2,378 | hpp | C++ | vvvcfg/cfg_node_value.hpp | VyacheslavVanin/vvvcfg | 59c0974e3514087cc7c5a2dcd4851593343e8f06 | [
"MIT"
] | null | null | null | vvvcfg/cfg_node_value.hpp | VyacheslavVanin/vvvcfg | 59c0974e3514087cc7c5a2dcd4851593343e8f06 | [
"MIT"
] | 1 | 2018-01-02T10:23:33.000Z | 2018-01-02T10:23:33.000Z | vvvcfg/cfg_node_value.hpp | VyacheslavVanin/vvvcfg | 59c0974e3514087cc7c5a2dcd4851593343e8f06 | [
"MIT"
] | null | null | null | #pragma once
#include <ostream>
#include <string>
#include <unordered_map>
#include <vector>
#include "any.hpp"
namespace vvv {
struct Value {
using list_type = std::vector<Value>;
using dict_type = std::unordered_map<std::string, Value>;
enum class DATA_TYPE { STRING, LIST, DICT };
Value();
exp... | 27.333333 | 76 | 0.616905 | VyacheslavVanin |
60d0415c1430e91e140bfc42645ff75f6934a80f | 1,026 | cpp | C++ | Source/Clem/Rendering_/Shader.cpp | ShenMian/Clementine | a4d733e5f89141a7f00a043c73f0819eb3e277a8 | [
"Apache-2.0"
] | 46 | 2020-08-27T14:30:50.000Z | 2021-12-10T05:45:07.000Z | Source/Clem/Rendering_/Shader.cpp | ShenMian/Clementine | a4d733e5f89141a7f00a043c73f0819eb3e277a8 | [
"Apache-2.0"
] | 2 | 2021-10-08T01:04:56.000Z | 2021-12-10T08:20:08.000Z | Source/Clem/Rendering_/Shader.cpp | ShenMian/Clementine | a4d733e5f89141a7f00a043c73f0819eb3e277a8 | [
"Apache-2.0"
] | 6 | 2020-09-05T08:41:13.000Z | 2022-03-26T02:31:26.000Z | // Copyright 2021 SMS
// License(Apache-2.0)
#include "Shader.h"
#include "Renderer.h"
#include <cassert>
#include "OpenGL/GLShader.h"
#include "Vulkan/VKShader.h"
namespace clem
{
std::unordered_map<Shader_::Stage, const char*> Shader_::extension = {
{Shader_::Stage::Vertex, "vert"},
{Shader_::Stage::Geom... | 19.358491 | 78 | 0.650097 | ShenMian |
60d07608348e19c3b01bbea9fc16084afb6a0496 | 4,880 | cpp | C++ | geos/src/Distance.cpp | jusirkka/qopencpn | 5e514ae8f43199c4d52278df6e4df85c46bd1ddc | [
"ISC",
"X11",
"MIT"
] | 2 | 2021-07-09T14:13:55.000Z | 2022-02-11T06:41:03.000Z | geos/src/Distance.cpp | jusirkka/qopencpn | 5e514ae8f43199c4d52278df6e4df85c46bd1ddc | [
"ISC",
"X11",
"MIT"
] | null | null | null | geos/src/Distance.cpp | jusirkka/qopencpn | 5e514ae8f43199c4d52278df6e4df85c46bd1ddc | [
"ISC",
"X11",
"MIT"
] | 2 | 2022-02-11T06:41:05.000Z | 2022-03-17T09:29:46.000Z | /**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2018 Paul Ramsey <pramsey@cleverlephant.ca>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public... | 27.111111 | 90 | 0.456352 | jusirkka |
60d21cac90d8c3de34318a088425a3b62007b34f | 7,541 | hpp | C++ | debug/tracing.hpp | v1ne/v1util | 8c70d7b7517b90d62f3adf3a64df213e45818fbe | [
"BSD-2-Clause"
] | null | null | null | debug/tracing.hpp | v1ne/v1util | 8c70d7b7517b90d62f3adf3a64df213e45818fbe | [
"BSD-2-Clause"
] | null | null | null | debug/tracing.hpp | v1ne/v1util | 8c70d7b7517b90d62f3adf3a64df213e45818fbe | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "v1util/base/macromagic.hpp"
#include "v1util/base/platform.hpp"
#include "v1util/stl-plus/filesystem-fwd.hpp"
#include <stddef.h>
#include <cstdint>
namespace v1util::tracing {
V1_PUBLIC void init(size_t bufferCapacityB);
V1_PUBLIC void destroy();
V1_PUBLIC void setStarted(bool started);
V1_P... | 40.983696 | 100 | 0.647925 | v1ne |
60d44ad99b9ab40dc39befd9c83450e025e6d713 | 449 | hpp | C++ | src/ember/config.hpp | apples/ember_engine | 26ddb8947a32e42fafc5c2c0b404f3f407c1dd95 | [
"MIT"
] | null | null | null | src/ember/config.hpp | apples/ember_engine | 26ddb8947a32e42fafc5c2c0b404f3f407c1dd95 | [
"MIT"
] | 1 | 2020-10-03T03:47:09.000Z | 2020-10-03T03:47:09.000Z | src/ember/config.hpp | apples/ld47 | 660ae705a7315ee438d5f509e44d94ff1c16409a | [
"MIT"
] | null | null | null | #pragma once
#include "json.hpp"
#include "json_serializers.hpp"
#include <string>
#include "reflection_start.hpp"
namespace ember::config {
using json_serializers::basic::from_json;
using json_serializers::basic::to_json;
struct display_t {
int width;
int height;
};
REFLECT(display_t, (width)(height))
s... | 15.482759 | 41 | 0.730512 | apples |
60d485362c536a851936422ba30f21ac2b3f4947 | 37 | hpp | C++ | src/boost_range_functions.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_range_functions.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_range_functions.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/range/functions.hpp>
| 18.5 | 36 | 0.783784 | miathedev |
60d4fc88ce739737a3dd5ec3d6900c457f2e6851 | 6,638 | cpp | C++ | hiro/windows/widget/hex-edit.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 10 | 2019-12-19T01:19:41.000Z | 2021-02-18T16:30:29.000Z | hiro/windows/widget/hex-edit.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | hiro/windows/widget/hex-edit.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | #if defined(Hiro_HexEdit)
namespace hiro {
auto pHexEdit::construct() -> void {
hwnd = CreateWindowEx(
WS_EX_CLIENTEDGE, L"EDIT", L"",
WS_CHILD | WS_TABSTOP | ES_AUTOHSCROLL | ES_READONLY | ES_MULTILINE | ES_WANTRETURN,
0, 0, 0, 0, _parentHandle(), nullptr, GetModuleHandle(0), 0
);
scrollBar = Creat... | 27.204918 | 96 | 0.6279 | 13824125580 |
60d7bf333581bafe4235fb73564f7a93cc894c25 | 750 | cc | C++ | 洛谷/省选-/P2657-tle.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 67 | 2019-07-14T05:38:41.000Z | 2021-12-23T11:52:51.000Z | 洛谷/省选-/P2657-tle.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | null | null | null | 洛谷/省选-/P2657-tle.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 12 | 2020-01-16T10:48:01.000Z | 2021-06-11T16:49:04.000Z | /*
* Author : OFShare
* E-mail : OFShare@outlook.com
* Created Time : 2020-04-27 13:32:23 PM
* File Name : P2657.cc
*/
#include <bits/stdc++.h>
#define ll long long
void debug() {
#ifdef Acui
freopen("data.in", "r", stdin);
freopen("data.out", "w", stdout);
#endif
}
ll A, B, cnt;
... | 17.44186 | 56 | 0.506667 | OFShare |
60d8fdec5b66c7acfe793f5dabf11b7f4d525193 | 589 | hpp | C++ | include/forecast_io/parsers/ForecastAttribute.hpp | Crystalix007/DarkSky-CPP | 10497ff292efdc460a67bc5dc44811b3a1459beb | [
"Apache-2.0"
] | null | null | null | include/forecast_io/parsers/ForecastAttribute.hpp | Crystalix007/DarkSky-CPP | 10497ff292efdc460a67bc5dc44811b3a1459beb | [
"Apache-2.0"
] | null | null | null | include/forecast_io/parsers/ForecastAttribute.hpp | Crystalix007/DarkSky-CPP | 10497ff292efdc460a67bc5dc44811b3a1459beb | [
"Apache-2.0"
] | null | null | null | #ifndef FORECASTATTRIBUTE_HPP
#define FORECASTATTRIBUTE_HPP
#include <string>
namespace forecast_io
{
namespace parsers
{
const std::string ForecastAttribute_NAME = "ForecastAttribute";
enum ForecastAttribute
{
ALERTS,
CURRENTLY,
DAILY,
FLAGS,
HOURLY,
LATITUDE,
LONGITUDE,
MINUTELY,
OFFSET,
TIMEZONE,
For... | 15.918919 | 84 | 0.787776 | Crystalix007 |
60d9e10be68d34cbbcd6a42014c56814187a2eae | 4,474 | cpp | C++ | source/logging/processors/async_wait_processor.cpp | pthis/CppLogging | 5c76bceef12eec705bf07b28c09d74023c1c3bb0 | [
"MIT"
] | 97 | 2016-10-09T04:10:25.000Z | 2022-03-30T21:23:25.000Z | source/logging/processors/async_wait_processor.cpp | pthis/CppLogging | 5c76bceef12eec705bf07b28c09d74023c1c3bb0 | [
"MIT"
] | 4 | 2019-10-25T01:45:13.000Z | 2021-12-15T04:09:58.000Z | source/logging/processors/async_wait_processor.cpp | pthis/CppLogging | 5c76bceef12eec705bf07b28c09d74023c1c3bb0 | [
"MIT"
] | 34 | 2018-12-28T14:01:46.000Z | 2021-11-24T17:22:09.000Z | /*!
\file async_wait_processor.cpp
\brief Asynchronous wait logging processor implementation
\author Ivan Shynkarenka
\date 01.08.2016
\copyright MIT License
*/
#include "logging/processors/async_wait_processor.h"
#include "errors/fatal.h"
#include "threads/thread.h"
#include <cassert>
namespace... | 25.276836 | 227 | 0.602146 | pthis |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.