hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8869c530483f17355d8fb24b24a2f801b994fc7a | 811 | cpp | C++ | EDCBSupport/EDCBSupport/StatusBar.cpp | abt8WG/EDCB | 669262b158a25e1c84443ff00597fc981fa78aa6 | [
"MIT"
] | 13 | 2016-04-26T09:00:46.000Z | 2021-04-17T00:24:01.000Z | EDCBSupport/EDCBSupport/StatusBar.cpp | abt8WG/EDCB | 669262b158a25e1c84443ff00597fc981fa78aa6 | [
"MIT"
] | 16 | 2016-07-02T07:43:51.000Z | 2016-10-13T23:03:32.000Z | EDCBSupport/EDCBSupport/StatusBar.cpp | abt8WG/EDCB | 669262b158a25e1c84443ff00597fc981fa78aa6 | [
"MIT"
] | 9 | 2015-11-26T12:12:24.000Z | 2019-09-23T02:40:02.000Z | #include "stdafx.h"
#include "EDCBSupport.h"
#include "StatusBar.h"
namespace EDCBSupport
{
CStatusBar::CStatusBar()
{
}
CStatusBar::~CStatusBar()
{
Destroy();
}
bool CStatusBar::Create(HWND hwndParent,INT_PTR ID)
{
Destroy();
m_hwnd=::CreateWindowEx(0,STATUSCLASSNAME,NULL,
... | 16.55102 | 82 | 0.633785 | abt8WG |
886b9a9a31b4a81273f54697a992fa197c725052 | 3,238 | cc | C++ | server/core/test/test_service.cc | tut-blog/MaxScale | cabd6dba0665cb8025c694acf98cffaa68d10de0 | [
"MIT"
] | null | null | null | server/core/test/test_service.cc | tut-blog/MaxScale | cabd6dba0665cb8025c694acf98cffaa68d10de0 | [
"MIT"
] | 1 | 2019-07-02T09:59:27.000Z | 2019-07-02T09:59:49.000Z | server/core/test/test_service.cc | tut-blog/MaxScale | cabd6dba0665cb8025c694acf98cffaa68d10de0 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2022-01-01
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 32.38 | 108 | 0.622915 | tut-blog |
886e28f31fc3ecf418f93e2e80ff6995594f4255 | 1,122 | hpp | C++ | tests/utils/include/utils/test.hpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | null | null | null | tests/utils/include/utils/test.hpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | null | null | null | tests/utils/include/utils/test.hpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | 1 | 2022-03-28T07:52:21.000Z | 2022-03-28T07:52:21.000Z | /*******************************************************************************
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#ifndef DML_TESTING_ACTUAL_API_HPP
#define DML_TESTING_ACTUAL_API_HPP
#if !define... | 20.035714 | 80 | 0.651515 | hhb584520 |
886ef9a9c147b1c0edd663e41011c9498d00fdd1 | 5,241 | cxx | C++ | example/example-1/main.cxx | usagi/wonderland.subsystem | 342b3dc2489f9a12d6dba43fca7d7a2a0854e144 | [
"MIT"
] | 1 | 2015-08-29T00:14:05.000Z | 2015-08-29T00:14:05.000Z | example/example-1/main.cxx | usagi/wonderland.subsystem | 342b3dc2489f9a12d6dba43fca7d7a2a0854e144 | [
"MIT"
] | null | null | null | example/example-1/main.cxx | usagi/wonderland.subsystem | 342b3dc2489f9a12d6dba43fca7d7a2a0854e144 | [
"MIT"
] | null | null | null | #include <chrono>
#include <thread>
#include <iostream>
#include <iomanip>
#include <boost/property_tree/ini_parser.hpp>
#ifdef EMSCRIPTEN
#include <emscripten/emscripten.h>
#endif
// define or take a compiler option: c++ ... -DWRP_WONDERLAND_SUBSYSTEM_GLFW3 main.cxx
//#define WRP_WONDERLAND_SUBSYSTEM_GLFW3
//#defi... | 27.584211 | 111 | 0.589964 | usagi |
8872016682c7b970e1df80ba5ceed3b6c0728a8d | 611 | hpp | C++ | include/lol/def/LolAccountVerificationSendTokenRequest.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolAccountVerificationSendTokenRequest.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolAccountVerificationSendTokenRequest.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 LolAccountVerificationSendTokenRequest {
std::string mediator;
std::string locale;
std::string device;
};
inline void to_json(json& j, const LolAccountVerificationSendTokenRequest& v) {
j["mediator"] = v.mediator;
j["locale"] =... | 32.157895 | 83 | 0.653028 | Maufeat |
887c90e853811beaba1fe90e0e5808fad420a766 | 1,965 | cpp | C++ | src/Frontends/CleanupResources.cpp | VANDAL/Sigil2 | 67e0762201d79575a25bdfe59eab257d206cff39 | [
"BSD-3-Clause"
] | 8 | 2018-12-08T15:35:34.000Z | 2021-10-25T00:10:51.000Z | src/Frontends/CleanupResources.cpp | VANDAL/Sigil2 | 67e0762201d79575a25bdfe59eab257d206cff39 | [
"BSD-3-Clause"
] | 6 | 2018-06-01T23:09:25.000Z | 2021-01-05T20:15:44.000Z | src/Frontends/CleanupResources.cpp | mdlui/Sigil2 | 67e0762201d79575a25bdfe59eab257d206cff39 | [
"BSD-3-Clause"
] | 3 | 2019-11-17T16:13:06.000Z | 2021-07-23T01:27:59.000Z | #include <csignal>
#include <cstdlib>
#include <cstring>
#include <dirent.h>
#include <iostream>
#include <mutex>
namespace Cleanup
{
namespace
{
std::mutex cleanupMtx;
bool initialized;
std::string cleanupDir;
std::terminate_handler prev_terminate_handler;
using signal_handler = void(*)(int);
signal_handler prev_s... | 24.873418 | 100 | 0.588295 | VANDAL |
887e2ba4297878ba8019c3f1b93fac2f19b5338e | 1,218 | hpp | C++ | src/database/net.hpp | martun/verilog_netlist_parser | bf616bc5b5dab3e1b93f7740b29774d7dbc72281 | [
"MIT"
] | 1 | 2018-12-18T02:16:16.000Z | 2018-12-18T02:16:16.000Z | src/database/net.hpp | martun/verilog_netlist_parser | bf616bc5b5dab3e1b93f7740b29774d7dbc72281 | [
"MIT"
] | null | null | null | src/database/net.hpp | martun/verilog_netlist_parser | bf616bc5b5dab3e1b93f7740b29774d7dbc72281 | [
"MIT"
] | null | null | null | #ifndef NET_H
#define NET_H
#include <string>
#include <vector>
class Port;
/// Class for Net.
class Net
{
public:
/** \brief Constructor by name.
* \param[in] name - Name of the Net.
* \param[in] source_port - Source port for the net, if not provided sets to NULL.
*/
Net(const std::string name, const Port ... | 22.981132 | 83 | 0.698686 | martun |
88876c8b894fedadd892e259ed9892a30f93f902 | 5,900 | hpp | C++ | include/circular_buffer.hpp | Algorithms-and-Data-Structures-2021/semester-work-circular-buffer | 7520845b51fd2e16cccfcac247140dd8cc8a459d | [
"MIT"
] | null | null | null | include/circular_buffer.hpp | Algorithms-and-Data-Structures-2021/semester-work-circular-buffer | 7520845b51fd2e16cccfcac247140dd8cc8a459d | [
"MIT"
] | null | null | null | include/circular_buffer.hpp | Algorithms-and-Data-Structures-2021/semester-work-circular-buffer | 7520845b51fd2e16cccfcac247140dd8cc8a459d | [
"MIT"
] | 1 | 2021-04-25T19:14:57.000Z | 2021-04-25T19:14:57.000Z | #pragma once
#include <cstddef>
#include <optional>
#include <stdexcept> // logic_error
#include <cassert> // assert
using std::size_t;
// Заголовочный файл с объявлением структуры данных
namespace itis {
// Tip 1: объявите здесь необходимые структуры, функции, константы и прочее
// Пример: объявление конста... | 27.962085 | 113 | 0.589492 | Algorithms-and-Data-Structures-2021 |
88884f168d3fc8582b42bf0cbcb746c51033c860 | 1,144 | cpp | C++ | leetCode/MajorityElement.cpp | ChairInkitchenAmer/study | 56650ccb1c9879f22cbd692883db7f26f5a8c54b | [
"Apache-2.0"
] | null | null | null | leetCode/MajorityElement.cpp | ChairInkitchenAmer/study | 56650ccb1c9879f22cbd692883db7f26f5a8c54b | [
"Apache-2.0"
] | null | null | null | leetCode/MajorityElement.cpp | ChairInkitchenAmer/study | 56650ccb1c9879f22cbd692883db7f26f5a8c54b | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <unordered_map>
#include <algorithm>
using namespace std;
class Solution {
public:
int majorityElement(vector<int>& nums) {
unordered_map<int,int> map;
if(nums.size() == 1){
return nums[0];
}
for(int i=0; i < nums.size(); i++){
... | 21.185185 | 69 | 0.414336 | ChairInkitchenAmer |
8888ca65a0b111d92522e95eeb4592d34962bd30 | 1,100 | cpp | C++ | CPPProgramExample/LAB04/LAB04/CLASS02.cpp | mahmoudShaheen/RandomCollegeProjects | 6bcede0ad8b09ac738d8f49e6fed6d2b7a111cfd | [
"MIT"
] | null | null | null | CPPProgramExample/LAB04/LAB04/CLASS02.cpp | mahmoudShaheen/RandomCollegeProjects | 6bcede0ad8b09ac738d8f49e6fed6d2b7a111cfd | [
"MIT"
] | null | null | null | CPPProgramExample/LAB04/LAB04/CLASS02.cpp | mahmoudShaheen/RandomCollegeProjects | 6bcede0ad8b09ac738d8f49e6fed6d2b7a111cfd | [
"MIT"
] | null | null | null |
#include <iostream>
#include <windows.h>
#include <process.h>
#include <conio.h>
using namespace std;
class point{
int x,y;
public:
point (int u, int v){x=u; y=v;}
// function definition -- requires windows.h
void gotoxy()
{
HANDLE hConsoleOutput;
COORD dwCursorPosition;
cout.flush();
dwCursorPositi... | 22.44898 | 63 | 0.621818 | mahmoudShaheen |
888a058571d9a181953e547daae797b61c5b4041 | 17,894 | cpp | C++ | esp32/TinyCPCEMttgovga32/CPCem/FDC.cpp | rpsubc8/ESP32TinyCPC | 386a0d1d47fc6f32c0b3dace67a6c2197a846a9d | [
"WTFPL"
] | 19 | 2020-12-04T15:12:45.000Z | 2022-02-07T19:46:36.000Z | esp32/TinyCPCEMttgovga32/CPCem/FDC.cpp | rpsubc8/ESP32TinyCPC | 386a0d1d47fc6f32c0b3dace67a6c2197a846a9d | [
"WTFPL"
] | 3 | 2021-02-20T08:42:09.000Z | 2022-03-11T05:11:26.000Z | esp32/TinyCPCEMttgovga32/CPCem/FDC.cpp | rpsubc8/ESP32TinyCPC | 386a0d1d47fc6f32c0b3dace67a6c2197a846a9d | [
"WTFPL"
] | 4 | 2021-02-20T08:07:04.000Z | 2022-03-27T21:52:45.000Z | //C72B - try command
//A9B0
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "FDC.h"
#include "gb_globals.h"
#include "dataFlash/gbdsk.h"
#include <iostream>
//unsigned char gb_select_dsk_disk=0;
//int gb_ptrBeginDataDisc[42][11]; //Donde empieza el disco
int startreal;
unsigned char di... | 42.402844 | 204 | 0.323181 | rpsubc8 |
888dad20edcc4f53d38f434073758c9fbba5f948 | 3,302 | cpp | C++ | src/dxapi/native/tickdb/http/xml/validate_qql_request.cpp | noop-dev/TimeBaseClientCpp | 3cbbee85f2a8f1f38a31fc14a993fceb05d650f1 | [
"Apache-2.0"
] | null | null | null | src/dxapi/native/tickdb/http/xml/validate_qql_request.cpp | noop-dev/TimeBaseClientCpp | 3cbbee85f2a8f1f38a31fc14a993fceb05d650f1 | [
"Apache-2.0"
] | null | null | null | src/dxapi/native/tickdb/http/xml/validate_qql_request.cpp | noop-dev/TimeBaseClientCpp | 3cbbee85f2a8f1f38a31fc14a993fceb05d650f1 | [
"Apache-2.0"
] | 2 | 2021-05-14T09:39:50.000Z | 2022-03-24T23:42:41.000Z | /*
* Copyright 2021 EPAM Systems, Inc
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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 Li... | 29.221239 | 120 | 0.650515 | noop-dev |
888f003791b7375286b79eec304e33195f88bcca | 1,567 | cpp | C++ | Src/renderer/loading_screen/LoadingScreen.cpp | Kataglyphis/GraphicEngine | f3b87a36b761fe13e747011be9301f6f9fe0c3f0 | [
"BSD-3-Clause"
] | null | null | null | Src/renderer/loading_screen/LoadingScreen.cpp | Kataglyphis/GraphicEngine | f3b87a36b761fe13e747011be9301f6f9fe0c3f0 | [
"BSD-3-Clause"
] | null | null | null | Src/renderer/loading_screen/LoadingScreen.cpp | Kataglyphis/GraphicEngine | f3b87a36b761fe13e747011be9301f6f9fe0c3f0 | [
"BSD-3-Clause"
] | null | null | null | #include "LoadingScreen.h"
#include <sstream>
LoadingScreen::LoadingScreen() {
create_shader_program();
}
void LoadingScreen::init()
{
std::stringstream texture_base_dir;
texture_base_dir << CMAKELISTS_DIR;
texture_base_dir << "/Resources/Textures/";
std::stringstream texture_loading_screen;
... | 25.274194 | 94 | 0.675814 | Kataglyphis |
88941a2351f5a90aab7045ed95a69a096fd3c8be | 9,866 | cxx | C++ | MUON/MUONmapping/AliMpBusPatch.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | MUON/MUONmapping/AliMpBusPatch.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | MUON/MUONmapping/AliMpBusPatch.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 29.538922 | 96 | 0.647476 | AllaMaevskaya |
889b7fa955d64191cebb708ce71eafc6590b632f | 231 | hpp | C++ | include/toy/gadget/IntToChar.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 4 | 2017-07-06T22:18:41.000Z | 2021-05-24T21:28:37.000Z | include/toy/gadget/IntToChar.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | null | null | null | include/toy/gadget/IntToChar.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 1 | 2020-08-02T13:00:38.000Z | 2020-08-02T13:00:38.000Z |
#pragma once
#include "toy/Standard.hpp"
#include "toy/gadget/Export.hpp"
namespace toy{
namespace gadget{
// 1 -> '1'
// 2 -> '2'
// 9 -> '9'
// 10 -> [error]
// -1 -> [error]
TOY_API_GADGET extern char IntToChar(int);
}}
| 12.833333 | 42 | 0.597403 | ToyAuthor |
889c45242a1cd2c573d08386e06c9a181851cb3f | 454 | cpp | C++ | final/pointers/pointers_to_functions.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | final/pointers/pointers_to_functions.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | final/pointers/pointers_to_functions.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int addThem(int, int);
int subtractThem(int, int);
int main()
{
int addResult, subResult;
int (*opPtr)(int, int);
opPtr = addThem;
addResult = opPtr(3, 2);
opPtr = subtractThem;
subResult = opPtr(3, 2);
cout << "Adding: " << addResult << " Subtracting: " <... | 16.214286 | 75 | 0.599119 | coderica |
889c8b9fa38c3010c71d1e2b7426666342bb5772 | 571 | hpp | C++ | src/Main/buildLIZandCommLists.hpp | pmu2022/lsms | 3c5f266812cad0b6d570bef9f5abb590d044ef92 | [
"BSD-3-Clause"
] | 1 | 2022-01-27T14:45:51.000Z | 2022-01-27T14:45:51.000Z | src/Main/buildLIZandCommLists.hpp | pmu2022/lsms | 3c5f266812cad0b6d570bef9f5abb590d044ef92 | [
"BSD-3-Clause"
] | 3 | 2021-09-14T01:30:26.000Z | 2021-09-25T14:05:10.000Z | src/Main/buildLIZandCommLists.hpp | pmu2022/lsms | 3c5f266812cad0b6d570bef9f5abb590d044ef92 | [
"BSD-3-Clause"
] | 1 | 2022-01-03T18:16:26.000Z | 2022-01-03T18:16:26.000Z |
#ifndef LSMS_BUILDLIZANDCOMMLISTS_HPP
#define LSMS_BUILDLIZANDCOMMLISTS_HPP
#include "Real.hpp"
#include "SystemParameters.hpp"
#include "SingleSite/AtomData.hpp"
#include "Communication/LSMSCommunication.hpp"
class LIZInfoType {
public:
int idx;
Real p1, p2, p3;
Real dSqr;
};
class NodeIdxInfo {
public:
i... | 19.033333 | 53 | 0.676007 | pmu2022 |
889e2e4d0c63113975d8ec6fb0621891e6e0b794 | 3,470 | cpp | C++ | PGTests/PGTests/GeometryTests.cpp | mcdreamer/PG | a047615d9eae7f2229a203a262f239106cf7f39c | [
"MIT"
] | 2 | 2018-01-14T17:47:22.000Z | 2021-11-15T10:34:24.000Z | PGTests/PGTests/GeometryTests.cpp | mcdreamer/PG | a047615d9eae7f2229a203a262f239106cf7f39c | [
"MIT"
] | 23 | 2017-07-31T19:43:00.000Z | 2018-11-11T18:51:28.000Z | PGTests/PGTests/GeometryTests.cpp | mcdreamer/PG | a047615d9eae7f2229a203a262f239106cf7f39c | [
"MIT"
] | null | null | null | #include "GeometryTests.h"
#include "gtest/gtest.h"
#include "PG/core/RectUtils.h"
#include "PG/core/Rect.h"
#include "PG/core/Point.h"
#include "PG/entities/TilePositionCalculator.h"
#include "PG/app/GameConstants.h"
using namespace PG;
//--------------------------------------------------------
TEST(GeometryTests,t... | 36.526316 | 86 | 0.597118 | mcdreamer |
88a8e8c0a917c63a5bbc9709faca4b4637b9e4b1 | 26,514 | cpp | C++ | samsung/hardware/exynos3/s5pc110/libhwcomposer/SecHWC.cpp | DrDoubt/android_device_samsung_universal9810-common-1 | 5a937d2994044c041c3c19192d7744200a036cc8 | [
"Apache-2.0"
] | null | null | null | samsung/hardware/exynos3/s5pc110/libhwcomposer/SecHWC.cpp | DrDoubt/android_device_samsung_universal9810-common-1 | 5a937d2994044c041c3c19192d7744200a036cc8 | [
"Apache-2.0"
] | null | null | null | samsung/hardware/exynos3/s5pc110/libhwcomposer/SecHWC.cpp | DrDoubt/android_device_samsung_universal9810-common-1 | 5a937d2994044c041c3c19192d7744200a036cc8 | [
"Apache-2.0"
] | 2 | 2021-07-04T19:41:36.000Z | 2021-07-29T12:59:47.000Z | /*
* 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... | 32.373626 | 96 | 0.575092 | DrDoubt |
88ae512084cae3dce1817e54429e2a9f2947912d | 1,095 | cc | C++ | codeforces/Round582-Div.3/D.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 67 | 2019-07-14T05:38:41.000Z | 2021-12-23T11:52:51.000Z | codeforces/Round582-Div.3/D.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | null | null | null | codeforces/Round582-Div.3/D.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 12 | 2020-01-16T10:48:01.000Z | 2021-06-11T16:49:04.000Z | //
// Created by OFShare on 2019-09-10
//
#include <bits/stdc++.h>
const int maxn = 2e5 + 5;
int n, k;
int A[maxn];
// canNumber[i]记录可以变成i这个数,的个数
int canNumber[maxn];
// cntNumber[i][j]记录变成i时需要j次操作,的个数
int cntNumber[maxn][30];
void preprocess(int x) {
int cnt = 0;
while(x){
canNumber[x]++;
cn... | 20.660377 | 58 | 0.415525 | OFShare |
88b4111e7ee5665a71371b9f5090bb8392bc44a4 | 397 | cc | C++ | result.cc | espindola/libcthulhu | 8ab74385abd257abcd49f780675b0849a8c69bfb | [
"0BSD"
] | 12 | 2020-09-10T03:01:45.000Z | 2022-03-10T09:03:03.000Z | result.cc | espindola/libcthulhu | 8ab74385abd257abcd49f780675b0849a8c69bfb | [
"0BSD"
] | null | null | null | result.cc | espindola/libcthulhu | 8ab74385abd257abcd49f780675b0849a8c69bfb | [
"0BSD"
] | 1 | 2021-05-13T06:27:19.000Z | 2021-05-13T06:27:19.000Z | // Copyright (C) 2019 ScyllaDB
#include <cthulhu/result.hh>
#include <errno.h>
#include <string.h>
using namespace cthulhu;
posix_error::posix_error(int error_number) : error_number(error_number) {
assert(error_number && "not an error");
}
posix_error posix_error::current() {
return errno;
}
void posix_error::p... | 18.904762 | 73 | 0.732997 | espindola |
88b89dbd5d774ccf7b6a7014d649875ec9b40fd8 | 4,327 | cpp | C++ | 80/prog.cpp | alexsyrom/ProjectEuler | 78c3e2a0e2d4948ef4faa5d65ff58defd5835620 | [
"MIT"
] | null | null | null | 80/prog.cpp | alexsyrom/ProjectEuler | 78c3e2a0e2d4948ef4faa5d65ff58defd5835620 | [
"MIT"
] | null | null | null | 80/prog.cpp | alexsyrom/ProjectEuler | 78c3e2a0e2d4948ef4faa5d65ff58defd5835620 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <cmath>
#include <algorithm>
template <class Class>
void Print(Class instance) {
std::cout << instance << std::endl;
}
void Print() {
std::cout << std::endl;
}
class UnsignedDecimalFloat {
public:
static const size_t kBase = 10;
sta... | 30.471831 | 92 | 0.623758 | alexsyrom |
88ba1214b01266b549602efee89b52bd888e7983 | 1,744 | cpp | C++ | src/domain/finite_element/finite_element.cpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 12 | 2018-03-14T12:30:53.000Z | 2022-01-23T14:46:44.000Z | src/domain/finite_element/finite_element.cpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 194 | 2017-07-07T01:38:15.000Z | 2021-05-19T18:21:19.000Z | src/domain/finite_element/finite_element.cpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 10 | 2017-07-06T22:58:59.000Z | 2021-03-15T07:01:21.000Z | #include "domain/finite_element/finite_element.hpp"
namespace bart::domain::finite_element {
template <int dim>
auto FiniteElement<dim>::SetCell(const domain::CellPtr<dim> &to_set) -> bool {
bool already_set{ false };
if (values_reinit_called_) {
already_set = (values_->get_cell()->id() == to_set->id());
}... | 30.068966 | 113 | 0.735092 | SlaybaughLab |
88bc4a6f30756e262d4acab589acca2a10e72e0d | 1,410 | cpp | C++ | Minigin/ColliderComponent.cpp | Zakatos/Component-Game-Engine | c52f49ada5c23cdee502f4d3a8ce09392d6bcae9 | [
"MIT"
] | null | null | null | Minigin/ColliderComponent.cpp | Zakatos/Component-Game-Engine | c52f49ada5c23cdee502f4d3a8ce09392d6bcae9 | [
"MIT"
] | null | null | null | Minigin/ColliderComponent.cpp | Zakatos/Component-Game-Engine | c52f49ada5c23cdee502f4d3a8ce09392d6bcae9 | [
"MIT"
] | null | null | null | #include "MiniginPCH.h"
#include "ECS/ColliderComponent.h"
#include "RendererComponent.h"
ColliderComponent::ColliderComponent(const std::string& t)
:m_Tag(t)
{
}
ColliderComponent::ColliderComponent(const std::string& t, int xpos, int ypos, int size)
:m_Tag(t)
{
m_Collider.x = xpos;
m_Collider.y = ypos;
... | 21.692308 | 88 | 0.721986 | Zakatos |
88c74c39378a3adb3eb8fb80d7c50d248aecc6d0 | 721 | cpp | C++ | Aula24/P1_GrowlingGears/GrowlingGears.cpp | VanessaMMH/ProgComp2021A | 03a3e0394b26eb78801246c7d6b7888fe53141bd | [
"BSD-3-Clause"
] | null | null | null | Aula24/P1_GrowlingGears/GrowlingGears.cpp | VanessaMMH/ProgComp2021A | 03a3e0394b26eb78801246c7d6b7888fe53141bd | [
"BSD-3-Clause"
] | null | null | null | Aula24/P1_GrowlingGears/GrowlingGears.cpp | VanessaMMH/ProgComp2021A | 03a3e0394b26eb78801246c7d6b7888fe53141bd | [
"BSD-3-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
link:https://open.kattis.com/problems/growlinggears
*/
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int q;
cin >> q;
for (int i = 0; i < q; i++)
{
int n, index;
double max = -500000.0;
cin >> n;
f... | 18.973684 | 51 | 0.330097 | VanessaMMH |
88c84d9159cc16011dcbf448c36abe10bf766683 | 1,848 | cpp | C++ | Problem/src/SampleProblem.cpp | tut-cc/DiceTilingMeu | d07d6e27370385ff7b4bce48f34f64bb1caa41ee | [
"MIT"
] | 8 | 2015-10-12T05:39:06.000Z | 2016-08-20T06:12:26.000Z | Problem/src/SampleProblem.cpp | tut-cc/DiceTilingMeu | d07d6e27370385ff7b4bce48f34f64bb1caa41ee | [
"MIT"
] | null | null | null | Problem/src/SampleProblem.cpp | tut-cc/DiceTilingMeu | d07d6e27370385ff7b4bce48f34f64bb1caa41ee | [
"MIT"
] | null | null | null | #include "SampleProblem.hpp"
#include <string>
#include <iostream>
#include <fstream>
#include <cstdlib>
SampleProblem::SampleProblem(std::string p) {
std::ifstream ifs(p);
if (ifs.fail()) {
std::cout << "failed" << std::endl;
}
std::string str;
for (int i = 0; i < 32; i++) {
ifs >> str;
field.push_back(str... | 18.29703 | 75 | 0.573593 | tut-cc |
88cea4245e1afd4b8b01c0337241f46a7b92f1b1 | 589 | cpp | C++ | src/semantic/semantic-utils.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | 1 | 2019-07-01T02:02:40.000Z | 2019-07-01T02:02:40.000Z | src/semantic/semantic-utils.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | null | null | null | src/semantic/semantic-utils.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | null | null | null | #include "semantic-utils.hpp"
#include "semantic-pass.hpp"
#include "ast/ast.hpp"
namespace Noctis
{
StdUnorderedSet<QualNameSPtr> ExtractImportModules(AstTree& tree)
{
class ImportExtractor : public AstSemanticPass
{
public:
ImportExtractor()
: AstSemanticPass("import extractor")
{
}
void ... | 19 | 66 | 0.714771 | noct-lang |
88cef625917719a69838ff753fbbfb149edf66ee | 2,982 | cpp | C++ | storage/sstable/writer/sharding_sstable_writer.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 264 | 2015-01-03T11:50:17.000Z | 2022-03-17T02:38:34.000Z | storage/sstable/writer/sharding_sstable_writer.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 12 | 2015-04-27T15:17:34.000Z | 2021-05-01T04:31:18.000Z | storage/sstable/writer/sharding_sstable_writer.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 128 | 2015-02-07T18:13:10.000Z | 2022-02-21T14:24:14.000Z | // Copyright (c) 2013, The Toft Authors.
// All rights reserved.
//
// Author: Ye Shunping <yeshunping@gmail.com>
#include "toft/storage/sstable/writer/sharding_sstable_writer.h"
#include "toft/base/stl_util.h"
#include "toft/base/string/format.h"
#include "toft/base/string/number.h"
#include "toft/hash/fingerprint.h... | 35.5 | 93 | 0.653588 | hjinlin |
88d3df327a998aec29ea949377ccf13648683831 | 15,051 | cpp | C++ | src/main.cpp | GlyphXTools/chunk-viewer | d5163969e8986d557b6cfbb524279f36235fda02 | [
"MIT"
] | 7 | 2017-01-22T09:09:40.000Z | 2021-11-13T08:51:31.000Z | src/main.cpp | GlyphXTools/chunk-viewer | d5163969e8986d557b6cfbb524279f36235fda02 | [
"MIT"
] | null | null | null | src/main.cpp | GlyphXTools/chunk-viewer | d5163969e8986d557b6cfbb524279f36235fda02 | [
"MIT"
] | 1 | 2019-04-07T05:09:11.000Z | 2019-04-07T05:09:11.000Z | #define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <commdlg.h>
#include <commctrl.h>
#include <shlobj.h>
#include "resource.h"
#include <afxres.h>
#include <tchar.h>
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "ChunkFile.h"
#include "Exceptions.h"
u... | 27.718232 | 158 | 0.601156 | GlyphXTools |
88d87eaf52fd28adfa40899cfc5a491398f4e95b | 1,209 | cpp | C++ | src/types/cons.cpp | rationalis-petra/hydra | a1c14e560f5f1c64983468e5fd0be7b32824971d | [
"MIT"
] | 2 | 2021-01-14T11:19:02.000Z | 2021-03-07T03:08:08.000Z | src/types/cons.cpp | rationalis-petra/hydra | a1c14e560f5f1c64983468e5fd0be7b32824971d | [
"MIT"
] | null | null | null | src/types/cons.cpp | rationalis-petra/hydra | a1c14e560f5f1c64983468e5fd0be7b32824971d | [
"MIT"
] | null | null | null | #include <string>
#include <list>
#include "operations/types.hpp"
#include "expressions.hpp"
#include "types.hpp"
#include "utils.hpp"
using std::string;
using namespace type;
using namespace interp;
Cons::Cons() {
type_car = new Any;
type_cdr = new Any;
set_invoker(op::mk_cons_type);
}
Cons::Cons(Type* tcar... | 20.491525 | 58 | 0.632754 | rationalis-petra |
88e307413a54906a6923035771943e45d0d427d6 | 3,246 | cpp | C++ | Solutions/DK_LM3S9B96/DeviceCode/Bootstrap_HAL/CortexM3_functions_bootstrap.cpp | yangjunjiao/NetmfSTM32 | 62ddb8aa0362b83d2e73f3621a56593988e3620f | [
"Apache-2.0"
] | 4 | 2019-01-21T11:47:53.000Z | 2020-06-09T02:14:15.000Z | Solutions/DK_LM3S9B96/DeviceCode/Bootstrap_HAL/CortexM3_functions_bootstrap.cpp | yisea123/NetmfSTM32 | 62ddb8aa0362b83d2e73f3621a56593988e3620f | [
"Apache-2.0"
] | null | null | null | Solutions/DK_LM3S9B96/DeviceCode/Bootstrap_HAL/CortexM3_functions_bootstrap.cpp | yisea123/NetmfSTM32 | 62ddb8aa0362b83d2e73f3621a56593988e3620f | [
"Apache-2.0"
] | 4 | 2019-01-21T11:48:00.000Z | 2021-05-04T12:37:55.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
// This file is part of the Microsoft .NET Micro Framework Porting Kit Code Samples and is unsupported.
// Cop... | 39.585366 | 200 | 0.60382 | yangjunjiao |
88f126095c5f840d7be7903ce6288711c15f9443 | 2,425 | hpp | C++ | manager/lib/borealis/library/include/borealis/dropdown.hpp | lunixoid/sys-clk | 731d0de5f580a7fa853804e0c776ba2f1623c932 | [
"Beerware"
] | 492 | 2019-02-14T16:10:55.000Z | 2022-03-31T00:01:27.000Z | manager/lib/borealis/library/include/borealis/dropdown.hpp | lunixoid/sys-clk | 731d0de5f580a7fa853804e0c776ba2f1623c932 | [
"Beerware"
] | 51 | 2019-02-14T17:31:08.000Z | 2022-03-24T00:10:09.000Z | manager/lib/borealis/library/include/borealis/dropdown.hpp | lunixoid/sys-clk | 731d0de5f580a7fa853804e0c776ba2f1623c932 | [
"Beerware"
] | 75 | 2019-02-14T17:46:32.000Z | 2022-03-28T07:19:25.000Z | /*
Borealis, a Nintendo Switch UI Library
Copyright (C) 2019-2020 natinusala
Copyright (C) 2019-2020 p-sam
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 o... | 29.938272 | 125 | 0.718351 | lunixoid |
88f40d44b9d726b071d7f417f5c1b5075f28b583 | 239 | hpp | C++ | include/dungeon/horizontal_wall.hpp | tanacchi/rogue_game | fd8f655f95932513f6aa63e0c413bbe110a4418a | [
"MIT"
] | 10 | 2018-09-13T14:47:07.000Z | 2022-01-10T11:46:12.000Z | include/dungeon/horizontal_wall.hpp | tanacchi/rogue_game | fd8f655f95932513f6aa63e0c413bbe110a4418a | [
"MIT"
] | 13 | 2018-09-18T19:36:32.000Z | 2020-11-12T16:26:22.000Z | include/dungeon/horizontal_wall.hpp | tanacchi/rogue_game | fd8f655f95932513f6aa63e0c413bbe110a4418a | [
"MIT"
] | null | null | null | #ifndef INCLUDED_HORIZONTAL_WALL_HPP
#define INCLUDED_HORIZONTAL_WALL_HPP
#include <dungeon/dungeon_elem.hpp>
// '-'
class HorizontalWall : public DungeonElem
{
public:
HorizontalWall();
};
#endif // INCLUDED_HORIZONTAL_WALL_HPP
| 17.071429 | 41 | 0.778243 | tanacchi |
88f6e054906565a72309755b609a32cb3b2d9bd6 | 2,138 | cpp | C++ | Basil/src/Renderer/Renderer.cpp | Tamookk/Basil | bdcdf4e6e13e64a34416b4412d366594f9d46f56 | [
"Apache-2.0"
] | null | null | null | Basil/src/Renderer/Renderer.cpp | Tamookk/Basil | bdcdf4e6e13e64a34416b4412d366594f9d46f56 | [
"Apache-2.0"
] | null | null | null | Basil/src/Renderer/Renderer.cpp | Tamookk/Basil | bdcdf4e6e13e64a34416b4412d366594f9d46f56 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Platform/OpenGL/OpenGLRendererAPI.h"
#include "Renderer/Renderer.h"
#include "Renderer/Renderer2D.h"
namespace Basil
{
// Set the render API currently in use
Unique<RendererAPI> Renderer::rendererAPI = makeUnique<OpenGLRendererAPI>();
// Screate the scene data struct
Unique<Renderer::Sc... | 22.270833 | 112 | 0.721703 | Tamookk |
88fc0c8a0edad19a664de5dd9329f4a4c959c4e2 | 372 | hpp | C++ | src/rover/gps.hpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 1 | 2018-10-16T02:32:49.000Z | 2018-10-16T02:32:49.000Z | src/rover/gps.hpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 13 | 2018-10-23T20:35:10.000Z | 2018-11-23T22:44:32.000Z | src/subsystems_computer/gps.hpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 1 | 2018-10-16T03:11:39.000Z | 2018-10-16T03:11:39.000Z | #include "../network/network.hpp"
#include "../util/util.hpp"
namespace gps {
struct Position {
float latitude;
float longitude;
};
enum class Error {
OK,
OPEN,
GET_ATTR,
SET_ATTR
};
Error init(const char* device_id, util::Clock* global_clock);
Position get_position();
float get_heading();... | 13.777778 | 61 | 0.680108 | 2535Rover |
88fe57dc7905b93b0e001c26362393f0d9c90f4c | 1,199 | hpp | C++ | core/src/utils/NoiseUtils.hpp | lonnibesancon/utymap | 6d14a3d1386aade8c2755da4abc00269284c90d4 | [
"Apache-2.0"
] | 1 | 2019-04-04T14:20:37.000Z | 2019-04-04T14:20:37.000Z | core/src/utils/NoiseUtils.hpp | lonnibesancon/utymap | 6d14a3d1386aade8c2755da4abc00269284c90d4 | [
"Apache-2.0"
] | null | null | null | core/src/utils/NoiseUtils.hpp | lonnibesancon/utymap | 6d14a3d1386aade8c2755da4abc00269284c90d4 | [
"Apache-2.0"
] | null | null | null | #ifndef UTILS_NOISEUTILS_HPP_DEFINED
#define UTILS_NOISEUTILS_HPP_DEFINED
#include "math/Vector2.hpp"
#include "math/Vector3.hpp"
namespace utymap { namespace utils {
/// Provides noise generation functions.
/// Ported from C# code from here : http ://catlikecoding.com/unity/tutorials/noise/
class NoiseUtils final
{... | 25.510638 | 84 | 0.672227 | lonnibesancon |
0002baa9008ce6d632eddd1c9323b18dacee890a | 1,369 | cpp | C++ | JMap_Xbox.cpp | Gallard88/ROSV_Joystick | de44334526571a3b814bcee18ae873907f38ec57 | [
"MIT"
] | null | null | null | JMap_Xbox.cpp | Gallard88/ROSV_Joystick | de44334526571a3b814bcee18ae873907f38ec57 | [
"MIT"
] | null | null | null | JMap_Xbox.cpp | Gallard88/ROSV_Joystick | de44334526571a3b814bcee18ae873907f38ec57 | [
"MIT"
] | null | null | null | #include <unistd.h>
#include <fcntl.h>
#include "JMap_Xbox.h"
using namespace std;
/*
* Generix X-Box pad.
* 8x Axis
* 11x Buttons
*
*/
JMap_Xbox::JMap_Xbox(JoyStickDriver *driver):
Joy(driver), Depth(0),
IncEdge(false), DecEdge(false)
{
}
float JMap_Xbox::GetVectorValue(ControlVectors vector)
{
switch ... | 15.735632 | 55 | 0.558072 | Gallard88 |
322dcbfd67fdb62dd60f01ce589c0914e162206a | 2,195 | cpp | C++ | USBCamera/readAndSave.cpp | sdbzzhaotq/DemoCollection | 94cd136e7a67ee60634139886d45b69e1ffd0e4c | [
"MIT"
] | null | null | null | USBCamera/readAndSave.cpp | sdbzzhaotq/DemoCollection | 94cd136e7a67ee60634139886d45b69e1ffd0e4c | [
"MIT"
] | null | null | null | USBCamera/readAndSave.cpp | sdbzzhaotq/DemoCollection | 94cd136e7a67ee60634139886d45b69e1ffd0e4c | [
"MIT"
] | null | null | null | #include <opencv2/opencv.hpp>
#include <iostream>
#include <chrono>
#include <ctime>
#include "MatIO.h"
const int ROAD_CAMERA_ID = 0;
#define FRAME_WIDTH 1164
#define FRAME_HEIGHT 874
void write_mb() {
//VideoCapture capture(ROAD_CAMERA_ID, cv::CAP_V4L2);
cv::VideoCapture capture("ns.mov");
capture.set(c... | 28.141026 | 115 | 0.575399 | sdbzzhaotq |
322dfc8c02df49b996c3784d8e77b2864bb655eb | 531 | cpp | C++ | source/discord/gateway.cpp | kociap/Discord- | fcbf30d199ec217e0e6289aee96e365de383dbda | [
"MIT"
] | null | null | null | source/discord/gateway.cpp | kociap/Discord- | fcbf30d199ec217e0e6289aee96e365de383dbda | [
"MIT"
] | 2 | 2019-01-15T07:38:54.000Z | 2019-01-15T07:44:35.000Z | source/discord/gateway.cpp | kociap/Discord- | fcbf30d199ec217e0e6289aee96e365de383dbda | [
"MIT"
] | 1 | 2018-10-25T12:12:34.000Z | 2018-10-25T12:12:34.000Z | #include "gateway.hpp"
#include "nlohmann/json.hpp"
#include "rpp/rpp.hpp"
#include "urls.hpp"
namespace discord {
namespace gateway {
String get_gateway() {
rpp::Request req;
req.set_verbose(true);
req.set_verify_ssl(false);
rpp::Response res = req.get(url:... | 27.947368 | 72 | 0.585687 | kociap |
323426d24d8492974a62c33e7327e1a5a8b0deb2 | 76 | cpp | C++ | test/compile_include_text_view_2.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | test/compile_include_text_view_2.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | test/compile_include_text_view_2.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z | #include <boost/text/string_view.hpp>
#include <boost/text/string_view.hpp>
| 25.333333 | 37 | 0.789474 | eightysquirrels |
3243202609864bdcaf4f693bc60b9af583121b1a | 1,329 | cpp | C++ | AI/Src/SteeringBehavior_OffsetPursuit.cpp | ArvydasSlekaitis/ReginaGameEngine | 4b6af9b5fbf9aad4025b0387260c31019fd8f8c8 | [
"MIT"
] | 1 | 2020-09-02T06:00:14.000Z | 2020-09-02T06:00:14.000Z | AI/Src/SteeringBehavior_OffsetPursuit.cpp | ArvydasSlekaitis/ReginaGameEngine | 4b6af9b5fbf9aad4025b0387260c31019fd8f8c8 | [
"MIT"
] | null | null | null | AI/Src/SteeringBehavior_OffsetPursuit.cpp | ArvydasSlekaitis/ReginaGameEngine | 4b6af9b5fbf9aad4025b0387260c31019fd8f8c8 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////
// SteeringBehavior_OffsetPursuit.cpp
// Created on: 11-10-2009
// Last modified: 11-10-2009
// Original author: Arvydas Slekaitis (C)
///////////////////////////////////////////////////////////
#include <SteeringBehavior_OffsetPursuit.h>
using na... | 44.3 | 252 | 0.5538 | ArvydasSlekaitis |
324c668049c4a4374cc8ae171461f16914510fab | 25,057 | cpp | C++ | steamfilter/replace.cpp | Pez42/steam-limiter | df95d2460faa0316573013d09db086826b3c825a | [
"BSD-2-Clause"
] | 2 | 2016-02-24T09:49:07.000Z | 2019-05-31T14:38:06.000Z | steamfilter/replace.cpp | Pez42/steam-limiter | df95d2460faa0316573013d09db086826b3c825a | [
"BSD-2-Clause"
] | null | null | null | steamfilter/replace.cpp | Pez42/steam-limiter | df95d2460faa0316573013d09db086826b3c825a | [
"BSD-2-Clause"
] | 2 | 2015-09-22T15:53:59.000Z | 2020-06-14T12:50:24.000Z | /**@addtogroup Filter Steam limiter filter hook DLL.
* @{@file
*
* This defines a data structure to be used for managing replacement HTTP
* content to be used when certain URL patterns are seen.
*
* @author Nigel Bree <nigel.bree@gmail.com>
*
* Copyright (C) 2013 Nigel Bree; All Rights Reserved.
*
... | 31.677623 | 88 | 0.563914 | Pez42 |
3251bc8b1cde3aa927595ec3645a882894603708 | 1,181 | cpp | C++ | Backtracking/CountN-Queen.cpp | divyanshi23/CB-Algo | cd3702d715d2f269dacd065ad5fc300af86e55d8 | [
"MIT"
] | null | null | null | Backtracking/CountN-Queen.cpp | divyanshi23/CB-Algo | cd3702d715d2f269dacd065ad5fc300af86e55d8 | [
"MIT"
] | null | null | null | Backtracking/CountN-Queen.cpp | divyanshi23/CB-Algo | cd3702d715d2f269dacd065ad5fc300af86e55d8 | [
"MIT"
] | null | null | null | /*You are given an empty chess board of size N*N. Find the number of ways to place N queens on the board, such that no two queens can kill each other in one move. A queen can move vertically, horizontally and diagonally.
Input Format
A single integer N, denoting the size of chess board.
Constraints
1<=N<=11
... | 21.472727 | 221 | 0.546994 | divyanshi23 |
32527ad159a454c0af64769e08a4aa0d978a048e | 827 | cpp | C++ | src/Function.cpp | Deukhoofd/ELF_Reader | 92b732ea3a351f88d9612293f8b9aa8349c7ec49 | [
"MIT"
] | null | null | null | src/Function.cpp | Deukhoofd/ELF_Reader | 92b732ea3a351f88d9612293f8b9aa8349c7ec49 | [
"MIT"
] | null | null | null | src/Function.cpp | Deukhoofd/ELF_Reader | 92b732ea3a351f88d9612293f8b9aa8349c7ec49 | [
"MIT"
] | null | null | null |
#include "Function.hpp"
Function::Function(const File& file, Block* block) {
_name = block->GetName();
_fileName = file.GetFileName();
_returnType = ((block->GetAtType() == 0) ? Type() : Type(file, file.GetBlock(block->GetAtType())));
auto c= block->GetNext();
while (c != nullptr){
if (c-... | 34.458333 | 105 | 0.591294 | Deukhoofd |
3259e46a5834cf2b69b7d9c3b0c78188b4042656 | 683 | cpp | C++ | Mean Inequality.cpp | manu-karenite/Codeforces-Solutions | c963a0186c6530ea8a785780fc4d68ed539e8c6e | [
"MIT"
] | 1 | 2021-04-07T05:13:21.000Z | 2021-04-07T05:13:21.000Z | Mean Inequality.cpp | manu-karenite/Codeforces-Solutions | c963a0186c6530ea8a785780fc4d68ed539e8c6e | [
"MIT"
] | null | null | null | Mean Inequality.cpp | manu-karenite/Codeforces-Solutions | c963a0186c6530ea8a785780fc4d68ed539e8c6e | [
"MIT"
] | null | null | null | /*
This code is written by Manavesh Narendra
E-mail : manu.karenite@gmail.com
LinkedIn : https://www.linkedin.com/in/manavesh-narendra-489833196/
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
int test;
cin>>test;
while(test--)
{
int n;
cin>>n;
vector<int> n... | 17.512821 | 67 | 0.445095 | manu-karenite |
325b92c7534256bb162a8f8c5f5f99d688984ce2 | 2,778 | cpp | C++ | Common/util/src/encoding_ansi.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 4 | 2021-10-20T09:18:06.000Z | 2022-03-27T05:08:26.000Z | Common/util/src/encoding_ansi.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 1 | 2021-11-05T03:28:41.000Z | 2021-11-06T07:48:05.000Z | Common/util/src/encoding_ansi.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 1 | 2021-12-13T16:04:22.000Z | 2021-12-13T16:04:22.000Z | /**
* \file encoding_ansi.cpp
* \brief ANSI 编码转换实现代码
*/
#include "pch.h"
#include "encoding_ansi.h"
namespace dtutil
{
/**
* \brief 获取编码实例
* \return 编码实例
*/
Encoding & ANSIEncoding::GetInstance()
{
static ANSIEncoding ansi;
return ansi;
}
/**
* \brief 把 Unicode 字... | 21.369231 | 106 | 0.559755 | deeptexas-ai |
325de760fb323573959be371c3c8d01d3044de2a | 6,637 | cc | C++ | Bucatini.cc | EdoPro98/Bucatini | a904d9a8c48ec90b3dfe9d370ae51f0653b14def | [
"MIT"
] | null | null | null | Bucatini.cc | EdoPro98/Bucatini | a904d9a8c48ec90b3dfe9d370ae51f0653b14def | [
"MIT"
] | null | null | null | Bucatini.cc | EdoPro98/Bucatini | a904d9a8c48ec90b3dfe9d370ae51f0653b14def | [
"MIT"
] | null | null | null | //**************************************************
// \file Bucatini.cc
// \brief: main() of Bucatini project
// \author: Lorenzo Pezzotti (CERN EP-SFT-sim) @lopezzot
// \start date: 7 July 2021
//**************************************************
// Includers from project files
//
#include "BucatiniActionInitializa... | 32.694581 | 142 | 0.706645 | EdoPro98 |
3260f431fd17186a0934bb7500142b1a27bef192 | 1,472 | cpp | C++ | test/Core/ListTest.cpp | anisimovsergey/gluino_test | 7de141362cafb244841b13b7b86c17d00f550fba | [
"MIT"
] | 5 | 2017-10-07T06:46:23.000Z | 2018-12-10T07:14:47.000Z | test/Core/ListTest.cpp | anisimovsergey/gluino_test | 7de141362cafb244841b13b7b86c17d00f550fba | [
"MIT"
] | 8 | 2017-01-07T15:01:32.000Z | 2017-07-16T20:18:10.000Z | test/Core/ListTest.cpp | anisimovsergey/gluino_test | 7de141362cafb244841b13b7b86c17d00f550fba | [
"MIT"
] | 4 | 2017-01-07T14:58:00.000Z | 2019-10-30T09:38:53.000Z | #include "Utils/Testing.hpp"
#include "Core/List.hpp"
#include "Core/Memory.hpp"
using namespace Core;
namespace {
class Content : public Core::IEntity {
TYPE_INFO(Content, Core::IEntity, "content")
public:
explicit Content(int i):i(i) {}
int i;
};
class ContentList : public Core::List<Con... | 20.444444 | 62 | 0.629076 | anisimovsergey |
3263c76c159ab76eaf8c303bfdfb9de5f1a8fbb5 | 1,444 | hpp | C++ | cpp/include/manager/robinhood_bot.hpp | algo-trading-kjsce/trading | 29a245a16512fd5803168064b45021cd508e7de0 | [
"MIT"
] | 2 | 2020-11-08T06:11:35.000Z | 2021-09-18T01:44:45.000Z | cpp/include/manager/robinhood_bot.hpp | algo-trading-kjsce/trading | 29a245a16512fd5803168064b45021cd508e7de0 | [
"MIT"
] | null | null | null | cpp/include/manager/robinhood_bot.hpp | algo-trading-kjsce/trading | 29a245a16512fd5803168064b45021cd508e7de0 | [
"MIT"
] | 1 | 2021-06-13T02:36:25.000Z | 2021-06-13T02:36:25.000Z | /**
* @file robinhood_bot.hpp
* @author ashwinn76
* @brief
* @version 0.1
* @date 2021-02-12
*
* @copyright Copyright (c) 2021
*
*/
#pragma once
#include "stock_data.hpp"
#include "helper/py_object.hpp"
namespace trading
{
class robinhood_bot
{
private:
python::py_object m_bot{}; // Robinhood Bot
... | 21.552239 | 76 | 0.631579 | algo-trading-kjsce |
32660093b2de2e07949a75a10b18c4a94b8dbb74 | 4,106 | hpp | C++ | include/item.hpp | hunter-land/humble-user-interface | 2a6f9bf7f6c31e51061aa45fc1d0aa04e21b19e4 | [
"Apache-2.0"
] | null | null | null | include/item.hpp | hunter-land/humble-user-interface | 2a6f9bf7f6c31e51061aa45fc1d0aa04e21b19e4 | [
"Apache-2.0"
] | null | null | null | include/item.hpp | hunter-land/humble-user-interface | 2a6f9bf7f6c31e51061aa45fc1d0aa04e21b19e4 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "./element.hpp"
#include "./itemHolder.hpp"
extern "C" {
#include <SDL2/SDL.h>
}
#include <vector>
namespace lui {
/**
* \brief A draggable item which can be placed inside itemHolders
*
* \note Item template type must match the itemHolder's template type for the item to ... | 26.836601 | 138 | 0.619338 | hunter-land |
3268d43a8df22768303d546e28afa48c87c0a62f | 1,221 | hpp | C++ | include/common/color_utils.hpp | riscygeek/AntSimulator | b35d1b0e0a3601ec326eb2839fb7551672d036af | [
"MIT"
] | null | null | null | include/common/color_utils.hpp | riscygeek/AntSimulator | b35d1b0e0a3601ec326eb2839fb7551672d036af | [
"MIT"
] | null | null | null | include/common/color_utils.hpp | riscygeek/AntSimulator | b35d1b0e0a3601ec326eb2839fb7551672d036af | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Graphics.hpp>
#include "common/math.hpp"
#include "common/number_generator.hpp"
struct ColorUtils
{
template<typename T>
static sf::Color createColor(T r, T g, T b)
{
return sf::Color{ std::min(uint8_t{255}, std::max(uint8_t{0}, to<uint8_t>(r))),
std::min(ui... | 30.525 | 99 | 0.581491 | riscygeek |
326a25b67e681e27ee9bc177f2a0f2babbb38cc9 | 4,041 | hpp | C++ | include/desola/profiling/ExpressionGraph.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | 2 | 2021-12-17T10:46:20.000Z | 2021-12-18T11:53:50.000Z | include/desola/profiling/ExpressionGraph.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | null | null | null | include/desola/profiling/ExpressionGraph.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************/
/* Copyright 2005-2006, Francis Russell */
/* */
/* Licensed under the Apache License, Version 2.0 (the License); */
/* y... | 29.49635 | 116 | 0.592923 | FrancisRussell |
326a8bfdcdc201c13317a91c2fbb7621c50878c7 | 5,309 | cpp | C++ | src/cvm/defaults.cpp | thomas-pendragon/dablang | f8e1e0835138b6dc6a675da231e176ca20b1347a | [
"MIT"
] | 2 | 2017-06-02T02:55:36.000Z | 2017-06-02T22:15:46.000Z | src/cvm/defaults.cpp | thomas-pendragon/dablang | f8e1e0835138b6dc6a675da231e176ca20b1347a | [
"MIT"
] | 1 | 2020-06-19T15:58:33.000Z | 2020-06-19T15:58:33.000Z | src/cvm/defaults.cpp | thomas-pendragon/dablang | f8e1e0835138b6dc6a675da231e176ca20b1347a | [
"MIT"
] | 1 | 2017-06-02T22:17:52.000Z | 2017-06-02T22:17:52.000Z | #include "cvm.h"
#ifndef DAB_PLATFORM_WINDOWS
#include <dlfcn.h>
#endif
#define STR2(s) #s
#define STR(s) STR2(s)
#ifdef __linux__
#define DAB_LIBC_NAME "libc.so.6" // LINUX
#else
#define DAB_LIBC_NAME "libc.dylib" // APPLE
#endif
DabValue DabVM::merge_arrays(const DabValue &arg0, const DabValue &arg1)
{
auto &... | 27.225641 | 98 | 0.531362 | thomas-pendragon |
326f8f201022daa2b16f257b0f344d04cfa2080d | 6,668 | cpp | C++ | Gui/DataView/DirectConditionGenerator.cpp | WenjieXu/ogs | 0cd1b72ec824833bf949a8bbce073c82158ee443 | [
"BSD-4-Clause"
] | 1 | 2021-11-21T17:29:38.000Z | 2021-11-21T17:29:38.000Z | Gui/DataView/DirectConditionGenerator.cpp | WenjieXu/ogs | 0cd1b72ec824833bf949a8bbce073c82158ee443 | [
"BSD-4-Clause"
] | null | null | null | Gui/DataView/DirectConditionGenerator.cpp | WenjieXu/ogs | 0cd1b72ec824833bf949a8bbce073c82158ee443 | [
"BSD-4-Clause"
] | null | null | null | /**
* \file
* \author Karsten Rink
* \date 2012-01-04
* \brief Implementation of the DirectConditionGenerator class.
*
* \copyright
* Copyright (c) 2013, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt o... | 34.194872 | 167 | 0.678464 | WenjieXu |
32732877e7abe53c30f32eda347d067269fe883d | 6,733 | cxx | C++ | STEER/ESD/AliESDMuonCluster.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | STEER/ESD/AliESDMuonCluster.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | STEER/ESD/AliESDMuonCluster.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are ... | 31.316279 | 97 | 0.65023 | AllaMaevskaya |
3277ee831ccf791ce03e8d6d2b7ade4965d08192 | 2,544 | cpp | C++ | VisualStudio2013/WinSPP/WinSPP/WinSPPFrm.cpp | ma-laforge/WinSPP | 7499a85d9872a2429c87aaa7d67806f2816c7407 | [
"MIT"
] | null | null | null | VisualStudio2013/WinSPP/WinSPP/WinSPPFrm.cpp | ma-laforge/WinSPP | 7499a85d9872a2429c87aaa7d67806f2816c7407 | [
"MIT"
] | null | null | null | VisualStudio2013/WinSPP/WinSPP/WinSPPFrm.cpp | ma-laforge/WinSPP | 7499a85d9872a2429c87aaa7d67806f2816c7407 | [
"MIT"
] | null | null | null | #include <windows.h>
#include "WinSPPFrm.h"
#include <msclr/marshal_cppstd.h>
namespace WinSPP {
//In-elegant refresh all function to update control state:
void WinSPPFrm::UpdateControlState() {
tbFileName->Enabled = rbFromFile->Checked;
} //UpdateControlState
void WinSPPFrm::UpdateMetafile(bool displayErrors) {
u... | 28.909091 | 94 | 0.693396 | ma-laforge |
32792a931f60d8ebaf5e45311ac7a032bfcb33cc | 776 | hpp | C++ | includes/Entity.hpp | LightCollective/OneLight | 523678cacdc027efe3d4afa5d2558ad85b739d7f | [
"MIT"
] | null | null | null | includes/Entity.hpp | LightCollective/OneLight | 523678cacdc027efe3d4afa5d2558ad85b739d7f | [
"MIT"
] | null | null | null | includes/Entity.hpp | LightCollective/OneLight | 523678cacdc027efe3d4afa5d2558ad85b739d7f | [
"MIT"
] | null | null | null | #ifndef ONELIGHT_ENTITY_H
#define ONELIGHT_ENTITY_H
#include "FluxSprite.hpp"
#include "FluxSpriteBatch.hpp"
class Entity
{
public:
Entity();
virtual ~Entity();
Flux::Vector2 getPosition();
virtual void setPosition(const Flux::Vector2 &position);
std::shared_ptr<Flux::Spri... | 21.555556 | 64 | 0.628866 | LightCollective |
327a33491b966234533663c3aa20ceefa3cf84c4 | 2,980 | cpp | C++ | markup/mainwindow.cpp | rlbisbe/markup | 03b8d706e9fc45586b54470bea9d324ab016020a | [
"MIT"
] | null | null | null | markup/mainwindow.cpp | rlbisbe/markup | 03b8d706e9fc45586b54470bea9d324ab016020a | [
"MIT"
] | null | null | null | markup/mainwindow.cpp | rlbisbe/markup | 03b8d706e9fc45586b54470bea9d324ab016020a | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "markdownparser.h"
#include "document.h"
#include "autosaveddocument.h"
#include "wordcounter.h"
#include <QFileDialog>
#include <QTextStream>
#include <QSettings>
#include <QShortcut>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, u... | 27.33945 | 105 | 0.692953 | rlbisbe |
3280832dbbd4ecaa3f1434e9f96c7f9d5e0917c1 | 7,720 | cpp | C++ | src/main.cpp | moonshadow565/fuckingmanifestdownloader | b362508c424567e76e74239bfed0c7fddfbbf17d | [
"MIT"
] | null | null | null | src/main.cpp | moonshadow565/fuckingmanifestdownloader | b362508c424567e76e74239bfed0c7fddfbbf17d | [
"MIT"
] | null | null | null | src/main.cpp | moonshadow565/fuckingmanifestdownloader | b362508c424567e76e74239bfed0c7fddfbbf17d | [
"MIT"
] | null | null | null | #include "manifest.hpp"
#include "file.hpp"
#include "error.hpp"
#include "cli.hpp"
#include "download.hpp"
#include <iostream>
#include <fstream>
#include <set>
using namespace rman;
struct Main {
CLI cli = {};
FileList manifest = {};
std::optional<FileList> upgrade = {};
std::unique_ptr<HttpClient> ... | 33.565217 | 117 | 0.479793 | moonshadow565 |
32845211cfd38ea90ce0f84eb9f9d322d94569b4 | 187 | hpp | C++ | projects/codility/niobium2019/include/Niobium.hpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | 2 | 2021-06-24T21:46:56.000Z | 2021-09-24T07:51:04.000Z | projects/codility/niobium2019/include/Niobium.hpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | null | null | null | projects/codility/niobium2019/include/Niobium.hpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
namespace Niobium {
// https://app.codility.com/programmers/task/flipping_matrix/
int solution(std::vector<std::vector<int>> &A);
} // namespace Niobium | 18.7 | 61 | 0.73262 | antaljanosbenjamin |
3289f377ad108943861e878e6b115b570172d5f8 | 5,022 | cpp | C++ | gui/shared/importers/image_importer.cpp | sadisutikku/engine_libs | b9d8aea6218e043162850c092fd32eb930120e15 | [
"MIT"
] | null | null | null | gui/shared/importers/image_importer.cpp | sadisutikku/engine_libs | b9d8aea6218e043162850c092fd32eb930120e15 | [
"MIT"
] | null | null | null | gui/shared/importers/image_importer.cpp | sadisutikku/engine_libs | b9d8aea6218e043162850c092fd32eb930120e15 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////
//! MIT License
//! Copyright (c) 2022 sadisutikku
//! Part of https://github.com/sadisutikku/engine_libs.git
//////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////... | 30.436364 | 126 | 0.686181 | sadisutikku |
3295b0730366a18035aa155b35d551cb60075ea1 | 1,962 | cpp | C++ | Problems/geeksforgeeks/first-repeating-element/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | Problems/geeksforgeeks/first-repeating-element/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | 1 | 2019-05-09T19:17:00.000Z | 2019-05-09T19:17:00.000Z | Problems/geeksforgeeks/first-repeating-element/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
using namespace std;
const int MAX_VAL = 1000100;
int countApp[MAX_VAL + 1];
int arr[MAX_VAL + 1];
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "rt", stdin);
#endif
int t;
cin >> t;
for (int i = 0; i < t; i++) {
map<int, int> positions;
... | 26.876712 | 96 | 0.453619 | grand87 |
3299c337d5c45106d83004e7bb91ae6c4f89d1e3 | 32,774 | cc | C++ | farmhash_golden_test.cc | dietmarkuehl/hashing-demo | 006f61c4221c2119c893fcfda8c505c08ed5b006 | [
"Apache-2.0"
] | 35 | 2015-03-26T03:38:41.000Z | 2022-01-03T04:32:53.000Z | farmhash_golden_test.cc | dietmarkuehl/hashing-demo | 006f61c4221c2119c893fcfda8c505c08ed5b006 | [
"Apache-2.0"
] | null | null | null | farmhash_golden_test.cc | dietmarkuehl/hashing-demo | 006f61c4221c2119c893fcfda8c505c08ed5b006 | [
"Apache-2.0"
] | 16 | 2015-03-26T02:53:23.000Z | 2021-07-12T12:31:07.000Z | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 26.052464 | 383 | 0.801947 | dietmarkuehl |
3299c5a5c960b8e0e3a203a2fd5acd556c37ff53 | 18,489 | cpp | C++ | src/configator.cpp | MickaelBlet/Configator | e5679106d9946885e88b18430562ea4a6b47dbd4 | [
"MIT"
] | null | null | null | src/configator.cpp | MickaelBlet/Configator | e5679106d9946885e88b18430562ea4a6b47dbd4 | [
"MIT"
] | null | null | null | src/configator.cpp | MickaelBlet/Configator | e5679106d9946885e88b18430562ea4a6b47dbd4 | [
"MIT"
] | 1 | 2020-07-14T02:26:16.000Z | 2020-07-14T02:26:16.000Z | /**
* configator.cpp
*
* Licensed under the MIT License <http://opensource.org/licenses/MIT>.
* Copyright (c) 2020 BLET Mickaël.
*
* 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 with... | 26.679654 | 112 | 0.467683 | MickaelBlet |
329fe9fec81dd232d8f5d189629999932344b660 | 12,190 | cpp | C++ | src/select/tcpsocket_impl.cpp | tempbottle/zsummerX | b5a6b306329d6877cb53c1f30b586a2363c7682a | [
"MIT"
] | 1 | 2021-07-14T01:42:21.000Z | 2021-07-14T01:42:21.000Z | src/select/tcpsocket_impl.cpp | tempbottle/zsummerX | b5a6b306329d6877cb53c1f30b586a2363c7682a | [
"MIT"
] | null | null | null | src/select/tcpsocket_impl.cpp | tempbottle/zsummerX | b5a6b306329d6877cb53c1f30b586a2363c7682a | [
"MIT"
] | 1 | 2021-07-14T01:42:25.000Z | 2021-07-14T01:42:25.000Z | /*
* zsummerX License
* -----------
*
* zsummerX is licensed under the terms of the MIT license reproduced below.
* This means that zsummerX is free software and can be used for both academic
* and commercial purposes at absolutely no cost.
*
*
* ============================================================... | 30.860759 | 151 | 0.579655 | tempbottle |
32a0a7fba84f4162d3de29e78fc6b8c5121fc1a1 | 5,967 | cpp | C++ | src/isodata/isodata.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | src/isodata/isodata.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | src/isodata/isodata.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | #include "tkdCmdParser.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkImage.h"
#include "itkTimeProbe.h"
#include "IsoDataImage.cpp"
/**
* ISODATA.
*/
class IsoData {
protected:
// Split function; return true if we should split...
bool split( IsoDataImage& img, double STDV, unsig... | 33.335196 | 149 | 0.64002 | wmotte |
32a2a7171e1f335a70241b41cb2874d2ec40de69 | 457 | hpp | C++ | v3/include/AsyncWatchResponse.hpp | chijinxina/etcd-cpp-api | 70946a5d4eff340a821096d247031d083fd0148e | [
"BSD-3-Clause"
] | null | null | null | v3/include/AsyncWatchResponse.hpp | chijinxina/etcd-cpp-api | 70946a5d4eff340a821096d247031d083fd0148e | [
"BSD-3-Clause"
] | null | null | null | v3/include/AsyncWatchResponse.hpp | chijinxina/etcd-cpp-api | 70946a5d4eff340a821096d247031d083fd0148e | [
"BSD-3-Clause"
] | 1 | 2021-07-13T07:19:37.000Z | 2021-07-13T07:19:37.000Z | #ifndef __ASYNC_WATCH_HPP__
#define __ASYNC_WATCH_HPP__
#include <grpc++/grpc++.h>
#include "proto/rpc.grpc.pb.h"
#include "proto/rpc.pb.h"
#include "v3/include/V3Response.hpp"
using etcdserverpb::WatchRequest;
using etcdserverpb::WatchResponse;
using etcdserverpb::KV;
namespace etcdv3
{
class AsyncWatchResponse ... | 17.576923 | 54 | 0.73523 | chijinxina |
32a41e70dacf34144ee21b788e81882f3e67b773 | 224 | cpp | C++ | Aaaah/main.cpp | KalawelaLo/Kattis | cbe2cc742f9902f5d325deb04fd39208774070c5 | [
"Unlicense"
] | null | null | null | Aaaah/main.cpp | KalawelaLo/Kattis | cbe2cc742f9902f5d325deb04fd39208774070c5 | [
"Unlicense"
] | null | null | null | Aaaah/main.cpp | KalawelaLo/Kattis | cbe2cc742f9902f5d325deb04fd39208774070c5 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
string pat, doc;
cin>> pat >> doc;
if(pat.size() >= doc.size() ){
cout << "go\n";}
else{
cout << "no\n";}
return 0;} | 20.363636 | 34 | 0.508929 | KalawelaLo |
32ab54505766855b05cb8df09bf8afb467aafed8 | 3,726 | cpp | C++ | ert/ertlibc/syscall.cpp | thomasten/edgelessrt | 2b42deefdaaa75dbc6568ff4f8152b6ae74862bf | [
"MIT"
] | null | null | null | ert/ertlibc/syscall.cpp | thomasten/edgelessrt | 2b42deefdaaa75dbc6568ff4f8152b6ae74862bf | [
"MIT"
] | null | null | null | ert/ertlibc/syscall.cpp | thomasten/edgelessrt | 2b42deefdaaa75dbc6568ff4f8152b6ae74862bf | [
"MIT"
] | null | null | null | // Copyright (c) Edgeless Systems GmbH.
// Licensed under the MIT License.
#include "syscall.h"
#include <openenclave/internal/malloc.h>
#include <openenclave/internal/trace.h>
#include <sys/syscall.h>
#include <cerrno>
#include <clocale>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <stdexcept>
... | 31.310924 | 80 | 0.567901 | thomasten |
32abb8fe555c12e7c93a94570e29a92f8d04d5ac | 30,229 | hh | C++ | sdl2/openblock/external/libSDL2pp/SDL2pp/Font.hh | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/openblock/external/libSDL2pp/SDL2pp/Font.hh | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/openblock/external/libSDL2pp/SDL2pp/Font.hh | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | /*
libSDL2pp - C++11 bindings/wrapper for SDL2
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted t... | 36.289316 | 117 | 0.553012 | pdpdds |
32ad881ee3d62285faa1035437facfee4bb8c9c5 | 4,859 | cpp | C++ | vislib/src/sys/Event.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | vislib/src/sys/Event.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | vislib/src/sys/Event.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* Event.cpp
*
* Copyright (C) 2006 - 2007 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "vislib/sys/Event.h"
#ifndef _WIN32
#include <climits>
#endif /* !_WIN32 */
#include "vislib/IllegalParamException.h"
#include "vislib/Trace.h"
#include "vislib/UnsupportedOperationException.h"
#... | 22.705607 | 120 | 0.626878 | xge |
32af2514e1ead7564365cb478f275cf7c2ea948a | 2,664 | hpp | C++ | src/FclEx.DataStructuresCpp/Iterator.hpp | huoshan12345/FxUtility.DataStructures | cdad625154407c381ec0b5d1003cc7eabc37e829 | [
"MIT"
] | 1 | 2017-04-30T21:12:55.000Z | 2017-04-30T21:12:55.000Z | src/FclEx.DataStructuresCpp/Iterator.hpp | huoshan12345/FxUtility.DataStructures | cdad625154407c381ec0b5d1003cc7eabc37e829 | [
"MIT"
] | null | null | null | src/FclEx.DataStructuresCpp/Iterator.hpp | huoshan12345/FxUtility.DataStructures | cdad625154407c381ec0b5d1003cc7eabc37e829 | [
"MIT"
] | 1 | 2018-10-04T23:54:26.000Z | 2018-10-04T23:54:26.000Z | #pragma once
#include <iterator>
namespace FclEx
{
namespace Node
{
using namespace std;
template <class Node, class IteratorType>
class Iterator : public iterator<forward_iterator_tag,
typename Node::value_type,
typename Node::difference_type,
typename Node::pointer,
typename Node::reference>
... | 23.368421 | 66 | 0.693318 | huoshan12345 |
32b8be4744f527e8ea9b3c385237a08e8bfb3967 | 1,140 | hpp | C++ | qtswarmtv/seasonepisodewidget.hpp | annejan/swarmtv | 847d82114d1ee2338d37be314a222e386849aad1 | [
"Unlicense"
] | 1 | 2019-07-10T10:33:23.000Z | 2019-07-10T10:33:23.000Z | qtswarmtv/seasonepisodewidget.hpp | annejan/swarmtv | 847d82114d1ee2338d37be314a222e386849aad1 | [
"Unlicense"
] | null | null | null | qtswarmtv/seasonepisodewidget.hpp | annejan/swarmtv | 847d82114d1ee2338d37be314a222e386849aad1 | [
"Unlicense"
] | null | null | null | #ifndef SEASONEPISODEWIDGET_HPP
#define SEASONEPISODEWIDGET_HPP
#include <QDialog>
extern "C" {
#include <tvdb.h>
}
#include <QTreeWidget>
#include <taskqueue.hpp>
class episodeInfoWidget;
namespace Ui {
class seasonEpisodeWidget;
}
class seasonEpisodeWidget : public QDialog
{
Q_OBJECT
public:
explicit... | 21.923077 | 73 | 0.735088 | annejan |
32c1d7608b90688b8218d44771897257de20408b | 950 | cpp | C++ | module-os/test/performance-monitor.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-os/test/performance-monitor.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-os/test/performance-monitor.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | #include <limits>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include "prof.h"
TEST_CASE("prof api test")
{
struct prof_pool_init_data init{0};
prof_pool_init(init);
auto pp = prof_pool_get_data();
REQUIRE(pp.size == 0);
prof_pool_deinit();
}
TEST_CASE("overflow")
{
struct prof_po... | 19 | 43 | 0.634737 | buk7456 |
32c3cfe9fde5934fbf1e7fe0fb4d14f8c78085aa | 595 | hpp | C++ | paper/config.hpp | williamstarkro/paper | 13266b83b3922fc146cba1eecedac5a9addf6f2a | [
"BSD-2-Clause"
] | null | null | null | paper/config.hpp | williamstarkro/paper | 13266b83b3922fc146cba1eecedac5a9addf6f2a | [
"BSD-2-Clause"
] | null | null | null | paper/config.hpp | williamstarkro/paper | 13266b83b3922fc146cba1eecedac5a9addf6f2a | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include <chrono>
#include <cstddef>
namespace paper
{
// Network variants with different genesis blocks and network parameters
enum class paper_networks
{
// Low work parameters, publicly known genesis key, test IP ports
paper_test_network,
// Normal work parameters, secret beta genesis key, beta IP ... | 28.333333 | 87 | 0.789916 | williamstarkro |
32c420a5625bb5fe7b614a2677917e7e88ea0cb8 | 1,504 | cpp | C++ | src/MetaAuthoringTool/VRCAT.Wrapper/MRigidMeshComponent.cpp | phs008/PrismSolution | ea2452ef98bdd18216f3947dd0cb5483e2e2a079 | [
"MIT"
] | null | null | null | src/MetaAuthoringTool/VRCAT.Wrapper/MRigidMeshComponent.cpp | phs008/PrismSolution | ea2452ef98bdd18216f3947dd0cb5483e2e2a079 | [
"MIT"
] | null | null | null | src/MetaAuthoringTool/VRCAT.Wrapper/MRigidMeshComponent.cpp | phs008/PrismSolution | ea2452ef98bdd18216f3947dd0cb5483e2e2a079 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "MRigidMeshComponent.h"
#include <Resource/ResourcePath.h>
namespace MVRWrapper
{
MRigidMeshComponent::MRigidMeshComponent()
:MContainerComponent(ComponentEnum::RigidMesh)
{
_pRigidMesh = this->GetNative();
this->setMesh();
}
MRigidMeshComponent::MRigidMeshComponent(Code3::Compone... | 32.695652 | 120 | 0.767952 | phs008 |
32ca60aa7761e1341b0036ffae7c4dcf4c6f845d | 1,224 | cpp | C++ | Engine/Source/Runtime/Renderer/Components/Buffers.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | Engine/Source/Runtime/Renderer/Components/Buffers.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | Engine/Source/Runtime/Renderer/Components/Buffers.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | #include "NullPCH.h"
#include "Buffers.h"
#include "Platform/OpenGL/OpenGLBuffers.h"
#include "Renderer/Components/RendererAPI.h"
IVertexBuffer* IVertexBuffer::Create(float* InVertices, uint32 InSize)
{
switch (IRendererAPI::GetAPI())
{
case IRendererAPI::Type_None: NE_CHECK_F(false, "None Renderer API is not impl... | 33.081081 | 111 | 0.764706 | 1992please |
32ce8492fa335e90ecf599e30210a90e42ff8f14 | 877 | cpp | C++ | src/TestInput.cpp | dublet/KARR | 4b14090b34dab4d8be4e28814cb4d58cd34639ac | [
"BSD-3-Clause"
] | null | null | null | src/TestInput.cpp | dublet/KARR | 4b14090b34dab4d8be4e28814cb4d58cd34639ac | [
"BSD-3-Clause"
] | null | null | null | src/TestInput.cpp | dublet/KARR | 4b14090b34dab4d8be4e28814cb4d58cd34639ac | [
"BSD-3-Clause"
] | null | null | null | #include "TestInput.h"
#include <thread>
#include <time.h>
#include "Status.h"
#include "CarDefinition.h"
using namespace KARR;
void generateTestData() {
Status &s = Status::instance();
struct timespec sleepTime;
sleepTime.tv_sec = 0;
sleepTime.tv_nsec = 20 * 1000 * 1000;
int rpmDirection = ... | 19.488889 | 52 | 0.651083 | dublet |
77f78d34dea4f79dffd4b2dbf25953ac52db750d | 7,085 | cpp | C++ | Source/ModuleTrails.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 10 | 2019-02-05T07:57:21.000Z | 2021-10-17T13:44:31.000Z | Source/ModuleTrails.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 178 | 2019-02-26T17:29:08.000Z | 2019-06-05T10:55:42.000Z | Source/ModuleTrails.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 2 | 2020-02-27T18:57:27.000Z | 2020-05-28T01:19:59.000Z | #include "ModuleTrails.h"
#include "ModuleTimeManager.h"
#include "ModuleInput.h"
#include "ModuleResourceManager.h"
#include "ModuleRenderer3D.h"
#include "ModuleInternalResHandler.h"
#include "ResourceMaterial.h"
#include "ResourceShaderObject.h"
#include "ResourceShaderProgram.h"
#include "ResourceMesh.h"
#includ... | 29.894515 | 302 | 0.692449 | JellyBitStudios |
77f9ee909641a70f1d118cd6b3981bf2d3afbb95 | 821 | cpp | C++ | src/main.cpp | Maou-Shimazu/Operation-Cpp | 17398c92b7e64bcabe0d597efc8b01cd724e692b | [
"MIT"
] | null | null | null | src/main.cpp | Maou-Shimazu/Operation-Cpp | 17398c92b7e64bcabe0d597efc8b01cd724e692b | [
"MIT"
] | null | null | null | src/main.cpp | Maou-Shimazu/Operation-Cpp | 17398c92b7e64bcabe0d597efc8b01cd724e692b | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <src/format.cc>
#include <fmt/core.h>
#include <parse_args.h>
#include "../include/prompts.hpp"
#include "loopTerminal.cpp"
#include "../include/argCheck.hpp"
using namespace arguments;
// todo: impliment directory check for program run in directory
void welcomeInfo(){... | 24.147059 | 128 | 0.677223 | Maou-Shimazu |
77faa89d81a4b36dab95fe24f37377da962077a4 | 297 | cpp | C++ | Porblems/bear_and_big_brother.cpp | ashish-ad/CPP-STL-Practice-and-Cp | ca8a112096ad96ed1abccddc9e99b1ead5cf522b | [
"Unlicense"
] | null | null | null | Porblems/bear_and_big_brother.cpp | ashish-ad/CPP-STL-Practice-and-Cp | ca8a112096ad96ed1abccddc9e99b1ead5cf522b | [
"Unlicense"
] | null | null | null | Porblems/bear_and_big_brother.cpp | ashish-ad/CPP-STL-Practice-and-Cp | ca8a112096ad96ed1abccddc9e99b1ead5cf522b | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int limak,bob;
cin>>limak>>bob;
int i=1;
while(1){
limak=limak*3;
bob=bob*2;
if (limak>bob){
cout<<i<<endl;
break;
}
else{
i++;
}
}
} | 14.85 | 26 | 0.40404 | ashish-ad |
77feeab069b3c47765e14808dc6d98b57875f0db | 4,277 | cpp | C++ | AtCoder/typical90/029 - Long Bricks/main.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | 1 | 2020-05-24T02:27:05.000Z | 2020-05-24T02:27:05.000Z | AtCoder/typical90/029 - Long Bricks/main.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | null | null | null | AtCoder/typical90/029 - Long Bricks/main.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | null | null | null | // g++ -std=c++14 -DDEV=1 main.cpp
#include <stdio.h>
#include <cassert>
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <map>
using std::cin;
using std::cout;
using std::endl;
using std::terminate;
using std::vector;
using std::max;
using std::sort;
using std::map;
using std::ma... | 19.619266 | 64 | 0.416647 | t-mochizuki |
77fef9ca7e9b463b12918ccca0581b7399ccd45d | 1,077 | hpp | C++ | camera/DumpProfile.hpp | flexibity-team/boost-tools | a6c67eacf7374136f9903680308334fc3408ba91 | [
"MIT"
] | null | null | null | camera/DumpProfile.hpp | flexibity-team/boost-tools | a6c67eacf7374136f9903680308334fc3408ba91 | [
"MIT"
] | null | null | null | camera/DumpProfile.hpp | flexibity-team/boost-tools | a6c67eacf7374136f9903680308334fc3408ba91 | [
"MIT"
] | 2 | 2019-12-26T13:54:29.000Z | 2020-10-31T10:19:13.000Z | #ifndef DUMBPROFILE_H_
#define DUMBPROFILE_H_
#include <sys/time.h>
#include <stdint.h>
#include <string.h>
#define DPROFILE dumb_profile dprf = dumb_profile(__FUNCTION__, __LINE__); dprf.start();
struct dumb_profile{
struct timeval start_;
struct timeval end_;
const char* fname_;
const uint32_t lnum_;
dumb_p... | 19.944444 | 119 | 0.679666 | flexibity-team |
ae033e4d44777869c7554d7e250a1ce42554f400 | 47,761 | cpp | C++ | source/D2Common/src/DataTbls/SequenceTbls.cpp | raumuongluoc/D2MOO | 169de1bd24151cda4c654ef0f8027896a14552ec | [
"MIT"
] | 1 | 2022-03-20T12:12:15.000Z | 2022-03-20T12:12:15.000Z | source/D2Common/src/DataTbls/SequenceTbls.cpp | raumuongluoc/D2MOO | 169de1bd24151cda4c654ef0f8027896a14552ec | [
"MIT"
] | null | null | null | source/D2Common/src/DataTbls/SequenceTbls.cpp | raumuongluoc/D2MOO | 169de1bd24151cda4c654ef0f8027896a14552ec | [
"MIT"
] | 1 | 2022-03-20T12:12:18.000Z | 2022-03-20T12:12:18.000Z | #include <D2DataTbls.h>
#include <DataTbls/SequenceTbls.h>
#include <D2BitManip.h>
#include <Units/Units.h>
#include <D2Skills.h>
#include <D2Composit.h>
//D2Common.0x6FDDE6A8
D2MonSeqTxt gPlayerSequenceHandToHand1[13] =
{
{ 0, PLRMODE_ATTACK1, 0, 0, MONSEQ_EVENT_NONE },
{ 0, PLRMODE_ATTACK1, 1, 0, MONSEQ_EVENT_NONE... | 35.615958 | 193 | 0.731748 | raumuongluoc |
ae06620b4145aff4fd7b6004b47eeef88f43cf26 | 1,656 | cpp | C++ | src/coherence/component/net/extend/protocol/cache/AbstractKeySetRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | src/coherence/component/net/extend/protocol/cache/AbstractKeySetRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | src/coherence/component/net/extend/protocol/cache/AbstractKeySetRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "private/coherence/component/net/extend/protocol/cache/AbstractKeySetRequest.hpp"
#include "coherence/util/ArrayList.hpp" // REVIEW
... | 25.476923 | 90 | 0.61715 | chpatel3 |
ae09b5ccdd4d276517f3989a7ce916f5813cb65a | 74 | cpp | C++ | src/ace/ACE_wrappers/ACEXML/common/Attributes.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | 8 | 2017-06-05T08:56:27.000Z | 2020-04-08T16:50:11.000Z | src/ace/ACE_wrappers/ACEXML/common/Attributes.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | null | null | null | src/ace/ACE_wrappers/ACEXML/common/Attributes.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | 17 | 2017-06-05T08:54:27.000Z | 2021-08-29T14:19:12.000Z | #include "Attributes.h"
ACEXML_Attributes::~ACEXML_Attributes (void)
{
}
| 12.333333 | 44 | 0.756757 | wfnex |
ae0bd9b41366661e5c83824971bbd8235099a335 | 1,027 | cpp | C++ | extractor/Utils/DBCReader.cpp | avennstrom/NovusCore-Tools | 03c2bd1ee8e6b865498b4d489ac962b0f168ad59 | [
"MIT"
] | null | null | null | extractor/Utils/DBCReader.cpp | avennstrom/NovusCore-Tools | 03c2bd1ee8e6b865498b4d489ac962b0f168ad59 | [
"MIT"
] | 2 | 2020-01-16T13:58:44.000Z | 2020-07-01T11:37:00.000Z | extractor/Utils/DBCReader.cpp | avennstrom/NovusCore-Tools | 03c2bd1ee8e6b865498b4d489ac962b0f168ad59 | [
"MIT"
] | 5 | 2020-01-16T13:56:44.000Z | 2021-12-20T22:16:08.000Z | #include "DBCReader.h"
/*
1 = Can't open file
2 = Invalid format
3 = Invalid data / string size read
*/
int DBCReader::Load(std::shared_ptr<Bytebuffer> buffer)
{
u32 header = 0;
buffer->GetU32(header);
// Check for WDBC header
if (header != NOVUSDBC_WDBC_TOKEN)
return 2;
try
{
... | 20.137255 | 58 | 0.6037 | avennstrom |
ae1126f4317e7224849ef4da6c39a7f628d6738e | 523 | cpp | C++ | exercises/6/Seminar_02 - Introduction to classes/structures_unions_alignment/unions.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 19 | 2020-02-21T16:46:50.000Z | 2022-01-26T19:59:49.000Z | exercises/6/Seminar_02 - Introduction to classes/structures_unions_alignment/unions.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 1 | 2020-03-14T08:09:45.000Z | 2020-03-14T08:09:45.000Z | exercises/6/Seminar_02 - Introduction to classes/structures_unions_alignment/unions.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 11 | 2020-02-23T12:29:58.000Z | 2021-04-11T08:30:12.000Z | #include <iostream>
//Source: https://www.youtube.com/watch?v=6uqU9Y578n4
struct Vector2 {
float x, y;
};
struct Vector4 {
union {
struct {
float x, y, z, w;
};
struct {
Vector2 a, b;
};
};
};
void printVector2(const Vector2& vector) {
std::cout << "( " << vector.x << ", " << vector.y << " )" <... | 14.527778 | 72 | 0.529637 | triffon |
ae1df20fd6c4d4f350682072ec4175a62b66a344 | 6,242 | cc | C++ | bwidgets/widgets/bwNumberSlider.cc | julianeisel/bWidgets | 35695df104f77b35992013a5602adf2723ab1022 | [
"MIT"
] | 72 | 2018-03-26T20:13:47.000Z | 2022-03-08T15:59:55.000Z | bwidgets/widgets/bwNumberSlider.cc | julianeisel/bWidgets | 35695df104f77b35992013a5602adf2723ab1022 | [
"MIT"
] | 12 | 2018-03-30T12:54:15.000Z | 2021-05-30T23:33:01.000Z | bwidgets/widgets/bwNumberSlider.cc | julianeisel/bWidgets | 35695df104f77b35992013a5602adf2723ab1022 | [
"MIT"
] | 10 | 2018-03-26T23:04:06.000Z | 2021-11-17T21:04:27.000Z | #include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <sstream>
#include "bwEvent.h"
#include "bwPainter.h"
#include "bwStyle.h"
#include "bwNumberSlider.h"
namespace bWidgets {
bwNumberSlider::bwNumberSlider(std::optional<unsigned int> width_hint,
... | 28.372727 | 97 | 0.716437 | julianeisel |
ae1f29f88c6f05e3560317369e6deaca5e2fb449 | 324 | cpp | C++ | Sirul_Retardat/Sirul_Retardat.cpp | EneRgYCZ/Problems | e8bf9aa4bba2b5ead25fc5ce482a36c861501f46 | [
"MIT"
] | null | null | null | Sirul_Retardat/Sirul_Retardat.cpp | EneRgYCZ/Problems | e8bf9aa4bba2b5ead25fc5ce482a36c861501f46 | [
"MIT"
] | null | null | null | Sirul_Retardat/Sirul_Retardat.cpp | EneRgYCZ/Problems | e8bf9aa4bba2b5ead25fc5ce482a36c861501f46 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main ()
{
int n, x, y, z, v[10001];
cin >> n >> x >> y >> z;
v[1] = x;
v[2] = y;
v[3] = z;
for (int i = 4; i <= n; ++i)
{
v[i] = v[i - 1] + v[i - 2] - v[i - 3];
}
for (int i = n; i >= 1; --i)
{
cout << v[i] << " ";
... | 17.052632 | 46 | 0.330247 | EneRgYCZ |
ae1fcacb9a1c8125da9eda8a38dbe2fb5d748bfa | 95,361 | cpp | C++ | v3d_main/neuron_annotator/gui/NaMainWindow.cpp | hanchuan/vaa3d_external | d6381572dec4079705ac5d3e39c9556b50472403 | [
"MIT"
] | null | null | null | v3d_main/neuron_annotator/gui/NaMainWindow.cpp | hanchuan/vaa3d_external | d6381572dec4079705ac5d3e39c9556b50472403 | [
"MIT"
] | null | null | null | v3d_main/neuron_annotator/gui/NaMainWindow.cpp | hanchuan/vaa3d_external | d6381572dec4079705ac5d3e39c9556b50472403 | [
"MIT"
] | null | null | null | // Fix windows compile problem with windows.h being included too late.
// I wish it wasn't included at all...
#ifdef _MSC_VER
#define NOMINMAX //added by PHC, 2010-05-20 to overcome VC min max macro
#include <windows.h>
#endif
#include <QDir>
#include <QFileInfo>
#include <QDebug>
#include <iostream>
#include <cmath>
... | 37.425824 | 208 | 0.672696 | hanchuan |
ae223da69d12a8042f518d725fe23972111e156a | 580 | cpp | C++ | contest/AOJ/0035.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AOJ/0035.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AOJ/0035.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "geometry/polygon.hpp"
#include "string.hpp"
int main() {
setBoolName("YES", "NO");
for (String line; line = in, !in.eof;) {
auto v = line.split(',').transform(cast<String, long double>());
Polygon polygon(4);
for (int i = 0; i < 4; ++i) {
polygon[i] = Point(v[2 * i], v[2 * i + 1]);
... | 27.619048 | 68 | 0.555172 | not522 |
ae264600552d13c8335eae879cf3250abfc1074d | 5,203 | cpp | C++ | ass2/Ass2_3.cpp | krishna-akula/OSLab | 09ea00eb9b346a2a51b39a0948d05b4f3b414342 | [
"MIT"
] | null | null | null | ass2/Ass2_3.cpp | krishna-akula/OSLab | 09ea00eb9b346a2a51b39a0948d05b4f3b414342 | [
"MIT"
] | null | null | null | ass2/Ass2_3.cpp | krishna-akula/OSLab | 09ea00eb9b346a2a51b39a0948d05b4f3b414342 | [
"MIT"
] | null | null | null | #include<unistd.h>
#include<stdlib.h>
#include<fcntl.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<sys/stat.h>
#include<string>
#include<cstring>
#include<sstream>
#include<vector>
#include<iostream>
using namespace std;
struct cmd_info{
int type;
string infilename,outfilename,filename;
... | 17.171617 | 106 | 0.55641 | krishna-akula |
ae26a8066b1380a0d36c6e3d5e87ca7977f0762f | 506 | cpp | C++ | 6.ExceptionHandling/i-Assess/HallBookingBO.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 26 | 2021-03-17T03:15:22.000Z | 2021-06-09T13:29:41.000Z | 6.ExceptionHandling/i-Assess/HallBookingBO.cpp | Servatom/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 6 | 2021-03-16T19:04:05.000Z | 2021-06-03T13:41:04.000Z | 6.ExceptionHandling/i-Assess/HallBookingBO.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 42 | 2021-03-17T03:16:22.000Z | 2021-06-14T21:11:20.000Z | #include<iostream>
#include<list>
#include"HallBooking.cpp"
#include<iterator>
using namespace std;
class HallBookingBO{
public:
bool validateHallBooking(list<HallBooking> lst,HallBooking hallObj){
try{
for(HallBooking h: lst){
if(h.getHall()==hallObj.getHall()&&h.getDateOfB... | 24.095238 | 101 | 0.551383 | Concept-Team |
ae2a6ab82e3b1a653467db1256731298173dee6a | 268 | cpp | C++ | LastHope Engine/Component.cpp | rohomedesrius/LastHopeEngine | 5a73a0a3cf00fbcd2fa48f0ec1ce2c9bc1057bc0 | [
"MIT"
] | 1 | 2018-10-03T14:01:40.000Z | 2018-10-03T14:01:40.000Z | LastHope Engine/Component.cpp | rohomedesrius/LastHopeEngine | 5a73a0a3cf00fbcd2fa48f0ec1ce2c9bc1057bc0 | [
"MIT"
] | null | null | null | LastHope Engine/Component.cpp | rohomedesrius/LastHopeEngine | 5a73a0a3cf00fbcd2fa48f0ec1ce2c9bc1057bc0 | [
"MIT"
] | null | null | null | #include "Component.h"
GameObject* Component::GetGameObject() const
{
return game_object;
}
bool Component::IsActive() const
{
return active;
}
void Component::SetActive(bool value)
{
active = value;
}
ComponentType Component::GetType() const
{
return type;
}
| 12.181818 | 44 | 0.727612 | rohomedesrius |
ae2c515406c9ae9c65d4a3b150e08c2c989fafc9 | 2,598 | hpp | C++ | include/multi_sync_replayer.hpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | 9 | 2021-09-04T15:14:57.000Z | 2022-03-29T04:34:13.000Z | include/multi_sync_replayer.hpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | null | null | null | include/multi_sync_replayer.hpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | 4 | 2021-09-29T11:32:54.000Z | 2022-03-06T05:24:33.000Z | #pragma once
#include <ros/ros.h>
#include <param.hpp>
#include <mission.hpp>
#include <obstacle_generator.hpp>
#include <visualization_msgs/MarkerArray.h>
#include <std_msgs/Float64.h>
#include <std_msgs/Float64MultiArray.h>
#include <util.hpp>
namespace DynamicPlanning {
class MultiSyncReplayer {
public:
... | 33.307692 | 87 | 0.711316 | dabinkim-LGOM |
ae2d3ee25a6ac1b5bde055317dabe97eabc70e44 | 1,764 | cpp | C++ | CF R405/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | CF R405/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | CF R405/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define forall(i,a,b) for(int i=a;i<b;i++)
#define ll long long int
#define llu long long unsigned
#define vll vector<ll>
#define vllu vector<llu>
#define sll set<ll>
#define sllu set<llu>
#define pb push_back
#define mll map<ll,ll>
#define mllu map<llu,llu>... | 19.173913 | 61 | 0.3322 | parthlathiya |
ae2d8775f8329e8e9c17bff4ec195a3d69b6d59f | 32,224 | cpp | C++ | DRE2008OS_plugins/DRE2008_OS_Callback.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | 1 | 2019-12-25T13:36:01.000Z | 2019-12-25T13:36:01.000Z | DRE2008OS_plugins/DRE2008_OS_Callback.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | null | null | null | DRE2008OS_plugins/DRE2008_OS_Callback.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | 1 | 2020-08-05T14:05:15.000Z | 2020-08-05T14:05:15.000Z | #include "DRE2008_OS_Callback.h"
#include <QDebug>
//int slave_num = 1;
//int16_t Normal_AD_Input[8] = { 0,0,0,0,0,0,0,0 };
char file[500]; //需要保存数据的文件
DRE2008_OS_Callback::DRE2008_OS_Callback(QObject *parent) : QObject(parent),Ethercat_Callback()
{
m_isOS_Reset = false;//超采样初始化
m_isOS_Run = fals... | 43.961801 | 172 | 0.543105 | GreatCong |
ae2d8c0a1f4465bf6b72f7b7cc39561f4ef0ad19 | 1,798 | hpp | C++ | include/np/ndarray/dynamic/NDArrayDynamicSortImpl.hpp | mgorshkov/np | 75c7adff38e7260371135839b547d5340f3ca367 | [
"MIT"
] | null | null | null | include/np/ndarray/dynamic/NDArrayDynamicSortImpl.hpp | mgorshkov/np | 75c7adff38e7260371135839b547d5340f3ca367 | [
"MIT"
] | null | null | null | include/np/ndarray/dynamic/NDArrayDynamicSortImpl.hpp | mgorshkov/np | 75c7adff38e7260371135839b547d5340f3ca367 | [
"MIT"
] | null | null | null | /*
C++ numpy-like template-based array implementation
Copyright (c) 2022 Mikhail Gorshkov (mikhail.gorshkov@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includi... | 36.693878 | 86 | 0.74861 | mgorshkov |
ae3120a1f2b602611be0945168db439e9cd8076f | 35 | cpp | C++ | NotifyServer/SQLThreadConPool.cpp | lijialong1234/TeachNotice | 27ec630d1a8e669bd30df406ea6618d8fbce8c3b | [
"MIT"
] | 2 | 2019-05-25T13:25:33.000Z | 2019-06-03T06:48:24.000Z | NotifyServer/SQLThreadConPool.cpp | lijialong1234/TeachNotice | 27ec630d1a8e669bd30df406ea6618d8fbce8c3b | [
"MIT"
] | null | null | null | NotifyServer/SQLThreadConPool.cpp | lijialong1234/TeachNotice | 27ec630d1a8e669bd30df406ea6618d8fbce8c3b | [
"MIT"
] | null | null | null | #include "SQLThreadConPool.h"
| 8.75 | 30 | 0.685714 | lijialong1234 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.