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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
356339b58107851c307fa9de59d923af2803de29 | 1,054 | cpp | C++ | src/o3ds/async_request.cpp | mocap-ca/Open3DStream | e376b359d349e18030aec287c3e8eb68928e24ff | [
"MIT"
] | 13 | 2020-07-26T15:19:18.000Z | 2021-11-13T05:05:24.000Z | src/o3ds/async_request.cpp | pdkyll/Open3DStream | e376b359d349e18030aec287c3e8eb68928e24ff | [
"MIT"
] | null | null | null | src/o3ds/async_request.cpp | pdkyll/Open3DStream | e376b359d349e18030aec287c3e8eb68928e24ff | [
"MIT"
] | 4 | 2020-07-28T21:26:24.000Z | 2022-01-25T18:58:37.000Z | #include "async_request.h"
namespace O3DS
{
bool AsyncRequest::start(const char *url)
{
int ret;
ret = nng_req0_open(&mSocket);
if (ret != 0) { return false; }
ret = nng_aio_alloc(&aio, AsyncRequest::Callback, this);
if (ret != 0) { return false; }
ret = nng_dial(mSocket, url, 0, 0);
if (ret != 0) {... | 16.730159 | 58 | 0.624288 | mocap-ca |
356669aa523df31e474cd6a496a08eda09ce67dd | 2,307 | cpp | C++ | TMS1000/GameRSPocketRepeat.cpp | hotkeysoft/emulators | 088d7fc6e618255d2b3da35ab21ecf67528cf69f | [
"MIT"
] | 2 | 2020-11-26T05:24:50.000Z | 2020-12-28T15:46:05.000Z | TMS1000/GameRSPocketRepeat.cpp | hotkeysoft/emulators | ede4d9acdf1b2c1940d5b9f8aeefe32075f775a6 | [
"MIT"
] | null | null | null | TMS1000/GameRSPocketRepeat.cpp | hotkeysoft/emulators | ede4d9acdf1b2c1940d5b9f8aeefe32075f775a6 | [
"MIT"
] | 1 | 2022-01-31T13:51:33.000Z | 2022-01-31T13:51:33.000Z | #include "stdafx.h"
#include "GameSimon.h"
#include "CPUInfo.h"
#include "Console.h"
#include "TMS1000.h"
#include <iostream>
namespace GameRSPocketRepeat
{
// 1 K1 - yellow button(beginner / game 1)
// 2 K2 - blue button(amateur / game 2)
// 3 K4 - orange button(expert / last)
// 4 K8 - red button(c... | 23.783505 | 82 | 0.567404 | hotkeysoft |
83152c95eb7cac3dbd88253c33be12576a009e35 | 1,325 | cpp | C++ | src/js_realm.cpp | Osedea/realm-js | b06ee441bd7c2fced07e8e496f265a7578a06d07 | [
"Apache-2.0"
] | 3 | 2016-10-13T17:17:05.000Z | 2017-01-13T20:00:39.000Z | src/js_realm.cpp | Osedea/realm-js | b06ee441bd7c2fced07e8e496f265a7578a06d07 | [
"Apache-2.0"
] | null | null | null | src/js_realm.cpp | Osedea/realm-js | b06ee441bd7c2fced07e8e496f265a7578a06d07 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm 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/li... | 29.444444 | 84 | 0.640755 | Osedea |
83160da7c8d6adfc016d7454c44cbb783384176f | 3,702 | hh | C++ | vm/vm/main/cached/BuiltinProcedure-implem.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 379 | 2015-01-02T20:27:33.000Z | 2022-03-26T23:18:17.000Z | vm/vm/main/cached/BuiltinProcedure-implem.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 81 | 2015-01-08T13:18:52.000Z | 2021-12-21T14:02:21.000Z | vm/vm/main/cached/BuiltinProcedure-implem.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 75 | 2015-01-06T09:08:20.000Z | 2021-12-17T09:40:18.000Z |
void TypeInfoOf<BuiltinProcedure>::printReprToStream(VM vm, RichNode self, std::ostream& out,
int depth, int width) const {
assert(self.is<BuiltinProcedure>());
self.as<BuiltinProcedure>().printReprToStream(vm, out, depth, width);
}
UnstableNode TypeInfoOf<BuiltinProcedure>::serialize(VM vm, S... | 34.277778 | 204 | 0.745273 | Ahzed11 |
831a3cdfb5d1a84e21b71f3b6fc8f9ca79ca6b86 | 1,083 | cpp | C++ | Platform/Windows/Editor/ProjectWindow/ProjectWindow.cpp | BattleFireLTD/Engine | eae9aae7dc63aec341c0bbc0a33ba7f9a136df19 | [
"MIT"
] | 23 | 2020-08-17T02:11:23.000Z | 2022-03-07T22:21:20.000Z | Platform/Windows/Editor/ProjectWindow/ProjectWindow.cpp | battlefireopen/Engine | eae9aae7dc63aec341c0bbc0a33ba7f9a136df19 | [
"MIT"
] | 1 | 2020-08-20T03:10:20.000Z | 2020-08-20T15:43:17.000Z | Platform/Windows/Editor/ProjectWindow/ProjectWindow.cpp | battlefireopen/Engine | eae9aae7dc63aec341c0bbc0a33ba7f9a136df19 | [
"MIT"
] | 15 | 2020-08-17T02:18:46.000Z | 2021-09-03T09:14:23.000Z | #include "ProjectWindow.h"
#include "Platform/Windows/Common/WinEnviroment.h"
#include "Platform/Windows/Common/TabWindow.h"
#include "Platform/Windows/Editor/Menu/MenuItemDefine.h"
#include "Runtime/Debugger/Logger.h"
#include "Runtime/String/StringUtils.h"
#include "Runtime/IO/FileSystem.h"
namespace Editor {
Projec... | 33.84375 | 60 | 0.752539 | BattleFireLTD |
831d9bec02d15327c0c50b2a7c40b435f1e787d5 | 1,918 | cpp | C++ | fs/fat32/src/linkedcluster_fetch.cpp | kms1212/OpenFSL | 476bb59bce6b451ef39b2dbfef85a814218bce80 | [
"BSD-3-Clause"
] | 3 | 2021-05-27T13:12:28.000Z | 2022-03-08T19:04:49.000Z | fs/fat32/src/linkedcluster_fetch.cpp | kms1212/OpenFSL | 476bb59bce6b451ef39b2dbfef85a814218bce80 | [
"BSD-3-Clause"
] | 3 | 2021-06-15T14:11:11.000Z | 2021-08-17T02:03:07.000Z | fs/fat32/src/linkedcluster_fetch.cpp | kms1212/OpenFSL | 476bb59bce6b451ef39b2dbfef85a814218bce80 | [
"BSD-3-Clause"
] | 3 | 2021-06-15T14:05:08.000Z | 2022-02-22T08:13:10.000Z | /* Copyright (c) 2021. kms1212(Minsu Kwon)
This file is part of OpenFSL.
OpenFSL and its source code is published over BSD 3-Clause License.
See the BSD-3-Clause for more details.
<https://raw.githubusercontent.com/kms1212/OpenFSL/main/LICENSE>
*/
#include "openfsl/fat32/fs_fat32.h"
int openfsl::FAT32::LinkedCluste... | 34.872727 | 77 | 0.656413 | kms1212 |
831f3804079ab87f8e2258ec7a7ae5af37d9891e | 1,015 | cpp | C++ | workshop 2020/Dynamic Programming/lylipad/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | workshop 2020/Dynamic Programming/lylipad/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | workshop 2020/Dynamic Programming/lylipad/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <math.h>
#include <algorithm>
#define int long long
using namespace std;
int lilypad(int cur, vector<int>& memory, vector<int>const& lilypads){
if(cur < 0){
return 0;
}
if(cur == 0){
return lilypads[cur];
}
if(memory[cur] != -1){
... | 21.145833 | 72 | 0.575369 | wdjpng |
832c74c709d1ea26b3f8985748fccf9a94e5057c | 1,702 | cpp | C++ | thread_util/threadutil_share.cpp | Ayrton2718/robot_core_os | e9ee06e165ce3897bb9107038fef571efdccc344 | [
"MIT"
] | null | null | null | thread_util/threadutil_share.cpp | Ayrton2718/robot_core_os | e9ee06e165ce3897bb9107038fef571efdccc344 | [
"MIT"
] | null | null | null | thread_util/threadutil_share.cpp | Ayrton2718/robot_core_os | e9ee06e165ce3897bb9107038fef571efdccc344 | [
"MIT"
] | null | null | null | //
// threadutil_share.cpp
// thread-util
//
// Created by matsushita sena on 2020/04/21.
// Copyright © 2020年 matsushita sena. All rights reserved.
//
#include "threadutil_share.hpp"
namespace thread_util
{
locker ShareBasic::m_locker;
std::vector<void*> Sha... | 24.666667 | 80 | 0.670388 | Ayrton2718 |
8333125538d46338e93e55820b31a94175605593 | 531 | cpp | C++ | movie/Movie.cpp | Lucien950/ICS4U | bfe1f11d5d5f452c05afb7b235d909f7a27f9af7 | [
"MIT"
] | null | null | null | movie/Movie.cpp | Lucien950/ICS4U | bfe1f11d5d5f452c05afb7b235d909f7a27f9af7 | [
"MIT"
] | null | null | null | movie/Movie.cpp | Lucien950/ICS4U | bfe1f11d5d5f452c05afb7b235d909f7a27f9af7 | [
"MIT"
] | null | null | null | #include "Movie.h"
using namespace std;
Movie::Movie(){
title = "";
year = 0;
rating = 0.0;
genre = "";
}
Movie::Movie(string t, int y, double r, string g)
{
title = t;
year = y;
rating = r;
genre = g;
}
Movie::Movie(const Movie &m)
{
title = m.title;
year ... | 15.171429 | 51 | 0.508475 | Lucien950 |
8336ae786a768a0623d0f669b56fa01f27df6feb | 530 | cpp | C++ | flurr/source/utils/FileUtils.cpp | tpejsa/flurr | db3850d68e11395738ad32e65f445a008dad681a | [
"MIT"
] | null | null | null | flurr/source/utils/FileUtils.cpp | tpejsa/flurr | db3850d68e11395738ad32e65f445a008dad681a | [
"MIT"
] | null | null | null | flurr/source/utils/FileUtils.cpp | tpejsa/flurr | db3850d68e11395738ad32e65f445a008dad681a | [
"MIT"
] | null | null | null | #include "flurr/utils/FileUtils.h"
#include <algorithm>
namespace flurr
{
std::string GetFileExtension(const std::string& a_path)
{
if (a_path.size() < 3)
{
// Not a valid filename
return "";
}
for (std::size_t char_index = a_path.size() - 1; char_index != 0; --char_index)
{
if (a_path[char_in... | 17.666667 | 81 | 0.59434 | tpejsa |
833d8bad21d1e74302a080a9c7b1c161b27419d4 | 1,531 | cpp | C++ | kattis_done/scenes.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | 5 | 2019-03-17T01:33:19.000Z | 2021-06-25T09:50:45.000Z | kattis_done/scenes.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | kattis_done/scenes.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | /**
Those in the ninja world who break the rules and regulations are called filth, but those who don't care about their companions... are even lower than filth.
*/
#include <bits/stdc++.h>
#define forn(i, l, r) for(int i=l;i<=r;i++)
#define all(v) v.begin(),v.end()
#define pb push_back
#define nd second
#defin... | 24.693548 | 164 | 0.642064 | heiseish |
833e40c6ff589ebd2b0722c9a7ed94d3ac265530 | 200 | cc | C++ | CMC040/smg/smg_cursor_row.cc | khandy21yo/aplus | 3b4024a2a8315f5dcc78479a24100efa3c4a6504 | [
"MIT"
] | 1 | 2018-10-17T08:53:17.000Z | 2018-10-17T08:53:17.000Z | CMC040/smg/smg_cursor_row.cc | khandy21yo/aplus | 3b4024a2a8315f5dcc78479a24100efa3c4a6504 | [
"MIT"
] | null | null | null | CMC040/smg/smg_cursor_row.cc | khandy21yo/aplus | 3b4024a2a8315f5dcc78479a24100efa3c4a6504 | [
"MIT"
] | null | null | null | //! \file
//! \brief Get cursor row
//
#include "smg/smg.h"
//!
//! \brief get cursor column
//!
long smg$cursor_row(
smg_display_id &display)
{
int x, y;
getyx(display.win, y, x);
return y;
}
| 11.111111 | 28 | 0.61 | khandy21yo |
833e56c50ede3f0d16864ce9602f8c68662c362b | 646 | ipp | C++ | include/mono-bind/details/type.ipp | avdbg/mono-bind | 7283301cc46a89354b86754c50b30fd52ccaa727 | [
"MIT"
] | 1 | 2019-09-18T14:40:09.000Z | 2019-09-18T14:40:09.000Z | include/mono-bind/details/type.ipp | avdbg/mono-bind | 7283301cc46a89354b86754c50b30fd52ccaa727 | [
"MIT"
] | null | null | null | include/mono-bind/details/type.ipp | avdbg/mono-bind | 7283301cc46a89354b86754c50b30fd52ccaa727 | [
"MIT"
] | null | null | null | #pragma once
namespace MonoBind
{
Type::Type(MonoType *type)
:m_type(type)
{}
MonoType *Type::raw()
{
return m_type;
}
std::string Type::fullName()
{
return mono_type_full_name(m_type);
}
std::string Type::name()
{
return mono_type_get_name... | 17 | 69 | 0.557276 | avdbg |
8340d6c5ec80482893b3ea3f58e349e53a726aa6 | 1,062 | cpp | C++ | TRayTracer/Object.cpp | gabriellanzer/TRayTracer | 1baabaf1a9b7accc8992a18bdfc83fe6e06aa30f | [
"MIT"
] | 1 | 2018-03-11T23:46:21.000Z | 2018-03-11T23:46:21.000Z | TRayTracer/Object.cpp | TwinRavens/TRayTracer | 1baabaf1a9b7accc8992a18bdfc83fe6e06aa30f | [
"MIT"
] | 11 | 2018-05-17T12:16:45.000Z | 2018-07-05T13:37:11.000Z | TRayTracer/Object.cpp | gabriellanzer/TRayTracer | 1baabaf1a9b7accc8992a18bdfc83fe6e06aa30f | [
"MIT"
] | 1 | 2018-08-08T12:26:16.000Z | 2018-08-08T12:26:16.000Z | #include "Object.h"
Object::Object(ObjectData * data)
{
this->data = data;
//copy vertices from data
modVertices = new glm::vec3[data->verticesCount];
for (int i = 0; i < data->verticesCount; i++) {
modVertices[i] = data->vertices[i];
}
transformMat = mat4x4(1);
needUpdate = false;
}
void Object::UpdateVer... | 17.129032 | 55 | 0.661959 | gabriellanzer |
8341a85c5a22de46e1463abc88f70b406b1343e9 | 420 | cpp | C++ | 32 - Rekrusif Fibonacci .cpp | adityadees/alpro | bb0c99c392c7d17421c60517f3d01f5802294f02 | [
"MIT"
] | null | null | null | 32 - Rekrusif Fibonacci .cpp | adityadees/alpro | bb0c99c392c7d17421c60517f3d01f5802294f02 | [
"MIT"
] | null | null | null | 32 - Rekrusif Fibonacci .cpp | adityadees/alpro | bb0c99c392c7d17421c60517f3d01f5802294f02 | [
"MIT"
] | null | null | null | #include <iostream>
#include <conio.h>
using namespace std;
int fibonacci(int hasil)
{
if(hasil==0){
return 0;
} else if(hasil==1){
return 1;
} else {
return fibonacci(hasil-1)+fibonacci(hasil-2);
}
}
int main()
{
int n;
cout<<"\nMasukkan angka : ";
... | 15 | 57 | 0.495238 | adityadees |
8343d103092b2d65ec7387533a7bb0a61cc675a6 | 895 | cpp | C++ | storage/SSecure.cpp | EmperDeon/Organizer | 94b7be51290027a15a68d7b2e98dd49840822a5d | [
"MIT"
] | 1 | 2017-09-27T11:56:00.000Z | 2017-09-27T11:56:00.000Z | storage/SSecure.cpp | EmperDeon/Organizer | 94b7be51290027a15a68d7b2e98dd49840822a5d | [
"MIT"
] | null | null | null | storage/SSecure.cpp | EmperDeon/Organizer | 94b7be51290027a15a68d7b2e98dd49840822a5d | [
"MIT"
] | null | null | null | /*
Copyright (c) 2017-2018 by Ilya Barykin
Released under the MIT License.
See the provided LICENSE.TXT file for details.
*/
#include <crypt/CAes.h>
#include <utils/UPassDialog.h>
#include <crypt/CRsa.h>
#include "SSecure.h"
QString SSecure::password() {
if (!obj.contains("login_hash"))
obj["login_hash... | 27.121212 | 112 | 0.673743 | EmperDeon |
834c1470f78ecc8e41a8e9b1f4b4c805ce8657be | 2,455 | cpp | C++ | src/paddle.cpp | vzshi/breakout | 29c278b53734ec88ec7e8d82c05601c964b8c7d7 | [
"MIT"
] | null | null | null | src/paddle.cpp | vzshi/breakout | 29c278b53734ec88ec7e8d82c05601c964b8c7d7 | [
"MIT"
] | null | null | null | src/paddle.cpp | vzshi/breakout | 29c278b53734ec88ec7e8d82c05601c964b8c7d7 | [
"MIT"
] | null | null | null | #include "paddle.h"
#include "physics.h"
Paddle::Paddle()
{
position = Vector2();
velocity = Vector2();
acceleration = Vector2();
collider.x = 0;
collider.y = 0;
collider.w = WIDTH;
collider.h = HEIGHT;
}
void Paddle::set_position(Vector2 v)
{
position = v;
Vector2 offset = calcu... | 21.163793 | 93 | 0.622403 | vzshi |
835d3092d464a4dfc0a8f8029c027a6c976714b9 | 2,666 | hpp | C++ | include/mk2/gl/vertex_array_object.hpp | SachiSakurane/libmk2 | e8acf044ee5de160ad8a6f0a3c955beddea8d8c2 | [
"BSL-1.0"
] | null | null | null | include/mk2/gl/vertex_array_object.hpp | SachiSakurane/libmk2 | e8acf044ee5de160ad8a6f0a3c955beddea8d8c2 | [
"BSL-1.0"
] | null | null | null | include/mk2/gl/vertex_array_object.hpp | SachiSakurane/libmk2 | e8acf044ee5de160ad8a6f0a3c955beddea8d8c2 | [
"BSL-1.0"
] | null | null | null | //
// Created by Himatya on 2018/02/07.
//
#ifndef LIBMK2_GL_VERTEX_ARRAY_OBJECT_HPP
#define LIBMK2_GL_VERTEX_ARRAY_OBJECT_HPP
#include <vector>
#include <mk2/gl/gl_include.hpp>
#include <mk2/gl/config.hpp>
#include <mk2/gl/gl_type.hpp>
#include <mk2/debug/debug_log.hpp>
namespace mk2{
namespace gl{
#if define... | 29.296703 | 152 | 0.567892 | SachiSakurane |
836975c03a608caac74871a92728e085dba9a300 | 5,390 | cpp | C++ | zide/ItemDisplay.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | zide/ItemDisplay.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | zide/ItemDisplay.cpp | MasterZean/z2c-compiler-cpp | 20ceae268b2197439a4d0ff68e317d6d443c7840 | [
"Apache-2.0"
] | null | null | null | #include "ItemDisplay.hpp"
#define IMAGECLASS ZImg
#define IMAGEFILE <zide/zide.iml>
#include <Draw/iml_source.h>
#include <CodeEditorFork/CodeEditor.h>
int ItemDisplay::DoPaint(Draw& w, const Rect& r, const Value& q,
Color ink, Color paper, dword style) const {
if (!q.Is<ZItem>())
return 0;
const ZItem&... | 23.133047 | 85 | 0.537848 | MasterZean |
836a78bb3e42b84bf8c9ad23b0e943051b08f453 | 5,778 | hpp | C++ | include/desola/file-access/mtl_harwell_boeing_stream.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | 2 | 2021-12-17T10:46:20.000Z | 2021-12-18T11:53:50.000Z | include/desola/file-access/mtl_harwell_boeing_stream.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | null | null | null | include/desola/file-access/mtl_harwell_boeing_stream.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | null | null | null | // This is a modified file from the Matrix Template Library. See LICENSE for details.
// Modified 2006, Francis Russell
//
// Copyright (c) 2001-2005 The Trustees of Indiana University. All rights reserved.
// Copyright (c) 1998-2001 University of Notre Dame. All rights reserved.
// Authors: Andrew Lumsdaine, Jeremy G.... | 23.583673 | 85 | 0.628591 | FrancisRussell |
836e6046b24f571adf36e20259961a50178b720e | 691 | hpp | C++ | src/messaging/include/messages.hpp | PhantomGrazzler/smartnode | 0374f5b4fedee2bbdc3b685a46615be81d8b53b6 | [
"MIT"
] | 1 | 2020-08-09T08:56:01.000Z | 2020-08-09T08:56:01.000Z | src/messaging/include/messages.hpp | PhantomGrazzler/smartnode | 0374f5b4fedee2bbdc3b685a46615be81d8b53b6 | [
"MIT"
] | 18 | 2020-08-09T14:03:55.000Z | 2021-11-02T12:04:08.000Z | src/messaging/include/messages.hpp | PhantomGrazzler/smartnode | 0374f5b4fedee2bbdc3b685a46615be81d8b53b6 | [
"MIT"
] | null | null | null | #pragma once
#include "id_types.hpp"
#include "data_types.hpp"
#include <string>
namespace sn
{
static const std::string startOfMessage = "<";
static const std::string endOfMessage = ">";
enum class MessageType : char
{
NodeConnect = 'c',
NodeUpdate = 'u',
Ack = 'a',
Nak = 'n',
UiConnect = 'g',... | 15.021739 | 46 | 0.589001 | PhantomGrazzler |
837042ee5dc46c35e42138360beb0b816d9c269e | 9,470 | cc | C++ | src/mlio-py/mlio/core/data_store.cc | babak2520/ml-io | 87bedf9537959260723ed0419a0803c76e015ef5 | [
"Apache-2.0"
] | 69 | 2019-10-14T18:55:50.000Z | 2022-02-28T05:50:39.000Z | src/mlio-py/mlio/core/data_store.cc | cbalioglu/ml-io | d79a895c3fe5e10f0f832cfdcee5a73058abb7c7 | [
"Apache-2.0"
] | 18 | 2019-11-16T12:45:40.000Z | 2022-01-29T03:47:52.000Z | src/mlio-py/mlio/core/data_store.cc | cbalioglu/ml-io | d79a895c3fe5e10f0f832cfdcee5a73058abb7c7 | [
"Apache-2.0"
] | 16 | 2019-10-24T22:35:51.000Z | 2021-09-03T18:23:04.000Z | /*
* Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not use this file except in compliance with the License. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... | 33.34507 | 100 | 0.579514 | babak2520 |
8370a8ea7400ad58b3a271624aeb3d4bc3f38663 | 13,482 | cpp | C++ | test/shared/test_attack_command.cpp | Welteam/Projet-IS | 4feeeb39aca9af720f22c8bb3a41f2583fb8cb9b | [
"Unlicense"
] | null | null | null | test/shared/test_attack_command.cpp | Welteam/Projet-IS | 4feeeb39aca9af720f22c8bb3a41f2583fb8cb9b | [
"Unlicense"
] | null | null | null | test/shared/test_attack_command.cpp | Welteam/Projet-IS | 4feeeb39aca9af720f22c8bb3a41f2583fb8cb9b | [
"Unlicense"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include <iostream>
#include "../../src/shared/engine.h"
#include "../../src/shared/state.h"
using namespace engine;
using namespace std;
using namespace state;
BOOST_AUTO_TEST_CASE(TestStaticAssert)
{
BOOST_CHECK(1);
}
BOOST_AUTO_TEST_CASE(TestAttackCommandConstructor)
{
{
... | 50.494382 | 168 | 0.672749 | Welteam |
8370e2792f34f292ba2ef311dde8f6b249a2bc96 | 6,183 | cpp | C++ | Neurons/AllIZHNeurons.cpp | shastrihm/BrainGrid | 39ad44dfa42d30f140a5a334208caf9a32932b2c | [
"Apache-2.0"
] | 28 | 2015-04-06T20:43:56.000Z | 2021-04-15T00:31:55.000Z | Neurons/AllIZHNeurons.cpp | shastrihm/BrainGrid | 39ad44dfa42d30f140a5a334208caf9a32932b2c | [
"Apache-2.0"
] | 218 | 2015-02-23T23:44:57.000Z | 2020-07-25T19:22:02.000Z | Neurons/AllIZHNeurons.cpp | shastrihm/BrainGrid | 39ad44dfa42d30f140a5a334208caf9a32932b2c | [
"Apache-2.0"
] | 19 | 2016-01-08T18:34:31.000Z | 2022-03-04T06:03:39.000Z | /*
* AllIZHNeurons.cpp
*
*/
#include "AllIZHNeurons.h"
#if defined(USE_GPU)
#include <helper_cuda.h>
#endif
// Default constructor
CUDA_CALLABLE AllIZHNeurons::AllIZHNeurons()
{
}
CUDA_CALLABLE AllIZHNeurons::~AllIZHNeurons()
{
}
/*
* Create and setup neurons properties.
*/
void AllIZHNeurons::createNeuronsPr... | 35.331429 | 161 | 0.649361 | shastrihm |
837684334f66a337d6301f8992a69b57f42bfe94 | 1,582 | cpp | C++ | utility/dump_scripts.cpp | magnusl/agi | 9a38917583bc29cdcac0a1f1a23590b1661f8d9d | [
"Apache-2.0"
] | null | null | null | utility/dump_scripts.cpp | magnusl/agi | 9a38917583bc29cdcac0a1f1a23590b1661f8d9d | [
"Apache-2.0"
] | null | null | null | utility/dump_scripts.cpp | magnusl/agi | 9a38917583bc29cdcac0a1f1a23590b1661f8d9d | [
"Apache-2.0"
] | null | null | null | #include <agi/directory.h>
#include <agi/volume.h>
#include <agi/logic.h>
#include <agi/interpreter.h>
#include <iostream>
#include <map>
#include <sstream>
#include <assert.h>
using VolumeCache = std::map<unsigned, std::shared_ptr<agi::Volume> >;
std::shared_ptr<agi::Volume> FindVolume(
const std::string& basepath,... | 23.61194 | 70 | 0.661188 | magnusl |
837760f79371047c2929f21283c801782bc33bf6 | 4,070 | cpp | C++ | source/file.cpp | ChillMagic/PrivateLibrary | e8eb5f18714273dca34824559a154dfa6e6c7658 | [
"MIT"
] | 2 | 2018-05-31T15:00:42.000Z | 2021-07-26T13:56:57.000Z | source/file.cpp | ChillMagic/PrivateLibrary | e8eb5f18714273dca34824559a154dfa6e6c7658 | [
"MIT"
] | 1 | 2018-06-30T08:17:49.000Z | 2018-06-30T08:17:49.000Z | source/file.cpp | ChillMagic/PrivateLibrary | e8eb5f18714273dca34824559a154dfa6e6c7658 | [
"MIT"
] | 3 | 2018-06-30T07:38:26.000Z | 2019-05-07T06:49:10.000Z | #include "file.h"
#include "charptr.h"
#include <list>
#include <algorithm>
#include <cassert>
PRILIB_BEGIN
#ifdef _MSC_VER
inline static FILE* fopen(const char *filename, const char *mode)
{
FILE *file;
fopen_s(&file, filename, mode);
return file;
}
#endif
//========================
// * File
//==================... | 19.853659 | 80 | 0.599263 | ChillMagic |
837b7d7103fb906e8a13f4db71bfd46f547dfd21 | 6,618 | cpp | C++ | Visual Mercutio/zBaseLib/PSS_UserExport.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zBaseLib/PSS_UserExport.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zBaseLib/PSS_UserExport.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_UserExport ------------------------------------------------------*
****************************************************************************
* Description : Provides an interface to import and export the user table *
* Devel... | 32.441176 | 114 | 0.497733 | Jeanmilost |
83862f82b8b550084149a184f95e8b9d5d4a80d1 | 2,915 | cpp | C++ | filters/filters/CCSharpenFilter.cpp | xiaoweiLoveyou/- | 86b0ec360a681c7dad4a77e741025a27c2a1abf6 | [
"BSD-3-Clause"
] | 63 | 2015-03-17T01:26:12.000Z | 2021-12-21T07:28:28.000Z | filters/filters/CCSharpenFilter.cpp | IXgSoul/cocos2d-x-filters | 86b0ec360a681c7dad4a77e741025a27c2a1abf6 | [
"BSD-3-Clause"
] | 1 | 2015-09-11T16:17:22.000Z | 2015-09-11T16:17:22.000Z | filters/filters/CCSharpenFilter.cpp | IXgSoul/cocos2d-x-filters | 86b0ec360a681c7dad4a77e741025a27c2a1abf6 | [
"BSD-3-Clause"
] | 39 | 2015-01-12T08:03:52.000Z | 2021-04-10T16:14:20.000Z | #include "CCSharpenFilter.h"
#include "filters/nodes/CCFilteredSprite.h"
NS_CC_EXT_BEGIN
//================== SharpenFilter
SharpenFilter* SharpenFilter::create()
{
SharpenFilter* filter = new SharpenFilter();
filter->autorelease();
return filter;
}
SharpenFilter* SharpenFilter::create(float sharpness, float wid... | 29.744898 | 109 | 0.77187 | xiaoweiLoveyou |
839278d66be932e75df2d262920de9b4a6b227d8 | 1,394 | cpp | C++ | geometry/point2d.cpp | triffon/oop-2018-19 | 3368b78593ddc7031f208e2752e4111900172f44 | [
"MIT"
] | 3 | 2019-04-22T18:52:45.000Z | 2021-02-22T16:42:14.000Z | geometry/point2d.cpp | triffon/oop-2018-19 | 3368b78593ddc7031f208e2752e4111900172f44 | [
"MIT"
] | null | null | null | geometry/point2d.cpp | triffon/oop-2018-19 | 3368b78593ddc7031f208e2752e4111900172f44 | [
"MIT"
] | 4 | 2019-03-05T15:10:29.000Z | 2020-04-06T18:40:52.000Z | #ifndef __POINT2D_CPP
#define __POINT2D_CPP
#include <iostream>
#include <cmath>
template <typename T>
class Point2D {
// Ниво 0
T x, y;
public:
// Ниво 1: конструктори
Point2D(T const& x = 0, T const& y = 0);
// Ниво 1: селектори
T getX() const { return x; }
T getY() const { return y; }
// Ниво 1:... | 20.202899 | 79 | 0.613343 | triffon |
8b534923615e8c22321cd0545d51edc8ecf72ba7 | 1,780 | cc | C++ | Code/1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
int minCost(vector<vector<int>>& grid) {
deque<vector<int>> dq;
unordered_set<int> s;
int result = 0;
dq.push_back({0, 0});
s.insert(0);
while (!dq.empty()) {
vector<int> &v = dq.front();
int i = v[0] / 100;
... | 35.6 | 79 | 0.322472 | SMartQi |
8b55acda837b8af16a22cb3be28cf07ce6fb616b | 769 | cpp | C++ | Common/ThreadBase.cpp | kelkka/RemoteVR | 92a7d7d94367c46b47be4071b6725f25bdf006f4 | [
"BSD-2-Clause"
] | 1 | 2022-03-14T13:46:30.000Z | 2022-03-14T13:46:30.000Z | Common/ThreadBase.cpp | kelkka/RemoteVR | 92a7d7d94367c46b47be4071b6725f25bdf006f4 | [
"BSD-2-Clause"
] | null | null | null | Common/ThreadBase.cpp | kelkka/RemoteVR | 92a7d7d94367c46b47be4071b6725f25bdf006f4 | [
"BSD-2-Clause"
] | null | null | null | #include "ThreadBase.h"
#include <omp.h>
void ThreadBase::DestroyWorker()
{
printf("Worker destroy %p\n",this);
m_quit = true;
GoProcess();
if(m_worker.joinable())
m_worker.join();
}
void ThreadBase::RunProcess()
{
printf("Worker start %p\n", this);
double t_0 = 0;
while (m_quit == false)... | 17.477273 | 54 | 0.630689 | kelkka |
8b58ac893617c23e062b9b3c47676aef312e9846 | 905 | hpp | C++ | loggingDaemon/main/LoggingClientInterface/DomainSocket/DomainSocketClientInterface.hpp | grobbles/linux-logging-daemon | da082225fcd037a5c91849702cf96de5805c816a | [
"MIT"
] | null | null | null | loggingDaemon/main/LoggingClientInterface/DomainSocket/DomainSocketClientInterface.hpp | grobbles/linux-logging-daemon | da082225fcd037a5c91849702cf96de5805c816a | [
"MIT"
] | null | null | null | loggingDaemon/main/LoggingClientInterface/DomainSocket/DomainSocketClientInterface.hpp | grobbles/linux-logging-daemon | da082225fcd037a5c91849702cf96de5805c816a | [
"MIT"
] | null | null | null | #ifndef DOMAIN_SOCKET_CLIENT_INTERFACE_HPP
#define DOMAIN_SOCKET_CLIENT_INTERFACE_HPP
#include <set>
#include <string>
#include "ObserverPattern/Observer.hpp"
#include "ObserverPattern/Subject.hpp"
#include "DataStorage/DataStorage.hpp"
#include "Logging/Logger.hpp"
#include "../LogMessageProvider.hpp"
#include "Cli... | 25.857143 | 89 | 0.79779 | grobbles |
8b5bab64c61df66cb8091643cd9958bfc0da4f90 | 517 | hpp | C++ | mdl/display_drivers/troff_display_driver.hpp | dopsi/mdl | d80d86c1e49a196d9f2a68933ffbac7ca3d0d946 | [
"MIT"
] | 4 | 2017-02-14T20:20:42.000Z | 2017-06-08T14:05:26.000Z | mdl/display_drivers/troff_display_driver.hpp | dopsi/mdl | d80d86c1e49a196d9f2a68933ffbac7ca3d0d946 | [
"MIT"
] | 2 | 2017-03-31T13:06:35.000Z | 2018-07-02T12:57:29.000Z | mdl/display_drivers/troff_display_driver.hpp | dopsi/mdl | d80d86c1e49a196d9f2a68933ffbac7ca3d0d946 | [
"MIT"
] | null | null | null | #ifndef MDL_TROFF_DISPLAY_DRIVER_HPP
#define MDL_TROFF_DISPLAY_DRIVER_HPP
#include "display_driver.hpp"
/**
* @brief Troff display driver
*
* This class does output a document suitable for man display
**/
class TroffDisplayDriver : public DisplayDriver {
public:
TroffDisplayDriver(bool standalone) :
Display... | 24.619048 | 62 | 0.758221 | dopsi |
8b5f77d1b444028a6ec386a9056f3e5bf28e548d | 2,166 | hpp | C++ | include/screen/resources.hpp | acetousk/screenlib | bbf0ec5eeaf0490d8e27d33088a77654af8d62ae | [
"MIT"
] | 7 | 2019-05-15T00:44:20.000Z | 2020-08-31T14:17:37.000Z | include/screen/resources.hpp | acetousk/screenlib | bbf0ec5eeaf0490d8e27d33088a77654af8d62ae | [
"MIT"
] | 1 | 2019-05-21T12:34:47.000Z | 2019-05-22T14:56:28.000Z | include/screen/resources.hpp | acetousk/screenlib | bbf0ec5eeaf0490d8e27d33088a77654af8d62ae | [
"MIT"
] | 3 | 2019-05-31T18:08:54.000Z | 2019-08-29T22:53:53.000Z | /**
* Contains the resources for printing the field
*/
#ifndef SCREEN_RESOURCES_HPP_
#define SCREEN_RESOURCES_HPP_
#include "main.h"
extern lv_font_t smallFont;
namespace screen {
/**
* These styles are used for the objects on the field, along with
* some other, such as blueText and redText that are probably go... | 21.878788 | 67 | 0.776085 | acetousk |
8b5fe3d558f255c8bf43a46606cc66f805635329 | 3,783 | cpp | C++ | fingerhat.cpp | mzyy94/FINGERHat | 7fa8b1ce199175f95f43c290fa18cdc013f2e3ca | [
"MIT"
] | null | null | null | fingerhat.cpp | mzyy94/FINGERHat | 7fa8b1ce199175f95f43c290fa18cdc013f2e3ca | [
"MIT"
] | null | null | null | fingerhat.cpp | mzyy94/FINGERHat | 7fa8b1ce199175f95f43c290fa18cdc013f2e3ca | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Yuki MIZUNO
* This file is part of FINGERHat - https://github.com/mzyy94/FINGERHat
*
* SPDX-License-Identifier: MIT
* See LICENSE for more information.
*/
#include "fingerhat.h"
#define CHECK_ERROR(exp, value) \
do { \
if (exp) \
... | 25.910959 | 80 | 0.626751 | mzyy94 |
8b605fa2ab2fec7ab4fd4ae5f7c2f82f9dc71992 | 3,891 | hpp | C++ | test/utils/PriorityQueueTest.hpp | kcappieg/metronome | 65601b0993550a86843fa2b2f116fcd663118b2c | [
"MIT"
] | null | null | null | test/utils/PriorityQueueTest.hpp | kcappieg/metronome | 65601b0993550a86843fa2b2f116fcd663118b2c | [
"MIT"
] | null | null | null | test/utils/PriorityQueueTest.hpp | kcappieg/metronome | 65601b0993550a86843fa2b2f116fcd663118b2c | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "easylogging++.h"
#include "utils/PriorityQueue.hpp"
namespace {
using namespace metronome;
struct TestNode {
TestNode(int value) : value(value) {
}
mutable unsigned int index;
int value;
};
int nodeCompare(const TestNode& lhs, const TestNode& rhs) {
if (lhs.value <... | 23.72561 | 63 | 0.548959 | kcappieg |
8b63896534bd8eaaaec95f0b546ef3b8fa3c54fe | 53 | cpp | C++ | BAC/exercises/ch5/UVa10392.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch5/UVa10392.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch5/UVa10392.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa10392 Factoring Large Numbers
// Rujia Liu
// 棰 | 17.666667 | 35 | 0.716981 | Anyrainel |
8b665c5e225517e01135c549501e4fec46c55381 | 618 | cpp | C++ | fgl/lib/IR/Instruction/ExpandFlavor.cpp | Deruago/FGL | 7362fbda25b89c8f65f2a28582f97a9446355aa3 | [
"Apache-2.0"
] | null | null | null | fgl/lib/IR/Instruction/ExpandFlavor.cpp | Deruago/FGL | 7362fbda25b89c8f65f2a28582f97a9446355aa3 | [
"Apache-2.0"
] | null | null | null | fgl/lib/IR/Instruction/ExpandFlavor.cpp | Deruago/FGL | 7362fbda25b89c8f65f2a28582f97a9446355aa3 | [
"Apache-2.0"
] | null | null | null | #include "fgl/IR/Instruction/ExpandFlavor.h"
fgl::ir::ExpandFlavor::ExpandFlavor(const ::fgl::ast::node::instruction* instruction)
: InstructionTemplateBase<ExpandFlavor>(instruction, InstructionType::expandFlavor),
flavor(Flavor(ast::reference::Access<::fgl::ast::node::instruction>(instruction)
.expand_flav... | 32.526316 | 85 | 0.713592 | Deruago |
8b68eab86dcb4fd5c3fa6b5d451371c67b2a0a5d | 2,830 | cpp | C++ | 3-Assemble(80x86)/lab-3/TASK3.cpp | ftxj/4th-Semester | 1d5c7e7e028176524bdafc64078775d42b73b51c | [
"MIT"
] | null | null | null | 3-Assemble(80x86)/lab-3/TASK3.cpp | ftxj/4th-Semester | 1d5c7e7e028176524bdafc64078775d42b73b51c | [
"MIT"
] | null | null | null | 3-Assemble(80x86)/lab-3/TASK3.cpp | ftxj/4th-Semester | 1d5c7e7e028176524bdafc64078775d42b73b51c | [
"MIT"
] | null | null | null | #include <stdio.h>
#pragma inline
extern "C" void _Cdecl SUB2(char *A);
void SUB1(char *stu);
extern "C" void _Cdecl SUB3(char *A);
void SUB4(char *stu);
extern "C" void _Cdecl SUB5(void);
int main()
{
int choose;
char buf[80]="zhang";
buf[10]=100;
buf[11]=1;
buf[12]=12;
buf[13]=99;
for(choo... | 23.781513 | 98 | 0.480565 | ftxj |
8b6feff676b7ae5cd360c55f5016aab66fc06df5 | 1,677 | hpp | C++ | include/data/vertex_data.hpp | jdtaylor7/drone_viewer | 18009b499c96255bd355db030522e97cc840d6ba | [
"MIT"
] | 11 | 2020-08-25T22:19:46.000Z | 2021-09-29T11:50:29.000Z | include/data/vertex_data.hpp | jdtaylor7/drone_viewer | 18009b499c96255bd355db030522e97cc840d6ba | [
"MIT"
] | 17 | 2020-07-10T00:35:09.000Z | 2020-08-18T00:38:07.000Z | include/data/vertex_data.hpp | jdtaylor7/drone_viewer | 18009b499c96255bd355db030522e97cc840d6ba | [
"MIT"
] | 2 | 2021-02-11T17:37:32.000Z | 2021-02-21T11:11:30.000Z | #ifndef VERTEX_DATA_HPP
#define VERTEX_DATA_HPP
#include <vector>
const std::vector<float> vertices = {
-0.5f, -0.5f, -0.5f, 0.0f, 0.0f,
0.5f, -0.5f, -0.5f, 1.0f, 0.0f,
0.5f, 0.5f, -0.5f, 1.0f, 1.0f,
0.5f, 0.5f, -0.5f, 1.0f, 1.0f,
-0.5f, 0.5f, -0.5f, 0.0f, 1.0f,
-0.5f, -0... | 29.946429 | 44 | 0.420394 | jdtaylor7 |
8b7387fff9ffb5e672ae595ccee2693f13fdcc3e | 513 | hpp | C++ | src/telemetry/client.hpp | Hyp-ed/hyped-2022 | 9cac4632b660f569629cf0ad4048787f6017905d | [
"Apache-2.0"
] | 9 | 2021-07-31T16:22:24.000Z | 2022-01-19T18:14:31.000Z | src/telemetry/client.hpp | Hyp-ed/hyped-2022 | 9cac4632b660f569629cf0ad4048787f6017905d | [
"Apache-2.0"
] | 91 | 2021-07-29T18:21:30.000Z | 2022-03-31T20:44:55.000Z | src/telemetry/client.hpp | Hyp-ed/hyped-2022 | 9cac4632b660f569629cf0ad4048787f6017905d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <string>
#include <utils/config.hpp>
#include <utils/logger.hpp>
namespace hyped {
namespace telemetry {
class Client {
public:
explicit Client(utils::Logger &log);
~Client();
bool connect();
bool sendData(std::string message);
std::string receiveData();
private:
Client(utils::... | 16.548387 | 58 | 0.693957 | Hyp-ed |
8b7a5146e90be90945e76d20b8d290d0ebebc715 | 772 | cc | C++ | src/Refs.cc | abcdabcd987/s | bcd982bcf78554d243c1f6be38fd295ffb85c78b | [
"MIT"
] | 40 | 2015-06-04T23:08:55.000Z | 2021-09-12T04:20:25.000Z | src/Refs.cc | abcdabcd987/s | bcd982bcf78554d243c1f6be38fd295ffb85c78b | [
"MIT"
] | 1 | 2015-07-03T05:09:34.000Z | 2015-07-05T10:18:25.000Z | src/Refs.cc | abcdabcd987/s | bcd982bcf78554d243c1f6be38fd295ffb85c78b | [
"MIT"
] | 9 | 2015-06-04T12:54:34.000Z | 2020-02-09T00:35:21.000Z | #include "Refs.hpp"
#include "FileSystem.hpp"
#include "Util.hpp"
#include <boost/algorithm/string.hpp>
namespace Sit {
namespace Refs {
const std::string EMPTY_REF("0000000000000000000000000000000000000000");
std::string Local(const std::string& name)
{
return std::string("refs/heads/") + name;
}
std::string Get(... | 22.705882 | 74 | 0.713731 | abcdabcd987 |
8b7b692adbf3b67f62fad344ccf8c1fff6a85cbd | 694 | cpp | C++ | examples/tutorial.cpp | rgyger/xenon | e61e85cdc83c07342338fc7819e485cffedc06a9 | [
"MIT"
] | 1 | 2021-08-06T14:14:09.000Z | 2021-08-06T14:14:09.000Z | examples/tutorial.cpp | rgyger/xenon | e61e85cdc83c07342338fc7819e485cffedc06a9 | [
"MIT"
] | 24 | 2016-02-25T19:45:29.000Z | 2019-12-21T17:40:14.000Z | examples/tutorial.cpp | rgyger/xenon | e61e85cdc83c07342338fc7819e485cffedc06a9 | [
"MIT"
] | 9 | 2015-10-16T22:47:38.000Z | 2020-08-18T19:35:50.000Z | #include <xenon/xenon.h>
int main() {
try {
xenon::spec_server s("~/wythe/xenon/xddl");
auto rec = xenon::get_record(s, "3GPP/TS-36.331/DL-DCCH-Message");
auto m =
xenon::parse(rec, "0C01513C9FB9C248283B11084808F0080824810A1FA800A8"
"202C090A1FA80001... | 34.7 | 80 | 0.54755 | rgyger |
8b7f1decabdb60a21447e7414f9fe9e390deb3cb | 302 | hpp | C++ | Algorithm/LeetCode/DataStructure/DataStructurePractice.hpp | stonelay/Algorithm | 0cc5278ceeef1a726937220f06b3c470ab99e79f | [
"MIT"
] | null | null | null | Algorithm/LeetCode/DataStructure/DataStructurePractice.hpp | stonelay/Algorithm | 0cc5278ceeef1a726937220f06b3c470ab99e79f | [
"MIT"
] | null | null | null | Algorithm/LeetCode/DataStructure/DataStructurePractice.hpp | stonelay/Algorithm | 0cc5278ceeef1a726937220f06b3c470ab99e79f | [
"MIT"
] | null | null | null | //
// DataStructurePractice.hpp
// Algorithm
//
// Created by LayZhang on 2018/9/5.
// Copyright © 2018年 Zhanglei. All rights reserved.
//
#ifndef DataStructurePractice_hpp
#define DataStructurePractice_hpp
#include <stdio.h>
void displayStructure(void);
#endif /* DataStructurePractice_hpp */
| 17.764706 | 52 | 0.748344 | stonelay |
8b7f313d935b70a7aac5565f33fe2b722db00aa5 | 11,808 | cpp | C++ | tests/teraranger_tests/TerarangerEvo64pxTests.cpp | Terabee/terabee_api | 87ed2f00b8a807e28fa1117923736db611a1945d | [
"MIT"
] | 6 | 2020-06-09T07:56:50.000Z | 2022-01-16T08:20:01.000Z | tests/teraranger_tests/TerarangerEvo64pxTests.cpp | Terabee/terabee_api | 87ed2f00b8a807e28fa1117923736db611a1945d | [
"MIT"
] | 3 | 2020-06-26T01:24:32.000Z | 2021-04-21T07:55:54.000Z | tests/teraranger_tests/TerarangerEvo64pxTests.cpp | Terabee/terabee_api | 87ed2f00b8a807e28fa1117923736db611a1945d | [
"MIT"
] | 1 | 2020-11-22T16:48:05.000Z | 2020-11-22T16:48:05.000Z | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <algorithm>
#include <chrono>
#include <cmath>
#include <condition_variable>
#include <exception>
#include <fstream>
#include <limits>
#include <memory>
#include <mutex>
#include "terabee/DistanceData.hpp"
#include "terabee/internal/crc/crc.hpp"
#include "ter... | 33.641026 | 91 | 0.703337 | Terabee |
8b808f53047184b43ee6112bb7bdbba06952ab11 | 248 | cpp | C++ | Projects/PBINFO/2350 grup/main.cpp | Bengo923/Visual-Studio | 863a273644b291c311d299bd5c7c4faf9db2d30e | [
"MIT"
] | 1 | 2019-11-05T17:56:19.000Z | 2019-11-05T17:56:19.000Z | Projects/PBINFO/2350 grup/main.cpp | Bengo923/PBINFO | 863a273644b291c311d299bd5c7c4faf9db2d30e | [
"MIT"
] | null | null | null | Projects/PBINFO/2350 grup/main.cpp | Bengo923/PBINFO | 863a273644b291c311d299bd5c7c4faf9db2d30e | [
"MIT"
] | null | null | null | // #(nr) (nume problema)
#include "pch.h"
#include "fstream"
#include "iostream"
using namespace std;
// ifstream fin("date.in");
// ofstream fout("date.out");
int n, c;
int main()
{
cin >> n >> c;
if (c == 1) {
}
else {
}
return 0;
} | 9.92 | 29 | 0.560484 | Bengo923 |
8b84a434a546b9bee549fe85c6a12f3d3847b74a | 5,439 | cpp | C++ | Atum/SceneObjects/2D/Camera2D.cpp | ENgineE777/Atum | 3e9417e2a7deda83bf937612fd070566eb932484 | [
"Zlib"
] | 23 | 2017-11-01T14:47:26.000Z | 2021-12-30T08:04:31.000Z | Atum/SceneObjects/2D/Camera2D.cpp | ENgineE777/Atum | 3e9417e2a7deda83bf937612fd070566eb932484 | [
"Zlib"
] | 1 | 2018-12-06T14:19:55.000Z | 2018-12-07T04:06:35.000Z | Atum/SceneObjects/2D/Camera2D.cpp | ENgineE777/Atum | 3e9417e2a7deda83bf937612fd070566eb932484 | [
"Zlib"
] | 4 | 2017-11-30T10:25:58.000Z | 2019-04-21T14:11:40.000Z |
#include "Camera2D.h"
#include "Sprite.h"
#include "Services/Render/Render.h"
CLASSREG(SceneObject, Camera2D, "Camera2D")
META_DATA_DESC(Camera2D)
BASE_SCENE_OBJ_PROP(Camera2D)
FLOAT_PROP(Camera2D, trans.pos.x, 100.0f, "Geometry", "x", "X coordinate of a camera position")
FLOAT_PROP(Camera2D, trans.pos.y, 100.0f, "G... | 34.865385 | 168 | 0.706012 | ENgineE777 |
8b878273ae6cb9730d5a12745e5301e7a234de0d | 578 | cpp | C++ | Source/LandscapeGenEditor/Private/AsyncDataRetrieval.cpp | delebash/LandscapeGen | 9e426ad90803fbcf09d61aebd3176edeafc7a24c | [
"MIT"
] | 11 | 2020-12-04T09:25:06.000Z | 2022-02-07T02:56:05.000Z | Source/LandscapeGenEditor/Private/AsyncDataRetrieval.cpp | delebash/LandscapeGen | 9e426ad90803fbcf09d61aebd3176edeafc7a24c | [
"MIT"
] | 4 | 2021-04-05T05:35:26.000Z | 2022-02-10T01:04:05.000Z | Source/LandscapeGenEditor/Private/AsyncDataRetrieval.cpp | delebash/LandscapeGen | 9e426ad90803fbcf09d61aebd3176edeafc7a24c | [
"MIT"
] | 5 | 2020-12-15T03:18:53.000Z | 2022-02-07T02:35:22.000Z | #include "AsyncDataRetrieval.h"
UAsyncDataRetrieval* UAsyncDataRetrieval::RetrieveDataFromSource(const TScriptInterface<IGISDataSource>& DataSource)
{
UAsyncDataRetrieval* retriever = NewObject<UAsyncDataRetrieval>();
retriever->DataSource = DataSource;
return retriever;
}
void UAsyncDataRetrieval::Activate() {
t... | 27.52381 | 116 | 0.799308 | delebash |
8b8b2f7cb75a2e1e80c5014c3477e09ddd9ad6c5 | 7,296 | cpp | C++ | src/transport/clients/google_metadata_parser.cpp | awkv/cloudstorageapi | 3c1e47f0a3bf8ceaed66f272c17ef949bac4e424 | [
"Apache-2.0"
] | null | null | null | src/transport/clients/google_metadata_parser.cpp | awkv/cloudstorageapi | 3c1e47f0a3bf8ceaed66f272c17ef949bac4e424 | [
"Apache-2.0"
] | null | null | null | src/transport/clients/google_metadata_parser.cpp | awkv/cloudstorageapi | 3c1e47f0a3bf8ceaed66f272c17ef949bac4e424 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Andrew Karasyov
//
// 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... | 33.163636 | 104 | 0.66653 | awkv |
8b8ed6213e8b8c3aa0a5098bfa4fd466edb5e385 | 323 | cpp | C++ | GameEngineEditor/src/main.cpp | H1ghN0on/3D-Game-Engine | a112043bbef31652519c8961190a4cc8fd398329 | [
"Apache-2.0"
] | null | null | null | GameEngineEditor/src/main.cpp | H1ghN0on/3D-Game-Engine | a112043bbef31652519c8961190a4cc8fd398329 | [
"Apache-2.0"
] | null | null | null | GameEngineEditor/src/main.cpp | H1ghN0on/3D-Game-Engine | a112043bbef31652519c8961190a4cc8fd398329 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <memory>
#include <GameEngineCore/Application.hpp>
class MyApp : public GameEngine::Application {
virtual void on_update() override {
}
};
int main() {
auto myApp = std::make_unique<MyApp>();
int returnCode = myApp->start(1024, 768, "Shinzo wo Sasageyo!");
return returnCode;
... | 15.380952 | 65 | 0.696594 | H1ghN0on |
8b9912757dd17df86cfb1f9b5d4ba6151ee57e22 | 3,036 | cpp | C++ | codes/IP_addr_math.cpp | 954gmo/ComputerNetworking | 1a3a7673a42e78425feb80f94f770fb1afdc4ff2 | [
"MIT"
] | null | null | null | codes/IP_addr_math.cpp | 954gmo/ComputerNetworking | 1a3a7673a42e78425feb80f94f770fb1afdc4ff2 | [
"MIT"
] | null | null | null | codes/IP_addr_math.cpp | 954gmo/ComputerNetworking | 1a3a7673a42e78425feb80f94f770fb1afdc4ff2 | [
"MIT"
] | null | null | null | /**
* Created by sixdi on 1/31/2022.
*/
#include "IP_addr_math.h"
#include <sstream>
#include <bitset>
#include <arpa/inet.h>
void show_mem_rep(char* start, int n){
for (int i = 0; i < n; ++i) {
printf(" %.2x", start[i]);
}
std::cout << std::endl;
}
unsigned int uint_fmt_network_mask(char mask... | 25.3 | 76 | 0.641634 | 954gmo |
8b994722821fbbac7a0250122be52b48d618afe4 | 1,035 | cpp | C++ | Number Theory/Problem - 1 (Find number of all possible consecutive numbers with sum N).cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 8 | 2021-02-13T17:07:27.000Z | 2021-08-20T08:20:40.000Z | Number Theory/Problem - 1 (Find number of all possible consecutive numbers with sum N).cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | null | null | null | Number Theory/Problem - 1 (Find number of all possible consecutive numbers with sum N).cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 5 | 2021-02-17T18:12:20.000Z | 2021-10-10T17:49:34.000Z | // Problem: D - Staircase Sequences
// Contest: AtCoder - AtCoder Beginner Contest 190
// URL: https://atcoder.jp/contests/abc190/tasks/abc190_d
// Memory Limit: 1024 MB
// Time Limit: 2000 ms
// Parsed on: 31-01-2021 21:19:40 IST (UTC+05:30)
// Author: Kapil Choudhary
// ***********************************************... | 25.875 | 75 | 0.488889 | Edith-3000 |
8b9fa1450027df5f098143bd460a0daa01df9142 | 2,532 | cpp | C++ | tests/test.cpp | Ahajha/LMRTFY | 36991b20c823bcb51cc962bed225687b374b4aba | [
"MIT"
] | 5 | 2022-01-08T10:23:04.000Z | 2022-02-28T07:15:03.000Z | tests/test.cpp | Ahajha/LMRTFY | 36991b20c823bcb51cc962bed225687b374b4aba | [
"MIT"
] | 3 | 2022-01-08T16:50:54.000Z | 2022-02-09T05:01:50.000Z | tests/test.cpp | Ahajha/LMRTFY | 36991b20c823bcb51cc962bed225687b374b4aba | [
"MIT"
] | 1 | 2022-01-08T14:51:52.000Z | 2022-01-08T14:51:52.000Z | #include "lmrtfy/thread_pool.hpp"
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest/doctest.h"
#include <functional>
#include <memory>
#include <atomic>
#include <thread>
TEST_CASE("construction and destruction without tasks")
{
lmrtfy::thread_pool{};
CHECK(true);
}
int add(int a, int b)
{
return a + ... | 17.108108 | 76 | 0.644155 | Ahajha |
8ba3675da09e3ecbb34e9f92996a880d963b6e0c | 197 | cpp | C++ | 7.25/Bitset/bitset.cpp | onlyicando/Premier-CPP | 0d8d7e9bc3133b2e29bcf95bcb8114bff2aadd76 | [
"MIT"
] | null | null | null | 7.25/Bitset/bitset.cpp | onlyicando/Premier-CPP | 0d8d7e9bc3133b2e29bcf95bcb8114bff2aadd76 | [
"MIT"
] | null | null | null | 7.25/Bitset/bitset.cpp | onlyicando/Premier-CPP | 0d8d7e9bc3133b2e29bcf95bcb8114bff2aadd76 | [
"MIT"
] | null | null | null | #include <iostream>
#include <bitset>
using namespace std;
int main()
{
bitset<32> bit(0xffffffff);
unsigned long ulong = bit.to_ulong();
cout << bit<< endl;
system("pause");
return 0;
} | 11.588235 | 38 | 0.659898 | onlyicando |
8ba4c042dce572b19cf89358889e5bdc848f6dfd | 4,636 | cpp | C++ | src/Ityl.Character.Manager/uiModels/character/character_ui_model.cpp | auperes/ityl-character-manager | d53ccab5c69066d28688d230401aebf6e8641c68 | [
"MIT"
] | 1 | 2022-02-13T07:52:29.000Z | 2022-02-13T07:52:29.000Z | src/Ityl.Character.Manager/uiModels/character/character_ui_model.cpp | auperes/ityl-character-manager | d53ccab5c69066d28688d230401aebf6e8641c68 | [
"MIT"
] | 13 | 2020-05-05T12:17:26.000Z | 2022-01-08T20:55:02.000Z | src/Ityl.Character.Manager/uiModels/character/character_ui_model.cpp | auperes/ityl-character-manager | d53ccab5c69066d28688d230401aebf6e8641c68 | [
"MIT"
] | null | null | null | #include "character_ui_model.h"
#include <iostream>
#include <QDir>
#include <QQmlEngine>
#include <QStandardItemModel>
#include <QMap>
#include <config/app_config.h>
namespace Ityl::Ui::UiModels
{
CharacterUiModel::CharacterUiModel()
: QObject ()
, _character(nullptr)
, _skills(nullptr)... | 37.387097 | 161 | 0.665013 | auperes |
8ba5dda135cb490bd43510ab80b6ed7f06a6ae92 | 4,398 | cpp | C++ | GraphicsMagick.NET/Profiles/Iptc/IptcProfile.cpp | dlemstra/GraphicsMagick.NET | 332718f2315c3752eaeb84f4a6a30a553441e79e | [
"ImageMagick",
"Apache-2.0"
] | 35 | 2015-10-18T19:49:52.000Z | 2022-01-18T05:30:46.000Z | GraphicsMagick.NET/Profiles/Iptc/IptcProfile.cpp | elyor0529/GraphicsMagick.NET | 332718f2315c3752eaeb84f4a6a30a553441e79e | [
"ImageMagick",
"Apache-2.0"
] | 12 | 2016-07-22T16:05:03.000Z | 2020-02-26T15:21:03.000Z | GraphicsMagick.NET/Profiles/Iptc/IptcProfile.cpp | elyor0529/GraphicsMagick.NET | 332718f2315c3752eaeb84f4a6a30a553441e79e | [
"ImageMagick",
"Apache-2.0"
] | 12 | 2016-02-24T12:11:50.000Z | 2021-07-12T18:20:12.000Z | //=================================================================================================
// Copyright 2014-2015 Dirk Lemstra <https://graphicsmagick.codeplex.com/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may ob... | 28.745098 | 100 | 0.462028 | dlemstra |
8ba8c5c151b66652ed3ea12dd43a4e6d88e5e0a8 | 957 | hh | C++ | unix/maslgen/src/ProjectTerminator.hh | skind30/iuml-dumper | 258bf82f3d00f502e52fdee325f06a8637bc9842 | [
"Apache-2.0"
] | null | null | null | unix/maslgen/src/ProjectTerminator.hh | skind30/iuml-dumper | 258bf82f3d00f502e52fdee325f06a8637bc9842 | [
"Apache-2.0"
] | null | null | null | unix/maslgen/src/ProjectTerminator.hh | skind30/iuml-dumper | 258bf82f3d00f502e52fdee325f06a8637bc9842 | [
"Apache-2.0"
] | 4 | 2019-03-20T15:13:23.000Z | 2020-09-03T20:46:04.000Z | //
// Filename : ProjectTerminator.hh
//
// UK Crown Copyright (c) 2005. All Rights Reserved
//
#ifndef MaslGen_ProjectTerminator_HH
#define MaslGen_ProjectTerminator_HH
#include "iumlapi/XUML_NonCounterpartTerminator.hh"
#include "iumlapi/BS_NonCounterpartTerminator.hh"
#include "ProjectBridgeService.hh"
#include "... | 25.184211 | 135 | 0.747126 | skind30 |
8baa175c455d454228d2d716a2564a10f8ad026e | 8,373 | cpp | C++ | code/wxWidgets/src/palmos/checklst.cpp | Bloodknight/NeuTorsion | a5890e9ca145a8c1b6bec7b70047a43d9b1c29ea | [
"MIT"
] | 38 | 2016-02-20T02:46:28.000Z | 2021-11-17T11:39:57.000Z | code/wxWidgets/src/palmos/checklst.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 17 | 2016-02-20T02:19:55.000Z | 2021-02-08T15:15:17.000Z | code/wxWidgets/src/palmos/checklst.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 46 | 2016-02-20T02:47:33.000Z | 2021-01-31T15:46:05.000Z | ///////////////////////////////////////////////////////////////////////////////
// Name: src/palmos/checklst.cpp
// Purpose: implementation of wxCheckListBox class
// Author: William Osborne - minimal working wxPalmOS port
// Modified by:
// Created: 10.13.04
// RCS-ID: $Id: checklst.cpp,v 1.2 ... | 28.674658 | 195 | 0.584378 | Bloodknight |
8babf6f3c2e9ab86cac63fc86dad92a1253b7bfb | 21,564 | cpp | C++ | Source/Data/tag.cpp | INM-RAS/INMOST | 2846aa63c1fc11c406cb2d558646237223183201 | [
"BSD-3-Clause"
] | 25 | 2016-03-14T19:34:00.000Z | 2022-03-17T13:34:59.000Z | Source/Data/tag.cpp | INMOST-DEV/INMOST | c2209a6378b0d2ecc2f3ec9a12e0217cca011ca8 | [
"BSD-3-Clause"
] | 22 | 2015-01-17T18:43:16.000Z | 2021-03-26T08:09:43.000Z | Source/Data/tag.cpp | INM-RAS/INMOST | 2846aa63c1fc11c406cb2d558646237223183201 | [
"BSD-3-Clause"
] | 13 | 2015-04-22T16:04:21.000Z | 2021-03-31T10:51:48.000Z | #include "inmost.h"
#if defined(USE_MESH)
namespace INMOST
{
const char * DataTypeName(DataType t)
{
switch(t)
{
case DATA_REAL: return "REAL";
case DATA_INTEGER: return "INTEGER";
case DATA_BULK: return "BULK";
case DATA_REFERENCE: return "REFERENCE";
case DATA_REMOTE_REFERENCE: retur... | 34.447284 | 225 | 0.655491 | INM-RAS |
8bac19ad32e4895e70493a5d91a9ab73d79eab91 | 1,935 | cpp | C++ | Sources/Trans.cpp | vlad-alexandru-ionescu/E3Dos | 378ce5655b3b752fc26ffaf67d9f43b939929634 | [
"Apache-2.0"
] | 48 | 2019-02-03T01:07:36.000Z | 2019-05-09T15:15:43.000Z | Sources/Trans.cpp | vlad-alexandru-ionescu/E3Dos | 378ce5655b3b752fc26ffaf67d9f43b939929634 | [
"Apache-2.0"
] | null | null | null | Sources/Trans.cpp | vlad-alexandru-ionescu/E3Dos | 378ce5655b3b752fc26ffaf67d9f43b939929634 | [
"Apache-2.0"
] | 1 | 2019-02-03T15:41:46.000Z | 2019-02-03T15:41:46.000Z |
#include "Trans.h"
namespace Graphics
{
namespace Graphics2D
{
namespace TransitionEffects
{
// class FADE
void FADE::DrawFrame(float Step)
{
unsigned long Tol;
if(From!=NULL&&To!=NULL)
for(Tol=0;Tol<Graph.Target->MaxT;Tol++)
Graph.Target->PutPixel(Tol, (fRGB(From->Data[Tol])*(1.0f... | 28.880597 | 147 | 0.663566 | vlad-alexandru-ionescu |
8bacdb3e498f04d806265a4d79e1fcc28d7c0829 | 1,685 | cpp | C++ | source/renderer/opengl/buffers_impl_ogl.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/renderer/opengl/buffers_impl_ogl.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/renderer/opengl/buffers_impl_ogl.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2021-2022 Konstanty Misiak
*
* SPDX-License-Identifier: MIT
*/
#include "renderer/opengl/buffers_impl_ogl.hpp"
#include <glad/glad.h>
namespace k2d {
VertexBufferImpl::VertexBufferImpl(const void* vertices, size_t size)
{
glCreateBuffers(1, &m_id);
bind();
glBu... | 23.402778 | 120 | 0.647478 | Kostu96 |
8baf01088451a53dd32039e27a745f4aabf3cc05 | 583 | cpp | C++ | Homework/Homework/HomeWork2.cpp | abiles/graphicsProject | 4a7f4407a57a7f26b4b71ee7cfaa109917ee73f0 | [
"MIT"
] | null | null | null | Homework/Homework/HomeWork2.cpp | abiles/graphicsProject | 4a7f4407a57a7f26b4b71ee7cfaa109917ee73f0 | [
"MIT"
] | null | null | null | Homework/Homework/HomeWork2.cpp | abiles/graphicsProject | 4a7f4407a57a7f26b4b71ee7cfaa109917ee73f0 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "HomeWork2.h"
HomeWork2 GHomeWork2;
HomeWork2::HomeWork2()
{
}
HomeWork2::~HomeWork2()
{
}
void HomeWork2::RenderSpiralPoints()
{
GLfloat x, y, z, angle;
glColor3f(0.0f, 1.0f, 0.0f);
glPushMatrix();
glRotatef(m_RotateX, 1.0f, 0.0f, 0.0f);
glRotatef(m_RotateY, 0.0f, 1.0f, 0.0f);
... | 14.219512 | 63 | 0.610635 | abiles |
8bb1e785cb3b8e5a0cb0391aaf4c7608682e687a | 1,858 | cc | C++ | tui/termbox_api.cc | magiblot/turbo-mle | 00184c1e130ec9cf965cc13ddac82b0fd8fb3c92 | [
"Apache-2.0"
] | 2 | 2020-07-21T06:46:20.000Z | 2022-01-12T00:44:07.000Z | tui/termbox_api.cc | magiblot/turbo-mle | 00184c1e130ec9cf965cc13ddac82b0fd8fb3c92 | [
"Apache-2.0"
] | null | null | null | tui/termbox_api.cc | magiblot/turbo-mle | 00184c1e130ec9cf965cc13ddac82b0fd8fb3c92 | [
"Apache-2.0"
] | null | null | null | #include "app.h"
#include "termbox_emu.h"
#include "termbox_view.h"
#include <termbox.h>
#define Uses_TWindow
#include <tvision/tv.h>
extern "C" int tb_init(void)
{
return 0;
}
extern "C" void tb_shutdown(void)
{
if (app->mleTerm->view) {
TWindow *w = (TWindow *) app->mleTerm->view->owner;
w-... | 18.959184 | 83 | 0.630248 | magiblot |
8bb2737a989fb42a94c6305afd55aaf24bd6204c | 113 | cpp | C++ | Source/Scene/Scene.cpp | reo-prg/TurnZ_code | f079c27921e2597bb824eba416b8b9a31258580c | [
"Unlicense"
] | null | null | null | Source/Scene/Scene.cpp | reo-prg/TurnZ_code | f079c27921e2597bb824eba416b8b9a31258580c | [
"Unlicense"
] | null | null | null | Source/Scene/Scene.cpp | reo-prg/TurnZ_code | f079c27921e2597bb824eba416b8b9a31258580c | [
"Unlicense"
] | null | null | null | #include "Scene.h"
Scene::Scene():mng_(nullptr)
{
}
void Scene::SetManager(SceneManager* mng)
{
mng_ = mng;
}
| 10.272727 | 41 | 0.663717 | reo-prg |
8bbedfdc76ba05254a478224aecb55864f22c22e | 3,765 | hpp | C++ | src/lua/zlua.hpp | ZiperZTheUnbeaten/__example | 6b41c2b336ae93c66f3f9b6198ab2b53134fd761 | [
"Unlicense"
] | null | null | null | src/lua/zlua.hpp | ZiperZTheUnbeaten/__example | 6b41c2b336ae93c66f3f9b6198ab2b53134fd761 | [
"Unlicense"
] | null | null | null | src/lua/zlua.hpp | ZiperZTheUnbeaten/__example | 6b41c2b336ae93c66f3f9b6198ab2b53134fd761 | [
"Unlicense"
] | null | null | null | #ifndef LUA_HPP
#define LUA_HPP
#include <functional>
#include <exception>
#include <string>
#include <vector>
namespace lua
{
class lua_state;
class exception;
class invalidCastException;
using function = int(*)();
}
namespace lua
{
class exception
{
public:
exception(const std::stri... | 20.57377 | 86 | 0.636122 | ZiperZTheUnbeaten |
8bc52994645a486904988454cbd66d322757ac8e | 2,433 | hpp | C++ | utils/LocalSearchUtility.hpp | Koukan/voxomap | 104a068b4bc84f7a208460248f824dfcde49f470 | [
"MIT"
] | 2 | 2019-03-01T16:34:02.000Z | 2020-10-08T21:27:52.000Z | utils/LocalSearchUtility.hpp | Koukan/voxomap | 104a068b4bc84f7a208460248f824dfcde49f470 | [
"MIT"
] | null | null | null | utils/LocalSearchUtility.hpp | Koukan/voxomap | 104a068b4bc84f7a208460248f824dfcde49f470 | [
"MIT"
] | null | null | null | #ifndef _VOXOMAP_LOCALSEARCHUTILITY_HPP_
#define _VOXOMAP_LOCALSEARCHUTILITY_HPP_
#include <vector>
#include <cstdint>
namespace voxomap
{
template <class T_Container> class VoxelOctree;
template <class T_Container> class VoxelNode;
/*! \class LocalSearchUtility
\ingroup Utility
\brief Tools used to search ... | 29.313253 | 92 | 0.637074 | Koukan |
8bca8aa9a2eb86e28ee75bfe0fee82ecce478eaf | 953 | cpp | C++ | Libraries/LibCore/CLocalSocket.cpp | JamiKettunen/serenity | 232da5cc188496f570ef55276a897f1095509c87 | [
"BSD-2-Clause"
] | 1 | 2020-01-07T06:21:11.000Z | 2020-01-07T06:21:11.000Z | Libraries/LibCore/CLocalSocket.cpp | JamiKettunen/serenity | 232da5cc188496f570ef55276a897f1095509c87 | [
"BSD-2-Clause"
] | null | null | null | Libraries/LibCore/CLocalSocket.cpp | JamiKettunen/serenity | 232da5cc188496f570ef55276a897f1095509c87 | [
"BSD-2-Clause"
] | null | null | null | #include <LibCore/CLocalSocket.h>
#include <sys/socket.h>
#include <errno.h>
#ifndef SOCK_NONBLOCK
#include <sys/ioctl.h>
#endif
CLocalSocket::CLocalSocket(int fd, CObject* parent)
: CSocket(CSocket::Type::Local, parent)
{
// NOTE: This constructor is used by CLocalServer::accept(), so the socket is already c... | 21.659091 | 100 | 0.656873 | JamiKettunen |
8bd494b669c259e97c97aa9c7c87e35d05f31edf | 1,546 | hpp | C++ | include/Slim/Util/Reflection/ClassFactory.hpp | zuocheng-liu/slim | 6610982481934de3da1a785b2eb7765082c9c1d0 | [
"Apache-2.0"
] | null | null | null | include/Slim/Util/Reflection/ClassFactory.hpp | zuocheng-liu/slim | 6610982481934de3da1a785b2eb7765082c9c1d0 | [
"Apache-2.0"
] | null | null | null | include/Slim/Util/Reflection/ClassFactory.hpp | zuocheng-liu/slim | 6610982481934de3da1a785b2eb7765082c9c1d0 | [
"Apache-2.0"
] | null | null | null | #ifndef SLIM_UTIL_REFLECTION_CLASSFACTORY_HPP
#define SLIM_UTIL_REFLECTION_CLASSFACTORY_HPP
#include <hash_map>
#include <string>
#include <cstring>
#include <cstdlib>
#include <Slim/Util/Reflection/Object.hpp>
#include <Slim/Exception.hpp>
namespace Slim {
namespace Util {
namespace Reflection {
... | 39.641026 | 107 | 0.512937 | zuocheng-liu |
8bd9594bc6df35a1de9f9444d9baa6cd65028da1 | 739 | cpp | C++ | SubsurfaceScattering/src/vulkan/pipelines/ShaderModule.cpp | disini/Separable-Subsurface-Scattering-Demo-ubuntu | bc4d296f63ddae5698566cd94de265a85c51a3c7 | [
"MIT"
] | 1 | 2021-12-12T12:26:00.000Z | 2021-12-12T12:26:00.000Z | SubsurfaceScattering/src/vulkan/pipelines/ShaderModule.cpp | disini/Separable-Subsurface-Scattering-Demo-ubuntu | bc4d296f63ddae5698566cd94de265a85c51a3c7 | [
"MIT"
] | null | null | null | SubsurfaceScattering/src/vulkan/pipelines/ShaderModule.cpp | disini/Separable-Subsurface-Scattering-Demo-ubuntu | bc4d296f63ddae5698566cd94de265a85c51a3c7 | [
"MIT"
] | null | null | null | #include "ShaderModule.h"
#include "utility/Utility.h"
sss::vulkan::ShaderModule::ShaderModule(VkDevice device, const char *path)
:m_device(device)
{
std::vector<char> code = util::readBinaryFile(path);
VkShaderModuleCreateInfo createInfo{ VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO };
createInfo.codeSize = code.s... | 27.37037 | 84 | 0.764547 | disini |
8bdcb0f81fae2b6db80e34cd0c1ef1013ee0ea36 | 77,620 | hpp | C++ | packages/data/endl/src/Data_ENDLDataContainer.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/data/endl/src/Data_ENDLDataContainer.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/data/endl/src/Data_ENDLDataContainer.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file Data_ENDLDataContainer.hpp
//! \author Luke Kersting
//! \brief The native endl container class decl.
//!
//---------------------------------------------------------------------------//
#ifndef DATA_ENDL_DATA_CONTAINER_HPP... | 43.977337 | 116 | 0.733033 | bam241 |
8be125802035a72e156260627056769598be1d1a | 2,207 | cc | C++ | src/timeout.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | 33 | 2018-05-06T12:00:45.000Z | 2022-03-15T04:50:26.000Z | src/timeout.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | 9 | 2020-08-17T04:50:46.000Z | 2022-03-17T13:27:30.000Z | src/timeout.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | 13 | 2018-06-07T11:48:36.000Z | 2022-03-14T13:55:04.000Z | /* vim: set sw=4 sts=4 et foldmethod=syntax : */
#include "timeout.hh"
#include <atomic>
#include <condition_variable>
#include <mutex>
#include <thread>
#include <iostream>
#include <iomanip>
#include <ctime>
#include <chrono>
using std::atomic;
using std::condition_variable;
using std::cv_status;
using std::make_... | 23.731183 | 101 | 0.571817 | KyleBurns |
8be1f025ccb27806ef889096b3fa213ae30a1254 | 1,617 | cpp | C++ | examples/sauth.cpp | dccarter/sparc | f982da62e33ee69417984c679c1e82ddd97a1cad | [
"Apache-2.0"
] | null | null | null | examples/sauth.cpp | dccarter/sparc | f982da62e33ee69417984c679c1e82ddd97a1cad | [
"Apache-2.0"
] | 3 | 2017-02-02T06:58:30.000Z | 2017-02-02T07:08:53.000Z | examples/sauth.cpp | dccarter/sparc | f982da62e33ee69417984c679c1e82ddd97a1cad | [
"Apache-2.0"
] | null | null | null | //
// Created by dc on 11/29/16.
//
#include "sparc.h"
#include <unordered_map>
#include <cstring>
using namespace sparc;
int main(int argc, char *argv[])
{
$enter(argc, argv);
config::debug($ON);
std::unordered_map<std::string, std::string> passbox_;
passbox_.insert({"foo", "bar"});
passbox_.in... | 25.666667 | 83 | 0.506494 | dccarter |
8be24e3d805afbac2eb2c07b43bf5d04ca0a1023 | 4,122 | cpp | C++ | driver_general/yujinrobot_yrldriver/yujinrobot_yrldriver/src/test/test_mode_change.cpp | yujinrobot/yujin_lidar_v2 | b8252e9a3d4d943c5f1f40da84c2c95fbd89cf06 | [
"OLDAP-2.3"
] | null | null | null | driver_general/yujinrobot_yrldriver/yujinrobot_yrldriver/src/test/test_mode_change.cpp | yujinrobot/yujin_lidar_v2 | b8252e9a3d4d943c5f1f40da84c2c95fbd89cf06 | [
"OLDAP-2.3"
] | null | null | null | driver_general/yujinrobot_yrldriver/yujinrobot_yrldriver/src/test/test_mode_change.cpp | yujinrobot/yujin_lidar_v2 | b8252e9a3d4d943c5f1f40da84c2c95fbd89cf06 | [
"OLDAP-2.3"
] | null | null | null | /*********************************************************************
* Copyright (c) 2022, YujinRobot Corp.
*
* Non-monifiable freely redistributable software(FRS)
*
* - Redistribution. Redistribution and use in binary form, without modification,
* are permitted provided that the following conditions are ... | 45.8 | 488 | 0.520621 | yujinrobot |
8be47c24f0daeb8e195ef68ba0d869bfdf1b9f33 | 1,701 | cc | C++ | src/ast/BinaryExpression.cc | walecome/seal | 204b2dbad9f0bf3ac77f5e32173de39ef1fb81c1 | [
"MIT"
] | 1 | 2020-01-06T09:43:56.000Z | 2020-01-06T09:43:56.000Z | src/ast/BinaryExpression.cc | walecome/seal | 204b2dbad9f0bf3ac77f5e32173de39ef1fb81c1 | [
"MIT"
] | null | null | null | src/ast/BinaryExpression.cc | walecome/seal | 204b2dbad9f0bf3ac77f5e32173de39ef1fb81c1 | [
"MIT"
] | null | null | null | #include <fmt/format.h>
#include "BinaryExpression.hh"
#include "Operator.hh"
void BinaryExpression::analyze(Scope *scope) {
m_left->analyze(scope);
m_operator->analyze(scope);
m_right->analyze(scope);
if (m_left->type().primitive() == Primitive::DONT_CARE &&
m_right->type().primitive() == Pr... | 33.352941 | 135 | 0.603762 | walecome |
8bed3fc0a23e8dd4ef07d1255281b802f846b318 | 1,816 | cpp | C++ | src/_leetcode/leet_513.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_513.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_513.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_513.cpp ==========================
* -- tpr --
* CREATE -- 2020.05.25
* MODIFY --
* ----------------------------------------------------------
* 513. 找树左下角的值
*/
#include "innLe... | 22.419753 | 86 | 0.378304 | turesnake |
8bf0d0ddfd812918d6b18f1af8d41a3e33adfda6 | 5,489 | cpp | C++ | ros_workspace/src/cob_sick_lms1xx/ros/src/lms1xx_node.cpp | ne0h/hmmwv | d8988e8f304e3b1f75cff68f1b1d04438248bdd9 | [
"MIT"
] | 4 | 2016-05-26T09:58:02.000Z | 2021-12-01T06:48:31.000Z | ros_workspace/src/cob_sick_lms1xx/ros/src/lms1xx_node.cpp | hmmwv-team/hmmwv | d8988e8f304e3b1f75cff68f1b1d04438248bdd9 | [
"MIT"
] | null | null | null | ros_workspace/src/cob_sick_lms1xx/ros/src/lms1xx_node.cpp | hmmwv-team/hmmwv | d8988e8f304e3b1f75cff68f1b1d04438248bdd9 | [
"MIT"
] | 4 | 2016-09-17T18:42:39.000Z | 2018-04-09T20:07:25.000Z | #include <csignal>
#include <cstdio>
#include <lms1xx.h>
#include "ros/ros.h"
#include "sensor_msgs/LaserScan.h"
#define DEG2RAD M_PI/180.0
// void convertScanToPolar(std::vector<int> viScanRaw,
// std::vector<ScanPolarType>& vecScanPolar )
// {
// double dDist;
// double dAngle, dAngleStep;
// d... | 27.039409 | 103 | 0.644015 | ne0h |
8bf11926826a0a133755376d35aa645edb564748 | 1,414 | cpp | C++ | src/main/cpp/subsystems/IntakeSubsystem.cpp | team587/robot-2022 | 0d3fb9bd41f8488555266681747e44dd0457212e | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/subsystems/IntakeSubsystem.cpp | team587/robot-2022 | 0d3fb9bd41f8488555266681747e44dd0457212e | [
"BSD-3-Clause"
] | 1 | 2022-03-07T22:14:26.000Z | 2022-03-07T22:14:26.000Z | src/main/cpp/subsystems/IntakeSubsystem.cpp | team587/robot-2022 | 0d3fb9bd41f8488555266681747e44dd0457212e | [
"BSD-3-Clause"
] | 1 | 2022-02-24T17:52:57.000Z | 2022-02-24T17:52:57.000Z | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 27.192308 | 80 | 0.586987 | team587 |
8bf44c9e0bbbe079c34bc6aed0f27d2291da13f6 | 1,398 | cpp | C++ | SerializedTools/RegistorType.cpp | nicor71ang/ISerializeDemo | e8336c86f756b025050e5639638d2eed6678f8ae | [
"MIT"
] | null | null | null | SerializedTools/RegistorType.cpp | nicor71ang/ISerializeDemo | e8336c86f756b025050e5639638d2eed6678f8ae | [
"MIT"
] | null | null | null | SerializedTools/RegistorType.cpp | nicor71ang/ISerializeDemo | e8336c86f756b025050e5639638d2eed6678f8ae | [
"MIT"
] | null | null | null | #include "RegistorType.h"
RegistorType::RegistorType()
{
this->typeName = "";
}
RegistorType::RegistorType(const RegistorType &data)
{
this->typeName = data.typeName;
this->Keys = data.Keys;
}
RegistorType::RegistorType(const QString typeName)
{
this->typeName = typeName;
this->Keys =new QList<Se... | 24.526316 | 158 | 0.678112 | nicor71ang |
8bf793965a46e785bf2a57458aaee94c6d57a47d | 3,598 | cpp | C++ | src/thread/thread.cpp | daniel-blake/piio-server | fc0d9306343518c865c9bd1fb96fd70b693aaab1 | [
"MIT"
] | null | null | null | src/thread/thread.cpp | daniel-blake/piio-server | fc0d9306343518c865c9bd1fb96fd70b693aaab1 | [
"MIT"
] | null | null | null | src/thread/thread.cpp | daniel-blake/piio-server | fc0d9306343518c865c9bd1fb96fd70b693aaab1 | [
"MIT"
] | null | null | null | #include "thread.hpp"
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <iostream>
#include "../log/log.hpp"
using namespace std;
void * thread_threadStarter(void *);
Thread::Thread()
{
running = false;
pthread_mutexattr_init(&mutexAttr);
pthread_mutexattr_settype... | 24.643836 | 189 | 0.633963 | daniel-blake |
8bf9b395d2372315c8159f5650631ec5855e3357 | 2,146 | hpp | C++ | tests/git/include/git/repository.hpp | bruxisma/brujeria | 66822e9190ce2ac6103f6144e145c04f4780903a | [
"MIT"
] | 19 | 2018-02-24T23:09:21.000Z | 2021-06-12T09:46:07.000Z | tests/git/include/git/repository.hpp | bruxisma/brujeria | 66822e9190ce2ac6103f6144e145c04f4780903a | [
"MIT"
] | 21 | 2019-03-22T23:59:30.000Z | 2020-12-25T13:13:53.000Z | tests/git/include/git/repository.hpp | slurps-mad-rips/brujeria | 66822e9190ce2ac6103f6144e145c04f4780903a | [
"MIT"
] | 1 | 2022-03-18T15:39:06.000Z | 2022-03-18T15:39:06.000Z | #ifndef GIT_REPOSITORY_HPP
#define GIT_REPOSITORY_HPP
#include <git/memory.hpp>
#include <git/error.hpp>
#include <ciso646>
#include <string_view>
#include <string>
namespace git {
enum class bare : bool { no, yes };
struct repository final {
using handle_type = unique_ptr<git_repository>;
using pointer = han... | 28.236842 | 74 | 0.757689 | bruxisma |
8bfa1c09d9c1d2f3017b2d8ed80f2bbab0a2d51c | 9,204 | cpp | C++ | ziomon/ziorep_utilization.cpp | nikita-dubrovskii/s390-tools | 074de1e14ed785c18f55ecf9762ac3f5de3465b4 | [
"MIT"
] | 43 | 2017-08-21T12:18:57.000Z | 2021-01-21T09:20:59.000Z | ziomon/ziorep_utilization.cpp | nikita-dubrovskii/s390-tools | 074de1e14ed785c18f55ecf9762ac3f5de3465b4 | [
"MIT"
] | 99 | 2017-08-21T20:41:13.000Z | 2021-01-27T16:23:07.000Z | ziomon/ziorep_utilization.cpp | nikita-dubrovskii/s390-tools | 074de1e14ed785c18f55ecf9762ac3f5de3465b4 | [
"MIT"
] | 37 | 2017-08-21T20:37:32.000Z | 2021-02-02T10:10:45.000Z | /*
* FCP report generators
*
* Utilization report program
*
* Copyright IBM Corp. 2008, 2017
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <linux/ty... | 24.28496 | 85 | 0.588766 | nikita-dubrovskii |
bdd7c1f5a23809cd00cea0b77c80faf2934fc9a7 | 286 | cpp | C++ | minimum-difference-between-highest-and-lowest-of-k-scores/minimum-difference-between-highest-and-lowest-of-k-scores.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | 1 | 2022-02-14T07:57:07.000Z | 2022-02-14T07:57:07.000Z | minimum-difference-between-highest-and-lowest-of-k-scores/minimum-difference-between-highest-and-lowest-of-k-scores.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | minimum-difference-between-highest-and-lowest-of-k-scores/minimum-difference-between-highest-and-lowest-of-k-scores.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | class Solution {
public:
int minimumDifference(vector<int>& nums, int k) {
sort(nums.begin(), nums.end());
int diff=INT_MAX;
for(int i=k-1; i<nums.size(); i++)
{
diff=min(diff, nums[i]-nums[i-k+1]);
}
return diff;
}
}; | 23.833333 | 53 | 0.496503 | sharmishtha2401 |
bdd7e0bdfae99baf6f5f667e52e73d6d995fd091 | 3,578 | cxx | C++ | HLT/BASE/util/AliHLTObjectCompressionComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | HLT/BASE/util/AliHLTObjectCompressionComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | HLT/BASE/util/AliHLTObjectCompressionComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | // $Id$
//**************************************************************************
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
//* *
//... | 31.663717 | 109 | 0.657071 | AllaMaevskaya |
bdda047f439cd45e6c5d5b61a7f59c793e6c276d | 1,378 | cpp | C++ | src/RNG/RAND_bytes.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 99 | 2015-01-06T01:53:26.000Z | 2022-01-31T18:18:27.000Z | src/RNG/RAND_bytes.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 27 | 2015-03-09T05:46:53.000Z | 2020-05-06T02:52:18.000Z | src/RNG/RAND_bytes.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 42 | 2015-03-18T03:44:43.000Z | 2022-03-31T21:34:06.000Z | #include "RNG/RAND_bytes.h"
#include <cstdlib>
#include <stdexcept>
#include "common/includes.h"
namespace OpenPGP {
namespace RNG {
bool RAND_bytes::seeded = false;
void RAND_bytes::seed(const void * buf, int num) {
if (!seeded) {
::RAND_seed(buf, num);
seeded = true;
}
}
RAND_bytes::RAND... | 22.966667 | 145 | 0.632075 | httese |
bdda21fd74eef0d5499222e9026e91b84b48ce7f | 566 | cpp | C++ | 318_maxProduct.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 318_maxProduct.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 318_maxProduct.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | class Solution {
public:
int maxProduct(vector<string> &words) {
if (words.empty())
return 0;
vector<std::bitset<26>> vec(words.size());
for (int w = 0; w < words.size(); ++w) {
for (char c : words[w]) {
vec[w].set(c - 'a', true);
}
}
int result = 0;
for (int i = 0... | 21.769231 | 73 | 0.454064 | imxiaobo |
bddd80acc5fea788dd5357e91e5ef19da3cbc468 | 6,723 | hpp | C++ | source/GraphicsSystem.hpp | SquireRoot/engine2d | 1cba161963e7af4c320c22fd7302fef47bac5c1a | [
"MIT"
] | 1 | 2017-11-22T11:40:03.000Z | 2017-11-22T11:40:03.000Z | source/GraphicsSystem.hpp | SquireRoot/engine2d | 1cba161963e7af4c320c22fd7302fef47bac5c1a | [
"MIT"
] | null | null | null | source/GraphicsSystem.hpp | SquireRoot/engine2d | 1cba161963e7af4c320c22fd7302fef47bac5c1a | [
"MIT"
] | null | null | null | #pragma once
#include <GLEW\glew.h>
#include <GLFW\glfw3.h>
//GLM
#include <glm\glm.hpp>
#include <glm\gtc\matrix_transform.hpp>
#include <list>
#include <string>
#include <fstream>
#include <algorithm>
namespace engine2d {
namespace GraphicsSystem {
DLinkedList<GraphicsComponent> graphicsComponents;
GLuint ... | 29.358079 | 110 | 0.698349 | SquireRoot |
bde0cf1171fdb81a44b616b5af5ea40b5201c2c6 | 3,009 | cpp | C++ | ElectruxShorthandInterpretedLanguage/src/Lexer.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 6 | 2019-08-29T23:31:17.000Z | 2021-11-14T20:35:47.000Z | ElectruxShorthandInterpretedLanguage/src/Lexer.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | null | null | null | ElectruxShorthandInterpretedLanguage/src/Lexer.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 1 | 2019-09-01T12:22:58.000Z | 2019-09-01T12:22:58.000Z | #include <iostream>
#include <string>
#include <vector>
#include "../include/StringFuncs.hpp"
#include "../include/DataTypes.hpp"
#include "../include/Lexer.hpp"
namespace Lexer
{
static int VectorFind( const std::vector< std::string > & vec,
const std::string & key )
{
int loc = -1;
for( int i = 0; ... | 20.895833 | 99 | 0.578265 | Electrux |
bde692a32560274b39188bb8075b0edd736d09c8 | 2,469 | hpp | C++ | include/gameloop.hpp | Illiren/raycarter | 0c7328199e1da6980b2bb6609e9dba55f5443c39 | [
"MIT"
] | null | null | null | include/gameloop.hpp | Illiren/raycarter | 0c7328199e1da6980b2bb6609e9dba55f5443c39 | [
"MIT"
] | null | null | null | include/gameloop.hpp | Illiren/raycarter | 0c7328199e1da6980b2bb6609e9dba55f5443c39 | [
"MIT"
] | null | null | null | #pragma once
#include <thread>
#include <functional>
#include "geometry.hpp"
template<typename Base>
class GameLoop
{
public:
enum State
{
Idle = 0,
Running = 1,
Pause = 2,
};
GameLoop()
{
static_assert(true, "Wrong use of the class. Inheritance is needed");
}
... | 21.284483 | 85 | 0.490887 | Illiren |
bdeaed30b870b17f7f88302d505ffb3fc5576c0c | 62,081 | cpp | C++ | src/gslib/gsm.cpp | lymastee/gslib | 1b165b7a812526c4b2a3179588df9a7c2ff602a6 | [
"MIT"
] | 9 | 2016-10-18T09:40:09.000Z | 2022-02-11T09:44:51.000Z | src/gslib/gsm.cpp | lymastee/gslib | 1b165b7a812526c4b2a3179588df9a7c2ff602a6 | [
"MIT"
] | null | null | null | src/gslib/gsm.cpp | lymastee/gslib | 1b165b7a812526c4b2a3179588df9a7c2ff602a6 | [
"MIT"
] | 1 | 2016-10-19T15:20:58.000Z | 2016-10-19T15:20:58.000Z | /*
* Copyright (c) 2016-2021 lymastee, All rights reserved.
* Contact: lymastee@hotmail.com
*
* This file is part of the gslib 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 t... | 39.795513 | 190 | 0.573154 | lymastee |
bdeec386fdf0530a90cb8927f36fb22c886ab30b | 5,124 | cpp | C++ | modules/task_3/pronkin_d_horizontal_gauss/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/pronkin_d_horizontal_gauss/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2021-02-13T03:00:05.000Z | 2021-02-13T03:00:05.000Z | modules/task_3/pronkin_d_horizontal_gauss/main.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2020-10-11T09:11:57.000Z | 2020-10-11T09:11:57.000Z | // Copyright 2020 Pronkin Dmitry
#include <gtest-mpi-listener.hpp>
#include <gtest/gtest.h>
#include <vector>
#include "./horizontal_gauss.h"
TEST(Parallel_Operations_MPI, Image_100x1) {
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
int rows = 8;
int cols = 1;
std::vector<double> Image;
if (r... | 33.272727 | 88 | 0.632904 | LioBuitrago |
bdf0a451dcdbf628fa45bf7d1f39989930d609c7 | 75,419 | cpp | C++ | third_party/geogram/src/lib/geogram_gfx/glup_viewer/glup_viewer_gui.cpp | ringmesh/RINGMesh | 82a0a0fb0a119492c6747265de6ec24006c4741f | [
"BSD-3-Clause"
] | 74 | 2017-10-26T15:40:23.000Z | 2022-03-22T09:27:39.000Z | third_party/geogram/src/lib/geogram_gfx/glup_viewer/glup_viewer_gui.cpp | ringmesh/ringmesh | 82a0a0fb0a119492c6747265de6ec24006c4741f | [
"BSD-3-Clause"
] | 45 | 2017-10-26T15:54:01.000Z | 2021-01-27T10:16:34.000Z | third_party/geogram/src/lib/geogram_gfx/glup_viewer/glup_viewer_gui.cpp | ringmesh/ringmesh | 82a0a0fb0a119492c6747265de6ec24006c4741f | [
"BSD-3-Clause"
] | 17 | 2018-03-27T11:31:24.000Z | 2022-03-06T18:41:52.000Z | /*
* Copyright (c) 2012-2016, Bruno Levy
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of c... | 30.349698 | 80 | 0.538233 | ringmesh |
bdf1324be4cc347463209d571eddfc5a54775103 | 871 | cpp | C++ | time/helper.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | null | null | null | time/helper.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | null | null | null | time/helper.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | 1 | 2020-04-24T02:28:32.000Z | 2020-04-24T02:28:32.000Z | //
// helper.cpp
// time
//
// Created by Li Li on 16/10/13.
// Copyright (c) 2013 Lilissun. All rights reserved.
//
#include "helper.h"
#include "common/runtime.h"
#include "explicit/namer.h"
#include "builder.h"
#include "context.h"
#include "rule.h"
#include "solver.h"
extern void scan_file(const std::string ... | 17.77551 | 56 | 0.575201 | lilissun |
bdf3707537a4e94f41dcec21f385b55809d348e8 | 4,207 | cpp | C++ | ShellSolver.cpp | csyzzkdcz/effective-garbanzo | 87223ecfc26371a9b251a70a0111ca4e0d95b594 | [
"MIT"
] | null | null | null | ShellSolver.cpp | csyzzkdcz/effective-garbanzo | 87223ecfc26371a9b251a70a0111ca4e0d95b594 | [
"MIT"
] | null | null | null | ShellSolver.cpp | csyzzkdcz/effective-garbanzo | 87223ecfc26371a9b251a70a0111ca4e0d95b594 | [
"MIT"
] | null | null | null | #include <igl/boundary_loop.h>
#include <igl/writeOBJ.h>
#include <igl/readOBJ.h>
#include "ShellSolver.h"
#include "WTFShell/WTFShell.h"
void ShellSolver::WTFSQPSolver(const WTFSetup& setup, WTFState& curState, std::string filePrefix, const WTFOptimizationParams params)
{
std::cout << "init amp norm: " << curState.... | 36.267241 | 184 | 0.688852 | csyzzkdcz |
bdf979e110a1f779e5a22feff6ecc2f063c11bcc | 1,179 | cpp | C++ | test/test/Base.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | null | null | null | test/test/Base.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | 178 | 2018-08-08T04:04:27.000Z | 2019-12-15T01:47:58.000Z | test/test/Base.main.cpp | AnantaYudica/basic | dcbf8c9eebb42a4e6a66b3c56ebc3a7e30626950 | [
"MIT"
] | null | null | null | #include "test/Base.h"
#include <cstdio>
#include <cassert>
struct Variable1
{
bool m_isRunCase1;
Variable1() :
m_isRunCase1(false)
{}
};
struct Case1
{
void Run(Variable1& var)
{
var.m_isRunCase1 = true;
}
};
template<typename TCase, typename... TVariable>
class TestA :
... | 18.421875 | 64 | 0.631891 | AnantaYudica |
bdfe3f307bb63cea0fc3204040b0ae836c306534 | 1,350 | cpp | C++ | FPS/Source/FPS/NPC/ChooseNextWaypoint.cpp | infinityplusb/first_person_shooter | ffdc129ad873ac9963473e490b044ab453ecbdcb | [
"MIT"
] | null | null | null | FPS/Source/FPS/NPC/ChooseNextWaypoint.cpp | infinityplusb/first_person_shooter | ffdc129ad873ac9963473e490b044ab453ecbdcb | [
"MIT"
] | null | null | null | FPS/Source/FPS/NPC/ChooseNextWaypoint.cpp | infinityplusb/first_person_shooter | ffdc129ad873ac9963473e490b044ab453ecbdcb | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "ChooseNextWaypoint.h"
#include "AIController.h"
#include "PatrolRoute.h"
#include "BehaviorTree/BlackboardComponent.h"
EBTNodeResult::Type UChooseNextWaypoint::ExecuteTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemo... | 33.75 | 108 | 0.719259 | infinityplusb |
da0456dbf4291ac1e1216c63998949a28a8b85dc | 8,457 | hpp | C++ | ext/src/javax/crypto/Cipher.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/javax/crypto/Cipher.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/javax/crypto/Cipher.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/jce.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/io/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/nio/fwd-POI.hpp>
#include <java/security/fwd-POI.hpp>
#include <java/security/cert/fwd-POI.hpp>
#include... | 48.325714 | 244 | 0.693154 | pebble2015 |
da0ca44349bfdab8049d7c34c90977543156f5ab | 9,962 | cpp | C++ | lesson11/src/main.cpp | turmax2005/CPPExercises2021 | 5370a5517eb489895445f105b26c9bcb0d35a176 | [
"MIT"
] | 1 | 2021-09-22T06:37:27.000Z | 2021-09-22T06:37:27.000Z | lesson11/src/main.cpp | turmax2005/CPPExercises2021 | 5370a5517eb489895445f105b26c9bcb0d35a176 | [
"MIT"
] | null | null | null | lesson11/src/main.cpp | turmax2005/CPPExercises2021 | 5370a5517eb489895445f105b26c9bcb0d35a176 | [
"MIT"
] | null | null | null | #include <filesystem>
#include <iostream>
#include <libutils/rasserts.h>
#include "parsesymbolsold.h"
#include <opencv2/imgproc.hpp>
#include <filesystem>
#include <iostream>
#include <libutils/rasserts.h>
#include <opencv2/imgproc.hpp>
#include "parseSymbols.h"
//#include "parsesymbols2.h"
#include <filesystem>
#in... | 47.665072 | 267 | 0.664927 | turmax2005 |
da0e29a0b24174d572d17b5617d751fbbd0818e0 | 1,810 | cpp | C++ | code/main.cpp | Vincent11276/Platformer2D-Game | 3ae7402ee3b5d0ad8a0d05b04c10a22cdf9fcfca | [
"MIT"
] | null | null | null | code/main.cpp | Vincent11276/Platformer2D-Game | 3ae7402ee3b5d0ad8a0d05b04c10a22cdf9fcfca | [
"MIT"
] | 1 | 2021-07-13T22:47:02.000Z | 2021-07-14T03:45:48.000Z | code/main.cpp | Vincent11276/Platformer2D-Game | 3ae7402ee3b5d0ad8a0d05b04c10a22cdf9fcfca | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
#include <SFML/Graphics.hpp>
#include "AnimatedSprite.hpp"
int main()
{
std::string spriteSheetPath = "C:\\Users\\Vincent\\Documents\\GitHub\\Platformer2D-Game\\assets\\Arts\\Intellect Devourer Sprites.png";
sf::Texture texture... | 24.459459 | 145 | 0.625414 | Vincent11276 |
da102b0789389be7b402ee9ba568150ecd83a92e | 799 | cpp | C++ | Skima/Classes/FlashSkill.cpp | dlakwwkd/CommitAgain | 3fdad38f7951b1a58ae244bd5d68f5a92e97f633 | [
"MIT"
] | 1 | 2015-04-07T06:08:11.000Z | 2015-04-07T06:08:11.000Z | Skima/Classes/FlashSkill.cpp | dlakwwkd/CommitAgain | 3fdad38f7951b1a58ae244bd5d68f5a92e97f633 | [
"MIT"
] | 1 | 2015-01-01T11:14:29.000Z | 2015-01-01T12:19:04.000Z | Skima/Classes/FlashSkill.cpp | dlakwwkd/CommitAgain | 3fdad38f7951b1a58ae244bd5d68f5a92e97f633 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "FlashSkill.h"
#include "TeleportEffect.h"
#include "GameManager.h"
#include "Hero.h"
#include "Unit.h"
#include "SimpleAudioEngine.h"
using namespace CocosDenshion;
FlashSkill::FlashSkill(Hero* hero)
{
m_Owner = hero;
m_CoolTime = 3;
m_CanUse = true;
CreateSprite("Images/Int... | 18.581395 | 75 | 0.700876 | dlakwwkd |
da1368560a4221eb15dbad1c32e77697fabf5b2a | 1,171 | hpp | C++ | JEngine/tests/test/TestBase/TestWindow.hpp | JesusKrists/JEngine | 2bdac1cdbadc282690614750f2cfd7902dd096cb | [
"Apache-2.0"
] | 4 | 2021-05-31T05:58:04.000Z | 2022-03-02T17:34:21.000Z | JEngine/tests/test/TestBase/TestWindow.hpp | JesusKrists/JEngine | 2bdac1cdbadc282690614750f2cfd7902dd096cb | [
"Apache-2.0"
] | 24 | 2021-05-31T06:50:48.000Z | 2022-02-07T22:16:30.000Z | JEngine/tests/test/TestBase/TestWindow.hpp | JesusKrists/JEngine | 2bdac1cdbadc282690614750f2cfd7902dd096cb | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <Core/Window.hpp>
namespace JETest {
class TestWindow final : public JE::IWindow
{
public:
TestWindow(const std::string &title, int32_t width, int32_t height, void *nativeHandle) : Data{ title, width, height, nativeHandle } {}
[[nodiscard]] inline void *GetNativeH... | 32.527778 | 143 | 0.632792 | JesusKrists |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.