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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
48e36edc18361a47212a20be379d69680f4c4e73 | 2,408 | cpp | C++ | src/color.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/color.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/color.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "lubee/src/compiler_macro.hpp"
#include "color.hpp"
namespace rev {
// ------------ HSVColor ------------
RGBColor HSVColor::toRGB() const noexcept {
RGBColor rgb(z,z,z);
if(y > 0) {
float x6 = x * 6.f;
auto hi = static_cast<int>(std::floor(x6)) % 6;
auto f = x6 - hi;
switch(hi) {
case 0... | 24.824742 | 65 | 0.555233 | degarashi |
48ea41ee8f289d1ba420d087ff2063b8cc5f510d | 8,562 | hpp | C++ | include/length/length.hpp | nzikic/length | e23ef4a7b4774fecb62aed2194529492861562d4 | [
"MIT"
] | null | null | null | include/length/length.hpp | nzikic/length | e23ef4a7b4774fecb62aed2194529492861562d4 | [
"MIT"
] | null | null | null | include/length/length.hpp | nzikic/length | e23ef4a7b4774fecb62aed2194529492861562d4 | [
"MIT"
] | null | null | null | /*********************************************************************************
*
* MIT License
*
* Copyright (c) 2017 Nenad Zikic
*
* 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 Sof... | 44.59375 | 179 | 0.624854 | nzikic |
48f107c4834836bf35f5552c59c950616a7d246d | 1,414 | cpp | C++ | test/test_divers.cpp | tudoroancea/cube-timer | 377ba5247ff1c041eaa044a9b0281ca0f168ecc8 | [
"MIT"
] | 1 | 2021-05-06T17:08:55.000Z | 2021-05-06T17:08:55.000Z | test/test_divers.cpp | tudoroancea/cube-timer | 377ba5247ff1c041eaa044a9b0281ca0f168ecc8 | [
"MIT"
] | null | null | null | test/test_divers.cpp | tudoroancea/cube-timer | 377ba5247ff1c041eaa044a9b0281ca0f168ecc8 | [
"MIT"
] | null | null | null | //
// Created by Tudor Oancea on 13/04/2021.
// Copyright (c) 2021 Tudor Oancea.. All rights reserved.
// Licensed under the MIT licence (see details at https://github.com/tudoroancea/cube-timer/blob/develop/LICENSE)
//
#pragma clang diagnostic push
#pragma ide diagnostic ignored "UnusedParameter"
#include "Duration.... | 32.883721 | 142 | 0.721358 | tudoroancea |
f702ee0bcc31b69ba9beb54ce446a6accbf57f19 | 322 | hpp | C++ | addons/ai/configs/CfgEventHandlers.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | null | null | null | addons/ai/configs/CfgEventHandlers.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | 4 | 2018-12-21T06:57:25.000Z | 2020-07-09T09:06:38.000Z | addons/ai/configs/CfgEventHandlers.hpp | Braincrushy/TBMod | 785f11cd9cd0defb0d01a6d2861beb6c207eb8a3 | [
"MIT"
] | null | null | null | /*
Part of the TBMod ( https://github.com/TacticalBaconDevs/TBMod )
Developed by http://tacticalbacon.de
*/
class Extended_InitPost_EventHandlers
{
#define STAIYIN(CLASSE) class CLASSE { \
init = "(_this # 0) allowCrewInImmobile true";\
}
STAIYIN(Wheeled_APC_F);
STAIYIN(Tank);
}... | 23 | 68 | 0.652174 | Braincrushy |
f7048e298bff0eb8323ff0148d17df4558459f3f | 10,675 | cc | C++ | arcane/src/arcane/datatype/ArrayVariant.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 16 | 2021-09-20T12:37:01.000Z | 2022-03-18T09:19:14.000Z | arcane/src/arcane/datatype/ArrayVariant.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 66 | 2021-09-17T13:49:39.000Z | 2022-03-30T16:24:07.000Z | arcane/src/arcane/datatype/ArrayVariant.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... | 27.583979 | 84 | 0.422951 | cedricga91 |
f7056003e96b86eea74c4fac964e35f63ea50e70 | 2,199 | hpp | C++ | src/windowmanager/WindowEvents.hpp | am-lola/ARVisualizer | b262a0ee5ffb9de1a4ccac16eb5c6b8deacba16d | [
"MIT"
] | 1 | 2018-05-29T07:55:52.000Z | 2018-05-29T07:55:52.000Z | src/windowmanager/WindowEvents.hpp | am-lola/ARVisualizer | b262a0ee5ffb9de1a4ccac16eb5c6b8deacba16d | [
"MIT"
] | null | null | null | src/windowmanager/WindowEvents.hpp | am-lola/ARVisualizer | b262a0ee5ffb9de1a4ccac16eb5c6b8deacba16d | [
"MIT"
] | null | null | null | #ifndef _WINDOWEVENTS_H
#define _WINDOWEVENTS_H
#include "Delegate.hpp"
namespace ar
{
/*
* Provides an abstraction between incoming window input events and
* objects which need to consume them
*/
class WindowEvents
{
public:
// Calls all subscribed handlers for the corresponding events
void NotifyMouseButto... | 40.722222 | 98 | 0.785812 | am-lola |
f709a8b90bbd427ae70edf64f8040c3039fb82f7 | 1,444 | cpp | C++ | test/http/string_view_body.cpp | chriskohlhoff/Beast | 78a065ba39836d91d7e70d93de7f9140f518083b | [
"BSL-1.0"
] | 4 | 2017-07-19T11:39:46.000Z | 2021-08-31T22:05:08.000Z | test/http/string_view_body.cpp | tzlaine/Beast | 78a065ba39836d91d7e70d93de7f9140f518083b | [
"BSL-1.0"
] | null | null | null | test/http/string_view_body.cpp | tzlaine/Beast | 78a065ba39836d91d7e70d93de7f9140f518083b | [
"BSL-1.0"
] | 3 | 2017-07-19T11:39:47.000Z | 2019-08-06T07:52:21.000Z | //
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// 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)
//
// Test that header file is self-contained.
#include <beast/http/string_view_body... | 27.245283 | 79 | 0.638504 | chriskohlhoff |
f70e10604c23344fcf632a2bbabae865aba60490 | 817 | cpp | C++ | src/src/KTimer.cpp | jcleng/nix-kangle-3.5.13.2 | cc7bbaa429ada9a7eb7a023a152b6e2fc5defe3f | [
"MIT"
] | null | null | null | src/src/KTimer.cpp | jcleng/nix-kangle-3.5.13.2 | cc7bbaa429ada9a7eb7a023a152b6e2fc5defe3f | [
"MIT"
] | null | null | null | src/src/KTimer.cpp | jcleng/nix-kangle-3.5.13.2 | cc7bbaa429ada9a7eb7a023a152b6e2fc5defe3f | [
"MIT"
] | null | null | null | #include "KTimer.h"
#include "KSelectorManager.h"
struct timer_run_param
{
KSelector *selector;
timer_func func;
void *arg;
};
void result_timer_call_back(void *arg, int got)
{
timer_run_param *param = (timer_run_param *)arg;
param->func(param->arg);
delete param;
}
void next_timer_call_back(void *arg, int got)
{... | 25.53125 | 114 | 0.753978 | jcleng |
f71f815a1c949d62b51585e35fdcb8fa51850ac1 | 5,421 | cpp | C++ | Mini-Games/Source/HighScores.cpp | lincsterr/Mini-Games | cbdbdd05f941e57bc11fa1fd0d1fa2adbfeade04 | [
"MIT"
] | null | null | null | Mini-Games/Source/HighScores.cpp | lincsterr/Mini-Games | cbdbdd05f941e57bc11fa1fd0d1fa2adbfeade04 | [
"MIT"
] | null | null | null | Mini-Games/Source/HighScores.cpp | lincsterr/Mini-Games | cbdbdd05f941e57bc11fa1fd0d1fa2adbfeade04 | [
"MIT"
] | null | null | null | /* Lincoln Glauser 5/19/16 */
/* EEEE-346 */
#include "../Include/HighScores.h"
/* Code highly influenced from Sildomar T. Monteiro */
HighScores::HighScores(const char *filename)
{
highscoreFile.open(filename, ios::in | ios::out | ios::binary);
if (!highscoreFile) {
cout << "Creating file: " << fil... | 25.213953 | 97 | 0.607084 | lincsterr |
f72074ebddfee1622be68f21b6a8f42f2e75673c | 4,161 | cpp | C++ | src/Application.cpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | src/Application.cpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | src/Application.cpp | ananace/LD44 | 472e5134a1f846d9c2244b31fe3753d08963b71e | [
"MIT"
] | null | null | null | #include "Application.hpp"
#include "States/DummyState.hpp"
#include "States/GameState.hpp"
#include <SFML/Graphics/Text.hpp>
#include <SFML/Window/Event.hpp>
#include <chrono>
typedef std::chrono::high_resolution_clock chrono_clock;
typedef chrono_clock::duration duration;
typedef chrono_clock::time_point time_poin... | 24.052023 | 103 | 0.62509 | ananace |
f721938db59196615febff6cd4d98fd8caefa3d1 | 696 | cpp | C++ | DFNs/PrimitiveFinder/PrimitiveFinderInterface.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 7 | 2019-02-26T15:09:50.000Z | 2021-09-30T07:39:01.000Z | DFNs/PrimitiveFinder/PrimitiveFinderInterface.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | null | null | null | DFNs/PrimitiveFinder/PrimitiveFinderInterface.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 1 | 2020-12-06T12:09:05.000Z | 2020-12-06T12:09:05.000Z | /**
* @addtogroup DFNs
* @{
*/
#include "PrimitiveFinderInterface.hpp"
namespace CDFF
{
namespace DFN
{
PrimitiveFinderInterface::PrimitiveFinderInterface()
{
asn1SccFrame_Initialize(& inImage);
asn1SccT_String_Initialize(& inPrimitive);
asn1SccVectorXdSequence_Initialize(& outPrimitives);
}
Primitiv... | 16.186047 | 81 | 0.755747 | H2020-InFuse |
f721bb189d5b4eab5fa5f42764ad2c761026b8b3 | 2,383 | cpp | C++ | tp2/src/option_parse.cpp | fstamour/inf4705 | 0c3c398d14264d4ca13e4dc84a64e91fe11b3992 | [
"BSD-2-Clause"
] | null | null | null | tp2/src/option_parse.cpp | fstamour/inf4705 | 0c3c398d14264d4ca13e4dc84a64e91fe11b3992 | [
"BSD-2-Clause"
] | null | null | null | tp2/src/option_parse.cpp | fstamour/inf4705 | 0c3c398d14264d4ca13e4dc84a64e91fe11b3992 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <unistd.h>
#include "option_parse.h"
void Options::initialize(Algo algo, int argc, char** argv) {
switch(algo) {
case Algo::dynamique:
case Algo::vorace:
{
int opt;
while((opt = getopt(argc, argv, "pf:")) != -1) {
swi... | 25.902174 | 89 | 0.391104 | fstamour |
f721dd61d065d9956fe567fa2a4265f0e8db14f4 | 15,610 | cpp | C++ | source/scene/logic/move.cpp | achilsh/breeze | 89605cb7b80e199884170752b72c8e5242327ad6 | [
"Apache-2.0"
] | null | null | null | source/scene/logic/move.cpp | achilsh/breeze | 89605cb7b80e199884170752b72c8e5242327ad6 | [
"Apache-2.0"
] | null | null | null | source/scene/logic/move.cpp | achilsh/breeze | 89605cb7b80e199884170752b72c8e5242327ad6 | [
"Apache-2.0"
] | 1 | 2019-03-15T01:37:13.000Z | 2019-03-15T01:37:13.000Z | #include "move.h"
#include "scene.h"
#include "sceneMgr.h"
MoveSync::MoveSync()
{
}
MoveSync::~MoveSync()
{
if (_sim)
{
delete _sim;
_sim = nullptr;
}
}
void MoveSync::init(std::weak_ptr<Scene> weak_scene)
{
_scene = weak_scene;
_sim = new RVO::RVOSimulator();
_sim->setTime... | 31.663286 | 160 | 0.524215 | achilsh |
f7230e6e9e207a94d239bf35c088c326e56d7a34 | 10,542 | cpp | C++ | AvxBlas/PixelShuffle3D/pixelshuffle3d_channeltospace.cpp | tk-yoshimura/AvxBlas | 37ae77f05e35aa3e97109785276afba3835585ec | [
"MIT"
] | null | null | null | AvxBlas/PixelShuffle3D/pixelshuffle3d_channeltospace.cpp | tk-yoshimura/AvxBlas | 37ae77f05e35aa3e97109785276afba3835585ec | [
"MIT"
] | null | null | null | AvxBlas/PixelShuffle3D/pixelshuffle3d_channeltospace.cpp | tk-yoshimura/AvxBlas | 37ae77f05e35aa3e97109785276afba3835585ec | [
"MIT"
] | null | null | null | #include "../avxblas.h"
#include "../constants.h"
#include "../utils.h"
#include "../Inline/inline_copy_s.hpp"
#pragma unmanaged
int pixelshuffle3d_channeltospace_aligned(
const uint n, const uint ic, const uint oc,
const uint iw, const uint ow,
const uint ih, const uint oh,
const uint id, const uint ... | 28.961538 | 127 | 0.488238 | tk-yoshimura |
f72aba01766b9ce7a0e470bafd0964e7089042bc | 13,214 | cpp | C++ | Source/Ilum/Device/LogicalDevice.cpp | LavenSun/IlumEngine | 94841e56af3c5214f04e7a94cb7369f4935c5788 | [
"MIT"
] | 1 | 2021-11-20T15:39:09.000Z | 2021-11-20T15:39:09.000Z | Source/Ilum/Device/LogicalDevice.cpp | LavenSun/IlumEngine | 94841e56af3c5214f04e7a94cb7369f4935c5788 | [
"MIT"
] | null | null | null | Source/Ilum/Device/LogicalDevice.cpp | LavenSun/IlumEngine | 94841e56af3c5214f04e7a94cb7369f4935c5788 | [
"MIT"
] | null | null | null | #include "LogicalDevice.hpp"
#include "Instance.hpp"
#include "PhysicalDevice.hpp"
#include "Surface.hpp"
#include "Graphics/GraphicsContext.hpp"
namespace Ilum
{
const std::vector<const char *> LogicalDevice::extensions = {
VK_KHR_SWAPCHAIN_EXTENSION_NAME,
VK_KHR_ACCELERATION_STRUCTURE_EXTENSION_NAME,
VK... | 34.411458 | 207 | 0.759498 | LavenSun |
f72d9f3aa2d66ecc3ae67d425be43f8f19f437b3 | 793 | cpp | C++ | lib-src/sbsms/src/audio.cpp | gspeedtech/Audacity | 570c5651c5934469c18dad25db03f05076f91225 | [
"CC-BY-3.0"
] | 16 | 2015-01-26T18:58:26.000Z | 2017-11-12T05:42:58.000Z | lib-src/sbsms/src/audio.cpp | gspeedtech/Audacity | 570c5651c5934469c18dad25db03f05076f91225 | [
"CC-BY-3.0"
] | null | null | null | lib-src/sbsms/src/audio.cpp | gspeedtech/Audacity | 570c5651c5934469c18dad25db03f05076f91225 | [
"CC-BY-3.0"
] | 7 | 2015-04-13T20:01:00.000Z | 2021-07-05T09:28:22.000Z | #include <stdlib.h>
#include <string.h>
#include "audio.h"
namespace _sbsms_ {
audio *make_audio_buf(long n) {
return (audio*)calloc(n,sizeof(audio));
}
void free_audio_buf(audio *buf) {
free(buf);
}
long copy_audio_buf(audio *to, long off1, audio *from, long off2, long n)
{
memcpy(to+off1,from+off2,n*sizeof(... | 19.341463 | 77 | 0.614124 | gspeedtech |
f72e66ce773bd6c767de1fabdcd86f169d2ee880 | 3,040 | cpp | C++ | interface/src/ui/UserLocationsDialog.cpp | Adrianl3d/hifi | 7bd01f606b768f6aa3e21d48959718ad249a3551 | [
"Apache-2.0"
] | null | null | null | interface/src/ui/UserLocationsDialog.cpp | Adrianl3d/hifi | 7bd01f606b768f6aa3e21d48959718ad249a3551 | [
"Apache-2.0"
] | null | null | null | interface/src/ui/UserLocationsDialog.cpp | Adrianl3d/hifi | 7bd01f606b768f6aa3e21d48959718ad249a3551 | [
"Apache-2.0"
] | null | null | null | //
// UserLocationsDialog.cpp
// interface/src/ui
//
// Created by Ryan Huffman on 06/24/14.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <QDebug>
#include <QInput... | 38.974359 | 127 | 0.739474 | Adrianl3d |
f73348e4445d94fe8a3ed06ac0d8a7ac9ec4709f | 6,152 | hpp | C++ | include/xlnt/workbook/worksheet_iterator.hpp | Polymedia/xlnt | c214c6ca0b2533a799c8d788c8697d69639a224f | [
"Unlicense"
] | null | null | null | include/xlnt/workbook/worksheet_iterator.hpp | Polymedia/xlnt | c214c6ca0b2533a799c8d788c8697d69639a224f | [
"Unlicense"
] | null | null | null | include/xlnt/workbook/worksheet_iterator.hpp | Polymedia/xlnt | c214c6ca0b2533a799c8d788c8697d69639a224f | [
"Unlicense"
] | 1 | 2019-03-05T01:07:08.000Z | 2019-03-05T01:07:08.000Z | // Copyright (c) 2014-2017 Thomas Fussell
// Copyright (c) 2010-2015 openpyxl
//
// 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 right... | 34.561798 | 90 | 0.696196 | Polymedia |
f7384fd2a3f52547e9109f25d59901f86dd67dc4 | 3,096 | cpp | C++ | BrotBoxEngine/Mouse.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | 1 | 2020-10-08T13:40:36.000Z | 2020-10-08T13:40:36.000Z | BrotBoxEngine/Mouse.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | null | null | null | BrotBoxEngine/Mouse.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | null | null | null | #include "BBE/Mouse.h"
#include "BBE/Vector2.h"
#include "BBE/Exceptions.h"
bool bbe::Mouse::isButtonDown(bbe::MouseButton button)
{
if (!isMouseButtonValid(button))
{
throw NoSuchMouseButtonException();
}
return m_pButtonsThisFrame[(int)button];
}
bool bbe::Mouse::isButtonUp(bbe::MouseButton button)
{
if (!is... | 20.235294 | 95 | 0.74354 | HEX17 |
f73946dd3c191164485888e56333c515852919a5 | 1,465 | cpp | C++ | src/vector_vector_vector_point2f.cpp | NormandErwan/ArucoUnityPlugin | a890fb1bd973473b17a0c73dde91d6b968c379e4 | [
"BSD-3-Clause"
] | 12 | 2018-11-20T02:57:43.000Z | 2021-05-11T12:06:56.000Z | src/vector_vector_vector_point2f.cpp | Pandinosaurus/ArucoUnityPlugin | a890fb1bd973473b17a0c73dde91d6b968c379e4 | [
"BSD-3-Clause"
] | 2 | 2019-05-01T20:18:42.000Z | 2019-09-21T13:42:20.000Z | src/vector_vector_vector_point2f.cpp | Pandinosaurus/ArucoUnityPlugin | a890fb1bd973473b17a0c73dde91d6b968c379e4 | [
"BSD-3-Clause"
] | 3 | 2018-11-01T08:17:46.000Z | 2020-03-05T20:22:07.000Z | #include "aruco_unity_plugin/std/vector_vector_vector_point2f.hpp"
#include "aruco_unity_plugin/cv/exception.hpp"
extern "C" {
// Constructors & Destructors
std::vector<std::vector<std::vector<cv::Point2f>>>* au_std_vectorVectorVectorPoint2f_new() {
return new std::vector<std::vector<std::vector<cv::Point2f>>... | 35.731707 | 148 | 0.698294 | NormandErwan |
f747f7baabb751561769ce4b92c4f6e91f2ea394 | 45,542 | hpp | C++ | source/framework/algorithm/include/lue/framework/algorithm/inflow_count.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 2 | 2021-02-26T22:45:56.000Z | 2021-05-02T10:28:48.000Z | source/framework/algorithm/include/lue/framework/algorithm/inflow_count.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/framework/algorithm/include/lue/framework/algorithm/inflow_count.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #pragma once
#include "lue/framework/algorithm/policy.hpp"
#include "lue/framework/algorithm/detail/flow_direction.hpp"
#include "lue/framework/algorithm/detail/halo_partition.hpp"
#include "lue/framework/algorithm/detail/partition.hpp"
#include "lue/framework/algorithm/detail/spawn.hpp"
#include "lue/framework/algorit... | 44.692836 | 112 | 0.439484 | computationalgeography |
f74dfa953eb77b523fc1d00988f47b11af3a170c | 1,709 | cpp | C++ | src/analysis/fft/fft_n.cpp | alargepileofash/in-formant | 3fc77925b68e349b96d7cf20c00223a4b343d04d | [
"Apache-2.0"
] | 55 | 2020-10-07T20:22:22.000Z | 2021-08-28T10:58:36.000Z | src/analysis/fft/fft_n.cpp | alargepileofash/in-formant | 3fc77925b68e349b96d7cf20c00223a4b343d04d | [
"Apache-2.0"
] | 16 | 2020-12-06T22:02:38.000Z | 2021-08-19T09:37:56.000Z | src/analysis/fft/fft_n.cpp | alargepileofash/in-formant | 3fc77925b68e349b96d7cf20c00223a4b343d04d | [
"Apache-2.0"
] | 11 | 2019-12-16T16:06:19.000Z | 2020-04-15T15:28:31.000Z | #include "fft.h"
static const rpm::vector<double>& getWindow(int N, rpm::map<int, rpm::vector<double>>& windowCache) {
auto wit = windowCache.find(N);
if (wit == windowCache.end()) {
constexpr double a0 = 0.35875;
constexpr double a1 = 0.48829;
constexpr double a2 = 0.14128;
con... | 28.483333 | 143 | 0.478642 | alargepileofash |
f74f7db3e2d28b24726c7a51b11a26503f0bf42b | 2,521 | hpp | C++ | src/ds/queue.hpp | RamchandraApte/OmniTemplate | f150f451871b0ab43ac39a798186278106da1527 | [
"MIT"
] | 14 | 2019-04-23T21:44:12.000Z | 2022-03-04T22:48:59.000Z | src/ds/queue.hpp | RamchandraApte/OmniTemplate | f150f451871b0ab43ac39a798186278106da1527 | [
"MIT"
] | 3 | 2019-04-25T10:45:32.000Z | 2020-08-05T22:40:39.000Z | src/ds/queue.hpp | RamchandraApte/OmniTemplate | f150f451871b0ab43ac39a798186278106da1527 | [
"MIT"
] | 1 | 2020-07-16T22:16:33.000Z | 2020-07-16T22:16:33.000Z | #pragma once
#include "core/all.hpp"
inline namespace queue_tools {
/**
* @brief Queue adaptor, creates a queue using two Stacks left, right
* If there are at least two elements, left and right are not empty.
* If there is one element, it is in left.
*
*/
template <typename Stack> class QueueAdaptor {
public... | 30.011905 | 87 | 0.642602 | RamchandraApte |
f755d7c4884e427ba3421ab5e84fdd601eab159c | 1,364 | cpp | C++ | src/fp/diagnostic/problem.cpp | bayov/fp | b9b2c6f78389d7fff9d74bf691cde52461af155b | [
"Apache-2.0"
] | 4 | 2017-04-15T23:53:02.000Z | 2017-08-09T20:45:52.000Z | src/fp/diagnostic/problem.cpp | bayov/fp | b9b2c6f78389d7fff9d74bf691cde52461af155b | [
"Apache-2.0"
] | null | null | null | src/fp/diagnostic/problem.cpp | bayov/fp | b9b2c6f78389d7fff9d74bf691cde52461af155b | [
"Apache-2.0"
] | null | null | null | #include "problem.h"
namespace fp::diagnostic {
problem& problem::add_primary(fp::source_location location, std::string text) {
locations_.push_back(diagnostic::location {
.kind = location_kind::PRIMARY,
.source_location = std::move(location),
.text = std::move(text)
});
return *th... | 25.735849 | 79 | 0.666422 | bayov |
f7571cbd059621396ecd3f63ec3d1f58a6292590 | 306 | cpp | C++ | src/drivers/SimpleForward.cpp | first-dev/hardsoft-robot | 03fa3f4ab5c8428026aff856ed3198709576d564 | [
"MIT"
] | null | null | null | src/drivers/SimpleForward.cpp | first-dev/hardsoft-robot | 03fa3f4ab5c8428026aff856ed3198709576d564 | [
"MIT"
] | null | null | null | src/drivers/SimpleForward.cpp | first-dev/hardsoft-robot | 03fa3f4ab5c8428026aff856ed3198709576d564 | [
"MIT"
] | null | null | null | #include "SimpleForward.h"
SimpleForward::SimpleForward(IRSensors* irSensors, DCMotors* dcMotors, PowerManager* powerManager)
: Driver(irSensors, dcMotors, powerManager) {
}
SimpleForward::~SimpleForward() {}
void SimpleForward::loop() {
dcMotors->setLeftSpeed(255);
dcMotors->setRightSpeed(255);
} | 27.818182 | 98 | 0.764706 | first-dev |
f75afb02d2d342c6330451b4c70717db0d02f8bd | 10,716 | hpp | C++ | include/bitset2/detail/array_funcs.hpp | N-A-D/bitset2 | 7ce316c19f612f957f8c3008ca9dc7002e2a6971 | [
"BSL-1.0"
] | 87 | 2016-08-08T14:53:35.000Z | 2022-03-02T15:14:11.000Z | include/bitset2/detail/array_funcs.hpp | N-A-D/bitset2 | 7ce316c19f612f957f8c3008ca9dc7002e2a6971 | [
"BSL-1.0"
] | 1 | 2022-03-27T13:59:39.000Z | 2022-03-29T09:44:10.000Z | include/bitset2/detail/array_funcs.hpp | N-A-D/bitset2 | 7ce316c19f612f957f8c3008ca9dc7002e2a6971 | [
"BSL-1.0"
] | 9 | 2017-03-23T22:42:25.000Z | 2021-06-01T01:41:18.000Z | // BITSET2
//
// Copyright Claas Bontus
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.com/ClaasBontus/bitset2
//
#ifndef BITSET2_ARRAY_F... | 30.881844 | 80 | 0.536021 | N-A-D |
f75cbfd9a11919394fa171fe479ea8789308a6a3 | 3,525 | cpp | C++ | GameEngineX/Source/Core/Resources.cpp | GeorgeHanna/BarebonesGameEngine | 39a122832a4b050fff117114d1ba37bbd72edd42 | [
"MIT"
] | null | null | null | GameEngineX/Source/Core/Resources.cpp | GeorgeHanna/BarebonesGameEngine | 39a122832a4b050fff117114d1ba37bbd72edd42 | [
"MIT"
] | null | null | null | GameEngineX/Source/Core/Resources.cpp | GeorgeHanna/BarebonesGameEngine | 39a122832a4b050fff117114d1ba37bbd72edd42 | [
"MIT"
] | null | null | null | //
// Resources.cpp
// GameEngineX
//
// Created by George Hanna on 26/05/16.
// Copyright © 2016 George Hanna. All rights reserved.
//
#include "Resources.hpp"
namespace Resources {
std::string _root;
//Graphics Handlers
ShaderProgramHandler* _shaderprogramhandler;
TextureHandler* _texturehandler;
MeshHandler*... | 30.921053 | 155 | 0.733333 | GeorgeHanna |
f760d862818f277ca261e958843eea91ec900f27 | 303 | cpp | C++ | src/Dynamics/RigidBody/RigidBody.cpp | hanxingyixue/peridyno | 5c963dae20384f6af7a15866dac0d06adfcba236 | [
"Apache-2.0"
] | 2 | 2022-01-29T08:51:50.000Z | 2022-02-22T12:07:09.000Z | src/Dynamics/RigidBody/RigidBody.cpp | hanxingyixue/peridyno | 5c963dae20384f6af7a15866dac0d06adfcba236 | [
"Apache-2.0"
] | null | null | null | src/Dynamics/RigidBody/RigidBody.cpp | hanxingyixue/peridyno | 5c963dae20384f6af7a15866dac0d06adfcba236 | [
"Apache-2.0"
] | null | null | null | #include "RigidBody.h"
#include "Quat.h"
namespace dyno
{
IMPLEMENT_TCLASS(RigidBody, TDataType)
template<typename TDataType>
RigidBody<TDataType>::RigidBody(std::string name)
: Node(name)
{
}
template<typename TDataType>
RigidBody<TDataType>::~RigidBody()
{
}
DEFINE_CLASS(RigidBody);
} | 15.15 | 50 | 0.732673 | hanxingyixue |
f761759bc84ee1cf688598eb4c1b800b350698a2 | 7,381 | cpp | C++ | modtools.cpp | Nictec/cobrabot | 50c11ab55ba109824bda24ef9b807f51ec349a37 | [
"MIT"
] | 1 | 2020-05-01T09:38:32.000Z | 2020-05-01T09:38:32.000Z | modtools.cpp | Nictec/cobrabot | 50c11ab55ba109824bda24ef9b807f51ec349a37 | [
"MIT"
] | null | null | null | modtools.cpp | Nictec/cobrabot | 50c11ab55ba109824bda24ef9b807f51ec349a37 | [
"MIT"
] | null | null | null | #include "modtools.h"
#include <QDir>
#include <QDebug>
#include "mustache.h"
#include <ctype.h>
Modtools::Modtools(QObject *parent) : QObject(parent)
{
//load the caps settings from file
QString capsSettings = QDir::currentPath() + "/config/caps.ini";
qInfo() << "Settings: " << capsSettings;
QSettings... | 36.905 | 111 | 0.572145 | Nictec |
f7631808f63421745a3aca969996d9ac69200e53 | 18,285 | cpp | C++ | src/brokers/kucoin/kucoin.cpp | puneeth714/mmbot | 48439408e50d722a207b6347cd44f9503341cdb3 | [
"MIT"
] | null | null | null | src/brokers/kucoin/kucoin.cpp | puneeth714/mmbot | 48439408e50d722a207b6347cd44f9503341cdb3 | [
"MIT"
] | null | null | null | src/brokers/kucoin/kucoin.cpp | puneeth714/mmbot | 48439408e50d722a207b6347cd44f9503341cdb3 | [
"MIT"
] | null | null | null | #include "kucoin.h"
#include <openssl/hmac.h>
#include <sstream>
#include <random>
#include <thread>
#include <imtjson/object.h>
#include <imtjson/parser.h>
#include <imtjson/serializer.h>
#include <imtjson/binjson.tcc>
#include <imtjson/operations.h>
#include <shared/toString.h>
#include <simpleServer/urlencode.h>
#... | 29.209265 | 168 | 0.67673 | puneeth714 |
f765ca4621c60c444a4ac4e114837df427625904 | 3,412 | cpp | C++ | 100486339_100398864_assign3_p3.cpp | LifeBringer/CbasedProjects | 3d8187bd1737e44cc1a6183ab6b4a602e79efa82 | [
"Apache-2.0"
] | null | null | null | 100486339_100398864_assign3_p3.cpp | LifeBringer/CbasedProjects | 3d8187bd1737e44cc1a6183ab6b4a602e79efa82 | [
"Apache-2.0"
] | null | null | null | 100486339_100398864_assign3_p3.cpp | LifeBringer/CbasedProjects | 3d8187bd1737e44cc1a6183ab6b4a602e79efa82 | [
"Apache-2.0"
] | null | null | null | /* ========================================================
* *
* Members 1: (Me) *
* *
========================================================*/
/* Purpose: Determines the voltage output of an amplifer
depending on the values set for input voltage, resistors,
and type of ampli... | 40.619048 | 115 | 0.652696 | LifeBringer |
f76808039d3b061ecb0e3e66da56adcf69402a75 | 21,440 | cpp | C++ | src/SyntaxHighlighter/X86Assembly.cpp | akopich/orbit | c7935085023cce1abb70ce96dd03339f47a1c826 | [
"BSD-2-Clause"
] | 716 | 2017-09-22T11:50:40.000Z | 2020-03-14T21:52:22.000Z | src/SyntaxHighlighter/X86Assembly.cpp | akopich/orbit | c7935085023cce1abb70ce96dd03339f47a1c826 | [
"BSD-2-Clause"
] | 132 | 2017-09-24T11:48:18.000Z | 2020-03-17T17:39:45.000Z | src/SyntaxHighlighter/X86Assembly.cpp | akopich/orbit | c7935085023cce1abb70ce96dd03339f47a1c826 | [
"BSD-2-Clause"
] | 49 | 2017-09-23T10:23:59.000Z | 2020-03-14T09:27:49.000Z | // Copyright (c) 2020 The Orbit 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 "SyntaxHighlighter/X86Assembly.h"
#include <qregularexpression.h>
#include <QColor>
#include <QRegularExpression>
#include <QString>
#include ... | 75.492958 | 99 | 0.798228 | akopich |
f76a1cad557181cd2128ca1035551b9d587969f2 | 327 | cc | C++ | Daily_Problem/2012/Beginning/201208_Split_Array_Into_Fibonacci_Sequence/method1/test.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | 1 | 2020-02-07T12:25:56.000Z | 2020-02-07T12:25:56.000Z | Daily_Problem/2012/Beginning/201208_Split_Array_Into_Fibonacci_Sequence/method1/test.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | null | null | null | Daily_Problem/2012/Beginning/201208_Split_Array_Into_Fibonacci_Sequence/method1/test.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | null | null | null | #include <iostream>
#include "solution.cc"
void test() {
Solution solution;
string str = "123456579";
auto res = solution.splitIntoFibonacci(str);
for (auto val : res) {
std::cout << val << " ";
}
std::cout << std::endl;
}
int main(int argc, char const *argv[]) {
test();
retur... | 17.210526 | 48 | 0.565749 | sheriby |
f76e0d74345f68e2e9e241de6b3aa383471ac7c3 | 3,792 | cpp | C++ | game/InputContextRoboArmPC.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 24 | 2019-02-24T14:48:16.000Z | 2022-03-21T21:37:26.000Z | game/InputContextRoboArmPC.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 3 | 2019-02-25T20:45:09.000Z | 2019-02-28T18:05:45.000Z | game/InputContextRoboArmPC.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 7 | 2019-02-28T11:33:15.000Z | 2022-01-26T20:11:45.000Z | /*
* Copyright (c) 2014, Stanislav Vorobiov
* 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 of ... | 30.829268 | 82 | 0.650316 | Sheph |
f76e535b7abdfff1fdb69a2d35dc8e3ef0b1fb75 | 4,417 | hpp | C++ | CmnIP/module/group/inc/group/clustering.hpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | CmnIP/module/group/inc/group/clustering.hpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | CmnIP/module/group/inc/group/clustering.hpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | /**
* @file clustering.hpp
* @brief Perform a phase correlation matching.
*
* @section LICENSE
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR ... | 28.496774 | 78 | 0.6964 | Khoronus |
f7712e237069b5820b53a2ff181fcee98c410bf4 | 618 | cpp | C++ | ural/1712.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | 5 | 2015-07-14T10:29:25.000Z | 2016-10-11T12:45:18.000Z | ural/1712.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | null | null | null | ural/1712.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | 3 | 2016-08-23T01:05:26.000Z | 2017-05-28T02:04:20.000Z | #include <cstdio>
#include <cstring>
char hmr[6][6], mdk[6][6], ans[20];
void rotate()
{
char tmp[6][6];
for (int i = 0; i < 4; ++i)
for (int j = 0; j < 4; ++j)
tmp[i][j] = hmr[3-j][i];
for (int i = 0; i < 4; ++i)
for (int j = 0; j < 4; ++j)
hmr[i][j] = tmp[i][j];
}
int main()
{
for (int i = 0; i < 4; ... | 16.263158 | 35 | 0.415858 | jffifa |
f7712f0b771906a38ea9be6dbd13bf5e76db8806 | 978 | cpp | C++ | assignments/Assignment9/privateVar.cpp | tspires/personal | 7444621203e405739e02595a3c0b85b3fd63e894 | [
"MIT"
] | null | null | null | assignments/Assignment9/privateVar.cpp | tspires/personal | 7444621203e405739e02595a3c0b85b3fd63e894 | [
"MIT"
] | null | null | null | assignments/Assignment9/privateVar.cpp | tspires/personal | 7444621203e405739e02595a3c0b85b3fd63e894 | [
"MIT"
] | null | null | null | #include <iostream>
class Person {
std::string name;
int age;
public:
void having_birthday();
int get_age();
std::string get_name();
void set_age(int x);
void set_name(std::string n);
};
Person person();
int main() {
Person guy = person();
std::cout << "Your... | 18.807692 | 73 | 0.56544 | tspires |
f7722da27a25c7a6476b19d94cfd516c90efdc1d | 1,424 | cpp | C++ | Top Hat/otaupdate.cpp | CrazyRobMiles/DDD-Reading-2019 | 9592f15de94a6454c74479748f9afc58d4400f76 | [
"MIT"
] | null | null | null | Top Hat/otaupdate.cpp | CrazyRobMiles/DDD-Reading-2019 | 9592f15de94a6454c74479748f9afc58d4400f76 | [
"MIT"
] | null | null | null | Top Hat/otaupdate.cpp | CrazyRobMiles/DDD-Reading-2019 | 9592f15de94a6454c74479748f9afc58d4400f76 | [
"MIT"
] | 1 | 2020-05-23T04:55:28.000Z | 2020-05-23T04:55:28.000Z | #include <Arduino.h>
#include <DNSServer.h>
#include <WiFiUdp.h>
#include <WiFiServer.h>
#include <WiFiClientSecure.h>
#include <WiFiClient.h>
#include <ESP8266WiFiType.h>
#include <ESP8266WiFiSTA.h>
#include <ESP8266WiFiScan.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266WiFiGeneric.h>
#include <ESP8266WiFiAP.h>
#i... | 21.575758 | 95 | 0.75632 | CrazyRobMiles |
f77567a0edee0b21c9598557bf965510f1b7d1cf | 280 | cpp | C++ | src/tools/disassembler/disassembler_main.cpp | bonus2113/otherside | 1d394e32d93aaecf3cb2eaf7baecb814c62075a4 | [
"MIT"
] | 42 | 2015-07-17T20:28:25.000Z | 2016-07-14T17:31:51.000Z | src/tools/disassembler/disassembler_main.cpp | bonus2113/otherside | 1d394e32d93aaecf3cb2eaf7baecb814c62075a4 | [
"MIT"
] | null | null | null | src/tools/disassembler/disassembler_main.cpp | bonus2113/otherside | 1d394e32d93aaecf3cb2eaf7baecb814c62075a4 | [
"MIT"
] | 2 | 2015-08-03T13:01:10.000Z | 2015-08-03T13:19:52.000Z | #include "types.h"
#include "parser_definitions.h"
#include "parser.h"
#include <assert.h>
#include <iostream>
int main(int argc, char** argv) {
assert(argc == 2);
Program program;
Parser parser(argv[1]);
parser.Parse(&program);
std::cout << writeProgram(program);
}
| 17.5 | 37 | 0.678571 | bonus2113 |
f780b4d5ea91258838cb9337eb1200670d62caa3 | 1,032 | cpp | C++ | src/log/log_manager.cpp | xackery/eqx | 777685a6f793014116855805d719899cfa4169d8 | [
"MIT"
] | null | null | null | src/log/log_manager.cpp | xackery/eqx | 777685a6f793014116855805d719899cfa4169d8 | [
"MIT"
] | null | null | null | src/log/log_manager.cpp | xackery/eqx | 777685a6f793014116855805d719899cfa4169d8 | [
"MIT"
] | null | null | null | #include "log_manager.h"
#include <stdarg.h>
#include <stdio.h>
EQEmu::Log::Manager::~Manager() {
size_t sz = logs.size();
for(size_t i = 0; i < sz; ++i) {
logs[i]->OnUnregister();
}
}
void EQEmu::Log::Manager::Init(int enabled_logs) {
auto &inst = Manager::Instance();
inst.enabled_logs = enabled_logs;
}
EQEm... | 21.061224 | 85 | 0.666667 | xackery |
f782a9a4f90d376f47b6bbb7acfc9c76b0daab67 | 2,506 | cpp | C++ | src/e001_100/q1352.cpp | extremedeckguru/leetcode | e45923ccbca7ae1c5f85d8c996392e8b492c1306 | [
"MIT"
] | 9 | 2020-04-09T12:37:50.000Z | 2021-04-01T14:01:14.000Z | src/e001_100/q1352.cpp | extremedeckguru/leetcode | e45923ccbca7ae1c5f85d8c996392e8b492c1306 | [
"MIT"
] | 3 | 2020-05-05T02:43:54.000Z | 2020-05-20T11:12:16.000Z | src/e001_100/q1352.cpp | extremedeckguru/leetcode | e45923ccbca7ae1c5f85d8c996392e8b492c1306 | [
"MIT"
] | 5 | 2020-04-17T02:32:10.000Z | 2020-05-20T10:12:26.000Z | /*
#面试刷题# 第0057期
#Leetcode# Q1352 最后K个数的乘积
难度:中
实现支持两种方法的ProductOfNumbers类:
1. add(int num)
将数字num添加到当前数字列表的后面。
2. getProduct(int k)
返回当前列表中最后k个数字的乘积。您可以假设当前列表始终至少包含k个数字。
任何时候,任何连续数字序列的乘积都将适合单个32位整数而不会溢出
约束条件:
(a) 最多进行4000次 add 和 getProduct 调用.
(b) 0 <= num <= 100
(c) 1 <= k <= 40000
例1:
Input
["ProductOfNumbers","add... | 26.378947 | 108 | 0.614525 | extremedeckguru |
f78feee865e7d0cace861777e18315df22176b21 | 2,357 | cpp | C++ | 3rdparty/mml/mml/src/mml/window/video_mode.cpp | volcoma/ospp | 48de0844b66acf515ac17dc5e673435b33876b35 | [
"MIT"
] | 1 | 2019-05-26T19:50:29.000Z | 2019-05-26T19:50:29.000Z | 3rdparty/mml/mml/src/mml/window/video_mode.cpp | volcoma/ospp | 48de0844b66acf515ac17dc5e673435b33876b35 | [
"MIT"
] | null | null | null | 3rdparty/mml/mml/src/mml/window/video_mode.cpp | volcoma/ospp | 48de0844b66acf515ac17dc5e673435b33876b35 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <mml/window/video_mode.hpp>
#include <mml/window/video_mode_impl.hpp>
#include <algorithm>
#include <functional>
namespace mml
{
///////////////////////////////////////////////... | 27.729412 | 89 | 0.514637 | volcoma |
f79af0598cf1175b1a43b83697835a567e22df4d | 11,447 | cpp | C++ | src/samplers/SamplerCapCVT/Geex/graphics/geexapp.cpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 44 | 2018-01-09T19:56:29.000Z | 2022-03-03T06:38:54.000Z | src/samplers/SamplerCapCVT/Geex/graphics/geexapp.cpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2018-01-29T18:01:42.000Z | 2022-03-31T07:01:09.000Z | src/samplers/SamplerCapCVT/Geex/graphics/geexapp.cpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 12 | 2018-03-14T00:24:14.000Z | 2022-03-03T06:40:07.000Z | /*
* _____ _____ ________ _
* / __// __// __/\ \//
* | | _| \ | \ \ /
* | |_//| /_ | /_ / \
* \____\\____\\____\/__/\\
*
* Graphics Environment for EXperimentations.
* Copyright (C) 2006 INRIA - Project ALICE
*
* This program is free software; you can redistribute it and/or modify
* it ... | 32.064426 | 102 | 0.557701 | FrancoisGaits |
f79cd5d02d55a5ee909cf26e18bfb3a6c1629e0a | 2,296 | cpp | C++ | OpenGL/Circle/MidPointCircle.cpp | amrii1/Computer-Graphics | 597b4ab061b57d222e54c01a7adf2799cb889f3a | [
"MIT"
] | 27 | 2020-01-18T02:30:40.000Z | 2022-03-13T17:15:38.000Z | OpenGL/Circle/MidPointCircle.cpp | KINGRANDOLPH/Computer-Graphics | 509d2b06a34d9988e6c866eb6f900a56167f78ac | [
"MIT"
] | 5 | 2019-12-13T14:08:05.000Z | 2020-08-11T15:31:54.000Z | OpenGL/Circle/MidPointCircle.cpp | KINGRANDOLPH/Computer-Graphics | 509d2b06a34d9988e6c866eb6f900a56167f78ac | [
"MIT"
] | 16 | 2019-12-17T08:28:42.000Z | 2021-10-31T03:47:54.000Z | #include<GL/glut.h>
#include<GL/gl.h>
#include<iostream>
using namespace std;
int Xc,Yc,r;
void init()
{
glClearColor(0.0,0.0,1.0,1.0); //Blue background
glMatrixMode(GL_PROJECTION);
gluOrtho2D(0,700,0,700);
}
void display()
{
///
glClear(GL_COLOR_BUFFER_BIT);
int x,y,p,xn,yn;
//Setting initial values of x and y
x ... | 14.909091 | 55 | 0.661585 | amrii1 |
f79d6a019cfb35049b0d761041e40709ac2401e9 | 10,981 | cpp | C++ | src/ui-tests/TrayControllerTest.cpp | timsat/tomighty | 808be3a08167006691a430588550f633ec5fbb51 | [
"Apache-2.0"
] | null | null | null | src/ui-tests/TrayControllerTest.cpp | timsat/tomighty | 808be3a08167006691a430588550f633ec5fbb51 | [
"Apache-2.0"
] | null | null | null | src/ui-tests/TrayControllerTest.cpp | timsat/tomighty | 808be3a08167006691a430588550f633ec5fbb51 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2010-2014 Célio Cidral Junior.
* Modified work Copyright (c) 2021 Timur Sattarov.
*
* 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... | 31.2849 | 101 | 0.689373 | timsat |
f7a0f9253b9ff9136ebb03358977f946008b1c36 | 877 | cpp | C++ | cpp-app/src/project_name/main.cpp | lbteixeira/code-starters | a2805511064e43c2f79e659dfa7da0910110680c | [
"MIT"
] | 1 | 2021-10-13T12:21:06.000Z | 2021-10-13T12:21:06.000Z | cpp-app/src/project_name/main.cpp | lbteixeira/code-starters | a2805511064e43c2f79e659dfa7da0910110680c | [
"MIT"
] | null | null | null | cpp-app/src/project_name/main.cpp | lbteixeira/code-starters | a2805511064e43c2f79e659dfa7da0910110680c | [
"MIT"
] | null | null | null | #include <iostream>
#include "lib1/namespace1/add.hpp"
#include "lib1/namespace2/subtract.hpp"
#include "hello.hpp"
#include <GLFW/glfw3.h>
#include <string>
int main()
{
int i = 1;
int j = 2;
const std::string* k;
k = project_name::sayHello();
std::cout << *k << std::endl;
std::cout << lib1::namespace1:... | 19.488889 | 72 | 0.614595 | lbteixeira |
f7a38512d39bf7277e3d96cf1a0fd90550540ffe | 350 | hpp | C++ | include/fetch/http_date_parser.hpp | zerebubuth/avecado | 8a9e48d21c554886be033dd58e6c70fce61bd244 | [
"BSD-2-Clause"
] | 19 | 2015-01-08T23:12:51.000Z | 2020-06-23T20:00:23.000Z | include/fetch/http_date_parser.hpp | zerebubuth/avecado | 8a9e48d21c554886be033dd58e6c70fce61bd244 | [
"BSD-2-Clause"
] | 15 | 2015-01-07T12:50:42.000Z | 2021-02-18T20:51:27.000Z | include/fetch/http_date_parser.hpp | zerebubuth/avecado | 8a9e48d21c554886be033dd58e6c70fce61bd244 | [
"BSD-2-Clause"
] | 11 | 2015-01-18T20:53:10.000Z | 2021-04-18T07:33:45.000Z | #ifndef HTTP_DATE_PARSER_HPP
#define HTTP_DATE_PARSER_HPP
#include <ctime>
#include <boost/range/iterator_range_core.hpp>
namespace avecado {
/* parse an RFC 2616-compliant date string into an epoch time.
*/
bool parse_http_date(boost::iterator_range<const char *> range, std::time_t &t);
} // namespace avecado
#... | 21.875 | 80 | 0.771429 | zerebubuth |
f7a54a40642e0f1670723248c84266cd8e2c02dc | 2,492 | cpp | C++ | EnemyManager.cpp | dsedb/space_deadbeef2 | 74664f836a21b6ffa6a3944b4d41a8e39c7e5a67 | [
"MIT"
] | 1 | 2019-04-24T11:01:38.000Z | 2019-04-24T11:01:38.000Z | EnemyManager.cpp | dsedb/space_deadbeef2 | 74664f836a21b6ffa6a3944b4d41a8e39c7e5a67 | [
"MIT"
] | null | null | null | EnemyManager.cpp | dsedb/space_deadbeef2 | 74664f836a21b6ffa6a3944b4d41a8e39c7e5a67 | [
"MIT"
] | null | null | null | /* -*- mode:C++; coding:utf-8-with-signature -*-
*
* EnemyManager.cpp - Project PetitShooter
*
* Copyright (c) 2017 Yuji YASUHARA
*
* 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 wi... | 26.795699 | 85 | 0.694623 | dsedb |
f7a595a17f655a217a0accd53fe778297b87c51d | 1,839 | hpp | C++ | benchmark/vector/benchmark_vector.hpp | breiker/cereal_fwd | 9a668029a194f4fc2c2324ff05fb2198d85bb623 | [
"BSD-3-Clause"
] | 1 | 2021-04-27T22:15:00.000Z | 2021-04-27T22:15:00.000Z | benchmark/vector/benchmark_vector.hpp | breiker/cereal_fwd | 9a668029a194f4fc2c2324ff05fb2198d85bb623 | [
"BSD-3-Clause"
] | null | null | null | benchmark/vector/benchmark_vector.hpp | breiker/cereal_fwd | 9a668029a194f4fc2c2324ff05fb2198d85bb623 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by breiker on 6/25/17.
//
#pragma once
#include <functional>
#include <iostream>
#include <vector>
#include "utils.hpp"
//////////////////////////
// Protobuf adapters
/////////////////////////
class ProtoVectorInt;
class ProtoVectorFloat;
template<>
struct ProtoClass<std::vector<std::int32_t>>
{
u... | 18.39 | 103 | 0.590538 | breiker |
f7a604668f0505402f8cb730cc1a4106fab9eaf2 | 570 | cpp | C++ | AlgoExpert/Medium/longest-peak.cpp | abhisheknaiidu/dsa | fe3f54df6802d2520142992b541602ce5ee24f26 | [
"MIT"
] | 54 | 2020-07-31T14:50:23.000Z | 2022-03-14T11:03:02.000Z | AlgoExpert/Medium/longest-peak.cpp | abhisheknaiidu/NOOB | fe3f54df6802d2520142992b541602ce5ee24f26 | [
"MIT"
] | null | null | null | AlgoExpert/Medium/longest-peak.cpp | abhisheknaiidu/NOOB | fe3f54df6802d2520142992b541602ce5ee24f26 | [
"MIT"
] | 30 | 2020-08-15T17:39:02.000Z | 2022-03-10T06:50:18.000Z | class Solution {
public:
int findPeakElement(vector<int>& nums) {
// T.C - O(N)
// S.C - O(1)
// for(int i=0; i<nums.size(); i++) {
// if(nums[i] < nums[i+1]) {
// return i;
// }
// }
// return nums.size() - 1;
// Better Approach, do binary search =>
// T.C => O(Log2(N)... | 19.655172 | 44 | 0.385965 | abhisheknaiidu |
f7a63788578e2815313cff8504b158c5bf835889 | 343 | cpp | C++ | InstallShieldDecompiler/AbortAction.cpp | jte/installscript-decompiler | 4ec88fb5f1892ebc310c8dec471406322421b1c0 | [
"MIT"
] | null | null | null | InstallShieldDecompiler/AbortAction.cpp | jte/installscript-decompiler | 4ec88fb5f1892ebc310c8dec471406322421b1c0 | [
"MIT"
] | 1 | 2020-12-13T03:44:07.000Z | 2020-12-13T03:44:07.000Z | InstallShieldDecompiler/AbortAction.cpp | jte/installscript-decompiler | 4ec88fb5f1892ebc310c8dec471406322421b1c0 | [
"MIT"
] | null | null | null | #include "AbortAction.h"
#include <string>
CAbortAction::CAbortAction(CIScript* script, StreamPtr& filePtr) :
CAction(script)
{
Parse(filePtr);
}
void CAbortAction::print(std::ostream& os) const
{
os << "NOP";
}
std::shared_ptr<CStatement> CAbortAction::ToStatement() const
{
return std::make_shared<CStatement>(S... | 19.055556 | 66 | 0.737609 | jte |
f7a7c04614d8eca6692d8cb13c790927577a4602 | 578 | cpp | C++ | RednGreen.cpp | ChenliangLi205/NowCoder | 44e79800b56410d1094f18fbb656fadf724b7b21 | [
"MIT"
] | null | null | null | RednGreen.cpp | ChenliangLi205/NowCoder | 44e79800b56410d1094f18fbb656fadf724b7b21 | [
"MIT"
] | null | null | null | RednGreen.cpp | ChenliangLi205/NowCoder | 44e79800b56410d1094f18fbb656fadf724b7b21 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
using namespace std;
int main()
{
string s;
cin>>s;
int Rcnt = 0;
int Gcnt = 0;
for(char c : s)
{
if(c=='R') Rcnt++;
else Gcnt++;
}
int MinPaint = Rcnt < Gcnt ? Rcnt : Gcnt;
int leftR=0,leftG=0;
int rightR=Rcnt, rightG=Gcnt;
... | 19.266667 | 55 | 0.50519 | ChenliangLi205 |
f7a988c822c18f7add842c54e40dd608295e4da9 | 6,810 | cc | C++ | util/Test/tMHTest.cc | erikleitch/climax | 66ce64b0ab9f3a3722d3177cc5215ccf59369e88 | [
"MIT"
] | 1 | 2018-11-01T05:15:31.000Z | 2018-11-01T05:15:31.000Z | util/Test/tMHTest.cc | erikleitch/climax | 66ce64b0ab9f3a3722d3177cc5215ccf59369e88 | [
"MIT"
] | null | null | null | util/Test/tMHTest.cc | erikleitch/climax | 66ce64b0ab9f3a3722d3177cc5215ccf59369e88 | [
"MIT"
] | 2 | 2017-05-02T19:35:55.000Z | 2018-03-07T00:54:51.000Z | #include <iostream>
#include <iomanip>
#include <cmath>
#include "gcp/program/Program.h"
#include "gcp/util/ChisqVariate.h"
#include "gcp/util/Exception.h"
#include "gcp/util/Sampler.h"
#include "gcp/util/Distribution.h"
#include "gcp/util/Probability.h"
#include "gcp/util/UniformVariate.h"
#include "gcp/pgutil/PgU... | 30.132743 | 123 | 0.581498 | erikleitch |
f7a9ed0696323768db60dc6bae2548f7373672a7 | 1,313 | cpp | C++ | fboss/agent/platforms/sai/SaiBcmWedge40Platform.cpp | bkoray/fboss | 31ba4fab15b61ee36b7a117a80c7d55bb4dc70c0 | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/platforms/sai/SaiBcmWedge40Platform.cpp | bkoray/fboss | 31ba4fab15b61ee36b7a117a80c7d55bb4dc70c0 | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/platforms/sai/SaiBcmWedge40Platform.cpp | bkoray/fboss | 31ba4fab15b61ee36b7a117a80c7d55bb4dc70c0 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | 31.261905 | 79 | 0.724296 | bkoray |
f7aba2e75a501abc64840fe90228da5e86e22123 | 2,206 | cpp | C++ | tesseract_motion_planners/src/ompl/compound_state_validator.cpp | DavidMerzJr/tesseract_planning | 4678b2ed4af107d556f39360b493c5a898d41768 | [
"Apache-2.0",
"BSD-2-Clause"
] | 1 | 2022-02-28T13:22:28.000Z | 2022-02-28T13:22:28.000Z | tesseract_motion_planners/src/ompl/compound_state_validator.cpp | DavidMerzJr/tesseract_planning | 4678b2ed4af107d556f39360b493c5a898d41768 | [
"Apache-2.0",
"BSD-2-Clause"
] | 12 | 2019-06-04T19:04:12.000Z | 2020-09-11T14:33:25.000Z | tesseract_motion_planners/src/ompl/compound_state_validator.cpp | DavidMerzJr/tesseract_planning | 4678b2ed4af107d556f39360b493c5a898d41768 | [
"Apache-2.0",
"BSD-2-Clause"
] | 4 | 2018-07-25T15:16:52.000Z | 2019-10-02T16:43:52.000Z | /**
* @file compound_state_validator.cpp
* @brief Tesseract OMPL planner OMPL compound state validator
*
* @author Levi Armstrong
* @date February 17, 2020
* @version TODO
* @bug No known bugs
*
* @copyright Copyright (c) 2020, Southwest Research Institute
*
* @par License
* Software License Agreement (Apac... | 30.219178 | 94 | 0.774252 | DavidMerzJr |
f7b22b8c68dc90d049f2d8c1d65cdeb7f02ecc3b | 23,328 | cpp | C++ | OpenTESArena/src/Interface/GameWorldUiView.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | null | null | null | OpenTESArena/src/Interface/GameWorldUiView.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | null | null | null | OpenTESArena/src/Interface/GameWorldUiView.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | null | null | null | #include <algorithm>
#include "GameWorldPanel.h"
#include "GameWorldUiModel.h"
#include "GameWorldUiView.h"
#include "../Assets/ArenaPaletteName.h"
#include "../Assets/ArenaTextureName.h"
#include "../Game/Game.h"
#include "../Math/Constants.h"
#include "../Media/PortraitFile.h"
#include "../UI/ArenaFontName.h"
#inclu... | 33.136364 | 125 | 0.771091 | TotalCaesar659 |
fc8e81a6b9ce3498c7909ac7db607d9e6563a629 | 5,852 | cpp | C++ | Source/EU3World/EU3Localisation.cpp | Zemurin/EU3ToVic2 | 7df6de2039986ed46683d792ec0c72bbdf6a2f18 | [
"MIT"
] | 2 | 2020-03-29T02:03:42.000Z | 2020-03-29T08:53:57.000Z | Source/EU3World/EU3Localisation.cpp | klorpa/EU3ToVic2 | 7df6de2039986ed46683d792ec0c72bbdf6a2f18 | [
"MIT"
] | null | null | null | Source/EU3World/EU3Localisation.cpp | klorpa/EU3ToVic2 | 7df6de2039986ed46683d792ec0c72bbdf6a2f18 | [
"MIT"
] | 3 | 2020-03-28T21:17:58.000Z | 2022-01-11T00:04:25.000Z | /*Copyright (c) 2014 The Paradox Game Converters Project
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, mer... | 29.705584 | 153 | 0.69771 | Zemurin |
fc947f08df76a858fc6fb07e9fc8e82072e3a5f3 | 537 | cpp | C++ | Gear/src/Gear/Core/Scene.cpp | GearEngine/GearEngine | fa5ed49ca6289a215799a7b84ece1241eb33bd36 | [
"Apache-2.0"
] | 3 | 2020-03-05T06:56:51.000Z | 2020-03-12T09:36:20.000Z | Gear/src/Gear/Core/Scene.cpp | GearEngine/GearEngine | fa5ed49ca6289a215799a7b84ece1241eb33bd36 | [
"Apache-2.0"
] | 2 | 2020-03-05T15:40:28.000Z | 2020-03-11T16:04:44.000Z | Gear/src/Gear/Core/Scene.cpp | GearEngine/GearEngine | fa5ed49ca6289a215799a7b84ece1241eb33bd36 | [
"Apache-2.0"
] | null | null | null | #include "grpch.h"
#include "Scene.h"
namespace Gear {
Scene::Scene(const std::string& name)
: m_Name(name)
{
}
Scene::~Scene()
{
m_LayerStack.clear();
}
void Scene::PushLayer(Layer * layer)
{
m_LayerStack.PushLayer(layer);
layer->OnAttach();
}
void Scene::PushOverlay(Layer * overlay)
{
m_Laye... | 14.131579 | 41 | 0.670391 | GearEngine |
fc959c98ee5f0efa9c94fb5b5e9856d533e4904b | 1,171 | cpp | C++ | ProjectAugustusPieterCoenen/src/StartScreen.cpp | PieterCoenen/gba-sprite-engine | 1b9a9372733aa23423c5cf65c4c94f0d5436f4d5 | [
"MIT"
] | null | null | null | ProjectAugustusPieterCoenen/src/StartScreen.cpp | PieterCoenen/gba-sprite-engine | 1b9a9372733aa23423c5cf65c4c94f0d5436f4d5 | [
"MIT"
] | null | null | null | ProjectAugustusPieterCoenen/src/StartScreen.cpp | PieterCoenen/gba-sprite-engine | 1b9a9372733aa23423c5cf65c4c94f0d5436f4d5 | [
"MIT"
] | null | null | null | //
// Created by Pieter Coenen on 3/07/2021.
//
#include "StartScreen.h"
#include "MainScene.h"
#include <libgba-sprite-engine/background/text_stream.h>
StartScreen::StartScreen(const std::shared_ptr<GBAEngine> &engine) : Scene(engine){}
std::vector<Background *> StartScreen::backgrounds() {
return {};
}
std::v... | 30.815789 | 89 | 0.670367 | PieterCoenen |
fc985a5b04f3a83cc8a0ac006bfceaa856963015 | 5,669 | cpp | C++ | test/kernel/evaluator17.cpp | leanil/LambdaGen | aff49962759c1ce1fcfb2a1cc4a9a11d78e713a9 | [
"BSD-3-Clause"
] | 9 | 2017-04-25T11:28:01.000Z | 2019-07-11T13:53:27.000Z | test/kernel/evaluator17.cpp | leanil/LambdaGen | aff49962759c1ce1fcfb2a1cc4a9a11d78e713a9 | [
"BSD-3-Clause"
] | 16 | 2018-03-21T20:41:14.000Z | 2019-06-25T16:25:35.000Z | test/kernel/evaluator17.cpp | leanil/LambdaGen | aff49962759c1ce1fcfb2a1cc4a9a11d78e713a9 | [
"BSD-3-Clause"
] | null | null | null | #include "evaluator17.h"
namespace {
struct _Cl24 {
};
struct _Cl21 {
View<double*, double, to_list_t<P<3,4>>> u24;
};
struct _Cl3 {
};
struct _Cl15 {
};
struct _Cl7 {
};
struct _Cl11 {
};
static const std::map<std::string, double*>* userData;
View<double*, double, to_list_t<P<4,2>, P<2,1... | 33.152047 | 111 | 0.661669 | leanil |
fc995cadb65e809f1547f9c76e3850fc543a73e3 | 8,242 | cpp | C++ | src/bindings/c++/image_output-c++.cpp | JoniSt/sail | cdb993df2cf6f619a991719407df724207bfd4b0 | [
"MIT"
] | 83 | 2021-06-06T19:12:41.000Z | 2022-03-27T19:50:02.000Z | src/bindings/c++/image_output-c++.cpp | JoniSt/sail | cdb993df2cf6f619a991719407df724207bfd4b0 | [
"MIT"
] | 55 | 2021-06-15T07:25:19.000Z | 2022-03-31T16:15:26.000Z | src/bindings/c++/image_output-c++.cpp | JoniSt/sail | cdb993df2cf6f619a991719407df724207bfd4b0 | [
"MIT"
] | 7 | 2021-07-04T17:50:22.000Z | 2022-02-19T01:50:07.000Z | /* This file is part of SAIL (https://github.com/smoked-herring/sail)
Copyright (c) 2020 Dmitry Baryshev
The MIT License
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 with... | 29.541219 | 152 | 0.676899 | JoniSt |
fc9ab66aa69a87bfc613ad25120fac612f7b433a | 1,770 | cc | C++ | library/LayoutEmbedding/Visualization/RWTHColorGenerator.cc | jsb/LayoutEmbedding | 6ef02ed0043dfabce6d593486358d6ef15cbf3ba | [
"MIT"
] | 18 | 2021-02-18T15:35:25.000Z | 2022-03-01T07:20:37.000Z | library/LayoutEmbedding/Visualization/RWTHColorGenerator.cc | jsb/LayoutEmbedding | 6ef02ed0043dfabce6d593486358d6ef15cbf3ba | [
"MIT"
] | null | null | null | library/LayoutEmbedding/Visualization/RWTHColorGenerator.cc | jsb/LayoutEmbedding | 6ef02ed0043dfabce6d593486358d6ef15cbf3ba | [
"MIT"
] | 5 | 2021-02-17T14:52:42.000Z | 2021-10-05T09:51:25.000Z | #include "RWTHColorGenerator.hh"
#include <LayoutEmbedding/Visualization/RWTHColors.hh>
namespace
{
using namespace LayoutEmbedding;
static tg::color3 rwth_color_cycle[] =
{
RWTH_BLUE_100,
RWTH_MAGENTA_100,
RWTH_GREEN_100,
RWTH_RED_100,
RWTH_PURPLE_100,
RWTH_YELLOW_100,
RWTH_PETROL_100,
... | 19.450549 | 72 | 0.70791 | jsb |
fc9f79202273e0f5cf3fc84e16fe248bf362aaea | 1,568 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR/MethodBuilder.MakeGenericMethod/cpp/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_CLR/MethodBuilder.MakeGenericMethod/cpp/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_CLR/MethodBuilder.MakeGenericMethod/cpp/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z | // <Snippet1>
using namespace System;
using namespace System::Reflection;
using namespace System::Reflection::Emit;
void main()
{
// Define a transient dynamic assembly (only to run, not
// to save) with one module and a type "Test".
//
AssemblyName^ aName = gcnew AssemblyName("MyDynamic");
... | 38.243902 | 68 | 0.654337 | hamarb123 |
fca3adb9dbae4be47d5258c7b8358c851f9dbb4c | 708 | hpp | C++ | include/RED4ext/Types/generated/ink/BoxBlurEffect.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/ink/BoxBlurEffect.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/ink/BoxBlurEffect.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/generated/ink/EBlurDimension.hpp>
#include <RED4ext/Types/generated/ink/IEffect.hpp>
namespace RED4ext
{
namespace ink {
struct BoxBlurEffect... | 25.285714 | 59 | 0.721751 | Cyberpunk-Extended-Development-Team |
fca55a5035d692d5a71796f10fb52000b852687d | 336 | cpp | C++ | RememberWord/WinMain.cpp | cildhdi/RememberWord | 9e0e1ed3300aa99af457b840bd1995f799ac9c9f | [
"MIT"
] | null | null | null | RememberWord/WinMain.cpp | cildhdi/RememberWord | 9e0e1ed3300aa99af457b840bd1995f799ac9c9f | [
"MIT"
] | null | null | null | RememberWord/WinMain.cpp | cildhdi/RememberWord | 9e0e1ed3300aa99af457b840bd1995f799ac9c9f | [
"MIT"
] | null | null | null | #include "KrUI/KrCore.h"
#include "InitMainWindow.h"
using namespace KrUI;
KrUI::KrUIManager* pUi = KrUIManager::GetpKrUIManager();
int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nShowCmd)
{
pUi->Initialize(hInstance);
InitMainWindow();
return pUi->Me... | 22.4 | 119 | 0.770833 | cildhdi |
fca6a49a84d0118e74b1bcb7f7e940515e5c3a91 | 9,030 | cpp | C++ | src/solutions/aoc_day_16.cpp | bcooperstl/advent-of-code-2021 | 2efa65f51608bc47d2ab8add9c283f257f7fa181 | [
"MIT"
] | null | null | null | src/solutions/aoc_day_16.cpp | bcooperstl/advent-of-code-2021 | 2efa65f51608bc47d2ab8add9c283f257f7fa181 | [
"MIT"
] | null | null | null | src/solutions/aoc_day_16.cpp | bcooperstl/advent-of-code-2021 | 2efa65f51608bc47d2ab8add9c283f257f7fa181 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <cstdlib>
#include <algorithm>
#include <climits>
#include <utility>
#include "aoc_day_16.h"
#include "file_utils.h"
using namespace std;
using namespace Day16;
namespace Day16
{
Packet::Packet(int version, int type_id)
{
... | 31.137931 | 152 | 0.552159 | bcooperstl |
fca8a4b58d8a9a8a2fb780756bd769ede00459eb | 1,535 | hpp | C++ | h5cpp/H5Ialgorithm.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | 9 | 2022-01-29T22:21:19.000Z | 2022-03-10T06:26:40.000Z | h5cpp/H5Ialgorithm.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null | h5cpp/H5Ialgorithm.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 vargaconsulting, Toronto,ON Canada
* Author: Varga, Steven <steven@vargaconsulting.ca>
*
*/
#ifndef H5CPPI_ALGORITHM_HPP
#define H5CPPI_ALGORITHM_HPP
namespace h5 { namespace impl {
inline static herr_t iterate_callback( ::hid_t gid, const char *name, const H5L_info_t *info, void *op_da... | 33.369565 | 165 | 0.667101 | ChrisDrozdowski |
fcab41111681837d5cb447f2b5ca0dd98e620791 | 5,378 | cpp | C++ | src/state/tst/StateApiFunctionalityTest.cpp | lingjiekong/amazon-kinesis-video-streams-pic | 13a4b30c4a2f5757d7a6b48c83513d5f16916b33 | [
"Apache-2.0"
] | 29 | 2020-02-14T22:35:59.000Z | 2022-02-04T14:19:09.000Z | src/state/tst/StateApiFunctionalityTest.cpp | lingjiekong/amazon-kinesis-video-streams-pic | 13a4b30c4a2f5757d7a6b48c83513d5f16916b33 | [
"Apache-2.0"
] | 137 | 2020-01-28T23:24:43.000Z | 2022-03-21T05:06:53.000Z | src/state/tst/StateApiFunctionalityTest.cpp | lingjiekong/amazon-kinesis-video-streams-pic | 13a4b30c4a2f5757d7a6b48c83513d5f16916b33 | [
"Apache-2.0"
] | 31 | 2020-02-24T19:47:41.000Z | 2022-03-30T08:50:45.000Z | #include "StateTestFixture.h"
class StateApiFunctionalityTest : public StateTestBase {
public:
StateApiFunctionalityTest() : mTestStateCount(0) {}
UINT32 mTestStateCount;
};
TEST_F(StateApiFunctionalityTest, checkStateIterationFailure)
{
UINT32 i;
PStateMachineState pStateMachineState;
PStateMach... | 36.835616 | 95 | 0.693938 | lingjiekong |
fcae246b24308a903984dfa00972eb719a9a8a62 | 10,967 | cpp | C++ | src/Mustl/MustlProtocol.cpp | mushware/adanaxis-core-app | 679ac3e8a122e059bb208e84c73efc19753e87dd | [
"MIT"
] | 9 | 2020-11-02T17:20:40.000Z | 2021-12-25T15:35:36.000Z | src/Mustl/MustlProtocol.cpp | mushware/adanaxis-core-app | 679ac3e8a122e059bb208e84c73efc19753e87dd | [
"MIT"
] | 2 | 2020-06-27T23:14:13.000Z | 2020-11-02T17:28:32.000Z | src/Mustl/MustlProtocol.cpp | mushware/adanaxis-core-app | 679ac3e8a122e059bb208e84c73efc19753e87dd | [
"MIT"
] | 1 | 2021-05-12T23:05:42.000Z | 2021-05-12T23:05:42.000Z | //%Header {
/*****************************************************************************
*
* File: src/Mustl/MustlProtocol.cpp
*
* Copyright: Andy Southgate 2002-2007, 2020
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (th... | 29.245333 | 127 | 0.631349 | mushware |
fcb46a8d5f0bce817bdebb4812e8fba7e9884c84 | 8,645 | cxx | C++ | src/lb/HttpConnection.cxx | nn6n/beng-proxy | 2cf351da656de6fbace3048ee90a8a6a72f6165c | [
"BSD-2-Clause"
] | 1 | 2022-03-15T22:54:39.000Z | 2022-03-15T22:54:39.000Z | src/lb/HttpConnection.cxx | nn6n/beng-proxy | 2cf351da656de6fbace3048ee90a8a6a72f6165c | [
"BSD-2-Clause"
] | null | null | null | src/lb/HttpConnection.cxx | nn6n/beng-proxy | 2cf351da656de6fbace3048ee90a8a6a72f6165c | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 abo... | 25.960961 | 91 | 0.723308 | nn6n |
fcb493a17cf77ff6f5e977e839df27696ebd32fd | 6,735 | cpp | C++ | message/iso_2022_jp_line_parser.cpp | cre-ne-jp/irclog2json | 721f9c6f247ae9d972dff8c1b3befa36bb1e062e | [
"MIT"
] | null | null | null | message/iso_2022_jp_line_parser.cpp | cre-ne-jp/irclog2json | 721f9c6f247ae9d972dff8c1b3befa36bb1e062e | [
"MIT"
] | 8 | 2019-08-26T22:57:37.000Z | 2021-09-11T17:35:50.000Z | message/iso_2022_jp_line_parser.cpp | cre-ne-jp/irclog2json | 721f9c6f247ae9d972dff8c1b3befa36bb1e062e | [
"MIT"
] | null | null | null | #include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
#include <unicode/unistr.h>
#include "message_base.h"
#include "utf8_line_parser.h"
#include "iso_2022_jp_line_parser.h"
namespace {
/** ISO-2022-JPの文字集合を表す列挙型。 */
enum class Iso2022JpCharset {
/** ASCII。 */
A... | 27.048193 | 80 | 0.675575 | cre-ne-jp |
fcb8399068fffaebced55c8e6d755d63cd58f3dc | 38,787 | cpp | C++ | RegisterWindow.cpp | andkrau/nuance | 32b9d6b9257c6c51944727456fce2e7caf074182 | [
"W3C"
] | null | null | null | RegisterWindow.cpp | andkrau/nuance | 32b9d6b9257c6c51944727456fce2e7caf074182 | [
"W3C"
] | null | null | null | RegisterWindow.cpp | andkrau/nuance | 32b9d6b9257c6c51944727456fce2e7caf074182 | [
"W3C"
] | null | null | null | /****************************************************************************
** Form implementation generated from reading ui file 'RegisterWindow.ui'
**
** Created: Sat Oct 25 03:00:10 2003
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
**********************... | 46.175 | 145 | 0.666409 | andkrau |
fcb88c5d42b3f49eb5185c90ee9d51db296c9061 | 11,992 | cxx | C++ | main/avmedia/source/quicktime/qt_player.cxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | 1 | 2019-12-27T19:25:34.000Z | 2019-12-27T19:25:34.000Z | main/avmedia/source/quicktime/qt_player.cxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | null | null | null | main/avmedia/source/quicktime/qt_player.cxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | null | null | null | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 26.069565 | 170 | 0.501418 | ackza |
fcbb67a4ef5206a70a12aeaeea82ec292627af01 | 1,747 | hpp | C++ | rmoss_cam/include/rmoss_cam/image_task_demo_node.hpp | Ericsii/rmoss_core | f7c68373c738f82480c31032dab7bdffef218bab | [
"Apache-2.0"
] | null | null | null | rmoss_cam/include/rmoss_cam/image_task_demo_node.hpp | Ericsii/rmoss_core | f7c68373c738f82480c31032dab7bdffef218bab | [
"Apache-2.0"
] | null | null | null | rmoss_cam/include/rmoss_cam/image_task_demo_node.hpp | Ericsii/rmoss_core | f7c68373c738f82480c31032dab7bdffef218bab | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 RoboMaster-OSS
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 28.639344 | 90 | 0.761878 | Ericsii |
fcbc82ee670a9c7e6e0a935412e1cd590c6c77ce | 556 | cpp | C++ | plugins/blw_pluginlicensedialog/source/main.cpp | urender-vt/cinema4d_cpp_sdk_extended | 77235d2e382d1536e0e694609929dbb74883072a | [
"Apache-2.0"
] | 23 | 2018-09-05T21:11:07.000Z | 2022-01-12T10:43:17.000Z | plugins/blw_pluginlicensedialog/source/main.cpp | urender-vt/cinema4d_cpp_sdk_extended | 77235d2e382d1536e0e694609929dbb74883072a | [
"Apache-2.0"
] | null | null | null | plugins/blw_pluginlicensedialog/source/main.cpp | urender-vt/cinema4d_cpp_sdk_extended | 77235d2e382d1536e0e694609929dbb74883072a | [
"Apache-2.0"
] | 4 | 2019-07-12T16:57:20.000Z | 2021-06-23T15:33:09.000Z | //
// main.cpp
// blw_pluginlicensedialog
//
// Created by Riccardo Gigante on 23/07/2019.
// Copyright © 2019 MAXON Computer GmbH. All rights reserved.
//
#include "c4d_resource.h"
#include "main.h"
Bool PluginStart()
{
// register the CommandData to generate the plugin license dialog
if (!RegisterBLWPluginLi... | 14.631579 | 66 | 0.690647 | urender-vt |
fcbe25a55e281baff4d6f7b81b2e740471cb555b | 9,091 | cpp | C++ | Game/Source/App.cpp | Montuuh/LosPanasGame | 6884216355b1b6e0e1d6ac371e2e48ad25c833ec | [
"MIT"
] | null | null | null | Game/Source/App.cpp | Montuuh/LosPanasGame | 6884216355b1b6e0e1d6ac371e2e48ad25c833ec | [
"MIT"
] | null | null | null | Game/Source/App.cpp | Montuuh/LosPanasGame | 6884216355b1b6e0e1d6ac371e2e48ad25c833ec | [
"MIT"
] | null | null | null | #include "App.h"
#include "Window.h"
#include "Input.h"
#include "Render.h"
#include "Textures.h"
#include "Audio.h"
#include "Scene.h"
#include "DeathScene.h"
#include "ModuleFadeToBlack.h"
#include "TitleScreen.h"
#include "ModulePlayer.h"
#include "ModuleHud.h"
#include "Map.h"
#include "ModuleInitialScreen.h"
#incl... | 19.634989 | 92 | 0.650423 | Montuuh |
fcbf6c7837c46645f149fb41284cf81b642a7d96 | 2,492 | cpp | C++ | engine/ui/gGUIToolbarButton.cpp | taytay87/GlistEngine | d8d207233427d4196da2ffcb99c52aa80f4a4582 | [
"Apache-2.0"
] | null | null | null | engine/ui/gGUIToolbarButton.cpp | taytay87/GlistEngine | d8d207233427d4196da2ffcb99c52aa80f4a4582 | [
"Apache-2.0"
] | null | null | null | engine/ui/gGUIToolbarButton.cpp | taytay87/GlistEngine | d8d207233427d4196da2ffcb99c52aa80f4a4582 | [
"Apache-2.0"
] | null | null | null | /*
* gGUIToolbarButton.cpp
*
* Created on: Sep 25, 2021
* Author: noyan
*/
#include "gGUIToolbarButton.h"
//gGUIResources gGUIToolbarButton::res;
gGUIToolbarButton::gGUIToolbarButton() {
iconid = gGUIResources::ICON_NONE;
setSize(32, 32);
setTitle("");
setToggle(false);
setDisabled(false);
setTextV... | 27.688889 | 188 | 0.691413 | taytay87 |
fcc1f5ef8ebfefdf924aac2e2e0db8590d6185b2 | 1,455 | cpp | C++ | 075. Sort Colors.cpp | rajeev-ranjan-au6/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | 3 | 2020-12-30T00:29:59.000Z | 2021-01-24T22:43:04.000Z | 075. Sort Colors.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | 075. Sort Colors.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | /**
* 1. Put '0's to the low position.
* 2. Put '2's to the high position.
* 3. Jump '1's.
*/
class Solution {
public:
void sortColors(vector<int>& nums) {
int low = 0, high = nums.size()-1;
for(int i = 0; i <= high;)
if(nums[i] == 0)
swap(nums[i++], nums[low++]);
... | 26.944444 | 85 | 0.457732 | rajeev-ranjan-au6 |
fcc814c7f135e5c75bcd0ed43971cc0792fb75d9 | 646 | cpp | C++ | SpriteExtractorApp/Services/ImGuiManager/ImGuiManager.cpp | jowie94/SpriteExtractor | 96934f241e33229638beb8914ac68e866696433b | [
"MIT"
] | 1 | 2019-01-15T15:14:47.000Z | 2019-01-15T15:14:47.000Z | SpriteExtractorApp/Services/ImGuiManager/ImGuiManager.cpp | jowie94/SpriteExtractor | 96934f241e33229638beb8914ac68e866696433b | [
"MIT"
] | null | null | null | SpriteExtractorApp/Services/ImGuiManager/ImGuiManager.cpp | jowie94/SpriteExtractor | 96934f241e33229638beb8914ac68e866696433b | [
"MIT"
] | null | null | null | #include "ImGuiManager.hpp"
#include "Services/Services.hpp"
#include "Services/Scheduler/Scheduler.hpp"
#include "UI/BaseWindow.hpp"
ImGuiManager::ImGuiManager() = default;
ImGuiManager::~ImGuiManager() = default;
void ImGuiManager::Init()
{
Services::GetInstance().Get<Scheduler>()->Schedule(this, std::bind(&I... | 19 | 101 | 0.695046 | jowie94 |
fccd7269147aba4f81ac0a6004a2d3e0a9e6b5a1 | 7,978 | cpp | C++ | inventory.cpp | loctyr/RedwoodInventory | 642e4dbd9ebaa98e85542e19b8b2b9d7ab220036 | [
"MIT"
] | null | null | null | inventory.cpp | loctyr/RedwoodInventory | 642e4dbd9ebaa98e85542e19b8b2b9d7ab220036 | [
"MIT"
] | null | null | null | inventory.cpp | loctyr/RedwoodInventory | 642e4dbd9ebaa98e85542e19b8b2b9d7ab220036 | [
"MIT"
] | null | null | null | #include "inventory.h"
#include "itemfactory.h"
#include "dbadapter.h"
const int delta_x = 0;
const int delta_y = 0;
const int cellHeight = 100;
const int cellWidth = 100;
Inventory::Inventory(int rows, int columns, QWidget *parent) : QTableWidget(rows, columns, parent) {
init();
}
Inventory::Inven... | 32.169355 | 131 | 0.531462 | loctyr |
fcd005e9ca5230476fcd955e8b5f81a9da0090da | 6,044 | cc | C++ | goopdate/download_complete_ping_event_test.cc | rocious/omaha | 44a58900e58979362ad18de6867d804bee0f1b91 | [
"Apache-2.0"
] | 4 | 2016-05-19T09:22:52.000Z | 2020-10-22T03:45:41.000Z | goopdate/download_complete_ping_event_test.cc | rocious/omaha | 44a58900e58979362ad18de6867d804bee0f1b91 | [
"Apache-2.0"
] | 1 | 2015-06-15T06:26:34.000Z | 2015-06-15T06:26:34.000Z | goopdate/download_complete_ping_event_test.cc | rocious/omaha | 44a58900e58979362ad18de6867d804bee0f1b91 | [
"Apache-2.0"
] | 1 | 2015-06-24T19:26:58.000Z | 2015-06-24T19:26:58.000Z | // Copyright 2011 Google Inc.
//
// 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... | 40.563758 | 77 | 0.622766 | rocious |
fcd9c0036dd7ff8c745fbfc78c3b1a0a7b7cbf67 | 12,626 | cpp | C++ | FEBioSource2.9/FEBioMech/FELinearSolidDomain.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | 1 | 2021-08-24T08:37:21.000Z | 2021-08-24T08:37:21.000Z | FEBioSource2.9/FEBioMech/FELinearSolidDomain.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | null | null | null | FEBioSource2.9/FEBioMech/FELinearSolidDomain.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | 1 | 2021-03-15T08:22:06.000Z | 2021-03-15T08:22:06.000Z | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2019 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... | 29.092166 | 124 | 0.581578 | wzaylor |
fcdb3a5cc6b2dd806854d67e628f9fe9e979bf27 | 565 | cpp | C++ | CCC 2017/S1.cpp | tiantian-iscool/Informatics-1 | 7e81d1113b0425087ffa9e6fd29b081c193c27fb | [
"MIT"
] | 2 | 2018-07-24T00:38:55.000Z | 2018-07-24T00:59:11.000Z | CCC 2017/S1.cpp | Elodin77/ORAC | 7e81d1113b0425087ffa9e6fd29b081c193c27fb | [
"MIT"
] | 1 | 2020-06-17T00:55:34.000Z | 2020-06-17T00:55:34.000Z | CCC 2017/S1.cpp | Elodin77/ORAC | 7e81d1113b0425087ffa9e6fd29b081c193c27fb | [
"MIT"
] | 2 | 2020-06-17T00:50:26.000Z | 2021-08-24T23:08:12.000Z | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
vector<int> swift;
vector<int> semap;
scanf("%d",&n);
int temp;
for (int i=0;i<n;i++) {
scanf("%d",&temp);
swift.push_back(temp);
}
for (int i=0;i<n;i++) {
scanf("%d",&temp);
semap.push_bac... | 18.833333 | 30 | 0.453097 | tiantian-iscool |
fcdc9c2238a2935a76b916a774c7c6e33c4f6d98 | 565 | cpp | C++ | chapter06/6.4_Overloaded_Functions/6.4.1_Overloading_and_Scope.cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | 9 | 2019-05-10T05:39:21.000Z | 2022-02-22T08:04:52.000Z | chapter06/6.4_Overloaded_Functions/6.4.1_Overloading_and_Scope.cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | null | null | null | chapter06/6.4_Overloaded_Functions/6.4.1_Overloading_and_Scope.cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | 6 | 2019-05-13T13:39:19.000Z | 2022-02-22T08:05:01.000Z | /**
* 6.4.1 重载与作用域
* @Author Bob
* @Eamil 0haizhu0@gmail.com
* @Date 2017/8/14
*/
#include <string>
using std::string;
int main() {
/**
* 不同作用域的函数不能重载,内层函数会忽略外层的同名函数。
* TODO:编译没通过……
*/
string read();
void print(const string &);
void print(double);
void fooBar(int ival) {
bool read = fals... | 17.65625 | 63 | 0.587611 | NorthFacing |
fce1c89f0cfc5ccd5f843dfb15b9837f042c151d | 866 | cpp | C++ | target.cpp | ouonline/omake | 9d57e98ad7132c50999c6e829de1dc387157a1e1 | [
"MIT"
] | null | null | null | target.cpp | ouonline/omake | 9d57e98ad7132c50999c6e829de1dc387157a1e1 | [
"MIT"
] | null | null | null | target.cpp | ouonline/omake | 9d57e98ad7132c50999c6e829de1dc387157a1e1 | [
"MIT"
] | null | null | null | #include "target.h"
#include "common.h"
#include <iostream>
#include <algorithm>
using namespace std;
void Target::AddDependency(const Dependency* dep) {
auto it = std::find(m_deps.begin(), m_deps.end(), dep);
if (it == m_deps.end()) {
m_deps.push_back(dep);
} else {
cerr << "AddDependency(... | 20.619048 | 83 | 0.556582 | ouonline |
fce663e5064ab9ce4a2c3e971672d67dd2963157 | 3,384 | hpp | C++ | Pods/Headers/Private/GeoFeatures/boost/function_types/detail/pp_cc_loop/preprocessed.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | null | null | null | Pods/Headers/Private/GeoFeatures/boost/function_types/detail/pp_cc_loop/preprocessed.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | null | null | null | Pods/Headers/Private/GeoFeatures/boost/function_types/detail/pp_cc_loop/preprocessed.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | null | null | null |
// (C) Copyright Tobias Schwinger
//
// Use modification and distribution are subject to the boost Software License,
// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
//------------------------------------------------------------------------------
// no include guards, this file is intended for multiple in... | 27.966942 | 80 | 0.808511 | xarvey |
fcee28d91b53f48c7d5ce07edf03f8455fa89e27 | 4,340 | cpp | C++ | game_engine/src/npc.cpp | Jimmyee/Endless-Online-Awaken | 1af1e07fb8ae88d87e76fdf297422cff1c0bacab | [
"MIT"
] | 14 | 2017-06-01T16:00:25.000Z | 2021-12-01T16:02:00.000Z | game_engine/src/npc.cpp | Jimmyee/Endless-Online-Awaken | 1af1e07fb8ae88d87e76fdf297422cff1c0bacab | [
"MIT"
] | null | null | null | game_engine/src/npc.cpp | Jimmyee/Endless-Online-Awaken | 1af1e07fb8ae88d87e76fdf297422cff1c0bacab | [
"MIT"
] | 4 | 2017-10-04T22:51:44.000Z | 2021-03-18T10:16:02.000Z | // Endless Online Awaken
#include "npc.hpp"
#include "gfx_loader.hpp"
#include "util.hpp"
#include <allegro5/allegro.h>
#include <iostream>
NPC::NPC()
{
this->id = 0;
this->index = 0;
this->name = "";
this->map_id = 0;
this->x = 0;
this->y = 0;
this->direction = (Direction)0;
this->s... | 23.333333 | 104 | 0.573963 | Jimmyee |
fcf5650aa49427c1bc345a94923bfe12706342ba | 1,147 | cpp | C++ | pbe/src/pbe/Core/UUID.cpp | pavilbezpravil/pbEngine | 55c051bdb296f0960ad05447d385a554334c4b5c | [
"Apache-2.0"
] | null | null | null | pbe/src/pbe/Core/UUID.cpp | pavilbezpravil/pbEngine | 55c051bdb296f0960ad05447d385a554334c4b5c | [
"Apache-2.0"
] | null | null | null | pbe/src/pbe/Core/UUID.cpp | pavilbezpravil/pbEngine | 55c051bdb296f0960ad05447d385a554334c4b5c | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "UUID.h"
#include <random>
#include <unordered_set>
namespace pbe {
static std::random_device s_RandomDevice;
static std::mt19937_64 eng(s_RandomDevice());
static std::uniform_int_distribution<uint64_t> s_UniformDistribution;
static std::unordered_set<uint64_t> s_GeneretedUUID;
UUID ... | 21.240741 | 121 | 0.707934 | pavilbezpravil |
fcf682fa4a7fd3eb14cc6e3cc4153b8af0eac67e | 306 | hpp | C++ | code/src/utility/preprocessor/count_arguments.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 3 | 2020-04-29T14:55:58.000Z | 2020-08-20T08:43:24.000Z | code/src/utility/preprocessor/count_arguments.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 1 | 2022-03-12T11:37:46.000Z | 2022-03-12T20:17:38.000Z | code/src/utility/preprocessor/count_arguments.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | null | null | null | #pragma once
// #include "utility/preprocessor/common.hpp"
#define __PP_COUNT_ARGUMENTS(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, n, ...) n
#define PP_COUNT_ARGUMENTS(...) PP_UNPACK(__PP_COUNT_ARGUMENTS(__VA_ARGS__, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0))
| 43.714286 | 134 | 0.653595 | shossjer |
fcf6df23ee3dfd88cd3d13a78322c143d8d33eb6 | 12,697 | cpp | C++ | NULL Engine/Source/I_Textures.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | NULL Engine/Source/I_Textures.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | NULL Engine/Source/I_Textures.cpp | xsiro/NULL_Engine | bb8da3de7f507b27d895cf8066a03faa115ff3c6 | [
"MIT"
] | null | null | null | // ----------------------------------------------------
// I_Textures.cpp --- Importing textures from files.
// Interface class between engine and DevIL.
// ----------------------------------------------------
#include "OpenGL.h"
#include "DevIL.h"
#include "VariableTypedefs.h"
#include "Log.h"
#include "Random.h"
... | 33.949198 | 177 | 0.63259 | xsiro |
fcfd13e039f3bee1510773b98934519eb30e3ea2 | 6,252 | cpp | C++ | src/pal.cpp | netpipe/IrrPAL | 39cfbe497c0d18a3b63f1a7758a2b979977d8efb | [
"BSD-3-Clause"
] | null | null | null | src/pal.cpp | netpipe/IrrPAL | 39cfbe497c0d18a3b63f1a7758a2b979977d8efb | [
"BSD-3-Clause"
] | null | null | null | src/pal.cpp | netpipe/IrrPAL | 39cfbe497c0d18a3b63f1a7758a2b979977d8efb | [
"BSD-3-Clause"
] | null | null | null | //#include "pal.h"
#include "palFactory.h"
#include <algorithm>
#include <iostream>
/*
Abstract:
PAL - Physics Abstraction Layer.
Implementation File
Author:
Adrian Boeing
Revision History:
Version 0.84:19/09/06 GPS, remerged
Version 0.83:17/02/05 velocimeter update
Version 0.82:16/02/05 Changed velocim... | 23.070111 | 130 | 0.679942 | netpipe |
fcfd70e6e172d745d863b1c25628a9533ef25108 | 4,694 | cpp | C++ | Modules/Pharmacokinetics/src/Models/mitkExtendedOneTissueCompartmentModel.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | 1 | 2021-11-20T08:19:27.000Z | 2021-11-20T08:19:27.000Z | Modules/Pharmacokinetics/src/Models/mitkExtendedOneTissueCompartmentModel.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | Modules/Pharmacokinetics/src/Models/mitkExtendedOneTissueCompartmentModel.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 30.881579 | 140 | 0.770984 | wyyrepo |
fcfdd13009af5cf08afdc3609e877cb3d07fe652 | 3,691 | cc | C++ | util/crypto/rsa_private_key.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | 1 | 2020-09-22T05:59:36.000Z | 2020-09-22T05:59:36.000Z | util/crypto/rsa_private_key.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | null | null | null | util/crypto/rsa_private_key.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | 1 | 2022-02-03T11:05:44.000Z | 2022-02-03T11:05:44.000Z | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "util/crypto/rsa_private_key.h"
#include <stdint.h>
#include <algorithm>
#include <memory>
#include <utility>
#include "openssl/bn.h"
#include... | 28.392308 | 79 | 0.718504 | gtalis |
1e01fe49739c5650fe44ca9484d821763889496b | 2,145 | hpp | C++ | include/memoria/core/tools/random.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2021-07-30T16:54:24.000Z | 2021-09-08T15:48:17.000Z | include/memoria/core/tools/random.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | null | null | null | include/memoria/core/tools/random.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2020-03-14T15:15:25.000Z | 2020-06-15T11:26:56.000Z |
// Copyright 2015 Victor Smirnov
//
// 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... | 20.428571 | 80 | 0.681585 | victor-smirnov |
1f6227a356dfbb1fe010421c2a9d59f061be50c0 | 6,521 | cc | C++ | tvm/src/schedule/partition.cc | hecmay/heterocl | e91eb4841f09385f676615cd246642744d08dd7c | [
"Apache-2.0"
] | 5 | 2019-11-09T14:30:47.000Z | 2020-10-30T04:47:47.000Z | tvm/src/schedule/partition.cc | hecmay/heterocl | e91eb4841f09385f676615cd246642744d08dd7c | [
"Apache-2.0"
] | null | null | null | tvm/src/schedule/partition.cc | hecmay/heterocl | e91eb4841f09385f676615cd246642744d08dd7c | [
"Apache-2.0"
] | 2 | 2019-10-01T18:01:09.000Z | 2020-09-15T02:36:59.000Z | /*!
* Copyright (c) 2016 by Contributors
* \file bound.cc
* \brief The bound inference logic.
*/
#include <tvm/ir_visitor.h>
#include <tvm/schedule_pass.h>
#include <tvm/operation.h>
#include <tvm/ir_pass.h>
#include <unordered_map>
#include <unordered_set>
#include "./graph.h"
#include "./message_passing.h"
#incl... | 28.726872 | 77 | 0.608649 | hecmay |
1f632e6a75fd0f4882f25caa7d5f39dffe4055f3 | 99,048 | cpp | C++ | Development/SDKs/1.7.1/SDK/UWorksUtilities_functions.cpp | ResaloliPT/HydroneerReleases | 3a3501f04608cea77ccbf7229f94089295128ea7 | [
"Unlicense"
] | null | null | null | Development/SDKs/1.7.1/SDK/UWorksUtilities_functions.cpp | ResaloliPT/HydroneerReleases | 3a3501f04608cea77ccbf7229f94089295128ea7 | [
"Unlicense"
] | null | null | null | Development/SDKs/1.7.1/SDK/UWorksUtilities_functions.cpp | ResaloliPT/HydroneerReleases | 3a3501f04608cea77ccbf7229f94089295128ea7 | [
"Unlicense"
] | null | null | null | // Name: Hydroneer, Version: 1.7.1
#include "../pch.h"
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Functions
//------------------------------------------------... | 42.183986 | 238 | 0.673603 | ResaloliPT |
1f640468691231dfb6e4127658b291da2ee2e780 | 375 | hpp | C++ | src/Ui.hpp | rohandas36/FlowuUiN | 6a152cea7867289dd3743ad5e04e1a0207638b50 | [
"Unlicense"
] | null | null | null | src/Ui.hpp | rohandas36/FlowuUiN | 6a152cea7867289dd3743ad5e04e1a0207638b50 | [
"Unlicense"
] | null | null | null | src/Ui.hpp | rohandas36/FlowuUiN | 6a152cea7867289dd3743ad5e04e1a0207638b50 | [
"Unlicense"
] | null | null | null | #ifndef UI_H
#define UI_H
#include <vector>
#include <math.h>
#include <GLFW/glfw3.h>
#include "Vector3.hpp"
#include "Vector4.hpp"
#include "Matrix4.hpp"
#include "Grid.hpp"
using namespace std;
void UiInit(GLFWwindow* window);
void updateState(GLFWwindow* window, Grid* fluid,
Vector3* camerapos,Vector3* camer... | 17.857143 | 59 | 0.736 | rohandas36 |
1f68ad4010ed361c91305f62d8e3390dc22325a2 | 1,934 | cpp | C++ | sdl2/anotherworld/resource_3do.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/anotherworld/resource_3do.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/anotherworld/resource_3do.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null |
#include "resource_3do.h"
#include "util.h"
#define MAXPATHLEN 256
static int decodeLzss(const uint8_t *src, uint32_t len, uint8_t *dst) {
uint32_t rd = 0, wr = 0;
int code = 0x100 | src[rd++];
while (rd < len) {
const bool bit = (code & 1);
code >>= 1;
if (bit) {
dst[wr++] = src[rd++];
} else {
con... | 21.977273 | 71 | 0.582213 | pdpdds |
1f692b53f6b7de4ccd97d4405c360c8f309096e9 | 4,598 | cpp | C++ | myIDCT.cpp | ThomasNelson383/SimpleJPEGCompressor | 0ddc23a50e13afb3eb4ca98e405bb4e186b0b492 | [
"MIT"
] | null | null | null | myIDCT.cpp | ThomasNelson383/SimpleJPEGCompressor | 0ddc23a50e13afb3eb4ca98e405bb4e186b0b492 | [
"MIT"
] | null | null | null | myIDCT.cpp | ThomasNelson383/SimpleJPEGCompressor | 0ddc23a50e13afb3eb4ca98e405bb4e186b0b492 | [
"MIT"
] | null | null | null | //Thomas Nelson
#include "common.h"
matrix unZigZagMatrix(matrix in) {
matrix unZigZag;
unZigZag.initializeV(8, 8);
bool goingDown = false;
int oldCol = 0;
int oldRow = 0;
int newCol = 0;
int newRow = 0;
do {
//The only real difference from ZigZag to this is
//I switched old with New here
unZigZag.v[ol... | 24.588235 | 75 | 0.578077 | ThomasNelson383 |
1f716c7efd4c06681ed2a31673971a0826bbb4b0 | 285 | cpp | C++ | UT_MOS_6502_Emulator/MemoryTest.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | UT_MOS_6502_Emulator/MemoryTest.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | UT_MOS_6502_Emulator/MemoryTest.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "../MOS_6502_Emulator/Memory.h"
TEST(MemeoryTest, ReadWriteTest)
{
Memory testItem(16);
testItem.write(0x05, std::vector<BYTE>{0x01, 0x02, 0x03});
auto result = testItem.read(0x06, 2);
ASSERT_EQ(result[0], 0x02);
ASSERT_EQ(result[1], 0x03);
} | 20.357143 | 59 | 0.708772 | yu830425 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.