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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9cc2e24bf7b5e3b4ed7273dc58aa9e325c66ed91 | 1,671 | hpp | C++ | io/PVPFile.hpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | io/PVPFile.hpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | io/PVPFile.hpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | /*
* PVPFile.hpp
*
* Created on: Jun 4, 2014
* Author: pschultz
*
* The goal of the PVPFile class is to encapsulate all interaction with
* PVPFiles---opening and closing, reading and writing, gathering and
* scattering---into a form where, even in the MPI context, all processes
* call the same public met... | 24.217391 | 100 | 0.715739 | PetaVision |
9cc3b7753bcf17838c04abb48065fe9452d89026 | 12,129 | cpp | C++ | parrlibdx/Texture.cpp | AlessandroParrotta/parrlibdx | 0b3cb26358f7831c6043ebc3ce0893b3a5fadcfe | [
"MIT"
] | null | null | null | parrlibdx/Texture.cpp | AlessandroParrotta/parrlibdx | 0b3cb26358f7831c6043ebc3ce0893b3a5fadcfe | [
"MIT"
] | null | null | null | parrlibdx/Texture.cpp | AlessandroParrotta/parrlibdx | 0b3cb26358f7831c6043ebc3ce0893b3a5fadcfe | [
"MIT"
] | null | null | null | #include "Texture.h"
#include <SOIL/SOIL.h>
#include "common.h"
#include "debug.h"
#include "util.h"
namespace prb {
void Texture::defInit(unsigned char* data) {
D3D11_TEXTURE2D_DESC tdesc;
// ...
// Fill out width, height, mip levels, format, etc...
// ...
tdesc.Width... | 36.314371 | 202 | 0.608294 | AlessandroParrotta |
9cc603ec457fa5a3c9cea08bc0b1c62763431e92 | 1,566 | cpp | C++ | src/Grid.cpp | perezite/o2-blocks | c021f9eaddfefe619d3e41508c0fbdb81a95c276 | [
"MIT"
] | null | null | null | src/Grid.cpp | perezite/o2-blocks | c021f9eaddfefe619d3e41508c0fbdb81a95c276 | [
"MIT"
] | null | null | null | src/Grid.cpp | perezite/o2-blocks | c021f9eaddfefe619d3e41508c0fbdb81a95c276 | [
"MIT"
] | null | null | null | #include "Grid.h"
#include "DrawTarget.h"
namespace blocks {
void Grid::computeLine(const sb::Vector2f& start, const sb::Vector2f& end) {
Line line(_thickness, _color);
line.addPoint(start);
line.addPoint(end);
_vertices.insert(_vertices.end(), line.getVertices().begin(), line.getVertices().end());
... | 29.54717 | 91 | 0.646232 | perezite |
9cc80e7d11b7225ad9f738f0d2e4c04c0ca96330 | 716 | cpp | C++ | test/main.cpp | mbeckh/code-quality-actions | b58b6ee06589f68fa0fea550a7852e66c1b12246 | [
"Apache-2.0"
] | null | null | null | test/main.cpp | mbeckh/code-quality-actions | b58b6ee06589f68fa0fea550a7852e66c1b12246 | [
"Apache-2.0"
] | 28 | 2021-05-09T20:54:00.000Z | 2022-03-28T02:12:47.000Z | test/main.cpp | mbeckh/code-quality-actions | b58b6ee06589f68fa0fea550a7852e66c1b12246 | [
"Apache-2.0"
] | null | null | null | //
// Test Object which contains:
// - Two errors to be found by clang-tidy.
// - Test coverage for all lines except the ones marked with 'no coverage'.
//
int called_always() {
#ifdef _DEBUG
const char sz[] = "Debug"; // testing: deliberate error for clang-tidy
#else
const char sz[] = "Release"; // testing:... | 26.518519 | 76 | 0.601955 | mbeckh |
9cca2064ad3f216a6de0e346f3f9674514489d0e | 591 | cpp | C++ | Plugin/abci/Foundation/aiLogger.cpp | afterwise/AlembicForUnity | c6aa8478f7f5e9278350f29dcbffdaa8422028be | [
"MIT"
] | null | null | null | Plugin/abci/Foundation/aiLogger.cpp | afterwise/AlembicForUnity | c6aa8478f7f5e9278350f29dcbffdaa8422028be | [
"MIT"
] | null | null | null | Plugin/abci/Foundation/aiLogger.cpp | afterwise/AlembicForUnity | c6aa8478f7f5e9278350f29dcbffdaa8422028be | [
"MIT"
] | null | null | null | #include "pch.h"
#include <cstdarg>
void aiLogPrint(const char* fmt, ...)
{
va_list vl;
va_start(vl, fmt);
#ifdef _WIN32
char buf[2048];
vsprintf(buf, fmt, vl);
::OutputDebugStringA(buf);
::OutputDebugStringA("\n");
#else
vprintf(fmt, vl);
#endif
va_end(vl);
}
void aiLo... | 17.909091 | 41 | 0.582064 | afterwise |
9ccc275048bdc734f411beaf2d3e1821e45320d2 | 421 | hpp | C++ | book/cpp_templates/tmplbook/basics/stack8decl.hpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | book/cpp_templates/tmplbook/basics/stack8decl.hpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | book/cpp_templates/tmplbook/basics/stack8decl.hpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | template<typename T,
template<typename Elem> class Cont = std::deque>
class Stack {
private:
Cont<T> elems; // elements
public:
void push(T const&); // push element
void pop(); // pop element
T const& top() const; // return top element
bool empty()... | 26.3125 | 67 | 0.534442 | houruixiang |
9ccd0a2ec195ccb9022d296b0c3adb82d940a1f2 | 4,580 | cpp | C++ | Controls4U/SplitterButton.cpp | XOULID/Anboto | 2743b066f23bf2db9cc062d3adedfd044bc69ec1 | [
"Apache-2.0"
] | null | null | null | Controls4U/SplitterButton.cpp | XOULID/Anboto | 2743b066f23bf2db9cc062d3adedfd044bc69ec1 | [
"Apache-2.0"
] | null | null | null | Controls4U/SplitterButton.cpp | XOULID/Anboto | 2743b066f23bf2db9cc062d3adedfd044bc69ec1 | [
"Apache-2.0"
] | null | null | null | #include <CtrlLib/CtrlLib.h>
#include "SplitterButton.h"
namespace Upp {
SplitterButton::SplitterButton() {
Add(splitter.SizePos());
Add(button1.LeftPosZ(80, 10).TopPosZ(30, 40));
Add(button2.LeftPosZ(80, 10).TopPosZ(30, 40));
splitter.WhenLayout = THISBACK(OnLayout);
button1.WhenAction = THISBACK1(SetButton... | 23.608247 | 90 | 0.667904 | XOULID |
9cd069d0706763fea075a2cff1e7ea529f888998 | 774 | cpp | C++ | src/NoOpReply.cpp | mikz/capybara-webkit | 1ffa80566570cdb33ef17fd197575c07842e51de | [
"MIT"
] | 37 | 2015-01-28T07:34:34.000Z | 2021-06-14T02:17:51.000Z | src/NoOpReply.cpp | mikz/capybara-webkit | 1ffa80566570cdb33ef17fd197575c07842e51de | [
"MIT"
] | 18 | 2015-01-28T08:26:55.000Z | 2018-02-20T14:04:58.000Z | src/NoOpReply.cpp | mikz/capybara-webkit | 1ffa80566570cdb33ef17fd197575c07842e51de | [
"MIT"
] | 36 | 2015-01-29T09:42:47.000Z | 2021-01-22T11:45:43.000Z | #include <QTimer>
#include "NoOpReply.h"
NoOpReply::NoOpReply(QNetworkRequest &request, QObject *parent) : QNetworkReply(parent) {
open(ReadOnly | Unbuffered);
setAttribute(QNetworkRequest::HttpStatusCodeAttribute, 200);
setHeader(QNetworkRequest::ContentLengthHeader, QVariant(0));
setHeader(QNetworkRequest::C... | 23.454545 | 89 | 0.726098 | mikz |
9cd2f3499185401f61ebc61e59f089ba8c9ff59f | 161 | hpp | C++ | win32/include/swt/graphics/Resource.hpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | win32/include/swt/graphics/Resource.hpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | win32/include/swt/graphics/Resource.hpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | #ifndef SWT_PLUS_PLUS_RESOURCE_H
#define SWT_PLUS_PLUS_RESOURCE_H
namespace swt
{
class Resource {
public:
};
}
#endif //SWT_PLUS_PLUS_RESOURCE_H
| 12.384615 | 33 | 0.745342 | deianvn |
9cd339c28828916e740dc3b0c182a88726a87240 | 1,949 | hpp | C++ | tests/system/test_boost_parts/sources_changed/interprocess/sync/windows/named_recursive_mutex.hpp | iazarov/metrixplusplus | 322777cba4e089502dd6053749b07a7be9da65b2 | [
"MIT"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | tests/system/test_boost_parts/sources_changed/interprocess/sync/windows/named_recursive_mutex.hpp | iazarov/metrixplusplus | 322777cba4e089502dd6053749b07a7be9da65b2 | [
"MIT"
] | 197 | 2017-07-06T16:53:59.000Z | 2019-05-31T17:57:51.000Z | tests/system/test_boost_parts/sources_changed/interprocess/sync/windows/named_recursive_mutex.hpp | iazarov/metrixplusplus | 322777cba4e089502dd6053749b07a7be9da65b2 | [
"MIT"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2011-2012. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/... | 33.033898 | 110 | 0.680862 | iazarov |
9cd3490cce2905d6bc02a256eaa3c48c8bb088aa | 6,506 | hpp | C++ | libraries/chain/include/enumivo/chain/database_utils.hpp | TP-Lab/enumivo | 76d81a36d2db8cea93fb54cd95a6ec5f6c407f97 | [
"MIT"
] | null | null | null | libraries/chain/include/enumivo/chain/database_utils.hpp | TP-Lab/enumivo | 76d81a36d2db8cea93fb54cd95a6ec5f6c407f97 | [
"MIT"
] | null | null | null | libraries/chain/include/enumivo/chain/database_utils.hpp | TP-Lab/enumivo | 76d81a36d2db8cea93fb54cd95a6ec5f6c407f97 | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in enumivo/LICENSE
*/
#pragma once
#include <enumivo/chain/types.hpp>
#include <fc/io/raw.hpp>
#include <softfloat.hpp>
namespace enumivo { namespace chain {
template<typename ...Indices>
class index_set;
template<typename Index>
class index_utils {
public:
... | 29.707763 | 120 | 0.618352 | TP-Lab |
9cd3dda963caab637c859dd1c34fc157105b11fc | 3,411 | cpp | C++ | tests/test_coefficient_ops.cpp | PayasR/DwellRegions-open | 72d8c4a7a5e6d2981005b2ac1182441e227d7314 | [
"BSD-3-Clause"
] | null | null | null | tests/test_coefficient_ops.cpp | PayasR/DwellRegions-open | 72d8c4a7a5e6d2981005b2ac1182441e227d7314 | [
"BSD-3-Clause"
] | null | null | null | tests/test_coefficient_ops.cpp | PayasR/DwellRegions-open | 72d8c4a7a5e6d2981005b2ac1182441e227d7314 | [
"BSD-3-Clause"
] | null | null | null | #include "../include/coefficient.hpp"
#include <iostream>
#include <random>
#include <vector>
using DwellRegions::Coefficient;
auto
generate_random_coefficients(size_t num_points)
{
std::random_device rd; // Will be used to obtain a seed for the random number engine
std::mt19937 gen(rd()); // Standard mersenne_... | 34.11 | 100 | 0.623864 | PayasR |
9cd59c8ea20b2758e329764ff335fff9e25608ed | 658 | cc | C++ | test/sync_call.cc | shayanalia/msgpack-rpc-cpp | 3fd73f9a58b899774dca13a1c478fad7924dd8fd | [
"Apache-2.0"
] | 28 | 2015-01-15T13:50:05.000Z | 2022-03-01T13:41:33.000Z | test/sync_call.cc | shayanalia/msgpack-rpc-cpp | 3fd73f9a58b899774dca13a1c478fad7924dd8fd | [
"Apache-2.0"
] | 1 | 2016-10-03T22:45:49.000Z | 2016-10-04T01:11:57.000Z | test/sync_call.cc | shayanalia/msgpack-rpc-cpp | 3fd73f9a58b899774dca13a1c478fad7924dd8fd | [
"Apache-2.0"
] | 13 | 2015-11-27T15:30:59.000Z | 2020-09-30T20:43:00.000Z | #include "echo_server.h"
#include <msgpack/rpc/server.h>
#include <msgpack/rpc/client.h>
#include <cclog/cclog.h>
#include <cclog/cclog_tty.h>
int main(void)
{
cclog::reset(new cclog_tty(cclog::TRACE, std::cout));
signal(SIGPIPE, SIG_IGN);
// run server {
rpc::server svr;
std::auto_ptr<rpc::dispatcher> dp(new m... | 18.277778 | 71 | 0.641337 | shayanalia |
9cd6c31f764122214136fff6589293c7a8c871b9 | 3,148 | cpp | C++ | src/Shader.cpp | the13fools/fieldgen | 6b1757e1a75cd65b73526aa9c200303fbee4d669 | [
"Unlicense",
"MIT"
] | 93 | 2019-06-04T06:56:49.000Z | 2022-03-30T08:44:58.000Z | src/Shader.cpp | the13fools/fieldgen | 6b1757e1a75cd65b73526aa9c200303fbee4d669 | [
"Unlicense",
"MIT"
] | 1 | 2020-02-06T14:56:41.000Z | 2020-07-15T17:31:29.000Z | src/Shader.cpp | the13fools/fieldgen | 6b1757e1a75cd65b73526aa9c200303fbee4d669 | [
"Unlicense",
"MIT"
] | 11 | 2019-06-06T21:11:29.000Z | 2021-08-14T05:06:16.000Z | #include "Shader.h"
#include <fstream>
#include <iostream>
using namespace std;
namespace DDG
{
Shader::Shader( void )
// constructor -- shader is initially invalid
: vertexShader( 0 ),
fragmentShader( 0 ),
geometryShader( 0 ),
program( 0 ),
linked( false )
{}
Shader::~Shader( void... | 22.013986 | 79 | 0.558132 | the13fools |
9cd9ec1315f44ba17406216a8e849bbde7e6f376 | 1,263 | cpp | C++ | Stack/Check for redundent braces.cpp | Dharaneeshwar/DataStructures | 9fab95b8d58c39cb3bb9cd6d635f2f5d4fdec9df | [
"MIT"
] | 11 | 2020-09-12T03:05:30.000Z | 2020-11-12T00:18:08.000Z | Stack/Check for redundent braces.cpp | g-o-l-d-y/DataStructures | 7049c6d0e7e3d54bad3b380d8048c5215698c78e | [
"MIT"
] | 1 | 2020-10-19T10:10:08.000Z | 2020-10-19T10:10:08.000Z | Stack/Check for redundent braces.cpp | g-o-l-d-y/DataStructures | 7049c6d0e7e3d54bad3b380d8048c5215698c78e | [
"MIT"
] | 1 | 2020-10-19T06:48:16.000Z | 2020-10-19T06:48:16.000Z | #include <iostream>
#include <cstring>
using namespace std;
// class declaration
class Node
{
public:
char data;
Node *next;
} *head = NULL;
void append(char data)
{
// adds the element to the top of Stack
Node *newnode = new Node();
newnode->data = data;
newnode->next = NULL;
if (head == ... | 17.30137 | 65 | 0.409343 | Dharaneeshwar |
9cdbfd728fbd218182b08609f6be804d202a8279 | 9,495 | hxx | C++ | src/libserver/html/html_block.hxx | msuslu/rspamd | 95764f816a9e1251a755c6edad339637345cfe28 | [
"Apache-2.0"
] | 1 | 2017-10-24T22:23:44.000Z | 2017-10-24T22:23:44.000Z | src/libserver/html/html_block.hxx | msuslu/rspamd | 95764f816a9e1251a755c6edad339637345cfe28 | [
"Apache-2.0"
] | null | null | null | src/libserver/html/html_block.hxx | msuslu/rspamd | 95764f816a9e1251a755c6edad339637345cfe28 | [
"Apache-2.0"
] | 1 | 2022-02-20T17:41:48.000Z | 2022-02-20T17:41:48.000Z | /*-
* Copyright 2021 Vsevolod Stakhov
*
* 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... | 27.763158 | 107 | 0.67288 | msuslu |
9cdcb7d8b7ee69bc1dedd8cda1a889a343814e31 | 41,185 | cpp | C++ | tests/unit/TAO/API/tokens.cpp | cyptoman/LLL-TAO | dfaad5497e280df576b6d2e7959f82874c42fe3e | [
"MIT"
] | null | null | null | tests/unit/TAO/API/tokens.cpp | cyptoman/LLL-TAO | dfaad5497e280df576b6d2e7959f82874c42fe3e | [
"MIT"
] | null | null | null | tests/unit/TAO/API/tokens.cpp | cyptoman/LLL-TAO | dfaad5497e280df576b6d2e7959f82874c42fe3e | [
"MIT"
] | null | null | null | /*__________________________________________________________________________________________
(c) Hash(BEGIN(Satoshi[2010]), END(Sunny[2012])) == Videlicet[2014] ++
(c) Copyright The Nexus Developers 2014 - 2019
Distributed under the MIT software license, see the accompanying
... | 31.705158 | 134 | 0.566808 | cyptoman |
9cdcee2c61b64c8f4d0e8d25efdd8f038d2a1ed0 | 3,040 | cpp | C++ | Source/Engine/ING/Source/ING/Rendering/Pipeline/Pipeline.cpp | n-c0d3r/ING | f858c973e1b31ffc6deb324fa52eda6323d2c165 | [
"MIT"
] | 2 | 2022-01-21T04:03:55.000Z | 2022-03-19T08:54:00.000Z | Source/Engine/ING/Source/ING/Rendering/Pipeline/Pipeline.cpp | n-c0d3r/ING | f858c973e1b31ffc6deb324fa52eda6323d2c165 | [
"MIT"
] | null | null | null | Source/Engine/ING/Source/ING/Rendering/Pipeline/Pipeline.cpp | n-c0d3r/ING | f858c973e1b31ffc6deb324fa52eda6323d2c165 | [
"MIT"
] | null | null | null |
/**
* Include Header
*/
#include "Pipeline.h"
/**
* Include Camera
*/
#include <ING/Camera/Camera.h>
/**
* Include Renderer
*/
#include <ING/Rendering/Renderer/Renderer.h>
/**
* Include Rendering API
*/
#include <ING/Rendering/API/API.h>
/**
* Include Rendering Device Context
*/
#include <ING/Ren... | 13.755656 | 84 | 0.630921 | n-c0d3r |
9ce4ebac3eb6cf5e5f748d0e54b3afb8a9f0a016 | 9,147 | cpp | C++ | src/qt/src/gui/widgets/qradiobutton.cpp | martende/phantomjs | 5cecd7dde7b8fd04ad2c036d16f09a8d2a139854 | [
"BSD-3-Clause"
] | 1 | 2015-03-16T20:49:09.000Z | 2015-03-16T20:49:09.000Z | src/qt/src/gui/widgets/qradiobutton.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | src/qt/src/gui/widgets/qradiobutton.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** ... | 30.694631 | 101 | 0.682738 | martende |
9ce7ea7fb4855c7e3170a351895aa88d36813e37 | 10,616 | cpp | C++ | src/objects/smoke/SmokeIcon-gen.cpp | steptosky/3DsMax-X-Obj-Exporter | c70f5a60056ee71aba1569f1189c38b9e01d2f0e | [
"BSD-3-Clause"
] | 20 | 2017-07-07T06:07:30.000Z | 2022-03-09T12:00:57.000Z | src/objects/smoke/SmokeIcon-gen.cpp | steptosky/3DsMax-X-Obj-Exporter | c70f5a60056ee71aba1569f1189c38b9e01d2f0e | [
"BSD-3-Clause"
] | 28 | 2017-07-07T06:08:27.000Z | 2022-03-09T12:09:23.000Z | src/objects/smoke/SmokeIcon-gen.cpp | steptosky/3DsMax-X-Obj-Exporter | c70f5a60056ee71aba1569f1189c38b9e01d2f0e | [
"BSD-3-Clause"
] | 7 | 2018-01-24T19:43:22.000Z | 2020-01-06T00:05:40.000Z | #include "SmokeIcon-gen.h"
#pragma warning(push, 0)
#include <max.h>
#pragma warning(pop)
/* Auto-generated file */
void SmokeIcon::fillMesh(Mesh & outMesh, const float scale) {
outMesh.setNumVerts(48);
outMesh.setNumFaces(42);
outMesh.verts[0].x = scale * 0.500000f;
outMesh.verts[0].y = scale * 0.... | 43.330612 | 61 | 0.62905 | steptosky |
9ce801751ff185cf1c4837105a9b4cdeb1187ecc | 6,460 | cpp | C++ | Tests/LibC/strlcpy-correctness.cpp | shubhdev/serenity | 9321d9d83d366ad4cf686c856063ff9ac97c18a4 | [
"BSD-2-Clause"
] | 4 | 2021-02-23T05:35:25.000Z | 2021-06-08T06:11:06.000Z | Tests/LibC/strlcpy-correctness.cpp | shubhdev/serenity | 9321d9d83d366ad4cf686c856063ff9ac97c18a4 | [
"BSD-2-Clause"
] | 4 | 2021-04-27T20:44:44.000Z | 2021-06-30T18:07:10.000Z | Tests/LibC/strlcpy-correctness.cpp | shubhdev/serenity | 9321d9d83d366ad4cf686c856063ff9ac97c18a4 | [
"BSD-2-Clause"
] | 1 | 2022-01-10T08:02:34.000Z | 2022-01-10T08:02:34.000Z | /*
* Copyright (c) 2020, Ben Wiederhake <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <AK/ByteBuffer.h>
#include <AK/Random.h>
#include <AK/StringBuilder.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
struct Testcase {
const ch... | 39.151515 | 174 | 0.632353 | shubhdev |
9ce809c9485d906290ddf8e8833099a7a8f05573 | 2,623 | cpp | C++ | bootloader/bootloader32/src/RealMode.cpp | Rzuwik/FunnyOS | a93a45babf575d08cf2704a8394ac1455f3ad4db | [
"MIT"
] | null | null | null | bootloader/bootloader32/src/RealMode.cpp | Rzuwik/FunnyOS | a93a45babf575d08cf2704a8394ac1455f3ad4db | [
"MIT"
] | null | null | null | bootloader/bootloader32/src/RealMode.cpp | Rzuwik/FunnyOS | a93a45babf575d08cf2704a8394ac1455f3ad4db | [
"MIT"
] | null | null | null | #include "RealMode.hpp"
#include <FunnyOS/Hardware/Interrupts.hpp>
// Defined in real_mode.asm
extern FunnyOS::Bootloader32::Registers32 g_savedRegisters;
extern uint8_t g_realBuffer;
extern uint8_t g_realBufferTop;
F_CDECL extern void do_real_mode_interrupt();
namespace FunnyOS::Bootloader32 {
using namespace ... | 36.430556 | 113 | 0.581014 | Rzuwik |
9ce835cce2288e438bee59f8376b8331e6e442ab | 831 | hpp | C++ | libs/core/include/fcppt/string_literal.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/string_literal.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/string_literal.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_STRING_LITERAL_HPP_INCLUDED
#define FCPPT_STRING_LITERAL_HPP_INCLUDED
#include <fcp... | 23.083333 | 86 | 0.724428 | pmiddend |
9ce97fa30f1816d72221b1abc841dfdf364782c0 | 630 | hpp | C++ | engine/Component.hpp | shenchi/gllab | 5d8fe33cd763d5fe5033da106b715751ae2e87ef | [
"MIT"
] | null | null | null | engine/Component.hpp | shenchi/gllab | 5d8fe33cd763d5fe5033da106b715751ae2e87ef | [
"MIT"
] | null | null | null | engine/Component.hpp | shenchi/gllab | 5d8fe33cd763d5fe5033da106b715751ae2e87ef | [
"MIT"
] | null | null | null | #ifndef COMPONENT_H
#define COMPONENT_H
#include "Object.hpp"
class SceneObject;
class Component : public Object
{
public:
enum Type
{
TYPE_UNKNOWN = -1,
TYPE_MESHFILTER,
TYPE_MESHRENDERER,
};
public:
Component( int type ) : m_enabled( true ), m_type( type ), m_owner( 0 ) {}
virtual ~Component() {}
in... | 16.578947 | 75 | 0.687302 | shenchi |
9cea5ca39c94fb894f7d3142ad95c0b527c50fdc | 6,890 | cpp | C++ | waf/src/v20180125/model/CreateAttackDownloadTaskRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | waf/src/v20180125/model/CreateAttackDownloadTaskRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | waf/src/v20180125/model/CreateAttackDownloadTaskRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 25.518519 | 95 | 0.723077 | suluner |
9cee429080c82d731cdcf91453ceee424a088661 | 150 | hpp | C++ | src/events/interactions/delete-entity.hpp | guillaume-haerinck/imac-tower-defense | 365a32642ea0d3ad8b2b7d63347d585c44d9f670 | [
"MIT"
] | 44 | 2019-06-06T21:33:30.000Z | 2022-03-26T06:18:23.000Z | src/events/interactions/delete-entity.hpp | guillaume-haerinck/imac-tower-defense | 365a32642ea0d3ad8b2b7d63347d585c44d9f670 | [
"MIT"
] | 1 | 2019-09-27T12:04:52.000Z | 2019-09-29T13:30:42.000Z | src/events/interactions/delete-entity.hpp | guillaume-haerinck/imac-tower-defense | 365a32642ea0d3ad8b2b7d63347d585c44d9f670 | [
"MIT"
] | 8 | 2019-07-26T16:44:26.000Z | 2020-11-24T17:56:18.000Z | #pragma once
namespace evnt {
struct DeleteEntity {
DeleteEntity(std::uint32_t entityId) : entityId(entityId) {}
std::uint32_t entityId;
};
}
| 15 | 62 | 0.713333 | guillaume-haerinck |
9ceef42127f999b3cd649487f49ef5175eee3fc0 | 2,149 | cpp | C++ | src/CppUtil/Basic/StrAPI/StrAPI.cpp | huangx916/RenderLab | a0059705d5694146bbe51442e0cabdcbcd750fe7 | [
"MIT"
] | 1 | 2019-09-20T03:04:12.000Z | 2019-09-20T03:04:12.000Z | src/CppUtil/Basic/StrAPI/StrAPI.cpp | huangx916/RenderLab | a0059705d5694146bbe51442e0cabdcbcd750fe7 | [
"MIT"
] | null | null | null | src/CppUtil/Basic/StrAPI/StrAPI.cpp | huangx916/RenderLab | a0059705d5694146bbe51442e0cabdcbcd750fe7 | [
"MIT"
] | null | null | null | #include <CppUtil/Basic/StrAPI.h>
#include <cassert>
#include <algorithm>
using namespace CppUtil::Basic;
using namespace std;
const string StrAPI::Head(const string & str, int n) {
assert(n >= 0);
return str.substr(0, std::min(static_cast<size_t>(n), str.size()));
}
const string StrAPI::Tail(const string & str, ... | 23.107527 | 94 | 0.658911 | huangx916 |
9cef88cd9b8cdde8848478b889a98ca49fb44843 | 9,530 | cpp | C++ | libs/obs/src/CSimpleMap.cpp | feroze/mrpt-shivang | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | 2 | 2017-03-25T18:09:17.000Z | 2017-05-22T08:14:48.000Z | libs/obs/src/CSimpleMap.cpp | feroze/mrpt-shivang | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | null | null | null | libs/obs/src/CSimpleMap.cpp | feroze/mrpt-shivang | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | 1 | 2018-07-29T09:40:46.000Z | 2018-07-29T09:40:46.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 26.545961 | 106 | 0.495173 | feroze |
9cf11266dce10f9681f3b02109fbecfdde39a2af | 78,227 | cpp | C++ | bench/ml2cpp-demo/XGBClassifier/BreastCancer/ml2cpp-demo_XGBClassifier_BreastCancer.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | null | null | null | bench/ml2cpp-demo/XGBClassifier/BreastCancer/ml2cpp-demo_XGBClassifier_BreastCancer.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | 33 | 2020-09-13T09:55:01.000Z | 2022-01-06T11:53:55.000Z | bench/ml2cpp-demo/XGBClassifier/BreastCancer/ml2cpp-demo_XGBClassifier_BreastCancer.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | 1 | 2021-01-26T14:41:58.000Z | 2021-01-26T14:41:58.000Z | // ********************************************************
// This C++ code was automatically generated by ml2cpp (development version).
// Copyright 2020
// https://github.com/antoinecarme/ml2cpp
// Model : XGBClassifier
// Dataset : BreastCancer
// This CPP code can be compiled using any C++-17 compiler.
// g++ ... | 63.495942 | 879 | 0.705294 | antoinecarme |
9cf1ff5ce94f952820716473210d2675e3b89cc1 | 543 | cpp | C++ | Day-08/Day-08-CodeForces/492B-VanyaAndLanterns.cpp | LawranceMichaelite/100-Days-of-Code | de80015c2ab7c94956d4fe39f6e143627cdd7bc9 | [
"Apache-2.0"
] | null | null | null | Day-08/Day-08-CodeForces/492B-VanyaAndLanterns.cpp | LawranceMichaelite/100-Days-of-Code | de80015c2ab7c94956d4fe39f6e143627cdd7bc9 | [
"Apache-2.0"
] | null | null | null | Day-08/Day-08-CodeForces/492B-VanyaAndLanterns.cpp | LawranceMichaelite/100-Days-of-Code | de80015c2ab7c94956d4fe39f6e143627cdd7bc9 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int num , atMost ;
cin >> num >> atMost ;
vector<double>ans(num , 0.0);
for(int i = 0; i < num ; i++)
{
cin >> ans[i];
}
sort(ans.begin(),ans.end());
double max_dist = 0.0;
for(int i = 0 ; i < num-1 ; i++)
{
... | 22.625 | 67 | 0.499079 | LawranceMichaelite |
9cf4f4d54a34373d40e5e0a366a6396a2e2110f4 | 2,608 | cpp | C++ | src/game/shared/cstrike/hegrenade_projectile.cpp | DeadZoneLuna/csso-src | 6c978ea304ee2df3796bc9c0d2916bac550050d5 | [
"Unlicense"
] | 3 | 2020-12-15T23:09:28.000Z | 2022-01-13T15:55:04.000Z | src/game/shared/cstrike/hegrenade_projectile.cpp | DeadZoneLuna/csso-src | 6c978ea304ee2df3796bc9c0d2916bac550050d5 | [
"Unlicense"
] | null | null | null | src/game/shared/cstrike/hegrenade_projectile.cpp | DeadZoneLuna/csso-src | 6c978ea304ee2df3796bc9c0d2916bac550050d5 | [
"Unlicense"
] | 2 | 2021-12-30T02:28:31.000Z | 2022-03-05T08:34:15.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "hegrenade_projectile.h"
#include "soundent.h"
#include "cs_player.h"
#include "KeyValues.h"
#include "weapon_csb... | 27.452632 | 129 | 0.716641 | DeadZoneLuna |
9cf6c32549d863e360858d3e90445c96c91a2ac7 | 2,417 | cpp | C++ | examples/priority-schedule.cpp | dan65prc/conduit | 6f73416c8b5526a84a21415d5079bb2b61772144 | [
"BSD-3-Clause"
] | 5 | 2018-08-01T02:52:11.000Z | 2020-09-19T08:12:07.000Z | examples/priority-schedule.cpp | dan65prc/conduit | 6f73416c8b5526a84a21415d5079bb2b61772144 | [
"BSD-3-Clause"
] | null | null | null | examples/priority-schedule.cpp | dan65prc/conduit | 6f73416c8b5526a84a21415d5079bb2b61772144 | [
"BSD-3-Clause"
] | 1 | 2021-12-02T21:05:35.000Z | 2021-12-02T21:05:35.000Z |
#include <fmt/format.h>
#define CONDUIT_NO_LUA
#define CONDUIT_NO_PYTHON
#include <conduit/conduit.h>
#include <conduit/function.h>
#include <string>
#include <iostream>
#include <algorithm>
#include <queue>
#include <random>
struct QueueEntry
{
int priority;
conduit::Function<void()> event;
friend bool ... | 34.042254 | 107 | 0.651634 | dan65prc |
9cf902b5780c0c03d9ad6e467919623831347b35 | 1,595 | cpp | C++ | AsyncTaskMsg.cpp | xaviarmengol/ESP32-Canyon | 2d2c876afa6c4b8f8a47e4f80c99d106754ac716 | [
"MIT"
] | null | null | null | AsyncTaskMsg.cpp | xaviarmengol/ESP32-Canyon | 2d2c876afa6c4b8f8a47e4f80c99d106754ac716 | [
"MIT"
] | null | null | null | AsyncTaskMsg.cpp | xaviarmengol/ESP32-Canyon | 2d2c876afa6c4b8f8a47e4f80c99d106754ac716 | [
"MIT"
] | null | null | null | #include "AsyncTaskMsg.hpp"
AsyncTaskMsg::AsyncTaskMsg(taskNames_t myTaskName) {
_myTaskName = myTaskName;
_taskId = static_cast<int>(myTaskName);
}
void AsyncTaskMsg::update(){
_ptrAsyncTask = &(tasksManager[_taskId]);
taskNames_t taskFrom = _ptrAsyncTask->getMsgTaskFrom();
asyncMsg_t... | 30.673077 | 93 | 0.689655 | xaviarmengol |
9cfc7e33fccde3331d93c8a5618e718bc8dfc5c5 | 3,051 | cpp | C++ | share/src/policy/packages.cpp | MrCryptoBeast/WWW | 857e860df0aa1bc7fde2ee6f5918ff32933beeb3 | [
"MIT"
] | null | null | null | share/src/policy/packages.cpp | MrCryptoBeast/WWW | 857e860df0aa1bc7fde2ee6f5918ff32933beeb3 | [
"MIT"
] | null | null | null | share/src/policy/packages.cpp | MrCryptoBeast/WWW | 857e860df0aa1bc7fde2ee6f5918ff32933beeb3 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 The worldwideweb Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <consensus/validation.h>
#include <policy/packages.h>
#include <primitives/transaction.h>
#include <uint256.h>
#incl... | 48.428571 | 113 | 0.662078 | MrCryptoBeast |
9cfd319e71a48e152b4d8594b26db33988f7eed0 | 2,045 | cpp | C++ | src/problems/151-200/151/problem151.cpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | 1 | 2019-12-25T10:17:15.000Z | 2019-12-25T10:17:15.000Z | src/problems/151-200/151/problem151.cpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | null | null | null | src/problems/151-200/151/problem151.cpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | null | null | null | //
// Created by Alex Beccaro on 03/08/2021.
//
#include "problem151.hpp"
#include "generics.hpp"
#include <numeric>
#include <vector>
#include <unordered_map>
#include <unordered_set>
using std::vector;
using std::unordered_map;
using std::unordered_set;
using generics::digits;
using std::accumulate;
namespace pro... | 33.52459 | 118 | 0.51687 | abeccaro |
9cfd5987f8ad19c1b35cc090c3a5a954bce01e18 | 317 | cpp | C++ | Codeforces/ProblemSet/4C.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | Codeforces/ProblemSet/4C.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | Codeforces/ProblemSet/4C.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
int n;
string s;
map<string,int> ber;
cin >> n;
while(n--){
cin >> s;
if(ber.find(s) == ber.end()) cout << "OK" << endl , ber[s]++;
else{
s = s + to_string(ber[s]++);
cout << s << endl;
}
}
return 0;
}
| 12.192308 | 63 | 0.526814 | Binary-bug |
9cfd69060a1eec602154533c0f5d2678a13d4ee8 | 2,000 | cpp | C++ | src/common/osWrappersInitFunc.cpp | GPUOpen-Tools/common-src-AMDTOSWrappers | 80f8902c78d52435ac04f66ac190d689e5badbc1 | [
"MIT"
] | 2 | 2017-01-28T14:11:35.000Z | 2018-02-01T08:22:03.000Z | src/common/osWrappersInitFunc.cpp | GPUOpen-Tools/common-src-AMDTOSWrappers | 80f8902c78d52435ac04f66ac190d689e5badbc1 | [
"MIT"
] | null | null | null | src/common/osWrappersInitFunc.cpp | GPUOpen-Tools/common-src-AMDTOSWrappers | 80f8902c78d52435ac04f66ac190d689e5badbc1 | [
"MIT"
] | 2 | 2018-02-01T08:22:04.000Z | 2019-11-01T23:00:21.000Z | //=====================================================================
// Copyright 2016 (c), Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file osWrappersInitFunc.cpp
///
//=====================================================================
//-----------------------... | 36.363636 | 129 | 0.614 | GPUOpen-Tools |
9cfe59c2dad23c25e0f625bfe2d9dfda0a011759 | 5,163 | hpp | C++ | include/GTGE/SceneStateStackStagingArea.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 31 | 2015-03-19T08:44:48.000Z | 2021-12-15T20:52:31.000Z | include/GTGE/SceneStateStackStagingArea.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 19 | 2015-07-09T09:02:44.000Z | 2016-06-09T03:51:03.000Z | include/GTGE/SceneStateStackStagingArea.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 3 | 2017-10-04T23:38:18.000Z | 2022-03-07T08:27:13.000Z | // Copyright (C) 2011 - 2014 David Reid. See included LICENCE.
#ifndef GT_SceneStateStackStagingArea
#define GT_SceneStateStackStagingArea
#include "SceneStateStackRestoreCommands.hpp"
#include "Serialization.hpp"
namespace GT
{
class Scene;
class SceneStateStackBranch;
/// Class representing the stagin... | 36.617021 | 137 | 0.643812 | mackron |
1401ec61770b1f679360d68dc86f07046f28f7b1 | 1,573 | hpp | C++ | include/tao/pq/parameter_traits_aggregate.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 69 | 2016-08-05T19:16:04.000Z | 2018-11-24T15:13:46.000Z | include/tao/pq/parameter_traits_aggregate.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 13 | 2016-11-24T16:42:28.000Z | 2018-09-11T18:55:40.000Z | include/tao/pq/parameter_traits_aggregate.hpp | huzaifanazir/taopq | 8f939d33840f14d7c08311729745fe7bb8cd9898 | [
"BSL-1.0"
] | 13 | 2016-09-22T17:31:10.000Z | 2018-10-18T02:56:49.000Z | // Copyright (c) 2020-2022 Daniel Frey and Dr. Colin Hirsch
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#ifndef TAO_PQ_PARAMETER_TRAITS_AGGREGATE_HPP
#define TAO_PQ_PARAMETER_TRAITS_AGGREGATE_HPP
#include <ta... | 34.195652 | 128 | 0.655435 | huzaifanazir |
14057d3d9f7402d8601ce38a4d90ad7bb0d277ec | 9,905 | cpp | C++ | src/game/Object/Corpse.cpp | Zilvereyes/ServerOne | 92a792c4c5b9a5128e0086b5af21b51c214bb6a6 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/game/Object/Corpse.cpp | Zilvereyes/ServerOne | 92a792c4c5b9a5128e0086b5af21b51c214bb6a6 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/game/Object/Corpse.cpp | Zilvereyes/ServerOne | 92a792c4c5b9a5128e0086b5af21b51c214bb6a6 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | /**
* MaNGOS is a full featured server for World of Warcraft, supporting
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
*
* Copyright (C) 2005-2016 MaNGOS project <https://getmangos.eu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gen... | 33.921233 | 180 | 0.649571 | Zilvereyes |
140698983dfcde02a684576c884d1d551c33c6ac | 2,006 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR/string.equals/CPP/equals.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_CLR/string.equals/CPP/equals.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_CLR/string.equals/CPP/equals.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
//<snippet1>
// Sample for String::Equals(Object)
// String::Equals(String)
// String::Equals(String, String)
using namespace System;
using namespace System::Text;
int main()
{
StringBuilder^ sb = gcnew StringBuilder( "abcd" );
String^ str1 = "abcd";
String^ str2 = nullptr;
... | 35.821429 | 97 | 0.614158 | hamarb123 |
1406de2798c39a32a6fa42099bba06066254b323 | 4,720 | cpp | C++ | libs/vision/src/pnp/lhm.cpp | zarmomin/mrpt | 1baff7cf8ec9fd23e1a72714553bcbd88c201966 | [
"BSD-3-Clause"
] | 1 | 2021-12-10T06:24:08.000Z | 2021-12-10T06:24:08.000Z | libs/vision/src/pnp/lhm.cpp | gao-ouyang/mrpt | 4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7 | [
"BSD-3-Clause"
] | null | null | null | libs/vision/src/pnp/lhm.cpp | gao-ouyang/mrpt | 4af5fdf7e45b00be4a64c3d4f009acb9ef415ec7 | [
"BSD-3-Clause"
] | 1 | 2019-09-11T02:55:04.000Z | 2019-09-11T02:55:04.000Z | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... | 20.792952 | 80 | 0.528178 | zarmomin |
14096755a4b69d0e141e87a956c5147ad7a26c71 | 6,436 | cpp | C++ | friend_functions.cpp | portfoliocourses/cplusplus-example-code | 629a16c52fdee1b59896951235be59be096b0359 | [
"MIT"
] | null | null | null | friend_functions.cpp | portfoliocourses/cplusplus-example-code | 629a16c52fdee1b59896951235be59be096b0359 | [
"MIT"
] | null | null | null | friend_functions.cpp | portfoliocourses/cplusplus-example-code | 629a16c52fdee1b59896951235be59be096b0359 | [
"MIT"
] | null | null | null | /*******************************************************************************
*
* Program: Friend Functions Examples
*
* Description: Examples of how to use friend functions in C++.
*
* YouTube Lesson: https://www.youtube.com/watch?v=lOfI1At3tKM
*
* Author: Kevin Browne @ https://portfoliocourses.com
*
***********... | 29.388128 | 80 | 0.699037 | portfoliocourses |
140defc8281e5d5db4e0b27685869396b61c5fed | 84 | cpp | C++ | ARM/NXP/LPC11xx/src/i2c_lpc11uxx.cpp | SoniaZotz/IOsonata | a0eaa1d0bf1d23785af6af037d84d87348dc4597 | [
"MIT"
] | 94 | 2015-03-12T14:49:43.000Z | 2021-08-05T00:43:50.000Z | ARM/NXP/LPC11xx/src/i2c_lpc11uxx.cpp | SoniaZotz/IOsonata | a0eaa1d0bf1d23785af6af037d84d87348dc4597 | [
"MIT"
] | 10 | 2019-10-16T19:02:47.000Z | 2022-02-27T21:35:56.000Z | ARM/NXP/LPC11xx/src/i2c_lpc11uxx.cpp | SoniaZotz/IOsonata | a0eaa1d0bf1d23785af6af037d84d87348dc4597 | [
"MIT"
] | 24 | 2015-04-22T20:35:28.000Z | 2022-01-10T13:08:40.000Z | /*
* i2c_lpc11uxx.cpp
*
* Created on: Mar. 1, 2019
* Author: hoan
*/
| 7.636364 | 28 | 0.5 | SoniaZotz |
140fac534dda0b13fb63ab566e55fc0f47ca6057 | 2,232 | cpp | C++ | OCTLib/code/phase_calibration.cpp | wjh1001/octlab | 77be6161a31d2f40af238f394ee8d486e050cf73 | [
"BSD-3-Clause-Clear"
] | 1 | 2015-05-31T11:03:55.000Z | 2015-05-31T11:03:55.000Z | OCTLib/code/phase_calibration.cpp | caoyuan0923/octlab | 77be6161a31d2f40af238f394ee8d486e050cf73 | [
"BSD-3-Clause-Clear"
] | null | null | null | OCTLib/code/phase_calibration.cpp | caoyuan0923/octlab | 77be6161a31d2f40af238f394ee8d486e050cf73 | [
"BSD-3-Clause-Clear"
] | null | null | null | /*******************************************************************************
* $Id$
* Copyright (C) 2010 Stepan A. Baranov ([email protected])
* All rights reserved.
* web-site: www.OCTLab.org
* ***** ******* *****
* Use of this source code is governed... | 36 | 80 | 0.537634 | wjh1001 |
1411ed3837576e17f0f96af7faa51ba74d33e139 | 4,537 | hpp | C++ | src/rdb_protocol/batching.hpp | sauter-hq/rethinkdb | f34541d501bcf109c2825a7a1b67cf8fd39b9133 | [
"Apache-2.0"
] | null | null | null | src/rdb_protocol/batching.hpp | sauter-hq/rethinkdb | f34541d501bcf109c2825a7a1b67cf8fd39b9133 | [
"Apache-2.0"
] | null | null | null | src/rdb_protocol/batching.hpp | sauter-hq/rethinkdb | f34541d501bcf109c2825a7a1b67cf8fd39b9133 | [
"Apache-2.0"
] | null | null | null | // Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_BATCHING_HPP_
#define RDB_PROTOCOL_BATCHING_HPP_
#include <utility>
#include "containers/archive/archive.hpp"
#include "containers/archive/versioned.hpp"
#include "rdb_protocol/datum.hpp"
#include "rpc/serialize_macros.hpp"
#include "time.hpp... | 36.886179 | 82 | 0.728675 | sauter-hq |
1413dfe7cd85c122d1f627a71f8c04d446f74a28 | 12,668 | cpp | C++ | src/casinocoin/beast/utility/src/beast_PropertyStream.cpp | MassICTBV/casinocoind | 81d6a15a0578c086c1812dd2203c0973099b0061 | [
"BSL-1.0"
] | 1 | 2020-03-17T21:31:14.000Z | 2020-03-17T21:31:14.000Z | src/casinocoin/beast/utility/src/beast_PropertyStream.cpp | MassICTBV/casinocoind | 81d6a15a0578c086c1812dd2203c0973099b0061 | [
"BSL-1.0"
] | 1 | 2018-09-29T17:35:07.000Z | 2018-09-29T17:35:07.000Z | src/casinocoin/beast/utility/src/beast_PropertyStream.cpp | MassICTBV/casinocoind | 81d6a15a0578c086c1812dd2203c0973099b0061 | [
"BSL-1.0"
] | 3 | 2018-07-12T11:34:45.000Z | 2021-09-13T18:08:25.000Z | //------------------------------------------------------------------------------
/*
This file is part of Beast: https://github.com/vinniefalco/Beast
Copyright 2013, Vinnie Falco <[email protected]>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without f... | 21.916955 | 89 | 0.586517 | MassICTBV |
141442bb280965fafefcd810c2a762ad51690759 | 54,805 | cpp | C++ | core/fpdfapi/page/cpdf_streamcontentparser.cpp | guidopola/pdfium | 4117500e4809c74ec7f800f1729dcffa2ce54874 | [
"BSD-3-Clause"
] | 1 | 2019-01-12T07:08:25.000Z | 2019-01-12T07:08:25.000Z | core/fpdfapi/page/cpdf_streamcontentparser.cpp | guidopola/pdfium | 4117500e4809c74ec7f800f1729dcffa2ce54874 | [
"BSD-3-Clause"
] | null | null | null | core/fpdfapi/page/cpdf_streamcontentparser.cpp | guidopola/pdfium | 4117500e4809c74ec7f800f1729dcffa2ce54874 | [
"BSD-3-Clause"
] | 1 | 2019-09-20T07:47:55.000Z | 2019-09-20T07:47:55.000Z | // Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdfapi/page/cpdf_streamcontentparser.h"
#include <memory>
#in... | 32.837028 | 80 | 0.671417 | guidopola |
14146dfbc9bec580cf9fb46ba61bc929de305f6f | 6,648 | hpp | C++ | unit_test/include/extra_features_test.hpp | wh5a/intel-qs | b625e1fb09c5aa3c146cb7129a2a29cdb6ff186a | [
"Apache-2.0"
] | 1 | 2021-04-15T11:41:57.000Z | 2021-04-15T11:41:57.000Z | unit_test/include/extra_features_test.hpp | wh5a/intel-qs | b625e1fb09c5aa3c146cb7129a2a29cdb6ff186a | [
"Apache-2.0"
] | null | null | null | unit_test/include/extra_features_test.hpp | wh5a/intel-qs | b625e1fb09c5aa3c146cb7129a2a29cdb6ff186a | [
"Apache-2.0"
] | null | null | null | #ifndef EXTRA_FEATURES_TEST_HPP
#define EXTRA_FEATURES_TEST_HPP
#include "../../include/qureg.hpp"
#include "../../include/qaoa_features.hpp"
//////////////////////////////////////////////////////////////////////////////
// Test fixture class.
class ExtraFeaturesTest : public ::testing::Test
{
protected:
ExtraFe... | 39.337278 | 120 | 0.602136 | wh5a |
14149a39491f7d7fde5c6c4282ddd14371a352f0 | 8,667 | cpp | C++ | lib/string.cpp | bilyanhadzhi/susi | 92ae0e30fe67b544f75fc3581b292ea87f4f078c | [
"MIT"
] | 1 | 2021-03-01T14:14:56.000Z | 2021-03-01T14:14:56.000Z | lib/string.cpp | bilyanhadzhi/susi | 92ae0e30fe67b544f75fc3581b292ea87f4f078c | [
"MIT"
] | null | null | null | lib/string.cpp | bilyanhadzhi/susi | 92ae0e30fe67b544f75fc3581b292ea87f4f078c | [
"MIT"
] | null | null | null | #include <fstream>
#include <cstring>
#include <cassert>
#include "string.hpp"
#include "../constants.hpp"
void String::copy_from(const String& other)
{
this->capacity = this->get_needed_capacity(other.value);
this->set_value(other.value);
this->len = other.len;
}
void String::free_memory()
{
if (this... | 18.440426 | 83 | 0.543671 | bilyanhadzhi |
1416b0991154bafad89626ae8e9641383bab2bd8 | 6,244 | hpp | C++ | include/UnityEngine/TextCore/LowLevel/GlyphPairAdjustmentRecord.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/UnityEngine/TextCore/LowLevel/GlyphPairAdjustmentRecord.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/UnityEngine/TextCore/LowLevel/GlyphPairAdjustmentRecord.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.ValueType
#include "System/V... | 65.726316 | 464 | 0.788597 | RedBrumbler |
1417207abb02a99c22957e6bf67017ba855f6d3e | 2,370 | cc | C++ | shell/browser/ui/win/atom_desktop_native_widget_aura.cc | CezaryKulakowski/electron | eb6660f5341d6d7e2143be31eefec558fd866c84 | [
"MIT"
] | 4 | 2019-07-05T20:42:42.000Z | 2020-01-02T07:26:56.000Z | shell/browser/ui/win/atom_desktop_native_widget_aura.cc | CezaryKulakowski/electron | eb6660f5341d6d7e2143be31eefec558fd866c84 | [
"MIT"
] | 4 | 2021-03-11T05:19:38.000Z | 2022-03-28T01:24:48.000Z | shell/browser/ui/win/atom_desktop_native_widget_aura.cc | CezaryKulakowski/electron | eb6660f5341d6d7e2143be31eefec558fd866c84 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/ui/win/atom_desktop_native_widget_aura.h"
#include "shell/browser/ui/win/atom_desktop_window_tree_host_win.h"
#include "ui/views/corewm/tooltip_controller.h"
#... | 39.5 | 78 | 0.753586 | CezaryKulakowski |
141bb1ef6637cb707642cb2d692ff6b0307652cf | 1,868 | cpp | C++ | main.cpp | chenhongqiao/FCWT | 16034c4422db0119d680ff1af0ad68dc149b0b47 | [
"MIT"
] | null | null | null | main.cpp | chenhongqiao/FCWT | 16034c4422db0119d680ff1af0ad68dc149b0b47 | [
"MIT"
] | null | null | null | main.cpp | chenhongqiao/FCWT | 16034c4422db0119d680ff1af0ad68dc149b0b47 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
#include <fstream>
#include "input.h"
#include <iomanip>
std::map<std::string, short int> vocab_tree(const std::vector<std::string> &v) {
std::map<std::string, short int> m;
for (auto &i : v) {
for (int j = 1; j < i.size(); ++j) {
if (m[i... | 24.25974 | 117 | 0.41167 | chenhongqiao |
142a715eb42fa83babbd86b50d9936cb60b046da | 70 | cpp | C++ | Autoplay/Source/Autoplay/Private/Autoplay.cpp | realityreflection/Autoplay | e81555444f821d44ce986c4e5e450dabb0930af0 | [
"MIT"
] | 6 | 2017-05-22T02:24:50.000Z | 2021-11-08T07:22:52.000Z | Example/Plugins/Autoplay/Source/Autoplay/Private/Autoplay.cpp | realityreflection/Autoplay | e81555444f821d44ce986c4e5e450dabb0930af0 | [
"MIT"
] | null | null | null | Example/Plugins/Autoplay/Source/Autoplay/Private/Autoplay.cpp | realityreflection/Autoplay | e81555444f821d44ce986c4e5e450dabb0930af0 | [
"MIT"
] | 4 | 2018-04-10T11:06:59.000Z | 2020-07-05T14:21:56.000Z | #include "Autoplay.h"
IMPLEMENT_MODULE(AutoplayModuleImpl, Autoplay); | 23.333333 | 47 | 0.828571 | realityreflection |
28a2f38bd00c1ccd4103718bfd98e16013240a4c | 3,812 | cpp | C++ | src/nnfusion/core/kernels/cuda_gpu/kernels/layer_norm.cpp | nox-410/nnfusion | 0777e297299c4e7a5071dc2ee97b87adcd22840e | [
"MIT"
] | 639 | 2020-09-05T10:00:59.000Z | 2022-03-30T08:42:39.000Z | src/nnfusion/core/kernels/cuda_gpu/kernels/layer_norm.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 252 | 2020-09-09T05:35:36.000Z | 2022-03-29T04:58:41.000Z | src/nnfusion/core/kernels/cuda_gpu/kernels/layer_norm.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 104 | 2020-09-05T10:01:08.000Z | 2022-03-23T10:59:13.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// #include "../cuda_cudnn.hpp"
#include "../cuda_cudnn.hpp"
#include "../cuda_emitter.hpp"
#include "../cuda_langunit.hpp"
#include "nnfusion/core/operators/generic_op/generic_op.hpp"
namespace nnfusion
{
namespace kernels
{
n... | 38.12 | 100 | 0.444386 | nox-410 |
28a4931a93ce452e7bccfa0b8200fc8589aae136 | 3,016 | cpp | C++ | src/GTKClient.cpp | Ladislus/svg-project-l3 | e1932dd175b59c81af39b8f49c4fb28f963e9c4f | [
"MIT"
] | null | null | null | src/GTKClient.cpp | Ladislus/svg-project-l3 | e1932dd175b59c81af39b8f49c4fb28f963e9c4f | [
"MIT"
] | null | null | null | src/GTKClient.cpp | Ladislus/svg-project-l3 | e1932dd175b59c81af39b8f49c4fb28f963e9c4f | [
"MIT"
] | null | null | null | //
// Created by o2173194 on 04/03/20.
//
#include <gtk/gtk.h>
#include <cctype>
static void enter_callback( GtkWidget *widget, GtkWidget *entry )
{
const gchar *entry_text;
entry_text = gtk_entry_get_text (GTK_ENTRY (entry));
printf ("Entry contents: %s\n", entry_text);
}
void insert_text_event(GtkEditab... | 30.464646 | 108 | 0.634947 | Ladislus |
28a73e8d0c6a8676d78e0aff4af2e7f5a6281d84 | 53,394 | cpp | C++ | wxWidgets-2.9.1/src/richtext/richtextliststylepage.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 241 | 2015-01-04T00:36:58.000Z | 2022-01-06T19:19:23.000Z | wxWidgets-2.9.1/src/richtext/richtextliststylepage.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 10 | 2015-07-10T18:27:17.000Z | 2019-06-26T20:59:59.000Z | wxWidgets-2.9.1/src/richtext/richtextliststylepage.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 82 | 2015-01-25T18:02:35.000Z | 2022-03-05T12:28:17.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: src/richtext/richtextliststylepage.cpp
// Purpose:
// Author: Julian Smart
// Modified by:
// Created: 10/18/2006 11:36:37 AM
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows lic... | 39.202643 | 196 | 0.725625 | gamekit-developers |
28abb27fd199f22440597d85f90b972ddd7ad853 | 2,852 | cpp | C++ | vulkanon/generator/data/code/vulkanon/l0_enemy23.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | 5 | 2020-04-20T02:28:15.000Z | 2021-12-05T22:04:06.000Z | vulkanon/generator/data/code/vulkanon/l0_enemy23.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | null | null | null | vulkanon/generator/data/code/vulkanon/l0_enemy23.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | null | null | null | // XXX uniqID XXX 318a5e347d432a1a29542cd45457692a XXX
#include <gba_types.h>
#include "bullet.hpp"
#include "fixed.hpp"
#include "vulkanon/l0_enemy23.hpp"
extern const BulletStepFunc bullet_72977f5a201704a116fed2c268b98db5_318a5e347d432a1a29542cd45457692a[] = {
stepfunc_b9f3746024faf71a948d02a3f58cba12_318a5e34... | 55.921569 | 350 | 0.860098 | pqrs-org |
28b08ebb4e2e8a1448c6ecb8dded527de3550256 | 963 | cpp | C++ | vnoj/nkpath.cpp | tiozo/Training | 02cc8c4fcf68e07c16520fd05fcbfa524c171b6b | [
"MIT"
] | 1 | 2021-08-28T04:16:34.000Z | 2021-08-28T04:16:34.000Z | vnoj/nkpath.cpp | tiozo/Training | 02cc8c4fcf68e07c16520fd05fcbfa524c171b6b | [
"MIT"
] | null | null | null | vnoj/nkpath.cpp | tiozo/Training | 02cc8c4fcf68e07c16520fd05fcbfa524c171b6b | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
long long gcd(long long int a, long long int b)
{
if (b == 0)
return a;
return gcd(b, a % b);
}
long long lcm(int a, int b)
{
return (a / gcd(a, b)) * b;
}
const int MOD=1e9;
int main() {
int M,N;
cin >> M >> N;
vector<vi ... | 19.26 | 69 | 0.379024 | tiozo |
28b5525bc8a63b03219b8d88bf631993ca818f4f | 28,439 | hpp | C++ | include/netp/constants.hpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | null | null | null | include/netp/constants.hpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | null | null | null | include/netp/constants.hpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | null | null | null | #ifndef _NETP_CONSTANTS_H_
#define _NETP_CONSTANTS_H_
#include <climits>
#include <netp/core/platform.hpp>
#define NETP_SOCKET_ERROR (-1)
#define NETP_INVALID_SOCKET netp::SOCKET(~0)
namespace netp {
namespace u8 {
const u32_t MAX = 0xffU;
}
namespace i8 {
const u32_t MAX = 0x7f;
}
namespace u16 {
const... | 50.513321 | 236 | 0.674215 | cainiaoDJ |
28b5ef0e98123bbcae16199980e1ed619eb5e3f4 | 103,207 | inl | C++ | Src/FEMTree.IsoSurface.specialized.inl | DamonsJ/PoissonRecon | fec7801bd10a02bbb9036b52de5f7c3955f399dc | [
"MIT"
] | 15 | 2021-05-26T11:47:59.000Z | 2022-01-20T12:34:15.000Z | Src/FEMTree.IsoSurface.specialized.inl | DamonsJ/PoissonRecon | fec7801bd10a02bbb9036b52de5f7c3955f399dc | [
"MIT"
] | 7 | 2021-06-08T08:35:00.000Z | 2021-11-07T10:27:30.000Z | Src/FEMTree.IsoSurface.specialized.inl | DamonsJ/PoissonRecon | fec7801bd10a02bbb9036b52de5f7c3955f399dc | [
"MIT"
] | 14 | 2017-03-16T10:09:22.000Z | 2021-12-28T03:53:18.000Z | /*
Copyright (c) 2006, Michael Kazhdan and Matthew Bolitho
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
conditions ... | 54.89734 | 785 | 0.65075 | DamonsJ |
28bc3aa89f9c3c29f8a3e2e9536533af149ceb1f | 774 | cpp | C++ | test/localization/locale.categories/category.time/locale.time.get/time_base.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 1,244 | 2015-01-02T21:08:56.000Z | 2022-03-22T21:34:16.000Z | test/localization/locale.categories/category.time/locale.time.get/time_base.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 125 | 2015-01-22T01:08:00.000Z | 2020-05-25T08:28:17.000Z | test/localization/locale.categories/category.time/locale.time.get/time_base.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 124 | 2015-01-12T15:06:17.000Z | 2022-03-26T07:48:53.000Z | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 25.8 | 80 | 0.489664 | caiohamamura |
28bd1df68cd3643736999d01cb1bdc1184d60d1c | 7,492 | hpp | C++ | server/api_grammar.hpp | aaronbenz/osrm-backend | 758d4023050d1f49971f919cea872a2276dafe14 | [
"BSD-2-Clause"
] | 1 | 2021-03-06T05:07:44.000Z | 2021-03-06T05:07:44.000Z | server/api_grammar.hpp | aaronbenz/osrm-backend | 758d4023050d1f49971f919cea872a2276dafe14 | [
"BSD-2-Clause"
] | null | null | null | server/api_grammar.hpp | aaronbenz/osrm-backend | 758d4023050d1f49971f919cea872a2276dafe14 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2013, Project OSRM contributors
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 conditions and the f... | 60.910569 | 150 | 0.573946 | aaronbenz |
28bd5aed619a987f6f1a13ee398a199eec1d31bb | 2,377 | cpp | C++ | rs/test/if_empty_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | 19 | 2017-05-15T08:20:00.000Z | 2021-12-03T05:58:32.000Z | rs/test/if_empty_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | null | null | null | rs/test/if_empty_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | 3 | 2018-01-16T18:07:30.000Z | 2021-06-30T07:33:44.000Z | // Copyright 2017 Per Grön. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | 28.297619 | 78 | 0.625999 | dymk |
28c44172bf3c7d44323a7f7fde8bda2fbb4e42c5 | 6,213 | cpp | C++ | src/pmp/gl/MeshViewer.cpp | choyfung/pmp-library | 4a72c918494dac92f5e77545b71c7a327dafe71e | [
"BSD-3-Clause"
] | 1 | 2020-05-21T04:15:44.000Z | 2020-05-21T04:15:44.000Z | src/pmp/gl/MeshViewer.cpp | choyfung/pmp-library | 4a72c918494dac92f5e77545b71c7a327dafe71e | [
"BSD-3-Clause"
] | null | null | null | src/pmp/gl/MeshViewer.cpp | choyfung/pmp-library | 4a72c918494dac92f5e77545b71c7a327dafe71e | [
"BSD-3-Clause"
] | 1 | 2020-05-21T04:15:52.000Z | 2020-05-21T04:15:52.000Z | //=============================================================================
// Copyright (C) 2011-2018 The pmp-library developers
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source ... | 32.528796 | 80 | 0.532593 | choyfung |
28c58478d55622296b9540fb61d83e076cbf5c9e | 5,087 | cpp | C++ | src/cpp/server/scene/SceneView.cpp | ey6es/witgap | 8f4af7adbde6bb172b4c66c0969e6f5d8736e7cb | [
"BSD-2-Clause"
] | 2 | 2017-06-24T03:47:12.000Z | 2017-08-11T00:04:46.000Z | src/cpp/server/scene/SceneView.cpp | ey6es/witgap | 8f4af7adbde6bb172b4c66c0969e6f5d8736e7cb | [
"BSD-2-Clause"
] | null | null | null | src/cpp/server/scene/SceneView.cpp | ey6es/witgap | 8f4af7adbde6bb172b4c66c0969e6f5d8736e7cb | [
"BSD-2-Clause"
] | null | null | null | //
// $Id$
#include <QtDebug>
#include "actor/Pawn.h"
#include "net/Session.h"
#include "scene/Scene.h"
#include "scene/SceneView.h"
SceneView::SceneView (Session* session) :
Component(0)
{
connect(session, SIGNAL(didEnterScene(Scene*)), SLOT(handleDidEnterScene(Scene*)));
connect(session, SIGNAL(willLea... | 31.79375 | 99 | 0.591115 | ey6es |
28c6123cc903f54864a936a4a4afcda8618cec8a | 543 | hpp | C++ | part-27-vulkan-load-textures/main/src/core/mesh.hpp | tanzle-aames/a-simple-triangle | 3cf7d76e8e8a3b5d42c6db35d3cbfef91b139ab0 | [
"MIT"
] | 52 | 2019-11-30T04:45:02.000Z | 2022-03-10T17:17:57.000Z | part-30-basic-user-input/main/src/core/mesh.hpp | eugenebokhan/a-simple-triangle | 3cf7d76e8e8a3b5d42c6db35d3cbfef91b139ab0 | [
"MIT"
] | null | null | null | part-30-basic-user-input/main/src/core/mesh.hpp | eugenebokhan/a-simple-triangle | 3cf7d76e8e8a3b5d42c6db35d3cbfef91b139ab0 | [
"MIT"
] | 10 | 2020-03-30T16:18:30.000Z | 2022-01-30T14:53:45.000Z | #pragma once
#include "internal-ptr.hpp"
#include "vertex.hpp"
#include <vector>
namespace ast
{
struct Mesh
{
Mesh(const std::vector<ast::Vertex>& vertices, const std::vector<uint32_t>& indices);
const std::vector<ast::Vertex>& getVertices() const;
const std::vector<uint32_t>& getIn... | 20.884615 | 93 | 0.642726 | tanzle-aames |
28ca111689a28c63c69729f5ca3405bfd07cb618 | 129 | cpp | C++ | src/modules/replay/replay_main.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | src/modules/replay/replay_main.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | src/modules/replay/replay_main.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:a88a7b61d2bf7615571ada8de82e2cf5034f40407f98a48fadeaad6849143d52
size 2097
| 32.25 | 75 | 0.883721 | Diksha-agg |
28ca4208c578f7cdcc4db8288ec2fa9313bab65e | 3,672 | cpp | C++ | test/atomic/tst_atomic.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | 11 | 2015-10-06T21:00:30.000Z | 2021-07-27T05:54:44.000Z | test/atomic/tst_atomic.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | null | null | null | test/atomic/tst_atomic.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | 1 | 2015-10-03T03:51:28.000Z | 2015-10-03T03:51:28.000Z | /*******************************************************************************
WEOS - Wrapper for embedded operating systems
Copyright (c) 2013-2016, Manuel Freiberger
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the foll... | 25.5 | 80 | 0.666667 | ombre5733 |
28d2d288b28a076d0f22683a831e1365877a90dc | 6,867 | cpp | C++ | vrclient_x64/vrclient_x64/cppIVRApplications_IVRApplications_005.cpp | neuroradiology/Proton | 5aed286761234b1b362471ca5cf80d25f64cb719 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 17,337 | 2018-08-21T21:43:27.000Z | 2022-03-31T18:06:05.000Z | vrclient_x64/vrclient_x64/cppIVRApplications_IVRApplications_005.cpp | neuroradiology/Proton | 5aed286761234b1b362471ca5cf80d25f64cb719 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,641 | 2018-08-21T22:40:50.000Z | 2022-03-31T23:58:40.000Z | vrclient_x64/vrclient_x64/cppIVRApplications_IVRApplications_005.cpp | neuroradiology/Proton | 5aed286761234b1b362471ca5cf80d25f64cb719 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 910 | 2018-08-21T22:54:53.000Z | 2022-03-29T17:35:31.000Z | #include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.0.1/openvr.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
}
#include "cppIVRApplications_IVRApplications_005.h"
#ifdef __cplusplus
extern "C" {
#endif
vr::EVRApplicationError cppIVRApplications_IVRApplications_005_AddApplic... | 50.866667 | 249 | 0.831076 | neuroradiology |
28d4eec23864a024c50381dbe5e0a85707441286 | 5,886 | cpp | C++ | Source/Ilum/Editor/Panels/Hierarchy.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 11 | 2022-01-09T05:32:56.000Z | 2022-03-28T06:35:16.000Z | Source/Ilum/Editor/Panels/Hierarchy.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | null | null | null | Source/Ilum/Editor/Panels/Hierarchy.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 1 | 2021-11-20T15:39:03.000Z | 2021-11-20T15:39:03.000Z | #include "Hierarchy.hpp"
#include "Scene/Component/Hierarchy.hpp"
#include "Scene/Component/Tag.hpp"
#include "Scene/Component/Transform.hpp"
#include "Scene/Entity.hpp"
#include "Editor/Editor.hpp"
#include <imgui.h>
namespace Ilum::panel
{
inline void delete_node(Entity entity)
{
if (!entity)
{
return;
}
a... | 25.153846 | 217 | 0.681617 | Chaf-Libraries |
28d69e42f3993b3aef47de906eaa6b8a5745446d | 153 | cpp | C++ | lib/source/mylib.cpp | Honeybunch/cpplibtemplate | 23ea15343bb469198420f54eb3d87c4055468084 | [
"MIT"
] | null | null | null | lib/source/mylib.cpp | Honeybunch/cpplibtemplate | 23ea15343bb469198420f54eb3d87c4055468084 | [
"MIT"
] | null | null | null | lib/source/mylib.cpp | Honeybunch/cpplibtemplate | 23ea15343bb469198420f54eb3d87c4055468084 | [
"MIT"
] | null | null | null | #include "mylib.h"
int my_val = 0;
void init_my_lib() { my_val = 10; }
int get_my_lib_val() { return my_val; }
void shutdown_my_lib() { my_val = 0; } | 17 | 39 | 0.660131 | Honeybunch |
28df54ef5b9d2ce9d90f25518306dd1d85e428b0 | 3,337 | cpp | C++ | modules/core/utils.cpp | yjmm10/ModernOCR | a7070c9801ecccbbc5ad66618ca86c830480c573 | [
"MIT"
] | null | null | null | modules/core/utils.cpp | yjmm10/ModernOCR | a7070c9801ecccbbc5ad66618ca86c830480c573 | [
"MIT"
] | null | null | null | modules/core/utils.cpp | yjmm10/ModernOCR | a7070c9801ecccbbc5ad66618ca86c830480c573 | [
"MIT"
] | null | null | null | /*
* @Author: Petrichor
* @Date: 2022-03-11 11:40:37
* @LastEditTime: 2022-03-11 17:21:28
* @LastEditors: Petrichor
* @Description:
* @FilePath: \ModernOCR\modules\core\utils.cpp
* 版权声明
*/
#include "utils.h"
namespace ModernOCR {
namespace utils{
};
namespace image{
cv::Mat getRot... | 34.760417 | 98 | 0.493857 | yjmm10 |
28e42f59d897527a305c2e3a439854cb855e8a89 | 30,158 | cpp | C++ | other/bb_sudoku/bb_sudoku_solver.cpp | dobrichev/tdoku | cda2e52229656bd03db141e6405d50a2a80e2338 | [
"BSD-2-Clause"
] | 100 | 2019-07-01T20:16:33.000Z | 2022-03-27T10:36:48.000Z | other/bb_sudoku/bb_sudoku_solver.cpp | doc22940/tdoku | 63d190a9090d9dc8e613e48e4770c635a5b7e3c3 | [
"BSD-2-Clause"
] | 7 | 2019-12-18T09:07:58.000Z | 2022-03-13T19:39:46.000Z | other/bb_sudoku/bb_sudoku_solver.cpp | doc22940/tdoku | 63d190a9090d9dc8e613e48e4770c635a5b7e3c3 | [
"BSD-2-Clause"
] | 14 | 2019-06-18T05:47:28.000Z | 2022-03-05T08:58:05.000Z | /****************************************************************\
** BB_Sudoku Bit Based Sudoku Solver **
\****************************************************************/
/****************************************************************\
** (c) Copyright Brian Turner, 2008-2009. Th... | 38.320203 | 124 | 0.418463 | dobrichev |
28e45dbdbc5bf09ce27c548339c59ceff1d433bc | 1,138 | hpp | C++ | core/src/jni/jni/Error.hpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 92 | 2016-11-13T01:28:34.000Z | 2022-03-25T01:11:37.000Z | core/src/jni/jni/Error.hpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 242 | 2016-11-28T11:13:09.000Z | 2022-03-04T13:02:53.000Z | core/src/jni/jni/Error.hpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 91 | 2017-06-20T10:35:28.000Z | 2022-03-09T14:15:40.000Z | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from errors.djinni
#ifndef DJINNI_GENERATED_ERROR_HPP_JNI_
#define DJINNI_GENERATED_ERROR_HPP_JNI_
#include "../../api/Error.hpp"
#include "djinni_support.hpp"
namespace djinni_generated {
class Error final {
public:
using CppType = ::ledge... | 31.611111 | 136 | 0.710018 | RomanWlm |
28e4c2089b979618e7976220fff29caa27869d48 | 104,500 | cpp | C++ | source/sfsbp/FDP.cpp | kali-allison/SCycle | 0a81edfae8730acb44531e2c2b3f51f25ea193d2 | [
"MIT"
] | 14 | 2019-04-12T16:36:36.000Z | 2022-03-16T00:35:03.000Z | source/sfsbp/FDP.cpp | kali-allison/SCycle | 0a81edfae8730acb44531e2c2b3f51f25ea193d2 | [
"MIT"
] | null | null | null | source/sfsbp/FDP.cpp | kali-allison/SCycle | 0a81edfae8730acb44531e2c2b3f51f25ea193d2 | [
"MIT"
] | 6 | 2019-07-22T23:53:15.000Z | 2022-03-10T03:30:50.000Z | /* FDP.cpp
* -------
* -----------------------------
* Finite-Difference in Parallel
* -----------------------------
*
* Adding Linear Solve Functionality in the Solve_Linear_Equation function.
* - It currently needs to be able to wrap MatMult in MyMatMult, using my Finite-Difference
* Stencils to calculate t... | 42.986425 | 154 | 0.65533 | kali-allison |
28e4dd08d57b29ea49ce0da075a25972d028a369 | 599 | cpp | C++ | ares/msx/cartridge/slot.cpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/msx/cartridge/slot.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/msx/cartridge/slot.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | CartridgeSlot cartridgeSlot{"Cartridge Slot"};
CartridgeSlot expansionSlot{"Expansion Slot"};
CartridgeSlot::CartridgeSlot(string name) : name(name) {
}
auto CartridgeSlot::load(Node::Object parent) -> void {
port = parent->append<Node::Port>(name);
port->setFamily(interface->name());
port->setType("Cartridge")... | 29.95 | 73 | 0.692821 | moon-chilled |
28e8e12c7fd4e9a32413e89bc05840b200afbfb8 | 2,939 | hpp | C++ | include/conjunctive.hpp | taboege/libpropcalc | b64dbf66a6d58fb8ec8e646530b482bbd96b0ba6 | [
"Artistic-2.0"
] | 1 | 2021-06-01T01:08:56.000Z | 2021-06-01T01:08:56.000Z | include/conjunctive.hpp | taboege/libpropcalc | b64dbf66a6d58fb8ec8e646530b482bbd96b0ba6 | [
"Artistic-2.0"
] | null | null | null | include/conjunctive.hpp | taboege/libpropcalc | b64dbf66a6d58fb8ec8e646530b482bbd96b0ba6 | [
"Artistic-2.0"
] | null | null | null | /*
* conjunctive.hpp - Clause and Conjunctive
*
* Copyright (C) 2019-2020 Tobias Boege
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Artistic License 2.0
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; withou... | 29.686869 | 76 | 0.668935 | taboege |
28ea17e10746395d1ce39607211a0cdb94805391 | 4,221 | cpp | C++ | core/3d/CCFrustum.cpp | DelinWorks/adxe | 0f1ba3a086d744bb52e157e649fa986ae3c7ab05 | [
"MIT"
] | 76 | 2021-05-20T12:27:10.000Z | 2022-03-23T15:27:42.000Z | core/3d/CCFrustum.cpp | DelinWorks/adxe | 0f1ba3a086d744bb52e157e649fa986ae3c7ab05 | [
"MIT"
] | 171 | 2021-05-18T11:07:25.000Z | 2022-03-29T20:53:27.000Z | core/3d/CCFrustum.cpp | DelinWorks/adxe | 0f1ba3a086d744bb52e157e649fa986ae3c7ab05 | [
"MIT"
] | 42 | 2021-05-18T10:05:06.000Z | 2022-03-22T05:40:56.000Z | /****************************************************************************
Copyright (c) 2014-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
https://adxeproject.github.io/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and a... | 40.980583 | 112 | 0.57285 | DelinWorks |
28f640562ad99b13585c57fbf97d8b1e249ecc96 | 12,024 | cpp | C++ | src/ledger/LedgerTxnClaimableBalanceSQL.cpp | V5DF8/stellar-core | 3fb2dc6bea41ed9160313f856e57451897f68cd9 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 10 | 2017-09-23T08:25:40.000Z | 2022-01-04T10:28:02.000Z | src/ledger/LedgerTxnClaimableBalanceSQL.cpp | V5DF8/stellar-core | 3fb2dc6bea41ed9160313f856e57451897f68cd9 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-11-10T00:25:10.000Z | 2021-11-10T02:50:40.000Z | src/ledger/LedgerTxnClaimableBalanceSQL.cpp | V5DF8/stellar-core | 3fb2dc6bea41ed9160313f856e57451897f68cd9 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 2 | 2021-10-21T20:34:04.000Z | 2021-11-21T14:13:54.000Z | // Copyright 2020 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "ledger/LedgerTxnImpl.h"
#include "util/GlobalChecks.h"
#include "util/types.h"
names... | 32.585366 | 80 | 0.603127 | V5DF8 |
28fa9a0f35c465b171eff066be2899cb0884efe2 | 8,494 | cpp | C++ | mbed-os/drivers/QSPI.cpp | h7ga40/PeachCam | 06d023a908dc38228e77b47f80bc8496a4d35806 | [
"Apache-2.0"
] | 1 | 2019-12-13T05:51:34.000Z | 2019-12-13T05:51:34.000Z | mbed-os/drivers/QSPI.cpp | h7ga40/PeachCam | 06d023a908dc38228e77b47f80bc8496a4d35806 | [
"Apache-2.0"
] | null | null | null | mbed-os/drivers/QSPI.cpp | h7ga40/PeachCam | 06d023a908dc38228e77b47f80bc8496a4d35806 | [
"Apache-2.0"
] | 1 | 2021-09-17T15:41:36.000Z | 2021-09-17T15:41:36.000Z | /* mbed Microcontroller Library
* Copyright (c) 2006-2018 ARM Limited
*
* 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
*
* ... | 29.391003 | 233 | 0.585708 | h7ga40 |
28fc02a851e81e019b0eca73e0ce310b05bacffc | 1,765 | cpp | C++ | week2/6_sinExample_circlePlusPath/src/ofApp.cpp | evejweinberg/algo2012 | 7e13c20bab94e1769f6751c4e124964ae05b7087 | [
"MIT"
] | 94 | 2015-01-12T16:07:57.000Z | 2021-12-24T06:48:04.000Z | week2/6_sinExample_circlePlusPath/src/ofApp.cpp | theomission/algo2012 | 7e13c20bab94e1769f6751c4e124964ae05b7087 | [
"MIT"
] | null | null | null | week2/6_sinExample_circlePlusPath/src/ofApp.cpp | theomission/algo2012 | 7e13c20bab94e1769f6751c4e124964ae05b7087 | [
"MIT"
] | 18 | 2015-03-12T23:11:08.000Z | 2022-02-05T05:43:51.000Z | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetVerticalSync(true);
ofBackground(0,0,0);
ofSetCircleResolution(100);
radius = 50;
}
//--------------------------------------------------------------
void ofApp::update(){
radius = radius +... | 17.65 | 64 | 0.398867 | evejweinberg |
28fc99035e0c7318fc6617c3c8d037dd9c7adecb | 2,602 | cpp | C++ | unit_tests/stencil_composition/test_make_loop_intervals.cpp | mbianco/gridtools | 1abef09881a31495a3d02a15d3fe21620c6dde98 | [
"BSD-3-Clause"
] | null | null | null | unit_tests/stencil_composition/test_make_loop_intervals.cpp | mbianco/gridtools | 1abef09881a31495a3d02a15d3fe21620c6dde98 | [
"BSD-3-Clause"
] | null | null | null | unit_tests/stencil_composition/test_make_loop_intervals.cpp | mbianco/gridtools | 1abef09881a31495a3d02a15d3fe21620c6dde98 | [
"BSD-3-Clause"
] | 1 | 2019-06-14T10:35:50.000Z | 2019-06-14T10:35:50.000Z | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <gridtools/stencil_composition/make_loop_intervals.hpp>
#include <gtest/gtest.h>
#include <gridtools/common/defs.hpp>
... | 35.162162 | 105 | 0.60146 | mbianco |
e9005849663072c857de6b3ce39173f8d237bd98 | 6,361 | cpp | C++ | src/appleseed/renderer/modeling/bsdf/bsdfsample.cpp | joelbarmettlerUZH/appleseed | 6da8ff684aa33648a247a4d4005bb4595862e0b3 | [
"MIT"
] | 1,907 | 2015-01-04T00:13:22.000Z | 2022-03-30T15:14:00.000Z | src/appleseed/renderer/modeling/bsdf/bsdfsample.cpp | joelbarmettlerUZH/appleseed | 6da8ff684aa33648a247a4d4005bb4595862e0b3 | [
"MIT"
] | 1,196 | 2015-01-04T10:50:01.000Z | 2022-03-04T09:18:22.000Z | src/appleseed/renderer/modeling/bsdf/bsdfsample.cpp | joelbarmettlerUZH/appleseed | 6da8ff684aa33648a247a4d4005bb4595862e0b3 | [
"MIT"
] | 373 | 2015-01-06T10:08:53.000Z | 2022-03-12T10:25:57.000Z |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2015-2018 Esteban Tovagliari, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any perso... | 32.454082 | 80 | 0.622386 | joelbarmettlerUZH |
e90096d4600be5ce516dff8cb5d49840032d3696 | 4,037 | cpp | C++ | src/rschol/geometry/FiniteDifference.cpp | jeffc71/rank_structured_cholesky | 1b5df69bd6b9187435897786e7461cdd341e8db0 | [
"Unlicense"
] | 3 | 2017-09-07T16:14:33.000Z | 2021-09-18T04:47:06.000Z | src/rschol/geometry/FiniteDifference.cpp | jeffchadwick/rank_structured_cholesky | 1b5df69bd6b9187435897786e7461cdd341e8db0 | [
"Unlicense"
] | null | null | null | src/rschol/geometry/FiniteDifference.cpp | jeffchadwick/rank_structured_cholesky | 1b5df69bd6b9187435897786e7461cdd341e8db0 | [
"Unlicense"
] | null | null | null | //////////////////////////////////////////////////////////////////////
// Copyright (c) 2015, Jeff Chadwick and David Bindel
// 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. Redis... | 36.369369 | 81 | 0.583354 | jeffc71 |
e902b84a9cfaa34c2c09dffbd1740b49dbc860ff | 2,122 | hpp | C++ | file_access.hpp | piccolo255/mhd2d-solver | be635bb6f5f8d3d06a9fa02a15801eedd1f50306 | [
"Unlicense"
] | null | null | null | file_access.hpp | piccolo255/mhd2d-solver | be635bb6f5f8d3d06a9fa02a15801eedd1f50306 | [
"Unlicense"
] | null | null | null | file_access.hpp | piccolo255/mhd2d-solver | be635bb6f5f8d3d06a9fa02a15801eedd1f50306 | [
"Unlicense"
] | null | null | null | #ifndef FILE_ACCESS_HPP_INCLUDED
#define FILE_ACCESS_HPP_INCLUDED
// Read value of a key, show warning and default value if the key is missing
template <class T>
T readEntry
( boost::property_tree::ptree pt
, std::string section
, std::string name
, T defaultValue );
// Read settings from proper... | 26.525 | 84 | 0.696984 | piccolo255 |
e90363efe24449aee213324e34ea26d2fc0605bd | 644 | cpp | C++ | NotSoFAT32/Fat32Directory.cpp | Rohansi/NotSoFAT32 | fd6b6a5528b5af00518a83b3d1c2061a87b007e3 | [
"MIT"
] | 1 | 2020-11-03T16:11:59.000Z | 2020-11-03T16:11:59.000Z | NotSoFAT32/Fat32Directory.cpp | Rohansi/NotSoFAT32 | fd6b6a5528b5af00518a83b3d1c2061a87b007e3 | [
"MIT"
] | 1 | 2020-11-04T11:34:44.000Z | 2020-11-04T11:34:44.000Z | NotSoFAT32/Fat32Directory.cpp | Rohansi/NotSoFAT32 | fd6b6a5528b5af00518a83b3d1c2061a87b007e3 | [
"MIT"
] | null | null | null | #include "Interface/IFat32Directory.hpp"
#include "Fat32Directory.hpp"
#include "Fat32Root.hpp"
#include "Fat32File.hpp"
#include <algorithm>
#include <string>
Fat32Directory::Fat32Directory(std::weak_ptr<Fat32Disk> fat32, std::shared_ptr<DirectoryEntry> entry)
: IFat32Directory(fat32)
{
m_fat32 = fat32;
... | 23 | 101 | 0.728261 | Rohansi |
e9086e1fbdc59a6691aded7cb2e54cb31b51dba5 | 15,212 | cpp | C++ | nfc/src/DOOM/doomclassic/timidity/resample.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | nfc/src/DOOM/doomclassic/timidity/resample.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | nfc/src/DOOM/doomclassic/timidity/resample.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | /*
TiMidity -- Experimental MIDI to WAVE converter
Copyright (C) 1995 Tuukka Toivonen <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at you... | 20.584574 | 76 | 0.619445 | 1337programming |
e90ae0565c37d5f0e74b9139ce7411ccba6f1ba1 | 604 | cpp | C++ | C-C++/activitySelection(Greedy).cpp | psinha30/dataStructure-Algorithms | a5b097f9136cf458d8b95350a05ac19a99f3cbf3 | [
"MIT"
] | 1 | 2019-12-30T18:07:07.000Z | 2019-12-30T18:07:07.000Z | C-C++/activitySelection(Greedy).cpp | psinha30/dataStructure-Algorithms | a5b097f9136cf458d8b95350a05ac19a99f3cbf3 | [
"MIT"
] | null | null | null | C-C++/activitySelection(Greedy).cpp | psinha30/dataStructure-Algorithms | a5b097f9136cf458d8b95350a05ac19a99f3cbf3 | [
"MIT"
] | 1 | 2018-12-20T04:58:26.000Z | 2018-12-20T04:58:26.000Z | #include <bits/stdc++.h>
using namespace std;
int i, n;
struct activity
{
int s,f;
};
bool compare(activity a1, activity a2)
{
return (a1.f < a2.f);
}
void activity_greedy(activity a[], int m)
{
if(m >= n)
return;
if(a[m].s >= a[i].f)
{
if(i == 0)
cout << "{" << a[i].s << "," << a[i].f << "} ";
cou... | 13.422222 | 50 | 0.488411 | psinha30 |
e90c56f98148e6359b1636cd2dd13aff6c42f4cd | 6,985 | cpp | C++ | Cursor.cpp | JermSmith/TDGame | 198599ef229eb6c852dabc7ea72f5537dd10ab5c | [
"MIT"
] | null | null | null | Cursor.cpp | JermSmith/TDGame | 198599ef229eb6c852dabc7ea72f5537dd10ab5c | [
"MIT"
] | null | null | null | Cursor.cpp | JermSmith/TDGame | 198599ef229eb6c852dabc7ea72f5537dd10ab5c | [
"MIT"
] | null | null | null | #include "Cursor.h"
#include "Util\Math.h"
Cursor::Cursor(const sf::RenderWindow& window) : Tower(window) {}
void Cursor::update(const sf::RenderWindow& window, const Path& path,
const std::vector<std::unique_ptr<Tower>>& towers, bool bTowerBeingPlaced)
{
if (bTowerBeingPlaced)
{
// place dummy tower a... | 32.041284 | 153 | 0.644094 | JermSmith |
e90ddfc73a37d14850a6693e7f8f62f8cecc169b | 9,227 | cpp | C++ | lib/ofsocket.cpp | timmyw/ofsystem | 6f955d53dc3025148763333bea0a11d0bce28c06 | [
"MIT"
] | null | null | null | lib/ofsocket.cpp | timmyw/ofsystem | 6f955d53dc3025148763333bea0a11d0bce28c06 | [
"MIT"
] | null | null | null | lib/ofsocket.cpp | timmyw/ofsystem | 6f955d53dc3025148763333bea0a11d0bce28c06 | [
"MIT"
] | null | null | null | /*
Copyright (C) 1997-2011 by Suntail.com AS, Tim Whelan
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... | 24.671123 | 112 | 0.60117 | timmyw |
e90fd826c539b8636606798846eaecad36402fdb | 529 | cpp | C++ | Synthesizer/MainScreen.cpp | 161563/Sylph-Synthesizer | 548e62f1353f254af874d2d06fd6216b808edfd6 | [
"MIT"
] | null | null | null | Synthesizer/MainScreen.cpp | 161563/Sylph-Synthesizer | 548e62f1353f254af874d2d06fd6216b808edfd6 | [
"MIT"
] | null | null | null | Synthesizer/MainScreen.cpp | 161563/Sylph-Synthesizer | 548e62f1353f254af874d2d06fd6216b808edfd6 | [
"MIT"
] | null | null | null | #include "MainScreen.h"
#include "Song.h"
#include "Music.h"
#include <string>
using namespace System;
using namespace System::Windows::Forms;
[STAThread]
void main(array<String^>^ args) {
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
for (int i = 0; i < args->Length; i... | 21.16 | 55 | 0.691871 | 161563 |
e9176cffaec1e7d5f5a498abdb09a3fe2ae6dc3c | 1,072 | cpp | C++ | WirelessThermometer/TimerSwitchWithServo/ServoMotion.cpp | anders-liu/arduino-gallery | 8c65701a33358891b7105b50f831d7f5797288ad | [
"MIT"
] | 1 | 2019-11-07T22:44:27.000Z | 2019-11-07T22:44:27.000Z | WirelessThermometer/TimerSwitchWithServo/ServoMotion.cpp | anders-liu/arduino-gallery | 8c65701a33358891b7105b50f831d7f5797288ad | [
"MIT"
] | null | null | null | WirelessThermometer/TimerSwitchWithServo/ServoMotion.cpp | anders-liu/arduino-gallery | 8c65701a33358891b7105b50f831d7f5797288ad | [
"MIT"
] | null | null | null | #include "ServoMotion.h"
#include "DataStore.h"
#define START_DELAY 200
#define RUNNING_HOLD_PERIOD 1000
enum ServoMotionState_t {
SS_OFF,
SS_JUST_ON,
SS_RUNNING,
};
static void s_powerOff(uint8_t powerPin) {
digitalWrite(powerPin, LOW);
}
static void s_powerOn(uint8_t powerPin) {
digitalWrite(power... | 19.490909 | 58 | 0.697761 | anders-liu |
e917d0a96f269a8a0fb6cc14e7c1320b3cf3a3f7 | 700 | hpp | C++ | android-29/android/media/MediaRecorder_AudioEncoder.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/media/MediaRecorder_AudioEncoder.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/media/MediaRecorder_AudioEncoder.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
namespace android::media
{
class MediaRecorder;
}
namespace android::media
{
class MediaRecorder_AudioEncoder : public JObject
{
public:
// Fields
static jint AAC();
static jint AAC_ELD();
static jint AMR_NB();
static jint AMR_WB();
static jint DEFAULT();
s... | 20 | 167 | 0.692857 | YJBeetle |
e91a18927dc83eb1469e3ebc933d4917f5b0214b | 944 | cc | C++ | jax/training/21-09/29/b_precessing_queries.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | 2 | 2022-01-01T16:55:02.000Z | 2022-03-16T14:47:29.000Z | jax/training/21-09/29/b_precessing_queries.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | jax/training/21-09/29/b_precessing_queries.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
using namespace std;
using ll = long long;
const int N = 2e5 + 10;
ll ans[N];
struct Node {
int t, d, id;
};
int main() {
int n, b;
scanf("%d%d", &n, &b);
ll ed = 0;
queue<Node> q;
for (int i = 0; i < n; ++i) {
int t, d;
scanf("%d%d", &t,... | 17.811321 | 60 | 0.347458 | JaxVanYang |
e91ac1f5e22f7be38a8ace97a06691abd2c9b452 | 27,860 | cpp | C++ | libqd/qd.cpp | philippeb8/fcalc | b62a78e02b56dc4319e06d8eb36bb3d6fdafd256 | [
"MIT"
] | 2 | 2020-10-24T01:15:51.000Z | 2020-10-25T04:07:30.000Z | libqd/qd.cpp | philippeb8/fcalc | b62a78e02b56dc4319e06d8eb36bb3d6fdafd256 | [
"MIT"
] | null | null | null | libqd/qd.cpp | philippeb8/fcalc | b62a78e02b56dc4319e06d8eb36bb3d6fdafd256 | [
"MIT"
] | null | null | null | /*
* src/qd.cc
*
* This work was supported by the Director, Office of Science, Division
* of Mathematical, Information, and Computational Sciences of the
* U.S. Department of Energy under contract number DE-AC03-76SF00098.
*
* Copyright (c) 2000-2001
*
* Contains implementation of non-inlined functions of quad... | 20.380395 | 112 | 0.5 | philippeb8 |
e91ae89244ea57fb12b75ad7443543f1ad1c40a1 | 17,668 | cpp | C++ | src/CommandSet.cpp | jacobussystems/IoTJackAC1 | c1ad8c13d984362c1bbf1232cbfc34e64fc039ac | [
"MIT"
] | null | null | null | src/CommandSet.cpp | jacobussystems/IoTJackAC1 | c1ad8c13d984362c1bbf1232cbfc34e64fc039ac | [
"MIT"
] | null | null | null | src/CommandSet.cpp | jacobussystems/IoTJackAC1 | c1ad8c13d984362c1bbf1232cbfc34e64fc039ac | [
"MIT"
] | null | null | null | /*
CommandSet.cpp
By Jim Davies
Jacobus Systems, Brighton & Hove, UK
http://www.jacobus.co.uk
Provided under the MIT license: https://github.com/jacobussystems/ArdJack/blob/master/LICENSE
Copyright (c) 2019 James Davies, Jacobus Systems, Brighton & Hove, UK
Permission is hereby granted, free of charge, to any... | 21.467801 | 114 | 0.698325 | jacobussystems |
e91b95a988d5806fc6591bb8e7c17a03fe79ecec | 2,716 | cpp | C++ | src/Interpreters/InterpreterExternalDDLQuery.cpp | athom/ClickHouse | 4f4cc9d7404fd489a7229633b22b5ea1889bd8c0 | [
"Apache-2.0"
] | 15,577 | 2019-09-23T11:57:53.000Z | 2022-03-31T18:21:48.000Z | src/Interpreters/InterpreterExternalDDLQuery.cpp | athom/ClickHouse | 4f4cc9d7404fd489a7229633b22b5ea1889bd8c0 | [
"Apache-2.0"
] | 16,476 | 2019-09-23T11:47:00.000Z | 2022-03-31T23:06:01.000Z | src/Interpreters/InterpreterExternalDDLQuery.cpp | athom/ClickHouse | 4f4cc9d7404fd489a7229633b22b5ea1889bd8c0 | [
"Apache-2.0"
] | 3,633 | 2019-09-23T12:18:28.000Z | 2022-03-31T15:55:48.000Z | #if !defined(ARCADIA_BUILD)
# include "config_core.h"
#endif
#include <Interpreters/InterpreterExternalDDLQuery.h>
#include <Interpreters/Context.h>
#include <Parsers/IAST.h>
#include <Parsers/ASTDropQuery.h>
#include <Parsers/ASTRenameQuery.h>
#include <Parsers/ASTIdentifier.h>
#include <Parsers/ASTExternalDDLQue... | 37.722222 | 110 | 0.716495 | athom |
11e8215b2b9ab33162d6c0be79765fb86481e4c3 | 5,260 | cpp | C++ | examples/freverb.cpp | vlazzarini/aurora | 4990d81a6873beace4a39d6584cc77afbda82cf4 | [
"BSD-3-Clause"
] | 11 | 2021-11-26T16:23:40.000Z | 2022-01-19T21:36:35.000Z | examples/freverb.cpp | vlazzarini/aurora | 4990d81a6873beace4a39d6584cc77afbda82cf4 | [
"BSD-3-Clause"
] | null | null | null | examples/freverb.cpp | vlazzarini/aurora | 4990d81a6873beace4a39d6584cc77afbda82cf4 | [
"BSD-3-Clause"
] | null | null | null | // freverb.cpp:
// reverb processing example
// depends on libsndfile
//
// (c) V Lazzarini, 2021
//
// 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 n... | 35.066667 | 80 | 0.585551 | vlazzarini |
11e891310680f0eb1585c118d56651afab914aaa | 11,927 | cc | C++ | modules/perception/obstacle/fusion/probabilistic_fusion/pbf_kalman_motion_fusion.cc | berthu/apollo | 5da49a293e3ad60856448fd61bf6548714cde854 | [
"Apache-2.0"
] | 22 | 2018-10-10T14:46:32.000Z | 2022-02-28T12:43:43.000Z | modules/perception/obstacle/fusion/probabilistic_fusion/pbf_kalman_motion_fusion.cc | berthu/apollo | 5da49a293e3ad60856448fd61bf6548714cde854 | [
"Apache-2.0"
] | 1 | 2021-03-09T16:46:45.000Z | 2021-03-09T16:46:45.000Z | modules/perception/obstacle/fusion/probabilistic_fusion/pbf_kalman_motion_fusion.cc | berthu/apollo | 5da49a293e3ad60856448fd61bf6548714cde854 | [
"Apache-2.0"
] | 12 | 2018-12-24T02:17:19.000Z | 2021-12-06T01:54:09.000Z | /******************************************************************************
* Copyright 2017 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 38.598706 | 93 | 0.707722 | berthu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.