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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3e67bcc99af3578c85899010489b651df0ac53b | 2,162 | hpp | C++ | include/networkit/distance/DynSSSP.hpp | clintg6/networkit | b4cba9a82436cd7ebc139c1a612f593fca9892c6 | [
"MIT"
] | null | null | null | include/networkit/distance/DynSSSP.hpp | clintg6/networkit | b4cba9a82436cd7ebc139c1a612f593fca9892c6 | [
"MIT"
] | null | null | null | include/networkit/distance/DynSSSP.hpp | clintg6/networkit | b4cba9a82436cd7ebc139c1a612f593fca9892c6 | [
"MIT"
] | null | null | null | /*
* DynSSSP.h
*
* Created on: 17.07.2014
* Author: cls, ebergamini
*/
#ifndef DYNSSSP_H_
#define DYNSSSP_H_
#include <set>
#include "../graph/Graph.hpp"
#include "../dynamics/GraphEvent.hpp"
#include "../base/DynAlgorithm.hpp"
#include "SSSP.hpp"
namespace NetworKit {
/**
* @ingroup distance
* Interf... | 24.568182 | 92 | 0.659574 | clintg6 |
f3e67c82fb3151c54498b26c631c0785084c8503 | 3,446 | cpp | C++ | Tools/Buffer.cpp | triplewz/MP-SPDZ | a858e5b440902ec25dbb97c555eef35e12fbf69c | [
"BSD-2-Clause"
] | null | null | null | Tools/Buffer.cpp | triplewz/MP-SPDZ | a858e5b440902ec25dbb97c555eef35e12fbf69c | [
"BSD-2-Clause"
] | null | null | null | Tools/Buffer.cpp | triplewz/MP-SPDZ | a858e5b440902ec25dbb97c555eef35e12fbf69c | [
"BSD-2-Clause"
] | null | null | null | /*
* Buffer.cpp
*
*/
#include "Tools/Buffer.h"
#include "Processor/BaseMachine.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
bool BufferBase::rewind = false;
void BufferBase::setup(ifstream* f, int length, const string& filename,
const char* type, const string& field)
{
file = ... | 22.671053 | 71 | 0.557748 | triplewz |
f3e88d6ebc212dd0b9f2d59a2012d18bcc6122ef | 4,034 | hpp | C++ | include/universal/native/nonconstexpr/msvc_long_double.hpp | Afonso-2403/universal | bddd1489de6476ee60bd45e473b918b6c7a4bce6 | [
"MIT"
] | null | null | null | include/universal/native/nonconstexpr/msvc_long_double.hpp | Afonso-2403/universal | bddd1489de6476ee60bd45e473b918b6c7a4bce6 | [
"MIT"
] | null | null | null | include/universal/native/nonconstexpr/msvc_long_double.hpp | Afonso-2403/universal | bddd1489de6476ee60bd45e473b918b6c7a4bce6 | [
"MIT"
] | null | null | null | #pragma once
// msvc_long_double.hpp: nonconstexpr implementation of IEEE-754 long double manipulators
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#if defined(_MSC_VER)
/* Microsoft Visual St... | 39.940594 | 134 | 0.705007 | Afonso-2403 |
f3e97ec15f36d087a6cd0887de847d2fbd78d8c8 | 5,183 | cpp | C++ | test/tst_buffer_io.cpp | demonatic/Rinx | 6e89150ea1ee22a90534c682e32923a30ed044e8 | [
"MIT"
] | 3 | 2020-05-21T09:23:59.000Z | 2021-03-17T09:17:55.000Z | test/tst_buffer_io.cpp | demonatic/Rinx | 6e89150ea1ee22a90534c682e32923a30ed044e8 | [
"MIT"
] | null | null | null | test/tst_buffer_io.cpp | demonatic/Rinx | 6e89150ea1ee22a90534c682e32923a30ed044e8 | [
"MIT"
] | null | null | null | #ifndef TST_BUFFER_TEST_H
#define TST_BUFFER_TEST_H
#include <gtest/gtest.h>
#include <gmock/gmock-matchers.h>
#include <fstream>
#include "Rinx/Network/Buffer.h"
#include <sys/fcntl.h>
using namespace testing;
using namespace Rinx;
TEST(sock_rw_test, testset)
{
std::unique_ptr<ChainBuffer> buf=ChainBuffer::crea... | 33.224359 | 105 | 0.648466 | demonatic |
f3eb9944fbb633dfa3824ff4a26aadc5fab77b58 | 340 | cpp | C++ | lib/ds/segtree/mergesort-tree/test_merge.cpp | howdepressingitistoloveyou/lib | 42e515ef15914ba6e7c253cdce124944a72bf258 | [
"MIT"
] | null | null | null | lib/ds/segtree/mergesort-tree/test_merge.cpp | howdepressingitistoloveyou/lib | 42e515ef15914ba6e7c253cdce124944a72bf258 | [
"MIT"
] | null | null | null | lib/ds/segtree/mergesort-tree/test_merge.cpp | howdepressingitistoloveyou/lib | 42e515ef15914ba6e7c253cdce124944a72bf258 | [
"MIT"
] | 1 | 2021-09-03T16:52:21.000Z | 2021-09-03T16:52:21.000Z | #include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define pb push_back
using namespace std;
signed main() {
vector<int> a, b, c;
a.pb(1);
b.pb(1), b.pb(2);
// c.resize(3); // this must be added if you don't use back_inserter.
merge(all(a), all(b), back_inserter(c));
for(auto x : c) cout << x << ' ... | 24.285714 | 70 | 0.582353 | howdepressingitistoloveyou |
f3ec49d4b0e4fa3e55eaa4b268809f9449af3c18 | 551 | hpp | C++ | src/node_factory.hpp | ognjen-petrovic/php-dom-ext | 05bbe6b7a9bf68ca8193db7b314c0c542013e5da | [
"MIT"
] | null | null | null | src/node_factory.hpp | ognjen-petrovic/php-dom-ext | 05bbe6b7a9bf68ca8193db7b314c0c542013e5da | [
"MIT"
] | null | null | null | src/node_factory.hpp | ognjen-petrovic/php-dom-ext | 05bbe6b7a9bf68ca8193db7b314c0c542013e5da | [
"MIT"
] | null | null | null | #include <phpcpp.h>
#include "pugixml.hpp"
//#include "pugixml.cpp"
#ifndef NODE_FACTORY
#define NODE_FACTORY
bool strequal(const pugi::char_t* src, const pugi::char_t* dst)
{
#ifdef PUGIXML_WCHAR_MODE
return wcscmp(src, dst) == 0;
#else
return strcmp(src, dst) == 0;
#endif
}
Php::Value node_... | 22.958333 | 73 | 0.647913 | ognjen-petrovic |
f3ece83b18ff39229de524cae9fb2cace09dabef | 986 | cc | C++ | below2.1/zyxab.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/zyxab.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/zyxab.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
bool bsort(string &s1, string &s2){
if(s1.length() == s2.length()){
return s1>s2;
}
else{
return s1.length()<s2.length();
}
}
int main(){
vector<string> v;
int n;
cin>>n;
string candidate;
... | 20.541667 | 54 | 0.471602 | danzel-py |
f3ede1ed5b999e6ae408fe157e70f55f248fcfd7 | 7,268 | cpp | C++ | src/serac/numerics/functional/tests/functional_nonlinear.cpp | btalamini/serac | f7a1628d05393a3f5efce4d1808a0c3fde9bf188 | [
"BSD-3-Clause"
] | null | null | null | src/serac/numerics/functional/tests/functional_nonlinear.cpp | btalamini/serac | f7a1628d05393a3f5efce4d1808a0c3fde9bf188 | [
"BSD-3-Clause"
] | null | null | null | src/serac/numerics/functional/tests/functional_nonlinear.cpp | btalamini/serac | f7a1628d05393a3f5efce4d1808a0c3fde9bf188 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019-2022, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include <fstream>
#include <iostream>
#include "mfem.hpp"
#include "axom/slic/core/SimpleLogger.hpp"
#include "ser... | 33.493088 | 108 | 0.670748 | btalamini |
f3eef3469ce58ce780b152041761496e9ece5d99 | 4,988 | cpp | C++ | packages/monte_carlo/core/test/tstBremsstrahlungAngularDistributionType.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/core/test/tstBremsstrahlungAngularDistributionType.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/core/test/tstBremsstrahlungAngularDistributionType.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstBremsstrahlungAngularDistributionType.cpp
//! \author Luke Kersting
//! \brief Bremsstrahlung angular distribution type helper unit tests
//!
//---------------------------------------------------------------------------/... | 36.144928 | 85 | 0.630914 | bam241 |
f3ef1c968b13df9f7ddc6c0bf75a5aa51cd703a9 | 582 | cc | C++ | test/aoc15_d08_unittest.cc | dombalaz/aoc15 | ea7e9f1ae18d9d32a43064e53bf6addbf8ef5fb2 | [
"MIT"
] | 1 | 2020-05-15T08:08:52.000Z | 2020-05-15T08:08:52.000Z | test/aoc15_d08_unittest.cc | dombalaz/aoc15 | ea7e9f1ae18d9d32a43064e53bf6addbf8ef5fb2 | [
"MIT"
] | null | null | null | test/aoc15_d08_unittest.cc | dombalaz/aoc15 | ea7e9f1ae18d9d32a43064e53bf6addbf8ef5fb2 | [
"MIT"
] | null | null | null | #include <aoc15/d08.h>
#include <gtest/gtest.h>
TEST(Day08_Part1_Test, CountCharacters)
{
EXPECT_EQ(countCharacters(R"("")"), 0);
EXPECT_EQ(countCharacters(R"("abc")"), 3);
EXPECT_EQ(countCharacters(R"("aaa\"aaa")"), 7);
EXPECT_EQ(countCharacters(R"("\x27")"), 1);
}
TEST(Day08_Part2_Test, CountEncoded... | 27.714286 | 54 | 0.647766 | dombalaz |
f3fbf56366e9266d5991803876625d605fce1d7c | 6,499 | hpp | C++ | include/ironbeepp/memory_manager.hpp | b1v1r/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 148 | 2015-01-10T01:53:39.000Z | 2022-03-20T20:48:12.000Z | include/ironbeepp/memory_manager.hpp | ErikHendriks/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 8 | 2015-03-09T15:50:36.000Z | 2020-10-10T19:23:06.000Z | include/ironbeepp/memory_manager.hpp | ErikHendriks/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 46 | 2015-03-08T22:45:42.000Z | 2022-01-15T13:47:59.000Z | /*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... | 27.538136 | 78 | 0.646099 | b1v1r |
f3fc312ad3cc270061698b8eb6ae6ee69113b0aa | 36,812 | cpp | C++ | source/timemory/variadic/bundle.cpp | pwm1234-sri/timemory | b804c8ab242baaa9546f3e74a568438896233d71 | [
"MIT"
] | 1 | 2021-04-21T13:08:27.000Z | 2021-04-21T13:08:27.000Z | source/timemory/variadic/bundle.cpp | hewhocannotbetamed/timemory | d84ccb79cb452f710917d3fa8c17a5ecf3a07406 | [
"MIT"
] | 1 | 2020-10-30T03:44:18.000Z | 2020-11-05T22:07:19.000Z | source/timemory/variadic/bundle.cpp | hewhocannotbetamed/timemory | d84ccb79cb452f710917d3fa8c17a5ecf3a07406 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2020, The Regents of the University of California,
// through Lawrence Berkeley National Laboratory (subject to receipt of any
// required approvals from the U.S. Dept. of Energy). All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy... | 36.196657 | 90 | 0.565984 | pwm1234-sri |
f3fe2b4b5fd7e95a5d7b392eaa77f58de2c7ba18 | 3,592 | cpp | C++ | source/converters/KSampleRateConverter.cpp | grae22/WavConverter | 6f4f244cc5a12a215bf673f68572217012871ac1 | [
"MIT"
] | null | null | null | source/converters/KSampleRateConverter.cpp | grae22/WavConverter | 6f4f244cc5a12a215bf673f68572217012871ac1 | [
"MIT"
] | null | null | null | source/converters/KSampleRateConverter.cpp | grae22/WavConverter | 6f4f244cc5a12a215bf673f68572217012871ac1 | [
"MIT"
] | null | null | null | #include "KSampleRateConverter.h"
#include "../KWav.h"
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
//-----------------------------------------------------------------------------
using namespace std;
using namespace boost;
//---------------------------------------------------------------... | 23.025641 | 84 | 0.518653 | grae22 |
6d03f8eb5f1b093fbc45d7a4bfb14ea93cb945ee | 971 | cpp | C++ | graph-source-code/218-C/2025530.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/218-C/2025530.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/218-C/2025530.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<string>
#include<vector>
#include<queue>
#include<algorithm>
using namespace std;
int n;
int g[101][101];
int cx[101][2];
int vis[101];
void dfs(int node) {
if (vis[node]) {
return;
}
vis[node] = 1;
fo... | 16.741379 | 44 | 0.421215 | AmrARaouf |
6d0646f2186224ae7de4b51b96e199a0f056c0cd | 676 | cpp | C++ | spoj/ACODE.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | 5 | 2020-06-30T12:44:25.000Z | 2021-07-14T06:35:57.000Z | spoj/ACODE.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | null | null | null | spoj/ACODE.cpp | amitdu6ey/Online-Judge-Submissions | 9585aec29228211454bca5cf1d5738f49fb0aa8f | [
"MIT"
] | null | null | null | // [amitdu6ey]
// g++ -std=c++11 -o2 -Wall filename.cpp -o filename
#include <bits/stdc++.h>
#define ll long long
using namespace std;
void solve(string a){
ll n = a.length();
vector<ll> dp(n,0);
dp[0]=1;
ll num = (a[0]-'0')*10 + (a[1]-'0');
if(num<=26) dp[1]=2;
else dp[1]=1;
fo... | 17.333333 | 52 | 0.412722 | amitdu6ey |
6d06aceaae3b230b1decc93386971c1e41640ef5 | 6,903 | cpp | C++ | taichi/analysis/value_diff.cpp | Robslhc/taichi | a4279bd8e1aa6b7d0d269ff909773d333fab5daa | [
"MIT"
] | 1 | 2022-01-12T18:40:59.000Z | 2022-01-12T18:40:59.000Z | taichi/analysis/value_diff.cpp | isuyu/taichi | e5f439b916b2c9f41e4d096072811e06a85237e6 | [
"MIT"
] | null | null | null | taichi/analysis/value_diff.cpp | isuyu/taichi | e5f439b916b2c9f41e4d096072811e06a85237e6 | [
"MIT"
] | null | null | null | // This pass analyzes compile-time known offsets for two values.
#include "taichi/ir/ir.h"
#include "taichi/ir/analysis.h"
#include "taichi/ir/statements.h"
#include "taichi/ir/visitors.h"
namespace taichi {
namespace lang {
DiffRange operator+(const DiffRange &a, const DiffRange &b) {
return DiffRange(a.related_(... | 32.71564 | 80 | 0.619151 | Robslhc |
6d0ac3633bd5c1cb058c75634d40e5333fa56d80 | 529 | cpp | C++ | example/src/block-array-test.cpp | dangleptr/autotest | 512e8f3bb0b38c64c55587e5f632e3fee5517dcb | [
"MIT"
] | null | null | null | example/src/block-array-test.cpp | dangleptr/autotest | 512e8f3bb0b38c64c55587e5f632e3fee5517dcb | [
"MIT"
] | null | null | null | example/src/block-array-test.cpp | dangleptr/autotest | 512e8f3bb0b38c64c55587e5f632e3fee5517dcb | [
"MIT"
] | null | null | null | #include "autotest/autotest.hpp"
#include "block-array.hpp"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
auto not_empty = [](auto const& self) { return self.size() > 0; };
AutoTest::Interface<block_array<int>>(data, size)
.AUTOTEST_FUN(emplace_back, AutoTest::Args::integral... | 35.266667 | 73 | 0.676749 | dangleptr |
6d16e60d7d5b02cc25995ed0b62b0b5d4622a4ed | 5,951 | cpp | C++ | rts-master/Chapter16/Example 16.1/GroupAI.cpp | ericrrichards/rts | 88efe082518434cad97264d9ebd3538004c98cc3 | [
"MIT"
] | 4 | 2015-08-09T17:59:49.000Z | 2019-09-19T10:38:21.000Z | rts-master/Chapter16/Example 16.1/GroupAI.cpp | ericrrichards/rts | 88efe082518434cad97264d9ebd3538004c98cc3 | [
"MIT"
] | null | null | null | rts-master/Chapter16/Example 16.1/GroupAI.cpp | ericrrichards/rts | 88efe082518434cad97264d9ebd3538004c98cc3 | [
"MIT"
] | null | null | null | #include "groupAI.h"
#include "masterAI.h"
#include "strategyMap.h"
GROUPAI::GROUPAI(MASTERAI *_master)
{
m_pMaster = _master;
m_task = TASK_NONE;
m_state = GROUP_STATE_IDLE;
}
GROUPAI::~GROUPAI()
{
//Reset group pointer for all group members
for(int i=0;i<(int)m_members.size();i++)
m_members[i]->m_pGroup = NU... | 20.172881 | 83 | 0.641909 | ericrrichards |
6d178b2f8e06b4ac5e86ffec9d4234ff02d079d9 | 1,307 | hpp | C++ | d_mk66f18/sys_pitmgr_port.hpp | beforelight/HITSIC_Module | 5066d6eeed70b36564b52d2da7c5acd752589996 | [
"Apache-2.0"
] | null | null | null | d_mk66f18/sys_pitmgr_port.hpp | beforelight/HITSIC_Module | 5066d6eeed70b36564b52d2da7c5acd752589996 | [
"Apache-2.0"
] | null | null | null | d_mk66f18/sys_pitmgr_port.hpp | beforelight/HITSIC_Module | 5066d6eeed70b36564b52d2da7c5acd752589996 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2018 - 2020 HITSIC
* 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... | 26.14 | 75 | 0.750574 | beforelight |
6d19bab8ce7599902baa33d7fccc019277b2e1df | 7,420 | cpp | C++ | plugins/datatools/src/AbstractVolumeManipulator.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | plugins/datatools/src/AbstractVolumeManipulator.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | plugins/datatools/src/AbstractVolumeManipulator.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* AbstractParticleManipulator.cpp
*
* Copyright (C) 2014 by S. Grottel
* Alle Rechte vorbehalten.
*/
#include "datatools/AbstractVolumeManipulator.h"
#include "datatools/AbstractParticleManipulator.h"
#include "stdafx.h"
using namespace megamol;
/*
* datatools::AbstractVolumeManipulator::AbstractVolumeManip... | 30.409836 | 114 | 0.710916 | masrice |
6d1c3753827761215725e5f7eb256faaede4c48b | 2,648 | hpp | C++ | externals/boost/boost/mp11/integer_sequence.hpp | YuukiTsuchida/v8_embeded | c6e18f4e91fcc50607f8e3edc745a3afa30b2871 | [
"MIT"
] | 32 | 2019-02-27T06:57:07.000Z | 2021-08-29T10:56:19.000Z | jeff/common/include/boost/mp11/integer_sequence.hpp | jeffphi/advent-of-code-2018 | 8e54bd23ebfe42fcbede315f0ab85db903551532 | [
"MIT"
] | 1 | 2019-04-04T18:00:00.000Z | 2019-04-04T18:00:00.000Z | jeff/common/include/boost/mp11/integer_sequence.hpp | jeffphi/advent-of-code-2018 | 8e54bd23ebfe42fcbede315f0ab85db903551532 | [
"MIT"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z | #ifndef BOOST_MP11_INTEGER_SEQUENCE_HPP_INCLUDED
#define BOOST_MP11_INTEGER_SEQUENCE_HPP_INCLUDED
// Copyright 2015, 2017 Peter Dimov.
//
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include ... | 27.020408 | 207 | 0.700529 | YuukiTsuchida |
6d20302abcf543bd467f31bb85dd72192c36da0b | 1,634 | cpp | C++ | src/database/query.cpp | Natureshadow/biboumi | b70136b96e579e8d38a30a298f885899cb80514c | [
"Zlib"
] | null | null | null | src/database/query.cpp | Natureshadow/biboumi | b70136b96e579e8d38a30a298f885899cb80514c | [
"Zlib"
] | null | null | null | src/database/query.cpp | Natureshadow/biboumi | b70136b96e579e8d38a30a298f885899cb80514c | [
"Zlib"
] | null | null | null | #include <database/query.hpp>
#include <database/column.hpp>
void actual_bind(Statement& statement, const std::string& value, int index)
{
statement.bind_text(index, value);
}
void actual_bind(Statement& statement, const std::int64_t& value, int index)
{
statement.bind_int64(index, value);
}
void actual_bind(Sta... | 24.029412 | 111 | 0.717258 | Natureshadow |
6d207c8c722c994b0bc81c92cda7fdf4da90ff86 | 35,776 | hpp | C++ | hpx/runtime/parcelset/parcelport_impl.hpp | alexmyczko/hpx | fd68e000ead9a03a6b5bad49cf4905df1c0b78c4 | [
"BSL-1.0"
] | null | null | null | hpx/runtime/parcelset/parcelport_impl.hpp | alexmyczko/hpx | fd68e000ead9a03a6b5bad49cf4905df1c0b78c4 | [
"BSL-1.0"
] | null | null | null | hpx/runtime/parcelset/parcelport_impl.hpp | alexmyczko/hpx | fd68e000ead9a03a6b5bad49cf4905df1c0b78c4 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2014 Thomas Heller
// Copyright (c) 2007-2017 Hartmut Kaiser
// Copyright (c) 2007 Richard D Guidry Jr
// Copyright (c) 2011 Bryce Lelbach
// Copyright (c) 2011 Katelyn Kufahl
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at ht... | 36.618219 | 89 | 0.533654 | alexmyczko |
6d2465d0efe5b9113ec836f5c9e53fcc61452b23 | 264 | hpp | C++ | PP/get_reference.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | 3 | 2019-07-12T23:12:24.000Z | 2019-09-05T07:57:45.000Z | PP/get_reference.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | PP/get_reference.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | #pragma once
#include <PP/compose.hpp>
#include <PP/decompose_reference.hpp>
#include <PP/partial_.hpp>
#include <PP/tuple/get.hpp>
#include <PP/value_t.hpp>
namespace PP
{
PP_CIA get_reference_value_t =
compose(tuple::get_ * value_1, decompose_reference);
}
| 20.307692 | 56 | 0.753788 | Petkr |
6d2a001de6472f9134ae5cbebca6307c4c9ba458 | 3,490 | hh | C++ | src/kafka/producer/sender.hh | avelanarius/seastar | d56ec0b618d42b4b9c9dc4839fbd369ae845a94c | [
"Apache-2.0"
] | null | null | null | src/kafka/producer/sender.hh | avelanarius/seastar | d56ec0b618d42b4b9c9dc4839fbd369ae845a94c | [
"Apache-2.0"
] | 7 | 2019-11-19T14:43:39.000Z | 2019-12-14T19:00:49.000Z | src/kafka/producer/sender.hh | avelanarius/seastar | d56ec0b618d42b4b9c9dc4839fbd369ae845a94c | [
"Apache-2.0"
] | null | null | null | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | 32.616822 | 144 | 0.747564 | avelanarius |
6d2a0d2b2454d2367f2147651a84a89fc5b9cee8 | 1,073 | cpp | C++ | aws-cpp-sdk-chime-sdk-identity/source/model/AppInstanceAdminSummary.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-chime-sdk-identity/source/model/AppInstanceAdminSummary.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-chime-sdk-identity/source/model/AppInstanceAdminSummary.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime-sdk-identity/model/AppInstanceAdminSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
na... | 17.883333 | 80 | 0.738117 | perfectrecall |
6d3107231683ec5f6d062acf9605124fe7fd3a90 | 3,682 | cpp | C++ | source/QtWidgets/QDockWidgetSlots.cpp | orangesocks/Qt5xHb | 03aa383d9ae86cdadf7289d846018f8a3382a0e4 | [
"MIT"
] | 11 | 2017-01-30T14:19:11.000Z | 2020-05-30T13:39:16.000Z | source/QtWidgets/QDockWidgetSlots.cpp | orangesocks/Qt5xHb | 03aa383d9ae86cdadf7289d846018f8a3382a0e4 | [
"MIT"
] | 1 | 2017-02-24T20:57:32.000Z | 2018-05-29T13:43:05.000Z | source/QtWidgets/QDockWidgetSlots.cpp | orangesocks/Qt5xHb | 03aa383d9ae86cdadf7289d846018f8a3382a0e4 | [
"MIT"
] | 5 | 2017-01-30T14:19:12.000Z | 2020-03-28T08:54:56.000Z | /*
Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5
Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com>
*/
/*
DO NOT EDIT THIS FILE - the content was created using a source code generator
*/
#include "QDockWidgetSlots.h"
QDockWidgetSlots::QDockWidget... | 27.274074 | 112 | 0.675177 | orangesocks |
6d34945156d4bd4e8bd74aada0659eea2f18e525 | 667 | cpp | C++ | GFG/C++ BASIC/2 - Flow Control, Function & Loops/greatest_of_three_numbers.cpp | IamBikramPurkait/My-CP-Journey | bbb7fc533b8bcf79367e3f38f4a04de075b43d64 | [
"MIT"
] | 1 | 2021-04-24T03:39:50.000Z | 2021-04-24T03:39:50.000Z | GFG/C++ BASIC/2 - Flow Control, Function & Loops/greatest_of_three_numbers.cpp | IamBikramPurkait/My-CP-Journey | bbb7fc533b8bcf79367e3f38f4a04de075b43d64 | [
"MIT"
] | null | null | null | GFG/C++ BASIC/2 - Flow Control, Function & Loops/greatest_of_three_numbers.cpp | IamBikramPurkait/My-CP-Journey | bbb7fc533b8bcf79367e3f38f4a04de075b43d64 | [
"MIT"
] | null | null | null | // { Driver Code Starts
// Initial Template for C++
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
// User function Template for C++
class Solution
{
public:
int greatestOfThree(int A, int B, int C)
{
// code here
if (A >= B && A >= C)
return A;
else i... | 17.552632 | 52 | 0.461769 | IamBikramPurkait |
6d360634015d5508c9e38ee1038f858c75995d50 | 15,342 | cpp | C++ | plugins/Soccer.cpp | cgrebeld/opensteerpy | 25adfc50bed808d516ab30656d4a86634f70c532 | [
"MIT"
] | 3 | 2015-02-22T02:27:53.000Z | 2019-06-25T21:05:31.000Z | plugins/Soccer.cpp | onedayitwillmake/OpenSteerMirror | 51a614bb5c62ff7e02514e55a7148cd4d67c67a1 | [
"Unlicense",
"MIT"
] | null | null | null | plugins/Soccer.cpp | onedayitwillmake/OpenSteerMirror | 51a614bb5c62ff7e02514e55a7148cd4d67c67a1 | [
"Unlicense",
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------
//
//
// 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
// t... | 38.069479 | 214 | 0.529396 | cgrebeld |
6d36bdd4bf9a0f2e4ee14702f044fb82b7d4506e | 2,977 | cpp | C++ | dev/sample/async_handling_with_sobjectizer/main.cpp | Lord-Kamina/restinio | 00133ac4154626ec094697370d2dbe4ce01727f8 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | dev/sample/async_handling_with_sobjectizer/main.cpp | Lord-Kamina/restinio | 00133ac4154626ec094697370d2dbe4ce01727f8 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | dev/sample/async_handling_with_sobjectizer/main.cpp | Lord-Kamina/restinio | 00133ac4154626ec094697370d2dbe4ce01727f8 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | #include <type_traits>
#include <iostream>
#include <chrono>
#include <args.hxx>
#include <restinio/all.hpp>
#include <restinio/so5/so_timer_manager.hpp>
// Application agents.
#include "app.hpp"
//
// app_args_t
//
struct app_args_t
{
bool m_help{ false };
std::uint16_t m_port{ 8080 };
app_args_t( int argc, c... | 20.531034 | 78 | 0.62479 | Lord-Kamina |
6d37688c8db2a51bbb0af460475a4f8ff2466522 | 67,948 | cpp | C++ | src/xalanc/XMLSupport/FormatterToHTML.cpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | src/xalanc/XMLSupport/FormatterToHTML.cpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | src/xalanc/XMLSupport/FormatterToHTML.cpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 1999-2004 The Apache Software 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 requir... | 43.809155 | 244 | 0.726188 | rherardi |
6d3b60c12bc2326a95a50dde0243f199138ddbb1 | 2,443 | hpp | C++ | modules/boost/simd/base/include/boost/simd/operator/functions/is_greater.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/include/boost/simd/operator/functions/is_greater.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/include/boost/simd/operator/functions/is_greater.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 30.160494 | 178 | 0.635694 | psiha |
6d3cb8363b08e7cbf9a8818f7808855beb034a8a | 1,983 | cpp | C++ | examples/wifi-echo/server/esp32/main/Ble.cpp | balducci-apple/connectedhomeip | d5cbe865ee53557330941a3c4c243f40c3c7b400 | [
"Apache-2.0"
] | null | null | null | examples/wifi-echo/server/esp32/main/Ble.cpp | balducci-apple/connectedhomeip | d5cbe865ee53557330941a3c4c243f40c3c7b400 | [
"Apache-2.0"
] | null | null | null | examples/wifi-echo/server/esp32/main/Ble.cpp | balducci-apple/connectedhomeip | d5cbe865ee53557330941a3c4c243f40c3c7b400 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright (c) 2020 Project CHIP 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 requir... | 28.73913 | 88 | 0.741301 | balducci-apple |
6d3f519baf12a7be77605eccd3aea5fb1c13ef70 | 196 | hpp | C++ | src/geodesy.hpp | xanthospap/ngpt | fa445c5c21e657dda8c47bbbe0a6f1bf1aa45867 | [
"WTFPL"
] | null | null | null | src/geodesy.hpp | xanthospap/ngpt | fa445c5c21e657dda8c47bbbe0a6f1bf1aa45867 | [
"WTFPL"
] | 2 | 2016-01-19T13:42:14.000Z | 2016-01-29T19:00:05.000Z | src/geodesy.hpp | xanthospap/ngpt | fa445c5c21e657dda8c47bbbe0a6f1bf1aa45867 | [
"WTFPL"
] | 3 | 2019-06-01T03:53:41.000Z | 2020-09-21T10:48:08.000Z | #ifndef __GEODESY__
#define __GEODESY__
#include "geoconst.hpp"
namespace ngpt {
void
top2daz(double, double, double,
double&, double&, double&);
} // end namespace geodesy
#endif
| 13.066667 | 35 | 0.693878 | xanthospap |
6d3f9821022fc55e86145ed1fd3bb71e0e9165f0 | 3,616 | cpp | C++ | src/Coal/System/Task.cpp | janitochvvll2311/Coal | 6ed6ba6b058e35c66cbef41552e3106589535b92 | [
"Unlicense"
] | 3 | 2021-12-26T21:41:33.000Z | 2022-03-29T22:33:04.000Z | src/Coal/System/Task.cpp | janitochvvll2311/Coal | 6ed6ba6b058e35c66cbef41552e3106589535b92 | [
"Unlicense"
] | 21 | 2022-03-29T02:51:39.000Z | 2022-03-31T03:38:25.000Z | src/Coal/System/Task.cpp | janitochvvll2311/Coal | 6ed6ba6b058e35c66cbef41552e3106589535b92 | [
"Unlicense"
] | null | null | null | /**
* @file Task.cpp
* @author Juan Jesus Chavez Villa (janitochvvll2311@gmail.com)
* @brief Implementation of Task
* @version 0.1.0
* @date 2022-04-20
*
* @copyright Copyright (c) 2022
*
*/
// Headers
#include <iostream> // To include std::cerr
#include <Coal/System/Task.hpp> // Main header
name... | 26.202899 | 85 | 0.423119 | janitochvvll2311 |
6d3fc078a65aa3e76cff89adf66bb7fe48da9e19 | 128 | hxx | C++ | src/Providers/UNIXProviders/ConcreteComponent/UNIX_ConcreteComponent_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/ConcreteComponent/UNIX_ConcreteComponent_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/ConcreteComponent/UNIX_ConcreteComponent_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_ZOS
#ifndef __UNIX_CONCRETECOMPONENT_PRIVATE_H
#define __UNIX_CONCRETECOMPONENT_PRIVATE_H
#endif
#endif
| 10.666667 | 42 | 0.851563 | brunolauze |
6d3ff64edc97c8bd05e8ad5a464a1c5e8271698f | 1,046 | cc | C++ | Array_List/907.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Array_List/907.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Array_List/907.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | //https://leetcode.com/problems/sum-of-subarray-minimums/discuss/170750/JavaC%2B%2BPython-Stack-Solution
class Solution {
public:
int mod = 1e9+7;
int sumSubarrayMins(vector<int>& arr) {
int n = arr.size();
stack<pair<int,int>> left,right;
vector<int> l(n),r(n);
int coun... | 28.27027 | 104 | 0.427342 | guohaoqiang |
6d43584669ca23af0ba9c0ef635f617278e4d18e | 29,210 | cpp | C++ | sh1106.cpp | insightmachineslab/IndustrialAlarmClock | 65210b7e2c4e6ae328c9792c153de06b9ba379bd | [
"Apache-2.0"
] | null | null | null | sh1106.cpp | insightmachineslab/IndustrialAlarmClock | 65210b7e2c4e6ae328c9792c153de06b9ba379bd | [
"Apache-2.0"
] | null | null | null | sh1106.cpp | insightmachineslab/IndustrialAlarmClock | 65210b7e2c4e6ae328c9792c153de06b9ba379bd | [
"Apache-2.0"
] | null | null | null | /**
******************************************************************************
* @file sh1106.c
* @author Waveshare Team
* @version
* @date 21-June-2017
* @brief This file includes the OLED driver for SH1106 display moudle
********************************************************************... | 56.718447 | 113 | 0.649127 | insightmachineslab |
6d463322ab6406de9710253ff10e0f8bdc90c5d8 | 675 | cpp | C++ | DAY-2/ModularMultiplicativeInverse.cpp | varshitha1707/DailyCoding | d8a974cf5742cc1a77d638eb188012bb32f31d5f | [
"MIT"
] | 5 | 2021-02-09T08:03:25.000Z | 2021-06-27T15:29:11.000Z | DAY-2/ModularMultiplicativeInverse.cpp | varshitha1707/DailyCoding | d8a974cf5742cc1a77d638eb188012bb32f31d5f | [
"MIT"
] | null | null | null | DAY-2/ModularMultiplicativeInverse.cpp | varshitha1707/DailyCoding | d8a974cf5742cc1a77d638eb188012bb32f31d5f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int gcd(int a, int m)
{
if (a == 0)
return m;
if (m == 0)
return a;
if (a == m)
return a;
if (a > m)
return gcd(a-m, m);
return gcd(a, m-a);
}
void mulinv(int x, int a, int m )
{
for(int x=1; x<m;x++)
{
i... | 12.735849 | 78 | 0.402963 | varshitha1707 |
6d47c266848604e7ceed273a72119895cf29648d | 523 | cpp | C++ | Ejercicios/Ejercicio6 - Calculadora/calculadora.cpp | YerlinSarabia/cpp | 8bd4ab4eb04f7891878d324e45b1b4d76851db12 | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio6 - Calculadora/calculadora.cpp | YerlinSarabia/cpp | 8bd4ab4eb04f7891878d324e45b1b4d76851db12 | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio6 - Calculadora/calculadora.cpp | YerlinSarabia/cpp | 8bd4ab4eb04f7891878d324e45b1b4d76851db12 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char** argv) {
int a=0, b=0;
int suma, multiplicacion, resta, division;
cout << "Ingrese el valor de a: "<<endl;
cin >> a;
cout << "Ingrese el valor de b: "<<endl;
cin >>b;
suma = a+b;
resta = a-b;
multiplicacion = a*b;
division = a/b;
... | 19.37037 | 58 | 0.590822 | YerlinSarabia |
6d47fe5bd0305973800416890dbed87618429372 | 565 | hpp | C++ | include/crocoddyl/multibody/costs/frame-force.hpp | iit-DLSLab/crocoddyl | 2b8b731fae036916ff9b4ce3969e2c96c009593c | [
"BSD-3-Clause"
] | 1 | 2019-12-21T12:11:15.000Z | 2019-12-21T12:11:15.000Z | include/crocoddyl/multibody/costs/frame-force.hpp | iit-DLSLab/crocoddyl | 2b8b731fae036916ff9b4ce3969e2c96c009593c | [
"BSD-3-Clause"
] | null | null | null | include/crocoddyl/multibody/costs/frame-force.hpp | iit-DLSLab/crocoddyl | 2b8b731fae036916ff9b4ce3969e2c96c009593c | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2018-2019, LAAS-CNRS
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#... | 35.3125 | 79 | 0.589381 | iit-DLSLab |
6d4892181db2d59362f48d488d95d100aeee3bcc | 7,777 | cc | C++ | test/libponyc/codegen.cc | rtpax/ponyc | 5af6626fcc894ef201bebfac712c454e6c8b14c9 | [
"BSD-2-Clause"
] | 4,304 | 2016-02-01T14:46:51.000Z | 2022-03-29T15:17:15.000Z | test/libponyc/codegen.cc | rtpax/ponyc | 5af6626fcc894ef201bebfac712c454e6c8b14c9 | [
"BSD-2-Clause"
] | 2,889 | 2016-02-01T11:11:07.000Z | 2022-03-31T20:59:39.000Z | test/libponyc/codegen.cc | rtpax/ponyc | 5af6626fcc894ef201bebfac712c454e6c8b14c9 | [
"BSD-2-Clause"
] | 534 | 2016-02-01T12:42:45.000Z | 2022-03-22T16:45:45.000Z | #include <gtest/gtest.h>
#include <platform.h>
#include <codegen/gentype.h>
#include <../libponyrt/mem/pool.h>
#include "util.h"
#include "llvm_config_begin.h"
#include <llvm/IR/Constants.h>
#include <llvm/IR/Module.h>
#include "llvm_config_end.h"
#define TEST_COMPILE(src) DO(test_compile(src, "ir"))
class Code... | 20.738667 | 80 | 0.593545 | rtpax |
6d4925357d9def9813dcafdcaf6fcfed4bf66cf6 | 4,635 | cc | C++ | modules/image/plugin/PiiImageUnwarpOperation.cc | topiolli/into | f0a47736f5c93dd32e89e7aad34152ae1afc5583 | [
"BSD-3-Clause"
] | 14 | 2015-01-19T22:14:18.000Z | 2020-04-13T23:27:20.000Z | modules/image/plugin/PiiImageUnwarpOperation.cc | topiolli/into | f0a47736f5c93dd32e89e7aad34152ae1afc5583 | [
"BSD-3-Clause"
] | null | null | null | modules/image/plugin/PiiImageUnwarpOperation.cc | topiolli/into | f0a47736f5c93dd32e89e7aad34152ae1afc5583 | [
"BSD-3-Clause"
] | 14 | 2015-01-16T05:43:15.000Z | 2019-01-29T07:57:11.000Z | /* This file is part of Into.
* Copyright (C) Intopii 2013.
* All rights reserved.
*
* Licensees holding a commercial Into license may use this file in
* accordance with the commercial license agreement. Please see
* LICENSE.commercial for commercial licensing terms.
*
* Alternatively, this file may be used und... | 37.682927 | 114 | 0.681122 | topiolli |
6d5370dd199822da8fadcae3abb189f104d0662a | 17,003 | cpp | C++ | GameJam_v3.2/GameEngineBase/gameObject.cpp | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | GameJam_v3.2/GameEngineBase/gameObject.cpp | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | GameJam_v3.2/GameEngineBase/gameObject.cpp | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | #include "GameObject.h"
#include "softBodyComp.h"
#include "mediator.h"
#include "global.h"
#include <Physics2012\Vehicle\DriverInput\Default\hkpVehicleDefaultAnalogDriverInput.h>
// Initial value of the first GameObject ID
// (i.e. the unique IDs of the objects will start at this number)
// Note that using an unsi... | 20.760684 | 164 | 0.646651 | aditgoyal19 |
6d597710504dec39fcaed7e950a718051844f5a1 | 1,473 | cpp | C++ | EU4toV2/Source/Mappers/RegionProvinces/RegionProvinceMapper.cpp | AquosPoke206/EU4toVic2 | 1aa8dc815f118dce231d09f050464c75d6925f02 | [
"MIT"
] | 1 | 2020-10-03T16:01:28.000Z | 2020-10-03T16:01:28.000Z | EU4toV2/Source/Mappers/RegionProvinces/RegionProvinceMapper.cpp | AquosPoke206/EU4toVic2 | 1aa8dc815f118dce231d09f050464c75d6925f02 | [
"MIT"
] | null | null | null | EU4toV2/Source/Mappers/RegionProvinces/RegionProvinceMapper.cpp | AquosPoke206/EU4toVic2 | 1aa8dc815f118dce231d09f050464c75d6925f02 | [
"MIT"
] | null | null | null | #include "RegionProvinceMapper.h"
#include "../../Configuration.h"
#include "OSCompatibilityLayer.h"
#include "ParserHelpers.h"
mappers::RegionProvinceMapper::RegionProvinceMapper()
{
registerKeys();
if (commonItems::DoesFileExist("./blankMod/output/map/region.txt"))
{
parseFile("./blankMod/output/map/region.txt"... | 29.46 | 101 | 0.746096 | AquosPoke206 |
6d59f3426564f9a5a2b072fb47e02138c5597634 | 1,743 | hpp | C++ | src/impl/operators/crossover/vector_based/one_point_crossover.hpp | dominiksisejkovic/OpenECL | de3356cb9bfbe3b6545cc9eeaccc04705330eaf7 | [
"MIT"
] | null | null | null | src/impl/operators/crossover/vector_based/one_point_crossover.hpp | dominiksisejkovic/OpenECL | de3356cb9bfbe3b6545cc9eeaccc04705330eaf7 | [
"MIT"
] | null | null | null | src/impl/operators/crossover/vector_based/one_point_crossover.hpp | dominiksisejkovic/OpenECL | de3356cb9bfbe3b6545cc9eeaccc04705330eaf7 | [
"MIT"
] | null | null | null | // (c) 2020 Dominik Šišejković
// This code is licensed under the MIT license (see LICENSE.txt for details)
#ifndef OPEN_ECL_ONE_POINT_CROSSOVER_HPP
#define OPEN_ECL_ONE_POINT_CROSSOVER_HPP
#include "../../../../utils/random_utils.hpp"
#include "../../../../model/operators/i_crossover.hpp"
#include "solutions/vector_... | 37.085106 | 112 | 0.667814 | dominiksisejkovic |
6d59fa899d15e722a2844e4b7656b2c2494a76ef | 20,336 | cpp | C++ | tracking/src/tracking_lib/ukf.cpp | hywel1994/SARosPerceptionKitti | 82c307facb5b39e47c510fbdb132962cebf09d2e | [
"MIT"
] | null | null | null | tracking/src/tracking_lib/ukf.cpp | hywel1994/SARosPerceptionKitti | 82c307facb5b39e47c510fbdb132962cebf09d2e | [
"MIT"
] | null | null | null | tracking/src/tracking_lib/ukf.cpp | hywel1994/SARosPerceptionKitti | 82c307facb5b39e47c510fbdb132962cebf09d2e | [
"MIT"
] | null | null | null | /******************************************************************************
*
* Author: Simon Appel (simonappel62@gmail.com)
* Date: 25/04/2018
*
*/
#include <tracking_lib/ukf.h>
namespace tracking{
/******************************************************************************/
UnscentedKF::UnscentedKF(ro... | 29.009986 | 80 | 0.660061 | hywel1994 |
6d5aab7110fbf30c386a7e463e7b94ca92dc8b78 | 4,109 | cpp | C++ | export/release/macos/obj/src/__ASSET__OPENFL__assets_fonts_lanapixel_ttf.cpp | BushsHaxs/DOKIDOKI-MAC | 22729124a0b7b637d56ff3b18acb555ec05934f1 | [
"Apache-2.0"
] | null | null | null | export/release/macos/obj/src/__ASSET__OPENFL__assets_fonts_lanapixel_ttf.cpp | BushsHaxs/DOKIDOKI-MAC | 22729124a0b7b637d56ff3b18acb555ec05934f1 | [
"Apache-2.0"
] | null | null | null | export/release/macos/obj/src/__ASSET__OPENFL__assets_fonts_lanapixel_ttf.cpp | BushsHaxs/DOKIDOKI-MAC | 22729124a0b7b637d56ff3b18acb555ec05934f1 | [
"Apache-2.0"
] | 1 | 2021-12-11T09:19:29.000Z | 2021-12-11T09:19:29.000Z | #include <hxcpp.h>
#ifndef INCLUDED___ASSET__OPENFL__assets_fonts_lanapixel_ttf
#include <__ASSET__OPENFL__assets_fonts_lanapixel_ttf.h>
#endif
#ifndef INCLUDED___ASSET__assets_fonts_lanapixel_ttf
#include <__ASSET__assets_fonts_lanapixel_ttf.h>
#endif
#ifndef INCLUDED_lime_text_Font
#include <lime/text/Font.h>
#endif... | 43.252632 | 247 | 0.825505 | BushsHaxs |
6d5af2453075178087a9c27942794943e02d534a | 735 | cpp | C++ | 022-generate-parentheses/generate-parentheses.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 022-generate-parentheses/generate-parentheses.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 022-generate-parentheses/generate-parentheses.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | //
// Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
//
//
//
// For example, given n = 3, a solution set is:
//
//
// [
// "((()))",
// "(()())",
// "(())()",
// "()(())",
// "()()()"
// ]
//
class Solution {
private:
void get(vector<str... | 17.5 | 107 | 0.473469 | nagestx |
6d62814ef1a88b6978ba995bc51011887cb8d7c0 | 2,419 | hpp | C++ | nutation.hpp | komasaru/calc_greenwich_time | af45776181c2a457a944cd472e1b5069589aa2d8 | [
"MIT"
] | null | null | null | nutation.hpp | komasaru/calc_greenwich_time | af45776181c2a457a944cd472e1b5069589aa2d8 | [
"MIT"
] | null | null | null | nutation.hpp | komasaru/calc_greenwich_time | af45776181c2a457a944cd472e1b5069589aa2d8 | [
"MIT"
] | null | null | null | #ifndef CALC_GREENWICH_NUTATION_HPP_
#define CALC_GREENWICH_NUTATION_HPP_
#include "file.hpp"
#include <cmath>
#include <iostream>
#include <vector>
namespace calc_greenwich {
class Nutation {
static std::vector<std::vector<double>> dat_ls; // data of lunisolar parameters
static std::vector<std::vector<double>... | 49.367347 | 118 | 0.634973 | komasaru |
6d62a5e43d720e1421aff83f6510acc3a55179f8 | 5,486 | cpp | C++ | src/mac/osBundle.cpp | GPUOpen-Tools/common-src-AMDTOSWrappers | 80f8902c78d52435ac04f66ac190d689e5badbc1 | [
"MIT"
] | 2 | 2017-01-28T14:11:35.000Z | 2018-02-01T08:22:03.000Z | src/mac/osBundle.cpp | GPUOpen-Tools/common-src-AMDTOSWrappers | 80f8902c78d52435ac04f66ac190d689e5badbc1 | [
"MIT"
] | null | null | null | src/mac/osBundle.cpp | GPUOpen-Tools/common-src-AMDTOSWrappers | 80f8902c78d52435ac04f66ac190d689e5badbc1 | [
"MIT"
] | 2 | 2018-02-01T08:22:04.000Z | 2019-11-01T23:00:21.000Z | //------------------------------ osBundle.cpp ------------------------------
// Infra:
#include <AMDTBaseTools/Include/gtAssert.h>
#include <AMDTBaseTools/Include/gtString.h>
#include <AMDTBaseTools/Include/AMDTDefinitions.h>
// Local:
#include <AMDTOSWrappers/Include/osDebugLog.h>
#include <AMDTOSWrappers/Include/os... | 35.393548 | 153 | 0.58148 | GPUOpen-Tools |
6d66c915284f566e78338b4f34d4fc78e6500818 | 1,444 | cpp | C++ | SimpleDB/src/core/sql/statement_delete.cpp | caivao/SimpleDB | ff90245c5ffc96ea84cf046596d690866c1c8cb6 | [
"MIT"
] | 1 | 2021-01-05T17:01:31.000Z | 2021-01-05T17:01:31.000Z | SimpleDB/src/core/sql/statement_delete.cpp | caivao/SimpleDB | ff90245c5ffc96ea84cf046596d690866c1c8cb6 | [
"MIT"
] | null | null | null | SimpleDB/src/core/sql/statement_delete.cpp | caivao/SimpleDB | ff90245c5ffc96ea84cf046596d690866c1c8cb6 | [
"MIT"
] | null | null | null | //
// statement_delete.cpp
// SimpleDB
//
// Created by lifeng on 2019/6/6.
// Copyright © 2019 feng. All rights reserved.
//
#include "statement_delete.hpp"
#include "expr.hpp"
#include "order.hpp"
namespace SDB {
namespace STMT {
Delete &Delete::delete_from(const std::string &table)
{
... | 24.896552 | 71 | 0.463989 | caivao |
6d67b08081359a9fb9cecfc572a4d1a4d0b2e925 | 9,379 | cc | C++ | tensorflow_text/core/kernels/mst_solver_test.cc | aprasad16/text | c1607c98c70534abc3c75eb231830ce6d87be645 | [
"Apache-2.0"
] | 975 | 2019-05-29T22:10:37.000Z | 2022-03-30T03:43:21.000Z | tensorflow_text/core/kernels/mst_solver_test.cc | aprasad16/text | c1607c98c70534abc3c75eb231830ce6d87be645 | [
"Apache-2.0"
] | 276 | 2019-06-07T23:12:52.000Z | 2022-03-31T17:38:05.000Z | tensorflow_text/core/kernels/mst_solver_test.cc | aprasad16/text | c1607c98c70534abc3c75eb231830ce6d87be645 | [
"Apache-2.0"
] | 192 | 2019-06-04T03:36:42.000Z | 2022-03-31T23:49:17.000Z | // Copyright 2021 TF.Text 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 agreed t... | 34.105455 | 80 | 0.662757 | aprasad16 |
6d6947f8edc731c1ff4829331173608301564dc5 | 24,425 | cpp | C++ | src/parse/parser.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | src/parse/parser.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | src/parse/parser.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #include "parse/parser.hpp"
#include "op_precedence.hpp"
#include "parse/error.hpp"
#include "parse/nodes.hpp"
#include "utilities.hpp"
#include <cassert>
#include <vector>
namespace {
// Maximum depth that expressions are allowed to be nested.
constexpr size_t g_maxRecursionDepth = 100;
auto isPossibleTypeToken(lex... | 34.596317 | 100 | 0.642825 | BastianBlokland |
6d7440910ad179bb7651aff1c3d4f2c764bf8f2a | 7,002 | cpp | C++ | Libraries/AP_Math_mdk5/AP_Math.cpp | SuWeipeng/xm_rc | 7f5d9bcfc42dff7e9e72a3e096b195ea1a3076aa | [
"Apache-2.0"
] | 2 | 2020-03-10T03:00:38.000Z | 2020-05-04T02:40:10.000Z | Libraries/AP_Math_mdk5/AP_Math.cpp | SuWeipeng/xm_rc | 7f5d9bcfc42dff7e9e72a3e096b195ea1a3076aa | [
"Apache-2.0"
] | null | null | null | Libraries/AP_Math_mdk5/AP_Math.cpp | SuWeipeng/xm_rc | 7f5d9bcfc42dff7e9e72a3e096b195ea1a3076aa | [
"Apache-2.0"
] | 3 | 2020-03-10T03:00:48.000Z | 2021-01-26T06:03:49.000Z | #include "AP_Math.h"
template <typename T>
float safe_asin(const T v)
{
const float f = static_cast<float>(v);
if (isnan(f)) {
return 0.0f;
}
if (f >= 1.0f) {
return static_cast<float>(M_PI_2);
}
if (f <= -1.0f) {
return static_cast<float>(-M_PI_2);
}
return asin... | 30.710526 | 110 | 0.663239 | SuWeipeng |
6d7c57829826b74f9759251eb7ba039de1ce3b37 | 6,717 | cpp | C++ | testing/testing_zher2k.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 21 | 2017-10-06T05:05:05.000Z | 2022-03-13T15:39:20.000Z | testing/testing_zher2k.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 1 | 2017-03-23T00:27:24.000Z | 2017-03-23T00:27:24.000Z | testing/testing_zher2k.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 4 | 2018-01-09T15:49:58.000Z | 2022-03-13T15:39:27.000Z | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@precisions normal z -> c d s
@author Chongxiao Cao
*/
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#in... | 38.82659 | 107 | 0.441566 | shengren |
6d7e79c566bf1865dac47afda7cad544b5755b0d | 4,026 | cpp | C++ | src/cache/index/query_manager/emkde_query_manager.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | null | null | null | src/cache/index/query_manager/emkde_query_manager.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 10 | 2018-03-02T13:58:32.000Z | 2020-06-05T11:12:42.000Z | src/cache/index/query_manager/emkde_query_manager.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 3 | 2018-02-26T14:01:43.000Z | 2019-12-09T10:03:17.000Z | /*
* bema_query_manager.cpp
*
* Created on: 24.05.2016
* Author: koerberm
*/
#include "cache/index/query_manager/emkde_query_manager.h"
#include "util/log.h"
#include "util/exceptions.h"
const GDAL::CRSTransformer EMKDEQueryManager::TRANS_GEOSMSG(CrsId::from_epsg_code(0x9E05),
CrsId::from_epsg_code(4326)... | 25.643312 | 90 | 0.633631 | EmanuelHerrendorf |
6d80a00cdeddab88508bb0c9b4028748643509e0 | 2,591 | cc | C++ | src/python/swig/pyevent.cc | cmlasu/smm_gem5 | 2865229999904d531f5510ca50552b396efeaea0 | [
"BSD-3-Clause"
] | 31 | 2015-12-15T19:14:10.000Z | 2021-12-31T17:40:21.000Z | src/python/swig/pyevent.cc | jcai19/smm_gem5 | 15e10bd32ef4a4d18e5d846b015d11317d319bcc | [
"BSD-3-Clause"
] | 5 | 2015-12-04T08:06:47.000Z | 2020-08-09T21:49:46.000Z | src/python/swig/pyevent.cc | jcai19/smm_gem5 | 15e10bd32ef4a4d18e5d846b015d11317d319bcc | [
"BSD-3-Clause"
] | 21 | 2015-11-05T08:25:45.000Z | 2021-06-19T02:24:50.000Z | /*
* Copyright (c) 2006 The Regents of The University of Michigan
* 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, ... | 36.492958 | 74 | 0.727904 | cmlasu |
6d812d3d90981b8016e2fcbef0d0357e84227579 | 956 | hpp | C++ | include/lea/engine/ecs/typename.hpp | jfalcou/lea | 85c3648af1b67aa70320df1c60fec457f82b5f81 | [
"MIT"
] | 2 | 2019-08-12T22:54:48.000Z | 2020-06-01T22:23:07.000Z | include/lea/engine/ecs/typename.hpp | jfalcou/lea | 85c3648af1b67aa70320df1c60fec457f82b5f81 | [
"MIT"
] | null | null | null | include/lea/engine/ecs/typename.hpp | jfalcou/lea | 85c3648af1b67aa70320df1c60fec457f82b5f81 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
LEA - Little Engine Adventure
Copyright 2020 Joel FALCOU
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
**/
//=============================================... | 27.314286 | 100 | 0.507322 | jfalcou |
6d8188019352ad083720c90e9ed84de2704a071f | 1,868 | cpp | C++ | examples/accept.cpp | ksergey/NetBox | e9bc4fbd22561e841d16a2420be0df387cb8477d | [
"Unlicense"
] | 1 | 2019-10-25T03:15:04.000Z | 2019-10-25T03:15:04.000Z | examples/accept.cpp | ksergey/NetBox | e9bc4fbd22561e841d16a2420be0df387cb8477d | [
"Unlicense"
] | null | null | null | examples/accept.cpp | ksergey/NetBox | e9bc4fbd22561e841d16a2420be0df387cb8477d | [
"Unlicense"
] | null | null | null | // ------------------------------------------------------------
// Copyright 2017-present Sergey Kovalevich <inndie@gmail.com>
// ------------------------------------------------------------
#include <cstdlib>
#include <iostream>
#include <netbox/socket_ops.h>
#include <netbox/socket_options.h>
using namespace netbox... | 31.133333 | 110 | 0.485011 | ksergey |
6d8bb6c47300e8e64598acb61427848d0ace4ada | 9,194 | hpp | C++ | lib/include/glow_dkg.hpp | fetchai/research-dvrf | 943b335e1733bb9b2ef403e4f8237dfdc4f93952 | [
"Apache-2.0"
] | 16 | 2020-02-08T00:04:58.000Z | 2022-01-18T11:42:07.000Z | lib/include/glow_dkg.hpp | fetchai/research-dvrf | 943b335e1733bb9b2ef403e4f8237dfdc4f93952 | [
"Apache-2.0"
] | null | null | null | lib/include/glow_dkg.hpp | fetchai/research-dvrf | 943b335e1733bb9b2ef403e4f8237dfdc4f93952 | [
"Apache-2.0"
] | 4 | 2021-07-20T08:56:08.000Z | 2022-01-03T01:48:12.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2019-2020 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Licen... | 35.498069 | 118 | 0.646291 | fetchai |
6d8c1efca1f229f75adacec1700215b822893a6f | 6,069 | hpp | C++ | include/outcome/experimental/status_outcome.hpp | libbboze/outcome | 248b05f75c723df56a5fa7988bb7de8b173a98ba | [
"Apache-2.0"
] | null | null | null | include/outcome/experimental/status_outcome.hpp | libbboze/outcome | 248b05f75c723df56a5fa7988bb7de8b173a98ba | [
"Apache-2.0"
] | null | null | null | include/outcome/experimental/status_outcome.hpp | libbboze/outcome | 248b05f75c723df56a5fa7988bb7de8b173a98ba | [
"Apache-2.0"
] | null | null | null | /* A less simple result type
(C) 2018 Niall Douglas <http://www.nedproductions.biz/> (59 commits)
File Created: Apr 2018
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 in the accompanying file
Licenc... | 37.93125 | 221 | 0.629923 | libbboze |
6d8c330307a161f0bec923bab70a54287abed99a | 4,545 | cpp | C++ | src/cargame/TranslationManager.cpp | sppmacd/CarGame | c6b7351daa94b692ab209a5035c85084eafb8a67 | [
"MIT"
] | 1 | 2020-05-13T18:19:17.000Z | 2020-05-13T18:19:17.000Z | src/cargame/TranslationManager.cpp | sppmacd/CarGame | c6b7351daa94b692ab209a5035c85084eafb8a67 | [
"MIT"
] | 5 | 2019-07-15T15:43:38.000Z | 2020-04-18T17:46:24.000Z | src/cargame/TranslationManager.cpp | sppmacd/CarGame | c6b7351daa94b692ab209a5035c85084eafb8a67 | [
"MIT"
] | null | null | null | #include "TranslationManager.hpp"
#include "DebugLogger.hpp"
#include "ModuleManager.hpp"
#include <codecvt>
#include <cstring>
#include <fstream>
#include <iostream>
#include <locale>
#include <sstream>
// error codes
// 01 - not enough values given (too many variables in translation string)
// 02 - language file i... | 28.40625 | 106 | 0.563256 | sppmacd |
6d96c4a7bcdbe8bfdabe459f2b2bb7b17446decf | 1,526 | hpp | C++ | src/org/apache/poi/ss/usermodel/CellCopyPolicy_Builder.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/CellCopyPolicy_Builder.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/CellCopyPolicy_Builder.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/usermodel/CellCopyPolicy.java
#pragma once
#include <fwd-POI.hpp>
#include <org/apache/poi/ss/usermodel/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct default_init_tag;
class poi::ss::usermodel::CellCopyPolicy_Builder
: public virtual ::java::lang::Object
{
pu... | 27.745455 | 75 | 0.733945 | pebble2015 |
6d97682e69a124e2de807678fcc585f7364f8b0b | 32,182 | cc | C++ | dcmtk-3.6.6/dcmdata/libsrc/dcpath.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | dcmtk-3.6.6/dcmdata/libsrc/dcpath.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | dcmtk-3.6.6/dcmdata/libsrc/dcpath.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | /*
*
* Copyright (C) 2008-2020, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmdata
*
* Author: Michael ... | 33.592902 | 120 | 0.584488 | happymanx |
6d9d5bb9c7b3915108d4dba53bd6054679b87b5b | 2,524 | cpp | C++ | src/modules/osgVolume/generated_code/_osgVolume.main.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 3 | 2017-04-20T09:11:47.000Z | 2021-04-29T19:24:03.000Z | src/modules/osgVolume/generated_code/_osgVolume.main.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | src/modules/osgVolume/generated_code/_osgVolume.main.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "__call_policies.pypp.hpp"
#include "__convenience.pypp.hpp"
#include "indexing_suite/container_suite.hpp"
#include "indexing_suite/vector.hpp"
#include "wrap_osgVolume.h"
#include "AlphaFuncProperty.pypp.hpp"
#include "CollectPropert... | 19.267176 | 56 | 0.7813 | cmbruns |
6da1b18743490e9d050c0442dc051c4ffc38b284 | 5,509 | cpp | C++ | DFS. Tarjan SCC/Source(9).cpp | AlexandraDediu/Fundamental-Algorithms | 92cfc8f135fbe9681427d362634de3b9f049bfbd | [
"Apache-2.0"
] | null | null | null | DFS. Tarjan SCC/Source(9).cpp | AlexandraDediu/Fundamental-Algorithms | 92cfc8f135fbe9681427d362634de3b9f049bfbd | [
"Apache-2.0"
] | null | null | null | DFS. Tarjan SCC/Source(9).cpp | AlexandraDediu/Fundamental-Algorithms | 92cfc8f135fbe9681427d362634de3b9f049bfbd | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "Profiler.h"
#define white 1
#define grey 2
#define black 3
#define tree 4
#define back 5
#define forward 6
#define cross 7
using namespace std;
Profiler profiler("BFS");
int op = 0;
bool topo = true;
int V = 100, component;
int sol[500], contor;
int e = 1000;
int myTime;
typedef stru... | 18.181518 | 214 | 0.614994 | AlexandraDediu |
6da2f881175bcf938f2cfea7b373a00ba216e819 | 3,095 | cpp | C++ | OP2-Landlord/TileGroups.cpp | OutpostUniverse/op2-landlord | f4256b8bbe4d7d475a49a18ddf00d880e902c14e | [
"Unlicense"
] | null | null | null | OP2-Landlord/TileGroups.cpp | OutpostUniverse/op2-landlord | f4256b8bbe4d7d475a49a18ddf00d880e902c14e | [
"Unlicense"
] | 19 | 2019-12-08T11:40:44.000Z | 2020-02-20T10:32:19.000Z | OP2-Landlord/TileGroups.cpp | OutpostUniverse/op2-landlord | f4256b8bbe4d7d475a49a18ddf00d880e902c14e | [
"Unlicense"
] | 1 | 2019-12-19T03:50:20.000Z | 2019-12-19T03:50:20.000Z | #include "TileGroups.h"
#include "Common.h"
using namespace NAS2D;
/**
* C'Tor
*/
TileGroups::TileGroups()
{
_init();
}
/**
* D'Tor
*/
TileGroups::~TileGroups()
{
mSlider.change().disconnect(this, &TileGroups::mSlider_Changed);
Utility<EventHandler>::get().keyDown().disconnect(this, &TileGroups::onKeyDown);
... | 20.097403 | 116 | 0.677221 | OutpostUniverse |
6da6f09af876f2a62a9fe9b006f6debb52f499aa | 548 | hpp | C++ | module04/ex03/AMateria.hpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | module04/ex03/AMateria.hpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | module04/ex03/AMateria.hpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include "ICharacter.hpp"
class ICharacter;
class AMateria
{
private:
unsigned int _xp;
std::string _type;
public:
AMateria();
AMateria(std::string const& type);
AMateria(const AMateria& org);
AMateria& operator=(const AMateria& org);
virtual ~AMateria();
std::str... | 19.571429 | 43 | 0.684307 | M-Philippe |
6da6f89044475c2b8ead66ccb45021b977a83385 | 2,636 | cpp | C++ | Triangles.cpp | bjonke/Classes | c8b815ce41daa622bff7651d341fdc0322c0aa89 | [
"MIT"
] | null | null | null | Triangles.cpp | bjonke/Classes | c8b815ce41daa622bff7651d341fdc0322c0aa89 | [
"MIT"
] | null | null | null | Triangles.cpp | bjonke/Classes | c8b815ce41daa622bff7651d341fdc0322c0aa89 | [
"MIT"
] | null | null | null | #include "Triangles.h"
#include <SDL.h>
#include "game.h"
#include "ControlGfx.h"
// 1. this should go into every .cpp , after all header inclusions
#ifdef _WIN32
#ifdef _DEBUG
#include <crtdbg.h>
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#define new new( _NORMAL_BLOCK, __FILE__, __LINE__)... | 18.433566 | 141 | 0.66654 | bjonke |
6da853551a901af75ca3d7c68723df5043a676ed | 979 | cpp | C++ | examples/edit_profile.cpp | Xeth/libbitprofile | 49cd266ffa680c6eefaae205bc17c971c2d38b65 | [
"MIT"
] | 1 | 2016-04-17T23:03:39.000Z | 2016-04-17T23:03:39.000Z | examples/edit_profile.cpp | BitProfile/libbitprofile | 49cd266ffa680c6eefaae205bc17c971c2d38b65 | [
"MIT"
] | null | null | null | examples/edit_profile.cpp | BitProfile/libbitprofile | 49cd266ffa680c6eefaae205bc17c971c2d38b65 | [
"MIT"
] | 1 | 2018-08-31T10:56:39.000Z | 2018-08-31T10:56:39.000Z |
#include <iostream>
#include "ethrpc/Provider.hpp"
#include "bitprofile/Resolver.hpp"
#include "utils/PromptPassword.hpp"
int main(int argc, char **argv)
{
if(argc<4)
{
std::cout<<"usage : edit_profile [uri] [key] [value]"<<std::endl;
return 1;
}
std::string password = PromptPassword... | 23.309524 | 85 | 0.603677 | Xeth |
6dae529a2af96a0f12c8d36af2a25240f491d02d | 671 | cpp | C++ | src/grammar/selections/selection_single.cpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 34 | 2020-08-14T14:32:51.000Z | 2022-02-16T23:20:02.000Z | src/grammar/selections/selection_single.cpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 19 | 2020-08-20T20:04:39.000Z | 2022-02-28T14:34:37.000Z | src/grammar/selections/selection_single.cpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 7 | 2020-08-14T14:18:17.000Z | 2022-02-01T10:59:24.000Z | // Copyright (c) 2020, QuantStack and XVega Contributors
//
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.
#include "xvega/grammar/selections/selection_single.hpp"
#include "../selections_private.hpp"
namespace xv
{
select... | 25.807692 | 75 | 0.643815 | domoritz |
6db196ae53f40514ab2f24d72ec64e29a2bb09c6 | 3,445 | hpp | C++ | src/xpcc/architecture/peripheral/one_wire.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | src/xpcc/architecture/peripheral/one_wire.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | src/xpcc/architecture/peripheral/one_wire.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2009, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... | 39.147727 | 79 | 0.695791 | walmis |
6db69d403803afc4fcbe18d071895da7619091ad | 7,902 | cp | C++ | aa/2000's - DICE/-DICE10/Source/JSDom/ds_NotePlayer.cp | jht1900/DICE-AGE | 5ecb810f21b7e1075430f71890fc7bb82ec09caf | [
"MIT"
] | null | null | null | aa/2000's - DICE/-DICE10/Source/JSDom/ds_NotePlayer.cp | jht1900/DICE-AGE | 5ecb810f21b7e1075430f71890fc7bb82ec09caf | [
"MIT"
] | null | null | null | aa/2000's - DICE/-DICE10/Source/JSDom/ds_NotePlayer.cp | jht1900/DICE-AGE | 5ecb810f21b7e1075430f71890fc7bb82ec09caf | [
"MIT"
] | null | null | null | /*
JavaScript wrapper for note player
Copyright (c) 2003 John Henry Thompson. All rights reserved.
History:
2003.03.20 jht Created. Integrating JavaScript.
*/
#include "ds_NotePlayer.h"
#include "CNotePlayer.h"
#include "jscntxt.h"
#include "jslock.h"
#define DS_CLASS_NAME "NotePlayer"
// --------------------... | 7,902 | 7,902 | 0.544546 | jht1900 |
6db6bf97c68d3e0e821cca6cdf254fa338c4bf2c | 1,939 | cpp | C++ | ComfyDxEngine/strconv.cpp | makuke1234/ComfyEditor | 72054f1fb60b11df2c3158f3960cff9fcc5c1440 | [
"MIT"
] | null | null | null | ComfyDxEngine/strconv.cpp | makuke1234/ComfyEditor | 72054f1fb60b11df2c3158f3960cff9fcc5c1440 | [
"MIT"
] | null | null | null | ComfyDxEngine/strconv.cpp | makuke1234/ComfyEditor | 72054f1fb60b11df2c3158f3960cff9fcc5c1440 | [
"MIT"
] | null | null | null | #include "pch.hpp"
#include "strconv.hpp"
COMFYDX_API std::string ce::conv(std::wstring_view str)
{
int realSize = ::WideCharToMultiByte(
CP_UTF8,
0,
str.data(),
str.size() + 1,
nullptr,
0,
nullptr,
nullptr
);
std::string out;
out.resize(realSize - 1);
::WideCharToMultiByte(
CP_UTF8,
0,
st... | 17.468468 | 97 | 0.62558 | makuke1234 |
6dbfa094199e1b0f5185d7da84e03353a8708676 | 14,970 | cpp | C++ | spoki/libspoki/src/probe/udp_prober.cpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | 1 | 2022-02-03T15:35:16.000Z | 2022-02-03T15:35:16.000Z | spoki/libspoki/src/probe/udp_prober.cpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | null | null | null | spoki/libspoki/src/probe/udp_prober.cpp | inetrg/spoki | 599a19366e4cea70e2391471de6f6b745935cddf | [
"MIT"
] | null | null | null | /*
* This file is part of the CAF spoki driver.
*
* Copyright (C) 2018-2021
* Authors: Raphael Hiesgen
*
* All rights reserved.
*
* Report any bugs, questions or comments to raphael.hiesgen@haw-hamburg.de
*
*/
#include "spoki/probe/udp_prober.hpp"
#include <arpa/inet.h>
#include <fcntl.h>
#include <iomanip>... | 30.242424 | 80 | 0.620174 | inetrg |
6dc0c5910faebfa6e3655c91a5609e2b4d887e97 | 34,920 | cpp | C++ | PositionBasedDynamics/PositionBasedDynamics.cpp | aibel18/phasechange | 30fa880fbd063b26b7e8187be4231fb40c668335 | [
"MIT"
] | 2 | 2019-11-19T20:15:34.000Z | 2021-11-27T05:08:30.000Z | PositionBasedDynamics/PositionBasedDynamics.cpp | aibel18/phasechange | 30fa880fbd063b26b7e8187be4231fb40c668335 | [
"MIT"
] | null | null | null | PositionBasedDynamics/PositionBasedDynamics.cpp | aibel18/phasechange | 30fa880fbd063b26b7e8187be4231fb40c668335 | [
"MIT"
] | 1 | 2019-11-19T20:15:37.000Z | 2019-11-19T20:15:37.000Z | #include "PositionBasedDynamics.h"
#include "MathFunctions.h"
#include <cfloat>
using namespace PBD;
const Real eps = 1e-6;
const Real compliance = 1e-9;
//////////////////////////////////////////////////////////////////////////
// XPositionBasedDynamics
/////////////////////////////////////////////////////////////... | 27.869114 | 126 | 0.557646 | aibel18 |
6dc3b97fc98bac5991bc99ad8a0ec2f5fb49176b | 7,083 | cpp | C++ | llvm/lib/Target/TargetMachine.cpp | zard49/kokkos-clang | c519a032853e6507075de1807c5730b8239ab936 | [
"Unlicense"
] | 4 | 2015-10-21T05:51:05.000Z | 2015-12-19T06:27:44.000Z | llvm/lib/Target/TargetMachine.cpp | losalamos/kokkos-clang | d68d9c63cea3dbaad33454e4ebc9df829bca24fe | [
"Unlicense"
] | null | null | null | llvm/lib/Target/TargetMachine.cpp | losalamos/kokkos-clang | d68d9c63cea3dbaad33454e4ebc9df829bca24fe | [
"Unlicense"
] | 2 | 2019-11-16T19:03:05.000Z | 2020-03-19T08:32:37.000Z | //===-- TargetMachine.cpp - General Target Information ---------------------==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 36.699482 | 80 | 0.674855 | zard49 |
6dc4ce01ed2ea3c35f40cd370fb3cc655894c600 | 579 | hpp | C++ | util/Qt/graph.hpp | hyjang/web10g-userland | a2e481e6c1513ceede34caf46cee5306c5495c3e | [
"MIT"
] | null | null | null | util/Qt/graph.hpp | hyjang/web10g-userland | a2e481e6c1513ceede34caf46cee5306c5495c3e | [
"MIT"
] | null | null | null | util/Qt/graph.hpp | hyjang/web10g-userland | a2e481e6c1513ceede34caf46cee5306c5495c3e | [
"MIT"
] | null | null | null | #ifndef GRAPH_HPP
#define GRAPH_HPP
#include <QGraphicsItem>
#include <QSet>
class Graph : public QGraphicsItem
{
// Q_OBJECT
public:
explicit Graph(QRectF rectF, QGraphicsItem *parent=0);
QRectF boundingRect() const { return m_rectF; }
void paint(QPainter *painter,
const QStyleOptionGraphic... | 18.09375 | 65 | 0.690846 | hyjang |
6dd17cfb97d787d5d3d55c3c5bacb036538ad047 | 5,934 | cpp | C++ | tests/unit/queue/bounded_queue_fulness.cpp | simple555a/libcds | d05a0909402369d4a79eb82aed1742a7b227548b | [
"BSD-2-Clause"
] | null | null | null | tests/unit/queue/bounded_queue_fulness.cpp | simple555a/libcds | d05a0909402369d4a79eb82aed1742a7b227548b | [
"BSD-2-Clause"
] | null | null | null | tests/unit/queue/bounded_queue_fulness.cpp | simple555a/libcds | d05a0909402369d4a79eb82aed1742a7b227548b | [
"BSD-2-Clause"
] | 1 | 2020-02-01T15:18:59.000Z | 2020-02-01T15:18:59.000Z | //$$CDS-header$$
#include "cppunit/thread.h"
#include "queue/queue_type.h"
#include "queue/queue_defs.h"
/*
Bounded queue test.
The test checks the behaviour of bounded queue when it is almost full.
Many algorithms says the queue is full when it is not, and vice versa.
*/
namespace queue {
#define TEST_... | 31.231579 | 101 | 0.518874 | simple555a |
6de09fb1b04efbe15702b64c4ef720b0da7364d4 | 1,440 | hh | C++ | src/core/include/chase/representation/DataDeclaration.hh | chase-cps/chase | 87db0754bf0eaa94beb10c355794b6d3c6d9e883 | [
"BSD-3-Clause"
] | 4 | 2019-06-15T15:33:37.000Z | 2022-02-10T19:10:50.000Z | src/core/include/chase/representation/DataDeclaration.hh | chase-cps/chase | 87db0754bf0eaa94beb10c355794b6d3c6d9e883 | [
"BSD-3-Clause"
] | null | null | null | src/core/include/chase/representation/DataDeclaration.hh | chase-cps/chase | 87db0754bf0eaa94beb10c355794b6d3c6d9e883 | [
"BSD-3-Clause"
] | 3 | 2018-02-02T18:14:48.000Z | 2021-01-31T12:18:25.000Z | /**
* @author <a href="mailto:michele.lora@univr.it">Michele Lora</a>
* @date 2019
* @copyright Copyright (c) 2019 by University of Verona.
* Copyright (c) 2019 by Singapore University of Technology and Design.
* All rights reserved.
* This project is released ... | 29.387755 | 84 | 0.577083 | chase-cps |
6de46b18834dae0b5f98af81a29cf82695c7f490 | 2,799 | cpp | C++ | ObjectIterator.cpp | deepdubey06/WMI | 6cba31cf8ddc8fc3ad9767507690f6d11a9c3bb5 | [
"MIT"
] | 49 | 2015-08-10T09:53:45.000Z | 2021-05-31T23:12:56.000Z | ObjectIterator.cpp | deepdubey06/WMI | 6cba31cf8ddc8fc3ad9767507690f6d11a9c3bb5 | [
"MIT"
] | null | null | null | ObjectIterator.cpp | deepdubey06/WMI | 6cba31cf8ddc8fc3ad9767507690f6d11a9c3bb5 | [
"MIT"
] | 22 | 2015-10-27T13:53:06.000Z | 2021-12-01T07:36:03.000Z | ////////////////////////////////////////////////////////////////////////////////
//! \file ObjectIterator.cpp
//! \brief The ObjectIterator class definition.
//! \author Chris Oldwood
#include "Common.hpp"
#include "ObjectIterator.hpp"
#include "Exception.hpp"
#include <Core/BadLogicException.hpp>
namespace WMI
{
... | 23.521008 | 96 | 0.526617 | deepdubey06 |
6de6512a92705005368359d0102b3b8308562690 | 676 | hpp | C++ | CToC++/CToC++/Leetcode/LeetCodeSolution2.hpp | UCliwenbin/AlgorithmCPP | 3cb4a6a9510682b5d4dc956826d263ab778a2a00 | [
"MIT"
] | 1 | 2021-02-25T08:00:43.000Z | 2021-02-25T08:00:43.000Z | CToC++/CToC++/Leetcode/LeetCodeSolution2.hpp | UCliwenbin/AlgorithmCPP | 3cb4a6a9510682b5d4dc956826d263ab778a2a00 | [
"MIT"
] | null | null | null | CToC++/CToC++/Leetcode/LeetCodeSolution2.hpp | UCliwenbin/AlgorithmCPP | 3cb4a6a9510682b5d4dc956826d263ab778a2a00 | [
"MIT"
] | null | null | null | //
// LeetCodeSolution2.hpp
// CToC++
//
// Created by mac on 2020/7/6.
// Copyright © 2020 lwb. All rights reserved.
//
#ifndef LeetCodeSolution2_hpp
#define LeetCodeSolution2_hpp
#include <stdio.h>
#include "ListNode.hpp"
/**
给出两个 非空的链表用来表示两个非负的整数。其中,它们各自的位数是按照 逆序 的方式存储的,并且它们的每个节点只能存储 一位 数字。如果,我们将这两个数相加起来,则会返... | 19.314286 | 100 | 0.692308 | UCliwenbin |
6de770809fe62cf2b6799d2c699f1a31c2a75a49 | 660 | cpp | C++ | c++/day10/39.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | c++/day10/39.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | c++/day10/39.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
//空树 也是对称的
class Solution {
public:
bool isSymmetric(TreeNode* root) {
if(root == nullptr) return true;
... | 24.444444 | 92 | 0.531818 | msoild |
6de958529b324b639289d323abbd81ce003610f6 | 29,040 | cpp | C++ | clicache/src/TypeRegistry.cpp | echobravopapa/geode-native | f35a0f89c3bb97d309b3c8f507af23d0f4fb2f19 | [
"Apache-2.0"
] | null | null | null | clicache/src/TypeRegistry.cpp | echobravopapa/geode-native | f35a0f89c3bb97d309b3c8f507af23d0f4fb2f19 | [
"Apache-2.0"
] | null | null | null | clicache/src/TypeRegistry.cpp | echobravopapa/geode-native | f35a0f89c3bb97d309b3c8f507af23d0f4fb2f19 | [
"Apache-2.0"
] | null | null | null | /*
* 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 ... | 38.927614 | 148 | 0.648106 | echobravopapa |
6df63845e16b4a91e576312b7a19ec96fd547c3f | 14,774 | cpp | C++ | src/tdme/os/filesystem/ArchiveFileSystem.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/os/filesystem/ArchiveFileSystem.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/os/filesystem/ArchiveFileSystem.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | #include <tdme/os/filesystem/ArchiveFileSystem.h>
#include <string.h>
#include <algorithm>
#include <cassert>
#include <fstream>
#include <string>
#include <vector>
#include <ext/sha256/sha256.h>
#include <ext/zlib/zlib.h>
#include <tdme/math/Math.h>
#include <tdme/os/filesystem/FileNameFilter.h>
#include <tdme/os/... | 33.501134 | 128 | 0.727156 | mahula |
6df66952fbe162513712d1d5d58242fcb2073c3c | 559 | cpp | C++ | LeetCode/ThousandOne/0049-group_anagram.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0049-group_anagram.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0049-group_anagram.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 49. 字母异位词分组
给定一个字符串数组,将字母异位词组合在一起。
字母异位词指字母相同,但排列不同的字符串。
示例:
输入: ["eat", "tea", "tan", "ate", "nat", "bat"]
输出:
[
["ate","eat","tea"],
["nat","tan"],
["bat"]
]
说明:
所有输入均为小写字母。
不考虑答案输出的顺序。
*/
vector<vector<string>> groupAnagrams(vector<string>& S)
{
vector<vector<string>> R;
unor... | 13 | 55 | 0.586762 | Ginkgo-Biloba |
6df9137ff2548bd4d6527f8a75816f024a948b97 | 6,618 | cpp | C++ | aws-cpp-sdk-ec2/source/model/AnalysisPacketHeader.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-ec2/source/model/AnalysisPacketHeader.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-ec2/source/model/AnalysisPacketHeader.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ec2/model/AnalysisPacketHeader.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <... | 32.600985 | 166 | 0.700514 | perfectrecall |
6dfa216ab4d8db16a36b5aea8d3c1e7ead15774f | 3,413 | hpp | C++ | src/types/inc/utils.hpp | hackecord/terminal | c0111a706db017719ea11c3219522f8f8e5542cc | [
"MIT"
] | 4 | 2019-05-09T12:47:49.000Z | 2020-06-16T22:08:57.000Z | src/types/inc/utils.hpp | ironyman/terminal | 1e2f203395424a0304efe16d955e5b14fd3a5e56 | [
"MIT"
] | null | null | null | src/types/inc/utils.hpp | ironyman/terminal | 1e2f203395424a0304efe16d955e5b14fd3a5e56 | [
"MIT"
] | 1 | 2020-05-13T09:07:40.000Z | 2020-05-13T09:07:40.000Z | /*++
Copyright (c) Microsoft Corporation
Module Name:
- utils.hpp
Abstract:
- Helpful cross-lib utilities
Author(s):
- Mike Griese (migrie) 12-Jun-2018
--*/
// Inspired from RETURN_IF_WIN32_BOOL_FALSE
// WIL doesn't include a RETURN_BOOL_IF_FALSE, and RETURN_IF_WIN32_BOOL_FALSE
// will actually retu... | 33.460784 | 101 | 0.572517 | hackecord |
6dfb5ea91cb70949e1ce0ee52a8b0bd7d293a7cc | 5,134 | cc | C++ | src/node/old_version/activation_node.cc | huichengz0520/intellgraph | 00173f4c24a6314c85b4a091b2475ae157a2d814 | [
"Apache-2.0"
] | 1 | 2019-04-24T19:10:05.000Z | 2019-04-24T19:10:05.000Z | src/node/old_version/activation_node.cc | huichengz0520/intellgraph | 00173f4c24a6314c85b4a091b2475ae157a2d814 | [
"Apache-2.0"
] | null | null | null | src/node/old_version/activation_node.cc | huichengz0520/intellgraph | 00173f4c24a6314c85b4a091b2475ae157a2d814 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2019 The IntellGraph Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | 29.170455 | 80 | 0.639073 | huichengz0520 |
6dfcb9da3604e0f4e74156704e3bfd2d799222b0 | 2,733 | cpp | C++ | src/options.cpp | jake-stewart/jmatrix | cf42ae4a3cd11500c071f451e783ee3ff16905a7 | [
"MIT"
] | null | null | null | src/options.cpp | jake-stewart/jmatrix | cf42ae4a3cd11500c071f451e783ee3ff16905a7 | [
"MIT"
] | null | null | null | src/options.cpp | jake-stewart/jmatrix | cf42ae4a3cd11500c071f451e783ee3ff16905a7 | [
"MIT"
] | null | null | null | #include "../include/options.hpp"
#include "../include/util.hpp"
#include <string.h>
#include <stdio.h>
bool read_options(int argc, char **argv, Options *options) {
for (int i = 1; i < argc; i++) {
char *arg = argv[i];
if (strcmp(arg, "--fg") == 0) {
if (++i == argc) {
... | 27.606061 | 72 | 0.394072 | jake-stewart |
6dfce865c2413be5e4fd7cef14edcd01f9dd0734 | 299 | cpp | C++ | Source/KInk/Private/Player/CustomPlayerState.cpp | DanySpin97/KInk | e9f65cfe20aab39a09467bf8e96e0cc06697a29f | [
"MIT"
] | 4 | 2016-11-30T04:39:51.000Z | 2018-06-29T06:38:27.000Z | Source/KInk/Private/Player/CustomPlayerState.cpp | DanySpin97/KInk | e9f65cfe20aab39a09467bf8e96e0cc06697a29f | [
"MIT"
] | null | null | null | Source/KInk/Private/Player/CustomPlayerState.cpp | DanySpin97/KInk | e9f65cfe20aab39a09467bf8e96e0cc06697a29f | [
"MIT"
] | null | null | null | // Copyright (c) 2016 WiseDragonStd
#include "KInk.h"
#include "CustomPlayerState.h"
void ACustomPlayerState::ResetNewGame()
{
CurrentHealth = MaxHealth;
FireRate = 1.f / (Rate / 50.f);
CurrentWeaponType = EWeapon::WFireGun;
CurrentScore = 0;
CurrentEnemyKilled = 0;
bBigKraken = false;
}
| 17.588235 | 39 | 0.722408 | DanySpin97 |
6dfd1a203c5da15d62192d31099576cfa43dfa26 | 7,204 | cxx | C++ | src/util/GuideObject.cxx | rita0222/FK | bc5786a5da0dd732e2f411c1a953b331323ee432 | [
"BSD-3-Clause"
] | 4 | 2020-05-15T03:43:53.000Z | 2021-06-05T16:21:31.000Z | src/util/GuideObject.cxx | rita0222/FK | bc5786a5da0dd732e2f411c1a953b331323ee432 | [
"BSD-3-Clause"
] | 1 | 2020-05-19T09:27:16.000Z | 2020-05-21T02:12:54.000Z | src/util/GuideObject.cxx | rita0222/FK | bc5786a5da0dd732e2f411c1a953b331323ee432 | [
"BSD-3-Clause"
] | null | null | null | #include <FK/GuideObject.h>
#include <FK/Scene.h>
using namespace FK;
using namespace std;
namespace FK {
fk_Guide operator | (fk_Guide argL, fk_Guide argR) {
return static_cast<fk_Guide>(static_cast<unsigned int>(argL) |
static_cast<unsigned int>(argR));
}
fk_Guide operator & (fk_Guide argL, fk_Gu... | 29.284553 | 93 | 0.666297 | rita0222 |
6dfd6f3caf884c8361b5cf78f2d3e7c0305fcc37 | 25,607 | cpp | C++ | src/integer_object.cpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 7 | 2022-03-08T08:47:54.000Z | 2022-03-29T15:08:36.000Z | src/integer_object.cpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 12 | 2022-03-10T13:04:42.000Z | 2022-03-24T01:40:23.000Z | src/integer_object.cpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 5 | 2022-03-13T17:46:16.000Z | 2022-03-31T07:28:26.000Z | #include "natalie.hpp"
#include <math.h>
namespace Natalie {
Value IntegerObject::create(const Integer &integer) {
if (integer.is_bignum())
return new IntegerObject { integer };
return Value::integer(integer.to_nat_int_t());
}
Value IntegerObject::create(const char *string) {
return new IntegerOb... | 30.963724 | 144 | 0.60171 | natalie-lang |
a300f8530681b7011e461d6a2778e77172497a22 | 151 | cpp | C++ | PanGuEngine/PanGuEngine/Renderer/Component.cpp | Litmin/PanGuEngine | 777286f811c925b489b9d13c0d174e050e284450 | [
"MIT"
] | 41 | 2020-10-20T06:13:47.000Z | 2022-03-23T16:12:22.000Z | PanGuEngine/PanGuEngine/Renderer/Component.cpp | Litmin/PanGuEngine | 777286f811c925b489b9d13c0d174e050e284450 | [
"MIT"
] | null | null | null | PanGuEngine/PanGuEngine/Renderer/Component.cpp | Litmin/PanGuEngine | 777286f811c925b489b9d13c0d174e050e284450 | [
"MIT"
] | 3 | 2021-04-17T06:34:11.000Z | 2021-04-27T04:58:43.000Z | #include "pch.h"
#include "Component.h"
#include "GameObject.h"
void Component::SetGameObject(GameObject* gameObject)
{
m_GameObject = gameObject;
}
| 16.777778 | 53 | 0.754967 | Litmin |
a3030862fe75ca67d8685d7ea97b33824c871e61 | 1,243 | cpp | C++ | Source/src/Modules/ModuleSceneManager.cpp | Erick9Thor/Engine3D | 32d78f79723fb7c319f79d5e26cdc26481d5cb35 | [
"MIT"
] | 1 | 2021-11-17T19:20:07.000Z | 2021-11-17T19:20:07.000Z | Source/src/Modules/ModuleSceneManager.cpp | Erick9Thor/Engine3D | 32d78f79723fb7c319f79d5e26cdc26481d5cb35 | [
"MIT"
] | null | null | null | Source/src/Modules/ModuleSceneManager.cpp | Erick9Thor/Engine3D | 32d78f79723fb7c319f79d5e26cdc26481d5cb35 | [
"MIT"
] | null | null | null | #include "ModuleSceneManager.h"
#include "../Importers/SceneImporter.h"
#include "../Utils/Logger.h"
ModuleSceneManager::ModuleSceneManager() {}
ModuleSceneManager::~ModuleSceneManager() {}
bool ModuleSceneManager::Init()
{
LOG("Creating Empty scene");
// main_scene = new Scene();
main_scene = SceneImporter::L... | 21.067797 | 105 | 0.761062 | Erick9Thor |
a3088a5f88b3b215782720df2b4b9fb8543027f0 | 33,287 | cpp | C++ | app/bin/miner/xmr-stak/xmrstak/misc/executor.cpp | chrisknepper/electron-gui-crypto-miner | e154b1f1ea6ce8285c7a682a8dcef90f17a5c8a2 | [
"MIT"
] | 2 | 2018-01-25T04:29:57.000Z | 2020-02-13T15:30:55.000Z | app/bin/miner/xmr-stak/xmrstak/misc/executor.cpp | chrisknepper/electron-gui-crypto-miner | e154b1f1ea6ce8285c7a682a8dcef90f17a5c8a2 | [
"MIT"
] | 1 | 2019-05-26T17:51:57.000Z | 2019-05-26T17:51:57.000Z | app/bin/miner/xmr-stak/xmrstak/misc/executor.cpp | chrisknepper/electron-gui-crypto-miner | e154b1f1ea6ce8285c7a682a8dcef90f17a5c8a2 | [
"MIT"
] | 5 | 2018-02-17T11:32:37.000Z | 2021-02-26T22:26:07.000Z | /*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* bu... | 25.985168 | 162 | 0.665245 | chrisknepper |
a30a9ce13359aa219e2aa5edf31339eda28e5ace | 2,245 | cpp | C++ | Povox/src/Povox/Core/Application.cpp | PowerOfNames/PonX | cac2c67168857409b40f9f76e9570868668370fd | [
"Apache-2.0"
] | null | null | null | Povox/src/Povox/Core/Application.cpp | PowerOfNames/PonX | cac2c67168857409b40f9f76e9570868668370fd | [
"Apache-2.0"
] | null | null | null | Povox/src/Povox/Core/Application.cpp | PowerOfNames/PonX | cac2c67168857409b40f9f76e9570868668370fd | [
"Apache-2.0"
] | null | null | null | #include "pxpch.h"
#include "Povox/Core/Application.h"
#include "Povox/Core/Log.h"
#include "Povox/Core/Input.h"
#include "Povox/Renderer/Renderer.h"
#include "Povox/Renderer/VoxelRenderer.h"
#include "Povox/Core/Time.h"
namespace Povox {
Application* Application::s_Instance = nullptr;
Application::Applicatio... | 17.677165 | 88 | 0.688641 | PowerOfNames |
a30e12080f569961f7373a9c7fdb69677d5d122b | 2,146 | cpp | C++ | libs/system/src/crc.cpp | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | 2 | 2019-02-20T02:36:05.000Z | 2019-02-20T02:46:51.000Z | libs/system/src/crc.cpp | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | null | null | null | libs/system/src/crc.cpp | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | null | null | null | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... | 24.953488 | 80 | 0.553122 | skair39 |
a30e7225628fd1e8a447dde0aede0a3487632dca | 12,025 | cpp | C++ | src/filters/transform/Mpeg2DecFilter/mc_sse2.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | src/filters/transform/Mpeg2DecFilter/mc_sse2.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | 1 | 2019-11-14T04:18:32.000Z | 2019-11-14T04:18:32.000Z | src/filters/transform/Mpeg2DecFilter/mc_sse2.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | /*
* $Id: mc_sse2.cpp 1775 2013-01-05 14:19:34Z szl $
*
* (C) 2003-2006 Gabest
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundati... | 24.793814 | 94 | 0.642412 | chinajeffery |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.