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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4cd6155637fc2da4bc4aafbb230baffde2de1a1f | 571 | hpp | C++ | itickable.hpp | getopenmono/pong | f0b111bd9d24aff998e41243d333989455246520 | [
"MIT"
] | null | null | null | itickable.hpp | getopenmono/pong | f0b111bd9d24aff998e41243d333989455246520 | [
"MIT"
] | null | null | null | itickable.hpp | getopenmono/pong | f0b111bd9d24aff998e41243d333989455246520 | [
"MIT"
] | null | null | null | // This software is part of OpenMono, see http://developer.openmono.com
// Released under the MIT license, see LICENSE.txt
#ifndef pong_itickable_h
#define pong_itickable_h
#include "shared-state.hpp"
/**
* All visible objects in the game implement this interface, which only
* requires that the object can be ticked ... | 27.190476 | 78 | 0.754816 | getopenmono |
4cd8077f98e57886a24f4303f861b07392fda2c7 | 150 | cpp | C++ | src/util/time.cpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | 2 | 2017-02-28T22:41:54.000Z | 2020-02-13T20:54:55.000Z | src/util/time.cpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | null | null | null | src/util/time.cpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | null | null | null | #include <mbgl/util/time.hpp>
#include <mbgl/util/uv_detail.hpp>
namespace mbgl {
namespace util {
timestamp now() {
return uv_hrtime();
}
}
}
| 11.538462 | 34 | 0.68 | free1978 |
4cd970766e3328a97ef6e383458bd0685cba9b3b | 5,572 | cpp | C++ | qlogerr/src/logBlaster.cpp | nholthaus/logerr | 3dbf9f49a10d1f300c22adcbb03eb5716aba2873 | [
"MIT"
] | 3 | 2020-10-17T15:41:38.000Z | 2021-02-14T02:18:39.000Z | qlogerr/src/logBlaster.cpp | nholthaus/logerr | 3dbf9f49a10d1f300c22adcbb03eb5716aba2873 | [
"MIT"
] | null | null | null | qlogerr/src/logBlaster.cpp | nholthaus/logerr | 3dbf9f49a10d1f300c22adcbb03eb5716aba2873 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------------------------------------
//
// LOGERR
//
//--------------------------------------------------------------------------------------------------
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtainin... | 42.861538 | 120 | 0.384422 | nholthaus |
4cdaf172d5c59787a3fed30b4a31288c3e7a8d74 | 8,798 | cpp | C++ | pop/src/commands/FetchEmailCommand.cpp | webOS-ports/mojomail | 49358ac2878e010f5c6e3bd962f047c476c11fc3 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:20:27.000Z | 2021-01-02T08:14:23.000Z | mojomail/pop/src/commands/FetchEmailCommand.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 3 | 2019-05-11T19:17:56.000Z | 2021-11-24T16:04:36.000Z | mojomail/pop/src/commands/FetchEmailCommand.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:21:13.000Z | 2021-01-02T02:37:10.000Z | // @@@LICENSE
//
// Copyright (c) 2009-2013 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... | 30.442907 | 139 | 0.73835 | webOS-ports |
4cdb232cf55550dc35e9203912c27696145a4bb4 | 2,029 | cpp | C++ | src/meshrenderer.cpp | Sirithang/webgine | c76248fe8fe71ae4616e7b7adf66cdd873ed574a | [
"MIT"
] | 3 | 2016-04-16T14:31:41.000Z | 2018-11-06T12:06:36.000Z | src/meshrenderer.cpp | Sirithang/webgine | c76248fe8fe71ae4616e7b7adf66cdd873ed574a | [
"MIT"
] | null | null | null | src/meshrenderer.cpp | Sirithang/webgine | c76248fe8fe71ae4616e7b7adf66cdd873ed574a | [
"MIT"
] | null | null | null | #include "meshrenderer.h"
#include "vector3.h"
#include <stdio.h>
IMPLEMENT_MANAGED(MeshRenderer);
MeshRendererID meshrenderer::create(EntityID owner)
{
MeshRendererID ret = gMeshRendererManager.add();
MeshRenderer& m = getMeshRenderer(ret);
if(owner != -1)
{
m.transform = getEntity(owner)._transform;
}
else... | 21.135417 | 94 | 0.709709 | Sirithang |
4ceb6334c2f0d4876254dc3bc1f7e21a728b6cb1 | 2,115 | cpp | C++ | benchmarks/matrix_multiplication/omp.cpp | alexbriskin/taskflow | da69f8989f26f8ff7bc731dbafb2f6ce171934fc | [
"MIT"
] | 3,457 | 2018-06-09T15:36:42.000Z | 2020-06-01T22:09:25.000Z | benchmarks/matrix_multiplication/omp.cpp | alexbriskin/taskflow | da69f8989f26f8ff7bc731dbafb2f6ce171934fc | [
"MIT"
] | 146 | 2018-06-11T04:11:22.000Z | 2020-06-01T20:59:21.000Z | benchmarks/matrix_multiplication/omp.cpp | alexbriskin/taskflow | da69f8989f26f8ff7bc731dbafb2f6ce171934fc | [
"MIT"
] | 426 | 2018-06-06T18:01:16.000Z | 2020-06-01T05:26:17.000Z | #include "matrix_multiplication.hpp"
#include <omp.h>
// matrix_multiplication_omp
// reference: https://computing.llnl.gov/tutorials/openMP/samples/C/omp_mm.c
void matrix_multiplication_omp(unsigned nthreads) {
omp_set_num_threads(nthreads);
int i, j, k;
#pragma omp parallel for private(i, j)
for(i=0; i<N;... | 24.310345 | 76 | 0.519149 | alexbriskin |
4cf3a535d21e15a6f101bd7bce76f205cbd52264 | 17,035 | cpp | C++ | test/tTraceChartWidget.cpp | dbulk/ROIVert | 01c8affc4e9c94cec15563bbc74943ea66bd69f0 | [
"BSD-3-Clause"
] | null | null | null | test/tTraceChartWidget.cpp | dbulk/ROIVert | 01c8affc4e9c94cec15563bbc74943ea66bd69f0 | [
"BSD-3-Clause"
] | null | null | null | test/tTraceChartWidget.cpp | dbulk/ROIVert | 01c8affc4e9c94cec15563bbc74943ea66bd69f0 | [
"BSD-3-Clause"
] | null | null | null | #include <QMainWindow>
#include <cmath>
#include <QtTest/QtTest>
#include "tTraceChartWidget.h"
#include "widgets/TraceChartWidget.h"
#include "ChartStyle.h"
#include "opencv2/opencv.hpp"
namespace {
std::shared_ptr<TraceChartSeries> makeSeriesHelper(double xmin, double xmax, std::vector<float> yvalues, std::shar... | 37.771619 | 152 | 0.636748 | dbulk |
e0786e8c690b685a2ef440bf9c06eac8a4b4f1b7 | 1,754 | cpp | C++ | src/BFS_seq.cpp | FeLusiani/Parallel_BFS | bf5aa329a86ce2d5a3ce133516e5a2809bf42272 | [
"MIT"
] | null | null | null | src/BFS_seq.cpp | FeLusiani/Parallel_BFS | bf5aa329a86ce2d5a3ce133516e5a2809bf42272 | [
"MIT"
] | null | null | null | src/BFS_seq.cpp | FeLusiani/Parallel_BFS | bf5aa329a86ce2d5a3ce133516e5a2809bf42272 | [
"MIT"
] | null | null | null | #include <Parallel_BFS/BFS_seq.hpp>
#include <set>
#include <thread>
#include <chrono>
#include <numeric>
#include "../src/utimer.hpp"
int BFS_seq(int x, const vector<Node> &nodes)
{
unsigned long counter = 0;
vector<int> frontier{0};
frontier.reserve(nodes.size() / 2);
vector<int> next_frontier{};
... | 24.704225 | 59 | 0.559293 | FeLusiani |
e08043b2707eb73de096fd612b127feab974d601 | 16,351 | cpp | C++ | src/chainparams.cpp | MassGrid/MassGrid | 5634dda1b9997c3d230678b1b19b6af17b590a3d | [
"MIT"
] | 18 | 2018-01-31T10:02:27.000Z | 2021-04-16T14:22:31.000Z | src/chainparams.cpp | MassGrid/MassGrid | 5634dda1b9997c3d230678b1b19b6af17b590a3d | [
"MIT"
] | null | null | null | src/chainparams.cpp | MassGrid/MassGrid | 5634dda1b9997c3d230678b1b19b6af17b590a3d | [
"MIT"
] | 14 | 2018-02-11T02:07:00.000Z | 2022-03-18T10:28:06.000Z | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2017-2019 The MassGrid developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.h"
#include "... | 46.320113 | 215 | 0.6906 | MassGrid |
e08254d83fc705762801ca6314e393389a0b3313 | 8,158 | cc | C++ | cnn/training.cc | ndnlp/cnn | aad187cda88f478a915dfd436115d573c347f9ca | [
"Apache-2.0"
] | null | null | null | cnn/training.cc | ndnlp/cnn | aad187cda88f478a915dfd436115d573c347f9ca | [
"Apache-2.0"
] | null | null | null | cnn/training.cc | ndnlp/cnn | aad187cda88f478a915dfd436115d573c347f9ca | [
"Apache-2.0"
] | null | null | null | #include "cnn/training.h"
#include "cnn/gpu-ops.h"
namespace cnn {
using namespace std;
Trainer::~Trainer() {}
float Trainer::clip_gradients() {
float gscale = 1;
if (clipping_enabled) {
float gg = model->gradient_l2_norm();
if (gg > clip_threshold) {
++clips;
gscale = clip_threshold / gg;
... | 28.425087 | 121 | 0.561535 | ndnlp |
e08513bc19bce2818256ad1d49b825828a5098ff | 9,640 | hpp | C++ | include/Avocado/backend/testing/testing_helpers.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | include/Avocado/backend/testing/testing_helpers.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | include/Avocado/backend/testing/testing_helpers.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | /*
* testing_helpers.hpp
*
* Created on: Sep 13, 2020
* Author: Maciej Kozarzewski
*/
#ifndef AVOCADO_UTILS_TESTING_HELPERS_HPP_
#define AVOCADO_UTILS_TESTING_HELPERS_HPP_
#include "../backend_defs.h"
#include "wrappers.hpp"
#include <string>
namespace avocado
{
namespace backend
{
void setMasterCont... | 33.013699 | 150 | 0.735373 | AvocadoML |
e08a66c5f0126b3828706d41ffe45b98734c2cc1 | 400 | cpp | C++ | algorithms/delete-columns-to-make-sorted.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 41 | 2018-07-03T07:35:30.000Z | 2021-09-25T09:33:43.000Z | algorithms/delete-columns-to-make-sorted.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 2 | 2018-07-23T10:50:11.000Z | 2020-10-06T07:34:29.000Z | algorithms/delete-columns-to-make-sorted.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 7 | 2018-07-06T13:43:18.000Z | 2020-10-06T02:29:57.000Z | class Solution
{
public:
int minDeletionSize(vector<string>& A)
{
int result = 0;
for (int col = 0; col < A[0].length(); col++) {
for (int row = 0; row < A.size() - 1; row++) {
if (A[row][col] > A[row + 1][col]) {
result += 1;
b... | 22.222222 | 58 | 0.3675 | Chronoviser |
e08c79bf9f445a8ea0f14e4089ff589ecf06f4ab | 5,424 | cpp | C++ | src/Nazara/Widgets/DefaultWidgetTheme.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 11 | 2019-11-27T00:40:43.000Z | 2020-01-29T14:31:52.000Z | src/Nazara/Widgets/DefaultWidgetTheme.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 7 | 2019-11-27T00:29:08.000Z | 2020-01-08T18:53:39.000Z | src/Nazara/Widgets/DefaultWidgetTheme.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 7 | 2019-11-27T10:27:40.000Z | 2020-01-15T17:43:33.000Z | // Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Widgets module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Widgets/DefaultWidgetTheme.hpp>
#include <Nazara/Graphics/BasicMaterial.hpp>
#include <Nazara/Gr... | 45.966102 | 202 | 0.817478 | jayrulez |
e08e8562eea94dfd43c7163d9de1978d01819562 | 10,001 | cpp | C++ | obs-studio/UI/qt-wrappers.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/qt-wrappers.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/UI/qt-wrappers.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | /******************************************************************************
Copyright (C) 2013 by Hugh Bailey <obs.jim@gmail.com>
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, e... | 24.693827 | 80 | 0.721828 | noelemahcz |
e08f1cafd3e31cfce506114367d2ea2fe80adb43 | 236 | cpp | C++ | src/autowiring/SystemThreadPool.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | src/autowiring/SystemThreadPool.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | src/autowiring/SystemThreadPool.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 "SystemThreadPool.h"
using namespace autowiring;
SystemThreadPool::SystemThreadPool(void)
{}
SystemThreadPool::~SystemThreadPool(void)
{}
| 19.666667 | 65 | 0.771186 | CaseyCarter |
e094a2f52013c03c6b963811714185f8b24fdb22 | 1,630 | cpp | C++ | graph/bellman_ford (spfa).cpp | New2World/algorithm-template | ecef386e7d485ce0bd1e11de422be7a818239506 | [
"MIT"
] | null | null | null | graph/bellman_ford (spfa).cpp | New2World/algorithm-template | ecef386e7d485ce0bd1e11de422be7a818239506 | [
"MIT"
] | null | null | null | graph/bellman_ford (spfa).cpp | New2World/algorithm-template | ecef386e7d485ce0bd1e11de422be7a818239506 | [
"MIT"
] | null | null | null | /*
洛谷 P3385 - 负环
*/
#include <bits/stdc++.h>
#define MAXV 2005
#define MAXE 6005
#define inf 0x3f3f3f3f
using namespace std;
struct _edge {
int v, w, next;
_edge(){}
_edge(int v, int w, int next):v(v), w(w), next(next){}
};
int edges, n;
int head[MAXV];
int dis[MAXV], cnt[MAXV];
bool vis[MAXV];
_edge ... | 20.123457 | 58 | 0.398773 | New2World |
e096317ac142c3dbeee71b27c4f2b395f984f84f | 185 | cpp | C++ | src/main.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | src/main.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | src/main.cpp | AleksanderSiwek/Fluide_Engine | 12c626105b079a3dd21a3cc95b7d98342d041f5d | [
"MIT"
] | null | null | null | #include <iostream>
#include "./common/frame.hpp"
int main()
{
Frame frame;
std::cout << "hello peter!\n";
std::cout << "Frame index = " << frame.GetIndex() << std::endl;
} | 20.555556 | 67 | 0.583784 | AleksanderSiwek |
e0996f1e19cf81dd6375a52b4d420425fdbb5a8d | 14,670 | cpp | C++ | src/gbGraphics/Renderer.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | src/gbGraphics/Renderer.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | src/gbGraphics/Renderer.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | #include <gbGraphics/Renderer.hpp>
#include <gbGraphics/CommandPoolRegistry.hpp>
#include <gbGraphics/Exceptions.hpp>
#include <gbGraphics/GraphicsInstance.hpp>
#include <gbGraphics/Image2d.hpp>
#include <gbGraphics/Program.hpp>
#include <gbGraphics/Window.hpp>
#include <gbVk/CommandBuffer.hpp>
#include <gbVk/Excepti... | 47.785016 | 119 | 0.728289 | ComicSansMS |
e099947be9049bee63d6d8bfc16f75245d190291 | 15,778 | cpp | C++ | Benchmarks/Serial_code/srad/srad_v1/main.cpp | HPCCS/XAPR | 0dbd0c064ca1b858be065aef00a5260d46a60d06 | [
"MIT"
] | null | null | null | Benchmarks/Serial_code/srad/srad_v1/main.cpp | HPCCS/XAPR | 0dbd0c064ca1b858be065aef00a5260d46a60d06 | [
"MIT"
] | null | null | null | Benchmarks/Serial_code/srad/srad_v1/main.cpp | HPCCS/XAPR | 0dbd0c064ca1b858be065aef00a5260d46a60d06 | [
"MIT"
] | null | null | null | //====================================================================================================100
// UPDATE
//====================================================================================================100
// 2006.03 Rob Janiczek
// --creation of prototype version
// 2006.03 Drew Gill... | 39.743073 | 149 | 0.448219 | HPCCS |
e09dbbdcdc2f01026c62c1abf1178438052b400d | 312,486 | cpp | C++ | App/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs64.cpp | JBrentJ/MRDL_Unity_Surfaces | 155c97eb7803af90ef1b7e95dfe7969694507575 | [
"MIT"
] | null | null | null | App/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs64.cpp | JBrentJ/MRDL_Unity_Surfaces | 155c97eb7803af90ef1b7e95dfe7969694507575 | [
"MIT"
] | null | null | null | App/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs64.cpp | JBrentJ/MRDL_Unity_Surfaces | 155c97eb7803af90ef1b7e95dfe7969694507575 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.IDictionary`2<UnityEngine.UI.Graphic,System.Int32>
struct IDictionary_2_t5090CA4C4371A10E20C400FE... | 50.539544 | 432 | 0.836649 | JBrentJ |
e09e14ae609c62d2934946f9f2d2b8a22d9e074b | 1,511 | hpp | C++ | runtime/include/cloe/utility/std_extensions.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 20 | 2020-07-07T18:28:35.000Z | 2022-03-21T04:35:28.000Z | runtime/include/cloe/utility/std_extensions.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 46 | 2021-01-20T10:13:09.000Z | 2022-03-29T12:27:19.000Z | runtime/include/cloe/utility/std_extensions.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 12 | 2021-01-25T08:01:24.000Z | 2021-07-27T10:09:53.000Z | /*
* Copyright 2020 Robert Bosch GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 27.981481 | 83 | 0.717406 | Sidharth-S-S |
e0a5b95c43991d01c16a814fb5da558fe1aa1535 | 1,066 | cpp | C++ | 0300/70/376b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0300/70/376b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0300/70/376b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <vector>
void answer(unsigned v)
{
std::cout << v << '\n';
}
void solve(std::vector<std::vector<unsigned>>& c, std::vector<std::vector<unsigned>>& d)
{
const size_t n = c.size();
for (size_t i = 0; i < n; ++i) {
for (size_t j = 0; j < n; ++j) {
for (size_t... | 20.113208 | 102 | 0.395872 | actium |
e0ae06e96bd09a83737f5cde9d9baeb929f5fbed | 1,456 | hpp | C++ | miopengemm/include/miopengemm/findparams.hpp | pruthvistony/MIOpenGEMM | 8f844e134d54244a6138504a4190486d8702e8fd | [
"MIT"
] | 52 | 2017-06-30T06:45:19.000Z | 2021-11-04T01:53:48.000Z | miopengemm/include/miopengemm/findparams.hpp | pruthvistony/MIOpenGEMM | 8f844e134d54244a6138504a4190486d8702e8fd | [
"MIT"
] | 31 | 2017-08-01T03:17:25.000Z | 2022-03-22T18:19:41.000Z | miopengemm/include/miopengemm/findparams.hpp | pruthvistony/MIOpenGEMM | 8f844e134d54244a6138504a4190486d8702e8fd | [
"MIT"
] | 23 | 2017-07-17T02:09:17.000Z | 2021-11-10T00:38:19.000Z | /*******************************************************************************
* Copyright (C) 2017 Advanced Micro Devices, Inc. All rights reserved.
*******************************************************************************/
#ifndef GUARD_MIOPENGEMM_FINDPARAMS_HPP
#define GUARD_MIOPENGEMM_FINDPARAMS_HPP
#inc... | 25.103448 | 81 | 0.619505 | pruthvistony |
e0b5f2e277853f23a47ae0f36805b650aeb07a65 | 3,986 | hpp | C++ | include/native/helper/trace.hpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 16 | 2016-03-16T22:16:18.000Z | 2021-04-05T04:46:38.000Z | include/native/helper/trace.hpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 11 | 2016-03-16T22:02:26.000Z | 2021-04-04T02:20:51.000Z | include/native/helper/trace.hpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 5 | 2016-03-22T14:03:34.000Z | 2021-01-06T18:08:46.000Z | #ifndef __NATIVE_HELPER_TRACE_HPP__
#define __NATIVE_HELPER_TRACE_HPP__
#include <iostream>
#include <sstream>
#include <stdexcept>
#define NNATIVE_INFO(log) std::cout << __FILE__ << ":" << __LINE__ << " (INFO): " << log << "\n";
#define PROMISE_REJECT(promise, msg) ... | 46.894118 | 120 | 0.413949 | nodenative |
e0b5fc1bd5e9a7de3744a2ca413bd67df684e558 | 5,108 | cpp | C++ | src/libzerocoin/PubcoinSignature.cpp | jskitty-repos/veil | 075f51693a5ac39e4c8bf22a9f12cd851fb29a1c | [
"MIT"
] | 124 | 2018-12-25T00:01:18.000Z | 2021-12-26T19:38:43.000Z | src/libzerocoin/PubcoinSignature.cpp | MatWaller/veil | 072cc3a63bda5f0c47c09cdc74635ee3bc68e160 | [
"MIT"
] | 702 | 2018-12-16T18:07:18.000Z | 2022-03-18T16:52:14.000Z | src/libzerocoin/PubcoinSignature.cpp | MatWaller/veil | 072cc3a63bda5f0c47c09cdc74635ee3bc68e160 | [
"MIT"
] | 151 | 2018-12-13T07:33:34.000Z | 2022-01-29T11:35:23.000Z | /**
* @file PubcoinSignature.cpp
*
* @brief De-anonymize zerocoins for times that the integrity of the accumulators or related libzerocoin zkp's are broken.
*
* @author presstab https://github.com/presstab, random-zebra https://github.com/random-zebra
* @date April 2019
*
* @copyright Copyright 20... | 37.837037 | 158 | 0.649765 | jskitty-repos |
e0bcadff81bbf209880ba8e97c26bee6cb652e5a | 220 | cpp | C++ | chapter-13/13.50.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-13/13.50.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-13/13.50.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // When the vector<String> object does not have enough space and then processes memory reallocation, it would use move constructor instead of copy constructor of String type during the reallocation of original elements.
| 110 | 219 | 0.822727 | zero4drift |
e0bf45b25c31b20894960583a23ba34345dd005b | 1,021 | cpp | C++ | NativeLibraries/StarskyMain/StarskyMain/Dx/D3dStructWrappers.cpp | sssr33/Starsky | 2be4e0d9305adc2a3c4ac644b5f3d3a6f21614c6 | [
"MIT"
] | null | null | null | NativeLibraries/StarskyMain/StarskyMain/Dx/D3dStructWrappers.cpp | sssr33/Starsky | 2be4e0d9305adc2a3c4ac644b5f3d3a6f21614c6 | [
"MIT"
] | null | null | null | NativeLibraries/StarskyMain/StarskyMain/Dx/D3dStructWrappers.cpp | sssr33/Starsky | 2be4e0d9305adc2a3c4ac644b5f3d3a6f21614c6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "D3dStructWrappers.h"
WD3D11_SAMPLER_DESC::WD3D11_SAMPLER_DESC() {
this->Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;
this->AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;
this->AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;
this->AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;
this->MinLOD = -FLT_MAX;
this->Max... | 34.033333 | 63 | 0.757101 | sssr33 |
e0c1075723abd5256e0d42e099fefe95ec613239 | 4,890 | cpp | C++ | src/Miner/Miner.cpp | JacopoDT/numerare-core | a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f | [
"MIT-0"
] | null | null | null | src/Miner/Miner.cpp | JacopoDT/numerare-core | a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f | [
"MIT-0"
] | null | null | null | src/Miner/Miner.cpp | JacopoDT/numerare-core | a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f | [
"MIT-0"
] | null | null | null | /***
MIT License
Copyright (c) 2018 NUMERARE
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... | 30.185185 | 175 | 0.714928 | JacopoDT |
e0c1e3d29163b99c6b187ec78ac6723d70324337 | 1,209 | cpp | C++ | game/server/Angelscript/ScriptAPI/ASEffects.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 83 | 2016-06-10T20:49:23.000Z | 2022-02-13T18:05:11.000Z | game/server/Angelscript/ScriptAPI/ASEffects.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 26 | 2016-06-16T22:27:24.000Z | 2019-04-30T19:25:51.000Z | game/server/Angelscript/ScriptAPI/ASEffects.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 58 | 2016-06-10T23:52:33.000Z | 2021-12-30T02:30:50.000Z | #include <string>
#include <angelscript.h>
#include "extdll.h"
#include "util.h"
#include "ASEffects.h"
namespace Effects
{
void LightStyle( int iStyle, const std::string& szValue )
{
if( iStyle < 0 || iStyle >= MAX_LIGHTSTYLES )
{
Alert( at_warning, "Effects::LightStyle: Style index \"%d\" out of range [ 0, %d... | 27.477273 | 123 | 0.740281 | HLSources |
e0c1e470074d1dbfe4e01316e5a9bafb47b7a0a5 | 849 | hpp | C++ | android-28/android/hardware/SensorDirectChannel.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/hardware/SensorDirectChannel.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/hardware/SensorDirectChannel.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"
namespace android::hardware
{
class Sensor;
}
namespace android::hardware
{
class SensorManager;
}
namespace android::hardware
{
class SensorDirectChannel : public JObject
{
public:
// Fields
static jint RATE_FAST();
static jint RATE_NORMAL();
static jint RATE_S... | 21.225 | 160 | 0.713781 | YJBeetle |
e0d09ba2c574650cab87a524d00e7caadd09c1be | 11,926 | cpp | C++ | gef_abertay/graphics/scene.cpp | LadyVolk/FinalGameCMP208 | abb5cc3fa48b5fb1238ac092960a4f5ef99aa770 | [
"MIT"
] | null | null | null | gef_abertay/graphics/scene.cpp | LadyVolk/FinalGameCMP208 | abb5cc3fa48b5fb1238ac092960a4f5ef99aa770 | [
"MIT"
] | null | null | null | gef_abertay/graphics/scene.cpp | LadyVolk/FinalGameCMP208 | abb5cc3fa48b5fb1238ac092960a4f5ef99aa770 | [
"MIT"
] | null | null | null | #include <graphics/scene.h>
#include <graphics/mesh.h>
#include <graphics/mesh_data.h>
#include <graphics/texture.h>
#include <animation/skeleton.h>
#include <animation/animation.h>
#include <system/platform.h>
#include <graphics/image_data.h>
#include <assets/png_loader.h>
#include <graphics/material.h>
#include <sys... | 30.501279 | 166 | 0.702415 | LadyVolk |
e0d149acb76247d6dea93c2f9ddbdc8bdb39792d | 14,945 | cpp | C++ | chapter07/ch07_calculator.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 124 | 2018-06-23T10:16:56.000Z | 2022-03-19T15:16:12.000Z | chapter07/ch07_calculator.cpp | therootfolder/stroustrup-ppp | b1e936c9a67b9205fdc9712c42496b45200514e2 | [
"MIT"
] | 23 | 2018-02-08T20:57:46.000Z | 2021-10-08T13:58:29.000Z | chapter07/ch07_calculator.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 65 | 2019-05-27T03:05:56.000Z | 2022-03-26T03:43:05.000Z | //
// Stroustrup - Programming Principles & Practice
//
// Chapter 7 - Simple Calculator
//
// Drill - adds sqrt and pow funcitonality
// Ex 2 - allows underscores in variable names
// Ex 3 - provides constant variabls
// Ex 4 - moves Variable related functions to Symbol_table class
// Ex 5 - Token_stream reads \n as p... | 26.831239 | 79 | 0.486852 | ClassAteam |
e0d17b5e856c41f3c85eed9cbc1cf0389de98077 | 9,040 | hpp | C++ | src/core/callers/cancer_caller.hpp | alimanfoo/octopus | f3cc3f567f02fafe33f5a06e5be693d6ea985ee3 | [
"MIT"
] | 1 | 2018-08-21T23:34:28.000Z | 2018-08-21T23:34:28.000Z | src/core/callers/cancer_caller.hpp | alimanfoo/octopus | f3cc3f567f02fafe33f5a06e5be693d6ea985ee3 | [
"MIT"
] | null | null | null | src/core/callers/cancer_caller.hpp | alimanfoo/octopus | f3cc3f567f02fafe33f5a06e5be693d6ea985ee3 | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2018 Daniel Cooke
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#ifndef cancer_caller_hpp
#define cancer_caller_hpp
#include <vector>
#include <unordered_map>
#include <memory>
#include <functional>
#include <typeindex>
#include <boost/optional... | 45.2 | 139 | 0.746792 | alimanfoo |
e0d322d26991dcf615faf886372c7c5d821278a4 | 536 | cpp | C++ | flite/src/synthcommon/utt_utils.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 7 | 2017-12-10T23:02:22.000Z | 2021-08-05T21:12:11.000Z | flite/src/synthcommon/utt_utils.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | null | null | null | flite/src/synthcommon/utt_utils.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 3 | 2018-10-28T03:47:09.000Z | 2020-06-04T08:54:23.000Z | #include "flite/synthcommon/utt_utils.hpp"
cst_wave* utt_wave(cst_utterance* u)
{
if (u)
return val_wave(feat_val(u->features, "wave"));
else
return 0;
}
int utt_set_wave(cst_utterance* u, cst_wave* w)
{
feat_set(u->features, "wave", wave_val(w));
return 0;
}
const char* utt_input_tex... | 19.851852 | 59 | 0.675373 | Barath-Kannan |
e0d4c20bb3cd7196f79e0e29ec9a9fb3dafc818b | 1,400 | cpp | C++ | N0289-Game-of-Life/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0289-Game-of-Life/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0289-Game-of-Life/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | class Solution {
public:
void gameOfLife(vector<vector<int>>& board) {
int neighbors[3] = {0, 1, -1};
int rows = board.size();
int cols = board[0].size();
vector<vector<int>> copyBoard(rows, vector<int>(cols, 0));
for(int i = 0; i < rows; ++i){
for(int j = 0; j... | 31.111111 | 105 | 0.336429 | loyio |
e0de6a6f493af66a115fbbca34c3b8071981129a | 7,136 | cpp | C++ | src/apg.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | null | null | null | src/apg.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | null | null | null | src/apg.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | 2 | 2017-08-01T22:01:45.000Z | 2018-10-13T09:06:04.000Z | #include "iers2010.hpp"
/**
* @details This subroutine determines the asymmetric delay d in meters caused
* by gradients. The north and east gradients are also provided.
* They are based on Spherical Harmonics up to degree and order 9.
* If the north and east gradients are used, the... | 41.730994 | 80 | 0.548487 | whulizhen |
e0df83db432b1feb811ef98d8cdd73eadefae4a5 | 34,336 | cpp | C++ | Lib/Shared/Edif.General.cpp | kapigames/NoiseExtension | e3ce550a61f33eea4c71a050c610986ac51e3e8e | [
"MIT"
] | 2 | 2021-12-10T17:58:33.000Z | 2022-01-03T10:30:16.000Z | Lib/Shared/Edif.General.cpp | kapigames/NoiseExtension | e3ce550a61f33eea4c71a050c610986ac51e3e8e | [
"MIT"
] | 1 | 2021-12-17T21:25:14.000Z | 2021-12-17T21:25:14.000Z | Lib/Shared/Edif.General.cpp | kapigames/NoiseExtension | e3ce550a61f33eea4c71a050c610986ac51e3e8e | [
"MIT"
] | null | null | null | // ============================================================================
// Edif General:
// The following routines are used internally by Fusion, and should not need to
// be modified.
// ============================================================================
#include "Common.h"
#include "DarkEdif.h"
#if... | 34.717897 | 196 | 0.70445 | kapigames |
e0e0326b8e88fbe029704df6b7d9dc156f55ce51 | 1,068 | cpp | C++ | FPSLighting/Dependencies/DIRECTX/Utilities/Source/Sas/stdafx.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | 4 | 2019-12-09T05:28:04.000Z | 2021-02-18T14:05:09.000Z | FPSLighting/Dependencies/DIRECTX/Utilities/Source/Sas/stdafx.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | null | null | null | FPSLighting/Dependencies/DIRECTX/Utilities/Source/Sas/stdafx.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | 3 | 2018-10-22T11:45:38.000Z | 2020-04-24T19:52:47.000Z | //--------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "stdafx.h"
void WCharToWString( const WCHAR* source, std::wstring& dest... | 18.101695 | 88 | 0.514045 | billionare |
e0ea8b5b01f63dfd10394f0d39e0a8d94d9b14d5 | 508 | cpp | C++ | AtCoder/ABC125/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ABC125/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ABC125/b.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int n;
cin >> n;
vector<int> v(n), c(n);
rep(i, n) cin >> v[i];
rep(i, n) cin >> c[i];
int ans = 0;
for (int bit = 0; bit < (1 << n); ++bit) {
in... | 17.517241 | 47 | 0.425197 | Takumi1122 |
e0eb150b8316e273ce6b4d734e2898eb11eeb905 | 114 | cpp | C++ | 07_class_multiples/shooter.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-rdawson210 | 04d3f6b7cf8313fb0e08f9e18b760ddce097fee8 | [
"MIT"
] | null | null | null | 07_class_multiples/shooter.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-rdawson210 | 04d3f6b7cf8313fb0e08f9e18b760ddce097fee8 | [
"MIT"
] | null | null | null | 07_class_multiples/shooter.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-rdawson210 | 04d3f6b7cf8313fb0e08f9e18b760ddce097fee8 | [
"MIT"
] | null | null | null | #include "shooter.h"
Roll Shooter::shoot(Die & d1, Die & d2)
{
Roll game(d1, d2);
game.roll();
return game;
}
| 12.666667 | 39 | 0.622807 | acc-cosc-1337-spring-2019 |
e0ee7e5787f6e47fc5429ab26cc97790f25e900a | 5,883 | cpp | C++ | thirdparty/DecompROS/decomp_ros_utils/src/polyhedron_array_display.cpp | shubham-shahh/mader | 7cbe46438b348a1ad9545146734083d0b6436bd4 | [
"BSD-3-Clause"
] | 489 | 2020-03-19T15:48:17.000Z | 2022-03-31T08:22:55.000Z | thirdparty/DecompROS/decomp_ros_utils/src/polyhedron_array_display.cpp | shubham-shahh/mader | 7cbe46438b348a1ad9545146734083d0b6436bd4 | [
"BSD-3-Clause"
] | 37 | 2020-05-08T13:51:32.000Z | 2022-02-16T07:43:21.000Z | thirdparty/DecompROS/decomp_ros_utils/src/polyhedron_array_display.cpp | shubham-shahh/mader | 7cbe46438b348a1ad9545146734083d0b6436bd4 | [
"BSD-3-Clause"
] | 116 | 2020-03-19T20:37:44.000Z | 2022-03-30T03:51:21.000Z | #include "polyhedron_array_display.h"
namespace decomp_rviz_plugins {
PolyhedronArrayDisplay::PolyhedronArrayDisplay() {
mesh_color_property_ =
new rviz::ColorProperty("MeshColor", QColor(0, 170, 255), "Mesh color.",
this, SLOT(updateMeshColorAndAlpha()));
bound_color_property_... | 31.459893 | 100 | 0.703383 | shubham-shahh |
e0f8f0dc7c57c6afd4d0e07602681e3c1c61dbeb | 4,725 | hpp | C++ | Sources/ParameterSpaces/b_spline_basis_function.hpp | j042/SplineLib | db92df816b9af44f2d4f4275897f9ed3341a6646 | [
"MIT"
] | null | null | null | Sources/ParameterSpaces/b_spline_basis_function.hpp | j042/SplineLib | db92df816b9af44f2d4f4275897f9ed3341a6646 | [
"MIT"
] | null | null | null | Sources/ParameterSpaces/b_spline_basis_function.hpp | j042/SplineLib | db92df816b9af44f2d4f4275897f9ed3341a6646 | [
"MIT"
] | null | null | null | /* Copyright (c) 2018–2021 SplineLib
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, ... | 55.588235 | 120 | 0.773122 | j042 |
803d6b1ca16ab147a4f4264f3eb90e79c117f22e | 2,131 | cpp | C++ | mockcpp/src/TypelessConstraintAdapter.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | 1 | 2020-02-06T07:10:19.000Z | 2020-02-06T07:10:19.000Z | mockcpp/src/TypelessConstraintAdapter.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | null | null | null | mockcpp/src/TypelessConstraintAdapter.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | null | null | null | /***
mockcpp is a generic C/C++ mock framework.
Copyright (C) <2009> <Darwin Yuan: darwin.yuan@gmail.com>
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 ... | 29.597222 | 76 | 0.602065 | danncy |
803f55a16f408b27b74d9a9bbc2bff44b2b0ebf6 | 1,403 | cpp | C++ | src/CustomThrow.cpp | terickson87/CustomThrow | 542c727cef75c96da57f6cfc2df8eed6ca40ae9e | [
"MIT"
] | null | null | null | src/CustomThrow.cpp | terickson87/CustomThrow | 542c727cef75c96da57f6cfc2df8eed6ca40ae9e | [
"MIT"
] | null | null | null | src/CustomThrow.cpp | terickson87/CustomThrow | 542c727cef75c96da57f6cfc2df8eed6ca40ae9e | [
"MIT"
] | null | null | null |
#include "CustomThrow.h"
CustomThrow::CustomThrow(const std::string& message, const std::string& fileName, unsigned int fileLineNumber)
: m_Message(message), m_FileName(fileName), m_FileLineNumber(fileLineNumber), m_FullMessage("") {
this->buildFullMessage();
}
CustomThrow::CustomThrow(const char* message, con... | 40.085714 | 110 | 0.736279 | terickson87 |
804018b7775d227c70f5f2af8ac6d14eac796ee1 | 495 | cpp | C++ | src/dioptre/keyboard/handlers/toggle_debug.cpp | tobscher/rts | 7f30faf6a13d309e4db828be8be3c05d28c05364 | [
"MIT"
] | 2 | 2015-05-14T16:07:30.000Z | 2015-07-27T21:08:48.000Z | src/dioptre/keyboard/handlers/toggle_debug.cpp | tobscher/rts | 7f30faf6a13d309e4db828be8be3c05d28c05364 | [
"MIT"
] | null | null | null | src/dioptre/keyboard/handlers/toggle_debug.cpp | tobscher/rts | 7f30faf6a13d309e4db828be8be3c05d28c05364 | [
"MIT"
] | null | null | null | #include "dioptre/keyboard/handlers/toggle_debug.h"
#include "dioptre/locator.h"
#include "dioptre/keyboard/keys.h"
namespace dioptre {
namespace keyboard {
namespace handlers {
dioptre::keyboard::Key ToggleDebug::handles() {
return dioptre::keyboard::KEY_D;
}
void ToggleDebug::update() {
auto physics =
di... | 20.625 | 72 | 0.715152 | tobscher |
80414079621538b5fd8948bf0a13bfa4c5831ccc | 3,705 | cpp | C++ | fastflow/tests/test_ofarm.cpp | robzan8/prefixsum | 5be9ae17473a3dd06406f614e6515c31ac68a219 | [
"MIT"
] | 2 | 2017-11-09T11:32:14.000Z | 2021-09-12T20:26:36.000Z | fastflow/tests/test_ofarm.cpp | robzan8/prefixsum | 5be9ae17473a3dd06406f614e6515c31ac68a219 | [
"MIT"
] | null | null | null | fastflow/tests/test_ofarm.cpp | robzan8/prefixsum | 5be9ae17473a3dd06406f614e6515c31ac68a219 | [
"MIT"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* ***************************************************************************
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by ... | 27.043796 | 98 | 0.546289 | robzan8 |
8046d814225032655eff98b65bd7c499539e10af | 2,290 | hh | C++ | src/device/timer.hh | othieno/invaders | 89cb19d8d305943897530e636e0ba69b8c2ad8d6 | [
"MIT"
] | null | null | null | src/device/timer.hh | othieno/invaders | 89cb19d8d305943897530e636e0ba69b8c2ad8d6 | [
"MIT"
] | null | null | null | src/device/timer.hh | othieno/invaders | 89cb19d8d305943897530e636e0ba69b8c2ad8d6 | [
"MIT"
] | null | null | null | /*
* This file is part of the Space Invaders clone project.
* https://github.com/othieno/invaders
*
* Copyright (c) 2016 Jeremy Othieno.
*
* The MIT License (MIT)
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... | 32.253521 | 98 | 0.734934 | othieno |
804d793560b541fcb2452448b6cd1e33c00042f5 | 6,032 | cc | C++ | iree/base/dynamic_library_win32.cc | 3alireza32109/iree | fd32e47b1695f105d20c06b8b20a29ef65c5e54c | [
"Apache-2.0"
] | 2 | 2021-10-03T15:58:09.000Z | 2021-11-17T10:34:35.000Z | iree/base/dynamic_library_win32.cc | 3alireza32109/iree | fd32e47b1695f105d20c06b8b20a29ef65c5e54c | [
"Apache-2.0"
] | null | null | null | iree/base/dynamic_library_win32.cc | 3alireza32109/iree | fd32e47b1695f105d20c06b8b20a29ef65c5e54c | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 37.465839 | 80 | 0.706233 | 3alireza32109 |
804e1d28dc4634b129850c1120594c76640aa6f9 | 770 | hpp | C++ | Deitel/Chapter13/exercises/13.16/SavingsAccount.hpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Deitel/Chapter13/exercises/13.16/SavingsAccount.hpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Deitel/Chapter13/exercises/13.16/SavingsAccount.hpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | /*
* =====================================================================================
*
* Filename: SavingsAccount.hpp
*
* Description: Exercise 12.10 - Account Inheritance Hierarchy
*
* Version: 1.0
* Created: 24/07/16 20:27:54
* Revision: none
* Compiler: gcc
*... | 22.647059 | 88 | 0.480519 | SebastianTirado |
804f874a6c67bc61047e95b341f9589d0da4ff42 | 5,699 | cpp | C++ | framework/src/minko/component/Camera.cpp | aerys/minko | edc3806a4e01570c5cb21f3402223ca695d08d22 | [
"BSD-3-Clause"
] | 478 | 2015-01-04T16:59:53.000Z | 2022-03-07T20:28:07.000Z | framework/src/minko/component/Camera.cpp | aerys/minko | edc3806a4e01570c5cb21f3402223ca695d08d22 | [
"BSD-3-Clause"
] | 83 | 2015-01-15T21:45:06.000Z | 2021-11-08T11:01:48.000Z | framework/src/minko/component/Camera.cpp | aerys/minko | edc3806a4e01570c5cb21f3402223ca695d08d22 | [
"BSD-3-Clause"
] | 175 | 2015-01-04T03:30:39.000Z | 2020-01-27T17:08:14.000Z | /*
Copyright (c) 2014 Aerys
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicens... | 29.994737 | 111 | 0.689244 | aerys |
805515743fe5be5e0f0d06a47b0c056c0c6e7e1f | 1,483 | cpp | C++ | src/Dimmer.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | 1 | 2016-05-17T03:36:52.000Z | 2016-05-17T03:36:52.000Z | src/Dimmer.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | src/Dimmer.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "color.h"
#include "Dimmer.h"
float Dimmer::alphaBlur = 1.0f;
Dimmer::Dimmer() {}
void Dimmer::draw() const {
if (alphaBlur < FLT_EPSILON) {
alphaBlur = 0.0f;
return;
}
glPushAttrib(GL_ALL_ATTRIB_BITS);
glColor4f(0, 0, 0, alphaBlur);
glDisable(GL_LIGHTING);
glDisable(GL_COL... | 20.887324 | 51 | 0.700607 | foxostro |
8056f7a227e5adb5c357004ba1b2c4bc92866c89 | 1,025 | cpp | C++ | leetcode.com/0393 UTF-8 Validation/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0393 UTF-8 Validation/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0393 UTF-8 Validation/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <iostream>
#include <vector>
using namespace std;
class Solution {
private:
int count_bytes(int first_byte) {
int mask = 1 << 7;
int res = 0;
for (int i = 0; i < 4; ++i) {
if (first_byte & mask) {
++res;
} else {
break;
}
mask >>= 1;
}
// res co... | 21.354167 | 60 | 0.513171 | sky-bro |
8059f8cdd9388e4674d4c42704c862bf4f3528aa | 46,477 | cc | C++ | test_atp.cc | wwmfdb/ATP-Engine | 00eaf0f551907c9d6e2db446d5e78364364531d4 | [
"BSD-3-Clause-Clear"
] | 16 | 2020-05-19T16:13:10.000Z | 2022-02-05T19:22:37.000Z | test_atp.cc | wwmfdb/ATP-Engine | 00eaf0f551907c9d6e2db446d5e78364364531d4 | [
"BSD-3-Clause-Clear"
] | 6 | 2020-07-16T14:30:02.000Z | 2021-11-08T22:10:18.000Z | test_atp.cc | wwmfdb/ATP-Engine | 00eaf0f551907c9d6e2db446d5e78364364531d4 | [
"BSD-3-Clause-Clear"
] | 12 | 2020-05-21T17:56:34.000Z | 2022-01-19T02:07:15.000Z | /*
* SPDX-License-Identifier: BSD-3-Clause-Clear
*
* Copyright (c) 2015, 2017 ARM Limited
* All rights reserved
* Created on: Oct 19, 2015
* Author: Matteo Andreozzi
* Riken Gohil
*/
#include "test_atp.hh"
#include "event.hh"
#include "stats.hh"
#include "fifo.hh"
#include "packet_desc.hh"
#... | 34.892643 | 121 | 0.63823 | wwmfdb |
805e6bc7723f90f790ec29fb614e1b636c31e5f5 | 2,365 | cpp | C++ | Receiver/src/main.cpp | rhymu8354/SocketTutorial | 9f6b6c243da6ac0b7e6754d5b2edc8f803d8c1ef | [
"MIT"
] | 28 | 2020-06-25T03:19:26.000Z | 2021-12-08T04:27:09.000Z | Receiver/src/main.cpp | rhymu8354/SocketTutorial | 9f6b6c243da6ac0b7e6754d5b2edc8f803d8c1ef | [
"MIT"
] | 1 | 2021-09-21T06:32:29.000Z | 2021-09-21T06:32:29.000Z | Receiver/src/main.cpp | rhymu8354/SocketTutorial | 9f6b6c243da6ac0b7e6754d5b2edc8f803d8c1ef | [
"MIT"
] | 5 | 2020-11-26T23:38:52.000Z | 2022-01-13T13:02:20.000Z | #include <inttypes.h>
#include <signal.h>
#include <Sockets/DatagramSocket.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <thread>
namespace {
// This is the UDP port number at which we will receive messages.
constexpr uint16_t port = 8000;
// This flag is set by our SIGINT signal handler in order ... | 34.779412 | 79 | 0.660888 | rhymu8354 |
8067fbf9ccdc6bffb693b8ea482f3205352d6a6c | 3,101 | tpp | C++ | code/source/ui/hid/actionlistener.tpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/ui/hid/actionlistener.tpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/ui/hid/actionlistener.tpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null |
template <nodes::SignalType S>
ActionListener<S>::ActionListener( const ContextChannel::Name& channel_name,
const Context::Tag& context_tag,
const Action::Name& action_name,
Callback on_action){
startListening(channel_name, context_tag, action_name,
createTypeSafeCallback(on_action));
}
... | 29.254717 | 168 | 0.750726 | crafn |
80754a668bb28675bc4251228b13ef9225016b78 | 1,170 | cc | C++ | config/tests/iconv.cc | henkdemarie/dicom-dimse-native | a2a5042de8c5de04831baf3de7182ea2eb7b78f8 | [
"MIT"
] | 29 | 2020-02-13T17:40:16.000Z | 2022-03-12T14:58:22.000Z | config/tests/iconv.cc | henkdemarie/dicom-dimse-native | a2a5042de8c5de04831baf3de7182ea2eb7b78f8 | [
"MIT"
] | 20 | 2020-03-20T18:06:31.000Z | 2022-02-25T08:38:08.000Z | config/tests/iconv.cc | henkdemarie/dicom-dimse-native | a2a5042de8c5de04831baf3de7182ea2eb7b78f8 | [
"MIT"
] | 9 | 2020-03-20T17:29:55.000Z | 2022-02-14T10:15:33.000Z | /*
* Copyright (C) 2018, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: config
*
* Author: Jan Schlamelcher
... | 22.075472 | 65 | 0.538462 | henkdemarie |
8081e2164b2e6afc7d999f573f34ec1a4131ccef | 910 | cpp | C++ | Number of Coins - GFG/number-of-coins.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | 1 | 2022-01-02T10:29:32.000Z | 2022-01-02T10:29:32.000Z | Number of Coins - GFG/number-of-coins.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | null | null | null | Number of Coins - GFG/number-of-coins.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | 1 | 2022-03-04T12:44:14.000Z | 2022-03-04T12:44:14.000Z | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution{
public:
int minCoins(int coins[], int M, int V)
{
// Your code goes here
int dp[V+1];
dp[0] = 0 ;
for(int i=1;i<=V;i++) dp[i] = INT_MAX;
for(int i=1;i<=V;i++){
for(i... | 17.169811 | 46 | 0.414286 | Jatin-Shihora |
8081f77ad22462c18d1483e12413ea11fff88d8a | 46 | cpp | C++ | src/libs/ocMath/Point2d.cpp | TO85/OttoCODE | 48f0ea1be3c55cf63f508db93a2794b10bc346c8 | [
"MIT"
] | 2 | 2021-08-15T17:21:27.000Z | 2021-08-20T21:41:16.000Z | src/libs/ocMath/Point2d.cpp | TO85/OttoCODE | 48f0ea1be3c55cf63f508db93a2794b10bc346c8 | [
"MIT"
] | 8 | 2022-01-19T08:18:51.000Z | 2022-03-13T14:45:03.000Z | src/libs/ocMath/Point2d.cpp | TO85/torc | fb21aa272192023fec9d5e1018c291e26462fd36 | [
"MIT"
] | null | null | null | #include "Point2d.h"
Point2d::Point2d()
{
}
| 6.571429 | 20 | 0.630435 | TO85 |
8092684d8aeb7d29e32f21e1371ca51c03fba9b8 | 1,417 | hpp | C++ | cpp/godot-cpp/include/gen/Shader.hpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | 1 | 2021-03-16T09:51:00.000Z | 2021-03-16T09:51:00.000Z | cpp/godot-cpp/include/gen/Shader.hpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | cpp/godot-cpp/include/gen/Shader.hpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | #ifndef GODOT_CPP_SHADER_HPP
#define GODOT_CPP_SHADER_HPP
#include <gdnative_api_struct.gen.h>
#include <stdint.h>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include "Shader.hpp"
#include "Resource.hpp"
namespace godot {
class Texture;
class Shader : public Resource {
struct ___method_bindings {
go... | 24.431034 | 245 | 0.768525 | GDNative-Gradle |
80937a3344b282b72997fbe04f38d7d1554b3e03 | 1,303 | hpp | C++ | third_party/boost/simd/function/refine_rsqrt.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/function/refine_rsqrt.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/refine_rsqrt.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//=========================... | 24.584906 | 100 | 0.606293 | SylvainCorlay |
809ebd14915c0890cc407b1c94923460312d5c72 | 115 | cpp | C++ | examples/implementation/greeter.cpp | dwd31415/emscripten-build-tool | 0e8d1ec10f0fc899d07873ee1bed8e61b48d31c0 | [
"MIT"
] | null | null | null | examples/implementation/greeter.cpp | dwd31415/emscripten-build-tool | 0e8d1ec10f0fc899d07873ee1bed8e61b48d31c0 | [
"MIT"
] | null | null | null | examples/implementation/greeter.cpp | dwd31415/emscripten-build-tool | 0e8d1ec10f0fc899d07873ee1bed8e61b48d31c0 | [
"MIT"
] | null | null | null | #include "greeter.h"
void Greeter::greet(std::string name)
{
std::cout << this->greeting << name << std::endl;
}
| 16.428571 | 50 | 0.643478 | dwd31415 |
80a082797bce020722e5a80eef379cc17550980b | 3,423 | cpp | C++ | Chaos-Engine/Material.cpp | MrAbnox/Chaos-Engine | cad124526f416d661f110ac1fcc7070f4ae9fedf | [
"MIT"
] | 1 | 2020-02-10T13:30:44.000Z | 2020-02-10T13:30:44.000Z | Chaos-Engine/Material.cpp | MrAbnox/Chaos-Engine | cad124526f416d661f110ac1fcc7070f4ae9fedf | [
"MIT"
] | null | null | null | Chaos-Engine/Material.cpp | MrAbnox/Chaos-Engine | cad124526f416d661f110ac1fcc7070f4ae9fedf | [
"MIT"
] | null | null | null | #include "Material.h"
#include "TheShader.h"
#include "TheDebug.h"
//-------------------------------------------------------------------------------
//Constructor
//-------------------------------------------------------------------------------
Material::Material()
{
name = "Material";
shininess = 0;
amb... | 28.057377 | 82 | 0.322232 | MrAbnox |
80a1accc0ac9c2b7d6fbcf56cf38871659f33407 | 2,193 | cpp | C++ | 13.cpp | malkiewiczm/adventofcode2020 | 8491a5a0be11fa8cfa61d67c97401797c0e7cf6b | [
"Apache-2.0"
] | null | null | null | 13.cpp | malkiewiczm/adventofcode2020 | 8491a5a0be11fa8cfa61d67c97401797c0e7cf6b | [
"Apache-2.0"
] | null | null | null | 13.cpp | malkiewiczm/adventofcode2020 | 8491a5a0be11fa8cfa61d67c97401797c0e7cf6b | [
"Apache-2.0"
] | null | null | null | //#define PARTONE
#include "template.hpp"
#define INF(T) std::numeric_limits<T>::max()
#ifndef PARTONE
struct BusPair {
I64 line;
I64 order;
};
static inline std::ostream &operator<< (std::ostream &o, const BusPair &pair)
{
o << "{ line: " << pair.line << ", order: " << pair.order << " }";
return o;
}
#endif
i... | 21.712871 | 77 | 0.588235 | malkiewiczm |
80a1d9ad5e474a1350b805d04546a7092717587d | 227 | cpp | C++ | NgineApp/src/NgineApplication.cpp | nak1411/Ngine | 1f8d0784c43780f8a53149dc176f877aa12e6d7d | [
"Apache-2.0"
] | 1 | 2022-02-26T08:43:14.000Z | 2022-02-26T08:43:14.000Z | NgineApp/src/NgineApplication.cpp | nak1411/Ngine | 1f8d0784c43780f8a53149dc176f877aa12e6d7d | [
"Apache-2.0"
] | null | null | null | NgineApp/src/NgineApplication.cpp | nak1411/Ngine | 1f8d0784c43780f8a53149dc176f877aa12e6d7d | [
"Apache-2.0"
] | null | null | null | #include <Ngine.h>
#include"Ngine/Core/EntryPoint.h"
class NgineApp : public Ngine::Application
{
public:
NgineApp()
{
}
~NgineApp()
{
}
};
Ngine::Application* Ngine::CreateApplication()
{
return new NgineApp();
} | 9.869565 | 46 | 0.669604 | nak1411 |
80a1f117850185069dcd0ec18217efebeae81d40 | 905 | cpp | C++ | 119. Pascal's Triangle II.cpp | NeoYY/Leetcode-Solution | 0f067973d3c296ac7f2fa85a89dbdd5295b0b037 | [
"MIT"
] | null | null | null | 119. Pascal's Triangle II.cpp | NeoYY/Leetcode-Solution | 0f067973d3c296ac7f2fa85a89dbdd5295b0b037 | [
"MIT"
] | null | null | null | 119. Pascal's Triangle II.cpp | NeoYY/Leetcode-Solution | 0f067973d3c296ac7f2fa85a89dbdd5295b0b037 | [
"MIT"
] | null | null | null | /*
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle.
Note that the row index starts from 0.
In Pascal's triangle, each number is the sum of the two numbers directly above it.
Example:
Input: 3
Output: [1,3,3,1]
Follow up:
Could you optimize your algorithm to use only O(... | 22.625 | 111 | 0.569061 | NeoYY |
80a78fa4dec4e5bec73431063b8f66aa778de0c0 | 5,354 | cpp | C++ | src/Exciton/PaintingSecrets/PaintingSecretSurface.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | src/Exciton/PaintingSecrets/PaintingSecretSurface.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | src/Exciton/PaintingSecrets/PaintingSecretSurface.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | #include <exciton.h>
N::PaintingSecretSurface:: PaintingSecretSurface (QWidget * parent)
: QWidget ( parent)
, progress (NULL )
, indicator (NULL )
{
}
N::PaintingSecretSurf... | 35.932886 | 67 | 0.341053 | Vladimir-Lin |
80aaba02c630ecb4f4a1ba82e2af72719c13d5ee | 1,243 | hpp | C++ | src/org/apache/poi/ss/formula/ptg/BoolPtg.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/formula/ptg/BoolPtg.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/formula/ptg/BoolPtg.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/formula/ptg/BoolPtg.java
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/ss/formula/ptg/fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <org/apache/poi/ss/formula/ptg/ScalarConstantPtg.hpp>
struct default_ini... | 23.018519 | 70 | 0.687852 | pebble2015 |
80ade0f65db7d720e9f16b50b80455393a7e66ba | 645 | hpp | C++ | source/symbol/h2_cxa.hpp | lingjf/h2unit | 5a55c718bc22ba52bd4500997b2df18939996efa | [
"Apache-2.0"
] | 5 | 2015-03-02T22:29:00.000Z | 2020-06-28T08:52:00.000Z | source/symbol/h2_cxa.hpp | lingjf/h2unit | 5a55c718bc22ba52bd4500997b2df18939996efa | [
"Apache-2.0"
] | 5 | 2019-05-10T02:28:00.000Z | 2021-07-17T00:53:18.000Z | source/symbol/h2_cxa.hpp | lingjf/h2unit | 5a55c718bc22ba52bd4500997b2df18939996efa | [
"Apache-2.0"
] | 5 | 2016-05-25T07:31:16.000Z | 2021-08-29T04:25:18.000Z | struct h2_cxa {
static char* demangle(const char* mangle_name, char* demangle_name = (char*)alloca(1024), size_t length = 1024);
static void* follow_jmp(void* fp, int n = 32);
template <typename T, typename U = typename std::remove_reference<T>::type>
static const char* type_name(char* name = (char*)alloca... | 40.3125 | 115 | 0.63876 | lingjf |
80b8ac5e22a102766b78ccf8658ea2edd8f09d70 | 369 | cpp | C++ | tools/pathanalyzer/tests/rv_same_var.cpp | tjschweizer/pharos | 4c5cea68c4489d798e341319d1d5e0d2fee71422 | [
"RSA-MD"
] | 1,247 | 2015-06-15T17:51:31.000Z | 2022-03-31T10:24:47.000Z | tools/pathanalyzer/tests/rv_same_var.cpp | tjschweizer/pharos | 4c5cea68c4489d798e341319d1d5e0d2fee71422 | [
"RSA-MD"
] | 191 | 2017-07-05T19:06:28.000Z | 2022-03-20T14:31:10.000Z | tools/pathanalyzer/tests/rv_same_var.cpp | tjschweizer/pharos | 4c5cea68c4489d798e341319d1d5e0d2fee71422 | [
"RSA-MD"
] | 180 | 2015-06-25T21:34:54.000Z | 2022-03-21T04:25:04.000Z | // Copyright 2019 Carnegie Mellon University. See LICENSE file for terms.
#include "test.hpp"
int func(int n) {
return n + 1;
}
int main() {
path_start();
int n = SMALL_POSITIVE_RAND;
n = func(n + 3);
volatile int t = n; // volatile to prevent optimization of nongoal
if (func(n + 4) < t) {
path_nongo... | 18.45 | 74 | 0.607046 | tjschweizer |
80b8fdde5e5fa6d1e9963a1efd0790a65a47d240 | 10,855 | cc | C++ | stimulus/EmotionalImages.cc | Bearzeng/x-amber | 351e5e9b4f66d5d4099c7ad92072b3ceaf7b11a4 | [
"Apache-2.0"
] | 156 | 2020-11-02T06:18:55.000Z | 2022-03-18T10:05:01.000Z | stimulus/EmotionalImages.cc | dryxia/x-amber | 351e5e9b4f66d5d4099c7ad92072b3ceaf7b11a4 | [
"Apache-2.0"
] | 1 | 2021-08-23T05:38:56.000Z | 2021-08-23T05:38:56.000Z | stimulus/EmotionalImages.cc | dryxia/x-amber | 351e5e9b4f66d5d4099c7ad92072b3ceaf7b11a4 | [
"Apache-2.0"
] | 31 | 2020-11-03T02:05:25.000Z | 2022-01-06T06:04:39.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 34.351266 | 120 | 0.727683 | Bearzeng |
01e93875b238b49b9f788cd0160ce72b73090d80 | 5,923 | cpp | C++ | Data Structures/Permutation Tree.cpp | bazzyadb/all-code | cf3039641b5aa84b1c5b184a95d69bd4091974c9 | [
"MIT"
] | 1,639 | 2021-09-15T09:12:06.000Z | 2022-03-31T22:58:57.000Z | Data Structures/Permutation Tree.cpp | bazzyadb/all-code | cf3039641b5aa84b1c5b184a95d69bd4091974c9 | [
"MIT"
] | 16 | 2022-01-15T17:50:08.000Z | 2022-01-28T12:55:21.000Z | Data Structures/Permutation Tree.cpp | bazzyadb/all-code | cf3039641b5aa84b1c5b184a95d69bd4091974c9 | [
"MIT"
] | 444 | 2021-09-15T09:17:41.000Z | 2022-03-29T18:21:46.000Z | #include<bits/stdc++.h>
using namespace std;
const int N = 1e5 + 9, inf = 1e9 + 7, LG = 19;
struct ST {
#define lc (n << 1)
#define rc ((n << 1) | 1)
int t[4 * N], lazy[4 * N];
ST() {}
inline void push(int n, int b, int e) {
if (lazy[n] == 0) return;
t[n] = t[n] + lazy[n];
if (b != e) {... | 28.204762 | 101 | 0.449097 | bazzyadb |
01f4535fe1ba18c4e6e9a9c39a8e769992b73dc8 | 1,796 | cpp | C++ | source/ff.graphics/source/sprite_data.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | source/ff.graphics/source/sprite_data.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | source/ff.graphics/source/sprite_data.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "sprite_data.h"
#include "sprite_type.h"
#include "texture.h"
#include "texture_view_base.h"
ff::sprite_data::sprite_data()
: view_(nullptr)
, texture_uv_(0, 0, 0, 0)
, world_(0, 0, 0, 0)
, type_(ff::sprite_type::unknown)
{}
ff::sprite_data::sprite_data(
ff::texture_view_... | 23.631579 | 100 | 0.6598 | spadapet |
01f632d1d57e41207b8bb8076ddfbf3aa306bd4f | 1,564 | cpp | C++ | bark/src/JSObject.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 50 | 2015-06-01T19:23:24.000Z | 2021-12-22T02:14:23.000Z | bark/src/JSObject.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 109 | 2015-07-20T07:43:03.000Z | 2021-01-31T21:52:36.000Z | bark/src/JSObject.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 9 | 2015-07-02T21:36:20.000Z | 2019-10-19T04:18:02.000Z | #include "JSObject.h"
#include <JSBindings_Macros.h>
namespace onut
{
namespace js
{
extern duk_context* pContext; // Haxor. This context already contains all standard onut bindings
void newUI(duk_context* ctx, const OUIControlRef& pUIControl);
}
}
using namespace onut::js;
void* JSObjec... | 22.666667 | 104 | 0.679668 | Daivuk |
bf0a28c1c6cf3ebcef4fb261bed0728fe7020cf9 | 11,299 | cpp | C++ | gpk/gpk_framework.cpp | Gorbylord/gpk | 89ad121d3946b41f802a0bc260ff07e658cbd26e | [
"MIT"
] | null | null | null | gpk/gpk_framework.cpp | Gorbylord/gpk | 89ad121d3946b41f802a0bc260ff07e658cbd26e | [
"MIT"
] | null | null | null | gpk/gpk_framework.cpp | Gorbylord/gpk | 89ad121d3946b41f802a0bc260ff07e658cbd26e | [
"MIT"
] | null | null | null | // Tip: Best viewed with zoom level at 81%.
// Tip: Hold Left ALT + SHIFT while tapping or holding the arrow keys in order to select multiple columns and write on them at once.
// Also useful for copy & paste operations in which you need to copy a bunch of variable or function names and you can't afford the time of c... | 58.848958 | 177 | 0.637048 | Gorbylord |
bf0a4dc3e816eef27a28a44d2baffaabc59559b2 | 145 | cpp | C++ | WhileFalsePhysics/Source/WhileFalsePhysics/Private/Physics/WhileFalsePhysicsStatics.cpp | WhileFalseStudios/unreal-wfs | d11ae208f939b994771dd8653c17aac762382a1f | [
"MIT"
] | null | null | null | WhileFalsePhysics/Source/WhileFalsePhysics/Private/Physics/WhileFalsePhysicsStatics.cpp | WhileFalseStudios/unreal-wfs | d11ae208f939b994771dd8653c17aac762382a1f | [
"MIT"
] | null | null | null | WhileFalsePhysics/Source/WhileFalsePhysics/Private/Physics/WhileFalsePhysicsStatics.cpp | WhileFalseStudios/unreal-wfs | d11ae208f939b994771dd8653c17aac762382a1f | [
"MIT"
] | null | null | null | // Copyright (c) While False Studios 2019. Released under the MIT license. See LICENSE for more details.
#include "WhileFalsePhysicsStatics.h"
| 29 | 104 | 0.77931 | WhileFalseStudios |
bf1296436738a914e9cb747ed217a116c7550157 | 5,599 | hpp | C++ | include/codegen/include/System/Net/Sockets/SocketAsyncResult.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Net/Sockets/SocketAsyncResult.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Net/Sockets/SocketAsyncResult.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:19 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.IOAsyncResult
#include "System/IOAsyncResult.hpp"
// ... | 37.326667 | 182 | 0.70459 | Futuremappermydud |
bf15716907ea6a670d26933ec56758c47cb32398 | 2,949 | hpp | C++ | include/codegen/include/UnityEngine/Analytics/AnalyticsSessionInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/Analytics/AnalyticsSessionInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/Analytics/AnalyticsSessionInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:39 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 56.711538 | 195 | 0.785351 | Futuremappermydud |
bf198bf97214ba22eed83bfd25ee9608a5ed65a8 | 2,770 | cpp | C++ | Quad2/Main/Quad_FlightCommand/flightCommand.cpp | rhockenbury/Quad2 | 1d2d6fe3902ab4a58869e06539553d0cd4bb3d21 | [
"MIT"
] | null | null | null | Quad2/Main/Quad_FlightCommand/flightCommand.cpp | rhockenbury/Quad2 | 1d2d6fe3902ab4a58869e06539553d0cd4bb3d21 | [
"MIT"
] | null | null | null | Quad2/Main/Quad_FlightCommand/flightCommand.cpp | rhockenbury/Quad2 | 1d2d6fe3902ab4a58869e06539553d0cd4bb3d21 | [
"MIT"
] | null | null | null | /*
* flightCommand.cpp
*
* Created on: August 18, 2013
* Author: Ryler Hockenbury
*/
#include "flightCommand.h"
#include "globals.h"
#include "receiver.h"
#include "LED.h"
#include "conf.h"
bool controlMode = 0;
bool auxMode = 0;
/*
* Distribute stick commands to system components
*/
... | 30.108696 | 101 | 0.675812 | rhockenbury |
bf2089b4c966d2012adedefce8f0c9d5414b6341 | 24,252 | cpp | C++ | test/math/uint256.cpp | ccccbjcn/nuls-v2-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | 1 | 2020-04-26T07:32:52.000Z | 2020-04-26T07:32:52.000Z | test/math/uint256.cpp | CCC-NULS/nuls-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | null | null | null | test/math/uint256.cpp | CCC-NULS/nuls-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2020 libnuls developers (see AUTHORS)
*
* This file is part of libnuls.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 31.172237 | 125 | 0.744186 | ccccbjcn |
bf20ba66b9122b37906ef811543dea5d87f63b8f | 1,157 | cpp | C++ | src/classwork/03_assign/decision.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-aaronvonkreisler | 6733dcd999d378149dc7c2755d6b693f2924a03f | [
"MIT"
] | 1 | 2021-02-03T00:59:22.000Z | 2021-02-03T00:59:22.000Z | src/classwork/03_assign/decision.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-aaronvonkreisler | 6733dcd999d378149dc7c2755d6b693f2924a03f | [
"MIT"
] | 1 | 2021-02-10T00:25:08.000Z | 2021-02-10T00:25:08.000Z | src/classwork/03_assign/decision.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-aaronvonkreisler | 6733dcd999d378149dc7c2755d6b693f2924a03f | [
"MIT"
] | null | null | null | //cpp
#include "decision.h"
#include <iostream>
#include <string>
using std::string;
string get_letter_grade_using_if(int grade)
{
bool gradeA = grade >= 90 && grade <= 100;
bool gradeB = grade >= 80 && grade <= 89;
bool gradeC = grade >= 70 && grade <= 79;
bool gradeD = grade >= 60 && grade <= 69;
... | 18.967213 | 47 | 0.532411 | acc-cosc-1337-spring-2021 |
bf25d954d6efcfccb2c3da744211fcfc1bde374e | 884 | cpp | C++ | tests/YstringTest/Utf/test_Utf8StringCpp11.cpp | wvffle/Ystring | a1ee9da1e433a2e74e432da6834638d547265126 | [
"BSD-2-Clause"
] | null | null | null | tests/YstringTest/Utf/test_Utf8StringCpp11.cpp | wvffle/Ystring | a1ee9da1e433a2e74e432da6834638d547265126 | [
"BSD-2-Clause"
] | 1 | 2021-02-28T12:46:55.000Z | 2021-03-03T20:58:14.000Z | tests/YstringTest/Utf/test_Utf8StringCpp11.cpp | wvffle/Ystring | a1ee9da1e433a2e74e432da6834638d547265126 | [
"BSD-2-Clause"
] | 1 | 2021-02-28T13:02:43.000Z | 2021-02-28T13:02:43.000Z | //****************************************************************************
// Copyright © 2015 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 2015-07-29
//
// This file is distributed under the Simplified BSD License.
// License text is included with the source distribution.
//**************... | 28.516129 | 78 | 0.529412 | wvffle |
bf32a2f40f41ef754bdedf167eee5899de8be7ac | 1,935 | cpp | C++ | Implementations/Luogu/P4568.cpp | VecTest/code-library | 00e9e881acece02c7dbeac3a139cb55e0b439cee | [
"MIT"
] | 1 | 2022-03-05T00:34:14.000Z | 2022-03-05T00:34:14.000Z | Implementations/Luogu/P4568.cpp | VecTest/code-library | 00e9e881acece02c7dbeac3a139cb55e0b439cee | [
"MIT"
] | null | null | null | Implementations/Luogu/P4568.cpp | VecTest/code-library | 00e9e881acece02c7dbeac3a139cb55e0b439cee | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
/*
大致思路:
分层图最短路
提交地址:
https://www.luogu.com.cn/problem/P4568
https://www.acwing.com/problem/content/2956/
*/
const int INF = 1e9;
struct Edge {
int v, w;
};
using Edges = std::vector<std::vector<Edge>>;
struct Vertex {
int d, p;
bool operator < (const Vertex &x) const {
... | 18.970588 | 53 | 0.407235 | VecTest |
bf3b8ab62f69b53fc82fac1f5648f17b75332d14 | 27,400 | cpp | C++ | src/font/ttf.cpp | jjbandit/bonsai | f6073484c14178aff6925eaf8caddf349174b27d | [
"WTFPL"
] | 13 | 2017-04-12T16:26:46.000Z | 2022-03-01T22:04:34.000Z | src/font/ttf.cpp | jjbandit/bonsai | f6073484c14178aff6925eaf8caddf349174b27d | [
"WTFPL"
] | null | null | null | src/font/ttf.cpp | jjbandit/bonsai | f6073484c14178aff6925eaf8caddf349174b27d | [
"WTFPL"
] | null | null | null |
#include <bonsai_types.h>
global_variable v4 White = V4(1,1,1,0);
global_variable v4 Black = {};
global_variable v4 Red = V4(1,0,0,0);
global_variable v4 Blue = V4(0,0,1,0);
global_variable v4 Pink = V4(1,0,1,0);
global_variable v4 Green = V4(0,1,0,0);
global_variable u32 PackedWhite = PackRGBALinearTo255(White... | 26.145038 | 201 | 0.61062 | jjbandit |
bf3fdb6deda0b4dadbb0a86d8f14c1c554d5b643 | 10,758 | cpp | C++ | src/tools/loop_invariant_code_motion/src/LastLiveOutPeeler.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 43 | 2020-09-04T15:21:40.000Z | 2022-03-23T03:53:02.000Z | src/tools/loop_invariant_code_motion/src/LastLiveOutPeeler.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 15 | 2020-09-17T18:06:15.000Z | 2022-01-24T17:14:36.000Z | src/tools/loop_invariant_code_motion/src/LastLiveOutPeeler.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | 23 | 2020-09-04T15:50:09.000Z | 2022-03-25T13:38:25.000Z | /*
* Copyright 2019 - 2020 Simone Campanoni
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish... | 40.141791 | 435 | 0.697249 | SusanTan |
bf4697f76aafea71af2955d6209b0bb7054cddfb | 5,690 | cpp | C++ | webkit/WebCore/platform/graphics/chromium/FontPlatformDataLinux.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 15 | 2016-01-05T12:43:41.000Z | 2022-03-15T10:34:47.000Z | webkit/WebCore/platform/graphics/chromium/FontPlatformDataLinux.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | null | null | null | webkit/WebCore/platform/graphics/chromium/FontPlatformDataLinux.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 2 | 2020-11-30T18:36:01.000Z | 2021-02-05T23:20:24.000Z | /*
* Copyright (c) 2006, 2007, 2008, 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 l... | 30.265957 | 127 | 0.735852 | s1rcheese |
bf4c0c6e8831f0dabcb22e015a74ad33e893483d | 1,076 | hh | C++ | pathtracer/src/datastruct/box/BoundingBox.hh | bjorn-grape/bidirectional-pathtracer | 6fbbf5fc6cee39f595533494d779726658d646e1 | [
"MIT"
] | null | null | null | pathtracer/src/datastruct/box/BoundingBox.hh | bjorn-grape/bidirectional-pathtracer | 6fbbf5fc6cee39f595533494d779726658d646e1 | [
"MIT"
] | null | null | null | pathtracer/src/datastruct/box/BoundingBox.hh | bjorn-grape/bidirectional-pathtracer | 6fbbf5fc6cee39f595533494d779726658d646e1 | [
"MIT"
] | null | null | null | #pragma once
#include "Vector3D.hh"
#include "SplitAxis.hh"
#include "Ray.hh"
class BoundingBox {
public:
BoundingBox(const Vector3D<float> &mini, const Vector3D<float> &maxi);
BoundingBox();
inline SplitAxis::Axis GetLargestDimension() const;
inline SplitAxis::Axis GetSmallestDimension() const;
... | 22.893617 | 81 | 0.697955 | bjorn-grape |
bf5034669064e87d1da109095bf6599898933a3a | 28,832 | cpp | C++ | src/agile_grasp2/plot.cpp | pyni/agile_grasp2 | bbe64572f08f5f8b78f9f361da3fd5d3032cdbdf | [
"BSD-2-Clause"
] | null | null | null | src/agile_grasp2/plot.cpp | pyni/agile_grasp2 | bbe64572f08f5f8b78f9f361da3fd5d3032cdbdf | [
"BSD-2-Clause"
] | null | null | null | src/agile_grasp2/plot.cpp | pyni/agile_grasp2 | bbe64572f08f5f8b78f9f361da3fd5d3032cdbdf | [
"BSD-2-Clause"
] | 1 | 2021-06-24T01:33:05.000Z | 2021-06-24T01:33:05.000Z | #include <agile_grasp2/plot.h>
void Plot::plotFingers(const std::vector<GraspHypothesis>& hand_list, const PointCloudRGBA::Ptr& cloud,
std::string str, double outer_diameter)
{
const int WIDTH = pcl::visualization::PCL_VISUALIZER_LINE_WIDTH;
boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer = createV... | 41.30659 | 122 | 0.695581 | pyni |
bf53850616ef00ac2520e6faa9d5d6443781ea9e | 1,464 | hpp | C++ | include/lattice_model_impl/update_dynamics/lattice_update_dynamics/lattice_update_formalisms/global_lattice_update.hpp | statphysandml/LatticeModelSimulationLib | 37900336a35d81d28f3477c44da64e692212973a | [
"MIT"
] | null | null | null | include/lattice_model_impl/update_dynamics/lattice_update_dynamics/lattice_update_formalisms/global_lattice_update.hpp | statphysandml/LatticeModelSimulationLib | 37900336a35d81d28f3477c44da64e692212973a | [
"MIT"
] | 3 | 2021-02-24T16:34:35.000Z | 2021-11-30T13:14:24.000Z | include/lattice_model_impl/update_dynamics/lattice_update_dynamics/lattice_update_formalisms/global_lattice_update.hpp | statphysandml/LatticeModelSimulationLib | 37900336a35d81d28f3477c44da64e692212973a | [
"MIT"
] | null | null | null | //
// Created by lukas on 06.08.20.
//
#ifndef LATTICEMODELIMPLEMENTATIONS_SIMPLE_UPDATE_HPP
#define LATTICEMODELIMPLEMENTATIONS_SIMPLE_UPDATE_HPP
#include "../../update_dynamics_base.hpp"
namespace lm_impl {
namespace update_dynamics {
struct GlobalLatticeUpdate;
struct GlobalLatticeUpdatePa... | 29.877551 | 113 | 0.664617 | statphysandml |
bf55043ca9bfdd1e54352dba0388a0742ceead73 | 3,168 | hpp | C++ | ngraph/core/reference/include/ngraph/runtime/reference/ctc_greedy_decoder_seq_len.hpp | tkrupa-intel/openvino | 8c0ff5d9065486d23901a9c27debd303661f465f | [
"Apache-2.0"
] | 1 | 2021-05-30T18:25:07.000Z | 2021-05-30T18:25:07.000Z | ngraph/core/reference/include/ngraph/runtime/reference/ctc_greedy_decoder_seq_len.hpp | tkrupa-intel/openvino | 8c0ff5d9065486d23901a9c27debd303661f465f | [
"Apache-2.0"
] | null | null | null | ngraph/core/reference/include/ngraph/runtime/reference/ctc_greedy_decoder_seq_len.hpp | tkrupa-intel/openvino | 8c0ff5d9065486d23901a9c27debd303661f465f | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2021 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 45.257143 | 97 | 0.493687 | tkrupa-intel |
bf571a0b4858aef6b574178caf4800422f874682 | 765 | cpp | C++ | cpp/euler368.cpp | t-highfill/project-euler | f92ad1092f2529994e7b2d023180a60a5c8194ee | [
"MIT"
] | null | null | null | cpp/euler368.cpp | t-highfill/project-euler | f92ad1092f2529994e7b2d023180a60a5c8194ee | [
"MIT"
] | null | null | null | cpp/euler368.cpp | t-highfill/project-euler | f92ad1092f2529994e7b2d023180a60a5c8194ee | [
"MIT"
] | null | null | null |
#include <cstdint>
#include <iostream>
#include <map>
typedef uint32_t denom_t;
typedef std::map<denom_t, bool> known_map;
bool validate(denom_t d, known_map& known){
while(d >= 111){
// auto itr = known.find(d);
// if(itr != known.end())
// return itr->second;
if((d % 1000) % 111 == 0){
return false;
... | 20.675676 | 85 | 0.576471 | t-highfill |
bf5818f3dfc705cde77970b054c3324be7d2bdb5 | 6,340 | cpp | C++ | cell_based/src/simulation/RK4NumericalMethodTimestepper.cpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | cell_based/src/simulation/RK4NumericalMethodTimestepper.cpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | cell_based/src/simulation/RK4NumericalMethodTimestepper.cpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2005-2015, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... | 48.769231 | 145 | 0.728707 | ktunya |
bf5f4749627c0f3b5018ad6c17a7d8aea109c664 | 739 | hpp | C++ | include/RED4ext/Types/generated/quest/SetLootInteractionAccess_NodeType.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/quest/SetLootInteractionAccess_NodeType.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/quest/SetLootInteractionAccess_NodeType.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/game/EntityReference.hpp>
#include <RED4ext/Types/generated/quest/IItemManagerNodeType.hpp>
namespace RED4ext
{
namespace quest {
s... | 28.423077 | 81 | 0.769959 | Cyberpunk-Extended-Development-Team |
bf62028f5ba64a4d5d5cdffa15d5147cc22e285d | 585 | cpp | C++ | 0041 First Missing Positive/solution.cpp | Aden-Tao/LeetCode | c34019520b5808c4251cb76f69ca2befa820401d | [
"MIT"
] | 1 | 2019-12-19T04:13:15.000Z | 2019-12-19T04:13:15.000Z | 0041 First Missing Positive/solution.cpp | Aden-Tao/LeetCode | c34019520b5808c4251cb76f69ca2befa820401d | [
"MIT"
] | null | null | null | 0041 First Missing Positive/solution.cpp | Aden-Tao/LeetCode | c34019520b5808c4251cb76f69ca2befa820401d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
class Solution {
public:
int firstMissingPositive(std::vector<int>& nums) {
int n = nums.size();
for (int i = 0; i < n; i ++)
{
while (nums[i] > 0 && nums[i] <= n && nums[nums[i] - 1] != nums[i])
std::swap(nums[i], nums[nums[i] - 1]);
... | 24.375 | 79 | 0.444444 | Aden-Tao |
bf67beeea3376a30354343c172eae1d467326b35 | 3,641 | cpp | C++ | graph/minCostMaxFlow_inet_chinese_dijkstra.cpp | fersarr/algo | a6ed2b53be8e748d9c0e488dc5fad075fa7cbb53 | [
"MIT"
] | null | null | null | graph/minCostMaxFlow_inet_chinese_dijkstra.cpp | fersarr/algo | a6ed2b53be8e748d9c0e488dc5fad075fa7cbb53 | [
"MIT"
] | null | null | null | graph/minCostMaxFlow_inet_chinese_dijkstra.cpp | fersarr/algo | a6ed2b53be8e748d9c0e488dc5fad075fa7cbb53 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <queue>
#include <set>
#include <stack>
#include <map>
#include <list>
#define MAX 1l << 62
//too slow, TLE (time limit exceeded)
using namespace std;
typedef pair<int,int> ... | 27.171642 | 109 | 0.449327 | fersarr |
bf6ad18739722e9b812277069f15dba5087b0159 | 379 | hpp | C++ | worker/fuzzer/include/RTC/RTCP/FuzzerFeedbackPsVbcm.hpp | kcking/mediasoup | f385349d0f06fe14a4e38d50f0212b48d588fa32 | [
"ISC"
] | 4,465 | 2017-04-05T20:00:24.000Z | 2022-03-31T13:27:43.000Z | worker/fuzzer/include/RTC/RTCP/FuzzerFeedbackPsVbcm.hpp | kcking/mediasoup | f385349d0f06fe14a4e38d50f0212b48d588fa32 | [
"ISC"
] | 617 | 2017-04-05T21:24:27.000Z | 2022-03-31T06:17:25.000Z | worker/fuzzer/include/RTC/RTCP/FuzzerFeedbackPsVbcm.hpp | kcking/mediasoup | f385349d0f06fe14a4e38d50f0212b48d588fa32 | [
"ISC"
] | 900 | 2017-04-11T09:25:27.000Z | 2022-03-30T21:37:00.000Z | #ifndef MS_FUZZER_RTC_RTCP_FEEDBACK_PS_VBCM
#define MS_FUZZER_RTC_RTCP_FEEDBACK_PS_VBCM
#include "common.hpp"
#include "RTC/RTCP/FeedbackPsVbcm.hpp"
namespace Fuzzer
{
namespace RTC
{
namespace RTCP
{
namespace FeedbackPsVbcm
{
void Fuzz(::RTC::RTCP::FeedbackPsVbcmPacket* packet);
}
} // namespac... | 17.227273 | 57 | 0.733509 | kcking |
bf7de81fa0b557e97b39233802a7992d585f4d92 | 888 | cpp | C++ | c++/trick/defer.cpp | dannypsnl/languages-learn | 2351a235bd55e720394111237d41f65482eb89ec | [
"MIT"
] | 2 | 2018-01-04T00:47:25.000Z | 2018-01-12T08:07:50.000Z | c++/trick/defer.cpp | dannypsnl/languages-learn | 2351a235bd55e720394111237d41f65482eb89ec | [
"MIT"
] | 1 | 2018-01-08T14:45:55.000Z | 2018-01-09T05:02:09.000Z | c++/trick/defer.cpp | dannypsnl/languages-learn | 2351a235bd55e720394111237d41f65482eb89ec | [
"MIT"
] | null | null | null | #include <functional>
#include <iostream>
#include <stack>
class deferer {
std::stack<std::function<void()>> defers;
void callAll() {
while (!this->defers.empty()) {
this->defers.top()();
this->defers.pop();
}
}
public:
deferer() {}
void add(std::function<void()> &&f) {
this->defers... | 24 | 80 | 0.471847 | dannypsnl |
bf823130af8ed770bcf8e1e3f75db8d8285bdfe5 | 5,641 | cpp | C++ | common/ImageCoder.cpp | victorliu/vklBoards | 253d94047993c7cf8952754fc26029245821e987 | [
"MIT"
] | null | null | null | common/ImageCoder.cpp | victorliu/vklBoards | 253d94047993c7cf8952754fc26029245821e987 | [
"MIT"
] | null | null | null | common/ImageCoder.cpp | victorliu/vklBoards | 253d94047993c7cf8952754fc26029245821e987 | [
"MIT"
] | 1 | 2020-04-22T00:40:25.000Z | 2020-04-22T00:40:25.000Z | #include "ImageCoder.h"
#include <cstring>
#include <cstdio>
#include "fastlz.h"
typedef int (*encoderproc)(
const unsigned char *rgb, unsigned stride, unsigned w, unsigned h,
std::vector<unsigned char> &buffer
);
typedef int (*decoderproc)(
const unsigned char *buffer, unsigned buflen,
unsigned char *r... | 24.2103 | 68 | 0.605744 | victorliu |
bf8d72ff9d55999e90a336cc096140cd230f9887 | 8,436 | cpp | C++ | logic/ShenGuan.cpp | chntujia/CodfiyAsteriatedGrailClient | 5e148f2f31783fcf4ecb6b46d94245a8d2f9a8f6 | [
"MIT"
] | 23 | 2016-01-14T01:44:18.000Z | 2021-11-07T05:36:21.000Z | logic/ShenGuan.cpp | chntujia/CodfiyAsteriatedGrailClient | 5e148f2f31783fcf4ecb6b46d94245a8d2f9a8f6 | [
"MIT"
] | null | null | null | logic/ShenGuan.cpp | chntujia/CodfiyAsteriatedGrailClient | 5e148f2f31783fcf4ecb6b46d94245a8d2f9a8f6 | [
"MIT"
] | 8 | 2016-01-11T06:28:06.000Z | 2020-05-17T11:03:53.000Z | #include "ShenGuan.h"
enum CAUSE{
SHEN_SHENG_QI_SHI = 1501,
SHEN_SHENG_QI_FU = 1502,
SHUI_ZHI_SHEN_LI = 1503,
SHENG_SHI_SHOU_HU = 1504,
SHEN_SHENG_QI_YUE = 1505,
SHEN_SHENG_LING_YU = 1506,
SHUI_ZHI_SHEN_LI_GIVE = 1531,
SHUI_ZHI_SHEN_LI_CROSS = 1532,
SHEN_SHENG_QI_YUE_1 = 1... | 26.3625 | 113 | 0.61119 | chntujia |
bf8ef47648deb21ca90f6d4ad65b623d1f7c002e | 8,952 | cpp | C++ | src/fsnorm.cpp | melmi/aban2 | b17e318a82ef9003893ac818465807aecd8757fc | [
"MIT"
] | 1 | 2017-10-15T07:20:16.000Z | 2017-10-15T07:20:16.000Z | src/fsnorm.cpp | melmi/aban2 | b17e318a82ef9003893ac818465807aecd8757fc | [
"MIT"
] | null | null | null | src/fsnorm.cpp | melmi/aban2 | b17e318a82ef9003893ac818465807aecd8757fc | [
"MIT"
] | null | null | null | #include "vof.h"
#include <cmath>
#include <memory>
#include "gradient.h"
#include "volreconst.h"
namespace aban2
{
fsnorm::fsnorm(aban2::domain_t *_d): d(_d)
{
}
fsnorm::~fsnorm()
{
}
fsnorm::neighbs_t fsnorm::get_nighb_vals(size_t i, size_t j, size_t k)
{
neighbs_t result;
size_t no;
for (int ii = 0... | 31.191638 | 120 | 0.457887 | melmi |
bf906dbb10eab49b7ab0ae63c332a1601f86f4f6 | 2,192 | cpp | C++ | breadth-first-search/542-01-matrix.cpp | gromitsun/algorithm | 5aea12139c1b98221650063b91c0d38b965047e5 | [
"MIT"
] | null | null | null | breadth-first-search/542-01-matrix.cpp | gromitsun/algorithm | 5aea12139c1b98221650063b91c0d38b965047e5 | [
"MIT"
] | null | null | null | breadth-first-search/542-01-matrix.cpp | gromitsun/algorithm | 5aea12139c1b98221650063b91c0d38b965047e5 | [
"MIT"
] | null | null | null | ass Solution {
public:
vector<vector<int>> updateMatrix(vector<vector<int>>& matrix) {
if (matrix.empty())
return matrix;
if (matrix[0].empty())
return matrix;
// queue for BFS
queue<int> rows;
queue<int> cols;
... | 23.826087 | 67 | 0.273723 | gromitsun |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.