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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e81ac38a6304646e3ba6dc1bd8b765d262a2ef6 | 3,398 | cpp | C++ | YorozuyaGSLib/source/CTalkCrystalCombineManager.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/CTalkCrystalCombineManager.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/CTalkCrystalCombineManager.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <CTalkCrystalCombineManager.hpp>
START_ATF_NAMESPACE
CTalkCrystalCombineManager::CTalkCrystalCombineManager()
{
using org_ptr = void (WINAPIV*)(struct CTalkCrystalCombineManager*);
(org_ptr(0x1404320b0L))(this);
};
void CTalkCrystalCombineManager::ctor_CTalkCrystalCombineManag... | 51.484848 | 168 | 0.727487 | lemkova |
9e93d2ad96e9e73946d258314221f1f688a7f9f0 | 7,010 | cpp | C++ | main/enumMaximalSubstring_input_bwt.cpp | TNishimoto/esaxx | bac2734b71ff933bc019070ee0ec2d5c7e01fbd5 | [
"MIT"
] | null | null | null | main/enumMaximalSubstring_input_bwt.cpp | TNishimoto/esaxx | bac2734b71ff933bc019070ee0ec2d5c7e01fbd5 | [
"MIT"
] | null | null | null | main/enumMaximalSubstring_input_bwt.cpp | TNishimoto/esaxx | bac2734b71ff933bc019070ee0ec2d5c7e01fbd5 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <unordered_map>
#include <sdsl/suffix_arrays.hpp>
#include <sdsl/lcp_dac.hpp>
#include <sdsl/lcp_support_sada.hpp>
#include "stool/include/cmdline.h"
#include "stool/include/debug.hpp"
#include "../include/common.hpp"
#include "libdi... | 30.745614 | 134 | 0.642939 | TNishimoto |
9e9aa38afe767ee62d6dba062df975e31bf97303 | 405 | cpp | C++ | VisionSystem/src/RunVisionSystem.cpp | Jespjon/VisionSystemForAnAutonomousRailwayMaintenanceVehicle | d25895bcb42d730578aae583150be5783034d75c | [
"MIT"
] | 5 | 2021-05-28T14:24:26.000Z | 2021-11-08T13:14:02.000Z | VisionSystem/src/RunVisionSystem.cpp | Jespjon/VisionSystemForAnAutonomousRailwayMaintenanceVehicle | d25895bcb42d730578aae583150be5783034d75c | [
"MIT"
] | null | null | null | VisionSystem/src/RunVisionSystem.cpp | Jespjon/VisionSystemForAnAutonomousRailwayMaintenanceVehicle | d25895bcb42d730578aae583150be5783034d75c | [
"MIT"
] | 1 | 2021-07-04T03:39:51.000Z | 2021-07-04T03:39:51.000Z | // About
/*
* Run the Vision system as a stand alone program.
*/
#include <iostream>
#include <algorithm>
#include <chrono>
#include <vector>
#include <numeric>
#include <thread>
#include <atomic>
#include "VisionSystem.h"
int main(int argc, char** argv)
{
vision::SetupVision();
bool runLoop = true;
while (runLo... | 14.464286 | 49 | 0.683951 | Jespjon |
9ea0c9d5d7a55086438d78e811afdc17c148d643 | 5,629 | cpp | C++ | src/io/sps_io_bits.cpp | byrcoder/sps | 20c910f6f3a2784f7bbab316d8a4049076650286 | [
"MIT"
] | 8 | 2021-06-13T18:15:27.000Z | 2022-02-05T07:39:58.000Z | src/io/sps_io_bits.cpp | byrcoder/sps | 20c910f6f3a2784f7bbab316d8a4049076650286 | [
"MIT"
] | 4 | 2021-06-12T20:06:44.000Z | 2022-02-05T08:22:08.000Z | src/io/sps_io_bits.cpp | byrcoder/sps | 20c910f6f3a2784f7bbab316d8a4049076650286 | [
"MIT"
] | 1 | 2022-02-21T00:58:31.000Z | 2022-02-21T00:58:31.000Z | /*****************************************************************************
MIT License
Copyright (c) 2021 byrcoder
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, includin... | 25.355856 | 85 | 0.563866 | byrcoder |
9ea27637d1b945ec7281e18cb8a63729ef932310 | 4,616 | cpp | C++ | apps/novrt/win32/reg.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | apps/novrt/win32/reg.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | apps/novrt/win32/reg.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #if defined(_WIN32)
#include "reg.hpp"
#include "Windows.h"
#include <optional>
namespace novrt::win32 {
namespace {
[[noreturn]] auto errorExit(const char* msg) noexcept {
std::fprintf(stderr, "%s\n", msg);
std::fflush(stderr);
std::exit(EXIT_FAILURE);
}
auto accessFromMode(RegKeyAccessMode mode) noexcept ->... | 27.313609 | 96 | 0.663778 | BastianBlokland |
9eabe14554fffe1f4670b5c8b55e7fcb3a6b2fc4 | 1,658 | hpp | C++ | S3DTiled/include/S3DTiled/TileSet.hpp | tyanmahou/S3DTiled | 4f90ea7e30eed8973ebc92a72a77edfc00ba0f10 | [
"MIT"
] | null | null | null | S3DTiled/include/S3DTiled/TileSet.hpp | tyanmahou/S3DTiled | 4f90ea7e30eed8973ebc92a72a77edfc00ba0f10 | [
"MIT"
] | 1 | 2020-03-22T05:15:36.000Z | 2020-04-03T13:40:59.000Z | S3DTiled/include/S3DTiled/TileSet.hpp | tyanmahou/S3DTiled | 4f90ea7e30eed8973ebc92a72a77edfc00ba0f10 | [
"MIT"
] | 1 | 2020-09-16T06:32:16.000Z | 2020-09-16T06:32:16.000Z | #pragma once
#include <memory>
#include "Tile.hpp"
#include "Types.hpp"
namespace s3dTiled
{
class CTileSet;
/// <summary>
/// タイルセット
/// </summary>
class TileSet
{
public:
TileSet() = default;
TileSet(std::shared_ptr<CTileSet> tileSet);
/// <summary>
//... | 25.507692 | 99 | 0.547045 | tyanmahou |
9ebbcc2626e994bfa03a89d0fdc0c2c7695eccec | 5,459 | cpp | C++ | test/unit/src/fake_libpcp.cpp | pcolby/pcp-pmda-cpp | c4092372b95b361559caa2948a748e6a228062be | [
"BSL-1.0"
] | 11 | 2015-04-23T18:30:27.000Z | 2021-01-18T13:04:02.000Z | test/unit/src/fake_libpcp.cpp | pcolby/pcp-pmda-cpp | c4092372b95b361559caa2948a748e6a228062be | [
"BSL-1.0"
] | 8 | 2015-03-10T00:11:03.000Z | 2019-02-02T00:41:30.000Z | test/unit/src/fake_libpcp.cpp | pcolby/pcp-pmda-cpp | c4092372b95b361559caa2948a748e6a228062be | [
"BSL-1.0"
] | 6 | 2015-02-20T07:51:35.000Z | 2018-03-09T15:13:22.000Z | // Copyright Paul Colby 2013 - 2018.
// Copyright Red Hat 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "fake_libpcp.h"
// Boost headers that depend on boo... | 28.139175 | 88 | 0.667522 | pcolby |
9ec6df21e7221809a00e5793567ac0117676561d | 3,717 | hpp | C++ | src/src_c/Operators/BasicOperators/Pimpact_InterpolateS2VOp.hpp | huppd/PINTimpact | 766b2ef4d2fa9e6727965e48a3fba7b752074850 | [
"MIT"
] | null | null | null | src/src_c/Operators/BasicOperators/Pimpact_InterpolateS2VOp.hpp | huppd/PINTimpact | 766b2ef4d2fa9e6727965e48a3fba7b752074850 | [
"MIT"
] | null | null | null | src/src_c/Operators/BasicOperators/Pimpact_InterpolateS2VOp.hpp | huppd/PINTimpact | 766b2ef4d2fa9e6727965e48a3fba7b752074850 | [
"MIT"
] | null | null | null | /// Pimpact
/// \author huppd
/// \date 2018
#pragma once
#ifndef PIMPACT_INTERPOLATES2VDOP_HPP
#define PIMPACT_INTERPOLATES2VDOP_HPP
#include "Pimpact_extern_FDCoeff.hpp"
#include "Pimpact_ScalarField.hpp"
#include "Pimpact_Utils.hpp"
namespace Pimpact {
/// \ingroup BaseOperator
template<class ST>
class I... | 23.377358 | 87 | 0.563358 | huppd |
9ec7cca3943b4f3c7a501d7e631597adbc230184 | 5,171 | cpp | C++ | lib_xr_common_ui/src/main/cpp/ui/component/keyboard.cpp | pingxingyun/larkxr_native_android_app | 464fc5eecb011325b553adf82ef83c1659b05c20 | [
"Apache-2.0"
] | 4 | 2021-08-25T05:51:58.000Z | 2022-02-09T06:34:12.000Z | lib_xr_common_ui/src/main/cpp/ui/component/keyboard.cpp | pingxingyun/larkxr_native_android_app | 464fc5eecb011325b553adf82ef83c1659b05c20 | [
"Apache-2.0"
] | 1 | 2021-09-03T01:18:45.000Z | 2021-09-03T01:18:45.000Z | lib_xr_common_ui/src/main/cpp/ui/component/keyboard.cpp | pingxingyun/larkxr_native_android_app | 464fc5eecb011325b553adf82ef83c1659b05c20 | [
"Apache-2.0"
] | null | null | null | //
// Created by fcx@pingixngyun.com on 2019/12/13.
//
#include <log.h>
#include <utils.h>
#include "keyboard.h"
#include "input.h"
#define LOG_TAG "keyboard"
//
// number keys.
//
namespace {
const float KEY_GAP = 0.025;
const float FUNC_KEY_WIDTH = 0.65;
const float KEY_WIDTH = 0.28;
const float KE... | 27.073298 | 98 | 0.578805 | pingxingyun |
9ecda8bdb7d2571f91ee73ec536be25f1419cee1 | 5,650 | cpp | C++ | services/HistoryUI/HistoryUI.cpp | knowac/tizen-browser-30 | 0ea06a4cd6bdca3dc3da674dd8189bf528c166f8 | [
"Apache-2.0"
] | 1 | 2019-01-31T21:44:00.000Z | 2019-01-31T21:44:00.000Z | services/HistoryUI/HistoryUI.cpp | knowac/tizen-browser-1.6.4 | a37a3ea5b8c01d86bd3dac00d228800e5eed4619 | [
"Apache-2.0"
] | null | null | null | services/HistoryUI/HistoryUI.cpp | knowac/tizen-browser-1.6.4 | a37a3ea5b8c01d86bd3dac00d228800e5eed4619 | [
"Apache-2.0"
] | 1 | 2019-01-31T21:44:04.000Z | 2019-01-31T21:44:04.000Z | /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 29.427083 | 97 | 0.735044 | knowac |
19b5fc7978f779727104b703435736507b324dae | 1,559 | cpp | C++ | travelling.cpp | CaQtiml/Problem-Solved | ab258ba2f130cd474f931d457fd62dafd8df5cf0 | [
"MIT"
] | null | null | null | travelling.cpp | CaQtiml/Problem-Solved | ab258ba2f130cd474f931d457fd62dafd8df5cf0 | [
"MIT"
] | null | null | null | travelling.cpp | CaQtiml/Problem-Solved | ab258ba2f130cd474f931d457fd62dafd8df5cf0 | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
const int INF = 1e9+29;
#define ii pair<int,int>
#define iii pair<int,ii>
#define f first
#define s second
using namespace std;
int apsp[205][205] , mustpass[20] , dist[20][(int)1<<16];
int main()
{
for(int i=0;i<205;i++)
{
for(int j=0;j<205;j++)
{
if(i!=j) apsp[i][j]=INF... | 20.246753 | 73 | 0.513149 | CaQtiml |
19bf27eece571f9c517036b5c6f369767e847668 | 5,402 | cpp | C++ | MSLD/MSLD/MSLD_match/Image.cpp | bverhagen/SMSLD | 08382d4ac5d3eae9da55525d0e309e5c4c78081a | [
"BSD-4-Clause"
] | 17 | 2015-10-11T02:06:06.000Z | 2021-03-16T07:28:06.000Z | SMSLD/SMSLD/SMSLD/Image.cpp | bverhagen/SMSLD | 08382d4ac5d3eae9da55525d0e309e5c4c78081a | [
"BSD-4-Clause"
] | null | null | null | SMSLD/SMSLD/SMSLD/Image.cpp | bverhagen/SMSLD | 08382d4ac5d3eae9da55525d0e309e5c4c78081a | [
"BSD-4-Clause"
] | 15 | 2015-03-15T14:19:27.000Z | 2021-08-16T22:38:42.000Z | // Image.cpp -- Defination of the class Image.
#pragma once
#include "stdafx.h"
#include "Image.h"
Image::Image(void)
{
m_pixels = NULL;
}
Image::Image(int xDim, int yDim)
{
this->Allocate(xDim, yDim);
}
Image::Image(const Image &other)
{
this->Allocate(other.m_xDim, other.m_yDim);
for (int y=0; y<m_yDim; y+... | 19.292857 | 70 | 0.497593 | bverhagen |
19c3279e82a59d931ef8800bb8d9419eb992c414 | 3,254 | cpp | C++ | src/Providers/UNIXProviders/VideoHeadResolution/UNIX_VideoHeadResolution.cpp | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/VideoHeadResolution/UNIX_VideoHeadResolution.cpp | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/VideoHeadResolution/UNIX_VideoHeadResolution.cpp | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | 37.837209 | 77 | 0.743393 | brunolauze |
19c825afb02aff43c2cdf9ea00cf9d6b08988f33 | 1,327 | cpp | C++ | my_leetcode/_1178.cpp | Chalkydoge/toy_codes | 6112dfbcd192132be2fd5559b69ae5279691ed77 | [
"MIT"
] | 1 | 2020-09-20T11:40:54.000Z | 2020-09-20T11:40:54.000Z | my_leetcode/_1178.cpp | Chalkydoge/toy_codes | 6112dfbcd192132be2fd5559b69ae5279691ed77 | [
"MIT"
] | null | null | null | my_leetcode/_1178.cpp | Chalkydoge/toy_codes | 6112dfbcd192132be2fd5559b69ae5279691ed77 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> findNumOfValidWords(vector<string>& words, vector<string>& puzzles) {
unordered_map<int, int> word_mask;
for(auto& str: words){
int mask = 0;
for(auto& c: str){
int bias = c - 'a';
mask |= (1 << bias);
... | 27.645833 | 88 | 0.390354 | Chalkydoge |
19ceec13c7d12c8b5c78c3d90c5b595e84139165 | 796 | cpp | C++ | c++/leetcode/0142-Linked_List_Cycle_II-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | 1 | 2020-03-02T10:56:22.000Z | 2020-03-02T10:56:22.000Z | c++/leetcode/0142-Linked_List_Cycle_II-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | c++/leetcode/0142-Linked_List_Cycle_II-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | // 142 Linked List Cycle II
// https://leetcode.com/problems/linked-list-cycle-ii
// version: 1; create time: 2020-02-02 16:21:47;
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
... | 24.121212 | 65 | 0.517588 | levendlee |
19d2bf778d5b7aaf195b8d11183862e72c1d60f8 | 22 | cpp | C++ | tests/test.cpp | realjf/opengl | 54ca4657efa345c2510f2f609a2116072f92c8db | [
"Apache-2.0"
] | null | null | null | tests/test.cpp | realjf/opengl | 54ca4657efa345c2510f2f609a2116072f92c8db | [
"Apache-2.0"
] | null | null | null | tests/test.cpp | realjf/opengl | 54ca4657efa345c2510f2f609a2116072f92c8db | [
"Apache-2.0"
] | null | null | null |
TEST_CASE() {
} | 4.4 | 13 | 0.409091 | realjf |
19d4f8e879cd688404bd53081434549560bc5f2d | 2,053 | cpp | C++ | SFMLGameOfLife/SplashScreen.cpp | MatthewMcDade13/SFMLGameOfLife | fa020e3cc415d704f9dd43286aa12607d8b57cbe | [
"Zlib"
] | 1 | 2017-12-17T23:22:46.000Z | 2017-12-17T23:22:46.000Z | SFMLGameOfLife/SplashScreen.cpp | MatthewMcDade13/SFMLGameOfLife | fa020e3cc415d704f9dd43286aa12607d8b57cbe | [
"Zlib"
] | null | null | null | SFMLGameOfLife/SplashScreen.cpp | MatthewMcDade13/SFMLGameOfLife | fa020e3cc415d704f9dd43286aa12607d8b57cbe | [
"Zlib"
] | null | null | null | #include "stdafx.h"
#include "SplashScreen.h"
#include "StateManager.h"
#include "Context.h"
#include "GameState.h"
#include "PlayState.h"
#include "ToUnderlying.h"
#include "GetConsoleInput.h"
#include "GameSettings.h"
using namespace std;
SplashScreen::SplashScreen(StateManager* manager, GameSettings* settings)
: ... | 25.036585 | 103 | 0.726254 | MatthewMcDade13 |
19dc9b78c2842001f5b0fe9f9f3db132f4d3f7d5 | 14,405 | cpp | C++ | mcu_interface/src/mcu.cpp | MobileRoboticsSkoltech/smartdepthsync-ros-src | 7156c846ab89c35a2b30e2ca3d8562e5bd8e3669 | [
"Apache-2.0"
] | null | null | null | mcu_interface/src/mcu.cpp | MobileRoboticsSkoltech/smartdepthsync-ros-src | 7156c846ab89c35a2b30e2ca3d8562e5bd8e3669 | [
"Apache-2.0"
] | null | null | null | mcu_interface/src/mcu.cpp | MobileRoboticsSkoltech/smartdepthsync-ros-src | 7156c846ab89c35a2b30e2ca3d8562e5bd8e3669 | [
"Apache-2.0"
] | null | null | null | #include <ros/ros.h>
#include <sensor_msgs/Imu.h>
#include <sensor_msgs/Temperature.h>
#include <sensor_msgs/TimeReference.h>
#include <string>
#include <iostream>
#include <fstream>
#include <serial/serial.h>
#include <vector>
#include <sstream>
#include... | 35.134146 | 179 | 0.652135 | MobileRoboticsSkoltech |
19e3a92f5ca268248f56ffd344d5e38e2e7f7d40 | 2,683 | cpp | C++ | 数据结构/线段树/acwing_245.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | 3 | 2020-11-16T08:58:30.000Z | 2020-11-16T08:58:33.000Z | 数据结构/线段树/acwing_245.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | 数据结构/线段树/acwing_245.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
typedef vector<int> vi;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
mt19937 mrand(random_device{}());
const ll mod = 1000000007;
int rnd(int x) {... | 27.10101 | 144 | 0.48416 | tempure |
19ee41b410f9fbedf858d101cebcf4d58e37ec44 | 5,070 | cpp | C++ | IO/albaStorage.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | IO/albaStorage.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | IO/albaStorage.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaStorage
Authors: Marco Petrone m.petrone@cineca.it
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; w... | 32.088608 | 80 | 0.403945 | IOR-BIC |
19f0aa8d0fba1048124d5d47a1ec967bb95070fa | 1,382 | cpp | C++ | 337.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | 337.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | 337.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | //
// Created by pzz on 2022/3/10.
//
#include <iostream>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
TreeNode(int x, Tree... | 21.936508 | 90 | 0.549204 | pengzhezhe |
19fa84e8d0e5edc75f2ee6d100ffe22d697df3bb | 5,858 | cp | C++ | MacOS/Sources/Application/Server/Dialogs/CNewSearchDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | MacOS/Sources/Application/Server/Dialogs/CNewSearchDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | MacOS/Sources/Application/Server/Dialogs/CNewSearchDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. 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 re... | 24.92766 | 104 | 0.731137 | mulberry-mail |
19fc245d721b2f717c7da5bc06f9eeb9a4d23892 | 16,855 | cpp | C++ | src/serial_stream.cpp | erjiekai/USB_SerialCommunication | 8b7ccfd5146e47a3518575997011eaadb1e47a41 | [
"MIT"
] | null | null | null | src/serial_stream.cpp | erjiekai/USB_SerialCommunication | 8b7ccfd5146e47a3518575997011eaadb1e47a41 | [
"MIT"
] | null | null | null | src/serial_stream.cpp | erjiekai/USB_SerialCommunication | 8b7ccfd5146e47a3518575997011eaadb1e47a41 | [
"MIT"
] | null | null | null | #include "serial_stream.hpp"
USBStream::USBStream(bool use_overlapped)
{
#if defined(_WIN32) || defined(WIN32)
USBStreamHandle = INVALID_HANDLE_VALUE;
this->use_overlapped = use_overlapped;
memset(&dcb, 0, sizeof(dcb));
dcb.DCBlength = sizeof(dcb);
dcb.BaudRate = CBR_115200; //CBR_115200
dcb.Parity = NOPARI... | 25.384036 | 158 | 0.664076 | erjiekai |
c204366f563767f68d5df6009779417c168d5a62 | 587 | cpp | C++ | lib/user/EndPoint.cpp | centretown/servo-proxy | c99ace73bf49747cc3518dc6404e69332832f4ff | [
"MIT"
] | 1 | 2021-09-01T14:47:16.000Z | 2021-09-01T14:47:16.000Z | lib/user/EndPoint.cpp | centretown/servo-proxy | c99ace73bf49747cc3518dc6404e69332832f4ff | [
"MIT"
] | null | null | null | lib/user/EndPoint.cpp | centretown/servo-proxy | c99ace73bf49747cc3518dc6404e69332832f4ff | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Dave Marsh. See LICENSE.
#include "EndPoint.h"
bool EndPoint::process(UserEvent event)
{
if (event == USER_SELECT)
{
return false;
}
int16_t direction = (event == USER_PREVIOUS) ? -1 : 1;
int64_t now = millis();
int64_t diff = now - last;
last = now;
if (d... | 19.566667 | 58 | 0.574106 | centretown |
c209f2c27f18b79eeb21b5a7587756643b682ac4 | 23,146 | cpp | C++ | isis/tests/FunctionalTestsLrowac2isis.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/tests/FunctionalTestsLrowac2isis.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/tests/FunctionalTestsLrowac2isis.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | #include <QTemporaryDir>
#include "Fixtures.h"
#include "Pvl.h"
#include "PvlGroup.h"
#include "TestUtilities.h"
#include "Histogram.h"
#include "lrowac2isis.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
using namespace Isis;
static QString APP_XML = FileName("$ISISROOT/bin/xml/lrowac2isis.xml").expanded();... | 43.920304 | 98 | 0.716625 | kdl222 |
c20b2b38b6f5f269c596c6232a04d9a5ef3016f2 | 1,585 | cpp | C++ | src/cvalidationstate.cpp | hansendm/DigitalNote-2 | a9da4cf46ffc1ba7d5103787e25b89092f75c803 | [
"MIT"
] | null | null | null | src/cvalidationstate.cpp | hansendm/DigitalNote-2 | a9da4cf46ffc1ba7d5103787e25b89092f75c803 | [
"MIT"
] | null | null | null | src/cvalidationstate.cpp | hansendm/DigitalNote-2 | a9da4cf46ffc1ba7d5103787e25b89092f75c803 | [
"MIT"
] | null | null | null | #include "uint/uint256.h"
#include "ctransaction.h"
#include "main.h"
#include "cvalidationstate.h"
CValidationState::CValidationState() : mode(MODE_VALID), nDoS(0), chRejectCode(0), corruptionPossible(false)
{
}
bool CValidationState::DoS(int level, bool ret, unsigned char chRejectCodeIn, std::string strRejectRea... | 16.684211 | 127 | 0.742587 | hansendm |
c20c43ae1d44ada1f3023200a83f5e452cc052ba | 10,677 | cpp | C++ | modules/tracking/src/KeypointObjectRecognizerR2.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | modules/tracking/src/KeypointObjectRecognizerR2.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | modules/tracking/src/KeypointObjectRecognizerR2.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | /****************************************************************************
**
** Copyright (C) 2017 TU Wien, ACIN, Vision 4 Robotics (V4R) group
** Contact: v4r.acin.tuwien.ac.at
**
** This file is part of V4R
**
** V4R is distributed under dual licenses - GPLv3 or closed source.
**
** GNU General Public License Usa... | 31.219298 | 120 | 0.627142 | v4r-tuwien |
c2118cbfa474583e1ea794b68eaec30fac12e33b | 2,861 | cpp | C++ | platform/switch/source/objects/font/font.cpp | zanzo420/LovePotion | daf3dd043fb6a7630c9febd7f265219ba2c4ef98 | [
"MIT"
] | null | null | null | platform/switch/source/objects/font/font.cpp | zanzo420/LovePotion | daf3dd043fb6a7630c9febd7f265219ba2c4ef98 | [
"MIT"
] | null | null | null | platform/switch/source/objects/font/font.cpp | zanzo420/LovePotion | daf3dd043fb6a7630c9febd7f265219ba2c4ef98 | [
"MIT"
] | null | null | null | #include "common/runtime.h"
#include "modules/filesystem.h"
#include "common/drawable.h"
#include "objects/font/font.h"
#include "modules/graphics.h"
#include "modules/display.h"
Font::Font(const string & path, float size) : Drawable("Font")
{
float dpiScale = 1.0f;
this->size = floorf(size * dpiScale + 0.5f... | 24.878261 | 159 | 0.656414 | zanzo420 |
c212bf4f7200b6135d433b9e0cc25bce5d10c1af | 621 | cc | C++ | Exos/Serie04/poisson/poisson.cc | vkeller/math-454 | 0bf3a81214f094dbddec868d3d133986b31f4b01 | [
"BSD-2-Clause"
] | 1 | 2021-05-19T13:31:49.000Z | 2021-05-19T13:31:49.000Z | Exos/Serie04/poisson/poisson.cc | vkeller/math-454 | 0bf3a81214f094dbddec868d3d133986b31f4b01 | [
"BSD-2-Clause"
] | null | null | null | Exos/Serie04/poisson/poisson.cc | vkeller/math-454 | 0bf3a81214f094dbddec868d3d133986b31f4b01 | [
"BSD-2-Clause"
] | null | null | null | /* -------------------------------------------------------------------------- */
#include "simulation.hh"
/* -------------------------------------------------------------------------- */
#include <chrono>
#include <iostream>
#include <tuple>
/* -------------------------------------------------------------------------- ... | 21.413793 | 80 | 0.355878 | vkeller |
c21f62628c0deb87f8f08e070264e6b577a0fc7f | 693 | cc | C++ | src/setting_parser.cc | SEED264/SVCConverter | fe0bb48d5a2a6613ceb10df405ca5dd799570869 | [
"MIT"
] | 2 | 2020-08-24T02:35:28.000Z | 2020-09-02T15:45:02.000Z | src/setting_parser.cc | SEED264/SVCConverter | fe0bb48d5a2a6613ceb10df405ca5dd799570869 | [
"MIT"
] | null | null | null | src/setting_parser.cc | SEED264/SVCConverter | fe0bb48d5a2a6613ceb10df405ca5dd799570869 | [
"MIT"
] | 1 | 2021-11-25T16:38:10.000Z | 2021-11-25T16:38:10.000Z | #include "setting_parser.h"
#include <fstream>
#include <nlohmann/json.hpp>
using nlohmann::json;
auto setting_file_name = std::string("svc_converter_setting.json");
void ParseSetting() {
std::ifstream setting_file(setting_file_name);
if (!setting_file)
return;
json setting;
setting_file >> s... | 24.75 | 68 | 0.702742 | SEED264 |
c2293013e125166f2e21a6462f2655f3c928f3ea | 292 | hpp | C++ | source/houaud/include/hou/aud/aud_config.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/houaud/include/hou/aud/aud_config.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/houaud/include/hou/aud/aud_config.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#ifndef HOU_AUD_CONFIG_HPP
#define HOU_AUD_CONFIG_HPP
#include "hou/config.hpp"
#if defined(HOU_AUD_EXPORTS)
#define HOU_AUD_API HOU_EXPORT
#else
#define HOU_AUD_API HOU_IMPORT
#endif
#endif
| 17.176471 | 36 | 0.777397 | DavideCorradiDev |
ea4b63ae74fe2e14c93649396eba27dff6df8606 | 4,084 | cpp | C++ | src/ltb/gvs/display/local_scene.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | 1 | 2020-04-04T16:57:25.000Z | 2020-04-04T16:57:25.000Z | src/ltb/gvs/display/local_scene.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | null | null | null | src/ltb/gvs/display/local_scene.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | null | null | null | // ///////////////////////////////////////////////////////////////////////////////////////
// LTB Geometry Visualization Server
// Copyright (c) 2020 Logan Barnes - All Rights Reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation fil... | 35.513043 | 111 | 0.677277 | LoganBarnes |
ea4b747b3fddf75fefb933d9ca0347f33e86621a | 6,141 | cpp | C++ | src/gfp-labirinth-threaded.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | 1 | 2017-01-22T19:40:23.000Z | 2017-01-22T19:40:23.000Z | src/gfp-labirinth-threaded.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | null | null | null | src/gfp-labirinth-threaded.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2014 O01eg <o01eg@yandex.ru>
*
* This file is part of Genetic Function Programming.
*
* 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... | 25.5875 | 178 | 0.642729 | o01eg |
ea50acc7cbcf86f088312d60862793109389c5f5 | 987 | cpp | C++ | Question_algo_toolbox/week2_algorithmic_warmup/4_least_common_multiple/lcm.cpp | Godcreatebugs/Algorithm_Toolbox | 1dcfb09af7f806cf5d6835f244f8f6c2064396f8 | [
"Apache-2.0"
] | null | null | null | Question_algo_toolbox/week2_algorithmic_warmup/4_least_common_multiple/lcm.cpp | Godcreatebugs/Algorithm_Toolbox | 1dcfb09af7f806cf5d6835f244f8f6c2064396f8 | [
"Apache-2.0"
] | null | null | null | Question_algo_toolbox/week2_algorithmic_warmup/4_least_common_multiple/lcm.cpp | Godcreatebugs/Algorithm_Toolbox | 1dcfb09af7f806cf5d6835f244f8f6c2064396f8 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
long long lcm_naive(int a, int b) {
for (long l = 1; l <= (long long) a * b; ++l)
if (l % a == 0 && l % b == 0)
return l;
return (long long) a * b;
}
int GCD_Fast_Euclidian(int a, int b){
int big = (a>b) ? a:b;
int small = (a<b) ? a:b;
if (small ==0) return big;
if(big%... | 19.74 | 47 | 0.542047 | Godcreatebugs |
ea5134134b8c18eae78062cbb951c4f5dc713eb7 | 1,395 | cpp | C++ | Material.cpp | saint-justin/DX11Starter | 5a262593a137297f4462286ab6d4ce4d490bc322 | [
"MIT"
] | null | null | null | Material.cpp | saint-justin/DX11Starter | 5a262593a137297f4462286ab6d4ce4d490bc322 | [
"MIT"
] | null | null | null | Material.cpp | saint-justin/DX11Starter | 5a262593a137297f4462286ab6d4ce4d490bc322 | [
"MIT"
] | null | null | null | #include "Material.h"
Material::Material(DirectX::XMFLOAT4 _colorTint,
SimplePixelShader* _pixelShader,
SimpleVertexShader* _vertexShader,
Microsoft::WRL::ComPtr<ID3D11ShaderResourceView> _textureSRV,
int _renderPriority)
{
colorTint = _colorTint;
pixelShader = _pixelShader;
vertexShader = _vertexShader;
al... | 35.769231 | 99 | 0.801434 | saint-justin |
ea5141c2cf8ea9a5967d3ccf3640787999a398eb | 264 | inl | C++ | FFTL/Code/Source/Core/Math/Vector2.inl | CoreyShay/FFTL | 1758020715e5b5b3c085c6429cf866b1e21c290a | [
"Unlicense"
] | 2 | 2017-06-02T11:13:31.000Z | 2020-05-28T18:40:37.000Z | FFTL/Code/Source/Core/Math/Vector2.inl | CoreyShay/FFTL | 1758020715e5b5b3c085c6429cf866b1e21c290a | [
"Unlicense"
] | null | null | null | FFTL/Code/Source/Core/Math/Vector2.inl | CoreyShay/FFTL | 1758020715e5b5b3c085c6429cf866b1e21c290a | [
"Unlicense"
] | null | null | null | #ifndef __VECTOR2_INL__
#define __VECTOR2_INL__
#else
#error "Already included"
#endif // !__VECTOR2_INL__
namespace FFTL
{
FFTL_FORCEINLINE vec2 Cross(const vec2& a)
{
vec2 r = Permute<1, 0, 1, 0>(a);
return r.Negate<1, 0, 1, 0>();
}
} // namespace FFTL
| 12.571429 | 42 | 0.685606 | CoreyShay |
ea5750c908e8bdab282808ba4eac5d34dc26eeed | 2,037 | cpp | C++ | noteset.cpp | kallikak/Sharp | 4bb6fcc44b7a62f4e743ddd17d463acdc03556d1 | [
"MIT"
] | null | null | null | noteset.cpp | kallikak/Sharp | 4bb6fcc44b7a62f4e743ddd17d463acdc03556d1 | [
"MIT"
] | null | null | null | noteset.cpp | kallikak/Sharp | 4bb6fcc44b7a62f4e743ddd17d463acdc03556d1 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include <Arduino.h>
#include "Sharp.h"
#include "noteset.h"
noteset::noteset(int n):size(n), count(0), heldcount(0)
{
notes = new noteinfo[n];
}
noteset::~noteset()
{
if (notes)
delete notes;
}
void noteset::addnote(noteinfo note)
{
if (count == size)
return; //... | 18.026549 | 67 | 0.59352 | kallikak |
ea5c38939e8b5af94ed0477854d6b04cf26d5413 | 560 | cpp | C++ | c++/leetcode/0014-Longest_Common_Prefix-E.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | 1 | 2020-03-02T10:56:22.000Z | 2020-03-02T10:56:22.000Z | c++/leetcode/0014-Longest_Common_Prefix-E.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | c++/leetcode/0014-Longest_Common_Prefix-E.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | // 14 Longest Common Prefix
// https://leetcode.com/problems/longest-common-prefix
// version: 1; create time: 2020-02-01 23:50:44;
class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
if (strs.empty()) return "";
int size = 0;
while (true) {
for (const a... | 24.347826 | 59 | 0.516071 | levendlee |
ea5eecaad499d4e02ff25827f0f518cd78898978 | 853 | cpp | C++ | plugins/opengl/src/egl/get_config_attrib.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/src/egl/get_config_attrib.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/src/egl/get_config_attrib.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 <sge/opengl/egl/get_config_attrib.hpp>
#include <sge/renderer/exception.hpp>
#include <fcp... | 31.592593 | 84 | 0.725674 | cpreh |
ea601cc29b9d49255e47d49206b9fb0d2dba51e4 | 1,525 | cpp | C++ | source/Ch11/drill/test_output.cpp | PatricheloM/UDProg-Introduction | 82b5d55184aa992c19d7ebcf4a7cb00de27ba0eb | [
"CC0-1.0"
] | null | null | null | source/Ch11/drill/test_output.cpp | PatricheloM/UDProg-Introduction | 82b5d55184aa992c19d7ebcf4a7cb00de27ba0eb | [
"CC0-1.0"
] | null | null | null | source/Ch11/drill/test_output.cpp | PatricheloM/UDProg-Introduction | 82b5d55184aa992c19d7ebcf4a7cb00de27ba0eb | [
"CC0-1.0"
] | null | null | null | #include "../../std_lib_facilities.h"
int main()
{
int birth_year = 2001;
cout << "Decimal:\t" << birth_year << endl;
cout << "Hexadecimal:\t" << hex << birth_year << endl;
cout << "Octal:\t\t" << oct << birth_year << endl;
cout << endl << "Fixed:\t\t" << dec << birth_year << endl << endl;
cout << showbase;
c... | 33.152174 | 85 | 0.436066 | PatricheloM |
ea63705b384a3a51aaf8ad8e12aa0bd80cfa0b94 | 756 | cpp | C++ | Session2/RBI.cpp | SubhamChoudhury/E-Lab-Object-Oriented-Programming | b94b6c25bc41a9d11d06e2cefeba7be7d583b335 | [
"MIT"
] | 2 | 2020-09-09T09:27:45.000Z | 2021-05-11T17:59:35.000Z | Session2/RBI.cpp | SubhamChoudhury/E-Lab-Object-Oriented-Programming | b94b6c25bc41a9d11d06e2cefeba7be7d583b335 | [
"MIT"
] | 1 | 2020-09-16T20:34:36.000Z | 2020-09-16T20:38:37.000Z | Session2/RBI.cpp | SubhamChoudhury/E-Lab-Object-Oriented-Programming | b94b6c25bc41a9d11d06e2cefeba7be7d583b335 | [
"MIT"
] | 15 | 2019-08-01T03:49:25.000Z | 2021-10-07T06:08:22.000Z | #include <iostream>
#include <string.h>
using namespace std;
class Bank
{
char name[40];
char accounttype[5];
int acc;
int balance;
public:
void initial()
{
cin >> name;
cin >> acc;
cin >> accounttype;
cin >> balance;
}
void deposit()
{
int x;
cin >> x;
balance += x;
}... | 14.264151 | 44 | 0.518519 | SubhamChoudhury |
ea66a224c88e6dc6877a56e8717248eef211bd75 | 2,396 | cpp | C++ | codeforces/F - Yet Another Segments Subset/Time limit exceeded on test 24.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/F - Yet Another Segments Subset/Time limit exceeded on test 24.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/F - Yet Another Segments Subset/Time limit exceeded on test 24.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Aug/16/2020 12:51
* solution_verdict: Time limit exceeded on test 24 language: GNU C++14
* run... | 28.86747 | 111 | 0.493322 | kzvd4729 |
ea6aabaa612dffd3bdcfc9130c9c1b54461d3c85 | 165 | cpp | C++ | docs/mfc/codesnippet/CPP/cbitmapbutton-class_2.cpp | Youssef1313/cpp-docs | 1a6fe60114c7957f9acc059f05f07119d3495f69 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-05-13T03:56:15.000Z | 2020-05-13T03:56:15.000Z | docs/mfc/codesnippet/CPP/cbitmapbutton-class_2.cpp | Youssef1313/cpp-docs | 1a6fe60114c7957f9acc059f05f07119d3495f69 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/mfc/codesnippet/CPP/cbitmapbutton-class_2.cpp | Youssef1313/cpp-docs | 1a6fe60114c7957f9acc059f05f07119d3495f69 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-12-21T18:29:23.000Z | 2021-12-21T18:29:23.000Z | // Declare a bitmap button object on the stack.
CBitmapButton myButton;
// Declare a bitmap button object on the heap.
CBitmapButton* pmyButton = new CBitmapButton; | 33 | 47 | 0.787879 | Youssef1313 |
ea6b56e1c70444bb589e60104f30f813e2d5c891 | 544 | cpp | C++ | C++/13_polymorphism/main.cpp | de-souza/embedded-cpp-training | 370225ea95e5b61f52203761c01a8daaa0909fc0 | [
"Apache-2.0"
] | null | null | null | C++/13_polymorphism/main.cpp | de-souza/embedded-cpp-training | 370225ea95e5b61f52203761c01a8daaa0909fc0 | [
"Apache-2.0"
] | null | null | null | C++/13_polymorphism/main.cpp | de-souza/embedded-cpp-training | 370225ea95e5b61f52203761c01a8daaa0909fc0 | [
"Apache-2.0"
] | null | null | null | /* How to implement polymorphism using virtual attributes. */
#include "parent.h"
#include "child.h"
#include <memory>
int main()
{
std::unique_ptr<Parent> pParent = std::make_unique<Parent>();
std::unique_ptr<Parent> pChild = std::make_unique<Child>();
pParent->RegularDisplay(); // Print "I am the parent... | 36.266667 | 69 | 0.665441 | de-souza |
ea7911f5a54c304ce8bb7e381014e344bf07b137 | 3,782 | cpp | C++ | Ant.cpp | JacobLCarter/Doodlebugs | 3dba972079cf2e09314b61dd2182d66450300368 | [
"MIT"
] | null | null | null | Ant.cpp | JacobLCarter/Doodlebugs | 3dba972079cf2e09314b61dd2182d66450300368 | [
"MIT"
] | null | null | null | Ant.cpp | JacobLCarter/Doodlebugs | 3dba972079cf2e09314b61dd2182d66450300368 | [
"MIT"
] | null | null | null | #include "Ant.hpp"
#include <stdlib.h>
Ant::Ant()
{
}
Ant::Ant(int row, int col) {
setCritType('O');
setRowPosition(row);
setColPosition(col);
setCritAge(0);
setJustMoved(false);
}
Ant::~Ant()
{
}
void Ant::critMove(Critter*** boardPtr, int rowEdge, int colEdge) {
int direction... | 37.078431 | 133 | 0.615547 | JacobLCarter |
ea7cb2db275bd977a05b8ba08cef0cc9f1d16a59 | 879 | cpp | C++ | sources/Renderer/Vulkan/Texture/VKColorBuffer.cpp | beldenfox/LLGL | 3a54125ebfa79bb06fccf8c413d308ff22186b52 | [
"BSD-3-Clause"
] | 1,403 | 2016-09-28T21:48:07.000Z | 2022-03-31T23:58:57.000Z | sources/Renderer/Vulkan/Texture/VKColorBuffer.cpp | beldenfox/LLGL | 3a54125ebfa79bb06fccf8c413d308ff22186b52 | [
"BSD-3-Clause"
] | 70 | 2016-10-13T20:15:58.000Z | 2022-01-12T23:51:12.000Z | sources/Renderer/Vulkan/Texture/VKColorBuffer.cpp | beldenfox/LLGL | 3a54125ebfa79bb06fccf8c413d308ff22186b52 | [
"BSD-3-Clause"
] | 122 | 2016-10-23T15:33:44.000Z | 2022-03-07T07:41:23.000Z | /*
* VKColorBuffer.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "VKColorBuffer.h"
namespace LLGL
{
VKColorBuffer::VKColorBuffer(const VKPtr<VkDevice>& device) :
VKRenderBuffer { device }
{
}
void VKCo... | 18.702128 | 86 | 0.599545 | beldenfox |
ea7e79fac9cd1fb750f82664460d5317187d26be | 12,437 | cc | C++ | evaluator.cc | dchromejko/cuckoo-index | fb1f75275f9633c5169c2fc32ab3041acc9147e4 | [
"Apache-2.0"
] | 108 | 2020-04-14T08:37:15.000Z | 2022-03-13T13:17:11.000Z | evaluator.cc | dchromejko/cuckoo-index | fb1f75275f9633c5169c2fc32ab3041acc9147e4 | [
"Apache-2.0"
] | 4 | 2020-04-15T03:03:30.000Z | 2021-11-04T16:52:59.000Z | evaluator.cc | dchromejko/cuckoo-index | fb1f75275f9633c5169c2fc32ab3041acc9147e4 | [
"Apache-2.0"
] | 17 | 2020-04-15T02:57:14.000Z | 2021-10-22T00:38:10.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 42.016892 | 80 | 0.646619 | dchromejko |
ea8192ae4d57a6199519d312335349651bbc567c | 2,136 | cpp | C++ | poj/3624/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | poj/3624/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | poj/3624/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | //
// main.cpp
// 3624
// 动态规划 赤裸的01背包问题。 这道题由@POJ 1014引出。
// 第一次学写01背包,开始各种问题,说明自己裸写代码的能力还很弱。写完了之后MLE,因为用了2维数组,浪费了空间。
// 改进后,使用一个1维数组。过了。
// Created by Nimitz_007 on 16/8/23.
// Copyright © 2016年 Fujian Ruijie Networks Co., Ltd. All rights reserved.
//
#include <iostream>
#include <algorithm>
//#include "other... | 25.129412 | 75 | 0.390918 | nimitz871016 |
ea8dbc1259b52e94cdd08b140cc627c44de7cc86 | 1,346 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/81395.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/81395.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetn/char/81395.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // Copyright (C) 2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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, or (at your option)... | 28.638298 | 74 | 0.684993 | best08618 |
ea98742d6979f114972e44d6c04b718e4c232cdb | 3,722 | cpp | C++ | core/src/ShaderProgramBuilder.cpp | BlurryRoots/hannelore | 28b54553ed3b7be6e1e9e29efe6d1d0473f19bf6 | [
"BSD-2-Clause"
] | 2 | 2015-03-30T15:17:07.000Z | 2016-07-31T04:57:23.000Z | core/src/ShaderProgramBuilder.cpp | BlurryRoots/hannelore | 28b54553ed3b7be6e1e9e29efe6d1d0473f19bf6 | [
"BSD-2-Clause"
] | 5 | 2016-06-08T20:39:16.000Z | 2016-06-08T20:46:42.000Z | core/src/ShaderProgramBuilder.cpp | BlurryRoots/hannelore | 28b54553ed3b7be6e1e9e29efe6d1d0473f19bf6 | [
"BSD-2-Clause"
] | 1 | 2020-06-08T08:07:53.000Z | 2020-06-08T08:07:53.000Z | #include <ShaderProgramBuilder.h>
ShaderProgramBuilder&
ShaderProgramBuilder::add_shader (VertexShader vs) {
m_has_vert = true;
glAttachShader (this->m_program.m_handle, vs.get_handle ());
return *this;
}
ShaderProgramBuilder&
ShaderProgramBuilder::add_shader (FragmentShader fs) {
m_has_frag = true;
glAttachSha... | 22.023669 | 81 | 0.720312 | BlurryRoots |
eaa6e3b83225a5a61b1f8fa396f9224ef4e0cf23 | 837 | cpp | C++ | ftpserver/src/Logger.cpp | aminst/ftp-server | ca019e21b14cdf41346be3328640064b865b136f | [
"MIT"
] | 1 | 2021-04-09T14:32:51.000Z | 2021-04-09T14:32:51.000Z | ftpserver/src/Logger.cpp | aminst/ftp-server | ca019e21b14cdf41346be3328640064b865b136f | [
"MIT"
] | null | null | null | ftpserver/src/Logger.cpp | aminst/ftp-server | ca019e21b14cdf41346be3328640064b865b136f | [
"MIT"
] | 1 | 2021-04-09T14:32:53.000Z | 2021-04-09T14:32:53.000Z | #include "Logger.hpp"
using namespace std;
Logger::Logger()
{
log_stream.open("log.txt", std::ios::app);
}
string Logger::write_current_time()
{
auto now = chrono::system_clock::now();
time_t now_time = chrono::system_clock::to_time_t(now);
string formatted_time = "[";
formatted_time.append(ctime... | 26.15625 | 107 | 0.681004 | aminst |
eaa94495565d77d9e060a5a1c320d717bd1d0ae3 | 9,684 | cc | C++ | misc/refinement.cc | vlarsson/radialpose | e620fc208f573820ade6a6fe321731d0f3eb082d | [
"BSD-3-Clause"
] | 34 | 2019-10-29T02:48:33.000Z | 2022-03-27T20:28:29.000Z | misc/refinement.cc | vlarsson/radialpose | e620fc208f573820ade6a6fe321731d0f3eb082d | [
"BSD-3-Clause"
] | 1 | 2021-05-31T16:16:04.000Z | 2021-05-31T19:39:41.000Z | misc/refinement.cc | vlarsson/radialpose | e620fc208f573820ade6a6fe321731d0f3eb082d | [
"BSD-3-Clause"
] | 10 | 2019-11-04T21:38:10.000Z | 2022-03-27T20:41:11.000Z | #include "refinement.h"
using namespace Eigen;
using namespace radialpose;
static const double SMALL_NUMBER = 1e-8;
static const double TOL_CONVERGENCE = 1e-10;
static const double INITIAL_LM_DAMP = 1e-6;
static const int MAX_ITER = 10;
/*
TODO: add check that cost decreases in LM
TODO: move radial refinement from... | 26.459016 | 177 | 0.525713 | vlarsson |
eaa9d1bbaa5b74c57793394f105212b3deee0c91 | 2,950 | cpp | C++ | DIP-src/labeledslider.cpp | miRoox/HIT-DigitalImageProcessing-Postgraduate | fb4c4303b163351640bac7b2fc0319287bea82e0 | [
"Unlicense"
] | 2 | 2020-01-01T02:58:43.000Z | 2021-04-14T08:09:22.000Z | DIP-src/labeledslider.cpp | miRoox/HIT-DigitalImageProcessing-Postgraduate | fb4c4303b163351640bac7b2fc0319287bea82e0 | [
"Unlicense"
] | 3 | 2019-12-03T09:01:43.000Z | 2019-12-27T12:49:03.000Z | DIP-src/labeledslider.cpp | miRoox/HIT-DigitalImageProcessing-Postgraduate | fb4c4303b163351640bac7b2fc0319287bea82e0 | [
"Unlicense"
] | null | null | null | #include "labeledslider.h"
#include <cmath>
#include <QSlider>
#include <QDoubleSpinBox>
#include <QLabel>
#include <QHBoxLayout>
LabeledSlider::LabeledSlider(QWidget *parent)
: QWidget(parent), slider(new QSlider), spinbox(new QDoubleSpinBox)
{
auto layout = new QHBoxLayout;
layout->addWidget(slider);
... | 24.583333 | 86 | 0.667458 | miRoox |
eaae1744ea63ca4c4434c9e433712572555775f5 | 6,055 | cpp | C++ | FBI.cpp | Christof-Sigel/TA_SDL | 72638ba1601300783628a5dc09bb547b703a39fe | [
"MIT"
] | null | null | null | FBI.cpp | Christof-Sigel/TA_SDL | 72638ba1601300783628a5dc09bb547b703a39fe | [
"MIT"
] | null | null | null | FBI.cpp | Christof-Sigel/TA_SDL | 72638ba1601300783628a5dc09bb547b703a39fe | [
"MIT"
] | null | null | null | int UnitDetails::GetInt(const char * Name)
{
char * Value=GetString(Name);
if(Value)
return atoi(Value);
return 0;
}
float UnitDetails::GetFloat(const char * Name)
{
char * Value= GetString(Name);
if(Value)
return (float)atof(Value);
return 0;
}
char * UnitDetails::GetString(const char * Nam... | 36.257485 | 100 | 0.698266 | Christof-Sigel |
eabace5fbc5d41322be431257aa3c521df09fc2c | 400 | cpp | C++ | c++11/understanding-cpp11/chapter3/3-5-2.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter3/3-5-2.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter3/3-5-2.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | #include <vector>
#include <string>
using namespace std;
enum Gender {boy, girl};
class People {
public:
People(initializer_list<pair<string, Gender>> l) { // initializer_list的构造函数
auto i = l.begin();
for (;i != l.end(); ++i)
data.push_back(*i);
}
private:
vector<pair<string, ... | 21.052632 | 80 | 0.6075 | cuiwm |
eabc709dd496808f807f3e1ed6348066f4cb85bb | 182 | cc | C++ | Cpp_Primer/5rd/0320/oriented_obj_thread_poll/src/WorkThread.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | Cpp_Primer/5rd/0320/oriented_obj_thread_poll/src/WorkThread.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | Cpp_Primer/5rd/0320/oriented_obj_thread_poll/src/WorkThread.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | #include "WorkThread.h"
#include "ThreadPool.h"
WordThread::WordThread(ThreadPool& threadpool)
: _threadpool(threadpool) {}
void WordThread::run()
{
_threadpool.threadFunc();
}
| 16.545455 | 46 | 0.741758 | honeytavis |
eabe3bbca156504c1df7159f8bfc35b123629f40 | 2,852 | cpp | C++ | src/Property.cpp | Rexrn/cpp-json | 898a0521914906d2123152d735f41fa9ecf6f2fb | [
"MIT"
] | null | null | null | src/Property.cpp | Rexrn/cpp-json | 898a0521914906d2123152d735f41fa9ecf6f2fb | [
"MIT"
] | null | null | null | src/Property.cpp | Rexrn/cpp-json | 898a0521914906d2123152d735f41fa9ecf6f2fb | [
"MIT"
] | null | null | null | #include "../include/RexrnCPPJSON/Property.hpp"
#include <utility>
namespace rexrn_cpp_json
{
///////////////////////////////////////////////////////////////////////////////////////////////
Property::Property(String const &name_, Value const & value_)
: _name{ name_ }, _value{ value_ }
{
}
////////////////////////... | 27.423077 | 95 | 0.356241 | Rexrn |
eac01aaa8a5529c16818be04cb0e612c5aab1e09 | 1,371 | cpp | C++ | 831.masking-personal-information.159356001.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | 831.masking-personal-information.159356001.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | 831.masking-personal-information.159356001.ac.cpp | blossom2017/Leetcode | 8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
string maskPII(string S) {
string ans;
if(S.find('@')==std::string::npos)
{
//phone num
// cout<<"hhere";
int count=0;
string countstr;
for(int i=0;i<S.length();i++)
{
if(S[i]>='0'... | 26.882353 | 62 | 0.343545 | blossom2017 |
eae03e18b64cd2e2d0588d2c9ee0a1d575f0f1c2 | 937 | cpp | C++ | engine/framework/nodes/entity_finder_node.cpp | wight-snake/Twilight | 836abb43c9920b9245e4f08520746c088dbf6172 | [
"MIT"
] | 1 | 2021-12-06T16:17:19.000Z | 2021-12-06T16:17:19.000Z | engine/framework/nodes/entity_finder_node.cpp | wight-snake/Twilight | 836abb43c9920b9245e4f08520746c088dbf6172 | [
"MIT"
] | null | null | null | engine/framework/nodes/entity_finder_node.cpp | wight-snake/Twilight | 836abb43c9920b9245e4f08520746c088dbf6172 | [
"MIT"
] | null | null | null | #include "entity_finder_node.h"
#include "node_graph.h"
#include "scene_manager.h"
void EntityFinderNode::InitializeSlots()
{
pNodeGraph->AddSlot(this, { "entity", Slot::Type::stOUTPUT, Slot::ValueType::svADDRESS });
}
void EntityFinderNode::Update(double deltaSeconds)
{
data[outputs[0].valueKey] = reinterpret_cast... | 24.025641 | 109 | 0.728922 | wight-snake |
eae9daa6a22c7682ad1bfbfa6321e727879da7f9 | 1,872 | cpp | C++ | Unreal/AlexaRPG/Source/AlexaRPG/Items/LootingBag.cpp | uccmisl/Alexa_UnRealEngine4_Heroku | aa3a18dedd10722e157abda4a34bf87cdd675c7c | [
"MIT"
] | 1 | 2020-06-22T20:00:29.000Z | 2020-06-22T20:00:29.000Z | Unreal/AlexaRPG/Source/AlexaRPG/Items/LootingBag.cpp | uccmisl/Alexa_UnRealEngine4_Heroku | aa3a18dedd10722e157abda4a34bf87cdd675c7c | [
"MIT"
] | null | null | null | Unreal/AlexaRPG/Source/AlexaRPG/Items/LootingBag.cpp | uccmisl/Alexa_UnRealEngine4_Heroku | aa3a18dedd10722e157abda4a34bf87cdd675c7c | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "AlexaRPG/Items/LootingBag.h"
#include "UObject/ConstructorHelpers.h"
#include "Components/StaticMeshComponent.h"
#include "AlexaRPG/Characters/PlayableCharacter.h"
ALootingBag::ALootingBag() : AItem() {
static ConstructorHelp... | 24.311688 | 153 | 0.73985 | uccmisl |
eaed6473ab66214cf76c1dad38b855c683e53761 | 5,525 | cpp | C++ | src/instrdata.cpp | trilkk/faemiyah-demoscene_2015-04_64k-intro_junamatkailuintro | fdd055871a95f99c9162bced542e6d08be47f7e8 | [
"BSD-3-Clause"
] | 2 | 2015-05-25T02:22:41.000Z | 2015-10-06T17:39:55.000Z | src/instrdata.cpp | faemiyah/faemiyah-demoscene_2015-04_64k-intro_junamatkailuintro | fdd055871a95f99c9162bced542e6d08be47f7e8 | [
"BSD-3-Clause"
] | null | null | null | src/instrdata.cpp | faemiyah/faemiyah-demoscene_2015-04_64k-intro_junamatkailuintro | fdd055871a95f99c9162bced542e6d08be47f7e8 | [
"BSD-3-Clause"
] | null | null | null | #include "parameters.h"
#include "common.hpp"
static int syn1_channel_params[k_num_synth_params] =
{
58981,
0,
27647,
19797,
32767,
0,
58981,
3071,
40275,
20479,
53247,
0,
58981,
7167,
37203,
21161,
32767,
0,
65535,
32779,
32767,
49151,
65535,
6... | 9.348562 | 54 | 0.468959 | trilkk |
eaf2f7c1967c9dcd6f328485cb86c34878be1462 | 32 | hpp | C++ | src/boost_mpi_config.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpi_config.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpi_config.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpi/config.hpp>
| 16 | 31 | 0.75 | miathedev |
eaf304dfe6f61577ba533cb63063e74abaa90b2d | 409 | cpp | C++ | dataset/test/modification/1526_control_replacement/13/transformation_1.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/modification/1526_control_replacement/13/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/modification/1526_control_replacement/13/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <iomanip>
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(){
int t;
cin >> t;
for ( ; t--; )
{
int n;
cin >> n;
vector<int> vp(2*n);
{
int i=0;
for ( ; i<2*n; )
{
cin >> vp[i];
i++;
}}
sort(vp.begin(),vp.end());
{
int i=0;
for ( ; i<n; ) ... | 12.393939 | 42 | 0.398533 | Karina5005 |
eaf52db11549c8ddce8b0f3ce78b7be983b7d752 | 2,669 | cc | C++ | src/gui/searchdialog.cc | grencez/protocon | 0ca25d832f7222f4154507d974bf9213e0cf26d3 | [
"0BSD"
] | 7 | 2015-10-16T18:56:01.000Z | 2022-01-17T21:19:08.000Z | src/gui/searchdialog.cc | czlynn/protocon | aa520f9edf3be7ff458f96e88cd2dab1eec4c505 | [
"0BSD"
] | 19 | 2015-09-27T17:37:21.000Z | 2021-07-26T06:50:12.000Z | src/gui/searchdialog.cc | czlynn/protocon | aa520f9edf3be7ff458f96e88cd2dab1eec4c505 | [
"0BSD"
] | 1 | 2020-09-02T22:29:01.000Z | 2020-09-02T22:29:01.000Z |
#include "searchdialog.hh"
#include "ui_searchdialog.h"
#include <QDir>
#include <QScrollBar>
#include <QProcess>
SearchDialog::SearchDialog(QWidget *parent)
: QDialog(parent)
, ui( new Ui::SearchDialog )
, process( new QProcess )
{
ui->setupUi(this);
process->setProcessChannelMode(QProcess::MergedC... | 24.943925 | 95 | 0.706632 | grencez |
eaf5c2b9e4a7e62beeb083cbd079fd1b533864fb | 1,381 | cpp | C++ | Project_Euler/012/sol.cpp | Zovube/Tasks-solutions | fde056189dd5f630197d0516d3837044bc339e49 | [
"MIT"
] | 2 | 2018-11-08T05:57:22.000Z | 2018-11-08T05:57:27.000Z | Project_Euler/012/sol.cpp | Zovube/Tasks-solutions | fde056189dd5f630197d0516d3837044bc339e49 | [
"MIT"
] | null | null | null | Project_Euler/012/sol.cpp | Zovube/Tasks-solutions | fde056189dd5f630197d0516d3837044bc339e49 | [
"MIT"
] | null | null | null | // factorize number and count number of divisors
#include<bits/stdc++.h>
using namespace std;
#define PI acos(-1)
#define fi first
#define se second
#define pb push_back
#define sz(a) (int)(a).size()
#define all(c) (c).begin(), (c).end()
#define TIMESTAMP fprintf(stderr, "Execution time... | 18.413333 | 95 | 0.541636 | Zovube |
46abb01e69331499649b06a3db602b9224d22071 | 812 | cpp | C++ | test/cpp/STL/testSort.cpp | NicoleRobin/ExerciseCode | b7ce94cb5d2f6d15afd08eadd1c70a787dbfaa59 | [
"MIT"
] | null | null | null | test/cpp/STL/testSort.cpp | NicoleRobin/ExerciseCode | b7ce94cb5d2f6d15afd08eadd1c70a787dbfaa59 | [
"MIT"
] | null | null | null | test/cpp/STL/testSort.cpp | NicoleRobin/ExerciseCode | b7ce94cb5d2f6d15afd08eadd1c70a787dbfaa59 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <utility>
#include <iostream>
#include <iterator>
#include <map>
using namespace std;
bool cmp(const pair<int, int> &a, const pair<int, int> &b)
{
return a.second < b.second;
}
int main(int argc, char **argv)
{
map<int, int> mapTest;
mapTest.insert(make_pair(2, 5));
mapTe... | 22.555556 | 80 | 0.577586 | NicoleRobin |
46af8d133ab6da8294765ebc3dab2379f6df9c9d | 498 | hpp | C++ | map/booking_utils.hpp | HyEnjoys/omim | 5c5c04533351e104606fd16c378487fefc2bcc1c | [
"Apache-2.0"
] | 1 | 2020-07-21T01:24:24.000Z | 2020-07-21T01:24:24.000Z | map/booking_utils.hpp | HyEnjoys/omim | 5c5c04533351e104606fd16c378487fefc2bcc1c | [
"Apache-2.0"
] | null | null | null | map/booking_utils.hpp | HyEnjoys/omim | 5c5c04533351e104606fd16c378487fefc2bcc1c | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "map/booking_filter_params.hpp"
class SearchMarks;
namespace booking
{
filter::TasksInternal MakeInternalTasks(filter::Tasks const & filterTasks,
SearchMarks & searchMarks, bool inViewport);
filter::TasksRawInternal MakeInternalTasks(filter::Tasks const &... | 33.2 | 84 | 0.666667 | HyEnjoys |
46b45d2d294bf5a8b2b173eccabff9e06bfcc4f8 | 5,625 | cpp | C++ | benchmark/random.cpp | ktprime/ygg | ea8f04fdf8e5d19e048ba9f8d130bfda75863756 | [
"MIT"
] | 106 | 2017-07-12T21:36:38.000Z | 2022-02-08T08:30:57.000Z | benchmark/random.cpp | ktprime/ygg | ea8f04fdf8e5d19e048ba9f8d130bfda75863756 | [
"MIT"
] | 6 | 2017-09-16T15:47:55.000Z | 2020-05-06T01:13:14.000Z | benchmark/random.cpp | ktprime/ygg | ea8f04fdf8e5d19e048ba9f8d130bfda75863756 | [
"MIT"
] | 15 | 2017-07-13T09:04:14.000Z | 2022-02-15T14:52:06.000Z | #include "random.hpp"
#include <cassert>
#include <cmath>
#include <map>
#include <random>
Randomizer::Randomizer(unsigned long seed) : rng(seed), stored_seed(seed) {}
unsigned long
Randomizer::get_seed() const noexcept
{
return this->stored_seed;
}
const char *
ZipfDistr::get_name() const noexcept
{
return "Zipf... | 26.533019 | 80 | 0.6416 | ktprime |
46bd9815d975a218a3d4c09f3ce976121ad1cd80 | 380 | cpp | C++ | leetcode/problemset-algorithms/frog-2.cpp | riteshkumar99/coding-for-placement | b45f90f662808bf4bf038ff98a016d49b9d71f71 | [
"MIT"
] | null | null | null | leetcode/problemset-algorithms/frog-2.cpp | riteshkumar99/coding-for-placement | b45f90f662808bf4bf038ff98a016d49b9d71f71 | [
"MIT"
] | null | null | null | leetcode/problemset-algorithms/frog-2.cpp | riteshkumar99/coding-for-placement | b45f90f662808bf4bf038ff98a016d49b9d71f71 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main() {
int n, k;
cin>>n>>k;
vector<int> h(n), dp(n, 0);
for(auto &e: h) cin>>e;
for(int i = 1; i<n; i++) {
dp[i] = dp[i-1] + abs(h[i] - h[i-1]);
for(int j = 2; j<=k && (i-j) >= 0; j++) {
dp[i] = min(dp[i], dp[i-j] + abs(... | 22.352941 | 61 | 0.389474 | riteshkumar99 |
46c42d1c9bbdb68e6f4c0cad282d2b41d5096afe | 2,567 | cpp | C++ | libsnes/bsnes/snes/cheat/cheat.cpp | ircluzar/BizhawkLegacy-Vanguard | cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e | [
"MIT"
] | null | null | null | libsnes/bsnes/snes/cheat/cheat.cpp | ircluzar/BizhawkLegacy-Vanguard | cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e | [
"MIT"
] | null | null | null | libsnes/bsnes/snes/cheat/cheat.cpp | ircluzar/BizhawkLegacy-Vanguard | cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e | [
"MIT"
] | null | null | null | #include <snes/snes.hpp>
#define CHEAT_CPP
namespace SNES {
Cheat cheat;
bool Cheat::enabled() const {
return system_enabled;
}
void Cheat::enable(bool state) {
system_enabled = state;
cheat_enabled = system_enabled && code_enabled;
}
void Cheat::synchronize() {
memset(override, 0x00, 16 * 1024 * 1024);
... | 23.126126 | 118 | 0.55785 | ircluzar |
46c640c52b466c5f10e02ef95fb88d2f8e4a0e1b | 1,165 | cpp | C++ | Assignments/Week2 Solution - Talha Tariq/Arrays/P1 - Merge Intervals.cpp | TT-talhatariq/DSA-Bootcamp-Cpp | 823e8d8e3e01803667636f9c2be8f3e520214df3 | [
"MIT"
] | null | null | null | Assignments/Week2 Solution - Talha Tariq/Arrays/P1 - Merge Intervals.cpp | TT-talhatariq/DSA-Bootcamp-Cpp | 823e8d8e3e01803667636f9c2be8f3e520214df3 | [
"MIT"
] | null | null | null | Assignments/Week2 Solution - Talha Tariq/Arrays/P1 - Merge Intervals.cpp | TT-talhatariq/DSA-Bootcamp-Cpp | 823e8d8e3e01803667636f9c2be8f3e520214df3 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include <string.h>
using namespace std;
vector<vector<int>> merge(vector<vector<int>>& intervals) {
if(intervals.size()==1)
return intervals;
vector<vector<int>> v;
sort(intervals.begin(), intervals.end());
... | 29.125 | 67 | 0.381116 | TT-talhatariq |
46c93f870456cd9047974af52be3a8c8b0e9aefe | 2,212 | hpp | C++ | include/nifty/infusion/models/grid_lifted_mulicut_model.hpp | DerThorsten/nifty_infusion | 45064872d4880374fe1e34cc51f6efb727c8a4a3 | [
"MIT"
] | null | null | null | include/nifty/infusion/models/grid_lifted_mulicut_model.hpp | DerThorsten/nifty_infusion | 45064872d4880374fe1e34cc51f6efb727c8a4a3 | [
"MIT"
] | null | null | null | include/nifty/infusion/models/grid_lifted_mulicut_model.hpp | DerThorsten/nifty_infusion | 45064872d4880374fe1e34cc51f6efb727c8a4a3 | [
"MIT"
] | null | null | null | #pragma once
#include "nifty/infusion/models/model_base.hpp"
namespace nifty {
namespace infusion {
template<class T, std::size_t DIM>
class GridLiftedMulticutModel;
template<class T>
class GridLiftedMulticutModel<T, 2>
{
public:
const static std::size_t DIM = 2;
typedef std::array<int32_t > ShapeType;
... | 24.043478 | 76 | 0.54792 | DerThorsten |
46cc649c6884442ec0659c2524dfc33d5ed9e441 | 358 | inl | C++ | gemcutter/GUI/Widget.inl | EmilianC/Gemcutter | cbd31f20a9336b6d879849c7a3cdfd8c28a3ac12 | [
"MIT"
] | 8 | 2021-02-07T21:40:42.000Z | 2022-03-29T15:55:30.000Z | gemcutter/GUI/Widget.inl | EmilianC/Gemcutter | cbd31f20a9336b6d879849c7a3cdfd8c28a3ac12 | [
"MIT"
] | null | null | null | gemcutter/GUI/Widget.inl | EmilianC/Gemcutter | cbd31f20a9336b6d879849c7a3cdfd8c28a3ac12 | [
"MIT"
] | 3 | 2021-02-08T14:40:23.000Z | 2021-03-30T07:05:35.000Z | // Copyright (c) 2021 Emilian Cioca
namespace gem
{
template<class T, typename... Args>
T& Widget::CreateChild(Args&&... constructorParams)
{
static_assert(std::is_base_of_v<Widget, T>, "Template argument must be a Widget.");
auto entity = owner.Get<Hierarchy>().CreateChild();
return entity->Add<T>(std::forwa... | 27.538462 | 85 | 0.703911 | EmilianC |
46cf87f339718f65f413bcd63f77f6cd4202b86f | 5,250 | cpp | C++ | modules/task_2/gorbunova_v_scatter/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2020-10-30T13:49:58.000Z | 2020-10-30T13:49:58.000Z | modules/task_2/gorbunova_v_scatter/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2020-12-27T20:31:37.000Z | 2020-12-27T20:31:37.000Z | modules/task_2/gorbunova_v_scatter/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2021-03-14T18:08:22.000Z | 2021-03-14T18:08:22.000Z | // Copyright 2020 Gorbunova Valeria
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <mpi.h>
#include <string>
#include "./Scatter.h"
TEST(Scatter, Test_Sum_part_int) {
int len = 10000;
int* arr = new int[len];
int sum = 0, res_sum = 0;
int size, rank;
MPI_Comm_size(MPI_COMM_WOR... | 36.458333 | 85 | 0.629905 | RachinIA |
46dcaad68b695b6ed4bb529d9ad81fe7aa6611dc | 9,893 | cpp | C++ | source/ctoolfile/TFInterpreter.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | source/ctoolfile/TFInterpreter.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | source/ctoolfile/TFInterpreter.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | #include "../include/ctoolfile/TFInterpreter.h"
#include "../include/ctoolfile/ChromaToolFile.h"
#include "../include/ctoolfile/TFForward.h"
#include "../include/ctoolfile/TFExpr.h"
#include "../include/ctoolfile/TFStmt.h"
#include "../include/ctoolfile/TFEnums.h"
#include "../include/ctoolfile/TFToken.h"
#include "../... | 33.422297 | 152 | 0.682907 | chromaScript |
46e06128bdede93e5c56dc120550d864fd03175a | 9,933 | cpp | C++ | src/Mesh.cpp | bothemasterofall/bayou | 5fc2693a67c90ea5ef8f1f106ed4aa88e1947797 | [
"MIT"
] | null | null | null | src/Mesh.cpp | bothemasterofall/bayou | 5fc2693a67c90ea5ef8f1f106ed4aa88e1947797 | [
"MIT"
] | null | null | null | src/Mesh.cpp | bothemasterofall/bayou | 5fc2693a67c90ea5ef8f1f106ed4aa88e1947797 | [
"MIT"
] | null | null | null | #include "Mesh.h"
#include <cstddef>
#include <queue>
#include <algorithm>
#include <functional>
#include <unordered_map>
using std::unordered_map;
using std::vector;
using std::pair;
using std::priority_queue;
using std::greater;
Mesh::Mesh(int start_x, int start_y, int length, int thickness, int tiling) {
this->... | 34.370242 | 112 | 0.583711 | bothemasterofall |
46e1fdb03056bfb1eb6b634a89d41cdbe5cce1e7 | 10,613 | cc | C++ | parsec/benchmark_internal.cc | gonidelis/task-bench | 06f1adef6183405bec0a267c686fb67baeafc8d1 | [
"Apache-2.0"
] | 23 | 2018-08-31T03:51:08.000Z | 2021-10-21T08:01:44.000Z | parsec/benchmark_internal.cc | gonidelis/task-bench | 06f1adef6183405bec0a267c686fb67baeafc8d1 | [
"Apache-2.0"
] | 30 | 2018-06-27T19:45:53.000Z | 2022-03-23T04:26:11.000Z | parsec/benchmark_internal.cc | gonidelis/task-bench | 06f1adef6183405bec0a267c686fb67baeafc8d1 | [
"Apache-2.0"
] | 26 | 2018-05-29T22:56:59.000Z | 2022-01-27T18:54:26.000Z | /* Copyright 2018 Los Alamos National Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 34.796721 | 145 | 0.659286 | gonidelis |
46e46001fb2a200340d6ee576298a0a2f2b89f1d | 5,286 | cpp | C++ | src/falclib/weapon.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/falclib/weapon.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/falclib/weapon.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | // Weapon.cpp
//
// Deals with campaign and sim loadout information
#include "falclib.h"
#include "campweap.h"
#include "entity.h"
#include "WeapList.h"
#ifdef DAVE_DBG
#include "simdrive.h"
#endif
extern float LOWAIR_RANGE_MODIFIER;
extern short NumWeaponTypes;
// ==================================================... | 24.247706 | 157 | 0.62675 | Terebinth |
46ead0735e77fe77d4166ed74b5e4c80058e095a | 4,651 | cpp | C++ | static/schedgen/vector/VectUtils.cpp | jahic/Janus | 4612d0d7c0f9ec411534eca068abc2e5f042e203 | [
"Apache-2.0"
] | 6 | 2021-05-18T09:43:07.000Z | 2021-08-10T16:50:08.000Z | static/schedgen/vector/VectUtils.cpp | jahic/Janus | 4612d0d7c0f9ec411534eca068abc2e5f042e203 | [
"Apache-2.0"
] | null | null | null | static/schedgen/vector/VectUtils.cpp | jahic/Janus | 4612d0d7c0f9ec411534eca068abc2e5f042e203 | [
"Apache-2.0"
] | 2 | 2021-03-28T15:39:00.000Z | 2021-08-20T03:23:57.000Z | #include "VectUtils.h"
int currentLoopId;
static void
printExpr(const Expr *expr, map<const Expr *, int> &seen) {
if (seen.find(expr) == seen.end()) {
seen[expr] = seen.size();
cout << expr->kind << endl;
switch (expr->kind) {
case (Expr::ExprKind::INTEGER):
cou... | 34.451852 | 109 | 0.534939 | jahic |
46f25687ba7870475059185ca67ddb8ad62ebde1 | 1,335 | hh | C++ | src/ob/string.hh | j-tai/peaclock | da09b1eb2be31070bfec81ed0ce85b0aaa342309 | [
"MIT"
] | 402 | 2019-01-11T10:06:30.000Z | 2022-03-31T15:27:37.000Z | src/ob/string.hh | j-tai/peaclock | da09b1eb2be31070bfec81ed0ce85b0aaa342309 | [
"MIT"
] | 28 | 2019-01-11T16:59:32.000Z | 2021-07-25T22:01:02.000Z | src/ob/string.hh | j-tai/peaclock | da09b1eb2be31070bfec81ed0ce85b0aaa342309 | [
"MIT"
] | 19 | 2019-01-12T02:54:32.000Z | 2022-03-24T12:03:29.000Z | #ifndef OB_STRING_HH
#define OB_STRING_HH
#include <cstddef>
#include <string>
#include <optional>
#include <regex>
#include <limits>
#include <vector>
namespace OB::String
{
std::string to_string(double const val, int const pre = 2);
std::vector<std::string> split(std::string const& str, std::string const& delim,... | 27.8125 | 86 | 0.724345 | j-tai |
46f8b0da7fed439899e98fe30543d5efbb9ef62a | 1,569 | cpp | C++ | MarsExploration/PromoteEvent.cpp | Marwan-9/MarsExploration_DsAlgorithmS21 | 86cc15922e9e823001d05cfda471f7ecf10e05f3 | [
"Unlicense"
] | 2 | 2021-11-22T09:57:21.000Z | 2021-11-22T09:57:22.000Z | MarsExploration/PromoteEvent.cpp | Marwan-9/MarsExploration_DsAlgorithmS21 | 86cc15922e9e823001d05cfda471f7ecf10e05f3 | [
"Unlicense"
] | null | null | null | MarsExploration/PromoteEvent.cpp | Marwan-9/MarsExploration_DsAlgorithmS21 | 86cc15922e9e823001d05cfda471f7ecf10e05f3 | [
"Unlicense"
] | 3 | 2021-07-23T03:39:37.000Z | 2021-12-20T09:28:39.000Z | #include "PromoteEvent.h"
#include "MarsStation.h"
PromoteEvent::PromoteEvent() {}
PromoteEvent::PromoteEvent(int r_eventD, int r_mID) : Event(r_eventD, r_mID) {
}
void PromoteEvent:: Execute(MarsStation* pS)
{
// TODO: Create a new mission and add it to the appropriate list
pStation = pS;
//Cancell... | 26.59322 | 90 | 0.601657 | Marwan-9 |
46fa74958558c363355377b24648d92f2e640939 | 25,215 | cpp | C++ | camera/hal/intel/ipu6/modules/sandboxing/IPCIntelPGParam.cpp | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | camera/hal/intel/ipu6/modules/sandboxing/IPCIntelPGParam.cpp | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | camera/hal/intel/ipu6/modules/sandboxing/IPCIntelPGParam.cpp | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2019-2020 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 47.396617 | 100 | 0.66857 | dgreid |
46fc05a20e6e2de912dc01c0bd5408562c3c389c | 1,195 | hxx | C++ | generated/include/example/LidarProcessorAsyncClient.hxx | automyinc/vnx-examples | 492423bb8c8447f641e5691f45575056cab396df | [
"MIT"
] | null | null | null | generated/include/example/LidarProcessorAsyncClient.hxx | automyinc/vnx-examples | 492423bb8c8447f641e5691f45575056cab396df | [
"MIT"
] | null | null | null | generated/include/example/LidarProcessorAsyncClient.hxx | automyinc/vnx-examples | 492423bb8c8447f641e5691f45575056cab396df | [
"MIT"
] | null | null | null |
// AUTO GENERATED by vnxcppcodegen
#ifndef INCLUDE_example_LidarProcessor_ASYNC_CLIENT_HXX_
#define INCLUDE_example_LidarProcessor_ASYNC_CLIENT_HXX_
#include <vnx/AsyncClient.h>
#include <example/LidarInfo.hxx>
#include <example/LidarPointCloud.hxx>
#include <vnx/Module.h>
#include <vnx/TopicPtr.h>
namespace examp... | 29.146341 | 124 | 0.794979 | automyinc |
46fd282bd0a48338ad0debc29a241741b640e98b | 259 | cpp | C++ | problems/acmicpc_10829.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_10829.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_10829.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
int main() {
long long n;
std::cin >> n;
std::string s;
while(n) {
s.push_back(n % 2 + '0');
n >>= 1;
}
std::reverse(s.begin(), s.end());
std::cout << s;
} | 17.266667 | 37 | 0.486486 | qawbecrdtey |
46ff828b53046d0b5c72b2f235d63e7cfd122c24 | 175 | hpp | C++ | sdl2-sonic-drivers/src/drivers/miles/XMidi.hpp | Raffaello/sdl2-sonic-drivers | 20584f100ddd7c61f584deaee0b46c5228d8509d | [
"Apache-2.0"
] | 3 | 2021-10-31T14:24:00.000Z | 2022-03-16T08:15:31.000Z | sdl2-sonic-drivers/src/drivers/miles/XMidi.hpp | Raffaello/sdl2-sonic-drivers | 20584f100ddd7c61f584deaee0b46c5228d8509d | [
"Apache-2.0"
] | 48 | 2020-06-05T11:11:29.000Z | 2022-02-27T23:58:44.000Z | sdl2-sonic-drivers/src/drivers/miles/XMidi.hpp | Raffaello/sdl2-sonic-drivers | 20584f100ddd7c61f584deaee0b46c5228d8509d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cstdint>
#include <string>
namespace drivers
{
namespace miles
{
class XMidi
{
public:
};
}
} | 10.9375 | 19 | 0.474286 | Raffaello |
200164446996596ca11812249d2a463266260036 | 1,547 | cpp | C++ | plugins/gui/src/widgets/ImageWidget_gl.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | plugins/gui/src/widgets/ImageWidget_gl.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | plugins/gui/src/widgets/ImageWidget_gl.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | /*
* ImageWidget_gl.cpp
*
* Copyright (C) 2019 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "ImageWidget_gl.h"
using namespace megamol;
using namespace megamol::gui;
ImageWidget::ImageWidget(void) : tex_ptr(nullptr), tooltip() {}
void megamol::gui::ImageWidget:... | 29.75 | 119 | 0.658048 | azuki-monster |
200cb5b4d1dfdd2dcfb17a6b78effcabe8e62fa9 | 1,144 | hpp | C++ | include/twisted/ssl_options.hpp | StephanDollberg/twistedcpp | 8b323741a7c4331cda64be10b00a6f3956277caf | [
"MIT"
] | 9 | 2015-07-27T11:17:07.000Z | 2021-01-12T02:46:26.000Z | include/twisted/ssl_options.hpp | StephanDollberg/twistedcpp | 8b323741a7c4331cda64be10b00a6f3956277caf | [
"MIT"
] | null | null | null | include/twisted/ssl_options.hpp | StephanDollberg/twistedcpp | 8b323741a7c4331cda64be10b00a6f3956277caf | [
"MIT"
] | 2 | 2019-01-30T07:41:57.000Z | 2021-05-12T10:15:04.000Z | #ifndef TWISTEDCPP_SSL_OPTIONS_HPP
#define TWISTEDCPP_SSL_OPTIONS_HPP
#include <string>
#include <boost/asio/ssl.hpp>
namespace twisted {
typedef boost::asio::ssl::context ssl_options;
inline ssl_options default_ssl_options(std::string certificate_filename,
std::string key_fil... | 31.777778 | 90 | 0.629371 | StephanDollberg |
200ef4567895cdce7b585661e3af154d5cb237c0 | 360 | cpp | C++ | Arreglos/burbuja.cpp | memo0p2/Programas-cpp | f78f283886e478be12b3636992dbf922199ae5f1 | [
"MIT"
] | null | null | null | Arreglos/burbuja.cpp | memo0p2/Programas-cpp | f78f283886e478be12b3636992dbf922199ae5f1 | [
"MIT"
] | null | null | null | Arreglos/burbuja.cpp | memo0p2/Programas-cpp | f78f283886e478be12b3636992dbf922199ae5f1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int num[]={6,5,9,3,0,1,8,7,4,2};
int aux;
int tam=sizeof(num)/sizeof(num[0]);
for(int i=0;i<tam;i++){
for(int j=0;j<tam-1;j++){
if(num[j]>num[j+1]){
int aux=num[j];
num[j]=num[j+1];
num[j+1]=aux;
}
}
}
for(int i=0;i<tam;i++... | 17.142857 | 37 | 0.497222 | memo0p2 |
200fef5b4a9ce2af4008d0710f40b909d2162be1 | 3,655 | cpp | C++ | CosmosRendererLib/StarsRenderer.cpp | achlubek/CosmosGame | d5270d9d972e175588341bdb94e2439e538de018 | [
"MIT"
] | 14 | 2017-12-17T15:31:28.000Z | 2019-03-31T06:11:41.000Z | CosmosRendererLib/StarsRenderer.cpp | achlubek/CosmosGame | d5270d9d972e175588341bdb94e2439e538de018 | [
"MIT"
] | null | null | null | CosmosRendererLib/StarsRenderer.cpp | achlubek/CosmosGame | d5270d9d972e175588341bdb94e2439e538de018 | [
"MIT"
] | 1 | 2019-03-12T21:05:39.000Z | 2019-03-12T21:05:39.000Z | #include "stdafx.h"
#include "StarsRenderer.h"
StarsRenderer::StarsRenderer(ToolkitInterface* toolkit,
int width, int height, double scale,
DescriptorSetLayoutInterface* rendererDataSetLayout,
DescriptorSetInterface* rendererDataSet,
GalaxyContainer* galaxy)
: toolkit(toolkit),
width(width), ... | 31.508621 | 189 | 0.720109 | achlubek |
2011e7e0a6e5eeb21065be92cc21bdb8bf299ade | 489 | cpp | C++ | test/integration/Logging.cpp | linhanwang/binlog | b4da55f2ae9b61c31c34bf307c0937ec515293df | [
"Apache-2.0"
] | 248 | 2019-12-05T20:59:51.000Z | 2021-01-19T15:56:12.000Z | test/integration/Logging.cpp | Galaxy2416/binlog | 14bf705b51602d43403733670d6110f8742b0409 | [
"Apache-2.0"
] | 57 | 2019-12-18T07:00:46.000Z | 2021-01-04T14:04:16.000Z | test/integration/Logging.cpp | Galaxy2416/binlog | 14bf705b51602d43403733670d6110f8742b0409 | [
"Apache-2.0"
] | 22 | 2021-03-27T20:43:40.000Z | 2022-03-31T10:01:38.000Z | #include <binlog/binlog.hpp>
#include <iostream>
int main()
{
BINLOG_TRACE("Hello");
// Outputs: TRAC Hello
BINLOG_DEBUG("Hello");
// Outputs: DEBG Hello
BINLOG_INFO("Hello");
// Outputs: INFO Hello
BINLOG_WARN("Hello");
// Outputs: WARN Hello
BINLOG_ERROR("Hello");
// Outputs: ERRO Hello
BINLOG... | 17.464286 | 32 | 0.635992 | linhanwang |
20171a9923239411887c80b9c97a14d7ad3c8100 | 2,110 | cpp | C++ | Project Shadow/Project Shadow/Engine/Cinematic.cpp | NOREADMEStudios/ProjectII | f57477090629f031f8e6735b797a29cefa164368 | [
"MIT"
] | 2 | 2018-03-04T11:57:48.000Z | 2018-04-12T08:12:06.000Z | Project Shadow/Project Shadow/Engine/Cinematic.cpp | NOREADMEStudios/ProjectII | f57477090629f031f8e6735b797a29cefa164368 | [
"MIT"
] | 89 | 2018-02-27T09:02:18.000Z | 2018-06-05T15:45:26.000Z | Project Shadow/Project Shadow/Engine/Cinematic.cpp | NOREADMEStudios/ProjectII | f57477090629f031f8e6735b797a29cefa164368 | [
"MIT"
] | null | null | null | #include "Cinematic.h"
#include "Defs.h"
#include "ModuleRender.h"
#include "ModuleWindow.h"
#include "App.h"
Cinematic::Cinematic()
{
}
Cinematic::~Cinematic()
{
}
bool Cinematic::Update(float dt)
{
bool ret = true;
CinematicTransition* ct = transitions[currentTransition];
float speed = dt / ct->duration;
cur... | 24.252874 | 132 | 0.715166 | NOREADMEStudios |
20198413f68c9c7253f64dc6f8b19dd6c09deceb | 15,121 | cpp | C++ | src/mhd.cpp | chadvoegele/ledger-rest | 23a920a57964c9f7e987c5d2d9f72eba3dc89c1e | [
"BSD-3-Clause"
] | null | null | null | src/mhd.cpp | chadvoegele/ledger-rest | 23a920a57964c9f7e987c5d2d9f72eba3dc89c1e | [
"BSD-3-Clause"
] | null | null | null | src/mhd.cpp | chadvoegele/ledger-rest | 23a920a57964c9f7e987c5d2d9f72eba3dc89c1e | [
"BSD-3-Clause"
] | null | null | null | //
// Copyright (c) 2015-2020 Chad Voegele
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this
// list of condi... | 35.165116 | 111 | 0.667747 | chadvoegele |
20208da197dacea255e9429ba93910260eaa8871 | 9,713 | cpp | C++ | cpp/roc_compu.cpp | flyingfalling/rteye_rv | 9c07787f229b0dd18957c8973aaf7150bd323932 | [
"MIT"
] | null | null | null | cpp/roc_compu.cpp | flyingfalling/rteye_rv | 9c07787f229b0dd18957c8973aaf7150bd323932 | [
"MIT"
] | null | null | null | cpp/roc_compu.cpp | flyingfalling/rteye_rv | 9c07787f229b0dd18957c8973aaf7150bd323932 | [
"MIT"
] | null | null | null |
#include <vector>
#include <string>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <cstring>
#include <random>
#include <opencv2/opencv.hpp>
#include <utils.hpp>
#include <roc_compu.hpp>
float dist( const float& prevx, const float& prevy, const float& newx, const float& newy )
{
return sq... | 22.588372 | 254 | 0.608051 | flyingfalling |
2020ef5d9ca5b2992abce928aa5a8d271ecd17f6 | 11,312 | cpp | C++ | src/cradle/io/http_requests.cpp | urlofmar/cradle | b9e4e8918980fe34a14dd92fece3f6a4c357ed7f | [
"MIT"
] | 2 | 2018-11-13T13:22:02.000Z | 2022-01-31T21:45:03.000Z | src/cradle/io/http_requests.cpp | urlofmar/cradle | b9e4e8918980fe34a14dd92fece3f6a4c357ed7f | [
"MIT"
] | 79 | 2017-11-19T15:33:23.000Z | 2022-03-22T10:31:07.000Z | src/cradle/io/http_requests.cpp | urlofmar/cradle | b9e4e8918980fe34a14dd92fece3f6a4c357ed7f | [
"MIT"
] | 2 | 2019-01-20T20:22:22.000Z | 2022-01-17T15:26:41.000Z | #include <cradle/io/http_requests.hpp>
#include <cstring>
#include <filesystem>
#include <boost/algorithm/string.hpp>
#include <curl/curl.h>
#include <cradle/core/monitoring.h>
#include <cradle/encodings/json.h>
#include <cradle/encodings/msgpack.h>
#include <cradle/fs/file_io.h>
#include <cradle/utilities/errors.h... | 28.637975 | 79 | 0.67645 | urlofmar |
20280f8012783cff7a9a3ff7dc06bae7f922955f | 659 | cpp | C++ | test/del/test-dirctrl.cpp | antonvw/wxExtension | d5523346cf0b1dbd45fd20dc33bf8d679299676c | [
"MIT"
] | 9 | 2016-01-10T20:59:02.000Z | 2019-01-09T14:18:13.000Z | test/del/test-dirctrl.cpp | antonvw/wex | c4c41c660c9967623093a1b407af034c59a56be8 | [
"MIT"
] | 96 | 2020-01-18T18:25:48.000Z | 2022-03-26T12:26:50.000Z | test/del/test-dirctrl.cpp | antonvw/wex | c4c41c660c9967623093a1b407af034c59a56be8 | [
"MIT"
] | 2 | 2015-04-05T08:45:22.000Z | 2018-08-24T06:43:24.000Z | ////////////////////////////////////////////////////////////////////////////////
// Name: test-dirctrl.cpp
// Purpose: Implementation for wex del unit testing
// Author: Anton van Wezenbeek
// Copyright: (c) 2021 Anton van Wezenbeek
/////////////////////////////////////////////////////////////////////////////... | 28.652174 | 80 | 0.505311 | antonvw |
45cbe7372f4c1f379fcf49f620e0898e5c216dc5 | 18,987 | cpp | C++ | NoCoChat/handle.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | 1 | 2016-01-05T07:24:32.000Z | 2016-01-05T07:24:32.000Z | NoCoChat/handle.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | null | null | null | NoCoChat/handle.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | null | null | null | /**
* 文件名:handle.cpp
* 文件功能:定义handle类的所有函数
* 类的作用:所有界面的业务操作函数集合
* 类的继承:QObejct
* 作者:NoCo_jancojie
*/
#include "handle.h"
Handle::Handle(QObject *parent) :
QObject(parent)
{
// 从配置文件中读取服务器的ip
ip=config.getValue("ip");
// 从配置文件中读取服务器的端口
port=config.getValue("port").toInt();
qD... | 31.43543 | 155 | 0.544109 | mickelfeng |
45e1cd324f90e15a63614d0d9a72cb80889f41cd | 4,356 | cc | C++ | src/lib/hydraulic_erosion.cc | jube/mapmaker | e2eb6b1fbc3d803d56817aea86b350bd26ad5fa4 | [
"ISC"
] | 15 | 2015-03-18T18:07:30.000Z | 2020-10-15T16:59:19.000Z | src/lib/hydraulic_erosion.cc | jube/mapmaker | e2eb6b1fbc3d803d56817aea86b350bd26ad5fa4 | [
"ISC"
] | null | null | null | src/lib/hydraulic_erosion.cc | jube/mapmaker | e2eb6b1fbc3d803d56817aea86b350bd26ad5fa4 | [
"ISC"
] | 1 | 2020-01-16T17:37:11.000Z | 2020-01-16T17:37:11.000Z | /*
* Copyright (c) 2014, Julien Bernard
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS... | 30.676056 | 75 | 0.51056 | jube |
45e1fb99a81e80edb06b8c51b5137d49a9b6001f | 843 | cc | C++ | code30/cpp/20190812/observer/Subject.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | 2 | 2020-12-09T09:55:51.000Z | 2021-01-08T11:38:22.000Z | code30/cpp/20190812/observer/Subject.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | code30/cpp/20190812/observer/Subject.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | ///
/// @file Subject.cc
/// @author lemon(haohb13@gmail.com)
/// @date 2019-08-12 16:59:46
///
#include "Subject.h"
#include "Observer.h"
#include <iostream>
#include <algorithm>
using std::cout;
using std::endl;
void Ring::attach(Observer * obj)
{
auto it = std::find(_obList.begin(), _obList.end(), o... | 15.90566 | 70 | 0.604982 | stdbilly |
45e27ca98d51a4232d3bca1c124119df48bd7600 | 70,616 | hpp | C++ | src/interp/interpreter_base.hpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | src/interp/interpreter_base.hpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | src/interp/interpreter_base.hpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | #pragma once
#ifndef _interp_interpreter_base_hpp
#define _interp_interpreter_base_hpp
#include <istream>
#include <vector>
#include <stack>
#include <tuple>
#include <map>
#include <boost/range/adaptor/reversed.hpp>
#include <boost/thread.hpp>
#include "../common/term_env.hpp"
#include "../common/term_tokenizer.hpp"... | 26.758621 | 184 | 0.645987 | datavetaren |
45e552e26d452a8864380274e62f7a7541799686 | 5,114 | cpp | C++ | source/vision/vision.cpp | derpicated/articated_embedded | fb58452f904c84e7d65f74110c38d9849d4f5679 | [
"MIT"
] | 9 | 2017-01-31T22:30:28.000Z | 2020-01-09T00:02:28.000Z | source/vision/vision.cpp | derpicated/articated_embedded | fb58452f904c84e7d65f74110c38d9849d4f5679 | [
"MIT"
] | 32 | 2016-10-04T11:25:48.000Z | 2021-02-09T01:10:23.000Z | source/vision/vision.cpp | derpicated/articated_embedded | fb58452f904c84e7d65f74110c38d9849d4f5679 | [
"MIT"
] | 5 | 2017-09-28T21:48:51.000Z | 2019-07-26T00:31:30.000Z | #include "vision.hpp"
#include <iomanip>
#include <iostream>
#include <sstream>
#include <QOpenGLContext>
#include <QResource>
#include <QTemporaryFile>
Q_LOGGING_CATEGORY (visionLog, "vision", QtInfoMsg)
Vision::Vision () {
InitializeOpenGL ();
SetAlgorithm (-1);
QList<QCameraInfo> back_camera_list = ... | 27.058201 | 95 | 0.61537 | derpicated |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.