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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f3757a0fea66d0fe42392c4c74d3919750f0876 | 3,545 | cpp | C++ | src/Output/WebCamVJ.cpp | aurelijusb/webcam-games | cced15d3decdba637c41d1620a97e0a4f8ec3cb0 | [
"MIT"
] | 3 | 2017-02-05T21:14:42.000Z | 2017-04-11T22:46:09.000Z | src/Output/WebCamVJ.cpp | aurelijusb/webcam-games | cced15d3decdba637c41d1620a97e0a4f8ec3cb0 | [
"MIT"
] | null | null | null | src/Output/WebCamVJ.cpp | aurelijusb/webcam-games | cced15d3decdba637c41d1620a97e0a4f8ec3cb0 | [
"MIT"
] | null | null | null | #include <opencv/highgui.h>
#include "WebCamVJ.h"
#include "../Tracker/TrackerMotion.h"
#define INTESITY(x, y) { setIntensivity(x, y, getIntensity(x, y)); }
#define MAX_INTESITY(x, y) { setMaxIntensivity(x, y, getIntensity(x, y)); }
WebCamVJ::WebCamVJ(int webCamDevice): TrackerMotion(webCamDevice) {
for (int i=0;... | 23.476821 | 81 | 0.550071 | aurelijusb |
9f38777fb1f90919a0c58b2e79b574362fdcc321 | 2,460 | cpp | C++ | source/demo/src/keyboard_demo.cpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/demo/src/keyboard_demo.cpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/demo/src/keyboard_demo.cpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#include "hou/cor/cor_module.hpp"
#include "hou/mth/mth_module.hpp"
#include "hou/sys/sys_module.hpp"
#include "hou/cor/clock.hpp"
#include "hou/sys/event.hpp"
#include "hou/sys/keyboard.hpp"
#include "hou/sys/window.hpp"
#... | 25.625 | 79 | 0.594715 | DavideCorradiDev |
9f3aa8ed334745463f4a49aa3263097e79fd43ed | 1,219 | cpp | C++ | test/class/class.cpp | ExpLife0011/ezpp | 2c484155be17e4dda98bf082325ac1d6d79ea3bb | [
"MIT"
] | 26 | 2018-05-02T13:54:23.000Z | 2022-02-09T05:49:59.000Z | test/class/class.cpp | ez8-co/ezpp | 2c484155be17e4dda98bf082325ac1d6d79ea3bb | [
"MIT"
] | null | null | null | test/class/class.cpp | ez8-co/ezpp | 2c484155be17e4dda98bf082325ac1d6d79ea3bb | [
"MIT"
] | 6 | 2018-05-19T00:43:15.000Z | 2020-08-19T08:28:41.000Z | #include "../../ezpp.hpp"
#include <iostream>
#ifdef _MSC_VER
#include <windows.h>
#else
#define Sleep(ms) usleep(ms * 1000)
#endif
using namespace std;
class test
{
public:
EZPP_CLS_REGISTER();
test(void) {EZPP_CLS_INIT();}
};
void test_(void)
{
{
test all;
test all1;
test all2;
Sleep(2000);
}
test... | 12.313131 | 63 | 0.66694 | ExpLife0011 |
9f3c10b2d46a2ce85d09b01b977e23f1c3cbc35b | 85,734 | cpp | C++ | sdl1/VisualBoyAdvance/src/sdl/SDL.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/VisualBoyAdvance/src/sdl/SDL.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/VisualBoyAdvance/src/sdl/SDL.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
// Copyright (C) 1999-2003 Forgotten
// Copyright (C) 2005-2006 Forgotten and the VBA development team
// 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
// ... | 24.75 | 123 | 0.563102 | pdpdds |
9f41fbc29c1e407dd715c2789c22554486c643b4 | 265 | cpp | C++ | src/Gomoku/1win_result_show.cpp | HahnXia/GOMOKU | 52086bbb1fa2d6c59c5b05168c26c2fa6f155f70 | [
"MIT"
] | 1 | 2018-09-07T16:59:38.000Z | 2018-09-07T16:59:38.000Z | src/Gomoku/1win_result_show.cpp | HahnXia/GOMOKU | 52086bbb1fa2d6c59c5b05168c26c2fa6f155f70 | [
"MIT"
] | null | null | null | src/Gomoku/1win_result_show.cpp | HahnXia/GOMOKU | 52086bbb1fa2d6c59c5b05168c26c2fa6f155f70 | [
"MIT"
] | null | null | null | #include "1win_result_show.h"
#include "ui_win_result_show.h"
win_result_show::win_result_show(QWidget *parent) :
QDialog(parent),
ui(new Ui::win_result_show)
{
ui->setupUi(this);
}
win_result_show::~win_result_show()
{
delete ui;
}
| 17.666667 | 52 | 0.675472 | HahnXia |
9f4279322fe536526907b2bf244bdf0a3061dd2c | 20,410 | cc | C++ | src/api/ccapi/cinterface.cc | msalle/voms | 73f9db44c058f898ab8362a2e422a409ee468fde | [
"Apache-2.0"
] | 2 | 2016-09-15T16:29:03.000Z | 2020-08-03T13:14:09.000Z | src/api/ccapi/cinterface.cc | msalle/voms | 73f9db44c058f898ab8362a2e422a409ee468fde | [
"Apache-2.0"
] | 35 | 2015-01-16T15:22:13.000Z | 2022-03-06T15:23:14.000Z | src/api/ccapi/cinterface.cc | msalle/voms | 73f9db44c058f898ab8362a2e422a409ee468fde | [
"Apache-2.0"
] | 6 | 2015-01-23T10:48:02.000Z | 2022-03-20T22:36:52.000Z | /*********************************************************************
*
* Authors: Vincenzo Ciaschini - Vincenzo.Ciaschini@cnaf.infn.it
*
* Copyright (c) Members of the EGEE Collaboration. 2004-2010.
* See http://www.eu-egee.org/partners/ for details on the copyright holders.
*
* Licensed under the Apache Lice... | 21.759062 | 124 | 0.568839 | msalle |
9f42e50f463f3076369854104eef694f0c65b979 | 4,896 | hpp | C++ | include/Core/CastorUtils/DocMainPage.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 245 | 2015-10-29T14:31:45.000Z | 2022-03-31T13:04:45.000Z | include/Core/CastorUtils/DocMainPage.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 64 | 2016-03-11T19:45:05.000Z | 2022-03-31T23:58:33.000Z | include/Core/CastorUtils/DocMainPage.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 11 | 2018-05-24T09:07:43.000Z | 2022-03-21T21:05:20.000Z | /*!
*\~english
*\mainpage CastorUtils Library
*\section intro_sec Introduction
*This library contains some helper classes to ease the development of Castor3D engine.<br>
*\section summ Summary
*\subsection data Data
*<ul>
*<li>File management base class</li>
*<li>BinaryFile and TextFile specialisations</li>
... | 37.374046 | 244 | 0.714461 | Mu-L |
9f4441daa8128d58899b789a474fffdef05030df | 379 | cpp | C++ | NKZX_NOI_OJ/P1122.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | 1 | 2021-04-05T16:26:00.000Z | 2021-04-05T16:26:00.000Z | NKZX_NOI_OJ/P1122.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | null | null | null | NKZX_NOI_OJ/P1122.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | null | null | null | #include<cstdio>
#include<cstring>
int main(){
char s[241];int c,k;
scanf("%s%d",s,&k);c=strlen(s);
for(int i=0;i<k&&c>1;i++,c--){
int j=0;
for(int v=0;v<c-1;v++){
if(s[v]>s[v+1]){
j=v;break;
}
}
for(int v=j;v<c;v++){
s[v]=s... | 18.95 | 35 | 0.369393 | Rose2073 |
9f45a751da3b3b9fc803216138ff00f263a6d5fc | 2,667 | hpp | C++ | include/ulfberht/collections/PathTree.hpp | jrahm/Ulfberht | 159a4424dead614d4e331851af8ecea4c4daacfe | [
"BSD-2-Clause"
] | null | null | null | include/ulfberht/collections/PathTree.hpp | jrahm/Ulfberht | 159a4424dead614d4e331851af8ecea4c4daacfe | [
"BSD-2-Clause"
] | null | null | null | include/ulfberht/collections/PathTree.hpp | jrahm/Ulfberht | 159a4424dead614d4e331851af8ecea4c4daacfe | [
"BSD-2-Clause"
] | null | null | null | #ifndef INCLUDE_ULFBERHT_COLLECTIONS_PATHTREE_
#define INCLUDE_ULFBERHT_COLLECTIONS_PATHTREE_
/*
* Author: jrahm
* created: 2015/05/24
* PathTree.hpp: <description>
*/
#include <map>
#include <vector>
#include <string>
#include <cstdio>
namespace collections {
template <class ElemT, class PathElemT=std::string... | 25.644231 | 79 | 0.609674 | jrahm |
9f4aa00d5fc87410ffdaa3b6546a482a404a0f9d | 145,590 | inl | C++ | src/fonts/stb_font_arial_bold_31_latin_ext.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_arial_bold_31_latin_ext.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_arial_bold_31_latin_ext.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_arial_bold_31_latin... | 70.367327 | 131 | 0.808874 | stetre |
9f4b20bc1bf3f52bab343660c7811a659e86ec37 | 6,365 | cxx | C++ | Libs/MRML/Widgets/Testing/qMRMLSliceWidgetTest2.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Libs/MRML/Widgets/Testing/qMRMLSliceWidgetTest2.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Libs/MRML/Widgets/Testing/qMRMLSliceWidgetTest2.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | /*==============================================================================
Program: 3D Slicer
Copyright (c) Kitware Inc.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to in writing, software
distributed under the License... | 33.677249 | 113 | 0.692066 | forfullstack |
9f4f6a5d1f20b126b98bf34924521add9ab8e6cc | 46 | cpp | C++ | macroslib/tests/expectations/return_result_with_vec.cpp | skeet70/rust_swig | f6c596df93a65ee9ea8c31954b7d3e178ac124cb | [
"BSD-3-Clause"
] | null | null | null | macroslib/tests/expectations/return_result_with_vec.cpp | skeet70/rust_swig | f6c596df93a65ee9ea8c31954b7d3e178ac124cb | [
"BSD-3-Clause"
] | null | null | null | macroslib/tests/expectations/return_result_with_vec.cpp | skeet70/rust_swig | f6c596df93a65ee9ea8c31954b7d3e178ac124cb | [
"BSD-3-Clause"
] | null | null | null | "std::variant<RustVecU8, PosErr> f1() const";
| 23 | 45 | 0.695652 | skeet70 |
9f5157409a68abda7577314571dae0ab4f6996b7 | 2,128 | cpp | C++ | Codejam/Round2/D.cpp | transcompany/Training | d9ff0454a1171a46a8b81af5024f76d362d8e547 | [
"MIT"
] | null | null | null | Codejam/Round2/D.cpp | transcompany/Training | d9ff0454a1171a46a8b81af5024f76d362d8e547 | [
"MIT"
] | null | null | null | Codejam/Round2/D.cpp | transcompany/Training | d9ff0454a1171a46a8b81af5024f76d362d8e547 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define repd(i, a, b) for (int i = (a) - 1; i >= 0; i--)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define sz(a) ((int)a.size())
int T, n, m, has[101][101];
string s[1010], ns[1010], ... | 21.494949 | 76 | 0.337876 | transcompany |
9f51909a3d0d386558f133064dbbe10f4b778f79 | 10,630 | cpp | C++ | boinc/samples/gfx_html/webapi.cpp | tomasbrod/tbboinc | c125cc355b2dc9a1e536b5e5ded028d4e7f4613a | [
"MIT"
] | null | null | null | boinc/samples/gfx_html/webapi.cpp | tomasbrod/tbboinc | c125cc355b2dc9a1e536b5e5ded028d4e7f4613a | [
"MIT"
] | 4 | 2020-09-07T15:54:45.000Z | 2020-09-27T16:47:16.000Z | boinc_new/samples/gfx_html/webapi.cpp | tomasbrod/tbboinc | c125cc355b2dc9a1e536b5e5ded028d4e7f4613a | [
"MIT"
] | null | null | null | // This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2014-2015 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the L... | 33.533123 | 119 | 0.6127 | tomasbrod |
9f5636a2b43ff7a34b4fda35ddcf815b46010904 | 2,617 | hpp | C++ | include/codegen/include/RootMotion/FinalIK/InteractionTrigger_Range.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/RootMotion/FinalIK/InteractionTrigger_Range.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/RootMotion/FinalIK/InteractionTrigger_Range.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:17 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 43.616667 | 196 | 0.743217 | Futuremappermydud |
9f5648d23fd88d2f576560f3f5c8509ee45d7089 | 13,715 | cpp | C++ | MMVII/src/Mappings/MappingGen.cpp | trabucayre/micmac | 7378653d77882095290ec1abd1df75e281bea004 | [
"CECILL-B"
] | null | null | null | MMVII/src/Mappings/MappingGen.cpp | trabucayre/micmac | 7378653d77882095290ec1abd1df75e281bea004 | [
"CECILL-B"
] | null | null | null | MMVII/src/Mappings/MappingGen.cpp | trabucayre/micmac | 7378653d77882095290ec1abd1df75e281bea004 | [
"CECILL-B"
] | null | null | null | #include "include/MMVII_all.h"
namespace MMVII
{
/* ============================================= */
/* cDataBoundedSet<Type> */
/* ============================================= */
template <class Type,const int Dim>
cDataBoundedSet<Type,Dim>::cDataBoundedSet(const tBox & aBox) :
m... | 30.010941 | 112 | 0.55319 | trabucayre |
9f56584bb148bd329cc1d101e07316fdcf38419b | 8,875 | cpp | C++ | SYNFlood.cpp | Forec/ddos-synflood | f433b068a966f3e9ae5e25a4805e98f3a73fdcd7 | [
"0BSD"
] | 10 | 2017-03-18T13:54:53.000Z | 2022-03-27T14:29:00.000Z | SYNFlood.cpp | Forec/ddos-synflood | f433b068a966f3e9ae5e25a4805e98f3a73fdcd7 | [
"0BSD"
] | null | null | null | SYNFlood.cpp | Forec/ddos-synflood | f433b068a966f3e9ae5e25a4805e98f3a73fdcd7 | [
"0BSD"
] | 6 | 2017-03-22T22:51:09.000Z | 2021-12-22T08:17:45.000Z | /*
author: Forec
last edit date: 2016/11/20
email: forec@bupt.edu.cn
LICENSE
Copyright (c) 2015-2017, Forec <forec@bupt.edu.cn>
Permission to use, copy, modify, and/or distribute this code for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear... | 29.098361 | 92 | 0.54862 | Forec |
9f5eed4e7e225920268ebf5ed474646d7dcd6873 | 3,116 | cpp | C++ | src/source/qhtmlevents.cpp | afarcat/QtHtmlView | fff12b6f5c08c2c6db15dd73e4f0b55421827b39 | [
"Apache-2.0"
] | null | null | null | src/source/qhtmlevents.cpp | afarcat/QtHtmlView | fff12b6f5c08c2c6db15dd73e4f0b55421827b39 | [
"Apache-2.0"
] | null | null | null | src/source/qhtmlevents.cpp | afarcat/QtHtmlView | fff12b6f5c08c2c6db15dd73e4f0b55421827b39 | [
"Apache-2.0"
] | null | null | null | /* This file is part of the KDE project
Copyright (C) 2000 Simon Hausmann <hausmann@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or... | 31.474747 | 108 | 0.706675 | afarcat |
9f64ed17909437880e3b8c5d2278e3d38ef9f1c1 | 348 | cpp | C++ | MainBrain/test/ModelTest/SdCardTest/SdCardTest.cpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 10 | 2017-07-30T21:26:32.000Z | 2021-05-04T14:33:29.000Z | MainBrain/test/ModelTest/SdCardTest/SdCardTest.cpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 122 | 2017-07-30T15:55:55.000Z | 2019-05-19T20:29:13.000Z | MainBrain/test/ModelTest/SdCardTest/SdCardTest.cpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 3 | 2018-03-10T20:01:10.000Z | 2019-06-07T18:02:38.000Z | /** Handles the hardware level functions of the SdFat library
*
* SdCardTest.cpp
* Created 10-24-17 By: Smitty
*
* A longer description.
*/
#include "SdCardTest.hpp"
//FIXME: rip out all the demo code and put into functions
/**
* @brief SdCardTest constructor
*/
SdCardTest::SdCardTest(void)
{
storage... | 17.4 | 62 | 0.689655 | smit-happens |
9f6676597357721f768b18c5cd8ec9e7dfd2b9ee | 10,554 | cpp | C++ | src/bin2llvmir/optimizations/inst_opt/inst_opt.cpp | mehrdad-shokri/retdec | a82f16e97b163afe789876e0a819489c5b9b358e | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 4,816 | 2017-12-12T18:07:09.000Z | 2019-04-17T02:01:04.000Z | src/bin2llvmir/optimizations/inst_opt/inst_opt.cpp | mehrdad-shokri/retdec | a82f16e97b163afe789876e0a819489c5b9b358e | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 514 | 2017-12-12T18:22:52.000Z | 2019-04-16T16:07:11.000Z | src/bin2llvmir/optimizations/inst_opt/inst_opt.cpp | mehrdad-shokri/retdec | a82f16e97b163afe789876e0a819489c5b9b358e | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 579 | 2017-12-12T18:38:02.000Z | 2019-04-11T13:32:53.000Z | /**
* @file src/bin2llvmir/optimizations/inst_opt/inst_opt.cpp
* @brief Optimize a single LLVM instruction.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <llvm/IR/Module.h>
#include <llvm/IR/PatternMatch.h>
#include "retdec/bin2llvmir/optimizations/inst_opt/inst_opt.h"
#include ... | 18.259516 | 89 | 0.626777 | mehrdad-shokri |
9f6afac315b8bd421b0dd2bf6b60475f306f0261 | 762 | cpp | C++ | sources/Attributes.cpp | prfcto2/noName | e179d49282755039f2acb267931ef445aff5000b | [
"MIT"
] | 3 | 2019-08-05T13:33:01.000Z | 2022-02-14T12:55:18.000Z | sources/Attributes.cpp | prfcto2/noName | e179d49282755039f2acb267931ef445aff5000b | [
"MIT"
] | null | null | null | sources/Attributes.cpp | prfcto2/noName | e179d49282755039f2acb267931ef445aff5000b | [
"MIT"
] | null | null | null | # include <Attributes.hpp>
Attributes::Attributes(short unsigned health)
: m_health(health)
{
// empty
}
const short unsigned & Attributes::get_health() const
{
return m_health;
}
void Attributes::healted()
{
if(m_health < 3)
++m_health;
}
void Attributes::attacked()
{
if(m_health > 0)
--m_health;
... | 12.915254 | 53 | 0.675853 | prfcto2 |
9f6b6ec03a6301f97ad8298fecfc3f569de93422 | 36,843 | cpp | C++ | AircraftDynamicsTestFramework/TestFrameworkDynamics.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | AircraftDynamicsTestFramework/TestFrameworkDynamics.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | AircraftDynamicsTestFramework/TestFrameworkDynamics.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | // ****************************************************************************
// NOTICE
//
// This is the copyright work of The MITRE Corporation, and was produced
// for the U. S. Government under Contract Number DTFAWA-10-C-00080, and
// is subject to Federal Aviation Administration Acquisition Management
// System... | 32.954383 | 225 | 0.689195 | sbowman-mitre |
9f6dfae2ebfb56c3f64ebb8b50fb71ea38ddc117 | 574 | cpp | C++ | All_code/110.cpp | jnvshubham7/cpp-programming | 7d00f4a3b97b9308e337c5d3547fd3edd47c5e0b | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | All_code/110.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | All_code/110.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | // #include <bits/stdc++.h>
// using namespace std;
// int addTwoInts(int arg1, int arg2)
// {
// int sum = (arg1*arg1 + arg2*arg2);
// return sum;
// }
// int main() {
// int a,b;
// cin>>a>>b;
// int answer = addTwoInts(a,b);
// cout <<answer << endl;
// return 0;
// }
#include <... | 14 | 44 | 0.512195 | jnvshubham7 |
9f6e751a57ba3508be8fb7e4fd4ddc7fba271a10 | 900 | hpp | C++ | modules/boost/simd/sdk/include/boost/simd/sdk/meta/as_index.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/sdk/include/boost/simd/sdk/meta/as_index.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/sdk/include/boost/simd/sdk/meta/as_index.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 34.615385 | 80 | 0.558889 | pbrunet |
9f711ed5115a89fc96459678399e8a640550e1e6 | 2,927 | cpp | C++ | engine/backends/vulkan_deprecated/extra_api.cpp | thomtl/Benzene | 603f924a2471a115144b58af27028f6d913fc42a | [
"MIT"
] | null | null | null | engine/backends/vulkan_deprecated/extra_api.cpp | thomtl/Benzene | 603f924a2471a115144b58af27028f6d913fc42a | [
"MIT"
] | null | null | null | engine/backends/vulkan_deprecated/extra_api.cpp | thomtl/Benzene | 603f924a2471a115144b58af27028f6d913fc42a | [
"MIT"
] | 1 | 2020-04-12T18:52:20.000Z | 2020-04-12T18:52:20.000Z | #include "extra_api.hpp"
#pragma region VK_KHR_push_descriptor
static PFN_vkCmdPushDescriptorSetKHR _vkCmdPushDescriptorSetKHR;
extern "C" void vkCmdPushDescriptorSetKHR(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set, uint32_t descriptorWriteCount, const Vk... | 56.288462 | 229 | 0.863683 | thomtl |
9f71a1f3e7e1ff656f16266d7157c23018305f63 | 2,318 | cpp | C++ | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/module/model/attributes/capacity_source.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 5 | 2019-11-11T07:57:26.000Z | 2022-03-28T08:26:53.000Z | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/module/model/attributes/capacity_source.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 3 | 2019-09-05T21:47:07.000Z | 2019-09-17T18:10:45.000Z | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/module/model/attributes/capacity_source.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 11 | 2019-07-20T00:16:32.000Z | 2022-01-11T14:17:48.000Z | /*!
* @copyright
* Copyright (c) 2017-2019 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apache.org/licenses/LICENSE-... | 44.576923 | 104 | 0.761864 | opencomputeproject |
9f7789ae3e8c6b380f86c7a2d3cc2d03ec016ebb | 982 | hpp | C++ | src/storage/split.hpp | steinwurf/storage | 80b445cdd56b6a228c6d6ab294dfad5af30a7694 | [
"BSD-3-Clause"
] | 2 | 2017-12-09T20:36:05.000Z | 2021-02-09T12:37:52.000Z | src/storage/split.hpp | steinwurf/storage | 80b445cdd56b6a228c6d6ab294dfad5af30a7694 | [
"BSD-3-Clause"
] | 2 | 2016-05-23T12:28:29.000Z | 2018-01-03T13:08:03.000Z | src/storage/split.hpp | steinwurf/storage | 80b445cdd56b6a228c6d6ab294dfad5af30a7694 | [
"BSD-3-Clause"
] | 1 | 2017-12-09T20:35:20.000Z | 2017-12-09T20:35:20.000Z | // Copyright (c) Steinwurf ApS 2016.
// All Rights Reserved
//
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.
#pragma once
#include <algorithm>
#include <cstdint>
#include <vector>
namespace storage
{
/// Splits a continuous storage buffer into a sequence of
/// storage buffers where ... | 24.55 | 78 | 0.707739 | steinwurf |
9f7803fcf620a11b91651cd059d98cdba4e515fb | 1,667 | cc | C++ | tensorflow/lite/micro/testing/test_utils.cc | joshz123/tensorflow | 7841ca029060ab78e221e757d4b1ee6e3e0ffaa4 | [
"Apache-2.0"
] | 50 | 2020-03-15T01:04:36.000Z | 2021-11-21T23:25:44.000Z | tensorflow/lite/micro/testing/test_utils.cc | joshz123/tensorflow | 7841ca029060ab78e221e757d4b1ee6e3e0ffaa4 | [
"Apache-2.0"
] | 47 | 2020-05-15T11:30:04.000Z | 2021-08-11T16:51:08.000Z | tensorflow/lite/micro/testing/test_utils.cc | joshz123/tensorflow | 7841ca029060ab78e221e757d4b1ee6e3e0ffaa4 | [
"Apache-2.0"
] | 66 | 2020-05-15T10:05:12.000Z | 2022-02-14T07:28:18.000Z | /* Copyright 2020 The TensorFlow Authors. 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 required by applicable law or a... | 36.23913 | 80 | 0.715057 | joshz123 |
9f79b1da37fa66d2c330ca611690e014dbd446e1 | 877 | cpp | C++ | TopTestApp/listbuddy.cpp | cy15196/xxxxRsmTest | 36577173ef2cdfc3c3d4cadd3933849d29d5b3d9 | [
"MIT"
] | 1 | 2020-02-12T03:20:37.000Z | 2020-02-12T03:20:37.000Z | TopTestApp/listbuddy.cpp | cy15196/xxxxRsmTest | 36577173ef2cdfc3c3d4cadd3933849d29d5b3d9 | [
"MIT"
] | null | null | null | TopTestApp/listbuddy.cpp | cy15196/xxxxRsmTest | 36577173ef2cdfc3c3d4cadd3933849d29d5b3d9 | [
"MIT"
] | 1 | 2019-04-14T09:58:50.000Z | 2019-04-14T09:58:50.000Z | #include "ListBuddy.h"
#include <QPainter>
ListBuddy::ListBuddy(QWidget *parent) :
QWidget(parent)
{
initUi();
}
//初始化Ui
void ListBuddy::initUi()
{
//初始化
head=new QWidget(this);
name=new QLabel(this);
// sign=new QLabel(this);
//设置头像大小
head->setFixedSize(25,25);
// //设置个性签名字体为灰色
// ... | 21.390244 | 64 | 0.596351 | cy15196 |
9f7fd40c7e7bb9fb8eca7c082b7f4dc9acc60411 | 209,500 | cpp | C++ | ModelTarget_Vuforia/Build/ModelTarget_Hololens/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_12Table.cpp | GooDtoLivE/ModelTarget-Vuforia-iOS | b3c0d70a63d5ebcea5893f377e4f3bb42ab8f6ba | [
"MIT"
] | null | null | null | ModelTarget_Vuforia/Build/ModelTarget_Hololens/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_12Table.cpp | GooDtoLivE/ModelTarget-Vuforia-iOS | b3c0d70a63d5ebcea5893f377e4f3bb42ab8f6ba | [
"MIT"
] | 1 | 2020-04-01T15:06:47.000Z | 2020-04-01T15:07:19.000Z | ModelTarget_Vuforia/Build/ModelTarget_Hololens/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_12Table.cpp | GooDtoLivE/ModelTarget-Vuforia-iOS | b3c0d70a63d5ebcea5893f377e4f3bb42ab8f6ba | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... | 63.273935 | 271 | 0.895928 | GooDtoLivE |
9f8077fae1b2cdc4bd76bc6e5c667e3dce2c4053 | 173 | cpp | C++ | lib/sfml/src/SceneMenu/event/SceneMenuEventButtonPlay.cpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | lib/sfml/src/SceneMenu/event/SceneMenuEventButtonPlay.cpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | lib/sfml/src/SceneMenu/event/SceneMenuEventButtonPlay.cpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** Arcade
** File description:
** EventButtonPlay
*/
#include "sfml/SceneMenu.hpp"
void arc::SceneMenu::eventButtonPlay()
{
_eventPlay();
} | 13.307692 | 38 | 0.682081 | Brukols |
9f80ece0e5a934797b591a5823db9c6e1b28e751 | 3,513 | cpp | C++ | src/modules/adapter/testhelpmodule.cpp | ivanmurashko/kalinka | 58a3f774c414dfc408aa06f560dde455c2271c6b | [
"MIT"
] | null | null | null | src/modules/adapter/testhelpmodule.cpp | ivanmurashko/kalinka | 58a3f774c414dfc408aa06f560dde455c2271c6b | [
"MIT"
] | null | null | null | src/modules/adapter/testhelpmodule.cpp | ivanmurashko/kalinka | 58a3f774c414dfc408aa06f560dde455c2271c6b | [
"MIT"
] | null | null | null | /**
@file testhelpmodule.cpp
@brief This file is part of Kalinka mediaserver.
@author ipp <ivan.murashko@gmail.com>
Copyright (c) 2007-2012 Kalinka Team
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"... | 27.880952 | 74 | 0.667805 | ivanmurashko |
9f83961ac7b5cb4a152c19a8e10265ed4a67ecb1 | 6,681 | hh | C++ | src/ds++/Check_Strings.hh | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/ds++/Check_Strings.hh | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/ds++/Check_Strings.hh | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
/*!
* \file ds++/Check_Strings.hh
* \author John McGhee
* \date Sun Jan 30 14:57:09 2000 *
* \brief Provides some utilities to check containers of strings.
* \note Copyright (C) 2016-2019 Triad National Security, LLC.
* ... | 35.163158 | 80 | 0.633737 | rspavel |
9f84275dd080db29201511d2b7d6aa9aecf081ef | 685 | cpp | C++ | test/shared_library_test/test_shared_class_use.cpp | kuba-kazimierczak/kaguya | 0c00444139cdd55f34e0c1cc317d0d02fca5b1d0 | [
"BSL-1.0"
] | 336 | 2015-12-11T14:14:51.000Z | 2022-03-27T13:36:03.000Z | test/shared_library_test/test_shared_class_use.cpp | roctomato/kaguya | 38ca7e1d894c138e454bbe5c89048bdd5091545a | [
"BSL-1.0"
] | 99 | 2016-01-21T19:44:07.000Z | 2022-02-04T19:13:13.000Z | test/shared_library_test/test_shared_class_use.cpp | roctomato/kaguya | 38ca7e1d894c138e454bbe5c89048bdd5091545a | [
"BSL-1.0"
] | 74 | 2016-01-05T17:04:17.000Z | 2022-03-03T05:17:30.000Z | #include "kaguya/kaguya.hpp"
#include "../test_util.hpp"
#include "test_shared_class.hpp"
namespace {
int A_fn(const A &a) { return a.data; }
int B_fn(const B &) { return 22; }
int DerivedB_fn(const DerivedB &) { return 33; }
A create_A() { return A(1); }
}
#if defined(_WIN32) || defined(_WIN64)
extern "C" __declspec... | 23.62069 | 53 | 0.684672 | kuba-kazimierczak |
9f855949ce0b732cd4e893afbd057be2abcd892f | 682 | cpp | C++ | ROHIT KUMAR SINGH (Hacktober Contribution)/CODEFORCES Questions Solutions (CP)/A_Ilya_and_Bank_Account.cpp | Chinmay0896/Hacktoberfest-KIIT-2020 | da6af815100ea74aa4f1d2e6d2a453161e10471c | [
"MIT"
] | 8 | 2019-10-05T18:40:46.000Z | 2019-10-25T16:26:41.000Z | ROHIT KUMAR SINGH (Hacktober Contribution)/CODEFORCES Questions Solutions (CP)/A_Ilya_and_Bank_Account.cpp | Chinmay0896/Hacktoberfest-KIIT-2020 | da6af815100ea74aa4f1d2e6d2a453161e10471c | [
"MIT"
] | 13 | 2020-09-30T19:27:29.000Z | 2021-09-08T02:31:48.000Z | ROHIT KUMAR SINGH (Hacktober Contribution)/CODEFORCES Questions Solutions (CP)/A_Ilya_and_Bank_Account.cpp | Chinmay0896/Hacktoberfest-KIIT-2020 | da6af815100ea74aa4f1d2e6d2a453161e10471c | [
"MIT"
] | 84 | 2020-09-30T19:00:05.000Z | 2021-09-30T04:17:34.000Z | #include<iostream>
#include<algorithm>
#include<vector>
#include<string.h>
#include<set>
#include<cmath>
#include<sstream>
#define LL long long
using namespace std;
int main()
{
int n;
cin>>n;
if(n>=0)
{
cout<<n<<endl;
}
else
{
string s = to_string(n);
if(s.length()... | 16.238095 | 51 | 0.428152 | Chinmay0896 |
9f893a41d7edc2ba86d530380d52ecfa2782d30c | 10,600 | cpp | C++ | system/spawn.cpp | dnartz/PvZ-Emulator | 3954f36f4e0f22cee07d6a86003d3892f0938b8b | [
"BSD-2-Clause"
] | 1 | 2022-03-29T23:49:55.000Z | 2022-03-29T23:49:55.000Z | system/spawn.cpp | dnartz/PvZ-Emulator | 3954f36f4e0f22cee07d6a86003d3892f0938b8b | [
"BSD-2-Clause"
] | 2 | 2021-03-10T18:17:07.000Z | 2021-05-11T13:59:22.000Z | system/spawn.cpp | dnartz/PvZ-Emulator | 3954f36f4e0f22cee07d6a86003d3892f0938b8b | [
"BSD-2-Clause"
] | 1 | 2021-10-18T18:29:47.000Z | 2021-10-18T18:29:47.000Z | #include <cassert>
#include <array>
#include <vector>
#include <algorithm>
#include <utility>
#include "spawn.h"
#include "util.h"
namespace pvz_emulator::system {
using namespace pvz_emulator::object;
const unsigned int spawn::MAX_WAVES = 20;
const unsigned int spawn::MAX_ZOMBIES = 50;
const unsigned int spawn::MA... | 22.795699 | 82 | 0.659057 | dnartz |
9f8abd387717dbf7c832faa2f440a1c3de3e2ab3 | 1,965 | cpp | C++ | tests/gates/gates.cpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | tests/gates/gates.cpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | tests/gates/gates.cpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | /*-------------------------------------------------------------------------------------------------
| This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*------------------------------------------------------------------------------------------------*/
#include <catch.hpp>
#in... | 35.089286 | 99 | 0.606616 | AriJordan |
9f8cdd25fe746a3410bbe8ca86b16198e7494bd7 | 2,644 | cpp | C++ | applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Level_Sets/LEVELSET_ADVECTION_RLE.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Level_Sets/LEVELSET_ADVECTION_RLE.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | null | null | null | applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Level_Sets/LEVELSET_ADVECTION_RLE.cpp | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | #ifndef COMPILE_WITHOUT_RLE_SUPPORT
//#####################################################################
// Copyright 2002-2005, Doug Enright, Ronald Fedkiw, Geoffrey Irving, Tamar Shinar.
// This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIG... | 49.886792 | 135 | 0.687216 | schinmayee |
9f8e59f3d89f34e4cae4d74bb46071d78255f79f | 2,943 | cc | C++ | smartag/src/model/ModifyQosRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | smartag/src/model/ModifyQosRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | smartag/src/model/ModifyQosRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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 required by... | 29.43 | 90 | 0.740741 | aliyun |
9f900daf20a6dcb03e68e815f8b699552fc2ad22 | 17,621 | cpp | C++ | modules/imgui/src/guiperformancecomponent.cpp | bridger-herman/OpenSpace | e3afd82c4700536a2221fc76f64fdc873c93e964 | [
"MIT"
] | 1 | 2019-10-27T12:42:40.000Z | 2019-10-27T12:42:40.000Z | modules/imgui/src/guiperformancecomponent.cpp | bridger-herman/OpenSpace | e3afd82c4700536a2221fc76f64fdc873c93e964 | [
"MIT"
] | null | null | null | modules/imgui/src/guiperformancecomponent.cpp | bridger-herman/OpenSpace | e3afd82c4700536a2221fc76f64fdc873c93e964 | [
"MIT"
] | 1 | 2020-04-29T01:34:22.000Z | 2020-04-29T01:34:22.000Z | /*****************************************************************************************
* *
* OpenSpace *
* ... | 38.473799 | 90 | 0.497531 | bridger-herman |
9f91f81c27ef6037e356d511150c7c0e27450b7e | 4,200 | cpp | C++ | test/PidTest.cpp | nakulpatel94/AcmeAckermanControl | 64abb351b6fc41362939109dd0e27ce2cbed0c60 | [
"BSD-3-Clause"
] | 1 | 2021-05-03T09:01:02.000Z | 2021-05-03T09:01:02.000Z | test/PidTest.cpp | nakulpatel94/AcmeAckermanControl | 64abb351b6fc41362939109dd0e27ce2cbed0c60 | [
"BSD-3-Clause"
] | null | null | null | test/PidTest.cpp | nakulpatel94/AcmeAckermanControl | 64abb351b6fc41362939109dd0e27ce2cbed0c60 | [
"BSD-3-Clause"
] | 2 | 2019-12-08T03:50:22.000Z | 2020-03-27T13:00:43.000Z | /**
* BSD 3-Clause License
*
* Copyright (c) 2019, Ishan Patel, Nakul Patel, Suyash Yeotikar
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must ret... | 34.146341 | 88 | 0.689286 | nakulpatel94 |
9f9202fbe79a7b5f5c49ac67c0c38716d674e9cf | 4,085 | cpp | C++ | src/UI/loginUI/cpp/loginUI.cpp | sidphbot/Bank-Management-System | 665db860e46e897ab77c7a30145b09e13228614c | [
"Apache-2.0"
] | 1 | 2021-04-01T12:54:13.000Z | 2021-04-01T12:54:13.000Z | src/UI/loginUI/cpp/loginUI.cpp | sidphbot/Bank-Management-System | 665db860e46e897ab77c7a30145b09e13228614c | [
"Apache-2.0"
] | null | null | null | src/UI/loginUI/cpp/loginUI.cpp | sidphbot/Bank-Management-System | 665db860e46e897ab77c7a30145b09e13228614c | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<stdlib.h>
#include"../include/loginUI.h"
#include"../../../Controller/loginController/include/loginController.h"
#include<string>
#include<unistd.h> //for getpass
#include "../../../Validation/Include/Validation.h"
#include "../../../Utility/Include/Utility.h"
#include<ctime>
using namespac... | 23.612717 | 132 | 0.598042 | sidphbot |
7a0596d2103b2067be40a96fffc072bea6d78a40 | 11,612 | cc | C++ | dust3d/data/dust3d_vertical_png.cc | huxingyi/tubetube | 6a73a7e068610b58066457f5446cf1ebc3427a36 | [
"MIT"
] | 1 | 2022-03-23T23:01:39.000Z | 2022-03-23T23:01:39.000Z | dust3d/data/dust3d_vertical_png.cc | huxingyi/tubetube | 6a73a7e068610b58066457f5446cf1ebc3427a36 | [
"MIT"
] | null | null | null | dust3d/data/dust3d_vertical_png.cc | huxingyi/tubetube | 6a73a7e068610b58066457f5446cf1ebc3427a36 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2022 Jeremy HU <jeremy-at-dust3d dot org>. All rights reserved.
*
* 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 limi... | 70.375758 | 83 | 0.650792 | huxingyi |
7a05e5dcef1237acfa05677a1c65d7af57710b60 | 861 | cpp | C++ | CrazyEights/Player.cpp | evrenkaya/CrazyEights | 8df96540ef2fa84d7e64dffe81fc0663df6ca4de | [
"MIT"
] | null | null | null | CrazyEights/Player.cpp | evrenkaya/CrazyEights | 8df96540ef2fa84d7e64dffe81fc0663df6ca4de | [
"MIT"
] | null | null | null | CrazyEights/Player.cpp | evrenkaya/CrazyEights | 8df96540ef2fa84d7e64dffe81fc0663df6ca4de | [
"MIT"
] | null | null | null | #include "Player.h"
#include <iostream>
Player::Player(IOManager* io, std::string name) : mIOManager(io), mName(name)
{
}
Player::~Player()
{
}
void Player::addCard(Card* card)
{
mHand.addCard(card);
}
Card* Player::removeCard(int i)
{
return mHand.removeCard(i);
}
Card* Player::getCard(int i) const
{
return m... | 14.844828 | 90 | 0.681765 | evrenkaya |
7a0690905730aa097ffc9814d1f69a07fc13955e | 333 | cpp | C++ | MajorityElement.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | 3 | 2017-11-27T03:01:50.000Z | 2021-03-13T08:14:00.000Z | MajorityElement.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | MajorityElement.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | class Solution {
public:
int majorityElement(vector<int>& nums) {
int ans = -1;
int cnt = 0;
for (auto num : nums) {
if (cnt == 0 || ans == num) {
cnt++;
ans = num;
} else {
cnt--;
}
}
return ... | 20.8125 | 44 | 0.345345 | yplusplus |
7a09b08ac7cc890e00326d813dbfa3acd94566e7 | 1,675 | cpp | C++ | python/src/bindings.cpp | ipc-sim/ipc-toolk | 81873d0288810e30166d871419da4104329860e3 | [
"MIT"
] | 61 | 2020-08-04T21:08:25.000Z | 2022-02-25T02:24:31.000Z | python/src/bindings.cpp | dbelgrod/ipc-toolkit | 0b7ca9b5f867db63bd68dd02ce54a9d00b0fc337 | [
"MIT"
] | 2 | 2020-10-12T05:54:40.000Z | 2021-10-10T18:39:30.000Z | python/src/bindings.cpp | dbelgrod/ipc-toolkit | 0b7ca9b5f867db63bd68dd02ce54a9d00b0fc337 | [
"MIT"
] | 7 | 2020-11-26T12:47:38.000Z | 2022-03-25T04:55:49.000Z | #include <pybind11/pybind11.h>
namespace py = pybind11;
void define_barrier_functions(py::module_& m);
void define_broad_phase_functions(py::module_& m);
void define_collision_candidate_classes(py::module_& m);
void define_collision_constraint_classes(py::module_& m);
void define_distance_type_functions(py::module... | 31.603774 | 62 | 0.807164 | ipc-sim |
7a0ba52d8069e6ed0601731206fa05ef0830acd8 | 24,426 | cpp | C++ | src/text/textlayout.cpp | reubenscratton/oaknut | 03b37965ad84745bd5c077a27d8b53d58a173662 | [
"MIT"
] | 5 | 2019-10-04T05:10:06.000Z | 2021-02-03T23:29:10.000Z | src/text/textlayout.cpp | reubenscratton/oaknut | 03b37965ad84745bd5c077a27d8b53d58a173662 | [
"MIT"
] | null | null | null | src/text/textlayout.cpp | reubenscratton/oaknut | 03b37965ad84745bd5c077a27d8b53d58a173662 | [
"MIT"
] | 2 | 2019-09-27T00:34:36.000Z | 2020-10-27T09:44:26.000Z | //
// Copyright © 2018 Sandcastle Software Ltd. All rights reserved.
//
// This file is part of 'Oaknut' which is released under the MIT License.
// See the LICENSE file in the root of this installation for details.
//
#include <oaknut.h>
#define INVALID_GLYPHS 1
#define INVALID_LINES 2
#define INVALID_POSITIO... | 36.511211 | 189 | 0.531769 | reubenscratton |
7a111857e95095bf5b2824001c105ca5a28b75ff | 505 | hpp | C++ | higan/fc/scheduler/scheduler.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/fc/scheduler/scheduler.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/fc/scheduler/scheduler.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | struct Scheduler : property<Scheduler> {
enum class SynchronizeMode : uint { None, PPU, All } sync;
enum class ExitReason : uint { UnknownEvent, FrameEvent, SynchronizeEvent };
auto enter() -> void;
auto exit(ExitReason) -> void;
auto power() -> void;
auto reset() -> void;
cothread_t host_thread; //pr... | 29.705882 | 78 | 0.710891 | ameer-bauer |
7a1afec22610e6ff0559b7817329ba054f706278 | 12,037 | hpp | C++ | src/org/apache/poi/ss/usermodel/ShapeTypes.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/ShapeTypes.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/ShapeTypes.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/usermodel/ShapeTypes.java
#pragma once
#include <fwd-POI.hpp>
#include <org/apache/poi/ss/usermodel/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct default_init_tag;
class poi::ss::usermodel::ShapeTypes
: public virtual ::java::lang::Object
{
public:
typede... | 55.470046 | 76 | 0.737393 | pebble2015 |
7a1b604be24ce61dc1521f1f07453f3692fb7fc2 | 5,243 | cpp | C++ | WildMagic4/LibFoundation/Intersection/Wm4IntrRay2Ray2.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 23 | 2015-08-13T07:36:00.000Z | 2022-01-24T19:00:04.000Z | WildMagic4/LibFoundation/Intersection/Wm4IntrRay2Ray2.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | null | null | null | WildMagic4/LibFoundation/Intersection/Wm4IntrRay2Ray2.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 6 | 2015-07-06T21:37:31.000Z | 2020-07-01T04:07:50.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
#include "Wm4FoundationPCH.h"
#include "Wm4IntrRay2Ray... | 29.96 | 79 | 0.486363 | rms80 |
7a1bbfc4708fa9afe9e33bb5be5536d8a9ed4380 | 1,716 | cpp | C++ | httplite/HttpClient.cpp | michaelsballoni/httplite | 25ab914157e2b690f0d5acd0bb5a96a0d8f1df52 | [
"Apache-2.0"
] | null | null | null | httplite/HttpClient.cpp | michaelsballoni/httplite | 25ab914157e2b690f0d5acd0bb5a96a0d8f1df52 | [
"Apache-2.0"
] | null | null | null | httplite/HttpClient.cpp | michaelsballoni/httplite | 25ab914157e2b690f0d5acd0bb5a96a0d8f1df52 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "HttpClient.h"
#include "HeaderReader.h"
namespace httplite
{
HttpClient::HttpClient(const std::string& server, uint16_t port)
: m_socket(INVALID_SOCKET)
, m_server(server)
, m_port(port)
, m_isConnected(false)
{
}
HttpClient::~HttpClient()
{
Disconnect();
}
void HttpClient... | 20.428571 | 104 | 0.703963 | michaelsballoni |
7a1f9bacd593cd8576472cf2c62606b7ffba9820 | 319 | cpp | C++ | variadicformat/src/util.cpp | dsp-testing/blog | b3454d913ee9ae585facf67009b23ea1a8685466 | [
"MIT"
] | 109 | 2015-01-11T19:37:47.000Z | 2022-03-24T11:23:15.000Z | variadicformat/src/util.cpp | dsp-testing/blog | b3454d913ee9ae585facf67009b23ea1a8685466 | [
"MIT"
] | 5 | 2015-02-21T05:18:54.000Z | 2019-10-13T19:04:35.000Z | variadicformat/src/util.cpp | dsp-testing/blog | b3454d913ee9ae585facf67009b23ea1a8685466 | [
"MIT"
] | 275 | 2015-01-02T14:26:13.000Z | 2022-03-28T07:37:28.000Z | #include "util.h"
namespace util {
void replace_all(std::string& str, const std::string& from, const std::string& to)
{
size_t pos = 0;
while ((pos = str.find(from, pos)) != std::string::npos) {
str.replace(pos, from.length(), to);
pos += to.length();
}
}
} | 24.538462 | 86 | 0.523511 | dsp-testing |
7a22228967293713613f4a840afcb80ea57e48d4 | 698 | hpp | C++ | src/Subpackets/Tag2Sub.hpp | mugwort-rc/pyOpenPGP | a1d35a93a69ed5bbec768f3c6347742630d71a15 | [
"MIT"
] | null | null | null | src/Subpackets/Tag2Sub.hpp | mugwort-rc/pyOpenPGP | a1d35a93a69ed5bbec768f3c6347742630d71a15 | [
"MIT"
] | null | null | null | src/Subpackets/Tag2Sub.hpp | mugwort-rc/pyOpenPGP | a1d35a93a69ed5bbec768f3c6347742630d71a15 | [
"MIT"
] | null | null | null | #ifndef __PYOPENPGP_SUBPACKETS_TAG2SUB__
#define __PYOPENPGP_SUBPACKETS_TAG2SUB__
#include <boost/python.hpp>
#include "OpenPGP/Subpackets/subpacket.h"
template <class T>
class Tag2SubWrapper : public boost::python::wrapper<T>, public T
{
public:
void read(std::string & data)
{
this->get_override("re... | 19.942857 | 76 | 0.657593 | mugwort-rc |
7a22c2e4ec8d21e9a7f8cb255c3ae761a0c4a0fe | 477 | cpp | C++ | src/message/RequestVote.cpp | taroyuyu/KakaKV | 47d0c36f6a77959d02c30b955ca5fbc8999d24d6 | [
"MIT"
] | 1 | 2021-09-27T11:41:12.000Z | 2021-09-27T11:41:12.000Z | src/message/RequestVote.cpp | taroyuyu/KakaKV | 47d0c36f6a77959d02c30b955ca5fbc8999d24d6 | [
"MIT"
] | null | null | null | src/message/RequestVote.cpp | taroyuyu/KakaKV | 47d0c36f6a77959d02c30b955ca5fbc8999d24d6 | [
"MIT"
] | null | null | null | //
// Created by 凌宇 on 2021/9/20.
//
#include <message/RequestVote.h>
namespace kakakv {
namespace message {
std::ostream & operator<<(std::ostream & cout,RequestVote & request){
cout<<"RequestVote{candidateId="<<request.candidateId
<<",lastLogIndex="<<request.lastLogIndex
... | 26.5 | 77 | 0.536688 | taroyuyu |
7a22eaf9855931aee8723449fd0abafd83553d76 | 288 | hh | C++ | src/phantasm-renderer/default_config.hh | project-arcana/phantasm-renderer | dd6f9af8d95f227f88c81194dea4a893761cac62 | [
"MIT"
] | 2 | 2020-10-22T18:09:11.000Z | 2020-12-09T13:53:46.000Z | src/phantasm-renderer/default_config.hh | project-arcana/phantasm-renderer | dd6f9af8d95f227f88c81194dea4a893761cac62 | [
"MIT"
] | 1 | 2021-04-29T08:16:49.000Z | 2021-04-30T07:54:25.000Z | src/phantasm-renderer/default_config.hh | project-arcana/phantasm-renderer | dd6f9af8d95f227f88c81194dea4a893761cac62 | [
"MIT"
] | null | null | null | #pragma once
#include <phantasm-hardware-interface/types.hh>
namespace pr
{
/**
* This object is implicitly convertible to default configurations for most types
*/
static constexpr struct default_config_t
{
operator phi::pipeline_config() const { return {}; }
} default_config;
}
| 19.2 | 81 | 0.75 | project-arcana |
7a237f3e6b5590183321fc4687ac9d6445091a48 | 526 | cpp | C++ | lib/chpmv.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | 6 | 2015-12-13T09:10:11.000Z | 2022-02-09T23:18:22.000Z | lib/chpmv.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | lib/chpmv.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | 2 | 2019-02-01T06:46:36.000Z | 2022-02-09T23:18:24.000Z | //
// chpmv.cpp
// Linear Algebra Template Library
//
// Created by Rodney James on 1/1/13.
// Copyright (c) 2013 University of Colorado Denver. All rights reserved.
//
#include "blas.h"
#include "hpmv.h"
using LATL::HPMV;
using std::complex;
int chpmv_(char& uplo, int &n, complex<float> &alpha, complex<float> *A... | 25.047619 | 154 | 0.663498 | langou |
7a2721be3f44a083a14ec63035f84a9a16e8f6dd | 961 | cpp | C++ | graph-source-code/417-C/6563535.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/417-C/6563535.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/417-C/6563535.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <iostream>
#include <fstream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <vector>
#include <map>
#define mod 1000000007
using namespace std;
int n,k;
int win[1003];
struct ans
{
int x,y;
};
ans a[1000003];
int coun;
int main()
{
scanf("%d %d"... | 17.160714 | 41 | 0.371488 | AmrARaouf |
7a27fee7e1fb61c23ed93a7693a4b630580950a6 | 2,854 | tcc | C++ | hackt_docker/hackt/src/util/memory/fixed_pool_chunk.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/util/memory/fixed_pool_chunk.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/util/memory/fixed_pool_chunk.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "util/memory/fixed_pool_chunk.tcc"
Method definitions for chunk-allocated memory pool.
$Id: fixed_pool_chunk.tcc,v 1.1 2007/02/21 17:00:28 fang Exp $
*/
#ifndef __UTIL_MEMORY_FIXED_POOL_CHUNK_TCC__
#define __UTIL_MEMORY_FIXED_POOL_CHUNK_TCC__
#include "util/memory/fixed_pool_chunk.hh"
#include "util/mem... | 30.042105 | 79 | 0.613525 | broken-wheel |
7a280b241a5268b80982f792d7daffa00a887cc6 | 2,253 | cpp | C++ | problems/minimal_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 5 | 2021-05-17T12:32:42.000Z | 2021-12-12T21:09:55.000Z | problems/minimal_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | null | null | null | problems/minimal_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 1 | 2021-05-13T20:29:57.000Z | 2021-05-13T20:29:57.000Z | #include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
string minimalSum(vector<int> &, int);
int main() {
/**
* In order to add rearranged orders of the digits together such
* that the sum is minimal, we will use a Max Heap to maintain
* what digits to be ... | 28.884615 | 116 | 0.579228 | oishikm12 |
7a283b69d0a1181419bcb08c0b80f12e3b2b89e4 | 7,573 | cpp | C++ | src/prefixdfamem.cpp | dmitriy-philimonov/oak | 4a0c8eb4b7529265d61172f6ad9db7b490fd4c51 | [
"Apache-2.0"
] | null | null | null | src/prefixdfamem.cpp | dmitriy-philimonov/oak | 4a0c8eb4b7529265d61172f6ad9db7b490fd4c51 | [
"Apache-2.0"
] | null | null | null | src/prefixdfamem.cpp | dmitriy-philimonov/oak | 4a0c8eb4b7529265d61172f6ad9db7b490fd4c51 | [
"Apache-2.0"
] | null | null | null | #include "prefixdfamem.h"
#include <cstring>
#include <iostream>
#include <iomanip>
namespace NPrefix {
namespace NMemoryOptimized {
ui8 TDfa::DoXLAT(ui8 symbol) noexcept {
if (HAS_XLAT[symbol])
return XLAT[symbol];
ui8 id = NextId++;
XLAT[symbol] = id;
HAS_XLAT[symbol]... | 34.579909 | 101 | 0.496765 | dmitriy-philimonov |
7a291ec9b5c52e88cf3c56889131df0efeb899d1 | 4,807 | hpp | C++ | routing_algorithms/dijkstra.hpp | cypox/devacus-backend | ba3d2ca8d72843560c4ff754780482dfe8a67c6b | [
"BSD-2-Clause"
] | null | null | null | routing_algorithms/dijkstra.hpp | cypox/devacus-backend | ba3d2ca8d72843560c4ff754780482dfe8a67c6b | [
"BSD-2-Clause"
] | null | null | null | routing_algorithms/dijkstra.hpp | cypox/devacus-backend | ba3d2ca8d72843560c4ff754780482dfe8a67c6b | [
"BSD-2-Clause"
] | null | null | null | #ifndef DIJKSTRA_HPP
#define DIJKSTRA_HPP
#include <boost/assert.hpp>
#include "routing_base.hpp"
#include "../DynamicServer/DataStructures/InternalDataFacade.h"
#include "../data_structures/search_engine_data.hpp"
#include "../Util/integer_range.hpp"
#include "../Util/timing_util.hpp"
#include "../typedefs.h"
templ... | 32.924658 | 117 | 0.70543 | cypox |
7a2c6425383e7b15e088fa773c4b76b12ab49f28 | 1,128 | cpp | C++ | hj/composition/Player.cpp | hustlic/cppstudy | ee007bbfb344845bc48792f495cdfe4cfbe9ba22 | [
"Apache-2.0"
] | null | null | null | hj/composition/Player.cpp | hustlic/cppstudy | ee007bbfb344845bc48792f495cdfe4cfbe9ba22 | [
"Apache-2.0"
] | null | null | null | hj/composition/Player.cpp | hustlic/cppstudy | ee007bbfb344845bc48792f495cdfe4cfbe9ba22 | [
"Apache-2.0"
] | null | null | null | /* *************************************************
* | | | | | | |/ ____|__ __| | | (_)
* | |__| | | | | (___ | | | | _ ___
* | __ | | | |\___ \ | | | | | | / __|
* | | | | |__| |____) | | | | | | | | (__
* |_| |_|\____/|_____/ |_| |_| |_| \___|
*
* ***************... | 21.692308 | 63 | 0.434397 | hustlic |
7a359c9b2020222993eac7b1f3e72eb18bfdbcd0 | 10,534 | hpp | C++ | Nacro/SDK/FN_ObjectivesPage_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_ObjectivesPage_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_ObjectivesPage_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// WidgetBlueprintGeneratedClass ObjectivesPage.Obj... | 169.903226 | 644 | 0.776058 | Milxnor |
7a39d692a83407f9958b9bbabc03ce31fb198ed9 | 1,143 | cpp | C++ | practice/sort/merge.cpp | ja-ho/swfc | 1aad671199f14c69228430228b161b4f7a09c4f7 | [
"MIT"
] | null | null | null | practice/sort/merge.cpp | ja-ho/swfc | 1aad671199f14c69228430228b161b4f7a09c4f7 | [
"MIT"
] | null | null | null | practice/sort/merge.cpp | ja-ho/swfc | 1aad671199f14c69228430228b161b4f7a09c4f7 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define swap(a, b) {int t; t = a; a = b; b = t;}
void merge_sort(int *arr, int size);
int main() {
int size;
int *arr;
srand((unsigned int)time(NULL));
scanf("%d", &size);
arr = (int *)malloc(sizeof(int) * size);
for (int i = 0; i < size; i++) {
arr[i... | 19.706897 | 51 | 0.534558 | ja-ho |
7a3c80efc439b64d0a010b228281e4f0d9ee027e | 2,418 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_GetUnqlNameAsDtor.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_GetUnqlNameAsDtor.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_GetUnqlNameAsDtor.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_GetUnqlNameAsDtor.cpp
//
#include "smtc_GetUnqlNameAsDtor.h"
// semantic
#include "smtc_BaseNameVisitor.h"
#include "smtc_CreateDtorBaseName.h"
#include "smtc_CreateNonTmplName.h"
#include "smtc_CreateTmplName.h"
#include "smtc_IdentBaseName.h"
#include "smtc_NameVisitor.h"
#include "smtc_NonTmplName.h"
#inclu... | 22.183486 | 119 | 0.717535 | SuperDizor |
7a3ebf80ed43b377e32f58b3df47c6e1dbaef902 | 10,219 | cxx | C++ | PWG/muon/AliAnalysisTaskSEMuonsHF.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWG/muon/AliAnalysisTaskSEMuonsHF.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWG/muon/AliAnalysisTaskSEMuonsHF.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | /**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 34.877133 | 142 | 0.669341 | maroozm |
7a4156f9bb7f0723e6e4370e4d821f0c59e5f684 | 1,096 | cpp | C++ | DFRobot_gxy.cpp | ghjklzx/DFRobot_gxy | 52f2fbe11a4f955f47cba6454287d2af1a86c89b | [
"MIT"
] | null | null | null | DFRobot_gxy.cpp | ghjklzx/DFRobot_gxy | 52f2fbe11a4f955f47cba6454287d2af1a86c89b | [
"MIT"
] | null | null | null | DFRobot_gxy.cpp | ghjklzx/DFRobot_gxy | 52f2fbe11a4f955f47cba6454287d2af1a86c89b | [
"MIT"
] | null | null | null | /*!
* @file DFRobot_gxy.h
* @brief 定义DFRobot_gxy 类的基础结构,基础方法的实现
*
* @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
* @licence The MIT License (MIT)
* @author [Arya](xue.peng@dfrobot.com)
* @version V1.0
* @eGDAte 2019-07-28
* @get from https://www.dfrobot.com
* @url https://git... | 19.22807 | 74 | 0.664234 | ghjklzx |
7a4271866b15efe0d8fa35fa66f92d1e40ac09d5 | 559 | hpp | C++ | code/src/utility/intrinsics.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 3 | 2020-04-29T14:55:58.000Z | 2020-08-20T08:43:24.000Z | code/src/utility/intrinsics.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 1 | 2022-03-12T11:37:46.000Z | 2022-03-12T20:17:38.000Z | code/src/utility/intrinsics.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | null | null | null |
#ifndef UTILITY_INTRINSICS_HPP
#define UTILITY_INTRINSICS_HPP
#if defined(_MSC_VER)
# include <intrin.h>
#endif
#if defined(__GNUG__)
# define intrinsic_likely(x) __builtin_expect(!!(x), 1)
#else
# define intrinsic_likely(x) !!(x)
#endif
/**
* Hint to the compiler that this path will never be reached.
*/
#if defi... | 20.703704 | 61 | 0.753131 | shossjer |
7a43f5407499cc5e5938b2577bdb38d2f2b15440 | 2,668 | hpp | C++ | src/graphics/vulkan/GraphicsPipeline.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null | src/graphics/vulkan/GraphicsPipeline.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null | src/graphics/vulkan/GraphicsPipeline.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null |
#ifndef FIRESTORM_GRAPHICSPIPELINE_HPP
#define FIRESTORM_GRAPHICSPIPELINE_HPP
#include "Shader.hpp"
#include "SwapChain.hpp"
#include "RenderPass.hpp"
#include "DepthImage.hpp"
#include <vulkan/vulkan.h>
#include <memory>
namespace fs::graphics
{
class GraphicsPipeline
{
public:
GraphicsPipeline();
virtua... | 35.105263 | 134 | 0.788231 | Galhad |
7a4876acc763ad397bd4258809ef7f853793dc29 | 10,748 | cpp | C++ | obs-studio/libobs-d3d11/d3d11-texture2d.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/libobs-d3d11/d3d11-texture2d.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/libobs-d3d11/d3d11-texture2d.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | /******************************************************************************
Copyright (C) 2013 by Hugh Bailey <obs.jim@gmail.com>
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, e... | 28.136126 | 79 | 0.690175 | noelemahcz |
7a49883b52eac59b9d7aa9aaf15804fa1d49be05 | 11,175 | cpp | C++ | shark/example/env/cpp/2048.cpp | 7starsea/shark | 5030f576da6f5998728d80170480e68a3debfe79 | [
"MIT"
] | null | null | null | shark/example/env/cpp/2048.cpp | 7starsea/shark | 5030f576da6f5998728d80170480e68a3debfe79 | [
"MIT"
] | null | null | null | shark/example/env/cpp/2048.cpp | 7starsea/shark | 5030f576da6f5998728d80170480e68a3debfe79 | [
"MIT"
] | null | null | null | #include "2048.h"
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <ctime>
#include <iostream>
namespace Game2048N{
// Heuristic scoring settings
static const float SCORE_LOST_PENALTY = 200000.0f;
static const float SCORE_MONOTONICITY_POWER = 4.0f;
static const float SCORE_MONOTONICITY_WEIGHT = 47.0... | 29.563492 | 122 | 0.526622 | 7starsea |
7a4988d3fc7ec5c0babc0f6f39cab718549abae9 | 905 | cc | C++ | libs/xmi/legacy-test-xmi.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/xmi/legacy-test-xmi.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/xmi/legacy-test-xmi.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::XMI: test-xmi.cc
//
// Test harness for ObTools XMI reader
//
// Copyright (c) 2003 Paul Clark. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//========================================... | 20.111111 | 76 | 0.468508 | sandtreader |
7a4a08b3ca9e32900eb540bfb2fe90a757a42eaf | 1,356 | cpp | C++ | LeetCode/DynamicProgramming/WordBreak.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 3 | 2021-07-26T15:58:45.000Z | 2021-09-08T14:55:11.000Z | LeetCode/DynamicProgramming/WordBreak.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | null | null | null | LeetCode/DynamicProgramming/WordBreak.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 2 | 2021-05-31T11:27:59.000Z | 2021-10-03T13:26:00.000Z | /*
* LeetCode 139 Word Break
* Medium
* Jiawei Wang
* 2021 8.24
*/
#include <vector>
#include <string>
#include <unordered_map>
using namespace::std;
// catsandog
// cats dog sand and cat
//
// 1. dog + Break(catsan)
// 2. since catsan is not breakable return false
class Solution {
public:
// DP (true and... | 21.870968 | 86 | 0.635693 | a4org |
7a4a42da339e2b2377ab127a3e47f6445bdf9bdf | 264 | cpp | C++ | src/default/aw_clientfactory_default.cpp | angelsware/aw-plugin-facebook | 62c34bc8664dad28041c507b777c7a80c4451151 | [
"MIT"
] | null | null | null | src/default/aw_clientfactory_default.cpp | angelsware/aw-plugin-facebook | 62c34bc8664dad28041c507b777c7a80c4451151 | [
"MIT"
] | null | null | null | src/default/aw_clientfactory_default.cpp | angelsware/aw-plugin-facebook | 62c34bc8664dad28041c507b777c7a80c4451151 | [
"MIT"
] | null | null | null | #include <facebook/aw_clientfactory.h>
#include "aw_client_default.h"
namespace Facebook {
IClient* CClientFactory::create(ESignInOptions signInOptions) {
return new CClient_Default();
}
void CClientFactory::destroy(IClient* client) {
delete client;
}
}
| 20.307692 | 64 | 0.765152 | angelsware |
7a4c22da2602bc23600471bfe6dc3c15951d0295 | 870 | cpp | C++ | ABC/047/02/main.cpp | koturn/AtCoder | 67950836618733bff215597ee7b84e2eddf77d49 | [
"MIT"
] | null | null | null | ABC/047/02/main.cpp | koturn/AtCoder | 67950836618733bff215597ee7b84e2eddf77d49 | [
"MIT"
] | null | null | null | ABC/047/02/main.cpp | koturn/AtCoder | 67950836618733bff215597ee7b84e2eddf77d49 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <utility>
int
main()
{
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
std::pair<int, int> pairX(0, 0);
std::pair<int, int> pairY(0, 0);
int n;
std::cin >> pairX.second >> pairY.second >> n;
for (int i = 0; i < n; i++) {
int x, y, a;
std:... | 22.307692 | 82 | 0.536782 | koturn |
7a4cbd4d6b56454eb9fd1e51bd87fb6322a6318d | 800 | hpp | C++ | dialogs/newGame/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | null | null | null | dialogs/newGame/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | 26 | 2020-05-15T14:38:08.000Z | 2021-06-28T18:26:53.000Z | dialogs/newGame/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | null | null | null | class AS_newGameMenu {
idd=1601;
movingenable=false;
class controls
{
AS_DIALOG(9,"Configure new game", "[] spawn AS_fnc_UI_newGame_close;");
BTN_L(1,-1,"Rebel against the West", "", "[""east""] call AS_fnc_UI_newGame_update;");
BTN_R(1,-1,"Rebel against the East", "", "[""west""] call AS_fnc_UI_newGame_update;")... | 23.529412 | 110 | 0.6525 | Kortonki |
7a50bc1d7146f1745dee9ace4371f1bc7d72a3e3 | 2,452 | cc | C++ | src_cpp/elf/options/OptionSpecTest.cc | r-woo/elfai | 2c37625e608e7720b8bd7847419d7b53e87e260a | [
"BSD-3-Clause"
] | 3,305 | 2018-05-02T17:41:36.000Z | 2022-03-28T05:57:56.000Z | src_cpp/elf/options/OptionSpecTest.cc | r-woo/elfai | 2c37625e608e7720b8bd7847419d7b53e87e260a | [
"BSD-3-Clause"
] | 135 | 2018-05-02T19:25:13.000Z | 2020-08-20T02:39:14.000Z | src_cpp/elf/options/OptionSpecTest.cc | r-woo/elfai | 2c37625e608e7720b8bd7847419d7b53e87e260a | [
"BSD-3-Clause"
] | 604 | 2018-05-02T19:38:45.000Z | 2022-03-18T10:01:57.000Z | /**
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "OptionSpecTest.h"
#include <algorithm>
#include <nlohmann/json.hpp>
namespace elf {
namespace... | 24.039216 | 77 | 0.557096 | r-woo |
7a53d0bab8160aa2be5a6edb7cb89d8df0dd7f0f | 2,137 | cpp | C++ | Framework/Common/Image.cpp | lishaojiang/GameEngineFromScratch | 7769d3916a9ffabcfdaddeba276fdf964d8a86ee | [
"MIT"
] | 1,217 | 2017-08-18T02:41:11.000Z | 2022-03-30T01:48:46.000Z | Framework/Common/Image.cpp | lishaojiang/GameEngineFromScratch | 7769d3916a9ffabcfdaddeba276fdf964d8a86ee | [
"MIT"
] | 16 | 2017-09-05T15:04:37.000Z | 2021-09-09T13:59:38.000Z | Framework/Common/Image.cpp | lishaojiang/GameEngineFromScratch | 7769d3916a9ffabcfdaddeba276fdf964d8a86ee | [
"MIT"
] | 285 | 2017-08-18T04:53:55.000Z | 2022-03-30T00:02:15.000Z | #include "Image.hpp"
using namespace std;
namespace My {
Image::Image(Image&& rhs) noexcept {
Width = rhs.Width;
Height = rhs.Height;
data = rhs.data;
bitcount = rhs.bitcount;
pitch = rhs.pitch;
data_size = rhs.data_size;
compressed = rhs.compressed;
is_float = rhs.is_float;
compre... | 26.382716 | 78 | 0.533926 | lishaojiang |
7a575c040a41f49d73f4c67edff8dca3fbb6d665 | 2,002 | hpp | C++ | Include/multi_index/detail/base_type.hpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | Include/multi_index/detail/base_type.hpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | Include/multi_index/detail/base_type.hpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | /* Copyright 2003-2013 Joaquin M Lopez Munoz.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* See http://www.boost.org/libs/multi_index for library home page.
*/
#pragma once
#include <brigand/functions/... | 26.342105 | 81 | 0.737762 | pablokawan |
7a57dba24c6784f4e2e3561debb3f5630753149a | 247 | cpp | C++ | src/square_attacked.cpp | superchessengine/libchess | a169b5efe61bb8ce53eab7edf5445a78997fec80 | [
"MIT"
] | 4 | 2021-05-27T01:40:06.000Z | 2022-02-28T12:14:41.000Z | src/square_attacked.cpp | superchessengine/libchess | a169b5efe61bb8ce53eab7edf5445a78997fec80 | [
"MIT"
] | 4 | 2021-09-02T16:28:46.000Z | 2022-03-29T13:35:41.000Z | src/square_attacked.cpp | superchessengine/libchess | a169b5efe61bb8ce53eab7edf5445a78997fec80 | [
"MIT"
] | 4 | 2021-09-07T17:04:04.000Z | 2022-01-17T20:03:09.000Z | #include "libchess/movegen.hpp"
#include "libchess/position.hpp"
namespace libchess {
[[nodiscard]] bool Position::square_attacked(const Square sq, const Side s) const noexcept {
return !attackers(sq, s).empty();
}
} // namespace libchess
| 22.454545 | 92 | 0.728745 | superchessengine |
7a590e2b56992d79c3e13332d48838031cfc061f | 1,917 | hpp | C++ | include/codegen/include/RootMotion/FinalIK/IKSolver_Node.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/RootMotion/FinalIK/IKSolver_Node.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/RootMotion/FinalIK/IKSolver_Node.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:16 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: RootMotion.FinalIK.IKSolver/Point
#include "RootMotion/FinalIK/IKSolver_Point.hpp"
#incl... | 37.588235 | 100 | 0.703704 | Futuremappermydud |
7a5b3a5afb3aaf2bc8fdea578492e3e8c92210e3 | 3,575 | cpp | C++ | cpp/src/piece.cpp | oseiskar/3dtris | 16f60c10b8496db1a584c0eaf55cc9959bffab3a | [
"Apache-2.0"
] | 4 | 2018-07-06T21:03:00.000Z | 2022-02-10T10:17:21.000Z | cpp/src/piece.cpp | oseiskar/3dtris | 16f60c10b8496db1a584c0eaf55cc9959bffab3a | [
"Apache-2.0"
] | null | null | null | cpp/src/piece.cpp | oseiskar/3dtris | 16f60c10b8496db1a584c0eaf55cc9959bffab3a | [
"Apache-2.0"
] | 2 | 2021-08-04T05:49:30.000Z | 2022-02-26T12:19:45.000Z | #include "piece.hpp"
#include <array>
#include <algorithm>
#include <iterator>
#include <assert.h>
namespace pos_methods {
Pos3d fromArray(std::array<int, 3> arr) {
return Pos3d { arr[0], arr[1], arr[2] };
}
std::array<int, 3> toArray(const Pos3d& pos) {
return {{ pos.x, pos.y, pos.z }};
... | 25.719424 | 78 | 0.568392 | oseiskar |
7a5f4bb53524681abb48a2e09b37d3583a23fe43 | 1,744 | cpp | C++ | src/kernel/line_2.cpp | rgcv/libcgal-julia | 8d5bc5f13d3c9c6160cfff795d2a0bbe1e473d94 | [
"MIT"
] | 5 | 2020-01-22T14:06:29.000Z | 2021-09-23T11:29:18.000Z | src/kernel/line_2.cpp | rgcv/libcgal-julia | 8d5bc5f13d3c9c6160cfff795d2a0bbe1e473d94 | [
"MIT"
] | null | null | null | src/kernel/line_2.cpp | rgcv/libcgal-julia | 8d5bc5f13d3c9c6160cfff795d2a0bbe1e473d94 | [
"MIT"
] | 2 | 2021-02-16T13:56:02.000Z | 2022-03-14T17:17:30.000Z | #include <jlcxx/module.hpp>
#include <julia.h>
#include "io.hpp"
#include "kernel.hpp"
namespace jlcgal {
void wrap_line_2(jlcxx::Module& kernel, jlcxx::TypeWrapper<Line_2>& line_2) {
line_2
// Creation
.constructor<const RT&, const RT&, const RT&>()
.constructor<const Point_2&, const Point_2&>()
... | 31.709091 | 77 | 0.647362 | rgcv |
7a5fdb1b277772f6109728b85ae147315615bbf4 | 1,863 | cpp | C++ | src/Front/Mainwindow-zones/mainwindow-image.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 10 | 2020-12-20T15:32:20.000Z | 2021-07-12T18:09:57.000Z | src/Front/Mainwindow-zones/mainwindow-image.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 2 | 2022-01-04T12:51:00.000Z | 2022-01-04T14:40:19.000Z | src/Front/Mainwindow-zones/mainwindow-image.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 3 | 2020-12-22T02:50:11.000Z | 2021-02-24T01:58:11.000Z | #include "Front/mainwindow.h"
#include <iostream>
#include <cstdlib>
bool MainWindow::openImageFromDisk(const QString &imageName) {
if ( QString::compare(imageName, QString()) != 0 ) {
QImage image;
bool valid = image.load(imageName);
if (valid) {
QJsonObject json;
json.insert("linkToImage"... | 28.661538 | 100 | 0.667203 | Igisid |
7a61cc17c55f18a63b3bf5260f53264f47c5c2cf | 2,830 | hpp | C++ | parsecpp/parser/parserResult.hpp | vorotynsky/ParseCpp | 7dd3763dd42f2299aafc0930d2be8542f8682074 | [
"Apache-2.0"
] | 5 | 2020-03-20T20:04:45.000Z | 2020-10-29T06:56:29.000Z | parsecpp/parser/parserResult.hpp | vorotynsky/ParseCpp | 7dd3763dd42f2299aafc0930d2be8542f8682074 | [
"Apache-2.0"
] | null | null | null | parsecpp/parser/parserResult.hpp | vorotynsky/ParseCpp | 7dd3763dd42f2299aafc0930d2be8542f8682074 | [
"Apache-2.0"
] | 2 | 2020-04-12T20:41:22.000Z | 2020-05-01T00:26:06.000Z | // Copyright 2020 Vorotynsky Maxim
//
// 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 agree... | 26.698113 | 99 | 0.590813 | vorotynsky |
7a675a067aa38138d19c5450c8ee7ea0a27425eb | 3,605 | cpp | C++ | project-euler/500/main.cpp | hydroo/coding-and-math-exercises | c0c9b8ae48e043b0809e4c592444f3e4bc3222d8 | [
"CC0-1.0"
] | 2 | 2015-05-29T21:03:26.000Z | 2019-11-11T02:10:53.000Z | project-euler/500/main.cpp | hydroo/coding-and-math-exercises | c0c9b8ae48e043b0809e4c592444f3e4bc3222d8 | [
"CC0-1.0"
] | null | null | null | project-euler/500/main.cpp | hydroo/coding-and-math-exercises | c0c9b8ae48e043b0809e4c592444f3e4bc3222d8 | [
"CC0-1.0"
] | null | null | null | #include <../lib.hpp>
using namespace std;
using s64 = int64_t;
void asdf2();
void asdf();
int main(int argc, char **args) {
(void) argc;
(void) args;
constexpr s64 divisorPowerMax = 500500;
QVector<s64> primes = primesTo(100*1000*1000);
QVector<s64> powers(primes.size(), 0);
s64 divisorPo... | 35.693069 | 201 | 0.50846 | hydroo |
7a6c887b00ba4b06ab40c5800e834e3303bef533 | 2,751 | hpp | C++ | DeviceCode/Targets/OS/Toppers/hrp2/cfg/toppers/output_file.hpp | Sirokujira/MicroFrameworkPK_v4_3 | a0d80b4fd8eeda6dbdb58f6f7beb4f07f7ef563e | [
"Apache-2.0"
] | null | null | null | DeviceCode/Targets/OS/Toppers/hrp2/cfg/toppers/output_file.hpp | Sirokujira/MicroFrameworkPK_v4_3 | a0d80b4fd8eeda6dbdb58f6f7beb4f07f7ef563e | [
"Apache-2.0"
] | null | null | null | DeviceCode/Targets/OS/Toppers/hrp2/cfg/toppers/output_file.hpp | Sirokujira/MicroFrameworkPK_v4_3 | a0d80b4fd8eeda6dbdb58f6f7beb4f07f7ef563e | [
"Apache-2.0"
] | 1 | 2019-12-05T18:59:01.000Z | 2019-12-05T18:59:01.000Z | /*
* TOPPERS Software
* Toyohashi Open Platform for Embedded Real-Time Systems
*
* Copyright (C) 2007-2008 by TAKAGI Nobuhisa
*
* 上記著作権者は,以下の(1)〜(4)の条件を満たす場合に限り,本ソフトウェ
* ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
* 変・再配布(以下,利用と呼ぶ)することを無償で許諾する.
* (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
* 権表示,この利用条件および下記の無保... | 26.451923 | 86 | 0.66594 | Sirokujira |
7a6cfe62ee57b38888de23064ec75ab77a4415d4 | 215 | cpp | C++ | PETBWUAMF/src/Assets/TextureAsset.cpp | piotrfutymski/PETBWUAMF | 05953179a8649b8e55abcdb98b50f91a46e2da53 | [
"Apache-2.0"
] | null | null | null | PETBWUAMF/src/Assets/TextureAsset.cpp | piotrfutymski/PETBWUAMF | 05953179a8649b8e55abcdb98b50f91a46e2da53 | [
"Apache-2.0"
] | null | null | null | PETBWUAMF/src/Assets/TextureAsset.cpp | piotrfutymski/PETBWUAMF | 05953179a8649b8e55abcdb98b50f91a46e2da53 | [
"Apache-2.0"
] | null | null | null | #include "TextureAsset.h"
void TextureAsset::loadAsset(const nlohmann::json & assetFile)
{
sf::Image i;
i.loadFromFile(_name);
i.createMaskFromColor(sf::Color{ 255,255,255,255 });
_texture.loadFromImage(i);
}
| 19.545455 | 62 | 0.734884 | piotrfutymski |
7a6e44a11ffeaa0ed5c560b4709be0d81774c62e | 388 | hpp | C++ | luacpp/exception.hpp | TyRoXx/lua-cpp | 2ac1237a201892f8a99f9f44b9a45130bb6dec83 | [
"MIT"
] | null | null | null | luacpp/exception.hpp | TyRoXx/lua-cpp | 2ac1237a201892f8a99f9f44b9a45130bb6dec83 | [
"MIT"
] | null | null | null | luacpp/exception.hpp | TyRoXx/lua-cpp | 2ac1237a201892f8a99f9f44b9a45130bb6dec83 | [
"MIT"
] | null | null | null | #ifndef LUACPP_EXCEPTION_HPP
#define LUACPP_EXCEPTION_HPP
#include <stdexcept>
#include <boost/config.hpp>
namespace lua
{
struct lua_exception : std::runtime_error
{
explicit lua_exception(int rc, std::string message)
: std::runtime_error(std::move(message))
, m_rc(rc)
{
}
int code() const BOOST_NOE... | 13.37931 | 53 | 0.693299 | TyRoXx |
7a785be4485870c53b1ec1a6b7d219bea5c8d3d9 | 1,554 | hpp | C++ | PropertiesPanel/ConnectionPropertiesPanel.hpp | sielicki/PothosFlow | 61487651f3718fc75fd2da6ef36e90c8537c8dd3 | [
"BSL-1.0"
] | 44 | 2017-10-14T19:27:44.000Z | 2022-02-20T13:43:20.000Z | PropertiesPanel/ConnectionPropertiesPanel.hpp | sielicki/PothosFlow | 61487651f3718fc75fd2da6ef36e90c8537c8dd3 | [
"BSL-1.0"
] | 72 | 2015-01-06T09:36:43.000Z | 2017-07-08T17:36:45.000Z | PropertiesPanel/ConnectionPropertiesPanel.hpp | sielicki/PothosFlow | 61487651f3718fc75fd2da6ef36e90c8537c8dd3 | [
"BSL-1.0"
] | 24 | 2018-02-02T04:29:29.000Z | 2022-03-24T06:19:04.000Z | // Copyright (c) 2014-2014 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#pragma once
#include <Pothos/Config.hpp>
#include "GraphObjects/GraphEndpoint.hpp"
#include "GraphEditor/GraphState.hpp"
#include <QWidget>
#include <QPointer>
#include <QString>
#include <map>
class GraphConnection;
class QPushButton;
class QT... | 28.254545 | 137 | 0.758044 | sielicki |
7a80edf05b0bc5b7403f119bf85a57c62a33ce9b | 853 | cpp | C++ | BUPT 2021 Winter Training #6/h.cpp | rakty/2022-spring-training | db36ad3838945d2bb3a951f9ccd8dfa6f0916d0d | [
"MIT"
] | 1 | 2022-03-04T15:11:33.000Z | 2022-03-04T15:11:33.000Z | BUPT 2021 Winter Training #6/h.cpp | rakty/2022-spring-training | db36ad3838945d2bb3a951f9ccd8dfa6f0916d0d | [
"MIT"
] | null | null | null | BUPT 2021 Winter Training #6/h.cpp | rakty/2022-spring-training | db36ad3838945d2bb3a951f9ccd8dfa6f0916d0d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
//const int inf=0x7fffffff;
const int inf = 0x3f3f3f3f;
const int maxn = 1e5 + 5;
int t, n;
struct G
{
ll a, b;
} g[maxn];
bool cmp(G g1, G g2)
{
return g1.b > g2.b;
}
void solve()
{
cin >> n;
for (int i = 1; i <= n; i++)
{
c... | 19.386364 | 55 | 0.438453 | rakty |
7a8273e61c59aa9a162ae98f4ae6273f62d57fbe | 1,342 | cpp | C++ | Server/src/Services/Drawing/ServerDrawingServiceBuild.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Server/src/Services/Drawing/ServerDrawingServiceBuild.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Server/src/Services/Drawing/ServerDrawingServiceBuild.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 35.315789 | 78 | 0.770492 | achilex |
7a82a940359e272f885a91339490c8cedf115db3 | 44,964 | cpp | C++ | _vscp_common/duktape_vscp_func.cpp | benys/vscpworks | 755a1733d0c55c8dd22d65e0e1ed1598311ef999 | [
"MIT"
] | 1 | 2022-01-24T20:21:09.000Z | 2022-01-24T20:21:09.000Z | _vscp_common/duktape_vscp_func.cpp | benys/vscpworks | 755a1733d0c55c8dd22d65e0e1ed1598311ef999 | [
"MIT"
] | 1 | 2020-05-05T18:40:57.000Z | 2020-05-05T18:40:57.000Z | _vscp_common/duktape_vscp_func.cpp | benys/vscpworks | 755a1733d0c55c8dd22d65e0e1ed1598311ef999 | [
"MIT"
] | 1 | 2020-05-05T08:07:32.000Z | 2020-05-05T08:07:32.000Z | // duktape_vscp_func.c
//
// This file is part of the VSCP (http://www.vscp.org)
//
// The MIT License (MIT)
//
// Copyright (c) 2000-2018 Ake Hedman, Grodans Paradis AB <info@grodansparadis.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated doc... | 28.368454 | 92 | 0.508229 | benys |
7a8548efc589ec5067ee04abd3fd97490636c072 | 303 | hpp | C++ | library/linear_algebra/Hadamard_matrix.hpp | fura2/competitive-programming-library | fc101651640ac5418155efce74f5ec103443bc8c | [
"MIT"
] | null | null | null | library/linear_algebra/Hadamard_matrix.hpp | fura2/competitive-programming-library | fc101651640ac5418155efce74f5ec103443bc8c | [
"MIT"
] | null | null | null | library/linear_algebra/Hadamard_matrix.hpp | fura2/competitive-programming-library | fc101651640ac5418155efce74f5ec103443bc8c | [
"MIT"
] | null | null | null | /*
2^n 次の Hadamard 行列
各要素が 1 か -1 の正方行列であって次をみたすもの
- どの二つの行も直交する
- どの二つの列も直交する
計算量 : O(4^N)
*/
matrix<int> Hadamard(int n){
matrix<int> H(1<<n);
H[0][0]=1;
rep(k,n){
int d=1<<k;
rep(i,d) rep(j,d) {
H[i][j+d]=H[i][j];
H[i+d][j]=H[i][j];
H[i+d][j+d]=-H[i][j];
}
}
return H;
}
| 13.772727 | 30 | 0.50165 | fura2 |
18546e4d339e80b1ed84e856c84cf89bf5c20f19 | 772 | cc | C++ | components/sync/base/data_type_histogram.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | components/sync/base/data_type_histogram.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | components/sync/base/data_type_histogram.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync/base/data_type_histogram.h"
#include "base/metrics/histogram_functions.h"
const char kModelTypeMemoryHistogramPrefix[] = "Sync... | 38.6 | 74 | 0.721503 | zipated |
18547a55a38350e8c1943ae81ee6d62c0e576471 | 1,615 | cpp | C++ | libs/mixer---linux/sound.cpp | ElectronicCats/pxt-common-packages | 230921df47581695d5c9ed2eb9f80792bf58c62a | [
"MIT"
] | 1 | 2020-02-03T07:15:28.000Z | 2020-02-03T07:15:28.000Z | libs/mixer---linux/sound.cpp | ElectronicCats/pxt-common-packages | 230921df47581695d5c9ed2eb9f80792bf58c62a | [
"MIT"
] | null | null | null | libs/mixer---linux/sound.cpp | ElectronicCats/pxt-common-packages | 230921df47581695d5c9ed2eb9f80792bf58c62a | [
"MIT"
] | null | null | null | #include "pxt.h"
#include "SoundOutput.h"
#include <alsa/asoundlib.h>
#include <pthread.h>
static void alsa_check(int pos, int fn) {
if (fn < 0) {
DMESG("alsa fail! pos=%d err=%d: %s", pos, fn, snd_strerror(fn));
target_panic(950);
}
}
void *LinuxDAC::play(void *self) {
auto dac = (LinuxD... | 27.844828 | 99 | 0.569659 | ElectronicCats |
185bc72e7941a19edc94dae99659e95f5ce5784c | 2,365 | cc | C++ | StRoot/StMcEvent/StMcIstHit.cc | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/StMcEvent/StMcIstHit.cc | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/StMcEvent/StMcIstHit.cc | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | /***************************************************************************
*
* $Id: StMcIstHit.cc,v 2.12 2015/03/13 18:44:58 perev Exp $
* $Log: StMcIstHit.cc,v $
* Revision 2.12 2015/03/13 18:44:58 perev
* Roll back
*
* Revision 2.10 2012/12/18 21:01:53 perev
* Ist development (Jonathan)
*
* Revision 2... | 31.959459 | 88 | 0.641438 | xiaohaijin |
185ec02db22123b5f8b3e2e83268669ddb73098a | 1,870 | cpp | C++ | zusaetzlicher_code/test_programme/klassen_operator/myClass.cpp | jWeb94/kit_wissenschaftliches_programmieren_fuer_ingenieure | b7a6b1b6be62263a7b7955e0fd60e2bd55adac09 | [
"WTFPL"
] | null | null | null | zusaetzlicher_code/test_programme/klassen_operator/myClass.cpp | jWeb94/kit_wissenschaftliches_programmieren_fuer_ingenieure | b7a6b1b6be62263a7b7955e0fd60e2bd55adac09 | [
"WTFPL"
] | null | null | null | zusaetzlicher_code/test_programme/klassen_operator/myClass.cpp | jWeb94/kit_wissenschaftliches_programmieren_fuer_ingenieure | b7a6b1b6be62263a7b7955e0fd60e2bd55adac09 | [
"WTFPL"
] | null | null | null | #include"myClass.h" // Stellt die Abhaenigkeit her, damit ich in der Implementierung auch alle anderen Methoden, Variablen und Funktionen verwenden kann. Ohne das wuerde this->x nicht funktionieren!
using namespace std;
myClass::myClass(){
cout << "called the standart constructor" << endl;
//this->a = -1;
//t... | 24.933333 | 199 | 0.67861 | jWeb94 |
185f0f80966068853fc5590775cf190781d4274a | 20,160 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/tools/clangbackend/source/clangcodemodelserver.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/src/tools/clangbackend/source/clangcodemodelserver.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/src/tools/clangbackend/source/clangcodemodelserver.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 39.920792 | 135 | 0.714236 | kevinlq |
18661f0a8a713d015d3438bfe12bd83f9016b789 | 1,230 | cpp | C++ | leetcode/linked-list/1290_convert_binary_number_in_a_linked_list_to_integer.cpp | k10tetry/data-structure-algorithm | 56af1e648ace71877874e45afad787a90beb4455 | [
"MIT"
] | 1 | 2021-09-30T19:14:59.000Z | 2021-09-30T19:14:59.000Z | leetcode/linked-list/1290_convert_binary_number_in_a_linked_list_to_integer.cpp | k10tetry/data-structure-algorithm | 56af1e648ace71877874e45afad787a90beb4455 | [
"MIT"
] | null | null | null | leetcode/linked-list/1290_convert_binary_number_in_a_linked_list_to_integer.cpp | k10tetry/data-structure-algorithm | 56af1e648ace71877874e45afad787a90beb4455 | [
"MIT"
] | 1 | 2021-10-01T14:29:20.000Z | 2021-10-01T14:29:20.000Z | #include <bits/stdc++.h>
using namespace std;
/*
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number.
Return the decimal value of the number in the linked list.
*/
/*
Solved using stri... | 26.73913 | 182 | 0.572358 | k10tetry |