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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4f13b044f9221528c862b19ad1af4e8935cc5f8 | 77 | hh | C++ | build/X86/mem/protocol/VIPERCoalescer.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/X86/mem/protocol/VIPERCoalescer.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | build/X86/mem/protocol/VIPERCoalescer.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | #include "/home/zhoushuxin/gem5/build/X86/mem/ruby/system/VIPERCoalescer.hh"
| 38.5 | 76 | 0.805195 |
f4f1ddcc73b72ad1189d7145666bdabb400f88e4 | 239 | cpp | C++ | src/question_1/question1.cpp | juliaholland/acc-cosc-1337-midterm-juliaholland | a6d09518393fd8ee9e88c1a4ae3d468e2bd291c3 | [
"MIT"
] | null | null | null | src/question_1/question1.cpp | juliaholland/acc-cosc-1337-midterm-juliaholland | a6d09518393fd8ee9e88c1a4ae3d468e2bd291c3 | [
"MIT"
] | null | null | null | src/question_1/question1.cpp | juliaholland/acc-cosc-1337-midterm-juliaholland | a6d09518393fd8ee9e88c1a4ae3d468e2bd291c3 | [
"MIT"
] | null | null | null | #include "question1.h"
bool test_config()
{
return true;
}
double get_kinetic_energy(double mass, double velocity)
{
double kineticEnergy;
kineticEnergy = 0.5 * mass * velocity * velocity;
return kineticEnergy;
} | 14.058824 | 55 | 0.682008 |
f4f2a7201d0e73ca372a5a429bfe6ca7b51eb2fd | 40,892 | cpp | C++ | src/vedit.cpp | linails/vnote | 97810731db97292f474951c3450aac150acef0bc | [
"MIT"
] | 1 | 2019-07-27T10:46:41.000Z | 2019-07-27T10:46:41.000Z | src/vedit.cpp | linails/vnote | 97810731db97292f474951c3450aac150acef0bc | [
"MIT"
] | 1 | 2022-01-22T13:10:44.000Z | 2022-01-22T13:10:44.000Z | src/vedit.cpp | linails/vnote | 97810731db97292f474951c3450aac150acef0bc | [
"MIT"
] | 1 | 2021-06-17T02:43:27.000Z | 2021-06-17T02:43:27.000Z | #include <QtWidgets>
#include <QVector>
#include <QDebug>
#include "vedit.h"
#include "vnote.h"
#include "vconfigmanager.h"
#include "vtableofcontent.h"
#include "utils/vutils.h"
#include "utils/veditutils.h"
#include "utils/vmetawordmanager.h"
#include "veditoperations.h"
#include "vedittab.h"
#include "dialog/vinsert... | 28.615815 | 112 | 0.58092 |
f4f2b945b1685e17693494aed5602c18ef01f341 | 5,812 | cxx | C++ | Modules/Filtering/FFT/test/itkForwardInverseFFTImageFilterTest.cxx | floryst/ITK | 321e673bcbac15aae2fcad863fd0977b7fbdb3e9 | [
"Apache-2.0"
] | 1 | 2020-10-09T18:12:53.000Z | 2020-10-09T18:12:53.000Z | Modules/Filtering/FFT/test/itkForwardInverseFFTImageFilterTest.cxx | floryst/ITK | 321e673bcbac15aae2fcad863fd0977b7fbdb3e9 | [
"Apache-2.0"
] | 1 | 2018-10-18T18:49:19.000Z | 2018-10-18T18:49:19.000Z | Modules/Filtering/FFT/test/itkForwardInverseFFTImageFilterTest.cxx | floryst/ITK | 321e673bcbac15aae2fcad863fd0977b7fbdb3e9 | [
"Apache-2.0"
] | 1 | 2020-10-13T07:24:57.000Z | 2020-10-13T07:24:57.000Z | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | 37.25641 | 123 | 0.720062 |
f4f8b3ded57685503b36f0e9542b3f5210036b25 | 34,267 | cpp | C++ | multimedia/dshow/filters/inftee/inftee.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | multimedia/dshow/filters/inftee/inftee.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | multimedia/dshow/filters/inftee/inftee.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //==========================================================================;
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
... | 26.379523 | 89 | 0.609274 |
f4fcd19ec91eed6f776df2b612bb035119130639 | 1,015 | cpp | C++ | Si7006.cpp | m4nue1X/Arduino-TemperatureHumidityPressureSensors | 20031b172ff4de0b6d4cc0b52151c3af6593b8ee | [
"MIT"
] | null | null | null | Si7006.cpp | m4nue1X/Arduino-TemperatureHumidityPressureSensors | 20031b172ff4de0b6d4cc0b52151c3af6593b8ee | [
"MIT"
] | null | null | null | Si7006.cpp | m4nue1X/Arduino-TemperatureHumidityPressureSensors | 20031b172ff4de0b6d4cc0b52151c3af6593b8ee | [
"MIT"
] | null | null | null |
#include "Si7006.h"
#include <WireUtil.h>
int Si7006::configure(Resolution res, bool enable_heater, HeaterPower heater_power) {
if(WireUtil::writeRegister(kSi7006Addr, kSi7006RegWriteUserRegister1, kSi7006UserRegister1Default | uint8_t(res) | uint8_t(enable_heater ? HeaterEnable::kEnable : HeaterEnable::kDisable)) ... | 40.6 | 197 | 0.731034 |
f4fdcf9263914ccf76be06a87351d5576a534c0f | 52,096 | cpp | C++ | core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/sock-new.cpp | qiuhere/Bench | 80f15facb81120b754547586cf3a7e5f46ca1551 | [
"Apache-2.0"
] | null | null | null | core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/sock-new.cpp | qiuhere/Bench | 80f15facb81120b754547586cf3a7e5f46ca1551 | [
"Apache-2.0"
] | null | null | null | core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/glib-adv/sock-new.cpp | qiuhere/Bench | 80f15facb81120b754547586cf3a7e5f46ca1551 | [
"Apache-2.0"
] | null | null | null | #include "sock.h"
#ifdef GLib_UNIX
class TSocketTimer : public TTTimer {
private:
int SockId;
public:
TSocketTimer(const int TimeOut, /*PSock &_Socket*/ const int _SockId) : TTTimer(TimeOut), SockId(_SockId) {}
~TSocketTimer() {}
void OnTimeOut();
};
#endif
/////////////////////////////////////////////////
//... | 33.784695 | 188 | 0.690034 |
f4ffcc19fc0c4406900eb88970acc8eef163ae68 | 511 | cpp | C++ | drape/oglcontextfactory.cpp | bowlofstew/omim | 8045157c95244aa8f862d47324df42a19b87e335 | [
"Apache-2.0"
] | 1 | 2019-01-11T05:02:05.000Z | 2019-01-11T05:02:05.000Z | drape/oglcontextfactory.cpp | bowlofstew/omim | 8045157c95244aa8f862d47324df42a19b87e335 | [
"Apache-2.0"
] | null | null | null | drape/oglcontextfactory.cpp | bowlofstew/omim | 8045157c95244aa8f862d47324df42a19b87e335 | [
"Apache-2.0"
] | 1 | 2019-08-09T21:21:09.000Z | 2019-08-09T21:21:09.000Z | #include "drape/oglcontextfactory.hpp"
namespace dp
{
ThreadSafeFactory::ThreadSafeFactory(OGLContextFactory * factory)
: m_factory(factory)
{
}
ThreadSafeFactory::~ThreadSafeFactory()
{
delete m_factory;
}
OGLContext *ThreadSafeFactory::getDrawContext()
{
threads::MutexGuard lock(m_mutex);
return m_factory... | 17.62069 | 65 | 0.772994 |
f4ffdbc72af1209c3c20227409afe3684aac4f62 | 576 | cpp | C++ | libvermilion/core/src/stb_image.cpp | Jojojoppe/vermilion | 2bfe545c5f2c02e11d96940c191bac6f6c491843 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | libvermilion/core/src/stb_image.cpp | Jojojoppe/vermilion | 2bfe545c5f2c02e11d96940c191bac6f6c491843 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | libvermilion/core/src/stb_image.cpp | Jojojoppe/vermilion | 2bfe545c5f2c02e11d96940c191bac6f6c491843 | [
"Zlib",
"Unlicense",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | #define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include "Texture.hpp"
#include <string>
unsigned char * Vermilion::Core::loadTextureData(const std::string& path, size_t * width, size_t * height, size_t * channels){
*width = 0;
*height = 0;
*channels = 4;
Vermilion::Core::flipLoading();
ret... | 28.8 | 126 | 0.713542 |
760079c76903f55110459bca977957ed078cc68c | 4,093 | cpp | C++ | vendor/tree/tree.cpp | MufidJamaluddin/gedungh | 6229fda7bf35d8b33af9308e2a404378a7411399 | [
"BSD-3-Clause"
] | 1 | 2019-03-13T15:30:28.000Z | 2019-03-13T15:30:28.000Z | vendor/tree/tree.cpp | MufidJamaluddin/gedungh | 6229fda7bf35d8b33af9308e2a404378a7411399 | [
"BSD-3-Clause"
] | null | null | null | vendor/tree/tree.cpp | MufidJamaluddin/gedungh | 6229fda7bf35d8b33af9308e2a404378a7411399 | [
"BSD-3-Clause"
] | null | null | null | /*
ADT AVL Tree
www.geeksforgeeks.org
*/
#include<stdio.h>
#include<stdlib.h>
// An AVL tree node
struct Node
{
int key;
struct Node *left;
struct Node *right;
int height;
int texture;
};
// A utility function to get maximum of two integers
int max(int a, int b);
// A utility f... | 23.796512 | 73 | 0.592964 |
76028276bf7c9e6e899d16d6e47452956936c4f6 | 11,255 | cpp | C++ | src/Engine/Audio/CPianoKeyboard.cpp | slajerek/MTEngineSDL | 19b5295d875c197ec03bc20ddacd48c228920365 | [
"MIT"
] | 4 | 2021-12-16T11:22:30.000Z | 2022-01-05T11:20:32.000Z | src/Engine/Audio/CPianoKeyboard.cpp | slajerek/MTEngineSDL | 19b5295d875c197ec03bc20ddacd48c228920365 | [
"MIT"
] | 1 | 2022-01-07T10:41:38.000Z | 2022-01-09T12:04:03.000Z | src/Engine/Audio/CPianoKeyboard.cpp | slajerek/MTEngineSDL | 19b5295d875c197ec03bc20ddacd48c228920365 | [
"MIT"
] | null | null | null | /*
* CPianoKeyboard (CPianoKeyboard.cpp)
* MobiTracker
*
* Created by Marcin Skoczylas on 09-11-26.
* Copyright 2009 Marcin Skoczylas. All rights reserved.
*
*/
#include "CPianoKeyboard.h"
#include "VID_Main.h"
#include "CGuiMain.h"
#include "CLayoutParameter.h"
#define OCT_NAME_FONT_SIZE_X 8.0
#define OCT... | 28.278894 | 153 | 0.687517 |
760412626f88fb941d8e6b4255045abda9a3697f | 1,340 | hpp | C++ | src/entity/sprite/Sprite.hpp | JulienTD/pacman | 71e92b367b4c57bba065c18faa67570842bdd67f | [
"MIT"
] | null | null | null | src/entity/sprite/Sprite.hpp | JulienTD/pacman | 71e92b367b4c57bba065c18faa67570842bdd67f | [
"MIT"
] | null | null | null | src/entity/sprite/Sprite.hpp | JulienTD/pacman | 71e92b367b4c57bba065c18faa67570842bdd67f | [
"MIT"
] | null | null | null | #ifndef SPRITE_HPP_
#define SPRITE_HPP_
#include <string>
#include <SDL2/SDL.h>
#include <SDL2/SDL_pixels.h>
#include <SDL2/SDL_image.h>
#include "window/Window.hpp"
#include "entity/Entity.hpp"
class Sprite : public Entity {
public:
Sprite(std::string id, std::string spritePath, Window *window, int x, in... | 26.8 | 108 | 0.629851 |
76053454382ed3308b268d1d7609151207f9f737 | 7,804 | cpp | C++ | arangod/IResearch/IResearchRocksDBRecoveryHelper.cpp | LLcat1217/arangodb | 67c51272915699e0a489e1f8d9da786f4226221a | [
"Apache-2.0"
] | null | null | null | arangod/IResearch/IResearchRocksDBRecoveryHelper.cpp | LLcat1217/arangodb | 67c51272915699e0a489e1f8d9da786f4226221a | [
"Apache-2.0"
] | null | null | null | arangod/IResearch/IResearchRocksDBRecoveryHelper.cpp | LLcat1217/arangodb | 67c51272915699e0a489e1f8d9da786f4226221a | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 30.724409 | 80 | 0.631599 |
7606ed3bc233b9ed7f32bc613a8838b4e6ef0824 | 9,151 | cc | C++ | pigasus/software/tools/u2boat/u2boat.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/tools/u2boat/u2boat.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/tools/u2boat/u2boat.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------
// Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved.
// Copyright (C) 2002-2013 Sourcefire, Inc.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public... | 27.89939 | 83 | 0.602666 |
7608a5f1d9ac50567702b78a115c3600c1abc70f | 4,916 | cpp | C++ | test-suite/generated-src/jni/NativeInterfaceEncapsulator.cpp | iRobotCorporation/djinni | 50ab071b855beab4e65af1772823dc2080b450b8 | [
"Apache-2.0"
] | 1 | 2016-03-04T20:23:31.000Z | 2016-03-04T20:23:31.000Z | test-suite/generated-src/jni/NativeInterfaceEncapsulator.cpp | iRobotCorporation/djinni | 50ab071b855beab4e65af1772823dc2080b450b8 | [
"Apache-2.0"
] | null | null | null | test-suite/generated-src/jni/NativeInterfaceEncapsulator.cpp | iRobotCorporation/djinni | 50ab071b855beab4e65af1772823dc2080b450b8 | [
"Apache-2.0"
] | null | null | null | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from interface_inheritance.djinni
#include "NativeInterfaceEncapsulator.hpp" // my header
#include "NativeBaseCppInterfaceInheritance.hpp"
#include "NativeBaseObjcJavaInterfaceInheritance.hpp"
#include "NativeSubObjcJavaInterfaceInheritance.hpp"
... | 53.434783 | 209 | 0.778885 |
760a33560dd67baa90060d7973adde8257a61375 | 837 | hpp | C++ | PolyEngine/Editor/Src/Controls/IControlBase.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 65 | 2017-04-04T20:33:44.000Z | 2019-12-02T23:06:58.000Z | PolyEngine/Editor/Src/Controls/IControlBase.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 46 | 2017-04-21T12:26:38.000Z | 2019-12-15T05:31:47.000Z | PolyEngine/Editor/Src/Controls/IControlBase.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 51 | 2017-04-12T10:53:32.000Z | 2019-11-20T13:05:54.000Z | #pragma once
#include <QtWidgets/qwidget.h>
#include <QtCore/qtimer.h>
#include <RTTI/RTTI.hpp>
#include <Utils/Logger.hpp>
using namespace Poly;
// This is base class for all controls for core types such as int, string or vector.
// @see Poly::RTTI::eCorePropertyType
class IControlBase
{
public:
// Assigns given ... | 26.15625 | 84 | 0.734767 |
760be1fbba299668e2b3974b11ff6c5d131f3464 | 21,384 | cpp | C++ | src/CQPropertyViewTree.cpp | SammyEnigma/CQPropertyView | 4dd64a266929b754a68839243daf0aeb80331185 | [
"MIT"
] | 8 | 2018-05-07T13:06:53.000Z | 2022-03-08T05:25:06.000Z | src/CQPropertyViewTree.cpp | SammyEnigma/CQPropertyView | 4dd64a266929b754a68839243daf0aeb80331185 | [
"MIT"
] | 2 | 2021-06-18T06:08:37.000Z | 2022-03-12T11:45:17.000Z | src/CQPropertyViewTree.cpp | SammyEnigma/CQPropertyView | 4dd64a266929b754a68839243daf0aeb80331185 | [
"MIT"
] | 4 | 2019-04-01T13:13:59.000Z | 2022-01-20T12:14:44.000Z | #include <CQPropertyViewTree.h>
#include <CQPropertyViewFilter.h>
#include <CQPropertyViewModel.h>
#include <CQPropertyViewDelegate.h>
#include <CQPropertyViewItem.h>
#include <CQHeaderView.h>
#include <QApplication>
#include <QHeaderView>
#include <QMouseEvent>
#include <QClipboard>
#include <QMenu>
#include <set>
#i... | 17.6 | 93 | 0.648803 |
76169e6048a4751df05e23b45ca86658151d7cd1 | 755 | cpp | C++ | Competitions/Codeforces/Codeforces Round #352 (Div. 2)/Summer Camp.cpp | cnm06/Competitive-Programming | 94242ae458570d503b8218f37624b88cc5020d23 | [
"MIT"
] | 994 | 2017-02-28T06:13:47.000Z | 2022-03-31T10:49:00.000Z | Competitions/Codeforces/Codeforces Round #352 (Div. 2)/Summer Camp.cpp | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 16 | 2018-01-01T02:59:55.000Z | 2021-11-22T12:49:16.000Z | Competitions/Codeforces/Codeforces Round #352 (Div. 2)/Summer Camp.cpp | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 325 | 2017-06-15T03:32:43.000Z | 2022-03-28T22:43:42.000Z | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
long long int n, temp;
int main()
{
cin>>n;
if(n<10 && n>0)
{
cout<<n<<endl;
}
else if(n>9 && n<190)
{
n=n-9;
temp=n%2;
n=9+n/2;
if(temp==0)
{
cout<<n%10<<endl;
}
... | 14.803922 | 30 | 0.316556 |
76173854685ca6fc47d1690112e0dde625311ca5 | 606 | cpp | C++ | src/format.cpp | sharonshmuel/CppND-System-Monitor | 2fb14d0f2b45d8c99759c91a0c80af0d7dbb5c98 | [
"MIT"
] | null | null | null | src/format.cpp | sharonshmuel/CppND-System-Monitor | 2fb14d0f2b45d8c99759c91a0c80af0d7dbb5c98 | [
"MIT"
] | null | null | null | src/format.cpp | sharonshmuel/CppND-System-Monitor | 2fb14d0f2b45d8c99759c91a0c80af0d7dbb5c98 | [
"MIT"
] | null | null | null | #include <string>
#include "format.h"
using std::string;
// INPUT: Long int measuring seconds
// OUTPUT: HH:MM:SS
string Format::ElapsedTime(long seconds) {
string format;
long minutes = seconds / 60;
long hours = minutes / 60;
long h = hours;// (hours % 24) ;
string hs = (h < 10) ? "0" + std::to... | 30.3 | 71 | 0.574257 |
761761409dd0e995e32457cf0293e50204fb6b1a | 443 | hpp | C++ | src/Qt5Network/QLocalServer.hpp | dafrito/luacxx | 278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad | [
"MIT"
] | 128 | 2015-01-07T19:47:09.000Z | 2022-01-22T19:42:14.000Z | src/Qt5Network/QLocalServer.hpp | dafrito/luacxx | 278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad | [
"MIT"
] | null | null | null | src/Qt5Network/QLocalServer.hpp | dafrito/luacxx | 278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad | [
"MIT"
] | 24 | 2015-01-07T19:47:10.000Z | 2022-01-25T17:42:37.000Z | #ifndef luacxx_QLocalServer_INCLUDED
#define luacxx_QLocalServer_INCLUDED
#include "../stack.hpp"
#include "../enum.hpp"
#include <QLocalServer>
#include "../Qt5Core/QObject.hpp"
// http://qt-project.org/doc/qt-5/qlocalserver.html#details
LUA_METATABLE_INHERIT(QLocalServer, QObject)
LUA_METATABLE_ENUM(QLocalServer... | 23.315789 | 65 | 0.801354 |
7621daf177cc86bd608edb512ae2a03fd7b72d28 | 6,164 | cpp | C++ | Mesh_3/archive/applications/identify_identical_points_in_OFF_files.cpp | antoniospg/cgal | 2891c22fc7f64f680ac7e144407afe49f6425cb9 | [
"CC0-1.0"
] | 2 | 2020-12-12T09:30:07.000Z | 2021-01-04T05:00:23.000Z | Mesh_3/archive/applications/identify_identical_points_in_OFF_files.cpp | antoniospg/cgal | 2891c22fc7f64f680ac7e144407afe49f6425cb9 | [
"CC0-1.0"
] | 17 | 2018-01-10T13:32:24.000Z | 2021-07-30T12:23:20.000Z | Mesh_3/archive/applications/identify_identical_points_in_OFF_files.cpp | antoniospg/cgal | 2891c22fc7f64f680ac7e144407afe49f6425cb9 | [
"CC0-1.0"
] | 1 | 2019-02-21T15:26:25.000Z | 2019-02-21T15:26:25.000Z | // Copyright (c) 2007 INRIA Sophia-Antipolis (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : Laurent Rineau
#include <iostream>
#include <string>
#include <vector>
#include... | 29.352381 | 76 | 0.571058 |
76231a822c50524b2f87ef378d5e7334ef090703 | 2,378 | hpp | C++ | blast/include/objtools/format/ftable_formatter.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | 31 | 2016-12-09T04:56:59.000Z | 2021-12-31T17:19:10.000Z | blast/include/objtools/format/ftable_formatter.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | 6 | 2017-03-10T17:25:13.000Z | 2021-09-22T15:49:49.000Z | blast/include/objtools/format/ftable_formatter.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | 20 | 2015-01-04T02:15:17.000Z | 2021-12-03T02:31:43.000Z | #ifndef OBJTOOLS_FORMAT___FTABLE_FORMATTER__HPP
#define OBJTOOLS_FORMAT___FTABLE_FORMATTER__HPP
/* $Id: ftable_formatter.hpp 103491 2007-05-04 17:18:18Z kazimird $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National... | 34.463768 | 80 | 0.707317 |
7626c7483fb2ea7749e070c7818a48b71e7fa0c9 | 46 | cpp | C++ | tests/src/experimental/tests_Optional.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | 1 | 2021-07-16T14:19:50.000Z | 2021-07-16T14:19:50.000Z | tests/src/experimental/tests_Optional.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | 1 | 2018-06-05T11:03:30.000Z | 2018-06-05T11:03:30.000Z | tests/src/experimental/tests_Optional.cpp | tum-ei-rcs/mart-common | 6f8f18ac23401eb294d96db490fbdf78bf9b316c | [
"MIT"
] | null | null | null | #include <mart-common/experimental/Optional.h> | 46 | 46 | 0.826087 |
762827d26f7dec396fe5a7a69c3bf9b17ce3596b | 11,362 | cpp | C++ | renderer.cpp | zH4x/SoT-DLL | 6f7cf448c937a63d9f068bdf10a679dfb15bf357 | [
"MIT"
] | 51 | 2019-05-02T07:07:19.000Z | 2022-02-17T03:28:17.000Z | renderer.cpp | booggzen/SoT-DLL | 3131cb07305e30a154c2d3568a7dd060831bef07 | [
"MIT"
] | 1 | 2020-07-10T18:41:32.000Z | 2020-07-10T18:41:32.000Z | renderer.cpp | booggzen/SoT-DLL | 3131cb07305e30a154c2d3568a7dd060831bef07 | [
"MIT"
] | 19 | 2019-09-24T02:09:00.000Z | 2022-02-17T03:28:18.000Z | #include "renderer.h"
Renderer::Renderer(ID3D11Device *direct3DDevice, const std::wstring &defaultFontFamily) :
direct3DDevice(direct3DDevice),
immediateContext(nullptr),
inputLayout(nullptr),
vertexShader(nullptr),
pixelShader(nullptr),
fontFactory(nullptr),
fontWrapper(nullptr),
defaultFontFamily(d... | 34.852761 | 164 | 0.728833 |
762a0dc66e72d07d2707b64b32450fe35bb7e0c6 | 2,276 | cpp | C++ | tc 160+/OptimalList.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/OptimalList.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/OptimalList.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
const int di[] = { -1, 0, 1, 0 };
const int dj[] = { 0, 1, 0, -1 };
string dir = "NESW";
int getDir(char c) {
return dir.find(c);... | 29.558442 | 315 | 0.566784 |
762abd73654bedd41bbb03db5ede2cb40c955af2 | 475 | cpp | C++ | PassingCars/C++/PassingCars.cpp | ArturMarekNowak/Random-Algorithms-Repository | bda0e18bed68d3ab1b61b445e693a5c3c03a1179 | [
"MIT"
] | 1 | 2022-02-12T14:57:48.000Z | 2022-02-12T14:57:48.000Z | PassingCars/C++/PassingCars.cpp | ArturMarekNowak/Random-Algorithms-Repository | bda0e18bed68d3ab1b61b445e693a5c3c03a1179 | [
"MIT"
] | null | null | null | PassingCars/C++/PassingCars.cpp | ArturMarekNowak/Random-Algorithms-Repository | bda0e18bed68d3ab1b61b445e693a5c3c03a1179 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
int passingCars(std::vector<int> & someVec)
{
if(someVec.size() == 1)
return 0;
int counter = 0, result = 0;
for(int i = someVec.size() - 1; i >= 0; i--)
if(someVec[i] == 1)
counter++;
else if(someVec[i] == 0)
{
result += counter;
if(result > 1000000000)
r... | 15.322581 | 47 | 0.574737 |
762ae0e3ad471639a76e787ed602828358d9d040 | 5,668 | cpp | C++ | Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/Audio/Chorus/chorusmodel.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/Audio/Chorus/chorusmodel.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/Audio/Chorus/chorusmodel.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | //
// chorusmodel.cpp
// MDStudio
//
// Created by Daniel Cliche on 2017-05-08.
// Copyright © 2017-2020 Daniel Cliche. All rights reserved.
//
#include "chorusmodel.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
#include <string.h>
#define GRAPH_SAMPLE_RATE 44100
#define ROUND(n) ((int)((floa... | 31.314917 | 120 | 0.481475 |
762b2d51877e601a10f55acb64f4fd2c81f7dd2d | 14,190 | cc | C++ | src/HR2Scheduler.cc | harsha-simhadri/sbsched | 8d12a010727ea415d5e4a23d389740d57c68278c | [
"MIT"
] | 1 | 2020-09-30T14:47:02.000Z | 2020-09-30T14:47:02.000Z | src/HR2Scheduler.cc | harsha-simhadri/sbsched | 8d12a010727ea415d5e4a23d389740d57c68278c | [
"MIT"
] | null | null | null | src/HR2Scheduler.cc | harsha-simhadri/sbsched | 8d12a010727ea415d5e4a23d389740d57c68278c | [
"MIT"
] | null | null | null | // This code is part of the project "Experimental Analysis of Space-Bounded
// Schedulers", presented at Symposium on Parallelism in Algorithms and
// Architectures, 2014.
// Copyright (c) 2014 Harsha Vardhan Simhadri, Guy Blelloch, Phillip Gibbons,
// Jeremy Fineman, Aapo Kyrola.
//
// Permission is hereby granted, fr... | 31.744966 | 106 | 0.657717 |
762d09dad5ba121135195bebd503ada89e9d4a39 | 144 | hpp | C++ | star.rg/include/tileDB.hpp | masscry/badbaby | f0b2e793081491ed7598d3170725fe4b48ae1fff | [
"MIT"
] | null | null | null | star.rg/include/tileDB.hpp | masscry/badbaby | f0b2e793081491ed7598d3170725fe4b48ae1fff | [
"MIT"
] | null | null | null | star.rg/include/tileDB.hpp | masscry/badbaby | f0b2e793081491ed7598d3170725fe4b48ae1fff | [
"MIT"
] | null | null | null | #pragma once
#ifndef TILE_DATABASE_HEADER
#define TILE_DATABASE_HEADER
extern const tileInfo_t tileID[];
#endif // TILE_DATABASE_HEADER | 10.285714 | 33 | 0.791667 |
7631c1aa955429bb64b7372f54adb09b33ab2d4e | 3,619 | cpp | C++ | core123/ut/ut_simd_threefry.cpp | fennm/fs123 | 559b97659352620ce16030824f9acd26f590f4e1 | [
"BSD-3-Clause"
] | 22 | 2019-04-10T18:05:35.000Z | 2021-12-30T12:26:39.000Z | core123/ut/ut_simd_threefry.cpp | fennm/fs123 | 559b97659352620ce16030824f9acd26f590f4e1 | [
"BSD-3-Clause"
] | 13 | 2019-04-09T00:19:29.000Z | 2021-11-04T15:57:13.000Z | core123/ut/ut_simd_threefry.cpp | fennm/fs123 | 559b97659352620ce16030824f9acd26f590f4e1 | [
"BSD-3-Clause"
] | 4 | 2019-04-07T16:33:44.000Z | 2020-07-02T02:58:51.000Z | #if defined(__ICC)
#include <stdio.h>
int main(int, char **){
printf(__FILE__ " Icc (through version 18) doesn't fully support gcc's 'vector' extensions.");
return 0;
}
#else
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wpsabi" // see comments in simd_threefry.hpp
#... | 36.555556 | 163 | 0.498757 |
7632d97bf2358fb269500f0dc8461a4d5a7f9069 | 244 | cpp | C++ | Index.cpp | Robert-xiaoqiang/MiniSQL-TeamLanTianLiuShe | 9dcad804615412e85de31797c0a0afb84135918f | [
"MIT"
] | 2 | 2018-07-29T03:08:45.000Z | 2019-06-08T15:41:24.000Z | Index.cpp | Robert-xiaoqiang/MiniSQL-TeamLanTianLiuShe | 9dcad804615412e85de31797c0a0afb84135918f | [
"MIT"
] | null | null | null | Index.cpp | Robert-xiaoqiang/MiniSQL-TeamLanTianLiuShe | 9dcad804615412e85de31797c0a0afb84135918f | [
"MIT"
] | 1 | 2019-05-24T05:08:06.000Z | 2019-05-24T05:08:06.000Z | #include "Index.h"
Index::Index(std::string new_name, std::string new_table_name, std::string new_attr_name, attr_type new_type):
name(new_name), table_name(new_table_name), attr_name(new_attr_name), type(new_type)
{
}
Index::~Index()
{
}
| 18.769231 | 110 | 0.745902 |
76391c5d2e93b899fb7a50edf3fecfa8d866424c | 1,462 | cxx | C++ | doctype/solarmail.cxx | re-Isearch/re-Isearch | f2a2012c1814b0940a6004b6186a5e6896c1135a | [
"BSD-4-Clause-UC",
"Apache-2.0"
] | 2 | 2022-02-05T17:48:29.000Z | 2022-02-06T15:25:04.000Z | doctype/solarmail.cxx | re-Isearch/re-Isearch | f2a2012c1814b0940a6004b6186a5e6896c1135a | [
"BSD-4-Clause-UC",
"Apache-2.0"
] | null | null | null | doctype/solarmail.cxx | re-Isearch/re-Isearch | f2a2012c1814b0940a6004b6186a5e6896c1135a | [
"BSD-4-Clause-UC",
"Apache-2.0"
] | 1 | 2022-03-30T20:14:00.000Z | 2022-03-30T20:14:00.000Z | static const char RCS_Id[]="$Id: solarmail.cxx,v 1.1 2007/05/15 15:47:29 edz Exp $";
/* ########################################################################
Usenet News Folder Doctype
Basis Systeme netzwerk
Brecherspitzstr. 8
D-81541 Munich, Germany
File: sunfolder.cxx
Description: Cl... | 26.107143 | 84 | 0.589603 |
763e5b8db9c5b5d782ba03570f8a664a402f751e | 4,163 | hpp | C++ | openscenario/openscenario_interpreter/include/openscenario_interpreter/utility/execution_timer.hpp | TakahiroNISHIOKA/scenario_simulator_v2 | 949a46a64a26d17413c2586577e1f3a5ba41161e | [
"Apache-2.0"
] | null | null | null | openscenario/openscenario_interpreter/include/openscenario_interpreter/utility/execution_timer.hpp | TakahiroNISHIOKA/scenario_simulator_v2 | 949a46a64a26d17413c2586577e1f3a5ba41161e | [
"Apache-2.0"
] | null | null | null | openscenario/openscenario_interpreter/include/openscenario_interpreter/utility/execution_timer.hpp | TakahiroNISHIOKA/scenario_simulator_v2 | 949a46a64a26d17413c2586577e1f3a5ba41161e | [
"Apache-2.0"
] | null | null | null | // Copyright 2015-2020 Tier IV, Inc. 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 app... | 29.111888 | 99 | 0.664425 |
76427c417c94cb5460cf6ef17f43fbcd44277d62 | 293 | hpp | C++ | src/resources/resource.hpp | ifamakes/sidhe-cpp | ce660872fa0c9eba7d41357ab330410a397f59eb | [
"CC0-1.0"
] | null | null | null | src/resources/resource.hpp | ifamakes/sidhe-cpp | ce660872fa0c9eba7d41357ab330410a397f59eb | [
"CC0-1.0"
] | null | null | null | src/resources/resource.hpp | ifamakes/sidhe-cpp | ce660872fa0c9eba7d41357ab330410a397f59eb | [
"CC0-1.0"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
struct Resource {
virtual ~Resource() = default;
virtual void print() const = 0;
};
struct File : Resource {
std::string_view filename;
virtual void print() const override {
std::cout << __PRETTY_FUNCTION__ << std::endl;
};
}; | 19.533333 | 50 | 0.675768 |
76442cf857d809354d445c7ecfb216a91d327ab3 | 15,115 | cpp | C++ | src/server.cpp | Subsentient/nexus | 719cca618afe8729522607ed35e9415d76582347 | [
"Unlicense"
] | 2 | 2016-03-17T21:25:51.000Z | 2021-09-02T13:20:23.000Z | src/server.cpp | Subsentient/nexus | 719cca618afe8729522607ed35e9415d76582347 | [
"Unlicense"
] | 1 | 2018-03-04T18:55:48.000Z | 2018-03-07T00:19:37.000Z | src/server.cpp | Subsentient/nexus | 719cca618afe8729522607ed35e9415d76582347 | [
"Unlicense"
] | 2 | 2016-03-19T00:31:27.000Z | 2017-01-09T23:41:32.000Z | /*NEXUS IRC session BNC, by Subsentient. This software is public domain.*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <ctype.h>
#ifdef WIN
#include <winsock2.h>
#else
#include <fcntl.h>
#endif
#include <list>
#include <string>
#incl... | 27.836096 | 139 | 0.691631 |
764d3fec3b50869b29975839adf3de55ea856e79 | 3,491 | cpp | C++ | dp0.cpp | lordblendi/cpp-deklarativ-programozas-hf | 85d875d9eb35f1dcc0275439f8284993b556143f | [
"MIT"
] | null | null | null | dp0.cpp | lordblendi/cpp-deklarativ-programozas-hf | 85d875d9eb35f1dcc0275439f8284993b556143f | [
"MIT"
] | null | null | null | dp0.cpp | lordblendi/cpp-deklarativ-programozas-hf | 85d875d9eb35f1dcc0275439f8284993b556143f | [
"MIT"
] | null | null | null | //segédfgv length_help(L,N) = N+L hossza, N-ben tárolom az addigi elemek számát
int length_help(list l, int n){
if(nil == l) return n;
return length_help(tl(l), n+1);
}
//length(L) = L lista hossza
int list_length(list l){
return length_help(l, 0);
}
//insert_nth(L,N,E) L lista olyan másolata, amelyben ... | 43.6375 | 254 | 0.708393 |
764f988d3b8a1339b595365a3abbb9929fee84b1 | 1,955 | inl | C++ | RTCLI.AOT/Internal/Managed.inl | Team-RTCLI/RTCLI.Runtime | 3e888dca4401d7eb9b78aaf02d23b1281d8f0c2a | [
"MIT"
] | 19 | 2020-10-21T02:54:39.000Z | 2022-03-31T02:55:48.000Z | RTCLI.AOT/Internal/Managed.inl | Team-RTCLI/RTCLI.Runtime | 3e888dca4401d7eb9b78aaf02d23b1281d8f0c2a | [
"MIT"
] | null | null | null | RTCLI.AOT/Internal/Managed.inl | Team-RTCLI/RTCLI.Runtime | 3e888dca4401d7eb9b78aaf02d23b1281d8f0c2a | [
"MIT"
] | null | null | null | namespace RTCLI
{
namespace System
{
// ******************* Managed<T> *************************//
template<typename T>
RTCLI_FORCEINLINE Managed<T>::operator const T&() const RTCLI_NOEXCEPT
{
if(!object)
{
return null;
}
return *static_cast<const T*>(object... | 24.4375 | 101 | 0.557545 |
7653a2d7c669c259f2df23c413a6d5a80fe46dde | 862 | cpp | C++ | src/core/resumable.cpp | Anomander/xi | 0340675310c41d659762fc3eea48c84ff13b95db | [
"MIT"
] | null | null | null | src/core/resumable.cpp | Anomander/xi | 0340675310c41d659762fc3eea48c84ff13b95db | [
"MIT"
] | null | null | null | src/core/resumable.cpp | Anomander/xi | 0340675310c41d659762fc3eea48c84ff13b95db | [
"MIT"
] | null | null | null | #include "xi/core/resumable.h"
#include "xi/core/abstract_worker.h"
namespace xi {
namespace core {
namespace v2 {
thread_local resumable_stat RESUMABLE_STAT;
}
void resumable::attach_executor(abstract_worker* e) {
_worker = e;
}
void resumable::detach_executor(abstract_worker* e) {
assert(_wor... | 18.73913 | 62 | 0.668213 |
76578b47ce79e8d46b82ba4c2a9ca7a80b451c9b | 555 | cpp | C++ | Solutions-to-OJs/POJ/2000-2999/2719_Faulty_Odometer.cpp | Horizon-Blue/playground | 4bd42bfcec60b8e89e127f4784c99f6ba669d359 | [
"MIT"
] | 2 | 2016-08-31T19:13:24.000Z | 2017-02-18T18:48:31.000Z | Solutions-to-OJs/POJ/2000-2999/2719_Faulty_Odometer.cpp | Horizon-Blue/playground | 4bd42bfcec60b8e89e127f4784c99f6ba669d359 | [
"MIT"
] | 1 | 2018-12-10T16:32:26.000Z | 2018-12-27T19:50:48.000Z | Solutions-to-OJs/POJ/2000-2999/2719_Faulty_Odometer.cpp | Horizon-Blue/playground | 4bd42bfcec60b8e89e127f4784c99f6ba669d359 | [
"MIT"
] | null | null | null | // Xiaoyan Wang 9/8/2016
#include <iostream>
// #include <vector>
using namespace std;
// arry stores 0, 9^1, 9^2 ... 9^8
int arry[] = {1, 9, 81, 729, 6561, 59049, 531441, 4782969, 43046721/*, 387420489*/};
// input range: 1 to 10^10
int main() {
ios::sync_with_stdio(false);
int n;
while(cin >> n && n) {
int res... | 22.2 | 84 | 0.536937 |
765928c98b462e252e72220293d6e1eb924600d4 | 54 | hpp | C++ | src/boost_geometry_formulas_thomas_inverse.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_geometry_formulas_thomas_inverse.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_geometry_formulas_thomas_inverse.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/geometry/formulas/thomas_inverse.hpp>
| 27 | 53 | 0.833333 |
7659c3421dbb45aa88d737e948f1bad88733d706 | 4,001 | cpp | C++ | ycsbWorkloadCBench.cpp | pfent/exchangeableTransports | a17ddcf99eba16b401df8f0865c1264e11c15c85 | [
"MIT"
] | 32 | 2018-12-14T16:54:11.000Z | 2022-02-28T13:07:17.000Z | ycsbWorkloadCBench.cpp | pfent/exchangeableTransports | a17ddcf99eba16b401df8f0865c1264e11c15c85 | [
"MIT"
] | null | null | null | ycsbWorkloadCBench.cpp | pfent/exchangeableTransports | a17ddcf99eba16b401df8f0865c1264e11c15c85 | [
"MIT"
] | 5 | 2020-05-25T07:05:29.000Z | 2022-03-05T02:59:38.000Z | #include <include/DomainSocketsTransport.h>
#include <include/TcpTransport.h>
#include <include/SharedMemoryTransport.h>
#include "include/RdmaTransport.h"
#include <array>
#include <vector>
#include <thread>
#include "util/bench.h"
#include "util/ycsb.h"
#include "util/Random32.h"
#include "util/doNotOptimize.h"
usin... | 34.196581 | 126 | 0.593852 |
766150558a10806e22a6e4d1dc3931ce9f259468 | 7,410 | cpp | C++ | examples/06-multithreaded-ROUTERserver-doneRight/server.cpp | cibercitizen1/zmqHelper | 8fbfe33ddb2642657ed565ffbb157e174035a52d | [
"MIT"
] | 5 | 2015-01-02T15:54:39.000Z | 2021-01-12T18:00:29.000Z | examples/06-multithreaded-ROUTERserver-doneRight/server.cpp | cibercitizen1/zmqHelper | 8fbfe33ddb2642657ed565ffbb157e174035a52d | [
"MIT"
] | null | null | null | examples/06-multithreaded-ROUTERserver-doneRight/server.cpp | cibercitizen1/zmqHelper | 8fbfe33ddb2642657ed565ffbb157e174035a52d | [
"MIT"
] | 2 | 2017-09-01T19:54:50.000Z | 2017-11-09T14:34:11.000Z |
// ---------------------------------------------------------------
// server.cpp
//
// multi-threaded router server done right !
//
//
// -> ROUTER socket -> main-thread -> in-proc socket -> delegate to worker
//
/*
* ON MULTITHREADING WITH ZeroMQ
*
* Remember:
*
* Do not use or close sockets except ... | 26.183746 | 82 | 0.518758 |
766ef3a32b2fe7e6c2ca3a1dda0abc133df01a2a | 3,639 | hpp | C++ | Includes/Core/CUDA/CUDAStdArray-Impl.hpp | ADMTec/CubbyFlow | c71457fd04ccfaf3ef22772bab9bcec4a0a3b611 | [
"MIT"
] | 216 | 2017-01-25T04:34:30.000Z | 2021-07-15T12:36:06.000Z | Includes/Core/CUDA/CUDAStdArray-Impl.hpp | ADMTec/CubbyFlow | c71457fd04ccfaf3ef22772bab9bcec4a0a3b611 | [
"MIT"
] | 323 | 2017-01-26T13:53:13.000Z | 2021-07-14T16:03:38.000Z | Includes/Core/CUDA/CUDAStdArray-Impl.hpp | ADMTec/CubbyFlow | c71457fd04ccfaf3ef22772bab9bcec4a0a3b611 | [
"MIT"
] | 33 | 2017-01-25T05:05:49.000Z | 2021-06-17T17:30:56.000Z | // This code is based on Jet framework.
// Copyright (c) 2018 Doyub Kim
// CubbyFlow is voxel-based fluid simulation engine for computer games.
// Copyright (c) 2020 CubbyFlow Team
// Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
// AI Part: Dongheon Cho, Minseo Kim
// We are making my contributions/subm... | 22.054545 | 80 | 0.636439 |
767284f4e7d34ff0b4e33313398b849527528b74 | 1,504 | cpp | C++ | LoveBabbar/12_graph/17_given_sorted_alien_dictionary_find_the_order_of_character.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | LoveBabbar/12_graph/17_given_sorted_alien_dictionary_find_the_order_of_character.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | LoveBabbar/12_graph/17_given_sorted_alien_dictionary_find_the_order_of_character.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | /*
link: https://practice.geeksforgeeks.org/problems/alien-dictionary/1
sol: https://www.geeksforgeeks.org/given-sorted-dictionary-find-precedence-characters/
video: https://youtu.be/wMMwRK-w0r4
steps:
1. form graph from given words by comparing (as given they are sorted)
2. so form graph suc... | 25.066667 | 125 | 0.470745 |
7673c1cf27f096c1ee32b3c97b316fb1166fc777 | 109 | hpp | C++ | PlanetaMatchMakerServer/source/server/server_constants.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 6 | 2019-08-15T09:48:55.000Z | 2021-07-25T14:40:59.000Z | PlanetaMatchMakerServer/source/server/server_constants.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 43 | 2019-12-25T14:54:52.000Z | 2022-02-24T17:22:48.000Z | PlanetaMatchMakerServer/source/server/server_constants.hpp | InstytutXR/PlanetaMatchMaker | 4bf7503c031aea467c191c3a0d14c6dd58354f99 | [
"MIT"
] | 2 | 2020-05-06T20:14:44.000Z | 2020-06-02T21:21:10.000Z | #pragma once
#include "data/data_constants.hpp"
namespace pgl {
constexpr version_type api_version = 0;
}
| 13.625 | 40 | 0.761468 |
7675a01a3ca635adcf7702c2fc5d040ba1edee18 | 14,146 | cc | C++ | src/AutoPolyLine.cc | uli2k/auto-polyline | 2f2b52dbd86e505d89894f9a98753b7e14cae783 | [
"MIT"
] | 2 | 2017-08-28T06:13:16.000Z | 2017-09-04T02:28:27.000Z | src/AutoPolyLine.cc | uli2k/auto-polyline | 2f2b52dbd86e505d89894f9a98753b7e14cae783 | [
"MIT"
] | null | null | null | src/AutoPolyLine.cc | uli2k/auto-polyline | 2f2b52dbd86e505d89894f9a98753b7e14cae783 | [
"MIT"
] | null | null | null | /*----------------------------------------------------------------------------------------
* Copyright (c) Jinan Tony Robotics Co., Ltd. All rights reserved.
* Author: Sun Liang
* 带权的二维地图路径搜索方法
*--------------------------------------------------------------------------------------*/
#include "AutoPolyLine.h"
name... | 28.12326 | 122 | 0.607522 |
767841bcaf8190d65c1cdf5653bd80edfbd31f3a | 11,933 | hpp | C++ | sol/function_types.hpp | SuperV1234/sol2 | 76b73bdfab4475933c42e715fd98737a4699794a | [
"MIT"
] | null | null | null | sol/function_types.hpp | SuperV1234/sol2 | 76b73bdfab4475933c42e715fd98737a4699794a | [
"MIT"
] | null | null | null | sol/function_types.hpp | SuperV1234/sol2 | 76b73bdfab4475933c42e715fd98737a4699794a | [
"MIT"
] | 1 | 2021-05-02T15:57:13.000Z | 2021-05-02T15:57:13.000Z | // The MIT License (MIT)
// Copyright (c) 2013-2016 Rapptz, ThePhD and contributors
// 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 limitati... | 48.116935 | 237 | 0.684405 |
76809ff92dee2935f5ee84fbd564304130ac376c | 5,453 | cc | C++ | test/nosync/ppoll-based-event-loop-test.cc | nokia/libNoSync | af0f0e5b738feac8c42c357c9dbdf3dc7e541a76 | [
"BSD-3-Clause"
] | 2 | 2018-04-28T18:29:08.000Z | 2018-07-03T08:16:34.000Z | test/nosync/ppoll-based-event-loop-test.cc | nokia/libNoSync | af0f0e5b738feac8c42c357c9dbdf3dc7e541a76 | [
"BSD-3-Clause"
] | null | null | null | test/nosync/ppoll-based-event-loop-test.cc | nokia/libNoSync | af0f0e5b738feac8c42c357c9dbdf3dc7e541a76 | [
"BSD-3-Clause"
] | 1 | 2018-04-27T07:53:16.000Z | 2018-04-27T07:53:16.000Z | // This file is part of libnosync library. See LICENSE file for license details.
#include <algorithm>
#include <chrono>
#include <fcntl.h>
#include <functional>
#include <gtest/gtest.h>
#include <memory>
#include <nosync/ppoll-based-event-loop.h>
#include <nosync/type-utils.h>
#include <system_error>
#include <vector>
... | 25.600939 | 91 | 0.615074 |
76821c60e0b5e0d0b79e905cf309fa43dd9dda05 | 2,072 | cpp | C++ | src/core/CL/CLHelpers.cpp | longbowlee/ARMComputeLibrary | c772c0b2ecfe76cac5867915fdc296d14bb829a2 | [
"MIT"
] | 3 | 2017-04-02T08:41:24.000Z | 2017-10-20T07:56:01.000Z | src/core/CL/CLHelpers.cpp | loliod/ComputeLibrary | 871448ee8eff790c4ccc3250008dd71170cc78b2 | [
"MIT"
] | null | null | null | src/core/CL/CLHelpers.cpp | loliod/ComputeLibrary | 871448ee8eff790c4ccc3250008dd71170cc78b2 | [
"MIT"
] | 1 | 2017-12-21T04:13:45.000Z | 2017-12-21T04:13:45.000Z | /*
* Copyright (c) 2016, 2017 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* r... | 33.967213 | 81 | 0.662645 |
76860c006f96ab42e021eb975a9e686c1500b924 | 719 | cpp | C++ | src/pass/analyze-usage/conditional.cpp | arrow-lang/arrow-legacy | 5857697b88201c9a6abdd63c1b132741f3451b01 | [
"MIT"
] | 1 | 2017-05-02T14:13:51.000Z | 2017-05-02T14:13:51.000Z | src/pass/analyze-usage/conditional.cpp | arrow-lang/arrow-legacy | 5857697b88201c9a6abdd63c1b132741f3451b01 | [
"MIT"
] | null | null | null | src/pass/analyze-usage/conditional.cpp | arrow-lang/arrow-legacy | 5857697b88201c9a6abdd63c1b132741f3451b01 | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2015 Ryan Leckey, All Rights Reserved.
// Distributed under the MIT License
// See accompanying file LICENSE
#include <algorithm>
#include "arrow/pass/analyze-usage.hpp"
#include "arrow/match.hpp"
namespace arrow {
namespace pass {
void AnalyzeUsage::visit_conditional(ast::Conditional& x) {
... | 23.193548 | 68 | 0.713491 |
768629ebd1783b922f786e0b5e0b29393a08a2a2 | 639 | cpp | C++ | src/E12.cpp | microentropie/IEC60063 | 6b3900d9ed4554209cbb88c044d3d81e17ba47a6 | [
"MIT"
] | null | null | null | src/E12.cpp | microentropie/IEC60063 | 6b3900d9ed4554209cbb88c044d3d81e17ba47a6 | [
"MIT"
] | null | null | null | src/E12.cpp | microentropie/IEC60063 | 6b3900d9ed4554209cbb88c044d3d81e17ba47a6 | [
"MIT"
] | null | null | null | /*
Author: Stefano Di Paolo
License: MIT, https://en.wikipedia.org/wiki/MIT_License
Date: 2017-12-31
Library: IEC60063 series resistors.
Sources repository: https://github.com/microentropie/
*/
#include "E-series.h"
const char E12Tolerance[] = "10%";
#define E12size 12
static const unsigned short ... | 22.821429 | 117 | 0.682316 |
768c4c836c3bebef4ea2a3a02cacaf5127d75b51 | 1,503 | cpp | C++ | HotDays.cpp | Drew138/competitive | 6efdbfed97934ba5a894e2b71d76340d4c769e45 | [
"MIT"
] | null | null | null | HotDays.cpp | Drew138/competitive | 6efdbfed97934ba5a894e2b71d76340d4c769e45 | [
"MIT"
] | null | null | null | HotDays.cpp | Drew138/competitive | 6efdbfed97934ba5a894e2b71d76340d4c769e45 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define D(x) cout << #x << " = " << x << endl;
#define ios ios_base::sync_with_stdio(0), cin.tie(0);
#define forn(i, n) for (int i = 0; i < (int)n; ++i)
#define all(v) v.begin(), v.end()
#define formap(map) for (const auto &[key, value] : map)
#define ms(ar, val) memset(ar, val, sizeof ar)
typ... | 30.673469 | 206 | 0.496341 |
768cf7a415fa7f7e2d366091974abdea7db9f3dd | 1,700 | cpp | C++ | windows/pw6e.official/CPlusPlus/Chapter10/WheresMyElement/WheresMyElement/MainPage.xaml.cpp | nnaabbcc/exercise | 255fd32b39473b3d0e7702d4b1a8a97bed2a68f8 | [
"MIT"
] | 1 | 2016-11-23T08:18:08.000Z | 2016-11-23T08:18:08.000Z | windows/pw6e.official/CPlusPlus/Chapter10/WheresMyElement/WheresMyElement/MainPage.xaml.cpp | nnaabbcc/exercise | 255fd32b39473b3d0e7702d4b1a8a97bed2a68f8 | [
"MIT"
] | null | null | null | windows/pw6e.official/CPlusPlus/Chapter10/WheresMyElement/WheresMyElement/MainPage.xaml.cpp | nnaabbcc/exercise | 255fd32b39473b3d0e7702d4b1a8a97bed2a68f8 | [
"MIT"
] | 1 | 2016-11-23T08:17:34.000Z | 2016-11-23T08:17:34.000Z | //
// MainPage.xaml.cpp
// Implementation of the MainPage class.
//
#include "pch.h"
#include "MainPage.xaml.h"
using namespace WheresMyElement;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using name... | 31.481481 | 94 | 0.678235 |
768d6f873a3541c480be1ebe205126a99cba81d2 | 2,035 | cpp | C++ | peaks/find_peakCpp.cpp | rguliev/auto-baseline | 96ad0121991c1e95736a59974c7de8d3b83a98dd | [
"MIT"
] | 2 | 2019-11-06T02:52:31.000Z | 2021-03-29T14:15:07.000Z | peaks/find_peakCpp.cpp | rguliev/auto-baseline | 96ad0121991c1e95736a59974c7de8d3b83a98dd | [
"MIT"
] | null | null | null | peaks/find_peakCpp.cpp | rguliev/auto-baseline | 96ad0121991c1e95736a59974c7de8d3b83a98dd | [
"MIT"
] | 1 | 2021-04-11T09:59:40.000Z | 2021-04-11T09:59:40.000Z | #include <Rcpp.h>
using namespace Rcpp;
//This function returns the sign of a given real valued double.
// [[Rcpp::export]]
double signDblCPP (double x){
double ret = 0;
if(x > 0){ret = 1;}
if(x < 0){ret = -1;}
return(ret);
}
//Tested to be 6x faster(37 us vs 207 us). This operation is done from 2... | 35.701754 | 99 | 0.589681 |
768e2018aa71800fb684786b766ce0df824b538e | 604 | cpp | C++ | allMatuCommit/实现Point类(C++)_qwe123qwe_20210920104346.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | allMatuCommit/实现Point类(C++)_qwe123qwe_20210920104346.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | allMatuCommit/实现Point类(C++)_qwe123qwe_20210920104346.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<algorithm>
#include<cstring>
#include<string.h>
#include<math.h>
#include<cmath>
using namespace std;
typedef long long int ll;
class Point{
private :
double x,y;
public:
Point(double a,double b)
{
x=a;y=b;
}
double Distance( Point const ... | 15.1 | 48 | 0.56457 |
7692b4bc129f3cee9fead0e4559e38bac59cce54 | 6,004 | cpp | C++ | src/LinearColorCalibrator.cpp | alarrosa14/Sendero | fb81c43b3f0ef3b8ef8fbbce6fdd2d413b4c9542 | [
"MIT"
] | 1 | 2016-07-06T23:22:16.000Z | 2016-07-06T23:22:16.000Z | src/LinearColorCalibrator.cpp | alarrosa14/Sendero | fb81c43b3f0ef3b8ef8fbbce6fdd2d413b4c9542 | [
"MIT"
] | null | null | null | src/LinearColorCalibrator.cpp | alarrosa14/Sendero | fb81c43b3f0ef3b8ef8fbbce6fdd2d413b4c9542 | [
"MIT"
] | null | null | null | //
// LinearColorCalibrator.cpp
// LEDColorCalibrator
//
// Created by Tomas Laurenzo on 4/20/13.
//
//
#include "LinearColorCalibrator.h"
LinearColorCalibrator::LinearColorCalibrator(){
gammaCorrecting = false;
isCalculated = true;
}
void LinearColorCalibrator::useGamma() {
gammaCorrecting = tr... | 21.519713 | 124 | 0.463025 |
7693b2d81fb6d9bef245f2341f00fb948e664470 | 5,756 | cpp | C++ | Source/PraticeActor/CBattlePC.cpp | CitrusNyamNyam/Unreal-Portfolio | f5a63fbe796e0531604470767207831b5c523b54 | [
"MIT"
] | 1 | 2018-11-25T10:40:10.000Z | 2018-11-25T10:40:10.000Z | Source/PraticeActor/CBattlePC.cpp | CitrusNyamNyam/Unreal-Portfolio | f5a63fbe796e0531604470767207831b5c523b54 | [
"MIT"
] | null | null | null | Source/PraticeActor/CBattlePC.cpp | CitrusNyamNyam/Unreal-Portfolio | f5a63fbe796e0531604470767207831b5c523b54 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "CBattlePC.h"
#include "CBattleGM.h"
#include "CPlayer.h"
#include "CAirplane_C130.h"
#include "CFlyingViewer.h"
#include "CResult_Widget.h"
#include "CClientMain_Widget.h"
#include "CWorldMap_Widget.h"
#include "Animation/WidgetAn... | 23.590164 | 142 | 0.761119 |
7696137c106984a49fa532b5274a6d9255224b6d | 112 | hpp | C++ | libraries/chain/include/DA-DAPPS/chain/protocol.hpp | mycloudmyworld2019/DA-DAPPS | 534ace858fb5d852d69a578151929e64e2932f8b | [
"MIT"
] | null | null | null | libraries/chain/include/DA-DAPPS/chain/protocol.hpp | mycloudmyworld2019/DA-DAPPS | 534ace858fb5d852d69a578151929e64e2932f8b | [
"MIT"
] | null | null | null | libraries/chain/include/DA-DAPPS/chain/protocol.hpp | mycloudmyworld2019/DA-DAPPS | 534ace858fb5d852d69a578151929e64e2932f8b | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in DA-DAPPS/LICENSE
*/
#pragma once
#include <DA-DAPPSio/chain/block.hpp>
| 16 | 42 | 0.669643 |
76989c61c94af3b6113a9aa7631b96bfc0944f0c | 5,677 | cpp | C++ | computer-vision-2/assignments/assignment_3/src/Frame3D/Frame3D.cpp | askliar/computer-vision | 988f3b6aae1a45515cf7b133f2b89af4118f0c3a | [
"MIT"
] | null | null | null | computer-vision-2/assignments/assignment_3/src/Frame3D/Frame3D.cpp | askliar/computer-vision | 988f3b6aae1a45515cf7b133f2b89af4118f0c3a | [
"MIT"
] | null | null | null | computer-vision-2/assignments/assignment_3/src/Frame3D/Frame3D.cpp | askliar/computer-vision | 988f3b6aae1a45515cf7b133f2b89af4118f0c3a | [
"MIT"
] | 4 | 2019-02-07T15:59:54.000Z | 2021-05-01T18:58:07.000Z | /*
* Frame3D.cpp
*
* Created on: 15 Nov 2015
* Author: Morris Franken @ 3DUniversum
*/
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
#include <stdexcept>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgcodecs/imgcod... | 31.021858 | 133 | 0.70953 |
769951a4c9b60f20bdb25e2bf0f6607c12640307 | 877 | cpp | C++ | v142/main.cpp | glensand/visual-studio-compatibility | 7a7c7953bd4f7b8cf16485e66a90c966c8b1f829 | [
"MIT"
] | 3 | 2020-07-11T07:12:45.000Z | 2020-07-13T03:00:40.000Z | v142/main.cpp | glensand/visual-studio-compatibility | 7a7c7953bd4f7b8cf16485e66a90c966c8b1f829 | [
"MIT"
] | null | null | null | v142/main.cpp | glensand/visual-studio-compatibility | 7a7c7953bd4f7b8cf16485e66a90c966c8b1f829 | [
"MIT"
] | 1 | 2020-07-11T07:10:33.000Z | 2020-07-11T07:10:33.000Z | #include "v110/export_class_110.h"
#include "v141/export_class_141.h"
#include "v142/derived_class_142.h"
#include "v110_static/class_110.h"
int main()
{
// stack object construction - destruction works well
export_class_110 ec;
// we cannot deallocate memory were allocated in another module
// it seems like wron... | 28.290323 | 82 | 0.769669 |
769a742c357a56feffbcb12987512783b6dc1fd0 | 14,624 | cpp | C++ | src/mods/vr/D3D11Component.cpp | fengjixuchui/REFramework | 131b25ef58064b1c36cdd15072c30f5fbd9a7ad8 | [
"MIT"
] | null | null | null | src/mods/vr/D3D11Component.cpp | fengjixuchui/REFramework | 131b25ef58064b1c36cdd15072c30f5fbd9a7ad8 | [
"MIT"
] | null | null | null | src/mods/vr/D3D11Component.cpp | fengjixuchui/REFramework | 131b25ef58064b1c36cdd15072c30f5fbd9a7ad8 | [
"MIT"
] | null | null | null | #include <imgui.h>
#include <imgui_internal.h>
#include <openvr.h>
#include "../VR.hpp"
#include "D3D11Component.hpp"
#ifdef VERBOSE_D3D11
#define LOG_VERBOSE(...) spdlog::info(__VA_ARGS__)
#else
#define LOG_VERBOSE
#endif
namespace vrmod {
vr::EVRCompositorError D3D11Component::on_frame(VR* vr) {
if (m_left_ey... | 33.388128 | 136 | 0.63642 |
769ab67ecf0ee03b324e9690cea3ba77cadf5b8a | 912 | cpp | C++ | graph-source-code/463-D/8599017.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/463-D/8599017.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/463-D/8599017.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: MS C++
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <cassert>
#include <cstdlib>
#include <cmath>
#include <algorithm>
using namespace std;
typedef long long ll;
type... | 15.724138 | 57 | 0.541667 |
769bdd7f174ebb9828896a352014acc70c9af3c4 | 14,894 | cpp | C++ | app/uart/main.cpp | wrmlab/wrmos | 37067b659aa25e2d85f040ab0d2be85b6f4de485 | [
"MIT"
] | 16 | 2018-06-05T15:23:08.000Z | 2022-01-06T13:41:44.000Z | app/uart/main.cpp | sergey-worm/wrmos | 37067b659aa25e2d85f040ab0d2be85b6f4de485 | [
"MIT"
] | null | null | null | app/uart/main.cpp | sergey-worm/wrmos | 37067b659aa25e2d85f040ab0d2be85b6f4de485 | [
"MIT"
] | 3 | 2018-03-15T16:40:59.000Z | 2021-04-01T22:55:15.000Z | //##################################################################################################
//
// uart - userspace UART driver.
//
//##################################################################################################
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "sys_uti... | 24.864775 | 100 | 0.606889 |
769cf243a888d3bcc6809d48babe1b071ff489e7 | 319 | cpp | C++ | WumbukDraw/staticimage.cpp | YangPeihao1203/WumbukDraw | e0854e62cc050c99deda04a849d46824f458cbbc | [
"MIT"
] | null | null | null | WumbukDraw/staticimage.cpp | YangPeihao1203/WumbukDraw | e0854e62cc050c99deda04a849d46824f458cbbc | [
"MIT"
] | null | null | null | WumbukDraw/staticimage.cpp | YangPeihao1203/WumbukDraw | e0854e62cc050c99deda04a849d46824f458cbbc | [
"MIT"
] | null | null | null | #include "staticimage.h"
StaticImage::StaticImage()
{
}
void StaticImage::inSertPicture(QString filePath,QGraphicsScene *parent)
{
QPixmap pixmap =QPixmap::fromImage(QImage(filePath));
this->setPixmap(pixmap);
setFlag(QGraphicsItem::ItemIsMovable);
}
| 19.9375 | 73 | 0.623824 |
371dbadc8e93569fead136aa3ca52d43f1fe2f8f | 1,522 | cpp | C++ | pepnovo/src/QuickClustering.cpp | compomics/jwrapper-pepnovo | 1bd21a4910d7515dfab7747711917176a6b5ce99 | [
"Apache-2.0"
] | null | null | null | pepnovo/src/QuickClustering.cpp | compomics/jwrapper-pepnovo | 1bd21a4910d7515dfab7747711917176a6b5ce99 | [
"Apache-2.0"
] | null | null | null | pepnovo/src/QuickClustering.cpp | compomics/jwrapper-pepnovo | 1bd21a4910d7515dfab7747711917176a6b5ce99 | [
"Apache-2.0"
] | null | null | null | #include "QuickClustering.h"
#include "PMCSQS.h"
#include "auxfun.h"
// the sim matrix stores the similarity distances computed between clusters
int num_sim_matrix_spectra = 0;
unsigned char * sim_matrix = NULL;
unsigned char * max_sim_addr = NULL;
void print_byte(unsigned char byte)
{
int i;
... | 20.293333 | 76 | 0.65046 |
372164b0b94deb130806f24ae1c6cf3f7bc02514 | 2,280 | cpp | C++ | src/stmt.cpp | magicmoremagic/bengine-sqlite | 4e777cbbca9e64be5c49a24778847bf8e23fd99d | [
"MIT"
] | null | null | null | src/stmt.cpp | magicmoremagic/bengine-sqlite | 4e777cbbca9e64be5c49a24778847bf8e23fd99d | [
"MIT"
] | null | null | null | src/stmt.cpp | magicmoremagic/bengine-sqlite | 4e777cbbca9e64be5c49a24778847bf8e23fd99d | [
"MIT"
] | null | null | null | #include "pch.hpp"
#include "stmt.hpp"
#include "db.hpp"
#include "result_code.hpp"
#include "sqlite.hpp"
#include <cassert>
#include <limits>
namespace be::sqlite {
///////////////////////////////////////////////////////////////////////////////
/// \brief Compiles the provided SQL query against the provided databas... | 37.377049 | 115 | 0.59386 |
3721ef1e6c9619445cf4d06c28898e68e94f01de | 7,611 | cpp | C++ | library/Custom/fastIO.cpp | sarafanshul/KACTL | fa14ed34e93cd32d8625ed3729ba2eee55838340 | [
"MIT"
] | 4 | 2021-01-05T09:25:59.000Z | 2021-09-27T03:57:28.000Z | library/Custom/fastIO.cpp | sarafanshul/KACTL | fa14ed34e93cd32d8625ed3729ba2eee55838340 | [
"MIT"
] | null | null | null | library/Custom/fastIO.cpp | sarafanshul/KACTL | fa14ed34e93cd32d8625ed3729ba2eee55838340 | [
"MIT"
] | null | null | null | #ifndef CUST_DEBUG
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("unroll-loops")
#endif
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ALL(x) x.begin(),x.end()
#define PB ... | 22.189504 | 117 | 0.581658 |
3722de4415fda998571a8d968689831478fc0bf1 | 43 | hpp | C++ | src/boost_mpl_aux__type_wrapper.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_aux__type_wrapper.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_aux__type_wrapper.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/aux_/type_wrapper.hpp>
| 21.5 | 42 | 0.790698 |
372398f052543364536b3337a1043e781c804f22 | 7,932 | cpp | C++ | src/Modules/UI/Macro Elements/Options_Graphics.cpp | Yattabyte/reVision | 014cb450d1c30b8f64abbacf00425b4f814b05a0 | [
"MIT"
] | 5 | 2018-10-12T17:40:17.000Z | 2020-11-20T10:49:34.000Z | src/Modules/UI/Macro Elements/Options_Graphics.cpp | Yattabyte/reVision | 014cb450d1c30b8f64abbacf00425b4f814b05a0 | [
"MIT"
] | 71 | 2018-07-19T01:59:38.000Z | 2020-03-29T18:03:13.000Z | src/Modules/UI/Macro Elements/Options_Graphics.cpp | Yattabyte/reVision | 014cb450d1c30b8f64abbacf00425b4f814b05a0 | [
"MIT"
] | 1 | 2022-03-24T13:21:25.000Z | 2022-03-24T13:21:25.000Z | #include "Modules/UI/Macro Elements/Options_Graphics.h"
#include "Modules/UI/Basic Elements/Slider.h"
#include "Modules/UI/Basic Elements/SideList.h"
#include "Modules/UI/Basic Elements/Toggle.h"
#include "Engine.h"
Options_Graphics::Options_Graphics(Engine& engine) :
Options_Pane(engine)
{
// Title
m_title->setTe... | 50.522293 | 271 | 0.757186 |
3726cc4dcad99bf88a8ef4a4fd269dd02625331c | 3,951 | cc | C++ | verilog/analysis/checkers/disable_statement_rule_test.cc | imphil/verible | cc9ec78b29e2e0190f6244a7d8981a2a90d77d79 | [
"Apache-2.0"
] | 487 | 2019-11-07T02:16:12.000Z | 2021-07-08T14:44:12.000Z | verilog/analysis/checkers/disable_statement_rule_test.cc | hzeller/verible | c926ededf7953febb5f577b081474987d0f0209d | [
"Apache-2.0"
] | 704 | 2019-11-12T18:00:12.000Z | 2021-07-08T08:21:31.000Z | verilog/analysis/checkers/disable_statement_rule_test.cc | hzeller/verible | c926ededf7953febb5f577b081474987d0f0209d | [
"Apache-2.0"
] | 96 | 2019-11-12T06:21:03.000Z | 2021-07-06T23:20:39.000Z | // Copyright 2017-2020 The Verible Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | 31.608 | 79 | 0.628702 |
37309bee6eb272dc1b99f9659ca749ea8ee4cf80 | 9,450 | cpp | C++ | utils.cpp | Litvinovis/webserver | 1d7156dcfb7bc0c4abeff650d2cf4114bbd8129e | [
"Apache-2.0"
] | 2 | 2021-04-22T11:07:04.000Z | 2022-01-04T13:57:57.000Z | utils.cpp | Litvinovis/webserver | 1d7156dcfb7bc0c4abeff650d2cf4114bbd8129e | [
"Apache-2.0"
] | 18 | 2021-05-10T15:33:00.000Z | 2021-05-30T16:32:16.000Z | utils.cpp | Litvinovis/webserver | 1d7156dcfb7bc0c4abeff650d2cf4114bbd8129e | [
"Apache-2.0"
] | 2 | 2021-04-15T13:06:08.000Z | 2021-05-26T18:08:41.000Z | #include <iostream>
#include <unistd.h>
#include <sys/stat.h>
#include "utils.hpp"
#include "Setting.hpp"
#include <cstring> // for linux
namespace utils {
std::vector<char> read_file(std::string filename) {
std::vector<char> buf;
int fd;
char* line;
... | 30.882353 | 108 | 0.480635 |
37332b84069848d85aeb8f925be6fd3454cd7939 | 604 | hpp | C++ | libs/Texturize.Codecs.EXR/include/Codecs/exr.hpp | Aschratt/Texturize | bba688d1afd60363f03e02d28e642a63845591d6 | [
"MIT"
] | 11 | 2019-05-17T12:23:12.000Z | 2020-11-12T14:03:23.000Z | libs/Texturize.Codecs.EXR/include/Codecs/exr.hpp | crud89/Texturize | bba688d1afd60363f03e02d28e642a63845591d6 | [
"MIT"
] | 2 | 2019-04-01T08:37:36.000Z | 2019-04-01T08:49:15.000Z | libs/Texturize.Codecs.EXR/include/Codecs/exr.hpp | crud89/Texturize | bba688d1afd60363f03e02d28e642a63845591d6 | [
"MIT"
] | 1 | 2019-06-25T01:04:35.000Z | 2019-06-25T01:04:35.000Z | #pragma once
#include <texturize.hpp>
#include <analysis.hpp>
#include <codecs.hpp>
#include <string>
#include <iostream>
namespace Texturize {
/// \brief
class TEXTURIZE_API EXRCodec :
public ISampleCodec
{
public:
virtual void load(const std::string& fileName, Sample& sample) const override;
virtual vo... | 27.454545 | 111 | 0.738411 |
3733399ac2e2ccfedf640afe18d3d4056fa00c11 | 1,757 | cpp | C++ | queue/queue_LL.cpp | vivekrajx/dsa | 23351634652aaabfa40f8679ccff9f6fa9f844e9 | [
"MIT"
] | null | null | null | queue/queue_LL.cpp | vivekrajx/dsa | 23351634652aaabfa40f8679ccff9f6fa9f844e9 | [
"MIT"
] | null | null | null | queue/queue_LL.cpp | vivekrajx/dsa | 23351634652aaabfa40f8679ccff9f6fa9f844e9 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
struct Node {
int data;
Node* link;
};
//declated glboally
struct Node * front = NULL;
struct Node * rear = NULL;
//Enqueue from front & Dequeue from rear both take O(1) time here.
//Enqueue from rear
void Enqueue(int x)
{
Node* temp = new Node();
temp->data... | 19.307692 | 78 | 0.575982 |
3735173760e30d35d79fd6810a10f9c753be25fc | 34,117 | cpp | C++ | closed/FuriosaAI/code/resnet50/resnet50.cpp | ctuning/inference_results_v1.1 | d9176eca28fcf6d7a05ccb97994362a76a1eb5ab | [
"Apache-2.0"
] | 12 | 2021-09-23T08:05:57.000Z | 2022-03-21T03:52:11.000Z | closed/FuriosaAI/code/resnet50/resnet50.cpp | ctuning/inference_results_v1.1 | d9176eca28fcf6d7a05ccb97994362a76a1eb5ab | [
"Apache-2.0"
] | 11 | 2021-09-23T20:34:06.000Z | 2022-01-22T07:58:02.000Z | closed/FuriosaAI/code/resnet50/resnet50.cpp | ctuning/inference_results_v1.1 | d9176eca28fcf6d7a05ccb97994362a76a1eb5ab | [
"Apache-2.0"
] | 16 | 2021-09-23T20:26:38.000Z | 2022-03-09T12:59:56.000Z | #include <cassert>
#include <sstream>
#include <condition_variable>
#include <deque>
#include <iostream>
#include <map>
#include <mutex>
#include <thread>
#include <vector>
#include <fstream>
#include <streambuf>
#include <atomic>
#include <string.h>
#include "loadgen.h"
#include "query_sample_library.h"
#include "sy... | 35.354404 | 154 | 0.619427 |
3735ac75271b959791cd33dbbaa242366ebba1cd | 1,004 | cpp | C++ | Paperworks/src/Paperworks/Graphics/Renderer.cpp | codenobacon4u/paperworks | 0e96cd2fb6070a2387ddd36aaa327b04733234fa | [
"MIT"
] | 1 | 2019-08-15T18:58:54.000Z | 2019-08-15T18:58:54.000Z | Paperworks/src/Paperworks/Graphics/Renderer.cpp | codenobacon4u/paperworks | 0e96cd2fb6070a2387ddd36aaa327b04733234fa | [
"MIT"
] | null | null | null | Paperworks/src/Paperworks/Graphics/Renderer.cpp | codenobacon4u/paperworks | 0e96cd2fb6070a2387ddd36aaa327b04733234fa | [
"MIT"
] | null | null | null | #include "pwpch.h"
#include "Renderer.h"
#include "Renderer2D.h"
namespace Paperworks {
Unique<Renderer::SceneData> Renderer::s_SceneData = CreateUnique<Renderer::SceneData>();
void Renderer::Init()
{
RenderCmd::Init();
Renderer2D::Init();
}
void Renderer::Shutdown()
{
Renderer2D::Shutdown();
}
void... | 20.08 | 120 | 0.703187 |
373873ee580b26c3b2c1fe31b033556891245221 | 5,343 | cpp | C++ | RCSnail/rcsCommandLib.cpp | rcsnail/btcar | b803d4a59252689c9ed3b4af9d39679b6c4200b0 | [
"MIT"
] | null | null | null | RCSnail/rcsCommandLib.cpp | rcsnail/btcar | b803d4a59252689c9ed3b4af9d39679b6c4200b0 | [
"MIT"
] | null | null | null | RCSnail/rcsCommandLib.cpp | rcsnail/btcar | b803d4a59252689c9ed3b4af9d39679b6c4200b0 | [
"MIT"
] | null | null | null | #include "rcsCommandLib.h"
#include <avr/wdt.h>
int btEnableValue = 0; // bt chip enable voltage after restart
//SoftwareSerial mySerial(rxPin, txPin); // RX, TX
// wdt_enable(WDTO_15MS);
#define soft_reset() \
do \
{ \
wdt_enable(WDTO_15MS);... | 23.959641 | 130 | 0.612203 |
37394af6b5687c87eb0fa892766db5a1918223c8 | 1,212 | cpp | C++ | main/substring-subsequence-problem/substring-subsequence-problem.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/substring-subsequence-problem/substring-subsequence-problem.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/substring-subsequence-problem/substring-subsequence-problem.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
namespace {
using It = std::string::const_iterator;
// Helper for common_length(const std::string&, const std::string&).
inline int common_length(const std::string& s,
It t_first, const It& t_la... | 24.734694 | 77 | 0.5033 |
373ebbffb8f88ef7396900b12828429e09e31da4 | 13,748 | cc | C++ | chrome/browser/chromeos/platform_keys/platform_keys_service_browsertest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/platform_keys/platform_keys_service_browsertest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/platform_keys/platform_keys_service_browsertest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 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 <memory>
#include <type_traits>
#include <utility>
#include "base/bind.h"
#include "base/callback.h"
#include "base/command_line.h"
#include "ba... | 38.188889 | 80 | 0.752109 |
3741ebbac3567d9bd1d0fb3eee75a5c2a9b3a458 | 2,817 | cpp | C++ | src/input/SDLJoystickInput.cpp | benlamonica/tetra-table | 521082f2a848d04608ef6368004e90e780ef62ea | [
"Apache-2.0"
] | null | null | null | src/input/SDLJoystickInput.cpp | benlamonica/tetra-table | 521082f2a848d04608ef6368004e90e780ef62ea | [
"Apache-2.0"
] | null | null | null | src/input/SDLJoystickInput.cpp | benlamonica/tetra-table | 521082f2a848d04608ef6368004e90e780ef62ea | [
"Apache-2.0"
] | null | null | null | //
// SDLJoystickInput.cpp
// TetraTable
//
// Created by Ben La Monica on 3/23/15.
// Copyright (c) 2015 Benjamin Alan La Monica. All rights reserved.
//
#include "SDLJoystickInput.hpp"
#include "../util/SDLUtil.hpp"
#include <syslog.h>
#include <SDL2/SDL.h>
#include "../util/TimeUtil.hpp"
SDLJoystickInput::SDLJ... | 36.584416 | 145 | 0.520412 |
37425be6f8b39cf8ee3f838d459363812d7e47df | 259 | cpp | C++ | ASCIIGen/src/bmp.cpp | KrystofSuk/Sandbox-CPP | 956747088fa502d3acf32aad1428eec0bdbcfd34 | [
"MIT"
] | null | null | null | ASCIIGen/src/bmp.cpp | KrystofSuk/Sandbox-CPP | 956747088fa502d3acf32aad1428eec0bdbcfd34 | [
"MIT"
] | null | null | null | ASCIIGen/src/bmp.cpp | KrystofSuk/Sandbox-CPP | 956747088fa502d3acf32aad1428eec0bdbcfd34 | [
"MIT"
] | null | null | null | #include "bmp.h"
BMP::BMP(int _x, int _y, int _colorNumber)
{
x = _x;
y = _y;
colorNumber = _colorNumber;
}
int BMP::GetColorNumber(){
return colorNumber;
}
int BMP::GetX(){
return x;
}
int BMP::GetY(){
return y;
}
BMP::~BMP()
{
} | 10.791667 | 42 | 0.571429 |
374816a086693c8e9be578dd2257e444b6fe5ab8 | 506 | cpp | C++ | Snipets/01_Decisiones/IfeIfAnidado.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | Snipets/01_Decisiones/IfeIfAnidado.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | Snipets/01_Decisiones/IfeIfAnidado.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | // IfeIfAnidado.cpp
// Programa para saber si el numero introducido es par o impar utilizando un bucle if
#include <iostream>
#include <stdlib.h>
int main()
{
int n;
std::cout << "Introduce un numero: ";
std::cin >> n;
if(n%2 == 0) // Calculamos el residuo del numero al dividirlo entre 2. Si el residuo... | 22 | 114 | 0.65415 |
374e0ac796062606a9bbe986e290ee0a8b828c29 | 7,883 | hpp | C++ | Library/include/mavlink/v2.0/matrixpilot/mavlink_msg_serial_udb_extra_f2_a.hpp | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 10 | 2021-03-15T03:58:06.000Z | 2021-12-30T15:33:38.000Z | devel/include/mavlink/v2.0/matrixpilot/mavlink_msg_serial_udb_extra_f2_a.hpp | arijitnoobstar/UAVProjectileCatcher | 3c1bed80df167192cb4b971b58c891187628142e | [
"Apache-2.0"
] | 1 | 2021-09-09T15:29:31.000Z | 2021-09-09T15:29:31.000Z | Library/include/mavlink/v2.0/matrixpilot/mavlink_msg_serial_udb_extra_f2_a.hpp | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 4 | 2021-03-06T09:35:58.000Z | 2021-05-24T14:34:11.000Z | // MESSAGE SERIAL_UDB_EXTRA_F2_A support class
#pragma once
namespace mavlink {
namespace matrixpilot {
namespace msg {
/**
* @brief SERIAL_UDB_EXTRA_F2_A message
*
* Backwards compatible MAVLink version of SERIAL_UDB_EXTRA - F2: Format Part A
*/
struct SERIAL_UDB_EXTRA_F2_A : mavlink::Message {
static const... | 47.775758 | 83 | 0.523024 |
374ebc05844425a2785be3d7ac1b445de32c8207 | 12,027 | cpp | C++ | src/mesh/mechanical/plane/fem_submesh.cpp | annierhea/neon | 4eb51a06bda6bbf32c54fff8f39c9e02d429cfd1 | [
"MIT"
] | null | null | null | src/mesh/mechanical/plane/fem_submesh.cpp | annierhea/neon | 4eb51a06bda6bbf32c54fff8f39c9e02d429cfd1 | [
"MIT"
] | null | null | null | src/mesh/mechanical/plane/fem_submesh.cpp | annierhea/neon | 4eb51a06bda6bbf32c54fff8f39c9e02d429cfd1 | [
"MIT"
] | null | null | null |
#include "fem_submesh.hpp"
#include "exceptions.hpp"
#include "constitutive/constitutive_model_factory.hpp"
#include "geometry/projection.hpp"
#include "interpolations/interpolation_factory.hpp"
#include "material/material_property.hpp"
#include "mesh/material_coordinates.hpp"
#include "mesh/dof_allocator.hpp"
#incl... | 36.445455 | 105 | 0.579529 |
3753e8029f41cd6f3f89d6a217e100fa572871af | 20,003 | cpp | C++ | src/zutil/conn.cpp | mgwoo/OpenDB | 8bf8df500dc525f2abfa16a8f5ac2cb67c09b6f4 | [
"BSD-3-Clause"
] | 1 | 2021-03-04T02:35:47.000Z | 2021-03-04T02:35:47.000Z | src/zutil/conn.cpp | mgwoo/OpenDB | 8bf8df500dc525f2abfa16a8f5ac2cb67c09b6f4 | [
"BSD-3-Clause"
] | null | null | null | src/zutil/conn.cpp | mgwoo/OpenDB | 8bf8df500dc525f2abfa16a8f5ac2cb67c09b6f4 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2019, Nefelus 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:
//... | 22.399776 | 120 | 0.653602 |
375eaa78b581f84c658ae81f2e900ae9266ba765 | 212 | hpp | C++ | archive/stan/src/stan/lang/ast/node/omni_idx_def.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | archive/stan/src/stan/lang/ast/node/omni_idx_def.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | archive/stan/src/stan/lang/ast/node/omni_idx_def.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_LANG_AST_NODE_OMNI_IDX_DEF_HPP
#define STAN_LANG_AST_NODE_OMNI_IDX_DEF_HPP
#include <stan/lang/ast.hpp>
namespace stan {
namespace lang {
omni_idx::omni_idx() { }
}
}
#endif
| 15.142857 | 44 | 0.707547 |
37614210247916dca3bae49177d706bb01b9dda6 | 886 | cc | C++ | test/unit/logging_test.cc | onedata/helpers | bf14082d5a8de384c1f126b2fa522c3b360ad500 | [
"MIT"
] | 1 | 2018-06-04T08:08:11.000Z | 2018-06-04T08:08:11.000Z | test/unit/logging_test.cc | onedata/helpers | bf14082d5a8de384c1f126b2fa522c3b360ad500 | [
"MIT"
] | 1 | 2019-03-26T11:15:13.000Z | 2019-03-26T11:15:13.000Z | test/unit/logging_test.cc | onedata/helpers | bf14082d5a8de384c1f126b2fa522c3b360ad500 | [
"MIT"
] | 1 | 2018-02-05T09:19:45.000Z | 2018-02-05T09:19:45.000Z | /**
* @file logging_test.cc
* @author Bartek Kryza
* @copyright (C) 2018 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in
* 'LICENSE.txt'
*/
#include "helpers/logging.h"
#include "testUtils.h"
#include "boost/algorithm/string.hpp"
#include <gtest/gtest.h>
#include <sstream... | 20.604651 | 70 | 0.691874 |
3764cc4b84406d41e5a8ca372a2e8f204b4dfab6 | 1,144 | cpp | C++ | src/input/InputHandler.cpp | Estebanan/glSolarSystem | fd57ca572a039d57f7944cc03bced96159918dfa | [
"MIT"
] | 3 | 2019-07-31T06:13:41.000Z | 2021-04-04T15:32:40.000Z | src/input/InputHandler.cpp | MarcelIwanicki/glSolarSystem | fd57ca572a039d57f7944cc03bced96159918dfa | [
"MIT"
] | null | null | null | src/input/InputHandler.cpp | MarcelIwanicki/glSolarSystem | fd57ca572a039d57f7944cc03bced96159918dfa | [
"MIT"
] | null | null | null | #include "InputHandler.h"
static constexpr unsigned int MAX_KEYS = 1024;
static constexpr unsigned int MAX_MOUSEBUTTONS = 32;
static bool keys[MAX_KEYS] = {false};
static bool mousebuttons[MAX_MOUSEBUTTONS] = {false};
static int mouse_x;
static int mouse_y;
bool InputHandler::isKeyPressed(unsigned int key) {
if... | 24.869565 | 97 | 0.714161 |
37654c97f91966541fcc3b4bc85c43fe9b7165f3 | 2,745 | cc | C++ | oak/server/module_invocation.cc | satnam6502/oak | 81a90bbbd357fdbb7e320fc91561edb1cd6db6a2 | [
"Apache-2.0"
] | 1 | 2021-03-28T17:26:37.000Z | 2021-03-28T17:26:37.000Z | oak/server/module_invocation.cc | satnam6502/oak | 81a90bbbd357fdbb7e320fc91561edb1cd6db6a2 | [
"Apache-2.0"
] | null | null | null | oak/server/module_invocation.cc | satnam6502/oak | 81a90bbbd357fdbb7e320fc91561edb1cd6db6a2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 The Project Oak Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 31.551724 | 96 | 0.708197 |
3766f6f9125d4549e0161570c5f138a8acec49e9 | 1,991 | cpp | C++ | fluffy/core/src/api/modules.cpp | Lo-X/fluffy | 24acf297ca81c611053fd4f55ea0988d65e84168 | [
"WTFPL"
] | 3 | 2015-12-27T14:42:53.000Z | 2018-04-18T07:28:05.000Z | fluffy/core/src/api/modules.cpp | lazybobcat/fluffy | 24acf297ca81c611053fd4f55ea0988d65e84168 | [
"WTFPL"
] | 3 | 2018-04-27T14:26:29.000Z | 2021-01-29T16:28:18.000Z | fluffy/core/src/api/modules.cpp | lazybobcat/fluffy | 24acf297ca81c611053fd4f55ea0988d65e84168 | [
"WTFPL"
] | null | null | null | #include <fluffy/api/context.hpp>
#include <fluffy/api/modules.hpp>
#include <fluffy/graphics/shader.hpp>
#include <fluffy/graphics/texture.hpp>
#include <fluffy/input/input.hpp>
#include <fluffy/resources/resource_library.hpp>
using namespace Fluffy;
void ModuleRegistry::registerModule(BaseModule* module)
{
Modu... | 24.580247 | 151 | 0.575088 |
376853218b7f464eea1549c8f70589ea89b5519c | 634 | cpp | C++ | test/testworker.cpp | 43437/EventLoop | 46a8f6d67201669e9f57a51df83263a5e5d5eddb | [
"MIT"
] | null | null | null | test/testworker.cpp | 43437/EventLoop | 46a8f6d67201669e9f57a51df83263a5e5d5eddb | [
"MIT"
] | null | null | null | test/testworker.cpp | 43437/EventLoop | 46a8f6d67201669e9f57a51df83263a5e5d5eddb | [
"MIT"
] | null | null | null | #include "testall.h"
#include "cworkplace.h"
#include <iostream>
#include "cworkerbuilder.h"
#include "cluaworker.h"
namespace KOT
{
void TestWorker()
{
std::cout << "===========TestWorker==========" << std::endl;
CLuaWorkerBuilder builder;
builder.SetWorkerPath("../script/test/");
// builder.AddEnvPa... | 26.416667 | 72 | 0.623028 |
3769d204cf627abd6b7049c46d29850bf6eade8b | 3,454 | cpp | C++ | src/Game.cpp | Mobiletainment/Connect-Four | 5627d103dc977af19447136fb1fb9f8a925d8cec | [
"MIT",
"Unlicense"
] | 6 | 2016-06-08T05:29:49.000Z | 2020-05-26T14:07:01.000Z | src/Game.cpp | Mobiletainment/Connect-Four | 5627d103dc977af19447136fb1fb9f8a925d8cec | [
"MIT",
"Unlicense"
] | null | null | null | src/Game.cpp | Mobiletainment/Connect-Four | 5627d103dc977af19447136fb1fb9f8a925d8cec | [
"MIT",
"Unlicense"
] | null | null | null | #include "precomp.h"
#include "Game.h"
using namespace std;
CL_GraphicContext *Game::gc;
string Game::winner;
Game::Game(CL_DisplayWindow &window)
{
gc = &window.get_gc();
board = &Board::GetInstance();
startMessage = new string("Press [1] to start first, or\n\n\nPress [2] to start with computer");
whichPlayer[0]... | 24.671429 | 103 | 0.690214 |
3769fa67cbbf10f4f4b80414b2bc8a4a39fb5aed | 6,302 | cpp | C++ | libace/filesystem/Path.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 5 | 2016-06-14T17:56:47.000Z | 2022-02-10T19:54:25.000Z | libace/filesystem/Path.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 42 | 2016-06-21T20:48:22.000Z | 2021-03-23T15:20:51.000Z | libace/filesystem/Path.cpp | xguerin/ace | ad6e1bc4cb4f10d6cf5b782f623ec0eef13e000b | [
"MIT"
] | 1 | 2016-10-02T02:58:49.000Z | 2016-10-02T02:58:49.000Z | /**
* Copyright (c) 2016 Xavier R. Guerin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | 19.571429 | 80 | 0.631387 |
376a7ab1b23739b7e20d45adf6fb0641e9c95b0f | 2,616 | hpp | C++ | Axis.CommonLibrary/domain/analyses/ReducedNumericalModel.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.CommonLibrary/domain/analyses/ReducedNumericalModel.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.CommonLibrary/domain/analyses/ReducedNumericalModel.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#include "foundation/axis.SystemBase.hpp"
#include "domain/fwd/numerical_model.hpp"
#include "foundation/memory/RelativePointer.hpp"
#include "Foundation/Axis.CommonLibrary.hpp"
namespace axis { namespace domain { namespace analyses {
class ModelOperatorFacade;
/**
* Implements a version of the numerica... | 40.875 | 96 | 0.748853 |
376d29ea569b01e2b5a72774aafbc174d75b438a | 2,426 | cpp | C++ | third_party/WebKit/Source/core/css/cssom/CSSNumericValue.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/css/cssom/CSSNumericValue.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/css/cssom/CSSNumericValue.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 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 "core/css/cssom/CSSNumericValue.h"
#include "bindings/core/v8/ExceptionState.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/cssom... | 34.657143 | 80 | 0.706925 |
3770ca1dd46873dd38256f23ab25bafeb9f6febb | 37,357 | cpp | C++ | TommyGun/FrameWork/fMain.cpp | tonyt73/TommyGun | 2c2ffae3dcd5dc25fd64d68a9f4cc96d99a1cd36 | [
"BSD-3-Clause"
] | 34 | 2017-05-08T18:39:13.000Z | 2022-02-13T05:05:33.000Z | TommyGun/FrameWork/fMain.cpp | tonyt73/TommyGun | 2c2ffae3dcd5dc25fd64d68a9f4cc96d99a1cd36 | [
"BSD-3-Clause"
] | null | null | null | TommyGun/FrameWork/fMain.cpp | tonyt73/TommyGun | 2c2ffae3dcd5dc25fd64d68a9f4cc96d99a1cd36 | [
"BSD-3-Clause"
] | 6 | 2017-05-27T01:14:20.000Z | 2020-01-20T14:54:30.000Z | /*---------------------------------------------------------------------------
(c) 2004 Scorpio Software
19 Wittama Drive
Glenmore Park
Sydney NSW 2745
Australia
-----------------------------------------------------------------------------
$Workfile:: ... | 37.171144 | 164 | 0.530048 |
3774044e50975e12b15187b791397878d3fa4378 | 1,654 | cpp | C++ | CodeFromLectures/Structures (2)/Structures/main.cpp | Stoefff/Object-Oriented-Programming-FMI-2017 | d2f8083ff146fb3cc68425cbd9af50bc37581e19 | [
"MIT"
] | 3 | 2018-03-05T13:57:56.000Z | 2018-05-03T19:25:05.000Z | CodeFromLectures/Structures (2)/Structures/main.cpp | Stoefff/Object-Oriented-Programming-FMI-2017 | d2f8083ff146fb3cc68425cbd9af50bc37581e19 | [
"MIT"
] | null | null | null | CodeFromLectures/Structures (2)/Structures/main.cpp | Stoefff/Object-Oriented-Programming-FMI-2017 | d2f8083ff146fb3cc68425cbd9af50bc37581e19 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
#include "address.h"
#include "student.h"
void generateStudentFile()
{
Student students[5];
for (int i = 0; i < 5; ++i)
{
students[i].name = NULL;
readStudent(students[i]);
}
fstream file("students.dat... | 19.011494 | 71 | 0.476421 |
3779477a90842c9ea994f741358951e2e030df74 | 105 | hpp | C++ | kernel/thor/arch/arm/thor-internal/arch/timer.hpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 935 | 2018-05-23T14:56:18.000Z | 2022-03-29T07:27:20.000Z | kernel/thor/arch/arm/thor-internal/arch/timer.hpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 314 | 2018-05-04T15:58:06.000Z | 2022-03-30T16:24:17.000Z | kernel/thor/arch/arm/thor-internal/arch/timer.hpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 65 | 2019-04-21T14:26:51.000Z | 2022-03-12T03:16:41.000Z | #pragma once
namespace thor {
void initializeTimers();
void initTimerOnThisCpu();
} // namespace thor
| 11.666667 | 26 | 0.742857 |
377c25f611fb8ce80317421179313c9ea52cc430 | 1,956 | cpp | C++ | userland/src/uname.cpp | Marc-JB/PeregrineOS | 2f4069211bca2341f0bab050bfb9cc803a59f510 | [
"BSD-2-Clause"
] | null | null | null | userland/src/uname.cpp | Marc-JB/PeregrineOS | 2f4069211bca2341f0bab050bfb9cc803a59f510 | [
"BSD-2-Clause"
] | null | null | null | userland/src/uname.cpp | Marc-JB/PeregrineOS | 2f4069211bca2341f0bab050bfb9cc803a59f510 | [
"BSD-2-Clause"
] | null | null | null | #include <stdio.h>
#include <sys/utsname.h>
#include <string>
#include <vector>
#include <any>
using namespace std;
typedef unsigned short int ushort;
void run(vector<string>);
utsname getUname() {
utsname uts;
if (uname(&uts) < 0)
throw "uname() failed";
return uts;
}
int main(int argc, char** ... | 26.794521 | 69 | 0.416155 |
3780ccd6e1370bf0a3ac7d3677c50f0c0d0e0db2 | 2,000 | cpp | C++ | Gecko/src/Gecko/Core/Window.cpp | Liamcreed/Gecko | d3f468f7e809148ad962f0fe969c28aac21236c7 | [
"MIT"
] | null | null | null | Gecko/src/Gecko/Core/Window.cpp | Liamcreed/Gecko | d3f468f7e809148ad962f0fe969c28aac21236c7 | [
"MIT"
] | null | null | null | Gecko/src/Gecko/Core/Window.cpp | Liamcreed/Gecko | d3f468f7e809148ad962f0fe969c28aac21236c7 | [
"MIT"
] | null | null | null | #include "gkpch.h"
#include "Input.h"
#include "Window.h"
namespace Gecko
{
void key_callback(GLFWwindow *window, int key, int scancode, int action, int mods);
void cursor_position_callback(GLFWwindow *window, double xpos, double ypos);
void mouse_button_callback(GLFWwindow *window, int button, int action,... | 32.258065 | 88 | 0.6525 |
3786ccf7530bb04fb445a71d1f144c15e5628757 | 11,406 | cpp | C++ | integrations/Raknet/NetworkSystem.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | integrations/Raknet/NetworkSystem.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | integrations/Raknet/NetworkSystem.cpp | nbtdev/teardrop | fa9cc8faba03a901d1d14f655a04167e14cd08ee | [
"MIT"
] | null | null | null | /******************************************************************************
Copyright (c) 2015 Teardrop Games
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 wit... | 26.711944 | 131 | 0.722865 |