hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71a70cdd2ec1adf5f452fbf4c9036a8ffbf8911c | 11,473 | cpp | C++ | src/Tiger/TigerImport.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/Tiger/TigerImport.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/Tiger/TigerImport.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 42 | 2015-12-14T19:13:02.000Z | 2022-03-01T15:15:03.000Z | /*
* Copyright (c) 2004, Laminar Research.
*
* 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, ... | 35.301538 | 149 | 0.694587 | rromanchuk |
71aa92c4b103eeb4289c1689c618e2e4bee72c2f | 5,440 | hpp | C++ | include/Core/Castor3D/Cache/BillboardCache.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 245 | 2015-10-29T14:31:45.000Z | 2022-03-31T13:04:45.000Z | include/Core/Castor3D/Cache/BillboardCache.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 64 | 2016-03-11T19:45:05.000Z | 2022-03-31T23:58:33.000Z | include/Core/Castor3D/Cache/BillboardCache.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 11 | 2018-05-24T09:07:43.000Z | 2022-03-21T21:05:20.000Z | /*
See LICENSE file in root folder
*/
#ifndef ___C3D_BillboardCache_H___
#define ___C3D_BillboardCache_H___
#include "Castor3D/Cache/ObjectCacheBase.hpp"
#include "Castor3D/Scene/SceneModule.hpp"
#include "Castor3D/Buffer/UniformBufferOffset.hpp"
#include "Castor3D/Shader/Ubos/UbosModule.hpp"
namespace castor3d
{
C... | 36.02649 | 93 | 0.726838 | Mu-L |
71ace11bd9a3794030cbc24e219e17bcc454a483 | 2,361 | hpp | C++ | host-bmc/host_associations_parser.hpp | vkaverap/pldm-2 | 01a50d2421202ba385f6cfc66877d8e8c877478f | [
"Apache-2.0"
] | null | null | null | host-bmc/host_associations_parser.hpp | vkaverap/pldm-2 | 01a50d2421202ba385f6cfc66877d8e8c877478f | [
"Apache-2.0"
] | null | null | null | host-bmc/host_associations_parser.hpp | vkaverap/pldm-2 | 01a50d2421202ba385f6cfc66877d8e8c877478f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "common/utils.hpp"
#include <string>
#include <utility>
#include <vector>
namespace pldm
{
namespace host_associations
{
struct entity
{
uint16_t entity_type;
uint16_t entity_instance_num;
uint16_t entity_container_id;
bool operator==(const entity& e) const
{
retu... | 28.445783 | 80 | 0.638712 | vkaverap |
71ae05cea3e2ccf469da455a0a40d938f75883ee | 1,730 | cpp | C++ | src/Axios/Instance.cpp | antjowie/Axios-framework | d4fadadcc3b5d1e5f83e212bf10e151734223de3 | [
"MIT"
] | null | null | null | src/Axios/Instance.cpp | antjowie/Axios-framework | d4fadadcc3b5d1e5f83e212bf10e151734223de3 | [
"MIT"
] | null | null | null | src/Axios/Instance.cpp | antjowie/Axios-framework | d4fadadcc3b5d1e5f83e212bf10e151734223de3 | [
"MIT"
] | null | null | null | #include "Axios/Instance.h"
#include "Axios/InputHandler.h"
#include "Axios/DataManager.h"
#include "Axios/Object.h"
#include <SFML/System/Clock.hpp>
#include <SFML/Window/Event.hpp>
ax::Instance::Instance() :
m_init(false),
m_currentScene(nullptr)
{
}
void ax::Instance::start()
{
// Check if user called init fun... | 23.378378 | 144 | 0.674566 | antjowie |
71aefdf53f001f0189208ae64dbae6204fff85ad | 1,800 | cpp | C++ | Compi/Highway Construction.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | Compi/Highway Construction.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | Compi/Highway Construction.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
#define Kmax 1002
#define m 1000000009
int Choose[Kmax][Kmax];
int Stirling[Kmax][Kmax];
int factorial[Kmax];
int modexp(long long int x, long long int y, long long int p)
{
long lo... | 16.981132 | 83 | 0.486667 | udayan14 |
71af2fb8b9c6ddfd21321fc706a60b56824df3d4 | 9,133 | cpp | C++ | src/GitCommitInfoPage.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | 8 | 2021-04-16T02:05:54.000Z | 2022-03-16T13:56:23.000Z | src/GitCommitInfoPage.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | null | null | null | src/GitCommitInfoPage.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | 2 | 2021-04-17T10:49:58.000Z | 2021-07-21T20:39:52.000Z | /*
* GitCommitInfoPage.cpp
*
* Created on: Aug 24, 2015
* Author: lingnan
*/
#include <bb/cascades/TitleBar>
#include <bb/cascades/Header>
#include <bb/cascades/Label>
#include <bb/cascades/StandardListItem>
#include <bb/cascades/SystemDefaults>
#include <bb/cascades/NavigationPane>
#include <bb/cascades/Li... | 30.959322 | 106 | 0.586883 | lingnand |
71af7e5bc1582071a9d7c72b45f0ccc6c9f89cd0 | 1,770 | cpp | C++ | quick_sort.cpp | Coslate/Sorting_Algorithm | e43d6c17c9fb1b4a7de409dddd6f4ad30514b231 | [
"MIT"
] | null | null | null | quick_sort.cpp | Coslate/Sorting_Algorithm | e43d6c17c9fb1b4a7de409dddd6f4ad30514b231 | [
"MIT"
] | null | null | null | quick_sort.cpp | Coslate/Sorting_Algorithm | e43d6c17c9fb1b4a7de409dddd6f4ad30514b231 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <time.h>
#include <string>
#include <math.h>
void PrintArray(const int size, const int* arr, const std::string arr_name){
std::cout<<arr_name<<" = [";
for(int i=0;i<size;++i){
if(i == 0){
std::cout<<arr[i];
}else if(i... | 22.405063 | 122 | 0.530508 | Coslate |
71b36706a31fda2f1b47f24d82e09fa75ad1d221 | 1,023 | cc | C++ | d3d9/src/dllmain.cc | nomi-san/league-loader | 56872920c987a46abc280102d4fc1dbfbf7de6a8 | [
"MIT"
] | 6 | 2021-10-10T03:01:40.000Z | 2022-03-05T05:43:19.000Z | d3d9/src/dllmain.cc | nomi-san/susan | 56872920c987a46abc280102d4fc1dbfbf7de6a8 | [
"MIT"
] | null | null | null | d3d9/src/dllmain.cc | nomi-san/susan | 56872920c987a46abc280102d4fc1dbfbf7de6a8 | [
"MIT"
] | 2 | 2021-11-03T04:03:07.000Z | 2022-01-19T06:33:48.000Z | #include "internal.h"
using namespace league_loader;
void LoadD3D9APIs();
void LoadLibCEFAPIs();
static void Attach()
{
// Load D3D9.
LoadD3D9APIs();
// Get exe path.
WCHAR name[1024];
GetModuleFileNameW(NULL, name, 1024);
// Determine which process to be hooked.
// Browser process.
... | 21.765957 | 68 | 0.595308 | nomi-san |
71bd4e551dbef7520badc31de5d8c38984d7ffcb | 2,032 | cpp | C++ | clap/test/with_usage_test.cpp | asap-projects/asap-clap | 97823c2a2d88c749ff4147cf4977698b1f98d0b3 | [
"BSD-3-Clause"
] | null | null | null | clap/test/with_usage_test.cpp | asap-projects/asap-clap | 97823c2a2d88c749ff4147cf4977698b1f98d0b3 | [
"BSD-3-Clause"
] | 1 | 2022-03-08T20:45:38.000Z | 2022-03-08T20:45:38.000Z | clap/test/with_usage_test.cpp | asap-projects/asap-clap | 97823c2a2d88c749ff4147cf4977698b1f98d0b3 | [
"BSD-3-Clause"
] | null | null | null | //===----------------------------------------------------------------------===//
// Distributed under the 3-Clause BSD License. See accompanying file LICENSE or
// copy at https://opensource.org/licenses/BSD-3-Clause).
// SPDX-License-Identifier: BSD-3-Clause
//===-------------------------------------------------------... | 29.028571 | 80 | 0.655512 | asap-projects |
71bdff940e32b523606f254fe71095fd34e05184 | 4,887 | cpp | C++ | modules/RegularExpression.cpp | tyraindreams/EpicBasic | 6dc2d4fb567a8d0fef2db4ff80a17905e23af143 | [
"CC0-1.0"
] | null | null | null | modules/RegularExpression.cpp | tyraindreams/EpicBasic | 6dc2d4fb567a8d0fef2db4ff80a17905e23af143 | [
"CC0-1.0"
] | null | null | null | modules/RegularExpression.cpp | tyraindreams/EpicBasic | 6dc2d4fb567a8d0fef2db4ff80a17905e23af143 | [
"CC0-1.0"
] | null | null | null | // --------------------------------------------------------------------------------
//
// EpicBasic RegularExpression Library
//
// --------------------------------------------------------------------------------
const char * _pcreErrorString ;
int _pcreErrorOffset;
struct _RegularExpression {
... | 32.798658 | 320 | 0.702885 | tyraindreams |
71be544b918fc4c7c801c1fea9ee7d6b0ed33bed | 3,927 | cpp | C++ | src/parser.cpp | ChrisChV/Telegram-Data-Clustering | 650e716983e96df51ceb0a73c1206e5ff321021f | [
"MIT"
] | null | null | null | src/parser.cpp | ChrisChV/Telegram-Data-Clustering | 650e716983e96df51ceb0a73c1206e5ff321021f | [
"MIT"
] | null | null | null | src/parser.cpp | ChrisChV/Telegram-Data-Clustering | 650e716983e96df51ceb0a73c1206e5ff321021f | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include "parser.h"
#include "constants.h"
using namespace std;
Parser::Parser(){
this->fM = nullptr;
}
Parser::Parser(FileManager * fM){
this->fM = fM;
}
Parser::~Parser(){
for(auto it = this->news_data.begin(); it != this->news_data.end(); it++){
if(*it) ... | 25.173077 | 90 | 0.338681 | ChrisChV |
71c123a45e9cdceb86c12dabb0a08956988a7aab | 10,078 | cc | C++ | apps-env/misc/nocTest/nocTest.cc | rouxb/emu-HMpSoC | 18fedaf525207301ad5e96e3c58d10045633620e | [
"MIT"
] | 4 | 2017-11-23T11:59:27.000Z | 2022-02-02T15:01:03.000Z | apps-env/misc/nocTest/nocTest.cc | rouxb/emu-HMpSoC | 18fedaf525207301ad5e96e3c58d10045633620e | [
"MIT"
] | null | null | null | apps-env/misc/nocTest/nocTest.cc | rouxb/emu-HMpSoC | 18fedaf525207301ad5e96e3c58d10045633620e | [
"MIT"
] | 1 | 2021-04-07T09:05:11.000Z | 2021-04-07T09:05:11.000Z | /*
* Copyright (c) 2016 Baptiste Roux.
* email: <baptiste.roux AT inria.fr>.
*/
/*
* File: nocTest.cc
* Test application for nocIPC, two available modes:
* * traffic producer
* * traffic consumer
*/
//NOTE: Don't use memcpy because it generate Byte access on bus
#include <iostream>
#include <sstream>
... | 29.994048 | 105 | 0.564398 | rouxb |
71c2a97c8036fe35b9eaf432e6054cd94501ea10 | 7,945 | cpp | C++ | rcgen/cpp/inverse_dynamics.cpp | kmarkus/ublx-ur5_sim | 51efa12446a7ef9ab5e3e783ce2a6409a3db390f | [
"BSD-3-Clause"
] | 1 | 2020-11-07T11:39:31.000Z | 2020-11-07T11:39:31.000Z | rcgen/cpp/inverse_dynamics.cpp | kmarkus/ublx-ur5_sim | 51efa12446a7ef9ab5e3e783ce2a6409a3db390f | [
"BSD-3-Clause"
] | 1 | 2020-11-10T16:03:37.000Z | 2020-11-10T16:03:37.000Z | rcgen/cpp/inverse_dynamics.cpp | kmarkus/ublx-ur5_sim | 51efa12446a7ef9ab5e3e783ce2a6409a3db390f | [
"BSD-3-Clause"
] | 1 | 2020-11-07T10:57:43.000Z | 2020-11-07T10:57:43.000Z | #include <iit/rbd/robcogen_commons.h>
#include "inverse_dynamics.h"
#include "inertia_properties.h"
#ifndef EIGEN_NO_DEBUG
#include <iostream>
#endif
using namespace std;
using namespace iit::rbd;
using namespace ur5::rcg;
// Initialization of static-const data
const ur5::rcg::InverseDynamics::ExtForces
ur5::rcg:... | 35.950226 | 111 | 0.670736 | kmarkus |
71c8b2edc7a73d4a97bb4860e43e1603f4bff6a0 | 3,043 | cpp | C++ | Source/SystemQOR/MSWindows/WinQL/Application/Comms/Network/WinQLNetworkHost.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQL/Application/Comms/Network/WinQLNetworkHost.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQL/Application/Comms/Network/WinQLNetworkHost.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //WinQLNetworkHost.cpp
// Copyright Querysoft Limited 2013
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit th... | 41.121622 | 135 | 0.658232 | mfaithfull |
71c9843a7801ae4a062c4836970af4235cf6c501 | 1,212 | cpp | C++ | pgf+/src/reader/CncFun.cpp | egladil/mscthesis | d6f0c9b1b1e73b749894405372f2edf01e746920 | [
"BSD-2-Clause"
] | 1 | 2019-05-03T18:00:39.000Z | 2019-05-03T18:00:39.000Z | pgf+/src/reader/CncFun.cpp | egladil/mscthesis | d6f0c9b1b1e73b749894405372f2edf01e746920 | [
"BSD-2-Clause"
] | null | null | null | pgf+/src/reader/CncFun.cpp | egladil/mscthesis | d6f0c9b1b1e73b749894405372f2edf01e746920 | [
"BSD-2-Clause"
] | null | null | null | //
// CncFun.cpp
// pgf+
//
// Created by Emil Djupfeldt on 2012-06-26.
// Copyright (c) 2012 Chalmers University of Technology. All rights reserved.
//
#include <gf/reader/CncFun.h>
namespace gf {
namespace reader {
CncFun::CncFun(const std::string& name, const std::vector<Sequence*>& sequen... | 26.347826 | 110 | 0.476073 | egladil |
71ceae9b940786489c49fed5b083f939fd5f05da | 5,531 | cpp | C++ | IGC/Compiler/CISACodeGen/getCacheOpts.cpp | frantisekz/intel-graphics-compiler | 77af69c509916dfaefb1d7fa4549492824ecf606 | [
"Intel",
"MIT"
] | 3 | 2017-09-29T20:02:18.000Z | 2017-11-01T17:33:57.000Z | IGC/Compiler/CISACodeGen/getCacheOpts.cpp | intel/intelgraphicscompiler | f7a20c6e6bed56933cfbb910a01da77a1d6ae6e4 | [
"Intel",
"MIT"
] | null | null | null | IGC/Compiler/CISACodeGen/getCacheOpts.cpp | intel/intelgraphicscompiler | f7a20c6e6bed56933cfbb910a01da77a1d6ae6e4 | [
"Intel",
"MIT"
] | null | null | null | /*========================== begin_copyright_notice ============================
Copyright (C) 2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
/**
* @file getCacheOpts.cpp
*
* @section DESCRIPTION
*
* This file contains defini... | 25.725581 | 103 | 0.677454 | frantisekz |
71cfda41c045686f2c34558cdfb67b5483f904c8 | 1,303 | hpp | C++ | include/xul/net/http/http_request_parser.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 2 | 2018-03-16T07:06:48.000Z | 2018-04-02T03:02:14.000Z | include/xul/net/http/http_request_parser.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | null | null | null | include/xul/net/http/http_request_parser.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 1 | 2019-08-12T05:15:29.000Z | 2019-08-12T05:15:29.000Z | #pragma once
#include <xul/net/http/http_message_parser.hpp>
#include <xul/net/url_request.hpp>
//#include <xul/net/url_encoding.hpp>
namespace xul {
class http_request_parser : public http_message_parser
{
public:
/// http_response_parser ready to parse the request method.
explicit http_request_parser(url... | 21.716667 | 64 | 0.618573 | hindsights |
71d4d7094675a0191f24b4bf4710b0dc7a6efe79 | 7,314 | cpp | C++ | ToolHead/A4988.cpp | bytemaster-0xff/playground | bf038c2d9c62519a5310aba4f65e56e6cb2eb20e | [
"MIT"
] | 1 | 2017-05-01T07:25:45.000Z | 2017-05-01T07:25:45.000Z | ToolHead/A4988.cpp | bytemaster-0xff/playground | bf038c2d9c62519a5310aba4f65e56e6cb2eb20e | [
"MIT"
] | null | null | null | ToolHead/A4988.cpp | bytemaster-0xff/playground | bf038c2d9c62519a5310aba4f65e56e6cb2eb20e | [
"MIT"
] | null | null | null | //
//
//
#include "A4988.h"
#include <EEPROM.h>
extern void SetAlarmMode();
#define EEPROM_WORKSPACEOFFSET 0
A4988::A4988(int dirPin, int stepPin, int enablePin, String axisName, int eepromStartAddr) {
pinMode(dirPin, OUTPUT);
pinMode(stepPin, OUTPUT);
pinMode(enablePin, OUTPUT);
m_stepPin = stepPin;
m_d... | 20.778409 | 96 | 0.705633 | bytemaster-0xff |
71df93f766722e0c9cfde244b56c6dd7e4437207 | 418 | cpp | C++ | codeforces/practices/800/236A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | codeforces/practices/800/236A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | codeforces/practices/800/236A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Codeforces Round #146 (Div. 2) - A. Boy or Girl
https://codeforces.com/problemset/problem/236/A
*/
#include <bits/stdc++.h>
using namespace std;
#define FAST_INP ios_base::sync_with_stdio(false);cin.tie(NULL)
int main()
{
FAST_INP;
string s;
cin >> s;
unordered_set<char> ss;
for(char c:s) ... | 19.904762 | 64 | 0.617225 | wingkwong |
71e79091d55497f1a8fe2162b9aa6eb479541f9d | 850 | cpp | C++ | ProjectEuler/126.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 2 | 2021-06-09T12:27:07.000Z | 2021-06-11T12:02:03.000Z | ProjectEuler/126.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 1 | 2021-09-08T12:00:05.000Z | 2021-09-08T14:52:30.000Z | ProjectEuler/126.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using LL = long long;
LL gcd(LL a, LL b) {
return b == 0 ? a : gcd(b, a % b);
}
const int INF = 0x3f3f3f3f;
const LL INFL = 0x3f3f3f3f3f3f3f3f;
const int mod = 1e9 + 7;
//-------------------end head--------------
int f(int x, int y, int z, int n) {
return 2 * (x * ... | 25 | 75 | 0.377647 | tusikalanse |
71edd616e687bde427dd3f8738f38873732805f7 | 7,388 | cpp | C++ | Real-Time Corruptor/BizHawk_RTC/waterbox/ss/bizhawk.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 45 | 2017-07-24T05:31:06.000Z | 2019-03-29T12:23:57.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/ss/bizhawk.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 5 | 2017-07-24T02:37:24.000Z | 2018-12-28T16:51:06.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/ss/bizhawk.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 10 | 2017-07-24T02:11:43.000Z | 2018-12-27T20:49:37.000Z | #include "ss.h"
#include <memory>
#include "cdrom/cdromif.h"
#include "cdb.h"
#include "smpc.h"
#include "cart.h"
#include <ctime>
#define EXPORT extern "C" ECL_EXPORT
using namespace MDFN_IEN_SS;
int32 (*FirmwareSizeCallback)(const char *filename);
void (*FirmwareDataCallback)(const char *filename, uint8 *dest);
EX... | 22.455927 | 134 | 0.714672 | redscientistlabs |
71ee02ef79ec381ecd6e3db6a7e79280dd498cfa | 487 | cpp | C++ | p551/p551.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | 1 | 2019-10-07T05:00:21.000Z | 2019-10-07T05:00:21.000Z | p551/p551.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | p551/p551.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | class Solution {
public:
bool checkRecord(string s) {
int n = s.length();
int countA = 0;
for (int i = 0; i < n; ++i)
if (s[i] == 'A') {
if (countA)
return false;
++countA;
} else
if (s[i] ==... | 24.35 | 64 | 0.297741 | suzyz |
71ef881fafb7f6a972f732662b84f9224cf50779 | 1,899 | cpp | C++ | Greedy Algo/HuffmanEncoding.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 22 | 2021-10-01T20:14:15.000Z | 2022-02-22T15:27:20.000Z | Greedy Algo/HuffmanEncoding.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 15 | 2021-10-01T20:24:55.000Z | 2021-10-31T05:55:14.000Z | Greedy Algo/HuffmanEncoding.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 76 | 2021-10-01T20:01:06.000Z | 2022-03-02T16:15:24.000Z | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution
{
public:
struct node
{
char data;
int freq;
node *left, *right;
node(char d, int f)
{
data = d;
freq = f;
left = NULL;
... | 22.081395 | 63 | 0.415482 | Bhannasa |
71f16752fe7540998567e65b1bf8f3fc29418438 | 1,886 | cc | C++ | src/update_engine/action_unittest.cc | remarkableno/update_engine | cdffd37e3f005b7738bf596b9bc8d4155e4c7e15 | [
"BSD-3-Clause"
] | 12 | 2019-06-26T18:32:06.000Z | 2022-03-01T17:32:36.000Z | src/update_engine/action_unittest.cc | remarkableno/update_engine | cdffd37e3f005b7738bf596b9bc8d4155e4c7e15 | [
"BSD-3-Clause"
] | 6 | 2018-11-22T21:11:34.000Z | 2022-02-24T13:36:57.000Z | src/update_engine/action_unittest.cc | remarkableno/update_engine | cdffd37e3f005b7738bf596b9bc8d4155e4c7e15 | [
"BSD-3-Clause"
] | 5 | 2018-06-24T13:19:40.000Z | 2020-10-15T17:10:56.000Z | // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include <gtest/gtest.h>
#include "update_engine/action.h"
#include "update_engine/action_processor.h"
using std::string;
names... | 24.179487 | 77 | 0.706787 | remarkableno |
71f4230c8dd4de135b614cd365ad3db398c06fe7 | 414 | cpp | C++ | ianlmk/cs161b/zybooks/10.10.1.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | null | null | null | ianlmk/cs161b/zybooks/10.10.1.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | 1 | 2022-03-25T18:34:47.000Z | 2022-03-25T18:35:23.000Z | ianlmk/cs161b/zybooks/10.10.1.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main();
void SwapValues(int &, int &);
int main() {
int userVal1;
int userVal2;
cin >> userVal1 >> userVal2;
SwapValues(userVal1, userVal2);
cout << userVal1 << " " << userVal2 << endl;
return 0;
}
void SwapValues(int &userVal1, int &userVal2) {
i... | 13.8 | 47 | 0.625604 | ianlmk |
71f550f738a713c5e24de0ea2bb4a032a79d26db | 19,751 | cpp | C++ | iree/compiler/Conversion/LinalgToSPIRV/LinalgTileAndFusePass.cpp | WindQAQ/iree | 68fc75cbe6e4bdf175885c17d41f4d61a55c3537 | [
"Apache-2.0"
] | null | null | null | iree/compiler/Conversion/LinalgToSPIRV/LinalgTileAndFusePass.cpp | WindQAQ/iree | 68fc75cbe6e4bdf175885c17d41f4d61a55c3537 | [
"Apache-2.0"
] | null | null | null | iree/compiler/Conversion/LinalgToSPIRV/LinalgTileAndFusePass.cpp | WindQAQ/iree | 68fc75cbe6e4bdf175885c17d41f4d61a55c3537 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 40.308163 | 80 | 0.661789 | WindQAQ |
71f69a138d49ac9f66e58c06b0edc0f6d99c94e8 | 1,331 | cpp | C++ | Source/GUI/UWP/HtmlView.xaml.cpp | buckmelanoma/MediaInfo | cf38b0e3d0e6ee2565f49276f423a5792ed62962 | [
"BSD-2-Clause"
] | 743 | 2015-01-13T23:16:53.000Z | 2022-03-31T22:56:27.000Z | Source/GUI/UWP/HtmlView.xaml.cpp | buckmelanoma/MediaInfo | cf38b0e3d0e6ee2565f49276f423a5792ed62962 | [
"BSD-2-Clause"
] | 317 | 2015-07-28T17:50:14.000Z | 2022-03-08T02:41:19.000Z | Source/GUI/UWP/HtmlView.xaml.cpp | buckmelanoma/MediaInfo | cf38b0e3d0e6ee2565f49276f423a5792ed62962 | [
"BSD-2-Clause"
] | 134 | 2015-01-30T05:33:51.000Z | 2022-03-21T09:39:38.000Z | /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//---------------------------------------------------------------------------
#include "pch.h"
#include "H... | 36.972222 | 83 | 0.523666 | buckmelanoma |
71f6bb713cb9d4775b72a21dc13686a4ec9ff3e6 | 953 | hpp | C++ | test/mock/core/crypto/ed25519_provider_mock.hpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | test/mock/core/crypto/ed25519_provider_mock.hpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | test/mock/core/crypto/ed25519_provider_mock.hpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_TEST_MOCK_CORE_CRYPTO_ED25519_PROVIDER_MOCK_HPP
#define KAGOME_TEST_MOCK_CORE_CRYPTO_ED25519_PROVIDER_MOCK_HPP
#include "crypto/ed25519_provider.hpp"
#include <gmock/gmock.h>
namespace kagome::crypto ... | 29.78125 | 80 | 0.656873 | igor-egorov |
71fbb264bec8f56481ed01fb146cc21e66454b00 | 5,762 | hpp | C++ | src/_viennacl/common.hpp | viennacl/pyviennacl-dev | 3509318db9eb4cc788f262f4e3924775f0cf3a01 | [
"MIT"
] | 26 | 2015-01-03T20:06:05.000Z | 2021-09-09T09:23:14.000Z | src/_viennacl/common.hpp | viennacl/pyviennacl-dev | 3509318db9eb4cc788f262f4e3924775f0cf3a01 | [
"MIT"
] | 18 | 2015-01-12T00:08:42.000Z | 2021-01-18T10:31:06.000Z | src/_viennacl/common.hpp | viennacl/pyviennacl-dev | 3509318db9eb4cc788f262f4e3924775f0cf3a01 | [
"MIT"
] | 5 | 2015-09-17T16:42:58.000Z | 2022-03-21T19:21:43.000Z | #ifndef _PYVIENNACL_H
#define _PYVIENNACL_H
#include <boost/python.hpp>
#include <boost/numpy.hpp>
#include <viennacl/tools/shared_ptr.hpp>
#include <viennacl/matrix.hpp>
#include <viennacl/linalg/prod.hpp>
#define CONCAT(...) __VA_ARGS__
namespace vcl = viennacl;
namespace bp = boost::python;
namespace np = boost:... | 26.072398 | 78 | 0.615064 | viennacl |
71fbbb89ba5add52b43bb7c49697a429b7080609 | 7,302 | cpp | C++ | src/Screen.cpp | anonidiot/Wizardry8Editor | 2e844b8bbab9adbee5796de3190f478a91cc829a | [
"BSD-2-Clause"
] | null | null | null | src/Screen.cpp | anonidiot/Wizardry8Editor | 2e844b8bbab9adbee5796de3190f478a91cc829a | [
"BSD-2-Clause"
] | null | null | null | src/Screen.cpp | anonidiot/Wizardry8Editor | 2e844b8bbab9adbee5796de3190f478a91cc829a | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2022 Anonymous Idiot
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following... | 31.747826 | 100 | 0.589565 | anonidiot |
9f95de78124dbd0c656859e902d87bc881ec78b7 | 2,637 | cc | C++ | dcmimgle/libsrc/diovlimg.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | 29 | 2020-02-13T17:40:16.000Z | 2022-03-12T14:58:22.000Z | dcmimgle/libsrc/diovlimg.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | 20 | 2020-03-20T18:06:31.000Z | 2022-02-25T08:38:08.000Z | dcmimgle/libsrc/diovlimg.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | 9 | 2020-03-20T17:29:55.000Z | 2022-02-14T10:15:33.000Z | /*
*
* Copyright (C) 1996-2016, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmimgle
*
* Author: Joerg R... | 27.757895 | 113 | 0.496018 | palmerc |
9f999fc7522ff693a0337e4cdb616d9e00686e0a | 3,114 | cpp | C++ | tests/vu/lower/random.cpp | unknownbrackets/ps2autotests | 97469ffbed8631277b94e28d01dabd702aa97ef3 | [
"0BSD"
] | 25 | 2015-04-07T23:13:49.000Z | 2021-09-27T08:03:53.000Z | tests/vu/lower/random.cpp | unknownbrackets/ps2autotests | 97469ffbed8631277b94e28d01dabd702aa97ef3 | [
"0BSD"
] | 42 | 2015-04-27T03:12:48.000Z | 2018-05-08T13:53:39.000Z | tests/vu/lower/random.cpp | unknownbrackets/ps2autotests | 97469ffbed8631277b94e28d01dabd702aa97ef3 | [
"0BSD"
] | 8 | 2015-04-26T06:29:01.000Z | 2021-05-27T09:50:03.000Z | #include <common-ee.h>
#include "../test_runner.h"
static const u32 __attribute__((aligned(16))) C_ZEROONE[4] = {0x3F800000, 0x3FFFFFFF, 0x00000000, 0xFFFFFFFF};
static const u32 __attribute__((aligned(16))) C_GARBAGE[4] = {0x01234567, 0x89ABCDEF, 0xFEDCBA98, 0x76543210};
static u32 *const CVF_ZEROONE ... | 24.714286 | 115 | 0.65639 | unknownbrackets |
9f9afd1436096594f828dc272f8e7c4f402d4f2f | 1,226 | cpp | C++ | cpp_regex_email/regex_email_test.cpp | cg011235/tutorials | 44d4b4ef520fa67abc1fc2eca2b711d7c26490bf | [
"MIT"
] | null | null | null | cpp_regex_email/regex_email_test.cpp | cg011235/tutorials | 44d4b4ef520fa67abc1fc2eca2b711d7c26490bf | [
"MIT"
] | null | null | null | cpp_regex_email/regex_email_test.cpp | cg011235/tutorials | 44d4b4ef520fa67abc1fc2eca2b711d7c26490bf | [
"MIT"
] | null | null | null | /**
* Match regular expression
*/
#include <regex>
#include <iostream>
#include "gtest/gtest.h"
/*
* The valid email we define as follows.
* 1. It ends with .com
* 2. It has domain like @gmail
*/
bool isValidEmail(std::string str) {
std::regex e("(\\w+)@(\\w+)(\\.(\\w+))+");
/**
* (\\w+) - One o... | 26.652174 | 105 | 0.620718 | cg011235 |
9f9b706b6483f83feb288f85c6d2d3ea5ebed195 | 2,489 | cpp | C++ | flume/planner/common/draw_plan_pass_test.cpp | advancedxy/bigflow_python | 8a244b483404fde7afc42eee98bc964da8ae03e2 | [
"Apache-2.0"
] | 1 | 2017-12-05T06:32:58.000Z | 2017-12-05T06:32:58.000Z | flume/planner/common/draw_plan_pass_test.cpp | advancedxy/bigflow_python | 8a244b483404fde7afc42eee98bc964da8ae03e2 | [
"Apache-2.0"
] | null | null | null | flume/planner/common/draw_plan_pass_test.cpp | advancedxy/bigflow_python | 8a244b483404fde7afc42eee98bc964da8ae03e2 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
*
* Copyright (c) 2014 Baidu, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | 30.728395 | 87 | 0.676175 | advancedxy |
9fa2104b7e7f0ab3961d901cd746713500d0ed6d | 5,324 | cpp | C++ | Competitive Programing Problem Solutions/Graph Theory/Segment Tree+M6 Olle Vai/1083 - Histogram.cpp | BIJOY-SUST/ACM---ICPC | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | 1 | 2022-02-27T12:07:59.000Z | 2022-02-27T12:07:59.000Z | Competitive Programing Problem Solutions/Graph Theory/Segment Tree+M6 Olle Vai/1083 - Histogram.cpp | BIJOY-SUST/Competitive-Programming | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | null | null | null | Competitive Programing Problem Solutions/Graph Theory/Segment Tree+M6 Olle Vai/1083 - Histogram.cpp | BIJOY-SUST/Competitive-Programming | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
#define mx 100010
//#define mod 1000000007
//#define pi 2*acos(0.0)
#define ll long long int
//#define pp pair<int,int>
//#define ull unsigned long long int
//#define valid(tx,ty) tx>=0&&tx<r&&ty>=0&&ty<c
//#define m... | 26.753769 | 105 | 0.474267 | BIJOY-SUST |
9fa3e2269abdf80669538df1eb510f9781bdf12e | 7,139 | cpp | C++ | apps/parallelArray.cpp | bjbanks/Multicore-Term-Project | f74a1ff088aca45384b8fa23eaa129ef527c9930 | [
"MIT"
] | null | null | null | apps/parallelArray.cpp | bjbanks/Multicore-Term-Project | f74a1ff088aca45384b8fa23eaa129ef527c9930 | [
"MIT"
] | null | null | null | apps/parallelArray.cpp | bjbanks/Multicore-Term-Project | f74a1ff088aca45384b8fa23eaa129ef527c9930 | [
"MIT"
] | null | null | null | /*
* Copyright 2020 Bryson Banks and David Campbell. All rights reserved.
*/
#include "parallelArray.h"
#include "math.h"
#include <iostream>
namespace BENCHMARKS {
WSDS::Scheduler* parSched;
int work_per_subtask;
void print_arr(int* arr, int size){
for (int i = 0; i < size; i ++){
... | 26.343173 | 117 | 0.485222 | bjbanks |
9fa6df2d2a3b6e4c4c7d038f355f885529f148bf | 1,910 | cc | C++ | bzip2_test.cc | nurettin/libnuwen | 5b3012d9e75552c372a4d09b218b7af04a928e68 | [
"BSL-1.0"
] | 9 | 2019-09-17T10:33:58.000Z | 2021-07-29T10:03:42.000Z | bzip2_test.cc | nurettin/libnuwen | 5b3012d9e75552c372a4d09b218b7af04a928e68 | [
"BSL-1.0"
] | null | null | null | bzip2_test.cc | nurettin/libnuwen | 5b3012d9e75552c372a4d09b218b7af04a928e68 | [
"BSL-1.0"
] | 1 | 2019-10-05T04:31:22.000Z | 2019-10-05T04:31:22.000Z | // Copyright Stephan T. Lavavej, http://nuwen.net .
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://boost.org/LICENSE_1_0.txt .
#include "bzip2.hh"
#include "clock.hh"
#include "file.hh"
#include "test.hh"
#include "typedef.hh"
#include "vecto... | 26.164384 | 79 | 0.663874 | nurettin |
9fa7fe2064550c6d02ce0a690c6645ce62e8baa8 | 19,208 | cpp | C++ | src/kfpos/algorithms/KalmanFilterTOAIMU.cpp | valentinbarral/roskfpos | 9d524c10cf2ee2fb38211940065360ea24e58cc5 | [
"MIT"
] | null | null | null | src/kfpos/algorithms/KalmanFilterTOAIMU.cpp | valentinbarral/roskfpos | 9d524c10cf2ee2fb38211940065360ea24e58cc5 | [
"MIT"
] | 1 | 2020-09-09T11:53:58.000Z | 2021-08-07T10:43:54.000Z | src/kfpos/algorithms/KalmanFilterTOAIMU.cpp | valentinbarral/roskfpos | 9d524c10cf2ee2fb38211940065360ea24e58cc5 | [
"MIT"
] | null | null | null | #include "KalmanFilterTOAIMU.h"
KalmanFilterTOAIMU::KalmanFilterTOAIMU(double accelerationNoise, double jolt) :
mAccelerationNoise(accelerationNoise),
mUseFixedInitialPosition(false),
mJolt(jolt)
{
MLLocation *mlLocation = new MLLocation();
mPosition = { NAN, NAN, NAN};
mVelocity = { 0, 0, ... | 37.662745 | 174 | 0.641191 | valentinbarral |
9faa09e97b4b5c19ac1a83501429509e8e4878ef | 250 | cpp | C++ | src/mpp/tests/general/test_basic/sources_changed/simple2.cpp | clegaard/metrixplusplus | b222ac8d90db80478a2cbf1013d51d447bf4f66f | [
"MIT"
] | null | null | null | src/mpp/tests/general/test_basic/sources_changed/simple2.cpp | clegaard/metrixplusplus | b222ac8d90db80478a2cbf1013d51d447bf4f66f | [
"MIT"
] | null | null | null | src/mpp/tests/general/test_basic/sources_changed/simple2.cpp | clegaard/metrixplusplus | b222ac8d90db80478a2cbf1013d51d447bf4f66f | [
"MIT"
] | null | null | null |
// Just produce any code in order to test basic workflow
namespace hmm
{
class New_A
{
New_A()
{
/* first funtion */
this->m_member = 10;
if (a & b)
{
for (int i = 0; i < 0 && i > 0; i++)
{
// crazy, right?
}
}
}
};
}
| 9.615385 | 56 | 0.496 | clegaard |
9fab47dadc6c0d778e18a7f7468b517fba2bd2aa | 11,613 | cpp | C++ | src/AltMatrix2D.cpp | dss-bridge/dss | ca58e4eb2750bf6650fcb76b8bc085aaec699283 | [
"Apache-2.0"
] | null | null | null | src/AltMatrix2D.cpp | dss-bridge/dss | ca58e4eb2750bf6650fcb76b8bc085aaec699283 | [
"Apache-2.0"
] | null | null | null | src/AltMatrix2D.cpp | dss-bridge/dss | ca58e4eb2750bf6650fcb76b8bc085aaec699283 | [
"Apache-2.0"
] | null | null | null | /*
SDS, a bridge single-suit double-dummy quick-trick solver.
Copyright (C) 2015 by Soren Hein.
See LICENSE and README.
*/
#include <iomanip>
#include <assert.h>
#include "AltMatrix2D.h"
using namespace std;
AltMatrix2D::AltMatrix2D()
{
AltMatrix2D::Reset();
}
AltMatrix2D::~AltMatrix2D()
{
}
voi... | 22.637427 | 75 | 0.603978 | dss-bridge |
9fabf9635a43fb498b12469e883145e7da3c8e30 | 2,354 | cc | C++ | utils/strings/append.cc | yangzhigang1999/libtextclassifier | 4c965f1c12b3c7a37f6126cef737a8fe33f4677c | [
"Apache-2.0"
] | null | null | null | utils/strings/append.cc | yangzhigang1999/libtextclassifier | 4c965f1c12b3c7a37f6126cef737a8fe33f4677c | [
"Apache-2.0"
] | null | null | null | utils/strings/append.cc | yangzhigang1999/libtextclassifier | 4c965f1c12b3c7a37f6126cef737a8fe33f4677c | [
"Apache-2.0"
] | 1 | 2021-03-20T03:40:21.000Z | 2021-03-20T03:40:21.000Z | // Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 25.868132 | 75 | 0.644435 | yangzhigang1999 |
9fada3d1fd5c8c0442bee91dfe52c5c5ca19dd20 | 2,253 | cpp | C++ | linked_List.cpp | goyalshubhangi/Practicals_Data_Structure | 0358dc9b5ab198d84fd389d68021c2eda08eb8da | [
"MIT"
] | null | null | null | linked_List.cpp | goyalshubhangi/Practicals_Data_Structure | 0358dc9b5ab198d84fd389d68021c2eda08eb8da | [
"MIT"
] | null | null | null | linked_List.cpp | goyalshubhangi/Practicals_Data_Structure | 0358dc9b5ab198d84fd389d68021c2eda08eb8da | [
"MIT"
] | null | null | null | #include<iostream>
#include <stdio.h>
#include<stdlib.h>
using namespace std;
template <class t>
struct node
{
t data;
node<t> *next;
void createList(t n);
void deletion();
void insert_data(t data);
void Display();
};
struct node<int> *start;
template <class t>
void node<t>::createList(t n)
{
struct node<int> *... | 15.326531 | 57 | 0.615624 | goyalshubhangi |
9fae0ce051ce7e966d3e195588e17b4906f886fd | 23,580 | cpp | C++ | MAME4all/trunk/src/gp2x/gp2x_frontend.cpp | lofunz/mieme | 4226c2960b46121ec44fa8eab9717d2d644bff04 | [
"Unlicense"
] | 51 | 2015-11-22T14:53:28.000Z | 2021-12-14T07:17:42.000Z | MAME4all/trunk/src/gp2x/gp2x_frontend.cpp | lofunz/mieme | 4226c2960b46121ec44fa8eab9717d2d644bff04 | [
"Unlicense"
] | 8 | 2018-01-14T07:19:06.000Z | 2021-08-22T15:29:59.000Z | src/gp2x/gp2x_frontend.cpp | raytlin/iMameAtariArcadeDuo | 24adc56d1a6080822a6c9d1770ddbc607814373a | [
"Unlicense"
] | 35 | 2017-02-15T09:39:00.000Z | 2021-12-14T07:17:43.000Z | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include "minimal.h"
#include "gp2x_frontend_list.h"
#include "gp2x_frontend_menu.h"
#include "gp2x_frontend_splash.h"
int game_num_avail=0;
static int last_game_selected=0;
char playemu[16] = "mame... | 26.887115 | 142 | 0.628202 | lofunz |
9faf0de9277cfb18d6a506e99f67782af43040cb | 1,798 | cpp | C++ | source/PinCallback.cpp | xzrunner/shaderlab | c70a05d478a971eb228998b0f8d2f9d6cbd0fedd | [
"MIT"
] | 2 | 2016-11-16T16:32:18.000Z | 2017-04-18T13:28:11.000Z | source/PinCallback.cpp | xzrunner/shaderlab | c70a05d478a971eb228998b0f8d2f9d6cbd0fedd | [
"MIT"
] | null | null | null | source/PinCallback.cpp | xzrunner/shaderlab | c70a05d478a971eb228998b0f8d2f9d6cbd0fedd | [
"MIT"
] | 1 | 2016-11-16T16:32:21.000Z | 2016-11-16T16:32:21.000Z | #include "shaderlab/PinCallback.h"
#include "shaderlab/PinType.h"
#include <painting0/Color.h>
#include <blueprint/Pin.h>
#include <blueprint/Node.h>
#include <string>
#include <assert.h>
namespace
{
const pt0::Color PIN_COLORS[] = {
#define PIN_INFO(type, color, desc) \
pt0::Color##color,
#include "shaderlab/... | 22.197531 | 82 | 0.6396 | xzrunner |
9fb00f1f5c6f3de8edf361fece8b8292d8c040bf | 3,002 | hpp | C++ | math/formal_power_series/falling_factorial_polynomial_multiplication.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | 7 | 2021-07-20T15:25:00.000Z | 2022-03-13T11:58:25.000Z | math/formal_power_series/falling_factorial_polynomial_multiplication.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | 10 | 2021-03-11T16:08:22.000Z | 2022-03-13T08:40:36.000Z | math/formal_power_series/falling_factorial_polynomial_multiplication.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | null | null | null | #ifndef FALLING_FACTORIAL_POLYNOMIAL_MULTIPLICATION_HEADER_HPP
#define FALLING_FACTORIAL_POLYNOMIAL_MULTIPLICATION_HEADER_HPP
/**
* @brief falling factorial polynomial multiplication
* @docs docs/math/formal_power_series/falling_factorial_polynomial_multiplication.md
*/
#include <algorithm>
#include <cass... | 29.722772 | 95 | 0.612258 | hly1204 |
9fb4b52fe41fea12e78ec17fea6c5ff746b67abf | 5,287 | cpp | C++ | Game/BattleLogic/TW_EffectMgr.cpp | TaoReiches/Tao | bf54cdf5284d3a6fd7b2e8aec0bc26fa96442a01 | [
"Apache-2.0"
] | 2 | 2020-09-30T15:17:32.000Z | 2021-02-22T14:19:54.000Z | Game/BattleLogic/TW_EffectMgr.cpp | TaoReiches/Tao | bf54cdf5284d3a6fd7b2e8aec0bc26fa96442a01 | [
"Apache-2.0"
] | null | null | null | Game/BattleLogic/TW_EffectMgr.cpp | TaoReiches/Tao | bf54cdf5284d3a6fd7b2e8aec0bc26fa96442a01 | [
"Apache-2.0"
] | null | null | null | /**********************************************
* Author: Tao Wang Copyright reserved
* Contact: tao.reiches@gmail.com
**********************************************/
#include "TW_EffectMgr.h"
#include "TW_Effect.h"
#include <TW_TriggerMgr.h>
#include "TW_TriggerEvent.h"
#include "TW_Main.h"
#include "TW_MemoryObject... | 18.421603 | 85 | 0.682618 | TaoReiches |
9fb6febff1b0f94a2e4fae47a6cf76c4d1dc91ba | 912 | cpp | C++ | src/sadthreadexecutablefunction.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 58 | 2015-08-09T14:56:35.000Z | 2022-01-15T22:06:58.000Z | src/sadthreadexecutablefunction.cpp | mamontov-cpp/saddy-graphics-engine-2d | e25a6637fcc49cb26614bf03b70e5d03a3a436c7 | [
"BSD-2-Clause"
] | 245 | 2015-08-08T08:44:22.000Z | 2022-01-04T09:18:08.000Z | src/sadthreadexecutablefunction.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 23 | 2015-12-06T03:57:49.000Z | 2020-10-12T14:15:50.000Z | #include <sadthreadexecutablefunction.h>
sad::AbstractThreadExecutableFunction::~AbstractThreadExecutableFunction()
{
}
sad::AbstractThreadExecutableFunction * sad::util::EmptyThreadExecutableFunction::clone() const
{
return new sad::util::EmptyThreadExecutableFunction();
}
int sad::util::EmptyThrea... | 23.384615 | 100 | 0.737939 | mamontov-cpp |
9fb98b1f314f5b839ded2c331b4f1265dd27753a | 1,835 | hpp | C++ | core/inc/ga/avcodec.hpp | A-F-Kazakov/gaminganywhere | e9a74d3c7cd01f494b6d5c19619071dfeadd343b | [
"BSD-3-Clause"
] | 4 | 2021-04-28T19:08:34.000Z | 2022-02-08T08:56:28.000Z | core/inc/ga/avcodec.hpp | GamingAnywhere/gaminganywhere | e9a74d3c7cd01f494b6d5c19619071dfeadd343b | [
"BSD-3-Clause"
] | null | null | null | core/inc/ga/avcodec.hpp | GamingAnywhere/gaminganywhere | e9a74d3c7cd01f494b6d5c19619071dfeadd343b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2013 Chun-Ying Huang
*
* This file is part of GamingAnywhere (GA).
*
* GA is free software; you can redistribute it and/or modify it
* under the terms of the 3-clause BSD License as published by the
* Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause
*
* GA is distr... | 36.7 | 170 | 0.773842 | A-F-Kazakov |
9fc357c2239a7f961b5d89c9ebbc26f7e6e84432 | 1,295 | hpp | C++ | app/preview-widget.hpp | yuki-koyama/sequential-gallery | 693d7c061377580522c454c789750fa25a468967 | [
"MIT"
] | 12 | 2021-03-09T11:07:55.000Z | 2021-09-15T07:55:45.000Z | app/preview-widget.hpp | yuki-koyama/sequential-gallery | 693d7c061377580522c454c789750fa25a468967 | [
"MIT"
] | null | null | null | app/preview-widget.hpp | yuki-koyama/sequential-gallery | 693d7c061377580522c454c789750fa25a468967 | [
"MIT"
] | 2 | 2021-03-10T03:03:13.000Z | 2021-03-15T16:01:26.000Z | #ifndef PREVIEW_WIDGET_HPP
#define PREVIEW_WIDGET_HPP
#include <Eigen/Core>
#include <QWidget>
#include <functional>
#include <utility>
namespace enhancer
{
class EnhancerWidget;
}
class OverlayWidget;
class PreviewWidget : public QWidget
{
public:
using WidgetId = std::pair<unsigned, unsigned>;
Preview... | 25.9 | 109 | 0.723552 | yuki-koyama |
9fc6eb8a49ab9dcabb4ade19ed9e92bc6423a311 | 1,068 | cpp | C++ | 01 January Leetcode Challenge 2021/30 minDeviationArray.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 7 | 2020-12-01T14:27:57.000Z | 2022-02-12T09:17:22.000Z | 01 January Leetcode Challenge 2021/30 minDeviationArray.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 4 | 2020-11-12T17:49:22.000Z | 2021-09-06T07:46:37.000Z | 01 January Leetcode Challenge 2021/30 minDeviationArray.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 6 | 2021-05-21T03:49:22.000Z | 2022-01-20T20:36:53.000Z | class Solution {
public:
int minimumDeviation(vector<int>& nums) {
// Step 1 :- increase all elements to as maximum as it can and track the minn number and also the result
int N = nums.size();
int maxx = INT_MIN, minn = INT_MAX;
for(int i = 0; i < N; i++){
if((nums[i])%2 !=... | 29.666667 | 109 | 0.48221 | FazeelUsmani |
9fc7af414978dfe7d51b79ad3bb9573006175498 | 1,401 | cpp | C++ | Triger/src/Triger/Renderer/OrthographicCamera.cpp | AzadKshitij/Triger | 969dbead69f5ebc40d8ef6bc9ec9d763c4510ecb | [
"MIT"
] | 2 | 2020-10-25T15:51:46.000Z | 2020-11-10T15:06:22.000Z | Triger/src/Triger/Renderer/OrthographicCamera.cpp | AzadKshitij/Triger | 969dbead69f5ebc40d8ef6bc9ec9d763c4510ecb | [
"MIT"
] | 3 | 2020-11-11T16:54:49.000Z | 2020-11-29T14:35:31.000Z | Triger/src/Triger/Renderer/OrthographicCamera.cpp | AzadKshitij/Triger | 969dbead69f5ebc40d8ef6bc9ec9d763c4510ecb | [
"MIT"
] | null | null | null | /*------------ Copyright © 2020 Azad Kshitij. All rights reserved. ------------
//
// Project : Triger
// License : https://opensource.org/licenses/MIT
// File : OrthographicCamera.cpp
// Created On : 10/11/2020
// Updated On : 10/11/2020
// Created By : Azad Kshitij @AzadKshitij
//-------... | 31.840909 | 93 | 0.660956 | AzadKshitij |
9fcb4b4e42156e48d39e832fccd5cad1d864464b | 707 | hpp | C++ | kernel/Cpu/Tss.hpp | Mrokkk/kernel | e3d6ab19800d1e6c81be20cc5d27696c90ba3146 | [
"MIT"
] | null | null | null | kernel/Cpu/Tss.hpp | Mrokkk/kernel | e3d6ab19800d1e6c81be20cc5d27696c90ba3146 | [
"MIT"
] | null | null | null | kernel/Cpu/Tss.hpp | Mrokkk/kernel | e3d6ab19800d1e6c81be20cc5d27696c90ba3146 | [
"MIT"
] | null | null | null | #pragma once
#include "Segment.hpp"
namespace cpu
{
struct Tss final
{
Tss();
void load() const;
uint32_t prevTss;
uint32_t esp0;
uint32_t ss0;
uint32_t esp1;
uint32_t ss1;
uint32_t esp2;
uint32_t ss2;
uint32_t cr3;
uint32_t eip;
uint32_t eflags;
uint32_t eax;
... | 15.711111 | 41 | 0.630835 | Mrokkk |
9fcd40033bfb0d7488806a9c7944872bfca30a5c | 10,482 | hpp | C++ | include/Bit/System/Matrix4x4.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/System/Matrix4x4.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/System/Matrix4x4.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | // ///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com
//
// This software is provided 'as-is', without any express or
// implied warranty. In no event will the authors be held
// liable for any damages arising from the use of this... | 36.778947 | 78 | 0.394867 | jimmiebergmann |
9fd13e3c12e40880d448ff183ce76eae24b6ab36 | 2,961 | cpp | C++ | src/Triangle.cpp | ericpko/computer-graphics-ray-tracing | 033293a94a5076c79c1fc7d3dac8931fdab6a44c | [
"MIT"
] | null | null | null | src/Triangle.cpp | ericpko/computer-graphics-ray-tracing | 033293a94a5076c79c1fc7d3dac8931fdab6a44c | [
"MIT"
] | null | null | null | src/Triangle.cpp | ericpko/computer-graphics-ray-tracing | 033293a94a5076c79c1fc7d3dac8931fdab6a44c | [
"MIT"
] | null | null | null | #include "Triangle.h"
#include "Ray.h"
#include <Eigen/Geometry>
#include <iostream>
bool Triangle::intersect(
const Ray & ray, const double min_t, double & t, Eigen::Vector3d & n) const
{
////////////////////////////////////////////////////////////////////////////
/**
* NOTE: The following solution is found ... | 31.168421 | 83 | 0.539683 | ericpko |
9fd208eae9f6e09006fa2096d64bd666ea30f8de | 1,603 | hpp | C++ | src/libataxx/file.hpp | kz04px/libataxx | b61bfb303b424893c233c2e8f42f47b14e2fc1a1 | [
"MIT"
] | 6 | 2019-10-23T15:58:39.000Z | 2020-12-28T20:49:25.000Z | src/libataxx/file.hpp | kz04px/libataxx | b61bfb303b424893c233c2e8f42f47b14e2fc1a1 | [
"MIT"
] | 1 | 2022-02-21T02:28:56.000Z | 2022-02-21T15:28:59.000Z | src/libataxx/file.hpp | kz04px/libataxx | b61bfb303b424893c233c2e8f42f47b14e2fc1a1 | [
"MIT"
] | 1 | 2019-10-11T21:07:19.000Z | 2019-10-11T21:07:19.000Z | #ifndef LIBATAXX_FILE_HPP
#define LIBATAXX_FILE_HPP
#include <cstdint>
#include <ostream>
namespace libataxx {
class File {
public:
constexpr explicit File(const int f) : data_(f) {
}
[[nodiscard]] explicit constexpr operator char() const noexcept {
return 'a' + data_;
}
[[nodiscard]... | 24.287879 | 77 | 0.671865 | kz04px |
9fd43818263e52f10508fab17863902379c39a96 | 4,188 | cc | C++ | client/squad_eval_dataset.cc | pcastonguay/speechsquad | 87779a852188e257610a3beae1e825b83841648f | [
"Apache-2.0"
] | 56 | 2020-10-05T17:38:14.000Z | 2022-02-23T07:17:27.000Z | client/squad_eval_dataset.cc | pcastonguay/speechsquad | 87779a852188e257610a3beae1e825b83841648f | [
"Apache-2.0"
] | 2 | 2021-12-05T22:16:15.000Z | 2021-12-07T00:32:45.000Z | client/squad_eval_dataset.cc | pcastonguay/speechsquad | 87779a852188e257610a3beae1e825b83841648f | [
"Apache-2.0"
] | 9 | 2020-10-05T20:04:41.000Z | 2021-11-17T04:40:45.000Z | /*
* Copyright (c) 2020, NVIDIA CORPORATION. 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 requi... | 33.504 | 78 | 0.627507 | pcastonguay |
9fd8493c8af469551e3af9570633023dffd27284 | 1,981 | cpp | C++ | libs/sge_engine/src/sge_engine/materials/Material.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | libs/sge_engine/src/sge_engine/materials/Material.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | libs/sge_engine/src/sge_engine/materials/Material.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | #include "Material.h"
#include "sge_core/Geometry.h"
namespace sge {
// clang-format off
DefineTypeId(OMaterial, 20'10'14'0001);
DefineTypeId(MDiffuseMaterial, 20'10'14'0002);
ReflBlock() {
ReflAddObject(OMaterial);
ReflAddObject(MDiffuseMaterial).inherits<MDiffuseMaterial, OMaterial>()
ReflMember(MDiffuseMater... | 31.444444 | 132 | 0.757193 | Alekssasho |
9fe29b1dbb3d25300f9633732abc262f8b18ba38 | 49,449 | cpp | C++ | src/rcv/binex.cpp | akstuki/rtklibcpp | 241753fba4d92fb09f3337e6c82b1ed9283675be | [
"BSD-2-Clause"
] | 1 | 2020-06-05T15:16:36.000Z | 2020-06-05T15:16:36.000Z | src/rcv/binex.cpp | akstuki/rtklibcpp | 241753fba4d92fb09f3337e6c82b1ed9283675be | [
"BSD-2-Clause"
] | 1 | 2020-06-14T07:04:29.000Z | 2020-06-14T07:04:29.000Z | src/rcv/binex.cpp | akstuki/rtklibcpp | 241753fba4d92fb09f3337e6c82b1ed9283675be | [
"BSD-2-Clause"
] | 2 | 2021-09-26T09:00:02.000Z | 2021-09-26T10:07:52.000Z | /*------------------------------------------------------------------------------
* binex.c : binex dependent functions
*
* Copyright (C) 2013-2019 by T.TAKASU, All rights reserved.
*
* reference :
* [1] UNAVCO, BINEX: Binary exchange format
* (http://binex.unavco.org/binex.html)
*
* version : $Revi... | 36.041545 | 84 | 0.527695 | akstuki |
9fe49942d35b229cd4aae89208b02a0af16183d2 | 518 | cpp | C++ | RpcServer/main.cpp | osmannacar/EventDriven-RPC-Server-Client | eea04ff6ea9117ee4b9459460bcac0a475cfc58f | [
"MIT"
] | 1 | 2021-02-20T07:34:19.000Z | 2021-02-20T07:34:19.000Z | RpcServer/main.cpp | osmannacar/EventDriven-RPC-Server-Client | eea04ff6ea9117ee4b9459460bcac0a475cfc58f | [
"MIT"
] | null | null | null | RpcServer/main.cpp | osmannacar/EventDriven-RPC-Server-Client | eea04ff6ea9117ee4b9459460bcac0a475cfc58f | [
"MIT"
] | null | null | null | #include <QCoreApplication>
#include "rpcserver.h"
#include "Services/servicecalculater.h"
#include <QMutex>
QMutex mtx_dummy;
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QString device_name("VCServer");
RpcServer server(device_name);
server.bind("127.0.0.1", 1234);
server.... | 19.185185 | 50 | 0.669884 | osmannacar |
9febb6611567d9119b23122950335609773ea2d2 | 6,453 | cpp | C++ | pxr/usd/usdUtils/coalescingDiagnosticDelegate.cpp | DougRogers-DigitalFish/USD | d8a405a1344480f859f025c4f97085143efacb53 | [
"BSD-2-Clause"
] | 3,680 | 2016-07-26T18:28:11.000Z | 2022-03-31T09:55:05.000Z | pxr/usd/usdUtils/coalescingDiagnosticDelegate.cpp | DougRogers-DigitalFish/USD | d8a405a1344480f859f025c4f97085143efacb53 | [
"BSD-2-Clause"
] | 1,759 | 2016-07-26T19:19:59.000Z | 2022-03-31T21:24:00.000Z | pxr/usd/usdUtils/coalescingDiagnosticDelegate.cpp | DougRogers-DigitalFish/USD | d8a405a1344480f859f025c4f97085143efacb53 | [
"BSD-2-Clause"
] | 904 | 2016-07-26T18:33:40.000Z | 2022-03-31T09:55:16.000Z | //
// Copyright 2017 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 32.923469 | 81 | 0.659848 | DougRogers-DigitalFish |
9fec843460ec66bcbb72c3cbe0ed45e049a4ebfc | 13,318 | cpp | C++ | examples/esp32_devkit_v1_tx/src/smartport.cpp | nkruzan/hx_espnow_rc | 448f8c42bff36f8182665a865fcfe391560b01f0 | [
"MIT"
] | 10 | 2021-07-11T22:24:11.000Z | 2022-02-05T06:13:17.000Z | examples/esp32_devkit_v1_tx/src/smartport.cpp | nkruzan/hx_espnow_rc | 448f8c42bff36f8182665a865fcfe391560b01f0 | [
"MIT"
] | 1 | 2021-11-22T23:09:58.000Z | 2021-11-22T23:35:39.000Z | examples/esp32_devkit_v1_tx/src/smartport.cpp | nkruzan/hx_espnow_rc | 448f8c42bff36f8182665a865fcfe391560b01f0 | [
"MIT"
] | 1 | 2021-11-16T02:41:25.000Z | 2021-11-16T02:41:25.000Z | #include "smartport.h"
#include "smartport.h"
#include "tx_config.h"
//https://github.com/yaapu/FrskyTelemetryScript/wiki/FrSky-SPort-protocol-specs
//include for HXRCLOG usage
#include "HX_ESPNOW_RC_Common.h"
#define FRSKY_START_STOP 0x7e
#define FRSKY_BYTESTUFF 0x7d
#define FRSKY_STUFF_MASK 0x20
// FrSky data... | 35.047368 | 181 | 0.614732 | nkruzan |
9fefa7c60ad27d61f2f4727ddc7e6e4434464592 | 3,147 | cc | C++ | framework/JPetUnpacker/Unpacker2/Unpacker_TRB2.cc | wictus/oldScopeAnalysis | e8a15f11c504c1a1a880d4a5096cdbfac0edf2de | [
"MIT"
] | null | null | null | framework/JPetUnpacker/Unpacker2/Unpacker_TRB2.cc | wictus/oldScopeAnalysis | e8a15f11c504c1a1a880d4a5096cdbfac0edf2de | [
"MIT"
] | null | null | null | framework/JPetUnpacker/Unpacker2/Unpacker_TRB2.cc | wictus/oldScopeAnalysis | e8a15f11c504c1a1a880d4a5096cdbfac0edf2de | [
"MIT"
] | null | null | null | #include "Unpacker_TRB2.h"
#include <iostream>
using namespace std;
ClassImp(Unpacker_TRB2);
Unpacker_TRB2::Unpacker_TRB2(string bT, string bA, string hA, int cN, int o, int r, string mR, bool dec, bool dbg) : UnpackingModule(bT, bA, hA, cN, o, r, mR, dec, dbg) {
cerr<<"TRB2: Creating Unpacker_TRB2 for board type:... | 27.849558 | 170 | 0.600254 | wictus |
9ff29ce12e58e47c0b7ab7cf27f380ca2646def2 | 2,400 | hpp | C++ | src/main/cpp/inverted_penguin/io/FileInputBuffer.hpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/inverted_penguin/io/FileInputBuffer.hpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/inverted_penguin/io/FileInputBuffer.hpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | #ifndef __INVERTED_PENGUIN__IO__FILEINPUTBUFFER_HPP__
#define __INVERTED_PENGUIN__IO__FILEINPUTBUFFER_HPP__
#include <pistis/filesystem/File.hpp>
#include <memory>
#include <string.h>
namespace inverted_penguin {
namespace io {
class FileInputBuffer {
public:
static constexpr const size_t DEFAULT_BUF... | 24.489796 | 69 | 0.641667 | tomault |
9ff2f15d760b0c3ae960beee703b0d2664e72063 | 1,125 | cpp | C++ | common/source/common/toolkit/UiTk.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | common/source/common/toolkit/UiTk.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | common/source/common/toolkit/UiTk.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | #include "UiTk.h"
#include <boost/algorithm/string.hpp>
bool uitk::userYNQuestion(const std::string& question,
boost::optional<bool> defaultAnswer,
std::istream& input)
{
while (true) {
std::cout << question
<< " ["
<< (defau... | 23.93617 | 62 | 0.439111 | TomatoYoung |
9ff6f1bad392dba29818eaf746d6e7af0d384b7f | 9,710 | cpp | C++ | Raymarcher/src/Fractal/Folds/Folds.cpp | conholo/Raymarcher | 880a268a1ca11161df52462a2b2908a402408227 | [
"Apache-2.0"
] | null | null | null | Raymarcher/src/Fractal/Folds/Folds.cpp | conholo/Raymarcher | 880a268a1ca11161df52462a2b2908a402408227 | [
"Apache-2.0"
] | null | null | null | Raymarcher/src/Fractal/Folds/Folds.cpp | conholo/Raymarcher | 880a268a1ca11161df52462a2b2908a402408227 | [
"Apache-2.0"
] | null | null | null | #include "rmpch.h"
#include "Fractal/Folds/Folds.h"
#include "Fractal/FractalUtility.h"
#include <glm/gtx/string_cast.hpp>
namespace RM
{
Fold::Fold()
:IGLSLConvertable(ColorType::None, AttributeType::Fold)
{
}
std::string FoldScaleTranslate::TransformationToGLSL() const
{
std::stringstream ss;
if (m_Sca... | 30.727848 | 273 | 0.606591 | conholo |
9ff74e42f109dacdfb1ef91e3a7ac43060fc99b2 | 781 | cpp | C++ | Luogu/107/P1104.cpp | anine09/ACM | e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6 | [
"MIT"
] | null | null | null | Luogu/107/P1104.cpp | anine09/ACM | e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6 | [
"MIT"
] | null | null | null | Luogu/107/P1104.cpp | anine09/ACM | e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<string>
using namespace std;
struct student
{
string name;
int year;
int month;
int day;
int num;
} s[110];
int n;
bool cmp(student a,student b){
if(a.year==b.year){
if (a.month==b.month)
{
if(a.day==b.day)
... | 16.617021 | 64 | 0.441741 | anine09 |
9ffaec0614573805d3d7129634bb5aa45c0e43ab | 2,217 | cpp | C++ | GeeksForGeeks/C Plus Plus/Clone_a_linked_list_with_next_and_random_pointer.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 4 | 2021-06-19T14:15:34.000Z | 2021-06-21T13:53:53.000Z | GeeksForGeeks/C Plus Plus/Clone_a_linked_list_with_next_and_random_pointer.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 2 | 2021-07-02T12:41:06.000Z | 2021-07-12T09:37:50.000Z | GeeksForGeeks/C Plus Plus/Clone_a_linked_list_with_next_and_random_pointer.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 3 | 2021-06-19T15:19:20.000Z | 2021-07-02T17:24:51.000Z | /*
Problem Statement:
-----------------
You are given a special linked list with N nodes where each node has a next pointer pointing to its next node. You are also given M random pointers ,
where you will be given M number of pairs denoting two nodes a and b i.e. a->arb = b.
Example 1:
---------
Input:
N = 4, M = 2
... | 30.791667 | 178 | 0.657194 | ankit-sr |
9ffaecc6c4ea86e1a20329fec4048fea56651658 | 2,286 | cpp | C++ | Source/SmallFileCache.cpp | sawickiap/RegEngine | 613c31fd60558a75c5b8902529acfa425fc97b2a | [
"MIT"
] | 11 | 2022-01-02T22:50:42.000Z | 2022-02-15T09:10:25.000Z | Source/SmallFileCache.cpp | sawickiap/RegEngine | 613c31fd60558a75c5b8902529acfa425fc97b2a | [
"MIT"
] | null | null | null | Source/SmallFileCache.cpp | sawickiap/RegEngine | 613c31fd60558a75c5b8902529acfa425fc97b2a | [
"MIT"
] | null | null | null | #include "BaseUtils.hpp"
#include "SmallFileCache.hpp"
#include "Streams.hpp"
#include <unordered_map>
constexpr size_t MAX_CACHED_FILE_SIZE = 128llu * 1024;
SmallFileCache* g_SmallFileCache;
class SmallFileCachePimpl
{
public:
struct Entry
{
std::filesystem::file_time_type m_LastWriteT... | 28.222222 | 93 | 0.636045 | sawickiap |
9ffc6e16ab71d34af19ff24340ae85f67bed6e2f | 6,516 | cpp | C++ | src/Pipe.cpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | 1 | 2017-04-20T06:27:36.000Z | 2017-04-20T06:27:36.000Z | src/Pipe.cpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | null | null | null | src/Pipe.cpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | null | null | null | #include <SDL2/SDL_config.h>
#include <cstdio>
#include "Pipe.hpp"
#include "System.hpp"
#include "SDL.hpp"
namespace
{
constexpr int R = 0, W = 1;
auto & dataR(SDL_RWops *ops)
{
return ops->hidden.unknown.data1;
}
auto & dataW(SDL_RWops *ops)
{
return ops->hidden.unknown.data2;
}
SDL_RWops *Rops(SDL_RW... | 17.658537 | 86 | 0.581185 | JesseMaurais |
b00197e66f1501e8c147fb3a94db578200fd5608 | 4,642 | cpp | C++ | android/app/src/main/cpp/src/reporter/NetworkReporter.cpp | comword/TCD20-DP-MobileApp | 94b21fb00f3c7b98dcbb19a3f2715ea6faaa9444 | [
"MIT"
] | null | null | null | android/app/src/main/cpp/src/reporter/NetworkReporter.cpp | comword/TCD20-DP-MobileApp | 94b21fb00f3c7b98dcbb19a3f2715ea6faaa9444 | [
"MIT"
] | null | null | null | android/app/src/main/cpp/src/reporter/NetworkReporter.cpp | comword/TCD20-DP-MobileApp | 94b21fb00f3c7b98dcbb19a3f2715ea6faaa9444 | [
"MIT"
] | null | null | null | #include "NetworkReporter.h"
#include <memory>
#include "dlog.h"
#include "ReporterMgr.h"
#include <grpc/grpc.h>
#include <grpcpp/channel.h>
#include <grpcpp/client_context.h>
#include <grpcpp/create_channel.h>
#include <grpcpp/security/credentials.h>
#include <opencv2/core.hpp>
#include <tbb/pipeline.h>
#include <o... | 27.146199 | 111 | 0.623007 | comword |
b002b1e42cf40a9c28a3ed67dd7c308d6a190e04 | 12,087 | cpp | C++ | utl/tests/testinc_opts.cpp | mathiasrw/ptarmigan | 69b26470310daa24f95cb83eefde8e539eff6d96 | [
"Apache-2.0"
] | 143 | 2017-07-22T12:12:00.000Z | 2022-02-09T09:46:26.000Z | utl/tests/testinc_opts.cpp | mathiasrw/ptarmigan | 69b26470310daa24f95cb83eefde8e539eff6d96 | [
"Apache-2.0"
] | 534 | 2017-09-02T13:45:32.000Z | 2020-06-15T09:26:33.000Z | utl/tests/testinc_opts.cpp | mathiasrw/ptarmigan | 69b26470310daa24f95cb83eefde8e539eff6d96 | [
"Apache-2.0"
] | 31 | 2017-09-29T00:11:33.000Z | 2021-06-17T08:24:37.000Z | ////////////////////////////////////////////////////////////////////////
//FAKE関数
//FAKE_VALUE_FUNC(int, external_function, int);
////////////////////////////////////////////////////////////////////////
class opts: public testing::Test {
protected:
virtual void SetUp() {
//RESET_FAKE(external_function)
... | 27.85023 | 91 | 0.519815 | mathiasrw |
b002dcab87def64598501fd432b922a21f42b490 | 1,697 | cpp | C++ | src/sclient/ScanEdgeIter.cpp | vesoft-inc/nebula-cpp | e34071fe7bfb68e2012c94fcd03be4707216c45a | [
"Apache-2.0"
] | 8 | 2020-12-01T02:04:35.000Z | 2022-03-30T12:33:30.000Z | src/sclient/ScanEdgeIter.cpp | vesoft-inc/nebula-cpp | e34071fe7bfb68e2012c94fcd03be4707216c45a | [
"Apache-2.0"
] | 35 | 2020-08-19T15:51:45.000Z | 2022-03-08T09:07:16.000Z | src/sclient/ScanEdgeIter.cpp | vesoft-inc/nebula-cpp | e34071fe7bfb68e2012c94fcd03be4707216c45a | [
"Apache-2.0"
] | 10 | 2020-11-30T09:33:48.000Z | 2022-01-31T06:47:23.000Z | /* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "nebula/sclient/ScanEdgeIter.h"
#include "../interface/gen-cpp2/storage_types.h"
#include "nebula/sclient/StorageClient.h"
namespace nebula {
ScanEdgeIter::ScanEdgeIter(StorageClient* cli... | 30.303571 | 100 | 0.700059 | vesoft-inc |
b003b5b933d6f28767d803c7890e50aeb28dfff1 | 10,508 | cpp | C++ | src/AppCamera/SdkModel/AppCameraController.cpp | usamakhan049/assignment | 40eb153e8fd74f73ba52ce29417d8220ab744b5d | [
"BSD-2-Clause"
] | 69 | 2017-06-07T10:47:03.000Z | 2022-03-24T08:33:33.000Z | src/AppCamera/SdkModel/AppCameraController.cpp | usamakhan049/assignment | 40eb153e8fd74f73ba52ce29417d8220ab744b5d | [
"BSD-2-Clause"
] | 23 | 2017-06-07T10:47:00.000Z | 2020-07-09T10:31:17.000Z | src/AppCamera/SdkModel/AppCameraController.cpp | usamakhan049/assignment | 40eb153e8fd74f73ba52ce29417d8220ab744b5d | [
"BSD-2-Clause"
] | 31 | 2017-08-12T13:19:32.000Z | 2022-01-04T20:33:40.000Z | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "AppCameraController.h"
#include "VectorMath.h"
#include "MathFunc.h"
#include "RenderCamera.h"
#include "CameraState.h"
#include "Quaternion.h"
#include "AppCameraHelpers.h"
#include "CameraHelpers.h"
#include "EcefTangentBasis.h"
#include "MathsHelpers... | 45.886463 | 166 | 0.563951 | usamakhan049 |
b0066e9e5b7323234ae0883608eea07b4a4a4a19 | 3,911 | cpp | C++ | Framework/Source/Raytracing/RtRenderContext.cpp | zhaijialong/Falcor | afdd9125283c90374694ed35875144fde81e9312 | [
"BSD-3-Clause"
] | null | null | null | Framework/Source/Raytracing/RtRenderContext.cpp | zhaijialong/Falcor | afdd9125283c90374694ed35875144fde81e9312 | [
"BSD-3-Clause"
] | null | null | null | Framework/Source/Raytracing/RtRenderContext.cpp | zhaijialong/Falcor | afdd9125283c90374694ed35875144fde81e9312 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
# Copyright (c) 2018, NVIDIA CORPORATION. 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 sourc... | 52.851351 | 133 | 0.719509 | zhaijialong |
b009757e8a15058298b9b5577687040de0f2071e | 652 | hpp | C++ | source/ui/scene/gameScene.hpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | source/ui/scene/gameScene.hpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | source/ui/scene/gameScene.hpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | /*
** gameScene.hpp for ui in /home/escoba_j/Downloads/irrlicht-1.8.3/ui/scene
**
** Made by Joffrey Escobar
** Login <escoba_j@epitech.net>
**
** Started on Mon May 30 17:40:41 2016 Joffrey Escobar
*/
#ifndef GAMESCENE_HPP
#define GAMESCENE_HPP
#include "ASubLayout.hpp"
class gameScene : public ASubLayout
{
publ... | 20.375 | 75 | 0.731595 | Stephouuu |
b00ac45f3e1226074714987a920916ae6433e5a1 | 15,615 | cpp | C++ | FlyEngine/Source/ResourceManager.cpp | rogerta97/FlyEngine | 33abd70c5b4307cd552e2b6269b401772b4327ba | [
"MIT"
] | null | null | null | FlyEngine/Source/ResourceManager.cpp | rogerta97/FlyEngine | 33abd70c5b4307cd552e2b6269b401772b4327ba | [
"MIT"
] | null | null | null | FlyEngine/Source/ResourceManager.cpp | rogerta97/FlyEngine | 33abd70c5b4307cd552e2b6269b401772b4327ba | [
"MIT"
] | null | null | null | #include "ResourceManager.h"
#include "Texture.h"
#include "ImageImporter.h"
#include "MyFileSystem.h"
#include "AudioClip.h"
#include "MusicTrack.h"
#include "AudioImporter.h"
#include "FontImporter.h"
#include "imgui.h"
#include "Font.h"
#include <string>
#include "mmgr.h"
#include <assert.h>
ResourceManager* Res... | 25.938538 | 123 | 0.724111 | rogerta97 |
b00b91ebfdb2c85c3eb8a32444b5bb9f3507c5ff | 9,781 | cpp | C++ | libmultidisplay/ctp_legacy/native/drm_hdcp.cpp | zenfone-6/android_device_asus_a600cg | 1073b3cae60b0e877c47f33048a7979bf3a96428 | [
"Apache-2.0"
] | 1 | 2021-11-21T21:47:02.000Z | 2021-11-21T21:47:02.000Z | libmultidisplay/ctp_legacy/native/drm_hdcp.cpp | zenfone-6/android_device_asus_a600cg | 1073b3cae60b0e877c47f33048a7979bf3a96428 | [
"Apache-2.0"
] | null | null | null | libmultidisplay/ctp_legacy/native/drm_hdcp.cpp | zenfone-6/android_device_asus_a600cg | 1073b3cae60b0e877c47f33048a7979bf3a96428 | [
"Apache-2.0"
] | 6 | 2016-03-01T16:25:22.000Z | 2022-03-02T03:54:14.000Z | /*
* Copyright (c) 2012-2013, Intel Corporation. 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 r... | 26.944904 | 186 | 0.632144 | zenfone-6 |
b00bf6ec3c70ec17699a89eb5f5b459a20294af7 | 9,172 | hxx | C++ | main/toolkit/source/layout/core/import.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/toolkit/source/layout/core/import.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/toolkit/source/layout/core/import.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 35.828125 | 93 | 0.658308 | Grosskopf |
b00e0338dafeaab0355cf19a60c34a3373c0e46a | 10,541 | cpp | C++ | src/CGNetwork/cgprofile.cpp | Tpimp/play-zone | a967baf72eb70614bf83198e9b2ea55082f17438 | [
"BSD-3-Clause"
] | null | null | null | src/CGNetwork/cgprofile.cpp | Tpimp/play-zone | a967baf72eb70614bf83198e9b2ea55082f17438 | [
"BSD-3-Clause"
] | null | null | null | src/CGNetwork/cgprofile.cpp | Tpimp/play-zone | a967baf72eb70614bf83198e9b2ea55082f17438 | [
"BSD-3-Clause"
] | null | null | null | #include "cgprofile.h"
#include <QCryptographicHash>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include "cgserver.h"
CGProfile::CGProfile(QQuickItem *parent) : QQuickItem(parent)
{
mServer = CGServer::globalServer();
connect(mServer, &CGServer::setProfileData,this,&CGProfile::setUse... | 23.372506 | 100 | 0.582298 | Tpimp |
b0133efe791397369511851e3d3dafd0c5787f99 | 2,451 | cpp | C++ | day04/main.cpp | LMesaric/AoC-2021 | 134f52c69675fd4f1b8d04aad9debcf82e604911 | [
"MIT"
] | 5 | 2021-12-01T22:34:33.000Z | 2021-12-25T11:34:13.000Z | day04/main.cpp | LMesaric/AoC-2021 | 134f52c69675fd4f1b8d04aad9debcf82e604911 | [
"MIT"
] | null | null | null | day04/main.cpp | LMesaric/AoC-2021 | 134f52c69675fd4f1b8d04aad9debcf82e604911 | [
"MIT"
] | null | null | null | #include <cassert>
#include <iostream>
#include <vector>
#define N 5
class Board {
uint16_t hitsRows[N]{};
uint16_t hitsCols[N]{};
uint32_t sumHitValues = 0;
public:
uint16_t data[N][N]{};
bool mark(uint16_t draw) {
for (int i = 0; i < N; ++i) {
for (int j = 0; j < N; ++j) {
... | 25.010204 | 108 | 0.510404 | LMesaric |
b016bade858e9cf5c6368b3ae42fae3f9f0cf659 | 1,092 | cpp | C++ | third_party/android_crazy_linker/src/tests/zoo_with_dlopen_handle.cpp | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/android_crazy_linker/src/tests/zoo_with_dlopen_handle.cpp | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/android_crazy_linker/src/tests/zoo_with_dlopen_handle.cpp | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <dlfcn.h>
#include <stdio.h>
using dlclose_func_t = int(void*);
extern "C" dlclose_func_t* Zoo(void* bar_lib) {
printf("%s: Entering, library... | 32.117647 | 75 | 0.679487 | zealoussnow |
b0174c361a2f6e3ee8b6ebd8a09ef7f934f21b7c | 7,976 | hpp | C++ | src/ibeo_8l_sdk/src/ibeosdk/Time.hpp | tomcamp0228/ibeo_ros2 | ff56c88d6e82440ae3ce4de08f2745707c354604 | [
"MIT"
] | 1 | 2020-06-19T11:01:49.000Z | 2020-06-19T11:01:49.000Z | include/ibeosdk/Time.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/Time.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 2 | 2020-06-19T11:01:48.000Z | 2020-10-29T03:07:14.000Z | //======================================================================
/*! \file Time.hpp
*
* \copydoc Copyright
* \author Jan Christian Dittmer (jcd)
* \date Jul 4, 2012
*///-------------------------------------------------------------------
#ifndef IBEOSDK_TIME_HPP_SEEN
#define IBEOSDK_TIME_HPP_SEEN
//======... | 35.292035 | 143 | 0.592026 | tomcamp0228 |
b01d588bd520a96d18e4180624934a4d3016f2fc | 8,463 | cpp | C++ | src/master/simple_allocator.cpp | woggle/mesos-old | 54b4894efb6c5645eb530d993355559d548f768d | [
"Apache-2.0"
] | null | null | null | src/master/simple_allocator.cpp | woggle/mesos-old | 54b4894efb6c5645eb530d993355559d548f768d | [
"Apache-2.0"
] | null | null | null | src/master/simple_allocator.cpp | woggle/mesos-old | 54b4894efb6c5645eb530d993355559d548f768d | [
"Apache-2.0"
] | 3 | 2017-03-29T04:57:55.000Z | 2020-07-25T20:10:54.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 27.3 | 85 | 0.666312 | woggle |
b01dec264401e6587f3f7c4bd34455ba91473664 | 5,066 | cpp | C++ | vishnucommon/json/PropertyGroups.cpp | gmrvvis/VishnuCommon | 44a6c51528d0b6a93e847802c5b58df82fc9ad2c | [
"MIT"
] | null | null | null | vishnucommon/json/PropertyGroups.cpp | gmrvvis/VishnuCommon | 44a6c51528d0b6a93e847802c5b58df82fc9ad2c | [
"MIT"
] | null | null | null | vishnucommon/json/PropertyGroups.cpp | gmrvvis/VishnuCommon | 44a6c51528d0b6a93e847802c5b58df82fc9ad2c | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018-2019 GMRV/URJC.
*
* Authors: Gonzalo Bayo Martinez <gonzalo.bayo@urjc.es>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of his software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including with... | 28.948571 | 80 | 0.685946 | gmrvvis |
b01eed8fd946c94ff5e55a8ac5eda09cdf793413 | 1,597 | hpp | C++ | count_iterator.hpp | vorpal-research/iterations | 65eeaded83d71bd95a3d6ca73e5507010a197e92 | [
"MIT"
] | null | null | null | count_iterator.hpp | vorpal-research/iterations | 65eeaded83d71bd95a3d6ca73e5507010a197e92 | [
"MIT"
] | null | null | null | count_iterator.hpp | vorpal-research/iterations | 65eeaded83d71bd95a3d6ca73e5507010a197e92 | [
"MIT"
] | null | null | null | /*
* count_iterator.hpp
*
* Created on: Mar 22, 2015
* Author: belyaev
*/
#ifndef COUNT_ITERATOR_HPP_
#define COUNT_ITERATOR_HPP_
#include "iterator_adapter.hpp"
namespace essentials {
namespace iterations {
template<class ValueType = size_t>
struct counting_iterator_simple {
ValueType val;
cou... | 25.758065 | 113 | 0.659361 | vorpal-research |
b026211058fd8937e652a20413643ed87215792a | 956 | cpp | C++ | IREController/IREController/Gamepad.cpp | i4Ds/IRE | 0bb70ae24fd3ad79c9df6fc84b6087ce663624a7 | [
"Apache-2.0"
] | 13 | 2015-03-01T07:03:17.000Z | 2021-11-03T06:33:31.000Z | IREController/IREController/Gamepad.cpp | i4Ds/IRE | 0bb70ae24fd3ad79c9df6fc84b6087ce663624a7 | [
"Apache-2.0"
] | null | null | null | IREController/IREController/Gamepad.cpp | i4Ds/IRE | 0bb70ae24fd3ad79c9df6fc84b6087ce663624a7 | [
"Apache-2.0"
] | 3 | 2015-03-10T20:40:31.000Z | 2020-07-16T08:05:42.000Z | #include "stdafx.h"
#include "Gamepad.h"
Gamepad::Gamepad()
{
}
Gamepad::~Gamepad()
{
}
bool Gamepad::IsConnected() {
return isConnected;
}
HRESULT Gamepad::UpdateControllerState() {
DWORD dwResult;
// Simply get the state of the controller from XInput.
dwResult = XInputGetState(0, &state);
if (dwResult == ... | 14.484848 | 65 | 0.697699 | i4Ds |
b02828fe41c2edd81b5334e6ca2ee684281b1206 | 8,931 | cpp | C++ | src/main.cpp | domi385/bioinformatics | 31d26ae513bcaa14b2d3b62c7dbee4252e12e379 | [
"MIT"
] | null | null | null | src/main.cpp | domi385/bioinformatics | 31d26ae513bcaa14b2d3b62c7dbee4252e12e379 | [
"MIT"
] | null | null | null | src/main.cpp | domi385/bioinformatics | 31d26ae513bcaa14b2d3b62c7dbee4252e12e379 | [
"MIT"
] | null | null | null | /* Copyright 2018 Dunja Vesinger, Domagoj Pluščec
*
* 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, modi... | 42.327014 | 81 | 0.671257 | domi385 |
b028ea50ce27a675c7abfa20e2068f0a45dfea11 | 2,451 | hpp | C++ | Nacro/SDK/FN_PartyFinderListItem_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_PartyFinderListItem_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_PartyFinderListItem_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function PartyFinderLi... | 28.835294 | 152 | 0.707058 | Milxnor |
b028eeab41e673ea97b51c68d42d49436b0c96c8 | 433 | cpp | C++ | codeforce/E54/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | 5 | 2019-03-17T01:33:19.000Z | 2021-06-25T09:50:45.000Z | codeforce/E54/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | codeforce/E54/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
bool is(ll n) {
if (n%2==0) return false;
for (ll i = 3; i * i <= n;i+=2) {
if (n%i==0) return false;
}
return true;
}
int main() {
ll n;
cin >> n;
if (is(n)) printf("1\n");
else if (n%2==0) printf("%lld\n", n/2);
else {
for (int i = 2; i... | 16.653846 | 40 | 0.484988 | heiseish |
b02aed0bfdbd30140c38060c9a4c72ce98768365 | 4,348 | cpp | C++ | soccer_embedded/Development/AX12A_cpp/Src/MotorManager/MotorManager.cpp | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 56 | 2016-12-25T22:29:00.000Z | 2022-01-06T04:42:00.000Z | soccer_embedded/Development/AX12A_cpp/Src/MotorManager/MotorManager.cpp | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 244 | 2021-04-05T03:22:25.000Z | 2022-03-31T16:47:36.000Z | soccer_embedded/Development/AX12A_cpp/Src/MotorManager/MotorManager.cpp | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 7 | 2017-01-24T23:38:07.000Z | 2022-01-19T16:58:08.000Z | /*
* MotorManager.cpp
*
* Created on: Mar 17, 2018
* Author: Admin
*/
/********************************** Includes **********************************/
#include "MotorManager.h"
#include <cassert>
/******************************* Public Variables *******************************/
///* Buffer for data r... | 36.537815 | 102 | 0.612466 | ghsecuritylab |
b02b211a02e2b43b79b099344c069425c3d49ba0 | 501 | cc | C++ | Competitive_Coding/codechef/JUN17/ES/sol.cc | anooptoffy/Code-Repo | 735ca5f3f7f0493251ed39c9e99624eed16da49c | [
"MIT"
] | null | null | null | Competitive_Coding/codechef/JUN17/ES/sol.cc | anooptoffy/Code-Repo | 735ca5f3f7f0493251ed39c9e99624eed16da49c | [
"MIT"
] | null | null | null | Competitive_Coding/codechef/JUN17/ES/sol.cc | anooptoffy/Code-Repo | 735ca5f3f7f0493251ed39c9e99624eed16da49c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define E 2.7182818284
const ll mod = 2e18;
const int N = 3e5;
int main(int argc, char const *argv[])
{
// For handling large inputs.
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
unsigned ll int N, sum = 0;
freopen("in... | 14.735294 | 41 | 0.610778 | anooptoffy |
b02d259f591fe4f9b3d245352d7e8b317e5fe980 | 4,715 | cpp | C++ | Source/LightComponent.cpp | chuckeles/metal-pacman | 78f20fff1e2f578932014e349a5e81b1f6eb7d7c | [
"MIT"
] | 1 | 2019-05-10T06:37:54.000Z | 2019-05-10T06:37:54.000Z | Source/LightComponent.cpp | chuckeles/metal-pacman | 78f20fff1e2f578932014e349a5e81b1f6eb7d7c | [
"MIT"
] | null | null | null | Source/LightComponent.cpp | chuckeles/metal-pacman | 78f20fff1e2f578932014e349a5e81b1f6eb7d7c | [
"MIT"
] | null | null | null | #include "LightComponent.hpp"
#include <vector>
#include <sstream>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "ShaderProgram.hpp"
#include "TransformComponent.hpp"
#include "Entity.hpp"
#include "ShadowMap.hpp"
#include "Window.hpp"
void LightComponent::OnAttach(std::weak_ptr<Entity> e... | 40.646552 | 119 | 0.67508 | chuckeles |
b02e1e73213592b1708dc1f918f42542cbc0bef7 | 22,617 | cpp | C++ | code/library/Maps/Ark.cpp | jpike/noah_ark | 491ab775f69457e20a930c0dd8049609dee9c677 | [
"Unlicense"
] | null | null | null | code/library/Maps/Ark.cpp | jpike/noah_ark | 491ab775f69457e20a930c0dd8049609dee9c677 | [
"Unlicense"
] | 61 | 2015-04-11T21:26:12.000Z | 2021-10-02T13:34:43.000Z | code/library/Maps/Ark.cpp | jpike/noah_ark | 491ab775f69457e20a930c0dd8049609dee9c677 | [
"Unlicense"
] | null | null | null | #include "ErrorHandling/Asserts.h"
#include "Maps/Ark.h"
#include "Maps/Tileset.h"
#include "Maps/Data/ArkInteriorTileMapData.h"
#include "Resources/AnimalGraphics.h"
#include "Resources/AnimalSounds.h"
namespace MAPS
{
/// Constructor. Populates the ark interior based on data read from in-memory assets.
/// ... | 56.684211 | 176 | 0.56462 | jpike |
b030489c3bae5116714a523557228bd6686f1d0d | 5,279 | hpp | C++ | definition/swift-mt/src/definition/MessageIndexParser.hpp | Yanick-Salzmann/libmessage | 22042459ddabea4de04085155fdacb7f0347416b | [
"Apache-2.0"
] | null | null | null | definition/swift-mt/src/definition/MessageIndexParser.hpp | Yanick-Salzmann/libmessage | 22042459ddabea4de04085155fdacb7f0347416b | [
"Apache-2.0"
] | null | null | null | definition/swift-mt/src/definition/MessageIndexParser.hpp | Yanick-Salzmann/libmessage | 22042459ddabea4de04085155fdacb7f0347416b | [
"Apache-2.0"
] | null | null | null | #ifndef LIBMESSAGE_MESSAGEINDEXPARSER_HPP
#define LIBMESSAGE_MESSAGEINDEXPARSER_HPP
#undef min
#include "proto/SwiftMtMsgDefinition.pb.h"
#include "SequenceStack.hpp"
#include "ComponentFormatStack.hpp"
#include <log/Log.hpp>
#include <list>
#include <regex>
#include <http/HtmlDocument.hpp>
namespace message::defini... | 46.307018 | 234 | 0.686873 | Yanick-Salzmann |
b031b549bcc46bc1a373eac104caa21b9193e200 | 5,117 | cpp | C++ | dwarfz/die.cpp | cristivlas/zerobugs | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | [
"BSL-1.0"
] | 2 | 2018-03-19T23:27:47.000Z | 2018-06-24T16:15:19.000Z | dwarfz/die.cpp | cristivlas/zerobugs | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | [
"BSL-1.0"
] | null | null | null | dwarfz/die.cpp | cristivlas/zerobugs | 5f080c8645b123d7887fd8a64f60e8d226e3b1d5 | [
"BSL-1.0"
] | 1 | 2021-11-28T05:39:05.000Z | 2021-11-28T05:39:05.000Z | //
// $Id$
//
// -------------------------------------------------------------------------
// This file is part of ZeroBugs, Copyright (c) 2010 Cristian L. Vlasceanu
//
// 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.... | 19.456274 | 86 | 0.56537 | cristivlas |
b0349898d9f32c718b9d263b0c44857fa7eb4b78 | 4,168 | cpp | C++ | Assignment 3/main.cpp | John-Ghaly88/ProgrammingIII_CPP_Course | 4a6d37d192d0035e07771e7586308623a3f28377 | [
"MIT"
] | null | null | null | Assignment 3/main.cpp | John-Ghaly88/ProgrammingIII_CPP_Course | 4a6d37d192d0035e07771e7586308623a3f28377 | [
"MIT"
] | null | null | null | Assignment 3/main.cpp | John-Ghaly88/ProgrammingIII_CPP_Course | 4a6d37d192d0035e07771e7586308623a3f28377 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Article{
public:
int numberOfArticel, orderDuration;
string description;
double costPrice;
Article(string n, string d, string c, string o){
numberOfArticel = stoi(n);
description = d;
costPrice = stod(c);
orderDuration... | 29.985612 | 110 | 0.554223 | John-Ghaly88 |
b03752f309df09d4042ea083b10c84b97e652c37 | 695 | cpp | C++ | cpp/data-structure/union-find.cpp | luckylat/luckYrat_library | c77bd6ac070db8c929c3d7419eaa73805793108c | [
"CC0-1.0"
] | null | null | null | cpp/data-structure/union-find.cpp | luckylat/luckYrat_library | c77bd6ac070db8c929c3d7419eaa73805793108c | [
"CC0-1.0"
] | 4 | 2021-10-16T10:47:13.000Z | 2021-11-17T06:34:09.000Z | cpp/data-structure/union-find.cpp | luckylat/luckYrat_library | c77bd6ac070db8c929c3d7419eaa73805793108c | [
"CC0-1.0"
] | null | null | null | struct UnionFind {
int n;
vector<int> par;
vector<int> size_;
UnionFind(int n_) : n(n_), par((size_t)n_), size_((size_t)n_,1){
for(int i = 0; n > i; i++)par[i] = i;
}
int root(int x){
if(par[x] == x)return x;
return par[x] = root(par[x]);
}
void unite(int a,int b){
int ra = root(a);
... | 18.289474 | 66 | 0.496403 | luckylat |
b037e015508784d4e138eb5b1d31fef84a215f12 | 677 | cpp | C++ | C++/LeetCode/0091.cpp | spycedcoffee/DSA | 1e559ed5251a2005cc2815438d865f0293f4cd44 | [
"MIT"
] | 4 | 2021-08-28T19:16:50.000Z | 2022-03-04T19:46:31.000Z | C++/LeetCode/0091.cpp | spycedcoffee/DSA | 1e559ed5251a2005cc2815438d865f0293f4cd44 | [
"MIT"
] | 8 | 2021-10-29T19:10:51.000Z | 2021-11-03T12:38:00.000Z | C++/LeetCode/0091.cpp | spycedcoffee/DSA | 1e559ed5251a2005cc2815438d865f0293f4cd44 | [
"MIT"
] | 4 | 2021-09-06T05:53:07.000Z | 2021-12-24T10:31:40.000Z | class Solution {
public:
int numDecodings(string s) {
if(s[0] == '0')
return 0;
int point1 = 0;
int point2 = 0;
int ch = 1;
for(int i = s.length() - 1; i >= 0; i--){
point2 = point1;
point1 = ch;
... | 21.15625 | 64 | 0.289513 | spycedcoffee |
b03873653e7dbafc89b242aba774ec9ffcc8fbe6 | 19,609 | cpp | C++ | src/appointment.cpp | NuLL3rr0r/samsungdforum-ir | f293631bbb7b96f854e7b89b286251d56ea70690 | [
"MIT",
"Unlicense"
] | null | null | null | src/appointment.cpp | NuLL3rr0r/samsungdforum-ir | f293631bbb7b96f854e7b89b286251d56ea70690 | [
"MIT",
"Unlicense"
] | null | null | null | src/appointment.cpp | NuLL3rr0r/samsungdforum-ir | f293631bbb7b96f854e7b89b286251d56ea70690 | [
"MIT",
"Unlicense"
] | null | null | null | /**********************************
* = Header File Inclusion =
**********************************/
#include <unordered_map>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
#include <Wt/WApplication>
#include <Wt/WComboBox>
#include <Wt/WContainerWidget>
#include <Wt/WDialog>
#include <Wt/WGridLayout>... | 31.3744 | 116 | 0.566577 | NuLL3rr0r |
b03ca5160c5012407da0b2178725738feb436158 | 606 | cpp | C++ | Bio.cpp | SubhamChoudhury/E-Lab-Object-Oriented-Programming | b94b6c25bc41a9d11d06e2cefeba7be7d583b335 | [
"MIT"
] | 2 | 2020-09-09T09:27:45.000Z | 2021-05-11T17:59:35.000Z | Bio.cpp | SubhamChoudhury/E-Lab-Object-Oriented-Programming | b94b6c25bc41a9d11d06e2cefeba7be7d583b335 | [
"MIT"
] | 1 | 2020-09-16T20:34:36.000Z | 2020-09-16T20:38:37.000Z | Bio.cpp | SubhamChoudhury/E-Lab-Object-Oriented-Programming | b94b6c25bc41a9d11d06e2cefeba7be7d583b335 | [
"MIT"
] | 15 | 2019-08-01T03:49:25.000Z | 2021-10-07T06:08:22.000Z | #include <iostream>
using namespace std;
class student
{
public:
int rollnumber, mark1, mark2;
void getdet1()
{
cin >> rollnumber;
cin >> mark1 >> mark2;
}
};
class sports
{
public:
int mark3;
void getdet2()
{
cin >> mark3;
}
};
class statement : public student, public sports
{
public:
vo... | 15.15 | 64 | 0.575908 | SubhamChoudhury |