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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3b9df65eb95c9495954d4ff1032eeb1013a54c6 | 2,388 | cpp | C++ | src/models/MessageOperationSource.cpp | VirgilSecurity/virgil-messenger-qt | cc29129705c8374580f2d7e76226544093838ca0 | [
"BSD-3-Clause"
] | 6 | 2020-04-24T06:20:18.000Z | 2021-09-30T13:06:12.000Z | src/models/MessageOperationSource.cpp | VirgilSecurity/virgil-messenger-qt | cc29129705c8374580f2d7e76226544093838ca0 | [
"BSD-3-Clause"
] | 13 | 2020-04-28T08:39:19.000Z | 2021-04-26T08:09:13.000Z | src/models/MessageOperationSource.cpp | VirgilSecurity/virgil-messenger-qt | cc29129705c8374580f2d7e76226544093838ca0 | [
"BSD-3-Clause"
] | 2 | 2020-04-16T11:57:14.000Z | 2020-09-07T17:34:19.000Z | // Copyright (C) 2015-2021 Virgil Security, Inc.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// (1) Redistributions of source code must retain the above copyright
// ... | 34.608696 | 105 | 0.737856 | VirgilSecurity |
a3ba8646d5be6e36548de446ccf3b6a9b0dd658a | 2,207 | cpp | C++ | 2017-08-03/F.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 3 | 2018-04-02T06:00:51.000Z | 2018-05-29T04:46:29.000Z | 2017-08-03/F.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-03-31T17:54:30.000Z | 2018-05-02T11:31:06.000Z | 2017-08-03/F.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-10-07T00:08:06.000Z | 2021-06-28T11:02:59.000Z | #include <cstdio>
typedef unsigned long long ULL;
const int maxn = 251, maxs = 1 << 16 | 1;
int t, n, m, lbt[maxs], tot, seq[maxn], ans;
inline int lowbit(unsigned msk) {
return msk & 65535 ? lbt[msk & 65535] : 16 + lbt[msk >> 16];
}
inline int lowbit(ULL msk) {
return msk & 4294967295ULL ? lowbit((unsigned)msk) : 32... | 23.98913 | 150 | 0.481196 | tangjz |
a3bf2ebc2fedfd268796cf08b2446dd094df5a8b | 4,832 | cpp | C++ | zebus/src/network/zebus-wifi.cpp | guidoschreuder/zebus | 62ddf7acee79bcc3b4899cae1d971efab55f9047 | [
"MIT"
] | 1 | 2022-01-23T12:03:25.000Z | 2022-01-23T12:03:25.000Z | zebus/src/network/zebus-wifi.cpp | guidoschreuder/zebus | 62ddf7acee79bcc3b4899cae1d971efab55f9047 | [
"MIT"
] | null | null | null | zebus/src/network/zebus-wifi.cpp | guidoschreuder/zebus | 62ddf7acee79bcc3b4899cae1d971efab55f9047 | [
"MIT"
] | null | null | null | #include "zebus-wifi.h"
#include <WiFiManager.h>
#include <nvs_flash.h>
#include "zebus-config.h"
#include "zebus-events.h"
#include "zebus-state.h"
#include "zebus-system-info.h"
#include "zebus-telegram-bot.h"
#include "zebus-time.h"
#include "zebus-secrets.h"
#include "zebus-espnow.h"
#include "zebus-mqtt.h"
cons... | 26.696133 | 124 | 0.723924 | guidoschreuder |
a3c0cf7706f93222ead7137931fd157d8390645b | 697 | cpp | C++ | lw/net/tls_router.cpp | LifeWanted/liblw | af8e08c47cb8aa7542eb2bef9fe09b7a0b44fed8 | [
"MIT"
] | 36 | 2015-10-04T15:05:21.000Z | 2022-01-30T07:18:36.000Z | lw/net/tls_router.cpp | LifeWanted/liblw | af8e08c47cb8aa7542eb2bef9fe09b7a0b44fed8 | [
"MIT"
] | 8 | 2017-03-20T12:28:15.000Z | 2021-02-24T20:40:45.000Z | lw/net/tls_router.cpp | LifeWanted/liblw | af8e08c47cb8aa7542eb2bef9fe09b7a0b44fed8 | [
"MIT"
] | 6 | 2017-09-25T13:50:03.000Z | 2021-01-16T00:01:44.000Z | #include "lw/net/tls_router.h"
#include "lw/co/future.h"
#include "lw/co/task.h"
#include "lw/log/log.h"
#include "lw/net/router.h"
#include "lw/net/tls.h"
#include "lw/net/tls_options.h"
namespace lw::net::internal {
co::Future<std::unique_ptr<net::TLSStream>> tls_wrap_connection(
net::TLSStreamFactory& tls_facto... | 24.892857 | 80 | 0.688666 | LifeWanted |
a3c150db277d8a0a2bad72ff4f9d54b0f9073f77 | 52 | cpp | C++ | src/workspace/src/raspberrypi_vitals/src/raspberrypi_vitals.cpp | glabmoris/Poseidon | 801dad37ab49adc1a31ccfc1e551c02676ad77c0 | [
"MIT"
] | 4 | 2021-04-21T05:20:23.000Z | 2022-02-28T21:20:25.000Z | src/workspace/src/raspberrypi_vitals/src/raspberrypi_vitals.cpp | glabmoris/Poseidon | 801dad37ab49adc1a31ccfc1e551c02676ad77c0 | [
"MIT"
] | 38 | 2021-09-07T16:39:14.000Z | 2022-03-15T13:41:07.000Z | src/workspace/src/raspberrypi_vitals/src/raspberrypi_vitals.cpp | glabmoris/Poseidon | 801dad37ab49adc1a31ccfc1e551c02676ad77c0 | [
"MIT"
] | 9 | 2021-04-01T15:34:43.000Z | 2021-11-09T19:07:08.000Z | #include "raspberrypi_vitals/raspberrypi_vitals.h"
| 17.333333 | 50 | 0.846154 | glabmoris |
a3c1d03d8c03af38c4e952ab591a977f30553fc4 | 2,061 | cpp | C++ | test_recv.cpp | Steamgjk/Stellar-Bench | 048161b02008463ce35cc3481cfd37913174d069 | [
"Apache-2.0"
] | null | null | null | test_recv.cpp | Steamgjk/Stellar-Bench | 048161b02008463ce35cc3481cfd37913174d069 | [
"Apache-2.0"
] | null | null | null | test_recv.cpp | Steamgjk/Stellar-Bench | 048161b02008463ce35cc3481cfd37913174d069 | [
"Apache-2.0"
] | null | null | null |
#include <iostream>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <string>
#include <cstring>
#include <cmath>
#include <time.h>
#include <vector>
#include <list>
#include <thread>
#incl... | 22.648352 | 91 | 0.702086 | Steamgjk |
a3c22b9a7828e375819955c81b5dd4d666928379 | 16,502 | cpp | C++ | hphp/runtime/eval/runtime/file_repository.cpp | larusx/hiphop-php | 65d2487ab7dbe5c06cb6dbb05e63e452ade52f7e | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-08-04T03:19:05.000Z | 2020-08-04T03:19:05.000Z | hphp/runtime/eval/runtime/file_repository.cpp | larusx/hiphop-php | 65d2487ab7dbe5c06cb6dbb05e63e452ade52f7e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/eval/runtime/file_repository.cpp | larusx/hiphop-php | 65d2487ab7dbe5c06cb6dbb05e63e452ade52f7e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... | 32.167641 | 79 | 0.602472 | larusx |
a3c400b536df6190ff105e3b59538ff0dc690b44 | 389 | cpp | C++ | main/reverse-a-doubly-linked-list/reverse-a-doubly-linked-list.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/reverse-a-doubly-linked-list/reverse-a-doubly-linked-list.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/reverse-a-doubly-linked-list/reverse-a-doubly-linked-list.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | /*
Reverse a doubly linked list, input list may also be empty
Node is defined as
struct Node
{
int data;
Node *next;
Node *prev;
}
*/
Node* Reverse(Node* head)
{
if (head == nullptr) return nullptr;
for (; ; ) {
std::swap(head->next, head->prev);
if (head->prev == ... | 16.913043 | 61 | 0.539846 | EliahKagan |
a3c497dfaba0b8b3d4049cbddf783fe780000573 | 1,615 | cc | C++ | ports/www/chromium-legacy/newport/files/patch-components_storage__monitor_storage__monitor__freebsd.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2015-02-06T17:06:37.000Z | 2022-03-08T19:53:28.000Z | ports/www/chromium-legacy/newport/files/patch-components_storage__monitor_storage__monitor__freebsd.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 236 | 2015-06-29T19:51:17.000Z | 2021-12-16T22:46:38.000Z | ports/www/chromium-legacy/newport/files/patch-components_storage__monitor_storage__monitor__freebsd.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 52 | 2015-02-06T17:05:36.000Z | 2021-10-21T12:13:06.000Z | --- components/storage_monitor/storage_monitor_freebsd.cc.orig 2020-11-16 10:08:44 UTC
+++ components/storage_monitor/storage_monitor_freebsd.cc
@@ -0,0 +1,54 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICE... | 27.844828 | 86 | 0.757276 | liweitianux |
a3c64a03870476bd3e65597b0dfa276f3de90038 | 11,931 | cpp | C++ | src/serac/numerics/tests/expr_templates.cpp | btalamini/serac | f7a1628d05393a3f5efce4d1808a0c3fde9bf188 | [
"BSD-3-Clause"
] | null | null | null | src/serac/numerics/tests/expr_templates.cpp | btalamini/serac | f7a1628d05393a3f5efce4d1808a0c3fde9bf188 | [
"BSD-3-Clause"
] | null | null | null | src/serac/numerics/tests/expr_templates.cpp | btalamini/serac | f7a1628d05393a3f5efce4d1808a0c3fde9bf188 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019-2022, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "serac/numerics/expr_template_ops.hpp"
#include <gtest/gtest.h>
static std::pair<mfem::Vector, mfem::Vecto... | 26.454545 | 116 | 0.640097 | btalamini |
a3c6c08e62deef0f37c2b741ff04664269344d0b | 438 | cpp | C++ | Source/Life/AI/Considerations/UtilityAiMinConsideration.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | 5 | 2022-02-09T21:19:03.000Z | 2022-03-03T01:53:03.000Z | Source/Life/AI/Considerations/UtilityAiMinConsideration.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | null | null | null | Source/Life/AI/Considerations/UtilityAiMinConsideration.cpp | PsichiX/Unreal-Systems-Architecture | fb2ccb243c8e79b0890736d611db7ba536937a93 | [
"Apache-2.0"
] | null | null | null | #include "Life/AI/Considerations/UtilityAiMinConsideration.h"
#include "Systems/Public/Iterator.h"
float UUtilityAiMinConsideration::Score(AActor* Actor,
USystemsWorld& Systems,
FUtilityAiMemory& Memory)
{
return IterStd(this->Considerations)
.Fold<float>(INFINITY,
[&](const auto Accum, auto& Consideration)
... | 25.764706 | 67 | 0.739726 | PsichiX |
a3ca1757bac72a61f1e24f32501c42e7c36debfb | 3,930 | cpp | C++ | SRC/SelglossD.cpp | gtoffoli/iperlogo | 568fd89addbd90c35cdc7b2620705faa6f488f8e | [
"Apache-2.0"
] | null | null | null | SRC/SelglossD.cpp | gtoffoli/iperlogo | 568fd89addbd90c35cdc7b2620705faa6f488f8e | [
"Apache-2.0"
] | null | null | null | SRC/SelglossD.cpp | gtoffoli/iperlogo | 568fd89addbd90c35cdc7b2620705faa6f488f8e | [
"Apache-2.0"
] | null | null | null | // SelglossD.cpp : implementation file
//
// 990722 modificato gestione di workDirectory e execDirectory
// 990707 esteso dialogo; modificato OnAll e OnOK
// 990510 cambiato nomi a campi di tabelle
#include "stdafx.h"
#include "iperlogo.h"
#include "ilcpp.h"
#include "selglossd.h"
//extern char WorkDirectory [];
exte... | 24.259259 | 89 | 0.678626 | gtoffoli |
a3cc7d216a47cae01a2afa3617c60b9fbc19fd5e | 7,723 | cpp | C++ | ConceptEngine/ConceptEngine/Concept-Engine/Graphics/DirectX12/Rendering/Base/CEDXBaseRayTracer.cpp | Ludaxord/ConceptEngine | 16775bc9b518d4fd4c8bd32bb5f297223dfacbae | [
"MIT"
] | 4 | 2021-01-10T00:46:21.000Z | 2022-02-25T18:43:26.000Z | ConceptEngine/ConceptEngine/Concept-Engine/Graphics/DirectX12/Rendering/Base/CEDXBaseRayTracer.cpp | Ludaxord/ConceptEngine | 16775bc9b518d4fd4c8bd32bb5f297223dfacbae | [
"MIT"
] | null | null | null | ConceptEngine/ConceptEngine/Concept-Engine/Graphics/DirectX12/Rendering/Base/CEDXBaseRayTracer.cpp | Ludaxord/ConceptEngine | 16775bc9b518d4fd4c8bd32bb5f297223dfacbae | [
"MIT"
] | null | null | null | #include "CEDXBaseRayTracer.h"
#include "../../../../Core/Platform/Generic/Managers/CECastManager.h"
#include "../../../../Core/Debug/CEDebug.h"
#include "../../../../Core/Debug/CEProfiler.h"
#include "../../../../Render/Scene/CEScene.h"
#include "../../../Main/Common/CEMaterial.h"
#include "../../../../Utilities/CED... | 38.232673 | 141 | 0.745565 | Ludaxord |
a3d2de25f3a208ee9fa617fb3282779b27e38f55 | 5,050 | cpp | C++ | Project/002-QSql_nmea/sqliteoperator.cpp | liukai-tech/Qt-Learning | 5f7d29f5868b6fa8b9340095af6cd025f94f698f | [
"MIT"
] | null | null | null | Project/002-QSql_nmea/sqliteoperator.cpp | liukai-tech/Qt-Learning | 5f7d29f5868b6fa8b9340095af6cd025f94f698f | [
"MIT"
] | null | null | null | Project/002-QSql_nmea/sqliteoperator.cpp | liukai-tech/Qt-Learning | 5f7d29f5868b6fa8b9340095af6cd025f94f698f | [
"MIT"
] | null | null | null | #include "sqliteoperator.h"
// 构造函数中初始化数据库对象,并建立数据库
SqliteOperator::SqliteOperator()
{
if (QSqlDatabase::contains("qt_sql_default_connection"))
{
m_database = QSqlDatabase::database("qt_sql_default_connection");
}
else
{
// 建立和SQlite数据库的连接
m_database = QSqlDatabase::addData... | 24.754902 | 94 | 0.582574 | liukai-tech |
a3d431e6c6e288660d1609e53c84ac24506ebe07 | 3,534 | cc | C++ | test/server/hot_restart_impl_test.cc | tgalkovskyi/envoy | 9d702c125acde33933fc5d63818b1defe36b5cf3 | [
"Apache-2.0"
] | 1 | 2022-01-22T10:01:08.000Z | 2022-01-22T10:01:08.000Z | test/server/hot_restart_impl_test.cc | tgalkovskyi/envoy | 9d702c125acde33933fc5d63818b1defe36b5cf3 | [
"Apache-2.0"
] | null | null | null | test/server/hot_restart_impl_test.cc | tgalkovskyi/envoy | 9d702c125acde33933fc5d63818b1defe36b5cf3 | [
"Apache-2.0"
] | 1 | 2021-03-13T05:25:47.000Z | 2021-03-13T05:25:47.000Z | #include <memory>
#include "common/api/os_sys_calls_impl.h"
#include "common/api/os_sys_calls_impl_hot_restart.h"
#include "common/common/hex.h"
#include "server/hot_restart_impl.h"
#include "test/mocks/api/hot_restart.h"
#include "test/mocks/api/mocks.h"
#include "test/mocks/server/mocks.h"
#include "test/test_comm... | 33.657143 | 100 | 0.739672 | tgalkovskyi |
a3d463f6bb28527528e8ca37496141e9cc778030 | 984 | cpp | C++ | exercises/03_exercise/shared_value_basic.cpp | jrmejiaa/multithreading-cpp | 462f24bb3c63e5b7b4bba767ed423beb89bc09b0 | [
"MIT"
] | null | null | null | exercises/03_exercise/shared_value_basic.cpp | jrmejiaa/multithreading-cpp | 462f24bb3c63e5b7b4bba767ed423beb89bc09b0 | [
"MIT"
] | null | null | null | exercises/03_exercise/shared_value_basic.cpp | jrmejiaa/multithreading-cpp | 462f24bb3c63e5b7b4bba767ed423beb89bc09b0 | [
"MIT"
] | null | null | null | #include <string>
#include <thread>
int sharedValue = 0;
void IncrementSharedValue10000000Times() {
int count = 0;
while (count < 10000000) {
sharedValue++;
count++;
}
}
/*
* Questions about the code
*
* a) What would be the expected output of this program?
* R/ The expected output... | 31.741935 | 113 | 0.686992 | jrmejiaa |
a3d7ca1dc4c2a8a267c60db5c19b22616190b407 | 954 | cpp | C++ | compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: %clangxx_asan -O0 -mllvm -asan-instrument-dynamic-allocas %s -o %t
// RUN: %run %t 2>&1
//
// REQUIRES: stable-runtime
// This testcase checks that allocas and VLAs inside loop are correctly unpoisoned.
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include "sanitizer/asan_interface.h"
// MSVC ... | 22.186047 | 83 | 0.662474 | medismailben |
a3d7f109139c51653ad1fa90dd1f379be63ba66f | 212 | cpp | C++ | ABS/ABC081A.cpp | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABS/ABC081A.cpp | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABS/ABC081A.cpp | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int i, count = 0;
string str;
cin >> str;
for(i = 0; i < 3; i++){
if(str.at(i) == '1'){
count++;
}
}
cout << count << endl;
}
| 13.25 | 25 | 0.471698 | fumiyanll23 |
a3d835c853e2fbcae3cf94d9085d601ccacd49f2 | 7,398 | cc | C++ | src/sys/appmgr/namespace.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | src/sys/appmgr/namespace.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | src/sys/appmgr/namespace.cc | zarelaky/fuchsia | 858cc1914de722b13afc2aaaee8a6bd491cd8d9a | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 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/sys/appmgr/namespace.h"
#include <fuchsia/process/cpp/fidl.h>
#include <fuchsia/sys/internal/cpp/fidl.h>
#include <lib/async/default.h>
#inc... | 42.763006 | 100 | 0.655447 | zarelaky |
a3d9563dfb39a4c9a1a5eae6020d8bcb1ddff240 | 2,014 | cpp | C++ | src/noncryptographic/saxhash32.cpp | namralkeeg/QHashlib | 5b4fdb33833b6b0a1856c87a6d4696371aecfe59 | [
"MIT"
] | null | null | null | src/noncryptographic/saxhash32.cpp | namralkeeg/QHashlib | 5b4fdb33833b6b0a1856c87a6d4696371aecfe59 | [
"MIT"
] | null | null | null | src/noncryptographic/saxhash32.cpp | namralkeeg/QHashlib | 5b4fdb33833b6b0a1856c87a6d4696371aecfe59 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017 Larry Lopez
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish... | 30.059701 | 96 | 0.722443 | namralkeeg |
a3d97d5136b68dc4446ac695166906e7c96eeb56 | 1,785 | cpp | C++ | python/pyarb.cpp | Tadinu/arbor | 981904a542b96f73a6554b3f63049ea4c2de8cfc | [
"BSD-3-Clause"
] | null | null | null | python/pyarb.cpp | Tadinu/arbor | 981904a542b96f73a6554b3f63049ea4c2de8cfc | [
"BSD-3-Clause"
] | null | null | null | python/pyarb.cpp | Tadinu/arbor | 981904a542b96f73a6554b3f63049ea4c2de8cfc | [
"BSD-3-Clause"
] | null | null | null | #include <pybind11/pybind11.h>
#include <arbor/version.hpp>
// Forward declarations of functions used to register API
// types and functions to be exposed to Python.
namespace pyarb {
void register_cells(pybind11::module& m);
void register_config(pybind11::module& m);
void register_contexts(pybind11::module& m);
voi... | 31.875 | 63 | 0.756863 | Tadinu |
a3dabcc99e138135f320eab79e1863896ef03b75 | 36,933 | cc | C++ | test/regression/set_pose_loop.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 | test/regression/set_pose_loop.cc | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/regression/set_pose_loop.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... | 44.17823 | 80 | 0.536323 | thomas-moulard |
a3db470873a4820096db369972629f375adac459 | 1,888 | hpp | C++ | include/fdeep/shape3_variable.hpp | chammika/frugally-deep | 6c0b03efcb05cf5ace17e2f74c369ee44f95817a | [
"MIT"
] | 1 | 2018-12-05T22:43:05.000Z | 2018-12-05T22:43:05.000Z | include/fdeep/shape3_variable.hpp | szad670401/frugally-deep | c84d256f49e41b213d740999140dd7099a853491 | [
"MIT"
] | null | null | null | include/fdeep/shape3_variable.hpp | szad670401/frugally-deep | c84d256f49e41b213d740999140dd7099a853491 | [
"MIT"
] | null | null | null | // Copyright 2016, Tobias Hermann.
// https://github.com/Dobiasd/frugally-deep
// Distributed under the MIT License.
// (See accompanying LICENSE file or at
// https://opensource.org/licenses/MIT)
#pragma once
#include "fdeep/common.hpp"
#include "fdeep/shape2_variable.hpp"
#include "fdeep/shape2.hpp"
#include <al... | 23.898734 | 80 | 0.675847 | chammika |
a3de061695c75e2defbd16e3c7cfa7f53c2ea63a | 1,148 | cc | C++ | sentinel-core/transport/command/command_request_test.cc | windrunner123/sentinel-cpp | 7957e692466db0b7b83b7218602757113e9f2d22 | [
"Apache-2.0"
] | 121 | 2019-02-22T06:50:31.000Z | 2022-01-22T23:23:42.000Z | sentinel-core/transport/command/command_request_test.cc | windrunner123/sentinel-cpp | 7957e692466db0b7b83b7218602757113e9f2d22 | [
"Apache-2.0"
] | 24 | 2019-05-07T08:58:38.000Z | 2022-01-26T02:36:06.000Z | sentinel-core/transport/command/command_request_test.cc | windrunner123/sentinel-cpp | 7957e692466db0b7b83b7218602757113e9f2d22 | [
"Apache-2.0"
] | 36 | 2019-03-19T09:46:08.000Z | 2021-11-24T13:20:56.000Z | #include "gmock/gmock.h"
#include "gtest/gtest.h"
#define private public
#include "sentinel-core/transport/command/command_request.h"
namespace Sentinel {
namespace Transport {
TEST(CommandRequestTest, TestBody) {
CommandRequest request;
request.set_body("testbody");
auto ret = request.body();
EXPECT_EQ(r... | 20.5 | 60 | 0.688153 | windrunner123 |
a3de66041da608b9870b79e11425eefc41de396e | 3,562 | hpp | C++ | include/Nazara/OpenGLRenderer/OpenGLDevice.hpp | gogo2464/NazaraEngine | f1a00c36cb27d9f07d1b7db03313e0038d9a7d00 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/OpenGLRenderer/OpenGLDevice.hpp | gogo2464/NazaraEngine | f1a00c36cb27d9f07d1b7db03313e0038d9a7d00 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/OpenGLRenderer/OpenGLDevice.hpp | gogo2464/NazaraEngine | f1a00c36cb27d9f07d1b7db03313e0038d9a7d00 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Nazara Engine - OpenGL Renderer"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_OPENGLRENDERER_OPENGLDEVICE_HPP
#define NAZARA_OPENGLRENDERER_OPENGLDEVICE_HPP
#include <Nazara/Prerequisites.h... | 48.794521 | 240 | 0.805446 | gogo2464 |
a3e021f7c73b50d2533ec543691194a19cdcbd16 | 426 | hpp | C++ | Quiz1/quiz1.hpp | deror1869107/yypoop | f3605961787610bf08f8a9ea2afb905d1af3c5c0 | [
"MIT"
] | null | null | null | Quiz1/quiz1.hpp | deror1869107/yypoop | f3605961787610bf08f8a9ea2afb905d1af3c5c0 | [
"MIT"
] | null | null | null | Quiz1/quiz1.hpp | deror1869107/yypoop | f3605961787610bf08f8a9ea2afb905d1af3c5c0 | [
"MIT"
] | null | null | null | #include <vector>
#include <cmath>
namespace quiz1{
template<class T>
T EuclideanDistance(const std::vector<T>& Pa,
const std::vector<T>& Pb){
if( Pa.size() != Pb.size() )
throw ":(";
T Distance = 0;
// Fill your code here
for(size_t i = 0; i < Pa.size(); ++i){
Di... | 17.75 | 47 | 0.518779 | deror1869107 |
9cb174f74ff59788031d23f2001abf3a2edb5b7c | 2,006 | cpp | C++ | src/examples/ex1/ex1.cpp | juzzlin/Argengine | c3f71f32356e966e92459736b1805c7600087bd6 | [
"MIT"
] | 4 | 2020-03-01T19:59:20.000Z | 2022-01-03T07:09:56.000Z | src/examples/ex1/ex1.cpp | juzzlin/Argengine | c3f71f32356e966e92459736b1805c7600087bd6 | [
"MIT"
] | 5 | 2020-03-01T18:28:27.000Z | 2020-03-04T19:50:34.000Z | src/examples/ex1/ex1.cpp | juzzlin/Argengine | c3f71f32356e966e92459736b1805c7600087bd6 | [
"MIT"
] | 2 | 2020-06-12T15:07:46.000Z | 2022-03-30T08:31:37.000Z | // MIT License
//
// Copyright (c) 2020 Jussi Lind <jussi.lind@iki.fi>
//
// https://github.com/juzzlin/Argengine
//
// 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, in... | 33.433333 | 81 | 0.658524 | juzzlin |
9cb1c3b14795b396cd1f421d7e7d6adce6589149 | 19,619 | cpp | C++ | bmp/main.cpp | martinberlin/inkster-jpegdec | 96ac266ac3701126e3fa1cd5acaaac632d885954 | [
"MIT"
] | 1 | 2022-03-19T19:57:56.000Z | 2022-03-19T19:57:56.000Z | bmp/main.cpp | martinberlin/inkster-jpegdec | 96ac266ac3701126e3fa1cd5acaaac632d885954 | [
"MIT"
] | null | null | null | bmp/main.cpp | martinberlin/inkster-jpegdec | 96ac266ac3701126e3fa1cd5acaaac632d885954 | [
"MIT"
] | null | null | null | /* Simple firmware for a ESP32 displaying a static image on an EPaper Screen */
#include <Arduino.h> // Needs to be on the top otherwise there will be errors
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_system.h"
#include "esp_wifi.h"
#include "esp_event.h"... | 35.159498 | 157 | 0.546511 | martinberlin |
9cb2ee388a18e726945fb5bf84b25c8081439a19 | 5,852 | cpp | C++ | backends/db2/standard-use-type.cpp | staticlibs/lookaside_soci | b3326cff7d4cf2dc122179eb8b988f2521944550 | [
"BSL-1.0"
] | null | null | null | backends/db2/standard-use-type.cpp | staticlibs/lookaside_soci | b3326cff7d4cf2dc122179eb8b988f2521944550 | [
"BSL-1.0"
] | null | null | null | backends/db2/standard-use-type.cpp | staticlibs/lookaside_soci | b3326cff7d4cf2dc122179eb8b988f2521944550 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (C) 2011-2013 Denis Chapligin
// Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton, David Courtney
// 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)
#define SOCI_DB2_SOURCE
#include "s... | 28.970297 | 93 | 0.561176 | staticlibs |
9cb60d12e98beac246641af0fe5a3fd257e0b181 | 49,720 | cc | C++ | components/autofill_assistant/browser/script_executor.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-10-18T02:33:40.000Z | 2020-10-18T02:33:40.000Z | components/autofill_assistant/browser/script_executor.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-05-17T16:28:52.000Z | 2021-05-21T22:42:22.000Z | components/autofill_assistant/browser/script_executor.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 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 "components/autofill_assistant/browser/script_executor.h"
#include <cstdio>
#include <ostream>
#include <string>
#include <utility>
#include "b... | 35.873016 | 80 | 0.726689 | DamieFC |
9cb64db33461bab41798517484b75e5ef23a1ea8 | 2,494 | cpp | C++ | src/GUI/Text.cpp | szebest/Basic-SFML-Application-Framework | e6b979283a1aba87ea5eefb1785d6f9bf4485d4a | [
"MIT"
] | null | null | null | src/GUI/Text.cpp | szebest/Basic-SFML-Application-Framework | e6b979283a1aba87ea5eefb1785d6f9bf4485d4a | [
"MIT"
] | null | null | null | src/GUI/Text.cpp | szebest/Basic-SFML-Application-Framework | e6b979283a1aba87ea5eefb1785d6f9bf4485d4a | [
"MIT"
] | null | null | null | #include "Text.h"
Text::Text(sf::Vector2f pos, const std::string& text) :
m_pattern(text), m_pos(pos), m_fixedPos(false)
{
setFont(holder::get().fonts.get("arial"));
setText(text);
setColor(sf::Color::White);
setCharSize(32);
setPosition(pos);
m_fPos = getPosition() - sf::Vector2f(m_text.getGlobalBounds().width... | 18.338235 | 143 | 0.680433 | szebest |
9cb7fa499ac58a511a165c80731f7142b0912fc1 | 12,863 | cpp | C++ | src/game/shared/tf/tf_weapon_pda.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/shared/tf/tf_weapon_pda.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/shared/tf/tf_weapon_pda.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "cbase.h"
#ifdef CLIENT_DLL
#include "iinput.h"
#endif
#include "tf_weapon_pda.h"
#include "in_buttons.h"
#include "tf_gamerules.h"... | 23.864564 | 112 | 0.640286 | cstom4994 |
9cb914f7946f09e7cb641b6cc7223539ebb8d534 | 315 | cpp | C++ | test/doom_test.cpp | Aneurin/devilutionX | b3274325a1a47b917df484ee7b92c8b641e26c13 | [
"Unlicense"
] | 4 | 2021-05-11T06:10:24.000Z | 2021-07-31T22:31:03.000Z | test/doom_test.cpp | Aneurin/devilutionX | b3274325a1a47b917df484ee7b92c8b641e26c13 | [
"Unlicense"
] | 6 | 2020-07-25T22:09:00.000Z | 2020-07-26T04:32:34.000Z | test/doom_test.cpp | Aneurin/devilutionX | b3274325a1a47b917df484ee7b92c8b641e26c13 | [
"Unlicense"
] | 1 | 2021-08-01T11:55:36.000Z | 2021-08-01T11:55:36.000Z | #include <gtest/gtest.h>
#include "doom.h"
using namespace devilution;
TEST(Doom, doom_get_frame_from_time)
{
DoomQuestState = 1200 * 8 + 548;
EXPECT_EQ(doom_get_frame_from_time(), 8);
}
TEST(Doom, doom_get_frame_from_time_max)
{
DoomQuestState = 1200 * 30 + 1;
EXPECT_EQ(doom_get_frame_from_time(), 31);
}
| 17.5 | 43 | 0.742857 | Aneurin |
9cb9261d37b672019febc58b5a98afdbe0003db3 | 8,370 | cpp | C++ | be/src/util/trace.cpp | manbuyun/starrocks | 0d30bbb49732969105aec3db7d36edbba30e424a | [
"Zlib",
"PSF-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | be/src/util/trace.cpp | manbuyun/starrocks | 0d30bbb49732969105aec3db7d36edbba30e424a | [
"Zlib",
"PSF-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | be/src/util/trace.cpp | manbuyun/starrocks | 0d30bbb49732969105aec3db7d36edbba30e424a | [
"Zlib",
"PSF-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | // This file is made available under Elastic License 2.0.
// This file is based on code available under the Apache license here:
// https://github.com/apache/incubator-doris/blob/master/be/src/util/trace.cpp
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See... | 32.695313 | 117 | 0.651613 | manbuyun |
9cb9fc7ce25d32485ae624743de348f43fee9b3e | 38,306 | cpp | C++ | vm/reflect/Reflect.cpp | leewp14/android_dalvik | c1202ff8b476a3445f3b844c795ffe47ab526313 | [
"Apache-2.0"
] | 1,306 | 2015-09-01T05:06:16.000Z | 2022-03-10T07:13:10.000Z | dalvik/vm/reflect/Reflect.cpp | cnrat/DexHunter | b8f46563c7f3aeb79cf40db09e1d231649f1a29a | [
"Apache-2.0"
] | 11 | 2015-09-02T09:06:42.000Z | 2020-12-26T04:59:34.000Z | dalvik/vm/reflect/Reflect.cpp | cnrat/DexHunter | b8f46563c7f3aeb79cf40db09e1d231649f1a29a | [
"Apache-2.0"
] | 598 | 2015-09-01T05:06:18.000Z | 2022-03-27T07:59:49.000Z | /*
* Copyright (C) 2008 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... | 29.949961 | 92 | 0.612802 | leewp14 |
9cbb583694a2b258159fcdddb61c56d3023163ef | 10,013 | cpp | C++ | gm/aaxfermodes.cpp | Samsomyajit/skia | 506480f1bfa8151ddde34a20b4a357cf387e8681 | [
"BSD-3-Clause"
] | null | null | null | gm/aaxfermodes.cpp | Samsomyajit/skia | 506480f1bfa8151ddde34a20b4a357cf387e8681 | [
"BSD-3-Clause"
] | null | null | null | gm/aaxfermodes.cpp | Samsomyajit/skia | 506480f1bfa8151ddde34a20b4a357cf387e8681 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "sk_tool_utils.h"
#include "SkColorPriv.h"
#include "SkPath.h"
#include "SkShader.h"
enum {
kXfermodeCount = (int)SkBlendMode::kLastMode + 1 + 1,... | 36.543796 | 98 | 0.537302 | Samsomyajit |
9cbe87c5cb1260cfa37e51b99b9eba34cd5783df | 1,187 | cpp | C++ | Plugins/CustomVariantManager/Source/4Application/Private/ApplicationModule.cpp | IhnoL/GoogleMockUnreal | 0f52573de99b7f4e94d3af3eff37a64a1b03a8e2 | [
"Apache-2.0"
] | 4 | 2021-06-29T00:06:03.000Z | 2022-03-09T11:29:59.000Z | Plugins/CustomVariantManager/Source/4Application/Private/ApplicationModule.cpp | IhnoL/GoogleMockUnreal | 0f52573de99b7f4e94d3af3eff37a64a1b03a8e2 | [
"Apache-2.0"
] | null | null | null | Plugins/CustomVariantManager/Source/4Application/Private/ApplicationModule.cpp | IhnoL/GoogleMockUnreal | 0f52573de99b7f4e94d3af3eff37a64a1b03a8e2 | [
"Apache-2.0"
] | null | null | null | #define LOCTEXT_NAMESPACE "FApplicationModule"
#include "ApplicationModule.h"
#include "Scenes/GeometryVariantSetDetail/IGeometryVariantSetDataStore.h"
#include "Scenes/GeometryVariantSetDetail/IGeometryVariantSetDetailInteractor.h"
#include "Scenes/GeometryVariantSetDetail/Interactor/GeometryVariantSetDetailInteractor... | 32.972222 | 129 | 0.850042 | IhnoL |
9cbe88bde6c84acb64d6a7dd6f97f31c3a45e4f1 | 6,000 | cc | C++ | tensorflow/core/kernels/sparse/sparse_matrix_components_op.cc | where-is-brett/tensorflow | 5da8599b2cf9edfb9fac4431c705501bf7ceccd8 | [
"Apache-2.0"
] | 57 | 2017-09-03T07:08:31.000Z | 2022-02-28T04:33:42.000Z | tensorflow/core/kernels/sparse/sparse_matrix_components_op.cc | sagol/tensorflow | 04f2870814d2773e09dcfa00cbe76a66a2c4de88 | [
"Apache-2.0"
] | 58 | 2021-11-22T05:41:28.000Z | 2022-01-19T01:33:40.000Z | tensorflow/core/kernels/sparse/sparse_matrix_components_op.cc | sagol/tensorflow | 04f2870814d2773e09dcfa00cbe76a66a2c4de88 | [
"Apache-2.0"
] | 66 | 2020-05-15T10:05:12.000Z | 2022-02-14T07:28:18.000Z | /* Copyright 2019 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... | 38.709677 | 80 | 0.634167 | where-is-brett |
9cc07e6bb048c268523d5879dbe8ae6856e725cd | 5,905 | hpp | C++ | MemStream2.hpp | zswdjh/A_Functional_Database_Application | 79583984aac3b8dfd007633ac0a1f39f7e2cb573 | [
"MIT"
] | null | null | null | MemStream2.hpp | zswdjh/A_Functional_Database_Application | 79583984aac3b8dfd007633ac0a1f39f7e2cb573 | [
"MIT"
] | null | null | null | MemStream2.hpp | zswdjh/A_Functional_Database_Application | 79583984aac3b8dfd007633ac0a1f39f7e2cb573 | [
"MIT"
] | null | null | null | //
// MemStream2.hpp
// ECEDatabase5
//
// Created by rick gessner on 5/8/18.
// Copyright © 2018 rick gessner. All rights reserved.
//
#ifndef MemStream2_h
#define MemStream2_h
#include <fstream>
#include <stdint.h>
#include <cstdio>
#include <string>
#include <cstring>
#include <stdexcept>
#include <iostream>
#... | 23.714859 | 101 | 0.562574 | zswdjh |
9cc0b88f04072069caf207a769965a7eb022d5cd | 14,785 | cpp | C++ | source/backend/cpu/CPUReduction.cpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | 1 | 2019-08-09T03:16:49.000Z | 2019-08-09T03:16:49.000Z | source/backend/cpu/CPUReduction.cpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | null | null | null | source/backend/cpu/CPUReduction.cpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | 1 | 2021-08-23T03:40:09.000Z | 2021-08-23T03:40:09.000Z | //
// CPUReduction.cpp
// MNN
//
// Created by MNN on 2018/07/25.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "CPUReduction.hpp"
#include "CommonOptFunction.h"
#include "Macro.h"
#define UNIT 4
#define UNIT_DUP(value) \
{ (value), (value), (value), (value) }
namespace MNN {
class Reduction... | 37.620865 | 120 | 0.497328 | xindongzhang |
9cc3c56d81ecb251d7440328dac5baac899fdb67 | 2,808 | cpp | C++ | external/webkit/Source/WebCore/svg/SVGMPathElement.cpp | ghsecuritylab/android_platform_sony_nicki | 526381be7808e5202d7865aa10303cb5d249388a | [
"Apache-2.0"
] | 6 | 2017-05-31T01:46:45.000Z | 2018-06-12T10:53:30.000Z | Source/WebCore/svg/SVGMPathElement.cpp | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | Source/WebCore/svg/SVGMPathElement.cpp | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 2 | 2017-07-17T06:02:42.000Z | 2018-09-19T10:08:38.000Z | /*
* Copyright (C) 2007 Eric Seidel <eric@webkit.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*... | 31.2 | 135 | 0.759972 | ghsecuritylab |
9cc3e2e224a36a3d811a29fab5f252451791d505 | 3,551 | cpp | C++ | src/Writer.cpp | AmayaHena/ClassCreatorGeneric | 0d332d3fd3996f9fc3269878a31ae4fdda00b10e | [
"MIT"
] | null | null | null | src/Writer.cpp | AmayaHena/ClassCreatorGeneric | 0d332d3fd3996f9fc3269878a31ae4fdda00b10e | [
"MIT"
] | null | null | null | src/Writer.cpp | AmayaHena/ClassCreatorGeneric | 0d332d3fd3996f9fc3269878a31ae4fdda00b10e | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2019
** ClassCreator
** File description:
** Writer
*/
/* STD Library */
#include <functional>
/* STD Types Library */
#include <fstream>
#include <string>
#include "Writer.hpp"
Writer::Writer() : _tag_ref("/*#!")
{
_tagMake["ProgramName"] = PROGNAME;
_tagMake["SrcMakefile"] = SRCMAKE;
_ta... | 20.526012 | 119 | 0.608561 | AmayaHena |
9cc4c88453298c67fa3b7f596f3e38c2abf2e0ae | 12,926 | cpp | C++ | hdf5-1.8.20/c++/src/H5FcreatProp.cpp | GWU-CFD/flash-distro | 740f45047bde057365823036158893c19c6d7c72 | [
"MIT"
] | null | null | null | hdf5-1.8.20/c++/src/H5FcreatProp.cpp | GWU-CFD/flash-distro | 740f45047bde057365823036158893c19c6d7c72 | [
"MIT"
] | null | null | null | hdf5-1.8.20/c++/src/H5FcreatProp.cpp | GWU-CFD/flash-distro | 740f45047bde057365823036158893c19c6d7c72 | [
"MIT"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | 42.943522 | 143 | 0.534195 | GWU-CFD |
9cc6475c1b57d20b665fae970c15f99ce2eeef0f | 1,140 | cpp | C++ | examples/ex_spsc.cpp | ankitkk/mahi-util | 0881b43c0d86d0250c9a2c3162e88a95dcbe8a33 | [
"MIT"
] | 10 | 2020-05-08T09:02:17.000Z | 2021-09-17T19:18:10.000Z | examples/ex_spsc.cpp | ankitkk/mahi-util | 0881b43c0d86d0250c9a2c3162e88a95dcbe8a33 | [
"MIT"
] | 6 | 2020-03-29T15:24:25.000Z | 2021-07-08T07:16:51.000Z | examples/ex_spsc.cpp | ankitkk/mahi-util | 0881b43c0d86d0250c9a2c3162e88a95dcbe8a33 | [
"MIT"
] | 11 | 2020-03-29T09:05:29.000Z | 2022-02-11T20:59:19.000Z | #include <Mahi/Util/Templates/SPSCQueue.hpp>
#include <Mahi/Util/System.hpp>
#include <Mahi/Util/Print.hpp>
#include <Mahi/Util/Timing/Clock.hpp>
#include <thread>
#include <string>
#include <iostream>
using namespace mahi::util;
// SPSCQueue is a single-producer-single-consumer, wait free, lock free queue for multit... | 24.782609 | 99 | 0.642982 | ankitkk |
9cc7fd56e81b95750c41c34a3509777469e5a947 | 2,399 | hpp | C++ | dac_contracts/distribution/distribution.hpp | eosdac/eosdac_contracts | f213b0f07c425912692c38e8b7e07ad99da9ddca | [
"MIT"
] | 16 | 2019-06-13T18:07:51.000Z | 2021-12-09T06:43:21.000Z | dac_contracts/distribution/distribution.hpp | eosdac/eosdac_contracts | f213b0f07c425912692c38e8b7e07ad99da9ddca | [
"MIT"
] | 70 | 2019-05-11T15:20:51.000Z | 2021-08-31T17:35:24.000Z | dac_contracts/distribution/distribution.hpp | eosdac/eosdac_contracts | f213b0f07c425912692c38e8b7e07ad99da9ddca | [
"MIT"
] | 11 | 2019-06-13T18:07:56.000Z | 2021-12-19T19:11:53.000Z | #include <eosio/asset.hpp>
#include <eosio/eosio.hpp>
#include <eosio/multi_index.hpp>
#include <eosio/print.hpp>
#include <eosio/symbol.hpp>
using namespace eosio;
using namespace std;
CONTRACT distribution : public contract {
public:
using contract::contract;
distribution(eosio::name receiver, eosio::name... | 36.348485 | 119 | 0.660275 | eosdac |
9ccbe1107a139974ba9ae4cebce851e65872c686 | 2,113 | hpp | C++ | include/gridtools/stencil_composition/backend.hpp | jdahm/gridtools | 5961932cd2ccf336d3d73b4bc967243828e55cc5 | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/stencil_composition/backend.hpp | jdahm/gridtools | 5961932cd2ccf336d3d73b4bc967243828e55cc5 | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/stencil_composition/backend.hpp | jdahm/gridtools | 5961932cd2ccf336d3d73b4bc967243828e55cc5 | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <functional>
#include <utility>
#include "../common/hymap.hpp"
#include "../common/tuple.hpp"
#include "..... | 35.216667 | 117 | 0.613819 | jdahm |
9ccc3c9484b256c07da2e913d882bd6ca55a7302 | 1,153 | cpp | C++ | src/dmove_eig.cpp | klast/magma | cfb849621be6f697288e995831ec3c9e84530d9d | [
"BSD-3-Clause"
] | 4 | 2020-12-04T13:31:18.000Z | 2021-12-10T11:41:23.000Z | src/dmove_eig.cpp | klast/magma | cfb849621be6f697288e995831ec3c9e84530d9d | [
"BSD-3-Clause"
] | 1 | 2021-03-27T20:00:25.000Z | 2021-03-28T06:19:59.000Z | src/dmove_eig.cpp | klast/magma | cfb849621be6f697288e995831ec3c9e84530d9d | [
"BSD-3-Clause"
] | 2 | 2020-12-04T13:23:36.000Z | 2021-03-27T00:50:27.000Z | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@author Raffaele Solca
@author Azzam Haidar
@precisions normal d -> s
*/
#include "magma_internal.h"
extern "C" void
magma_dmov... | 20.963636 | 67 | 0.433651 | klast |
9ccd0ba8b47536550eb4eb2b977989d6e50000fd | 6,545 | cpp | C++ | timeseries.cpp | tkoziara/parmec | fefe0586798cd65744334f9abeab183159bd3d7a | [
"MIT"
] | null | null | null | timeseries.cpp | tkoziara/parmec | fefe0586798cd65744334f9abeab183159bd3d7a | [
"MIT"
] | 15 | 2017-06-09T12:05:27.000Z | 2018-10-25T13:59:58.000Z | timeseries.cpp | parmes/parmec | fefe0586798cd65744334f9abeab183159bd3d7a | [
"MIT"
] | null | null | null | /*
The MIT License (MIT)
Copyright (c) 2017 Tomasz Koziara
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... | 23.886861 | 111 | 0.566539 | tkoziara |
9ccd901744baa236459bd824657e21393987cfa1 | 6,430 | cpp | C++ | storage/src/vespa/storage/persistence/provider_error_wrapper.cpp | shahariel/vespa | 8981a2ea9e3a0f5435419208ef31b37be6dac556 | [
"Apache-2.0"
] | null | null | null | storage/src/vespa/storage/persistence/provider_error_wrapper.cpp | shahariel/vespa | 8981a2ea9e3a0f5435419208ef31b37be6dac556 | [
"Apache-2.0"
] | null | null | null | storage/src/vespa/storage/persistence/provider_error_wrapper.cpp | shahariel/vespa | 8981a2ea9e3a0f5435419208ef31b37be6dac556 | [
"Apache-2.0"
] | null | null | null | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "provider_error_wrapper.h"
#include "persistenceutil.h"
#include <vespa/vespalib/util/idestructorcallback.h>
namespace storage {
template <typename ResultType>
ResultType
ProviderErrorWrapper::checkResul... | 34.385027 | 146 | 0.741058 | shahariel |
9ccee7753c800ea05ddcfb88715862cf451a0e7d | 4,913 | cpp | C++ | thirdparty/ULib/examples/rsign/rsignclient.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/ULib/examples/rsign/rsignclient.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/ULib/examples/rsign/rsignclient.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | // rsignclient.cpp
#include <ulib/file_config.h>
#include <ulib/utility/base64.h>
#include <ulib/utility/services.h>
#include <ulib/ssl/net/sslsocket.h>
#include <ulib/xml/soap/soap_client.h>
#undef PACKAGE
#define PACKAGE "rsignclient"
#undef ARGS
#define ARGS ""
#define U_OPTIONS \
"purpose \"client for interfac... | 26.994505 | 125 | 0.561571 | liftchampion |
9cd2af136ddee5e10566da9e1b8e54dae5051c10 | 5,388 | hpp | C++ | ngraph/frontend/onnx_import/include/onnx_import/utils/convpool.hpp | shre2398/openvino | f84a6d97ace26b75ae9d852525a997cbaba32e6a | [
"Apache-2.0"
] | 2 | 2020-11-18T14:14:06.000Z | 2020-11-28T04:55:57.000Z | ngraph/frontend/onnx_import/include/onnx_import/utils/convpool.hpp | shre2398/openvino | f84a6d97ace26b75ae9d852525a997cbaba32e6a | [
"Apache-2.0"
] | 30 | 2020-11-13T11:44:07.000Z | 2022-02-21T13:03:16.000Z | ngraph/frontend/onnx_import/include/onnx_import/utils/convpool.hpp | shre2398/openvino | f84a6d97ace26b75ae9d852525a997cbaba32e6a | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 47.681416 | 99 | 0.541203 | shre2398 |
9cd41651defe5ebc0ac43823c08c3b39643ce730 | 15,131 | cc | C++ | test/gurka/test_oneways.cc | sidilabs/valhalla | d2914a4527f2aeb7495dfdbacea60fdc0b92c6a0 | [
"MIT"
] | null | null | null | test/gurka/test_oneways.cc | sidilabs/valhalla | d2914a4527f2aeb7495dfdbacea60fdc0b92c6a0 | [
"MIT"
] | null | null | null | test/gurka/test_oneways.cc | sidilabs/valhalla | d2914a4527f2aeb7495dfdbacea60fdc0b92c6a0 | [
"MIT"
] | null | null | null | #include "gurka.h"
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/register/point.hpp>
#include <boost/geometry/multi/geometries/register/multi_polygon.hpp>
#include <gtest/gtest.h>
#include <valhalla/proto/options.pb.h>
#include "baldr/graphconstants.h"
#include "baldr/graphreader.h"
#include "loki/... | 43.731214 | 102 | 0.526667 | sidilabs |
9cd45c257fc7f0a43fee25df1556895064fd3ae0 | 12,141 | cpp | C++ | Foobar2000_SDK/foobar2000/SDK/metadb_handle_list.cpp | pfqwsqqq/lyrics-extend-source-for-lyrics3 | 0337bae961952cfbedeac377d60743c5c6ec16b8 | [
"Zlib"
] | null | null | null | Foobar2000_SDK/foobar2000/SDK/metadb_handle_list.cpp | pfqwsqqq/lyrics-extend-source-for-lyrics3 | 0337bae961952cfbedeac377d60743c5c6ec16b8 | [
"Zlib"
] | null | null | null | Foobar2000_SDK/foobar2000/SDK/metadb_handle_list.cpp | pfqwsqqq/lyrics-extend-source-for-lyrics3 | 0337bae961952cfbedeac377d60743c5c6ec16b8 | [
"Zlib"
] | 1 | 2019-04-20T06:32:58.000Z | 2019-04-20T06:32:58.000Z | #include "foobar2000.h"
#include <shlwapi.h>
namespace {
wchar_t * makeSortString(const char * in) {
wchar_t * out = new wchar_t[pfc::stringcvt::estimate_utf8_to_wide(in) + 1];
out[0] = ' ';//StrCmpLogicalW bug workaround.
pfc::stringcvt::convert_utf8_to_wide_unchecked(out + 1, in);
return out;
}
struct c... | 30.581864 | 219 | 0.715015 | pfqwsqqq |
9cd4f3567a2cc532621cbd8705f5c3a2c431f72e | 36,981 | cpp | C++ | Cpp-C/Ema/Examples/Test/UnitTest/StatusMsgTests.cpp | mattpeacock/Elektron-SDK | 5b2134f219cecbb8b796a7e6d629b2463bc52b84 | [
"Apache-2.0"
] | null | null | null | Cpp-C/Ema/Examples/Test/UnitTest/StatusMsgTests.cpp | mattpeacock/Elektron-SDK | 5b2134f219cecbb8b796a7e6d629b2463bc52b84 | [
"Apache-2.0"
] | null | null | null | Cpp-C/Ema/Examples/Test/UnitTest/StatusMsgTests.cpp | mattpeacock/Elektron-SDK | 5b2134f219cecbb8b796a7e6d629b2463bc52b84 | [
"Apache-2.0"
] | 1 | 2020-09-05T13:32:19.000Z | 2020-09-05T13:32:19.000Z | /*|-----------------------------------------------------------------------------
*| This source code is provided under the Apache 2.0 license --
*| and is provided AS IS with no warranty or guarantee of fit for purpose. --
*| See the project's LICENSE.md for details. ... | 30.412007 | 214 | 0.71004 | mattpeacock |
9cd5c295a186f4adcb9673c14b04f254932cf16e | 7,843 | cc | C++ | runtime/common/command_line.cc | fuerve/parasol | 4e44bc771f9837e32f67d21f88f2a809a590bf64 | [
"Apache-2.0"
] | null | null | null | runtime/common/command_line.cc | fuerve/parasol | 4e44bc771f9837e32f67d21f88f2a809a590bf64 | [
"Apache-2.0"
] | null | null | null | runtime/common/command_line.cc | fuerve/parasol | 4e44bc771f9837e32f67d21f88f2a809a590bf64 | [
"Apache-2.0"
] | 1 | 2021-01-16T11:34:18.000Z | 2021-01-16T11:34:18.000Z | /*
Copyright 2015 Rovert Jervis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | 26.767918 | 122 | 0.618768 | fuerve |
9cd61f58caa24edcb8678bff341358c68ac21e58 | 717 | cpp | C++ | encrypt.cpp | DanielSchuette/misc_cpp | 33c66b5b8776d5343a87efb042882ddcd64ce7d0 | [
"MIT"
] | null | null | null | encrypt.cpp | DanielSchuette/misc_cpp | 33c66b5b8776d5343a87efb042882ddcd64ce7d0 | [
"MIT"
] | null | null | null | encrypt.cpp | DanielSchuette/misc_cpp | 33c66b5b8776d5343a87efb042882ddcd64ce7d0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
string encrypt(string input, char key) {
for(int i = 0; i < input.length(); i++) {
input[i] ^= key;
}
return(input);
}
int main() {
char key = 'k';
string encrypt_this = "this string is legable and should not be used to store any ... | 23.129032 | 153 | 0.631799 | DanielSchuette |
9cd8938c8065167f77db2eb36fd60e0a0f78de12 | 483 | cpp | C++ | Borland/CBuilder5/Source/RTL/source/memory/delarray.cpp | TrevorDArcyEvans/DivingMagpieSoftware | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | 1 | 2021-05-27T10:27:25.000Z | 2021-05-27T10:27:25.000Z | Borland/CBuilder5/Source/RTL/source/memory/delarray.cpp | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | Borland/CBuilder5/Source/RTL/source/memory/delarray.cpp | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | /*-----------------------------------------------------------------------*
* filename - delarray.cpp
* C++ delete[]
*-----------------------------------------------------------------------*/
/*
* C/C++ Run Time Library - Version 10.0
*
* Copyright (c) 1990, 2000 by Inprise Corporation
* All Right... | 21 | 75 | 0.393375 | TrevorDArcyEvans |
9cdc5c5b544728099df2e40b8708c036d8aa379a | 19,122 | cpp | C++ | iree/compiler/Conversion/LinalgToLLVM/ConvertToLLVM.cpp | freedomtan/iree | 4ca12072652be6785075e8e6e48052347f9de784 | [
"Apache-2.0"
] | null | null | null | iree/compiler/Conversion/LinalgToLLVM/ConvertToLLVM.cpp | freedomtan/iree | 4ca12072652be6785075e8e6e48052347f9de784 | [
"Apache-2.0"
] | null | null | null | iree/compiler/Conversion/LinalgToLLVM/ConvertToLLVM.cpp | freedomtan/iree | 4ca12072652be6785075e8e6e48052347f9de784 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 42.874439 | 153 | 0.688369 | freedomtan |
9cdcc8e07960367e92fd1c34e08a28bec9c9f444 | 760 | cpp | C++ | calibration_tool/GL/VertexBufferLayout.cpp | michalpelka/catoptric_livox | fde4db428840509b6102ac0d2aacee6d4d973ca8 | [
"MIT"
] | 7 | 2021-08-18T02:42:04.000Z | 2022-03-23T12:02:22.000Z | calibration_tool/GL/VertexBufferLayout.cpp | michalpelka/catoptric_livox | fde4db428840509b6102ac0d2aacee6d4d973ca8 | [
"MIT"
] | null | null | null | calibration_tool/GL/VertexBufferLayout.cpp | michalpelka/catoptric_livox | fde4db428840509b6102ac0d2aacee6d4d973ca8 | [
"MIT"
] | null | null | null | #include "VertexBufferLayout.h"
template<> void VertexBufferLayout::Push<float>(unsigned int count)
{
ASSERT(sizeof(float) == sizeof(GL_FLOAT));
m_Elements.push_back({ GL_FLOAT, count, GL_FALSE });
m_Stride += count * sizeof(GL_FLOAT);
}
template<> void VertexBufferLayout::Push<unsigned int>(unsigned int c... | 38 | 75 | 0.730263 | michalpelka |
9cde04d1464313946847fffe47b366d4e9465aeb | 1,352 | cpp | C++ | Challenges/codcad_contagem_de_algarismos.cpp | oJordany/CodCad | d3c76d8631583428f5e32caf79a421f2487dbd4c | [
"MIT"
] | null | null | null | Challenges/codcad_contagem_de_algarismos.cpp | oJordany/CodCad | d3c76d8631583428f5e32caf79a421f2487dbd4c | [
"MIT"
] | 8 | 2021-12-23T13:55:40.000Z | 2022-01-03T18:55:52.000Z | Challenges/codcad_contagem_de_algarismos.cpp | oJordany/CodCad | d3c76d8631583428f5e32caf79a421f2487dbd4c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int n, a0 = 0, a1 = 0, a2 = 0, a3 = 0, a4 = 0, a5 = 0, a6 = 0, a7 = 0, a8 = 0, a9 = 0;
string nums;
cin >> n;
for (int c = 0; c < n; c++){
cin >> nums;
for (int i = 0; i < nums.size(); i++){
if (nums[i] == '0'){
... | 22.915254 | 90 | 0.251479 | oJordany |
9cde293b704ed533bf9f41bab1adcafdddfa153e | 10,050 | cpp | C++ | be/src/exec/vectorized/schema_scan_node.cpp | stephen-shelby/starrocks | 67932670efddbc8c56e2aaf5d3758724dcb44b0a | [
"Zlib",
"PSF-2.0",
"BSD-2-Clause",
"Apache-2.0",
"ECL-2.0",
"BSD-3-Clause-Clear"
] | 1 | 2022-03-08T09:13:32.000Z | 2022-03-08T09:13:32.000Z | be/src/exec/vectorized/schema_scan_node.cpp | stephen-shelby/starrocks | 67932670efddbc8c56e2aaf5d3758724dcb44b0a | [
"Zlib",
"PSF-2.0",
"BSD-2-Clause",
"Apache-2.0",
"ECL-2.0",
"BSD-3-Clause-Clear"
] | null | null | null | be/src/exec/vectorized/schema_scan_node.cpp | stephen-shelby/starrocks | 67932670efddbc8c56e2aaf5d3758724dcb44b0a | [
"Zlib",
"PSF-2.0",
"BSD-2-Clause",
"Apache-2.0",
"ECL-2.0",
"BSD-3-Clause-Clear"
] | null | null | null | // This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#include "exec/vectorized/schema_scan_node.h"
#include <boost/algorithm/string.hpp>
#include "column/column_helper.h"
#include "exec/vectorized/schema_scanner/schema_helper.h"
#include "gen_cpp/PlanNodes_types.h"
#incl... | 34.775087 | 119 | 0.647363 | stephen-shelby |
9cdf13bdac9c6b7616c7b3b381e2388e5d490eeb | 557 | cpp | C++ | answers/leetcode/Patching Array/Patching Array.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | 3 | 2015-09-04T21:32:31.000Z | 2020-12-06T00:37:32.000Z | answers/leetcode/Patching Array/Patching Array.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | answers/leetcode/Patching Array/Patching Array.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | //@result 149 / 149 test cases passed. Status: Accepted Runtime: 8 ms Submitted: 0 minutes ago You are here! Your runtime beats 39.94% of cppsubmissions.
class Solution {
public:
int minPatches(vector<int>& nums, int n) {
long long sum = 1;
int count = 0;
size_t i = 0;
while (sum <=... | 29.315789 | 153 | 0.486535 | FeiZhan |
9cdfd20badc4a73b12bd1b5a32cc985e3b01e10b | 2,470 | cpp | C++ | devidhw/UntIdhwBss3/CtrIdhwBss3Lwiremu.cpp | mpsitech/idhw_public | 6779d0b16ebd63808e17733f6d4f8ef61693f458 | [
"BSD-2-Clause"
] | null | null | null | devidhw/UntIdhwBss3/CtrIdhwBss3Lwiremu.cpp | mpsitech/idhw_public | 6779d0b16ebd63808e17733f6d4f8ef61693f458 | [
"BSD-2-Clause"
] | null | null | null | devidhw/UntIdhwBss3/CtrIdhwBss3Lwiremu.cpp | mpsitech/idhw_public | 6779d0b16ebd63808e17733f6d4f8ef61693f458 | [
"BSD-2-Clause"
] | null | null | null | /**
* \file CtrIdhwBss3Lwiremu.cpp
* lwiremu controller (implementation)
* \author Alexander Wirthmueller
* \date created: 22 Sep 2017
* \date modified: 22 Sep 2017
*/
#include "CtrIdhwBss3Lwiremu.h"
/******************************************************************************
class CtrIdhwBss3Lwiremu:... | 21.858407 | 116 | 0.604453 | mpsitech |
9ce1ff6f121884d2dc02f25ad5affe9052927aca | 4,892 | cpp | C++ | collection/cp/ACM_Notebook_new-master/DataStructure/BST/SGU_187.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/ACM_Notebook_new-master/DataStructure/BST/SGU_187.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/ACM_Notebook_new-master/DataStructure/BST/SGU_187.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | // MLE --> how to fix???
// Another solution is to use block split ~~
#include <set>
#include <map>
#include <list>
#include <cmath>
#include <queue>
#include <stack>
#include <cstdio>
#include <string>
#include <vector>
#include <cstdlib>
#include <cstring>
#include <sstream>
#include <iomanip>
#include <complex>
#inc... | 22.753488 | 86 | 0.488962 | daemonslayer |
9ce4490f66e6ada7c6f8ad1deb5478e3f9bcae9a | 292,272 | cpp | C++ | GCG_Source.build/module.pyperclip.clipboards.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | GCG_Source.build/module.pyperclip.clipboards.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | GCG_Source.build/module.pyperclip.clipboards.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | /* Generated code for Python source for module 'pyperclip.clipboards'
* created by Nuitka version 0.5.28.2
*
* This code is in part copyright 2017 Kay Hayen.
*
* 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 c... | 34.682805 | 257 | 0.733077 | Pckool |
9ce4cb66a4f2d3810b24d185c049382e54a2940d | 13,024 | cpp | C++ | third_party/skia_m76/third_party/externals/angle2/src/libANGLE/renderer/d3d/IndexDataManager.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 6 | 2018-10-20T10:53:55.000Z | 2021-12-25T07:58:57.000Z | third_party/skia_m76/third_party/externals/angle2/src/libANGLE/renderer/d3d/IndexDataManager.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | null | null | null | third_party/skia_m76/third_party/externals/angle2/src/libANGLE/renderer/d3d/IndexDataManager.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 9 | 2018-10-31T03:07:11.000Z | 2021-08-06T08:53:21.000Z | //
// Copyright (c) 2002-2014 The ANGLE 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.
//
// IndexDataManager.cpp: Defines the IndexDataManager, a class that
// runs the Buffer translation process for index buffers.
#includ... | 40.827586 | 100 | 0.617245 | kniefliu |
9ce5de86e6ac6e095f4687d82f7786086937ebbf | 458 | cpp | C++ | RecursiveFibonacciSeries/main.cpp | ATomar2150/DataStructuresAndAlgorithm | b1cbea4ea4b27e396ebbada464417818d2862283 | [
"Apache-2.0"
] | null | null | null | RecursiveFibonacciSeries/main.cpp | ATomar2150/DataStructuresAndAlgorithm | b1cbea4ea4b27e396ebbada464417818d2862283 | [
"Apache-2.0"
] | null | null | null | RecursiveFibonacciSeries/main.cpp | ATomar2150/DataStructuresAndAlgorithm | b1cbea4ea4b27e396ebbada464417818d2862283 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
//prototype
int fib(int);
int main()
{
cout<<"The first 10 Fibonaci numbers are: \n";
for(int i = 0; i < 10 ; i++)
{
cout<<fib(i)<<" ";
cout<<endl;
}
return 0;
}
int fib(int n)
{
if(n <= 0)
{
return 0; //Base case
}
... | 13.470588 | 52 | 0.458515 | ATomar2150 |
9ce7d3251a089d238a5ce9d56f1194e273d6b2c2 | 10,907 | cpp | C++ | src/xml/SkDOM.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | src/xml/SkDOM.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | src/xml/SkDOM.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/xml/SkDOM.h"
#include <memory>
#include "include/core/SkStream.h"
#include "include/private/SkTo.h"
#include "src/xml/SkXMLParser.h"
#inclu... | 25.969048 | 97 | 0.620886 | NearTox |
9ce9e11858d8d2affa3bede68e5b388cf8267479 | 11,405 | cpp | C++ | src/AirManager.cpp | KCNyu/SimpleDataBase | 358b078cc271b041d25d9df280b539b97c763139 | [
"MIT"
] | 1 | 2021-01-06T09:23:03.000Z | 2021-01-06T09:23:03.000Z | src/AirManager.cpp | KCNyu/SimpleDataBase | 358b078cc271b041d25d9df280b539b97c763139 | [
"MIT"
] | null | null | null | src/AirManager.cpp | KCNyu/SimpleDataBase | 358b078cc271b041d25d9df280b539b97c763139 | [
"MIT"
] | 1 | 2021-01-17T17:55:51.000Z | 2021-01-17T17:55:51.000Z | /*================================================================
* Filename:AirManager.cpp
* Author: KCN_yu
* Createtime:Wed 06 Jan 2021 02:39:00 PM CST
================================================================*/
#include "AirManager.h"
using namespace std;
string Country_to_string(Country c) {
stri... | 30.013158 | 79 | 0.520649 | KCNyu |
9cea0b11c1367fa698aedbdf3afc9c9efa138669 | 10,714 | cpp | C++ | Source/General/Misc/DynamicObject.cpp | paintdream/paintsnow | 3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781 | [
"MIT"
] | null | null | null | Source/General/Misc/DynamicObject.cpp | paintdream/paintsnow | 3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781 | [
"MIT"
] | null | null | null | Source/General/Misc/DynamicObject.cpp | paintdream/paintsnow | 3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781 | [
"MIT"
] | null | null | null | #include "DynamicObject.h"
#include <sstream>
using namespace PaintsNow;
DynamicUniqueAllocator::DynamicUniqueAllocator() {}
DynamicInfo::Field::Field() : controller(nullptr) {
reflectable = 0;
offset = 0;
}
IReflectObject* DynamicInfo::Create() const {
assert(Math::Alignment(sizeof(DynamicObject)) >= sizeof(size... | 28.801075 | 193 | 0.688445 | paintdream |
9ceb662e99ac75757164261fd45ad9a95c30f435 | 10,930 | cpp | C++ | src/python/gameboycore_module.cpp | nnarain/gameboycore-python | f6dde95a5e51f38bd1037abcc2f569cf254bf9de | [
"MIT"
] | 5 | 2016-12-29T01:48:05.000Z | 2020-04-06T18:19:39.000Z | src/python/gameboycore_module.cpp | nnarain/gameboycore-python | f6dde95a5e51f38bd1037abcc2f569cf254bf9de | [
"MIT"
] | 48 | 2016-12-02T03:49:56.000Z | 2019-08-23T04:30:55.000Z | src/python/gameboycore_module.cpp | nnarain/gameboycore-python | f6dde95a5e51f38bd1037abcc2f569cf254bf9de | [
"MIT"
] | 2 | 2017-01-03T22:25:43.000Z | 2021-02-05T08:30:45.000Z |
/**
\file gameboycore_python.cpp
\brief Gameboy Core Python Wrapper
\author Natesh Narain <nnaraindev@gmail.com>
\date Dec 1 2016
*/
#include "gameboycore_python.h"
#include <gameboycore/memorymap.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl_bind.h>
PYBIND11_MAKE_OPAQUE(GameboyCorePython... | 60.054945 | 143 | 0.551235 | nnarain |
9cebea0dee0885f116a248e3e323c7bd873cd6ee | 2,476 | hh | C++ | dune/gdt/local/functionals/interfaces.hh | TiKeil/dune-gdt | 25c8b987cc07a4b8b966c1a07ea21b78dba7852f | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/local/functionals/interfaces.hh | TiKeil/dune-gdt | 25c8b987cc07a4b8b966c1a07ea21b78dba7852f | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/local/functionals/interfaces.hh | TiKeil/dune-gdt | 25c8b987cc07a4b8b966c1a07ea21b78dba7852f | [
"BSD-2-Clause"
] | null | null | null | // This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.org/lice... | 30.195122 | 119 | 0.755654 | TiKeil |
9cec9109f1e74ce7b2d73e71c3add70660d37451 | 4,015 | cc | C++ | src/graphics/drivers/msd-img-rgx/tests/unit_tests/mt8167-test.cc | liexusong/fuchsia | 81897680af92a1848a063e3c20ff3a4892ccff07 | [
"BSD-2-Clause"
] | 3 | 2021-09-02T07:21:06.000Z | 2022-03-12T03:20:10.000Z | src/graphics/drivers/msd-img-rgx/tests/unit_tests/mt8167-test.cc | liexusong/fuchsia | 81897680af92a1848a063e3c20ff3a4892ccff07 | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | src/graphics/drivers/msd-img-rgx/tests/unit_tests/mt8167-test.cc | liexusong/fuchsia | 81897680af92a1848a063e3c20ff3a4892ccff07 | [
"BSD-2-Clause"
] | 2 | 2022-02-25T12:22:49.000Z | 2022-03-12T03:20:10.000Z | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/mmio-ptr/fake.h>
#include <array>
#include <gtest/gtest.h>
#include "src/graphics/drivers/msd-img-rgx/mtk/mt8167s-gpu.h"
namespace {
stru... | 35.219298 | 83 | 0.677958 | liexusong |
9cecbd1ebf8f5f2915b89777730257c9115ae5cb | 96,521 | hpp | C++ | tests/zcc/decl.C99/Pass_enum_def2.hpp | zaimoni/Z.C- | 7ca97ec0af14d092c87a25e07d7ed486c7912266 | [
"BSL-1.0"
] | null | null | null | tests/zcc/decl.C99/Pass_enum_def2.hpp | zaimoni/Z.C- | 7ca97ec0af14d092c87a25e07d7ed486c7912266 | [
"BSL-1.0"
] | 4 | 2019-12-07T08:08:29.000Z | 2021-01-22T00:19:10.000Z | tests/zcc/decl.C99/Pass_enum_def2.hpp | zaimoni/Z.C- | 7ca97ec0af14d092c87a25e07d7ed486c7912266 | [
"BSL-1.0"
] | null | null | null | // decl.C99/Pass_enum_def2.hpp
// (C)2009,2011 Kenneth Boyd, license: MIT.txt
// using singly defined enum
enum good_test {
x_factor = 1
};
// this section checks that suppressing keyword works
// ringing the changes on extern
extern good_test x1;
extern const good_test x2;
extern volatile good_test x3;
... | 66.520331 | 90 | 0.777696 | zaimoni |
9cee2d465a71ce5ac04a0361fddf5c12d4592b0c | 5,053 | cc | C++ | wrspice/src/analysis/dctsetp.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | wrspice/src/analysis/dctsetp.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | wrspice/src/analysis/dctsetp.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 41.418033 | 77 | 0.476746 | wrcad |
9cefc0dd45daa44fb70ed925b351c4301cc358c0 | 2,193 | cpp | C++ | runtime/src/cloe/utility/evaluate.cpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 20 | 2020-07-07T18:28:35.000Z | 2022-03-21T04:35:28.000Z | runtime/src/cloe/utility/evaluate.cpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 46 | 2021-01-20T10:13:09.000Z | 2022-03-29T12:27:19.000Z | runtime/src/cloe/utility/evaluate.cpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 12 | 2021-01-25T08:01:24.000Z | 2021-07-27T10:09:53.000Z | /*
* Copyright 2020 Robert Bosch GmbH
*
* 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 agre... | 30.887324 | 83 | 0.636571 | Sidharth-S-S |
9cf3c12c70245d145de40d2dd1ce0c5396b9f060 | 18,994 | cc | C++ | src/geometry/strings/split.cc | odvratnozgodan/s2 | e5293d0944e5053e0300d61823914728032c16c9 | [
"Apache-2.0"
] | 33 | 2016-08-10T09:13:43.000Z | 2021-06-22T22:52:04.000Z | src/geometry/strings/split.cc | odvratnozgodan/s2 | e5293d0944e5053e0300d61823914728032c16c9 | [
"Apache-2.0"
] | 9 | 2016-12-12T17:28:20.000Z | 2020-08-11T14:41:19.000Z | src/geometry/strings/split.cc | odvratnozgodan/s2 | e5293d0944e5053e0300d61823914728032c16c9 | [
"Apache-2.0"
] | 10 | 2016-12-12T17:19:40.000Z | 2021-12-03T17:44:29.000Z | // Copyright 2008 and onwards Google Inc. All rights reserved.
#include <limits>
using std::numeric_limits;
#include <stdint.h>
#include "base/commandlineflags.h"
#include "base/integral_types.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/strtoint.h"
#include "split.h"
#include "strutil.h"
#i... | 39.736402 | 80 | 0.612772 | odvratnozgodan |
9cf40aa3da594bbbf10a9d4fc2496134b8898bcf | 19,290 | cc | C++ | third_party/blink/renderer/core/css/rule_set_test.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/renderer/core/css/rule_set_test.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | third_party/blink/renderer/core/css/rule_set_test.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | /*
* Copyright (c) 2014, Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions... | 34.819495 | 94 | 0.689373 | zealoussnow |
9cf52ab51591e5b0adedc72174b95f88c127dc07 | 2,920 | cpp | C++ | tests/test_matrix_exp.cpp | cyang019/matrix | aa303e870e7a0ba0048839589e1676861c78bcc0 | [
"BSD-3-Clause"
] | 1 | 2021-05-13T03:38:04.000Z | 2021-05-13T03:38:04.000Z | tests/test_matrix_exp.cpp | cyang019/matrix | aa303e870e7a0ba0048839589e1676861c78bcc0 | [
"BSD-3-Clause"
] | null | null | null | tests/test_matrix_exp.cpp | cyang019/matrix | aa303e870e7a0ba0048839589e1676861c78bcc0 | [
"BSD-3-Clause"
] | null | null | null | #include "matrix.h"
#include "gtest/gtest.h"
#include <limits>
#include <iostream>
#include <cmath> // exp
namespace {
using MatrixD = matrix::Matrix<double>;
using MatrixCD = matrix::Matrix<std::complex<double>>;
using MatrixI = matrix::Matrix<int>;
TEST(TestMatrix, areParallel){
MatrixD... | 38.421053 | 88 | 0.553767 | cyang019 |
9cf5cba739c26a8845eaa9d2e0e252ab77f7eea2 | 422 | cpp | C++ | LibFoundation/Wm4FoundationPCH.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | LibFoundation/Wm4FoundationPCH.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | LibFoundation/Wm4FoundationPCH.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Foundation Library source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4FoundationLicense.pdf
// and may not be copied ... | 35.166667 | 73 | 0.753555 | wjezxujian |
9cf5df19961aae1f892953dc1c75cb0f01a67e4b | 4,514 | cpp | C++ | Development/Plugin/Warcraft3/yd_jass_api/ItemState.cpp | alanoooaao/YDWE | fa9c6dc24d01f78919b5c8b2c69252291536424a | [
"Apache-2.0"
] | 2 | 2021-05-21T11:18:30.000Z | 2021-05-24T14:44:34.000Z | Development/Plugin/Warcraft3/yd_jass_api/ItemState.cpp | alanoooaao/YDWE | fa9c6dc24d01f78919b5c8b2c69252291536424a | [
"Apache-2.0"
] | null | null | null | Development/Plugin/Warcraft3/yd_jass_api/ItemState.cpp | alanoooaao/YDWE | fa9c6dc24d01f78919b5c8b2c69252291536424a | [
"Apache-2.0"
] | null | null | null | #include <base/hook/fp_call.h>
#include <base/hook/iat.h>
#include <base/warcraft3/jass/hook.h>
#include <base/warcraft3/jass.h>
#include <base/warcraft3/version.h>
#include <base/warcraft3/war3_searcher.h>
#include <base/warcraft3/hashtable.h>
#include <base/hook/inline.h>
#include <array>
#include <string>
... | 23.757895 | 84 | 0.629154 | alanoooaao |
9cf6c8af6c5ed7308d5da5fdeada515d983a677e | 1,168 | cc | C++ | azplugins/ImplicitEvaporatorGPU.cc | XT-Lee/azplugin_r_cut | 01e45ee327e08960dd6413f04da0b8da99e810e5 | [
"BSD-3-Clause"
] | 7 | 2020-06-02T01:51:16.000Z | 2022-01-21T11:42:48.000Z | azplugins/ImplicitEvaporatorGPU.cc | XT-Lee/azplugin_r_cut | 01e45ee327e08960dd6413f04da0b8da99e810e5 | [
"BSD-3-Clause"
] | 35 | 2020-06-11T15:57:49.000Z | 2022-03-31T21:29:40.000Z | azplugins/ImplicitEvaporatorGPU.cc | XT-Lee/azplugin_r_cut | 01e45ee327e08960dd6413f04da0b8da99e810e5 | [
"BSD-3-Clause"
] | 3 | 2020-07-18T15:38:08.000Z | 2022-02-24T14:22:19.000Z | // Copyright (c) 2018-2020, Michael P. Howard
// Copyright (c) 2021, Auburn University
// This file is part of the azplugins project, released under the Modified BSD License.
/*!
* \file ImplicitEvaporatorGPU.cc
* \brief Definition of ImplicitEvaporatorGPU
*/
#include "ImplicitEvaporatorGPU.h"
namespace azplugins... | 28.487805 | 136 | 0.696918 | XT-Lee |
9cf709fb2fdb8038b98aefdfa1b703425b6f4e79 | 1,425 | cpp | C++ | src/ButtonManager.cpp | klaus-liebler/smopla-dps | ab92c73d16769a09d70b5519792c29a4276543c5 | [
"MIT"
] | null | null | null | src/ButtonManager.cpp | klaus-liebler/smopla-dps | ab92c73d16769a09d70b5519792c29a4276543c5 | [
"MIT"
] | null | null | null | src/ButtonManager.cpp | klaus-liebler/smopla-dps | ab92c73d16769a09d70b5519792c29a4276543c5 | [
"MIT"
] | null | null | null | #include "ButtonManager.hh"
#include "pindefs.hh"
constexpr uint32_t LONG_PRESS_LIMIT=600;
ButtonManager::ButtonManager() {
// TODO Auto-generated constructor stub
}
ButtonManager::~ButtonManager() {
// TODO Auto-generated destructor stub
}
void ButtonManager::Update()
{
bool v=Gpio::Get(SW_ONOFF);
if(prevSW_O... | 15.833333 | 48 | 0.677895 | klaus-liebler |
9cf7da1a1aa3cffaac16d992c0ca1b6db9eb71fd | 7,684 | cc | C++ | BEAST/beast/projects/Apps/KLSGraphPart.cc | HurleyWong/BioGA | 4369e6e85793c609d8b20be9d45a82d17db53235 | [
"CC-BY-4.0"
] | null | null | null | BEAST/beast/projects/Apps/KLSGraphPart.cc | HurleyWong/BioGA | 4369e6e85793c609d8b20be9d45a82d17db53235 | [
"CC-BY-4.0"
] | null | null | null | BEAST/beast/projects/Apps/KLSGraphPart.cc | HurleyWong/BioGA | 4369e6e85793c609d8b20be9d45a82d17db53235 | [
"CC-BY-4.0"
] | null | null | null |
#include <cstdlib>
#include <vector>
#include <exception>
#include <stdexcept> // out_of_range exception
using namespace std;
using namespace BEAST;
// Graph node
class Node : public Item
{
private:
vector<Node*> edges; //edges that point to other nodes
//int numEdges; //number of edges
pu... | 18.165485 | 102 | 0.482561 | HurleyWong |
9cf813538ac66252768dbc597c08112105b2f578 | 1,441 | cpp | C++ | src/usb/usb_bsp.cpp | uwmisl/purpledrop-stm32 | 7e40314f244e27fed04379774f00b4659ece3381 | [
"MIT"
] | 1 | 2022-03-27T02:32:01.000Z | 2022-03-27T02:32:01.000Z | src/usb/usb_bsp.cpp | uwmisl/purpledrop-stm32 | 7e40314f244e27fed04379774f00b4659ece3381 | [
"MIT"
] | null | null | null | src/usb/usb_bsp.cpp | uwmisl/purpledrop-stm32 | 7e40314f244e27fed04379774f00b4659ece3381 | [
"MIT"
] | null | null | null | // Defines global functions used by USB_OTG driver to setup hardware
extern "C" {
#include "usb_bsp.h"
}
#include <modm/platform.hpp>
using namespace modm::platform;
using namespace std::chrono_literals;
#define GPIO_AF_OTG1_FS 10
extern "C" void USB_OTG_BSP_Init(USB_OTG_CORE_HANDLE * pdev)
{
(void)... | 24.423729 | 76 | 0.693963 | uwmisl |
9cf85d58477c1e121667fbd8e426230ef941b59d | 5,196 | cpp | C++ | src/ToolTip/RDesktopTip2.cpp | gongjianbo/RectangleComponent | 2b4b0f4d3c8ac6949d70934b52b390e6c3a05881 | [
"MIT"
] | 4 | 2020-06-17T14:28:53.000Z | 2021-08-19T01:04:58.000Z | src/ToolTip/RDesktopTip2.cpp | gongjianbo/RectangleComponent | 2b4b0f4d3c8ac6949d70934b52b390e6c3a05881 | [
"MIT"
] | null | null | null | src/ToolTip/RDesktopTip2.cpp | gongjianbo/RectangleComponent | 2b4b0f4d3c8ac6949d70934b52b390e6c3a05881 | [
"MIT"
] | 10 | 2020-06-07T13:25:19.000Z | 2022-03-03T05:15:12.000Z | #include "RDesktopTip2.h"
#include "ui_RDesktopTip2.h"
#include <QApplication>
#include <QScreen>
#include <QDebug>
RDesktopTip2* RDesktopTip2::instance=nullptr;
RDesktopTip2::AnimationMode RDesktopTip2::mode=RDesktopTip2::AllAnimation;
RDesktopTip2::RDesktopTip2()
: QWidget(nullptr),
ui(new Ui::RDesktopTi... | 24.280374 | 76 | 0.635681 | gongjianbo |
9cf8dad819d35bb592ea05ed2295b8edbd1ca09f | 4,423 | cpp | C++ | wifi.cpp | deets/esp32deets | f157e1908b6450008e9193033b4f9cb2243fa5ec | [
"MIT"
] | 1 | 2020-07-11T08:59:02.000Z | 2020-07-11T08:59:02.000Z | wifi.cpp | deets/esp32deets | f157e1908b6450008e9193033b4f9cb2243fa5ec | [
"MIT"
] | null | null | null | wifi.cpp | deets/esp32deets | f157e1908b6450008e9193033b4f9cb2243fa5ec | [
"MIT"
] | null | null | null | #include "wifi.hh"
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_system.h"
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_log.h"
#include "lwip/err.h"
#include "lwip/sys.h"
#include <string>
#include <vector>
#include <sstre... | 31.820144 | 121 | 0.655664 | deets |
9cf92e3031a285d19d3b35fa2d254518989fd211 | 1,664 | hpp | C++ | Libraries/Sound/SoundStandard.hpp | DaveTheGameDev/PlasmaEngine | bb5013e7ba1731b2269f4e4aea1109870ab82092 | [
"MIT"
] | null | null | null | Libraries/Sound/SoundStandard.hpp | DaveTheGameDev/PlasmaEngine | bb5013e7ba1731b2269f4e4aea1109870ab82092 | [
"MIT"
] | null | null | null | Libraries/Sound/SoundStandard.hpp | DaveTheGameDev/PlasmaEngine | bb5013e7ba1731b2269f4e4aea1109870ab82092 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
#include "Common/CommonStandard.hpp"
#include "PlatformStandard.hpp"
#include "Serialization/SerializationStandard.hpp"
#include "Meta/MetaStandard.hpp"
#include "Support/SupportStandard.hpp"
#include "Engine/EngineStandard.hpp"
#include "Geometry/DebugDraw.hpp"
namespace... | 24.115942 | 73 | 0.786659 | DaveTheGameDev |
9cf964676049f526422a17056c3df5f672410a1b | 994 | cc | C++ | test/main.cc | pvhoffman/heapsort | b5a44b3207060a997937c5e4bd7af06427b7cb48 | [
"MIT"
] | null | null | null | test/main.cc | pvhoffman/heapsort | b5a44b3207060a997937c5e4bd7af06427b7cb48 | [
"MIT"
] | null | null | null | test/main.cc | pvhoffman/heapsort | b5a44b3207060a997937c5e4bd7af06427b7cb48 | [
"MIT"
] | null | null | null | #include <config.h>
#include <iostream>
#include <random>
#include <algorithm>
#include <iterator>
#include <functional>
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "../src/heapsort.h"
SCENARIO( "vectors can be sorted", "[vector]" )
{
GIVEN( "A vector of 10000000 random integers" )
{
us... | 23.116279 | 77 | 0.594567 | pvhoffman |
9cfbb8f5edcf3e0c2ce5914d381df3e047ce4837 | 9,531 | cpp | C++ | src/mapnik_color.cpp | naturalatlas/node-mapnik | 02e5d8eb0488128e1c51ad7d9ea9e5becb57dbb9 | [
"BSD-3-Clause"
] | null | null | null | src/mapnik_color.cpp | naturalatlas/node-mapnik | 02e5d8eb0488128e1c51ad7d9ea9e5becb57dbb9 | [
"BSD-3-Clause"
] | null | null | null | src/mapnik_color.cpp | naturalatlas/node-mapnik | 02e5d8eb0488128e1c51ad7d9ea9e5becb57dbb9 | [
"BSD-3-Clause"
] | null | null | null | #include "mapnik_color.hpp"
Napi::FunctionReference Color::constructor;
Napi::Object Color::Initialize(Napi::Env env, Napi::Object exports, napi_property_attributes prop_attr)
{
Napi::Function func = DefineClass(env, "Color", {
InstanceMethod<&Color::hex>("hex", prop_attr),
InstanceMethod<... | 31.876254 | 140 | 0.585878 | naturalatlas |
9cfbdefa34e70c0dc6ca336c17a8205126744bcb | 382 | cpp | C++ | recipes/hana/all/test_package/test_package.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 562 | 2019-09-04T12:23:43.000Z | 2022-03-29T16:41:43.000Z | recipes/hana/all/test_package/test_package.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 9,799 | 2019-09-04T12:02:11.000Z | 2022-03-31T23:55:45.000Z | recipes/hana/all/test_package/test_package.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 1,126 | 2019-09-04T11:57:46.000Z | 2022-03-31T16:43:38.000Z | #include <iostream>
#include <boost/hana.hpp>
int main(void)
{
using namespace boost;
auto map = hana::make_map(
hana::make_pair(hana::type_c<char>, "char"),
hana::make_pair(hana::type_c<int>, "int"),
hana::make_pair(hana::type_c<long>, "long"),
hana::make_pair(hana::type_c<float>, "float"... | 23.875 | 51 | 0.633508 | rockandsalt |
9cfc5284641c9c07d21eef8d6fbf686a756408ec | 2,122 | cpp | C++ | simplefilewatcher/SimpleDemo.cpp | zach2good/opengl-skeleton | cf30c6eb63cd83e8542812a5d414424dc03f684b | [
"MIT"
] | 12 | 2015-09-29T13:17:53.000Z | 2021-02-15T20:08:56.000Z | simplefilewatcher/SimpleDemo.cpp | zach2good/opengl-skeleton | cf30c6eb63cd83e8542812a5d414424dc03f684b | [
"MIT"
] | null | null | null | simplefilewatcher/SimpleDemo.cpp | zach2good/opengl-skeleton | cf30c6eb63cd83e8542812a5d414424dc03f684b | [
"MIT"
] | 5 | 2017-01-02T16:26:40.000Z | 2018-12-12T08:02:58.000Z | /**
Demo app for FileWatcher. FileWatcher is a simple wrapper for the file
modification system in Windows and Linux.
@author James Wynn
@date 2/25/2009
Copyright (c) 2009 James Wynn (james@jameswynn.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associat... | 30.314286 | 94 | 0.727615 | zach2good |
9cfe9641b39b1896bcf6e3e8f9f1db6c838c1aeb | 2,654 | cpp | C++ | local_planner/src/nodes/local_planner_node_main.cpp | jengakim/avoidance | 978bb05f3fd6b060de4c417809e73318a3e121a4 | [
"BSD-3-Clause"
] | null | null | null | local_planner/src/nodes/local_planner_node_main.cpp | jengakim/avoidance | 978bb05f3fd6b060de4c417809e73318a3e121a4 | [
"BSD-3-Clause"
] | null | null | null | local_planner/src/nodes/local_planner_node_main.cpp | jengakim/avoidance | 978bb05f3fd6b060de4c417809e73318a3e121a4 | [
"BSD-3-Clause"
] | null | null | null | #include "local_planner/local_planner.h"
#include "local_planner/common.h"
#include "local_planner/local_planner_node.h"
#include "local_planner/waypoint_generator.h"
#include <boost/algorithm/string.hpp>
int main(int argc, char** argv) {
using namespace avoidance;
ros::init(argc, argv, "local_planner_node");
r... | 29.488889 | 76 | 0.680106 | jengakim |
140088da6d1eec58da5d44239c50c28777e65ed0 | 484 | cpp | C++ | Data Structures/k-d tree.cpp | utkarsh-1997/Code-Repo | 47786ae93a7b8cea100b7b7e6478f10403c33baa | [
"MIT"
] | null | null | null | Data Structures/k-d tree.cpp | utkarsh-1997/Code-Repo | 47786ae93a7b8cea100b7b7e6478f10403c33baa | [
"MIT"
] | null | null | null | Data Structures/k-d tree.cpp | utkarsh-1997/Code-Repo | 47786ae93a7b8cea100b7b7e6478f10403c33baa | [
"MIT"
] | null | null | null | // Refer to:
// https://github.com/utkarsh1097/DBMS-Assignments/blob/master/Assignment%203/bestfirstsearch.cpp
// for the implementation of the k-d tree. Please modify the main() function according to your needs.
// The code is pretty neat and it will not be difficult to understand. Still, will add comments in future i... | 32.266667 | 116 | 0.735537 | utkarsh-1997 |
140140fc93d5f6cbf73ff6b692659eda565627bc | 32,032 | cpp | C++ | libi2pd_client/SAM.cpp | KenanSulayman/i2pd | 50e4fb138a48ce07a89c19d1f5c8888cec3dae78 | [
"BSD-3-Clause"
] | 1 | 2021-09-05T04:25:24.000Z | 2021-09-05T04:25:24.000Z | libi2pd_client/SAM.cpp | KenanSulayman/i2pd | 50e4fb138a48ce07a89c19d1f5c8888cec3dae78 | [
"BSD-3-Clause"
] | null | null | null | libi2pd_client/SAM.cpp | KenanSulayman/i2pd | 50e4fb138a48ce07a89c19d1f5c8888cec3dae78 | [
"BSD-3-Clause"
] | null | null | null | #include <string.h>
#include <stdio.h>
#ifdef _MSC_VER
#include <stdlib.h>
#endif
#include "Base.h"
#include "Identity.h"
#include "Log.h"
#include "Destination.h"
#include "ClientContext.h"
#include "util.h"
#include "SAM.h"
namespace i2p
{
namespace client
{
SAMSocket::SAMSocket (SAMBridge& owner):
m_Owner (owner... | 31.129252 | 146 | 0.676761 | KenanSulayman |
14015331ee63314407f3da4cc1f599ded0369e93 | 2,846 | hpp | C++ | include/pxx/core/iter_range/iter_range.hpp | GarrickLin/pxx11 | f7519b678678c60540a68d26aa04fe95d4c0873f | [
"MIT"
] | 1 | 2019-06-11T08:30:24.000Z | 2019-06-11T08:30:24.000Z | include/pxx/core/iter_range/iter_range.hpp | GarrickLin/pxx11 | f7519b678678c60540a68d26aa04fe95d4c0873f | [
"MIT"
] | null | null | null | include/pxx/core/iter_range/iter_range.hpp | GarrickLin/pxx11 | f7519b678678c60540a68d26aa04fe95d4c0873f | [
"MIT"
] | null | null | null | #pragma once
namespace detail_range {
template <typename T>
class iterator {
public:
using value_type = T;
using size_type = size_t;
private:
size_type cursor_;
const value_type step_;
value_type value_;
public:
iterator(size_type cur_start, value_t... | 27.901961 | 86 | 0.572734 | GarrickLin |
1402922a68d3106dc2384ff06fb9ff40710e1031 | 85 | cpp | C++ | cplusplus/Complex2.cpp | chtld/Programming-and-Algorithm-Course | 669f266fc97db9050013ffbb388517667de33433 | [
"MIT"
] | 2 | 2019-06-10T11:50:06.000Z | 2019-10-14T08:00:41.000Z | cplusplus/Complex2.cpp | chtld/Programming-and-Algorithm-Course | 669f266fc97db9050013ffbb388517667de33433 | [
"MIT"
] | null | null | null | cplusplus/Complex2.cpp | chtld/Programming-and-Algorithm-Course | 669f266fc97db9050013ffbb388517667de33433 | [
"MIT"
] | null | null | null | #include <isotream>
#include <cstring>
using namespace std;
class Complex{
} | 12.142857 | 21 | 0.682353 | chtld |
1403fd7c3e49565760a0788e3a1c44d816f43b5c | 7,257 | cpp | C++ | Desktop/CCore/src/video/lib/Shape.LineEdit.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | 1 | 2016-05-22T07:51:02.000Z | 2016-05-22T07:51:02.000Z | Desktop/CCore/src/video/lib/Shape.LineEdit.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | Desktop/CCore/src/video/lib/Shape.LineEdit.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | /* Shape.LineEdit.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 3.00
//
// Tag: Desktop
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// C... | 19.508065 | 117 | 0.609756 | SergeyStrukov |
1404a2c78c08ac6f458dbff79777041e04d75a56 | 4,170 | cpp | C++ | simple_navigation_goals/src/MoveBaseClientNode.cpp | WHU-Drones/ROS-Package | 2a2d68703754f0e38488a14950590c3a15841d6e | [
"MIT"
] | 2 | 2021-01-03T08:03:09.000Z | 2021-01-05T10:08:41.000Z | simple_navigation_goals/src/MoveBaseClientNode.cpp | WHU-Drones/ROS-Package | 2a2d68703754f0e38488a14950590c3a15841d6e | [
"MIT"
] | 1 | 2021-01-05T09:00:57.000Z | 2021-01-06T02:38:30.000Z | simple_navigation_goals/src/MoveBaseClientNode.cpp | WHU-Drones/ROS-Package | 2a2d68703754f0e38488a14950590c3a15841d6e | [
"MIT"
] | null | null | null | #include "simple_navigation_goals/MoveBaseClientNode.hpp"
MoveBaseClientNode::MoveBaseClientNode(std::string node_name,std::string action_name):ac_(action_name, true)
{
std::cout << "MoveBaseClientNode constructor with the name of "<< action_name<< std::endl;
ROS_INFO("Waiting for %s action to start...", action_na... | 31.119403 | 120 | 0.690887 | WHU-Drones |
1405ebd2cdf088008a915fb7b83334f0e6e0c776 | 6,223 | cpp | C++ | Server/src/modules/SD3/scripts/eastern_kingdoms/ghostlands.cpp | ZON3DEV/wow-vanilla | 7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f | [
"OpenSSL"
] | null | null | null | Server/src/modules/SD3/scripts/eastern_kingdoms/ghostlands.cpp | ZON3DEV/wow-vanilla | 7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f | [
"OpenSSL"
] | null | null | null | Server/src/modules/SD3/scripts/eastern_kingdoms/ghostlands.cpp | ZON3DEV/wow-vanilla | 7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f | [
"OpenSSL"
] | null | null | null | /**
* ScriptDev3 is an extension for mangos providing enhanced features for
* area triggers, creatures, game objects, instances, items, and spells beyond
* the default database scripting in mangos.
*
* Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/>
* Copyright (C) 2014-2022 MaNGOS <https://getma... | 31.429293 | 152 | 0.571911 | ZON3DEV |