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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a5e3d906f32cd0d418e243c99569caf2aa62c513 | 926 | cpp | C++ | Core/src/rbeCalc/PointReference.cpp | alexk95/RubberbandEngine | ac43225e548842cbef405ee690f70795c0faf90c | [
"MIT"
] | null | null | null | Core/src/rbeCalc/PointReference.cpp | alexk95/RubberbandEngine | ac43225e548842cbef405ee690f70795c0faf90c | [
"MIT"
] | null | null | null | Core/src/rbeCalc/PointReference.cpp | alexk95/RubberbandEngine | ac43225e548842cbef405ee690f70795c0faf90c | [
"MIT"
] | null | null | null | /*
* File: PointReference.cpp
* Package: rbeCalc
*
* Created on: September 07, 2021
* Author: Alexander Kuester
* Copyright (c) 2021 Alexander Kuester
* This file is part of the RubberbandEngine package.
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this so... | 25.722222 | 85 | 0.722462 | alexk95 |
a5e8d0bcb3d63e0bf72b8133d7821ae207115889 | 21,134 | hpp | C++ | include/codegen/include/TMPro/TMP_FontAsset.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/TMPro/TMP_FontAsset.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/TMPro/TMP_FontAsset.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:23 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: TMPro.TMP_Asset
#include "TMPro/TMP_Asset.hpp"
// Including ... | 48.361556 | 294 | 0.74586 | Futuremappermydud |
a5eb41550868b40527d82c0940bcba9320884482 | 4,732 | cpp | C++ | frontend/services/image_presentation/gl/ImageWrapper_to_GLTexture.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | frontend/services/image_presentation/gl/ImageWrapper_to_GLTexture.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | frontend/services/image_presentation/gl/ImageWrapper_to_GLTexture.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* ImageWrapper_to_GLTexture.cpp
*
* Copyright (C) 2021 by VISUS (Universitaet Stuttgart).
* Alle Rechte vorbehalten.
*/
#include "ImageWrapper_to_GLTexture.hpp"
#include "ImageWrapper_Conversion_Helpers.hpp"
#include "glad/gl.h"
#include <stdexcept>
#include <tuple>
using namespace megamol::frontend_resourc... | 35.848485 | 120 | 0.71978 | masrice |
a5f0b0fda14391c4afbe15f858fe228d62ffb406 | 813 | cpp | C++ | Sniper.cpp | itamar600/c-assignment-4 | b96cc5ebd5c3d7cbf250ef8832a4efba0f4b1009 | [
"MIT"
] | null | null | null | Sniper.cpp | itamar600/c-assignment-4 | b96cc5ebd5c3d7cbf250ef8832a4efba0f4b1009 | [
"MIT"
] | null | null | null | Sniper.cpp | itamar600/c-assignment-4 | b96cc5ebd5c3d7cbf250ef8832a4efba0f4b1009 | [
"MIT"
] | 1 | 2020-05-24T09:13:01.000Z | 2020-05-24T09:13:01.000Z | #include "Sniper.hpp"
#include "Board.hpp"
void Sniper::power(void* b, int key){
if(key!= SNIPERKEY && key!= ALLKEY)
return;
WarGame::Board* board;
board=(WarGame::Board*) b;
Soldier* s= board->findCostest(this->team);
if (s==NULL)
return;
s->changeLife(DAMAGE);
}
void Sniper::... | 16.26 | 47 | 0.592866 | itamar600 |
a5f8546467f6079325b985bfb6140df7e737cb4c | 4,625 | cpp | C++ | nsearch/src/Main.cpp | jeevannavar/nsearch | 83f1288981d87b5dfe45b7ed54fe0abaf639bc1f | [
"BSD-3-Clause"
] | 11 | 2018-08-25T17:26:28.000Z | 2022-03-24T04:52:58.000Z | nsearch/src/Main.cpp | jeevannavar/nsearch | 83f1288981d87b5dfe45b7ed54fe0abaf639bc1f | [
"BSD-3-Clause"
] | 2 | 2018-02-23T09:54:52.000Z | 2022-01-13T11:32:04.000Z | nsearch/src/Main.cpp | jeevannavar/nsearch | 83f1288981d87b5dfe45b7ed54fe0abaf639bc1f | [
"BSD-3-Clause"
] | null | null | null | #include <docopt.h>
#include <functional>
#include <iostream>
#include <sstream>
#include <utility>
#include <nsearch/FASTA/Reader.h>
#include <nsearch/Sequence.h>
#include <nsearch/Alphabet/DNA.h>
#include <nsearch/Alphabet/Protein.h>
#include "Common.h"
#include "Filter.h"
#include "Merge.h"
#include "Search.h"
#in... | 31.040268 | 148 | 0.604108 | jeevannavar |
a5f89f6170c13e52a82986c2ce04bcf0ce7f6e72 | 33,877 | cpp | C++ | problems/codeforces/727/d-t-shirts-distribution/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codeforces/727/d-t-shirts-distribution/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codeforces/727/d-t-shirts-distribution/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define long int64_t
// *****
// LOL! Totally not overkill. Nice exercise though.
// Usability of simplex is a bit low :/
inline namespace impl {
using uint = uint32_t;
using ulong = uint64_t;
struct bigint {
vector<uint> nums;
bool sign = 0; // 0=positive, 1... | 31.513488 | 90 | 0.417215 | brunodccarvalho |
a5fb66030e1f481bd44e1c3f69e0d6d87d81cee2 | 4,975 | cpp | C++ | lib/crypto/src/x509.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | lib/crypto/src/x509.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | lib/crypto/src/x509.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2018 Sylko Olzscher
*
*/
#include <cyng/crypto/x509.h>
#include <openssl/crypto.h> // OPENSSL_cleanse
#include <boost/predef.h>
#include <iostream>
#include <stdio.h>
namespace cyng
{
namespace crypto
{
EVP_PKEY * generate_key()
{
/* Allocate memory for the EVP_P... | 27.335165 | 99 | 0.569648 | solosTec |
a5fd48d21c7172e266fbd88c021d7577328bc6fc | 27,957 | hpp | C++ | lib/matrix/LinearEquationSolverGeneric.hpp | jkovacic/math | 4d5ee0e68b2db0e3bb4b9bd23d0df2ded2b8586c | [
"Apache-2.0"
] | 2 | 2018-10-21T00:03:32.000Z | 2021-05-19T00:05:29.000Z | lib/matrix/LinearEquationSolverGeneric.hpp | jkovacic/math | 4d5ee0e68b2db0e3bb4b9bd23d0df2ded2b8586c | [
"Apache-2.0"
] | null | null | null | lib/matrix/LinearEquationSolverGeneric.hpp | jkovacic/math | 4d5ee0e68b2db0e3bb4b9bd23d0df2ded2b8586c | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2013, Jernej Kovacic
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, software
... | 35.659439 | 133 | 0.561112 | jkovacic |
a5ff4b4117839339ee4b94f2174d6ff82243aa1e | 840 | cpp | C++ | C++/minimum-number-of-taps-to-open-to-water-a-garden.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/minimum-number-of-taps-to-open-to-water-a-garden.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/minimum-number-of-taps-to-open-to-water-a-garden.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n)
// Space: O(n)
class Solution {
public:
int minTaps(int n, vector<int>& ranges) {
vector<int> max_range(n + 1);
for (int i = 0; i < ranges.size(); ++i) {
int left = max(i - ranges[i], 0), right = min(i + ranges[i], n);
max_range[left] = max(max_range[left], ri... | 27.096774 | 76 | 0.469048 | jaiskid |
a5ff7c84d8dbe236fb72f1ab6fa18fe1af384c05 | 918 | hh | C++ | TEvtGen/EvtGen/EvtGenModels/EvtBcBsNPi.hh | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TEvtGen/EvtGen/EvtGenModels/EvtBcBsNPi.hh | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TEvtGen/EvtGen/EvtGenModels/EvtBcBsNPi.hh | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | //--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Information: See EvtGen/COPYRIGHT
//
// Module: EvtGenModels/EvtBcBsNPi.h... | 22.390244 | 76 | 0.588235 | AllaMaevskaya |
a5ff9768097ce4878b0c932858b4e9c6a7c0fba5 | 3,331 | cpp | C++ | tests/renderer/renderPrimitive/main.cpp | jamesl-github/scc | c1dddf41778eeb2ef2a910372d1eb6a6a8dfa68e | [
"Zlib"
] | 8 | 2018-04-21T07:49:58.000Z | 2019-02-21T15:04:28.000Z | tests/renderer/renderPrimitive/main.cpp | jamesl-github/scc | c1dddf41778eeb2ef2a910372d1eb6a6a8dfa68e | [
"Zlib"
] | null | null | null | tests/renderer/renderPrimitive/main.cpp | jamesl-github/scc | c1dddf41778eeb2ef2a910372d1eb6a6a8dfa68e | [
"Zlib"
] | 2 | 2018-04-21T02:25:47.000Z | 2018-04-21T15:03:15.000Z | /*
SDL C++ Classes
Copyright (C) 2017-2018 Mateus Carmo M. de F. Barbosa
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 fo... | 26.648 | 76 | 0.681777 | jamesl-github |
57082a0e63cfb2556c0ec72560e77ff2acf3712d | 856 | cpp | C++ | Tutorials/My_Water/src/ReflectionProbe.cpp | WindyPaper/DiligentSamples | 99f068bd20ea4eab97d12446d2a7378962bc4345 | [
"Apache-2.0"
] | null | null | null | Tutorials/My_Water/src/ReflectionProbe.cpp | WindyPaper/DiligentSamples | 99f068bd20ea4eab97d12446d2a7378962bc4345 | [
"Apache-2.0"
] | null | null | null | Tutorials/My_Water/src/ReflectionProbe.cpp | WindyPaper/DiligentSamples | 99f068bd20ea4eab97d12446d2a7378962bc4345 | [
"Apache-2.0"
] | null | null | null | #include "ReflectionProbe.h"
Diligent::ReflectionProbe::ReflectionProbe(const float3& pos)
{
float x = pos.x;
float y = pos.y;
float z = pos.z;
float3 targets[6] =
{
float3(x + 1.0f, y, z), // +X
float3(x - 1.0f, y, z), // -X
float3(x, y + 1.0f, z), // +Y
float3(x, y - 1.0f, z), // -Y
float3(x, y, z + ... | 19.906977 | 76 | 0.623832 | WindyPaper |
570a995396b9306ab62e669ceabd5c0c1b8d4fbe | 70,817 | cpp | C++ | services/WebEngineService/WebView.cpp | knowac/tizen-browser-30 | 0ea06a4cd6bdca3dc3da674dd8189bf528c166f8 | [
"Apache-2.0"
] | 1 | 2019-01-31T21:44:00.000Z | 2019-01-31T21:44:00.000Z | services/WebEngineService/WebView.cpp | knowac/tizen-browser-30 | 0ea06a4cd6bdca3dc3da674dd8189bf528c166f8 | [
"Apache-2.0"
] | null | null | null | services/WebEngineService/WebView.cpp | knowac/tizen-browser-30 | 0ea06a4cd6bdca3dc3da674dd8189bf528c166f8 | [
"Apache-2.0"
] | 1 | 2019-01-31T21:44:04.000Z | 2019-01-31T21:44:04.000Z | /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 37.930905 | 199 | 0.687561 | knowac |
570c83f36573e4b4f54d574d1b048864c3aa7263 | 1,295 | cpp | C++ | Source/AllProjects/Utilities/CppDrvTest/CppDrvTest.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/Utilities/CppDrvTest/CppDrvTest.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/Utilities/CppDrvTest/CppDrvTest.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: CppDrvTest.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/25/2018
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.o... | 24.433962 | 83 | 0.418533 | MarkStega |
570d53714d26a4373fc5b3a470c9be2f44e93055 | 298 | cpp | C++ | volume2/1180_13Oct2006_1343337.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | volume2/1180_13Oct2006_1343337.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | volume2/1180_13Oct2006_1343337.cpp | andriybuday/timus | a5cdc03f3ca8e7878220b8e0a0c72343f98ee1eb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
char ch;
int sum = 0;
while(cin >> ch)
{
sum += (ch-48);
}
if(!(sum%3))
{
printf("2\n");
return 0;
}
if(!((sum+1)%3))
{
printf("1\n2\n");
return 0;
}
if(!((sum+2)%3))
{
printf("1\n1\n");
return 0;
}
return 0;
} | 9.3125 | 20 | 0.486577 | andriybuday |
570e7937b0be42bb9cd4d6d4a2a6f76e589a7b97 | 5,503 | hh | C++ | include/lsx.hh | SolraBizna/lsx | 348d38d6643226d64bca16736d960d4a28042435 | [
"Zlib"
] | null | null | null | include/lsx.hh | SolraBizna/lsx | 348d38d6643226d64bca16736d960d4a28042435 | [
"Zlib"
] | null | null | null | include/lsx.hh | SolraBizna/lsx | 348d38d6643226d64bca16736d960d4a28042435 | [
"Zlib"
] | null | null | null | #ifndef LSX_HH
#define LSX_HH
/* This is the preferred way to use LSX from C++. */
#include "lsx.h"
namespace lsx {
/*** TWOFISH ***/
/* All variants of Twofish are identical except for the key schedule.
There are two ways to use this interface:
1. Instantiate a `twofish_uninitialized` and manually ens... | 34.829114 | 79 | 0.656188 | SolraBizna |
5711b853f2a0a41cfb784c026ba260a3f8ba0a7b | 3,883 | cpp | C++ | driver/acl_graph/acl_graph_executor.cpp | xiangchaosheng/Tengine | c804d3d5151c64e3cc336d4da35ecf5b5ce2d35c | [
"Apache-2.0"
] | 1 | 2019-02-12T08:19:15.000Z | 2019-02-12T08:19:15.000Z | driver/acl_graph/acl_graph_executor.cpp | xiangchaosheng/Tengine | c804d3d5151c64e3cc336d4da35ecf5b5ce2d35c | [
"Apache-2.0"
] | null | null | null | driver/acl_graph/acl_graph_executor.cpp | xiangchaosheng/Tengine | c804d3d5151c64e3cc336d4da35ecf5b5ce2d35c | [
"Apache-2.0"
] | 3 | 2019-04-19T01:00:42.000Z | 2019-09-17T05:51:07.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 not... | 22.707602 | 92 | 0.76513 | xiangchaosheng |
571590faca62995bb145d5b036f46ab12e288075 | 468 | cpp | C++ | Self-driving rides/src/global_variables.cpp | ksylejmani/Self-driving-rides | 0599ab65dcf0a807627f83519e32956ed3a83e81 | [
"MIT"
] | null | null | null | Self-driving rides/src/global_variables.cpp | ksylejmani/Self-driving-rides | 0599ab65dcf0a807627f83519e32956ed3a83e81 | [
"MIT"
] | null | null | null | Self-driving rides/src/global_variables.cpp | ksylejmani/Self-driving-rides | 0599ab65dcf0a807627f83519e32956ed3a83e81 | [
"MIT"
] | 1 | 2022-03-19T23:49:56.000Z | 2022-03-19T23:49:56.000Z | #include "../include/global_variables_h.h"
const int no_iterations = 10000;
const int no_close_next_rides = 4;
const int no_replace_next_rides =3;
const int difference_earliest_start_time = 5;
const int difference_latest_finish_time = 5;
const double initial_solution_time_left_margin=0.1;
const double score_satisfacto... | 27.529412 | 56 | 0.833333 | ksylejmani |
571ad0332e12ff45d1bb35b05c9eacdb29f317cd | 931 | cpp | C++ | tree/demo_binary_tree.cpp | raikken/data-struct-sample | 24e4a3113991f81693156aa244b0e135d282e585 | [
"MIT"
] | 1 | 2019-12-07T02:42:48.000Z | 2019-12-07T02:42:48.000Z | tree/demo_binary_tree.cpp | Raikkenon/data-struct-sample | 24e4a3113991f81693156aa244b0e135d282e585 | [
"MIT"
] | null | null | null | tree/demo_binary_tree.cpp | Raikkenon/data-struct-sample | 24e4a3113991f81693156aa244b0e135d282e585 | [
"MIT"
] | null | null | null | /**
* @file: demo_binary_tree.cpp
* @author: xxx
* @mail: xxx@yyy.com
* @date 2020-03-16 20:08:32
* @brief
**/
#include "test_demo.h"
void testPrint() {
vecint vecarr = {0,1,2,3,4,5,6,7,8,9};
NodeElem* nodePtr = BinaryTree::build(&vecarr);
cout << "preorder: ";
BinaryTree::preorder(nodePtr);
prin... | 21.651163 | 136 | 0.629431 | raikken |
571ad1e45d8b9fc96e8f1d7c0aff40804f30fc06 | 7,560 | cpp | C++ | src/linux/boxdraw.cpp | Link1J/st | 4b0572b3d0424d62a66e305170ccf6c15ab9a96e | [
"MIT"
] | null | null | null | src/linux/boxdraw.cpp | Link1J/st | 4b0572b3d0424d62a66e305170ccf6c15ab9a96e | [
"MIT"
] | null | null | null | src/linux/boxdraw.cpp | Link1J/st | 4b0572b3d0424d62a66e305170ccf6c15ab9a96e | [
"MIT"
] | null | null | null | /*
* Copyright 2018 Avi Halachmi (:avih) avihpit@yahoo.com https://github.com/avih
* MIT/X Consortium License
*/
#define Glyph Glyph_
#include <X11/Xft/Xft.h>
#undef Glyph
#include "st.h"
#include "con/con.hpp"
#include "boxdraw_data.h"
#include "config.hpp"
int isboxdraw(Rune);
ushort boxdrawinde... | 34.520548 | 113 | 0.479365 | Link1J |
571d6e47045d39c83cdb59abba8125757d06c153 | 2,568 | cpp | C++ | SpatialGDK/Source/SpatialGDKFunctionalTests/Private/SpatialGDKFunctionalTestsModule.cpp | cyberbibby/UnrealGDK | 9502a1ba11d21b3cb64978ba7ea178c63371cdd0 | [
"MIT"
] | 1 | 2020-07-15T12:43:02.000Z | 2020-07-15T12:43:02.000Z | SpatialGDK/Source/SpatialGDKFunctionalTests/Private/SpatialGDKFunctionalTestsModule.cpp | cyberbibby/UnrealGDK | 9502a1ba11d21b3cb64978ba7ea178c63371cdd0 | [
"MIT"
] | null | null | null | SpatialGDK/Source/SpatialGDKFunctionalTests/Private/SpatialGDKFunctionalTestsModule.cpp | cyberbibby/UnrealGDK | 9502a1ba11d21b3cb64978ba7ea178c63371cdd0 | [
"MIT"
] | null | null | null | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "SpatialGDKFunctionalTestsModule.h"
// clang-format off
#include "SpatialConstants.h"
#include "SpatialConstants.cxx"
// clang-format on
#include "IAutomationControllerModule.h"
#include "LogSpatialFunctionalTest.h"
#include "SpatialFunctionalTest... | 37.764706 | 129 | 0.820483 | cyberbibby |
5724b2dc0c898f5848713b0a735f9dce4f26f669 | 951 | cpp | C++ | QuickSort.cpp | HarshithGP/Algorithm_Diary | 6997d20d0e9221ee628f257ecf53dbe23811021b | [
"Apache-2.0"
] | null | null | null | QuickSort.cpp | HarshithGP/Algorithm_Diary | 6997d20d0e9221ee628f257ecf53dbe23811021b | [
"Apache-2.0"
] | null | null | null | QuickSort.cpp | HarshithGP/Algorithm_Diary | 6997d20d0e9221ee628f257ecf53dbe23811021b | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<conio.h>
#include<time.h>
#include<stdlib.h>
#define max 100000
using namespace std;
int partition(int a[],int L,int R)
{
int i,j,temp,key;
i=L;j=R+1;key=a[L];
do
{
do
++i;
while(key>=a[i]);
do
--j;
while(key<a[j]);
if(i<j)
{
temp=a[i];
... | 13.208333 | 61 | 0.51735 | HarshithGP |
572ba496e191451d201a7c9cd3195911f8909fab | 4,725 | cpp | C++ | vm/external_libs/llvm/lib/System/DynamicLibrary.cpp | marnen/rubinius | 05b3f9789d01bada0604a7f09921c956bc9487e7 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T16:58:14.000Z | 2016-05-08T16:58:14.000Z | vm/external_libs/llvm/lib/System/DynamicLibrary.cpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | vm/external_libs/llvm/lib/System/DynamicLibrary.cpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | //===-- DynamicLibrary.cpp - Runtime link/load libraries --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 29.166667 | 80 | 0.648677 | marnen |
572d62dc3c6bd3de61620b8c59da32add860dea7 | 2,236 | cpp | C++ | src/common/scheduledActionManager.cpp | salarii/dims | b8008c49edd10a9ca50923b89e3b469c342d9cee | [
"MIT"
] | 1 | 2015-01-22T11:22:19.000Z | 2015-01-22T11:22:19.000Z | src/common/scheduledActionManager.cpp | salivan-ratcoin-dev-team/dims | b8008c49edd10a9ca50923b89e3b469c342d9cee | [
"MIT"
] | null | null | null | src/common/scheduledActionManager.cpp | salivan-ratcoin-dev-team/dims | b8008c49edd10a9ca50923b89e3b469c342d9cee | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2015 DiMS dev-team
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "common/scheduledActionManager.h"
namespace common
{
common::CScheduledActionManager * common::CScheduledActionManager::ms_i... | 24.043011 | 135 | 0.75 | salarii |
5731fe96e219e813e68adb5d76517fc0c8c421c0 | 2,151 | cpp | C++ | check_class_export/lib_module/src/foo_class.cpp | NesterovMaxim/all_mini_tests | d6837c28e3b6dfc3cfa12794168356dfd4810a0b | [
"MIT"
] | 1 | 2018-02-27T14:29:50.000Z | 2018-02-27T14:29:50.000Z | check_class_export/lib_module/src/foo_class.cpp | NesterovMaxim/all_mini_tests | d6837c28e3b6dfc3cfa12794168356dfd4810a0b | [
"MIT"
] | null | null | null | check_class_export/lib_module/src/foo_class.cpp | NesterovMaxim/all_mini_tests | d6837c28e3b6dfc3cfa12794168356dfd4810a0b | [
"MIT"
] | null | null | null | #include "foo_class.h"
#include "accessor.h"
unsigned int foo_data::get_cnt() {
static unsigned int cnt = 0;
return ++cnt;
}
foo_data::foo_data() {
current_cnt = get_cnt();
out << "foo_data ctor: " << current_cnt << "\n";
complex_data = "1234567890";
}
foo_data::foo_data(const foo_data& other) {... | 22.175258 | 87 | 0.668991 | NesterovMaxim |
57379c601fea312684ca5010540be520316324bd | 2,479 | cpp | C++ | src-plugins/itkDataSHImageWriter/itkDataSHImageWriterPlugin.cpp | gpasquie/medInria-public | 1efa82292698695f6ee69fe00114aabce5431246 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/itkDataSHImageWriter/itkDataSHImageWriterPlugin.cpp | gpasquie/medInria-public | 1efa82292698695f6ee69fe00114aabce5431246 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/itkDataSHImageWriter/itkDataSHImageWriterPlugin.cpp | gpasquie/medInria-public | 1efa82292698695f6ee69fe00114aabce5431246 | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
====... | 24.79 | 133 | 0.623235 | gpasquie |
5738352af2295cdf40dab277049b5360f4fc03ba | 4,305 | hh | C++ | src/c4/Termination_Detector.hh | keadyk/Draco | 129fbff1d74a3f5498670e952b7d4142f37b2aac | [
"BSD-3-Clause-Open-MPI"
] | 1 | 2020-03-19T07:05:08.000Z | 2020-03-19T07:05:08.000Z | src/c4/Termination_Detector.hh | 5l1v3r1/Draco | 0480d4c7c1ff7f40e0aece3be785dc0e4e23ece1 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/c4/Termination_Detector.hh | 5l1v3r1/Draco | 0480d4c7c1ff7f40e0aece3be785dc0e4e23ece1 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | //----------------------------------*-C++-*-----------------------------------//
/*!
* \file c4/Termination_Detector.hh
* \author Kent Budge
* \brief Definition of class Termination_Detector
* \note Copyright (C) 2016-2020 Triad National Security, LLC.
* All rights reserved. */
//---------------------... | 33.897638 | 80 | 0.666434 | keadyk |
573afc9c869e9f3b15971e743358b3294b52272d | 10,845 | cpp | C++ | parquet_utils/schema.cpp | bitbouncer/parquet-tools | 003636a90f8235c737d997d1d2533307e8c22e09 | [
"Apache-2.0"
] | null | null | null | parquet_utils/schema.cpp | bitbouncer/parquet-tools | 003636a90f8235c737d997d1d2533307e8c22e09 | [
"Apache-2.0"
] | null | null | null | parquet_utils/schema.cpp | bitbouncer/parquet-tools | 003636a90f8235c737d997d1d2533307e8c22e09 | [
"Apache-2.0"
] | null | null | null | #include "schema.h"
#include <arrow/type.h>
#include <glog/logging.h>
namespace tickup {
std::shared_ptr<parquet::schema::GroupNode> toGroupNode(std::shared_ptr<arrow::Schema> schema) {
LOG(INFO) << "schema: " << schema->ToString();
for (auto i : schema->fields()) {
LOG(INFO) << "name: " << i->name() ... | 37.525952 | 124 | 0.576671 | bitbouncer |
573d0c28be527e4dd6c09dcf6e1f1ce218a27276 | 4,226 | hpp | C++ | modules/inference/include/inferencer.hpp | CambriconKnight/CNStream | 555c4a54f4766cc7b6b230bd822c6689869fbce0 | [
"Apache-2.0"
] | 1 | 2020-04-22T08:36:51.000Z | 2020-04-22T08:36:51.000Z | modules/inference/include/inferencer.hpp | QMKnight/CNStream | ca037c367195daf6c7e1e6cf760be89672547776 | [
"Apache-2.0"
] | null | null | null | modules/inference/include/inferencer.hpp | QMKnight/CNStream | ca037c367195daf6c7e1e6cf760be89672547776 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* Copyright (C) [2019] 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... | 34.080645 | 147 | 0.698533 | CambriconKnight |
573d847985295854e424a16dea8bd931fa2eb932 | 657 | hpp | C++ | modules/dnn/test/test_onnx_conformance_layer_filter_opencv_ocl_fp16_denylist.inl.hpp | Napalys/opencv | f612e26ffe761fe9dbc26facaef2074d56e19c54 | [
"BSD-3-Clause"
] | 1 | 2022-01-26T21:58:10.000Z | 2022-01-26T21:58:10.000Z | modules/dnn/test/test_onnx_conformance_layer_filter_opencv_ocl_fp16_denylist.inl.hpp | BuilderGin/opencv | b4bb98ea60f63e99909f119aee27e76f7e26ddc3 | [
"Apache-2.0"
] | null | null | null | modules/dnn/test/test_onnx_conformance_layer_filter_opencv_ocl_fp16_denylist.inl.hpp | BuilderGin/opencv | b4bb98ea60f63e99909f119aee27e76f7e26ddc3 | [
"Apache-2.0"
] | 1 | 2020-02-27T18:18:19.000Z | 2020-02-27T18:18:19.000Z | "test_averagepool_3d_default",
"test_dropout_default_ratio",
"test_globalmaxpool",
"test_globalmaxpool_precomputed",
"test_logsoftmax_large_number",
"test_logsoftmax_large_number_expanded",
"test_maxpool_1d_default",
"test_maxpool_2d_ceil",
"test_maxpool_2d_default",
"test_maxpool_2d_pads",
"test_maxpool_2d_precomputed... | 29.863636 | 41 | 0.872146 | Napalys |
57410bd9c4cbd579dd316d4316caaf85c795e2c1 | 2,482 | hxx | C++ | odb-2.4.0/odb/semantics/template.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-2.4.0/odb/semantics/template.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-2.4.0/odb/semantics/template.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : odb/semantics/template.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v3; see accompanying LICENSE file
#ifndef ODB_SEMANTICS_TEMPLATE_HXX
#define ODB_SEMANTICS_TEMPLATE_HXX
#include <vector>
#include <odb/semantics/elements.hxx>
namespace semantics
{
//
... | 16.77027 | 69 | 0.657534 | edidada |
5742a2b5fe71f846e2105c1ff0f5e0fbc2259a98 | 2,539 | cpp | C++ | src/net/sync_sequence.cpp | yyh12345685/libnbf | 64f6fa1b37b88f673ead8577291b10a30cac4040 | [
"Apache-2.0"
] | null | null | null | src/net/sync_sequence.cpp | yyh12345685/libnbf | 64f6fa1b37b88f673ead8577291b10a30cac4040 | [
"Apache-2.0"
] | null | null | null | src/net/sync_sequence.cpp | yyh12345685/libnbf | 64f6fa1b37b88f673ead8577291b10a30cac4040 | [
"Apache-2.0"
] | 1 | 2021-10-13T01:35:07.000Z | 2021-10-13T01:35:07.000Z | #include "net/sync_sequence.h"
#include "message.h"
#include "common/time.h"
#include "net/sync_client_connect.h"
#include "service/service_manager.h"
#include "net_thread_mgr/net_thread_mgr.h"
#include "common/string_util.h"
namespace bdf {
LOGGER_CLASS_IMPL(logger_, SyncSequence);
SyncSequence::SyncSequence(
Syn... | 27.301075 | 89 | 0.72115 | yyh12345685 |
5742ffbaaeecd5b092c26331b1200db325b0edf2 | 3,922 | cpp | C++ | Nacro/SDK/FN_ErrorEntry_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_ErrorEntry_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_ErrorEntry_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function ErrorEntry.ErrorEntry_C.Cent... | 27.815603 | 177 | 0.72667 | Milxnor |
5743aac8af541a5894067061e5b2d0bd085866d8 | 18,371 | cpp | C++ | libraries/Temboo/src/utility/CoapMsg.cpp | jj9146/Arduino | bfee6d42067b342eb51cbe42bb3c2020f9c9c858 | [
"MIT"
] | 7 | 2017-12-28T20:14:49.000Z | 2021-11-08T13:10:22.000Z | libraries/Temboo/src/utility/CoapMsg.cpp | jj9146/Arduino | bfee6d42067b342eb51cbe42bb3c2020f9c9c858 | [
"MIT"
] | 13 | 2016-02-15T14:20:03.000Z | 2016-04-26T11:00:53.000Z | libraries/Temboo/src/utility/CoapMsg.cpp | jj9146/Arduino | bfee6d42067b342eb51cbe42bb3c2020f9c9c858 | [
"MIT"
] | 6 | 2016-08-03T04:45:05.000Z | 2021-04-22T12:54:33.000Z | /*
###############################################################################
#
# Temboo CoAP Edge Device library
#
# Copyright (C) 2015, Temboo 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 co... | 25.693706 | 128 | 0.567906 | jj9146 |
574c4e5b769864739d989ea3c7a03048a241653e | 764 | cpp | C++ | ECF/TermMaxGenOp.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | ECF/TermMaxGenOp.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | ECF/TermMaxGenOp.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | #include "ECF_base.h"
#include "TermMaxGenOp.h"
void TermMaxGenOp::registerParameters(StateP state)
{
int *maxgen = new int(0);
state->getRegistry()->registerEntry("term.maxgen", (voidP) maxgen, ECF::UINT,
"max number of generations (default: none)");
}
bool TermMaxGenOp::initialize(StateP state)
{... | 23.151515 | 94 | 0.674084 | KarlaSalamun |
574ea36629b965032d2b1ab43d9fc4a3d37d0bdc | 781 | cpp | C++ | test.cpp | Lw-Cui/Skiplist | 0fd9500d5dc7911f10bbbcb688192655f5aaf1a1 | [
"MIT"
] | null | null | null | test.cpp | Lw-Cui/Skiplist | 0fd9500d5dc7911f10bbbcb688192655f5aaf1a1 | [
"MIT"
] | null | null | null | test.cpp | Lw-Cui/Skiplist | 0fd9500d5dc7911f10bbbcb688192655f5aaf1a1 | [
"MIT"
] | null | null | null | #include "interface.h"
#include "gtest/gtest.h"
#include <algorithm>
#include <iostream>
using namespace std;
class SkiplistTest: public ::testing::Test {
protected:
SkiplistTest():p(Baselist::make_Skiplist()) {}
virtual void SetUp() {
srand(time(NULL));
for (auto &value: data)
value = rand();
sort(data, da... | 20.552632 | 47 | 0.644046 | Lw-Cui |
574f8536c0c3cd0af30ed560765a61294e0a12ea | 23,871 | cpp | C++ | source/Analysis/SSAForm/SSAForm.cpp | czen/open-ops | b1ab8da354c4aecc0fe76a562395f5861bffc207 | [
"BSD-3-Clause"
] | 23 | 2017-08-01T14:29:48.000Z | 2019-10-09T22:27:38.000Z | source/Analysis/SSAForm/SSAForm.cpp | czen/open-ops | b1ab8da354c4aecc0fe76a562395f5861bffc207 | [
"BSD-3-Clause"
] | 2 | 2017-08-06T08:34:18.000Z | 2017-08-08T16:27:38.000Z | source/Analysis/SSAForm/SSAForm.cpp | czen/open-ops | b1ab8da354c4aecc0fe76a562395f5861bffc207 | [
"BSD-3-Clause"
] | 2 | 2017-08-08T12:25:06.000Z | 2019-09-16T15:18:18.000Z | #include "Analysis/SSAForm/SSAForm.h"
#include "Reprise/Service/DeepWalker.h"
using namespace OPS::Analysis::ControlFlowGraphs::SSAControlFlowGraph;
using namespace OPS::Analysis::ControlFlowGraphs::DominanceFrontierGraph;
using namespace OPS;
using namespace OPS::Reprise;
using namespace OPS::Analysis::SSAForms;
... | 25.503205 | 176 | 0.68091 | czen |
5760814ecf08c28cb95907c942d12a6a213069e4 | 1,271 | hpp | C++ | RNN/gru_cell_old.hpp | suiyili/projects | 29b4ab0435c8994809113c444b3dea4fff60b75c | [
"MIT"
] | null | null | null | RNN/gru_cell_old.hpp | suiyili/projects | 29b4ab0435c8994809113c444b3dea4fff60b75c | [
"MIT"
] | null | null | null | RNN/gru_cell_old.hpp | suiyili/projects | 29b4ab0435c8994809113c444b3dea4fff60b75c | [
"MIT"
] | null | null | null | #ifndef GRU_CELL_OLD_HPP
#define GRU_CELL_OLD_HPP
#include "generic/rnn_type.hpp"
#include "generic/rand.hpp"
#include <fstream>
using namespace rnn::generic;
namespace rnn {
class gru_cell_old final {
public:
gru_cell_old() = default;;
gru_cell_old(int inputDim, int hiddenDim);
class State;
c... | 17.175676 | 96 | 0.617624 | suiyili |
57657b6e9a33427068f05856d04d06e670c9714e | 357 | cpp | C++ | DrawingBoard/src/DrawingBoardApp.cpp | codenobacon4u/paperworks | 0e96cd2fb6070a2387ddd36aaa327b04733234fa | [
"MIT"
] | 1 | 2019-08-15T18:58:54.000Z | 2019-08-15T18:58:54.000Z | DrawingBoard/src/DrawingBoardApp.cpp | codenobacon4u/paperworks | 0e96cd2fb6070a2387ddd36aaa327b04733234fa | [
"MIT"
] | null | null | null | DrawingBoard/src/DrawingBoardApp.cpp | codenobacon4u/paperworks | 0e96cd2fb6070a2387ddd36aaa327b04733234fa | [
"MIT"
] | null | null | null | #include <Paperworks.h>
#include <Paperworks/Core/EntryPoint.h>
#include "EditorLayer.h"
class DrawingBoard : public Paperworks::Application
{
public:
DrawingBoard()
: Application ("DrawingBoard")
{
PushLayer(new EditorLayer());
}
~DrawingBoard() {
}
};
Paperworks::Application* Paperworks::CreateApplicat... | 16.227273 | 58 | 0.722689 | codenobacon4u |
57662d01deefc5777da3e7de889479a61f76f623 | 567 | cpp | C++ | Basic/1022.cpp | GodLovesJonny/PAT-Solutions | b32d7de549c6b0ad8dc2e48d8a0e5cbf2241ed77 | [
"MIT"
] | 6 | 2019-03-13T10:07:25.000Z | 2019-09-29T14:10:11.000Z | Basic/1022.cpp | GodLovesJonny/PAT-Solutions | b32d7de549c6b0ad8dc2e48d8a0e5cbf2241ed77 | [
"MIT"
] | null | null | null | Basic/1022.cpp | GodLovesJonny/PAT-Solutions | b32d7de549c6b0ad8dc2e48d8a0e5cbf2241ed77 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
long long A, B;
int D;
vector<int> res;
int main() {
ios::sync_with_stdio(false);
cin >> A >> B >> D;
long long ret = A + B;
if (!ret) {
cout ... | 14.175 | 41 | 0.578483 | GodLovesJonny |
576952cef9e88700f29b6d14b99622e7f11d979e | 1,303 | cpp | C++ | src/SequenceNode.cpp | MartinFrancu/BtEvaluator | 3556510afd7ebf7293055ef6a686edd9818468b1 | [
"MIT"
] | 1 | 2016-10-05T19:15:59.000Z | 2016-10-05T19:15:59.000Z | src/SequenceNode.cpp | MartinFrancu/BtEvaluator | 3556510afd7ebf7293055ef6a686edd9818468b1 | [
"MIT"
] | null | null | null | src/SequenceNode.cpp | MartinFrancu/BtEvaluator | 3556510afd7ebf7293055ef6a686edd9818468b1 | [
"MIT"
] | null | null | null | #include "SequenceNode.h"
using namespace BT;
EvaluationResult SequenceNode::tick(EvaluationContext& context)
{
for (; nextChildIndex_ < count(); ++nextChildIndex_)
{
Node* currentChild = child(nextChildIndex_);
EvaluationResult childResult = context.tickNode(currentChild);
if (childResult == btBreakpoi... | 27.723404 | 113 | 0.711435 | MartinFrancu |
576ecd431766454fcff29e0dda64f790eea46c66 | 2,954 | cpp | C++ | qgeoerror_messages.cpp | mfbernardes/googlemaps | 7ce7124b385b2ebac0f72c38b094f436d4fe5c58 | [
"MIT"
] | 123 | 2016-07-18T07:53:34.000Z | 2022-02-21T20:30:27.000Z | qgeoerror_messages.cpp | mfbernardes/googlemaps | 7ce7124b385b2ebac0f72c38b094f436d4fe5c58 | [
"MIT"
] | 30 | 2016-07-18T07:55:30.000Z | 2022-03-06T02:03:24.000Z | qgeoerror_messages.cpp | mfbernardes/googlemaps | 7ce7124b385b2ebac0f72c38b094f436d4fe5c58 | [
"MIT"
] | 66 | 2016-09-17T12:41:41.000Z | 2021-12-28T16:39:48.000Z | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtLocation module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
** Licensees holding valid com... | 55.735849 | 216 | 0.740014 | mfbernardes |
576f24cad8178fad6dfb2c89ee170072cc624240 | 2,274 | cpp | C++ | LINKLIST/sorting of linklist/sorting_linklist.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | 3 | 2020-12-03T14:52:23.000Z | 2021-12-19T09:26:50.000Z | LINKLIST/sorting of linklist/sorting_linklist.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | null | null | null | LINKLIST/sorting of linklist/sorting_linklist.cpp | shauryauppal/Algo-DS-StudyMaterial | 1c481f066d21b33ec2533156e75f45fa9b6a7606 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <cstdlib>
using namespace std;
struct node {int info;
struct node *next;}*cur,*top=NULL,*ptr;
//inertion in beginning WORKING FINE
void insert_beg(int x)
{
ptr=(struct node *)malloc(sizeof(struct node));
ptr->info=x;
ptr->next=NULL;
if(top==NUL... | 21.252336 | 98 | 0.449428 | shauryauppal |
57777d3762c9b8b2443d8911cf2e32c3bc256f64 | 9,488 | cpp | C++ | streamsocket/cpp/scenario5.xaml.cpp | kaid7pro/old-Windows-universal-samples | f97d2b880420fff7bcf7ea0aaf20ee837c002d7d | [
"MIT"
] | 6 | 2015-12-23T22:28:56.000Z | 2021-11-06T17:05:51.000Z | streamsocket/cpp/scenario5.xaml.cpp | y3key/Windows-universal-samples | f97d2b880420fff7bcf7ea0aaf20ee837c002d7d | [
"MIT"
] | null | null | null | streamsocket/cpp/scenario5.xaml.cpp | y3key/Windows-universal-samples | f97d2b880420fff7bcf7ea0aaf20ee837c002d7d | [
"MIT"
] | 8 | 2015-10-26T01:44:51.000Z | 2022-03-12T09:47:56.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A P... | 39.206612 | 118 | 0.632694 | kaid7pro |
5777d5a14e5876e6aaec5fcb648df244ab923e03 | 392 | cc | C++ | test/test_test.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | test/test_test.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | test/test_test.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | // Copyright (c) 2019, tlblanc <tlblanc1490 at gmail dot com>
#include "test.hpp"
static int test_assert_true() {
ASSERT_TRUE(true);
ASSERT_FALSE(false);
ASSERT_TRUE(1);
ASSERT_FALSE(0);
return EXIT_SUCCESS;
}
int main(int argc, char *argv[]) {
test_ctx_t ctx;
TEST_INIT(ctx, argc, argv);
TEST_RUN(c... | 17.043478 | 61 | 0.69898 | eaugeas |
57803d168613466fb8579198209e1bd5fc460e72 | 1,130 | cpp | C++ | engine/creatures/source/ParalysisStatusEffect.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/creatures/source/ParalysisStatusEffect.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/creatures/source/ParalysisStatusEffect.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "ParalysisCalculator.hpp"
#include "ParalysisStatusEffect.hpp"
#include "StatusAilmentTextKeys.hpp"
#include "StatusTypes.hpp"
using namespace std;
ParalysisStatusEffect::ParalysisStatusEffect()
{
status_calc = std::make_shared<ParalysisCalculator>();
}
string ParalysisStatusEffect::get_player_application... | 25.111111 | 98 | 0.823894 | sidav |
578265fb8abf0fcf5c25f78c189f9236f03c9092 | 2,637 | cpp | C++ | src/thunderbots/software/ai/hl/stp/play/penalty_kick_play.cpp | Solaris5959/Software | b34ed63f671460dcb8db62d328b776747adaf374 | [
"MIT"
] | null | null | null | src/thunderbots/software/ai/hl/stp/play/penalty_kick_play.cpp | Solaris5959/Software | b34ed63f671460dcb8db62d328b776747adaf374 | [
"MIT"
] | null | null | null | src/thunderbots/software/ai/hl/stp/play/penalty_kick_play.cpp | Solaris5959/Software | b34ed63f671460dcb8db62d328b776747adaf374 | [
"MIT"
] | null | null | null | #include "ai/hl/stp/play/penalty_kick_play.h"
#include "ai/hl/stp/play/play_factory.h"
#include "ai/hl/stp/tactic/move_tactic.h"
#include "ai/hl/stp/tactic/penalty_kick_tactic.h"
#include "ai/hl/stp/tactic/stop_tactic.h"
#include "shared/constants.h"
const std::string PenaltyKickPlay::name = "Penalty Kick Play";
std... | 34.246753 | 89 | 0.635192 | Solaris5959 |
57831f12033dd8e0af593677c102e1d13d3dc820 | 9,904 | cpp | C++ | src/pool.cpp | ikonopistsev/capstomp | af5b04d59b43008bb093aaa7323623a79b61e6c8 | [
"Apache-2.0"
] | 1 | 2020-12-23T07:58:52.000Z | 2020-12-23T07:58:52.000Z | src/pool.cpp | ikonopistsev/capstomp | af5b04d59b43008bb093aaa7323623a79b61e6c8 | [
"Apache-2.0"
] | 1 | 2021-11-27T07:57:32.000Z | 2021-11-27T07:57:32.000Z | src/pool.cpp | ikonopistsev/capstomp | af5b04d59b43008bb093aaa7323623a79b61e6c8 | [
"Apache-2.0"
] | null | null | null | #include "pool.hpp"
#include "conf.hpp"
#include "journal.hpp"
#include "btdef/text.hpp"
#include <memory>
using namespace std::literals;
namespace capst {
std::string pool::create_transaction_id()
{
return std::to_string(++transaction_seq_) + '@' + name_;
}
void pool::clear() noexcept
{
try
{
... | 24.636816 | 84 | 0.508481 | ikonopistsev |
578440dfec85b860889f998f54e4cf7b9570e798 | 5,134 | cxx | C++ | src/gadget/main_blur_image.cxx | lejeunel/glia | 24b763a230627951139010cd07b0d0ff2356a365 | [
"MIT"
] | 11 | 2016-08-16T02:26:31.000Z | 2021-08-25T06:51:47.000Z | src/gadget/main_blur_image.cxx | lejeunel/glia | 24b763a230627951139010cd07b0d0ff2356a365 | [
"MIT"
] | 3 | 2017-05-26T15:33:42.000Z | 2018-04-27T12:12:24.000Z | src/gadget/main_blur_image.cxx | lejeunel/glia | 24b763a230627951139010cd07b0d0ff2356a365 | [
"MIT"
] | 9 | 2016-07-25T08:28:12.000Z | 2021-03-17T15:02:41.000Z | #include "util/image_io.hxx"
#include "util/text_cmd.hxx"
using namespace glia;
bool operation (std::string const& outputImageFile,
std::string const& inputImageFile,
double sigma, int kernelWidth, Int dim, bool compress)
{
switch (readImageInfo(inputImageFile)->GetComponentType()) {
... | 38.313433 | 76 | 0.62836 | lejeunel |
c232f665fc0f391f335e94d80bcda2377e812f23 | 548 | cpp | C++ | Src/Math/Math.cpp | QuaternionMark/Ray-Tracer | 48accbf479520daace3d225cd5ff2421211b8df0 | [
"Zlib"
] | null | null | null | Src/Math/Math.cpp | QuaternionMark/Ray-Tracer | 48accbf479520daace3d225cd5ff2421211b8df0 | [
"Zlib"
] | null | null | null | Src/Math/Math.cpp | QuaternionMark/Ray-Tracer | 48accbf479520daace3d225cd5ff2421211b8df0 | [
"Zlib"
] | null | null | null | #include <cmath>
#include "Math.h"
Vector3f Math::closestPointOnLine(const Ray& ray, const Vector3f& rayToPoint) {
// Remember linear algebra? Project the point on ray line.
Vector3f projectionOfCenterOnLine = ray.direction.multiply(ray.direction.dotProduct(rayToPoint));
// Add to ray origin to get a poi... | 32.235294 | 101 | 0.74635 | QuaternionMark |
c23454e3278f91de8a18369a57835c3f12dc5f1f | 2,030 | cpp | C++ | test/src/translators_test.cpp | alepez/jxxson | dd1bb9469387052e1c0ee206be71372a256eb6a7 | [
"MIT"
] | 1 | 2015-05-21T22:54:10.000Z | 2015-05-21T22:54:10.000Z | test/src/translators_test.cpp | alepez/jxxson | dd1bb9469387052e1c0ee206be71372a256eb6a7 | [
"MIT"
] | null | null | null | test/src/translators_test.cpp | alepez/jxxson | dd1bb9469387052e1c0ee206be71372a256eb6a7 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <jxxson.h>
using namespace jxxson;
TEST(Translator, CanTranslateToBool) {
bool dst;
JsonObj j("{\"data\": true}");
translate(dst, j["data"]);
ASSERT_EQ(true, dst);
}
TEST(Translator, CanTranslateToInt) {
int dst;
JsonObj j("{\"data\": -42}");
translate(dst, j["data"])... | 22.808989 | 87 | 0.644828 | alepez |
c2394cc97c718860856e8e46c6f8cfb4cdfd423d | 3,644 | cpp | C++ | src/aace.cpp | gjoni/iPot | 9af44ed4fe1121933f5c936b2608ace0d293ad87 | [
"MIT"
] | 4 | 2018-09-20T18:14:16.000Z | 2022-01-13T06:11:20.000Z | src/aace.cpp | gjoni/iPot | 9af44ed4fe1121933f5c936b2608ace0d293ad87 | [
"MIT"
] | null | null | null | src/aace.cpp | gjoni/iPot | 9af44ed4fe1121933f5c936b2608ace0d293ad87 | [
"MIT"
] | 1 | 2022-02-15T12:53:44.000Z | 2022-02-15T12:53:44.000Z | /*****************************************************************************
*
* Ivan Anishchenko <anishchenko.ivan@gmail.com>
*
* 2013-2016, Vakser Lab, Center for Computational biology, University of Kansas
*
*****************************************************************************
*
* TODO (2017May02):... | 23.063291 | 87 | 0.515642 | gjoni |
c23b000216e7b0dc01a56cf77c823b19d88e8a38 | 2,210 | cpp | C++ | LightOfTheMoonSource/BulletComponent.cpp | Sparkolo/Codename-LightOfTheMoon | 03579d0c47c05df16e6dd0cf946947688dbe2273 | [
"MIT"
] | null | null | null | LightOfTheMoonSource/BulletComponent.cpp | Sparkolo/Codename-LightOfTheMoon | 03579d0c47c05df16e6dd0cf946947688dbe2273 | [
"MIT"
] | null | null | null | LightOfTheMoonSource/BulletComponent.cpp | Sparkolo/Codename-LightOfTheMoon | 03579d0c47c05df16e6dd0cf946947688dbe2273 | [
"MIT"
] | null | null | null | /*
* Created by Alberto Giudice on 12/12/2019.
* LIST OF EDITS (reverse chronological order - add last on top):
* +
* + Alberto Giudice [15/12/19] - Deactivate gameObject of bullet on despawn
* + Alberto Giudice [15/12/19] - Added logic to disappear on wall collision
* + Alberto Giudice [14/12/19] - Logic impleme... | 29.466667 | 142 | 0.728054 | Sparkolo |
c23b2b8394d1dd2e8ad73e0fc3fd92a291f52d91 | 5,187 | hpp | C++ | hpx/traits/serialization_access_data.hpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2019-04-29T08:34:59.000Z | 2019-04-29T08:34:59.000Z | hpx/traits/serialization_access_data.hpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2017-07-24T07:16:26.000Z | 2017-07-24T08:03:33.000Z | hpx/traits/serialization_access_data.hpp | biddisco/hpx | 2d244e1e27c6e014189a6cd59c474643b31fad4b | [
"BSL-1.0"
] | 1 | 2019-03-13T04:53:43.000Z | 2019-03-13T04:53:43.000Z | // Copyright (c) 2017 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef HPX_SERIALIZATION_ACCESS_DATA_HPP
#define HPX_SERIALIZATION_ACCESS_DATA_HPP
#include <hpx/config.hpp>
#include <hp... | 28.037838 | 80 | 0.53075 | bremerm31 |
c23d2eb2a41d57eba5dd26f2d1948ff4b5b55691 | 446 | cpp | C++ | Codeforces/431A - Black Square.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/431A - Black Square.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/431A - Black Square.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int char_to_int(char n) {return n - 48;}
int main() {
int calorie_wastage[4];
for(int i = 0; i < 4; i++)
cin >> calorie_wastage[i];
string stripe_data;
cin >> stripe_data;
int total_calorie_wastage = 0;
for (char ch: stripe_... | 21.238095 | 70 | 0.636771 | naimulcsx |
c2410aa703a66efb9a20c1951afca68bd9e4756e | 1,012 | cpp | C++ | Encapsulation/Encapsulation/Encapsulation.cpp | Trustyn/CPP-Practice | 76d201d69dbec0f24259158a5363afb2997478d0 | [
"MIT"
] | null | null | null | Encapsulation/Encapsulation/Encapsulation.cpp | Trustyn/CPP-Practice | 76d201d69dbec0f24259158a5363afb2997478d0 | [
"MIT"
] | null | null | null | Encapsulation/Encapsulation/Encapsulation.cpp | Trustyn/CPP-Practice | 76d201d69dbec0f24259158a5363afb2997478d0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <list>
using namespace std;
class Game {
public:
Game(string title, string creator) {
Title = title;
Creator = creator;
}
void SetMarketPrice(double marketPrice) {
MarketPrice = marketPrice;
}
void SetGenres(string genre) {
Genres.push_back(genre);
}
void GetGameInfo() ... | 16.590164 | 55 | 0.649209 | Trustyn |
c244b88f394a02a0cb167e75f182d840bce7b1d4 | 7,587 | cpp | C++ | src/beast/beast/http/impl/raw_parser.cpp | vpaldev/vpal20 | 8bcebea3499b86559e244636a7285226a3ed6950 | [
"BSL-1.0"
] | 1 | 2020-03-20T00:21:26.000Z | 2020-03-20T00:21:26.000Z | src/beast/beast/http/impl/raw_parser.cpp | vpaldev/vpal20 | 8bcebea3499b86559e244636a7285226a3ed6950 | [
"BSL-1.0"
] | null | null | null | src/beast/beast/http/impl/raw_parser.cpp | vpaldev/vpal20 | 8bcebea3499b86559e244636a7285226a3ed6950 | [
"BSL-1.0"
] | 2 | 2016-07-16T05:24:05.000Z | 2020-03-20T00:21:34.000Z | //------------------------------------------------------------------------------
/*
Portions of this file are from Vpallab: https://github.com/vpallabs
Copyright (c) 2013 - 2014 - Vpallab.com.
Please visit http://www.vpallab.com/
This file is part of Beast: https://github.com/vinniefalco/Beast
... | 25.545455 | 80 | 0.642283 | vpaldev |
c2474ff33ea3e61188b1d1c804e86a86a3d738cf | 2,732 | cpp | C++ | reference_solutions/localization/src/motion_model.cpp | pr05/software-training | b38036bf0d2231b0c8a058b9b7bcb27883bd4bba | [
"MIT"
] | 177 | 2015-09-28T20:31:12.000Z | 2022-02-03T23:20:56.000Z | reference_solutions/localization/src/motion_model.cpp | pr05/software-training | b38036bf0d2231b0c8a058b9b7bcb27883bd4bba | [
"MIT"
] | 89 | 2016-09-24T21:52:06.000Z | 2021-10-21T03:36:31.000Z | reference_solutions/localization/src/motion_model.cpp | pr05/software-training | b38036bf0d2231b0c8a058b9b7bcb27883bd4bba | [
"MIT"
] | 252 | 2015-09-21T20:58:04.000Z | 2022-03-21T09:31:35.000Z | // Copyright 2021 RoboJackets
//
// 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, publish, distr... | 35.480519 | 97 | 0.72511 | pr05 |
c24ba28dc3bd69b748e0b33ce3e165fedffdbe94 | 907 | hpp | C++ | ThirdParty/oglplus-develop/include/eglplus/render_buffer.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 24 | 2015-01-31T15:30:49.000Z | 2022-01-29T08:36:42.000Z | ThirdParty/oglplus-develop/include/eglplus/render_buffer.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 4 | 2015-08-21T02:29:15.000Z | 2020-05-02T13:50:36.000Z | ThirdParty/oglplus-develop/include/eglplus/render_buffer.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | 9 | 2015-06-08T22:04:15.000Z | 2021-08-16T03:52:11.000Z | /**
* @file eglplus/render_buffer.hpp
* @brief EGL render buffer enumeration
*
* @author Matus Chochlik
*
* Copyright 2010-2013 Matus Chochlik. 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)
*/
#pragm... | 23.25641 | 68 | 0.7828 | vif |
c24c975e1d02f4e84c721a1737143733c6306974 | 357 | cpp | C++ | test/unorderedMapTest.cpp | jxx-project/Polymorphic | 3e20755a8d665eae52318f9941e1c1c06daee8ef | [
"BSL-1.0"
] | null | null | null | test/unorderedMapTest.cpp | jxx-project/Polymorphic | 3e20755a8d665eae52318f9941e1c1c06daee8ef | [
"BSL-1.0"
] | null | null | null | test/unorderedMapTest.cpp | jxx-project/Polymorphic | 3e20755a8d665eae52318f9941e1c1c06daee8ef | [
"BSL-1.0"
] | null | null | null | //
// Copyright (C) 2018 Dr. Michael Steffens
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Polymorphic/UnorderedMap.h"
#include "Testee/UnorderedMapTestSuite.h"
#include <iostream>
int main(int args, char* argv[])
{
return Testee::UnorderedMapTestSuite<Polymorphic::UnorderedMap, int, int>("Polymorphic::Unord... | 22.3125 | 128 | 0.717087 | jxx-project |
c2510fa6713997d69dccefd4821e8d871476f57e | 16,551 | hpp | C++ | wave_geometry_og/include/wave/geometry_og/transformation.hpp | Jebediah/libwave | c04998c964f0dc7d414783c6e8cf989a2716ad54 | [
"MIT"
] | 2 | 2019-06-13T13:47:18.000Z | 2019-06-13T14:54:35.000Z | wave_geometry_og/include/wave/geometry_og/transformation.hpp | Jebediah/libwave | c04998c964f0dc7d414783c6e8cf989a2716ad54 | [
"MIT"
] | null | null | null | wave_geometry_og/include/wave/geometry_og/transformation.hpp | Jebediah/libwave | c04998c964f0dc7d414783c6e8cf989a2716ad54 | [
"MIT"
] | 1 | 2020-02-13T02:27:29.000Z | 2020-02-13T02:27:29.000Z | #ifndef WAVE_TRANSFORMATION_HPP
#define WAVE_TRANSFORMATION_HPP
#include <memory>
#include <Eigen/Core>
#include "unsupported/Eigen/MatrixFunctions"
#include "wave/utils/utils.hpp"
namespace wave {
template <typename T_str = Mat34, bool approximate = false>
class Transformation {
public:
EIGEN_MAKE_ALIGNED_OPE... | 40.76601 | 141 | 0.63404 | Jebediah |
c253718ac4de8409e6a99426ddd3cb89242a029e | 491,528 | cxx | C++ | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_58.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:11.000Z | 2020-02-08T04:09:11.000Z | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_58.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 40 | 2018-08-26T08:34:34.000Z | 2021-09-28T13:01:55.000Z | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_58.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:10:14.000Z | 2020-02-08T04:10:14.000Z | // This file is part of the dune-xt-data project:
// https://github.com/dune-community/dune-xt-data
// Copyright 2009-2018 dune-xt-data developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensou... | 115.680866 | 119 | 0.572167 | dune-community |
c2552774137866fe4b658b727cafb3888717da25 | 1,327 | cpp | C++ | tests/test.cpp | sirusers/lab-01 | 2a57c6f33b4e5d84ff9447237606d66e235fe4a1 | [
"MIT"
] | null | null | null | tests/test.cpp | sirusers/lab-01 | 2a57c6f33b4e5d84ff9447237606d66e235fe4a1 | [
"MIT"
] | null | null | null | tests/test.cpp | sirusers/lab-01 | 2a57c6f33b4e5d84ff9447237606d66e235fe4a1 | [
"MIT"
] | null | null | null | // Copyright 2021 Remizov Sergey <agamesok@gmail.com>
#include <gtest/gtest.h>
#include <header.hpp>
TEST(printTest, StudentsArray) {
std::stringstream ss;
std::vector<student_t> students;
student_t t;
t.name = "test";
t.avg = (std::string)"test";
t.debt = std::vector<std::string>();
t.group = (size_t)... | 30.860465 | 82 | 0.409947 | sirusers |
c258447f4f93a66ab1c45512b80dae30c4521bd8 | 825 | cc | C++ | leetcode/cpp/longest_palindromic_substring.cc | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | leetcode/cpp/longest_palindromic_substring.cc | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | leetcode/cpp/longest_palindromic_substring.cc | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
string longestPalindrome(string s) {
string test_str = "^#";
for (auto &c : s) {
test_str += c;
test_str += '#';
}
test_str += '$';
int len = static_cast<int>(test_str.length());
vector<int> p(len - 2, 0);
int center = 0, right = 0;
for (int i = 1; ... | 24.264706 | 62 | 0.443636 | haonancool |
c2598063da19500c0c0d78a6dbed9fc43565f0da | 4,692 | cpp | C++ | src/operators/opFunctionDefined.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | 4 | 2018-08-31T09:44:52.000Z | 2021-03-01T19:10:00.000Z | src/operators/opFunctionDefined.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | 21 | 2019-12-29T08:33:34.000Z | 2020-11-22T16:38:37.000Z | src/operators/opFunctionDefined.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | null | null | null | #include "operators/opFunctionDefined.h"
#include <iostream>
#include <memory>
#include "operators/simpleOperator.hpp"
#include "types/set.h"
using namespace std;
void OpFunctionDefined::reevaluateImpl(FunctionView& operandView) {
debug_log("evaluating");
lib::visit(
[&](auto& preimageDomainPtr) {
... | 35.014925 | 80 | 0.604646 | athanor |
c259984421e0505c44fa733ff7d66fbb5674ff9a | 10,642 | cpp | C++ | tests/rain_test.cpp | shibammukherjee/rainier-signatures | cd7c89e418d52c1288c1d802b30043d09bb89cd8 | [
"MIT"
] | 1 | 2021-08-12T03:53:58.000Z | 2021-08-12T03:53:58.000Z | tests/rain_test.cpp | shibammukherjee/rainier-signatures | cd7c89e418d52c1288c1d802b30043d09bb89cd8 | [
"MIT"
] | null | null | null | tests/rain_test.cpp | shibammukherjee/rainier-signatures | cd7c89e418d52c1288c1d802b30043d09bb89cd8 | [
"MIT"
] | 2 | 2021-09-22T11:30:52.000Z | 2022-03-11T11:30:36.000Z | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include "../rain.h"
TEST_CASE("RAIN-128-3-KAT", "[cipher]") {
// key, pt, ct
std::array<std::string, 3> testvectors[] = {
{
"0x4cd8ceac27957eb5b61eb19e0ee2444d",
"0xc3bf252ca498404d9cd4e2162a46ec55",
"0xc824f3cfaba5cfb12d7... | 34.329032 | 79 | 0.70109 | shibammukherjee |
c25b353be2807ea4b96e0e8b28a9a5dfff7e481d | 2,242 | cpp | C++ | komodocli.cpp | pouladzade/KomoG | 41a1002f49e2e78352ada69f8c0911e5c5afc692 | [
"Apache-2.0"
] | null | null | null | komodocli.cpp | pouladzade/KomoG | 41a1002f49e2e78352ada69f8c0911e5c5afc692 | [
"Apache-2.0"
] | null | null | null | komodocli.cpp | pouladzade/KomoG | 41a1002f49e2e78352ada69f8c0911e5c5afc692 | [
"Apache-2.0"
] | null | null | null | #include "komodocli.h"
#include<qfile.h>
#include<qtextstream.h>
#include<qjsonobject.h>
#include<qjsonarray.h>
#include<qjsondocument.h>
KomodoCli::KomodoCli()
{
}
bool KomodoCli::loadCommands(QString path)
{
QFile inputFile(path);
if (inputFile.open(QIODevice::ReadOnly))
{
Commands.clear();
... | 23.354167 | 76 | 0.581624 | pouladzade |
c26306a8123acc1f31a0ed25eabf176a44eaeff0 | 1,584 | hpp | C++ | include/interface.hpp | RajPShinde/footstep_affordance | 6e8863c098fc4f6e789e0eee56adcee5df061454 | [
"Unlicense"
] | 4 | 2021-11-23T04:44:06.000Z | 2022-03-26T11:39:30.000Z | include/interface.hpp | RajPShinde/footstep_affordance | 6e8863c098fc4f6e789e0eee56adcee5df061454 | [
"Unlicense"
] | null | null | null | include/interface.hpp | RajPShinde/footstep_affordance | 6e8863c098fc4f6e789e0eee56adcee5df061454 | [
"Unlicense"
] | 2 | 2020-12-21T13:43:56.000Z | 2021-12-10T06:13:57.000Z | #ifndef INCLUDE_INTERFACE_HPP_
#define INCLUDE_INTERFACE_HPP_
#include <ros/ros.h>
#include <octomap_msgs/conversions.h>
#include <octomap_msgs/Octomap.h>
#include <tf/transform_datatypes.h>
#include <tf/transform_listener.h>
#include <tf/message_filter.h>
#include <message_filters/subscriber.h>
#include <visualizatio... | 29.886792 | 128 | 0.761364 | RajPShinde |
c265245ecbc9d639155ee875db3ada4c21795a46 | 3,803 | cpp | C++ | test/relic_integration/test_relic_arithmetics.cpp | awalga/abe-fame | 22eec20493306a87334b25aa7b6efcde25bc6bdb | [
"MIT"
] | 1 | 2020-03-27T07:18:41.000Z | 2020-03-27T07:18:41.000Z | test/relic_integration/test_relic_arithmetics.cpp | awalga/abe-fame | 22eec20493306a87334b25aa7b6efcde25bc6bdb | [
"MIT"
] | null | null | null | test/relic_integration/test_relic_arithmetics.cpp | awalga/abe-fame | 22eec20493306a87334b25aa7b6efcde25bc6bdb | [
"MIT"
] | 2 | 2018-11-15T16:28:49.000Z | 2020-11-26T12:56:56.000Z | //
// Created by abel walga on 02/05/2018.
//
#include "gtest/gtest.h"
#include "odncrypto/bilinear_pairing.hpp"
TEST (group_arithmetics, field_Zr_initialization) {
using namespace ::odn::crypto;
bilinear_pairing pairing(2);
field_zr a = group<field_zr>::zr();
a.random();
field_zr b{a};
EXPECT_EQ(b, a);... | 20.668478 | 79 | 0.642913 | awalga |
c2690e2e360d496a7f910fb6a8fbeed7d067c874 | 246 | hpp | C++ | cpp/src/samchon/protocol/StaticEntityArray.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 111 | 2016-04-08T14:10:15.000Z | 2020-12-21T12:25:10.000Z | cpp/src/samchon/protocol/StaticEntityArray.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 16 | 2016-05-27T05:41:56.000Z | 2020-06-23T14:55:00.000Z | cpp/src/samchon/protocol/StaticEntityArray.hpp | wydingez/truck-packer | c59d2ec322b08ac9ba773616a886a575d2af6461 | [
"BSD-3-Clause"
] | 49 | 2016-10-27T09:45:35.000Z | 2020-12-21T12:25:13.000Z | #pragma once
#include <samchon/protocol/StaticEntityGroup.hpp>
#include <vector>
namespace samchon
{
namespace protocol
{
template <typename T, typename Key = std::string>
using StaticEntityArray = StaticEntityGroup<std::vector<T>, Key>;
};
}; | 20.5 | 66 | 0.760163 | wydingez |
c26b4fc0070520441d2b1b9e9f3640a60af0e419 | 2,239 | cpp | C++ | Fog/FogMetaArgument.cpp | UltimateScript/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | null | null | null | Fog/FogMetaArgument.cpp | UltimateScript/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | 2 | 2021-07-07T17:31:49.000Z | 2021-07-16T11:40:38.000Z | Fog/FogMetaArgument.cpp | OuluLinux/FOG | edc96d916fc299f0a822f8c534a4e7487c0e3ea2 | [
"BSD-3-Clause"
] | null | null | null | #include <Fog/FogIncludeAll.h>
TYPEINFO_SINGLE(FogMetaArgument, Super)
PRIMREF_DERIVED_NULL_CLASS_AND_IMPL(FogMetaArgument)
PRIMREFS_IMPL(FogMetaArgument)
PRIMLISTOFREFS_IMPL(FogMetaArgument)
PRIMMAPOFREFS_IMPL(FogMetaArgument)
TMPL_HACK_FIX_DO(FogMetaArgument)
FogMetaArgument::~FogMetaArgument() {}
FogToke... | 28.705128 | 108 | 0.737383 | UltimateScript |
c270f67e5c769cafb3a638af32eedfc131750ee6 | 4,913 | cpp | C++ | RocketLauncherDriver/RocketLauncherDriver/RocketLauncherDeviceReal.cpp | AndiAngerer/Rockular | 74e4cf859b39049688df803ec0e1f00e3a0e86ed | [
"MIT"
] | null | null | null | RocketLauncherDriver/RocketLauncherDriver/RocketLauncherDeviceReal.cpp | AndiAngerer/Rockular | 74e4cf859b39049688df803ec0e1f00e3a0e86ed | [
"MIT"
] | null | null | null | RocketLauncherDriver/RocketLauncherDriver/RocketLauncherDeviceReal.cpp | AndiAngerer/Rockular | 74e4cf859b39049688df803ec0e1f00e3a0e86ed | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "RocketLauncherDeviceReal.h"
#include <iostream>
namespace rocketlauncher
{
RocketLauncherDeviceReal::RocketLauncherDeviceReal() : hid_device(0x0416, 0x9391, 0)
{
deviceOnline = false;
setupDataSent = false;
}
RocketLauncherDeviceReal::~RocketLauncherDeviceReal()
{
unsigned c... | 26.994505 | 143 | 0.706493 | AndiAngerer |
c2728c64f7b629ef91f677cc138df21231f21431 | 3,825 | cpp | C++ | src/server/session.cpp | PhantomGrazzler/smartnode | 0374f5b4fedee2bbdc3b685a46615be81d8b53b6 | [
"MIT"
] | 1 | 2020-08-09T08:56:01.000Z | 2020-08-09T08:56:01.000Z | src/server/session.cpp | PhantomGrazzler/smartnode | 0374f5b4fedee2bbdc3b685a46615be81d8b53b6 | [
"MIT"
] | 18 | 2020-08-09T14:03:55.000Z | 2021-11-02T12:04:08.000Z | src/server/session.cpp | PhantomGrazzler/smartnode | 0374f5b4fedee2bbdc3b685a46615be81d8b53b6 | [
"MIT"
] | null | null | null | #include "session.hpp"
#include "console_printer.hpp"
#include "message_engine.hpp"
#include "id_types.hpp"
#include "logger.hpp"
#include "data_types.hpp"
#include <sstream>
namespace sn
{
Session::Session(
boost::asio::ip::tcp::socket&& socket,
const std::string& serverName,
const std::shared_ptr<Messa... | 25.5 | 100 | 0.609673 | PhantomGrazzler |
c273cfd76a41d2e3d0130b93e1f6d9e1ccfcf369 | 4,594 | cpp | C++ | src/interpreter/builtins/lang/avalon_getters.cpp | avalon-lang/avaloni | 28534da0cb9dbb35481e4b5841e5821472da84f0 | [
"MIT"
] | 14 | 2018-08-16T03:03:05.000Z | 2022-02-01T23:27:34.000Z | src/interpreter/builtins/lang/avalon_getters.cpp | avalon-lang/avaloniq | 28534da0cb9dbb35481e4b5841e5821472da84f0 | [
"MIT"
] | 1 | 2020-05-18T09:41:25.000Z | 2021-02-04T23:55:13.000Z | src/interpreter/builtins/lang/avalon_getters.cpp | avalon-lang/avaloniq | 28534da0cb9dbb35481e4b5841e5821472da84f0 | [
"MIT"
] | 2 | 2020-05-10T04:17:10.000Z | 2022-02-01T23:27:47.000Z | /*
* This file is part of the Avalon programming language
*
* Copyright (c) 2018 Ntwali Bashige Toussaint
*
* 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, i... | 39.264957 | 149 | 0.699173 | avalon-lang |
c2977db6f41cdad705f274e8a726213d293c4075 | 2,086 | cpp | C++ | aws-cpp-sdk-codebuild/source/model/ProjectVisibilityType.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-codebuild/source/model/ProjectVisibilityType.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-codebuild/source/model/ProjectVisibilityType.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codebuild/model/ProjectVisibilityType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aw... | 29.380282 | 92 | 0.635666 | perfectrecall |
c29cea98cb2175d0f4cacb69ec4d2cc7be599db0 | 5,168 | cpp | C++ | src/user_input.cpp | jayheiland/Cartwright | 21e845e9b38a0670e943a58ff34c63ac04f42682 | [
"MIT"
] | null | null | null | src/user_input.cpp | jayheiland/Cartwright | 21e845e9b38a0670e943a58ff34c63ac04f42682 | [
"MIT"
] | null | null | null | src/user_input.cpp | jayheiland/Cartwright | 21e845e9b38a0670e943a58ff34c63ac04f42682 | [
"MIT"
] | null | null | null | #include "user_input.h"
void processUserInputs(){
SDL_Event e;
while( SDL_PollEvent( &e ) != 0 )
{
if(e.type == SDL_QUIT )
{
send("QUIT_APP");
}
if(e.type == SDL_KEYUP){
}
if(e.type == SDL_KEYDOWN)
{
if(SDL_GetModState() == K... | 49.219048 | 119 | 0.506772 | jayheiland |
c29dfefaf86f6f88e7c0bd559f5880753951fcbd | 2,420 | hpp | C++ | include/misc/xmlwrapp/impl/_cbfo.hpp | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | 3 | 2018-01-18T21:46:01.000Z | 2021-04-06T03:04:00.000Z | include/misc/xmlwrapp/impl/_cbfo.hpp | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | null | null | null | include/misc/xmlwrapp/impl/_cbfo.hpp | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | 4 | 2018-01-18T21:44:47.000Z | 2020-12-13T14:38:18.000Z | /*
* Copyright (C) 2001-2003 Peter J Jones (pjones@pmade.org)
* 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
* ... | 35.072464 | 88 | 0.728512 | ncbi |
c2a5809042493778352faa4e976ff102277393f8 | 93 | hpp | C++ | assistant/debug.hpp | mddigaetano/AccessibleHomeAutomation | 1798402e6a8a7826a0e368d58bf171e756320c4b | [
"MIT"
] | null | null | null | assistant/debug.hpp | mddigaetano/AccessibleHomeAutomation | 1798402e6a8a7826a0e368d58bf171e756320c4b | [
"MIT"
] | null | null | null | assistant/debug.hpp | mddigaetano/AccessibleHomeAutomation | 1798402e6a8a7826a0e368d58bf171e756320c4b | [
"MIT"
] | null | null | null | #ifndef VERBOSITY
#define DEBUG 1
#define RELEASE 0
#define VERBOSITY RELEASE
#endif
| 13.285714 | 27 | 0.731183 | mddigaetano |
c2adb151414dcf8fb1cde9d2d9b14f0014d5f8b1 | 2,332 | cpp | C++ | source/directinput/RampForce.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/directinput/RampForce.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/directinput/RampForce.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 45 | 2015-09-14T03:54:01.000Z | 2022-03-22T19:53:09.000Z | /*
* Copyright (c) 2007-2012 SlimDX Group
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, ... | 24.041237 | 80 | 0.695969 | HeavenWu |
c2b126a3c2405997850bd1aa42506d01aeaaeba2 | 2,145 | cpp | C++ | CPP2D/CPP2DTools.cpp | Geod24/CPP2D | 3ca5c4b85f587bcac897ab74a8d9195811a8bcba | [
"BSL-1.0"
] | 94 | 2016-05-28T11:20:44.000Z | 2021-08-24T13:27:33.000Z | CPP2D/CPP2DTools.cpp | Geod24/CPP2D | 3ca5c4b85f587bcac897ab74a8d9195811a8bcba | [
"BSL-1.0"
] | 31 | 2016-05-12T20:30:01.000Z | 2021-03-07T22:19:16.000Z | CPP2D/CPP2DTools.cpp | Geod24/CPP2D | 3ca5c4b85f587bcac897ab74a8d9195811a8bcba | [
"BSL-1.0"
] | 11 | 2016-09-06T19:47:18.000Z | 2021-04-26T14:19:44.000Z | //
// Copyright (c) 2016 Loïc HAMOT
//
// 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)
//
#pragma warning(push, 0)
#pragma warning(disable: 4548)
#include <llvm/Support/Path.h>
#include <clang/AST/ASTContext.h>
#pr... | 25.843373 | 95 | 0.676457 | Geod24 |
c2b3eb7d8bfb7c5430213996e548a12191e5d7f2 | 1,437 | cpp | C++ | trainings/2015-10-07-Multi-University-2015-8/H.cpp | HcPlu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 9 | 2017-10-07T13:35:45.000Z | 2021-06-07T17:36:55.000Z | trainings/2015-10-07-Multi-University-2015-8/H.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | null | null | null | trainings/2015-10-07-Multi-University-2015-8/H.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 3 | 2018-04-24T05:27:21.000Z | 2019-04-25T06:06:00.000Z | #include <iostream>
using namespace std;
char text[10];
void out(int num) {
if (!num) {
printf("%d", num);
return;
}
int divide = __gcd(120, num);
if (divide == 120) {
printf("%d", num / 120);
return;
}
printf("%d/%d", num / divide, 120 / divide);
}
void solve... | 22.453125 | 61 | 0.491997 | HcPlu |
c2b53c978372c68df7e37bd522c54ae706b98ae4 | 3,147 | cpp | C++ | viewers_ltilib-2/viewerimage.cpp | llibuda/impresario-macros | 4059f95348b6bccd7a0fc803537e7aa7a74ac6a9 | [
"BSD-2-Clause",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | viewers_ltilib-2/viewerimage.cpp | llibuda/impresario-macros | 4059f95348b6bccd7a0fc803537e7aa7a74ac6a9 | [
"BSD-2-Clause",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | viewers_ltilib-2/viewerimage.cpp | llibuda/impresario-macros | 4059f95348b6bccd7a0fc803537e7aa7a74ac6a9 | [
"BSD-2-Clause",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /****************************************************************************************************
** Impresario Library Viewers_ltilib-2
** This file is part of the Impresario Library Viewers_ltilib-2.
**
** Copyright (C) 2015-2020 Lars Libuda
** All rights reserved.
**
** Redistribution and use in sourc... | 45.608696 | 102 | 0.674611 | llibuda |
c2b73c83fea86920a1b7f3fe2561308e8643f029 | 4,105 | cpp | C++ | MainFrm.cpp | wjy5446/ImageStitching | ffebd75efe38ce7d2d367d022a6a96fd5248a32f | [
"MIT"
] | null | null | null | MainFrm.cpp | wjy5446/ImageStitching | ffebd75efe38ce7d2d367d022a6a96fd5248a32f | [
"MIT"
] | null | null | null | MainFrm.cpp | wjy5446/ImageStitching | ffebd75efe38ce7d2d367d022a6a96fd5248a32f | [
"MIT"
] | null | null | null | // MainFrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "ImageProcessing.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainFrame... | 23.457143 | 114 | 0.694032 | wjy5446 |
c2bc1e05a0205b0ace8bd473555ba0dd78c39644 | 6,701 | cpp | C++ | Source/FlightSimulator/Private/System/FlightDialogSystem.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | 1 | 2022-02-03T08:29:35.000Z | 2022-02-03T08:29:35.000Z | Source/FlightSimulator/Private/System/FlightDialogSystem.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | null | null | null | Source/FlightSimulator/Private/System/FlightDialogSystem.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | null | null | null | //MIT License
//
//Copyright(c) 2021 HaiLiang Feng
//
//QQ : 632865163
//Blog : https ://www.cnblogs.com/LynnVon/
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwareand associated documentation files(the "Software"), to deal
// in the Software without restrict... | 24.191336 | 135 | 0.673929 | Lynnvon |
c2bc784d317bc46b87832333226cae81f5e2375c | 5,328 | hpp | C++ | src/assert/assert.hpp | ShigotoShoujin/shigoto.shoujin | 165bac0703ffdec544ab275af25dd3504529a565 | [
"MIT"
] | 1 | 2021-10-31T04:29:16.000Z | 2021-10-31T04:29:16.000Z | src/assert/assert.hpp | ShigotoShoujin/shigoto.shoujin | 165bac0703ffdec544ab275af25dd3504529a565 | [
"MIT"
] | null | null | null | src/assert/assert.hpp | ShigotoShoujin/shigoto.shoujin | 165bac0703ffdec544ab275af25dd3504529a565 | [
"MIT"
] | null | null | null | #ifndef SHOUJIN_SOURCE_ASSERT_ASSERT
#define SHOUJIN_SOURCE_ASSERT_ASSERT
import Shoujin.String;
#include "../event.hpp"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <any>
#include <system_error>
namespace shoujin::assert {
extern thread_local bool _activate_assert_messagebox_;
struct ErrorInfo {
tst... | 37.521127 | 107 | 0.756194 | ShigotoShoujin |
c2bd7b8dce413ce2e34149ed75c568e79f3e80b7 | 149 | hxx | C++ | src/Providers/UNIXProviders/CASignsPublicKeyCertificate/UNIX_CASignsPublicKeyCertificate_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/CASignsPublicKeyCertificate/UNIX_CASignsPublicKeyCertificate_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/CASignsPublicKeyCertificate/UNIX_CASignsPublicKeyCertificate_STUB.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_STUB
#ifndef __UNIX_CASIGNSPUBLICKEYCERTIFICATE_PRIVATE_H
#define __UNIX_CASIGNSPUBLICKEYCERTIFICATE_PRIVATE_H
#endif
#endif
| 12.416667 | 52 | 0.872483 | brunolauze |
c2c26a0497e6be78968529d9abac45ad28abfde0 | 341 | hpp | C++ | StickWatch/src/ArduinoJson_6.2.0-beta/ArduinoJson/Serialization/DummyWriter.hpp | stahifpv/StickWatch | b9f2b3824e62b4e2366859559dbb19a531560758 | [
"Apache-2.0"
] | 83 | 2019-01-24T01:32:21.000Z | 2022-02-20T06:54:43.000Z | src/ArduinoJson_6.2.0-beta/ArduinoJson/Serialization/DummyWriter.hpp | sysdl132/m5stack-stickwatch | 968087b9f1b06e64e45699b0f4ac22ffb3e6f2a9 | [
"Apache-2.0"
] | 5 | 2019-02-18T12:19:31.000Z | 2020-04-26T01:37:47.000Z | src/ArduinoJson_6.2.0-beta/ArduinoJson/Serialization/DummyWriter.hpp | sysdl132/m5stack-stickwatch | 968087b9f1b06e64e45699b0f4ac22ffb3e6f2a9 | [
"Apache-2.0"
] | 27 | 2019-01-26T14:12:14.000Z | 2022-02-28T14:38:14.000Z | // ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2018
// MIT License
#pragma once
namespace ArduinoJson {
namespace Internals {
class DummyWriter {
public:
size_t write(uint8_t) {
return 1;
}
size_t write(const uint8_t*, size_t n) {
return n;
}
};
} // namespace Internals
} // n... | 15.5 | 42 | 0.692082 | stahifpv |
c2c51972171de71f3ed79f775db4eafd7aa030ca | 32 | cpp | C++ | test/autogen/value@val.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | test/autogen/value@val.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | test/autogen/value@val.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #include "jln/mp/value/val.hpp"
| 16 | 31 | 0.71875 | jonathanpoelen |
c2c67b3b83a9ae699b019c587aaf0ce00ac4526d | 4,696 | cpp | C++ | src/RcppExports.cpp | gtonkinhill/fastbaps | 736a5d52493f90db3d8b2a71d664f155854a302c | [
"MIT"
] | 23 | 2018-10-30T06:35:31.000Z | 2022-03-26T04:05:41.000Z | src/RcppExports.cpp | gtonkinhill/fastbaps | 736a5d52493f90db3d8b2a71d664f155854a302c | [
"MIT"
] | 15 | 2018-10-10T16:10:37.000Z | 2022-01-12T22:14:40.000Z | src/RcppExports.cpp | gtonkinhill/fastbaps | 736a5d52493f90db3d8b2a71d664f155854a302c | [
"MIT"
] | 9 | 2019-03-11T13:16:26.000Z | 2021-05-30T14:01:54.000Z | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <RcppArmadillo.h>
#include <Rcpp.h>
using namespace Rcpp;
// bhier
List bhier(List data, List partitions, NumericVector d_k);
RcppExport SEXP _fastbaps_bhier(SEXP dataSEXP, SEXP pa... | 41.557522 | 116 | 0.762777 | gtonkinhill |
c2ce3e88562f99cd02ab81961ac5a8e55964c709 | 1,499 | hpp | C++ | addons/main/configs/ExtendedEventHandlers.hpp | IDarky/TBMod | aa4111faae4084c1d725c422138ec7ed429fe662 | [
"MIT"
] | null | null | null | addons/main/configs/ExtendedEventHandlers.hpp | IDarky/TBMod | aa4111faae4084c1d725c422138ec7ed429fe662 | [
"MIT"
] | 4 | 2018-12-21T06:57:25.000Z | 2020-07-09T09:06:38.000Z | addons/main/configs/ExtendedEventHandlers.hpp | IDarky/TBMod | aa4111faae4084c1d725c422138ec7ed429fe662 | [
"MIT"
] | null | null | null | /*
Part of the TBMod ( https://github.com/TacticalBaconDevs/TBMod )
Developed by http://tacticalbacon.de
*/
class Extended_PreStart_EventHandlers
{
class ADDON
{
init = QUOTE(call COMPILE_FILE(XEH_preStart));
};
};
class Extended_PreInit_EventHandlers
{
class ADDON
{
init = ... | 24.177419 | 141 | 0.681121 | IDarky |
c2d900ba5e772a34090790980150324df1364d9d | 1,900 | hh | C++ | test/random/DiagnosticRngEngine.hh | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 22 | 2020-03-31T14:18:22.000Z | 2022-01-10T09:43:06.000Z | test/random/DiagnosticRngEngine.hh | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 261 | 2020-04-29T15:14:29.000Z | 2022-03-31T19:07:14.000Z | test/random/DiagnosticRngEngine.hh | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | 15 | 2020-05-01T19:47:19.000Z | 2021-12-25T06:12:09.000Z | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 29.6875 | 79 | 0.527895 | amandalund |
c2dd49ad05eb24af939eb52b27cfaec002c7c1da | 2,817 | hpp | C++ | Engine/Core/Concurrency/Thread.hpp | GabyForceQ/PolluxEngine | 2dbc84ed1d434f1b6d794f775f315758f0e8cc49 | [
"BSD-3-Clause"
] | 3 | 2020-05-19T20:24:28.000Z | 2020-09-27T11:28:42.000Z | Engine/Core/Concurrency/Thread.hpp | GabyForceQ/PolluxEngine | 2dbc84ed1d434f1b6d794f775f315758f0e8cc49 | [
"BSD-3-Clause"
] | 31 | 2020-05-27T11:01:27.000Z | 2020-08-08T15:53:23.000Z | Engine/Core/Concurrency/Thread.hpp | GabyForceQ/PolluxEngine | 2dbc84ed1d434f1b6d794f775f315758f0e8cc49 | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************************************************************
* Copyright 2020 Gabriel Gheorghe. All rights reserved.
* This code is licensed under the BSD 3-Clause "New" or "Revised" License
* License url: https://github.com/GabyForceQ/PolluxEngine/bl... | 52.166667 | 127 | 0.225062 | GabyForceQ |
123d67a4b2b8ce69d9b3eb7c129da22e0325e4ad | 2,148 | cpp | C++ | src/execution/operator/projection/physical_tableinout_function.cpp | taniabogatsch/duckdb | dbb043b1149bdd70feec5cce131222d7897a3b91 | [
"MIT"
] | null | null | null | src/execution/operator/projection/physical_tableinout_function.cpp | taniabogatsch/duckdb | dbb043b1149bdd70feec5cce131222d7897a3b91 | [
"MIT"
] | null | null | null | src/execution/operator/projection/physical_tableinout_function.cpp | taniabogatsch/duckdb | dbb043b1149bdd70feec5cce131222d7897a3b91 | [
"MIT"
] | null | null | null | #include "duckdb/execution/operator/projection/physical_tableinout_function.hpp"
namespace duckdb {
class TableInOutLocalState : public OperatorState {
public:
TableInOutLocalState() {
}
unique_ptr<LocalTableFunctionState> local_state;
};
class TableInOutGlobalState : public GlobalOperatorState {
public:
TableI... | 39.054545 | 117 | 0.742551 | taniabogatsch |
124ad20ffc5137c13310fc9856060ed0f8e35519 | 778 | inl | C++ | src/gui/button.inl | rochus-keller/nappgui_src | 394875dfc11c9c73cd7995d56f77dcd4629d70b5 | [
"MIT"
] | 133 | 2021-09-09T17:53:54.000Z | 2022-03-24T17:17:35.000Z | src/gui/button.inl | rochus-keller/nappgui_src | 394875dfc11c9c73cd7995d56f77dcd4629d70b5 | [
"MIT"
] | 9 | 2021-09-09T21:20:49.000Z | 2022-03-22T00:07:56.000Z | src/gui/button.inl | rochus-keller/nappgui_src | 394875dfc11c9c73cd7995d56f77dcd4629d70b5 | [
"MIT"
] | 10 | 2021-11-25T00:15:32.000Z | 2022-01-18T13:46:32.000Z | /*
* NAppGUI Cross-platform C SDK
* 2015-2022 Francisco Garcia Collado
* MIT Licence
* https://nappgui.com/en/legal/license.html
*
* File: button.inl
*
*/
/* Button */
#include "gui.ixx"
__EXTERN_C
void _button_destroy(Button **button);
void _button_dimension(Button *button, const uint32_t i, real32_t *dim... | 19.948718 | 89 | 0.764781 | rochus-keller |
12501e8be48449a43f30eec1e1c1cb8a907c4134 | 127,831 | cpp | C++ | src/htl/GenHifFiles.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | src/htl/GenHifFiles.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | src/htl/GenHifFiles.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | /* Copyright (c) 2015 Convey Computer Corporation
*
* This file is part of the OpenHT toolset located at:
*
* https://github.com/TonyBrewer/OpenHT
*
* Use and distribution licensed under the BSD 3-clause license.
* See the LICENSE file for the complete license text.
*/
#include "CnyHt.h"
#include "DsnInfo.h"
... | 43.85283 | 148 | 0.660708 | TonyBrewer |
125474a20c2750c36dc8fe5fb9ca2775af6d1a97 | 3,021 | cpp | C++ | Surface_mesh_approximation/test/Surface_mesh_approximation/vsa_meshing_manifold_test.cpp | brucerennie/cgal | 314b94aafa9b08a1d086accd2cadff1aae1b57a9 | [
"CC0-1.0"
] | 3,227 | 2015-03-05T00:19:18.000Z | 2022-03-31T08:20:35.000Z | Surface_mesh_approximation/test/Surface_mesh_approximation/vsa_meshing_manifold_test.cpp | brucerennie/cgal | 314b94aafa9b08a1d086accd2cadff1aae1b57a9 | [
"CC0-1.0"
] | 5,574 | 2015-03-05T00:01:56.000Z | 2022-03-31T15:08:11.000Z | Surface_mesh_approximation/test/Surface_mesh_approximation/vsa_meshing_manifold_test.cpp | brucerennie/cgal | 314b94aafa9b08a1d086accd2cadff1aae1b57a9 | [
"CC0-1.0"
] | 1,274 | 2015-03-05T00:01:12.000Z | 2022-03-31T14:47:56.000Z | #include <iostream>
#include <fstream>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Polygon_mesh_processing/remesh.h>
#include <CGAL/Polygon_mesh_processing/repair.h>
#include <CGAL/Variational_shape_approximation.h>
typedef CGAL::Exact_predicates_ine... | 32.138298 | 89 | 0.711023 | brucerennie |
125946a2a1045752901761185643b98079a96e8f | 2,260 | hpp | C++ | rmf_task/include/rmf_task/phases/RestoreBackup.hpp | Rouein/rmf_task | 32de25ff127aed754ca760ef462ef8c3e7dd56a1 | [
"Apache-2.0"
] | null | null | null | rmf_task/include/rmf_task/phases/RestoreBackup.hpp | Rouein/rmf_task | 32de25ff127aed754ca760ef462ef8c3e7dd56a1 | [
"Apache-2.0"
] | null | null | null | rmf_task/include/rmf_task/phases/RestoreBackup.hpp | Rouein/rmf_task | 32de25ff127aed754ca760ef462ef8c3e7dd56a1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* 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 appl... | 27.901235 | 80 | 0.696018 | Rouein |
125e73eac2bbe290091f0fb93e2b1b405c86154c | 3,836 | cpp | C++ | src/http/http_verb.cpp | PascalLG/zinc-cpp | 560d51a6b7ccd60e4dcf3b0fd132a9bb56f72911 | [
"MIT"
] | 1 | 2021-04-07T11:03:57.000Z | 2021-04-07T11:03:57.000Z | src/http/http_verb.cpp | PascalLG/zinc-cpp | 560d51a6b7ccd60e4dcf3b0fd132a9bb56f72911 | [
"MIT"
] | null | null | null | src/http/http_verb.cpp | PascalLG/zinc-cpp | 560d51a6b7ccd60e4dcf3b0fd132a9bb56f72911 | [
"MIT"
] | null | null | null | //========================================================================
// Zinc - Web Server
// Copyright (c) 2019, Pascal Levy
//
// 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 withou... | 40.378947 | 80 | 0.510167 | PascalLG |
126171c273afa3b47221fdf09eac01b47f3f03f8 | 1,538 | hpp | C++ | engine/graphic/shape/shape.hpp | linussjo/linussjo_engine | 6a5db383633ffb99a2e83666e74fe7159d7b0c53 | [
"MIT"
] | null | null | null | engine/graphic/shape/shape.hpp | linussjo/linussjo_engine | 6a5db383633ffb99a2e83666e74fe7159d7b0c53 | [
"MIT"
] | 4 | 2020-02-20T20:16:21.000Z | 2020-07-06T16:36:26.000Z | engine/graphic/shape/shape.hpp | linussjo/linussjo_engine | 6a5db383633ffb99a2e83666e74fe7159d7b0c53 | [
"MIT"
] | null | null | null | //
// Shape.hpp
// linussjo_engine
//
// Created by Linus Sjöström on 2019-09-22.
// Copyright © 2019 Linus Sjöström. All rights reserved.
//
#ifndef shape_hpp
#define shape_hpp
#include <stdio.h>
#include <vector>
#include <limits>
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "point... | 27.464286 | 111 | 0.649545 | linussjo |
126481ce258c53334b3dfb707dfb0f31b87d951c | 8,984 | cpp | C++ | tests/NovelRT.Tests/Ecs/SparseSetMemoryContainerTest.cpp | SmylEFace/NovelRT | 1a5d592c8959b61b7ee8ed91c286633bfd0f51be | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/NovelRT.Tests/Ecs/SparseSetMemoryContainerTest.cpp | SmylEFace/NovelRT | 1a5d592c8959b61b7ee8ed91c286633bfd0f51be | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/NovelRT.Tests/Ecs/SparseSetMemoryContainerTest.cpp | SmylEFace/NovelRT | 1a5d592c8959b61b7ee8ed91c286633bfd0f51be | [
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright © Matt Jones and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root
// for more information.
#include <NovelRT/NovelRT.h>
#include <atomic>
#include <gtest/gtest.h>
using namespace NovelRT;
using namespace NovelRT::Ecs;
TEST(SparseSetMemoryContainerTest, InsertCopi... | 28.702875 | 119 | 0.734305 | SmylEFace |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.