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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a78b40121b11630c04c2cebd6c24bfca4254f994 | 4,691 | cpp | C++ | vpr/src/util/token.cpp | HackerFoo/vtr-verilog-to-routing | 9bf3c1004e8a7c9f3756167905fd2e71218158d0 | [
"MIT"
] | 1 | 2018-02-17T00:27:50.000Z | 2018-02-17T00:27:50.000Z | vpr/src/util/token.cpp | HackerFoo/vtr-verilog-to-routing | 9bf3c1004e8a7c9f3756167905fd2e71218158d0 | [
"MIT"
] | 12 | 2015-06-26T19:47:14.000Z | 2015-07-06T17:29:29.000Z | vpr/src/util/token.cpp | HackerFoo/vtr-verilog-to-routing | 9bf3c1004e8a7c9f3756167905fd2e71218158d0 | [
"MIT"
] | null | null | null | /**
* Jason Luu
* July 22, 2009
* Tokenizer
*/
#include <cstring>
using namespace std;
#include "vtr_assert.h"
#include "vtr_log.h"
#include "vtr_util.h"
#include "vtr_memory.h"
#include "token.h"
#include "read_xml_util.h"
enum e_token_type GetTokenTypeFromChar(const enum e_token_type cur_token_type,
const ... | 20.941964 | 78 | 0.634833 | HackerFoo |
a78b66e2e56304f68181930aa23944e5c880640a | 1,381 | cpp | C++ | lc/LC135.cpp | 4llenchan/dsa | 314991a32a24578dbf48e82ddded95804c95aa10 | [
"MIT"
] | null | null | null | lc/LC135.cpp | 4llenchan/dsa | 314991a32a24578dbf48e82ddded95804c95aa10 | [
"MIT"
] | null | null | null | lc/LC135.cpp | 4llenchan/dsa | 314991a32a24578dbf48e82ddded95804c95aa10 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <algorithm>
#include <numeric>
#include <unordered_map>
#include <vector>
#include "Common.h"
using namespace std;
/*
* https://leetcode-cn.com/problems/candy/
* 两次遍历的贪心算法
*/
class Solution {
public:
int candy(vector<int> &ratings) {
int size = ratings.size();
... | 22.274194 | 58 | 0.527154 | 4llenchan |
a78bd64e69959b6fd7716b606679e10281c9684d | 2,422 | cpp | C++ | dmult8.cpp | thomwiggers/aarch64_multipliers | d47fbaf8ff0580efa57773c27b3401f4df796940 | [
"CC0-1.0"
] | 2 | 2019-01-09T14:45:07.000Z | 2020-11-30T13:10:58.000Z | dmult8.cpp | thomwiggers/aarch64_multipliers | d47fbaf8ff0580efa57773c27b3401f4df796940 | [
"CC0-1.0"
] | null | null | null | dmult8.cpp | thomwiggers/aarch64_multipliers | d47fbaf8ff0580efa57773c27b3401f4df796940 | [
"CC0-1.0"
] | null | null | null | #include "bit.hpp"
void dmult8(bit* h, const bit* f, const bit* g) {
bit t1 = f[3] * g[3];
bit t2 = f[3] * g[0];
bit t3 = f[3] * g[1];
bit t4 = f[3] * g[2];
bit t5 = f[0] * g[3];
bit t6 = f[1] * g[3];
bit t7 = f[2] * g[3];
bit t8 = f[2] * g[2];
bit t9 = f[2] * g[0];
bit t10 = f[2] * g[1];
bit t11 = f[0] * g[2];
bit t1... | 20.016529 | 49 | 0.507432 | thomwiggers |
a78c512809b5dadc82b175bc1c92c21066af863b | 1,690 | hh | C++ | track/detail/UnitTrackingStorage.i.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | track/detail/UnitTrackingStorage.i.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | track/detail/UnitTrackingStorage.i.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | //---------------------------------*-C++-*-----------------------------------//
/*!
* \file track/detail/UnitTrackingStorage.i.hh
* \brief UnitTrackingStorage inline method definitions
* \note Copyright (c) 2020 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
//------------------------------------------------... | 28.166667 | 79 | 0.464497 | celeritas-project |
a78cf1e9a5cc80c2bf0dfcea28d0f8ae551178f5 | 301 | cpp | C++ | cluster.cpp | Recmo/depgraph | 102eeecb5f875d38dedbd0d777bbb212e143dfa9 | [
"MIT"
] | 1 | 2020-10-06T03:25:40.000Z | 2020-10-06T03:25:40.000Z | cluster.cpp | Recmo/depgraph | 102eeecb5f875d38dedbd0d777bbb212e143dfa9 | [
"MIT"
] | null | null | null | cluster.cpp | Recmo/depgraph | 102eeecb5f875d38dedbd0d777bbb212e143dfa9 | [
"MIT"
] | null | null | null | #include "cluster.h"
#include "varint.h"
Cluster::Cluster()
{
}
Cluster::~Cluster()
{
}
void Cluster::to_bip(char*& cursor)
{
}
void Cluster::from_bip(char*& cursor)
{
set_label(read_string(cursor));
}
ostream& operator<<(ostream& out, const Cluster& in)
{
out << in.label();
return out;
}
| 10.75 | 52 | 0.654485 | Recmo |
a79021c15b4819f81d36b56ff31fc8357738162e | 38,074 | cpp | C++ | src/syntax/compiler.cpp | srijan-paul/snap | 93bd7bed27008910bdce706f4545a06c3445e242 | [
"MIT"
] | 29 | 2021-02-01T15:36:40.000Z | 2022-03-27T08:28:28.000Z | src/syntax/compiler.cpp | srijan-paul/snap | 93bd7bed27008910bdce706f4545a06c3445e242 | [
"MIT"
] | 12 | 2021-01-23T15:21:10.000Z | 2022-03-27T14:13:28.000Z | src/syntax/compiler.cpp | srijan-paul/snap | 93bd7bed27008910bdce706f4545a06c3445e242 | [
"MIT"
] | 3 | 2021-03-02T09:13:25.000Z | 2021-07-26T11:41:10.000Z | #include "common.hpp"
#include "debug.hpp"
#include "../str_format.hpp"
#include <compiler.hpp>
#include <cstring>
#include <string>
#include <vm.hpp>
#define TOK2NUM(t) VYSE_NUM(std::stod(t.raw(*m_source)))
#define THIS_BLOCK (m_codeblock->block())
#define ERROR(...) (error_at_token(kt::format_str(__VA_ARGS__).c_str(... | 29.310239 | 100 | 0.665021 | srijan-paul |
042778bbd3d328839c1f464f4b7092079e75f711 | 33,749 | cc | C++ | engines/ep/tests/module_tests/dcp_stream_sync_repl_test.cc | rohansuri/kv_engine | 6d377448a787ce5dc268c95def2850e36f5f1328 | [
"BSD-3-Clause"
] | null | null | null | engines/ep/tests/module_tests/dcp_stream_sync_repl_test.cc | rohansuri/kv_engine | 6d377448a787ce5dc268c95def2850e36f5f1328 | [
"BSD-3-Clause"
] | null | null | null | engines/ep/tests/module_tests/dcp_stream_sync_repl_test.cc | rohansuri/kv_engine | 6d377448a787ce5dc268c95def2850e36f5f1328 | [
"BSD-3-Clause"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2018 Couchbase, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | 38.570286 | 80 | 0.63993 | rohansuri |
042b4f6c5070297ffc9dc6a9a919e97976d5a3ab | 25,366 | hpp | C++ | include/LightningJSON/LightningJSON.hpp | ShadauxCat/LightningJSON | ba0b53c4b18d3360a761a7ad7e20ddbe6ac630bf | [
"MIT"
] | 1 | 2021-07-21T17:03:38.000Z | 2021-07-21T17:03:38.000Z | include/LightningJSON/LightningJSON.hpp | ShadauxCat/LightningJSON | ba0b53c4b18d3360a761a7ad7e20ddbe6ac630bf | [
"MIT"
] | null | null | null | include/LightningJSON/LightningJSON.hpp | ShadauxCat/LightningJSON | ba0b53c4b18d3360a761a7ad7e20ddbe6ac630bf | [
"MIT"
] | null | null | null | #pragma once
/*
* Copyright (C) 2020 Jaedyn K. Draper
*
* 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, mod... | 27.874725 | 161 | 0.685918 | ShadauxCat |
042df8fb4e525f45ef7c9287b0dac892d3e43807 | 912 | cpp | C++ | Thread/ThreadWorker.cpp | ReliaSolve/acl | a0b305e7bf6a2d86839fb6f00d7d8fbf2bd583b9 | [
"MIT"
] | null | null | null | Thread/ThreadWorker.cpp | ReliaSolve/acl | a0b305e7bf6a2d86839fb6f00d7d8fbf2bd583b9 | [
"MIT"
] | null | null | null | Thread/ThreadWorker.cpp | ReliaSolve/acl | a0b305e7bf6a2d86839fb6f00d7d8fbf2bd583b9 | [
"MIT"
] | null | null | null | /**
* \copyright Copyright 2021 Aqueti, Inc. All rights reserved.
* \license This project is released under the MIT Public License.
**/
/******************************************************************************
*
* \file ThreadWorker.cpp
* \brief
* \author Andrew Ferg
*
* Copyright Aqueti 2019
*
... | 19.826087 | 79 | 0.551535 | ReliaSolve |
042f57116906e71cd70934a76e07f29e306daf67 | 30,948 | cpp | C++ | tests/unit/security/transform/private-key.t.cpp | named-data/ndn-cxx | d1b6f95864d9ca6a60d632e4f0565d665578a048 | [
"OpenSSL"
] | 106 | 2015-01-06T10:08:29.000Z | 2022-02-27T13:40:16.000Z | tests/unit/security/transform/private-key.t.cpp | named-data/ndn-cxx | d1b6f95864d9ca6a60d632e4f0565d665578a048 | [
"OpenSSL"
] | 6 | 2015-10-15T23:21:06.000Z | 2016-12-20T19:03:10.000Z | tests/unit/security/transform/private-key.t.cpp | named-data/ndn-cxx | d1b6f95864d9ca6a60d632e4f0565d665578a048 | [
"OpenSSL"
] | 147 | 2015-01-15T15:07:29.000Z | 2022-02-03T13:08:43.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2021 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... | 42.22101 | 112 | 0.804317 | named-data |
04318d6c38883d021c4a33f68ab64ef65ea4cd44 | 30,092 | cpp | C++ | dist/dep/SuperStash/SuperStash/PapyrusSuperStash.cpp | Verteiron/SuperStash | 4592e5f2fe06e02a0b2abc3e289a9f323c12969f | [
"Unlicense"
] | 7 | 2016-02-03T04:50:53.000Z | 2021-06-03T19:36:06.000Z | dist/dep/SuperStash/SuperStash/PapyrusSuperStash.cpp | Verteiron/SuperStash | 4592e5f2fe06e02a0b2abc3e289a9f323c12969f | [
"Unlicense"
] | 8 | 2016-01-22T16:48:15.000Z | 2017-02-27T21:53:29.000Z | dist/dep/SuperStash/SuperStash/PapyrusSuperStash.cpp | Verteiron/SuperStash | 4592e5f2fe06e02a0b2abc3e289a9f323c12969f | [
"Unlicense"
] | 3 | 2018-02-06T04:04:48.000Z | 2021-06-03T19:36:07.000Z | #include <direct.h>
#include <functional>
#include <random>
#include <algorithm>
#include "skse/GameData.h"
#include "skse/GameRTTI.h"
#include "skse/PapyrusWornObject.h"
#include "skse/PapyrusSpell.h"
#include "json/json.h"
#include "fileutils.h"
#include "itemutils.h"
#include "jcutils.h"
#include "PapyrusSuperSt... | 31.910923 | 224 | 0.714675 | Verteiron |
0433461ac63415215708e9918cc6b534c007f6bc | 2,492 | hpp | C++ | sources/RenderSystem/OpenGLES/spOpenGLES2RenderSystem.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 14 | 2015-08-16T21:05:20.000Z | 2019-08-21T17:22:01.000Z | sources/RenderSystem/OpenGLES/spOpenGLES2RenderSystem.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | null | null | null | sources/RenderSystem/OpenGLES/spOpenGLES2RenderSystem.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 3 | 2020-02-15T09:17:41.000Z | 2020-05-21T14:10:40.000Z | /*
* OpenGL|ES 2 render system header
*
* This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns)
* See "SoftPixelEngine.hpp" for license information.
*/
#ifndef __SP_RENDERER_OPENGLES2_H__
#define __SP_RENDERER_OPENGLES2_H__
#include "Base/spStandard.hpp"
#if defined(SP_COMPILE_WIT... | 23.509434 | 92 | 0.564607 | rontrek |
04334f863ceddf66ab61f78dea7dc401b9ba3f25 | 5,543 | cxx | C++ | oss_test/graphlab/small_set_test.cxx | venkattgg/venkey | 796b9bdfb2fa1b881d82080754643c7e68629cd2 | [
"BSD-3-Clause"
] | 493 | 2016-07-11T13:35:24.000Z | 2022-02-15T13:04:29.000Z | oss_test/graphlab/small_set_test.cxx | venkattgg/venkey | 796b9bdfb2fa1b881d82080754643c7e68629cd2 | [
"BSD-3-Clause"
] | 27 | 2016-07-13T20:01:07.000Z | 2022-02-01T18:55:28.000Z | oss_test/graphlab/small_set_test.cxx | venkattgg/venkey | 796b9bdfb2fa1b881d82080754643c7e68629cd2 | [
"BSD-3-Clause"
] | 229 | 2016-07-12T10:39:54.000Z | 2022-02-15T13:04:31.000Z | /*
* Copyright (c) 2009 Carnegie Mellon University.
* 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.... | 29.328042 | 78 | 0.630525 | venkattgg |
043879212d2161a3ffec93db622a43ac1fa05aea | 6,644 | cpp | C++ | src/adcs/rwa.cpp | Pathfinder-for-Pitch-Momentum-Bias/FlightSoftware | 7256f52f7c5887af7fc8679b163629d1235fa1bb | [
"MIT"
] | 6 | 2020-02-24T07:46:22.000Z | 2021-09-26T22:57:05.000Z | src/adcs/rwa.cpp | pathfinder-for-autonomous-navigation/FlightSoftware | a3c30b10e2a28d17a2de0180c996bcc5f9ada7c7 | [
"MIT"
] | 537 | 2019-05-29T04:31:30.000Z | 2022-03-06T17:18:56.000Z | src/adcs/rwa.cpp | Pathfinder-for-Pitch-Momentum-Bias/FlightSoftware | 7256f52f7c5887af7fc8679b163629d1235fa1bb | [
"MIT"
] | 5 | 2020-04-01T17:29:37.000Z | 2022-02-25T22:26:14.000Z | //
// src/adcs/rwa.cpp
// FlightSoftware
//
// Contributors:
// Kyle Krol kpk63@cornell.edu
//
// Pathfinder for Autonomous Navigation
// Space Systems Design Studio
// Cornell Univeristy
//
// TODO:
// - transform sensor readings in to the body frame
#ifdef RWA_LOG_LEVEL
#undef LOG_LEVEL
#define LOG_LEVEL RW... | 28.152542 | 108 | 0.659392 | Pathfinder-for-Pitch-Momentum-Bias |
04397f6084bea12cc87ab23ff745981aaef5f98c | 2,523 | cp | C++ | Linux/Sources/Application/Preferences_Dialog/CPrefsAlerts.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Linux/Sources/Application/Preferences_Dialog/CPrefsAlerts.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Linux/Sources/Application/Preferences_Dialog/CPrefsAlerts.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. 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 re... | 28.670455 | 129 | 0.660325 | mulberry-mail |
043b5dccaafaf29ac547177ae83aa1a40abd9fda | 2,549 | cpp | C++ | src/kits/translation/Translator.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/kits/translation/Translator.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/kits/translation/Translator.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2002-2015, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Michael Wilber
* Axel Dörfler, axeld@pinc-software.de
*/
#include "TranslatorRosterPrivate.h"
#include <Translator.h>
BTranslator::BTranslator()
:
fOwningRoster(NULL),
fID(0),
fR... | 22.359649 | 82 | 0.74539 | Kirishikesan |
043ba3e0e659b619bee989f01184f5c32d52332e | 98 | cpp | C++ | src/share/concurrent/container/ListDeleter.cpp | kkysen/SiliconScratchCpp | 0e3248403c4198fd4ba55ce72a259f5530454577 | [
"MIT"
] | 1 | 2019-06-19T06:03:03.000Z | 2019-06-19T06:03:03.000Z | src/share/concurrent/container/ListDeleter.cpp | kkysen/SiliconScratchCpp | 0e3248403c4198fd4ba55ce72a259f5530454577 | [
"MIT"
] | null | null | null | src/share/concurrent/container/ListDeleter.cpp | kkysen/SiliconScratchCpp | 0e3248403c4198fd4ba55ce72a259f5530454577 | [
"MIT"
] | null | null | null | //
// Created by Khyber on 5/31/2019.
//
#include "src/share/concurrent/container/ListDeleter.h"
| 16.333333 | 55 | 0.714286 | kkysen |
043c111d892737f5bc27f822506430fe64f6c7ca | 632 | cpp | C++ | src/Graphics/Clipping.cpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | 1 | 2022-01-24T18:15:56.000Z | 2022-01-24T18:15:56.000Z | src/Graphics/Clipping.cpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | null | null | null | src/Graphics/Clipping.cpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | null | null | null | #include "Clipping.hpp"
namespace Ondine::Graphics {
void Clipping::init(
VulkanContext &graphicsContext,
float clipFactor, float radius) {
mUBO.init(
graphicsContext.device(), sizeof(mData),
(int)VulkanBufferFlag::UniformBuffer);
uniform.init(
graphicsContext.device(),
graphicsContext.descri... | 23.407407 | 60 | 0.727848 | llGuy |
043fccee888404d5d92fd71df7c10b62c2927dc8 | 2,269 | cpp | C++ | tyrtech/tyrdbs/node.cpp | hzeba/tyrdbs | 43496918f36507643326821cdeefd2657410f1da | [
"Apache-2.0"
] | 23 | 2020-04-17T18:19:32.000Z | 2021-03-27T07:03:50.000Z | tyrtech/tyrdbs/node.cpp | hzeba/tyrdbs | 43496918f36507643326821cdeefd2657410f1da | [
"Apache-2.0"
] | null | null | null | tyrtech/tyrdbs/node.cpp | hzeba/tyrdbs | 43496918f36507643326821cdeefd2657410f1da | [
"Apache-2.0"
] | 4 | 2020-04-17T18:18:40.000Z | 2021-04-27T21:38:18.000Z | #include <common/branch_prediction.h>
#include <common/exception.h>
#include <tyrdbs/node.h>
#include <lz4.h>
#include <cassert>
namespace tyrtech::tyrdbs {
void node::load(const char* source, uint32_t source_size)
{
assert(likely(m_key_count == static_cast<uint16_t>(-1)));
int32_t r = LZ4_decompress_safe... | 19.560345 | 80 | 0.588806 | hzeba |
04426e43ddd09a1177753f331a53eee811412836 | 23,807 | cpp | C++ | src/gigablast/PageReindex.cpp | fossabot/kblast | 37b89fd6ba5ce429be5a69e2c6160da8a6aa21e6 | [
"Apache-2.0"
] | null | null | null | src/gigablast/PageReindex.cpp | fossabot/kblast | 37b89fd6ba5ce429be5a69e2c6160da8a6aa21e6 | [
"Apache-2.0"
] | null | null | null | src/gigablast/PageReindex.cpp | fossabot/kblast | 37b89fd6ba5ce429be5a69e2c6160da8a6aa21e6 | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
//
// Copyright 2000-2014 Matt Wells
// Copyright 2004-2013 Gigablast, Inc.
// Copyright 2013 Web Research Properties, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obta... | 27.301606 | 75 | 0.596967 | fossabot |
04432b156c7253de4ae2c0fb220a45a65f60ee92 | 2,091 | cc | C++ | code/foundation/debug/debughandler.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/foundation/debug/debughandler.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/foundation/debug/debughandler.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// debughandler.cc
// (C) 2008 Radon Labs GmbH
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "debug/debughandler.... | 24.313953 | 83 | 0.501674 | gscept |
044452cae1d45e0ccdc0e7523fea1f9b8ec5e9b3 | 1,664 | cpp | C++ | unittests/clangd/FSTests.cpp | Szelethus/clang-tools-extra | 4bff9e7bc96ac495d7b6b2e8cc6c6f629e824022 | [
"Apache-2.0"
] | 16 | 2018-11-28T12:05:20.000Z | 2021-11-08T09:47:46.000Z | unittests/clangd/FSTests.cpp | Szelethus/clang-tools-extra | 4bff9e7bc96ac495d7b6b2e8cc6c6f629e824022 | [
"Apache-2.0"
] | 4 | 2018-11-30T19:12:21.000Z | 2019-10-04T17:37:07.000Z | clangd/unittests/FSTests.cpp | dragon-tc-tmp/clang-tools-extra | e16e704b6f7d4185e55942883506c1bb9280cd2d | [
"Apache-2.0"
] | 15 | 2019-02-01T20:10:43.000Z | 2022-03-26T11:52:37.000Z | //===-- FSTests.cpp - File system related tests -----------------*- C++ -*-===//
//
// 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
//
//===---------------------------... | 32.627451 | 80 | 0.624399 | Szelethus |
044577bceb2a6b1a5a99e984de52ab5715748dee | 92,561 | cpp | C++ | src/opr/impl/dnn/convolution.cpp | aspnetcs/MegEngine | 1cfae1494c9e7ba54ff7164700f5de99d632be90 | [
"Apache-2.0"
] | null | null | null | src/opr/impl/dnn/convolution.cpp | aspnetcs/MegEngine | 1cfae1494c9e7ba54ff7164700f5de99d632be90 | [
"Apache-2.0"
] | null | null | null | src/opr/impl/dnn/convolution.cpp | aspnetcs/MegEngine | 1cfae1494c9e7ba54ff7164700f5de99d632be90 | [
"Apache-2.0"
] | null | null | null | /**
* \file src/opr/impl/dnn/convolution.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "... | 40.121803 | 89 | 0.569257 | aspnetcs |
0447fac99f1324e984225268fcd10d12286272ba | 2,529 | cpp | C++ | kernel/system/node/Terminal.cpp | pro-hacker64/pranaOS | 01e5f0ba7fc7b561a08ba60ea6b3890202ac97c7 | [
"BSD-2-Clause"
] | null | null | null | kernel/system/node/Terminal.cpp | pro-hacker64/pranaOS | 01e5f0ba7fc7b561a08ba60ea6b3890202ac97c7 | [
"BSD-2-Clause"
] | null | null | null | kernel/system/node/Terminal.cpp | pro-hacker64/pranaOS | 01e5f0ba7fc7b561a08ba60ea6b3890202ac97c7 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, krishpranav
*
* SPDX-License-Identifier: BSD-2-Clause
*/
// includes
#include <assert.h>
#include "system/node/Handle.h"
#include "system/node/Terminal.h"
FsTerminal::FsTerminal() : FsNode(J_FILE_TYPE_TERMINAL) {}
bool FsTerminal::can_read(FsHandle &handle)
{
if (handle.has_flag(J_OPE... | 20.395161 | 85 | 0.573745 | pro-hacker64 |
04483acc24c83c398f3697a904add51650e374d6 | 2,259 | cpp | C++ | test/azuik/algorithm/sequential_test.cpp | abirbasak/tisa | db281d8b9c5e91ce3297abc42e8eb700b305e678 | [
"Apache-2.0"
] | null | null | null | test/azuik/algorithm/sequential_test.cpp | abirbasak/tisa | db281d8b9c5e91ce3297abc42e8eb700b305e678 | [
"Apache-2.0"
] | null | null | null | test/azuik/algorithm/sequential_test.cpp | abirbasak/tisa | db281d8b9c5e91ce3297abc42e8eb700b305e678 | [
"Apache-2.0"
] | null | null | null |
#include <azuik/algorithm/sequential.hpp>
#include <azuik/tool/unit_test.hpp>
#include <vector>
AZUIK_TEST_SUIT(sequential)
{
using namespace azuik;
AZUIK_TEST_CASE(all_of)
{
std::vector<int> v1{1, 2, 3, 4, 5};
std::vector<int> v2{2, 2, 2, 2, 2};
AZUIK_TEST(core::all_of(v1, 3) == fa... | 34.753846 | 87 | 0.518814 | abirbasak |
044af35d57322e59586da7e48b01a369c15e4555 | 4,449 | cpp | C++ | gcommon/source/grender.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | gcommon/source/grender.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | gcommon/source/grender.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | //
// grender.cpp
// GCommon
//
// Created by David Coen on 2011 05 30
// Copyright Pleasure seeking morons 2011. All rights reserved.
//
#include "grender.h"
#include "gassert.h"
#ifdef IPHONE
#include "giphonerender.h"
#elif WIN32
#include "gwin32windowopengl.h"
#endif
///////////////////////////////////////... | 20.78972 | 134 | 0.772758 | DavidCoenFish |
044b127385419a5c0bb1c72dd5151ca2cbdbfd52 | 2,721 | cpp | C++ | folders/DataStructures/C++/biTree-to-doublyLL.cpp | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | 1 | 2020-10-06T01:20:07.000Z | 2020-10-06T01:20:07.000Z | folders/DataStructures/C++/biTree-to-doublyLL.cpp | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | null | null | null | folders/DataStructures/C++/biTree-to-doublyLL.cpp | angelopassaro/Hacktoberfest-1 | 21f90f5d49efba9b1a27f4d9b923f5017ab43f0e | [
"Apache-2.0"
] | null | null | null | // A simple inorder traversal based
// program to convert a Binary Tree to DLL
#include <bits/stdc++.h>
using namespace std;
// A tree node
class node
{
public:
int data;
node *left, *right;
};
// A utility function to create
// a new tree node
node *newNode(int data)
{
n... | 22.675 | 57 | 0.551268 | angelopassaro |
044b764a7dc6e271038d4093d75ef205d1cd8a47 | 19,569 | cpp | C++ | platform/sdl/gl_sdl.cpp | InsanityBringer/ChocolateDescent | 1533932b9202153b2a1872c7000a8573d1d4ed0a | [
"MIT"
] | 22 | 2019-08-19T21:09:29.000Z | 2022-03-25T23:19:15.000Z | platform/sdl/gl_sdl.cpp | InsanityBringer/ChocolateDescent | 1533932b9202153b2a1872c7000a8573d1d4ed0a | [
"MIT"
] | 6 | 2019-11-08T22:17:03.000Z | 2022-03-10T05:02:59.000Z | platform/sdl/gl_sdl.cpp | InsanityBringer/ChocolateDescent | 1533932b9202153b2a1872c7000a8573d1d4ed0a | [
"MIT"
] | 6 | 2019-08-24T08:03:14.000Z | 2022-02-04T15:04:52.000Z | /*
The code contained in this file is not the property of Parallax Software,
and is not under the terms of the Parallax Software Source license.
Instead, it is released under the terms of the MIT License.
*/
#include <stdio.h>
#include <stdlib.h>
#include "SDL.h"
#include "SDL_video.h"
#include "gl_sdl.h"
#include "... | 47.963235 | 219 | 0.769789 | InsanityBringer |
044bc714aec64dbebc9f319ffd4561e44964ec91 | 1,448 | cpp | C++ | Avni/Engine/GameEngine/Scene/Rectangle.cpp | avinashdamodhare/Avni | 014287c8500ae11a0e6c5141713735556d511414 | [
"MIT"
] | null | null | null | Avni/Engine/GameEngine/Scene/Rectangle.cpp | avinashdamodhare/Avni | 014287c8500ae11a0e6c5141713735556d511414 | [
"MIT"
] | null | null | null | Avni/Engine/GameEngine/Scene/Rectangle.cpp | avinashdamodhare/Avni | 014287c8500ae11a0e6c5141713735556d511414 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Rectangle
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "Rectangle.h"
namespace Avni
{
Rectangle::Rectangle(Vector3D firstPoint, ... | 26.327273 | 110 | 0.578039 | avinashdamodhare |
044bd1e314bfef54c26248f7ad05650453e6aa6b | 1,606 | cpp | C++ | toml/src/holder.cpp | Hun1eR/TOML | 7c47b3fd7b9d0321f0614cc8c51da8c7e458c22b | [
"MIT"
] | 5 | 2020-05-12T20:11:00.000Z | 2021-02-26T16:59:05.000Z | toml/src/holder.cpp | Hun1eR/TOML | 7c47b3fd7b9d0321f0614cc8c51da8c7e458c22b | [
"MIT"
] | null | null | null | toml/src/holder.cpp | Hun1eR/TOML | 7c47b3fd7b9d0321f0614cc8c51da8c7e458c22b | [
"MIT"
] | null | null | null | // ***********************************************************************
// Author : the_hunter
// Created : 04-01-2020
//
// Last Modified By : the_hunter
// Last Modified On : 04-01-2020
// ***********************************************************************
#include <toml/pch.h>
/// <summar... | 18.25 | 80 | 0.566002 | Hun1eR |
044cbc8bd701d169c519094723cfdad6bdd54676 | 13,516 | cpp | C++ | BinClone/CloneDetectorGUI/ClonePairsAsmFrame.cpp | wzj1695224/BinClone | 3b6dedb9a1f08be6dbcdce8f3278351ef5530ed8 | [
"Apache-2.0"
] | null | null | null | BinClone/CloneDetectorGUI/ClonePairsAsmFrame.cpp | wzj1695224/BinClone | 3b6dedb9a1f08be6dbcdce8f3278351ef5530ed8 | [
"Apache-2.0"
] | null | null | null | BinClone/CloneDetectorGUI/ClonePairsAsmFrame.cpp | wzj1695224/BinClone | 3b6dedb9a1f08be6dbcdce8f3278351ef5530ed8 | [
"Apache-2.0"
] | null | null | null | //******************************************************************************//
// Copyright 2014 Concordia University //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// you may not use this file except in compliance with the License. //
// You may ... | 27.360324 | 174 | 0.697544 | wzj1695224 |
044e839427ad721528cc97efa6b4592cf84ab092 | 5,301 | cpp | C++ | fawnkv/cache.cpp | abcinje/FAWN-KV | 6c557b3793010eb0b2f08d4bd0d47b5e68801080 | [
"Apache-2.0"
] | 50 | 2015-04-24T23:12:20.000Z | 2022-01-27T06:03:11.000Z | fawnkv/cache.cpp | abcinje/FAWN-KV | 6c557b3793010eb0b2f08d4bd0d47b5e68801080 | [
"Apache-2.0"
] | null | null | null | fawnkv/cache.cpp | abcinje/FAWN-KV | 6c557b3793010eb0b2f08d4bd0d47b5e68801080 | [
"Apache-2.0"
] | 12 | 2015-02-24T01:34:10.000Z | 2021-12-22T04:39:03.000Z | /* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* Cache tester by Jason Franklin (jfrankli@cs.cmu.edu) */
/* Derived from fe_tester.cpp */
using namespace std;
#include <iostream>
#include <sstream>
#include <string>
#include "fe.h"
#include "dbid.h"
#include "hashutil.h"
#include "timing.h"
using ... | 23.25 | 96 | 0.578947 | abcinje |
0451083926b26ae59cbb4062ea79044fe0115256 | 4,288 | hpp | C++ | libs/multiprecision/test/test_float_serial.hpp | Manu343726/boost-cmake | 009c3843b49a56880d988ffdca6d909f881edb3d | [
"BSL-1.0"
] | 61 | 2017-07-03T18:36:45.000Z | 2021-09-14T14:57:19.000Z | libs/multiprecision/test/test_float_serial.hpp | Manu343726/boost-cmake | 009c3843b49a56880d988ffdca6d909f881edb3d | [
"BSL-1.0"
] | 28 | 2016-10-16T19:42:37.000Z | 2018-09-14T21:29:48.000Z | libs/multiprecision/test/test_float_serial.hpp | Manu343726/boost-cmake | 009c3843b49a56880d988ffdca6d909f881edb3d | [
"BSL-1.0"
] | 31 | 2017-07-04T14:15:34.000Z | 2021-09-12T04:50:41.000Z | ///////////////////////////////////////////////////////////////
// Copyright 2013 John Maddock. 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_
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/unifo... | 31.29927 | 145 | 0.5632 | Manu343726 |
045185e9a7de6380d4642e9c3f1a14fdf08b35ae | 368 | cpp | C++ | ieee_sep/PriceResponse.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/PriceResponse.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/PriceResponse.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////
// PriceResponse.cpp
// Implementation of the Class PriceResponse
// Created on: 13-Apr-2020 2:51:37 PM
// Original author: svanausdall
///////////////////////////////////////////////////////////
#include "PriceResponse.h"
PriceResponse::PriceRespo... | 19.368421 | 59 | 0.478261 | Tylores |
045574fdcfead4456567e22425f5a6a7f1112fd5 | 960 | cpp | C++ | src/terark/io/todo/inter_thread_pipe.cpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 44 | 2020-12-21T05:14:38.000Z | 2022-03-15T11:27:32.000Z | src/terark/io/todo/inter_thread_pipe.cpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 2 | 2020-12-28T10:42:03.000Z | 2021-05-21T07:22:47.000Z | src/terark/io/todo/inter_thread_pipe.cpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 21 | 2020-12-22T09:40:16.000Z | 2021-12-07T18:16:00.000Z | #include "inter_thread_pipe.cpp"
namespace terark {
class inter_thread_pipe_impl
{
boost::mutex m_mutex;
boost::condition m_cond;
unsigned char *m_bufp, *m_putp, *m_getp;
size_t m_size;
long m_timeout;
public:
bool eof()
{
boost::mutex::scoped_lock lock(m_mutex);
return (m_size+(m_get-m_putp)... | 13.913043 | 59 | 0.669792 | rockeet |
04574bdfa853a46cbd3fce70c2c4afd53c394027 | 35,298 | hpp | C++ | include/RootMotion/FinalIK/Grounding.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/Grounding.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/Grounding.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.La... | 54.472222 | 1,472 | 0.719644 | marksteward |
0458248d635d9eaf290b63bf7eee5df92aa1bcc6 | 8,981 | cpp | C++ | Testcase/RegStream/SRC/device.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | 1 | 2021-02-08T20:31:46.000Z | 2021-02-08T20:31:46.000Z | Testcase/RegStream/SRC/device.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | null | null | null | Testcase/RegStream/SRC/device.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | 4 | 2019-11-14T03:47:33.000Z | 2021-03-08T01:18:05.000Z | /***************************************************************************
//
// DEVICE.CPP
//
// TAPI Service provider for TSP++ version 3.00
// Handles raw device events and the physical connection to the hardware.
//
// Copyright (C) 1999 Test
// All rights reserved
//
// Generated by the TSPWizard (C) JulMar Tech... | 32.075 | 124 | 0.598597 | markjulmar |
0458dd8edcb53ef5e536b8cd245044111b4ed444 | 4,837 | cpp | C++ | tools/vsimporter/src/utils/clangoptparser.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | 1 | 2016-02-08T02:29:19.000Z | 2016-02-08T02:29:19.000Z | tools/vsimporter/src/utils/clangoptparser.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | null | null | null | tools/vsimporter/src/utils/clangoptparser.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | null | null | null | //******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | 34.798561 | 102 | 0.63097 | Art52123103 |
0459f7069e5be6be1ca3dabe5a55d81992bb6066 | 2,181 | cc | C++ | moses/util/stream/io.cc | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 9 | 2015-06-05T16:26:45.000Z | 2021-04-09T06:41:19.000Z | moses/util/stream/io.cc | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 3 | 2015-02-18T13:29:05.000Z | 2015-12-08T13:30:48.000Z | moses/util/stream/io.cc | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 3 | 2016-03-25T02:34:11.000Z | 2019-10-20T15:32:22.000Z | #include "util/stream/io.hh"
#include "util/file.hh"
#include "util/stream/chain.hh"
#include <cstddef>
namespace util {
namespace stream {
ReadSizeException::ReadSizeException() throw() {}
ReadSizeException::~ReadSizeException() throw() {}
void Read::Run(const ChainPosition &position) {
const std::size_t block_... | 32.552239 | 204 | 0.673086 | anshsarkar |
045d98055e6d5f474841c5466469368f4495eee1 | 13,216 | cpp | C++ | libcore/luni-kernel/src/main/native/java_lang_ProcessManager.cpp | farsitel/android_dalvik | d33bb90be950476309fadb1d7d4a601433c62ecb | [
"Apache-2.0"
] | 2 | 2017-01-05T02:40:41.000Z | 2019-08-28T20:23:31.000Z | libcore/luni-kernel/src/main/native/java_lang_ProcessManager.cpp | bigbrother82/android-test | 51ab0adb191273f9e28441724f1384c31779c125 | [
"Apache-2.0"
] | null | null | null | libcore/luni-kernel/src/main/native/java_lang_ProcessManager.cpp | bigbrother82/android-test | 51ab0adb191273f9e28441724f1384c31779c125 | [
"Apache-2.0"
] | 1 | 2019-02-01T02:21:59.000Z | 2019-02-01T02:21:59.000Z | /*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 31.243499 | 161 | 0.58974 | farsitel |
045f2913515fbfd8aecd92e1ef4129543c36341c | 6,545 | inl | C++ | include/Rexrn/LocCpp/StringBuilder.inl | Rexrn/LocCpp | db97d8caee5b138fc1392edbef48e7b2b4be30ef | [
"MIT"
] | 2 | 2019-02-19T14:51:13.000Z | 2020-12-27T10:05:37.000Z | include/Rexrn/LocCpp/StringBuilder.inl | Rexrn/LocCpp | db97d8caee5b138fc1392edbef48e7b2b4be30ef | [
"MIT"
] | null | null | null | include/Rexrn/LocCpp/StringBuilder.inl | Rexrn/LocCpp | db97d8caee5b138fc1392edbef48e7b2b4be30ef | [
"MIT"
] | null | null | null | #pragma once
#include <Rexrn/LocCpp/StringBuilder.hpp>
namespace rexrn::loc
{
//////////////////////////////////////////////////////////////
template <std::uint16_t NumSupportedLanguages, typename CharType>
typename StringBuilder<NumSupportedLanguages, CharType>::StringType // return type
StringBuilder<NumSupported... | 32.889447 | 193 | 0.676394 | Rexrn |
04615137b3eb762ff5b563dc5b4a1b131ad07f30 | 1,210 | cpp | C++ | benchmark/parallel_benchmark.cpp | shohirose/openmp-examples | ccec9ea6f47d2af2be3cad2bcbb2e064019cfe5d | [
"Unlicense"
] | null | null | null | benchmark/parallel_benchmark.cpp | shohirose/openmp-examples | ccec9ea6f47d2af2be3cad2bcbb2e064019cfe5d | [
"Unlicense"
] | null | null | null | benchmark/parallel_benchmark.cpp | shohirose/openmp-examples | ccec9ea6f47d2af2be3cad2bcbb2e064019cfe5d | [
"Unlicense"
] | null | null | null | #include <benchmark/benchmark.h>
#include "function.hpp"
using namespace shirose;
std::vector<Point>& getPoints() {
static std::vector<Point> points = generatePoints(10'000'000);
return points;
}
template <typename Counter>
void BM_PiCalculation(benchmark::State& state) {
const auto& points = getPoints();
f... | 26.304348 | 68 | 0.701653 | shohirose |
0464b5526f5fb15c51a2d8cefb1ace02acc9e17c | 5,452 | cpp | C++ | cli/commands/Spend.cpp | wolfmcnally/airbitz-core | 66256e04715f3fa1fed4833954bcd5e2b03f50f6 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | cli/commands/Spend.cpp | wolfmcnally/airbitz-core | 66256e04715f3fa1fed4833954bcd5e2b03f50f6 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | cli/commands/Spend.cpp | wolfmcnally/airbitz-core | 66256e04715f3fa1fed4833954bcd5e2b03f50f6 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /*
* Copyright (c) 2015, Airbitz, Inc.
* All rights reserved.
*
* See the LICENSE file for more information.
*/
#include "../Command.hpp"
#include "../../abcd/bitcoin/Text.hpp"
#include "../../abcd/bitcoin/spend/AirbitzFee.hpp"
#include "../../abcd/bitcoin/spend/PaymentProto.hpp"
#include "../../abcd/bitcoin/spen... | 27.535354 | 88 | 0.591343 | wolfmcnally |
04659c9e2da229a731232cabd88a89ea8275136e | 3,931 | cpp | C++ | src/Storages/MergeTree/MergeTreeBlockOutputStream.cpp | ontkey/daisy | b5c9b7b1cc496c1fd45cb5678c273b089d899c63 | [
"Apache-2.0"
] | 5 | 2021-05-14T02:46:44.000Z | 2021-11-23T04:58:20.000Z | src/Storages/MergeTree/MergeTreeBlockOutputStream.cpp | ontkey/daisy | b5c9b7b1cc496c1fd45cb5678c273b089d899c63 | [
"Apache-2.0"
] | 5 | 2021-05-21T06:26:01.000Z | 2021-08-04T04:57:36.000Z | src/Storages/MergeTree/MergeTreeBlockOutputStream.cpp | ontkey/daisy | b5c9b7b1cc496c1fd45cb5678c273b089d899c63 | [
"Apache-2.0"
] | 8 | 2021-05-12T01:38:18.000Z | 2022-02-10T06:08:41.000Z | #include <Storages/MergeTree/MergeTreeBlockOutputStream.h>
#include <Storages/MergeTree/MergeTreeDataPartInMemory.h>
#include <Storages/MergeTree/SequenceInfo.h>
#include <Storages/StorageMergeTree.h>
#include <Interpreters/PartLog.h>
#include <common/logger_useful.h>
namespace DB
{
Block MergeTreeBlockOutputStream:... | 30.472868 | 132 | 0.642585 | ontkey |
04677afd725f6008b38309523f910adb7a2da0c3 | 1,178 | hh | C++ | build/ARM/params/L2Cache_Controller.hh | nomorecoke/Multimedia_IP_Cache_management | e49052a2a26dd69c5d2c55687072a4a7a0dd1236 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/ARM/params/L2Cache_Controller.hh | nomorecoke/Multimedia_IP_Cache_management | e49052a2a26dd69c5d2c55687072a4a7a0dd1236 | [
"BSD-3-Clause"
] | null | null | null | build/ARM/params/L2Cache_Controller.hh | nomorecoke/Multimedia_IP_Cache_management | e49052a2a26dd69c5d2c55687072a4a7a0dd1236 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __PARAMS__L2Cache_Controller__
#define __PARAMS__L2Cache_Controller__
class L2Cache_Controller;
#include <cstddef>
#include "params/MessageBuffer.hh"
#include <cstddef>
#include "params/MessageBuffer.hh"
#include <cstddef>
#include "params/MessageBuffer.hh"
#include <cstddef>
#include "params/MessageBuffer.hh... | 25.608696 | 45 | 0.780136 | nomorecoke |
046940751ecb2b3f0ff0513e1ec5ba4250939af4 | 5,839 | cpp | C++ | src/tests/rt_base/test_base_meta_data.cpp | wizardst/Rockit | 8c6c5e59b6069735e95e34cca2607b9b6541b520 | [
"Apache-2.0"
] | null | null | null | src/tests/rt_base/test_base_meta_data.cpp | wizardst/Rockit | 8c6c5e59b6069735e95e34cca2607b9b6541b520 | [
"Apache-2.0"
] | null | null | null | src/tests/rt_base/test_base_meta_data.cpp | wizardst/Rockit | 8c6c5e59b6069735e95e34cca2607b9b6541b520 | [
"Apache-2.0"
] | 2 | 2022-01-04T20:29:44.000Z | 2022-01-04T20:39:31.000Z | /*
* Copyright 2018 Rockchip Electronics Co. LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 36.49375 | 76 | 0.609522 | wizardst |
0469bf8fa96aa9a7c9d00f9111e335d1d4f038cf | 58,600 | cpp | C++ | openstudiocore/src/model/SpaceType.cpp | pepsi7959/OpenstudioThai | fb18afb8b983f71dd5eb171e753dac7d9a4b811b | [
"blessing"
] | 1 | 2015-06-28T09:06:24.000Z | 2015-06-28T09:06:24.000Z | openstudiocore/src/model/SpaceType.cpp | pepsi7959/OpenstudioThai | fb18afb8b983f71dd5eb171e753dac7d9a4b811b | [
"blessing"
] | 11 | 2015-05-05T16:16:33.000Z | 2017-08-10T08:15:50.000Z | openstudiocore/src/model/SpaceType.cpp | pepsi7959/OpenstudioThai | fb18afb8b983f71dd5eb171e753dac7d9a4b811b | [
"blessing"
] | 1 | 2017-09-23T12:51:13.000Z | 2017-09-23T12:51:13.000Z | /**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... | 34.069767 | 138 | 0.723669 | pepsi7959 |
046a17c4df78713e47c16ea2981e5a66642dd18d | 2,357 | cpp | C++ | tests/util.cpp | jnalanko/cobs | 7d1c031c4abec1f46a035c5186ae0aacec0aba55 | [
"MIT"
] | 69 | 2019-04-19T05:51:41.000Z | 2022-01-28T20:38:56.000Z | tests/util.cpp | jnalanko/cobs | 7d1c031c4abec1f46a035c5186ae0aacec0aba55 | [
"MIT"
] | 19 | 2019-05-24T11:05:27.000Z | 2021-11-23T14:55:03.000Z | tests/util.cpp | iqbal-lab-org/cobs | f4e7200d8076929f49c6035062261d90c57e4619 | [
"MIT"
] | 12 | 2019-03-22T11:39:22.000Z | 2021-11-23T20:32:34.000Z | /*******************************************************************************
* tests/util.cpp
*
* Copyright (c) 2018 Florian Gauger
* Copyright (c) 2018 Timo Bingmann
*
* All rights reserved. Published under the MIT License in the LICENSE file.
****************************************************************... | 37.412698 | 80 | 0.630462 | jnalanko |
046b1a0167c7cbc0c617c99be661bd3f11b19834 | 29,623 | cpp | C++ | qt-ticket/src/paywidget.cpp | waitWindComing/QT | c8401679b7265785ec8c7e97eea7e1e37631f37d | [
"Apache-2.0"
] | null | null | null | qt-ticket/src/paywidget.cpp | waitWindComing/QT | c8401679b7265785ec8c7e97eea7e1e37631f37d | [
"Apache-2.0"
] | null | null | null | qt-ticket/src/paywidget.cpp | waitWindComing/QT | c8401679b7265785ec8c7e97eea7e1e37631f37d | [
"Apache-2.0"
] | null | null | null | #include "paywidget.h"
#include "stepindicator.h"
#include "tipswidget.h"
#include "dueeditor.h"
#include "reduceeditor.h"
#include "neteditor.h"
#include "confirmcodewidget.h"
#include "issuedticketdlg.h"
#include "issueeditor.h"
#include "companycustomer.h"
#include "customer.h"
#include "consume.h"
#include "ticket.... | 36.081608 | 194 | 0.625831 | waitWindComing |
046c002867a6b4e94ad016444a1160eb17f3229d | 1,383 | cpp | C++ | merge_sort.cpp | mzmmoazam/OpenCV-using-C-plus-plus | 4c43848ba6aec938eeaeb3c85021c91f4c2e273c | [
"MIT"
] | null | null | null | merge_sort.cpp | mzmmoazam/OpenCV-using-C-plus-plus | 4c43848ba6aec938eeaeb3c85021c91f4c2e273c | [
"MIT"
] | null | null | null | merge_sort.cpp | mzmmoazam/OpenCV-using-C-plus-plus | 4c43848ba6aec938eeaeb3c85021c91f4c2e273c | [
"MIT"
] | null | null | null | #include <iostream>
// divide and conquer
using namespace std;
void printArray(int a[], int n)
{
for (int i = 0; i < n; i++)
{
cout << a[i] << " ";
}
cout << endl;
}
void merge(int a[], int l, int m, int r)
{
int leftn = m - l + 1, rightn = r - m;
int L[leftn], R[rightn], i = 0, j = ... | 16.662651 | 60 | 0.386117 | mzmmoazam |
047023433179ba65cf3c0010b4d79ae47900bcab | 8,509 | cc | C++ | xdl/ps-plus/ps-plus/server/server.cc | hitflame/x-deeplearning | c8029396c6ae6dbf397a34a1801ceadc824e4f8d | [
"Apache-2.0"
] | 2 | 2019-11-11T09:51:56.000Z | 2021-08-04T04:02:29.000Z | xdl/ps-plus/ps-plus/server/server.cc | hitflame/x-deeplearning | c8029396c6ae6dbf397a34a1801ceadc824e4f8d | [
"Apache-2.0"
] | 1 | 2019-11-29T14:52:53.000Z | 2019-11-29T14:52:53.000Z | xdl/ps-plus/ps-plus/server/server.cc | hitflame/x-deeplearning | c8029396c6ae6dbf397a34a1801ceadc824e4f8d | [
"Apache-2.0"
] | 1 | 2019-08-03T05:22:19.000Z | 2019-08-03T05:22:19.000Z | /* Copyright (C) 2016-2018 Alibaba Group Holding 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 License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 37.157205 | 138 | 0.702785 | hitflame |
04715c6ae62f40e0202a8cc8cd22bb76bb49aa32 | 59 | cc | C++ | cpp/boost_python/reflect_function_with_numeric_reference/functions.cc | jeremiedecock/snippets | 4bd4e7f459eee610d5cf19f845299ca942ff4b64 | [
"MIT"
] | 23 | 2015-06-08T13:01:00.000Z | 2021-12-30T08:20:04.000Z | cpp/boost_python/reflect_function_with_numeric_reference/functions.cc | jeremiedecock/snippets | 4bd4e7f459eee610d5cf19f845299ca942ff4b64 | [
"MIT"
] | 1 | 2020-10-22T02:36:10.000Z | 2020-10-22T02:36:10.000Z | cpp/boost_python/reflect_function_with_numeric_reference/functions.cc | jeremiedecock/snippets | 4bd4e7f459eee610d5cf19f845299ca942ff4b64 | [
"MIT"
] | 7 | 2017-10-31T09:48:14.000Z | 2022-01-04T15:59:45.000Z | #include "functions.h"
void foo(double & x) {
x++;
}
| 8.428571 | 22 | 0.542373 | jeremiedecock |
0472300b17ac6862dd648dba75a9c86d92a89cad | 87 | cc | C++ | src/plugin/graphics/nullrender/src/loaders/nulltexture.cc | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/plugin/graphics/nullrender/src/loaders/nulltexture.cc | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/plugin/graphics/nullrender/src/loaders/nulltexture.cc | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | /* Motor <motor.devel@gmail.com>
see LICENSE for detail */
#include <stdafx.h>
| 17.4 | 33 | 0.643678 | motor-dev |
04783220c2acdb14e951f98c2e8e3299b01cb339 | 2,833 | cpp | C++ | contrib/groff/src/preproc/eqn/mark.cpp | ivadasz/DragonFlyBSD | 460227f342554313be3c7728ff679dd4a556cce9 | [
"BSD-3-Clause"
] | 3 | 2017-03-06T14:12:57.000Z | 2019-11-23T09:35:10.000Z | contrib/groff/src/preproc/eqn/mark.cpp | jorisgio/DragonFlyBSD | d37cc9027d161f3e36bf2667d32f41f87606b2ac | [
"BSD-3-Clause"
] | null | null | null | contrib/groff/src/preproc/eqn/mark.cpp | jorisgio/DragonFlyBSD | d37cc9027d161f3e36bf2667d32f41f87606b2ac | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
/* Copyright (C) 1989, 1990, 1991, 1992, 2009
Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
This file is part of groff.
groff 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... | 23.221311 | 72 | 0.662902 | ivadasz |
04783410fcef1f848ef6e6dd4a0d51160d14c223 | 5,731 | cc | C++ | chrome/browser/safe_browsing/ping_manager.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-28T10:46:52.000Z | 2019-11-28T10:46:52.000Z | chrome/browser/safe_browsing/ping_manager.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/safe_browsing/ping_manager.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | // Copyright (c) 2012 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 "chrome/browser/safe_browsing/ping_manager.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#in... | 37.214286 | 78 | 0.714709 | kjthegod |
047a0b542d2327d0501f058fe4257e0a4214cd23 | 3,774 | hpp | C++ | external/windows/boost/include/boost/spirit/core/non_terminal/parser_id.hpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | 1 | 2016-05-17T03:36:52.000Z | 2016-05-17T03:36:52.000Z | external/windows/boost/include/boost/spirit/core/non_terminal/parser_id.hpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | external/windows/boost/include/boost/spirit/core/non_terminal/parser_id.hpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | /*=============================================================================
Copyright (c) 2001-2003 Joel de Guzman
Copyright (c) 2001 Daniel Nuffer
http://spirit.sourceforge.net/
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying fi... | 31.714286 | 80 | 0.372284 | foxostro |
047c14c675f9d6841f5786e631c8cbc190fc5b25 | 48,326 | cc | C++ | test/unittests/compiler/int64-lowering-unittest.cc | devcode1981/v8 | 10f26c08b9e6cdddc7d033c5572ae68e2383d2a4 | [
"BSD-3-Clause"
] | 1 | 2022-03-15T16:20:56.000Z | 2022-03-15T16:20:56.000Z | test/unittests/compiler/int64-lowering-unittest.cc | devcode1981/v8 | 10f26c08b9e6cdddc7d033c5572ae68e2383d2a4 | [
"BSD-3-Clause"
] | null | null | null | test/unittests/compiler/int64-lowering-unittest.cc | devcode1981/v8 | 10f26c08b9e6cdddc7d033c5572ae68e2383d2a4 | [
"BSD-3-Clause"
] | 1 | 2021-03-08T00:27:58.000Z | 2021-03-08T00:27:58.000Z | // Copyright 2016 the V8 project 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/compiler/int64-lowering.h"
#include "src/codegen/interface-descriptors.h"
#include "src/codegen/machine-type.h"
#include "src/codegen/sig... | 43.972702 | 80 | 0.574618 | devcode1981 |
047ec6e10bec33623a2a801417cc265ba673422f | 1,159 | cpp | C++ | caffe2/contrib/warpctc/ctc_op.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 60,067 | 2017-01-18T17:21:31.000Z | 2022-03-31T21:37:45.000Z | caffe2/contrib/warpctc/ctc_op.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 66,955 | 2017-01-18T17:21:38.000Z | 2022-03-31T23:56:11.000Z | caffe2/contrib/warpctc/ctc_op.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 19,210 | 2017-01-18T17:45:04.000Z | 2022-03-31T23:51:56.000Z | #include "ctc_op.h"
#include "caffe2/core/context_gpu.h"
#include "caffe2/core/operator.h"
#ifdef CAFFE2_USE_MKLDNN
#include <caffe2/ideep/operators/operator_fallback_ideep.h>
#include <caffe2/ideep/utils/ideep_operator.h>
#endif
namespace caffe2 {
namespace detail {
template <>
ctcComputeInfo workspaceInfo<CPUConte... | 26.953488 | 74 | 0.754098 | Hacky-DH |
0483c71a08c462efdff09b7e55ba0614e1cdfc5d | 19,361 | cpp | C++ | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/tinyclr/test/ssl_test_bf.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 529 | 2015-03-10T00:17:45.000Z | 2022-03-17T02:21:19.000Z | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/tinyclr/test/ssl_test_bf.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 495 | 2015-03-10T22:02:46.000Z | 2019-05-16T13:05:00.000Z | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/tinyclr/test/ssl_test_bf.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 332 | 2015-03-10T08:04:36.000Z | 2022-03-29T04:18:36.000Z | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as l... | 35.655617 | 88 | 0.690564 | PervasiveDigital |
0485fdc968b6c750474b5e00df37f7b4cc6ac47d | 3,562 | cpp | C++ | src/ecs/time.cpp | madebr/neolib | 8cbd46af590a58c96712ee93e71ca714cbd382ee | [
"BSD-3-Clause"
] | null | null | null | src/ecs/time.cpp | madebr/neolib | 8cbd46af590a58c96712ee93e71ca714cbd382ee | [
"BSD-3-Clause"
] | null | null | null | src/ecs/time.cpp | madebr/neolib | 8cbd46af590a58c96712ee93e71ca714cbd382ee | [
"BSD-3-Clause"
] | null | null | null | // time.cpp
/*
* Copyright (c) 2018, 2020 Leigh Johnston.
*
* 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... | 35.979798 | 173 | 0.639809 | madebr |
0487efeed9420e29e974d27a03d09e85207a9f99 | 1,833 | cc | C++ | inet/src/inet/common/packet/serializer/ByteCountChunkSerializer.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/common/packet/serializer/ByteCountChunkSerializer.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/common/packet/serializer/ByteCountChunkSerializer.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T13:32:40.000Z | 2021-07-02T13:32:40.000Z | //
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will... | 42.627907 | 125 | 0.768685 | ntanetani |
04888f2b4602ce44a409ff3987eb6410252ca13a | 581 | cpp | C++ | UVa 10668 - Expanding Rods/sample/10668 - Expanding Rods.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 10668 - Expanding Rods/sample/10668 - Expanding Rods.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 10668 - Expanding Rods/sample/10668 - Expanding Rods.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
#include <math.h>
int main() {
double L, C, n;
const double pi = acos(-1);
while(scanf("%lf %lf %lf", &L, &C, &n) == 3) {
if(n < 0)
break;
double LL = (1 + n*C)*L;
double l = 0, r = pi/2, theta, R;
int cnt = 0;
while(l <= r && cnt < 50... | 22.346154 | 50 | 0.366609 | tadvi |
048b6443cb65226507f2eb3a756a64ed299e984d | 2,973 | cpp | C++ | test/glfw/glfw.cpp | 10110111/GLFFT | 78176d4480bc3675327bf2bcfd80d5dae1820081 | [
"MIT"
] | 176 | 2015-08-17T20:47:10.000Z | 2022-03-30T09:14:33.000Z | test/glfw/glfw.cpp | 10110111/GLFFT | 78176d4480bc3675327bf2bcfd80d5dae1820081 | [
"MIT"
] | 6 | 2017-09-21T15:55:44.000Z | 2020-11-07T03:15:44.000Z | test/glfw/glfw.cpp | 10110111/GLFFT | 78176d4480bc3675327bf2bcfd80d5dae1820081 | [
"MIT"
] | 28 | 2016-02-28T04:37:50.000Z | 2022-02-27T12:35:55.000Z | /* Copyright (C) 2015 Hans-Kristian Arntzen <maister@archlinux.us>
*
* 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... | 33.404494 | 129 | 0.722503 | 10110111 |
048c0fec76552485b91ad9bd47827472b6f12eab | 25,680 | cc | C++ | StRoot/StMcEvent/StMcEvent.cc | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/StMcEvent/StMcEvent.cc | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/StMcEvent/StMcEvent.cc | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | /*!
* \class StMcEvent
* \brief Event data structure to hold all information from a Monte Carlo simulation.
* This class is the interface to access all information from the GEANT simulations
* in STAR. From here one can get all vertices, tracks, hits in the event.
* \author Manuel Calderon de la Barca Sanchez (Y... | 37.820324 | 99 | 0.632477 | xiaohaijin |
048d7411d88c4df2342b348703c0f7329f6360f7 | 7,964 | hpp | C++ | OptFrame/MultiEvaluator.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 2 | 2018-05-24T11:04:12.000Z | 2020-03-03T13:37:07.000Z | OptFrame/MultiEvaluator.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | null | null | null | OptFrame/MultiEvaluator.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 1 | 2019-06-06T16:57:49.000Z | 2019-06-06T16:57:49.000Z | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 22.951009 | 144 | 0.668634 | 216k155 |
048f4ac9112f2f226ec928ab9527b482c3f888eb | 6,099 | cpp | C++ | samples/tutorials/ProjectedLights/jni/PlaneModel.cpp | hannesa2/opengl-es-sdk-for-android | 4ca9fdb10bcd721bb9af19ccd9bdd95bdf34a07b | [
"MIT"
] | 283 | 2017-06-28T04:54:53.000Z | 2022-03-28T10:00:32.000Z | samples/tutorials/ProjectedLights/jni/PlaneModel.cpp | NickHardwood/opengl-es-sdk-for-android | 4ca9fdb10bcd721bb9af19ccd9bdd95bdf34a07b | [
"MIT"
] | 3 | 2021-06-13T08:19:35.000Z | 2022-02-25T17:26:15.000Z | samples/tutorials/ProjectedLights/jni/PlaneModel.cpp | NickHardwood/opengl-es-sdk-for-android | 4ca9fdb10bcd721bb9af19ccd9bdd95bdf34a07b | [
"MIT"
] | 102 | 2017-07-09T04:25:48.000Z | 2022-03-16T11:20:44.000Z | /* Copyright (c) 2012-2017, ARM Limited and Contributors
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limita... | 42.354167 | 129 | 0.605181 | hannesa2 |
0491938f8790fc8811dbe25b09a6aa1741dc3636 | 723 | cpp | C++ | src/BinaryTreeLevelOrderTraversal.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | src/BinaryTreeLevelOrderTraversal.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | src/BinaryTreeLevelOrderTraversal.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "BinaryTreeLevelOrderTraversal.hpp"
#include <queue>
using namespace std;
vector<vector<int>> BinaryTreeLevelOrderTraversal::levelOrder(TreeNode *root) {
vector<vector<int>> ret;
queue<TreeNode *> q;
if (root != nullptr) q.push(root);
while (!q.empty()) {
int n = q.size();
... | 21.264706 | 79 | 0.53112 | yanzhe-chen |
049576575aa6e0efe7a7a429772f51232c01c574 | 2,826 | cpp | C++ | src/UbGraphicsScene.cpp | cadet/UberCode | 19d70134774dfae607b18b5185ad93e5b2cf7cfe | [
"Apache-2.0"
] | 1 | 2016-10-31T13:05:30.000Z | 2016-10-31T13:05:30.000Z | src/UbGraphicsScene.cpp | cadet/UberCode | 19d70134774dfae607b18b5185ad93e5b2cf7cfe | [
"Apache-2.0"
] | null | null | null | src/UbGraphicsScene.cpp | cadet/UberCode | 19d70134774dfae607b18b5185ad93e5b2cf7cfe | [
"Apache-2.0"
] | null | null | null | /*
CADET - Center for Advances in Digital Entertainment Technologies
Copyright 2011 Fachhochschule Salzburg GmbH
http://www.cadet.at
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://... | 23.747899 | 97 | 0.691083 | cadet |
0497bee7972e03f137516149bd184aa933a8029f | 16,061 | cpp | C++ | src/lalr/lalrc/lalrc.cpp | IlyaShurupov/lalr | 643ca877fdf40c2968528352cbc8a92c7ddc9d92 | [
"MIT"
] | 41 | 2018-01-30T10:06:58.000Z | 2022-02-21T17:11:00.000Z | src/lalr/lalrc/lalrc.cpp | cwbaker/sweet-lalr | 7b4bf35ea9f6e2b3c5ce22ae2d04265bab69d5e8 | [
"MIT"
] | 4 | 2018-06-28T13:15:03.000Z | 2019-11-23T23:48:07.000Z | src/lalr/lalrc/lalrc.cpp | cwbaker/sweet-lalr | 7b4bf35ea9f6e2b3c5ce22ae2d04265bab69d5e8 | [
"MIT"
] | 9 | 2019-02-05T15:11:30.000Z | 2022-01-09T14:20:55.000Z | //
// lalrc.cpp
// Copyright (c) Charles Baker. All rights reserved.
//
#define _CRT_SECURE_NO_WARNINGS
#include <lalr/GrammarCompiler.hpp>
#include <lalr/ParserStateMachine.hpp>
#include <lalr/ParserState.hpp>
#include <lalr/ParserTransition.hpp>
#include <lalr/ParserSymbol.hpp>
#include <lalr/ParserAction.hpp>
#inc... | 33.883966 | 150 | 0.550651 | IlyaShurupov |
049967f9b38881ce18df1aae86d3ea9d849fed35 | 1,722 | cpp | C++ | src/OpenLoco/Drawing/FPSCounter.cpp | ser-pounce/OpenLoco | f280941bc535c1a681e65420c312c1815a17c1fe | [
"MIT"
] | 1 | 2020-05-23T20:17:13.000Z | 2020-05-23T20:17:13.000Z | src/OpenLoco/Drawing/FPSCounter.cpp | ser-pounce/OpenLoco | f280941bc535c1a681e65420c312c1815a17c1fe | [
"MIT"
] | null | null | null | src/OpenLoco/Drawing/FPSCounter.cpp | ser-pounce/OpenLoco | f280941bc535c1a681e65420c312c1815a17c1fe | [
"MIT"
] | null | null | null | #include "FPSCounter.h"
#include "../Graphics/Colour.h"
#include "../Graphics/Gfx.h"
#include "../Localisation/StringManager.h"
#include "../Ui.h"
#include <chrono>
#include <stdio.h>
namespace OpenLoco::Drawing
{
using Clock_t = std::chrono::high_resolution_clock;
using TimePoint_t = Clock_t::time_point;
... | 27.774194 | 124 | 0.60453 | ser-pounce |
049c74bf08b1b4060c78a7203fb84df6d1b33c85 | 854 | hpp | C++ | src/components/MenuBase.hpp | ryanreno/spacewar | 3b154b3dfbf2cc8b657f89fc7c328d3713ca3be7 | [
"MIT"
] | 1 | 2021-06-24T13:31:37.000Z | 2021-06-24T13:31:37.000Z | src/components/MenuBase.hpp | ryanreno/spacewar | 3b154b3dfbf2cc8b657f89fc7c328d3713ca3be7 | [
"MIT"
] | 1 | 2021-07-02T19:26:36.000Z | 2021-07-02T19:26:36.000Z | src/components/MenuBase.hpp | ryanreno/spacewar | 3b154b3dfbf2cc8b657f89fc7c328d3713ca3be7 | [
"MIT"
] | 1 | 2021-07-02T17:07:41.000Z | 2021-07-02T17:07:41.000Z | /**
* @file
*
* $Id: MenuBase.hpp $
* @author Bill Eggert
*/
#pragma once
#include <entityx/Event.h>
#include <SFML/Graphics.hpp>
/*
* Base class for menus. These are the actual things that do the work.
* The "Menu" class is the component.
*/
class MenuBase
{
public:
virtual ~MenuBase() = default;
... | 26.6875 | 77 | 0.69555 | ryanreno |
049d0d8fe65eed9e8f00fb9664a4f2839743a6db | 13,593 | hpp | C++ | third_party/CppAD/include/cppad/utility/vector.hpp | eric-heiden/tds-merge | 1e18447b0096efbb6df5d9ad7d69c8b0cc282747 | [
"Apache-2.0"
] | null | null | null | third_party/CppAD/include/cppad/utility/vector.hpp | eric-heiden/tds-merge | 1e18447b0096efbb6df5d9ad7d69c8b0cc282747 | [
"Apache-2.0"
] | null | null | null | third_party/CppAD/include/cppad/utility/vector.hpp | eric-heiden/tds-merge | 1e18447b0096efbb6df5d9ad7d69c8b0cc282747 | [
"Apache-2.0"
] | null | null | null | # ifndef CPPAD_UTILITY_VECTOR_HPP
# define CPPAD_UTILITY_VECTOR_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-20 Bradley M. Bell
CppAD is distributed under the terms of the
Eclipse Public License Version 2.0.
T... | 25.891429 | 79 | 0.580004 | eric-heiden |
049d5ffc794faa0407674e18cb0b89b97dbc2c21 | 240 | cpp | C++ | docs/atl-mfc-shared/codesnippet/CPP/ctime-class_10.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/atl-mfc-shared/codesnippet/CPP/ctime-class_10.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/atl-mfc-shared/codesnippet/CPP/ctime-class_10.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | // Example for CTime::GetHour, CTime::GetMinute, and CTime::GetSecond
CTime t(1999, 3, 19, 22, 15, 0); // 10:15 PM March 19, 1999
ATLASSERT(t.GetSecond() == 0);
ATLASSERT(t.GetMinute() == 15);
ATLASSERT(t.GetHour() == 22); | 48 | 72 | 0.616667 | bobbrow |
049d971ec1c72122b56ec418c807e1bf92bb356b | 9,912 | cc | C++ | inet/src/inet/mobility/common/MobilityBase.cc | googleinterns/vectio | 0d8ef1d504c821de733110c82b16b2ae43332c5c | [
"Apache-2.0"
] | 1 | 2020-05-21T07:48:00.000Z | 2020-05-21T07:48:00.000Z | inet/src/inet/mobility/common/MobilityBase.cc | googleinterns/vectio | 0d8ef1d504c821de733110c82b16b2ae43332c5c | [
"Apache-2.0"
] | 4 | 2020-07-06T15:58:14.000Z | 2020-07-15T21:56:36.000Z | inet/src/inet/mobility/common/MobilityBase.cc | googleinterns/vectio | 0d8ef1d504c821de733110c82b16b2ae43332c5c | [
"Apache-2.0"
] | 1 | 2020-10-02T04:12:51.000Z | 2020-10-02T04:12:51.000Z | /* -*- mode:c++ -*- ********************************************************
* file: MobilityBase.cc
*
* author: Daniel Willkomm, Andras Varga, Zoltan Bojthe
*
* copyright: (C) 2004 Telecommunication Networks Group (TKN) at
* Technische Universitaet Berlin, Germany.
*
* (... | 36.043636 | 154 | 0.649112 | googleinterns |
049dc4a1b1acbd5ecf7435b36d299e684a890502 | 3,240 | cc | C++ | src/base/bits.cc | radimkohout/v8-new | f6dc1d17efcc695a6f2dd7bcc50c0c6321747613 | [
"BSD-3-Clause"
] | 16 | 2017-08-24T14:53:25.000Z | 2021-08-19T04:49:23.000Z | src/base/bits.cc | Acidburn0zzz/v8-1 | 0dd6885de60fdba36532e068a31693c870d8b50b | [
"BSD-3-Clause"
] | 4 | 2017-04-12T05:55:21.000Z | 2017-05-09T12:46:15.000Z | src/base/bits.cc | Acidburn0zzz/v8-1 | 0dd6885de60fdba36532e068a31693c870d8b50b | [
"BSD-3-Clause"
] | 10 | 2017-09-21T07:40:42.000Z | 2020-03-31T05:53:42.000Z | // Copyright 2014 the V8 project 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/base/bits.h"
#include <limits>
#include "src/base/logging.h"
#include "src/base/safe_math.h"
namespace v8 {
namespace base {
namespace ... | 26.557377 | 79 | 0.689815 | radimkohout |
049f5638256314a9b2650d3bb8727687ca7ad5b3 | 1,797 | cpp | C++ | codechef/SWAPPALI/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codechef/SWAPPALI/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codechef/SWAPPALI/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 29-02-2020 22:17:56
* solution_verdict: Accepted language: C++14
* run... | 30.457627 | 111 | 0.333333 | kzvd4729 |
04a060405c0d8a74b37c510cd831884dcfdd5437 | 7,208 | cpp | C++ | libs/bx/tests/float4_t.cpp | hafixo/KeplerOrbits | 8e4fd6595becbbd5a8cec4f8408287dbc75892bc | [
"MIT"
] | 43 | 2016-02-15T05:02:16.000Z | 2022-02-23T18:27:46.000Z | libs/bx/tests/float4_t.cpp | podgorskiy/TinyFEM | c1a5fedf21e6306fc11fa19afdaf48dab1b6740f | [
"MIT"
] | null | null | null | libs/bx/tests/float4_t.cpp | podgorskiy/TinyFEM | c1a5fedf21e6306fc11fa19afdaf48dab1b6740f | [
"MIT"
] | 8 | 2016-12-07T14:13:11.000Z | 2020-07-10T03:05:19.000Z | /*
* Copyright 2010-2015 Branimir Karadzic. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include "test.h"
#include <bx/float4_t.h>
#include <string.h>
using namespace bx;
union float4_cast
{
bx::float4_t f4;
float f[4];
uint32_t ui[4];
int32_t i[4];
char c[16];
};
void... | 24.769759 | 123 | 0.65677 | hafixo |
04a431d5306d6f19238fd8fa9611830be3dde60b | 451 | cpp | C++ | UnrealPakViewer/UnrealPakViewer/Private/ViewModels/WidgetDelegates.cpp | kakacoding/pkg-doctor | 4d6f860763d1499a15ed6b762d938713bc67a841 | [
"MIT"
] | 128 | 2021-06-25T10:20:19.000Z | 2022-03-30T09:49:14.000Z | UnrealPakViewer/UnrealPakViewer/Private/ViewModels/WidgetDelegates.cpp | kakacoding/pkg-doctor | 4d6f860763d1499a15ed6b762d938713bc67a841 | [
"MIT"
] | 5 | 2021-06-29T09:04:13.000Z | 2022-03-07T03:13:23.000Z | UnrealPakViewer/UnrealPakViewer/Private/ViewModels/WidgetDelegates.cpp | kakacoding/pkg-doctor | 4d6f860763d1499a15ed6b762d938713bc67a841 | [
"MIT"
] | 16 | 2021-06-29T01:28:57.000Z | 2022-03-09T09:53:20.000Z | #include "WidgetDelegates.h"
FOnSwitchToTreeView& FWidgetDelegates::GetOnSwitchToTreeViewDelegate()
{
static FOnSwitchToTreeView Delegate;
return Delegate;
}
FOnSwitchToFileView& FWidgetDelegates::GetOnSwitchToFileViewDelegate()
{
static FOnSwitchToFileView Delegate;
return Delegate;
}
FOnLoadAssetRegistryFinish... | 23.736842 | 88 | 0.849224 | kakacoding |
04a49b4df8bc5e01416e2904824e65e0de3a1772 | 5,200 | cpp | C++ | libs/common/x86/src/sync/ticket.lock.cpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 32 | 2015-09-02T22:56:22.000Z | 2021-02-24T17:15:50.000Z | libs/common/x86/src/sync/ticket.lock.cpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 30 | 2015-04-26T18:35:07.000Z | 2021-06-06T09:57:02.000Z | libs/common/x86/src/sync/ticket.lock.cpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 11 | 2015-09-03T20:47:41.000Z | 2021-06-25T17:00:01.000Z | /*
Copyright (c) 2015 Alexandru-Mihai Maftei. All rights reserved.
Developed by: Alexandru-Mihai Maftei
aka Vercas
http://vercas.com | https://github.com/vercas/Beelzebub
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation... | 30.409357 | 83 | 0.634615 | vercas |
04a6018db18eaa3ab1be8f2a6f375dd6d9166141 | 3,920 | cpp | C++ | external/webkit/Tools/QtTestBrowser/locationedit.cpp | ghsecuritylab/android_platform_sony_nicki | 526381be7808e5202d7865aa10303cb5d249388a | [
"Apache-2.0"
] | 15 | 2015-05-25T19:28:05.000Z | 2021-05-03T09:21:22.000Z | Tools/QtTestBrowser/locationedit.cpp | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | Tools/QtTestBrowser/locationedit.cpp | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 7 | 2019-01-30T08:56:04.000Z | 2021-11-19T16:14:54.000Z | /*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
* Copyright (C) 2011 Andreas Kling <kling@webkit.org>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redist... | 29.473684 | 94 | 0.709694 | ghsecuritylab |
04a82edb110ca9b912fadcd588a21f50d1d8d2ab | 9,952 | cpp | C++ | src/editor/generate_menu_for_float.cpp | Apodus/gamejam-rynx-tech | 4d67f1fe394dc151c290f86110038907461de6f5 | [
"MIT"
] | null | null | null | src/editor/generate_menu_for_float.cpp | Apodus/gamejam-rynx-tech | 4d67f1fe394dc151c290f86110038907461de6f5 | [
"MIT"
] | null | null | null | src/editor/generate_menu_for_float.cpp | Apodus/gamejam-rynx-tech | 4d67f1fe394dc151c290f86110038907461de6f5 | [
"MIT"
] | null | null | null |
#include <editor/editor.hpp>
#include <sstream>
std::string humanize(std::string s) {
auto replace_all = [&s](std::string what, std::string with) {
while (s.find(what) != s.npos) {
s.replace(s.find(what), what.length(), with);
}
};
replace_all("class", "");
replace_all("struct", "");
replace_all(" ", "... | 33.173333 | 160 | 0.697247 | Apodus |
04a86597a7088ff20d02b8177381ef4358b85aac | 107,837 | cpp | C++ | src/lock/lock.cpp | stbergmann/firebird | bfabbd020f00fc40a3155799ccb3caac2642504f | [
"Condor-1.1"
] | 1 | 2021-05-25T09:15:39.000Z | 2021-05-25T09:15:39.000Z | src/lock/lock.cpp | stbergmann/firebird | bfabbd020f00fc40a3155799ccb3caac2642504f | [
"Condor-1.1"
] | null | null | null | src/lock/lock.cpp | stbergmann/firebird | bfabbd020f00fc40a3155799ccb3caac2642504f | [
"Condor-1.1"
] | null | null | null | /*
* PROGRAM: JRD Lock Manager
* MODULE: lock.cpp
* DESCRIPTION: Generic ISC Lock Manager
*
* The contents of this file are subject to the Interbase Public
* License Version 1.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://... | 26.945777 | 141 | 0.659829 | stbergmann |
04ab74f15c8ddc6da39258a45e8f3134b11829ae | 2,109 | cc | C++ | rslib/encoder.cc | sycy600/rslib | 513dc54414443169b4162e635c17ccf9f898ecd1 | [
"BSD-2-Clause"
] | null | null | null | rslib/encoder.cc | sycy600/rslib | 513dc54414443169b4162e635c17ccf9f898ecd1 | [
"BSD-2-Clause"
] | null | null | null | rslib/encoder.cc | sycy600/rslib | 513dc54414443169b4162e635c17ccf9f898ecd1 | [
"BSD-2-Clause"
] | 1 | 2020-04-25T08:16:10.000Z | 2020-04-25T08:16:10.000Z | // Copyright 2013 sycy600
#include <rslib/encoder.h>
namespace rslib {
Encoder::Encoder(unsigned int errorCorrectionCapability,
const ExtendedField& extendedField)
: codeGenerator_(buildCodeGenerator(errorCorrectionCapability,
extendedField)),
encodingShif... | 34.57377 | 75 | 0.703177 | sycy600 |
04abdcdc30229ff6946e472d346871e880d5bffd | 64,316 | cpp | C++ | hplip-3.20.3/prnt/hpcups/dj3600ColorMaps.cpp | Deril-Pana/wikiBlackcoinNL | 9633307f0b485c27feae5da242944adf450e8963 | [
"MIT"
] | null | null | null | hplip-3.20.3/prnt/hpcups/dj3600ColorMaps.cpp | Deril-Pana/wikiBlackcoinNL | 9633307f0b485c27feae5da242944adf450e8963 | [
"MIT"
] | 1 | 2021-11-20T16:33:39.000Z | 2021-11-20T16:33:39.000Z | hplip-3.20.3/prnt/hpcups/dj3600ColorMaps.cpp | Deril-Pana/wikiBlackcoinNL | 9633307f0b485c27feae5da242944adf450e8963 | [
"MIT"
] | null | null | null | /*****************************************************************************\
dj3600ColorMaps.cpp : Implimentation for the DJ3600 color maps
Copyright (c) 1996 - 2015, HP Co.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that th... | 80.094645 | 84 | 0.628708 | Deril-Pana |
04ac288fba38037111f79b901cfcd5e51bfe96d8 | 19,808 | cpp | C++ | software/mesa/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.cpp | dhanna11/OpenGPU | ab2f01253bba311e082dfae695b9e70138de75d4 | [
"Apache-2.0"
] | 7 | 2019-09-04T03:44:26.000Z | 2022-01-06T02:54:24.000Z | software/mesa/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.cpp | dhanna11/OpenGPU | ab2f01253bba311e082dfae695b9e70138de75d4 | [
"Apache-2.0"
] | null | null | null | software/mesa/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.cpp | dhanna11/OpenGPU | ab2f01253bba311e082dfae695b9e70138de75d4 | [
"Apache-2.0"
] | 3 | 2021-06-11T23:53:38.000Z | 2021-08-31T03:18:34.000Z | /*
* Copyright 2011 Christoph Bumiller
*
* 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... | 30.615147 | 80 | 0.584057 | dhanna11 |
04ae5471911dc5f960fe1d0ccd0f66f4210536c2 | 1,023 | hpp | C++ | src/jet/live/AsyncEventQueue.hpp | vejmartin/jet-live | d60dfb90e2a227d61a15fcf89c709855b3aafd86 | [
"MIT"
] | 325 | 2019-01-05T12:40:46.000Z | 2022-03-26T09:06:40.000Z | src/jet/live/AsyncEventQueue.hpp | vejmartin/jet-live | d60dfb90e2a227d61a15fcf89c709855b3aafd86 | [
"MIT"
] | 23 | 2019-01-05T19:43:47.000Z | 2022-01-10T20:11:06.000Z | src/jet/live/AsyncEventQueue.hpp | vejmartin/jet-live | d60dfb90e2a227d61a15fcf89c709855b3aafd86 | [
"MIT"
] | 29 | 2019-01-05T18:49:08.000Z | 2022-03-20T19:14:30.000Z |
#pragma once
#include <memory>
#include <mutex>
#include <queue>
#include "jet/live/IEvent.hpp"
#include "jet/live/ILiveListener.hpp"
#include "jet/live/events/LogEvent.hpp"
namespace jet
{
class AsyncEventQueue
{
public:
void addLog(LogSeverity severity, std::string&& message);
LogEvent*... | 24.357143 | 95 | 0.603128 | vejmartin |
04af9aaa486f5936a7c45cfc1d844f7f3b0ce613 | 12,418 | cpp | C++ | source/clayout/LInterpreter.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | source/clayout/LInterpreter.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | source/clayout/LInterpreter.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | #include "../include/clayout/LInterpreter.h"
#include "../include/cscript/CEnvironment.h"
#include "../include/cscript/ChromaScript.h"
#include "../include/cscript/CObject.h"
#include "../include/clayout/ChromaLayout.h"
#include "../include/clayout/LToken.h"
#include "../include/clayout/LProc.h"
#include "../include/en... | 30.890547 | 139 | 0.68755 | chromaScript |
04b08b4581eac6642d624e3c8126b25b5c2d1f8c | 165 | hpp | C++ | TinySandbox/src/Quad.hpp | yanagiragi/TinySandbox | 71c46d293535d8584edfa203e3b60d1d26982d2f | [
"MIT"
] | null | null | null | TinySandbox/src/Quad.hpp | yanagiragi/TinySandbox | 71c46d293535d8584edfa203e3b60d1d26982d2f | [
"MIT"
] | null | null | null | TinySandbox/src/Quad.hpp | yanagiragi/TinySandbox | 71c46d293535d8584edfa203e3b60d1d26982d2f | [
"MIT"
] | null | null | null | #pragma once
#include "Mesh.hpp"
namespace TinySandbox
{
class Quad : public Mesh
{
public:
Quad() : Mesh("../Resources/quad.obj") {}
~Quad() {}
};
}
| 10.3125 | 44 | 0.587879 | yanagiragi |
04b35dac200e870b840953e790230f52b68a0693 | 2,266 | hpp | C++ | src/vendor/cget/cget/pkg/pqrs-org__cpp-osx-json_file_monitor/install/include/pqrs/osx/json_file_monitor.hpp | egelwan/Karabiner-Elements | 896439dd2130904275553282063dd7fe4852e1a8 | [
"Unlicense"
] | 5,422 | 2019-10-27T17:51:04.000Z | 2022-03-31T15:45:41.000Z | src/vendor/cget/cget/pkg/pqrs-org__cpp-osx-json_file_monitor/install/include/pqrs/osx/json_file_monitor.hpp | XXXalice/Karabiner-Elements | 52f579cbf60251cf18915bd938eb4431360b763b | [
"Unlicense"
] | 1,310 | 2019-10-28T04:57:24.000Z | 2022-03-31T04:55:37.000Z | src/vendor/cget/cget/pkg/pqrs-org__cpp-osx-json_file_monitor/install/include/pqrs/osx/json_file_monitor.hpp | XXXalice/Karabiner-Elements | 52f579cbf60251cf18915bd938eb4431360b763b | [
"Unlicense"
] | 282 | 2019-10-28T02:36:04.000Z | 2022-03-19T06:18:54.000Z | #pragma once
// pqrs::osx::json_file_monitor v1.0
// (C) Copyright Takayama Fumihiko 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See http://www.boost.org/LICENSE_1_0.txt)
#include <nlohmann/json.hpp>
#include <pqrs/osx/file_monitor.hpp>
namespace pqrs {
namespace osx {
class json_file_mo... | 30.213333 | 114 | 0.650044 | egelwan |
04b3aef1aca6510add88a90dd2a223a10417d55f | 1,075 | cc | C++ | test_daily.cc | PingjunChen/CppDaily | fe81bdbe66eb9ec4ca38628a0f9db271171bd107 | [
"Apache-2.0"
] | 1 | 2019-08-12T04:15:19.000Z | 2019-08-12T04:15:19.000Z | test_daily.cc | PingjunChen/CppDaily | fe81bdbe66eb9ec4ca38628a0f9db271171bd107 | [
"Apache-2.0"
] | null | null | null | test_daily.cc | PingjunChen/CppDaily | fe81bdbe66eb9ec4ca38628a0f9db271171bd107 | [
"Apache-2.0"
] | null | null | null | #if !DAILY_TEST_CUSTOM_CONFIG
#define DAILY_TEST_CASE(name) static void name()
#define DAILY_TEST_ASSERT(b) assert(b)
#endif // DAILY_TEST_CUSTOM_CONFIG
#include <cassert>
#include <string>
#include <iostream>
#include <sstream>
#include "daily.h"
#include <string>
#include <vector>
#include <set>
#include <map>
#i... | 23.369565 | 77 | 0.642791 | PingjunChen |
04b4da57e66de3121ecd7a8cfeb4751eda9fd650 | 6,349 | cc | C++ | pw_rpc/raw/server_reader_writer_test.cc | curtin-space/pigweed | fe2e1743e03fabd2676f01d9de0ac9d34a426076 | [
"Apache-2.0"
] | null | null | null | pw_rpc/raw/server_reader_writer_test.cc | curtin-space/pigweed | fe2e1743e03fabd2676f01d9de0ac9d34a426076 | [
"Apache-2.0"
] | null | null | null | pw_rpc/raw/server_reader_writer_test.cc | curtin-space/pigweed | fe2e1743e03fabd2676f01d9de0ac9d34a426076 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The Pigweed Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | 31.122549 | 80 | 0.702315 | curtin-space |
04b8d13a3d619affc55935238f8faba53eda5eba | 4,431 | cpp | C++ | Passes/Transform/FunctionBitCastKiller.cpp | vorpal-research/borealis | 247ca1bb26690e2d605ffc57785151e86dccd5bb | [
"MIT"
] | null | null | null | Passes/Transform/FunctionBitCastKiller.cpp | vorpal-research/borealis | 247ca1bb26690e2d605ffc57785151e86dccd5bb | [
"MIT"
] | null | null | null | Passes/Transform/FunctionBitCastKiller.cpp | vorpal-research/borealis | 247ca1bb26690e2d605ffc57785151e86dccd5bb | [
"MIT"
] | 1 | 2019-09-02T12:56:27.000Z | 2019-09-02T12:56:27.000Z | //
// Created by abdullin on 10/17/17.
//
#include <unistd.h>
#include "Codegen/llvm.h"
#include "FunctionBitCastKiller.h"
#include "Util/collections.hpp"
#include "Util/functional.hpp"
#include "Util/passes.hpp"
#include "Util/macros.h"
namespace borealis {
void FunctionBitCastKiller::getAnalysisUsage(llvm::Analys... | 36.925 | 105 | 0.637554 | vorpal-research |
04ba2b05a9e620c081b1b7eb78f0507bc508d533 | 7,042 | cpp | C++ | tools/shard-seeder/shard-seeder.cpp | vipinsun/opencbdc-tx | 724f307548f92676423e98d7f2c1bfc2c66f79ef | [
"MIT"
] | 1 | 2022-02-09T22:25:02.000Z | 2022-02-09T22:25:02.000Z | tools/shard-seeder/shard-seeder.cpp | vipinsun/opencbdc-tx | 724f307548f92676423e98d7f2c1bfc2c66f79ef | [
"MIT"
] | null | null | null | tools/shard-seeder/shard-seeder.cpp | vipinsun/opencbdc-tx | 724f307548f92676423e98d7f2c1bfc2c66f79ef | [
"MIT"
] | 1 | 2022-02-10T02:31:32.000Z | 2022-02-10T02:31:32.000Z | // Copyright (c) 2021 MIT Digital Currency Initiative,
// Federal Reserve Bank of Boston
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "uhs/transaction/transaction.hpp"
#include "uhs/transaction/wal... | 41.181287 | 79 | 0.472735 | vipinsun |
04bbded7bfda9c66cf28cb5d07828da734ad89a1 | 4,661 | cpp | C++ | demo_app/main.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | 12 | 2021-07-24T18:33:22.000Z | 2022-03-12T16:20:49.000Z | demo_app/main.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | null | null | null | demo_app/main.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | 3 | 2021-08-04T02:27:12.000Z | 2022-03-13T08:43:24.000Z | // Copyright 2021 NVIDIA CORPORATION
// SPDX-License-Identifier: Apache-2.0
// Main function of the sample.
// Mostly just initializing GLFW, instance, device, extensions,
// then parsing arguments and passing control to the App implementation.
#include <cassert>
#include <stdio.h>
#include <string>
#include <vulkan/... | 30.664474 | 86 | 0.721948 | nvpro-samples |
04bcb616c7b897efb490f830e87b1d5544b34162 | 26,909 | cc | C++ | crawl-ref/source/los.cc | ludamad/bcrawl-hacks | 0c82f6181d8c2ffcb58f374a58887694cdd407ae | [
"CC0-1.0"
] | 58 | 2018-12-10T05:09:50.000Z | 2022-01-17T02:22:49.000Z | crawl-ref/source/los.cc | ludamad/bcrawl-hacks | 0c82f6181d8c2ffcb58f374a58887694cdd407ae | [
"CC0-1.0"
] | 501 | 2020-04-06T07:19:01.000Z | 2022-02-23T13:04:40.000Z | crawl-ref/source/los.cc | alexjurkiewicz/crawl-ref | b30f108f014aa9282fecf9cd6d84024ab3608e69 | [
"CC0-1.0"
] | 74 | 2020-04-06T07:40:50.000Z | 2021-05-21T00:13:36.000Z | /**
* @file
* @brief Line-of-sight algorithm.
*
*
*
* == Definition of visibility ==
*
* Two cells are in view of each other if there is any straight
* line that meets both cells and that doesn't meet any opaque
* cell in between, and if the cells are in LOS range of each
* other.
*
* Here, to "meet" a cel... | 28.565817 | 84 | 0.608309 | ludamad |
04becf19b985a7092dc89ea17e5530b33b2f347a | 2,802 | hpp | C++ | Nacro/SDK/FN_Niagara_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_Niagara_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_Niagara_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function Niagara.Niaga... | 60.913043 | 207 | 0.445039 | Milxnor |
04c035d70f5da417000ddff4f4f933657b3a7c1f | 861 | cpp | C++ | Code/Platform/Platform.cpp | WarzesProject/IsekaiWorld | 2abbf0fba0cf7aef884dd93ebada402f14b98359 | [
"MIT"
] | 1 | 2019-10-07T08:59:01.000Z | 2019-10-07T08:59:01.000Z | Code/Platform/Platform.cpp | WarzesProject/IsekaiWorld | 2abbf0fba0cf7aef884dd93ebada402f14b98359 | [
"MIT"
] | null | null | null | Code/Platform/Platform.cpp | WarzesProject/IsekaiWorld | 2abbf0fba0cf7aef884dd93ebada402f14b98359 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Platform.h"
//-----------------------------------------------------------------------------
Platform::Platform()
{
#if SE_PLATFORM_WINDOWS
if (timeBeginPeriod(1) == TIMERR_NOCANDO)
{
TODO("Log");//"Unable to set timer resolution to 1ms.This can cause significant waste in performance fo... | 27.774194 | 125 | 0.463415 | WarzesProject |
04c88acf6d3202be67cf11e2fe02c3ea3ee0d62f | 2,594 | cpp | C++ | keychain_win/secmodlib/src/NamedPipeServer.cpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 29 | 2018-03-21T09:21:18.000Z | 2020-09-22T16:31:03.000Z | keychain_win/secmodlib/src/NamedPipeServer.cpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 119 | 2018-03-16T14:02:04.000Z | 2019-04-16T21:16:32.000Z | keychain_win/secmodlib/src/NamedPipeServer.cpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 3 | 2018-03-21T15:00:16.000Z | 2019-12-25T09:03:58.000Z | #include "NamedPipeServer.h"
#include <keychain_lib/pipeline_parser.hpp>
#include <fcntl.h>
#include <io.h>
#include <iostream>
#include <future>
#include "SecureModuleWrapper.h"
#include <keychain_lib/keychain_logger.hpp>
NamedPipeServer::NamedPipeServer() {
//_secManage = new SecurityManager();
}
NamedPipeSer... | 31.634146 | 102 | 0.661527 | jokefor300 |
04c8a817f73d528d1e13da00c3ecd6aed24a43ac | 608 | hpp | C++ | src/Ast/Block.hpp | JCube001/pl0 | a6ce723ffc7f639ab64d1a06946990fb6ec295d5 | [
"MIT"
] | null | null | null | src/Ast/Block.hpp | JCube001/pl0 | a6ce723ffc7f639ab64d1a06946990fb6ec295d5 | [
"MIT"
] | null | null | null | src/Ast/Block.hpp | JCube001/pl0 | a6ce723ffc7f639ab64d1a06946990fb6ec295d5 | [
"MIT"
] | null | null | null | #ifndef PL0_AST_BLOCK_HPP
#define PL0_AST_BLOCK_HPP
#include "Ast/Node.hpp"
#include <memory>
#include <vector>
namespace PL0 {
namespace Ast {
struct Constant;
struct Identifier;
struct Procedure;
struct Statement;
struct Block final : public Node
{
void accept(Visitor& visitor) override
{ visitor.visit(*t... | 19.612903 | 55 | 0.731908 | JCube001 |
04c8b5681af094cb9ec710f32945e579d39739ff | 3,024 | hpp | C++ | climate-change/src/VS-Project/Libraries/godot-cpp-bindings/include/gen/VisualShaderNodeGroupBase.hpp | jerry871002/CSE201-project | c42cc0e51d0c8367e4d06fc33756ab2ec4118ff4 | [
"MIT"
] | 5 | 2021-05-27T21:50:33.000Z | 2022-01-28T11:54:32.000Z | climate-change/src/VS-Project/Libraries/godot-cpp-bindings/include/gen/VisualShaderNodeGroupBase.hpp | jerry871002/CSE201-project | c42cc0e51d0c8367e4d06fc33756ab2ec4118ff4 | [
"MIT"
] | null | null | null | climate-change/src/VS-Project/Libraries/godot-cpp-bindings/include/gen/VisualShaderNodeGroupBase.hpp | jerry871002/CSE201-project | c42cc0e51d0c8367e4d06fc33756ab2ec4118ff4 | [
"MIT"
] | 1 | 2021-01-04T21:12:05.000Z | 2021-01-04T21:12:05.000Z | #ifndef GODOT_CPP_VISUALSHADERNODEGROUPBASE_HPP
#define GODOT_CPP_VISUALSHADERNODEGROUPBASE_HPP
#include <gdnative_api_struct.gen.h>
#include <stdint.h>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include "VisualShaderNode.hpp"
namespace godot {
class VisualShaderNodeGroupBase : public VisualShaderNode... | 34.758621 | 245 | 0.813823 | jerry871002 |