hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12df926a4afd224c8e4ba65a64e9adbdd1b08582 | 18,020 | cpp | C++ | frontends/ygas.cpp | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | 1 | 2016-06-03T20:02:45.000Z | 2016-06-03T20:02:45.000Z | frontends/ygas.cpp | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | null | null | null | frontends/ygas.cpp | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | null | null | null | //
// GNU AS-like frontend
//
// Copyright (C) 2001-2010 Peter Johnson
//
// 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 above copyright
// notice, this list... | 30.439189 | 86 | 0.600999 | path64 |
12f130ef27758fd5d78ce2b82dda5d14b4110b0c | 59,925 | cpp | C++ | Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/Media capture using capture device sample/C++/AdvancedCapture.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2022-01-21T01:40:58.000Z | 2022-01-21T01:41:10.000Z | Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/Media capture using capture device sample/C++/AdvancedCapture.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Official Windows Platform Sample/Windows 8.1 Store app samples/[C++]-Windows 8.1 Store app samples/Media capture using capture device sample/C++/AdvancedCapture.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | null | null | null | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... | 37.807571 | 264 | 0.564572 | zzgchina888 |
12f780a688706ff1929b2c64eb478082df497c21 | 3,330 | cc | C++ | arccore/src/base/arccore/base/NotImplementedException.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 16 | 2021-09-20T12:37:01.000Z | 2022-03-18T09:19:14.000Z | arccore/src/base/arccore/base/NotImplementedException.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 66 | 2021-09-17T13:49:39.000Z | 2022-03-30T16:24:07.000Z | arccore/src/base/arccore/base/NotImplementedException.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 11 | 2021-09-27T16:48:55.000Z | 2022-03-23T19:06:56.000Z | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... | 36.593407 | 79 | 0.306306 | cedricga91 |
12fa2e4360808bdffdc7f10013bde325fa937c53 | 1,573 | hpp | C++ | libs/ml/include/ml/optimisation/learning_rate_params.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | libs/ml/include/ml/optimisation/learning_rate_params.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | libs/ml/include/ml/optimisation/learning_rate_params.hpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI 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 Licen... | 33.468085 | 99 | 0.623013 | chr15murray |
12ffb5933cb317375a6054fb50d17e7d943f3dd0 | 17,644 | cpp | C++ | Sources/Samples/Viewer/SampleViewer.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Samples/Viewer/SampleViewer.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Samples/Viewer/SampleViewer.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | /*=============================================================================
SampleViewer.cpp
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
#include <EntryPoint.h>
#include "SampleViewer.h"
//#define SKINNING_HW
static const int max... | 27.698587 | 126 | 0.713217 | jdelezenne |
4201c63cc305931eba5bda3ddaf7d640606dfe0a | 3,244 | hpp | C++ | bench/juice-variant/include/juice/mpl.hpp | reuk/strict-variant | 7d0f1433d5126951b1af350213a0c7e75575fab0 | [
"BSL-1.0"
] | 62 | 2016-08-02T05:15:16.000Z | 2020-02-14T18:02:34.000Z | bench/juice-variant/include/juice/mpl.hpp | reuk/strict-variant | 7d0f1433d5126951b1af350213a0c7e75575fab0 | [
"BSL-1.0"
] | 6 | 2016-12-07T03:00:46.000Z | 2018-12-03T22:03:27.000Z | bench/juice-variant/include/juice/mpl.hpp | reuk/strict-variant | 7d0f1433d5126951b1af350213a0c7e75575fab0 | [
"BSL-1.0"
] | 6 | 2016-12-10T18:59:18.000Z | 2019-11-05T08:11:11.000Z | /* Meta-programming utility.
Copyright (C) 2013 Jarryd Beck
This file is part of Juice.
Distributed under the Boost Software License, Version 1.0
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the... | 25.952 | 77 | 0.68434 | reuk |
4206e2ce7ff8190164a5af491b6040fb4a7739d9 | 27,559 | cpp | C++ | tests/n22_wilson_kcycle_adaptive/wilson_kcycle.cpp | weinbe2/quantum-mg | 4e9be616124dc5b1b8e3a743d51350b26ebe36e8 | [
"MIT"
] | null | null | null | tests/n22_wilson_kcycle_adaptive/wilson_kcycle.cpp | weinbe2/quantum-mg | 4e9be616124dc5b1b8e3a743d51350b26ebe36e8 | [
"MIT"
] | null | null | null | tests/n22_wilson_kcycle_adaptive/wilson_kcycle.cpp | weinbe2/quantum-mg | 4e9be616124dc5b1b8e3a743d51350b26ebe36e8 | [
"MIT"
] | 1 | 2021-09-01T21:11:06.000Z | 2021-09-01T21:11:06.000Z | // Copyright (c) 2017 Evan S Weinberg
// A test of a K-cycle for the interacting
// Wilson operator. Null vector generation
// based on https://arxiv.org/pdf/1307.6101.pdf.
#include <iostream>
#include <iomanip>
#include <complex>
#include <cmath>
#include <random>
#include <vector>
using namespace std;
// QLINALG
#... | 38.980198 | 267 | 0.670344 | weinbe2 |
420841016695612ca2c8db36d2a8948247b12dab | 1,057 | cpp | C++ | euler062.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | euler062.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | euler062.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | /**
* Problem 62 「立方数置換」
* 立方数 41063625 (345^3) は, 桁の順番を入れ替えると2つの立方数になる: 56623104 (384^3) と 66430125 (405^3) である.
* 41063625は, 立方数になるような桁の置換をちょうど3つもつ最小の立方数である.
*
* 立方数になるような桁の置換をちょうど5つもつ最小の立方数を求めよ.
*/
#include <algorithm>
#include <array>
#include <cstdint>
#include <iostream>
#include <string>
using uInt = std... | 24.022727 | 89 | 0.598865 | suihan74 |
420962aeb091c03f2c94c77f171ec6432e884c2d | 3,724 | cpp | C++ | src/YVM.cpp | Freshman585/yvm | cf350a8a4260294fcd64a56296c6ab1940740463 | [
"MIT"
] | 2 | 2020-05-14T15:48:15.000Z | 2020-06-19T05:48:15.000Z | src/YVM.cpp | chrrg/yvm | cf350a8a4260294fcd64a56296c6ab1940740463 | [
"MIT"
] | null | null | null | src/YVM.cpp | chrrg/yvm | cf350a8a4260294fcd64a56296c6ab1940740463 | [
"MIT"
] | 1 | 2020-09-17T13:38:18.000Z | 2020-09-17T13:38:18.000Z | #include "YVM.h"
#include "MethodArea.h"
#include "JavaClass.h"
#include "Utils.h"
#include "JavaHeap.h"
#include "Descriptor.h"
#include "Option.h"
#include "Debug.h"
#include "NativeMethod.h"
#include "RuntimeEnv.h"
#include "GC.h"
YVM::ExecutorThreadPool YVM::executor;
#define FORCE(x) (reinterpret_cast<char*>(x))... | 35.132075 | 120 | 0.669173 | Freshman585 |
420b1bd998c9161724bd3124295c81e711d7d1d9 | 1,368 | hpp | C++ | android-28/android/graphics/BitmapRegionDecoder.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/graphics/BitmapRegionDecoder.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/graphics/BitmapRegionDecoder.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
class JByteArray;
namespace android::graphics
{
class Bitmap;
}
namespace android::graphics
{
class BitmapFactory_Options;
}
namespace android::graphics
{
class Rect;
}
namespace java::io
{
class FileDescriptor;
}
namespace java::io
{
class InputStream;
}
class JString;
... | 25.333333 | 160 | 0.752193 | YJBeetle |
420fbdddf9212ffc8b331827b562079588a85f53 | 9,588 | cpp | C++ | Tools/CreateNormalMap/CreateNormalMap.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | Tools/CreateNormalMap/CreateNormalMap.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | Tools/CreateNormalMap/CreateNormalMap.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Restricted Libraries source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf
// and may not be copie... | 33.407666 | 80 | 0.581352 | wjezxujian |
421922df4eb9065a53435976509fe8b31ea3a661 | 1,782 | cpp | C++ | 57_02_ContinuousSquenceWithSum/ContinuousSquenceWithSum.cpp | darkkiller123/-offer | a0859f469e5c8caef52d5ff145753ad46eda6aaa | [
"BSD-3-Clause"
] | 1 | 2019-05-07T12:18:46.000Z | 2019-05-07T12:18:46.000Z | 57_02_ContinuousSquenceWithSum/ContinuousSquenceWithSum.cpp | YihengJiang/CodingInterviewChinese2-master | 0cc556b14b9096211683dd8e445935b7515e25e8 | [
"BSD-3-Clause"
] | null | null | null | 57_02_ContinuousSquenceWithSum/ContinuousSquenceWithSum.cpp | YihengJiang/CodingInterviewChinese2-master | 0cc556b14b9096211683dd8e445935b7515e25e8 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************
Copyright(c) 2016, Harry He
All rights reserved.
Distributed under the BSD license.
(See accompanying file LICENSE.txt at
https://github.com/zhedahht/CodingInterviewChinese2/blob/master/LICENSE.txt)
***************************************************... | 21.731707 | 76 | 0.473625 | darkkiller123 |
421e90a20e518feec3adc1e1fdde2fa4bca7fa14 | 2,309 | hh | C++ | src/Titon/Intl/Bag/InflectionBag.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | src/Titon/Intl/Bag/InflectionBag.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | src/Titon/Intl/Bag/InflectionBag.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh // strict
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/bsd-license.php
* @link http://titon.io
*/
namespace Titon\Intl\Bag;
use Titon\Common\Bag\AbstractBag;
/**
* A bag for locale specific inflection rules.
*
* @package Titon\Intl\Bag
*/
class Inf... | 20.990909 | 64 | 0.550022 | ciklon-z |
42261d6f1d9d0354ca6174b3cfa4135ecc978736 | 286 | cpp | C++ | ieee_sep/double.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/double.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/double.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////
// double.cpp
// Implementation of the Class double
// Created on: 13-Apr-2020 2:51:27 PM
///////////////////////////////////////////////////////////
#include "double.h"
double::double(){
}
double::~double(){
} | 15.888889 | 59 | 0.356643 | Tylores |
4226410a86a21c19f5d9ce2cd4f7f2b177d35cb3 | 3,875 | hh | C++ | elements/analysis/packetmemstats.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/analysis/packetmemstats.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/analysis/packetmemstats.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | // -*- c-basic-offset: 4 -*-
#ifndef CLICK_PACKETMEMSTATS_HH
#define CLICK_PACKETMEMSTATS_HH
#include <click/batchelement.hh>
#include <click/multithread.hh>
#define DEF_ALIGN 64
CLICK_DECLS
/*
=c
PacketMemStats([ALIGN_STRIDE])
=s counters
keep statistics about packet memory
=d
Expects Ethernet packets as inp... | 25.833333 | 101 | 0.634839 | BorisPis |
4226dc123faeaca272cd2f0c0c6cfa299ab2408c | 1,059 | cpp | C++ | N0116-Populating-Next-Right-Pointers-in-Each-Node/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0116-Populating-Next-Right-Pointers-in-Each-Node/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0116-Populating-Next-Right-Pointers-in-Each-Node/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | /*
// Definition for a Node.
class Node {
public:
int val;
Node* left;
Node* right;
Node* next;
Node() : val(0), left(NULL), right(NULL), next(NULL) {}
Node(int _val) : val(_val), left(NULL), right(NULL), next(NULL) {}
Node(int _val, Node* _left, Node* _right, Node* _next)
: val(_... | 23.021739 | 70 | 0.423041 | loyio |
42290ded5c83a60591a2c3aa02e8eb91d28a4fed | 206 | cpp | C++ | code/save_before/0730/6.cpp | EGyeom/BlogMaker | 7b319a19bb23786c55a0539be86e1c3246e62240 | [
"MIT"
] | 1 | 2021-06-03T13:44:27.000Z | 2021-06-03T13:44:27.000Z | code/save_before/0730/6.cpp | EGyeom/BlogMaker | 7b319a19bb23786c55a0539be86e1c3246e62240 | [
"MIT"
] | null | null | null | code/save_before/0730/6.cpp | EGyeom/BlogMaker | 7b319a19bb23786c55a0539be86e1c3246e62240 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int solutions(vector<int> priorities)
{
vector<int>::iterator it = priorities.begin();
for(it; it != priorities.end(); ++it)
{
}
} | 18.727273 | 50 | 0.640777 | EGyeom |
422c03c95860f9314a30feb780a89c6d0418ec53 | 9,476 | cpp | C++ | libcoreprio/ServiceManager.cpp | jeremycollake/coreprio | b66308263f1142428a21d041080cba5854743437 | [
"MIT"
] | 33 | 2019-05-28T01:57:30.000Z | 2021-11-24T09:47:20.000Z | libcoreprio/ServiceManager.cpp | jeremycollake/coreprio | b66308263f1142428a21d041080cba5854743437 | [
"MIT"
] | 2 | 2020-06-16T00:00:58.000Z | 2020-12-05T12:40:17.000Z | libcoreprio/ServiceManager.cpp | jeremycollake/coreprio | b66308263f1142428a21d041080cba5854743437 | [
"MIT"
] | 4 | 2019-05-29T14:15:37.000Z | 2021-09-22T15:42:06.000Z | /*
* Part of the CorePrio project
* (c)2019 Jeremy Collake <jeremy@bitsum.com>, Bitsum LLC
* https://bitsum.com/portfolio/coreprio
* See LICENSE.TXT
*
* ! LEGACY CODE WARNING (15+ years)
*
*/
#include "stdafx.h"
#include "ServiceManager.h"
bool ServiceManager::EnsureServiceIsEnabled(const WCHAR *ptszServiceName)
{
SC... | 30.08254 | 121 | 0.772056 | jeremycollake |
422d8a6ea1709a1ba3cd88d4275aecfc41941017 | 836 | cpp | C++ | C++/uva10474.cpp | MrinmoiHossain/Uva-Solution | 85602085b7c8e1d4711e679b8f5636678459b2c5 | [
"MIT"
] | 1 | 2017-04-17T21:51:54.000Z | 2017-04-17T21:51:54.000Z | C++/uva10474.cpp | MrinmoiHossain/Uva-Solution | 85602085b7c8e1d4711e679b8f5636678459b2c5 | [
"MIT"
] | 1 | 2020-06-24T23:43:11.000Z | 2020-06-24T23:43:11.000Z | C++/uva10474.cpp | MrinmoiHossain/Uva-Solution | 85602085b7c8e1d4711e679b8f5636678459b2c5 | [
"MIT"
] | 2 | 2018-12-14T12:57:51.000Z | 2020-01-03T09:00:07.000Z | //Accepted
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
int n, m, pos = 1;
while(cin >> m >> n){
if(m == 0 && n == 0)
break;
vector<int> x(m);
vector<int> a(n);
for(int i = 0; i < m; i++)
cin >> x[i];
sort(x.begin(), x.end());... | 22 | 66 | 0.312201 | MrinmoiHossain |
42313794d5d8480207d22e3b02daed08def74958 | 563 | cpp | C++ | C++/implement-queue-by-two-stacks.cpp | xenron/sandbox-dev-lintcode | 114145723af43eafc84ff602ad3ac7b353a9fc38 | [
"MIT"
] | 695 | 2015-04-18T16:11:56.000Z | 2022-03-11T13:28:44.000Z | C++/implement-queue-by-two-stacks.cpp | Abd-Elrazek/LintCode | 8f6ee0ff38cb7cf8bf9fca800243823931604155 | [
"MIT"
] | 4 | 2015-07-04T13:07:35.000Z | 2020-08-11T11:32:29.000Z | C++/implement-queue-by-two-stacks.cpp | Abd-Elrazek/LintCode | 8f6ee0ff38cb7cf8bf9fca800243823931604155 | [
"MIT"
] | 338 | 2015-04-28T04:39:03.000Z | 2022-03-16T03:00:15.000Z | // Time: O(1), amortized
// Space: O(n)
class Queue {
public:
stack<int> stack1;
stack<int> stack2;
Queue() {
// do intialization if necessary
}
void push(int element) {
stack1.emplace(element);
}
int pop() {
int element = top();
stack2.pop();
ret... | 16.558824 | 45 | 0.456483 | xenron |
42340792ab7703c3a889adda66a6e0e3ff4affb8 | 678 | cpp | C++ | shakutori/abc130_d.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | shakutori/abc130_d.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | shakutori/abc130_d.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
/*
参考リンク
ABC 130 D - Enough Array
https://atcoder.jp/contests/abc130/tasks/abc130_d
*/
int main() {
ll n, k;
cin >> n >> k;
vector<ll> a(n);
rep(i, n) cin... | 18.324324 | 55 | 0.489676 | Takumi1122 |
4236247841accb517ab359e0ce3ff4c347d22f3f | 899 | cpp | C++ | 10849.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10849.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10849.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#de... | 18.346939 | 70 | 0.561735 | felikjunvianto |
4236f34ba1a5886d1f92d06833a31e4ac53f1c62 | 1,080 | hpp | C++ | include/core/scope.hpp | aethelwerka/astraea | cf700a854d4183a263c7185b8ee3ab5d496215dc | [
"BSD-3-Clause"
] | 4 | 2021-08-22T17:27:05.000Z | 2021-08-24T22:30:48.000Z | include/core/scope.hpp | aethelwerka/astraea | cf700a854d4183a263c7185b8ee3ab5d496215dc | [
"BSD-3-Clause"
] | null | null | null | include/core/scope.hpp | aethelwerka/astraea | cf700a854d4183a263c7185b8ee3ab5d496215dc | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2020 Krayfaus
* All rights reserved.
*
* This source code is licensed under the BSD-style license that can be
* found in the LICENSE file in the root directory of this source tree.
*/
#pragma once
#include "include/core/ast.hpp"
#include "include/utils/types.hpp"
namespace astraea {
... | 27.692308 | 77 | 0.748148 | aethelwerka |
42387ad7c2ca432406a63aaf21babf94b8a0ad58 | 271 | hpp | C++ | protocols/posix/include/protocols/posix/data.hpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 935 | 2018-05-23T14:56:18.000Z | 2022-03-29T07:27:20.000Z | protocols/posix/include/protocols/posix/data.hpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 314 | 2018-05-04T15:58:06.000Z | 2022-03-30T16:24:17.000Z | protocols/posix/include/protocols/posix/data.hpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 65 | 2019-04-21T14:26:51.000Z | 2022-03-12T03:16:41.000Z | #pragma once
#include <hel.h>
namespace posix {
struct ManagarmProcessData {
HelHandle posixLane;
HelHandle mbusLane;
void *threadPage;
HelHandle *fileTable;
void *clockTrackerPage;
};
struct ManagarmServerData {
HelHandle controlLane;
};
} // namespace posix
| 13.55 | 28 | 0.756458 | kITerE |
4239fe892bf29c8c96b7b92a19a01c0c66a76a1e | 7,323 | hpp | C++ | nImO/nImOchunkArray.hpp | opendragon/nImO | cf1ca52781bf03e82a5886dafc16ec39b1e29ba5 | [
"BSD-3-Clause"
] | null | null | null | nImO/nImOchunkArray.hpp | opendragon/nImO | cf1ca52781bf03e82a5886dafc16ec39b1e29ba5 | [
"BSD-3-Clause"
] | null | null | null | nImO/nImOchunkArray.hpp | opendragon/nImO | cf1ca52781bf03e82a5886dafc16ec39b1e29ba5 | [
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------------------------------
//
// File: nImO/nImOchunkArray.hpp
//
// Project: nImO
//
// Contains: The class declaration for a string buffer.
//
// Written by: Norman Jaffe
//
// Copyright: (c) 2016 by OpenDragon.
//
// ... | 33.591743 | 100 | 0.570668 | opendragon |
423c5bcf1366fa84cb3ac7f0163970adcf0d75be | 4,016 | cpp | C++ | src/qt4_in_gtk2.cpp | ventosus/suil | d0252036f46ff5eb606973695cb975319e88821b | [
"0BSD"
] | null | null | null | src/qt4_in_gtk2.cpp | ventosus/suil | d0252036f46ff5eb606973695cb975319e88821b | [
"0BSD"
] | null | null | null | src/qt4_in_gtk2.cpp | ventosus/suil | d0252036f46ff5eb606973695cb975319e88821b | [
"0BSD"
] | null | null | null | /*
Copyright 2011-2015 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND... | 25.1 | 101 | 0.72261 | ventosus |
423f23f540b1339203ff52e00695f9d593cc1855 | 1,283 | cpp | C++ | Source/ALSV4_CPP/Private/Character/QuatPlayerCameraManager.cpp | StomatoGod/ALSV4_CPP | 9c9acbc7f7167194d241016efd4abd5d94e7e41f | [
"MIT"
] | null | null | null | Source/ALSV4_CPP/Private/Character/QuatPlayerCameraManager.cpp | StomatoGod/ALSV4_CPP | 9c9acbc7f7167194d241016efd4abd5d94e7e41f | [
"MIT"
] | null | null | null | Source/ALSV4_CPP/Private/Character/QuatPlayerCameraManager.cpp | StomatoGod/ALSV4_CPP | 9c9acbc7f7167194d241016efd4abd5d94e7e41f | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Character/QuatPlayerCameraManager.h"
#include "Character/ALSBaseCharacter.h"
#include "Camera/CameraComponent.h"
#include "Components/StaticMeshComponent.h"
bool AQuatPlayerCameraManager::IsGravityWalker()
{
return true;
}
U... | 22.508772 | 95 | 0.781761 | StomatoGod |
4242bff7ceb0a98469171e3cade6c75dedff938f | 398 | cc | C++ | bitlinuxosnetworkclass/lesson21/demo1/mysignal.cc | DanteIoVeYou/Linux_Study | 701a54caad3d65c511716111430ca08ada78f088 | [
"MIT"
] | null | null | null | bitlinuxosnetworkclass/lesson21/demo1/mysignal.cc | DanteIoVeYou/Linux_Study | 701a54caad3d65c511716111430ca08ada78f088 | [
"MIT"
] | null | null | null | bitlinuxosnetworkclass/lesson21/demo1/mysignal.cc | DanteIoVeYou/Linux_Study | 701a54caad3d65c511716111430ca08ada78f088 | [
"MIT"
] | null | null | null | #include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <signal.h>
void handler(int signo) {
std::cout << " helloworld: " << signo << std::endl;
}
int main() {
// sighandler_t sig = signal(SIGINT, handler);
for(int i = 1; i < 32; i++) {
signal(i, handler);
}
while(true) {
std::cout <<... | 19.9 | 61 | 0.570352 | DanteIoVeYou |
42494f026bea6a696cd485ff8f032a78e2204360 | 1,592 | cc | C++ | pmemds/tests/pmemds_shareded_pq.cc | huangvincent170/cyclone | 737af617ab1472dfb16e6c20a079e88dccf85850 | [
"Apache-2.0"
] | 2 | 2019-04-16T01:33:36.000Z | 2021-02-23T08:34:38.000Z | pmemds/tests/pmemds_shareded_pq.cc | huangvincent170/cyclone | 737af617ab1472dfb16e6c20a079e88dccf85850 | [
"Apache-2.0"
] | null | null | null | pmemds/tests/pmemds_shareded_pq.cc | huangvincent170/cyclone | 737af617ab1472dfb16e6c20a079e88dccf85850 | [
"Apache-2.0"
] | 4 | 2020-03-27T18:06:33.000Z | 2021-03-24T09:56:17.000Z |
#include "../include/pmemds-client.h"
#include "../include/priority_queue/priority_queue-client.h"
#include "test_client.h"
#include "gtest/gtest.h"
#include "test_common.hpp"
namespace {
uint8_t partition_callback(void *){
return 0;
}
// testing concurrent HashMap impl with our routing bits
... | 28.945455 | 139 | 0.63505 | huangvincent170 |
424c3bb3e09b26c9ae9fea22e2aa597a5e32fd3f | 6,386 | hpp | C++ | libs/Delphi/src/Syntax/Declarations/DelphiClassTypeDeclarationSyntax.hpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | null | null | null | libs/Delphi/src/Syntax/Declarations/DelphiClassTypeDeclarationSyntax.hpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | 19 | 2021-12-01T20:37:23.000Z | 2022-02-14T21:05:43.000Z | libs/Delphi/src/Syntax/Declarations/DelphiClassTypeDeclarationSyntax.hpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | null | null | null | #ifndef ARGOS_DELPHI_SYNTAX_DECLARATIONS_DELPHICLASSTYPEDECLARATIONSYNTAX_H
#define ARGOS_DELPHI_SYNTAX_DECLARATIONS_DELPHICLASSTYPEDECLARATIONSYNTAX_H
#include <string>
#include <argos-Core/Syntax/SyntaxVariant.hpp>
#include <argos-Core/Types.hpp>
#include "Syntax/Declarations/DelphiTypeDeclarationSyntax.hpp"
name... | 46.955882 | 111 | 0.626997 | henrikfroehling |
425261577fd755971ea0aa0da905eb9ada4e5947 | 6,533 | cc | C++ | mace/ops/arm/base/bias_add.cc | zhangzhimin/mace | c28f093d719fd650a4308895cd045c26d0f198f6 | [
"Apache-2.0"
] | 1 | 2021-08-02T12:17:58.000Z | 2021-08-02T12:17:58.000Z | mace/ops/arm/base/bias_add.cc | zhangzhimin/mace | c28f093d719fd650a4308895cd045c26d0f198f6 | [
"Apache-2.0"
] | null | null | null | mace/ops/arm/base/bias_add.cc | zhangzhimin/mace | c28f093d719fd650a4308895cd045c26d0f198f6 | [
"Apache-2.0"
] | 1 | 2021-08-02T12:18:00.000Z | 2021-08-02T12:18:00.000Z | // Copyright 2020 The MACE 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 appl... | 35.123656 | 78 | 0.597888 | zhangzhimin |
425790b8cc56c9b7ffe37dccebaac93948543201 | 6,650 | cpp | C++ | src/Engine/Physics/PhysicsHandler.cpp | robbiehammond/Game-Console | e7869ddc52bcf506c20d8be6c7b8d2df534a7ace | [
"MIT"
] | null | null | null | src/Engine/Physics/PhysicsHandler.cpp | robbiehammond/Game-Console | e7869ddc52bcf506c20d8be6c7b8d2df534a7ace | [
"MIT"
] | null | null | null | src/Engine/Physics/PhysicsHandler.cpp | robbiehammond/Game-Console | e7869ddc52bcf506c20d8be6c7b8d2df534a7ace | [
"MIT"
] | null | null | null | #include "PhysicsHandler.h"
Adafruit_ST7735* PhysicsHandler::screen = nullptr;
bool PhysicsHandler::screenInitialized = false;
int PhysicsHandler::screenHeight = 0;
int PhysicsHandler::screenWidth = 0;
Vec2D PhysicsHandler::playerVelocity = Vec2D(2,2);
Vec2D PhysicsHandler::playerCoords = Vec2D(0,0); //dependent on pl... | 32.125604 | 113 | 0.656992 | robbiehammond |
425a01d6312f42073ded29551288feda8dae1677 | 1,142 | hpp | C++ | GettingStartedStatsWriter.hpp | ot4i/iib-stats-writer-gettingstarted | 530ed63be7369a2089cc51b6a6f9970b826eb397 | [
"MIT"
] | 3 | 2017-06-14T15:53:08.000Z | 2020-01-20T21:01:41.000Z | GettingStartedStatsWriter.hpp | ot4i/iib-stats-writer-gettingstarted | 530ed63be7369a2089cc51b6a6f9970b826eb397 | [
"MIT"
] | null | null | null | GettingStartedStatsWriter.hpp | ot4i/iib-stats-writer-gettingstarted | 530ed63be7369a2089cc51b6a6f9970b826eb397 | [
"MIT"
] | null | null | null | /********************************************************* {COPYRIGHT-TOP} ***
* Copyright 2016 IBM Corporation
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://opensource.org/... | 28.55 | 98 | 0.692644 | ot4i |
425b9cc2c152908a144e35e177bdb78f2d95e6ff | 12,785 | cc | C++ | extern/glow/src/glow/util/DefaultShaderParser.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/glow/src/glow/util/DefaultShaderParser.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/glow/src/glow/util/DefaultShaderParser.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #include "DefaultShaderParser.hh"
#include <algorithm>
#include <fstream>
#include <iterator>
#include <set>
#include <sstream>
#include <glow/common/log.hh>
#include <glow/common/shader_endings.hh>
#include <glow/common/str_utils.hh>
#include <glow/common/stream_readall.hh>
#include <glow/glow.hh>
#include <glow/ob... | 34.741848 | 150 | 0.506844 | rovedit |
425e2bf5f548decc6ef31b067ef9cfec9c28f8ac | 1,887 | cpp | C++ | branch/MSP432/SaltyOS/Kernel/GUI/Picture/DirectDataPic.cpp | wtywtykk/STM32Framework_SaltyProject | ba52576006a9c4bdb3c0e6b0dbef2d261359da50 | [
"MIT"
] | 1 | 2019-04-03T12:17:25.000Z | 2019-04-03T12:17:25.000Z | trunk/SaltyOS/Kernel/GUI/Picture/DirectDataPic.cpp | wtywtykk/STM32Framework_SaltyProject | ba52576006a9c4bdb3c0e6b0dbef2d261359da50 | [
"MIT"
] | null | null | null | trunk/SaltyOS/Kernel/GUI/Picture/DirectDataPic.cpp | wtywtykk/STM32Framework_SaltyProject | ba52576006a9c4bdb3c0e6b0dbef2d261359da50 | [
"MIT"
] | 1 | 2021-06-09T11:20:08.000Z | 2021-06-09T11:20:08.000Z | #include "Kernel\GUI\GUICommon.h"
#include "Kernel\GUI\DC\DC.h"
#include "Kernel\GUI\Picture\DirectDataPic.h"
#include <assert.h>
#include <stdlib.h>
DIRECTDATAPIC::DIRECTDATAPIC(GUIPOS PicWidth, GUIPOS PicHeight, const PIXEL* PicData)
{
assert(PicWidth > 0);
assert(PicHeight > 0);
assert(Data != NULL);
Width = Pi... | 17 | 85 | 0.618442 | wtywtykk |
42643b568bfec12ada1ae26dfc64a75a205dc171 | 11,421 | hpp | C++ | include/System/GC.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/GC.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/GC.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Runtime.CompilerServices.Eph... | 51.445946 | 178 | 0.732773 | v0idp |
426729417896de439c226d0677c129bd5d4c3fdc | 2,444 | cpp | C++ | test/test_dynamic_matrix_initialize.cpp | AMatrix/AMatrix | 325c3b59d99605f0b50b6e7be3556dd23881992c | [
"MIT"
] | 24 | 2017-10-31T17:22:09.000Z | 2020-05-20T21:16:41.000Z | test/test_dynamic_matrix_initialize.cpp | AMatrix/AMatrix | 325c3b59d99605f0b50b6e7be3556dd23881992c | [
"MIT"
] | 8 | 2017-10-28T07:27:44.000Z | 2019-01-24T16:38:15.000Z | test/test_dynamic_matrix_initialize.cpp | AMatrix/AMatrix | 325c3b59d99605f0b50b6e7be3556dd23881992c | [
"MIT"
] | 7 | 2018-04-22T18:12:08.000Z | 2019-01-16T10:39:41.000Z | #include "amatrix.h"
#include "checks.h"
template <std::size_t TSize1, std::size_t TSize2>
int TestMatrixInitializeToZero() {
AMatrix::Matrix<double, AMatrix::dynamic, AMatrix::dynamic> a_matrix(
AMatrix::ZeroMatrix<double>(TSize1, TSize2));
for (std::size_t i = 0; i < a_matrix.size1(); i++)
f... | 33.944444 | 90 | 0.699673 | AMatrix |
426922a7fa67c65a77906cad72cc83dfc7694741 | 493 | hpp | C++ | ParamedicCommander.hpp | elad11310/Matala4_C_Plus_Plus_WarGame | bb929ff64900ef6f9d7e6f8746944875322fd81e | [
"MIT"
] | null | null | null | ParamedicCommander.hpp | elad11310/Matala4_C_Plus_Plus_WarGame | bb929ff64900ef6f9d7e6f8746944875322fd81e | [
"MIT"
] | null | null | null | ParamedicCommander.hpp | elad11310/Matala4_C_Plus_Plus_WarGame | bb929ff64900ef6f9d7e6f8746944875322fd81e | [
"MIT"
] | null | null | null | //
// Created by elad on 24/05/2020.
//
#ifndef MATALA4_WARGAME_PARAMEDICCOMMANDER_H
#define MATALA4_WARGAME_PARAMEDICCOMMANDER_H
#endif //MATALA4_WARGAME_PARAMEDICCOMMANDER_H
#include "Soldier.hpp"
class ParamedicCommander : public Soldier {
public:
ParamedicCommander(int player) : Soldier(200, "ParamedicC... | 18.259259 | 108 | 0.750507 | elad11310 |
426a1b1187ffb952c6f2edf9429e4fd1be2cb9fb | 6,926 | hpp | C++ | Source/opennwa/WeightGen.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | Source/opennwa/WeightGen.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | Source/opennwa/WeightGen.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #ifndef wali_nwa_WeightGen_GUARD
#define wali_nwa_WeightGen_GUARD 1
/**
* @author Amanda Burton, Evan Driscoll, Aditya Thakur
*/
#include "opennwa/ClientInfo.hpp"
#include "wali/Reach.hpp"
#include "wali/ShortestPathSemiring.hpp"
namespace opennwa
{
using wali::Key; // TODO remove
using wali::sem_elem_t;
us... | 26.638462 | 135 | 0.621282 | jusito |
426ce960a045e395889778be8417a7ca22705632 | 6,142 | cpp | C++ | AtuadorLinear/AtuadorLinear.cpp | rebeca53/Motor-and-Sensors-Libraries | 75bd1191fdf299008f09284efe3cef9a1198d505 | [
"MIT"
] | null | null | null | AtuadorLinear/AtuadorLinear.cpp | rebeca53/Motor-and-Sensors-Libraries | 75bd1191fdf299008f09284efe3cef9a1198d505 | [
"MIT"
] | null | null | null | AtuadorLinear/AtuadorLinear.cpp | rebeca53/Motor-and-Sensors-Libraries | 75bd1191fdf299008f09284efe3cef9a1198d505 | [
"MIT"
] | null | null | null | #include "AtuadorLinear.h"
#include "math.h"
#include "mbed.h"
// Public Methods /////////////////////////////////
// Construtor
AtuadorLinear::AtuadorLinear(PinName habilitaPin, PinName sentidoPin, PinName feedbackPin) : _habilitaPin(habilitaPin), _sentidoPin(sentidoPin), _feedbackPin(feedbackPin){
_habilita... | 31.497436 | 174 | 0.655812 | rebeca53 |
f119162fc69ae52ee4b20b8c8ab09d38fd60c236 | 926 | cpp | C++ | array/628_maximum_product_of_three_numbers.cpp | rspezialetti/leetcode | 4614ffe2a4923aae02f93096b6200239e6f201c1 | [
"MIT"
] | 1 | 2019-08-21T21:25:34.000Z | 2019-08-21T21:25:34.000Z | array/628_maximum_product_of_three_numbers.cpp | rspezialetti/leetcode | 4614ffe2a4923aae02f93096b6200239e6f201c1 | [
"MIT"
] | null | null | null | array/628_maximum_product_of_three_numbers.cpp | rspezialetti/leetcode | 4614ffe2a4923aae02f93096b6200239e6f201c1 | [
"MIT"
] | null | null | null | class Solution {
public:
int maximumProduct(vector<int>& nums)
{
int min_1 = INT_MAX;
int min_2 = INT_MAX;
int max_1 = INT_MIN;
int max_2 = INT_MIN;
int max_3 = INT_MIN;
for(auto i : nums)
{
if(i >= max_1)
... | 21.045455 | 65 | 0.320734 | rspezialetti |
f11ae4bcdb6e093d9a57adac68272cb92c11316c | 20,120 | cpp | C++ | lib/bullet/src/src/Bullet3OpenCL/ParallelPrimitives/b3RadixSort32CL.cpp | mtesseracttech/CustomEngine | 1a9ed564408ae29fe49681a810b851403d71f486 | [
"Apache-2.0"
] | 360 | 2015-01-26T08:15:01.000Z | 2021-07-11T16:30:58.000Z | thirdparty/bullet/Bullet3OpenCL/ParallelPrimitives/b3RadixSort32CL.cpp | Abd-Elrazek/godot | 10e9221c49eddc05cb36c0b582060cac9e4c8cef | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 73 | 2015-04-14T09:39:05.000Z | 2020-11-11T21:49:10.000Z | thirdparty/bullet/Bullet3OpenCL/ParallelPrimitives/b3RadixSort32CL.cpp | Abd-Elrazek/godot | 10e9221c49eddc05cb36c0b582060cac9e4c8cef | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 82 | 2015-01-25T18:02:35.000Z | 2022-03-05T12:28:17.000Z |
#include "b3RadixSort32CL.h"
#include "b3LauncherCL.h"
#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h"
#include "b3PrefixScanCL.h"
#include "b3FillCL.h"
#define RADIXSORT32_PATH "src/Bullet3OpenCL/ParallelPrimitives/kernels/RadixSort32Kernels.cl"
#include "kernels/RadixSort32KernelsCL.h"
b3RadixSort32CL::b3Radi... | 28.298172 | 180 | 0.624056 | mtesseracttech |
f12017fa2885cc3dbcb5ddc17367e96562f7f66e | 13,998 | cpp | C++ | data/837.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/837.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/837.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int P4q
, jy
,
km3//iGv
, Wp , A1e
,jzqM0,
nCvJ ,fVXXO,k5
,//8gKO
Cvq ,Q1z ,
Vlu87,GVB ,
C,qC
,wt ,m0Kk ,
DYo,m6,VIVe
,d3, p5bH
,
FGF, Yx, OoL , i3,
ba , cZv , DCs, D0 ,Px4
/*pn*/,
ZGs, drvpc
, Ikr5 ,
Ko,
AZ, URl , Dhha,xOoq
,/*wA*/ oZJB,
ksc
, vB
,
tS, sK, KCS
,RXZ ,//nsGyl
sOZ, //
JcHd ... | 10.315402 | 68 | 0.45828 | TianyiChen |
f126f3d0a65c03f5999f1428d7cf565dac118807 | 2,935 | cpp | C++ | src/plugins/secman/plugins/securestorage/ciphertextformat.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/plugins/secman/plugins/securestorage/ciphertextformat.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/secman/plugins/securestorage/ciphertextformat.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2011 Alexander Konovalov
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or orga... | 29.646465 | 78 | 0.707666 | MellonQ |
f13283cfe06efb31bef5c41d1cd1ab6fd1ba1e3f | 2,130 | cpp | C++ | src/states/select-class-state.cpp | xterminal86/nrogue | 1d4e578b3d854b8e4d41f5ba1477de9b2c9e864f | [
"MIT"
] | 7 | 2019-03-05T05:32:13.000Z | 2022-01-10T10:06:47.000Z | src/states/select-class-state.cpp | xterminal86/nrogue | 1d4e578b3d854b8e4d41f5ba1477de9b2c9e864f | [
"MIT"
] | 2 | 2020-01-19T16:43:51.000Z | 2021-12-16T14:54:56.000Z | src/states/select-class-state.cpp | xterminal86/nrogue | 1d4e578b3d854b8e4d41f5ba1477de9b2c9e864f | [
"MIT"
] | null | null | null | #include "select-class-state.h"
#include "printer.h"
#include "application.h"
#include "util.h"
void SelectClassState::HandleInput()
{
_keyPressed = GetKeyDown();
switch (_keyPressed)
{
case ALT_K2:
case NUMPAD_2:
#ifdef USE_SDL
case KEY_DOWN:
#endif
_menuIndex++;
break;
cas... | 22.903226 | 76 | 0.502817 | xterminal86 |
f1348e23b43449e6f2b4045f3dc77a9ced526ee4 | 14,059 | cpp | C++ | src/plugins/gridftp/gridftp_io.cpp | adevress/gfal2 | ce8945d1c153e26c5d10ad43d1940b8dcace0579 | [
"Apache-2.0"
] | null | null | null | src/plugins/gridftp/gridftp_io.cpp | adevress/gfal2 | ce8945d1c153e26c5d10ad43d1940b8dcace0579 | [
"Apache-2.0"
] | null | null | null | src/plugins/gridftp/gridftp_io.cpp | adevress/gfal2 | ce8945d1c153e26c5d10ad43d1940b8dcace0579 | [
"Apache-2.0"
] | 1 | 2020-04-28T09:36:46.000Z | 2020-04-28T09:36:46.000Z | /*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distri... | 35.235589 | 122 | 0.682765 | adevress |
f13522d57254a5b58634b44323cc9994427566dd | 867 | cpp | C++ | example/tri/test1.cpp | TM-MT/CubeZ | 4df0cd3d068a0344e20fceec0a900d8f252b8f08 | [
"BSD-2-Clause"
] | null | null | null | example/tri/test1.cpp | TM-MT/CubeZ | 4df0cd3d068a0344e20fceec0a900d8f252b8f08 | [
"BSD-2-Clause"
] | null | null | null | example/tri/test1.cpp | TM-MT/CubeZ | 4df0cd3d068a0344e20fceec0a900d8f252b8f08 | [
"BSD-2-Clause"
] | null | null | null | /*
###################################################################################
#
# CubeZ
#
# Copyright (C) 2018-2020 Research Institute for Information Technology(RIIT), Kyushu University.
# All rights reserved.
#
###################################################################################
*/
// @file ... | 19.266667 | 97 | 0.387543 | TM-MT |
f13db78edf8f6c4ecc97fd700a740587dcb7bd5d | 310 | hpp | C++ | include/BottomMap.hpp | mariohackandglitch/YAMKC_3DS | aed7d9b1d714b13391ebb40377c4ac36892ab82f | [
"RSA-MD"
] | 12 | 2021-05-13T12:47:25.000Z | 2021-05-30T19:22:43.000Z | include/BottomMap.hpp | mariohackandglitch/YAMKC_3DS | aed7d9b1d714b13391ebb40377c4ac36892ab82f | [
"RSA-MD"
] | null | null | null | include/BottomMap.hpp | mariohackandglitch/YAMKC_3DS | aed7d9b1d714b13391ebb40377c4ac36892ab82f | [
"RSA-MD"
] | null | null | null | #include "Texture.hpp"
#include "Plane.hpp"
#include "citro3d.h"
class BottomMap
{
public:
BottomMap();
~BottomMap();
void Draw(const Vector3& kartPos, const Angle& rotation);
private:
float posMinX, posMaxZ, posMaxX, posMinZ;
Plane backPlane;
Plane mapPlane;
Plane charaPlane;
};
| 18.235294 | 61 | 0.683871 | mariohackandglitch |
f13e4d8f9df28d2580effa0e4d3b3094d990e9ea | 8,196 | cpp | C++ | src/database/vtk/generated/SoVtkPolyDataMapper.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/database/vtk/generated/SoVtkPolyDataMapper.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/database/vtk/generated/SoVtkPolyDataMapper.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
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.... | 26.353698 | 97 | 0.753782 | OpenXIP |
f1444a74a1090379ebadeb557edb41834ae75456 | 4,713 | cpp | C++ | source/illaTest/test_rotatefixed.cpp | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 73 | 2015-01-19T17:38:26.000Z | 2022-02-15T06:16:08.000Z | source/illaTest/test_rotatefixed.cpp | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 75 | 2015-01-01T17:32:24.000Z | 2018-10-18T08:19:08.000Z | source/illaTest/test_rotatefixed.cpp | poppeman/Pictus | 0e58285b89292d0b221ab4d09911ef439711cc59 | [
"MIT"
] | 18 | 2015-01-05T04:57:18.000Z | 2022-03-06T01:35:10.000Z | #include <UnitTest++/UnitTest++.h>
#include "share_filterbuffer.h"
using namespace Filter;
using Geom::RectInt;
using Geom::PointInt;
using Geom::SizeInt;
using namespace Tst;
SUITE(Filters_RotateFixed)
{
TEST_FIXTURE(ReferenceRotationFixture, Empty_Target)
{
m_bufferDestination.filterBuffer.BufferData = 0;
CHE... | 37.404762 | 194 | 0.781456 | poppeman |
f147cf97cdc6e4b54887364c3239627588d71a11 | 2,098 | hpp | C++ | examples/ma_echo_server_core/include/ma/echo/server/session_manager_config.hpp | eliaskousk/asio_samples | 5b060733b68ef855f48c1c41c71a531731c337dc | [
"BSL-1.0"
] | 238 | 2015-01-14T16:44:44.000Z | 2022-03-31T13:42:36.000Z | examples/ma_echo_server_core/include/ma/echo/server/session_manager_config.hpp | eliaskousk/asio_samples | 5b060733b68ef855f48c1c41c71a531731c337dc | [
"BSL-1.0"
] | 64 | 2016-04-06T10:52:37.000Z | 2021-04-13T16:17:37.000Z | examples/ma_echo_server_core/include/ma/echo/server/session_manager_config.hpp | eliaskousk/asio_samples | 5b060733b68ef855f48c1c41c71a531731c337dc | [
"BSL-1.0"
] | 67 | 2015-02-16T03:05:31.000Z | 2021-12-19T22:25:11.000Z | //
// Copyright (c) 2010-2015 Marat Abrarov (abrarov@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MA_ECHO_SERVER_SESSION_MANAGER_CONFIG_HPP
#define MA_ECHO_SERVER_SESSION_MANAGER_CONFIG_HPP
#if... | 30.405797 | 79 | 0.77693 | eliaskousk |
f14d613ae014723ab013b69b74c02d25bf0fd489 | 1,423 | cpp | C++ | AROGSBP/ARGOS_BP_SW/VSCODE/ARGOS_BP.cpp | EIDOSDATA/Argos_Main_Series | 2d6e4839afa7bd05d3b87fb530481bdf5eeac31a | [
"Unlicense"
] | null | null | null | AROGSBP/ARGOS_BP_SW/VSCODE/ARGOS_BP.cpp | EIDOSDATA/Argos_Main_Series | 2d6e4839afa7bd05d3b87fb530481bdf5eeac31a | [
"Unlicense"
] | null | null | null | AROGSBP/ARGOS_BP_SW/VSCODE/ARGOS_BP.cpp | EIDOSDATA/Argos_Main_Series | 2d6e4839afa7bd05d3b87fb530481bdf5eeac31a | [
"Unlicense"
] | null | null | null | /*
* README.
* CDS[0] >> CAM0 >> FRONT CAM
* CDS[1] >> CAM1 >> LEFT CAM
* CDS[2] >> CAM2 >> RIGHT CAM
* CDS[3] >> CAM3 >> BACK CAM
*/
#include "Serial/serial.h"
#include "CameraDSLR/CameraDSLR.h"
#include "CameraDSLR/photo.h"
#include "ARGOS_BP.h"
#define A6000_STOREGE "/store_00020001/DCIM"
#define BOARD_PORT "/... | 26.351852 | 91 | 0.473647 | EIDOSDATA |
f15301f84cf314b347529c6d9cc43a2a0f4e6fd4 | 2,530 | cc | C++ | sys/arch/x86/x86/ports.cc | NeoBSD/tunix | 5ad8d4087a987140b6a7ec24402e5f0f6907b332 | [
"BSD-2-Clause"
] | null | null | null | sys/arch/x86/x86/ports.cc | NeoBSD/tunix | 5ad8d4087a987140b6a7ec24402e5f0f6907b332 | [
"BSD-2-Clause"
] | null | null | null | sys/arch/x86/x86/ports.cc | NeoBSD/tunix | 5ad8d4087a987140b6a7ec24402e5f0f6907b332 | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (c) 2021, Tobias Hienzsch
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of con... | 36.142857 | 80 | 0.706719 | NeoBSD |
f15535398ccd02b698a649a9b1c7a35760d787da | 1,028 | cpp | C++ | CPP/Array/ArraySum.cpp | AvanishCodes/CodingTemplates | 67827e7c82f44adb4bd0f68fcaf89e9d7e09d2ce | [
"MIT"
] | 1 | 2022-01-02T16:37:03.000Z | 2022-01-02T16:37:03.000Z | CPP/Array/ArraySum.cpp | AvanishCodes/CodingTemplates | 67827e7c82f44adb4bd0f68fcaf89e9d7e09d2ce | [
"MIT"
] | null | null | null | CPP/Array/ArraySum.cpp | AvanishCodes/CodingTemplates | 67827e7c82f44adb4bd0f68fcaf89e9d7e09d2ce | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#define VI vector<int>
#define fn for (int i = 0; i < n; i++)
using namespace std;
// FUnction to calculate sum of elements in an array
int calculateArraySum(VI a)
{
int sum = 0;
// Method 1: Naive method
// for (int i = 0; i < a.size(); i++)
// sum += a[i];
// Method ... | 23.363636 | 75 | 0.547665 | AvanishCodes |
f15727f67e44f427ffc00f5272810874f2019544 | 920,956 | cpp | C++ | example/unity/DemoApp/iii_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/UnityEngine.TextCoreTextEngineModule1.cpp | Augmented-Future/flutter-unity-view-widget | b7036974249ff5e5a26fed3fc85167c607775a49 | [
"MIT"
] | null | null | null | example/unity/DemoApp/iii_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/UnityEngine.TextCoreTextEngineModule1.cpp | Augmented-Future/flutter-unity-view-widget | b7036974249ff5e5a26fed3fc85167c607775a49 | [
"MIT"
] | null | null | null | example/unity/DemoApp/iii_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/UnityEngine.TextCoreTextEngineModule1.cpp | Augmented-Future/flutter-unity-view-widget | b7036974249ff5e5a26fed3fc85167c607775a49 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
template <typename R>
struct VirtualFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const V... | 41.945527 | 657 | 0.811341 | Augmented-Future |
f157d5db046a13772076db868005c95becfc0f1e | 3,675 | cpp | C++ | platforms/android/android_input.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | 1 | 2020-01-24T01:14:04.000Z | 2020-01-24T01:14:04.000Z | platforms/android/android_input.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | null | null | null | platforms/android/android_input.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | 1 | 2020-06-05T07:00:16.000Z | 2020-06-05T07:00:16.000Z | /*
* Copyright 2019 Julian Haldenby
*
* 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... | 43.75 | 133 | 0.657687 | canuc |
f15a7061b91ce75ef1c4b5744a0b69be13147327 | 573 | hpp | C++ | Templates/Cadenas.hpp | monicastle/C_PDC7 | f9e416028ac61be4e1488be04c4ada8b5f87ba87 | [
"MIT"
] | null | null | null | Templates/Cadenas.hpp | monicastle/C_PDC7 | f9e416028ac61be4e1488be04c4ada8b5f87ba87 | [
"MIT"
] | null | null | null | Templates/Cadenas.hpp | monicastle/C_PDC7 | f9e416028ac61be4e1488be04c4ada8b5f87ba87 | [
"MIT"
] | null | null | null | #include "Pila.hpp"
#include <iostream>
#include <string>
using namespace std;
void Cadenas(){
Pila <string> stringPila;
const size_t stringPilaTam = 10;
cout << "\n--> Insertar elementos en stringPila \n";
for (size_t i = 0; i < stringPilaTam; i++){
string stringTemp = "C++" + to_string(i);
... | 30.157895 | 56 | 0.595113 | monicastle |
f15ae7c43a38d5b7cae2102a096f944755889b1c | 1,043 | hpp | C++ | src/cbparallel/thread/cbthreadpool.hpp | CBraun94/computervision_parallelism | a20126435fbf3eccf7a8fcb517016dfa04e9944a | [
"MIT"
] | null | null | null | src/cbparallel/thread/cbthreadpool.hpp | CBraun94/computervision_parallelism | a20126435fbf3eccf7a8fcb517016dfa04e9944a | [
"MIT"
] | null | null | null | src/cbparallel/thread/cbthreadpool.hpp | CBraun94/computervision_parallelism | a20126435fbf3eccf7a8fcb517016dfa04e9944a | [
"MIT"
] | null | null | null | #ifndef CBTHREADPOOL_HPP_INCLUDED
#define CBTHREADPOOL_HPP_INCLUDED
#include "cbpoolworker.hpp"
#include "../task/cbtask.hpp"
#include "../task/cbtaskanonymous.hpp"
#include "../sync/semaphoreposix.hpp"
#include "../sync/eventposix.hpp"
#include <vector>
#include <queue>
#include <memory>
class CBThread... | 22.673913 | 67 | 0.641419 | CBraun94 |
f15b3603abd1b092677388892f2384e53d1dc956 | 132 | hpp | C++ | include/debug.hpp | echo-Mike/SARW-UEFITreeBuilder | e4ab988b1dedf6dce20341ff80f3c6bbdc83e7e6 | [
"MIT"
] | null | null | null | include/debug.hpp | echo-Mike/SARW-UEFITreeBuilder | e4ab988b1dedf6dce20341ff80f3c6bbdc83e7e6 | [
"MIT"
] | null | null | null | include/debug.hpp | echo-Mike/SARW-UEFITreeBuilder | e4ab988b1dedf6dce20341ff80f3c6bbdc83e7e6 | [
"MIT"
] | null | null | null | #define DEBUG_LIB_FILE_LOG
#define DEBUG_LIB_LOG_FILE_NAME "UEFITB_worklog.txt"
//#define DEBUG_LIB_LOG_THREAD_SAFETY
//#undef DEBUG | 33 | 52 | 0.856061 | echo-Mike |
f16393e134bfd28189ab96206b6d998d3ab2a9b2 | 1,234 | hpp | C++ | tests/gtest-output.hpp | damercer/libsmu | 6f141ea37a0778299ad1771cc9385fef14010bc0 | [
"BSD-3-Clause"
] | 30 | 2015-03-28T23:19:54.000Z | 2022-03-08T14:44:36.000Z | tests/gtest-output.hpp | damercer/libsmu | 6f141ea37a0778299ad1771cc9385fef14010bc0 | [
"BSD-3-Clause"
] | 147 | 2015-03-06T18:37:11.000Z | 2022-03-28T08:26:47.000Z | tests/gtest-output.hpp | damercer/libsmu | 6f141ea37a0778299ad1771cc9385fef14010bc0 | [
"BSD-3-Clause"
] | 26 | 2015-03-14T06:04:17.000Z | 2022-03-12T16:37:48.000Z | // Custom output for the google test framework.
//
// Use PRINTF() where printf() would be used and TEST_COUT where cout would be
// used in order to match regular gtest output for custom status messages.
#include <gtest/gtest.h>
#include <stdarg.h>
enum GTestColor {
COLOR_DEFAULT,
COLOR_RED,
COLOR_GREEN,
COLOR_... | 22.035714 | 123 | 0.686386 | damercer |
f165a10dbf7fff86b476f31df4892ca94e6d99da | 2,519 | cpp | C++ | fb/element_swapping.cpp | jennygaz/competitive | 2807b0fbd2eaaca8ba618f03b1e62c0241849e6c | [
"MIT"
] | null | null | null | fb/element_swapping.cpp | jennygaz/competitive | 2807b0fbd2eaaca8ba618f03b1e62c0241849e6c | [
"MIT"
] | null | null | null | fb/element_swapping.cpp | jennygaz/competitive | 2807b0fbd2eaaca8ba618f03b1e62c0241849e6c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
// Add any extra import statements you may need here
using namespace std;
// Add any helper functions you may need here
inline int find_min_from_to( vector<int>& cont, int dist, int from ){
int idx = -1, min_val = 1000100;
int max_it = min( (int)cont.size(), from + dist );
for( int i = ... | 23.764151 | 89 | 0.568083 | jennygaz |
f16701c736df4f0e1777b096298030a428cbc4b4 | 311 | cpp | C++ | two-sum-ii-input-array-is-sorted.cpp | AyoubEd/leetcode | 9875bd9eb14849e364e3a5458fd6bef8829a892b | [
"RSA-MD"
] | 3 | 2020-04-23T01:15:11.000Z | 2020-09-08T23:15:16.000Z | two-sum-ii-input-array-is-sorted.cpp | AyoubEd/leetcode | 9875bd9eb14849e364e3a5458fd6bef8829a892b | [
"RSA-MD"
] | null | null | null | two-sum-ii-input-array-is-sorted.cpp | AyoubEd/leetcode | 9875bd9eb14849e364e3a5458fd6bef8829a892b | [
"RSA-MD"
] | null | null | null | class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
int i=0, j=nums.size()-1, d;
while(i<j){
d = nums[i]+nums[j];
if(d==target) return {i+1, j+1};
else if(d<target) i++;
else j--;
}
return {};
}
};
| 22.214286 | 55 | 0.430868 | AyoubEd |
f169916389aa4b18ea55658358e05baf492caec3 | 360 | cpp | C++ | RuntimeConceptIdiom/DrawableObject.cpp | vladbologa/experiments | 8adda4ffe7f74ebcef0c4566831dcfa680581758 | [
"MIT"
] | null | null | null | RuntimeConceptIdiom/DrawableObject.cpp | vladbologa/experiments | 8adda4ffe7f74ebcef0c4566831dcfa680581758 | [
"MIT"
] | null | null | null | RuntimeConceptIdiom/DrawableObject.cpp | vladbologa/experiments | 8adda4ffe7f74ebcef0c4566831dcfa680581758 | [
"MIT"
] | null | null | null | #include "DrawableObject.h"
DrawableObject::DrawableObject(const Id& id, const Position& position)
: id_(id)
, position_(position)
{
}
void DrawableObject::setPosition(const Position& position)
{
position_ = position;
}
Position DrawableObject::getPosition() const
{
return position_;
}
Id DrawableOb... | 15.652174 | 70 | 0.713889 | vladbologa |
f16a75fc01e9e3bf0f233e3a0ad411981332ceca | 2,296 | cpp | C++ | src/BedHighCoverage/main.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | 85 | 2016-04-26T17:24:20.000Z | 2022-03-11T12:33:39.000Z | src/BedHighCoverage/main.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | 104 | 2016-08-09T22:18:32.000Z | 2022-03-31T12:39:12.000Z | src/BedHighCoverage/main.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | 28 | 2016-05-10T14:34:20.000Z | 2021-10-14T07:22:39.000Z | #include "BedFile.h"
#include "ToolBase.h"
#include "Statistics.h"
#include "Exceptions.h"
#include <QFileInfo>
class ConcreteTool
: public ToolBase
{
Q_OBJECT
public:
ConcreteTool(int& argc, char *argv[])
: ToolBase(argc, argv)
{
}
virtual void setup()
{
setDescription("Detects high-coverage regions fro... | 30.613333 | 145 | 0.64547 | BeneKenobi |
f16c83f7899b43fd9ebdf6cd6417c6f05c97c3a0 | 337 | cc | C++ | src/Addons/Channels/ChangingErrorChannel/ChangingErrorChannel.cc | kaleal/RINA | b1cec2a1f6dff4bbf95a967350cd4d533833a1d0 | [
"MIT"
] | null | null | null | src/Addons/Channels/ChangingErrorChannel/ChangingErrorChannel.cc | kaleal/RINA | b1cec2a1f6dff4bbf95a967350cd4d533833a1d0 | [
"MIT"
] | null | null | null | src/Addons/Channels/ChangingErrorChannel/ChangingErrorChannel.cc | kaleal/RINA | b1cec2a1f6dff4bbf95a967350cd4d533833a1d0 | [
"MIT"
] | null | null | null | #include "ChangingErrorChannel.h"
#include "ChangerErrorChannel.h"
Define_Channel(ChangingErrorChannel);
ChangingErrorChannel::ChangingErrorChannel() : cDatarateChannel() { }
void ChangingErrorChannel::initialize() {
cDatarateChannel::initialize();
ChangerErrorChannel::registerChannel(this, par("name").stdst... | 25.923077 | 77 | 0.783383 | kaleal |
f173b723e5c684674d74f13d3bff498c837c186c | 3,896 | cpp | C++ | src/hhcc_move_camera_controller.cpp | butia-bots/tmc_gazebo_task_evaluators | 5dff17eddb15678565727a5fbd23d5fa30260f9f | [
"BSD-3-Clause-Clear"
] | null | null | null | src/hhcc_move_camera_controller.cpp | butia-bots/tmc_gazebo_task_evaluators | 5dff17eddb15678565727a5fbd23d5fa30260f9f | [
"BSD-3-Clause-Clear"
] | 3 | 2020-12-14T09:10:48.000Z | 2021-06-22T11:44:33.000Z | src/hhcc_move_camera_controller.cpp | butia-bots/tmc_gazebo_task_evaluators | 5dff17eddb15678565727a5fbd23d5fa30260f9f | [
"BSD-3-Clause-Clear"
] | 3 | 2021-02-09T07:27:25.000Z | 2021-04-18T15:16:37.000Z | /*
Copyright (c) 2019 TOYOTA MOTOR CORPORATION
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted (subject to the limitations in the disclaimer
below) provided that the following conditions are met:
* Redistributions of source code must retain the above... | 38.96 | 110 | 0.73999 | butia-bots |
f1823cd19b4682eabf1854cae1cf012c382341a9 | 1,297 | hpp | C++ | 03/rectangle_cover.hpp | ComicSansMS/AdventOfCode2018 | 936ebf5dad7a0317ed3db0f58a16d88c4a00eabb | [
"Unlicense"
] | null | null | null | 03/rectangle_cover.hpp | ComicSansMS/AdventOfCode2018 | 936ebf5dad7a0317ed3db0f58a16d88c4a00eabb | [
"Unlicense"
] | null | null | null | 03/rectangle_cover.hpp | ComicSansMS/AdventOfCode2018 | 936ebf5dad7a0317ed3db0f58a16d88c4a00eabb | [
"Unlicense"
] | null | null | null | #ifndef ADVENT_OF_CODE_03_RECTANGLE_COVER_HPP_INCLUDE_GUARD
#define ADVENT_OF_CODE_03_RECTANGLE_COVER_HPP_INCLUDE_GUARD
#include <ostream>
#include <string_view>
#include <vector>
struct Rectangle {
int left;
int top;
int width;
int height;
Rectangle(int l, int t, int w, int h);
};
bool operator... | 23.160714 | 70 | 0.72552 | ComicSansMS |
f186566738cef3bb6a93bbc4302c2c312c513589 | 6,552 | cpp | C++ | libs/vision/src/pnp/so3.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/vision/src/pnp/so3.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/vision/src/pnp/so3.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 1 | 2021-08-16T11:50:47.000Z | 2021-08-16T11:50:47.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... | 26.313253 | 140 | 0.492369 | yhexie |
f187dc8398db8327907d343b01fd21f8def89824 | 3,905 | cc | C++ | 63/main.cc | buyno/CodingInterview2 | 9765010e3e8aa96df5cc0456f616fd764a4385a8 | [
"Apache-2.0"
] | null | null | null | 63/main.cc | buyno/CodingInterview2 | 9765010e3e8aa96df5cc0456f616fd764a4385a8 | [
"Apache-2.0"
] | null | null | null | 63/main.cc | buyno/CodingInterview2 | 9765010e3e8aa96df5cc0456f616fd764a4385a8 | [
"Apache-2.0"
] | null | null | null | // 股票的最大利润
// 1)暴力 O(n*n)
// 2) 求n-1个数字中的最小值,则n位的数字对应的最大利润就是与n-1中最小值的差值。O(n)
#include <stdio.h>
#include <assert.h>
int getMaxProfit_1(int *data, int length, int &maxprofit, int &startvalue, int &endvalue)
{
if (data == nullptr || length < 2)
{
return 0;
}
maxprofit = data[1] - data[0];
in... | 25.690789 | 89 | 0.501408 | buyno |
f18cd05d6653f857ac6a49688eebece3226d326a | 601 | cpp | C++ | orlodrimbot/bot_requests_archiver/bot_requests_archiver.cpp | orlodrim/orlodrimbot | 7d66e4e29d31338e394c8cb90aaad5d0f76ee4b3 | [
"MIT"
] | 2 | 2020-12-14T17:42:36.000Z | 2021-01-27T22:15:15.000Z | orlodrimbot/bot_requests_archiver/bot_requests_archiver.cpp | orlodrim/orlodrimbot | 7d66e4e29d31338e394c8cb90aaad5d0f76ee4b3 | [
"MIT"
] | null | null | null | orlodrimbot/bot_requests_archiver/bot_requests_archiver.cpp | orlodrim/orlodrimbot | 7d66e4e29d31338e394c8cb90aaad5d0f76ee4b3 | [
"MIT"
] | 1 | 2021-01-03T18:20:53.000Z | 2021-01-03T18:20:53.000Z | // Archive requests on https://fr.wikipedia.org/wiki/Wikipédia:Bot/Requêtes
#include "cbl/args_parser.h"
#include "mwclient/util/init_wiki.h"
#include "mwclient/wiki.h"
#include "bot_requests_archiver_lib.h"
int main(int argc, char** argv) {
mwc::WikiFlags wikiFlags(mwc::FRENCH_WIKIPEDIA_BOT);
bool dryRun = false;... | 33.388889 | 97 | 0.742097 | orlodrim |
f1944514ca1b9912842a9ecc95133b76a8cbd501 | 999 | cpp | C++ | interleave.cpp | arushs/Data-Structures-Algorithms | b1039106560ddb930742ccc56fe8194e15082fa9 | [
"MIT"
] | null | null | null | interleave.cpp | arushs/Data-Structures-Algorithms | b1039106560ddb930742ccc56fe8194e15082fa9 | [
"MIT"
] | null | null | null | interleave.cpp | arushs/Data-Structures-Algorithms | b1039106560ddb930742ccc56fe8194e15082fa9 | [
"MIT"
] | 1 | 2020-10-01T12:18:32.000Z | 2020-10-01T12:18:32.000Z | /*
* SumSquares.cpp
*
* purpose: To find the total sum of the squares of the numbers from 1 to n
* n is a user-inputted number
*
*
* @author Arush Shankar
* @version 1.0 8/01/14
*/
#include <iostream>
#include <stack>
#include <queue>
using namespace std;
int main() {
queue<int> q;
for(int ... | 18.849057 | 75 | 0.424424 | arushs |
f194ebac6f4cec477c7b9a903e2deddbbb5fa317 | 726 | cpp | C++ | 873B/873B.cpp | suzyz/Codeforces | eec03b19dabb9fd2f60e8c53d120d92fb9caa557 | [
"MIT"
] | 1 | 2019-10-07T05:00:29.000Z | 2019-10-07T05:00:29.000Z | 873B/873B.cpp | suzyz/Codeforces | eec03b19dabb9fd2f60e8c53d120d92fb9caa557 | [
"MIT"
] | null | null | null | 873B/873B.cpp | suzyz/Codeforces | eec03b19dabb9fd2f60e8c53d120d92fb9caa557 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <map>
#include <set>
#include <vector>
#include <climits>
#include <iomanip>
using namespace std;
const int maxn = 100010;
int n,diff[maxn];
char s[maxn];
int min_idx[maxn*2 + 10];
int main()
{
scanf("%d",&n);
scanf("%s",s+1);
int sum0 = 0, sum1 =... | 15.125 | 36 | 0.556474 | suzyz |
1af7f494dbef8a5d855fd01f27a019fd0e821f51 | 43,554 | cpp | C++ | SOURCES/sim/bomb/bombmain.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/sim/bomb/bombmain.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/sim/bomb/bombmain.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | #include "Graphics/Include/drawbsp.h"
#include "Graphics/Include/rviewpnt.h"
#include "Graphics/Include/terrtex.h"
#include "stdhdr.h"
#include "bomb.h"
#include "bombdata.h"
#include "falcmesg.h"
#include "otwdrive.h"
#include "initdata.h"
#include "waypoint.h"
#include "object.h"
#include "simdrive.h"
#include "fsoun... | 31.492408 | 184 | 0.647931 | IsraelyFlightSimulator |
1affbd6e56b5851fee869c83cf1e678c9d3cfb70 | 37,186 | hpp | C++ | src/Scripting/SystemPack.hpp | scemino/engge | 3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f | [
"MIT"
] | 127 | 2018-12-09T18:40:02.000Z | 2022-03-06T00:10:07.000Z | src/Scripting/SystemPack.hpp | scemino/engge | 3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f | [
"MIT"
] | 267 | 2019-02-26T22:16:48.000Z | 2022-02-09T09:49:22.000Z | src/Scripting/SystemPack.hpp | scemino/engge | 3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f | [
"MIT"
] | 17 | 2019-02-26T20:45:34.000Z | 2021-06-17T15:06:26.000Z | #pragma once
#include <squirrel.h>
#include "../../extlibs/squirrel/squirrel/sqpcheader.h"
#include "../../extlibs/squirrel/squirrel/sqvm.h"
#include "../../extlibs/squirrel/squirrel/sqstring.h"
#include "../../extlibs/squirrel/squirrel/sqtable.h"
#include "../../extlibs/squirrel/squirrel/sqarray.h"
#include "../../ext... | 30.455364 | 133 | 0.662238 | scemino |
2101892ab21c40fc37c324997eec6e1890e7723d | 420 | cpp | C++ | Kaminec/UI/downloadprogressdialog.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 23 | 2017-06-23T11:58:27.000Z | 2022-03-05T06:58:49.000Z | Kaminec/UI/downloadprogressdialog.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 4 | 2017-12-08T11:41:19.000Z | 2021-04-03T17:50:39.000Z | Kaminec/UI/downloadprogressdialog.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 5 | 2019-02-19T13:03:42.000Z | 2021-11-04T13:58:04.000Z | #include "downloadprogressdialog.h"
#include "ui_downloadprogressdialog.h"
#include "download/Downloader.h"
DownloadProgressDialog::DownloadProgressDialog(QWidget *parent) :
QDialog(parent),
ui_(new Ui::DownloadProgressDialog)
{
Downloader::init(this);
ui_->setupUi(this);
ui_->download_treeView->setModel(Downloa... | 22.105263 | 70 | 0.780952 | kaniol-lck |
2101990fd065acffab630677125b2bc8cb5fe0ee | 43,538 | inl | C++ | include/Core/CastorUtils/Graphics/PixelFormat.inl | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 245 | 2015-10-29T14:31:45.000Z | 2022-03-31T13:04:45.000Z | include/Core/CastorUtils/Graphics/PixelFormat.inl | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 64 | 2016-03-11T19:45:05.000Z | 2022-03-31T23:58:33.000Z | include/Core/CastorUtils/Graphics/PixelFormat.inl | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 11 | 2018-05-24T09:07:43.000Z | 2022-03-21T21:05:20.000Z | /*
See LICENSE file in root folder
*/
namespace castor
{
template<> struct IsColourFormat< PixelFormat::eUNDEFINED > : public std::false_type {};
template<> struct IsColourFormat< PixelFormat::eD16_UNORM > : public std::false_type {};
template<> struct IsColourFormat< PixelFormat::eX8_D24_UNORM > : public std::false... | 48.591518 | 103 | 0.744086 | DragonJoker |
210621fd353b5ea3c3b547e0370df24eb9e42996 | 3,072 | cpp | C++ | test/views/join_view.cpp | cjdb/NanoRange | 16d33c66c7869e57dd82ff8673eb5172eff1343d | [
"BSL-1.0"
] | 323 | 2017-10-09T19:46:26.000Z | 2022-03-29T10:44:07.000Z | test/views/join_view.cpp | cjdb/NanoRange | 16d33c66c7869e57dd82ff8673eb5172eff1343d | [
"BSL-1.0"
] | 66 | 2018-05-30T23:54:56.000Z | 2021-03-26T00:20:57.000Z | test/views/join_view.cpp | cjdb/NanoRange | 16d33c66c7869e57dd82ff8673eb5172eff1343d | [
"BSL-1.0"
] | 26 | 2018-06-08T14:01:20.000Z | 2022-02-17T13:31:47.000Z | // cmcstl2 - A concept-enabled C++ standard library
//
// Copyright Casey Carter 2016
//
// Use, modification and distribution is subject to 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)
//
// Project home: https://github.c... | 32 | 75 | 0.690755 | cjdb |
210d76c7e8597faf01bf3b801e610030a7462797 | 288 | cpp | C++ | Pbinfo/Factorial2.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/Factorial2.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/Factorial2.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <iostream>
using namespace std;
int det(int n){
int rez=1, k=1, prec;
while(rez<=n){
prec=rez;
rez=rez*k;
k++;
}
if(n-prec<=rez-n) return prec;
return rez;
}
int main()
{
int n;
cin>>n;
cout<<det(n);
return 0;
}
| 10.666667 | 34 | 0.482639 | Al3x76 |
210ff1d18230b2f4ea1a78ef193e3bc65157b212 | 1,921 | cpp | C++ | 05-Thresholding-AOT/threshold.cpp | booleangabs/Halide | b1ff2d23f1bcffde753759891ce1b45c4efaa4e0 | [
"MIT"
] | null | null | null | 05-Thresholding-AOT/threshold.cpp | booleangabs/Halide | b1ff2d23f1bcffde753759891ce1b45c4efaa4e0 | [
"MIT"
] | null | null | null | 05-Thresholding-AOT/threshold.cpp | booleangabs/Halide | b1ff2d23f1bcffde753759891ce1b45c4efaa4e0 | [
"MIT"
] | null | null | null | /*
g++ -fno-rtti -std=c++17 threshold.cpp -o threshold -I$HALIDE_ROOT/include \
-I$HALIDE_ROOT/tools -Iinclude -L$HALIDE_ROOT/lib -lHalide -lz -ldl \
-lpthread
*/
#include <iostream>
#include <fstream>
#include "Halide.h"
#include "constants.hpp"
using namespace Halide;
using namespace Halide::ConciseCasts;
u... | 36.245283 | 88 | 0.665799 | booleangabs |
21117033d5fef57bbd906d3404b64bc228f2f882 | 29,693 | cpp | C++ | test/test_arrayView.cpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 18 | 2016-05-30T23:46:27.000Z | 2022-01-11T18:20:28.000Z | test/test_arrayView.cpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 4 | 2017-09-12T13:32:28.000Z | 2019-10-21T10:36:18.000Z | test/test_arrayView.cpp | abbyssoul/libsolace | 390c3094af1837715787c33297720bf514f04710 | [
"Apache-2.0"
] | 5 | 2017-11-24T19:34:06.000Z | 2019-10-18T14:24:12.000Z | /*
* Copyright 2016 Ivan Ryabov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 29.428147 | 107 | 0.600815 | abbyssoul |
211330ec98d24dc742e50b6e762222b91edaeb1f | 35,409 | cpp | C++ | image/morton.cpp | embree/embree-benchmark-protoray | c495b85cfe1ac66c0addc0f38245149b82a32c77 | [
"Apache-2.0"
] | 9 | 2017-10-09T12:53:17.000Z | 2021-12-07T00:12:12.000Z | image/morton.cpp | embree/embree-benchmark-protoray | c495b85cfe1ac66c0addc0f38245149b82a32c77 | [
"Apache-2.0"
] | 2 | 2018-01-20T15:32:05.000Z | 2019-02-24T19:43:35.000Z | image/morton.cpp | embree/embree-benchmark-protoray | c495b85cfe1ac66c0addc0f38245149b82a32c77 | [
"Apache-2.0"
] | 3 | 2017-07-31T21:54:48.000Z | 2019-02-24T19:45:31.000Z | // ======================================================================== //
// Copyright 2015-2018 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 123.376307 | 132 | 0.442656 | embree |
2120173a0587f287a761b9ae9adf0ca7b7269042 | 4,339 | cpp | C++ | TuranEditor/EditorSource/FileSystem/EditorFileSystem_Core.cpp | furkanxdgs4/TuranEngine | 77e71fc4075d7cf1648dc73981088abb36a920d1 | [
"Apache-2.0"
] | 6 | 2020-05-01T16:26:27.000Z | 2021-10-05T02:39:41.000Z | TuranEditor/EditorSource/FileSystem/EditorFileSystem_Core.cpp | furkanxdgs4/TuranEngine | 77e71fc4075d7cf1648dc73981088abb36a920d1 | [
"Apache-2.0"
] | null | null | null | TuranEditor/EditorSource/FileSystem/EditorFileSystem_Core.cpp | furkanxdgs4/TuranEngine | 77e71fc4075d7cf1648dc73981088abb36a920d1 | [
"Apache-2.0"
] | null | null | null | #include "EditorFileSystem_Core.h"
#include "TuranAPI/Profiler/Profiler_Core.h"
//Data Formats created by Flatbuffers!
#include <flatbuffers/flatbuffers.h>
#include "TuranAPI/FileSystem/DataFormats/GameResource_generated.h"
using namespace Editor::File_System;
using namespace TuranAPI::File_System;
const char* GameCon... | 38.39823 | 145 | 0.790966 | furkanxdgs4 |
2121c46ac61de34534dca43cefe84886632e3b30 | 16,224 | cpp | C++ | eraepub/src/FootnotesPrinter.cpp | Mimars-Project/OpenReadEra-20.03.26 | 8db0c096e681947d02fa15c3eaa283e389ccf8a9 | [
"FTL"
] | null | null | null | eraepub/src/FootnotesPrinter.cpp | Mimars-Project/OpenReadEra-20.03.26 | 8db0c096e681947d02fa15c3eaa283e389ccf8a9 | [
"FTL"
] | null | null | null | eraepub/src/FootnotesPrinter.cpp | Mimars-Project/OpenReadEra-20.03.26 | 8db0c096e681947d02fa15c3eaa283e389ccf8a9 | [
"FTL"
] | 1 | 2021-07-21T07:50:33.000Z | 2021-07-21T07:50:33.000Z | /*
* Copyright (C) 2013-2020 READERA LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
*... | 29.605839 | 127 | 0.503328 | Mimars-Project |
212ee4a8edde606e2c5074049224af2b097d3d9b | 631 | cpp | C++ | Source/Cars/Game/CarsPlayerController.cpp | xxzivadxx/Cars | 60384193b10322e57af1f5ac4706c92b679b06d6 | [
"MIT"
] | null | null | null | Source/Cars/Game/CarsPlayerController.cpp | xxzivadxx/Cars | 60384193b10322e57af1f5ac4706c92b679b06d6 | [
"MIT"
] | null | null | null | Source/Cars/Game/CarsPlayerController.cpp | xxzivadxx/Cars | 60384193b10322e57af1f5ac4706c92b679b06d6 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "CarsPlayerController.h"
#include "Game/GameCamera.h"
#include "Game/Car.h"
ACarsPlayerController::ACarsPlayerController(const class FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
bAutoManageActiveCameraTar... | 23.37037 | 122 | 0.762282 | xxzivadxx |
212efb08704ef9afac4077650f6db5106e9d82ab | 6,806 | hpp | C++ | src/infer/adaptive.hpp | divad-nhok/obsidian_fork | e5bee2b706f78249564f06c88a18be086b17c895 | [
"MIT"
] | 2 | 2021-03-08T16:28:45.000Z | 2022-03-04T14:55:59.000Z | src/infer/adaptive.hpp | divad-nhok/obsidian_fork | e5bee2b706f78249564f06c88a18be086b17c895 | [
"MIT"
] | 1 | 2018-08-16T00:46:58.000Z | 2018-08-16T00:46:58.000Z | src/infer/adaptive.hpp | divad-nhok/obsidian_fork | e5bee2b706f78249564f06c88a18be086b17c895 | [
"MIT"
] | 2 | 2018-02-26T01:03:13.000Z | 2021-02-01T02:31:37.000Z | //!
//! Contains the implementation of an adaptive proposal function
//!
//! \file infer/adaptive.hpp
//! \author Darren Shen
//! \date 2014
//! \license Affero General Public License version 3 or later
//! \copyright (c) 2014, NICTA
//!
#pragma once
#include <random>
#include <functional>
#include <Eigen/Core>
#incl... | 37.395604 | 115 | 0.633118 | divad-nhok |
2132795b60e847ad22b39936c9b5b4b22d994e71 | 2,638 | cpp | C++ | MircClient/CDialog.cpp | asad82/Network-Messenger | c74c0fb6745925c5008fedeb3e62494718c1fcf6 | [
"MIT"
] | null | null | null | MircClient/CDialog.cpp | asad82/Network-Messenger | c74c0fb6745925c5008fedeb3e62494718c1fcf6 | [
"MIT"
] | null | null | null | MircClient/CDialog.cpp | asad82/Network-Messenger | c74c0fb6745925c5008fedeb3e62494718c1fcf6 | [
"MIT"
] | null | null | null | // CDialog.cpp : implementation file
//
#include "stdafx.h"
#include "Client.h"
#include "CDialog.h"
#include "ClientDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern CClientDlg * m_DlgPtr;
////////////////////////////////////////////////////... | 21.104 | 78 | 0.6558 | asad82 |
213392361655037900037ea9e3a90c1705e97e2b | 1,022 | hpp | C++ | third_party/misc/ArchFP/GridLayout.hpp | jesec/livehd | 1a82dbea1d86dbd1511de588609de320aa4ef6ed | [
"BSD-3-Clause"
] | 115 | 2019-09-28T13:39:41.000Z | 2022-03-24T11:08:53.000Z | third_party/misc/ArchFP/GridLayout.hpp | jesec/livehd | 1a82dbea1d86dbd1511de588609de320aa4ef6ed | [
"BSD-3-Clause"
] | 113 | 2019-10-08T23:51:29.000Z | 2021-12-12T06:47:38.000Z | third_party/misc/ArchFP/GridLayout.hpp | jesec/livehd | 1a82dbea1d86dbd1511de588609de320aa4ef6ed | [
"BSD-3-Clause"
] | 44 | 2019-09-28T07:53:21.000Z | 2022-02-13T23:21:12.000Z | #pragma once
#include "FPContainer.hpp"
#include "floorplan.hpp"
// Here is the simplest possible layout manager.
// It takes a collection of identical objects, and lays them out in a grid.
// It tries to get them into a rectangle as close to the specified aspect ratio.
// TODO Consider adding an aspect ratio layout ... | 40.88 | 118 | 0.727006 | jesec |
2134b008b1fa601d43e6e45916130f9b590e9b86 | 883 | hpp | C++ | src/geometry/include/geometry/trace.hpp | snailbaron/rooms | 03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa | [
"MIT"
] | null | null | null | src/geometry/include/geometry/trace.hpp | snailbaron/rooms | 03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa | [
"MIT"
] | null | null | null | src/geometry/include/geometry/trace.hpp | snailbaron/rooms | 03496c3cd30e2020e1b0f1ad7d96bfba4e000eaa | [
"MIT"
] | null | null | null | #pragma once
#include "geometry/point.hpp"
#include "geometry/vector.hpp"
#include <cmath>
#include <limits>
namespace geometry {
template <class T>
struct TraceResult {
operator bool() const
{
return std::isfinite(distance);
}
T distance;
Vector<T> normal;
};
template <class T>
TraceR... | 21.02381 | 75 | 0.651189 | snailbaron |
2136013c8354c764ffbb5870e1cc9763f2d61d4a | 1,059 | cpp | C++ | 3DCellularAutomaton/ColorGradient.cpp | koldavid/3d-cellular-automaton | 3ab202a7e8447f5cfd6a7f69d13e754bf487ac27 | [
"MIT"
] | 5 | 2020-03-07T10:45:29.000Z | 2021-12-23T14:23:02.000Z | 3DCellularAutomaton/ColorGradient.cpp | koldavid/3d-cellular-automaton | 3ab202a7e8447f5cfd6a7f69d13e754bf487ac27 | [
"MIT"
] | null | null | null | 3DCellularAutomaton/ColorGradient.cpp | koldavid/3d-cellular-automaton | 3ab202a7e8447f5cfd6a7f69d13e754bf487ac27 | [
"MIT"
] | null | null | null | #include "ColorGradient.h"
#include <sstream>
#include <iostream>
ColorGradient::ColorGradient() :
colors({glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::vec3(0.0, 0.0, 0.0),
glm::v... | 18.910714 | 68 | 0.595845 | koldavid |
21433516707287a2907d51afb55ea080ade94ff5 | 341 | cpp | C++ | libvermilion/core/src/Buffer.cpp | Jojojoppe/vermilion | 2bfe545c5f2c02e11d96940c191bac6f6c491843 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | libvermilion/core/src/Buffer.cpp | Jojojoppe/vermilion | 2bfe545c5f2c02e11d96940c191bac6f6c491843 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | libvermilion/core/src/Buffer.cpp | Jojojoppe/vermilion | 2bfe545c5f2c02e11d96940c191bac6f6c491843 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | #include "Buffer.hpp"
Vermilion::Core::BufferLayoutElement::BufferLayoutElement(std::string name, unsigned int count, unsigned int size, bool normalized){
this->name = name;
this->count = count;
this->normalized = normalized;
this->size = size*count;
this->offset = 0;
this->type = BUFFER_LAYOUT... | 34.1 | 132 | 0.709677 | Jojojoppe |
21468b701e4d806c7916a7687c2937c81beb591d | 10,984 | cpp | C++ | code/Networking.cpp | enwi/LED-Christmas-Tree | 77514b5ec41076f4c8c8736006ec10a392835984 | [
"MIT"
] | 5 | 2021-12-01T18:06:32.000Z | 2022-01-04T11:38:21.000Z | code/Networking.cpp | enwi/LED-Christmas-Tree | 77514b5ec41076f4c8c8736006ec10a392835984 | [
"MIT"
] | 6 | 2021-12-23T22:10:37.000Z | 2022-02-01T20:40:32.000Z | code/Networking.cpp | enwi/LED-Christmas-Tree | 77514b5ec41076f4c8c8736006ec10a392835984 | [
"MIT"
] | 3 | 2021-12-12T00:25:37.000Z | 2022-01-04T11:38:26.000Z | #include "Networking.h"
#include "webui/cpp/build.html.gz.h"
void Networking::initWifi()
{
if (isInitialized)
{
DEBUGLN("Wifi already initialized, should not be called again");
return;
}
else if (WiFi.status() == WL_CONNECTED)
{
DEBUGLN("Wifi auto connected");
isIni... | 26.790244 | 119 | 0.635743 | enwi |
21590b42f90ecd23d88b7e8c90e8d0140635eda5 | 3,275 | cpp | C++ | source/XmlReaderErrors.cpp | kitsilanosoftware/UTFXml | 513bc6a5df2d8af88ed6936cf007419bab243797 | [
"BSD-3-Clause"
] | 2 | 2016-11-09T18:45:45.000Z | 2021-11-25T14:19:34.000Z | source/XmlReaderErrors.cpp | kitsilanosoftware/UTFXml | 513bc6a5df2d8af88ed6936cf007419bab243797 | [
"BSD-3-Clause"
] | null | null | null | source/XmlReaderErrors.cpp | kitsilanosoftware/UTFXml | 513bc6a5df2d8af88ed6936cf007419bab243797 | [
"BSD-3-Clause"
] | 2 | 2016-10-22T17:04:12.000Z | 2021-11-25T14:19:36.000Z | /*
Copyright (C) 2009, 2010, 2012 Electronic Arts, Inc. 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 above copyright
notice, this list ... | 33.762887 | 84 | 0.691298 | kitsilanosoftware |
2159a8cf582b5a76a0bb6937cd8a9d59a533f250 | 1,467 | hpp | C++ | include/Hash/Hotp.hpp | rhymu8354/Hash | 35e0ec07343d81dd1ae4e13be168b60b2ad50101 | [
"MIT"
] | null | null | null | include/Hash/Hotp.hpp | rhymu8354/Hash | 35e0ec07343d81dd1ae4e13be168b60b2ad50101 | [
"MIT"
] | null | null | null | include/Hash/Hotp.hpp | rhymu8354/Hash | 35e0ec07343d81dd1ae4e13be168b60b2ad50101 | [
"MIT"
] | null | null | null | #pragma once
/**
* @file Hotp.hpp
*
* This module declares the Hotp function used to generate one-time only
* passwords based on the HMAC (Hash-based Message Authentication Code)
* algorithm.
*
* © 2019 by Richard Walters
*/
#include "Templates.hpp"
#include <stddef.h>
#include <stdint.h>
#include <string>
... | 26.672727 | 78 | 0.633265 | rhymu8354 |
215df0d32d4b4c2fdceb8ca6727b7e3863cca137 | 1,542 | hpp | C++ | src/gpu/vuk/Wrappers/SwapResource.hpp | awwdev/rts | 705a45e654ec48ebcfc9cfe5cef348025b11bccc | [
"MIT"
] | 6 | 2021-02-02T04:26:32.000Z | 2022-01-11T19:00:33.000Z | src/gpu/vuk/Wrappers/SwapResource.hpp | awwdev/rts | 705a45e654ec48ebcfc9cfe5cef348025b11bccc | [
"MIT"
] | 1 | 2021-07-21T15:21:28.000Z | 2021-07-21T15:21:28.000Z | src/gpu/vuk/Wrappers/SwapResource.hpp | awwdev/rts | 705a45e654ec48ebcfc9cfe5cef348025b11bccc | [
"MIT"
] | 1 | 2021-12-27T16:03:45.000Z | 2021-12-27T16:03:45.000Z | #pragma once
#include "gpu/vuk/Context/Context.hpp"
#include "com/Array.hpp"
///////////////////////////////////////////////////////////
namespace rts::gpu::vuk {
///////////////////////////////////////////////////////////
template<typename T>
using SwapResource = com::Array<T, 4>;
///////////////////////////////... | 28.036364 | 91 | 0.466926 | awwdev |
215ee4d345dd008235f82440d116842b74e68c07 | 1,947 | cpp | C++ | SDLOpenGL/src/Cursor.cpp | Exo-Engine/lib-Exo-Renderer | f94c4c27232b76dc31722d2c31817b8a734bd89c | [
"MIT"
] | null | null | null | SDLOpenGL/src/Cursor.cpp | Exo-Engine/lib-Exo-Renderer | f94c4c27232b76dc31722d2c31817b8a734bd89c | [
"MIT"
] | null | null | null | SDLOpenGL/src/Cursor.cpp | Exo-Engine/lib-Exo-Renderer | f94c4c27232b76dc31722d2c31817b8a734bd89c | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Gaëtan Dezeiraud and Ribault Paul
*
* 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... | 32.45 | 176 | 0.744735 | Exo-Engine |
21626439b1844a560c880a58a2414a0311dbba8e | 2,799 | cc | C++ | src/util/mpsc_queue_test.cc | krockot/ipcz | 6a6ebe43c2cb86882b0df9bf888dc5d34037f015 | [
"BSD-3-Clause"
] | null | null | null | src/util/mpsc_queue_test.cc | krockot/ipcz | 6a6ebe43c2cb86882b0df9bf888dc5d34037f015 | [
"BSD-3-Clause"
] | null | null | null | src/util/mpsc_queue_test.cc | krockot/ipcz | 6a6ebe43c2cb86882b0df9bf888dc5d34037f015 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "util/mpsc_queue.h"
#include <cstddef>
#include <cstdint>
#include <memory>
#include <thread>
#include <vector>
#include "testing/gtest/include... | 26.913462 | 80 | 0.694891 | krockot |
216641c06755d4550745aa88b2ed6f8ffe043f5e | 582 | cpp | C++ | main.cpp | alexarse/Words | 7cc01acaa04c5976e0269d24963142e643cdba1b | [
"MIT"
] | null | null | null | main.cpp | alexarse/Words | 7cc01acaa04c5976e0269d24963142e643cdba1b | [
"MIT"
] | 4 | 2018-05-02T14:50:02.000Z | 2018-05-02T14:50:23.000Z | main.cpp | alxarsenault/Words | 7cc01acaa04c5976e0269d24963142e643cdba1b | [
"MIT"
] | 1 | 2017-04-20T19:38:38.000Z | 2017-04-20T19:38:38.000Z | #include <iostream>
#include <string>
#include "CMain.h"
using namespace std;
int main(int argc, char* argv[])
{
m_DEBUG[D_FLOW] << "PROGRAM START" << endl;
CMain cmain;
cmain.init(argc, argv);
CMap* m = cmain.GetMap();
cmain.GetCAnalysis()->PrintSorted(m_DEBUG[D_OUT1]);
ATT_MARKOV_T* markov = (ATT_MARKOV... | 18.774194 | 72 | 0.668385 | alexarse |
2166bcac2e61e6e92a96593e48aca0ac908181a7 | 46 | hpp | C++ | src/boost_type_traits_has_operator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_type_traits_has_operator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_type_traits_has_operator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/type_traits/has_operator.hpp>
| 23 | 45 | 0.826087 | miathedev |
216ec97a45f3c6e720c46c2e1e4aedd02d91cbda | 953 | hpp | C++ | engine/GUI/widgets/RectWidget.hpp | isonil/survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | 1 | 2017-05-12T10:12:41.000Z | 2017-05-12T10:12:41.000Z | engine/GUI/widgets/RectWidget.hpp | isonil/Survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | null | null | null | engine/GUI/widgets/RectWidget.hpp | isonil/Survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | 1 | 2019-01-09T04:05:36.000Z | 2019-01-09T04:05:36.000Z | #ifndef ENGINE_GUI_RECT_WIDGET_HPP
#define ENGINE_GUI_RECT_WIDGET_HPP
#include "Widget.hpp"
#include "../../util/Color.hpp"
#include <memory>
#include <functional>
namespace engine
{
namespace GUI
{
class IGUITexture;
class RectWidget : public Widget
{
public:
RectWidget(WidgetContainer *parent, const std::sh... | 24.435897 | 133 | 0.764953 | isonil |
216f71eca3ebf7033a361a2d71b7cdf950605c22 | 1,251 | cpp | C++ | Engine/ArgumentsParser.cpp | Const-me/MicroScript | 0f0c3c995e1d059114b5e40ea06fdfdea27a1165 | [
"MIT"
] | null | null | null | Engine/ArgumentsParser.cpp | Const-me/MicroScript | 0f0c3c995e1d059114b5e40ea06fdfdea27a1165 | [
"MIT"
] | null | null | null | Engine/ArgumentsParser.cpp | Const-me/MicroScript | 0f0c3c995e1d059114b5e40ea06fdfdea27a1165 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ArgumentsParser.h"
using namespace MicroScript;
HRESULT ArgumentsParser::start()
{
if( nullptr == m_begin )
return E_POINTER;
m_next = m_begin;
CHECK( advanceTo( '(' ) );
m_next++;
return S_OK;
}
HRESULT ArgumentsParser::next( const char** begin, size_t &length )
{
CHECK( advanc... | 18.954545 | 81 | 0.602718 | Const-me |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.