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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b2f117d28bcd33f3d11a51e57db4bac970dd701 | 165 | cpp | C++ | src/logging/Console_logger.cpp | Swassie/dcmed | eb0225d991715b10bace2b96103c3fd98fe83c29 | [
"BSD-3-Clause"
] | null | null | null | src/logging/Console_logger.cpp | Swassie/dcmed | eb0225d991715b10bace2b96103c3fd98fe83c29 | [
"BSD-3-Clause"
] | null | null | null | src/logging/Console_logger.cpp | Swassie/dcmed | eb0225d991715b10bace2b96103c3fd98fe83c29 | [
"BSD-3-Clause"
] | 1 | 2021-05-10T08:54:39.000Z | 2021-05-10T08:54:39.000Z | #include "logging/Console_logger.h"
#include <iostream>
void Console_logger::log(const std::string& message, Log_level) {
std::cout << message << std::endl;
}
| 20.625 | 65 | 0.70303 | Swassie |
9b374ba0a6c686002f0eca1a0c1dd5cb114772d1 | 7,415 | hpp | C++ | inc/UI/Flyout.hpp | barne856/3DSWMM | 60dd2702c82857dcf4358b8d42a1fb430a568e90 | [
"MIT"
] | null | null | null | inc/UI/Flyout.hpp | barne856/3DSWMM | 60dd2702c82857dcf4358b8d42a1fb430a568e90 | [
"MIT"
] | null | null | null | inc/UI/Flyout.hpp | barne856/3DSWMM | 60dd2702c82857dcf4358b8d42a1fb430a568e90 | [
"MIT"
] | null | null | null | #ifndef FLYOUT
#define FLYOUT
#include "Application/Application.hpp"
#include "Meshes/Rectangle.hpp"
#include "Meshes/Circle.hpp"
#include "Materials/Flat.hpp"
#include "Materials/VertexColor.hpp"
#include "Application/Renderer.hpp"
#include "Application/Tool.hpp"
#include <iostream>
class Flyout : public UIElement
... | 34.649533 | 188 | 0.5706 | barne856 |
9b386d1553801bd7f598e20bdd04f360c7ec083b | 571 | hh | C++ | src/http/http_server_connection.hh | sharixos/libevent-cpp | 01b62cdb61a189afc7a31c8c9f8a90e350ab18b7 | [
"MIT"
] | 35 | 2019-04-02T01:48:49.000Z | 2022-03-21T08:36:22.000Z | src/http/http_server_connection.hh | sharixos/libevent-cpp | 01b62cdb61a189afc7a31c8c9f8a90e350ab18b7 | [
"MIT"
] | 1 | 2019-04-01T12:13:01.000Z | 2019-04-26T07:33:00.000Z | src/http/http_server_connection.hh | sharixos/libevent-cpp | 01b62cdb61a189afc7a31c8c9f8a90e350ab18b7 | [
"MIT"
] | 6 | 2019-04-01T23:10:20.000Z | 2021-03-04T09:13:56.000Z | #pragma once
#include <http_connection.hh>
namespace eve
{
class http_server;
class http_server_connection : public http_connection
{
public:
http_server *server;
std::string clientaddress;
unsigned int clientport;
public:
http_server_connection(std::shared_ptr<event_base> base, int fd, ht... | 19.033333 | 89 | 0.71979 | sharixos |
9b45cb6f733041a6d3da26ca330801f5d3b922a6 | 11,229 | cpp | C++ | examples/Rasterizer/Rasterizer.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | examples/Rasterizer/Rasterizer.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | examples/Rasterizer/Rasterizer.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | #include "pxCore.h"
#include "pxEventLoop.h"
#include "pxWindow.h"
#include "pxKeycodes.h"
#include "pxOffscreen.h"
#include "pxTimer.h"
#include "rtData.h"
#include "xs_StringUtil.h"
#include "stdio.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifndef PX_PLATFORM_WIN
#include <unistd.h>
#else
... | 20.159785 | 76 | 0.512779 | madanwork |
9b47b994dff24857a78571043882d5982f1195ae | 2,665 | cpp | C++ | src/engine/graphics/BufferObject.cpp | PepeSegade/LittleEngine | 0d8bcc1f783cfb3b8e8a1ad2456e470900ccdd1a | [
"WTFPL"
] | null | null | null | src/engine/graphics/BufferObject.cpp | PepeSegade/LittleEngine | 0d8bcc1f783cfb3b8e8a1ad2456e470900ccdd1a | [
"WTFPL"
] | null | null | null | src/engine/graphics/BufferObject.cpp | PepeSegade/LittleEngine | 0d8bcc1f783cfb3b8e8a1ad2456e470900ccdd1a | [
"WTFPL"
] | null | null | null | #include "BufferObject.h"
unsigned int LittleEngine::BufferObject::calculateDataSize()
{
switch (dataType)
{
case GL_FLOAT:
case GL_INT:
case GL_UNSIGNED_INT:
return 4;
case GL_SHORT:
case GL_UNSIGNED_SHORT:
return 2;
case GL_BYTE:
case GL_UNSIGNED_BYTE:
return 1;
default:
break;
}
return 0;
}
Lit... | 21.150794 | 128 | 0.762477 | PepeSegade |
9b49fbaff57cff6ac1206644743e89b0d2aa8236 | 3,003 | cpp | C++ | netc/PollPoller.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | 3 | 2020-08-11T06:47:16.000Z | 2021-07-16T09:51:28.000Z | netc/PollPoller.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | null | null | null | netc/PollPoller.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | 2 | 2020-08-10T07:38:29.000Z | 2021-07-16T09:48:09.000Z | //
// Created by suncx on 2020/8/21.
//
#include "PollPoller.h"
#include "Ext.h"
#include "Channel.h"
#include "ConsoleStream.h"
#include <cstring>
#include <poll.h>
#include <cassert>
using std::iter_swap;
using reactor::core::Timestamp;
using reactor::net::PollPoller;
using std::chrono::system_clock;
PollPoller::P... | 27.550459 | 98 | 0.615052 | Sun-CX |
9b4c0a6cf34a07115250dcdcec2415639afb80b2 | 555 | cpp | C++ | arrays/2D arrays/02_searching_an_element_.cpp | omkarugale7/cpp | 21717ce36a4f0d88e850e8b7205470f812ca1d58 | [
"MIT"
] | 1 | 2022-02-23T17:27:42.000Z | 2022-02-23T17:27:42.000Z | arrays/2D arrays/02_searching_an_element_.cpp | omkarugale7/cpp | 21717ce36a4f0d88e850e8b7205470f812ca1d58 | [
"MIT"
] | null | null | null | arrays/2D arrays/02_searching_an_element_.cpp | omkarugale7/cpp | 21717ce36a4f0d88e850e8b7205470f812ca1d58 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int n, m, k;
cin >> n >> m >> k;
int num[n][m];
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
cin >> num[i][j];
}
}
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
... | 18.5 | 62 | 0.311712 | omkarugale7 |
9b4f56e5127349a2b8fc87334443e313f948393f | 2,611 | cpp | C++ | VNVita/Program.cpp | QuantumBoogaloo/VNVitaPrototype | bf06d08e41da9874dd51cee967bfe2b5c27567d5 | [
"Apache-2.0"
] | null | null | null | VNVita/Program.cpp | QuantumBoogaloo/VNVitaPrototype | bf06d08e41da9874dd51cee967bfe2b5c27567d5 | [
"Apache-2.0"
] | 4 | 2018-03-22T13:34:22.000Z | 2018-03-22T13:55:56.000Z | VNVita/Program.cpp | QuantumBoogaloo/VNVitaPrototype | bf06d08e41da9874dd51cee967bfe2b5c27567d5 | [
"Apache-2.0"
] | null | null | null | #include "Program.h"
/*
Copyright (C) 2018 Quantum Boogaloo, Bakagamedev(@bakagamedev), Pharap (@Pharap)
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/LIC... | 24.401869 | 137 | 0.716201 | QuantumBoogaloo |
9b53e0c2962bf9585e5583d9a71e0cbe89876c39 | 805 | cpp | C++ | SFML_RPG/Tile.cpp | krisgreg/LBEngine | 391c6b2a2e543ea725884997c7bf3dc56572772a | [
"MIT"
] | null | null | null | SFML_RPG/Tile.cpp | krisgreg/LBEngine | 391c6b2a2e543ea725884997c7bf3dc56572772a | [
"MIT"
] | null | null | null | SFML_RPG/Tile.cpp | krisgreg/LBEngine | 391c6b2a2e543ea725884997c7bf3dc56572772a | [
"MIT"
] | null | null | null | #include "Tile.h"
#include "Consts.h"
lbe::Tile::Tile(sf::Vector2f WorldPos, sf::Texture *Texture, sf::Vector2f TexturePos, int TextureId) : TextureId(TextureId)
{
BackgroundSprite.setSize(sf::Vector2f(lbe::TILE_SIZE, lbe::TILE_SIZE));
BackgroundSprite.setTexture(Texture);
BackgroundSprite.setTextureRect(sf::IntRec... | 23 | 123 | 0.754037 | krisgreg |
9b5951bdfb9b2cfe06e5a321dfec953188bff92a | 1,329 | cpp | C++ | Pathfinding/DijkstraWalker.cpp | Gerard097/Pathfinding | 343ff9550dbd3f5d141a9ba3ccb2902002660dff | [
"MIT"
] | 25 | 2019-01-05T14:16:55.000Z | 2022-03-08T22:42:21.000Z | Pathfinding/DijkstraWalker.cpp | Gerard097/Pathfinding | 343ff9550dbd3f5d141a9ba3ccb2902002660dff | [
"MIT"
] | 1 | 2020-08-11T06:32:46.000Z | 2020-08-11T17:09:40.000Z | Pathfinding/DijkstraWalker.cpp | Gerard097/Pathfinding | 343ff9550dbd3f5d141a9ba3ccb2902002660dff | [
"MIT"
] | 5 | 2018-04-14T19:01:35.000Z | 2021-05-16T10:48:50.000Z | #include "DijkstraWalker.h"
#include "Graph.h"
CDijkstraWalker::CDijkstraWalker()
{
}
CDijkstraWalker::~CDijkstraWalker()
{
}
bool CDijkstraWalker::Step()
{
if ( m_pEnd && m_pCurrent &&
m_iCurrentSteps++ < m_iMaxSteps && !m_nodes.empty() )
{
m_pCurrent = *m_nodes.begin();
m_nodes.erase( m_nodes.begin() );... | 17.25974 | 70 | 0.65237 | Gerard097 |
9b59ccb2e9504f811b740ad3e8602d0d6188a825 | 17,964 | cpp | C++ | MTUSpline/MTUSplineData.cpp | GuillaumeVDu/MTUSpline | 13ce7b2e52b820312c29464cb5560bdca446b252 | [
"BSD-3-Clause"
] | 2 | 2019-07-25T18:09:42.000Z | 2019-09-08T16:02:18.000Z | MTUSpline/MTUSplineData.cpp | GuillaumeVDu/MTUSpline | 13ce7b2e52b820312c29464cb5560bdca446b252 | [
"BSD-3-Clause"
] | null | null | null | MTUSpline/MTUSplineData.cpp | GuillaumeVDu/MTUSpline | 13ce7b2e52b820312c29464cb5560bdca446b252 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2015, Massimo Sartori, Monica Reggiani and Guillaume Durandau
// 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 copyrigh... | 27.135952 | 129 | 0.671064 | GuillaumeVDu |
9b5f9afc0bdd486988c4a933a6947159cf4e2279 | 5,315 | cpp | C++ | drivers/AT24Cxx/AT24Cxx.cpp | GXUNiot/mbed | 39634be44c4d5c62883b0177c138952029550b0d | [
"MIT"
] | null | null | null | drivers/AT24Cxx/AT24Cxx.cpp | GXUNiot/mbed | 39634be44c4d5c62883b0177c138952029550b0d | [
"MIT"
] | null | null | null | drivers/AT24Cxx/AT24Cxx.cpp | GXUNiot/mbed | 39634be44c4d5c62883b0177c138952029550b0d | [
"MIT"
] | null | null | null | #include "AT24Cxx.h"
AT24CXX::AT24CXX(I2C *i2c, uint16_t size, uint8_t hardaddr, uint32_t feq)
{
AT24CXX::_i2c = i2c;
uint16_t i;
for(i=512; i>=0x01; i>>=1)
{
if( size == i )
{
break;
}
}
_storageSize = i;
if( _storageSize == 1 )
{
_pageSize = 8;
}
else if( _storag... | 18.078231 | 75 | 0.519473 | GXUNiot |
9b616ec4b4d118f2ff45fd6fd8909f0fee40fde4 | 2,117 | cpp | C++ | Assets/Chunity/Plugins/iOS/chuck_utils.cpp | marek-stoj/Chuckings | fcca01afdc759b8d374c5ab3d31d010c1174af04 | [
"Unlicense"
] | 21 | 2016-02-11T17:28:13.000Z | 2018-03-27T00:42:28.000Z | lib/chuck/chuck_utils.cpp | PaulBatchelor/tiziku | d603fd8de5dbdfdbbfba350ffc9d5f5d6f03ee99 | [
"MIT"
] | 2 | 2016-01-19T21:58:34.000Z | 2016-01-20T03:17:13.000Z | lib/chuck/chuck_utils.cpp | PaulBatchelor/tiziku | d603fd8de5dbdfdbbfba350ffc9d5f5d6f03ee99 | [
"MIT"
] | 5 | 2016-01-15T04:52:36.000Z | 2019-05-07T00:52:23.000Z | /*----------------------------------------------------------------------------
ChucK Concurrent, On-the-fly Audio Programming Language
Compiler and Virtual Machine
Copyright (c) 2004 Ge Wang and Perry R. Cook. All rights reserved.
http://chuck.stanford.edu/
http://chuck.cs.princeton.edu/
This progr... | 27.141026 | 79 | 0.585262 | marek-stoj |
9b6541346a3ffd37f45f0ef5b8b1a1f33977679c | 5,492 | c++ | C++ | audio/audio_test.initial.c++ | pyrocharles/basilio_chat | 5f7a23eb6ab964e6fcc5b6e3334d45a3a769b13c | [
"MIT"
] | null | null | null | audio/audio_test.initial.c++ | pyrocharles/basilio_chat | 5f7a23eb6ab964e6fcc5b6e3334d45a3a769b13c | [
"MIT"
] | null | null | null | audio/audio_test.initial.c++ | pyrocharles/basilio_chat | 5f7a23eb6ab964e6fcc5b6e3334d45a3a769b13c | [
"MIT"
] | null | null | null | // #include "core_audio.h++"
#include "portaudio/portaudio.h"
#include <iostream>
#include <exception>
#include <string>
/**
* General PortAudio exception class, thrown when there's an error initializing
* or terminating the library.
*
* @author Charles Van West
* @version 0.0
*/
class PortAudio_Exception : pub... | 34.759494 | 80 | 0.510197 | pyrocharles |
9b654ca7b697e4cf6a365ea36356a26187875e44 | 6,682 | cpp | C++ | Lib/vc4/DMA/DMA.cpp | Freddan-67/V3DLib | dcefc24a9a399ee1f5d1aa5529f44d9fd2486929 | [
"MIT"
] | 44 | 2021-01-16T14:17:15.000Z | 2022-03-11T19:53:59.000Z | Lib/vc4/DMA/DMA.cpp | RcCreeperTech/V3DLib | 38eb8d55b8276de5cf703d8e13fb9b5f220c49f0 | [
"MIT"
] | 8 | 2021-01-16T17:52:02.000Z | 2021-12-18T22:38:00.000Z | Lib/vc4/DMA/DMA.cpp | RcCreeperTech/V3DLib | 38eb8d55b8276de5cf703d8e13fb9b5f220c49f0 | [
"MIT"
] | 7 | 2021-01-16T14:25:47.000Z | 2022-02-03T16:34:45.000Z | #include "DMA.h"
#include "Support/basics.h"
#include "Support/Helpers.h"
#include "Helpers.h"
namespace V3DLib {
namespace DMA {
using ::operator<<; // C++ weirdness
void Stmt::setupVPMRead(int n, Expr::Ptr addr, bool hor, int stride) {
m_setupVPMRead.numVecs = n;
m_setupVPMRead.stride = stride;
m_setupVPMRe... | 27.385246 | 98 | 0.59144 | Freddan-67 |
9b67a50c4f87f8329edd5270930a0f8f84f55d9b | 5,443 | cpp | C++ | models/memory/CaffDRAM/Bank.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 8 | 2016-01-22T18:28:48.000Z | 2021-05-07T02:27:21.000Z | models/memory/CaffDRAM/Bank.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 3 | 2016-04-15T02:58:58.000Z | 2017-01-19T17:07:34.000Z | models/memory/CaffDRAM/Bank.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 10 | 2015-12-11T04:16:55.000Z | 2019-05-25T20:58:13.000Z | /*
* Bank.cpp
*
* Created on: Jun 14, 2011
* Author: rishirajbheda
*/
#include "Bank.h"
#include "kernel/manifold.h"
using namespace std;
namespace manifold {
namespace caffdram {
Bank::Bank(const Dsettings* dramSetting) {
// TODO Auto-generated constructor stub
this->dramSetting = dramSetting;
th... | 24.299107 | 137 | 0.681058 | Basseuph |
9b69ce4fa6a4aeaff0e8c0f76919d5bb82ff8ba1 | 430 | cc | C++ | google_interview_practice/Angle_Between_Hands_of_a_Clock/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | google_interview_practice/Angle_Between_Hands_of_a_Clock/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | google_interview_practice/Angle_Between_Hands_of_a_Clock/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
double angleClock(int hour, int minutes) {
double minAngle = (double)minutes * 6.0f;
double hourAngle = (double)hour * 30.0f + (double)minutes * 0.5f;
double angle;
if (hourAngle >= 360.0f) hourAngle -= 360.f;
angle = (hourAngle > minAngle) ? (hourAng... | 33.076923 | 89 | 0.588372 | ldy121 |
9b7008e29e28bdfe814c711b660c3d8a7f29f92d | 1,937 | hpp | C++ | em_unet/src/PyGreentea/evaluation/src_cython/zi/zunit/registry.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 10 | 2018-09-13T17:37:22.000Z | 2020-05-08T16:20:42.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/zunit/registry.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 1 | 2018-12-02T14:17:39.000Z | 2018-12-02T20:59:26.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/zunit/registry.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 2 | 2019-03-03T12:06:10.000Z | 2020-04-12T13:23:02.000Z | //
// Copyright (C) 2010 Aleksandar Zlateski <zlateski@mit.edu>
// ----------------------------------------------------------
//
// 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 versio... | 24.518987 | 72 | 0.65049 | VCG |
f927b774e27cde416407c0404a9e3b45c5c5e104 | 1,221 | cpp | C++ | src/main.cpp | mliszcz/tango-fs | 7f9bf2b88e5a76ad9a418ca8662b0cf458d9e678 | [
"MIT"
] | null | null | null | src/main.cpp | mliszcz/tango-fs | 7f9bf2b88e5a76ad9a418ca8662b0cf458d9e678 | [
"MIT"
] | null | null | null | src/main.cpp | mliszcz/tango-fs | 7f9bf2b88e5a76ad9a418ca8662b0cf458d9e678 | [
"MIT"
] | null | null | null |
#define FUSE_USE_VERSION 30
#include <handlers/getattr.hpp>
#include <handlers/readdir.hpp>
#include <handlers/open.hpp>
#include <handlers/read.hpp>
#include <paths.hpp>
#include <tango.hpp>
#include <fuse.h>
#include <utility>
namespace {
const auto handler = paths::makeFuseHandler(tango::createDatabase,
... | 25.4375 | 73 | 0.622441 | mliszcz |
f92fd52099ef73adc1d00cbbe3783752db54732c | 3,061 | hpp | C++ | em_unet/src/PyGreentea/evaluation/src_cython/zi/disjoint_sets/disjoint_sets2.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 10 | 2018-09-13T17:37:22.000Z | 2020-05-08T16:20:42.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/disjoint_sets/disjoint_sets2.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 1 | 2018-12-02T14:17:39.000Z | 2018-12-02T20:59:26.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/disjoint_sets/disjoint_sets2.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 2 | 2019-03-03T12:06:10.000Z | 2020-04-12T13:23:02.000Z | //
// Copyright (C) 2010 Aleksandar Zlateski <zlateski@mit.edu>
// ----------------------------------------------------------
//
// 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 versio... | 19.876623 | 72 | 0.469128 | VCG |
f935da8431f92003a01979a6258194fe2551c085 | 2,262 | hpp | C++ | src/output/output_manager.hpp | savcardamone/tyche- | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | null | null | null | src/output/output_manager.hpp | savcardamone/tyche- | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | 1 | 2018-12-28T13:30:16.000Z | 2018-12-29T10:30:33.000Z | src/output/output_manager.hpp | savcardamone/tyche | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | null | null | null | /**
* @file output_manager.hpp
* @author Salvatore Cardamone
* @brief Multiprocessing-aware output manager class.
*/
#ifndef __TYCHEPLUSPLUS_OUTPUT_MANAGER_HPP
#define __TYCHEPLUSPLUS_OUTPUT_MANAGER_HPP
#include <fstream>
#include "multiprocess/multiprocess_base.hpp"
namespace tycheplusplus {
/**
* @class Outpu... | 29.763158 | 89 | 0.712202 | savcardamone |
f93819ccdcf0c436ddab2aebc30c7168e13181b2 | 19,996 | cpp | C++ | generic/stack1d.cpp | cschreib/speclib | efbe7b0c9c28dddd82916c7fff4813bfe7a9ff31 | [
"MIT"
] | null | null | null | generic/stack1d.cpp | cschreib/speclib | efbe7b0c9c28dddd82916c7fff4813bfe7a9ff31 | [
"MIT"
] | null | null | null | generic/stack1d.cpp | cschreib/speclib | efbe7b0c9c28dddd82916c7fff4813bfe7a9ff31 | [
"MIT"
] | null | null | null | #include <phypp.hpp>
vec1d cure_error(vec1d err, vec1d err_formal) {
vec1u idl = where(err > 0);
if (!idl.empty()) {
err_formal[idl] *= median(err[idl]/err_formal[idl]);
}
// Keep the bootstrap unless it is too small for some reason
idl = where(err < 0.7*err_formal);
err[idl] = err_for... | 38.676983 | 110 | 0.568864 | cschreib |
f9396f7de94831c87f31a4b1b87ba5e528433c6f | 1,031 | cc | C++ | src/isa/toy-isa/inst_var.cc | SeanHeelan/superopt | 9473e4718d491f6cb375a9754c6213ddf5db680c | [
"MIT"
] | 20 | 2021-06-02T14:21:53.000Z | 2022-03-29T09:10:49.000Z | src/isa/toy-isa/inst_var.cc | SeanHeelan/superopt | 9473e4718d491f6cb375a9754c6213ddf5db680c | [
"MIT"
] | 3 | 2021-07-28T16:31:25.000Z | 2021-07-28T18:36:30.000Z | src/isa/toy-isa/inst_var.cc | SeanHeelan/superopt | 9473e4718d491f6cb375a9754c6213ddf5db680c | [
"MIT"
] | 2 | 2021-08-04T09:48:09.000Z | 2022-02-08T05:00:33.000Z | #include <random>
#include <unordered_set>
#include "inst_var.h"
using namespace std;
default_random_engine gen_toy_isa_inst_var;
uniform_real_distribution<double> unidist_toy_isa_inst_var(0.0, 1.0);
void update_ps_by_input(prog_state& ps, const inout_t& input) {
ps._regs[0] = input.reg;
}
void update_output_by_p... | 27.131579 | 74 | 0.685742 | SeanHeelan |
f93a4711fcc0f6eb3b638328a60626658284d278 | 2,139 | cpp | C++ | test/detail/queue.cpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | test/detail/queue.cpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | test/detail/queue.cpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <unet/detail/queue.hpp>
namespace unet {
namespace detail {
TEST(QueueTest, PushPeekAndPop) {
Queue q{2};
auto f1 = Frame::makeStr("a");
q.push(f1);
ASSERT_FALSE(f1);
auto f2 = Frame::makeStr("b");
q.push(f2);
ASSERT_FALSE(f2);
auto f3 = q.peek();
ASSERT_TRUE(f3... | 15.962687 | 50 | 0.597008 | andreimaximov |
f93b45f13226448e0235e846bb8c1a9a6697fd32 | 69,035 | cpp | C++ | tests/exchange.test.cpp | VlinderSoftware/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-16T01:34:06.000Z | 2020-07-16T01:34:06.000Z | tests/exchange.test.cpp | blytkerchan/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-23T02:55:31.000Z | 2020-07-23T02:55:31.000Z | tests/exchange.test.cpp | blytkerchan/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-03T00:06:20.000Z | 2020-07-03T00:06:20.000Z | /* Copyright 2019 Ronald Landheer-Cieslak
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 64.700094 | 155 | 0.556964 | VlinderSoftware |
f93d694d135b74615a2c6078bad826606ab8a22c | 1,644 | cpp | C++ | src/libsnw_lang/parser.cpp | Sojourn/snw | e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f | [
"MIT"
] | null | null | null | src/libsnw_lang/parser.cpp | Sojourn/snw | e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f | [
"MIT"
] | null | null | null | src/libsnw_lang/parser.cpp | Sojourn/snw | e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f | [
"MIT"
] | null | null | null | #include <stdexcept>
#include <iostream>
#include "object_transaction.h"
#include "parser.h"
using namespace snw;
parser::parser(object_heap& heap)
: heap_(heap)
{
}
object_ref parser::parse(const char* str) {
try {
object_transaction txn(&heap_);
snw::parse(str, *this);
txn.commit();... | 20.296296 | 59 | 0.631387 | Sojourn |
f93e75025a86aa917d49e97b3c96905dc7431209 | 1,653 | hpp | C++ | include/ampi/detail/msgunpack_ctx_base.hpp | palebedev/ampi | a7feb7f4b51469fd24ff0fa2c8a9b8592cbf309a | [
"Apache-2.0"
] | null | null | null | include/ampi/detail/msgunpack_ctx_base.hpp | palebedev/ampi | a7feb7f4b51469fd24ff0fa2c8a9b8592cbf309a | [
"Apache-2.0"
] | null | null | null | include/ampi/detail/msgunpack_ctx_base.hpp | palebedev/ampi | a7feb7f4b51469fd24ff0fa2c8a9b8592cbf309a | [
"Apache-2.0"
] | 1 | 2021-03-30T15:49:55.000Z | 2021-03-30T15:49:55.000Z | // Copyright 2021 Pavel A. Lebedev
// Licensed under the Apache License, Version 2.0.
// (See accompanying file LICENSE.txt or copy at
// http://www.apache.org/licenses/LICENSE-2.0)
// SPDX-License-Identifier: Apache-2.0
#ifndef UUID_AAF4E171_A2F9_4892_8578_A9CDFF078116
#define UUID_AAF4E171_A2F9_4892_8578_A9CDFF0781... | 28.5 | 102 | 0.651543 | palebedev |
f93f8f3365ef6cc472606ea073b993e33880b0c2 | 387 | cpp | C++ | level_zero/tools/source/debug/linux/prelim/debug_session_linux_helper.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | level_zero/tools/source/debug/linux/prelim/debug_session_linux_helper.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | level_zero/tools/source/debug/linux/prelim/debug_session_linux_helper.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/tools/source/debug/linux/prelim/debug_session.h"
#include <level_zero/ze_api.h>
namespace L0 {
DebugSession *createDebugSessionHelper(const zet_debug_config_t &config, Device *device, int debugFd) {
return ne... | 22.764706 | 103 | 0.749354 | mattcarter2017 |
f9479c5354fb09b4084cebc47625f422ec63da41 | 925 | hpp | C++ | src/RandomNumberEngine.hpp | Santi-7/Minimum_cut | d0f9f404ab5533d26096163aabe434ad501d8c03 | [
"Apache-2.0"
] | null | null | null | src/RandomNumberEngine.hpp | Santi-7/Minimum_cut | d0f9f404ab5533d26096163aabe434ad501d8c03 | [
"Apache-2.0"
] | null | null | null | src/RandomNumberEngine.hpp | Santi-7/Minimum_cut | d0f9f404ab5533d26096163aabe434ad501d8c03 | [
"Apache-2.0"
] | null | null | null | /** ---------------------------------------------------------------------------
** rng.hpp
** Header file that contains random number generator abstractions.
**
** Author: Miguel Jorge Galindo Ramos, NIA: 679954
** Santiago Gil Begué, NIA: 683482
** --------------------------------------------------------... | 25 | 79 | 0.581622 | Santi-7 |
f95382a4dba726d05d62b0d6799520fa5395f4be | 2,675 | cpp | C++ | cubecode/13种方法/1.sirgedas/SolveCube.cpp | YuYuCong/Color-recognition-of-Rubik-s-Cube | 35d5af5383ed56d38e596983aaeda98540fdb646 | [
"CC0-1.0"
] | 11 | 2018-07-28T03:20:26.000Z | 2022-02-18T07:36:35.000Z | cubecode/13种方法/1.sirgedas/SolveCube.cpp | technicianliu/Color-recognition-of-Rubik-s-Cube | 35d5af5383ed56d38e596983aaeda98540fdb646 | [
"CC0-1.0"
] | null | null | null | cubecode/13种方法/1.sirgedas/SolveCube.cpp | technicianliu/Color-recognition-of-Rubik-s-Cube | 35d5af5383ed56d38e596983aaeda98540fdb646 | [
"CC0-1.0"
] | 9 | 2018-07-28T03:20:29.000Z | 2021-05-09T05:54:30.000Z | #include <string>
#include <iostream>
using namespace std;
#define SH <<
#define PP = -1; ++
#define _F ;)
#define FOR_i for (int i PP i < __LINE__%21 _F
#define FOR_k for (int k PP k <
#define _E );
#define _G ;}
#define _I [i
#define _Q ){
#define FOR_cur_phase ; for (cur_phase PP cur_phase < 4 _F
#define _48_ [48]
#... | 25.970874 | 147 | 0.649346 | YuYuCong |
f95f0bcc0a8dc2f67135c3e6fd067a33a8dfeba8 | 481 | hpp | C++ | gearoenix/system/gx-sys-application.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/system/gx-sys-application.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/system/gx-sys-application.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_SYSTEM_APPLICATION_HPP
#define GEAROENIX_SYSTEM_APPLICATION_HPP
#include "../core/gx-cr-build-configuration.hpp"
#ifdef GX_USE_SDL
#include "sdl/gx-sys-sdl-app.hpp"
#elif defined(GX_USE_GLFW)
#include "glfw/gx-sys-glfw.hpp"
#elif defined(GX_IN_ANDROID)
#include "android/gx-sys-and-app.hpp"
#elif defin... | 30.0625 | 52 | 0.802495 | Hossein-Noroozpour |
f95f7d7531ae20112a1135978273565088d6fc87 | 2,130 | cc | C++ | mediapipe/calculators/util/gesture_to_render_data_calculator.cc | blackhatdwh/MediaPipe_Gesture | 2b4ab4c0ec0452c93c1e9fb8fd49b0fdfcd56385 | [
"Apache-2.0"
] | 1 | 2020-02-07T23:49:02.000Z | 2020-02-07T23:49:02.000Z | mediapipe/calculators/util/gesture_to_render_data_calculator.cc | blackhatdwh/MediaPipe_Gesture | 2b4ab4c0ec0452c93c1e9fb8fd49b0fdfcd56385 | [
"Apache-2.0"
] | null | null | null | mediapipe/calculators/util/gesture_to_render_data_calculator.cc | blackhatdwh/MediaPipe_Gesture | 2b4ab4c0ec0452c93c1e9fb8fd49b0fdfcd56385 | [
"Apache-2.0"
] | 2 | 2020-08-18T03:49:45.000Z | 2022-02-08T05:13:05.000Z | #include "absl/memory/memory.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "mediapipe/framework/calculator_framework.h"
#include "mediapipe/framework/calculator_options.pb.h"
#include "mediapipe/framework/formats/landmark.pb.h"
#include "mediapipe/framework/formats/location_data.pb.h"... | 38.035714 | 88 | 0.749765 | blackhatdwh |
f9671d17f0abbd8eb21f51c56bc4e58f50fe943b | 5,427 | cpp | C++ | notes_tool_tests.cpp | philtherobot/notes_tool | df22ff8bb3e8930c06ac45f37e9cf8270efd7d05 | [
"MIT"
] | null | null | null | notes_tool_tests.cpp | philtherobot/notes_tool | df22ff8bb3e8930c06ac45f37e9cf8270efd7d05 | [
"MIT"
] | null | null | null | notes_tool_tests.cpp | philtherobot/notes_tool | df22ff8bb3e8930c06ac45f37e9cf8270efd7d05 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
TEST(parse_filename, simple)
{
File file(L"./inro desktop The subject.md");
Name fi;
ASSERT_TRUE( parse_filename(file, fi) );
ASSERT_TRUE( fi.sphere );
EXPECT_EQ( *fi.sphere, L"#inro" );
ASSERT_TRUE( fi.project );
EXPECT_EQ( *fi.project, L"#desktop" );
ASSER... | 22.42562 | 84 | 0.624286 | philtherobot |
f97936c86de4e82372892aa95a871616fe2a4d58 | 12,066 | hpp | C++ | Optimization/src/InstanceAnalyser.hpp | AndreaBorghesi/PA-HPC-SIM | 2caac39033b38496c714831f0c6f467be596b770 | [
"Apache-2.0"
] | null | null | null | Optimization/src/InstanceAnalyser.hpp | AndreaBorghesi/PA-HPC-SIM | 2caac39033b38496c714831f0c6f467be596b770 | [
"Apache-2.0"
] | null | null | null | Optimization/src/InstanceAnalyser.hpp | AndreaBorghesi/PA-HPC-SIM | 2caac39033b38496c714831f0c6f467be596b770 | [
"Apache-2.0"
] | null | null | null | #ifndef INSTANCEANALYSER_HPP_
#define INSTANCEANALYSER_HPP_
#include <algorithm>
#include <map>
#include <iomanip>
#include <limits>
#include <Optimizer.hpp>
#include <FixedStartSchedule.hpp>
#include <Rankers.hpp>
#include <NodeReader.hpp>
#include <JobReader.hpp>
#include <JobQueueReader.hpp>
#include <Util.hpp>
... | 30.938462 | 82 | 0.588679 | AndreaBorghesi |
f97a4569577173e7e43007a7d80c5960a6878b6a | 15,224 | cpp | C++ | src/methods/Octane.cpp | anassmeskini/GPH | c3ded30f5cd780a86e8c92d9db6ea89764fcc499 | [
"MIT"
] | 4 | 2020-10-30T14:57:41.000Z | 2021-07-14T09:00:53.000Z | src/methods/Octane.cpp | anassmeskini/GPH | c3ded30f5cd780a86e8c92d9db6ea89764fcc499 | [
"MIT"
] | 2 | 2021-03-23T02:49:31.000Z | 2021-10-09T02:59:09.000Z | src/methods/Octane.cpp | anassmeskini/GPH | c3ded30f5cd780a86e8c92d9db6ea89764fcc499 | [
"MIT"
] | 1 | 2020-10-30T14:58:05.000Z | 2020-10-30T14:58:05.000Z | #include "Octane.h"
#include "core/Common.h"
#include "core/Numerics.h"
#include "io/Message.h"
void
Octane::search(const MIP& mip, const std::vector<double>& lb,
const std::vector<double>& ub, const std::vector<Activity>&,
const LPResult& result, const std::vector<double>&,
... | 28.140481 | 80 | 0.567459 | anassmeskini |
f97ffba7dc2f3c27c0d869a4bc00443d1046018e | 559 | cpp | C++ | src/sample.cpp | NweZinOo/cnf | 6f5774486d8751bf7885d03882a1e39881f041b0 | [
"BSD-3-Clause"
] | null | null | null | src/sample.cpp | NweZinOo/cnf | 6f5774486d8751bf7885d03882a1e39881f041b0 | [
"BSD-3-Clause"
] | null | null | null | src/sample.cpp | NweZinOo/cnf | 6f5774486d8751bf7885d03882a1e39881f041b0 | [
"BSD-3-Clause"
] | 1 | 2016-05-26T21:28:14.000Z | 2016-05-26T21:28:14.000Z | # include <learner.hpp>
# include <tagger.hpp>
using namespace Cnf;
using namespace SemiCnf;
int main(int argc, char **argv)
{
Learner<Cnflearn> learner(*(argv+1), // template
*(argv+2), // corpus
1000000); // poolsize
learner.init();
learner.learn(50,1); // iter=50, L2-regularization
l... | 23.291667 | 53 | 0.626118 | NweZinOo |
f9865d0acceb496fc510592fabad057f222bff5b | 83 | hpp | C++ | mod/meta/type/adam.hpp | kniz/wrd | a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6 | [
"MIT"
] | 1 | 2019-02-02T07:07:32.000Z | 2019-02-02T07:07:32.000Z | mod/meta/type/adam.hpp | kniz/wrd | a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6 | [
"MIT"
] | 25 | 2016-09-23T16:36:19.000Z | 2019-02-12T14:14:32.000Z | mod/meta/type/adam.hpp | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | null | null | null | #pragma once
#include "../common.hpp"
namespace wrd {
class _wout adam {};
}
| 10.375 | 24 | 0.626506 | kniz |
f986cce029dcbbdc56a5717345d6ac186a500717 | 2,928 | cpp | C++ | src/cimple/ref/DZT_String.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | 4 | 2015-12-16T06:43:14.000Z | 2020-01-24T06:05:47.000Z | src/disp/DZT_String.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | null | null | null | src/disp/DZT_String.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | null | null | null | /*
**==============================================================================
**
** Copyright (c) 2003, 2004, 2005, 2006, Michael Brasher, Karl Schopmeyer
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and associated documentation files (the "Software"),
** ... | 22.875 | 80 | 0.567623 | LegalizeAdulthood |
f987731e7645cd3c702cd80e27c6f2fb95e5bcd9 | 733 | hpp | C++ | src/tcc/tcc/parser/skipper.hpp | tobiashienzsch/tcc | 0311a92804fb32baca8b562bb18683e40f4686e2 | [
"MIT"
] | null | null | null | src/tcc/tcc/parser/skipper.hpp | tobiashienzsch/tcc | 0311a92804fb32baca8b562bb18683e40f4686e2 | [
"MIT"
] | null | null | null | src/tcc/tcc/parser/skipper.hpp | tobiashienzsch/tcc | 0311a92804fb32baca8b562bb18683e40f4686e2 | [
"MIT"
] | null | null | null | #if !defined(TCC_PARSER_QI_SKIPPER_HPP)
#define TCC_PARSER_QI_SKIPPER_HPP
#include <boost/spirit/include/qi.hpp>
namespace tcc
{
namespace parser
{
namespace qi = boost::spirit::qi;
namespace ascii = boost::spirit::ascii;
/**
* The skipper grammar
*/
template<typename Iterator>
struct Skipper : qi::grammar<It... | 18.794872 | 48 | 0.55116 | tobiashienzsch |
f98e447df57fd3769427e564a046449743caf1f5 | 646 | cpp | C++ | source/main.cpp | amanb014/NxReader | f7c74b78e3c676cab29da78079d4c2d12c9065a1 | [
"MIT"
] | 3 | 2018-12-14T17:36:21.000Z | 2020-11-06T19:29:49.000Z | source/main.cpp | amanb014/NxReader | f7c74b78e3c676cab29da78079d4c2d12c9065a1 | [
"MIT"
] | null | null | null | source/main.cpp | amanb014/NxReader | f7c74b78e3c676cab29da78079d4c2d12c9065a1 | [
"MIT"
] | null | null | null | #include <switch.h>
#include <SDL2/SDL.h>
#include "main.hpp"
#include "App.hpp"
#include <string.h>
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/errno.h>
#include <unistd.h>
#include <switch.h>
int main() {
consoleInit(NULL); // TODO remove in final releases
socketInitializeDef... | 17 | 52 | 0.676471 | amanb014 |
f98e8141cdc07d3fc590b592332c8c55cb1fbc7e | 507 | cpp | C++ | showcase/source/Renderer/Shader.cpp | ravi688/VulkanRenderer | 2e4d15cd53a7fef49fc2e6fe27643746ca1245da | [
"MIT"
] | null | null | null | showcase/source/Renderer/Shader.cpp | ravi688/VulkanRenderer | 2e4d15cd53a7fef49fc2e6fe27643746ca1245da | [
"MIT"
] | 3 | 2022-01-28T23:19:13.000Z | 2022-02-02T07:51:30.000Z | showcase/source/Renderer/Shader.cpp | ravi688/VulkanRenderer | 2e4d15cd53a7fef49fc2e6fe27643746ca1245da | [
"MIT"
] | null | null | null |
#include <Renderer/Shader.hpp>
#include <Renderer/Renderer.hpp>
namespace V3D
{
SHOWCASE_API Shader::Shader(Renderer& renderer, const std::string& filePath)
{
handle = shader_load(renderer.handle, filePath.c_str());
}
SHOWCASE_API void Shader::destroy() const
{
shader_destroy(handle);
}
SHOWCASE_API void... | 18.107143 | 77 | 0.741617 | ravi688 |
f98f057143f80a2437962b317892546cad68c7c6 | 4,438 | inl | C++ | legion/engine/core/containers/shared_data_view.inl | Legion-Engine/Legion-Engine | a2b898e1cc763b82953c6990dde0b379491a30d0 | [
"MIT"
] | 258 | 2020-10-22T07:09:57.000Z | 2021-09-09T05:47:09.000Z | legion/engine/core/containers/shared_data_view.inl | LeonBrands/Legion-Engine | 40aa1f4a8c59eb0824de1cdda8e17d8dba7bed7c | [
"MIT"
] | 51 | 2020-11-17T13:02:10.000Z | 2021-09-07T18:19:39.000Z | legion/engine/core/containers/shared_data_view.inl | Rythe-Interactive/Rythe-Engine.rythe-legacy | c119c494524b069a73100b12dc3d8b898347830d | [
"MIT"
] | 13 | 2020-12-08T08:06:48.000Z | 2021-09-09T05:47:19.000Z | #include <core/containers/shared_data_view.hpp>
#pragma once
namespace legion::core
{
template<typename DataType>
inline L_ALWAYS_INLINE shared_data_view<DataType>::shared_data_view(std::nullptr_t) noexcept
: shared_data_view(nullptr, 0, 0, false) {}
template<typename DataType>
inline shared_d... | 31.7 | 126 | 0.687247 | Legion-Engine |
f9921dd157206a112f4fecbcb1764952090856ba | 1,427 | hpp | C++ | src/GUI/ButtonsList/ButtonsList.hpp | YaroshenkoYaroslav/FVNEngine | a242e7a289e50819c1edda4b6fe3cd312cf7667d | [
"MIT"
] | null | null | null | src/GUI/ButtonsList/ButtonsList.hpp | YaroshenkoYaroslav/FVNEngine | a242e7a289e50819c1edda4b6fe3cd312cf7667d | [
"MIT"
] | null | null | null | src/GUI/ButtonsList/ButtonsList.hpp | YaroshenkoYaroslav/FVNEngine | a242e7a289e50819c1edda4b6fe3cd312cf7667d | [
"MIT"
] | null | null | null | #ifndef SRC_GUI_BUTTONS_LIST_BUTTONS_LIST
#define SRC_GUI_BUTTONS_LIST_BUTTONS_LIST
#include <vector>
#include "Button.hpp"
namespace FVNEngine {
class ButtonsList {
public:
ButtonsList();
int UpdateSfmlEvents();
void Update();
void Draw();
//Controller
void AddButton();
void AddButtons(size_t coun... | 23.393443 | 88 | 0.755431 | YaroshenkoYaroslav |
f992b42725c8d64f9234881a0679d32a390e3ee2 | 217 | cpp | C++ | math/extgcd.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | 1 | 2020-11-06T03:36:03.000Z | 2020-11-06T03:36:03.000Z | math/extgcd.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | null | null | null | math/extgcd.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | 2 | 2020-11-06T03:39:10.000Z | 2021-04-04T04:38:30.000Z | template<typename T>
T extgcd(T a, T b, T &x ,T &y){
for (T u = y = 1, v = x = 0; a; ) {
ll q = b/a;
swap(x -= q*u, u);
swap(y -= q*v, v);
swap(b -= q*a, a);
}
return b;
}
| 19.727273 | 39 | 0.364055 | beet-aizu |
f99db7d7abd2a867d738d1fc5fff577b2ad98727 | 2,618 | cpp | C++ | src/ui/widgets/Label.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 65 | 2018-06-03T23:09:46.000Z | 2021-07-22T22:03:34.000Z | src/ui/widgets/Label.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 8 | 2018-06-20T17:21:30.000Z | 2020-06-30T01:06:26.000Z | src/ui/widgets/Label.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/Label.h"
#include "Vorb/ui/UIRenderer.h"
#include "Vorb/ui/widgets/Viewport.h"
vui::Label::Label() :
TextWidget(),
m_labelColor(color::Transparent),
m_labelHoverColor(color::Transparent),
m_labelTexture(0),
m_labelHoverTexture(0),
m_textColor(c... | 24.933333 | 88 | 0.682964 | ChillstepCoder |
f9a61aa1813970e703095f5b79b442157b9120a8 | 1,624 | cpp | C++ | src/app/cmds/loop.cpp | glfernando/sc | 55972c296b8a873fed29d4ec6cfdd565da079047 | [
"BSD-3-Clause"
] | 1 | 2021-01-18T03:43:37.000Z | 2021-01-18T03:43:37.000Z | src/app/cmds/loop.cpp | glfernando/sc | 55972c296b8a873fed29d4ec6cfdd565da079047 | [
"BSD-3-Clause"
] | null | null | null | src/app/cmds/loop.cpp | glfernando/sc | 55972c296b8a873fed29d4ec6cfdd565da079047 | [
"BSD-3-Clause"
] | null | null | null | /*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2021 Fernando Lugo <lugo.fernando@gmail.com>
*/
/*
* Command to sleep for speficied time
*/
#include <app/shell.h>
#include <errcodes.h>
#include <string.h>
import lib.fmt;
import std.string;
import std.vector;
using lib::fmt::println;
using std::st... | 20.049383 | 99 | 0.552956 | glfernando |
e2fe7ce15de352af154c53b46e8e14ca789ce17f | 453 | cpp | C++ | competitive_programming/programming_contests/uri/sum_of_consecutive_odd_numbers_3.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/uri/sum_of_consecutive_odd_numbers_3.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/uri/sum_of_consecutive_odd_numbers_3.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | // https://www.urionlinejudge.com.br/judge/en/problems/view/1158
#include <iostream>
using namespace std;
int main() {
int n, n1, n2, counter=0, total=0;
cin >> n;
while (n--) {
cin >> n1 >> n2;
while (true) {
if (n1 % 2 != 0) {
total += n1;
counter++;
}
if (count... | 12.583333 | 64 | 0.461369 | LeandroTk |
3900f714b37a4fe65b4a499f6da666044f565f37 | 47,373 | cpp | C++ | src/02-opengl/opengl.cpp | randomgraphics/random-graphics | 80232edd4f9c66ca2b918ba69a8f94bddd328dfc | [
"BSL-1.0",
"BSD-2-Clause"
] | null | null | null | src/02-opengl/opengl.cpp | randomgraphics/random-graphics | 80232edd4f9c66ca2b918ba69a8f94bddd328dfc | [
"BSL-1.0",
"BSD-2-Clause"
] | null | null | null | src/02-opengl/opengl.cpp | randomgraphics/random-graphics | 80232edd4f9c66ca2b918ba69a8f94bddd328dfc | [
"BSL-1.0",
"BSD-2-Clause"
] | null | null | null | #ifndef RG_INTERNAL
#define RG_INTERNAL
#endif
#include "rg/opengl.h"
#include <sstream>
#include <fstream>
#include <algorithm>
#include <atomic>
#include <stack>
#include <iomanip>
#include <cmath>
#if RG_HAS_EGL
#include <glad/glad_egl.h>
#include <glad/glad_glx.h>
#endif
using namespace rg;
using namespace rg::op... | 34.578832 | 170 | 0.542756 | randomgraphics |
3905da1532e747288a197b30583b11b0e1db2165 | 1,539 | cpp | C++ | Source/Riff/Riff_Chunks_AVI__JUNK.cpp | ablwr/AVIMetaEdit | 72cdf628fa90ce36e17c8e8f66247e74567b41aa | [
"CC0-1.0"
] | 9 | 2017-05-30T19:21:11.000Z | 2020-03-21T03:41:08.000Z | Source/Riff/Riff_Chunks_AVI__JUNK.cpp | fooloomanzoo/AVIMetaEdit | 2839eca2075ae071a59db9e7b8e0daf7287c8a2f | [
"CC0-1.0"
] | 1 | 2020-04-08T21:43:29.000Z | 2020-04-08T21:43:29.000Z | Source/Riff/Riff_Chunks_AVI__JUNK.cpp | fooloomanzoo/AVIMetaEdit | 2839eca2075ae071a59db9e7b8e0daf7287c8a2f | [
"CC0-1.0"
] | 11 | 2015-03-23T14:36:06.000Z | 2021-01-11T12:30:12.000Z | // AVI MetaEdit Riff - RIFF stuff for AVI MetaEdit
//
// This code was created in 2010 for the Library of Congress and the
// other federal government agencies participating in the Federal Agencies
// Digitization Guidelines Initiative and it is in the public domain.
//
//+++++++++++++++++++++++++++++++++++++++++... | 36.642857 | 78 | 0.232619 | ablwr |
39174a4318f008611b5eb2dd7685516b807f1b09 | 1,645 | cpp | C++ | src/flapGame/flapGame/Sweat.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 239 | 2020-11-26T12:53:51.000Z | 2022-03-24T01:02:49.000Z | src/flapGame/flapGame/Sweat.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 6 | 2020-11-27T04:00:44.000Z | 2021-07-07T03:02:57.000Z | src/flapGame/flapGame/Sweat.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 24 | 2020-11-26T22:59:27.000Z | 2022-02-06T04:02:50.000Z | #include <flapGame/Core.h>
#include <flapGame/Sweat.h>
#include <flapGame/DrawContext.h>
namespace flap {
bool Sweat::update(float dt) {
this->time = min(2.f, this->time + dt * 2.f);
return this->time < 1.4f;
};
void Sweat::addInstances(const Float4x4& birdToViewport,
Array<StarShade... | 39.166667 | 106 | 0.516717 | KnyazQasan |
391c341b71ea84b78aa6619b5517f442cd3ec51b | 158 | cpp | C++ | tests/gtest/dummy.cpp | vtta/cpp-bootstrap | 43094ed73d323e2165bbdd36e87440e70bdcfb15 | [
"WTFPL"
] | 1 | 2020-07-29T14:28:00.000Z | 2020-07-29T14:28:00.000Z | tests/gtest/dummy.cpp | vtta/cpp-bootstrap | 43094ed73d323e2165bbdd36e87440e70bdcfb15 | [
"WTFPL"
] | null | null | null | tests/gtest/dummy.cpp | vtta/cpp-bootstrap | 43094ed73d323e2165bbdd36e87440e70bdcfb15 | [
"WTFPL"
] | null | null | null | #include "dummy.hpp"
#include "gtest/gtest.h"
TEST(DummyTests, SampleTest) {
for (auto i = 0; i < 10; ++i) {
EXPECT_EQ(dummy(i), i + i);
}
} | 17.555556 | 35 | 0.550633 | vtta |
3923070727ad24e35fcda42f48c4b56318f70938 | 612 | cpp | C++ | computergraphics/exp1.cpp | samarth70/Computer-Graphics-Course | 1b90d953465b537870bb70a33e654b7f72004381 | [
"Apache-2.0"
] | null | null | null | computergraphics/exp1.cpp | samarth70/Computer-Graphics-Course | 1b90d953465b537870bb70a33e654b7f72004381 | [
"Apache-2.0"
] | null | null | null | computergraphics/exp1.cpp | samarth70/Computer-Graphics-Course | 1b90d953465b537870bb70a33e654b7f72004381 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
#include<graphics.h>
void wait_for_char()
{
//Wait for a key press
int in = 0;
while (in == 0) {
in = getchar();
}
}
int main()
{
int gd = DETECT, gm;
int left = 100, right = 200, top ... | 17.485714 | 74 | 0.542484 | samarth70 |
3923f378dae4aaf75bf5b1d44104585773357a80 | 2,825 | hpp | C++ | src/AWEngine/Packet/ToServer/Login/Init.hpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | src/AWEngine/Packet/ToServer/Login/Init.hpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | src/AWEngine/Packet/ToServer/Login/Init.hpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | #pragma once
#include <chrono>
#include <AWEngine/Packet/IPacket.hpp>
namespace AWEngine::Packet::ToServer::Login
{
/// Initial packet send by client after the connection is created.
/// If other packet is sent or no packet is sent in a short period of time (depends on server), server should terminate the co... | 34.45122 | 156 | 0.581593 | graymadness |
392833cf1592dc6636516baa78069993bbc4f2c8 | 1,941 | cc | C++ | absl/strings/internal/string_constant_test.cc | AlexOrion1/abseil-cpp | 99a3ea575bc98cfcd9057d7acf16c7831375cecc | [
"Apache-2.0"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | absl/strings/internal/string_constant_test.cc | iWYZ-666/abseil-cpp | aad2c8a3966424bbaa2f26027d104d17f9c1c1ae | [
"Apache-2.0"
] | 860 | 2017-09-26T03:38:59.000Z | 2022-03-31T18:28:28.000Z | absl/strings/internal/string_constant_test.cc | iWYZ-666/abseil-cpp | aad2c8a3966424bbaa2f26027d104d17f9c1c1ae | [
"Apache-2.0"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 31.819672 | 75 | 0.736218 | AlexOrion1 |
392bbb4665fa36f9dbc5399984082518b8c0801c | 32,051 | cpp | C++ | Extern/JUCE/extras/Introjucer/Source/Project/jucer_Project.cpp | vinniefalco/SimpleDJ | 30cf1929eaaf0906a1056a33378e8b330062c691 | [
"MIT"
] | 27 | 2015-05-07T02:10:39.000Z | 2021-06-22T14:52:50.000Z | Extern/JUCE/extras/Introjucer/Source/Project/jucer_Project.cpp | JoseDiazRohena/SimpleDJ | 30cf1929eaaf0906a1056a33378e8b330062c691 | [
"MIT"
] | null | null | null | Extern/JUCE/extras/Introjucer/Source/Project/jucer_Project.cpp | JoseDiazRohena/SimpleDJ | 30cf1929eaaf0906a1056a33378e8b330062c691 | [
"MIT"
] | 14 | 2015-09-12T12:00:22.000Z | 2022-03-08T22:24:24.000Z | /*
==============================================================================
This file is part of the JUCE library - "Jules' Utility Class Extensions"
Copyright 2004-11 by Raw Material Software Ltd.
------------------------------------------------------------------------------
JUCE can be r... | 32.407482 | 218 | 0.615145 | vinniefalco |
39457244a39358cc7495ecb0cd23528b98ba93c3 | 353 | cpp | C++ | CHEFDETE.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | CHEFDETE.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | CHEFDETE.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
unordered_set<int> st;
for (int i = 0; i < n; ++i)
{
int tmp;
cin>>tmp;
st.insert(tmp);
}
if (n==1)
{
printf("0\n");
return 0;
}
for (int i = 1; i <= n; ++i)
{
if (st.find(i)==st.end())
{
printf("... | 13.074074 | 30 | 0.450425 | trehanarsh |
3945ce9ea4197b4f904a27cf4c946b204bcb92c6 | 6,641 | cpp | C++ | src/graphics/Animation.cpp | MicahMartin/asdf | d430777603a6906b7117e422885c949b539865cf | [
"MIT"
] | null | null | null | src/graphics/Animation.cpp | MicahMartin/asdf | d430777603a6906b7117e422885c949b539865cf | [
"MIT"
] | null | null | null | src/graphics/Animation.cpp | MicahMartin/asdf | d430777603a6906b7117e422885c949b539865cf | [
"MIT"
] | null | null | null | #include "graphics/Animation.h"
#include <fstream>
Animation::Animation(){
currentAnimElemIndex = 0;
currentAnimElemTimePassed = 0;
animationTime = 0;
animationTimePassed = 0;
animFrame = 0;
}
Animation::~Animation(){ }
AnimationStateObj* Animation::saveState(){
animObj.animFrame = animFrame;
animObj... | 29.255507 | 150 | 0.655624 | MicahMartin |
3945fa1d2b3b7684190c31d8b0f27fede76a3d95 | 1,531 | hh | C++ | perl/inc/com/centreon/connector/perl/pipe_handle.hh | centreon-lab/centreon-connectors | 3e80bea5c5d999bbce0fcb33b819ddc1cab4d917 | [
"Apache-2.0"
] | 8 | 2020-07-26T09:12:02.000Z | 2022-03-30T17:24:29.000Z | perl/inc/com/centreon/connector/perl/pipe_handle.hh | centreon-lab/centreon-connectors | 3e80bea5c5d999bbce0fcb33b819ddc1cab4d917 | [
"Apache-2.0"
] | 47 | 2020-06-18T12:11:37.000Z | 2022-03-16T10:28:56.000Z | perl/inc/com/centreon/connector/perl/pipe_handle.hh | centreon-lab/centreon-connectors | 3e80bea5c5d999bbce0fcb33b819ddc1cab4d917 | [
"Apache-2.0"
] | 6 | 2016-02-05T15:12:03.000Z | 2021-09-02T19:40:35.000Z | /*
** Copyright 2012-2014 Centreon
**
** 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 t... | 28.886792 | 75 | 0.738733 | centreon-lab |
394af68a0a7eac6e9dd3d4783e1b85b66eef4c8b | 1,167 | cpp | C++ | src/DlgRotateSlider.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | 1 | 2022-03-31T02:28:18.000Z | 2022-03-31T02:28:18.000Z | src/DlgRotateSlider.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | null | null | null | src/DlgRotateSlider.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | null | null | null | /**
*
* @license MIT
*
* @copyright: 2022 LinJi
*
* @technical support: www.svgsvg.cn
*
* @email: 93681992@qq.com
*
* @module: QtSVGEditor
*
* 版权申明:
*
* 本源码开源基于MIT协议。
*
* 该软件及其相关文档对所有人免费,可以任意处置,包括使用,复制,修改,合并,发表,分发,再授权,或者销售。
*
* 唯一的限制是需要保留我们的许可申明。
*
*/
#include "DlgRotateSlider.h"
#include <QLineEdit>
CDlgRotateSlide... | 17.953846 | 92 | 0.71551 | SVGEditors |
394f37c0ff51298c401fb267a2c9bcdbd3d36792 | 1,988 | cc | C++ | gazebo/physics/roki/RokiPhysics_TEST.cc | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/physics/roki/RokiPhysics_TEST.cc | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/physics/roki/RokiPhysics_TEST.cc | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include "gazebo/physics/physics.hh"
#include "gazebo/physics/PhysicsEngine.hh"
#include "gazebo/physics/roki/RokiPhysics.hh"
#include "gazebo/test/ServerFixture.hh"
using namespace gazebo;
using namespace physics;
class RokiPhysics_TEST : public ServerFixture
{
public: void PhysicsMsgPara... | 26.157895 | 67 | 0.731388 | nyxrobotics |
39538a3c3b852ad8cedabbfe89d16c5178be0e3f | 1,375 | cpp | C++ | Atropos/source/renderer/resource/CTexture.cpp | redagito/Atropos | eaf926d5826fd5d5d38a7f8e6aceda64808ba27d | [
"MIT"
] | null | null | null | Atropos/source/renderer/resource/CTexture.cpp | redagito/Atropos | eaf926d5826fd5d5d38a7f8e6aceda64808ba27d | [
"MIT"
] | null | null | null | Atropos/source/renderer/resource/CTexture.cpp | redagito/Atropos | eaf926d5826fd5d5d38a7f8e6aceda64808ba27d | [
"MIT"
] | null | null | null | #include "CTexture.h"
#include "debug/Log.h"
#include "io/TgaLoader.h"
#include <stdexcept>
#include <fstream>
#include <vector>
CTexture::CTexture()
:
d_mipMapLevel(0),
d_texId(0),
d_height(0),
d_width(0)
{
// Create texture id
glGenTextures(1, &d_texId);
}
bool CTexture::init(const CImage& image)
{
// Bi... | 19.366197 | 125 | 0.751273 | redagito |
39583c8c5c1308a92a82591c11eb116d35baf125 | 257 | hpp | C++ | library/ATF/LPPARAMDATA.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/LPPARAMDATA.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/LPPARAMDATA.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <tagPARAMDATA.hpp>
START_ATF_NAMESPACE
typedef tagPARAMDATA *LPPARAMDATA;
END_ATF_NAMESPACE
| 23.363636 | 108 | 0.789883 | lemkova |
395bf1dbbed76561675905b89e2b94b195078e3c | 18,518 | cpp | C++ | libstm/algs/swissht.cpp | riclas/rstm | a72c861c1b68f5fd516b2293ebdc58c2b62849b4 | [
"BSD-3-Clause"
] | null | null | null | libstm/algs/swissht.cpp | riclas/rstm | a72c861c1b68f5fd516b2293ebdc58c2b62849b4 | [
"BSD-3-Clause"
] | null | null | null | libstm/algs/swissht.cpp | riclas/rstm | a72c861c1b68f5fd516b2293ebdc58c2b62849b4 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) 2011
* University of Rochester Department of Computer Science
* and
* Lehigh University Department of Computer Science and Engineering
*
* License: Modified BSD
* Please see the file LICENSE.RSTM for licensing information
*/
#include "../profiling.hpp"
#include "algs.hpp"
#in... | 31.280405 | 146 | 0.613403 | riclas |
39666554e538cb91e9d7b586d8af803415c9e241 | 2,240 | cpp | C++ | Core/VideoFrame.cpp | st0ne77/balsampear | 0740ad229187d8c68c83a9ef34a6df80774e817b | [
"BSD-3-Clause"
] | 6 | 2019-07-22T15:37:12.000Z | 2019-12-09T03:49:17.000Z | Core/VideoFrame.cpp | st0ne77/balsampear | 0740ad229187d8c68c83a9ef34a6df80774e817b | [
"BSD-3-Clause"
] | null | null | null | Core/VideoFrame.cpp | st0ne77/balsampear | 0740ad229187d8c68c83a9ef34a6df80774e817b | [
"BSD-3-Clause"
] | null | null | null | #include "VideoFrame.h"
extern "C"
{
#include "libavutil/frame.h"
}
namespace balsampear
{
VideoFrame::VideoFrame()
:Frame(),
width_(0),
height_(0)
{
}
VideoFrame::VideoFrame(AVFrame* avframe)
:VideoFrame()
{
if (avframe)
{
width_ = avframe->width;
height_ = avframe->height;
fmt_ = Video... | 18.983051 | 64 | 0.675893 | st0ne77 |
3969e4ad57cd7679297bbc5cce21695d972e7490 | 1,164 | cpp | C++ | AtCoder/ABC073/abc073D.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | 1 | 2020-05-24T02:27:05.000Z | 2020-05-24T02:27:05.000Z | AtCoder/ABC073/abc073D.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | null | null | null | AtCoder/ABC073/abc073D.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <vector>
#include <algorithm>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; ++i)
int main() {
int N; // 200
int M; // N * (N - 1) / 2
int R; // min(8, N)
scanf("%d %d %d", &N, &M, &R);
vector<int> r;
REP(i, R) {
int ri = 0;
scanf("%... | 19.081967 | 50 | 0.356529 | t-mochizuki |
3969ee9adabe298632095808d5468875063dd0a2 | 1,231 | cpp | C++ | Projects/bouncesim/Shape.cpp | ZetaFuntime/MenuEditor | 4953cb675fc99047c186e3147402732a1dd955ce | [
"MIT"
] | null | null | null | Projects/bouncesim/Shape.cpp | ZetaFuntime/MenuEditor | 4953cb675fc99047c186e3147402732a1dd955ce | [
"MIT"
] | null | null | null | Projects/bouncesim/Shape.cpp | ZetaFuntime/MenuEditor | 4953cb675fc99047c186e3147402732a1dd955ce | [
"MIT"
] | null | null | null | #include "Shape.h"
#include <Texture.h>
#include "SpriteNode.h"
#include "Input.h"
Shape::Shape()
{
//Put the textures here
m_angryTex = new aie::Texture("./textures/angery.png");
//m_turretTexture = new aie::Texture("./sceneGraph/textures/barrelGreen.png");
//m_turret = new SpriteNode(m_turretTexture);
//m_turr... | 19.854839 | 79 | 0.711617 | ZetaFuntime |
396e87583ecf14610b1b0caf0587d4cd566840d3 | 4,976 | cc | C++ | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/DeleteCustomizations.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/DeleteCustomizations.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/DeleteCustomizations.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1991-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/DeleteCustomizations.cc,v 1.6 1992/09/08 16:40:43 lewis Exp $
*
* Description:
*
* To Do:
*
* $Log: DeleteCustomizations.cc,v $
* Revision 1.6 1992/09/08 16:40:43 lewis
* Renamed NULL -> Nil.
*
* Re... | 25.649485 | 128 | 0.7291 | SophistSolutions |
397796bbf49125430b647a8a05314d62ee8fdb4e | 370,346 | cc | C++ | bindings/CPP-Kramer/source/PrimitivesClasses.cc | QualityInformationFramework/qif-community | d1ee5fbe6c126ef7f25ab5f8653b35d7daa4c0b4 | [
"BSL-1.0"
] | 23 | 2017-10-26T22:51:59.000Z | 2022-01-12T04:05:58.000Z | bindings/CPP-Kramer/source/PrimitivesClasses.cc | QualityInformationFramework/qif-community | d1ee5fbe6c126ef7f25ab5f8653b35d7daa4c0b4 | [
"BSL-1.0"
] | 11 | 2018-03-23T08:49:44.000Z | 2022-02-03T20:50:34.000Z | bindings/CPP-Kramer/source/PrimitivesClasses.cc | QualityInformationFramework/qif-community | d1ee5fbe6c126ef7f25ab5f8653b35d7daa4c0b4 | [
"BSL-1.0"
] | 15 | 2017-09-25T12:10:20.000Z | 2021-05-17T10:01:13.000Z | /* ***************************************************************** */
#include <stdio.h> // for printf, etc.
#include <string.h> // for strdup
#include <stdlib.h> // for exit
#include <list>
#include <boost/regex.hpp>
#include <xmlSchemaInstance.hh>
#include "PrimitivesClasses.hh"
... | 24.58647 | 143 | 0.574255 | QualityInformationFramework |
3978150b5fc9891bcc517b90c1f00949ef9b8222 | 2,483 | cpp | C++ | Core/Source/fbxIterator.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | 17 | 2018-03-29T15:24:40.000Z | 2022-01-10T05:01:09.000Z | Core/Source/fbxIterator.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | null | null | null | Core/Source/fbxIterator.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | 3 | 2018-04-07T06:02:05.000Z | 2019-01-21T00:37:18.000Z | // Copyright 2018 E*D Films. All Rights Reserved.
/**
* fbxIterator.h
*
* Fbx implementation of the IteratorBase class
*
* @author dotBunny <hello@dotbunny.com>
* @version 1
* @since 1.0.0
*/
#include "fbxIterator.h"
#include "fbxExporter.h"
namespace SceneTrackFbx
{
FbxExporterT* Iterator::sExporter ... | 23.205607 | 79 | 0.702376 | EDFilms |
397d4732a62f69b1726d2c8280a6189e7bbec931 | 110 | cpp | C++ | Pbinfo/Lazi.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/Lazi.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/Lazi.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <iostream>
using namespace std;
int main(){
int l,h;
cin>>l>>h;
cout<<h/l;
return 0;
} | 10 | 20 | 0.563636 | Al3x76 |
397fb9724af1c3e1062d71ef9ca3c5b2af95b51b | 4,099 | cxx | C++ | xp_comm_proj/examfld/examfld.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 3 | 2020-08-03T08:52:20.000Z | 2021-04-10T11:55:49.000Z | xp_comm_proj/examfld/examfld.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | null | null | null | xp_comm_proj/examfld/examfld.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 1 | 2021-06-08T18:16:45.000Z | 2021-06-08T18:16:45.000Z |
/*
Copyright / Disclaimer :
This software/documentation was produced as part of the INDEX project
(Intelligent Data Extraction) which is funded under contract ESPRIT EP22745 of
the European Community. For further details see
http://www.man.ac.uk/MVC/research/INDEX/Public/.
Copyright (c) June 1998, Man... | 25.61875 | 84 | 0.570627 | avs |
302d47f8b882aa6d4cc8fbbfc1044859ba87532e | 820 | cpp | C++ | cpp/11448.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 9 | 2021-01-15T13:36:39.000Z | 2022-02-23T03:44:46.000Z | cpp/11448.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 1 | 2021-07-31T17:11:26.000Z | 2021-08-02T01:01:03.000Z | cpp/11448.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
using pii = pair<int, int>;
int main() {
fastio;
int N; cin >> N;
while (N--) {
int n, cnt{}; cin >> n;
vector<string> v(n), visited(n, string(n, 0));
for (int i = 0; i < n; i++) cin >> v[i];
queue<pii> Q;
for (in... | 27.333333 | 59 | 0.462195 | jinhan814 |
303071f0b70917d0dd647e321d33687596bf2613 | 12,786 | cpp | C++ | Daniel2.Encoder.FileReadMT/CEncoderTest.cpp | lewk2/Cinecoder.Samples | 74f614a2a8b6a9fef818d4acedd9565637a68c4f | [
"Apache-2.0"
] | 1 | 2019-03-14T00:56:19.000Z | 2019-03-14T00:56:19.000Z | Daniel2.Encoder.FileReadMT/CEncoderTest.cpp | VitaliiGitHub/Cinecoder.Samples | 74f614a2a8b6a9fef818d4acedd9565637a68c4f | [
"Apache-2.0"
] | null | null | null | Daniel2.Encoder.FileReadMT/CEncoderTest.cpp | VitaliiGitHub/Cinecoder.Samples | 74f614a2a8b6a9fef818d4acedd9565637a68c4f | [
"Apache-2.0"
] | 1 | 2019-02-19T16:48:04.000Z | 2019-02-19T16:48:04.000Z | #include "stdafx.h"
#include "CEncoderTest.h"
//---------------------------------------------------------------
CEncoderTest::CEncoderTest()
//---------------------------------------------------------------
{
m_bRunning = FALSE;
m_NumActiveThreads = 0;
}
//----------------------------------------------------------... | 29.665893 | 199 | 0.623807 | lewk2 |
30347a858cf9beff30348cf559c722da0504d627 | 8,479 | cpp | C++ | Source/Geometry/Mesh/imstkPointSet.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | 2 | 2020-08-14T07:21:30.000Z | 2021-08-30T09:39:09.000Z | Source/Geometry/Mesh/imstkPointSet.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | null | null | null | Source/Geometry/Mesh/imstkPointSet.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | 1 | 2020-08-14T07:00:31.000Z | 2020-08-14T07:00:31.000Z | /*=========================================================================
Library: iMSTK
Copyright (c) Kitware, Inc. & Center for Modeling, Simulation,
& Imaging in Medicine, Rensselaer Polytechnic Institute.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file e... | 26.41433 | 109 | 0.654912 | quantingxie |
303679c53ccd3d6d0603152e985f42ecde9bb5f4 | 410 | cpp | C++ | number/test/prime_factorization.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 20 | 2021-06-21T00:18:54.000Z | 2022-03-17T17:45:44.000Z | number/test/prime_factorization.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 56 | 2021-06-03T14:42:13.000Z | 2022-03-26T14:15:30.000Z | number/test/prime_factorization.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 3 | 2019-12-11T06:45:45.000Z | 2020-09-07T13:45:32.000Z | #include "../sieve.hpp"
#include <iostream>
#define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=NTL_1_A"
using namespace std;
int main() {
Sieve sieve(1 << 15);
int N;
cin >> N;
map<long long int, int> factors = sieve.factorize<long long>(N);
cout << N << ':';
for (auto p ... | 24.117647 | 82 | 0.570732 | ankit6776 |
303792ed5ded8936fa35b2c947bb01f3e2978c1c | 2,537 | cpp | C++ | Info/Info/EventNonPlayerItemList/EventNonPlayerItemList.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | Info/Info/EventNonPlayerItemList/EventNonPlayerItemList.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | Info/Info/EventNonPlayerItemList/EventNonPlayerItemList.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | #pragma once
#include "EventNonPlayerItemList.h"
namespace Lunia {
namespace XRated {
namespace Database {
namespace Info {
void NpcDropEventItems::Serialize(Serializer::IStreamWriter& out) const
{
out.Begin(L"XRated::Database::Info::NpcDropEventItems");
out.Write(L"NpcItems", NpcItems);
ou... | 27.879121 | 166 | 0.612534 | Teles1 |
303a1082493a98e9a225b4b1edd280e2b13e4876 | 77,673 | cpp | C++ | src/networking.cpp | shaishasag/redispp | a02abc5809cac2c7b1037a9775d6fd2d1ccbc932 | [
"BSD-3-Clause"
] | 1 | 2018-01-12T12:31:34.000Z | 2018-01-12T12:31:34.000Z | src/networking.cpp | shaishasag/redispp | a02abc5809cac2c7b1037a9775d6fd2d1ccbc932 | [
"BSD-3-Clause"
] | null | null | null | src/networking.cpp | shaishasag/redispp | a02abc5809cac2c7b1037a9775d6fd2d1ccbc932 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* 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 co... | 37.79708 | 266 | 0.620357 | shaishasag |
304094067961de4e65ca6ff7ce353748b9da1303 | 4,556 | cpp | C++ | main.cpp | dcblack/systemc-main | 96d6d9e829bf7841e30e40c0bdb282291f0b1ddc | [
"Apache-2.0"
] | null | null | null | main.cpp | dcblack/systemc-main | 96d6d9e829bf7841e30e40c0bdb282291f0b1ddc | [
"Apache-2.0"
] | null | null | null | main.cpp | dcblack/systemc-main | 96d6d9e829bf7841e30e40c0bdb282291f0b1ddc | [
"Apache-2.0"
] | 1 | 2021-03-01T14:57:20.000Z | 2021-03-01T14:57:20.000Z | //FILE main.cpp (systemc)
// $Info: Entry point for executing simulation for 'basic'.$
// Copyright 2018 Doulos Inc. All rights reserved.
// Licensed under Apache 2.0 - see accompanying LICENSE FILE.
//-----------------------------------------------------------------------------
#include "top.hpp"
#include "wallclock.h... | 34.515152 | 109 | 0.622476 | dcblack |
3059d86d26b2f84cc68e6aa312b1dc00d3aedaf5 | 290 | cpp | C++ | Codeforces/Codeforces Round #509/A.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | Codeforces/Codeforces Round #509/A.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | Codeforces/Codeforces Round #509/A.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(void){
int n;
cin >> n;
int arr[n];
for(int i = 0; i < n; ++i){
cin >> arr[i];
}
sort(arr, arr + n);
int ans = 0;
for(int i = 1; i < n; ++i){
ans += (arr[i] - arr[i - 1] - 1);
}
cout << ans;
}
| 16.111111 | 39 | 0.434483 | itsmevanessi |
305d66b8d22288ebdea375048bea1bd845799096 | 15,879 | hpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Middlewares/ST/TouchGFX/touchgfx/framework/include/platform/driver/lcd/LCD1bpp.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | 3 | 2019-12-30T21:16:50.000Z | 2021-05-11T05:28:25.000Z | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Middlewares/ST/TouchGFX/touchgfx/framework/include/platform/driver/lcd/LCD1bpp.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | 1 | 2020-11-14T16:53:09.000Z | 2020-11-14T16:53:09.000Z | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Middlewares/ST/TouchGFX/touchgfx/framework/include/platform/driver/lcd/LCD1bpp.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | 3 | 2020-03-15T14:35:38.000Z | 2021-04-07T14:55:42.000Z | /**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* <h2><center>© Copyright (c) 2018 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Libert... | 45.368571 | 317 | 0.613704 | ramkumarkoppu |
306a95807ecf337a98c822c9ed5ee071ce31aa0c | 843 | cpp | C++ | bzoj/3674.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/3674.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/3674.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/rope>
using namespace std;
using namespace __gnu_cxx;
rope<int> *rp[200010];
int n, m, a[200100], f, x, y, lastans;
int find(int i, int x){
int fa = rp[i] -> at(x);
if(fa==x) return x;
int f = find(i, fa);
if(f==fa) return f;
rp[i] -> replace(x, f);
return f;
}
int main(){
... | 20.560976 | 48 | 0.489917 | swwind |
306b30bb72a958ad546946b6cf58cb8271439611 | 855 | cpp | C++ | 202203/0303_reversePrint.cpp | talentwill/CardCoding | 1fcd20f3a76cec85845552a8917847971d9aeeb1 | [
"MIT"
] | null | null | null | 202203/0303_reversePrint.cpp | talentwill/CardCoding | 1fcd20f3a76cec85845552a8917847971d9aeeb1 | [
"MIT"
] | null | null | null | 202203/0303_reversePrint.cpp | talentwill/CardCoding | 1fcd20f3a76cec85845552a8917847971d9aeeb1 | [
"MIT"
] | 1 | 2022-03-10T05:28:19.000Z | 2022-03-10T05:28:19.000Z | // 剑指 Offer 06. 从尾到头打印链表
// 22/02/13 堆栈缓存
class Solution {
public:
vector<int> reversePrint(ListNode* head) {
auto node = head;
std::stack<ListNode*> nodes;
while(node != nullptr)
{
nodes.push(node);
node = node->next;
}
vector<int> result;... | 17.8125 | 49 | 0.491228 | talentwill |
306ddb38058244ed0fe5b7304fae0eb339769105 | 1,189 | hpp | C++ | src/lattices/square/nearest_neighbor.hpp | yangqi137/lattices | 91e270fd4e0899f2fc00940ef5ca6f21b0357ab8 | [
"MIT"
] | 1 | 2019-09-25T05:35:07.000Z | 2019-09-25T05:35:07.000Z | src/lattices/square/nearest_neighbor.hpp | yangqi137/lattices | 91e270fd4e0899f2fc00940ef5ca6f21b0357ab8 | [
"MIT"
] | null | null | null | src/lattices/square/nearest_neighbor.hpp | yangqi137/lattices | 91e270fd4e0899f2fc00940ef5ca6f21b0357ab8 | [
"MIT"
] | null | null | null | #ifndef LATTICES_SQUARE_NEAREST_NEIGHBOR_HPP
#define LATTICES_SQUARE_NEAREST_NEIGHBOR_HPP
#include "lattice.hpp"
#include "offset.hpp"
#include <type_traits>
namespace lattices {
namespace square {
template <typename S>
struct NearestNeighborCat {
typedef S VSize;
typedef LatticeCat<VSize> Latti... | 25.847826 | 63 | 0.667788 | yangqi137 |
306ec46656b4c6406ef6831c00292ad852cb4c87 | 704 | hpp | C++ | Jabbo/Source/BuildOrderManager.hpp | Jabbo16/Jabbo | 8f662610967e7393662df5ce979898be02679b1e | [
"MIT"
] | 4 | 2018-07-21T06:06:26.000Z | 2020-01-26T14:46:36.000Z | Jabbo/Source/BuildOrderManager.hpp | Jabbo16/Jabbo | 8f662610967e7393662df5ce979898be02679b1e | [
"MIT"
] | null | null | null | Jabbo/Source/BuildOrderManager.hpp | Jabbo16/Jabbo | 8f662610967e7393662df5ce979898be02679b1e | [
"MIT"
] | null | null | null | #pragma once
#include <BWAPI.h>
#include <vector>
#include <string>
#include <variant>
using namespace BWAPI;
using namespace std;
enum buildingPlacement
{
Default, Proxy, Hidden
};
enum wallPlacement
{
Main, Natural
};
struct BOItem {
int supply{};
variant<UnitType, TechType, UpgradeType... | 16 | 48 | 0.690341 | Jabbo16 |
30756379820fbd7d3358e9ca2fb67f931a6ba3b9 | 4,020 | hpp | C++ | sdk/include/xuxml.hpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | sdk/include/xuxml.hpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | sdk/include/xuxml.hpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | #pragma once
namespace Hxsoft{ namespace XUtil { namespace Xml
{
template <class Ch>
inline bool IsSpaceLetter(Ch ch)
{
return ch==' '||ch=='\t'||ch=='\r'||ch=='n';
}
template <class Ch>
inline bool IsDigits(Ch ch)
{
return ch>='0' && ch<='9';
}
template <class Ch>
bool IsIdentLetter(Ch ch)
{
retur... | 18.611111 | 96 | 0.54005 | qianxj |
3076fab8c07f64957ca32495ece5e907408b0f08 | 1,149 | cpp | C++ | ArcDelay/Performance_Process.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | ArcDelay/Performance_Process.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | ArcDelay/Performance_Process.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Performance_Process.cpp - read the link delay file
//*********************************************************
#include "ArcDelay.hpp"
#include "In_Polygon.hpp"
//---------------------------------------------------------
// Performance_Processing
//-----... | 26.113636 | 99 | 0.507398 | kravitz |
30779f2c0de78d888d3427a2895c7ce1f734c7fe | 469 | cpp | C++ | example/e-HelloWorld.cpp | iboB/jalog | d89a5bb4ef8b0ea701a7cd3ea0229de3fbb3ecd9 | [
"MIT"
] | 3 | 2021-12-07T06:16:31.000Z | 2021-12-22T14:12:36.000Z | example/e-HelloWorld.cpp | iboB/jalog | d89a5bb4ef8b0ea701a7cd3ea0229de3fbb3ecd9 | [
"MIT"
] | null | null | null | example/e-HelloWorld.cpp | iboB/jalog | d89a5bb4ef8b0ea701a7cd3ea0229de3fbb3ecd9 | [
"MIT"
] | null | null | null | // jalog
// Copyright (c) 2021-2022 Borislav Stanimirov
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT
//
#include <jalog/Instance.hpp>
#include <jalog/sinks/ColorSink.hpp>
#include <jalog/Log.hpp>
int main()
{
jalog::Instance... | 21.318182 | 47 | 0.686567 | iboB |
307ea48b058298277076e114728a8fc64378239c | 739 | cpp | C++ | epikjjh/baekjoon/11403.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 3 | 2019-05-19T13:44:39.000Z | 2019-07-03T11:15:20.000Z | epikjjh/baekjoon/11403.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 7 | 2019-05-06T02:37:26.000Z | 2019-06-29T07:28:02.000Z | epikjjh/baekjoon/11403.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 1 | 2019-07-28T06:24:54.000Z | 2019-07-28T06:24:54.000Z | #include <bits/stdc++.h>
using namespace std;
int n;
vector<vector<int> > adj;
vector<vector<int> > ret;
vector<bool> visited;
void dfs(int cur){
visited[cur] = true;
for(int nxt: adj[cur]) if(!visited[nxt]) dfs(nxt);
}
int con(int s, int e){
for(int t: adj[s]){
if(!visited[t]) dfs(t);
}
if(visited[e]) retu... | 16.065217 | 56 | 0.564276 | 15ers |
307eb5edd09f583a865100f709b6026b08818399 | 745 | hpp | C++ | include/flx/flx.hpp | jfalcou/fluxion | 7b845d2b5e0b97754ce09bd2bfca1f45913ea8df | [
"MIT"
] | null | null | null | include/flx/flx.hpp | jfalcou/fluxion | 7b845d2b5e0b97754ce09bd2bfca1f45913ea8df | [
"MIT"
] | null | null | null | include/flx/flx.hpp | jfalcou/fluxion | 7b845d2b5e0b97754ce09bd2bfca1f45913ea8df | [
"MIT"
] | null | null | null | //==================================================================================================
/*
Fluxion - Post-Modern Automatic Derivation
Copyright : Fluxion Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//======================================================================================... | 33.863636 | 100 | 0.344966 | jfalcou |
3089698fce6dc5838f443d759b46695153e8fa72 | 3,679 | cpp | C++ | src/game/shared/hl2mp/weapons/weapon_357.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/shared/hl2mp/weapons/weapon_357.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/shared/hl2mp/weapons/weapon_357.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_hl2mp_player.h"
#else
#include "hl2mp_pla... | 25.19863 | 100 | 0.619734 | cstom4994 |
30958c0c05dc3d5c78ded364a3c62eddf821149f | 6,551 | cpp | C++ | src/escposprinter.cpp | ceciletti/escpos-qt | 682017930ae99cc96c16fc050fb4e88a0f4b2c57 | [
"MIT"
] | 8 | 2020-05-09T19:52:54.000Z | 2021-09-02T03:41:46.000Z | src/escposprinter.cpp | ceciletti/escpos-qt | 682017930ae99cc96c16fc050fb4e88a0f4b2c57 | [
"MIT"
] | 1 | 2020-10-05T08:03:46.000Z | 2021-03-25T00:15:02.000Z | src/escposprinter.cpp | ceciletti/escpos-qt | 682017930ae99cc96c16fc050fb4e88a0f4b2c57 | [
"MIT"
] | 4 | 2020-05-09T19:53:00.000Z | 2022-03-21T01:51:46.000Z | #include "escposprinter.h"
#include <QIODevice>
#include <QDataStream>
#include <QLoggingCategory>
#include <QTextCodec>
Q_LOGGING_CATEGORY(EPP, "esc_pos")
static const char ESC = 0x1B;
static const char GS = 0x1D;
EscPosPrinter::EscPosPrinter(QIODevice *device, QObject *parent) : QObject(parent)
, m_device(dev... | 23.564748 | 161 | 0.621127 | ceciletti |
30a021161744cae8c17671562632954559855571 | 280 | cpp | C++ | Razor/src/Editor/EditorTool.cpp | 0zirix/Razor | b902d316da058caa636efce15da405beb73d9f73 | [
"MIT"
] | 2 | 2021-09-25T02:44:02.000Z | 2021-10-03T09:37:54.000Z | Razor/src/Editor/EditorTool.cpp | 0zirix/Razor | b902d316da058caa636efce15da405beb73d9f73 | [
"MIT"
] | null | null | null | Razor/src/Editor/EditorTool.cpp | 0zirix/Razor | b902d316da058caa636efce15da405beb73d9f73 | [
"MIT"
] | null | null | null | #include "rzpch.h"
#include "EditorTool.h"
#include "Editor/Editor.h"
namespace Razor
{
EditorTool::EditorTool(Editor* editor) :
editor(editor),
dirty(true),
active(true)
{
}
EditorTool::~EditorTool()
{
}
Editor* EditorTool::getEditor()
{
return editor;
}
}
| 11.666667 | 42 | 0.660714 | 0zirix |
dd64e1e4732d38e2e714b1d8ae4a958fd4712d2e | 3,477 | hpp | C++ | include/aikido/io/KinBodyParser.hpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | 181 | 2016-04-22T15:11:23.000Z | 2022-03-26T12:51:08.000Z | include/aikido/io/KinBodyParser.hpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | 514 | 2016-04-20T04:29:51.000Z | 2022-02-10T19:46:21.000Z | include/aikido/io/KinBodyParser.hpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | 31 | 2017-03-17T09:53:02.000Z | 2022-03-23T10:35:05.000Z | #ifndef AIKIDO_IO_KINBODYPARSER_HPP_
#define AIKIDO_IO_KINBODYPARSER_HPP_
#include <dart/dart.hpp>
namespace aikido {
namespace io {
/// Read skeleton from a string of OpenRAVE's custom XML format
///
/// This function only parses a subset of the format assuming only one body node
/// in a kinbody file.
///
/// The ... | 39.965517 | 80 | 0.686511 | usc-csci-545 |
dd6812ee4af2752197b29a1016814df87c82e81f | 131 | cpp | C++ | src/my_imp/tick_handler.cpp | SlausB/fos | 75c647da335925fd5e0bb956acc4db895004fc79 | [
"MIT"
] | null | null | null | src/my_imp/tick_handler.cpp | SlausB/fos | 75c647da335925fd5e0bb956acc4db895004fc79 | [
"MIT"
] | null | null | null | src/my_imp/tick_handler.cpp | SlausB/fos | 75c647da335925fd5e0bb956acc4db895004fc79 | [
"MIT"
] | null | null | null |
#include "handlers.h"
using namespace fos;
void TickHandler(const double elapsedSeconds, TickTime* tickTime)
{
}
| 10.916667 | 66 | 0.679389 | SlausB |
dd6bf4947d17f01a7159921cb97466edefe762d2 | 1,372 | cpp | C++ | Algorithms/Bit_manipulation/chef_got_recipies.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 11 | 2020-03-20T17:24:28.000Z | 2022-01-08T02:43:24.000Z | Algorithms/Bit_manipulation/chef_got_recipies.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 1 | 2021-07-25T11:24:46.000Z | 2021-07-25T12:09:25.000Z | Algorithms/Bit_manipulation/chef_got_recipies.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 4 | 2020-03-20T17:24:36.000Z | 2021-12-07T19:22:59.000Z | #include <iostream>
#include <cstring>
using namespace std;
int main()
{
long long int F[32];
int t, n;
string st;
cin>>t;
while(t--)
{
cin>>n;
for(int i=0; i<32; i++)
{
F[i] = 0;
}
for(int i=1; i<=n; i++)
{
cin>>st;
... | 21.107692 | 52 | 0.241254 | abhishekjha786 |
dd7497903be0a0c2dccaee8ae188c6a69a890c15 | 28,715 | cpp | C++ | src/construction/ConstructionIO.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | 3 | 2021-09-08T07:28:13.000Z | 2022-03-02T21:12:40.000Z | src/construction/ConstructionIO.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | 1 | 2021-09-21T14:40:55.000Z | 2021-09-26T01:19:38.000Z | src/construction/ConstructionIO.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | null | null | null | //
// Created by James Noeckel on 1/23/21.
//
#include "Construction.h"
#include <igl/opengl/glfw/Viewer.h>
#include <imgui/imgui.h>
#include <igl/opengl/glfw/imgui/ImGuiMenu.h>
//#include <igl/opengl/glfw/imgui/ImGuiHelpers.h>
#include "utils/colorAtIndex.h"
//#include "utils/color_conversion.hpp"
#include "utils/mac... | 43.180451 | 180 | 0.488908 | ShnitzelKiller |
dd764e499254b5e2ec28a018f029f4120abd5c0d | 1,061 | hpp | C++ | FFN.hpp | wimacod/Feed-Forward-Neural-Network | 968c16101f08a3bcb7d9124a148452c187611342 | [
"MIT"
] | 7 | 2019-03-12T22:05:45.000Z | 2022-02-16T06:10:52.000Z | FFN.hpp | wimacod/Feed-Forward-Neural-Network | 968c16101f08a3bcb7d9124a148452c187611342 | [
"MIT"
] | 2 | 2019-02-27T18:46:04.000Z | 2022-01-19T22:50:13.000Z | FFN.hpp | wimacod/Feed-Forward-Neural-Network | 968c16101f08a3bcb7d9124a148452c187611342 | [
"MIT"
] | 6 | 2017-12-06T07:27:59.000Z | 2020-12-03T04:29:23.000Z | //
// FFN.hpp
// Neural Networks
//
// Created by Alexis Louis on 15/03/2016.
// Copyright © 2016 Alexis Louis. All rights reserved.
//
#ifndef FFN_hpp
#define FFN_hpp
#include "Header.h"
using namespace std;
class Layer;
class FFN{
public:
FFN();
void initFFN(int nb_inputs, int nb_hidden_ne... | 23.065217 | 111 | 0.68426 | wimacod |
dd77d60cf3526d109f37884f54d907f4e9072ef1 | 10,603 | cpp | C++ | src/mod/mvm/set_credit_team.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 33 | 2016-02-18T04:27:53.000Z | 2022-01-15T18:59:53.000Z | src/mod/mvm/set_credit_team.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 5 | 2018-01-10T18:41:38.000Z | 2020-10-01T13:34:53.000Z | src/mod/mvm/set_credit_team.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 14 | 2017-08-06T23:02:49.000Z | 2021-08-24T00:24:16.000Z | #include "mod.h"
#include "stub/baseplayer.h"
namespace Mod::MvM::Set_Credit_Team
{
int GetCreditTeamNum()
{
extern ConVar cvar_enable;
return cvar_enable.GetInt();
}
constexpr uint8_t s_Buf_CCurrencyPack_MyTouch[] = {
0x8b, 0x06, // +0000 mov eax,[esi]
0x89, 0x... | 34.763934 | 116 | 0.652174 | fugueinheels |
dd78bb02838ed79698690ad817cdb07b8bc87fca | 576 | cpp | C++ | NSU Team Contest ( 12 October 2016 )/G - Cupboards.cpp | anirudha-ani/NSU-Problem-Solver | 2f6312fe5823c0352358f5db654dd0e1a619ce75 | [
"Apache-2.0"
] | null | null | null | NSU Team Contest ( 12 October 2016 )/G - Cupboards.cpp | anirudha-ani/NSU-Problem-Solver | 2f6312fe5823c0352358f5db654dd0e1a619ce75 | [
"Apache-2.0"
] | null | null | null | NSU Team Contest ( 12 October 2016 )/G - Cupboards.cpp | anirudha-ani/NSU-Problem-Solver | 2f6312fe5823c0352358f5db654dd0e1a619ce75 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int t , l , r , l_z = 0 , l_o = 0 , r_z = 0 , r_o = 0 , ans = 0 ;
scanf("%d", &t);
for(int i = 0 ; i < t ; i++)
{
scanf("%d %d", &l , &r);
if(l == 0)
{
l_z++;
}
else
... | 15.567568 | 71 | 0.277778 | anirudha-ani |
dd7b7ac4680a63f80b4bbb31c7abba9c094fea4d | 900 | cpp | C++ | Client/src/Command_batch.cpp | gsass1/Totally-Not-A-Virus | 092019a292a8af9a897f092c57b1c7efaefdbefb | [
"WTFPL"
] | 2 | 2021-07-30T09:34:53.000Z | 2021-09-01T09:19:22.000Z | Client/src/Command_batch.cpp | gsass1/Totally-Not-A-Virus | 092019a292a8af9a897f092c57b1c7efaefdbefb | [
"WTFPL"
] | null | null | null | Client/src/Command_batch.cpp | gsass1/Totally-Not-A-Virus | 092019a292a8af9a897f092c57b1c7efaefdbefb | [
"WTFPL"
] | null | null | null | #include "Command_batch.h"
#include "stdafx.h"
#include "Logger.h"
Command_batch::Command_batch()
{
}
Command_batch::~Command_batch()
{
}
bool Command_batch::OnExecute(const std::vector<std::wstring> &args)
{
if(!(args.size() > 1))
{
VLog(LERROR, L"batch: missing argument");
return false;
}
std::wstring fi... | 19.148936 | 85 | 0.683333 | gsass1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.