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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e6b4de51daf9e7e954e640ecb6fc2b84cfb19e6f | 1,317 | cpp | C++ | src/memory.cpp | habs1337/hack-lib | 4bd4c7182eba5e738d6d1a87daa1d4b37dfae798 | [
"MIT"
] | null | null | null | src/memory.cpp | habs1337/hack-lib | 4bd4c7182eba5e738d6d1a87daa1d4b37dfae798 | [
"MIT"
] | null | null | null | src/memory.cpp | habs1337/hack-lib | 4bd4c7182eba5e738d6d1a87daa1d4b37dfae798 | [
"MIT"
] | null | null | null | #include "../includes/includes.h"
namespace g_mini_crt::memory {
wchar_t get_bits(char x) {
return g_mini_crt::string::is_digit(x) ? (x - '0') : ((x - 'A') + 0xA);
}
BYTE get_byts(const char* x) {
return ((BYTE)(get_bits(x[0]) << 4 | get_bits(x[1])));
}
int mem_cmp(const void* str1, const void* str2, ... | 21.95 | 74 | 0.589977 | habs1337 |
e6b96c963aaa6ff7916ac2f32554582f6b03240e | 1,062 | cpp | C++ | cpp/tut/main.cpp | VeerabadraLokesh/miniature-guide | 057e524ed8ffdac15cfaa9585800235234306225 | [
"MIT"
] | null | null | null | cpp/tut/main.cpp | VeerabadraLokesh/miniature-guide | 057e524ed8ffdac15cfaa9585800235234306225 | [
"MIT"
] | null | null | null | cpp/tut/main.cpp | VeerabadraLokesh/miniature-guide | 057e524ed8ffdac15cfaa9585800235234306225 | [
"MIT"
] | null | null | null |
#include <iostream>
using namespace std;
// typedef int age;
int main() {
cout << "Hello world\n";
/* in comment */
cout << "Size of char : " << sizeof(char) << endl;
cout << "Size of int : " << sizeof(int) << endl;
cout << "Size of short int : " << sizeof(short int) << endl;
cout << "Size... | 27.947368 | 153 | 0.496234 | VeerabadraLokesh |
e6b9929694ad270fa8eb8773d4405e37393a483b | 307 | cpp | C++ | tapi-master/test/Inputs/CPP3/CPP3.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | tapi-master/test/Inputs/CPP3/CPP3.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | tapi-master/test/Inputs/CPP3/CPP3.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | #include "VTable.h"
// VTables
void test1::Simple::run() {}
void test2::Simple::run() {}
void test4::Sub::run() {}
void test5::Sub::run() {}
void test6::Sub::run() {}
void test11::Sub::run3() {}
template class test12::Simple<int>;
// Weak-Defined RTTI
__attribute__((visibility("hidden"))) test7::Sub a;
| 20.466667 | 51 | 0.651466 | JunyiXie |
e6c3773935366bf41cb30bfd9608e9495c028d0c | 99 | cc | C++ | cpp/accelerated_c++/chapter08/my_max.cc | zhouzhiqi/book_and_code | 3ffadd6cb721af280a00c1e1f97d509ab4b210ab | [
"Apache-2.0"
] | null | null | null | cpp/accelerated_c++/chapter08/my_max.cc | zhouzhiqi/book_and_code | 3ffadd6cb721af280a00c1e1f97d509ab4b210ab | [
"Apache-2.0"
] | null | null | null | cpp/accelerated_c++/chapter08/my_max.cc | zhouzhiqi/book_and_code | 3ffadd6cb721af280a00c1e1f97d509ab4b210ab | [
"Apache-2.0"
] | null | null | null | template <class T>
T max(const T& left, const T& right)
{
return left > right ? left : right;
}
| 14.142857 | 36 | 0.636364 | zhouzhiqi |
e6c70fea1a7bfd84c3ff6fd041fb3ef65e4992a2 | 28,735 | cpp | C++ | csl/cslbase/arith12.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/arith12.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/arith12.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | // arith12.cpp Copyright (C) 1990-2020 Codemist
//
// Arithmetic functions... specials for Reduce (esp. factoriser)
//
//
/**************************************************************************
* Copyright (C) 2020, Codemist. A C Norman *
* ... | 35.344403 | 94 | 0.569549 | arthurcnorman |
e6ce22d78d8edf8283a150c8442b93af4b801a54 | 28,405 | cpp | C++ | reve/reve/lib/Assignment.cpp | mattulbrich/llreve | 68cb958c1c02177fa0db1965a8afd879a97c2fc4 | [
"BSD-3-Clause"
] | 20 | 2016-08-11T19:51:13.000Z | 2021-09-02T13:10:58.000Z | reve/reve/lib/Assignment.cpp | mattulbrich/llreve | 68cb958c1c02177fa0db1965a8afd879a97c2fc4 | [
"BSD-3-Clause"
] | 9 | 2016-08-11T11:59:24.000Z | 2021-07-16T09:44:28.000Z | reve/reve/lib/Assignment.cpp | mattulbrich/llreve | 68cb958c1c02177fa0db1965a8afd879a97c2fc4 | [
"BSD-3-Clause"
] | 7 | 2017-08-19T14:42:27.000Z | 2020-05-20T16:14:13.000Z | /*
* This file is part of
* llreve - Automatic regression verification for LLVM programs
*
* Copyright (C) 2016 Karlsruhe Institute of Technology
*
* The system is published under a BSD license.
* See LICENSE (distributed with this file) for details.
*/
#include "Assignment.h"
#include "Helper.h"
#include ... | 41.58858 | 80 | 0.545256 | mattulbrich |
e6d12ea3f53d333c65b074f699c0a1393446eabd | 1,121 | hpp | C++ | include/disccord/models/invite_metadata.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 44 | 2016-09-19T15:28:25.000Z | 2018-08-09T13:17:40.000Z | include/disccord/models/invite_metadata.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 44 | 2016-11-03T17:27:30.000Z | 2017-12-10T16:17:31.000Z | include/disccord/models/invite_metadata.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 13 | 2016-11-01T00:17:20.000Z | 2018-08-03T19:51:16.000Z | #ifndef _invite_metadata_hpp_
#define _invite_metadata_hpp_
#include <disccord/models/entity.hpp>
#include <disccord/models/user.hpp>
namespace disccord
{
namespace models
{
class invite_metadata : public model
{
public:
invite_metadata();
virtual ~i... | 26.690476 | 75 | 0.531668 | FiniteReality |
e6d47cd0d1594ea1ed44564eb7577a032c12856e | 2,069 | cc | C++ | flare/base/buffer/zero_copy_stream_test.cc | AriCheng/flare | b2c84588fe4ac52f0875791d22284d7e063fd057 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 868 | 2021-05-28T04:00:22.000Z | 2022-03-31T08:57:14.000Z | flare/base/buffer/zero_copy_stream_test.cc | AriCheng/flare | b2c84588fe4ac52f0875791d22284d7e063fd057 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 33 | 2021-05-28T08:44:47.000Z | 2021-09-26T13:09:21.000Z | flare/base/buffer/zero_copy_stream_test.cc | AriCheng/flare | b2c84588fe4ac52f0875791d22284d7e063fd057 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 122 | 2021-05-28T08:22:23.000Z | 2022-03-29T09:52:09.000Z | // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// Unless req... | 32.328125 | 80 | 0.740938 | AriCheng |
e6d4a327d3d13fc6a4257f7e90bb4aa25e33cd21 | 1,707 | cpp | C++ | scss/class/class3.cpp | chth2116/Faux-Compania | c8bc0e06ee5c67c59334195817b831481b9125ee | [
"MIT"
] | null | null | null | scss/class/class3.cpp | chth2116/Faux-Compania | c8bc0e06ee5c67c59334195817b831481b9125ee | [
"MIT"
] | null | null | null | scss/class/class3.cpp | chth2116/Faux-Compania | c8bc0e06ee5c67c59334195817b831481b9125ee | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void passByValue(int a){
a++;
}
void passByPointer(int *ptr){
//this will give same address as that stored in b (ptr and b are pointing to the same location)
cout << "address stored in ptr " << ptr << endl;
*ptr = *ptr + 1; // this is the same as: (*ptr)++
}
int main(... | 32.826923 | 123 | 0.66198 | chth2116 |
5c798c111fb83e1cefd54d1eff981c94f1ffdad7 | 4,499 | cc | C++ | moui/core/android/device_android.cc | ollix/moui | 4a931aa15fac42b308baae170a855c2d78f9ee9f | [
"Apache-2.0"
] | 59 | 2015-01-23T01:02:50.000Z | 2021-11-26T00:01:45.000Z | moui/core/android/device_android.cc | ollix/moui | 4a931aa15fac42b308baae170a855c2d78f9ee9f | [
"Apache-2.0"
] | 2 | 2017-05-26T15:26:24.000Z | 2020-09-25T03:54:01.000Z | moui/core/android/device_android.cc | ollix/moui | 4a931aa15fac42b308baae170a855c2d78f9ee9f | [
"Apache-2.0"
] | 7 | 2015-09-25T08:09:20.000Z | 2019-11-24T15:24:28.000Z | // Copyright (c) 2014 Ollix. 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 ... | 33.325926 | 76 | 0.728829 | ollix |
5c7d39a14fee99e4e5118aa6274302513e7e3236 | 29,733 | hh | C++ | dune/ax1/acme2/common/acme2_setup.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | dune/ax1/acme2/common/acme2_setup.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | dune/ax1/acme2/common/acme2_setup.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | #ifndef DUNE_AX1_ACME2_SETUP_HH
#define DUNE_AX1_ACME2_SETUP_HH
#include <dune/common/array.hh>
#include <dune/pdelab/backend/istlvectorbackend.hh>
//#include<dune/pdelab/finiteelementmap/q12dfem.hh>
//#include<dune/pdelab/finiteelementmap/q22dfem.hh>
#include <dune/pdelab/common/clock.hh>
#include <dune/pdelab/finit... | 48.82266 | 118 | 0.633908 | pederpansen |
5c82413d5761ffbcb270d723db59c0aae19fb02d | 1,573 | cpp | C++ | tests/statement_serializator_tests/arithmetic_operators.cpp | tstrutz/sqlite_orm | 1ee0a8653fe57ed4d4f69b5a65839b1861c41d32 | [
"BSD-3-Clause"
] | 1,566 | 2016-12-20T15:31:04.000Z | 2022-03-31T18:17:34.000Z | tests/statement_serializator_tests/arithmetic_operators.cpp | tstrutz/sqlite_orm | 1ee0a8653fe57ed4d4f69b5a65839b1861c41d32 | [
"BSD-3-Clause"
] | 620 | 2017-01-06T13:53:35.000Z | 2022-03-31T12:05:50.000Z | tests/statement_serializator_tests/arithmetic_operators.cpp | tstrutz/sqlite_orm | 1ee0a8653fe57ed4d4f69b5a65839b1861c41d32 | [
"BSD-3-Clause"
] | 274 | 2017-01-07T05:34:24.000Z | 2022-03-27T18:22:47.000Z | #include <sqlite_orm/sqlite_orm.h>
#include <catch2/catch.hpp>
using namespace sqlite_orm;
TEST_CASE("statement_serializator arithmetic operators") {
internal::serializator_context_base context;
SECTION("add") {
std::string value;
SECTION("func") {
value = serialize(add(3, 5), cont... | 26.661017 | 63 | 0.479975 | tstrutz |
5c84be2240a447f3a324bf46e131da0f9d3bbce4 | 263 | cpp | C++ | Code full house/buoi19 nguyen dinh trung duc/bai1146A.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/buoi19 nguyen dinh trung duc/bai1146A.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/buoi19 nguyen dinh trung duc/bai1146A.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | /*bai 1146A*/
#include<stdio.h>
#include<string.h>
int main(){
char c[100];
scanf("%s",c);
int i,cnt=0;
int len=strlen(c);
for(i=0; i<len;i++){
if((c[i]-'a')==0) cnt++;
}
if(cnt>(len/2)){
printf("%d",len);
return 0;
}
else printf("%d",2*cnt-1);
}
| 13.842105 | 27 | 0.528517 | ducyb2001 |
5c867d124d49f0d0a622157b48250bf937968b74 | 5,186 | cc | C++ | tools/graft/graft.cc | fcharlie/git-analyze-sync | 1c974ac4b6f695c01ee666aff60d7817f6c0acaf | [
"MIT"
] | 1 | 2021-02-18T06:12:13.000Z | 2021-02-18T06:12:13.000Z | tools/graft/graft.cc | fcharlie/git-analyze-sync | 1c974ac4b6f695c01ee666aff60d7817f6c0acaf | [
"MIT"
] | 1 | 2021-08-28T14:08:30.000Z | 2021-08-28T14:09:32.000Z | tools/graft/graft.cc | fcharlie/git-analyze-sync | 1c974ac4b6f695c01ee666aff60d7817f6c0acaf | [
"MIT"
] | 1 | 2021-08-28T14:00:29.000Z | 2021-08-28T14:00:29.000Z | /// THIS IS GRAFT COMMAND
#include <cstdio>
#include <cstdlib>
#include <string>
#include <string_view>
#include <argv.hpp>
#include <git.hpp>
#include <optional>
#include <console.hpp>
#include <os.hpp>
struct graft_info_t {
std::string gitdir{"."};
std::string branch;
std::string commitid;
std::string messag... | 26.324873 | 79 | 0.599306 | fcharlie |
5c882414a57083cd60b3f99239924d5285baf426 | 1,315 | cpp | C++ | monitor.cpp | n7jti/Freezer-Monitor-AWS-SNS | 3eeb19135582839ae84943cfd0310a6b22a11853 | [
"MIT"
] | null | null | null | monitor.cpp | n7jti/Freezer-Monitor-AWS-SNS | 3eeb19135582839ae84943cfd0310a6b22a11853 | [
"MIT"
] | null | null | null | monitor.cpp | n7jti/Freezer-Monitor-AWS-SNS | 3eeb19135582839ae84943cfd0310a6b22a11853 | [
"MIT"
] | null | null | null | // monitor.cpp
#include <arduino.h>
#include "monitor.h"
Monitor::Monitor(Trigger *trigger, unsigned int timeout)
: _trigger(trigger)
, _timeout(timeout)
, _state(MONITOR_GREEN)
, _stateStartMs(millis())
{
}
bool Monitor::begin()
{
return _trigger->begin();
}
MONITOR_STATE Monitor::getState()... | 18.785714 | 57 | 0.571103 | n7jti |
5c8f9c5ab8dcad47af31d168f5086a6febef5480 | 633 | cpp | C++ | leetcode/844. Backspace String Compare/s1.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | 1 | 2021-02-09T11:38:51.000Z | 2021-02-09T11:38:51.000Z | leetcode/844. Backspace String Compare/s1.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | leetcode/844. Backspace String Compare/s1.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | // OJ: https://leetcode.com/problems/backspace-string-compare/
// Author: github.com/lzl124631x
// Time: O(N)
// Space: O(1)
class Solution {
private:
int normalize(string &S) {
int length = 0;
for (char c : S) {
if (c == '#') {
if (length) --length;
} else S[... | 25.32 | 62 | 0.478673 | contacttoakhil |
5c97bbc3bf52ba514bb696920cb6b0b0f6d832af | 4,904 | hpp | C++ | include/argot/case/detail/as_constant.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 49 | 2018-05-09T23:17:45.000Z | 2021-07-21T10:05:19.000Z | include/argot/case/detail/as_constant.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | null | null | null | include/argot/case/detail/as_constant.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 2 | 2019-08-04T03:51:36.000Z | 2020-12-28T06:53:29.000Z | /*==============================================================================
Copyright (c) 2017, 2018 Matt Calabrese
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)
=============================================... | 31.844156 | 90 | 0.727977 | mattcalabrese |
5c9a2e881e4074428205f84ee26402159f5a20a7 | 5,794 | hpp | C++ | INCLUDE/Vcl/dblocal.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | 1 | 2022-01-13T01:03:55.000Z | 2022-01-13T01:03:55.000Z | INCLUDE/Vcl/dblocal.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | INCLUDE/Vcl/dblocal.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | // Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'DBLocal.pas' rev: 6.00
#ifndef DBLocalHPP
#define DBLocalHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Provider.... | 38.626667 | 127 | 0.746634 | earthsiege2 |
5ca36a3257ea70050ddcc68b9a46f3ad7cd8660b | 479 | cpp | C++ | MonoNative.Tests/mscorlib/System/mscorlib_System_IDisposable_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/mscorlib_System_IDisposable_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/mscorlib_System_IDisposable_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System
// Name: IDisposable
// C++ Typed Name: mscorlib::System::IDisposable
#include <gtest/gtest.h>
#include <mscorlib/System/mscorlib_System_IDisposable.h>
namespace mscorlib
{
namespac... | 15.451613 | 88 | 0.716075 | brunolauze |
5ca6e5bcac7c9d5625a7186af86632f2520fbd60 | 498 | hpp | C++ | src/entt/container/fwd.hpp | pgruenbacher/entt | 2f06d1ce3c99c49ef61d7bc2080a16cdaa08e3ef | [
"MIT"
] | 6,792 | 2017-03-27T19:05:19.000Z | 2022-03-31T20:21:26.000Z | src/entt/container/fwd.hpp | pgruenbacher/entt | 2f06d1ce3c99c49ef61d7bc2080a16cdaa08e3ef | [
"MIT"
] | 764 | 2017-05-22T18:48:53.000Z | 2022-03-31T22:04:27.000Z | src/entt/container/fwd.hpp | pgruenbacher/entt | 2f06d1ce3c99c49ef61d7bc2080a16cdaa08e3ef | [
"MIT"
] | 811 | 2017-03-27T19:52:48.000Z | 2022-03-30T11:32:57.000Z | #ifndef ENTT_CONTAINER_FWD_HPP
#define ENTT_CONTAINER_FWD_HPP
#include <functional>
#include <memory>
namespace entt {
template<
typename Key, typename Type,
typename = std::hash<Key>,
typename = std::equal_to<Key>,
typename = std::allocator<std::pair<const Key, Type>>>
class dense_hash_map;
templat... | 19.153846 | 58 | 0.704819 | pgruenbacher |
5cb857f907b589bbfea31f9fc79c3dbc46b0dcfd | 1,006 | hpp | C++ | src/XmlNya.hpp | Akela1101/nya_qt | a305158af3a764b6856d977f4d95fa2c5649793c | [
"MIT"
] | null | null | null | src/XmlNya.hpp | Akela1101/nya_qt | a305158af3a764b6856d977f4d95fa2c5649793c | [
"MIT"
] | null | null | null | src/XmlNya.hpp | Akela1101/nya_qt | a305158af3a764b6856d977f4d95fa2c5649793c | [
"MIT"
] | null | null | null | #ifndef XMLNYA_H
#define XMLNYA_H
/*
Usage:
while( ss.ReadNextChild() )
{
QStringRef s = ss.name();
if( s == "a1" ) a1 = ss.ReadElement().toLatin1();
else if( s == "a2" ) a2 = ss.ReadElement().toDouble();
// ...
else ss.SkipElement();
}
*/
#include <QXmlStreamReader>
#include <QHash>
typedef QXmlStream... | 21.404255 | 97 | 0.709742 | Akela1101 |
5cba5821036a75b51b930ef28ed3d58167ff16a5 | 3,802 | cpp | C++ | volume_II/acm_1103.cpp | raidenluikang/acm.timus.ru | 9b7c99eb03959acff9dd96326eec642a2c31ed04 | [
"MIT"
] | null | null | null | volume_II/acm_1103.cpp | raidenluikang/acm.timus.ru | 9b7c99eb03959acff9dd96326eec642a2c31ed04 | [
"MIT"
] | null | null | null | volume_II/acm_1103.cpp | raidenluikang/acm.timus.ru | 9b7c99eb03959acff9dd96326eec642a2c31ed04 | [
"MIT"
] | null | null | null | /* acm.timus.ru 1103. Pencils and Circles
*
* Strategy:
* Pick two points on the convex hull of the point set. If we form a circle with some other point,
* the largest such circle will encompass all points, the second largest will encompass all points
* except for one, etc. The angle formed by the two static poin... | 21.480226 | 98 | 0.477117 | raidenluikang |
5cc12a461f6665742765d93cfcce70a8df291a5f | 17,569 | hpp | C++ | delaunay.hpp | GoldFeniks/delaunay | a96621d28a57bd6c73fbecf0ae5347714a3ed07e | [
"MIT"
] | null | null | null | delaunay.hpp | GoldFeniks/delaunay | a96621d28a57bd6c73fbecf0ae5347714a3ed07e | [
"MIT"
] | 1 | 2021-01-31T11:20:44.000Z | 2021-02-01T00:16:53.000Z | delaunay.hpp | GoldFeniks/delaunay | a96621d28a57bd6c73fbecf0ae5347714a3ed07e | [
"MIT"
] | null | null | null | #pragma once
#include <list>
#include <tuple>
#include <cmath>
#include <limits>
#include <vector>
#include <cstddef>
#include <utility>
#include <algorithm>
template<typename T>
class delaunay_triangulation {
private:
class edge;
class point;
class triangle;
template<typename V>
class data_valu... | 31.655856 | 133 | 0.499516 | GoldFeniks |
5cc1cf304df5d0e0ab2a5b795ba88053dd55eb2e | 881 | cpp | C++ | src/Renderer/FE_GPU_Info.cpp | antsouchlos/OxygenEngine | 11ecc13e60f8e1e3a89dee18d07b25ac5e1b0e48 | [
"MIT"
] | null | null | null | src/Renderer/FE_GPU_Info.cpp | antsouchlos/OxygenEngine | 11ecc13e60f8e1e3a89dee18d07b25ac5e1b0e48 | [
"MIT"
] | null | null | null | src/Renderer/FE_GPU_Info.cpp | antsouchlos/OxygenEngine | 11ecc13e60f8e1e3a89dee18d07b25ac5e1b0e48 | [
"MIT"
] | null | null | null | #include "FE_GPU_Info.h"
FE_GPU_Info::FE_GPU_Info()
{
//ctor
}
FE_GPU_Info::~FE_GPU_Info()
{
//dtor
}
// find GPU objects by name easily
size_t FE_GPU_Info::findVBO(string a_name){
//cout << vbos.size() << endl;
for(size_t x =0; x < vbos.size(); x++)
if(vbos[x].name == a_name){
return x;
... | 19.577778 | 47 | 0.582293 | antsouchlos |
5ccc2ae6acfeabfdc89ea685ee02dff9a26be907 | 2,459 | cpp | C++ | taco-oopsla2017/src/io/tns_file_format.cpp | peterahrens/FillEstimationIPDPS2017 | 857b6ee8866a2950aa5721d575d2d7d0797c4302 | [
"BSD-3-Clause"
] | null | null | null | taco-oopsla2017/src/io/tns_file_format.cpp | peterahrens/FillEstimationIPDPS2017 | 857b6ee8866a2950aa5721d575d2d7d0797c4302 | [
"BSD-3-Clause"
] | null | null | null | taco-oopsla2017/src/io/tns_file_format.cpp | peterahrens/FillEstimationIPDPS2017 | 857b6ee8866a2950aa5721d575d2d7d0797c4302 | [
"BSD-3-Clause"
] | null | null | null | #include "taco/io/tns_file_format.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <cmath>
#include <limits.h>
#include "taco/tensor.h"
#include "taco/format.h"
#include "taco/error.h"
#include "taco/util/strings.h"
using namespace std;
namespace taco {
na... | 24.838384 | 80 | 0.647824 | peterahrens |
5ccee7478fd0e8a053cba7962f9c04078dc9395c | 760 | cpp | C++ | TypesetWidget/commanddeletetext.cpp | Math-Collection/YAWYSIWYGEE-Qt-Equation-Editor-Widget | c4e177bff5edff8122ec73a7ed8f325b42fc74b4 | [
"MIT"
] | 2 | 2020-03-28T15:35:08.000Z | 2021-01-10T06:50:05.000Z | TypesetWidget/commanddeletetext.cpp | Qt-Widgets/YAWYSIWYGEE-Qt-Equation-Editor-Widget | 040383a8db795bb863c451caf4022018181afaf1 | [
"MIT"
] | null | null | null | TypesetWidget/commanddeletetext.cpp | Qt-Widgets/YAWYSIWYGEE-Qt-Equation-Editor-Widget | 040383a8db795bb863c451caf4022018181afaf1 | [
"MIT"
] | null | null | null | #include "commanddeletetext.h"
#include "cursor.h"
namespace Typeset{
CommandDeleteText::CommandDeleteText(Cursor& cursor, Text* t, QTextCursor cL, QTextCursor cR)
: cursor(cursor),
t(t) {
pL = cL.position();
pR = cR.position();
c = cL;
c.setPosition(cR.position(), QTextCursor::KeepAnchor);... | 21.714286 | 93 | 0.643421 | Math-Collection |
5cd323e2d31d861165bfadfdce0e6c41f0e91ca8 | 4,970 | tcc | C++ | flens/blas/level1/raxpy.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 98 | 2015-01-26T20:31:37.000Z | 2021-09-09T15:51:37.000Z | flens/blas/level1/raxpy.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 16 | 2015-01-21T07:43:45.000Z | 2021-12-06T12:08:36.000Z | flens/blas/level1/raxpy.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 31 | 2015-01-05T08:06:45.000Z | 2022-01-26T20:12:00.000Z | /*
* Copyright (c) 2012, Michael Lehn
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1) Redistributions of source code must retain the above copyright
* notice,... | 30.121212 | 78 | 0.645272 | stip |
5cd3570a357b9a4becdc314a42657c5218f9cf78 | 309 | cpp | C++ | examples/qcor_demos/pnnl_tutorials/1_kernels/ccnot_qfast.cpp | vetter/qcor | 6f86835737277a26071593bb10dd8627c29d74a3 | [
"BSD-3-Clause"
] | 59 | 2019-08-22T18:40:38.000Z | 2022-03-09T04:12:42.000Z | examples/qcor_demos/pnnl_tutorials/1_kernels/ccnot_qfast.cpp | vetter/qcor | 6f86835737277a26071593bb10dd8627c29d74a3 | [
"BSD-3-Clause"
] | 137 | 2019-09-13T15:50:18.000Z | 2021-12-06T14:19:46.000Z | examples/qcor_demos/pnnl_tutorials/1_kernels/ccnot_qfast.cpp | vetter/qcor | 6f86835737277a26071593bb10dd8627c29d74a3 | [
"BSD-3-Clause"
] | 26 | 2019-07-08T17:30:35.000Z | 2021-12-03T16:24:12.000Z |
__qpu__ void ccnot(qreg q) {
decompose {
UnitaryMatrix ccnot_mat = UnitaryMatrix::Identity(8, 8);
ccnot_mat(6, 6) = 0.0;
ccnot_mat(7, 7) = 0.0;
ccnot_mat(6, 7) = 1.0;
ccnot_mat(7, 6) = 1.0;
}
(q, QFAST);
}
int main() {
auto q = qalloc(3);
ccnot::print_kernel(q);
return 0;
} | 17.166667 | 60 | 0.572816 | vetter |
5cd7b02652bcf3eb19abc275c3682832010e23a3 | 398 | cpp | C++ | src/algos/connection.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | 5 | 2016-03-17T07:02:11.000Z | 2021-12-12T14:43:58.000Z | src/algos/connection.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | null | null | null | src/algos/connection.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | 3 | 2015-10-29T15:21:01.000Z | 2020-11-25T09:41:21.000Z | /*
* connection.cpp
*
* Created on: Apr 30, 2013
* Author: boettgerj
*/
#include "connection.h"
#include "qmath.h"
Connection::Connection( QVector3D fn, QVector3D diff, float v ) :
fn( fn ),
diff( diff ),
v( v )
{
QVector3D diffn = diff.normalized();
r=qAbs(diffn.x());
g=... | 13.724138 | 65 | 0.557789 | mhough |
5ce80c86538d991c55a3fe4c1c3693a440ac9c49 | 405 | hpp | C++ | src/games/chess.hpp | RememberOfLife/mirabel | 4ff62d6b9dbb0bde6a9755e9e2b1fca88baed8af | [
"MIT"
] | 2 | 2022-03-29T08:39:24.000Z | 2022-03-30T09:22:18.000Z | src/games/chess.hpp | RememberOfLife/mirabel | 4ff62d6b9dbb0bde6a9755e9e2b1fca88baed8af | [
"MIT"
] | null | null | null | src/games/chess.hpp | RememberOfLife/mirabel | 4ff62d6b9dbb0bde6a9755e9e2b1fca88baed8af | [
"MIT"
] | null | null | null | #pragma once
#include "surena/game.h"
#include "games/game_catalogue.hpp"
namespace Games {
class Chess : public BaseGameVariant {
public:
Chess();
~Chess();
game* new_game() override;
void draw_options() override;
void draw_state_editor(game*... | 18.409091 | 65 | 0.582716 | RememberOfLife |
5cee282eefe7faf54143a5c8da6d24341b0e2de5 | 4,436 | cpp | C++ | src_smartcontract/lang/sc_expression/ConstructorArray.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract/lang/sc_expression/ConstructorArray.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract/lang/sc_expression/ConstructorArray.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* ConstructorArray.cpp
*
* Created on: 2020/02/12
* Author: iizuka
*/
#include "lang/sc_expression/ConstructorArray.h"
#include "engine/sc_analyze/AnalyzeContext.h"
#include "engine/sc_analyze/AnalyzedType.h"
#include "engine/sc_analyze/AnalyzedThisClassStackPopper.h"
#include "engine/sc_analyze/Validat... | 24.240437 | 129 | 0.714833 | alinous-core |
5cf4de84e9ae80dd20b510e889854a9125e9131b | 17,124 | cpp | C++ | codec/encoder/core/src/svc_mode_decision.cpp | zhuling13/openh264 | 47a2e65327e0081bac87529ed26cfbc377ed4ddc | [
"BSD-2-Clause"
] | null | null | null | codec/encoder/core/src/svc_mode_decision.cpp | zhuling13/openh264 | 47a2e65327e0081bac87529ed26cfbc377ed4ddc | [
"BSD-2-Clause"
] | null | null | null | codec/encoder/core/src/svc_mode_decision.cpp | zhuling13/openh264 | 47a2e65327e0081bac87529ed26cfbc377ed4ddc | [
"BSD-2-Clause"
] | null | null | null | /*!
* \copy
* Copyright (c) 2009-2013, Cisco Systems
* 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 abo... | 41.362319 | 134 | 0.683076 | zhuling13 |
9dc660aa4e41a0a15474be534d00deb672134692 | 5,962 | cpp | C++ | xlw/InterfaceGenerator/ParserData.cpp | jbriand/xlw | 82b98a12f3c99876e54baa33ff2cb6786df141f7 | [
"BSD-3-Clause"
] | 34 | 2020-08-10T16:06:50.000Z | 2022-03-02T18:58:03.000Z | xlw/InterfaceGenerator/ParserData.cpp | jbriand/xlw | 82b98a12f3c99876e54baa33ff2cb6786df141f7 | [
"BSD-3-Clause"
] | 18 | 2020-08-02T23:31:28.000Z | 2022-03-29T11:55:06.000Z | xlw/InterfaceGenerator/ParserData.cpp | jbriand/xlw | 82b98a12f3c99876e54baa33ff2cb6786df141f7 | [
"BSD-3-Clause"
] | 11 | 2020-07-27T20:44:10.000Z | 2022-02-02T20:58:59.000Z |
/*
Copyright (C) 2006 Mark Joshi
Copyright (C) 2007, 2008 Eric Ehlers
Copyright (C) 2011 Narinder Claire
This file is part of XLW, a free-software/open-source C++ wrapper of the
Excel C API - https://xlw.github.io/
XLW is free software: you can redistribute it and/or modify it under the
terms of the XLW licen... | 28.526316 | 87 | 0.626468 | jbriand |
9dc6aa79772b5cec8310264f1cedb43cc91d9598 | 5,042 | hpp | C++ | include/codegen/include/Zenject/ConventionBindInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/ConventionBindInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/ConventionBindInfo.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:42 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 46.256881 | 149 | 0.735026 | Futuremappermydud |
9dc97e63f1312f8a4b80091897bc140aa30d23e8 | 2,742 | cpp | C++ | fifa_gp/predict.cpp | vittorioorlandi/STA663_FIFA_GP | cb5532f8104fa630b8ea6930f414e3228349ae52 | [
"MIT"
] | null | null | null | fifa_gp/predict.cpp | vittorioorlandi/STA663_FIFA_GP | cb5532f8104fa630b8ea6930f414e3228349ae52 | [
"MIT"
] | null | null | null | fifa_gp/predict.cpp | vittorioorlandi/STA663_FIFA_GP | cb5532f8104fa630b8ea6930f414e3228349ae52 | [
"MIT"
] | null | null | null | #include <random>
#include <Eigen/Dense>
#include "HODLR_Tree.hpp"
#include <pybind11/pybind11.h>
#include <pybind11/eigen.h>
#include <squaredeMat.hpp> //squared exponential kernel
#include <squaredeP1Mat.hpp>
using std::normal_distribution;
namespace py = pybind11;
Eigen::MatrixXd predict(Eigen::MatrixXd X, Eigen::... | 29.804348 | 217 | 0.598833 | vittorioorlandi |
9dd2e4bb8318b8f7298242866853681f7f10c2f7 | 8,950 | cpp | C++ | src/qt/qtbase/tests/auto/dbus/qdbusservicewatcher/tst_qdbusservicewatcher.cpp | zwollerob/PhantomJS_AMR6VL | 71c126e98a8c32950158d04d0bd75823cd008b99 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/auto/dbus/qdbusservicewatcher/tst_qdbusservicewatcher.cpp | zwollerob/PhantomJS_AMR6VL | 71c126e98a8c32950158d04d0bd75823cd008b99 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/auto/dbus/qdbusservicewatcher/tst_qdbusservicewatcher.cpp | zwollerob/PhantomJS_AMR6VL | 71c126e98a8c32950158d04d0bd75823cd008b99 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... | 33.395522 | 105 | 0.694637 | zwollerob |
9dd2fbd09ba6dcd244a3d62627615d9dee4ca6ac | 16,202 | cpp | C++ | src/core/commands.cpp | sellesoft/deshi | 0bcd13bce29278f89fe6fe7b6658df349c104ee2 | [
"Unlicense"
] | null | null | null | src/core/commands.cpp | sellesoft/deshi | 0bcd13bce29278f89fe6fe7b6658df349c104ee2 | [
"Unlicense"
] | null | null | null | src/core/commands.cpp | sellesoft/deshi | 0bcd13bce29278f89fe6fe7b6658df349c104ee2 | [
"Unlicense"
] | null | null | null | /*Index:
@vars
@add
@run
@init
*/
#include "memory.h"
#define DESHI_CMD_START(name, desc) \
deshi__last_cmd_desc = str8_lit(desc); \
auto deshi__cmd__##name = [](str8* args, u32 arg_count) -> void
#define DESHI_CMD_END_NO_ARGS(name) \
; \
cmd_add(deshi__cmd__##name, str8_lit(#name), deshi__last_cmd_desc, 0, 0)
#def... | 34.545842 | 133 | 0.660351 | sellesoft |
9dd39adbcf01df8879247d8e0f45898bc7bd4eea | 1,628 | cpp | C++ | LinkedList/0002-Add-Two-Numbers/main.cpp | FeiZhao0531/PlayLeetCode | ed23477fd6086d5139bda3d93feeabc09b06854d | [
"MIT"
] | 5 | 2019-05-11T18:33:32.000Z | 2019-12-13T09:13:02.000Z | LinkedList/0002-Add-Two-Numbers/main.cpp | FeiZhao0531/PlayLeetCode | ed23477fd6086d5139bda3d93feeabc09b06854d | [
"MIT"
] | null | null | null | LinkedList/0002-Add-Two-Numbers/main.cpp | FeiZhao0531/PlayLeetCode | ed23477fd6086d5139bda3d93feeabc09b06854d | [
"MIT"
] | null | null | null | /// Source : https://leetcode.com/problems/add-two-numbers/description/
/// Author : Fei
/// Time : Jun-4-2019
#include "../SingleLinkedList.h"
#include "../SingleLinkedList.cpp"
#include <cassert>
using namespace std;
class Solution
{
public:
class Solution {
public:
ListNode* addTwoNumbers(ListNode* l1, List... | 25.046154 | 71 | 0.565725 | FeiZhao0531 |
9dd7e968b3ad4c4aa4f1ecf9cae9d75fd798df51 | 1,557 | cpp | C++ | test/test.cpp | jermp/mm_file | ed6dbb828d7ed85128241ef6693bf383d7f7cb2d | [
"MIT"
] | 8 | 2019-06-06T13:31:01.000Z | 2022-02-09T01:35:48.000Z | test/test.cpp | jermp/mm_file | ed6dbb828d7ed85128241ef6693bf383d7f7cb2d | [
"MIT"
] | null | null | null | test/test.cpp | jermp/mm_file | ed6dbb828d7ed85128241ef6693bf383d7f7cb2d | [
"MIT"
] | 1 | 2020-10-30T19:35:30.000Z | 2020-10-30T19:35:30.000Z | #include <iostream>
#include "../include/mm_file/mm_file.hpp"
int main() {
std::string filename("./tmp.bin");
static const size_t n = 13;
{
// write n uint32_t integers
mm::file_sink<uint32_t> fout(filename, n);
std::cout << "mapped " << fout.bytes() << " bytes "
... | 27.803571 | 71 | 0.478484 | jermp |
9de2b001e9267ff1935a2426223f12bf406b5efe | 225 | cpp | C++ | Pack_plugins/Pack_tool/ToolsModel.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | 1 | 2019-12-25T13:36:01.000Z | 2019-12-25T13:36:01.000Z | Pack_plugins/Pack_tool/ToolsModel.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | null | null | null | Pack_plugins/Pack_tool/ToolsModel.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | 1 | 2020-08-05T14:05:15.000Z | 2020-08-05T14:05:15.000Z | #include "ToolsModel.h"
#include <QDesktopServices>
#include <QUrl>
ToolsModel::ToolsModel(QObject *parent) : QObject(parent)
{
}
void ToolsModel::openUrl(const QString &url)
{
QDesktopServices::openUrl(QUrl(url));
}
| 16.071429 | 57 | 0.728889 | GreatCong |
9de6658e6542fb507a086f453e6e84eafe9c93fa | 1,155 | cpp | C++ | c10/10.5.cpp | sarthak-gupta-sg/hello-world | 324f321a5454964b35b8399884d8c99971bd3425 | [
"Apache-2.0"
] | null | null | null | c10/10.5.cpp | sarthak-gupta-sg/hello-world | 324f321a5454964b35b8399884d8c99971bd3425 | [
"Apache-2.0"
] | null | null | null | c10/10.5.cpp | sarthak-gupta-sg/hello-world | 324f321a5454964b35b8399884d8c99971bd3425 | [
"Apache-2.0"
] | 1 | 2020-05-30T04:30:16.000Z | 2020-05-30T04:30:16.000Z | #include <iostream>
#include <algorithm>
#include <vector>
#include <list>
#include <cstring>
using namespace std;
int main()
{
vector<const char * > roster1 { "abc", "def", "ghi"};
list<const char * > roster2 { "abc", "def", "ghi"};
//list<const char * > roster2(roster1.cbegin(), roster1.cend());
boo... | 26.25 | 80 | 0.505628 | sarthak-gupta-sg |
9df5a52a4836c72b14bdce9701b3cab75024ea52 | 955 | hpp | C++ | plugins/d3d9/include/sge/d3d9/state/core/depth_stencil/depth/visitor.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/d3d9/include/sge/d3d9/state/core/depth_stencil/depth/visitor.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/d3d9/include/sge/d3d9/state/core/depth_stencil/depth/visitor.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_D3D9_STATE_CORE_DEPTH_STENCIL_DEPTH_VISITOR_HPP_INCLUDED
#define SGE_D3D9_STATE_CORE_DE... | 21.704545 | 98 | 0.762304 | cpreh |
9dfe69429c5cf404fde62bcfe39ee68802b20349 | 1,064 | hpp | C++ | Embedded/terranova_sketch/ImuSensor.hpp | dhawkes36/TerraNova | 8fc460d5f221370c8f0b84851c72432dea148b4e | [
"MIT"
] | null | null | null | Embedded/terranova_sketch/ImuSensor.hpp | dhawkes36/TerraNova | 8fc460d5f221370c8f0b84851c72432dea148b4e | [
"MIT"
] | null | null | null | Embedded/terranova_sketch/ImuSensor.hpp | dhawkes36/TerraNova | 8fc460d5f221370c8f0b84851c72432dea148b4e | [
"MIT"
] | null | null | null | #pragma once
#include <Arduino.h>
#include <Wire.h>
#include <math.h>
#include "SparkFunLSM9DS1.h"
#define LSM9DS1_M 0x1E // Would be 0x1C if SDO_M is LOW
#define LSM9DS1_AG 0x6B // Would be 0x6A if SDO_AG is LOW
// Earth's magnetic field varies by location. Add or subtract
// a declination to get a more accurate... | 19.703704 | 108 | 0.668233 | dhawkes36 |
3b01bb6578e79315fcb1c382fa78278162bf3488 | 885 | hpp | C++ | code/include/common/Mutex.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | code/include/common/Mutex.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | code/include/common/Mutex.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | /**
* @file common/Mutex.hpp
* @brief Defines the Mutex class
*/
#pragma once
#ifdef __SWITCH__
#include <sys/lock.h>
#else
#ifdef __PC__
#include <mutex>
#endif
#endif
namespace id {
/**
* @brief A mutex
*/
class Mutex {
public:
/**
* @brief Creates the m... | 16.388889 | 47 | 0.444068 | StuntHacks |
3b0498e0685a650933d0c9e4519fc67dc41c8d3b | 4,840 | cpp | C++ | tank_demo.cpp | alerdenisov/eos-tank-demo | 9ef62fc22e8998d091d09298b0ffbd321e1f8cc2 | [
"MIT"
] | 13 | 2017-08-02T03:59:45.000Z | 2021-04-20T04:12:40.000Z | tank_demo.cpp | philsong/eos-tank-demo | 9ef62fc22e8998d091d09298b0ffbd321e1f8cc2 | [
"MIT"
] | 1 | 2021-05-11T02:36:30.000Z | 2021-05-11T02:36:30.000Z | tank_demo.cpp | philsong/eos-tank-demo | 9ef62fc22e8998d091d09298b0ffbd321e1f8cc2 | [
"MIT"
] | 5 | 2017-07-31T05:27:42.000Z | 2019-03-30T09:58:07.000Z | // Copyright (c) 2017 Aler Denisov
// 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, di... | 26.888889 | 81 | 0.718595 | alerdenisov |
3b07a3124914a3223202fbd58b1008a8d750950a | 6,514 | cpp | C++ | widgets/screenshotwidget.cpp | JLIT0/GBox | f5df851534bfb5cbdf0ae84d25e58a6cfdc69241 | [
"Apache-2.0"
] | null | null | null | widgets/screenshotwidget.cpp | JLIT0/GBox | f5df851534bfb5cbdf0ae84d25e58a6cfdc69241 | [
"Apache-2.0"
] | null | null | null | widgets/screenshotwidget.cpp | JLIT0/GBox | f5df851534bfb5cbdf0ae84d25e58a6cfdc69241 | [
"Apache-2.0"
] | null | null | null | /***********************************************************************
*Copyright 2010-20XX by 7ymekk
*
* 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.apach... | 35.98895 | 125 | 0.600399 | JLIT0 |
3b086f8c712fea2e9ee0e96726386d77990daf57 | 1,191 | cpp | C++ | src/lib/ConcurrentLib/ConcurrentObjects.cpp | Korovasoft/Concurrent-GARTH | 2f22c464ce30f743b45bbd6c18a8546bee69be93 | [
"MIT"
] | null | null | null | src/lib/ConcurrentLib/ConcurrentObjects.cpp | Korovasoft/Concurrent-GARTH | 2f22c464ce30f743b45bbd6c18a8546bee69be93 | [
"MIT"
] | null | null | null | src/lib/ConcurrentLib/ConcurrentObjects.cpp | Korovasoft/Concurrent-GARTH | 2f22c464ce30f743b45bbd6c18a8546bee69be93 | [
"MIT"
] | null | null | null | ////////////////////////////////////////
////////////////////////////////////////
//
// Copyright (C) 2014 Korovasoft, Inc.
//
// File:
// \file ConcurrentObjects.cpp
//
// Description:
// \brief ConcurrentObjects Library implementation.
//
// Author:
// \author J. Caleb Wherry
//
///////////////////... | 17.26087 | 78 | 0.555835 | Korovasoft |
3b13b6b256f7e9dd51deb0231598592148539d1c | 23,624 | cpp | C++ | duds/hardware/interface/linux/GpioDevPort.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | duds/hardware/interface/linux/GpioDevPort.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | duds/hardware/interface/linux/GpioDevPort.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | /*
* This file is part of the DUDS project. It is subject to the BSD-style
* license terms in the LICENSE file found in the top-level directory of this
* distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
* No part of DUDS, including this file, may be copied, modified, propagated,
* or dis... | 30.326059 | 84 | 0.696664 | jjackowski |
3b17e9e50f5e642166a51cf5a7d96726f77fd3ed | 38,117 | cpp | C++ | src/library/renderbuffer.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | 1 | 2022-02-15T21:00:31.000Z | 2022-02-15T21:00:31.000Z | src/library/renderbuffer.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | null | null | null | src/library/renderbuffer.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | null | null | null | /**
* swr - a software rasterizer
*
* frame buffer buffer implementation.
*
* \author Felix Lubbe
* \copyright Copyright (c) 2021
* \license Distributed under the MIT software license (see accompanying LICENSE.txt).
*/
/* user headers. */
#include "swr_internal.h"
namespace swr
{
namespace impl
{
/*
* he... | 42.541295 | 242 | 0.626859 | flubbe |
3b19c39ea419dc6a928525f68a89e55b9e06fff5 | 1,549 | cpp | C++ | pihud/src/Event.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | 2 | 2015-01-07T18:36:39.000Z | 2015-01-08T13:54:43.000Z | pihud/src/Event.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | null | null | null | pihud/src/Event.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | null | null | null | #include <pihud/Event.hpp>
namespace PiH
{
Event::Event()
{
type = EventType::NotSet;
}
Event::Event(const InputEvent &inputEvent, int playerID)
{
type = EventType::Input;
input = inputEvent;
this->playerID = playerID;
}
Event::Event(const FocusEvent &focusEvent, i... | 28.163636 | 92 | 0.534538 | maximaximal |
3b226b50358c2dc65cb80efd38d9658b043f2ac0 | 1,114 | cpp | C++ | utility/addressof.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | 47 | 2016-05-20T08:49:47.000Z | 2022-01-03T01:17:07.000Z | utility/addressof.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | null | null | null | utility/addressof.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | 37 | 2016-07-25T04:52:08.000Z | 2022-02-14T03:55:08.000Z | // Copyright (c) 2016
// Author: Chrono Law
#include <std.hpp>
using namespace std;
#include <boost/utility/addressof.hpp>
using namespace boost;
///////////////////////////////////////
void case1()
{
int i;
string s;
assert(&i == boost::addressof(i));
assert(&s == boost::addressof(s));
int a[1... | 15.914286 | 48 | 0.487433 | MaxHonggg |
3b26b2e687ade339b075dcd2ff136e1fb3236ecb | 2,434 | hpp | C++ | gcpp/classes/opathspec.hpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | 2 | 2015-10-15T19:32:42.000Z | 2021-12-20T15:56:04.000Z | gcpp/classes/opathspec.hpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | null | null | null | gcpp/classes/opathspec.hpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | null | null | null | /*====================================================================*
*
* opathspec.hpp - interface for the opathspec class.
*
*. Motley Tools by Charles Maier
*: Published 1982-2005 by Charles Maier for personal use
*; Licensed under the Internet Software Consortium License
*
*--------------------------... | 34.28169 | 97 | 0.497124 | razzlefratz |
3b281d2749fc00e1bb7f10dea504edd642437cea | 1,026 | hpp | C++ | src/lib/builders/interpretable.hpp | bunsanorg/bacs_system | 22149ecfaac913b820dbda52933bf8ea9fecd723 | [
"Apache-2.0"
] | null | null | null | src/lib/builders/interpretable.hpp | bunsanorg/bacs_system | 22149ecfaac913b820dbda52933bf8ea9fecd723 | [
"Apache-2.0"
] | null | null | null | src/lib/builders/interpretable.hpp | bunsanorg/bacs_system | 22149ecfaac913b820dbda52933bf8ea9fecd723 | [
"Apache-2.0"
] | null | null | null | #include "compilable.hpp"
namespace bacs {
namespace system {
namespace builders {
class interpretable : public compilable {
protected:
name_type name(const bacs::process::Source &source) override;
};
class interpretable_executable : public compilable_executable {
public:
interpretable_executable(const Contain... | 29.314286 | 72 | 0.662768 | bunsanorg |
3b2958e86930fc17a868e5f4663e908315b57621 | 28,856 | cpp | C++ | ql/experimental/vanillalocalvolmodel/vanillalocalvolmodel.cpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/vanillalocalvolmodel/vanillalocalvolmodel.cpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 17 | 2020-11-23T07:24:16.000Z | 2022-03-28T10:29:06.000Z | ql/experimental/vanillalocalvolmodel/vanillalocalvolmodel.cpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 7 | 2017-04-24T08:28:43.000Z | 2022-03-15T08:59:54.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2018 Sebastian Schlenkrich
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it a... | 50.802817 | 187 | 0.525818 | urgu00 |
3b2aa11f7e5dfaf5db22d5b8c854b65e354fa357 | 1,758 | cpp | C++ | bzoj/1057.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/1057.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/1057.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null |
// Copy from luogu1169
#include <iostream>
#include <algorithm>
#include <string.h>
#include <sstream>
#include <stdlib.h>
#include <stdio.h>
#include <queue>
#include <cmath>
#include <math.h>
#include <vector>
#include <iostream>
#include <cstdio>
#include <ctime>
#include <set>
#include <map>
#include <fstream>
#... | 22.253165 | 68 | 0.497156 | swwind |
3b3e7f7492f7cda4e0c6f4a931e32e1ddcd04e79 | 239 | cpp | C++ | src/Rendering/Lighting/CompositeLight.cpp | Tristeon/Tristeon | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 32 | 2018-06-16T20:50:15.000Z | 2022-03-26T16:57:15.000Z | src/Rendering/Lighting/CompositeLight.cpp | Tristeon/Tristeon2D | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 2 | 2018-10-07T17:41:39.000Z | 2021-01-08T03:14:19.000Z | src/Rendering/Lighting/CompositeLight.cpp | Tristeon/Tristeon2D | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 9 | 2018-06-12T21:00:58.000Z | 2021-01-08T02:18:30.000Z | #include "CompositeLight.h"
#include <Collector.h>
namespace Tristeon
{
CompositeLight::CompositeLight()
{
Collector<CompositeLight>::add(this);
}
CompositeLight::~CompositeLight()
{
Collector<CompositeLight>::remove(this);
}
} | 15.933333 | 42 | 0.732218 | Tristeon |
3b3f290de42e2598a981357d8ebfeacff5adc4ce | 1,420 | cpp | C++ | 17-Hash-Tables/Source.cpp | InamTaj/data-structures | 7a662a8e635402bab3481d69d8df9164499da6b4 | [
"Apache-2.0"
] | 1 | 2019-06-24T11:34:23.000Z | 2019-06-24T11:34:23.000Z | 17-Hash-Tables/Source.cpp | InamTaj/data-structures | 7a662a8e635402bab3481d69d8df9164499da6b4 | [
"Apache-2.0"
] | null | null | null | 17-Hash-Tables/Source.cpp | InamTaj/data-structures | 7a662a8e635402bab3481d69d8df9164499da6b4 | [
"Apache-2.0"
] | 1 | 2020-11-23T03:28:52.000Z | 2020-11-23T03:28:52.000Z | //Inamullah Taj - 1446
// OBJECTIVE: Implement a Class of Static Graph
#include "HashTableHeader.h"
#include <conio.h>
#include <iostream>
using namespace std;
void main()
{
char ext;
int choice, size, value;
cout<<"\t \t \t>>-> HASH TABLES <-<<\n\n";
cout<<"\n\t\tEnter Size of Table = "; cin>>size... | 26.792453 | 151 | 0.569014 | InamTaj |
3b42d88f49debe20d42ab1933f021c6361e0b810 | 1,266 | hpp | C++ | include/copr/sequence/fft.hpp | orisano/copr | 3c1018edcc20e0f855ec614b2ddf579f8f81cd72 | [
"MIT"
] | null | null | null | include/copr/sequence/fft.hpp | orisano/copr | 3c1018edcc20e0f855ec614b2ddf579f8f81cd72 | [
"MIT"
] | null | null | null | include/copr/sequence/fft.hpp | orisano/copr | 3c1018edcc20e0f855ec614b2ddf579f8f81cd72 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <vector>
template <typename T>
inline std::complex<T> cmul(const std::complex<T>& a, const std::complex<T>& b) {
return std::complex<T>(a.real() * b.real() - a.imag() * b.imag(),
a.real() * b.i... | 25.32 | 81 | 0.460506 | orisano |
3b4581ebe1400cc04822f68b1ab6ed506e54ce8e | 3,586 | cpp | C++ | timer/Utility/CollisionUtilities.cpp | MaticVrtacnik/ProceduralnaAnimacija | bc47ccc721d1bedb31ed5949eb740892f094897a | [
"MIT"
] | null | null | null | timer/Utility/CollisionUtilities.cpp | MaticVrtacnik/ProceduralnaAnimacija | bc47ccc721d1bedb31ed5949eb740892f094897a | [
"MIT"
] | null | null | null | timer/Utility/CollisionUtilities.cpp | MaticVrtacnik/ProceduralnaAnimacija | bc47ccc721d1bedb31ed5949eb740892f094897a | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2019 MaticVrtacnik
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, ... | 29.393443 | 84 | 0.726715 | MaticVrtacnik |
8dc922b8b29873463fb27cc57301a26a9b2ba1f3 | 21,764 | cc | C++ | ggadget/clutter/view_actor_binder.cc | meego-netbook-ux/google-gadgets-meego | 89af89796bca073e95f44d43c9d81407caabedf0 | [
"Apache-2.0"
] | null | null | null | ggadget/clutter/view_actor_binder.cc | meego-netbook-ux/google-gadgets-meego | 89af89796bca073e95f44d43c9d81407caabedf0 | [
"Apache-2.0"
] | null | null | null | ggadget/clutter/view_actor_binder.cc | meego-netbook-ux/google-gadgets-meego | 89af89796bca073e95f44d43c9d81407caabedf0 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2008 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 33.32925 | 84 | 0.612617 | meego-netbook-ux |
8dcce9bc595ba11809680515c9373c5e627702dc | 54,578 | cpp | C++ | Examples/AEGP/Artie/Artie.cpp | richardlalancette/AfterEffectsExperimentations | 5eae44e81c867ee44d00f88aaefaef578f7c3de7 | [
"MIT"
] | 2 | 2021-10-09T03:47:42.000Z | 2022-02-06T06:34:31.000Z | Examples/AEGP/Artie/Artie.cpp | richardlalancette/AfterEffectsExperimentations | 5eae44e81c867ee44d00f88aaefaef578f7c3de7 | [
"MIT"
] | null | null | null | Examples/AEGP/Artie/Artie.cpp | richardlalancette/AfterEffectsExperimentations | 5eae44e81c867ee44d00f88aaefaef578f7c3de7 | [
"MIT"
] | null | null | null | /*******************************************************************/
/* */
/* ADOBE CONFIDENTIAL */
/* _ _ _ _ _ _ _ _ _ _ _ _ _ */
/* ... | 27.072421 | 128 | 0.635971 | richardlalancette |
8dcdceb83fc9d8ea0df3482ac0a2b963dda53557 | 6,152 | hpp | C++ | src/field/fieldI.hpp | NSCCWX-AMD/HSF | dbf5987e364ce0ca3e92e72540a66a62353f4b3a | [
"Apache-2.0"
] | null | null | null | src/field/fieldI.hpp | NSCCWX-AMD/HSF | dbf5987e364ce0ca3e92e72540a66a62353f4b3a | [
"Apache-2.0"
] | 1 | 2020-09-10T01:17:13.000Z | 2020-09-10T01:17:13.000Z | src/field/fieldI.hpp | NSCCWX-AMD/HSF | dbf5987e364ce0ca3e92e72540a66a62353f4b3a | [
"Apache-2.0"
] | 2 | 2019-11-29T08:00:29.000Z | 2019-11-29T08:26:13.000Z | /*
The MIT License
Copyright (c) 2019 Hanfeng GU <hanfenggu@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, m... | 25.957806 | 79 | 0.611996 | NSCCWX-AMD |
8dd36af4771b112910bf0b04fadce500a90ac765 | 1,519 | cpp | C++ | plugins/eclblas/daxpy.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 286 | 2015-01-03T12:45:17.000Z | 2022-03-25T18:12:57.000Z | plugins/eclblas/daxpy.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 9,034 | 2015-01-02T08:49:19.000Z | 2022-03-31T20:34:44.000Z | plugins/eclblas/daxpy.cpp | cloLN/HPCC-Platform | 42ffb763a1cdcf611d3900831973d0a68e722bbe | [
"Apache-2.0"
] | 208 | 2015-01-02T03:27:28.000Z | 2022-02-11T05:54:52.000Z | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2016 HPCC Systems®.
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 Licens... | 38.948718 | 82 | 0.597762 | miguelvazq |
8dd4dcd5ef4d83bb13c99645e91b6891f9c1b949 | 5,854 | hh | C++ | data.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | 1 | 2021-05-06T04:41:37.000Z | 2021-05-06T04:41:37.000Z | data.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | null | null | null | data.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | 1 | 2021-05-06T04:41:39.000Z | 2021-05-06T04:41:39.000Z | /* 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,
* distribute, sublicense, and/or... | 26.609091 | 171 | 0.66399 | cp-profiler |
8dd93358887ec518a9ba3cf295d91528162fcbea | 7,217 | cpp | C++ | base/source/ESBReadWriteLock.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | base/source/ESBReadWriteLock.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | base/source/ESBReadWriteLock.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | #ifndef ESB_READ_WRITE_LOCK_H
#include <ESBReadWriteLock.h>
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
namespace ESB {
ReadWriteLock::ReadWriteLock() : _magic(0) {
#ifdef HAVE_PTHREAD_RWLOCK_INIT
if (0 == pthread_rwlock_init(&_lock, 0)) {
_magic = ESB_MAGIC;
}
#elif defined HAVE_PTHREAD_MUTEX_INI... | 21.803625 | 115 | 0.720382 | duderino |
8dd9ee89d9d3745ee949f9b6ad9642311151a589 | 1,295 | hpp | C++ | src/servercommon/struct/global/autoparam.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/servercommon/struct/global/autoparam.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/servercommon/struct/global/autoparam.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #pragma once
#include "common/tlvprotocol.h"
class AutoParamBase
{
public:
virtual ~AutoParamBase() = default;
virtual int Size() const = 0;
virtual void Reset() = 0;
virtual bool Serialize(TLVSerializer &serializer) = 0;
virtual bool Unserialize(TLVUnserializer &unserializer) = 0;
};
template<typename StructPa... | 23.125 | 85 | 0.711969 | mage-game |
8ddc6940da14f4a282e8905395a41cad2c65b69a | 7,484 | cpp | C++ | CPP_Files/Collider.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | CPP_Files/Collider.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | CPP_Files/Collider.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | #include "Collider.h"
/*Well Fudge. I've learned my lesson. Don't trust online 'optimizations' without checking.
* Square Root apparently isn't as 'costly' as some articles made it out to be. I'm not going back to change
* all my work using LSquare and radSquare instead of gl::length, but that's annoying. Real annoyi... | 44.284024 | 153 | 0.700828 | Yaters |
8ddccfeff11d9917a006a18ae1a98158dd46e11d | 2,336 | inl | C++ | Kalydo/KRFReadLib/Include/kifstream.inl | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | Kalydo/KRFReadLib/Include/kifstream.inl | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | Kalydo/KRFReadLib/Include/kifstream.inl | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | #include "KRFReadLib.h"
#include "kseek.h"
inline kifstream::kifstream()
: m_File(NULL)
, m_State(std::ios_base::goodbit)
{
}
inline kifstream::kifstream(const char* filename, std::ios_base::openmode mode)
: m_File(kopen(filename, NULL))
, m_State(std::ios_base::goodbit)
{
}
inline kifstream::~kifstream()
{
close()... | 17.432836 | 79 | 0.684075 | openlastchaos |
8de04c3d945f848d21b8c823ef034a7f5f912d49 | 919 | cpp | C++ | src/json/ConfigManager.cpp | firmware-loader/cpp-firmware-loader | 895159a50b92526cee59f48d8f42131f5a043879 | [
"MIT"
] | null | null | null | src/json/ConfigManager.cpp | firmware-loader/cpp-firmware-loader | 895159a50b92526cee59f48d8f42131f5a043879 | [
"MIT"
] | 2 | 2019-06-13T18:53:01.000Z | 2019-06-14T20:13:38.000Z | src/json/ConfigManager.cpp | firmware-loader/cpp-firmware-loader | 895159a50b92526cee59f48d8f42131f5a043879 | [
"MIT"
] | null | null | null | //
// Created by sebastian on 03.06.19.
//
#include "ConfigManager.h"
namespace firmware::json::config {
ConfigManager::ConfigManager(const std::string &deviceName) {
ConfigFinder config{deviceName};
if (auto &content = config.getFileContents()) {
if(!content->empty()) {
... | 29.645161 | 73 | 0.523395 | firmware-loader |
8de2427540199994d234727c62d0615f40bbe0fa | 113 | cpp | C++ | SAI/behaviors/VDSAIDefaultBehaviors.cpp | VoiDjinn/vdautomata | 2cfa263d366ec31e298a7743f63a3787f5b6ff0d | [
"MIT"
] | null | null | null | SAI/behaviors/VDSAIDefaultBehaviors.cpp | VoiDjinn/vdautomata | 2cfa263d366ec31e298a7743f63a3787f5b6ff0d | [
"MIT"
] | 1 | 2021-07-22T15:18:47.000Z | 2021-07-26T11:12:32.000Z | SAI/behaviors/VDSAIDefaultBehaviors.cpp | VoiDjinn/vdautomata | 2cfa263d366ec31e298a7743f63a3787f5b6ff0d | [
"MIT"
] | null | null | null | #include "VDSAIDefaultBehaviors.h"
VDAsaiDBArrive::VDAsaiDBArrive() {}
void VDAsaiDBArrive::_bind_methods() {}
| 18.833333 | 39 | 0.778761 | VoiDjinn |
8de2c262a9224ed23cc47ebc66021bb2ef374350 | 2,947 | hpp | C++ | src/sdl/surface.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/sdl/surface.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/sdl/surface.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "handle/sdl.hpp"
#include "mutex.hpp"
#include "abstbuffer.hpp"
#include "lubee/src/rect.hpp"
#include "handle/sdl.hpp"
#include <SDL_surface.h>
#include <memory>
namespace rev {
struct RGB;
struct RGBA;
class Surface {
private:
SDL_Surface* _sfc;
mutable Mutex _mutex;
AB_Byte _buff... | 31.688172 | 100 | 0.709196 | degarashi |
8de6bdbe7832f99cc8adfa472432fdd5782c2df6 | 10,224 | cc | C++ | arcane/samples_build/samples/honeycomb_heat/HoneyCombHeatModule.cc | grospelliergilles/framework | 9cb9bc9ad723e2af626267e59dd531cdb7a4df44 | [
"Apache-2.0"
] | 16 | 2021-09-20T12:37:01.000Z | 2022-03-18T09:19:14.000Z | arcane/samples_build/samples/honeycomb_heat/HoneyCombHeatModule.cc | grospelliergilles/framework | 9cb9bc9ad723e2af626267e59dd531cdb7a4df44 | [
"Apache-2.0"
] | 66 | 2021-09-17T13:49:39.000Z | 2022-03-30T16:24:07.000Z | arcane/samples_build/samples/honeycomb_heat/HoneyCombHeatModule.cc | grospelliergilles/framework | 9cb9bc9ad723e2af626267e59dd531cdb7a4df44 | [
"Apache-2.0"
] | 11 | 2021-09-27T16:48:55.000Z | 2022-03-23T19:06:56.000Z | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... | 37.450549 | 125 | 0.586072 | grospelliergilles |
8de9dc71831e53c481a3b0fca8d5a92cf9f2941a | 2,209 | cpp | C++ | HyoDioForm.cpp | hyo0913/DurgaTestSlave | 913084be0a9ec8ffe5d2fc3f23f7fcb670007f0f | [
"MIT"
] | null | null | null | HyoDioForm.cpp | hyo0913/DurgaTestSlave | 913084be0a9ec8ffe5d2fc3f23f7fcb670007f0f | [
"MIT"
] | null | null | null | HyoDioForm.cpp | hyo0913/DurgaTestSlave | 913084be0a9ec8ffe5d2fc3f23f7fcb670007f0f | [
"MIT"
] | null | null | null | #include "HyoDioForm.h"
#include "ui_HyoDioForm.h"
#include <QHBoxLayout>
#include <QPushButton>
HyoDioForm::HyoDioForm(int points, QWidget *parent) :
QWidget(parent),
ui(new Ui::HyoDioForm)
{
ui->setupUi(this);
this->setObjectName("Digital I/O");
makePoints(points);
this->adjustSize();
}
H... | 21.656863 | 100 | 0.57809 | hyo0913 |
8df47a1349ede49810cac1e0af817265deb200f5 | 2,140 | cpp | C++ | tests/fuzz/fuzzScale.cpp | Lederstrumpf/substrate-c-tool | 999bc55ffa2f354b96c347ebb122c79baad812cc | [
"MIT"
] | 2 | 2020-05-27T17:45:37.000Z | 2022-03-05T01:31:29.000Z | tests/fuzz/fuzzScale.cpp | Lederstrumpf/substrate-c-tool | 999bc55ffa2f354b96c347ebb122c79baad812cc | [
"MIT"
] | null | null | null | tests/fuzz/fuzzScale.cpp | Lederstrumpf/substrate-c-tool | 999bc55ffa2f354b96c347ebb122c79baad812cc | [
"MIT"
] | 3 | 2020-05-10T23:01:22.000Z | 2020-07-12T07:07:53.000Z | #include <string>
#include <iostream>
#include <exception>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <cstring>
extern "C" {
#include "../../src/scale.h"
}
int print_input(uint8_t *value, size_t value_len) {
std::stringstream s;
for (unsigned int i=0; i<value_len; i++) {
... | 27.435897 | 114 | 0.65514 | Lederstrumpf |
8df64280462de89c2f71cc33cd41d98d3de72d44 | 5,613 | cpp | C++ | camera_models/extrinsics.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | 14 | 2018-03-26T13:43:58.000Z | 2022-03-03T13:04:36.000Z | camera_models/extrinsics.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | null | null | null | camera_models/extrinsics.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | 1 | 2019-08-03T23:12:08.000Z | 2019-08-03T23:12:08.000Z | //Illustration of extrinsic camera parameters
// Andreas Unterweger, 2017-2022
//This code is licensed under the 3-Clause BSD License. See LICENSE file for details.
#include <iostream>
#include <opencv2/viz.hpp>
#include "common.hpp"
#include "math.hpp"
#include "conf_viz.hpp"
static constexpr auto parameter_accura... | 37.42 | 113 | 0.70408 | dustsigns |
8dfb81bb9778d34a666d306f1b59daf6d0d56b42 | 1,091 | cpp | C++ | http/tests/HttpServer-Test.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | 3 | 2020-08-11T06:47:16.000Z | 2021-07-16T09:51:28.000Z | http/tests/HttpServer-Test.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | null | null | null | http/tests/HttpServer-Test.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | 2 | 2020-08-10T07:38:29.000Z | 2021-07-16T09:48:09.000Z | //
// Created by suncx on 2020/9/23.
//
#include "HttpServer.h"
#include "EventLoop.h"
#include "InetAddress.h"
#include "ConsoleStream.h"
using std::string;
using std::to_string;
using reactor::net::HttpRequest;
using reactor::net::HttpResponse;
using reactor::net::http::Headers;
using reactor::net::EventLoop;
using... | 25.372093 | 66 | 0.683776 | Sun-CX |
8dfe5e6135d1354defc4941c715298dddff7d00c | 6,771 | hpp | C++ | core/src/impl/Morpheus_DynamicMatrix_Impl.hpp | morpheus-org/morpheus | 8f12b7b75fb7c7c02a4d5d41c64791bacc2f54c6 | [
"Apache-2.0"
] | 1 | 2021-12-18T01:18:49.000Z | 2021-12-18T01:18:49.000Z | core/src/impl/Morpheus_DynamicMatrix_Impl.hpp | morpheus-org/morpheus | 8f12b7b75fb7c7c02a4d5d41c64791bacc2f54c6 | [
"Apache-2.0"
] | 5 | 2021-10-05T15:12:02.000Z | 2022-01-21T23:26:41.000Z | core/src/impl/Morpheus_DynamicMatrix_Impl.hpp | morpheus-org/morpheus | 8f12b7b75fb7c7c02a4d5d41c64791bacc2f54c6 | [
"Apache-2.0"
] | null | null | null | /**
* Morpheus_DynamicMatrix_Impl.hpp
*
* EPCC, The University of Edinburgh
*
* (c) 2021 - 2022 The University of Edinburgh
*
* Contributing Authors:
* Christodoulos Stylianou (c.stylianou@ed.ac.uk)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... | 32.868932 | 80 | 0.66962 | morpheus-org |
5c03373b7984c0652faf5b7d28e4efd9d412a798 | 6,137 | cpp | C++ | GameClient/GameStateCommunicating.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | null | null | null | GameClient/GameStateCommunicating.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | 1 | 2019-06-19T15:55:25.000Z | 2019-06-27T07:47:27.000Z | GameClient/GameStateCommunicating.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | 1 | 2019-07-07T04:37:56.000Z | 2019-07-07T04:37:56.000Z | /*
* Copyright (C) 2017 by Author: Aroudj, Samir, born in Suhl, Thueringen, Germany
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the License.txt file for details.
*/
#include <cstdio>
#include "Platform/ApplicationTimer.h"
#include "Cl... | 28.812207 | 139 | 0.744338 | SamirAroudj |
5c05f054d1f1047c5f44822fc367f254e5b5b3f0 | 2,020 | cpp | C++ | 012. Integer to Roman.cpp | rajeev-ranjan-au6/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | 3 | 2020-12-30T00:29:59.000Z | 2021-01-24T22:43:04.000Z | 012. Integer to Roman.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | 012. Integer to Roman.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | // Top-voted solution (https://discuss.leetcode.com/topic/12384/simple-solution).
class Solution {
public:
string intToRoman(int num) {
string M[] = {"", "M", "MM", "MMM"};
string C[] = {"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"};
string X[] = {"", "X", "XX", "XXX", "XL", "L... | 26.233766 | 82 | 0.357921 | rajeev-ranjan-au6 |
5c0bcc63b1882c769eadd024b77e906337024e57 | 437 | hpp | C++ | nd-coursework/books/cpp/C++Templates/basics/byref.hpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/C++Templates/basics/byref.hpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/C++Templates/basics/byref.hpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 by Addison-Wesley, David Vandevoorde, Nicolai M. Josuttis, and Douglas Gregor. All rights reserved.
// See the LICENSE file in the project root for more information.
//
// Name: byref.hpp
// Author: crdrisko
// Date: 08/13/2020-12:12:50
// Description: Missing file from book
#ifndef BYREF_HPP
#de... | 23 | 121 | 0.709382 | crdrisko |
5c0d9b4f004dcd5e404e8024d67e964b9bfb5d83 | 8,061 | cc | C++ | build/x86/python/m5/internal/enum_TimingExprOp.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/enum_TimingExprOp.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/enum_TimingExprOp.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_enum_TimingExprOp[] = {
120,156,197,88,239,114,211,214,18,223,35,201,78,236,56,196,
36,144,240,39,128,129,2,190,92,18,67,248,219,194,48,165,
109,218,161,211,134,123,37,58,80,181,115,85,199,58,177,21,
108,201,149,142,67,220,73,190,52,157... | 57.578571 | 104 | 0.667907 | billionshang |
5c0e580eaed59257243f065ff4702d3e069c0041 | 246 | cpp | C++ | cpp/hello.cpp | voltrevo/project-euler | 0db5451f72b1353b295e56f928c968801e054444 | [
"MIT"
] | null | null | null | cpp/hello.cpp | voltrevo/project-euler | 0db5451f72b1353b295e56f928c968801e054444 | [
"MIT"
] | null | null | null | cpp/hello.cpp | voltrevo/project-euler | 0db5451f72b1353b295e56f928c968801e054444 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
for (int i = 0; i != 6; ++i)
cout << "Hello "[i] << ' ';
for (int i = 0; i != 6; ++i)
cout << *("World!" + i) << ' ';
cout << endl;
return 0;
}
| 15.375 | 39 | 0.390244 | voltrevo |
5c1015809f4e4a48c90df6c135764a90c7f180dc | 2,593 | cpp | C++ | OpenHolo_WRP/openwrp_console_ver 1.0/openwrp/WRP.cpp | KetiLeeJeongHun/OpenHologram | c6cdddb5106fe0079d9810eea588d28aa71f0023 | [
"BSD-2-Clause"
] | 17 | 2017-11-07T06:44:11.000Z | 2021-11-14T05:06:08.000Z | OpenHolo_WRP/openwrp_console_ver 1.0/openwrp/WRP.cpp | KetiLeeJeongHun/OpenHologram | c6cdddb5106fe0079d9810eea588d28aa71f0023 | [
"BSD-2-Clause"
] | 1 | 2017-09-26T04:35:31.000Z | 2017-09-26T04:35:31.000Z | OpenHolo_WRP/openwrp_console_ver 1.0/openwrp/WRP.cpp | KetiLeeJeongHun/OpenHologram | c6cdddb5106fe0079d9810eea588d28aa71f0023 | [
"BSD-2-Clause"
] | 9 | 2017-09-13T08:01:45.000Z | 2020-04-28T10:11:14.000Z | #ifdef _OPENMP
#include<omp.h>
#endif
#include "WRP.h"
int OPHWRP::readxyz(string filename) //read point cloud
{
int dimen = 3;
ifstream infilee(filename);
string temp, temp2mat;
vector <string> temsplit;
if (!infilee)
{
cerr << "can not read the file";
return -1;
}
while (getline(infilee, temp))
{... | 18.132867 | 84 | 0.59275 | KetiLeeJeongHun |
5c101ef567bb4dc304f721fc2f04dec87b513df2 | 5,698 | hpp | C++ | benchmarks/statistical/dataflow_declarations.hpp | vamatya/benchmarks | 8a86c6eebac5f9a29a0e37a62bdace45395c8d73 | [
"BSL-1.0"
] | null | null | null | benchmarks/statistical/dataflow_declarations.hpp | vamatya/benchmarks | 8a86c6eebac5f9a29a0e37a62bdace45395c8d73 | [
"BSL-1.0"
] | null | null | null | benchmarks/statistical/dataflow_declarations.hpp | vamatya/benchmarks | 8a86c6eebac5f9a29a0e37a62bdace45395c8d73 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2012 Daniel Kogler
//
// 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)
//this file simply enumerates a multitude of functions used to define the action
//used in the benchmark. Which functi... | 34.957055 | 81 | 0.777115 | vamatya |
5c1530cf4db20b54211ff2453e929b1abe998a88 | 564 | cpp | C++ | src/dummy_server/src/dummy_server_handler.cpp | maxerMU/db-course | 3927f1cf0ccb2a937d571626dcc42d725a89d3f6 | [
"Apache-2.0"
] | null | null | null | src/dummy_server/src/dummy_server_handler.cpp | maxerMU/db-course | 3927f1cf0ccb2a937d571626dcc42d725a89d3f6 | [
"Apache-2.0"
] | null | null | null | src/dummy_server/src/dummy_server_handler.cpp | maxerMU/db-course | 3927f1cf0ccb2a937d571626dcc42d725a89d3f6 | [
"Apache-2.0"
] | null | null | null | #include "dummy_server_handler.h"
#include <iostream>
DummyServerHandler::DummyServerHandler(
const std::shared_ptr<BaseConfig> &config) {
append_string = config->get_string_field({"AppendString"});
}
void DummyServerHandler::handle_request(const std::shared_ptr<Request> &req) {
std::cout << req->get_body() <... | 29.684211 | 79 | 0.723404 | maxerMU |
5c1579f5da212410199c1703479b91eda172214f | 54,852 | cpp | C++ | modules/juce_gui_basics/layout/juce_FlexBox.cpp | dikadk/JUCE | 514c6c8de8bd34c0663d1d691a034b48922af5c8 | [
"ISC"
] | null | null | null | modules/juce_gui_basics/layout/juce_FlexBox.cpp | dikadk/JUCE | 514c6c8de8bd34c0663d1d691a034b48922af5c8 | [
"ISC"
] | null | null | null | modules/juce_gui_basics/layout/juce_FlexBox.cpp | dikadk/JUCE | 514c6c8de8bd34c0663d1d691a034b48922af5c8 | [
"ISC"
] | null | null | null | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of... | 46.563667 | 225 | 0.518887 | dikadk |
5c1d185ee8efa07f9a35db7b874ca2d7bd117211 | 483 | cpp | C++ | ZorkGame/ZorkGame/ZorkGame.cpp | PabloSanchezTrujillo/Zork | f861f56df8c37a126c9f90147efbc75c91a04f47 | [
"MIT"
] | null | null | null | ZorkGame/ZorkGame/ZorkGame.cpp | PabloSanchezTrujillo/Zork | f861f56df8c37a126c9f90147efbc75c91a04f47 | [
"MIT"
] | null | null | null | ZorkGame/ZorkGame/ZorkGame.cpp | PabloSanchezTrujillo/Zork | f861f56df8c37a126c9f90147efbc75c91a04f47 | [
"MIT"
] | null | null | null | #include <iostream>
#include "World.h"
using namespace std;
int main()
{
World* house = new World();
cout << "You are in the: " << house->getPlayer()->getLocation()->getName() << ". "
<< house->getPlayer()->getLocation()->getDescription() << endl;
cout << "\n";
// GameLoop
while(!house->getPlayer()->isPlayer... | 19.32 | 83 | 0.594203 | PabloSanchezTrujillo |
5c1dbca35795cb3a90df53cc6d6c751addffd42a | 452 | cpp | C++ | misc.cpp | bannid/CardGame | c5df2adb7a96df506fa24544cd8499076bb3ebbc | [
"Zlib"
] | null | null | null | misc.cpp | bannid/CardGame | c5df2adb7a96df506fa24544cd8499076bb3ebbc | [
"Zlib"
] | null | null | null | misc.cpp | bannid/CardGame | c5df2adb7a96df506fa24544cd8499076bb3ebbc | [
"Zlib"
] | null | null | null | #include "misc.h"
float LinearInterpolation(float first, float second, float weight){
float result = weight * second + (1.0f - weight) * first;
return result;
}
float CosineInterpolation(float first, float second, float weight){
float modifiedWeight = (1 - cos(weight * 3.14))/2.0f;
modifiedWeigh... | 28.25 | 78 | 0.679204 | bannid |
5c201c7101b0d40c9e79c696d239e37debac77e5 | 826 | cpp | C++ | LeetCode/338.Counting_Bits.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | LeetCode/338.Counting_Bits.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | LeetCode/338.Counting_Bits.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | class Solution {
public:
vector<int> countBits(int num) {
vector<int>ans;
int two[30];
int now;
int SIZE = 30;
two[0] = 1;
for(int i = 1; i < SIZE; i++)
two[i] = two[i - 1] * 2;
ans.push_back(0);
if(num == 0) return ans;
a... | 25.030303 | 54 | 0.349879 | w181496 |
5c271252cbafd78ad5faa7c1951f52283703ad04 | 3,350 | hpp | C++ | src/ExtFilterEventListClustering/DBusNumericUtil.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | src/ExtFilterEventListClustering/DBusNumericUtil.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | src/ExtFilterEventListClustering/DBusNumericUtil.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2022 The Voxie Authors
*
* 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, mer... | 36.413043 | 80 | 0.702687 | voxie-viewer |
5c28e1034573a00ce52b97665327d13d08dae8f1 | 126 | cpp | C++ | chapter_4/ex_4.12.cpp | YasserKa/Cpp_Primer | 198b10255fd67e31c15423a5e44b7f02abb8bdc2 | [
"MIT"
] | null | null | null | chapter_4/ex_4.12.cpp | YasserKa/Cpp_Primer | 198b10255fd67e31c15423a5e44b7f02abb8bdc2 | [
"MIT"
] | null | null | null | chapter_4/ex_4.12.cpp | YasserKa/Cpp_Primer | 198b10255fd67e31c15423a5e44b7f02abb8bdc2 | [
"MIT"
] | null | null | null | /**
* i != (j < k)
* i != (true/false)
* i != (0/1)
* It means checking if i is 1 or 0 which is resulted from j < k
*/
| 15.75 | 64 | 0.484127 | YasserKa |
5c388318a3c9af8911eed5f695c3eb46da682f06 | 459 | hpp | C++ | Paper/Group.hpp | mokafolio/Paper | d7e9c1450b29b1d3d8873de4f959bffa02232055 | [
"MIT"
] | 20 | 2016-12-13T22:34:35.000Z | 2021-09-20T12:44:56.000Z | Paper/Group.hpp | mokafolio/Paper | d7e9c1450b29b1d3d8873de4f959bffa02232055 | [
"MIT"
] | null | null | null | Paper/Group.hpp | mokafolio/Paper | d7e9c1450b29b1d3d8873de4f959bffa02232055 | [
"MIT"
] | null | null | null | #ifndef PAPER_GROUP_HPP
#define PAPER_GROUP_HPP
#include <Paper/Item.hpp>
#include <Paper/Constants.hpp>
namespace paper
{
class Document;
class STICK_API Group : public Item
{
friend class Item;
public:
static constexpr EntityType itemType = EntityType::Group;
Group();
... | 14.806452 | 65 | 0.627451 | mokafolio |
5c3bc9320dc133c5b9595487d4f56053eb4b36f8 | 2,478 | hpp | C++ | src/bonefish/dealer/wamp_dealer_registration.hpp | aiwc/extlib-bonefish | 2f0d15960b5178d2ab24fd8e11965a80ace2cb5a | [
"Apache-2.0"
] | 58 | 2015-08-24T18:43:56.000Z | 2022-01-09T00:55:06.000Z | src/bonefish/dealer/wamp_dealer_registration.hpp | aiwc/extlib-bonefish | 2f0d15960b5178d2ab24fd8e11965a80ace2cb5a | [
"Apache-2.0"
] | 47 | 2015-08-25T11:04:51.000Z | 2018-02-28T22:38:12.000Z | src/bonefish/dealer/wamp_dealer_registration.hpp | aiwc/extlib-bonefish | 2f0d15960b5178d2ab24fd8e11965a80ace2cb5a | [
"Apache-2.0"
] | 32 | 2015-08-25T15:14:45.000Z | 2020-03-23T09:35:31.000Z | /**
* Copyright (C) 2015 Topology LP
*
* 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... | 28.813953 | 103 | 0.778854 | aiwc |
5c3d62f0e2a30326c8f0458fe39c3355f406e1a8 | 983 | cc | C++ | examples/vision_graph/src/NoS/applications/OSNode/OmnetIf_pkt.cc | zoranzhao/NoSDSE | 0e3148572e7cdf3a2d012c95c81863864da236d6 | [
"MIT"
] | 3 | 2019-01-26T20:35:47.000Z | 2019-07-18T22:09:22.000Z | examples/vision_graph/src/NoS/applications/OSNode/OmnetIf_pkt.cc | zoranzhao/NoSSim | 7b0e9edde0fe19f83d7aaa946fd580a6d9dab978 | [
"BSD-3-Clause"
] | null | null | null | examples/vision_graph/src/NoS/applications/OSNode/OmnetIf_pkt.cc | zoranzhao/NoSSim | 7b0e9edde0fe19f83d7aaa946fd580a6d9dab978 | [
"BSD-3-Clause"
] | 3 | 2017-09-08T22:13:28.000Z | 2019-06-29T21:42:53.000Z |
#include <iostream>
#include <sstream>
#include "OmnetIf_pkt.h"
OmnetIf_pkt::OmnetIf_pkt()
{
fileBuffer_arraysize = 0;
this->fileBuffer = NULL;
}
OmnetIf_pkt::~OmnetIf_pkt()
{
delete [] fileBuffer;
}
void OmnetIf_pkt::setFileBufferArraySize(unsigned int size)
{
char *fileBuffer_var2 = (size==0) ?... | 20.061224 | 80 | 0.690743 | zoranzhao |
5c4291a9eb3539d3bbeb778695a5e4c600527e93 | 4,642 | cpp | C++ | core/src/plugin/PluginDiscovery.cpp | tristanseifert/lichtenstein_client | 16b0d35915d11cd8cdf71d56c3d0f3d7268fe7cf | [
"BSD-3-Clause"
] | null | null | null | core/src/plugin/PluginDiscovery.cpp | tristanseifert/lichtenstein_client | 16b0d35915d11cd8cdf71d56c3d0f3d7268fe7cf | [
"BSD-3-Clause"
] | null | null | null | core/src/plugin/PluginDiscovery.cpp | tristanseifert/lichtenstein_client | 16b0d35915d11cd8cdf71d56c3d0f3d7268fe7cf | [
"BSD-3-Clause"
] | null | null | null | #include "PluginDiscovery.h"
#include "LichtensteinPluginHandler.h"
#include "HardwareInfoStruct.h"
#include "../util/StringUtils.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
// includes for i2c
#ifdef __linux__
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
#endif
#include <glog/logging... | 23.21 | 100 | 0.646273 | tristanseifert |
5c469e86a1ad9a6493481c2c4b692795a8225067 | 12,826 | cpp | C++ | libraries/zmusic/mididevices/music_alsa_mididevice.cpp | Erick194/gzdoom | dcb7755716b7f4f6edce6f28b9e316d6de7eda15 | [
"RSA-MD"
] | 2 | 2020-04-19T13:37:34.000Z | 2021-06-09T04:26:25.000Z | libraries/zmusic/mididevices/music_alsa_mididevice.cpp | Erick194/gzdoom | dcb7755716b7f4f6edce6f28b9e316d6de7eda15 | [
"RSA-MD"
] | null | null | null | libraries/zmusic/mididevices/music_alsa_mididevice.cpp | Erick194/gzdoom | dcb7755716b7f4f6edce6f28b9e316d6de7eda15 | [
"RSA-MD"
] | null | null | null | /*
** Provides an ALSA implementation of a MIDI output device.
**
**---------------------------------------------------------------------------
** Copyright 2008-2010 Randy Heit
** Copyright 2020 Petr Mrazek
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification... | 25.198428 | 151 | 0.710432 | Erick194 |
5c4bd0115b98a0e53944cadf2f743dde628c407f | 443 | cpp | C++ | heap/kSortedArray.cpp | sumana2001/problems450 | 90b804b7063bb3f11f90b7506576ed14d27e1776 | [
"MIT"
] | null | null | null | heap/kSortedArray.cpp | sumana2001/problems450 | 90b804b7063bb3f11f90b7506576ed14d27e1776 | [
"MIT"
] | null | null | null | heap/kSortedArray.cpp | sumana2001/problems450 | 90b804b7063bb3f11f90b7506576ed14d27e1776 | [
"MIT"
] | 1 | 2021-08-19T12:20:06.000Z | 2021-08-19T12:20:06.000Z | #include<bits/stdc++.h>
using namespace std;
int main(){
int arr[]={6, 5, 3, 2, 8, 10, 9};
int n=sizeof(arr)/sizeof(arr[0]);
int k=3;
priority_queue<int,vector<int>,greater<int> > pq;
for(int i=0;i<n;i++){
pq.push(arr[i]);
if(pq.size()==k+1){
cout<<pq.top()<<" ";
... | 21.095238 | 53 | 0.446953 | sumana2001 |
5c4e7d0561f155e336d64344bb8746b7ae1bbc17 | 3,927 | cpp | C++ | Source/ISnd2/LoadOgg.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | 2 | 2022-02-11T11:59:44.000Z | 2022-02-16T20:33:25.000Z | Source/ISnd2/LoadOgg.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | Source/ISnd2/LoadOgg.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | #include "all.h"
#include "loader.h"
extern"C"{
#include "vorbis\vorbisfile.h"
}
#ifdef _DEBUG
#pragma comment(lib, "ogg_d.lib")
#pragma comment(lib, "vorbis_d.lib")
#else
#pragma comment(lib, "ogg.lib")
#pragma comment(lib, "vorbis.lib")
#endif
//----------------------------
const int BITDEPTH = 16; //bitdept... | 26.355705 | 113 | 0.531449 | mice777 |
5c56baa2acd3c5c05d37e50e16780bdc49fe6f47 | 6,068 | cpp | C++ | QtWebApp/httpserver/staticfilecontroller.cpp | cbcalves/crudQtTest | f10c83934abaca6d17f57e2b0aa0e6c8844bfdda | [
"MIT"
] | null | null | null | QtWebApp/httpserver/staticfilecontroller.cpp | cbcalves/crudQtTest | f10c83934abaca6d17f57e2b0aa0e6c8844bfdda | [
"MIT"
] | null | null | null | QtWebApp/httpserver/staticfilecontroller.cpp | cbcalves/crudQtTest | f10c83934abaca6d17f57e2b0aa0e6c8844bfdda | [
"MIT"
] | null | null | null | /**
@file
@author Stefan Frings
*/
#include "staticfilecontroller.h"
#include <QFileInfo>
#include <QDir>
#include <QDateTime>
using namespace stefanfrings;
StaticFileController::StaticFileController( const QSettings* settings, QObject* parent ) :
HttpRequestHandler( parent ),
m_encoding( settings->va... | 38.897436 | 157 | 0.599044 | cbcalves |
5c56c79b9d72ec05c7afc418b555be8c4cd08aee | 579 | hpp | C++ | src/common/idtypes/brushid.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 3 | 2020-03-05T06:36:51.000Z | 2020-06-20T03:25:02.000Z | src/common/idtypes/brushid.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 13 | 2020-03-11T17:43:42.000Z | 2020-12-11T03:36:05.000Z | src/common/idtypes/brushid.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 1 | 2020-09-28T06:53:46.000Z | 2020-09-28T06:53:46.000Z | /**
* Addle source code
* @file
* @copyright Copyright 2020 Eleanor Hawk
* @copyright Modification and distribution permitted under the terms of the
* MIT License. See "LICENSE" for full details.
*/
#ifndef BRUSHID_HPP
#define BRUSHID_HPP
#include "addleid.hpp"
#include "brushengineid.hpp"
namespace Addle {
c... | 20.678571 | 76 | 0.768566 | squeevee |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.