hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e063649cb9f2f51b43d201ae2b3a4d068105ad40 | 675 | cpp | C++ | Problems/234. Palindrome Linked List/pointers_array.cpp | uSlashVlad/MyLeetCode | 3d5e8e347716beb0ffadb538c92eceb42ab7fcf9 | [
"MIT"
] | 1 | 2022-01-29T01:52:58.000Z | 2022-01-29T01:52:58.000Z | Problems/234. Palindrome Linked List/pointers_array.cpp | uSlashVlad/MyLeetCode | 3d5e8e347716beb0ffadb538c92eceb42ab7fcf9 | [
"MIT"
] | null | null | null | Problems/234. Palindrome Linked List/pointers_array.cpp | uSlashVlad/MyLeetCode | 3d5e8e347716beb0ffadb538c92eceb42ab7fcf9 | [
"MIT"
] | null | null | null | #include "../includes.hpp"
using namespace std;
struct ListNode
{
int val;
ListNode *next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode *next) : val(x), next(next) {}
};
class Solution
{
public:
bool isPalindrome(ListNode *head)
... | 19.285714 | 59 | 0.472593 | uSlashVlad |
e06d9cd70b869e3329ab4b524dd76112e04aa3d9 | 6,439 | cpp | C++ | src/Settings/Constants.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | src/Settings/Constants.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | src/Settings/Constants.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | /**
* Definition of OptionConstants constants.
*/
#include "DREAM/Settings/OptionConstants.hpp"
using namespace DREAM;
/**
* NAMES OF UNKNOWN QUANTITIES
*/
const char *OptionConstants::UQTY_E_FIELD = "E_field";
const char *OptionConstants::UQTY_F_HOT = "f_hot";
const char *OptionConstants::... | 72.348315 | 156 | 0.702283 | chalmersplasmatheory |
e06f56385da1f7fcf39d2e6691a2cddca6855a08 | 5,221 | cpp | C++ | src/tests/test_lift.cpp | victimsnino/ReactivePlusPlus | bb187cc52936bce7c1ef4899d7dbb9c970cef291 | [
"MIT"
] | 1 | 2022-03-19T20:15:50.000Z | 2022-03-19T20:15:50.000Z | src/tests/test_lift.cpp | victimsnino/ReactivePlusPlus | bb187cc52936bce7c1ef4899d7dbb9c970cef291 | [
"MIT"
] | 12 | 2022-03-22T21:18:14.000Z | 2022-03-30T05:37:58.000Z | src/tests/test_lift.cpp | victimsnino/ReactivePlusPlus | bb187cc52936bce7c1ef4899d7dbb9c970cef291 | [
"MIT"
] | null | null | null | // ReactivePlusPlus library
//
// Copyright Aleksey Loginov 2022 - present.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.com/victimsnin... | 36.256944 | 107 | 0.500287 | victimsnino |
e070bf8609cf27f34b95d773ab77e70c6157a017 | 17,355 | cpp | C++ | src/zyre/zyre.cpp | staroy/gyro | 3cc048af5605cf4aad50812733cebe1e0232c2f9 | [
"MIT"
] | null | null | null | src/zyre/zyre.cpp | staroy/gyro | 3cc048af5605cf4aad50812733cebe1e0232c2f9 | [
"MIT"
] | null | null | null | src/zyre/zyre.cpp | staroy/gyro | 3cc048af5605cf4aad50812733cebe1e0232c2f9 | [
"MIT"
] | null | null | null | #include "zyre.hpp"
#include "auth.h"
#include <iostream>
#include <boost/filesystem.hpp>
#include "misc_log_ex.h"
#include "sodium.h"
#undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "zyre.cc"
namespace zyre
{
void *server::ctx_ = nullptr;
server::server(
const std::string& name,
... | 29.666667 | 148 | 0.492711 | staroy |
e0748d77b416cedd619686df8638e1e61c33663c | 26,624 | cpp | C++ | Source/FemPhysicsLinear.cpp | MihaiF/SolidFEM | 58e08130e2f31be3b056c387ed03aab3b0b3db38 | [
"BSD-3-Clause"
] | 3 | 2020-05-19T10:59:01.000Z | 2022-02-04T08:59:32.000Z | Source/FemPhysicsLinear.cpp | MihaiF/SolidFEM | 58e08130e2f31be3b056c387ed03aab3b0b3db38 | [
"BSD-3-Clause"
] | null | null | null | Source/FemPhysicsLinear.cpp | MihaiF/SolidFEM | 58e08130e2f31be3b056c387ed03aab3b0b3db38 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T16:14:53.000Z | 2019-11-08T16:14:53.000Z | /*
BSD 3-Clause License
Copyright (c) 2019, Mihai Francu
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 condit... | 33.829733 | 145 | 0.654485 | MihaiF |
2fdd9b4502588839b2fc890eccd9542edf134894 | 625 | cpp | C++ | hash/hash_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 264 | 2015-01-03T11:50:17.000Z | 2022-03-17T02:38:34.000Z | hash/hash_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 12 | 2015-04-27T15:17:34.000Z | 2021-05-01T04:31:18.000Z | hash/hash_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 128 | 2015-02-07T18:13:10.000Z | 2022-02-21T14:24:14.000Z | // Copyright (c) 2013, The Toft Authors. All rights reserved.
// Author: Ye Shunping <yeshunping@gmail.com>
#include <string>
#include "toft/hash/hash.h"
#include "thirdparty/gtest/gtest.h"
namespace toft {
TEST(HashUnittest, Fingerprint) {
const std::string& url = "http://app.kid.qq.com/exam/5528/5528_103392.h... | 29.761905 | 79 | 0.7264 | hjinlin |
2fddce6a0d5df9e95639c4bfb13c1be6925b3aa3 | 2,011 | hpp | C++ | labs/parallel_merge/helper.hpp | amirsojoodi/gpu-algorithms-labs | 27993d0f40822d7195ada79645ca1ed7dd875803 | [
"NCSA"
] | 23 | 2019-01-15T23:13:22.000Z | 2022-03-18T05:25:11.000Z | labs/parallel_merge/helper.hpp | amirsojoodi/gpu-algorithms-labs | 27993d0f40822d7195ada79645ca1ed7dd875803 | [
"NCSA"
] | 9 | 2019-01-15T22:25:02.000Z | 2021-07-15T16:59:49.000Z | labs/parallel_merge/helper.hpp | amirsojoodi/gpu-algorithms-labs | 27993d0f40822d7195ada79645ca1ed7dd875803 | [
"NCSA"
] | 19 | 2019-01-22T17:09:00.000Z | 2022-03-10T11:57:05.000Z | #pragma once
#define CATCH_CONFIG_CPP11_TO_STRING
#define CATCH_CONFIG_COLOUR_ANSI
#define CATCH_CONFIG_MAIN
#include "common/catch.hpp"
#include "common/fmt.hpp"
#include "common/utils.hpp"
#include "assert.h"
#include "stdint.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include <algorithm>
#incl... | 30.469697 | 151 | 0.663352 | amirsojoodi |
2fdf0ec1e8a7781618bdc3ca01cfa62307675cde | 410 | cpp | C++ | tests/doc/vector3d/vector3d-3.cpp | jmintser/chemfiles | fb1ed5ee47790cc004468e5484954e2b3d1adff2 | [
"BSD-3-Clause"
] | 116 | 2015-11-05T01:18:13.000Z | 2022-02-20T06:33:47.000Z | tests/doc/vector3d/vector3d-3.cpp | jmintser/chemfiles | fb1ed5ee47790cc004468e5484954e2b3d1adff2 | [
"BSD-3-Clause"
] | 307 | 2015-10-08T09:22:46.000Z | 2022-03-28T13:42:51.000Z | tests/doc/vector3d/vector3d-3.cpp | Luthaf/Chemharp | d41036ff5645954bd691f868f066c760560eee13 | [
"BSD-3-Clause"
] | 57 | 2015-10-22T06:45:40.000Z | 2022-03-27T17:33:05.000Z | // Chemfiles, a modern library for chemistry file reading and writing
// Copyright (C) Guillaume Fraux and contributors -- BSD license
#include <catch.hpp>
#include <chemfiles.hpp>
using namespace chemfiles;
#undef assert
#define assert CHECK
TEST_CASE() {
// [example]
auto u = Vector3D(1.5, 2.0, -3.0);
a... | 22.777778 | 69 | 0.639024 | jmintser |
2fe400e50fb276b4251a23540e03497e989f210e | 616 | cpp | C++ | Dynamic Programming/Knapsnack.cpp | aviral243/interviewbit-solutions-1 | 7b4bda68b2ff2916263493f40304b20fade16c9a | [
"MIT"
] | null | null | null | Dynamic Programming/Knapsnack.cpp | aviral243/interviewbit-solutions-1 | 7b4bda68b2ff2916263493f40304b20fade16c9a | [
"MIT"
] | null | null | null | Dynamic Programming/Knapsnack.cpp | aviral243/interviewbit-solutions-1 | 7b4bda68b2ff2916263493f40304b20fade16c9a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int maximiseProfit(vector<int> &p, vector<int> &w, int m) {
int n = w.size();
vector<int> ans(n, 0);
vector<vector<int>> dp(n + 1, vector<int>(m + 1, 0));
for (int i = 1; i < n + 1; i++)
for (int j = 1; j < m + 1; j++)
if (w[i - 1] > j)
dp[i][j]... | 21.241379 | 73 | 0.477273 | aviral243 |
2fe57690a55e66d9578c20a9c04b5aafec7e0c30 | 253 | cpp | C++ | problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/c++/Raizes.cpp | Ramo-UERJ/competitive-programming | 7f2b821862853a7ebc1de5454914bcc9ea626083 | [
"MIT"
] | null | null | null | problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/c++/Raizes.cpp | Ramo-UERJ/competitive-programming | 7f2b821862853a7ebc1de5454914bcc9ea626083 | [
"MIT"
] | 1 | 2020-07-29T13:23:25.000Z | 2020-07-29T13:23:25.000Z | problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/c++/Raizes.cpp | ieee-uerj/competitive-programming | 7f2b821862853a7ebc1de5454914bcc9ea626083 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N;
double x;
cin >> N;
cout.precision(4);
cout.setf(ios::fixed);
for (int i =0; i < N; i++){
cin >> x;
cout << sqrt(x) << endl;
}
} | 11.5 | 31 | 0.490119 | Ramo-UERJ |
2fe6891ff90c388888df3ff5931d7343b3d09b48 | 3,670 | cpp | C++ | src/foundation/Buffer.cpp | ma-bo/lua-poco | b19a38c42ff6bcd06a4fda2a5aff826056735678 | [
"BSD-3-Clause"
] | 16 | 2015-10-15T16:38:32.000Z | 2022-01-29T16:20:14.000Z | src/foundation/Buffer.cpp | ma-bo/lua-poco | b19a38c42ff6bcd06a4fda2a5aff826056735678 | [
"BSD-3-Clause"
] | 2 | 2016-08-11T22:14:31.000Z | 2016-08-12T16:02:20.000Z | src/foundation/Buffer.cpp | ma-bo/lua-poco | b19a38c42ff6bcd06a4fda2a5aff826056735678 | [
"BSD-3-Clause"
] | 8 | 2015-07-17T09:15:56.000Z | 2021-05-20T06:49:57.000Z | /// Mutable buffers.
// A module that implements mutable buffers for use with memoryostream and memoryistream.
// Note: buffer userdata are copyable between threads.
// @module buffer
#include <iostream>
#include "Buffer.h"
#include <Poco/Exception.h>
int luaopen_poco_buffer(lua_State* L)
{
LuaPoco::BufferUserdat... | 26.402878 | 99 | 0.677384 | ma-bo |
2ff7457bf2fe4d2d3c0bc27af0930303fb70b26b | 432 | cpp | C++ | libfairygui/proj.ios_mac/libfairygui MAC/libfairygui_MAC.cpp | umair6/FairyGUI-cocos2dx | 7b21889a48b6ff5878b407c2a484670ebd8a4549 | [
"MIT"
] | 308 | 2017-10-15T14:26:45.000Z | 2022-03-22T09:06:57.000Z | libfairygui/proj.ios_mac/libfairygui MAC/libfairygui_MAC.cpp | umair6/FairyGUI-cocos2dx | 7b21889a48b6ff5878b407c2a484670ebd8a4549 | [
"MIT"
] | 73 | 2017-10-25T06:41:57.000Z | 2022-03-21T06:49:38.000Z | libfairygui/proj.ios_mac/libfairygui MAC/libfairygui_MAC.cpp | umair6/FairyGUI-cocos2dx | 7b21889a48b6ff5878b407c2a484670ebd8a4549 | [
"MIT"
] | 108 | 2017-11-01T08:22:00.000Z | 2021-11-19T10:29:29.000Z | /*
* libfairygui_MAC.cpp
* libfairygui MAC
*
* Created by ytom on 17/11/9.
*
*
*/
#include <iostream>
#include "libfairygui_MAC.hpp"
#include "libfairygui_MACPriv.hpp"
void libfairygui_MAC::HelloWorld(const char * s)
{
libfairygui_MACPriv *theObj = new libfairygui_MACPriv;
theObj->HelloWorldPriv(s);
d... | 16.615385 | 57 | 0.699074 | umair6 |
2ff8a072db190083a0bd4de78330e881d25a0bf3 | 239 | cpp | C++ | src/autowiring/CallExtractor.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | src/autowiring/CallExtractor.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | src/autowiring/CallExtractor.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "CallExtractor.h"
#include "AutoPacket.h"
using namespace autowiring;
CESetup<>::CESetup(AutoPacket& packet) :
pshr(packet.GetContext())
{}
| 21.727273 | 65 | 0.732218 | CaseyCarter |
2fff5d5a1f67ca52bd17486a69e8e7b2188919cf | 4,437 | cpp | C++ | CPM/SlabSpectrumCode.cpp | FrancisKhan/ALMOST | 06e36666ca18aa06167baac3123dbbe913f74b5d | [
"MIT"
] | 5 | 2020-12-20T15:37:59.000Z | 2021-03-18T18:11:17.000Z | CPM/SlabSpectrumCode.cpp | FrancisKhan/ALMOST | 06e36666ca18aa06167baac3123dbbe913f74b5d | [
"MIT"
] | null | null | null | CPM/SlabSpectrumCode.cpp | FrancisKhan/ALMOST | 06e36666ca18aa06167baac3123dbbe913f74b5d | [
"MIT"
] | null | null | null | #include "BaseSpectrumCode.h"
#include "SlabSpectrumCode.h"
#include "numeric_tools.h"
#include <boost/math/special_functions/expint.hpp>
#include <iostream>
using namespace Eigen;
using namespace Numerics;
using namespace PrintFuncs;
using namespace boost::math;
std::pair<Tensor3d, Tensor4d> SlabSpectrumCode::calcT... | 26.254438 | 103 | 0.506874 | FrancisKhan |
6402960a16739f7901cfd5a7baac7cf3bb5ff7bc | 5,847 | cc | C++ | cpp/normalize.cc | streamcorpus/streamcorpus-filter | 7687aa25260d95b861efa63d7369e6dcd6bb20a4 | [
"MIT"
] | 1 | 2015-11-13T15:48:23.000Z | 2015-11-13T15:48:23.000Z | cpp/normalize.cc | streamcorpus/streamcorpus-filter | 7687aa25260d95b861efa63d7369e6dcd6bb20a4 | [
"MIT"
] | null | null | null | cpp/normalize.cc | streamcorpus/streamcorpus-filter | 7687aa25260d95b861efa63d7369e6dcd6bb20a4 | [
"MIT"
] | null | null | null |
#include <assert.h>
#include <ctype.h>
#include <stddef.h>
#include "normalize.h"
// icu
//#include <normalizer2.h>
#if HAVE_ICU
#include <unicode/normalizer2.h>
#include <unicode/unistr.h>
#include <unicode/utypes.h>
#include <vector>
#include <iostream>
using std::vector;
using std::cerr;
using std::endl;
usin... | 24.880851 | 128 | 0.601676 | streamcorpus |
6408e3aa3f1b0a96ed2553fffb6042fbcf4c2c49 | 5,304 | cpp | C++ | src/test/SlamManagerTest.cpp | AlexeyMerzlyakov/lpslam | e473de4f53c49d2fc3cc123758d0ac987afdabbd | [
"Apache-2.0"
] | 4 | 2021-05-27T21:42:46.000Z | 2022-03-07T04:47:13.000Z | src/test/SlamManagerTest.cpp | AlexeyMerzlyakov/lpslam | e473de4f53c49d2fc3cc123758d0ac987afdabbd | [
"Apache-2.0"
] | 1 | 2021-11-17T08:42:43.000Z | 2021-12-07T03:11:11.000Z | src/test/SlamManagerTest.cpp | AlexeyMerzlyakov/lpslam | e473de4f53c49d2fc3cc123758d0ac987afdabbd | [
"Apache-2.0"
] | 2 | 2021-09-05T11:02:12.000Z | 2021-11-16T01:17:23.000Z |
#include "Manager/SlamManager.h"
#include "Interface/LpSlamTypes.h"
#include <gtest/gtest.h>
#include <string>
#include <sstream>
using namespace LpSlam;
// make sure providing wrong json config is handled
// properly
TEST(slam_manager, read_config_file)
{
const std::string testJsonConfigFile = "lpgf_unitttest_... | 26.787879 | 84 | 0.49227 | AlexeyMerzlyakov |
6409e68ce5c1b3308fd36d1367609cc3a1ac8fbb | 392 | hpp | C++ | include/clpp/map_access.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 5 | 2015-09-08T01:59:26.000Z | 2018-11-26T10:19:29.000Z | include/clpp/map_access.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 6 | 2015-11-29T03:00:11.000Z | 2015-11-29T03:11:52.000Z | include/clpp/map_access.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | null | null | null | #ifndef CLPP_MAP_ACCESS_HPP
#define CLPP_MAP_ACCESS_HPP
#include "clpp/detail/common.hpp"
namespace cl {
enum class MapAccess : cl_map_flags {
read = CL_MAP_READ
, write = CL_MAP_WRITE
, readWrite = CL_MAP_READ | CL_MAP_WRITE
#if defined(CL_VERSION_1_2)
, write... | 21.777778 | 58 | 0.67602 | Robbepop |
640f35f24e39299c8c63bb8978e717a69721bccb | 430 | cpp | C++ | archive_cppthreads/thread_creation.cpp | kumar-parveen/csbits | a18c099dbde45a4e0dff0bced9986623b81089a6 | [
"MIT"
] | 1 | 2020-06-14T07:14:45.000Z | 2020-06-14T07:14:45.000Z | archive_cppthreads/thread_creation.cpp | kumar-parveen/csbits | a18c099dbde45a4e0dff0bced9986623b81089a6 | [
"MIT"
] | null | null | null | archive_cppthreads/thread_creation.cpp | kumar-parveen/csbits | a18c099dbde45a4e0dff0bced9986623b81089a6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<thread>
using namespace std;
void fun(){
cout<< "fun function" << endl;
}
class FunObject{
public:
void operator()() const {
cout << "Fun Object" << endl;
}
};
int main(){
cout << endl;
thread t1(fun);
FunObject obj;
thread t2(obj);
thread t3... | 13.4375 | 54 | 0.534884 | kumar-parveen |
64159169c4f39ed755abc04c639bfdef54164353 | 8,465 | hpp | C++ | Source/System/ResourceManager.hpp | gunstarpl/Perim-Game-07-2015 | 58efdee1857f5cccad909d5c2a76f2d6871657e6 | [
"Unlicense",
"MIT"
] | null | null | null | Source/System/ResourceManager.hpp | gunstarpl/Perim-Game-07-2015 | 58efdee1857f5cccad909d5c2a76f2d6871657e6 | [
"Unlicense",
"MIT"
] | null | null | null | Source/System/ResourceManager.hpp | gunstarpl/Perim-Game-07-2015 | 58efdee1857f5cccad909d5c2a76f2d6871657e6 | [
"Unlicense",
"MIT"
] | null | null | null | #pragma once
#include "Precompiled.hpp"
#include "Resource.hpp"
//
// Resource Manager
//
namespace System
{
// Resource pool interface.
class ResourcePoolInterface
{
protected:
ResourcePoolInterface()
{
}
public:
virtual ~ResourcePoolInterface()
{
... | 27.21865 | 88 | 0.588305 | gunstarpl |
6416a341f41a586e5ddd2a1d022eb53d11351671 | 7,409 | cpp | C++ | src/mongo/db/pipeline/document.cpp | spencerjackson/mongo | 51c46e71c9f310fc91168c0945ffa6cfc00d380b | [
"Apache-2.0"
] | null | null | null | src/mongo/db/pipeline/document.cpp | spencerjackson/mongo | 51c46e71c9f310fc91168c0945ffa6cfc00d380b | [
"Apache-2.0"
] | null | null | null | src/mongo/db/pipeline/document.cpp | spencerjackson/mongo | 51c46e71c9f310fc91168c0945ffa6cfc00d380b | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (c) 2011 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* bu... | 33.224215 | 83 | 0.563369 | spencerjackson |
64171fc4727f307a00e40a612cc01bc22fc6d847 | 2,088 | hpp | C++ | renderer/msd_renderer.hpp | msdmazarei/cpp-msd-freetype | ae4c79512ea6c9fba686235e9dd2dd03bd791a6f | [
"BSD-2-Clause"
] | null | null | null | renderer/msd_renderer.hpp | msdmazarei/cpp-msd-freetype | ae4c79512ea6c9fba686235e9dd2dd03bd791a6f | [
"BSD-2-Clause"
] | null | null | null | renderer/msd_renderer.hpp | msdmazarei/cpp-msd-freetype | ae4c79512ea6c9fba686235e9dd2dd03bd791a6f | [
"BSD-2-Clause"
] | null | null | null | #ifndef _MSD_RENDERER_H_
#define _MSD_RENDERER_H_
#include <hb-ft.h>
#include <mupdf/fitz.h>
#include <png++/png.hpp>
#include <vector>
typedef unsigned char BYTE;
typedef unsigned int uint;
// typedef struct ImagePixel_ {
// BYTE C; // R, G, B;
// } ImagePixel;
typedef struct glyph_position_ {
hb_codepoint_t gid... | 27.473684 | 77 | 0.645115 | msdmazarei |
641a3c3bce9823d835bca8504751b151b026a358 | 219 | hpp | C++ | el/types/void.hpp | Xikeb/elSandbox | f0d2474672016a87aae9720b6ee9346904f21cd2 | [
"MIT"
] | null | null | null | el/types/void.hpp | Xikeb/elSandbox | f0d2474672016a87aae9720b6ee9346904f21cd2 | [
"MIT"
] | null | null | null | el/types/void.hpp | Xikeb/elSandbox | f0d2474672016a87aae9720b6ee9346904f21cd2 | [
"MIT"
] | null | null | null | #pragma once
namespace el {
namespace impl {
template<typename ...Ts>
struct void_t {
using type = void;
};
} // impl
template<typename ...Ts>
using void_t = typename el::impl::void_t<Ts...>::type;
} // el | 18.25 | 55 | 0.630137 | Xikeb |
6426306a3b5cbb8437d7b249319a250084f0de32 | 17,941 | cxx | C++ | Programs/ThirionRegistration/mimxThirionRegistrationPrimary.cxx | Piyusha23/IAFEMesh | e91b34c9eaa9c8ecc4ebb5d16f4c13f330d75c9f | [
"BSD-4-Clause-UC"
] | null | null | null | Programs/ThirionRegistration/mimxThirionRegistrationPrimary.cxx | Piyusha23/IAFEMesh | e91b34c9eaa9c8ecc4ebb5d16f4c13f330d75c9f | [
"BSD-4-Clause-UC"
] | null | null | null | Programs/ThirionRegistration/mimxThirionRegistrationPrimary.cxx | Piyusha23/IAFEMesh | e91b34c9eaa9c8ecc4ebb5d16f4c13f330d75c9f | [
"BSD-4-Clause-UC"
] | null | null | null | #include <iostream>
#include <string>
#include <fstream>
#include <stdio.h>
#include "itkImage.h"
#include "itkExceptionObject.h"
#include "itkBrains2MaskImageIOFactory.h"
#include "ThirionRegistration.h"
#include <metaCommand.h>
//This function prints the valid pixel types.
void PrintDataTypeStrings(void)
{
//Pr... | 41.530093 | 157 | 0.643777 | Piyusha23 |
6426db6d2a533df9a3b75ea5d593d82079b85a8a | 11,704 | cpp | C++ | src/graphics/scene/BoardRenderable.cpp | petuzk/Warcaby | 2102493199c7edf9ea752dfcb374435d5b9049fd | [
"MIT"
] | null | null | null | src/graphics/scene/BoardRenderable.cpp | petuzk/Warcaby | 2102493199c7edf9ea752dfcb374435d5b9049fd | [
"MIT"
] | null | null | null | src/graphics/scene/BoardRenderable.cpp | petuzk/Warcaby | 2102493199c7edf9ea752dfcb374435d5b9049fd | [
"MIT"
] | null | null | null | #include "inc/graphics/scene/BoardRenderable.hpp"
#include "src/game/board/Board_template.cpp"
#include "src/graphics/scene/CheckerRenderable_template.cpp"
rl::Model BoardRenderable::rlModel = { 0 };
int BoardRenderable::shaderHlFromLoc[SHADER_MAX_HIGHLIGHTS];
int BoardRenderable::shaderHlToLoc[SHADER_MAX_HIGHLIGHTS];... | 30.558747 | 146 | 0.66285 | petuzk |
6428afc1bf1c0257688956df9929ef74b371df01 | 936 | cpp | C++ | libs/options/src/options/option_name_comparison.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/options/src/options/option_name_comparison.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/options/src/options/option_name_comparison.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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)
#include <fcppt/strong_typedef_comparison.hpp>
#include <fcppt/options/option_name.hpp>
#include <... | 19.5 | 61 | 0.711538 | pmiddend |
642b4cbccd243e294bc48caca7b79bb1dd960dc3 | 33,871 | cpp | C++ | src/Graphics/Isosurface.cpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | 1 | 2022-01-24T18:15:56.000Z | 2022-01-24T18:15:56.000Z | src/Graphics/Isosurface.cpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | null | null | null | src/Graphics/Isosurface.cpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | null | null | null | #include "Math.hpp"
#include "Terrain.hpp"
#include "Isosurface.hpp"
namespace Ondine::Graphics {
const glm::vec3 Isosurface::NORMALIZED_CUBE_VERTICES[8] = {
glm::vec3(-0.5f, -0.5f, -0.5f),
glm::vec3(+0.5f, -0.5f, -0.5f),
glm::vec3(-0.5f, +0.5f, -0.5f),
glm::vec3(+0.5f, +0.5f, -0.5f),
glm::vec3(-0.5f, -0.5f,... | 30.107556 | 147 | 0.602994 | llGuy |
642f552caf8360f1efc2230731e1409502dc5304 | 2,383 | hh | C++ | preprocessor/preprocessor-src/src/preprocessor/cxx_ast.hh | fabianmcg/wavedag | e975792aef4423de6cf43af6bfde44ef89a5db0d | [
"MIT"
] | 1 | 2021-01-10T09:04:38.000Z | 2021-01-10T09:04:38.000Z | preprocessor/preprocessor-src/src/preprocessor/cxx_ast.hh | fabianmcg/wavedag | e975792aef4423de6cf43af6bfde44ef89a5db0d | [
"MIT"
] | null | null | null | preprocessor/preprocessor-src/src/preprocessor/cxx_ast.hh | fabianmcg/wavedag | e975792aef4423de6cf43af6bfde44ef89a5db0d | [
"MIT"
] | null | null | null | #ifndef __PREPROCESSOR_CXX_AST_HH__
#define __PREPROCESSOR_CXX_AST_HH__
#include <pragma-parser.hh>
#include "../clang/clang-wrapper.hh"
#include "../util.hh"
#include "util.hh"
#include "types.hh"
#include "pragma.hh"
namespace __preprocessor__ {
namespace __cxx__ {
enum class variable_list_mode_e {
NAMES,
NAMES_T... | 45.826923 | 245 | 0.793538 | fabianmcg |
642f9f56efd39702aaeb2e9844c3c9b8cbafc274 | 839 | cc | C++ | src/ops/softmax.cc | Parkchanjun/CTranslate2 | 62e3af774e0ba23e052e242c263dcbc00cd6c0c6 | [
"MIT"
] | null | null | null | src/ops/softmax.cc | Parkchanjun/CTranslate2 | 62e3af774e0ba23e052e242c263dcbc00cd6c0c6 | [
"MIT"
] | null | null | null | src/ops/softmax.cc | Parkchanjun/CTranslate2 | 62e3af774e0ba23e052e242c263dcbc00cd6c0c6 | [
"MIT"
] | null | null | null | #include "ctranslate2/ops/softmax.h"
#include "../device_dispatch.h"
namespace ctranslate2 {
namespace ops {
LogSoftMax::LogSoftMax()
: SoftMax(/*log=*/true) {
}
SoftMax::SoftMax(bool log)
: _log(log) {
}
void SoftMax::operator()(const StorageView& x, StorageView& y) const {
... | 24.676471 | 102 | 0.615018 | Parkchanjun |
6431948ead17245979c8032bcb8a3317bc86acfc | 13,539 | cpp | C++ | lib/CubeSolver/TableManager.cpp | C-minus-minus/Cubebert | bef38d5ba9baa884b32710c058ca4d18d6734ecf | [
"MIT"
] | null | null | null | lib/CubeSolver/TableManager.cpp | C-minus-minus/Cubebert | bef38d5ba9baa884b32710c058ca4d18d6734ecf | [
"MIT"
] | null | null | null | lib/CubeSolver/TableManager.cpp | C-minus-minus/Cubebert | bef38d5ba9baa884b32710c058ca4d18d6734ecf | [
"MIT"
] | null | null | null | #include "TableManager.h"
TableManager* TableManager::instance = NULL;
TableManager::TableManager() {
this->generatePhase1MoveTables();
this->generatePhase1PruningTables();
this->generatePhase2MoveTables();
this->generatePhase2PruningTables();
}
TableManager* TableManager::getInstance() {
if (Ta... | 41.658462 | 112 | 0.646872 | C-minus-minus |
6432871bdc57b9574fd2a55cd84adf8e68b56258 | 317 | cpp | C++ | LeetCode/Problems/Algorithms/#96_UniqueBinarySearchTrees_sol4_catalan_numbers_O(N)_time_O(1)_extra_space.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#96_UniqueBinarySearchTrees_sol4_catalan_numbers_O(N)_time_O(1)_extra_space.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#96_UniqueBinarySearchTrees_sol4_catalan_numbers_O(N)_time_O(1)_extra_space.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
private:
long long comb(int n, int k){
long long res = 1;
for(int i = 1; i <= k; ++i){
res *= (n - k + i);
res /= i;
}
return res;
}
public:
int numTrees(int n) {
return comb(2 * n, n) / (n + 1);
}
}; | 19.8125 | 41 | 0.37224 | Tudor67 |
643327a34be9fdcd3335fe2b06e0f66cb2b32bb2 | 1,027 | cpp | C++ | Commom/BaseFrame.cpp | chungmin99/Medial-IPC | e5c7a2ed81f28bab6ad96eab61eb61213cb3089d | [
"MIT"
] | 7 | 2021-10-30T16:48:31.000Z | 2022-02-14T04:47:56.000Z | Commom/BaseFrame.cpp | chungmin99/Medial-IPC | e5c7a2ed81f28bab6ad96eab61eb61213cb3089d | [
"MIT"
] | null | null | null | Commom/BaseFrame.cpp | chungmin99/Medial-IPC | e5c7a2ed81f28bab6ad96eab61eb61213cb3089d | [
"MIT"
] | 4 | 2021-08-31T00:24:49.000Z | 2022-02-06T09:10:48.000Z | #include "BaseFrame.h"
void BaseFrameConstraint::freeFrame()
{
select_frame.clear();
}
void BaseFrameConstraint::setFrame(BaseFrame * f)
{
select_frame.append(f);
}
void BaseFrameConstraint::constrainTranslation(qglviewer::Vec& translation, qglviewer::Frame* const frame)
{
for (QList<localFrame*>::iterator it = sele... | 31.121212 | 107 | 0.719572 | chungmin99 |
64333d1253de18a6251fbf26d6f9ce4649e87df2 | 9,548 | cc | C++ | src/xpath.cc | CodeCat-maker/cxml | e5912f997a050ffd26e40faaea14558456f6e119 | [
"MIT"
] | 115 | 2022-02-16T14:27:04.000Z | 2022-03-29T23:05:24.000Z | src/xpath.cc | CodeCat-maker/cxml | e5912f997a050ffd26e40faaea14558456f6e119 | [
"MIT"
] | null | null | null | src/xpath.cc | CodeCat-maker/cxml | e5912f997a050ffd26e40faaea14558456f6e119 | [
"MIT"
] | 1 | 2022-03-12T01:36:51.000Z | 2022-03-12T01:36:51.000Z | #include "xpath.hpp"
using std::cout;
using std::endl;
using std::__1::pair;
using std::__1::queue;
typedef queue<pair<string, string> > qpss;
qpss queue_option; //储存操作类型和名称
int XPATH_PARSE_STATUE = XPATH_PARSE_SUCCESS;
//child 子
//genera 后
const string options[] = {
"get_parent_node", // /.. 选择父元素 ✅... | 27.436782 | 99 | 0.519271 | CodeCat-maker |
643b7784377b8f0ae60b4559ec236685c8aa8cb7 | 4,700 | cc | C++ | src/compiler/cpp_cb_plugin.cc | jinq0123/grpc_cb | 1b3058528d66dd6777a3248550a3d87f6b9e1b7f | [
"Apache-2.0"
] | 43 | 2016-11-02T15:19:00.000Z | 2021-08-19T08:46:24.000Z | src/compiler/cpp_cb_plugin.cc | jinq0123/grpc_cb | 1b3058528d66dd6777a3248550a3d87f6b9e1b7f | [
"Apache-2.0"
] | 2 | 2018-02-09T09:06:37.000Z | 2018-08-18T01:26:13.000Z | src/compiler/cpp_cb_plugin.cc | jinq0123/grpc_cb | 1b3058528d66dd6777a3248550a3d87f6b9e1b7f | [
"Apache-2.0"
] | 19 | 2016-12-04T08:49:27.000Z | 2022-03-29T07:30:59.000Z | /*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | 41.59292 | 81 | 0.709787 | jinq0123 |
6443612b8ba3bf6d37f5479b2f9fb701af73de00 | 12,834 | inl | C++ | Library/Sources/Stroika/Foundation/Containers/Concrete/Mapping_LinkedList.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Library/Sources/Stroika/Foundation/Containers/Concrete/Mapping_LinkedList.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Library/Sources/Stroika/Foundation/Containers/Concrete/Mapping_LinkedList.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#ifndef _Stroika_Foundation_Containers_Concrete_Mapping_LinkedList_inl_
#define _Stroika_Foundation_Containers_Concrete_Mapping_LinkedList_inl_
/*
********************************************************************************
**********... | 49.361538 | 219 | 0.62576 | SophistSolutions |
64454fd1135bdb44d4768d9b00c52a088fc94d15 | 1,192 | cpp | C++ | codeSpace/Leetcode_684.cpp | chen810/study-code | 79cac459595aee422fecbe281705b0ec7a7a08d2 | [
"MIT"
] | 1 | 2020-10-18T14:08:21.000Z | 2020-10-18T14:08:21.000Z | codeSpace/Leetcode_684.cpp | chen810/study-code | 79cac459595aee422fecbe281705b0ec7a7a08d2 | [
"MIT"
] | null | null | null | codeSpace/Leetcode_684.cpp | chen810/study-code | 79cac459595aee422fecbe281705b0ec7a7a08d2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int Find(vector<int>& parent, int index) { // 返回parent[index]的值,顺便更新最新节点的分组
if (parent[index] != index) { // 如果被分组过则进行再次分组
parent[index] = Find(parent, parent[index]); //
}
return parent[inde... | 31.368421 | 80 | 0.500839 | chen810 |
64464fa0b3a914b63f3f8afdbb01377de8561fbb | 5,852 | cpp | C++ | tests/test_nsg_multi_merge_index.cpp | liql2007/nsg | e47c8228aaeaa0ad83fb195150f742bd7e43e712 | [
"MIT"
] | null | null | null | tests/test_nsg_multi_merge_index.cpp | liql2007/nsg | e47c8228aaeaa0ad83fb195150f742bd7e43e712 | [
"MIT"
] | null | null | null | tests/test_nsg_multi_merge_index.cpp | liql2007/nsg | e47c8228aaeaa0ad83fb195150f742bd7e43e712 | [
"MIT"
] | null | null | null | //
// Created by liql2007 on 2020/12/23.
//
#include <cassert>
#include <memory>
#include <efanna2e/index_nsg.h>
#include <faiss/Clustering.h>
#include <efanna2e/test_helper.h>
namespace {
void loadDocIds(const PartInfo& part, std::vector<unsigned>& docIds) {
std::ifstream in(part.idPath.c_str(), std::ios::binary)... | 30.010256 | 88 | 0.596206 | liql2007 |
644ac7f0f8b1fa90a8d6437f8f2a24c85481dce2 | 12,424 | cpp | C++ | check_fever_app/Palettes.cpp | Myzhar/Lepton3_Jetson | f6ecce258484b47e102da7239c942662520dd2bc | [
"MIT"
] | 45 | 2020-06-08T00:23:55.000Z | 2021-12-23T08:38:17.000Z | check_fever_app/Palettes.cpp | Myzhar/Lepton3_Jetson | f6ecce258484b47e102da7239c942662520dd2bc | [
"MIT"
] | 12 | 2020-07-11T13:46:06.000Z | 2022-03-23T11:38:56.000Z | check_fever_app/Palettes.cpp | Myzhar/Lepton3_Jetson | f6ecce258484b47e102da7239c942662520dd2bc | [
"MIT"
] | 12 | 2020-06-08T02:27:54.000Z | 2022-01-12T09:52:45.000Z | #include "Palettes.h"
#include <math.h>
#include <iostream>
using namespace std;
uint8_t colormap_byr[LUT_SIZE_8*3];
uint8_t colormap_bry[LUT_SIZE_8*3];
uint8_t colormap_bgyr[LUT_SIZE_8*3];
uint8_t colormap_whitehot[LUT_SIZE_8*3];
uint8_t colormap_blackhot[LUT_SIZE_8*3];
uint8_t colormap_whitehotBYR[LUT_SIZE_8*3];
ui... | 36.327485 | 103 | 0.568496 | Myzhar |
64531ec75fc0932a0b58d98458c71676e618c134 | 1,196 | hpp | C++ | Libraries/Zilch/Delegate.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/Zilch/Delegate.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Zilch/Delegate.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
#ifndef ZILCH_DELEGATE_HPP
# define ZILCH_DELEGATE_HPP
namespace Zilch
{
// Invalid constants
const size_t InvalidOpcodeLocation = (size_t)-1;
// A delegate is a simple type that consists of an index for a function, as well
// as the this pointer object
class ZeroShare... | 23.45098 | 80 | 0.727425 | RyanTylerRae |
6453a16d758ec757b3e1189d39f2c331d592f321 | 950 | cpp | C++ | 31.05/run.cpp | NoizuHika/SOP | 2ecfde6fba607f161a8e03ae353e36ea39c847e5 | [
"MIT"
] | null | null | null | 31.05/run.cpp | NoizuHika/SOP | 2ecfde6fba607f161a8e03ae353e36ea39c847e5 | [
"MIT"
] | null | null | null | 31.05/run.cpp | NoizuHika/SOP | 2ecfde6fba607f161a8e03ae353e36ea39c847e5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
pid_t cpid;
void handler(int i){
kill(cpid, i);
}
auto main(int argc, char *argv[]) -> int {
cpid = fork();
if (cpid == -1) {
perror("fork");
... | 19.387755 | 97 | 0.572632 | NoizuHika |
6455ce89933bc8b63399ceed4c1c0619cd9cbc2e | 917 | hpp | C++ | android-28/android/media/MediaCodecList.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/media/MediaCodecList.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/media/MediaCodecList.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
class JArray;
namespace android::media
{
class MediaCodecInfo;
}
namespace android::media
{
class MediaFormat;
}
class JString;
namespace android::media
{
class MediaCodecList : public JObject
{
public:
// Fields
static jint ALL_CODECS();
static jint REGULAR_CODEC... | 22.365854 | 155 | 0.730643 | YJBeetle |
645f0d1be2c6c4cf36ba6c144b211fc7a7f912cb | 231 | cpp | C++ | variant/variant.cpp | danielkrupinski/cpp-playground | 0b02de70bfdbbc7ebb073180972b382231a198d4 | [
"MIT"
] | 1 | 2018-07-23T21:15:11.000Z | 2018-07-23T21:15:11.000Z | variant/variant.cpp | danielkrupinski/cpp-playground | 0b02de70bfdbbc7ebb073180972b382231a198d4 | [
"MIT"
] | null | null | null | variant/variant.cpp | danielkrupinski/cpp-playground | 0b02de70bfdbbc7ebb073180972b382231a198d4 | [
"MIT"
] | 3 | 2018-11-10T05:39:00.000Z | 2019-12-08T12:14:19.000Z | #include <iostream>
#include <variant>
int main()
{
std::variant<int, double> v = 20;
std::cout << "v = " << std::get<int>(v) << '\n';
v = 33.33;
std::cout << "v = " << std::get<double>(v) << '\n';
return 0;
}
| 19.25 | 55 | 0.480519 | danielkrupinski |
64601ce7b4662e1beb8705ca8f670deef7141456 | 1,248 | cpp | C++ | nets/analyses/largestComponent.cpp | CxAalto/lcelib | dceea76e3f18696a2fa7c8287e1a537fbf493474 | [
"0BSD"
] | 1 | 2017-01-24T01:35:43.000Z | 2017-01-24T01:35:43.000Z | nets/analyses/largestComponent.cpp | CxAalto/lcelib | dceea76e3f18696a2fa7c8287e1a537fbf493474 | [
"0BSD"
] | null | null | null | nets/analyses/largestComponent.cpp | CxAalto/lcelib | dceea76e3f18696a2fa7c8287e1a537fbf493474 | [
"0BSD"
] | null | null | null | /* largestComponent.cpp
2006 Jun 14
Author: Lauri Kovanen
Reads a network from standard input and writes out largest
component. The nodes will be re-indexed from 0 to N, where N is the
size of the largest component.
To com... | 28.363636 | 82 | 0.642628 | CxAalto |
6462566d2243de74364fc34516a1934d95a5552e | 627 | cpp | C++ | src/macro/macro39.cpp | chennachaos/stabfem | b3d1f44c45e354dc930203bda22efc800c377c6f | [
"MIT"
] | null | null | null | src/macro/macro39.cpp | chennachaos/stabfem | b3d1f44c45e354dc930203bda22efc800c377c6f | [
"MIT"
] | null | null | null | src/macro/macro39.cpp | chennachaos/stabfem | b3d1f44c45e354dc930203bda22efc800c377c6f | [
"MIT"
] | null | null | null |
#include "Macro.h"
#include "MacroQueue.h"
extern MacroQueue macroQueue;
int macro39(Macro ¯o)
{
if (!macro)
{
macro.name = "stop";
macro.type = "ctrl";
macro.what = "stop macro queue execution";
macro.sensitivity[INTER] = true;
macro.sensitivity[BATCH] = true;
... | 20.9 | 101 | 0.392344 | chennachaos |
6463d3a33ec0f14890570283641e453098957267 | 4,546 | cpp | C++ | Program/DefragIPv4.cpp | CapBuran/PCAPFilter_Faster | 94058c53f3ce861d017580c853543893e9b88096 | [
"Unlicense"
] | 1 | 2020-07-16T09:03:43.000Z | 2020-07-16T09:03:43.000Z | Program/DefragIPv4.cpp | CapBuran/PCAPFilter_Faster | 94058c53f3ce861d017580c853543893e9b88096 | [
"Unlicense"
] | 1 | 2021-07-02T09:00:05.000Z | 2021-07-02T09:00:05.000Z | Program/DefragIPv4.cpp | CapBuran/PCAPFilter_Faster | 94058c53f3ce861d017580c853543893e9b88096 | [
"Unlicense"
] | 1 | 2019-10-25T14:42:50.000Z | 2019-10-25T14:42:50.000Z | #include <cstring>
#include "UInts.h"
#include "DefragIPv4.h"
#include "FilterTCPHeader.h"
#include "FilterUDPHeader.h"
#include "FilterSCTPHeader.h"
struct HashForDefragRowsIVv4
{
uint32_t src_addr; /**< source address */
uint32_t dst_addr; /**< destination address */
uint32_t network_id;
uint16_t packet_i... | 27.551515 | 128 | 0.66498 | CapBuran |
6464adb75fb222dc90ec6bfe9ea78ef820615f78 | 537 | hpp | C++ | Jagerts.Felcp.Xml/XmlFile.hpp | Jagreaper/Project-Felcp | 195d5de4230fe98e53d862c5c69b986344bc2cf5 | [
"MIT"
] | null | null | null | Jagerts.Felcp.Xml/XmlFile.hpp | Jagreaper/Project-Felcp | 195d5de4230fe98e53d862c5c69b986344bc2cf5 | [
"MIT"
] | null | null | null | Jagerts.Felcp.Xml/XmlFile.hpp | Jagreaper/Project-Felcp | 195d5de4230fe98e53d862c5c69b986344bc2cf5 | [
"MIT"
] | null | null | null | #pragma once
#include "Jagerts.Felcp.Xml/XmlAttribute.hpp"
#include "Jagerts.Felcp.Xml/XmlElement.hpp"
namespace Jagerts::Felcp::Xml
{
class JAGERTS_FELCP_XML_API XmlFile
{
public:
const std::vector<XmlElement>* GetElements() const;
const std::vector<XmlElement> GetElements(const std::string name) const;
vo... | 24.409091 | 74 | 0.746741 | Jagreaper |
6466c2ba3ef7685dfcb8c2baaf3b8f52262d5218 | 1,681 | cpp | C++ | src/main.cpp | astojanov/Clover | 80d6cb248737ab786300623a4678b4ab91e78fc2 | [
"Apache-2.0"
] | 63 | 2018-05-29T13:20:21.000Z | 2022-01-01T23:41:04.000Z | src/main.cpp | astojanov/Clover | 80d6cb248737ab786300623a4678b4ab91e78fc2 | [
"Apache-2.0"
] | 1 | 2018-10-23T11:49:33.000Z | 2018-10-24T09:11:55.000Z | src/main.cpp | astojanov/Clover | 80d6cb248737ab786300623a4678b4ab91e78fc2 | [
"Apache-2.0"
] | 5 | 2018-07-02T11:06:51.000Z | 2021-02-27T09:18:05.000Z | #include <CloverBase.h>
#include "../lib/cxxopts.h"
#include "../lib/sysinfo.h"
#include "../test/search/00_search.h"
#include "../test/performance/00_test.h"
#include "../test/validate/00_validate.h"
#include "../test/accuracy/00_accuracy.h"
int main (int argc, const char* argv[])
{
//
// Parse the option an... | 29.491228 | 83 | 0.544914 | astojanov |
646901913c75ef2579be714d0486d519d3421045 | 4,844 | hpp | C++ | projects/merge_sort_multithreading/merge_sort.hpp | ItsKarlito/OperatingSystems | 258e884a8484d3b5e5b7ead2507234db6de50cc1 | [
"MIT"
] | 4 | 2021-02-03T22:53:24.000Z | 2021-02-10T02:01:24.000Z | projects/merge_sort_multithreading/merge_sort.hpp | ItsKarlito/OperatingSystems | 258e884a8484d3b5e5b7ead2507234db6de50cc1 | [
"MIT"
] | 3 | 2021-04-03T23:08:14.000Z | 2021-04-06T04:09:16.000Z | projects/merge_sort_multithreading/merge_sort.hpp | ItsKarlito/OperatingSystems | 258e884a8484d3b5e5b7ead2507234db6de50cc1 | [
"MIT"
] | 4 | 2021-02-03T22:59:33.000Z | 2021-04-29T21:52:11.000Z | #ifndef MERGE_SORT_H_
#define MERGE_SORT_H_
#include <iostream>
#include <fstream>
#include <sstream>
#include <utility>
#include <thread>
#include <cstring>
#include <functional>
template <typename Type>
class MergeSort
{
private:
typedef std::function<void(const std::string)> report_callback_t;
report_cal... | 29.005988 | 96 | 0.568538 | ItsKarlito |
64699087791dd1465eeccdb7a35c098fab238824 | 9,233 | cpp | C++ | src/QtPhonemes/Phonemes/nVoiceFeature.cpp | Vladimir-Lin/QtPhonemes | 1c1b4f4aa99bbadab5ca25dce1fc64c8ee70202d | [
"MIT"
] | null | null | null | src/QtPhonemes/Phonemes/nVoiceFeature.cpp | Vladimir-Lin/QtPhonemes | 1c1b4f4aa99bbadab5ca25dce1fc64c8ee70202d | [
"MIT"
] | null | null | null | src/QtPhonemes/Phonemes/nVoiceFeature.cpp | Vladimir-Lin/QtPhonemes | 1c1b4f4aa99bbadab5ca25dce1fc64c8ee70202d | [
"MIT"
] | null | null | null | #include <qtphonemes.h>
enum {
V_NAME = 1 ,
V_LANGUAGE ,
V_GENDER ,
V_TRANSLATOR ,
V_PHONEMES ,
V_DICTIONARY ,
V_FORMANT ,
V_PITCH ,
V_ECHO ,
V_FLUTTER ,
V_ROUGHNESS ,
V_CLARITY ,
V_TONE ,
V_VOICING ,
V_BREATH... | 38.152893 | 78 | 0.326654 | Vladimir-Lin |
646bfbef46c795868be2925c38363bf8a1d8eb6d | 12,440 | cpp | C++ | Source/Components/ttn-esp32-dev/src/hal/hal_esp32.cpp | ContextQuickie/TTGO-T-Beam | 0428cd2b12914f3c59da58e113c08b7a19d72f6c | [
"Apache-2.0"
] | 6 | 2020-01-12T01:15:22.000Z | 2020-09-16T11:11:49.000Z | Source/Components/ttn-esp32-dev/src/hal/hal_esp32.cpp | ContextQuickie/TTGO-T-Beam | 0428cd2b12914f3c59da58e113c08b7a19d72f6c | [
"Apache-2.0"
] | null | null | null | Source/Components/ttn-esp32-dev/src/hal/hal_esp32.cpp | ContextQuickie/TTGO-T-Beam | 0428cd2b12914f3c59da58e113c08b7a19d72f6c | [
"Apache-2.0"
] | 2 | 2020-01-12T01:15:26.000Z | 2020-06-04T22:26:54.000Z | /*******************************************************************************
*
* ttn-esp32 - The Things Network device library for ESP-IDF / SX127x
*
* Copyright (c) 2018-2019 Manuel Bleichenbacher
*
* Licensed under MIT License
* https://opensource.org/licenses/MIT
*
* Hardware abstraction layer to run... | 25.336049 | 125 | 0.634405 | ContextQuickie |
646d04406fc159189be354eb08f5239cef0d8e9a | 919 | cpp | C++ | CodeForces/747/Servers.cpp | seeva92/Competitive-Programming | 69061c5409bb806148616fe7d86543e94bf76edd | [
"Apache-2.0"
] | null | null | null | CodeForces/747/Servers.cpp | seeva92/Competitive-Programming | 69061c5409bb806148616fe7d86543e94bf76edd | [
"Apache-2.0"
] | null | null | null | CodeForces/747/Servers.cpp | seeva92/Competitive-Programming | 69061c5409bb806148616fe7d86543e94bf76edd | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
typedef long long ll;
const int mod = 1e9 + 7;
const int MAX = 1e5 + 7;
using namespace std;
typedef vector<int> vi;
int server[107];
class Servers
{
int n, q, t, k, d;
public:
void solve() {
memset(server, 0, sizeof server);
cin >> n >> q;
for (int i = 0; i < q; i++) {
cin >> t >> k... | 19.553191 | 65 | 0.508161 | seeva92 |
646d2e1498ddee8460f419b5cd6cd15be5a62592 | 2,461 | cpp | C++ | Problem Solving Paradigm/Greedy/Classical, Usually Easier/10037.cpp | joe-stifler/uHunt | 02465ea9868403691e4f0aaa6ddde730afa11f47 | [
"MIT"
] | 3 | 2019-05-22T00:36:23.000Z | 2021-03-22T12:23:18.000Z | Problem Solving Paradigm/Greedy/Classical, Usually Easier/10037.cpp | joe-stifler/uHunt | 02465ea9868403691e4f0aaa6ddde730afa11f47 | [
"MIT"
] | null | null | null | Problem Solving Paradigm/Greedy/Classical, Usually Easier/10037.cpp | joe-stifler/uHunt | 02465ea9868403691e4f0aaa6ddde730afa11f47 | [
"MIT"
] | null | null | null | /*------------------------------------------------*/
// Uva Problem No: 10037
// Problem Name: Bridge
// Type: Classical, Usually Easier (Greedy)
// Autor: Joe Stifler
// Data: 2018-06-10 02:10:56
// Runtime: 0.000s
// Universidade: Unicamp
/*------------------------------------------------*/
#include <bits/stdc++.h>
... | 23.663462 | 53 | 0.354328 | joe-stifler |
646d6ac6da554b57f9fbf52f495fd49a166fc805 | 2,053 | cpp | C++ | user/tests/unit/tools/string.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | 1 | 2019-02-24T07:13:51.000Z | 2019-02-24T07:13:51.000Z | user/tests/unit/tools/string.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | 1 | 2018-05-29T19:27:53.000Z | 2018-05-29T19:27:53.000Z | user/tests/unit/tools/string.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null | #include "string.h"
#include "catch.h"
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/trim_all.hpp>
#include <boost/algorithm/hex.hpp>
// test::RegExpMatcher
test::RegExpMatcher::RegExpMatcher(const std::string &expr) {
try {
r_.assign(expr);
} catch (const boost::regex_error&... | 24.73494 | 85 | 0.604968 | zsoltmazlo |
647a97d00c436bf7284b0feb179637e7a10c7714 | 8,111 | cpp | C++ | src/physics/bumper.cpp | ArneDJ/terranova | 533e9e5687d464153418f73a1d811f57e7c572b9 | [
"CC0-1.0"
] | null | null | null | src/physics/bumper.cpp | ArneDJ/terranova | 533e9e5687d464153418f73a1d811f57e7c572b9 | [
"CC0-1.0"
] | null | null | null | src/physics/bumper.cpp | ArneDJ/terranova | 533e9e5687d464153418f73a1d811f57e7c572b9 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <memory>
#include <vector>
#include <glm/glm.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <glm/mat4x4.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "../geometry/transform.h"
#include "../geometry/geometry.h"
#include "physical.h"
#include "bumper.h"
namespace fysx {
cla... | 28.36014 | 167 | 0.730983 | ArneDJ |
647d7f80f6dc2b07d4806f34a1e1eb3b1bd9375c | 10,374 | cpp | C++ | modules/attention_segmentation/src/SVMTrainModel.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | modules/attention_segmentation/src/SVMTrainModel.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | modules/attention_segmentation/src/SVMTrainModel.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | /****************************************************************************
**
** Copyright (C) 2017 TU Wien, ACIN, Vision 4 Robotics (V4R) group
** Contact: v4r.acin.tuwien.ac.at
**
** This file is part of V4R
**
** V4R is distributed under dual licenses - GPLv3 or closed source.
**
** GNU General Public License Usa... | 27.737968 | 108 | 0.632639 | v4r-tuwien |
647f6feab95a24cb98315ef067c6de194d0bc65d | 1,400 | cpp | C++ | PocketNN/Main.cpp | jaewoosong/pocketnn | 68f95401e8681483f764b063a6b886967d228a7f | [
"MIT"
] | 9 | 2022-02-16T19:15:55.000Z | 2022-03-21T10:44:51.000Z | PocketNN/Main.cpp | jaewoosong/pocketnn | 68f95401e8681483f764b063a6b886967d228a7f | [
"MIT"
] | null | null | null | PocketNN/Main.cpp | jaewoosong/pocketnn | 68f95401e8681483f764b063a6b886967d228a7f | [
"MIT"
] | 1 | 2022-03-09T12:24:25.000Z | 2022-03-09T12:24:25.000Z | #include "pktnn_examples.h"
int main() {
// There are 3 examples
// 1) very simple integer BP: example_fc_int_bp_very_simple();
// 2) fc mnist integer DFA: example_fc_int_dfa_mnist();
// 3) fc fashion mnist integer DFA: example_fc_int_dfa_fashion_mnist();
// CAUTION:
// MNIST and Fashion-MNIST... | 43.75 | 110 | 0.689286 | jaewoosong |
647fa93ac7caedbb6b8d09ff15b5c2def11e1613 | 446 | cpp | C++ | d1eq.cpp | fluier/math | 626ab4f0cd92e1c0ac9f7172d80cc202100e3673 | [
"MIT"
] | null | null | null | d1eq.cpp | fluier/math | 626ab4f0cd92e1c0ac9f7172d80cc202100e3673 | [
"MIT"
] | null | null | null | d1eq.cpp | fluier/math | 626ab4f0cd92e1c0ac9f7172d80cc202100e3673 | [
"MIT"
] | null | null | null | /*
* d1eq.cpp
*
* Created on: Apr 4, 2017
* Author: constantin
*/
#include "d1eq.h"
d1eq::d1eq(float a, float b, float c):_a(a),_b(b),_c(c) {
}
d1eq::~d1eq() {
// TODO Auto-generated destructor stub
}
bool d1eq::belong(float x, float y) {
const float thresh = 0.000001;
float aux = _a*x + _b*y - _c;
... | 14.866667 | 57 | 0.589686 | fluier |
6482ac1f37f2f984af16d4dc08d678ce8b1ae9f2 | 107 | hpp | C++ | native/copy.hpp | G07cha/node-libpng | e89f4ef762e255b2c839185341e61af138956b04 | [
"MIT"
] | 20 | 2018-03-22T08:37:33.000Z | 2021-12-14T13:17:19.000Z | native/copy.hpp | G07cha/node-libpng | e89f4ef762e255b2c839185341e61af138956b04 | [
"MIT"
] | 43 | 2018-03-21T09:46:04.000Z | 2021-12-14T13:13:54.000Z | native/copy.hpp | G07cha/node-libpng | e89f4ef762e255b2c839185341e61af138956b04 | [
"MIT"
] | 8 | 2018-07-05T06:56:47.000Z | 2021-01-16T11:25:36.000Z | #ifndef COPY_HPP
#define COPY_HPP
#include <nan.h>
NAN_METHOD(copy);
NAN_MODULE_INIT(InitCopy);
#endif
| 9.727273 | 26 | 0.757009 | G07cha |
64842b87ba3bd11e3ac3f897a099165bed6567b5 | 1,322 | hpp | C++ | kernel/include/io/io.hpp | Eospp/Eospp | bc231908aaf34dfc2f790a259487253a4151be16 | [
"MIT"
] | 18 | 2022-01-21T18:19:37.000Z | 2022-03-15T05:26:32.000Z | kernel/include/io/io.hpp | Eospp/Eospp | bc231908aaf34dfc2f790a259487253a4151be16 | [
"MIT"
] | null | null | null | kernel/include/io/io.hpp | Eospp/Eospp | bc231908aaf34dfc2f790a259487253a4151be16 | [
"MIT"
] | 3 | 2022-01-22T14:24:04.000Z | 2022-02-23T10:19:11.000Z | #pragma once
#include <type.hpp>
namespace eospp::io {
inline estd::uint8_t in_byte(estd::uint16_t port) {
estd::uint8_t v;
asm volatile("inb %[v] %[port]"
: [v] "=a"(v)
: [port] "dN"(port)
: "memory");
return v;
}
inline void out_byte(estd::uint16_t _por... | 26.44 | 65 | 0.484115 | Eospp |
6485801304be1490f9b980ae1ef03f2fe9151097 | 18,463 | cpp | C++ | NavimeshExporter/src/interface.cpp | noodle1983/recastnavigation | f4804a183bb3ab3387e78d11696591651b0e6bd8 | [
"Zlib"
] | null | null | null | NavimeshExporter/src/interface.cpp | noodle1983/recastnavigation | f4804a183bb3ab3387e78d11696591651b0e6bd8 | [
"Zlib"
] | null | null | null | NavimeshExporter/src/interface.cpp | noodle1983/recastnavigation | f4804a183bb3ab3387e78d11696591651b0e6bd8 | [
"Zlib"
] | 1 | 2022-02-09T11:50:25.000Z | 2022-02-09T11:50:25.000Z | #include "interface.h"
#include "MeshParser.hpp"
using namespace nd;
#include "nd_header.h"
namespace nd{
#include "Detour/DetourCommon.h"
#include "Detour/DetourNavMesh.h"
#include "Detour/DetourNavMeshBuilder.cpp"
template<class T> inline T rcMin(T a, T b) { return a < b ? a : b; }
inline unsigned in... | 32.22164 | 125 | 0.642203 | noodle1983 |
6487238a009c9c402ee97317f3263003af34ff8b | 1,603 | cpp | C++ | PGRIsland/source/CSplineSceneNode.cpp | ngohongs/pgr-island | 48aa8e688ff1204cca51976c255ba378840b0565 | [
"CC-BY-4.0"
] | null | null | null | PGRIsland/source/CSplineSceneNode.cpp | ngohongs/pgr-island | 48aa8e688ff1204cca51976c255ba378840b0565 | [
"CC-BY-4.0"
] | null | null | null | PGRIsland/source/CSplineSceneNode.cpp | ngohongs/pgr-island | 48aa8e688ff1204cca51976c255ba378840b0565 | [
"CC-BY-4.0"
] | null | null | null | //----------------------------------------------------------------------------------------
/**
* \file CSplineSceneNode.cpp
* \author Hong Son Ngo
* \date 2021/05/05
* \brief Scene node of an object that moves along a Catmull-Rom spline
*
* Modification of a scene node for drawing a mo... | 34.106383 | 117 | 0.587648 | ngohongs |
52cd664783f2002408f0b8d6caea2520c03a1f1c | 13,299 | cpp | C++ | source/common/application.cpp | Abdelrahman-Shahda/Graphics-Project | 3d86a24d34c871a20ae2d09ad3a41a6d3621a073 | [
"MIT"
] | null | null | null | source/common/application.cpp | Abdelrahman-Shahda/Graphics-Project | 3d86a24d34c871a20ae2d09ad3a41a6d3621a073 | [
"MIT"
] | null | null | null | source/common/application.cpp | Abdelrahman-Shahda/Graphics-Project | 3d86a24d34c871a20ae2d09ad3a41a6d3621a073 | [
"MIT"
] | null | null | null | #include "application.hpp"
#include <sstream>
#include <iostream>
#include <string>
#include <iomanip>
#include <ctime>
// Include the Dear ImGui implementation headers
#define IMGUI_IMPL_OPENGL_LOADER_GLAD2
#include <imgui_impl/imgui_impl_glfw.h>
#include <imgui_impl/imgui_impl_opengl3.h>
#if !defined(NDEBUG)
// If ... | 39.936937 | 149 | 0.67366 | Abdelrahman-Shahda |
52d0f8f31cae4ba2e77ea436a36c49f554fb99ba | 12,665 | cpp | C++ | src/kirby.cpp | sarietta/kdceditor | 52069434e7945bf5651bdd497b78aa08ab168778 | [
"MIT"
] | 47 | 2015-03-08T02:34:24.000Z | 2022-02-15T00:02:25.000Z | src/kirby.cpp | sarietta/kdceditor | 52069434e7945bf5651bdd497b78aa08ab168778 | [
"MIT"
] | 7 | 2015-03-11T20:12:31.000Z | 2020-05-11T11:58:07.000Z | src/kirby.cpp | sarietta/kdceditor | 52069434e7945bf5651bdd497b78aa08ab168778 | [
"MIT"
] | 8 | 2015-03-08T13:12:08.000Z | 2022-01-10T01:38:25.000Z | /*
This code is released under the terms of the MIT license.
See COPYING.txt for details.
*/
#include "kirby.h"
#include <QString>
const int fgPaletteBase[] = {0xD4A9, 0xD8ED, 0xD8ED};
const int waterBase[][3] = {{0xA444, 0xE030, 0xE030},
{0xA46E, 0xE05A, 0xE05A}};
const int... | 33.773333 | 78 | 0.563364 | sarietta |
52d51c076b115f9530be3973503725334d1f2e78 | 428 | cpp | C++ | Dev Skill/vector.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Dev Skill/vector.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Dev Skill/vector.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
using namespace std;
int main()
{
vector <int> v;
vector <int>:: iterator it;
v.push_back(20);
v.push_back(2);
v.push_back(50);
cout<<v.size()<<endl;
for(auto x: v)
cout<<x<<endl;
so... | 17.833333 | 32 | 0.509346 | Sohelr360 |
52d6d4152980983d93ae0d34dd7adc7b0f081d3e | 5,728 | cpp | C++ | include/eigenvec_centrality.cpp | masatoshihanai/HyInfluenceMin | 40b01947e1e1785806582eb6791310aeeee3d7c5 | [
"MIT"
] | null | null | null | include/eigenvec_centrality.cpp | masatoshihanai/HyInfluenceMin | 40b01947e1e1785806582eb6791310aeeee3d7c5 | [
"MIT"
] | null | null | null | include/eigenvec_centrality.cpp | masatoshihanai/HyInfluenceMin | 40b01947e1e1785806582eb6791310aeeee3d7c5 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Masatoshi Hanai
*
* This software is released under MIT License.
* See LICENSE.
*
*/
#include "hygraph.hpp"
#include "external/Eigen/Core"
#include "external/Eigen/Dense"
#include "external/Eigen/Eigenvalues"
#include "wtime.hpp"
class EigenVectorCentrality {
public:
void getTopK(... | 31.822222 | 124 | 0.54574 | masatoshihanai |
52d75adeb5daa16d9dc557cdd2dbbb63e45668c3 | 1,089 | cpp | C++ | codeforces/A - Vasya and Petya's Game/Wrong answer on test 4.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Vasya and Petya's Game/Wrong answer on test 4.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Vasya and Petya's Game/Wrong answer on test 4.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Sep/02/2018 12:39
* solution_verdict: Wrong answer on test 4 language: GNU C++14
* run... | 27.225 | 111 | 0.380165 | kzvd4729 |
52d7c710466ec69daf41255227b15079e72792b6 | 4,108 | cpp | C++ | src/LittleCrusaderAsi/modcore/modLoader.cpp | TheRedDaemon/LittleCrusaderAsi | da98790f68422d359dc93c198e2a79ec60719007 | [
"MIT"
] | 4 | 2020-11-30T21:53:57.000Z | 2022-03-18T05:14:48.000Z | src/LittleCrusaderAsi/modcore/modLoader.cpp | TheRedDaemon/LittleCrusaderAsi | da98790f68422d359dc93c198e2a79ec60719007 | [
"MIT"
] | 3 | 2020-10-22T20:40:04.000Z | 2021-10-05T14:24:22.000Z | src/LittleCrusaderAsi/modcore/modLoader.cpp | TheRedDaemon/LittleCrusaderAsi | da98790f68422d359dc93c198e2a79ec60719007 | [
"MIT"
] | null | null | null |
#include "modLoader.h"
namespace modcore
{
ModLoader::ModLoader(HMODULE ownModule)
{
// set own Module handle
ModMan::handle = ownModule;
// will load config and what ever is required at the start
std::unordered_map<ModID, Json> modConfigs{};
try
{
std::ifstream config... | 29.553957 | 98 | 0.570837 | TheRedDaemon |
52d7c7ca54a0eea33deb1efc16581a75f216be5d | 907 | hpp | C++ | telnetpp/include/telnetpp/detail/negotiation_router.hpp | CalielOfSeptem/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | 1 | 2017-03-30T14:31:33.000Z | 2017-03-30T14:31:33.000Z | telnetpp/include/telnetpp/detail/negotiation_router.hpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null | telnetpp/include/telnetpp/detail/negotiation_router.hpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null | #pragma once
#include "telnetpp/detail/router.hpp"
#include "telnetpp/negotiation.hpp"
#include "telnetpp/element.hpp"
#include <vector>
namespace telnetpp { namespace detail {
struct negotiation_router_key_from_message_policy
{
static negotiation key_from_message(negotiation const &neg)
{
return neg... | 25.194444 | 77 | 0.597574 | CalielOfSeptem |
52d83c9b2ec6636a204b2cefb02ac76c8129cd33 | 544 | cpp | C++ | src/lib/lib_ruben/ruben.cpp | rpasquay/scratch | 6c8076f9ab208cbd60e60ceaf0223c3170312c0d | [
"MIT"
] | 5 | 2018-12-04T09:30:00.000Z | 2021-08-21T08:50:09.000Z | src/lib/lib_ruben/ruben.cpp | rpasquay/scratch | 6c8076f9ab208cbd60e60ceaf0223c3170312c0d | [
"MIT"
] | null | null | null | src/lib/lib_ruben/ruben.cpp | rpasquay/scratch | 6c8076f9ab208cbd60e60ceaf0223c3170312c0d | [
"MIT"
] | 3 | 2018-12-05T10:36:01.000Z | 2020-07-10T13:48:46.000Z | #include <sstream>
#include "scratch/lib_ruben/ruben.hpp"
#include "scratch/lib_ruben/exceptions.hpp"
scratch::ruben::Ruben::Ruben() : rubens_secret(42) {}
unsigned int scratch::ruben::Ruben::get_secrect() const {
return rubens_secret;
}
void scratch::ruben::Ruben::set_secrect(const unsigned int secret) {
ru... | 27.2 | 71 | 0.700368 | rpasquay |
52d89693da7154c6e0a7248b94cd96063e8dd01b | 9,099 | cxx | C++ | bpkg/cfg-unlink.cxx | build2/bpkg | bd939839b44d90d027517e447537dd52539269ff | [
"MIT"
] | 19 | 2018-05-30T12:01:25.000Z | 2022-01-29T21:37:23.000Z | bpkg/cfg-unlink.cxx | build2/bpkg | bd939839b44d90d027517e447537dd52539269ff | [
"MIT"
] | 2 | 2019-03-18T22:31:45.000Z | 2020-07-28T06:44:03.000Z | bpkg/cfg-unlink.cxx | build2/bpkg | bd939839b44d90d027517e447537dd52539269ff | [
"MIT"
] | 1 | 2019-02-04T02:58:14.000Z | 2019-02-04T02:58:14.000Z | // file : bpkg/cfg-unlink.cxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#include <bpkg/cfg-unlink.hxx>
#include <bpkg/package.hxx>
#include <bpkg/package-odb.hxx>
#include <bpkg/database.hxx>
#include <bpkg/diagnostics.hxx>
using namespace std;
namespace bpkg
{
static int
cfg_unlink_con... | 31.054608 | 79 | 0.560611 | build2 |
52d94feb5eca1106ba8a092a4391590ca1a176a8 | 2,490 | cpp | C++ | Solutions/Count Complete Tree Nodes/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | 1 | 2015-04-13T10:58:30.000Z | 2015-04-13T10:58:30.000Z | Solutions/Count Complete Tree Nodes/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | Solutions/Count Complete Tree Nodes/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x): val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
int countNodes(TreeNode* root) {
int level = 0;
for(TreeNode *p = root; p; level++,... | 26.489362 | 95 | 0.45743 | Crayzero |
52daa4e79485287f41e303cec8808154406be5cf | 4,235 | cpp | C++ | wled00/Effect/snowflake/Solid.cpp | mdraper81/WLED | 408696ef02f7b2dd66300a6a2ddb67a74d037b88 | [
"MIT"
] | null | null | null | wled00/Effect/snowflake/Solid.cpp | mdraper81/WLED | 408696ef02f7b2dd66300a6a2ddb67a74d037b88 | [
"MIT"
] | null | null | null | wled00/Effect/snowflake/Solid.cpp | mdraper81/WLED | 408696ef02f7b2dd66300a6a2ddb67a74d037b88 | [
"MIT"
] | null | null | null | #include "Solid.h"
namespace Effect
{
namespace Snowflake
{
/*
** ============================================================================
** Constructor
** ============================================================================
*/
Solid::Solid(NeoPixelWrapper* pixelWrapper, Data* effectData)
: B... | 37.477876 | 106 | 0.577568 | mdraper81 |
52dba18fa461cee3687767207b5b9b83251f7800 | 25,585 | hpp | C++ | include/System/Collections/ArrayList.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/System/Collections/ArrayList.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/System/Collections/ArrayList.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.ICloneable
#include "System/... | 53.976793 | 201 | 0.726715 | RedBrumbler |
52de456b0a33cf85a396d5029c3b997356632176 | 2,343 | cpp | C++ | Sources/Core/Input/InputEventHandler.cpp | VladimirBalun/RacingWorld | c7e600c5899e3ea78f50bd2f8cd915437bad7789 | [
"Apache-2.0"
] | 70 | 2019-02-02T15:43:38.000Z | 2022-03-09T13:58:27.000Z | Sources/Core/Input/InputEventHandler.cpp | VladimirBalun/RacingWorld | c7e600c5899e3ea78f50bd2f8cd915437bad7789 | [
"Apache-2.0"
] | 19 | 2019-03-27T05:57:30.000Z | 2019-07-07T16:07:05.000Z | Sources/Core/Input/InputEventHandler.cpp | VladimirBalun/RacingWorld | c7e600c5899e3ea78f50bd2f8cd915437bad7789 | [
"Apache-2.0"
] | 32 | 2019-03-07T12:22:40.000Z | 2022-03-18T01:12:56.000Z | /*
* Copyright 2018 Vladimir Balun
*
* 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 ... | 28.228916 | 132 | 0.662825 | VladimirBalun |
52e27ab59559a2c1d72582938a321ad0209f744e | 539 | hpp | C++ | src/util/timer.hpp | StuffByDavid/Base | d37713fcf48655cb49032c576a1586c135e2e83d | [
"MIT"
] | null | null | null | src/util/timer.hpp | StuffByDavid/Base | d37713fcf48655cb49032c576a1586c135e2e83d | [
"MIT"
] | null | null | null | src/util/timer.hpp | StuffByDavid/Base | d37713fcf48655cb49032c576a1586c135e2e83d | [
"MIT"
] | null | null | null | #pragma once
#include <chrono> // high_resolution_clock
namespace Base
{
class Timer
{
public:
EXPORT Timer(const string& name);
/* Timer functionality */
EXPORT void stop();
EXPORT void print() const;
EXPORT void stopAndPrint();
/* Get the time elapsed... | 20.730769 | 79 | 0.597403 | StuffByDavid |
52f655c89606cb8b53d542d8aec1dc7d4d87826a | 13,682 | cpp | C++ | src/chromecast_finder.cpp | p2004a/pulseaudio-chromecast-sink | c62d2a8defb6a5819369624351441f4c972b1b98 | [
"BSD-3-Clause"
] | 1 | 2016-06-15T15:13:43.000Z | 2016-06-15T15:13:43.000Z | src/chromecast_finder.cpp | p2004a/pulseaudio-chromecast-sink | c62d2a8defb6a5819369624351441f4c972b1b98 | [
"BSD-3-Clause"
] | null | null | null | src/chromecast_finder.cpp | p2004a/pulseaudio-chromecast-sink | c62d2a8defb6a5819369624351441f4c972b1b98 | [
"BSD-3-Clause"
] | 1 | 2019-12-24T02:43:37.000Z | 2019-12-24T02:43:37.000Z | /* chromecast_finder.cpp -- This file is part of pulseaudio-chromecast-sink
* Copyright (C) 2016 Marek Rusinowski
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the ... | 38.111421 | 100 | 0.606783 | p2004a |
52fc19fd562a3f56481bd6de6ebb572def1d146e | 6,759 | cpp | C++ | cpp/bmpshow.cpp | jerrythomas/cui-toolkit | 5b9970e3c01ec17de6a2e9922ad211b7e3ac6a94 | [
"MIT"
] | null | null | null | cpp/bmpshow.cpp | jerrythomas/cui-toolkit | 5b9970e3c01ec17de6a2e9922ad211b7e3ac6a94 | [
"MIT"
] | null | null | null | cpp/bmpshow.cpp | jerrythomas/cui-toolkit | 5b9970e3c01ec17de6a2e9922ad211b7e3ac6a94 | [
"MIT"
] | null | null | null | #include <string.h>
#include <stdio.h>
#include <pixel.h>
#include <kbd.h>
struct ColorMap
{
byte blu;
byte grn;
byte red;
byte gry;
};
struct BmpHeader
{
char Type[2]; //type of file ; must be ascii "BM"
dword Size; // Size of file
word Reserved1; //reserved fiel... | 24.578182 | 96 | 0.536322 | jerrythomas |
52fedf855cee29964159c06128a9cbbb260055d4 | 4,121 | hpp | C++ | src/fft_plan.hpp | MartinK84/riesling | 3deb01ef6ec4a03ecbd5cf694d37f20de063dbae | [
"MIT"
] | null | null | null | src/fft_plan.hpp | MartinK84/riesling | 3deb01ef6ec4a03ecbd5cf694d37f20de063dbae | [
"MIT"
] | null | null | null | src/fft_plan.hpp | MartinK84/riesling | 3deb01ef6ec4a03ecbd5cf694d37f20de063dbae | [
"MIT"
] | null | null | null | #pragma once
#include "fft_plan.h"
#include "tensorOps.h"
namespace FFT {
template <int TRank, int FRank>
Plan<TRank, FRank>::Plan(Tensor &workspace, Log &log, long const nThreads)
: dims_{workspace.dimensions()}
, log_{log}
, threaded_{nThreads > 1}
{
plan(workspace, nThreads);
}
template <int TRank,... | 27.657718 | 99 | 0.626062 | MartinK84 |
52ff3b850aa6f5584cbb5655594d55cdc14475a1 | 546 | cpp | C++ | Source/ActorPool/Private/PoolActor.cpp | Othereum/ActorPool | b5a8a874120017ddb09503fb3eafdb49e5b98363 | [
"MIT"
] | 6 | 2020-03-10T02:17:43.000Z | 2022-03-25T10:27:29.000Z | Source/ActorPool/Private/PoolActor.cpp | Othereum/ActorPool | b5a8a874120017ddb09503fb3eafdb49e5b98363 | [
"MIT"
] | null | null | null | Source/ActorPool/Private/PoolActor.cpp | Othereum/ActorPool | b5a8a874120017ddb09503fb3eafdb49e5b98363 | [
"MIT"
] | null | null | null | // Copyright 2019 Seokjin Lee. All Rights Reserved.
#include "PoolActor.h"
#include "ActorPool.h"
void APoolActor::Release(const bool bForce)
{
if (!bActivated && !bForce) return;
SetActorTickEnabled(false);
SetActorEnableCollision(false);
SetActorHiddenInGame(true);
bActivated = false;
Pool->Release(this);
On... | 21 | 51 | 0.752747 | Othereum |
5e03f7f5683221fdaf0da88c1063cbb1fe849053 | 3,898 | cpp | C++ | src/protocol/http/uri.cpp | cysme/pump | d91cfdf3e09ebca1e90f0c1395a3b3fba1158a0c | [
"Apache-2.0"
] | 2 | 2020-07-16T04:57:40.000Z | 2020-11-24T10:33:48.000Z | src/protocol/http/uri.cpp | jimi36/pump | d91cfdf3e09ebca1e90f0c1395a3b3fba1158a0c | [
"Apache-2.0"
] | 2 | 2020-12-23T09:40:16.000Z | 2021-03-03T09:49:36.000Z | src/protocol/http/uri.cpp | cysme/pump | d91cfdf3e09ebca1e90f0c1395a3b3fba1158a0c | [
"Apache-2.0"
] | 3 | 2020-11-24T10:33:35.000Z | 2021-04-19T01:53:24.000Z | /*
* Copyright (C) 2015-2018 ZhengHaiTao <ming8ren@163.com>
*
* 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... | 24.670886 | 89 | 0.485121 | cysme |
5e0515da923a93bda2aa216137c981d4fb85206b | 319 | cpp | C++ | Iniciante/URI 1013.cpp | wellmoot/UriOnlineJuge | 8b367207f4544daae81f954f53b797b8a82d2133 | [
"MIT"
] | null | null | null | Iniciante/URI 1013.cpp | wellmoot/UriOnlineJuge | 8b367207f4544daae81f954f53b797b8a82d2133 | [
"MIT"
] | null | null | null | Iniciante/URI 1013.cpp | wellmoot/UriOnlineJuge | 8b367207f4544daae81f954f53b797b8a82d2133 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
using namespace std;
int main() {
int a, b, c, maiorab, maiobc, maior;
cin >> a >> b >> c;
maiorab = (a + b + abs(a - b))/2;
maiobc = (b + c + abs(b - c))/2;
maior = (maiorab + maiobc + abs(maiorab - maiobc))/2;
cout << maior << " eh o maior" << endl;
} | 24.538462 | 57 | 0.526646 | wellmoot |
5e060af528ae5dc70e1960cc003e7edfade4e194 | 5,779 | cc | C++ | src/vt/elm/elm_id_bits.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 26 | 2019-11-26T08:36:15.000Z | 2022-02-15T17:13:21.000Z | src/vt/elm/elm_id_bits.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 1,215 | 2019-09-09T14:31:33.000Z | 2022-03-30T20:20:14.000Z | src/vt/elm/elm_id_bits.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 12 | 2019-09-08T00:03:05.000Z | 2022-02-23T21:28:35.000Z | /*
//@HEADER
// *****************************************************************************
//
// elm_id_bits.cc
// DARMA/vt => Virtual Transport
//
// Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Con... | 36.808917 | 82 | 0.725731 | rbuch |
5e06b9b826daed5b9762f2d3de78e595b74df6a1 | 1,313 | hpp | C++ | osm2pgsql/src/pgsql-helper.hpp | traitor6789/osm-tile-server | bddcfabee825c0e176d2037cad9c6cf06895beb8 | [
"Apache-2.0"
] | null | null | null | osm2pgsql/src/pgsql-helper.hpp | traitor6789/osm-tile-server | bddcfabee825c0e176d2037cad9c6cf06895beb8 | [
"Apache-2.0"
] | null | null | null | osm2pgsql/src/pgsql-helper.hpp | traitor6789/osm-tile-server | bddcfabee825c0e176d2037cad9c6cf06895beb8 | [
"Apache-2.0"
] | null | null | null | #ifndef OSM2PGSQL_PGSQL_HELPER_HPP
#define OSM2PGSQL_PGSQL_HELPER_HPP
/**
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This file is part of osm2pgsql (https://osm2pgsql.org/).
*
* Copyright (C) 2006-2022 by the osm2pgsql developer community.
* For a full list of authors see the git log.
*/
#include "osmtype... | 28.543478 | 77 | 0.647372 | traitor6789 |
5e09b2450d47e1d64e3ffd18f678a7a25bab70cf | 707 | cpp | C++ | Code/Score/Score.cpp | 4rlenrey/JumpHigh | af5f24c8b8fd2c46bb80f3b3e9755b419964d3da | [
"MIT"
] | 8 | 2020-09-23T19:32:48.000Z | 2022-01-18T16:43:47.000Z | Code/Score/Score.cpp | Haranoi17/JumpHigh | 3cd5e47fb991d828e0843cf3bfb05511d2da7f9e | [
"MIT"
] | null | null | null | Code/Score/Score.cpp | Haranoi17/JumpHigh | 3cd5e47fb991d828e0843cf3bfb05511d2da7f9e | [
"MIT"
] | 5 | 2020-09-23T19:32:51.000Z | 2022-03-11T06:18:07.000Z | #include "Score/Score.h"
#include "GameObject/GameObject.hpp"
#include <string>
#include <SFML/Graphics.hpp>
sf::Font Score::font;
Score::Score(GameObject& player, sf::View& viev)
: _playerS{player}, _viewS{viev}
{
_score = 0;
text.setString("0");
text.setFont(font);
text.setPosition(100, 500);
... | 22.806452 | 56 | 0.618105 | 4rlenrey |
5e0ab6796a85c1e80e991c232a4bdef1807a280e | 1,353 | cpp | C++ | codeforces/C - Fly/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Fly/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Fly/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jul/27/2018 15:45
* solution_verdict: Accepted language: GNU C++14
* run... | 28.787234 | 111 | 0.424242 | kzvd4729 |
5e0b663a20e9d6da64d139f638dac59a3d3933af | 1,483 | cpp | C++ | src/rewrite_pooling.cpp | pruthvistony/AMDMIGraphX | cf85b4c65d89b634fc50d586385c73839bb59bd0 | [
"MIT"
] | null | null | null | src/rewrite_pooling.cpp | pruthvistony/AMDMIGraphX | cf85b4c65d89b634fc50d586385c73839bb59bd0 | [
"MIT"
] | null | null | null | src/rewrite_pooling.cpp | pruthvistony/AMDMIGraphX | cf85b4c65d89b634fc50d586385c73839bb59bd0 | [
"MIT"
] | null | null | null | #include <migraphx/rewrite_pooling.hpp>
#include <migraphx/instruction.hpp>
#include <migraphx/iterator_for.hpp>
#include <migraphx/op/pooling.hpp>
#include <migraphx/op/reshape.hpp>
#include <migraphx/op/reduce_mean.hpp>
#include <migraphx/program.hpp>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
void ... | 32.955556 | 90 | 0.582603 | pruthvistony |
5e0bbd8b606f5f0fefed96f290e420d702ea993e | 470 | cpp | C++ | sk4d/src/c/sk4d_svgcanvas.cpp | skia4delphi/skia | 64806a3b12c226fb57d6befc4c0df5443533d220 | [
"BSD-3-Clause"
] | 5 | 2022-02-12T07:52:56.000Z | 2022-03-10T23:55:51.000Z | sk4d/src/c/sk4d_svgcanvas.cpp | skia4delphi/skia | 64806a3b12c226fb57d6befc4c0df5443533d220 | [
"BSD-3-Clause"
] | null | null | null | sk4d/src/c/sk4d_svgcanvas.cpp | skia4delphi/skia | 64806a3b12c226fb57d6befc4c0df5443533d220 | [
"BSD-3-Clause"
] | 2 | 2022-02-12T07:52:59.000Z | 2022-03-03T03:06:23.000Z | /*
* Copyright (c) 2011-2022 Google LLC.
* Copyright (c) 2021-2022 Skia4Delphi Project.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/c/sk4d_svgcanvas.h"
#include "src/c/sk4d_mapping.h"
sk_canvas_t* sk4d_svgcanvas_make(const sk_rect_... | 31.333333 | 99 | 0.738298 | skia4delphi |
5e158800f0164ed23a9b6094b72b761bd164f377 | 1,710 | cpp | C++ | examples/example3.cpp | mambaru/wjson | 48de30f1247564ab16c93fc824a14b182145ff90 | [
"MIT"
] | 21 | 2016-09-29T10:25:12.000Z | 2020-07-07T23:19:51.000Z | examples/example3.cpp | mambaru/wjson | 48de30f1247564ab16c93fc824a14b182145ff90 | [
"MIT"
] | 10 | 2016-11-17T09:09:35.000Z | 2021-10-03T11:47:18.000Z | examples/example3.cpp | mambaru/wjson | 48de30f1247564ab16c93fc824a14b182145ff90 | [
"MIT"
] | 6 | 2016-09-29T12:05:06.000Z | 2022-02-17T13:05:18.000Z | #include <wjson/json.hpp>
#include <iostream>
#include <cstring>
int main()
{
const char* english = "\"hello world!\"";
const char* russian = "\"\\u041F\\u0440\\u0438\\u0432\\u0435\\u0442\\u0020\\u043C\\u0438\\u0440\\u0021\"";
const char* chinese = "\"\\u4E16\\u754C\\u4F60\\u597D!\"";
typedef char str_t[128];... | 37.173913 | 112 | 0.615205 | mambaru |
5e15f4b108695d25722984aff32f1d1168600923 | 4,833 | cpp | C++ | src/hardware/encoders/quadraturecounter.cpp | Bormachine-Learning/embedded | 165daf847fe9c2a7bcc17c7aee4c5e28b3cf4055 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/hardware/encoders/quadraturecounter.cpp | Bormachine-Learning/embedded | 165daf847fe9c2a7bcc17c7aee4c5e28b3cf4055 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/hardware/encoders/quadraturecounter.cpp | Bormachine-Learning/embedded | 165daf847fe9c2a7bcc17c7aee4c5e28b3cf4055 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /**
Copyright 2019 Bosch Engineering Center Cluj and BFMC organizers
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 l... | 38.357143 | 178 | 0.671633 | Bormachine-Learning |
5e18d4c6e941dd29af5ab99b246c9dfd9e63beb2 | 12,511 | cpp | C++ | src/ompl/base/spaces/src/ClothoidStateSpace.cpp | tigerk0430/DesiredOrientationRRT | c62a9cf2c472380937d0a0ab379b5f9140767f51 | [
"BSD-3-Clause"
] | 2 | 2018-07-08T11:56:04.000Z | 2019-02-14T12:14:35.000Z | src/ompl/base/spaces/src/ClothoidStateSpace.cpp | edward0im/DesiredOrientationRRT | c62a9cf2c472380937d0a0ab379b5f9140767f51 | [
"BSD-3-Clause"
] | 1 | 2019-08-03T03:42:55.000Z | 2019-08-03T03:42:55.000Z | src/ompl/base/spaces/src/ClothoidStateSpace.cpp | edward0im/DesiredOrientationRRT | c62a9cf2c472380937d0a0ab379b5f9140767f51 | [
"BSD-3-Clause"
] | 2 | 2018-06-11T00:49:39.000Z | 2018-10-03T07:09:30.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | 30.002398 | 131 | 0.612101 | tigerk0430 |
5e1f2bdb10af46655c7ae0d0e833e37590f2da07 | 4,584 | cpp | C++ | archive/stan/src/test/unit/lang/generator/generate_var_type_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | archive/stan/src/test/unit/lang/generator/generate_var_type_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | archive/stan/src/test/unit/lang/generator/generate_var_type_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/lang/ast_def.cpp>
#include <stan/lang/generator.hpp>
#include <test/unit/lang/utility.hpp>
#include <gtest/gtest.h>
#include <iostream>
#include <sstream>
TEST(langGenerator, genRealVars) {
using stan::lang::scope;
using stan::lang::transformed_data_origin;
using stan::lang::function_arg... | 40.928571 | 107 | 0.701134 | alashworth |
5e2b5db8d93beff17ec7b4da13672621d6220061 | 115 | cpp | C++ | Test.cpp | KaikiasVind/CellBadger | c21adf5feec7766decfd4d89a110364d4bdfbc46 | [
"MIT"
] | null | null | null | Test.cpp | KaikiasVind/CellBadger | c21adf5feec7766decfd4d89a110364d4bdfbc46 | [
"MIT"
] | null | null | null | Test.cpp | KaikiasVind/CellBadger | c21adf5feec7766decfd4d89a110364d4bdfbc46 | [
"MIT"
] | null | null | null | #include "Test.h"
#include <QDebug>
Test::Test()
{
}
void Test::on_finished() {
qDebug() << "Finished.";
}
| 8.846154 | 28 | 0.573913 | KaikiasVind |
5e2f3a8738055071a9123ebfcca4d9e39eb96f24 | 708 | cpp | C++ | test/concurrent/test_stack_lockfree_elim_hp_stress.cpp | clearlycloudy/concurrent | 243246f3244cfaf7ffcbfc042c69980d96f988e4 | [
"MIT"
] | 9 | 2019-05-14T01:07:08.000Z | 2020-11-12T01:46:11.000Z | test/concurrent/test_stack_lockfree_elim_hp_stress.cpp | clearlycloudy/concurrent | 243246f3244cfaf7ffcbfc042c69980d96f988e4 | [
"MIT"
] | null | null | null | test/concurrent/test_stack_lockfree_elim_hp_stress.cpp | clearlycloudy/concurrent | 243246f3244cfaf7ffcbfc042c69980d96f988e4 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include <thread>
#include <vector>
#include <iostream>
#include <mutex>
#include <set>
#include "catch.hpp"
#include "stack_lockfree_elim.hpp"
#include "stress_pool.hpp"
using namespace std;
TEST_CASE( "stack_lockfree... | 30.782609 | 113 | 0.748588 | clearlycloudy |
5e308377c063b426e6c5949b3a447edd4a5a4046 | 84 | hpp | C++ | TosVolume/Utils.hpp | laoo/tcmdtos | 6aa91f2e2bfe462cda8f74b5170bc52136157915 | [
"MIT"
] | null | null | null | TosVolume/Utils.hpp | laoo/tcmdtos | 6aa91f2e2bfe462cda8f74b5170bc52136157915 | [
"MIT"
] | null | null | null | TosVolume/Utils.hpp | laoo/tcmdtos | 6aa91f2e2bfe462cda8f74b5170bc52136157915 | [
"MIT"
] | null | null | null |
void extractNameExt( std::string_view src, std::array<char, 11> & nameExt );
| 16.8 | 77 | 0.666667 | laoo |
5e35b935f136f8713a74dcdeb293837b99eebafe | 432 | cc | C++ | src/sampler/halton_sampler.cc | BlurryLight/DiRender | 1ea55ff8a10bb76993ce9990b200ee8ed173eb3e | [
"MIT"
] | 20 | 2020-06-28T03:55:40.000Z | 2022-03-08T06:00:31.000Z | src/sampler/halton_sampler.cc | BlurryLight/DiRender | 1ea55ff8a10bb76993ce9990b200ee8ed173eb3e | [
"MIT"
] | null | null | null | src/sampler/halton_sampler.cc | BlurryLight/DiRender | 1ea55ff8a10bb76993ce9990b200ee8ed173eb3e | [
"MIT"
] | 1 | 2020-06-29T08:47:21.000Z | 2020-06-29T08:47:21.000Z | //
// Created by zhong on 2021/3/30.
//
#include "halton_sampler.hh"
float DR::HaltonSampler::get_1d() { return h1.get(); }
float DR::HaltonSampler::get_1d(float min, float max) {
return (max - min) * h1.get() + min;
}
std::pair<float, float> DR::HaltonSampler::get_2d() {
return {get_1d(), get_1d()};
}
std::pair<f... | 27 | 73 | 0.659722 | BlurryLight |
5e3b8f1ef82ff88cc2daf33ed3faa50c2eabf18f | 4,800 | cpp | C++ | plugins/deadreckoningorientation/org_osvr_filter_deadreckoningrotation.cpp | ethanpeng/OSVR-Core | 59405fc1b1a25aea051dfbba0be5171fa19b8b30 | [
"Apache-2.0"
] | 369 | 2015-03-08T03:12:41.000Z | 2022-02-08T22:15:39.000Z | plugins/deadreckoningorientation/org_osvr_filter_deadreckoningrotation.cpp | ethanpeng/OSVR-Core | 59405fc1b1a25aea051dfbba0be5171fa19b8b30 | [
"Apache-2.0"
] | 486 | 2015-03-09T13:29:00.000Z | 2020-10-16T00:41:26.000Z | plugins/deadreckoningorientation/org_osvr_filter_deadreckoningrotation.cpp | ethanpeng/OSVR-Core | 59405fc1b1a25aea051dfbba0be5171fa19b8b30 | [
"Apache-2.0"
] | 166 | 2015-03-08T12:03:56.000Z | 2021-12-03T13:56:21.000Z | /** @file
@brief Analysis plugin that performs predictive tracking for the orientation
if a specified tracker and is provided a prediction interval.
@date 2016
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2016 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.... | 33.103448 | 90 | 0.66 | ethanpeng |
5e3d40285aa66f0d6d58feb9f7fcc4ac2dc511f9 | 1,046 | cpp | C++ | UnitTest/TestVoronoi.cpp | ArchRobison/Voromoeba | 608aeebd03f955a2180d05f310de6097c3df0c69 | [
"Apache-2.0"
] | null | null | null | UnitTest/TestVoronoi.cpp | ArchRobison/Voromoeba | 608aeebd03f955a2180d05f310de6097c3df0c69 | [
"Apache-2.0"
] | 1 | 2021-06-28T16:24:46.000Z | 2021-06-29T13:40:23.000Z | UnitTest/TestVoronoi.cpp | ArchRobison/Voromoeba | 608aeebd03f955a2180d05f310de6097c3df0c69 | [
"Apache-2.0"
] | null | null | null | #include "Voronoi.h"
#include "Region.h"
void TestVoronoi() {
NimblePixel pixels[100][100];
NimblePixMap window( 100, 100, 32, pixels, sizeof(pixels[100]) );
ConvexRegion r;
r.makeRectangle(Point(10,20),Point(90,80));
SetRegionClip(0,0,window.width(),window.height());
CompoundReg... | 29.055556 | 70 | 0.510516 | ArchRobison |
5e3fb88c4f84c26de00af844b0df133df3c636cd | 7,365 | hpp | C++ | src/PE/utils/ordinals_lookup_tables/comctl32_dll_lookup.hpp | mkomet/LIEF | 27547aec3314177d374293130b1fd00b4487139a | [
"Apache-2.0"
] | null | null | null | src/PE/utils/ordinals_lookup_tables/comctl32_dll_lookup.hpp | mkomet/LIEF | 27547aec3314177d374293130b1fd00b4487139a | [
"Apache-2.0"
] | null | null | null | src/PE/utils/ordinals_lookup_tables/comctl32_dll_lookup.hpp | mkomet/LIEF | 27547aec3314177d374293130b1fd00b4487139a | [
"Apache-2.0"
] | null | null | null | /* Copyright 2017 - 2021 R. Thomas
* Copyright 2017 - 2021 Quarkslab
*
* 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 req... | 40.690608 | 75 | 0.536456 | mkomet |
1e0f74496a38e7872122501fe6bf09da1fe91d49 | 10,227 | cc | C++ | src/common/chemistry/tests_unit/chemistry_activity_coefficients.cc | ajkhattak/amanzi | fed8cae6af3f9dfa5984381d34b98401c3b47655 | [
"RSA-MD"
] | 1 | 2021-02-23T18:34:47.000Z | 2021-02-23T18:34:47.000Z | src/common/chemistry/tests_unit/chemistry_activity_coefficients.cc | ajkhattak/amanzi | fed8cae6af3f9dfa5984381d34b98401c3b47655 | [
"RSA-MD"
] | null | null | null | src/common/chemistry/tests_unit/chemistry_activity_coefficients.cc | ajkhattak/amanzi | fed8cae6af3f9dfa5984381d34b98401c3b47655 | [
"RSA-MD"
] | null | null | null | #include <cstdlib>
#include <cmath>
#include <iostream>
#include <typeinfo>
#include <vector>
#include "UnitTest++.h"
#include "species.hh"
#include "aqueous_equilibrium_complex.hh"
#include "activity_model_factory.hh"
#include "activity_model_unit.hh"
#include "activity_model_debye_huckel.hh"
#include "activity_mode... | 29.387931 | 101 | 0.702748 | ajkhattak |
1e10392a08dcf5a84d92bab4b98c0f1ec3e19d67 | 10,742 | cpp | C++ | tests/Cardano/AddressTests.cpp | alicedapp/wallet-core | 532034af30cc5a8f677c7f7b0d182e8198cf698d | [
"MIT"
] | null | null | null | tests/Cardano/AddressTests.cpp | alicedapp/wallet-core | 532034af30cc5a8f677c7f7b0d182e8198cf698d | [
"MIT"
] | null | null | null | tests/Cardano/AddressTests.cpp | alicedapp/wallet-core | 532034af30cc5a8f677c7f7b0d182e8198cf698d | [
"MIT"
] | 2 | 2020-01-08T14:28:22.000Z | 2020-01-21T15:46:52.000Z | // Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Cardano/Address.h"
#include "Cardano/Signer.h"
#... | 50.196262 | 210 | 0.756191 | alicedapp |
1e1e9e92763ae05ea620dcc4d1a2933f0a45c678 | 7,886 | cpp | C++ | libnavi/src/BinderClient.cpp | rm-medina/agl-service-navigation | b9fa50ad33af4c3425d7198beaa63b783da2f62c | [
"Apache-2.0"
] | null | null | null | libnavi/src/BinderClient.cpp | rm-medina/agl-service-navigation | b9fa50ad33af4c3425d7198beaa63b783da2f62c | [
"Apache-2.0"
] | null | null | null | libnavi/src/BinderClient.cpp | rm-medina/agl-service-navigation | b9fa50ad33af4c3425d7198beaa63b783da2f62c | [
"Apache-2.0"
] | 4 | 2017-12-12T03:59:55.000Z | 2019-03-12T19:47:26.000Z | // Copyright 2017 AW SOFTWARE CO.,LTD
// Copyright 2017 AISIN AW CO.,LTD
#include <cstring>
#include "BinderClient.h"
#include "JsonRequestGenerator.h"
#include "JsonResponseAnalyzer.h"
#include "traces.h"
/**
* @brief constructor
*/
BinderClient::BinderClient() : navicoreListener(nullptr)
{
requestMng = new Re... | 24.955696 | 190 | 0.731676 | rm-medina |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.