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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9e6696f57287cb809f6261bae1f749e86b51c56f | 484 | cpp | C++ | 228. Summary Ranges/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | 228. Summary Ranges/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | 228. Summary Ranges/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | /** 228. Summary Ranges
Given a sorted integer array without duplicates, return the summary of its ranges.
For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"].
Credits:Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases.
**/
#include <iostream>
#include "../utils.h"
u... | 19.36 | 99 | 0.667355 |
9e67cbfbd174db0408f4e99477194e09d737b4f8 | 4,357 | cpp | C++ | ShopListManager/ShopPackage.cpp | 0x4d696e68/InGameShop | 405e01defb59bd1cf22a5a5d245fdf2475b1ca36 | [
"MIT"
] | 5 | 2021-08-31T19:18:24.000Z | 2021-11-11T08:58:20.000Z | ShopListManager/ShopPackage.cpp | 0x4d696e68/InGameShop | 405e01defb59bd1cf22a5a5d245fdf2475b1ca36 | [
"MIT"
] | null | null | null | ShopListManager/ShopPackage.cpp | 0x4d696e68/InGameShop | 405e01defb59bd1cf22a5a5d245fdf2475b1ca36 | [
"MIT"
] | 2 | 2021-08-31T18:39:50.000Z | 2021-09-16T22:37:06.000Z | //************************************************************************
//
// Decompiled by @myheart, @synth3r
// <https://forum.ragezone.com/members/2000236254.html>
//
//
// FILE: ShopPackage.cpp
//
//
#include "stdafx.h"
#if(DECOMPILE_INGAMESHOP==1)
#include "ShopPackage.h"
#include "StringToken.h"
#include "Str... | 25.934524 | 100 | 0.706679 |
9e67f3cc68150c8beadda59b2c30b05adaf5e682 | 761 | cpp | C++ | Jeu/Src/ComponentsManagement/ProjectileSystem/Projectiles/Fireball.cpp | abastienIIT/Roguelike | f31935e45c968fbe608e57d0137d71251d1afc10 | [
"Apache-2.0"
] | 2 | 2021-02-07T16:07:10.000Z | 2021-02-07T23:18:43.000Z | Jeu/Src/ComponentsManagement/ProjectileSystem/Projectiles/Fireball.cpp | abastienIIT/Roguelike | f31935e45c968fbe608e57d0137d71251d1afc10 | [
"Apache-2.0"
] | 49 | 2021-02-06T19:08:07.000Z | 2021-09-14T16:43:27.000Z | Jeu/Src/ComponentsManagement/ProjectileSystem/Projectiles/Fireball.cpp | abastienIIT/Roguelike | f31935e45c968fbe608e57d0137d71251d1afc10 | [
"Apache-2.0"
] | null | null | null | #include "Fireball.h"
#include "../../Components.h"
#include "../../../Common/Globalbilboulga.h"
void Fireball::init(Entity* projectile, std::vector<Entity*>* targets)
{
ProjectileBase::init(projectile, targets);
transform->velocity = velocity;
sprite->setAsset("Fireball");
sprite->setCurrentTexture(0);
collid... | 23.060606 | 83 | 0.683311 |
9e695c2c6e58847974dc3e0b07949c777725ce7d | 788 | cpp | C++ | C++/add-bold-tag-in-string.cpp | cmhuang0328/Leetcode | f1b8e4b8f0e2ca74d4315d55ad17b7c2be1cb253 | [
"MIT"
] | 5 | 2017-11-14T09:32:33.000Z | 2020-05-11T05:15:41.000Z | C++/add-bold-tag-in-string.cpp | Ikhideifidon/LeetCode | 414e70bc0181207d49877abc025fb62d03b93b85 | [
"MIT"
] | null | null | null | C++/add-bold-tag-in-string.cpp | Ikhideifidon/LeetCode | 414e70bc0181207d49877abc025fb62d03b93b85 | [
"MIT"
] | 3 | 2019-05-14T02:49:34.000Z | 2020-05-19T08:45:39.000Z | // Time: O(s * d * l), l is the average string length
// Space: O(s)
class Solution {
public:
string addBoldTag(string s, vector<string>& dict) {
vector<bool> bold(s.length());
for (const auto& d: dict) {
auto pos = -1;
while ((pos = s.find(d, pos + 1)) != string::npos) {
... | 28.142857 | 80 | 0.414975 |
9e69f8a3a3c40561449fcf2c1b6021ca3b2f5dca | 5,954 | cc | C++ | src/c++/apps/echo/httpops.cc | isaac-ped/demikernel | 6f372569e3599d8bf9083df6c25490c42af74c0d | [
"MIT"
] | null | null | null | src/c++/apps/echo/httpops.cc | isaac-ped/demikernel | 6f372569e3599d8bf9083df6c25490c42af74c0d | [
"MIT"
] | null | null | null | src/c++/apps/echo/httpops.cc | isaac-ped/demikernel | 6f372569e3599d8bf9083df6c25490c42af74c0d | [
"MIT"
] | null | null | null | #include <string.h>
#include <stdio.h>
#include <stdint.h>
#include "httpops.hh"
int regex_html(char *to_match, char *htmlDoc, size_t length) {
const char *pcreErrorStr;
int errOffset;
pcre * reCompiled = pcre_compile(EVIL_REGEX, 0, &pcreErrorStr, &errOffset, NULL);
if (reCompiled == NULL) {
fp... | 33.638418 | 101 | 0.584649 |
9e6b96d69508e8a7e4d2467a1b5af222443a5a6f | 2,712 | cpp | C++ | tests/picross_shell/test_cross_command.cpp | deqyra/Picross- | 0c81172faa8121c58bc2a88122d1cdbe661cc17e | [
"MIT"
] | null | null | null | tests/picross_shell/test_cross_command.cpp | deqyra/Picross- | 0c81172faa8121c58bc2a88122d1cdbe661cc17e | [
"MIT"
] | 1 | 2020-05-16T14:01:08.000Z | 2020-06-11T21:12:02.000Z | tests/picross_shell/test_cross_command.cpp | deqyra/PicrossEngine | 0c81172faa8121c58bc2a88122d1cdbe661cc17e | [
"MIT"
] | null | null | null | #include "../../lib/catch2/catch2.hpp"
#include <sstream>
#include "../../tools/cli/cli_streams.hpp"
#include "../../tools/micro_shell/micro_shell_codes.hpp"
#include "../../picross_shell/picross_shell_state.hpp"
#include "../../picross_shell/shell_cross_command.hpp"
#include "../../core/grid.hpp"
#include "../../core... | 35.220779 | 125 | 0.614307 |
9e6ea7609f559d3f5fa9d7c2b9f4b53b1c3d43e2 | 478 | cpp | C++ | layer2/ethernetHelper.cpp | zetwhite/SimpleEtherCATMaster | f17b04c96385d13e0cf1cdc664e4821058280273 | [
"MIT"
] | 2 | 2021-03-04T08:50:02.000Z | 2021-04-05T14:59:57.000Z | layer2/ethernetHelper.cpp | zetwhite/SimpleEtherCATMaster | f17b04c96385d13e0cf1cdc664e4821058280273 | [
"MIT"
] | null | null | null | layer2/ethernetHelper.cpp | zetwhite/SimpleEtherCATMaster | f17b04c96385d13e0cf1cdc664e4821058280273 | [
"MIT"
] | null | null | null | #include "ethernetHelper.hpp"
const int EthernetHelper::size = 14;
EthernetHelper::EthernetHelper (uint8_t srcMac[6], uint8_t destMac[6], uint16_t type){
ptr = new struct ethhdr;
memcpy(ptr->h_dest, destMac, 6);
memcpy(ptr->h_source, srcMac, 6);
ptr->h_proto = htons(type);
}
unsigned char* Et... | 26.555556 | 86 | 0.692469 |
9e70c3b369f80da0cad65b595b841c051f7251eb | 41,980 | cpp | C++ | engine/navigation/navigation_manager.cpp | AugustoMoura/GritEnginePR | 0f8303df7f70972036d9b555dffe08cadb473926 | [
"MIT"
] | null | null | null | engine/navigation/navigation_manager.cpp | AugustoMoura/GritEnginePR | 0f8303df7f70972036d9b555dffe08cadb473926 | [
"MIT"
] | null | null | null | engine/navigation/navigation_manager.cpp | AugustoMoura/GritEnginePR | 0f8303df7f70972036d9b555dffe08cadb473926 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
// Permission is granted to anyone to use this software for any purpose... | 26.910256 | 118 | 0.676941 |
9e716ed1b82e835dbbed3a6fa2d870d54d83a0f6 | 21,662 | cpp | C++ | src/ui/ui.cpp | EnthDev/dedicatedslave | d8c097082d9e1ae11740cd917a9e9d449be457d2 | [
"MIT"
] | 7 | 2018-03-05T02:58:13.000Z | 2019-01-06T13:11:50.000Z | src/ui/ui.cpp | EnthDev/dedicatedslave | d8c097082d9e1ae11740cd917a9e9d449be457d2 | [
"MIT"
] | 3 | 2017-12-21T00:29:38.000Z | 2019-04-24T01:05:12.000Z | src/ui/ui.cpp | EnthDev/dedicatedslave | d8c097082d9e1ae11740cd917a9e9d449be457d2 | [
"MIT"
] | 1 | 2019-03-07T11:41:55.000Z | 2019-03-07T11:41:55.000Z | // Includes
#include <QtWidgets>
#include "ui.h"
DedicatedSlaveUi::DedicatedSlaveUi(const QString &dir, QWidget *parent)
: QWidget(parent), app_slcInstPos(new int[2])
{
app_slcInstPos[0] = -1;
parentWin = qobject_cast<QMainWindow*>(parent);
if(parentWin != 0 ) { // After casting parent widget QMainWindow... | 36.591216 | 170 | 0.728188 |
9e72f674499a8b8ec62adb88341d59099f91252e | 8,949 | cpp | C++ | SimSpark/rcssserver3d/plugin/soccer/hmdp_effector/hmdpeffector.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/rcssserver3d/plugin/soccer/hmdp_effector/hmdpeffector.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/rcssserver3d/plugin/soccer/hmdp_effector/hmdpeffector.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
this file is part of rcssserver3D
Copyright (C) 2002,2003 Koblenz University
Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
Copyright (C) 2008 N. Michael Mayer, email: nmmayer@gmail.com
This program is free software; you can... | 28.5 | 150 | 0.608224 |
9e76384bb659a7ad64d1a252793929ad59cfc345 | 508 | cpp | C++ | Classwork/25.02.19/rectangle.cpp | 5ko99/FMI-Semester-2 | a7e7f2cc1ae7b3198728197c8b70d14156eb0996 | [
"MIT"
] | null | null | null | Classwork/25.02.19/rectangle.cpp | 5ko99/FMI-Semester-2 | a7e7f2cc1ae7b3198728197c8b70d14156eb0996 | [
"MIT"
] | null | null | null | Classwork/25.02.19/rectangle.cpp | 5ko99/FMI-Semester-2 | a7e7f2cc1ae7b3198728197c8b70d14156eb0996 | [
"MIT"
] | null | null | null | #include<iostream>;
using namespace std;
struct Rectangle{
double width;
double height;
};
void printRec(Rectangle r){
cout<<"Width:"<<r.width<<endl;
cout<<"Height:"<<r.height<<endl;
}
void initRec(Rectangle* r){
cin>>(*r).width;
cin>>(*r).height;
}
Rectangle initRec(){
Rectan... | 17.517241 | 37 | 0.555118 |
9e76a925bb00ef7ec3d318043a012adeaaf8e42c | 5,445 | hpp | C++ | src/batteries/radix_queue.hpp | tonyastolfi/batteries | 67349930e54785f44eab84f1e56da6c78c66a5f9 | [
"Apache-2.0"
] | 1 | 2022-01-04T20:28:17.000Z | 2022-01-04T20:28:17.000Z | src/batteries/radix_queue.hpp | mihir-thakkar/batteries | 67349930e54785f44eab84f1e56da6c78c66a5f9 | [
"Apache-2.0"
] | 2 | 2020-06-04T14:02:24.000Z | 2020-06-04T14:03:18.000Z | src/batteries/radix_queue.hpp | mihir-thakkar/batteries | 67349930e54785f44eab84f1e56da6c78c66a5f9 | [
"Apache-2.0"
] | 1 | 2022-01-03T20:24:31.000Z | 2022-01-03T20:24:31.000Z | // Copyright 2021 Anthony Paul Astolfi
//
#pragma once
#ifndef BATTERIES_RADIX_QUEUE_HPP
#define BATTERIES_RADIX_QUEUE_HPP
#include <batteries/assert.hpp>
#include <batteries/int_types.hpp>
#include <boost/functional/hash.hpp>
#include <array>
#include <limits>
#include <type_traits>
namespace batt {
template <usi... | 26.052632 | 108 | 0.547658 |
9e7a1c6c684d37995423a925a87f05e1ff12801a | 13,114 | cpp | C++ | groups/bdl/bdlde/bdlde_quotedprintableencoder.cpp | seanbaxter/bde-1 | 149176ebc2ae49c3b563895a7332fe638a760782 | [
"Apache-2.0"
] | 1 | 2021-11-10T16:53:42.000Z | 2021-11-10T16:53:42.000Z | groups/bdl/bdlde/bdlde_quotedprintableencoder.cpp | seanbaxter/bde-1 | 149176ebc2ae49c3b563895a7332fe638a760782 | [
"Apache-2.0"
] | 2 | 2020-11-05T15:20:55.000Z | 2021-01-05T19:38:43.000Z | groups/bdl/bdlde/bdlde_quotedprintableencoder.cpp | seanbaxter/bde-1 | 149176ebc2ae49c3b563895a7332fe638a760782 | [
"Apache-2.0"
] | 2 | 2020-01-16T17:58:12.000Z | 2020-08-11T20:59:30.000Z | // bdlde_quotedprintableencoder.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | 31.830097 | 79 | 0.538356 |
9e7c6bad8dc38dc8cd43fbe739f5ef56c9044bff | 200 | hpp | C++ | Algorithm.hpp | NagiSenbon/Algorithm | e8044820a2cdd6a26d58097fd84512f3231d8dd6 | [
"Apache-2.0"
] | 2 | 2019-10-07T01:48:53.000Z | 2019-10-13T08:24:22.000Z | Algorithm.hpp | NagiSenbon/Algorithm | e8044820a2cdd6a26d58097fd84512f3231d8dd6 | [
"Apache-2.0"
] | null | null | null | Algorithm.hpp | NagiSenbon/Algorithm | e8044820a2cdd6a26d58097fd84512f3231d8dd6 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "src/Headers.hpp"
#include "src/Heap.hpp"
#include "src/Math.hpp"
#include "src/Meta.hpp"
#include "src/Queue.hpp"
#include "src/Sort.hpp"
// #include "src/Tensor.hpp"
| 20 | 29 | 0.675 |
9e7fb447028b2423a142d6d793883c71cb0ceb47 | 350 | cp | C++ | CocosBuilder/CCBFileRunDelay/CCBFileRunDelay.cp | chipsCode/cocosbuilder3 | 96bfe3089b87e52964c88e11e8fe1678d446b905 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2015-01-04T01:07:04.000Z | 2015-07-25T02:34:56.000Z | CocosBuilder/CCBFileRunDelay/CCBFileRunDelay.cp | chipsCode/cocosbuilder3 | 96bfe3089b87e52964c88e11e8fe1678d446b905 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | CocosBuilder/CCBFileRunDelay/CCBFileRunDelay.cp | chipsCode/cocosbuilder3 | 96bfe3089b87e52964c88e11e8fe1678d446b905 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | /*
* CCBFileRunDelay.cp
* CCBFileRunDelay
*
* Created by Qidea on 11/13/13.
*
*
*/
#include "CCBFileRunDelay.h"
#include "CCBFileRunDelayPriv.h"
CFStringRef CCBFileRunDelayUUID(void)
{
CCCBFileRunDelay* theObj = new CCCBFileRunDelay;
return theObj->UUID();
}
CFStringRef CCCBFileRunDelay::UUID()
{
return... | 15.217391 | 49 | 0.722857 |
9e8113d1fca423b20b9a8299dc50a8aa10fd200d | 11,716 | cpp | C++ | kcfi/llvm-kcfi/lib/CodeGen/CFI.cpp | IntelSTORM/Projects | b983417a5ca22c7679da5a1144b348863bea5698 | [
"Intel"
] | 1 | 2022-01-11T11:12:00.000Z | 2022-01-11T11:12:00.000Z | kcfi/llvm-kcfi/lib/CodeGen/CFI.cpp | IntelSTORMteam/Jurassic-Projects | b983417a5ca22c7679da5a1144b348863bea5698 | [
"Intel"
] | null | null | null | kcfi/llvm-kcfi/lib/CodeGen/CFI.cpp | IntelSTORMteam/Jurassic-Projects | b983417a5ca22c7679da5a1144b348863bea5698 | [
"Intel"
] | null | null | null | //===---- CFI.cpp - kCFI LLVM IR analyzes and transformation --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 29.964194 | 80 | 0.597986 |
9e877c98b23dfe47cefd55199d26bc9eba31bba1 | 1,689 | cpp | C++ | cpp/leetcode/LongestStringChain.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/LongestStringChain.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/LongestStringChain.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | //Leetcode Problem No 1048. Longest String Chain
//Solution written by Xuqiang Fang on 18 May, 2019
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include <stack>
#include <queue>
using namespace std;
class Solution{
public:
int longes... | 21.653846 | 72 | 0.487863 |
9e8c11d9faa94fe11338d41a60378b8707f4955e | 2,876 | cpp | C++ | src/window/preferences/init_chilren.cpp | LibreTextus/LibreTextus | a142c0bed2237b1b252e1ff5dcfdbe82bd4439d3 | [
"CC0-1.0"
] | 3 | 2020-08-26T06:18:42.000Z | 2021-01-16T17:22:29.000Z | src/window/preferences/init_chilren.cpp | LibreTextus/LibreTextus | a142c0bed2237b1b252e1ff5dcfdbe82bd4439d3 | [
"CC0-1.0"
] | null | null | null | src/window/preferences/init_chilren.cpp | LibreTextus/LibreTextus | a142c0bed2237b1b252e1ff5dcfdbe82bd4439d3 | [
"CC0-1.0"
] | null | null | null | #include "preferences.hpp"
void Libre::PreferencesWindow::add_themes_to_themes_combo() {
std::vector<std::string> v = this->settings.get_children("themes", "name");
for (std::vector<std::string>::iterator i = v.begin(); i != v.end(); i++) {
this->ui_pane.get_theme()->get_element()->append(*i);
if (*i == thi... | 37.350649 | 131 | 0.714882 |
9e8dc554686bf44921293885bf7ce947bc2e370e | 1,291 | cpp | C++ | src/thumbnailholder.cpp | digitalsurgeon/EasyWallpapers | 86f62ad6453ed079f9b889d6adc910f0d89092c1 | [
"MIT"
] | null | null | null | src/thumbnailholder.cpp | digitalsurgeon/EasyWallpapers | 86f62ad6453ed079f9b889d6adc910f0d89092c1 | [
"MIT"
] | null | null | null | src/thumbnailholder.cpp | digitalsurgeon/EasyWallpapers | 86f62ad6453ed079f9b889d6adc910f0d89092c1 | [
"MIT"
] | null | null | null | #include "thumbnailholder.h"
#if defined(Q_OS_SYMBIAN)
#include <e32std.h>
#include <touchfeedback.h>
#endif
ThumbnailHolder::ThumbnailHolder() : iPixmap(NULL)
{
setFlag(QGraphicsItem::ItemClipsToShape);
}
ThumbnailHolder::~ThumbnailHolder()
{
delete iPixmap;
}
QRectF ThumbnailHolder::boundingRect() const
... | 18.985294 | 80 | 0.660728 |
9e8ecb5a2f10b5b2c0fae200a98321ecacf7a626 | 3,623 | cxx | C++ | source/opengl/ui_renderer.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 2 | 2016-07-22T10:09:21.000Z | 2017-09-16T06:50:01.000Z | source/opengl/ui_renderer.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 14 | 2016-08-13T22:45:56.000Z | 2018-12-16T03:56:36.000Z | source/opengl/ui_renderer.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | null | null | null | #include <opengl/ui_renderer.hpp>
#include <opengl/bind.hpp>
#include <opengl/draw_info.hpp>
#include <opengl/gpu.hpp>
#include <opengl/renderer.hpp>
#include <opengl/shader.hpp>
#include <boomhs/camera.hpp>
#include <boomhs/math.hpp>
#include <boomhs/rectangle.hpp>
#include <boomhs/shape.hpp>
using namespace boomhs;... | 26.837037 | 111 | 0.665471 |
9e9062b2ab3c13a91fb34a48dc732c589d6af198 | 1,136 | cpp | C++ | Sid's Contests/LeetCode contests/May Challenge/Non Decreasing Array.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Contests/LeetCode contests/May Challenge/Non Decreasing Array.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Contests/LeetCode contests/May Challenge/Non Decreasing Array.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | class Solution {
public:
bool isSorted(vector<int> nums)
{
vector<int> res;
for(int i = 0; i < nums.size(); i++)
res.push_back(nums[i]);
sort(res.begin(), res.end());
for(int i = 0; i < res.size(); i++)
if(res[i] != nums[i])
return false;
... | 26.418605 | 73 | 0.415493 |
9e90a644d3f786772ec655721f087a69972ab44f | 59 | cpp | C++ | C++/Algorytmy dla zabawy/Quiz/start.cpp | Kwandes/highschool-code | ffaf7aea78236cec709ec7c70886df5427005332 | [
"MIT"
] | null | null | null | C++/Algorytmy dla zabawy/Quiz/start.cpp | Kwandes/highschool-code | ffaf7aea78236cec709ec7c70886df5427005332 | [
"MIT"
] | null | null | null | C++/Algorytmy dla zabawy/Quiz/start.cpp | Kwandes/highschool-code | ffaf7aea78236cec709ec7c70886df5427005332 | [
"MIT"
] | null | null | null | #include <iostream>
#include "quiz.h"
using namespace std;
| 14.75 | 20 | 0.745763 |
9e91d353b7c868acdb6e2efdcbe5bcf792310ffd | 96 | cpp | C++ | src/widgets/Library/ProgramLibraryController.cpp | javedlingasur/CompileOne | 646da061ea9a8c427a533490cb612f5858de3f09 | [
"MIT"
] | null | null | null | src/widgets/Library/ProgramLibraryController.cpp | javedlingasur/CompileOne | 646da061ea9a8c427a533490cb612f5858de3f09 | [
"MIT"
] | null | null | null | src/widgets/Library/ProgramLibraryController.cpp | javedlingasur/CompileOne | 646da061ea9a8c427a533490cb612f5858de3f09 | [
"MIT"
] | null | null | null | #include "ProgramLibraryController.h"
ProgramLibraryController::ProgramLibraryController()
{
}
| 16 | 52 | 0.833333 |
9e9928d6d8f93fef0c661d8e2b30a0046d429f03 | 4,688 | cpp | C++ | src/c-API/cTracer.cpp | mensinda/tracer | 874d859a1ac98f296610c8d634eb557e5bc9c515 | [
"BSD-3-Clause"
] | 11 | 2017-07-04T11:23:19.000Z | 2021-08-24T05:20:01.000Z | src/c-API/cTracer.cpp | mensinda/tracer | 874d859a1ac98f296610c8d634eb557e5bc9c515 | [
"BSD-3-Clause"
] | null | null | null | src/c-API/cTracer.cpp | mensinda/tracer | 874d859a1ac98f296610c8d634eb557e5bc9c515 | [
"BSD-3-Clause"
] | 4 | 2017-07-07T19:36:16.000Z | 2022-01-05T15:30:08.000Z | /* Copyright (c) 2017, Daniel Mensinger
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of co... | 31.675676 | 113 | 0.715657 |
9e9a7a21b244e330a0fe45bffa695183c9e364d8 | 2,281 | cpp | C++ | src/argparse.cpp | The-Compiler/herbstluftwm | a4f13aa299a760841ee204ddb180944bad6ceb2d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/argparse.cpp | The-Compiler/herbstluftwm | a4f13aa299a760841ee204ddb180944bad6ceb2d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/argparse.cpp | The-Compiler/herbstluftwm | a4f13aa299a760841ee204ddb180944bad6ceb2d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "argparse.h"
#include <iostream>
using std::string;
/**
* @brief try to parse the arguments
* @param input
* @param output
* @return return whether there has been an error (true = error, false = no error)
*/
bool ArgParse::parsingFails(Input& input, Output& output)
{
size_t mandatoryArguments = 0;
... | 33.544118 | 82 | 0.55765 |
9e9a9292f67c90512d6916416204819b1fb0ae5b | 2,837 | cpp | C++ | Source/AliveLibAO/RollingBallShaker.cpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | 1 | 2021-04-11T23:44:43.000Z | 2021-04-11T23:44:43.000Z | Source/AliveLibAO/RollingBallShaker.cpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | Source/AliveLibAO/RollingBallShaker.cpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | #include "stdafx_ao.h"
#include "RollingBallShaker.hpp"
#include "Function.hpp"
#include "Game.hpp"
#include "stdlib.hpp"
#include "PsxDisplay.hpp"
#include "ScreenManager.hpp"
#include "Primitives.hpp"
void RollingBallShaker_ForceLink() {}
namespace AO {
const static PSX_Pos16 sRollingBallShakerScreenOffsets_4BB740... | 22.696 | 105 | 0.670427 |
9e9bb1d1c9542e659e86698919f1538459c57b57 | 337 | cpp | C++ | CodeForces/Complete/700-799/714A-MeetingOldFriends.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/Complete/700-799/714A-MeetingOldFriends.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/Complete/700-799/714A-MeetingOldFriends.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <cstdio>
int main(){
long long l1, r1, l2, r2, k; scanf("%lld %lld %lld %lld %lld", &l1, &r1, &l2, &r2, &k);
long long l = (l1 > l2) ? l1 : l2;
long long r = (r1 < r2) ? r1 : r2;
long long res = r - l + 1;
if(l <= k && k <= r){--res;}
if(res <= 0){res = 0;}
printf("%lld\n", res);
... | 22.466667 | 91 | 0.454006 |
9e9de3e0c55836644fa4ad9692f6e2948e3c5f59 | 5,983 | cpp | C++ | lib/Dialect/TPU/Interpreter/core/csc.cpp | sophgo/tpu_compiler | 6299ea0a3adae1e5c206bcb9bedf225d16e636db | [
"Apache-2.0"
] | 3 | 2022-03-14T11:47:20.000Z | 2022-03-16T01:45:37.000Z | lib/Dialect/TPU/Interpreter/core/csc.cpp | sophgo/tpu_compiler | 6299ea0a3adae1e5c206bcb9bedf225d16e636db | [
"Apache-2.0"
] | null | null | null | lib/Dialect/TPU/Interpreter/core/csc.cpp | sophgo/tpu_compiler | 6299ea0a3adae1e5c206bcb9bedf225d16e636db | [
"Apache-2.0"
] | null | null | null | #include "tpuc/Interpreter/cpu/csc.hpp"
#include "internal.hpp"
#include "tpuc/Dialect/TPU/TPUDialect.h"
#include "tpuc/MlirModuleInterpreter.h"
static inline int align_up(int x, int n) {
if (n == 0 || n == 1) {
return x;
}
return ((x + n - 1) / n) * n;
}
static inline float UINT8(float data) {
return sta... | 36.705521 | 98 | 0.563263 |
9e9f8638d6bf5ad630ae93ca7924219572182f61 | 1,053 | cpp | C++ | comb_SWEEP_D1_main.cpp | imrehg/bloch | d4920b325b685a0e8842e305f7f9613b6a0fbf42 | [
"MIT"
] | 2 | 2016-08-08T12:33:37.000Z | 2017-09-15T08:38:55.000Z | comb_SWEEP_D1_main.cpp | imrehg/bloch | d4920b325b685a0e8842e305f7f9613b6a0fbf42 | [
"MIT"
] | null | null | null | comb_SWEEP_D1_main.cpp | imrehg/bloch | d4920b325b685a0e8842e305f7f9613b6a0fbf42 | [
"MIT"
] | null | null | null | #include "comb.h"
int main()
{
for(int i=0;i<11;i+=1)
sweep(30,1000000,10*pow(2,i),1/pow(10,4),0,10,12,10,600,15,0);
//sweep steps, total steps, power(uW/cm2),convergence condition,convergence threshold,convergency steps,ADM order,n1 interval,n2 interval,Matrix self multiplication,laser detune
//fst... | 29.25 | 183 | 0.678063 |
9ea3996cf5e814c82439232dbd0eeee8ca4018f4 | 199 | cpp | C++ | Sandbox/src/SandboxApp.cpp | thiagofsm36/HazelTM | 033a0d733183a076ba849026d80a6cf647ad3173 | [
"MIT"
] | null | null | null | Sandbox/src/SandboxApp.cpp | thiagofsm36/HazelTM | 033a0d733183a076ba849026d80a6cf647ad3173 | [
"MIT"
] | null | null | null | Sandbox/src/SandboxApp.cpp | thiagofsm36/HazelTM | 033a0d733183a076ba849026d80a6cf647ad3173 | [
"MIT"
] | null | null | null | #include <HazelTM.h>
class Sandbox: public HazelTM::Application {
public:
Sandbox() {
}
~Sandbox()
{
}
};
HazelTM::Application* HazelTM::CreateApplication() {
return new Sandbox();
}
| 9.045455 | 52 | 0.648241 |
9ea4b8ad82da2c9b3a9535d29b2e02d53215371c | 2,723 | cpp | C++ | Github-Arduino/libraries/ideawu_RTC/base/packet.cpp | famley-richards/Documents-KTibow | b5d2be03ea2f6687cd9d854d9f43ef839a37e275 | [
"MIT"
] | null | null | null | Github-Arduino/libraries/ideawu_RTC/base/packet.cpp | famley-richards/Documents-KTibow | b5d2be03ea2f6687cd9d854d9f43ef839a37e275 | [
"MIT"
] | null | null | null | Github-Arduino/libraries/ideawu_RTC/base/packet.cpp | famley-richards/Documents-KTibow | b5d2be03ea2f6687cd9d854d9f43ef839a37e275 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include "log.h"
#include "packet.h"
int Packet::parse(){
parsed = true;
this->params_.clear();
if(this->len < HEADER_LEN){
return -1;
}
int size = this->size();
char *head = (char *)this->data();
while(size > 0){
if(head[0] == ' ' || head[0] == '\r'){
head ++;
size --;
cont... | 18.909722 | 81 | 0.573265 |
9ea812a3010535aa59762748ff0aa6ef36e1d939 | 1,554 | cpp | C++ | src/factory/font.cpp | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | 7 | 2019-08-07T21:27:27.000Z | 2020-11-27T16:33:16.000Z | src/factory/font.cpp | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | src/factory/font.cpp | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Equal Games
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 28.254545 | 110 | 0.698198 |
9ea8d3c8220c1d7b5590f4de0745222909c735b4 | 5,155 | cpp | C++ | Qt_GUI/DisplayPanelWidget.cpp | SDUBigDataCourse/RecursiveSubdivision-basedSampling | a187eabe37e64312b326461d29800f1aff25371c | [
"MIT"
] | 5 | 2020-10-26T09:42:16.000Z | 2022-02-16T10:36:24.000Z | Qt_GUI/DisplayPanelWidget.cpp | Ideas-Laboratory/RecursiveSubdivision-basedSampling | 2b8cbae9cb72a05089ace5ccee4745d33121d60f | [
"MIT"
] | null | null | null | Qt_GUI/DisplayPanelWidget.cpp | Ideas-Laboratory/RecursiveSubdivision-basedSampling | 2b8cbae9cb72a05089ace5ccee4745d33121d60f | [
"MIT"
] | 2 | 2019-09-09T08:01:37.000Z | 2019-12-01T03:36:47.000Z | #include "DisplayPanelWidget.h"
using namespace std;
DisplayPanelWidget::DisplayPanelWidget(SamplingProcessViewer *spv, unordered_map<uint, string> *c2l_mapping, QWidget * parent) : QWidget(parent), viewer(spv), class2label(c2l_mapping)
{
setFixedWidth(440);
container = dynamic_cast<QScrollArea*>(parent);
QVBoxLa... | 37.627737 | 183 | 0.711542 |
9ea910c3b6479e86e3bac33e8e3cb5d3b2af02b2 | 2,015 | cpp | C++ | JayEngine/Jay_Engine/UI_Hierarchy.cpp | Josef212/JayEngine | 437faf3c81eb9c13bb99a104338c7de4434323c6 | [
"MIT"
] | null | null | null | JayEngine/Jay_Engine/UI_Hierarchy.cpp | Josef212/JayEngine | 437faf3c81eb9c13bb99a104338c7de4434323c6 | [
"MIT"
] | 2 | 2016-09-27T09:29:06.000Z | 2016-11-02T09:42:13.000Z | JayEngine/Jay_Engine/UI_Hierarchy.cpp | Josef212/JayEngine | 437faf3c81eb9c13bb99a104338c7de4434323c6 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "UI_Hierarchy.h"
#include "ModuleGOManager.h"
#include "GameObject.h"
#include "Component.h"
#include "Transform.h"
#include "Mesh.h"
#include "Material.h"
#include "ModuleWindow.h"
UI_Hierarchy::UI_Hierarchy(bool startEnalbed) : UI_Panel(startEnalbed)
{
}
UI_Hierarchy::~UI_Hierar... | 23.430233 | 146 | 0.701241 |
9ea93736a1011d8434627a70580108e9b05f012d | 270 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/quest/QuickItemsSet.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/quest/QuickItemsSet.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/quest/QuickItemsSet.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace quest {
enum class QuickItemsSet : uint32_t
{
Q001_Kereznikov_Heal_Phone = 0,
Q003_All = 1,
};
} // namespace quest
} // namespace RED4ext
| 16.875 | 57 | 0.722222 |
9eab0549271f5337d77b1c6db8edfc6e879c9a72 | 1,184 | cpp | C++ | workbench/src/audiostream.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | 5 | 2017-12-27T12:57:36.000Z | 2021-10-02T03:21:40.000Z | workbench/src/audiostream.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | 9 | 2020-09-29T22:40:49.000Z | 2020-10-17T20:05:05.000Z | workbench/src/audiostream.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | null | null | null | #include "audiostream.hpp"
#include <cstring>
#include <cassert>
// Implement stb_vorbis here!
#undef STB_VORBIS_HEADER_ONLY
#include <stb_vorbis.h>
uint32_t audio_samplerate;
uint32_t audio_buffersize;
uint32_t audio_channels;
AudioStream::AudioStream(int channels) :
samples(audio_buffersize * channels),
c... | 17.939394 | 74 | 0.728041 |
9eacbcac940dcbd9bdf58f9fe934da294c7b8e8b | 499 | cpp | C++ | test/src/bextr_test.cpp | MatsuTaku/libbo | e139e1bd81898f22a903a7d43018c93ae2722601 | [
"Unlicense"
] | null | null | null | test/src/bextr_test.cpp | MatsuTaku/libbo | e139e1bd81898f22a903a7d43018c93ae2722601 | [
"Unlicense"
] | null | null | null | test/src/bextr_test.cpp | MatsuTaku/libbo | e139e1bd81898f22a903a7d43018c93ae2722601 | [
"Unlicense"
] | null | null | null | //
// Created by 松本拓真 on 2019/11/06.
//
#include "gtest/gtest.h"
#include "bo/bextr.hpp"
namespace {
constexpr int N = 1<<16;
uint64_t rand64() {
return uint64_t(random()) | (uint64_t(random()) << 32);
}
}
TEST(Bextr, 64) {
for (int i = 0; i < N; i++) {
auto val = rand64();
int s = random() % 64;
... | 16.633333 | 59 | 0.529058 |
9eb0b41af51f4d54c4f306c07f27818893871ed7 | 185 | hpp | C++ | Extensions/Includes.hpp | CodeRedRL/CodeRed-Universal | d6dd12fea9d4a583a99666d7cf75b7e0e3db896a | [
"MIT"
] | 6 | 2021-04-22T01:50:35.000Z | 2021-07-16T21:06:46.000Z | Extensions/Includes.hpp | CodeRedRL/CodeRed-Universal | d6dd12fea9d4a583a99666d7cf75b7e0e3db896a | [
"MIT"
] | 2 | 2021-04-24T23:15:32.000Z | 2021-05-26T02:22:43.000Z | Extensions/Includes.hpp | CodeRedRL/CodeRed-Universal | d6dd12fea9d4a583a99666d7cf75b7e0e3db896a | [
"MIT"
] | 4 | 2021-04-23T18:26:08.000Z | 2021-06-02T09:41:14.000Z | #pragma once
#include "Extensions/Colors.hpp"
#include "Extensions/Formatting.hpp"
#include "Extensions/Math.hpp"
#include "Extensions/Memory.hpp"
#include "Extensions/UnrealMemory.hpp" | 30.833333 | 38 | 0.8 |
9eb8c75d4134e31fb7cd5a15e831fff7c1bc2abb | 1,173 | cpp | C++ | icpc/2019-9-24/I.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | icpc/2019-9-24/I.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | icpc/2019-9-24/I.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #include <cstdio>
#include <algorithm>
using namespace std;
#define NMAX 50
typedef unsigned char u8;
static int n, m, _, cnt;
static int u[NMAX], v[NMAX];
static u8 s[NMAX];
void dfs(int i) {
if (i == m) cnt++;
else if (s[u[i]] < s[v[i]]) {
dfs(i + 1);
swap(s[u[i]], s[v[i]]);
dfs(... | 17.772727 | 42 | 0.369991 |
9ebdc49e6fbdfe07a2d77199fde267c9bbbadfb1 | 1,283 | cpp | C++ | tests/TestTiming/TestStopWatch.cpp | cvilas/grape-old | d8e9b184fff396982be8d230214a1f66a7a8fcc9 | [
"BSD-3-Clause"
] | null | null | null | tests/TestTiming/TestStopWatch.cpp | cvilas/grape-old | d8e9b184fff396982be8d230214a1f66a7a8fcc9 | [
"BSD-3-Clause"
] | 4 | 2018-06-04T08:18:21.000Z | 2018-07-13T14:36:03.000Z | tests/TestTiming/TestStopWatch.cpp | cvilas/grape-old | d8e9b184fff396982be8d230214a1f66a7a8fcc9 | [
"BSD-3-Clause"
] | null | null | null | #include "TestStopWatch.h"
//=============================================================================
TestStopWatch::TestStopWatch()
//=============================================================================
{
}
//-----------------------------------------------------------------------------
void TestStopWat... | 33.763158 | 79 | 0.411535 |
9ebf9a324cc53593fa7691c79e70243ea47b5141 | 835 | cpp | C++ | EB_GUIDE_GTF/concepts/TraceOutputExample/src/CustomTraceOutputExport.cpp | pethipet/eb-guide-examples | 1c14fdb6eebdd8b164d99b519161160ecc5a29cf | [
"MIT"
] | 11 | 2020-02-12T16:35:59.000Z | 2022-03-26T14:36:28.000Z | EB_GUIDE_GTF/concepts/TraceOutputExample/src/CustomTraceOutputExport.cpp | pethipet/eb-guide-examples | 1c14fdb6eebdd8b164d99b519161160ecc5a29cf | [
"MIT"
] | 1 | 2020-02-12T16:49:56.000Z | 2020-03-20T15:22:58.000Z | EB_GUIDE_GTF/concepts/TraceOutputExample/src/CustomTraceOutputExport.cpp | pethipet/eb-guide-examples | 1c14fdb6eebdd8b164d99b519161160ecc5a29cf | [
"MIT"
] | 4 | 2020-02-12T16:36:07.000Z | 2022-03-26T14:36:22.000Z | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Elektrobit Automotive GmbH
// Alle Rechte vorbehalten. All Rights Reserved.
//
// Information contained herein is subject to change without notice.
// Elektrobit retains ownership and all other rights in the software and e... | 37.954545 | 85 | 0.641916 |
9ec11020b2fdba5457ef32048e476e371db4e26d | 1,411 | cpp | C++ | Gear/Math/Matrix.cpp | Alpha255/Rockcat | f04124b17911fb6148512dd8fb260bd84702ffc1 | [
"MIT"
] | null | null | null | Gear/Math/Matrix.cpp | Alpha255/Rockcat | f04124b17911fb6148512dd8fb260bd84702ffc1 | [
"MIT"
] | null | null | null | Gear/Math/Matrix.cpp | Alpha255/Rockcat | f04124b17911fb6148512dd8fb260bd84702ffc1 | [
"MIT"
] | null | null | null | #include "Gear/Math/Matrix.h"
NAMESPACE_START(Gear)
NAMESPACE_START(Math)
#if !defined(USE_SSE)
void Matrix::gaussJordanInverse()
{
/// Gauss-Jordan method
Matrix copy(*this);
int32_t i, j, k;
/// Forward elimination
for (i = 0; i < 3; ++i)
{
int32_t pivot = i;
float32_t pivotSize = copy.m[i][i];
pivotS... | 16.6 | 56 | 0.501063 |
9ec490b05858d9d942213feb29bce4d98c8adbf7 | 379 | cpp | C++ | 0027. Remove Element/Solution.cpp | Solitudez/leetcode | a47bad8f0796d08e5996e55d38735295f8135703 | [
"MIT"
] | 1 | 2022-03-04T16:25:57.000Z | 2022-03-04T16:25:57.000Z | 0027. Remove Element/Solution.cpp | Solitudez/leetcode | a47bad8f0796d08e5996e55d38735295f8135703 | [
"MIT"
] | null | null | null | 0027. Remove Element/Solution.cpp | Solitudez/leetcode | a47bad8f0796d08e5996e55d38735295f8135703 | [
"MIT"
] | null | null | null | #include <vector>
using std::vector;
class Solution {
public:
int removeElement_1(vector<int>& nums, int val) {
int l = 0, r = nums.size();
while(l < r)
{
if (nums[l] == val)
{
nums[l] = nums[r - 1];
r--;
}
els... | 18.047619 | 53 | 0.364116 |
9eca7a702c29987590b725fd14f12a0f7580d2bf | 1,166 | hpp | C++ | include/timer/timer.hpp | lkskstlr/mc-mpi | fc197f4bdf8f3dc3692fc24019bfd7f3c12d6442 | [
"MIT"
] | null | null | null | include/timer/timer.hpp | lkskstlr/mc-mpi | fc197f4bdf8f3dc3692fc24019bfd7f3c12d6442 | [
"MIT"
] | 1 | 2019-03-05T09:05:10.000Z | 2019-03-05T09:05:10.000Z | include/timer/timer.hpp | lkskstlr/mc-mpi | fc197f4bdf8f3dc3692fc24019bfd7f3c12d6442 | [
"MIT"
] | null | null | null | #ifndef TIMER_HPP
#define TIMER_HPP
// I use the fact that structs with methods are still POD in memory which is
// guranteed by the standard. See:
// https://stackoverflow.com/questions/422830/structure-of-a-c-object-in-memory-vs-a-struct
#include <iostream>
#include <mpi.h>
#include <stdio.h>
class Timer {
public:... | 23.795918 | 91 | 0.696398 |
19b02a9ffe3cd60793242ec6536fb3844d69c274 | 3,993 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/IfcConnectionVolumeGeometry.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | 1 | 2018-10-23T09:43:07.000Z | 2018-10-23T09:43:07.000Z | IfcPlusPlus/src/ifcpp/IFC4/IfcConnectionVolumeGeometry.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/IfcConnectionVolumeGeometry.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | null | null | null | /* -*-c++-*- IfcPlusPlus - www.ifcplusplus.com - Copyright (C) 2011 Fabian Gerold
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* in... | 57.042857 | 235 | 0.771851 |
19b36115b0c392143e7461c8ca9b6eb61a4b9f70 | 338 | hpp | C++ | src/core/menu.hpp | dynilath/cqcppsdk | 8f14c2ed85b6d2917ad7aef149acdfb89512937f | [
"MIT"
] | 154 | 2020-01-03T02:51:51.000Z | 2020-08-03T19:44:53.000Z | src/core/menu.hpp | dynilath/cqcppsdk | 8f14c2ed85b6d2917ad7aef149acdfb89512937f | [
"MIT"
] | 22 | 2020-01-26T04:18:28.000Z | 2020-07-04T06:38:28.000Z | src/core/menu.hpp | dynilath/cqcppsdk | 8f14c2ed85b6d2917ad7aef149acdfb89512937f | [
"MIT"
] | 40 | 2020-01-06T11:17:25.000Z | 2020-08-07T08:26:32.000Z | #pragma once
#include "event_export_def.hpp"
#define CQ_MENU(FuncName) \
static void __cq_menu_##FuncName(); \
_CQ_EVENT(int32_t, FuncName, 0)() { \
__cq_menu_##FuncName(); \
return 0; \
} \
static void __cq_... | 28.166667 | 41 | 0.482249 |
19b471af1eb0ed5c4eeb8ad92b4e5bd7b27dd3ac | 10,075 | inl | C++ | src/bad/math/f32x4_calc/f32x4_calc_no_simd.inl | Bad-Sam/bad | a16717bd39c1607a042c673494e9c4a695905868 | [
"MIT"
] | null | null | null | src/bad/math/f32x4_calc/f32x4_calc_no_simd.inl | Bad-Sam/bad | a16717bd39c1607a042c673494e9c4a695905868 | [
"MIT"
] | null | null | null | src/bad/math/f32x4_calc/f32x4_calc_no_simd.inl | Bad-Sam/bad | a16717bd39c1607a042c673494e9c4a695905868 | [
"MIT"
] | null | null | null | // ==== Arithmetic & math functions ===
static bad_forceinline f32x4 f32x4_add(f32x4 a, f32x4 b)
{
f32x4 res;
res.x = a.x + b.x;
res.y = a.y + b.y;
res.z = a.z + b.z;
res.w = a.w + b.w;
return res;
}
static bad_forceinline f32x4 f32x4_sub(f32x4 a, f32x4 b)
{
f32x4 res;
res.x = a.x -... | 19.300766 | 86 | 0.596824 |
19b5803a8cfd16435200eee8f5c0fa004b281350 | 1,317 | hpp | C++ | source/AsioExpress/ClientServer/ClientEventHandler.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/ClientServer/ClientEventHandler.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/ClientServer/ClientEventHandler.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | // Copyright Ross MacGregor 2013
// 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)
#pragma once
#include "AsioExpress/Error.hpp"
#include "AsioExpress/CompletionHandler.hpp"
#in... | 29.931818 | 73 | 0.725892 |
19b6d2ecf6c5083c17df38b8f6498e6d484e2696 | 139 | cpp | C++ | base/win32/fusion/tools/idlxml/cpp.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/win32/fusion/tools/idlxml/cpp.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/win32/fusion/tools/idlxml/cpp.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // Copyright (c) Microsoft Corporation
#define SORTPP_PASS
#define GUID_DEFINED
#define IN __in
#define OUT __out
#include "h.h"
| 15.444444 | 39 | 0.719424 |
19b81538e09ab959ef0690421b96ee0eb115adc6 | 1,038 | cpp | C++ | src/lib/vector3.cpp | abainbridge/trex-warrior | fac95802ce7efd8dc9c50f915ce8d5891f545640 | [
"BSD-2-Clause"
] | null | null | null | src/lib/vector3.cpp | abainbridge/trex-warrior | fac95802ce7efd8dc9c50f915ce8d5891f545640 | [
"BSD-2-Clause"
] | null | null | null | src/lib/vector3.cpp | abainbridge/trex-warrior | fac95802ce7efd8dc9c50f915ce8d5891f545640 | [
"BSD-2-Clause"
] | null | null | null | #include "lib/universal_include.h"
#include <math.h>
#include <float.h>
#include "lib/vector2.h"
#include "lib/vector3.h"
Vector3 const g_upVector(0.0f, 1.0f, 0.0f);
Vector3 const g_zeroVector(0.0f, 0.0f, 0.0f);
void Vector3::RotateAroundX(float angle)
{
FastRotateAround(Vector3(1,0,0), angle);... | 19.222222 | 65 | 0.656069 |
19c14f19b5a65412d1f04fe10f48be8ce004e7e8 | 669 | cpp | C++ | SPOJ/MATGAME.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | SPOJ/MATGAME.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | SPOJ/MATGAME.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | /**
* > Author : TISparta
* > Date : 11-08-18
* > Tags : Game Theory
* > Difficulty : 4 / 10
*/
#include <bits/stdc++.h>
using namespace std;
const int MAX_M = 50;
int T, N, M, pile[MAX_M + 1], nim_sum, SGV;
int main() {
scanf("%d", &T);
while (T--) {
nim_sum = 0;
scanf("%d %d", &N, &M... | 21.580645 | 88 | 0.442451 |
19c4476cfd25ef06185acc5fc28c0a2a364af5a6 | 13,112 | cpp | C++ | src/mame/drivers/btoads.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/btoads.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/btoads.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Aaron Giles
/*************************************************************************
BattleToads
driver by Aaron Giles
**************************************************************************/
#include "emu.h"
#include "includes/btoads.h"
#include "speaker.h... | 32.862155 | 138 | 0.690589 |
19c621d95652303b64be9e504254602d2c3dc7f6 | 470 | cpp | C++ | ZeXo/src/Core/Logger.cpp | Ciridev/ZeXoEngine | 1c825e7aab915ea58c14db323123632e71c0a1bd | [
"Apache-2.0"
] | 6 | 2020-12-25T15:35:42.000Z | 2021-07-26T21:31:57.000Z | ZeXo/src/Core/Logger.cpp | Ciridev/ZeXoEngine | 1c825e7aab915ea58c14db323123632e71c0a1bd | [
"Apache-2.0"
] | null | null | null | ZeXo/src/Core/Logger.cpp | Ciridev/ZeXoEngine | 1c825e7aab915ea58c14db323123632e71c0a1bd | [
"Apache-2.0"
] | null | null | null | #include "zxpch.h"
#include "Logger.h"
namespace ZeXo
{
Shared<spdlog::logger> Logger::s_CoreLogger;
Shared<spdlog::logger> Logger::s_ClientLogger;
void Logger::Init()
{
spdlog::set_pattern("%^[%T] { %n } %v%$");
s_CoreLogger = spdlog::stdout_color_mt("ZeXo Engine");
s_ClientLogger = spdlog::stdout_color... | 22.380952 | 62 | 0.706383 |
19c69b52917fbebe98a96eda954ba83ae41f50ef | 1,016 | cpp | C++ | spoj/Diehard/diehard.cpp | Abhinavlamba/competitive-programming | fdf26f55e5559cde32651ef91f1927b1137442f9 | [
"MIT"
] | 1 | 2020-05-12T04:28:55.000Z | 2020-05-12T04:28:55.000Z | spoj/Diehard/diehard.cpp | devkant/competitive-programming | fdf26f55e5559cde32651ef91f1927b1137442f9 | [
"MIT"
] | null | null | null | spoj/Diehard/diehard.cpp | devkant/competitive-programming | fdf26f55e5559cde32651ef91f1927b1137442f9 | [
"MIT"
] | 5 | 2017-10-22T06:04:17.000Z | 2020-08-04T11:08:47.000Z | #include <bits/stdc++.h>
using namespace std;
int dp[1007][1007][1];
int diehard(int h,int a,int air){
if(h<=0 || a<=0){
return 0;
}
if(dp[h][a][air]!=-1){
return dp[h][a][air];
}
if(air){
dp[h][a][air]=1+diehard(h+3,a+2,0);
return dp[h][a][air];
}else{
... | 18.142857 | 63 | 0.36122 |
19c88b00bae7f0ed1e3b3f2bcda0667632890368 | 630 | cpp | C++ | src/ui/ui_frame_buffers.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | 1 | 2020-09-23T11:17:35.000Z | 2020-09-23T11:17:35.000Z | src/ui/ui_frame_buffers.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | src/ui/ui_frame_buffers.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | #include "ui_frame_buffers.hpp"
#include <sstream>
#include "../imgui/imgui-SFML.h"
#include "../engine.hpp"
namespace space
{
UIFrameBuffers::UIFrameBuffers() : UIWindow("FrameBuffers")
{
}
void UIFrameBuffers::doDraw(Engine &engine)
{
auto &renderCameras = engine.renderCameras();
... | 24.230769 | 78 | 0.612698 |
19cabdd0e228af0ec12b2a070e143a05b4998947 | 1,994 | cpp | C++ | testtool/common.cpp | obono/TinyJoypadWorks | e9f5403fc435b7fece1b6d488dcef3a6699e6194 | [
"MIT"
] | 3 | 2020-12-28T20:22:44.000Z | 2022-02-22T08:33:14.000Z | testtool/common.cpp | obono/TinyJoypadWorks | e9f5403fc435b7fece1b6d488dcef3a6699e6194 | [
"MIT"
] | null | null | null | testtool/common.cpp | obono/TinyJoypadWorks | e9f5403fc435b7fece1b6d488dcef3a6699e6194 | [
"MIT"
] | null | null | null | #include "common.h"
/* Defines */
#define NUMBER_DIGITS 3
#define DPAD_BUTTONS (LEFT_BUTTON | RIGHT_BUTTON | DOWN_BUTTON | UP_BUTTON)
/* Global Variables */
RECORD_T record;
char stringBuffer[STRING_BUFFERS][STRING_BUFFER_SIZE];
int8_t dpadX, dpadY;
/* Local Variables */
static P... | 28.898551 | 84 | 0.599799 |
19cb35df39f98f047e984076450eebeaa84167f1 | 5,535 | cpp | C++ | test/test_session.cpp | dvetutnev/tomsksoft | 39741046e1355ac36775189b4e8970af3a7861cd | [
"MIT"
] | null | null | null | test/test_session.cpp | dvetutnev/tomsksoft | 39741046e1355ac36775189b4e8970af3a7861cd | [
"MIT"
] | null | null | null | test/test_session.cpp | dvetutnev/tomsksoft | 39741046e1355ac36775189b4e8970af3a7861cd | [
"MIT"
] | null | null | null | #include "session.h"
#include "mocks.h"
#include "create_packet.h"
#include <algorithm>
using ::testing::SaveArg;
using ::testing::InSequence;
using ::testing::StrictMock;
using ::testing::NiceMock;
using ::testing::AtLeast;
TEST(Session, timeout) {
MockServer server;
StrictMock<MockWriter> writer;
au... | 31.810345 | 108 | 0.687263 |
19ccba639c5c8bf915f7d90b82f0c588b272885b | 11,754 | cpp | C++ | src/linux_parser.cpp | george-DLJ/CppND-System-Monitor | 41b33b2937626361ec0fa4bf8d6489f8a2920d83 | [
"MIT"
] | null | null | null | src/linux_parser.cpp | george-DLJ/CppND-System-Monitor | 41b33b2937626361ec0fa4bf8d6489f8a2920d83 | [
"MIT"
] | null | null | null | src/linux_parser.cpp | george-DLJ/CppND-System-Monitor | 41b33b2937626361ec0fa4bf8d6489f8a2920d83 | [
"MIT"
] | null | null | null | #include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
#include "linux_parser.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
// An example of how to read data from the filesystem
string LinuxParser::OperatingSystem() {
string line;
string key;
string value... | 27.271462 | 107 | 0.627786 |
19cecee5716dda019d8e0e84c8d54cf348fb1878 | 4,027 | cpp | C++ | src/macro.cpp | reveluxlabs/Tilton | d8ff1a58366023422e1a83178fd8d7370081477e | [
"MIT"
] | null | null | null | src/macro.cpp | reveluxlabs/Tilton | d8ff1a58366023422e1a83178fd8d7370081477e | [
"MIT"
] | 1 | 2019-10-17T12:58:18.000Z | 2019-10-17T12:58:18.000Z | src/macro.cpp | reveluxlabs/Tilton | d8ff1a58366023422e1a83178fd8d7370081477e | [
"MIT"
] | 2 | 2019-10-16T12:45:50.000Z | 2019-10-17T12:08:10.000Z | // Copyright (c) 2011 Revelux Labs, LLC. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
#include "macro.h"
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include "tilton.h"
Macro::Macro() {
InitializeMacro(NULL, 0);
}
Macr... | 21.08377 | 73 | 0.532158 |
19d1ae34118cdbad622550dcb7b215a3ac151442 | 395 | cpp | C++ | C or C++/poinTer.cpp | amitShindeGit/Miscellaneous-Programs | 11aa892628f44b51a8723d5f282d64f867b01be2 | [
"MIT"
] | 3 | 2020-11-01T05:48:04.000Z | 2021-04-25T05:33:47.000Z | C or C++/poinTer.cpp | amitShindeGit/Miscellaneous-Programs | 11aa892628f44b51a8723d5f282d64f867b01be2 | [
"MIT"
] | null | null | null | C or C++/poinTer.cpp | amitShindeGit/Miscellaneous-Programs | 11aa892628f44b51a8723d5f282d64f867b01be2 | [
"MIT"
] | 3 | 2020-10-31T05:29:55.000Z | 2021-06-19T09:33:53.000Z | #include <iostream>
#include <new>
#include <cstdlib>
#include <map>
#include <string>
#include <vector>
#include <cmath>
using namespace std;
int main()
{
int a = 90;
int b = 100;
cout << "Address = " << (long)&a << " " << (long)&b << endl;
int *p = &a;
cout << "p = " << *p << " " << endl;
p++... | 18.809524 | 64 | 0.496203 |
19d23aa18ab8775f38678c4dc264a93cdadc54c5 | 6,979 | hpp | C++ | include/conduit/mixin/promise_parts.hpp | jantonioperez/conduit | 1366d710fb3afac5dbc3b71f8285c62c03bdf201 | [
"MIT"
] | 6 | 2021-09-18T07:49:46.000Z | 2022-02-03T12:21:16.000Z | include/conduit/mixin/promise_parts.hpp | functionalperez/conduit | 1366d710fb3afac5dbc3b71f8285c62c03bdf201 | [
"MIT"
] | 1 | 2021-08-05T22:48:51.000Z | 2021-08-05T23:27:30.000Z | include/conduit/mixin/promise_parts.hpp | codeinred/conduit | 1366d710fb3afac5dbc3b71f8285c62c03bdf201 | [
"MIT"
] | null | null | null | #pragma once
#include <conduit/async/callback.hpp>
#include <conduit/async/immediate_value.hpp>
#include <conduit/mem/allocator.hpp>
#include <conduit/mixin/awaitable_parts.hpp>
#include <conduit/util/tag_types.hpp>
#include <exception>
namespace conduit::mixin {
enum suspend : bool { always = true, never = false };
... | 31.017778 | 80 | 0.674882 |
19d280bfd3df9525e25a7dcb89e6102afb006dac | 970 | cpp | C++ | vdslib/src/tests/distribution/randombucket.cpp | kennyeric/vespa | f69f960d5ae48d246f56a60e6e46c90a58f836ba | [
"Apache-2.0"
] | 1 | 2018-12-30T05:42:18.000Z | 2018-12-30T05:42:18.000Z | vdslib/src/tests/distribution/randombucket.cpp | kennyeric/vespa | f69f960d5ae48d246f56a60e6e46c90a58f836ba | [
"Apache-2.0"
] | 1 | 2021-03-31T22:27:25.000Z | 2021-03-31T22:27:25.000Z | vdslib/src/tests/distribution/randombucket.cpp | kennyeric/vespa | f69f960d5ae48d246f56a60e6e46c90a58f836ba | [
"Apache-2.0"
] | 1 | 2020-02-01T07:21:28.000Z | 2020-02-01T07:21:28.000Z | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "randombucket.h"
#include <vespa/vdslib/state/random.h>
namespace RandomBucket{
uint64_t _num_users;
uint64_t _locationbits;
bool _scheme = false;
storage::lib::RandomGen rg;
void setUserD... | 19.019608 | 118 | 0.627835 |
19d59469611a8e400bce05b775c6c90b3652d6d0 | 4,617 | cpp | C++ | lammps-master/lib/poems/virtualmatrix.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | lammps-master/lib/poems/virtualmatrix.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | lammps-master/lib/poems/virtualmatrix.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | /*
*_________________________________________________________________________*
* POEMS: PARALLELIZABLE OPEN SOURCE EFFICIENT MULTIBODY SOFTWARE *
* DESCRIPTION: SEE READ-ME *
* FILE NAME: virtualmatrix.cpp *
* A... | 26.843023 | 114 | 0.621183 |
19d6905fcc00e21a5f9c27f212201722b919eeb1 | 176 | cpp | C++ | src/basic/src/listener_node.cpp | sgermanserrano/gitlab_ci_test | df415655757d9674a31ca704bef6bb7c456e7c09 | [
"Apache-2.0"
] | null | null | null | src/basic/src/listener_node.cpp | sgermanserrano/gitlab_ci_test | df415655757d9674a31ca704bef6bb7c456e7c09 | [
"Apache-2.0"
] | null | null | null | src/basic/src/listener_node.cpp | sgermanserrano/gitlab_ci_test | df415655757d9674a31ca704bef6bb7c456e7c09 | [
"Apache-2.0"
] | 1 | 2019-03-05T16:33:21.000Z | 2019-03-05T16:33:21.000Z | #include "basic/listener.h"
int main(int argc, char **argv) {
ros::init(argc, argv, "listener_node");
Listener listener_node;
listener_node.spin();
return 0;
}
| 11 | 41 | 0.659091 |
19d6d426f1ac47a9e74c87895d7b3ba67e038bc4 | 3,527 | cpp | C++ | esm/Util.cpp | kstemp/TESviewer | 2905367f0e30c586633831e0312a7902fb645b4e | [
"MIT"
] | null | null | null | esm/Util.cpp | kstemp/TESviewer | 2905367f0e30c586633831e0312a7902fb645b4e | [
"MIT"
] | null | null | null | esm/Util.cpp | kstemp/TESviewer | 2905367f0e30c586633831e0312a7902fb645b4e | [
"MIT"
] | null | null | null | #include "Util.h"
#include "records\CELL.h"
ESM::Record* ESM::getBaseFromREFR(const ESM::Record* refr, ESM::File& file) {
return file.findByFormID(refr->fieldOr<uint32_t>("NAME"));
}
std::vector<ESM::Group>* ESM::findCellChildrenTopLevel(const ESM::Record* cell, ESM::File& file) {
int block = getCellBlock(cell);
... | 26.719697 | 106 | 0.68727 |
19d984e9b5562b1f89838d17a1e10c164a8a6b78 | 1,360 | cpp | C++ | D01/ex00/main.cpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | D01/ex00/main.cpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | D01/ex00/main.cpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... | 32.380952 | 80 | 0.294118 |
19dcb470546b54f68991f8e4df94417ed86b88d1 | 1,201 | cpp | C++ | app/main.cpp | frachop/ezWebSockify | a35ff5aa7867830b0b51d9d7dfedc44e55f27eab | [
"MIT"
] | null | null | null | app/main.cpp | frachop/ezWebSockify | a35ff5aa7867830b0b51d9d7dfedc44e55f27eab | [
"MIT"
] | null | null | null | app/main.cpp | frachop/ezWebSockify | a35ff5aa7867830b0b51d9d7dfedc44e55f27eab | [
"MIT"
] | null | null | null | //
// main.cpp
// ezWebSockify
//
// Created by Franck on 22/07/2020.
// Copyright © 2020 Frachop. All rights reserved.
//
#include <ezWebSockifyLib/ezWebSockifyLib.hpp>
#include <iostream>
#include <limits>
#include <csignal>
#include <thread>
namespace
{
volatile std::sig_atomic_t gSignalStatus;
}
void sign... | 21.446429 | 140 | 0.661948 |
19de5723db8d917abd9a56bffc906ebfb0b90aec | 542 | cpp | C++ | 3rdParty/B-Human/Tools/Streams/InOut.cpp | h3ndrk/CompiledNN | 8ed33a8d976367bfe7a62f506ba6215256a5b26c | [
"MIT"
] | null | null | null | 3rdParty/B-Human/Tools/Streams/InOut.cpp | h3ndrk/CompiledNN | 8ed33a8d976367bfe7a62f506ba6215256a5b26c | [
"MIT"
] | null | null | null | 3rdParty/B-Human/Tools/Streams/InOut.cpp | h3ndrk/CompiledNN | 8ed33a8d976367bfe7a62f506ba6215256a5b26c | [
"MIT"
] | null | null | null | /**
* @file Tools/Streams/InOut.cpp
*
* Implementation of the streamable function endl.
*
* @author <a href="mailto:oberlies@sim.tu-darmstadt.de">Tobias Oberlies</a>
*/
#include "InOut.h"
#include <cstring>
Out& endl(Out& out)
{
out.outEndL();
return out;
}
In& endl(In& in)
{
in.inEndL();
return in;
}
... | 14.648649 | 76 | 0.551661 |
19e483c8ad2f6650868557d6c731d793e94a8c5b | 437 | hpp | C++ | server/api/include/irods/rsFileRead.hpp | aghsmith/irods | 31d48a47a4942df688da94b30aa8a5b5210261bb | [
"BSD-3-Clause"
] | 1 | 2022-03-08T13:00:56.000Z | 2022-03-08T13:00:56.000Z | server/api/include/irods/rsFileRead.hpp | selroc/irods | d232c7f3e0154cacc3a115aa50e366a98617b126 | [
"BSD-3-Clause"
] | null | null | null | server/api/include/irods/rsFileRead.hpp | selroc/irods | d232c7f3e0154cacc3a115aa50e366a98617b126 | [
"BSD-3-Clause"
] | null | null | null | #ifndef RS_FILE_READ_HPP
#define RS_FILE_READ_HPP
#include "irods/rodsConnect.h"
#include "irods/fileRead.h"
int rsFileRead( rsComm_t *rsComm, fileReadInp_t *fileReadInp, bytesBuf_t *fileReadOutBBuf );
int _rsFileRead( rsComm_t *rsComm, fileReadInp_t *fileReadInp, bytesBuf_t *fileReadOutBBuf );
int remoteFileRead( rs... | 36.416667 | 130 | 0.816934 |
19e5207ad65c5f2f519ab2a797b1c27220dabaab | 2,048 | cpp | C++ | tests/test_asm/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | tests/test_asm/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | tests/test_asm/main.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | // Ассемблерные вставки на GCC с флагом -masm=intel в .pro для синтаксиса Intel
// (тоже самое можно и через команды .intel_syntax noprefix в начале asm вставки (и после кода, но внутри вставки, надо было вкл обратно AT&T .att_syntax noprefix)
// использовать либо глобальные переменные, или локальные объявлять согла... | 29.681159 | 192 | 0.581055 |
19e87cf737beb7be0f14c977cf595772b345c4d6 | 166 | hpp | C++ | modules/anti_nd/functions/CfgFunctions.hpp | goosko/Olsen-Framework-Arma-3 | bb77aa28195bb04cc3b94ec768901308162e555c | [
"MIT"
] | 4 | 2020-05-04T18:03:59.000Z | 2020-05-06T19:40:27.000Z | modules/anti_nd/functions/CfgFunctions.hpp | goosko/Olsen-Framework-Arma-3 | bb77aa28195bb04cc3b94ec768901308162e555c | [
"MIT"
] | 64 | 2020-09-13T23:26:04.000Z | 2022-03-19T07:27:54.000Z | modules/anti_nd/functions/CfgFunctions.hpp | goosko/Olsen-Framework-Arma-3 | bb77aa28195bb04cc3b94ec768901308162e555c | [
"MIT"
] | 5 | 2020-12-07T20:37:05.000Z | 2022-02-03T21:03:49.000Z | #include "..\script_component.hpp"
class COMPONENT {
tag = COMPONENT;
class ANTI_ND {
file = "modules\anti_nd\functions\anti_nd";
class Init {};
};
};
| 18.444444 | 46 | 0.644578 |
19e89de6247e69bf0bb45872c22c40fc10280620 | 1,551 | cpp | C++ | test/spMatspMat_test.cpp | pnnl/NWGraph | bd9e091d2eed4e655c109347c3ec734bf399ff70 | [
"BSD-4-Clause-UC"
] | null | null | null | test/spMatspMat_test.cpp | pnnl/NWGraph | bd9e091d2eed4e655c109347c3ec734bf399ff70 | [
"BSD-4-Clause-UC"
] | null | null | null | test/spMatspMat_test.cpp | pnnl/NWGraph | bd9e091d2eed4e655c109347c3ec734bf399ff70 | [
"BSD-4-Clause-UC"
] | null | null | null | /**
* @file spMatspMat_test.cpp
*
* @copyright SPDX-FileCopyrightText: 2022 Battelle Memorial Institute
* @copyright SPDX-FileCopyrightText: 2022 University of Washington
*
* SPDX-License-Identifier: BSD-3-Clause
*
* @authors
* Andrew Lumsdaine
*
*/
#include <tuple>
#include <vector>
#include "nwgraph/g... | 25.42623 | 81 | 0.516441 |
19e98193d98bf64799596d2ad3257aebf61f771e | 1,224 | hpp | C++ | include/c9/time.hpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | 1 | 2015-02-13T02:03:29.000Z | 2015-02-13T02:03:29.000Z | include/c9/time.hpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | null | null | null | include/c9/time.hpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | null | null | null |
#pragma once
#include <time.h>
#include <sys/time.h>
class Time {
double t;
public:
Time(){
struct timeval time;
gettimeofday(&time, NULL);
t = time.tv_sec + (double)time.tv_usec/1000000;
}
Time(double a) : t(a) { }
Time(const struct timeval & time){
t = time.tv_sec + (double)time.tv_usec/1000000;
}
... | 31.384615 | 68 | 0.589869 |
19ea691d62f5de4780a604b7cda878648f87c921 | 35,453 | cpp | C++ | src/Layers/xrRender/xrRender_console.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 2 | 2015-02-23T10:43:02.000Z | 2015-06-11T14:45:08.000Z | src/Layers/xrRender/xrRender_console.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 17 | 2022-01-25T08:58:23.000Z | 2022-03-28T17:18:28.000Z | src/Layers/xrRender/xrRender_console.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 1 | 2015-06-05T20:04:00.000Z | 2015-06-05T20:04:00.000Z | #include "stdafx.h"
#pragma hdrstop
#include "xrRender_console.h"
#include "xrCore/xr_token.h"
#include "xrCore/Animation/SkeletonMotions.hpp"
u32 ps_Preset = 2;
const xr_token qpreset_token[] = {{"Minimum", 0}, {"Low", 1}, {"Default", 2}, {"High", 3}, {"Extreme", 4}, {nullptr, 0}};
u32 ps_r2_smapsize = 2048;
const ... | 36.250511 | 132 | 0.657829 |
19eadf2988201dfb3f53987243833469d5b00a5c | 544 | cpp | C++ | MFC MyDAQ DigitalWriter/MyDAQ.cpp | ermin-muratovic/MFC-MyDAQ-DigitalWriter | 26439359ede5e42efc186793d83c9db8d5ac3ae9 | [
"MIT"
] | null | null | null | MFC MyDAQ DigitalWriter/MyDAQ.cpp | ermin-muratovic/MFC-MyDAQ-DigitalWriter | 26439359ede5e42efc186793d83c9db8d5ac3ae9 | [
"MIT"
] | null | null | null | MFC MyDAQ DigitalWriter/MyDAQ.cpp | ermin-muratovic/MFC-MyDAQ-DigitalWriter | 26439359ede5e42efc186793d83c9db8d5ac3ae9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "MyDAQ.h"
MyDAQ::MyDAQ()
{
}
MyDAQ::~MyDAQ()
{
}
TaskHandle MyDAQ::createWriteTask(string name) {
TaskHandle Task = 0;
name += "/port0/line4:7";
const char *c_str1 = name.c_str();
DAQmxCreateTask("", &Task);
DAQmxCreateDOChan(Task, c_str1, "", DAQmx_Val_ChanForAllLines);
retu... | 17.548387 | 90 | 0.696691 |
19eef03109ee5a2f874e7d1472c806102736e9aa | 173 | cc | C++ | src/Encoder/encoders/none.cc | grzegorzmatczak/PostProcessingModules | bc815541453453f58fc40bd9c00bfc03be1fa3b5 | [
"MIT"
] | null | null | null | src/Encoder/encoders/none.cc | grzegorzmatczak/PostProcessingModules | bc815541453453f58fc40bd9c00bfc03be1fa3b5 | [
"MIT"
] | null | null | null | src/Encoder/encoders/none.cc | grzegorzmatczak/PostProcessingModules | bc815541453453f58fc40bd9c00bfc03be1fa3b5 | [
"MIT"
] | null | null | null | #include "none.h"
Encoders::None::None() {}
void Encoders::None::process(std::vector<_postData> &_data) {}
void Encoders::None::endProcess(std::vector<_postData> &_data) {} | 34.6 | 65 | 0.710983 |
19efac7200deaecbf0f347811fe5588f81e17813 | 811 | cpp | C++ | Advanced-Programming/Lab-Assignment-1/1-a.cpp | hstr2785/CS | d1eaec5413887c8e271f598d41ef6ccd565c5ac8 | [
"MIT"
] | null | null | null | Advanced-Programming/Lab-Assignment-1/1-a.cpp | hstr2785/CS | d1eaec5413887c8e271f598d41ef6ccd565c5ac8 | [
"MIT"
] | 1 | 2020-09-25T17:04:57.000Z | 2020-09-25T17:04:57.000Z | Advanced-Programming/Lab-Assignment-1/1-a.cpp | hstr2785/CS | d1eaec5413887c8e271f598d41ef6ccd565c5ac8 | [
"MIT"
] | 2 | 2020-10-01T05:01:38.000Z | 2020-10-01T08:11:50.000Z | #include <iostream>
using namespace std;
// create a class
class Room {
private:
double length;
double breadth;
double height;
public:
double calculateArea() {
return length * breadth;
}
double calculateVolume() {
return length * breadth * height;
}
void set_length() {
lengt... | 18.860465 | 66 | 0.610358 |
19f09c1442cbb814783fca9449d00971fcadc05f | 5,300 | hpp | C++ | vendor/libbitcoin/include/bitcoin/bitcoin/chain/header.hpp | X9Developers/xsn-wallet | 7b5aaf6de15928c8cf5b86a844e56710c301df1f | [
"MIT"
] | 1 | 2018-08-20T11:15:45.000Z | 2018-08-20T11:15:45.000Z | vendor/libbitcoin/include/bitcoin/bitcoin/chain/header.hpp | X9Developers/xsn-wallet | 7b5aaf6de15928c8cf5b86a844e56710c301df1f | [
"MIT"
] | null | null | null | vendor/libbitcoin/include/bitcoin/bitcoin/chain/header.hpp | X9Developers/xsn-wallet | 7b5aaf6de15928c8cf5b86a844e56710c301df1f | [
"MIT"
] | 3 | 2018-08-30T08:35:43.000Z | 2019-03-29T15:36:26.000Z | /**
* Copyright (c) 2011-2017 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the Lic... | 30.813953 | 83 | 0.648679 |
19f16206b89ed62e69a4342207b50b798aeee477 | 10,511 | cpp | C++ | src/core/features/esp.cpp | luk1337/gamesneeze | 9b85e177d5af9a1bd30a296172c4d80f91966966 | [
"MIT"
] | 1 | 2021-02-10T00:33:31.000Z | 2021-02-10T00:33:31.000Z | src/core/features/esp.cpp | luk1337/gamesneeze | 9b85e177d5af9a1bd30a296172c4d80f91966966 | [
"MIT"
] | null | null | null | src/core/features/esp.cpp | luk1337/gamesneeze | 9b85e177d5af9a1bd30a296172c4d80f91966966 | [
"MIT"
] | null | null | null | #include "features.hpp"
#include "../../includes.hpp"
#include <sstream>
bool worldToScreen( const Vector& origin, Vector& screen ) {
float w = Globals::worldToScreenMatrix[3][0] * origin.x
+ Globals::worldToScreenMatrix[3][1] * origin.y
+ Globals::worldToScreenMatrix[3][2] * origin.z
+ Globals::worldT... | 50.533654 | 278 | 0.528779 |
19f24e5c295c17a2db3723e94ce1d478e974b8d9 | 546 | cpp | C++ | benchmark/BM_init.cpp | priyanshujalan/Matrix | cf67137817eb63a85b9807c8b8e893d7267397aa | [
"MIT"
] | null | null | null | benchmark/BM_init.cpp | priyanshujalan/Matrix | cf67137817eb63a85b9807c8b8e893d7267397aa | [
"MIT"
] | null | null | null | benchmark/BM_init.cpp | priyanshujalan/Matrix | cf67137817eb63a85b9807c8b8e893d7267397aa | [
"MIT"
] | null | null | null | #include <Matrix.hpp>
#include <benchmark/benchmark.h>
static void BM_init_double(benchmark::State &state) {
std::vector<double> row_d(4, 6.786);
std::vector<std::vector<double>> vec_d(6, row_d);
for (auto _ : state)
matrix.init(vec_d);
}
BENCHMARK(BM_init_double);
static void BM_init_string(bench... | 27.3 | 58 | 0.673993 |
19f40170d4c897b616e1a728cb76fe4ffb49a816 | 1,025 | cpp | C++ | src/inputwin.cpp | mastereuclid/cs494project | 8131fb23e20a96c50e7d1252af2bc359e1009a52 | [
"Apache-2.0"
] | null | null | null | src/inputwin.cpp | mastereuclid/cs494project | 8131fb23e20a96c50e7d1252af2bc359e1009a52 | [
"Apache-2.0"
] | null | null | null | src/inputwin.cpp | mastereuclid/cs494project | 8131fb23e20a96c50e7d1252af2bc359e1009a52 | [
"Apache-2.0"
] | null | null | null | #include "inputwin.hpp"
#include <iostream>
inputwin::inputwin()
: nc::window(nc::points_t(getmaxy(stdscr) - 5, 0, getmaxy(stdscr), getmaxx(stdscr)),
nc::border_t(false, true, false, false)) {}
void inputwin::on_focus() {
clear();
echo();
wmove(winptr(), 1, 0);
}
void inputwin::get_input(std... | 26.973684 | 89 | 0.578537 |
19f601a94df656254a9839f6c61047cf33f698e1 | 2,001 | cpp | C++ | opencv_1/hue.cpp | liangjisheng/computer-vision | b2f05f87334078f4a51775383aac04f2bdedae7c | [
"MIT"
] | null | null | null | opencv_1/hue.cpp | liangjisheng/computer-vision | b2f05f87334078f4a51775383aac04f2bdedae7c | [
"MIT"
] | null | null | null | opencv_1/hue.cpp | liangjisheng/computer-vision | b2f05f87334078f4a51775383aac04f2bdedae7c | [
"MIT"
] | null | null | null | #include <cv.h>
#include <highgui.h>
int main( int argc, char** argv )
{
IplImage* src;
if( argc == 2 && (src=cvLoadImage(argv[1], 1))!= 0)
{
IplImage* h_plane = cvCreateImage( cvGetSize(src), 8, 1 );
IplImage* s_plane = cvCreateImage( cvGetSize(src), 8, 1 );
IplImage* v_plane = cvC... | 39.235294 | 117 | 0.534733 |
19f71e32a9786be81906c094a023a4beb7db4852 | 548 | cpp | C++ | coffeeDBR/src/cml_oneMin/cml_golden.cpp | CoFFeeMaN11/CoffeeDBR | 1c4fb0683263ada1a8a931cc78bb7cbe728e9d4b | [
"Apache-2.0"
] | null | null | null | coffeeDBR/src/cml_oneMin/cml_golden.cpp | CoFFeeMaN11/CoffeeDBR | 1c4fb0683263ada1a8a931cc78bb7cbe728e9d4b | [
"Apache-2.0"
] | null | null | null | coffeeDBR/src/cml_oneMin/cml_golden.cpp | CoFFeeMaN11/CoffeeDBR | 1c4fb0683263ada1a8a931cc78bb7cbe728e9d4b | [
"Apache-2.0"
] | null | null | null | #include "cml_golden.h"
#include <cassert>
#define GOLDEN_RADIO 0.6180339887498949L
void GoldenSec::Iterate()
{
assert(func);
long double fL, fR;
func(xL, params, fL);
func(xR, params, fR);
if (fL < fR)
{
b = xR;
xR = xL;
xL = b - GOLDEN_RADIO * (b - a);
}
else
{
a = xL;
xL = xR;
xR = a + GOLDEN_RA... | 16.606061 | 46 | 0.596715 |
19f7bbfeb28d6d43a6dbb5892cea6fb1a84f2a27 | 1,352 | cpp | C++ | qt-view/mainwindow.cpp | Kiteva4/qt-cmake-json-analizer-with-loger | f05e276c9c7f95f2e80e42ceea6182895692c0af | [
"Apache-2.0"
] | null | null | null | qt-view/mainwindow.cpp | Kiteva4/qt-cmake-json-analizer-with-loger | f05e276c9c7f95f2e80e42ceea6182895692c0af | [
"Apache-2.0"
] | null | null | null | qt-view/mainwindow.cpp | Kiteva4/qt-cmake-json-analizer-with-loger | f05e276c9c7f95f2e80e42ceea6182895692c0af | [
"Apache-2.0"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <iostream>
#include <string>
#include <filesystem>
#include <QString>
#include <QFileDialog>
#include <fstream>
#include <iostream>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
file_path()
{
ui->se... | 21.460317 | 95 | 0.715976 |
19faf5d2f964194152886e599066c6da7721c1e3 | 7,764 | cc | C++ | third_party/blink/renderer/core/fileapi/public_url_manager.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/blink/renderer/core/fileapi/public_url_manager.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/renderer/core/fileapi/public_url_manager.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | /*
* Copyright (C) 2012 Motorola Mobility Inc.
* Copyright (C) 2013 Google Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above... | 36.971429 | 82 | 0.748841 |
19fb6c685d7ac8c20c312ac9b8f969207a4dc116 | 1,737 | hpp | C++ | src/svg/svg_parser.hpp | malasiot/xg | 02bdcc208f479afb448767e4d2f2764e913e5d43 | [
"MIT"
] | 1 | 2019-09-06T01:48:15.000Z | 2019-09-06T01:48:15.000Z | src/svg/svg_parser.hpp | malasiot/xg | 02bdcc208f479afb448767e4d2f2764e913e5d43 | [
"MIT"
] | null | null | null | src/svg/svg_parser.hpp | malasiot/xg | 02bdcc208f479afb448767e4d2f2764e913e5d43 | [
"MIT"
] | null | null | null | #ifndef __XG_SVG_PARSER_HPP__
#define __XG_SVG_PARSER_HPP__
#include <string>
#include <xg/util/dictionary.hpp>
#include <iostream>
#include "svg_dom.hpp"
namespace xg {
class SVGLoadException ;
class SVGDocument ;
class SVGParser {
public:
SVGParser(SVGDocument &doc): document_(doc) {}
void parseString(... | 23.794521 | 102 | 0.663212 |
19fe25e1a06c3a0e321ce78d8fc2e4e2c5a1ba3f | 514 | cpp | C++ | Tree/Convert BT to Doubly Linked List.cpp | Benson1198/CPP | b12494becadc9431303cfdb51c5134dc68c679c3 | [
"MIT"
] | null | null | null | Tree/Convert BT to Doubly Linked List.cpp | Benson1198/CPP | b12494becadc9431303cfdb51c5134dc68c679c3 | [
"MIT"
] | null | null | null | Tree/Convert BT to Doubly Linked List.cpp | Benson1198/CPP | b12494becadc9431303cfdb51c5134dc68c679c3 | [
"MIT"
] | 1 | 2020-10-06T09:17:33.000Z | 2020-10-06T09:17:33.000Z | #include<bits/stdc++.h>
using namespace std;
struct Node{
int data;
Node *left;
Node *right;
Node(int k){
data = k;
left = NULL;
right = NULL;
}
}
Node *prev = NULL;
Node *BTToDLL(Node *root){
if(root == NULL){
return root;
}
Node* head = BTToDLL(roo... | 13.526316 | 37 | 0.490272 |
19fe8fe5fae8bf2351fae313f8ece406d47d9340 | 7,638 | cpp | C++ | indra/newview/llvowater.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/newview/llvowater.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/newview/llvowater.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | /**
* @file llvowater.cpp
* @brief LLVOWater class implementation
*
* $LicenseInfo:firstyear=2005&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Ge... | 24.094637 | 110 | 0.707384 |
c20073cf03e1fac2b7f5c24b5c4e22352b84dc79 | 4,986 | cpp | C++ | code_reading/oceanbase-master/src/storage/blocksstable/ob_storage_cache_suite.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/storage/blocksstable/ob_storage_cache_suite.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/storage/blocksstable/ob_storage_cache_suite.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 38.651163 | 117 | 0.751304 |
c201ef5788f72bf70434e8fa03e8b42033133303 | 1,104 | cpp | C++ | WickedEngine/wiLoadingScreen.cpp | rohankumardubey/WickedEngine | 2e94230c520f0921718ea531c1de9c76611c8944 | [
"MIT"
] | 11 | 2021-12-27T11:31:24.000Z | 2021-12-30T08:02:57.000Z | WickedEngine/wiLoadingScreen.cpp | rohankumardubey/WickedEngine | 2e94230c520f0921718ea531c1de9c76611c8944 | [
"MIT"
] | null | null | null | WickedEngine/wiLoadingScreen.cpp | rohankumardubey/WickedEngine | 2e94230c520f0921718ea531c1de9c76611c8944 | [
"MIT"
] | 3 | 2021-12-28T02:31:08.000Z | 2021-12-31T07:32:00.000Z | #include "wiLoadingScreen.h"
#include "wiApplication.h"
#include <thread>
namespace wi
{
bool LoadingScreen::isActive()
{
return wi::jobsystem::IsBusy(ctx);
}
void LoadingScreen::addLoadingFunction(std::function<void(wi::jobsystem::JobArgs)> loadingFunction)
{
if (loadingFunction != nullptr)
{
tasks.p... | 18.098361 | 122 | 0.671196 |
c202af40ed7454f6c723d5124d070870fc6b40e0 | 264 | cpp | C++ | src/main/algorithms/cpp/graph/clone_graph_133/graph_node.cpp | algorithmlover2016/leet_code | 2eecc7971194c8a755e67719d8f66c636694e7e9 | [
"Apache-2.0"
] | null | null | null | src/main/algorithms/cpp/graph/clone_graph_133/graph_node.cpp | algorithmlover2016/leet_code | 2eecc7971194c8a755e67719d8f66c636694e7e9 | [
"Apache-2.0"
] | null | null | null | src/main/algorithms/cpp/graph/clone_graph_133/graph_node.cpp | algorithmlover2016/leet_code | 2eecc7971194c8a755e67719d8f66c636694e7e9 | [
"Apache-2.0"
] | null | null | null | #include "./graph_node.h"
Node::Node() : val(0),
neighbors(std::vector<Node*>()) {
}
Node::Node(int _val) : val(_val),
neighbors(std::vector<Node*>()) {
}
Node::Node(int _val, std::vector<Node*> const & _neighbors): val(_val),
neighbors(_neighbors) {
}
| 17.6 | 71 | 0.625 |
c204cf8e0458653fecc337527805f7fe2de01019 | 17,967 | cpp | C++ | src/globals/graph_types.cpp | zakimjz/GPU_graph_mining | 22ba73bea97533ed6b2af613bd263ef4d869e71a | [
"Apache-2.0"
] | 2 | 2020-05-13T09:09:50.000Z | 2021-07-16T12:51:53.000Z | src/globals/graph_types.cpp | zakimjz/GPU_graph_mining | 22ba73bea97533ed6b2af613bd263ef4d869e71a | [
"Apache-2.0"
] | null | null | null | src/globals/graph_types.cpp | zakimjz/GPU_graph_mining | 22ba73bea97533ed6b2af613bd263ef4d869e71a | [
"Apache-2.0"
] | 1 | 2022-03-22T01:15:33.000Z | 2022-03-22T01:15:33.000Z | #include <graph_types.hpp>
#include <algorithm>
#include <cassert>
#include <string>
#include <sstream>
#include <iostream>
#include <iterator>
#include <stdexcept>
#include <logger.hpp>
#include <utils.hpp>
#include <cstring>
namespace types {
template <class T, class Iterator>
void tokenize(const char *str, Iterato... | 25.926407 | 251 | 0.577336 |
c205135c11d51528b686eccfca8179e398d42899 | 5,015 | cpp | C++ | DarkSpace/GadgetAreaWeapon.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | 1 | 2016-05-22T21:28:29.000Z | 2016-05-22T21:28:29.000Z | DarkSpace/GadgetAreaWeapon.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | DarkSpace/GadgetAreaWeapon.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | /*
GadgetAreaWeapon.cpp
(c)2000 Palestar Inc, Richard Lyle
*/
#include "GadgetAreaWeapon.h"
#include "GameContext.h"
static Constant AI_USE_AREA_WEAPON( "AI_USE_AREA_WEAPON", 0.75f );
//----------------------------------------------------------------------------
IMPLEMENT_ABSTRACT_FACTORY( GadgetAreaWeapon, Noun... | 27.861111 | 232 | 0.619143 |
c2053ff6133d4df21d6d024cadbd635fabd32763 | 85,297 | cpp | C++ | vm/compiler/Loop.cpp | HazouPH/android_dalvik | 5e66532f06bbf1f43b23ff408ee64dc30c31fc9d | [
"Apache-2.0"
] | null | null | null | vm/compiler/Loop.cpp | HazouPH/android_dalvik | 5e66532f06bbf1f43b23ff408ee64dc30c31fc9d | [
"Apache-2.0"
] | null | null | null | vm/compiler/Loop.cpp | HazouPH/android_dalvik | 5e66532f06bbf1f43b23ff408ee64dc30c31fc9d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2009 The Android Open Source Project
*
* 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 app... | 34.159792 | 152 | 0.587969 |
c207f71a6fd127e7e6284e909bba8ab6efdf6876 | 283 | cpp | C++ | src/TextureManager.cpp | ArionasMC/Asteroids | b5a81f833af1615ede2706bfe41baa8b661fa209 | [
"Apache-2.0"
] | 3 | 2019-02-23T18:20:24.000Z | 2019-02-23T18:30:18.000Z | src/TextureManager.cpp | ArionasMC/Asteroids | b5a81f833af1615ede2706bfe41baa8b661fa209 | [
"Apache-2.0"
] | null | null | null | src/TextureManager.cpp | ArionasMC/Asteroids | b5a81f833af1615ede2706bfe41baa8b661fa209 | [
"Apache-2.0"
] | null | null | null | #include "TextureManager.h"
SDL_Texture* TextureManager::LoadTexture(const char* fileName, SDL_Renderer* ren) {
SDL_Surface* tmp = IMG_Load(fileName);
SDL_Texture* texture = SDL_CreateTextureFromSurface(ren, tmp);
SDL_FreeSurface(tmp);
return texture;
}
| 25.727273 | 84 | 0.717314 |
c209b94f8e83db1255f3296bc6425698edd7cb86 | 976 | cpp | C++ | String/is_substring_hash.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 21 | 2020-10-03T03:57:19.000Z | 2022-03-25T22:41:05.000Z | String/is_substring_hash.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 40 | 2020-10-02T07:02:34.000Z | 2021-10-30T16:00:07.000Z | String/is_substring_hash.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 90 | 2020-10-02T07:06:22.000Z | 2022-03-25T22:41:17.000Z | #include<bits/stdc++.h>
using namespace std;
#define ll long long
ll compute_hash(string s){
const int p= 3;
const int m= 1e9+9;
ll hash_value= 0;
ll p_pow= (ll)pow(p,s.length()-1);
for(auto c:s){
hash_value= (hash_value+ (c-'a')*p_pow)%m;
p_pow= p_pow/p;
}
return hash_value;
}
ll rolling_hash(ll H,string p... | 19.918367 | 84 | 0.597336 |
c20b48bd40a8ae93332191ba4e3bb061a3fa2e7b | 929 | hpp | C++ | lib/SensorNode/SHT30Node.hpp | RobAxt/SmartWeatherStation | 5b756f91d6b9c8c10eab6eac1403f2362e91670c | [
"MIT"
] | null | null | null | lib/SensorNode/SHT30Node.hpp | RobAxt/SmartWeatherStation | 5b756f91d6b9c8c10eab6eac1403f2362e91670c | [
"MIT"
] | null | null | null | lib/SensorNode/SHT30Node.hpp | RobAxt/SmartWeatherStation | 5b756f91d6b9c8c10eab6eac1403f2362e91670c | [
"MIT"
] | null | null | null | #ifndef SHT30Node_hpp
#define SHT30Node_hpp
#include <Wire.h>
#include <SHT3x.h>
#include "SensorNode.hpp"
class SHT30Node : public SensorNode {
public:
explicit SHT30Node(const char *id, const char *name, const int i2cAddress = 0x45);
~SHT30Node();
protected:
virtual void setup() override;
virt... | 25.805556 | 87 | 0.724435 |
c20c40dd4339ae0b5bff34aa20c9ac6a9d0d58dc | 8,396 | cpp | C++ | src/Engine/Engine/Shibboleth_Image.cpp | Connway/Shibboleth | 23dda9a066db8dfaf8c8d56cb1e3d9929b6ced35 | [
"MIT"
] | 1 | 2020-04-06T17:35:47.000Z | 2020-04-06T17:35:47.000Z | src/Engine/Engine/Shibboleth_Image.cpp | Connway/Shibboleth | 23dda9a066db8dfaf8c8d56cb1e3d9929b6ced35 | [
"MIT"
] | null | null | null | src/Engine/Engine/Shibboleth_Image.cpp | Connway/Shibboleth | 23dda9a066db8dfaf8c8d56cb1e3d9929b6ced35 | [
"MIT"
] | null | null | null | /************************************************************************************
Copyright (C) 2021 by Nicholas LaCroix
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 restrictio... | 25.365559 | 140 | 0.699738 |
c20cca8b430598341fc2947ba45c9dc91f001dc4 | 26,399 | cpp | C++ | src/cpu/gemm/s8x8s32/jit_avx512_core_gemm_s8u8s32.cpp | Bil17t/mkl-dnn | 8910895abc655e8e5d9d54ab91c040b26a28902d | [
"Apache-2.0"
] | 6 | 2020-06-04T06:03:36.000Z | 2022-01-27T02:41:49.000Z | src/cpu/gemm/s8x8s32/jit_avx512_core_gemm_s8u8s32.cpp | Bil17t/mkl-dnn | 8910895abc655e8e5d9d54ab91c040b26a28902d | [
"Apache-2.0"
] | null | null | null | src/cpu/gemm/s8x8s32/jit_avx512_core_gemm_s8u8s32.cpp | Bil17t/mkl-dnn | 8910895abc655e8e5d9d54ab91c040b26a28902d | [
"Apache-2.0"
] | 3 | 2021-07-07T09:55:36.000Z | 2022-01-12T06:59:55.000Z | /*******************************************************************************
* Copyright 2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 32.67203 | 168 | 0.502746 |
c211c8b041dfa5b8bc7afa2fda5d413fa7242ef9 | 20,283 | hpp | C++ | resources/synth/datastructures/Fixed.hpp | arturluis/spatial | 4a829849231b2f9589dd9ab630657689f9a538e5 | [
"MIT"
] | 232 | 2016-09-12T23:28:11.000Z | 2022-02-01T01:40:43.000Z | resources/synth/datastructures/Fixed.hpp | arturluis/spatial | 4a829849231b2f9589dd9ab630657689f9a538e5 | [
"MIT"
] | 288 | 2016-09-12T16:35:34.000Z | 2021-12-15T22:06:02.000Z | resources/synth/datastructures/Fixed.hpp | arturluis/spatial | 4a829849231b2f9589dd9ab630657689f9a538e5 | [
"MIT"
] | 31 | 2016-10-13T04:37:00.000Z | 2022-01-29T08:03:33.000Z | // From: https://github.com/eteran/cpp-utilities/blob/master/fixed/include/eteran/cpp-utilities/Fixed.h
// See also: http://stackoverflow.com/questions/79677/whats-the-best-way-to-do-fixed-point-math
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Evan Teran
*
* Permission is hereby granted, free of charge, to... | 35.397906 | 230 | 0.700044 |