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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e51aed902d19268ced31e4b9cddd7a9870820a5 | 1,381 | cpp | C++ | firmware/lib/LCDMenu/LCDMenu.cpp | nowtechnologies/open_ozone_controller | 38999144a71794eb44ba3ed1d4227068e6253085 | [
"Unlicense"
] | null | null | null | firmware/lib/LCDMenu/LCDMenu.cpp | nowtechnologies/open_ozone_controller | 38999144a71794eb44ba3ed1d4227068e6253085 | [
"Unlicense"
] | null | null | null | firmware/lib/LCDMenu/LCDMenu.cpp | nowtechnologies/open_ozone_controller | 38999144a71794eb44ba3ed1d4227068e6253085 | [
"Unlicense"
] | null | null | null | #include <LiquidCrystal.h>
#include <Arduino.h>
#include "LCDMenu.h"
LCDMenu::LCDMenu(String newName, LiquidCrystal* newLCD, LCDMenu* parentMenu)
{
setName(newName);
setLCD(newLCD);
menuFirst = NULL;
menuLast = NULL;
parent = parentMenu;
}
void LCDMenu::setName(String newName)
{
Name = newName;
}
LCDMenuI... | 16.247059 | 76 | 0.678494 | nowtechnologies |
4e51f271aecf904b2424b36143a1c72d9b01eeae | 362 | cpp | C++ | Coding Blocks cpp beginner/16.Recursion Basics/03_RecursionArrayisSorted.cpp | saqeeb360/Coding-block-C- | 16cbf706c6a4a704bb07a4a535b64e03c381cd8d | [
"MIT"
] | 4 | 2021-02-27T07:12:03.000Z | 2021-09-19T07:52:33.000Z | Coding Blocks cpp beginner/16.Recursion Basics/03_RecursionArrayisSorted.cpp | saqeeb360/Coding-block-C- | 16cbf706c6a4a704bb07a4a535b64e03c381cd8d | [
"MIT"
] | null | null | null | Coding Blocks cpp beginner/16.Recursion Basics/03_RecursionArrayisSorted.cpp | saqeeb360/Coding-block-C- | 16cbf706c6a4a704bb07a4a535b64e03c381cd8d | [
"MIT"
] | 3 | 2021-05-31T06:25:56.000Z | 2021-10-03T12:01:36.000Z | #include <iostream>
using namespace std;
bool isSorted(int *arr, int n){
// Base case
if(n==0 or n==1){
return true;
}
// Recursive case
if(arr[0] < arr[1] and isSorted(arr+1, n-1)){
return true;
}
return false;
}
int main(){
int arr[] = {1,2,3,14,5};
int n = sizeof(arr)/sizeof(arr[0]... | 16.454545 | 47 | 0.560773 | saqeeb360 |
4e520af78139638ee0561e19b8578b1173ededcb | 857 | hpp | C++ | Semaforo/src/Eventos/EntraCarro.hpp | luizfnunesmarques/datastructures | b37e399e0f1ff184f5f245cad6f89ce8419034a7 | [
"Apache-2.0"
] | null | null | null | Semaforo/src/Eventos/EntraCarro.hpp | luizfnunesmarques/datastructures | b37e399e0f1ff184f5f245cad6f89ce8419034a7 | [
"Apache-2.0"
] | null | null | null | Semaforo/src/Eventos/EntraCarro.hpp | luizfnunesmarques/datastructures | b37e399e0f1ff184f5f245cad6f89ce8419034a7 | [
"Apache-2.0"
] | null | null | null | /*
* EntraCarro.hpp
*
* Created on: 27/04/2015
* Author: LuizF
*/
#ifndef ENTRACARRO_HPP_
#define ENTRACARRO_HPP_
using namespace std;
#include "EventoDePista.hpp"
#include "CarroChegouFim.hpp"
#include "../Pista/Pista.hpp"
#include "../Relogio.hpp"
#include <tuple>
class EntraCarro: public EventoDePista {... | 20.404762 | 90 | 0.70245 | luizfnunesmarques |
4e557e401d9b4c8bd264f279ad85d4652e3454c1 | 5,212 | hpp | C++ | Testbench/lambda.tests.hpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 28 | 2018-07-23T06:52:19.000Z | 2021-09-07T22:15:52.000Z | Testbench/lambda.tests.hpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 17 | 2018-09-13T13:29:05.000Z | 2021-01-04T09:23:31.000Z | Testbench/lambda.tests.hpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 4 | 2019-02-27T13:33:16.000Z | 2019-12-27T14:14:55.000Z | /*
The MIT License
Copyright (c) 2019 Geoffrey Daniels. http://gpdaniels.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 the rights
to use, co... | 37.768116 | 111 | 0.623753 | gpdaniels |
4e5cb8fa59ee0e9343a32f1b80135ce4a8210d72 | 31,108 | cpp | C++ | Drv/LinuxGpioDriver/test/ut/TesterBase.cpp | lydiaxing/fprime | f6b3e03f89e9aca1614243c9896d4a72aa0cc726 | [
"Apache-2.0"
] | 2 | 2020-09-08T05:39:05.000Z | 2021-05-04T14:58:51.000Z | Drv/LinuxGpioDriver/test/ut/TesterBase.cpp | lydiaxing/fprime | f6b3e03f89e9aca1614243c9896d4a72aa0cc726 | [
"Apache-2.0"
] | 2 | 2019-02-27T03:17:15.000Z | 2019-03-01T22:34:30.000Z | Drv/LinuxGpioDriver/test/ut/TesterBase.cpp | lydiaxing/fprime | f6b3e03f89e9aca1614243c9896d4a72aa0cc726 | [
"Apache-2.0"
] | 3 | 2019-02-17T20:41:15.000Z | 2019-02-26T21:06:50.000Z | // ======================================================================
// \title LinuxGpioDriver/test/ut/TesterBase.cpp
// \author Auto-generated
// \brief cpp file for LinuxGpioDriver component test harness base class
//
// \copyright
// Copyright 2009-2016, by the California Institute of Technology.
// ALL RIGHT... | 27.287719 | 86 | 0.558538 | lydiaxing |
4e60a8c9468d851ebdfeba874b5a922e5568ca27 | 818 | cpp | C++ | projects/Phantom.Code/phantom/lang/TemplateParameterPackTypeExpansion.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/TemplateParameterPackTypeExpansion.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/TemplateParameterPackTypeExpansion.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | #include "TemplateParameterPackTypeExpansion.h"
#include "TemplateParameterPackExpansion.h"
#include <phantom/lang/PlaceholderType.h>
namespace phantom
{
namespace lang
{
TemplateParameterPackTypeExpansion::TemplateParameterPackTypeExpansion(TemplateParameterPackExpansion* a_pExpansion)
: Type(TypeKind::Unknown,... | 31.461538 | 116 | 0.789731 | vlmillet |
4e63b3b97b000b0b110886de85342ef1e62f4211 | 138 | inl | C++ | src/libs/dependency_graph/nodes.inl | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 232 | 2017-10-09T11:45:28.000Z | 2022-03-28T11:14:46.000Z | src/libs/dependency_graph/nodes.inl | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | 26 | 2019-01-20T21:38:25.000Z | 2021-10-16T03:57:17.000Z | src/libs/dependency_graph/nodes.inl | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | 33 | 2017-10-26T19:20:38.000Z | 2022-03-16T11:21:43.000Z | #pragma once
#include "graph.h"
#include "node_base.inl"
#include "nodes.h"
#include "nodes_iterator.inl"
namespace dependency_graph {}
| 15.333333 | 29 | 0.753623 | martin-pr |
4e63d36b706dd7c73e89ddfb096bcb734762b537 | 3,343 | cpp | C++ | ccm/test/TEST_CCM_COMPLIANCE/facet_test/src/CCM_test_impl.cpp | anjingbin/starccm | 70db48004aa20bbb82cc24de80802b40c7024eff | [
"BSD-3-Clause"
] | 2 | 2020-01-06T07:43:30.000Z | 2020-07-11T20:53:53.000Z | ccm/test/TEST_CCM_COMPLIANCE/facet_test/src/CCM_test_impl.cpp | anjingbin/starccm | 70db48004aa20bbb82cc24de80802b40c7024eff | [
"BSD-3-Clause"
] | null | null | null | ccm/test/TEST_CCM_COMPLIANCE/facet_test/src/CCM_test_impl.cpp | anjingbin/starccm | 70db48004aa20bbb82cc24de80802b40c7024eff | [
"BSD-3-Clause"
] | null | null | null | // **********************************************************************
//
// Generated by the CIDL Translator
//
// Copyright (c) 2001-2004
// StarMiddleware Group
// www.StarMiddleware.net
//
// All Rights Reserved
//
// Author: Huang Jie huangjie@email.com
// Author: Chang Junsheng cjs7908@163.com
// Auth... | 19.549708 | 94 | 0.688005 | anjingbin |
4e653639daa6beee22a901dfe4dd8209fc3d41f7 | 712 | cpp | C++ | src/example_octomap_load.cpp | dringakn/ROSExamples | f4f19d21fab3630c112148e198f117f0466032c4 | [
"MIT"
] | 2 | 2020-07-14T19:37:43.000Z | 2020-07-15T04:38:09.000Z | src/example_octomap_load.cpp | dringakn/ROSExamples | f4f19d21fab3630c112148e198f117f0466032c4 | [
"MIT"
] | null | null | null | src/example_octomap_load.cpp | dringakn/ROSExamples | f4f19d21fab3630c112148e198f117f0466032c4 | [
"MIT"
] | null | null | null | /*
Author: Dr. Ing. Ahmad Kamal Nasir
Email: dringakn@gmail.com
Description:
*/
#include <octomap/octomap.h>
#include <octomap_msgs/Octomap.h>
#include <octomap_msgs/conversions.h>
#include <ros/ros.h>
int main(int argc, char* argv[]) {
ros::init(argc, argv, "load_octomap");
ros::NodeHandle nh("~");
... | 27.384615 | 69 | 0.68118 | dringakn |
4e67c9faa97cb01e092cbacddd432f2e5fbf69a4 | 5,377 | cpp | C++ | test/test_image.cpp | jamesdsmith/berkeley_sfm | de3ae6b104602c006d939b1f3da8c497b86d39ff | [
"BSD-3-Clause"
] | 21 | 2016-01-14T13:52:11.000Z | 2022-01-03T19:30:33.000Z | test/test_image.cpp | jamesdsmith/berkeley_sfm | de3ae6b104602c006d939b1f3da8c497b86d39ff | [
"BSD-3-Clause"
] | 4 | 2015-10-17T17:01:46.000Z | 2015-10-22T20:59:43.000Z | test/test_image.cpp | erik-nelson/berkeley_sfm | 5bf0b45fac176ff7abfca0ff690893c1afc73c51 | [
"BSD-3-Clause"
] | 7 | 2016-01-22T06:23:59.000Z | 2018-01-16T03:54:33.000Z | /*
* Copyright (c) 2015, The Regents of the University of California (Regents).
* 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 a... | 32.197605 | 80 | 0.675098 | jamesdsmith |
4e69b35cba10bea57a7cd7b40aeaaeaf3599ad8b | 930 | cpp | C++ | training/1-2-6-dualpal/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | 2 | 2015-12-26T21:20:12.000Z | 2017-12-19T00:11:45.000Z | training/1-2-6-dualpal/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | null | null | null | training/1-2-6-dualpal/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | null | null | null | /**
ID: <ID HERE>
LANG: C++11
TASK: dualpal
*/
#include <sstream>
#include <fstream>
#include <algorithm>
using namespace std;
char rebase_char(int digit) {
return digit + (digit < 10 ? '0' : 'A' - 10);
}
string rebase(int value, int base) {
stringstream result;
while (value > 0) {
result << rebase_char(value %... | 17.884615 | 77 | 0.583871 | hsun324 |
4e72789fe0f4179ede17970482718b48f39d19da | 4,226 | cpp | C++ | cplusplus/Core/Matrix2.cpp | MozAntonio/MatrixKalQ_OOP-Project | 38b3621e765d07607b5351049277724c56b1a285 | [
"MIT"
] | null | null | null | cplusplus/Core/Matrix2.cpp | MozAntonio/MatrixKalQ_OOP-Project | 38b3621e765d07607b5351049277724c56b1a285 | [
"MIT"
] | null | null | null | cplusplus/Core/Matrix2.cpp | MozAntonio/MatrixKalQ_OOP-Project | 38b3621e765d07607b5351049277724c56b1a285 | [
"MIT"
] | null | null | null | /* Matrix2.cpp */
#include "Matrix2.h"
#include <stdexcept>
//Costruttore di default
Matrix2::Matrix2(): SquareMatrix(2) {}
//Costruttore a 1 param
// crea una matrice quadrata 2x2
// imposta tutti gli elem a init
Matrix2::Matrix2(double init): SquareMatrix(2, init) {}
Matrix2* Matrix2::clone() const {
return new ... | 24.011364 | 106 | 0.624941 | MozAntonio |
4e72f428c7a241c34d03e60409783333f8b7f91b | 1,403 | cpp | C++ | ThePartingOfSarah/Animation.cpp | kriogenia/the-parting-of-sarah | 91cdd70f4beb1530652021ebb3a5d81c6e981e1a | [
"MIT"
] | null | null | null | ThePartingOfSarah/Animation.cpp | kriogenia/the-parting-of-sarah | 91cdd70f4beb1530652021ebb3a5d81c6e981e1a | [
"MIT"
] | 1 | 2021-01-03T15:21:45.000Z | 2021-01-03T15:21:45.000Z | ThePartingOfSarah/Animation.cpp | kriogenia/the-parting-of-sarah | 91cdd70f4beb1530652021ebb3a5d81c6e981e1a | [
"MIT"
] | null | null | null | #include "Animation.h"
Animation::Animation(string filename, float actorWidth, float actorHeight, float fileWidth,
float fileHeight, int updateFrequence, int totalFrames, bool loop, Game* game) :
actorWidth(actorWidth),
actorHeight(actorHeight),
fileWidth(fileWidth),
fileHeight(fileHeight),
updateFrequence(up... | 23 | 92 | 0.722024 | kriogenia |
4e75f56ad363ec3babf6c8e783deaaea4c10abd6 | 999 | cpp | C++ | src/RenderSystem.Vulkan/GraphicsCommandQueueVulkan.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | src/RenderSystem.Vulkan/GraphicsCommandQueueVulkan.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | src/RenderSystem.Vulkan/GraphicsCommandQueueVulkan.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#include "GraphicsCommandQueueVulkan.hpp"
#include "Pomdog/Utility/Assert.hpp"
#include "Pomdog/Utility/Exception.hpp"
namespace Pomdog {
namespace Detail {
namespace Vulkan {
void GraphicsCommandQueueVulkan::Reset()
{
POMDOG_THROW_EXCEPTION... | 25.615385 | 109 | 0.783784 | ValtoForks |
4e7796c885aaf4ec2c1944b109739e5ca64f22f6 | 559 | hpp | C++ | include/turtle/exception.hpp | sejd0n/turtle | ea548668cbff0b2f28594d27afdee3359186e7b0 | [
"BSL-1.0"
] | 46 | 2015-03-25T21:00:57.000Z | 2022-02-09T13:54:37.000Z | include/turtle/exception.hpp | sejd0n/turtle | ea548668cbff0b2f28594d27afdee3359186e7b0 | [
"BSL-1.0"
] | 83 | 2015-03-25T22:00:43.000Z | 2022-02-10T18:33:26.000Z | include/turtle/exception.hpp | sejd0n/turtle | ea548668cbff0b2f28594d27afdee3359186e7b0 | [
"BSL-1.0"
] | 22 | 2015-04-28T01:38:22.000Z | 2021-08-16T20:01:08.000Z | // http://turtle.sourceforge.net
//
// Copyright Mathieu Champlon 2012
//
// 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 MOCK_EXCEPTION_HPP_INCLUDED
#define MOCK_EXCEPTION_HPP_INCLUDED
#include "config... | 22.36 | 61 | 0.767442 | sejd0n |
4e790b94df565643c606c1d0e83c047d3bf8511a | 2,863 | cpp | C++ | VFCLibrary/SKYTregenza.cpp | kaemco/CitySim-Solver | 4274f442f57ab9e59869ec6652c370cc5bd400ee | [
"BSD-3-Clause"
] | 2 | 2021-02-22T14:50:18.000Z | 2021-07-01T14:07:31.000Z | VFCLibrary/SKYTregenza.cpp | kaemco/CitySim-Solver | 4274f442f57ab9e59869ec6652c370cc5bd400ee | [
"BSD-3-Clause"
] | 1 | 2022-02-03T09:40:17.000Z | 2022-02-03T09:40:17.000Z | VFCLibrary/SKYTregenza.cpp | idiap/CitySim-Solver | fec9007a67660186e7bc3b090651bf80e08d4d0d | [
"BSD-3-Clause"
] | 3 | 2020-10-30T20:48:15.000Z | 2021-09-03T08:51:39.000Z | #include "SKYTregenza.h"
#include "SKYRegularPatch.h"
#include "SKYTopPatch.h"
#ifdef _MSC_VER
#if defined(DEBUG_MEM)
#define CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define new new(_NORMAL_BLOCK,__FILE__, __LINE__)
#endif
#endif // _MSC_VER
using std::vector;
const unsigned int S... | 23.661157 | 121 | 0.654907 | kaemco |
4e790ee65e1657704cbd7838422fcdcec0642a82 | 61 | cpp | C++ | Source/TALK.cpp | pbghogehoge/kog | 7d45ba8ddc1b01987ccca416dbd7901a23f4412f | [
"MIT"
] | 41 | 2019-02-08T09:10:30.000Z | 2022-03-24T15:54:58.000Z | Source/TALK.cpp | pbghogehoge/kog | 7d45ba8ddc1b01987ccca416dbd7901a23f4412f | [
"MIT"
] | null | null | null | Source/TALK.cpp | pbghogehoge/kog | 7d45ba8ddc1b01987ccca416dbd7901a23f4412f | [
"MIT"
] | 4 | 2019-02-08T09:26:59.000Z | 2020-05-07T15:44:34.000Z | /*
* TALK.cpp : 会話命令用定数
*
*/
#include "TALK.h"
| 8.714286 | 26 | 0.42623 | pbghogehoge |
4e7ab6b059a58ea7c7e8bdacf3189e04741121b8 | 2,388 | cpp | C++ | src/main/resources/project-files/jace/source/jace/JFieldHelper.cpp | uw-loci/jar2lib | 8af003da31b301f31c4387333c8720abcd0046c4 | [
"BSD-2-Clause"
] | 3 | 2019-11-04T05:46:27.000Z | 2020-11-21T09:11:12.000Z | src/main/resources/project-files/jace/source/jace/JFieldHelper.cpp | uw-loci/jar2lib | 8af003da31b301f31c4387333c8720abcd0046c4 | [
"BSD-2-Clause"
] | null | null | null | src/main/resources/project-files/jace/source/jace/JFieldHelper.cpp | uw-loci/jar2lib | 8af003da31b301f31c4387333c8720abcd0046c4 | [
"BSD-2-Clause"
] | 1 | 2020-11-21T09:11:14.000Z | 2020-11-21T09:11:14.000Z |
#include "jace/JFieldHelper.h"
using jace::proxy::JObject;
using jace::JClass;
using std::string;
BEGIN_NAMESPACE( jace )
JFieldHelper::JFieldHelper( const std::string& name, const JClass& typeClass ) :
mFieldID( 0 ),
mName( name ),
mTypeClass( typeClass ) {
}
jvalue JFieldHelper::getField( JObject& obje... | 23.411765 | 110 | 0.653685 | uw-loci |
4e7ad457225b897d600f1fb0ba00aa0752048e40 | 2,375 | cpp | C++ | klee/unittests/Utils/PagePool.cpp | sebastianpoeplau/s2e | 995cac6126e7d80337e8c4a72bfa9a87eea7eb68 | [
"MIT"
] | 5 | 2021-05-29T01:18:36.000Z | 2022-01-29T11:43:42.000Z | klee/unittests/Utils/PagePool.cpp | Moirai7/s2e | 5a321f76d1a862c3898b9d24de621109b0c12b7d | [
"MIT"
] | null | null | null | klee/unittests/Utils/PagePool.cpp | Moirai7/s2e | 5a321f76d1a862c3898b9d24de621109b0c12b7d | [
"MIT"
] | 6 | 2021-03-30T14:41:17.000Z | 2022-03-18T13:06:03.000Z | ///
/// Copyright (C) 2020, Vitaly Chipounov
///
/// 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, m... | 29.6875 | 82 | 0.656842 | sebastianpoeplau |
4e7d9fb0d783cacf96624b8cfa2bf90ec56b3618 | 1,376 | hpp | C++ | src/gui/dialogs/dialogsimulationoptions.hpp | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 1 | 2021-04-19T10:23:58.000Z | 2021-04-19T10:23:58.000Z | src/gui/dialogs/dialogsimulationoptions.hpp | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 418 | 2020-10-08T07:42:27.000Z | 2022-03-08T12:10:52.000Z | src/gui/dialogs/dialogsimulationoptions.hpp | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 2 | 2021-09-02T11:20:38.000Z | 2021-10-13T14:05:32.000Z | #pragma once
#include "simulate_options.hpp"
#include <QDialog>
#include <memory>
namespace Ui {
class DialogSimulationOptions;
}
class DialogSimulationOptions : public QDialog {
Q_OBJECT
public:
explicit DialogSimulationOptions(const sme::simulate::Options &options,
QWidget *p... | 30.577778 | 73 | 0.778343 | henryiii |
4e82eaa7f79624ad2e1b767c8a6875261d9a6360 | 4,482 | cc | C++ | tensorflow/core/profiler/utils/xplane_builder_test.cc | EricRemmerswaal/tensorflow | 141ff27877579c81a213fa113bd1b474c1749aca | [
"Apache-2.0"
] | 7 | 2022-03-04T21:14:47.000Z | 2022-03-22T23:07:39.000Z | tensorflow/core/profiler/utils/xplane_builder_test.cc | EricRemmerswaal/tensorflow | 141ff27877579c81a213fa113bd1b474c1749aca | [
"Apache-2.0"
] | 3 | 2022-02-06T00:10:55.000Z | 2022-02-06T00:10:55.000Z | tensorflow/core/profiler/utils/xplane_builder_test.cc | EricRemmerswaal/tensorflow | 141ff27877579c81a213fa113bd1b474c1749aca | [
"Apache-2.0"
] | 1 | 2021-11-21T02:32:27.000Z | 2021-11-21T02:32:27.000Z | /* Copyright 2020 The TensorFlow 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 applicable law or a... | 40.378378 | 80 | 0.681838 | EricRemmerswaal |
4e83326317d143df4b4a298515402eb7529fe447 | 6,373 | cpp | C++ | Source/Utils/WarnManager.cpp | Alpine-DAV/WarpX | fe971e82a49a1c5101e5ef48cce849460dcb598d | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/Utils/WarnManager.cpp | Alpine-DAV/WarpX | fe971e82a49a1c5101e5ef48cce849460dcb598d | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/Utils/WarnManager.cpp | Alpine-DAV/WarpX | fe971e82a49a1c5101e5ef48cce849460dcb598d | [
"BSD-3-Clause-LBNL"
] | null | null | null | /* Copyright 2021 Luca Fedeli
*
* This file is part of WarpX.
*
* License: BSD-3-Clause-LBNL
*/
#include "WarnManager.H"
#include "MsgLogger/MsgLogger.H"
#include <AMReX_ParallelDescriptor.H>
#include <algorithm>
#include <sstream>
using namespace Utils;
using namespace Utils::MsgLogger;
WarnManager::WarnMan... | 26.554167 | 86 | 0.578064 | Alpine-DAV |
4e839f0261a53abc29a818299feefb29b4662061 | 5,975 | cpp | C++ | OpenSees/SRC/reliability/domain/distributions/Type2LargestValueRV.cpp | kuanshi/ductile-fracture | ccb350564df54f5c5ec3a079100effe261b46650 | [
"MIT"
] | 8 | 2019-03-05T16:25:10.000Z | 2020-04-17T14:12:03.000Z | SRC/reliability/domain/distributions/Type2LargestValueRV.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | null | null | null | SRC/reliability/domain/distributions/Type2LargestValueRV.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | 3 | 2019-09-21T03:11:11.000Z | 2020-01-19T07:29:37.000Z | /* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... | 27.036199 | 100 | 0.524017 | kuanshi |
4e84ed994b9d954d0ae0db1541ba50d9830b1a52 | 1,607 | cc | C++ | hoomd/mpcd/StreamingGeometry.cc | jglaser/hoomd-blue | c21ae2b48314dcb7ac03fc1b23baf70879cc6709 | [
"BSD-3-Clause"
] | null | null | null | hoomd/mpcd/StreamingGeometry.cc | jglaser/hoomd-blue | c21ae2b48314dcb7ac03fc1b23baf70879cc6709 | [
"BSD-3-Clause"
] | null | null | null | hoomd/mpcd/StreamingGeometry.cc | jglaser/hoomd-blue | c21ae2b48314dcb7ac03fc1b23baf70879cc6709 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: mphoward
/*!
* \file mpcd/StreamingGeometry.cc
* \brief Export functions for MPCD streaming geometries.
*/
#include "StreamingGeometry.h"
na... | 29.218182 | 91 | 0.67206 | jglaser |
4e859b1708784765c62207b01d69eb86693e024c | 6,759 | cpp | C++ | arduino/portable/sketchbook/libraries/IRremoteESP8266/test/ir_Lego_test.cpp | devshop2019/mixlyTest | bb92771aca2d5d801510658a70a13f4b548a43aa | [
"Apache-2.0"
] | 118 | 2019-03-27T02:15:59.000Z | 2022-03-18T16:42:42.000Z | arduino/portable/sketchbook/libraries/IRremoteESP8266/test/ir_Lego_test.cpp | devshop2019/mixlyTest | bb92771aca2d5d801510658a70a13f4b548a43aa | [
"Apache-2.0"
] | 26 | 2019-04-17T16:39:30.000Z | 2021-11-06T11:55:42.000Z | arduino/portable/sketchbook/libraries/IRremoteESP8266/test/ir_Lego_test.cpp | devshop2019/mixlyTest | bb92771aca2d5d801510658a70a13f4b548a43aa | [
"Apache-2.0"
] | 58 | 2019-04-16T06:52:45.000Z | 2022-03-08T01:57:08.000Z | // Copyright 2019 David Conran
#include "IRrecv.h"
#include "IRrecv_test.h"
#include "IRsend.h"
#include "IRsend_test.h"
#include "gtest/gtest.h"
// General housekeeping
TEST(TestLego, Housekeeping) {
ASSERT_EQ("LEGOPF", typeToString(LEGOPF));
ASSERT_FALSE(hasACState(LEGOPF)); // Uses uint64_t, not uint8_t*.
}
... | 34.309645 | 72 | 0.767125 | devshop2019 |
4e85a81d76b6342dd3c23a53671d6ed700d0e764 | 63 | hpp | C++ | src/boost_numeric_odeint_algebra_algebra_dispatcher.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_numeric_odeint_algebra_algebra_dispatcher.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_numeric_odeint_algebra_algebra_dispatcher.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/numeric/odeint/algebra/algebra_dispatcher.hpp>
| 31.5 | 62 | 0.84127 | miathedev |
4e89c787d419fc2b342b26ebe8db84689704173a | 4,979 | cc | C++ | curses/src/NetworkDisplay.cc | okeri/snm | 06ce502e5635029d1e642fdac87f4a19c0bc4520 | [
"MIT"
] | 3 | 2019-08-15T10:03:27.000Z | 2020-01-02T14:29:08.000Z | curses/src/NetworkDisplay.cc | okeri/snm | 06ce502e5635029d1e642fdac87f4a19c0bc4520 | [
"MIT"
] | null | null | null | curses/src/NetworkDisplay.cc | okeri/snm | 06ce502e5635029d1e642fdac87f4a19c0bc4520 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <stdexcept>
#include "NetworkDisplay.hh"
namespace {
std::string formatStatus(snm::ConnectionStatus status) {
switch (status) {
case snm::ConnectionStatus::Initializing:
return "Initializing";
case snm::ConnectionStatus::Connecting:
return "C... | 26.625668 | 80 | 0.513356 | okeri |
4e8d380df9bbc49ccf93e8c34b8cf92f2bb76fc1 | 3,529 | hpp | C++ | tests/integration/framework/nsh-lwm2m/pymbedtls/src/socket.hpp | cerkiewny/Anjay | b38ac519225cb27369c9a411f3f96899075c1216 | [
"Apache-2.0"
] | 161 | 2017-02-08T12:07:22.000Z | 2022-03-20T11:10:10.000Z | tests/integration/framework/nsh-lwm2m/pymbedtls/src/socket.hpp | cerkiewny/Anjay | b38ac519225cb27369c9a411f3f96899075c1216 | [
"Apache-2.0"
] | 53 | 2017-03-15T12:58:40.000Z | 2022-01-20T09:31:54.000Z | tests/integration/framework/nsh-lwm2m/pymbedtls/src/socket.hpp | cerkiewny/Anjay | b38ac519225cb27369c9a411f3f96899075c1216 | [
"Apache-2.0"
] | 68 | 2017-02-21T15:02:02.000Z | 2022-03-19T06:24:21.000Z | /*
* Copyright 2017-2021 AVSystem <avsystem@avsystem.com>
*
* 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 ap... | 31.508929 | 80 | 0.725135 | cerkiewny |
4e8eebe26a5f0a1fb33df7082cceaba5a4038c1d | 647 | cpp | C++ | game2/src/InstructionShape.cpp | uta-gasp/custom-calibration | 0e2039e56934f1aefd3a561a18bba960a34432ff | [
"MIT"
] | null | null | null | game2/src/InstructionShape.cpp | uta-gasp/custom-calibration | 0e2039e56934f1aefd3a561a18bba960a34432ff | [
"MIT"
] | null | null | null | game2/src/InstructionShape.cpp | uta-gasp/custom-calibration | 0e2039e56934f1aefd3a561a18bba960a34432ff | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include "InstructionShape.h"
#include "assets_pg.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
//---------------------------------------------------------------------------
usi... | 34.052632 | 79 | 0.421947 | uta-gasp |
4e8fd0b4a02981b63c1911dfb824cbe6c436aa8a | 805 | hpp | C++ | libstark/src/reductions/BairToAcsp/Details/instanceMappings.hpp | ddsvetlov/libSTARK | 38aeda615864346dc1ff4c290e0d0d12ea324dfb | [
"MIT"
] | 399 | 2018-02-28T17:11:54.000Z | 2022-03-24T07:41:39.000Z | libstark/src/reductions/BairToAcsp/Details/instanceMappings.hpp | ddsvetlov/libSTARK | 38aeda615864346dc1ff4c290e0d0d12ea324dfb | [
"MIT"
] | 18 | 2018-03-02T14:53:53.000Z | 2022-02-14T21:30:03.000Z | libstark/src/reductions/BairToAcsp/Details/instanceMappings.hpp | ddsvetlov/libSTARK | 38aeda615864346dc1ff4c290e0d0d12ea324dfb | [
"MIT"
] | 90 | 2018-03-01T01:18:44.000Z | 2022-02-23T00:28:50.000Z | #ifndef _COMMON_BairToAcsp_INSTANCEMAPPINGS_HPP__
#define _COMMON_BairToAcsp_INSTANCEMAPPINGS_HPP__
#include "commonMappings.hpp"
namespace libstark{
namespace BairToAcsp{
class instanceMappings : public commonMappings{
public:
instanceMappings(const common& commonInfo);
Algebra::FieldElement mapVariable... | 28.75 | 81 | 0.818634 | ddsvetlov |
4e91aaef0de6e20e02dbac66ae2d01b0d3fe48f5 | 651 | cpp | C++ | oi/joi/2016/a.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | oi/joi/2016/a.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | oi/joi/2016/a.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
void solve() {
int n,m,k;
cin >> n >> m >> k;
vector<int> a(n);
for (auto& x: a) cin >> x;
vector<ll> dp(n + 1, 1ll<<61);
dp[0] = 0;
for (int i = 0; i < n; i++) {
int mx = 0, mi = 2e9;
for (int j = i; j >= 0 ... | 21.7 | 72 | 0.423963 | sogapalag |
4e9320278fa26067f1f233e67e18f53cfce8a6a9 | 429 | hpp | C++ | include/imports.hpp | Dschahannam/bitcoin-clipper-poc | b490727925896a4394967d87168db58fe92e8053 | [
"Unlicense"
] | null | null | null | include/imports.hpp | Dschahannam/bitcoin-clipper-poc | b490727925896a4394967d87168db58fe92e8053 | [
"Unlicense"
] | null | null | null | include/imports.hpp | Dschahannam/bitcoin-clipper-poc | b490727925896a4394967d87168db58fe92e8053 | [
"Unlicense"
] | null | null | null | #pragma once
/*
* Bitcoin Clipper
* Author: d5chahannam
* Created at 05.02.2022 - 16:11
*/
#include <windows.h>
#include <string>
#include <optional>
#include <vector>
#include <sstream>
#include <functional>
#include <xmmintrin.h>
#include <iostream>
#include <thread>
#include <map>
#include <memory>
#include "... | 16.5 | 32 | 0.710956 | Dschahannam |
4e935aa9e1ab12dbc71e907c3dfaa74793d75f69 | 217 | hpp | C++ | Libraries/OpenGLApi/Precompiled.hpp | jodavis42/ZilchShadersSamples | 3c94d295b68ae2e81ece3b12f3a17fe7d59566de | [
"MIT"
] | 1 | 2019-08-31T00:45:44.000Z | 2019-08-31T00:45:44.000Z | Libraries/OpenGLApi/Precompiled.hpp | jodavis42/ZilchShadersSamples | 3c94d295b68ae2e81ece3b12f3a17fe7d59566de | [
"MIT"
] | 2 | 2019-09-08T16:06:05.000Z | 2019-09-08T16:06:58.000Z | Libraries/OpenGLApi/Precompiled.hpp | jodavis42/ZilchShadersSamples | 3c94d295b68ae2e81ece3b12f3a17fe7d59566de | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
/// Authors: Joshua Davis
///////////////////////////////////////////////////////////////////////////////
#include "OpenGlStandard.hpp"
| 36.166667 | 79 | 0.193548 | jodavis42 |
4e93bae694204ba96aa472df407598577daf2cf5 | 344 | cpp | C++ | test/neg/neg-vis9.cpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | null | null | null | test/neg/neg-vis9.cpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | null | null | null | test/neg/neg-vis9.cpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-06-10T11:14:25.000Z | 2021-06-10T11:14:25.000Z | #include <upcxx/upcxx.hpp>
#include <tuple>
int main() {
upcxx::init();
long v = 0;
std::pair<long *,int> dp(&v,1);
using V = double;
upcxx::global_ptr<V> gp = upcxx::new_<V>();
std::pair<upcxx::global_ptr<V>,int> sp(gp,1);
upcxx::rget_irregular(&sp,&sp+1,
&dp,&dp+1).wait();
... | 19.111111 | 47 | 0.549419 | snake0 |
4e97a4dbcd077add0e8ade12a7257129cdca02b9 | 261 | hpp | C++ | mge_v18_student_version/src/mge/util/LevelEditor/Factories/BoxFactory.hpp | TristanSmeets/Agent-OwO | 9ee94c8fd605cdf2b2274624ef55f83e527ee472 | [
"MIT"
] | null | null | null | mge_v18_student_version/src/mge/util/LevelEditor/Factories/BoxFactory.hpp | TristanSmeets/Agent-OwO | 9ee94c8fd605cdf2b2274624ef55f83e527ee472 | [
"MIT"
] | null | null | null | mge_v18_student_version/src/mge/util/LevelEditor/Factories/BoxFactory.hpp | TristanSmeets/Agent-OwO | 9ee94c8fd605cdf2b2274624ef55f83e527ee472 | [
"MIT"
] | null | null | null | #pragma once
#include "mge/util/LevelEditor/Factories/AbstractFactory.hpp"
class BoxFactory :
public AbstractFactory
{
public:
BoxFactory();
BoxFactory(lua_State* config);
virtual ~BoxFactory();
GameObject* CreateGameObject(const std::string& name);
};
| 18.642857 | 61 | 0.766284 | TristanSmeets |
4e9a61cc5d30dd1a3291541b0fe590e2238684bb | 3,036 | hpp | C++ | cpp/benchmarks/io/cuio_benchmarks_common.hpp | isVoid/cudf | 1a3b3f217be93a55b47af3a9d0da29f0fcb7c7e9 | [
"Apache-2.0"
] | 1 | 2020-07-08T21:46:50.000Z | 2020-07-08T21:46:50.000Z | cpp/benchmarks/io/cuio_benchmarks_common.hpp | isVoid/cudf | 1a3b3f217be93a55b47af3a9d0da29f0fcb7c7e9 | [
"Apache-2.0"
] | 1 | 2020-02-01T14:20:00.000Z | 2020-02-01T14:20:00.000Z | cpp/benchmarks/io/cuio_benchmarks_common.hpp | isVoid/cudf | 1a3b3f217be93a55b47af3a9d0da29f0fcb7c7e9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020, NVIDIA 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 ... | 55.2 | 85 | 0.666667 | isVoid |
4e9c112aba70b599d6ee437faa0806448ec9c100 | 251 | cpp | C++ | src/MIT_alice/MAUIUniversalWidget.cpp | midasitdev/aliceui | 3693018021892bcccbc66f29b931d9736db6f9dc | [
"MIT"
] | 10 | 2019-02-21T13:07:06.000Z | 2019-09-21T02:56:37.000Z | src/MIT_alice/MAUIUniversalWidget.cpp | midasitdev/aliceui | 3693018021892bcccbc66f29b931d9736db6f9dc | [
"MIT"
] | 5 | 2019-02-28T03:11:50.000Z | 2019-03-08T00:16:17.000Z | src/MIT_alice/MAUIUniversalWidget.cpp | midasitdev/aliceui | 3693018021892bcccbc66f29b931d9736db6f9dc | [
"MIT"
] | 5 | 2019-02-25T00:53:08.000Z | 2019-07-05T01:50:34.000Z | #include "stdafx.h"
#include "MAUIUniversalWidget.h"
using namespace mit::alice;
MRUNTIME_IMPL_KINDOF( MAUIUniversalWidget, MAUILinearLayoutWidget );
MAUIUniversalWidget::MAUIUniversalWidget()
{
}
MAUIUniversalWidget::~MAUIUniversalWidget()
{
}
| 14.764706 | 68 | 0.796813 | midasitdev |
4ea1e388b435829354c388be3a3d2c03312009e1 | 38,412 | cpp | C++ | Engine/Source/Developer/LogVisualizer/Private/SVisualLogger.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Developer/LogVisualizer/Private/SVisualLogger.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Developer/LogVisualizer/Private/SVisualLogger.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "SVisualLogger.h"
#include "Framework/MultiBox/MultiBoxBuilder.h"
#include "HAL/FileManager.h"
#include "Misc/CommandLine.h"
#include "Modules/ModuleManager.h"
#include "Async/Future.h"
#include "Async/Async.h"
#include "EngineGlobals.h"
#include "D... | 34.66787 | 338 | 0.753853 | windystrife |
4ea6fef8b34e2ba4255c5e6857d5400647e80b6e | 1,865 | cpp | C++ | src/OpcUaStackServer/NodeSet/NodeSetAlias.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 108 | 2018-10-08T17:03:32.000Z | 2022-03-21T00:52:26.000Z | src/OpcUaStackServer/NodeSet/NodeSetAlias.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 287 | 2018-09-18T14:59:12.000Z | 2022-01-13T12:28:23.000Z | src/OpcUaStackServer/NodeSet/NodeSetAlias.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 32 | 2018-10-19T14:35:03.000Z | 2021-11-12T09:36:46.000Z | /*
Copyright 2015 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorgeschri... | 24.539474 | 86 | 0.727078 | gianricardo |
4eab81d30d8d15441082a57dadd4bfce25ba3016 | 4,192 | hh | C++ | aeh/src/function_ref.hh | asielorz/aeh | 6dbcce0970a558fb7f164b8880a3e834f9f6c8c9 | [
"MIT"
] | null | null | null | aeh/src/function_ref.hh | asielorz/aeh | 6dbcce0970a558fb7f164b8880a3e834f9f6c8c9 | [
"MIT"
] | null | null | null | aeh/src/function_ref.hh | asielorz/aeh | 6dbcce0970a558fb7f164b8880a3e834f9f6c8c9 | [
"MIT"
] | null | null | null | #pragma once
#include "function_ptr.hh"
#include <functional>
/*
* Non owning polymorphic callable object wrapper.
* Trivially copyable and destructible.
*
* template <typename Ret, typename ... Args>
* struct function_ref<Ret(Args...) noexcept> // Noexcept is optional. Will make operator () noexcept
* {
* constexp... | 33.536 | 129 | 0.706584 | asielorz |
4eac4c67a657f287e70ee0a72609ef045c120c35 | 3,778 | cpp | C++ | models/Class.cpp | AvaN0x/IUT-UMLDesigner | aa03d0b7406bcb6c06dc24ba2f853393de3b3233 | [
"MIT"
] | 2 | 2021-12-15T14:52:53.000Z | 2021-12-16T20:12:52.000Z | models/Class.cpp | AvaN0x/IUT-UMLDesigner | aa03d0b7406bcb6c06dc24ba2f853393de3b3233 | [
"MIT"
] | null | null | null | models/Class.cpp | AvaN0x/IUT-UMLDesigner | aa03d0b7406bcb6c06dc24ba2f853393de3b3233 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <ostream>
#include "List.hpp"
#include "Class.hpp"
#include "Attribute.hpp"
#include "Method.hpp"
namespace iut_cpp
{
Class::Class(Class const &c) : _javaWrapper(nullptr),
_name(c._name),
_templates(c._templates),
... | 39.354167 | 223 | 0.365802 | AvaN0x |
4eadd89f3f5500004b3f5a1acf6ffe38d21b4262 | 14,124 | cpp | C++ | LittleBearDllNew/BypassUacRegistry.cpp | satadriver/LittleBear | ad3939f971b1c3ac4a97d2c228e52b4eb1f388e5 | [
"Apache-2.0"
] | null | null | null | LittleBearDllNew/BypassUacRegistry.cpp | satadriver/LittleBear | ad3939f971b1c3ac4a97d2c228e52b4eb1f388e5 | [
"Apache-2.0"
] | null | null | null | LittleBearDllNew/BypassUacRegistry.cpp | satadriver/LittleBear | ad3939f971b1c3ac4a97d2c228e52b4eb1f388e5 | [
"Apache-2.0"
] | null | null | null | #include <windows.h>
#include "PublicVar.h"
#include "BypassUacRegistry.h"
//http://www.freebuf.com/sectool/114592.html
//http://bbs.pediy.com/thread-208717.htm
//http://blog.csdn.net/qq_27446553/article/details/52610365?locationNum=7
//http://www.freebuf.com/articles/system/116611.html
typedef VOID (WINAPI * PFN_... | 25.357271 | 130 | 0.662206 | satadriver |
4eb12b224403a10beb9ef674fa161ceb664fa61d | 143 | cpp | C++ | exercises/exercise1/tests/TrigMathTests.cpp | emilybache/TestingLegacyCodeCourse.cpp | c304089b32e8310607e4931062b23fe1d4b93b2c | [
"Apache-2.0"
] | null | null | null | exercises/exercise1/tests/TrigMathTests.cpp | emilybache/TestingLegacyCodeCourse.cpp | c304089b32e8310607e4931062b23fe1d4b93b2c | [
"Apache-2.0"
] | null | null | null | exercises/exercise1/tests/TrigMathTests.cpp | emilybache/TestingLegacyCodeCourse.cpp | c304089b32e8310607e4931062b23fe1d4b93b2c | [
"Apache-2.0"
] | 1 | 2020-11-27T11:39:59.000Z | 2020-11-27T11:39:59.000Z | #include <catch2/catch.hpp>
#include "TrigMath.h"
TEST_CASE("Test Sin") {
TrigMath math;
// REQUIRE(math.Sin(3.4) == Approx(0.0));
}
| 15.888889 | 45 | 0.622378 | emilybache |
4eb170a44b9db07b5a96d0d3b7eb034d7466231e | 3,562 | cpp | C++ | autoware_vector_map/src/vector_map_visualizer_node/vector_map_visualizer_node.cpp | kenji-miyake/draft-of-autoware-vector-map | 8fb307a07df2f0ce318beb5ebc2078e941a561c4 | [
"Apache-2.0"
] | 8 | 2020-01-07T01:21:14.000Z | 2022-01-13T06:09:44.000Z | autoware_vector_map/src/vector_map_visualizer_node/vector_map_visualizer_node.cpp | kenji-miyake/draft-of-autoware-vector-map | 8fb307a07df2f0ce318beb5ebc2078e941a561c4 | [
"Apache-2.0"
] | 1 | 2020-12-23T09:57:26.000Z | 2020-12-23T13:25:47.000Z | autoware_vector_map/src/vector_map_visualizer_node/vector_map_visualizer_node.cpp | kenji-miyake/draft-of-autoware-vector-map | 8fb307a07df2f0ce318beb5ebc2078e941a561c4 | [
"Apache-2.0"
] | 3 | 2020-07-08T00:40:40.000Z | 2021-03-23T07:15:52.000Z | #include "vector_map_visualizer_node.h"
#include <memory>
#include <vector>
#include <visualization_msgs/MarkerArray.h>
#include <autoware_vector_map/bridge/ros/marker_conversion.h>
#include <autoware_vector_map/bridge/ros/message_conversion.h>
#include <autoware_vector_map/io/gpkg_interface.h>
namespace avm = auto... | 38.717391 | 99 | 0.702976 | kenji-miyake |
4eb4801db24ae1db5b52cf611c9a25e10840f3e0 | 29,221 | cpp | C++ | src/smallwrite/smallwrite_build.cpp | Mic92/hyperscan | 64a995bf445d86b74eb0f375624ffc85682eadfe | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 2,868 | 2017-10-26T02:25:23.000Z | 2022-03-31T23:24:16.000Z | src/smallwrite/smallwrite_build.cpp | skycandyzhe/hyperscan | 64a995bf445d86b74eb0f375624ffc85682eadfe | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 270 | 2017-10-30T19:53:54.000Z | 2022-03-30T22:03:17.000Z | src/smallwrite/smallwrite_build.cpp | skycandyzhe/hyperscan | 64a995bf445d86b74eb0f375624ffc85682eadfe | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 403 | 2017-11-02T01:18:22.000Z | 2022-03-14T08:46:20.000Z | /*
* Copyright (c) 2015-2020, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | 30.312241 | 80 | 0.60525 | Mic92 |
4eb51c01562dd17a7961dfcaf83bce9071cae849 | 10,223 | cpp | C++ | document/kpDocument_Selection.cpp | mikefncu/ikPaint | ee787809c5df0a1b78995962ced4ec3870cc139c | [
"BSD-2-Clause"
] | null | null | null | document/kpDocument_Selection.cpp | mikefncu/ikPaint | ee787809c5df0a1b78995962ced4ec3870cc139c | [
"BSD-2-Clause"
] | null | null | null | document/kpDocument_Selection.cpp | mikefncu/ikPaint | ee787809c5df0a1b78995962ced4ec3870cc139c | [
"BSD-2-Clause"
] | null | null | null |
/*
Copyright (c) 2003-2007 Clarence Dang <dang@kde.org>
Modified by Maikel Diaz <ariguanabosoft@gmail.com>
Copyright (c) 2015-2018
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
... | 29.718023 | 84 | 0.618507 | mikefncu |
4eb531db07acf93c72e7d9459af5856ffdca03b5 | 1,199 | cpp | C++ | src/BEPSupportStatus.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | null | null | null | src/BEPSupportStatus.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | 9 | 2017-11-14T06:05:50.000Z | 2018-07-08T18:21:17.000Z | src/BEPSupportStatus.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | 4 | 2017-11-14T06:04:17.000Z | 2018-08-24T07:39:00.000Z | /**
* Copyright (C) JoyStream - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Bedeho Mender <bedeho.mender@gmail.com>, February 2 2017
*/
#include "BEPSupportStatus.hpp"
#include "libtorrent-node/utils.hpp"
#include <exte... | 23.98 | 107 | 0.682235 | JoystreamClassic |
4eb57a94152fafacae7564bbeb382a322d624152 | 1,580 | cpp | C++ | cpp/tests/utilities/legacy/valid_vectors.cpp | wbo4958/cudf | b12f24d25815145a573a9d70f8c6140a8ab9d2cb | [
"Apache-2.0"
] | null | null | null | cpp/tests/utilities/legacy/valid_vectors.cpp | wbo4958/cudf | b12f24d25815145a573a9d70f8c6140a8ab9d2cb | [
"Apache-2.0"
] | null | null | null | cpp/tests/utilities/legacy/valid_vectors.cpp | wbo4958/cudf | b12f24d25815145a573a9d70f8c6140a8ab9d2cb | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 BlazingDB, Inc.
* Copyright 2019 Eyal Rozenberg <eyalroz@blazingdb.com>
*
* 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/... | 35.909091 | 100 | 0.675949 | wbo4958 |
4eb60ba4a14cea197d077101b0aad39fbbedaf85 | 10,849 | cxx | C++ | tomviz/HistogramManager.cxx | sukhsung/tomviz | b5ab44440be94476093206672e527c54098b58c7 | [
"BSD-3-Clause"
] | null | null | null | tomviz/HistogramManager.cxx | sukhsung/tomviz | b5ab44440be94476093206672e527c54098b58c7 | [
"BSD-3-Clause"
] | null | null | null | tomviz/HistogramManager.cxx | sukhsung/tomviz | b5ab44440be94476093206672e527c54098b58c7 | [
"BSD-3-Clause"
] | null | null | null | /* This source file is part of the Tomviz project, https://tomviz.org/.
It is released under the 3-Clause BSD License, see "LICENSE". */
#include "HistogramManager.h"
#include <vtkFloatArray.h>
#include <vtkImageData.h>
#include <vtkPointData.h>
#include <vtkTable.h>
#include <vtkUnsignedLongLongArray.h>
#include... | 33.692547 | 80 | 0.703014 | sukhsung |
4eba081c6c0b0ac577b8a9d5ce8b29ff69846d97 | 713 | cpp | C++ | Final Lab Task/Q10.cpp | aetooc/PF-Lab-Tasks | 17899595e948624370b754103be28eb93f236a14 | [
"MIT"
] | null | null | null | Final Lab Task/Q10.cpp | aetooc/PF-Lab-Tasks | 17899595e948624370b754103be28eb93f236a14 | [
"MIT"
] | null | null | null | Final Lab Task/Q10.cpp | aetooc/PF-Lab-Tasks | 17899595e948624370b754103be28eb93f236a14 | [
"MIT"
] | null | null | null | // Including header file in my program.
#include<iostream>
// Using the namespace named std.
using namespace std;
int main(){
// Integer variables
int sum,i,j;
// Assigning a value to 'sum' variable
sum= 100;
// Storing value of 'sum' in 'j'
j=sum;
// Printing 'sum' variable and a strin... | 19.805556 | 66 | 0.518934 | aetooc |
4ebca7c2b73e9d7eba1fcfe09f292b9ca539b3be | 3,047 | cpp | C++ | addons/ofxGuido/lib/guidolib-code/macosx/GuidoQuartz/CarbonControlUtils.cpp | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 18 | 2015-01-18T22:34:22.000Z | 2020-09-06T20:30:30.000Z | addons/ofxGuido/lib/guidolib-code/macosx/GuidoQuartz/CarbonControlUtils.cpp | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 2 | 2015-08-04T00:07:46.000Z | 2017-05-10T15:53:51.000Z | addons/ofxGuido/lib/guidolib-code/macosx/GuidoQuartz/CarbonControlUtils.cpp | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 10 | 2015-01-18T23:46:10.000Z | 2019-08-25T12:10:04.000Z | /*
*
* File: CarbonControlUtils.cpp
*
*
*
*/
#include <Carbon/Carbon.h>
#include "MacTools.h" // was "CarbonControlUtils.h"
// ---------------------------------------------------------------------------
// * FindControl
// ---------------------------------------------------------------------------
ControlRef ... | 30.777778 | 103 | 0.510338 | k4rm |
4ebd74330402d48496acdf328c67a1f7e6eeeeb9 | 59 | cpp | C++ | src/MagicCube5D/workFiles/twist.cpp | roice3/MagicCube5D | 5839456f3ce7d12aa61527956cbd434822f0ed4f | [
"MIT"
] | 4 | 2017-01-25T17:10:19.000Z | 2020-07-04T22:35:35.000Z | src/MagicCube5D/workFiles/twist.cpp | roice3/MagicCube5D | 5839456f3ce7d12aa61527956cbd434822f0ed4f | [
"MIT"
] | 8 | 2020-07-03T20:40:49.000Z | 2020-07-22T19:06:57.000Z | src/MagicCube5D/workFiles/twist.cpp | roice3/MagicCube5D | 5839456f3ce7d12aa61527956cbd434822f0ed4f | [
"MIT"
] | 2 | 2015-06-11T05:38:19.000Z | 2020-07-03T19:37:02.000Z | #include "twist.h"
#include <stdafx.h>
#pragma unmanaged
| 9.833333 | 19 | 0.711864 | roice3 |
4ebeeb63ae8b3d09f5141c6c89a09527646b8c73 | 6,186 | cpp | C++ | main.cpp | rockonedege/delegates | 430da988ad2158d9e02a21692d0ab36112c9954b | [
"BSD-3-Clause"
] | 50 | 2016-03-12T15:47:20.000Z | 2022-03-15T11:45:34.000Z | main.cpp | rockonedege/delegates | 430da988ad2158d9e02a21692d0ab36112c9954b | [
"BSD-3-Clause"
] | null | null | null | main.cpp | rockonedege/delegates | 430da988ad2158d9e02a21692d0ab36112c9954b | [
"BSD-3-Clause"
] | 5 | 2016-03-13T12:44:42.000Z | 2019-09-23T17:57:07.000Z | #include <stdio.h>
#include <chrono>
#include <cassert>
#include "src/delegate.h"
#include <functional>
class simple_dummy_class
{
public:
simple_dummy_class() {}
};
// Declare some functions of varying complexity...
void SimpleStaticFunction(simple_dummy_class &, int num) {
printf("In SimpleStaticFunction. Num=%d\... | 32.387435 | 102 | 0.719205 | rockonedege |
4ec158c5193b21e56085d6977fb6e53c57f510ca | 735 | cpp | C++ | poj/poj3666.cpp | songhn233/ACM_Steps | 6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | poj/poj3666.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | poj/poj3666.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstring>
#define ll long long
using namespace std;
const int maxn=2050;
const ll inf=1e10;
ll n,f[maxn][maxn],a[maxn],b[maxn];
int main()
{
cin>>n;
for(int i=1;i<=n;i++) cin>>a[i],b[i]=a[i];
sort(b+1,b+n+1);
for(int i=1;i<=n;i++)
{
ll temp=inf;
... | 17.093023 | 44 | 0.546939 | songhn233 |
4ec2b7bee2f931aef645b1c5be8a6badd861dc70 | 2,422 | hpp | C++ | include/util/gl/mask.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/util/gl/mask.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/util/gl/mask.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | /*
PICCANTE
The hottest HDR imaging library!
http://vcg.isti.cnr.it/piccante
Copyright (C) 2014
Visual Computing Laboratory - ISTI CNR
http://vcg.isti.cnr.it
First author: Francesco Banterle
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 ... | 23.288462 | 111 | 0.632535 | ecarpita93 |
4ec44843e632b76786ed325d74a7303e5b94439f | 802 | hpp | C++ | Siv3D/src/Siv3D/Keyboard/IKeyboard.hpp | yumetodo/OpenSiv3D | ea191438ecbc64185f5df3d9f79dffc6757e4192 | [
"MIT"
] | 7 | 2020-04-26T11:06:02.000Z | 2021-09-05T16:42:31.000Z | Siv3D/src/Siv3D/Keyboard/IKeyboard.hpp | yumetodo/OpenSiv3D | ea191438ecbc64185f5df3d9f79dffc6757e4192 | [
"MIT"
] | 10 | 2020-04-26T13:25:36.000Z | 2022-03-01T12:34:44.000Z | Siv3D/src/Siv3D/Keyboard/IKeyboard.hpp | yumetodo/OpenSiv3D | ea191438ecbc64185f5df3d9f79dffc6757e4192 | [
"MIT"
] | 2 | 2020-05-11T08:23:23.000Z | 2020-08-08T12:33:30.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <utility>
# include <S... | 19.095238 | 59 | 0.608479 | yumetodo |
4ec55ce282bcabfac1a899ee07eda43da7b883a3 | 106,846 | cc | C++ | plaidml/op/lib/ops.cc | hfp/plaidml | c86852a910e68181781b3045f5a306d2f41a775f | [
"Apache-2.0"
] | null | null | null | plaidml/op/lib/ops.cc | hfp/plaidml | c86852a910e68181781b3045f5a306d2f41a775f | [
"Apache-2.0"
] | null | null | null | plaidml/op/lib/ops.cc | hfp/plaidml | c86852a910e68181781b3045f5a306d2f41a775f | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Intel Corporation.
#include "plaidml/op/lib/ops.h"
#include <algorithm>
#include <set>
#include <utility>
#include <vector>
#include "llvm/Support/FormatVariadic.h"
#include "plaidml/op/op.h"
#include "pmlc/util/logging.h"
using namespace plaidml::edsl; // NOLINT
using namespace plaidml::op; ... | 34.19072 | 120 | 0.627464 | hfp |
4eca32c8a9678118e9cc481bb4dce6b47f5b8f90 | 301 | hpp | C++ | includes/muriqui.hpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | 5 | 2021-12-04T04:42:32.000Z | 2022-01-21T13:23:47.000Z | includes/muriqui.hpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | null | null | null | includes/muriqui.hpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | null | null | null | /*
* muriqui.hpp
*
* Created on: 27/08/2013
* Author: yo
*/
#ifndef MURIQUI_HPP_
#define MURIQUI_HPP_
#include "MRQ_constants.hpp"
//#include "SPM_SparseMatrix.hpp"
#include "MRQ_dataStructures.hpp"
#include "MRQ_algClasses.hpp"
namespace muriqui{
}
#endif /* MURIQUI_HPP_ */
| 10.033333 | 33 | 0.681063 | xmuriqui |
4ecdb86aff0e3a570dbf6a8684aebc9ce4d020ae | 2,619 | cpp | C++ | WaxB_Adb2Usb/usb_debug_channel.cpp | charliebruce/waxbee | 2b764eab99793f2a9a973ed6ea432c9455ba552b | [
"MIT"
] | 37 | 2016-03-17T15:40:50.000Z | 2022-01-11T23:49:48.000Z | waxbee/usb_debug_channel.cpp | popbee/waxbee | f78e0e649e63d655317a199743ec8cf36fe242fb | [
"MIT"
] | 5 | 2016-05-07T19:22:14.000Z | 2021-11-02T08:39:05.000Z | WaxB_Adb2Usb/usb_debug_channel.cpp | charliebruce/waxbee | 2b764eab99793f2a9a973ed6ea432c9455ba552b | [
"MIT"
] | 8 | 2015-06-18T03:29:50.000Z | 2020-03-15T07:31:55.000Z | /*
* usb_debug_channel.cpp
*
* Created on: 2010-11-14
* Author: Bernard
*/
#include "featureinclusion.h"
#include <avr/io.h>
#include <avr/interrupt.h>
#include "usb.h"
#include "led.h"
#include "usb_debug_channel.h"
#ifdef DEBUG_SUPPORT
// the time remaining before we transmit any partial... | 18.978261 | 67 | 0.583811 | charliebruce |
4ecf77d1f7469b7049cfc6fb073f085f4b6b274e | 1,518 | hpp | C++ | src/nrf52/peripheral.hpp | Testrigor123/cortex-demos | 1163db7f626de1420d5af4557de66713709ed136 | [
"Apache-2.0"
] | null | null | null | src/nrf52/peripheral.hpp | Testrigor123/cortex-demos | 1163db7f626de1420d5af4557de66713709ed136 | [
"Apache-2.0"
] | null | null | null | src/nrf52/peripheral.hpp | Testrigor123/cortex-demos | 1163db7f626de1420d5af4557de66713709ed136 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
Copyright 2018 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... | 30.979592 | 80 | 0.583004 | Testrigor123 |
4ed34c940e5c7e3490082c0ad673dc4d397684d4 | 15,411 | hpp | C++ | assets/graph.hpp | oitl-5ab/OITL | 23f20d32a9ba3eecfb20601dbc464c06981be2a9 | [
"MIT"
] | 3 | 2020-03-07T13:29:21.000Z | 2020-09-16T11:16:27.000Z | assets/graph.hpp | oitl-5ab/OITL | 23f20d32a9ba3eecfb20601dbc464c06981be2a9 | [
"MIT"
] | 3 | 2020-03-07T13:39:08.000Z | 2020-09-25T16:20:43.000Z | assets/graph.hpp | oitl-5ab/OITL | 23f20d32a9ba3eecfb20601dbc464c06981be2a9 | [
"MIT"
] | 1 | 2020-09-16T11:16:38.000Z | 2020-09-16T11:16:38.000Z | #ifndef OITL_GRAPH_HPP
#define OITL_GARPH_HPP 1
#include "basic_calc.hpp"
#include "disjoint_set.hpp"
#if __cplusplus < 201103L
#include <list>
#else
#include <forward_list>
#endif
#include <stack>
#include <vector>
namespace oitl
{
typedef enum { directed = 1, undirected = 2 } is_directed;
#if __cplusplus >= 2... | 22.270231 | 91 | 0.588086 | oitl-5ab |
4ed4a3b5230ec41cf4e333dc55bcd9759d04e063 | 39,871 | cc | C++ | src/pfs_core/pfs_meta.cc | qiuyuhang/PolarDB-FileSystem | a18067ef9294c2f509decd80b2b9231c9f950e21 | [
"Apache-2.0"
] | 35 | 2021-11-08T03:24:50.000Z | 2022-03-24T12:39:12.000Z | src/pfs_core/pfs_meta.cc | qiuyuhang/PolarDB-FileSystem | a18067ef9294c2f509decd80b2b9231c9f950e21 | [
"Apache-2.0"
] | 2 | 2021-11-30T02:29:53.000Z | 2022-03-17T06:57:53.000Z | src/pfs_core/pfs_meta.cc | qiuyuhang/PolarDB-FileSystem | a18067ef9294c2f509decd80b2b9231c9f950e21 | [
"Apache-2.0"
] | 18 | 2021-11-08T08:43:06.000Z | 2022-02-28T09:38:09.000Z | /*
* Copyright (c) 2017-2021, Alibaba Group Holding Limited
* 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 applica... | 24.460736 | 80 | 0.692182 | qiuyuhang |
4ed6b363bb4a161afaaf5dbed379b3facadf3b59 | 2,431 | cpp | C++ | tests/unit/tls_parser/tls_parser_test.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T06:39:24.000Z | 2020-07-25T06:39:24.000Z | tests/unit/tls_parser/tls_parser_test.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T05:32:10.000Z | 2020-07-25T05:32:10.000Z | tests/unit/tls_parser/tls_parser_test.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T05:28:54.000Z | 2020-07-25T05:28:54.000Z | /*
* Copyright 2020 Alex Syrnikov <pioneer19@post.cz>
* SPDX-License-Identifier: Apache-2.0
*
* This file is part of libcornet (https://github.com/pioneer19/libcornet).
*/
#include <doctest/doctest.h>
#include <libcornet/tls/parser.hpp>
namespace record = pioneer19::cornet::tls13::record;
TEST_CASE("Parser tes... | 31.571429 | 82 | 0.59893 | pioneer19 |
4ed801405913cbce66fa232ec7c5fdb1e4da2bf2 | 13,773 | cpp | C++ | Demos/Shadow Demo/ShadowMappingDemo/bin/Debug/_temp_basicShaderReflect/xfconfig.cpp | theproadam/XFDraw | 08acaa83fffa8c36fa55164c128c9e3df625eed6 | [
"MIT"
] | 1 | 2021-07-06T11:25:47.000Z | 2021-07-06T11:25:47.000Z | Demos/Shadow Demo/ShadowMappingDemo/bin/Debug/_temp_basicShaderReflect/xfconfig.cpp | theproadam/XFDraw | 08acaa83fffa8c36fa55164c128c9e3df625eed6 | [
"MIT"
] | null | null | null | Demos/Shadow Demo/ShadowMappingDemo/bin/Debug/_temp_basicShaderReflect/xfconfig.cpp | theproadam/XFDraw | 08acaa83fffa8c36fa55164c128c9e3df625eed6 | [
"MIT"
] | 2 | 2021-07-26T11:54:33.000Z | 2021-07-26T12:08:46.000Z | //This autogenerated file contains serialization data that XFDraw uses for reflection.
//DO NOT MODIFY THE CONTENTS OF THIS FILE. DOING SO WILL SEGFAULT THE SHADER.
const unsigned char vs_serial_buffer[] = {0,1,0,0,0,255,255,255,255,1,0,0,0,0,0,0,0,12,2,0,0,0,61,88,70,68,114,97,119,44,32,86,101,114,115,105,111,110,61,... | 529.730769 | 7,034 | 0.692877 | theproadam |
4de5a5b2d9467416244e2843224657606b0ca5cf | 1,857 | tcc | C++ | hackt_docker/hackt/src/Object/common/namespace.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/common/namespace.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/common/namespace.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/common/namespace.tcc"
Template method definitions for class name_space.
This file was "Object/common/namespace.tcc"
in a previous life.
$Id: namespace.tcc,v 1.6 2009/02/18 00:22:30 fang Exp $
*/
#ifndef __HAC_OBJECT_COMMON_NAMESPACE_TCC__
#define __HAC_OBJECT_COMMON_NAMESPACE_TCC__
#if 0
... | 32.578947 | 79 | 0.677975 | broken-wheel |
4de71fffabd753e31b08c0089034520efb79c92d | 2,343 | hpp | C++ | include/GQE/Core/interfaces/TSmartPointer.hpp | Maarrch/gqe | 51f6ff82cbcafee97b9c245fa5bbea49e11a46da | [
"MIT"
] | 8 | 2017-04-06T13:14:27.000Z | 2022-01-20T22:25:04.000Z | include/GQE/Core/interfaces/TSmartPointer.hpp | Maarrch/gqe | 51f6ff82cbcafee97b9c245fa5bbea49e11a46da | [
"MIT"
] | null | null | null | include/GQE/Core/interfaces/TSmartPointer.hpp | Maarrch/gqe | 51f6ff82cbcafee97b9c245fa5bbea49e11a46da | [
"MIT"
] | 3 | 2019-11-09T09:46:38.000Z | 2021-02-25T00:32:28.000Z | /**
* Provides the Smart Pointer Template class for handling smart pointers.
*
* @file include/GQE/Core/interfaces/TSmartPointer.hpp
* @author Jacob Dix
* @date 20120423 - Initial Release
*/
#ifndef TSMART_POINTER_HPP_INCLUDED
#define TSMART_POINTER_HPP_INCLUDED
#include <GQE/Core/classes/ReferenceCount.... | 26.931034 | 130 | 0.5621 | Maarrch |
4de8e80b9f3a3e223026a2e3fc3ef25cdcf9ba2d | 596 | cxx | C++ | OldHPCSummerSchool/Cpp-tutorial/optimizing_gemm/my_dgemm_0.cxx | wadejong/Summer-School-Materials | 82469995a79c667e940313d423e93c7c675e0a7c | [
"BSD-3-Clause"
] | 5 | 2018-08-06T22:18:42.000Z | 2020-01-15T06:04:43.000Z | OldHPCSummerSchool/Cpp-tutorial/optimizing_gemm/my_dgemm_0.cxx | wadejong/Summer-School-Materials | 82469995a79c667e940313d423e93c7c675e0a7c | [
"BSD-3-Clause"
] | null | null | null | OldHPCSummerSchool/Cpp-tutorial/optimizing_gemm/my_dgemm_0.cxx | wadejong/Summer-School-Materials | 82469995a79c667e940313d423e93c7c675e0a7c | [
"BSD-3-Clause"
] | 8 | 2018-07-30T17:21:45.000Z | 2020-05-21T15:54:16.000Z | #include "common.hpp"
/*
* Compute C += A*B
*/
void my_dgemm(int m, int n, int k, const matrix& A, const matrix& B, matrix& C)
{
/*
* Step 0:
*
* Simple triple-loop matrix-matrix product.
*
* This ordering of the loops is called the "dot-product" algorithm.
*/
for (int i = 0;i <... | 20.551724 | 79 | 0.412752 | wadejong |
4df3f46fb1a5b2ba9e5127cc405c02c49922d36b | 4,483 | cpp | C++ | src/flame/kafka/consumer.cpp | terrywh/php-mill | b8d6c82dcac230248f9bdcd8300e5f2de417f21f | [
"MIT"
] | 45 | 2017-10-13T02:26:30.000Z | 2021-03-28T10:07:32.000Z | src/flame/kafka/consumer.cpp | terrywh/php-mill | b8d6c82dcac230248f9bdcd8300e5f2de417f21f | [
"MIT"
] | 1 | 2021-03-12T15:01:07.000Z | 2021-03-16T02:42:17.000Z | src/flame/kafka/consumer.cpp | terrywh/php-mill | b8d6c82dcac230248f9bdcd8300e5f2de417f21f | [
"MIT"
] | 17 | 2017-05-04T18:48:39.000Z | 2021-09-11T07:04:55.000Z | #include "../coroutine.h"
#include "../time/time.h"
#include "consumer.h"
#include "_consumer.h"
#include "kafka.h"
#include "message.h"
#include "../../coroutine_queue.h"
#include "../log/logger.h"
namespace flame::kafka {
void consumer::declare(php::extension_entry& ext) {
php::class_entry<c... | 39.672566 | 163 | 0.47669 | terrywh |
4df7c2c8de3b31ff702cfe34df9443b082e3c34c | 27,991 | cpp | C++ | vivi/vivi64/completion.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 54 | 2020-02-15T23:17:25.000Z | 2021-11-14T17:13:22.000Z | vivi/vivi64/completion.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 11 | 2020-06-01T08:04:40.000Z | 2020-11-22T02:18:41.000Z | vivi/vivi64/completion.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 1 | 2020-06-01T07:51:47.000Z | 2020-06-01T07:51:47.000Z | //----------------------------------------------------------------------
//
// File: "completion.cpp"
// Created: 01-10-2013
// Author: 津田伸秀
// Description:
//
//----------------------------------------------------------------------
#include <QtGui>
#include <QMessageBox>
#include <QVBoxLayout>
#include ... | 30.759341 | 119 | 0.633954 | vivisuke |
4df815d7471a0efa569df499ef71bcbdb3d7b897 | 58,274 | cpp | C++ | GameAttack/gameattack.cpp | ycsoft/FatCat-Server | fe01d3278927437c04977f3009154537868cc354 | [
"MIT"
] | 30 | 2015-08-31T04:25:35.000Z | 2022-02-19T17:39:23.000Z | GameAttack/gameattack.cpp | Mark0518/FatCat-Server | fe01d3278927437c04977f3009154537868cc354 | [
"MIT"
] | null | null | null | GameAttack/gameattack.cpp | Mark0518/FatCat-Server | fe01d3278927437c04977f3009154537868cc354 | [
"MIT"
] | 35 | 2015-08-31T10:19:03.000Z | 2021-09-18T07:37:00.000Z | #include "./../OperationPostgres/operationpostgres.h"
#include "./../GameTask/gametask.h"
#include "./../memManage/diskdbmanager.h"
#include "./../Game/getdefinevalue.h"
#include "./../GameTask/gametask.h"
#include "./../Monster/monster.h"
#include "./../Game/session.hpp"
#include "gameattack.h"
#include "./../server.h... | 39.347738 | 185 | 0.615111 | ycsoft |
4dfda45d0eea8183289d885ea78bfd89a0cc3ee4 | 30,300 | cpp | C++ | src/lib/analysis/function_scope.cpp | paramah/hiphop-php-osx | 5ed8c24abe8ad9fd7bc6dd4c28b4ffff23e54362 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-11-05T21:45:07.000Z | 2015-11-05T21:45:07.000Z | src/lib/analysis/function_scope.cpp | brion/hiphop-php | df70a236e6418d533ac474be0c01f0ba87034d7f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | src/lib/analysis/function_scope.cpp | brion/hiphop-php | df70a236e6418d533ac474be0c01f0ba87034d7f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... | 31.962025 | 82 | 0.577558 | paramah |
4dfeab4b98f8f52ff5827c4afa67ae550c330e27 | 1,080 | cpp | C++ | src/algorithms/sorting/25.7.1.1.sort.cpp | fvarose/cpp-standard | 4a70bce440ef0c292d4cacd603331c590f5e4aed | [
"MIT"
] | null | null | null | src/algorithms/sorting/25.7.1.1.sort.cpp | fvarose/cpp-standard | 4a70bce440ef0c292d4cacd603331c590f5e4aed | [
"MIT"
] | null | null | null | src/algorithms/sorting/25.7.1.1.sort.cpp | fvarose/cpp-standard | 4a70bce440ef0c292d4cacd603331c590f5e4aed | [
"MIT"
] | 1 | 2018-10-21T10:50:27.000Z | 2018-10-21T10:50:27.000Z | #include <catch2/catch_all.hpp>
#include <algorithm>
#include <vector>
using namespace Catch::Matchers;
TEST_CASE("25.7.1.1 sort") {
auto unsorted = std::vector<int>{1, 3, 0, 2};
SECTION("sort sorts a collection in place using the default operator<") {
auto expected = std::vector<int>{0, 1, 2, 3};
std:... | 26.341463 | 75 | 0.623148 | fvarose |
1501eb88daa648d30ab0bfe9f24f24afa73cf5e9 | 705 | cpp | C++ | source/aufgabe13.cpp | Graunarmin/programmiersprachen-aufgabenblatt-3 | c4a5f2c473460be02a73c819064b7deab85731b8 | [
"MIT"
] | null | null | null | source/aufgabe13.cpp | Graunarmin/programmiersprachen-aufgabenblatt-3 | c4a5f2c473460be02a73c819064b7deab85731b8 | [
"MIT"
] | null | null | null | source/aufgabe13.cpp | Graunarmin/programmiersprachen-aufgabenblatt-3 | c4a5f2c473460be02a73c819064b7deab85731b8 | [
"MIT"
] | null | null | null | # define CATCH_CONFIG_RUNNER
# include <catch.hpp>
# include "aufgabe13.hpp"
void print(const std::vector<Circle> &vec)
{
for(const auto& i: vec){
std::cout << i.radius_ << ' ';
std::cout << std::endl;
}
}
TEST_CASE("Kreise sortieren", "[sort]")
{
std::vector<Circle> vCircles(10);
for(auto& i: vCircles)
{... | 20.142857 | 71 | 0.636879 | Graunarmin |
15020f3a25c179d76d59ce59fb3588b5fb4cfaec | 5,192 | cpp | C++ | src/core/PolySoundManager.cpp | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | src/core/PolySoundManager.cpp | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | src/core/PolySoundManager.cpp | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | /*
Copyright (C) 2011 by Ivan Safrin
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, merge, publish, distri... | 24.606635 | 129 | 0.704931 | my-digital-decay |
1503a790b977026bc5d94c48db8aee6736f537b5 | 155,398 | cpp | C++ | Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Private/NiagaraHlslTranslator.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Private/NiagaraHlslTranslator.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Private/NiagaraHlslTranslator.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "NiagaraHlslTranslator.h"
#include "NiagaraComponent.h"
#include "NiagaraGraph.h"
#include "NiagaraScriptSource.h"
#include "EdGraphUtilities.h"
#include "UObject/UObjectHash.h"
#include "NiagaraNode.h"
#include "NiagaraNodeFunctionCall.h"
#include ... | 36.257116 | 306 | 0.730942 | windystrife |
15056175e8e1705fdb2a9d2fc0b33cdca726924d | 562 | cpp | C++ | test/unit_tests/tests/12_geometric_test.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/12_geometric_test.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/12_geometric_test.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | #include "setting.h"
#include "math/geometric.h"
using namespace bacchus;
/*
* p1------p2
* \ direction > 0
* \
* p0
*/
TEST(geometric_test, segments_intersection) {
vec2f p0(5,5);
vec2f p1(2,10);
vec2f p2(8,10);
EXPECT_TRUE(direction(p0,p1,p2) > 0.f);
EXPECT_TRUE(direct... | 20.814815 | 59 | 0.628114 | bacchus |
150815ecc5231eba661565cfa69dbe0aadc4dc9e | 1,805 | cpp | C++ | networklayer/synthesis_results_HMB/ETH_inserter_hls_prj/ultrascale_plus/.autopilot/db/hls_design_meta.cpp | OCT-FPGA/udp-network-demo | 76fba0d4315abf7bffe77959a2501c287f20ecec | [
"BSD-3-Clause"
] | null | null | null | networklayer/synthesis_results_HMB/ETH_inserter_hls_prj/ultrascale_plus/.autopilot/db/hls_design_meta.cpp | OCT-FPGA/udp-network-demo | 76fba0d4315abf7bffe77959a2501c287f20ecec | [
"BSD-3-Clause"
] | null | null | null | networklayer/synthesis_results_HMB/ETH_inserter_hls_prj/ultrascale_plus/.autopilot/db/hls_design_meta.cpp | OCT-FPGA/udp-network-demo | 76fba0d4315abf7bffe77959a2501c287f20ecec | [
"BSD-3-Clause"
] | null | null | null | #include "hls_design_meta.h"
const Port_Property HLS_Design_Meta::port_props[]={
Port_Property("dataIn_TDATA", 512, hls_in, 0, "axis", "in_data", 1),
Port_Property("dataIn_TKEEP", 64, hls_in, 1, "axis", "in_data", 1),
Port_Property("dataIn_TSTRB", 64, hls_in, 2, "axis", "in_data", 1),
Port_Property("dataIn_TLAST", ... | 64.464286 | 81 | 0.689197 | OCT-FPGA |
1508f20fb6fa396adea4cc28ccf9f09442bb36f5 | 516 | cpp | C++ | code/1049.cpp | Tomspiano/PAT-Advanced-Level-Practice | e7f543a23f852bcbad52170897a42b41622191ed | [
"MIT"
] | null | null | null | code/1049.cpp | Tomspiano/PAT-Advanced-Level-Practice | e7f543a23f852bcbad52170897a42b41622191ed | [
"MIT"
] | null | null | null | code/1049.cpp | Tomspiano/PAT-Advanced-Level-Practice | e7f543a23f852bcbad52170897a42b41622191ed | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define N 35
using namespace std;
#define rep(i,a,b) for(int i=(a); i<(b); ++i)
int n;
int main() {
//while(~
scanf("%d", &n);
//) {
int sum = 0, r = 1;
int lf, curr, rt;
while(n/r) {
lf=n/(r*10), curr=n/r%10, rt=n%r;
if(curr == 0) {
//printf("%d ", lf*r);
sum += lf*r;
}
else i... | 14.742857 | 45 | 0.449612 | Tomspiano |
15090c3c82be994d5fcf8c13ef3b785a1875b9c9 | 9,858 | cpp | C++ | badspy/badspy.c/sys/kbhook.cpp | sontx/badspy-project | d9e181f9598033d0dc24a9c48d25eb8342fa576d | [
"Apache-2.0"
] | null | null | null | badspy/badspy.c/sys/kbhook.cpp | sontx/badspy-project | d9e181f9598033d0dc24a9c48d25eb8342fa576d | [
"Apache-2.0"
] | null | null | null | badspy/badspy.c/sys/kbhook.cpp | sontx/badspy-project | d9e181f9598033d0dc24a9c48d25eb8342fa576d | [
"Apache-2.0"
] | null | null | null | #include "kbhook.h"
#include "../stg/kbhfile.h"
HHOOK KBHook::hook_handle = NULL;
KBHFile * KBHook::kbhfile = NULL;
LRESULT KBHook::hook_proc(int n_code, WPARAM w_param, LPARAM l_param)
{
//LOG("Has keyboard hook data code %d", n_code);
if (n_code == HC_ACTION)
process_hkdt(w_param, l_param);
return CallNextHook... | 31.596154 | 88 | 0.607223 | sontx |
1509646850b9674b1c8513913a3633370c60ffab | 6,593 | hh | C++ | src/arch/riscv/pmp.hh | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 765 | 2015-01-14T16:17:04.000Z | 2022-03-28T07:46:28.000Z | src/arch/riscv/pmp.hh | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 148 | 2018-07-20T00:58:36.000Z | 2021-11-16T01:52:33.000Z | src/arch/riscv/pmp.hh | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 807 | 2015-01-06T09:55:38.000Z | 2022-03-30T10:23:36.000Z | /*
* Copyright (c) 2021 The Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice... | 33.29798 | 73 | 0.677537 | hyu-iot |
15096558c1a3cd5b82eeb82aed24705eaa28153a | 2,436 | cc | C++ | third_party/tint/src/ast/index_accessor_expression_test.cc | Antidote/dawn-cmake | b8c6d669fa3c0087aa86653a4078386ffb42f199 | [
"BSD-3-Clause"
] | null | null | null | third_party/tint/src/ast/index_accessor_expression_test.cc | Antidote/dawn-cmake | b8c6d669fa3c0087aa86653a4078386ffb42f199 | [
"BSD-3-Clause"
] | null | null | null | third_party/tint/src/ast/index_accessor_expression_test.cc | Antidote/dawn-cmake | b8c6d669fa3c0087aa86653a4078386ffb42f199 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 The Tint Authors.
//
// 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 ... | 26.478261 | 75 | 0.685961 | Antidote |
15097bc5bbdb66031533e62497d4eaf0dfdd9aa4 | 308 | cpp | C++ | lib/SurfacingAlgorithms/huji-rich-Elad3DFast/source/newtonian/test_2d/trigger.cpp | GalaxyHunters/Vivid | f724e5671b650433d0c26319c86231bd3b246e4e | [
"BSD-3-Clause"
] | null | null | null | lib/SurfacingAlgorithms/huji-rich-Elad3DFast/source/newtonian/test_2d/trigger.cpp | GalaxyHunters/Vivid | f724e5671b650433d0c26319c86231bd3b246e4e | [
"BSD-3-Clause"
] | 222 | 2018-07-25T18:13:57.000Z | 2021-10-10T14:54:04.000Z | lib/SurfacingAlgorithms/huji-rich-Elad3DFast/source/newtonian/test_2d/trigger.cpp | GalaxyHunters/Vivid | f724e5671b650433d0c26319c86231bd3b246e4e | [
"BSD-3-Clause"
] | 2 | 2018-07-29T09:39:40.000Z | 2018-08-25T19:17:49.000Z | #include "trigger.hpp"
Trigger::~Trigger(void) {}
ConstantTimeInterval::ConstantTimeInterval(double dt, double t_next):
dt_(dt), t_next_(t_next) {}
bool ConstantTimeInterval::operator()(const hdsim& sim)
{
if(sim.getTime()>t_next_){
t_next_ += dt_;
return true;
}
else
return false;
}
| 18.117647 | 69 | 0.688312 | GalaxyHunters |
1510ddd30c2d63949ea9d4bd795f47cdac42d2d4 | 2,280 | cpp | C++ | Leet Code/Number of Good Ways to Split a String.cpp | Shubhrmcf07/Competitive-Coding-and-Interview-Problems | 7281ea3163c0cf6938a3af7b54a8a14f97c97c0e | [
"MIT"
] | 51 | 2020-02-24T11:14:00.000Z | 2022-03-24T09:32:18.000Z | Leet Code/Number of Good Ways to Split a String.cpp | Shubhrmcf07/Competitive-Coding-and-Interview-Problems | 7281ea3163c0cf6938a3af7b54a8a14f97c97c0e | [
"MIT"
] | 3 | 2020-10-02T08:16:09.000Z | 2021-04-17T16:32:38.000Z | Leet Code/Number of Good Ways to Split a String.cpp | Shubhrmcf07/Competitive-Coding-and-Interview-Problems | 7281ea3163c0cf6938a3af7b54a8a14f97c97c0e | [
"MIT"
] | 18 | 2020-04-24T15:33:36.000Z | 2022-03-24T09:32:20.000Z | /* Leet Code */
/* Title - Number of Good Ways to Split a String */
/* Created By - Akash Modak */
/* Date - 25/09/2020 */
// You are given a string s, a split is called good if you can split s into 2 non-empty strings p and q where its concatenation is equal to s and the number of distinct letters in p and q are... | 32.571429 | 202 | 0.555702 | Shubhrmcf07 |
1513296d0e5967145ebc9e2f5d26cd4850acd466 | 7,092 | hxx | C++ | include/pqxx/internal/type_utils.hxx | yogsothoth/libpqxx | af9bf34e1ae450e8925a758594f772ba0b515abb | [
"BSD-3-Clause"
] | null | null | null | include/pqxx/internal/type_utils.hxx | yogsothoth/libpqxx | af9bf34e1ae450e8925a758594f772ba0b515abb | [
"BSD-3-Clause"
] | null | null | null | include/pqxx/internal/type_utils.hxx | yogsothoth/libpqxx | af9bf34e1ae450e8925a758594f772ba0b515abb | [
"BSD-3-Clause"
] | null | null | null | /** Type/template metaprogramming utilities for use internally in libpqxx
*
* Copyright (c) 2001-2018, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this mistake,
* or contact the author.
*/
#ifn... | 33.611374 | 80 | 0.695431 | yogsothoth |
1513b55f94d45604ad9005a0df3efd30c6e50e23 | 13,535 | cc | C++ | shaka/src/media/video_controller.cc | bnge/shaka-player-embedded | 6301c06d318ed86601583f37bcf6e6ab29677403 | [
"Apache-2.0"
] | 1 | 2019-07-15T19:26:33.000Z | 2019-07-15T19:26:33.000Z | shaka/src/media/video_controller.cc | bnge/shaka-player-embedded | 6301c06d318ed86601583f37bcf6e6ab29677403 | [
"Apache-2.0"
] | null | null | null | shaka/src/media/video_controller.cc | bnge/shaka-player-embedded | 6301c06d318ed86601583f37bcf6e6ab29677403 | [
"Apache-2.0"
] | 6 | 2019-05-02T07:24:53.000Z | 2021-07-01T07:51:27.000Z | // Copyright 2017 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 ... | 34.007538 | 80 | 0.684152 | bnge |
1513d89ba9c95b3097229b268d22832dee3e98cd | 1,992 | cc | C++ | tensorflow/compiler/xla/tests/multi_device_all_reduce_test.cc | fraudies/tensorflow | a42423e302b71893bbd24aa896869941013c07fb | [
"Apache-2.0"
] | 36 | 2016-12-17T15:25:25.000Z | 2022-01-29T21:50:53.000Z | tensorflow/compiler/xla/tests/multi_device_all_reduce_test.cc | fraudies/tensorflow | a42423e302b71893bbd24aa896869941013c07fb | [
"Apache-2.0"
] | 59 | 2019-06-17T09:37:49.000Z | 2022-01-19T01:21:34.000Z | tensorflow/compiler/xla/tests/multi_device_all_reduce_test.cc | fraudies/tensorflow | a42423e302b71893bbd24aa896869941013c07fb | [
"Apache-2.0"
] | 36 | 2017-07-27T21:12:40.000Z | 2022-02-03T16:45:56.000Z | /* Copyright 2019 The TensorFlow 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 applicable law or a... | 34.947368 | 80 | 0.688253 | fraudies |
15178037d8f264798f94965d677ddf106dcfe681 | 13,782 | cpp | C++ | modules/Alexa/SampleApp/src/CachingDownloadManager.cpp | germanviscuso/alexa-smart-screen-sdk | 9878cafa35df05d862b3bfc027aa6b1b463ef9c1 | [
"Apache-2.0"
] | null | null | null | modules/Alexa/SampleApp/src/CachingDownloadManager.cpp | germanviscuso/alexa-smart-screen-sdk | 9878cafa35df05d862b3bfc027aa6b1b463ef9c1 | [
"Apache-2.0"
] | null | null | null | modules/Alexa/SampleApp/src/CachingDownloadManager.cpp | germanviscuso/alexa-smart-screen-sdk | 9878cafa35df05d862b3bfc027aa6b1b463ef9c1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" f... | 42.018293 | 120 | 0.654695 | germanviscuso |
151a7eb4dd21f2d49370ac38741cdd1bb9bc2414 | 324 | cpp | C++ | server/socket/linuxsocket/uid/uid.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | 1 | 2020-10-01T14:52:45.000Z | 2020-10-01T14:52:45.000Z | server/socket/linuxsocket/uid/uid.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | 3 | 2020-06-19T01:24:51.000Z | 2020-07-16T14:00:30.000Z | server/socket/linuxsocket/uid/uid.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | null | null | null | #include <iostream>
#include <unistd.h>
#include <sys/types.h>
int main(int argc, char **argv)
{
uid_t uid = getuid();
uid_t euid = geteuid();
std::cout << "userid: " << uid << " effective uid: " << euid << std::endl;
/*
* chown user:user uid
* chmod +s uid
* ./uid
*/
return 0... | 18 | 79 | 0.527778 | 6923403 |
151d95c195be52b7c1b2569d14059b8038394cda | 1,036 | cpp | C++ | packages/utility/grid/src/Utility_StandardHashBasedGridSearcher.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/utility/grid/src/Utility_StandardHashBasedGridSearcher.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/utility/grid/src/Utility_StandardHashBasedGridSearcher.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file Utility_StandardHashBasedGridSearcher.cpp
//! \author Alex Robinson
//! \brief The standard hash-based grid searcher
//!
//---------------------------------------------------------------------------//
// FRENSIE Includes
#... | 47.090909 | 99 | 0.561776 | bam241 |
151e20e2cd2a792fad5f2bc7379ebdfbcf1b29c8 | 864 | hpp | C++ | ios/Pods/boost-for-react-native/boost/coroutine2/detail/disable_overload.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 8,805 | 2015-11-03T00:52:29.000Z | 2022-03-29T22:30:03.000Z | ios/Pods/boost-for-react-native/boost/coroutine2/detail/disable_overload.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 14,694 | 2015-02-24T15:13:42.000Z | 2022-03-31T13:16:45.000Z | ios/Pods/boost-for-react-native/boost/coroutine2/detail/disable_overload.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 1,329 | 2015-11-03T20:25:51.000Z | 2022-03-31T18:10:38.000Z |
// Copyright Oliver Kowalke 2014.
// 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 BOOST_COROUTINES2_DETAIL_DISABLE_OVERLOAD_H
#define BOOST_COROUTINES2_DETAIL_DISABLE_OVERLOA... | 24.685714 | 75 | 0.752315 | rudylee |
151fa9697683534e0ae223ab1a3191831c09b583 | 4,805 | cpp | C++ | src/main.cpp | carmeloevoli/hecr_diffusion | 0b23fd102de391f37a11c6a27f4f69c8ac172fcd | [
"MIT"
] | 2 | 2019-05-02T10:15:41.000Z | 2021-04-06T10:08:54.000Z | src/main.cpp | carmeloevoli/hecr_diffusion | 0b23fd102de391f37a11c6a27f4f69c8ac172fcd | [
"MIT"
] | null | null | null | src/main.cpp | carmeloevoli/hecr_diffusion | 0b23fd102de391f37a11c6a27f4f69c8ac172fcd | [
"MIT"
] | 1 | 2019-05-01T15:15:51.000Z | 2019-05-01T15:15:51.000Z | #include <cmath>
#include <iostream>
#include "DiffusionCoefficients.h"
#define NGRID 128
#define ENERGY 1e15
#define NPARTICLES 10
#define BOXSIZE 120
int main(int argc, char** argv) {
try {
DiffusionCoefficient D;
D.setBoxSize(NGRID);
D.setSpacing_pc((double) BOXSIZE / (double) NGRID);
D.setBrms_muG(1.0)... | 28.772455 | 118 | 0.596254 | carmeloevoli |
15206a704f018d9b650c29b9a4c42835fa779c05 | 1,149 | cpp | C++ | devmand/gateway/src/devmand/error/ErrorQueue.cpp | gurrapualt/magma | 13e05788fa6c40293a58b6e03cfb394bb79fa98f | [
"BSD-3-Clause"
] | 2 | 2020-12-09T11:42:30.000Z | 2021-09-26T03:28:33.000Z | devmand/gateway/src/devmand/error/ErrorQueue.cpp | gurrapualt/magma | 13e05788fa6c40293a58b6e03cfb394bb79fa98f | [
"BSD-3-Clause"
] | 124 | 2020-08-21T06:11:21.000Z | 2022-03-21T05:25:26.000Z | devmand/gateway/src/devmand/error/ErrorQueue.cpp | yogi8091/magma | edc3b249068ad871047e898c912f3228ee9f2c88 | [
"BSD-3-Clause"
] | 1 | 2020-09-21T04:25:06.000Z | 2020-09-21T04:25:06.000Z | /*
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR... | 28.02439 | 72 | 0.70322 | gurrapualt |
1524509a9cb88378f4d46b76f762cc941be58d0d | 440 | cpp | C++ | examples/appearance/multiplot/subplot/subplot_4.cpp | solosuper/matplotplusplus | 87ff5728b14ad904bc6acaa2bf010c1a03c6cb4a | [
"MIT"
] | 2,709 | 2020-08-29T01:25:40.000Z | 2022-03-31T18:35:25.000Z | examples/appearance/multiplot/subplot/subplot_4.cpp | p-ranav/matplotplusplus | b45015e2be88e3340b400f82637b603d733d45ce | [
"MIT"
] | 124 | 2020-08-29T04:48:17.000Z | 2022-03-25T15:45:59.000Z | examples/appearance/multiplot/subplot/subplot_4.cpp | p-ranav/matplotplusplus | b45015e2be88e3340b400f82637b603d733d45ce | [
"MIT"
] | 203 | 2020-08-29T04:16:22.000Z | 2022-03-30T02:08:36.000Z | #include <iostream>
#include <matplot/matplot.h>
#include <set>
#include <thread>
#include <vector>
int main() {
using namespace matplot;
for (size_t i = 0; i < 4; ++i) {
subplot(2, 2, i);
std::string equation = "cos(x**" + num2str(i + 1) + ") + " + num2str(i);
fplot(equation);
... | 22 | 80 | 0.527273 | solosuper |
15255efe7a27d4f9d26c3e4247871ed1317ec1cc | 16,153 | cpp | C++ | src/LN2_LAYER_SMOOTH.cpp | dowdlelt/LAYNII | 8d434da57f3126bcd304577bd41eaa32d504df04 | [
"BSD-3-Clause"
] | 70 | 2018-04-09T13:16:42.000Z | 2022-03-25T11:35:05.000Z | src/LN2_LAYER_SMOOTH.cpp | dowdlelt/LAYNII | 8d434da57f3126bcd304577bd41eaa32d504df04 | [
"BSD-3-Clause"
] | 48 | 2018-12-06T01:17:48.000Z | 2022-03-31T13:55:28.000Z | src/LN2_LAYER_SMOOTH.cpp | dowdlelt/LAYNII | 8d434da57f3126bcd304577bd41eaa32d504df04 | [
"BSD-3-Clause"
] | 17 | 2019-04-25T20:57:34.000Z | 2022-03-07T12:20:31.000Z |
// TODO(Faruk): Seems there might be an issue with the gaussian kernel's
// symmetry and size corresponding to what is written in CLI
// TODO(Renzo): make the vicinity direction specific vinc_x, vinc_y, vinc_z
#include "../dep/laynii_lib.h"
int show_help(void) {
printf(
"LN2_LAYER_SMOOTH : Layering algorith... | 44.254795 | 147 | 0.409026 | dowdlelt |
152675c72105404e1ee60ae371f83fdf8cb3c493 | 2,359 | cpp | C++ | main/depth_main.cpp | TNishimoto/esaxx | bac2734b71ff933bc019070ee0ec2d5c7e01fbd5 | [
"MIT"
] | null | null | null | main/depth_main.cpp | TNishimoto/esaxx | bac2734b71ff933bc019070ee0ec2d5c7e01fbd5 | [
"MIT"
] | null | null | null | main/depth_main.cpp | TNishimoto/esaxx | bac2734b71ff933bc019070ee0ec2d5c7e01fbd5 | [
"MIT"
] | null | null | null | // License: MIT http://opensource.org/licenses/MIT
/*
This code was copied from https://takeda25.hatenablog.jp/entry/20101202/1291269994 and I modified it.
*/
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <unordered_map>
#include "stool/src/cmdline.h"
#include "../test/old_posto... | 31.039474 | 103 | 0.689275 | TNishimoto |
152813c13f60ee1ddf0aed5b27a8371b77cf4a70 | 1,361 | cpp | C++ | src/System/FileSystem.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 12 | 2020-12-27T22:13:58.000Z | 2021-03-14T09:03:02.000Z | src/System/FileSystem.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 10 | 2021-01-14T15:14:31.000Z | 2021-05-24T22:01:09.000Z | src/System/FileSystem.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | null | null | null | #include "FileSystem.hpp"
#include <fstream>
#include <sstream>
#include "Logger.hpp"
FILE* OpenFile(const char* path, const char* mode)
{
return fopen(path, mode);
}
bool TryReadFileContents(const char* path, std::string& result)
{
std::ifstream file(path);
if(!file.is_open())
{
Log("Failed to open %s for r... | 18.643836 | 81 | 0.624541 | Strife-AI |
1529ddab1992137fed1abf7bd4b457f872cecf83 | 2,567 | cpp | C++ | ICPC/SUBREGIONAL2014/e.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | ICPC/SUBREGIONAL2014/e.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | ICPC/SUBREGIONAL2014/e.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <stack>
#include <algorithm>
#include <cctype>
#include <vector>
#include <queue>
#include <tr1/unordered_map>
#include <cmath>
#include <map>
#include <bitset>
#include <set>
#include <iomanip>
using namespace std;
t... | 22.321739 | 68 | 0.488118 | henviso |
152aa86845581cb4ff2449eccfffca775b78f103 | 1,535 | cpp | C++ | Ch 4 Graph/Graph Traversal/Breadth First Search/uva-459-ConnectedComp.cpp | sladewinter/UVa-Online-Judge | 3e8003e8ae5452eed1468be44ae5d7bbcc763dd1 | [
"MIT"
] | null | null | null | Ch 4 Graph/Graph Traversal/Breadth First Search/uva-459-ConnectedComp.cpp | sladewinter/UVa-Online-Judge | 3e8003e8ae5452eed1468be44ae5d7bbcc763dd1 | [
"MIT"
] | null | null | null | Ch 4 Graph/Graph Traversal/Breadth First Search/uva-459-ConnectedComp.cpp | sladewinter/UVa-Online-Judge | 3e8003e8ae5452eed1468be44ae5d7bbcc763dd1 | [
"MIT"
] | null | null | null | //UVa 459 - Graph Connectivity
//Connected Components in Undirected Graph using BFS
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <regex>
#include <queue>
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;
constexpr int INF{ 999999999 };
int dist[26]; ... | 20.466667 | 64 | 0.482085 | sladewinter |
152b01078ef4581b9b4d2e0d2e740a057ed752d3 | 47,461 | cpp | C++ | src/plugProjectEbisawaU/efxEnemyBoss.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectEbisawaU/efxEnemyBoss.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectEbisawaU/efxEnemyBoss.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
/*
Generated from dpostproc
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_80497910
lbl_80497910:
.4byte 0x65667845
.4byte 0x6E656D79
.4byte 0x426F7373
.4byte 0x2E637070
.4byte 0x00000000
.global lbl_80497924
lbl_80497924:
... | 20.926367 | 83 | 0.579276 | projectPiki |
152f8223d47a0bf6ab4bb32cf2fd882fdde8118d | 451 | cpp | C++ | Dataset/Leetcode/train/1/687.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/1/687.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/1/687.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> XXX(vector<int>& nums, int target) {
unordered_map<int,int>hashmap;
vector<int> retVec;
for(int i=0;i<nums.size();i++){
if(hashmap.count(target-nums[i])>0){
retVec.push_back(hashmap[target-nums[i]]);
retVec.pus... | 25.055556 | 58 | 0.496674 | kkcookies99 |