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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d76375c5e99cc46664370535b6496af9bc108b5 | 575 | cpp | C++ | Source/CAPI.cpp | Cos8o/GDCrypto | 2d75646475a752e93c8b2a829033e2350ecc862c | [
"MIT"
] | 16 | 2018-08-31T13:16:30.000Z | 2021-03-07T15:14:14.000Z | Source/CAPI.cpp | cos8oih/GDCrypto | 2d75646475a752e93c8b2a829033e2350ecc862c | [
"MIT"
] | 8 | 2020-01-21T15:05:19.000Z | 2020-11-11T20:05:34.000Z | Source/CAPI.cpp | Cos8o/GDCrypto | 2d75646475a752e93c8b2a829033e2350ecc862c | [
"MIT"
] | 2 | 2019-01-12T14:37:40.000Z | 2020-01-22T03:34:51.000Z | #include "CAPI.hpp"
extern "C"
{
GDCRYPTO_API uint8_t* gdcrypto_allocateBuffer(size_t const size)
{
return new uint8_t[size];
}
GDCRYPTO_API int gdcrypto_freeBuffer(uint8_t* buffer)
{
if (buffer)
{
delete[] buffer;
return GDCRYPTO_SUCCESS;
}
return GDCRYPTO_FAIL;
}
//This is probably broken (... | 15.131579 | 65 | 0.676522 | Cos8o |
0d772e5baca28303785202be3e76198753acd995 | 4,282 | hpp | C++ | library/include/hal/Spi.hpp | StratifyLabs/HalAPI | 9707d7c021fa655666796a0a02994f7766d76e81 | [
"MIT"
] | 1 | 2021-11-17T05:41:21.000Z | 2021-11-17T05:41:21.000Z | library/include/hal/Spi.hpp | StratifyLabs/HalAPI | 9707d7c021fa655666796a0a02994f7766d76e81 | [
"MIT"
] | null | null | null | library/include/hal/Spi.hpp | StratifyLabs/HalAPI | 9707d7c021fa655666796a0a02994f7766d76e81 | [
"MIT"
] | null | null | null | // Copyright 2020-2021 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md
#ifndef HALAPI_HAL_SPI_HPP_
#define HALAPI_HAL_SPI_HPP_
#include <sos/dev/spi.h>
#include "Device.hpp"
namespace hal {
struct SpiFlags {
enum class Flags {
null = 0,
is_format_spi = SPI_FLAG_IS_FORMAT_SPI,
is_format_ti = SPI_... | 25.951515 | 77 | 0.694302 | StratifyLabs |
0d7afb10eb5f16c8a9cea82bcf2560f61d0478e1 | 1,176 | cpp | C++ | Tile Stacking Problem/code_1.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 27 | 2019-01-31T10:22:29.000Z | 2021-08-29T08:25:12.000Z | Tile Stacking Problem/code_1.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 6 | 2020-09-30T19:01:49.000Z | 2020-12-17T15:10:54.000Z | Tile Stacking Problem/code_1.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 27 | 2019-09-21T14:19:32.000Z | 2021-09-15T03:06:41.000Z | //
// code_1.cpp
// Algorithm
//
// Created by Mohd Shoaib Rayeen on 23/11/18.
// Copyright © 2018 Shoaib Rayeen. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
int possibleWays(int n, int m, int k) {
int dp[m+1][n+1];
int presum[m+1][n+1];
memset(dp, 0, sizeof dp... | 21 | 61 | 0.423469 | Jatin-Goyal5 |
0d7bc7ec08dc8526263a3e5d9996c9e5c5000883 | 11,781 | cpp | C++ | src/common/zendnn_blocked_layout.cpp | amd/ZenDNN | 2d8e025a05126b7c378d88a990a20e21a4182b20 | [
"Apache-2.0"
] | 28 | 2021-08-12T10:38:06.000Z | 2022-03-25T08:37:31.000Z | src/common/zendnn_blocked_layout.cpp | amd/ZenDNN | 2d8e025a05126b7c378d88a990a20e21a4182b20 | [
"Apache-2.0"
] | 2 | 2021-08-17T03:20:10.000Z | 2021-09-23T04:15:32.000Z | src/common/zendnn_blocked_layout.cpp | amd/ZenDNN | 2d8e025a05126b7c378d88a990a20e21a4182b20 | [
"Apache-2.0"
] | 5 | 2021-08-20T05:05:59.000Z | 2022-02-25T19:13:07.000Z | /*******************************************************************************
* Copyright (c) 2019-2021 Advanced Micro Devices, Inc. All rights reserved.
*******************************************************************************/
#include <zendnn_private.hpp>
#include <omp.h>
#include <sys/sysinfo.h>
#include... | 42.075 | 165 | 0.622019 | amd |
0d7ca836b0447f7adf9e7e39d903a5f32ca879ed | 2,352 | hpp | C++ | src/cached_position.hpp | eldariont/vg | aa394a8477eb3f27ccfe421457e2e013e7907493 | [
"BSL-1.0"
] | null | null | null | src/cached_position.hpp | eldariont/vg | aa394a8477eb3f27ccfe421457e2e013e7907493 | [
"BSL-1.0"
] | 1 | 2020-04-27T23:28:51.000Z | 2020-04-27T23:28:51.000Z | src/cached_position.hpp | eldariont/vg | aa394a8477eb3f27ccfe421457e2e013e7907493 | [
"BSL-1.0"
] | null | null | null | #ifndef VG_CACHED_POS_HPP_INCLUDED
#define VG_CACHED_POS_HPP_INCLUDED
#include "vg.pb.h"
#include "types.hpp"
#include "xg.hpp"
#include "lru_cache.h"
#include "utility.hpp"
#include "json2pb.h"
#include <gcsa/gcsa.h>
#include <iostream>
/** \file
* Functions for working with cached Positions and `pos_t`s.
*/
nam... | 53.454545 | 170 | 0.758503 | eldariont |
0d847117a22097e6b48c5b667a0d423e1491fae9 | 440 | hpp | C++ | Game.hpp | cptkidd62/minesweeper | 0ac18dc94d4bca0b5e687cbce64c5e47bde58a26 | [
"MIT"
] | null | null | null | Game.hpp | cptkidd62/minesweeper | 0ac18dc94d4bca0b5e687cbce64c5e47bde58a26 | [
"MIT"
] | null | null | null | Game.hpp | cptkidd62/minesweeper | 0ac18dc94d4bca0b5e687cbce64c5e47bde58a26 | [
"MIT"
] | null | null | null | #ifndef GAME_HPP
#define GAME_HPP
#include <SFML/Graphics.hpp>
#include <fstream>
#include "Board.hpp"
class Game
{
public:
Game(int level);
~Game();
int runGame(sf::RenderWindow &window);
private:
sf::Font font;
sf::Color fontColor, backColor;
Board *board;
int bombs, level;
enum St... | 13.75 | 42 | 0.572727 | cptkidd62 |
0d981f64dba134e7bc6320af90320fd75c9c4ef9 | 794 | cpp | C++ | Main/src/GeomUtils.cpp | DaOnlyOwner/Materializer | 80854737d5e923b99b2b34ac339b5f2904152270 | [
"MIT"
] | null | null | null | Main/src/GeomUtils.cpp | DaOnlyOwner/Materializer | 80854737d5e923b99b2b34ac339b5f2904152270 | [
"MIT"
] | null | null | null | Main/src/GeomUtils.cpp | DaOnlyOwner/Materializer | 80854737d5e923b99b2b34ac339b5f2904152270 | [
"MIT"
] | null | null | null | #include "GeomUtils.h"
// Can also be used for bezier_rect intersection because the curves I use are nearly a straight line.
// TODO
bool IntersectionLine_AABB(const glm::vec2& pos0, const glm::vec2& pos1, const glm::vec2& min, const glm::vec2& max)
{
return true; // For now until i found a super fast algo
}
bool I... | 33.083333 | 126 | 0.583123 | DaOnlyOwner |
0d9854724ab56c2907b2517a9c6fca7360bd5d54 | 2,761 | cpp | C++ | UvA 571 BFS solution.cpp | MohamedNabil97/ProgrammingExamples | 540d5384a9dc7b67b0aa63500f2adcdd11110a86 | [
"MIT"
] | null | null | null | UvA 571 BFS solution.cpp | MohamedNabil97/ProgrammingExamples | 540d5384a9dc7b67b0aa63500f2adcdd11110a86 | [
"MIT"
] | null | null | null | UvA 571 BFS solution.cpp | MohamedNabil97/ProgrammingExamples | 540d5384a9dc7b67b0aa63500f2adcdd11110a86 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define pb push_back
#define lp(i,n) for(int i=0;i<n;i++)
using namespace std;
pair<int,int> visited[1009][1009];
pair<int,int> bfs(int Ca,int Cb, int N){
queue <pair<int,int> > q;
q.push({0,0});
while(!q.empty()){
auto fr=q.front();
q.pop();
if(fr.f... | 18.406667 | 75 | 0.467584 | MohamedNabil97 |
0d9eded6221faa51af38bcf10a74edb5de2157d9 | 395 | cpp | C++ | CODECHEF/lkdngolf.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | CODECHEF/lkdngolf.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | CODECHEF/lkdngolf.cpp | prameetu/CP_codes | 41f8cfc188d2e08a8091bc5134247d05ba8a78f5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
void ans()
{
ll n,x,k;
cin >> n >> x >> k;
if(x%k ==0 || (n+1-x)%k==0)
{
cout << "YES\n";
}
else
cout << "NO\n";
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NU... | 14.62963 | 38 | 0.405063 | prameetu |
d3f8937193cf3d40c94193ee29f80fbe947f9c86 | 2,118 | cpp | C++ | Alien Engine/Alien Engine/Time.cpp | PolRecasensSarra/Alien-GameEngine | dac1d9793ddec77186f1f198f395807f010fab96 | [
"MIT"
] | null | null | null | Alien Engine/Alien Engine/Time.cpp | PolRecasensSarra/Alien-GameEngine | dac1d9793ddec77186f1f198f395807f010fab96 | [
"MIT"
] | null | null | null | Alien Engine/Alien Engine/Time.cpp | PolRecasensSarra/Alien-GameEngine | dac1d9793ddec77186f1f198f395807f010fab96 | [
"MIT"
] | null | null | null | #include "Time.h"
#include "Timer.h"
#include "Application.h"
#include "ModuleObjects.h"
Time::GameState Time::state = Time::GameState::NONE;
float Time::time_since_start = 0.0F;
float Time::game_time = 0.0F;
float Time::delta_time = 0.0F;
float Time::scale_time = 1.0F;
Timer* Time::start_timer = new Timer();
Timer* T... | 18.578947 | 70 | 0.670444 | PolRecasensSarra |
d3fcd4551fb72f2a7c430feae8429adfb75e7e6e | 80,499 | cpp | C++ | src/game_api/custom_types.cpp | mattlennon3/overlunky | 8521cac20e89c4d4fa5daec53ed216f8103930a7 | [
"MIT"
] | null | null | null | src/game_api/custom_types.cpp | mattlennon3/overlunky | 8521cac20e89c4d4fa5daec53ed216f8103930a7 | [
"MIT"
] | null | null | null | src/game_api/custom_types.cpp | mattlennon3/overlunky | 8521cac20e89c4d4fa5daec53ed216f8103930a7 | [
"MIT"
] | null | null | null | #include "custom_types.hpp"
#include "entity.hpp"
const std::map<CUSTOM_TYPE, std::string_view> custom_type_names = {
{CUSTOM_TYPE::ACIDBUBBLE, "ACIDBUBBLE"},
{CUSTOM_TYPE::ALIEN, "ALIEN"},
{CUSTOM_TYPE::ALTAR, "ALTAR"},
{CUSTOM_TYPE::AMMIT, "AMMIT"},
{CUSTOM_TYPE::ANKHPOWERUP, "ANKHPOWERUP"},
... | 51.469949 | 129 | 0.711301 | mattlennon3 |
31041e4f324324d2e426166ca783a81a6accce4e | 794 | cpp | C++ | ChnCities.cpp | lydiau/GISGraphics | 54818dcbeb01c4801a877fb465898e2a32d13616 | [
"MIT"
] | null | null | null | ChnCities.cpp | lydiau/GISGraphics | 54818dcbeb01c4801a877fb465898e2a32d13616 | [
"MIT"
] | null | null | null | ChnCities.cpp | lydiau/GISGraphics | 54818dcbeb01c4801a877fb465898e2a32d13616 | [
"MIT"
] | 2 | 2018-09-21T20:58:50.000Z | 2018-11-20T10:13:32.000Z | // ChnCities.cpp: implementation of the CChnCities class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CGExe.h"
#include "ChnCities.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
/////////////////////////////... | 17.644444 | 70 | 0.513854 | lydiau |
31052fad0884ae5266fe1bd129a94d65e06ee917 | 391 | cpp | C++ | potato/libeditor/source/imgui_fonts.cpp | potatoengine/potato | 001b08371cf3dca26406c0f207a87bf784322e82 | [
"MIT"
] | 38 | 2019-05-25T17:32:26.000Z | 2022-02-27T22:25:05.000Z | potato/libeditor/source/imgui_fonts.cpp | potatoengine/potato | 001b08371cf3dca26406c0f207a87bf784322e82 | [
"MIT"
] | 35 | 2019-05-26T17:52:39.000Z | 2022-02-12T19:54:14.000Z | potato/libeditor/source/imgui_fonts.cpp | potatoengine/potato | 001b08371cf3dca26406c0f207a87bf784322e82 | [
"MIT"
] | 2 | 2019-06-09T16:06:27.000Z | 2019-08-16T14:17:20.000Z | // Copyright by Potato Engine contributors. See accompanying License.txt for copyright details.
#include "potato/editor/imgui_fonts.h"
#include "potato/editor/imgui_backend.h"
#include <imgui.h>
void ImGui::Potato::PushFont(UpFont font) {
auto const& backend = *static_cast<up::ImguiBackend const*>(GetIO().UserD... | 27.928571 | 95 | 0.749361 | potatoengine |
311508528d8b378cd1b76a62ca79f1ba37d79bc7 | 3,101 | cpp | C++ | GeoFenix/Graphics/Camera/camera.cpp | TheNachoBIT/GeoFenix-Engine | 9167edb4c44d70204e03f9551a7184184ec659c1 | [
"MIT"
] | 8 | 2020-08-17T22:35:53.000Z | 2021-11-08T09:41:55.000Z | GeoFenix/Graphics/Camera/camera.cpp | TheNachoBIT/GeoFenix-Engine | 9167edb4c44d70204e03f9551a7184184ec659c1 | [
"MIT"
] | null | null | null | GeoFenix/Graphics/Camera/camera.cpp | TheNachoBIT/GeoFenix-Engine | 9167edb4c44d70204e03f9551a7184184ec659c1 | [
"MIT"
] | null | null | null | #include "camera.h"
namespace geofenix
{
namespace graphics
{
Camera::Camera(glm::vec3 position, glm::vec3 direction, glm::vec3 worldUp) :
worldUp(worldUp), up(worldUp), position(position)
{
right = glm::vec3(0.f);
ViewMatrix = glm::mat4(1.f);
movementSpeed = 3.f;
sensitivity = 5.f;
pitch = ... | 24.417323 | 88 | 0.578201 | TheNachoBIT |
3118bb8c3bb79b9207f4c2c365a2ca6ecb58ded7 | 3,278 | hpp | C++ | email/include/email/log.hpp | christophebedard/rmw_email | c0110b6fc6a61f389ec58f54496c39f6026a4a13 | [
"Apache-2.0"
] | 14 | 2021-09-19T02:04:37.000Z | 2022-02-24T08:15:50.000Z | email/include/email/log.hpp | christophebedard/rmw_email | c0110b6fc6a61f389ec58f54496c39f6026a4a13 | [
"Apache-2.0"
] | 5 | 2021-09-18T23:50:02.000Z | 2022-02-21T14:44:49.000Z | email/include/email/log.hpp | christophebedard/rmw_email | c0110b6fc6a61f389ec58f54496c39f6026a4a13 | [
"Apache-2.0"
] | 2 | 2021-09-20T13:56:38.000Z | 2021-12-10T09:00:24.000Z | // Copyright 2020-2021 Christophe Bedard
//
// 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 ag... | 22.763889 | 83 | 0.727883 | christophebedard |
312605a5cdc8c9cdd8bc09d0c68d3737585ee481 | 15,101 | cpp | C++ | modules/standard.lib.amf/src/main.cpp | Devronium/ConceptApplicationServer | c1fcb8de8d752f352485840aab13511dd1aa6a15 | [
"BSD-2-Clause"
] | 11 | 2016-01-24T18:53:36.000Z | 2021-01-21T08:59:01.000Z | modules/standard.lib.amf/src/main.cpp | Devronium/ConceptApplicationServer | c1fcb8de8d752f352485840aab13511dd1aa6a15 | [
"BSD-2-Clause"
] | 1 | 2016-01-22T21:38:38.000Z | 2016-01-30T17:25:01.000Z | modules/standard.lib.amf/src/main.cpp | Devronium/ConceptApplicationServer | c1fcb8de8d752f352485840aab13511dd1aa6a15 | [
"BSD-2-Clause"
] | null | null | null | //------------ standard header -----------------------------------//
#include "stdlibrary.h"
//------------ end of standard header ----------------------------//
#include "library.h"
#include "AnsiString.h"
#include <string>
#include "amf.h"
typedef amf::amf_strict_array * am_ptr;
amf::amf_data_ptr amf_rec(void *arr)... | 36.300481 | 183 | 0.512615 | Devronium |
312cf9235009d4990327e012463a2040fd42c085 | 2,052 | cpp | C++ | 2016/Day24/Packaging.cpp | marcuskrahl/AdventOfCode | 0148d9a01a565aac1a6104a6001478fab3b6d4f8 | [
"MIT"
] | null | null | null | 2016/Day24/Packaging.cpp | marcuskrahl/AdventOfCode | 0148d9a01a565aac1a6104a6001478fab3b6d4f8 | [
"MIT"
] | null | null | null | 2016/Day24/Packaging.cpp | marcuskrahl/AdventOfCode | 0148d9a01a565aac1a6104a6001478fab3b6d4f8 | [
"MIT"
] | null | null | null | #include "Packaging.hpp"
#include <cmath>
#include <array>
#include <limits>
unsigned int get_target_weight(const std::vector<unsigned int>& packages,unsigned int package_groups) {
unsigned int sum = 0;
for(auto package:packages) {
sum += package;
}
return sum/package_groups;
}
struct package... | 36.642857 | 195 | 0.710039 | marcuskrahl |
312d08da2f83f624d1370106192a7c9f5b0f71b5 | 2,717 | cpp | C++ | Tests/container/any.test.cpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 28 | 2018-07-23T06:52:19.000Z | 2021-09-07T22:15:52.000Z | Tests/container/any.test.cpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 17 | 2018-09-13T13:29:05.000Z | 2021-01-04T09:23:31.000Z | Tests/container/any.test.cpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 4 | 2019-02-27T13:33:16.000Z | 2019-12-27T14:14:55.000Z | /*
The MIT License
Copyright (c) 2018 Geoffrey Daniels. http://gpdaniels.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... | 37.736111 | 153 | 0.725801 | gpdaniels |
31367ebdf364ab93c56378453239e8db4f165daa | 845 | hh | C++ | src/services/IAudioSystem.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 71 | 2018-04-15T13:02:43.000Z | 2022-03-26T11:19:18.000Z | src/services/IAudioSystem.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 309 | 2018-04-15T12:10:59.000Z | 2022-01-22T20:13:04.000Z | src/services/IAudioSystem.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 17 | 2018-04-17T16:09:31.000Z | 2022-03-04T08:49:03.000Z | #ifndef RA_SERVICES_IAUDIOSYSTEM_HH
#define RA_SERVICES_IAUDIOSYSTEM_HH
#pragma once
#include <string>
namespace ra {
namespace services {
class IAudioSystem
{
public:
virtual ~IAudioSystem() noexcept = default;
IAudioSystem(const IAudioSystem&) noexcept = delete;
IAudioSystem& operator=(const IAudioSyst... | 22.837838 | 68 | 0.697041 | Jamiras |
313af1a68f5f9e84dd822f1c5e48101be4c2ae39 | 2,760 | hpp | C++ | client_project/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_websocket_server.hpp | pertgame/battleframe | ffba8a7b4f7f45f1eed2c56060d9a2205fb1fdc9 | [
"MIT"
] | 1 | 2020-10-28T15:19:15.000Z | 2020-10-28T15:19:15.000Z | client_project/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_websocket_server.hpp | pertgame/battleframe | ffba8a7b4f7f45f1eed2c56060d9a2205fb1fdc9 | [
"MIT"
] | null | null | null | client_project/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_websocket_server.hpp | pertgame/battleframe | ffba8a7b4f7f45f1eed2c56060d9a2205fb1fdc9 | [
"MIT"
] | 1 | 2020-10-28T15:19:40.000Z | 2020-10-28T15:19:40.000Z | /****************************************************************************
Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwi... | 43.125 | 81 | 0.784058 | pertgame |
313c1df57682d95205aecc183739179d7eb3e32d | 2,750 | cpp | C++ | src/sofq.cpp | Cetus-K/corder | cd635c3bf49f578952d65393270a9a980841299e | [
"MIT"
] | null | null | null | src/sofq.cpp | Cetus-K/corder | cd635c3bf49f578952d65393270a9a980841299e | [
"MIT"
] | null | null | null | src/sofq.cpp | Cetus-K/corder | cd635c3bf49f578952d65393270a9a980841299e | [
"MIT"
] | null | null | null | #include "corder.h"
void sofq::init ( void ) {
// temporary variable
nq = (int)((co->q1-co->q0)/co->dq);
}
void sofq::write ( string filename, gofr *gf ) {
// temporary variable
int iab,isab;
double r,q,sincqr;
double *sq,**sabq,**ssabq;
ofstream ofs,ofsab,ofssab;
// memory allocation
sq = alloc1d < doub... | 28.350515 | 78 | 0.532727 | Cetus-K |
313ee682299decc46e27a354cbf0daf7a41268c1 | 458 | hpp | C++ | modules/engine/include/randar/Render/Palette/Palette.hpp | litty-studios/randar | 95daae57b1ec7d87194cdbcf6e3946b4ed9fc79b | [
"MIT"
] | 1 | 2016-11-12T02:43:29.000Z | 2016-11-12T02:43:29.000Z | modules/engine/include/randar/Render/Palette/Palette.hpp | litty-studios/randar | 95daae57b1ec7d87194cdbcf6e3946b4ed9fc79b | [
"MIT"
] | null | null | null | modules/engine/include/randar/Render/Palette/Palette.hpp | litty-studios/randar | 95daae57b1ec7d87194cdbcf6e3946b4ed9fc79b | [
"MIT"
] | null | null | null | #ifndef RANDAR_RENDER_PALETTE_HPP
#define RANDAR_RENDER_PALETTE_HPP
#include <randar/Render/Color.hpp>
namespace randar
{
/**
* A color palette.
*
* Used to sample specifically random colors.
*/
struct Palette
{
/**
* Destructor.
*/
virtual ~Palette();... | 16.357143 | 53 | 0.552402 | litty-studios |
314166729c3e1e02d10cda4472f0f89d98974f7a | 1,124 | cpp | C++ | client/client.cpp | scholzf98/usermode-and-kernel-source-r6- | e786efcf1ba8d519b2bf18823f4c067ecf5ab739 | [
"MIT"
] | null | null | null | client/client.cpp | scholzf98/usermode-and-kernel-source-r6- | e786efcf1ba8d519b2bf18823f4c067ecf5ab739 | [
"MIT"
] | null | null | null | client/client.cpp | scholzf98/usermode-and-kernel-source-r6- | e786efcf1ba8d519b2bf18823f4c067ecf5ab739 | [
"MIT"
] | 1 | 2021-05-05T00:29:11.000Z | 2021-05-05T00:29:11.000Z | #include "client.h"
int main( )
{
SetConsoleTitle( "" );
// ** get function that is hooked by driver **
void* fn = kernel_control_function( );
unsigned long pid = GetCurrentProcessId( );
uint64_t loaded_check = call_driver_control( fn, ID_CONFIRM_DRIVER_LOADED );
if ( loaded_check != 0 )
prin... | 22.938776 | 122 | 0.644128 | scholzf98 |
3143f5367a05102a7bc4bd0765bc25afd1f783ca | 1,559 | cpp | C++ | main.cpp | amungo/SdMerge | 24f95bbe4e5246eb99416c10a6937b0187bc26fa | [
"BSD-2-Clause"
] | null | null | null | main.cpp | amungo/SdMerge | 24f95bbe4e5246eb99416c10a6937b0187bc26fa | [
"BSD-2-Clause"
] | null | null | null | main.cpp | amungo/SdMerge | 24f95bbe4e5246eb99416c10a6937b0187bc26fa | [
"BSD-2-Clause"
] | 1 | 2022-03-09T18:35:38.000Z | 2022-03-09T18:35:38.000Z | #include <cstdio>
#include <vector>
#include "utils.h"
using namespace std;
int main(int argc, char *argv[])
{
if ( argc != 5 ) {
fprintf( stderr, "Usage:\n" );
fprintf( stderr, "SdMerge BLOCK_SIZE srcfileA srcfileB outfile\n\n" );
return 0;
}
const char* f0name = argv[2];
co... | 24.746032 | 133 | 0.547146 | amungo |
3147097f983502bb136fc40efd98dddaf2c8ed2f | 1,316 | cpp | C++ | src/internal_lexer_builder.cpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 2 | 2021-04-15T20:02:37.000Z | 2021-04-17T18:18:50.000Z | src/internal_lexer_builder.cpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 1 | 2019-10-07T10:41:52.000Z | 2019-10-07T10:41:52.000Z | src/internal_lexer_builder.cpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 1 | 2020-05-05T16:52:20.000Z | 2020-05-05T16:52:20.000Z | // Copyright: 2015 Mohit Saini
// Author: Mohit Saini (mohitsaini1196@gmail.com)
#include "src/internal_lexer_builder.hpp"
#include <memory>
#include <unordered_map>
#include "src/lexer_machine_builder.hpp"
namespace aparse {
// sttaic
bool InternalLexerBuilder::Build(const InternalLexerGrammar& lexer_grammar,
... | 29.909091 | 75 | 0.711246 | mohitmv |
314af6cb0e21853b5b087ab99237bbeeae33b960 | 2,211 | cpp | C++ | component/edriver/colorled.cpp | eboxmaker/eboxFramework-rtt | 9718678422f56faec1cf21a6a8fd3f72441bea33 | [
"MIT"
] | 115 | 2018-08-12T08:41:17.000Z | 2022-03-08T07:43:48.000Z | component/edriver/colorled.cpp | eboxmaker/eboxFramework-rtt | 9718678422f56faec1cf21a6a8fd3f72441bea33 | [
"MIT"
] | 4 | 2018-08-13T10:14:55.000Z | 2019-07-03T06:54:10.000Z | component/edriver/colorled.cpp | eboxmaker/eboxFramework-rtt | 9718678422f56faec1cf21a6a8fd3f72441bea33 | [
"MIT"
] | 59 | 2018-09-02T21:54:25.000Z | 2022-01-13T02:28:28.000Z | /**
******************************************************************************
* @file colorled.cpp
* @author shentq
* @version V2.1
* @date 2016/08/14
* @brief
******************************************************************************
* @attention
*
* No part of this software may be ... | 23.774194 | 83 | 0.515604 | eboxmaker |
31509082a623dc8c5ea0cc5e3725db58c7e1b42b | 3,083 | hpp | C++ | source/modules/problem/hierarchical/hierarchical.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 43 | 2018-07-26T07:20:42.000Z | 2022-03-02T10:23:12.000Z | source/modules/problem/hierarchical/hierarchical.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | source/modules/problem/hierarchical/hierarchical.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 16 | 2018-07-25T15:00:36.000Z | 2022-03-22T14:19:46.000Z | /** \namespace problem
* @brief Namespace declaration for modules of type: problem.
*/
/** \file
* @brief Header file for module: Hierarchical.
*/
/** \dir problem/hierarchical
* @brief Contains code, documentation, and scripts for module: Hierarchical.
*/
#pragma once
#include "modules/problem/problem.hpp"
namesp... | 31.783505 | 169 | 0.722997 | JonathanLehner |
3158b5500d579054f45836f9a28d233d0f7792be | 343 | cpp | C++ | solutions/1015.smallest-integer-divisible-by-k.378784762.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/1015.smallest-integer-divisible-by-k.378784762.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/1015.smallest-integer-divisible-by-k.378784762.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
int smallestRepunitDivByK(int K) {
vector<bool> visited(K);
int candidate = 1;
int ans = 1;
while (candidate % K) {
if (visited[candidate])
return -1;
visited[candidate] = true;
candidate = candidate * 10 + 1;
candidate %= K;
ans++;
}
... | 19.055556 | 37 | 0.548105 | satu0king |
315908274535fba099818d9f93f0a7d9b4b3556c | 1,845 | hpp | C++ | include/chopper/build/read_chopper_pack_file.hpp | Felix-Droop/Chopper | 5cc214103b2d088ae400bec0fde8973e03dd3095 | [
"BSD-3-Clause"
] | null | null | null | include/chopper/build/read_chopper_pack_file.hpp | Felix-Droop/Chopper | 5cc214103b2d088ae400bec0fde8973e03dd3095 | [
"BSD-3-Clause"
] | null | null | null | include/chopper/build/read_chopper_pack_file.hpp | Felix-Droop/Chopper | 5cc214103b2d088ae400bec0fde8973e03dd3095 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <cstdlib>
#include <fstream>
#include <set>
#include <string>
#include <tuple>
#include <vector>
#include <seqan3/std/ranges>
#include <chopper/build/build_data.hpp>
#include <chopper/detail_parse_chopper_pack_header_line.hpp>
#include <chopper/detail_parse_chopper_pack_line.hpp>
auto read_chop... | 35.480769 | 112 | 0.645528 | Felix-Droop |
3179b309e18662e1943eab749b76932a952504dc | 1,931 | cpp | C++ | lib/srvidentity.cpp | timmyw/ofsystem | 6f955d53dc3025148763333bea0a11d0bce28c06 | [
"MIT"
] | null | null | null | lib/srvidentity.cpp | timmyw/ofsystem | 6f955d53dc3025148763333bea0a11d0bce28c06 | [
"MIT"
] | null | null | null | lib/srvidentity.cpp | timmyw/ofsystem | 6f955d53dc3025148763333bea0a11d0bce28c06 | [
"MIT"
] | null | null | null | /*
Copyright (C) 1997-2011 by Suntail.com AS, Tim Whelan
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify... | 31.145161 | 78 | 0.702745 | timmyw |
317bd2e12c90ddaa1af2927b76ba7d14320eadb3 | 2,363 | cpp | C++ | A-Array/Reversingofarray.cpp | riyasingh240601/LearnCPP | 5dc75a4d7cd1a1c4519018bc4ef1f54151c0a8ed | [
"MIT"
] | 2 | 2022-03-10T12:28:22.000Z | 2022-03-10T12:28:32.000Z | A-Array/Reversingofarray.cpp | riyasingh240601/LearnCPP | 5dc75a4d7cd1a1c4519018bc4ef1f54151c0a8ed | [
"MIT"
] | null | null | null | A-Array/Reversingofarray.cpp | riyasingh240601/LearnCPP | 5dc75a4d7cd1a1c4519018bc4ef1f54151c0a8ed | [
"MIT"
] | 1 | 2022-03-26T08:23:30.000Z | 2022-03-26T08:23:30.000Z |
#include <iostream>
using namespace std;
// Utility function to print elements of an array
void print(int arr[], int n)
{
for (int i = 0; i < n; i++) {
cout << arr[i] << " ";
}
}
/* 1. Using Auxiliary Array
we can create an auxiliary array of the same type and size as the input array, fill it with el... | 32.819444 | 159 | 0.628015 | riyasingh240601 |
317debe52d7987ec63075a1503d1009f0ff75b43 | 4,931 | cpp | C++ | source/mono/MonoLibLoader.cpp | SuiMachine/Ultimate-ASI-Loader | b3ec0950df5ac7fa057bc9af8298bcfb6241f107 | [
"MIT"
] | null | null | null | source/mono/MonoLibLoader.cpp | SuiMachine/Ultimate-ASI-Loader | b3ec0950df5ac7fa057bc9af8298bcfb6241f107 | [
"MIT"
] | null | null | null | source/mono/MonoLibLoader.cpp | SuiMachine/Ultimate-ASI-Loader | b3ec0950df5ac7fa057bc9af8298bcfb6241f107 | [
"MIT"
] | null | null | null | #pragma once
#include "MonoLibLoader.h"
#include <string>
//For base reference see https://www.unknowncheats.me/forum/rust/114627-loader-titanium-alternative.html
intptr_t dwReturn;
void DoTheHighLevelMonoThing()
{
auto instance = MonoLibLoader::GetInstance();
instance->monoDll.mono_security_set_mode(NULL);
auto ... | 26.654054 | 164 | 0.709187 | SuiMachine |
3184cb7b1e9af5dd038c94dc75ad6d4f37b429ac | 1,248 | hpp | C++ | lib/isa/include/isa/alu.hpp | richhorvath/QtPieISA | ebbb8aafd84521571456c337897be704e1dba1d8 | [
"MIT"
] | null | null | null | lib/isa/include/isa/alu.hpp | richhorvath/QtPieISA | ebbb8aafd84521571456c337897be704e1dba1d8 | [
"MIT"
] | null | null | null | lib/isa/include/isa/alu.hpp | richhorvath/QtPieISA | ebbb8aafd84521571456c337897be704e1dba1d8 | [
"MIT"
] | null | null | null | #ifndef LIB_ISA_ALU_HPP_
#define LIB_ISA_ALU_HPP_
class ALU {
public:
/**
* The following functors are classes used to pass in template types to
* corresponding r type instruction.
*/
template <typename T>
struct subtract {
T operator()(T x, T y) { return x - y; }
};
/*************************... | 23.111111 | 74 | 0.377404 | richhorvath |
3185fe0a22dced73b823cbaaf6aae2920fcc0689 | 433 | cpp | C++ | src/host.cpp | marc-despland/httpd | da3258b5c84eacbd662245e49bbe81822537c548 | [
"Apache-2.0"
] | null | null | null | src/host.cpp | marc-despland/httpd | da3258b5c84eacbd662245e49bbe81822537c548 | [
"Apache-2.0"
] | null | null | null | src/host.cpp | marc-despland/httpd | da3258b5c84eacbd662245e49bbe81822537c548 | [
"Apache-2.0"
] | null | null | null | #include "host.h"
Host::Host(string name, unsigned int port) {
this->myname=name;
this->myport=port;
}
Host::~Host() {
}
unsigned int Host::port() {
return this->myport;
}
string Host::name() {
return this->myname;
}
std::ostream & operator<<(std::ostream &os, const Host& h) {
return os << h.myname<<":"<<h.myp... | 17.32 | 61 | 0.623557 | marc-despland |
3187af7b610eb2226732ce58fbd7f05c61569371 | 2,485 | hpp | C++ | src/xalanc/Utils/MsgCreator/IndexFileData.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | src/xalanc/Utils/MsgCreator/IndexFileData.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | src/xalanc/Utils/MsgCreator/IndexFileData.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 1999-2004 The Apache Software Foundation.
*
* 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 requir... | 24.85 | 81 | 0.608853 | rherardi |
3188856eaf34d47e0ca7c25e4774318809d508da | 796 | hpp | C++ | Sources/AGEngine/Graphic/DRBLightElementManager.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/AGEngine/Graphic/DRBLightElementManager.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/AGEngine/Graphic/DRBLightElementManager.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #pragma once
#include <memory>
#include "Utils/ObjectPool.hpp"
#include "Utils/Dependency.hpp"
#include "DRBPointLight.hpp"
#include "DRBSpotLight.hpp"
namespace AGE
{
class BFCCullableHandle;
class BFCBlockManagerFactory;
class IProperty;
// That's a SCENE dependency, and not a global one, set on per scene
c... | 25.677419 | 73 | 0.797739 | Another-Game-Engine |
318a3e5e0bc44630ff492f82d258df199f57b1d8 | 1,944 | cpp | C++ | urutils.cpp | PavelNajman/QURScanner | d0990f4a84c40425dfa6a3d55020bb2ca5bf012b | [
"MIT"
] | null | null | null | urutils.cpp | PavelNajman/QURScanner | d0990f4a84c40425dfa6a3d55020bb2ca5bf012b | [
"MIT"
] | null | null | null | urutils.cpp | PavelNajman/QURScanner | d0990f4a84c40425dfa6a3d55020bb2ca5bf012b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2021 Pavel Najman
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to dea in the Software without
* restriction, including without limitation the rights to use, copy, modify, merge, publis... | 38.117647 | 124 | 0.708848 | PavelNajman |
318b8e214b6735179ee21dacd6d769510d38cee5 | 1,386 | cpp | C++ | unittest/Rail_connect_Test.cpp | romadidukh/trains | 57200efbb079cdc3844d4626ec38197ad863b9bb | [
"Apache-2.0"
] | null | null | null | unittest/Rail_connect_Test.cpp | romadidukh/trains | 57200efbb079cdc3844d4626ec38197ad863b9bb | [
"Apache-2.0"
] | null | null | null | unittest/Rail_connect_Test.cpp | romadidukh/trains | 57200efbb079cdc3844d4626ec38197ad863b9bb | [
"Apache-2.0"
] | null | null | null | #include "RdTest.h"
#include "Rail.h"
TEST(Rail, connectRR)
{
Rail railA(0, 0, 3, 4);
Rail railB(3, 4, 7, 7);
bool ret = Rail::connect(&railA, &railB);
ASSERT_TRUE(ret);
ASSERT_NULL(railA.next(0));
ASSERT_NOTNULL(railA.next(1));
ASSERT_NOTNULL(railB.next(0));
ASSERT_NULL(railB.next(1... | 20.086957 | 45 | 0.603175 | romadidukh |
318bca5bda583e1a8f357a8c82f83aea52f2054b | 725 | cpp | C++ | problems/71.simplify-path.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | problems/71.simplify-path.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | problems/71.simplify-path.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | class Solution {
public:
string simplifyPath(string path) {
stack<string> st;
int pos = 0;
while (pos<path.size())
{
string::size_type tPos = path.find('/', pos);
if (tPos == string::npos) {
tPos = path.size();
}
if (tPos > pos) {
string sub = path.substr(pos, tPos - pos);
if (sub == ".... | 17.261905 | 64 | 0.485517 | bigfishi |
318ca2a2adc45256b83eff72b74f8c68366878a4 | 771 | cpp | C++ | ares/sfc/coprocessor/armdsp/io.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/sfc/coprocessor/armdsp/io.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/sfc/coprocessor/armdsp/io.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | //MMIO: 00-3f,80-bf:3800-38ff
//3800-3807 mirrored throughout
//a0 ignored
auto ARMDSP::read(n24 address, n8) -> n8 {
cpu.synchronize(*this);
n8 data = 0x00;
address &= 0xff06;
if(address == 0x3800) {
if(bridge.armtocpu.ready) {
bridge.armtocpu.ready = false;
data = bridge.armtocpu.data;
... | 17.133333 | 50 | 0.599222 | CasualPokePlayer |
31a1e9f0f754a52ef0e8792175ae192bd4096967 | 506 | hpp | C++ | libsnes/bsnes/gameboy/apu/master/master.hpp | ircluzar/BizhawkLegacy-Vanguard | cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e | [
"MIT"
] | null | null | null | libsnes/bsnes/gameboy/apu/master/master.hpp | ircluzar/BizhawkLegacy-Vanguard | cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e | [
"MIT"
] | null | null | null | libsnes/bsnes/gameboy/apu/master/master.hpp | ircluzar/BizhawkLegacy-Vanguard | cd8b6dfe881f3c9d322b73c29f0d71df2ce3178e | [
"MIT"
] | null | null | null | struct Master {
bool left_in_enable;
uint3 left_volume;
bool right_in_enable;
uint3 right_volume;
bool channel4_left_enable;
bool channel3_left_enable;
bool channel2_left_enable;
bool channel1_left_enable;
bool channel4_right_enable;
bool channel3_right_enable;
bool channel2_right_enable;
bool c... | 20.24 | 37 | 0.758893 | ircluzar |
31a72719143e5c49942d0853094fdeef5cc5191f | 2,426 | cc | C++ | test.cc | thinkoid/stca-ukkonen | eb0a0cc306a6d76141f0052cb50099dbf2faf831 | [
"MIT"
] | null | null | null | test.cc | thinkoid/stca-ukkonen | eb0a0cc306a6d76141f0052cb50099dbf2faf831 | [
"MIT"
] | null | null | null | test.cc | thinkoid/stca-ukkonen | eb0a0cc306a6d76141f0052cb50099dbf2faf831 | [
"MIT"
] | null | null | null | #include <cassert>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
#include "st.hh"
const vector< string > test_data {
"A",
"AA",
"AAA",
"AAAAAAA",
"AAAAAAAAAAAA",
"ABCABC",
"ABCAB... | 20.049587 | 82 | 0.535862 | thinkoid |
b3c422f0e3c15d95ca22969a9d844030b790e359 | 4,475 | cpp | C++ | src/Misc/SWTypes/EMPulse.cpp | Otamaa/Antares | 7241a5ff20f4dbf7153cc77e16edca5c9db473d4 | [
"BSD-4-Clause"
] | 4 | 2021-04-24T04:34:06.000Z | 2021-09-19T13:55:33.000Z | src/Misc/SWTypes/EMPulse.cpp | Otamaa/Antares | 7241a5ff20f4dbf7153cc77e16edca5c9db473d4 | [
"BSD-4-Clause"
] | null | null | null | src/Misc/SWTypes/EMPulse.cpp | Otamaa/Antares | 7241a5ff20f4dbf7153cc77e16edca5c9db473d4 | [
"BSD-4-Clause"
] | 2 | 2021-08-17T14:44:45.000Z | 2021-09-19T11:02:04.000Z | #include "EMPulse.h"
#include "../../Ext/Building/Body.h"
#include "../../Ext/BulletType/Body.h"
#include "../../Ext/Techno/Body.h"
#include "../../Ext/TechnoType/Body.h"
#include "../../Utilities/Helpers.Alex.h"
#include "../../Utilities/INIParser.h"
#include "../../Utilities/TemplateDef.h"
#include <BulletClass.h>
... | 30.650685 | 117 | 0.718212 | Otamaa |
b3c750b19169b008dbd1a336d84bd9c5d82513c2 | 8,267 | cpp | C++ | aperta-compiler/aperta-compiler/Lexer.cpp | ApertaTeam/aperta-compiler | 116bb104e267ff8682ecb7c83086bad2027ef1eb | [
"MIT"
] | null | null | null | aperta-compiler/aperta-compiler/Lexer.cpp | ApertaTeam/aperta-compiler | 116bb104e267ff8682ecb7c83086bad2027ef1eb | [
"MIT"
] | null | null | null | aperta-compiler/aperta-compiler/Lexer.cpp | ApertaTeam/aperta-compiler | 116bb104e267ff8682ecb7c83086bad2027ef1eb | [
"MIT"
] | null | null | null | #include "Lexer.h"
namespace aperta_compiler
{
namespace lexer
{
char* ErrorMessage = "";
inline bool DetectToken(std::string& input, int& pos, char c)
{
if (input[pos] == c)
{
pos++;
return true;
}
else
{
return false;
}
}
inline bool DetectToken(std::string& input, int& po... | 21.528646 | 107 | 0.474658 | ApertaTeam |
b3cf72e45d8dabd9a01bcfbdc6d019fd7474070f | 4,358 | cpp | C++ | mrsl_mobile_object/src/mobile_object.cpp | ackoc23/mrsl_quadrotor | fb68c16a5895c1c7281c048a75e1841b5964d3ee | [
"BSD-3-Clause"
] | 70 | 2017-12-15T10:52:04.000Z | 2022-03-30T19:46:56.000Z | mrsl_mobile_object/src/mobile_object.cpp | ackoc23/mrsl_quadrotor | fb68c16a5895c1c7281c048a75e1841b5964d3ee | [
"BSD-3-Clause"
] | 11 | 2018-08-14T11:47:21.000Z | 2021-12-02T16:30:01.000Z | mrsl_mobile_object/src/mobile_object.cpp | ackoc23/mrsl_quadrotor | fb68c16a5895c1c7281c048a75e1841b5964d3ee | [
"BSD-3-Clause"
] | 33 | 2018-03-18T18:34:20.000Z | 2022-03-29T12:13:16.000Z | #include <boost/bind.hpp>
#include <gazebo/physics/physics.hh>
#include <gazebo/common/common.hh>
#include <gazebo/gazebo.hh>
#include <ros/ros.h>
#include <geometry_msgs/PoseStamped.h>
#include <tf/transform_broadcaster.h>
namespace mrsl_quadrotor_simulator
{
class MobileObject : public gazebo::ModelPlugin
{
... | 29.445946 | 111 | 0.582836 | ackoc23 |
b3d39d4d2d975e03b2c5eccdfc3331ad61f54bbe | 1,144 | cpp | C++ | Poly/src/Platform/Vulkan/PVKShader.cpp | Ceanze/Poly | 0bd1ec060ec7e785fa3b7ad1744b8488220ca8d3 | [
"MIT"
] | 1 | 2022-01-25T20:19:23.000Z | 2022-01-25T20:19:23.000Z | Poly/src/Platform/Vulkan/PVKShader.cpp | Ceanze/Poly | 0bd1ec060ec7e785fa3b7ad1744b8488220ca8d3 | [
"MIT"
] | 33 | 2020-01-29T21:19:54.000Z | 2022-03-29T17:31:36.000Z | Poly/src/Platform/Vulkan/PVKShader.cpp | Ceanze/Poly | 0bd1ec060ec7e785fa3b7ad1744b8488220ca8d3 | [
"MIT"
] | null | null | null | #include "polypch.h"
#include "PVKShader.h"
#include "PVKInstance.h"
#include "VulkanCommon.h"
#include "Poly/Resources/ResourceLoader.h"
namespace Poly
{
PVKShader::~PVKShader()
{
vkDestroyShaderModule(PVKInstance::GetDevice(), m_ShaderModule, nullptr);
}
void PVKShader::Init(const ShaderDesc* pDesc)
{
m_... | 30.918919 | 134 | 0.771853 | Ceanze |
b3d483eb1529360a581604ac74346cfbf00d2c0a | 3,259 | hpp | C++ | src/iFPGA/include/algorithms/ref_deref.hpp | nlwmode/ifpga-mapper | cd4193bfe1e41fe71f8a01754b71cb92137a76db | [
"MIT"
] | null | null | null | src/iFPGA/include/algorithms/ref_deref.hpp | nlwmode/ifpga-mapper | cd4193bfe1e41fe71f8a01754b71cb92137a76db | [
"MIT"
] | null | null | null | src/iFPGA/include/algorithms/ref_deref.hpp | nlwmode/ifpga-mapper | cd4193bfe1e41fe71f8a01754b71cb92137a76db | [
"MIT"
] | null | null | null | /**
* @file ref_deref.hpp
* @author liwei ni (nilw@pcl.ac.cn)
* @brief the ref and deref function of a node
*
* @version 0.1
* @date 2021-07-26
* @copyright Copyright (c) 2021
*/
#pragma once
#include "misc/common_properties.hpp"
#include "misc/cost_function.hpp"
#include <stdint.h>
#include <tuple>
iFPGA_NA... | 30.745283 | 112 | 0.689168 | nlwmode |
b3dd42d01ebf64a8b945abee78a0c5954f0c4945 | 2,628 | cpp | C++ | source/components/unit-test-c++/src/DeferredTestReporter.cpp | renebarto/gstreamerpp | 846981ee50cfc11ed9bde0c8e898d722cc2a57c5 | [
"Apache-2.0"
] | null | null | null | source/components/unit-test-c++/src/DeferredTestReporter.cpp | renebarto/gstreamerpp | 846981ee50cfc11ed9bde0c8e898d722cc2a57c5 | [
"Apache-2.0"
] | null | null | null | source/components/unit-test-c++/src/DeferredTestReporter.cpp | renebarto/gstreamerpp | 846981ee50cfc11ed9bde0c8e898d722cc2a57c5 | [
"Apache-2.0"
] | null | null | null | #include <unit-test-c++/DeferredTestReporter.h>
#include <unit-test-c++/TestDetails.h>
#include <osal/unused.h>
using namespace std;
namespace UnitTestCpp
{
void DeferredTestReporter::ReportTestRunStart(int UNUSED(numberOfTestSuites),
int UNUSED(numberOfTestFixtures),
... | 32.444444 | 97 | 0.598554 | renebarto |
b3df3144e29dbee35819308a7a5645a04324a73d | 970 | cpp | C++ | c/interface/SPUserInterface.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | 3 | 2021-06-28T21:07:58.000Z | 2021-07-02T11:21:49.000Z | c/interface/SPUserInterface.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | null | null | null | c/interface/SPUserInterface.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | null | null | null | /*Copyright 2002-2014 e-foto team (UERJ)
This file is part of e-foto.
e-foto is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later versio... | 26.216216 | 72 | 0.72268 | e-foto |
b3e25f5accb670a7dbe6f09dba4837d17e1a675f | 6,612 | cpp | C++ | ui/qqboardinfo.cpp | ototu/quteqoin | 8b4f74de819442451201c5e4eae9e2374c0024ea | [
"WTFPL"
] | 2 | 2015-03-21T09:20:35.000Z | 2015-08-06T12:50:57.000Z | ui/qqboardinfo.cpp | dguihal/quteqoin | 8b4f74de819442451201c5e4eae9e2374c0024ea | [
"WTFPL"
] | 23 | 2016-08-01T09:43:51.000Z | 2021-04-02T13:49:55.000Z | ui/qqboardinfo.cpp | dguihal/quteqoin | 8b4f74de819442451201c5e4eae9e2374c0024ea | [
"WTFPL"
] | 1 | 2018-10-25T21:17:51.000Z | 2018-10-25T21:17:51.000Z | #include "qqboardinfo.h"
#include "ui_qqboardinfo.h"
#include "core/qqbouchot.h"
#include "core/qqboardstatechangeevent.h"
#include "core/qutetools.h"
#include "ui/qqmusselinfo.h"
#include <QtDebug>
#include <QFontMetrics>
//////////////////////////////////////////////////////////////
/// \brief QQBoardInfo::QQBoard... | 27.098361 | 94 | 0.652753 | ototu |
b3e517bc58c4f8212bf970569d416424b637eb33 | 6,985 | cpp | C++ | Meduza/Source/Platform/General/Graphics/RenderLayerGL.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | 6 | 2020-10-17T10:50:13.000Z | 2022-02-25T20:14:23.000Z | Meduza/Source/Platform/General/Graphics/RenderLayerGL.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | null | null | null | Meduza/Source/Platform/General/Graphics/RenderLayerGL.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | 1 | 2020-05-06T12:02:47.000Z | 2020-05-06T12:02:47.000Z | #include "MePCH.h"
#include "Platform/General/Graphics/RenderLayerGL.h"
#include "Platform/General/Window.h"
#ifdef PLATFORM_LINUX
#include "Platform/Linux/Graphics/Context.h"
#elif PLATFORM_WINDOWS
#include "Platform/Windows/Graphics/ContextGL.h"
#endif
#include "Platform/General/Resources/Mesh.h"
#include "Platfor... | 28.983402 | 153 | 0.651253 | NWagter |
b3e764b9dc0f1cba40e5677a22d2abde4585ee5e | 2,665 | cpp | C++ | src/Server.cpp | dawidd6/qtictactoe | c893331271b7aada0b099f362b052f8e2f0cd75c | [
"MIT"
] | 2 | 2017-07-10T14:23:53.000Z | 2017-12-18T09:55:12.000Z | src/Server.cpp | dawidd6/qtictactoe | c893331271b7aada0b099f362b052f8e2f0cd75c | [
"MIT"
] | null | null | null | src/Server.cpp | dawidd6/qtictactoe | c893331271b7aada0b099f362b052f8e2f0cd75c | [
"MIT"
] | 1 | 2018-07-26T15:24:48.000Z | 2018-07-26T15:24:48.000Z | #include <QtNetwork>
#include "Game.h"
#include "Server.h"
void Server::handleNewConnection()
{
if(connection_a == nullptr)
{
connection_a = nextPendingConnection();
connect(connection_a, &QTcpSocket::disconnected, this, &Server::handleDisconnection);
Game::logger("Connected a");
}
else if(connection_b == ... | 20.820313 | 87 | 0.675797 | dawidd6 |
b3eb32ab8021dd48734a32302c0d1338282ab924 | 89,150 | cpp | C++ | src/StoneCutter/SCParser.cpp | opensocsysarch/CoreGen | 204e03b8b4a0d23cf8f955ed99af5de7fa07569e | [
"Apache-2.0"
] | 6 | 2019-08-15T23:11:49.000Z | 2021-12-17T18:28:37.000Z | src/StoneCutter/SCParser.cpp | rkabrick/CoreGen | e456763d6b669370b9a17d92552516ebc2887ddf | [
"Apache-2.0"
] | 245 | 2018-10-23T12:52:09.000Z | 2022-03-31T20:16:04.000Z | src/StoneCutter/SCParser.cpp | rkabrick/CoreGen | e456763d6b669370b9a17d92552516ebc2887ddf | [
"Apache-2.0"
] | 5 | 2019-10-15T15:01:04.000Z | 2022-02-18T17:09:12.000Z | //
// _SCParser_cpp_
//
// Copyright (C) 2017-2020 Tactical Computing Laboratories, LLC
// All Rights Reserved
// contact@tactcomplabs.com
//
// See LICENSE in the top level directory for licensing details
//
#include "CoreGen/StoneCutter/SCParser.h"
LLVMContext SCParser::TheContext;
IRBuilder<> SCParser::Builder(The... | 30.869114 | 118 | 0.612013 | opensocsysarch |
b3f31a5775c8fa18f9531713431aa15fd701522d | 332 | cpp | C++ | ClickableLabel.cpp | iUltimateLP/solitaire | bd0a9ad222291d2e481790ec89c823d4b0b66f46 | [
"MIT"
] | null | null | null | ClickableLabel.cpp | iUltimateLP/solitaire | bd0a9ad222291d2e481790ec89c823d4b0b66f46 | [
"MIT"
] | null | null | null | ClickableLabel.cpp | iUltimateLP/solitaire | bd0a9ad222291d2e481790ec89c823d4b0b66f46 | [
"MIT"
] | null | null | null | // Author: Annie Berend (5033782) - Jonathan Verbeek (5058288)
#include "ClickableLabel.h"
CClickableLabel::CClickableLabel(QWidget* parent, Qt::WindowFlags f)
: QLabel(parent)
{
Q_UNUSED(f);
}
void CClickableLabel::mousePressEvent(QMouseEvent* ev)
{
Q_UNUSED(ev);
// Simply emit the signal
emit c... | 19.529412 | 68 | 0.701807 | iUltimateLP |
b3f5f56d8677fa25341bdddc341db1701a723dcc | 1,393 | hpp | C++ | services/runagent/hodisp_base.hpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 286 | 2015-01-03T12:45:17.000Z | 2022-03-25T18:12:57.000Z | services/runagent/hodisp_base.hpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 9,034 | 2015-01-02T08:49:19.000Z | 2022-03-31T20:34:44.000Z | services/runagent/hodisp_base.hpp | cloLN/HPCC-Platform | 42ffb763a1cdcf611d3900831973d0a68e722bbe | [
"Apache-2.0"
] | 208 | 2015-01-02T03:27:28.000Z | 2022-02-11T05:54:52.000Z | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | 25.327273 | 81 | 0.625269 | miguelvazq |
b3f979a6da5f833c6825eff8927c05759d91960c | 11,786 | cpp | C++ | can/src/main.cpp | nvitya/nvcmtests | 0f8bfedf16bbe3a5803bf8a9300b1a1a73da805b | [
"Zlib"
] | null | null | null | can/src/main.cpp | nvitya/nvcmtests | 0f8bfedf16bbe3a5803bf8a9300b1a1a73da805b | [
"Zlib"
] | null | null | null | can/src/main.cpp | nvitya/nvcmtests | 0f8bfedf16bbe3a5803bf8a9300b1a1a73da805b | [
"Zlib"
] | null | null | null | /* -----------------------------------------------------------------------------
* This file is a part of the NVCM Tests project: https://github.com/nvitya/nvcmtests
* Copyright (c) 2018 Viktor Nagy, nvitya
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the autho... | 26.545045 | 128 | 0.668844 | nvitya |
b3fb419b911170bdb35b3de18e425e1e06e239cf | 4,245 | cpp | C++ | src/main.cpp | phitsc/find-api-usage | 0756e2d53b1ce4f114a5de1bee9b4bdc72acf359 | [
"MIT"
] | null | null | null | src/main.cpp | phitsc/find-api-usage | 0756e2d53b1ce4f114a5de1bee9b4bdc72acf359 | [
"MIT"
] | null | null | null | src/main.cpp | phitsc/find-api-usage | 0756e2d53b1ce4f114a5de1bee9b4bdc72acf359 | [
"MIT"
] | null | null | null | #include "Helpers.hpp"
#include "JsonFile.hpp"
#include "NotifyFunctionCallAction.hpp"
#include "NotifyVariableDeclarationAction.hpp"
#include "Options.hpp"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Rewrite/Frontend/FrontendActions.h"
#include "clang/Too... | 27.745098 | 96 | 0.703887 | phitsc |
b605f79fd82d9f2cf5a1dc420fb2e936e2feb6cc | 53 | hpp | C++ | src/boost_fusion_sequence_sequence_facade.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_sequence_sequence_facade.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_sequence_sequence_facade.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/sequence/sequence_facade.hpp>
| 26.5 | 52 | 0.830189 | miathedev |
b609d338663f54b33d30d5654149fc7c8240cc8d | 60 | hpp | C++ | test/mocks/BowlingMock.hpp | LuckyCode7/bowling | 9d00f5b2509a975143b73ef9460cd047f0bd3136 | [
"MIT"
] | null | null | null | test/mocks/BowlingMock.hpp | LuckyCode7/bowling | 9d00f5b2509a975143b73ef9460cd047f0bd3136 | [
"MIT"
] | 33 | 2018-08-27T20:12:23.000Z | 2018-09-17T09:12:26.000Z | test/mocks/BowlingMock.hpp | LuckyCode7/bowling | 9d00f5b2509a975143b73ef9460cd047f0bd3136 | [
"MIT"
] | 2 | 2018-08-28T12:05:55.000Z | 2018-08-30T14:45:14.000Z | #include "../../inc/Bowling.hpp"
#include "gmock/gmock.h"
| 12 | 32 | 0.633333 | LuckyCode7 |
b6109d27e3e82bcc83f0a9260d4b658cbd7aa318 | 249 | hpp | C++ | include/Graphic/GLContext.hpp | xubury/OpenGLApp | 60d199351ec0406b372dd0aeaaea0a5b1664a327 | [
"BSD-3-Clause"
] | 2 | 2021-06-27T12:52:57.000Z | 2021-08-24T21:25:57.000Z | include/Graphic/GLContext.hpp | xubury/OpenGLApp | 60d199351ec0406b372dd0aeaaea0a5b1664a327 | [
"BSD-3-Clause"
] | null | null | null | include/Graphic/GLContext.hpp | xubury/OpenGLApp | 60d199351ec0406b372dd0aeaaea0a5b1664a327 | [
"BSD-3-Clause"
] | null | null | null | #ifndef GL_CONTEXT_HPP
#define GL_CONTEXT_HPP
#include "Core/Export.hpp"
#include "glbinding/glbinding.h"
namespace te {
class TE_API GLContext {
public:
static void init(glbinding::GetProcAddress procAddr);
};
} // namespace te
#endif
| 14.647059 | 57 | 0.738956 | xubury |
b610e17609985e86cb4be0469eda24bd67abf40e | 2,727 | cpp | C++ | Company-Google/568. Maximum Vacation Days/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 1 | 2021-11-19T19:58:33.000Z | 2021-11-19T19:58:33.000Z | Company-Google/568. Maximum Vacation Days/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | null | null | null | Company-Google/568. Maximum Vacation Days/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 2 | 2021-11-26T12:47:27.000Z | 2022-01-13T16:14:46.000Z | //
// main.cpp
// 568. Maximum Vacation Days
//
// Created by Jaylen Bian on 8/4/20.
// Copyright © 2020 边俊林. All rights reserved.
//
#include <map>
#include <set>
#include <queue>
#include <string>
#include <stack>
#include <vector>
#include <cstdio>
#include <numeric>
#include <cstdlib>
#include <utility>
#inclu... | 27 | 85 | 0.468647 | Minecodecraft |
b61265cce8be86d0b6b855fa026e9ad404d62849 | 3,002 | cpp | C++ | src/oruw_log.cpp | asherikov/oru_walk_module | 96a58b331b7d3011f414cc9b1643b44b80ea8710 | [
"BSD-2-Clause"
] | 9 | 2016-02-21T14:23:27.000Z | 2021-07-30T13:27:24.000Z | src/oruw_log.cpp | asherikov/oru_walk_module | 96a58b331b7d3011f414cc9b1643b44b80ea8710 | [
"BSD-2-Clause"
] | null | null | null | src/oruw_log.cpp | asherikov/oru_walk_module | 96a58b331b7d3011f414cc9b1643b44b80ea8710 | [
"BSD-2-Clause"
] | 5 | 2015-06-23T16:30:21.000Z | 2018-08-20T11:39:32.000Z | /**
* @file
* @author Alexander Sherikov
* @date 03.01.2012 19:17:44 MSK
*/
#include "oruw_log.h"
#ifdef ORUW_LOG_ENABLE
oruw_log *oruw_log_instance = NULL;
oruw_log::oruw_log ()
{
FJointsLog = fopen ("./oru_joints.log", "w");
FCoMLog = fopen ("./oru_com.log", "w");
FFeetLog = fopen ("./oru_feet.l... | 25.65812 | 108 | 0.557295 | asherikov |
b61751cd47b0ed253e511e2778d215edae6bcc34 | 593 | hpp | C++ | include/tao/pq/is_aggregate.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 69 | 2016-08-05T19:16:04.000Z | 2018-11-24T15:13:46.000Z | include/tao/pq/is_aggregate.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 13 | 2016-11-24T16:42:28.000Z | 2018-09-11T18:55:40.000Z | include/tao/pq/is_aggregate.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 13 | 2016-09-22T17:31:10.000Z | 2018-10-18T02:56:49.000Z | // Copyright (c) 2021-2022 Daniel Frey and Dr. Colin Hirsch
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#ifndef TAO_PQ_IS_AGGREGATE_HPP
#define TAO_PQ_IS_AGGREGATE_HPP
namespace tao::pq
{
template< typenam... | 26.954545 | 91 | 0.750422 | huzaifanazir |
b6204a4c927872cdb28f94311ed7c0408b6a1e04 | 1,552 | cpp | C++ | EU4toV3Tests/EU4WorldTests/WarParserTests/WarParserTests.cpp | ParadoxGameConverters/EU4toVic3 | e055d5fbaadc21e37f4bce5b3a4f4c1e415598fa | [
"MIT"
] | 5 | 2021-05-22T20:10:05.000Z | 2021-05-28T08:07:05.000Z | EU4toV3Tests/EU4WorldTests/WarParserTests/WarParserTests.cpp | klorpa/EU4toVic3 | 36b53a76402c715f618dd88f0caf962072bda8cf | [
"MIT"
] | 13 | 2021-05-25T08:26:11.000Z | 2022-01-13T18:24:12.000Z | EU4toV3Tests/EU4WorldTests/WarParserTests/WarParserTests.cpp | Zemurin/EU4toVic3 | 532b9a11e0e452be54d89e12cff5fb1f84ac3d11 | [
"MIT"
] | 5 | 2021-05-22T13:45:43.000Z | 2021-12-25T00:00:04.000Z | #include "WarParser/WarParser.h"
#include "gtest/gtest.h"
#include <gmock/gmock-matchers.h>
using testing::ElementsAre;
TEST(EU4World_WarParserTests, primitivesDefaultToDefaults)
{
std::stringstream input;
const EU4::WarParser war(input);
EXPECT_TRUE(war.getAttackers().empty());
EXPECT_TRUE(war.getDefenders().emp... | 33.021277 | 67 | 0.690077 | ParadoxGameConverters |
b62106c8d6dc1b175e62efef9bab7280c4674e27 | 1,147 | cpp | C++ | acmicpc.net/3758.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | 4 | 2016-04-15T07:54:39.000Z | 2021-01-11T09:02:16.000Z | acmicpc.net/3758.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | acmicpc.net/3758.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <algorithm>
using namespace std;
struct scoreboard {
int uid;
int total;
int submission;
int lastTime;
int prob[101];
bool operator<(const scoreboard& u) const {
if (total == u.total) {
if (submission == u.submission) {
return lastTime < u.lastTime;
}
... | 18.803279 | 104 | 0.537053 | kbu1564 |
b623760bb3e99bfa241a860b0b1815baea9609d6 | 4,954 | hpp | C++ | hashkitcxx/hash_utils.hpp | sineang01/hashlibcxx | 3fc50e6bd69eab0b3a33d388ff22dee5e8cfea3d | [
"BSD-3-Clause"
] | null | null | null | hashkitcxx/hash_utils.hpp | sineang01/hashlibcxx | 3fc50e6bd69eab0b3a33d388ff22dee5e8cfea3d | [
"BSD-3-Clause"
] | null | null | null | hashkitcxx/hash_utils.hpp | sineang01/hashlibcxx | 3fc50e6bd69eab0b3a33d388ff22dee5e8cfea3d | [
"BSD-3-Clause"
] | null | null | null | /*
* HashKitCXX
*
* Copyright (c) 2018, Simone Angeloni
* 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,
* t... | 42.34188 | 100 | 0.708317 | sineang01 |
b6260035721425e990f5acf25a44ffc36f0f0875 | 1,820 | hpp | C++ | src/main/cpp/inverted_penguin/core/dictionary/detail/ValueDictionaryBuilderKeyIterator.hpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/inverted_penguin/core/dictionary/detail/ValueDictionaryBuilderKeyIterator.hpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/inverted_penguin/core/dictionary/detail/ValueDictionaryBuilderKeyIterator.hpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | #ifndef __INVERTED_PENGUIN__CORE__DICTIONARY__DETAIL__VALUEDICTIONARYBUILDERKEYITERATOR_HPP__
#define __INVERTED_PENGUIN__CORE__DICTIONARY__DETAIL__VALUEDICTIONARYBUILDERKEYITERATOR_HPP__
#include <inverted_penguin/core/dictionary/detail/ValueDictionaryBuilderBaseIterator.hpp>
namespace inverted_penguin {
namespace... | 25.633803 | 93 | 0.740659 | tomault |
b62ef05d61a650ffa5ab4f4901870de0297dfba6 | 7,778 | cpp | C++ | tests/Unit/PointwiseFunctions/AnalyticSolutions/GeneralRelativity/Test_Tov.cpp | kidder/spectre | 97ae95f72320f9f67895d3303824e64de6fd9077 | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | tests/Unit/PointwiseFunctions/AnalyticSolutions/GeneralRelativity/Test_Tov.cpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | tests/Unit/PointwiseFunctions/AnalyticSolutions/GeneralRelativity/Test_Tov.cpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <cmath>
#include <cstddef>
#include <memory>
#include <pup.h>
#include "DataStructures/Tensor/Tensor.hpp"
#include "Framework/TestHelpers.hpp"
#include "PointwiseFunctions/AnalyticSolutions/Genera... | 42.972376 | 94 | 0.715222 | kidder |
b62ef1a537a177ccea93dc52c250127125601f6d | 317 | hpp | C++ | gui/SettingsWidget/SettingsChoice.hpp | razaqq/PotatoAlert | 4dfb54a7841ca71d8dbf58620173f2a9fc1886f2 | [
"MIT"
] | 20 | 2020-06-16T01:30:29.000Z | 2022-03-08T14:54:30.000Z | gui/SettingsWidget/SettingsChoice.hpp | razaqq/PotatoAlert | 4dfb54a7841ca71d8dbf58620173f2a9fc1886f2 | [
"MIT"
] | 26 | 2019-07-15T10:49:47.000Z | 2022-02-16T19:25:48.000Z | gui/SettingsWidget/SettingsChoice.hpp | razaqq/PotatoAlert | 4dfb54a7841ca71d8dbf58620173f2a9fc1886f2 | [
"MIT"
] | 5 | 2020-06-16T01:31:03.000Z | 2022-01-22T19:43:48.000Z | // Copyright 2020 <github.com/razaqq>
#pragma once
#include <QWidget>
#include <QString>
#include <QButtonGroup>
namespace PotatoAlert {
class SettingsChoice : public QWidget
{
public:
SettingsChoice(QWidget* parent, const std::vector<QString>& buttons);
QButtonGroup* btnGroup;
};
} // namespace PotatoAlert
| 16.684211 | 70 | 0.750789 | razaqq |
b62f03ee52db12715b387a848eb67c12e0907aee | 11,350 | hh | C++ | src/devices/atmel/sam4s/sam4s.hh | smindinvern/usb-micro | 89b24a70a422352a71f92a5d3a6df796bcf32956 | [
"BSD-3-Clause"
] | null | null | null | src/devices/atmel/sam4s/sam4s.hh | smindinvern/usb-micro | 89b24a70a422352a71f92a5d3a6df796bcf32956 | [
"BSD-3-Clause"
] | null | null | null | src/devices/atmel/sam4s/sam4s.hh | smindinvern/usb-micro | 89b24a70a422352a71f92a5d3a6df796bcf32956 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright 2018 Nickolas T Lloyd <ultrageek.lloyd@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of condi... | 48.504274 | 84 | 0.668282 | smindinvern |
ac07cf1391399288f5a231efa432314b28a3097f | 7,021 | cpp | C++ | src/Open3DMotion/Bindings/Python/PythonConvert.cpp | Open3DMotionGroup/Open3DMotion | 302036f975eab80ccb91bb4f6f4ef58965c29f68 | [
"BSD-3-Clause"
] | 4 | 2021-03-31T20:46:16.000Z | 2021-12-16T20:57:21.000Z | src/Open3DMotion/Bindings/Python/PythonConvert.cpp | Open3DMotionGroup/Open3DMotion | 302036f975eab80ccb91bb4f6f4ef58965c29f68 | [
"BSD-3-Clause"
] | 40 | 2018-03-11T15:14:50.000Z | 2022-03-23T18:13:48.000Z | src/Open3DMotion/Bindings/Python/PythonConvert.cpp | Open3DMotionGroup/Open3DMotion | 302036f975eab80ccb91bb4f6f4ef58965c29f68 | [
"BSD-3-Clause"
] | 2 | 2018-05-12T13:45:32.000Z | 2021-03-31T20:46:17.000Z | /*--
Open3DMotion
Copyright (c) 2004-2018.
All rights reserved.
See LICENSE.txt for more information.
--*/
#include "PythonConvert.h"
#include "MemoryHandlerPython.h"
#include "Open3DMotion/OpenORM/Leaves/TreeString.h"
#include "Open3DMotion/OpenORM/Leaves/TreeBool.h"
#include "Open3DMotion/OpenORM... | 27.003846 | 114 | 0.653326 | Open3DMotionGroup |
ac07e073c01bc815a3cb1bf9ad22da06d164be70 | 2,201 | cpp | C++ | Source/Libraries/Asi/RuntimeCommandEngine/Parameter/Union.cpp | geoffviola/RuntimeCommandEngine | 0c46b2e751babe36ef72b80b356f7f7d30c5b9ec | [
"MIT"
] | null | null | null | Source/Libraries/Asi/RuntimeCommandEngine/Parameter/Union.cpp | geoffviola/RuntimeCommandEngine | 0c46b2e751babe36ef72b80b356f7f7d30c5b9ec | [
"MIT"
] | null | null | null | Source/Libraries/Asi/RuntimeCommandEngine/Parameter/Union.cpp | geoffviola/RuntimeCommandEngine | 0c46b2e751babe36ef72b80b356f7f7d30c5b9ec | [
"MIT"
] | null | null | null | #include "Union.hpp"
#include <functional>
#include <algorithm>
#include <Asi/RuntimeCommandEngine/StringUtils.hpp>
namespace asi
{
namespace runtimecommandengine
{
namespace parameter
{
Union::Union(std::string const &name, ParameterAbstract *pm1, ParameterAbstract *pm2)
: ParameterAbstract(name)
{
unionizedPar... | 20.37963 | 103 | 0.696502 | geoffviola |
ac080a5574cccf91f32bd2d6c4b5df7e03d148a5 | 12,229 | cpp | C++ | pattern/test/class_traits_test.cpp | vinders/pandora_toolbox | f32e301ebaa2b281a1ffc3d6d0c556091420520a | [
"MIT"
] | 2 | 2020-11-19T03:23:35.000Z | 2021-02-25T03:34:40.000Z | pattern/test/class_traits_test.cpp | vinders/pandora_toolbox | f32e301ebaa2b281a1ffc3d6d0c556091420520a | [
"MIT"
] | null | null | null | pattern/test/class_traits_test.cpp | vinders/pandora_toolbox | f32e301ebaa2b281a1ffc3d6d0c556091420520a | [
"MIT"
] | null | null | null | /*******************************************************************************
MIT License
Copyright (c) 2021 Romain Vinders
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, ... | 41.175084 | 152 | 0.69188 | vinders |
ac089581f7580d20135cc492ba7a72f259ee7f5c | 1,650 | hpp | C++ | include/tcframe/runner/verdict/TestCaseVerdict.hpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 76 | 2015-03-31T01:36:17.000Z | 2021-12-29T08:16:25.000Z | include/tcframe/runner/verdict/TestCaseVerdict.hpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 68 | 2016-11-28T18:58:26.000Z | 2018-08-10T13:33:35.000Z | include/tcframe/runner/verdict/TestCaseVerdict.hpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 17 | 2015-04-24T03:52:32.000Z | 2022-03-11T23:28:02.000Z | #pragma once
#include <string>
#include <tuple>
#include <utility>
#include "Verdict.hpp"
#include "tcframe/util.hpp"
using std::move;
using std::tie;
namespace tcframe {
struct TestCaseVerdict {
private:
Verdict verdict_;
optional<double> points_;
public:
TestCaseVerdict()
: TestCaseVerdi... | 21.428571 | 68 | 0.551515 | tcgen |
ac1db31f863b9a921052696d409daa33d36f3c9b | 3,289 | hpp | C++ | libs/network/include/suil/net/zmq/operators.hpp | dccarter/suil | f97fc45deee53fef3e47b070d00b12786ef367b4 | [
"MIT"
] | 6 | 2019-06-18T03:17:50.000Z | 2022-03-05T08:23:38.000Z | libs/network/include/suil/net/zmq/operators.hpp | dccarter/suil | f97fc45deee53fef3e47b070d00b12786ef367b4 | [
"MIT"
] | 1 | 2021-09-10T06:15:02.000Z | 2021-09-10T06:15:02.000Z | libs/network/include/suil/net/zmq/operators.hpp | dccarter/suil | f97fc45deee53fef3e47b070d00b12786ef367b4 | [
"MIT"
] | null | null | null | //
// Created by Mpho Mbotho on 2020-12-11.
//
#ifndef LIBS_NETWORK_INCLUDE_SUIL_NET_ZMQ_OPERATORS_HPP
#define LIBS_NETWORK_INCLUDE_SUIL_NET_ZMQ_OPERATORS_HPP
#include <suil/net/zmq/message.hpp>
#include <suil/net/zmq/common.hpp>
namespace suil::net::zmq {
class Socket;
class SendOperator {
public:
... | 28.850877 | 99 | 0.591973 | dccarter |
ac24a1dca1f9e055edf0257c331cd118968d5bce | 447 | cpp | C++ | tests/Hashes/sha512.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 99 | 2015-01-06T01:53:26.000Z | 2022-01-31T18:18:27.000Z | tests/Hashes/sha512.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 27 | 2015-03-09T05:46:53.000Z | 2020-05-06T02:52:18.000Z | tests/Hashes/sha512.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 42 | 2015-03-18T03:44:43.000Z | 2022-03-31T21:34:06.000Z | #include <gtest/gtest.h>
#include "Hashes/Hashes.h"
#include "testvectors/sha/sha512shortmsg.h"
TEST(SHA512, short_msg) {
ASSERT_EQ(SHA512_SHORT_MSG.size(), SHA512_SHORT_MSG_HEXDIGEST.size());
for ( unsigned int i = 0; i < SHA512_SHORT_MSG.size(); ++i ) {
auto sha512 = OpenPGP::Hash::use(OpenPGP::H... | 24.833333 | 100 | 0.689038 | httese |
ac2be19edc7de9ba922bba521358f01f2ee4791c | 1,404 | cpp | C++ | src/CallStack.cpp | Igor-Krzywda/ib-pseudocode-interpreter | d83e05a1ab230771dc465dd899691519e56b4dea | [
"MIT"
] | 2 | 2020-11-30T20:29:29.000Z | 2020-12-11T18:04:47.000Z | src/CallStack.cpp | Igor-Krzywda/ib-pseudocode-interpreter | d83e05a1ab230771dc465dd899691519e56b4dea | [
"MIT"
] | null | null | null | src/CallStack.cpp | Igor-Krzywda/ib-pseudocode-interpreter | d83e05a1ab230771dc465dd899691519e56b4dea | [
"MIT"
] | null | null | null | #include "include/CallStack.hpp"
namespace cstk{
CallStack::CallStack(ast::AST *tree, bool log){
call_stack.push(std::make_unique<ar::AR>("main", tree));
log_stack = log;
}
void CallStack::pop(){
call_stack.pop();
if(log_stack) print(false);
}
void CallStack::push_AR(std::string name, ast::AST *root... | 22.645161 | 81 | 0.655271 | Igor-Krzywda |
ac2be949d407a3256232b2831bb8fa3b0d662481 | 6,538 | cpp | C++ | cplexlpcompare/Bound.cpp | krk/cplexlpcompare | 1874c6c216f7945d0278e418923fff93b1d6adae | [
"MIT"
] | null | null | null | cplexlpcompare/Bound.cpp | krk/cplexlpcompare | 1874c6c216f7945d0278e418923fff93b1d6adae | [
"MIT"
] | null | null | null | cplexlpcompare/Bound.cpp | krk/cplexlpcompare | 1874c6c216f7945d0278e418923fff93b1d6adae | [
"MIT"
] | null | null | null | // Copyright (c) 2014 Kerem KAT
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files(the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publis... | 26.257028 | 115 | 0.611961 | krk |
ac344932671d6a2385393c465c52843087d21606 | 2,947 | hpp | C++ | taskflow/cuda/cublas/cublas_helper.hpp | larkwiot/parallel | 2666418e43728358d18fd6b20fa4cc90514937f9 | [
"MIT"
] | null | null | null | taskflow/cuda/cublas/cublas_helper.hpp | larkwiot/parallel | 2666418e43728358d18fd6b20fa4cc90514937f9 | [
"MIT"
] | null | null | null | taskflow/cuda/cublas/cublas_helper.hpp | larkwiot/parallel | 2666418e43728358d18fd6b20fa4cc90514937f9 | [
"MIT"
] | null | null | null | #pragma once
#include "cublas_handle.hpp"
/**
@file cublas_helper.hpp
*/
namespace tf {
/**
@brief copies vector data from host to device
This method copies @c n elements from a vector @c h in host memory space
to a vector @c d in GPU memory space.
The storage spacing between consecutive elements is given by @c... | 28.336538 | 83 | 0.656939 | larkwiot |
ac3a03f2d80f0a1cf59e1f858f87e8986a4ee85b | 5,905 | cc | C++ | build/ARM/python/swig/pyobject.py.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/swig/pyobject.py.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/swig/pyobject.py.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_pyobject[] = {
120,156,181,86,95,111,27,69,16,159,189,59,59,177,19,55,
46,81,255,209,64,141,80,132,169,32,150,16,21,15,173,42,
10,69,80,36,66,57,63,180,13,136,195,185,59,219,231,216,
119,214,237,166,197,200,121,33,21,240,128,196,135,64,... | 55.186916 | 66 | 0.664522 | Jakgn |
ac40ce34cd7df48058c74b9d87949b342b7a30e5 | 646 | cpp | C++ | tests/src/ooex0.cpp | tjschweizer/pharos | 4c5cea68c4489d798e341319d1d5e0d2fee71422 | [
"RSA-MD"
] | 3 | 2015-07-15T08:43:56.000Z | 2021-02-28T17:53:52.000Z | tests/src/ooex0.cpp | tjschweizer/pharos | 4c5cea68c4489d798e341319d1d5e0d2fee71422 | [
"RSA-MD"
] | null | null | null | tests/src/ooex0.cpp | tjschweizer/pharos | 4c5cea68c4489d798e341319d1d5e0d2fee71422 | [
"RSA-MD"
] | null | null | null | // Copyright 2016 Carnegie Mellon University. See LICENSE file for terms.
#include <stdlib.h>
#include <stdio.h>
/*
* This basic class variable and method access
*/
class ClassA {
private:
int c,d;
short g;
public:
int a;
ClassA() {
c = d = 42;
g = 24;
}
~ClassA() { pr... | 15.380952 | 75 | 0.49226 | tjschweizer |
ac4e1bbb66bcc8c05336bd9f9ae1408708622917 | 1,877 | hpp | C++ | include/trim_dht.hpp | pan3rock/discrete-hankel-transform | 708d3d32e1c4170ed68322e53e26267f93e0ab9d | [
"MIT"
] | null | null | null | include/trim_dht.hpp | pan3rock/discrete-hankel-transform | 708d3d32e1c4170ed68322e53e26267f93e0ab9d | [
"MIT"
] | null | null | null | include/trim_dht.hpp | pan3rock/discrete-hankel-transform | 708d3d32e1c4170ed68322e53e26267f93e0ab9d | [
"MIT"
] | 1 | 2021-06-16T09:56:44.000Z | 2021-06-16T09:56:44.000Z | /*
* File: trim_dht.hpp
* Created Date: 2020-01-01
* Author: Lei Pan
* Contact: <panlei7@gmail.com>
*
* Last Modified: Wednesday January 1st 2020 11:27:12 am
*
* MIT License
*
* Copyright (c) 2020 Lei Pan
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software an... | 31.283333 | 80 | 0.703783 | pan3rock |
ac4ec50debacbdfb80c811473fe9a903669bb5fc | 68,462 | cc | C++ | Digit_Example/opt_two_step/gen/opt/J_swing_toe_linear_velocity_y_LeftStance.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Digit_Example/opt_two_step/gen/opt/J_swing_toe_linear_velocity_y_LeftStance.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Digit_Example/opt_two_step/gen/opt/J_swing_toe_linear_velocity_y_LeftStance.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Fri 5 Nov 2021 16:29:55 GMT-04:00
*/
#ifdef MATLAB_MEX_FILE
#include <stdexcept>
#include <cmath>
#include<math.h>
/**
* Copied from Wolfram Mathematica C Definitions file mdefs.hpp
* Changed marcos to inline functions (Eric Cousineau)
*/
inline double Power(doubl... | 26.587184 | 1,864 | 0.663697 | prem-chand |
ac51bc97c1ffacf6975b4cf6660f38767d3f2de6 | 20,274 | cpp | C++ | tests/local_rma.cpp | tehrengruber/GHEX | f164bb625aaa106f77d31d45fce05c4711b066f0 | [
"BSD-3-Clause"
] | null | null | null | tests/local_rma.cpp | tehrengruber/GHEX | f164bb625aaa106f77d31d45fce05c4711b066f0 | [
"BSD-3-Clause"
] | null | null | null | tests/local_rma.cpp | tehrengruber/GHEX | f164bb625aaa106f77d31d45fce05c4711b066f0 | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2020, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <gtest/gtest.h>
#include <thread>
#include <array>
#include <gridtools/common/array.hpp>
#ifndef GHEX_TEST_USE_UCX
#... | 47.816038 | 168 | 0.600523 | tehrengruber |
ac55c026973d593bb04d9328d5c30a28fa0ef43a | 3,267 | hpp | C++ | NonOpt/src/NonOptDeclarations.hpp | frankecurtis/NonOpt | f81ff1c818dcde382cf6045a671bf8bc1d3a3467 | [
"MIT"
] | 4 | 2021-06-27T18:13:59.000Z | 2022-01-25T00:36:56.000Z | NonOpt/src/NonOptDeclarations.hpp | frankecurtis/NonOpt | f81ff1c818dcde382cf6045a671bf8bc1d3a3467 | [
"MIT"
] | null | null | null | NonOpt/src/NonOptDeclarations.hpp | frankecurtis/NonOpt | f81ff1c818dcde382cf6045a671bf8bc1d3a3467 | [
"MIT"
] | 1 | 2021-06-27T18:14:02.000Z | 2021-06-27T18:14:02.000Z | // Copyright (C) 2022 Frank E. Curtis
//
// This code is published under the MIT License.
//
// Author(s) : Frank E. Curtis
#ifndef __NONOPTDECLARATIONS_HPP__
#define __NONOPTDECLARATIONS_HPP__
#include "NonOptException.hpp"
namespace NonOpt
{
/** @name Exceptions */
//@{
/**
* NonOpt exceptions
*/
DECLARE_EXCEPT... | 33.336735 | 71 | 0.87083 | frankecurtis |
ac58cf061ed70b7dfa63ab56eb4f5a2748a7e370 | 5,274 | cpp | C++ | Chapter_8_Advanced_Topics/8.7_Problem_Decomposition/kattis_umbraldecoding.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_8_Advanced_Topics/8.7_Problem_Decomposition/kattis_umbraldecoding.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_8_Advanced_Topics/8.7_Problem_Decomposition/kattis_umbraldecoding.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /**Kattis - umbraldecoding
* A question that is simple in theory, but hard in practise. The hint given is recursive subdivision. Ie, we
* for a given umbra and rectangle, we try to cut away all the umbra parts of the rectangle. If the rectangle
* is completely in the umbra, we ignore it. If its completely out of the... | 37.671429 | 114 | 0.575465 | BrandonTang89 |
ac5ea52c9afcfe26282ea760f82a4e5a0d2f5b4b | 5,199 | cpp | C++ | image_tools/src/cv_mat_sensor_msgs_image_type_adapter.cpp | swgu931/demos | 3af19c93c7abd9a83caca47de0780e941faeb22b | [
"Apache-2.0"
] | 1 | 2021-05-17T02:06:11.000Z | 2021-05-17T02:06:11.000Z | image_tools/src/cv_mat_sensor_msgs_image_type_adapter.cpp | swgu931/demos | 3af19c93c7abd9a83caca47de0780e941faeb22b | [
"Apache-2.0"
] | null | null | null | image_tools/src/cv_mat_sensor_msgs_image_type_adapter.cpp | swgu931/demos | 3af19c93c7abd9a83caca47de0780e941faeb22b | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... | 25.360976 | 89 | 0.727255 | swgu931 |
ac60bc98616bb2b1e6daa39cb231744e40d510af | 4,767 | cpp | C++ | modules/trivia/cmd_ping.cpp | brainboxdotcc/triviabot | d074256f38a002bfb9d352c4f80bc45f19a71384 | [
"Apache-2.0"
] | 23 | 2020-06-28T18:07:03.000Z | 2022-03-02T20:12:47.000Z | modules/trivia/cmd_ping.cpp | brainboxdotcc/triviabot | d074256f38a002bfb9d352c4f80bc45f19a71384 | [
"Apache-2.0"
] | 4 | 2020-10-08T13:37:39.000Z | 2022-03-26T22:41:19.000Z | modules/trivia/cmd_ping.cpp | brainboxdotcc/triviabot | d074256f38a002bfb9d352c4f80bc45f19a71384 | [
"Apache-2.0"
] | 13 | 2020-10-08T13:32:02.000Z | 2021-12-02T00:00:28.000Z | /************************************************************************************
*
* TriviaBot, The trivia bot for discord based on Fruitloopy Trivia for ChatSpike IRC
*
* Copyright 2004 Craig Edwards <support@brainbox.cc>
*
* Core based on Sporks, the Learning Discord Bot, Craig Edwards (c) 2019.
*
* Lic... | 45.4 | 254 | 0.634571 | brainboxdotcc |
ac632f73acca4ed129cbe6e7824e8fdcf53f23aa | 525 | cpp | C++ | acwing/91.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | acwing/91.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | acwing/91.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
const int maxn=20+7,maxm=1<<20;
int n;
int dp[maxm][maxn],w[maxn][maxn];
int main(int argc, char const *argv[])
{
cin>>n;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cin>>w[i][j];
}
}
memset(dp,0x3f,sizeof(dp));
dp[1][0]=0;
for(int i=0;i<1<<n;i++){
for(int j=0... | 18.103448 | 53 | 0.481905 | PIPIKAI |
ac653b32c826c812cd7dd162bd50f2ffd44a7415 | 2,507 | hh | C++ | neb/inc/com/centreon/logging/file.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/logging/file.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/logging/file.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2011-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... | 31.734177 | 75 | 0.523734 | sdelafond |
ac6f2ae80439a44b9a8967181f581e1ae4ea4350 | 3,933 | cc | C++ | src/buffer.cc | libattachsql/libattachsql | 7b82164efd09292a62f086a05bd6401ce8c23167 | [
"Apache-2.0"
] | 25 | 2015-01-14T07:47:57.000Z | 2017-11-07T01:42:21.000Z | src/buffer.cc | libattachsql/libattachsql | 7b82164efd09292a62f086a05bd6401ce8c23167 | [
"Apache-2.0"
] | 25 | 2015-01-11T23:56:12.000Z | 2020-08-28T15:10:08.000Z | src/buffer.cc | libattachsql/libattachsql | 7b82164efd09292a62f086a05bd6401ce8c23167 | [
"Apache-2.0"
] | 16 | 2015-02-24T18:30:30.000Z | 2018-03-28T15:29:07.000Z | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
* Copyright 2014 Hewlett-Packard Development Company, L.P.
*
* 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.... | 27.697183 | 106 | 0.720315 | libattachsql |
ac70d504b1c0e1e0db989e94b45fb4d284ee9c44 | 1,551 | cpp | C++ | source/main-http-ipv6.cpp | EmbeddedPlanet/mbed-os-example-http | e1f7713462f0ce16f555770c9eb8370b3ff6bb21 | [
"MIT"
] | null | null | null | source/main-http-ipv6.cpp | EmbeddedPlanet/mbed-os-example-http | e1f7713462f0ce16f555770c9eb8370b3ff6bb21 | [
"MIT"
] | null | null | null | source/main-http-ipv6.cpp | EmbeddedPlanet/mbed-os-example-http | e1f7713462f0ce16f555770c9eb8370b3ff6bb21 | [
"MIT"
] | null | null | null | #include "select-demo.h"
#if DEMO == DEMO_HTTP_IPV6
#include "mbed.h"
#include "network-helper.h"
#include "http_request.h"
void dump_response(HttpResponse* res) {
printf("Status: %d - %s\n", res->get_status_code(), res->get_status_message().c_str());
printf("Headers:\n");
for (size_t ix = 0; ix < res->... | 31.653061 | 109 | 0.631206 | EmbeddedPlanet |
ac73ca9b3d1ceac2d0918cce6430fc39232d48de | 677 | cc | C++ | benchmarks/timer_event_loop.cc | toffaletti/libten | 00c6dcc91c8d769c74ed9063277b1120c9084427 | [
"Apache-2.0"
] | 23 | 2015-02-28T12:51:54.000Z | 2021-07-21T10:34:20.000Z | benchmarks/timer_event_loop.cc | toffaletti/libten | 00c6dcc91c8d769c74ed9063277b1120c9084427 | [
"Apache-2.0"
] | 1 | 2015-04-26T05:44:18.000Z | 2015-04-26T05:44:18.000Z | benchmarks/timer_event_loop.cc | toffaletti/libten | 00c6dcc91c8d769c74ed9063277b1120c9084427 | [
"Apache-2.0"
] | 8 | 2015-05-04T08:04:11.000Z | 2020-09-07T11:30:56.000Z | #include "ten/task.hh"
#include "ten/descriptors.hh"
#include <iostream>
using namespace ten;
using namespace std::chrono;
static void yield_task() {
uint64_t counter = 0;
task::spawn([&] {
for (;;) {
this_task::yield();
++counter;
}
});
for (;;) {
this... | 19.911765 | 68 | 0.480059 | toffaletti |
ac797247f8bce3a9b5dec447c4db6216ae5e039f | 13,010 | cpp | C++ | GIOVANNI/gambatte/gambatte_qt/src/framework/src/videodialog.cpp | ReallyEvilFish/1234 | d4f77bf2177c381e07d596aa425bc1a048305c03 | [
"MIT"
] | 9 | 2021-02-03T05:44:48.000Z | 2022-03-19T12:42:52.000Z | GIOVANNI/gambatte/gambatte_qt/src/framework/src/videodialog.cpp | ReallyEvilFish/1234 | d4f77bf2177c381e07d596aa425bc1a048305c03 | [
"MIT"
] | 5 | 2020-08-09T13:04:51.000Z | 2022-03-25T11:41:48.000Z | GIOVANNI/gambatte/gambatte_qt/src/framework/src/videodialog.cpp | Manurocker95/GiovanniEmulator | d4f77bf2177c381e07d596aa425bc1a048305c03 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... | 35.643836 | 104 | 0.681937 | ReallyEvilFish |
ac7cd725bfe35dc35b265b5c06414b7affacf105 | 95 | cpp | C++ | src/objects/abstractscene.cpp | hardware/ObjectViewer | 718922e00a6f3e83510e6091f7630ac3c0e5066b | [
"MIT"
] | 52 | 2015-02-26T04:00:19.000Z | 2021-04-25T03:18:25.000Z | src/common/abstractscene.cpp | hardware/OpenGLSBExamplesQt | 62c3e1bb1e47e20e6f82074c95814cf24915ba14 | [
"MIT"
] | 2 | 2017-03-15T02:11:06.000Z | 2017-12-04T12:26:06.000Z | src/objects/abstractscene.cpp | hardware/ObjectViewer | 718922e00a6f3e83510e6091f7630ac3c0e5066b | [
"MIT"
] | 21 | 2015-09-09T13:59:02.000Z | 2021-04-25T03:18:27.000Z | #include "abstractscene.h"
AbstractScene::AbstractScene(QObject* parent) : QObject(parent) {}
| 23.75 | 66 | 0.768421 | hardware |
ac8744075523a0fda39d277e97d845adb9df9eeb | 1,432 | hpp | C++ | include/stats/bmo_stats.hpp | kthohr/BaseMatrixOps | cfcb4c9dac79c8ccac3816b26220c77dc0ae90c8 | [
"Apache-2.0"
] | null | null | null | include/stats/bmo_stats.hpp | kthohr/BaseMatrixOps | cfcb4c9dac79c8ccac3816b26220c77dc0ae90c8 | [
"Apache-2.0"
] | 1 | 2022-02-11T15:51:19.000Z | 2022-02-11T15:51:19.000Z | include/stats/bmo_stats.hpp | kthohr/BaseMatrixOps | cfcb4c9dac79c8ccac3816b26220c77dc0ae90c8 | [
"Apache-2.0"
] | null | null | null | /*################################################################################
##
## Copyright (C) 2011-2022 Keith O'Hara
##
## This file is part of the StatsLib C++ library.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance... | 27.538462 | 86 | 0.623603 | kthohr |
12bfd5cc825b258a9dd1d176f615140311e6c74a | 407 | cpp | C++ | test/supgid.cpp | fitenne/yamc | 26141cb61eff63521cd282389495c8a9b9a1604d | [
"MIT"
] | 1 | 2022-03-27T05:01:04.000Z | 2022-03-27T05:01:04.000Z | test/supgid.cpp | fitenne/yamc | 26141cb61eff63521cd282389495c8a9b9a1604d | [
"MIT"
] | null | null | null | test/supgid.cpp | fitenne/yamc | 26141cb61eff63521cd282389495c8a9b9a1604d | [
"MIT"
] | null | null | null | // try setgroups
#include <grp.h>
#include <sys/types.h>
#include <unistd.h>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
gid_t grps[32] = {0};
setgroups(1, grps);
cout << "setgroups: " << strerror(errno) << endl;
auto sz = getgroups(32, grps);
for (int i = 0... | 18.5 | 53 | 0.545455 | fitenne |
12c66e731734a8a69df3cbdeb29137a9e830bfb8 | 1,143 | cpp | C++ | src/tempe/objects.cpp | ondra-novak/tempe | faaae56c186597a090ece9afa66ad0388ee69a88 | [
"MIT"
] | null | null | null | src/tempe/objects.cpp | ondra-novak/tempe | faaae56c186597a090ece9afa66ad0388ee69a88 | [
"MIT"
] | null | null | null | src/tempe/objects.cpp | ondra-novak/tempe | faaae56c186597a090ece9afa66ad0388ee69a88 | [
"MIT"
] | null | null | null | #include "interfaces.h"
#include "objects.h"
namespace Tempe {
GCReg::GCReg() :prev(0), next(0)
{
}
GCReg::~GCReg()
{
unregisterFromGC();
}
void GCReg::registerToGC(GCReg &root)
{
next = root.next;
prev = &root;
if (next) next->prev = this;
root.next = this;
// LS_LOG.debug("Registered object: ... | 15.875 | 70 | 0.592301 | ondra-novak |
12c7750a932f50dd13613f9f00857cbf59afed13 | 11,837 | cp | C++ | Sources_Common/Offline/Recording/CCalendarRecord.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Sources_Common/Offline/Recording/CCalendarRecord.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Sources_Common/Offline/Recording/CCalendarRecord.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless re... | 25.510776 | 234 | 0.686407 | mulberry-mail |
12c943c9be937b025f938736a35698821c794ff5 | 3,887 | cpp | C++ | Code/WSTrainingTJM/FrmTXTRead/WriteExcelMod.m/src/WriteExcelDlg.cpp | msdos41/CATIA_CAA_V5 | bf831f7ecc3c4937b227782ee8bebf7c6675792a | [
"MIT"
] | 5 | 2019-11-14T05:42:38.000Z | 2022-03-12T12:51:46.000Z | Code/WSTrainingTJM/FrmTXTRead/WriteExcelMod.m/src/WriteExcelDlg.cpp | msdos41/CATIA_CAA_V5 | bf831f7ecc3c4937b227782ee8bebf7c6675792a | [
"MIT"
] | null | null | null | Code/WSTrainingTJM/FrmTXTRead/WriteExcelMod.m/src/WriteExcelDlg.cpp | msdos41/CATIA_CAA_V5 | bf831f7ecc3c4937b227782ee8bebf7c6675792a | [
"MIT"
] | 4 | 2020-01-02T13:48:07.000Z | 2022-01-05T04:23:30.000Z | // COPYRIGHT Dassault Systemes 2018
//===================================================================
//
// WriteExcelDlg.cpp
// The dialog : WriteExcelDlg
//
//===================================================================
//
// Usage notes:
//
//===============================================================... | 33.222222 | 79 | 0.63185 | msdos41 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.