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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f56037fcbef6bda39ff9d24e5fb8fa7a61e044f | 4,177 | cpp | C++ | Source/RenderMotion.cpp | marcussvensson92/vulkan_testbed | 6cfbee9fd5fb245f10c1d5694812eda6232b9a6c | [
"MIT"
] | 10 | 2020-03-26T08:51:29.000Z | 2021-08-17T07:43:12.000Z | Source/RenderMotion.cpp | marcussvensson92/vulkan_testbed | 6cfbee9fd5fb245f10c1d5694812eda6232b9a6c | [
"MIT"
] | null | null | null | Source/RenderMotion.cpp | marcussvensson92/vulkan_testbed | 6cfbee9fd5fb245f10c1d5694812eda6232b9a6c | [
"MIT"
] | null | null | null | #include "RenderMotion.h"
#include "VkUtil.h"
void RenderMotion::Create(const RenderContext& rc)
{
// Generate
{
VkDescriptorSetLayoutBinding set_layout_bindings[] =
{
{ 0, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1, VK_SHADER_STAGE_COMPUTE_BIT, NULL },
{ 1, VK_DESCRIPTOR_TYP... | 37.630631 | 169 | 0.762988 |
3f58aedd4acc2f31c673e6ba3b8eed88ce901e63 | 689 | hpp | C++ | components/python/detail/context_manager.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 9 | 2020-07-20T15:32:07.000Z | 2021-06-04T13:02:58.000Z | components/python/detail/context_manager.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 26 | 2019-10-27T12:58:42.000Z | 2020-05-30T16:43:48.000Z | components/python/detail/context_manager.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 3 | 2020-08-29T07:07:49.000Z | 2021-06-04T13:02:59.000Z | #pragma once
#include <list>
#include <memory>
#include <unordered_map>
#include <boost/filesystem.hpp>
#include <boost/utility/string_view.hpp>
#include <detail/forward.hpp>
namespace components { namespace python { namespace detail {
constexpr const static char* __default__ = "default";
class context_ma... | 23.758621 | 76 | 0.698113 |
3f58caacc4df8b2c650520659ac51658e51a74d7 | 1,947 | cpp | C++ | day16/Packet.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | 1 | 2021-12-02T14:11:37.000Z | 2021-12-02T14:11:37.000Z | day16/Packet.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | null | null | null | day16/Packet.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | null | null | null | #include "Packet.hpp"
#include <algorithm>
std::uint64_t Packet::GetVersionSum() const noexcept
{
std::uint64_t versionSum{version};
if (type != 4)
{
for (const auto &sub: std::get<std::vector<Packet>>(content))
{
versionSum += sub.GetVersionSum();
}
}
return versionSum;
}
std::uint64_t Packet::Solv... | 22.639535 | 67 | 0.543914 |
3f58e087a958649137ef391194bd6e849c41c9d4 | 678,705 | cpp | C++ | tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp | florianjacob/gpuocelot | fa63920ee7c5f9a86e264cd8acd4264657cbd190 | [
"BSD-3-Clause"
] | 221 | 2015-03-29T02:05:49.000Z | 2022-03-25T01:45:36.000Z | tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp | mprevot/gpuocelot | d9277ef05a110e941aef77031382d0260ff115ef | [
"BSD-3-Clause"
] | 106 | 2015-03-29T01:28:42.000Z | 2022-02-15T19:38:23.000Z | tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp | mprevot/gpuocelot | d9277ef05a110e941aef77031382d0260ff115ef | [
"BSD-3-Clause"
] | 83 | 2015-07-10T23:09:57.000Z | 2022-03-25T03:01:00.000Z | # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.cpp"
# 1 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu"
# 46 "/usr/local/cuda/bin/../include/device_types.h"... | 50.453836 | 2,550 | 0.765421 |
3f5cae2fd4ca43da1172cb616025c807b219acab | 4,206 | cpp | C++ | test/converter.cpp | ufcg-lsd/fast-sebal | 93cccb498edf4e25e2b4570c652d61338e66ef60 | [
"MIT"
] | 2 | 2019-02-26T23:05:42.000Z | 2019-04-15T23:59:35.000Z | test/converter.cpp | ufcg-lsd/fast-sebal | 93cccb498edf4e25e2b4570c652d61338e66ef60 | [
"MIT"
] | null | null | null | test/converter.cpp | ufcg-lsd/fast-sebal | 93cccb498edf4e25e2b4570c652d61338e66ef60 | [
"MIT"
] | 1 | 2019-07-03T20:37:08.000Z | 2019-07-03T20:37:08.000Z | #include "tiffio.h"
#include <string>
#include <math.h>
#include <iostream>
#include <string.h>
#include <stdlib.h>
using namespace std;
const double EPS = 1e-7;
const double NaN = -sqrt(-1.0);
struct PixelReader{
uint16 sampleFormat;
uint8 byteSize;
tdata_t buffer;
PixelReader();
PixelReader(uint16 _sampleFor... | 25.962963 | 84 | 0.647884 |
3f5e9a4900290ee4e8b60bdad290a2043aed155f | 2,361 | cc | C++ | newnnfw/runtimes/pure_arm_compute/src/internal/op/Lstm.cc | kosslab-kr/Tizen-NN-Framework | 132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a | [
"Apache-2.0"
] | 8 | 2018-09-10T01:32:26.000Z | 2020-05-13T06:05:40.000Z | newnnfw/runtimes/pure_arm_compute/src/internal/op/Lstm.cc | kosslab-kr/Tizen-NN-Framework | 132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a | [
"Apache-2.0"
] | 28 | 2018-09-10T05:01:09.000Z | 2021-03-04T10:07:12.000Z | newnnfw/runtimes/pure_arm_compute/src/internal/op/Lstm.cc | kosslab-kr/Tizen-NN-Framework | 132fc98ed57e4b19ad1f4cb258ad79fa9df1db7a | [
"Apache-2.0"
] | 4 | 2018-09-13T04:16:08.000Z | 2018-12-03T07:34:44.000Z | /*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. 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... | 27.453488 | 79 | 0.745023 |
3f5ffcc2526668fb182c0708fd54026e5d49ecbe | 601 | cpp | C++ | source/002/main.cpp | TheBuzzSaw/ProjectEuler | 0aa472dc7dac3a710b6a99538b2cbaf8b6463abc | [
"Unlicense"
] | 1 | 2015-03-12T19:56:28.000Z | 2015-03-12T19:56:28.000Z | source/002/main.cpp | TheBuzzSaw/ProjectEuler | 0aa472dc7dac3a710b6a99538b2cbaf8b6463abc | [
"Unlicense"
] | null | null | null | source/002/main.cpp | TheBuzzSaw/ProjectEuler | 0aa472dc7dac3a710b6a99538b2cbaf8b6463abc | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cstdint>
using namespace std;
int64_t GetTotal(int64_t limit)
{
int64_t total = 0;
int64_t a = 0;
int64_t b = 1;
while (1)
{
int64_t c = a + b;
a = b;
b = c;
if (a < limit)
{
bool... | 15.815789 | 39 | 0.379368 |
3f636d376f42b8052c54f6ec2693c10eae419d96 | 397 | cpp | C++ | 02_Array_Representation/05_static_allocation_of_array_in_stack.cpp | krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP | 0eedb6fb8a395ff050ae37dc4b8c6470f5b47579 | [
"Apache-2.0"
] | 2 | 2020-07-01T17:10:20.000Z | 2021-08-02T22:46:32.000Z | 02_Array_Representation/05_static_allocation_of_array_in_stack.cpp | krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP | 0eedb6fb8a395ff050ae37dc4b8c6470f5b47579 | [
"Apache-2.0"
] | null | null | null | 02_Array_Representation/05_static_allocation_of_array_in_stack.cpp | krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP | 0eedb6fb8a395ff050ae37dc4b8c6470f5b47579 | [
"Apache-2.0"
] | null | null | null | //Data Structure Course
//All Codes Are Written by Krishna
//Arrays Representation
#include <iostream>
using namespace std;
int main(){
// this declaration allocates memory in stack at runtime
//this is static allocation -->size can't be changed
int arr[5]={1,2,3,4,5};
for(int i=0;i<5;i++){
cout... | 23.352941 | 59 | 0.627204 |
3f64d96d92dbee74a82072fece7976cbab845862 | 1,918 | cpp | C++ | NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp | CStanKonrad/Algorithms | 494d86bc2a9248d71a0f9008d8d678386f9ca906 | [
"MIT"
] | null | null | null | NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp | CStanKonrad/Algorithms | 494d86bc2a9248d71a0f9008d8d678386f9ca906 | [
"MIT"
] | null | null | null | NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp | CStanKonrad/Algorithms | 494d86bc2a9248d71a0f9008d8d678386f9ca906 | [
"MIT"
] | null | null | null | /*
The MIT License (MIT)
Copyright (c) 2015 CStanKonrad
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, p... | 28.626866 | 78 | 0.699166 |
3f6c3c7559ba6469ada0e4b4f53c5a81b7468759 | 502 | cpp | C++ | android-31/java/nio/file/spi/FileTypeDetector.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/nio/file/spi/FileTypeDetector.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/nio/file/spi/FileTypeDetector.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../../JString.hpp"
#include "../../../lang/Void.hpp"
#include "./FileTypeDetector.hpp"
namespace java::nio::file::spi
{
// Fields
// QJniObject forward
FileTypeDetector::FileTypeDetector(QJniObject obj) : JObject(obj) {}
// Constructors
// Methods
JString FileTypeDetector::probeContentType(... | 20.08 | 69 | 0.673307 |
3f6cda39762e458a5bcdeb657ec68154cc34986f | 711 | cpp | C++ | CodeChef DSA Learning/Week 3/SAVKONO.cpp | mishrraG/100DaysOfCode | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 13 | 2020-08-10T14:06:37.000Z | 2020-09-24T14:21:33.000Z | CodeChef DSA Learning/Week 3/SAVKONO.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | null | null | null | CodeChef DSA Learning/Week 3/SAVKONO.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 1 | 2020-05-31T21:09:14.000Z | 2020-05-31T21:09:14.000Z | //https://www.codechef.com/LRNDSA03/problems/SAVKONO/
#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main()
{
ios :: sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int t;
cin>>t;
while(t--)
{
int n,z;
cin>>n>>z;
priority_queue<int> pq... | 19.75 | 53 | 0.416315 |
3f6dd90e97d5cd9ef3561414867783ac0dba0d01 | 1,390 | cpp | C++ | SPOJ/BUBBLESORT.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | SPOJ/BUBBLESORT.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | SPOJ/BUBBLESORT.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | /**
* > Author: TISparta
* > Date: 12-09-18
* > Tags: BIT
* > Difficulty: 4 / 10
*/
#include <bits/stdc++.h>
#define all(X) begin(X), end(X)
using namespace std;
const int MAX_N = 1e4 + 10, MOD = 1e7 + 7;
struct BIT {
int* ft;
int sz = 0;
BIT (int n): sz(n) {
ft = new int[n];
fill(ft, ft + n, 0)... | 17.375 | 82 | 0.471942 |
3f6f256d35e014129e936c3a0b52efde966d66c6 | 1,143 | cpp | C++ | vmca/test/testCAKeyCreate.cpp | wfu8/lightwave | cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298 | [
"Apache-2.0"
] | 357 | 2015-04-20T00:16:30.000Z | 2022-03-17T05:34:09.000Z | vmca/test/testCAKeyCreate.cpp | wfu8/lightwave | cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298 | [
"Apache-2.0"
] | 38 | 2015-11-19T05:20:53.000Z | 2022-03-31T07:21:59.000Z | vmca/test/testCAKeyCreate.cpp | wfu8/lightwave | cf6a7417cd9807bfcf9bcd99c43c5b2eecf2d298 | [
"Apache-2.0"
] | 135 | 2015-04-21T15:23:21.000Z | 2022-03-30T11:46:36.000Z | /*
* Copyright © 2012-2016 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the “License”); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 30.891892 | 79 | 0.711286 |
3f721e60daf2971fe1db76fd33201e5466de0196 | 28,428 | cpp | C++ | src/cli.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | 1 | 2021-06-28T00:31:08.000Z | 2021-06-28T00:31:08.000Z | src/cli.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | src/cli.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | /******************************************************************************
* Author(s): Christopher J. Havlicek
*
* See LICENSE and CONTACTS.
******************************************************************************/
#include "cli.hpp"
#include "canvas.hpp"
#include "cli/parser.hpp"
#include "cmd/command... | 26.894986 | 204 | 0.486949 |
3f73f899f1640828568dd9be2f0dee20a6886730 | 356 | cpp | C++ | tutor_test/99_dpi_c/04_data_types/03_string/c_main.cpp | Kocha/systemverilog | 73f93ded99cd63151d058b3c98eee907f277c4b0 | [
"MIT"
] | 8 | 2015-01-18T20:48:22.000Z | 2021-07-09T15:17:44.000Z | tutor_test/99_dpi_c/04_data_types/03_string/c_main.cpp | Kocha/systemverilog | 73f93ded99cd63151d058b3c98eee907f277c4b0 | [
"MIT"
] | null | null | null | tutor_test/99_dpi_c/04_data_types/03_string/c_main.cpp | Kocha/systemverilog | 73f93ded99cd63151d058b3c98eee907f277c4b0 | [
"MIT"
] | 3 | 2015-02-28T06:25:58.000Z | 2022-01-13T10:15:02.000Z | #include <stdio.h>
#include <string>
#include "dpiheader.h"
#ifdef __cplusplus
extern "C" {
#endif
int c_main(void) {
printf("Hello from c_main()\n");
std::string str = "FFFFF";
char* char_out[10];
c_sv_string ( str.c_str() , char_out); printf("------ c in=%s, out=%s\n", str.c_str() , char_out[0]);
return... | 16.952381 | 103 | 0.629213 |
3f7674bcde69f0c529c272c57ab40dd1eaa949fb | 1,809 | cpp | C++ | devices/CAN/src/BitStream.cpp | gboyraz/macchina.io | 3e26fea95e87512459693831242b297f0780cc21 | [
"Apache-2.0"
] | 2 | 2020-11-23T23:37:00.000Z | 2020-12-22T04:02:41.000Z | devices/CAN/src/BitStream.cpp | bas524/cmake.macchina.io | 22a21d78f8075fd145b788b41a23603591e91c9f | [
"Apache-2.0"
] | null | null | null | devices/CAN/src/BitStream.cpp | bas524/cmake.macchina.io | 22a21d78f8075fd145b788b41a23603591e91c9f | [
"Apache-2.0"
] | 1 | 2020-11-23T23:37:09.000Z | 2020-11-23T23:37:09.000Z | //
// BitStream.cpp
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#include "IoT/CAN/BitStream.h"
#include "Poco/SharedPtr.h"
namespace IoT {
namespace CAN {
BigEndianBitStream::BigEndianBitStream(const char* buffer, st... | 17.066038 | 105 | 0.688226 |
3f78f3c890e565b748fab6b1d3228b5acb243153 | 6,730 | hpp | C++ | include/interfaces/Ports/Speaker.hpp | CapRat/APAL | a08f4bc6ee6299e8e370ef99750262ad23c87d58 | [
"MIT"
] | 2 | 2020-09-21T12:30:05.000Z | 2020-10-14T19:43:51.000Z | include/interfaces/Ports/Speaker.hpp | CapRat/APAL | a08f4bc6ee6299e8e370ef99750262ad23c87d58 | [
"MIT"
] | null | null | null | include/interfaces/Ports/Speaker.hpp | CapRat/APAL | a08f4bc6ee6299e8e370ef99750262ad23c87d58 | [
"MIT"
] | null | null | null | #ifndef SPEAKER_HPP
#define SPEAKER_HPP
#include <cstdint>
#include <type_traits>
#define SPOS_TO_SCONF(SpeakerConfigurationtype) \
static_cast<std::underlying_type<SpeakerConfiguration>::type>( \
SpeakerConfigurationtype)
namespace APAL {
enum class SpeakerConfigurati... | 37.388889 | 80 | 0.725706 |
3f7bcbf6081f0cf8fbfe378107441a49fa9a7a90 | 932 | cpp | C++ | src/ticTacToe/player/player.cpp | alexjoyner/tic-tac-toe-game | 457cb5e62df1e87b33148bc5c65eb7878798118c | [
"MIT"
] | null | null | null | src/ticTacToe/player/player.cpp | alexjoyner/tic-tac-toe-game | 457cb5e62df1e87b33148bc5c65eb7878798118c | [
"MIT"
] | 1 | 2017-04-02T22:54:34.000Z | 2017-04-02T23:41:30.000Z | src/ticTacToe/player/player.cpp | alexjoyner/tic-tac-toe-game | 457cb5e62df1e87b33148bc5c65eb7878798118c | [
"MIT"
] | null | null | null | #include "player.h"
#include <PLDuino.h>
#include <PLDTouch.h>
#include <Adafruit_ILI9341.h>
#include "../../utils/utils.h"
#include "../ticTacToe.h"
Player::Player(){}
void Player::place_O(Adafruit_ILI9341 &tft, PLDTouch touch, char board[3][3]){
Point placedIn;
bool isValidSelection = false;
while(!isValidSele... | 26.628571 | 78 | 0.664163 |
3f7d37865dde391837cc865c6dbedde503994248 | 588 | cpp | C++ | Trees/Symmetric Binary Tree.cpp | shawamar/InterviewBit | 6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f | [
"MIT"
] | null | null | null | Trees/Symmetric Binary Tree.cpp | shawamar/InterviewBit | 6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f | [
"MIT"
] | null | null | null | Trees/Symmetric Binary Tree.cpp | shawamar/InterviewBit | 6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f | [
"MIT"
] | null | null | null | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
int isSymmetricHelper(TreeNode* root1, TreeNode* root2)
{
if (!root1 || !root2)
return root1 == root2;
if (root1->va... | 26.727273 | 61 | 0.591837 |
3f7fdb578a675a9de0bc90dc5fca5d099f3bf68f | 341 | cc | C++ | src/code_writen_when_learning/initialize_class_member_without_braces.cc | NobodyXu/snippet | 8f0308e48dab1d166dc9e5ff43b00db2d35b616b | [
"MIT"
] | 1 | 2019-04-02T04:38:15.000Z | 2019-04-02T04:38:15.000Z | src/code_writen_when_learning/initialize_class_member_without_braces.cc | NobodyXu/snippet | 8f0308e48dab1d166dc9e5ff43b00db2d35b616b | [
"MIT"
] | null | null | null | src/code_writen_when_learning/initialize_class_member_without_braces.cc | NobodyXu/snippet | 8f0308e48dab1d166dc9e5ff43b00db2d35b616b | [
"MIT"
] | null | null | null | #include <iostream>
struct A {
int a;
int b;
};
struct B {
A a;
A b;
};
std::ostream& operator << (std::ostream &os, const A &a) { return os << a.a << " " << a.b; }
std::ostream& operator << (std::ostream &os, const B &b) { return os << b.a << " " << b.b; }
int main() {
B b{11, 23};
std::cout ... | 21.3125 | 93 | 0.489736 |
3f82792b1223b7f2a148e80ccd19412e1980f73d | 15,901 | cpp | C++ | Nemo/BezierCurve.cpp | cyj0912/Nemo | cd242e9d17863b461ccfd768122572d979c330e3 | [
"BSD-2-Clause"
] | null | null | null | Nemo/BezierCurve.cpp | cyj0912/Nemo | cd242e9d17863b461ccfd768122572d979c330e3 | [
"BSD-2-Clause"
] | null | null | null | Nemo/BezierCurve.cpp | cyj0912/Nemo | cd242e9d17863b461ccfd768122572d979c330e3 | [
"BSD-2-Clause"
] | null | null | null | #include "BezierCurve.h"
#include "Mesh.h"
#include "imgui/imgui.h"
namespace tc
{
//Some math functions
Vector3 QuadraticBezierInterp(const Vector3& a, const Vector3& b, const Vector3& c, float t)
{
Vector3 d = a + t * (b - a);
Vector3 e = b + t * (c - b);
return d + t * (e - d);
}
/*
* Not as efficie... | 35.813063 | 138 | 0.646249 |
3f8343fea02eb14031fe6190420e776b2d952d68 | 5,188 | cpp | C++ | lld/stm32f4x/i2c/hw_i2c_data.cpp | brandonbraun653/Thor_STM32 | 2aaba95728936b2d5784e99b96c208a94e3cb8df | [
"MIT"
] | null | null | null | lld/stm32f4x/i2c/hw_i2c_data.cpp | brandonbraun653/Thor_STM32 | 2aaba95728936b2d5784e99b96c208a94e3cb8df | [
"MIT"
] | null | null | null | lld/stm32f4x/i2c/hw_i2c_data.cpp | brandonbraun653/Thor_STM32 | 2aaba95728936b2d5784e99b96c208a94e3cb8df | [
"MIT"
] | null | null | null | /******************************************************************************
* File Name:
* hw_i2c_data.cpp
*
* Description:
* Provides implementation details for private I2C data
*
* 2021 | Brandon Braun | brandonbraun653@gmail.com
*******************************************************************... | 30.339181 | 92 | 0.526793 |
3f8510ca5983362ea4d1ba60f0c3d454cc84565c | 121 | cpp | C++ | src/main.cpp | Panky-codes/cpp-template | 1f653e38220899a58fea8878751481ebbc152e7b | [
"Unlicense"
] | null | null | null | src/main.cpp | Panky-codes/cpp-template | 1f653e38220899a58fea8878751481ebbc152e7b | [
"Unlicense"
] | null | null | null | src/main.cpp | Panky-codes/cpp-template | 1f653e38220899a58fea8878751481ebbc152e7b | [
"Unlicense"
] | null | null | null | // Own header
#include "lib.h"
// System header
// Third-party header
int main() {
print_hello();
return 0;
}
| 10.083333 | 21 | 0.603306 |
3f8747a8d82d660ab7d68048322a39936eaf96d6 | 754 | cpp | C++ | 2020_November/23.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | 17 | 2018-08-23T08:53:56.000Z | 2021-04-17T00:06:13.000Z | 2020_November/23.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | null | null | null | 2020_November/23.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 27.925926 | 93 | 0.539788 |
3f87c88a5a7434042a471a353f24d0a68e3b2aa9 | 356 | cpp | C++ | Arrays 101/duplicateZeros.cpp | AasthaVarma/LeetCode | d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b | [
"MIT"
] | null | null | null | Arrays 101/duplicateZeros.cpp | AasthaVarma/LeetCode | d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b | [
"MIT"
] | null | null | null | Arrays 101/duplicateZeros.cpp | AasthaVarma/LeetCode | d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b | [
"MIT"
] | null | null | null | class Solution {
public:
void duplicateZeros(vector<int>& arr) {
int n=arr.size(), new_n = n;
for(int i=0; i<n; i++){
if(arr[i] == 0){
for(int j=n-1; j>i+1; j--)
arr[j] = arr[j-1];
i++;
if(i<n)
arr[i] = 0... | 22.25 | 43 | 0.325843 |
3f8ad4673e756de979bb13b5ff4dcd0707f06adb | 716 | cpp | C++ | compiler-rt/test/asan/TestCases/Linux/auto_memory_profile_test.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | compiler-rt/test/asan/TestCases/Linux/auto_memory_profile_test.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | compiler-rt/test/asan/TestCases/Linux/auto_memory_profile_test.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // Tests heap_profile=1.
// Printing memory profiling only works in the configuration where we can
// detect leaks.
// REQUIRES: leak-detection
//
// RUN: %clangxx_asan %s -o %t
// RUN: %env_asan_opts=heap_profile=1 %run %t 2>&1 | FileCheck %s
#include <sanitizer/common_interface_defs.h>
#include <stdio.h>
#include <s... | 21.69697 | 73 | 0.649441 |
3f8c08598f0deefc9c0030666c464412943a0811 | 782 | cpp | C++ | classwithdefulcons.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | classwithdefulcons.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | classwithdefulcons.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null |
#include<iostream>
#include<conio.h>
using namespace std;
class b1
{
public:
b1()
{
cout << "no argument const of the base class b1 is executed " << endl;
}
~b1()
{
cout << "des des b1 " << endl;
}
};
cla... | 15.038462 | 82 | 0.410486 |
3f8c6f862cf5a0c1149e5e1d9884da022f82b347 | 5,449 | cpp | C++ | piquassoboost/sampling/source/BruteForceLoopHafnian.cpp | Budapest-Quantum-Computing-Group/piquassoboost | fd384be8f59cfd20d62654cf86c89f69d3cf8b8c | [
"Apache-2.0"
] | 4 | 2021-11-29T13:28:19.000Z | 2021-12-21T22:57:09.000Z | piquassoboost/sampling/source/BruteForceLoopHafnian.cpp | Budapest-Quantum-Computing-Group/piquassoboost | fd384be8f59cfd20d62654cf86c89f69d3cf8b8c | [
"Apache-2.0"
] | 11 | 2021-09-24T18:02:26.000Z | 2022-01-27T18:51:47.000Z | piquassoboost/sampling/source/BruteForceLoopHafnian.cpp | Budapest-Quantum-Computing-Group/piquassoboost | fd384be8f59cfd20d62654cf86c89f69d3cf8b8c | [
"Apache-2.0"
] | 1 | 2021-11-13T10:06:52.000Z | 2021-11-13T10:06:52.000Z | /**
* Copyright 2021 Budapest Quantum Computing Group
*
* 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... | 24.434978 | 163 | 0.655717 |
3f8dc2527a51245fb3628cd18ee6c287b45393f6 | 7,629 | cpp | C++ | src/consumer/ProcessQueue.cpp | ifplusor/rocketmq-client-cpp | fd301f4b064d5035fc72261023a396e2c9126c53 | [
"Apache-2.0"
] | 5 | 2019-04-24T13:37:05.000Z | 2021-01-29T16:37:55.000Z | src/consumer/ProcessQueue.cpp | ifplusor/rocketmq-client-cpp | fd301f4b064d5035fc72261023a396e2c9126c53 | [
"Apache-2.0"
] | null | null | null | src/consumer/ProcessQueue.cpp | ifplusor/rocketmq-client-cpp | fd301f4b064d5035fc72261023a396e2c9126c53 | [
"Apache-2.0"
] | 1 | 2021-02-03T03:11:03.000Z | 2021-02-03T03:11:03.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 31.7875 | 109 | 0.696553 |
3f90fe382a520bdce9686648556e4220f52032d6 | 2,987 | hpp | C++ | include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:27:57.000Z | 2022-01-25T23:26:54.000Z | include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:12:42.000Z | 2015-06-23T12:41:00.000Z | include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // Copyright 2015 Patrick Putnam
//
// 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 o... | 32.824176 | 138 | 0.656177 |
3f926f90fc9a3b71fa318e9581299478387de530 | 10,714 | cpp | C++ | src/percept/mesh/geometry/kernel/GeometryKernelPGEOM.cpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 3 | 2017-08-08T21:06:02.000Z | 2020-01-08T13:23:36.000Z | src/percept/mesh/geometry/kernel/GeometryKernelPGEOM.cpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2016-12-17T00:18:56.000Z | 2019-08-09T15:29:25.000Z | src/percept/mesh/geometry/kernel/GeometryKernelPGEOM.cpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2017-11-30T07:02:41.000Z | 2019-08-05T17:07:04.000Z |
/*
* GeometryKernelPGEOM.cpp
*
* Created on: Jun 16, 2016
* Author: madbrew
*/
#if HAVE_CUBIT // entire file
#include <iostream>
#include <typeinfo>
#include <stdexcept>
#include "GeometryKernelPGEOM.hpp"
#include <string>
#include <stk_mesh/base/SkinMesh.hpp>
#include <stk_mesh/base/Types.hpp>
#include... | 35.127869 | 188 | 0.63375 |
3f9526e7302c1dd474f23fb672e41410dab74860 | 2,846 | hpp | C++ | pianotrain/musicxml/xmlparse.hpp | chkven7/pianotrain | 46273e5533238c039205d41cdcfd26a51a4781fe | [
"MIT"
] | 18 | 2015-01-18T22:34:22.000Z | 2020-09-06T20:30:30.000Z | pianotrain/musicxml/xmlparse.hpp | chkven7/pianotrain | 46273e5533238c039205d41cdcfd26a51a4781fe | [
"MIT"
] | 2 | 2015-08-04T00:07:46.000Z | 2017-05-10T15:53:51.000Z | pianotrain/musicxml/xmlparse.hpp | chkven7/pianotrain | 46273e5533238c039205d41cdcfd26a51a4781fe | [
"MIT"
] | 10 | 2015-01-18T23:46:10.000Z | 2019-08-25T12:10:04.000Z | /* A Bison parser, made by GNU Bison 2.3. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU... | 28.46 | 75 | 0.709065 |
3f963b81443742866684c0ce7886b02d8410952d | 2,801 | hh | C++ | src/support/ply/ply.hh | jhidding/regt | f946a252df9e847a7d0bcc7b0ed5c6f1bfdbdcb5 | [
"Apache-2.0"
] | null | null | null | src/support/ply/ply.hh | jhidding/regt | f946a252df9e847a7d0bcc7b0ed5c6f1bfdbdcb5 | [
"Apache-2.0"
] | null | null | null | src/support/ply/ply.hh | jhidding/regt | f946a252df9e847a7d0bcc7b0ed5c6f1bfdbdcb5 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <string>
#include <iostream>
#include <fstream>
#include <utility>
#include <memory>
#include <vector>
#include <typeinfo>
#include <stdexcept>
#include <algorithm>
#include "base.hh"
#include "header.hh"
#include "io.hh"
#include "record-print.hh"
namespace PLY
{
/*! PLY data class
*
... | 31.829545 | 82 | 0.542663 |
3f976fb58cfef1228b445a37c8bd3509bc5ffc07 | 844 | hh | C++ | src/Splitting.hh | aalto-speech/morphological-classes | a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3 | [
"BSD-2-Clause"
] | null | null | null | src/Splitting.hh | aalto-speech/morphological-classes | a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3 | [
"BSD-2-Clause"
] | null | null | null | src/Splitting.hh | aalto-speech/morphological-classes | a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3 | [
"BSD-2-Clause"
] | null | null | null | #ifndef SPLITTING
#define SPLITTING
#include <map>
#include <set>
#include <string>
#include <vector>
#include "Exchanging.hh"
class Splitting : public Exchanging {
public:
Splitting();
Splitting(int num_classes,
const std::map<std::string, int>& word_classes,
std::string corpus_fname... | 25.575758 | 59 | 0.611374 |
3f9cfc3e367a49775875a41d2f31b3848c2eebbd | 2,634 | cpp | C++ | Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp | rudrajit1729/Algorithms-MIT | 8d1082a350ee7aafd7aebf1aff85e6830be978f2 | [
"MIT"
] | 2 | 2020-07-23T02:38:31.000Z | 2021-08-28T10:06:01.000Z | Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp | rudrajit1729/Algorithms-MIT | 8d1082a350ee7aafd7aebf1aff85e6830be978f2 | [
"MIT"
] | null | null | null | Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp | rudrajit1729/Algorithms-MIT | 8d1082a350ee7aafd7aebf1aff85e6830be978f2 | [
"MIT"
] | 1 | 2020-08-14T10:31:23.000Z | 2020-08-14T10:31:23.000Z | // Shortest path in DAG(Direct Acyclic Graph)
// Author - rudrajit1729
// Approach - Topologically sort the graph -> Once sorted start from
// the required vertex and go right relaxing the edges
// Finally you get to the shortest path for every node reachable from that node
#include<bits/stdc++.h>
#define INF ... | 23.945455 | 81 | 0.574791 |
3f9e336e1c4e0e221dd5c07c496684a1fd712252 | 1,792 | cpp | C++ | Restaurant/Rest/Order.cpp | abdallaMahmoud99/DS_Project_CMP_1ST_YEAR | ddc05e51e985f7c569b4a20eb7faa30a81613f65 | [
"MIT"
] | null | null | null | Restaurant/Rest/Order.cpp | abdallaMahmoud99/DS_Project_CMP_1ST_YEAR | ddc05e51e985f7c569b4a20eb7faa30a81613f65 | [
"MIT"
] | null | null | null | Restaurant/Rest/Order.cpp | abdallaMahmoud99/DS_Project_CMP_1ST_YEAR | ddc05e51e985f7c569b4a20eb7faa30a81613f65 | [
"MIT"
] | null | null | null | #include "Order.h"
void Order::setID(int i)
{
ID = i;
}
Order::Order(int id, ORD_TYPE r_Type, REGION r_region,int distance ,double money ,int Arr_time )
{
ID = (id>0&&id<1000)?id:0; //1<ID<999
type = r_Type;
Region = r_region;
totalMoney = money;
ArrTime = Arr_time;
Distance = distance; // added by abdalla... | 13.080292 | 99 | 0.674665 |
3fa3415b1a8d397b182438b1d1c77b9e7284dad7 | 6,972 | hpp | C++ | Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp | alexanderoster/AutodeskMachineControlFramework | 17aec986c2cb3c9ea46bbe583bdc0e766e6f980b | [
"BSD-3-Clause"
] | 15 | 2020-11-10T17:22:39.000Z | 2021-12-16T14:45:11.000Z | Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp | alexanderoster/AutodeskMachineControlFramework | 17aec986c2cb3c9ea46bbe583bdc0e766e6f980b | [
"BSD-3-Clause"
] | 5 | 2021-08-30T06:58:52.000Z | 2022-03-09T15:25:49.000Z | Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp | alexanderoster/AutodeskMachineControlFramework | 17aec986c2cb3c9ea46bbe583bdc0e766e6f980b | [
"BSD-3-Clause"
] | 20 | 2020-08-06T15:53:34.000Z | 2022-02-09T13:49:59.000Z | /*++
Copyright (C) 2020 Autodesk Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the ... | 47.108108 | 142 | 0.658061 |
3fa5417ba40b719e7a5853c8ca93837e3b3956c4 | 380 | hpp | C++ | src/Piece/inc/mocks/PieceFactory.hpp | bandienkhamgalan/chess-engine | 1a3f365b615cbafd1b68dfc3a2681f904b9d85e6 | [
"Apache-2.0"
] | 1 | 2017-03-21T07:57:01.000Z | 2017-03-21T07:57:01.000Z | src/Piece/inc/mocks/PieceFactory.hpp | bandienkhamgalan/chess-engine | 1a3f365b615cbafd1b68dfc3a2681f904b9d85e6 | [
"Apache-2.0"
] | null | null | null | src/Piece/inc/mocks/PieceFactory.hpp | bandienkhamgalan/chess-engine | 1a3f365b615cbafd1b68dfc3a2681f904b9d85e6 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "gmock/gmock.h"
#include "IPieceFactory.hpp"
#include "IObservableBoard.hpp"
namespace Chess
{
class IObservableBoard;
class Location;
class IPlayer;
namespace Mocks
{
class PieceFactory
: public IPieceFactory
{
public:
MOCK_METHOD3(makePiece, std::unique_ptr<IPiece>(std::weak_ptr<IObse... | 19 | 121 | 0.755263 |
3fa87c29828d906eb44c19d01a0e53499f2959cf | 10,258 | cpp | C++ | src/plugProjectNishimuraU/FixKabutoMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectNishimuraU/FixKabutoMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectNishimuraU/FixKabutoMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
/*
Generated from dpostproc
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_8048D8F8
lbl_8048D8F8:
.asciz "/enemy/data/Kabuto/babykabuto_green_s3tc.bti"
.skip 3
.global lbl_8048D928
lbl_8048D928:
.4byte 0x8CC592E8
.4byte 0x834A8375
... | 23.74537 | 80 | 0.637161 |
3fa98f9554e7bd2a980e2ba4543a423b7f37f355 | 1,149 | cc | C++ | src/Geometry/GeomThirdRankTensor.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 1 | 2020-10-21T01:56:55.000Z | 2020-10-21T01:56:55.000Z | src/Geometry/GeomThirdRankTensor.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Geometry/GeomThirdRankTensor.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | //---------------------------------Spheral++----------------------------------//
// GeomThirdRankTensor -- Geometric Tensor (rank 3) Class.
//
// This is a very simple, limited functionality rank 3 tensor. Assumes
// the thing is dimensioned nDim x nDim x nDim.
//
// Created by JMO, Thu Jul 17 17:05:58 PDT 2008
//----... | 44.192308 | 99 | 0.553525 |
3fab520ca550085fb47fb19f596048dd1a7c3b9e | 6,121 | cpp | C++ | src/mongo/crypto/sha_block_tom.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/crypto/sha_block_tom.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/crypto/sha_block_tom.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 41.080537 | 99 | 0.578664 |
3fabcecf6d8e0fff725ee5269db5c4b49c3245c8 | 2,547 | cpp | C++ | Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | null | null | null | Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | null | null | null | Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | 1 | 2020-06-04T23:23:46.000Z | 2020-06-04T23:23:46.000Z | // Copyright 2020 TensorFlow Authors
//
// 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 agree... | 39.796875 | 80 | 0.648606 |
3faf670b3c11dcadd2dc9e387c40d91672adb38d | 206 | cpp | C++ | DS and Algo/12. tree/9. Print Pre-Order.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 7 | 2020-10-01T13:31:02.000Z | 2021-11-06T16:22:31.000Z | DS and Algo/12. tree/9. Print Pre-Order.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 9 | 2020-10-01T10:35:59.000Z | 2021-10-03T15:00:18.000Z | DS and Algo/12. tree/9. Print Pre-Order.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 44 | 2020-10-01T08:49:30.000Z | 2021-10-31T18:19:48.000Z | void PrintPreOrder(TreeNode<int>* root){
if(root==NULL){
return;
}
cout<<root->data<<" ";
for(int i=0;i<root->children.size();i++){
PrintPreOrder(root->children[i]);
}
}
| 20.6 | 45 | 0.543689 |
3fafb58dd9c06ef46fd2b9ee903c2304c48429af | 8,845 | cpp | C++ | main/WindowClass.cpp | satadriver/LiunuxOS_C_t | 38e0e6086cda728008d35f101107d9c591ff38bc | [
"Apache-2.0"
] | null | null | null | main/WindowClass.cpp | satadriver/LiunuxOS_C_t | 38e0e6086cda728008d35f101107d9c591ff38bc | [
"Apache-2.0"
] | null | null | null | main/WindowClass.cpp | satadriver/LiunuxOS_C_t | 38e0e6086cda728008d35f101107d9c591ff38bc | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "windowclass.h"
#include "video.h"
#include "Utils.h"
#include "screenUtils.h"
#include "mouse.h"
#include "keyboard.h"
#include "task.h"
#include "file.h"
#include "gdi.h"
#include "Pe.h"
#include "gdi/jpeg.h"
#include "keyboard.h"
#include "mouse.h"
#include "window.h"
int __kShowWindow(unsign... | 26.482036 | 115 | 0.684681 |
3fb1211cad9952498e5faace1af64c062a7e20db | 2,966 | cpp | C++ | service/type-analysis/LocalTypeAnalyzer.cpp | penguin-wwy/redex | 31baadec7ccddcadb5ddaf4947a63112f2eadc04 | [
"MIT"
] | null | null | null | service/type-analysis/LocalTypeAnalyzer.cpp | penguin-wwy/redex | 31baadec7ccddcadb5ddaf4947a63112f2eadc04 | [
"MIT"
] | null | null | null | service/type-analysis/LocalTypeAnalyzer.cpp | penguin-wwy/redex | 31baadec7ccddcadb5ddaf4947a63112f2eadc04 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "LocalTypeAnalyzer.h"
#include <ostream>
#include <sstream>
namespace type_analyzer {
namespace local {
void set_dex_t... | 31.553191 | 79 | 0.649359 |
3fb275b1fdbbbd1fe2e2f585202016030e9a499d | 97 | cpp | C++ | ModelViewer/Scene/GraphNode.cpp | seanisom/glTF-DXViewer | f1e7d88581e3598e397e563f529e7ee2bb4befd6 | [
"MIT"
] | 64 | 2018-05-25T06:18:42.000Z | 2019-04-15T17:27:38.000Z | ModelViewer/Scene/GraphNode.cpp | seanisom/glTF-DXViewer | f1e7d88581e3598e397e563f529e7ee2bb4befd6 | [
"MIT"
] | 4 | 2018-05-26T10:53:33.000Z | 2018-10-20T20:46:41.000Z | ModelViewer/Scene/GraphNode.cpp | seanisom/glTF-DXViewer | f1e7d88581e3598e397e563f529e7ee2bb4befd6 | [
"MIT"
] | 13 | 2019-09-19T00:50:07.000Z | 2022-03-22T13:39:52.000Z | #include "pch.h"
#include "GraphNode.h"
GraphNode::GraphNode()
{
}
GraphNode::~GraphNode()
{
}
| 8.818182 | 23 | 0.659794 |
3fb74b04398c86a82ee87fd73e7978448181f8f1 | 4,496 | cpp | C++ | loadNVML.cpp | nvpro-samples/nvml_enterprise_gpu_check | 84d2e25b0d59a3b7527e4134dca0e7963bff73ce | [
"Apache-2.0"
] | 3 | 2020-12-22T16:28:42.000Z | 2021-05-07T03:09:35.000Z | loadNVML.cpp | nvpro-samples/nvml_enterprise_gpu_check | 84d2e25b0d59a3b7527e4134dca0e7963bff73ce | [
"Apache-2.0"
] | null | null | null | loadNVML.cpp | nvpro-samples/nvml_enterprise_gpu_check | 84d2e25b0d59a3b7527e4134dca0e7963bff73ce | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 29.578947 | 128 | 0.694617 |
3fbc2c1511a22a9326d773d89fa0210f8eb87c5e | 3,315 | cpp | C++ | GameEngine/src/GameEngine/Debug/Instrumentor.cpp | Mevelec/GameEngine | 70195139dcf74170ed34282ce1918160364a441f | [
"Apache-2.0"
] | null | null | null | GameEngine/src/GameEngine/Debug/Instrumentor.cpp | Mevelec/GameEngine | 70195139dcf74170ed34282ce1918160364a441f | [
"Apache-2.0"
] | null | null | null | GameEngine/src/GameEngine/Debug/Instrumentor.cpp | Mevelec/GameEngine | 70195139dcf74170ed34282ce1918160364a441f | [
"Apache-2.0"
] | null | null | null | #include "hzpch.h"
#include "GameEngine/Debug/Instrumentor.h"
namespace GameEngine {
Instrumentor::Instrumentor()
: currentSession(nullptr)
{
}
void Instrumentor::beginSession(const std::string& name, const std::string& filepath)
{
std::lock_guard lock(this->mutex);
if (this->currentSession) {
// If the... | 29.078947 | 209 | 0.66727 |
3fbd2291205d3aa177eb124262ae47140c8c5de5 | 2,917 | cc | C++ | components/content_capture/android/test_support/content_capture_test_support_android.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | components/content_capture/android/test_support/content_capture_test_support_android.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | components/content_capture/android/test_support/content_capture_test_support_android.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/content_capture/android/test_support/jni_headers/ContentCaptureTestSupport_jni.h"
#include "base/android/jni_string.h"
#include "bas... | 37.883117 | 102 | 0.718204 |
3fbd89de088e25b8660b22f80092d7770af13880 | 2,401 | cpp | C++ | src/socket.cpp | envelope-project/lauSim | 6dc188600823d9c9464df0063a39a1ec3a6e9eda | [
"Apache-2.0"
] | null | null | null | src/socket.cpp | envelope-project/lauSim | 6dc188600823d9c9464df0063a39a1ec3a6e9eda | [
"Apache-2.0"
] | null | null | null | src/socket.cpp | envelope-project/lauSim | 6dc188600823d9c9464df0063a39a1ec3a6e9eda | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2017 Clemens Jonischkeit
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 t... | 24.5 | 86 | 0.60683 |
3fc2a818b30b2a24ade65a8a5e638328ed2fe018 | 178 | hpp | C++ | AL/Common/Endians.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | AL/Common/Endians.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | AL/Common/Endians.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | #pragma once
#include "AL/Common.hpp"
namespace AL
{
enum class Endians : uint8
{
Big,
Little,
Machine = ((0xFFFFFFFF & 0x00000001) == 0x00000001) ? Little : Big
};
}
| 12.714286 | 68 | 0.646067 |
3fc54a6e89098b26a6e9ad85d8492819589a9479 | 643 | hpp | C++ | inc/large_object.hpp | danilailie/ConcurrentHashMap | 5d532018fa194ddc851b722aeda00d3fd07a2c8c | [
"MIT"
] | null | null | null | inc/large_object.hpp | danilailie/ConcurrentHashMap | 5d532018fa194ddc851b722aeda00d3fd07a2c8c | [
"MIT"
] | null | null | null | inc/large_object.hpp | danilailie/ConcurrentHashMap | 5d532018fa194ddc851b722aeda00d3fd07a2c8c | [
"MIT"
] | null | null | null | #ifndef _LARGE_OBJECT_HPP_
#define _LARGE_OBJECT_HPP_
#include <mutex>
#include <vector>
class LargeObject
{
public:
explicit LargeObject (int anIndex) : index (anIndex)
{
data.resize (10000);
}
LargeObject (const LargeObject &other)
{
std::unique_lock<std::mutex> lock (copyMutex);
data = other... | 14.953488 | 54 | 0.66874 |
3fc7dfc519c3f942b965bc75e9f7e3cf6692ba7d | 318 | cpp | C++ | CodeForces/misc/Detective Book.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/misc/Detective Book.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/misc/Detective Book.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include<bits/stdc++.h>
using namespace std;
int main()
{
long long int t,i,k,c=0;
long long int a[100000];
scanf("%lld",&t);
for(i=0;i<t;i++)
{
scanf("%lld",&a[i]);
}
sort(a,a+t);
for(i=0;i<t;i++)
{
if(a[i]==(i+1))
c++;
}
printf("%lld\n",c);
}
| 15.142857 | 28 | 0.421384 |
3fc95b7cf41b50af275afa63af412d0b907058d6 | 2,824 | cpp | C++ | Random/C++/Analyzer.cpp | akimikimikimikimikimikimika/shellCommands | f6970f3827ac7491db9b168c8f7929bfb1440940 | [
"MIT"
] | null | null | null | Random/C++/Analyzer.cpp | akimikimikimikimikimikimika/shellCommands | f6970f3827ac7491db9b168c8f7929bfb1440940 | [
"MIT"
] | null | null | null | Random/C++/Analyzer.cpp | akimikimikimikimikimikimika/shellCommands | f6970f3827ac7491db9b168c8f7929bfb1440940 | [
"MIT"
] | null | null | null | #include <string>
#include "Structure.hpp"
using namespace std;
void help();
void version();
RandType detectRT(string);
enum Responder {
None,
Mode,
Seed,
Discard,
Length,
RangeFirst,
RangeSecond
};
bool argAnalyze(int argc, char *argv[], Customize &c) {
if (argc>1) {
string firstArg = string(argv[1]);
... | 21.393939 | 73 | 0.588173 |
3fca0a4e63acb2c0a30a939cc978b933f8ea5e7f | 104 | cpp | C++ | src/utils/utils.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 11 | 2020-04-14T15:45:42.000Z | 2022-03-31T14:37:03.000Z | src/utils/utils.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 38 | 2019-08-02T15:15:51.000Z | 2022-03-04T19:07:02.000Z | src/utils/utils.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 7 | 2019-07-17T07:50:55.000Z | 2021-07-03T06:44:52.000Z | #include "utils/utils.hpp"
#include <vector>
#include <iostream>
#include <string>
namespace cytnx{
}
| 11.555556 | 26 | 0.721154 |
3fca46273de867ec233fb3c2f45317f38636cd7f | 8,192 | cpp | C++ | source/io/IO.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | 8 | 2017-05-04T07:50:02.000Z | 2019-05-17T02:27:20.000Z | source/io/IO.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | null | null | null | source/io/IO.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | null | null | null | #include "IO.hpp"
#include "exception/exception.hpp"
#include "number/number.hpp"
#include <fstream>
#include <iomanip>
#include <limits>
int IO::loadSDDInfo(std::string directory, Domain& domain) {
#ifndef SEQUENTIAL
int SDDid;
MPI_Comm_rank(MPI_COMM_WORLD, &SDDid);
#else
int SDDid = 0;
#endi... | 31.267176 | 181 | 0.585083 |
3fcaab27705037b4dd1f57f02e5cc14c4444cbdd | 1,208 | hpp | C++ | src/Graphics/Transform.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | 1 | 2022-02-10T04:41:57.000Z | 2022-02-10T04:41:57.000Z | src/Graphics/Transform.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | src/Graphics/Transform.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | #ifndef DRK_GRAPHICS_TRANSFORM_HPP
#define DRK_GRAPHICS_TRANSFORM_HPP
#include "lib/glm/mat4.hpp"
#include "lib/glm/vec3.hpp"
namespace DrkCraft
{
class Transform
{
private:
mat4 m_matrix;
public:
Transform(void); // Identity matrix
Transform(const mat4& matrix);
Tran... | 28.093023 | 65 | 0.655629 |
3fcbdb44c5373b7f0e88d78c419c4d59cd7bcc68 | 561 | cpp | C++ | Flick/src/Flick/Renderer/Renderer.cpp | firo1738/FLICK | a6ccb0f23c212d0f1b97f71520beb3a89be57f2d | [
"Apache-2.0"
] | null | null | null | Flick/src/Flick/Renderer/Renderer.cpp | firo1738/FLICK | a6ccb0f23c212d0f1b97f71520beb3a89be57f2d | [
"Apache-2.0"
] | null | null | null | Flick/src/Flick/Renderer/Renderer.cpp | firo1738/FLICK | a6ccb0f23c212d0f1b97f71520beb3a89be57f2d | [
"Apache-2.0"
] | null | null | null | #include "fipch.h"
#include "Renderer.h"
namespace Flick
{
Renderer::SceneData* Renderer::s_SceneData = new Renderer::SceneData;
void Renderer::BeginScene(OrthographicCamera& camera)
{
s_SceneData->ViewProjectionMatrix = camera.GetViewProjectionMatrix();
}
void Renderer::EndScene()
{
}
void Renderer::Sub... | 21.576923 | 101 | 0.741533 |
3fcc765bf885aa85a1b1310ee0c0c01f12e966d9 | 10,000 | cpp | C++ | sources/math/fraction.cpp | bce-toolkit/historical-bce-cpp-1.x-with-shell | 11b5bd3782eeded9240ac5181c64baff293c667b | [
"BSD-2-Clause"
] | null | null | null | sources/math/fraction.cpp | bce-toolkit/historical-bce-cpp-1.x-with-shell | 11b5bd3782eeded9240ac5181c64baff293c667b | [
"BSD-2-Clause"
] | null | null | null | sources/math/fraction.cpp | bce-toolkit/historical-bce-cpp-1.x-with-shell | 11b5bd3782eeded9240ac5181c64baff293c667b | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2012-2013, The BCE Project authors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | 22.624434 | 117 | 0.6749 |
3fcdf9d5b15855cd8aa1e303670f5e1e67c00812 | 11,413 | cpp | C++ | oculusTest/Main.cpp | Ybalrid/ogre-oculus-opengl | 7d23ecfcd24ff6babcd111718047a2b841ff24fb | [
"MIT"
] | 2 | 2016-05-19T15:01:37.000Z | 2017-04-18T14:42:27.000Z | oculusTest/Main.cpp | Ybalrid/ogre-oculus-opengl | 7d23ecfcd24ff6babcd111718047a2b841ff24fb | [
"MIT"
] | 1 | 2016-04-07T08:59:39.000Z | 2016-04-07T08:59:39.000Z | oculusTest/Main.cpp | Ybalrid/ogre-oculus-opengl | 7d23ecfcd24ff6babcd111718047a2b841ff24fb | [
"MIT"
] | null | null | null | #ifdef _WIN32
#define mainFunc() int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow)
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <glew.h>
#else
#define mainFunc() int main(void)
#endif
#include <iostream>
#include <Ogre.h>
#include <RenderSystems/GL/OgreGLTexture... | 36.935275 | 147 | 0.760011 |
3fce7a5c2dc9865523e470a252b4f0e16aae49ef | 6,813 | cpp | C++ | samples/transcode/transcode_runner.cpp | YJessicaGao/easydk | e62eecde91886c2679def95edafb48f97650edfa | [
"Apache-2.0"
] | null | null | null | samples/transcode/transcode_runner.cpp | YJessicaGao/easydk | e62eecde91886c2679def95edafb48f97650edfa | [
"Apache-2.0"
] | null | null | null | samples/transcode/transcode_runner.cpp | YJessicaGao/easydk | e62eecde91886c2679def95edafb48f97650edfa | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* Copyright (C) [2021] by Cambricon, Inc. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | 40.796407 | 119 | 0.68883 |
3fd24f04ce01504b604379bb1e05634bcbd8b6ee | 317 | hpp | C++ | ray.hpp | dodopod/raycast | 31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1 | [
"MIT"
] | null | null | null | ray.hpp | dodopod/raycast | 31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1 | [
"MIT"
] | null | null | null | ray.hpp | dodopod/raycast | 31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1 | [
"MIT"
] | null | null | null | #ifndef RAY_HPP
#define RAY_HPP
#include "vec2.hpp"
class Ray
{
public:
Ray(const Vec2& p, const Vec2& v);
Vec2 getOrigin() const;
Vec2 getDirection() const;
void setOrigin(const Vec2& p);
void setDirection(const Vec2& v);
private:
Vec2 origin;
Vec2 direction;
};
#endif
| 13.782609 | 38 | 0.630915 |
3fd574ae456d4cc73c61d16eba63c75b22d7091a | 773 | cc | C++ | cc/function_object/function_pointer.cc | tyohei/examples | 38652f48aca2b668bcc116ba401795d4be2f8f18 | [
"MIT"
] | 1 | 2020-09-14T17:29:02.000Z | 2020-09-14T17:29:02.000Z | cc/function_object/function_pointer.cc | tyohei/examples | 38652f48aca2b668bcc116ba401795d4be2f8f18 | [
"MIT"
] | 8 | 2020-09-05T10:19:39.000Z | 2021-05-07T10:04:27.000Z | cc/function_object/function_pointer.cc | tyohei/examples | 38652f48aca2b668bcc116ba401795d4be2f8f18 | [
"MIT"
] | null | null | null | /********************************
* Function Pointer
*
* Function pointer is a pointer that points a function. It is useful when
* you considering to use C/C++ together. The syntax is like below (only
* show a function pointer that takes two arguments).
*
* ```
* returntype (*name)(argtype, a... | 19.325 | 77 | 0.52652 |
3fd6f5e142bce690b9c5fe4c75f474aecdc42137 | 3,844 | cpp | C++ | test/src/tc/rd/gtest/src/stc/RDServerIntegrationTest.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 301 | 2015-01-20T16:11:32.000Z | 2021-11-25T04:29:36.000Z | test/src/tc/rd/gtest/src/stc/RDServerIntegrationTest.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 13 | 2015-06-04T09:55:15.000Z | 2020-09-23T00:38:07.000Z | test/src/tc/rd/gtest/src/stc/RDServerIntegrationTest.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 233 | 2015-01-26T03:41:59.000Z | 2022-03-18T23:54:04.000Z | /******************************************************************
*
* Copyright 2016 Samsung Electronics 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://... | 32.302521 | 138 | 0.653486 |
3fda9f7441dbe0444f5ffdf9c2f162f122510cef | 474 | cpp | C++ | Homework_8/Shape_Yiming_Bi.cpp | markblitz/RU_503_HW | a9f3ea53a9d80d2a594768bc5796fed8cb3433b9 | [
"MIT"
] | null | null | null | Homework_8/Shape_Yiming_Bi.cpp | markblitz/RU_503_HW | a9f3ea53a9d80d2a594768bc5796fed8cb3433b9 | [
"MIT"
] | null | null | null | Homework_8/Shape_Yiming_Bi.cpp | markblitz/RU_503_HW | a9f3ea53a9d80d2a594768bc5796fed8cb3433b9 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#include "Shape_Yiming_Bi.h"
Shape::Shape()
{
Set_X(0);
Set_Y(0);
}
Shape::~Shape()
{
// nothing I may do here...
}
void Shape::Set_X(double input_x)
{
center_x = input_x;
}
void Shape::Set_Y(double input_y)
{
center_y = input_y;
}
double Shape::Get_X() const
{
retu... | 11.285714 | 49 | 0.628692 |
3fdbe4b7078cf0a64dd3d66b879007619a6c7f5f | 3,220 | cpp | C++ | subject/Exam_2_singleton.cpp | IdiotXue/OfferCoding | 38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e | [
"MIT"
] | 14 | 2017-12-29T08:18:14.000Z | 2020-01-06T16:06:31.000Z | subject/Exam_2_singleton.cpp | IdiotXue/OfferCoding | 38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e | [
"MIT"
] | null | null | null | subject/Exam_2_singleton.cpp | IdiotXue/OfferCoding | 38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e | [
"MIT"
] | 1 | 2019-12-20T06:07:50.000Z | 2019-12-20T06:07:50.000Z | //main.cpp
#include <iostream>
#include "Singleton.h"
int main(int argc, char *argv[])
{
std::cout << "main work" << std::endl;
auto single = Singleton::GetInstance();
std::cout << single << std::endl;
}
//Singleton.h
#ifndef __SINGLETON_H__
#define __SINGLETON_H__
#include <iostream>
#include <memory> ... | 28.495575 | 82 | 0.646894 |
3fdf84459ab8fd5bd00c450e6a32393b198e3d92 | 282 | cpp | C++ | contest/AtCoder/abc135/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc135/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc135/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "vector.hpp"
int main() {
int n(in);
Vector<int64_t> a(n + 1, in), b(n, in);
int64_t res = 0;
for (int i = 0; i < n; ++i) {
auto r1 = min(a[i], b[i]);
auto r2 = min(a[i + 1], b[i] - r1);
res += r1 + r2;
a[i + 1] -= r2;
}
cout << res << endl;
}
| 18.8 | 41 | 0.443262 |
3fe1e08052fbf04b08e0214547368e45b3804aa4 | 637 | cpp | C++ | YorozuyaGSLib/source/_pt_trans_votepaper_zocl.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_pt_trans_votepaper_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_pt_trans_votepaper_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_pt_trans_votepaper_zocl.hpp>
START_ATF_NAMESPACE
_pt_trans_votepaper_zocl::_pt_trans_votepaper_zocl()
{
using org_ptr = void (WINAPIV*)(struct _pt_trans_votepaper_zocl*);
(org_ptr(0x1402bfff0L))(this);
};
void _pt_trans_votepaper_zocl::ctor__pt_trans_votepaper_zocl()
{
... | 28.954545 | 74 | 0.689168 |
3fe76f19d28426a27e7fd1418b7032b118b02e00 | 745 | cc | C++ | src/Animation.cc | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | src/Animation.cc | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | src/Animation.cc | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | #include "Animation.hh"
Animation:: Animation(const char* animationUrl, Drawable*& drawable)
{
reader = new std::ifstream();
reader->open(animationUrl);
*reader >> delay;
*reader >> row;
*reader >> startFrame;
*reader >> endFrame;
reader->close();
currentFrame = startFrame;
this->drawable = drawabl... | 19.102564 | 136 | 0.634899 |
3fe8df62bca012d15b55803766329e5032619fe6 | 139 | cpp | C++ | src/grpc_server_lib/src/greeter_async_server.cpp | vladimir-voinea/cpp_grpc_template | 8f79b0083ed387e6b3de3b48b7306f2cbba7bb28 | [
"MIT"
] | null | null | null | src/grpc_server_lib/src/greeter_async_server.cpp | vladimir-voinea/cpp_grpc_template | 8f79b0083ed387e6b3de3b48b7306f2cbba7bb28 | [
"MIT"
] | null | null | null | src/grpc_server_lib/src/greeter_async_server.cpp | vladimir-voinea/cpp_grpc_template | 8f79b0083ed387e6b3de3b48b7306f2cbba7bb28 | [
"MIT"
] | null | null | null | #include <grpc_server_lib/greeter_async_server.hpp>
int main(int argc, char** argv) {
ServerImpl server;
server.Run();
return 0;
}
| 15.444444 | 51 | 0.71223 |
3fe9ec20f18230b54c45d6cbb395a2ff9ac65eea | 539 | cpp | C++ | matex-k18-a-js/krazki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | matex-k18-a-js/krazki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | matex-k18-a-js/krazki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef intmax_t I;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
I n, m;
cin >> n >> m;
vector<I> r(n);
for (I i = 0; i < n; ++i) {
cin >> r[i];
if (i > 0 && r[i] > r[i - 1]) r[i] = r[i - 1];
}
I l = n -... | 14.567568 | 50 | 0.45269 |
3feb165d280660848289bb4b2c35ed3da7efa381 | 12,127 | hpp | C++ | package/lib-nms-abp/inc/nms_abp.hpp | krai/ck-mlperf | 8849c68662be2f9f7ea6d2520dba35d6a159e4b8 | [
"BSD-3-Clause"
] | 2 | 2021-04-22T01:29:58.000Z | 2021-12-13T14:29:35.000Z | package/lib-nms-abp/inc/nms_abp.hpp | krai/ck-mlperf | 8849c68662be2f9f7ea6d2520dba35d6a159e4b8 | [
"BSD-3-Clause"
] | 4 | 2021-06-27T22:33:19.000Z | 2022-02-07T09:21:59.000Z | package/lib-nms-abp/inc/nms_abp.hpp | krai/ck-mlperf | 8849c68662be2f9f7ea6d2520dba35d6a159e4b8 | [
"BSD-3-Clause"
] | 5 | 2021-02-17T12:10:39.000Z | 2022-02-17T18:19:16.000Z | // MIT License
//
// Copyright (c) 2021 Krai Ltd
//
// 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, me... | 39.630719 | 80 | 0.579203 |
3feb1bf4f05bea465c6fa1ce0b9e5f17b1afc165 | 294 | cc | C++ | StackOutBounds.cc | 7andrew7/Bugorama | d0315083732f7724612963e98a7e89481f7acade | [
"MIT"
] | null | null | null | StackOutBounds.cc | 7andrew7/Bugorama | d0315083732f7724612963e98a7e89481f7acade | [
"MIT"
] | null | null | null | StackOutBounds.cc | 7andrew7/Bugorama | d0315083732f7724612963e98a7e89481f7acade | [
"MIT"
] | null | null | null | #include <iostream>
// Reference out-of-bounds stack memory via a helper function
char BufferFetch(char *buffer, size_t index) {
return buffer[index];
}
int main(int argc, char **argv) {
char buffer[256] = {0};
char c = BufferFetch(buffer, 259);
std::cout << c << std::endl;
}
| 18.375 | 61 | 0.656463 |
684cafa346744b347917ad0cb40319d9f91ef922 | 588 | cc | C++ | ports/www/chromium-legacy/newport/files/patch-chrome_browser_download_download__shelf__context__menu.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2015-02-06T17:06:37.000Z | 2022-03-08T19:53:28.000Z | ports/www/chromium-legacy/newport/files/patch-chrome_browser_download_download__shelf__context__menu.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 236 | 2015-06-29T19:51:17.000Z | 2021-12-16T22:46:38.000Z | ports/www/chromium-legacy/newport/files/patch-chrome_browser_download_download__shelf__context__menu.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 52 | 2015-02-06T17:05:36.000Z | 2021-10-21T12:13:06.000Z | --- chrome/browser/download/download_shelf_context_menu.cc.orig 2020-11-13 06:36:36 UTC
+++ chrome/browser/download/download_shelf_context_menu.cc
@@ -146,7 +146,7 @@ base::string16 DownloadShelfContextMenu::GetLabelForCo
: IDS_DOWNLOAD_MENU_PLATFORM_OPEN_ALWAYS;
break;
}
-#elif ... | 49 | 87 | 0.697279 |
684f3552f949e69f8353322b84d8b8e9c018909a | 824 | hpp | C++ | src/utils/function.hpp | dynilath/cqcppsdk | 8f14c2ed85b6d2917ad7aef149acdfb89512937f | [
"MIT"
] | 154 | 2020-01-03T02:51:51.000Z | 2020-08-03T19:44:53.000Z | src/utils/function.hpp | dynilath/cqcppsdk | 8f14c2ed85b6d2917ad7aef149acdfb89512937f | [
"MIT"
] | 22 | 2020-01-26T04:18:28.000Z | 2020-07-04T06:38:28.000Z | src/utils/function.hpp | dynilath/cqcppsdk | 8f14c2ed85b6d2917ad7aef149acdfb89512937f | [
"MIT"
] | 40 | 2020-01-06T11:17:25.000Z | 2020-08-07T08:26:32.000Z | #pragma once
#include <functional>
namespace cq::utils {
template <typename ReturnType, typename... Params, typename... Args>
inline ReturnType call_if_valid(const std::function<ReturnType(Params...)> &func, Args &&... args) {
if (func) {
return func(std::forward<Args>(args)...);
}... | 29.428571 | 104 | 0.569175 |
684fc2132fae3647a2a82ab6f68778a29c42fb4d | 10,012 | hpp | C++ | commune/kMeansLearner.hpp | fuchuanpu/Whisper | 80622d6d30b59feab1312865b4395960b9b4d8ea | [
"MIT"
] | 25 | 2021-11-15T03:03:46.000Z | 2022-03-23T03:39:06.000Z | commune/kMeansLearner.hpp | sljx/Whisper | 80622d6d30b59feab1312865b4395960b9b4d8ea | [
"MIT"
] | 2 | 2021-12-22T13:16:53.000Z | 2022-02-02T17:23:42.000Z | commune/kMeansLearner.hpp | sljx/Whisper | 80622d6d30b59feab1312865b4395960b9b4d8ea | [
"MIT"
] | 11 | 2021-11-15T04:00:53.000Z | 2022-03-07T04:31:18.000Z | #pragma once
#include "../common.hpp"
#include "./analyzerWorker.hpp"
#include "./deviceConfig.hpp"
#include <mlpack/core.hpp>
#include <mlpack/methods/kmeans/kmeans.hpp>
#include <time.h>
#include <unistd.h>
#include <semaphore.h>
namespace Whisper {
class AnalyzerWorkerThread;
class DeviceConfig;
struct Lea... | 30.431611 | 107 | 0.560727 |
68505f2e3f041ba73de3fd3302d0ae08f1230e6a | 4,880 | cpp | C++ | src/atta/uiSystem/layers/editor/topBar/localWindows/repoWindow.cpp | brenocq/atta | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 5 | 2021-11-18T02:44:45.000Z | 2021-12-21T17:46:10.000Z | src/atta/uiSystem/layers/editor/topBar/localWindows/repoWindow.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 1 | 2021-11-18T02:56:14.000Z | 2021-12-04T15:09:16.000Z | src/atta/uiSystem/layers/editor/topBar/localWindows/repoWindow.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 3 | 2020-09-10T07:17:00.000Z | 2020-11-05T10:24:41.000Z | //--------------------------------------------------
// Atta UI System
// repoWindow.cpp
// Date: 2021-12-26
// By Breno Cunha Queiroz
//--------------------------------------------------
#include <atta/uiSystem/layers/editor/topBar/localWindows/repoWindow.h>
#include <atta/fileSystem/fileManager.h>
#include <imgui.h>
... | 34.366197 | 127 | 0.483811 |
68519e46e9b2173735930021186e07b0327d8b4c | 1,740 | hpp | C++ | source/vaultserver/NPC.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 67 | 2015-01-08T10:40:31.000Z | 2022-03-29T21:16:51.000Z | source/vaultserver/NPC.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 20 | 2015-01-05T21:04:05.000Z | 2018-04-15T11:50:37.000Z | source/vaultserver/NPC.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 60 | 2015-02-17T00:12:11.000Z | 2021-08-21T22:16:58.000Z | #ifndef NPCDB_H
#define NPCDB_H
#include "vaultserver.hpp"
#include "Expected.hpp"
#include "BaseContainer.hpp"
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <functional>
class sqlite3_stmt;
/**
* \brief Represents a NPC
*/
namespace DB
{
class NPC
{
private:
enum TplFlags :... | 21.481481 | 77 | 0.666667 |
68580e87a44db7b56238a9c1767c6b110e281494 | 1,949 | cpp | C++ | graph/475b.cpp | SnowOnion/CodeForcesLee | c2e964432ce9c2f6ca0c9038934c10f1bf1268b3 | [
"MIT"
] | null | null | null | graph/475b.cpp | SnowOnion/CodeForcesLee | c2e964432ce9c2f6ca0c9038934c10f1bf1268b3 | [
"MIT"
] | null | null | null | graph/475b.cpp | SnowOnion/CodeForcesLee | c2e964432ce9c2f6ca0c9038934c10f1bf1268b3 | [
"MIT"
] | null | null | null | /**
WA at test 16!
http://codeforces.com/contest/475/submission/8223685
16 11
<<<<>><><<<<<><<
vv^v^vvvv^v
output YES
answer NO
*/
#include<cstdio>
/**Floyd 算法. A 权值, D最终是最短距离*/
int A[410][410],D[410][410];
const int inf=1000000;
int rowarr[30],colarr[30];// 1: > ^ ; -1: < v
int n,m;
/**safe assign something to... | 19.686869 | 54 | 0.391483 |
6859e8df87dd1f2873927e4b1146d37b4bf06da7 | 13,408 | cpp | C++ | src/Game.cpp | howprice/sdl2-tetris | 8272994293c84b42450ef68bc92c73587f2429cd | [
"BSD-3-Clause"
] | 11 | 2015-09-30T12:14:59.000Z | 2022-03-22T04:04:51.000Z | src/Game.cpp | howprice/sdl2-tetris | 8272994293c84b42450ef68bc92c73587f2429cd | [
"BSD-3-Clause"
] | 2 | 2015-09-30T16:00:18.000Z | 2016-12-29T10:51:14.000Z | src/Game.cpp | howprice/sdl2-tetris | 8272994293c84b42450ef68bc92c73587f2429cd | [
"BSD-3-Clause"
] | 2 | 2021-12-23T04:20:12.000Z | 2022-03-22T04:09:57.000Z | //--------------------------------------------------------------------------------------------------
/**
\file Game.cpp
**/
//--------------------------------------------------------------------------------------------------
#include "Game.h"
#include "Debug.h"
#include "Renderer.h"
#include <stdio.h>
#includ... | 24.647059 | 148 | 0.648568 |
685c4977bbdb94cf8d969e524331334a16c37764 | 1,362 | hpp | C++ | _thirdparty/include/boost/process/detail/posix/search_path.hpp | joerghall/sourcesfs | 29ed9675b18f16d869116ed5e5d5343241aa5335 | [
"MIT"
] | 1 | 2017-07-27T19:32:29.000Z | 2017-07-27T19:32:29.000Z | _thirdparty/include/boost/process/detail/posix/search_path.hpp | joerghall/sourcesfs | 29ed9675b18f16d869116ed5e5d5343241aa5335 | [
"MIT"
] | null | null | null | _thirdparty/include/boost/process/detail/posix/search_path.hpp | joerghall/sourcesfs | 29ed9675b18f16d869116ed5e5d5343241aa5335 | [
"MIT"
] | null | null | null | // Copyright (c) 2006, 2007 Julio M. Merino Vidal
// Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
// Copyright (c) 2009 Boris Schaeling
// Copyright (c) 2010 Felipe Tanus, Boris Schaeling
// Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling
//
// Distributed under the Boost Software License, Version 1.0. (See ac... | 28.978723 | 79 | 0.671072 |
685fc3c63da7cf6de89fb2f6fa9b3c99474a87d5 | 1,512 | hpp | C++ | include/lol/def/LolFeaturedModesQueue.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolFeaturedModesQueue.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolFeaturedModesQueue.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
#include "LolFeaturedModesQueueGameCategory.hpp"
#include "LolFeaturedModesQueueAvailability.hpp"
namespace lol {
struct LolFeaturedModesQueue {
int32_t id;
int32_t mapId;
std::string name;
std::string gameMode;
std::string gameMutator;
LolFeaturedMode... | 38.769231 | 94 | 0.681217 |
6868fd3637db09a89d57b5b02343391b87783b5c | 2,159 | cpp | C++ | runtime/gmm_helper/gmm_types_converter.cpp | Unihedro/compute-runtime | cc46cdf46cb37eb7801918cd03c7fd3e06fd4068 | [
"MIT"
] | null | null | null | runtime/gmm_helper/gmm_types_converter.cpp | Unihedro/compute-runtime | cc46cdf46cb37eb7801918cd03c7fd3e06fd4068 | [
"MIT"
] | null | null | null | runtime/gmm_helper/gmm_types_converter.cpp | Unihedro/compute-runtime | cc46cdf46cb37eb7801918cd03c7fd3e06fd4068 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/gmm_helper/gmm_types_converter.h"
#include "core/memory_manager/graphics_allocation.h"
#include "runtime/helpers/get_info.h"
#include "runtime/helpers/surface_formats.h"
#include "GL/gl.h"
#include "GL/glext.h"
us... | 29.575342 | 120 | 0.708198 |
686ccbd7138830920135b815f363caccf1427ebe | 3,451 | hpp | C++ | shared/include/small_function.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | shared/include/small_function.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | shared/include/small_function.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include <array>
#include <cstddef>
#include <functional>
#include <type_traits>
#include <utility>
namespace sp {
template<typename>
class Small_function;
template<typename Return, typename... Args>
class Small_function<Return(Args...) noexcept> {
public:
Small_function() = default;
Small_funct... | 25.189781 | 82 | 0.651985 |
686dc59f38054c90246c2f35f5cf440cde121bab | 5,788 | cc | C++ | Alignment/CommonAlignmentProducer/test/TestAccessGeom.cc | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 2 | 2020-10-26T18:40:32.000Z | 2021-04-10T16:33:25.000Z | Alignment/CommonAlignmentProducer/test/TestAccessGeom.cc | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 30 | 2015-11-04T11:42:27.000Z | 2021-12-01T07:56:34.000Z | Alignment/CommonAlignmentProducer/test/TestAccessGeom.cc | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 8 | 2016-03-25T07:17:43.000Z | 2021-07-08T17:11:21.000Z | // -*- C++ -*-
//
// Package: TestAccessGeom
// Class: TestAccessGeom
//
/**\class TestAccessGeom Alignment/CommonAlignmentProducer/test/TestAccessGeom.cc
Description: <one line class summary>
Implementation:
Module accessing tracking geometries for tracker, DT and CSC
*/
//
// Original Author: Gero Fluck... | 38.586667 | 119 | 0.666724 |
686e89928f2180b1131b2a5b1400265bf0917585 | 23,768 | cpp | C++ | tests/test_arrays.cpp | yangyha/ipic3d-klm | d91f8f7fe361f38ab00a3169e4a583e5713e1a9a | [
"Apache-2.0"
] | null | null | null | tests/test_arrays.cpp | yangyha/ipic3d-klm | d91f8f7fe361f38ab00a3169e4a583e5713e1a9a | [
"Apache-2.0"
] | 1 | 2021-06-22T09:14:29.000Z | 2021-06-22T13:18:14.000Z | tests/test_arrays.cpp | yangyha/ipic3d-klm | d91f8f7fe361f38ab00a3169e4a583e5713e1a9a | [
"Apache-2.0"
] | 4 | 2021-05-28T08:59:49.000Z | 2021-07-08T07:55:48.000Z | /* iPIC3D was originally developed by Stefano Markidis and Giovanni Lapenta.
* This release was contributed by Alec Johnson and Ivy Bo Peng.
* Publications that use results from iPIC3D need to properly cite
* 'S. Markidis, G. Lapenta, and Rizwan-uddin. "Multi-scale simulations of
* plasma with iPIC3D." Mathemat... | 27.669383 | 134 | 0.575353 |
68718219eda17a62176ed61329edcffd8ae22551 | 1,485 | cpp | C++ | leetcode/cpp/p2/p2.cpp | davidlunadeleon/leetcode | 3a3d7d3ec9b708982658b154f8e551ae9a9fb8c1 | [
"Unlicense"
] | 1 | 2020-08-20T23:27:13.000Z | 2020-08-20T23:27:13.000Z | leetcode/cpp/p2/p2.cpp | davidlunadeleon/leetcode | 3a3d7d3ec9b708982658b154f8e551ae9a9fb8c1 | [
"Unlicense"
] | null | null | null | leetcode/cpp/p2/p2.cpp | davidlunadeleon/leetcode | 3a3d7d3ec9b708982658b154f8e551ae9a9fb8c1 | [
"Unlicense"
] | null | null | null | // Source: https://leetcode.com/problems/add-two-numbers/
// Date: 17.06.2020
// Solution by: David Luna
// Runtime: 44ms
// Memory usage: 71.2 MB
#include <iostream>
#include <vector>
#include "../lib/linkedListUtils/linkedListUtils.h"
#include "../lib/vectorUtils/vectorUtils.h"
// Leetcode solution starts
class S... | 19.8 | 74 | 0.651178 |
68725068ccbabe252b8e7038540bab47f6c4459a | 1,122 | cpp | C++ | src/mxAUIContainer.cpp | stahta01/Zinjal | 8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42 | [
"OML"
] | 1 | 2019-03-24T00:58:59.000Z | 2019-03-24T00:58:59.000Z | src/mxAUIContainer.cpp | stahta01/Zinjal | 8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42 | [
"OML"
] | null | null | null | src/mxAUIContainer.cpp | stahta01/Zinjal | 8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42 | [
"OML"
] | null | null | null | #include "mxAUIContainer.h"
#include "mxMainWindow.h"
#include "mxAUI.h"
BEGIN_EVENT_TABLE(mxAUIContainer,wxAuiNotebook)
EVT_AUINOTEBOOK_PAGE_CHANGED(mxID_LEFT_PANELS, mxAUIContainer::OnPageChanged)
END_EVENT_TABLE()
mxAUIContainer::mxAUIContainer (wxWindow * parent, bool for_side_panel)
: wxAuiNotebook(parent, wx... | 24.391304 | 102 | 0.753119 |
6872aa2d719d1b24f647cb4e8ac2bad7c8b97096 | 1,454 | cpp | C++ | hr/hard/connectedSum.cpp | gnom1gnom/cpp-algorithms | e460c0d1720acf0e0548452dfba05651e4868120 | [
"Unlicense"
] | null | null | null | hr/hard/connectedSum.cpp | gnom1gnom/cpp-algorithms | e460c0d1720acf0e0548452dfba05651e4868120 | [
"Unlicense"
] | null | null | null | hr/hard/connectedSum.cpp | gnom1gnom/cpp-algorithms | e460c0d1720acf0e0548452dfba05651e4868120 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
map<int, vector<int>> v;
map<int, bool> visited;
int getConnectedComponentSize(int x)
{
stack<int> nodes;
nodes.push(x);
visited[x] = true;
int cnt = 0;
while (nodes.size() > 0)
{
int x = nodes.top();
nodes.pop();
cnt += 1... | 20.771429 | 87 | 0.47868 |
68744a3aa9788c1e7ff013c53b2ebc4b971848a2 | 1,451 | cpp | C++ | src/WidgetSprinkler.cpp | intoyuniot/WidgetSprinkler | 10915dd4ea88ba3f2b8aa06feb3acc5b3162251b | [
"MIT"
] | null | null | null | src/WidgetSprinkler.cpp | intoyuniot/WidgetSprinkler | 10915dd4ea88ba3f2b8aa06feb3acc5b3162251b | [
"MIT"
] | null | null | null | src/WidgetSprinkler.cpp | intoyuniot/WidgetSprinkler | 10915dd4ea88ba3f2b8aa06feb3acc5b3162251b | [
"MIT"
] | null | null | null | #include "WidgetSprinkler.h"
WidgetSprinkler::WidgetSprinkler(uint8_t ucItem)
{
_Item=ucItem;
memset(pDataStatusTopic,0,sizeof(pDataStatusTopic));
memset(pCmdWaterTopic,0,sizeof(pCmdWaterTopic));
memset(pDataSoilHumidityTopic,0,sizeof(pDataSoilHumidityTopic));
sprintf(pDataStatusTopic,"channel/spr... | 21.338235 | 83 | 0.760165 |
6875392c133ac3c05480da694262bac3fc550ebd | 1,005 | hpp | C++ | src/region_event_registry.hpp | gemfire/node-gemfire | 51e55645e1b643046b47e8dc7d2144ae58688ed2 | [
"BSD-2-Clause"
] | 8 | 2015-04-24T18:59:01.000Z | 2019-07-05T14:24:22.000Z | src/region_event_registry.hpp | gemfire/node-gemfire | 51e55645e1b643046b47e8dc7d2144ae58688ed2 | [
"BSD-2-Clause"
] | 8 | 2015-06-30T20:48:34.000Z | 2021-03-13T03:45:13.000Z | src/region_event_registry.hpp | gemfire/node-gemfire | 51e55645e1b643046b47e8dc7d2144ae58688ed2 | [
"BSD-2-Clause"
] | 13 | 2015-05-02T16:16:42.000Z | 2021-05-25T05:50:03.000Z | #ifndef __REGION_EVENT_REGISTRY_HPP__
#define __REGION_EVENT_REGISTRY_HPP__
#include <geode/Region.hpp>
#include <geode/EntryEvent.hpp>
#include <string>
#include <set>
#include "region_event_listener.hpp"
#include "event_stream.hpp"
namespace node_gemfire {
class Region;
class RegionEventRegistry {
public:
Regi... | 23.928571 | 92 | 0.761194 |
687672105e4f1408e5e225f7b52bd4e553c0c03c | 4,079 | cpp | C++ | src/ComponentsFactory.cpp | valentingrigorean/Tanks-IP | 24f7db59b009cf05b193bf0a2d46f68b71d0b399 | [
"MIT"
] | null | null | null | src/ComponentsFactory.cpp | valentingrigorean/Tanks-IP | 24f7db59b009cf05b193bf0a2d46f68b71d0b399 | [
"MIT"
] | null | null | null | src/ComponentsFactory.cpp | valentingrigorean/Tanks-IP | 24f7db59b009cf05b193bf0a2d46f68b71d0b399 | [
"MIT"
] | null | null | null | #include <tank/ComponentsFactory.h>
#include <tank/ObjectPool.h>
#include <tank/GameObject.h>
#include <tank/ResourceManager.h>
#include <tank/components/SpriteComponent.h>
#include <tank/components/TransformComponent.h>
#include <tank/components/HealthComponent.h>
#include <tank/components/TankComponent.h>
#include <... | 30.669173 | 131 | 0.730816 |
68772850ae773b62cebb839e75a1805617316515 | 1,041 | cxx | C++ | test/loopcompile4.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | test/loopcompile4.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | test/loopcompile4.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | /* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#include <stdio.h>
#define NUM 10
vo... | 14.661972 | 74 | 0.387128 |
68778b1cfd5fe17c927fc3dca44b4671479ef2d4 | 11,100 | cpp | C++ | examples/Cxx14SGXDemo/Enclave/TrustedLibrary/Libcxx.cpp | VXAPPS/cmake-sgx-template | 01e75934253a63e2a8d371011d268da53833df72 | [
"BSD-3-Clause"
] | null | null | null | examples/Cxx14SGXDemo/Enclave/TrustedLibrary/Libcxx.cpp | VXAPPS/cmake-sgx-template | 01e75934253a63e2a8d371011d268da53833df72 | [
"BSD-3-Clause"
] | null | null | null | examples/Cxx14SGXDemo/Enclave/TrustedLibrary/Libcxx.cpp | VXAPPS/cmake-sgx-template | 01e75934253a63e2a8d371011d268da53833df72 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2011-2021 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this li... | 26.241135 | 94 | 0.627658 |
6879bc324078290ca7f15bc3e932ed06efd6ea7f | 1,827 | hpp | C++ | src/GLRenderer/Scene/Component.hpp | Thomas-Zorroche/GLRenderer | 1e47a98d563a5c1df8c781826322325a1766bda5 | [
"MIT"
] | null | null | null | src/GLRenderer/Scene/Component.hpp | Thomas-Zorroche/GLRenderer | 1e47a98d563a5c1df8c781826322325a1766bda5 | [
"MIT"
] | null | null | null | src/GLRenderer/Scene/Component.hpp | Thomas-Zorroche/GLRenderer | 1e47a98d563a5c1df8c781826322325a1766bda5 | [
"MIT"
] | null | null | null | #pragma once
#include <glm/glm.hpp>
#include <glm/ext/matrix_transform.hpp>
#include <memory>
#include <string>
#include "../Mesh.hpp"
#include "../Lighting/BaseLight.hpp"
#include "../Line.hpp"
namespace glrenderer {
struct TransformComponent
{
glm::vec3 location = glm::vec3(0.0f, 0.0f, 0.0f);
glm::vec3 ro... | 23.423077 | 94 | 0.67214 |
687b2189cd2243075b44d9182317150260ddea43 | 1,186 | cpp | C++ | examples/demo/state_world.cpp | HolyBlackCat/prototyping | 0938ad889db0bfcc3b683beaa92eac81bf05bc76 | [
"Zlib"
] | null | null | null | examples/demo/state_world.cpp | HolyBlackCat/prototyping | 0938ad889db0bfcc3b683beaa92eac81bf05bc76 | [
"Zlib"
] | null | null | null | examples/demo/state_world.cpp | HolyBlackCat/prototyping | 0938ad889db0bfcc3b683beaa92eac81bf05bc76 | [
"Zlib"
] | null | null | null | #include "main.h"
namespace States
{
STRUCT( World EXTENDS StateBase )
{
MEMBERS()
float angle = 0;
void Tick(std::string &next_state) override
{
(void)next_state;
angle += 0.01;
ImGui::ShowDemoWindow();
if (mouse.right.pressed... | 26.954545 | 126 | 0.469646 |
687c5cd7828c54a773742ec44899720ec6854062 | 12,860 | cpp | C++ | nightsky/configDlg.cpp | thurizas/nightSky | 6924ef45c93b45bf0c47e0db2eef667d8255fb38 | [
"Apache-2.0"
] | null | null | null | nightsky/configDlg.cpp | thurizas/nightSky | 6924ef45c93b45bf0c47e0db2eef667d8255fb38 | [
"Apache-2.0"
] | null | null | null | nightsky/configDlg.cpp | thurizas/nightSky | 6924ef45c93b45bf0c47e0db2eef667d8255fb38 | [
"Apache-2.0"
] | null | null | null | #include <QString>
#include <QHBoxLayout>
#include <QLabel>
#include <QDebug>
#include "configDlg.h"
#include "nighsky.h"
/**********************************************************************************************************************************************************************************
* fu... | 37.16763 | 183 | 0.516096 |
688371bb2e97c4f2146c8a233e532d0424e6db3e | 9,590 | cpp | C++ | sqlite/src/ossimGpkgContentsRecord.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 12 | 2016-09-09T01:24:12.000Z | 2022-01-09T21:45:58.000Z | sqlite/src/ossimGpkgContentsRecord.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 5 | 2016-02-04T16:10:40.000Z | 2021-06-29T05:00:29.000Z | sqlite/src/ossimGpkgContentsRecord.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 20 | 2015-11-17T11:46:22.000Z | 2021-11-12T19:23:54.000Z | //----------------------------------------------------------------------------
//
// File: ossimGpkgContentsRecord.cpp
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Description: Container class for gpkg_contents table.
//
//------------------------------------------... | 29.237805 | 98 | 0.517518 |
688536b49f91088c65f03ddfaee1716ac386734c | 1,245 | cpp | C++ | GameFramework/Helper/HlTimer.cpp | GavWood/tutorials | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 8 | 2017-10-26T14:26:55.000Z | 2022-01-07T07:35:39.000Z | GameFramework/Helper/HlTimer.cpp | GavWood/tutorials | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 1 | 2018-01-27T19:21:07.000Z | 2018-01-31T13:55:09.000Z | GameFramework/Helper/HlTimer.cpp | GavWood/Game-Framework | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 1 | 2021-07-21T17:37:33.000Z | 2021-07-21T17:37:33.000Z | ////////////////////////////////////////////////////////////////////////////////
// HlTimer
// Includes
#include "HlTimer.h"
#include "BtTime.h"
#include "BtString.h"
#include "ApConfig.h"
////////////////////////////////////////////////////////////////////////////////
// Constructor
HlTimer::HlTimer()
{
m_start = ... | 20.409836 | 80 | 0.434538 |
68868c2d58a7267470ec9694c0eb658eb204202e | 2,658 | hpp | C++ | inc/vpp/prediction.hpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | 1 | 2020-06-18T14:01:50.000Z | 2020-06-18T14:01:50.000Z | inc/vpp/prediction.hpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | null | null | null | inc/vpp/prediction.hpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | null | null | null | /**
*
* @file vpp/prediction.hpp
*
* @brief This is the VPP prediction description file
*
* @details This file describes the structure of a prediction and adds a few
* methods to handle it. A prediction is basically a score, a list
* index and an object index within this list.
... | 29.208791 | 78 | 0.582769 |