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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d06a3d5c74a08519108b8b4956169db637b8c777 | 7,056 | hh | C++ | spot/spot/tl/simplify.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2018-03-02T14:29:57.000Z | 2018-03-02T14:29:57.000Z | spot/spot/tl/simplify.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | null | null | null | spot/spot/tl/simplify.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2015-06-05T12:42:07.000Z | 2015-06-05T12:42:07.000Z | // -*- coding: utf-8 -*-
// Copyright (C) 2011-2017 Laboratoire de Recherche et Developpement
// de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
// Spot is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the... | 34.086957 | 77 | 0.636338 | mcc-petrinets |
d06b61eac8b4c4ee0888bf1463996f347ea07f84 | 1,653 | hh | C++ | Source/math/math_util.hh | TarekIbnZiad/CryptoImg | 5ecb2a34c7daa55c428c14c6eb370232b474707f | [
"MIT"
] | 4 | 2019-11-05T18:23:04.000Z | 2021-11-03T07:33:10.000Z | Source/math/math_util.hh | TarekIbnZiad/CryptoImg | 5ecb2a34c7daa55c428c14c6eb370232b474707f | [
"MIT"
] | null | null | null | Source/math/math_util.hh | TarekIbnZiad/CryptoImg | 5ecb2a34c7daa55c428c14c6eb370232b474707f | [
"MIT"
] | 3 | 2020-10-11T00:32:47.000Z | 2021-02-08T23:35:20.000Z | /*
* Copyright 2013-2015 Raphael Bost, Raluca Ada Popa
*
* This file is part of ciphermed.
* ciphermed is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your... | 25.828125 | 116 | 0.705989 | TarekIbnZiad |
d07c94eb5174fed966859adf0795435056bec9d1 | 440 | cpp | C++ | HW1_problem2_AvaniChandratre.cpp | a-chandratre/CS115 | b9e537fb40bfd59c17ec0a7eb7fe7591665baf98 | [
"MIT"
] | null | null | null | HW1_problem2_AvaniChandratre.cpp | a-chandratre/CS115 | b9e537fb40bfd59c17ec0a7eb7fe7591665baf98 | [
"MIT"
] | null | null | null | HW1_problem2_AvaniChandratre.cpp | a-chandratre/CS115 | b9e537fb40bfd59c17ec0a7eb7fe7591665baf98 | [
"MIT"
] | null | null | null | /* Student Name: Avani Chandratre
Homework #1 - CS 115 Section 004
Due Date: Feb 14, 2020 */
#include <iostream>
using namespace std;
int main()
{
int age;
char cstatus;
cout << "Enter age: " << endl;
cin >> age;
cout << "Are you a citizen (y/n)" << endl;
cin >> cstatus;
if ((age >= 18) && (... | 18.333333 | 44 | 0.575 | a-chandratre |
4ed8ce5ebf2a918810f7709442be2899c4e5a7c5 | 32,096 | cpp | C++ | module-bsp/board/rt1051/bsp/cellular/rt1051_cellular.cpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-bsp/board/rt1051/bsp/cellular/rt1051_cellular.cpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-bsp/board/rt1051/bsp/cellular/rt1051_cellular.cpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "rt1051_cellular.hpp"
#include "fsl_cache.h"
#include <EventStore.hpp>
#include <task.h>
#include <ticks.hpp>
#include <algorithm>
static bsp::cellular::CellularDMAResultSt... | 40.886624 | 120 | 0.591756 | GravisZro |
4eda52f1a9768fb369b5e79e627a86c565ae4715 | 3,216 | cpp | C++ | portable/app/main/application.cpp | vladsopen/umon1stl | c1e7d9b198c6ce493ca1dcf31d778d633be48f88 | [
"MIT"
] | null | null | null | portable/app/main/application.cpp | vladsopen/umon1stl | c1e7d9b198c6ce493ca1dcf31d778d633be48f88 | [
"MIT"
] | null | null | null | portable/app/main/application.cpp | vladsopen/umon1stl | c1e7d9b198c6ce493ca1dcf31d778d633be48f88 | [
"MIT"
] | null | null | null | /**
* MIT license:
*
* Copyright (c) 2019 vlads
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 27.02521 | 81 | 0.669776 | vladsopen |
4edbd0161e6f65ac60bec4d100e07bd789df9597 | 1,696 | cpp | C++ | gloox-1.0.22/src/softwareversion.cpp | zhichao281/SuperWisdom | e3bd1608a7aaf9b36dc274138081cf427ba4bbfc | [
"Apache-2.0"
] | 9 | 2019-04-13T03:15:32.000Z | 2021-06-22T09:57:19.000Z | gloox-1.0.22/src/softwareversion.cpp | zhichao281/SuperWisdom | e3bd1608a7aaf9b36dc274138081cf427ba4bbfc | [
"Apache-2.0"
] | null | null | null | gloox-1.0.22/src/softwareversion.cpp | zhichao281/SuperWisdom | e3bd1608a7aaf9b36dc274138081cf427ba4bbfc | [
"Apache-2.0"
] | 8 | 2019-09-12T03:18:05.000Z | 2021-06-22T09:57:22.000Z | /*
Copyright (c) 2008-2017 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distr... | 22.613333 | 85 | 0.59316 | zhichao281 |
4edc531c4c97b1eca2fc6159f3ba060953a91c7a | 2,595 | cpp | C++ | test/analysis/SortedDifferencesTest.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | 2 | 2016-07-17T02:12:44.000Z | 2016-11-22T14:04:55.000Z | test/analysis/SortedDifferencesTest.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | null | null | null | test/analysis/SortedDifferencesTest.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Kyle Treubig
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 28.516484 | 80 | 0.582274 | vimofthevine |
4edd2916ab97bcc85e6cb563a234839fea42708a | 1,735 | cpp | C++ | Graphs/Cycle Detection.cpp | Rand0mUsername/Algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | 2 | 2020-01-10T14:12:03.000Z | 2020-05-28T19:12:21.000Z | Graphs/Cycle Detection.cpp | Rand0mUsername/algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | null | null | null | Graphs/Cycle Detection.cpp | Rand0mUsername/algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | 1 | 2022-01-11T03:14:48.000Z | 2022-01-11T03:14:48.000Z | // RandomUsername (Nikola Jovanovic)
// Depth-First Search for detecting cycles in a graph
#include <bits/stdc++.h>
#define DBG false
#define debug(x) if(DBG) printf("(ln %d) %s = %d\n", __LINE__, #x, x);
#define lld long long
#define ff(i,a,b) for(int i=a; i<=b; i++)
#define fb(i,a,b) for(int i=a; i>=b; i--)
#define ... | 18.263158 | 85 | 0.478963 | Rand0mUsername |
4ee278b6946cb47bbcad9e604ba87c9baacf3621 | 14,049 | cpp | C++ | ministun/ClientCred.cpp | nguyenminh-phuc/ministun | 6b38b0477d229f71d573dfea77a23e29947a2966 | [
"MIT"
] | null | null | null | ministun/ClientCred.cpp | nguyenminh-phuc/ministun | 6b38b0477d229f71d573dfea77a23e29947a2966 | [
"MIT"
] | null | null | null | ministun/ClientCred.cpp | nguyenminh-phuc/ministun | 6b38b0477d229f71d573dfea77a23e29947a2966 | [
"MIT"
] | null | null | null | #include <ministun/ClientCred.h>
#include <ministun/Authenticator.h>
#include <ministun/Utils.h>
using namespace seastar;
namespace ms {
static bool validate_integrity(
const MessageBufferReader &response_reader, const Message &response,
const std::vector<char> &key,
IntegrityAlgorithm algorithm) ... | 47.462838 | 120 | 0.673358 | nguyenminh-phuc |
4ee3f11ceff08f137870b46576fecf8053270974 | 9,640 | cpp | C++ | game/engine.cpp | astrellon/Rouge | 088f55b331284238e807e0562b9cbbed6428c20f | [
"MIT"
] | null | null | null | game/engine.cpp | astrellon/Rouge | 088f55b331284238e807e0562b9cbbed6428c20f | [
"MIT"
] | null | null | null | game/engine.cpp | astrellon/Rouge | 088f55b331284238e807e0562b9cbbed6428c20f | [
"MIT"
] | null | null | null | #include "engine.h"
#include <lua/lua_state.h>
#include <sstream>
#include <log/logger.h>
#include <gfx/gfx_engine.h>
#include <gfx/gfx_camera.h>
#include "game.h"
#include "tile.h"
#include "tile_type.h"
#include "race.h"
#include <lua/wrappers/lua_id_table.h>
namespace am {
namespace game {
Engine *Engine::s... | 19.474747 | 104 | 0.649689 | astrellon |
4eea8e0adab4fc2998e77df1ce12f8f0cbd55a07 | 374 | cc | C++ | utils/crc.cc | Millisman/not365bms.to365m | 7d201663ae5d9cb3f57e7c0efeb57f05fd5b31cd | [
"Apache-2.0"
] | 1 | 2022-03-23T09:04:48.000Z | 2022-03-23T09:04:48.000Z | utils/crc.cc | Millisman/not365bms.to365m | 7d201663ae5d9cb3f57e7c0efeb57f05fd5b31cd | [
"Apache-2.0"
] | null | null | null | utils/crc.cc | Millisman/not365bms.to365m | 7d201663ae5d9cb3f57e7c0efeb57f05fd5b31cd | [
"Apache-2.0"
] | null | null | null | #include "crc.h"
namespace utils {
uint8_t gencrc8(uint8_t *data, uint16_t len) {
uint8_t crc = 0xff;
uint16_t i, j;
for (i = 0; i < len; i++) {
crc ^= data[i];
for (j = 0; j < 8; j++) {
if ((crc & 0x80) != 0)
crc = (uint8_t)((crc << 1) ^ 0x31);
el... | 14.96 | 51 | 0.417112 | Millisman |
4eeab7abeb85f1e9ed258266c4a1bb7d0c495db7 | 1,027 | cpp | C++ | frontend-embedded/src/cpp/api/zermeloappointments.cpp | timeterm/timeterm | db8f46d7c00df2688e20f5ea9d26ceed0f952662 | [
"Apache-2.0"
] | 2 | 2020-07-20T19:57:12.000Z | 2021-03-30T00:32:43.000Z | frontend-embedded/src/cpp/api/zermeloappointments.cpp | timeterm/timeterm | db8f46d7c00df2688e20f5ea9d26ceed0f952662 | [
"Apache-2.0"
] | 3 | 2020-09-09T09:41:25.000Z | 2020-09-09T09:41:37.000Z | frontend-embedded/src/cpp/api/zermeloappointments.cpp | timeterm/timeterm | db8f46d7c00df2688e20f5ea9d26ceed0f952662 | [
"Apache-2.0"
] | 1 | 2020-11-24T11:35:47.000Z | 2020-11-24T11:35:47.000Z | #include "zermeloappointments.h"
#include <QJsonArray>
#include <QJsonObject>
void ZermeloAppointments::append(const ZermeloAppointment &appointment)
{
m_data.append(appointment);
}
void ZermeloAppointments::append(const QList<ZermeloAppointment> &appointments)
{
m_data.append(appointments);
}
QList<Zermelo... | 22.822222 | 79 | 0.647517 | timeterm |
4ef4a22a441b0e5dc03ca8f9d92000814ce1912d | 3,211 | cc | C++ | INET_EC/physicallayer/apskradio/packetlevel/APSKDimensionalTransmitter.cc | LarryNguyen/ECSim- | 0d3f848642e49845ed7e4c7b97dd16bd3d65ede5 | [
"Apache-2.0"
] | 12 | 2020-11-30T08:04:23.000Z | 2022-03-23T11:49:26.000Z | Simulation/OMNeT++/inet/src/inet/physicallayer/apskradio/packetlevel/APSKDimensionalTransmitter.cc | StarStuffSteve/masters-research-project | 47c1874913d0961508f033ca9a1144850eb8f8b7 | [
"Apache-2.0"
] | 1 | 2021-01-26T10:49:56.000Z | 2021-01-31T16:58:52.000Z | Simulation/OMNeT++/inet/src/inet/physicallayer/apskradio/packetlevel/APSKDimensionalTransmitter.cc | StarStuffSteve/masters-research-project | 47c1874913d0961508f033ca9a1144850eb8f8b7 | [
"Apache-2.0"
] | 8 | 2021-03-15T02:05:51.000Z | 2022-03-21T13:14:02.000Z | //
// Copyright (C) 2013 OpenSim Ltd.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... | 46.536232 | 311 | 0.782311 | LarryNguyen |
4ef7721ecd7e4596f1ce4ce490607201125ac88e | 1,066 | cpp | C++ | Code/Editor/EditorEngineProcessFramework/IPC/SyncObject.cpp | alinoctavian/ezEngine | 0312c8d777c05ac58911f3fa879e4fd7efcfcb66 | [
"MIT"
] | 1 | 2021-06-23T14:44:02.000Z | 2021-06-23T14:44:02.000Z | Code/Editor/EditorEngineProcessFramework/IPC/SyncObject.cpp | alinoctavian/ezEngine | 0312c8d777c05ac58911f3fa879e4fd7efcfcb66 | [
"MIT"
] | null | null | null | Code/Editor/EditorEngineProcessFramework/IPC/SyncObject.cpp | alinoctavian/ezEngine | 0312c8d777c05ac58911f3fa879e4fd7efcfcb66 | [
"MIT"
] | 1 | 2022-03-28T15:57:46.000Z | 2022-03-28T15:57:46.000Z | #include <EditorEngineProcessFrameworkPCH.h>
#include <EditorEngineProcessFramework/EngineProcess/EngineProcessDocumentContext.h>
#include <EditorEngineProcessFramework/IPC/SyncObject.h>
#include <Foundation/Serialization/ReflectionSerializer.h>
#include <ToolsFoundation/Document/Document.h>
// clang-format off
EZ_BE... | 24.227273 | 117 | 0.809568 | alinoctavian |
4efcb3f23c1141ab71ccd08370fa054ec7b313ae | 4,896 | hpp | C++ | XMPFiles/source/FormatSupport/Reconcile_Impl.hpp | ThE-TiGeR/XMP-Toolkit | 064cde77086c1e13a8524f63c461b5cc650de15f | [
"BSD-3-Clause"
] | 4 | 2018-08-06T07:28:05.000Z | 2021-08-16T03:10:37.000Z | XMPFiles/source/FormatSupport/Reconcile_Impl.hpp | ThE-TiGeR/XMP-Toolkit | 064cde77086c1e13a8524f63c461b5cc650de15f | [
"BSD-3-Clause"
] | null | null | null | XMPFiles/source/FormatSupport/Reconcile_Impl.hpp | ThE-TiGeR/XMP-Toolkit | 064cde77086c1e13a8524f63c461b5cc650de15f | [
"BSD-3-Clause"
] | null | null | null | #ifndef __Reconcile_Impl_hpp__
#define __Reconcile_Impl_hpp__ 1
// =================================================================================================
// ADOBE SYSTEMS INCORPORATED
// Copyright 2006 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and dist... | 45.757009 | 145 | 0.673407 | ThE-TiGeR |
f607d3bd918d0c2d728353afb7b01e8c8fcc45b1 | 2,131 | cpp | C++ | cell_compiler/ast_node_base.cpp | chaosengineer/CellGame | f22cf8b5dadc4396a39640c79764eb7351e670a4 | [
"BSL-1.0"
] | 1 | 2015-09-18T13:38:12.000Z | 2015-09-18T13:38:12.000Z | cell_compiler/ast_node_base.cpp | chaosengineer/CellGame | f22cf8b5dadc4396a39640c79764eb7351e670a4 | [
"BSL-1.0"
] | null | null | null | cell_compiler/ast_node_base.cpp | chaosengineer/CellGame | f22cf8b5dadc4396a39640c79764eb7351e670a4 | [
"BSL-1.0"
] | null | null | null | /*
Copyright (C) 2014 Chaos Software
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 "ast_node_base.h"
#include "ast_visitor.h"
#include "common.h"
namespace chaos { namespace cell {
///////////////////... | 19.026786 | 87 | 0.610511 | chaosengineer |
f60988f6cd01311fc71e509fa83695014c6ce815 | 4,105 | cpp | C++ | src/rpc/handlers/AccountInfo.cpp | crypticrabbit/clio | ffc8779a14f22e25830e801487e898cec6c2f5c2 | [
"ISC"
] | null | null | null | src/rpc/handlers/AccountInfo.cpp | crypticrabbit/clio | ffc8779a14f22e25830e801487e898cec6c2f5c2 | [
"ISC"
] | null | null | null | src/rpc/handlers/AccountInfo.cpp | crypticrabbit/clio | ffc8779a14f22e25830e801487e898cec6c2f5c2 | [
"ISC"
] | null | null | null | #include <ripple/protocol/Indexes.h>
#include <ripple/protocol/STLedgerEntry.h>
#include <boost/json.hpp>
#include <backend/BackendInterface.h>
#include <rpc/RPCHelpers.h>
// {
// account: <ident>,
// strict: <bool> // optional (default false)
// // if true only allow public keys ... | 33.373984 | 80 | 0.605116 | crypticrabbit |
f60de4f85f8d736983c2719f499e27b84ca6190c | 8,004 | hpp | C++ | SOLVER/src/shared/data_structure/RTreeND.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 8 | 2020-06-05T01:13:20.000Z | 2022-02-24T05:11:50.000Z | SOLVER/src/shared/data_structure/RTreeND.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 24 | 2020-10-21T19:03:38.000Z | 2021-11-17T21:32:02.000Z | SOLVER/src/shared/data_structure/RTreeND.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 5 | 2020-06-21T11:54:22.000Z | 2021-06-23T01:02:39.000Z | //
// RTreeND.hpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 9/7/19.
// Copyright © 2019 Kuangdai Leng. All rights reserved.
//
// boost RTree for searching nearest points
#ifndef RTreeND_hpp
#define RTreeND_hpp
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
#include <boost/geo... | 32.404858 | 79 | 0.562719 | nicklinyi |
f60dedf91969d68787ea964f2de82309c6128ec1 | 10,158 | cpp | C++ | src/game/AdvancedHitModel.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 25 | 2016-05-27T11:53:58.000Z | 2021-10-17T00:13:41.000Z | src/game/AdvancedHitModel.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 1 | 2016-07-09T05:25:03.000Z | 2016-07-09T05:25:03.000Z | src/game/AdvancedHitModel.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 16 | 2016-05-28T23:06:50.000Z | 2022-01-26T13:47:12.000Z | #include <bgame/impl.h>
namespace {
///////////////////////////////////////////////////////////////////////////////
void
__fastAddPointToBounds( const vec3_t v, vec3_t mins, vec3_t maxs )
{
if (v[0] < mins[0])
mins[0] = v[0];
else if (v[0] > maxs[0])
maxs[0] = v[0];
if (v[1] < mins[1])
... | 39.525292 | 103 | 0.638118 | jumptohistory |
f61130d0059d8f2761b73d121c7389f97ee34bd0 | 7,835 | cpp | C++ | Source/fileexplorer.cpp | cyberCBM/ADB_UI_QT | 33fef8bcc3d0b2fabdcfb4e3dbe694b45c66f886 | [
"MIT"
] | 1 | 2022-03-22T10:13:26.000Z | 2022-03-22T10:13:26.000Z | Source/fileexplorer.cpp | cyberCBM/ADB_UI_QT | 33fef8bcc3d0b2fabdcfb4e3dbe694b45c66f886 | [
"MIT"
] | null | null | null | Source/fileexplorer.cpp | cyberCBM/ADB_UI_QT | 33fef8bcc3d0b2fabdcfb4e3dbe694b45c66f886 | [
"MIT"
] | null | null | null | #include "fileexplorer.hpp"
#include "ui_FileExplorer.h"
FileExplorer::FileExplorer(QWidget *parent) :
QWidget(parent),
m_UI(new Ui::FileExplorer),
m_shellProcess(nullptr),
m_ADBProcess(nullptr)
{
m_UI->setupUi(this);
m_slModel = new QStringListModel(this);
// set current dir
m_UI->cu... | 28.805147 | 176 | 0.629866 | cyberCBM |
f6133a35dfbf91b40d3b2db227f6f9e66cae933b | 937 | cpp | C++ | XCore/CCore/src/print/PrintFile.cpp | SergeyStrukov/CCore-3-xx | 820507e78f8aa35ca05761e00e060c8f64c59af5 | [
"BSL-1.0"
] | 8 | 2017-12-21T07:00:16.000Z | 2020-04-02T09:05:55.000Z | XCore/CCore/src/print/PrintFile.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | XCore/CCore/src/print/PrintFile.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | 1 | 2020-03-30T09:54:18.000Z | 2020-03-30T09:54:18.000Z | /* PrintFile.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 3.00
//
// Tag: XCore
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// Copyrigh... | 21.295455 | 90 | 0.564568 | SergeyStrukov |
f6133ee850c7b5a654501cc42957d2d0bcf52a8e | 769 | cpp | C++ | BinarySearch/countrotationinsortedarray.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 4 | 2020-12-29T09:27:10.000Z | 2022-02-12T14:20:23.000Z | BinarySearch/countrotationinsortedarray.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-27T06:15:28.000Z | 2021-11-27T06:15:28.000Z | BinarySearch/countrotationinsortedarray.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-17T21:42:57.000Z | 2021-11-17T21:42:57.000Z | /*
Rotation
https://practice.geeksforgeeks.org/problems/rotation4723/1#
*/
class Solution
{
public:
//Time: O(nlogn), Space: O(1)
int findKRotation(int arr[], int n)
{
if (arr[0] < arr[n - 1])
return 0;
int low = 0, high = n - 1;
int result = 0;
while (low <= hi... | 24.03125 | 63 | 0.429129 | thisisnitish |
f615f00d37ff0fdd2db18a156e997d3c63d426e4 | 922 | cpp | C++ | SimpleTowerDefense/Tween.cpp | Hell-Tractor/SimpleTowerDefense | 2dbb043396497a1e97b22ddf355634f9f4b08f0c | [
"MIT"
] | null | null | null | SimpleTowerDefense/Tween.cpp | Hell-Tractor/SimpleTowerDefense | 2dbb043396497a1e97b22ddf355634f9f4b08f0c | [
"MIT"
] | null | null | null | SimpleTowerDefense/Tween.cpp | Hell-Tractor/SimpleTowerDefense | 2dbb043396497a1e97b22ddf355634f9f4b08f0c | [
"MIT"
] | null | null | null | #include "Tween.h"
#include "GameEngine.h"
TweenBase::TweenBase() {
_state = STATE::CREATED;
_next = nullptr;
}
TweenBase::~TweenBase() {
}
TweenBase* TweenBase::run() {
if (_state != STATE::CREATED)
throw std::runtime_error("current state cannot be executed");
_state = STATE::EXECUTING;
GameEngine::getInstan... | 18.816327 | 76 | 0.658351 | Hell-Tractor |
f62455f62e038d57bd0b6fb38324d543f6a50b95 | 438 | cpp | C++ | PlatformTestSDL2/PlatformTestSDL2/BlockTest.cpp | MitchellHodzen/SDL2PlatformEngine | d4fccf4595360d6cd7c3ab184b6231f8338b4fb0 | [
"MIT"
] | null | null | null | PlatformTestSDL2/PlatformTestSDL2/BlockTest.cpp | MitchellHodzen/SDL2PlatformEngine | d4fccf4595360d6cd7c3ab184b6231f8338b4fb0 | [
"MIT"
] | null | null | null | PlatformTestSDL2/PlatformTestSDL2/BlockTest.cpp | MitchellHodzen/SDL2PlatformEngine | d4fccf4595360d6cd7c3ab184b6231f8338b4fb0 | [
"MIT"
] | null | null | null | #include "BlockTest.h"
BlockTest::BlockTest(float x, float y, int collWidth, int collHeight, float collXOffset, float collYOffset, bool isTrigger) : Entity(x, y, collWidth, collHeight, collXOffset, collYOffset, isTrigger)
{
visualComponent = new SingleImageController();
}
BlockTest::~BlockTest()
{
}
... | 24.333333 | 199 | 0.748858 | MitchellHodzen |
f624d684bd036f9e221adf5d211cc70ee1cba725 | 3,288 | cpp | C++ | src/widgets/groupbox.cpp | strandfield/yasl | d109eb3166184febfe48d1a2d1c96683c4a813f7 | [
"MIT"
] | 1 | 2020-12-28T01:41:35.000Z | 2020-12-28T01:41:35.000Z | src/widgets/groupbox.cpp | strandfield/yasl | d109eb3166184febfe48d1a2d1c96683c4a813f7 | [
"MIT"
] | null | null | null | src/widgets/groupbox.cpp | strandfield/yasl | d109eb3166184febfe48d1a2d1c96683c4a813f7 | [
"MIT"
] | null | null | null | // Copyright (C) 2018 Vincent Chambrin
// This file is part of the Yasl project
// For conditions of distribution and use, see copyright notice in LICENSE
#include "yasl/widgets/groupbox.h"
#include "yasl/common/binding/default_arguments.h"
#include "yasl/common/binding/namespace.h"
#include "yasl/common/binding/newf... | 41.620253 | 111 | 0.730231 | strandfield |
f625d9982feeb771f99aaa79f9d814b46cfb9f2d | 208 | cpp | C++ | rotLeft/tests.cpp | irvinec/interview-prep | 83471918c19319b0f873e94f611fea95e97c7ab3 | [
"MIT"
] | null | null | null | rotLeft/tests.cpp | irvinec/interview-prep | 83471918c19319b0f873e94f611fea95e97c7ab3 | [
"MIT"
] | 1 | 2020-02-15T17:26:01.000Z | 2020-02-17T00:58:05.000Z | rotLeft/tests.cpp | irvinec/interview-prep | 83471918c19319b0f873e94f611fea95e97c7ab3 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch2/catch.hpp"
#include "problem.hpp"
TEST_CASE("Case 1")
{
//REQUIRE( problem() == 0 );
}
| 20.8 | 97 | 0.673077 | irvinec |
f626881020abf752dd4bf7398fbf9b788ab5b4a8 | 2,946 | cpp | C++ | Code/Engine/Render/ResourceLoaders/ResourceLoader_RenderTexture.cpp | JuanluMorales/KRG | f3a11de469586a4ef0db835af4bc4589e6b70779 | [
"MIT"
] | 419 | 2022-01-27T19:37:43.000Z | 2022-03-31T06:14:22.000Z | Code/Engine/Render/ResourceLoaders/ResourceLoader_RenderTexture.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | 2 | 2022-01-28T20:35:33.000Z | 2022-03-13T17:42:52.000Z | Code/Engine/Render/ResourceLoaders/ResourceLoader_RenderTexture.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | 20 | 2022-01-27T20:41:02.000Z | 2022-03-26T16:16:57.000Z | #include "ResourceLoader_RenderTexture.h"
#include "System/Core/Serialization/BinaryArchive.h"
#include "System/Core/Logging/Log.h"
//-------------------------------------------------------------------------
namespace KRG::Render
{
bool TextureLoader::LoadInternal( ResourceID const& resID, Resource::ResourceRecor... | 40.356164 | 191 | 0.635098 | JuanluMorales |
f62d3213be93fda42f91133362d9a277b3d12413 | 1,417 | cpp | C++ | C++/Postorder Traversal (Iterative).cpp | sidpro-hash/Code-Vault | 35700b0f1247a4b99daaf5341b7421bb5e737320 | [
"MIT"
] | 8 | 2021-01-11T16:10:31.000Z | 2021-04-12T18:32:37.000Z | C++/Postorder Traversal (Iterative).cpp | sidpro-hash/Code-Vault | 35700b0f1247a4b99daaf5341b7421bb5e737320 | [
"MIT"
] | null | null | null | C++/Postorder Traversal (Iterative).cpp | sidpro-hash/Code-Vault | 35700b0f1247a4b99daaf5341b7421bb5e737320 | [
"MIT"
] | null | null | null | //============================================================================
// Name : Postorder Traversal (Iterative).cpp
// Author : SidPro
// Version : 1.0
// Description :
/*
Given a binary tree. Find the postorder traversal of the tree without using recursion.
Postorder Traversal (Iterative)
1. ... | 24.859649 | 86 | 0.515879 | sidpro-hash |
f62d5ae761638f8b9ad1f3bde8123377a83694c1 | 63,460 | cpp | C++ | UnitTests/CollideShapes.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | UnitTests/CollideShapes.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | UnitTests/CollideShapes.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* 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 to anyone to use this sof... | 47.147103 | 142 | 0.674708 | louis-langholtz |
f62f8ee3cd5f6281b7f27aa9ed8aded6e7734705 | 4,829 | cpp | C++ | ekbase/base/eventmanager.cpp | artintexo/exkit | 18d71e84d688060f0c30af456dcbec5252ebbdac | [
"MIT"
] | 2 | 2019-05-20T10:02:16.000Z | 2021-01-04T06:18:55.000Z | ekbase/base/eventmanager.cpp | artintexo/exkit | 18d71e84d688060f0c30af456dcbec5252ebbdac | [
"MIT"
] | null | null | null | ekbase/base/eventmanager.cpp | artintexo/exkit | 18d71e84d688060f0c30af456dcbec5252ebbdac | [
"MIT"
] | 3 | 2020-09-07T06:44:54.000Z | 2022-01-01T11:52:33.000Z | #include "eventmanager.h"
#include "context.h"
#include "datetime.h"
#include "holder.h"
#include "simulator/execsim.h"
#include <thread>
EventManager::EventManager(Holder *hld)
: hld(hld), started(false)
{
}
EventManager::~EventManager()
{
}
void EventManager::Process()
{
int esize = execQueue.GetSize();
... | 24.637755 | 107 | 0.592048 | artintexo |
f6350a616bc3fdc2a54fb2378f175c7dc01f8d3c | 860 | cpp | C++ | king/src/king/Render/RenderLayer.cpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | 3 | 2017-03-10T13:57:25.000Z | 2017-05-31T19:05:35.000Z | king/src/king/Render/RenderLayer.cpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | null | null | null | king/src/king/Render/RenderLayer.cpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | null | null | null |
#include <king/Render/RenderLayer.hpp>
#include <algorithm>
namespace king {
RenderLayer::RenderLayer(std::string name) {
_name = name;
}
void RenderLayer::addRenderer(Renderer * rend) {
rend->_rendererIndex = _renderers.size();
_renderers.push_back(rend);
_depthOrderDirty = true;
}
void RenderLay... | 14.333333 | 62 | 0.669767 | tobiasbu |
f63e3ccd1e36fe047097f79f1c2f674dfc7efcbd | 12,554 | cpp | C++ | Tool/Source/lostness.cpp | cferguson-uu/storyline-scaffolding | 33422e3939c86d41ef0b3b885e116966618d24fc | [
"MIT"
] | 1 | 2019-01-26T04:40:12.000Z | 2019-01-26T04:40:12.000Z | Tool/Source/lostness.cpp | cferguson-uu/storyline-scaffolding | 33422e3939c86d41ef0b3b885e116966618d24fc | [
"MIT"
] | null | null | null | Tool/Source/lostness.cpp | cferguson-uu/storyline-scaffolding | 33422e3939c86d41ef0b3b885e116966618d24fc | [
"MIT"
] | null | null | null | #include "lostness.h"
#include <QMessageBox>
Lostness::Lostness()
{
}
float Lostness::getLostnessValue(int minSteps, int totalSteps, int uniqueSteps)
{
/*qDebug() << "Minimum number of nodes (R): " << minSteps;
qDebug() << "Total number of nodes visited (S): " << totalSteps;
qDebug() << "Number of differ... | 36.074713 | 180 | 0.528278 | cferguson-uu |
f63ea4a70e1efddae8fa866ff1a0557be268c172 | 1,328 | cpp | C++ | src/netlib/unencrypted_tcp_server_socket.cpp | axilmar/netlib | ab1ad27bd8adaffbcb4c481b7972324202c8882e | [
"Apache-2.0"
] | null | null | null | src/netlib/unencrypted_tcp_server_socket.cpp | axilmar/netlib | ab1ad27bd8adaffbcb4c481b7972324202c8882e | [
"Apache-2.0"
] | null | null | null | src/netlib/unencrypted_tcp_server_socket.cpp | axilmar/netlib | ab1ad27bd8adaffbcb4c481b7972324202c8882e | [
"Apache-2.0"
] | null | null | null | #include "platform.hpp"
#include <stdexcept>
#include <system_error>
#include "netlib/unencrypted_tcp_server_socket.hpp"
namespace netlib::unencrypted::tcp {
//Creates a socket, binds it to the given address, and listens for connections.
server_socket::server_socket(const socket_address& this_addr, int back... | 32.390244 | 110 | 0.658886 | axilmar |
f6421de98171e330e6862fe425cfca01a540e9fe | 4,464 | cpp | C++ | MonoNative/mscorlib/System/Security/Permissions/mscorlib_System_Security_Permissions_PublisherIdentityPermission.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative/mscorlib/System/Security/Permissions/mscorlib_System_Security_Permissions_PublisherIdentityPermission.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative/mscorlib/System/Security/Permissions/mscorlib_System_Security_Permissions_PublisherIdentityPermission.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | #include <mscorlib/System/Security/Permissions/mscorlib_System_Security_Permissions_PublisherIdentityPermission.h>
#include <mscorlib/System/Security/mscorlib_System_Security_SecurityElement.h>
#include <mscorlib/System/mscorlib_System_String.h>
#include <mscorlib/System/mscorlib_System_Type.h>
namespace mscorlib
{
... | 48.521739 | 214 | 0.741935 | brunolauze |
f643f02ed2c06ae62b825a6fba909a074e338fc6 | 10,244 | cc | C++ | src/lib/dhcpsrv/pgsql_exchange.cc | gumingpo/kea-latest | ca64954cd71dd544e7c92a0aa366dfc0f79d4ce1 | [
"Apache-2.0"
] | 1 | 2017-08-24T19:55:21.000Z | 2017-08-24T19:55:21.000Z | src/lib/dhcpsrv/pgsql_exchange.cc | Acidburn0zzz/kea | 3036e88d4ff730919cd7d2fb50a961a5d33bf390 | [
"Apache-2.0"
] | null | null | null | src/lib/dhcpsrv/pgsql_exchange.cc | Acidburn0zzz/kea | 3036e88d4ff730919cd7d2fb50a961a5d33bf390 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <dhcpsrv/pgsql_exchange.h>
#include... | 34.26087 | 80 | 0.586392 | gumingpo |
f649350753b5dca6de541481bd1217bfa4a53c45 | 579 | hpp | C++ | player/playerlib/AudioStream.hpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | player/playerlib/AudioStream.hpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | player/playerlib/AudioStream.hpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | /*
* This file is part of FFL project.
*
* The MIT License (MIT)
* Copyright (C) 2017-2018 zhufeifei All rights reserved.
*
* Audioreader/Stream.hpp
* Created by zhufeifei(34008081@qq.com) on 2018/06/22
* https://github.com/zhenfei2016/FFL-v2.git
*
*
*/
#ifndef _AUDIO_STREAM_HPP_
#define _AUDIO_STREAM_HPP_
#... | 18.09375 | 57 | 0.696028 | zhenfei2016 |
f64b0a11963a2fa46d8b642a91ad7911c7948022 | 231 | cpp | C++ | CppPrimer/limits.cpp | aba-ai-learning/DailyStudy | b04d066582af930d0116e6b1a39b0a7fffb5dda9 | [
"MIT"
] | 1 | 2019-12-18T15:03:33.000Z | 2019-12-18T15:03:33.000Z | CppPrimer/limits.cpp | aba-ai-learning/DailyStudy | b04d066582af930d0116e6b1a39b0a7fffb5dda9 | [
"MIT"
] | null | null | null | CppPrimer/limits.cpp | aba-ai-learning/DailyStudy | b04d066582af930d0116e6b1a39b0a7fffb5dda9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <limits.h>
int main()
{
using namespace std;
cout << "MAX INT " << INT_MAX << endl;
cout << "MIN INT " << INT_MIN << endl;
cout << "MAX LONG " << LONG_MAX << endl;
return 0;
} | 17.769231 | 44 | 0.541126 | aba-ai-learning |
f64c1e0d0c2d69ddae79b1745e986581c1b0699e | 4,314 | hpp | C++ | src/lib/utils/cuckoo_hashtable.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/lib/utils/cuckoo_hashtable.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/lib/utils/cuckoo_hashtable.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #pragma once
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "murmur_hash.hpp"
#include "type_comparison.hpp"
#include "types.hpp"
#include "utils/assert.hpp"
namespace opossum {
/*
Insert-only implementation of Cuckoo Hash Table. The HashTable is currently only used for HashJoins,... | 34.238095 | 115 | 0.697033 | IanJamesMcKay |
f64c205fd51e5d4bb7d645b3fa5b0f130353c293 | 8,370 | cpp | C++ | Broken Engine/Source/ScriptingAudio.cpp | WitcherProj3Game/Broken-Engine | 71a261bbaaef80b27a9da94f4737fd480caf6e0d | [
"MIT"
] | 5 | 2020-02-21T14:16:05.000Z | 2021-12-01T08:01:08.000Z | Broken Engine/Source/ScriptingAudio.cpp | WitcherProj3Game/Broken-Engine | 71a261bbaaef80b27a9da94f4737fd480caf6e0d | [
"MIT"
] | 235 | 2020-02-21T19:23:32.000Z | 2020-06-09T16:13:46.000Z | Broken Engine/Source/ScriptingAudio.cpp | Broken-Gem-Studio/Broken-Engine | 71a261bbaaef80b27a9da94f4737fd480caf6e0d | [
"MIT"
] | null | null | null | #include "ScriptingAudio.h"
// -- Modules --
#include "Application.h"
#include "ModuleInput.h"
#include "ModuleScripting.h"
#include "ModuleRenderer3D.h"
#include "ModuleAudio.h"
#include "ModuleSceneManager.h"
// -- Components --
#include "GameObject.h"
#include "ComponentParticleEmitter.h"
#include "ComponentDynami... | 29.0625 | 104 | 0.719594 | WitcherProj3Game |
f64db272660f0099bc1e634af212e2ee6102eddf | 1,509 | hpp | C++ | tket/src/TokenSwapping/include/TokenSwapping/SwapFunctions.hpp | CQCL/tket | 3f3d7c24d9a6c9cfd85966c13dcccc8a13f92adb | [
"Apache-2.0"
] | 104 | 2021-09-15T08:16:25.000Z | 2022-03-28T21:19:00.000Z | tket/src/TokenSwapping/include/TokenSwapping/SwapFunctions.hpp | CQCL/tket | 3f3d7c24d9a6c9cfd85966c13dcccc8a13f92adb | [
"Apache-2.0"
] | 109 | 2021-09-16T17:14:22.000Z | 2022-03-29T06:48:40.000Z | tket/src/TokenSwapping/include/TokenSwapping/SwapFunctions.hpp | CQCL/tket | 3f3d7c24d9a6c9cfd85966c13dcccc8a13f92adb | [
"Apache-2.0"
] | 8 | 2021-10-02T13:47:34.000Z | 2022-03-17T15:36:56.000Z | // Copyright 2019-2022 Cambridge Quantum Computing
//
// 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... | 32.106383 | 76 | 0.727634 | CQCL |
f65468dd8ebcb580f3665fc6af66fec8e1654e9a | 3,184 | cpp | C++ | GTE/Graphics/DX11/DXGIAdapter.cpp | tranthaiphi/GeometricTools | 451e412a0715dbb4fcafbe486ca33d84a404b78d | [
"BSL-1.0"
] | 452 | 2020-09-16T02:23:30.000Z | 2022-03-27T23:11:38.000Z | GTE/Graphics/DX11/DXGIAdapter.cpp | tranthaiphi/GeometricTools | 451e412a0715dbb4fcafbe486ca33d84a404b78d | [
"BSL-1.0"
] | 34 | 2020-10-11T03:56:17.000Z | 2022-03-04T17:29:34.000Z | GTE/Graphics/DX11/DXGIAdapter.cpp | tranthaiphi/GeometricTools | 451e412a0715dbb4fcafbe486ca33d84a404b78d | [
"BSL-1.0"
] | 91 | 2020-09-28T16:59:40.000Z | 2022-03-25T16:20:06.000Z | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2021
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 4.0.2020.04.13
#include <Graphics/DX11/GTGraphicsDX11PCH.h>
#i... | 25.886179 | 75 | 0.618405 | tranthaiphi |
f658d646ae5231170bc2d5737ff53d4351efe769 | 7,026 | cpp | C++ | Source/TPCE/Private/Kismet/KismetMathLibraryExtensions.cpp | DrawnzerGames/TPCE | 538145bbce284b323514fde826d27c3107f242ee | [
"MIT"
] | null | null | null | Source/TPCE/Private/Kismet/KismetMathLibraryExtensions.cpp | DrawnzerGames/TPCE | 538145bbce284b323514fde826d27c3107f242ee | [
"MIT"
] | null | null | null | Source/TPCE/Private/Kismet/KismetMathLibraryExtensions.cpp | DrawnzerGames/TPCE | 538145bbce284b323514fde826d27c3107f242ee | [
"MIT"
] | null | null | null | // This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
#include "Kismet/KismetMathLibraryExtensions.h"
#include "Math/MathExtensions.h"
UKismetMathLibraryEx::UKismetMathLibraryEx(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer... | 24.480836 | 192 | 0.737262 | DrawnzerGames |
f659be47acda1a4ea8659692337055272df1a465 | 590 | cpp | C++ | 04.string-and-streams/demo/06.std-string-Substring-Erase-Replace.cpp | ihristova11/cpp-fundamentals | a72a0fb9e302921760a81f0a3436039b34b0981f | [
"MIT"
] | null | null | null | 04.string-and-streams/demo/06.std-string-Substring-Erase-Replace.cpp | ihristova11/cpp-fundamentals | a72a0fb9e302921760a81f0a3436039b34b0981f | [
"MIT"
] | null | null | null | 04.string-and-streams/demo/06.std-string-Substring-Erase-Replace.cpp | ihristova11/cpp-fundamentals | a72a0fb9e302921760a81f0a3436039b34b0981f | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
using namespace std;
int main() {
string sentence = "the quick brown fox jumps over the lazy dog";
string partOfSentenceToEnd = sentence.substr(4);
cout << partOfSentenceToEnd << endl;
string partOfSentence = sentence.substr(4, 10);
cout << partOfSentence << en... | 24.583333 | 82 | 0.647458 | ihristova11 |
2cf091b091051e5423494eb1e02d092dd5a15aea | 1,727 | cpp | C++ | lib/sept/ctl/Output.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | lib/sept/ctl/Output.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | lib/sept/ctl/Output.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | // 2020.08.04 - Victor Dods
#include "sept/ctl/Output.hpp"
namespace sept {
namespace ctl {
OutputTerm_c::operator lvd::OstreamDelegate () const {
return lvd::OstreamDelegate::OutFunc([this](std::ostream &out){
DataPrintCtx ctx;
print(out, ctx, *this);
});
}
OutputType_c OutputType;
Output_c... | 26.569231 | 105 | 0.796178 | vdods |
2cf420cc0c66029bfcb1dd1b4f961e3c07a7679f | 2,815 | cpp | C++ | posix_host/core/bitmanip.cpp | hodea/hodea-lib-testing | 5a51c1146a51a951e454c8c0350c902080e054d7 | [
"MIT"
] | null | null | null | posix_host/core/bitmanip.cpp | hodea/hodea-lib-testing | 5a51c1146a51a951e454c8c0350c902080e054d7 | [
"MIT"
] | null | null | null | posix_host/core/bitmanip.cpp | hodea/hodea-lib-testing | 5a51c1146a51a951e454c8c0350c902080e054d7 | [
"MIT"
] | null | null | null | // Copyright (c) 2017, Franz Hollerer.
// SPDX-License-Identifier: MIT
#include <iostream>
#include <catch/catch.hpp>
#include <hodea/core/cstdint.hpp>
#include <hodea/core/bitmanip.hpp>
using namespace hodea;
TEST_CASE("Bit manipulation: bit_to_mask()", "[bit_to_mask]")
{
REQUIRE(bit_to_msk(3) == 0x08U);
}
TES... | 19.823944 | 65 | 0.591474 | hodea |
2cf5b8f1cca93a31ed8ae822a232ce841e58fa94 | 268 | cpp | C++ | UnnamedEngine/Sources/Engine/Base/Managers/SystemAdmin.cpp | minimumcut/UnnamedEngine | 44a9eaaef6284f7d93e7f42fd2e693d37d528e0f | [
"MIT"
] | 4 | 2017-11-24T05:09:54.000Z | 2020-10-21T02:48:22.000Z | UnnamedEngine/Sources/Engine/Base/Managers/SystemAdmin.cpp | minimumcut/UnnamedEngine | 44a9eaaef6284f7d93e7f42fd2e693d37d528e0f | [
"MIT"
] | null | null | null | UnnamedEngine/Sources/Engine/Base/Managers/SystemAdmin.cpp | minimumcut/UnnamedEngine | 44a9eaaef6284f7d93e7f42fd2e693d37d528e0f | [
"MIT"
] | 2 | 2018-01-13T07:49:58.000Z | 2020-10-21T02:48:25.000Z | #include "SystemAdmin.h"
#include "Engine/Base/Client/Context.h"
SystemAdmin::SystemAdmin()
{
}
void SystemAdmin::Update(float dt, Ptr<EntityAdmin> entityAdmin)
{
#ifdef BUILD_MT
#else
for(auto& system : mSystems)
{
system->Update(dt, entityAdmin);
}
#endif
}
| 14.105263 | 64 | 0.720149 | minimumcut |
2cffc87b11a38509dfb97f32cc18ede1e1366f01 | 5,576 | cpp | C++ | src/sched/cache/key.cpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | src/sched/cache/key.cpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | src/sched/cache/key.cpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2016-2019 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 law or agreed to in w... | 31.502825 | 83 | 0.592719 | mshiryaev |
fa019373beda5563d260b1e6da940b1621d77061 | 502 | hpp | C++ | pythran/pythonic/__dispatch__/conjugate.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__dispatch__/conjugate.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__dispatch__/conjugate.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_DISPATCH_CONJUGATE_HPP
#define PYTHONIC_DISPATCH_CONJUGATE_HPP
#include "pythonic/include/__dispatch__/conjugate.hpp"
#include "pythonic/numpy/conjugate.hpp"
#include "pythonic/utils/functor.hpp"
namespace pythonic
{
namespace __dispatch__
{
template <class Any>
auto conjugate(Any const... | 20.08 | 80 | 0.737052 | xmar |
fa026ad5e431b22e7beab1c59a9d20a830e10801 | 2,330 | cpp | C++ | Snake/Game/Components/TextComponent.cpp | danielricci/Snake | f6e1e8ccb7a9f7561ae5153a3b26c7588b19457b | [
"MIT"
] | 2 | 2020-03-02T13:17:53.000Z | 2020-05-09T06:02:20.000Z | Snake/Game/Components/TextComponent.cpp | danielricci/Snake | f6e1e8ccb7a9f7561ae5153a3b26c7588b19457b | [
"MIT"
] | 44 | 2019-09-14T03:29:15.000Z | 2020-05-09T05:57:20.000Z | Snake/Game/Components/TextComponent.cpp | danielricci/snake | f6e1e8ccb7a9f7561ae5153a3b26c7588b19457b | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2020 Daniel Ricci {@literal <thedanny09@icloud.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, including without limitation th... | 34.776119 | 114 | 0.6897 | danielricci |
fa034e86dcbd291b4a46fa1939ea5cb555a0de74 | 602 | cpp | C++ | advanced/1005.cpp | Gongyihang/PAT | 7425be22b0a844fb7171560e034fd7a867680b49 | [
"MIT"
] | null | null | null | advanced/1005.cpp | Gongyihang/PAT | 7425be22b0a844fb7171560e034fd7a867680b49 | [
"MIT"
] | null | null | null | advanced/1005.cpp | Gongyihang/PAT | 7425be22b0a844fb7171560e034fd7a867680b49 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
string num;
cin >> num;
long long sum = 0;
string s[10] = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" };
for (int i = 0; i < (int)num.... | 22.296296 | 102 | 0.471761 | Gongyihang |
fa04f0fe0d063addc79435db273b32811793d107 | 7,877 | cpp | C++ | mordor/pq/result.cpp | NoevilMe/mordor | d1963c0a8ee15524462ad5d01cb859e9d7706c1e | [
"BSD-3-Clause"
] | 200 | 2015-01-11T22:31:21.000Z | 2022-03-23T08:48:53.000Z | mordor/pq/result.cpp | NoevilMe/mordor | d1963c0a8ee15524462ad5d01cb859e9d7706c1e | [
"BSD-3-Clause"
] | 3 | 2018-11-27T15:16:46.000Z | 2022-01-14T15:40:31.000Z | mordor/pq/result.cpp | NoevilMe/mordor | d1963c0a8ee15524462ad5d01cb859e9d7706c1e | [
"BSD-3-Clause"
] | 31 | 2015-02-12T04:22:43.000Z | 2021-12-24T09:27:33.000Z | // Copyright (c) 2010 - Mozy, Inc.
#include "result.h"
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include "mordor/assert.h"
#include "mordor/endian.h"
#include "mordor/socket.h"
#define BOOLOID 16
#define CHAROID 18
#define INT8OID 20
#define INT2OID 21
#define INT4OID 23
#define CIDROID 650
#defin... | 31.890688 | 117 | 0.653294 | NoevilMe |
fa0b03398cf172d8dcb560dede43ae8e1456f774 | 5,147 | cpp | C++ | 59_01_MaxInSlidingWindow/MaxInSlidingWindow.cpp | darkkiller123/-offer | a0859f469e5c8caef52d5ff145753ad46eda6aaa | [
"BSD-3-Clause"
] | 1 | 2019-05-07T12:18:46.000Z | 2019-05-07T12:18:46.000Z | 59_01_MaxInSlidingWindow/MaxInSlidingWindow.cpp | YihengJiang/CodingInterviewChinese2-master | 0cc556b14b9096211683dd8e445935b7515e25e8 | [
"BSD-3-Clause"
] | null | null | null | 59_01_MaxInSlidingWindow/MaxInSlidingWindow.cpp | YihengJiang/CodingInterviewChinese2-master | 0cc556b14b9096211683dd8e445935b7515e25e8 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************
Copyright(c) 2016, Harry He
All rights reserved.
Distributed under the BSD license.
(See accompanying file LICENSE.txt at
https://github.com/zhedahht/CodingInterviewChinese2/blob/master/LICENSE.txt)
***************************************************... | 23.828704 | 103 | 0.550612 | darkkiller123 |
fa12b85e00e7e14bfd9a95b43430cd2080fa710b | 368 | hpp | C++ | lcx/lv/util/Priority_QLS.hpp | WAFI-CNR/glcr | 772d3a022d398401577d47e4fbc474b47dbd44b0 | [
"BSD-3-Clause"
] | null | null | null | lcx/lv/util/Priority_QLS.hpp | WAFI-CNR/glcr | 772d3a022d398401577d47e4fbc474b47dbd44b0 | [
"BSD-3-Clause"
] | 1 | 2019-01-28T12:57:24.000Z | 2019-01-28T13:02:50.000Z | lcx/lv/util/Priority_QLS.hpp | WAFI-CNR/glcr | 772d3a022d398401577d47e4fbc474b47dbd44b0 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PRIORITY_QLS_HPP_
#define PRIORITY_QLS_HPP_
#include "QLS_item.hpp"
class Priority_QLS
{
private:
int n;
int index;
QLS_item* qls_items;
QLS_item* min_item;
QLS_item* max_item;
public:
Priority_QLS(int n);
virtual ~Priority_QLS();
int get_min();
void add_value(int value);
void r... | 14.153846 | 28 | 0.703804 | WAFI-CNR |
fa1377bad6a378f010eeb80df37d9c724bc4e0f0 | 64,486 | cpp | C++ | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32469I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Graphs/green_line_button_inactive.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32469I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Graphs/green_line_button_inactive.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32469I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Graphs/green_line_button_inactive.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _green_line_button_inactive[] LOCATION_EXTFLASH_ATTRIBUTE = { // 110x58 RGB565 pixels.
0x7a,0xce,0x15,0xa5,0x35,0xa5,0x35,0xa5,0x35,0xa5,0x35,0xa5,0x35,0xa5,0x35,0xa5,0x35,0... | 140.799127 | 160 | 0.794436 | hwiwonl |
fa175e5d020b845e3b1dc14b112e5242c6148bbd | 37,288 | cc | C++ | cxx/clients/storage/google3_storage_test.cc | hanhanW/iree-mako | e0fddf0b96b4c46dfbd179d3cf290458ed20aab4 | [
"Apache-2.0"
] | 60 | 2019-08-01T21:26:36.000Z | 2021-11-06T06:08:29.000Z | cxx/clients/storage/google3_storage_test.cc | google/mako | 2ce9ad2e45cec6d3a91292b4ef1bddb3c9743463 | [
"Apache-2.0"
] | 16 | 2019-08-06T15:39:04.000Z | 2022-03-15T22:26:03.000Z | cxx/clients/storage/google3_storage_test.cc | hanhanW/iree-mako | e0fddf0b96b4c46dfbd179d3cf290458ed20aab4 | [
"Apache-2.0"
] | 12 | 2019-08-08T23:44:36.000Z | 2021-07-22T03:35:12.000Z | // Copyright 2019 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 ... | 36.773176 | 79 | 0.754881 | hanhanW |
fa1ab24dfaa89db2b97a4d6b2f4a0a821da9aaa2 | 1,090 | cc | C++ | util/crypto/digest_sign.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | 1 | 2020-09-22T05:59:36.000Z | 2020-09-22T05:59:36.000Z | util/crypto/digest_sign.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | null | null | null | util/crypto/digest_sign.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | 1 | 2022-02-03T11:05:44.000Z | 2022-02-03T11:05:44.000Z | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "util/crypto/digest_sign.h"
namespace openscreen {
ErrorOr<std::string> SignData(const EVP_MD* digest,
EVP_PKEY* ... | 34.0625 | 78 | 0.650459 | gtalis |
fa220416457794b1252303de2542f48075eb8b01 | 1,277 | cpp | C++ | src/net_lib/base/beast_resp.cpp | maxerMU/db-course | 3927f1cf0ccb2a937d571626dcc42d725a89d3f6 | [
"Apache-2.0"
] | null | null | null | src/net_lib/base/beast_resp.cpp | maxerMU/db-course | 3927f1cf0ccb2a937d571626dcc42d725a89d3f6 | [
"Apache-2.0"
] | null | null | null | src/net_lib/base/beast_resp.cpp | maxerMU/db-course | 3927f1cf0ccb2a937d571626dcc42d725a89d3f6 | [
"Apache-2.0"
] | null | null | null | #include "beast_resp.h"
BeastResp::BeastResp(const http::response<http::string_body> &resp)
: resp_(resp) {
is_from_resp = true;
}
std::string BeastResp::get_body() const {
if (is_from_resp)
return resp_.body();
return body_;
}
headers_t BeastResp::get_headers() const {
if (!is_from_resp)
return... | 24.557692 | 78 | 0.670321 | maxerMU |
fa224f4cae15ab5fb37a51f05140abc70efd5aa9 | 2,169 | cpp | C++ | Source/IDE/src/Project/Lexer/TokenStream.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | null | null | null | Source/IDE/src/Project/Lexer/TokenStream.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | null | null | null | Source/IDE/src/Project/Lexer/TokenStream.cpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | 1 | 2021-10-30T20:43:01.000Z | 2021-10-30T20:43:01.000Z | /*
* TokenStream.hpp
* Token Stream
*/
#include <Project/Lexer/TokenStream.hpp>
#include <Project/Lexer/Tokenizer.hpp>
namespace Lexer
{
TokenStream::TokenStream(const QString& filename, bool& ok)
: tokens(),
position(0)
{
ok = LexerTokenizer.ParseFile(filename, tokens);
}
TokenStream::TokenStream(con... | 17.92562 | 88 | 0.634394 | DatZach |
fa22b19f2342b5d532595fdf3cf6291e6b365e8f | 1,044 | hh | C++ | include/RMGManagementTrackingAction.hh | gipert/remage | 33fbb16786da7723e120d479cdf8ec4647b3bbbd | [
"MIT"
] | 2 | 2022-02-25T10:50:28.000Z | 2022-03-11T15:12:05.000Z | include/RMGManagementTrackingAction.hh | gipert/remage | 33fbb16786da7723e120d479cdf8ec4647b3bbbd | [
"MIT"
] | 3 | 2020-12-03T15:17:30.000Z | 2022-03-18T09:56:22.000Z | include/RMGManagementTrackingAction.hh | gipert/remage | 33fbb16786da7723e120d479cdf8ec4647b3bbbd | [
"MIT"
] | null | null | null | #ifndef _RMG_MANAGEMENT_TRACKING_ACTION_HH_
#define _RMG_MANAGEMENT_TRACKING_ACTION_HH_
#include "G4UserTrackingAction.hh"
class RMGManagementEventAction;
class RMGManagementTrackingAction : public G4UserTrackingAction {
public:
RMGManagementTrackingAction(RMGManagementEventAction*);
~RMGManagementTrackin... | 33.677419 | 103 | 0.788314 | gipert |
fa2885e4ddeb5c8d5615ccdfd838ab249b401221 | 1,226 | cpp | C++ | Algorithms/Cryptography_Algorithm/Affine_Cipher/Affine_Cipher.cpp | Deepak2417/algo_ds_101 | fbccdeaf28853332a9eee44f876f8d2f53860f2b | [
"MIT"
] | 1 | 2021-04-18T22:30:40.000Z | 2021-04-18T22:30:40.000Z | Algorithms/Cryptography_Algorithm/Affine_Cipher/Affine_Cipher.cpp | Deepak2417/algo_ds_101 | fbccdeaf28853332a9eee44f876f8d2f53860f2b | [
"MIT"
] | null | null | null | Algorithms/Cryptography_Algorithm/Affine_Cipher/Affine_Cipher.cpp | Deepak2417/algo_ds_101 | fbccdeaf28853332a9eee44f876f8d2f53860f2b | [
"MIT"
] | 14 | 2020-10-13T04:20:57.000Z | 2021-10-01T16:16:13.000Z | #include<bits/stdc++.h>
using namespace std;
const int a = 17;
const int b = 20;
string encryptMessage(string msg)
{
string cipher = "";
for (int i = 0; i < msg.length(); i++)
{
if(msg[i]!=' ')
cipher = cipher +
(char) ((((a * (msg[i]-'A') ) ... | 19.774194 | 78 | 0.405383 | Deepak2417 |
fa2ec833720a63cf586f314092aedcbb86c87460 | 3,091 | hpp | C++ | include/SorghumFactory/SorghumField.hpp | edisonlee0212/RayMLVQ | d040a068691799bdf82e7a0b394309efabc570d2 | [
"BSD-3-Clause"
] | null | null | null | include/SorghumFactory/SorghumField.hpp | edisonlee0212/RayMLVQ | d040a068691799bdf82e7a0b394309efabc570d2 | [
"BSD-3-Clause"
] | null | null | null | include/SorghumFactory/SorghumField.hpp | edisonlee0212/RayMLVQ | d040a068691799bdf82e7a0b394309efabc570d2 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <sorghum_factory_export.h>
using namespace UniEngine;
namespace SorghumFactory {
class SORGHUM_FACTORY_API RectangularSorghumFieldPattern {
public:
glm::ivec2 m_size = glm::ivec2(4, 4);
glm::vec2 m_distances = glm::vec2(2, 2);
glm::vec3 m_rotationVariation = glm::vec3(0, 0, 0);
void Gene... | 34.730337 | 80 | 0.694921 | edisonlee0212 |
fa31c43d0c83c11a0d9a11e50cd8fc97cd9dda8e | 498 | cpp | C++ | Other/LambdaRecursion.cpp | maguroplusia/Library | 02e0e277986833fe1c12e20b3677a553b7b27346 | [
"CC0-1.0"
] | null | null | null | Other/LambdaRecursion.cpp | maguroplusia/Library | 02e0e277986833fe1c12e20b3677a553b7b27346 | [
"CC0-1.0"
] | null | null | null | Other/LambdaRecursion.cpp | maguroplusia/Library | 02e0e277986833fe1c12e20b3677a553b7b27346 | [
"CC0-1.0"
] | null | null | null | template<typename F>
struct FixPoint : F {
template<typename G>
FixPoint(G&& g) : F{std::forward<G>(g)} {}
template<typename... Args>
decltype(auto) operator()(Args&&... args) const {
return F::operator()(*this,std::forward<Args>(args)...);
}
};
#if defined(__cpp_deduction_guides)
template... | 24.9 | 64 | 0.638554 | maguroplusia |
fa3640b53c8c00d9740a881323ad1b431b8a2827 | 2,488 | cpp | C++ | examples/google-code-jam/siki1982/tttt.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/siki1982/tttt.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/siki1982/tttt.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <sstream>
#include <cmath>
#include <algorithm>
#include <map>
#include <vector>
#include <set>
using namespace std;
#define PI acos(-1.)
#define EPS 1e-7
#define LL long long
#define UI unsigned int
bool eq(char &a, char &b) {
if (a == 'T' && b != '.') return true;... | 19.904 | 61 | 0.398312 | rbenic-fer |
fa42a9f8c7ba8d954470050d541845d596cf8626 | 293 | cpp | C++ | Difficulty 1/free_food.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 1/free_food.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 1/free_food.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | #include <iostream>
#include <set>
using namespace std;
int main() {
int n, a, b;
set<int> days;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a >> b;
for (int j = a; j <= b; j++) {
days.insert(j);
}
}
cout << days.size();
} | 15.421053 | 38 | 0.406143 | BrynjarGeir |
fa4b27eb3ca5867e89ecd534abf68a8263af9ab8 | 20,738 | cpp | C++ | src/Graphics/GfxUtils.cpp | Kuruyia/Pyrus | 32cefee9dd32270ddb2ec38eadc9e3146f707131 | [
"BSD-3-Clause"
] | 7 | 2020-05-30T12:18:00.000Z | 2021-08-24T19:44:09.000Z | src/Graphics/GfxUtils.cpp | Arc13/Pyrus | 32cefee9dd32270ddb2ec38eadc9e3146f707131 | [
"BSD-3-Clause"
] | 1 | 2021-04-26T18:27:30.000Z | 2021-04-26T19:14:35.000Z | src/Graphics/GfxUtils.cpp | Kuruyia/Pyrus | 32cefee9dd32270ddb2ec38eadc9e3146f707131 | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <cstring>
#include "GfxUtils.h"
#define BUFFER_SIZE 254
void Graphics::GfxUtils::drawLine(Hardware::Screen::BaseScreen &target, Graphics::Vec2D firstPoint,
Graphics::Vec2D secondPoint, const Graphics::Color &color, bool loopVerticalAxis)
{
// This i... | 36.382456 | 152 | 0.59837 | Kuruyia |
fa4f3492580657a5f62fd890fde34a2c741fea24 | 948 | cpp | C++ | src/Vulkan/VulkanExtensions.cpp | GJHap/VkPong | bedb9bce32fb3be98a283df02b803d230e5c0176 | [
"MIT"
] | null | null | null | src/Vulkan/VulkanExtensions.cpp | GJHap/VkPong | bedb9bce32fb3be98a283df02b803d230e5c0176 | [
"MIT"
] | null | null | null | src/Vulkan/VulkanExtensions.cpp | GJHap/VkPong | bedb9bce32fb3be98a283df02b803d230e5c0176 | [
"MIT"
] | null | null | null | #include "VulkanExtensions.hpp"
namespace vkPong
{
vk::DispatchLoaderDynamic getVkCreateDebugReportCallbackEXTDispatchLoader(const vk::Instance& instance)
{
PFN_vkCreateDebugReportCallbackEXT vkCreateDebugReportCallbackEXT = reinterpret_cast<PFN_vkCreateDebugReportCallbackEXT>(instance.getProcAddr("vkCreateDebugRe... | 41.217391 | 183 | 0.867089 | GJHap |
fa4f5110ffa551c936809e65198bd106db586a5f | 2,816 | hpp | C++ | src/Server/Database/Database.hpp | Praetonus/Erewhon-Game | 0327efc5ea80e1084ffb78191818607e9678dcb3 | [
"MIT"
] | 1 | 2018-02-25T18:18:59.000Z | 2018-02-25T18:18:59.000Z | src/Server/Database/Database.hpp | Praetonus/Erewhon-Game | 0327efc5ea80e1084ffb78191818607e9678dcb3 | [
"MIT"
] | null | null | null | src/Server/Database/Database.hpp | Praetonus/Erewhon-Game | 0327efc5ea80e1084ffb78191818607e9678dcb3 | [
"MIT"
] | null | null | null | // Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Erewhon Server" project
// For conditions of distribution and use, see copyright notice in LICENSE
#pragma once
#ifndef EREWHON_SERVER_DATABASE_HPP
#define EREWHON_SERVER_DATABASE_HPP
#include <Nazara/Prerequisites.hpp>
#include <Server/Database/Data... | 28.734694 | 169 | 0.761719 | Praetonus |
fa538729fb79133dba05724bc2211a00ea29c41d | 4,821 | cpp | C++ | kernel/Printf.cpp | brightprogrammer/MisraOS | fe7fa81b81b42e69ec8b06c8efa55106e58f444d | [
"BSD-3-Clause"
] | 10 | 2022-01-25T13:05:42.000Z | 2022-02-08T21:26:19.000Z | kernel/Printf.cpp | brightprogrammer/MisraOS | fe7fa81b81b42e69ec8b06c8efa55106e58f444d | [
"BSD-3-Clause"
] | null | null | null | kernel/Printf.cpp | brightprogrammer/MisraOS | fe7fa81b81b42e69ec8b06c8efa55106e58f444d | [
"BSD-3-Clause"
] | null | null | null | /**
*@file Printf.cpp
*@author Siddharth Mishra (brightprogrammer)
*@date 01/22/2022
*@brief provides kprintf
*@copyright BSD 3-Clause License
Copyright (c) 2022, Siddharth Mishra
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that... | 30.512658 | 94 | 0.582037 | brightprogrammer |
fa55466f71162f76a81f694eaa53ba16d2df76be | 3,201 | hh | C++ | gui/dual-slider.hh | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | gui/dual-slider.hh | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | gui/dual-slider.hh | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | // -*- coding: us-ascii-unix -*-
// Copyright 2012 Lukas Kemmer
//
// 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 a... | 29.366972 | 77 | 0.743205 | lukas-ke |
fa580f7ad7e5db92bf7793048f782296f174941c | 8,476 | cpp | C++ | test/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp | theoremprover/cpp-parser | 543cd50acc9e08aadf278b9c970d4db6c332887a | [
"BSD-3-Clause"
] | 18 | 2018-05-10T18:50:06.000Z | 2022-01-11T17:11:34.000Z | test/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp | theoremprover/cpp-parser | 543cd50acc9e08aadf278b9c970d4db6c332887a | [
"BSD-3-Clause"
] | 24 | 2018-06-14T17:54:17.000Z | 2022-03-11T23:21:29.000Z | test/src/WinControls/ClipboardHistory/clipboardHistoryPanel.cpp | theoremprover/cpp-parser | 543cd50acc9e08aadf278b9c970d4db6c332887a | [
"BSD-3-Clause"
] | 4 | 2019-04-02T16:04:34.000Z | 2022-01-10T11:44:43.000Z | // This file is part of Notepad++ project
// Copyright (C)2003 Don HO <don.h@free.fr>
//
// 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 2 of the License, or (at your ... | 28.732203 | 141 | 0.638627 | theoremprover |
fa58bfb73ce8e258a663948cc85e57ca76f73424 | 1,162 | cpp | C++ | pointpointer/pointpointer/pointpointer.cpp | Orelik11/learning | a50ab2873ceb04bd86c9a0a20d3e6037e2ec8aba | [
"Apache-2.0"
] | null | null | null | pointpointer/pointpointer/pointpointer.cpp | Orelik11/learning | a50ab2873ceb04bd86c9a0a20d3e6037e2ec8aba | [
"Apache-2.0"
] | null | null | null | pointpointer/pointpointer/pointpointer.cpp | Orelik11/learning | a50ab2873ceb04bd86c9a0a20d3e6037e2ec8aba | [
"Apache-2.0"
] | null | null | null | // pointpointer.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string.h>
using namespace std;
char **AddPtr(char **, int, char *); //prototype of function
int main()
{
int size = 0; // counter for number of values in array
char **arr = 0; //pointer... | 15.702703 | 74 | 0.575731 | Orelik11 |
fa598d0cb431d633f0f7f0d9caae47ef3e7c82eb | 5,900 | cpp | C++ | ref_app/target/micros/stm32l100c/startup/int_vect.cpp | jwinarske/real-time-cpp | a48897badce755d31003f23817721e50eba69cd9 | [
"BSL-1.0"
] | 1 | 2020-03-19T08:10:23.000Z | 2020-03-19T08:10:23.000Z | ref_app/target/micros/stm32l100c/startup/int_vect.cpp | dustex/real-time-cpp | dedab60eefc6c5db94d53f1e1a890cfba8ae3f76 | [
"BSL-1.0"
] | null | null | null | ref_app/target/micros/stm32l100c/startup/int_vect.cpp | dustex/real-time-cpp | dedab60eefc6c5db94d53f1e1a890cfba8ae3f76 | [
"BSL-1.0"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2018.
// 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 <array>
#include <cstddef>... | 51.754386 | 111 | 0.666102 | jwinarske |
fa5d51f6773896ce39e2775fa7b9a12739d00057 | 22,471 | cpp | C++ | tests/src/DenseView.cpp | LiamPattinson/ultramat | 445a64cc8f0cbd0d671a758425fdbaf199ad0621 | [
"MIT"
] | 1 | 2022-01-19T11:50:46.000Z | 2022-01-19T11:50:46.000Z | tests/src/DenseView.cpp | LiamPattinson/ultramat | 445a64cc8f0cbd0d671a758425fdbaf199ad0621 | [
"MIT"
] | null | null | null | tests/src/DenseView.cpp | LiamPattinson/ultramat | 445a64cc8f0cbd0d671a758425fdbaf199ad0621 | [
"MIT"
] | null | null | null | #include "ultramat/include/Array.hpp"
#include <gtest/gtest.h>
#include <cmath>
using namespace ultra;
// Requires Array to test.
TEST(ViewTest,FullViewConstructor){
Array<float,50,30>::row_major row_array(2.0);
Array<double,12,15,90>::col_major col_array(5.0);
auto row_view = row_array.view();
aut... | 38.411966 | 105 | 0.605492 | LiamPattinson |
fa6159309a46ef5e0f8ca53006c9f636e36c4714 | 2,143 | hpp | C++ | ndn-cxx/lp/pit-token.hpp | Pesa/ndn-cxx | 0249d71d97b2f1f5313f24cec7c84450a795f2ca | [
"OpenSSL"
] | 106 | 2015-01-06T10:08:29.000Z | 2022-02-27T13:40:16.000Z | ndn-cxx/lp/pit-token.hpp | Pesa/ndn-cxx | 0249d71d97b2f1f5313f24cec7c84450a795f2ca | [
"OpenSSL"
] | 11 | 2020-12-27T23:02:56.000Z | 2021-10-18T08:00:50.000Z | ndn-cxx/lp/pit-token.hpp | Pesa/ndn-cxx | 0249d71d97b2f1f5313f24cec7c84450a795f2ca | [
"OpenSSL"
] | 147 | 2015-01-15T15:07:29.000Z | 2022-02-03T13:08:43.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2019 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... | 28.959459 | 87 | 0.709753 | Pesa |
fa621e986d88701ea5946596b0583031711d483e | 1,061 | cpp | C++ | Leetcode/L933.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | 8 | 2021-02-14T01:48:09.000Z | 2022-01-29T09:12:55.000Z | Leetcode/L933.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | Leetcode/L933.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | #include <algorithm>
#include <climits>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
const int MAX_VALUE = 0x7FFFFFFF, MIN_VALUE = 0x80000000, INF = 0x3... | 22.104167 | 91 | 0.677663 | yanjinbin |
fa63863be8b02ca06ec4b2f21411b8ba84c26fac | 9,219 | hpp | C++ | MST/mst/nArray.hpp | dotBlueShoes/MST | 58a35925d170678b193767525de2aff416801938 | [
"CC0-1.0"
] | null | null | null | MST/mst/nArray.hpp | dotBlueShoes/MST | 58a35925d170678b193767525de2aff416801938 | [
"CC0-1.0"
] | null | null | null | MST/mst/nArray.hpp | dotBlueShoes/MST | 58a35925d170678b193767525de2aff416801938 | [
"CC0-1.0"
] | null | null | null | #pragma once
#include "basictypes.hpp"
// Array where both value and length can be changed.
// uses new and delete underneath.
// CONST:
// When nArray is being assigned as a const
// then we mean that it's length is unchanable and
// that the pointer cannot point somewhere else.
// HOWEVER the data the pointer ... | 26.34 | 110 | 0.640633 | dotBlueShoes |
fa64947a436fa09b4b23d36825414a5fd8bca264 | 4,565 | cpp | C++ | 2017-05-24-practice/A.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 3 | 2018-04-02T06:00:51.000Z | 2018-05-29T04:46:29.000Z | 2017-05-24-practice/A.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-03-31T17:54:30.000Z | 2018-05-02T11:31:06.000Z | 2017-05-24-practice/A.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-10-07T00:08:06.000Z | 2021-06-28T11:02:59.000Z | #include <cmath>
#include <cstdio>
#include <cassert>
#include <algorithm>
using namespace std;
typedef long long LL;
typedef long double DB;
const int maxn = 201;
const DB eps = 1e-6;
inline int sgn(DB x) {
assert(!std::isnan(x));
return (x > eps) - (x < -eps);
}
inline DB readDB() {
static double x;
scanf("%lf", ... | 23.410256 | 78 | 0.505805 | tangjz |
fa670d9969eac17a1b23f3c4a39f278fba1d3473 | 4,966 | cpp | C++ | src/testing/test_dependency_finder.cpp | bvegawe/hector | fddfed55c262edf1eb068a4ef63e48bc35d05ff8 | [
"ECL-2.0"
] | null | null | null | src/testing/test_dependency_finder.cpp | bvegawe/hector | fddfed55c262edf1eb068a4ef63e48bc35d05ff8 | [
"ECL-2.0"
] | null | null | null | src/testing/test_dependency_finder.cpp | bvegawe/hector | fddfed55c262edf1eb068a4ef63e48bc35d05ff8 | [
"ECL-2.0"
] | null | null | null | /* Hector -- A Simple Climate Model
Copyright (C) 2014-2015 Battelle Memorial Institute
Please see the accompanying file LICENSE.md for additional licensing
information.
*/
/*
* test_dependency_finder.cpp
* hector
*
* Created by Pralit Patel on 3/28/11.
*
*/
#include <iostream>
#include <gtest/gtes... | 29.915663 | 100 | 0.604712 | bvegawe |
fa6b93a4585906f311daa11c100ef91ef1c44c26 | 1,767 | cpp | C++ | Develop-Editor/Development/Core/ydbase/base/win/windows_category.cpp | luciouskami/XYWE | 89da4f93a2dcc02e6ea2bc739ac99a511363665c | [
"Apache-2.0"
] | 5 | 2019-01-22T02:35:35.000Z | 2022-02-28T02:50:03.000Z | Development/Editor/Core/ydbase/base/win/windows_category.cpp | yatyricky/XYWE | 6577f4038346c258b346865808b0e3b2730611b6 | [
"Apache-2.0"
] | 8 | 2016-10-19T00:04:05.000Z | 2016-11-14T10:58:14.000Z | Development/Editor/Core/ydbase/base/win/windows_category.cpp | yatyricky/XYWE | 6577f4038346c258b346865808b0e3b2730611b6 | [
"Apache-2.0"
] | 2 | 2016-11-14T11:39:37.000Z | 2019-09-06T00:21:15.000Z | #include <base/win/windows_category.h>
#include <base/exception/detail/error_msg.h>
#include <base/util/string_view.h>
#include <base/util/unicode.h>
#include <Windows.h>
#include <sstream>
#include <system_error>
namespace base { namespace win {
const char* windows_category::name() const
{
return "... | 26.373134 | 105 | 0.678551 | luciouskami |
fa6d364ea7a7b831eeebd7b7b175901bcefc0800 | 2,626 | cpp | C++ | src/Unit.cpp | ScaredStorm/SpaceGame | 136df0e173b07ebc3f6a0b7c2370edeb7c120af8 | [
"MIT"
] | null | null | null | src/Unit.cpp | ScaredStorm/SpaceGame | 136df0e173b07ebc3f6a0b7c2370edeb7c120af8 | [
"MIT"
] | null | null | null | src/Unit.cpp | ScaredStorm/SpaceGame | 136df0e173b07ebc3f6a0b7c2370edeb7c120af8 | [
"MIT"
] | null | null | null | #include "Unit.h"
Unit::Unit(int x, int y)
: Entity(x, y)
, _inv(4, x, y, 4, 1)
{
_frameRate = 200;
_frame = rand()%4;
_totalFrame = 3;
_oldTime = SDL_GetTicks();
destination = Vector2(_x, _y);
_selected = false;
_showInventory = false;
}
Unit::~Unit()
{
}
void Unit::setPath(Vector2 pos... | 22.254237 | 137 | 0.531988 | ScaredStorm |
fa728e2260b7d5397041469203320ba4adc29f8f | 2,840 | cpp | C++ | expiryFile/Start.cpp | merschel/expiryFile | f73137dc60ef56b27d9e4314eea3f2ddb375577d | [
"MIT"
] | null | null | null | expiryFile/Start.cpp | merschel/expiryFile | f73137dc60ef56b27d9e4314eea3f2ddb375577d | [
"MIT"
] | 4 | 2017-05-16T19:32:05.000Z | 2017-06-05T16:42:20.000Z | expiryFile/Start.cpp | merschel/expiryFile | f73137dc60ef56b27d9e4314eea3f2ddb375577d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Start.h"
#include "Input.h"
#include "Exception.h"
#include "Help.h"
#include "TempFile.h"
#include "FileList.h"
#include <conio.h>
#include <string>
// *****************
// methods (private)
// *****************
// not needed for this class
// ****************
// methods (public)
/... | 17.861635 | 76 | 0.638028 | merschel |
fa74482c49c338be803d193d91b15304625da952 | 188 | cpp | C++ | Chapter_08/Source/Chapter_08/Talker.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | 1 | 2020-10-26T10:11:26.000Z | 2020-10-26T10:11:26.000Z | Chapter_08/Source/Chapter_08/Talker.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | null | null | null | Chapter_08/Source/Chapter_08/Talker.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | 1 | 2020-10-26T10:11:36.000Z | 2020-10-26T10:11:36.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "Talker.h"
// Add default functionality here for any ITalker functions that are not pure virtual.
| 31.333333 | 86 | 0.781915 | CoolHandNick80 |
fa775318f01f290ee3077eea59728d559269e955 | 673 | cpp | C++ | Luogu/P3406.cpp | dong628/OhMyCodes | 238e3045a98505a4880e85ad71d43d64a20f9452 | [
"MIT"
] | 2 | 2020-07-18T01:19:04.000Z | 2020-11-03T17:34:22.000Z | Luogu/P3406.cpp | dong628/OhMyCodes | 238e3045a98505a4880e85ad71d43d64a20f9452 | [
"MIT"
] | null | null | null | Luogu/P3406.cpp | dong628/OhMyCodes | 238e3045a98505a4880e85ad71d43d64a20f9452 | [
"MIT"
] | 1 | 2021-09-09T12:52:58.000Z | 2021-09-09T12:52:58.000Z | #include <iostream>
#include <cstdio>
const int Maxn=1e5+5, Maxm=1e5+5;
int n, m;
long long cnt[Maxn], p[Maxm], cf[Maxn], a[Maxn], b[Maxn], c[Maxn], maxp, minp;
long long summ;
int main(){
freopen("data.in", "r", stdin);
scanf("%d %d", &n, &m);
for(int i=1; i<=m; i++){
scanf("%lld", &p[i]);
}
for(int i=2; i<=... | 20.393939 | 78 | 0.494799 | dong628 |
fa7788c3573a873669bdaddfd0620d1af811dd6d | 1,182 | hpp | C++ | include/Cerealizer/Binary/BinaryTuple.hpp | GasparQ/Cerealization | 42ed8e78fc42f7e032633eb5c06635cb92980c59 | [
"MIT"
] | 1 | 2018-03-16T08:51:35.000Z | 2018-03-16T08:51:35.000Z | include/Cerealizer/Binary/BinaryTuple.hpp | GasparQ/Cerealization | 42ed8e78fc42f7e032633eb5c06635cb92980c59 | [
"MIT"
] | null | null | null | include/Cerealizer/Binary/BinaryTuple.hpp | GasparQ/Cerealization | 42ed8e78fc42f7e032633eb5c06635cb92980c59 | [
"MIT"
] | null | null | null | //
// Created by GasparQ on 07/03/2018.
//
#ifndef CEREALIZABLE_BINARYTUPLE_HPP
#define CEREALIZABLE_BINARYTUPLE_HPP
#include "Operations.hpp"
namespace Cerealization
{
namespace Cerealizer
{
class BinaryTuple
{
public:
class Cereal
{
public:
... | 20.033898 | 79 | 0.41709 | GasparQ |
fa80c9b876f6741fb194afd397d96b14f1bb7e99 | 26,617 | cpp | C++ | src/CacheManager.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | src/CacheManager.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | src/CacheManager.cpp | hhyyrylainen/DualViewPP | 1fb4a1db85a8509342e16d68c75d4ec7721ced9e | [
"MIT"
] | null | null | null | // ------------------------------------ //
#include "CacheManager.h"
#include "Common.h"
#include <Magick++.h>
#include <gtkmm.h>
#include "Exceptions.h"
#include "DualView.h"
#include "Settings.h"
#include "Common/StringOperations.h"
#include <boost/filesystem.hpp>
using namespace DV;
// ------------------------... | 30.041761 | 95 | 0.602472 | hhyyrylainen |
fa851707be559af4fab19608938bd44e545202ab | 81,671 | cpp | C++ | blazetest/src/mathtest/densevector/GeneralTest.cpp | mhochsteger/blaze | fd397e60717c4870d942055496d5b484beac9f1a | [
"Unlicense"
] | 9 | 2019-04-25T20:49:16.000Z | 2020-09-23T09:46:08.000Z | blazetest/src/mathtest/densevector/GeneralTest.cpp | mhochsteger/blaze | fd397e60717c4870d942055496d5b484beac9f1a | [
"Unlicense"
] | 1 | 2019-05-27T20:11:41.000Z | 2019-05-27T20:11:41.000Z | blazetest/src/mathtest/densevector/GeneralTest.cpp | mhochsteger/blaze | fd397e60717c4870d942055496d5b484beac9f1a | [
"Unlicense"
] | null | null | null | //=================================================================================================
/*!
// \file src/mathtest/densevector/GeneralTest.cpp
// \brief Source file for the general DenseVector operation test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This file is part of th... | 32.905318 | 99 | 0.45065 | mhochsteger |
fa87230e7df00641666c59f48df7006a8ea83e3a | 1,113 | cpp | C++ | CONTRIB/LLVM/_Demo/Lib_GZ/Rc/RcEngine/Slider/Skew_png.cpp | Cwc-Test/CpcdosOS2.1 | d52c170be7f11cc50de38ef536d4355743d21706 | [
"Apache-2.0"
] | 1 | 2021-05-05T20:42:24.000Z | 2021-05-05T20:42:24.000Z | CONTRIB/LLVM/_Demo/Lib_GZ/Rc/RcEngine/Slider/Skew_png.cpp | Cwc-Test/CpcdosOS2.1 | d52c170be7f11cc50de38ef536d4355743d21706 | [
"Apache-2.0"
] | null | null | null | CONTRIB/LLVM/_Demo/Lib_GZ/Rc/RcEngine/Slider/Skew_png.cpp | Cwc-Test/CpcdosOS2.1 | d52c170be7f11cc50de38ef536d4355743d21706 | [
"Apache-2.0"
] | null | null | null | extern const unsigned char Rc_GZ_RcEngine_Slider_Skew_png[296] = {137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,0,7,0,0,0,23,8,6,0,0,0,199,132,85,72,0,0,0,239,73,68,65,84,40,145,99,96,160,22,224,135,98,76,192,205,205,221,207,205,205,221,143,77,78,223,216,216,248,191,173,157,253,127,6,6,6,123,6,6,6,6,22,152,140,140,... | 371 | 1,052 | 0.715184 | Cwc-Test |
fa89f849a444e4bd9a7cf38cfbc4fa8121da9e59 | 2,243 | hpp | C++ | test/unittest/ast/LogicalExpressionTest.hpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | 1 | 2019-06-17T07:16:01.000Z | 2019-06-17T07:16:01.000Z | test/unittest/ast/LogicalExpressionTest.hpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | test/unittest/ast/LogicalExpressionTest.hpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | /*
* soyac - The Soya programming language compiler
* Copyright (c) 2009 Denis Washington <dwashington@gmx.net>
*
* This file is distributed under the terms of the MIT license.
* See LICENSE.txt for details.
*/
#ifndef _LOGICAL_EXPRESSION_TEST_HPP
#define _LOGICAL_EXPRESSION_TEST_HPP
#include <cppunit/TestFixtu... | 23.123711 | 65 | 0.660276 | denisw |
fa8b31658bb337daa12adad81a9524b880b9dbc0 | 1,374 | cc | C++ | problem/generate_parenthesis_test.cc | fun4xnm/way2expert | bf1bf250c88cc8c4993651fcd34d043469ba9ef0 | [
"Apache-2.0"
] | null | null | null | problem/generate_parenthesis_test.cc | fun4xnm/way2expert | bf1bf250c88cc8c4993651fcd34d043469ba9ef0 | [
"Apache-2.0"
] | null | null | null | problem/generate_parenthesis_test.cc | fun4xnm/way2expert | bf1bf250c88cc8c4993651fcd34d043469ba9ef0 | [
"Apache-2.0"
] | null | null | null | #include "problem/generate_parenthesis.h"
#include "gtest/gtest.h"
namespace problem {
class GenerateParenthesisTest : public ::testing::Test {
protected:
// You can remove any or all of the following functions if their bodies would
// be empty.
GenerateParenthesisTest() {
// You can do set-up work for e... | 24.535714 | 79 | 0.642649 | fun4xnm |
fa90ea72f9995cd3130f90a65034f7f6b37b9b9f | 6,888 | cpp | C++ | source/view_3d_widget.cpp | PetrPPetrov/gkm-ship-cad | 6bf748909dcf281601101e2dfb9192bc2b45dbfb | [
"BSD-2-Clause"
] | null | null | null | source/view_3d_widget.cpp | PetrPPetrov/gkm-ship-cad | 6bf748909dcf281601101e2dfb9192bc2b45dbfb | [
"BSD-2-Clause"
] | null | null | null | source/view_3d_widget.cpp | PetrPPetrov/gkm-ship-cad | 6bf748909dcf281601101e2dfb9192bc2b45dbfb | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2020 Petr Petrovich Petrov. All rights reserved.
// License: https://github.com/PetrPPetrov/gkm-ship-cad/blob/master/LICENSE
#include <cassert>
#include <cstdint>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <string>
#include <sstream>
#include <vector>
#include <boost/polygon/polygon.h... | 32.956938 | 102 | 0.68133 | PetrPPetrov |
b704912b3827daf19604a5e3c9a1e051c42b04b5 | 890 | hpp | C++ | include/multinodecommands.hpp | tohas1986/intel-ipmi-oem | ca99ef5912b9296e09c8f9cb246ce291f9970750 | [
"Apache-2.0"
] | 14 | 2021-11-04T07:47:37.000Z | 2022-03-21T10:10:30.000Z | include/multinodecommands.hpp | tohas1986/intel-ipmi-oem | ca99ef5912b9296e09c8f9cb246ce291f9970750 | [
"Apache-2.0"
] | 6 | 2019-03-25T15:16:56.000Z | 2022-03-30T23:27:47.000Z | include/multinodecommands.hpp | tohas1986/intel-ipmi-oem | ca99ef5912b9296e09c8f9cb246ce291f9970750 | [
"Apache-2.0"
] | 9 | 2018-11-27T08:02:32.000Z | 2021-05-21T16:36:50.000Z | /*
// Copyright (c) 2019 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 law or... | 28.709677 | 75 | 0.732584 | tohas1986 |
b70917b8ca96ac92847b516530d7df43332b189c | 355 | cpp | C++ | c01-c-basics/w06/a06-split-integer-digits/source.cpp | waltzofpearls/programming-assignments | 2d01259435ccae0dcc43077ad1ab617b5598370c | [
"MIT"
] | null | null | null | c01-c-basics/w06/a06-split-integer-digits/source.cpp | waltzofpearls/programming-assignments | 2d01259435ccae0dcc43077ad1ab617b5598370c | [
"MIT"
] | null | null | null | c01-c-basics/w06/a06-split-integer-digits/source.cpp | waltzofpearls/programming-assignments | 2d01259435ccae0dcc43077ad1ab617b5598370c | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main() {
int number;
int ones;
int tens;
int hundreds;
cin >> number;
hundreds = floor(number / 100);
tens = floor((number % 100) / 10);
ones = number - 100 * hundreds - 10 * tens;
cout << hundreds << endl;
cout << tens << endl;
co... | 14.791667 | 45 | 0.591549 | waltzofpearls |
b70af44c843a2a52d7b3d91e512c7e2083d1fc5d | 1,689 | cpp | C++ | src/Renderer/Texture.cpp | Jerry-Shen0527/ToyRenderer | 84771afb8f5edb7055760b46e1dbf1cd9323071b | [
"MIT"
] | null | null | null | src/Renderer/Texture.cpp | Jerry-Shen0527/ToyRenderer | 84771afb8f5edb7055760b46e1dbf1cd9323071b | [
"MIT"
] | null | null | null | src/Renderer/Texture.cpp | Jerry-Shen0527/ToyRenderer | 84771afb8f5edb7055760b46e1dbf1cd9323071b | [
"MIT"
] | null | null | null | #include <iostream>
#include <Texture.h>
#include "glad/glad.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
unsigned int TextureFromFile(const std::string& directory, const std::string& filename, bool gamma)
{
auto full_name = directory + '\\' + filename;
unsigned int textureID;
glGenTextures(1, &text... | 25.590909 | 100 | 0.722913 | Jerry-Shen0527 |
b70f11cad4ff23196131cba98638d0ed70e94525 | 3,467 | cpp | C++ | src/german.cpp | pommedeterresautee/unine | c3a8adb063c376ad0a23b7c0baaf4dc1fd1e1f28 | [
"MIT"
] | 4 | 2019-03-11T15:03:38.000Z | 2020-07-15T07:16:57.000Z | src/german.cpp | pommedeterresautee/unine | c3a8adb063c376ad0a23b7c0baaf4dc1fd1e1f28 | [
"MIT"
] | 2 | 2019-03-30T22:32:57.000Z | 2022-01-13T05:38:28.000Z | src/german.cpp | pommedeterresautee/unine | c3a8adb063c376ad0a23b7c0baaf4dc1fd1e1f28 | [
"MIT"
] | null | null | null | // [[Rcpp::plugins(cpp11)]]
#include <Rcpp.h>
#include <stdio.h>
#include "convert.h"
using namespace Rcpp;
using namespace std;
/* German stemmer tring to remove inflectional suffixes */
static wstring removeGermanAccent(wstring& word) {
int len = word.size() - 1;
int i;
for(i=len; i>=0; i--) {
if ((wo... | 24.076389 | 83 | 0.518892 | pommedeterresautee |
b70faeec4d44586f94318154ae35ea8f4278f105 | 1,710 | cpp | C++ | skse/PapyrusCell.cpp | Schwarz-Hexe/YAMMS | 2a64c482a3813ec2450f025e97854f5671c1851e | [
"MIT"
] | null | null | null | skse/PapyrusCell.cpp | Schwarz-Hexe/YAMMS | 2a64c482a3813ec2450f025e97854f5671c1851e | [
"MIT"
] | null | null | null | skse/PapyrusCell.cpp | Schwarz-Hexe/YAMMS | 2a64c482a3813ec2450f025e97854f5671c1851e | [
"MIT"
] | null | null | null | #include "PapyrusCell.h"
#include "GameForms.h"
#include "GameObjects.h"
#include "GameReferences.h"
namespace papyrusCell
{
UInt32 GetNumRefs(TESObjectCELL* thisCell, UInt32 formType)
{
if (!thisCell)
return 0;
if (formType == 0)
return thisCell->objectList.count;
// match the formTyp... | 25.147059 | 127 | 0.662573 | Schwarz-Hexe |
b7168ee33389a93ebf6147f52244af18297344fa | 578 | cpp | C++ | 22 roots of quadratic equation in c++.cpp | pujanmahat/c-oop-programme | 8f48bf409e27dbf9c03c8b3cb0a7a7dcdbc0ee46 | [
"Apache-2.0"
] | null | null | null | 22 roots of quadratic equation in c++.cpp | pujanmahat/c-oop-programme | 8f48bf409e27dbf9c03c8b3cb0a7a7dcdbc0ee46 | [
"Apache-2.0"
] | null | null | null | 22 roots of quadratic equation in c++.cpp | pujanmahat/c-oop-programme | 8f48bf409e27dbf9c03c8b3cb0a7a7dcdbc0ee46 | [
"Apache-2.0"
] | null | null | null | // wap to disply roots of quadriatic equation using c++
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
int a,b,c,x1,x2,d;
cout<<"enter three number "<<endl;
cin>>a>>b>>c;
d=b*b-4*a*c;
x1=(-b+sqrt(d))/2*a;
x2=(-b+sqrt(d))/2*a;
if (d==0)
{
cout<<"the roots are real and equ... | 19.266667 | 56 | 0.574394 | pujanmahat |
b71da8299bb1b8e66ed22fb4dd4c994002c4389c | 2,022 | hh | C++ | src/WebUIManager.hh | Alexey-Ershov/runos | dfbf8f74d7f45d25f0d4fad743b51f572ec272c9 | [
"Apache-2.0"
] | 9 | 2019-04-04T18:03:36.000Z | 2019-05-03T23:48:59.000Z | src/WebUIManager.hh | Alexey-Ershov/runos | dfbf8f74d7f45d25f0d4fad743b51f572ec272c9 | [
"Apache-2.0"
] | 16 | 2019-04-04T12:22:19.000Z | 2019-04-09T19:04:42.000Z | src/WebUIManager.hh | Alexey-Ershov/runos | dfbf8f74d7f45d25f0d4fad743b51f572ec272c9 | [
"Apache-2.0"
] | 2 | 2019-10-11T14:17:26.000Z | 2022-03-15T10:06:08.000Z | /*
* Copyright 2015 Applied Research Center for Computer Networks
*
* 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 b... | 28.083333 | 87 | 0.710682 | Alexey-Ershov |
b71df3ee762186c2e5c1255bfa7cb2a2ea765881 | 972 | cpp | C++ | main.cpp | Verideth/asm-calcsum | 424be6e89b1014c134ef358b230c22c61911b4bb | [
"MIT"
] | 3 | 2020-05-14T06:50:36.000Z | 2020-05-22T10:14:05.000Z | main.cpp | Verideth/asm-calcsum | 424be6e89b1014c134ef358b230c22c61911b4bb | [
"MIT"
] | null | null | null | main.cpp | Verideth/asm-calcsum | 424be6e89b1014c134ef358b230c22c61911b4bb | [
"MIT"
] | null | null | null | /* another simple assembly and C++11
* example on pointer logic and storing
* values into pointers. simple
* product quotient and remainder calculator*/
#include <iostream>
#include <cstdint>
extern "C" std::int32_t intmuldiv(std::int32_t a, // 8
std::int32_t b, // 12
std::int32_t* prod, // 16
std::int... | 24.3 | 54 | 0.606996 | Verideth |
b72104ac4ae0dc917e4ed0dbf5ca3033c8c095a3 | 1,037 | cpp | C++ | csgocheat/Anti Debug/ProcessHeap_Flags.cpp | garryhvh420/e_xyz | 668d8c8c2b7ccfc3bae9e321b1a50379a5e33ec9 | [
"Apache-2.0"
] | null | null | null | csgocheat/Anti Debug/ProcessHeap_Flags.cpp | garryhvh420/e_xyz | 668d8c8c2b7ccfc3bae9e321b1a50379a5e33ec9 | [
"Apache-2.0"
] | null | null | null | csgocheat/Anti Debug/ProcessHeap_Flags.cpp | garryhvh420/e_xyz | 668d8c8c2b7ccfc3bae9e321b1a50379a5e33ec9 | [
"Apache-2.0"
] | null | null | null | #include "ProcessHeap_Flags.h"
#if defined (ENV64BIT)
PUINT32 GetHeapFlags_x64()
{
PINT64 pProcessHeap = NULL;
PUINT32 pHeapFlags = NULL;
if (IsWindowsVistaOrGreater()){
pProcessHeap = (PINT64)(__readgsqword(0x60) + 0x30);
pHeapFlags = (PUINT32)(*pProcessHeap + 0x70);
}
else {
pProcessHeap = (PINT64)(__rea... | 18.192982 | 55 | 0.706847 | garryhvh420 |
b72670734b730f09969a281c41bdb1c548b8c78b | 11,383 | cpp | C++ | ddlt/SelectIf.cpp | macton/DDLParser | 08feffa3a0608f8301d873cb26aed3e05cb9e7f6 | [
"BSD-2-Clause-NetBSD",
"Unlicense"
] | 37 | 2015-06-17T20:32:24.000Z | 2022-01-27T10:12:08.000Z | ddlt/SelectIf.cpp | macton/DDLParser | 08feffa3a0608f8301d873cb26aed3e05cb9e7f6 | [
"BSD-2-Clause-NetBSD",
"Unlicense"
] | null | null | null | ddlt/SelectIf.cpp | macton/DDLParser | 08feffa3a0608f8301d873cb26aed3e05cb9e7f6 | [
"BSD-2-Clause-NetBSD",
"Unlicense"
] | 7 | 2015-06-24T12:00:31.000Z | 2018-07-18T20:53:47.000Z | #include <new>
#include <DDLParser.h>
#include "TagIf.h"
#include "SelectIf.h"
#include "DefinitionIf.h"
#include "Util.h"
extern "C"
{
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
};
// ###### ######## ## ######## ###### ######## #### ######## ######## ## ##
// ## ... | 24.065539 | 137 | 0.554248 | macton |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.