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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
237b415bf330948156cbbc8c9d217aa47b9ca870 | 1,453 | cpp | C++ | cp3/chp2/lds/borrowers.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | cp3/chp2/lds/borrowers.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | cp3/chp2/lds/borrowers.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | #include<iostream>
#include<utility>
#include<algorithm>
#include<vector>
#include<string>
#include<map>
using namespace std;
int main(){
string s;
vector< pair<string,string> > shelf;
map <string,int> bookorder;
while(getline(cin,s) && s !="END"){
string title,author;
size_t s_len = s.size();
size_t fou... | 20.757143 | 105 | 0.567791 | Binary-bug |
237e83babccdab463cede35ff21ba6824170fbfb | 2,348 | cpp | C++ | docs/online/2018-ICPC-Shenyang-Online/solutions/f.cpp | Dup4/TI1050 | 4534909ef9a3b925d556d341ea5e2629357f68e6 | [
"MIT"
] | null | null | null | docs/online/2018-ICPC-Shenyang-Online/solutions/f.cpp | Dup4/TI1050 | 4534909ef9a3b925d556d341ea5e2629357f68e6 | [
"MIT"
] | null | null | null | docs/online/2018-ICPC-Shenyang-Online/solutions/f.cpp | Dup4/TI1050 | 4534909ef9a3b925d556d341ea5e2629357f68e6 | [
"MIT"
] | 1 | 2022-03-03T13:33:48.000Z | 2022-03-03T13:33:48.000Z | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;
const int INF = 0x3f3f3f3f;
const int maxn = 1e4 + 10;
const ll INFLL = 0x3f3f3f3f3f3f3f3f;
struct node {
int l, r;
inline node() {}
inline node(int l, int r) : l(l), r(r) {}
} arr[maxn];
bool flag = false;
int... | 20.778761 | 62 | 0.43569 | Dup4 |
2385db98a9ba294491710b396935bb81baed023d | 2,781 | cpp | C++ | test/uri/parsers/rules/uri/character.test.cpp | ledocc/uri | 0767d923f7d1690e495ddca8a84352746b572904 | [
"BSL-1.0"
] | null | null | null | test/uri/parsers/rules/uri/character.test.cpp | ledocc/uri | 0767d923f7d1690e495ddca8a84352746b572904 | [
"BSL-1.0"
] | null | null | null | test/uri/parsers/rules/uri/character.test.cpp | ledocc/uri | 0767d923f7d1690e495ddca8a84352746b572904 | [
"BSL-1.0"
] | null | null | null | #define BOOST_TEST_MODULE uri__parsers__rules__uri__character_hpp
#include <boost/test/unit_test.hpp>
#include "../../test_parser.hpp"
#include "../make_char_map.hpp"
#include <uri/parsers/rules/uri/character.hpp>
#include <boost/range/irange.hpp>
#include <vector>
namespace uri {
namespace parsers {
namespace... | 29.585106 | 120 | 0.549083 | ledocc |
2386fbdb9f6a4d768d447ad839bc5038bb27ed5e | 440 | hpp | C++ | ODFAEG/include/odfaeg/Driver/frameBuffer.hpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 5 | 2015-06-13T13:11:59.000Z | 2020-04-17T23:10:23.000Z | ODFAEG/include/odfaeg/Driver/frameBuffer.hpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 4 | 2019-01-07T11:46:21.000Z | 2020-02-14T15:04:15.000Z | ODFAEG/include/odfaeg/Driver/frameBuffer.hpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 4 | 2016-01-05T09:54:57.000Z | 2021-01-06T18:52:26.000Z | #ifndef ODFAEG_FRAMEBUFFER_HPP
#define ODFAEG_FRAMEBUFFER_HPP
#include "../../../include/odfaeg/Core/erreur.h"
namespace odfaeg {
namespace driver {
class FrameBuffer {
public :
FrameBuffer (unsigned int width, unsigned int height);
sf::Color& operator[](unsigned int inde... | 27.5 | 66 | 0.613636 | Cwc-Test |
23890a9b45be36e67181907e7af41daec2c87cc8 | 314 | cpp | C++ | Arrays/q9.cpp | Shantanu-verma-sys/Leetcode | 13985d6b5a54f1addc5ff97d18238a0af901732c | [
"MIT"
] | null | null | null | Arrays/q9.cpp | Shantanu-verma-sys/Leetcode | 13985d6b5a54f1addc5ff97d18238a0af901732c | [
"MIT"
] | null | null | null | Arrays/q9.cpp | Shantanu-verma-sys/Leetcode | 13985d6b5a54f1addc5ff97d18238a0af901732c | [
"MIT"
] | null | null | null | //https://leetcode.com/problems/shuffle-string/
string restoreString(string s, vector<int>& indices) {
vector<char> v(s.length());
string res;
for(int i=0;i<indices.size();++i)
v[indices[i]] = s[i];
for(const auto& i:v)
res += i;
return res;
}
| 28.545455 | 56 | 0.525478 | Shantanu-verma-sys |
238bd95e29816179e03181b0feae4bb9b667a183 | 497 | hpp | C++ | Adapters/FileReader.hpp | thulefog/ImageBrowser | 16e16fd1af04215c76af8cc5c166cd58ea71bdb8 | [
"MIT"
] | null | null | null | Adapters/FileReader.hpp | thulefog/ImageBrowser | 16e16fd1af04215c76af8cc5c166cd58ea71bdb8 | [
"MIT"
] | null | null | null | Adapters/FileReader.hpp | thulefog/ImageBrowser | 16e16fd1af04215c76af8cc5c166cd58ea71bdb8 | [
"MIT"
] | null | null | null | //
// FileReader.hpp
// ImageBrowser
//
// Created by John Matthew Weston on 6/27/18.
//
#ifndef FileReader_hpp
#define FileReader_hpp
#include <stdio.h>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <string>
#import "../Adapters/dcmlite/dcmlite.h"
class FileReader
{
public:
FileReader()... | 16.566667 | 53 | 0.686117 | thulefog |
238bfeebd6373bc80f29942e6541c08f7ab4203b | 18,303 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/internal/widget/ExploreByTouchHelper.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/internal/widget/ExploreByTouchHelper.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/internal/widget/ExploreByTouchHelper.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... | 33.338798 | 117 | 0.683495 | jingcao80 |
238c81fae93e571f65cc8ef2402de43c10d4a55a | 20,410 | cpp | C++ | external/opengl/libagl/dxt.cpp | gordonjohnpatrick/XobotOS | 888ed3b8cc8d8e0a54b1858bfa5a3572545f4d2f | [
"Apache-2.0"
] | 263 | 2015-01-04T16:39:18.000Z | 2022-01-05T17:52:38.000Z | external/opengl/libagl/dxt.cpp | DooMLoRD/XobotOS | f20db6295e878a2f298c5e3896528e240785805b | [
"Apache-2.0"
] | 3 | 2015-09-06T09:06:39.000Z | 2019-10-15T00:52:49.000Z | external/opengl/libagl/dxt.cpp | DooMLoRD/XobotOS | f20db6295e878a2f298c5e3896528e240785805b | [
"Apache-2.0"
] | 105 | 2015-01-11T11:45:12.000Z | 2022-02-22T07:26:36.000Z | /* libs/opengles/dxt.cpp
**
** Copyright 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
**
... | 32.040816 | 79 | 0.458844 | gordonjohnpatrick |
238fad2e7a166f05e5d61429f8a58d61dae38fad | 12,122 | cpp | C++ | Core/CLI/src/cli_wma.cpp | Bryan-Stearns/Soar | 969f4fec676293b459ed552ad096549519800534 | [
"BSD-2-Clause"
] | 1 | 2021-03-03T23:20:23.000Z | 2021-03-03T23:20:23.000Z | Core/CLI/src/cli_wma.cpp | Bryan-Stearns/Soar | 969f4fec676293b459ed552ad096549519800534 | [
"BSD-2-Clause"
] | null | null | null | Core/CLI/src/cli_wma.cpp | Bryan-Stearns/Soar | 969f4fec676293b459ed552ad096549519800534 | [
"BSD-2-Clause"
] | 1 | 2021-03-03T23:20:25.000Z | 2021-03-03T23:20:25.000Z | /////////////////////////////////////////////////////////////////
// wma command file.
//
// Author: Jonathan Voigt, voigtjr@gmail.com,
// Nate Derbinsky, nlderbin@umich.edu
// Date : 2008
//
/////////////////////////////////////////////////////////////////
#include "portability.h"
#include "cli_CommandLineI... | 26.997773 | 168 | 0.447533 | Bryan-Stearns |
2390f5fe80598426fceff443ce167414c4babe54 | 3,572 | cpp | C++ | 3DRasterizer/Src/Vector2.cpp | QuadDeva/SoftwareRasterizer | 4c2738d9601230a146a8b724700cf0a4fb89eca2 | [
"MIT"
] | 1 | 2016-04-07T05:02:52.000Z | 2016-04-07T05:02:52.000Z | 3DRasterizer/Src/Vector2.cpp | QuadDeva/SoftwareRasterizer | 4c2738d9601230a146a8b724700cf0a4fb89eca2 | [
"MIT"
] | null | null | null | 3DRasterizer/Src/Vector2.cpp | QuadDeva/SoftwareRasterizer | 4c2738d9601230a146a8b724700cf0a4fb89eca2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "MathUtils.h"
#include "Vector.h"
Vector2 Vector2::Zero(0.0f, 0.0f);
Vector2 Vector2::One(1.0f, 1.0f);
Vector2 Vector2::Right(1.0f, 0.0f);
Vector2 Vector2::Up(0.0f, 1.0f);
Vector2::Vector2(float InF) :
X(InF),
Y(InF)
{
}
Vector2::Vector2(float InX, float InY) :
X(InX),
Y(InY)
{
}
... | 14.639344 | 65 | 0.613102 | QuadDeva |
2393618e2ebec6698ec9435f534330cd72c8472e | 2,509 | cpp | C++ | Code/Libraries/3D/src/irradiancevolumes.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/3D/src/irradiancevolumes.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/3D/src/irradiancevolumes.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | #include "core.h"
#include "3d.h"
#include "irradiancevolumes.h"
#include "mathcore.h"
IrradianceVolumes::IrradianceVolumes()
: m_Extents(),
m_NumVolumesX(0),
m_NumVolumesY(0),
m_NumVolumesZ(0),
m_VolumeResolution(),
m_Volumes(nullptr) {}
IrradianceVolumes::~IrradianceVolumes() { Saf... | 33.905405 | 79 | 0.65564 | kas1e |
2394e17ecebf71620d1c9a59208aaa8a6e894766 | 2,386 | cpp | C++ | integration_test/driver.cpp | HongshiTan/circt | 5590855b46eac4b902cf1319347ab19a6dee8f1b | [
"Apache-2.0"
] | null | null | null | integration_test/driver.cpp | HongshiTan/circt | 5590855b46eac4b902cf1319347ab19a6dee8f1b | [
"Apache-2.0"
] | null | null | null | integration_test/driver.cpp | HongshiTan/circt | 5590855b46eac4b902cf1319347ab19a6dee8f1b | [
"Apache-2.0"
] | null | null | null | //===- driver.cpp - Verilator software driver -----------------------------===//
//
// A fairly standard, boilerplate Verilator C++ simulation driver. Assumes the
// top level exposes just two signals: 'clk' and 'rstn'.
//
//===----------------------------------------------------------------------===//
#include "Vmain... | 25.382979 | 80 | 0.604778 | HongshiTan |
2395f73f6d8cd20bd422bf14fd035d30cf1e1a19 | 58,269 | cpp | C++ | main/src/Solver/CSolverBase.cpp | eapcivil/EXUDYN | 52bddc8c258cda07e51373f68e1198b66c701d03 | [
"BSD-3-Clause-Open-MPI"
] | 1 | 2020-10-06T08:06:25.000Z | 2020-10-06T08:06:25.000Z | main/src/Solver/CSolverBase.cpp | eapcivil/EXUDYN | 52bddc8c258cda07e51373f68e1198b66c701d03 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | main/src/Solver/CSolverBase.cpp | eapcivil/EXUDYN | 52bddc8c258cda07e51373f68e1198b66c701d03 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | /** ***********************************************************************************************
* @brief Implentation for computational solver CSolverBase
* @details Details:
* - base classes for computational solver (as compared to main solver, which interacts with Python, etc.)
* - contains ba... | 43.130274 | 213 | 0.704011 | eapcivil |
2399cc17eebbe15e5ae279a5d1f195aee135b6be | 19,328 | cpp | C++ | Bison x86 Assembler Source/main.cpp | kpatel122/Bison-x86-Assembler | 34d997306a5bf483ee3633126565017d1e2a5f92 | [
"MIT"
] | null | null | null | Bison x86 Assembler Source/main.cpp | kpatel122/Bison-x86-Assembler | 34d997306a5bf483ee3633126565017d1e2a5f92 | [
"MIT"
] | null | null | null | Bison x86 Assembler Source/main.cpp | kpatel122/Bison-x86-Assembler | 34d997306a5bf483ee3633126565017d1e2a5f92 | [
"MIT"
] | null | null | null | #include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include "token.h"
#include "instructions.h"
#include "file.h"
#include "log.h"
#include "String.h"
#include "lexer.h"
#include "functions.h"
#include "symbol.h"
#include "strings.h"
#include "label.h"
#inclu... | 34.269504 | 92 | 0.505019 | kpatel122 |
239ee0fadee646b7f353de292e7792c4d1d4c681 | 2,541 | cpp | C++ | source/lennaplugins/crop/crop.cpp | FalseCAM/lenna | 5a649627a90b459ab369f1ac602f1c37b1db9c92 | [
"MIT"
] | 2 | 2021-09-21T18:38:36.000Z | 2021-09-23T23:12:28.000Z | source/lennaplugins/crop/crop.cpp | FalseCAM/lenna | 5a649627a90b459ab369f1ac602f1c37b1db9c92 | [
"MIT"
] | null | null | null | source/lennaplugins/crop/crop.cpp | FalseCAM/lenna | 5a649627a90b459ab369f1ac602f1c37b1db9c92 | [
"MIT"
] | 2 | 2016-07-04T18:27:31.000Z | 2017-05-09T02:10:35.000Z | /**
This file is part of program Lenna
Copyright (C) 2016 FalseCAM
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 License, or
any later version.
... | 27.923077 | 76 | 0.689099 | FalseCAM |
239f251385d8b800c9b57e918872f55b0c39a810 | 510 | cpp | C++ | libs/7zip/win/CPP/7zip/Compress/BranchMisc.cpp | JosephMillsAtWork/yacl | 22458da501b1bdf08c67f20b01bbe9d639cf326f | [
"MIT"
] | 2 | 2019-04-03T20:07:36.000Z | 2020-06-24T14:05:46.000Z | libs/7zip/unix/CPP/7zip/Compress/BranchMisc.cpp | JosephMillsAtWork/yacl | 22458da501b1bdf08c67f20b01bbe9d639cf326f | [
"MIT"
] | null | null | null | libs/7zip/unix/CPP/7zip/Compress/BranchMisc.cpp | JosephMillsAtWork/yacl | 22458da501b1bdf08c67f20b01bbe9d639cf326f | [
"MIT"
] | 1 | 2020-06-24T14:05:52.000Z | 2020-06-24T14:05:52.000Z | // BranchMisc.cpp
#include "StdAfx.h"
#include "../../../C/Bra.h"
#include "BranchMisc.h"
#define SUB_FILTER_IMP2(name, coderStr, coderNum) \
UInt32 CBC_ ## name ## coderStr::SubFilter(Byte *data, UInt32 size) \
{ return (UInt32)::name ## Convert(data, size, _bufferPos, coderNum); }
#define SUB_FILTER_IMP(name... | 23.181818 | 73 | 0.721569 | JosephMillsAtWork |
23a75672187a73d4b5788f00d9aaa7ee26681eba | 15,715 | cpp | C++ | algorithms/src/Navigation/obstacle_drivable_block_publisher/src/dynamic_block_generator.cpp | mfkiwl/GAAS | 29ab17d3e8a4ba18edef3a57c36d8db6329fac73 | [
"BSD-3-Clause"
] | 2,111 | 2019-01-29T07:01:32.000Z | 2022-03-29T06:48:14.000Z | algorithms/src/Navigation/obstacle_drivable_block_publisher/src/dynamic_block_generator.cpp | mfkiwl/GAAS | 29ab17d3e8a4ba18edef3a57c36d8db6329fac73 | [
"BSD-3-Clause"
] | 131 | 2019-02-18T10:56:18.000Z | 2021-09-27T12:07:00.000Z | algorithms/src/Navigation/obstacle_drivable_block_publisher/src/dynamic_block_generator.cpp | mfkiwl/GAAS | 29ab17d3e8a4ba18edef3a57c36d8db6329fac73 | [
"BSD-3-Clause"
] | 421 | 2019-02-12T07:59:18.000Z | 2022-03-27T05:22:01.000Z | #include "MapBlock.h"
//将perception模块的点云逐个转换成障碍地图坐标系 发布占据网格信息.
#include <iostream>
#include <mutex>
#include <pcl/filters/conditional_removal.h>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/core/persistence.hpp>
#include <ros/ros.h>
#include <tf2/Linear... | 48.804348 | 176 | 0.623799 | mfkiwl |
23a80284802de1133322967cf395a8704bc69e3f | 3,716 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/libs/clangsupport/clangcodemodelserverproxy.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/src/libs/clangsupport/clangcodemodelserverproxy.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/src/libs/clangsupport/clangcodemodelserverproxy.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 33.477477 | 146 | 0.784177 | kevinlq |
23a83ed58e6a8c89f69764fc4f46ae7de84e980b | 1,540 | cpp | C++ | US3D/vtkFlRender.cpp | berardino/haptic | 8cb2bec3566e25baed903cb6159503c20663fb30 | [
"MIT"
] | null | null | null | US3D/vtkFlRender.cpp | berardino/haptic | 8cb2bec3566e25baed903cb6159503c20663fb30 | [
"MIT"
] | null | null | null | US3D/vtkFlRender.cpp | berardino/haptic | 8cb2bec3566e25baed903cb6159503c20663fb30 | [
"MIT"
] | null | null | null | // vtkFlRender.cpp: implementation of the vtkFlRender class.
//
//////////////////////////////////////////////////////////////////////
#include "vtkFlRender.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
/////////////////////////////////////////////////////... | 30.8 | 71 | 0.602597 | berardino |
23abc84033e89128ccf5d42ebb2db8e3789bf4ee | 17,636 | cpp | C++ | src/ndnSIM/utils/topology/annotated-topology-reader.cpp | NDNLink/NDN-Chord | cfabf8f56eea2c4ba47052ce145a939ebdc21e57 | [
"MIT"
] | 1 | 2021-09-07T04:12:15.000Z | 2021-09-07T04:12:15.000Z | src/ndnSIM/utils/topology/annotated-topology-reader.cpp | NDNLink/NDN-Chord | cfabf8f56eea2c4ba47052ce145a939ebdc21e57 | [
"MIT"
] | null | null | null | src/ndnSIM/utils/topology/annotated-topology-reader.cpp | NDNLink/NDN-Chord | cfabf8f56eea2c4ba47052ce145a939ebdc21e57 | [
"MIT"
] | 1 | 2020-07-15T06:21:03.000Z | 2020-07-15T06:21:03.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2011-2015 Regents of the University of California.
*
* This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and
* contributors.
*
* ndnSIM is free software: you can redistribute it and/or modify it under... | 30.564991 | 100 | 0.636936 | NDNLink |
23adbb9d0e90ed9b5d0570bd32953fa527e94e63 | 4,011 | cpp | C++ | tests/geometric_list_benchmark.cpp | Steve132/shove | 6629dff9d7e38af88544ffbc9526cb6a289607e7 | [
"BSL-1.0"
] | null | null | null | tests/geometric_list_benchmark.cpp | Steve132/shove | 6629dff9d7e38af88544ffbc9526cb6a289607e7 | [
"BSL-1.0"
] | null | null | null | tests/geometric_list_benchmark.cpp | Steve132/shove | 6629dff9d7e38af88544ffbc9526cb6a289607e7 | [
"BSL-1.0"
] | null | null | null | #include<array>
#include<cstdint>
#include<algorithm>
#include<random>
#include<iostream>
static constexpr unsigned int LG_NUM_BLOCKS=3;
static constexpr unsigned int NUM_BLOCKS=1U << LG_NUM_BLOCKS;
using handle_t=uint8_t;
using index_t=uint_fast8_t;
using mask_t=std::uint8_t;
static constexpr unsigned int MASK_SIZE... | 19.856436 | 117 | 0.660683 | Steve132 |
23ae846a3eb2180dbf53409bd8509d1cbbe2d4ff | 172 | cpp | C++ | C++/0028-Implement-Strstr/soln.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/0028-Implement-Strstr/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/0028-Implement-Strstr/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution {
public:
int strStr(string haystack, string needle) {
auto ans = haystack.find(needle);
return ans == string::npos ? -1 : ans;
}
};
| 21.5 | 48 | 0.593023 | wyaadarsh |
23aff98f759970379069c5133903dbfdb0c21167 | 2,414 | cpp | C++ | Samples/ExtendedExecution/cpp/SampleConfiguration.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,504 | 2019-05-07T06:56:42.000Z | 2022-03-31T19:37:59.000Z | Samples/ExtendedExecution/cpp/SampleConfiguration.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 314 | 2019-05-08T16:56:30.000Z | 2022-03-21T07:13:45.000Z | Samples/ExtendedExecution/cpp/SampleConfiguration.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,219 | 2019-05-07T00:47:26.000Z | 2022-03-30T21:12:31.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 32.621622 | 110 | 0.648302 | dujianxin |
23b1e3e0bd7df011973d0f5394ab0730a1a3bc1c | 7,724 | cpp | C++ | Engine/Network/EntityHashing.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | Engine/Network/EntityHashing.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | Engine/Network/EntityHashing.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | #include "stdh.h"
#include <Engine/Entities/InternalClasses.h>
#include <Engine/Entities/EntityClass.h>
#include <Engine/Network/CNetwork.h>
#include <Engine/Network/EntityHashing.h>
#define VALUE_TYPE ULONG
#define TYPE CEntityHashItem
#define CHashTableSlot_TYPE CEntityHashTableSlot
#define CHashTable_TYPE CEnt... | 36.093458 | 146 | 0.795184 | openlastchaos |
23b8e798181c2a38c52d3112bfac38bd85e860bf | 2,536 | cpp | C++ | source/src/Moments.cpp | TatianaOvsiannikova/ostap | a005a78b4e2860ac8f4b618e94b4b563b2eddcf1 | [
"BSD-3-Clause"
] | 14 | 2017-03-24T12:38:08.000Z | 2022-02-21T05:00:57.000Z | source/src/Moments.cpp | TatianaOvsiannikova/ostap | a005a78b4e2860ac8f4b618e94b4b563b2eddcf1 | [
"BSD-3-Clause"
] | 10 | 2019-03-08T18:48:42.000Z | 2022-03-22T11:59:48.000Z | source/src/Moments.cpp | TatianaOvsiannikova/ostap | a005a78b4e2860ac8f4b618e94b4b563b2eddcf1 | [
"BSD-3-Clause"
] | 11 | 2017-03-23T15:29:58.000Z | 2022-02-21T05:03:57.000Z | // ============================================================================
// Include files
// ============================================================================
// STD&STL
// ============================================================================
// Ostap
// ================================... | 40.903226 | 81 | 0.247634 | TatianaOvsiannikova |
23bbd8e26a5d435f346420ae7830b6932f18bc0a | 3,095 | cpp | C++ | src/lsim_context.cpp | JohanSmet/lsim | 144d86a68e183436db7d9364d1220580404a53c6 | [
"BSD-3-Clause"
] | 7 | 2020-09-17T11:26:47.000Z | 2022-03-13T19:20:49.000Z | src/lsim_context.cpp | JohanSmet/lsim | 144d86a68e183436db7d9364d1220580404a53c6 | [
"BSD-3-Clause"
] | null | null | null | src/lsim_context.cpp | JohanSmet/lsim | 144d86a68e183436db7d9364d1220580404a53c6 | [
"BSD-3-Clause"
] | 3 | 2020-09-17T11:26:52.000Z | 2022-03-21T19:46:45.000Z | // lsim_context.cpp - Johan Smet - BSD-3-Clause (see LICENSE)
#include "lsim_context.h"
#include "serialize.h"
#include <cassert>
namespace lsim {
void LSimContext::load_reference_library(const char *name, const char *filename) {
if (m_reference_libraries.find(name) != m_reference_libraries.end()) {
ret... | 26.913043 | 94 | 0.643942 | JohanSmet |
23c01bc012a1c5185e8af4b945383b5263654313 | 1,538 | cpp | C++ | src/win32/PropertyGridListBox.cpp | NullPopPoLab/Play--Framework | ab4594f9ef548f1476c9017e122a05dfb91cc9d3 | [
"BSD-2-Clause"
] | 35 | 2015-02-19T20:11:05.000Z | 2021-11-05T12:55:07.000Z | src/win32/PropertyGridListBox.cpp | NullPopPoLab/Play--Framework | ab4594f9ef548f1476c9017e122a05dfb91cc9d3 | [
"BSD-2-Clause"
] | 24 | 2015-07-19T04:51:29.000Z | 2022-03-31T00:36:45.000Z | src/win32/PropertyGridListBox.cpp | Thunder07/Play--Framework | b0c8487656492f237f6613fccadbb8011b61bd4d | [
"BSD-2-Clause"
] | 22 | 2015-02-16T03:36:00.000Z | 2022-01-23T13:15:00.000Z | #include <windowsx.h>
#include "win32/PropertyGridListBox.h"
using namespace Framework;
using namespace Framework::Win32;
#define LISTBOX_STYLE (WS_CLIPCHILDREN | WS_CLIPSIBLINGS | LBS_NOTIFY | LBS_OWNERDRAWFIXED | LBS_NOINTEGRALHEIGHT | LBS_WANTKEYBOARDINPUT)
CPropertyGridListBox::CPropertyGridListBox(HWND ... | 24.412698 | 139 | 0.73407 | NullPopPoLab |
23c33af2b6a72c30165ca4436c7af061e6806903 | 9,358 | cpp | C++ | android/android_42/base/services/jni/com_android_server_power_PowerManagerService.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | android/android_42/base/services/jni/com_android_server_power_PowerManagerService.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | android/android_42/base/services/jni/com_android_server_power_PowerManagerService.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2010 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... | 34.278388 | 99 | 0.665206 | yakuizhao |
23c61deac112b8be488eb83bf7a909b812ef0ab6 | 1,238 | hpp | C++ | test/openp2p/src/OpenP2P/Kademlia/Node.hpp | goodspeed24e/2014iOT | 139f6e2131f8a94cb876328b5f733e3feef77707 | [
"MIT"
] | null | null | null | test/openp2p/src/OpenP2P/Kademlia/Node.hpp | goodspeed24e/2014iOT | 139f6e2131f8a94cb876328b5f733e3feef77707 | [
"MIT"
] | null | null | null | test/openp2p/src/OpenP2P/Kademlia/Node.hpp | goodspeed24e/2014iOT | 139f6e2131f8a94cb876328b5f733e3feef77707 | [
"MIT"
] | null | null | null | #ifndef OPENP2P_KADEMLIA_NODE_HPP
#define OPENP2P_KADEMLIA_NODE_HPP
#include <cstddef>
#include <OpenP2P/BinaryStream.hpp>
#include <OpenP2P/Kademlia/Id.hpp>
namespace OpenP2P {
namespace Kademlia {
template <typename EndpointType, size_t IdSize>
struct Node {
Id<IdSize> id;
EndpointType endpoint;
};
... | 25.791667 | 93 | 0.708401 | goodspeed24e |
23c70f4de5f3c9e87e67e4e62d04da156b742db7 | 5,015 | cpp | C++ | GamePlay/Source/GameLogicTutorFractions.cpp | TaylorClark/PrimeTime | 3c62f6c53e0494146a95be1412273de3cf05bcd2 | [
"MIT"
] | null | null | null | GamePlay/Source/GameLogicTutorFractions.cpp | TaylorClark/PrimeTime | 3c62f6c53e0494146a95be1412273de3cf05bcd2 | [
"MIT"
] | null | null | null | GamePlay/Source/GameLogicTutorFractions.cpp | TaylorClark/PrimeTime | 3c62f6c53e0494146a95be1412273de3cf05bcd2 | [
"MIT"
] | null | null | null | //=================================================================================================
/*!
\file GameLogicTutorFractions.cpp
Game Play Library
Fraction Mode Tutorial Game Logic Source
\author Taylor Clark
\date January 30, 2010
This source file contains the definition for the Prime Time fraction mod... | 37.425373 | 218 | 0.605982 | TaylorClark |
23ccad84aa35300891e884edfd6c69856e3426c4 | 2,563 | hpp | C++ | modules/scene_manager/include/lifecycle_msgs/msg/transition__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/scene_manager/include/lifecycle_msgs/msg/transition__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-11-14T12:20:06.000Z | 2020-08-07T13:51:10.000Z | modules/scene_manager/include/lifecycle_msgs/msg/transition__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | // generated from
// rosidl_typesupport_opensplice_cpp/resource/msg__rosidl_typesupport_opensplice_cpp.hpp.em
// generated code does not contain a copyright notice
#ifndef LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_HPP_
#define LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_... | 27.55914 | 122 | 0.849395 | Omnirobotic |
23cfdc86e1cd3742acfea1b4aa6446346d3c983c | 5,039 | cpp | C++ | 3rdparty/mmdb2/mmdb2/mmdb_math_.cpp | merkys/MMB | 0531385b8367405e1188e31c3eef7aa4cc50170b | [
"MIT"
] | null | null | null | 3rdparty/mmdb2/mmdb2/mmdb_math_.cpp | merkys/MMB | 0531385b8367405e1188e31c3eef7aa4cc50170b | [
"MIT"
] | null | null | null | 3rdparty/mmdb2/mmdb2/mmdb_math_.cpp | merkys/MMB | 0531385b8367405e1188e31c3eef7aa4cc50170b | [
"MIT"
] | 1 | 2020-02-04T15:39:06.000Z | 2020-02-04T15:39:06.000Z | // $Id: mmdb_math.cpp $
// =================================================================
//
// CCP4 Coordinate Library: support of coordinate-related
// functionality in protein crystallography applications.
//
// Copyright (C) Eugene Krissinel 2000-2013.
//
// This library is free software: you can redi... | 24.70098 | 70 | 0.4102 | merkys |
23d03126db9b4c28825d08569fa0a18973b49073 | 75 | cc | C++ | examples/test_cc_shared_library/qux.cc | meteorcloudy/rules_cc | d545fa4f798f2a0b82f556b8b0ec59a93c100df7 | [
"Apache-2.0"
] | 96 | 2018-12-15T00:47:41.000Z | 2022-03-31T06:23:14.000Z | examples/test_cc_shared_library/qux.cc | meteorcloudy/rules_cc | d545fa4f798f2a0b82f556b8b0ec59a93c100df7 | [
"Apache-2.0"
] | 83 | 2019-02-05T14:48:25.000Z | 2022-03-17T11:53:31.000Z | examples/test_cc_shared_library/qux.cc | meteorcloudy/rules_cc | d545fa4f798f2a0b82f556b8b0ec59a93c100df7 | [
"Apache-2.0"
] | 74 | 2019-01-18T09:14:49.000Z | 2022-03-20T18:34:07.000Z | #include "examples/test_cc_shared_library/qux.h"
int qux() { return 42; }
| 18.75 | 48 | 0.733333 | meteorcloudy |
23d0c46473c07a6109fd6a96698d5be25ccf566c | 112 | cpp | C++ | libtooling/tests/lambda.cpp | abdarker/facebook-clang-plugins | 7d55695bb0cbd821ae0acc33db5a6982abd2da3a | [
"BSD-3-Clause"
] | null | null | null | libtooling/tests/lambda.cpp | abdarker/facebook-clang-plugins | 7d55695bb0cbd821ae0acc33db5a6982abd2da3a | [
"BSD-3-Clause"
] | null | null | null | libtooling/tests/lambda.cpp | abdarker/facebook-clang-plugins | 7d55695bb0cbd821ae0acc33db5a6982abd2da3a | [
"BSD-3-Clause"
] | null | null | null | int main (){
int m,n;
auto f = [](){return 1;};
auto bar = [&m, n] (int a) { return m; };
return 0;
} | 12.444444 | 45 | 0.455357 | abdarker |
23d21174dd94b62bc7e1ff4e87de816060d4cd36 | 3,550 | cpp | C++ | blacklist.cpp | Galaxies99/ChatRoomClient | 240138b1ae0a1b3eb5d0b57a164f1bea1a21dfe8 | [
"MIT"
] | 1 | 2020-06-06T12:03:30.000Z | 2020-06-06T12:03:30.000Z | blacklist.cpp | Galaxies99/ChatRoomClient | 240138b1ae0a1b3eb5d0b57a164f1bea1a21dfe8 | [
"MIT"
] | null | null | null | blacklist.cpp | Galaxies99/ChatRoomClient | 240138b1ae0a1b3eb5d0b57a164f1bea1a21dfe8 | [
"MIT"
] | null | null | null | #include "blacklist.h"
#include "ui_blacklist.h"
#include <QMessageBox>
extern QString ipAddr;
extern int portAddr;
extern QString UserName;
blacklist::blacklist(QWidget *parent) :
QDialog(parent),
ui(new Ui::blacklist)
{
ui->setupUi(this);
cl = new chatClient(this);
cl -> connectToServer(ipAddr, ... | 34.803922 | 130 | 0.57662 | Galaxies99 |
23d949efe79b959a7ba9b3b3133b8b61d83ccab3 | 999 | cpp | C++ | thirdparty/source/nu/tests/error_or_example.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | thirdparty/source/nu/tests/error_or_example.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | thirdparty/source/nu/tests/error_or_example.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | using nu::error_or;
using nu::make_error_or;
// default-constructed objects contain Err(), which by default is std::error_code
error_or<int> e;
error_or<int> i(1);
// et will still contain Err()
error_or<int> et = e / [] (int i) { return i+1; };
ASSERT_EQ(et.error(), std::error_code());
// it will contain 2
error_or... | 25.615385 | 81 | 0.582583 | TomatoYoung |
23dc8ce85a9d52ad52155110a606d79522981997 | 343 | cpp | C++ | core/src/DebouncerImpuseRepeatStrategy.cpp | perimeno/LIO | 62578bdee261735afa23f7c0c8437e927425aef6 | [
"MIT"
] | 25 | 2019-08-07T02:38:39.000Z | 2022-01-14T03:13:58.000Z | core/src/DebouncerImpuseRepeatStrategy.cpp | perimeno/LIO | 62578bdee261735afa23f7c0c8437e927425aef6 | [
"MIT"
] | 6 | 2020-01-17T20:51:15.000Z | 2021-03-11T12:38:29.000Z | core/src/DebouncerImpuseRepeatStrategy.cpp | perimeno/LIO | 62578bdee261735afa23f7c0c8437e927425aef6 | [
"MIT"
] | 2 | 2019-08-24T19:02:12.000Z | 2020-06-11T06:14:34.000Z | #include "DebouncerImpuseRepeatStrategy.h"
using namespace LIO;
DebouncerImpulseRepeatStrategy::DebouncerImpulseRepeatStrategy():onCb([]{}),offCb([]{}){
}
void DebouncerImpulseRepeatStrategy::setOnCallback(std::function<void()>cb){
onCb=cb;
}
void DebouncerImpulseRepeatStrategy::setOffCallback(std::function<void(... | 26.384615 | 88 | 0.772595 | perimeno |
23ec57f327f16dbd276c7596fa06b02910ba5018 | 3,147 | cpp | C++ | Street Fighter II/ModuleParticles.cpp | mtorres5254/Arial--Comic-Sans--Dealers | 2c668e0980c80e141fa1a43726fdf6f6149f299a | [
"CC0-1.0"
] | 2 | 2019-02-28T17:43:05.000Z | 2019-06-09T17:45:17.000Z | Street Fighter II/ModuleParticles.cpp | mtorres5254/Arial--Comic-Sans--Dealers | 2c668e0980c80e141fa1a43726fdf6f6149f299a | [
"CC0-1.0"
] | 1 | 2019-05-03T07:38:50.000Z | 2019-05-03T07:38:50.000Z | Street Fighter II/ModuleParticles.cpp | mtorres5254/Arial--Comic-Sans--Dealers | 2c668e0980c80e141fa1a43726fdf6f6149f299a | [
"CC0-1.0"
] | 2 | 2019-02-28T17:43:15.000Z | 2019-12-28T17:25:42.000Z | #include <math.h>
#include "Globals.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModuleParticles.h"
#include "ModuleAudio.h"
#include "ModuleCollision.h"
#include "SDL/include/SDL_timer.h"
ModuleParticles::ModuleParticles()
{
for(uint i = 0; i < MAX_ACTIVE_PARTICLES; ++... | 19.425926 | 116 | 0.598983 | mtorres5254 |
23f173eaa9228274fdf49ff2f793994aad3693a6 | 220 | cpp | C++ | qr-state.cpp | nnm-t/m5stickc-visiting-card | 858a11ffa48c6d7e76d19c84cb9529a3ef3754da | [
"MIT"
] | 3 | 2020-03-08T07:15:04.000Z | 2020-07-20T17:28:28.000Z | qr-state.cpp | nnm-t/m5stickc-visiting-card | 858a11ffa48c6d7e76d19c84cb9529a3ef3754da | [
"MIT"
] | null | null | null | qr-state.cpp | nnm-t/m5stickc-visiting-card | 858a11ffa48c6d7e76d19c84cb9529a3ef3754da | [
"MIT"
] | null | null | null | #include "qr-state.h"
constexpr const Vector2<uint16_t> QRState::qr_pos;
void QRState::DrawQRCode()
{
LCD::DrawQRCode(url, qr_pos, 64, 2);
}
void QRState::Begin()
{
DrawQRCode();
}
void QRState::Update()
{
} | 12.222222 | 50 | 0.663636 | nnm-t |
23f6723c1cba7f49f1e0d966824f675f1093af6c | 21,403 | hpp | C++ | include/zisa/experiments/mpi_numerical_experiment.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/experiments/mpi_numerical_experiment.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/experiments/mpi_numerical_experiment.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | 1 | 2021-08-24T11:52:51.000Z | 2021-08-24T11:52:51.000Z | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval
#ifndef ZISA_MPI_NUMERICAL_EXPERIMENT_HPP
#define ZISA_MPI_NUMERICAL_EXPERIMENT_HPP
#if ZISA_HAS_MPI == 1
#include <zisa/boundary/halo_exchange_bc.hpp>
#include <zisa/cli/input_parameters.hpp>
#include <zisa/grid/grid.hpp>
#include... | 35.494196 | 80 | 0.662431 | 1uc |
23f779de6bf80b0bd611c535aff8d96fc5ba0ccd | 1,655 | cpp | C++ | Origin/src/Origin/Renderer/Primitives/Buffers.cpp | UnNabbo/OriginEngine | d4b51f8cf0e716e2b5dee739de20d49f0e24872a | [
"Apache-2.0"
] | 2 | 2022-02-04T09:26:47.000Z | 2022-02-04T20:31:12.000Z | Origin/src/Origin/Renderer/Primitives/Buffers.cpp | UnNabbo/OriginEngine | d4b51f8cf0e716e2b5dee739de20d49f0e24872a | [
"Apache-2.0"
] | null | null | null | Origin/src/Origin/Renderer/Primitives/Buffers.cpp | UnNabbo/OriginEngine | d4b51f8cf0e716e2b5dee739de20d49f0e24872a | [
"Apache-2.0"
] | null | null | null | #include "OGpch.h"
#include "Origin/Renderer/Renderer.h"
#include "Platform/Opengl/OpenGLBuffers.h"
namespace Origin {
Reference<VertexBuffer> VertexBuffer::Create(uint32_t size) {
switch (Renderer::GetAPI()) {
case RendererAPI::API::None: ORIGIN_ASSERT(false, "RendererAPI::None is currently not supported!"... | 33.77551 | 121 | 0.73716 | UnNabbo |
23f77d30cf539b491632bc61da774d0a1f7b2713 | 1,961 | cpp | C++ | DataStructures/SegTreeLazyPropagation.cpp | ThiagoGMF/Algorithms | 1c20c88a1858bcef596e652808ef61f5d20defe4 | [
"MIT"
] | null | null | null | DataStructures/SegTreeLazyPropagation.cpp | ThiagoGMF/Algorithms | 1c20c88a1858bcef596e652808ef61f5d20defe4 | [
"MIT"
] | null | null | null | DataStructures/SegTreeLazyPropagation.cpp | ThiagoGMF/Algorithms | 1c20c88a1858bcef596e652808ef61f5d20defe4 | [
"MIT"
] | null | null | null | struct SegTreeLazy{
vector<int> seg;
vector<int> lazy;
vector<int> a;
int N;
int null_val = 0;
SegTreeLazy(const vector<int> &v){
N = (int) v.size();
seg.resize(4*N,null_val);
lazy.resize(4*N,null_val);
a = v;
build(1, 0, N-1);
}
... | 25.802632 | 67 | 0.410505 | ThiagoGMF |
23f8501596cdbc5e113c7f6f47e6ce1f31f1883b | 2,265 | cc | C++ | core/globals.cc | jnschulze/foxglove | 6d5cb37b33ec4a4cfb2b7d9f13355670fdad18ab | [
"BSD-3-Clause"
] | 2 | 2022-02-01T02:27:42.000Z | 2022-02-23T15:36:57.000Z | core/globals.cc | jnschulze/foxglove | 6d5cb37b33ec4a4cfb2b7d9f13355670fdad18ab | [
"BSD-3-Clause"
] | null | null | null | core/globals.cc | jnschulze/foxglove | 6d5cb37b33ec4a4cfb2b7d9f13355670fdad18ab | [
"BSD-3-Clause"
] | 1 | 2022-02-23T15:36:58.000Z | 2022-02-23T15:36:58.000Z | #include "globals.h"
#include "player_environment.h"
#include "vlc/vlc_environment.h"
namespace foxglove {
EnvironmentRegistry::EnvironmentRegistry() {}
std::shared_ptr<PlayerEnvironment> EnvironmentRegistry::CreateEnvironment(
std::vector<std::string> args) {
auto environment = std::make_shared<VlcEnvironmen... | 25.738636 | 80 | 0.691832 | jnschulze |
23fad9c42ca27140b440384feb015792f6544ca0 | 1,871 | cpp | C++ | applications/DelaunayMeshingApplication/custom_python/add_custom_bounding_to_python.cpp | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | applications/DelaunayMeshingApplication/custom_python/add_custom_bounding_to_python.cpp | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | applications/DelaunayMeshingApplication/custom_python/add_custom_bounding_to_python.cpp | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | //
// Project Name: KratosDelaunayMeshingApplication $
// Created by: $Author: JMCarbonell $
// Last modified by: $Co-Author: $
// Date: $Date: April 2018 $
// Revision: $Revision: 0.0 $
//
//
// Sy... | 28.784615 | 94 | 0.671299 | lkusch |
67111a15d413ce720e81b345ecb82f5a07252c49 | 3,519 | cpp | C++ | rclcpp/src/rclcpp/executors/single_threaded_executor.cpp | Micrified/rclcpp | 8006ed21e5d93aa215cbb96080cc5a429fecc49f | [
"Apache-2.0"
] | 1 | 2021-07-19T09:22:12.000Z | 2021-07-19T09:22:12.000Z | rclcpp/src/rclcpp/executors/single_threaded_executor.cpp | Micrified/rclcpp | 8006ed21e5d93aa215cbb96080cc5a429fecc49f | [
"Apache-2.0"
] | null | null | null | rclcpp/src/rclcpp/executors/single_threaded_executor.cpp | Micrified/rclcpp | 8006ed21e5d93aa215cbb96080cc5a429fecc49f | [
"Apache-2.0"
] | null | null | null | // Copyright 2015 Open Source Robotics Foundation, 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 required by appli... | 26.066667 | 94 | 0.717533 | Micrified |
6715e92c6edb8abb9394bd40c724aca490bbe345 | 1,409 | cpp | C++ | e_removedup.cpp | skyera/myleetcode | c3524e73b320afb863d0c04d40b1b660ff9fec8c | [
"MIT"
] | null | null | null | e_removedup.cpp | skyera/myleetcode | c3524e73b320afb863d0c04d40b1b660ff9fec8c | [
"MIT"
] | null | null | null | e_removedup.cpp | skyera/myleetcode | c3524e73b320afb863d0c04d40b1b660ff9fec8c | [
"MIT"
] | null | null | null | // 8.30.2017
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <cassert>
using namespace std;
int removedup(vector<int> &nums)
{
if (nums.empty()) return 0;
int index = 0;
for (int i = 1; i < nums.size(); i++)
if (nums[i] != nums[index])
nums[++ind... | 20.128571 | 88 | 0.53868 | skyera |
671a425f8c0d54fec0c90762a22fd02390155cdf | 1,139 | cpp | C++ | projects/biogears/libBiogears/src/pybwrappers/cdm/scenario/requests/pybSELiquidCompartmentDataRequest.cpp | vybhavramachandran/mophy | 7271c12b85a324a4f1494e0ce15942dc25bc4931 | [
"Apache-2.0"
] | null | null | null | projects/biogears/libBiogears/src/pybwrappers/cdm/scenario/requests/pybSELiquidCompartmentDataRequest.cpp | vybhavramachandran/mophy | 7271c12b85a324a4f1494e0ce15942dc25bc4931 | [
"Apache-2.0"
] | 5 | 2020-12-23T00:19:32.000Z | 2020-12-29T20:53:58.000Z | projects/biogears/libBiogears/src/pybwrappers/cdm/scenario/requests/pybSELiquidCompartmentDataRequest.cpp | vybhavramachandran/biogears-vybhav | 7271c12b85a324a4f1494e0ce15942dc25bc4931 | [
"Apache-2.0"
] | null | null | null | #include <biogears/cdm/scenario/requests/SELiquidCompartmentDataRequest.h>
#include <biogears/schema/cdm/Compartment.hxx>
#include <biogears/cdm/substance/SESubstance.h>
#include <biogears/cdm/substance/SESubstanceManager.h>
#include <biogears/cdm/scenario/requests/SEDataRequestManager.h>
#include <biogears/cdm/scenari... | 33.5 | 137 | 0.784899 | vybhavramachandran |
671c881a042cd9409c8cfddec684afcd5e7ea593 | 6,949 | cpp | C++ | Sources/Tools/EPI/GUI/GuiDocumentManager.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | 2 | 2015-04-16T01:05:53.000Z | 2019-08-26T07:38:43.000Z | Sources/Tools/EPI/GUI/GuiDocumentManager.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | Sources/Tools/EPI/GUI/GuiDocumentManager.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... | 36.005181 | 160 | 0.580515 | benkaraban |
671d13c9822cfa26de1831c9c1b436872fd23de0 | 1,184 | hpp | C++ | include/hash.hpp | dashasheveleva/lab_06-multithreads | 0377238b9024da7927e5345a4811ec1e33d57d04 | [
"MIT"
] | null | null | null | include/hash.hpp | dashasheveleva/lab_06-multithreads | 0377238b9024da7927e5345a4811ec1e33d57d04 | [
"MIT"
] | null | null | null | include/hash.hpp | dashasheveleva/lab_06-multithreads | 0377238b9024da7927e5345a4811ec1e33d57d04 | [
"MIT"
] | null | null | null | // Copyright 2022 Shevelyova Darya photodoshfy@gmail.com
#ifndef INCLUDE_HASH_HPP_
#define INCLUDE_HASH_HPP_
#include <boost/log/expressions.hpp>
#include <boost/log/sinks.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup.hpp>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <mute... | 29.6 | 75 | 0.726351 | dashasheveleva |
671e5886239831c0c7c51bf98947cd252a5e762e | 2,348 | cpp | C++ | Round-Robin/UI.cpp | MichelDequick/mbed-round-robin | dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1 | [
"Apache-2.0"
] | null | null | null | Round-Robin/UI.cpp | MichelDequick/mbed-round-robin | dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1 | [
"Apache-2.0"
] | null | null | null | Round-Robin/UI.cpp | MichelDequick/mbed-round-robin | dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1 | [
"Apache-2.0"
] | null | null | null | #include "UI.h"
#include "mbed.h"
#include "C12832.h"
#include "joystick.h"
UI::UI(C12832 * lcd)
{
this->lcd = lcd;
dark_theme = false;
}
UI::~UI(void)
{
}
void UI::darkTheme(bool dark)
{
this->dark_theme = dark;
lcd->invert(dark);
}
void UI::background()
{
lcd->cls();
lcd->rect(1,1,126,30... | 21.541284 | 123 | 0.495315 | MichelDequick |
6722087d0e5f9f496aab36920650cbb4c7ceab6a | 3,881 | cpp | C++ | src/file_linux.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | 1 | 2020-07-04T01:11:38.000Z | 2020-07-04T01:11:38.000Z | src/file_linux.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | null | null | null | src/file_linux.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | null | null | null | #include "netlib/file.h"
#include "netlib_linux.h"
#include <iostream>
#include <fcntl.h>
#include <unistd.h>
namespace netlib
{
//
// file_internal
//
struct file_internal: public ref_counted
{
int handle;
off_t position;
aio_struct aio;
file_internal(int _hdl=-1)
{
handle = _hdl;
position = 0;... | 15.971193 | 61 | 0.595723 | ricky26 |
6724b5b5ebb610afb9123e097d1958977ed6149c | 1,761 | cpp | C++ | src/renderer/direct12/mxgpuarray.cpp | goulart81/mewa | 3211ebd966e18e6bec4a3469e9cc41ed2b31244e | [
"MIT"
] | 5 | 2021-04-21T20:38:30.000Z | 2022-03-20T06:55:30.000Z | src/renderer/direct12/mxgpuarray.cpp | goulart81/mewa | 3211ebd966e18e6bec4a3469e9cc41ed2b31244e | [
"MIT"
] | 3 | 2021-12-27T01:20:22.000Z | 2022-02-25T15:24:41.000Z | src/renderer/direct12/mxgpuarray.cpp | goulart81/mewa | 3211ebd966e18e6bec4a3469e9cc41ed2b31244e | [
"MIT"
] | 3 | 2021-04-22T23:27:21.000Z | 2022-01-09T12:45:33.000Z | /****************************************************************************
** Copyright (C) 2020-2021 Mewatools <hugo@mewatools.com>
** SPDX-License-Identifier: MIT License
****************************************************************************/
#include "mxgpuarray.h"
#include "mxdebug.h"
MxGpuArray::MxGpuAr... | 22.291139 | 77 | 0.670074 | goulart81 |
6724e68797dc9d8718ffefb157e242b9bcb73029 | 5,766 | cc | C++ | lib/util/util.cc | MUCZ/Starfish | 4960b7f6001264731c1aea0b8171d187f5ec8ed8 | [
"Apache-2.0"
] | 8 | 2021-02-22T01:10:06.000Z | 2022-02-28T13:30:26.000Z | lib/util/util.cc | MUCZ/Starfish | 4960b7f6001264731c1aea0b8171d187f5ec8ed8 | [
"Apache-2.0"
] | 2 | 2021-12-20T04:29:06.000Z | 2022-03-21T01:00:19.000Z | lib/util/util.cc | MUCZ/Starfish | 4960b7f6001264731c1aea0b8171d187f5ec8ed8 | [
"Apache-2.0"
] | 7 | 2021-02-22T01:10:16.000Z | 2022-02-18T11:49:15.000Z | #include "util.hh"
#include <array>
#include <cctype>
#include <chrono>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <sys/socket.h>
using namespace std;
//! \returns the number of milliseconds since the program started
uint64_t timestamp_ms() {
using time_point = std::chrono::steady_clock::... | 39.765517 | 110 | 0.651925 | MUCZ |
672555ffe725650cf18a34188c5fdd51ccabcc31 | 22,241 | hpp | C++ | include/util_automated_driving_msgs/util_automated_driving_msgs.hpp | coincar-sim/util_automated_driving_msgs | c10c90392a1aebcbaf74f6a93a18022298583b1e | [
"BSD-3-Clause"
] | null | null | null | include/util_automated_driving_msgs/util_automated_driving_msgs.hpp | coincar-sim/util_automated_driving_msgs | c10c90392a1aebcbaf74f6a93a18022298583b1e | [
"BSD-3-Clause"
] | null | null | null | include/util_automated_driving_msgs/util_automated_driving_msgs.hpp | coincar-sim/util_automated_driving_msgs | c10c90392a1aebcbaf74f6a93a18022298583b1e | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017
* FZI Forschungszentrum Informatik, Karlsruhe, Germany (www.fzi.de)
* KIT, Institute of Measurement and Control, Karlsruhe, Germany (www.mrt.kit.edu)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... | 51.964953 | 118 | 0.725867 | coincar-sim |
672aa21fcc6f29b95498cd3f63a8c16814bb1493 | 8,612 | cpp | C++ | src/hidapi/linux/hid.cpp | ford442/SDL2 | 07f200311aa2e259c16408e2afc71f5d8a975c4f | [
"Zlib"
] | null | null | null | src/hidapi/linux/hid.cpp | ford442/SDL2 | 07f200311aa2e259c16408e2afc71f5d8a975c4f | [
"Zlib"
] | null | null | null | src/hidapi/linux/hid.cpp | ford442/SDL2 | 07f200311aa2e259c16408e2afc71f5d8a975c4f | [
"Zlib"
] | null | null | null | //=================== Copyright Valve Corporation, All rights reserved. =======
//
// Purpose: A wrapper around both the libusb and hidraw versions of HIDAPI
//
// The libusb version doesn't support Bluetooth, but not all Linux
// distributions allow access to /dev/hidraw*
//
// This merges t... | 33.640625 | 197 | 0.780423 | ford442 |
672c241ab6b127f406a6d59aed97859c84118141 | 988 | cpp | C++ | Library/OldOSs/LibWin2K/ToString.cpp | rrvt/ICS-214a | 939d63466aa9dc6d71fb78765ff37aff0b667ea9 | [
"MIT"
] | null | null | null | Library/OldOSs/LibWin2K/ToString.cpp | rrvt/ICS-214a | 939d63466aa9dc6d71fb78765ff37aff0b667ea9 | [
"MIT"
] | null | null | null | Library/OldOSs/LibWin2K/ToString.cpp | rrvt/ICS-214a | 939d63466aa9dc6d71fb78765ff37aff0b667ea9 | [
"MIT"
] | null | null | null | // Win2000 to_string replacement
// BobK6RWY
#include "stdafx.h"
#include "ToString.h"
static char buf[25];
string to_string(int Val) {sprintf_s(buf, sizeof(buf), "%i", Val); return buf;}
string to_string(unsigned int Val) {sprintf_s(buf, sizeof(buf), "%u", Val); return buf;}
string to_st... | 44.909091 | 96 | 0.639676 | rrvt |
6731868520392c3b4be84833566cca6359fb7679 | 6,261 | hh | C++ | src/xmlcsp/ExpressionParser.hh | kad15/SandBoxToulbar2 | 31430ec5e6c6cec1eabe6f5d04bfb8134777821c | [
"MIT"
] | 33 | 2018-08-16T18:14:35.000Z | 2022-03-14T10:26:18.000Z | src/xmlcsp/ExpressionParser.hh | kad15/SandBoxToulbar2 | 31430ec5e6c6cec1eabe6f5d04bfb8134777821c | [
"MIT"
] | 13 | 2018-08-09T06:53:08.000Z | 2022-03-28T10:26:24.000Z | src/xmlcsp/ExpressionParser.hh | kad15/SandBoxToulbar2 | 31430ec5e6c6cec1eabe6f5d04bfb8134777821c | [
"MIT"
] | 12 | 2018-06-06T15:19:46.000Z | 2022-02-11T17:09:27.000Z | /*=============================================================================
* parser for CSP instances represented in XML format
*
* Copyright (c) 2008 Olivier ROUSSEL (olivier.roussel <at> cril.univ-artois.fr)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softwa... | 31.305 | 90 | 0.569877 | kad15 |
6732f6687343a2981c66eb1746a2cd6cd542d654 | 234 | hpp | C++ | include/Shader/ShaderLoader.hpp | olesgedz/Cube | 12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6 | [
"Apache-2.0"
] | 2 | 2020-12-21T18:31:02.000Z | 2020-12-27T14:36:03.000Z | include/Shader/ShaderLoader.hpp | olesgedz/Cube | 12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6 | [
"Apache-2.0"
] | 1 | 2021-01-08T20:49:43.000Z | 2021-01-08T20:49:43.000Z | include/Shader/ShaderLoader.hpp | olesgedz/Cube | 12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6 | [
"Apache-2.0"
] | 1 | 2021-01-08T20:45:19.000Z | 2021-01-08T20:45:19.000Z | #ifndef SHADERLOADER_HPP
#define SHADERLOADER_HPP
#include "vox.hpp"
#include <string>
namespace Shader
{
GLuint loadShader(const std::string& vertexShaderFile,
const std::string& fragmentShaderFile);
}
#endif | 21.272727 | 59 | 0.717949 | olesgedz |
673647cd0505bf0d215dc6360a41ccc6bd099cb6 | 5,045 | cpp | C++ | Sources/Core/cpp/SemanticAnalyzer/LexemType.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | 2 | 2021-07-07T19:39:11.000Z | 2021-12-02T15:54:15.000Z | Sources/Core/cpp/SemanticAnalyzer/LexemType.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | null | null | null | Sources/Core/cpp/SemanticAnalyzer/LexemType.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | 1 | 2021-12-01T17:48:20.000Z | 2021-12-01T17:48:20.000Z | #include "StdAfx.h"
#include ".\lexemtype.h"
#include "..\ASSInterface\TDictionaryNames.h"
namespace SS
{
namespace Semantic
{
CLexemType::CLexemType(void) : m_ppCurentUnit(NULL)
{
}
CLexemType::~CLexemType(void)
{
}
bool CLexemType::WordEqualsTo(const TCharType pcWord,SS::Interface::Core::BlackBox::IUnit* pUnit)... | 26.835106 | 99 | 0.693558 | elzin |
6736e5688df99821436f76cdb6b1318fe423a0ea | 1,994 | cpp | C++ | src/GBuffer.cpp | Hyiker/OGLab | 7fef68c1996398aaf7a0434e5e821e788d3a4ee1 | [
"MIT"
] | null | null | null | src/GBuffer.cpp | Hyiker/OGLab | 7fef68c1996398aaf7a0434e5e821e788d3a4ee1 | [
"MIT"
] | null | null | null | src/GBuffer.cpp | Hyiker/OGLab | 7fef68c1996398aaf7a0434e5e821e788d3a4ee1 | [
"MIT"
] | null | null | null | #include "GBuffer.hpp"
#include <glError.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <iostream>
using namespace std;
void GBuffer::init() {
m_framebuffer.init();
m_depth.init();
m_depth.setup(m_width, m_height, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT,
GL_FLOAT, 0);
m_depth.... | 33.233333 | 78 | 0.712136 | Hyiker |
67395f0425fe15f596a1bc5e3c74ecb33e3a127e | 5,921 | cpp | C++ | Air-Engine Tests/src/Math/Matrix3Tests.cpp | Hyxogen/Air-Engine | a33d0b5bba3b6b71e125c40212a72115c2f73958 | [
"Apache-2.0"
] | null | null | null | Air-Engine Tests/src/Math/Matrix3Tests.cpp | Hyxogen/Air-Engine | a33d0b5bba3b6b71e125c40212a72115c2f73958 | [
"Apache-2.0"
] | 11 | 2021-04-18T15:42:05.000Z | 2021-09-08T09:55:04.000Z | Air-Engine Tests/src/Math/Matrix3Tests.cpp | Hyxogen/Air-Engine | a33d0b5bba3b6b71e125c40212a72115c2f73958 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Engine\Math\Matrix3.hpp"
namespace engine {
namespace math {
namespace Matrix3tests {
TEST(Matrix3Tests, EmptyConstructor) {
Matrix3f mat;
for (int i = 0; i < 2 * 2; i++) {
EXPECT_EQ(mat.m_Elements[i], 0);
}
}
TEST(Matrix3Tests, DiagonalConstructor) {
Mat... | 22.513308 | 131 | 0.576254 | Hyxogen |
673aae1539cd4f8c2183aa0c1f9e7671606fd06c | 3,993 | cpp | C++ | src/simulation/constraints/PlaneJoint.cpp | danielroth1/CAE | 7eaa096e45fd32f55bd6de94c30dcf706c6f2093 | [
"MIT"
] | 5 | 2019-04-20T17:48:10.000Z | 2022-01-06T01:39:33.000Z | src/simulation/constraints/PlaneJoint.cpp | danielroth1/CAE | 7eaa096e45fd32f55bd6de94c30dcf706c6f2093 | [
"MIT"
] | null | null | null | src/simulation/constraints/PlaneJoint.cpp | danielroth1/CAE | 7eaa096e45fd32f55bd6de94c30dcf706c6f2093 | [
"MIT"
] | 2 | 2020-08-04T20:21:00.000Z | 2022-03-16T15:01:04.000Z | #include "PlaneJoint.h"
#include <simulation/ImpulseConstraintSolver.h>
#include <simulation/SimulationObject.h>
#include <simulation/rigid/RigidBody.h>
#include <iostream>
PlaneJoint::PlaneJoint(
SimulationPointRef pointA,
SimulationPointRef pointB,
Eigen::Vector lineDir1BS,
Eigen:... | 33.838983 | 87 | 0.677185 | danielroth1 |
673e3a79f6cbb74592cfe17ebfb786dcb633e067 | 1,547 | cpp | C++ | linearlist/Mergelist.cpp | Awybupt/data-structure | dcb753fdbc2f0202d5cf2cde290e04c7a80013ba | [
"MIT"
] | null | null | null | linearlist/Mergelist.cpp | Awybupt/data-structure | dcb753fdbc2f0202d5cf2cde290e04c7a80013ba | [
"MIT"
] | null | null | null | linearlist/Mergelist.cpp | Awybupt/data-structure | dcb753fdbc2f0202d5cf2cde290e04c7a80013ba | [
"MIT"
] | null | null | null | /***
已知线性表La和Lb中的元素按值非递减排列
归并La和Lb得到新的线性表Lc,使Lc的数据元素也按非递减排列
***/
class linear_list{
int L[n];
void InitList(int &L);//构造一个空的线性表L
void DestroyList(int &L);//销毁一个以&L为首地址的线性表
void ClearList(int &L);//将&L为首地址的线性表重置为空表
bool ListEmpty(int &L);//如果以L为首地址的线性表是空表,返回true,否则返回FALSE
int ListLength(int &L);/... | 30.333333 | 179 | 0.553329 | Awybupt |
6740738929101ab14759e4ca365fcfe372433353 | 1,206 | cpp | C++ | aws-cpp-sdk-directconnect/source/model/CreateDirectConnectGatewayRequest.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-directconnect/source/model/CreateDirectConnectGatewayRequest.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-directconnect/source/model/CreateDirectConnectGatewayRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/directconnect/model/CreateDirectConnectGatewayRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DirectConnect::Model;
using namespace A... | 23.192308 | 107 | 0.781095 | Neusoft-Technology-Solutions |
674570149410fd445b2f91347c113821bfcbcca9 | 1,521 | hxx | C++ | include/moneta/traits/is_container.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 2 | 2015-10-09T12:11:54.000Z | 2016-01-20T15:34:33.000Z | include/moneta/traits/is_container.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 5 | 2015-07-04T20:31:32.000Z | 2015-07-04T20:44:58.000Z | include/moneta/traits/is_container.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | null | null | null | // [===========================================================================]
// [ M o n e t a ]
// [---------------------------------------------------------------------------]
// [ ... | 37.097561 | 96 | 0.391847 | madera |
6746e82c20a93d1fe859d8c92991ab3d6a3976ca | 6,055 | hpp | C++ | src/json.hpp | ysakasin/yslang | 199e7dbbb960adcb09e33445e74ef8349aa2f795 | [
"MIT"
] | 1 | 2019-05-28T14:58:09.000Z | 2019-05-28T14:58:09.000Z | src/json.hpp | ysakasin/yslang | 199e7dbbb960adcb09e33445e74ef8349aa2f795 | [
"MIT"
] | null | null | null | src/json.hpp | ysakasin/yslang | 199e7dbbb960adcb09e33445e74ef8349aa2f795 | [
"MIT"
] | null | null | null | #pragma once
#include <cassert>
#include <sstream>
#include <string>
#include <vector>
namespace yslang {
class json_array;
class json_object;
class json {
public:
static json array() {
return json(new json_array());
}
public:
using json_array = std::vector<json>;
using json_object = std::vector<std::p... | 19.595469 | 68 | 0.545665 | ysakasin |
674ab7c49337d6e867bceac7311a8d1fde676897 | 3,551 | cc | C++ | src/code/modulo.cc | robin92/jftt2014-compiler | 65c7c23e272ce082a6bfb5de81ac1c075489bb74 | [
"MIT"
] | null | null | null | src/code/modulo.cc | robin92/jftt2014-compiler | 65c7c23e272ce082a6bfb5de81ac1c075489bb74 | [
"MIT"
] | 3 | 2015-01-05T11:00:56.000Z | 2015-09-05T06:29:52.000Z | src/code/modulo.cc | robin92/jftt2014-compiler | 65c7c23e272ce082a6bfb5de81ac1c075489bb74 | [
"MIT"
] | null | null | null | /*
* Copyright 2014 Rafał Bolanowski
* All rights reserved.
*
* For licensing information please see the LICENSE file.
*/
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <gmpxx.h>
#include "config.hh"
#include "code.hh"
static inline
std::string
get_modulo_code(std::uin... | 29.106557 | 105 | 0.424387 | robin92 |
674ad5f328e075ae7e2a07e332e371f6baab27b5 | 111 | cpp | C++ | docs/mfc/codesnippet/CPP/gray-and-dithered-bitmap-functions_2.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/mfc/codesnippet/CPP/gray-and-dithered-bitmap-functions_2.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/mfc/codesnippet/CPP/gray-and-dithered-bitmap-functions_2.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | CBitmap bm;
bm.LoadBitmap(IDB_BITMAP1);
CBitmap bmGray;
AfxGetGrayBitmap(bm, &bmGray, GetSysColor(COLOR_MENU)); | 27.75 | 55 | 0.810811 | bobbrow |
674b2fca55e1d7322960e0a16430f7164a2383d0 | 2,481 | cpp | C++ | Practica5/main.cpp | Adry2317/Estructuras-de-datos-Universidad-de-Ja-n-2020-2021 | 86ff92b54ca39689e2e6e9057246d91b34e09b47 | [
"Apache-2.0"
] | null | null | null | Practica5/main.cpp | Adry2317/Estructuras-de-datos-Universidad-de-Ja-n-2020-2021 | 86ff92b54ca39689e2e6e9057246d91b34e09b47 | [
"Apache-2.0"
] | null | null | null | Practica5/main.cpp | Adry2317/Estructuras-de-datos-Universidad-de-Ja-n-2020-2021 | 86ff92b54ca39689e2e6e9057246d91b34e09b47 | [
"Apache-2.0"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.cpp
* Author: Adrian
*
* Created on 15 de noviembre de 2020, 13:52
*/
#include <cstdlib>
#include "Documento... | 25.57732 | 102 | 0.582426 | Adry2317 |
674b8c97e8f531a4515d22037f97960af8b7d26c | 1,311 | cpp | C++ | source/chord.cpp | atg/kenny | 0082e2fe5e6693de0d749f95a18cdb3e4733c78f | [
"WTFPL"
] | 1 | 2017-02-20T13:30:36.000Z | 2017-02-20T13:30:36.000Z | source/chord.cpp | atg/kenny | 0082e2fe5e6693de0d749f95a18cdb3e4733c78f | [
"WTFPL"
] | null | null | null | source/chord.cpp | atg/kenny | 0082e2fe5e6693de0d749f95a18cdb3e4733c78f | [
"WTFPL"
] | null | null | null | #import "chord.hpp"
Chord Chord::build(Scale scale, Qualities q) {
Chord ch;
ch.scale = scale;
#define add_note(n, k) do { \
int t = int(scale.tones[n - 1].pitch); \
if (q . k == Quality::Flat) t -= 1; \
else if (q . k == Quality::Sharp) t += 1; \
else if (q . k == Qual... | 20.809524 | 58 | 0.504195 | atg |
6753cd060383cad6870de4cb25f5bab09cd22e46 | 33,152 | cpp | C++ | source/emulator/src/Graphics/Tile.cpp | InoriRus/Kyty | 1aa7cf72ce598ee4ca31edc63f5b9708d629c69d | [
"MIT"
] | 76 | 2021-11-13T13:07:59.000Z | 2022-03-22T11:35:29.000Z | source/emulator/src/Graphics/Tile.cpp | InoriRus/Kyty | 1aa7cf72ce598ee4ca31edc63f5b9708d629c69d | [
"MIT"
] | 7 | 2021-12-01T18:45:13.000Z | 2022-03-26T18:34:33.000Z | source/emulator/src/Graphics/Tile.cpp | InoriRus/Kyty | 1aa7cf72ce598ee4ca31edc63f5b9708d629c69d | [
"MIT"
] | 9 | 2021-11-24T08:38:13.000Z | 2022-03-24T13:25:04.000Z | #include "Emulator/Graphics/Tile.h"
#include "Kyty/Core/DbgAssert.h"
#include "Kyty/Core/String.h"
#include "Kyty/Core/Threads.h"
#include "Emulator/Graphics/AsyncJob.h"
#include "Emulator/Profiler.h"
#if KYTY_COMPILER != KYTY_COMPILER_CLANG
#include <intrin.h>
#endif
#include <algorithm>
#include <iterator>
#ifde... | 32.823762 | 140 | 0.569136 | InoriRus |
67553c5056626f21c0e8ecae013cbdbebcaa9581 | 8,999 | cpp | C++ | thread_pool.cpp | sakky016/ThreadPool | f8c3410c9fa3a57a08eaf906ff2011d2af79488c | [
"Apache-2.0"
] | 1 | 2019-03-19T06:20:26.000Z | 2019-03-19T06:20:26.000Z | thread_pool.cpp | sakky016/ThreadPool | f8c3410c9fa3a57a08eaf906ff2011d2af79488c | [
"Apache-2.0"
] | null | null | null | thread_pool.cpp | sakky016/ThreadPool | f8c3410c9fa3a57a08eaf906ff2011d2af79488c | [
"Apache-2.0"
] | null | null | null | #include "thread_pool.h"
#include "job.h"
#include <Windows.h>
//******************************************************************************************
// @name : staticEntryPoint
//
// @description : This is the static thread entry point. This is used as a wrapper
// ... | 40.35426 | 125 | 0.495277 | sakky016 |
67596fbd2bdb4ad39e776ab7575d298f5a97f3fa | 552 | cpp | C++ | ARRAY/subarray_with_given_Sum.cpp | geeky01adarsh/DSA-Self-Paced-Course | e13902f47df0cb10b90e26d285aa97a9c6c03d97 | [
"MIT"
] | null | null | null | ARRAY/subarray_with_given_Sum.cpp | geeky01adarsh/DSA-Self-Paced-Course | e13902f47df0cb10b90e26d285aa97a9c6c03d97 | [
"MIT"
] | null | null | null | ARRAY/subarray_with_given_Sum.cpp | geeky01adarsh/DSA-Self-Paced-Course | e13902f47df0cb10b90e26d285aa97a9c6c03d97 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n, x;
cin >> n >> x;
int arr[n];
for (int i = 0; i < n; i++)
cin >> arr[i];
int k = 0, sum = 0;
for (int i = 0; i < n; i++)
{
sum += arr[i];
if (sum == x)
{
cout << k << " " << i << e... | 17.25 | 42 | 0.315217 | geeky01adarsh |
675c99311566f39cb11965343f9b573ec54c75a6 | 1,130 | cpp | C++ | tutorials/30-days-of-code/30-sorting.cpp | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 41 | 2018-05-11T07:54:34.000Z | 2022-03-29T19:02:32.000Z | tutorials/30-days-of-code/30-sorting.cpp | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 2 | 2021-09-13T10:03:26.000Z | 2021-10-04T10:21:05.000Z | tutorials/30-days-of-code/30-sorting.cpp | PingHuskar/hackerrank | 1bfdbc63de5d0f94cd9e6ae250476b4a267662f2 | [
"Unlicense"
] | 21 | 2019-01-23T19:06:59.000Z | 2021-12-23T16:03:47.000Z | // Tutorials > 30 Days of Code > Day 20: Sorting
// Find the minimum number of conditional checks taking place in Bubble Sort
//
// https://www.hackerrank.com/challenges/30-sorting/problem
//
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using nam... | 24.565217 | 76 | 0.443363 | PingHuskar |
675d9aafab7fc5cd4f9f01340a86760cbf122b54 | 10,717 | cpp | C++ | LabProject07/Player.cpp | GameForPeople/KPU_3DGP_DirectX12 | f2a8320d9b796a531aebc40d23b660f889e86033 | [
"Apache-2.0"
] | null | null | null | LabProject07/Player.cpp | GameForPeople/KPU_3DGP_DirectX12 | f2a8320d9b796a531aebc40d23b660f889e86033 | [
"Apache-2.0"
] | null | null | null | LabProject07/Player.cpp | GameForPeople/KPU_3DGP_DirectX12 | f2a8320d9b796a531aebc40d23b660f889e86033 | [
"Apache-2.0"
] | null | null | null | //-----------------------------------------------------------------------------
// File: CPlayer.cpp
//-----------------------------------------------------------------------------
#include "stdafx.h"
#include "Player.h"
#include "Shader.h"
/////////////////////////////////////////////////////////////////////////////... | 34.130573 | 150 | 0.712979 | GameForPeople |
67694745465d727862e3e4932699eabb98dabe59 | 4,376 | cpp | C++ | BaseLib/StringTools.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | null | null | null | BaseLib/StringTools.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | 25 | 2015-02-04T20:34:21.000Z | 2018-12-10T20:19:57.000Z | BaseLib/StringTools.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | null | null | null | /**
* \file
* \author Thomas Fischer
* \date 2010-06-16
* \brief Implementation of string helper functions.
*
* \copyright
* Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
*... | 27.012346 | 97 | 0.58021 | norihiro-w |
676d1993049f84d0cf9e4ef3d4a2a1ba6dc99650 | 1,659 | cpp | C++ | Medium/211_Design_Add_And_Search_Words_Data_Structure.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | 1 | 2021-03-15T10:02:10.000Z | 2021-03-15T10:02:10.000Z | Medium/211_Design_Add_And_Search_Words_Data_Structure.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | Medium/211_Design_Add_And_Search_Words_Data_Structure.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | class WordDictionary {
private:
struct TrieNode {
TrieNode* children[26];
bool IsEnd;
TrieNode() : IsEnd(false) {
for(int i = 0; i < 26; i++)
children[i] = nullptr;
}
};
TrieNode* root;
public:
/** Initialize your data structure here. */
Wo... | 31.301887 | 128 | 0.522604 | ShehabMMohamed |
67744afe7c80961cc7e99be7ce03029d88b0091c | 1,364 | cpp | C++ | examples/BlinkyDemo/Bubble.cpp | Blinkinlabs/EightByEight | 9df6381c33987d6e1bdc88115bfc41287b6bc875 | [
"MIT"
] | 18 | 2016-08-23T03:45:16.000Z | 2021-02-20T20:50:02.000Z | examples/BlinkyDemo/Bubble.cpp | Blinkinlabs/EightByEight | 9df6381c33987d6e1bdc88115bfc41287b6bc875 | [
"MIT"
] | 3 | 2016-10-22T19:02:44.000Z | 2020-09-21T18:12:24.000Z | examples/BlinkyDemo/Bubble.cpp | Blinkinlabs/EightByEight | 9df6381c33987d6e1bdc88115bfc41287b6bc875 | [
"MIT"
] | 8 | 2016-08-19T20:56:57.000Z | 2020-12-25T01:39:12.000Z | /** \file
* Bubble level demo
*/
#include "Bubble.h"
#include <math.h>
static const uint32_t palette[] = {
0x5bc0eb,
0xd0cfec,
0x2e5eaa,
0xffffff,
0x2374ab,
0x0000FF,
0x00FF00,
0xFF0000,
};
static const int palette_size = sizeof(palette)/sizeof(*palette);
void Bubble::begin()
{
palette_index = ... | 18.432432 | 65 | 0.584311 | Blinkinlabs |
6774f8b399b4fbb319b84e832ac14f8167d70ba5 | 13,148 | cpp | C++ | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/utils/funcexp/tdriver.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/utils/funcexp/tdriver.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | null | null | null | src/vendor/mariadb-10.6.7/storage/columnstore/columnstore/utils/funcexp/tdriver.cpp | zettadb/zettalib | 3d5f96dc9e3e4aa255f4e6105489758944d37cc4 | [
"Apache-2.0"
] | 2 | 2022-02-27T14:00:01.000Z | 2022-03-31T06:24:22.000Z | /* Copyright (C) 2014 InfiniDB, Inc.
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; version 2 of
the License.
This program is distributed in the hope that it will be useful,
but W... | 34.062176 | 150 | 0.462732 | zettadb |
6775b83e402cbb36c32f4a9358bc2fc3e3758654 | 5,288 | cpp | C++ | drv_recognize/src/drv_recognize_hand.cpp | DrawZeroPoint/drv_package_v2 | fc4b83e1a7ee4a3e007e32358a5e0035e0dcf5cb | [
"MIT"
] | 13 | 2017-09-06T13:33:19.000Z | 2021-09-20T08:53:05.000Z | drv_recognize/src/drv_recognize_hand.cpp | DrawZeroPoint/drv_package_v2 | fc4b83e1a7ee4a3e007e32358a5e0035e0dcf5cb | [
"MIT"
] | null | null | null | drv_recognize/src/drv_recognize_hand.cpp | DrawZeroPoint/drv_package_v2 | fc4b83e1a7ee4a3e007e32358a5e0035e0dcf5cb | [
"MIT"
] | 5 | 2017-11-02T13:09:33.000Z | 2018-06-07T01:08:29.000Z | #include <ros/ros.h>
#include <ros/time.h>
#include <math.h>
#include <string.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/image_encodings.h>
#include <sensor_msgs/CameraInfo.h>
#include <sensor_msgs/PointCloud2.h>
#include <std_msgs/Bool.h>
#include <std_msgs/Int8.h>
#include <std_msgs/Header.h>
#include... | 28.583784 | 98 | 0.696483 | DrawZeroPoint |
6775c63674c6685892670e6aba5e868bf2eb156d | 13,313 | cpp | C++ | src/simu/environment.cpp | dubkois/ReusWorld | 15ccf4dbde20d6b600b6e5dc706435d6dd4eb620 | [
"MIT"
] | null | null | null | src/simu/environment.cpp | dubkois/ReusWorld | 15ccf4dbde20d6b600b6e5dc706435d6dd4eb620 | [
"MIT"
] | null | null | null | src/simu/environment.cpp | dubkois/ReusWorld | 15ccf4dbde20d6b600b6e5dc706435d6dd4eb620 | [
"MIT"
] | null | null | null | #include "environment.h"
#include "tiniestphysicsengine.h"
#include "../config/simuconfig.h"
namespace simu {
static constexpr int debugEnvCTRL = 0;
static constexpr auto DURATION_FORMAT = "Format is [+|=]<years>";
using UL_EU = EnumUtils<UndergroundLayers>;
// ====================================================... | 27.677755 | 93 | 0.605348 | dubkois |
6776937ab510ad66ff3d73c31f9d8ac792c395f9 | 1,053 | cpp | C++ | system_calls/TheLinuxProgramInterface/sigmask_longjmp.cpp | idfumg/SystemCallsLearning | e5013d6ab24f39c0d5875b9a89f640b9a6580147 | [
"MIT"
] | null | null | null | system_calls/TheLinuxProgramInterface/sigmask_longjmp.cpp | idfumg/SystemCallsLearning | e5013d6ab24f39c0d5875b9a89f640b9a6580147 | [
"MIT"
] | null | null | null | system_calls/TheLinuxProgramInterface/sigmask_longjmp.cpp | idfumg/SystemCallsLearning | e5013d6ab24f39c0d5875b9a89f640b9a6580147 | [
"MIT"
] | null | null | null | #include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <setjmp.h>
static volatile sig_atomic_t can_jump = 0; // if we locating in handler before setjmp.
#ifdef USE_SIGSETJMP
static sigjmp_buf senv;
#else
static jmp_buf env;
#endif
void handler(int signum)
{
printf("Receiv... | 16.983871 | 86 | 0.584995 | idfumg |
6777266e243f05122f09c8b35b705971e000a75e | 2,524 | cpp | C++ | digitanks/src/digitanks/units/scout.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | 5 | 2015-07-03T18:42:32.000Z | 2017-08-25T10:28:12.000Z | digitanks/src/digitanks/units/scout.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | null | null | null | digitanks/src/digitanks/units/scout.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | null | null | null | #include "scout.h"
#include <network/network.h>
#include <mtrand.h>
#include "ui/digitankswindow.h"
#include "ui/hud.h"
#include <digitanksgame.h>
#include <weapons/projectile.h>
REGISTER_ENTITY(CScout);
NETVAR_TABLE_BEGIN(CScout);
NETVAR_TABLE_END();
SAVEDATA_TABLE_BEGIN(CScout);
SAVEDATA_TABLE_END();
INPUTS_TAB... | 18.558824 | 80 | 0.719889 | BSVino |
6777ca2267868a8dbaf40bbfd8b97bcd2d2661f8 | 12,848 | cpp | C++ | Sources/Renderer/Renderer.cpp | 0xflotus/Acid | cf680a13c3894822920737dcf1b7d17aef74a474 | [
"MIT"
] | 1 | 2021-08-11T14:50:00.000Z | 2021-08-11T14:50:00.000Z | Sources/Renderer/Renderer.cpp | sum01/Acid | d921472e062fc26b87c0163918aab553ac20739a | [
"MIT"
] | null | null | null | Sources/Renderer/Renderer.cpp | sum01/Acid | d921472e062fc26b87c0163918aab553ac20739a | [
"MIT"
] | null | null | null | #include "Renderer.hpp"
#include <cassert>
#include "Helpers/FileSystem.hpp"
#include "Scenes/Scenes.hpp"
#include "IRenderer.hpp"
namespace acid
{
Renderer::Renderer() :
m_managerRender(nullptr),
m_rendererRegister(RendererRegister()),
m_renderStages(std::vector<std::unique_ptr<RenderStage>>()),
m_swapchain... | 29.400458 | 197 | 0.728829 | 0xflotus |
6777d8a28ffd0337900c17c557e676065f0d140a | 351 | cpp | C++ | CodeForces/Colorful Stones (Simplified).cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | CodeForces/Colorful Stones (Simplified).cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | CodeForces/Colorful Stones (Simplified).cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define init ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
using namespace std;
int main() {
init;
// Code
string s, t;
cin >> s >> t;
int i = 0, j = 0;
while (i < s.size())
{
if (j >= t.size())
break;
else if (s[i] == t[j])
i++;
j++;
}
cout... | 15.954545 | 67 | 0.532764 | abdelrahman0123 |
67789ecd3da09edae784391943e6f9cf6ec9e161 | 149 | cpp | C++ | source/mc_touch.cpp | PaulSlocum/magic-carpet | 7bcbfffc11caa4fd4d4aaccd9031f3c138b4744b | [
"MIT"
] | 2 | 2020-01-10T01:31:51.000Z | 2021-01-24T23:30:57.000Z | source/mc_touch.cpp | PaulSlocum/magic-carpet | 7bcbfffc11caa4fd4d4aaccd9031f3c138b4744b | [
"MIT"
] | null | null | null | source/mc_touch.cpp | PaulSlocum/magic-carpet | 7bcbfffc11caa4fd4d4aaccd9031f3c138b4744b | [
"MIT"
] | null | null | null | // mc_touch.cpp
///////////////////////////////////////////////////////////////////////////////////////
#include <math.h>
#include "mc_touch.hpp"
| 18.625 | 87 | 0.275168 | PaulSlocum |
6779b7a064b3d93da6dc4628e7933b2610df4a60 | 916 | hpp | C++ | engine/lib/base-utils/include/noob/bitpack/bitpack.hpp | ColinGilbert/noobwerkz-engine | f5670e98ca0dada8865be9ab82d25d3acf549ebe | [
"Apache-2.0"
] | 23 | 2015-03-02T10:56:40.000Z | 2021-01-27T03:32:49.000Z | engine/lib/base-utils/include/noob/bitpack/bitpack.hpp | ColinGilbert/noobwerkz-engine-borked | f5670e98ca0dada8865be9ab82d25d3acf549ebe | [
"Apache-2.0"
] | 73 | 2015-04-14T09:39:05.000Z | 2020-11-11T21:49:10.000Z | engine/lib/base-utils/include/noob/bitpack/bitpack.hpp | ColinGilbert/noobwerkz-engine-borked | f5670e98ca0dada8865be9ab82d25d3acf549ebe | [
"Apache-2.0"
] | 3 | 2016-02-22T01:29:32.000Z | 2018-01-02T06:07:12.000Z | #pragma once
#include <tuple>
#include <cstdint>
namespace noob
{
// TODO:
// static uint32_t pack_8_to_32(uint8_t a, uint8_t b, uint8_t c, uint8_t d)
// {
// }
static uint64_t pack_32_to_64(uint32_t x, uint32_t y) noexcept(true)
{
return static_cast<uint64_t>(x) << 32 | y;
}
static std::tuple<uint32_t, u... | 22.341463 | 126 | 0.655022 | ColinGilbert |
677af183ebc9345c275b46648127644ff7e279d5 | 8,037 | cpp | C++ | test/TestDoublyLinkedList.cpp | Jon-edge/esp-rgb-led-matrix | 0eec32d71996096318bc8e529bda7f5f41612146 | [
"MIT"
] | null | null | null | test/TestDoublyLinkedList.cpp | Jon-edge/esp-rgb-led-matrix | 0eec32d71996096318bc8e529bda7f5f41612146 | [
"MIT"
] | null | null | null | test/TestDoublyLinkedList.cpp | Jon-edge/esp-rgb-led-matrix | 0eec32d71996096318bc8e529bda7f5f41612146 | [
"MIT"
] | null | null | null | /* MIT License
*
* Copyright (c) 2019 - 2022 Andreas Merkle <web@blue-andi.de>
*
* 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 ri... | 33.911392 | 81 | 0.480403 | Jon-edge |
677da7efc2c9325a7587bed1e3b10205a01088fe | 1,588 | cpp | C++ | cs256/project2/tthurlow-proj2.cpp | taylorthurlow/school-code | c801c2c5cbff0c8b6743b9cdefc6802382d3549f | [
"WTFPL"
] | null | null | null | cs256/project2/tthurlow-proj2.cpp | taylorthurlow/school-code | c801c2c5cbff0c8b6743b9cdefc6802382d3549f | [
"WTFPL"
] | null | null | null | cs256/project2/tthurlow-proj2.cpp | taylorthurlow/school-code | c801c2c5cbff0c8b6743b9cdefc6802382d3549f | [
"WTFPL"
] | null | null | null | //
// Name: Thurlow, Taylor
// Project: 2
// Due: 10/26/2016
// Course: cs25602
//
// Description:
// A guessing game. Generates a random number between 1 and 100, and asks the user
// to guess the right value. It will tell you higher or lower. To quit, give the
// number 0. After 8 incorrect ... | 28.872727 | 103 | 0.606423 | taylorthurlow |
677f214686bc049eb4d0af1ece64953c943b3976 | 1,151 | cc | C++ | SimMuon/CSCDigitizer/src/CSCCrosstalkGenerator.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | SimMuon/CSCDigitizer/src/CSCCrosstalkGenerator.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | SimMuon/CSCDigitizer/src/CSCCrosstalkGenerator.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "SimMuon/CSCDigitizer/src/CSCAnalogSignal.h"
#include "SimMuon/CSCDigitizer/src/CSCCrosstalkGenerator.h"
CSCAnalogSignal CSCCrosstalkGenerator::getCrosstalk(const CSCAnalogSignal &inputSignal) const {
int nBins = inputSignal.getSize();
float binSize = inputSignal.getBinSize();
std::vector<float> binValu... | 34.878788 | 113 | 0.717637 | ckamtsikis |
677f261f8219a1e47531365bd9fcdbd764f2ac43 | 1,095 | cc | C++ | chrome/common/extensions/api/file_system_provider/file_system_provider_handler_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/common/extensions/api/file_system_provider/file_system_provider_handler_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/common/extensions/api/file_system_provider/file_system_provider_handler_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2015 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 "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
#include "extensions/common/manifest_constants.h"
#include "testing/gtest/includ... | 34.21875 | 79 | 0.792694 | zealoussnow |
67806769f92107dd5b5a24684ca88f20c3f99247 | 571 | hpp | C++ | include/sliding_window/search/load_ibf.hpp | eaasna/sliding-window | ffd69e361dbf639ba5fa0154785b6f9e53fa5db5 | [
"BSD-3-Clause"
] | null | null | null | include/sliding_window/search/load_ibf.hpp | eaasna/sliding-window | ffd69e361dbf639ba5fa0154785b6f9e53fa5db5 | [
"BSD-3-Clause"
] | 27 | 2021-08-13T14:56:21.000Z | 2022-01-28T12:13:47.000Z | include/sliding_window/search/load_ibf.hpp | eaasna/new-sliding-window | 921405288ecb163d451798f9eaa4553ba22e8d65 | [
"BSD-3-Clause"
] | 1 | 2021-11-01T14:22:21.000Z | 2021-11-01T14:22:21.000Z | #pragma once
#include <seqan3/std/filesystem>
#include <seqan3/search/dream_index/interleaved_bloom_filter.hpp>
namespace sliding_window
{
template <seqan3::data_layout ibf_data_layout>
void load_ibf(seqan3::interleaved_bloom_filter<ibf_data_layout> & ibf, std::filesystem::path const & ibf_file)
{
static uint8_... | 22.84 | 110 | 0.753065 | eaasna |
6782bcfd748a8957eca554e0bb8c8c5bd2bd4d9c | 3,149 | cpp | C++ | src/emulator/ops/cb/ops_6x.cpp | rizTaak/dmg-emulator | 9e91f1db98b3c7d7ee028a270e0454745c915019 | [
"Apache-2.0"
] | 1 | 2020-07-10T17:56:00.000Z | 2020-07-10T17:56:00.000Z | src/emulator/ops/cb/ops_6x.cpp | rizTaak/dmg-emulator | 9e91f1db98b3c7d7ee028a270e0454745c915019 | [
"Apache-2.0"
] | null | null | null | src/emulator/ops/cb/ops_6x.cpp | rizTaak/dmg-emulator | 9e91f1db98b3c7d7ee028a270e0454745c915019 | [
"Apache-2.0"
] | null | null | null | #include <emulator/cpu.h>
#include <spdlog/fmt/fmt.h>
#include <emulator/ops/common.h>
namespace emulator {
void Cpu::add_cb6x() {
add_bc_op(0x60, +[](Cpu &cpu) -> clock_t {
//BIT 4,B
//2 8
//Z 0 1 -
bit_4(cpu, cpu.m_b);
return 8;
});
... | 25.811475 | 53 | 0.33979 | rizTaak |
6786122f8709e18c02177c440313ab2c615c39ce | 507 | cpp | C++ | CF_CR642_div3/a.cpp | JackBai0914/Competitive-Programming-Codebase | a1cabf0fa5072b07a7da25d66bf455eb45b0b7e9 | [
"MIT"
] | null | null | null | CF_CR642_div3/a.cpp | JackBai0914/Competitive-Programming-Codebase | a1cabf0fa5072b07a7da25d66bf455eb45b0b7e9 | [
"MIT"
] | null | null | null | CF_CR642_div3/a.cpp | JackBai0914/Competitive-Programming-Codebase | a1cabf0fa5072b07a7da25d66bf455eb45b0b7e9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <vector>
#include <map>
#include <queue>
#define F first
#define S second
#define MP make_pair
using namespace std;
int n, m;
int main() {
ios::sync_with_stdio(false);
int t;
... | 14.083333 | 29 | 0.581854 | JackBai0914 |
67864d1e017c4be7072fcb4032ed2854f5caf510 | 886 | cpp | C++ | console/src/boost_1_78_0/libs/histogram/test/detail_relaxed_equal_test.cpp | vany152/FilesHash | 39f282807b7f1abc56dac389e8259ee3bb557a8d | [
"MIT"
] | 188 | 2019-02-08T14:11:02.000Z | 2022-01-27T08:37:05.000Z | console/src/boost_1_78_0/libs/histogram/test/detail_relaxed_equal_test.cpp | vany152/FilesHash | 39f282807b7f1abc56dac389e8259ee3bb557a8d | [
"MIT"
] | 186 | 2016-05-05T14:01:09.000Z | 2019-11-20T22:38:43.000Z | Libs/boost_1_76_0/libs/histogram/test/detail_relaxed_equal_test.cpp | Antd23rus/S2DE | 47cc7151c2934cd8f0399a9856c1e54894571553 | [
"MIT"
] | 43 | 2019-02-09T16:16:55.000Z | 2022-01-25T20:24:36.000Z | // Copyright 2015-2017 Hans Dembinski
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/core/lightweight_test.hpp>
#include <boost/core/lightweight_test_trait.hpp>
#include <boost/histogram/deta... | 25.314286 | 77 | 0.698646 | vany152 |
6786838e529c9f9d83ff393067f36a2708812a8b | 579 | cpp | C++ | Source/BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.cpp | homeguatlla/BattleRoyale | 9d68a4a902c9b0052788769ae6b963d65ef060a4 | [
"Unlicense"
] | 2 | 2022-02-11T07:25:49.000Z | 2022-03-14T23:00:28.000Z | Source/BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.cpp | homeguatlla/BattleRoyale | 9d68a4a902c9b0052788769ae6b963d65ef060a4 | [
"Unlicense"
] | null | null | null | Source/BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.cpp | homeguatlla/BattleRoyale | 9d68a4a902c9b0052788769ae6b963d65ef060a4 | [
"Unlicense"
] | null | null | null | #include "BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.h"
#include "BattleRoyale/BattleRoyale.h"
#include "BattleRoyale/core/GameMode/BattleRoyale/FSM/BattleRoyaleContext.h"
namespace BRModeFSM
{
Synchronize::Synchronize()
{
}
void Synchronize::OnEnter(float deltaTime)
{
UE_LOG(LogFSM, Log, T... | 27.571429 | 121 | 0.766839 | homeguatlla |
6787c9b944f8ee20ac255a6ef153c48da43d97c4 | 3,187 | cpp | C++ | Src/JABProxy/accessbridge2_0_2/src/bridge/installer/main.cpp | jaymepechan/USDComponentLibrary | 250a52c21fc760390e10fed4757c50aa306a8f9f | [
"MIT"
] | 11 | 2016-08-29T07:51:46.000Z | 2021-12-27T06:32:00.000Z | Src/JABProxy/accessbridge2_0_2/src/bridge/installer/main.cpp | jaymepechan/USDComponentLibrary | 250a52c21fc760390e10fed4757c50aa306a8f9f | [
"MIT"
] | 1 | 2017-06-26T17:43:50.000Z | 2017-06-26T21:20:22.000Z | Src/JABProxy/accessbridge2_0_2/src/bridge/installer/main.cpp | jaymepechan/USDComponentLibrary | 250a52c21fc760390e10fed4757c50aa306a8f9f | [
"MIT"
] | 5 | 2017-09-23T20:00:35.000Z | 2019-11-27T08:18:39.000Z | /*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* @(#)main.cpp 1.3 05/11/11
*/
/*
* Java Access Bridge installer
*
* @author Lynn Monsanto
*/
#include "../installerDLL/installerDLL.h"
/**
* WinMain
*/
int WINAPI WinMa... | 24.705426 | 84 | 0.609978 | jaymepechan |
6789afa2abadf860a7c0000c49675417812afb11 | 13,092 | cpp | C++ | lib/src/Hotel.cpp | glbwsk/oop | 7856a909bfdd197dc13c0f6945ef9c6e00aaa889 | [
"MIT"
] | 1 | 2020-07-02T17:16:29.000Z | 2020-07-02T17:16:29.000Z | lib/src/Hotel.cpp | glbwsk/oop | 7856a909bfdd197dc13c0f6945ef9c6e00aaa889 | [
"MIT"
] | null | null | null | lib/src/Hotel.cpp | glbwsk/oop | 7856a909bfdd197dc13c0f6945ef9c6e00aaa889 | [
"MIT"
] | 1 | 2021-05-28T13:13:19.000Z | 2021-05-28T13:13:19.000Z | #include "Hotel.hpp"
#include "Address.hpp"
#include "Equipment.hpp"
#define MANAGER 1
#define RECEPTIONIST 2
#define CLEANER 3
#define CUSTOMER 4
Hotel::Hotel( IHotel* iHotel )
{
this->iHotel = iHotel;
Manager defaultManager( Employee( Person( "Jan", "Janowicz", "abc@hotel.com", "555-555-100",
... | 22.227504 | 128 | 0.463947 | glbwsk |
6789e775b6ca378a4119e4a7f3edf59532a61200 | 7,621 | cpp | C++ | shell/osshell/cpls/usb/entry.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | shell/osshell/cpls/usb/entry.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | shell/osshell/cpls/usb/entry.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*******************************************************************************
*
* (C) COPYRIGHT MICROSOFT CORP., 1993-1995
* TITLE: ENTRY.CPP
* VERSION: 1.0
* AUTHOR: jsenior
* DATE: 10/28/1998
*
********************************************************************************
*
*... | 26.554007 | 94 | 0.550715 | npocmaka |
678da52852df6f012e74dc70972f1e988522a632 | 3,331 | cpp | C++ | src/GameOfLifeMap.cpp | yveskaufmann/GameOfLife | baf6d432920c7c312e14ad2798bd29f0702d1e60 | [
"MIT"
] | null | null | null | src/GameOfLifeMap.cpp | yveskaufmann/GameOfLife | baf6d432920c7c312e14ad2798bd29f0702d1e60 | [
"MIT"
] | null | null | null | src/GameOfLifeMap.cpp | yveskaufmann/GameOfLife | baf6d432920c7c312e14ad2798bd29f0702d1e60 | [
"MIT"
] | null | null | null | #include "GameOfLifeMap.h"
#include <assert.h>
#include <algorithm>
#include <iostream>
#include <stdlib.h>
#include <time.h>
static const int NEIGHBOR_DIRECTIONS [8][2] = {
{0, 1}, {1, 1}, {1, 0}, {1, -1}, {0, -1}, {-1, -1},{-1, 0}, {-1, 1}
};
GameOfLifeMap::GameOfLifeMap(int width, int height) : mWidth(wid... | 24.858209 | 86 | 0.552086 | yveskaufmann |