hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
76d7e7827773f99b9c8293134a36add659a470db | 11,967 | cc | C++ | components/payments/content/service_worker_payment_instrument_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | components/payments/content/service_worker_payment_instrument_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | components/payments/content/service_worker_payment_instrument_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 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 "components/payments/content/service_worker_payment_instrument.h"
#include <memory>
#include "base/macros.h"
#include "base/strings/utf_string_... | 42.892473 | 85 | 0.725662 | zipated |
76d894eecb4ec9d1ed64777ffc785d79ae2d7418 | 3,650 | cpp | C++ | trunk/mac/BumpTop/QuickLookPreviewPanel.cpp | dyzmapl/BumpTop | 1329ea41411c7368516b942d19add694af3d602f | [
"Apache-2.0"
] | 460 | 2016-01-13T12:49:34.000Z | 2022-02-20T04:10:40.000Z | trunk/mac/BumpTop/QuickLookPreviewPanel.cpp | dyzmapl/BumpTop | 1329ea41411c7368516b942d19add694af3d602f | [
"Apache-2.0"
] | 24 | 2016-11-07T04:59:49.000Z | 2022-03-14T06:34:12.000Z | trunk/mac/BumpTop/QuickLookPreviewPanel.cpp | dyzmapl/BumpTop | 1329ea41411c7368516b942d19add694af3d602f | [
"Apache-2.0"
] | 148 | 2016-01-17T03:16:43.000Z | 2022-03-17T12:20:36.000Z | /*
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 34.761905 | 108 | 0.725479 | dyzmapl |
76dca2fdba7b0e7899f35bcd1d40e144bc00babe | 3,857 | hpp | C++ | examples/opencl/mandelbrot/maps/maps_image_generator.hpp | josephwinston/hpxcl | ebd18f245beea46be943ffa22e2fb8145b0b2836 | [
"BSL-1.0"
] | null | null | null | examples/opencl/mandelbrot/maps/maps_image_generator.hpp | josephwinston/hpxcl | ebd18f245beea46be943ffa22e2fb8145b0b2836 | [
"BSL-1.0"
] | null | null | null | examples/opencl/mandelbrot/maps/maps_image_generator.hpp | josephwinston/hpxcl | ebd18f245beea46be943ffa22e2fb8145b0b2836 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2014 Martin Stumpf
//
// 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)
#ifndef MANDELBROT_IMAGE_GENERATOR_H_
#define MANDELBROT_IMAGE_GENERATOR_H_
#include "../../../../opencl.hpp"
#include ... | 30.611111 | 89 | 0.639098 | josephwinston |
76dd1e78a5c0588a43399be8d29a2f051362aa3f | 409 | cpp | C++ | chapter14/exercise14_44.cpp | zerenlu/primer_Cpp | 4882e244ef90c9f69e344171468b8cfc8308b2c4 | [
"MIT"
] | null | null | null | chapter14/exercise14_44.cpp | zerenlu/primer_Cpp | 4882e244ef90c9f69e344171468b8cfc8308b2c4 | [
"MIT"
] | null | null | null | chapter14/exercise14_44.cpp | zerenlu/primer_Cpp | 4882e244ef90c9f69e344171468b8cfc8308b2c4 | [
"MIT"
] | null | null | null | #include<functional>
#include<map>
#include<string>
int add(int i, int j) { return i + j; }
int main()
{
auto mod = [](int i, int j) {return i % j; };
struct divide {
int operator()(int i, int j) {
return i / j;
}
};
std::map<std::string, std::function<int(int, int)>> binops = {
{"+", add},{"-",std::m... | 18.590909 | 77 | 0.515892 | zerenlu |
76e0786814b09f5672101e0f934309f12516d55b | 319 | hpp | C++ | GameState.hpp | barteksmuga/Battleship | 784629c2aeed65ce96a8bc1b2a9716f84ad7e493 | [
"MIT"
] | null | null | null | GameState.hpp | barteksmuga/Battleship | 784629c2aeed65ce96a8bc1b2a9716f84ad7e493 | [
"MIT"
] | 1 | 2018-02-15T09:17:06.000Z | 2018-02-15T11:12:44.000Z | GameState.hpp | barteksmuga/battleship | 784629c2aeed65ce96a8bc1b2a9716f84ad7e493 | [
"MIT"
] | null | null | null | //
// GameState.hpp
// battleship
//
// Created by Bartłomiej Smuga on 13/03/2018.
// Copyright © 2018 Bartłomiej Smuga. All rights reserved.
//
#ifndef GameState_hpp
#define GameState_hpp
#include <iostream>
enum GameState {
NOT_STARTED = 0,
STARTED = 1,
FINISHED = 2
};
#endif /* GameState_hpp */
| 15.190476 | 59 | 0.670846 | barteksmuga |
76e26b53776dfadf7a90c7f80c6aca0e81fe23fa | 21,642 | cxx | C++ | Servers/ServerManager/vtkSMOutputPort.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | Servers/ServerManager/vtkSMOutputPort.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | null | null | null | Servers/ServerManager/vtkSMOutputPort.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... | 33.974882 | 79 | 0.586961 | matthb2 |
76e51083bdae1e1ac87af5d04ac09bad81fe2432 | 767 | cpp | C++ | contracts/libc++/upstream/test/std/depr/depr.c.headers/stdarg_h.pass.cpp | cubetrain/CubeTrain | b930a3e88e941225c2c54219267f743c790e388f | [
"MIT"
] | null | null | null | contracts/libc++/upstream/test/std/depr/depr.c.headers/stdarg_h.pass.cpp | cubetrain/CubeTrain | b930a3e88e941225c2c54219267f743c790e388f | [
"MIT"
] | null | null | null | contracts/libc++/upstream/test/std/depr/depr.c.headers/stdarg_h.pass.cpp | cubetrain/CubeTrain | b930a3e88e941225c2c54219267f743c790e388f | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===---------------------------------... | 19.666667 | 81 | 0.499348 | cubetrain |
76ecc69f896f51291467196565fccd06635575c6 | 3,095 | cxx | C++ | dicom2rawiv/zipextract/gdcm-2.6.3/Testing/Source/MediaStorageAndFileFormat/Cxx/TestImageChangePhotometricInterpretation2.cxx | chipbuster/skull-atlas | 7f3ee009e1d5f65f101fe853a2cf6e12662970ee | [
"BSD-3-Clause"
] | 47 | 2020-03-30T14:36:46.000Z | 2022-03-06T07:44:54.000Z | dicom2rawiv/zipextract/gdcm-2.6.3/Testing/Source/MediaStorageAndFileFormat/Cxx/TestImageChangePhotometricInterpretation2.cxx | chipbuster/skull-atlas | 7f3ee009e1d5f65f101fe853a2cf6e12662970ee | [
"BSD-3-Clause"
] | null | null | null | dicom2rawiv/zipextract/gdcm-2.6.3/Testing/Source/MediaStorageAndFileFormat/Cxx/TestImageChangePhotometricInterpretation2.cxx | chipbuster/skull-atlas | 7f3ee009e1d5f65f101fe853a2cf6e12662970ee | [
"BSD-3-Clause"
] | 8 | 2020-04-01T01:22:45.000Z | 2022-01-02T13:06:09.000Z | /*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT A... | 33.27957 | 119 | 0.501454 | chipbuster |
76ef7f664ca373e6ba4b96f762c194975ff8229f | 122 | cpp | C++ | src/core/ContextException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | null | null | null | src/core/ContextException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | 26 | 2017-12-13T12:45:32.000Z | 2018-02-06T11:08:04.000Z | src/core/ContextException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | null | null | null | #include "ContextException.h"
ContextException::ContextException(const char * message) :
BaseException(message)
{
}
| 15.25 | 58 | 0.754098 | Neomer |
76f1df3488024bab58f48a5f4f5c11e8662a033d | 4,057 | cpp | C++ | Source/UnrealExtendedFramework/Libraries/DataTable/EFDataTableLibrary.cpp | ElderDeveloper/UnrealExtendedFramework | 9eda70583773159f80e8bc4406a85c476d0c80e5 | [
"MIT"
] | 1 | 2022-01-13T07:21:19.000Z | 2022-01-13T07:21:19.000Z | Source/UnrealExtendedFramework/Libraries/DataTable/EFDataTableLibrary.cpp | ElderDeveloper/UnrealExtendedFramework | 9eda70583773159f80e8bc4406a85c476d0c80e5 | [
"MIT"
] | null | null | null | Source/UnrealExtendedFramework/Libraries/DataTable/EFDataTableLibrary.cpp | ElderDeveloper/UnrealExtendedFramework | 9eda70583773159f80e8bc4406a85c476d0c80e5 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "EFDataTableLibrary.h"
#include "Engine/DataTable.h"
DEFINE_LOG_CATEGORY(LogUtiliesNode);
bool UEFDataTableLibrary::FillDataTableFromCSVString(UDataTable* DataTable, const FString& CSVString)
{
if (!DataTable || (CSVString.L... | 28.370629 | 128 | 0.733054 | ElderDeveloper |
76f53fb2c5e6c208899572e606a5d3eaae1c30f4 | 1,431 | hpp | C++ | snmp_fetch/api/asyncio.hpp | higherorderfunctor/snmp-fetch | c95e9f60d38901c500456dc6f07af343b36b4938 | [
"CC0-1.0"
] | null | null | null | snmp_fetch/api/asyncio.hpp | higherorderfunctor/snmp-fetch | c95e9f60d38901c500456dc6f07af343b36b4938 | [
"CC0-1.0"
] | 32 | 2019-09-19T05:25:07.000Z | 2019-12-05T20:28:17.000Z | snmp_fetch/api/asyncio.hpp | higherorderfunctor/snmp-fetch | c95e9f60d38901c500456dc6f07af343b36b4938 | [
"CC0-1.0"
] | null | null | null | /**
* asyncio.hpp - Async IO handlers.
*/
#ifndef SNMP_FETCH__ASYNCIO_HPP
#define SNMP_FETCH__ASYNCIO_HPP
#include "results.hpp"
#include "session.hpp"
namespace snmp_fetch {
/**
* async_sessions_send - Dispatch request PDUs.
*
* @param sessions Reference to a list of state wrapped net-snmp sessions. This ... | 24.254237 | 97 | 0.705101 | higherorderfunctor |
76f8ac63ee736a24492d7b3e6d3faa899c473991 | 936 | cpp | C++ | data/dailyCodingProblem111.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem111.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem111.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ALPHABET_SIZE 26
using namespace std;
/*
Given a word W and a string S, find all
starting indices in S which are anagrams of W.
For example, given that W is "ab",
and S is "abxaba", return 0, 3, and 4.
*/
bool compareCount(int arr1[], int arr2[]){
for(int i=0; i<ALPHABET_SIZE; i++){... | 19.102041 | 58 | 0.594017 | vidit1999 |
76fc777d7f1d48c69c3ffc790b18389c746a67d7 | 1,352 | cc | C++ | test/extensions/filters/http/transformation/inja_transformer_speed_test.cc | christian-posta/envoy-gloo | aa0c75145c26e8bdde1b52de1b5d541db0752f12 | [
"Apache-2.0"
] | null | null | null | test/extensions/filters/http/transformation/inja_transformer_speed_test.cc | christian-posta/envoy-gloo | aa0c75145c26e8bdde1b52de1b5d541db0752f12 | [
"Apache-2.0"
] | null | null | null | test/extensions/filters/http/transformation/inja_transformer_speed_test.cc | christian-posta/envoy-gloo | aa0c75145c26e8bdde1b52de1b5d541db0752f12 | [
"Apache-2.0"
] | null | null | null | #include "common/common/empty_string.h"
#include "extensions/filters/http/transformation/inja_transformer.h"
#include "test/test_common/utility.h"
#include "test/mocks/http/mocks.h"
#include "benchmark/benchmark.h"
#include "fmt/format.h"
using json = nlohmann::json;
namespace Envoy {
namespace Extensions {
namesp... | 27.04 | 78 | 0.692308 | christian-posta |
0a018d19ac5dbe3b0276f58ccd8a853499ed41f7 | 5,575 | cc | C++ | cast/sender/cast_app_availability_tracker.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | 1 | 2020-09-22T05:59:36.000Z | 2020-09-22T05:59:36.000Z | cast/sender/cast_app_availability_tracker.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | null | null | null | cast/sender/cast_app_availability_tracker.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | 1 | 2022-02-03T11:05:44.000Z | 2022-02-03T11:05:44.000Z | // Copyright 2020 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 "cast/sender/cast_app_availability_tracker.h"
#include "util/osp_logging.h"
namespace openscreen {
namespace cast {
CastAppAvailabilityTracker... | 33.584337 | 80 | 0.717848 | gtalis |
0a0352f6943a57a08da0aee8d009641c7a23c819 | 15,097 | cpp | C++ | sadx-movement-rnd/PGetAcceleration.cpp | michael-fadely/sa-movement-rnd | 8212ce59430d1f654d220b2e7e5bcb7c4b0d9c7b | [
"MIT"
] | null | null | null | sadx-movement-rnd/PGetAcceleration.cpp | michael-fadely/sa-movement-rnd | 8212ce59430d1f654d220b2e7e5bcb7c4b0d9c7b | [
"MIT"
] | null | null | null | sadx-movement-rnd/PGetAcceleration.cpp | michael-fadely/sa-movement-rnd | 8212ce59430d1f654d220b2e7e5bcb7c4b0d9c7b | [
"MIT"
] | null | null | null | #include <cmath>
#include <SADXModLoader.h>
#include "PGetAcceleration.h"
// ReSharper disable CppClangTidyCppcoreguidelinesAvoidGoto
// ReSharper disable CppClangTidyHicppAvoidGoto
// Standard functions
FunctionPointer(float, PGetAccelerationAuto, (EntityData1 *arg0, EntityData2_ *arg4, CharObj2_ *a3), 0x00447510);... | 23.119449 | 140 | 0.654037 | michael-fadely |
0a047eba0e964a37e60f19ba5dea48221ad9ae03 | 4,800 | cpp | C++ | src/operators/creategradient.cpp | CFD-lab-ZJU/PetIBM | a6578217ec1022b380f3f2a5972c8d2868ea3202 | [
"BSD-3-Clause"
] | 71 | 2015-01-19T18:22:12.000Z | 2022-03-29T01:46:14.000Z | src/operators/creategradient.cpp | CFD-lab-ZJU/PetIBM | a6578217ec1022b380f3f2a5972c8d2868ea3202 | [
"BSD-3-Clause"
] | 105 | 2015-03-02T18:10:27.000Z | 2022-03-31T21:06:01.000Z | src/operators/creategradient.cpp | piyueh/PetIBM | 59c9ddd7373c2f4659761ca425db05491069c601 | [
"MIT"
] | 45 | 2015-01-22T16:32:07.000Z | 2022-02-09T02:41:26.000Z | /**
* \file creategradient.cpp
* \brief Definition of functions creating gradient operator.
* \copyright Copyright (c) 2016-2018, Barba group. All rights reserved.
* \license BSD 3-Clause License.
*/
//
#include <functional>
// here goes PETSc headers
#include <petscmat.h>
// here goes headers from our PetIBM
#... | 34.532374 | 79 | 0.544583 | CFD-lab-ZJU |
0a090b5c2c39b7a85e59e1c595d19daf90ba3384 | 875 | cc | C++ | third_party/crashpad/crashpad/client/crash_report_database.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/crashpad/crashpad/client/crash_report_database.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/crashpad/crashpad/client/crash_report_database.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-04-04T13:34:56.000Z | 2020-11-04T07:17:52.000Z | // Copyright 2015 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | 35 | 75 | 0.739429 | hefen1 |
0a0c3b94416532fee6ad150fdf53fd0bb174b34a | 3,096 | cpp | C++ | analyticGeometry/Line.cpp | yingquelou/cpp | 616392d07295e4ad62efc5c7e939da18dce3edb9 | [
"BSD-3-Clause"
] | null | null | null | analyticGeometry/Line.cpp | yingquelou/cpp | 616392d07295e4ad62efc5c7e939da18dce3edb9 | [
"BSD-3-Clause"
] | null | null | null | analyticGeometry/Line.cpp | yingquelou/cpp | 616392d07295e4ad62efc5c7e939da18dce3edb9 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "Line.h"
using namespace std;
Line::Line() : A(0), B(0), C(0) {}
Line::Line(const double &a, const double &b, const double &c) : A(a), B(b), C(c) {}
Line::Line(const Line &L)
{
*this = L;
}
Line::Line(const Point &P, const double &k)
{
*this = Line(k, -1.0, P.Get_y() - k * P.Get_x());
}
L... | 23.633588 | 83 | 0.511951 | yingquelou |
0a0cb48fa858019a9d4b026b7ceed08b88d92bc6 | 5,020 | cpp | C++ | Source/PublicLibs/Exceptions/Exception.cpp | sebastiansam55/DigitViewer | 5d86ac14e269781dbde5f41c4325390231f7844b | [
"BSD-3-Clause"
] | null | null | null | Source/PublicLibs/Exceptions/Exception.cpp | sebastiansam55/DigitViewer | 5d86ac14e269781dbde5f41c4325390231f7844b | [
"BSD-3-Clause"
] | null | null | null | Source/PublicLibs/Exceptions/Exception.cpp | sebastiansam55/DigitViewer | 5d86ac14e269781dbde5f41c4325390231f7844b | [
"BSD-3-Clause"
] | null | null | null | /* Exception.cpp
*
* Author : Alexander J. Yee
* Date Created : 04/09/2017
* Last Modified : 04/09/2017
*
*/
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////////////////////... | 40.16 | 103 | 0.459163 | sebastiansam55 |
0a0f4eaf4f7e7b29eab3de8cac328783d5f4a232 | 1,019 | hpp | C++ | qubus/include/qubus/pattern/IR.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/include/qubus/pattern/IR.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/include/qubus/pattern/IR.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | #ifndef QUBUS_PATTERN_IR_HPP
#define QUBUS_PATTERN_IR_HPP
#include <qubus/pattern/binary_operator.hpp>
#include <qubus/pattern/unary_operator.hpp>
#include <qubus/pattern/subscription.hpp>
#include <qubus/pattern/type_conversion.hpp>
#include <qubus/pattern/compound.hpp>
#include <qubus/pattern/intrinsic_function.hpp>... | 31.84375 | 47 | 0.799804 | qubusproject |
0a0fc5fd8b8eb51c53ee7a18babc29708f7ca3f5 | 511 | cpp | C++ | Dev/SourcesEditor/Gugu/Editor/Panel/DocumentPanel.cpp | Legulysse/gugu-engine | 0014f85f27f378f4490918638fcc747367e82243 | [
"Zlib"
] | 15 | 2018-06-30T12:02:03.000Z | 2022-02-16T00:23:45.000Z | Dev/SourcesEditor/Gugu/Editor/Panel/DocumentPanel.cpp | Legulysse/gugu-engine | 0014f85f27f378f4490918638fcc747367e82243 | [
"Zlib"
] | null | null | null | Dev/SourcesEditor/Gugu/Editor/Panel/DocumentPanel.cpp | Legulysse/gugu-engine | 0014f85f27f378f4490918638fcc747367e82243 | [
"Zlib"
] | 1 | 2018-07-26T22:40:20.000Z | 2018-07-26T22:40:20.000Z | ////////////////////////////////////////////////////////////////
// Header
#include "Gugu/Common.h"
#include "Gugu/Editor/Panel/DocumentPanel.h"
////////////////////////////////////////////////////////////////
// File Implementation
namespace gugu {
DocumentPanel::DocumentPanel()
: m_dirty(false)
{... | 18.925926 | 72 | 0.500978 | Legulysse |
0a130ee802b0249d78893fb5d80c652f34638042 | 2,860 | cpp | C++ | modules/mpi/common/Profiling.cpp | burlen/ospray | e041b985dc53a2339a90a5735a22d0489b730df0 | [
"Apache-2.0"
] | null | null | null | modules/mpi/common/Profiling.cpp | burlen/ospray | e041b985dc53a2339a90a5735a22d0489b730df0 | [
"Apache-2.0"
] | null | null | null | modules/mpi/common/Profiling.cpp | burlen/ospray | e041b985dc53a2339a90a5735a22d0489b730df0 | [
"Apache-2.0"
] | null | null | null | // ======================================================================== //
// Copyright 2009-2018 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 38.133333 | 80 | 0.50035 | burlen |
0a1716840f0a99fca1962b56fc0df6929f12ad2a | 447 | cpp | C++ | sources/storage_json.cpp | Dan10022002/http-server | c4c39127e4ccb572984055fc1788a67a19d96480 | [
"MIT"
] | null | null | null | sources/storage_json.cpp | Dan10022002/http-server | c4c39127e4ccb572984055fc1788a67a19d96480 | [
"MIT"
] | null | null | null | sources/storage_json.cpp | Dan10022002/http-server | c4c39127e4ccb572984055fc1788a67a19d96480 | [
"MIT"
] | null | null | null | // Copyright 2021 Dan10022002 dan10022002@mail.ru
#include "storage_json.h"
#include <iostream>
#include <fstream>
#include <exception>
storage_json::storage_json(const std::string& name): _name(name) {}
nlohmann::json storage_json::get_storage() const {return _storage;}
void storage_json::load() {
try {
std:... | 21.285714 | 67 | 0.675615 | Dan10022002 |
0a18076ebf85a3f12e3906fd0bfce1fb6614f834 | 9,723 | cpp | C++ | emulator/src/devices/bus/ti99/gromport/gromport.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/devices/bus/ti99/gromport/gromport.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/devices/bus/ti99/gromport/gromport.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:LGPL-2.1+
// copyright-holders:Michael Zapf
/***************************************************************************
GROM port - the cartridge port of the TI-99/4, TI-99/4A, and
TI-99/8 console.
The name refers to the main intended application scenario, that is,
to host cartridges with G... | 32.627517 | 155 | 0.705852 | rjw57 |
0a224c48c7d8a756c07bc38f5dc5e3ce726a23e6 | 801 | cpp | C++ | Lab8.cpp | CZhang1997/x86-Assembly | cc749da71eb15d48ecc2e75deb524a2c1c4dc192 | [
"MIT"
] | null | null | null | Lab8.cpp | CZhang1997/x86-Assembly | cc749da71eb15d48ecc2e75deb524a2c1c4dc192 | [
"MIT"
] | null | null | null | Lab8.cpp | CZhang1997/x86-Assembly | cc749da71eb15d48ecc2e75deb524a2c1c4dc192 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
extern "C" long Average (long, long []);
void main ()
{
/*long Array1 [10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
long Array2 [11] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
long Array3 [12] = {2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24};
cout << "Average of Array1 ... | 32.04 | 68 | 0.535581 | CZhang1997 |
0a245f7ec3a6598e386f83114824a368eb8a1af3 | 1,024 | cpp | C++ | GDJS/GDJS/Events/CodeGeneration/LayoutCodeGenerator.cpp | psydox/GDevelop | cf462f6c6eede34faa5282158c2bd6a1b784d1bc | [
"MIT"
] | 2,990 | 2018-09-10T19:49:49.000Z | 2022-03-31T05:01:42.000Z | GDJS/GDJS/Events/CodeGeneration/LayoutCodeGenerator.cpp | TheGemDev/GDevelop | 6350b035e3f6ce6ecb985f02b1a591927dffe7e2 | [
"MIT"
] | 2,614 | 2018-09-09T21:37:47.000Z | 2022-03-31T22:09:25.000Z | GDJS/GDJS/Events/CodeGeneration/LayoutCodeGenerator.cpp | TheGemDev/GDevelop | 6350b035e3f6ce6ecb985f02b1a591927dffe7e2 | [
"MIT"
] | 566 | 2018-09-11T17:48:13.000Z | 2022-03-27T07:59:48.000Z | /*
* GDevelop JS Platform
* Copyright 2008-present Florian Rival (Florian.Rival@gmail.com). All rights
* reserved. This project is released under the MIT License.
*/
#include "LayoutCodeGenerator.h"
#include "EventsCodeGenerator.h"
#include "GDCore/IDE/SceneNameMangler.h"
namespace gdjs {
gd::String LayoutCodeGene... | 34.133333 | 77 | 0.723633 | psydox |
0a2745d6cb77c304ab0fe6fb652c554361a15fe6 | 4,587 | cpp | C++ | src/alignments.cpp | apregier/seqwish | 0849025e5fa6e5fdd68436595d07a139269be890 | [
"MIT"
] | null | null | null | src/alignments.cpp | apregier/seqwish | 0849025e5fa6e5fdd68436595d07a139269be890 | [
"MIT"
] | null | null | null | src/alignments.cpp | apregier/seqwish | 0849025e5fa6e5fdd68436595d07a139269be890 | [
"MIT"
] | null | null | null | #include "alignments.hpp"
namespace seqwish {
void unpack_alignments(const std::string& paf_file,
dmultimap<uint64_t, pos_t>& aln_mm,
seqindex_t& seqidx) {
// go through the PAF file
std::ifstream paf_in(paf_file.c_str());
std::string line;
std::vector<std... | 45.87 | 132 | 0.525834 | apregier |
0a280d9db50c9fd8dbca11084c28802ab12f3bc8 | 198 | cpp | C++ | Server/Server/main.cpp | Warrenate/game_net | 63fb3f2ecc8974081bf079e7b3b5e422be55f310 | [
"MIT"
] | 53 | 2018-03-27T02:41:58.000Z | 2022-03-25T03:19:42.000Z | Server/Server/main.cpp | Warrenate/game_net | 63fb3f2ecc8974081bf079e7b3b5e422be55f310 | [
"MIT"
] | 1 | 2019-09-09T07:54:07.000Z | 2019-09-09T08:53:22.000Z | Server/Server/main.cpp | Warrenate/game_net | 63fb3f2ecc8974081bf079e7b3b5e422be55f310 | [
"MIT"
] | 25 | 2018-10-15T12:54:05.000Z | 2021-12-05T18:10:03.000Z | #include <stdio.h>
#include "testpb.h"
#include "networkmgr.h"
int main(int argc, char* argv[])
{
testpb test;
test.serial();
networkmgr::Instance()->init();
system("pause");
return 0;
} | 13.2 | 32 | 0.641414 | Warrenate |
0a2baa07ef1ba28d05fe6c1214aa8552571c3af8 | 28,922 | cpp | C++ | src/random_test.cpp | kugelblitz1235/TPOrga_Final | 320e30f165be9c4ee0b57535c9db8d09d42ad389 | [
"MIT"
] | null | null | null | src/random_test.cpp | kugelblitz1235/TPOrga_Final | 320e30f165be9c4ee0b57535c9db8d09d42ad389 | [
"MIT"
] | null | null | null | src/random_test.cpp | kugelblitz1235/TPOrga_Final | 320e30f165be9c4ee0b57535c9db8d09d42ad389 | [
"MIT"
] | 2 | 2021-04-29T15:02:41.000Z | 2021-06-15T17:31:36.000Z | #include <unistd.h>
#include <iostream>
#include <string>
#include <emmintrin.h>
#include "Misc/littletest.hpp"
#include "Misc/Types.hpp"
#include "Smith_Waterman/SW_C_LIN.hpp"
#include "Smith_Waterman/SW_C_SIMDlogic.hpp"
#include "Smith_Waterman/SW_C_SSE.hpp"
#include "Smith_Waterman/SW_C_AVX.hpp"
#include "Smith_Wat... | 37.658854 | 143 | 0.637058 | kugelblitz1235 |
0a2d8a6072e689d71efe3b08ae347578ec81d563 | 10,710 | cpp | C++ | src/syzygy/codegen.cpp | cwood77/shtanky | 6e3b7ad5bdc21be8d82b3fcddd882aebbf479fd8 | [
"MIT"
] | null | null | null | src/syzygy/codegen.cpp | cwood77/shtanky | 6e3b7ad5bdc21be8d82b3fcddd882aebbf479fd8 | [
"MIT"
] | null | null | null | src/syzygy/codegen.cpp | cwood77/shtanky | 6e3b7ad5bdc21be8d82b3fcddd882aebbf479fd8 | [
"MIT"
] | null | null | null | #include "../cmn/out.hpp"
#include "../cmn/pathUtil.hpp"
#include "../cmn/throw.hpp"
#include "../cmn/trace.hpp"
#include "codegen.hpp"
namespace syzygy {
class writeAttributes {
public:
explicit writeAttributes(cmn::node& n, cmn::outStream& s) : m_n(n), m_s(s) {}
void write(std::ostream& s) const
{
i... | 22.3125 | 82 | 0.574977 | cwood77 |
0a32c92b63f0f1e2f25f2cc7c4e3be6c3e2b0867 | 4,366 | hxx | C++ | main/drawinglayer/inc/drawinglayer/primitive2d/texteffectprimitive2d.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/drawinglayer/inc/drawinglayer/primitive2d/texteffectprimitive2d.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/drawinglayer/inc/drawinglayer/primitive2d/texteffectprimitive2d.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 39.333333 | 112 | 0.661246 | Grosskopf |
0a33c974e66708d4f317b83bc18c8d9a63fb1a2e | 216 | hpp | C++ | sloth.hpp | bolym/C-ZooGame | 33a66a4e7e3cccc731520471c2641cd8f901ae02 | [
"MIT"
] | null | null | null | sloth.hpp | bolym/C-ZooGame | 33a66a4e7e3cccc731520471c2641cd8f901ae02 | [
"MIT"
] | null | null | null | sloth.hpp | bolym/C-ZooGame | 33a66a4e7e3cccc731520471c2641cd8f901ae02 | [
"MIT"
] | null | null | null | #include "animal.hpp"
#include <iostream>
using namespace std;
#ifndef SLOTH_HPP
#define SLOTH_HPP
class Sloth : public Animal {
protected:
public:
Sloth();
Sloth(int days);
};
#endif
| 12.705882 | 30 | 0.634259 | bolym |
0a34c35665269022ce4528950377bbd3a4f81e38 | 1,447 | cpp | C++ | HackerBlocks/More/GRAPH COLORING - BACKTRACKING - CODEFIGHTS.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | HackerBlocks/More/GRAPH COLORING - BACKTRACKING - CODEFIGHTS.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | HackerBlocks/More/GRAPH COLORING - BACKTRACKING - CODEFIGHTS.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // https://codefights.com/interview-practice/task/bdatSZvuKFyjJ8eYw
vector<vector<int>>adj;
vector<int>color;
int totColors;
const int MAX_COLORS_ALLOWED = 5;
bool isSafe(int node,int colr){
for(int i=0;i<adj[node].size();i++){
if(color[adj[node][i]]==colr)return false;
}
return true;
}
bool colorGraphUtil... | 24.525424 | 69 | 0.606773 | Ashwanigupta9125 |
0a385176ad82aa5e589c7421b0c2a539003c37c6 | 425 | cpp | C++ | c-interface/c_oa_partition.cpp | hxmhuang/OpenArray_Dev | 863866a6b7accf21fa253567b0e66143c7506cdf | [
"MIT"
] | 3 | 2020-09-08T05:01:56.000Z | 2020-11-23T13:11:25.000Z | c-interface/c_oa_partition.cpp | hxmhuang/OpenArray_Dev | 863866a6b7accf21fa253567b0e66143c7506cdf | [
"MIT"
] | null | null | null | c-interface/c_oa_partition.cpp | hxmhuang/OpenArray_Dev | 863866a6b7accf21fa253567b0e66143c7506cdf | [
"MIT"
] | 2 | 2019-08-16T08:32:30.000Z | 2020-02-10T08:44:04.000Z |
#include "../Partition.hpp"
extern "C"{
void c_get_default_procs_shape(int* f){
//printf("%p\n", f);
Shape s = Partition::get_default_procs_shape();
f[0] = s[0];
f[1] = s[1];
f[2] = s[2];
};
void c_set_default_procs_shape(int* s){
Partition::set_default_procs_shape({{s[0], s[1], s[2]}... | 20.238095 | 61 | 0.588235 | hxmhuang |
0a38803c94508de0cabb4a91454720bfb8e64f7e | 209 | hpp | C++ | src/types/smallint_type.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | 3 | 2021-06-24T01:05:42.000Z | 2021-07-23T07:24:16.000Z | src/types/smallint_type.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | 5 | 2021-06-25T00:13:51.000Z | 2021-07-23T14:26:01.000Z | src/types/smallint_type.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | null | null | null | #pragma once
#include "types/type_id.hpp"
#include "types/numeric_type.hpp"
class SmallIntType : public NumericType<int16_t> {
public:
TypeId type_id() const override {
return TypeId::SMALLINT;
}
};
| 17.416667 | 50 | 0.727273 | farleyknight |
0a38e88043ff1ade5d2299713d9a987de72756ed | 337 | cpp | C++ | src/access_after_realloc.cpp | geoffviola/undefined_behavior_study | c405fa766284473c5b3c9ce415c18bcc2bba227c | [
"Apache-2.0"
] | 9 | 2017-03-18T09:15:36.000Z | 2020-05-24T18:00:37.000Z | src/access_after_realloc.cpp | geoffviola/undefined_behavior_study | c405fa766284473c5b3c9ce415c18bcc2bba227c | [
"Apache-2.0"
] | 1 | 2018-06-19T19:36:19.000Z | 2018-10-15T16:49:29.000Z | src/access_after_realloc.cpp | geoffviola/undefined_behavior_study | c405fa766284473c5b3c9ce415c18bcc2bba227c | [
"Apache-2.0"
] | 3 | 2017-03-18T01:44:49.000Z | 2022-01-04T03:22:02.000Z | /*
https://en.cppreference.com/w/cpp/language/ub
Access to pointer passed to realloc
*/
#include <cstdlib>
#include <iostream>
int main() {
auto *p1 = static_cast<int *>(std::malloc(sizeof(int)));
auto *p2 = static_cast<int *>(std::realloc(p1, sizeof(int)));
std::cout << *p1 << *p2 << '\n';
free(p2);
return... | 21.0625 | 63 | 0.643917 | geoffviola |
0a38f2c53d6540d6395c66f98c1c763d9709edcf | 1,133 | hpp | C++ | boost/processes/process.hpp | dillonl/boost-cmake | 7204d4c68345a0b26e24f51fa46a04b1d2bda3e7 | [
"BSL-1.0"
] | null | null | null | boost/processes/process.hpp | dillonl/boost-cmake | 7204d4c68345a0b26e24f51fa46a04b1d2bda3e7 | [
"BSL-1.0"
] | null | null | null | boost/processes/process.hpp | dillonl/boost-cmake | 7204d4c68345a0b26e24f51fa46a04b1d2bda3e7 | [
"BSL-1.0"
] | null | null | null | // Boost.Process
//
// Copyright (c) 2006, 2007 Julio M. Merino Vidal.
// Copyright 2008 Ilya Sokolov
//
// 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.)
/// \file boost/process/process.hpp
///
/// In... | 26.348837 | 62 | 0.730803 | dillonl |
0a3be5f098b34bfa9df9cc8cbfc57d5c3e3113e3 | 2,498 | hpp | C++ | src/gui/text-render-rendered-line.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | 2 | 2019-02-28T00:28:08.000Z | 2019-10-20T14:39:48.000Z | src/gui/text-render-rendered-line.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | src/gui/text-render-rendered-line.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | // ----------------------------------------------------------------------------
// "THE BEER-WARE LICENSE" (Revision 42):
// <ztn@zurreal.com> wrote this file. As long as you retain this notice you
// can do whatever you want with this stuff. If we meet some day, and you think
// this stuff is worth it, you can buy me... | 35.685714 | 100 | 0.611289 | tilnewman |
0a3ca601ce0b54efde7d014701b01a91881f2edd | 468 | hpp | C++ | experimental/Pomdog.Experimental/Skeletal2D/AnimationTimeInterval.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Skeletal2D/AnimationTimeInterval.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Skeletal2D/AnimationTimeInterval.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_ANIMATIONTIMEINTERVAL_DEA1AD60_HPP
#define POMDOG_ANIMATIONTIMEINTERVAL_DEA1AD60_HPP
#include <chrono>
namespace Pomdog {
using AnimationTimeInterval = std::chrono::duration<float, std::ratio<1... | 26 | 74 | 0.794872 | bis83 |
0a3e53f06aaac98c9ef4c85f5069a14b30c576fb | 327 | cpp | C++ | Brickjoon_Src/Bronze2/17608.cpp | waixxt3213/Brickjoon | 66b38d7026febb090d47db1c8c56793ff1e54617 | [
"MIT"
] | null | null | null | Brickjoon_Src/Bronze2/17608.cpp | waixxt3213/Brickjoon | 66b38d7026febb090d47db1c8c56793ff1e54617 | [
"MIT"
] | null | null | null | Brickjoon_Src/Bronze2/17608.cpp | waixxt3213/Brickjoon | 66b38d7026febb090d47db1c8c56793ff1e54617 | [
"MIT"
] | 1 | 2020-10-10T14:35:59.000Z | 2020-10-10T14:35:59.000Z | #include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(nullptr);
int n,max{},i,r{};
cin >> n;
stack<int> num;
while(n--)
{
cin >> i;
num.push(i);
}
while(num.empty()!=1)
{
if (max < num.top())
{
max = num.top();
r++;
}
num.pop();
}
cout << r;
}
/... | 11.678571 | 30 | 0.519878 | waixxt3213 |
0a3f1d8d0c88247761e9cade374036be2a17fa3a | 4,762 | cc | C++ | servlib/prophet/Dictionary.cc | delay-tolerant-networking/DTN2 | 1c12a9dea32c5cbae8c46db105012a2031f4161e | [
"Apache-2.0"
] | 14 | 2016-06-27T19:28:23.000Z | 2021-06-28T20:41:17.000Z | servlib/prophet/Dictionary.cc | delay-tolerant-networking/DTN2 | 1c12a9dea32c5cbae8c46db105012a2031f4161e | [
"Apache-2.0"
] | null | null | null | servlib/prophet/Dictionary.cc | delay-tolerant-networking/DTN2 | 1c12a9dea32c5cbae8c46db105012a2031f4161e | [
"Apache-2.0"
] | 5 | 2019-09-23T11:07:39.000Z | 2021-06-28T20:41:24.000Z | /*
* Copyright 2007 Baylor University
*
* 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 appl... | 26.752809 | 78 | 0.609198 | delay-tolerant-networking |
0a40160796454073eb86dd8f6f0efee226c8f346 | 1,701 | cc | C++ | src/leveldb/issues/issue200_test.cc | moorecoin/MooreCoinMiningAlgorithm | fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d | [
"MIT"
] | null | null | null | src/leveldb/issues/issue200_test.cc | moorecoin/MooreCoinMiningAlgorithm | fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d | [
"MIT"
] | null | null | null | src/leveldb/issues/issue200_test.cc | moorecoin/MooreCoinMiningAlgorithm | fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d | [
"MIT"
] | null | null | null | // copyright (c) 2013 the leveldb authors. all rights reserved.
// use of this source code is governed by a bsd-style license that can be
// found in the license file. see the authors file for names of contributors.
// test for issue 200: when iterator switches direction from backward
// to forward, the current key ca... | 28.35 | 77 | 0.678424 | moorecoin |
0a401f23e819ff14a8ea53f85dfc66cd5dcaba64 | 899 | hpp | C++ | framework/frontend/parser/packrat/packrat_parser.hpp | aamshukov/frontend | 6be5fea43b7776691034f3b4f56d318d7cdf18f8 | [
"MIT"
] | 2 | 2018-12-21T17:08:55.000Z | 2018-12-21T17:08:57.000Z | framework/frontend/parser/packrat/packrat_parser.hpp | aamshukov/frontend | 6be5fea43b7776691034f3b4f56d318d7cdf18f8 | [
"MIT"
] | null | null | null | framework/frontend/parser/packrat/packrat_parser.hpp | aamshukov/frontend | 6be5fea43b7776691034f3b4f56d318d7cdf18f8 | [
"MIT"
] | null | null | null | //..............................
// UI Lab Inc. Arthur Amshukov .
//..............................
#ifndef __PACKRAT_PARSER_H__
#define __PACKRAT_PARSER_H__
#pragma once
BEGIN_NAMESPACE(frontend)
USINGNAMESPACE(core)
template <typename Token, typename TreeTraits>
class packrat_parser : private recursive_descent_par... | 29.966667 | 107 | 0.675195 | aamshukov |
0a4264539e00d3a996957289e9e2519b08680837 | 479 | cpp | C++ | Problems/Inzva/Algorithm_Competition_League/ACL_2/Contest_3/B.Fallen_Keys.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | 2 | 2020-07-20T06:40:22.000Z | 2021-11-20T01:23:26.000Z | Problems/Inzva/Algorithm_Competition_League/ACL_2/Contest_3/B.Fallen_Keys.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | Problems/Inzva/Algorithm_Competition_League/ACL_2/Contest_3/B.Fallen_Keys.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define maxn 101
using namespace std;
int n,m;
int bm[26];
char s[maxn];
char t[maxn];
int main() {
scanf("%d%s%d%s",&n,s,&m,t);
for( int i = 0 ; i < n ; i++ ) {
int c = s[i]-'a';
bm[c] |= 1;
}
for( int i = 0 ; i < m ; i++ ) {
int c = t[i]-'a';
bm[c] |= 2;
}
int c0 = 0 , c3 = 0;... | 14.96875 | 33 | 0.444676 | metehkaya |
0a454e7762458b03dbfd715218b172c8d0577dac | 4,018 | cpp | C++ | tests/BE/CpuTableAggregationTest.cpp | nandofioretto/cpuBE | 641e42ae4f1f7d9b82f323256fec86d7aa8f8ac1 | [
"MIT"
] | null | null | null | tests/BE/CpuTableAggregationTest.cpp | nandofioretto/cpuBE | 641e42ae4f1f7d9b82f323256fec86d7aa8f8ac1 | [
"MIT"
] | null | null | null | tests/BE/CpuTableAggregationTest.cpp | nandofioretto/cpuBE | 641e42ae4f1f7d9b82f323256fec86d7aa8f8ac1 | [
"MIT"
] | null | null | null | //
// Created by Ferdinando Fioretto on 12/20/16.
//
#include <memory>
#include <vector>
#include <gtest/gtest.h>
#include <BE/CpuBEAgent.hpp>
#include <BE/CpuAggregator.hpp>
#include <BE/CpuProjector.hpp>
#include "BE/BESolver.hpp"
#include "Problem.hpp"
using namespace std;
class CpuAggregatorTest : public ::test... | 28.097902 | 112 | 0.607765 | nandofioretto |
0a455562cf02c6bdcea96a96beb45063a758632d | 2,417 | cpp | C++ | ProvinceMapper/Source/Localization/LocalizationMapper.cpp | Idhrendur/provinceMapper | 909baf41926263be9d844c69c85da04af34b19b3 | [
"MIT"
] | 10 | 2018-12-22T03:59:24.000Z | 2021-03-20T02:11:05.000Z | ProvinceMapper/Source/Localization/LocalizationMapper.cpp | cetvrtak/provinceMapper | 9e05003c5b11c7d252aa74cb6ef4bf9a953dd13b | [
"MIT"
] | 24 | 2018-12-04T04:43:32.000Z | 2021-10-16T16:23:06.000Z | ProvinceMapper/Source/Localization/LocalizationMapper.cpp | cetvrtak/provinceMapper | 9e05003c5b11c7d252aa74cb6ef4bf9a953dd13b | [
"MIT"
] | 14 | 2019-01-09T06:00:09.000Z | 2021-09-02T10:26:55.000Z | #include "LocalizationMapper.h"
#include "CsvScraper.h"
#include "OSCompatibilityLayer.h"
#include "YmlScraper.h"
#include <fstream>
void LocalizationMapper::scrapeSourceDir(const std::string& dirPath)
{
std::string actualPath;
// our dirpath is a path to the map folder. locs are elsewhere.
if (commonItems::DoesFol... | 34.528571 | 95 | 0.724452 | Idhrendur |
0a489e288698d1d9f1cd35d2b001d9a9930d9c41 | 322 | cpp | C++ | QEverCloud/EventLoopFinisher.cpp | mgsxx/QEverCloud | 3b031507d1ef03c994f35ff9b1e52849caadc01f | [
"MIT"
] | 10 | 2015-01-25T16:46:58.000Z | 2022-01-29T19:46:45.000Z | QEverCloud/EventLoopFinisher.cpp | mgsxx/QEverCloud | 3b031507d1ef03c994f35ff9b1e52849caadc01f | [
"MIT"
] | 1 | 2015-08-31T18:24:01.000Z | 2015-09-05T18:12:06.000Z | QEverCloud/EventLoopFinisher.cpp | mgsxx/QEverCloud | 3b031507d1ef03c994f35ff9b1e52849caadc01f | [
"MIT"
] | null | null | null | #include "EventLoopFinisher.h"
/** @cond HIDDEN_SYMBOLS */
qevercloud::EventLoopFinisher::EventLoopFinisher(QEventLoop* loop, int exitCode, QObject *parent) :
QObject(parent), loop_(loop), exitCode_(exitCode)
{
}
void qevercloud::EventLoopFinisher::stopEventLoop()
{
loop_->exit(exitCode_);
}
/** @endcond *... | 20.125 | 99 | 0.723602 | mgsxx |
0a4aac7f8f27a93d5c044a5c94030c0844656ad3 | 1,608 | cc | C++ | localization/handrail_detect/ros/enable_handrail_detect.cc | Robo0603179/astrobee | 19e58806c63cddd9046342c7fa2ac7808f40ad3c | [
"Apache-2.0"
] | 629 | 2017-08-31T23:09:00.000Z | 2022-03-30T11:55:40.000Z | localization/handrail_detect/ros/enable_handrail_detect.cc | Robo0603179/astrobee | 19e58806c63cddd9046342c7fa2ac7808f40ad3c | [
"Apache-2.0"
] | 269 | 2018-05-05T12:31:16.000Z | 2022-03-30T22:04:11.000Z | localization/handrail_detect/ros/enable_handrail_detect.cc | Robo0603179/astrobee | 19e58806c63cddd9046342c7fa2ac7808f40ad3c | [
"Apache-2.0"
] | 248 | 2017-08-31T23:20:56.000Z | 2022-03-30T22:29:16.000Z | /* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with... | 38.285714 | 84 | 0.739428 | Robo0603179 |
0a4d03b56eb424764af394e50bf7e601ee68babb | 3,276 | cpp | C++ | advanced/STL/multisetContainer/main.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 1 | 2019-06-20T17:51:10.000Z | 2019-06-20T17:51:10.000Z | advanced/STL/multisetContainer/main.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 2 | 2018-10-01T08:14:01.000Z | 2018-10-06T05:27:26.000Z | advanced/STL/multisetContainer/main.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 1 | 2018-10-05T10:54:10.000Z | 2018-10-05T10:54:10.000Z | /*
* MULTISETS:
* Es como el set pero en ello si se pueden agregar datos duplicados
* */
#include <iostream>
#include <set> // para set y multiset
#include <algorithm>
#include <iterator>
#include <ctime>
#include <cstdlib>
template <typename T>
void addingValues(std::multiset<T>*);
template <typename T>
void show... | 28 | 103 | 0.635226 | eduardorasgado |
0a4db541febb0a3f9c6bf33247292ae742c6c572 | 3,676 | inl | C++ | include/Gaffer/TimeWarp.inl | mattigruener/gaffer | 8216ba1a884712575a0acae747c51b02f7a99a5d | [
"BSD-3-Clause"
] | null | null | null | include/Gaffer/TimeWarp.inl | mattigruener/gaffer | 8216ba1a884712575a0acae747c51b02f7a99a5d | [
"BSD-3-Clause"
] | 2 | 2017-08-23T21:35:45.000Z | 2018-01-29T08:59:33.000Z | include/Gaffer/TimeWarp.inl | mattigruener/gaffer | 8216ba1a884712575a0acae747c51b02f7a99a5d | [
"BSD-3-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributio... | 31.965217 | 103 | 0.708107 | mattigruener |
aea72851e869f096646664dfaec92a39999596cf | 1,479 | cpp | C++ | Engine/src/Common/Manager.cpp | Proyecto03/Motor | 9e7f379f1f64bc911293434fdfb8aa18bb8f99ab | [
"MIT"
] | 1 | 2021-07-24T03:10:38.000Z | 2021-07-24T03:10:38.000Z | Engine/src/Common/Manager.cpp | Proyecto03/Motor | 9e7f379f1f64bc911293434fdfb8aa18bb8f99ab | [
"MIT"
] | null | null | null | Engine/src/Common/Manager.cpp | Proyecto03/Motor | 9e7f379f1f64bc911293434fdfb8aa18bb8f99ab | [
"MIT"
] | 2 | 2021-05-11T10:47:37.000Z | 2021-07-24T03:10:39.000Z | #include "Manager.h"
#include "Component.h"
#include "Entity.h"
Manager::Manager(ManID id) : _manId(id) {
}
Manager::~Manager() {
destroyAllComponents();
}
int Manager::getCompID(const std::string& s)
{
auto e = enum_map_.find(s);
if (e != enum_map_.end())
return e->second;
return -1;
}
const std::list<Compo... | 19.460526 | 105 | 0.665314 | Proyecto03 |
aea81c8fe1b1ee0850d87c5847e9ea4111cad2a1 | 4,824 | hpp | C++ | poprithms/poprithms/src/poprithms/memory/inplace/op.hpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | 24 | 2020-07-06T17:11:30.000Z | 2022-01-01T07:39:12.000Z | poprithms/poprithms/src/poprithms/memory/inplace/op.hpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | null | null | null | poprithms/poprithms/src/poprithms/memory/inplace/op.hpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | 2 | 2020-07-15T12:33:22.000Z | 2021-07-27T06:07:16.000Z | // Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#ifndef POPRITHMS_MEMORY_INPLACE_OP_HPP
#define POPRITHMS_MEMORY_INPLACE_OP_HPP
#include <ios>
#include <memory>
#include <sstream>
#include <typeinfo>
#include <poprithms/common/multiout/consumptionid.hpp>
#include <poprithms/common/multiout/op.hpp>
#include ... | 30.726115 | 77 | 0.664386 | graphcore |
aeb1f881016b1ccf2d34503d7b6193f768c04d6b | 5,326 | cc | C++ | chrome/browser/ui/startup/infobar_utils.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ui/startup/infobar_utils.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ui/startup/infobar_utils.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/startup/infobar_utils.h"
#include "base/command_line.h"
#include "build/buildflag.h"
#include "build/chromeos_buildflags.h"
#... | 39.161765 | 80 | 0.736388 | chromium |
aeb397536b73870e71e8a1314c1503e197e0c49c | 3,029 | cpp | C++ | RX64M/rx64m_DMAC_sample/main.cpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 56 | 2015-06-04T14:15:38.000Z | 2022-03-01T22:58:49.000Z | RX64M/rx64m_DMAC_sample/main.cpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 30 | 2019-07-27T11:03:14.000Z | 2021-12-14T09:59:57.000Z | RX64M/rx64m_DMAC_sample/main.cpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 15 | 2017-06-24T11:33:39.000Z | 2021-12-07T07:26:58.000Z | //=====================================================================//
/*! @file
@brief RX64M DMAC サンプル @n
・P07(176) ピンに赤色LED(VF:1.9V)を吸い込みで接続する @n
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45... | 20.193333 | 73 | 0.610432 | hirakuni45 |
aeb5802c328f0b8dbad33a35390b174a120c77cd | 8,450 | cpp | C++ | src/fonts/SkTestScalerContext.cpp | Crawping/skia_custom | a7fd773196f844c1345a876bd14847c5992d27a3 | [
"BSD-3-Clause"
] | null | null | null | src/fonts/SkTestScalerContext.cpp | Crawping/skia_custom | a7fd773196f844c1345a876bd14847c5992d27a3 | [
"BSD-3-Clause"
] | null | null | null | src/fonts/SkTestScalerContext.cpp | Crawping/skia_custom | a7fd773196f844c1345a876bd14847c5992d27a3 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkDescriptor.h"
#include "SkGlyph.h"
#include "SkMask.h"
// #include "SkOTUtils.h"
#include "SkScalerContext.h"
#include ... | 33.665339 | 97 | 0.612189 | Crawping |
aebbf5f707864324d8d87bcd81b06548511636f3 | 10,128 | cpp | C++ | emulator/src/mame/video/nemesis.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/video/nemesis.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/video/nemesis.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Bryan McPhail
/***************************************************************************
video.c
***************************************************************************/
#include "emu.h"
#include "includes/nemesis.h"
#include "video/resnet.h"
static const struct... | 24.346154 | 163 | 0.641983 | rjw57 |
aec07d963f89313f25e3aa77fc735d723287fffe | 2,419 | hh | C++ | src/solvers/mg/SpectrumGS.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/solvers/mg/SpectrumGS.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/solvers/mg/SpectrumGS.hh | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*-----------------------------------//
/**
* @file SpectrumGS.hh
* @brief SpectrumGS class definition
* @note Copyright (C) 2013 Jeremy Roberts
*/
//----------------------------------------------------------------------------//
#ifndef detran_SPECTRUMGS_HH_
#define de... | 32.253333 | 80 | 0.465068 | baklanovp |
aec0f3682ad0636eb87525d8697add36b54f56d4 | 7,982 | cpp | C++ | d3d11/setup/src/demo.cpp | tocchan/sd3_samples | 1dcb4d7917629c910e1e36dd6c99b836fa03c4f8 | [
"MIT"
] | 3 | 2017-01-09T20:27:07.000Z | 2017-01-18T23:03:13.000Z | d3d11/setup/src/demo.cpp | tocchan/guildhall_samples | 1dcb4d7917629c910e1e36dd6c99b836fa03c4f8 | [
"MIT"
] | null | null | null | d3d11/setup/src/demo.cpp | tocchan/guildhall_samples | 1dcb4d7917629c910e1e36dd6c99b836fa03c4f8 | [
"MIT"
] | null | null | null | #include "demo.h"
#include "window.h"
// D3D Stuff
//------------------------------------------------------------------------
// DEFINES
//------------------------------------------------------------------------
#define WINDOW_TITLE "D3D11 SETUP"
#define WINDOW_RES_X (1280)
#define WINDOW_RES_Y (720)
#defi... | 36.78341 | 140 | 0.527311 | tocchan |
aec1b457b24fa103552f0d01402ddcb71222f4ad | 11,427 | cpp | C++ | CodeGeneration/concrete/PackCPP/impl/SimpleMDGenerator.cpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | CodeGeneration/concrete/PackCPP/impl/SimpleMDGenerator.cpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | CodeGeneration/concrete/PackCPP/impl/SimpleMDGenerator.cpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | #include "SimpleMDGenerator.hpp"
namespace dsg {
namespace generator {
SimpleMDGenerator::SimpleMDGenerator()
{
Source_R2 =
CreateFile_R2;
CreateFile_R2 =
(CreateClassDescription
<< line_g(1) << CreateClassReference) [ent0, entN];
CreateClas... | 47.6125 | 133 | 0.403693 | tedi21 |
aec5a5baef32527113c8c7d9023e67bc4a09f978 | 3,034 | cpp | C++ | isis/src/control/objs/ControlCubeGraphNode/unitTest.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | null | null | null | isis/src/control/objs/ControlCubeGraphNode/unitTest.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | null | null | null | isis/src/control/objs/ControlCubeGraphNode/unitTest.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | 1 | 2021-07-12T06:05:03.000Z | 2021-07-12T06:05:03.000Z | #include <iostream>
#include <float.h>
#include <QList>
#include <QString>
#include <QStringList>
#include "ControlMeasure.h"
#include "ControlPoint.h"
#include "ControlCubeGraphNode.h"
#include "ControlMeasureLogData.h"
#include "IException.h"
#include "Preference.h"
using namespace std;
using namespace Isis;
in... | 26.382609 | 67 | 0.654252 | ihumphrey-usgs |
aec87ea37c0a9033f5090fca87f4eafb27b57cce | 563 | cpp | C++ | Leetcode/1000-2000/1338. Reduce Array Size to The Half/1338.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1338. Reduce Array Size to The Half/1338.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1338. Reduce Array Size to The Half/1338.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class Solution {
public:
int minSetSize(vector<int>& arr) {
const int n = arr.size();
int sum = 0;
unordered_map<int, int> map;
vector<pair<int, int>> count;
for (const int a : arr)
++map[a];
for (const auto& [a, freq] : map)
count.push_back(make_pair(a, freq));
sort(begin(... | 20.851852 | 75 | 0.520426 | Next-Gen-UI |
aecd8f1315a759357d832fe5fb3bbf1b90274a28 | 169,961 | cpp | C++ | ios/versioned-react-native/ABI37_0_0/ReactNative/ReactCommon/yoga/yoga/ABI37_0_0Yoga.cpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 3 | 2020-09-06T17:32:53.000Z | 2021-05-20T19:04:48.000Z | ios/versioned-react-native/ABI37_0_0/ReactNative/ReactCommon/yoga/yoga/ABI37_0_0Yoga.cpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 2 | 2021-09-02T20:34:01.000Z | 2021-12-09T04:01:45.000Z | ios/versioned-react-native/ABI37_0_0/ReactNative/ReactCommon/yoga/yoga/ABI37_0_0Yoga.cpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 2 | 2020-04-25T16:31:11.000Z | 2020-04-25T16:31:13.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
#include "ABI37_0_0Yoga.h"
#include "ABI37_0_0log.h"
#include <float.h>
#include <string.h>
#include <algorithm>
#include <memory>
#... | 39.251963 | 116 | 0.697978 | rudylee |
aecf9ab1d9f4b82f074203cc78b2de357a5bd559 | 400 | hpp | C++ | passes/idempotent-regions/include/CheckpointCountInserter.hpp | TUDSSL/WARio | e57fe0857ba3327d42ec0be71b62ed561b7c4b2b | [
"MIT"
] | 2 | 2022-03-14T12:48:18.000Z | 2022-03-14T12:48:24.000Z | passes/idempotent-regions/include/CheckpointCountInserter.hpp | TUDSSL/WARio | e57fe0857ba3327d42ec0be71b62ed561b7c4b2b | [
"MIT"
] | null | null | null | passes/idempotent-regions/include/CheckpointCountInserter.hpp | TUDSSL/WARio | e57fe0857ba3327d42ec0be71b62ed561b7c4b2b | [
"MIT"
] | null | null | null | #pragma once
#include "Configurations.hpp"
#include "IdempotentRegionAnalysis.hpp"
#include "llvm/IR/Module.h"
class CheckpointCountInserter {
private:
llvm::Module &M;
IdempotentRegionAnalysis::CheckpointLocationsMapTy &CPLMap;
public:
CheckpointCountInserter(
Module &M, IdempotentRegionAnalysis::Chec... | 21.052632 | 76 | 0.7475 | TUDSSL |
aed129f6a1f751eb6f5478e5d0627c842fbc801e | 1,093 | cpp | C++ | src/91.cpp | wandering007/ProjectEuler | 332e1053aa8d65e764952f4133ff0f06d028136a | [
"Apache-2.0"
] | 4 | 2015-05-02T09:15:54.000Z | 2018-06-28T16:18:20.000Z | src/91.cpp | wandering007/ProjectEuler | 332e1053aa8d65e764952f4133ff0f06d028136a | [
"Apache-2.0"
] | null | null | null | src/91.cpp | wandering007/ProjectEuler | 332e1053aa8d65e764952f4133ff0f06d028136a | [
"Apache-2.0"
] | 1 | 2017-10-29T06:35:59.000Z | 2017-10-29T06:35:59.000Z | #include<iostream>
#include<fstream>
#include<string>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<set>
#include<list>
#include<algorithm>
#include<math.h>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<ctime>
#include<iomanip>
#define MAXN 50
#de... | 26.02381 | 138 | 0.602928 | wandering007 |
aed447d1c8a0da67d69dc24667f97263d6428660 | 681 | cpp | C++ | 1381.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 22 | 2017-08-12T11:56:19.000Z | 2022-03-27T10:04:31.000Z | 1381.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 2 | 2017-12-17T02:52:59.000Z | 2018-02-09T02:10:43.000Z | 1381.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 4 | 2017-12-22T15:24:38.000Z | 2020-05-18T14:51:16.000Z | #include <iostream>
using namespace std;
//const int num[10] = { 6, 2, 5, 5, 4, 5, 6, 3, 7, 6 };
const int dataa[24] = {0,0,0,0,0,0,0,0,0,0,0,0,1,2,8,9,6,9,29,39,38,65,88,128};
int main() {
// ios::sync_with_stdio(false);
// int n, total = 0;
int n;
cin >> n;
/* n -= 3;
for (int i = 0; i < 999; ++i)
for (int j... | 18.916667 | 79 | 0.440529 | yyong119 |
aed9c56612c4cfc6625a62898aa11cd4807e4ede | 6,129 | cpp | C++ | Engine/dragwidget.cpp | vadkasevas/BAS | 657f62794451c564c77d6f92b2afa9f5daf2f517 | [
"MIT"
] | 302 | 2016-05-20T12:55:23.000Z | 2022-03-29T02:26:14.000Z | Engine/dragwidget.cpp | chulakshana/BAS | 955f5a41bd004bcdd7d19725df6ab229b911c09f | [
"MIT"
] | 9 | 2016-07-21T09:04:50.000Z | 2021-05-16T07:34:42.000Z | Engine/dragwidget.cpp | chulakshana/BAS | 955f5a41bd004bcdd7d19725df6ab229b911c09f | [
"MIT"
] | 113 | 2016-05-18T07:48:37.000Z | 2022-02-26T12:59:39.000Z | #if QT_VERSION >= 0x050000
#include <QtWidgets>
#endif
#include <QLabel>
#include <QDragEnterEvent>
#include <QPainter>
#include <QMimeData>
#include <QDrag>
#include "every_cpp.h"
#include <QScrollArea>
#include "dragwidget.h"
DragWidget::DragWidget(QWidget *parent)
: QFrame(parent)
{
this->setContentsM... | 24.225296 | 122 | 0.566161 | vadkasevas |
aedbb0e0fe99e4a60d0c5df59e4e10ba624b067b | 2,172 | cpp | C++ | src/Video/LowLevelRenderer/OpenGL/OpenGLBuffer.cpp | Chainsawkitten/HymnToBeauty | b0c431869fee4314eca2aee65d93e78f7e707f10 | [
"MIT"
] | 10 | 2019-01-13T05:51:54.000Z | 2022-02-02T14:34:47.000Z | src/Video/LowLevelRenderer/OpenGL/OpenGLBuffer.cpp | Chainsawkitten/HymnToBeauty | b0c431869fee4314eca2aee65d93e78f7e707f10 | [
"MIT"
] | 46 | 2016-12-30T11:14:25.000Z | 2021-09-04T12:50:40.000Z | src/Video/LowLevelRenderer/OpenGL/OpenGLBuffer.cpp | Chainsawkitten/HymnToBeauty | b0c431869fee4314eca2aee65d93e78f7e707f10 | [
"MIT"
] | 4 | 2017-09-28T09:00:58.000Z | 2019-10-22T05:28:32.000Z | #include "OpenGLBuffer.hpp"
#include <assert.h>
#include <cstddef>
namespace Video {
OpenGLBuffer::OpenGLBuffer(Buffer::BufferUsage bufferUsage, unsigned int size, const void* data) : Buffer(bufferUsage) {
assert(size > 0);
this->size = size;
// Map high-level buffer usage to OpenGL buffer type and usa... | 27.15 | 226 | 0.677716 | Chainsawkitten |
aedc429bf82edd33067c4288ddd0c251b9e4a389 | 653 | cpp | C++ | Cpp/DSA-gfg/arrays/maxSumOfK-consectiveEle.cpp | uday256071/DataStructures-and-Algorithms | d5740a27a8e4141616307ec3771bc7ad95ff9f72 | [
"MIT"
] | null | null | null | Cpp/DSA-gfg/arrays/maxSumOfK-consectiveEle.cpp | uday256071/DataStructures-and-Algorithms | d5740a27a8e4141616307ec3771bc7ad95ff9f72 | [
"MIT"
] | null | null | null | Cpp/DSA-gfg/arrays/maxSumOfK-consectiveEle.cpp | uday256071/DataStructures-and-Algorithms | d5740a27a8e4141616307ec3771bc7ad95ff9f72 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
//Sliding window technique
int maxSumKconsecutiveEle(vector<int> v,int k){
int p1,p2,maxSum=0,sum =0;
int n= v.size();
if(n<k || k==0) return 0;
for(int i=0;i<k;i++){
sum+= v.at(i);
}
for(int i=1;i<n-k;i++){
sum= sum ... | 23.321429 | 82 | 0.548239 | uday256071 |
aedcb6f7071bfbfd16a56143c004f9da3a479b6c | 3,757 | cpp | C++ | src/atta/fileSystem/fileManager.cpp | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 1 | 2021-06-18T00:48:13.000Z | 2021-06-18T00:48:13.000Z | src/atta/fileSystem/fileManager.cpp | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 6 | 2021-03-11T21:01:27.000Z | 2021-09-06T19:41:46.000Z | src/atta/fileSystem/fileManager.cpp | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 1 | 2021-09-04T19:54:41.000Z | 2021-09-04T19:54:41.000Z | //--------------------------------------------------
// Atta File System
// fileManager.cpp
// Date: 2021-09-05
// By Breno Cunha Queiroz
//--------------------------------------------------
#include <atta/fileSystem/fileManager.h>
#include <atta/fileSystem/watchers/nullFileWatcher.h>
#include <atta/fileSystem/watchers... | 28.037313 | 113 | 0.602875 | Brenocq |
aede115ddc11f5bbaa8f771dd15f0132c6f96631 | 1,750 | cc | C++ | CPPCMS/templates_test/view.cc | AravindVasudev/intermediate-cpp | 5905da56f6c03faf7900febe0e8522fd3d695881 | [
"MIT"
] | null | null | null | CPPCMS/templates_test/view.cc | AravindVasudev/intermediate-cpp | 5905da56f6c03faf7900febe0e8522fd3d695881 | [
"MIT"
] | null | null | null | CPPCMS/templates_test/view.cc | AravindVasudev/intermediate-cpp | 5905da56f6c03faf7900febe0e8522fd3d695881 | [
"MIT"
] | null | null | null | #line 1 "view.tmpl"
#include "content.h"
#line 2 "view.tmpl"
namespace view {
#line 3 "view.tmpl"
struct message :public cppcms::base_view
#line 3 "view.tmpl"
{
#line 3 "view.tmpl"
content::message &content;
#line 3 "view.tmpl"
message(std::ostream &_s,content::message &_content): cppcms::base_view(_s),cont... | 24.305556 | 109 | 0.638286 | AravindVasudev |
aedecdbaf6d76b8b02e9d9444950b32f54717522 | 974 | hpp | C++ | include/DirectDrawSurfaceWriter.hpp | antenous/image | 7743a31d87bae1b76efdd4023f21d0f861093057 | [
"BSD-3-Clause"
] | null | null | null | include/DirectDrawSurfaceWriter.hpp | antenous/image | 7743a31d87bae1b76efdd4023f21d0f861093057 | [
"BSD-3-Clause"
] | null | null | null | include/DirectDrawSurfaceWriter.hpp | antenous/image | 7743a31d87bae1b76efdd4023f21d0f861093057 | [
"BSD-3-Clause"
] | null | null | null | /*
* @file include/DirectDrawSurfaceWriter.hpp
* DirectDrawSurfaceWriter.hpp
*
* Created on: Dec 17, 2017
* Author: Antero Nousiainen
*/
#ifndef DIRECTDRAWSURFACEWRITER_HPP_
#define DIRECTDRAWSURFACEWRITER_HPP_
#include <ostream>
#include "DirectDrawSurface.hpp"
namespace image
{
class DirectDrawSur... | 19.48 | 84 | 0.654004 | antenous |
aee2d6ed45a3c7ca1f414163797a051feb912b59 | 255 | cpp | C++ | smile-clinic/src/enum/PessoaTipoEnum.cpp | hjCostaBR/hjcostabr_smile-clinic | bb74f77f5a4b6a8ad648dc8a752306351e5de01f | [
"MIT"
] | null | null | null | smile-clinic/src/enum/PessoaTipoEnum.cpp | hjCostaBR/hjcostabr_smile-clinic | bb74f77f5a4b6a8ad648dc8a752306351e5de01f | [
"MIT"
] | null | null | null | smile-clinic/src/enum/PessoaTipoEnum.cpp | hjCostaBR/hjcostabr_smile-clinic | bb74f77f5a4b6a8ad648dc8a752306351e5de01f | [
"MIT"
] | null | null | null | /**
* File: PessoaTipoEnum.cpp
* Enum: PessoaTipoEnum
* Author: hjCostaBR
*
* Enum de tipos de pessoa, no sistema
* Smile Clinic
*/
#ifndef PESSOA_TIPO_CPP
#define PESSOA_TIPO_CPP
enum PessoaTipoEnum {
FUNCIONARIO = 0,
PACIENTE
};
#endif | 15 | 38 | 0.698039 | hjCostaBR |
aee6f103908d0dc64aea3c668d6a5515358c484a | 1,131 | cpp | C++ | 3. Algorithms on Graphs/Programming assignment 2/acyclicity/acyclicity.cpp | theyashmhatre/coursera-ds-algorithms | 99e08921c0c0271e66a9aea42e7d38b7df494007 | [
"MIT"
] | 58 | 2017-12-24T05:08:58.000Z | 2022-01-09T01:00:30.000Z | 3. Algorithms on Graphs/Programming assignment 2/acyclicity/acyclicity.cpp | theyashmhatre/coursera-ds-algorithms | 99e08921c0c0271e66a9aea42e7d38b7df494007 | [
"MIT"
] | null | null | null | 3. Algorithms on Graphs/Programming assignment 2/acyclicity/acyclicity.cpp | theyashmhatre/coursera-ds-algorithms | 99e08921c0c0271e66a9aea42e7d38b7df494007 | [
"MIT"
] | 49 | 2017-12-07T02:52:46.000Z | 2022-02-08T02:49:09.000Z | #include <iostream>
#include <vector>
using namespace std;
vector<bool> visited, rec_stack;
bool _acyclic(vector<vector<int> > &adj, int i) {
if (!visited[i]) {
// put in recursive stack and mark visited
visited[i] = true;
rec_stack[i] = true;
for (int j = 0; j < adj[i].size(); j... | 22.62 | 64 | 0.50221 | theyashmhatre |
aeee0eb9c4675aa56be42fec6103e8c8688fc094 | 6,121 | cpp | C++ | src/m_user.cpp | DreamHacks/dd3d | 4665cc6e55b415c48385c6b6279bb3fd5f8e4bc9 | [
"MIT"
] | null | null | null | src/m_user.cpp | DreamHacks/dd3d | 4665cc6e55b415c48385c6b6279bb3fd5f8e4bc9 | [
"MIT"
] | null | null | null | src/m_user.cpp | DreamHacks/dd3d | 4665cc6e55b415c48385c6b6279bb3fd5f8e4bc9 | [
"MIT"
] | 5 | 2017-07-09T12:03:19.000Z | 2022-02-09T09:37:36.000Z | #include "dd3d.h"
#include "log.h"
#include <time.h>
#include "m_user.h"
#include "utils.h"
const char* TABLE_USER = "vip_user";
const char* TABLE_SESSION = "vip_session";
static mysqlpp::Connection* Conn;
void m_user_init(void) {
Conn = database_conn();
}
void m_user_cleanup(void) {
Conn = NULL;
}
bool m_u... | 28.602804 | 139 | 0.622937 | DreamHacks |
aef07315a50b644c549da3a9d299dd76c5d33cd0 | 4,496 | cpp | C++ | src/Platforms/OpenGL/GLStandardRenderer.cpp | merphous/LavaEngine | 33fc8cab9b31a93426f5ad430ca355dd4456197a | [
"MIT"
] | 1 | 2021-08-07T21:20:19.000Z | 2021-08-07T21:20:19.000Z | src/Platforms/OpenGL/GLStandardRenderer.cpp | merphous/LavaEngine | 33fc8cab9b31a93426f5ad430ca355dd4456197a | [
"MIT"
] | null | null | null | src/Platforms/OpenGL/GLStandardRenderer.cpp | merphous/LavaEngine | 33fc8cab9b31a93426f5ad430ca355dd4456197a | [
"MIT"
] | 1 | 2021-07-31T21:54:33.000Z | 2021-07-31T21:54:33.000Z | #include "GLStandardRenderer.h"
#include "GLShaderBank.h"
namespace Lava
{
namespace OpenGL
{
GLStandardRenderer::GLStandardRenderer(Scene* scene, std::vector<GLShader*> shader_list)
: EntityRenderer(scene)
{
m_bank = new GLShaderBank();
if (shader_list.empty())
LoadDefaultShader(shader_list);
fo... | 34.852713 | 131 | 0.715525 | merphous |
aef1f4448cefe4926fecfce99b728f893ba5f66e | 337 | cpp | C++ | src/modules/commands/power_command.cpp | molayab/bobot-car-iot | 978a7ce279b894619f3b03ceb6d7675d8a414e2b | [
"MIT"
] | null | null | null | src/modules/commands/power_command.cpp | molayab/bobot-car-iot | 978a7ce279b894619f3b03ceb6d7675d8a414e2b | [
"MIT"
] | null | null | null | src/modules/commands/power_command.cpp | molayab/bobot-car-iot | 978a7ce279b894619f3b03ceb6d7675d8a414e2b | [
"MIT"
] | null | null | null | #include "modules/commands/power_command.h"
PowerCommand::PowerCommand(Engine* engine,
Engine::motor_descriptor_r motor,
uint8_t power) {
this->engine = engine;
this->motor = motor;
this->power = power;
}
void PowerCommand::execute() {
engine->set_power... | 25.923077 | 58 | 0.608309 | molayab |
aef93c965911a85823ced57d8213df001299ae21 | 636 | cpp | C++ | 0187 Repeated DNA Sequences/solution.cpp | Aden-Tao/LeetCode | c34019520b5808c4251cb76f69ca2befa820401d | [
"MIT"
] | 1 | 2019-12-19T04:13:15.000Z | 2019-12-19T04:13:15.000Z | 0187 Repeated DNA Sequences/solution.cpp | Aden-Tao/LeetCode | c34019520b5808c4251cb76f69ca2befa820401d | [
"MIT"
] | null | null | null | 0187 Repeated DNA Sequences/solution.cpp | Aden-Tao/LeetCode | c34019520b5808c4251cb76f69ca2befa820401d | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
using namespace std;
class Solution {
public:
vector<string> findRepeatedDnaSequences(string s) {
unordered_map<string, int> hash;
vector<string> res;
for (int i = 0; i + 10 <= s.size(); i ++)
{
string str = s.substr(i, 10);
... | 22.714286 | 64 | 0.518868 | Aden-Tao |
aef99b08d481b7a0b5c2709a4b6869d9effb9b2c | 2,106 | cpp | C++ | bindings/python/crocoddyl/core/activations/smooth-2norm.cpp | spykspeigel/crocoddyl | 0500e398861564b6986d99206a1e0ccec0d66a33 | [
"BSD-3-Clause"
] | 322 | 2019-06-04T12:04:00.000Z | 2022-03-28T14:37:44.000Z | bindings/python/crocoddyl/core/activations/smooth-2norm.cpp | spykspeigel/crocoddyl | 0500e398861564b6986d99206a1e0ccec0d66a33 | [
"BSD-3-Clause"
] | 954 | 2019-09-02T10:07:27.000Z | 2022-03-31T16:14:25.000Z | bindings/python/crocoddyl/core/activations/smooth-2norm.cpp | spykspeigel/crocoddyl | 0500e398861564b6986d99206a1e0ccec0d66a33 | [
"BSD-3-Clause"
] | 89 | 2019-08-13T13:37:52.000Z | 2022-03-31T15:55:07.000Z | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2020-2021, LAAS-CNRS, University of Edinburgh
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
/////////////////////////////////////////////////////////... | 47.863636 | 100 | 0.58547 | spykspeigel |
aefa99702dd6d6210dbf98b0cab762d5201865c3 | 265 | cpp | C++ | C++/1_EntradaSalidaDeDatos/potenciaCuadrada.cpp | JoseVcode/learn-programming | 829457010d3ec439a2a164efb0e69b64ec56eeb7 | [
"MIT"
] | null | null | null | C++/1_EntradaSalidaDeDatos/potenciaCuadrada.cpp | JoseVcode/learn-programming | 829457010d3ec439a2a164efb0e69b64ec56eeb7 | [
"MIT"
] | null | null | null | C++/1_EntradaSalidaDeDatos/potenciaCuadrada.cpp | JoseVcode/learn-programming | 829457010d3ec439a2a164efb0e69b64ec56eeb7 | [
"MIT"
] | null | null | null | /* Programa que muestra la potencia cuadrada de un numero entero */
#include <iostream>
int main() {
int numero;
std::cout << "Ingrese un numero: ";
std::cin >> numero;
std::cout << "La potencia es '" << numero*numero << "'" << std::endl;
return 0;
}
| 18.928571 | 71 | 0.611321 | JoseVcode |
aefb7cf5c55127abb99fc1829b2b6f4c3f546355 | 1,578 | cpp | C++ | 25mt/src/b_adjst2.cpp | johnoel/tagest | be0a6b164683c448c90f0c3952343f5963eece3d | [
"BSD-2-Clause"
] | 3 | 2015-08-26T17:14:02.000Z | 2015-11-17T04:18:56.000Z | 25mt/src/b_adjst2.cpp | johnoel/tagest | be0a6b164683c448c90f0c3952343f5963eece3d | [
"BSD-2-Clause"
] | 10 | 2015-08-20T00:51:05.000Z | 2016-11-16T19:14:48.000Z | 25mt/src/b_adjst2.cpp | johnoel/tagest | be0a6b164683c448c90f0c3952343f5963eece3d | [
"BSD-2-Clause"
] | 3 | 2016-11-16T00:52:23.000Z | 2021-09-10T02:17:40.000Z | //$Id: b_adjst2.cpp 2754 2011-01-02 20:57:07Z jsibert $
#include "coff_t.h"
#define ELEM elem
adstring effort_file_name(adstring& fleet, year_month& date);
extern ofstream clogf;
template <typename D3_ARRAY, typename MATRIX, typename VECTOR, typename DOUBLE>
void coff_t<D3_ARRAY,MATRIX,VECTOR,DOUBLE>::b_adjust(cons... | 30.346154 | 167 | 0.640684 | johnoel |
4e0146045d15e0615f28ba5f5f36e1851ac99a07 | 4,532 | cpp | C++ | src/ChargePointStatusService.cpp | Daisy000888/ESP8266-OCPP | de398456831fa72cea48c45e7efdf55a04742e82 | [
"MIT"
] | null | null | null | src/ChargePointStatusService.cpp | Daisy000888/ESP8266-OCPP | de398456831fa72cea48c45e7efdf55a04742e82 | [
"MIT"
] | null | null | null | src/ChargePointStatusService.cpp | Daisy000888/ESP8266-OCPP | de398456831fa72cea48c45e7efdf55a04742e82 | [
"MIT"
] | null | null | null | #include "Variants.h"
#include "ChargePointStatusService.h"
#include "StatusNotification.h"
#include "OcppEngine.h"
#include "EVSE.h"
#include <string.h>
ChargePointStatusService::ChargePointStatusService(WebSocketsClient *webSocket)
: webSocket(webSocket){
setChargePointStatusService(this);
}
ChargePointS... | 37.766667 | 259 | 0.752427 | Daisy000888 |
4e03e9edab5e58743b7800d3ebc006a0ebf066a5 | 2,112 | cpp | C++ | fibers/ply2vtk.cpp | paulkefer/cardioid | 59c07b714d8b066b4f84eb50487c36f6eadf634c | [
"MIT-0",
"MIT"
] | 33 | 2018-12-12T20:05:06.000Z | 2021-09-26T13:30:16.000Z | fibers/ply2vtk.cpp | paulkefer/cardioid | 59c07b714d8b066b4f84eb50487c36f6eadf634c | [
"MIT-0",
"MIT"
] | 5 | 2019-04-25T11:34:43.000Z | 2021-11-14T04:35:37.000Z | fibers/ply2vtk.cpp | paulkefer/cardioid | 59c07b714d8b066b4f84eb50487c36f6eadf634c | [
"MIT-0",
"MIT"
] | 15 | 2018-12-21T22:44:59.000Z | 2021-08-29T10:30:25.000Z | // takes in vtk and generates list of x,y,z locations at centroid of each tetrahedral element
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
using namespace std;
int main(int argc, char **argv)
{
// READ IN PLY
string dummy;
ifstream fin;
int numpoints, numcells;
... | 25.142857 | 112 | 0.559659 | paulkefer |
4e0cfb5c9fb2f01ae170b6ff65dc3a6aca49d607 | 1,314 | cpp | C++ | Lab-7/Coin_Change_DP.cpp | Hitesh1309/DAA-Lab-Submissions | acaa495628ea3755a7602cf9d8ee35874bddbe88 | [
"MIT"
] | 1 | 2022-03-15T07:09:37.000Z | 2022-03-15T07:09:37.000Z | Lab-7/Coin_Change_DP.cpp | Hitesh1309/DAA-Lab-Submissions | acaa495628ea3755a7602cf9d8ee35874bddbe88 | [
"MIT"
] | null | null | null | Lab-7/Coin_Change_DP.cpp | Hitesh1309/DAA-Lab-Submissions | acaa495628ea3755a7602cf9d8ee35874bddbe88 | [
"MIT"
] | 1 | 2022-03-15T07:09:58.000Z | 2022-03-15T07:09:58.000Z | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,t;
cout<<"\nEnter no. of denominations (where 1 would be auto added): ";
cin>>n;
vector<int> change; //vector of denominations
map<int,int> record; // map of amount - minimum number of denominations
cout<<"\nInserted a base d... | 19.61194 | 93 | 0.479452 | Hitesh1309 |
4e0f57b4d78d3f708bad3239aabc0957e7d874a9 | 2,956 | cpp | C++ | src/settingsdialog.cpp | jubnzv/qtask | f67c7034ff9576c123b885acbb942638bf85de48 | [
"MIT"
] | 11 | 2020-11-29T18:24:28.000Z | 2022-03-19T17:34:08.000Z | src/settingsdialog.cpp | jubnzv/jtask | f67c7034ff9576c123b885acbb942638bf85de48 | [
"MIT"
] | 3 | 2020-11-29T18:26:36.000Z | 2021-07-16T14:18:58.000Z | src/settingsdialog.cpp | jubnzv/jtask | f67c7034ff9576c123b885acbb942638bf85de48 | [
"MIT"
] | 1 | 2022-02-14T17:25:04.000Z | 2022-02-14T17:25:04.000Z | #include "settingsdialog.hpp"
#include <QAbstractButton>
#include <QCoreApplication>
#include <QDialog>
#include <QDialogButtonBox>
#include <QGridLayout>
#include <QIcon>
#include <QLabel>
#include <QLineEdit>
#include "configmanager.hpp"
SettingsDialog::SettingsDialog(QWidget *parent)
: QDialog(parent)
{
i... | 31.115789 | 79 | 0.701286 | jubnzv |
4e107da15c1367fa17e0ac049fba015a572b8cf1 | 2,869 | hpp | C++ | Renderers/OpenGL3/CubismOpenGL3.hpp | akoylasar/cubism | 3e1e26ccc6de87dd574bab4c2be396650fd5af45 | [
"MIT"
] | null | null | null | Renderers/OpenGL3/CubismOpenGL3.hpp | akoylasar/cubism | 3e1e26ccc6de87dd574bab4c2be396650fd5af45 | [
"MIT"
] | null | null | null | Renderers/OpenGL3/CubismOpenGL3.hpp | akoylasar/cubism | 3e1e26ccc6de87dd574bab4c2be396650fd5af45 | [
"MIT"
] | null | null | null | // This is a modified version of imgui_impl_opengl3.h found under https://github.com/ocornut/imgui/tree/master/examples
/*
The MIT License (MIT)
Copyright (c) 2014-2020 Omar Cornut
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "S... | 37.25974 | 119 | 0.767863 | akoylasar |
4e10a2a0704e2a876fe6e65936ba0d9e00a9ecb4 | 14,037 | cpp | C++ | Phoenix3D/PX2Edit/PX2EditRenderView_Res.cpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 36 | 2016-04-24T01:40:38.000Z | 2022-01-18T07:32:26.000Z | Phoenix3D/PX2Edit/PX2EditRenderView_Res.cpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | null | null | null | Phoenix3D/PX2Edit/PX2EditRenderView_Res.cpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 16 | 2016-06-13T08:43:51.000Z | 2020-09-15T13:25:58.000Z | // PX2EditRenderView_UI.cpp
#include "PX2EditRenderView_Res.hpp"
#include "PX2Edit.hpp"
#include "PX2GraphicsRoot.hpp"
#include "PX2StandardMesh.hpp"
#include "PX2VertexColor4Material.hpp"
#include "PX2Project.hpp"
#include "PX2EditEventType.hpp"
#include "PX2ResourceManager.hpp"
#include "PX2UIPicBox.hpp"
#include "P... | 29.24375 | 116 | 0.643941 | PheonixFoundation |
4e197cf1898ba1c2f3807c803eaec70505207b66 | 265 | cpp | C++ | school1/3A/10Awk.cpp | momomeomo/School | d004bf6ed6fa3a5cec4fa067b61e5842acbaa3f6 | [
"Unlicense"
] | null | null | null | school1/3A/10Awk.cpp | momomeomo/School | d004bf6ed6fa3a5cec4fa067b61e5842acbaa3f6 | [
"Unlicense"
] | null | null | null | school1/3A/10Awk.cpp | momomeomo/School | d004bf6ed6fa3a5cec4fa067b61e5842acbaa3f6 | [
"Unlicense"
] | null | null | null |
#include <iostream>
using namespace std;
void CountUp(int start, int stop, int step);
int main()
{
CountUp(10,100,2);
return 0;
}
void CountUp(int start, int stop, int step)
{
for (int x = start; x <= stop; x = x + step)
cout << x << endl;
} | 15.588235 | 48 | 0.592453 | momomeomo |
4e1be4778c49c23777ef67b1cc0a602196adef06 | 3,899 | cpp | C++ | src/hubbard/hubbard_occupancy.cpp | haampie/SIRIUS | 716c74b9e40f2dc514547b13861ce8c977f50e6c | [
"BSD-2-Clause"
] | null | null | null | src/hubbard/hubbard_occupancy.cpp | haampie/SIRIUS | 716c74b9e40f2dc514547b13861ce8c977f50e6c | [
"BSD-2-Clause"
] | 10 | 2020-10-05T16:11:47.000Z | 2021-03-15T20:31:26.000Z | src/hubbard/hubbard_occupancy.cpp | haampie/SIRIUS | 716c74b9e40f2dc514547b13861ce8c977f50e6c | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2013-2018 Mathieu Taillefumier, Anton Kozhevnikov, Thomas Schulthess
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that
// the following conditions are met:
//
// 1. Redistributions of source code must retain the ab... | 44.816092 | 116 | 0.633752 | haampie |
4e1d29c1c2f74923230b0e38e85adb175853ae1c | 355 | hpp | C++ | include/rxcpp/rx-fsm.hpp | i94matjo/rxcpp-fsm | 4706b3111065c078d55a3fc0089110d0772f3427 | [
"Apache-2.0"
] | 1 | 2020-08-05T04:21:04.000Z | 2020-08-05T04:21:04.000Z | include/rxcpp/rx-fsm.hpp | i94matjo/rxcpp-fsm | 4706b3111065c078d55a3fc0089110d0772f3427 | [
"Apache-2.0"
] | null | null | null | include/rxcpp/rx-fsm.hpp | i94matjo/rxcpp-fsm | 4706b3111065c078d55a3fc0089110d0772f3427 | [
"Apache-2.0"
] | 1 | 2020-08-05T04:21:09.000Z | 2020-08-05T04:21:09.000Z | /*! \file rx-fsm.hpp
\copyright Copyright (c) 2019, emJay Software Consulting AB. All rights reserved. Use of this source code is governed by the Apache-2.0 license, that can be found in the LICENSE.md file.
\author Mattias Johansson
*/
#pragma once
#if !defined(RX_FSM_HPP)
#define RX_FSM_HPP
#include... | 23.666667 | 191 | 0.721127 | i94matjo |
4e1d48788690a4cedea6c37b5415d151b1bc3a6f | 957 | cpp | C++ | solutions/number_of_coins.cpp | spythrone/gfg-solutions | 7bb5198a1a8c7a06d7f81eea78dfa9451252c6b2 | [
"MIT"
] | null | null | null | solutions/number_of_coins.cpp | spythrone/gfg-solutions | 7bb5198a1a8c7a06d7f81eea78dfa9451252c6b2 | [
"MIT"
] | null | null | null | solutions/number_of_coins.cpp | spythrone/gfg-solutions | 7bb5198a1a8c7a06d7f81eea78dfa9451252c6b2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution{
public:
int getsol(int coins[], int M, int V, vector<int> &v){
if(V==0)
return 0;
if(V<0)
return INT_MAX;
if(v[V]>0)
return v[V];
int x = INT_MAX;
for(int i=0; i<M; i++){
int t = getsol(coin... | 15.95 | 55 | 0.416928 | spythrone |
4e1fd934435cc72a12d13cbe2f93077ad6e730a9 | 575 | cpp | C++ | math/fps/eulerian.cpp | neal2018/library | a19f3b29f3355e32f7e5f6768a7943db48fcdff7 | [
"Unlicense"
] | 127 | 2019-07-22T03:52:01.000Z | 2022-03-11T07:20:21.000Z | math/fps/eulerian.cpp | neal2018/library | a19f3b29f3355e32f7e5f6768a7943db48fcdff7 | [
"Unlicense"
] | 39 | 2019-09-16T12:04:53.000Z | 2022-03-29T15:43:35.000Z | math/fps/eulerian.cpp | neal2018/library | a19f3b29f3355e32f7e5f6768a7943db48fcdff7 | [
"Unlicense"
] | 29 | 2019-08-10T11:27:06.000Z | 2022-03-11T07:02:43.000Z | /**
* @brief Eulerian(オイラー数)
*/
template< template< typename > class FPS, typename Mint >
FPS< Mint > eulerian(int N) {
vector< Mint > fact(N + 2), rfact(N + 2);
fact[0] = rfact[N + 1] = 1;
for(int i = 1; i <= N + 1; i++) fact[i] = fact[i - 1] * Mint(i);
rfact[N + 1] /= fact[N + 1];
for(int i = N; i >= 0; i... | 30.263158 | 68 | 0.462609 | neal2018 |
4e1ff634ac99980cea3ed37b57505a8a3174df57 | 2,410 | cpp | C++ | MedicalCenterConsole/ConsoleMenu.cpp | vm2mv/bsuir_kp_okp_medical_center | 0a555293d1e50506d7e9a4aff533a45c45e46117 | [
"MIT"
] | 8 | 2017-01-13T10:11:42.000Z | 2022-03-15T18:27:14.000Z | MedicalCenterConsole/ConsoleMenu.cpp | vm2mv/bsuir_kp_okp_medical_center | 0a555293d1e50506d7e9a4aff533a45c45e46117 | [
"MIT"
] | null | null | null | MedicalCenterConsole/ConsoleMenu.cpp | vm2mv/bsuir_kp_okp_medical_center | 0a555293d1e50506d7e9a4aff533a45c45e46117 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ConsoleMenu.h"
#include "Console.h"
#include "Language.h"
ConsoleMenu::ConsoleMenu(Console& console, const Language& language) :
m_language(language),
m_console(console)
{
}
ConsoleMenu::~ConsoleMenu()
{
}
void ConsoleMenu::AddItem(const std::string& itemName, std::function<void()>... | 18.682171 | 94 | 0.720747 | vm2mv |
4e2026c498bea5332d4de04ee95f03eb040a1408 | 831 | hpp | C++ | include/h3api/H3GzWrapper.hpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3GzWrapper.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3GzWrapper.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 48.882353 | 70 | 0.357401 | Patrulek |
4e236865b611e3c2ec1acedac0115ec2b1946382 | 7,130 | hh | C++ | src/callow/matrix/Matrix.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | src/callow/matrix/Matrix.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | src/callow/matrix/Matrix.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
/**
* @file Matrix.hh
* @author robertsj
* @date Sep 13, 2012
* @brief Matrix class definition.
*/
//---------------------------------------------------------------------------//
#ifndef callow_MATRIX_HH_
#define callow_MATRI... | 32.262443 | 81 | 0.556522 | RLReed |
4e25206edc6a95ad9851b555064f6086d560e772 | 1,134 | cpp | C++ | src/core/threading.cpp | hrxcodes/cbftp | bf2784007dcc4cc42775a2d40157c51b80383f81 | [
"MIT"
] | 8 | 2019-04-30T00:37:00.000Z | 2022-02-03T13:35:31.000Z | src/core/threading.cpp | Xtravaganz/cbftp | 31a3465e2cd539f6cf35a5d9a0bb9c5c2f639cd5 | [
"MIT"
] | 2 | 2019-11-19T12:46:13.000Z | 2019-12-20T22:13:57.000Z | src/core/threading.cpp | Xtravaganz/cbftp | 31a3465e2cd539f6cf35a5d9a0bb9c5c2f639cd5 | [
"MIT"
] | 9 | 2020-01-15T02:38:36.000Z | 2022-02-15T20:05:20.000Z | #include "threading.h"
#include <cassert>
#include "signal.h"
namespace Core {
namespace Threading {
namespace {
struct ThreadFunc {
void (*func)(void*);
void* arg;
};
void* runDetached(void* vtf) {
blockAllRegisteredSignals();
ThreadFunc* tf = reinterpret_cast<ThreadFunc*>(vtf);
tf->func(tf->arg);
de... | 20.25 | 70 | 0.710758 | hrxcodes |
89ee7655ceb006c3656f794037e50b920488c41d | 1,023 | cc | C++ | chrome/browser/infobars/simple_alert_infobar_creator.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/infobars/simple_alert_infobar_creator.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/infobars/simple_alert_infobar_creator.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/infobars/simple_alert_infobar_creator.h"
#include <memory>
#include "chrome/browser/infobars/confirm_infobar_creator.h"
#includ... | 37.888889 | 73 | 0.784946 | zealoussnow |
89efe1429b0fbffeb40ee7ec06e0c30f04edc8db | 33,897 | cpp | C++ | src/gdnative_text_server.cpp | bruvzg/gdnative_text_server_template | cdbc4eefef7ba7ebf472a608ceaba24deb807704 | [
"MIT"
] | 1 | 2021-11-08T02:49:46.000Z | 2021-11-08T02:49:46.000Z | src/gdnative_text_server.cpp | bruvzg/gdnative_text_server_template | cdbc4eefef7ba7ebf472a608ceaba24deb807704 | [
"MIT"
] | null | null | null | src/gdnative_text_server.cpp | bruvzg/gdnative_text_server_template | cdbc4eefef7ba7ebf472a608ceaba24deb807704 | [
"MIT"
] | null | null | null | /*************************************************************************/
/* gdnative_text_server.cpp */
/*************************************************************************/
#include "gdnative_text_server.h"
static int features = 0;
void *godot_text_server_constr... | 42.37125 | 220 | 0.789244 | bruvzg |
89f402ef38b6778d425ba5d152b2d4114472b980 | 624 | hpp | C++ | src/Verde/audio/AudioSfx.hpp | Cannedfood/Verde2D | 3a09e2ecc6b62281e5190183faef55c8f0447d27 | [
"CC0-1.0"
] | null | null | null | src/Verde/audio/AudioSfx.hpp | Cannedfood/Verde2D | 3a09e2ecc6b62281e5190183faef55c8f0447d27 | [
"CC0-1.0"
] | null | null | null | src/Verde/audio/AudioSfx.hpp | Cannedfood/Verde2D | 3a09e2ecc6b62281e5190183faef55c8f0447d27 | [
"CC0-1.0"
] | null | null | null | #pragma once
#include "AudioData.hpp"
#include <glm/vec2.hpp>
#include <memory>
#include <vector>
#include <mutex>
class AudioSfx {
struct Source {
unsigned source;
std::shared_ptr<AudioData> data;
};
unsigned mNextSource;
std::vector<Source> mSources;
std::mutex mMutex;
// Requires ... | 19.5 | 104 | 0.68109 | Cannedfood |
89f777f0bd2de0b4f9a49ceaec83cc03e05e032f | 2,995 | hpp | C++ | plugindev/exampleGuipluginSink.hpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 245 | 2020-10-24T16:27:13.000Z | 2022-03-31T03:01:11.000Z | plugindev/exampleGuipluginSink.hpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 41 | 2021-01-13T11:30:42.000Z | 2022-01-14T14:36:11.000Z | plugindev/exampleGuipluginSink.hpp | elinjammal/opensmile | 0ae2da44e61744ff1aaa9bae2b95d747febb08de | [
"W3C"
] | 43 | 2020-12-11T15:28:19.000Z | 2022-03-20T11:55:58.000Z | /*F***************************************************************************
* This file is part of openSMILE.
*
* Copyright (c) audEERING GmbH. All rights reserved.
* See the file COPYING for details on license terms.
***************************************************************************E*/
/* openSMIL... | 22.350746 | 221 | 0.644741 | elinjammal |
89f7a6c40bd0717c01b2e69f6b5d208d0dea3375 | 3,471 | cpp | C++ | include/pr/image/image.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 2 | 2020-11-11T16:19:04.000Z | 2021-01-19T01:53:29.000Z | include/pr/image/image.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 1 | 2020-07-27T09:00:21.000Z | 2020-07-27T10:58:10.000Z | include/pr/image/image.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 1 | 2021-04-04T01:39:55.000Z | 2021-04-04T01:39:55.000Z | //********************************************************
//
// ImageManipulator / Image
//
//********************************************************
#include "pr/common/assert.h"
#include "pr/maths/maths.h"
#include <new>
#include <d3d9.h>
#include <d3dx9.h>
#include <d3dx9tex.h>
#include "pr/Image/Imag... | 26.906977 | 148 | 0.633823 | psryland |