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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a30ef9d8abe9ead03c64d9391da245c80a9074a1 | 12,125 | cpp | C++ | lib/AST/ModuleNameLookup.cpp | svoit/swift | 999fb1808e209cb8fa3901c5e632f7b7ad7abc5c | [
"Apache-2.0"
] | 3 | 2018-07-27T01:54:17.000Z | 2020-10-21T16:09:43.000Z | lib/AST/ModuleNameLookup.cpp | svoit/swift | 999fb1808e209cb8fa3901c5e632f7b7ad7abc5c | [
"Apache-2.0"
] | 3 | 2018-09-27T23:09:06.000Z | 2018-10-18T18:12:20.000Z | lib/AST/ModuleNameLookup.cpp | svoit/swift | 999fb1808e209cb8fa3901c5e632f7b7ad7abc5c | [
"Apache-2.0"
] | 2 | 2018-08-04T18:08:10.000Z | 2021-04-15T15:07:04.000Z | //===--- ModuleNameLookup.cpp - Name lookup within a module ---------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 40.551839 | 84 | 0.625072 | svoit |
a3109de7a68d5795637cd39f96c53acac24cca62 | 682 | hpp | C++ | include/mitama/dimensional/systems/si/derived_units/absorbed_dose_rate.hpp | LoliGothick/mitama-dimensional | 46b9ae3764bd472da9ed5372afd82e6b5d542543 | [
"MIT"
] | 34 | 2019-01-18T11:51:02.000Z | 2021-09-17T02:46:43.000Z | include/mitama/dimensional/systems/si/derived_units/absorbed_dose_rate.hpp | LoliGothick/mitama-dimensional | 46b9ae3764bd472da9ed5372afd82e6b5d542543 | [
"MIT"
] | 11 | 2019-02-10T23:12:07.000Z | 2019-05-06T21:05:09.000Z | include/mitama/dimensional/systems/si/derived_units/absorbed_dose_rate.hpp | LoliGothick/mitama-dimensional | 46b9ae3764bd472da9ed5372afd82e6b5d542543 | [
"MIT"
] | 5 | 2019-02-27T11:53:20.000Z | 2021-03-20T21:59:59.000Z | #ifndef MITAMA_DIMENSIONAL_DERIVED_UNITS_ABSORBED_DOSE_RATE_HPP
#define MITAMA_DIMENSIONAL_DERIVED_UNITS_ABSORBED_DOSE_RATE_HPP
#include <mitama/dimensional/systems/si/all.hpp>
#include <mitama/dimensional/quantity.hpp>
#include <mitama/dimensional/io.hpp>
#include "absorbed_dose.hpp"
namespace mitama::systems::si {
... | 31 | 111 | 0.812317 | LoliGothick |
a311a5ceeb41c1fee71e5188af2af2031c38885c | 14,014 | cpp | C++ | tmp/LaserUart.cpp | hong19891207/carto_release_BBS | a8a59fe94a6446b345117fab0f682c202eb10708 | [
"BSD-2-Clause"
] | null | null | null | tmp/LaserUart.cpp | hong19891207/carto_release_BBS | a8a59fe94a6446b345117fab0f682c202eb10708 | [
"BSD-2-Clause"
] | null | null | null | tmp/LaserUart.cpp | hong19891207/carto_release_BBS | a8a59fe94a6446b345117fab0f682c202eb10708 | [
"BSD-2-Clause"
] | 1 | 2021-01-08T01:57:50.000Z | 2021-01-08T01:57:50.000Z | #include "LaserUart.h"
#include "sys/time.h"
#include <time.h>
#include <sstream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <iostream>
#include <string>
#include <sys/ioctl.h>
#include <boost/shared_ptr.hpp>
#include <boost/thread.hpp>
... | 27.106383 | 131 | 0.517839 | hong19891207 |
a313882104471d89f393a20ff24a0d2fc08d4b82 | 12,530 | cpp | C++ | debugger/src/cpu_arm_plugin/decoder_thumb.cpp | hossameldin1995/riscv_vhdl | aab7196a6b9962626ed7314b7c86b93760e76f83 | [
"Apache-2.0"
] | 432 | 2015-11-08T20:32:45.000Z | 2022-03-30T07:53:01.000Z | debugger/src/cpu_arm_plugin/decoder_thumb.cpp | hossameldin1995/riscv_vhdl | aab7196a6b9962626ed7314b7c86b93760e76f83 | [
"Apache-2.0"
] | 37 | 2016-02-23T13:13:34.000Z | 2021-09-27T14:06:50.000Z | debugger/src/cpu_arm_plugin/decoder_thumb.cpp | hossameldin1995/riscv_vhdl | aab7196a6b9962626ed7314b7c86b93760e76f83 | [
"Apache-2.0"
] | 99 | 2015-12-07T05:17:18.000Z | 2022-02-17T11:17:14.000Z | /*
* Copyright 2018 Sergey Khabarov, sergeykhbr@gmail.com
*
* 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... | 36.530612 | 84 | 0.525938 | hossameldin1995 |
a313a0d11f0b8eb61648cf94f41a213b16d8e434 | 2,780 | cpp | C++ | midori_engine/src/midori/renderer/Buffer.cpp | SzyJ/midori_engine | c032354b53798af7e34dc0a8c852c83843df974d | [
"MIT"
] | 1 | 2019-10-29T18:52:49.000Z | 2019-10-29T18:52:49.000Z | midori_engine/src/midori/renderer/Buffer.cpp | SzyJ/midori_engine | c032354b53798af7e34dc0a8c852c83843df974d | [
"MIT"
] | 2 | 2019-11-10T19:32:49.000Z | 2020-05-23T08:29:17.000Z | midori_engine/src/midori/renderer/Buffer.cpp | SzyJ/midori_engine | c032354b53798af7e34dc0a8c852c83843df974d | [
"MIT"
] | 1 | 2019-10-29T18:34:32.000Z | 2019-10-29T18:34:32.000Z | // Author: Szymon Jackiewicz
//
// Project: midori_engine
// File: Buffer.cpp
// Date: 29/10/2019
#include "mdpch.h"
#include "Buffer.h"
#include "Renderer.h"
#include "platform/opengl/OpenGLBuffer.h"
namespace midori {
ref<VertexBuffer> VertexBuffer::Create(float* vertices, uint32_t size) {
switch (Ren... | 31.590909 | 105 | 0.631295 | SzyJ |
a3141a460feed4ab5a21d6458eddda85ebea3974 | 1,746 | hpp | C++ | include/defination.hpp | Qanora/mstack-cpp | a1b6de6983404558e46b87d0e81da715fcdccd55 | [
"MIT"
] | 15 | 2020-07-20T12:32:38.000Z | 2022-03-24T19:24:02.000Z | include/defination.hpp | Qanora/mstack-cpp | a1b6de6983404558e46b87d0e81da715fcdccd55 | [
"MIT"
] | null | null | null | include/defination.hpp | Qanora/mstack-cpp | a1b6de6983404558e46b87d0e81da715fcdccd55 | [
"MIT"
] | 5 | 2020-07-20T12:42:58.000Z | 2021-01-16T10:13:39.000Z | #pragma once
namespace mstack {
static constexpr int TUNTAP_DEV = 0x01;
constexpr static int TCP_CLOSED = 0x10;
constexpr static int TCP_LISTEN = 0x11;
constexpr static int TCP_SYN_SENT = 0x12;
constexpr static int TCP_SYN_RECEIVED = 0x13;
constexpr static int TCP_ESTABLISHED = 0x14;
constexpr static ... | 37.148936 | 50 | 0.576747 | Qanora |
a3150505416f9440640f21affd635a35a242f914 | 19,267 | cpp | C++ | Plugins/VRExpansionPlugin/VRExpansionPlugin/Intermediate/Build/Win64/UE4Editor/Inc/VRExpansionPlugin/VRStereoWidgetComponent.gen.cpp | ham1ton/QuestVRE | e32a68f86546e20852187ba7626e2899c2180f6d | [
"MIT"
] | null | null | null | Plugins/VRExpansionPlugin/VRExpansionPlugin/Intermediate/Build/Win64/UE4Editor/Inc/VRExpansionPlugin/VRStereoWidgetComponent.gen.cpp | ham1ton/QuestVRE | e32a68f86546e20852187ba7626e2899c2180f6d | [
"MIT"
] | null | null | null | Plugins/VRExpansionPlugin/VRExpansionPlugin/Intermediate/Build/Win64/UE4Editor/Inc/VRExpansionPlugin/VRStereoWidgetComponent.gen.cpp | ham1ton/QuestVRE | e32a68f86546e20852187ba7626e2899c2180f6d | [
"MIT"
] | null | null | null | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... | 71.624535 | 752 | 0.834847 | ham1ton |
a315e6a8ee04b1a81868072b917e20e917c9c84b | 5,267 | cpp | C++ | NeoML/src/Dnn/Layers/GruLayer.cpp | AlinaKalyakina/neoml | 328eac0d23e45faedb07a336ebfaf36288bb0db9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoML/src/Dnn/Layers/GruLayer.cpp | AlinaKalyakina/neoml | 328eac0d23e45faedb07a336ebfaf36288bb0db9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoML/src/Dnn/Layers/GruLayer.cpp | AlinaKalyakina/neoml | 328eac0d23e45faedb07a336ebfaf36288bb0db9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* Copyright © 2017-2020 ABBYY Production 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | 34.424837 | 112 | 0.747674 | AlinaKalyakina |
a31d588dda24a59f492b6e81c6da76b82dc18b95 | 3,337 | cpp | C++ | src/GLTextureCubeMap.cpp | stonexjr/davinci | 40793f19de0919e5d74ecb0de10524c4bd10f084 | [
"MIT"
] | 1 | 2018-06-06T13:20:49.000Z | 2018-06-06T13:20:49.000Z | src/GLTextureCubeMap.cpp | stonexjr/davinci | 40793f19de0919e5d74ecb0de10524c4bd10f084 | [
"MIT"
] | null | null | null | src/GLTextureCubeMap.cpp | stonexjr/davinci | 40793f19de0919e5d74ecb0de10524c4bd10f084 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2013-2017 Jinrong Xie (jrxie at ucdavis dot edu)
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,... | 37.494382 | 91 | 0.720108 | stonexjr |
a31ea9653c79cda6e8bae99d8caf0ca6967d4fdf | 86,467 | cpp | C++ | game/src/Client/XClient.cpp | kovdennik/TestEngine | 43e8d51f64c1a576ff812126d44ee43d8e25bdef | [
"MIT"
] | null | null | null | game/src/Client/XClient.cpp | kovdennik/TestEngine | 43e8d51f64c1a576ff812126d44ee43d8e25bdef | [
"MIT"
] | null | null | null | game/src/Client/XClient.cpp | kovdennik/TestEngine | 43e8d51f64c1a576ff812126d44ee43d8e25bdef | [
"MIT"
] | null | null | null | #include <Client/XClient.hpp>
#if 0
//////////////////////////////////////////////////////////////////////
/** Parameters for cut-scene cameras
*/
struct SCameraParams
{
SCameraParams()
{
//cameraNode = 0;
nCameraId = 0;
fFOV = 0.0f;
}
//IAnimNode* cameraNode;
unsigned short nCameraId;
float f... | 26.853106 | 142 | 0.633883 | kovdennik |
a328067b1e96359ae60241a909dbbd6812ebb8ac | 9,275 | hpp | C++ | utilities/Utilities.hpp | Elbereth9001/matvek | ba62182c68ef568557141a2f49ec0d21af041c5c | [
"Zlib"
] | null | null | null | utilities/Utilities.hpp | Elbereth9001/matvek | ba62182c68ef568557141a2f49ec0d21af041c5c | [
"Zlib"
] | null | null | null | utilities/Utilities.hpp | Elbereth9001/matvek | ba62182c68ef568557141a2f49ec0d21af041c5c | [
"Zlib"
] | null | null | null | /// MATVEK C++ Library
/// Copyright (c) 2017 Eetu Asikainen
///
/// 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 software.
///
/// Permission is granted to anyone to use this software for a... | 31.334459 | 158 | 0.552345 | Elbereth9001 |
a32c6aa7af076317ff2fe7840bbe70207676e127 | 12,041 | cpp | C++ | src/pooling_transpose.cpp | jingyibo123/MinkowskiEngine | 9608902dfed629e4b7fceae02750ef902785905d | [
"MIT"
] | 28 | 2021-03-26T09:24:23.000Z | 2022-02-17T20:14:43.000Z | src/pooling_transpose.cpp | jingyibo123/MinkowskiEngine | 9608902dfed629e4b7fceae02750ef902785905d | [
"MIT"
] | 1 | 2021-07-12T02:38:51.000Z | 2021-07-12T11:43:31.000Z | src/pooling_transpose.cpp | jingyibo123/MinkowskiEngine | 9608902dfed629e4b7fceae02750ef902785905d | [
"MIT"
] | 4 | 2021-08-05T01:57:05.000Z | 2022-02-17T20:26:35.000Z | /* Copyright (c) Chris Choy (chrischoy@ai.stanford.edu).
*
* 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, ... | 45.958015 | 80 | 0.714808 | jingyibo123 |
a32d8023344812fb571193c71caaf67de6d0091c | 3,413 | cpp | C++ | patbasic/test1073.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1073.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1073.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | //
// Created by neild47 on 18-5-2.
//
#include <iostream>
#include <utility>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
class Question {
public:
int score;
int total;
vector<char> ans;
vector<int> count;
Question(int score, int total, vector<char> ans) : score(sco... | 26.664063 | 104 | 0.442133 | neild47 |
a32f38ed68dbb33fe7eec2482f10447ce5e10956 | 3,690 | cpp | C++ | Engine/Math/Vector3.cpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | Engine/Math/Vector3.cpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | Engine/Math/Vector3.cpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | //==============================================================================================================
//Vector3.cpp
//by Albert Chen Feb-18-2015.
//==============================================================================================================
//includes
#define STATIC
#include <math.h>
#incl... | 40.549451 | 145 | 0.542276 | achen889 |
cd1149bedd026d85125d7bbee6ce897bf52975f3 | 16,598 | cpp | C++ | OPHD/UI/Reports/MineReport.cpp | Daedeross/OPHD | 16c0c4bf44bd74fe2ef413e344d3ef5aeab6102c | [
"BSD-3-Clause"
] | 30 | 2018-03-31T19:16:45.000Z | 2019-10-15T03:12:17.000Z | OPHD/UI/Reports/MineReport.cpp | Daedeross/OPHD | 16c0c4bf44bd74fe2ef413e344d3ef5aeab6102c | [
"BSD-3-Clause"
] | 149 | 2018-04-23T01:47:22.000Z | 2020-02-09T04:04:34.000Z | OPHD/UI/Reports/MineReport.cpp | Daedeross/OPHD | 16c0c4bf44bd74fe2ef413e344d3ef5aeab6102c | [
"BSD-3-Clause"
] | 10 | 2018-04-28T14:59:07.000Z | 2020-01-26T19:54:36.000Z | #include "MineReport.h"
#include "../TextRender.h"
#include "../../Constants/Numbers.h"
#include "../../Constants/Strings.h"
#include "../../Constants/UiConstants.h"
#include "../../Cache.h"
#include "../../StructureManager.h"
#include "../../ProductionCost.h"
#include "../../States/Route.h"
#include "../../Things... | 31.140713 | 166 | 0.73551 | Daedeross |
cd1c2d48d708dd115ffa4d9e75416a99497a3380 | 9,299 | cpp | C++ | lib/AFE-Sensor-HPMA115S0/AFE-Sensor-HPMA115S0.cpp | lukasz-pekala/AFE-Firmware | 59e10dd2f9665ba816c22905e63eaa60ec8fda09 | [
"MIT"
] | null | null | null | lib/AFE-Sensor-HPMA115S0/AFE-Sensor-HPMA115S0.cpp | lukasz-pekala/AFE-Firmware | 59e10dd2f9665ba816c22905e63eaa60ec8fda09 | [
"MIT"
] | null | null | null | lib/AFE-Sensor-HPMA115S0/AFE-Sensor-HPMA115S0.cpp | lukasz-pekala/AFE-Firmware | 59e10dd2f9665ba816c22905e63eaa60ec8fda09 | [
"MIT"
] | null | null | null | /* AFE Firmware for smart home devices, Website: https://afe.smartnydom.pl/ */
#include "AFE-Sensor-HPMA115S0.h"
AFESensorHPMA115S0::AFESensorHPMA115S0(){};
void AFESensorHPMA115S0::begin(uint8_t id) {
AFEDataAccess Data;
Data.getConfiguration(id,&configuration);
#ifndef AFE_CONFIG_API_DOMOTICZ_ENABLED
if (st... | 27.593472 | 82 | 0.555221 | lukasz-pekala |
cd246bb14fe2791a5b736fc013d8b5040a93cff6 | 2,324 | cpp | C++ | Problems/LinkedList/addingtwolists.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | Problems/LinkedList/addingtwolists.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | Problems/LinkedList/addingtwolists.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
struct node
{
int val;
struct node *next;
};
struct node *create_node(int val)
{
node *ptr = new node;
ptr->val = val;
ptr->next = NULL;
return ptr;
}
node *insert(node *root,int val){
node *head;
if(root == NULL)... | 19.366667 | 54 | 0.399742 | vishwajeet-hogale |
cd253172616327f2e0b8795940ae0e34dd8482dc | 3,799 | cpp | C++ | servicio/src/clienterest.cpp | JoseManuelVargas/arandasoft-cpp-prueba-tecnica | beb2a180fdbb0ed13e2a885b159989c542907392 | [
"MIT"
] | null | null | null | servicio/src/clienterest.cpp | JoseManuelVargas/arandasoft-cpp-prueba-tecnica | beb2a180fdbb0ed13e2a885b159989c542907392 | [
"MIT"
] | null | null | null | servicio/src/clienterest.cpp | JoseManuelVargas/arandasoft-cpp-prueba-tecnica | beb2a180fdbb0ed13e2a885b159989c542907392 | [
"MIT"
] | null | null | null | /**********************************************************************************
MIT License
Copyright (c) 2020 JoseManuelVargas
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 restric... | 37.613861 | 102 | 0.71124 | JoseManuelVargas |
cd2609d59c9ed4d2cc958ee5177e315b9182d997 | 1,861 | cpp | C++ | test/a-5-0-1.cpp | KhouloudMansour/autosarcpp14-checker | 8ed801498d9b6c27c1c7c09038bcd569484b0f30 | [
"MIT"
] | 3 | 2021-07-19T03:33:12.000Z | 2022-03-11T12:49:59.000Z | test/a-5-0-1.cpp | KhouloudMansour/autosarcpp14-checker | 8ed801498d9b6c27c1c7c09038bcd569484b0f30 | [
"MIT"
] | null | null | null | test/a-5-0-1.cpp | KhouloudMansour/autosarcpp14-checker | 8ed801498d9b6c27c1c7c09038bcd569484b0f30 | [
"MIT"
] | 6 | 2021-09-13T20:51:09.000Z | 2022-03-11T12:54:37.000Z | // Run: $ Clang++ -fsyntax-only -std=c++14 -Wunsequenced -Werror -ferror-limit=0
#include <cstdint>
// The following notes give some guidance on how dependence on order of
// evaluation may occur, and therefore may assist in adopting the rule.
// 1) Increment or decrement operators
// As an example of what can go wro... | 32.649123 | 80 | 0.723267 | KhouloudMansour |
cd2652d4323dd388c5ab2f6b2431775d3bee102f | 50,170 | hh | C++ | dune/ax1/acme0/common/convectiondiffusiondg.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | dune/ax1/acme0/common/convectiondiffusiondg.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | dune/ax1/acme0/common/convectiondiffusiondg.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | // -*- tab-width: 4; indent-tabs-mode: nil -*-
/*
* This file was copied from <dune/pdelab/localoperator/convectiondiffusiondg.hh>
* so that it can be modified for testing purposes without affecting the original one
*/
#ifndef DUNE_AX1_ACME0_CONVECTIONDIFFUSIONDG_HH
#define DUNE_AX1_ACME0_CONVECTIONDIFFUSIONDG_HH
... | 45.692168 | 136 | 0.596671 | pederpansen |
cd30746dee3dafb8efdfa213b5999d34560cd6dc | 1,295 | cpp | C++ | Examples/Dispatcher.cpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | 1 | 2020-12-18T20:43:20.000Z | 2020-12-18T20:43:20.000Z | Examples/Dispatcher.cpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | null | null | null | Examples/Dispatcher.cpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2011-2012 Krzysztof Jusiak (krzysztof at jusiak dot net)
//
// 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)
//
#include <QFsm/QFsm.hpp>
#include <QFsm/Utility/Dispatcher.hpp>
#include "Utility.hp... | 25.9 | 90 | 0.698069 | krzysztof-jusiak |
cd3384fc4aa4f91ffc532cc723b5db3cbf1a0d9d | 1,607 | cpp | C++ | UVa/unfinished/00255.cpp | axelgio01/cp | 7a1c3490f913e4aea53e46bcfb5bb56c9b15605d | [
"MIT"
] | null | null | null | UVa/unfinished/00255.cpp | axelgio01/cp | 7a1c3490f913e4aea53e46bcfb5bb56c9b15605d | [
"MIT"
] | null | null | null | UVa/unfinished/00255.cpp | axelgio01/cp | 7a1c3490f913e4aea53e46bcfb5bb56c9b15605d | [
"MIT"
] | null | null | null | // https://onlinejudge.org/external/2/255.pdf
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
freopen("i.txt", "r", stdin);
freopen("o.txt", "w", stdout);
int k_pos, q_pos, qp_pos;
auto convert = [&] (int pos) {
return make_pair(pos / 8, pos % 8... | 33.479167 | 81 | 0.568139 | axelgio01 |
cd382506ce19c3bb6dfb9b2e9bb5e9b52cb73d11 | 1,316 | hpp | C++ | include/robot/devices/encoderClass.hpp | 1069B/Tower_Takeover | 331a323216cd006a8cc3bc7a326ebe3a463e429f | [
"MIT"
] | null | null | null | include/robot/devices/encoderClass.hpp | 1069B/Tower_Takeover | 331a323216cd006a8cc3bc7a326ebe3a463e429f | [
"MIT"
] | 3 | 2019-07-26T15:56:19.000Z | 2019-07-29T02:55:32.000Z | include/robot/devices/encoderClass.hpp | 1069B/Tower_Takeover | 331a323216cd006a8cc3bc7a326ebe3a463e429f | [
"MIT"
] | null | null | null | #include "robot/varibleDecleration.hpp"
#include "timerClass.hpp"
#ifndef ENCODERCLASS_H
#define ENCODERCLASS_H
class Encoder{
private:
std::string m_name = "Encoder";
Robot& m_robot;
short m_port;// 1,3,5,7
Timer m_timer;
int m_rotation = 0;
double m_displacement = 0;
double m_previousDisplacement = 0... | 19.352941 | 92 | 0.731763 | 1069B |
cd39ada1a92a7f4d60d65477f90d41efcfe8b67a | 51,024 | cpp | C++ | IGC/Compiler/Optimizer/OpenCLPasses/SubGroupFuncs/SubGroupFuncsResolution.cpp | krupenik/intel-graphics-compiler | 8dc771cc827f29ade02b0721e227990162084dbf | [
"MIT"
] | null | null | null | IGC/Compiler/Optimizer/OpenCLPasses/SubGroupFuncs/SubGroupFuncsResolution.cpp | krupenik/intel-graphics-compiler | 8dc771cc827f29ade02b0721e227990162084dbf | [
"MIT"
] | null | null | null | IGC/Compiler/Optimizer/OpenCLPasses/SubGroupFuncs/SubGroupFuncsResolution.cpp | krupenik/intel-graphics-compiler | 8dc771cc827f29ade02b0721e227990162084dbf | [
"MIT"
] | null | null | null | /*===================== begin_copyright_notice ==================================
Copyright (c) 2017 Intel Corporation
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, includi... | 50.418972 | 166 | 0.74218 | krupenik |
cd3e18e2d9a4fd7f80989c7b411dace2d7648e86 | 4,323 | cpp | C++ | Source/GameplayAbilities/Private/GameplayModMagnitudeCalculation.cpp | praisesolek/up-to-date-GAS | 5f159cae5ac5b2748fb99670ffce6b507a7fd869 | [
"Unlicense"
] | null | null | null | Source/GameplayAbilities/Private/GameplayModMagnitudeCalculation.cpp | praisesolek/up-to-date-GAS | 5f159cae5ac5b2748fb99670ffce6b507a7fd869 | [
"Unlicense"
] | null | null | null | Source/GameplayAbilities/Private/GameplayModMagnitudeCalculation.cpp | praisesolek/up-to-date-GAS | 5f159cae5ac5b2748fb99670ffce6b507a7fd869 | [
"Unlicense"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
#include "GameplayModMagnitudeCalculation.h"
UGameplayModMagnitudeCalculation::UGameplayModMagnitudeCalculation(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
, bAllowNonNetAuthorityDependencyRegistration(false)
{
}
float UGameplayModMagni... | 35.146341 | 242 | 0.834606 | praisesolek |
cd408c1a8f9390388b411cf74d184e10935c3e34 | 27,080 | cpp | C++ | dynadjust/dynadjust/dnaadjust/dnaadjust-multi.cpp | dotzhou/DynAdjust | 5e5918aff7975e2c2cead4f5be16b48d3eee7c76 | [
"Apache-2.0"
] | 1 | 2020-06-02T04:49:13.000Z | 2020-06-02T04:49:13.000Z | dynadjust/dynadjust/dnaadjust/dnaadjust-multi.cpp | dotzhou/DynAdjust | 5e5918aff7975e2c2cead4f5be16b48d3eee7c76 | [
"Apache-2.0"
] | null | null | null | dynadjust/dynadjust/dnaadjust/dnaadjust-multi.cpp | dotzhou/DynAdjust | 5e5918aff7975e2c2cead4f5be16b48d3eee7c76 | [
"Apache-2.0"
] | null | null | null | //============================================================================
// Name : dnaadjust-multi.cpp
// Author : Roger Fraser
// Contributors :
// Version : 1.00
// Copyright : Copyright 2017 Geoscience Australia
//
// Licensed under the Apache License, Version 2.0 (the "Lic... | 32.392344 | 147 | 0.699077 | dotzhou |
cd40a5d9934e4d62b6ecf1079555e7d9e14cd3e6 | 3,792 | cpp | C++ | [obsolete][develop]nba2k_shotchart_project/ref_hackbase/HackBase/hackbase.cpp | wxngzhxxg/Daily_GUI_Tools | dfb5a62066dab2c48ea34dd773323f9063c39b2b | [
"MIT"
] | 47 | 2018-08-22T03:36:01.000Z | 2022-03-21T14:16:43.000Z | [obsolete][develop]nba2k_shotchart_project/ref_hackbase/HackBase/hackbase.cpp | wxngzhxxg/Daily_GUI_Tools | dfb5a62066dab2c48ea34dd773323f9063c39b2b | [
"MIT"
] | 8 | 2018-10-03T04:12:32.000Z | 2020-03-21T20:46:32.000Z | [obsolete][develop]nba2k_shotchart_project/ref_hackbase/HackBase/hackbase.cpp | wxngzhxxg/Daily_GUI_Tools | dfb5a62066dab2c48ea34dd773323f9063c39b2b | [
"MIT"
] | 9 | 2018-09-09T07:35:33.000Z | 2021-03-02T14:56:04.000Z | #include "HackBase.h"
HackBase* mSingleton = 0;
void onRenderEvent(Renderer *renderer) {
HackBase *hackbase = HackBase::Singleton();
static bool FirstRun = true;
if(FirstRun) {
FirstRun = false;
hackbase->cleanUpD3DHooks();
#ifdef DEBUGLOG
hackbase->getRenderer()->loglnDebugInfo();
switch(getWindowsVers... | 23.263804 | 146 | 0.699103 | wxngzhxxg |
cd4273ab598441d2974776f3201885613587a310 | 1,764 | cc | C++ | index_tests/usage/func_usage_call_method.cc | LiLeoH/cquery | a4bf9d44e6e8a6f0f565dc0c2d20a034a31f0f7b | [
"MIT"
] | 1,652 | 2018-01-24T03:19:58.000Z | 2020-07-28T19:04:00.000Z | index_tests/usage/func_usage_call_method.cc | LiLeoH/cquery | a4bf9d44e6e8a6f0f565dc0c2d20a034a31f0f7b | [
"MIT"
] | 490 | 2018-01-24T00:55:38.000Z | 2020-07-03T19:44:16.000Z | index_tests/usage/func_usage_call_method.cc | LiLeoH/cquery | a4bf9d44e6e8a6f0f565dc0c2d20a034a31f0f7b | [
"MIT"
] | 154 | 2018-01-31T05:57:33.000Z | 2020-07-05T00:02:46.000Z | struct Foo {
void Used();
};
void user() {
Foo* f = nullptr;
f->Used();
}
/*
OUTPUT:
{
"includes": [],
"skipped_by_preprocessor": [],
"types": [{
"id": 0,
"usr": 15041163540773201510,
"detailed_name": "Foo",
"short_name": "Foo",
"kind": 23,
"declarat... | 21.777778 | 43 | 0.393424 | LiLeoH |
cd4453b99f7c8df007df7e5d8db58a7e8e881bac | 2,042 | cc | C++ | src/product/energy_deposit_writer/EnergyDepositWriter.cc | gffs/PbF2Calo | 87770ab7eec4e40b67bc551e1e6ddf85d01b09dd | [
"MIT"
] | 1 | 2016-09-05T06:02:02.000Z | 2016-09-05T06:02:02.000Z | src/product/energy_deposit_writer/EnergyDepositWriter.cc | gffs/PbF2Calo | 87770ab7eec4e40b67bc551e1e6ddf85d01b09dd | [
"MIT"
] | 3 | 2016-09-05T06:02:26.000Z | 2016-09-05T06:02:54.000Z | src/product/energy_deposit_writer/EnergyDepositWriter.cc | gffs/PbF2Calo | 87770ab7eec4e40b67bc551e1e6ddf85d01b09dd | [
"MIT"
] | null | null | null | #include "G4Event.hh"
#include "G4MultiSteppingAction.hh"
#include "G4RunManager.hh"
#include "G4Track.hh"
#include "EnergyDepositSteppingAction.h"
#include "EnergyDepositWriter.h"
#include "TTree.h"
#include "TFile.h"
#include "iostream"
EnergyDepositWriter::EnergyDepositWriter(const json11::Json& cfg, TFile& root_... | 27.594595 | 150 | 0.691479 | gffs |
cd44b41099dcf3d58e9013ba5b8aa4cb17bb968a | 5,353 | hpp | C++ | src/gltf/Raw2Gltf.hpp | jfaust/FBX2glTF | 7fc7120487028d6fa3bf4ce502b5404427be08e7 | [
"BSD-3-Clause"
] | null | null | null | src/gltf/Raw2Gltf.hpp | jfaust/FBX2glTF | 7fc7120487028d6fa3bf4ce502b5404427be08e7 | [
"BSD-3-Clause"
] | null | null | null | src/gltf/Raw2Gltf.hpp | jfaust/FBX2glTF | 7fc7120487028d6fa3bf4ce502b5404427be08e7 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#pragma on... | 28.625668 | 92 | 0.682047 | jfaust |
cd4642bb01acccf0a47db3ca5c90f297c15e4453 | 61,620 | cpp | C++ | roo_material_icons/round/48/file.cpp | dejwk/roo_material_icons | f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885 | [
"MIT"
] | null | null | null | roo_material_icons/round/48/file.cpp | dejwk/roo_material_icons | f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885 | [
"MIT"
] | null | null | null | roo_material_icons/round/48/file.cpp | dejwk/roo_material_icons | f559ce25b6ee2fdf67ed4f8b0bedfce2aaefb885 | [
"MIT"
] | null | null | null | #include "file.h"
using namespace roo_display;
// Image file ic_round_48_file_approval 48x48, 4-bit Alpha, RLE, 238 bytes.
static const uint8_t ic_round_48_file_approval_data[] PROGMEM = {
0x80, 0xBA, 0x00, 0x86, 0x59, 0xDE, 0xED, 0x95, 0x80, 0xC2, 0x00, 0x40, 0xDF, 0x90, 0xD0, 0x47,
0x77, 0x77, 0x08, 0xFD, 0x08... | 74.690909 | 97 | 0.684047 | dejwk |
cd46a255a096f92cb0ce46ab268de893530b643f | 13,482 | cpp | C++ | split/test/src/split_test.cpp | ember91/vrt_tools_cmd | 6c56d8d9c9d069db68f229912eb39364c4294cf2 | [
"MIT"
] | null | null | null | split/test/src/split_test.cpp | ember91/vrt_tools_cmd | 6c56d8d9c9d069db68f229912eb39364c4294cf2 | [
"MIT"
] | null | null | null | split/test/src/split_test.cpp | ember91/vrt_tools_cmd | 6c56d8d9c9d069db68f229912eb39364c4294cf2 | [
"MIT"
] | 1 | 2021-06-29T14:23:49.000Z | 2021-06-29T14:23:49.000Z | #include <gtest/gtest.h>
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <fstream>
#include <istream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
#include "vrt/vrt_init.h"
#include "vrt/vrt_read.h"
#include "vrt/vrt_types.h"
#include "vrt/vrt_ut... | 36.339623 | 118 | 0.589823 | ember91 |
cd48b6868eedcfe3e6136890bfcd628d0940323f | 6,909 | cpp | C++ | Source/Musa/ECS/Systems/MaterialBatchingSystem.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Musa/ECS/Systems/MaterialBatchingSystem.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Musa/ECS/Systems/MaterialBatchingSystem.cpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | // Copyright 2020, Nathan Blane
#include "MaterialBatchingSystem.hpp"
#include "ECS/World.hpp"
#include "ECS/Components/MeshRenderComponent.hpp"
#include "ECS/Components/WorldTransformComponent.hpp"
#include "ECS/Components/RenderDataComponent.hpp"
#include "Mesh/Mesh.h"
#include "Shader/Material.hpp"
#include "Grap... | 46.06 | 142 | 0.768563 | frobro98 |
cd4ab83252e47c0ce3f4356f1fb0defcc0471a68 | 7,653 | cpp | C++ | Coursera_CS_3_4/PA2/test.cpp | pandezhao/MYC- | c4ee632abf31ff7356fdd63d85e0d9f22a952ed3 | [
"MIT"
] | null | null | null | Coursera_CS_3_4/PA2/test.cpp | pandezhao/MYC- | c4ee632abf31ff7356fdd63d85e0d9f22a952ed3 | [
"MIT"
] | null | null | null | Coursera_CS_3_4/PA2/test.cpp | pandezhao/MYC- | c4ee632abf31ff7356fdd63d85e0d9f22a952ed3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cstdlib>
#include <algorithm>//reverse函数所需添加的头文件
using namespace std;
class BigInt
{
private:
string values;//保存所有位上的数字
bool flag;//true表示正数,false表示负数,0默认为正数
inline int compare(string s1, string s2)
{
if(s1.size() < s2.size())
return -... | 21.803419 | 75 | 0.47171 | pandezhao |
cd4de78993ee331589254219011f918f7cd3ec28 | 3,677 | cpp | C++ | src/tasks/task-angular-momentum-equality.cpp | hucebot/tsid | b0d6bff80292fb3451ca7ca438a4ab84b5b8c022 | [
"BSD-2-Clause"
] | 74 | 2017-10-19T08:05:15.000Z | 2022-02-20T16:31:17.000Z | src/tasks/task-angular-momentum-equality.cpp | hucebot/tsid | b0d6bff80292fb3451ca7ca438a4ab84b5b8c022 | [
"BSD-2-Clause"
] | 123 | 2017-06-16T14:10:59.000Z | 2022-03-31T07:04:32.000Z | src/tasks/task-angular-momentum-equality.cpp | hucebot/tsid | b0d6bff80292fb3451ca7ca438a4ab84b5b8c022 | [
"BSD-2-Clause"
] | 42 | 2017-11-24T15:11:52.000Z | 2022-03-22T11:10:34.000Z | //
// Copyright (c) 2017 CNRS
//
// This file is part of tsid
// tsid is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the License, or (at your option) any later version.
// tsid... | 26.264286 | 72 | 0.621159 | hucebot |
cd4f738557122456d3bac2e2b9669e830daadfe9 | 2,338 | cpp | C++ | 872 Ordering.cpp | zihadboss/UVA-Solutions | 020fdcb09da79dc0a0411b04026ce3617c09cd27 | [
"Apache-2.0"
] | 86 | 2016-01-20T11:36:50.000Z | 2022-03-06T19:43:14.000Z | 872 Ordering.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | null | null | null | 872 Ordering.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | 113 | 2015-12-04T06:40:57.000Z | 2022-02-11T02:14:28.000Z | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
// Best is find all nodes that don't depend on others
// Or, could do dependent on
// And
// Use a priority queue?
// Dependent on
#define MAX_NUM_VARIABLES 23
// THESE WILL BE SORTED
char characters[MAX_NUM_VARIABLES];
int charact... | 22.266667 | 90 | 0.523952 | zihadboss |
cd53bd07486e517f0bf285130057850797288139 | 3,314 | cpp | C++ | test/Codec_test.cpp | VictorQueiroz/ffmpegcpp | 56719d097b09f573bf695a392b13f4919b4c81f0 | [
"MIT"
] | null | null | null | test/Codec_test.cpp | VictorQueiroz/ffmpegcpp | 56719d097b09f573bf695a392b13f4919b4c81f0 | [
"MIT"
] | null | null | null | test/Codec_test.cpp | VictorQueiroz/ffmpegcpp | 56719d097b09f573bf695a392b13f4919b4c81f0 | [
"MIT"
] | 1 | 2019-12-08T07:55:07.000Z | 2019-12-08T07:55:07.000Z | #include "../src/Codec.h"
#include "../src/SwsContext.h"
#include "../src/Frame.h"
#include "../src/Parser.h"
#include "../src/Format.h"
#include <iostream>
#include <assert.h>
int total_frames = 0;
void CreateThumbnailFromFrame(av::Frame& frame) {
AVFrame* c_frame = frame.c_frame();
double ratio = (double) ... | 30.40367 | 93 | 0.609234 | VictorQueiroz |
cd54db346245b16f26da41d0f3bc30b1c34b278d | 5,322 | hpp | C++ | gcpp/classes/oascii.hpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | 2 | 2015-10-15T19:32:42.000Z | 2021-12-20T15:56:04.000Z | gcpp/classes/oascii.hpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | null | null | null | gcpp/classes/oascii.hpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | null | null | null | /*====================================================================*
*
* oascii.hpp - oascii class declaration;
*
* character classification and conversion; this is a customxed
* and customizable implementation of the standard ctype macros
* and library functions;
*
*. Motley Tools by Charles Maier
... | 35.959459 | 72 | 0.496618 | razzlefratz |
cd559358f7312779f7f7c9b276f994e3e93d64e8 | 2,338 | hpp | C++ | ql/experimental/finitedifferences/fdsimpleextoujumpswingengine.hpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 3,358 | 2015-12-18T02:56:17.000Z | 2022-03-31T02:42:47.000Z | ql/experimental/finitedifferences/fdsimpleextoujumpswingengine.hpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 965 | 2015-12-21T10:35:28.000Z | 2022-03-30T02:47:00.000Z | ql/experimental/finitedifferences/fdsimpleextoujumpswingengine.hpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 1,663 | 2015-12-17T17:45:38.000Z | 2022-03-31T07:58:29.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2011 Klaus Spanderen
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and... | 34.895522 | 79 | 0.721129 | jiangjiali |
cd55d4f56b0364ddeee81a86181c490ecbbd6ef8 | 1,852 | cc | C++ | src/backend/polar_dma/libconsensus/consensus/algorithm/log_meta_cache.cc | qiuwenhuifx/PolarDB-for-PostgreSQL | 398902a8ba8cc3a89dc581f3d681971e887e7ebd | [
"Apache-2.0"
] | 202 | 2021-10-13T09:21:34.000Z | 2022-03-31T09:52:47.000Z | src/backend/polar_dma/libconsensus/consensus/algorithm/log_meta_cache.cc | qiuwenhuifx/PolarDB-for-PostgreSQL | 398902a8ba8cc3a89dc581f3d681971e887e7ebd | [
"Apache-2.0"
] | 9 | 2021-11-01T09:10:56.000Z | 2022-03-28T14:24:23.000Z | src/backend/polar_dma/libconsensus/consensus/algorithm/log_meta_cache.cc | qiuwenhuifx/PolarDB-for-PostgreSQL | 398902a8ba8cc3a89dc581f3d681971e887e7ebd | [
"Apache-2.0"
] | 47 | 2021-10-21T07:15:26.000Z | 2022-03-29T11:37:15.000Z | /*
* Copyright (c) 2020, Alibaba Group Holding 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
*
* Unless required by applicable l... | 24.368421 | 95 | 0.683045 | qiuwenhuifx |
cd5ceddcd8293eb6122fc4d38b49ee303e89eda7 | 3,216 | cpp | C++ | Funambol/source/common/event/SyncItemListener.cpp | wbitos/funambol | 29f76caf9cee51d51ddf5318613411cb1cfb8e4e | [
"MIT"
] | null | null | null | Funambol/source/common/event/SyncItemListener.cpp | wbitos/funambol | 29f76caf9cee51d51ddf5318613411cb1cfb8e4e | [
"MIT"
] | null | null | null | Funambol/source/common/event/SyncItemListener.cpp | wbitos/funambol | 29f76caf9cee51d51ddf5318613411cb1cfb8e4e | [
"MIT"
] | null | null | null | /*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the additio... | 39.703704 | 104 | 0.755908 | wbitos |
cd5e1d7844281c28a4618513aa951c1e29166474 | 7,308 | cpp | C++ | src/url_fsm.cpp | API92/pruv_http | 1aaebb891b93e543a8b6ae7ed72aa67eda913570 | [
"BSD-2-Clause"
] | null | null | null | src/url_fsm.cpp | API92/pruv_http | 1aaebb891b93e543a8b6ae7ed72aa67eda913570 | [
"BSD-2-Clause"
] | null | null | null | src/url_fsm.cpp | API92/pruv_http | 1aaebb891b93e543a8b6ae7ed72aa67eda913570 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) Andrey Pikas
*/
#include <pruv_http/url_fsm.hpp>
#include <algorithm>
#include <cassert>
#include <cstring>
#include <deque>
#include <utility>
#include <vector>
namespace pruv {
namespace http {
///
/// url_fsm::segment
///
struct url_fsm::segment {
char const *r;
char const *l;
c... | 25.823322 | 80 | 0.451697 | API92 |
cd5e7350bdef7dc37e56680e3b228ae199aa2f55 | 13,233 | cpp | C++ | src/base/StabFEM.cpp | chennachaos/cfdsfem | 09ebb917a58b4f5a7a9752c439a6c4dfd713dac0 | [
"MIT"
] | null | null | null | src/base/StabFEM.cpp | chennachaos/cfdsfem | 09ebb917a58b4f5a7a9752c439a6c4dfd713dac0 | [
"MIT"
] | 1 | 2020-06-03T00:30:40.000Z | 2020-06-08T14:07:17.000Z | src/base/StabFEM.cpp | chennachaos/cfdsfem | 09ebb917a58b4f5a7a9752c439a6c4dfd713dac0 | [
"MIT"
] | null | null | null |
#include <algorithm>
#include <chrono>
#include "StabFEM.h"
#include "KimMoinFlow.h"
#include "UtilitiesGeneral.h"
//#include "SolutionData.h"
//#include "LagrangeElem2DNavierStokesTria3Node.h"
#include "LagrangeElem2DNavierStokesQuad4Node.h"
//#include "LagrangeElem3DNavierStokesTetra4Node.h"
//#include "LagrangeElem... | 22.776248 | 198 | 0.53087 | chennachaos |
cd5ec19e12a6fe46850cf5358cc1ff934b31c8f0 | 14,437 | cpp | C++ | tests/src/object.cpp | dhurum/sjparser | 1881c050e8c6752ecaf2c41d5115ffb489efc711 | [
"MIT"
] | 1 | 2021-04-12T05:22:35.000Z | 2021-04-12T05:22:35.000Z | tests/src/object.cpp | dhurum/sjparser | 1881c050e8c6752ecaf2c41d5115ffb489efc711 | [
"MIT"
] | null | null | null | tests/src/object.cpp | dhurum/sjparser | 1881c050e8c6752ecaf2c41d5115ffb489efc711 | [
"MIT"
] | null | null | null | /*******************************************************************************
Copyright (c) 2016-2017 Denis Tikhomirov <dvtikhomirov@gmail.com>
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 ... | 29.165657 | 80 | 0.605735 | dhurum |
cd6162f33413350cb662754cf811f406bd2d4755 | 5,767 | hpp | C++ | include/uit/ducts/proc/impl/backend/AggregatedBackEnd.hpp | rodsan0/conduit | b24935a9016077b763fe2f22f403cae356e70a41 | [
"MIT"
] | null | null | null | include/uit/ducts/proc/impl/backend/AggregatedBackEnd.hpp | rodsan0/conduit | b24935a9016077b763fe2f22f403cae356e70a41 | [
"MIT"
] | null | null | null | include/uit/ducts/proc/impl/backend/AggregatedBackEnd.hpp | rodsan0/conduit | b24935a9016077b763fe2f22f403cae356e70a41 | [
"MIT"
] | null | null | null | #pragma once
#ifndef UIT_DUCTS_PROC_IMPL_BACKEND_AGGREGATEDBACKEND_HPP_INCLUDE
#define UIT_DUCTS_PROC_IMPL_BACKEND_AGGREGATEDBACKEND_HPP_INCLUDE
#include "../../../../../../third-party/Empirical/include/emp/base/vector.hpp"
#include "../../../../../uitsl/datastructs/VectorMap.hpp"
#include "../../../../setup/InterPr... | 26.948598 | 81 | 0.650251 | rodsan0 |
cd6db012b8417fc5e0dd8e04726a089e86cf3588 | 3,403 | cpp | C++ | src/common/datatypes/test/DateTest.cpp | wenhaocs/nebula | 326b856cdf44fcaf67d3883073dc9412a9e3eebd | [
"Apache-2.0"
] | 8,586 | 2019-05-15T07:25:51.000Z | 2022-03-31T13:49:27.000Z | src/common/datatypes/test/DateTest.cpp | wenhaocs/nebula | 326b856cdf44fcaf67d3883073dc9412a9e3eebd | [
"Apache-2.0"
] | 3,078 | 2019-05-15T08:14:02.000Z | 2022-03-31T11:39:51.000Z | src/common/datatypes/test/DateTest.cpp | wenhaocs/nebula | 326b856cdf44fcaf67d3883073dc9412a9e3eebd | [
"Apache-2.0"
] | 880 | 2019-05-15T07:36:10.000Z | 2022-03-31T03:43:02.000Z | /* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include <gtest/gtest.h>
#include "common/base/Base.h"
#include "common/datatypes/Date.h"
namespace nebula {
TEST(Date, DaysConversion) {
Date a;
EXPECT_EQ(11968512, a.toInt());
Date b(11968... | 23.14966 | 57 | 0.547458 | wenhaocs |
cd6dcbfe735974249b36322fdf3f06e630800823 | 1,262 | cc | C++ | lib/tsan/rtl/tsan_printf.cc | SaleJumper/android-source-browsing.platform--external--compiler-rt | 1f922a5259510f70a12576e7a61eaa0033a02b16 | [
"MIT"
] | 16 | 2015-09-08T08:49:11.000Z | 2019-07-20T14:46:20.000Z | src/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_printf.cc | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2019-02-10T08:27:48.000Z | 2019-02-10T08:27:48.000Z | src/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_printf.cc | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 7 | 2016-05-26T17:31:46.000Z | 2020-11-04T06:39:23.000Z | //===-- tsan_printf.cc ----------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 30.780488 | 80 | 0.573693 | SaleJumper |
cd71217cc17d9f758f836b12de22d0f845ce92bb | 5,305 | hpp | C++ | NeuKaDiS/KaDiS/include/RQuick/RQuick.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | null | null | null | NeuKaDiS/KaDiS/include/RQuick/RQuick.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | null | null | null | NeuKaDiS/KaDiS/include/RQuick/RQuick.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | 1 | 2019-10-16T06:13:28.000Z | 2019-10-16T06:13:28.000Z | /*****************************************************************************
* This file is part of the Project Karlsruhe Distributed Sorting Library
* (KaDiSo).
*
* Copyright (c) 2019, Michael Axtmann <michael.axtmann@kit.edu>
*
* This program is free software: you can redistribute it and/or modify it under
*... | 39.296296 | 96 | 0.680867 | bingmann |
cd76e1ae6f4665e8165dbf6f8ec486bdf062aad8 | 3,046 | hpp | C++ | include/NUnit/Framework/Internal/Commands/TestActionItem.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/NUnit/Framework/Internal/Commands/TestActionItem.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/NUnit/Framework/Internal/Commands/TestActionItem.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp"
#include "extern/b... | 47.59375 | 160 | 0.717663 | darknight1050 |
cd76fe9ee98ef3657147c448d7e5db1e74159651 | 1,154 | cpp | C++ | src/Main.cpp | zoumson/RoadLaneDetection | c9fdf42b627350857465d78d9838fee64fb0c949 | [
"Unlicense",
"MIT"
] | null | null | null | src/Main.cpp | zoumson/RoadLaneDetection | c9fdf42b627350857465d78d9838fee64fb0c949 | [
"Unlicense",
"MIT"
] | null | null | null | src/Main.cpp | zoumson/RoadLaneDetection | c9fdf42b627350857465d78d9838fee64fb0c949 | [
"Unlicense",
"MIT"
] | null | null | null | #include "LaneDetector.hpp"
#include "ShowRoadLane.hpp"
int main(int argc, char *argv[])
{
cv::String keys =
"{v video |<none> | input video path}"
"{d delay |30 | delay between two frames}"
"{help h usage ?... | 25.644444 | 87 | 0.528596 | zoumson |
cd78acd3155785013df90cc7620def076136c217 | 586 | cpp | C++ | Problem Solving/Algorithms/Warmup/Solve Me First/solve me first.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | 108 | 2021-03-29T05:04:16.000Z | 2022-03-19T15:11:52.000Z | Problem Solving/Algorithms/Warmup/Solve Me First/solve me first.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | null | null | null | Problem Solving/Algorithms/Warmup/Solve Me First/solve me first.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | 32 | 2021-03-30T03:56:54.000Z | 2022-03-27T14:41:32.000Z | /* Author: Isaac Asante
* HackerRank URL for this exercise: https://www.hackerrank.com/challenges/solve-me-first/problem
* Original video explanation: https://www.youtube.com/watch?v=y_klHpkyImc
* Last verified on: 16 February, 2021
*/
/* IMPORTANT:
* This is the full code.
* It includes the needed header (iost... | 21.703704 | 97 | 0.694539 | IsaacAsante |
cd86cc2facce04cc90af7b957370614ea0a04114 | 90,524 | cpp | C++ | Source/ExtSupport/PHP4/Variables.cpp | jadu/Phalanger | 41c3fc0da98f9120bcb92ca310f4abeac4e4b993 | [
"Apache-2.0"
] | null | null | null | Source/ExtSupport/PHP4/Variables.cpp | jadu/Phalanger | 41c3fc0da98f9120bcb92ca310f4abeac4e4b993 | [
"Apache-2.0"
] | null | null | null | Source/ExtSupport/PHP4/Variables.cpp | jadu/Phalanger | 41c3fc0da98f9120bcb92ca310f4abeac4e4b993 | [
"Apache-2.0"
] | null | null | null | //
// ExtSupport.PHP4 - substitute for php4ts.dll
//
// Variables.cpp
// - contains definitions of variables related functions
//
#include "stdafx.h"
#include "Variables.h"
#include "Helpers.h"
#include "ExtSupport.h"
#include "Memory.h"
#include "Errors.h"
#include "Hash.h"
#include "Resources.h"
#inc... | 25.328483 | 204 | 0.609673 | jadu |
cd87097c1497e68a59a630823f4e4383b7c6a755 | 4,623 | hpp | C++ | src/conf2corr.hpp | KazuhitoT/wlce | 0ec6551340756f46f7cc634576af63e1cc81bba8 | [
"MIT"
] | null | null | null | src/conf2corr.hpp | KazuhitoT/wlce | 0ec6551340756f46f7cc634576af63e1cc81bba8 | [
"MIT"
] | null | null | null | src/conf2corr.hpp | KazuhitoT/wlce | 0ec6551340756f46f7cc634576af63e1cc81bba8 | [
"MIT"
] | null | null | null | #ifndef CONF2CORR_HPP
#define CONF2CORR_HPP
#include <string>
#include <map>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <typeinfo>
#include <fstream>
#include <iostream>
#include <functional>
#include <boost/algorithm/string.hpp>
#include <Eigen/Core>
#include <Eigen/LU>
#include <unordered_map>
#in... | 35.022727 | 113 | 0.720311 | KazuhitoT |
cd876b48958483b092674a4f1f901114cfa3daa0 | 7,424 | cpp | C++ | libraries/Serial_CAN_Arduino-master/Serial_CAN_Module.cpp | RIAEvangelist/zero-motorcycle-canbus | 2d9cac6d87b9c9a3a7028e46b2a0dc28d6cd70c8 | [
"MIT"
] | 3 | 2022-01-24T08:18:15.000Z | 2022-03-24T00:16:22.000Z | libraries/Serial_CAN_Arduino-master/Serial_CAN_Module.cpp | RIAEvangelist/SCv2-sketches | 9d46eeea0bd768dd70309d4567d178420973b9a3 | [
"MIT"
] | null | null | null | libraries/Serial_CAN_Arduino-master/Serial_CAN_Module.cpp | RIAEvangelist/SCv2-sketches | 9d46eeea0bd768dd70309d4567d178420973b9a3 | [
"MIT"
] | 4 | 2022-01-23T22:02:48.000Z | 2022-03-10T12:26:54.000Z | // ID3 ID2 ID1 ID0 EXT RTR DTA0 DTA1 DTA2 DTA3 DTA4 DTA5 DTA6 DTA7
#include <Serial_CAN_Module.h>
#include <SoftwareSerial.h>
SoftwareSerial *canSerial = NULL;
void Serial_CAN::begin(int can_tx, int can_rx, unsigned long baud)
{
canSerial = new SoftwareSerial(can_tx, can_rx);
canSerial->begin(baud);
}
unsig... | 21.581395 | 122 | 0.467672 | RIAEvangelist |
cd8880aada072c747233706113a7d5b900614445 | 25,700 | cpp | C++ | bulletgba/generator/data/code/daiouzyou/hibachi_3.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/daiouzyou/hibachi_3.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/daiouzyou/hibachi_3.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | // XXX uniqID XXX 164d34181c36e7c8bcd92a91a71cbd7b XXX
#include <gba_types.h>
#include "bullet.hpp"
#include "fixed.hpp"
#include "daiouzyou/hibachi_3.hpp"
extern const BulletStepFunc bullet_877386123ccee0a1567afc7a277e70fd_164d34181c36e7c8bcd92a91a71cbd7b[] = {
stepfunc_a865c6c8b44585d6739ff7b1938fd90f_164d3418... | 74.492754 | 363 | 0.907588 | pqrs-org |
cd8da4416ec0504b55cf8874406df5648b322f58 | 9,993 | cpp | C++ | dali/security/dacaplib.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | dali/security/dacaplib.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | dali/security/dacaplib.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | 28.308782 | 91 | 0.593315 | oxhead |
cd915f0f7307e0dc9e841055e748aee793a683d4 | 3,630 | cc | C++ | src/previewer.cc | Shao-Group/altai | 27c21affe076849e6edb3957f2a77ece5726f3a1 | [
"BSD-3-Clause"
] | 2 | 2021-11-07T23:25:16.000Z | 2021-12-11T02:21:36.000Z | src/previewer.cc | Shao-Group/altai | 27c21affe076849e6edb3957f2a77ece5726f3a1 | [
"BSD-3-Clause"
] | null | null | null | src/previewer.cc | Shao-Group/altai | 27c21affe076849e6edb3957f2a77ece5726f3a1 | [
"BSD-3-Clause"
] | null | null | null | /*
Part of Scallop Transcript Assembler
(c) 2017 by Mingfu Shao, Carl Kingsford, and Carnegie Mellon University.
Part of Altai
(c) 2021 by Xiaofei Carl Zang, Mingfu Shao, and The Pennsylvania State University.
See LICENSE for licensing.
*/
#include <cstdio>
#include <cassert>
#include <sstream>
#include <cstring>
#in... | 30 | 157 | 0.585399 | Shao-Group |
cd97c9e55d0289725d1973eb2861de3935239c2c | 6,534 | cpp | C++ | EGLX11Display.cpp | vatjjar/EGLBenchmark | 2ba381fe2d7f03b4a965872ff0ac780460600c9b | [
"Apache-2.0"
] | 3 | 2015-02-11T16:49:18.000Z | 2021-11-12T23:08:54.000Z | EGLX11Display.cpp | vatjjar/EGLBenchmark | 2ba381fe2d7f03b4a965872ff0ac780460600c9b | [
"Apache-2.0"
] | null | null | null | EGLX11Display.cpp | vatjjar/EGLBenchmark | 2ba381fe2d7f03b4a965872ff0ac780460600c9b | [
"Apache-2.0"
] | null | null | null |
/* EGLBenchmark
*
* Author: Jarkko Vatjus-Anttila <jvatjusanttila@gmail.com>
*
* For conditions of distribution and use, see copyright notice in license.txt
*/
#include "EGLX11Display.h"
#include "DebugLog.h"
#include "GLWrapper.h"
#include <vector>
#include <iostream>
#include <fstream>
#include <sys/stat.h>
... | 28.657895 | 96 | 0.646771 | vatjjar |
cd9b4b2409011dee96891c47589ef40b3d5cc250 | 728 | cpp | C++ | level_zero/core/test/unit_tests/mocks/mock_cmdqueue.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | null | null | null | level_zero/core/test/unit_tests/mocks/mock_cmdqueue.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | null | null | null | level_zero/core/test/unit_tests/mocks/mock_cmdqueue.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/core/test/unit_tests/mocks/mock_cmdqueue.h"
#include "shared/source/device/device.h"
namespace L0 {
namespace ult {
WhiteBox<::L0::CommandQueue>::WhiteBox(L0::Device *device, NEO::CommandStreamReceiver *cs... | 24.266667 | 128 | 0.710165 | lukaszgotszaldintel |
cda22f9309780ba94f3dc0740061e1176219b075 | 3,797 | hpp | C++ | include/utils/Misc.hpp | lgruelas/Graph | 079ec1d42a30e66c47ecbce1228b6581ca56cf34 | [
"MIT"
] | 7 | 2016-08-25T07:42:10.000Z | 2019-10-30T09:05:29.000Z | include/utils/Misc.hpp | lgruelas/Graph | 079ec1d42a30e66c47ecbce1228b6581ca56cf34 | [
"MIT"
] | 1 | 2018-08-16T20:38:26.000Z | 2018-08-16T22:11:32.000Z | include/utils/Misc.hpp | lgruelas/Graph | 079ec1d42a30e66c47ecbce1228b6581ca56cf34 | [
"MIT"
] | 10 | 2018-01-31T15:10:16.000Z | 2018-08-16T18:15:20.000Z | #pragma once
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <numeric>
#include <queue>
#include <unordered_map>
//////////////////////////////////////////
/// \brief This is what operator%should be but isn't (!).
///
/// C++ modulo operator%is dumb for negative integers: (-7)%3 returns -1,
/// inste... | 21.094444 | 76 | 0.519621 | lgruelas |
cda3f26357b3f9a832d070854ab0c42f043f90b3 | 4,445 | cpp | C++ | dbms/src/Functions/intDiv.cpp | unegare/ClickHouse | ebe70f5bcb6385274cee3ad75e5a0e5580bf8936 | [
"Apache-2.0"
] | null | null | null | dbms/src/Functions/intDiv.cpp | unegare/ClickHouse | ebe70f5bcb6385274cee3ad75e5a0e5580bf8936 | [
"Apache-2.0"
] | null | null | null | dbms/src/Functions/intDiv.cpp | unegare/ClickHouse | ebe70f5bcb6385274cee3ad75e5a0e5580bf8936 | [
"Apache-2.0"
] | null | null | null | #include <Functions/FunctionFactory.h>
#include <Functions/FunctionBinaryArithmetic.h>
#include <Functions/intDiv.h>
#ifdef __SSE2__
#define LIBDIVIDE_USE_SSE2 1
#endif
#include <libdivide.h>
namespace DB
{
/// Optimizations for integer division by a constant.
template <typename A, typename B>
struct DivideIn... | 43.578431 | 141 | 0.731834 | unegare |
cda4924a0e3d381b9844db967329acdfcbd43813 | 9,956 | cpp | C++ | source/dxsubfilter/registryhelpers.cpp | sidaddi/dxsubfilter | c9e2c7b2b3005573ae86fa3c9c04ecdf160fef9f | [
"BSD-2-Clause"
] | null | null | null | source/dxsubfilter/registryhelpers.cpp | sidaddi/dxsubfilter | c9e2c7b2b3005573ae86fa3c9c04ecdf160fef9f | [
"BSD-2-Clause"
] | null | null | null | source/dxsubfilter/registryhelpers.cpp | sidaddi/dxsubfilter | c9e2c7b2b3005573ae86fa3c9c04ecdf160fef9f | [
"BSD-2-Clause"
] | null | null | null | // Registry functions. Configuration data is stored in HCKU/Software/dxsubfilter
#include "stdafx.h"
#include "registryhelpers.h"
namespace DXSubFilter
{
// Hardcoded registry paths and value names
const wchar_t* DXSUBFILTER_SUBKEY_NAME = L"Software\\dxsubfilter";
const wchar_t* REGVALUE_SUBTITLE_BUFFER_S... | 38 | 132 | 0.751908 | sidaddi |
cdb5ef05bd28cca945299ff58f9abd4fcd510620 | 717 | cpp | C++ | tests/test_uci_application.cpp | shepi13/shepichess | 5f608a98a03fb6465a7b75dbc956cd5221427513 | [
"MIT"
] | null | null | null | tests/test_uci_application.cpp | shepi13/shepichess | 5f608a98a03fb6465a7b75dbc956cd5221427513 | [
"MIT"
] | null | null | null | tests/test_uci_application.cpp | shepi13/shepichess | 5f608a98a03fb6465a7b75dbc956cd5221427513 | [
"MIT"
] | null | null | null | #include "uci_application.h"
#include <sstream>
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
using Catch::Matchers::Contains;
using Catch::Matchers::EndsWith;
TEST_CASE("uci_application command uci", "[application]")
{
std::stringstream in {"uci\nquit\n"};
std::st... | 25.607143 | 84 | 0.705718 | shepi13 |
cdbb0b58901bffe0c6066b3f298a31cd86bc99d6 | 12,207 | cpp | C++ | isis/src/qisis/objs/IndependentCubeViewport/IndependentCubeViewport.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/src/qisis/objs/IndependentCubeViewport/IndependentCubeViewport.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/src/qisis/objs/IndependentCubeViewport/IndependentCubeViewport.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0... | 24.076923 | 85 | 0.578275 | kdl222 |
cdbb5dcd9a90a167076615de8d6cf91fb252c047 | 5,628 | cpp | C++ | tests/Messages.cpp | tswow/ClientExtensions | 21e3cec8dbb830a490f76d982314ae849ebaaf17 | [
"MIT"
] | null | null | null | tests/Messages.cpp | tswow/ClientExtensions | 21e3cec8dbb830a490f76d982314ae849ebaaf17 | [
"MIT"
] | null | null | null | tests/Messages.cpp | tswow/ClientExtensions | 21e3cec8dbb830a490f76d982314ae849ebaaf17 | [
"MIT"
] | null | null | null | #include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_all.hpp >
#include "MessageWrite.h"
#include "MessageRead.h"
#include <iostream>
TEST_CASE("[MessageBase] initialize") {
SECTION("with chunkSize=1 and size=0") {
MessageWrite message(sizeof(MessageHeader) + 1, 0);
SECTION("has ... | 30.754098 | 77 | 0.598436 | tswow |
cdbca8ca4c6fd9bbd34975435070d6682a4405e0 | 1,037 | cpp | C++ | CCO/cco10p3.cpp | aaronwng/competitive-programming-solutions | 60c463e6d71ef8116548045b25bd4b09f0e57188 | [
"MIT"
] | null | null | null | CCO/cco10p3.cpp | aaronwng/competitive-programming-solutions | 60c463e6d71ef8116548045b25bd4b09f0e57188 | [
"MIT"
] | null | null | null | CCO/cco10p3.cpp | aaronwng/competitive-programming-solutions | 60c463e6d71ef8116548045b25bd4b09f0e57188 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef
tree<pair<int,int>,null_type,less<pair<int,int>>,rb_tree_tag,
tree_order_statistics_node_update> set_t;
const int MAXN = 1e6+1;
int a[MAXN];
int main() {
i... | 23.568182 | 66 | 0.443587 | aaronwng |
cdbede79386beccc914de45c121f946eec1b128f | 273 | cpp | C++ | C++/INICIANTE/Sequencia IJ 4/1098.cpp | Almeida154/URI-ONLINE-JUDGE | 287acefdcd3f1a961a6f8d4e3298e668ea2d3ef8 | [
"MIT"
] | null | null | null | C++/INICIANTE/Sequencia IJ 4/1098.cpp | Almeida154/URI-ONLINE-JUDGE | 287acefdcd3f1a961a6f8d4e3298e668ea2d3ef8 | [
"MIT"
] | null | null | null | C++/INICIANTE/Sequencia IJ 4/1098.cpp | Almeida154/URI-ONLINE-JUDGE | 287acefdcd3f1a961a6f8d4e3298e668ea2d3ef8 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
float i=0, j=1;
while(i<=2.1){
cout<<"I="<<i<<" J="<<j+i<<endl;
cout<<"I="<<i<<" J="<<j+1+i<<endl;
cout<<"I="<<i<<" J="<<j+2+i<<endl;
i+= 0.2;
}
return 0;
}
| 21 | 46 | 0.391941 | Almeida154 |
cdc057bde92b58f0abb96cac4e8e85c2c03daef6 | 2,410 | cpp | C++ | AtCoder/ABC154/F.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | AtCoder/ABC154/F.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | AtCoder/ABC154/F.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | #include <algorithm>
#include <boost/optional.hpp>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iostream>
#include <limits>
#include <list>
#include <numeric>
#include <queue>
#include <sstream>
#include <string>
#include <tuple>
#include <type_traits>
#includ... | 21.517857 | 76 | 0.590456 | arlechann |
02cb73b885d7f104101b7c5aeed1d97a6ab83e2a | 973 | hpp | C++ | include/generic/geometry/bounded_domain_1.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | 4 | 2022-01-06T14:06:03.000Z | 2022-01-07T01:13:58.000Z | include/generic/geometry/bounded_domain_1.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | null | null | null | include/generic/geometry/bounded_domain_1.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "domain_1.hpp"
#include "../math/range_1.hpp"
namespace gfx {
namespace generic {
template <typename float_system>
class bounded_domain_1 : public domain_1<float_system>, public range_1<float_system> {
public:
typedef typename float_system::float_t float_t;
typedef range_1<float_system>... | 23.731707 | 90 | 0.697842 | shikanle |
02cd4249d3a6c7cc71ed93cc06ee8131f666dee8 | 2,040 | cc | C++ | word/mine/0.1/scanner.cc | bishop986/CompileConstruction | d35d57dec97a398fe999b8756fd5c229d98324c1 | [
"MIT"
] | 2 | 2018-04-22T09:35:36.000Z | 2018-05-01T05:56:21.000Z | word/mine/0.1/scanner.cc | bishop986/CompileConstruction | d35d57dec97a398fe999b8756fd5c229d98324c1 | [
"MIT"
] | null | null | null | word/mine/0.1/scanner.cc | bishop986/CompileConstruction | d35d57dec97a398fe999b8756fd5c229d98324c1 | [
"MIT"
] | null | null | null | /*
* Time: 2018.4.19
* Author: bishop986
* Instruction:
* 简单词法分析,匹配[a-zA-Z_]([a-zA-Z_]|[0-9a-zA-Z_])*
*/
#include <iostream>
#include <string>
#include <vector>
#include <cstdio>
int main( int argc, char** argv)
{
// 图方便直接用了容器
// 据说流操作比较慢,所以用了文件指针,不过我觉得小文件应该感觉不出来
::std::FILE *fp = NULL;
::std::string tmp_Ide... | 21.030928 | 84 | 0.555882 | bishop986 |
02d05870f4ed960c0ecaa15236f084f5512adb60 | 589 | hpp | C++ | ql/math/integrals/all.hpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | null | null | null | ql/math/integrals/all.hpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | null | null | null | ql/math/integrals/all.hpp | quantosaurosProject/quantLib | 84b49913d3940cf80d6de8f70185867373f45e8d | [
"BSD-3-Clause"
] | 1 | 2022-03-29T05:44:27.000Z | 2022-03-29T05:44:27.000Z | /* This file is automatically generated; do not edit. */
/* Add the files to be included into Makefile.am instead. */
#include <ql/math/integrals/gausslobattointegral.hpp>
#include <ql/math/integrals/gaussianorthogonalpolynomial.hpp>
#include <ql/math/integrals/gaussianquadratures.hpp>
#include <ql/math/integrals/... | 42.071429 | 61 | 0.796265 | quantosaurosProject |
02d0c9962a297c9b3ec5438055eb27d7fe9b5b2a | 16,734 | cpp | C++ | src/engine/CountAvailablePredicates.cpp | graue70/QLever | 2cc44a1bb595fae05e0897715a7bb88619a1b4d1 | [
"Apache-2.0"
] | 55 | 2018-03-21T22:26:11.000Z | 2021-09-06T18:19:54.000Z | src/engine/CountAvailablePredicates.cpp | graue70/QLever | 2cc44a1bb595fae05e0897715a7bb88619a1b4d1 | [
"Apache-2.0"
] | 261 | 2018-03-13T11:27:44.000Z | 2021-09-13T15:27:01.000Z | src/engine/CountAvailablePredicates.cpp | graue70/QLever | 2cc44a1bb595fae05e0897715a7bb88619a1b4d1 | [
"Apache-2.0"
] | 17 | 2018-03-30T13:47:32.000Z | 2021-08-13T16:14:39.000Z | // Copyright 2018, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: Florian Kramer (florian.kramer@neptun.uni-freiburg.de)
#include "./CountAvailablePredicates.h"
#include "./CallFixedSize.h"
// _____________________________________________________________________________
CountAvailable... | 41.835 | 199 | 0.691885 | graue70 |
02d450efa0fea0f95443f74715c79596555dd007 | 383 | cpp | C++ | Code full house/bt buoi 3 - nguyen dinh trung duc/bai 16 bai tap vong lap.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/bt buoi 3 - nguyen dinh trung duc/bai 16 bai tap vong lap.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/bt buoi 3 - nguyen dinh trung duc/bai 16 bai tap vong lap.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | /* bai 16 dem so luong chu so cua n la so nguyen to */
#include<stdio.h>
#include<math.h>
int check (int n){
int i;
if (n<2) return 0;
for (i=2; i<=sqrt(n); i++){
if(n%i==0) return 0;
}
return 1;
}
int main(){
int temp;
long long n;
int count=0;
scanf ("%lld", &n);
while (n!=0){
temp=n%10;
if (check(t... | 14.185185 | 54 | 0.553525 | ducyb2001 |
02d565a00d908d0618b9392626a7940d42687cbf | 3,246 | cc | C++ | gneis-geant4/test/src/isnp/facility/Beam5MessengerTest.cc | andrey-nakin/gneis-geant4 | 6def0304b5664a5dafdcfd58344ad2006ef44d62 | [
"MIT"
] | null | null | null | gneis-geant4/test/src/isnp/facility/Beam5MessengerTest.cc | andrey-nakin/gneis-geant4 | 6def0304b5664a5dafdcfd58344ad2006ef44d62 | [
"MIT"
] | null | null | null | gneis-geant4/test/src/isnp/facility/Beam5MessengerTest.cc | andrey-nakin/gneis-geant4 | 6def0304b5664a5dafdcfd58344ad2006ef44d62 | [
"MIT"
] | null | null | null | #include <G4SystemOfUnits.hh>
#include <G4UImanager.hh>
#include <gtest/gtest.h>
#include <isnp/facility/Beam5.hh>
namespace isnp {
namespace facility {
TEST(Beam5Messenger, SetXAngle) {
auto const uiManager = G4UImanager::GetUIpointer();
EXPECT_EQ(0, uiManager->ApplyCommand("/isnp/facility beam5"));
auto con... | 28.982143 | 77 | 0.739372 | andrey-nakin |
02db8e6adc2a2a58be6ced6880a04b6b56ccd12b | 2,571 | cpp | C++ | Linked Lists/MEDIUM/Delete nodes having greater value on right - MED.cpp | shresth12-jain/HacktoberFest2021 | 43bd5d99668c104f89f3efef5313e4ddadd9931a | [
"Apache-2.0"
] | 40 | 2021-09-25T04:50:35.000Z | 2021-11-08T12:47:52.000Z | Linked Lists/MEDIUM/Delete nodes having greater value on right - MED.cpp | shresth12-jain/HacktoberFest2021 | 43bd5d99668c104f89f3efef5313e4ddadd9931a | [
"Apache-2.0"
] | 37 | 2021-10-01T06:54:01.000Z | 2021-10-20T18:02:31.000Z | Linked Lists/MEDIUM/Delete nodes having greater value on right - MED.cpp | shresth12-jain/HacktoberFest2021 | 43bd5d99668c104f89f3efef5313e4ddadd9931a | [
"Apache-2.0"
] | 213 | 2021-09-24T06:27:35.000Z | 2021-10-31T17:59:38.000Z | /*
Delete nodes having greater value on right
Medium Accuracy: 37.92% Submissions: 46999 Points: 4
Given a singly linked list, remove all the nodes which have a greater value on its following nodes.
Example 1:
Input:
LinkedList = 12->15->10->11->5->6->2->3
Output: 15 11 6 3
Explanation: Since, 12, 10, 5 ... | 18.496403 | 151 | 0.534811 | shresth12-jain |
02e078e64279a1bc2438d22c4defb54f26ea56de | 3,359 | cpp | C++ | utils/sphericalmercator.cpp | nutstick/3d-path-navigation | 344618f505af1a9c8870fdbc2269777030e6ff61 | [
"MIT"
] | null | null | null | utils/sphericalmercator.cpp | nutstick/3d-path-navigation | 344618f505af1a9c8870fdbc2269777030e6ff61 | [
"MIT"
] | null | null | null | utils/sphericalmercator.cpp | nutstick/3d-path-navigation | 344618f505af1a9c8870fdbc2269777030e6ff61 | [
"MIT"
] | null | null | null | #include "sphericalmercator.h"
#include <QtMath>
SphericalMercator::SphericalMercator(float size)
: m_size(int(size))
{
for (int i = 0; i < 30; i++) {
Bc.push_back(size / 360.0f);
Cc.push_back(size / (2.0f * M_PI));
zc.push_back(size / 2.0f);
Ac.push_back(size);
size = s... | 28.709402 | 100 | 0.60911 | nutstick |
02e0aba3d8056081678623fac5e6e701324c3d2b | 2,879 | cpp | C++ | src/ugawg_cone_cone.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 44 | 2019-01-23T03:37:18.000Z | 2021-08-24T02:20:29.000Z | src/ugawg_cone_cone.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 67 | 2019-01-29T15:35:42.000Z | 2021-08-17T20:42:40.000Z | src/ugawg_cone_cone.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 29 | 2019-01-14T21:33:32.000Z | 2021-08-10T11:35:24.000Z | #include <Omega_h_adapt.hpp>
#include <Omega_h_cmdline.hpp>
#include <Omega_h_file.hpp>
#include <Omega_h_library.hpp>
#include <Omega_h_mesh.hpp>
#include <Omega_h_metric.hpp>
#ifdef OMEGA_H_USE_EGADS
#include <Omega_h_egads.hpp>
#endif
#include <iostream>
static void compute_implied_metric(Omega_h::Mesh* mesh) {
... | 34.686747 | 75 | 0.691907 | joshia5 |
02e1d921a79c46a498e30ec5b84197e023c6e4e7 | 1,316 | cpp | C++ | LG/P3501.cpp | ImChinaNB/code | 9c6940093cb480bd381c17557db87078e0efd740 | [
"MIT"
] | null | null | null | LG/P3501.cpp | ImChinaNB/code | 9c6940093cb480bd381c17557db87078e0efd740 | [
"MIT"
] | null | null | null | LG/P3501.cpp | ImChinaNB/code | 9c6940093cb480bd381c17557db87078e0efd740 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define Rn(a, n) a + 1, a + n + 1
typedef long long ll;
const int N = 5e5 + 5;
const ll P = 1e9 + 7;
namespace U {
inline ll retR() {
ll ret(0), c(0); bool neg(0); while (!isdigit(c = getchar())) neg = c == '-';
ret = c - '0'; while (isdigit(c = getchar())) ret ... | 24.37037 | 118 | 0.452128 | ImChinaNB |
02e33aa7d4c8e56d34b500da3759b8a42d75021a | 516 | cpp | C++ | src/array19.lib/array19/Zip.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | 8 | 2020-05-31T16:13:13.000Z | 2022-01-12T08:52:42.000Z | src/array19.lib/array19/Zip.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | null | null | null | src/array19.lib/array19/Zip.test.cpp | Fettpet/co-cpp19 | 928a835c4f66032aa88ce01df7899da86d37df22 | [
"MIT"
] | 2 | 2020-07-21T10:58:28.000Z | 2021-07-26T06:52:05.000Z | #include "Array.h"
#include "Zip.h"
using namespace array19;
void constexpr_Zip_test() {
constexpr auto sum = [] {
auto a = Array{1, 2, 3};
unsigned b[] = {4, 5, 6};
auto r = 0;
#ifdef _MSC_VER
auto z = Zip{a, b}; // cl crashes if we inline this && run it as constexpr
for (... | 22.434783 | 82 | 0.478682 | Fettpet |
02e7da742b3b2d355336b32006135b039c34e773 | 1,552 | cpp | C++ | Assignment 1/Day.cpp | wstern1234/COMSC-210 | e57605c4362f1bd1f67754a0f4de66c7b13f649a | [
"MIT"
] | null | null | null | Assignment 1/Day.cpp | wstern1234/COMSC-210 | e57605c4362f1bd1f67754a0f4de66c7b13f649a | [
"MIT"
] | null | null | null | Assignment 1/Day.cpp | wstern1234/COMSC-210 | e57605c4362f1bd1f67754a0f4de66c7b13f649a | [
"MIT"
] | null | null | null | // Filename: Day.cpp
// Description: implementation file for Day class
// Author: Wills Stern
#include "Day.h"
using namespace std;
// default constructor
Day::Day() {
day = "Monday";
}
// constructor with string d
Day::Day(string d) {
day = d;
}
// string array with all the days in t... | 18.698795 | 106 | 0.575387 | wstern1234 |
02e8d3a8e0eb431d0ec0a0f698ab491c78cc3491 | 8,411 | hpp | C++ | include/boost/pfr/flat/functors.hpp | Kojoley/magic_get | b0229248de7ee4bc775e6421eb4a9925a902cabc | [
"BSL-1.0"
] | 1 | 2020-03-19T23:54:49.000Z | 2020-03-19T23:54:49.000Z | include/boost/pfr/flat/functors.hpp | Kojoley/magic_get | b0229248de7ee4bc775e6421eb4a9925a902cabc | [
"BSL-1.0"
] | null | null | null | include/boost/pfr/flat/functors.hpp | Kojoley/magic_get | b0229248de7ee4bc775e6421eb4a9925a902cabc | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2016-2018 Antony Polukhin
//
// 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 BOOST_PFR_FLAT_FUNCTORS_HPP
#define BOOST_PFR_FLAT_FUNCTORS_HPP
#pragma once
#include <boost/pfr/detail/config.... | 35.944444 | 153 | 0.669599 | Kojoley |
02eaaea0d0c828b949fea4ce10c8f5d1f115cb7e | 467 | hpp | C++ | sprout/index_tuple/metafunction.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/index_tuple/metafunction.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/index_tuple/metafunction.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_INDEX_TUPLE_METAFUNCTION_HPP
#define SPROUT_INDEX_TUPLE_METAFUNCTION_HPP
#include <sprout/config.hpp>
#include <sprout/index_tuple/make_integer_seq.hpp>
#include <sprout/index_tuple/make_index_tuple.hpp>
#include <sprout/index_tuple/integer_range.hpp>
#include <sprout/index_tuple/index_range.hpp>... | 35.923077 | 54 | 0.82227 | osyo-manga |
02eb0d7137b1171dc16f7ec0affe0d6fc61aa4b5 | 833 | cpp | C++ | DublinMaker2022/src/brick.cpp | fduignan/nrf52833 | af899809e7a84cbee4a7fc92057722c20285eb61 | [
"MIT"
] | 3 | 2019-10-21T13:46:18.000Z | 2020-09-25T14:54:39.000Z | DublinMaker2022/src/brick.cpp | fduignan/nrf52833 | af899809e7a84cbee4a7fc92057722c20285eb61 | [
"MIT"
] | null | null | null | DublinMaker2022/src/brick.cpp | fduignan/nrf52833 | af899809e7a84cbee4a7fc92057722c20285eb61 | [
"MIT"
] | 1 | 2022-03-05T19:34:21.000Z | 2022-03-05T19:34:21.000Z | #include <stdint.h>
#include "console.h"
#include "sprite.h"
#include "brick.h"
brick::brick( uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint16_t fillcolour)
{
this->Visible = 0;
define(x,y,w,h,fillcolour);
}
brick::brick()
{
this->Visible = 0;
}
void brick::define( uint16_t x, uint... | 18.108696 | 87 | 0.541417 | fduignan |
02f70d702152e97a165af5d5b851b595fa27cc7b | 4,666 | cpp | C++ | Source/Editor/EditorShell.cpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | Source/Editor/EditorShell.cpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | Source/Editor/EditorShell.cpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | /*
Copyright (c) 2018-2021 Piotr Doan. All rights reserved.
Software distributed under the permissive MIT License.
*/
#include "Editor/Precompiled.hpp"
#include "Editor/EditorShell.hpp"
#include "Editor/Modules/InputManagerEditor.hpp"
#include "Editor/Modules/GameInstanceEditor.hpp"
#include <Core/EngineMetric... | 28.108434 | 87 | 0.667167 | amitukind |
02ff1c895a3b6edb6f48640a64a9d46e1e6ab9f4 | 26,930 | cpp | C++ | src/hip_gl.cpp | Maetveis/hipamd | f5b5c4269ed9b250f9907fbdf412e2341846369e | [
"MIT"
] | null | null | null | src/hip_gl.cpp | Maetveis/hipamd | f5b5c4269ed9b250f9907fbdf412e2341846369e | [
"MIT"
] | null | null | null | src/hip_gl.cpp | Maetveis/hipamd | f5b5c4269ed9b250f9907fbdf412e2341846369e | [
"MIT"
] | null | null | null | /* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
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, mer... | 35.434211 | 130 | 0.672484 | Maetveis |
f300f10bffc5d46deeaa86744b1433100b110c18 | 360 | cc | C++ | Cpp_Primer/5rd/0318/producer_consumer/main.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | Cpp_Primer/5rd/0318/producer_consumer/main.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | Cpp_Primer/5rd/0318/producer_consumer/main.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | #include "ProducerThread.h"
#include "ConsumerThread.h"
#include "Buffer.h"
#include <iostream>
int main()
{
Buffer buffer(10);
Thread* pProducer = new ProducerThread(buffer);
Thread* pConsumer = new ConsumerThread(buffer);
pProducer->create();
pConsumer->create();
pProducer->join();
pConsumer->join();... | 16.363636 | 49 | 0.677778 | honeytavis |
f306e80a07f7a1a93f1b4a42b3ec1bef2a8bc38e | 929 | cpp | C++ | 8.3. Name Visibility/main.cpp | joaovmalheiros/Exercicios-Para-Revisao-Cplusplus | b9d523f863fd112b2b7fe72142a7128d5d95badc | [
"MIT"
] | null | null | null | 8.3. Name Visibility/main.cpp | joaovmalheiros/Exercicios-Para-Revisao-Cplusplus | b9d523f863fd112b2b7fe72142a7128d5d95badc | [
"MIT"
] | null | null | null | 8.3. Name Visibility/main.cpp | joaovmalheiros/Exercicios-Para-Revisao-Cplusplus | b9d523f863fd112b2b7fe72142a7128d5d95badc | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
//An inner block, because it is a different block, can re-utilize a name existing in an outer scope to refer
//to a different entity (only within the inner block)
int main()
{
int x = 10;
int y = 20;
{
int x; //ok, innter scope.
x = 50; //sets valu... | 32.034483 | 114 | 0.597417 | joaovmalheiros |
f30991fe888705f603ba36e77fe6cfd7bdbd3c31 | 1,002 | cpp | C++ | tests/src/test.cpp | pqrs-org/cpp-osx-kext_return | a640bd791ea316baa2b6114fa7976460f7c80e21 | [
"BSL-1.0"
] | 1 | 2019-08-16T03:30:09.000Z | 2019-08-16T03:30:09.000Z | tests/src/test.cpp | pqrs-org/cpp-osx-kext_return | a640bd791ea316baa2b6114fa7976460f7c80e21 | [
"BSL-1.0"
] | null | null | null | tests/src/test.cpp | pqrs-org/cpp-osx-kext_return | a640bd791ea316baa2b6114fa7976460f7c80e21 | [
"BSL-1.0"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <pqrs/osx/os_kext_return.hpp>
TEST_CASE("os_kext_return") {
{
pqrs::osx::os_kext_return r(kOSReturnSuccess);
REQUIRE(r.to_string() == "kOSReturnSuccess");
REQUIRE(r == true);
REQUIRE(r.success() == true);
REQUIRE(r.system_policy() ==... | 27.833333 | 60 | 0.650699 | pqrs-org |
f30d62eb69289c0cfda4a51150d80ca7715b3abb | 872 | cpp | C++ | test/tpce/test_tpce.cpp | RelationalAI-oss/duckdb | a4908ae17de3ac62d42633ada03077b8c3ead7a5 | [
"MIT"
] | 2 | 2020-01-07T17:19:02.000Z | 2020-01-09T22:04:04.000Z | test/tpce/test_tpce.cpp | RelationalAI-oss/duckdb | a4908ae17de3ac62d42633ada03077b8c3ead7a5 | [
"MIT"
] | null | null | null | test/tpce/test_tpce.cpp | RelationalAI-oss/duckdb | a4908ae17de3ac62d42633ada03077b8c3ead7a5 | [
"MIT"
] | 1 | 2019-09-06T09:58:14.000Z | 2019-09-06T09:58:14.000Z | #include "catch.hpp"
#include "test_helpers.hpp"
#include "tpce.hpp"
#include <chrono>
#include <iostream>
using namespace duckdb;
using namespace std;
TEST_CASE("Test TPC-E", "[tpce][.]") {
DuckDB db(nullptr);
Connection con(db);
// a higher scale factor for TPC-E means LESS data (for some reason)
// generate ... | 24.914286 | 75 | 0.663991 | RelationalAI-oss |
f319eeb6a5699fe7bbb53e53b19e469f85187627 | 4,738 | cc | C++ | src/Modules/Legacy/Fields/CollectFields.cc | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | 92 | 2015-02-09T22:42:11.000Z | 2022-03-25T09:14:50.000Z | src/Modules/Legacy/Fields/CollectFields.cc | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | 1,618 | 2015-01-05T19:39:13.000Z | 2022-03-27T20:28:45.000Z | src/Modules/Legacy/Fields/CollectFields.cc | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | 64 | 2015-02-20T17:51:23.000Z | 2021-11-19T07:08:08.000Z | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... | 27.546512 | 86 | 0.722035 | Haydelj |
f31c628411398a3944bfa587851ddd06ab54a525 | 583 | cpp | C++ | 2016/APP3/Q.6.cpp | HemensonDavid/Estudando-C | fb5a33b399b369dce789bf77c06834da71fe0a4d | [
"MIT"
] | null | null | null | 2016/APP3/Q.6.cpp | HemensonDavid/Estudando-C | fb5a33b399b369dce789bf77c06834da71fe0a4d | [
"MIT"
] | null | null | null | 2016/APP3/Q.6.cpp | HemensonDavid/Estudando-C | fb5a33b399b369dce789bf77c06834da71fe0a4d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int num;
while(num>=1 || num<=7){
cout<< "Digite um Numero de 1 a 7: ";
cin >> num;
if(num<1 || num>7){
cout<< "Numero invalido"<<endl;
return 1;
}
else if(num==1){
cout<< "Domingo"<< endl;
}else if(num==2){
cout<< "Segunda Feira"<< ... | 17.147059 | 39 | 0.536878 | HemensonDavid |
f31eb833419fb3c51f494bb9935e780c7ba26ff1 | 4,278 | cpp | C++ | common/tier4_localization_rviz_plugin/src/pose_history/pose_history_display.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 58 | 2021-11-30T09:03:46.000Z | 2022-03-31T15:25:17.000Z | common/tier4_localization_rviz_plugin/src/pose_history/pose_history_display.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 425 | 2021-11-30T02:24:44.000Z | 2022-03-31T10:26:37.000Z | common/tier4_localization_rviz_plugin/src/pose_history/pose_history_display.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 69 | 2021-11-30T02:09:18.000Z | 2022-03-31T15:38:29.000Z | // Copyright 2020 Tier IV, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 30.126761 | 97 | 0.737027 | meliketanrikulu |
f3216d724308d77d3ec18d41539f8d6781da5806 | 4,833 | cpp | C++ | loom/script/native/core/system/lmFunction.cpp | fireyang/LoomSDK | d18655b890a12f113e97a1545fb10a5afc9052d9 | [
"ECL-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | 1 | 2015-07-30T06:11:44.000Z | 2015-07-30T06:11:44.000Z | loom/script/native/core/system/lmFunction.cpp | fireyang/LoomSDK | d18655b890a12f113e97a1545fb10a5afc9052d9 | [
"ECL-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | null | null | null | loom/script/native/core/system/lmFunction.cpp | fireyang/LoomSDK | d18655b890a12f113e97a1545fb10a5afc9052d9 | [
"ECL-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | null | null | null | /*
* ===========================================================================
* Loom SDK
* Copyright 2011, 2012, 2013
* The Game Engine Company, 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 o... | 28.098837 | 148 | 0.557004 | fireyang |
f32869910d3741d426f693a54f19166def62247c | 9,054 | cpp | C++ | src/360SCVP/demo.cpp | yuyou/Immersive-Video-Sample | f0b74d2bd138cf81ddf10466d29f88fd492004fc | [
"BSD-3-Clause"
] | null | null | null | src/360SCVP/demo.cpp | yuyou/Immersive-Video-Sample | f0b74d2bd138cf81ddf10466d29f88fd492004fc | [
"BSD-3-Clause"
] | null | null | null | src/360SCVP/demo.cpp | yuyou/Immersive-Video-Sample | f0b74d2bd138cf81ddf10466d29f88fd492004fc | [
"BSD-3-Clause"
] | null | null | null | //
//#include <stdio.h>
#include <assert.h>
#include <iostream>
#include <string>
#include <fstream>
#include "360SCVPAPI.h"
using namespace std;
// extern "C" {
// #include "safestringlib/safe_mem_lib.h"
// }
#include <string.h>
#define memset_s(a, s, b) memset(a, b, s)
//#define memcpy_s(a, s, b) memcpy(a, b... | 34.823077 | 112 | 0.619505 | yuyou |
f32a6ac33d22eb646bd2200bc866974e6144f870 | 42,495 | cpp | C++ | platformio/src/fonts/font_montserrat_alphanum_12.cpp | th0mpy/simple_stepper_motor_analyzer | a8e6377aac78fe9a346e57819f1963a0ae52e446 | [
"CC0-1.0"
] | 218 | 2021-01-30T07:36:53.000Z | 2022-03-28T23:34:35.000Z | platformio/src/fonts/font_montserrat_alphanum_12.cpp | th0mpy/simple_stepper_motor_analyzer | a8e6377aac78fe9a346e57819f1963a0ae52e446 | [
"CC0-1.0"
] | 19 | 2021-04-17T12:45:07.000Z | 2022-03-03T22:38:48.000Z | platformio/src/fonts/font_montserrat_alphanum_12.cpp | th0mpy/simple_stepper_motor_analyzer | a8e6377aac78fe9a346e57819f1963a0ae52e446 | [
"CC0-1.0"
] | 38 | 2021-03-23T21:13:12.000Z | 2022-03-19T20:34:13.000Z | #include "lvgl.h"
/*******************************************************************************
* Size: 12 px
* Bpp: 4
* Opts:
******************************************************************************/
#ifndef FONT_MONTSERRAT_ALPHANUM_12
#define FONT_MONTSERRAT_ALPHANUM_12 1
#endif
#if FONT_MONTSERRAT_A... | 35.891047 | 125 | 0.470314 | th0mpy |
f338a16a6ec49a153c0c9a628d3103eaa187e121 | 1,108 | cpp | C++ | nodeConstructor/nodeDelegate/BoundingNodeDelegate/boundingnodedelegate.cpp | AlexScherba16/node-constructor | aed33514d077b5d8b2834110129b7a764b392979 | [
"MIT"
] | null | null | null | nodeConstructor/nodeDelegate/BoundingNodeDelegate/boundingnodedelegate.cpp | AlexScherba16/node-constructor | aed33514d077b5d8b2834110129b7a764b392979 | [
"MIT"
] | null | null | null | nodeConstructor/nodeDelegate/BoundingNodeDelegate/boundingnodedelegate.cpp | AlexScherba16/node-constructor | aed33514d077b5d8b2834110129b7a764b392979 | [
"MIT"
] | 1 | 2018-10-16T07:13:03.000Z | 2018-10-16T07:13:03.000Z | #include "boundingnodedelegate.h"
#include "ui_boundingnodedelegate.h"
#include "concreteNodes/bounding/boundingmodel.h"
#include <QMessageBox>
#include <QPushButton>
BoundingNodeDelegate::BoundingNodeDelegate(BoundingModel* model) :
QDialog(nullptr),
ui(new Ui::BoundingNodeDelegate)
{
ui->setupUi(this);
... | 29.157895 | 81 | 0.684116 | AlexScherba16 |
f33ebf58b04df25ee4b1f6abd66b66d916e07ccc | 5,376 | hpp | C++ | contracts/eosiolib/types.hpp | linapex/eos-chinese | 33539709c30940b6489cec1ed2d982ff76da5cc5 | [
"MIT"
] | null | null | null | contracts/eosiolib/types.hpp | linapex/eos-chinese | 33539709c30940b6489cec1ed2d982ff76da5cc5 | [
"MIT"
] | null | null | null | contracts/eosiolib/types.hpp | linapex/eos-chinese | 33539709c30940b6489cec1ed2d982ff76da5cc5 | [
"MIT"
] | null | null | null |
//<developer>
// <name>linapex 曹一峰</name>
// <email>linapex@163.com</email>
// <wx>superexc</wx>
// <qqgroup>128148617</qqgroup>
// <url>https://jsq.ink</url>
// <role>pku engineer</role>
// <date>2019-03-16 19:44:13</date>
//</624457033105543168>
/*
*@文件
*@eos/license中定义的版权
**/
#pragma once
... | 21.942857 | 97 | 0.585193 | linapex |
f343b8e79d9520e857f8ed460a7fac10d2510ac5 | 160 | cpp | C++ | 01_Potentiometer/intro/src/main.cpp | mishaszu/arduino_projects | 16b70c0919db77c430f1aac40caf846b0fd49969 | [
"MIT"
] | null | null | null | 01_Potentiometer/intro/src/main.cpp | mishaszu/arduino_projects | 16b70c0919db77c430f1aac40caf846b0fd49969 | [
"MIT"
] | null | null | null | 01_Potentiometer/intro/src/main.cpp | mishaszu/arduino_projects | 16b70c0919db77c430f1aac40caf846b0fd49969 | [
"MIT"
] | null | null | null | #include <Arduino.h>
int pin = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
int read = analogRead(pin);
Serial.println(read);
delay(500);
}
| 11.428571 | 29 | 0.61875 | mishaszu |
f348226f2fb498f30e4d55b0e691d76034ec711e | 6,891 | inl | C++ | Source Code/Core/Headers/Application.inl | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | Source Code/Core/Headers/Application.inl | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | Source Code/Core/Headers/Application.inl | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018 DIVIDE-Studio
Copyright (c) 2009 Ionut Cava
This file is part of DIVIDE Framework.
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 rest... | 46.560811 | 177 | 0.71383 | IonutCava |
f3493d77fbe7a1a3e5a695fe6f0af01f9a876fef | 294 | cpp | C++ | c86ctl/src/common/ringbuff.cpp | honet/c86ctl | c1e454d4e0652c55dacb9435dfac218dfad89e7f | [
"BSD-3-Clause"
] | 10 | 2015-04-04T17:05:04.000Z | 2021-12-31T02:51:43.000Z | c86ctl/src/common/ringbuff.cpp | honet/c86ctl | c1e454d4e0652c55dacb9435dfac218dfad89e7f | [
"BSD-3-Clause"
] | null | null | null | c86ctl/src/common/ringbuff.cpp | honet/c86ctl | c1e454d4e0652c55dacb9435dfac218dfad89e7f | [
"BSD-3-Clause"
] | 2 | 2015-04-09T14:16:29.000Z | 2020-12-16T02:00:50.000Z | /***
RingBuffer module
Copyright (c) 2009-2012, honet. All rights reserved.
This software is licensed under the BSD license.
honet.kk(at)gmail.com
*/
#include "stdafx.h"
#include "ringbuff.h"
#ifdef _DEBUG
#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)
#endif
| 15.473684 | 54 | 0.680272 | honet |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.