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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
641235d287332ab2df405fc2c6b41803a0fa4fb2 | 600 | cpp | C++ | lib-src/sgcc/project/cpptesthelper.cpp | xiaomailong/prestudy | f4c53a5d568def175fbe1dc75283ed05b46d1238 | [
"MIT"
] | 2 | 2019-03-20T01:30:24.000Z | 2020-05-25T09:56:31.000Z | lib-src/sgcc/project/cpptesthelper.cpp | xiaomailong/prestudy | f4c53a5d568def175fbe1dc75283ed05b46d1238 | [
"MIT"
] | null | null | null | lib-src/sgcc/project/cpptesthelper.cpp | xiaomailong/prestudy | f4c53a5d568def175fbe1dc75283ed05b46d1238 | [
"MIT"
] | 1 | 2022-01-21T01:02:36.000Z | 2022-01-21T01:02:36.000Z | // Copyright 2012 sgcc Bolik
#include <gtest/gtest.h>
#include "cpptesthelper.h"
std::ostream& operator<<(std::ostream& os, const ObjectTestHelper& objHelper) {
objHelper.writeTo(os);
return os;
}
//TEST(Other, DefineTest) {
// int a[10];
// for (int i = 0; i < 10; i++)
// a[i] = i;... | 22.222222 | 80 | 0.548333 | xiaomailong |
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 |
641a940d040f30d58b48dd743252e18c4dde82fd | 682 | cc | C++ | ui/events/x/keyboard_hook_x11.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 | ui/events/x/keyboard_hook_x11.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 | ui/events/x/keyboard_hook_x11.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 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 "ui/events/x/keyboard_hook_x11.h"
namespace ui {
KeyboardHookX11::KeyboardHookX11(
absl::optional<base::flat_set<DomCode>> dom_codes,
g... | 29.652174 | 73 | 0.755132 | zealoussnow |
6421ef93fa801a45627238d076c5a706c03210d8 | 794 | cc | C++ | lib/sk/io/win32/AnonymousPipe.cc | stemkit-collection/stemkit-cpp | dfa77d831f49916ba6d134f407a4dcd0983328f6 | [
"MIT"
] | 4 | 2019-02-19T16:48:41.000Z | 2022-01-31T07:57:54.000Z | lib/sk/io/win32/AnonymousPipe.cc | stemkit-collection/stemkit-cpp | dfa77d831f49916ba6d134f407a4dcd0983328f6 | [
"MIT"
] | 1 | 2019-01-30T04:48:35.000Z | 2019-01-30T04:48:35.000Z | lib/sk/io/win32/AnonymousPipe.cc | stemkit-collection/stemkit-cpp | dfa77d831f49916ba6d134f407a4dcd0983328f6 | [
"MIT"
] | null | null | null | /* vi: sw=2:
* Copyright (c) 2006, Gennady Bystritsky <bystr@mac.com>
*
* Distributed under the MIT Licence.
* This is free software. See 'LICENSE' for details.
* You must read and accept the license prior to use.
*/
#include <sk/util/Class.h>
#include <sk/util/String.h>
#include <sk/util/SystemException.h... | 17.26087 | 59 | 0.700252 | stemkit-collection |
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 |
642dbd4ffe7bccee18b43176e13a58ae8311e6e0 | 44,623 | cc | C++ | test/f32-vsub.cc | khadas/android_external_XNNPACK | 5fa0858b57c36722f0ab2606c606e927b5a40448 | [
"BSD-3-Clause"
] | 40 | 2021-06-01T07:37:59.000Z | 2022-03-25T01:42:09.000Z | test/f32-vsub.cc | khadas/android_external_XNNPACK | 5fa0858b57c36722f0ab2606c606e927b5a40448 | [
"BSD-3-Clause"
] | 14 | 2021-06-01T11:52:46.000Z | 2022-03-25T02:13:08.000Z | test/f32-vsub.cc | khadas/android_external_XNNPACK | 5fa0858b57c36722f0ab2606c606e927b5a40448 | [
"BSD-3-Clause"
] | 7 | 2021-07-20T19:34:26.000Z | 2022-03-13T21:07:36.000Z | // Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
//
// Auto-generated file. Do not edit!
// Specification: test/f32-vsub.yaml
// Generator: tools/generate-vbinary-test.py
#include <gtest/gtest.h>
#i... | 33.52592 | 126 | 0.699639 | khadas |
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 |
6431c915f87e30410ac8db28838277e7ea7a2804 | 5,341 | cpp | C++ | tools/bpp-phyl/src/Bpp/Phyl/Distance/NeighborJoining.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | 2 | 2021-08-24T16:03:30.000Z | 2022-03-18T14:52:43.000Z | tools/bpp-phyl/src/Bpp/Phyl/Distance/NeighborJoining.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | tools/bpp-phyl/src/Bpp/Phyl/Distance/NeighborJoining.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | //
// File: NeighborJoining.cpp
// Created by: Julien Dutheil
// Vincent Ranwez
// Created on: Thu jun 23 10:39 2005
//
/*
Copyright or © or Copr. CNRS, (November 16, 2004)
This software is a computer program whose purpose is to provide classes
for phylogenetic data analysis.
This software is... | 33.38125 | 135 | 0.628908 | danydoerr |
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 |
6435e4fa88db25508361bbafe31959161ade016c | 3,229 | cpp | C++ | src/uint64comp.cpp | whuang022nccu/IndriLab | 24d13dca14c7c447a4acedb45d7d1ef83551f6ac | [
"Apache-2.0"
] | 2 | 2020-02-16T07:46:47.000Z | 2020-11-23T06:50:19.000Z | src/uint64comp.cpp | whuang022nccu/IndriLab | 24d13dca14c7c447a4acedb45d7d1ef83551f6ac | [
"Apache-2.0"
] | null | null | null | src/uint64comp.cpp | whuang022nccu/IndriLab | 24d13dca14c7c447a4acedb45d7d1ef83551f6ac | [
"Apache-2.0"
] | null | null | null | /*==========================================================================
* Copyright (c) 2012 University of Massachusetts. All Rights Reserved.
*
* Use of the Lemur Toolkit for Language Modeling and Information Retrieval
* is subject to the terms of the software license set forth in the LICENSE
* file include... | 33.28866 | 120 | 0.462063 | whuang022nccu |
643a20e7e28a53e113a98419609f9a9f7bd635d5 | 456 | cpp | C++ | dbms/src/Functions/log.cpp | anrodigina/ClickHouse | 7a4dc5a212ccbf8d0730db2d3fb25fc23574d803 | [
"Apache-2.0"
] | 4 | 2020-04-27T13:03:31.000Z | 2020-10-15T09:51:13.000Z | dbms/src/Functions/log.cpp | anrodigina/ClickHouse | 7a4dc5a212ccbf8d0730db2d3fb25fc23574d803 | [
"Apache-2.0"
] | 6 | 2020-01-28T22:09:09.000Z | 2021-11-10T19:39:24.000Z | dbms/src/Functions/log.cpp | anrodigina/ClickHouse | 7a4dc5a212ccbf8d0730db2d3fb25fc23574d803 | [
"Apache-2.0"
] | 2 | 2019-12-09T10:36:46.000Z | 2022-01-13T17:14:08.000Z | #include <Functions/FunctionMathUnaryFloat64.h>
#include <Functions/FunctionFactory.h>
namespace DB
{
struct LogName { static constexpr auto name = "log"; };
using FunctionLog = FunctionMathUnaryFloat64<UnaryFunctionVectorized<LogName, log>>;
void registerFunctionLog(FunctionFactory & factory)
{
factory.register... | 26.823529 | 84 | 0.789474 | anrodigina |
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 |
6440fc2cf30396e4f846a722df41dcc453dff4bf | 5,963 | hpp | C++ | runtime/cpp/src/core/Engine.hpp | DaMSL/K3 | 51749157844e76ae79dba619116fc5ad9d685643 | [
"Apache-2.0"
] | 17 | 2015-05-27T17:36:33.000Z | 2020-06-07T07:21:29.000Z | runtime/cpp/src/core/Engine.hpp | DaMSL/K3 | 51749157844e76ae79dba619116fc5ad9d685643 | [
"Apache-2.0"
] | 3 | 2015-10-02T19:37:58.000Z | 2016-01-05T18:26:48.000Z | runtime/cpp/src/core/Engine.hpp | DaMSL/K3 | 51749157844e76ae79dba619116fc5ad9d685643 | [
"Apache-2.0"
] | 6 | 2015-03-18T20:05:24.000Z | 2020-02-06T21:35:09.000Z | #ifndef K3_ENGINE
#define K3_ENGINE
#include <atomic>
#include <vector>
#include <unordered_map>
#ifdef _WIN32
#include <winsock2.h>
#endif //_WIN32
#include <spdlog/spdlog.h>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "Common.hpp"
#include "Hash.hpp"
#include "Options.hpp"
#include "network/Netw... | 30.116162 | 87 | 0.654704 | DaMSL |
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 |
644ae703913c3522fd31d9f5e3e487a917a3daa9 | 317 | hpp | C++ | sdk/FusionAPI.hpp | LB--/hSDK | 2775c5aa7150c9c09162920070aa4363b99512cb | [
"Unlicense"
] | 1 | 2021-09-18T22:50:59.000Z | 2021-09-18T22:50:59.000Z | sdk/FusionAPI.hpp | LB--/hSDK | 2775c5aa7150c9c09162920070aa4363b99512cb | [
"Unlicense"
] | null | null | null | sdk/FusionAPI.hpp | LB--/hSDK | 2775c5aa7150c9c09162920070aa4363b99512cb | [
"Unlicense"
] | null | null | null | #ifndef hSDK_FusionAPI_HeaderPlusPlus
#define hSDK_FusionAPI_HeaderPlusPlus
#include "FusionAPI/Ccxhdr.h"
#include "FusionAPI/CfcFile.h"
#include "FusionAPI/ImageFlt.h"
#include "FusionAPI/ImgFlt.h"
#include "FusionAPI/Surface.h"
#include "FusionAPI/Cncf.h"
#include "FusionAPI/Mvt.h"
#undef min
#undef max
#endif
| 19.8125 | 37 | 0.791798 | LB-- |
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 |
645595c7fcdb1c67cbdbc185f43afe6d3c3092d2 | 8,859 | cpp | C++ | src/tests/ClassPath/src/Posix.cpp | TakuKitamura/verimqtt-c | 30109f66df126e5860f2329ce2ad3cfb7f12d9da | [
"MIT"
] | null | null | null | src/tests/ClassPath/src/Posix.cpp | TakuKitamura/verimqtt-c | 30109f66df126e5860f2329ce2ad3cfb7f12d9da | [
"MIT"
] | null | null | null | src/tests/ClassPath/src/Posix.cpp | TakuKitamura/verimqtt-c | 30109f66df126e5860f2329ce2ad3cfb7f12d9da | [
"MIT"
] | null | null | null | // We need our declaration
#include "../include/Platform/Platform.hpp"
// We need locks too
#include "../include/Threading/Lock.hpp"
// We need Logger too
#include "../include/Logger/Logger.hpp"
#ifdef _POSIX
#include <termios.h>
#include <dlfcn.h>
#include <fcntl.h>
#include <syslog.h>
#include <errno.h>
#include <pw... | 29.53 | 123 | 0.545998 | TakuKitamura |
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 |
645a0446be72dd25ca73ee0770a8182841ad3bf2 | 6,938 | cpp | C++ | qtmultimedia/src/imports/audioengine/qdeclarative_audiolistener_p.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | qtmultimedia/src/imports/audioengine/qdeclarative_audiolistener_p.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | qtmultimedia/src/imports/audioengine/qdeclarative_audiolistener_p.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercial Q... | 27.863454 | 96 | 0.662871 | wgnet |
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 |
6462ae75f72b596a29bd92f2f9898cf60c57628a | 2,244 | cpp | C++ | src/osd/modules/render/bgfx/effectmanager.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | emulator/src/osd/modules/render/bgfx/effectmanager.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/osd/modules/render/bgfx/effectmanager.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
// effectmanager.cpp - BGFX shader effect manager
//
// Maintains a string-to-entry lookup of BGFX shader
// effects, defined by effect.h and read by effectreader.h
//
//=========================... | 23.621053 | 111 | 0.651515 | Robbbert |
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 |
6472fd2a607b3c66c457bb2292a0d8923da40d8e | 1,313 | hpp | C++ | spec/dummy/vendor/bundle/ruby/2.7.0/gems/sassc-2.4.0/ext/libsass/src/source_map.hpp | puzzle/nochmal | 3299efb56b77f9b0293b6ffec39b7507621888f8 | [
"MIT"
] | 2,975 | 2015-01-01T01:34:50.000Z | 2022-03-29T06:58:51.000Z | spec/dummy/vendor/bundle/ruby/2.7.0/gems/sassc-2.4.0/ext/libsass/src/source_map.hpp | puzzle/nochmal | 3299efb56b77f9b0293b6ffec39b7507621888f8 | [
"MIT"
] | 2,096 | 2015-01-01T01:48:47.000Z | 2022-02-25T08:20:47.000Z | spec/dummy/vendor/bundle/ruby/2.7.0/gems/sassc-2.4.0/ext/libsass/src/source_map.hpp | puzzle/nochmal | 3299efb56b77f9b0293b6ffec39b7507621888f8 | [
"MIT"
] | 458 | 2015-01-09T22:02:21.000Z | 2022-02-25T06:40:53.000Z | #ifndef SASS_SOURCE_MAP_H
#define SASS_SOURCE_MAP_H
#include <string>
#include <vector>
#include "ast_fwd_decl.hpp"
#include "base64vlq.hpp"
#include "position.hpp"
#include "mapping.hpp"
#include "backtrace.hpp"
#include "memory.hpp"
#define VECTOR_PUSH(vec, ins) vec.insert(vec.end(), ins.begin(), ins.end())
#defi... | 19.893939 | 80 | 0.683168 | puzzle |
64742ec8c450462c42a94dfbadbfb9c7325aebc5 | 785 | cpp | C++ | minStack.cpp | anishmo99/DailyInterviewPro | d8724e8feec558ab1882d22c9ca63b850b767753 | [
"MIT"
] | 2 | 2020-08-09T02:09:50.000Z | 2020-08-09T07:07:47.000Z | minStack.cpp | anishmo99/DailyInterviewPro | d8724e8feec558ab1882d22c9ca63b850b767753 | [
"MIT"
] | null | null | null | minStack.cpp | anishmo99/DailyInterviewPro | d8724e8feec558ab1882d22c9ca63b850b767753 | [
"MIT"
] | 5 | 2020-09-21T12:49:07.000Z | 2020-09-29T16:13:09.000Z | class MinStack
{
public:
/** initialize your data structure here. */
stack<pair<int, int>> stack;
int min = INT_MAX;
MinStack()
{
}
void push(int x)
{
if (stack.empty())
{
stack.push(make_pair(x, x));
return;
}
int min = stack.to... | 16.702128 | 66 | 0.496815 | anishmo99 |
647a663db5311d4c52dc6ef7d7ebe192729c73b7 | 1,707 | cpp | C++ | Codeforces/Gym/Helvetic_Coding_Contest_2017/pA.cpp | calee0219/CP | 911ac3671881f6b80ca5a06b7d4f97a3ccc96e50 | [
"MIT"
] | null | null | null | Codeforces/Gym/Helvetic_Coding_Contest_2017/pA.cpp | calee0219/CP | 911ac3671881f6b80ca5a06b7d4f97a3ccc96e50 | [
"MIT"
] | null | null | null | Codeforces/Gym/Helvetic_Coding_Contest_2017/pA.cpp | calee0219/CP | 911ac3671881f6b80ca5a06b7d4f97a3ccc96e50 | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <vector>
using namespace std;
int main()
{
int n, K; cin >> n >> K;
int a[88];
map<int,int> m;
set<int> v; // index
set<pair<int,int> > last; // index, end pointer
map<int,int> before; // index -> before index
map<int,int> index;
for(int i = 0... | 25.477612 | 53 | 0.310486 | calee0219 |
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 |
647fc9fe57682629ccb9a0068775f5d779d8d585 | 4,648 | cpp | C++ | 2term/Programming/3.1/31.cpp | nik-sergeson/bsuir-informatics-labs | 14805fb83b8e2324580b6253158565068595e804 | [
"Apache-2.0"
] | null | null | null | 2term/Programming/3.1/31.cpp | nik-sergeson/bsuir-informatics-labs | 14805fb83b8e2324580b6253158565068595e804 | [
"Apache-2.0"
] | null | null | null | 2term/Programming/3.1/31.cpp | nik-sergeson/bsuir-informatics-labs | 14805fb83b8e2324580b6253158565068595e804 | [
"Apache-2.0"
] | null | null | null | #include <malloc.h>
#include <stdio.h>
#include <conio.h>
#include <Windows.h>
#include <string.h>
#include <stdlib.h>
const int SLength=17;
void Menu(void);
double * AddElem(double Val,double* Mas,int *Smas);
double CurrVal(int Index,double* Mas);
double * EditMas(int ElemIndex,double Val,double* Mas);
... | 23.356784 | 142 | 0.597461 | nik-sergeson |
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 |
52c3ef9484a6c8ff8b5ad0b8fb7ce52aa659cfb6 | 386 | cpp | C++ | Lecture-6/Code/OpenHashing_Lookup.cpp | TobiOnline/AlgoDat | 565a9f03a9ed7ef354cb4f143959df77df89b726 | [
"MIT"
] | 17 | 2016-12-16T17:42:34.000Z | 2020-08-26T11:07:16.000Z | Lecture-6/Code/OpenHashing_Lookup.cpp | TobiOnline/AlgoDat | 565a9f03a9ed7ef354cb4f143959df77df89b726 | [
"MIT"
] | 23 | 2016-10-08T09:27:41.000Z | 2019-10-20T15:40:10.000Z | Lecture-6/Code/OpenHashing_Lookup.cpp | TobiOnline/AlgoDat | 565a9f03a9ed7ef354cb4f143959df77df89b726 | [
"MIT"
] | 8 | 2016-10-07T11:55:23.000Z | 2021-04-05T08:36:38.000Z | T lookup(int s)
{
int j = 0;
while (@{\color{cpp_static}t}@[(h(s) - g(s,j)) % @{\color{cpp_static}m}@]) {
if (@{\color{cpp_static}t}@[(h(s) - g(s,j)) % @{\color{cpp_static}m}@].@{\color{cpp_static}key}@ == s)
return @{\color{cpp_static}t}@[(h(s) - g(s,j)) % @{\color{cpp_static}m}@].@{\color{cpp_sta... | 29.692308 | 108 | 0.520725 | TobiOnline |
52cb71b4d2caeba832866b83be18279db8df6a62 | 8,170 | cc | C++ | test/libponyc/codegen_identity.cc | EvanHahn/ponyc | e081a64b2aa506964d32841bb646c1ca3f8f1e84 | [
"BSD-2-Clause"
] | 1 | 2021-04-19T22:56:20.000Z | 2021-04-19T22:56:20.000Z | test/libponyc/codegen_identity.cc | EvanHahn/ponyc | e081a64b2aa506964d32841bb646c1ca3f8f1e84 | [
"BSD-2-Clause"
] | null | null | null | test/libponyc/codegen_identity.cc | EvanHahn/ponyc | e081a64b2aa506964d32841bb646c1ca3f8f1e84 | [
"BSD-2-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include <platform.h>
#include "util.h"
#define TEST_COMPILE(src) DO(test_compile(src, "ir"))
class CodegenIdentityTest : public PassTest
{};
extern "C"
{
EXPORT_SYMBOL uintptr_t ptr_to_int(void* p)
{
return (uintptr_t)p;
}
}
TEST_F(CodegenIdentityTest, ObjectIsObject)
{
const cha... | 23.144476 | 80 | 0.572093 | EvanHahn |
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 |
52d14d9fa182e34f6014bd6ec6196a7f1acf16f4 | 10,301 | cpp | C++ | src/dev/btietz/multiTerrain_OC/OctahedralComplex.cpp | wvat/NTRTsim | 0443cbd542e12e23c04adf79ea0d8d003c428baa | [
"Apache-2.0"
] | 148 | 2015-01-08T22:44:00.000Z | 2022-03-19T18:42:48.000Z | src/dev/btietz/multiTerrain_OC/OctahedralComplex.cpp | wvat/NTRTsim | 0443cbd542e12e23c04adf79ea0d8d003c428baa | [
"Apache-2.0"
] | 107 | 2015-01-02T16:41:42.000Z | 2021-06-14T22:09:19.000Z | src/dev/btietz/multiTerrain_OC/OctahedralComplex.cpp | wvat/NTRTsim | 0443cbd542e12e23c04adf79ea0d8d003c428baa | [
"Apache-2.0"
] | 86 | 2015-01-06T07:02:36.000Z | 2022-02-28T17:36:14.000Z | /*
* Copyright © 2012, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use t... | 38.580524 | 148 | 0.616639 | wvat |
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 |
52d52d4e16c888fb5d98300d177d956e25587bfb | 3,091 | cpp | C++ | apps/shared/interval.cpp | VersiraSec/epsilon-cfw | d12b44c6c6668ecc14b60d8dd098ba5c230b1291 | [
"FSFAP"
] | 1,442 | 2017-08-28T19:39:45.000Z | 2022-03-30T00:56:14.000Z | apps/shared/interval.cpp | VersiraSec/epsilon-cfw | d12b44c6c6668ecc14b60d8dd098ba5c230b1291 | [
"FSFAP"
] | 1,321 | 2017-08-28T23:03:10.000Z | 2022-03-31T19:32:17.000Z | apps/shared/interval.cpp | VersiraSec/epsilon-cfw | d12b44c6c6668ecc14b60d8dd098ba5c230b1291 | [
"FSFAP"
] | 421 | 2017-08-28T22:02:39.000Z | 2022-03-28T20:52:21.000Z | #include <assert.h>
#include <cmath>
#include <poincare/print_float.h>
#include "interval.h"
#include "poincare_helpers.h"
namespace Shared {
Interval::Interval() :
m_numberOfElements(0)
{
reset();
}
int Interval::numberOfElements() {
computeElements();
return m_numberOfElements;
}
void Interval::deleteElem... | 32.197917 | 145 | 0.697509 | VersiraSec |
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 |
52dc71d923f378f329c13d74be120a145ce2082a | 2,882 | cpp | C++ | GA_lapagos/SRC/tsp/tsp_ga_threaded.cpp | drpaj12/GA_lapagos | 119a4a486e0bfe681ac640ef18b25de5f2a6076a | [
"MIT"
] | null | null | null | GA_lapagos/SRC/tsp/tsp_ga_threaded.cpp | drpaj12/GA_lapagos | 119a4a486e0bfe681ac640ef18b25de5f2a6076a | [
"MIT"
] | null | null | null | GA_lapagos/SRC/tsp/tsp_ga_threaded.cpp | drpaj12/GA_lapagos | 119a4a486e0bfe681ac640ef18b25de5f2a6076a | [
"MIT"
] | null | null | null | /*
Copyright (c) 2019 Peter Andrew Jamieson (jamieson.peter@gmail.com)
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, mo... | 30.989247 | 89 | 0.74254 | drpaj12 |
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 |
52e7f7d832b6d461e41b65a35617a71006f98794 | 4,799 | cpp | C++ | source/blender/compositor/nodes/COM_TrackPositionNode.cpp | gunslingster/CSC581-assignement1 | 39012146e142bf400c7140d90ecfd27c45b589ca | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 365 | 2015-02-10T15:10:55.000Z | 2022-03-03T15:50:51.000Z | source/blender/compositor/nodes/COM_TrackPositionNode.cpp | mmtt1998819/blender | c9c3bf983321990a6960c422e002a372c35a6f76 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 45 | 2015-01-09T15:34:20.000Z | 2021-10-05T14:44:23.000Z | source/blender/compositor/nodes/COM_TrackPositionNode.cpp | mmtt1998819/blender | c9c3bf983321990a6960c422e002a372c35a6f76 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 172 | 2015-01-25T15:16:53.000Z | 2022-01-31T08:25:36.000Z | /*
* 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 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | 42.848214 | 99 | 0.734945 | gunslingster |
52f1532e5ccc10b6720fefee80f58a572fe672a9 | 109 | cc | C++ | main.cc | DingXuefeng/sample-pybind11 | e356877e83f2e183070ba16a303cdc84b420fc1c | [
"MIT"
] | null | null | null | main.cc | DingXuefeng/sample-pybind11 | e356877e83f2e183070ba16a303cdc84b420fc1c | [
"MIT"
] | null | null | null | main.cc | DingXuefeng/sample-pybind11 | e356877e83f2e183070ba16a303cdc84b420fc1c | [
"MIT"
] | null | null | null | #include "add.h"
#include <iostream>
int main(int,char*[]) {
std::cout<<add(1,2)<<std::endl;
return 0;
}
| 15.571429 | 33 | 0.605505 | DingXuefeng |
52f180aa199856bbd1daa3cd50a319a79072faef | 2,043 | cpp | C++ | src/Interpreters/MarkTableIdentifiersVisitor.cpp | mga-chka/ClickHouse | 4fe722d1a460aea63de883299790ae8671424fae | [
"Apache-2.0"
] | 3 | 2019-06-27T08:59:08.000Z | 2021-09-03T02:38:02.000Z | src/Interpreters/MarkTableIdentifiersVisitor.cpp | mga-chka/ClickHouse | 4fe722d1a460aea63de883299790ae8671424fae | [
"Apache-2.0"
] | 1 | 2020-10-30T15:17:16.000Z | 2020-10-30T15:17:16.000Z | src/Interpreters/MarkTableIdentifiersVisitor.cpp | mga-chka/ClickHouse | 4fe722d1a460aea63de883299790ae8671424fae | [
"Apache-2.0"
] | 1 | 2021-07-19T12:07:14.000Z | 2021-07-19T12:07:14.000Z | #include <Interpreters/MarkTableIdentifiersVisitor.h>
#include <IO/WriteBufferFromOStream.h>
#include <Interpreters/IdentifierSemantic.h>
#include <Interpreters/misc.h>
#include <Parsers/ASTFunction.h>
#include <Parsers/ASTSelectQuery.h>
#include <Parsers/ASTTablesInSelectQuery.h>
namespace DB
{
bool MarkTableIdent... | 33.491803 | 101 | 0.656877 | mga-chka |
52f5a999da6a1babaef52a0761237478be0f30e9 | 578 | cpp | C++ | lectures/week2/vector.cpp | garyCC227/cs6771 | 9a632b29743848fbba22c08caf760bd0f0463a0a | [
"MIT"
] | 3 | 2020-06-30T11:06:27.000Z | 2021-12-16T05:59:45.000Z | lectures/week2/vector.cpp | garyCC227/cs6771 | 9a632b29743848fbba22c08caf760bd0f0463a0a | [
"MIT"
] | null | null | null | lectures/week2/vector.cpp | garyCC227/cs6771 | 9a632b29743848fbba22c08caf760bd0f0463a0a | [
"MIT"
] | 3 | 2020-08-02T00:21:15.000Z | 2021-08-01T10:41:07.000Z | #include <iostream>
#include <vector>
// Begin with numbers 1, 2, 3 in the list already
int main() {
// In C++17 we can omit the int if the compiler can determine the type.
std::vector<int> numbers{1, 2, 3};
int input;
while (std::cin >> input) {
numbers.push_back(input);
}
std::cout << "1st element: "... | 30.421053 | 78 | 0.577855 | garyCC227 |
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 |
5e0021af34be737bd4984952bd703be4b0ab83d1 | 13,879 | cpp | C++ | cpp-cgdk/tests/optimal_target.cpp | elsid/CodeWizards | 6c7b5df632ec3d0a26fbf9b7f5fa8a3d5e0316ca | [
"MIT"
] | null | null | null | cpp-cgdk/tests/optimal_target.cpp | elsid/CodeWizards | 6c7b5df632ec3d0a26fbf9b7f5fa8a3d5e0316ca | [
"MIT"
] | null | null | null | cpp-cgdk/tests/optimal_target.cpp | elsid/CodeWizards | 6c7b5df632ec3d0a26fbf9b7f5fa8a3d5e0316ca | [
"MIT"
] | null | null | null | #include "common.hpp"
#include <debug/output.hpp>
#include <optimal_target.hpp>
#include <gtest/gtest.h>
namespace strategy {
namespace tests {
using namespace testing;
TEST(GetTargetScore, for_me_and_enemy_wizard) {
const model::Wizard enemy(
2, // Id
1300, // X
1300, // Y
0, /... | 28.85447 | 104 | 0.53426 | elsid |
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 |
5e0739249f2e15624ab33e99eb886148fb7ebede | 224 | hpp | C++ | glm_mat_1/glm/mat1x1.hpp | xaedes/glm_mat_1 | e80e788a0704eeb62a89c399faedb770f76ea635 | [
"MIT"
] | null | null | null | glm_mat_1/glm/mat1x1.hpp | xaedes/glm_mat_1 | e80e788a0704eeb62a89c399faedb770f76ea635 | [
"MIT"
] | null | null | null | glm_mat_1/glm/mat1x1.hpp | xaedes/glm_mat_1 | e80e788a0704eeb62a89c399faedb770f76ea635 | [
"MIT"
] | null | null | null | /// @ref core
/// @file glm/mat1x1.hpp
#pragma once
#include "./ext/matrix_double1x1.hpp"
#include "./ext/matrix_double1x1_precision.hpp"
#include "./ext/matrix_float1x1.hpp"
#include "./ext/matrix_float1x1_precision.hpp"
| 22.4 | 47 | 0.745536 | xaedes |
5e0844ba5c835c32c4abf54e673058268ab71c9e | 2,989 | cpp | C++ | modules/juce_gui_basics/application/juce_Application.cpp | luzpaz/JUCE | 2b16c1b94c90d0db3072f6dc9da481a9484d0435 | [
"ISC"
] | null | null | null | modules/juce_gui_basics/application/juce_Application.cpp | luzpaz/JUCE | 2b16c1b94c90d0db3072f6dc9da481a9484d0435 | [
"ISC"
] | null | null | null | modules/juce_gui_basics/application/juce_Application.cpp | luzpaz/JUCE | 2b16c1b94c90d0db3072f6dc9da481a9484d0435 | [
"ISC"
] | null | null | null | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2022 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of... | 28.466667 | 97 | 0.587822 | luzpaz |
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 |
5e09d6c8f8c2da4ef076eff09e009e1844532213 | 4,965 | cpp | C++ | lang_service/java/com/intel/daal/data_management/data_source/data_source.cpp | h2oai/daal | d49815df3040f3872a1fdb9dc99ee86148e4494e | [
"Apache-2.0"
] | 2 | 2020-05-16T00:57:44.000Z | 2020-05-17T15:56:38.000Z | lang_service/java/com/intel/daal/data_management/data_source/data_source.cpp | afcarl/daal | d49815df3040f3872a1fdb9dc99ee86148e4494e | [
"Apache-2.0"
] | null | null | null | lang_service/java/com/intel/daal/data_management/data_source/data_source.cpp | afcarl/daal | d49815df3040f3872a1fdb9dc99ee86148e4494e | [
"Apache-2.0"
] | 3 | 2017-09-29T19:51:42.000Z | 2020-12-03T09:09:48.000Z | /* file: data_source.cpp */
/*******************************************************************************
* Copyright 2014-2017 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | 52.263158 | 138 | 0.609265 | h2oai |
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 |