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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0472d0630a2dae8a117b19afdef3fa0b5d0f4cd4 | 1,918 | cc | C++ | leetcode/leetcode_212.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | leetcode/leetcode_212.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | leetcode/leetcode_212.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
using namespace std;
bool search(vector<vector<char>> &board, int i, int j, const string &word, int idx){
if (idx == word.size()) {
return true;
}
const int a[4] = {1, -1, 0, 0};
const int b[4] ... | 21.550562 | 84 | 0.5 | math715 |
047a88ad9c4ac083808e9da8377a8272596f907f | 2,767 | cpp | C++ | ClientEngine/game/engine/Stage/Paths/PathSceneNodeAnimator.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | ClientEngine/game/engine/Stage/Paths/PathSceneNodeAnimator.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | ClientEngine/game/engine/Stage/Paths/PathSceneNodeAnimator.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | #include "PathSceneNodeAnimator.h"
#include "Core/NodeWorker.h"
#include "Core/GeometryWorker.h"
PathSceneNodeAnimator::PathSceneNodeAnimator(SharedParams_t params) : Base(params),
_targetSceneNode(NULL), _pathFinder(params, 128, 500.0f)
{
_speed = 0;
_prevTime = 0;
_targetDist = 0;
_completeAnimate = true;
_u... | 20.649254 | 102 | 0.725334 | twesd |
04811343e6197622b1098e9c4fc867bf8cffcb02 | 1,240 | cpp | C++ | src/Editor/GUI/Editors/CylinderShapeEditor.cpp | Chainsawkitten/Deathcap | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 3 | 2017-09-08T06:05:10.000Z | 2017-10-28T04:22:20.000Z | src/Editor/GUI/Editors/CylinderShapeEditor.cpp | Chainsawkitten/Deathcap | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 894 | 2017-08-30T09:57:28.000Z | 2018-01-30T12:35:38.000Z | src/Editor/GUI/Editors/CylinderShapeEditor.cpp | Chainsawkitten/LargeGameProjectEngine | 37ed5afccd3113d34612d89c6e6508e8da9a0d7f | [
"MIT"
] | 1 | 2020-11-06T23:59:58.000Z | 2020-11-06T23:59:58.000Z | #include "CylinderShapeEditor.hpp"
#include <Engine/Component/Shape.hpp>
#include <Engine/Manager/Managers.hpp>
#include <Engine/Manager/PhysicsManager.hpp>
#include <Engine/Physics/Shape.hpp>
#include <imgui.h>
namespace GUI {
void CylinderShapeEditor::Show(Component::Shape* comp) {
ImGui::Indent();
... | 27.555556 | 145 | 0.578226 | Chainsawkitten |
0485aff5d9e948ea3240c55248ac554c4c63b574 | 681 | cpp | C++ | AirCoolControll/AirCoolControll/DeviceInfo.cpp | TECOLTD/AirCoolControl_Desktop | 548f2ad93ec81a3ae058272e6a7d686b9360238c | [
"Unlicense"
] | null | null | null | AirCoolControll/AirCoolControll/DeviceInfo.cpp | TECOLTD/AirCoolControl_Desktop | 548f2ad93ec81a3ae058272e6a7d686b9360238c | [
"Unlicense"
] | null | null | null | AirCoolControll/AirCoolControll/DeviceInfo.cpp | TECOLTD/AirCoolControl_Desktop | 548f2ad93ec81a3ae058272e6a7d686b9360238c | [
"Unlicense"
] | 2 | 2016-04-24T10:24:20.000Z | 2016-11-07T17:39:19.000Z | #include "DeviceInfo.h"
DeviceInfo::DeviceInfo(const QString& uart, int id, int speed, const QString& ven, const QString& p, const QString& ver) :
m_uart(uart),
m_id(id),
m_speed(speed),
m_vendor(ven),
m_product(p),
m_version(ver),
m_empty(false)
{
}
DeviceInfo::DeviceInfo(con... | 20.029412 | 123 | 0.593245 | TECOLTD |
0488ffa134f786604b06702621066bc9a49ce056 | 1,953 | hpp | C++ | SpelJongEmu/src/AudioSweep.hpp | fallahn/speljongen | 57cb5e09eec7db8c21ee7b3e7943fa0a76738c51 | [
"Unlicense"
] | 17 | 2018-06-23T14:40:56.000Z | 2019-07-02T11:58:55.000Z | SpelJongEmu/src/AudioSweep.hpp | fallahn/speljongen | 57cb5e09eec7db8c21ee7b3e7943fa0a76738c51 | [
"Unlicense"
] | 3 | 2018-06-23T12:35:12.000Z | 2018-06-23T12:38:54.000Z | SpelJongEmu/src/AudioSweep.hpp | fallahn/speljongen | 57cb5e09eec7db8c21ee7b3e7943fa0a76738c51 | [
"Unlicense"
] | null | null | null | /*
MIT License
Copyright(c) 2017 Tomasz R?kawek(Coffee GB)
Copyright(c) 2018 Matt Marchant(Speljongen)
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 limita... | 26.753425 | 78 | 0.744496 | fallahn |
0489204e55f80436a784edcb092da934ad8dfc83 | 1,495 | cpp | C++ | libraries/ADS1x15/test/unit_test_001.cpp | jantje/Arduino | cd40e51b4eb9f8947aa58f278f61c9121d711fb0 | [
"MIT"
] | 37 | 2020-08-12T00:48:49.000Z | 2022-03-29T05:45:58.000Z | libraries/ADS1x15/test/unit_test_001.cpp | henriquerochamattos/Arduino | 3ace3a4e7b2b51d52d4c2ea363d23ebaacd9cc68 | [
"MIT"
] | 23 | 2020-08-04T15:40:13.000Z | 2022-03-15T14:37:36.000Z | libraries/ADS1x15/test/unit_test_001.cpp | henriquerochamattos/Arduino | 3ace3a4e7b2b51d52d4c2ea363d23ebaacd9cc68 | [
"MIT"
] | 9 | 2021-02-02T09:58:35.000Z | 2022-01-22T16:30:17.000Z | //
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// DATE: 2020-12-03
// PURPOSE: unit tests for the SHT31 temperature and humidity sensor
// https://github.com/RobTillaart/ADS1X15
//
// supported assertions
// ----------------------------
// assertEqual(expected, actual)
// asser... | 18.231707 | 68 | 0.652174 | jantje |
048aef05412c1a46c7323c970b175af84be3f38f | 1,000 | cpp | C++ | src/DebugInspector/WaitSnapshot.cpp | Sequential/DebugInspector | 46e116428a18e46235bd15b9439fcce1330845d1 | [
"MIT"
] | 3 | 2015-07-17T11:18:11.000Z | 2019-06-08T19:20:39.000Z | src/DebugInspector/WaitSnapshot.cpp | Sequential/DebugInspector | 46e116428a18e46235bd15b9439fcce1330845d1 | [
"MIT"
] | null | null | null | src/DebugInspector/WaitSnapshot.cpp | Sequential/DebugInspector | 46e116428a18e46235bd15b9439fcce1330845d1 | [
"MIT"
] | 3 | 2015-04-01T14:17:23.000Z | 2019-06-08T16:03:45.000Z | #include "StdAfx.h"
#include "WaitSnapshot.h"
WaitSnapshot::WaitSnapshot()
{
}
WaitSnapshot::~WaitSnapshot(void)
{
}
void WaitSnapshot::Initialize(ULONG64 KProcess, ULONG32 OSProcessId)
{
_KProcess = KProcess;
_OSProcessId = OSProcessId;
}
void WaitSnapshot::AddObject(ULONG64 address, UCHAR type... | 23.255814 | 126 | 0.75 | Sequential |
048d88154893da64cfe09d4301c00dbff8da9f13 | 3,027 | hpp | C++ | include/deps/Communicator.hpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | 1 | 2021-06-14T19:26:42.000Z | 2021-06-14T19:26:42.000Z | include/deps/Communicator.hpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | null | null | null | include/deps/Communicator.hpp | TetraSomia/liblapin | f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35 | [
"BSD-3-Clause"
] | null | null | null | // Jason Brillante "Damdoshi"
// Pentacle Technologie 2009-2013
//
// BPT NetCom
#ifndef __COMMUNICATOR_HPP__
# define __COMMUNICATOR_HPP__
# include <iostream>
# include <string>
# include <queue>
# include "NetAbs.hpp"
# include "Communication.hpp"
# define UNUSED_BUFFER ((char*)-1)
# defin... | 27.518182 | 77 | 0.619425 | TetraSomia |
048e36846d3f657754a859aa9f713b0d6a08964f | 1,440 | cpp | C++ | src/stats.cpp | salamanderrake/arasan-chess | a4893d9d39219fb3b7890f190084b2d13f164850 | [
"MIT"
] | null | null | null | src/stats.cpp | salamanderrake/arasan-chess | a4893d9d39219fb3b7890f190084b2d13f164850 | [
"MIT"
] | null | null | null | src/stats.cpp | salamanderrake/arasan-chess | a4893d9d39219fb3b7890f190084b2d13f164850 | [
"MIT"
] | null | null | null | // Copyright 1994-2008, 2012, 2013 by Jon Dart. All Rights Reserved.
#include "stats.h"
#include "scoring.h"
#include <iomanip>
Statistics::Statistics()
{
clear();
}
Statistics::~Statistics()
{
}
void Statistics::clear()
{
state = NormalState;
value = 0;
elapsed_time = 0;
int i;
best_line_image.cl... | 22.5 | 78 | 0.6375 | salamanderrake |
048e4cd4de47bb65c50c6b5d597efb64403d7e57 | 8,025 | cc | C++ | src/xenia/kernel/xobject.cc | hlide/xenia | a5dbec2f02f07cb9038317a5f275c6fe073d7f65 | [
"BSD-3-Clause"
] | 1 | 2016-11-18T23:13:21.000Z | 2016-11-18T23:13:21.000Z | src/xenia/kernel/xobject.cc | hlide/xenia | a5dbec2f02f07cb9038317a5f275c6fe073d7f65 | [
"BSD-3-Clause"
] | null | null | null | src/xenia/kernel/xobject.cc | hlide/xenia | a5dbec2f02f07cb9038317a5f275c6fe073d7f65 | [
"BSD-3-Clause"
] | null | null | null | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... | 29.722222 | 86 | 0.669408 | hlide |
048ef66bbaadc84f677fe21b7a5e834d28438b7a | 1,188 | cpp | C++ | construct-binary-tree-from-preorder-and-inorder-traversal.cpp | 5ooo/LeetCode | 5f250cd38696f581e5c891b8977f6c27eea26ffa | [
"MIT"
] | null | null | null | construct-binary-tree-from-preorder-and-inorder-traversal.cpp | 5ooo/LeetCode | 5f250cd38696f581e5c891b8977f6c27eea26ffa | [
"MIT"
] | null | null | null | construct-binary-tree-from-preorder-and-inorder-traversal.cpp | 5ooo/LeetCode | 5f250cd38696f581e5c891b8977f6c27eea26ffa | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 31.263158 | 116 | 0.568182 | 5ooo |
048fac2d7a639fb61d1e02bb07a38fa9c3b24d64 | 499 | cpp | C++ | src/display/src/Border.cpp | projectitis/mac | ea3d23f3352f6e193f23ffb7e3f296f4485e8501 | [
"MIT"
] | 1 | 2022-03-26T22:10:18.000Z | 2022-03-26T22:10:18.000Z | src/display/src/Border.cpp | projectitis/mac | ea3d23f3352f6e193f23ffb7e3f296f4485e8501 | [
"MIT"
] | 52 | 2021-05-26T08:10:45.000Z | 2022-03-30T07:23:51.000Z | src/display/src/Border.cpp | projectitis/mac | ea3d23f3352f6e193f23ffb7e3f296f4485e8501 | [
"MIT"
] | null | null | null | /**
* Border class "mac/μac"
* Author: Peter "Projectitis" Vullings <peter@projectitis.com>
* Distributed under the MIT licence
**/
#include "../Border.h"
namespace mac{
Border::Border(){}
Border::Border( float_t size, color888 color, float_t alpha ){
set( size, color, alpha );
}
void Border::set( float_t... | 19.96 | 65 | 0.649299 | projectitis |
04908b3598ec656dcc18d107684ec68d3c719807 | 3,185 | hpp | C++ | extra/opengl/texture.hpp | ronchaine/mush | 2fc31b27e27287ef90f5003c764d185083c2bdd5 | [
"Zlib"
] | 1 | 2019-04-19T19:28:07.000Z | 2019-04-19T19:28:07.000Z | extra/opengl/texture.hpp | ronchaine/mush | 2fc31b27e27287ef90f5003c764d185083c2bdd5 | [
"Zlib"
] | null | null | null | extra/opengl/texture.hpp | ronchaine/mush | 2fc31b27e27287ef90f5003c764d185083c2bdd5 | [
"Zlib"
] | null | null | null | #ifndef MUSH_EXTRA_GFX_TEXTURE
#define MUSH_EXTRA_GFX_TEXTURE
#include <cstdint>
#include <cassert>
namespace mush::extra::opengl
{
class Texture
{
private:
GLuint texture;
uint32_t width;
uint32_t height;
public:
Texture() : textur... | 29.490741 | 102 | 0.505495 | ronchaine |
049d6fe7767e8bc06a907a9342a54123d9673908 | 146 | hpp | C++ | include/global.hpp | archer219/VAC-Bypass-Injector | 8de7b9619e0a585e8882c582ec1a9a3bcd4757cf | [
"MIT"
] | 9 | 2021-04-19T15:18:14.000Z | 2021-12-08T13:08:43.000Z | include/global.hpp | womblee/VAC-Bypass-Injector | cb78941a502d39d82f8ba96b549af523bb8cdc8a | [
"MIT"
] | 4 | 2021-03-14T09:09:25.000Z | 2022-01-05T13:15:30.000Z | include/global.hpp | womblee/VAC-Bypass-Injector | cb78941a502d39d82f8ba96b549af523bb8cdc8a | [
"MIT"
] | 4 | 2021-04-30T10:26:38.000Z | 2021-09-19T19:58:26.000Z | #pragma once
#include "nt.hpp"
namespace global
{
int error( const std::string_view& err );
void free_resources( );
} // namespace global | 18.25 | 45 | 0.684932 | archer219 |
049e8012c29fd85e7537a68e51e23c0011c23397 | 9,746 | cpp | C++ | src/texture-analysis/texture-analysisDlg.cpp | d8euAI8sMs/tip-2-texture-analysis | e0556026a3b7f80ebe89fc1caee4caed69c0e2de | [
"Apache-2.0"
] | null | null | null | src/texture-analysis/texture-analysisDlg.cpp | d8euAI8sMs/tip-2-texture-analysis | e0556026a3b7f80ebe89fc1caee4caed69c0e2de | [
"Apache-2.0"
] | null | null | null | src/texture-analysis/texture-analysisDlg.cpp | d8euAI8sMs/tip-2-texture-analysis | e0556026a3b7f80ebe89fc1caee4caed69c0e2de | [
"Apache-2.0"
] | null | null | null | // texture-analysisDlg.cpp : implementation file
//
#include "stdafx.h"
#include "texture-analysis.h"
#include "texture-analysisDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CTextureAnalysisDlg dialog
CTextureAnalysisDlg::CTextureAnalysisDlg(CWnd* pParent /*=NULL*/)
... | 36.916667 | 104 | 0.679356 | d8euAI8sMs |
04a0b24aee5f464137302f8c945cdfda90fe8b62 | 1,349 | cpp | C++ | src/cl_gl_context_windows.cpp | micma909/CLFFT-TessendorfOcean | 9eddaffc600337b6e03bc14e1ad7cdbc8a118997 | [
"MIT"
] | 2 | 2021-05-07T01:39:45.000Z | 2021-07-07T07:04:33.000Z | src/cl_gl_context_windows.cpp | micma909/CLFFT-TessendorfOcean | 9eddaffc600337b6e03bc14e1ad7cdbc8a118997 | [
"MIT"
] | null | null | null | src/cl_gl_context_windows.cpp | micma909/CLFFT-TessendorfOcean | 9eddaffc600337b6e03bc14e1ad7cdbc8a118997 | [
"MIT"
] | 1 | 2020-01-11T01:15:03.000Z | 2020-01-11T01:15:03.000Z | #include "cl_gl_context_windows.h"
#include "cl_helper.h"
#include <algorithm>
CL::gl_context::gl_context(const CL::device &device, const CL::platform& platform, std::ostream *stream){
std::vector<cl_device_id> vec;
vec.push_back(device.handle());
init(vec, platform.handle());
}
CL::gl_context::gl_context(const st... | 28.702128 | 119 | 0.699036 | micma909 |
04a556a10af8d60ed1e0893b961c4caf4e77478b | 781 | cpp | C++ | leetcode.com/Biweekly Contest 22/3/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/Biweekly Contest 22/3/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/Biweekly Contest 22/3/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
class Solution {
private:
inline int get_steps(int num) {
int steps = 0;
while (num != 1) {
++steps;
if (num & 1)
num = num * 3 + 1;
else
num /= 2;
}
return steps;
}
public:
int g... | 18.595238 | 64 | 0.526248 | sky-bro |
04a8ed5925f6d99cce9c5cbc1532237829f372af | 2,925 | cpp | C++ | DGEngine.core/src/SFML/CompositeSprite.cpp | dgcor/Columns | 328c7a72a6feefeb863fe17593583c71c47f6182 | [
"Zlib"
] | 4 | 2021-02-06T01:13:20.000Z | 2021-04-19T12:41:43.000Z | DGEngine.core/src/SFML/CompositeSprite.cpp | dgengin/Columns | 328c7a72a6feefeb863fe17593583c71c47f6182 | [
"Zlib"
] | null | null | null | DGEngine.core/src/SFML/CompositeSprite.cpp | dgengin/Columns | 328c7a72a6feefeb863fe17593583c71c47f6182 | [
"Zlib"
] | 1 | 2021-01-02T20:27:12.000Z | 2021-01-02T20:27:12.000Z | #include "CompositeSprite.h"
CompositeSprite::CompositeSprite(const TextureInfo& ti)
{
setTexture(ti);
}
CompositeSprite::CompositeSprite(const std::vector<TextureInfo>& ti, bool drawAfter)
{
setTexture(ti, drawAfter);
}
void CompositeSprite::setPosition(const sf::Vector2f& position_)
{
sprite.setPosition(positio... | 21.992481 | 94 | 0.717949 | dgcor |
04ab858d43084a9f85f6a8b75d5e199a2a93ce21 | 3,289 | cpp | C++ | console/titlebar.cpp | ancientlore/hermit | 0b6b5b3e364fe9a7080517a7f3ddb8cdb03f5b14 | [
"MIT"
] | 1 | 2020-07-15T19:39:49.000Z | 2020-07-15T19:39:49.000Z | console/titlebar.cpp | ancientlore/hermit | 0b6b5b3e364fe9a7080517a7f3ddb8cdb03f5b14 | [
"MIT"
] | null | null | null | console/titlebar.cpp | ancientlore/hermit | 0b6b5b3e364fe9a7080517a7f3ddb8cdb03f5b14 | [
"MIT"
] | null | null | null | // TitleBar class
// Copyright (C) 1996 Michael D. Lore All Rights Reserved
#include <string.h>
#include "console/screen.h"
TitleBar::TitleBar (Screen& screen) : Window (screen), mText (0), mTail (0), mTailWidth (0)
{
myScreen.getSize (mWidth, mY);
mY = 0;
draw ();
}
TitleBar::~TitleBar (... | 24.729323 | 94 | 0.581028 | ancientlore |
04abba687090b5a585d240ab6bc2c4a96425efa3 | 647 | cpp | C++ | source/gui/HUD.cpp | codergal89/moon-buggy-2d | 5fe9935c38577555e4e8f95de8fcc34b847d87eb | [
"MIT"
] | null | null | null | source/gui/HUD.cpp | codergal89/moon-buggy-2d | 5fe9935c38577555e4e8f95de8fcc34b847d87eb | [
"MIT"
] | 5 | 2020-10-16T16:49:04.000Z | 2020-10-16T21:38:44.000Z | source/gui/HUD.cpp | codergal89/moon-buggy-2d | 5fe9935c38577555e4e8f95de8fcc34b847d87eb | [
"MIT"
] | null | null | null | #include "gui/HUD.hpp"
#include <Godot.hpp>
#include <Label.hpp>
#include <String.hpp>
namespace moon_buggy
{
auto HUD::_register_methods() -> void
{
godot::register_method("_ready", &HUD::_ready);
godot::register_method("set_level_number", &HUD::set_level_number);
}
auto HUD::_init() -> void
{
... | 20.870968 | 83 | 0.686244 | codergal89 |
04af02892be03a008245520e4a872ff3c7882308 | 5,736 | hpp | C++ | external/range-v3/include/range/v3/view/reverse.hpp | VladPodilnyk/kmeans-cpp | bb8843698a034752fe612fa872403a76a34ab82e | [
"MIT"
] | null | null | null | external/range-v3/include/range/v3/view/reverse.hpp | VladPodilnyk/kmeans-cpp | bb8843698a034752fe612fa872403a76a34ab82e | [
"MIT"
] | null | null | null | external/range-v3/include/range/v3/view/reverse.hpp | VladPodilnyk/kmeans-cpp | bb8843698a034752fe612fa872403a76a34ab82e | [
"MIT"
] | null | null | null | /// \file
// Range v3 library
//
// Copyright Eric Niebler 2014-present
//
// Use, modification and distribution is subject to 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)
//
// Project home: https://github.com/ericniebler... | 34.142857 | 98 | 0.565551 | VladPodilnyk |
04b21ee2d8606440f6f84b51bbf005ba008d646b | 722 | cpp | C++ | src/lib/metacall/bound_meta_call.cpp | captainurist/qnob | 3cae9e17f5c266d9583d2e90253de65514d08a0d | [
"MIT"
] | 1 | 2021-05-16T03:55:15.000Z | 2021-05-16T03:55:15.000Z | src/lib/metacall/bound_meta_call.cpp | captainurist/qnob | 3cae9e17f5c266d9583d2e90253de65514d08a0d | [
"MIT"
] | null | null | null | src/lib/metacall/bound_meta_call.cpp | captainurist/qnob | 3cae9e17f5c266d9583d2e90253de65514d08a0d | [
"MIT"
] | null | null | null | #include "bound_meta_call.h"
#include "meta_object_extension.h"
#include "meta_call_exception.h"
void BoundMetaCall::bind(QObject* target, QByteArray method, const QVariantList& args) {
m_target = nullptr;
m_method = MetaObjectExtension::forObject(target)->methodByName(method);
if (!m_method.isValid())
... | 30.083333 | 141 | 0.721607 | captainurist |
04b4961023460907991127d5060f2375e749f032 | 1,972 | cpp | C++ | Interesting Problems/Graph/DFS normal and max people use it.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | Interesting Problems/Graph/DFS normal and max people use it.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | Interesting Problems/Graph/DFS normal and max people use it.cpp | TiwariAnil/Algorithmic_Puzzles | 13a6b2ed8e8fd0176b9b58c073b2e9847e7ba774 | [
"MIT"
] | null | null | null | // Calculated root node sexy :* :* :* :* :*
//
OTher one , for left up right down :)
int dfs( int x, int y)
{
if (x==ex && y==ey)
{
FLAG=1;
return 1; // success
}
visit[x][y]=1;
for (int i=-1; i<2; i++)
for(int j=-1; j<2; j++)
{
... | 18.780952 | 100 | 0.407201 | TiwariAnil |
04b4c424dce66b25cad5c99e591a684e93d718af | 3,983 | hpp | C++ | include/boost/geometry/extensions/triangulation/strategies/cartesian/side_robust.hpp | BoostGSoC19/geometry | bad1b9c5a2f4f458284a912a848a25e73c28014b | [
"BSL-1.0"
] | 1 | 2020-01-31T19:33:37.000Z | 2020-01-31T19:33:37.000Z | include/boost/geometry/extensions/triangulation/strategies/cartesian/side_robust.hpp | BoostGSoC19/geometry | bad1b9c5a2f4f458284a912a848a25e73c28014b | [
"BSL-1.0"
] | null | null | null | include/boost/geometry/extensions/triangulation/strategies/cartesian/side_robust.hpp | BoostGSoC19/geometry | bad1b9c5a2f4f458284a912a848a25e73c28014b | [
"BSL-1.0"
] | 3 | 2019-11-20T12:45:45.000Z | 2021-03-29T04:54:35.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2019 Tinko Bartels, Berlin, Germany.
// Use, modification and distribution is subject to 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 BOOST_GEOMETRY... | 38.298077 | 613 | 0.669596 | BoostGSoC19 |
04b8c9304c91d22013dbd50ae470798767a1bc1d | 4,255 | cpp | C++ | lib/types.cpp | seahorn/crab | 82e3d9c94a3b112d4db344e34ae9f789b51d0ec0 | [
"Apache-2.0"
] | 152 | 2016-02-28T06:04:02.000Z | 2022-03-30T10:44:56.000Z | lib/types.cpp | seahorn/crab | 82e3d9c94a3b112d4db344e34ae9f789b51d0ec0 | [
"Apache-2.0"
] | 43 | 2017-07-03T06:25:19.000Z | 2022-03-23T21:09:32.000Z | lib/types.cpp | seahorn/crab | 82e3d9c94a3b112d4db344e34ae9f789b51d0ec0 | [
"Apache-2.0"
] | 28 | 2015-11-22T15:51:52.000Z | 2022-01-30T00:46:57.000Z | #include <crab/domains/types.hpp>
#include <crab/support/debug.hpp>
namespace crab {
namespace domains {
type_value::type_value()
: m_type(boost::none), m_is_bottom(false) {}
type_value::type_value(bool is_bottom)
: m_type(boost::none), m_is_bottom(is_bottom) {}
type_value::type_value(variable_type ty) : m_... | 25.029412 | 76 | 0.592479 | seahorn |
04ba2ffbe623d83f59a840c358b19899f729d021 | 122 | cpp | C++ | clock.cpp | ivan-matveev/slithercc | 945dbd882ecb62750757acb1813b2427a5d86a66 | [
"MIT"
] | 1 | 2021-05-07T13:34:53.000Z | 2021-05-07T13:34:53.000Z | clock.cpp | ivan-matveev/slithercc | 945dbd882ecb62750757acb1813b2427a5d86a66 | [
"MIT"
] | null | null | null | clock.cpp | ivan-matveev/slithercc | 945dbd882ecb62750757acb1813b2427a5d86a66 | [
"MIT"
] | null | null | null | #include "clock.h"
uint64_t run_time_us()
{
static uint64_t run_start = uptime_us();
return uptime_us() - run_start;
}
| 15.25 | 41 | 0.721311 | ivan-matveev |
04babb3651ef058f075e77fd7ac9f4399c370a1b | 272 | cpp | C++ | libs/core/render/src/d3d12/detail/bksge_core_render_d3d12_detail_hlsl_texture.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/src/d3d12/detail/bksge_core_render_d3d12_detail_hlsl_texture.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/src/d3d12/detail/bksge_core_render_d3d12_detail_hlsl_texture.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file bksge_core_render_d3d12_detail_hlsl_texture.cpp
*
* @brief HlslTexture クラスの実装
*
* @author myoukaku
*/
#include <bksge/fnd/config.hpp>
#if !defined(BKSGE_HEADER_ONLY)
#include <bksge/core/render/d3d12/detail/inl/hlsl_texture_inl.hpp>
#endif
| 20.923077 | 67 | 0.720588 | myoukaku |
04bba8ff0d6c74abdf0b278018ba93379ce39ca7 | 2,098 | hpp | C++ | src/gbm.hpp | NPS-TECH/luacxx | e5ba2a1be7c54538a0d8ee86c875f05b015b0990 | [
"MIT"
] | null | null | null | src/gbm.hpp | NPS-TECH/luacxx | e5ba2a1be7c54538a0d8ee86c875f05b015b0990 | [
"MIT"
] | null | null | null | src/gbm.hpp | NPS-TECH/luacxx | e5ba2a1be7c54538a0d8ee86c875f05b015b0990 | [
"MIT"
] | null | null | null | #ifndef luacxx_gbm_INCLUDED
#define luacxx_gbm_INCLUDED
#include "stack.hpp"
#include "algorithm.hpp"
#include "convert/numeric.hpp"
#include "convert/callable.hpp"
#include "convert/string.hpp"
#include <gbm.h>
/*
=head1 NAME
Mesa gbm 10.1.5 - http://lists.freedesktop.org/archives/mesa-dev/2011-June/008726.html
... | 30.405797 | 86 | 0.72021 | NPS-TECH |
04c1bfdab6546dbf7510af88566b0cf2b029bf69 | 7,654 | cpp | C++ | Core/Contents/Source/PolyCoreInput.cpp | MattDBell/Polycode | fc66547813a34a2388c9a45ec0b69919ce3253b2 | [
"MIT"
] | 1 | 2020-04-30T23:05:26.000Z | 2020-04-30T23:05:26.000Z | Core/Contents/Source/PolyCoreInput.cpp | MattDBell/Polycode | fc66547813a34a2388c9a45ec0b69919ce3253b2 | [
"MIT"
] | null | null | null | Core/Contents/Source/PolyCoreInput.cpp | MattDBell/Polycode | fc66547813a34a2388c9a45ec0b69919ce3253b2 | [
"MIT"
] | null | null | null | /*
Copyright (C) 2011 by Ivan Safrin
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, publish, distri... | 28.992424 | 93 | 0.714528 | MattDBell |
04c70271c42258d05d918697a00b67eaacf463a1 | 2,575 | cpp | C++ | GTD/src/GTD/Renderer/OpenGLTexture.cpp | dunn0052/GTD | 24081069c4418ea7357301dc02ab417aff9990d7 | [
"Apache-2.0"
] | null | null | null | GTD/src/GTD/Renderer/OpenGLTexture.cpp | dunn0052/GTD | 24081069c4418ea7357301dc02ab417aff9990d7 | [
"Apache-2.0"
] | null | null | null | GTD/src/GTD/Renderer/OpenGLTexture.cpp | dunn0052/GTD | 24081069c4418ea7357301dc02ab417aff9990d7 | [
"Apache-2.0"
] | null | null | null | #include "../PCH/PCH.h"
#include "OpenGLTexture.h"
#include <glad/glad.h>
#include "stb_image.h"
#include "../include/Logger.h"
namespace GTD
{
OpenGLTexture2D::OpenGLTexture2D(uint32_t width, uint32_t height)
: m_Width(width), m_Height(height), m_InternalFormat(GL_RGBA8), m_DataFormat(GL_RGBA)
{
// create and s... | 29.94186 | 102 | 0.760777 | dunn0052 |
04c885821966e591e73d8eda5c932305ac90a0a4 | 2,843 | cpp | C++ | snippets/cpp/VS_Snippets_CLR/CounterCreationDataCollection_Contains/CPP/countercreationdatacollection_contains.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-03-12T19:26:36.000Z | 2022-01-10T21:45:33.000Z | snippets/cpp/VS_Snippets_CLR/CounterCreationDataCollection_Contains/CPP/countercreationdatacollection_contains.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR/CounterCreationDataCollection_Contains/CPP/countercreationdatacollection_contains.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z | // System::Diagnostics->CounterCreationDataCollection::Contains(CounterCreationData)
// System::Diagnostics->CounterCreationDataCollection::Remove(CounterCreationData)
/*
The following program demonstrates 'Contains' and 'Remove' methods of
'CounterCreationDataCollection' class. An instance of 'CounterCreationDataColl... | 35.5375 | 93 | 0.632431 | BohdanMosiyuk |
04cb64573d93388529faa43c429d19f6bec8ae22 | 1,289 | cpp | C++ | src/Broadcaster2006/Source/RSTime.cpp | pedroroque/DigitalBroadcaster | 279e65b348421dcd8db53ebb588154b85dc169e9 | [
"MIT"
] | null | null | null | src/Broadcaster2006/Source/RSTime.cpp | pedroroque/DigitalBroadcaster | 279e65b348421dcd8db53ebb588154b85dc169e9 | [
"MIT"
] | null | null | null | src/Broadcaster2006/Source/RSTime.cpp | pedroroque/DigitalBroadcaster | 279e65b348421dcd8db53ebb588154b85dc169e9 | [
"MIT"
] | null | null | null | // RSTime.cpp : implementation file
//
#include "stdafx.h"
#include "..\include\RSTime.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRSTime
IMPLEMENT_DYNAMIC(CRSTime, CRecordset)
C... | 18.955882 | 77 | 0.615981 | pedroroque |
04cbdd3df98f3610123ce0e473800930633db46e | 751 | cpp | C++ | Isolate_Engine_Reborn/Source/M_Time.cpp | FranGV98/Isolate_Engine_Reborn | 9d435205954db237929417242b391f3bbcc76e50 | [
"MIT"
] | null | null | null | Isolate_Engine_Reborn/Source/M_Time.cpp | FranGV98/Isolate_Engine_Reborn | 9d435205954db237929417242b391f3bbcc76e50 | [
"MIT"
] | null | null | null | Isolate_Engine_Reborn/Source/M_Time.cpp | FranGV98/Isolate_Engine_Reborn | 9d435205954db237929417242b391f3bbcc76e50 | [
"MIT"
] | null | null | null | #include "M_Time.h"
#include "Application.h"
#include "Globals.h"
M_Time::M_Time(bool is_Active) : Module("TimeManager", is_Active)
{
}
M_Time::~M_Time() {}
UPDATE_STATUS M_Time::Update(float dt)
{
fps++;
real_dt = App->GetDt();
real_time += real_dt;
return UPDATE_STATUS::CONTINUE;
}
bool M_Time::CleanUp()
... | 11.920635 | 65 | 0.696405 | FranGV98 |
04d084e63a87a315f247c65c76dc1293201c85f0 | 13,914 | hh | C++ | LiteCore/Storage/DataFile.hh | tophatch/couchbase-lite-core | f457d9bc74af276516d868b61a48b81b5d717e5c | [
"Apache-2.0"
] | null | null | null | LiteCore/Storage/DataFile.hh | tophatch/couchbase-lite-core | f457d9bc74af276516d868b61a48b81b5d717e5c | [
"Apache-2.0"
] | null | null | null | LiteCore/Storage/DataFile.hh | tophatch/couchbase-lite-core | f457d9bc74af276516d868b61a48b81b5d717e5c | [
"Apache-2.0"
] | null | null | null | //
// DataFile.hh
//
// Copyright 2014-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software will be gover... | 40.923529 | 106 | 0.625701 | tophatch |
04d1522739de5ea6b2e87f23a095f60993ccad01 | 858 | cpp | C++ | PE/ch05/5.10.cpp | DustOfStars/CppPrimerPlus6 | 391e3ad76eaa99f331981cee72139d83115fc93d | [
"MIT"
] | null | null | null | PE/ch05/5.10.cpp | DustOfStars/CppPrimerPlus6 | 391e3ad76eaa99f331981cee72139d83115fc93d | [
"MIT"
] | null | null | null | PE/ch05/5.10.cpp | DustOfStars/CppPrimerPlus6 | 391e3ad76eaa99f331981cee72139d83115fc93d | [
"MIT"
] | null | null | null | /*
* Write a program using nested loops that asks the user to enter a value
* for the number of rows to display. It should then display that many rows
* of asterisks, with one asterisk in the first row, two in the second row,
* and so on. For each row, the asterisks are preceded by the number of
* periods needed t... | 26.8125 | 75 | 0.560606 | DustOfStars |
04d15aeab3c4483035e17633db0a1fec25ede30d | 4,054 | inl | C++ | src/misc/Journal.inl | hermanndetz/xtalsim | f8bb841e504d0f578334e21391f55dff474ae5d7 | [
"MIT"
] | null | null | null | src/misc/Journal.inl | hermanndetz/xtalsim | f8bb841e504d0f578334e21391f55dff474ae5d7 | [
"MIT"
] | null | null | null | src/misc/Journal.inl | hermanndetz/xtalsim | f8bb841e504d0f578334e21391f55dff474ae5d7 | [
"MIT"
] | null | null | null | /**
Copyright (C) 2018 Hermann Detz and Juergen Maier
This software may be modified and distributed under the terms
of the MIT license. See the LICENSE file for details.
*/
#ifndef __JOURNAL_INL__
#define __JOURNAL_INL__
template <class T>
Journal<T>::Journal(const std::string &name,
const std::string &descrip... | 26.496732 | 111 | 0.513567 | hermanndetz |
04d313fa6488fd584489d01e37a023eca6da146f | 1,788 | hpp | C++ | modules/type/complex/base/include/nt2/boolean/functions/complex/generic/if_zero_else.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/type/complex/base/include/nt2/boolean/functions/complex/generic/if_zero_else.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/type/complex/base/include/nt2/boolean/functions/complex/generic/if_zero_else.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2014 MetaScale SAS
//
// Distributed under the Boost Softw... | 38.869565 | 91 | 0.560403 | psiha |
04d3583323a51cf2ae6ccbcd9f18d4fe2b15ff81 | 15,843 | hpp | C++ | Engine/Runtime/include/bf/meta/bifrost_meta_runtime_impl.hpp | BluFedora/BluFedoraEngine | 41d0948f6a3a41c38fcc9217fe68105e6f1f9c5f | [
"MIT"
] | null | null | null | Engine/Runtime/include/bf/meta/bifrost_meta_runtime_impl.hpp | BluFedora/BluFedoraEngine | 41d0948f6a3a41c38fcc9217fe68105e6f1f9c5f | [
"MIT"
] | null | null | null | Engine/Runtime/include/bf/meta/bifrost_meta_runtime_impl.hpp | BluFedora/BluFedoraEngine | 41d0948f6a3a41c38fcc9217fe68105e6f1f9c5f | [
"MIT"
] | null | null | null | #ifndef BIFROST_META_RUNTIME_IMPL_HPP
#define BIFROST_META_RUNTIME_IMPL_HPP
#include "bf/bf_meta_function_traits.hpp"
#include "bf/bf_meta_utils.hpp"
#include "bifrost_meta_member.hpp"
#include "bifrost_meta_runtime.hpp"
#include <array>
namespace bf::meta
{
template<typename MemberConcept>
class PropertyMetaInf... | 31.125737 | 130 | 0.616045 | BluFedora |
3e20b1fa174e2cb72530c8aaaa49785dbc03c5d2 | 1,911 | hpp | C++ | stan/math/prim/scal/fun/lbeta.hpp | riddell-stan/math | d84ee0d991400d6cf4b08a07a4e8d86e0651baea | [
"BSD-3-Clause"
] | 1 | 2019-07-23T14:57:41.000Z | 2019-07-23T14:57:41.000Z | stan/math/prim/scal/fun/lbeta.hpp | Capri2014/math | d4042bdf8623bba5a1633b557227325a324e32e9 | [
"BSD-3-Clause"
] | 1 | 2019-09-23T19:58:36.000Z | 2019-09-24T12:03:41.000Z | stan/math/prim/scal/fun/lbeta.hpp | riddell-stan/math | d84ee0d991400d6cf4b08a07a4e8d86e0651baea | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_SCAL_FUN_LBETA_HPP
#define STAN_MATH_PRIM_SCAL_FUN_LBETA_HPP
#include <stan/math/prim/meta.hpp>
#include <boost/math/tools/promotion.hpp>
#include <stan/math/prim/scal/fun/lgamma.hpp>
namespace stan {
namespace math {
/**
* Return the log of the beta function applied to the specified
* argum... | 28.522388 | 78 | 0.612245 | riddell-stan |
3e21a76d000bd5da590aa09b88a05a1bf5dbd357 | 578 | cpp | C++ | Tests/ApplicationsLib/TestProjectData.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | null | null | null | Tests/ApplicationsLib/TestProjectData.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | 25 | 2015-02-04T20:34:21.000Z | 2018-12-10T20:19:57.000Z | Tests/ApplicationsLib/TestProjectData.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | null | null | null | /**
* \file TestProjectData.cpp
* \date 2015-07-13
*
* \copyright
* Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*... | 24.083333 | 76 | 0.67128 | norihiro-w |
3e23f24cc371d1104184591d560b8b6cda0684e8 | 4,539 | hpp | C++ | include/mcnla/core/matrix/dense/dense_matrix_iterator.hpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | include/mcnla/core/matrix/dense/dense_matrix_iterator.hpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | include/mcnla/core/matrix/dense/dense_matrix_iterator.hpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file include/mcnla/core/matrix/dense/dense_matrix_iterator.hpp
/// @brief The dense matrix iterator.
///
/// @author Mu Yang <<emfomy@gmail.com>>
///
#ifndef MCNLA_CORE_MATRIX_DEN... | 39.815789 | 128 | 0.463759 | emfomy |
3e245dc2579759d018c49e0c4c30d39c1ccfd876 | 8,959 | cpp | C++ | src/bin/top.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 1 | 2021-08-31T01:47:13.000Z | 2021-08-31T01:47:13.000Z | src/bin/top.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | null | null | null | src/bin/top.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 3 | 2018-12-17T13:07:38.000Z | 2021-09-08T13:07:31.000Z | /*
* Copyright (C) 1996 Be, Inc.
* All Rights Reserved
*
* This source code was published by Be, Inc. in the file gnu_x86.tar.gz for R3,
* a mirror is at http://linux.inf.elte.hu/ftp/beos/development/gnu/r3.0/
* needs to link to termcap.
* The GPL should apply here, since AFAIK termcap is GPLed.
*/
/*
* Top ... | 21.484412 | 87 | 0.64092 | axeld |
3e2b80ae3c10afb480ab339bf85ac525d0513c3a | 747 | cpp | C++ | icpcarchive/3399.cpp | larc/competitive_programming | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | 1 | 2019-05-23T19:05:39.000Z | 2019-05-23T19:05:39.000Z | icpcarchive/3399.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | icpcarchive/3399.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | // 3399 - Sum of Consecutive Prime Numbers
#include <cstdio>
#define N 10001
int lower_prime[N], primes[N], np;
void sieve()
{
bool not_prime[N] = {};
np = 0; primes[np++] = 2;
for(long long i = 3; i < N; i += 2)
if(!not_prime[i])
{
primes[np++] = i;
for(long long j = i * i; j < N; j += i << 1)
no... | 14.09434 | 47 | 0.492637 | larc |
3e2cead58acbf9dbecc6462ba13101544a6da74d | 1,245 | cpp | C++ | UvA 10336.cpp | MohamedNabil97/ProgrammingExamples | 540d5384a9dc7b67b0aa63500f2adcdd11110a86 | [
"MIT"
] | null | null | null | UvA 10336.cpp | MohamedNabil97/ProgrammingExamples | 540d5384a9dc7b67b0aa63500f2adcdd11110a86 | [
"MIT"
] | null | null | null | UvA 10336.cpp | MohamedNabil97/ProgrammingExamples | 540d5384a9dc7b67b0aa63500f2adcdd11110a86 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define pb push_back
#define lp(i,n) for(int i=0;i<n;i++)
using namespace std;
char grid[1000][1000];
int visited[1000][1000];
bool wayToSort(pair<char,int> a, pair<char,int>b){
if(a.second>b.second) return true;
if(a.second==b.second && a.first<b.first) return true;
return fa... | 14.310345 | 67 | 0.459438 | MohamedNabil97 |
3e2de596d644e0e0bcc7b2c4aba45229b060b4c6 | 3,412 | cxx | C++ | Podd/THaNonTrackingDetector.cxx | chandabindu/analyzer | 889be785858769446662ddf9ba250cc9d203bc47 | [
"BSD-3-Clause"
] | null | null | null | Podd/THaNonTrackingDetector.cxx | chandabindu/analyzer | 889be785858769446662ddf9ba250cc9d203bc47 | [
"BSD-3-Clause"
] | null | null | null | Podd/THaNonTrackingDetector.cxx | chandabindu/analyzer | 889be785858769446662ddf9ba250cc9d203bc47 | [
"BSD-3-Clause"
] | null | null | null | //*-- Author : Ole Hansen 7-Sep-00
//////////////////////////////////////////////////////////////////////////
//
// THaNonTrackingDetector
//
// Abstract base class for a generic non-tracking spectrometer detector.
//
// This is a special THaSpectrometerDetector -- any detector that
// is not a tracking detector.... | 31.88785 | 80 | 0.71483 | chandabindu |
3e2e70d49374a9f4c57987c363aae387dd9c4efd | 4,463 | cpp | C++ | src/octree.cpp | StoneDemo1995/GraduationProject | 89cc28487cb79e449f37d21d430c10c07a9f06a9 | [
"MIT"
] | null | null | null | src/octree.cpp | StoneDemo1995/GraduationProject | 89cc28487cb79e449f37d21d430c10c07a9f06a9 | [
"MIT"
] | null | null | null | src/octree.cpp | StoneDemo1995/GraduationProject | 89cc28487cb79e449f37d21d430c10c07a9f06a9 | [
"MIT"
] | null | null | null | /*
* =====================================================================================
*
* Filename: octree.cpp
*
* Description: Octree impl in Thmclrx
*
* Version: 1.0
* Created: 2014/09/12 17时40分57秒
* Revision: none
* Compiler: g++
*
* Author: XadillaX... | 22.654822 | 88 | 0.482187 | StoneDemo1995 |
3e2fb72eb11858ba4c006a08f01fa8b9f6ffa9b7 | 1,226 | cpp | C++ | assec-renderer/platform/directx12/directx12_index_buffer.cpp | TeamVistic/assec-renderer | 5c6fc9a46fc3f6302471a22bfd2bdf2942b794db | [
"Apache-2.0"
] | null | null | null | assec-renderer/platform/directx12/directx12_index_buffer.cpp | TeamVistic/assec-renderer | 5c6fc9a46fc3f6302471a22bfd2bdf2942b794db | [
"Apache-2.0"
] | null | null | null | assec-renderer/platform/directx12/directx12_index_buffer.cpp | TeamVistic/assec-renderer | 5c6fc9a46fc3f6302471a22bfd2bdf2942b794db | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "directx12_index_buffer.h"
namespace assec::renderer
{
directx12_index_buffer::directx12_index_buffer(ComPtr<ID3D12Device2> device, const directx12_command_list& command_list, const std::vector<uint32_t>& indices)
: directx12_buffer(device, indices, D3D12_HEAP_TYPE_DEFAULT, D3D12_RESOURCE_... | 53.304348 | 159 | 0.804241 | TeamVistic |
3e30c29073fc6735648d28044b97518af8712717 | 258 | hpp | C++ | app/dummy-player/threads/streamer_thread.hpp | Rerito/dummy-player | 5004b3aa1a94ced47cac89a0fb5aabaca9b74d43 | [
"MIT"
] | null | null | null | app/dummy-player/threads/streamer_thread.hpp | Rerito/dummy-player | 5004b3aa1a94ced47cac89a0fb5aabaca9b74d43 | [
"MIT"
] | null | null | null | app/dummy-player/threads/streamer_thread.hpp | Rerito/dummy-player | 5004b3aa1a94ced47cac89a0fb5aabaca9b74d43 | [
"MIT"
] | null | null | null |
#pragma once
#include "states.hpp"
void streamer_main(shared_message_queue& msg_queue,
shared_command_queue& cmd_queue,
player_shared_state& player_state,
shared_playback_status& playback_status);
| 23.454545 | 60 | 0.655039 | Rerito |
3e30d9042dfe3aa2e6974cf6bd7140c783b9b95a | 15,971 | cpp | C++ | Libs/Models/Loader_lwo.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Libs/Models/Loader_lwo.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Libs/Models/Loader_lwo.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "Loader_lwo.hpp"
#include "ConsoleCommands/Console.hpp"
#include "MaterialSystem/Material.hpp"
extern "C"
{
#include "lwo2.h"
}
#include <cassert>
#incl... | 42.817694 | 212 | 0.597834 | dns |
3e356348cd69c613b9ebb37eb4e30efb6dfefd09 | 827 | cpp | C++ | sources/Leetcodes/src/1_two_sum.cpp | mcoder2014/myNotes | 443cf16b1873bb473b7cb6bc1a6ec9c6423333e7 | [
"MIT"
] | 4 | 2020-06-22T13:20:26.000Z | 2020-06-24T08:43:11.000Z | sources/Leetcodes/src/1_two_sum.cpp | mcoder2014/DataStructureAndAlgorithms | 443cf16b1873bb473b7cb6bc1a6ec9c6423333e7 | [
"MIT"
] | null | null | null | sources/Leetcodes/src/1_two_sum.cpp | mcoder2014/DataStructureAndAlgorithms | 443cf16b1873bb473b7cb6bc1a6ec9c6423333e7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
unordered_map<int, int> maps;
int size = nums.size();
for(int i = 0; i < size; ++i)
maps[nums[i]] = i;
for (... | 19.690476 | 55 | 0.489722 | mcoder2014 |
3e390f91447c4a99ef6d88e46bb1506c1742c329 | 1,585 | cpp | C++ | Knapsack.cpp | Azura-yuwi/Code | 2226034e7c5abd228abb06e565fd3dcfd36a4692 | [
"MIT"
] | null | null | null | Knapsack.cpp | Azura-yuwi/Code | 2226034e7c5abd228abb06e565fd3dcfd36a4692 | [
"MIT"
] | null | null | null | Knapsack.cpp | Azura-yuwi/Code | 2226034e7c5abd228abb06e565fd3dcfd36a4692 | [
"MIT"
] | null | null | null | //oj.uz--NOI18_KNAPSACK
//USACO Knapsack DP
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
int main()
{
int s,n; cin >> s >> n;
pair<int,pair<int,int>> items[n];
for(int i = 0; i < n; i++)
{
int v, w, c; cin >> v >> w >> c;
... | 19.096386 | 104 | 0.377287 | Azura-yuwi |
3e39418b9c0e15a10e47c2e4f2db6cbae7a8701b | 2,816 | cpp | C++ | libtxpool/CommonTransactionNonceCheck.cpp | imtypist/FISCO-BCOS | 30a281d31e83ca666ef203193963a6d32e39e36a | [
"Apache-2.0"
] | null | null | null | libtxpool/CommonTransactionNonceCheck.cpp | imtypist/FISCO-BCOS | 30a281d31e83ca666ef203193963a6d32e39e36a | [
"Apache-2.0"
] | null | null | null | libtxpool/CommonTransactionNonceCheck.cpp | imtypist/FISCO-BCOS | 30a281d31e83ca666ef203193963a6d32e39e36a | [
"Apache-2.0"
] | null | null | null | /*
* @CopyRight:
* FISCO-BCOS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FISCO-BCOS is distributed in the hope t... | 27.881188 | 98 | 0.585582 | imtypist |
3e39bb668699379ca1772dabc04fbd0e42eb1559 | 7,253 | cpp | C++ | SpatialGDK/Source/SpatialGDK/Private/EngineClasses/SpatialNetConnection.cpp | elizabethking2/UnrealGDK | e3a8aee7c71c6bd0c33f4f88c10b6725d8039d74 | [
"MIT"
] | null | null | null | SpatialGDK/Source/SpatialGDK/Private/EngineClasses/SpatialNetConnection.cpp | elizabethking2/UnrealGDK | e3a8aee7c71c6bd0c33f4f88c10b6725d8039d74 | [
"MIT"
] | null | null | null | SpatialGDK/Source/SpatialGDK/Private/EngineClasses/SpatialNetConnection.cpp | elizabethking2/UnrealGDK | e3a8aee7c71c6bd0c33f4f88c10b6725d8039d74 | [
"MIT"
] | null | null | null | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "EngineClasses/SpatialNetConnection.h"
#include "EngineClasses/SpatialNetDriver.h"
#include "EngineClasses/SpatialPackageMapClient.h"
#include "Interop/Connection/SpatialWorkerConnection.h"
#include "Interop/SpatialReceiver.h"
#include "Interop/Spat... | 33.892523 | 204 | 0.797325 | elizabethking2 |
3e4418808efc129bfe4256145adcc3d0a87ac579 | 5,198 | hpp | C++ | contrib/autoboost/autoboost/random/detail/seed.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/random/detail/seed.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/random/detail/seed.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | /* autoboost random/detail/seed.hpp header file
*
* Copyright Steven Watanabe 2009
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* See http://www.boost.org for most recent version including documentation.... | 45.2 | 120 | 0.603886 | CaseyCarter |
3e4a0ee554b39a2ec666e5d447091eca61530bcc | 1,984 | cpp | C++ | binaryTree/c++/Boundary traversal anticlockwise.cpp | pranjay-poddar/Data-Structures-And-Algorithms | 50d53ca92706c2acef22eea80ef7ade20a1d62fa | [
"MIT"
] | 26 | 2021-05-26T04:20:09.000Z | 2022-03-06T15:26:56.000Z | binaryTree/c++/Boundary traversal anticlockwise.cpp | JayantGoel001/Data-Structures-And-Algorithms | 50d53ca92706c2acef22eea80ef7ade20a1d62fa | [
"MIT"
] | 47 | 2021-10-06T07:22:48.000Z | 2021-10-21T10:57:15.000Z | binaryTree/c++/Boundary traversal anticlockwise.cpp | JayantGoel001/Data-Structures-And-Algorithms | 50d53ca92706c2acef22eea80ef7ade20a1d62fa | [
"MIT"
] | 61 | 2021-10-06T07:33:59.000Z | 2021-11-27T15:54:25.000Z | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
struct Node{
int data;
struct Node * left ,*right;
};
int sum = INT_MIN;
Node * newnode(int data){
Node *temp = new Node;
temp->data = data;
temp->left = temp->right = NULL;
return temp;
}
bool isleaf(Node *root){
if(root... | 24.195122 | 63 | 0.600806 | pranjay-poddar |
3e5043de042323735ee7e3d4ba598281a81d44da | 25,006 | cc | C++ | crypto/test/abi_test.cc | rationa1Machine/boringssl | 523d6c74c0c325139614b34619be592ad897a732 | [
"MIT"
] | 1,282 | 2016-03-05T08:01:58.000Z | 2022-03-31T06:21:19.000Z | crypto/test/abi_test.cc | rationa1Machine/boringssl | 523d6c74c0c325139614b34619be592ad897a732 | [
"MIT"
] | 49 | 2019-09-11T19:00:18.000Z | 2022-02-09T18:42:43.000Z | crypto/test/abi_test.cc | rationa1Machine/boringssl | 523d6c74c0c325139614b34619be592ad897a732 | [
"MIT"
] | 674 | 2016-03-08T05:40:24.000Z | 2022-03-31T06:21:33.000Z | /* Copyright (c) 2018, Google Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... | 31.613148 | 111 | 0.66784 | rationa1Machine |
3e57f2e279c2bf8c54d3a6e6eccb99d0c82df07e | 2,074 | cpp | C++ | codeforces/1216/C.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | 5 | 2020-06-30T12:44:25.000Z | 2021-07-14T06:35:57.000Z | codeforces/1216/C.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | null | null | null | codeforces/1216/C.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | null | null | null | // [amitdu6ey]
// g++ -std=c++11 -o2 -Wall filename.cpp -o filename
#include <bits/stdc++.h>
#define hell 1000000009
#define bug1(x) cout<<"$ "<<x<<" $"<<endl
#define bug2(x) cout<<"% "<<x<<" %"<<endl
#define bug3(x) cout<<"# "<<x<<" #"<<endl
#define ll long long
#define pb push_back
#define mp make_pair
#define tr(z)... | 26.589744 | 71 | 0.566538 | amitdu6ey |
3e5ac5c1fca25f8c592b7a60f16c3900787a2c30 | 1,301 | cpp | C++ | tests/math_unit/math/fwd/scal/fun/inv_sqrt_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | tests/math_unit/math/fwd/scal/fun/inv_sqrt_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | tests/math_unit/math/fwd/scal/fun/inv_sqrt_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/fwd/scal.hpp>
#include <gtest/gtest.h>
#include <math/fwd/scal/fun/nan_util.hpp>
TEST(AgradFwdInvSqrt, Fvar) {
using stan::math::fvar;
using stan::math::inv_sqrt;
fvar<double> x(0.5);
x.d_ = 1.0; // Derivatives w.r.t. x
fvar<double> a = inv_sqrt(x);
EXPECT_FLOAT_EQ(inv_sqrt(0.5), a.v... | 22.050847 | 59 | 0.652575 | alashworth |
3e5ca8803ce4f2e8902014fd5301a54ca219cbb4 | 914 | cpp | C++ | Engine/World/Scene/SceneManager.cpp | jsj2008/Neon-Engine | 5c8880222dd3b5fd3cda97ab54485d852d537f6e | [
"MIT"
] | null | null | null | Engine/World/Scene/SceneManager.cpp | jsj2008/Neon-Engine | 5c8880222dd3b5fd3cda97ab54485d852d537f6e | [
"MIT"
] | null | null | null | Engine/World/Scene/SceneManager.cpp | jsj2008/Neon-Engine | 5c8880222dd3b5fd3cda97ab54485d852d537f6e | [
"MIT"
] | 1 | 2021-11-16T15:30:38.000Z | 2021-11-16T15:30:38.000Z | #include "stdafx.h"
#include "Scene.h"
#include "SceneRef.h"
#include "SceneNode.h"
#include "SceneManager.h"
namespace Neon
{
namespace World
{
void SceneManager::CreateScene(const std::string& name, bool mActive)
{
mScenes[name] = std::make_unique<Scene>(name);
mSceneRefs[name] = SceneRef(name, this);
... | 19.041667 | 71 | 0.675055 | jsj2008 |
3e5fd9d42148de824284aee309e4058e6858286a | 2,064 | hpp | C++ | Main/Game.hpp | Pants/unnamed-sdvx-clone | 28a4b537e40bfe45a48c63c20f5dc4ae5702feab | [
"MIT"
] | null | null | null | Main/Game.hpp | Pants/unnamed-sdvx-clone | 28a4b537e40bfe45a48c63c20f5dc4ae5702feab | [
"MIT"
] | null | null | null | Main/Game.hpp | Pants/unnamed-sdvx-clone | 28a4b537e40bfe45a48c63c20f5dc4ae5702feab | [
"MIT"
] | null | null | null | #pragma once
#include "ApplicationTickable.hpp"
#include "AsyncLoadable.hpp"
#include <Beatmap/MapDatabase.hpp>
class MultiplayerScreen;
enum class GameFlags : uint32
{
None = 0,
Hard = 0b1,
Mirror = 0b10,
Random = 0b100,
AutoBT = 0b1000,
AutoFX = 0b10000,
AutoLaser = 0b100000,
End};
struct ScoreReplay
... | 26.805195 | 100 | 0.733043 | Pants |
3e5fedf547d7aca91f5707a15966604845dfa7e5 | 8,563 | cpp | C++ | PrehistoricEngine/src/engine/platform/opengl/texture/GLTexture.cpp | Andrispowq/PrehistoricEngine---C- | 04159c9119b2f5e0148de21a85aa0dab2d6ba60e | [
"Apache-2.0"
] | 1 | 2020-12-04T13:36:03.000Z | 2020-12-04T13:36:03.000Z | PrehistoricEngine/src/engine/platform/opengl/texture/GLTexture.cpp | Andrispowq/PrehistoricEngine---C- | 04159c9119b2f5e0148de21a85aa0dab2d6ba60e | [
"Apache-2.0"
] | null | null | null | PrehistoricEngine/src/engine/platform/opengl/texture/GLTexture.cpp | Andrispowq/PrehistoricEngine---C- | 04159c9119b2f5e0148de21a85aa0dab2d6ba60e | [
"Apache-2.0"
] | null | null | null | #include "Includes.hpp"
#include "GLTexture.h"
#include "prehistoric/core/config/FrameworkConfig.h"
#include "prehistoric/core/resources/loaders/TextureLoader.h"
namespace Prehistoric
{
static GLenum getTexType(ImageType type, bool multisample)
{
if (type == TEXTURE_2D)
if (multisample)
return GL_TEXTURE_2... | 31.025362 | 278 | 0.730352 | Andrispowq |
3e608777883d95ba98f75f79a73293c9e6864e07 | 1,159 | cpp | C++ | Part3/thirteen.cpp | praseedpai/BasicCppCourse | fb6c2300dfb48961a5f647a51eb9c2032bfb45ea | [
"MIT"
] | null | null | null | Part3/thirteen.cpp | praseedpai/BasicCppCourse | fb6c2300dfb48961a5f647a51eb9c2032bfb45ea | [
"MIT"
] | null | null | null | Part3/thirteen.cpp | praseedpai/BasicCppCourse | fb6c2300dfb48961a5f647a51eb9c2032bfb45ea | [
"MIT"
] | 1 | 2021-05-03T16:09:46.000Z | 2021-05-03T16:09:46.000Z | ///////////////////////////////////
// twelve.cpp
// A C/C++ program to demonstrate (double) pointers
// g++ -otwelve.exe twelve.cpp
// cl /Fetwelve.exe twelve.cpp
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//----- a Toy Bubble Sort Example
void Sort( double arr[] , int elem ){
int n = elem;
... | 31.324324 | 91 | 0.53667 | praseedpai |
3e61c86c6d47ffbfb6c3d0ae71e3c5728dfde0f9 | 143,075 | cpp | C++ | javaStructures/jdk-master/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | javaStructures/jdk-master/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | javaStructures/jdk-master/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 36.610798 | 171 | 0.659277 | IThawk |
3e6236b8d7fc1ca8ad0a3aa8f50c8a709b2de872 | 5,496 | cpp | C++ | blingfireclient.library/src/FAParseTree_memlfp.cpp | ameyac-msft/BlingFire | 02d2218344a3b67d50f84b19e92103d79a99ae5b | [
"MIT"
] | null | null | null | blingfireclient.library/src/FAParseTree_memlfp.cpp | ameyac-msft/BlingFire | 02d2218344a3b67d50f84b19e92103d79a99ae5b | [
"MIT"
] | null | null | null | blingfireclient.library/src/FAParseTree_memlfp.cpp | ameyac-msft/BlingFire | 02d2218344a3b67d50f84b19e92103d79a99ae5b | [
"MIT"
] | null | null | null | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
#include "blingfire-client_src_pch.h"
#ifndef BLING_FIRE_NOAP
#include "FAConfig.h"
#include "FAParseTree_memlfp.h"
FAParseTree_memlfp::FAParseTree_memlfp (CMemLfpManager * pMemMgr)
{
m_i2n.Re... | 26.550725 | 87 | 0.597707 | ameyac-msft |
3e6685319275aa14effb514ad3b7eca58c4b2ba9 | 5,333 | cc | C++ | common_audio/vad/vad_unittest.cc | aleonliao/webrtc-3.31 | a282cc166883aea82a8149d64e82ca29aa9f27f1 | [
"DOC",
"BSD-3-Clause"
] | 4 | 2016-09-29T00:04:31.000Z | 2021-12-02T08:39:51.000Z | common_audio/vad/vad_unittest.cc | aleonliao/webrtc-3.31 | a282cc166883aea82a8149d64e82ca29aa9f27f1 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | common_audio/vad/vad_unittest.cc | aleonliao/webrtc-3.31 | a282cc166883aea82a8149d64e82ca29aa9f27f1 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 33.968153 | 80 | 0.607725 | aleonliao |
3e66968b808691677376c39ed5d9727b382eec15 | 12,393 | cpp | C++ | client/apihook/slre.cpp | scriptjunkie/Ambush | fcdd605890a63ee5c886ea56caf8d1ab65d77849 | [
"BSD-2-Clause"
] | 38 | 2015-01-02T21:20:03.000Z | 2021-07-07T14:20:50.000Z | client/apihook/slre.cpp | supcom234/Ambush | fcdd605890a63ee5c886ea56caf8d1ab65d77849 | [
"BSD-2-Clause"
] | null | null | null | client/apihook/slre.cpp | supcom234/Ambush | fcdd605890a63ee5c886ea56caf8d1ab65d77849 | [
"BSD-2-Clause"
] | 22 | 2015-01-26T19:23:48.000Z | 2021-04-12T07:44:34.000Z | /*
* Copyright (c) 2004-2005 Sergey Lyubka <valenok@gmail.com>
* All rights reserved
*
* "THE BEER-WARE LICENSE" (Revision 42):
* Sergey Lyubka wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, y... | 22.012433 | 80 | 0.533769 | scriptjunkie |
3e67a0eb5d5f0d0327b40d90b0fbee8f6330d741 | 54,416 | cpp | C++ | FMODStudio/Source/FMODStudio/Private/FMODStudioModule.cpp | harmonix/ue4integration | fb6c45d5a6d9d6c2051b3b34e54466a83a708bce | [
"MIT"
] | null | null | null | FMODStudio/Source/FMODStudio/Private/FMODStudioModule.cpp | harmonix/ue4integration | fb6c45d5a6d9d6c2051b3b34e54466a83a708bce | [
"MIT"
] | null | null | null | FMODStudio/Source/FMODStudio/Private/FMODStudioModule.cpp | harmonix/ue4integration | fb6c45d5a6d9d6c2051b3b34e54466a83a708bce | [
"MIT"
] | null | null | null | // Copyright (c), Firelight Technologies Pty, Ltd. 2012-2021.
#include "FMODStudioModule.h"
#include "FMODSettings.h"
#include "FMODAudioComponent.h"
#include "FMODBlueprintStatics.h"
#include "FMODAssetTable.h"
#include "FMODFileCallbacks.h"
#include "FMODUtils.h"
#include "FMODEvent.h"
#include "FMODListen... | 35.566013 | 172 | 0.635695 | harmonix |
3e6a2a1b46a04a2fb5079d5e1ac388896b7d256c | 3,479 | cc | C++ | src/detection_camera.cc | Namburger/edgetpu-detection-camera | f53ca0b0cf9e5d32a5e7235ab7636a7042a7e4a2 | [
"Apache-2.0"
] | 10 | 2020-04-25T16:36:14.000Z | 2022-01-05T02:31:27.000Z | src/detection_camera.cc | Namburger/edgetpu-detection-camera | f53ca0b0cf9e5d32a5e7235ab7636a7042a7e4a2 | [
"Apache-2.0"
] | 5 | 2020-05-13T20:31:23.000Z | 2021-04-15T18:09:00.000Z | src/detection_camera.cc | Namburger/edgetpu-detection-camera | f53ca0b0cf9e5d32a5e7235ab7636a7042a7e4a2 | [
"Apache-2.0"
] | 4 | 2020-04-25T12:08:21.000Z | 2022-03-06T19:33:58.000Z | #include "detection_camera.h"
#include "edgetpu.h"
#include "opencv2/opencv.hpp"
#include "tensorflow/lite/interpreter.h"
#include "tensorflow/lite/model.h"
#include <chrono>
namespace edge {
DetectionCamera::DetectionCamera(
const std::string& model_path, const std::string& label_path, const float threshold,
... | 37.010638 | 99 | 0.639839 | Namburger |
3e6a863953c6aef3ce2a953bc66d4eafeaf3ef2a | 1,312 | cpp | C++ | LeetCode/Graph/DFS/LowestCommonAncestorofaBinaryTree.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 3 | 2021-07-26T15:58:45.000Z | 2021-09-08T14:55:11.000Z | LeetCode/Graph/DFS/LowestCommonAncestorofaBinaryTree.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | null | null | null | LeetCode/Graph/DFS/LowestCommonAncestorofaBinaryTree.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 2 | 2021-05-31T11:27:59.000Z | 2021-10-03T13:26:00.000Z | /*
* LeetCode 236 Lowest Common Ancestor of a Binary Tree
* Medium
* Shuo Feng
* 2021.8.18
*/
/*
* Solution :bfs
* Begin with root node, search the left subtree and the right subtree,
*
* About line 43, 44:
* Two cases to consider: one node located in one of the the subtree,
* two... | 27.333333 | 113 | 0.615854 | a4org |
3e6b8b2e4490a8acee6dbea7c9c0dc45f5c32127 | 585 | hpp | C++ | simple_demo/external_logic/Calculator.hpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | 1 | 2020-05-22T08:47:00.000Z | 2020-05-22T08:47:00.000Z | simple_demo/external_logic/Calculator.hpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | null | null | null | simple_demo/external_logic/Calculator.hpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | null | null | null | #ifndef CALCULATOR_HPP_
#define CALCULATOR_HPP_
#include <memory>
struct CalculatorInput {
int id;
double input;
};
struct CalculatorOutput {
int id;
double output;
};
class CalculateResultListener {
public:
virtual void onCalculateResult(CalculatorOutput const &) = 0;
virtual ~CalculateResul... | 17.727273 | 65 | 0.723077 | cd606 |
3e6c87f242a0489048d4ae1f5960aaf45a2f624d | 18,420 | cc | C++ | modules/audio_processing/beamformer/beamformer.cc | yuxw75/temp | ab2fd478821e6c98ff10f2976ce43f617250cff6 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | modules/audio_processing/beamformer/beamformer.cc | yuxw75/temp | ab2fd478821e6c98ff10f2976ce43f617250cff6 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | modules/audio_processing/beamformer/beamformer.cc | yuxw75/temp | ab2fd478821e6c98ff10f2976ce43f617250cff6 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 38.942918 | 83 | 0.646308 | yuxw75 |
3e71aaae8c619ba7fd647af6107e530e88274d00 | 28,620 | cc | C++ | wrappers/7.0.0/vtkIconGlyphFilterWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/7.0.0/vtkIconGlyphFilterWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/7.0.0/vtkIconGlyphFilterWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkPolyDataAlgorithmWrap.h"
#include "vtkIconGlyphFilterWrap.h"
#include "vtkObjectWrap.h"
#include "../../plus/plus.h"
using namespace v8;
e... | 30.285714 | 107 | 0.714675 | axkibe |
3e71b8d1edb81ed696fae469af277e4d57210985 | 1,275 | cpp | C++ | src/PipelineLayoutBuilder.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | src/PipelineLayoutBuilder.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | src/PipelineLayoutBuilder.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | #include <gbVk/PipelineLayoutBuilder.hpp>
#include <gbVk/DescriptorSetLayout.hpp>
#include <gbVk/PipelineLayout.hpp>
#include <gbVk/Exceptions.hpp>
#include <gbBase/Assert.hpp>
namespace GHULBUS_VULKAN_NAMESPACE
{
PipelineLayoutBuilder::PipelineLayoutBuilder(VkDevice logical_device)
:m_device(logical_device)
{}... | 34.459459 | 106 | 0.803922 | ComicSansMS |
3e844ccf4fa0d242a0f8ef89a0a7c8dd0e467187 | 15,573 | hpp | C++ | modules/core/include/opencv2/core/utility.hpp | gunnjo/opencv | a05ce00a654268f214fcf43e815891a01f7987b5 | [
"BSD-3-Clause"
] | 3 | 2018-10-15T07:31:30.000Z | 2020-10-16T08:59:46.000Z | modules/core/include/opencv2/core/utility.hpp | gunnjo/opencv | a05ce00a654268f214fcf43e815891a01f7987b5 | [
"BSD-3-Clause"
] | 1 | 2018-06-28T16:16:37.000Z | 2018-06-28T16:16:37.000Z | modules/core/include/opencv2/core/utility.hpp | gunnjo/opencv | a05ce00a654268f214fcf43e815891a01f7987b5 | [
"BSD-3-Clause"
] | 9 | 2015-03-13T18:27:27.000Z | 2018-12-03T15:38:51.000Z | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 31.083832 | 110 | 0.684261 | gunnjo |
3e896e63508b35de35d6d957de8505a6a3a56492 | 1,610 | cpp | C++ | projects/pinguin_warfare/pinguin.cpp | MBakels/Centauri_Framework | eaca476af5ef8c7679e9026605868e8db2af014f | [
"MIT"
] | null | null | null | projects/pinguin_warfare/pinguin.cpp | MBakels/Centauri_Framework | eaca476af5ef8c7679e9026605868e8db2af014f | [
"MIT"
] | null | null | null | projects/pinguin_warfare/pinguin.cpp | MBakels/Centauri_Framework | eaca476af5ef8c7679e9026605868e8db2af014f | [
"MIT"
] | null | null | null | #include "pinguin.h"
Pinguin::Pinguin(int xPos, int yPos, int zPos, float timeBetweenThrows) {
// Add the pinguin sprite
AddSprite("assets/Pinguin.png");
// Setup the variables
moveDirection = Vector2(0, 0);
targetPos = Point2(0, 0);
moveSpeed = 150;
position = Point3(xPos * 64, yPos * 64, zPos);
x = xPos;
y ... | 27.758621 | 79 | 0.686335 | MBakels |
3e8d1a6c28bfbf475c85a56fa479ab4d7c8f7eea | 4,633 | cpp | C++ | libs/outcome/test/tests/issue0061.cpp | btzy/boost-1.72.0-mirror | defad0f34b0abc884032b57dd4eb93f18f679bf1 | [
"BSL-1.0"
] | 1 | 2020-03-01T03:04:05.000Z | 2020-03-01T03:04:05.000Z | libs/outcome/test/tests/issue0061.cpp | btzy/boost-1.72.0-mirror | defad0f34b0abc884032b57dd4eb93f18f679bf1 | [
"BSL-1.0"
] | null | null | null | libs/outcome/test/tests/issue0061.cpp | btzy/boost-1.72.0-mirror | defad0f34b0abc884032b57dd4eb93f18f679bf1 | [
"BSL-1.0"
] | null | null | null | /* Unit testing for outcomes
(C) 2013-2019 Niall Douglas <http://www.nedproductions.biz/> (6 commits)
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this li... | 35.914729 | 125 | 0.681848 | btzy |
3e8ddf89055989c40fe53e9cd0664b4ddb45e652 | 7,039 | cpp | C++ | OverlordEngine/PostProcessingMaterial.cpp | Zakatos/Rift-Traveller | cbce326e4c508f9342a4fa9904bfad2a9fcabb92 | [
"MIT"
] | null | null | null | OverlordEngine/PostProcessingMaterial.cpp | Zakatos/Rift-Traveller | cbce326e4c508f9342a4fa9904bfad2a9fcabb92 | [
"MIT"
] | null | null | null | OverlordEngine/PostProcessingMaterial.cpp | Zakatos/Rift-Traveller | cbce326e4c508f9342a4fa9904bfad2a9fcabb92 | [
"MIT"
] | null | null | null | //Precompiled Header [ALWAYS ON TOP IN CPP]
#include "stdafx.h"
#include "PostProcessingMaterial.h"
#include "../Graphics/RenderTarget.h"
#include "../Base/OverlordGame.h"
#include "../Content/ContentManager.h"
ID3D11Buffer* PostProcessingMaterial::m_pVertexBuffer = nullptr;
unsigned int PostProcessingMaterial::m_Ver... | 35.195 | 134 | 0.772979 | Zakatos |
3e8fbb9030d4958eac1f561c709cea2cbeddc35a | 7,333 | cc | C++ | tests/client_tests/large_msg_test.cc | gjerecze/eRPC | 3516d5d8973a7b12f7141a4d4be3ba3a671c41a4 | [
"Apache-2.0"
] | null | null | null | tests/client_tests/large_msg_test.cc | gjerecze/eRPC | 3516d5d8973a7b12f7141a4d4be3ba3a671c41a4 | [
"Apache-2.0"
] | null | null | null | tests/client_tests/large_msg_test.cc | gjerecze/eRPC | 3516d5d8973a7b12f7141a4d4be3ba3a671c41a4 | [
"Apache-2.0"
] | null | null | null | #include "client_tests.h"
void req_handler(ReqHandle *, void *); // Forward declaration
/// Request handler for foreground testing
auto reg_info_vec_fg = {
ReqFuncRegInfo(kTestReqType, req_handler, ReqFuncType::kForeground)};
/// Request handler for background testing
auto reg_info_vec_bg = {
ReqFuncRegInfo... | 33.031532 | 80 | 0.720442 | gjerecze |
3e94c0608c336ac0f83ea5f4dbd654c9c528e4df | 3,664 | cpp | C++ | src/bagRecorderMotion.cpp | TheRobotStudio/trs_control | a628576b968d60c6ab4f7511754153bc5ca9adcb | [
"BSD-2-Clause"
] | null | null | null | src/bagRecorderMotion.cpp | TheRobotStudio/trs_control | a628576b968d60c6ab4f7511754153bc5ca9adcb | [
"BSD-2-Clause"
] | null | null | null | src/bagRecorderMotion.cpp | TheRobotStudio/trs_control | a628576b968d60c6ab4f7511754153bc5ca9adcb | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2012, The Robot Studio
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of con... | 31.86087 | 115 | 0.730895 | TheRobotStudio |
3e99a9bef17b039a45eb44e44919bbab19ea86de | 5,310 | cpp | C++ | Ampersand/Main.cpp | tlsteenWoo/Ampersand | f52b8d9af999d30cf7130b884ba01bdad6d9c02b | [
"MIT"
] | 1 | 2015-08-30T04:13:42.000Z | 2015-08-30T04:13:42.000Z | Ampersand/Main.cpp | tlsteenWoo/Ampersand | f52b8d9af999d30cf7130b884ba01bdad6d9c02b | [
"MIT"
] | 2 | 2015-08-30T04:17:53.000Z | 2015-09-03T23:07:19.000Z | Ampersand/Main.cpp | tlsteenWoo/Ampersand | f52b8d9af999d30cf7130b884ba01bdad6d9c02b | [
"MIT"
] | null | null | null | /* Credit to www.directxtutorial.com */
#include <d3d11.h>
//#include <d3dx11.h>
//#include <d3dx10.h>
#pragma comment (lib, "d3d11.lib")
//#pragma comment (lib, "d3dx11.lib")
//#pragma comment (lib, d3dx10.lib")
// define the screen resolution
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600
#define CATCH_CONFIG_R... | 24.246575 | 102 | 0.731262 | tlsteenWoo |
3e9a0eadf78d428310214925ad95ce5dd44fb2fc | 1,919 | ipp | C++ | freeflow/sys/epoll.ipp | flowgrammable/freeflow-legacy | c5cd77495d44fe3a9e48a2e06fbb44f7418d388e | [
"Apache-2.0"
] | 1 | 2017-07-30T04:18:29.000Z | 2017-07-30T04:18:29.000Z | freeflow/sys/epoll.ipp | flowgrammable/freeflow-legacy | c5cd77495d44fe3a9e48a2e06fbb44f7418d388e | [
"Apache-2.0"
] | null | null | null | freeflow/sys/epoll.ipp | flowgrammable/freeflow-legacy | c5cd77495d44fe3a9e48a2e06fbb44f7418d388e | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2013-2014 Flowgrammable.org
//
// 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... | 21.561798 | 80 | 0.668577 | flowgrammable |
3e9bb2efbd31d13ad2479803cf99d85c705b3be6 | 4,432 | cc | C++ | modules/audio_processing/agc2/fixed_digital_level_estimator.cc | tangm421/webrtc | f715618eee00843441ea723f52165c6fa4ffd6f7 | [
"BSD-3-Clause"
] | 344 | 2016-07-03T11:45:20.000Z | 2022-03-19T16:54:10.000Z | modules/audio_processing/agc2/fixed_digital_level_estimator.cc | tangm421/webrtc | f715618eee00843441ea723f52165c6fa4ffd6f7 | [
"BSD-3-Clause"
] | 15 | 2021-08-21T17:20:20.000Z | 2022-03-14T18:47:33.000Z | modules/audio_processing/agc2/fixed_digital_level_estimator.cc | tangm421/webrtc | f715618eee00843441ea723f52165c6fa4ffd6f7 | [
"BSD-3-Clause"
] | 278 | 2016-04-26T07:37:12.000Z | 2022-01-24T10:09:44.000Z | /*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 36.628099 | 80 | 0.718863 | tangm421 |
3e9cfcbf721405b3b29eaf0ebbe0a3330eac0179 | 872 | cpp | C++ | codes/POJ/poj1733.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/POJ/poj1733.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/POJ/poj1733.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <map>
using namespace std;
map<int, int> f;
map<int, int> v;
int n, m;
void judge (int x) {
if (f.count(x)) return ;
f[x] = x;
v[x] = 0;
}
int getfar (int x) {
if (x != f[x]) {
int t = f[x];
f[x] = getfar(f[x]);
v[x] = (v[x] + v[t]) % 2;
}
return f[x];
}
i... | 15.298246 | 44 | 0.440367 | JeraKrs |
3e9f1a70c7e4c066a4dca7ce219d3e6a7c9297c4 | 1,934 | cpp | C++ | Other/CodeQuotient/Day7/SavingForARainyDay.cpp | BurningTiles/Programs | 56aee5e4d647ffc36804893dfa9ed0d4a3292117 | [
"MIT"
] | 5 | 2019-07-15T14:22:52.000Z | 2020-12-17T10:16:37.000Z | Other/CodeQuotient/Day7/SavingForARainyDay.cpp | BurningTiles/Programs | 56aee5e4d647ffc36804893dfa9ed0d4a3292117 | [
"MIT"
] | null | null | null | Other/CodeQuotient/Day7/SavingForARainyDay.cpp | BurningTiles/Programs | 56aee5e4d647ffc36804893dfa9ed0d4a3292117 | [
"MIT"
] | 2 | 2019-07-26T11:30:10.000Z | 2019-08-18T16:42:09.000Z | /**
* Author : BurningTiles
* Created : 2020-08-06 22:45:05
**/
#include <bits/stdc++.h>
using namespace std;
int main(){
double m, t, r ;
cin >> m >> t >> r;
double ans=0, reqAmount=m, amt, interest;
for(int i=0; i<t; ++i){
amt = reqAmount/(1+r/1200);
reqAmount += (m-reqAmount+amt);
}
reqAmount -= m;
... | 22.752941 | 403 | 0.734747 | BurningTiles |
3eac0bb69f17a1e6ad81de57c3156eaf5f865a5a | 4,788 | cpp | C++ | Loong/LoongResource/src/LoongResource/loader/LoongTextureLoader.cpp | carlcc/Loong | 577e89b436eb0e5899295c95ee4587c0270cea94 | [
"Apache-2.0"
] | 9 | 2020-08-14T02:01:02.000Z | 2022-01-28T08:51:12.000Z | Loong/LoongResource/src/LoongResource/loader/LoongTextureLoader.cpp | carlcc/Loong | 577e89b436eb0e5899295c95ee4587c0270cea94 | [
"Apache-2.0"
] | null | null | null | Loong/LoongResource/src/LoongResource/loader/LoongTextureLoader.cpp | carlcc/Loong | 577e89b436eb0e5899295c95ee4587c0270cea94 | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2020 Carl Chen. All rights reserved.
//
#include <glad/glad.h>
#include "LoongAsset/LoongImage.h"
#include "LoongFoundation/LoongLogger.h"
#include "LoongResource/LoongTexture.h"
#include "LoongResource/loader/LoongTextureLoader.h"
#include <cassert>
namespace Loong::Resource {
inline GLenum Chan... | 33.957447 | 211 | 0.701546 | carlcc |
3eadff53ec4aa1df5ae2c50b910b1f537b76e56f | 1,139 | cpp | C++ | ex03/src/Intern.cpp | 42cursus-youkim/-Rank04-CPP-Module05 | 71244b25b1c9556dd4ec186e543c2a3e308d0036 | [
"MIT"
] | null | null | null | ex03/src/Intern.cpp | 42cursus-youkim/-Rank04-CPP-Module05 | 71244b25b1c9556dd4ec186e543c2a3e308d0036 | [
"MIT"
] | null | null | null | ex03/src/Intern.cpp | 42cursus-youkim/-Rank04-CPP-Module05 | 71244b25b1c9556dd4ec186e543c2a3e308d0036 | [
"MIT"
] | null | null | null | #include "Intern.hpp"
#include <iostream>
#include "PresidentialPardonForm.hpp"
#include "RobotomyRequestForm.hpp"
#include "ShrubberyCreationForm.hpp"
#include "color.hpp"
using std::cout;
Intern::Intern() {}
Intern::~Intern() {}
// Factory
Form* Intern::createShrubberyCreationForm(const string& target) const {
r... | 30.783784 | 76 | 0.70676 | 42cursus-youkim |
3eb345f0794d858ac4641210ff0b48926d35eb79 | 985 | cpp | C++ | NFServer/NFLoginNet_ClientPlugin/NFLoginNet_ClientPlugin.cpp | bigflyzhou/stafastframe | 8f84711e8f631df7103e1ff57c4472ef78f74c0c | [
"Apache-2.0"
] | 1 | 2021-07-08T05:33:50.000Z | 2021-07-08T05:33:50.000Z | NFServer/NFLoginNet_ClientPlugin/NFLoginNet_ClientPlugin.cpp | bigflyzhou/stafastframe | 8f84711e8f631df7103e1ff57c4472ef78f74c0c | [
"Apache-2.0"
] | null | null | null | NFServer/NFLoginNet_ClientPlugin/NFLoginNet_ClientPlugin.cpp | bigflyzhou/stafastframe | 8f84711e8f631df7103e1ff57c4472ef78f74c0c | [
"Apache-2.0"
] | 1 | 2020-10-27T12:44:18.000Z | 2020-10-27T12:44:18.000Z | // NFLoginNet_ClientPlugin.cpp : Defines the exported functions for the DLL application.
//
#include "NFLoginNet_ClientPlugin.h"
#include "NFCLoginToMasterModule.h"
//
//
#ifdef NF_DYNAMIC_PLUGIN
NF_EXPORT void DllStartPlugin(NFIPluginManager* pm)
{
CREATE_PLUGIN(pm, NFLoginNet_ClientPlugin)
};
... | 22.386364 | 89 | 0.702538 | bigflyzhou |
3eb467fd909854d6a1568d342a0695c95f6146cf | 2,821 | cpp | C++ | classes/graphics/backends/gdiplus/fontgdiplus.cpp | XilizaX/smooth | a65851f3bc9f83860e404bebe224d28388025625 | [
"Artistic-2.0"
] | 24 | 2017-08-22T15:55:34.000Z | 2022-03-06T11:41:31.000Z | classes/graphics/backends/gdiplus/fontgdiplus.cpp | XilizaX/smooth | a65851f3bc9f83860e404bebe224d28388025625 | [
"Artistic-2.0"
] | 6 | 2018-07-21T12:17:55.000Z | 2021-08-12T11:27:27.000Z | classes/graphics/backends/gdiplus/fontgdiplus.cpp | XilizaX/smooth | a65851f3bc9f83860e404bebe224d28388025625 | [
"Artistic-2.0"
] | 9 | 2017-09-13T02:32:18.000Z | 2022-03-06T11:41:32.000Z | /* The smooth Class Library
* Copyright (C) 1998-2020 Robert Kausch <robert.kausch@gmx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRA... | 34.82716 | 209 | 0.733782 | XilizaX |
3eb567b995be37f13059bb128a0d5b360b62c4b7 | 392 | cpp | C++ | C++/maximum-subarray.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/maximum-subarray.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/maximum-subarray.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n)
// Space: O(1)
class Solution {
public:
int maxSubArray(vector<int>& nums) {
int result = numeric_limits<int>::min();
int curr = numeric_limits<int>::min();
for (const auto &x : nums) {
curr = (curr == numeric_limits<int>::min()) ? x : max(curr + x, x);
... | 24.5 | 79 | 0.512755 | jaiskid |
3eb79d6182d2c24778f2d509ab800300a9420f41 | 3,309 | hpp | C++ | recipes-cbc/cbc/cbc/src/CbcFathom.hpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | recipes-cbc/cbc/cbc/src/CbcFathom.hpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | recipes-cbc/cbc/cbc/src/CbcFathom.hpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | // Copyright (C) 2004, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifndef CbcFathom_H
#define CbcFathom_H
#include "CbcConfig.h"
/*
This file contains two classes, CbcFathom and CbcOsiSolver. It's unc... | 24.330882 | 98 | 0.650952 | Justin790126 |
3eb8abbd03a03028af785cdf41f43cf2ce7ddd57 | 548 | hpp | C++ | vren/vren/base/resource_container.hpp | loryruta/vren | 0d5a7ee61b7e42f17451293b32d26f4958d8ffa5 | [
"MIT"
] | 1 | 2022-02-07T14:22:02.000Z | 2022-02-07T14:22:02.000Z | vren/vren/base/resource_container.hpp | loryruta/vren | 0d5a7ee61b7e42f17451293b32d26f4958d8ffa5 | [
"MIT"
] | null | null | null | vren/vren/base/resource_container.hpp | loryruta/vren | 0d5a7ee61b7e42f17451293b32d26f4958d8ffa5 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <memory>
namespace vren
{
class resource_container
{
public:
std::vector<std::shared_ptr<void>> m_resources;
explicit resource_container() = default;
template<typename _t>
void add_resource(std::shared_ptr<_t> const& resource)
{
m_resources.push_back(std::shar... | 16.117647 | 65 | 0.678832 | loryruta |
3ebbc099cd36dd0be584b7d061bbc53088a3d493 | 10,871 | cpp | C++ | SerialPrograms/Source/PokemonSwSh/Programs/OverworldBot/PokemonSwSh_OverworldTargetTracker.cpp | nmousouros/Arduino-Source | f8dce62af0b619016b4c18dc0371c59568da3e9a | [
"MIT"
] | null | null | null | SerialPrograms/Source/PokemonSwSh/Programs/OverworldBot/PokemonSwSh_OverworldTargetTracker.cpp | nmousouros/Arduino-Source | f8dce62af0b619016b4c18dc0371c59568da3e9a | [
"MIT"
] | null | null | null | SerialPrograms/Source/PokemonSwSh/Programs/OverworldBot/PokemonSwSh_OverworldTargetTracker.cpp | nmousouros/Arduino-Source | f8dce62af0b619016b4c18dc0371c59568da3e9a | [
"MIT"
] | null | null | null | /* Overworld Mark Tracker
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include "CommonFramework/Inference/ImageTools.h"
#include "PokemonSwSh/Inference/PokemonSwSh_MarkFinder.h"
#include "PokemonSwSh_OverworldTargetTracker.h"
namespace PokemonAutomation{
namespace NintendoSwitc... | 35.526144 | 99 | 0.621838 | nmousouros |
3ebc3520c5e3cf2a294a65b358570585052a037a | 2,834 | hh | C++ | src/common/chemistry/reactions/SurfaceComplexationRxn.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/common/chemistry/reactions/SurfaceComplexationRxn.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/common/chemistry/reactions/SurfaceComplexationRxn.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /*
Chemistry
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Class for surface complexation reaction
Notes:
- Each instance ... | 34.560976 | 108 | 0.760409 | fmyuan |
3ebe6d3c7125e8ed5d59686db8dc31bd0790a17e | 1,541 | cpp | C++ | unit_tests/tests/traits.cpp | antoine-bussy/qpp | d5f12c4fa17bada1c6f2e7ea0cb81b430e7aea63 | [
"MIT"
] | 203 | 2018-01-02T17:55:49.000Z | 2022-03-29T09:22:15.000Z | unit_tests/tests/traits.cpp | Alex-Kolar/qpp | 82096807508ed2c3f7a3c127d792b594cc296e8f | [
"MIT"
] | 48 | 2019-12-30T00:44:01.000Z | 2022-01-17T19:18:14.000Z | unit_tests/tests/traits.cpp | Alex-Kolar/qpp | 82096807508ed2c3f7a3c127d792b594cc296e8f | [
"MIT"
] | 77 | 2015-08-09T01:09:33.000Z | 2019-12-27T08:42:58.000Z | #include <cmath>
#include <vector>
#include <list>
#include "gtest/gtest.h"
#include "qpp.h"
using namespace qpp;
// Unit testing "traits.hpp"
/******************************************************************************/
/// BEGIN template<typename T> struct is_complex
TEST(qpp_is_complex, AllTests) {
EXPECT_... | 35.022727 | 80 | 0.560026 | antoine-bussy |
3ec84764bed4e85250857677e220eb5cf50755d3 | 6,855 | cpp | C++ | src/qfmain/CQF_Properties.cpp | linson7017/qtframework | ad99883bd7e98f7b2cb97078def7252afa11ff6d | [
"Apache-2.0"
] | 6 | 2017-04-10T14:50:57.000Z | 2019-03-31T07:15:56.000Z | src/qfmain/CQF_Properties.cpp | linson7017/qtframework | ad99883bd7e98f7b2cb97078def7252afa11ff6d | [
"Apache-2.0"
] | null | null | null | src/qfmain/CQF_Properties.cpp | linson7017/qtframework | ad99883bd7e98f7b2cb97078def7252afa11ff6d | [
"Apache-2.0"
] | 2 | 2018-03-09T07:05:47.000Z | 2021-07-04T08:48:34.000Z | #include "CQF_Properties.h"
#include "IQF_Property.h"
QF_BEGIN_NAMESPACE(QF)
IQF_Properties* QF_CreateProperties()
{
return new CQF_Properties();
}
CQF_Properties::CQF_Properties()
{
}
CQF_Properties::~CQF_Properties()
{
Clear();
}
void CQF_Properties::Release()
{
delete this;
}
void CQF_Properties:... | 20.585586 | 91 | 0.591539 | linson7017 |
3ec93468beaaf2aaddbfa23fa80a1dc57c6a7af2 | 2,275 | hpp | C++ | polygon.hpp | niekbouman/convex_dynamics | 387037dbcfb0c52110b78bca24b43e6c5c65942a | [
"MIT"
] | null | null | null | polygon.hpp | niekbouman/convex_dynamics | 387037dbcfb0c52110b78bca24b43e6c5c65942a | [
"MIT"
] | null | null | null | polygon.hpp | niekbouman/convex_dynamics | 387037dbcfb0c52110b78bca24b43e6c5c65942a | [
"MIT"
] | null | null | null | #ifndef POLYGONHPP
#define POLYGONHPP
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Polygon_2.h>
#include <CGAL/Boolean_set_operations_2.h>
#include <CGAL/Delaunay_triangulation_2.h>
#include <CGAL/Voronoi_diagram_2.h>
#include <CGAL/Delaunay_triangulation_adaptati... | 38.559322 | 80 | 0.772747 | niekbouman |
3ed09f333f4835a73e9783edd068b7337e69eb45 | 222 | cpp | C++ | ScrapEngine/ScrapEngine/Engine/Physics/CollisionShape/CapsuleShape/CapsuleShape.cpp | zann1x-forks/ScrapEngine | 3361af20cb60734baf7fa906a5360924f328adad | [
"MIT"
] | null | null | null | ScrapEngine/ScrapEngine/Engine/Physics/CollisionShape/CapsuleShape/CapsuleShape.cpp | zann1x-forks/ScrapEngine | 3361af20cb60734baf7fa906a5360924f328adad | [
"MIT"
] | null | null | null | ScrapEngine/ScrapEngine/Engine/Physics/CollisionShape/CapsuleShape/CapsuleShape.cpp | zann1x-forks/ScrapEngine | 3361af20cb60734baf7fa906a5360924f328adad | [
"MIT"
] | null | null | null | #include <Engine/Physics/CollisionShape/CapsuleShape/CapsuleShape.h>
ScrapEngine::Physics::CapsuleShape::CapsuleShape(const float radius, const float height)
: CollisionShape(new rp3d::CapsuleShape(radius, height))
{
}
| 27.75 | 88 | 0.801802 | zann1x-forks |
a795b83f9c8f682f613083b76996d8c8669b8ec4 | 4,224 | cpp | C++ | engine/src/utils/FPPlayerController.cpp | Birdy2014/Birdy3d | 96421f262ab6ba7448cae8381063aab32ac830fe | [
"MIT"
] | 1 | 2021-11-01T20:22:41.000Z | 2021-11-01T20:22:41.000Z | engine/src/utils/FPPlayerController.cpp | Birdy2014/Birdy3d | 96421f262ab6ba7448cae8381063aab32ac830fe | [
"MIT"
] | 1 | 2021-11-02T12:45:20.000Z | 2021-11-02T12:45:20.000Z | engine/src/utils/FPPlayerController.cpp | Birdy2014/Birdy3d | 96421f262ab6ba7448cae8381063aab32ac830fe | [
"MIT"
] | 1 | 2021-11-02T12:28:58.000Z | 2021-11-02T12:28:58.000Z | #include "utils/FPPlayerController.hpp"
#include "core/Application.hpp"
#include "core/Input.hpp"
#include "ecs/Entity.hpp"
#include "events/EventBus.hpp"
#include "events/InputEvents.hpp"
#include "events/WindowResizeEvent.hpp"
#include "render/Camera.hpp"
#include "ui/Canvas.hpp"
#include "ui/Layout.hpp"
namespace ... | 37.380531 | 129 | 0.625947 | Birdy2014 |
a798c9564736c4f28d61a349dd3342fb6591f01d | 491 | cc | C++ | Codeforces/97 Beta Division 2/Problem A/A.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/97 Beta Division 2/Problem A/A.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/97 Beta Division 2/Problem A/A.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);
using namespace std;
int n, x, re... | 14.878788 | 44 | 0.574338 | VastoLorde95 |
a79a4f62ee0347b71b61cd5a5a5cc24b15096182 | 4,758 | cxx | C++ | Libraries/ITK/Testing/RegistrationToolbox/SSDRegistrationForceFilterTest.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | Libraries/ITK/Testing/RegistrationToolbox/SSDRegistrationForceFilterTest.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | Libraries/ITK/Testing/RegistrationToolbox/SSDRegistrationForceFilterTest.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 34.230216 | 141 | 0.660992 | NifTK |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.