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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
329eae5447f0cd48d1e279aab3660dbbae09d470 | 1,092 | cpp | C++ | src/CubeSystem/CubeManagerInputs.cpp | frc2081/2018-RobotCode | 6eec5af9b42df4bbd9f43ae6bd0cedc8fa7e0019 | [
"MIT"
] | null | null | null | src/CubeSystem/CubeManagerInputs.cpp | frc2081/2018-RobotCode | 6eec5af9b42df4bbd9f43ae6bd0cedc8fa7e0019 | [
"MIT"
] | 5 | 2018-01-18T03:25:07.000Z | 2018-03-16T13:27:53.000Z | src/CubeSystem/CubeManagerInputs.cpp | frc2081/2018-RobotCode | 6eec5af9b42df4bbd9f43ae6bd0cedc8fa7e0019 | [
"MIT"
] | null | null | null | /*
* CubeManagerInputs.cpp
*
* Created on: Feb 2, 2018
* Author: wentzdr
*/
#include <CubeSystem/CubeManagerInputs.h>
CubeManagerInputs::CubeManagerInputs() {
intakeCubeSensor = CubeSensor::NO_CUBE_PRESENT;
shooterCubeSensor = CubeSensor::NO_CUBE_PRESENT;
shooterangleactualvalue = 0;
arm... | 25.395349 | 87 | 0.757326 | frc2081 |
329eb6c93a40cfd2e31b7eb5d6b0ae3c8a198775 | 5,881 | cpp | C++ | OpenSees/SRC/domain/groundMotion/InterpolatedGroundMotion.cpp | kuanshi/ductile-fracture | ccb350564df54f5c5ec3a079100effe261b46650 | [
"MIT"
] | 8 | 2019-03-05T16:25:10.000Z | 2020-04-17T14:12:03.000Z | SRC/domain/groundMotion/InterpolatedGroundMotion.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | null | null | null | SRC/domain/groundMotion/InterpolatedGroundMotion.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | 3 | 2019-09-21T03:11:11.000Z | 2020-01-19T07:29:37.000Z | /* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... | 25.458874 | 92 | 0.558578 | kuanshi |
32a0c7754769a1c3f4cc12714467089ebc1be583 | 4,237 | cpp | C++ | Alien Engine/Alien Engine/ModuleAudio.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 7 | 2020-02-20T15:11:11.000Z | 2020-05-19T00:29:04.000Z | Alien Engine/Alien Engine/ModuleAudio.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 125 | 2020-02-29T17:17:31.000Z | 2020-05-06T19:50:01.000Z | Alien Engine/Alien Engine/ModuleAudio.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 1 | 2020-05-19T00:29:06.000Z | 2020-05-19T00:29:06.000Z | #include "Application.h"
#include "ModuleAudio.h"
#include "ComponentAudioEmitter.h"
#include "Event.h"
#include "mmgr/mmgr.h"
#include "Optick/include/optick.h"
ModuleAudio::ModuleAudio(bool start_enabled) : Module(start_enabled)
{
name = "audio";
}
ModuleAudio::~ModuleAudio()
{}
bool ModuleAudio::Start()
{
// I... | 19.892019 | 91 | 0.648808 | OverPowered-Team |
32a1f95935e11bdf24d984a323691566858ebe80 | 3,199 | cpp | C++ | tooling/showinshell_win.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | 54 | 2015-09-13T07:29:52.000Z | 2022-03-16T07:43:50.000Z | tooling/showinshell_win.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | null | null | null | tooling/showinshell_win.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | 31 | 2016-08-26T13:35:01.000Z | 2022-03-13T16:43:12.000Z | // https://github.com/KubaO/stackoverflown/tree/master/tooling
#include "tooling.h"
#ifdef Q_OS_WIN32
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <QAxObject>
#include <QCoreApplication>
#include <QDebug>
#include <QDir>
#include <QFileInfo>
#include <QTextBrowser>
#include <QUuid>
#include <ShObjIdl.h>
#incl... | 31.058252 | 88 | 0.641763 | SammyEnigma |
32a4a11ad05be2aba57383316057873d2484b831 | 1,974 | cpp | C++ | src/filter/filterset.cpp | ikitayama/cobi | e9bc4a5675ead1874ad9ffa953de8edb3a763479 | [
"BSD-3-Clause"
] | null | null | null | src/filter/filterset.cpp | ikitayama/cobi | e9bc4a5675ead1874ad9ffa953de8edb3a763479 | [
"BSD-3-Clause"
] | null | null | null | src/filter/filterset.cpp | ikitayama/cobi | e9bc4a5675ead1874ad9ffa953de8edb3a763479 | [
"BSD-3-Clause"
] | 1 | 2018-12-14T02:45:41.000Z | 2018-12-14T02:45:41.000Z | /*****************************************************************************
** Cobi http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 2009-2010 **
** ... | 28.608696 | 79 | 0.479737 | ikitayama |
32aa6b720a4b042b5e509e70837b9ec33b9d9ed4 | 13,994 | cc | C++ | ppapi/proxy/ppb_audio_input_proxy.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 212 | 2015-01-31T11:55:58.000Z | 2022-02-22T06:35:11.000Z | ppapi/proxy/ppb_audio_input_proxy.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 5 | 2015-03-27T14:29:23.000Z | 2019-09-25T13:23:12.000Z | ppapi/proxy/ppb_audio_input_proxy.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 221 | 2015-01-07T06:21:24.000Z | 2022-02-11T02:51:12.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ppapi/proxy/ppb_audio_input_proxy.h"
#include "base/compiler_specific.h"
#include "ppapi/c/dev/ppb_audio_input_dev.h"
#include "ppapi/c/pp_... | 37.119363 | 80 | 0.732242 | Scopetta197 |
32acc95ad00e98ee8b0be47a27d1fd28e7963ef7 | 1,073 | cpp | C++ | leetcode/60. Permutation Sequence.cpp | chamow97/Interview-Prep | 9ce13afef6090b1604f72bf5f80a6e1df65be24f | [
"MIT"
] | 1 | 2018-09-13T12:16:42.000Z | 2018-09-13T12:16:42.000Z | leetcode/60. Permutation Sequence.cpp | chamow97/Interview-Prep | 9ce13afef6090b1604f72bf5f80a6e1df65be24f | [
"MIT"
] | null | null | null | leetcode/60. Permutation Sequence.cpp | chamow97/Interview-Prep | 9ce13afef6090b1604f72bf5f80a6e1df65be24f | [
"MIT"
] | null | null | null | class Solution {
public:
int perm(int n) {
int curr = 1;
for(int i = 2; i <= n; i++) {
curr *= i;
}
return curr;
}
string getPermutation(int n, int k) {
set<int> s;
string ans = "";
for(int i = 1; i <= n; i++) {
s.insert(i);
... | 24.953488 | 75 | 0.321528 | chamow97 |
32ae93de04e4ee99e86e2c39c1712e06c1835e29 | 10,433 | cpp | C++ | vendor/android-tools/init/util.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | 3 | 2018-04-01T18:35:29.000Z | 2020-12-18T21:09:53.000Z | vendor/android-tools/init/util.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | 2 | 2017-04-24T12:29:05.000Z | 2017-05-09T12:27:10.000Z | vendor/android-tools/init/util.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 28.045699 | 111 | 0.571456 | dylanh333 |
32aee2b886c19799dabedf608ef816901dc70716 | 88,230 | cpp | C++ | printscan/wia/test/wiatest2/wiatestview.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | printscan/wia/test/wiatest2/wiatestview.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | printscan/wia/test/wiatest2/wiatestview.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // wiatestView.cpp : implementation of the CWiatestView class
//
#include "stdafx.h"
#include "wiatest.h"
#include "wiatestDoc.h"
#include "wiatestView.h"
#include "wiaeditpropdlg.h"
#include "wiacapdlg.h"
#include "wiaacquiredlg.h"
#include "wiadatacallback.h"
#include "wiadocacqsettings.h"
#ifdef _... | 38.731343 | 126 | 0.547002 | npocmaka |
32af3355a38b4aaf5e250e11dc330039addb0cf9 | 2,095 | cpp | C++ | powermode.cpp | eddiejames/openpower-occ-control-1 | bc2f68b9a5cabbdedd988ac14e010d651c685601 | [
"Apache-2.0"
] | 1 | 2021-08-10T21:50:06.000Z | 2021-08-10T21:50:06.000Z | powermode.cpp | eddiejames/openpower-occ-control-1 | bc2f68b9a5cabbdedd988ac14e010d651c685601 | [
"Apache-2.0"
] | 1 | 2021-10-19T19:47:53.000Z | 2021-10-19T19:47:53.000Z | powermode.cpp | eddiejames/openpower-occ-control-1 | bc2f68b9a5cabbdedd988ac14e010d651c685601 | [
"Apache-2.0"
] | 2 | 2019-07-16T16:13:01.000Z | 2021-10-20T21:41:02.000Z | #include <fmt/core.h>
#include <phosphor-logging/log.hpp>
#include <powermode.hpp>
#include <xyz/openbmc_project/Control/Power/Mode/server.hpp>
#include <cassert>
#include <regex>
namespace open_power
{
namespace occ
{
namespace powermode
{
using namespace phosphor::logging;
using Mode = sdbusplus::xyz::openbmc_pro... | 23.539326 | 80 | 0.623389 | eddiejames |
32b0095056c444d81f3846253150025d0ec460d9 | 1,673 | hpp | C++ | util/logging.hpp | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | null | null | null | util/logging.hpp | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | null | null | null | util/logging.hpp | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | 1 | 2020-10-04T22:14:55.000Z | 2020-10-04T22:14:55.000Z | #pragma once
/* Logging functions and macros used by all rsked applications.
*/
/* Part of the rsked package.
*
* Copyright 2020 Steven A. Harp
*
* 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 cop... | 30.981481 | 78 | 0.73162 | farlies |
32b0d7ad2c5ae1910e4a9e345a6279e42bae61d6 | 669 | cpp | C++ | test/forty_two.cpp | vinniefalco/library-template | 8fa8395d917163c29b9ecc21145ba78028b724da | [
"BSL-1.0"
] | 6 | 2020-03-02T22:40:17.000Z | 2020-03-09T20:49:24.000Z | test/forty_two.cpp | vinniefalco/library-template | 8fa8395d917163c29b9ecc21145ba78028b724da | [
"BSL-1.0"
] | 1 | 2020-12-01T20:01:36.000Z | 2020-12-01T20:01:36.000Z | test/forty_two.cpp | vinniefalco/library-template | 8fa8395d917163c29b9ecc21145ba78028b724da | [
"BSL-1.0"
] | 1 | 2020-11-30T22:29:51.000Z | 2020-11-30T22:29:51.000Z | //
// Copyright (c) 2020 Vinnie Falco (vinnie.falco@gmail.com)
//
// 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)
//
// Official repository: https://github.com/vinniefalco/library_template
//
// Test that header fi... | 20.90625 | 79 | 0.718984 | vinniefalco |
32b3ed3d609f2e874e79a1eb38b24d97ab1952fe | 839 | cpp | C++ | C/common/string_utils.cpp | ashish-ScaleDB/FogLAMP | fd52bc53f6a10752acdb1c549279dcaa406893a5 | [
"Apache-2.0"
] | 1 | 2020-09-10T11:34:04.000Z | 2020-09-10T11:34:04.000Z | C/common/string_utils.cpp | YashTatkondawar/FogLAMP | 6a3a6d45db9c9f0058110252202826e9859ccfa1 | [
"Apache-2.0"
] | 1 | 2017-09-06T14:05:21.000Z | 2017-09-06T14:05:21.000Z | C/common/string_utils.cpp | YashTatkondawar/FogLAMP | 6a3a6d45db9c9f0058110252202826e9859ccfa1 | [
"Apache-2.0"
] | null | null | null | /*
* FogLAMP utilities functions for handling JSON document
*
* Copyright (c) 2018 Dianomic Systems
*
* Released under the Apache 2.0 Licence
*
* Author: Stefano Simonelli
*/
#include <iostream>
#include <string>
#include "string_utils.h"
using namespace std;
/**
* Search and replace a string
*
* @param o... | 22.675676 | 80 | 0.709178 | ashish-ScaleDB |
32be67a5dc1a4a37e175de639614a6c71929c546 | 2,995 | cpp | C++ | Algorithms/0576.OutOfBoundaryPaths/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0576.OutOfBoundaryPaths/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0576.OutOfBoundaryPaths/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
#include "gtest/gtest.h"
namespace
{
class Solution
{
public:
int findPaths(int m, int n, int N, int i, int j) const
{
if (N == 0)
return 0;
size_t outPathsCount = 0;
const size_t storageSize = static_cast<size_t>(m) * n;
std:... | 31.197917 | 151 | 0.52187 | stdstring |
32c39ab5131ad707f6a922aff6697cbd0ace3949 | 2,732 | cpp | C++ | PATA1017.cpp | Geeks-Z/PAT-Advanced-Level-Practice | 6b25d07ae602310215e46c951638b93080b382bf | [
"MIT"
] | null | null | null | PATA1017.cpp | Geeks-Z/PAT-Advanced-Level-Practice | 6b25d07ae602310215e46c951638b93080b382bf | [
"MIT"
] | null | null | null | PATA1017.cpp | Geeks-Z/PAT-Advanced-Level-Practice | 6b25d07ae602310215e46c951638b93080b382bf | [
"MIT"
] | null | null | null | /*
* @Descripttion:
* @version: 1.0
* @Author: Geeks_Z
* @Date: 2021-05-13 10:20:55
* @LastEditors: Geeks_Z
* @LastEditTime: 2021-05-30 21:33:19
*/
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
const int MAXN = 501;
const int INF = 100010;
bool vis[MAXN] = {false};
//连接矩阵 起点到该点最短距... | 18.841379 | 86 | 0.453148 | Geeks-Z |
32c49cffb08f92d04c4f2794fcc658344e531edf | 695 | hpp | C++ | NWNXLib/API/Linux/API/CExoLinkedListTemplatedCERFRes.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Linux/API/CExoLinkedListTemplatedCERFRes.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Linux/API/CExoLinkedListTemplatedCERFRes.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
#include <cstdint>
namespace NWNXLib {
namespace API {
// Forward class declarations (defined in the source file)
struct CExoLinkedListInternal;
struct CExoLinkedListTemplatedCERFRes
{
CExoLinkedListInternal* m_pcExoLinkedListInternal;
// The below are auto generated stubs.
CExoLinkedList... | 23.965517 | 113 | 0.811511 | acaos |
32c5d68b9d08b4efec7cf2a0bf90bc9ea057716c | 4,024 | cpp | C++ | wpimath/src/test/native/cpp/geometry/Translation3dTest.cpp | frc1418/allwpilib | a4787130f4434f00f4800b23e815105b022c4783 | [
"BSD-3-Clause"
] | null | null | null | wpimath/src/test/native/cpp/geometry/Translation3dTest.cpp | frc1418/allwpilib | a4787130f4434f00f4800b23e815105b022c4783 | [
"BSD-3-Clause"
] | null | null | null | wpimath/src/test/native/cpp/geometry/Translation3dTest.cpp | frc1418/allwpilib | a4787130f4434f00f4800b23e815105b022c4783 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <cmath>
#include "frc/geometry/Translation3d.h"
#include "gtest/gtest.h"
using namespace frc;
static constex... | 31.193798 | 74 | 0.694583 | frc1418 |
32c781b3614915d5dd36d907d45946d4e230d68e | 2,403 | cpp | C++ | NULL Engine/Source/R_Texture.cpp | BarcinoLechiguino/NULL_Engine | f2abecb44bee45b7cbf2d5b53609d79d38ecc5a3 | [
"MIT"
] | 4 | 2020-11-29T12:28:31.000Z | 2021-06-08T17:32:56.000Z | NULL Engine/Source/R_Texture.cpp | BarcinoLechiguino/NULL_Engine | f2abecb44bee45b7cbf2d5b53609d79d38ecc5a3 | [
"MIT"
] | null | null | null | NULL Engine/Source/R_Texture.cpp | BarcinoLechiguino/NULL_Engine | f2abecb44bee45b7cbf2d5b53609d79d38ecc5a3 | [
"MIT"
] | 4 | 2020-11-01T17:06:32.000Z | 2021-01-09T16:58:50.000Z | #include "OpenGL.h"
#include "VariableTypedefs.h"
#include "JSONParser.h"
#include "R_Texture.h"
R_Texture::R_Texture() : Resource(RESOURCE_TYPE::TEXTURE)
{
}
R_Texture::~R_Texture()
{
}
bool R_Texture::CleanUp()
{
bool ret = true;
glDeleteTextures(1, (GLuint*)&tex_data.id);
return ret;
}
bool R_Texture::... | 17.8 | 138 | 0.707033 | BarcinoLechiguino |
32cd47a750a6e5e362d342f372e5150b3d689d2d | 248,622 | cc | C++ | runtime/verifier/method_verifier.cc | Paschalis/android-llvm | 317f7fd4b736a0511a2273a2487915c34cf8933e | [
"Apache-2.0"
] | 20 | 2021-06-24T16:38:42.000Z | 2022-01-20T16:15:57.000Z | runtime/verifier/method_verifier.cc | Paschalis/android-llvm | 317f7fd4b736a0511a2273a2487915c34cf8933e | [
"Apache-2.0"
] | null | null | null | runtime/verifier/method_verifier.cc | Paschalis/android-llvm | 317f7fd4b736a0511a2273a2487915c34cf8933e | [
"Apache-2.0"
] | 4 | 2021-11-03T06:01:12.000Z | 2022-02-24T02:57:31.000Z | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 44.983174 | 104 | 0.632856 | Paschalis |
32cd67bff30596424078cb678afc661879634df1 | 61 | hpp | C++ | src/boost_metaparse_error_unexpected_end_of_input.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_metaparse_error_unexpected_end_of_input.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_metaparse_error_unexpected_end_of_input.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/metaparse/error/unexpected_end_of_input.hpp>
| 30.5 | 60 | 0.852459 | miathedev |
32cdd136909d5c3cc58f8a2df095b70277a36735 | 478 | cc | C++ | Code/0152-maximum-product-subarray.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/0152-maximum-product-subarray.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/0152-maximum-product-subarray.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
int maxProduct(vector<int>& nums) {
if (nums.size() == 0) {
return 0;
}
int result = nums[0], pos = nums[0], neg = nums[0];
for (int i = 1; i < nums.size(); i++) {
int tmp = pos;
pos = max(nums[i], max(nums[i] * pos, nums[i... | 29.875 | 66 | 0.439331 | SMartQi |
32ce8149e468185aaa18447e4a322920f41b8889 | 941 | cpp | C++ | 126B.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | null | null | null | 126B.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | null | null | null | 126B.cpp | basuki57/Codeforces | 5227c3deecf13d90e5ea45dab0dfc16b44bd028c | [
"MIT"
] | 2 | 2020-10-03T04:52:14.000Z | 2020-10-03T05:19:12.000Z | //https://codeforces.com/contest/126/problem/B
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
vector<ll> zfun(string s){
ll n = s.length();
vector<ll> z(n);
for(ll i = 1; i < n; ++i){
ll j = z[i-1];
while(j > 0 && s[i] != s[j]) j = z[j-1];
if(s[i]== s[j])++j;... | 21.386364 | 54 | 0.446334 | basuki57 |
32d06204c27b116774669b99f6e78685736e1171 | 1,578 | cpp | C++ | SYCL/USM/source_kernel_indirect_access.cpp | asidoren-intel/llvm-test-suite | 93d8391573adfc19b759f971e1269a245be4b87a | [
"Apache-2.0"
] | null | null | null | SYCL/USM/source_kernel_indirect_access.cpp | asidoren-intel/llvm-test-suite | 93d8391573adfc19b759f971e1269a245be4b87a | [
"Apache-2.0"
] | null | null | null | SYCL/USM/source_kernel_indirect_access.cpp | asidoren-intel/llvm-test-suite | 93d8391573adfc19b759f971e1269a245be4b87a | [
"Apache-2.0"
] | null | null | null | // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %opencl_lib %s -o %t1.out
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// RUN: %ACC_RUN_PLACEHOLDER %t1.out
// REQUIRES: opencl,opencl_icd
#include <CL/cl.h>
#include <CL/sycl.hpp>
using namespace sycl;
static const char *Src = R"(
kern... | 27.206897 | 77 | 0.636248 | asidoren-intel |
32d2a8c84b423fb5fe0febe95ee200a0dd62bb4a | 1,064 | ipp | C++ | coast/mtfoundation/ThreadPools.ipp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/mtfoundation/ThreadPools.ipp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/mtfoundation/ThreadPools.ipp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2007, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | 32.242424 | 102 | 0.709586 | zer0infinity |
32d4bc55702032746bfcd58d055e479b509c06c9 | 6,713 | cpp | C++ | src/misaxx/ome/caches/misa_ome_tiff_cache.cpp | applied-systems-biology/misaxx-ome | 8cffeb3a7bbf569ede1e2777417116e082d1a660 | [
"BSD-2-Clause"
] | null | null | null | src/misaxx/ome/caches/misa_ome_tiff_cache.cpp | applied-systems-biology/misaxx-ome | 8cffeb3a7bbf569ede1e2777417116e082d1a660 | [
"BSD-2-Clause"
] | null | null | null | src/misaxx/ome/caches/misa_ome_tiff_cache.cpp | applied-systems-biology/misaxx-ome | 8cffeb3a7bbf569ede1e2777417116e082d1a660 | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright by Ruman Gerst
* Research Group Applied Systems Biology - Head: Prof. Dr. Marc Thilo Figge
* https://www.leibniz-hki.de/en/applied-systems-biology.html
* HKI-Center for Systems Biology of Infection
* Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Insitute (HKI)
*... | 43.590909 | 138 | 0.688515 | applied-systems-biology |
32d6400d5b4faed0e74ecd60a5837859c0850664 | 3,731 | cpp | C++ | libiop/tests/algebra/test_gf256.cpp | pwang00/libiop | 640a627f0e844caf88ac66cc2ab16f1ef3ea3283 | [
"MIT"
] | null | null | null | libiop/tests/algebra/test_gf256.cpp | pwang00/libiop | 640a627f0e844caf88ac66cc2ab16f1ef3ea3283 | [
"MIT"
] | null | null | null | libiop/tests/algebra/test_gf256.cpp | pwang00/libiop | 640a627f0e844caf88ac66cc2ab16f1ef3ea3283 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "libiop/algebra/fields/gf256.hpp"
namespace libiop {
gf256 gf256_mul(const uint64_t &a_val_high, const uint64_t &a_val_midh,
const uint64_t &a_val_midl, const uint64_t &a_val_low,
const uint64_t &b_val_high, const uint64_t &b_val_midh,
... | 95.666667 | 296 | 0.845886 | pwang00 |
32d832956b93505661a7cfc46df77b05ea14772c | 6,193 | cpp | C++ | PopcornTime_Desktop-src/Import/QtAV/examples/player/playlist/PlayList.cpp | officialrafsan/POPCORNtime | b5bc452b10d7b46c2f4978e37d7fd2e9c0f75782 | [
"MIT"
] | null | null | null | PopcornTime_Desktop-src/Import/QtAV/examples/player/playlist/PlayList.cpp | officialrafsan/POPCORNtime | b5bc452b10d7b46c2f4978e37d7fd2e9c0f75782 | [
"MIT"
] | null | null | null | PopcornTime_Desktop-src/Import/QtAV/examples/player/playlist/PlayList.cpp | officialrafsan/POPCORNtime | b5bc452b10d7b46c2f4978e37d7fd2e9c0f75782 | [
"MIT"
] | null | null | null | /******************************************************************************
QtAV Player Demo: this file is part of QtAV examples
Copyright (C) 2012-2015 Wang Bin <wbsecg1@gmail.com>
* This file is part of QtAV
This program is free software: you can redistribute it and/or modify
it under the ter... | 28.15 | 100 | 0.627967 | officialrafsan |
32dcdf57ff8a79e18f9c97c82c1e0f33056c689a | 3,011 | hpp | C++ | include/codegen/include/OVR/OpenVR/IVRSystem__GetStringTrackedDeviceProperty.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/OVR/OpenVR/IVRSystem__GetStringTrackedDeviceProperty.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/OVR/OpenVR/IVRSystem__GetStringTrackedDeviceProperty.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:00 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.MulticastDelegate
#include "System/MulticastDelegate.... | 52.824561 | 272 | 0.771504 | Futuremappermydud |
32dcfa27d365d926a6a189e23f69bdf5da32d1a9 | 5,016 | cpp | C++ | Engine/tr/gameobject/SpriteComponent.cpp | manimax3/Tronus | f4ddd78d3332a1fbe0956e7c1a407811be3d2bc7 | [
"MIT"
] | null | null | null | Engine/tr/gameobject/SpriteComponent.cpp | manimax3/Tronus | f4ddd78d3332a1fbe0956e7c1a407811be3d2bc7 | [
"MIT"
] | null | null | null | Engine/tr/gameobject/SpriteComponent.cpp | manimax3/Tronus | f4ddd78d3332a1fbe0956e7c1a407811be3d2bc7 | [
"MIT"
] | null | null | null | #include "SpriteComponent.h"
#include "../core/Engine.h"
#include "../filesystem/ResourceManager.h"
#include "../graphics/GraphicsHandler.h"
#include "../graphics/Texture.h"
#include "World.h"
#define GLM_ENABLE_EXPERIMENTAL
#include "glm/gtx/matrix_transform_2d.hpp"
void tr::SpriteComponent::OnWorldEnter(World &wor... | 25.333333 | 79 | 0.647129 | manimax3 |
32dd370c0f9c38cd961a39812a5bbedf9285e81b | 676 | cc | C++ | Code/1659-get-the-maximum-score.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/1659-get-the-maximum-score.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/1659-get-the-maximum-score.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
int maxSum(vector<int>& nums1, vector<int>& nums2) {
long long n1 = 0, n2 = 0;
int p = nums1.size() - 1, q = nums2.size() - 1;
while (p >= 0 && q >= 0) {
if (nums1[p] > nums2[q]) {
n1 += nums1[p--];
} else if (nums1[p] < nums2[... | 27.04 | 56 | 0.337278 | SMartQi |
77fe6c5d2daaf516cecb61e5772274380ff47193 | 1,278 | cpp | C++ | bindings/python/src/LibraryPhysicsPy/Environment/Magnetic/Dipole.cpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | bindings/python/src/LibraryPhysicsPy/Environment/Magnetic/Dipole.cpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | bindings/python/src/LibraryPhysicsPy/Environment/Magnetic/Dipole.cpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Library ▸ Physics
/// @file LibraryPhysicsPy/Environment/Magnetic/Dipole.cpp
/// @author Lucas Brémond <lucas@loftorbita... | 39.9375 | 160 | 0.324726 | cowlicks |
ae045c9a460af1c7b67fd9565e570a701c9257d3 | 171 | cpp | C++ | config_tools/check_cpu.tool.cpp | SamuraiCrow/AmosKittens | e89477b94a28916e4320fa946c18c0d769c710b2 | [
"MIT"
] | 7 | 2018-04-24T22:11:58.000Z | 2021-09-10T22:12:35.000Z | config_tools/check_cpu.tool.cpp | SamuraiCrow/AmosKittens | e89477b94a28916e4320fa946c18c0d769c710b2 | [
"MIT"
] | 36 | 2018-02-24T18:34:18.000Z | 2021-08-08T10:33:29.000Z | config_tools/check_cpu.tool.cpp | SamuraiCrow/AmosKittens | e89477b94a28916e4320fa946c18c0d769c710b2 | [
"MIT"
] | 2 | 2018-10-22T18:47:30.000Z | 2020-09-16T06:10:52.000Z |
#include <stdio.h>
#include <stdlib.h>
int main(int args,char **arg)
{
int value = 1;
if ( *((char *) &value) == 1 )
{
printf("#define __LITTLE_ENDIAN__\n");
}
} | 12.214286 | 40 | 0.578947 | SamuraiCrow |
ae09efe5f7bc628a40fca75a74fd9b271f95c7d0 | 810 | cpp | C++ | Plugins/org.blueberry.ui.qt/src/internal/dialogs/berryMessageDialogWithToggle.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Plugins/org.blueberry.ui.qt/src/internal/dialogs/berryMessageDialogWithToggle.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Plugins/org.blueberry.ui.qt/src/internal/dialogs/berryMessageDialogWithToggle.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY o... | 26.129032 | 70 | 0.633333 | liu3xing3long |
ae0a3f06fce60ff1b318cb37a140de678f9abca3 | 1,156 | cpp | C++ | Codeforces/1462C.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1462C.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1462C.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define y1 yy
#define f first
#define s second
#define ll long long
#define vi vector<int>
#define pii pair<int, int>
#define debug if(printDebug)
#define noDebug if(!printDebug)
using namespace std;
template<class T>
using v=vector<T>;
bool printDebug=false;
int ans[51];
bool used[10];
void ... | 21.407407 | 65 | 0.521626 | DT3264 |
ae0ad4adaed1a74b592b4dca91d9e1528077222c | 2,376 | cpp | C++ | test/istream.cpp | danra/scnlib | 815782badc1b548c21bb151372497e1516bee806 | [
"Apache-2.0"
] | 556 | 2018-11-17T01:49:32.000Z | 2022-03-25T09:35:10.000Z | test/istream.cpp | danra/scnlib | 815782badc1b548c21bb151372497e1516bee806 | [
"Apache-2.0"
] | 51 | 2019-05-09T14:36:53.000Z | 2022-03-19T12:47:12.000Z | test/istream.cpp | danra/scnlib | 815782badc1b548c21bb151372497e1516bee806 | [
"Apache-2.0"
] | 21 | 2019-02-11T19:56:30.000Z | 2022-03-28T02:52:27.000Z | // Copyright 2017 Elias Kosunen
//
// 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 ... | 23.294118 | 75 | 0.621212 | danra |
ae0cf9861d85e17a183690be0bd6bf178259c176 | 44,069 | cpp | C++ | src/ModelSet.cpp | marcussvensson92/inner_conservative_occluder_rasterization | cbf05803d1e7658e95277d093dbae9570a874c59 | [
"MIT"
] | null | null | null | src/ModelSet.cpp | marcussvensson92/inner_conservative_occluder_rasterization | cbf05803d1e7658e95277d093dbae9570a874c59 | [
"MIT"
] | 1 | 2017-09-10T11:58:30.000Z | 2017-09-10T11:58:30.000Z | src/ModelSet.cpp | marcussvensson92/inner_conservative_occluder_rasterization | cbf05803d1e7658e95277d093dbae9570a874c59 | [
"MIT"
] | null | null | null | #include "ModelSet.h"
#include "OcclusionAlgorithm.h"
#include <DDSTextureLoader.h>
#include <fstream>
#include <locale>
#include <codecvt>
CModelSet::CModelSet() :
m_InstanceCount( 0 ),
m_MaterialBuffer( nullptr ),
m_MaterialBufferUpload( nullptr ),
m_WorldMatrixBufferSize( 0 ),
m_WorldMatrixB... | 45.85744 | 193 | 0.700992 | marcussvensson92 |
ae0fc2433cb8618561f8767d7d610762b4fcf790 | 2,675 | cc | C++ | legacy/src/game/event.cc | hengruo/RuneSim | f975374c7ce52baf8f226e8485e2e6e155d52cb2 | [
"Apache-2.0"
] | 9 | 2020-04-28T13:47:07.000Z | 2020-10-03T16:05:53.000Z | legacy/src/game/event.cc | hengruo/RuneSim | f975374c7ce52baf8f226e8485e2e6e155d52cb2 | [
"Apache-2.0"
] | null | null | null | legacy/src/game/event.cc | hengruo/RuneSim | f975374c7ce52baf8f226e8485e2e6e155d52cb2 | [
"Apache-2.0"
] | 4 | 2020-04-27T08:13:09.000Z | 2020-06-02T02:48:07.000Z | #include "event.h"
CastEvent::CastEvent(RSID PlayerId, RSID SpellId) : playerId(PlayerId), spellId(SpellId) {}
DeclAttackEvent::DeclAttackEvent(RSID PlayerId, RSID AttackerId, i8 Position)
: playerId(PlayerId), attackerId(AttackerId), position(Position) {}
DeclBlockEvent::DeclBlockEvent(RSID PlayerId, RSID Attacker... | 74.305556 | 114 | 0.776075 | hengruo |
ae11b66c536b7876bda8e855c60424e8136d3641 | 10,081 | cpp | C++ | test/type/logic/And.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | null | null | null | test/type/logic/And.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | 178 | 2018-08-08T04:04:27.000Z | 2019-12-15T01:47:58.000Z | test/type/logic/And.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | null | null | null | #include "type/logic/And.h"
#define USING_BASIC_TEST_MEMORY
#include "Test.h"
BASIC_TEST_CONSTRUCT;
#include "test/Base.h"
#include "test/Case.h"
#include "test/Message.h"
#include "test/Variable.h"
#include "test/var/At.h"
#include <typeinfo>
#include <type_traits>
struct CaseVTa {}; // case value and target
struc... | 37.337037 | 80 | 0.716397 | AnantaYudica |
ae13b2316bf455bd9154221d528693bb9c139d71 | 778 | cpp | C++ | solved/10338 Mischievous Children.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/10338 Mischievous Children.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/10338 Mischievous Children.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | // WRONG ANSWERE
#include<stdio.h>
#include<string.h>
char word[22],nline;
int time[22],len;
void main()
{
int tcase,i,j, k;
double N, fact;
scanf("%d%c",&tcase,&nline);
for(i=0;i<tcase;i++)
{
scanf("%s",word);
scanf("%c",&nline);
len = strlen(word);
if(len==1)
{
printf("Data set %d: ... | 11.61194 | 39 | 0.458869 | goutomroy |
ae161ce585be03f44f9691664d2e5dfe6507241a | 6,759 | cpp | C++ | examples/main.cpp | DarkCaster/Micro-AES-Arduino | ebb1cbf89c2c8d971e9ea111eef2299789c56762 | [
"MIT"
] | null | null | null | examples/main.cpp | DarkCaster/Micro-AES-Arduino | ebb1cbf89c2c8d971e9ea111eef2299789c56762 | [
"MIT"
] | null | null | null | examples/main.cpp | DarkCaster/Micro-AES-Arduino | ebb1cbf89c2c8d971e9ea111eef2299789c56762 | [
"MIT"
] | null | null | null | #include <Arduino.h> //dummy arduino.h for compiling arduino code on desktop systems
#include <aes.h>
#include <cstdio>
#define BLKSZ 16
void verify(const uint8_t * const input, const uint8_t * const output, const uint8_t * const test)
{
//verify
bool verifyOk=true;
for(int i=0;i<BLKSZ;++i)
if(*(test+i)!=*(... | 37.759777 | 188 | 0.733245 | DarkCaster |
ae16385cc7eca56e94f53701d593e2310f2f8d21 | 970 | cpp | C++ | graph-source-code/230-E/4442480.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/230-E/4442480.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/230-E/4442480.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <cmath>
#include <ctime>
#include <algorithm>
#include <vector>
#include <queue>
#include <deque>
#include <stack>
#include <set>
#include <ma... | 18.653846 | 51 | 0.598969 | AmrARaouf |
ae194a06ae06c7f94a886e778f5295ea8d9b2247 | 24,020 | hpp | C++ | engine/generic_list.hpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | engine/generic_list.hpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | engine/generic_list.hpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2021 Intel Corporation
*/
#pragma once
#include <immintrin.h>
#include <libpmem.h>
#include <x86intrin.h>
#include <array>
#include <atomic>
#include <deque>
#include <iomanip>
#include <iostream>
#include <libpmemobj++/string_view.hpp>
#include <mutex>
#incl... | 31.154345 | 80 | 0.613197 | iyupeng |
ae236083dd3d4f9d4d431e5a1fd8148244353fc5 | 1,417 | cpp | C++ | Ejercicio03/compset_iteration_01/lib/RequestHandler/test/test.cpp | SmartNetAR/edi3 | 68e28b58e04b728bc48700378b2afe8f16872974 | [
"MIT"
] | null | null | null | Ejercicio03/compset_iteration_01/lib/RequestHandler/test/test.cpp | SmartNetAR/edi3 | 68e28b58e04b728bc48700378b2afe8f16872974 | [
"MIT"
] | null | null | null | Ejercicio03/compset_iteration_01/lib/RequestHandler/test/test.cpp | SmartNetAR/edi3 | 68e28b58e04b728bc48700378b2afe8f16872974 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2016 Gabriel Ferreira <gabrielinuz@gmail.com>. All rights reserved.
* This file is part of COMPSET.
* Released under the GPL3 license
* https://opensource.org/licenses/GPL-3.0
**/
#include <iostream>
#include <vector>
#include <unordered_map>
#include <string>
#include <compset/ComponentInterface... | 32.204545 | 122 | 0.721948 | SmartNetAR |
ae23abb8b6a210768d8f1f3438cd33e73abbf59c | 61 | hpp | C++ | addons/modules/modules/curator/prep.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 1 | 2020-06-07T00:45:49.000Z | 2020-06-07T00:45:49.000Z | addons/modules/modules/curator/prep.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 27 | 2020-05-24T11:09:56.000Z | 2020-05-25T12:28:10.000Z | addons/modules/modules/curator/prep.hpp | Krzyciu/A3CS | b7144fc9089b5ded6e37cc1fad79b1c2879521be | [
"MIT"
] | 2 | 2020-05-31T08:52:45.000Z | 2021-04-16T23:16:37.000Z |
PREP_MODULE(curator,module);
PREP_MODULE(curator,validate);
| 15.25 | 30 | 0.819672 | Krzyciu |
ae253bbbba2b1326e6621f9d165fd1fd8ec7ae36 | 264 | cpp | C++ | src/triangle-rasterizer-demo/src/trdDirectionalLight.cpp | frmr/triangle-rasterizer-demo | 963f32435ebae5b7fbe6fa212709bdc3ea66ac36 | [
"MIT"
] | null | null | null | src/triangle-rasterizer-demo/src/trdDirectionalLight.cpp | frmr/triangle-rasterizer-demo | 963f32435ebae5b7fbe6fa212709bdc3ea66ac36 | [
"MIT"
] | null | null | null | src/triangle-rasterizer-demo/src/trdDirectionalLight.cpp | frmr/triangle-rasterizer-demo | 963f32435ebae5b7fbe6fa212709bdc3ea66ac36 | [
"MIT"
] | null | null | null | #include "trdDirectionalLight.hpp"
trd::DirectionalLight::DirectionalLight(const Vector3& color, Vector3 direction) :
Light(color),
m_direction(direction.normalize())
{
}
const tr::QuadVec3& trd::DirectionalLight::getDirection() const
{
return m_direction;
}
| 20.307692 | 82 | 0.772727 | frmr |
ae29405ad0a2b3f5557e18d58f596bd9ecdd8ee0 | 1,249 | cpp | C++ | android/android_42/base/services/jni/com_android_server_SystemServer.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | 1 | 2021-03-05T06:48:29.000Z | 2021-03-05T06:48:29.000Z | frameworks/base/services/jni/com_android_server_SystemServer.cpp | CPU-Code/android_bottom | 76db08af7719d88d8ee3e51ed310ffe14f14e522 | [
"Apache-2.0"
] | null | null | null | frameworks/base/services/jni/com_android_server_SystemServer.cpp | CPU-Code/android_bottom | 76db08af7719d88d8ee3e51ed310ffe14f14e522 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 26.020833 | 85 | 0.717374 | yakuizhao |
ae2c48b1aa5739963134ca4224fbc585db1d1a24 | 981 | hpp | C++ | aboveGroundSpace.hpp | KrisBierma/textBasedStrategyGame | 231b0e9a33d8892edfb3fd85fb64679c8b237540 | [
"MIT"
] | null | null | null | aboveGroundSpace.hpp | KrisBierma/textBasedStrategyGame | 231b0e9a33d8892edfb3fd85fb64679c8b237540 | [
"MIT"
] | null | null | null | aboveGroundSpace.hpp | KrisBierma/textBasedStrategyGame | 231b0e9a33d8892edfb3fd85fb64679c8b237540 | [
"MIT"
] | null | null | null | /********************************************************************
** Program name:The Secret Treasure, A Text-Based Game (Project 5)
** Author: Kris Bierma
** Date: 12/6/19
** Description: AboveGroundSpace class is derived from Space class.
** It overrides the getSpaceType functions, has its... | 39.24 | 134 | 0.618756 | KrisBierma |
ae2d6f76a540fbc65b45fd727817188f11835f8d | 1,236 | cpp | C++ | src/run_async_simple.cpp | drix00/MonteCarlo-BSE | f8131f25794e1afe393f54812caae37a06effb8e | [
"Apache-2.0"
] | null | null | null | src/run_async_simple.cpp | drix00/MonteCarlo-BSE | f8131f25794e1afe393f54812caae37a06effb8e | [
"Apache-2.0"
] | 13 | 2021-07-26T16:41:30.000Z | 2021-07-26T17:15:24.000Z | src/run_async_simple.cpp | drix00/MonteCarlo-BSE | f8131f25794e1afe393f54812caae37a06effb8e | [
"Apache-2.0"
] | null | null | null | //
// Created by Hendrix Demers on 2020-05-10.
//
#include <string>
#include "inputs.h"
#include "simulate.h"
void simulate_number_trajectories_repetitions(std::string suffix)
{
run_simulations_async_simple("simulate_async_simple_number_trajectories_repetitions", suffix, get_inputs_number_trajectories_repetitions... | 28.090909 | 144 | 0.800162 | drix00 |
ae2f9969a23231b099261429bcf4614bbb48e80c | 769 | cpp | C++ | Luogu/P7947.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | null | null | null | Luogu/P7947.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | 1 | 2021-11-18T15:10:29.000Z | 2021-11-20T07:13:31.000Z | Luogu/P7947.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | /*
* @author Nickel_Angel (1239004072@qq.com)
* @copyright Copyright (c) 2021
*/
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <numeric>
#include <vector>
int n, k;
std::vector<int> ans;
int main()
{
scanf("%d%d", &n, &k);
for (int i = 2, bound = n; i * i <= bound; ++i)
{
whi... | 18.756098 | 57 | 0.446034 | Nickel-Angel |
ae30af79ea1f3c2125eb94c5fd7f2b5e5aab7fa2 | 1,009 | hpp | C++ | Questless/Questless/src/animation/scene_node.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | 2 | 2020-07-14T12:50:06.000Z | 2020-11-04T02:25:09.000Z | Questless/Questless/src/animation/scene_node.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | null | null | null | Questless/Questless/src/animation/scene_node.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | null | null | null | //! @file
//! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>.
#pragma once
#include "animation.hpp"
#include "utility/reference.hpp"
#include <deque>
namespace ql {
//! An animation with attached child animations. A scene node's transform is composed with its children's transforms.
struct scene_node : anim... | 30.575758 | 118 | 0.733399 | jonathansharman |
ae31b3c508e6deebb4beac171151e2d81164be59 | 119,953 | cpp | C++ | src/parser/ds_lexer.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 421 | 2019-08-15T15:40:04.000Z | 2022-03-29T06:59:06.000Z | src/parser/ds_lexer.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 55 | 2019-08-17T13:50:53.000Z | 2022-03-25T17:58:38.000Z | src/parser/ds_lexer.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 58 | 2019-08-22T17:04:13.000Z | 2022-03-25T17:43:28.000Z | #line 1 "ds_lexer.cpp"
#line 3 "ds_lexer.cpp"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
#ifdef yy_creat... | 28.304153 | 142 | 0.631289 | profelis |
ae321c80dfaadc0e06163c683151a761e76510f2 | 767 | cpp | C++ | union_find/test.cpp | fedom/Algorithms | 94f9c80c7425d4739be8fb67292deb6b8bb78cc2 | [
"MIT"
] | null | null | null | union_find/test.cpp | fedom/Algorithms | 94f9c80c7425d4739be8fb67292deb6b8bb78cc2 | [
"MIT"
] | null | null | null | union_find/test.cpp | fedom/Algorithms | 94f9c80c7425d4739be8fb67292deb6b8bb78cc2 | [
"MIT"
] | null | null | null | #include "quick_find_uf.h"
#include <stdio.h>
#include <time.h>
#include <fstream>
#include <iostream>
int main(int argc, char *argv[]) {
char *file = "tinyUF.txt";
if (argc >= 2) file = argv[1];
std::ifstream ifs(file);
if (ifs.is_open()) {
int total;
ifs >> total;
std::cou... | 18.707317 | 60 | 0.461538 | fedom |
ae32608389dcce554a973f5f0a4686186be5e47b | 2,286 | cc | C++ | src/ragnarok/ui_window_mgr/ui_window_mgr.cc | sctnightcore/Bourgeon | d2386dc9e141dc4d830337f3ab0a654826819a85 | [
"MIT"
] | null | null | null | src/ragnarok/ui_window_mgr/ui_window_mgr.cc | sctnightcore/Bourgeon | d2386dc9e141dc4d830337f3ab0a654826819a85 | [
"MIT"
] | null | null | null | src/ragnarok/ui_window_mgr/ui_window_mgr.cc | sctnightcore/Bourgeon | d2386dc9e141dc4d830337f3ab0a654826819a85 | [
"MIT"
] | null | null | null | #include "ui_window_mgr.h"
#include <iostream>
#include "bourgeon.h"
bool UIWindowMgr::ProcessPushButton(unsigned long vkey, int new_key,
int accurate_key) {
return ProcessPushButtonRef(this_, vkey, new_key, accurate_key);
}
size_t UIWindowMgr::SendMsg(UIMessage message, int val1... | 37.47541 | 80 | 0.651356 | sctnightcore |
ae32bfab82b547009bae83a8b64a52cb93584c57 | 7,730 | cpp | C++ | src/slg/kernels/texture_noise_funcs_kernel.cpp | DavidBluecame/LuxRays | be0f5228b8b65268278a6c6a1c98564ebdc27c05 | [
"Apache-2.0"
] | null | null | null | src/slg/kernels/texture_noise_funcs_kernel.cpp | DavidBluecame/LuxRays | be0f5228b8b65268278a6c6a1c98564ebdc27c05 | [
"Apache-2.0"
] | null | null | null | src/slg/kernels/texture_noise_funcs_kernel.cpp | DavidBluecame/LuxRays | be0f5228b8b65268278a6c6a1c98564ebdc27c05 | [
"Apache-2.0"
] | null | null | null | #include <string>
namespace slg { namespace ocl {
std::string KernelSource_texture_noise_funcs =
"#line 2 \"texture_noise_funcs.cl\"\n"
"\n"
"/***************************************************************************\n"
" * Copyright 1998-2015 by authors (see AUTHORS.txt) *\n"
" * ... | 52.22973 | 103 | 0.520181 | DavidBluecame |
ae33f2a025285a2f707a6f723ac0a96c58b54f7e | 10,060 | cpp | C++ | LEGACY/src/librapid/array/multiarray_constructors.cpp | NervousNullPtr/librapid | 2a8f4baccf479138097d5b4ee9e6e060ecab55db | [
"MIT"
] | null | null | null | LEGACY/src/librapid/array/multiarray_constructors.cpp | NervousNullPtr/librapid | 2a8f4baccf479138097d5b4ee9e6e060ecab55db | [
"MIT"
] | null | null | null | LEGACY/src/librapid/array/multiarray_constructors.cpp | NervousNullPtr/librapid | 2a8f4baccf479138097d5b4ee9e6e060ecab55db | [
"MIT"
] | null | null | null | #include <librapid/array/multiarray.hpp>
#include <librapid/utils/array_utils.hpp>
namespace librapid {
RawArray validRawArray =
RawArray {(int64_t *)nullptr, Datatype::VALIDNONE, Accelerator::CPU};
#ifdef LIBRAPID_HAS_CUDA
# ifdef LIBRAPID_CUDA_STREAM
cudaStream_t cudaStream;
bool streamCreated = false;
# e... | 26.826667 | 75 | 0.647614 | NervousNullPtr |
ae36c8f83d840e914ead13a81dc0fa31d4615f64 | 49 | cpp | C++ | SpaceStationRescueSouls/SpaceStationRescueSouls/src/component/CollisionWorld.cpp | Neversee-Productions/Space-Station-Rescue-Souls | 48621dd8ddf9c6282669b1547ebca0af56ef7fa9 | [
"MIT"
] | 1 | 2020-03-24T04:40:18.000Z | 2020-03-24T04:40:18.000Z | SpaceStationRescueSouls/SpaceStationRescueSouls/src/component/CollisionWorld.cpp | Neversee-Productions/Space-Station-Rescue-Souls | 48621dd8ddf9c6282669b1547ebca0af56ef7fa9 | [
"MIT"
] | null | null | null | SpaceStationRescueSouls/SpaceStationRescueSouls/src/component/CollisionWorld.cpp | Neversee-Productions/Space-Station-Rescue-Souls | 48621dd8ddf9c6282669b1547ebca0af56ef7fa9 | [
"MIT"
] | 1 | 2020-03-24T04:40:19.000Z | 2020-03-24T04:40:19.000Z | #include "stdafx.h"
#include "CollisionWorld.h"
| 16.333333 | 27 | 0.734694 | Neversee-Productions |
ae3ec18d2a119012ad56ed7f81928f0c4bcf9c5d | 4,579 | cpp | C++ | frameworks/compile/mclinker/tools/lite/main.cpp | touxiong88/92_mediatek | 5e96a7bb778fd9d9b335825584664e0c8b5ff2c7 | [
"Apache-2.0"
] | 1 | 2022-01-07T01:53:19.000Z | 2022-01-07T01:53:19.000Z | frameworks/compile/mclinker/tools/lite/main.cpp | touxiong88/92_mediatek | 5e96a7bb778fd9d9b335825584664e0c8b5ff2c7 | [
"Apache-2.0"
] | null | null | null | frameworks/compile/mclinker/tools/lite/main.cpp | touxiong88/92_mediatek | 5e96a7bb778fd9d9b335825584664e0c8b5ff2c7 | [
"Apache-2.0"
] | 1 | 2020-02-28T02:48:42.000Z | 2020-02-28T02:48:42.000Z | //===- ld-lite.cpp --------------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------------------... | 28.440994 | 80 | 0.618257 | touxiong88 |
ae447a75f3782605d88fb73540042d950f0cd565 | 4,680 | hpp | C++ | common/phonebook.hpp | canaryinthemines/ILLIXR | 1e3d9b2a4c56f6bf311cbeda83171359e285b10e | [
"NCSA",
"MIT"
] | null | null | null | common/phonebook.hpp | canaryinthemines/ILLIXR | 1e3d9b2a4c56f6bf311cbeda83171359e285b10e | [
"NCSA",
"MIT"
] | null | null | null | common/phonebook.hpp | canaryinthemines/ILLIXR | 1e3d9b2a4c56f6bf311cbeda83171359e285b10e | [
"NCSA",
"MIT"
] | null | null | null | #pragma once
#include <typeindex>
#include <stdexcept>
#include <iostream>
#include <cassert>
#include <mutex>
#include <memory>
#include <unordered_map>
namespace ILLIXR {
/**
* @brief A [service locator][1] for ILLIXR.
*
* This will be explained through an exmaple: Suppose one dynamically-loaded plugin, `A_... | 32.275862 | 119 | 0.693162 | canaryinthemines |
ae458514d58e34cb953920fcf571b4c06af3bdc4 | 5,176 | cpp | C++ | mars/uwpproj/uwpStnCallback.cpp | jonetomtom/mars | 3f11714e0aee826eb12bfd52496b59675125204a | [
"BSD-2-Clause",
"Apache-2.0"
] | 17,104 | 2016-12-28T07:45:54.000Z | 2022-03-31T07:02:52.000Z | mars/uwpproj/uwpStnCallback.cpp | jonetomtom/mars | 3f11714e0aee826eb12bfd52496b59675125204a | [
"BSD-2-Clause",
"Apache-2.0"
] | 964 | 2016-12-28T08:13:33.000Z | 2022-03-31T13:36:40.000Z | mars/uwpproj/uwpStnCallback.cpp | pengjinning/mars | 227aff64a5b819555091a7d6eae6727701e9fff0 | [
"Apache-2.0",
"BSD-2-Clause"
] | 3,568 | 2016-12-28T07:47:46.000Z | 2022-03-31T02:13:19.000Z | #include "uwpStnCallback.h"
#include "runtime2cs.h"
#include "runtime_utils.h"
using namespace mars;
Platform::Array<uint8>^ bufferToPlatformArray(const AutoBuffer & autoBuffer)
{
const void * buffer = autoBuffer.Ptr();
int iLen = autoBuffer.Length();
if (buffer == nullptr)
return ref new Platfo... | 24.074419 | 145 | 0.713679 | jonetomtom |
ae492e4348816dbcaed0271fbc78e88ccbe1e4aa | 1,270 | cpp | C++ | MKE/src/MKE/SpriteBatch.cpp | tMario2111/MKE | a5adf18d41f08b35c31e3ddb2679e5cad62da07f | [
"MIT"
] | 3 | 2021-11-03T07:43:07.000Z | 2022-03-10T09:45:15.000Z | MKE/src/MKE/SpriteBatch.cpp | tMario2111/MKE | a5adf18d41f08b35c31e3ddb2679e5cad62da07f | [
"MIT"
] | null | null | null | MKE/src/MKE/SpriteBatch.cpp | tMario2111/MKE | a5adf18d41f08b35c31e3ddb2679e5cad62da07f | [
"MIT"
] | null | null | null | #include "SpriteBatch.h"
namespace mke
{
SpriteBatch::SpriteBatch() :
batch(sf::PrimitiveType::Quads)
{
}
void SpriteBatch::draw(sf::RenderTarget& target, sf::RenderStates states) const
{
target.draw(batch, states);
}
void SpriteBatch::append(const sf::Sprite& sprite)
{
sf::FloatRect texture_rect = stat... | 31.75 | 116 | 0.722047 | tMario2111 |
ae49617c7348852fdc63f59c7deba2236c460f1b | 2,072 | hpp | C++ | include/upp/impl/cli/value.hpp | tlammi/upp | 480615e11b8dd12b36fee0e78b984e1b5051183d | [
"MIT"
] | null | null | null | include/upp/impl/cli/value.hpp | tlammi/upp | 480615e11b8dd12b36fee0e78b984e1b5051183d | [
"MIT"
] | null | null | null | include/upp/impl/cli/value.hpp | tlammi/upp | 480615e11b8dd12b36fee0e78b984e1b5051183d | [
"MIT"
] | null | null | null | /* SPDX-License-Identifier: MIT */
/* Copyright @ 2020 Toni Lammi */
#pragma once
#include <string>
#include <string_view>
#include <vector>
#include "upp/impl/cli/convert.hpp"
namespace upp {
namespace cli {
class ValueBase {
public:
virtual ~ValueBase() {}
virtual void add_value(const char* str) = 0;
virtual ... | 22.521739 | 68 | 0.665058 | tlammi |
ae49a7c7457f2af902956b3caed120e334f8ab11 | 1,268 | cpp | C++ | coursework2/test/map_gen_disp/map_gen_test.cpp | foundnet/UOE_PS_coursework | eb719fee024806ec03fbec528e9eb42d444f6289 | [
"Apache-2.0"
] | null | null | null | coursework2/test/map_gen_disp/map_gen_test.cpp | foundnet/UOE_PS_coursework | eb719fee024806ec03fbec528e9eb42d444f6289 | [
"Apache-2.0"
] | null | null | null | coursework2/test/map_gen_disp/map_gen_test.cpp | foundnet/UOE_PS_coursework | eb719fee024806ec03fbec528e9eb42d444f6289 | [
"Apache-2.0"
] | null | null | null | #include "../../include/randommap.h"
#include "gtest/gtest.h"
#include <vector>
#include <cmath>
using std::vector;
TEST(mapgenTestSuite, NormalSizeCheck){
vector<vector<double>> map = map_gen(30,20,1.0,10,4);
EXPECT_EQ(map.size(), 200);
EXPECT_EQ(map[0].size(), 300);
}
TEST(mapgenTestSuite, NarrowSizeCh... | 23.924528 | 57 | 0.685331 | foundnet |
ae4fdbe1785af7f213e21e2bdde416975c9183e6 | 7,878 | cpp | C++ | src/Keyboard.cpp | 00steve/Lapster | 42c11d7bf96694c36f75d938563031cb08951ff1 | [
"Apache-2.0"
] | null | null | null | src/Keyboard.cpp | 00steve/Lapster | 42c11d7bf96694c36f75d938563031cb08951ff1 | [
"Apache-2.0"
] | null | null | null | src/Keyboard.cpp | 00steve/Lapster | 42c11d7bf96694c36f75d938563031cb08951ff1 | [
"Apache-2.0"
] | null | null | null | #include "Keyboard.h"
void Keyboard::Setup(){
timer.TicksPerSecond(2);
valueX = 100;
valueY = 40;
backButton = new Button(Int2(10,10),Int2(90,90),"Back");
delButton = new Button(Int2(410,10),Int2(470,90),"<--");
int keyWidth = 43;
int keyHeight = 50;
int keySpace = 3;
int x = 1... | 39.19403 | 173 | 0.59114 | 00steve |
ae520a80dc64b3bc801fd8c65f711a88ae94e971 | 1,371 | cpp | C++ | server_config.cpp | shizuku/server | 5608cfa1e048efc8a54a68e4ad18b2d52248e1a2 | [
"MIT"
] | null | null | null | server_config.cpp | shizuku/server | 5608cfa1e048efc8a54a68e4ad18b2d52248e1a2 | [
"MIT"
] | null | null | null | server_config.cpp | shizuku/server | 5608cfa1e048efc8a54a68e4ad18b2d52248e1a2 | [
"MIT"
] | null | null | null | /***********************
* @file: server_config.cpp
* @author: shizuku
* @date: 2020/7/15
***********************/
#include "server_config.h"
server_config::server_config(const std::string &filename) {
boost::property_tree::ptree root;
boost::property_tree::read_json(filename, root);
port = root.get<i... | 29.170213 | 80 | 0.536105 | shizuku |
ae54d1d37aa672496acb17e53e2c43c2904c6629 | 970 | cpp | C++ | day25/solution.cpp | qwoprocks/Advent-of-Code-2020-Solutions | 65d96f89af013585ac994b8556d003b6455b0de1 | [
"MIT"
] | null | null | null | day25/solution.cpp | qwoprocks/Advent-of-Code-2020-Solutions | 65d96f89af013585ac994b8556d003b6455b0de1 | [
"MIT"
] | null | null | null | day25/solution.cpp | qwoprocks/Advent-of-Code-2020-Solutions | 65d96f89af013585ac994b8556d003b6455b0de1 | [
"MIT"
] | null | null | null | /* Link to problem: https://adventofcode.com/2020/day/25 */
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <set>
using namespace std;
long long part1(long long card_public_key, long long door_public_key) {
long long mod = 20201227;
long long subject_number = 7;
long lon... | 27.714286 | 74 | 0.652577 | qwoprocks |
ae5536b006c6f3bc39bcf0b5e0c2d583d75ef7f3 | 1,956 | cpp | C++ | 2A. C++ Advanced (STL)/Attic/ruleof3.cpp | alemesa1991/School-Projects | ed9170fa4cadfe18c6d9850a17077686ca16d1a1 | [
"MIT"
] | null | null | null | 2A. C++ Advanced (STL)/Attic/ruleof3.cpp | alemesa1991/School-Projects | ed9170fa4cadfe18c6d9850a17077686ca16d1a1 | [
"MIT"
] | null | null | null | 2A. C++ Advanced (STL)/Attic/ruleof3.cpp | alemesa1991/School-Projects | ed9170fa4cadfe18c6d9850a17077686ca16d1a1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring> /// memcpy
using namespace std;
template <class T>
class X {
size_t size;
T *data;
public:
X() : size(0), data(nullptr)
{ cout << "X constructor()\n"; }
X(size_t s) : size(s), data(new T[size])
{ cout << "X (" << s << ") constructor\n"; }
~X() {
cout <<... | 24.759494 | 127 | 0.514826 | alemesa1991 |
ae59ce7e42db92d0d43e3bc4b87f979c6e0dd4f6 | 1,058 | hpp | C++ | osl/Construct.hpp | elnormous/OuzelShadingLanguage | d1644bf2bb244adc44223dd8570c1acd51ff39d2 | [
"BSD-2-Clause"
] | 5 | 2018-03-28T10:37:46.000Z | 2022-03-28T13:45:50.000Z | osl/Construct.hpp | elnormous/OuzelShadingLanguage | d1644bf2bb244adc44223dd8570c1acd51ff39d2 | [
"BSD-2-Clause"
] | null | null | null | osl/Construct.hpp | elnormous/OuzelShadingLanguage | d1644bf2bb244adc44223dd8570c1acd51ff39d2 | [
"BSD-2-Clause"
] | null | null | null | //
// OSL
//
#ifndef CONSTRUCT_HPP
#define CONSTRUCT_HPP
namespace ouzel
{
class Construct
{
public:
enum class Kind
{
Declaration,
Statement,
Expression,
Attribute
};
explicit Construct(Kind initKind) noexcept: kind{initKin... | 23 | 69 | 0.579395 | elnormous |
ae5a56571b8152aafbb749f31b862d784eabae29 | 302 | hpp | C++ | src/include/Bus/Memory/Memory.hpp | Garoze/Console | d99a08fb88fab4da5ca7c2c2c6d81fb9e5d6cb56 | [
"MIT"
] | null | null | null | src/include/Bus/Memory/Memory.hpp | Garoze/Console | d99a08fb88fab4da5ca7c2c2c6d81fb9e5d6cb56 | [
"MIT"
] | null | null | null | src/include/Bus/Memory/Memory.hpp | Garoze/Console | d99a08fb88fab4da5ca7c2c2c6d81fb9e5d6cb56 | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <cstdint>
#define MEMORY_SIZE 64 * 1024
class Memory
{
public:
Memory();
void viewAt(std::uint16_t);
public:
std::uint8_t& operator[](std::uint16_t i)
{
return data[i];
}
private:
std::array<std::uint8_t, MEMORY_SIZE> data;
};
| 13.727273 | 47 | 0.629139 | Garoze |
ae5a6edd3b942d1a548dcc1be78fb51ac455f527 | 1,335 | cpp | C++ | seeded_lda/libc/t/test.cpp | qinliuliuqin/Arbitrage-Strategy-Analysis | d735481a2480174366e3f90025a1f935d5ad1f8b | [
"MIT"
] | null | null | null | seeded_lda/libc/t/test.cpp | qinliuliuqin/Arbitrage-Strategy-Analysis | d735481a2480174366e3f90025a1f935d5ad1f8b | [
"MIT"
] | null | null | null | seeded_lda/libc/t/test.cpp | qinliuliuqin/Arbitrage-Strategy-Analysis | d735481a2480174366e3f90025a1f935d5ad1f8b | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <vector>
#include <stdlib.h>
#include "utils/utils.cpp"
#include "utils/Pair.cpp"
using namespace std;
void Temp(vector<int> &vList){
for(int i=0;i<vList.size();i++)
vList[i] /= 2;
}
int main(int argc,char *argv[]){
vector<Pair<int,double> > vList;
for(int i=0;i<10000;i++){
doub... | 23.017241 | 67 | 0.57603 | qinliuliuqin |
ae618e182a830a807ee3e2e83c7727dca25dea5c | 2,205 | cpp | C++ | Std/Forward.cpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | 1 | 2021-08-24T05:59:32.000Z | 2021-08-24T05:59:32.000Z | Std/Forward.cpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | 3 | 2021-03-31T15:36:01.000Z | 2021-04-19T14:17:44.000Z | Std/Forward.cpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | null | null | null | #include <Std/Forward.hpp>
#include <Std/Format.hpp>
#include <Std/Lexer.hpp>
#if !defined(TEST) && !defined(KERNEL)
# error "Only KERNEL and TEST are supported"
#endif
#if defined(TEST)
# include <iostream>
# include <cstdlib>
#elif defined(KERNEL)
# include <Kernel/ConsoleDevice.hpp>
# include <Kernel/HandlerMode.h... | 25.344828 | 87 | 0.582313 | asynts |
ae61fe9c0709ef23779b6f9244b31d0e26f0be26 | 8,667 | hpp | C++ | __unit_tests/gv_framework_unit_test/unit_test_display_animation.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | 2 | 2018-12-03T13:17:31.000Z | 2020-04-08T07:00:02.000Z | __unit_tests/gv_framework_unit_test/unit_test_display_animation.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | __unit_tests/gv_framework_unit_test/unit_test_display_animation.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | namespace unit_test_display_animation
{
void main(gvt_array< gv_string >& args)
{
bool do_compress = false;
if (args.find("compress"))
{
do_compress = true;
}
gv_int idx;
bool do_file = false;
bool do_software_skinning = true;
gv_string file_name;
if (args.find("file", idx))
{
do_file = true;
file_name... | 30.410526 | 113 | 0.646244 | dragonsn |
ae6c4aa0db5b1b4195204d9065598fe0b6877633 | 6,000 | cpp | C++ | sdk/MagicSoftware/FreeMagic/Source/ImageAnalysis/MgcBinary3D.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 10 | 2021-05-04T06:40:27.000Z | 2022-01-20T20:24:28.000Z | sdk/MagicSoftware/FreeMagic/Source/ImageAnalysis/MgcBinary3D.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/MagicSoftware/FreeMagic/Source/ImageAnalysis/MgcBinary3D.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 2 | 2020-05-17T10:01:14.000Z | 2020-09-11T20:17:27.000Z | // Magic Software, Inc.
// http://www.magic-software.com
// Copyright (c) 2000-2002. All Rights Reserved
//
// Source code from Magic Software is supplied under the terms of a license
// agreement and may not be copied or disclosed except in accordance with the
// terms of that agreement. The various license ag... | 35.714286 | 79 | 0.483167 | acidicMercury8 |
ae6e0213ff0c952cb84f840c77cbc1ba9de7d712 | 652 | hh | C++ | MCDataProducts/inc/PointTrajectoryCollection.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | null | null | null | MCDataProducts/inc/PointTrajectoryCollection.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | MCDataProducts/inc/PointTrajectoryCollection.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | #ifndef MCDataProducts_PointTrajectoryCollection_hh
#define MCDataProducts_PointTrajectoryCollection_hh
//
// Define a type for a collection of PointTrajectory objects.
// The key is the simulated particle ID (same as for the
// SimParticleCollection).
//
// $Id: PointTrajectoryCollection.hh,v 1.2 2011/05/24 20:03:31 ... | 27.166667 | 76 | 0.769939 | bonventre |
ae6ef9b61390369faf96d4f3c02d4d178a350f93 | 2,330 | cpp | C++ | Sources/API/Python/Field/ConstantVectorField.cpp | utilForever/CubbyFlow-v1 | d85c136d8eaa91ecce456c3356c7e578dda5d5bd | [
"MIT"
] | 3 | 2020-04-15T13:41:16.000Z | 2020-12-29T11:23:59.000Z | Sources/API/Python/Field/ConstantVectorField.cpp | utilForever/CubbyFlow-v1 | d85c136d8eaa91ecce456c3356c7e578dda5d5bd | [
"MIT"
] | null | null | null | Sources/API/Python/Field/ConstantVectorField.cpp | utilForever/CubbyFlow-v1 | d85c136d8eaa91ecce456c3356c7e578dda5d5bd | [
"MIT"
] | null | null | null | /*************************************************************************
> File Name: ConstantVectorField.h
> Project Name: CubbyFlow
> Author: Chan-Ho Chris Ohk
> Purpose: ConstantVectorField functions for CubbyFlow Python API.
> Created Time: 2018/02/04
> Copyright (c) 2018, Chan-Ho Chris Ohk
**********************... | 29.871795 | 136 | 0.68412 | utilForever |
ae70c8b906df8c9483c1f6ccf81413249959cb47 | 4,279 | cpp | C++ | src/Draw/Image.cpp | FishbowlDigital/FBDraw | 4ea6198f01be5f3c9627ca34bff263245bfd3ecc | [
"MIT",
"Unlicense"
] | null | null | null | src/Draw/Image.cpp | FishbowlDigital/FBDraw | 4ea6198f01be5f3c9627ca34bff263245bfd3ecc | [
"MIT",
"Unlicense"
] | null | null | null | src/Draw/Image.cpp | FishbowlDigital/FBDraw | 4ea6198f01be5f3c9627ca34bff263245bfd3ecc | [
"MIT",
"Unlicense"
] | null | null | null | // Image.cpp
// Implementation file for the Image class
//
// Copyright(c) 2017 - 2022 Fishbowl Digital LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, in... | 29.715278 | 106 | 0.649918 | FishbowlDigital |
ae72179e0987143289476d0dece7489e65d23ff5 | 3,146 | cpp | C++ | Lab/SavingsFucnctionPotPourri/main.cpp | salazaru/Program-Logic-Using-Cpp | e4fb97f00eb639d523b7ede0661ff1698301f46d | [
"MIT"
] | 1 | 2015-03-06T01:03:54.000Z | 2015-03-06T01:03:54.000Z | Lab/SavingsFucnctionPotPourri/main.cpp | salazaru/Salazar_Uriel_CSC5_43952 | e4fb97f00eb639d523b7ede0661ff1698301f46d | [
"MIT"
] | null | null | null | Lab/SavingsFucnctionPotPourri/main.cpp | salazaru/Salazar_Uriel_CSC5_43952 | e4fb97f00eb639d523b7ede0661ff1698301f46d | [
"MIT"
] | null | null | null | //File: main.cpp
//==========================================================================
//Programmer: Uriel Salazar
//==========================================================================
//Created: April 20, 2015, 8:14 PM
//==========================================================================
//P... | 30.25 | 79 | 0.494596 | salazaru |
ae756d793d630e0f6314299c9ae32ba2b36cef73 | 2,297 | hpp | C++ | src/geometryhandler.hpp | pannacotta98/DomeDagen | aa5ac6adbc73326e43dfa129eae11c95f7191a1d | [
"BSD-2-Clause"
] | null | null | null | src/geometryhandler.hpp | pannacotta98/DomeDagen | aa5ac6adbc73326e43dfa129eae11c95f7191a1d | [
"BSD-2-Clause"
] | null | null | null | src/geometryhandler.hpp | pannacotta98/DomeDagen | aa5ac6adbc73326e43dfa129eae11c95f7191a1d | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "modelmanager.hpp"
//This class is privately inherited to classes needing models and accompanied functionality
//This class is also very unorganized
class GeometryHandler
{
public:
GeometryHandler(const std::string& shaderProgramName, const std::string& objectModelName)
:mShaderProgram{ sgct:... | 33.779412 | 91 | 0.760993 | pannacotta98 |
ae77f859778c1b360c7129fafbae886e03e4078c | 620 | hpp | C++ | include/lol/def/LolPerksPerkSettingResource.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolPerksPerkSettingResource.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolPerksPerkSettingResource.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
namespace lol {
struct LolPerksPerkSettingResource {
std::vector<int32_t> perkIds;
int32_t perkStyle;
int32_t perkSubStyle;
};
inline void to_json(json& j, const LolPerksPerkSettingResource& v) {
j["perkIds"] = v.perkIds;
j["perkStyle"] = v.perkStyle... | 32.631579 | 72 | 0.664516 | Maufeat |
ae793e7954aee583c7fba98fc87913e909733653 | 1,435 | cpp | C++ | library/crnd/src/api_cpp.cpp | jgsogo/cpp-inside | 7b92ccd299f3c7d9f50a50ed6cfb6aeb56f04c74 | [
"MIT"
] | 1 | 2019-09-24T14:31:33.000Z | 2019-09-24T14:31:33.000Z | library/crnd/src/api_cpp.cpp | jgsogo/cpp-inside | 7b92ccd299f3c7d9f50a50ed6cfb6aeb56f04c74 | [
"MIT"
] | 2 | 2021-05-10T14:37:17.000Z | 2022-02-10T19:24:11.000Z | library/crnd/src/api_cpp.cpp | jgsogo/cpp-inside | 7b92ccd299f3c7d9f50a50ed6cfb6aeb56f04c74 | [
"MIT"
] | 1 | 2019-09-24T20:28:58.000Z | 2019-09-24T20:28:58.000Z | #include "../include/api_cpp.h"
#include <random>
#include "spdlog/spdlog.h"
#include "random_model.h"
namespace {
std::unique_ptr<crnd::Status> with_status(std::function<void (crnd::Status&)> f) {
std::unique_ptr<crnd::Status> status = std::make_unique<crnd::Status>();
try {
status->... | 29.895833 | 96 | 0.596516 | jgsogo |
ae799ce6bc16b48d7fc7ec7e33cd764f247c3cdd | 1,191 | hpp | C++ | include/all_rounder.hpp | tomdodd4598/UCL-PHAS0100-CandamirTilesExample1 | 8a324462d93db49a6a2c88fb382bca110c7ec611 | [
"MIT"
] | null | null | null | include/all_rounder.hpp | tomdodd4598/UCL-PHAS0100-CandamirTilesExample1 | 8a324462d93db49a6a2c88fb382bca110c7ec611 | [
"MIT"
] | null | null | null | include/all_rounder.hpp | tomdodd4598/UCL-PHAS0100-CandamirTilesExample1 | 8a324462d93db49a6a2c88fb382bca110c7ec611 | [
"MIT"
] | null | null | null | #ifndef ALL_ROUNDER_H
#define ALL_ROUNDER_H
#include "cricketer.hpp"
#include <string>
#include <utility>
namespace cricket {
class AllRounder : public Cricketer {
public:
template<typename NAME, typename... EQUIPMENT>
AllRounder(NAME&& name, int batting_runs, int batting_balls, int dismissa... | 25.891304 | 160 | 0.643157 | tomdodd4598 |
ae7c7a21e5dc5122acab986da6f246109fa47696 | 5,339 | hpp | C++ | src/mge/core/stacktrace.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | src/mge/core/stacktrace.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | 91 | 2019-03-09T11:31:29.000Z | 2022-02-27T13:06:06.000Z | src/mge/core/stacktrace.hpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | // mge - Modern Game Engine
// Copyright (c) 2021 by Alexander Schroeder
// All rights reserved.
/** @file */
#pragma once
#include "mge/core/dllexport.hpp"
#include "mge/core/string_pool.hpp"
#include <string>
#include <string_view>
#include <vector>
namespace mge {
/**
* @brief A stack backtrace.
*
... | 27.101523 | 76 | 0.478929 | mge-engine |
ae7d69c4645db3634351dd9d3aa0bfa20558d263 | 1,637 | cpp | C++ | SPOJ/SAMER08F - Feynman.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 6 | 2018-11-26T02:38:07.000Z | 2021-07-28T00:16:41.000Z | SPOJ/SAMER08F - Feynman.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 1 | 2021-05-30T09:25:53.000Z | 2021-06-05T08:33:56.000Z | SPOJ/SAMER08F - Feynman.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 4 | 2020-04-16T07:15:01.000Z | 2020-12-04T06:26:07.000Z | /*SAMER08F - Feynman
no tags
Richard Phillips Feynman was a well known American physicist and a recipient of the Nobel Prize in Physics. He worked in theoretical physics and also pioneered the field of quantum computing. He visited South America for ten months, giving lectures and enjoying life in the tropics. He is ... | 46.771429 | 455 | 0.745877 | ravirathee |
ae7d979107a95215f0032033d14e3830184e3c4b | 1,802 | cpp | C++ | test/src/detail/offset_fetch_request_write_test.cpp | perchits/libkafka-asio | cbdced006d49a4498955a222915c6514b4ac57a7 | [
"MIT"
] | 77 | 2015-04-07T08:14:14.000Z | 2022-02-14T01:07:05.000Z | test/src/detail/offset_fetch_request_write_test.cpp | perchits/libkafka-asio | cbdced006d49a4498955a222915c6514b4ac57a7 | [
"MIT"
] | 28 | 2015-04-07T08:57:41.000Z | 2020-04-19T21:25:22.000Z | test/src/detail/offset_fetch_request_write_test.cpp | perchits/libkafka-asio | cbdced006d49a4498955a222915c6514b4ac57a7 | [
"MIT"
] | 48 | 2015-04-15T05:34:51.000Z | 2022-03-17T11:50:20.000Z | //
// detail/offset_fetch_request_write_test.cpp
// ------------------------------------------
//
// Copyright (c) 2015 Daniel Joos
//
// Distributed under MIT license. (See file LICENSE)
//
#include <gtest/gtest.h>
#include <libkafka_asio/libkafka_asio.h>
#include "StreamTest.h"
using libkafka_asio::OffsetFetchRequ... | 28.15625 | 75 | 0.705882 | perchits |
ae7f3c3b647c0dd8e2c9849c13dcc9266b37b3cb | 270 | cpp | C++ | client/commands/Attack.cpp | fvazquezf/7542_TpFinal | 1699d9cf97794186f7e41d3bb2d33ba9239eaa3f | [
"MIT"
] | null | null | null | client/commands/Attack.cpp | fvazquezf/7542_TpFinal | 1699d9cf97794186f7e41d3bb2d33ba9239eaa3f | [
"MIT"
] | null | null | null | client/commands/Attack.cpp | fvazquezf/7542_TpFinal | 1699d9cf97794186f7e41d3bb2d33ba9239eaa3f | [
"MIT"
] | null | null | null | #include "Attack.h"
Attack::Attack(bool done)
: done(done) {
}
void Attack::serialize(std::function<void(std::vector<unsigned char>)> &callback, const Protocol &protocol) {
protocol.startStopCommand(done ? STOP_ATTACK : ATTACK, callback);
}
Attack::~Attack() {
}
| 20.769231 | 109 | 0.707407 | fvazquezf |
ae7f91eead9906b48fc98847333f879acb97ad62 | 2,102 | cpp | C++ | src/er1controlapp.cpp | sfmabock/Evolution-Robot-1-Driver | 47cf3d54f2b863aea75abb181ae39f1eb5b83232 | [
"MIT"
] | null | null | null | src/er1controlapp.cpp | sfmabock/Evolution-Robot-1-Driver | 47cf3d54f2b863aea75abb181ae39f1eb5b83232 | [
"MIT"
] | null | null | null | src/er1controlapp.cpp | sfmabock/Evolution-Robot-1-Driver | 47cf3d54f2b863aea75abb181ae39f1eb5b83232 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <SDL2/SDL.h>
#include <er1driver/er1driver.hpp>
int main(int argc, char** argv) {
SDL_Event event;
bool done = false;
if (SDL_Init(SDL_INIT_VIDEO)!= 0) {
return -1;
}
SDL_Window *window;
window = SDL_CreateWindow(
"An SDL... | 28.405405 | 101 | 0.466698 | sfmabock |
ae81ca480c3a78888683d1ea42c464fd35699e3d | 6,376 | cpp | C++ | src/view/configurator.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2020-04-10T14:39:00.000Z | 2021-02-11T15:52:16.000Z | src/view/configurator.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2019-12-17T08:50:20.000Z | 2020-02-03T09:37:56.000Z | src/view/configurator.cpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 1 | 2020-08-19T03:06:52.000Z | 2020-08-19T03:06:52.000Z | #include <imgui.h>
#include "utils/resource_manager.hpp"
#include "view/configurator.hpp"
#include "view/imgui_styles.hpp"
// TODO : rendre la classe configurator statique (pas vraiment besoin de l’instancier plusieurs fois)
using lang_info = std::remove_const_t<std::remove_reference_t<
std::invoke_result<decltype... | 33.557895 | 140 | 0.715809 | TiWinDeTea |
ae84c70c639cb1814285852d0def8c2ee088ce16 | 211,852 | cpp | C++ | packages/data/epdl/test/tstPhotonDataProcessorShellMap.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/data/epdl/test/tstPhotonDataProcessorShellMap.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/data/epdl/test/tstPhotonDataProcessorShellMap.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file tstPhotonDataProcessorShellMap.cpp
//! \author Alex Robinson
//! \brief PhotonDataProcessor class electron shell map unit tests.
//!
//---------------------------------------------------------------------------//
// Std Li... | 25.035689 | 79 | 0.686677 | lkersting |
ae87152dbc2fc8a731ff4c6cbd55b802481f00d4 | 2,837 | cpp | C++ | src/io.cpp | sqt/sudoku | b536c663af5b6d6f0c8b8a728e595f3dfde499b5 | [
"BSD-3-Clause"
] | null | null | null | src/io.cpp | sqt/sudoku | b536c663af5b6d6f0c8b8a728e595f3dfde499b5 | [
"BSD-3-Clause"
] | null | null | null | src/io.cpp | sqt/sudoku | b536c663af5b6d6f0c8b8a728e595f3dfde499b5 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cmath>
#include <sstream>
#include "io.hpp"
PuzzleState readPuzzleFromFile(std::ifstream& ifs)
{
PuzzleState result;
EntryState unknown_entry;
for (uint8_t i = 1; i < 10; ++i)
unknown_entry.insert(i);
for (std::string line; std::getline(ifs, line); )
{
if (line.empty() == fals... | 17.955696 | 83 | 0.572788 | sqt |
ae88e50ec6eef358fdc5be75c59fd1b69f95f254 | 39,698 | cc | C++ | src/muensterTPCPhysicsList.cc | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | null | null | null | src/muensterTPCPhysicsList.cc | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | 2 | 2017-01-24T21:18:46.000Z | 2017-01-27T13:24:48.000Z | src/muensterTPCPhysicsList.cc | l-althueser/MuensterTPC-Simulation | 7a086ab330cd5905f3c78c324936cdc36951e9bd | [
"BSD-2-Clause"
] | 4 | 2017-04-28T12:18:58.000Z | 2019-04-10T21:15:00.000Z | /******************************************************************
* muensterTPCsim
*
* Simulations of the Muenster TPC
*
* @author Lutz Althüser, based on muensterTPC (Levy) and Xenon100
* @date 2015-04-14
* @update 2016-02-16
*
* @comment - ready for G4 V10.02
* - added some festures of the new G4 ... | 37.170412 | 150 | 0.719961 | l-althueser |
ae8ae3cf60187deee3488ff23dcd56ed2c0297ae | 15,125 | cpp | C++ | src/NameResolver.cpp | skylang/sky | 518add25e6a101ca2701b3c6bea977b0e76b340e | [
"MIT"
] | 3 | 2020-07-17T05:10:56.000Z | 2020-08-02T22:13:50.000Z | src/NameResolver.cpp | skylang/sky | 518add25e6a101ca2701b3c6bea977b0e76b340e | [
"MIT"
] | null | null | null | src/NameResolver.cpp | skylang/sky | 518add25e6a101ca2701b3c6bea977b0e76b340e | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Stephan Unverwerth
// This code is licensed under MIT license (See LICENSE for details)
#include "NameResolver.h"
#include "ast/nodes.h"
#include "exceptions.h"
#include "Scope.h"
#include "SourceFile.h"
namespace Sky {
NameResolver::NameResolver(Scope* globals): scope(globals) {
}
... | 29.656863 | 156 | 0.489388 | skylang |
ae8da0f633c84e056401b447894eb1c5946eb348 | 5,127 | cpp | C++ | saber/funcs/impl/x86/saber_sequence_pool_concat.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 533 | 2018-05-18T06:14:04.000Z | 2022-03-23T11:46:30.000Z | saber/funcs/impl/x86/saber_sequence_pool_concat.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 100 | 2018-05-26T08:32:48.000Z | 2022-03-17T03:26:25.000Z | saber/funcs/impl/x86/saber_sequence_pool_concat.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 167 | 2018-05-18T06:14:35.000Z | 2022-02-14T01:44:20.000Z | #include "saber/funcs/impl/x86/saber_sequence_pool_concat.h"
#include "saber/funcs/impl/x86/saber_avx2_expand.h"
#include "saber/funcs/impl/x86/saber_avx512_expand.h"
namespace anakin {
namespace saber {
template <>
SaberStatus SaberSequencePoolConcat<X86, AK_FLOAT>::create(const std::vector<Tensor<X86>*>& inputs,
... | 33.953642 | 106 | 0.59645 | baajur |
ae966daf56d5b9fd56f6bc3fa28312b51d6ed63d | 6,467 | cpp | C++ | submods/amrex/Src/EB/AMReX_EB2.cpp | ndevelder/amr-wind-channel-les | 51b048ba30a5ed3ac1bd055e807f4d59a64a45ea | [
"BSD-3-Clause"
] | null | null | null | submods/amrex/Src/EB/AMReX_EB2.cpp | ndevelder/amr-wind-channel-les | 51b048ba30a5ed3ac1bd055e807f4d59a64a45ea | [
"BSD-3-Clause"
] | null | null | null | submods/amrex/Src/EB/AMReX_EB2.cpp | ndevelder/amr-wind-channel-les | 51b048ba30a5ed3ac1bd055e807f4d59a64a45ea | [
"BSD-3-Clause"
] | null | null | null |
#include <AMReX_EB2_IF_AllRegular.H>
#include <AMReX_EB2_IF_Box.H>
#include <AMReX_EB2_IF_Cylinder.H>
#include <AMReX_EB2_IF_Ellipsoid.H>
#include <AMReX_EB2_IF_Plane.H>
#include <AMReX_EB2_IF_Sphere.H>
#include <AMReX_EB2_IF_Torus.H>
#include <AMReX_EB2_IF_Spline.H>
#include <AMReX_EB2_IF_Parser.H>
#include <AMReX_EB... | 28.364035 | 82 | 0.634916 | ndevelder |
ae9a13d3156789aad35cc8543f005084e5810bf1 | 637 | hpp | C++ | mc/util/util.hpp | ShamylZakariya/MarchingCubes | 27f375d5d25df2246095d65c11127aac82a24211 | [
"MIT"
] | 2 | 2019-12-03T05:52:57.000Z | 2021-05-21T18:17:52.000Z | mc/util/util.hpp | ShamylZakariya/MarchingCubes | 27f375d5d25df2246095d65c11127aac82a24211 | [
"MIT"
] | null | null | null | mc/util/util.hpp | ShamylZakariya/MarchingCubes | 27f375d5d25df2246095d65c11127aac82a24211 | [
"MIT"
] | null | null | null | //
// util.h
// MarchingCubes
//
// Created by Shamyl Zakariya on 11/23/19.
// Copyright © 2019 Shamyl Zakariya. All rights reserved.
//
#ifndef mc_util_h
#define mc_util_h
#include <limits>
#include <epoxy/gl.h>
#include <GLFW/glfw3.h>
#define GLM_FORCE_RADIANS
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gl... | 18.2 | 58 | 0.723705 | ShamylZakariya |
ae9b27522e2872325c204e78afd9a852cb3d1b01 | 376 | cpp | C++ | Ch_15_On_the_Importance_of_Sampling/ao_sampler.cpp | BobLChen/ray-tracing-gems | 76f81fc9d575be0ff30665f659341e97d1d434ad | [
"MIT"
] | 2 | 2021-08-19T08:49:25.000Z | 2021-12-25T15:35:35.000Z | Ch_15_On_the_Importance_of_Sampling/ao_sampler.cpp | RobertBeckebans/ray-tracing-gems | 32f067d162041a400f50ae598a7177b2ee6b37a0 | [
"MIT"
] | null | null | null | Ch_15_On_the_Importance_of_Sampling/ao_sampler.cpp | RobertBeckebans/ray-tracing-gems | 32f067d162041a400f50ae598a7177b2ee6b37a0 | [
"MIT"
] | 1 | 2021-08-19T08:49:26.000Z | 2021-08-19T08:49:26.000Z | float ao(float3 p, float3 n, int nSamples) {
float a = 0;
for (int i = 0; i < nSamples; ++i) {
float xi[2] = { rng(), rng() };
float3 dir(sqrt(xi[0]) * cos(2 * Pi * xi[1]),
sqrt(xi[0]) * sin(2 * Pi * xi[1]),
sqrt(1 - xi[0]));
dir = transformToFrame(n, dir);
if (... | 28.923077 | 50 | 0.460106 | BobLChen |
ae9bdb650abb4ef1eb056d8cb4836dfce392d1f8 | 35 | cpp | C++ | Ciao/src/utils/bvh/Bbox.cpp | dfnzhc/Ciao | 751501b69e9d2eb3e9cf53be07def8989e921b92 | [
"MIT"
] | 1 | 2021-07-15T14:19:27.000Z | 2021-07-15T14:19:27.000Z | Ciao/src/utils/bvh/Bbox.cpp | dfnzhc/OpenGL-Renderer | 751501b69e9d2eb3e9cf53be07def8989e921b92 | [
"MIT"
] | null | null | null | Ciao/src/utils/bvh/Bbox.cpp | dfnzhc/OpenGL-Renderer | 751501b69e9d2eb3e9cf53be07def8989e921b92 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Bbox.h"
| 11.666667 | 17 | 0.657143 | dfnzhc |
ae9df64e32d6be64b6d00500ab69678b9fd0bf02 | 7,754 | cpp | C++ | Project/sources/obj_loader.cpp | bachp2/FEASE | 07bcfa95532543a78fce028d1421925769aa21da | [
"BSD-3-Clause"
] | null | null | null | Project/sources/obj_loader.cpp | bachp2/FEASE | 07bcfa95532543a78fce028d1421925769aa21da | [
"BSD-3-Clause"
] | null | null | null | Project/sources/obj_loader.cpp | bachp2/FEASE | 07bcfa95532543a78fce028d1421925769aa21da | [
"BSD-3-Clause"
] | null | null | null | #include "obj_loader.h"
#include <fstream>
#include <iostream>
#include <algorithm>
#include <map>
// Inspired from BennyQBD's obj loader code : https://github.com/BennyQBD/ModernOpenGLTutorial/blob/master/shader.cpp
static bool CompareOBJIndexPtr(const OBJIndex* a, const OBJIndex* b);
static inline unsigned int Find... | 26.020134 | 117 | 0.710214 | bachp2 |
ae9ec94361a04c9a5cea2d7fe9666d5b8e2c8df9 | 1,365 | cpp | C++ | LeetCode/34.Find_First_and_Last_Position_of_Element_in_Sorted_Array.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | LeetCode/34.Find_First_and_Last_Position_of_Element_in_Sorted_Array.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | LeetCode/34.Find_First_and_Last_Position_of_Element_in_Sorted_Array.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | // 二分搜兩次(左,右)
class Solution {
public:
vector<int> searchRange(vector<int>& nums, int target) {
int l = 0, r = nums.size() - 1;
vector<int>ans;
while(l <= r) {
int m = (l + r) >> 1;
if(nums[m] == target) {
if(m > 0 && nums[m - 1] == target) {
... | 27.857143 | 72 | 0.301832 | w181496 |
aea1a9b1eec06c63097cc1170044f0e860f13f35 | 1,800 | cpp | C++ | gloo/gl_wrapper/Framebuffer.cpp | LongerZrLong/gloo | a198ef25a6a6a495be4aaa8182121201cd9eafa1 | [
"MIT"
] | null | null | null | gloo/gl_wrapper/Framebuffer.cpp | LongerZrLong/gloo | a198ef25a6a6a495be4aaa8182121201cd9eafa1 | [
"MIT"
] | null | null | null | gloo/gl_wrapper/Framebuffer.cpp | LongerZrLong/gloo | a198ef25a6a6a495be4aaa8182121201cd9eafa1 | [
"MIT"
] | null | null | null | #include "Framebuffer.h"
#include <stdexcept>
#include "gloo/utils.h"
namespace GLOO {
Framebuffer::Framebuffer()
{
GL_CHECK(glGenFramebuffers(1, &handle_));
}
Framebuffer::~Framebuffer()
{
if (handle_ != GLuint(-1))
GL_CHECK(glDeleteFramebuffers(1, &handle_));
}... | 26.086957 | 81 | 0.579444 | LongerZrLong |
aea44d8f3f8d0f8b62ad167bda0144027515dae4 | 688 | hh | C++ | src/codegen/ninja.hh | Kuree/fsim | 9d175e0bd835d6513d903b6f2878a5bb97bdb3d2 | [
"BSD-2-Clause"
] | 12 | 2022-03-31T03:08:59.000Z | 2022-03-31T20:59:41.000Z | src/codegen/ninja.hh | Kuree/fsim | 9d175e0bd835d6513d903b6f2878a5bb97bdb3d2 | [
"BSD-2-Clause"
] | 2 | 2022-03-20T23:51:25.000Z | 2022-03-31T03:05:55.000Z | src/codegen/ninja.hh | Kuree/xsim | 9d175e0bd835d6513d903b6f2878a5bb97bdb3d2 | [
"BSD-2-Clause"
] | null | null | null | #ifndef FSIM_NINJA_HH
#define FSIM_NINJA_HH
#include "../ir/ir.hh"
namespace fsim {
class DPILocator;
struct NinjaCodeGenOptions {
uint8_t optimization_level = 3;
std::string cxx_path;
std::string binary_name;
std::vector<std::string> sv_libs;
};
class NinjaCodeGen {
// generates native ninja c... | 20.848485 | 88 | 0.700581 | Kuree |
0006e7d41b8c2c9f13cd8badcd7dd5a8f46a92f2 | 1,591 | cpp | C++ | samples/vxSobel3x3Node/vxSobel3x3Node.cpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-06-08T08:58:54.000Z | 2021-06-08T08:58:54.000Z | samples/vxSobel3x3Node/vxSobel3x3Node.cpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-11-13T14:55:55.000Z | 2021-11-13T14:55:55.000Z | samples/vxSobel3x3Node/vxSobel3x3Node.cpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "VX/vx.h"
#include "VX/vx_compatibility.h"
#include "hipaVX/domVX_extensions.hpp"
#define GEN_TEST_IMAGE
#ifdef GEN_TEST_IMAGE
#define IMAGE ""
#ifndef WIDTH
#define WIDTH 4032
#endif
#ifndef HEIGHT
#define HEIGHT... | 24.476923 | 86 | 0.626021 | HipaccVX |