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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10958d69224e9ade82604795d59b3ffbdcbb5c45 | 3,461 | cpp | C++ | Code/PROJECT XYZ/Code/src/Engine/Managers/FileManager.cpp | SonarSystems/SGE | bb98feba6192ed34918c4c7bac74c050452d8386 | [
"Unlicense"
] | 12 | 2020-11-23T08:00:49.000Z | 2021-07-10T23:48:52.000Z | Code/PROJECT XYZ/Code/src/Engine/Managers/FileManager.cpp | SonarSystems/SGE | bb98feba6192ed34918c4c7bac74c050452d8386 | [
"Unlicense"
] | null | null | null | Code/PROJECT XYZ/Code/src/Engine/Managers/FileManager.cpp | SonarSystems/SGE | bb98feba6192ed34918c4c7bac74c050452d8386 | [
"Unlicense"
] | 4 | 2020-12-01T16:42:34.000Z | 2021-06-10T16:33:29.000Z | #include "pch.hpp"
namespace Sonar
{
FileManager::FileManager( )
{ _fileStatus =FILE_STATUS::NOT_OPENED; }
FileManager::~FileManager( ) { }
Sonar::FileManager::FILE_STATUS FileManager::GetStatus( )
{ return _fileStatus; }
void FileManager::OpenFile( const std::string &filepath, const ACCESS_METHOD &accessMeth... | 22.185897 | 199 | 0.639122 | SonarSystems |
109a677a59131a1c1c76205a771a25459681f972 | 4,132 | hpp | C++ | src/value.hpp | pjgeorg/cpp-driver | 26c3aac91f51a1b8ce69a63a9083c90e69183481 | [
"Apache-2.0"
] | 327 | 2015-01-01T03:01:58.000Z | 2022-03-03T19:33:19.000Z | src/value.hpp | pjgeorg/cpp-driver | 26c3aac91f51a1b8ce69a63a9083c90e69183481 | [
"Apache-2.0"
] | 218 | 2015-01-05T17:25:24.000Z | 2022-03-30T19:55:03.000Z | src/value.hpp | pjgeorg/cpp-driver | 26c3aac91f51a1b8ce69a63a9083c90e69183481 | [
"Apache-2.0"
] | 249 | 2015-02-12T11:33:10.000Z | 2022-03-31T21:21:05.000Z | /*
Copyright (c) DataStax, 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 in writing, so... | 26.318471 | 82 | 0.694821 | pjgeorg |
109c1737cd44d67a8d58e48d0887f9b50cd269cd | 3,523 | cpp | C++ | tutorials/tutorial_code/acl_resnet50_sample/src/utils.cpp | Ming-blue/docs | 553d7b62a1eb4c445737e79a1873ac64a9a4a508 | [
"Apache-2.0",
"CC-BY-4.0"
] | 288 | 2020-03-28T07:00:25.000Z | 2021-12-26T14:56:31.000Z | tutorials/tutorial_code/acl_resnet50_sample/src/utils.cpp | firmiana/docs | f1bd3c122931fe7654e684ac2a1f879c82a62550 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-07-21T08:11:58.000Z | 2021-07-21T08:11:58.000Z | tutorials/tutorial_code/acl_resnet50_sample/src/utils.cpp | firmiana/docs | f1bd3c122931fe7654e684ac2a1f879c82a62550 | [
"Apache-2.0",
"CC-BY-4.0"
] | 37 | 2020-03-30T06:38:37.000Z | 2021-09-17T05:47:59.000Z | /**
* @file utils.cpp
*
* Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "inc/utils.h"
#include ... | 32.925234 | 114 | 0.633835 | Ming-blue |
109e81b073281879d76dc5798da688eb0f1d9fd9 | 1,263 | hpp | C++ | stats_solution.hpp | kevinwortman/rubrictest | a86919774485af535699228443e1e44f24193b5f | [
"MIT"
] | 1 | 2019-01-24T03:19:41.000Z | 2019-01-24T03:19:41.000Z | stats_solution.hpp | kevinwortman/rubrictest | a86919774485af535699228443e1e44f24193b5f | [
"MIT"
] | null | null | null | stats_solution.hpp | kevinwortman/rubrictest | a86919774485af535699228443e1e44f24193b5f | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// stats_solution.hpp
//
// Solution code for stats.hpp . This would be kept private to the
// instructor. If you run the tests against this code, they all pass.
//
///////////////////////////////////////////////////////////////////////////... | 26.87234 | 79 | 0.574822 | kevinwortman |
10a366f13715822ce2bf56a7c62dfda11ce7533f | 8,056 | cpp | C++ | Source/SVWidgetsLib/Widgets/util/MoveFilterCommand.cpp | mmarineBlueQuartz/SIMPL | 834f9009944efe69d94b5b77a641d96db3e9543b | [
"NRL"
] | null | null | null | Source/SVWidgetsLib/Widgets/util/MoveFilterCommand.cpp | mmarineBlueQuartz/SIMPL | 834f9009944efe69d94b5b77a641d96db3e9543b | [
"NRL"
] | 2 | 2019-02-23T20:46:12.000Z | 2019-07-11T15:34:13.000Z | Source/SVWidgetsLib/Widgets/util/MoveFilterCommand.cpp | mmarineBlueQuartz/SIMPL | 834f9009944efe69d94b5b77a641d96db3e9543b | [
"NRL"
] | null | null | null | /* ============================================================================
* Copyright (c) 2009-2016 BlueQuartz Software, LLC
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must ... | 35.804444 | 143 | 0.613332 | mmarineBlueQuartz |
10aafd392b97d01510f785e9925432327cd367bb | 2,135 | hpp | C++ | firmware/common2015/utils/rtos-mgmt/helper-funcs.hpp | JNeiger/robocup-firmware | c1bfd4ba24070eaa4e012fdc88aa468aafcc2e4e | [
"Apache-2.0"
] | 1 | 2018-09-25T20:28:58.000Z | 2018-09-25T20:28:58.000Z | firmware/common2015/utils/rtos-mgmt/helper-funcs.hpp | JNeiger/robocup-firmware | c1bfd4ba24070eaa4e012fdc88aa468aafcc2e4e | [
"Apache-2.0"
] | null | null | null | firmware/common2015/utils/rtos-mgmt/helper-funcs.hpp | JNeiger/robocup-firmware | c1bfd4ba24070eaa4e012fdc88aa468aafcc2e4e | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cstdint>
#include <string>
#include <mbed.h>
#include <rtos.h>
#include <cmsis_os.h>
/**
* Initializes the peripheral nested vector interrupt controller (PNVIC) with
* appropriate values. Low values have the higest priority (with system
* interrupts having negative priority). All maskable i... | 36.186441 | 149 | 0.741452 | JNeiger |
10abec7ca275f8bafd513a37deafae1d5740d7ca | 155 | cpp | C++ | Iniciante/1002-Area_circulo.cpp | oDallas/URI | 2f32e224e86e934dc7742ee3e32dd7a48d47921d | [
"MIT"
] | null | null | null | Iniciante/1002-Area_circulo.cpp | oDallas/URI | 2f32e224e86e934dc7742ee3e32dd7a48d47921d | [
"MIT"
] | null | null | null | Iniciante/1002-Area_circulo.cpp | oDallas/URI | 2f32e224e86e934dc7742ee3e32dd7a48d47921d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
double raio;
scanf("%lf", &raio);
printf("A=%.4lf\n", 3.14159*(raio*raio));
return 0;
} | 12.916667 | 43 | 0.593548 | oDallas |
10ad2799ff10c31dd41177be07850721e56fc1db | 738 | hpp | C++ | src/core/color.hpp | Platinum-Phoenix/Photorealistic | ecff2c6ae52686fffb4f6c7799e002f2898622c2 | [
"MIT"
] | null | null | null | src/core/color.hpp | Platinum-Phoenix/Photorealistic | ecff2c6ae52686fffb4f6c7799e002f2898622c2 | [
"MIT"
] | null | null | null | src/core/color.hpp | Platinum-Phoenix/Photorealistic | ecff2c6ae52686fffb4f6c7799e002f2898622c2 | [
"MIT"
] | null | null | null | #ifndef COLOR_HPP
#define COLOR_HPP
#include "vec3.hpp"
#include <iostream>
#include <fstream>
void write_color(std::ofstream &out, color pixel_color, int samples_per_pixel) {
auto r = pixel_color.x();
auto g = pixel_color.y();
auto b = pixel_color.z();
// Divide the color by the number of samples a... | 27.333333 | 81 | 0.612466 | Platinum-Phoenix |
10b4305f97224dfd3511c0e726722f3e793ef2dd | 1,196 | cpp | C++ | 143B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 143B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 143B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#de... | 17.588235 | 52 | 0.582776 | felikjunvianto |
10b47e312f06b6c3c2c9954908de6867ce34db1c | 12,238 | cpp | C++ | test/vector_test.cpp | superboy0712/toy_template_library | 4b62a52bf0789472807206997253b0cc7cdd8102 | [
"MIT"
] | null | null | null | test/vector_test.cpp | superboy0712/toy_template_library | 4b62a52bf0789472807206997253b0cc7cdd8102 | [
"MIT"
] | null | null | null | test/vector_test.cpp | superboy0712/toy_template_library | 4b62a52bf0789472807206997253b0cc7cdd8102 | [
"MIT"
] | null | null | null | //============================================================================
// Name : container.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include... | 26.955947 | 104 | 0.524024 | superboy0712 |
10b4daf58bbbf62b7630eb1a3c2b8d54c7845124 | 263 | cpp | C++ | src/exercises/001Chapter/107-nest-comment/main.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | src/exercises/001Chapter/107-nest-comment/main.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | src/exercises/001Chapter/107-nest-comment/main.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | /*
Exercise 1.7: Compile a program that has incorrectly nested comments.
*/
#include<iostream>
// /*
// * everything inside a single-line comment is ignored
// * including nested comment pairs
// */
int main()
{
std::cout<<"Nested Comments";
return 0;
} | 17.533333 | 69 | 0.673004 | artgonzalez |
10b992ed579097ce97ec423d60fb187810700f65 | 1,140 | cpp | C++ | test/record/are_equivalent.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | test/record/are_equivalent.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | test/record/are_equivalent.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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 <fcppt/record/are_equivalent.hpp>
#include <fcppt/record/element.hpp>
#include <fcppt/reco... | 33.529412 | 88 | 0.717544 | freundlich |
10c14dbacbd331b75c1ae78704861a9f879d1156 | 483 | hpp | C++ | src/mpi_utils.hpp | RBigData/hola | d3df820852c9b0e9a3c8f9ee39e8178758fdb848 | [
"BSL-1.0"
] | null | null | null | src/mpi_utils.hpp | RBigData/hola | d3df820852c9b0e9a3c8f9ee39e8178758fdb848 | [
"BSL-1.0"
] | null | null | null | src/mpi_utils.hpp | RBigData/hola | d3df820852c9b0e9a3c8f9ee39e8178758fdb848 | [
"BSL-1.0"
] | null | null | null | #ifndef MPI_UTILS_H
#define MPI_UTILS_H
#pragma once
#include <Rinternals.h>
#include <Rdefines.h>
#define OMPI_SKIP_MPICXX 1
#include <mpi.h>
static inline MPI_Comm get_mpi_comm_from_Robj(SEXP comm_ptr)
{
MPI_Comm *comm = (MPI_Comm*) R_ExternalPtrAddr(comm_ptr);
return *comm;
}
static inline void check_MPI_r... | 14.636364 | 60 | 0.701863 | RBigData |
10c5613013781edebfddd24dda185323c8bac4d5 | 286 | cpp | C++ | this_keyword.cpp | shoharto/cpp | 5e2e1a8341d16477e25618f52687324c3cec5acc | [
"Unlicense",
"MIT"
] | null | null | null | this_keyword.cpp | shoharto/cpp | 5e2e1a8341d16477e25618f52687324c3cec5acc | [
"Unlicense",
"MIT"
] | 3 | 2021-09-28T05:32:13.000Z | 2022-02-26T09:55:15.000Z | this_keyword.cpp | shoharto/cpp | 5e2e1a8341d16477e25618f52687324c3cec5acc | [
"Unlicense",
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class Student
{
public:
string name;
Student(string name)
{
this ->name = name;
}
void display()
{
cout << name << endl;
}
};
int main()
{
Student s1("Bayes");
s1.display();
return 0;
} | 11.44 | 29 | 0.520979 | shoharto |
10c6f0ea080e7e00a3274bf3b2ab48ff3956c04f | 1,765 | cpp | C++ | graph-source-code/129-C/986715.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/129-C/986715.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/129-C/986715.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include<iostream>
#define MAX 100
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
bool dp[10][10][MAX+100];
int dx[]={0,0,0,1,-1,1,1,-1,-1},dy[]={0,1,-1,0,0,1,-1,1,-1};
bool func(int ny,int nx,char s[][10],int t){
if(!dp[ny][nx][t])
return 0;
else if(s[ny][nx]=... | 22.341772 | 61 | 0.329178 | AmrARaouf |
10c74bf725b34dab8e50f66382901f3aabaa5074 | 314 | hpp | C++ | flare/include/flare/animation/keyframes/keyframe_stroke_start.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 14 | 2019-04-29T15:17:24.000Z | 2020-12-30T12:51:05.000Z | flare/include/flare/animation/keyframes/keyframe_stroke_start.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | null | null | null | flare/include/flare/animation/keyframes/keyframe_stroke_start.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 6 | 2019-04-29T15:17:25.000Z | 2021-11-16T03:20:59.000Z | #ifndef _FLARE_KEYFRAME_STROKE_START_HPP_
#define _FLARE_KEYFRAME_STROKE_START_HPP_
#include "keyframe_numeric.hpp"
namespace flare
{
class ActorNode;
class KeyFrameStrokeStart : public KeyFrameNumeric
{
protected:
void setValue(ActorComponent* component, float value, float mix) override;
};
}
#endif | 18.470588 | 77 | 0.802548 | taehyub |
10cf6863294527257685fbcdf17ddb3f21883113 | 29,837 | cc | C++ | media/engine/simulcast_encoder_adapter.cc | godock/webrtc-20210119 | 29bd8638adb0a7294f7b8ae589fdd24077539dbb | [
"BSD-3-Clause"
] | null | null | null | media/engine/simulcast_encoder_adapter.cc | godock/webrtc-20210119 | 29bd8638adb0a7294f7b8ae589fdd24077539dbb | [
"BSD-3-Clause"
] | null | null | null | media/engine/simulcast_encoder_adapter.cc | godock/webrtc-20210119 | 29bd8638adb0a7294f7b8ae589fdd24077539dbb | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 35.818727 | 80 | 0.708181 | godock |
10d5bd1ded959fff27497b0f072350d4c078611a | 832 | cpp | C++ | blingfirecompile.library/src/FAToken.cpp | ameyac-msft/BlingFire | 02d2218344a3b67d50f84b19e92103d79a99ae5b | [
"MIT"
] | null | null | null | blingfirecompile.library/src/FAToken.cpp | ameyac-msft/BlingFire | 02d2218344a3b67d50f84b19e92103d79a99ae5b | [
"MIT"
] | null | null | null | blingfirecompile.library/src/FAToken.cpp | ameyac-msft/BlingFire | 02d2218344a3b67d50f84b19e92103d79a99ae5b | [
"MIT"
] | null | null | null | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
#include "blingfire-compile_src_pch.h"
#include "FAConfig.h"
#include "FAToken.h"
FAToken::FAToken () :
m_type (-1),
m_offset (-1),
m_length (-1)
{}
FAToken::FAToken (const int Type, const... | 15.407407 | 72 | 0.634615 | ameyac-msft |
10d6faff296afdbb354a8d1ed6e2a281eb0118d0 | 1,150 | cpp | C++ | Solutions/Remove Linked List Elements/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | 1 | 2015-04-13T10:58:30.000Z | 2015-04-13T10:58:30.000Z | Solutions/Remove Linked List Elements/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | Solutions/Remove Linked List Elements/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x): val(x), next(NULL) {}
};
class Solution {
public:
ListNode* removeElements(ListNode* head, int val) {
while(head != NULL && head->val == val) {
ListNode *p = head->next;
... | 20.909091 | 55 | 0.462609 | Crayzero |
10da244bb95a4f039f649562242143809aacedec | 14,039 | ipp | C++ | src/kernels/kernel_definitions.ipp | AvocadoML/CpuBackend | 9fb061e46a9425491ba0634e4398c7eec41f2a71 | [
"Apache-2.0"
] | null | null | null | src/kernels/kernel_definitions.ipp | AvocadoML/CpuBackend | 9fb061e46a9425491ba0634e4398c7eec41f2a71 | [
"Apache-2.0"
] | null | null | null | src/kernels/kernel_definitions.ipp | AvocadoML/CpuBackend | 9fb061e46a9425491ba0634e4398c7eec41f2a71 | [
"Apache-2.0"
] | null | null | null | /*
* kernel_definitions.ipp
*
* Created on: Nov 23, 2021
* Author: Maciej Kozarzewski
*/
using avocado::backend::avStatus_t;
using avocado::backend::avDataType_t;
using avocado::backend::av_int64;
using avocado::backend::avActivationType_t;
using avocado::backend::avBinaryOp_t;
using avocado::backend::avUna... | 81.150289 | 150 | 0.823492 | AvocadoML |
10dfc9efe59e8d3d35eb97e8fb9ef576965ef33d | 8,071 | cpp | C++ | test/userentry.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | test/userentry.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | test/userentry.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | // Copyright (c) 2002 David Muse
// See the file COPYING for more information
#include <rudiments/userentry.h>
#include <rudiments/charstring.h>
#include <rudiments/process.h>
#include <rudiments/sys.h>
#include <rudiments/stdio.h>
#include "test.cpp"
int main(int argc, const char **argv) {
char *osname=sys::getOp... | 33.769874 | 66 | 0.698922 | davidwed |
10e1322a8d103e78b693b337c26dcded77b709fe | 395 | cpp | C++ | Matrix/Submatrix.cpp | hegdenaveen1/C-plus-plus-Special-Functions | 7580df56fe9804fee4190f3dd7e587c98f5a9821 | [
"Unlicense"
] | null | null | null | Matrix/Submatrix.cpp | hegdenaveen1/C-plus-plus-Special-Functions | 7580df56fe9804fee4190f3dd7e587c98f5a9821 | [
"Unlicense"
] | 2 | 2017-12-20T16:18:07.000Z | 2018-01-10T19:09:35.000Z | Matrix/Submatrix.cpp | hegdenaveen1/C-plus-plus-Special-Functions | 7580df56fe9804fee4190f3dd7e587c98f5a9821 | [
"Unlicense"
] | 1 | 2017-12-10T20:03:12.000Z | 2017-12-10T20:03:12.000Z |
vector< vector<int> > submatrix(vector<vector<int>> matrixA,int row,int column)
{
vector< vector<int>> matrixB=matrixA;
if(matrixB.size()>row)
{
matrixB.erase(matrixB.begin()+row);
}
for(int i=0;i<matrixB.size();i++)
{
if(matrixB[i].size()>column)
{
matrixB... | 20.789474 | 79 | 0.55443 | hegdenaveen1 |
10e6d6e1256cd5bce1a822df2c0a5f7f9d7aaa85 | 2,102 | hpp | C++ | Engine/src/Platform/OpenGL/OpenGLTexture.hpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | Engine/src/Platform/OpenGL/OpenGLTexture.hpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | Engine/src/Platform/OpenGL/OpenGLTexture.hpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Engine/Rendering/texture.hpp"
namespace Engine
{
class GLtexture2d : public texture2d
{
public:
GLtexture2d(const std::string& name, const bool sRGB, const uint32_t filterMin, const uint32_t filterMag);
GLtexture2d(const uint32_t width, const uint32_t height, const uint32_t format, const... | 31.373134 | 134 | 0.762131 | Niels04 |
10e9573cb96dd651332fd42afdd198f9de784269 | 3,967 | cc | C++ | cuda/test/manejador_de_archivos_cuda_test.cc | silvavelosa/clasificador_de_distribuciones | b11564b4623ffba6872f22713b0a364f29433faf | [
"MIT"
] | null | null | null | cuda/test/manejador_de_archivos_cuda_test.cc | silvavelosa/clasificador_de_distribuciones | b11564b4623ffba6872f22713b0a364f29433faf | [
"MIT"
] | null | null | null | cuda/test/manejador_de_archivos_cuda_test.cc | silvavelosa/clasificador_de_distribuciones | b11564b4623ffba6872f22713b0a364f29433faf | [
"MIT"
] | null | null | null | #include <fstream>
#include <map>
#include <memory>
#include <string>
#include <vector>
#include <UnitTest++/UnitTest++.h>
#include "cuda/implementacion/manejador_de_archivos_cuda.h"
using std::ifstream;
using std::map;
using std::string;
using std::unique_ptr;
using std::vector;
namespace clasificador_de_distribucio... | 30.751938 | 84 | 0.629695 | silvavelosa |
10eca9cdd27afe56c0a3b55ff16e1ef4eee29f0a | 225 | cpp | C++ | 137. Single Number II.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | 3 | 2017-02-22T14:28:27.000Z | 2017-04-26T16:26:06.000Z | 137. Single Number II.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | null | null | null | 137. Single Number II.cpp | qinenergy/leetCode | 79f960795445470a16a4755b05aa05f99e5c616b | [
"MIT"
] | null | null | null | class Solution2 {
public:
int singleNumber(vector<int>& nums) {
int a = 0, b = 0;
for(auto& val : nums){
a = (a ^ val) & ~b;
b = (b ^ val) & ~a;
}
return a;
}
}; | 20.454545 | 41 | 0.391111 | qinenergy |
10ece8312a44fd1090628e84066bc6d9e96e355a | 348 | cpp | C++ | runtime/compiler_interface/default_cache_config.cpp | FelipeMLopez/compute-runtime | 3e3d2d3b3ac9129b1ee9c4251a2586fef0b300b8 | [
"MIT"
] | null | null | null | runtime/compiler_interface/default_cache_config.cpp | FelipeMLopez/compute-runtime | 3e3d2d3b3ac9129b1ee9c4251a2586fef0b300b8 | [
"MIT"
] | null | null | null | runtime/compiler_interface/default_cache_config.cpp | FelipeMLopez/compute-runtime | 3e3d2d3b3ac9129b1ee9c4251a2586fef0b300b8 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/compiler_interface/default_cache_config.h"
#include "runtime/compiler_interface/default_cl_cache_config.h"
namespace NEO {
CompilerCacheConfig getDefaultCompilerCacheConfig() {
return getDefaultClCompilerCacheConf... | 19.333333 | 63 | 0.772989 | FelipeMLopez |
10ed8cd949e49a5e12590b0975710c7ffe6ca431 | 576 | cpp | C++ | Engine/Source/ParticleEffect_Rotation.cpp | Denisdrk6/ProjectIII | 89634bcf4a3520ba78158dff50aee568089968cb | [
"MIT"
] | 7 | 2022-02-16T12:09:19.000Z | 2022-03-14T15:59:48.000Z | Engine/Source/ParticleEffect_Rotation.cpp | Denisdrk6/Dune-Fremen-s-Rising | 89634bcf4a3520ba78158dff50aee568089968cb | [
"MIT"
] | 1 | 2022-03-18T19:46:23.000Z | 2022-03-18T19:46:23.000Z | Engine/Source/ParticleEffect_Rotation.cpp | Denisdrk6/Dune-Fremen-s-Rising | 89634bcf4a3520ba78158dff50aee568089968cb | [
"MIT"
] | 1 | 2022-02-20T19:49:09.000Z | 2022-02-20T19:49:09.000Z | #include "ParticleEffect_Rotation.h"
ParticleEffect_Rotation::ParticleEffect_Rotation() : ParticleEffect(ParticleEffectType::ROTATION_OVER_LIFETIME)
{
}
ParticleEffect_Rotation::~ParticleEffect_Rotation()
{
}
void ParticleEffect_Rotation::Init(Particle& particle)
{
}
void ParticleEffect_Rotation::Update(Particle& p... | 18 | 111 | 0.803819 | Denisdrk6 |
10ee33f102bfcfa9b8ce15a346322d51f26f76da | 13,457 | cpp | C++ | src/SparrowFrontend/Services/Overload/OverloadServiceImpl.cpp | Sparrow-lang/sparrow | b1cf41f79b52665d8208f8fb5a7539d764286daa | [
"MIT"
] | 80 | 2015-05-05T12:21:50.000Z | 2022-03-30T18:38:48.000Z | src/SparrowFrontend/Services/Overload/OverloadServiceImpl.cpp | Sparrow-lang/sparrow | b1cf41f79b52665d8208f8fb5a7539d764286daa | [
"MIT"
] | 51 | 2016-09-09T13:44:50.000Z | 2021-11-28T07:03:02.000Z | src/SparrowFrontend/Services/Overload/OverloadServiceImpl.cpp | Sparrow-lang/sparrow | b1cf41f79b52665d8208f8fb5a7539d764286daa | [
"MIT"
] | 8 | 2015-07-28T11:34:15.000Z | 2020-02-01T21:54:06.000Z | #include "StdInc.h"
#include "SparrowFrontend/Services/Overload/OverloadServiceImpl.h"
#include "SparrowFrontend/Services/Callable/Callable.h"
#include "SparrowFrontend/Services/ICallableService.h"
#include "SparrowFrontend/Helpers/DeclsHelpers.h"
#include "SparrowFrontend/Helpers/CommonCode.h"
#include "SparrowFronten... | 37.277008 | 100 | 0.645686 | Sparrow-lang |
10ef9758af6c3ff5c3d9a27df0368d72e2acb92c | 515 | cpp | C++ | cl_dll/mathfuncs.cpp | 7Noghost7/agmod-client-updated | 70ffd34dfe701587e54a9a43e2ab695cc437bfce | [
"MIT"
] | 8 | 2021-12-29T08:40:43.000Z | 2022-01-30T11:28:00.000Z | cl_dll/mathfuncs.cpp | 7Noghost7/agmod-client-updated | 70ffd34dfe701587e54a9a43e2ab695cc437bfce | [
"MIT"
] | 4 | 2022-01-27T17:13:53.000Z | 2022-01-28T11:05:33.000Z | cl_dll/mathfuncs.cpp | 7Noghost7/agmod-client-updated | 70ffd34dfe701587e54a9a43e2ab695cc437bfce | [
"MIT"
] | 3 | 2022-01-13T13:38:00.000Z | 2022-01-30T11:23:30.000Z | #include "hud.h"
#include "cl_util.h"
float lerp(float start, float end, float frac)
{
// Exact, monotonic, bounded, determinate, and (for a=b=0) consistent:
if (start <= 0 && end >= 0 || start >= 0 && end <= 0)
return frac * end + (1 - frac) * start;
if (frac == 1)
return end; // exact
// Exact at t=0, monot... | 32.1875 | 82 | 0.613592 | 7Noghost7 |
10f3b93f7fe474a2e51c848f947dfd4e8f374c8f | 3,922 | hpp | C++ | remote_core/remote_core/include/RemoteController.hpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | remote_core/remote_core/include/RemoteController.hpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | remote_core/remote_core/include/RemoteController.hpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | //
// RemoteController.hpp
// remote_core
//
// Created by David Moore on 10/25/18.
// Copyright © 2018 David Moore. All rights reserved.
//
#ifndef RemoteController_hpp
#define RemoteController_hpp
#include "ConnectionManager.hpp"
#include "HardwareController.hpp"
#include "Message.hpp"
namespace RemoteCore {
... | 38.07767 | 118 | 0.670066 | DaveAMoore |
10f70ca0e1d76e8210f0ea706ce02009ea79c426 | 3,185 | hpp | C++ | src/mesh/MeshNodes.hpp | ldXiao/polyfem | d4103af16979ff67d461a9ebe46a14bbc4dc8c7c | [
"MIT"
] | 228 | 2018-11-23T19:32:42.000Z | 2022-03-25T10:30:51.000Z | src/mesh/MeshNodes.hpp | ldXiao/polyfem | d4103af16979ff67d461a9ebe46a14bbc4dc8c7c | [
"MIT"
] | 14 | 2019-03-11T22:44:14.000Z | 2022-03-16T14:50:35.000Z | src/mesh/MeshNodes.hpp | ldXiao/polyfem | d4103af16979ff67d461a9ebe46a14bbc4dc8c7c | [
"MIT"
] | 45 | 2018-12-31T02:04:57.000Z | 2022-03-08T02:42:01.000Z | #pragma once
#include <polyfem/Mesh.hpp>
#include <polyfem/Types.hpp>
#include <polyfem/Navigation.hpp>
#include <polyfem/Navigation3D.hpp>
#include <Eigen/Dense>
namespace polyfem {
// Wrapper for lazy assignment of node ids
class MeshNodes {
public:
MeshNodes(const Mesh &mesh, const bool has_poly, const bool co... | 35.786517 | 170 | 0.767033 | ldXiao |
10f942c45b104b87e06b18cbc27e3fdad036b5a0 | 568 | cpp | C++ | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex05-wilbertrodriguez | b4c8efa1af0af32c84ebd611b16c5e7ba58727e3 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex05-wilbertrodriguez | b4c8efa1af0af32c84ebd611b16c5e7ba58727e3 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex05-wilbertrodriguez | b4c8efa1af0af32c84ebd611b16c5e7ba58727e3 | [
"MIT"
] | null | null | null | // Random Rectangle
#include <iostream>
#include <cstdlib>
#include <ctime>
//Added header files to obtain some outside files
int main()
{
const int maxh = 40;
//sets constant values
int length;
unsigned tooth = time(0);
srand(tooth);
//sets time to get a random value
length = rand() % maxh + 1;
//g... | 17.212121 | 49 | 0.633803 | CSUF-CPSC120-2019F23-24 |
10f957935666e0ca89b0eed66bddfd60c559a179 | 877 | cpp | C++ | lib/parser/identifier.cpp | Shachar/practical-sa | 01ad8a5d60d2cb09760a38acf229331885dae538 | [
"BSL-1.0"
] | 1 | 2018-07-13T18:09:40.000Z | 2018-07-13T18:09:40.000Z | lib/parser/identifier.cpp | Shachar/practical-sa | 01ad8a5d60d2cb09760a38acf229331885dae538 | [
"BSL-1.0"
] | 17 | 2019-03-13T08:51:37.000Z | 2020-12-05T18:18:44.000Z | lib/parser/identifier.cpp | Shachar/practical | 01ad8a5d60d2cb09760a38acf229331885dae538 | [
"BSL-1.0"
] | 1 | 2018-09-25T15:30:50.000Z | 2018-09-25T15:30:50.000Z | /* This file is part of the Practical programming langauge. https://github.com/Practical/practical-sa
*
* To the extent header files enjoy copyright protection, this file is file is copyright (C) 2020 by its authors
* You can see the file's authors in the AUTHORS file in the project's home repository.
*
* This is ... | 32.481481 | 117 | 0.746864 | Shachar |
10fd5f9af7129daacc9242595f60b9e8c2002123 | 5,261 | cpp | C++ | legion/engine/physics/physx/physx_event_process_funcs.cpp | Rythe-Interactive/Rythe-Engine.rythe-legacy | c119c494524b069a73100b12dc3d8b898347830d | [
"MIT"
] | 2 | 2022-03-08T09:46:17.000Z | 2022-03-28T08:07:05.000Z | legion/engine/physics/physx/physx_event_process_funcs.cpp | Rythe-Interactive/Rythe-Engine.rythe-legacy | c119c494524b069a73100b12dc3d8b898347830d | [
"MIT"
] | 3 | 2022-03-02T13:49:10.000Z | 2022-03-22T11:54:06.000Z | legion/engine/physics/physx/physx_event_process_funcs.cpp | Rythe-Interactive/Rythe-Engine.rythe-legacy | c119c494524b069a73100b12dc3d8b898347830d | [
"MIT"
] | null | null | null | #include <physics/physx/physx_event_process_funcs.hpp>
#include <physx/PxPhysicsAPI.h>
#include <physics/physx/physx_integration_helpers.hpp>
#include <physics/events/events.hpp>
#include <physics/components/physics_component.hpp>
#include <physics/components/rigidbody.hpp>
#include <physics/physx/physx_event_process_f... | 40.160305 | 156 | 0.685801 | Rythe-Interactive |
10fe82691c18fab810df09245e2be18000b051a4 | 17,728 | cpp | C++ | bullet-2.81-rev2613/src/BulletFluids/Sph/btFluidSortingGrid.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | 19 | 2015-01-18T09:34:48.000Z | 2021-07-22T08:00:17.000Z | bullet-2.81-rev2613/src/BulletFluids/Sph/btFluidSortingGrid.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | null | null | null | bullet-2.81-rev2613/src/BulletFluids/Sph/btFluidSortingGrid.cpp | rtrius/Bullet-FLUIDS | b58dbc5108512e5a4bb0a532284a98128fd8f8ce | [
"Zlib"
] | 8 | 2015-02-09T08:03:04.000Z | 2021-07-22T08:01:54.000Z | /*
Bullet-FLUIDS
Copyright (c) 2012 Jackson Lee
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 any purpose,
including commercial app... | 33.260788 | 243 | 0.709781 | rtrius |
8003c2bafd2444af99678f04d4aad8aa6d200346 | 996 | cpp | C++ | src/filesystem/system_filesystem.cpp | clman94/Wolf-Gang-Engine | 52fa71d6be1fb940a0998f29b4e0ce631e624b25 | [
"MIT"
] | 5 | 2016-09-18T01:39:19.000Z | 2020-05-24T02:37:45.000Z | src/filesystem/system_filesystem.cpp | clman94/Wolf-Gang-Engine | 52fa71d6be1fb940a0998f29b4e0ce631e624b25 | [
"MIT"
] | 25 | 2017-02-11T21:13:24.000Z | 2020-06-24T08:48:33.000Z | src/filesystem/system_filesystem.cpp | clman94/Wolf-Gang-Engine | 52fa71d6be1fb940a0998f29b4e0ce631e624b25 | [
"MIT"
] | 2 | 2017-04-29T22:12:16.000Z | 2018-04-05T10:35:25.000Z | #include <wge/filesystem/system_filesystem.hpp>
#include <wge/filesystem/filesystem_interface.hpp>
#include <wge/filesystem/file_input_stream.hpp>
#include <wge/filesystem/path.hpp>
#include <memory>
namespace wge::filesystem
{
bool system_filesystem::exists(const path & pPath)
{
return system_fs::exists(pPath.to_s... | 21.652174 | 71 | 0.752008 | clman94 |
8005180f563cf59ab0998f41a51155380e1ac5da | 577 | cc | C++ | cpp/Power_x_n.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | cpp/Power_x_n.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | cpp/Power_x_n.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | namespace Power_x_n {
public class Solution {
public double pow(double x, int n) {
boolean positive = true;
if (n < 0) {
n = -n;
positive = false;
}
double res = 1.0;
double tmp = x;
while (n > 0) {
... | 20.607143 | 42 | 0.306759 | speedfirst |
800626fe20ccfd9851e2cba7334f11eca6256614 | 4,764 | hpp | C++ | include/CMatrixSymmetric.hpp | seraco/HeatConduction | 357180848d3de2798e47359691293979f8446500 | [
"MIT"
] | 3 | 2018-04-13T11:16:27.000Z | 2021-05-24T02:51:00.000Z | include/CMatrixSymmetric.hpp | seraco/HeatConduction | 357180848d3de2798e47359691293979f8446500 | [
"MIT"
] | null | null | null | include/CMatrixSymmetric.hpp | seraco/HeatConduction | 357180848d3de2798e47359691293979f8446500 | [
"MIT"
] | null | null | null | /*!
* @file CMatrixSymmetric.hpp
* @brief Headers of the main subroutines for defining symmetric matrices and their operations.
* The implementation is in the <i>CMatrixSymmetric.cpp</i> file.
* @author S.Ramon (seraco)
* @version 0.0.1
*
* Copyright 2018 S.Ramon
*
* Permission is hereby granted, free o... | 34.521739 | 95 | 0.610621 | seraco |
800dcce1565b3a695de016ad1faaa8a792bf6b5a | 1,217 | cpp | C++ | AL_31_07.cpp | kociap/SPOJ | 77273e943ef5d11ddc9c1455b95868afbb116309 | [
"MIT"
] | null | null | null | AL_31_07.cpp | kociap/SPOJ | 77273e943ef5d11ddc9c1455b95868afbb116309 | [
"MIT"
] | null | null | null | AL_31_07.cpp | kociap/SPOJ | 77273e943ef5d11ddc9c1455b95868afbb116309 | [
"MIT"
] | null | null | null | #include <iostream>
int main() {
using namespace std;
ios::sync_with_stdio(false);
int fractalRecursionDepth;
cin >> fractalRecursionDepth;
int fractalSize = 1;
for (int i = 1; i < fractalRecursionDepth; ++i) {
fractalSize = fractalSize * 2 + 1;
}
auto getHighestDividingPowerOf2 = [](int num... | 21.350877 | 65 | 0.481512 | kociap |
801020591e44b3ae04bd3574024490190da161d2 | 1,548 | cpp | C++ | src/AnalysisOptions.cpp | ClaudeTO80/Opti_plus_plus | 772bdce297f2b52455ba483b747890362d97beb4 | [
"MIT"
] | 4 | 2020-02-03T17:05:24.000Z | 2022-01-25T23:02:40.000Z | src/AnalysisOptions.cpp | ClaudeTO80/Opti_plus_plus | 772bdce297f2b52455ba483b747890362d97beb4 | [
"MIT"
] | null | null | null | src/AnalysisOptions.cpp | ClaudeTO80/Opti_plus_plus | 772bdce297f2b52455ba483b747890362d97beb4 | [
"MIT"
] | null | null | null | #include "AnalysisOptions.h"
#include "Optipp_Exceptions.h"
using namespace std;
using namespace AnalysisGenerator;
void GeneratorOption::value(string value) { value_ = value; }
string GeneratorOption::asString() { return value_; };
GeneratorOption::GeneratorOption(string name, const string& def)
{
... | 24.571429 | 91 | 0.72416 | ClaudeTO80 |
80104fe0a2967a9b9303bc91694b6beed172ef53 | 11,259 | cpp | C++ | unit_testing/test_typed_spawn.cpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | 2 | 2015-03-20T21:11:16.000Z | 2020-01-20T08:05:41.000Z | unit_testing/test_typed_spawn.cpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | null | null | null | unit_testing/test_typed_spawn.cpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | null | null | null | /******************************************************************************\
* *
* ____ _ _ _ *
* | __ ) ___ ___ ___| |_ / \ ___| |_ ___ _ __ *... | 31.10221 | 81 | 0.477129 | syoummer |
8019162fca64831d2f138ba740d948009869ba13 | 529,801 | tpp | C++ | Controls4U/src.tpp/VLCPlayer_en-us.tpp | Libraries4U/Controls4U | f21074881f90032f27fc856461c05e276ec1ca90 | [
"Apache-2.0"
] | null | null | null | Controls4U/src.tpp/VLCPlayer_en-us.tpp | Libraries4U/Controls4U | f21074881f90032f27fc856461c05e276ec1ca90 | [
"Apache-2.0"
] | null | null | null | Controls4U/src.tpp/VLCPlayer_en-us.tpp | Libraries4U/Controls4U | f21074881f90032f27fc856461c05e276ec1ca90 | [
"Apache-2.0"
] | null | null | null | topic "VLCPlayer";
[ $$0,0#00000000000000000000000000000000:Default]
[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
[l288;2 $$2,2#27521748481378242620020725143825:desc]
[b42;2 $$3,3#13035079074754324216151401829390:normal]
[0 $$4,0#96390100711032703541132217272105:end]
[i448;a25;kKO9;2 $$5,0#37138... | 4,139.070313 | 507,471 | 0.965327 | Libraries4U |
80196f4d3007b1c2374efab33bbb0d2dfa0b1d18 | 2,043 | cpp | C++ | src/util.cpp | davidstraka2/gamebook-engine | 53fa8d825a056e28ddd90e718af73ab691019fe5 | [
"MIT"
] | null | null | null | src/util.cpp | davidstraka2/gamebook-engine | 53fa8d825a056e28ddd90e718af73ab691019fe5 | [
"MIT"
] | null | null | null | src/util.cpp | davidstraka2/gamebook-engine | 53fa8d825a056e28ddd90e718af73ab691019fe5 | [
"MIT"
] | null | null | null | #include "util.hpp"
#include <random>
#include <sstream>
using std::string;
using std::vector;
const char indentationChar = '\t';
std::random_device seed;
std::mt19937 rng(seed());
bool util::chainsMatch(
const vector<string>& chainA,
const vector<string>& chainB
) {
if (chainA.size() != chainB.size())... | 25.222222 | 80 | 0.630935 | davidstraka2 |
8029a4dcf45eab38ac476e785144b8536c5681c1 | 143 | cpp | C++ | Behavioral/Mediator/src/Mediator.cpp | craviee/design-patterns-modern-cpp | 39896c8a2491c5599f79afa65a07deda2e4e7dd7 | [
"Unlicense"
] | 3 | 2019-11-15T01:38:31.000Z | 2020-04-21T13:04:19.000Z | Behavioral/Mediator/src/Mediator.cpp | craviee/design-patterns-modern-cpp | 39896c8a2491c5599f79afa65a07deda2e4e7dd7 | [
"Unlicense"
] | 23 | 2019-11-29T09:13:42.000Z | 2020-02-05T14:53:03.000Z | Behavioral/Mediator/src/Mediator.cpp | craviee/design-patterns-modern-cpp | 39896c8a2491c5599f79afa65a07deda2e4e7dd7 | [
"Unlicense"
] | null | null | null | #include "Mediator.hpp"
void Mediator::startFriendship(AggressiveRace* person)
{
person->mediator = this;
persons.push_back(person);
} | 20.428571 | 54 | 0.734266 | craviee |
80316a0d68acd1ceeb4c1067d6c7d8950abe01c9 | 12,303 | cpp | C++ | src/decoders/mp3.cpp | CDanSantana/alure | cb69d15adc74be4963f9589e4587aa1d9b5f4b62 | [
"Zlib"
] | 56 | 2016-01-15T03:23:32.000Z | 2022-02-19T10:32:10.000Z | src/decoders/mp3.cpp | CDanSantana/alure | cb69d15adc74be4963f9589e4587aa1d9b5f4b62 | [
"Zlib"
] | 41 | 2016-11-04T10:27:44.000Z | 2021-01-08T16:37:21.000Z | src/decoders/mp3.cpp | CDanSantana/alure | cb69d15adc74be4963f9589e4587aa1d9b5f4b62 | [
"Zlib"
] | 18 | 2017-01-06T11:23:38.000Z | 2022-02-19T10:32:13.000Z |
#include "mp3.hpp"
#include <stdexcept>
#include <iostream>
#include <cassert>
#include "context.h"
#define MINIMP3_IMPLEMENTATION
#define MINIMP3_FLOAT_OUTPUT
#include "minimp3.h"
namespace {
constexpr size_t MinMp3DataSize = 16384;
constexpr size_t MaxMp3DataSize = MinMp3DataSize * 8;
size_t append_file_data(s... | 30.834586 | 99 | 0.611802 | CDanSantana |
8037354792357e8cc0747b303d3535504ef01f2d | 2,730 | cpp | C++ | breeze/type_identification/test/readable_type_name_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/type_identification/test/readable_type_name_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | null | null | null | breeze/type_identification/test/readable_type_name_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// Copyright 2017-2018 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3... | 30.674157 | 80 | 0.544322 | gennaroprota |
d9a327a60dae0c08726d800a6e214b9738a5e966 | 6,007 | cc | C++ | sandbox/linux/limit.cc | yak1ex/ccf | ea7dc04239a51541625383aedcc121c301c60c53 | [
"BSL-1.0"
] | 1 | 2015-05-27T02:15:20.000Z | 2015-05-27T02:15:20.000Z | sandbox/linux/limit.cc | yak1ex/ccf | ea7dc04239a51541625383aedcc121c301c60c53 | [
"BSL-1.0"
] | null | null | null | sandbox/linux/limit.cc | yak1ex/ccf | ea7dc04239a51541625383aedcc121c301c60c53 | [
"BSL-1.0"
] | null | null | null | #include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
#define UNUSED(var) do { if(var){} } while(0)
using playground2::Sandbox;
#define ERR EPERM
#ifdef SANDBOX_COMPILER
s... | 25.781116 | 104 | 0.661062 | yak1ex |
d9a9dbd1f5d4b2d046b730e59e6f2e52c8a28152 | 832 | cpp | C++ | CodeChef DSA Learning/Week 5/CHEFSQRS.cpp | mishrraG/100DaysOfCode | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 13 | 2020-08-10T14:06:37.000Z | 2020-09-24T14:21:33.000Z | CodeChef DSA Learning/Week 5/CHEFSQRS.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | null | null | null | CodeChef DSA Learning/Week 5/CHEFSQRS.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 1 | 2020-05-31T21:09:14.000Z | 2020-05-31T21:09:14.000Z | #include<bits/stdc++.h>
typedef long long int ll;
using namespace std;
#define fastio() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define loop(i,a,b) for(ll i=a;i<b;i++)
#define nl cout<<endl
#define P 1000000007
#define MOD(x) ((x%P)+P)%P
int main()
{
fastio();
ll t;
cin>>t;
while(t--)
{
... | 21.894737 | 68 | 0.399038 | mishrraG |
d9b3627ae695f3fcd7fc31e404f5b5d8f8a08cf5 | 6,291 | cpp | C++ | core/pipeline/abstractprocessor.cpp | hmsgit/campvis | d97de6a86323866d6a8f81d2a641e3e0443a6b39 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2018-06-19T06:20:01.000Z | 2021-07-31T05:54:25.000Z | core/pipeline/abstractprocessor.cpp | hmsgit/campvis | d97de6a86323866d6a8f81d2a641e3e0443a6b39 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | core/pipeline/abstractprocessor.cpp | hmsgit/campvis | d97de6a86323866d6a8f81d2a641e3e0443a6b39 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // ================================================================================================
//
// This file is part of the CAMPVis Software Framework.
//
// If not explicitly stated otherwise: Copyright (C) 2012-2015, all rights reserved,
// Christian Schulte zu Berge <christian.szb@in.tum.de>
// ... | 33.462766 | 151 | 0.601971 | hmsgit |
d9bcff6b3b8e04f3db5b5ce73bc0de6266bded59 | 4,761 | hpp | C++ | 3rdparty/yas/detail/preprocessor/config.hpp | Satori-Nakamoto/litecash | 09db170a27ddb5de9906f963942f2f18d34ce2e9 | [
"Apache-2.0"
] | 878 | 2021-07-10T19:06:55.000Z | 2022-03-30T15:28:35.000Z | 3rdparty/yas/detail/preprocessor/config.hpp | Satori-Nakamoto/litecash | 09db170a27ddb5de9906f963942f2f18d34ce2e9 | [
"Apache-2.0"
] | 1,824 | 2018-11-08T11:32:58.000Z | 2022-03-28T12:33:03.000Z | 3rdparty/yas/detail/preprocessor/config.hpp | Satori-Nakamoto/litecash | 09db170a27ddb5de9906f963942f2f18d34ce2e9 | [
"Apache-2.0"
] | 216 | 2018-11-12T08:07:21.000Z | 2022-03-08T20:50:19.000Z | # /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002-2011. *
# * (C) Copyright Edward Diener 2011. *
... | 45.342857 | 396 | 0.640202 | Satori-Nakamoto |
d9cabaebe42d618a9913fe0a3370ae12e1e8b40e | 2,494 | cpp | C++ | DSAA_testify/Heap.cpp | Hou-Xiaoxuan/HomeWork | f1dfbbe1ca95e4eaad6c978ec0e581448e235296 | [
"Apache-2.0"
] | null | null | null | DSAA_testify/Heap.cpp | Hou-Xiaoxuan/HomeWork | f1dfbbe1ca95e4eaad6c978ec0e581448e235296 | [
"Apache-2.0"
] | null | null | null | DSAA_testify/Heap.cpp | Hou-Xiaoxuan/HomeWork | f1dfbbe1ca95e4eaad6c978ec0e581448e235296 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
// 偷懒……直接使用vector实现了
// 默认大根堆
template<class Type>
struct Compair
{
bool operator()(const Type& a,const Type& b ){
return a<b;
}
};
template<class Type,class Cmp=Compair<Type> >
class Heap
{
size_t Capacity;
vector<Type> array;//从1开始计数
Cmp cmp;
... | 20.112903 | 76 | 0.461909 | Hou-Xiaoxuan |
d9d1486bedb7f50ae519ee7568a46f41b447d8a0 | 760 | cpp | C++ | lpc2378/src/mng.cpp | bbk012/walle | 2c6a9e5d46eab08d121f87aec99c508d1e182a89 | [
"MIT"
] | null | null | null | lpc2378/src/mng.cpp | bbk012/walle | 2c6a9e5d46eab08d121f87aec99c508d1e182a89 | [
"MIT"
] | null | null | null | lpc2378/src/mng.cpp | bbk012/walle | 2c6a9e5d46eab08d121f87aec99c508d1e182a89 | [
"MIT"
] | null | null | null | /*
*********************************************************************************************************
* LPC 2378
*
* (c) Copyright 2008, Bogdan Kowalczyk, POLAND
* All Rights Reserved
*
*
* File: ... | 30.4 | 109 | 0.357895 | bbk012 |
d9d56e052cf0b6ee08b2d379fd635a1b804e5755 | 2,003 | cpp | C++ | Programming-Contest/Data Structure/LCA(2).cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | Programming-Contest/Data Structure/LCA(2).cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | Programming-Contest/Data Structure/LCA(2).cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | const int MX = 1e6 + 7 ;
const int MXLG = 22 ;
const int INF = 1e8 + 7;
vector<pii>edge[MX] ;
int N , P[MX][MXLG] , L[MX] ;
int dist[MX] , diameter ;
pii leaf ; // two furthest leaf of the tree
void preprocess(int u) {
for( int j = 1 ; (1 << j) <= N ; j++ ) {
if( P[u][j - 1] == -1 ) continue ;
... | 26.706667 | 93 | 0.423864 | ar-pavel |
d9da22ad13dc1311f43ec8e191198cc028829dd1 | 7,628 | cc | C++ | bin/freqt/freqt.cc | lomizandtyd/SPTK-GO | d4f0596106a2bf538a90db60ce5a00b35d5a596c | [
"MIT"
] | 6 | 2018-09-04T01:36:54.000Z | 2019-01-31T08:57:04.000Z | bin/freqt/freqt.cc | lomizandtyd/SPTK-GO | d4f0596106a2bf538a90db60ce5a00b35d5a596c | [
"MIT"
] | 2 | 2018-09-04T06:54:30.000Z | 2018-11-21T07:09:34.000Z | bin/freqt/freqt.cc | lomizandtyd/SPTK-GO | d4f0596106a2bf538a90db60ce5a00b35d5a596c | [
"MIT"
] | 1 | 2018-09-10T15:16:04.000Z | 2018-09-10T15:16:04.000Z | /* ----------------------------------------------------------------- */
/* The Speech Signal Processing Toolkit (SPTK) */
/* developed by SPTK Working Group */
/* http://sp-tk.sourceforge.net/ */
/* -----------------------------... | 41.68306 | 80 | 0.404169 | lomizandtyd |
d9dea80e269c88a5deee6557beaea2ec64cfed0b | 2,705 | cpp | C++ | test/File_CI_test.cpp | jgfoster/SdFat | 22dcd4209b301cd9167fa945d400794da9947503 | [
"MIT"
] | null | null | null | test/File_CI_test.cpp | jgfoster/SdFat | 22dcd4209b301cd9167fa945d400794da9947503 | [
"MIT"
] | null | null | null | test/File_CI_test.cpp | jgfoster/SdFat | 22dcd4209b301cd9167fa945d400794da9947503 | [
"MIT"
] | 1 | 2021-07-01T05:02:36.000Z | 2021-07-01T05:02:36.000Z | /*
bundle config --local path vendor/bundle
bundle install
bundle exec arduino_ci.rb --skip-examples-compilation
bundle exec arduino_ci.rb --skip-unittests
*/
#include "Arduino.h"
#include "ArduinoUnitTests.h"
#include "SdFat.h"
SdFat sd;
File file;
unittest_setup() {
sd.begin(0);
sd.format();
file = sd.open... | 22.172131 | 80 | 0.675786 | jgfoster |
d9e79676041029912f064e084a21cbdc16beda18 | 2,332 | cpp | C++ | ProjectileMotion/FixedTimestampStudyApp.cpp | steffanmouton/PhysicsStudy_AIE_Bootstrap | 1ee994a0b94342049bdb122b9a87a2a25db95ee8 | [
"MIT"
] | 1 | 2019-12-19T21:40:35.000Z | 2019-12-19T21:40:35.000Z | ProjectileMotion/FixedTimestampStudyApp.cpp | steffanmouton/PhysicsStudy_AIE_Bootstrap | 1ee994a0b94342049bdb122b9a87a2a25db95ee8 | [
"MIT"
] | null | null | null | ProjectileMotion/FixedTimestampStudyApp.cpp | steffanmouton/PhysicsStudy_AIE_Bootstrap | 1ee994a0b94342049bdb122b9a87a2a25db95ee8 | [
"MIT"
] | 1 | 2019-11-07T22:34:10.000Z | 2019-11-07T22:34:10.000Z | #include "FixedTimestampStudyApp.h"
#include "Texture.h"
#include "Font.h"
#include "Input.h"
FixedTimestampStudyApp::FixedTimestampStudyApp() {
}
FixedTimestampStudyApp::~FixedTimestampStudyApp() {
}
bool FixedTimestampStudyApp::startup() {
// increase the 2d line count to maximize the number of obj we can dra... | 21.794393 | 115 | 0.69554 | steffanmouton |
d9e95f8fe17a159eade878c344df45d6c95a6641 | 7,694 | hpp | C++ | include/GLEngine/input/Input.hpp | michaelbuerger/GLEngine | cf0bc2d7e1e955c2fcb3fafb154a2af7a5e3cd6b | [
"MIT"
] | 1 | 2019-08-01T04:53:45.000Z | 2019-08-01T04:53:45.000Z | include/GLEngine/input/Input.hpp | michaelbuerger/GLEngine | cf0bc2d7e1e955c2fcb3fafb154a2af7a5e3cd6b | [
"MIT"
] | null | null | null | include/GLEngine/input/Input.hpp | michaelbuerger/GLEngine | cf0bc2d7e1e955c2fcb3fafb154a2af7a5e3cd6b | [
"MIT"
] | 2 | 2020-07-20T20:43:24.000Z | 2020-12-07T06:02:14.000Z | #ifndef GLE_INPUT_HPP
#define GLE_INPUT_HPP
#include "GLEngine/graphics/graphics.hpp"
#include <glm/glm.hpp>
#include <functional>
namespace GLEngine
{
/* --- Keyboard --- */
enum GLEkey
{
GLE_KEY_UNKNOWN = GLFW_KEY_UNKNOWN, // Any unknown key
GLE_KEY_SPACE = GLFW_KEY_SPACE,
GLE_KEY_APOSTROPHE = GLFW_... | 36.122066 | 169 | 0.755784 | michaelbuerger |
d9ebf63605b7f0634f0bc971a7ebe5976110b824 | 1,666 | cpp | C++ | Pinocchio/indexer.cpp | ChiahongHong/Pinocchio | f2ba81f52cfb3372a11d5bae1bf26f86042b99a0 | [
"MIT"
] | 102 | 2015-02-02T12:30:42.000Z | 2020-06-05T01:00:33.000Z | Pinocchio/indexer.cpp | ChiahongHong/Pinocchio | f2ba81f52cfb3372a11d5bae1bf26f86042b99a0 | [
"MIT"
] | 1 | 2017-08-03T12:14:06.000Z | 2017-08-03T18:08:05.000Z | Pinocchio/indexer.cpp | ChiahongHong/Pinocchio | f2ba81f52cfb3372a11d5bae1bf26f86042b99a0 | [
"MIT"
] | 39 | 2015-06-13T20:17:57.000Z | 2020-06-05T21:41:45.000Z | /* This file is part of the Pinocchio automatic rigging library.
Copyright (C) 2007 Ilya Baran (ibaran@mit.edu)
This library 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
vers... | 29.75 | 82 | 0.606242 | ChiahongHong |
d9ec8401745bb105dc8bc65acafd1e8ee335f2b7 | 270 | cpp | C++ | PlanetLab/src/main.cpp | Thomas-Zorroche/Procedural-Planets | 44f8a9fa3120d11d137e4f499142333e81ed68ce | [
"MIT"
] | null | null | null | PlanetLab/src/main.cpp | Thomas-Zorroche/Procedural-Planets | 44f8a9fa3120d11d137e4f499142333e81ed68ce | [
"MIT"
] | null | null | null | PlanetLab/src/main.cpp | Thomas-Zorroche/Procedural-Planets | 44f8a9fa3120d11d137e4f499142333e81ed68ce | [
"MIT"
] | null | null | null | #include "engine/Window.hpp"
#include "editor/Application.hpp"
int main(int argc, char** argv)
{
PlanetLab::Application app(argc, argv);
if (!app.GetWindow().Init())
return 1;
mainloop(app.GetWindow());
glfwTerminate();
return 0;
}
| 15 | 43 | 0.618519 | Thomas-Zorroche |
d9f060f6356c73fe2a8856ebdacfe3af31f4fc95 | 1,733 | hh | C++ | include/ftk/numeric/gradient.hh | lxAltria/ftk | 11830bb5b4469ed1e7c94c3c3235a2ebfbd46145 | [
"MIT"
] | null | null | null | include/ftk/numeric/gradient.hh | lxAltria/ftk | 11830bb5b4469ed1e7c94c3c3235a2ebfbd46145 | [
"MIT"
] | null | null | null | include/ftk/numeric/gradient.hh | lxAltria/ftk | 11830bb5b4469ed1e7c94c3c3235a2ebfbd46145 | [
"MIT"
] | null | null | null | #ifndef _FTK_GRADIENT_HH
#define _FTK_GRADIENT_HH
#include <ftk/numeric/linear_solver.hh>
namespace ftk {
template <typename T>
__device__ __host__
void gradient_2dsimplex2(const T X[3][2], const T f[3], T gradf[2])
{
const T A[3][2] = {
{X[1][0] - X[0][0], X[1][1] - X[0][1]},
{X[2][0] - X[1][0], X[2][1] ... | 26.257576 | 73 | 0.450664 | lxAltria |
d9f1dab5aeb1111d962a7fe2aeb8d4abc1ee0f7b | 1,069 | cpp | C++ | lib/tags.cpp | guruofquality/gras | a93956bfc9884f9a1c53a16e12cd7e7cd86584c4 | [
"BSL-1.0"
] | 9 | 2015-07-24T15:10:14.000Z | 2021-11-08T13:18:20.000Z | lib/tags.cpp | guruofquality/gras | a93956bfc9884f9a1c53a16e12cd7e7cd86584c4 | [
"BSL-1.0"
] | 3 | 2015-02-02T01:57:26.000Z | 2018-07-20T04:52:09.000Z | lib/tags.cpp | guruofquality/gras | a93956bfc9884f9a1c53a16e12cd7e7cd86584c4 | [
"BSL-1.0"
] | 4 | 2015-01-12T23:12:49.000Z | 2021-09-23T18:10:58.000Z | // Copyright (C) by Josh Blum. See LICENSE.txt for licensing information.
#include <gras/tags.hpp>
using namespace gras;
Tag::Tag(const item_index_t &offset, const PMCC &object):
offset(offset), object(object)
{
//NOP
}
bool gras::operator<(const Tag &lhs, const Tag &rhs)
{
return lhs.offset < rhs.offse... | 19.436364 | 73 | 0.644528 | guruofquality |
d9f679a6ae5eb5a3bdfc733325ece4006d6556d6 | 624 | hpp | C++ | src/extra_foam/include/f_statistics.hpp | zhujun98/EXtra-foam | 680d6d7fd4afdcbc41eb8e440feac54b6cecab33 | [
"BSD-3-Clause"
] | 7 | 2019-11-27T09:31:37.000Z | 2022-02-12T21:28:49.000Z | src/extra_foam/include/f_statistics.hpp | zhujun98/EXtra-foam | 680d6d7fd4afdcbc41eb8e440feac54b6cecab33 | [
"BSD-3-Clause"
] | 172 | 2019-12-03T07:56:02.000Z | 2022-03-25T15:46:45.000Z | src/extra_foam/include/f_statistics.hpp | zhujun98/EXtra-foam | 680d6d7fd4afdcbc41eb8e440feac54b6cecab33 | [
"BSD-3-Clause"
] | 9 | 2019-11-27T09:32:38.000Z | 2022-01-05T09:56:10.000Z | /**
* Distributed under the terms of the BSD 3-Clause License.
*
* The full license is in the file LICENSE, distributed with this software.
*
* Author: Jun Zhu <jun.zhu@xfel.eu>
* Copyright (C) European X-Ray Free-Electron Laser Facility GmbH.
* All rights reserved.
*/
#ifndef EXTRA_FOAM_F_STATISTICS_HPP
#defin... | 18.909091 | 75 | 0.748397 | zhujun98 |
d9f6f71c8311661467d1a7c4508cc0a2069d272e | 2,540 | cpp | C++ | src/core.cpp | DonRomanos/JustAnotherInterviewTask | 7571072dd9b73805f4dc064d8a1ea8376e036c1e | [
"MIT"
] | null | null | null | src/core.cpp | DonRomanos/JustAnotherInterviewTask | 7571072dd9b73805f4dc064d8a1ea8376e036c1e | [
"MIT"
] | null | null | null | src/core.cpp | DonRomanos/JustAnotherInterviewTask | 7571072dd9b73805f4dc064d8a1ea8376e036c1e | [
"MIT"
] | null | null | null | #include "core.hpp"
#include <QImageReader>
#include <algorithm>
namespace fs = std::filesystem;
namespace
{
// Supporting both linux and windows, so we need char and wchar ...
QString toQString(const char* in) { return QString::fromStdString(in); }
QString toQString(const wchar_t* in) { return QString::fromStdWS... | 28.863636 | 171 | 0.720079 | DonRomanos |
d9f9789576b016daec2750de9bb4514ec7125f18 | 1,279 | cpp | C++ | Algorithm/coinmove/coinmove.cpp | dkswnkk/DongA-Univ | 078866eef9187b319b85194c488ec44512764a36 | [
"MIT"
] | null | null | null | Algorithm/coinmove/coinmove.cpp | dkswnkk/DongA-Univ | 078866eef9187b319b85194c488ec44512764a36 | [
"MIT"
] | null | null | null | Algorithm/coinmove/coinmove.cpp | dkswnkk/DongA-Univ | 078866eef9187b319b85194c488ec44512764a36 | [
"MIT"
] | null | null | null | // Copyright © 2021 안주형. All rights reserved.
// https://github.com/dkswnkk
// 2021학년 동아대학교 알고리즘과목 과제
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
vector<vector<int>>arr;
int k, p, s;
bool pre_check(int pre, int l) {
for (int i = 1; i <= k; i++) {
if (l == i) continu... | 22.051724 | 63 | 0.437842 | dkswnkk |
8a0294d9569cdcf9c42aac5828c8ed8547f94512 | 941 | cpp | C++ | leetcode/Greedy/1005.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | leetcode/Greedy/1005.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | leetcode/Greedy/1005.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
#include<numeric>
using namespace std;
class Solution {
public:
int largestSumAfterKNegations(vector<int>& A, int K) {
sort(A.begin(), A.end());
int neg = 0, zero = 0;
for(int i = 0; i < A.size(); i++){
if(A[i] < 0){
neg++;... | 22.95122 | 60 | 0.501594 | codehuanglei |
8a02eb190989563289169ad6f6c7d5468e66ec5e | 1,676 | hpp | C++ | include/Ray.hpp | TheExeQ/CommonUtilities | 3abf9f9575b925aaa592d9eb7ce86665eecbba6f | [
"MIT"
] | null | null | null | include/Ray.hpp | TheExeQ/CommonUtilities | 3abf9f9575b925aaa592d9eb7ce86665eecbba6f | [
"MIT"
] | null | null | null | include/Ray.hpp | TheExeQ/CommonUtilities | 3abf9f9575b925aaa592d9eb7ce86665eecbba6f | [
"MIT"
] | null | null | null | #pragma once
#include "Vector3.hpp"
namespace CommonUtilities {
template<class T>
class Ray
{
public:
// Default constructor: there is no ray, the origin and direction are the
// zero vector.
Ray();
// Copy constructor.
Ray(const Ray<T>& aRay);
// Constructor that takes two points that define the ray... | 23.942857 | 114 | 0.698091 | TheExeQ |
8a0fb44352045b8e9660e70d830768a07069bf73 | 734 | cpp | C++ | drivers/ports.cpp | lolblat/OrOS | baf253c50c506a099112232329e4ca126f674340 | [
"MIT"
] | 4 | 2018-03-18T20:26:43.000Z | 2018-09-20T13:52:38.000Z | drivers/ports.cpp | lolblat/OrOS | baf253c50c506a099112232329e4ca126f674340 | [
"MIT"
] | 1 | 2018-01-15T06:57:39.000Z | 2018-01-15T06:57:39.000Z | drivers/ports.cpp | lolblat/OrOS | baf253c50c506a099112232329e4ca126f674340 | [
"MIT"
] | null | null | null | //
// Created by lolblat on 12/01/18.
//
#include "ports.h"
using namespace drivers;
Ports::Ports(u32 port_number)
{
this->m_port_number = port_number;
}
Ports::Ports()
{
m_port_number = 0;
}
u8 Ports::port_byte_in()
{
u8 res;
__asm__("in %%dx, %%al" : "=a" (res) : "d" (m_port_number));
return res;
... | 18.35 | 67 | 0.600817 | lolblat |
8a106b86895a04d1138c3c799b0a65566d4bfb84 | 442 | cc | C++ | src/exports.cc | wilhelmmatilainen/clostridium | 59251b341d4275b50b7223535094fa783e22d90d | [
"0BSD"
] | null | null | null | src/exports.cc | wilhelmmatilainen/clostridium | 59251b341d4275b50b7223535094fa783e22d90d | [
"0BSD"
] | null | null | null | src/exports.cc | wilhelmmatilainen/clostridium | 59251b341d4275b50b7223535094fa783e22d90d | [
"0BSD"
] | null | null | null | #include <nan/nan.h>
#include "clostridium.h"
#define EXPORT(name) Nan::Set(target, NAN_TEXT(name), Nan::GetFunction(Nan::New<v8::FunctionTemplate>(clostridium::name)).ToLocalChecked())
#define EXPORT_INT(name, value) target->ForceSet(NAN_TEXT(name), Nan::New<v8::Integer>(value), v8::ReadOnly)
NAN_MODULE_INIT(Init) ... | 26 | 139 | 0.748869 | wilhelmmatilainen |
8a11ea15dcad6115ba548e70ba9ce10ed26bccc6 | 4,545 | cc | C++ | src/thread_local_heap.cc | ZeroKoriel/MemoryManagement | 9881133bdc302f4e9366f000fffb9bd4106c3b34 | [
"Apache-2.0"
] | 1,494 | 2018-07-05T02:48:53.000Z | 2022-03-30T12:42:00.000Z | src/thread_local_heap.cc | ZeroKoriel/MemoryManagement | 9881133bdc302f4e9366f000fffb9bd4106c3b34 | [
"Apache-2.0"
] | 67 | 2018-02-14T13:20:19.000Z | 2022-02-12T09:56:31.000Z | src/thread_local_heap.cc | ZeroKoriel/MemoryManagement | 9881133bdc302f4e9366f000fffb9bd4106c3b34 | [
"Apache-2.0"
] | 68 | 2018-02-16T21:51:47.000Z | 2022-02-08T13:34:45.000Z | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil -*-
// Copyright 2019 The Mesh Authors. All rights reserved.
// Use of this source code is governed by the Apache License,
// Version 2.0, that can be found in the LICENSE file.
#include "thread_local_heap.h"
namespace mesh {
#ifdef MESH_HAVE_TLS
__thread Th... | 27.713415 | 116 | 0.716612 | ZeroKoriel |
8a1299e5ee4285596c8aca651d72a327872a8cff | 2,304 | cpp | C++ | gpugi/renderer/debugrenderer/raytracemeshinfo.cpp | Wumpf/gpugi | 55fb5d9cf12b34b22e1df0d54c64c1c6e74d8e58 | [
"MIT"
] | 14 | 2015-06-22T06:36:27.000Z | 2020-07-23T20:56:44.000Z | gpugi/renderer/debugrenderer/raytracemeshinfo.cpp | Wumpf/gpugi | 55fb5d9cf12b34b22e1df0d54c64c1c6e74d8e58 | [
"MIT"
] | 2 | 2015-02-20T14:21:53.000Z | 2015-02-20T14:22:02.000Z | gpugi/renderer/debugrenderer/raytracemeshinfo.cpp | Wumpf/gpugi | 55fb5d9cf12b34b22e1df0d54c64c1c6e74d8e58 | [
"MIT"
] | 4 | 2016-04-30T13:53:46.000Z | 2021-12-20T14:52:57.000Z | #include "raytracemeshinfo.hpp"
#include <glhelper/screenalignedtriangle.hpp>
#include <glhelper/buffer.hpp>
#include "control/scriptprocessing.hpp"
#include "control/globalconfig.hpp"
#include "scene/scene.hpp"
const std::string RaytraceMeshInfo::Name = "Raytrace Meshinfo";
RaytraceMeshInfo::RaytraceMeshInfo(Render... | 38.4 | 133 | 0.742188 | Wumpf |
8a196d4af6b37d3521c72f19cc40973dbb7b725c | 393 | cpp | C++ | editor/editor_personaje_chell.cpp | joaquinbf/TPFinalPortal | 27eed2d1c52297b810a4ad30a54f3267083b9c42 | [
"Apache-2.0"
] | null | null | null | editor/editor_personaje_chell.cpp | joaquinbf/TPFinalPortal | 27eed2d1c52297b810a4ad30a54f3267083b9c42 | [
"Apache-2.0"
] | null | null | null | editor/editor_personaje_chell.cpp | joaquinbf/TPFinalPortal | 27eed2d1c52297b810a4ad30a54f3267083b9c42 | [
"Apache-2.0"
] | null | null | null | #include "editor_personaje_chell.h"
#include "editor_defines.h"
PersonajeChell::PersonajeChell(unsigned &contador)
: ItemGrafico(DIR_IMAGEN_CHELL_A, IDCLASS_CHELL),
contador(contador)
{
this->sprite = this->sprite.scaled(CELL_SIZE_W, CELL_SIZE_H * 2);
this->setPixmap(this->sprite);
this->contador... | 23.117647 | 69 | 0.712468 | joaquinbf |
8a2079e8091612c166e5b26f312a51888c85d679 | 2,188 | cpp | C++ | src/AliceUI/win32/AUIClipboard_win32.cpp | DevHwan/aliceui | 9ee7d9424c06d4e063e55b486e9a78dfcebf8f86 | [
"MIT"
] | 1 | 2020-12-16T13:42:14.000Z | 2020-12-16T13:42:14.000Z | src/AliceUI/win32/AUIClipboard_win32.cpp | DevHwan/aliceui | 9ee7d9424c06d4e063e55b486e9a78dfcebf8f86 | [
"MIT"
] | null | null | null | src/AliceUI/win32/AUIClipboard_win32.cpp | DevHwan/aliceui | 9ee7d9424c06d4e063e55b486e9a78dfcebf8f86 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "AUIClipboard_win32.h"
#ifdef WIN32
class AutoClipboard final
{
public:
AutoClipboard()
: m_bValid( false )
{
if (!::OpenClipboard(NULL))
throw std::runtime_error("Failed to open clipboard");
else
m_bValid = true;
}
~AutoClipboa... | 21.663366 | 97 | 0.511883 | DevHwan |
8a26095a4ea57815ff44fb3bb92a8d930672c633 | 1,242 | hpp | C++ | include/gridtools/stencil_composition/backend_cuda/fused_mss_loop_cuda.hpp | wdeconinck/gridtools | 1811413f6e22a8f1205e542f5354daaae7c5554b | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/stencil_composition/backend_cuda/fused_mss_loop_cuda.hpp | wdeconinck/gridtools | 1811413f6e22a8f1205e542f5354daaae7c5554b | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/stencil_composition/backend_cuda/fused_mss_loop_cuda.hpp | wdeconinck/gridtools | 1811413f6e22a8f1205e542f5354daaae7c5554b | [
"BSD-3-Clause"
] | 1 | 2019-06-14T10:35:50.000Z | 2019-06-14T10:35:50.000Z | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include "../../meta.hpp"
#include "../mss_functor.hpp"
/**@file
* @brief fused mss loop implementations for the c... | 31.846154 | 109 | 0.701288 | wdeconinck |
8a29c404de0f08f64d10a276ee143eefcddbc5bd | 5,338 | cc | C++ | src/engine/assets/asset_interfaces.cc | ProjectSulphur/ProjectSulphur | cb9ee8298f5020fda4a9130802e72034408f050f | [
"Apache-2.0"
] | 11 | 2017-12-19T14:33:02.000Z | 2022-03-26T00:34:48.000Z | src/engine/assets/asset_interfaces.cc | ProjectSulphur/ProjectSulphur | cb9ee8298f5020fda4a9130802e72034408f050f | [
"Apache-2.0"
] | 1 | 2018-05-28T10:32:32.000Z | 2018-05-28T10:32:35.000Z | src/engine/assets/asset_interfaces.cc | ProjectSulphur/ProjectSulphur | cb9ee8298f5020fda4a9130802e72034408f050f | [
"Apache-2.0"
] | 1 | 2021-01-25T11:31:57.000Z | 2021-01-25T11:31:57.000Z | #include "engine/assets/asset_interfaces.h"
#include <foundation/logging/logger.h>
namespace sulphur
{
namespace engine
{
//--------------------------------------------------------------------------------
GPUAssetHandle::GPUAssetHandle():
ptr_(0x0), manager_(nullptr)
{
}
//--------------... | 28.698925 | 108 | 0.400337 | ProjectSulphur |
8a2b70ccc3ba70b837a2ff8b923543a5a186693e | 386 | cpp | C++ | Codes/Geometry/Generic/VectorMethods.cpp | cjtoribio/Algorithms | 78499613a9b018eb5e489307b14e31e5fe8227e3 | [
"MIT"
] | 18 | 2015-05-24T20:28:46.000Z | 2021-01-27T02:34:43.000Z | Codes/Geometry/Generic/VectorMethods.cpp | cjtoribio/Algorithms | 78499613a9b018eb5e489307b14e31e5fe8227e3 | [
"MIT"
] | null | null | null | Codes/Geometry/Generic/VectorMethods.cpp | cjtoribio/Algorithms | 78499613a9b018eb5e489307b14e31e5fe8227e3 | [
"MIT"
] | 4 | 2015-05-24T20:28:32.000Z | 2021-01-30T04:04:55.000Z | /// validates if c is a vector inside the angle aToB inclusive,
/// for exclusive remove the first line.
template<class F>
bool betweenAngle(Point<F> a, Point<F> b, Point<F> c){
if( ((a^c) == 0 && (a*c) > 0) || ((b^c) == 0 && (b*c) > 0) )return 1;
if( (a^b) > 0 )return (a^c) > 0 && (c^b) > 0;
if( (a^b) < 0 )
retu... | 35.090909 | 70 | 0.510363 | cjtoribio |
8a308caa7f80607bb7387c3cd65363b18fc50037 | 1,945 | cpp | C++ | Engine/Light.cpp | dynamiquel/Realtime-Renderer | 906d6337dd4729c38b4a77e80a2f3e1274249d69 | [
"MIT"
] | null | null | null | Engine/Light.cpp | dynamiquel/Realtime-Renderer | 906d6337dd4729c38b4a77e80a2f3e1274249d69 | [
"MIT"
] | null | null | null | Engine/Light.cpp | dynamiquel/Realtime-Renderer | 906d6337dd4729c38b4a77e80a2f3e1274249d69 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Filename: lightclass.cpp
////////////////////////////////////////////////////////////////////////////////
#include "Light.h"
Light::Light()
{
}
Light::Light(const Light& other)
{
}
Light::~Light()
{
}
void L... | 18.52381 | 103 | 0.630848 | dynamiquel |
8a36b723cb2ac03278b4b2e9caf8bc15bccb108c | 4,049 | hpp | C++ | irohad/pending_txs_storage/impl/pending_txs_storage_impl.hpp | 132/iroha | 66e1a490dc8917530020c53d162c573571deafd3 | [
"Apache-2.0"
] | null | null | null | irohad/pending_txs_storage/impl/pending_txs_storage_impl.hpp | 132/iroha | 66e1a490dc8917530020c53d162c573571deafd3 | [
"Apache-2.0"
] | 8 | 2017-12-25T05:25:58.000Z | 2018-01-20T10:12:45.000Z | irohad/pending_txs_storage/impl/pending_txs_storage_impl.hpp | 132/iroha | 66e1a490dc8917530020c53d162c573571deafd3 | [
"Apache-2.0"
] | 1 | 2018-01-18T18:23:09.000Z | 2018-01-18T18:23:09.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_PENDING_TXS_STORAGE_IMPL_HPP
#define IROHA_PENDING_TXS_STORAGE_IMPL_HPP
#include <list>
#include <set>
#include <shared_mutex>
#include <unordered_map>
#include <rxcpp/rx.hpp>
#include "interfaces/iroha... | 36.809091 | 80 | 0.72166 | 132 |
8a3704ab00f04eef949541e3e5e7068310d7405a | 1,382 | hpp | C++ | include/prcxx/IObservable.hpp | vt4a2h/prcxx | 04794048f21cec548fa750b78239f920eef1bb60 | [
"MIT"
] | 1 | 2022-01-04T17:55:55.000Z | 2022-01-04T17:55:55.000Z | include/prcxx/IObservable.hpp | vt4a2h/prcxx | 04794048f21cec548fa750b78239f920eef1bb60 | [
"MIT"
] | null | null | null | include/prcxx/IObservable.hpp | vt4a2h/prcxx | 04794048f21cec548fa750b78239f920eef1bb60 | [
"MIT"
] | null | null | null | //
// MIT License
//
// Copyright (c) 2020-present Vitaly Fanaskov
//
// prcxx -- Yet another C++ property library
// Project home: https://github.com/vt4a2h/prcxx
//
// See LICENSE file for the further details.
//
#pragma once
#include <vector>
#include <memory>
#include <functional>
#include <any>
#include "prcxx/E... | 21.261538 | 72 | 0.68958 | vt4a2h |
8a3b7b643da179475e396b4abde6c514b99424ae | 18,071 | hpp | C++ | include/codegen/include/System/Xml/XmlEncodedRawTextWriter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Xml/XmlEncodedRawTextWriter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Xml/XmlEncodedRawTextWriter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:19 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Xml.XmlRawWriter
#include "System/Xml/XmlRawWriter.hp... | 49.105978 | 142 | 0.730286 | Futuremappermydud |
8a3b950c2eb873ce4a8c8483ab6d7291884ab7b3 | 1,641 | cpp | C++ | utilities/Lathe.cpp | shaungoh01/-Uni-Computer-Graphic-Assignemny | ec5098c1c2f30f3abacb8de663511f25a8b64d0b | [
"MIT"
] | null | null | null | utilities/Lathe.cpp | shaungoh01/-Uni-Computer-Graphic-Assignemny | ec5098c1c2f30f3abacb8de663511f25a8b64d0b | [
"MIT"
] | 1 | 2019-09-06T07:46:49.000Z | 2019-09-06T07:46:49.000Z | utilities/Lathe.cpp | shaungoh01/-Uni-Computer-Graphic-Assignemny | ec5098c1c2f30f3abacb8de663511f25a8b64d0b | [
"MIT"
] | 3 | 2016-01-09T13:50:55.000Z | 2021-05-14T10:21:49.000Z | #include "Lathe.hpp"
#include "GL/gl.h"
Lathe::Lathe(std::vector<vec2> points, int segments)
{
for (auto &p : points) {
lathePoints.push_back(getCircle(p[0], segments, p[1]));
}
}
Lathe::~Lathe()
{
//dtor
}
void Lathe::draw()
{
// draw points:
/*
for (auto &lp : lathePoints) {
... | 25.640625 | 70 | 0.482633 | shaungoh01 |
8a3edbabb1202fa48577152f9b47249a10c40e20 | 140,021 | cpp | C++ | Acceleration/memcached/hls/memcachedPipeline_prj/solution1/syn/systemc/memcachedPipeline.cpp | pratik0509/HLSx_Xilinx_edit | 14bdbcdb3107aa225e46a0bfe7d4a2a426e9e1ca | [
"BSD-3-Clause"
] | null | null | null | Acceleration/memcached/hls/memcachedPipeline_prj/solution1/syn/systemc/memcachedPipeline.cpp | pratik0509/HLSx_Xilinx_edit | 14bdbcdb3107aa225e46a0bfe7d4a2a426e9e1ca | [
"BSD-3-Clause"
] | null | null | null | Acceleration/memcached/hls/memcachedPipeline_prj/solution1/syn/systemc/memcachedPipeline.cpp | pratik0509/HLSx_Xilinx_edit | 14bdbcdb3107aa225e46a0bfe7d4a2a426e9e1ca | [
"BSD-3-Clause"
] | 1 | 2018-11-13T17:59:49.000Z | 2018-11-13T17:59:49.000Z | // ==============================================================
// RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
// Version: 2018.2
// Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved.
//
// ===========================================================
#include "memcachedPipel... | 57.55076 | 573 | 0.813128 | pratik0509 |
8a3f346283f8d4ba3c229e4b795ba432ca5cf8e2 | 1,298 | cpp | C++ | src/question40.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question40.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question40.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
private:
vector<vector<int>> ans;
vector<int> tmp;
vector<int> vis;
void dfs(vector<int>& nums, int idx, int diff){
if(diff == 0){
ans.push_back(tmp);
return;
}
... | 23.6 | 84 | 0.483821 | lxb1226 |
8a430e3be1d597e07162662b48f9418d73f3cbd7 | 10,026 | cpp | C++ | samples/05-Models/src/EffectPSO.cpp | BredaUniversityGames/LearningDirectX12 | 895166a6ebec3836238e25f651a5718c0c4e2deb | [
"MIT"
] | 366 | 2018-01-23T22:06:50.000Z | 2022-03-27T22:38:57.000Z | samples/05-Models/src/EffectPSO.cpp | BredaUniversityGames/LearningDirectX12 | 895166a6ebec3836238e25f651a5718c0c4e2deb | [
"MIT"
] | 16 | 2018-09-15T12:33:54.000Z | 2022-03-31T09:51:35.000Z | samples/05-Models/src/EffectPSO.cpp | BredaUniversityGames/LearningDirectX12 | 895166a6ebec3836238e25f651a5718c0c4e2deb | [
"MIT"
] | 55 | 2018-09-15T13:58:41.000Z | 2022-03-22T07:05:10.000Z | #include <EffectPSO.h>
#include <dx12lib/CommandList.h>
#include <dx12lib/Device.h>
#include <dx12lib/Helpers.h>
#include <dx12lib/Material.h>
#include <dx12lib/PipelineStateObject.h>
#include <dx12lib/RootSignature.h>
#include <dx12lib/VertexTypes.h>
#include <d3dcompiler.h>
#include <d3dx12.h>
#include <wrl/client.... | 46.416667 | 151 | 0.716338 | BredaUniversityGames |
8a4804a72fee074d80fff9f20f175f0177d6ee26 | 3,479 | cpp | C++ | GD4GameWorld/Source/Entity/Projectile.cpp | Alex-Jay/2d_sfml_game | 3872c92d1e17b68c2bf2c78f13e32b2bf80a605a | [
"MIT"
] | 1 | 2018-12-18T12:00:57.000Z | 2018-12-18T12:00:57.000Z | GD4GameWorld/Source/Entity/Projectile.cpp | Alex-Jay/k-arnage_2d_sfml_game | 3872c92d1e17b68c2bf2c78f13e32b2bf80a605a | [
"MIT"
] | null | null | null | GD4GameWorld/Source/Entity/Projectile.cpp | Alex-Jay/k-arnage_2d_sfml_game | 3872c92d1e17b68c2bf2c78f13e32b2bf80a605a | [
"MIT"
] | null | null | null | #include "Entity/Projectile.hpp"
#include "Node/EmitterNode.hpp"
#include "DataTable/DataTables.hpp"
#include "Structural/Utility.hpp"
#include "Structural/ResourceHolder.hpp"
#include "Entity/Pickup.hpp"
#include "Entity/Explosion.hpp"
#include <SFML/Graphics/RenderTarget.hpp>
#include <SFML/Graphics/RenderStates.hpp... | 20.957831 | 111 | 0.74073 | Alex-Jay |
8a4f396efb98b742b03e911c5ac6dd8a36dba293 | 562 | cc | C++ | clients/zukou/opengl-element-array-buffer.cc | shierote/zen | a3cd9f1cc559b9546e90bcd2a1c79d0de2f07dd8 | [
"Apache-2.0"
] | 6 | 2022-02-09T12:49:03.000Z | 2022-02-21T00:29:10.000Z | clients/zukou/opengl-element-array-buffer.cc | shierote/zen | a3cd9f1cc559b9546e90bcd2a1c79d0de2f07dd8 | [
"Apache-2.0"
] | 22 | 2021-11-18T06:21:02.000Z | 2022-02-16T22:59:44.000Z | clients/zukou/opengl-element-array-buffer.cc | shierote/zen | a3cd9f1cc559b9546e90bcd2a1c79d0de2f07dd8 | [
"Apache-2.0"
] | 3 | 2021-11-11T06:34:47.000Z | 2022-01-19T01:02:44.000Z | #include <zukou.h>
namespace zukou {
OpenGLElementArrayBuffer::OpenGLElementArrayBuffer(App *app, size_t size)
: Buffer(app, size)
{
element_array_buffer_ = zgn_opengl_create_element_array_buffer(app->opengl());
}
OpenGLElementArrayBuffer::~OpenGLElementArrayBuffer()
{
zgn_opengl_element_array_buffer_destroy(... | 24.434783 | 80 | 0.80605 | shierote |
a436b856cfbcc5b8de56896846db8a827a4ac6bb | 189 | hxx | C++ | sdk/xsm/include/xsm/parser/Assembler.hxx | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | sdk/xsm/include/xsm/parser/Assembler.hxx | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | sdk/xsm/include/xsm/parser/Assembler.hxx | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | #pragma once
#include "..\assembler\assembler\MacroAssembler.h"
#include <stdio.h>
#include <string.h>
#include <limits.h>
using namespace JSC;
using namespace JSC::X86Registers;
| 18.9 | 51 | 0.724868 | qianxj |
a439006e7cdc40ff505da7b54ad2f4cb5ef7c116 | 184 | cpp | C++ | libz80asm/tools/labelmanager/labelmanager.cpp | maxkofler/Z80Asm | 4df2d87bd377b62d653b72ae0889389cea55edea | [
"Apache-2.0"
] | null | null | null | libz80asm/tools/labelmanager/labelmanager.cpp | maxkofler/Z80Asm | 4df2d87bd377b62d653b72ae0889389cea55edea | [
"Apache-2.0"
] | null | null | null | libz80asm/tools/labelmanager/labelmanager.cpp | maxkofler/Z80Asm | 4df2d87bd377b62d653b72ae0889389cea55edea | [
"Apache-2.0"
] | null | null | null | #include "tools/labelmanager.h"
LabelManager::LabelManager(){
FUN();
this->_labels.clear();
this->_undefinedUsages.clear();
}
LabelManager::~LabelManager(){
FUN();
} | 15.333333 | 35 | 0.652174 | maxkofler |
a4391c54dd9f37723236ac1884ae8ab8957f4b67 | 938 | cc | C++ | test/map.cc | wyhuo123/lib | be802f060a418e28d95d3a6d3b8b2812565e2123 | [
"MIT"
] | null | null | null | test/map.cc | wyhuo123/lib | be802f060a418e28d95d3a6d3b8b2812565e2123 | [
"MIT"
] | null | null | null | test/map.cc | wyhuo123/lib | be802f060a418e28d95d3a6d3b8b2812565e2123 | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <string>
#include <string.h>
using namespace std;
// typedef map<int, string> sub_map;
// typedef map<int, sub_map> main_map;
// int main(int argc, char const *argv[])
// {
// main_map m;
// m[1][1] = "a";
// m[1][2] = "b";
// cout << m[1][1] << " " << m[1][2] << end... | 13.4 | 47 | 0.527719 | wyhuo123 |
a439a256bc4a08528186bde9070df33c882c14fe | 599 | cc | C++ | Binary_search/33.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Binary_search/33.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Binary_search/33.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | class Solution {
public:
int search(vector<int>& nums, int target) {
int n = nums.size();
int lo = 0;
int hi = n-1;
int mid = 0;
while (lo<=hi){
mid = (lo+hi)/2;
if (nums[mid]==target) return mid;
if (nums[mid]>=nums[lo]){
... | 24.958333 | 71 | 0.392321 | guohaoqiang |
a43ba33540ff5c4d1059933242d9f48e66df2fdf | 3,862 | cpp | C++ | foo_dotnet_component_host/host/delayed_installation.cpp | TheQwertiest/foo_dotnet_component_host | f849849b591a5d85b4bc12790123dc40aaf24f93 | [
"MIT"
] | 4 | 2021-12-01T18:54:26.000Z | 2022-03-30T13:16:17.000Z | foo_dotnet_component_host/host/delayed_installation.cpp | TheQwertiest/foo_dotnet_component_host | f849849b591a5d85b4bc12790123dc40aaf24f93 | [
"MIT"
] | 1 | 2021-11-29T13:25:14.000Z | 2022-01-16T22:54:57.000Z | foo_dotnet_component_host/host/delayed_installation.cpp | TheQwertiest/foo_dotnet_component_host | f849849b591a5d85b4bc12790123dc40aaf24f93 | [
"MIT"
] | null | null | null | #include <stdafx.h>
#include "delayed_installation.h"
#include <convert/to_net.h>
#include <component_paths.h>
using namespace System::IO;
namespace
{
void ClearDelayedStatus( String ^ componentName )
{
auto toRemoveFile = Path::Combine( Qwr::DotnetHost::Convert::ToNet::ToValue( Qwr::DotnetHost::TempDir_Compo... | 30.896 | 147 | 0.653547 | TheQwertiest |
a44a0b373f0bde75885c640bd5f1f1ff3d765ad5 | 818 | cc | C++ | nnet/symbol_generator.cc | jsharf/math | f9ecfc4325a2685c2d0d49a8469971dc3146212d | [
"MIT"
] | 1 | 2019-12-02T07:18:50.000Z | 2019-12-02T07:18:50.000Z | nnet/symbol_generator.cc | jsharf/plasticity | f9ecfc4325a2685c2d0d49a8469971dc3146212d | [
"MIT"
] | null | null | null | nnet/symbol_generator.cc | jsharf/plasticity | f9ecfc4325a2685c2d0d49a8469971dc3146212d | [
"MIT"
] | null | null | null | #include "nnet/symbol_generator.h"
namespace nnet {
namespace internal {
size_t Flatten2d(size_t width, size_t height, size_t row, size_t col) {
return row * width + col;
}
size_t Unflatten2dRow(size_t width, size_t height, size_t i) {
return i / width;
}
size_t Unflatten2dCol(size_t width, size_t height, size_... | 26.387097 | 80 | 0.717604 | jsharf |
a44d69016c8a811ef178caf55773f3d99744b2e5 | 2,378 | cpp | C++ | problem/Array/Generate all sequences such that.cpp | mechusatveer/coding-questions | a86b41f753ffd70001357ab059ee0cb63c7914ff | [
"MIT"
] | null | null | null | problem/Array/Generate all sequences such that.cpp | mechusatveer/coding-questions | a86b41f753ffd70001357ab059ee0cb63c7914ff | [
"MIT"
] | null | null | null | problem/Array/Generate all sequences such that.cpp | mechusatveer/coding-questions | a86b41f753ffd70001357ab059ee0cb63c7914ff | [
"MIT"
] | null | null | null | /*
Given an integer sequence like 2,1 5,4 6, generate one sequences such that s1 < s2 >s3 < s4 >s5 <s6 ...
*/
/*
solution1: sort the array at first, then interleave the first half and second half.
O(nlogn) time, O(1) space
solution2: put the array to a min heap. Pop elements to all even positions, then all odd pos... | 18.724409 | 122 | 0.571068 | mechusatveer |
a44f6c9087bdf064b987b75786cbee38540feeca | 676 | cpp | C++ | 1692.cpp | LUMOGROUP/codes | ae36bf6d6518e0c5646e8d71fc5b1f1556f69fdd | [
"MIT"
] | null | null | null | 1692.cpp | LUMOGROUP/codes | ae36bf6d6518e0c5646e8d71fc5b1f1556f69fdd | [
"MIT"
] | null | null | null | 1692.cpp | LUMOGROUP/codes | ae36bf6d6518e0c5646e8d71fc5b1f1556f69fdd | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int n;
cin>>n;
double e = 0, f;
int x = 1;
for(int i=1;i<=n;i++){
x *= i;
f = 1.0 / x;
e += f;
}
e += 1;
printf ("%.10f\n", e);
return 0;
}
// TODO:BUG?精度控制.10 But the output is different... | 15.022222 | 62 | 0.508876 | LUMOGROUP |
a4505b87c5167e3f33ca36cdca18fa16caee6bbd | 7,511 | cpp | C++ | src/MobileShellPlus/BaseWindow.cpp | pronoymukherjeewritescode/MobileShell | 74892d7beec7df24671ed2e3d12ac03465da174c | [
"MIT"
] | 314 | 2019-03-09T14:56:59.000Z | 2022-02-02T02:50:04.000Z | src/MobileShellPlus/BaseWindow.cpp | gus33000/MobileShell | d12078f3d531c6f8a854fc8c66a62d861eac7228 | [
"MIT"
] | 19 | 2019-05-21T12:42:08.000Z | 2021-08-23T21:08:39.000Z | src/MobileShellPlus/BaseWindow.cpp | ADeltaX/MobileShell | 74892d7beec7df24671ed2e3d12ac03465da174c | [
"MIT"
] | 30 | 2019-03-18T14:50:55.000Z | 2022-02-19T08:58:34.000Z | #include "pch.h"
#include "BaseWindow.h"
#include <string>
#include <windowsx.h>
#include <ShellScalingApi.h>
#include <tpcshrd.h>
#include <winuser.h>
#include "Utils.h"
#pragma comment(lib, "SHCore")
#pragma comment(lib, "shell32")
#pragma comment(lib, "cfgmgr32")
using namespace winrt;
using namespace Windows::Fo... | 25.634812 | 318 | 0.74797 | pronoymukherjeewritescode |
a453bb9e8b8362d3f571f78cc60a45356af83251 | 2,656 | cpp | C++ | src/game/client/swarm/c_asw_flamer_projectile.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | src/game/client/swarm/c_asw_flamer_projectile.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | src/game/client/swarm/c_asw_flamer_projectile.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | #include "cbase.h"
#include "c_asw_flamer_projectile.h"
#include "dlight.h"
#include "iefx.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
IMPLEMENT_CLIENTCLASS_DT(C_ASW_Flamer_Projectile, DT_ASW_Flamer_Projectile, CASW_Flamer_Projectile)
END_RECV_TABLE()
BEGI... | 34.493506 | 125 | 0.748117 | BlueNovember |
a453fc6eceb39caaa3c30e1be6c070c955e10e78 | 3,276 | cpp | C++ | XPNetPluginTestHost/TestCore.cpp | mbrachner/XPNet | 75773f037a9b3a41ae6c701105b36959e010fe0b | [
"MIT"
] | null | null | null | XPNetPluginTestHost/TestCore.cpp | mbrachner/XPNet | 75773f037a9b3a41ae6c701105b36959e010fe0b | [
"MIT"
] | null | null | null | XPNetPluginTestHost/TestCore.cpp | mbrachner/XPNet | 75773f037a9b3a41ae6c701105b36959e010fe0b | [
"MIT"
] | null | null | null |
#include "TestCore.h"
using std::fstream;
using std::cout;
using std::endl;
string xpnetcfg_path()
{
return "xpnetcfg.json"; // Currently, assume we're in the correct directory.
}
string xpnetlog_path()
{
return "xpnet.log"; // Currently, assume we're in the correct directory.
}
void DeleteXPNetConfig()
{
i... | 25.795276 | 125 | 0.615079 | mbrachner |
a4578de92570514f4ebc14bddbe43a9f56a5bb08 | 12,874 | cpp | C++ | src/assemble_endgames.cpp | ericgjackson/slumbot2017 | f0ddb6af63e9f7e25ffa7ef01337d47299a6520d | [
"MIT"
] | 15 | 2017-11-01T16:11:46.000Z | 2020-08-18T14:20:12.000Z | src/assemble_endgames.cpp | ericgjackson/slumbot2017 | f0ddb6af63e9f7e25ffa7ef01337d47299a6520d | [
"MIT"
] | 11 | 2020-02-16T12:45:33.000Z | 2022-02-10T07:20:47.000Z | src/assemble_endgames.cpp | ericgjackson/slumbot2017 | f0ddb6af63e9f7e25ffa7ef01337d47299a6520d | [
"MIT"
] | 7 | 2017-11-01T18:32:31.000Z | 2021-01-11T17:55:59.000Z | // Can get mysterious crash if we pass the wrong streets on the command
// line. Should catch that. Well, it was a weird scenario in which I first
// called solve_all_endgames with the wrong streets as well.
//
// I could merge the base sumprobs into the merged sumprobs. Is there any
// advantage to doing that?
//
/... | 38.660661 | 79 | 0.71959 | ericgjackson |
a459d4bffafe26192e2de07541f192a9e1dad414 | 5,441 | cpp | C++ | src/trgsw.cpp | dikosec/TFHEpp | a93d3e6d983af0a2b92058dbe0a1e0140a4142e6 | [
"Apache-2.0"
] | 2 | 2020-11-04T06:17:17.000Z | 2021-08-12T07:54:25.000Z | src/trgsw.cpp | dikosec/TFHEpp | a93d3e6d983af0a2b92058dbe0a1e0140a4142e6 | [
"Apache-2.0"
] | null | null | null | src/trgsw.cpp | dikosec/TFHEpp | a93d3e6d983af0a2b92058dbe0a1e0140a4142e6 | [
"Apache-2.0"
] | null | null | null | #include <array>
#include <limits>
#include <mulfft.hpp>
#include <params.hpp>
#include <trlwe.hpp>
#include <utils.hpp>
namespace TFHEpp {
inline TRGSWlvl1 trgswSymEncryptlvl1(int32_t p, double α, Keylvl1 &key)
{
array<uint32_t, DEF_l> h;
for (int i = 0; i < DEF_l; i++) h[i] = 1U << (32 - (i + 1) * DEF_Bgbit... | 34.436709 | 79 | 0.591252 | dikosec |
a45bc01e6e0e4e451a8316ebeb086054b4d1bc6c | 2,577 | cpp | C++ | glib-adv/tbhc.cpp | ksemer/snap | 0084126c30ad49a4437bc8ea30be78484f8c58d7 | [
"BSD-3-Clause"
] | 1,805 | 2015-01-06T20:01:35.000Z | 2022-03-29T16:12:51.000Z | glib-adv/tbhc.cpp | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 168 | 2015-01-07T22:57:29.000Z | 2022-03-15T01:20:24.000Z | glib-adv/tbhc.cpp | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 768 | 2015-01-09T02:28:45.000Z | 2022-03-30T00:53:46.000Z | /////////////////////////////////////////////////
// Includes
#include "tbhc.h"
/////////////////////////////////////////////////
// Html-Coded-Table
THTb::THTb(const PHcBase& _HcBase):
TTb(), HcBase(_HcBase),
VarNToWordIdV(HcBase->GetWords()), WordIdToVarNV(HcBase->GetMxWordIds()),
TupNToDocIdV(HcBase-... | 33.907895 | 76 | 0.593326 | ksemer |
a45f9390cb2c8a5ad525be219dac9c76ff7c59e8 | 1,085 | cpp | C++ | static-ds/monotonicqueue.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | 3 | 2022-01-17T01:56:05.000Z | 2022-02-23T07:30:02.000Z | static-ds/monotonicqueue.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | null | null | null | static-ds/monotonicqueue.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | null | null | null | // Monotonic queue
#include <functional>
#include <vector>
using namespace std;
/*snippet-begin*/
template<class T = int, class F = plus<T>>
struct monotonic_queue {
struct node { T v, s; };
vector<node> a, b;
T e;
F f;
monotonic_queue(T e = T(), F f = F()) : e(e), f(f) {}
void push(vector<n... | 17.786885 | 57 | 0.44424 | ivan100sic |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.