hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74b821de57883f6c27cc06b1cfec543b966d140e | 5,925 | hpp | C++ | src/include/arch/x86/SMBIOS.hpp | arthurmco/annOS | 0e8d275c6e2869f7b96a873edaeb4857fc485b24 | [
"MIT"
] | 6 | 2018-01-26T05:44:29.000Z | 2022-02-13T21:59:20.000Z | src/include/arch/x86/SMBIOS.hpp | arthurmco/annOS | 0e8d275c6e2869f7b96a873edaeb4857fc485b24 | [
"MIT"
] | 9 | 2018-01-17T12:23:21.000Z | 2018-01-25T18:22:13.000Z | src/include/arch/x86/SMBIOS.hpp | arthurmco/annOS | 0e8d275c6e2869f7b96a873edaeb4857fc485b24 | [
"MIT"
] | null | null | null | #pragma once
/*
SMBIOS device class
Copyright (C) 2018 Arthur M
*/
#include <Device.hpp>
#include <stdint.h>
#include <stddef.h>
namespace annos::x86 {
/**
* SMBIOS entry point table
*/
struct SMBiosEntry {
char anchor[4]; //The _SM_ magic string
/**
* The checksum.
* This value, wh... | 23.418972 | 73 | 0.709536 | arthurmco |
74bb25ebc27690283b17848d6e653508d6ab67b2 | 1,159 | cpp | C++ | Glitter/Sources/event-emitter.cpp | ozthekoder/Ottoman | 63253391b5352f41e92a8454e5bda92cf204cc0d | [
"MIT",
"Unlicense"
] | null | null | null | Glitter/Sources/event-emitter.cpp | ozthekoder/Ottoman | 63253391b5352f41e92a8454e5bda92cf204cc0d | [
"MIT",
"Unlicense"
] | null | null | null | Glitter/Sources/event-emitter.cpp | ozthekoder/Ottoman | 63253391b5352f41e92a8454e5bda92cf204cc0d | [
"MIT",
"Unlicense"
] | null | null | null | #include "event-emitter.hpp"
#include <stdexcept>
namespace OZ {
EventEmitter::EventEmitter() {}
EventEmitter::~EventEmitter() {}
unsigned int EventEmitter::add_listener(unsigned int event_id, std::function<void ()> cb) {
if (!cb) {
throw std::invalid_argument("EventEmitter::add_listener: No callbak... | 30.5 | 132 | 0.672131 | ozthekoder |
74be4fee0e0d973a77c9f1cedffa5a8cb91a98d0 | 2,028 | cpp | C++ | greedy_algorithms/knapsack.cpp | icbdubey/C-Plus-Plus | d51947a9d5a96695ea52db4394db6518d777bddf | [
"MIT"
] | 20,295 | 2016-07-17T06:29:04.000Z | 2022-03-31T23:32:16.000Z | greedy_algorithms/knapsack.cpp | icbdubey/C-Plus-Plus | d51947a9d5a96695ea52db4394db6518d777bddf | [
"MIT"
] | 1,399 | 2017-06-02T05:59:45.000Z | 2022-03-31T00:55:00.000Z | greedy_algorithms/knapsack.cpp | icbdubey/C-Plus-Plus | d51947a9d5a96695ea52db4394db6518d777bddf | [
"MIT"
] | 5,775 | 2016-10-14T08:10:18.000Z | 2022-03-31T18:26:39.000Z | #include <iostream>
using namespace std;
struct Item {
int weight;
int profit;
};
float profitPerUnit(Item x) { return (float)x.profit / (float)x.weight; }
int partition(Item arr[], int low, int high) {
Item pivot = arr[high]; // pivot
int i = (low - 1); // Index of smaller element
for (i... | 25.670886 | 75 | 0.498521 | icbdubey |
74bf4c1c931d9985907eebd9cf0f55268cd7d404 | 776 | hpp | C++ | core/Camera.hpp | jmppmj/3dgameengine_jillplatts | 64f472322423aa4d2c8be5366f36d78dde9f568b | [
"MIT"
] | null | null | null | core/Camera.hpp | jmppmj/3dgameengine_jillplatts | 64f472322423aa4d2c8be5366f36d78dde9f568b | [
"MIT"
] | null | null | null | core/Camera.hpp | jmppmj/3dgameengine_jillplatts | 64f472322423aa4d2c8be5366f36d78dde9f568b | [
"MIT"
] | null | null | null | #pragma once
#include "ModelData.hpp"
class Camera
{
private:
glm::vec3 eye = glm::vec3(0, 0, 1);
glm::vec3 lookAt = glm::vec3(0, 0, 0);
glm::vec3 up = glm::vec3(0, 1, 0);
float fov = glm::radians(100.0f);
float nearPlane = 0.1f;
float farPlane = 1000.0f;
float bufferWidth = 500.0f;
float bufferHeight = 500.0f... | 21.555556 | 141 | 0.706186 | jmppmj |
74c6332a1094d750048af1ca0253fac328c40d07 | 3,803 | cpp | C++ | ProcMonX/CallStackDlg.cpp | euphrat1ca/ProcMonXv2 | 8ea0e45e90629c00b489b6d6476515bb9cb48deb | [
"MIT"
] | 302 | 2020-08-29T20:02:09.000Z | 2022-03-30T02:43:42.000Z | ProcMonX/CallStackDlg.cpp | euphrat1ca/ProcMonXv2 | 8ea0e45e90629c00b489b6d6476515bb9cb48deb | [
"MIT"
] | 5 | 2020-11-23T05:55:54.000Z | 2022-02-20T12:38:59.000Z | ProcMonX/CallStackDlg.cpp | euphrat1ca/ProcMonXv2 | 8ea0e45e90629c00b489b6d6476515bb9cb48deb | [
"MIT"
] | 65 | 2020-08-29T20:57:06.000Z | 2022-03-28T07:12:52.000Z | #include "pch.h"
#include "CallStackDlg.h"
#include "EventData.h"
#include "SymbolManager.h"
#include "ClipboardHelper.h"
#include "DialogHelper.h"
CCallStackDlg::CCallStackDlg(EventData* data) : m_pData(data) {
ATLASSERT(data);
}
DWORD CCallStackDlg::LoadSymbolsThread() {
auto stack = m_pData->GetStackEventData();... | 27.164286 | 94 | 0.684197 | euphrat1ca |
74cc776e978633212b3cffac3672125e3b53eaa6 | 1,373 | hpp | C++ | clove/components/systems/ecs/include/Clove/ECS/FunctionTraits.hpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | 33 | 2020-01-09T04:57:29.000Z | 2021-08-14T08:02:43.000Z | clove/components/systems/ecs/include/Clove/ECS/FunctionTraits.hpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | 234 | 2019-10-25T06:04:35.000Z | 2021-08-18T05:47:41.000Z | clove/components/systems/ecs/include/Clove/ECS/FunctionTraits.hpp | mondoo/Clove | 3989dc3fea0d886a69005c1e0bb4396501f336f2 | [
"MIT"
] | 4 | 2020-02-11T15:28:42.000Z | 2020-09-07T16:22:58.000Z | #pragma once
namespace clove {
template<typename FunctionType>
struct FunctionTraits;
template<typename RetType, typename... ParameterTypes>
struct FunctionTraits<RetType(ParameterTypes...)> {
using ReturnType = RetType;
using ParameterTypesTuple = std::tuple<Paramet... | 44.290323 | 130 | 0.719592 | mondoo |
74d062157995609537024b976d74617d44816245 | 173 | hpp | C++ | calculate.hpp | ivanstanev/cryptopals-challenges | 55f204d7ffe5056f26437508c40619a4f9b42518 | [
"MIT"
] | null | null | null | calculate.hpp | ivanstanev/cryptopals-challenges | 55f204d7ffe5056f26437508c40619a4f9b42518 | [
"MIT"
] | null | null | null | calculate.hpp | ivanstanev/cryptopals-challenges | 55f204d7ffe5056f26437508c40619a4f9b42518 | [
"MIT"
] | null | null | null | #ifndef CALCULATE_HPP
#define CALCULATE_HPP
#include <iostream>
namespace Utility {
int HammingDistance(const char* first, const char* second, size_t length);
}
#endif
| 13.307692 | 74 | 0.768786 | ivanstanev |
74d31865bc5272fbfcc94a6f333e5f46b363f3c7 | 520 | cpp | C++ | interface.cpp | Skyzeala/Scoreboard | 8dc009bc055c96bb59478ba36d55fd1b53fca042 | [
"Apache-2.0"
] | null | null | null | interface.cpp | Skyzeala/Scoreboard | 8dc009bc055c96bb59478ba36d55fd1b53fca042 | [
"Apache-2.0"
] | null | null | null | interface.cpp | Skyzeala/Scoreboard | 8dc009bc055c96bb59478ba36d55fd1b53fca042 | [
"Apache-2.0"
] | null | null | null | #include "interface.h"
Button::Button():
leftx(0), topy(0), rightx(0), bottomy(0), color(nullptr), purpose(DisplayOnly)
{
}
Button::Button(int leftx, int topy, int rightx, int bottomy, Color * color, ButtonPurpose purpose, actionFunction action):
leftx(leftx), topy(topy), rightx(rightx), bottomy(bot... | 16.25 | 123 | 0.638462 | Skyzeala |
74d4dbe45fc00eef03a091db7973aed394b37258 | 256 | hpp | C++ | book/cpp_templates/tmplbook/traits/ispointer.hpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | book/cpp_templates/tmplbook/traits/ispointer.hpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | book/cpp_templates/tmplbook/traits/ispointer.hpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | template<typename T>
struct IsPointerT : std::false_type { // primary template: by default not a pointer
};
template<typename T>
struct IsPointerT<T*> : std::true_type { // partial specialization for pointers
using BaseT = T; // type pointing to
};
| 28.444444 | 86 | 0.71875 | houruixiang |
74d872e3249b8b8edcf8bae027cdbf5713095a01 | 6,832 | cpp | C++ | Client/src/SourceFileClass.cpp | kluete/ddt3 | b8bf3b6daf275ec025b0c4a6401576560b671a3d | [
"Apache-2.0"
] | 6 | 2020-04-20T04:54:44.000Z | 2022-02-13T01:24:10.000Z | Client/src/SourceFileClass.cpp | kluete/ddt3 | b8bf3b6daf275ec025b0c4a6401576560b671a3d | [
"Apache-2.0"
] | null | null | null | Client/src/SourceFileClass.cpp | kluete/ddt3 | b8bf3b6daf275ec025b0c4a6401576560b671a3d | [
"Apache-2.0"
] | 1 | 2022-02-13T01:24:35.000Z | 2022-02-13T01:24:35.000Z | // source file class
#include <cassert>
#include <fstream>
#include <sstream>
#include <algorithm>
#include "wx/filename.h"
#include "TopFrame.h"
#include "ProjectBreakPoints.h"
#include "StyledSourceCtrl.h"
#include "ddt/FileSystem.h"
#include "TopNotebook.h"
#include "Controller.h"
#include "sigImp.h"
#include ... | 23.888112 | 152 | 0.677986 | kluete |
74d98078f778b7ec801e6e5e7dfc9fb409e4438d | 4,215 | cpp | C++ | Editor/TabMainView.cpp | humdingerb/Medo | 61616300a5379e4985cb44dd41af512345e3289c | [
"MIT"
] | 95 | 2020-12-23T02:35:35.000Z | 2022-02-20T19:30:13.000Z | Editor/TabMainView.cpp | humdingerb/Medo | 61616300a5379e4985cb44dd41af512345e3289c | [
"MIT"
] | 21 | 2020-12-23T05:01:36.000Z | 2022-01-11T08:38:26.000Z | Editor/TabMainView.cpp | humdingerb/Medo | 61616300a5379e4985cb44dd41af512345e3289c | [
"MIT"
] | 8 | 2020-12-23T04:47:34.000Z | 2021-08-29T17:18:56.000Z | /* PROJECT: Medo
* AUTHORS: Zenja Solaja, Melbourne Australia
* COPYRIGHT: Zen Yes Pty Ltd, 2019-2021
* DESCRIPTION: Tab main view
*/
#include <cstdio>
#include <InterfaceKit.h>
#include "TabMainView.h"
#include "Project.h"
#include "EffectsTab.h"
#include "TextTab.h"
#include "Gui/ListViewToolTip.h"
#inclu... | 23.948864 | 145 | 0.707473 | humdingerb |
74e4b62d21acae3cff084f34342849f6076148c9 | 959 | cpp | C++ | PA1/lib/glm/test/gtc/gtc_constants.cpp | dowoncha/COMP575 | 6e48bdd80cb1a3e677c07655640efa941325e59c | [
"MIT"
] | 35 | 2015-03-22T05:01:40.000Z | 2022-01-24T14:41:03.000Z | PA1/lib/glm/test/gtc/gtc_constants.cpp | dowoncha/COMP575 | 6e48bdd80cb1a3e677c07655640efa941325e59c | [
"MIT"
] | 5 | 2015-12-02T09:01:00.000Z | 2018-10-12T16:06:33.000Z | PA1/lib/glm/test/gtc/gtc_constants.cpp | dowoncha/COMP575 | 6e48bdd80cb1a3e677c07655640efa941325e59c | [
"MIT"
] | 8 | 2017-02-18T01:30:57.000Z | 2022-01-03T22:41:11.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2012-09-19
// Updated ... | 24.589744 | 100 | 0.420229 | dowoncha |
74e655e665ccec0e6124f2552545bb298fac810d | 3,582 | cpp | C++ | Framework/Sources/o2/Utils/Editor/SceneEditableObject.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Framework/Sources/o2/Utils/Editor/SceneEditableObject.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Framework/Sources/o2/Utils/Editor/SceneEditableObject.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2/stdafx.h"
#include "SceneEditableObject.h"
#include "o2/Scene/Scene.h"
namespace o2
{
SceneEditableObject::SceneEditableObject()
{ }
SceneEditableObject::~SceneEditableObject()
{ }
bool SceneEditableObject::IsOnScene() const
{
return true;
}
SceneUID SceneEditableObject::GetID() const
{
r... | 18.182741 | 90 | 0.737856 | zenkovich |
d55ec127a088f7404196e9f722ac0f49c7643164 | 2,030 | hh | C++ | core/inc/axolotl/window.hh | lmariscal/axolotl | b20bae564ab0b0fe8f7d4335c79b2daf5fb46583 | [
"Zlib"
] | null | null | null | core/inc/axolotl/window.hh | lmariscal/axolotl | b20bae564ab0b0fe8f7d4335c79b2daf5fb46583 | [
"Zlib"
] | null | null | null | core/inc/axolotl/window.hh | lmariscal/axolotl | b20bae564ab0b0fe8f7d4335c79b2daf5fb46583 | [
"Zlib"
] | null | null | null | #pragma once
#include <axolotl/iomanager.hh>
#include <axolotl/types.hh>
struct GLFWwindow;
struct GLFWmonitor;
namespace axl {
class Renderer;
class GUI;
class Window {
public:
Window(u32 width, u32 height, const std::string &title);
~Window();
bool GetLockMouse() const;
bool Update();
... | 28.591549 | 94 | 0.706404 | lmariscal |
d560e7781e4d25e4f065d20ff0cb717389d9ffc8 | 11,906 | cc | C++ | src/RK/computeVoronoiVolume1d.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/RK/computeVoronoiVolume1d.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/RK/computeVoronoiVolume1d.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++------------------------------------
// Compute the volume per point based on the Voronoi tessellation.
//------------------------------------------------------------------------------
#include "computeVoronoiVolume.hh"
#include "Field/Field.hh"
#include "Field/FieldList.hh"
... | 44.096296 | 138 | 0.530405 | jmikeowen |
d565128e7e32617cf7ac0e3414a0fb5c1ecfb67d | 4,037 | cpp | C++ | src/common/radix.cpp | wesm/duckdb | f2fa094abc59d70a8c981d6e9f9c9c3911f08362 | [
"MIT"
] | 3 | 2021-05-13T04:15:45.000Z | 2022-03-03T16:57:16.000Z | src/common/radix.cpp | wesm/duckdb | f2fa094abc59d70a8c981d6e9f9c9c3911f08362 | [
"MIT"
] | 2 | 2021-10-02T02:52:39.000Z | 2022-01-04T20:08:06.000Z | src/common/radix.cpp | wesm/duckdb | f2fa094abc59d70a8c981d6e9f9c9c3911f08362 | [
"MIT"
] | 1 | 2021-09-02T00:22:42.000Z | 2021-09-02T00:22:42.000Z | #include "duckdb/common/radix.hpp"
#include <cfloat>
#include <cstring> // strlen() on Solaris
#include <limits.h>
namespace duckdb {
bool IsLittleEndian() {
int n = 1;
if (*(char *)&n == 1) {
return true;
} else {
return false;
}
}
uint8_t FlipSign(uint8_t key_byte) {
return key_byte ^ 128;
}
uint32_t En... | 25.389937 | 89 | 0.706217 | wesm |
d5666309f1f7c2d8ece88532fca5d6cc667bfd55 | 2,298 | cpp | C++ | ivarp/src/irational_sqrt.cpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/src/irational_sqrt.cpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/src/irational_sqrt.cpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | // The code is open source under the MIT license.
// Copyright 2019-2020, Phillip Keldenich, TU Braunschweig, Algorithms Group
// https://ibr.cs.tu-bs.de/alg
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to de... | 39.62069 | 97 | 0.698433 | phillip-keldenich |
d5668e898741b41dcc900c2bc7a412e10488dccf | 907 | hh | C++ | libs/pegtl/internal/input_data.hh | 5003/jumanpp | 9f50ee3d62591936a079ade18c6e1d1e8a6d3463 | [
"Apache-2.0"
] | 1 | 2018-03-18T15:53:27.000Z | 2018-03-18T15:53:27.000Z | libs/pegtl/internal/input_data.hh | 5003/jumanpp | 9f50ee3d62591936a079ade18c6e1d1e8a6d3463 | [
"Apache-2.0"
] | null | null | null | libs/pegtl/internal/input_data.hh | 5003/jumanpp | 9f50ee3d62591936a079ade18c6e1d1e8a6d3463 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2014-2015 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/ColinH/PEGTL/
#ifndef PEGTL_INTERNAL_INPUT_DATA_HH
#define PEGTL_INTERNAL_INPUT_DATA_HH
#include <cstdlib>
namespace pegtl
{
namespace internal
{
struct input_data
{
in... | 23.25641 | 165 | 0.560088 | 5003 |
d566b55db31b317ff157e24163432a06061f0c09 | 4,430 | cpp | C++ | Bomberman/src/Enemy.cpp | pmotala/BomberMan | c322519871e1d1fffa6d3f456b3f7de0bee1cb70 | [
"Apache-2.0"
] | null | null | null | Bomberman/src/Enemy.cpp | pmotala/BomberMan | c322519871e1d1fffa6d3f456b3f7de0bee1cb70 | [
"Apache-2.0"
] | null | null | null | Bomberman/src/Enemy.cpp | pmotala/BomberMan | c322519871e1d1fffa6d3f456b3f7de0bee1cb70 | [
"Apache-2.0"
] | 4 | 2019-09-10T13:26:37.000Z | 2019-11-20T06:29:04.000Z | #include "Enemy.hpp"
#include "Level.hpp"
#include "gtx/transform.hpp"
#include "gtc/random.hpp"
#include "Swallow/Renderer/material/FlatColourMaterial.hpp"
Enemy::Enemy(const glm::vec3& pos, Swallow::Ref<Level> level)
{
m_Level = level;
GetTransform()->SetPosition(pos);
m_Destination = GetTransform()->... | 34.609375 | 169 | 0.674492 | pmotala |
d569757f3487d0f570de50795fe8f8c1eeef42bf | 270 | cpp | C++ | cpp/array-and-string/multidimensional-array/01.cpp | inkushwahasonu/javascript | 15c45b56e67cad6a24bb5c3f86b5631490b14bcb | [
"MIT"
] | 1 | 2020-08-13T10:13:52.000Z | 2020-08-13T10:13:52.000Z | cpp/array-and-string/multidimensional-array/01.cpp | inkushwahasonu/javascript | 15c45b56e67cad6a24bb5c3f86b5631490b14bcb | [
"MIT"
] | 1 | 2021-09-02T18:45:14.000Z | 2021-09-02T18:45:14.000Z | cpp/array-and-string/multidimensional-array/01.cpp | inkushwahasonu/javascript | 15c45b56e67cad6a24bb5c3f86b5631490b14bcb | [
"MIT"
] | null | null | null | // two dimentional array
#include<iostream>
using namespace std;
int main(){
int test[3][2] ={{2,-5},{4,0},{9,1}};
for(int i=0; i<3; ++i){
for(int j=0; j<2; ++j){
cout << "test[" << i << "][" << j << "] = " << test[i][j] << endl ;
}
}
return 0;
}
| 19.285714 | 73 | 0.451852 | inkushwahasonu |
d56b1625a1caad546758486ae583434562596b22 | 12,445 | hpp | C++ | sw/src/pairhmm_posit.hpp | lvandam/pairhmm_posit_hdl_arrow | 428e935d1f3cb78d881ec590cfcc1f85806c4589 | [
"Apache-2.0"
] | 1 | 2019-07-01T10:25:43.000Z | 2019-07-01T10:25:43.000Z | sw/src/pairhmm_posit.hpp | lvandam/pairhmm_posit_hdl_arrow | 428e935d1f3cb78d881ec590cfcc1f85806c4589 | [
"Apache-2.0"
] | null | null | null | sw/src/pairhmm_posit.hpp | lvandam/pairhmm_posit_hdl_arrow | 428e935d1f3cb78d881ec590cfcc1f85806c4589 | [
"Apache-2.0"
] | 2 | 2019-07-01T10:42:31.000Z | 2021-02-05T09:10:13.000Z | //
// Created by laurens on 18-4-18.
//
#ifndef PAIRHMM_PAIRHMM_POSIT_HPP
#define PAIRHMM_PAIRHMM_POSIT_HPP
#include <iostream>
#include <vector>
#include <posit/posit>
#include "PairHMMUserCore.h"
#include "debug_values.hpp"
#include "defines.hpp"
#include "utils.hpp"
#include "batch.hpp"
using namespace std;
usin... | 42.043919 | 249 | 0.419606 | lvandam |
d56d721882042514dbc31bf6525c76cdff453a3a | 3,243 | cpp | C++ | card.cpp | jwittneb/onitama_game | 66bddec611eb3098d21ae528db8e9760146a5c41 | [
"MIT"
] | null | null | null | card.cpp | jwittneb/onitama_game | 66bddec611eb3098d21ae528db8e9760146a5c41 | [
"MIT"
] | null | null | null | card.cpp | jwittneb/onitama_game | 66bddec611eb3098d21ae528db8e9760146a5c41 | [
"MIT"
] | null | null | null | #include "card.h"
#include <iostream>
using namespace std;
//All cards should be here or they cannot be played
string cardList[numCards] = {"mantis", "ox", "goose", "eel", "crane", "cobra", "rooster", "elephant", "crab", "monkey", "rabbit", "tiger", "frog", "horse", "boar", "dragon"};
Card::Card(std::string cardName)... | 28.447368 | 174 | 0.641998 | jwittneb |
d56e97f49dd233ec60ca71a977df5a1d5dd67974 | 14,048 | cpp | C++ | src/openpose/utilities/openCv.cpp | khansamad47/openpose | 19bd98dd860da3d71916046dfc8d985808292b31 | [
"DOC"
] | 4 | 2018-05-17T16:18:03.000Z | 2020-10-22T11:37:53.000Z | src/openpose/utilities/openCv.cpp | ChronousZhang/openpose | 6d3ff8b3361cb5c098294b486a25c9921ad864c2 | [
"DOC"
] | null | null | null | src/openpose/utilities/openCv.cpp | ChronousZhang/openpose | 6d3ff8b3361cb5c098294b486a25c9921ad864c2 | [
"DOC"
] | 1 | 2020-01-07T14:06:01.000Z | 2020-01-07T14:06:01.000Z | #include <openpose/utilities/avx.hpp>
#include <openpose/utilities/fastMath.hpp>
#include <openpose/utilities/openCv.hpp>
namespace op
{
void putTextOnCvMat(cv::Mat& cvMat, const std::string& textToDisplay, const Point<int>& position,
const cv::Scalar& color, const bool normalizeWidth, cons... | 44.738854 | 122 | 0.477648 | khansamad47 |
d5713159ca8582b7e7c85e72510224c6b76e6cca | 823 | hpp | C++ | Libraries/LibC/liballoc.hpp | KamalDevelopers/GevOS | bbd9d3bf149b15b9b960e54b3a4c34a4990274f1 | [
"Unlicense"
] | 19 | 2020-04-12T21:00:02.000Z | 2022-02-28T03:47:11.000Z | Libraries/LibC/liballoc.hpp | KamalDevelopers/GevOS | bbd9d3bf149b15b9b960e54b3a4c34a4990274f1 | [
"Unlicense"
] | 7 | 2021-01-21T19:26:59.000Z | 2021-07-04T16:39:06.000Z | Libraries/LibC/liballoc.hpp | KamalDevelopers/GevOS | bbd9d3bf149b15b9b960e54b3a4c34a4990274f1 | [
"Unlicense"
] | 3 | 2020-08-13T18:59:54.000Z | 2021-06-25T17:14:43.000Z | #ifndef LIBALLOC_HPP
#define LIBALLOC_HPP
#include "types.hpp"
static int l_initialized;
struct boundary_tag {
unsigned int magic; //< It's a kind of ...
unsigned int size; //< Requested size.
unsigned int real_size; //< Actual size.
int index; //< Location in the page table.
... | 30.481481 | 76 | 0.662211 | KamalDevelopers |
d571555e34c6385763325f7b6a8cc941246418e4 | 186 | hpp | C++ | falcon/helper/has_pos_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | falcon/helper/has_pos_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | falcon/helper/has_pos_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_HELPER_HAS_POS_TYPE_HPP
#define FALCON_HELPER_HAS_POS_TYPE_HPP
#include <falcon/sfinae/has_type.hpp>
namespace falcon {
FALCON_HAS_TYPE_TRAIT_DEF(pos_type);
}
#endif
| 14.307692 | 38 | 0.833333 | jonathanpoelen |
d5738dfb93a1c224b5fcc725a5ba92adf7febf27 | 1,030 | cc | C++ | Codeforces/27 Beta Division 2/Problem B/B.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/27 Beta Division 2/Problem B/B.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/27 Beta Division 2/Problem B/B.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include<stdio.h>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#include<math.h>
#define sd(x) scanf("%d",&x);
#define sd2(x,y) scanf("%d%d",&x,&y);
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z);
#define fi first
#define se second
... | 18.070175 | 52 | 0.438835 | VastoLorde95 |
d573d9faad6a68f0a95c219ed601c8232fa6f717 | 10,910 | cpp | C++ | primitiv.cpp | ScottyPotty1/Dolphin-7-VM-Releases | 696039e4192d662ed81af034ab47fe4324422477 | [
"MIT"
] | null | null | null | primitiv.cpp | ScottyPotty1/Dolphin-7-VM-Releases | 696039e4192d662ed81af034ab47fe4324422477 | [
"MIT"
] | null | null | null | primitiv.cpp | ScottyPotty1/Dolphin-7-VM-Releases | 696039e4192d662ed81af034ab47fe4324422477 | [
"MIT"
] | null | null | null | /******************************************************************************
File: Primitiv.cpp
Description:
Implementation of the Interpreter class' primitive methods
******************************************************************************/
#include "Ist.h"
#pragma code_seg(PRIM_SEG)
#include <process... | 30.305556 | 108 | 0.685151 | ScottyPotty1 |
d575ba5730ac5b25027eadd32925f49f769bb292 | 1,287 | cpp | C++ | archive/3/trojkat.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | archive/3/trojkat.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | archive/3/trojkat.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int I;
int main()
{
ios_base::sync_with_stdio(false);
cout.tie(0); cin.tie(0);
I n;
cin >> n;
vector<I> t(n);
for(I i = 0; i < n; ++i) {
cin >> t[i];
}
vector<I> u(n + 1);
u[0] = 0;
for(I i = 0; i < n; +... | 21.45 | 120 | 0.294483 | Aleshkev |
d57cf8fca137d17c5539828e4808333d09e7c6dd | 747 | cpp | C++ | src/ng/engine/util/profiler.cpp | mfurquim/csc486a | 9af7ad3c6dac47bf3c73e890b4494d3b6263b05c | [
"MIT"
] | 1 | 2018-06-26T08:04:00.000Z | 2018-06-26T08:04:00.000Z | src/ng/engine/util/profiler.cpp | mfurquim/csc486a | 9af7ad3c6dac47bf3c73e890b4494d3b6263b05c | [
"MIT"
] | null | null | null | src/ng/engine/util/profiler.cpp | mfurquim/csc486a | 9af7ad3c6dac47bf3c73e890b4494d3b6263b05c | [
"MIT"
] | null | null | null | #include "ng/engine/util/profiler.hpp"
namespace ng
{
void Profiler::Reset()
{
mTimeSpent = std::chrono::milliseconds(0);
mNumSamples = 0;
}
void Profiler::Start()
{
mLastStart = std::chrono::high_resolution_clock::now();
}
void Profiler::Stop()
{
mTimeSpent += std::chrono::duration_cast<std::chrono... | 20.75 | 85 | 0.68407 | mfurquim |
d5805a4adee37aab2ec27e316633622dfe44db59 | 1,167 | cpp | C++ | LeetcodeProblems/84H_Largest_Rectangle_in_Histogram.cpp | dimabreeze/Interview | 72959c660c242dd22f456b24d8426c448bd1d5e9 | [
"MIT"
] | null | null | null | LeetcodeProblems/84H_Largest_Rectangle_in_Histogram.cpp | dimabreeze/Interview | 72959c660c242dd22f456b24d8426c448bd1d5e9 | [
"MIT"
] | null | null | null | LeetcodeProblems/84H_Largest_Rectangle_in_Histogram.cpp | dimabreeze/Interview | 72959c660c242dd22f456b24d8426c448bd1d5e9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "84H_Largest_Rectangle_in_Histogram.h"
using namespace Leetcode::LC84H;
int Solution::largestRectangleArea( std::vector<int> heights ) const
{
if (heights.empty()) return 0;
if (heights.size() == 1) return heights[0];
std::vector<int> smallerL( heights.size(), -1 ); //pos of smaller elem... | 27.785714 | 95 | 0.621251 | dimabreeze |
d5808c27231d3c49c1b939949abc33b9da03bbdd | 4,854 | cpp | C++ | crimson/src/rendering/meshfactory.cpp | georgelam6/Crimson | 6b9667832bbe8bc3356b1cca3d4583cedf9f28e6 | [
"MIT"
] | 14 | 2020-07-05T03:26:12.000Z | 2021-04-04T09:05:33.000Z | crimson/src/rendering/meshfactory.cpp | georgelam6/Crimson | 6b9667832bbe8bc3356b1cca3d4583cedf9f28e6 | [
"MIT"
] | null | null | null | crimson/src/rendering/meshfactory.cpp | georgelam6/Crimson | 6b9667832bbe8bc3356b1cca3d4583cedf9f28e6 | [
"MIT"
] | 3 | 2021-01-20T08:33:50.000Z | 2021-01-24T07:11:55.000Z | #include <math.h>
#include "meshfactory.h"
#include "logger.h"
#include "math/maths.h"
namespace Crimson {
ref<Mesh> MeshFactory::NewCubeMesh(const ref<Material>& material) {
ref<Mesh> cube(new Mesh(
std::vector<Vertex> {
{vec3(1.0f, 1.0f, -1.0f), vec3(0.0f, 1.0f, 0.0f), vec2(0.625, 0.500)},
{vec3(-1.0f... | 37.053435 | 137 | 0.544293 | georgelam6 |
d5809b5b631bad58f33b2dbb1cdc26252197d470 | 5,921 | cpp | C++ | src/atmoanalyzer/config.cpp | benedikt-peter/atmolight | 7c1b2243abe9461da5412928049503f8142a421e | [
"MIT"
] | 1 | 2021-11-28T13:47:05.000Z | 2021-11-28T13:47:05.000Z | src/atmoanalyzer/config.cpp | benedikt-peter/atmolight | 7c1b2243abe9461da5412928049503f8142a421e | [
"MIT"
] | null | null | null | src/atmoanalyzer/config.cpp | benedikt-peter/atmolight | 7c1b2243abe9461da5412928049503f8142a421e | [
"MIT"
] | null | null | null | //
// Created by benedikt on 23.03.18.
//
#include <atmo/config.hpp>
#include <yaml-cpp/yaml.h>
#include <fmt/format.h>
namespace {
using namespace atmo;
auto getRequiredNode(const YAML::Node& parent, const std::string& node_name) {
if (!parent[node_name]) {
throw std::runtime_error{fmt... | 37.474684 | 99 | 0.638237 | benedikt-peter |
d585a316cac8f2893645a36eef0dd871d9b9f108 | 1,474 | cpp | C++ | creational/monads/maybe.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | 2 | 2021-01-21T11:03:08.000Z | 2021-01-31T17:47:12.000Z | creational/monads/maybe.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | null | null | null | creational/monads/maybe.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | null | null | null | #include <iostream>
#include <optional>
#include <type_traits>
template <typename T>
struct Maybe;
template <typename T>
Maybe<T> maybe(std::optional<T> ctx);
template <typename T>
struct Maybe
{
std::optional<T> context;
explicit Maybe(std::optional<T> ctx = {})
: context{std::move(ctx)}
{}
template <typena... | 17.139535 | 81 | 0.660787 | stefanpantic |
d58775c458056fa8a46dfb7f63313964007c11ca | 857 | hpp | C++ | include/hydro/vm/ClassAllocator.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/vm/ClassAllocator.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/vm/ClassAllocator.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 22.552632 | 73 | 0.507585 | hydraate |
d58ca4970f16cce902c19eb2384fd899080c5026 | 782 | cpp | C++ | src/common/log.cpp | alessandro40/libight | de434be18791844076603b50167c436a768e830e | [
"BSD-2-Clause"
] | null | null | null | src/common/log.cpp | alessandro40/libight | de434be18791844076603b50167c436a768e830e | [
"BSD-2-Clause"
] | null | null | null | src/common/log.cpp | alessandro40/libight | de434be18791844076603b50167c436a768e830e | [
"BSD-2-Clause"
] | null | null | null | /*-
* This file is part of Libight <https://libight.github.io/>.
*
* Libight is free software. See AUTHORS and LICENSE for more
* information on the copying conditions.
*/
#include <ight/common/log.hpp>
#include <stdio.h>
using namespace ight::common::log;
Logger::Logger() {
consumer = [](const char *s) {
... | 24.4375 | 66 | 0.62532 | alessandro40 |
d58cd5f57fbc008056aaefeb1f9eb7326e88bc13 | 959 | cpp | C++ | examples/04 - ESP8266 (Arduino) - LED/src/loop.cpp | AstralShadow/WhiteBell | 0cb5c3910a287258dbf91e7d9a6a22bf6be6715c | [
"MIT"
] | 3 | 2021-05-22T00:28:18.000Z | 2022-02-25T17:34:37.000Z | examples/04 - ESP8266 (Arduino) - LED/src/loop.cpp | AstralShadow/WhiteBell | 0cb5c3910a287258dbf91e7d9a6a22bf6be6715c | [
"MIT"
] | null | null | null | examples/04 - ESP8266 (Arduino) - LED/src/loop.cpp | AstralShadow/WhiteBell | 0cb5c3910a287258dbf91e7d9a6a22bf6be6715c | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WhiteBellClient.hpp>
WhiteBell::Client *bell;
char const* server_ip = "192.168.0.0"; // set your WhiteBell server ip here.
void on_my_event(string control){
Serial.print("led: ");
Serial.println(control.c_str());
if(control == "on")
digital... | 21.795455 | 76 | 0.64755 | AstralShadow |
d5932adc05695163fc21f0c54885743002cb30f0 | 334 | cpp | C++ | First Semester/Alexander_Dzhekov_ex3_1.8.2020/Alexander_Dzhekov_ex3_1.8.2020/Alexander_Dzhekov_ex3_1.8.2020.cpp | FullscreenSauna/School-12th-grade | bba0ed1daccd24130515716cc3be178e3401394b | [
"MIT"
] | null | null | null | First Semester/Alexander_Dzhekov_ex3_1.8.2020/Alexander_Dzhekov_ex3_1.8.2020/Alexander_Dzhekov_ex3_1.8.2020.cpp | FullscreenSauna/School-12th-grade | bba0ed1daccd24130515716cc3be178e3401394b | [
"MIT"
] | null | null | null | First Semester/Alexander_Dzhekov_ex3_1.8.2020/Alexander_Dzhekov_ex3_1.8.2020/Alexander_Dzhekov_ex3_1.8.2020.cpp | FullscreenSauna/School-12th-grade | bba0ed1daccd24130515716cc3be178e3401394b | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
double calculateResult(int n)
{
double result = 1 / sqrt(5) * (pow(((1 + sqrt(5)) / 2), n) - pow(((1 - sqrt(5)) / n), 2));
return result;
}
int main()
{
for (int i = 1; i <= 7; i++)
{
cout << "N = " << i << ": " << calculateResult(i) <<... | 19.647059 | 94 | 0.494012 | FullscreenSauna |
d5a08dd8ad00c06f2624f6b7554e76ee6a2cee6b | 12,531 | cpp | C++ | Hacks/antiaim.cpp | manigamer22/MacTap | 9a48bffe5faec86d0edc4a79e620d27b674c510c | [
"Unlicense"
] | 1 | 2020-10-18T15:26:53.000Z | 2020-10-18T15:26:53.000Z | Hacks/antiaim.cpp | manigamer22/MacTap | 9a48bffe5faec86d0edc4a79e620d27b674c510c | [
"Unlicense"
] | 3 | 2020-11-09T14:05:01.000Z | 2021-09-01T05:37:56.000Z | Hacks/antiaim.cpp | manigamer22/MacTap | 9a48bffe5faec86d0edc4a79e620d27b674c510c | [
"Unlicense"
] | 1 | 2021-09-17T04:07:19.000Z | 2021-09-17T04:07:19.000Z | //
// antiaim.cpp
// vHook
//
#include "antiaim.h"
Vector AntiAim::realAngle;
float side = 1.0f;
Vector AntiAim::fakeAngle;
static bool manualswitch = true;
Vector atTargets;
bool isManual = false;
bool Swtich = false;
static bool jitter2 = false;
template <class T>
constexpr const T& Clamp(const T& v, cons... | 28.222973 | 172 | 0.526295 | manigamer22 |
d5a11134db0ac6662f0a9827f0b18accc4a0bd77 | 1,530 | hpp | C++ | include/util/asio/handler_hooks.hpp | BaroboRobotics/cxx-util | 624813d244ac5a3e6e4ffb16b7e0ac96b5c200cd | [
"BSL-1.0"
] | null | null | null | include/util/asio/handler_hooks.hpp | BaroboRobotics/cxx-util | 624813d244ac5a3e6e4ffb16b7e0ac96b5c200cd | [
"BSL-1.0"
] | null | null | null | include/util/asio/handler_hooks.hpp | BaroboRobotics/cxx-util | 624813d244ac5a3e6e4ffb16b7e0ac96b5c200cd | [
"BSL-1.0"
] | 1 | 2018-11-13T15:02:23.000Z | 2018-11-13T15:02:23.000Z | // Copyright (c) 2014-2016 Barobo, Inc.
//
// 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)
#ifndef UTIL_ASIO_HANDLER_HOOKS_HPP
#define UTIL_ASIO_HANDLER_HOOKS_HPP
#include <boost/asio/handler_alloc_hook.hpp>
#incl... | 31.875 | 79 | 0.768627 | BaroboRobotics |
d5aa084b4a3bbb424b7e3e70ef9cd6088e11b704 | 2,070 | cpp | C++ | teave/tty/tty.cpp | teave-team/teave | 0effbf60ad5a3bc5f6f79def01bcb6ab04853979 | [
"MIT",
"BSL-1.0",
"Unlicense"
] | null | null | null | teave/tty/tty.cpp | teave-team/teave | 0effbf60ad5a3bc5f6f79def01bcb6ab04853979 | [
"MIT",
"BSL-1.0",
"Unlicense"
] | null | null | null | teave/tty/tty.cpp | teave-team/teave | 0effbf60ad5a3bc5f6f79def01bcb6ab04853979 | [
"MIT",
"BSL-1.0",
"Unlicense"
] | null | null | null | /*
* Copyright 2021 Pedram Tiv
*
* Licensed under the Teave Public License (the "License");
* You may obtain a copy of the License at https://www.teave.io/teave-public-license.html
*
* This software is distributed under the License on an "AS IS" BASIS, WITHOUT WARRANTIES
* OF ANY KIND, either express or implied... | 30.895522 | 95 | 0.67971 | teave-team |
d5b77e6284a2c3d8d8e0e05e19290dfa574c3a83 | 404 | hpp | C++ | include/maths/exponentiation-by-squaring.hpp | AdrienVannson/algo-lib | ff560a9d9df4a30544647f00491773312845e296 | [
"MIT"
] | null | null | null | include/maths/exponentiation-by-squaring.hpp | AdrienVannson/algo-lib | ff560a9d9df4a30544647f00491773312845e296 | [
"MIT"
] | null | null | null | include/maths/exponentiation-by-squaring.hpp | AdrienVannson/algo-lib | ff560a9d9df4a30544647f00491773312845e296 | [
"MIT"
] | null | null | null | #ifndef EXPONENTIATION_BY_SQUARING_HPP
#define EXPONENTIATION_BY_SQUARING_HPP
#include <cassert>
/// \brief Exponentiation by squaring (p must be strictly positive)
template<class T>
T getPower (const T &x, const int p)
{
assert(p > 0);
if (p == 1) return x;
if (p % 2 == 1) return x * getPower(x * x, p /... | 22.444444 | 67 | 0.675743 | AdrienVannson |
d5b976cb4c646664ffd120f7eec581e75a0eef8f | 2,281 | cc | C++ | src/optimFunctions.cc | girke-lab/eiR | 339a450b8f14c1bd04761286fb3a8e1eb45e608d | [
"BSL-1.0"
] | 3 | 2016-01-21T10:40:35.000Z | 2022-01-11T15:51:51.000Z | src/optimFunctions.cc | girke-lab/eiR | 339a450b8f14c1bd04761286fb3a8e1eb45e608d | [
"BSL-1.0"
] | null | null | null | src/optimFunctions.cc | girke-lab/eiR | 339a450b8f14c1bd04761286fb3a8e1eb45e608d | [
"BSL-1.0"
] | null | null | null | #include <R.h>
#include <Rinternals.h>
extern "C" {
SEXP calcF(SEXP xS,SEXP dS,SEXP pS);
SEXP calcG(SEXP xS,SEXP dS,SEXP pS);
}
typedef long int integer;
typedef double doublereal;
typedef long int ftnlen;
typedef long int logical;
double udist(int k,doublereal* x, doublereal* y)
{
// printf("----- udist --------... | 18.544715 | 53 | 0.512495 | girke-lab |
d5baabc4117c729076a759018a318ad792a5aea6 | 980 | cc | C++ | orig/filters/overstrike.cc | chenshuo/software-tools-in-c | b28c36258cd95e6c7d603cbc1b147cfc656cc31d | [
"BSD-3-Clause"
] | 12 | 2020-01-16T08:04:35.000Z | 2021-04-08T17:08:03.000Z | orig/filters/overstrike.cc | chenshuo/software-tools-in-c | b28c36258cd95e6c7d603cbc1b147cfc656cc31d | [
"BSD-3-Clause"
] | null | null | null | orig/filters/overstrike.cc | chenshuo/software-tools-in-c | b28c36258cd95e6c7d603cbc1b147cfc656cc31d | [
"BSD-3-Clause"
] | 2 | 2020-01-17T22:13:16.000Z | 2021-12-31T05:39:48.000Z | #include "../p2c.h"
#include "filters.h"
// Copyright (C) 1981 by Bell Laboratories, Inc., and Whitesmiths Ltd.
// overstrike -- convert backspaces into multiple lines
void overstrike()
{
const int SKIP = BLANK;
const int NOSKIP = PLUS;
character c;
integer col, newcol, i;
col = 1;
do {
... | 27.222222 | 70 | 0.480612 | chenshuo |
d5c5ae01ad15d6dad6c4cc74eb9365d7ab14f4ee | 279 | hpp | C++ | src/vulkan/vulkan_command_buffer_utils.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/vulkan/vulkan_command_buffer_utils.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/vulkan/vulkan_command_buffer_utils.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | #pragma once
#include <vulkan/vulkan.h>
#include "vulkan_context_data.hpp"
namespace cl::vulkan {
VkCommandBuffer BeginSingleUseCommandBuffer(VulkanContextData* context);
void EndAndSubmitSingleUseCommandBuffer(VulkanContextData* context, VkCommandBuffer command_buffer);
}
| 21.461538 | 100 | 0.835125 | zfccxt |
d5c758979024e08ccd0a25c12cec633e6ff86edd | 1,994 | cc | C++ | cppnetlib/core/thread_pool.cc | tfzhang006/netlib | 1e3c2fb5f2cbb3a4786b4991a2fb3b0c973e5de5 | [
"MIT"
] | null | null | null | cppnetlib/core/thread_pool.cc | tfzhang006/netlib | 1e3c2fb5f2cbb3a4786b4991a2fb3b0c973e5de5 | [
"MIT"
] | null | null | null | cppnetlib/core/thread_pool.cc | tfzhang006/netlib | 1e3c2fb5f2cbb3a4786b4991a2fb3b0c973e5de5 | [
"MIT"
] | null | null | null | #include "thread_pool.h"
namespace cppnetlib {
// public
ThreadPool::ThreadPool(const std::string& name)
: running_(false), name_(name), max_queue_size_(0), mutex_(),
cond_not_empty_(mutex_), cond_not_full_(mutex_) {}
ThreadPool::~ThreadPool() {
if (running_)
Stop();
}
void ThreadPool::Start(int num... | 21.673913 | 75 | 0.644433 | tfzhang006 |
d5c77d46385762b64da1bdb9cb16aa8cec254c81 | 2,747 | hpp | C++ | src/ackward/core/ExceptionTranslator.hpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | src/ackward/core/ExceptionTranslator.hpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | src/ackward/core/ExceptionTranslator.hpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | #ifndef INCLUDE_BA_LOG_DETAIL_EXCEPTION_TRANSLATOR_HPP
#define INCLUDE_BA_LOG_DETAIL_EXCEPTION_TRANSLATOR_HPP
/** \file
This defines the central class used for exception-translation in ackward.
This should not be confused with `ExceptionTranslation.h/cpp`
which defined the methods and macros that are act... | 23.084034 | 78 | 0.630142 | abingham |
d5c9144b17e5b69329f37cf80ff4695302df2820 | 711 | cpp | C++ | CF/1624C.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | CF/1624C.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | CF/1624C.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | /*
/\ In The Name Of Allah /\
Author : Jawahiir Nabhan
*/
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
typedef long long ll;
const char nl = '\n';
int main()
{
int T; cin>> T;
while(T--)
{
int N; cin>> N;
vector <int> a(N);
map <int, int> mp;
fo... | 19.216216 | 60 | 0.38256 | jawahiir98 |
d5caee37ea5543147c9de80547b0e7d07ed97004 | 2,515 | cpp | C++ | apps/MatrixMultiply/loopCodelets.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | null | null | null | apps/MatrixMultiply/loopCodelets.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | null | null | null | apps/MatrixMultiply/loopCodelets.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2011-2014, University of Delaware
* 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 copyright notice,
* this... | 33.986486 | 87 | 0.668787 | randres2011 |
d5caf51dae8c002267657cc0d77740ba461241af | 1,847 | cpp | C++ | ace/FIFO.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | ace/FIFO.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | ace/FIFO.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | 1 | 2020-04-26T03:07:12.000Z | 2020-04-26T03:07:12.000Z | #include "ace/FIFO.h"
#if !defined (__ACE_INLINE__)
#include "ace/FIFO.inl"
#endif /* __ACE_INLINE__ */
#include "ace/Log_Category.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_sys_stat.h"
#include "ace/OS_NS_fcntl.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOO... | 24.626667 | 79 | 0.632918 | azerothcore |
d5cd225c4523956c54775e44203f3ce7aed161f7 | 6,182 | cpp | C++ | src/Lib/rfc2326/RtspMessage.cpp | miseri/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 1 | 2021-07-14T08:15:05.000Z | 2021-07-14T08:15:05.000Z | src/Lib/rfc2326/RtspMessage.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | null | null | null | src/Lib/rfc2326/RtspMessage.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 2 | 2021-07-14T08:15:02.000Z | 2021-07-14T08:56:10.000Z | #include "CorePch.h"
#include <rtp++/rfc2326/RtspMessage.h>
#include <limits>
#include <boost/regex.hpp>
#include <cpputil/Conversion.h>
#include <cpputil/FileUtil.h>
#include <rtp++/rfc2326/HeaderFields.h>
#include <rtp++/rfc2326/MessageBody.h>
namespace rtp_plus_plus
{
namespace rfc2326
{
boost::optional<RtspMessag... | 29.721154 | 148 | 0.619055 | miseri |
d5cf21c809df20c5eee8f64978bc39dc3a02ce75 | 1,306 | hxx | C++ | source/lib/public/LibPtv/TypeMemberInherited.hxx | selmentdev/pdb-type-viewer | d348aaeb04a8f15c2f09dbda95f5010f1d6709e1 | [
"MIT"
] | 12 | 2019-06-19T05:22:34.000Z | 2022-01-18T10:55:37.000Z | source/lib/public/LibPtv/TypeMemberInherited.hxx | selmentdev/pdb-type-viewer | d348aaeb04a8f15c2f09dbda95f5010f1d6709e1 | [
"MIT"
] | 14 | 2019-06-22T14:12:24.000Z | 2020-04-14T14:02:55.000Z | source/lib/public/LibPtv/TypeMemberInherited.hxx | selmentdev/pdb-type-viewer | d348aaeb04a8f15c2f09dbda95f5010f1d6709e1 | [
"MIT"
] | 2 | 2021-03-13T02:21:16.000Z | 2021-03-13T03:23:44.000Z | #include <LibPtv/BaseTypeMember.hxx>
#include <memory>
#include <vector>
#include <string>
#include <string_view>
namespace LibPdb
{
class TypeMemberInherited : public BaseTypeMember
{
private:
uint64_t m_Padding;
std::wstring m_Name;
std::vector<std::unique_ptr<BaseTypeMember>> m_M... | 23.745455 | 95 | 0.568147 | selmentdev |
d5daef9af21bf2f0b0075b9462e9f2bd7e337f06 | 4,278 | cpp | C++ | src/training/setcommandaction.cpp | AllegianceZone/Allegiance | ef69a16638fb35e34cbb51f6aee891080f71d38b | [
"MIT"
] | 11 | 2015-01-11T08:45:18.000Z | 2022-01-28T09:20:54.000Z | src/training/setcommandaction.cpp | AllegianceZone/Allegiance | ef69a16638fb35e34cbb51f6aee891080f71d38b | [
"MIT"
] | 15 | 2015-05-25T20:22:41.000Z | 2017-08-14T17:10:57.000Z | src/training/setcommandaction.cpp | FreeAllegiance/Allegiance-AZ | 1d8678ddff9e2efc79ed449de6d47544989bc091 | [
"MIT"
] | 3 | 2015-07-12T05:50:54.000Z | 2017-08-13T06:42:50.000Z | /*
** Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
**
** File: setcommandaction.cpp
**
** Author:
**
** Description:
** Implementation of the training library "setcommandaction" interface.
**
** History:
*/
#include "pch.h"
#include "SetCommandAction.h"
#include "TypeIDTarget.h"
#... | 42.356436 | 192 | 0.512623 | AllegianceZone |
d5daf3e4fb2b0d5200528e2a9d709d5e5cb670b1 | 6,953 | cpp | C++ | DeltaPlayground/window.cpp | vedard/DeltaEngine | 49296b8277023dc8cc656d0597624cf49254dcf0 | [
"MIT"
] | null | null | null | DeltaPlayground/window.cpp | vedard/DeltaEngine | 49296b8277023dc8cc656d0597624cf49254dcf0 | [
"MIT"
] | null | null | null | DeltaPlayground/window.cpp | vedard/DeltaEngine | 49296b8277023dc8cc656d0597624cf49254dcf0 | [
"MIT"
] | null | null | null | #include "window.hpp"
Window::Window() {
sf::ContextSettings settings;
settings.antialiasingLevel = 0;
settings.majorVersion = 3;
settings.minorVersion = 1;
create(sf::VideoMode(1366, 768), "Vincent", sf::Style::Default, settings);
this->setFramerateLimit(60);
font.loadFromFile("./res/Ubunt... | 40.424419 | 157 | 0.5425 | vedard |
d5dd1530cf2bd705c8e45952479e29b61b6f9666 | 4,132 | cpp | C++ | objdir/examples/sysc/pkt_switch/main.cpp | marcelungurean/systemc_crossbar | 44220d5fa22ef3bad584a325492e5829e768f240 | [
"Apache-2.0"
] | null | null | null | objdir/examples/sysc/pkt_switch/main.cpp | marcelungurean/systemc_crossbar | 44220d5fa22ef3bad584a325492e5829e768f240 | [
"Apache-2.0"
] | null | null | null | objdir/examples/sysc/pkt_switch/main.cpp | marcelungurean/systemc_crossbar | 44220d5fa22ef3bad584a325492e5829e768f240 | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... | 28.496552 | 79 | 0.635528 | marcelungurean |
d5dd335efcd6c8067f15baad800a29b0b3fff08c | 588 | hpp | C++ | include/helsing/TextFile.hpp | bobbaluba/PTG | c5d18b78aa84174e42e20a7b0ab8468bf4f2136f | [
"Zlib"
] | 12 | 2016-01-15T15:44:54.000Z | 2021-02-01T08:10:38.000Z | include/helsing/TextFile.hpp | bobbaluba/PTG | c5d18b78aa84174e42e20a7b0ab8468bf4f2136f | [
"Zlib"
] | null | null | null | include/helsing/TextFile.hpp | bobbaluba/PTG | c5d18b78aa84174e42e20a7b0ab8468bf4f2136f | [
"Zlib"
] | 2 | 2017-07-15T12:20:36.000Z | 2018-05-02T21:17:31.000Z | /**
* @file TextFile.hpp
* @date 12. sep. 2012
* @author Johan Klokkhammer Helsing
*/
#ifndef TEXTFILE_HPP
#define TEXTFILE_HPP
#include <string>
namespace helsing {
/** @brief Represents an plain text file
*
* Used to abstract away the horrible details of converting a text file to a string
*/
class TextFile... | 18.967742 | 83 | 0.712585 | bobbaluba |
d5ddaeb684c0e7a73728f15e6a263e94fd4a81f4 | 594 | cpp | C++ | kattis/toilet.cpp | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | 2 | 2021-04-05T14:26:37.000Z | 2021-06-10T04:22:01.000Z | kattis/toilet.cpp | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | null | null | null | kattis/toilet.cpp | terror/Solutions | 1ad33daec95b565a38ac4730261593bcf249ac86 | [
"CC0-1.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
string t, s;
cin >> t;
s = t;
int u = 0, d = 0, x = 0;
// some case work
for (int i = 1; i < s.length(); ++i) {
if (s[i] != s[i - 1])
++u, s[i - 1] = s[i];
if (s[i - 1] != 'U')
++u, s[i] = 'U';
}
s = t;
for (int i = 1; ... | 17.470588 | 40 | 0.333333 | terror |
d5ddbbcbc15e2683213aef1855bd6724543ccaed | 690 | cpp | C++ | 0108-convert-sorted-array-to-binary-search-tree.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | 106 | 2019-06-08T15:23:45.000Z | 2020-04-04T17:56:54.000Z | 0108-convert-sorted-array-to-binary-search-tree.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | null | null | null | 0108-convert-sorted-array-to-binary-search-tree.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | 3 | 2019-07-13T05:51:29.000Z | 2020-04-04T17:56:57.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
private:
TreeNode* buildTree(vector<int>& nums, int begin, int end) {
if (begin > end) return N... | 24.642857 | 64 | 0.544928 | Jamesweng |
d5e5451725a2ccbdc8763de084ddd824d3148d95 | 934 | hpp | C++ | tsplp/include/DependencyHelpers.hpp | sebrockm/mtsp-vrp | 28955855d253f51fcb9397a0b22c6774f66f8d55 | [
"MIT"
] | null | null | null | tsplp/include/DependencyHelpers.hpp | sebrockm/mtsp-vrp | 28955855d253f51fcb9397a0b22c6774f66f8d55 | [
"MIT"
] | null | null | null | tsplp/include/DependencyHelpers.hpp | sebrockm/mtsp-vrp | 28955855d253f51fcb9397a0b22c6774f66f8d55 | [
"MIT"
] | null | null | null | #pragma once
#include <xtensor/xtensor.hpp>
#include <span>
namespace tsplp
{
xt::xtensor<int, 2> CreateTransitiveDependencies(xt::xtensor<int, 2> weights);
class DependencyGraph
{
private:
std::vector<std::pair<size_t, size_t>> m_arcs;
std::vector<size_t> m_incoming;
std::ve... | 28.30303 | 82 | 0.653105 | sebrockm |
d5e65b8e70cfc01772e26ef7dd4e5bf720051a31 | 4,264 | hpp | C++ | src/Wallets/Wallet_KeyImageCache.hpp | j-berman/mymonero-libapp-cpp | 69a393803fe3f3112e347d170d473cfba42db50b | [
"BSD-3-Clause"
] | 5 | 2018-09-23T22:43:19.000Z | 2020-05-25T20:07:27.000Z | src/Wallets/Wallet_KeyImageCache.hpp | ipbc-dev/bittube-libapp-cpp | d41ea0693fff709ed23ad0e909c4d76d775d50a9 | [
"BSD-3-Clause"
] | 2 | 2018-10-15T22:42:49.000Z | 2019-04-19T20:34:53.000Z | src/Wallets/Wallet_KeyImageCache.hpp | ipbc-dev/bittube-libapp-cpp | d41ea0693fff709ed23ad0e909c4d76d775d50a9 | [
"BSD-3-Clause"
] | 21 | 2018-09-23T22:43:22.000Z | 2022-03-07T05:55:18.000Z | //
// Wallet_HostPollingController.hpp
// MyMonero
//
// Copyright (c) 2014-2019, MyMonero.com
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code... | 33.054264 | 99 | 0.723265 | j-berman |
d5e7c70f4dbe6d297a4bc3e1b9dce8a630077705 | 5,399 | cpp | C++ | gui/geometries/torusgeometry.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | 6 | 2021-11-12T15:03:53.000Z | 2022-01-28T18:30:33.000Z | gui/geometries/torusgeometry.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | gui/geometries/torusgeometry.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | // ObjectTalk Scripting Language
// Copyright (c) 1993-2022 Johan A. Goossens. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
// Include files
//
#include <cmath>
#include "ot/function.h"
#include "torusgeometry.h"
... | 22.780591 | 102 | 0.689757 | goossens |
d5ea800c0966a27b9512508ae573264e624fc67a | 715 | cpp | C++ | heartbeat.cpp | Jennal/goplay-client-cpp | d483d865d679f3c97a26ba862887b3d688e10ba1 | [
"MIT"
] | 1 | 2017-04-05T12:43:53.000Z | 2017-04-05T12:43:53.000Z | heartbeat.cpp | Jennal/goplay-client-cpp | d483d865d679f3c97a26ba862887b3d688e10ba1 | [
"MIT"
] | null | null | null | heartbeat.cpp | Jennal/goplay-client-cpp | d483d865d679f3c97a26ba862887b3d688e10ba1 | [
"MIT"
] | null | null | null | // Copyright (C) 2017 Jennal(jennalcn@gmail.com). All rights reserved.
//
// Licensed under the MIT License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://opensource.org/licenses/MIT
//
// Unless required by applicable law or agr... | 42.058824 | 83 | 0.744056 | Jennal |
d5f927405421571f15b128306df83d8757a932ce | 1,689 | hpp | C++ | src/server.hpp | olekolek1000/multipixel | 74760f92c6d9cf2be5f05cebc5b10780136f2662 | [
"BSD-3-Clause"
] | 4 | 2022-02-07T09:57:58.000Z | 2022-02-27T23:03:07.000Z | src/server.hpp | olekolek1000/multipixel | 74760f92c6d9cf2be5f05cebc5b10780136f2662 | [
"BSD-3-Clause"
] | null | null | null | src/server.hpp | olekolek1000/multipixel | 74760f92c6d9cf2be5f05cebc5b10780136f2662 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "command.hpp"
#include "util/event_queue.hpp"
#include "util/listener.hpp"
#include "util/mutex.hpp"
#include "ws_server.hpp"
#include <functional>
#include <map>
#include <memory>
#include <mutex>
#define COLOR_RED "\x1b[31m"
#define COLOR_GREEN "\x1b[32m"
#define COLOR_YELLOW "\x1b[33m"
#de... | 25.590909 | 86 | 0.756069 | olekolek1000 |
d5faff336d48711de85fb2e254ebcd431aa76fae | 1,073 | cpp | C++ | src/layer/dropout.cpp | liyemei/ncnn-master | 4a1a3c3924c962c457e863e385c3b636222d4fad | [
"BSD-3-Clause"
] | 31 | 2018-07-28T17:36:14.000Z | 2022-01-11T03:17:41.000Z | src/layer/dropout.cpp | liyemei/ncnn-master | 4a1a3c3924c962c457e863e385c3b636222d4fad | [
"BSD-3-Clause"
] | 3 | 2019-02-20T18:31:26.000Z | 2021-07-18T05:54:37.000Z | src/layer/dropout.cpp | liyemei/ncnn-master | 4a1a3c3924c962c457e863e385c3b636222d4fad | [
"BSD-3-Clause"
] | 13 | 2018-12-20T08:18:56.000Z | 2022-03-28T02:31:03.000Z | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... | 27.512821 | 92 | 0.738117 | liyemei |
d5fddb5eddfc3f1fba2299b5eac5c860c7143142 | 27,651 | cpp | C++ | src/plugins/http/gfal_http_copy.cpp | ShamrockLee/gfal2 | 218d4c475bb24a1314725df15c30970dbd6a3f92 | [
"Apache-2.0"
] | null | null | null | src/plugins/http/gfal_http_copy.cpp | ShamrockLee/gfal2 | 218d4c475bb24a1314725df15c30970dbd6a3f92 | [
"Apache-2.0"
] | null | null | null | src/plugins/http/gfal_http_copy.cpp | ShamrockLee/gfal2 | 218d4c475bb24a1314725df15c30970dbd6a3f92 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 34.868852 | 169 | 0.637481 | ShamrockLee |
d5feab617a521012025f1e59ae22928c63ba313e | 2,932 | hpp | C++ | source/utils/iToStr.hpp | jfy133/kASA | ba9ec2f350113665dc1ee0c04fc3ca8f947e7b68 | [
"BSL-1.0"
] | 19 | 2019-07-25T13:31:58.000Z | 2021-09-23T11:19:22.000Z | source/utils/iToStr.hpp | jfy133/kASA | ba9ec2f350113665dc1ee0c04fc3ca8f947e7b68 | [
"BSL-1.0"
] | 7 | 2019-04-04T13:20:58.000Z | 2021-04-20T18:51:21.000Z | source/utils/iToStr.hpp | jfy133/kASA | ba9ec2f350113665dc1ee0c04fc3ca8f947e7b68 | [
"BSL-1.0"
] | 4 | 2019-08-20T00:52:25.000Z | 2021-04-20T18:43:38.000Z | /***************************************************************************
* Part of kASA: https://github.com/SilvioWeging/kASA
*
* Copyright (C) 2020 Silvio Weging <silvio.weging@gmail.com>
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http:... | 24.638655 | 179 | 0.539905 | jfy133 |
9103160b0a683d7c6716b1dba11e81aac3648bb6 | 2,527 | cpp | C++ | libmetartc5/src/yangpush/YangPushMessageHandle.cpp | metartc/metaRTC | 7b3125c9244632c82c55aacd628e6f0d7b151488 | [
"MIT"
] | 136 | 2021-12-17T09:17:44.000Z | 2022-03-28T09:51:51.000Z | libmetartc5/src/yangpush/YangPushMessageHandle.cpp | metartc/metaRTC | 7b3125c9244632c82c55aacd628e6f0d7b151488 | [
"MIT"
] | 2 | 2021-12-24T02:00:53.000Z | 2022-03-28T02:40:12.000Z | libmetartc5/src/yangpush/YangPushMessageHandle.cpp | metartc/metaRTC | 7b3125c9244632c82c55aacd628e6f0d7b151488 | [
"MIT"
] | 40 | 2021-12-17T09:17:48.000Z | 2022-03-27T14:40:25.000Z | //
// Copyright (c) 2019-2022 yanggaofeng
//
#include "YangPushMessageHandle.h"
#include <yangutil/yang_unistd.h>
#include <yangutil/yangavinfotype.h>
#include <yangutil/sys/YangLog.h>
#include <yangpush/YangPushCommon.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
YangPushMessageHandle::YangPushMess... | 21.598291 | 213 | 0.708746 | metartc |
91038688d849e1dd6a82f0fef24f23b06cdd5db6 | 45,516 | hh | C++ | apps/rosetta/riflib/HydrophobicManager.hh | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 25 | 2019-07-23T01:03:48.000Z | 2022-03-31T04:16:08.000Z | apps/rosetta/riflib/HydrophobicManager.hh | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 13 | 2018-01-30T17:45:57.000Z | 2022-03-28T11:02:44.000Z | apps/rosetta/riflib/HydrophobicManager.hh | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 14 | 2018-02-08T01:42:28.000Z | 2022-03-31T12:56:17.000Z | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... | 36.61786 | 146 | 0.521399 | YaoYinYing |
910606a1c23d1e53f0323f0ad367e48d6e88d6b7 | 4,876 | cc | C++ | src/simutrans/obj/signal.cc | Andarix/simutrans_nightly | 2013a1610828a2fd078227d3452f2c307720c49d | [
"Artistic-1.0"
] | null | null | null | src/simutrans/obj/signal.cc | Andarix/simutrans_nightly | 2013a1610828a2fd078227d3452f2c307720c49d | [
"Artistic-1.0"
] | null | null | null | src/simutrans/obj/signal.cc | Andarix/simutrans_nightly | 2013a1610828a2fd078227d3452f2c307720c49d | [
"Artistic-1.0"
] | null | null | null | /*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
#include <stdio.h>
#include "../simdebug.h"
#include "../world/simworld.h"
#include "simobj.h"
#include "../obj/way/schiene.h"
#include "../ground/grund.h"
#include "../display/simimg.h"
#include "../dataobj/ribi.h"
... | 26.215054 | 157 | 0.636587 | Andarix |
91071c4ee387f6422d4480562674af37e6595c52 | 693 | cpp | C++ | Koulupeliprojekti/src/UI/Window/Button.cpp | Valtis/Peliprojekti-2013 | 56483e669e040e0180ea244077cbee578c034016 | [
"BSL-1.0"
] | null | null | null | Koulupeliprojekti/src/UI/Window/Button.cpp | Valtis/Peliprojekti-2013 | 56483e669e040e0180ea244077cbee578c034016 | [
"BSL-1.0"
] | null | null | null | Koulupeliprojekti/src/UI/Window/Button.cpp | Valtis/Peliprojekti-2013 | 56483e669e040e0180ea244077cbee578c034016 | [
"BSL-1.0"
] | null | null | null | #include "UI/Window/Button.h"
#include "UI/Window/TextElement.h"
#include "Graphics/TextureFactory.h"
Button::Button(SDL_Rect location, std::string text, Renderer *renderer)
{
SetLocation(location);
SetTexture(TextureFactory::CreateButton(location.w, location.h, renderer));
location.x = 0;
location.y ... | 22.354839 | 116 | 0.675325 | Valtis |
9108fde69875c9506dcf5f29b8e11872a708864d | 4,825 | cpp | C++ | samples/Hello/third-party/fuzzylite/fuzzylite/test/QuickTest.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | samples/Hello/third-party/fuzzylite/fuzzylite/test/QuickTest.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | samples/Hello/third-party/fuzzylite/fuzzylite/test/QuickTest.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | /*
fuzzylite (R), a fuzzy logic control library in C++.
Copyright (C) 2010-2017 FuzzyLite Limited. All rights reserved.
Author: Juan Rada-Vilela, Ph.D. <jcrada@fuzzylite.com>
This file is part of fuzzylite.
fuzzylite is free software: you can redistribute it and/or modify it under
the terms of the FuzzyLite Lic... | 37.403101 | 90 | 0.55544 | okocsis |
5111e6beaec72e2c66f23ca7b965aa78a9358631 | 14,582 | hh | C++ | Ghidra/Features/Decompiler/src/decompile/cpp/pcodeinject.hh | angriestalien/ghidra | 1cae5552f683291fe142a706c2efef91e3249da6 | [
"Apache-2.0"
] | 115 | 2020-04-29T22:58:59.000Z | 2022-03-21T05:42:12.000Z | Ghidra/Features/Decompiler/src/decompile/cpp/pcodeinject.hh | angriestalien/ghidra | 1cae5552f683291fe142a706c2efef91e3249da6 | [
"Apache-2.0"
] | 3 | 2020-05-25T11:55:04.000Z | 2021-07-03T01:51:23.000Z | Ghidra/Features/Decompiler/src/decompile/cpp/pcodeinject.hh | angriestalien/ghidra | 1cae5552f683291fe142a706c2efef91e3249da6 | [
"Apache-2.0"
] | 19 | 2020-04-29T12:29:46.000Z | 2022-03-10T02:41:17.000Z | /* ###
* IP: GHIDRA
*
* 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 writin... | 58.328 | 137 | 0.73625 | angriestalien |
5112740473cc145e32f9c57b0773fdee89cbf486 | 1,752 | cpp | C++ | src/Nazara/Utility/Joint.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 11 | 2019-11-27T00:40:43.000Z | 2020-01-29T14:31:52.000Z | src/Nazara/Utility/Joint.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 7 | 2019-11-27T00:29:08.000Z | 2020-01-08T18:53:39.000Z | src/Nazara/Utility/Joint.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 7 | 2019-11-27T10:27:40.000Z | 2020-01-15T17:43:33.000Z | // Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Utility module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Utility/Joint.hpp>
#include <Nazara/Utility/Skeleton.hpp>
#include <Nazara/Utility/Debug.hpp>
n... | 19.685393 | 92 | 0.740297 | jayrulez |
511569d0973fd6f16979cdbb42bf8107dfb37eee | 10,616 | cpp | C++ | src/image_api.cpp | rockchip-linux/ipcweb-backend | 1885a61babe060c16a84c172712146d4206361df | [
"BSD-3-Clause"
] | 1 | 2021-09-16T02:56:35.000Z | 2021-09-16T02:56:35.000Z | src/image_api.cpp | rockchip-linux/ipcweb-backend | 1885a61babe060c16a84c172712146d4206361df | [
"BSD-3-Clause"
] | 1 | 2021-07-08T03:34:02.000Z | 2021-07-08T03:34:02.000Z | src/image_api.cpp | rockchip-linux/ipcweb-backend | 1885a61babe060c16a84c172712146d4206361df | [
"BSD-3-Clause"
] | 2 | 2021-08-24T05:38:18.000Z | 2021-09-16T02:56:39.000Z | // Copyright 2019 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "image_api.h"
#include <dbserver.h>
#include <mediaserver.h>
namespace rockchip {
namespace cgi {
nlohmann::json image_specific... | 38.18705 | 79 | 0.695554 | rockchip-linux |
5115fa02db4f81959fdb4a121aa6b3e71144fe49 | 633 | hpp | C++ | apps/openmw/mwworld/cellfunctors.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwworld/cellfunctors.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwworld/cellfunctors.hpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #ifndef GAME_MWWORLD_CELLFUNCTORS_H
#define GAME_MWWORLD_CELLFUNCTORS_H
#include <vector>
#include <string>
#include "ptr.hpp"
namespace ESM
{
class CellRef;
}
namespace MWWorld
{
/// List all (Ogre-)handles, then reset RefData::mBaseNode to 0.
struct ListAndResetHandles
{
std::vector<Ogre::... | 18.617647 | 69 | 0.608215 | Bodillium |
511927bcbd36b65301d98d75ad898a02227d4736 | 3,843 | hh | C++ | src/net/Firewall.hh | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 8 | 2020-12-05T20:30:54.000Z | 2022-01-22T13:32:14.000Z | src/net/Firewall.hh | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 3 | 2020-10-28T22:15:27.000Z | 2021-01-27T14:43:41.000Z | src/net/Firewall.hh | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | null | null | null | // Copyright 2018-2020 Drexel University
// Author: Geoffrey Mainland <mainland@drexel.edu>
#ifndef FIREWALL_HH_
#define FIREWALL_HH_
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/if_ether.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <netinet/tcp.h>
#include ... | 24.322785 | 96 | 0.54827 | drexelwireless |
5119c1884ea9a5078131f42374fdc47548f6839e | 126 | cpp | C++ | SingleSource/Regression/C++/ofstream_ctor.cpp | roguedream/llvm-test-suite | 48b3213a211d2ae86da8834e8b7322778dd605bf | [
"Apache-2.0"
] | null | null | null | SingleSource/Regression/C++/ofstream_ctor.cpp | roguedream/llvm-test-suite | 48b3213a211d2ae86da8834e8b7322778dd605bf | [
"Apache-2.0"
] | null | null | null | SingleSource/Regression/C++/ofstream_ctor.cpp | roguedream/llvm-test-suite | 48b3213a211d2ae86da8834e8b7322778dd605bf | [
"Apache-2.0"
] | null | null | null | // PR449
#include <fstream>
int main() {
int iii = 0;
for(iii=0;iii<100;iii++){
std::ofstream X;
}
return 0;
}
| 11.454545 | 28 | 0.539683 | roguedream |
511ce50a7e16f770035707550904a775d0e7bd57 | 12,320 | cpp | C++ | lib/ocpp1_6/charge_point_state_machine.cpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | 9 | 2022-01-16T05:13:16.000Z | 2022-03-18T22:15:16.000Z | lib/ocpp1_6/charge_point_state_machine.cpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | null | null | null | lib/ocpp1_6/charge_point_state_machine.cpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | 3 | 2022-01-20T04:51:01.000Z | 2022-03-13T07:16:49.000Z | // SPDX-License-Identifier: Apache-2.0
// Copyright 2020 - 2022 Pionix GmbH and Contributors to EVerest
#include <ocpp1_6/charge_point_state_machine.hpp>
#include <ocpp1_6/enums.hpp>
#include <cstdint>
#include <stddef.h>
#include <stdexcept>
#include <utility>
#include <fsm/async.hpp>
namespace ocpp1_6 {
ChargePoin... | 44.8 | 120 | 0.690422 | EVerest |
511f240a2f4a3e433c34527b304b9ea79acfcd3b | 2,974 | hpp | C++ | include/gbGraphics/detail/DeviceMemoryAllocator_VMA.hpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | include/gbGraphics/detail/DeviceMemoryAllocator_VMA.hpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | include/gbGraphics/detail/DeviceMemoryAllocator_VMA.hpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | #ifndef GHULBUS_LIBRARY_INCLUDE_GUARD_GRAPHICS_DETAIL_DEVICE_MEMORY_ALLOCATOR_VMA_HPP
#define GHULBUS_LIBRARY_INCLUDE_GUARD_GRAPHICS_DETAIL_DEVICE_MEMORY_ALLOCATOR_VMA_HPP
/** @file
*
* @brief Device Memory Allocator based on GpuOpen Vulkan Memory Allocator.
* @author Andreas Weis (der_ghulbus@ghulbus-inc.de)
*/
#inc... | 39.653333 | 112 | 0.758911 | ComicSansMS |
5122f0c9dc39a692086070e94145bbc84bb94798 | 2,175 | cpp | C++ | predicate/tests/test_validate_graph.cpp | crustymonkey/ironbee | 8350b383244e33b18c7a7b6ba989f67ffcbd945a | [
"Apache-2.0"
] | 1 | 2019-12-22T21:08:35.000Z | 2019-12-22T21:08:35.000Z | predicate/tests/test_validate_graph.cpp | crustymonkey/ironbee | 8350b383244e33b18c7a7b6ba989f67ffcbd945a | [
"Apache-2.0"
] | null | null | null | predicate/tests/test_validate_graph.cpp | crustymonkey/ironbee | 8350b383244e33b18c7a7b6ba989f67ffcbd945a | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... | 27.884615 | 78 | 0.633563 | crustymonkey |
5125f6b7358a95073102f47a80aa2fc710bf0b84 | 10,439 | cc | C++ | internal/src/blam_slam/src/LOAM_loopClose.cc | saurabverma/GT_SLAM | 6940b8642d8a88fd90ccb47b3ef3a0efb898acaa | [
"BSD-3-Clause"
] | null | null | null | internal/src/blam_slam/src/LOAM_loopClose.cc | saurabverma/GT_SLAM | 6940b8642d8a88fd90ccb47b3ef3a0efb898acaa | [
"BSD-3-Clause"
] | null | null | null | internal/src/blam_slam/src/LOAM_loopClose.cc | saurabverma/GT_SLAM | 6940b8642d8a88fd90ccb47b3ef3a0efb898acaa | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2016, The Regents of the University of California (Regents).
* 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 a... | 32.724138 | 89 | 0.709551 | saurabverma |
512bb1eb97de640a5bd4072b1eb7272394ab00d6 | 469 | cpp | C++ | Arduino_Due/libraries/Video/Video.cpp | Avilla83/WAAC | 7caaf7058e337ddd915ec328f7e61810fd2b9119 | [
"BSD-2-Clause-FreeBSD"
] | 11 | 2018-01-28T22:30:29.000Z | 2021-01-17T12:19:45.000Z | Arduino_Due/libraries/Video/Video.cpp | Avilla83/WAAC | 7caaf7058e337ddd915ec328f7e61810fd2b9119 | [
"BSD-2-Clause-FreeBSD"
] | 19 | 2017-02-01T03:11:45.000Z | 2021-07-09T19:21:57.000Z | Arduino_Due/libraries/Video/Video.cpp | mistergreen/WAAC | e9127399dc8f8395bd5f243f6d630d9e3fbe24da | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2018-01-23T16:48:50.000Z | 2019-12-23T21:41:25.000Z | /*
Video
*/
// © 2noodles llc
// minh@2noodles.com
#include "Video.h"
#include "Device.h"
Video::Video(char *in_name, char *in_code) : Device()
{
//deviceID is automatically set my deviceDeleGate
strcpy(deviceName,in_name);
//classType inherit from base
strcpy(classType,"Video");
strcpy(co... | 13.027778 | 53 | 0.622601 | Avilla83 |
512ed5f0a2ff0ba30e3e26613691c73d381b2fbe | 43,844 | cpp | C++ | ext/stub/javax/swing/JComponent-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/javax/swing/JComponent-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/javax/swing/JComponent-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <javax/swing/JComponent.hpp>
#include <java/awt/Dimension.hpp>
#include <java/awt/Point.hpp>
#include <java/awt/Rectangle.hpp>
template<typename ComponentType, typename... Bases> struct SubArray;
namespace java
... | 35.732681 | 198 | 0.720669 | pebble2015 |
512f68939ab34aff12643cb78fc5be65e1bc0ca1 | 1,455 | cpp | C++ | Week-3/Day-19-longestDupSubstring.cpp | utkarshavardhana/june-leetcoding-challenge | 0d89ad3b42311f0366e167da3df4bc640adf9665 | [
"MIT"
] | 1 | 2020-06-02T06:45:50.000Z | 2020-06-02T06:45:50.000Z | Week-3/Day-19-longestDupSubstring.cpp | utkarshavardhana/june-leetcoding-challenge | 0d89ad3b42311f0366e167da3df4bc640adf9665 | [
"MIT"
] | null | null | null | Week-3/Day-19-longestDupSubstring.cpp | utkarshavardhana/june-leetcoding-challenge | 0d89ad3b42311f0366e167da3df4bc640adf9665 | [
"MIT"
] | null | null | null | class Solution {
public:
int p = INT_MAX / 26 / 26 * 26 - 1; // = 82595499
// order of 26 mod 82595499 is 11799354 > 50000, so this choice should result in minimum collision
string longestDupSubstring(string S) {
int hi = S.size(), lo = 0, idx = 0;
while (hi - lo > 1) {
au... | 37.307692 | 103 | 0.342268 | utkarshavardhana |
51323f0c15d2f3180f361cb4e5d28e33575a636d | 61,466 | cpp | C++ | src/tunnelbridge_cmd.cpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/tunnelbridge_cmd.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/tunnelbridge_cmd.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 35.924021 | 222 | 0.702844 | trademarks |
5134a925ef4e6fd7829dd6773444bac7c3702bf8 | 2,739 | cpp | C++ | competitive programming/leetcode/887. Super Egg Drop.cpp | sureshmangs/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | competitive programming/leetcode/887. Super Egg Drop.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | competitive programming/leetcode/887. Super Egg Drop.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | You are given K eggs, and you have access to a building with N floors from 1 to N.
Each egg is identical in function, and if an egg breaks, you cannot drop it again.
You know that there exists a floor F with 0 <= F <= N such that any egg dropped at a floor higher than F will break, and any egg dropped at or below flo... | 23.410256 | 172 | 0.511866 | sureshmangs |
513a78c75e7849d308639f9dc4bebddec36fee68 | 1,481 | cpp | C++ | src/lab_m1/Tema2/collisions3D.cpp | madalin17/EGC | 4bf4fbfb6b9f575708df42294091cd3873dda269 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/lab_m1/Tema2/collisions3D.cpp | madalin17/EGC | 4bf4fbfb6b9f575708df42294091cd3873dda269 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/lab_m1/Tema2/collisions3D.cpp | madalin17/EGC | 4bf4fbfb6b9f575708df42294091cd3873dda269 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #include "lab_m1/Tema2/collisions3d.h"
#include <iostream>
using namespace m1;
bool collisions3d::CheckCollisionRR(GameObject3d one, GameObject3d two) // AABB - AABB collision
{
bool collisionX = abs(one.Position.x - two.Position.x) <= (one.Size.x + two.Size.x);
bool collisionY = abs(one.Position.y - two.Po... | 41.138889 | 106 | 0.654288 | madalin17 |
513c2490f93d8d285cb47b79b306d6408fe13b5c | 20,260 | cpp | C++ | search.cpp | SethMMorton/pyicu | 910a75ebac6f6a4ee38f997320d0325230595e83 | [
"MIT"
] | null | null | null | search.cpp | SethMMorton/pyicu | 910a75ebac6f6a4ee38f997320d0325230595e83 | [
"MIT"
] | null | null | null | search.cpp | SethMMorton/pyicu | 910a75ebac6f6a4ee38f997320d0325230595e83 | [
"MIT"
] | null | null | null | /* ====================================================================
* Copyright (c) 2004-2010 Open Source Applications Foundation.
*
* 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 w... | 32.943089 | 116 | 0.613574 | SethMMorton |
5140c30d6c5490755f68b5098a6e6639ca68d43b | 313 | cpp | C++ | ZN/ZNFramework/Graphics/Platform/Direct3D12/CommandQueue.cpp | j-jiwon/ZNEngine | f642982feeb1a89424443c964de108982962e4b6 | [
"BSD-3-Clause"
] | null | null | null | ZN/ZNFramework/Graphics/Platform/Direct3D12/CommandQueue.cpp | j-jiwon/ZNEngine | f642982feeb1a89424443c964de108982962e4b6 | [
"BSD-3-Clause"
] | 1 | 2022-01-16T23:27:51.000Z | 2022-01-16T23:27:51.000Z | ZN/ZNFramework/Graphics/Platform/Direct3D12/CommandQueue.cpp | j-jiwon/ZNEngine | f642982feeb1a89424443c964de108982962e4b6 | [
"BSD-3-Clause"
] | null | null | null | #include "CommandQueue.h"
#include "SwapChain.h"
using namespace ZNFramework;
CommandQueue::CommandQueue(GraphicsDevice* device, ID3D12CommandQueue* queue)
: queue(queue)
, device(device)
{
}
ZNSwapChain* CommandQueue::CreateSwapChain(const ZNWindow* window)
{
return new SwapChain(device, this, window);
}
| 19.5625 | 77 | 0.773163 | j-jiwon |
5141af13904f51ab16b9971eb5adb126ea816aeb | 1,137 | cpp | C++ | LuoguCodes/P1308.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/P1308.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/P1308.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | //【P1308】统计单词数 - 洛谷 - 20
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
vector<string> strs;
string s1, st;
cin >> s1;
int found = 0, pos = -1, len = 0;
transform(begin(s1), end(s1), begin(s1), ::toupper);
while (cin.peek() != ';\n';) //rest';
ci... | 19.271186 | 69 | 0.496922 | Anguei |
5141bf07d094c1064e9ee96a29883e28ce2c80d3 | 497 | cpp | C++ | Baekjoon/5704.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/5704.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/5704.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main(void)
{
while (1)
{
string str;
getline(cin, str);
if (str == "*")
break;
int arr[26] = { 0, }, len;
len = str.length();
for (int i = 0; i < len; i++)
{
if (str[i] == ' ')
continue;
else
arr[(int)((char)str[i] - 'a')]+... | 14.617647 | 46 | 0.480885 | Twinparadox |
51458f451208ca3ba2cc051e5259cd284a15441f | 606 | cpp | C++ | mjolnir/omp/ProteinDNANonSpecificInteraction.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 12 | 2017-02-01T08:28:38.000Z | 2018-08-25T15:47:51.000Z | mjolnir/omp/ProteinDNANonSpecificInteraction.cpp | Mjolnir-MD/Mjolnir | 043df4080720837042c6b67a5495ecae198bc2b3 | [
"MIT"
] | 60 | 2019-01-14T08:11:33.000Z | 2021-07-29T08:26:36.000Z | mjolnir/omp/ProteinDNANonSpecificInteraction.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 8 | 2019-01-13T11:03:31.000Z | 2021-08-01T11:38:00.000Z | #include <mjolnir/omp/ProteinDNANonSpecificInteraction.hpp>
#ifndef MJOLNIR_SEPARATE_BUILD
#error "MJOLNIR_SEPARATE_BUILD flag is required"
#endif
namespace mjolnir
{
template class ProteinDNANonSpecificInteraction<OpenMPSimulatorTraits<double, UnlimitedBoundary> >;
template class ProteinDNANonSpecificInteracti... | 43.285714 | 105 | 0.853135 | yutakasi634 |
51465bc459c0c4b5b2d8ce983b42ed14c269137a | 1,146 | cpp | C++ | firmware/src/RichLabelWidget.cpp | galacticstudios/Logic-Meter | 17009d23a09ba12975af055a031fe84b317a8cc7 | [
"MIT"
] | 41 | 2021-01-23T00:40:56.000Z | 2022-01-14T12:34:33.000Z | firmware/src/RichLabelWidget.cpp | galacticstudios/Logic-Meter | 17009d23a09ba12975af055a031fe84b317a8cc7 | [
"MIT"
] | 3 | 2021-01-28T17:07:40.000Z | 2021-07-01T11:41:19.000Z | firmware/src/RichLabelWidget.cpp | galacticstudios/Logic-Meter | 17009d23a09ba12975af055a031fe84b317a8cc7 | [
"MIT"
] | 3 | 2021-01-28T17:16:45.000Z | 2021-01-29T01:59:49.000Z | /*
* File: RichLabelWidget.cpp
* Author: Bob
*
* Created on May 24, 2020, 11:22 AM
*/
extern "C"
{
#include "definitions.h"
}
#include "Display.h"
#include "RichLabelWidget.h"
RichLabelWidget::RichLabelWidget(laDrawSurfaceWidget *ds) :
_surface(ds)
{
_surface.Register(&_painter);
}
RichLabelWidget:... | 18.786885 | 61 | 0.50349 | galacticstudios |
514f7ed50eeb391b8b7ecb5cd75a337e1e5ef084 | 5,118 | cpp | C++ | FightingGameProject/GameObj.cpp | RoundBearChoi/CPP_FightingGame | 21d07caab82dd5ee0ad233886a36ef1fe93e25b6 | [
"Unlicense"
] | 8 | 2021-03-08T06:21:13.000Z | 2022-03-04T21:53:37.000Z | FightingGameProject/GameObj.cpp | RoundBearChoi/CPP_FightingGame | 21d07caab82dd5ee0ad233886a36ef1fe93e25b6 | [
"Unlicense"
] | null | null | null | FightingGameProject/GameObj.cpp | RoundBearChoi/CPP_FightingGame | 21d07caab82dd5ee0ad233886a36ef1fe93e25b6 | [
"Unlicense"
] | null | null | null | #include "GameObj.h"
namespace RB
{
class Fighter_0_HitReaction_Up;
class Fighter_0_HitReaction_Side;
GameObj::GameObj()
{
IF_COUT{ std::cout << "constructing GameObj: " << objData.GetCreationID() << std::endl; };
_stateController = new StateController();
collisionStay = new CollisionStay(&objData);
}
... | 28.592179 | 117 | 0.709652 | RoundBearChoi |
515b32de5a12e92406a10d4f8da17dc688ef9403 | 1,600 | cpp | C++ | cpp/Work8/T2.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | cpp/Work8/T2.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | cpp/Work8/T2.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
class Teacher {
public:
Teacher(string nam, int a, string t) {
name = nam;
age = a;
title = t;
}
void display() {
cout << "name:" << name << endl;
cout << "age" << age << endl;
cout << "title:" << tit... | 22.535211 | 156 | 0.525 | ljcbaby |
515b792dc0e78876dbb958c49753dffd57b81492 | 10,348 | cpp | C++ | Final/Dataset/B2016_Z4_Z2/student7791.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z4_Z2/student7791.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z4_Z2/student7791.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | /B 2016/2017, Zadaća 4, Zadatak 2
//Napomena: testovi ce biti dostupni dan pred rok!
#include <iostream>
#include <stdexcept>
#include <string>
using std::string;
using std::cout;
using std::cin;
class GradjaninBiH
{
private:
string cime_i_prezime;
long long int cjmbg;
GradjaninBiH *pok_n... | 30.982036 | 302 | 0.600213 | Team-PyRated |
5164e84fd11cb4926b3e7636746e37add9666b4b | 11,241 | cpp | C++ | Taav/UI/Ui_src/treemaker.cpp | armansafdari/Taav | a87fd488b8d0bff1c860451f78b277eaf6fbcc73 | [
"BSD-2-Clause"
] | null | null | null | Taav/UI/Ui_src/treemaker.cpp | armansafdari/Taav | a87fd488b8d0bff1c860451f78b277eaf6fbcc73 | [
"BSD-2-Clause"
] | null | null | null | Taav/UI/Ui_src/treemaker.cpp | armansafdari/Taav | a87fd488b8d0bff1c860451f78b277eaf6fbcc73 | [
"BSD-2-Clause"
] | null | null | null | #include "treemaker.h"
#include <qpushbutton.h>
#include <QStringList>
#include <QFile>
#include <QDebug>
#include <QStack>
#include <choosenode.h>
#include <fieldnode.h>
#include <typeinfo>
#include <pathnode.h>
#include <workfoldernode.h>
treeMaker::treeMaker(QWidget *parent) : QObject(parent)
{
... | 33.257396 | 128 | 0.466329 | armansafdari |
516592d4009b59cefbee6a9d98a96a9a84f51ab7 | 4,331 | cpp | C++ | folly/stats/test/DigestBuilderBenchmark.cpp | muralivemulapati/folly | d7808b52813448e4535455e87fbea838a2307ce7 | [
"Apache-2.0"
] | null | null | null | folly/stats/test/DigestBuilderBenchmark.cpp | muralivemulapati/folly | d7808b52813448e4535455e87fbea838a2307ce7 | [
"Apache-2.0"
] | null | null | null | folly/stats/test/DigestBuilderBenchmark.cpp | muralivemulapati/folly | d7808b52813448e4535455e87fbea838a2307ce7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 37.017094 | 79 | 0.587162 | muralivemulapati |
51672f4dd9188353fb97c943c0b4c758e556dc8b | 1,073 | cpp | C++ | src/Private/AnimSceneActions/RemoveTimerAction.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | src/Private/AnimSceneActions/RemoveTimerAction.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | src/Private/AnimSceneActions/RemoveTimerAction.cpp | heltena/KYEngine | 4ccb89d0b20683feb245ffe85dd34b6ffdc42c8e | [
"MIT"
] | null | null | null | #include <KYEngine/Core.h>
#include <KYEngine/Entity.h>
#include <KYEngine/Private/AnimSceneActions/RemoveTimerAction.h>
#include <KYEngine/SceneTimelineInfo.h>
#include <KYEngine/Utility/TiXmlHelper.h>
#include <stdexcept>
const std::string RemoveTimerAction::XML_NODE = "remove-timer";
RemoveTimerAction::RemoveTime... | 21.897959 | 91 | 0.767008 | heltena |
51685b0c9cf5edc57708adcbd6e873dba1e8aa30 | 16,193 | inl | C++ | include/containos/hashmap.inl | napina/containos | 9be97e2f768ffdbed1ec9f893b31c3c63b3ce81a | [
"MIT"
] | 2 | 2016-08-09T01:05:01.000Z | 2021-03-31T13:14:51.000Z | include/containos/hashmap.inl | napina/containos | 9be97e2f768ffdbed1ec9f893b31c3c63b3ce81a | [
"MIT"
] | null | null | null | include/containos/hashmap.inl | napina/containos | 9be97e2f768ffdbed1ec9f893b31c3c63b3ce81a | [
"MIT"
] | 2 | 2015-04-27T12:36:33.000Z | 2016-10-21T06:45:06.000Z | /*=============================================================================
Copyright (c) 2013 Ville Ruusutie
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 wi... | 33.114519 | 181 | 0.722967 | napina |
516e5b4bb8a6973df4a1ad4bb2519d025451e76e | 29,275 | inl | C++ | FFTL/Code/Source/Core/Math/NEON/Vector_NEON.inl | CoreyShay/FFTL | 1758020715e5b5b3c085c6429cf866b1e21c290a | [
"Unlicense"
] | 2 | 2017-06-02T11:13:31.000Z | 2020-05-28T18:40:37.000Z | FFTL/Code/Source/Core/Math/NEON/Vector_NEON.inl | CoreyShay/FFTL | 1758020715e5b5b3c085c6429cf866b1e21c290a | [
"Unlicense"
] | null | null | null | FFTL/Code/Source/Core/Math/NEON/Vector_NEON.inl | CoreyShay/FFTL | 1758020715e5b5b3c085c6429cf866b1e21c290a | [
"Unlicense"
] | null | null | null | #ifndef VECTOR_NEON_INL
#define VECTOR_NEON_INL
#else
#error "Already included"
#endif // !VECTOR_NEON_INL
#if defined(FFTL_ARM_NEON)
namespace FFTL
{
template<uint N>
FFTL_FORCEINLINE vecT<N>::vecT()
#if defined(FFTL_ENABLE_ASSERT)
// Fill with invalid stuff that will be more obvious if used accidentally
: f32... | 26.907169 | 150 | 0.694278 | CoreyShay |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.