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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
574de25fe8e66db01849b25238daf23f88b40a6b | 4,542 | cpp | C++ | ares/ngp/cpu/interrupts.cpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/ngp/cpu/interrupts.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/ngp/cpu/interrupts.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | auto CPU::Interrupts::poll() -> void {
priority = 0;
cpu.inttc3.poll(vector, priority);
cpu.inttc2.poll(vector, priority);
cpu.inttc1.poll(vector, priority);
cpu.inttc0.poll(vector, priority);
cpu.intad .poll(vector, priority);
cpu.inttx1.poll(vector, priority);
cpu.intrx1.poll(vector, priority);
cpu.... | 28.566038 | 94 | 0.642889 | moon-chilled |
57517187ec352437ca416e36da9aba0b4872cb19 | 3,256 | cpp | C++ | extra/news/src/apk/gtagml/gtagml/gtagml/tag-command/gtagml-tag-command.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/apk/gtagml/gtagml/gtagml/tag-command/gtagml-tag-command.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/apk/gtagml/gtagml/gtagml/tag-command/gtagml-tag-command.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null |
// Copyright Nathaniel Christen 2019.
// 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 "gtagml-tag-command.h"
#include "gh/gh-prenode.h"
#include "kans.h"
USING_KANS(GTagML)
... | 23.594203 | 103 | 0.735258 | scignscape |
575398ac9333ca9bb91367bca31bbfcfa62e4336 | 648 | cpp | C++ | 668-kth-smallest-number-in-multiplication-table.cpp | nave7693/leetcode | 8ff388cb17e87aa9053eaed3b84e7dc2be3e2e49 | [
"MIT"
] | null | null | null | 668-kth-smallest-number-in-multiplication-table.cpp | nave7693/leetcode | 8ff388cb17e87aa9053eaed3b84e7dc2be3e2e49 | [
"MIT"
] | null | null | null | 668-kth-smallest-number-in-multiplication-table.cpp | nave7693/leetcode | 8ff388cb17e87aa9053eaed3b84e7dc2be3e2e49 | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/kth-smallest-number-in-multiplication-table
class Solution {
public:
int findKthNumber(int m, int n, int k) {
int low = 1 , high = m * n + 1;
while (low < high) {
int mid = low + (high - low) / 2;
int c = count(mid, m, n);
if ... | 24 | 77 | 0.429012 | nave7693 |
57543df53c4e7166ae8bde4860415da283e4da77 | 873 | cpp | C++ | membros/laura/grafo/Grafos/aresta.cpp | thiago9864/grafos2019_1 | 14e1115e7fd3c0ddbd728047eb65b07539f53b8c | [
"MIT"
] | 1 | 2019-06-18T14:52:40.000Z | 2019-06-18T14:52:40.000Z | membros/laura/grafo/Grafos/aresta.cpp | thiago9864/grafos2019_1 | 14e1115e7fd3c0ddbd728047eb65b07539f53b8c | [
"MIT"
] | null | null | null | membros/laura/grafo/Grafos/aresta.cpp | thiago9864/grafos2019_1 | 14e1115e7fd3c0ddbd728047eb65b07539f53b8c | [
"MIT"
] | null | null | null | #include "Aresta.h"
Aresta::Aresta(){}
Aresta::Aresta(int noOrigem, int noFim) {
this->origem = noOrigem;
this->noAdj = noFim;
this->peso = -1.0;
this->prox = nullptr;
}
Aresta::Aresta(int noOrigem, int noFim, float peso) {
this->origem = noOrigem;
this->noAdj = noFim;
this-... | 16.166667 | 71 | 0.544101 | thiago9864 |
5756aa53b0c5076076d0da276b5b591675693e57 | 2,236 | hpp | C++ | SSSP/ESSENS/Core/Basic_SetOps/Level0/extract_elements.hpp | DynamicSSSP/sc18 | 3070cd5ad7107a3985a7a386ddf99b7f018c178a | [
"MIT"
] | 4 | 2018-12-19T08:40:39.000Z | 2021-02-22T17:31:41.000Z | SSSP/ESSENS/Core/Basic_SetOps/Level0/extract_elements.hpp | DynamicSSSP/HIPC18 | 3070cd5ad7107a3985a7a386ddf99b7f018c178a | [
"MIT"
] | null | null | null | SSSP/ESSENS/Core/Basic_SetOps/Level0/extract_elements.hpp | DynamicSSSP/HIPC18 | 3070cd5ad7107a3985a7a386ddf99b7f018c178a | [
"MIT"
] | null | null | null | #ifndef EXTRACT_ELEMENTS_HPP
#define EXTRACT_ELEMENTS_HPP
#include "structure_defs.hpp"
using namespace std;
//Extracts Relevant Information From Structure
//Pairs of Elements
//all
template <class Type1, class Type2>
void get(pair<Type1, Type2> e1, const string &opt, pair<Type1, Type2> *entry)
{
if(opt=="all"){... | 21.09434 | 79 | 0.633721 | DynamicSSSP |
5756d821d58f933e87a4ed3d5facb16a31b550f5 | 1,733 | cpp | C++ | proj.android/jni/Java_joaobapt_CommonAlertListener.cpp | JoaoBaptMG/InfiniteSpaceExplorer | 841fbf57e8bcab279a7b252dad1f4ef411c5cc47 | [
"MIT"
] | 2 | 2018-11-26T03:47:18.000Z | 2019-01-12T10:07:58.000Z | proj.android/jni/Java_joaobapt_CommonAlertListener.cpp | JoaoBaptMG/InfiniteSpaceExplorer | 841fbf57e8bcab279a7b252dad1f4ef411c5cc47 | [
"MIT"
] | null | null | null | proj.android/jni/Java_joaobapt_CommonAlertListener.cpp | JoaoBaptMG/InfiniteSpaceExplorer | 841fbf57e8bcab279a7b252dad1f4ef411c5cc47 | [
"MIT"
] | 1 | 2019-12-25T01:28:49.000Z | 2019-12-25T01:28:49.000Z | //
// Java_joaobapt_CommonAlertListener.cpp
// SpaceExplorer
//
// Created by João Baptista on 22/04/15.
//
//
#include <jni.h>
#include <functional>
#include "cocos2d.h"
#include "platform/android/jni/JniHelper.h"
extern "C" JNIEXPORT void JNICALL Java_joaobapt_CommonAlertListener_onClick(JNIEnv* env, jobject thi... | 36.104167 | 137 | 0.691864 | JoaoBaptMG |
57589124f5457088dd6f32d6594069d0753e36cc | 1,024 | hpp | C++ | module_00/ex01/Contact.class.hpp | sqatim/Cplusplus_modules_42 | 73a113f3731a3eb63f2943c5c6c3d8c14214c7ea | [
"MIT"
] | null | null | null | module_00/ex01/Contact.class.hpp | sqatim/Cplusplus_modules_42 | 73a113f3731a3eb63f2943c5c6c3d8c14214c7ea | [
"MIT"
] | null | null | null | module_00/ex01/Contact.class.hpp | sqatim/Cplusplus_modules_42 | 73a113f3731a3eb63f2943c5c6c3d8c14214c7ea | [
"MIT"
] | null | null | null | #ifndef Contact_CLASS_HPP
#define Contact_CLASS_HPP
#include <iostream>
#include <iomanip>
class Contact
{
public:
void addInformation(void);
void printFields(Contact Contact[]);
void condition(std::string str, int check);
std::string get_firstName();
std::string get_lastName();
std:... | 23.272727 | 47 | 0.69043 | sqatim |
575d96da08051cbf14fad2f46e0e1f7b8cb8b95f | 173 | cpp | C++ | CcCard/card.cpp | ZHKU-Robot/yjc-CardGame-Demo | bb4bbb05c04a141779f0fc62749ae2c45c56911f | [
"MIT"
] | 1 | 2021-08-19T09:51:57.000Z | 2021-08-19T09:51:57.000Z | CcCard/card.cpp | yujiecong/yjc-CardGame-Demo | bb4bbb05c04a141779f0fc62749ae2c45c56911f | [
"MIT"
] | null | null | null | CcCard/card.cpp | yujiecong/yjc-CardGame-Demo | bb4bbb05c04a141779f0fc62749ae2c45c56911f | [
"MIT"
] | null | null | null | #include "card.h"
#include "ui_card.h"
Card::Card(QWidget *parent) :
QWidget(parent),
ui(new Ui::Card)
{
ui->setupUi(this);
}
Card::~Card()
{
delete ui;
}
| 11.533333 | 29 | 0.583815 | ZHKU-Robot |
575e2a04ec0ef3d8a4a3dd403bc2a4bf9facd0ff | 228 | cpp | C++ | src/C/Security-57031.40.6/Security/libsecurity_transform/lib/SecNullTransform.cpp | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 34 | 2015-02-04T18:03:14.000Z | 2020-11-10T06:45:28.000Z | src/C/Security-57031.40.6/Security/libsecurity_transform/lib/SecNullTransform.cpp | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 5 | 2015-06-30T21:17:00.000Z | 2016-06-14T22:31:51.000Z | src/C/Security-57031.40.6/Security/libsecurity_transform/lib/SecNullTransform.cpp | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 15 | 2015-10-29T14:21:58.000Z | 2022-01-19T07:33:14.000Z | #include "SecNullTransform.h"
#include "NullTransform.h"
const CFStringRef kSecNullTransformName = CFSTR("Null Transform");
SecNullTransformRef SecNullTransformCreate()
{
return (SecNullTransformRef) NullTransform::Make();
}
| 22.8 | 66 | 0.802632 | GaloisInc |
5760de5f3b0bbfc2b984e906fb5a736ec86d8e0d | 11,295 | cpp | C++ | testcases/CWE366_Race_Condition_Within_Thread/main.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2022-03-03T07:08:31.000Z | 2022-03-03T07:08:31.000Z | testcases/CWE366_Race_Condition_Within_Thread/main_linux.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | null | null | null | testcases/CWE366_Race_Condition_Within_Thread/main_linux.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | null | null | null | /* NOTE - eventually this file will be automatically updated using a Perl script that understand
* the naming of test case files, functions, and namespaces.
*/
#include <time.h> /* for time() */
#include <stdlib.h> /* for srand() */
#include "std_testcase.h"
#include "testcases.h"
int main(int argc, char * argv[... | 40.483871 | 96 | 0.859141 | mellowCS |
576270b074e1c48381666474cef9051cfd10ee18 | 8,206 | cpp | C++ | src/d3d11/d3d11-device.cpp | Impulse21/nvrhi | f272a6595dd0768a8e3419f0075f0edf40d00391 | [
"MIT"
] | 2 | 2021-08-28T23:02:30.000Z | 2021-08-28T23:26:21.000Z | src/d3d11/d3d11-device.cpp | Impulse21/nvrhi | f272a6595dd0768a8e3419f0075f0edf40d00391 | [
"MIT"
] | null | null | null | src/d3d11/d3d11-device.cpp | Impulse21/nvrhi | f272a6595dd0768a8e3419f0075f0edf40d00391 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved.
*
* 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,... | 33.357724 | 143 | 0.652693 | Impulse21 |
576a0800b37bbb4f4f510d3831faf261ef484773 | 180 | cpp | C++ | src/bullet.cpp | warlord500/space_invaders2 | 71d5acc30f95352b325ada61cb9b1389c9732961 | [
"MIT"
] | null | null | null | src/bullet.cpp | warlord500/space_invaders2 | 71d5acc30f95352b325ada61cb9b1389c9732961 | [
"MIT"
] | 1 | 2015-05-29T04:49:09.000Z | 2015-05-29T04:49:09.000Z | src/bullet.cpp | warlord500/space_invaders2 | 71d5acc30f95352b325ada61cb9b1389c9732961 | [
"MIT"
] | null | null | null | #include "bullet.h"
bullet::bullet(const sf::Texture& texture,const sf::Vector2f& pos) : sprite(texture)
{
this->sprite.setPosition(pos);
}
bullet::~bullet()
{
//dtor
}
| 15 | 85 | 0.655556 | warlord500 |
576aa655a59db9d53dd792064bb6b34ac40f4392 | 99 | cpp | C++ | C++ Code/Section06/unval/unval.cpp | PacktPublishing/Mastering-Multithreading-with-Cplusplus | 9b0e5a7beeceb4a7262666fa2465fdda0104c9db | [
"MIT"
] | 10 | 2019-10-10T21:03:56.000Z | 2022-03-11T08:06:46.000Z | Section06/unval/unval.cpp | PacktPublishing/Mastering-Multithreading-with-Cplusplus | 9b0e5a7beeceb4a7262666fa2465fdda0104c9db | [
"MIT"
] | null | null | null | Section06/unval/unval.cpp | PacktPublishing/Mastering-Multithreading-with-Cplusplus | 9b0e5a7beeceb4a7262666fa2465fdda0104c9db | [
"MIT"
] | 9 | 2019-09-08T09:15:13.000Z | 2022-01-07T13:12:06.000Z | #include <cstring>
#include <cstdio>
int main() {
int x;
printf ("x = %d\n", x);
return 0;
}
| 11 | 24 | 0.555556 | PacktPublishing |
576cee712586a745be2db6bf613c1942f6774312 | 2,672 | cc | C++ | src/third_party/icu/fuzzers/icu_appendable_fuzzer.cc | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | null | null | null | src/third_party/icu/fuzzers/icu_appendable_fuzzer.cc | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | null | null | null | src/third_party/icu/fuzzers/icu_appendable_fuzzer.cc | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Chromium Authors. All rights reserved.
#include <fuzzer/FuzzedDataProvider.h>
#include <stddef.h>
#include <stdint.h>
#include <vector>
#include "third_party/icu/fuzzers/fuzzer_utils.h"
#include "third_party/icu/source/common/unicode/appendable.h"
static IcuEnvironment* env = new IcuEnvironment;... | 34.25641 | 75 | 0.700599 | rhencke |
576d1d9a43e68b5b8489502934883a6a6a08b433 | 19,406 | cc | C++ | src/network/net.cc | NilFoundation/actorio | 49ac3e87902d4388cd0bb29267207f89fb057e85 | [
"MIT"
] | null | null | null | src/network/net.cc | NilFoundation/actorio | 49ac3e87902d4388cd0bb29267207f89fb057e85 | [
"MIT"
] | 3 | 2020-04-17T17:00:16.000Z | 2020-07-13T20:19:11.000Z | src/network/net.cc | NilFoundation/actorio | 49ac3e87902d4388cd0bb29267207f89fb057e85 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... | 49.886889 | 120 | 0.445532 | NilFoundation |
576da8069b59e53da6e5df30d9347d9ab1badec0 | 128 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/snippets/MatrixBase_template_int_start.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/snippets/MatrixBase_template_int_start.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/snippets/MatrixBase_template_int_start.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:4b7afeba550c42f9d83c1216d8b1f28efe9eb21defa44e01e94a8fde5aa5b682
size 230
| 32 | 75 | 0.882813 | initialz |
577147c47c118b7ad546fafc37ccf7359e76743e | 1,577 | cpp | C++ | PlatformLib/Graphics/Vulkan/cpp/VulkanTextureView.cpp | YIMonge/Rev | db3b71a27659a2652bdd50069a881702b3ae059e | [
"MIT"
] | null | null | null | PlatformLib/Graphics/Vulkan/cpp/VulkanTextureView.cpp | YIMonge/Rev | db3b71a27659a2652bdd50069a881702b3ae059e | [
"MIT"
] | null | null | null | PlatformLib/Graphics/Vulkan/cpp/VulkanTextureView.cpp | YIMonge/Rev | db3b71a27659a2652bdd50069a881702b3ae059e | [
"MIT"
] | null | null | null | #ifdef _USE_VULKAN
#include "VulkanTextureView.h"
void VulkanTextureView::Create(revDevice* device, const revTexture& texture, const VulkanSampler& sampler, VulkanDescriptorSet::Chunk& chunk)
{
this->device = device;
VkImageViewCreateInfo imageViewCreateInfo = {};
imageViewCreateInfo.sType = VK_STRUCTURE_... | 39.425 | 141 | 0.763475 | YIMonge |
5772b8aba18556c0005b0b5531369da8a3a830c3 | 2,612 | cpp | C++ | cores/n64/GLideN64/src/Graphics/OpenGLContext/GraphicBuffer/GraphicBufferWrapper.cpp | wulfebw/retro | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | [
"MIT-0",
"MIT"
] | 7 | 2020-07-20T12:11:35.000Z | 2021-12-23T02:09:19.000Z | cores/n64/GLideN64/src/Graphics/OpenGLContext/GraphicBuffer/GraphicBufferWrapper.cpp | wulfebw/retro | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | [
"MIT-0",
"MIT"
] | null | null | null | cores/n64/GLideN64/src/Graphics/OpenGLContext/GraphicBuffer/GraphicBufferWrapper.cpp | wulfebw/retro | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | [
"MIT-0",
"MIT"
] | 1 | 2020-08-29T16:36:48.000Z | 2020-08-29T16:36:48.000Z | // Based on https://github.com/chromium/chromium/blob/master/base/android/android_hardware_buffer_compat.h
#include "GraphicBufferWrapper.h"
#include <Graphics/OpenGLContext/GraphicBuffer/PublicApi/android_hardware_buffer_compat.h>
#include "../GLFunctions.h"
#include <dlfcn.h>
#include <sys/system_properties.h>
#inc... | 22.324786 | 128 | 0.753063 | wulfebw |
57744dc92be53b43a9265b40199e9d0dceeae52c | 335 | hpp | C++ | raisim/win32/mt_release/include/raisim/math/Core.hpp | simRepoRelease/raisimLib | 00724ac2abb0b4c11aadb4ddd3455fc42c57a34e | [
"Apache-2.0"
] | 142 | 2020-10-21T18:18:13.000Z | 2022-03-29T11:49:25.000Z | raisim/win32/mt_release/include/raisim/math/Core.hpp | simRepoRelease/raisimLib | 00724ac2abb0b4c11aadb4ddd3455fc42c57a34e | [
"Apache-2.0"
] | 192 | 2020-10-21T15:51:15.000Z | 2022-03-28T12:56:01.000Z | raisim/win32/mt_release/include/raisim/math/Core.hpp | simRepoRelease/raisimLib | 00724ac2abb0b4c11aadb4ddd3455fc42c57a34e | [
"Apache-2.0"
] | 51 | 2020-10-26T08:29:54.000Z | 2022-03-23T12:00:23.000Z | //----------------------------//
// This file is part of RaiSim//
// Copyright 2020, RaiSim Tech//
//----------------------------//
#ifndef RAIMATH__CORE_HPP_
#define RAIMATH__CORE_HPP_
#include "Expression.hpp"
#include "Eigen/Core"
#include "Eigen/Dense"
#include "Matrix.hpp"
#include "Product.hpp"
#endif //RAIM... | 18.611111 | 32 | 0.602985 | simRepoRelease |
57774f31f626799496f06bd086943ae680404762 | 226 | cc | C++ | test_testdriver/test_main.cc | KarlJansson/CMakeMaker | 05ec25ca4ea196a50697e13f7756e7be79a08281 | [
"MIT"
] | null | null | null | test_testdriver/test_main.cc | KarlJansson/CMakeMaker | 05ec25ca4ea196a50697e13f7756e7be79a08281 | [
"MIT"
] | null | null | null | test_testdriver/test_main.cc | KarlJansson/CMakeMaker | 05ec25ca4ea196a50697e13f7756e7be79a08281 | [
"MIT"
] | null | null | null | #include "precomp.h"
#include "test_common_writer.h"
#include "test_subdir_writer.h"
#include "test_testtarget_writer.h"
int main(int argc, char** args) {
::testing::InitGoogleTest(&argc, args);
return RUN_ALL_TESTS();
} | 22.6 | 41 | 0.738938 | KarlJansson |
577c908ac26e6682612eb991cd821acb5b8d5859 | 876 | cpp | C++ | cpp/src/SearchInRotatedSortedArrayII.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | 4 | 2018-03-05T02:27:16.000Z | 2021-03-15T14:19:44.000Z | cpp/src/SearchInRotatedSortedArrayII.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | null | null | null | cpp/src/SearchInRotatedSortedArrayII.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | 2 | 2018-07-22T10:32:10.000Z | 2018-10-20T03:14:28.000Z | #include "SearchInRotatedSortedArrayII.h"
#include <cassert>
#include <limits>
using namespace lcpp;
bool Solution81_1::search(std::vector<int> &nums, int target) {
assert(nums.size() <= std::numeric_limits<int>::max() && "Size overflow!");
int Low = 0, High = static_cast<int>(nums.size()) - 1, Mid;
while (Low ... | 25.764706 | 77 | 0.544521 | qianbinbin |
577d88d8aec5a4153ce1aba5cb462c3dd6e56bac | 4,295 | hpp | C++ | logos/consensus/persistence/block_cache.hpp | LogosNetwork/logos-core | 6b155539a734efefb8f649a761d044b5f267a51a | [
"BSD-2-Clause"
] | 3 | 2020-01-17T18:05:19.000Z | 2021-12-29T04:21:59.000Z | logos/consensus/persistence/block_cache.hpp | LogosNetwork/logos-core | 6b155539a734efefb8f649a761d044b5f267a51a | [
"BSD-2-Clause"
] | null | null | null | logos/consensus/persistence/block_cache.hpp | LogosNetwork/logos-core | 6b155539a734efefb8f649a761d044b5f267a51a | [
"BSD-2-Clause"
] | 2 | 2020-12-22T05:51:53.000Z | 2021-06-08T00:27:46.000Z | #pragma once
#include <memory>
#include <mutex>
#include <unordered_set>
#include <logos/lib/numbers.hpp>
#include <logos/lib/hash.hpp>
#include <logos/lib/trace.hpp>
#include <logos/blockstore.hpp>
#include <logos/consensus/messages/common.hpp>
#include <logos/consensus/messages/messages.hpp>
#include <logos/epoc... | 27.183544 | 105 | 0.652619 | LogosNetwork |
578426ac2e24c34d55bdf3160fe668698aca5adc | 264 | hpp | C++ | dynamic/wrappers/cell_based/SimpleTargetAreaModifier2.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 6 | 2017-02-04T16:10:53.000Z | 2021-07-01T08:03:16.000Z | dynamic/wrappers/cell_based/SimpleTargetAreaModifier2.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 6 | 2017-06-22T08:50:41.000Z | 2019-12-15T20:17:29.000Z | dynamic/wrappers/cell_based/SimpleTargetAreaModifier2.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 3 | 2017-05-15T21:33:58.000Z | 2019-10-27T21:43:07.000Z | #ifndef SimpleTargetAreaModifier2_hpp__pyplusplus_wrapper
#define SimpleTargetAreaModifier2_hpp__pyplusplus_wrapper
namespace py = pybind11;
void register_SimpleTargetAreaModifier2_class(py::module &m);
#endif // SimpleTargetAreaModifier2_hpp__pyplusplus_wrapper
| 37.714286 | 61 | 0.893939 | jmsgrogan |
5785136e1ce93a212f6f6835c971d31e13efba6e | 472 | cpp | C++ | calendar/monthFirstDay.cpp | allhailthetail/cpp-itp-main | 43a33a3df68feac3a600b3a51af3fbe893225277 | [
"MIT"
] | null | null | null | calendar/monthFirstDay.cpp | allhailthetail/cpp-itp-main | 43a33a3df68feac3a600b3a51af3fbe893225277 | [
"MIT"
] | null | null | null | calendar/monthFirstDay.cpp | allhailthetail/cpp-itp-main | 43a33a3df68feac3a600b3a51af3fbe893225277 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int monthStart(int month, int year){
//fills an array with days of the week...
//determines day of the week the 1st is on:
static int t[] = { 0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4 };
const int
day = 1; //always first day of month
int week_day;
year -= month < 3;
... | 21.454545 | 75 | 0.599576 | allhailthetail |
578b957954c6bf9c9ade1639de916244b36d04f3 | 1,101 | cpp | C++ | Graphs/Longest Path in a DAG.cpp | Sumitkk10/Competitive-Programming | 886eabe251f962336070a02bba92c9ac768d8e92 | [
"MIT"
] | 3 | 2020-09-25T07:40:29.000Z | 2020-10-09T18:11:57.000Z | Graphs/Longest Path in a DAG.cpp | Sumitkk10/Competitive-Programming | 886eabe251f962336070a02bba92c9ac768d8e92 | [
"MIT"
] | null | null | null | Graphs/Longest Path in a DAG.cpp | Sumitkk10/Competitive-Programming | 886eabe251f962336070a02bba92c9ac768d8e92 | [
"MIT"
] | 2 | 2020-09-25T10:32:57.000Z | 2021-02-28T03:23:29.000Z | // Longest path in a DAG
#include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
#define ll long long int
#define ld long double
using namespace std;
const int N = 1e6 + 5;
const int MOD = 1e9 + 7;
vector<int> graph[N];
queue<int> q;
int LPD[N], indegree[N];
bool vis[N];
void d... | 16.432836 | 70 | 0.521344 | Sumitkk10 |
578be78672ab79c962eec4fcfe993da20c715181 | 3,374 | hpp | C++ | src/navigationbar.hpp | Qt-Widgets/qtmwidgets-mobile | 24b77c25c286215539098ba569eee938882bb9d4 | [
"MIT"
] | 10 | 2015-03-22T07:35:48.000Z | 2022-02-23T15:49:01.000Z | src/navigationbar.hpp | Qt-Widgets/qtmwidgets | 24b77c25c286215539098ba569eee938882bb9d4 | [
"MIT"
] | 9 | 2020-10-22T09:25:52.000Z | 2022-02-14T08:59:13.000Z | src/navigationbar.hpp | Qt-Widgets/qtmwidgets | 24b77c25c286215539098ba569eee938882bb9d4 | [
"MIT"
] | 9 | 2018-01-22T06:47:40.000Z | 2022-01-30T16:50:57.000Z |
/*!
\file
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2014 Igor Mironchik
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, incl... | 27.209677 | 67 | 0.723177 | Qt-Widgets |
c2318bd4493f89a167861620a9f8315d8b5b6cc0 | 10,523 | cpp | C++ | Chap09/BusObject/CQuartermaster.cpp | KLM-GIT/Professional-NT-Services | cf058239286b5be14a21f7f19d41683842b92313 | [
"Apache-2.0"
] | null | null | null | Chap09/BusObject/CQuartermaster.cpp | KLM-GIT/Professional-NT-Services | cf058239286b5be14a21f7f19d41683842b92313 | [
"Apache-2.0"
] | null | null | null | Chap09/BusObject/CQuartermaster.cpp | KLM-GIT/Professional-NT-Services | cf058239286b5be14a21f7f19d41683842b92313 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#define HANDLEALLOCCOST 1000 //remove to use
//----------------------------------------
//
// List Class members
//
#define SPINX 5000
CFreeList::CFreeList()
: m_pHead( NULL ), m_pTail( NULL ), m_Count(0)
{
InitializeCriticalSectionAndSpinCount( &m_cs, SPINX );
}
CFreeList::~CFreeList()
{
Re... | 20.962151 | 101 | 0.683265 | KLM-GIT |
c2334e6030a08f5cdd8401833d05e1bdf460d1df | 11,881 | cc | C++ | instrumentation/instrument.cc | fengjixuchui/bochspwn | 2d96439191ac83e07f53fc7a27a65d18aefdcc23 | [
"Apache-2.0"
] | 138 | 2018-09-11T16:30:00.000Z | 2022-03-29T20:34:02.000Z | instrumentation/instrument.cc | fengjixuchui/bochspwn | 2d96439191ac83e07f53fc7a27a65d18aefdcc23 | [
"Apache-2.0"
] | 4 | 2015-01-19T13:13:14.000Z | 2018-08-02T11:45:32.000Z | instrumentation/instrument.cc | fengjixuchui/bochspwn | 2d96439191ac83e07f53fc7a27a65d18aefdcc23 | [
"Apache-2.0"
] | 36 | 2015-01-15T08:02:32.000Z | 2018-08-02T01:59:52.000Z | /////////////////////////////////////////////////////////////////////////
//
// Authors: Mateusz Jurczyk (mjurczyk@google.com)
// Gynvael Coldwind (gynvael@google.com)
//
// Copyright 2013-2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except... | 33.849003 | 103 | 0.660382 | fengjixuchui |
c236f2f03121625d5b9675b869562a3bbacc9682 | 16,605 | cpp | C++ | src/common/backend/utils/adt/expr_distinct.cpp | Yanci0/openGauss-server | b2ff10be1367c77f2fda396d6c12ffa3c25874c7 | [
"MulanPSL-1.0"
] | 360 | 2020-06-30T14:47:34.000Z | 2022-03-31T15:21:53.000Z | src/common/backend/utils/adt/expr_distinct.cpp | Yanci0/openGauss-server | b2ff10be1367c77f2fda396d6c12ffa3c25874c7 | [
"MulanPSL-1.0"
] | 4 | 2020-06-30T15:09:16.000Z | 2020-07-14T06:20:03.000Z | src/common/backend/utils/adt/expr_distinct.cpp | futurewei-cloud/chogori-opengauss | f43410e1643c887819e718d9baceb9e853ad9574 | [
"MulanPSL-1.0"
] | 133 | 2020-06-30T14:47:36.000Z | 2022-03-25T15:29:00.000Z | /* -------------------------------------------------------------------------
*
* expr_distinct.cpp
* utility functions for get number of distinct of expressions
*
* Copyright (c) Huawei Technologies Co., Ltd. 2012-2021. All rights reserved.
*
* IDENTIFICATION
* src/backend/utils/adt/expr_distinct.cpp
*
... | 38.260369 | 119 | 0.674616 | Yanci0 |
c23800301b0fcdd35166b312a99495b381f598e3 | 3,821 | hpp | C++ | packages/monte_carlo/collision/electron/src/MonteCarlo_HybridElasticPositronatomicReaction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/electron/src/MonteCarlo_HybridElasticPositronatomicReaction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/electron/src/MonteCarlo_HybridElasticPositronatomicReaction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_HybridElasticPositronatomicReaction.hpp
//! \author Luke Kersting
//! \brief The hybrid scattering elastic positron-atomic reaction class decl.
//!
//--------------------------------------------------------------... | 39.391753 | 136 | 0.669458 | bam241 |
c23c3c66cb8c588619199b2e24b66c3e97d9e21f | 2,587 | cc | C++ | tests/search.cc | juliusikkala/MonkeroECS | 145a0536ffa6f18f3389cce77de0522e579c850b | [
"MIT"
] | null | null | null | tests/search.cc | juliusikkala/MonkeroECS | 145a0536ffa6f18f3389cce77de0522e579c850b | [
"MIT"
] | null | null | null | tests/search.cc | juliusikkala/MonkeroECS | 145a0536ffa6f18f3389cce77de0522e579c850b | [
"MIT"
] | null | null | null | #include "test.hh"
#include <unordered_map>
#include <string>
struct test_component
{
std::string name;
};
size_t add_count = 0;
size_t remove_count = 0;
template<>
class monkero::search_index<test_component>
{
public:
entity find(const std::string& name) const
{
auto it = name_to_id.find(name);
... | 25.116505 | 75 | 0.575184 | juliusikkala |
c23e3b6154c3ac86d8cbe2b3aae33d8f13f7e844 | 6,614 | cpp | C++ | Code_Examples(9e)/Code_Examples/ch07/fig07_22_24/GradeBook.cpp | smurf-1119/Cplusplus-homework | eff845e7d8018fc0db647ce642e68e2a230dae58 | [
"MIT"
] | null | null | null | Code_Examples(9e)/Code_Examples/ch07/fig07_22_24/GradeBook.cpp | smurf-1119/Cplusplus-homework | eff845e7d8018fc0db647ce642e68e2a230dae58 | [
"MIT"
] | null | null | null | Code_Examples(9e)/Code_Examples/ch07/fig07_22_24/GradeBook.cpp | smurf-1119/Cplusplus-homework | eff845e7d8018fc0db647ce642e68e2a230dae58 | [
"MIT"
] | null | null | null | // Fig. 7.23: GradeBook.cpp
// Member-function definitions for class GradeBook that
// uses a two-dimensional array to store grades.
#include <iostream>
#include <iomanip> // parameterized stream manipulators
using namespace std;
// include definition of class GradeBook from GradeBook.h
#include "GradeBook.h" ... | 36.340659 | 77 | 0.603719 | smurf-1119 |
c24680c862239d4588f645487aeb2e05d86f5af6 | 1,134 | cpp | C++ | tournaments/polishNotation/polishNotation.cpp | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | 5 | 2020-02-06T09:51:22.000Z | 2021-03-19T00:18:44.000Z | tournaments/polishNotation/polishNotation.cpp | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | null | null | null | tournaments/polishNotation/polishNotation.cpp | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | 3 | 2019-09-27T13:06:21.000Z | 2021-04-20T23:13:17.000Z | int polishNotation(std::vector<std::string> tokens) {
struct Helper {
bool isNumber(std::string stringRepresentation) {
return stringRepresentation.size() > 1 ||
'0' <= stringRepresentation[0] &&
stringRepresentation[0] <= '9';
}
};
std::vector<std::string> myStack;
Helpe... | 32.4 | 72 | 0.569665 | gurfinkel |
c24a6bd0971f0a1f1fd0ba4cb26416eeba127fff | 497 | cpp | C++ | test/split_msg_macros_def.cpp | ggerganov/dynamix | 7530d2d6a39a0824410f2535ab5fc95d3821488f | [
"MIT"
] | 580 | 2016-06-26T20:44:17.000Z | 2022-03-30T01:26:51.000Z | test/split_msg_macros_def.cpp | ggerganov/dynamix | 7530d2d6a39a0824410f2535ab5fc95d3821488f | [
"MIT"
] | 35 | 2016-06-28T11:15:49.000Z | 2022-01-28T14:03:30.000Z | test/split_msg_macros_def.cpp | ggerganov/dynamix | 7530d2d6a39a0824410f2535ab5fc95d3821488f | [
"MIT"
] | 52 | 2016-06-26T19:49:24.000Z | 2022-01-25T18:18:31.000Z | // DynaMix
// Copyright (c) 2013-2019 Borislav Stanimirov, Zahary Karadjov
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT
//
#define DYNAMIX_NO_MESSAGE_MACROS
#include <dynamix/define_message_split.hpp>
#include "split_msg_macros_m... | 29.235294 | 63 | 0.816901 | ggerganov |
c24d7b765e7ef8451c2e7236b9d99b49f2334a06 | 2,149 | cpp | C++ | mahbubul-hassan/8-j-FordFulkerson-failed.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | 3 | 2019-07-20T07:26:31.000Z | 2020-08-06T09:31:09.000Z | mahbubul-hassan/8-j-FordFulkerson-failed.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | null | null | null | mahbubul-hassan/8-j-FordFulkerson-failed.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | 4 | 2019-06-20T18:43:32.000Z | 2020-10-07T16:45:23.000Z | #include <bits/stdc++.h>
using namespace std;
#define si(x) scanf("%d",&x)
#define sf(x) scanf("%f",&x)
#define pi(x) printf("%d\n",x)
#define pf(x) printf("%.4f\n",x)
#define ll long long int
#define sll(x) scanf("%I64d",&x);
#define pll(x) printf("%-I64d\n",x);
int n,m;
//vector<int> *g;
bool *isvisited;
int **g... | 20.273585 | 83 | 0.442997 | fahimfarhan |
c250e0ed4e8f4806f0a8e943c787c271d6c95dcd | 367 | cpp | C++ | Questions Level-Wise/Medium/finding-the-users-active-minutes.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | 2 | 2021-03-05T22:32:23.000Z | 2021-03-05T22:32:29.000Z | Questions Level-Wise/Medium/finding-the-users-active-minutes.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | Questions Level-Wise/Medium/finding-the-users-active-minutes.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> findingUsersActiveMinutes(vector<vector<int>>& logs, int k)
{
unordered_map<int,unordered_set<int>> m;
vector<int> x(k);
for(auto e: logs)
m[e[0]].insert(e[1]);
for(auto e: m)
if(e.second.size()<=k)
x[e... | 26.214286 | 76 | 0.506812 | PrakharPipersania |
c25181a94ee536dd8cae2a4e9fec05efead378c9 | 2,355 | cpp | C++ | PART-2/videoprocess.cpp | RaviSriTejaKuriseti/COP290-ASS1 | 4f6e3f8dd635ece39eb063ea7e5da402373d87ad | [
"MIT"
] | 1 | 2021-05-07T18:55:26.000Z | 2021-05-07T18:55:26.000Z | PART-2/videoprocess.cpp | RaviSriTejaKuriseti/COP290-ASS1 | 4f6e3f8dd635ece39eb063ea7e5da402373d87ad | [
"MIT"
] | null | null | null | PART-2/videoprocess.cpp | RaviSriTejaKuriseti/COP290-ASS1 | 4f6e3f8dd635ece39eb063ea7e5da402373d87ad | [
"MIT"
] | null | null | null | #include "auxcode.h"
vector<Point2f>src_img;
vector<Point2f>desti_img;
vector<Point2f>rect;
int main(int argc, char** argv)
{
desti_img.push_back(Point2f(472, 52));
desti_img.push_back(Point2f(472, 830));
desti_img.push_back(Point2f(800, 830));
desti_img.push_back(Point2f(800, 52));
src_img.pus... | 22.644231 | 83 | 0.582166 | RaviSriTejaKuriseti |
c251b3b1804fe34a97404c5034fce89b454959a5 | 6,849 | cpp | C++ | src/Song/SongsBookmarksDatabaseManager.cpp | tardypad/sailfishos-somafm | 70d8522b6fedcf18e2c08c3464d164cd5a748e19 | [
"MIT"
] | 3 | 2016-07-05T13:27:46.000Z | 2019-02-21T09:37:42.000Z | src/Song/SongsBookmarksDatabaseManager.cpp | tardypad/sailfishos-somafm | 70d8522b6fedcf18e2c08c3464d164cd5a748e19 | [
"MIT"
] | 6 | 2019-03-07T17:20:25.000Z | 2019-05-05T09:35:04.000Z | src/Song/SongsBookmarksDatabaseManager.cpp | tardypad/sailfishos-somafm | 70d8522b6fedcf18e2c08c3464d164cd5a748e19 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2013-2019 Damien Tardy-Panis
*
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
**/
#include "SongsBookmarksDatabaseManager.h"
#include <QDebug>
#include <QStringList>
#include <QSqlQuery>
#include <QVariant>
#include <... | 34.943878 | 144 | 0.662724 | tardypad |
c251df6fcf33ace442fc603528e94f6c50f83298 | 1,424 | cpp | C++ | Alchemy/Classes/Object/Alchemy/Plant.cpp | kkh029/Alchemy | ed3d96452508b6cf5680392028bef409dd8d78f1 | [
"Apache-2.0"
] | null | null | null | Alchemy/Classes/Object/Alchemy/Plant.cpp | kkh029/Alchemy | ed3d96452508b6cf5680392028bef409dd8d78f1 | [
"Apache-2.0"
] | 1 | 2017-02-10T03:54:29.000Z | 2017-02-10T03:54:29.000Z | Alchemy/Classes/Object/Alchemy/Plant.cpp | kkh029/Alchemy | ed3d96452508b6cf5680392028bef409dd8d78f1 | [
"Apache-2.0"
] | null | null | null | //
// Plant.cpp
// Alchemy
//
// Created by Kyounghwan on 2014. 3. 1..
// 1302 Plant 3 30 - - - Tower - 재료. 1104 1201
//
#include "Plant.h"
#include "WindTalisman.h"
#include "WaterTalisman.h"
#include "EarthTalisman.h"
#include "FireTalisman.h"
/* ALCHEMY PARAMETER */
#define TWEEN_EASING_MAX_INDE... | 15.648352 | 56 | 0.57514 | kkh029 |
c252ded9f0c388e726a06f820e9874f1a9b30f74 | 402 | cpp | C++ | LeetCode/Algorithms/Easy/RemoveDuplicatesFromSortedArray.cpp | roshan11160/Competitive-Programming-Solutions | 2d9cfe901c23a2b7344c410b7368eb02f7fa6e7e | [
"MIT"
] | 40 | 2020-07-25T19:35:37.000Z | 2022-01-28T02:57:02.000Z | LeetCode/Algorithms/Easy/RemoveDuplicatesFromSortedArray.cpp | afrozchakure/Hackerrank-Problem-Solutions | 014155d841e08cb1f7609c23335576dc9b29cef3 | [
"MIT"
] | 160 | 2021-04-26T19:04:15.000Z | 2022-03-26T20:18:37.000Z | LeetCode/Algorithms/Easy/RemoveDuplicatesFromSortedArray.cpp | afrozchakure/Hackerrank-Problem-Solutions | 014155d841e08cb1f7609c23335576dc9b29cef3 | [
"MIT"
] | 24 | 2020-05-03T08:11:53.000Z | 2021-10-04T03:23:20.000Z | class Solution {
public:
int removeDuplicates(vector<int>& nums) {
int n = nums.size();
int j=0;
for(int i=0; i<n;i++)
{
if(i < (n - 1) && nums[i] == nums[i+1])
continue;
nums[j++] = nums[i];
}
return j;
}
};
// Ti... | 21.157895 | 60 | 0.445274 | roshan11160 |
c255b9989572f698ec350b06c5518a3aeca6c5cf | 23,327 | cpp | C++ | parser/src/main.cpp | Hitachi-Data-Systems/ivy | 07a77c271cad7f682d7fbff497bf74a76ecd5378 | [
"Apache-2.0"
] | 6 | 2016-09-12T16:23:53.000Z | 2021-12-16T23:08:34.000Z | parser/src/main.cpp | Hitachi-Data-Systems/ivy | 07a77c271cad7f682d7fbff497bf74a76ecd5378 | [
"Apache-2.0"
] | null | null | null | parser/src/main.cpp | Hitachi-Data-Systems/ivy | 07a77c271cad7f682d7fbff497bf74a76ecd5378 | [
"Apache-2.0"
] | null | null | null | //Copyright (c) 2016, 2017, 2018 Hitachi Vantara 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/LICE... | 42.567518 | 234 | 0.594761 | Hitachi-Data-Systems |
c25658fdad6cb914a10fe8cb43bbd24cc6dec870 | 16,142 | cpp | C++ | libs/base/src/poses/CPose3DQuatPDFGaussian_unittest.cpp | feroze/mrpt-shivang | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | 2 | 2017-03-25T18:09:17.000Z | 2017-05-22T08:14:48.000Z | libs/base/src/poses/CPose3DQuatPDFGaussian_unittest.cpp | shivangag/mrpt | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | null | null | null | libs/base/src/poses/CPose3DQuatPDFGaussian_unittest.cpp | shivangag/mrpt | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | 1 | 2017-06-30T18:23:45.000Z | 2017-06-30T18:23:45.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 43.983651 | 145 | 0.672655 | feroze |
c2570b1ac89a18edf8ef13937bdfad185456de24 | 184,391 | cpp | C++ | GPUPerfStudio/Server/Common/Linux/jpglib/jfdctint.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | 1 | 2017-03-25T02:09:15.000Z | 2017-03-25T02:09:15.000Z | GPUPerfStudio/Server/Common/Linux/jpglib/jfdctint.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | null | null | null | GPUPerfStudio/Server/Common/Linux/jpglib/jfdctint.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | 3 | 2017-03-15T03:35:13.000Z | 2022-02-23T06:29:02.000Z | /*
* jfdctint.c
*
* Copyright (C) 1991-1996, Thomas G. Lane.
* Modification developed 2003-2009 by Guido Vollbeding.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains a slow-but-accurate integer implem... | 40.543316 | 107 | 0.520573 | davidlee80 |
c2571a92dbdc93ca09a9f9423706f53746e30083 | 305 | cpp | C++ | recipes/yojimbo/all/test_package/test_package.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 562 | 2019-09-04T12:23:43.000Z | 2022-03-29T16:41:43.000Z | recipes/yojimbo/all/test_package/test_package.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 9,799 | 2019-09-04T12:02:11.000Z | 2022-03-31T23:55:45.000Z | recipes/yojimbo/all/test_package/test_package.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 1,126 | 2019-09-04T11:57:46.000Z | 2022-03-31T16:43:38.000Z | #include <iostream>
#include <yojimbo.h>
using namespace yojimbo;
int main()
{
if (!InitializeYojimbo())
{
std::cout << "Failed to initialize Yojimbo!\n";
return 1;
}
std::cout << "Succesfully initialized Yojimbo\n";
ShutdownYojimbo();
return 0;
}
| 15.25 | 55 | 0.577049 | rockandsalt |
c257f4df7efa8ed994e68b41cfb3ba5ba84fab2a | 898 | cpp | C++ | core/tools/json_helper.cpp | SammyEnigma/im-desktop | d93c1c335c8290b21b69c578c399edf61cb899e8 | [
"Apache-2.0"
] | 81 | 2019-09-18T13:53:17.000Z | 2022-03-19T00:44:20.000Z | core/tools/json_helper.cpp | john-preston/im-desktop | 271e42db657bdaa8e261f318c627ca5414e0dd87 | [
"Apache-2.0"
] | 4 | 2019-10-03T15:17:00.000Z | 2019-11-03T01:05:41.000Z | core/tools/json_helper.cpp | john-preston/im-desktop | 271e42db657bdaa8e261f318c627ca5414e0dd87 | [
"Apache-2.0"
] | 25 | 2019-09-27T16:56:02.000Z | 2022-03-14T07:11:14.000Z | #include "stdafx.h"
#include "json_helper.h"
namespace core::tools
{
void sort_json_keys_by_name(rapidjson::Value& _node)
{
auto members_comparator = [](const auto& _lhs, const auto& _rhs) noexcept
{
return rapidjson_get_string_view(_lhs.name) < rapidjson_get_string_view(_rhs.name);... | 28.0625 | 95 | 0.532294 | SammyEnigma |
c25899b73940e65de7ed23ad072a9016f47bd24f | 8,125 | cpp | C++ | Editor/editor/guiEditor.cpp | maoxiezhao/Cjing3D | f052c95243307745bcaa9c3b881d225c0839012d | [
"Zlib",
"MIT"
] | 3 | 2018-12-16T10:37:28.000Z | 2021-03-23T04:32:22.000Z | Editor/editor/guiEditor.cpp | maoxiezhao/Cjing3D | f052c95243307745bcaa9c3b881d225c0839012d | [
"Zlib",
"MIT"
] | null | null | null | Editor/editor/guiEditor.cpp | maoxiezhao/Cjing3D | f052c95243307745bcaa9c3b881d225c0839012d | [
"Zlib",
"MIT"
] | 1 | 2021-04-02T16:47:02.000Z | 2021-04-02T16:47:02.000Z | #include "guiEditor.h"
#include "editor\imgui\imguiRHI.h"
#include "core\eventSystem.h"
#include "platform\win32\gameWindowWin32.h"
#include "renderer\RHI\d3d11\deviceD3D11.h"
#include "helper\profiler.h"
#include "editor\widget\guiEditorWidget.h"
#include "editor\widget\guiEditorMenuBar.h"
#include "editor\widget\gui... | 26.209677 | 112 | 0.718277 | maoxiezhao |
c25f57e0f7f7c7b7d1556308fc524f1dd1eb0e23 | 4,095 | cpp | C++ | BasiliskII/src/Windows/router/ftp.cpp | jvernet/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 940 | 2015-01-04T12:20:10.000Z | 2022-03-29T12:35:27.000Z | BasiliskII/src/Windows/router/ftp.cpp | Seanpm2001-virtual-machines/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 163 | 2015-02-10T09:08:10.000Z | 2022-03-13T05:48:10.000Z | BasiliskII/src/Windows/router/ftp.cpp | Seanpm2001-virtual-machines/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 188 | 2015-01-07T19:46:11.000Z | 2022-03-26T19:06:00.000Z | /*
* ftp.cpp - ip router
*
* Basilisk II (C) 1997-2008 Christian Bauer
*
* Windows platform specific code copyright (C) Lauri Pesonen
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Softwar... | 21.108247 | 99 | 0.542613 | jvernet |
c263f74bb182d8d679315f6df55b46a143b00983 | 11,465 | cpp | C++ | src/org/apache/poi/poifs/dev/POIFSHeaderDumper.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/poifs/dev/POIFSHeaderDumper.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/poifs/dev/POIFSHeaderDumper.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/poifs/dev/POIFSHeaderDumper.java
#include <org/apache/poi/poifs/dev/POIFSHeaderDumper.hpp>
#include <java/io/FileInputStream.hpp>
#include <java/io/PrintStream.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/CharSequen... | 51.877828 | 265 | 0.658613 | pebble2015 |
c2644abf9666a18f5e3e0da49735c15000262713 | 8,685 | cpp | C++ | imagine2/NFmiCardinalBezierFit.cpp | fmidev/smartmet-library-imagine2 | 8dc3813029f9b544c88c6817363f23f77fa505d3 | [
"MIT"
] | null | null | null | imagine2/NFmiCardinalBezierFit.cpp | fmidev/smartmet-library-imagine2 | 8dc3813029f9b544c88c6817363f23f77fa505d3 | [
"MIT"
] | null | null | null | imagine2/NFmiCardinalBezierFit.cpp | fmidev/smartmet-library-imagine2 | 8dc3813029f9b544c88c6817363f23f77fa505d3 | [
"MIT"
] | null | null | null | // ======================================================================
/*!
* \file
* \brief Implementation of namespace Imagine::NFmiCardinalBezierFit
*/
// ======================================================================
/*!
* \namespace Imagine::NFmiCardinalBezierFit
*
* \brief Calculating a cardinal B... | 31.930147 | 84 | 0.569948 | fmidev |
c266d71d44efa82fa000aaea10893dbbbc9b9655 | 2,331 | cpp | C++ | uppdev/E011Setup/WinUtils.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | uppdev/E011Setup/WinUtils.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | uppdev/E011Setup/WinUtils.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include "App.h"
bool InstallDesktopIcon(const char *exe, const char *lnk, const char *desc) {
return CreateShellLink(exe, "", AppendFileName(GetShellFolder("Desktop", HKEY_CURRENT_USER), lnk), desc, "", 0);
}
bool InstallProgramGroup(const char *groupname, const char *exe, const char *args, const char *lnk, c... | 34.279412 | 152 | 0.703132 | dreamsxin |
c267164a38c751e6fd15300491502e71f890fd4c | 792 | cpp | C++ | essentials/demos/ex-properties/employee.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 16 | 2017-01-11T17:28:03.000Z | 2021-09-27T16:12:01.000Z | essentials/demos/ex-properties/employee.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | null | null | null | essentials/demos/ex-properties/employee.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 4 | 2017-03-17T02:44:32.000Z | 2021-01-22T07:57:34.000Z | /*************************************************************************
*
* Copyright (c) 2016 The Qt Company
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************/
#include "employee.h"
E... | 18 | 75 | 0.522727 | sfaure-witekio |
c269594f6b1fe2afeeeb70c65e0823d22c23fa42 | 18,826 | cpp | C++ | tightvnc/tvnviewer/DesktopWindow.cpp | jjzhang166/qmlvncviewer2 | b888c416ab88b81fe802ab0559bb87361833a0b5 | [
"Apache-2.0"
] | 47 | 2016-08-17T03:18:32.000Z | 2022-01-14T01:33:15.000Z | tightvnc/tvnviewer/DesktopWindow.cpp | jjzhang166/qmlvncviewer2 | b888c416ab88b81fe802ab0559bb87361833a0b5 | [
"Apache-2.0"
] | 3 | 2018-06-29T06:13:28.000Z | 2020-11-26T02:31:49.000Z | tightvnc/tvnviewer/DesktopWindow.cpp | jjzhang166/qmlvncviewer2 | b888c416ab88b81fe802ab0559bb87361833a0b5 | [
"Apache-2.0"
] | 15 | 2016-08-17T07:03:55.000Z | 2021-08-02T14:42:02.000Z | // Copyright (C) 2012 GlavSoft LLC.
// All rights reserved.
//
//-------------------------------------------------------------------------
// This file is part of the TightVNC software. Please visit our Web site:
//
// http://www.tightvnc.com/
//
// This program is free software; you can redistri... | 25.966897 | 112 | 0.66286 | jjzhang166 |
c269cf34b9be43e2bfaabb3f95d6f85dd8a86f6c | 7,148 | cpp | C++ | 1SST/10LW/array.cpp | AVAtarMod/University | 3c784a1e109b7a6f6ea495278ec3dc126258625a | [
"BSD-3-Clause"
] | 1 | 2021-07-31T06:55:08.000Z | 2021-07-31T06:55:08.000Z | 1SST/10LW/array.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | 1 | 2020-11-25T12:00:11.000Z | 2021-01-13T08:51:52.000Z | 1SST/10LW/array.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <ctime>
#include <random>
#include "array.h"
int getLenghtUser()
{
int length;
while (true)
{
printf("Введите длину массива: ");
scanf("%d", &length);
if (length < 0)
{
std::cin.ignore(32767, '\n');
printf("Некорректное з... | 21.53012 | 122 | 0.522943 | AVAtarMod |
c26b1c2ef0eddd55c4891fd79097dfbab0e536a1 | 1,446 | cc | C++ | tensorflow/core/kernels/string_to_hash_bucket_ali_op.cc | aalbersk/DeepRec | f673a950780959b44dcda99398880a1d883ab338 | [
"Apache-2.0"
] | 292 | 2021-12-24T03:24:33.000Z | 2022-03-31T15:41:05.000Z | tensorflow/core/kernels/string_to_hash_bucket_ali_op.cc | aalbersk/DeepRec | f673a950780959b44dcda99398880a1d883ab338 | [
"Apache-2.0"
] | 54 | 2021-12-24T06:40:09.000Z | 2022-03-30T07:57:24.000Z | tensorflow/core/kernels/string_to_hash_bucket_ali_op.cc | aalbersk/DeepRec | f673a950780959b44dcda99398880a1d883ab338 | [
"Apache-2.0"
] | 75 | 2021-12-24T04:48:21.000Z | 2022-03-29T10:13:39.000Z | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 41.314286 | 80 | 0.719225 | aalbersk |
c26c7d7193b82466092b84f798666991c121f3ef | 4,170 | cpp | C++ | TrafficManager/source/pipeline/executable/PipelineExecutable.cpp | owoschhodan/carla | 7da99d882afb4160f0901bbbac2ea2866683e314 | [
"MIT"
] | 8 | 2019-11-27T18:43:09.000Z | 2022-01-16T06:08:36.000Z | TrafficManager/source/pipeline/executable/PipelineExecutable.cpp | tcwangjiawei/carla | 714f8c4cbfbb46fa9ed163a27c94ede613948767 | [
"MIT"
] | null | null | null | TrafficManager/source/pipeline/executable/PipelineExecutable.cpp | tcwangjiawei/carla | 714f8c4cbfbb46fa9ed163a27c94ede613948767 | [
"MIT"
] | 5 | 2020-05-12T20:03:10.000Z | 2022-02-25T14:40:07.000Z | #include <atomic>
#include <cstdlib>
#include <ctime>
#include <execinfo.h>
#include <iostream>
#include <signal.h>
#include <stdexcept>
#include <random>
#include "boost/stacktrace.hpp"
#include "carla/client/Client.h"
#include "carla/client/TimeoutException.h"
#include "carla/Logging.h"
#include "carla/Memory.h"
#i... | 27.077922 | 102 | 0.653717 | owoschhodan |
c26de97d14789617812bcf406a1ea5d8e443c509 | 2,236 | cpp | C++ | src/states.cpp | SuprDewd/states | 68f89c8e60767819b0b9d0218bb14f6e8b4fac89 | [
"MIT"
] | 4 | 2015-01-09T16:54:26.000Z | 2018-10-29T13:07:59.000Z | src/states.cpp | SuprDewd/states | 68f89c8e60767819b0b9d0218bb14f6e8b4fac89 | [
"MIT"
] | null | null | null | src/states.cpp | SuprDewd/states | 68f89c8e60767819b0b9d0218bb14f6e8b4fac89 | [
"MIT"
] | 2 | 2016-07-27T02:54:49.000Z | 2018-04-11T17:04:07.000Z | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <map>
#include <set>
#include <string>
#include <list>
#include <queue>
#include <cstring>
#include <cassert>
#include "utils.h"
#include "nfa.h"
#include "regex.h"
#include "machine.h"
#include "ast.h"
#include "converters.h"
using namespace std;
exter... | 21.921569 | 93 | 0.507603 | SuprDewd |
c26fb5005c411bdc7b149d327ada6451689f9cba | 117 | cpp | C++ | test/minimizer_test.cpp | dehui333/Course-GenomeMapper | cab7b42078be84991e5e8f773afa04af4ce87bc6 | [
"MIT"
] | null | null | null | test/minimizer_test.cpp | dehui333/Course-GenomeMapper | cab7b42078be84991e5e8f773afa04af4ce87bc6 | [
"MIT"
] | null | null | null | test/minimizer_test.cpp | dehui333/Course-GenomeMapper | cab7b42078be84991e5e8f773afa04af4ce87bc6 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "minimizer.cpp"
TEST(MinimizerTest, MinimizerTest1) {
ASSERT_EQ(1, 1);
}
| 10.636364 | 37 | 0.675214 | dehui333 |
c2709c8418a84405b7cfe708f743228ba5ebfdd1 | 149 | cpp | C++ | examples/reference-ASSERT_NE_UNLABELED.cpp | gcross/Illuminate | 862f665ccd4b67411bc332f534e1655585750823 | [
"0BSD"
] | null | null | null | examples/reference-ASSERT_NE_UNLABELED.cpp | gcross/Illuminate | 862f665ccd4b67411bc332f534e1655585750823 | [
"0BSD"
] | null | null | null | examples/reference-ASSERT_NE_UNLABELED.cpp | gcross/Illuminate | 862f665ccd4b67411bc332f534e1655585750823 | [
"0BSD"
] | null | null | null | #include "illuminate.hpp"
TEST_CASE(ASSERT_NE_UNLABELED) {
ASSERT_NE_UNLABELED(1,2)
ASSERT_NE_UNLABELED(1,1)
ASSERT_NE_UNLABELED(0,0)
}
| 18.625 | 32 | 0.744966 | gcross |
c2712c92e04442dd25dbe6a9f193832c304fd7be | 9,920 | cpp | C++ | src/prod/src/data/integration/Replica.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 1 | 2018-03-15T02:09:21.000Z | 2018-03-15T02:09:21.000Z | src/prod/src/data/integration/Replica.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | src/prod/src/data/integration/Replica.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 37.293233 | 155 | 0.746069 | AnthonyM |
c272878d22ffd75a182841caa6edecebed57c34a | 3,233 | cpp | C++ | classes/Grid.cpp | sbu-test-lab/cs-cpp-tetris | 7759c3f22eebef6dc9dac2bc6e1a1dea3022e7c6 | [
"Apache-2.0"
] | null | null | null | classes/Grid.cpp | sbu-test-lab/cs-cpp-tetris | 7759c3f22eebef6dc9dac2bc6e1a1dea3022e7c6 | [
"Apache-2.0"
] | null | null | null | classes/Grid.cpp | sbu-test-lab/cs-cpp-tetris | 7759c3f22eebef6dc9dac2bc6e1a1dea3022e7c6 | [
"Apache-2.0"
] | null | null | null | #include "Grid.h"
namespace WinTetris
{
Grid::Grid(int w, int h) : width(w), height(h)
{
//C# TO C++ CONVERTER NOTE: The following call to the 'RectangularVectors' helper class reproduces the rectangular array initialization that is automatic in C#:
//ORIGINAL LINE: occupied = new bool[w, h];
occupied =... | 22.296552 | 161 | 0.51129 | sbu-test-lab |
c2785f5dd84b48f18fd0223e9435eaeb425242d7 | 35,494 | cpp | C++ | isis/tests/FunctionalTestsHidtmgen.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/tests/FunctionalTestsHidtmgen.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/tests/FunctionalTestsHidtmgen.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | #include <QTemporaryFile>
#include "Fixtures.h"
#include "Pvl.h"
#include "PvlGroup.h"
#include "TestUtilities.h"
#include "gmock/gmock.h"
#include "UserInterface.h"
#include "hidtmgen.h"
#include "ProcessImportPds.h"
using namespace Isis;
using ::testing::HasSubstr;
static QString APP_XML = FileName("$ISISROOT/bin/x... | 46.519004 | 191 | 0.669691 | kdl222 |
c279abb197ecc731b1733ec9dddf4d9f1b2fe61e | 965 | cpp | C++ | smacc/src/smacc/smacc_component.cpp | koyalbhartia/SMACC | 609f017a91bc258deb0b64cac5f198d54f19c9e3 | [
"BSD-3-Clause"
] | 203 | 2019-04-11T16:42:10.000Z | 2022-03-18T06:02:56.000Z | smacc/src/smacc/smacc_component.cpp | koyalbhartia/SMACC | 609f017a91bc258deb0b64cac5f198d54f19c9e3 | [
"BSD-3-Clause"
] | 50 | 2019-04-18T09:09:48.000Z | 2022-03-29T21:38:21.000Z | smacc/src/smacc/smacc_component.cpp | koyalbhartia/SMACC | 609f017a91bc258deb0b64cac5f198d54f19c9e3 | [
"BSD-3-Clause"
] | 35 | 2019-09-10T15:06:37.000Z | 2022-02-02T09:10:08.000Z | /*****************************************************************************************************************
* ReelRobotix Inc. - Software License Agreement Copyright (c) 2018
* Authors: Pablo Inigo Blasco, Brett Aldrich
*
********************************************************************************... | 22.97619 | 116 | 0.552332 | koyalbhartia |
c27bbb840bdbbae75fe1df3f80d840747c65a144 | 1,500 | hpp | C++ | src/Magma/Window/Win32Window.hpp | RiscadoA/Magma-Engine | ebf8d8c25d631a9731efa33e23b162339985ae3b | [
"Zlib"
] | 3 | 2017-11-01T21:47:57.000Z | 2022-01-07T03:50:58.000Z | src/Magma/Window/Win32Window.hpp | RiscadoA/Magma-Engine | ebf8d8c25d631a9731efa33e23b162339985ae3b | [
"Zlib"
] | null | null | null | src/Magma/Window/Win32Window.hpp | RiscadoA/Magma-Engine | ebf8d8c25d631a9731efa33e23b162339985ae3b | [
"Zlib"
] | null | null | null | #pragma once
#include "Window.hpp"
#include <Windows.h>
#include <queue>
namespace Magma
{
class Win32Window : public Window
{
public:
Win32Window(HINSTANCE hInstance, int nCmdShow);
virtual ~Win32Window() final;
private:
static LRESULT CALLBACK WindowProc(HWND hWnd,
UINT message,
WPARAM... | 28.846154 | 70 | 0.761333 | RiscadoA |
c27cc9e578557f8556565143396a8b9c2f87dddc | 4,338 | cpp | C++ | reversing/scsbx_reversing/build/vm/scsbx.cpp | SECCON/SECCON2020_online_CTF | dd639d140ad61ea0fbfadb7827157ca53f7b88b2 | [
"Apache-2.0"
] | 3 | 2020-11-02T06:53:39.000Z | 2021-12-10T00:59:01.000Z | reversing/scsbx_reversing/files/src/scsbx.cpp | SECCON/SECCON2020_online_CTF | dd639d140ad61ea0fbfadb7827157ca53f7b88b2 | [
"Apache-2.0"
] | null | null | null | reversing/scsbx_reversing/files/src/scsbx.cpp | SECCON/SECCON2020_online_CTF | dd639d140ad61ea0fbfadb7827157ca53f7b88b2 | [
"Apache-2.0"
] | null | null | null | #include <iomanip>
#include <iostream>
#include "scsbx.hpp"
int SCSBX::exec()
{
do {
try {
__cpu_exec(code[pc]);
} catch(SandboxException e) {
std::cerr << "***** SCSBX Crash Report *****" << std::endl;
std::cerr << " Exception thrown: " << e << std::endl;
std::cerr << " PC: "
... | 20.462264 | 93 | 0.56616 | SECCON |
c28032fb16603df0549baff45cea7601e0c132bc | 9,475 | cpp | C++ | external/android/libsfdec/sfdec_ndkmediacodec.cpp | cyb3rpunk452/aos-avos | 427c655b358b942510c5294c4732acdf4b957f3e | [
"Apache-2.0"
] | null | null | null | external/android/libsfdec/sfdec_ndkmediacodec.cpp | cyb3rpunk452/aos-avos | 427c655b358b942510c5294c4732acdf4b957f3e | [
"Apache-2.0"
] | null | null | null | external/android/libsfdec/sfdec_ndkmediacodec.cpp | cyb3rpunk452/aos-avos | 427c655b358b942510c5294c4732acdf4b957f3e | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Archos SA
//
// 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 w... | 28.115727 | 135 | 0.629763 | cyb3rpunk452 |
c2813af0d582ae9c809474bfaa54cdbe205ae26c | 2,542 | cpp | C++ | starter-stack/Lib/rcsc/action/body_kick_collide_with_ball.cpp | InsperDynamics/Soccer-Simulation-2D | a548d576ca4ab2a8f797810f5e23875c45cef73f | [
"Apache-2.0"
] | null | null | null | starter-stack/Lib/rcsc/action/body_kick_collide_with_ball.cpp | InsperDynamics/Soccer-Simulation-2D | a548d576ca4ab2a8f797810f5e23875c45cef73f | [
"Apache-2.0"
] | null | null | null | starter-stack/Lib/rcsc/action/body_kick_collide_with_ball.cpp | InsperDynamics/Soccer-Simulation-2D | a548d576ca4ab2a8f797810f5e23875c45cef73f | [
"Apache-2.0"
] | null | null | null | // -*-c++-*-
/*!
\file body_kick_collide_with_ball.cpp
\brief intentional kick action to collide with ball
*/
/*
*Copyright:
Copyright (C) Hidehisa AKIYAMA
This code 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 ... | 27.333333 | 74 | 0.604642 | InsperDynamics |
c284712f5b22944a88f62207994c29820934cd80 | 3,040 | hpp | C++ | core/Material.hpp | lonelywm/cuda_path_tracer | d99f0b682ad7f64fa127ca3604d0eab26f61452c | [
"MIT"
] | 1 | 2021-06-12T11:33:12.000Z | 2021-06-12T11:33:12.000Z | core/Material.hpp | lonelywm/cuda_path_tracer | d99f0b682ad7f64fa127ca3604d0eab26f61452c | [
"MIT"
] | null | null | null | core/Material.hpp | lonelywm/cuda_path_tracer | d99f0b682ad7f64fa127ca3604d0eab26f61452c | [
"MIT"
] | null | null | null | #pragma once
#include <pch.h>
#include <curand_kernel.h>
struct Material {
Vec3f ka; //Ambient
Vec3f kd; //diffuse
Vec3f ks; //specular
Vec3f kt; //Transmittance
Vec3f ke; //Emmission
Vec3f kr; //reflectance == specular
float ior;
float dissolve; // 1 == opaque; 0 == fully transpare... | 23.030303 | 62 | 0.511184 | lonelywm |
c285ccb0d1f913c21bf42bb4c94d5fe9da789bc5 | 860 | hxx | C++ | src/sort_and_index/tree_compress/hash_table.hxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | 1 | 2019-06-17T21:56:31.000Z | 2019-06-17T21:56:31.000Z | src/sort_and_index/tree_compress/hash_table.hxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | null | null | null | src/sort_and_index/tree_compress/hash_table.hxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | null | null | null | /* Simple hash table that maps node IDs to relative file offsets. The
implementation uses a power-of-2 sized backing array and chains on
collision. The hash-code of a node ID is taken to be its post-order
index (which is unique).
*/
#ifndef HTM_TREE_GEN_HASH_TABLE_H
#define HTM_TREE_GEN_HASH_TABLE_H
#in... | 26.875 | 71 | 0.717442 | Caltech-IPAC |
c285ea6b7be70179b2d425f1344232e0aea6a95e | 2,923 | cpp | C++ | test/tools/main.cpp | tizenorg/platform.core.security.askuser | 2e15a94f374b676aca8dc2985a643927b80eca3f | [
"Apache-2.0"
] | null | null | null | test/tools/main.cpp | tizenorg/platform.core.security.askuser | 2e15a94f374b676aca8dc2985a643927b80eca3f | [
"Apache-2.0"
] | null | null | null | test/tools/main.cpp | tizenorg/platform.core.security.askuser | 2e15a94f374b676aca8dc2985a643927b80eca3f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2016 Samsung Electronics Co.
*
* 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 applic... | 28.105769 | 96 | 0.612042 | tizenorg |
c287298c2509f408afc6a7a48b0318bf1726b507 | 1,041 | cc | C++ | FWCore/Framework/src/DataKeyTags.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 1 | 2019-08-09T08:42:11.000Z | 2019-08-09T08:42:11.000Z | FWCore/Framework/src/DataKeyTags.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | FWCore/Framework/src/DataKeyTags.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 1 | 2019-03-19T13:44:54.000Z | 2019-03-19T13:44:54.000Z | // -*- C++ -*-
//
// Package: Framework
// Class : DataKeyTags
//
// Implementation:
// <Notes on implementation>
//
// Author: Chris Jones
// Created: Thu Mar 31 14:25:33 EST 2005
//
// system include files
#include <cstring>
// user include files
#include "FWCore/Framework/interface/DataKeyTa... | 15.308824 | 68 | 0.647454 | nistefan |
c28753c302c7715048d1e9760a7e1895e717f57e | 833 | cpp | C++ | CFB_Cursos/QT/formularios/objeto_local/formularios/mainwindow.cpp | marcospontoexe/Cpp | d640be32fda2a25f871271e024efef727e7890c1 | [
"MIT"
] | null | null | null | CFB_Cursos/QT/formularios/objeto_local/formularios/mainwindow.cpp | marcospontoexe/Cpp | d640be32fda2a25f871271e024efef727e7890c1 | [
"MIT"
] | null | null | null | CFB_Cursos/QT/formularios/objeto_local/formularios/mainwindow.cpp | marcospontoexe/Cpp | d640be32fda2a25f871271e024efef727e7890c1 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMessageBox>
#include "janela.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_clicked()
{
janela ... | 20.825 | 126 | 0.638655 | marcospontoexe |
c28b04dbd2d248d3431d2fa8115c31b042d4683b | 588 | cpp | C++ | code/cpp/ReverseLinkedListRecur.cpp | analgorithmaday/analgorithmaday.github.io | d43f98803bc673f61334bff54eed381426ee902e | [
"MIT"
] | null | null | null | code/cpp/ReverseLinkedListRecur.cpp | analgorithmaday/analgorithmaday.github.io | d43f98803bc673f61334bff54eed381426ee902e | [
"MIT"
] | null | null | null | code/cpp/ReverseLinkedListRecur.cpp | analgorithmaday/analgorithmaday.github.io | d43f98803bc673f61334bff54eed381426ee902e | [
"MIT"
] | null | null | null | List* recur_rlist(List* head)
{
List* result;
if(!(head && head->next))
return head;
result = recur_rlist(head->next);
head->next->next = head;
head->next = NULL;
return result;
}
void printList(List* head)
{
while(head != NULL) {
std::cout<<head->data<<" ";
he... | 18.967742 | 38 | 0.571429 | analgorithmaday |
c290b2d958731274efc46000bdc20277618a74ca | 4,126 | cc | C++ | test/mpdtest.cc | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | null | null | null | test/mpdtest.cc | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | null | null | null | test/mpdtest.cc | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | 1 | 2020-10-04T22:14:55.000Z | 2020-10-04T22:14:55.000Z | /**
* Test the MPD client class
*
* This is a "manual" test, and requires user interaction to listen for
* the correct audio output. It does not use the boost test framework.
* 1. mpd must be running
* 2. you must provide a valid resource string as the sole argument
*/
/* Part of the rsked package.
*
... | 27.506667 | 83 | 0.598885 | farlies |
c2920831970f9790f579c5c0c0c8083e6131e12a | 7,523 | cpp | C++ | src/setup.cpp | latture/explicit-beam-fea | 003e940bda203e1d867494c891c9cee3477cd682 | [
"MIT"
] | 1 | 2018-07-07T07:42:45.000Z | 2018-07-07T07:42:45.000Z | src/setup.cpp | latture/explicit-beam-fea | 003e940bda203e1d867494c891c9cee3477cd682 | [
"MIT"
] | null | null | null | src/setup.cpp | latture/explicit-beam-fea | 003e940bda203e1d867494c891c9cee3477cd682 | [
"MIT"
] | null | null | null | //
// Created by ryan on 3/7/16.
//
#include "setup.h"
#include <boost/format.hpp>
#include <rapidjson/error/en.h>
#include "csv_parser.h"
#include "timoshenko_beam_element.h"
namespace explicit_fea {
namespace {
template<typename T>
void createVectorFromJSON(const rapidjson::Document &config_doc,... | 40.88587 | 184 | 0.531969 | latture |
c2937623bc9acd9db390a4927e121d40eff95033 | 384 | cpp | C++ | fundamentals/introduction/pyramid.cpp | stemDaniel/ufmg-pds2 | 4dbb536a0926b617d04d133cbd3f7a5a223e113e | [
"MIT"
] | null | null | null | fundamentals/introduction/pyramid.cpp | stemDaniel/ufmg-pds2 | 4dbb536a0926b617d04d133cbd3f7a5a223e113e | [
"MIT"
] | null | null | null | fundamentals/introduction/pyramid.cpp | stemDaniel/ufmg-pds2 | 4dbb536a0926b617d04d133cbd3f7a5a223e113e | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int height;
cout << "Insira a altura da pirâmide: ";
cin >> height;
for (int i = 0; i < height; ++i) {
for (int j = 0; j <= i; ++j) {
cout << "*";
}
cout << endl;
}
for (int i = height - 1; i > 0; --i) {
for (int j = i; j > 0; --j... | 17.454545 | 42 | 0.442708 | stemDaniel |
c29456f50b570fd2027d566cb489c4e33bad3544 | 6,396 | cpp | C++ | src/cassimpmodel.cpp | SilangQuan/QSLFrameWork | 13059fef0972e0753d0d77e8f1cd9bdaf80beb0d | [
"MIT"
] | 16 | 2015-09-24T00:59:34.000Z | 2022-02-20T03:43:47.000Z | src/cassimpmodel.cpp | aleksas/QSLFrameWork | 13059fef0972e0753d0d77e8f1cd9bdaf80beb0d | [
"MIT"
] | null | null | null | src/cassimpmodel.cpp | aleksas/QSLFrameWork | 13059fef0972e0753d0d77e8f1cd9bdaf80beb0d | [
"MIT"
] | 8 | 2016-05-11T05:59:53.000Z | 2019-01-11T16:32:46.000Z | #include "cassimpmodel.h"
CAssimpModel::MeshEntry::MeshEntry()
{
VB = INVALID_OGL_VALUE;
IB = INVALID_OGL_VALUE;
numIndices = 0;
materialIndex = INVALID_OGL_VALUE;
};
CAssimpModel::MeshEntry::~MeshEntry()
{
if (VB != INVALID_OGL_VALUE)
{
glDeleteBuffers(1, &VB);
}
if (IB != I... | 29.072727 | 129 | 0.606473 | SilangQuan |
c296eb02ac947debd8533b4c2d2560259157a2e0 | 13,691 | cpp | C++ | Cores/Mednafen/mednafen/src/compress/ZIPReader.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 3,459 | 2015-01-07T14:07:09.000Z | 2022-03-25T03:51:10.000Z | Cores/Mednafen/mednafen/src/compress/ZIPReader.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 1,046 | 2018-03-24T17:56:16.000Z | 2022-03-23T08:13:09.000Z | Cores/Mednafen/mednafen/src/compress/ZIPReader.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 549 | 2015-01-07T14:07:15.000Z | 2022-01-07T16:13:05.000Z | /******************************************************************************/
/* Mednafen - Multi-system Emulator */
/******************************************************************************/
/* ZIPReader.cpp:
** Copyright (C) 2018 Mednafen Team
**
** This program is ... | 28.112936 | 273 | 0.685122 | ianclawson |
c2972e88d70fafb760fb515fa62b78a59a21c5b0 | 120 | hxx | C++ | src/Providers/UNIXProviders/PrintService/UNIX_PrintService_LINUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/PrintService/UNIX_PrintService_LINUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/PrintService/UNIX_PrintService_LINUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_LINUX
#ifndef __UNIX_PRINTSERVICE_PRIVATE_H
#define __UNIX_PRINTSERVICE_PRIVATE_H
#endif
#endif
| 10 | 37 | 0.841667 | brunolauze |
c29b16bf2edeb31fae348f55eaea063c28f09122 | 4,317 | cpp | C++ | src/details.cpp | k0zmo/clw | f0be6d1b674118a4b99bc879894eb9481c868887 | [
"MIT"
] | 1 | 2016-08-21T00:01:38.000Z | 2016-08-21T00:01:38.000Z | src/details.cpp | k0zmo/clw | f0be6d1b674118a4b99bc879894eb9481c868887 | [
"MIT"
] | null | null | null | src/details.cpp | k0zmo/clw | f0be6d1b674118a4b99bc879894eb9481c868887 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2012, 2013 Kajetan Swierk <k0zmo@outlook.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 without restriction, including without limitation the rights
... | 31.977778 | 81 | 0.514246 | k0zmo |
c2a26d79cf0d1470a475fc70cb9b5b1b8af20132 | 3,285 | cpp | C++ | Engine_Rendering/source/MeshRenderer.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | 2 | 2016-04-01T21:10:33.000Z | 2018-02-26T19:36:56.000Z | Engine_Rendering/source/MeshRenderer.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | 1 | 2017-04-05T01:33:08.000Z | 2017-04-05T01:33:08.000Z | Engine_Rendering/source/MeshRenderer.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | null | null | null | #include "MeshRenderer.h"
#include "Mesh.h"
#include "Material.h"
#include "Texture.h"
#include "ConstantBufferTypes.h"
void FMeshRenderer::Render(const FMesh* Mesh, const FDrawCall& DrawCallParameters, bool bUseTessellation)
{
assert(Mesh);
FProfiler::Get().ProfileCounter("Rendering", "Mesh Draw Call", true, 1);
... | 35.706522 | 150 | 0.773212 | subr3v |
c2a2a5c7aff964f2f59b9f0575c7031ff14fc8f2 | 2,168 | cpp | C++ | src/particle_emitter.cpp | devdor/GLDevdor04 | 1c3c83b7a3d629e59a370519ceff10b13889ea48 | [
"MIT"
] | null | null | null | src/particle_emitter.cpp | devdor/GLDevdor04 | 1c3c83b7a3d629e59a370519ceff10b13889ea48 | [
"MIT"
] | null | null | null | src/particle_emitter.cpp | devdor/GLDevdor04 | 1c3c83b7a3d629e59a370519ceff10b13889ea48 | [
"MIT"
] | null | null | null | #include "../includes/particle_emitter.hpp"
#include <random>
CParticleEmitter::CParticleEmitter()
: m_maxParticles(100)
{
}
void CParticleEmitter::Init(int maxParticles)
{
this->m_maxParticles = maxParticles;
this->CreateParticles();
}
// Initalizes a single particle according to its type
void CP... | 28.906667 | 140 | 0.539668 | devdor |
c2a49a527ecabb3bd0cc533f17a3527d3ff9ff48 | 13,888 | cpp | C++ | src/RawImport/FAA_Obs.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/RawImport/FAA_Obs.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/RawImport/FAA_Obs.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, ... | 24.711744 | 163 | 0.6304 | rromanchuk |
c2a64753c35100b43c310732f3fd3ce81589c32c | 594 | cpp | C++ | OOP/STL-Homework/Appointment.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | OOP/STL-Homework/Appointment.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | OOP/STL-Homework/Appointment.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | #include "Appointment.h"
Appointment::Appointment(DateTime date, string description,
string address, string personToMeet)
: date(date), description(description), address(address), personToMeet(personToMeet){
}
bool Appointment::operator<(Appointment &other) {
return this->date < other.date;
}
ost... | 27 | 89 | 0.675084 | Rossoner40 |
c2a7bfdd9bb25f6c11b12e6d0f07dde858984203 | 4,347 | cpp | C++ | lunarlady/StaticsState.cpp | madeso/infection-survivors | 654fc5405dcecccaa7e54f1fdbfec379e0c185da | [
"Zlib"
] | null | null | null | lunarlady/StaticsState.cpp | madeso/infection-survivors | 654fc5405dcecccaa7e54f1fdbfec379e0c185da | [
"Zlib"
] | null | null | null | lunarlady/StaticsState.cpp | madeso/infection-survivors | 654fc5405dcecccaa7e54f1fdbfec379e0c185da | [
"Zlib"
] | null | null | null | #include "lunarlady/Display.hpp"
#include "lunarlady/Game.hpp"
#include "lunarlady/State.hpp"
#include "lunarlady/World2.hpp"
#include "lunarlady/ComponentObject2.hpp"
#include "lunarlady/Font.hpp"
#include "lunarlady/Printer.hpp"
namespace lunarlady {
struct DisplayInfo {
void set(const std::wstring& iValue, bool ... | 27.512658 | 126 | 0.667357 | madeso |
c2a7c093c8cade16b178ea697fd3b4e1e4f58576 | 35,465 | cpp | C++ | Dependencies/Build/mac/share/faust/vst.cpp | SKyzZz/test | 9b03adce666adb85e5ae2d8af5262e0acb4b91e1 | [
"Zlib"
] | 2 | 2020-10-25T09:03:03.000Z | 2021-06-24T13:20:01.000Z | Dependencies/Build/mac/share/faust/vst.cpp | SKyzZz/test | 9b03adce666adb85e5ae2d8af5262e0acb4b91e1 | [
"Zlib"
] | null | null | null | Dependencies/Build/mac/share/faust/vst.cpp | SKyzZz/test | 9b03adce666adb85e5ae2d8af5262e0acb4b91e1 | [
"Zlib"
] | null | null | null | /************************************************************************
IMPORTANT NOTE : this file contains two clearly delimited sections :
the ARCHITECTURE section (in two parts) and the USER section. Each section
is governed by its own copyright and license. Please check individually
each section for license... | 36.561856 | 138 | 0.51259 | SKyzZz |
c2a970714c54899a2c9b4f9887f64162610cb519 | 3,152 | cpp | C++ | src/downloadmanager.cpp | adderly/components | 24e3d773dcfbf90d7dca50a03242af811e3508e9 | [
"MIT"
] | 17 | 2015-07-04T18:14:45.000Z | 2018-12-22T01:11:17.000Z | src/downloadmanager.cpp | adderly/components | 24e3d773dcfbf90d7dca50a03242af811e3508e9 | [
"MIT"
] | null | null | null | src/downloadmanager.cpp | adderly/components | 24e3d773dcfbf90d7dca50a03242af811e3508e9 | [
"MIT"
] | 7 | 2016-06-16T15:26:57.000Z | 2021-01-13T13:14:56.000Z | #include "downloadmanager.h"
#ifdef Q_OS_ANDROID
#include <QAndroidJniEnvironment>
#include <QAndroidJniObject>
#endif
DownloadManager::DownloadManager(QObject *parent) :
QObject(parent)
{
}
void DownloadManager::download(const QString &url, const QString &name)
{
#ifdef Q_OS_ANDROID
QAndroidJniEnvironment e... | 43.178082 | 112 | 0.515228 | adderly |
c2a97102efbc1be69c9a68a0d0b9a823af88eb6a | 1,309 | cpp | C++ | Competitions/Skillenza/Code Golf Challenge 1/Fibonacci numbers 1.cpp | cnm06/Competitive-Programming | 94242ae458570d503b8218f37624b88cc5020d23 | [
"MIT"
] | 994 | 2017-02-28T06:13:47.000Z | 2022-03-31T10:49:00.000Z | Competitions/Skillenza/Code Golf Challenge 1/Fibonacci numbers 1.cpp | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 16 | 2018-01-01T02:59:55.000Z | 2021-11-22T12:49:16.000Z | Competitions/Skillenza/Code Golf Challenge 1/Fibonacci numbers 1.cpp | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 325 | 2017-06-15T03:32:43.000Z | 2022-03-28T22:43:42.000Z | #include <cstdio>
#include <cstring>
using namespace std;
#define MAX_SIZE 3
const long long MOD = 1000000007;
int size = 3;
struct Matrix{
long long X[MAX_SIZE][MAX_SIZE];
Matrix(){}
void init(){
memset(X,0,sizeof(X));
for(int i = 0;i<size;++i) X[i][i] = 1;
}
}aux,M0,ans;
void mul... | 16.782051 | 66 | 0.468296 | cnm06 |
c2aeab7dbee62387d6db1dcdfa1b659ff94ab490 | 2,358 | cpp | C++ | bin/manager/tests/api.cpp | ArcticNature/core | bb63529a6deadc83e5adc3b772738ab6ca6ba18a | [
"BSD-3-Clause"
] | null | null | null | bin/manager/tests/api.cpp | ArcticNature/core | bb63529a6deadc83e5adc3b772738ab6ca6ba18a | [
"BSD-3-Clause"
] | null | null | null | bin/manager/tests/api.cpp | ArcticNature/core | bb63529a6deadc83e5adc3b772738ab6ca6ba18a | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 Stefano Pogliani <stefano@spogliani.net>
#include <fcntl.h>
#include <gtest/gtest.h>
#include "core/bin/manager/api/source.h"
#include "core/context/static.h"
#include "core/event/drain/null.h"
#include "core/event/testing.h"
#include "core/exceptions/base.h"
#include "core/model/event.h"
#include ... | 23.346535 | 73 | 0.693384 | ArcticNature |
c2b1d5f5f3a81f517bb7e1b315059df936fa2bd6 | 305 | hpp | C++ | addons/bi/caliber/556/f2000.hpp | Theseus-Aegis/GTRecoilSystem | 308f260af7a2a8839d1f7a0b43d77d49c062ff6c | [
"MIT"
] | null | null | null | addons/bi/caliber/556/f2000.hpp | Theseus-Aegis/GTRecoilSystem | 308f260af7a2a8839d1f7a0b43d77d49c062ff6c | [
"MIT"
] | null | null | null | addons/bi/caliber/556/f2000.hpp | Theseus-Aegis/GTRecoilSystem | 308f260af7a2a8839d1f7a0b43d77d49c062ff6c | [
"MIT"
] | null | null | null | // F2000 Rifles - All rifles inherit
// F2000 - Long Barrel
class arifle_Mk20_F: mk20_base_F {
recoil = QCLASS(556_Bullpup_Long);
};
class arifle_Mk20C_F: mk20_base_F {
recoil = QCLASS(556_Bullpup_Long);
};
// GL
class arifle_Mk20_GL_F: mk20_base_F {
recoil = QCLASS(556_Bullpup_GL_Long);
};
| 21.785714 | 41 | 0.727869 | Theseus-Aegis |
c2b212f7cb89bb1901849e08151a81d70b6ebf6f | 11,421 | cpp | C++ | lab09_templatedBinarySearchTree_BST/executive.cpp | JackNGould/programming2 | 59c127b6a6c586a6fcd69526763aad27cd152d90 | [
"MIT"
] | null | null | null | lab09_templatedBinarySearchTree_BST/executive.cpp | JackNGould/programming2 | 59c127b6a6c586a6fcd69526763aad27cd152d90 | [
"MIT"
] | null | null | null | lab09_templatedBinarySearchTree_BST/executive.cpp | JackNGould/programming2 | 59c127b6a6c586a6fcd69526763aad27cd152d90 | [
"MIT"
] | null | null | null | /*
* @project: Binary Search Tree filled with custom objects.
* @file: executive.cpp
* @author: Jack Gould
* @brief: Implementation File for executive class. Defines member methods. Class governs the program's 'executive' actions of filling a BST from the inputFile data, and generating a menu of options for the use... | 31.46281 | 235 | 0.492952 | JackNGould |
c2b219aa24d7be26c06877dbda3b2bbe8b33529f | 14,941 | cpp | C++ | sdk/src/logging/Logger.cpp | andrie/rstudio-launcher-plugin-sdk | 0b13a149fe263b578c90c98c8ab2d739b830ca60 | [
"MIT"
] | 4 | 2021-01-14T08:06:35.000Z | 2021-09-24T12:39:31.000Z | sdk/src/logging/Logger.cpp | andrie/rstudio-launcher-plugin-sdk | 0b13a149fe263b578c90c98c8ab2d739b830ca60 | [
"MIT"
] | 14 | 2021-01-19T21:21:16.000Z | 2022-03-03T22:17:23.000Z | sdk/src/logging/Logger.cpp | andrie/rstudio-launcher-plugin-sdk | 0b13a149fe263b578c90c98c8ab2d739b830ca60 | [
"MIT"
] | 3 | 2021-01-14T07:54:47.000Z | 2021-11-23T18:20:19.000Z | /*
* Logger.cpp
*
* Copyright (C) 2020 by RStudio, PBC
*
* Unless you have received this program directly from RStudio pursuant to the terms of a commercial license agreement
* with RStudio, then this program is licensed to you under the following terms:
*
* Permission is hereby granted, free of charge, to any... | 30.616803 | 124 | 0.673047 | andrie |
c2b2c0a5159fce1a4e7ad6e07431889f6d5c62b9 | 1,020 | hpp | C++ | source/drivers/audio_decoder.hpp | HuangDave/BlockBoombox | d1750149f533d83fc6b955a1a12e75f14d4230e8 | [
"Apache-2.0"
] | null | null | null | source/drivers/audio_decoder.hpp | HuangDave/BlockBoombox | d1750149f533d83fc6b955a1a12e75f14d4230e8 | [
"Apache-2.0"
] | 6 | 2020-07-29T23:26:15.000Z | 2020-07-29T23:45:21.000Z | source/drivers/audio_decoder.hpp | HuangDave/BlockBoombox | d1750149f533d83fc6b955a1a12e75f14d4230e8 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cstddef>
#include <cstdint>
/// An interface containing controls for an audio decoder.
class AudioDecoder
{
public:
/// Initialize the device for use.
virtual void Initialize() const = 0;
/// Reset the device.
virtual void Reset() const = 0;
/// Enable the device to be ready to dec... | 26.842105 | 79 | 0.676471 | HuangDave |
c2b4f441ad85d02f75fc53c4fc32ee5d0be81ae1 | 3,972 | cpp | C++ | IGC/Compiler/CISACodeGen/TimeStatsCounter.cpp | lfelipe/intel-graphics-compiler | da6c84a62d5d499544b2ae5f70ae7d1cb4d78fbd | [
"MIT"
] | null | null | null | IGC/Compiler/CISACodeGen/TimeStatsCounter.cpp | lfelipe/intel-graphics-compiler | da6c84a62d5d499544b2ae5f70ae7d1cb4d78fbd | [
"MIT"
] | 1 | 2021-02-24T08:39:15.000Z | 2021-02-24T08:39:15.000Z | IGC/Compiler/CISACodeGen/TimeStatsCounter.cpp | lfelipe/intel-graphics-compiler | da6c84a62d5d499544b2ae5f70ae7d1cb4d78fbd | [
"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... | 32.826446 | 137 | 0.690584 | lfelipe |
c2b6fe6b9ed4683af1dcc6505dfcbb50f42ad445 | 26,923 | cpp | C++ | src/items/weapons/weapons.cpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | src/items/weapons/weapons.cpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | src/items/weapons/weapons.cpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | /**
* The Forgotten Server - a free and open-source MMORPG server emulator
* Copyright (C) 2019 Mark Samman <mark.samman@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; eithe... | 26.291992 | 194 | 0.682539 | Waclaw-I |
c2b8e50ac2402e20e08c12db37d5a5b7a15a1b89 | 1,324 | hpp | C++ | rokko/utility/pyrokko_minij_matrix.hpp | t-sakashita/rokko | ebd49e1198c4ec9e7612ad4a9806d16a4ff0bdc9 | [
"BSL-1.0"
] | 16 | 2015-01-31T18:57:48.000Z | 2022-03-18T19:04:49.000Z | rokko/utility/pyrokko_minij_matrix.hpp | t-sakashita/rokko | ebd49e1198c4ec9e7612ad4a9806d16a4ff0bdc9 | [
"BSL-1.0"
] | 514 | 2015-02-05T14:56:54.000Z | 2021-06-25T09:29:52.000Z | rokko/utility/pyrokko_minij_matrix.hpp | t-sakashita/rokko | ebd49e1198c4ec9e7612ad4a9806d16a4ff0bdc9 | [
"BSL-1.0"
] | 2 | 2015-06-16T04:22:23.000Z | 2019-06-01T07:10:01.000Z | /*****************************************************************************
*
* Rokko: Integrated Interface for libraries of eigenvalue decomposition
*
* Copyright (C) 2012-2019 by Rokko Developers https://github.com/t-sakashita/rokko
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
*... | 33.1 | 97 | 0.659366 | t-sakashita |
c2ba3bbe0fe0efa2f354c638489ddc65aae093c9 | 34,408 | cpp | C++ | SDKs/CryCode/3.7.0/CryEngine/CryEntitySystem/EntityLoadManager.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.7.0/CryEngine/CryEntitySystem/EntityLoadManager.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.7.0/CryEngine/CryEntitySystem/EntityLoadManager.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | /*************************************************************************
Crytek Source File.
Copyright (C), Crytek Studios, 2001-2010.
-------------------------------------------------------------------------
$Id$
$DateTime$
Description: Handles management for loading of entities
----------------------... | 30.557726 | 204 | 0.668449 | amrhead |
c2ba81a29826d6addde581df2c9f48c2fb6cc0f4 | 283 | hpp | C++ | includes/AbstractClasses/AbstractVisitable.hpp | edubrunaldi/poker-bot | b851aa86c73a5b1b6c586439fbc01ccecac8c0f1 | [
"MIT"
] | null | null | null | includes/AbstractClasses/AbstractVisitable.hpp | edubrunaldi/poker-bot | b851aa86c73a5b1b6c586439fbc01ccecac8c0f1 | [
"MIT"
] | null | null | null | includes/AbstractClasses/AbstractVisitable.hpp | edubrunaldi/poker-bot | b851aa86c73a5b1b6c586439fbc01ccecac8c0f1 | [
"MIT"
] | 2 | 2019-09-08T10:40:21.000Z | 2021-01-06T16:17:37.000Z | //Visitor
// Created by xima on 02/08/19.
//
#ifndef POKER_BOT_ABSTRACTVISITABLE_HPP
#define POKER_BOT_ABSTRACTVISITABLE_HPP
class AbstractVisitor;
class AbstractVisitable {
public:
virtual void accept(AbstractVisitor& visitor) = 0;
};
#endif //POKER_BOT_ABSTRACTVISITABLE_HPP
| 17.6875 | 52 | 0.798587 | edubrunaldi |
c2bc4824d65d2d58cbaa73d68063130e5989eb6a | 5,427 | cpp | C++ | examples/ndtest.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | 1 | 2021-09-14T06:12:58.000Z | 2021-09-14T06:12:58.000Z | examples/ndtest.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | null | null | null | examples/ndtest.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | 2 | 2019-05-13T23:04:31.000Z | 2021-09-14T06:12:59.000Z | #include <libutl/libutl.h>
#include <libutl/Application.h>
#include <libutl/Array.h>
#include <libutl/BufferedFDstream.h>
#include <libutl/CmdLineArgs.h>
#include <libutl/Thread.h>
#undef new
#include <algorithm>
#include <libutl/gblnew_macros.h>
///////////////////////////////////////////////////////////////////////... | 22.518672 | 100 | 0.466556 | Brillist |
c2bcd01ad7f86285605f55f77d8810315c11520b | 5,399 | cpp | C++ | source/Model.cpp | xdanieldzd/libfrenda | ea10a413f6aac567c29d8dac43b0ab5cb207167a | [
"MIT"
] | 1 | 2019-10-05T01:39:01.000Z | 2019-10-05T01:39:01.000Z | source/Model.cpp | xdanieldzd/libfrenda | ea10a413f6aac567c29d8dac43b0ab5cb207167a | [
"MIT"
] | null | null | null | source/Model.cpp | xdanieldzd/libfrenda | ea10a413f6aac567c29d8dac43b0ab5cb207167a | [
"MIT"
] | 2 | 2016-12-11T08:43:32.000Z | 2022-01-02T07:55:33.000Z | /*------------------------------------------------------------
MODEL.CPP - "Frenda 3D" model loader
-------------------------------------------------------------*/
#include "include/frenda.h"
using namespace std;
namespace frenda
{
const std::string Model::formatTag = "Fr3Dv04";
Model::Model(frenda::System *s,... | 34.608974 | 183 | 0.668828 | xdanieldzd |
c2bece07afb04a783cebe7bf3a55bf11cb7343ee | 2,645 | cpp | C++ | VereEngine-Tools/GenerateTrees.cpp | VereWolf/VereEngine | 6b5453554cef1ef5d5dbf58206806198a3beec35 | [
"Zlib",
"MIT"
] | 4 | 2017-06-21T19:37:00.000Z | 2017-07-14T06:21:40.000Z | VereEngine-Tools/GenerateTrees.cpp | VereWolf/VereEngine | 6b5453554cef1ef5d5dbf58206806198a3beec35 | [
"Zlib",
"MIT"
] | null | null | null | VereEngine-Tools/GenerateTrees.cpp | VereWolf/VereEngine | 6b5453554cef1ef5d5dbf58206806198a3beec35 | [
"Zlib",
"MIT"
] | 1 | 2017-09-30T06:10:38.000Z | 2017-09-30T06:10:38.000Z | #include "stdafx.h"
#include "GenerateTrees.h"
GenerateTrees::GenerateTrees()
{
SetFolderName(L"Calc_Trees");
}
void GenerateTrees::Generate(int randomValue)
{
srand(randomValue);
std::vector<int> TM;
std::vector<Float4> TM2;
TM.resize(512 * 512, 0);
TM2.resize(512 * 512, Float4(0.0f, 0.0f, 0.0f, 0.0f));
bo... | 17.287582 | 106 | 0.438563 | VereWolf |