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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
633f226b759776df06943ecdcf0a51ee31c32c59 | 958 | cpp | C++ | BrotBoxEngine/MouseButtons.cpp | siretty/BrotBoxEngine | e1eb95152ffb8a7051e96a8937aa62f568b90a27 | [
"MIT"
] | 37 | 2020-06-14T18:14:08.000Z | 2022-03-29T18:39:34.000Z | BrotBoxEngine/MouseButtons.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | 2 | 2021-04-05T15:34:18.000Z | 2021-05-28T00:04:56.000Z | BrotBoxEngine/MouseButtons.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | 10 | 2020-06-25T17:07:03.000Z | 2022-03-08T20:31:17.000Z | #include "BBE/MouseButtons.h"
#include "BBE/Exceptions.h"
bbe::String bbe::mouseButtonToString(MouseButton button)
{
switch (button)
{
case MouseButton::LEFT:
return bbe::String("MB_LEFT");
case MouseButton::RIGHT:
return bbe::String("MB_RIGHT");
case MouseButton::MIDDLE:
return bbe::String("MB_MIDDLE");
c... | 21.288889 | 56 | 0.693111 | siretty |
6342a192baf2b2c8e02b65210518b607600111bd | 2,038 | cpp | C++ | src/MpiOp.cpp | seanmarks/mpi_cpp | a4dda9d310d494272ace08e5e1af2a8a3dc5e029 | [
"MIT"
] | null | null | null | src/MpiOp.cpp | seanmarks/mpi_cpp | a4dda9d310d494272ace08e5e1af2a8a3dc5e029 | [
"MIT"
] | null | null | null | src/MpiOp.cpp | seanmarks/mpi_cpp | a4dda9d310d494272ace08e5e1af2a8a3dc5e029 | [
"MIT"
] | null | null | null | // Written by Sean M. Marks (https://github.com/seanmarks)
#include "MpiOp.h"
MpiOp::MpiOp():
user_function_ptr_(nullptr),
is_commutative_(false)
{}
MpiOp::MpiOp(const MpiOp& mpi_op)
{
this->user_function_ptr_ = mpi_op.user_function_ptr_;
this->is_commutative_ = mpi_op.is_commutative_;
#ifdef MPI_ENABLED
if ... | 25.160494 | 79 | 0.653582 | seanmarks |
634a66eb2fb62de35ceb1659257be7ca6d005f1d | 42 | cpp | C++ | src/LlvmVal.cpp | djmzp/OrbLang | 65b82cb614b39a1946cfa04d042880b7b36412c1 | [
"MIT"
] | 29 | 2020-11-19T16:07:45.000Z | 2022-01-24T09:58:59.000Z | src/LlvmVal.cpp | djmzp/OrbLang | 65b82cb614b39a1946cfa04d042880b7b36412c1 | [
"MIT"
] | null | null | null | src/LlvmVal.cpp | djmzp/OrbLang | 65b82cb614b39a1946cfa04d042880b7b36412c1 | [
"MIT"
] | 5 | 2021-01-06T11:46:59.000Z | 2022-02-06T03:41:50.000Z | #include "LlvmVal.h"
using namespace std;
| 14 | 20 | 0.761905 | djmzp |
634b64c75154a938ff8b169543b02b5d5e81148c | 4,075 | cpp | C++ | src/ui/widgets/WidgetList.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 65 | 2018-06-03T23:09:46.000Z | 2021-07-22T22:03:34.000Z | src/ui/widgets/WidgetList.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 8 | 2018-06-20T17:21:30.000Z | 2020-06-30T01:06:26.000Z | src/ui/widgets/WidgetList.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 34 | 2018-06-04T03:40:52.000Z | 2022-02-15T07:02:05.000Z | #include "Vorb/stdafx.h"
#include "Vorb/ui/widgets/WidgetList.h"
vui::WidgetList::WidgetList() :
Widget(),
m_spacing(10.0f),
m_maxHeight(FLT_MAX) {
// Empty
}
vui::WidgetList::~WidgetList() {
// Empty
}
void vui::WidgetList::initBase() {
m_panel.init(this, getName() + "_panel");
m_panel.... | 26.121795 | 152 | 0.628712 | ChillstepCoder |
634c0bede4bb3788285d7582d75feea8c10f3c1e | 233 | cpp | C++ | A/546/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | A/546/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | A/546/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int k, n, w, total(0);
cin >> k >> n >> w;
for (int i(0); i <= w; i++)
total = total + k * i;
if ((total - n) > 0)
cout << total - n;
else
cout << 0;
return 0;
}
| 11.65 | 28 | 0.493562 | ABGEO07 |
63531c43da4d6cd926718a4b27d437150bdd83aa | 2,651 | cpp | C++ | common/lock.cpp | raddinet/raddi | 87e4996dda8ccc0591ffecbd8d717a1a2947e8a9 | [
"MIT"
] | 39 | 2018-05-20T14:08:46.000Z | 2022-02-23T15:46:03.000Z | common/lock.cpp | raddinet/raddi | 87e4996dda8ccc0591ffecbd8d717a1a2947e8a9 | [
"MIT"
] | null | null | null | common/lock.cpp | raddinet/raddi | 87e4996dda8ccc0591ffecbd8d717a1a2947e8a9 | [
"MIT"
] | 3 | 2019-02-26T21:00:19.000Z | 2022-02-03T22:30:52.000Z | #include "lock.h"
namespace {
void WINAPI defaultCsInit (void ** object) {
auto cs = new CRITICAL_SECTION;
InitializeCriticalSectionAndSpinCount (cs, 32);
*object = cs;
}
void WINAPI defaultInit (void ** object) {
if (!lock::initialize ()) {
defaultCsInit (object... | 36.315068 | 139 | 0.612976 | raddinet |
6353231b679b3c06924d1ffb4cd1d140be4ff834 | 38 | cpp | C++ | BASIC c++/beginning_with_cpp/token_structure_controlstructure/exercise-3.7_cosx.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/beginning_with_cpp/token_structure_controlstructure/exercise-3.7_cosx.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/beginning_with_cpp/token_structure_controlstructure/exercise-3.7_cosx.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | //
// Created by rahul on 21/7/19.
//
| 9.5 | 31 | 0.552632 | jattramesh |
636003c01d42140517efea949c39a554c92031c4 | 6,134 | cpp | C++ | src/RichText.cpp | ApertaTeam/utengine | e641a76b6c0042a4b581f1ec51798b74f2bb5293 | [
"MIT"
] | 1 | 2019-06-19T10:19:33.000Z | 2019-06-19T10:19:33.000Z | src/RichText.cpp | ApertaTeam/utengine | e641a76b6c0042a4b581f1ec51798b74f2bb5293 | [
"MIT"
] | null | null | null | src/RichText.cpp | ApertaTeam/utengine | e641a76b6c0042a4b581f1ec51798b74f2bb5293 | [
"MIT"
] | 1 | 2019-06-19T09:00:15.000Z | 2019-06-19T09:00:15.000Z | #include "RichText.h"
#include <sstream>
#include <vector>
#include <stdlib.h>
#include <cmath>
#include <iostream>
namespace UT
{
RichText::RichText()
{
this->font = NULL;
this->rawText = "";
this->renderPosition = { 0, 0 };
this->monospacing = -1;
this->renderOffset = ... | 34.077778 | 153 | 0.3955 | ApertaTeam |
636cb1c86daef7a48964faa4c74f074c64edc9d1 | 306 | hpp | C++ | math/totient.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | 2 | 2021-06-24T11:21:08.000Z | 2022-03-15T05:57:25.000Z | math/totient.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | 102 | 2021-10-30T21:30:00.000Z | 2022-03-26T18:39:47.000Z | math/totient.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | null | null | null | #pragma once
#include "./base.hpp"
namespace math {
ll totient(ll n) {
ll res = n;
for (ll i = 2; i * i <= n; i++) {
if (n % i == 0) {
res -= res / i;
while (n % i == 0)
n /= i;
}
}
if (n > 1) res -= res / n;
return res;
}
} // namespace math | 17 | 37 | 0.395425 | matumoto1234 |
636fabe2c052b4b43579806cf9463cf3c67c6d95 | 466 | cpp | C++ | detail/os/reactor/iocp/wsa_activator.cpp | wembikon/baba.io | 87bec680c1febb64356af59e7e499c2b2b64d30c | [
"MIT"
] | null | null | null | detail/os/reactor/iocp/wsa_activator.cpp | wembikon/baba.io | 87bec680c1febb64356af59e7e499c2b2b64d30c | [
"MIT"
] | 1 | 2020-06-12T10:22:09.000Z | 2020-06-12T10:22:09.000Z | detail/os/reactor/iocp/wsa_activator.cpp | wembikon/baba.io | 87bec680c1febb64356af59e7e499c2b2b64d30c | [
"MIT"
] | null | null | null | /**
* MIT License
* Copyright (c) 2020 Adrian T. Visarra
**/
#include "os/reactor/iocp/wsa_activator.h"
#include "baba/logger.h"
#include <cstdlib>
namespace baba::os {
wsa_activator::wsa_activator() : _data{0} {
if (int result = WSAStartup(MAKEWORD(2, 2), &_data); result != 0) {
LOGFTL("WSA... | 20.26087 | 70 | 0.61588 | wembikon |
63764c869d04378fabcef48ae6faa69e5a49aa8b | 963 | hpp | C++ | src/Homie/Boot/BootConfig.hpp | neo164/wi-fi-iot | dad284b235c5540897585e81c56be58136121b52 | [
"MIT"
] | null | null | null | src/Homie/Boot/BootConfig.hpp | neo164/wi-fi-iot | dad284b235c5540897585e81c56be58136121b52 | [
"MIT"
] | null | null | null | src/Homie/Boot/BootConfig.hpp | neo164/wi-fi-iot | dad284b235c5540897585e81c56be58136121b52 | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <DNSServer.h>
#include <ArduinoJson.h>
#include "Boot.hpp"
#include "../Config.hpp"
#include "../Constants.hpp"
#include "../Limits.hpp"
#include "../Datatypes/Interface.hpp"
#include "../Timer.hpp"
#include "../Helpers.... | 22.928571 | 40 | 0.669782 | neo164 |
6377d2fb0384303102edd14d113ae597fddb47db | 28,333 | hpp | C++ | src/matrix.hpp | degarashi/frea | bb598245c2ab710cc816e98d7361e5863af5fd7e | [
"MIT"
] | null | null | null | src/matrix.hpp | degarashi/frea | bb598245c2ab710cc816e98d7361e5863af5fd7e | [
"MIT"
] | null | null | null | src/matrix.hpp | degarashi/frea | bb598245c2ab710cc816e98d7361e5863af5fd7e | [
"MIT"
] | null | null | null | #pragma once
#include "vector.hpp"
#include "angle.hpp"
#include "lubee/src/meta/compare.hpp"
#include "lubee/src/ieee754.hpp"
#include "exception.hpp"
namespace frea {
template <class VW, int M>
using wrapM_t = wrapM_spec<VW, M, VW::size>;
// ベクトル演算レジスタクラスをM方向に束ねたもの
/*!
\tparam VW 各行のベクトル型
\tparam M 行数
\... | 29.421599 | 114 | 0.60156 | degarashi |
6382661cb6f4376c759b0f4840a3018570268b4d | 204 | hpp | C++ | src/GUI/Console.hpp | 370rokas/MediaServer | 9a74d2a77a2af499ebf9357c2bdb6e70375ad072 | [
"MIT"
] | 1 | 2022-03-11T20:09:27.000Z | 2022-03-11T20:09:27.000Z | src/GUI/Console.hpp | 370rokas/MediaServer | 9a74d2a77a2af499ebf9357c2bdb6e70375ad072 | [
"MIT"
] | null | null | null | src/GUI/Console.hpp | 370rokas/MediaServer | 9a74d2a77a2af499ebf9357c2bdb6e70375ad072 | [
"MIT"
] | null | null | null | //
// Created by rokas on 3/12/22.
//
#ifndef WUSEMEDIASERVER_CONSOLE_HPP
#define WUSEMEDIASERVER_CONSOLE_HPP
class Console {
public:
void Run();
private:
};
#endif //WUSEMEDIASERVER_CONSOLE_HPP
| 12 | 36 | 0.740196 | 370rokas |
63836f176f9bfa85e118a527b5c73e7f8980c5ed | 4,501 | cpp | C++ | src/nnfusion/core/kernels/cuda_gpu/util/gpu_util.cpp | lynex/nnfusion | 6332697c71b6614ca6f04c0dac8614636882630d | [
"MIT"
] | 639 | 2020-09-05T10:00:59.000Z | 2022-03-30T08:42:39.000Z | src/nnfusion/core/kernels/cuda_gpu/util/gpu_util.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 252 | 2020-09-09T05:35:36.000Z | 2022-03-29T04:58:41.000Z | src/nnfusion/core/kernels/cuda_gpu/util/gpu_util.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 104 | 2020-09-05T10:01:08.000Z | 2022-03-23T10:59:13.000Z | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 33.842105 | 93 | 0.565874 | lynex |
638a64d0087e85458287c8af5b72311314ac2c05 | 2,448 | hpp | C++ | vm/test/test_vm_native_library.hpp | marnen/rubinius | 05b3f9789d01bada0604a7f09921c956bc9487e7 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T16:58:14.000Z | 2016-05-08T16:58:14.000Z | vm/test/test_vm_native_library.hpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | vm/test/test_vm_native_library.hpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | #include <cstdlib>
#include "native_libraries.hpp"
#include "builtin/exception.hpp"
#include <cxxtest/TestSuite.h>
using namespace rubinius;
class TestNativeLibrary : public CxxTest::TestSuite {
public:
VM* state_;
const char* lib_name_;
void setUp() {
state_ = new VM();
lib_name_ = ::getenv("LIB... | 28.465116 | 80 | 0.665033 | marnen |
638ca6cb52621f723ba8044101e0cd0594c94b99 | 35,119 | cpp | C++ | Source/WebKit/UIProcess/WebStorage/StorageManager.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 1 | 2021-05-27T07:29:31.000Z | 2021-05-27T07:29:31.000Z | WebKit2-7604.1.38.0.7/WebKit2-7604.1.38.0.7/UIProcess/Storage/StorageManager.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebKit/UIProcess/WebStorage/StorageManager.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2013-2016 Apple 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 of conditi... | 40.274083 | 226 | 0.749822 | ijsf |
b0cb1dd84798548af5cb2e00bdcf13311013f1ed | 1,419 | hpp | C++ | source/framework/core/include/lue/framework/core/debug.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 2 | 2021-02-26T22:45:56.000Z | 2021-05-02T10:28:48.000Z | source/framework/core/include/lue/framework/core/debug.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/framework/core/include/lue/framework/core/debug.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #pragma once
#include <hpx/future.hpp>
#include <fmt/format.h>
#include <string>
namespace lue {
hpx::future<std::string> system_description();
void write_debug_message (std::string const& message);
template<
typename Class>
std::string describe (Class const& instance);
templa... | 19.175676 | 72 | 0.569415 | computationalgeography |
b0cc3f4253c3add683bfa3768d9ed44bcf883f99 | 279 | cpp | C++ | CPP/HelloCpp2/chapter_20/Inheritance2.cpp | hrntsm/study-language | 922578a5321d70c26b935e6052f400125e15649c | [
"MIT"
] | 1 | 2022-02-06T10:50:42.000Z | 2022-02-06T10:50:42.000Z | CPP/HelloCpp2/chapter_20/Inheritance2.cpp | hrntsm/study-language | 922578a5321d70c26b935e6052f400125e15649c | [
"MIT"
] | null | null | null | CPP/HelloCpp2/chapter_20/Inheritance2.cpp | hrntsm/study-language | 922578a5321d70c26b935e6052f400125e15649c | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
class Kitty {
public:
void nyan() { cout << "Kitty on your lap\n";}
};
class Di_Gi_Gharat : public Kitty{
public:
void nyan() {cout << "Di Gi Gharat\n";}
} obj;
int main(){
obj.nyan();
obj.Kitty::nyan();
return 0;
}
| 14.684211 | 49 | 0.602151 | hrntsm |
b0cc4ae220c4645885fe9741eae45887b880a64f | 4,321 | cpp | C++ | Source/10.0.18362.0/ucrt/mbstring/mbsnbicm.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | Source/10.0.18362.0/ucrt/mbstring/mbsnbicm.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | Source/10.0.18362.0/ucrt/mbstring/mbsnbicm.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | /***
*mbsnbicmp.c - Compare n bytes of strings, ignoring case (MBCS)
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Compare n bytes of strings, ignoring case (MBCS)
*
*******************************************************************************/
#ifndef _MBCS
#error This ... | 32.246269 | 88 | 0.466559 | 825126369 |
b0db5924fca9ef1988ac57895c13e266691e9fae | 1,684 | cpp | C++ | Samples/SampleEditorUI/SampleEditorUI.cpp | AlexSabourinDev/IceBox | 9226e15fc5e78e68c0d92ceea51996fdeab36ca7 | [
"MIT"
] | 3 | 2020-09-22T15:56:07.000Z | 2022-02-08T23:54:50.000Z | Samples/SampleEditorUI/SampleEditorUI.cpp | AlexSabourinDev/IceBox | 9226e15fc5e78e68c0d92ceea51996fdeab36ca7 | [
"MIT"
] | 37 | 2020-09-21T17:00:17.000Z | 2022-02-10T00:30:59.000Z | Samples/SampleEditorUI/SampleEditorUI.cpp | AlexSabourinDev/IceBox | 9226e15fc5e78e68c0d92ceea51996fdeab36ca7 | [
"MIT"
] | 3 | 2020-10-04T00:46:31.000Z | 2022-02-09T00:05:36.000Z | #include <IBEngine/IBRenderer.h>
#include <IBEngine/IBRendererFrontend.h>
#include <IBEngine/IBSerialization.h>
#include <IBEngine/IBLogging.h>
#include <IBEngine/IBPlatform.h>
#include <imgui/imgui.h>
int main()
{
IB::WindowDesc winDesc = {};
winDesc.Name = "Ice Box";
winDesc.Width = 1024;
winDesc.He... | 26.730159 | 122 | 0.610451 | AlexSabourinDev |
b0e087b548cb6df0d04f44e3f91c2daa82296873 | 438 | cpp | C++ | src/publisher/distributions_publisher.cpp | doge-of-the-day/cslibs_mapping | f8c9790ef0148c26792ad5af7086db792f693955 | [
"BSD-3-Clause"
] | 36 | 2018-11-13T09:45:17.000Z | 2022-01-04T00:46:45.000Z | src/publisher/distributions_publisher.cpp | doge-of-the-day/cslibs_mapping | f8c9790ef0148c26792ad5af7086db792f693955 | [
"BSD-3-Clause"
] | 7 | 2019-04-29T08:15:19.000Z | 2022-02-20T17:07:09.000Z | src/publisher/distributions_publisher.cpp | doge-of-the-day/cslibs_mapping | f8c9790ef0148c26792ad5af7086db792f693955 | [
"BSD-3-Clause"
] | 19 | 2018-05-19T06:45:49.000Z | 2022-01-04T00:46:50.000Z | #include "distributions_publisher.h"
#include <class_loader/register_macro.hpp>
CLASS_LOADER_REGISTER_CLASS(cslibs_mapping::publisher::DistributionsPublisher, cslibs_mapping::publisher::Publisher)
CLASS_LOADER_REGISTER_CLASS(cslibs_mapping::publisher::DistributionsPublisher_d, cslibs_mapping::publisher::Publisher)
C... | 62.571429 | 118 | 0.874429 | doge-of-the-day |
b0e6163b32274371f06357425c6645c9ce4a2eda | 5,262 | cpp | C++ | src/Orbit/Graphics/Geometry/Mesh.cpp | Gaztin/Orb | 4589f3f0165d287482ab4b367f02633ea4e7c9a5 | [
"Zlib"
] | 41 | 2018-08-02T06:28:07.000Z | 2022-01-20T01:23:42.000Z | src/Orbit/Graphics/Geometry/Mesh.cpp | Gaztin/Orb | 4589f3f0165d287482ab4b367f02633ea4e7c9a5 | [
"Zlib"
] | 4 | 2020-02-11T22:10:31.000Z | 2020-07-06T19:36:09.000Z | src/Orbit/Graphics/Geometry/Mesh.cpp | Gaztin/Orb | 4589f3f0165d287482ab4b367f02633ea4e7c9a5 | [
"Zlib"
] | 4 | 2018-11-18T10:19:57.000Z | 2021-07-14T02:58:40.000Z | /*
* Copyright (c) 2020 Sebastian Kylander https://gaztin.com/
*
* This software is provided 'as-is', without any express or implied warranty. In no event will
* the authors be held liable for any damages arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpo... | 38.691176 | 231 | 0.710376 | Gaztin |
b0e83b9727f6a352103a42c6c52790b966114a8e | 11,662 | cpp | C++ | src/EOIconManager.cpp | obones/EVEopenHAB | 8e1c603e0c4ebf2b108685dbf5548e3a17a1561c | [
"MIT"
] | null | null | null | src/EOIconManager.cpp | obones/EVEopenHAB | 8e1c603e0c4ebf2b108685dbf5548e3a17a1561c | [
"MIT"
] | null | null | null | src/EOIconManager.cpp | obones/EVEopenHAB | 8e1c603e0c4ebf2b108685dbf5548e3a17a1561c | [
"MIT"
] | null | null | null | /*
@file EOIconManager.cpp
@brief Contains the Icon manager definitions
@date 2021-09-17
@author Olivier Sannier
@section LICENSE
MIT License
Copyright (c) 2021 Olivier Sannier
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (... | 38.361842 | 166 | 0.56877 | obones |
b0f3f757c800a88e77992bee09870e2a61d29e1a | 919 | cpp | C++ | Engine/Core/Sources/Threading/Thread.cpp | kaluginadaria/YetAnotherProject | abedd20b484f868ded83e72261970703a27e024d | [
"MIT"
] | null | null | null | Engine/Core/Sources/Threading/Thread.cpp | kaluginadaria/YetAnotherProject | abedd20b484f868ded83e72261970703a27e024d | [
"MIT"
] | null | null | null | Engine/Core/Sources/Threading/Thread.cpp | kaluginadaria/YetAnotherProject | abedd20b484f868ded83e72261970703a27e024d | [
"MIT"
] | null | null | null | #include "Thread.hpp"
#include <chrono>
#include <iostream>
#include "ThreadPool.hpp"
const ThreadTask ThreadTask::NoTasksFound = ThreadTask(nullptr, ThreadTask::eNoTasksFound);
const ThreadTask ThreadTask::ShouldDie = ThreadTask(nullptr, ThreadTask::eShouldDie );
const ThreadTask ThreadTask::NextLoop = Thre... | 22.414634 | 97 | 0.70185 | kaluginadaria |
b0f4c4427b61d94ca4b0c9f66aedb58a2a93a545 | 4,264 | cc | C++ | code/render/frame/framepass.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/render/frame/framepass.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/render/frame/framepass.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// framepass.cc
// (C) 2007 Radon Labs GmbH
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "frame/framepass.h"
#in... | 28.810811 | 119 | 0.593105 | gscept |
b0fd829d724b15a07c5ecd6beb1d8c252f061e2c | 1,396 | hpp | C++ | Engine/Math/Dice.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | Engine/Math/Dice.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | Engine/Math/Dice.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | //==============================================================================================================
//Dice.hpp
//by Albert Chen Sep-2-2015.
//==============================================================================================================
#pragma once
#ifndef _included_Dice__
#define _inclu... | 22.885246 | 112 | 0.424785 | achen889 |
b0fe5b28fc38aa1790c14a9e84139604f3c35998 | 549 | cpp | C++ | podboat.cpp | adiel-mittmann/newsboat | 8011952624387f0b2fcb18ba5d96382c257764c2 | [
"MIT"
] | null | null | null | podboat.cpp | adiel-mittmann/newsboat | 8011952624387f0b2fcb18ba5d96382c257764c2 | [
"MIT"
] | null | null | null | podboat.cpp | adiel-mittmann/newsboat | 8011952624387f0b2fcb18ba5d96382c257764c2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <config.h>
#include <pb_controller.h>
#include <cstring>
#include <pb_view.h>
#include <errno.h>
#include <utils.h>
using namespace podboat;
int main(int argc, char * argv[]) {
utils::initialize_ssl_implementation();
if (!setlocale(LC_CTYPE,"") || !setlocale(LC_MESSAGES,"")) {
std::... | 19.607143 | 68 | 0.68306 | adiel-mittmann |
7c04605bb9c6d08c1c8c8e187b9100d340905be5 | 1,192 | c++ | C++ | linker_script/strategies/default_e20_strategy.c++ | sctincman/freedom-devicetree-tools | 668d8795e474623863f65f890022d1d471a1c64b | [
"Apache-2.0",
"MIT"
] | null | null | null | linker_script/strategies/default_e20_strategy.c++ | sctincman/freedom-devicetree-tools | 668d8795e474623863f65f890022d1d471a1c64b | [
"Apache-2.0",
"MIT"
] | null | null | null | linker_script/strategies/default_e20_strategy.c++ | sctincman/freedom-devicetree-tools | 668d8795e474623863f65f890022d1d471a1c64b | [
"Apache-2.0",
"MIT"
] | null | null | null | /* Copyright (c) 2019 SiFive Inc. */
/* SPDX-License-Identifier: Apache-2.0 */
#include "default_e20_strategy.h"
#include <layouts/default_layout.h>
#include <layouts/scratchpad_layout.h>
#include <layouts/ramrodata_layout.h>
bool DefaultE20Strategy::valid(const fdt &dtb, list<Memory> available_memories)
{
return ... | 29.073171 | 97 | 0.738255 | sctincman |
7c05632785ddee5669c5f9c890236c674cefce29 | 585 | cpp | C++ | cilantro/src/graphics/Framebuffer.cpp | dpilawa/cilantro | 69daa2112e8e373783b4f1a27c62770e4540eb6f | [
"MIT"
] | null | null | null | cilantro/src/graphics/Framebuffer.cpp | dpilawa/cilantro | 69daa2112e8e373783b4f1a27c62770e4540eb6f | [
"MIT"
] | null | null | null | cilantro/src/graphics/Framebuffer.cpp | dpilawa/cilantro | 69daa2112e8e373783b4f1a27c62770e4540eb6f | [
"MIT"
] | null | null | null | #include "cilantroengine.h"
#include "graphics/Framebuffer.h"
Framebuffer::Framebuffer (unsigned int bufferWidth, unsigned int bufferHeight)
{
this->bufferWidth = bufferWidth;
this->bufferHeight = bufferHeight;
}
Framebuffer::~Framebuffer ()
{
}
unsigned int Framebuffer::GetWidth () const
{
return buff... | 19.5 | 96 | 0.745299 | dpilawa |
7c0597aa563fb5f1065fc14f1813fe249d8a795c | 433 | cpp | C++ | W08/in_lab/Account.cpp | ariaav/OOP244 | bcfc52bfff86b68e4f464e85b8555eef541741a0 | [
"MIT"
] | null | null | null | W08/in_lab/Account.cpp | ariaav/OOP244 | bcfc52bfff86b68e4f464e85b8555eef541741a0 | [
"MIT"
] | null | null | null | W08/in_lab/Account.cpp | ariaav/OOP244 | bcfc52bfff86b68e4f464e85b8555eef541741a0 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Account.h"
namespace sict {
Account::Account(double bal) {
if (bal > 0)
bala = bal;
else
bala = 0;
}
bool Account::credit(double add) {
if (add > 0){
bala += add;
return true;
}
else
return false;
}
bool Account::debit(double sub) {
if (sub > 0) {
bal... | 12.371429 | 35 | 0.577367 | ariaav |
7c0fe5fd6a310e5dd2f79b822fe425d9cce77f87 | 851 | cpp | C++ | amara/amara_tweenBase.cpp | BigBossErndog/Amara | e534001dee88b7d66f7384ed167257ffac58aac3 | [
"MIT"
] | null | null | null | amara/amara_tweenBase.cpp | BigBossErndog/Amara | e534001dee88b7d66f7384ed167257ffac58aac3 | [
"MIT"
] | null | null | null | amara/amara_tweenBase.cpp | BigBossErndog/Amara | e534001dee88b7d66f7384ed167257ffac58aac3 | [
"MIT"
] | null | null | null | #ifndef AMARA_TWEENBASE
#define AMARA_TWEENBASE
#include "amara.h"
namespace Amara {
class Tweener;
class Tween: public Amara::StateManager {
public:
Amara::GameProperties* properties = nullptr;
bool finished = false;
bool deleteOnFinish = true;
doubl... | 23.638889 | 95 | 0.480611 | BigBossErndog |
7c11f304a4c71c599e3aa18728323cf90f51aaa3 | 2,138 | cc | C++ | 2021/5/main.cc | ey6es/aoc | c1e54534e5e6d4b52118ffd173834ab56a831102 | [
"MIT"
] | null | null | null | 2021/5/main.cc | ey6es/aoc | c1e54534e5e6d4b52118ffd173834ab56a831102 | [
"MIT"
] | null | null | null | 2021/5/main.cc | ey6es/aoc | c1e54534e5e6d4b52118ffd173834ab56a831102 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <fstream>
#include <iostream>
#include <map>
#include <string>
#include <tuple>
std::tuple<int, int> parse_coord (const std::string& str) {
auto idx = str.find(',');
return std::make_tuple(
std::stoi(str.substr(0, idx)),
std::stoi(str.substr(idx + 1)));
}
std::ostream& operat... | 24.860465 | 81 | 0.481291 | ey6es |
7c1885c5d71e72c411d50181d4b84e586de72b3f | 635 | cpp | C++ | 0014.cpp | excript/curso_cpp | 070d0bd1163c1252b7bf736fedb3370208c30811 | [
"CC0-1.0"
] | 1 | 2020-08-01T07:03:32.000Z | 2020-08-01T07:03:32.000Z | 0014.cpp | excript/curso_cpp | 070d0bd1163c1252b7bf736fedb3370208c30811 | [
"CC0-1.0"
] | 1 | 2020-08-01T07:04:27.000Z | 2020-08-01T07:04:27.000Z | 0014.cpp | excript/curso_cpp | 070d0bd1163c1252b7bf736fedb3370208c30811 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <iomanip>
/*====================================
* eXcript.com
* fb.com/eXcript
* ====================================*/
using namespace std;
int main() {
//obj cin3
//obj cout
cout << "Estudando a entrada e saida de dados." << endl;
... | 19.84375 | 60 | 0.445669 | excript |
7c1b5d88f091c7ddf7a60fc1969c757257d02a8d | 907 | hh | C++ | src/agents/pacman/pathfinding_pacman_agent.hh | emanuelssj/PacmanRL | 275715f7024e1ffab8a562c892a9852d4d7f16cb | [
"MIT"
] | 3 | 2019-01-07T10:15:21.000Z | 2019-03-25T15:36:39.000Z | src/agents/pacman/pathfinding_pacman_agent.hh | emanuelssj/Lunafreya-Pacman-Speedrun | 275715f7024e1ffab8a562c892a9852d4d7f16cb | [
"MIT"
] | null | null | null | src/agents/pacman/pathfinding_pacman_agent.hh | emanuelssj/Lunafreya-Pacman-Speedrun | 275715f7024e1ffab8a562c892a9852d4d7f16cb | [
"MIT"
] | 1 | 2019-05-26T07:48:21.000Z | 2019-05-26T07:48:21.000Z | #ifndef PATHFINDING_PACMAN_AGENT_HH
#define PATHFINDING_PACMAN_AGENT_HH
#include "../agent.hh"
#include "../../state/direction.hh"
#include "../../pathfinding/bfs.hh"
#include "../../pathfinding/wsp.hh"
#include <cmath>
class Pathfinding_Pacman_Agent: public Agent {
// In this case ghost_id can be ignored
in... | 32.392857 | 122 | 0.582139 | emanuelssj |
7c283dc0e0c52f8c51f5f4a8f987d346aa6b947f | 2,624 | cpp | C++ | Utilities/MarbleAction/MarbleAction.cpp | mym2o/HavokDemos | 1235b96b93e256de50bc36c229439a334410fd77 | [
"MIT"
] | 1 | 2017-08-14T10:23:45.000Z | 2017-08-14T10:23:45.000Z | Utilities/MarbleAction/MarbleAction.cpp | mym2o/HavokDemos | 1235b96b93e256de50bc36c229439a334410fd77 | [
"MIT"
] | null | null | null | Utilities/MarbleAction/MarbleAction.cpp | mym2o/HavokDemos | 1235b96b93e256de50bc36c229439a334410fd77 | [
"MIT"
] | 2 | 2016-06-22T02:22:32.000Z | 2019-11-21T19:49:41.000Z | #include "MarbleAction.h"
MarbleAction::MarbleAction(hkpRigidBody* r, const hkVector4& forward, const hkVector4& resetPosition, hkReal impulseScale) : hkpUnaryAction(r), m_forward(forward), m_resetPosition(resetPosition), m_rotationIncrement(0.01f) {
m_forwardPressed = false;
m_backwardPressed = false;
m_leftP... | 28.835165 | 225 | 0.699695 | mym2o |
7c28f9a0f641f5f618db137ee21ad79407c3aef8 | 13,626 | cc | C++ | src/ShaderCompiler/Private/GLSLangUtils.cc | PixPh/kaleido3d | 8a8356586f33a1746ebbb0cfe46b7889d0ae94e9 | [
"MIT"
] | 38 | 2019-01-10T03:10:12.000Z | 2021-01-27T03:14:47.000Z | src/ShaderCompiler/Private/GLSLangUtils.cc | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | null | null | null | src/ShaderCompiler/Private/GLSLangUtils.cc | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | 8 | 2019-04-16T07:56:27.000Z | 2020-11-19T02:38:37.000Z | #include <Kaleido3D.h>
#include "GLSLangUtils.h"
#include <glslang/MachineIndependent/gl_types.h>
using namespace ::glslang;
using namespace ::k3d;
void sInitializeGlSlang()
{
#if USE_GLSLANG
static bool sGlSlangIntialized = false;
if (!sGlSlangIntialized) {
glslang::InitializeProcess();
sGlSl... | 32.754808 | 168 | 0.754954 | PixPh |
7c2b82eba95378926615f75703f463e29eb82ff6 | 3,288 | cpp | C++ | Project Mania/Source/Character/Chassis.cpp | larsolm/Archives | 18968c18b80777e589bc8a704b4375be2fff8eea | [
"MIT"
] | null | null | null | Project Mania/Source/Character/Chassis.cpp | larsolm/Archives | 18968c18b80777e589bc8a704b4375be2fff8eea | [
"MIT"
] | null | null | null | Project Mania/Source/Character/Chassis.cpp | larsolm/Archives | 18968c18b80777e589bc8a704b4375be2fff8eea | [
"MIT"
] | null | null | null | #include "Pch.h"
#include "Character/Character.h"
#include "Character/Chassis.h"
#include "Data/AugmentData.h"
#include "Data/CharacterData.h"
#include "Data/ComponentData.h"
#include "Data/ChassisData.h"
#include "Data/EquipmentData.h"
#include "Data/UpgradeData.h"
#include "Data/PartData.h"
#include "Parts/Item.h"
#i... | 27.630252 | 129 | 0.708942 | larsolm |
7c2e99d071f669e6bf42911f05fdfe7e036dfa42 | 12,307 | cpp | C++ | Sources/Rosetta/Battlegrounds/Models/Battle.cpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 62 | 2017-08-21T14:11:00.000Z | 2018-04-23T16:09:02.000Z | Sources/Rosetta/Battlegrounds/Models/Battle.cpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 37 | 2017-08-21T11:13:07.000Z | 2018-04-30T08:58:41.000Z | Sources/Rosetta/Battlegrounds/Models/Battle.cpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 10 | 2017-08-21T03:44:12.000Z | 2018-01-10T22:29:10.000Z | // Copyright (c) 2017-2021 Chris Ohk
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Rosetta/Battlegrounds/Models/Battle.hpp>
#include <effolkronium/random.hpp>
using Ran... | 28.291954 | 80 | 0.542781 | Hearthstonepp |
7c320e8880a227a1bb2501c2bd6e7bd6ba233ea0 | 1,447 | hpp | C++ | include/clotho/fitness/linear_fitness_metric.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:27:57.000Z | 2022-01-25T23:26:54.000Z | include/clotho/fitness/linear_fitness_metric.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:12:42.000Z | 2015-06-23T12:41:00.000Z | include/clotho/fitness/linear_fitness_metric.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // Copyright 2015 Patrick Putnam
//
// 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 o... | 27.301887 | 78 | 0.68763 | putnampp |
7c3d1b998ba7e55703307ac573b0d4775b3151b5 | 388 | hpp | C++ | sdl2-sonic-drivers/src/utils/constants.hpp | Raffaello/sdl2-sonic-drivers | 20584f100ddd7c61f584deaee0b46c5228d8509d | [
"Apache-2.0"
] | 3 | 2021-10-31T14:24:00.000Z | 2022-03-16T08:15:31.000Z | sdl2-sonic-drivers/src/utils/constants.hpp | Raffaello/sdl2-sonic-drivers | 20584f100ddd7c61f584deaee0b46c5228d8509d | [
"Apache-2.0"
] | 48 | 2020-06-05T11:11:29.000Z | 2022-02-27T23:58:44.000Z | sdl2-sonic-drivers/src/utils/constants.hpp | Raffaello/sdl2-sonic-drivers | 20584f100ddd7c61f584deaee0b46c5228d8509d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cmath>
namespace utils
{
// TODO remove M_PI and M_2PI replace them with PI and PI2
#ifdef M_PI
#undef M_PI
#endif // M_PI
constexpr double M_PI = 3.14159265358979323846;
#ifdef M_2PI
#undef M_2PI
#endif // M_2PI
constexpr double M_2PI = 2.0 * M_PI;
constexpr double PI... | 18.47619 | 62 | 0.688144 | Raffaello |
7c423f5a6c83d0ccfe3ff3d33914a241403fcc8e | 12,071 | cpp | C++ | Sourcecode/mxtest/core/PropertiesTest.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | Sourcecode/mxtest/core/PropertiesTest.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | Sourcecode/mxtest/core/PropertiesTest.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mxtest/control/CompileControl.h"
#ifdef MX_COMPILE_CORE_TESTS
#include "cpul/cpulTestHarness.h"
#include "mxtest/core/HelperFunctions.h"
#include "mxtest/core/PropertiesTest.h"
#include "mxtest/core/Edito... | 44.873606 | 120 | 0.498385 | diskzero |
7c45da4372eb53b9bbb2f92658006d7acf60e1c0 | 1,363 | cpp | C++ | Strings Problem/Valid Ip Addresses.cpp | theslytherin/Interview_Bit | da9973de33be2f12d6e051bea1e918004216b6ed | [
"MIT"
] | null | null | null | Strings Problem/Valid Ip Addresses.cpp | theslytherin/Interview_Bit | da9973de33be2f12d6e051bea1e918004216b6ed | [
"MIT"
] | null | null | null | Strings Problem/Valid Ip Addresses.cpp | theslytherin/Interview_Bit | da9973de33be2f12d6e051bea1e918004216b6ed | [
"MIT"
] | null | null | null | int stringnumber(string s){
int i=0;
int n=s.length();
int face=1;
int answer=0;
for(i=n-1;i>=0;i--){
answer+=(s[i]-'0')*face;
face*=10;
}
return answer;
}
bool isValid(string s){
int i,j;
int n=s.length();
int number;
int start=0;
string temp="";
while(start < n){
... | 21.296875 | 55 | 0.432869 | theslytherin |
7c48357bb84762320f6d3c9346f67acfbca91d1c | 5,398 | cpp | C++ | src/publish_trajectory/publish_trajectory_to_quadrotor_tmp.cpp | test-bai-cpu/hdi_plan | 89684bb73832d7e40f3c669f284ffddb56a1e299 | [
"MIT"
] | 1 | 2021-07-31T12:34:11.000Z | 2021-07-31T12:34:11.000Z | src/publish_trajectory/publish_trajectory_to_quadrotor_tmp.cpp | test-bai-cpu/hdi_plan | 89684bb73832d7e40f3c669f284ffddb56a1e299 | [
"MIT"
] | null | null | null | src/publish_trajectory/publish_trajectory_to_quadrotor_tmp.cpp | test-bai-cpu/hdi_plan | 89684bb73832d7e40f3c669f284ffddb56a1e299 | [
"MIT"
] | 2 | 2021-05-08T13:27:31.000Z | 2021-09-24T07:59:04.000Z | #include "publish_trajectory/publish_trajectory_to_quadrotor.hpp"
namespace hdi_plan {
PublishTrajectory::PublishTrajectory(const ros::NodeHandle &nh, const ros::NodeHandle &pnh)
:nh_(nh),
pnh_(pnh){
arm_bridge_pub_ = nh_.advertise<std_msgs::Bool>("bridge/arm", 1);
start_pub_ = nh_.advertise<std_msgs::Empty>("a... | 34.825806 | 123 | 0.757318 | test-bai-cpu |
7c4a20ef6c026977e9bb341654500cb624718f3f | 437 | hpp | C++ | src/utils/types.hpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | src/utils/types.hpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | src/utils/types.hpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | #ifndef UTILS_TYPES_H
#define UTILS_TYPES_H
#include <memory>
#include <vector>
#include "../graphs/undirected_weighted_graph.hpp"
struct algo_result {
int minCutVal;
std::vector<bool> cut;
};
struct algo_input {
std::shared_ptr<graphs::weighted_graph> graph;
std::vector<bool> minCut;
int minCutV... | 20.809524 | 81 | 0.718535 | LukaszSelwa |
7c4c0616aa4fa792076e6acee28793e04471ef6f | 422 | cpp | C++ | 机试/动态规划/leetcode300.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | 机试/动态规划/leetcode300.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | 机试/动态规划/leetcode300.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | class Solution {
public:
int lengthOfLIS(vector<int>& nums) {
int n = nums.size();
vector<int> dp(n, 1);
int res = dp[0];
for(int i = 0; i < n; i++){
for(int j = 0; j <= i; j++){
if(nums[i] > nums[j]){
dp[i] = max(dp[j] + 1, dp[i]);
... | 24.823529 | 50 | 0.350711 | codehuanglei |
7c4c60fc018b62608c46fe0ec12d9b8de69d27c3 | 2,802 | cpp | C++ | trunk/uidesigner/uidframe/src/Core/HoldItem.cpp | OhmPopy/MPFUI | eac88d66aeb88d342f16866a8d54858afe3b6909 | [
"MIT"
] | 59 | 2017-08-27T13:27:55.000Z | 2022-01-21T13:24:05.000Z | demos/uidesigner/uidframe/src/Core/HoldItem.cpp | BigPig0/MPFUI | 7042e0a5527ab323e16d2106d715db4f8ee93275 | [
"MIT"
] | 5 | 2017-11-26T05:40:23.000Z | 2019-04-02T08:58:21.000Z | demos/uidesigner/uidframe/src/Core/HoldItem.cpp | BigPig0/MPFUI | 7042e0a5527ab323e16d2106d715db4f8ee93275 | [
"MIT"
] | 49 | 2017-08-24T08:00:50.000Z | 2021-11-07T01:24:41.000Z | #include "stdafx.h"
#include <Core/HoldItem.h>
#include <Core/ResNode.h>
void HoldItem::InitNode(suic::IXamlNode* pNode)
{
pNode->Reset();
InitNode(this, pNode);
}
void HoldItem::Clear()
{
for (int i = 0; i < children.GetCount(); ++i)
{
Clear(children.GetItem(i));
}
attrs.Clear();
... | 22.416 | 83 | 0.552463 | OhmPopy |
7c50c242e93c7ac923266b8307ed15728e6e63f1 | 3,708 | hpp | C++ | src/sqlite/db.hpp | wesselj1/mx3playground | 9b8c3e783f574a76cc17a9470b57e72a1b38be1a | [
"MIT"
] | 766 | 2015-01-01T17:33:40.000Z | 2022-02-23T08:20:20.000Z | src/sqlite/db.hpp | wesselj1/mx3playground | 9b8c3e783f574a76cc17a9470b57e72a1b38be1a | [
"MIT"
] | 43 | 2015-01-04T05:59:54.000Z | 2017-06-19T10:53:59.000Z | src/sqlite/db.hpp | wesselj1/mx3playground | 9b8c3e783f574a76cc17a9470b57e72a1b38be1a | [
"MIT"
] | 146 | 2015-01-09T19:38:23.000Z | 2021-09-30T08:39:44.000Z | #pragma once
#include <set>
#include <chrono>
#include "stl.hpp"
#include "stmt.hpp"
namespace mx3 { namespace sqlite {
// single param helpers for sqlite3_mprintf
string mprintf(const char * format, const string& data);
string mprintf(const char * format, int64_t data);
string libversion();
string sourceid();
int li... | 26.676259 | 128 | 0.699838 | wesselj1 |
7c5115db2bd1096958da5285052bd6aa076b0e60 | 14,920 | inl | C++ | include/writer.inl | jpulidojr/VizAly-SNWPAC | ec30d5e50b8a7ab04a2888c8aae82dcb327e02bd | [
"Unlicense",
"BSD-3-Clause"
] | 2 | 2020-03-19T07:14:54.000Z | 2022-03-11T19:29:33.000Z | include/writer.inl | jpulidojr/VizAly-SNWPAC | ec30d5e50b8a7ab04a2888c8aae82dcb327e02bd | [
"Unlicense",
"BSD-3-Clause"
] | null | null | null | include/writer.inl | jpulidojr/VizAly-SNWPAC | ec30d5e50b8a7ab04a2888c8aae82dcb327e02bd | [
"Unlicense",
"BSD-3-Clause"
] | 2 | 2019-07-22T16:14:52.000Z | 2020-03-19T07:14:56.000Z |
#include "stdio.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string.h>
//#include <math.h>
#include <sstream>
//Use existing lossless compressors
#include "lz4.h"
/*static int * pfs1;
static int dimx1, dimy1, dimz1;
static int header_size1, scalar_fields1;
static double field_len1;*/
// Th... | 35.105882 | 235 | 0.552413 | jpulidojr |
7c5976175e28b08a295516dc36fcc5cec67f35a8 | 1,263 | cpp | C++ | cpp-tower/Game.cpp | udupa-varun/coursera-cs400 | cf073e6fe816c0d1f8fe95cae10448e979fec2ce | [
"MIT"
] | 2 | 2021-05-19T02:49:55.000Z | 2021-05-20T03:14:24.000Z | cpp-tower/Game.cpp | udupa-varun/coursera-cs400 | cf073e6fe816c0d1f8fe95cae10448e979fec2ce | [
"MIT"
] | null | null | null | cpp-tower/Game.cpp | udupa-varun/coursera-cs400 | cf073e6fe816c0d1f8fe95cae10448e979fec2ce | [
"MIT"
] | null | null | null | /**
* C++ class for a game of the Tower of Hanoi puzzle.
*
* @author
* Wade Fagen-Ulmschneider <waf@illinois.edu>
*/
#include "Game.h"
#include "Stack.h"
#include "uiuc/Cube.h"
#include "uiuc/HSLAPixel.h"
#include <iostream>
using std::cout;
using std::endl;
// Solves the Tower of Hanoi puzzle.
// (Feel free... | 23.388889 | 71 | 0.642914 | udupa-varun |
7c5ce1103a68b63e3fc9d600adfa560a410222c7 | 488 | hpp | C++ | src/eepp/window/backend/SDL2/wminfo.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | src/eepp/window/backend/SDL2/wminfo.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | null | null | null | src/eepp/window/backend/SDL2/wminfo.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #ifndef EE_BACKEND_SDL2_WMINFO_HPP
#define EE_BACKEND_SDL2_WMINFO_HPP
#include <eepp/window/backend/SDL2/base.hpp>
#include <eepp/window/windowhandle.hpp>
namespace EE { namespace Window { namespace Backend { namespace SDL2 {
class EE_API WMInfo {
public:
WMInfo( SDL_Window* win );
~WMInfo();
#if defined( EE_X... | 17.428571 | 70 | 0.745902 | jayrulez |
7c5ed60bd233d69bcd3fec76f48a78d1253ad5bf | 2,664 | hpp | C++ | OptFrame/Experimental/Moves/MoveVVShiftk.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 2 | 2018-05-24T11:04:12.000Z | 2020-03-03T13:37:07.000Z | OptFrame/Experimental/Moves/MoveVVShiftk.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | null | null | null | OptFrame/Experimental/Moves/MoveVVShiftk.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 1 | 2019-06-06T16:57:49.000Z | 2019-06-06T16:57:49.000Z | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 27.183673 | 107 | 0.613739 | 216k155 |
7c61d1f10673dfa4e36c148cfe5116240b21778a | 5,786 | cpp | C++ | src/core/taskmanager.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/core/taskmanager.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/core/taskmanager.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file taskmanager.cpp
* @brief Implementation of TaskManager.h
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2009-10-05
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/core/precompiled.h"
#include "o3d/core/taskmanager.h"
#in... | 23.330645 | 102 | 0.674732 | dream-overflow |
7c6a02ae781b48453f543d541aa3efa1524e8e21 | 4,048 | cpp | C++ | UVA Online Judge/628_Passwords.cpp | davimedio01/competitive-programming | e2a90f0183c11a90a50738a9a690efe03773d43f | [
"MIT"
] | 2 | 2020-09-10T15:48:02.000Z | 2020-09-12T00:05:35.000Z | UVA Online Judge/628_Passwords.cpp | davimedio01/competitive-programming | e2a90f0183c11a90a50738a9a690efe03773d43f | [
"MIT"
] | null | null | null | UVA Online Judge/628_Passwords.cpp | davimedio01/competitive-programming | e2a90f0183c11a90a50738a9a690efe03773d43f | [
"MIT"
] | 2 | 2020-09-09T17:01:05.000Z | 2020-09-09T17:02:27.000Z | /*Criado por Davi Augusto - BCC - UNESP Bauru*/
/*
Resolvido com Backtracking:
1 - "Escolhas"
2 - "Restrições"
3 - "Objetivo"
Escolhas: Colocar dígitos de 0 a 9 na senha com base nas "regras" (# e 0)
Restrições: Regras e o dígito (ex: #0). O '#' ficará a palavra e o dígito '0' os números de 0 a 9. Printar ... | 28.70922 | 118 | 0.516304 | davimedio01 |
7c6a4d9e5140b66d9f8a1a9d1f899b93076511af | 10,895 | cpp | C++ | Main/Libraries/Hunspell/HunspellExportFunctions.cpp | paulushub/SandAssists | ccd86a074e85b3588819253f241780fe9d9362e2 | [
"MS-PL"
] | 1 | 2018-12-13T19:41:01.000Z | 2018-12-13T19:41:01.000Z | Main/Libraries/Hunspell/HunspellExportFunctions.cpp | paulushub/SandAssists | ccd86a074e85b3588819253f241780fe9d9362e2 | [
"MS-PL"
] | null | null | null | Main/Libraries/Hunspell/HunspellExportFunctions.cpp | paulushub/SandAssists | ccd86a074e85b3588819253f241780fe9d9362e2 | [
"MS-PL"
] | null | null | null | #include "hunspell/hunspell.hxx"
#include <windows.h>
#include <locale.h>
#include <mbctype.h>
#include "NHunspellExtensions.h"
#include "EncodingToCodePage.h"
#define DLLEXPORT extern "C" __declspec( dllexport )
class NHunspell: public Hunspell
{
// The methods aren't multi threaded, reentrant or whatev... | 27.935897 | 148 | 0.663148 | paulushub |
7c7271cd1bc6633e31eff5ad8cfbeb76ab576099 | 11,886 | hpp | C++ | libraries/protocol/include/deip/protocol/deip_virtual_operations.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 1 | 2021-08-16T12:44:43.000Z | 2021-08-16T12:44:43.000Z | libraries/protocol/include/deip/protocol/deip_virtual_operations.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | null | null | null | libraries/protocol/include/deip/protocol/deip_virtual_operations.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 2 | 2021-08-16T12:44:46.000Z | 2021-12-31T17:09:45.000Z | #pragma once
#include <deip/protocol/base.hpp>
#include <deip/protocol/block_header.hpp>
#include <deip/protocol/asset.hpp>
#include <deip/protocol/eci_diff.hpp>
#include <fc/utf8.hpp>
namespace deip {
namespace protocol {
struct fill_common_tokens_withdraw_operation : public virtual_operation
{
fill_common_token... | 37.377358 | 314 | 0.673481 | DEIPworld |
7c75c42e66b58e3633067cab6b3d32cf091eb355 | 1,230 | hpp | C++ | Engine/Src/Runtime/Core/Public/Core/Pimpl.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | Engine/Src/Runtime/Core/Public/Core/Pimpl.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | Engine/Src/Runtime/Core/Public/Core/Pimpl.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <Core/CoreApi.hpp>
#include <Core/Containers/UniquePointer.hpp>
#define FADE_MAKE_PIMPL \
private: \
class CImpl; \
__pragma(warning(push)) \
__pragma(warning(disable : 4251)) \
TPimpl<CImpl> m_Impl; ... | 23.207547 | 52 | 0.621951 | Septus10 |
7c7b086b8a08cf99e589f533582f1c4b2692f5d6 | 11,108 | hpp | C++ | source/zisc/core/zisc/string/json_value_parser-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | 2 | 2017-10-18T13:24:11.000Z | 2018-05-15T00:40:52.000Z | source/zisc/core/zisc/string/json_value_parser-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | 9 | 2016-09-05T11:07:03.000Z | 2019-07-05T15:31:04.000Z | source/zisc/core/zisc/string/json_value_parser-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | null | null | null | /*!
\file json_value_parser-inl.hpp
\author Sho Ikeda
\brief No brief description
\details
No detailed description.
\copyright
Copyright (c) 2015-2021 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef ZISC_JSON_VALUE_PARSER_INL_HP... | 22.039683 | 89 | 0.692384 | byzin |
75acb2eb9cd3d25bd94aacd1f8ba7c3e27ba8fda | 7,937 | cpp | C++ | lemon-based-parser/lemon-9-final/Value.cpp | PS-Group/compiler-theory-samples | c916af50eb42020024257ecd17f9be1580db7bf0 | [
"MIT"
] | null | null | null | lemon-based-parser/lemon-9-final/Value.cpp | PS-Group/compiler-theory-samples | c916af50eb42020024257ecd17f9be1580db7bf0 | [
"MIT"
] | null | null | null | lemon-based-parser/lemon-9-final/Value.cpp | PS-Group/compiler-theory-samples | c916af50eb42020024257ecd17f9be1580db7bf0 | [
"MIT"
] | null | null | null | #include "Value.h"
#include <stdexcept>
#include <boost/format.hpp>
#include <cmath>
namespace
{
bool FuzzyEquals(double left, double right)
{
return std::fabs(left - right) >= std::numeric_limits<double>::epsilon();
}
std::string ToPrettyString(double value)
{
std::string result = std::to_string(value);
... | 24.649068 | 101 | 0.63815 | PS-Group |
75b5214b40cee70531bb1c2b785b7721472ba137 | 4,100 | cpp | C++ | src/TotalGeneralizedVariation.cpp | DanonOfficial/TGVDenoising | 20446d9c89d75cf43056f43ed42f37965b4e7b6e | [
"MIT"
] | 8 | 2019-04-06T06:13:53.000Z | 2021-04-30T09:49:18.000Z | src/TotalGeneralizedVariation.cpp | DanonOfficial/TGVDenoising | 20446d9c89d75cf43056f43ed42f37965b4e7b6e | [
"MIT"
] | 1 | 2021-06-22T15:26:13.000Z | 2021-06-23T05:45:21.000Z | src/TotalGeneralizedVariation.cpp | DanonOfficial/TGVDenoising | 20446d9c89d75cf43056f43ed42f37965b4e7b6e | [
"MIT"
] | 2 | 2020-07-13T09:05:51.000Z | 2021-02-01T04:15:58.000Z | //
// Created by roundedglint585 on 3/11/19.
//
#include "TotalGeneralizedVariation.hpp"
TotalGeneralizedVariation::TotalGeneralizedVariation(const std::vector<TotalGeneralizedVariation::Image> &images)
: m_images(images), m_result(m_images[0]), m_width(m_result[0].size()), m_height(m_result.size()) {
in... | 33.064516 | 120 | 0.54878 | DanonOfficial |
75b5a22f172625f6a8c744363d6f830d8f9313f2 | 2,254 | hpp | C++ | include/codegen/include/Zenject/AddToCurrentGameObjectComponentProvider_--c__DisplayClass15_0.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/AddToCurrentGameObjectComponentProvider_--c__DisplayClass15_0.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/AddToCurrentGameObjectComponentProvider_--c__DisplayClass15_0.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:45 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 40.25 | 173 | 0.741349 | Futuremappermydud |
75b90ec3f22c09aa37cd74b9beb9a071c2601b66 | 1,959 | cpp | C++ | Source/Driver/API/SQLSetConnectOption.cpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | Source/Driver/API/SQLSetConnectOption.cpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | Source/Driver/API/SQLSetConnectOption.cpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | /*
* ----------------------------------------------------------------------------
* Copyright (c) 2014-2015 BigObject Inc.
* All Rights Reserved.
*
* Use of, copying, modifications to, and distribution of this software
* and its documentation without BigObject's written permission can
* result in the violation o... | 27.208333 | 79 | 0.663604 | yichenghuang |
75bb4de059be545230b138fcde43f895938c4a1e | 409 | cpp | C++ | week-02/practice/02.cpp | greenfox-zerda-sparta/zerda-syllabus | 5e49a9f9a2528e58bedb1f2d96bf8a4feabd123c | [
"MIT"
] | null | null | null | week-02/practice/02.cpp | greenfox-zerda-sparta/zerda-syllabus | 5e49a9f9a2528e58bedb1f2d96bf8a4feabd123c | [
"MIT"
] | null | null | null | week-02/practice/02.cpp | greenfox-zerda-sparta/zerda-syllabus | 5e49a9f9a2528e58bedb1f2d96bf8a4feabd123c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void draw_characters(int count, char c) {
for (int i = 0; i < count; ++i) {
cout << c;
}
}
void christmas_tree(char main_character, int times) {
for (int row = 1; row <= times; ++row) {
draw_characters(times - row, ' ');
draw_characters(row * 2 - 1, main_cha... | 16.36 | 53 | 0.594132 | greenfox-zerda-sparta |
75bdac2cb35e35698d57780b633d79365809eb2e | 1,640 | cpp | C++ | code/SoulVania/AnimationFactoryReader.cpp | warzes/Soulvania | 83733b6a6aa38f8024109193893eb5b65b0e6294 | [
"MIT"
] | 1 | 2021-06-30T06:29:54.000Z | 2021-06-30T06:29:54.000Z | code/SoulVania/AnimationFactoryReader.cpp | warzes/Soulvania | 83733b6a6aa38f8024109193893eb5b65b0e6294 | [
"MIT"
] | null | null | null | code/SoulVania/AnimationFactoryReader.cpp | warzes/Soulvania | 83733b6a6aa38f8024109193893eb5b65b0e6294 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "AnimationFactoryReader.h"
#include "FileLogger.h"
#include "LoadContentException.h"
#include "ContentManager.h"
#include "pugixml/pugixml.hpp"
std::shared_ptr<AnimationFactory> AnimationFactoryReader::Read(std::string filePath, ContentManager& contentManager)
{
auto xmlDocument = pugi::x... | 38.139535 | 116 | 0.75061 | warzes |
75c093ce0b68e30ec4281f3659b798d89fc0be6e | 929 | cpp | C++ | FRBDK/BitmapFontGenerator/source/dynamic_funcs.cpp | patridge/FlatRedBall | 01e0212afeb977a10244796494dcaf9c800a3770 | [
"MIT"
] | 110 | 2016-01-14T14:46:16.000Z | 2022-03-27T19:00:48.000Z | FRBDK/BitmapFontGenerator/source/dynamic_funcs.cpp | patridge/FlatRedBall | 01e0212afeb977a10244796494dcaf9c800a3770 | [
"MIT"
] | 471 | 2016-08-21T14:48:15.000Z | 2022-03-31T20:22:50.000Z | FRBDK/BitmapFontGenerator/source/dynamic_funcs.cpp | patridge/FlatRedBall | 01e0212afeb977a10244796494dcaf9c800a3770 | [
"MIT"
] | 33 | 2016-01-25T23:30:03.000Z | 2022-02-18T07:24:45.000Z | #include <windows.h>
#include "dynamic_funcs.h"
// Since this code requires Win2000 or later, we'll load it dynamically
static HMODULE dll_gdi32 = 0;
GetGlyphIndicesA_t fGetGlyphIndicesA = 0;
GetGlyphIndicesW_t fGetGlyphIndicesW = 0;
GetFontUnicodeRanges_t fGetFontUnicodeRanges = 0;
void Init()
{
#if... | 27.323529 | 100 | 0.759957 | patridge |
75c42169434068f566303a77e8c7e062f4d5bf0d | 201 | hpp | C++ | src/ColorSYMGS.hpp | hpcg-benchmark/KHPCG3.0 | 9591b148ea6552342a0471a932d2abf332e490e0 | [
"BSD-3-Clause"
] | 5 | 2015-07-10T16:35:08.000Z | 2021-09-13T03:29:37.000Z | src/ColorSYMGS.hpp | zabookey/Kokkos-HPCG | 7ca081e51a275c4fb6b21e8871788e88e8715dbc | [
"BSD-3-Clause"
] | null | null | null | src/ColorSYMGS.hpp | zabookey/Kokkos-HPCG | 7ca081e51a275c4fb6b21e8871788e88e8715dbc | [
"BSD-3-Clause"
] | 3 | 2019-03-05T16:46:25.000Z | 2021-12-22T03:49:00.000Z | #ifndef COLORSYMGS_HPP
#define COLORSYMGS_HPP
#include "SparseMatrix.hpp"
#include "Vector.hpp"
#include "KokkosSetup.hpp"
int ColorSYMGS(const SparseMatrix & A, const Vector & x, Vector & y);
#endif | 22.333333 | 69 | 0.766169 | hpcg-benchmark |
75c76b1272dc16e0e71395a36d1be066d448e549 | 26,695 | cpp | C++ | winrt/test.internal/xaml/CanvasImageSourceUnitTests.cpp | r2d2rigo/Win2D | 3f06d4f19b7d16b67859a1b30ac770215ef3e52d | [
"MIT"
] | 1,002 | 2015-01-09T19:40:01.000Z | 2019-05-04T12:05:09.000Z | winrt/test.internal/xaml/CanvasImageSourceUnitTests.cpp | r2d2rigo/Win2D | 3f06d4f19b7d16b67859a1b30ac770215ef3e52d | [
"MIT"
] | 667 | 2015-01-02T19:04:11.000Z | 2019-05-03T14:43:51.000Z | winrt/test.internal/xaml/CanvasImageSourceUnitTests.cpp | SunburstApps/Win2D.WinUI | 75a33f8f4c0c785c2d1b478589fd4d3a9c5b53df | [
"MIT"
] | 258 | 2015-01-06T07:44:49.000Z | 2019-05-01T15:50:59.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
#include "pch.h"
TEST_CLASS(CanvasImageSourceUnitTests)
{
public:
TEST_METHOD_EX(CanvasImageSourceConstruction)
{
//
// On constructio... | 39.548148 | 199 | 0.65132 | r2d2rigo |
75ca9fb4e04ff2b0e4d7b0b143bed3015cae2e6c | 595 | cc | C++ | src/Candle.cc | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | src/Candle.cc | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | src/Candle.cc | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | #include "Candle.hh"
Candle::Candle(const char* textureUrl, sf::Vector2f position,
float scale, float width, float height, int col, int row,
sf::RenderWindow*& window, b2World*& world) :
GameObject(textureUrl, position, scale, width, height, col, row, b2BodyType::b2_staticBody, window, world)
{
animationsManager = n... | 27.045455 | 106 | 0.744538 | carolinavillam |
75cbdb9e5c961527d2241b0d02724dd87a66ba54 | 127 | cpp | C++ | Source/coopgame/Private/World/NativeEnemyPlayerStart.cpp | dakitten2358/coopgame | 660293ce381d55025e4654ff448faf6a71a69bd2 | [
"Apache-2.0"
] | 1 | 2018-11-21T21:35:21.000Z | 2018-11-21T21:35:21.000Z | Source/coopgame/Private/World/NativeEnemyPlayerStart.cpp | dakitten2358/coopgame | 660293ce381d55025e4654ff448faf6a71a69bd2 | [
"Apache-2.0"
] | 1 | 2017-05-13T12:21:22.000Z | 2017-05-13T12:24:39.000Z | Source/coopgame/Private/World/NativeEnemyPlayerStart.cpp | dakitten2358/coopgame | 660293ce381d55025e4654ff448faf6a71a69bd2 | [
"Apache-2.0"
] | 1 | 2017-03-29T17:05:50.000Z | 2017-03-29T17:05:50.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "NativeEnemyPlayerStart.h"
| 15.875 | 79 | 0.732283 | dakitten2358 |
75d056890b4cd47c1a4666a5a68f2035ec6f7d31 | 2,757 | cpp | C++ | src/cli/argparse.cpp | NHollmann/CmdPathtracer | 6c6c0382948bb6ea547458f743937b70c090ca6c | [
"MIT"
] | null | null | null | src/cli/argparse.cpp | NHollmann/CmdPathtracer | 6c6c0382948bb6ea547458f743937b70c090ca6c | [
"MIT"
] | null | null | null | src/cli/argparse.cpp | NHollmann/CmdPathtracer | 6c6c0382948bb6ea547458f743937b70c090ca6c | [
"MIT"
] | null | null | null | #include "argparse.hpp"
#include <iostream>
#include "cxxopts.hpp"
namespace cli
{
RaytracerOptions parseArguments(int argc, char *argv[])
{
RaytracerOptions raytracerOptions;
cxxopts::Options options(argv[0], "A toy raytracer by Nicolas Hollmann.");
options.add_options("General")
... | 41.149254 | 125 | 0.571999 | NHollmann |
75d5469ea85f516ebf9dfddb8943c424e37f1606 | 351 | cc | C++ | src/kernel/core/class.cc | cmejj/How-to-Make-a-Computer-Operating-System | eb30f8802fac9f0f1c28d3a96bb3d402bdfc4687 | [
"Apache-2.0"
] | 16,500 | 2015-01-01T00:47:42.000Z | 2022-03-31T17:12:02.000Z | src/kernel/core/class.cc | yongpingkan/How-to-Make-a-Computer-Operating-System | eb30f8802fac9f0f1c28d3a96bb3d402bdfc4687 | [
"Apache-2.0"
] | 66 | 2015-01-08T15:22:11.000Z | 2021-12-16T09:04:37.000Z | src/kernel/core/class.cc | yongpingkan/How-to-Make-a-Computer-Operating-System | eb30f8802fac9f0f1c28d3a96bb3d402bdfc4687 | [
"Apache-2.0"
] | 3,814 | 2015-01-01T12:42:31.000Z | 2022-03-31T14:26:50.000Z | #include <os.h>
/*
Static objects
*/
Io io; /* Input/Output interface */
Architecture arch; /* Cpu and architecture interface */
Vmm vmm; /* Virtual memory manager interface */
Filesystem fsm; /* Filesystem interface */
Module modm; /* Module manager */
Syscalls syscall; /* Syscalls manager */
Syste... | 25.071429 | 57 | 0.660969 | cmejj |
75da9c1ef3d420e1a32e810b0fe0b90c6f564e25 | 2,588 | hh | C++ | sdd/mem/cache_entry.hh | tic-toc/libsdd | 5c3deb43523d062929f169c3d7a301240f0fb811 | [
"BSD-2-Clause"
] | 6 | 2015-03-21T19:21:29.000Z | 2022-01-29T01:20:28.000Z | sdd/mem/cache_entry.hh | tic-toc/libsdd | 5c3deb43523d062929f169c3d7a301240f0fb811 | [
"BSD-2-Clause"
] | 1 | 2017-02-05T23:39:44.000Z | 2017-02-05T23:40:04.000Z | libsdd/sdd/mem/cache_entry.hh | kyouko-taiga/SwiftSDD | 9312160e0fac5fef6e605c9e74c543ded9708e54 | [
"MIT"
] | 3 | 2016-05-13T14:39:06.000Z | 2019-08-09T20:13:39.000Z | /// @file
/// @copyright The code is licensed under the BSD License
/// <http://opensource.org/licenses/BSD-2-Clause>,
/// Copyright (c) 2012-2015 Alexandre Hamez.
/// @author Alexandre Hamez
#pragma once
#include <functional> // hash
#include <list>
#include <utility> // forward
#include "s... | 28.755556 | 100 | 0.553323 | tic-toc |
75e5596aee746778f78381cffe406ad07ffb5f1a | 5,682 | cpp | C++ | src/ofApp.cpp | ryo-simon-mf/oF-Color-Boxes | 9ee208ec3c31d077c92860151c5a7df686ce579a | [
"MIT"
] | null | null | null | src/ofApp.cpp | ryo-simon-mf/oF-Color-Boxes | 9ee208ec3c31d077c92860151c5a7df686ce579a | [
"MIT"
] | null | null | null | src/ofApp.cpp | ryo-simon-mf/oF-Color-Boxes | 9ee208ec3c31d077c92860151c5a7df686ce579a | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
cam.setDistance(2500);
gui.setup();
gui.add( toggle_0.setup("inside box",false));
gui.add( toggle_1.setup("outside box1",false));
gui.add( toggle_4.setup("outside box2",false));
gui.add... | 23.774059 | 76 | 0.416579 | ryo-simon-mf |
75ec66a2cf5a8b24571f5449a2d43f2dc1b23e8f | 1,054 | cpp | C++ | 1675-minimize-deviation-in-array/1675-minimize-deviation-in-array.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | 1 | 2022-01-02T10:29:32.000Z | 2022-01-02T10:29:32.000Z | 1675-minimize-deviation-in-array/1675-minimize-deviation-in-array.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | null | null | null | 1675-minimize-deviation-in-array/1675-minimize-deviation-in-array.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | 1 | 2022-03-04T12:44:14.000Z | 2022-03-04T12:44:14.000Z | class Solution {
public:
int minimumDeviation(vector<int>& nums) {
set <int> s;
// Storing all elements in sorted order
//insert even directly and odd with one time multiplication
//and it will become even
for(int i = 0; i<nums.size() ; ++i)
{
... | 28.486486 | 74 | 0.446869 | Jatin-Shihora |
75f00f39fe0f4a39addc90305154e7c6205e9604 | 1,415 | cpp | C++ | nowa/2018/c++/zad4_3.cpp | shilangyu/zadania-maturalne | faa2b2ac8e17a7adb22c0c5aeccad9745c05e32c | [
"MIT"
] | 3 | 2019-04-15T14:16:53.000Z | 2019-04-26T09:37:19.000Z | nowa/2018/c++/zad4_3.cpp | shilangyu/zadania-maturalne | faa2b2ac8e17a7adb22c0c5aeccad9745c05e32c | [
"MIT"
] | 1 | 2019-03-11T19:10:33.000Z | 2019-03-11T19:10:33.000Z | nowa/2018/c++/zad4_3.cpp | shilangyu/zadania-maturalne | faa2b2ac8e17a7adb22c0c5aeccad9745c05e32c | [
"MIT"
] | 1 | 2019-04-26T09:38:04.000Z | 2019-04-26T09:38:04.000Z | #include <iostream>
#include <cstdlib>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
string zad4_3()
{
string line;
vector<string> content;
fstream file("../dane/sygnaly.txt");
// wczytywanie danych z pliku do vectora
if (file.is_open())
{
while (getline(... | 23.583333 | 100 | 0.543463 | shilangyu |
75f97aab1684f5ca3f646c331526fdf3ac9a8bfb | 4,639 | cpp | C++ | NarThumbnailProvider/zip_reader_open_IStream.cpp | Taromati2/nar-thumbnail-provider | 6b20d2896822754c9ac5e4c69999d0762b4f23df | [
"MIT"
] | null | null | null | NarThumbnailProvider/zip_reader_open_IStream.cpp | Taromati2/nar-thumbnail-provider | 6b20d2896822754c9ac5e4c69999d0762b4f23df | [
"MIT"
] | null | null | null | NarThumbnailProvider/zip_reader_open_IStream.cpp | Taromati2/nar-thumbnail-provider | 6b20d2896822754c9ac5e4c69999d0762b4f23df | [
"MIT"
] | null | null | null |
#include "windows.h"
#include "../minizip-ng/mz.h"
#include "../minizip-ng/mz_strm.h"
#include "../minizip-ng/mz_zip.h"
#include "../minizip-ng/mz_zip_rw.h"
typedef struct mz_zip_reader_s {
void *zip_handle;
void *file_stream;
void *buffered_stream;
void *split... | 25.349727 | 79 | 0.632033 | Taromati2 |
75fa3f0e258c665df7572f01b6807b4b5a79f358 | 1,549 | hpp | C++ | src/organization_model/Statistics.hpp | tomcreutz/knowledge-reasoning-moreorg | 545fa92eaf0fc8ccc4cc042bd994afc918d16f68 | [
"BSD-3-Clause"
] | null | null | null | src/organization_model/Statistics.hpp | tomcreutz/knowledge-reasoning-moreorg | 545fa92eaf0fc8ccc4cc042bd994afc918d16f68 | [
"BSD-3-Clause"
] | 1 | 2021-02-26T11:11:03.000Z | 2021-02-26T19:16:10.000Z | src/organization_model/Statistics.hpp | tomcreutz/knowledge-reasoning-moreorg | 545fa92eaf0fc8ccc4cc042bd994afc918d16f68 | [
"BSD-3-Clause"
] | 1 | 2021-05-17T13:02:49.000Z | 2021-05-17T13:02:49.000Z | #ifndef ORGANIZATION_MODEL_ORGANIZATION_MODEL_STATISTICS_HPP
#define ORGANIZATION_MODEL_ORGANIZATION_MODEL_STATISTICS_HPP
#include <stdint.h>
#include <base/Time.hpp>
#include <moreorg/organization_model/InterfaceConnection.hpp>
#include <moreorg/organization_model/ActorModelLink.hpp>
namespace owl = owlapi::model;
... | 27.660714 | 90 | 0.775339 | tomcreutz |
2f050085d7b99d79442a0c3e6e986aaace885244 | 365 | hpp | C++ | Scripts/Exile_Scavenge/Exile.MAPNAME/CfgRemoteExec.hpp | x-cessive/exile | c5d1f679879a183549e1c87d078d462cbba32c25 | [
"MIT"
] | 9 | 2017-03-30T15:37:09.000Z | 2022-02-06T22:44:17.000Z | Scripts/Exile_Scavenge/Exile.MAPNAME/CfgRemoteExec.hpp | x-cessive/exile | c5d1f679879a183549e1c87d078d462cbba32c25 | [
"MIT"
] | 1 | 2017-04-10T14:59:31.000Z | 2017-04-11T14:42:13.000Z | Scripts/Exile_Scavenge/Exile.MAPNAME/CfgRemoteExec.hpp | x-cessive/exile | c5d1f679879a183549e1c87d078d462cbba32c25 | [
"MIT"
] | 6 | 2017-02-25T00:19:40.000Z | 2022-02-16T19:54:45.000Z | class CfgRemoteExec
{
class Functions
{
mode = 2;
jip = 0;
class fnc_AdminReq { allowedTargets=2; };
class ExileServer_system_network_dispatchIncomingMessage { allowedTargets=2; };
class ExileExpansionServer_system_scavenge_spawnLoot { allowedTargets=0; };
};
clas... | 22.8125 | 83 | 0.632877 | x-cessive |
2f06c9830e77a368f7eb4bb675e6ad52232b7bcb | 1,535 | cpp | C++ | src/game-ui/in-game/game_ui_teleporter.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | 1 | 2020-09-23T11:17:35.000Z | 2020-09-23T11:17:35.000Z | src/game-ui/in-game/game_ui_teleporter.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | src/game-ui/in-game/game_ui_teleporter.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | #include "game_ui_teleporter.hpp"
#include "../ui_text_element.hpp"
#include "../ui_button.hpp"
#include "../game_ui_manager.hpp"
#include "../../game/items/teleporter.hpp"
#include "../../engine.hpp"
#include "../../game_session.hpp"
#include "../../game/character.hpp"
namespace space
{
void GameUITeleporter::i... | 30.098039 | 134 | 0.626059 | astrellon |
2f0e58369426a872d6e60a0940741337c827f251 | 1,191 | cpp | C++ | quake_framebuffer/quake_framebuffer/net_none.cpp | WarlockD/quake-stm32 | 8414f407f6fc529bf9d5a371ed91c1ee1194679b | [
"BSD-2-Clause"
] | 4 | 2018-07-03T14:21:39.000Z | 2021-06-01T06:12:14.000Z | quake_framebuffer/quake_framebuffer/net_none.cpp | WarlockD/quake-stm32 | 8414f407f6fc529bf9d5a371ed91c1ee1194679b | [
"BSD-2-Clause"
] | null | null | null | quake_framebuffer/quake_framebuffer/net_none.cpp | WarlockD/quake-stm32 | 8414f407f6fc529bf9d5a371ed91c1ee1194679b | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in th... | 24.8125 | 75 | 0.786734 | WarlockD |
2f128127c60db93ca245e59efd2846ef5b44d83b | 3,553 | cpp | C++ | src/save/main.cpp | RobertLeahy/MCPP | 2b9223afa35ae215b9af7e5398ce8f7f6dd70377 | [
"Unlicense"
] | 19 | 2015-04-25T15:19:59.000Z | 2022-02-28T03:00:42.000Z | src/save/main.cpp | RobertLeahy/MCPP | 2b9223afa35ae215b9af7e5398ce8f7f6dd70377 | [
"Unlicense"
] | 1 | 2016-01-28T08:50:02.000Z | 2021-08-24T02:34:48.000Z | src/save/main.cpp | RobertLeahy/MCPP | 2b9223afa35ae215b9af7e5398ce8f7f6dd70377 | [
"Unlicense"
] | 7 | 2015-04-17T16:38:45.000Z | 2021-06-25T03:39:39.000Z | #include <save/save.hpp>
#include <server.hpp>
#include <singleton.hpp>
#include <thread_pool.hpp>
#include <exception>
#include <utility>
using namespace MCPP;
namespace MCPP {
static const Word priority=1;
static const String name("Save Manager");
static const String debug_key("save");
static const String s... | 14.384615 | 66 | 0.599775 | RobertLeahy |
2f2bdcf7447fd4ad54fdfd70d829770df30d3c37 | 980 | cpp | C++ | SnackDown Round 1A/BINFLIP.cpp | Jks08/CodeChef | a8aec8a563c441176a36b8581031764e99f09833 | [
"MIT"
] | 1 | 2021-09-17T13:10:04.000Z | 2021-09-17T13:10:04.000Z | SnackDown Round 1A/BINFLIP.cpp | Jks08/CodeChef | a8aec8a563c441176a36b8581031764e99f09833 | [
"MIT"
] | null | null | null | SnackDown Round 1A/BINFLIP.cpp | Jks08/CodeChef | a8aec8a563c441176a36b8581031764e99f09833 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define FAST1 ios_base::sync_with_stdio(false);
#define FAST2 cin.tie(NULL);
#define allsort(a) sort(a.begin(),a.end())
ll n,k;
void solve(){
cin>>n>>k;
if(k==0){
cout<<"Yes"<<endl;
cout<<0<<endl;
return;
}
if(k%2... | 17.5 | 47 | 0.418367 | Jks08 |
2f315b9281397276f2339416be7e8d28f31ac034 | 887 | cc | C++ | leet_code/Longest_Increasing_Subsequence/dp_solution.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | leet_code/Longest_Increasing_Subsequence/dp_solution.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | leet_code/Longest_Increasing_Subsequence/dp_solution.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class Solution {
private:
const int invalid = -1;
int getAnswer(vector<int>& answer, vector<int> &nums, int idx) {
int max = 0;
if (answer[idx] != invalid) {
return answer[idx];
}
for (int i = idx + 1; i < answer.size(); ++i) {
if (nums[idx] >= nums[i]) {... | 23.972973 | 68 | 0.421646 | ldy121 |
2f33385320806e4d297750693b873ce73938820c | 837 | cpp | C++ | program8/program8/driver.cpp | hurnhu/Academic-C-Code-Examples | 2dbab12888fc7f87b997daf7df4127a1ffd81b44 | [
"MIT"
] | null | null | null | program8/program8/driver.cpp | hurnhu/Academic-C-Code-Examples | 2dbab12888fc7f87b997daf7df4127a1ffd81b44 | [
"MIT"
] | null | null | null | program8/program8/driver.cpp | hurnhu/Academic-C-Code-Examples | 2dbab12888fc7f87b997daf7df4127a1ffd81b44 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
#include "ProblemList.h"
/*
*********************
*MADE BY MICHAEL LApAN
*********************
*this program is a help desk mock up
*it proccesses helkp desk tickets,
*sorts and stores them. then shows top
*25 then bottem 25
*/
int main()
... | 23.25 | 65 | 0.67503 | hurnhu |
2f40127686b3e138bd6d4c51ffba3159a2b80c29 | 562 | cpp | C++ | CodeForces/862/A - Mahmoud and Ehab and the MEX.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-02-24T06:45:56.000Z | 2018-05-29T04:47:39.000Z | CodeForces/862/A - Mahmoud and Ehab and the MEX.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | null | null | null | CodeForces/862/A - Mahmoud and Ehab and the MEX.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-06-28T09:53:27.000Z | 2022-03-23T13:29:57.000Z | #include <bits/stdc++.h>
using namespace std;
#pragma comment(linker,"/stack:1024000000,1024000000")
#define db(x) cout<<(x)<<endl
#define pf(x) push_front(x)
#define pb(x) push_back(x)
#define mp(x,y) make_pair(x,y)
#define ms(x,y) memset(x,y,sizeof x)
typedef long long LL;
const double pi=acos(-1),eps=1e-9;
const LL ... | 22.48 | 54 | 0.649466 | QAQrz |
2f40bd39f42d58fecaad97ea17318d2cace2933c | 9,089 | cpp | C++ | src/Editor/TristeonEditor.cpp | HyperionDH/Tristeon | 8475df94b9dbd4e3b4cc82b89c6d4bab45acef29 | [
"MIT"
] | 38 | 2017-12-04T10:48:28.000Z | 2018-05-11T09:59:41.000Z | src/Editor/TristeonEditor.cpp | Tristeon/Tristeon3D | 8475df94b9dbd4e3b4cc82b89c6d4bab45acef29 | [
"MIT"
] | 9 | 2017-12-04T09:58:55.000Z | 2018-02-05T00:06:41.000Z | src/Editor/TristeonEditor.cpp | Tristeon/Tristeon3D | 8475df94b9dbd4e3b4cc82b89c6d4bab45acef29 | [
"MIT"
] | 3 | 2018-01-10T13:39:12.000Z | 2018-03-17T20:53:22.000Z | #include "Core/MessageBus.h"
#ifdef TRISTEON_EDITOR
#include "TristeonEditor.h"
#include <ImGUI/imgui_impl_glfw_vulkan.h>
#include "Core/Engine.h"
#include "Core/Rendering/Vulkan/HelperClasses/CommandBuffer.h"
#include "Core/Rendering/Vulkan/RenderManagerVulkan.h"
#include "Asset Browser/AssetBrowser.h"
#include "Scen... | 42.078704 | 152 | 0.728793 | HyperionDH |
2f41e4c1d1f0071946aea4c61dff3941058b388f | 567 | cpp | C++ | chap13/Exer13_28_pointer.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 50 | 2016-01-08T14:28:53.000Z | 2022-01-21T12:55:00.000Z | chap13/Exer13_28_pointer.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 2 | 2017-06-05T16:45:20.000Z | 2021-04-17T13:39:24.000Z | chap13/Exer13_28_pointer.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 18 | 2016-08-17T15:23:51.000Z | 2022-03-26T18:08:43.000Z | #include <iostream>
#include "Exer13_28_BinStrTree_point.h"
using std::cout;
using std::endl;
int main()
{
TreeNode t1("t1");
TreeNode t2 = t1;
t1.read(cout) << endl;
t2.write("t2");
t2.read(cout) << endl;
{
TreeNode t3(t2);
t3.read(cout) << endl;
t3.write("t3");
... | 18.9 | 39 | 0.527337 | sjbarigye |
2f46731513ee8207fa214c84ef6cf66b94654967 | 10,622 | cpp | C++ | Common/ScenarioTest/Document/ScenarioTest.cpp | testdrive-profiling-master/profiles | 6e3854874366530f4e7ae130000000812eda5ff7 | [
"BSD-3-Clause"
] | null | null | null | Common/ScenarioTest/Document/ScenarioTest.cpp | testdrive-profiling-master/profiles | 6e3854874366530f4e7ae130000000812eda5ff7 | [
"BSD-3-Clause"
] | null | null | null | Common/ScenarioTest/Document/ScenarioTest.cpp | testdrive-profiling-master/profiles | 6e3854874366530f4e7ae130000000812eda5ff7 | [
"BSD-3-Clause"
] | null | null | null | //================================================================================
// Copyright (c) 2013 ~ 2020. HyungKi Jeong(clonextop@gmail.com)
// All rights reserved.
//
// The 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
//
// Redistribution and use in source and binary forms,
// with or ... | 28.785908 | 302 | 0.695914 | testdrive-profiling-master |
2f4974d6d95586a9cbf61a1a1bf9c636ea7023a5 | 11,536 | cpp | C++ | src/probe_renderer/bruneton_probe_renderer.cpp | Hanggansta/Nimble | 291c1bae6308c49f4e86a7ecabc97e9fe8fce654 | [
"MIT"
] | null | null | null | src/probe_renderer/bruneton_probe_renderer.cpp | Hanggansta/Nimble | 291c1bae6308c49f4e86a7ecabc97e9fe8fce654 | [
"MIT"
] | null | null | null | src/probe_renderer/bruneton_probe_renderer.cpp | Hanggansta/Nimble | 291c1bae6308c49f4e86a7ecabc97e9fe8fce654 | [
"MIT"
] | 1 | 2021-05-09T12:51:18.000Z | 2021-05-09T12:51:18.000Z | #include "bruneton_probe_renderer.h"
#include "../renderer.h"
#include "../resource_manager.h"
#include "../logger.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <gtc/matrix_transform.hpp>
namespace nimble
{
// --------------------------------------------------------------------------------------------------... | 46.704453 | 527 | 0.59492 | Hanggansta |
2f4c96320cf49fba14bc658832b4d561c921f50e | 480 | cpp | C++ | BASIC c++/inheritance/use _OF_protected.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/inheritance/use _OF_protected.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/inheritance/use _OF_protected.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
//base class
class shape{
protected:
int width;
int height;
public:
void setwidth(int w)
{
width=w;
}
void setheight(int h)
{
height=h;
}
};
//drived class
class rectangle:public shape
{
public:
int get_area(){
re... | 14.117647 | 48 | 0.572917 | jattramesh |
2f515c43df3d33da482c89eb87ec4ec7fecec030 | 1,405 | cpp | C++ | Kattis/ummcode.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | 3 | 2021-02-19T17:01:11.000Z | 2021-03-11T16:50:19.000Z | Kattis/ummcode.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | null | null | null | Kattis/ummcode.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | null | null | null | //
// https://open.kattis.com/problems/ummcode
#include <vector>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <stack>
#include <cmath>
#include <map>
#include <utility>
#include <queue>
#include <iomanip>
#include <deque>
#include <set>
#define Forcase int __t;cin>>__t;for(int... | 19.246575 | 68 | 0.472598 | YourName0729 |
016d09b9894428db9518336c24de38bfe10ec957 | 611 | cpp | C++ | neps/cursos/codcad/tecnicas/basicas/busca_binaria/casas.cpp | homembaixinho/codeforces | 9394eaf383afedacdfe86ca48609425b14f84bdb | [
"MIT"
] | null | null | null | neps/cursos/codcad/tecnicas/basicas/busca_binaria/casas.cpp | homembaixinho/codeforces | 9394eaf383afedacdfe86ca48609425b14f84bdb | [
"MIT"
] | null | null | null | neps/cursos/codcad/tecnicas/basicas/busca_binaria/casas.cpp | homembaixinho/codeforces | 9394eaf383afedacdfe86ca48609425b14f84bdb | [
"MIT"
] | null | null | null | // Soma de Casas
// https://neps.academy/lesson/173
#include <iostream>
using namespace std;
#define MAXN 100000
int N, K, casas[MAXN];
int busca(int x) {
int ini=0, fim=N-1, meio;
while (ini<=fim) {
meio = (ini+fim)/2;
if (casas[meio] > x) fim = meio-1;
if (casas[meio] < x) ini = meio+1;
if (c... | 16.078947 | 52 | 0.513912 | homembaixinho |
016ebe407f7707d1008e404dfdf8d8e80e371d03 | 2,808 | cpp | C++ | Turtlebot_Car4D_Car1D_Overtake/Reachability Computation/add_lane_disturbance_v2.cpp | karenl7/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | 6 | 2019-01-30T00:11:55.000Z | 2022-03-09T02:44:51.000Z | Turtlebot_Car4D_Car1D_Overtake/Reachability Computation/add_lane_disturbance_v2.cpp | StanfordASL/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | null | null | null | Turtlebot_Car4D_Car1D_Overtake/Reachability Computation/add_lane_disturbance_v2.cpp | StanfordASL/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | 4 | 2018-09-08T00:16:55.000Z | 2022-03-09T02:44:54.000Z | void add_lane_disturbance_v2(
beacls::FloatVec& lane,
const std::vector<size_t> shape,
beacls::FloatVec range,
beacls::FloatVec gmin,
beacls::FloatVec gmax,
FLOAT_TYPE vehicle_width,
FLOAT_TYPE fill_Value,
size_t dim){
FLOAT_TYPE x_unit = (static_cast<float>(shape[0])-1)/(gmax[0]-gmin[0]);
FLOA... | 40.114286 | 215 | 0.603276 | karenl7 |
01711e943bc73ff5e41c51c8f7030c4bafda1b67 | 7,173 | cpp | C++ | src_legacy/2018/test/test_PlayFramesAction.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | null | null | null | src_legacy/2018/test/test_PlayFramesAction.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | 75 | 2017-05-28T23:39:33.000Z | 2019-05-09T06:18:44.000Z | src_legacy/2018/test/test_PlayFramesAction.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | null | null | null | #include "test.h"
#include "player/PlayFramesAction.h"
TEST(playFramesAction_tests, afterDeclaration){
PlayFramesAction playFramesAction;
playFramesAction.printInfo("pre:");
EXPECT_FALSE(playFramesAction.isActive());
}
TEST(playFramesAction_tests, afterInit){
PlayFramesAction playFramesAction;
RawPoiComman... | 29.763485 | 71 | 0.732748 | gmoehler |
01715332cdd82763d0e23ef996bb901ffbd4d0c7 | 16,727 | cpp | C++ | jani/inspector/ui/BaseWindow.cpp | RodrigoHolztrattner/JANI | cd8794a9826645ecf4ccf4cbd331bd6db2f1b2c8 | [
"MIT"
] | null | null | null | jani/inspector/ui/BaseWindow.cpp | RodrigoHolztrattner/JANI | cd8794a9826645ecf4ccf4cbd331bd6db2f1b2c8 | [
"MIT"
] | null | null | null | jani/inspector/ui/BaseWindow.cpp | RodrigoHolztrattner/JANI | cd8794a9826645ecf4ccf4cbd331bd6db2f1b2c8 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Filename: BaseWindow.cpp
////////////////////////////////////////////////////////////////////////////////
#include "BaseWindow.h"
#include "imgui.h"
#include "..\imgui_extension.h"
Jani::Inspector::BaseWindow::BaseWindow(InspectorManag... | 32.99211 | 241 | 0.628505 | RodrigoHolztrattner |
0171b344cb1d582828969b7e099d9e2168cb09f5 | 5,000 | cpp | C++ | trunk/src/kernel/lbmemcheck.cpp | breezeewu/media-server | b7f6e7c24a1c849180ba31088250c0174b1112e0 | [
"MIT"
] | null | null | null | trunk/src/kernel/lbmemcheck.cpp | breezeewu/media-server | b7f6e7c24a1c849180ba31088250c0174b1112e0 | [
"MIT"
] | null | null | null | trunk/src/kernel/lbmemcheck.cpp | breezeewu/media-server | b7f6e7c24a1c849180ba31088250c0174b1112e0 | [
"MIT"
] | null | null | null | #include <lbmemcheck.hpp>
#include <srs_kernel_log.hpp>
#ifndef lbtrace
#define lbtrace srs_trace
#endif
#ifndef lberror
#define lberror srs_error
#endif
lbmemcheck_ctx* g_pmcc = NULL;
lbmemcheck_ctx* lbmemcheck_initialize()
{
lbmemcheck_ctx* pmcc = (lbmemcheck_ctx*)::calloc(1, sizeof(lbmemcheck_ctx));
pmcc->... | 28.248588 | 157 | 0.5894 | breezeewu |
0173d54babdf4883a3150eb0599e66987bd23a3b | 5,591 | cpp | C++ | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/Components/CsWidgetComponent.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/Components/CsWidgetComponent.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/Components/CsWidgetComponent.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2019 Closed Sum Games, LLC. All Rights Reserved.
#include "Components/CsWidgetComponent.h"
#include "CsCoreDEPRECATED.h"
// Types
#include "Types/CsTypes.h"
// Library
#include "Library/CsLibrary_Common.h"
// UI
#include "UI/CsUserWidget.h"
#include "UI/Simple/CsSimpleWidget.h"
#include "Pawn/CsPawn... | 24.959821 | 150 | 0.764979 | closedsum |
017768daea06f2b3bad9fa5c4261f7da65f3a67a | 5,330 | cpp | C++ | mainprograms/TestTwoDProblem.cpp | Kauehenrik/FemCourseEigenClass2021 | d4927d92b541fdd2b2aa1fa424a413dd561ae96e | [
"MIT"
] | 1 | 2021-06-12T13:21:51.000Z | 2021-06-12T13:21:51.000Z | mainprograms/TestTwoDProblem.cpp | Kauehenrik/FemCourseEigenClass2021 | d4927d92b541fdd2b2aa1fa424a413dd561ae96e | [
"MIT"
] | null | null | null | mainprograms/TestTwoDProblem.cpp | Kauehenrik/FemCourseEigenClass2021 | d4927d92b541fdd2b2aa1fa424a413dd561ae96e | [
"MIT"
] | null | null | null |
//
// TestOneDProblem.cpp MODIFICADO DO ORIGINAL
// FemSC
//
// Created by Eduardo Ferri on 08/17/15.
//
//
//TestOneDProblem cpp
// Os testes foram preparados com um proposito educacional,
// recomenda-se que o aluno entenda a funcionalidade de cada
// teste e posteriormente use com seu cÛdigo caso a caso
// ... | 31.538462 | 536 | 0.593246 | Kauehenrik |
0177e04f79e8bbcea39736ba26a1a8493ddd5140 | 683 | cxx | C++ | tests/test_utils.cxx | hiroshin-dev/cxxplug | 5d55a0424391301221a765f978d76fc702d33dd2 | [
"MIT"
] | null | null | null | tests/test_utils.cxx | hiroshin-dev/cxxplug | 5d55a0424391301221a765f978d76fc702d33dd2 | [
"MIT"
] | null | null | null | tests/test_utils.cxx | hiroshin-dev/cxxplug | 5d55a0424391301221a765f978d76fc702d33dd2 | [
"MIT"
] | null | null | null | ///
/// Copyright (c) 2022 Hiroshi Nakashima
///
/// This software is released under the MIT License, see LICENSE.
///
#include "gtest/gtest.h"
#include "cxxplug/cxxplug.hxx"
TEST(utils, get_environment) {
{
const auto value = cxxplug::get_environment("TEST_ENVIRONMENT");
EXPECT_EQ(value, "test-environment"... | 22.766667 | 73 | 0.688141 | hiroshin-dev |
017c55c48eca20afad7562e302b57bc3d0b76907 | 831 | cpp | C++ | tests/assert/is-not-null.cpp | njlr/mnmlstc-unittest | 3e48e15730535f258251742efddf556be764e079 | [
"Apache-2.0"
] | 3 | 2015-02-27T04:09:09.000Z | 2021-05-11T16:02:55.000Z | tests/assert/is-not-null.cpp | njlr/mnmlstc-unittest | 3e48e15730535f258251742efddf556be764e079 | [
"Apache-2.0"
] | null | null | null | tests/assert/is-not-null.cpp | njlr/mnmlstc-unittest | 3e48e15730535f258251742efddf556be764e079 | [
"Apache-2.0"
] | 2 | 2017-08-15T12:34:09.000Z | 2020-05-17T07:30:05.000Z | #include <iostream>
#include <memory>
#include <string>
#include <cstdlib>
#include <unittest/assert.hpp>
#include <unittest/error.hpp>
void v1() {
using unittest::v1::error;
namespace assert = unittest::v1::assert;
std::unique_ptr<int> ptr { new int };
try { assert::is_not_null(ptr.release()); }
catch (... | 21.307692 | 65 | 0.583634 | njlr |
01801849ac23992dc22a0048d412b27e1b3ea4e8 | 143 | cpp | C++ | main.cpp | SCUTSSE/chatbot | 4ac82e6eeb8d4a158439962b9dcedfa0b7967ddd | [
"MIT"
] | 1 | 2020-05-19T20:17:34.000Z | 2020-05-19T20:17:34.000Z | main.cpp | SCUTSSE/chatbot | 4ac82e6eeb8d4a158439962b9dcedfa0b7967ddd | [
"MIT"
] | null | null | null | main.cpp | SCUTSSE/chatbot | 4ac82e6eeb8d4a158439962b9dcedfa0b7967ddd | [
"MIT"
] | 1 | 2018-07-13T10:22:37.000Z | 2018-07-13T10:22:37.000Z | #include"Chatbot.h"
#include <iostream>
using namespace std;
int main()
{
Tuling xiaoling;
xiaoling.Interface();
return 0;
} | 11.916667 | 23 | 0.643357 | SCUTSSE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.