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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f63298b90a99981a61b4e03d28432ed1f424af2d | 6,098 | hpp | C++ | sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/key_client.hpp | volatilevar/azure-sdk-for-cpp | 5e97c8f67f279148ba475fe6a0a7a8650449a603 | [
"MIT"
] | null | null | null | sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/key_client.hpp | volatilevar/azure-sdk-for-cpp | 5e97c8f67f279148ba475fe6a0a7a8650449a603 | [
"MIT"
] | null | null | null | sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/key_client.hpp | volatilevar/azure-sdk-for-cpp | 5e97c8f67f279148ba475fe6a0a7a8650449a603 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
/**
* @brief Defines the Key Vault Keys client.
*
*/
#pragma once
#include <azure/core/credentials.hpp>
#include <azure/core/http/http.hpp>
#include <azure/core/response.hpp>
#include <azure/keyvault/common/internal/keyv... | 39.597403 | 100 | 0.671532 | volatilevar |
f632d49bf492138acc0e5ab9177c2fb81ec274b7 | 10,181 | cpp | C++ | source/volume_file.cpp | Manowar/hkeystore | a02b49503f8b066567de689044b5758e47a3c140 | [
"MIT"
] | null | null | null | source/volume_file.cpp | Manowar/hkeystore | a02b49503f8b066567de689044b5758e47a3c140 | [
"MIT"
] | null | null | null | source/volume_file.cpp | Manowar/hkeystore | a02b49503f8b066567de689044b5758e47a3c140 | [
"MIT"
] | null | null | null | #include <fstream>
#include <cstring>
#include <string>
#include <cassert>
#include <algorithm>
#include <errors.h>
#include "volume_file.h"
namespace hks {
struct RecordSizesInitializer {
constexpr RecordSizesInitializer()
: arr()
{
arr[0] = 32;
for (int i = 1; i < VolumeFile::SIZES_COUNT;... | 29.769006 | 116 | 0.713682 | Manowar |
f6334de8acd664b170672b531fd9517eaee58bce | 6,931 | cpp | C++ | src/main.cpp | sebt3/funkeymonkey | 34d1a8f730e00fb5ae1dccb03508f92f6707c1f4 | [
"BSD-2-Clause"
] | 8 | 2015-08-06T09:11:45.000Z | 2021-12-28T10:09:08.000Z | src/main.cpp | sebt3/funkeymonkey | 34d1a8f730e00fb5ae1dccb03508f92f6707c1f4 | [
"BSD-2-Clause"
] | 5 | 2015-10-06T05:17:44.000Z | 2017-09-02T07:53:46.000Z | src/main.cpp | sebt3/funkeymonkey | 34d1a8f730e00fb5ae1dccb03508f92f6707c1f4 | [
"BSD-2-Clause"
] | 7 | 2015-10-05T17:16:48.000Z | 2021-12-28T08:31:59.000Z | #include "funkeymonkeymodule.h"
#include "evdevdevice.h"
#include "funkeymonkeymoduleloader.h"
#include "cxxopts.hpp"
#include <iostream>
#include <cstdlib>
#include <regex>
#include <algorithm>
#include <iterator>
#include <memory.h>
#include <signal.h>
volatile sig_atomic_t done = 0;
volatile sig_atomic_t usr1 = 0... | 25.29562 | 221 | 0.589958 | sebt3 |
f633bdd7978a3fc8f11bb899f28544ef14948cb7 | 6,473 | hpp | C++ | src/lepp3/visualization/ObsSurfVisualizer.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | 6 | 2017-01-16T10:41:56.000Z | 2020-10-09T09:13:30.000Z | src/lepp3/visualization/ObsSurfVisualizer.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | null | null | null | src/lepp3/visualization/ObsSurfVisualizer.hpp | am-lola/lepp3 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | [
"MIT"
] | 4 | 2015-08-07T13:07:32.000Z | 2021-08-03T03:18:33.000Z | #ifndef LEPP3_ARVISUALIZER_H__
#define LEPP3_ARVISUALIZER_H__
#include "lepp3/FrameData.hpp"
#include "lepp3/Typedefs.hpp"
#include "lepp3/visualization/BaseVisualizer.hpp"
#include "lepp3/models/ObjectModel.h"
#include "lepp3/models/SurfaceModel.h"
#include "lepp3/CalibrationAggregator.hpp"
#include <vector>
#includ... | 25.995984 | 114 | 0.681446 | am-lola |
f63b76a45bfecf897f55d728eb8974a1711906ac | 1,438 | cpp | C++ | Kattis/Kattis - barcode/Wrong Answer (5).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | Kattis/Kattis - barcode/Wrong Answer (5).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | Kattis/Kattis - barcode/Wrong Answer (5).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2020-02-12 18:24:32
* solution_verdict: Wrong Answer language: C++
* run... | 26.145455 | 111 | 0.402643 | kzvd4729 |
f63d35e535c90819d4cea7f5949341b9cac6e10e | 2,005 | hpp | C++ | Source/AllProjects/AIUtils/CIDSpReco/CIDSpReco.hpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | 1 | 2019-05-28T06:33:01.000Z | 2019-05-28T06:33:01.000Z | Source/AllProjects/AIUtils/CIDSpReco/CIDSpReco.hpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | Source/AllProjects/AIUtils/CIDSpReco/CIDSpReco.hpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | //
// FILE NAME: CIDSpReco.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 11/30/2016
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.org/... | 27.094595 | 78 | 0.490274 | eudora-jia |
f6417744f641a312f23f8db800e238255453345e | 410 | cpp | C++ | etc/config/src/INLINE_MEMBER_TEMPLATES.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | etc/config/src/INLINE_MEMBER_TEMPLATES.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | etc/config/src/INLINE_MEMBER_TEMPLATES.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | // checking for inline member templates
struct A
{
template <class T>
struct AB { };
template <class T>
void foo (T) { }
};
template <class T>
struct B
{
template <class U>
struct BB { };
template <class U>
void foo (U) { }
};
// check that member templates are usable
void foo (A ... | 13.225806 | 62 | 0.563415 | Hower91 |
f644079a117c776d4b417f76b0486f8f3dc9bad8 | 1,953 | cpp | C++ | exec/agent.cpp | Yao-Chung/Sokoban-Agent | 7135a51ee8a912fe8a636ccfeecbcd3551e6720c | [
"BSD-3-Clause"
] | null | null | null | exec/agent.cpp | Yao-Chung/Sokoban-Agent | 7135a51ee8a912fe8a636ccfeecbcd3551e6720c | [
"BSD-3-Clause"
] | null | null | null | exec/agent.cpp | Yao-Chung/Sokoban-Agent | 7135a51ee8a912fe8a636ccfeecbcd3551e6720c | [
"BSD-3-Clause"
] | null | null | null | #include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <defines.hpp>
#include <Solver.hpp>
static void printMap(const Map& map){
for(std::string row : map){
std::cout << row << std::endl;
}
}
int main(int argc, char* const argv[])
{
std::string prefix, extension, mapP... | 27.125 | 117 | 0.513569 | Yao-Chung |
f6474e6ad34ed510d0bd47d0ebfbf6043b855670 | 1,788 | cpp | C++ | backup/2/leetcode/c++/path-in-zigzag-labelled-binary-tree.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/leetcode/c++/path-in-zigzag-labelled-binary-tree.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/leetcode/c++/path-in-zigzag-labelled-binary-tree.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 30.827586 | 345 | 0.513423 | yangyanzhan |
f64a0e83192e70cec05f855df811d39fc4c6c7c3 | 29,687 | cpp | C++ | ToolKit/SyntaxEdit/XTPSyntaxEditLexColorFileReader.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/SyntaxEdit/XTPSyntaxEditLexColorFileReader.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/SyntaxEdit/XTPSyntaxEditLexColorFileReader.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTPSyntaxEditLexColorFileReader.cpp: implementation of the CXTLexColorFileReader class.
//
// This file is a part of the XTREME TOOLKIT PRO MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY ... | 26.318262 | 148 | 0.725469 | 11Zero |
f64ee0ec13512b43a2676a5359a25125eddcb1b4 | 12,127 | cc | C++ | src/tiger/runtime/gc/heap/heap.cc | He-Jingkai/compiler | 881b1a1048270654989106f242ff033a4d1c186e | [
"BSD-3-Clause"
] | null | null | null | src/tiger/runtime/gc/heap/heap.cc | He-Jingkai/compiler | 881b1a1048270654989106f242ff033a4d1c186e | [
"BSD-3-Clause"
] | null | null | null | src/tiger/runtime/gc/heap/heap.cc | He-Jingkai/compiler | 881b1a1048270654989106f242ff033a4d1c186e | [
"BSD-3-Clause"
] | null | null | null | #include "heap.h"
namespace gc {
inline void TigerHeap::SortIntervalBySize() {
std::sort(free_intervals.begin(), free_intervals.end(),
TigerHeap::compareIntervalBySize);
}
inline void TigerHeap::SortIntervalByStartAddr() {
std::sort(free_intervals.begin(), free_intervals.end(),
TigerHeap:... | 33.043597 | 80 | 0.642038 | He-Jingkai |
f6505d92b0f22a832f870257ac1047dca1e1f53c | 694 | cpp | C++ | src/geometry/2d-geometry/fermat-point.cpp | Nisiyama-Suzune/LMR | 16325b9efcb71240111ac12ea55c0cb45b0c5834 | [
"MIT"
] | 48 | 2018-08-15T11:58:28.000Z | 2022-02-08T23:38:29.000Z | src/geometry/2d-geometry/fermat-point.cpp | Nisiyama-Suzune/LMR | 16325b9efcb71240111ac12ea55c0cb45b0c5834 | [
"MIT"
] | null | null | null | src/geometry/2d-geometry/fermat-point.cpp | Nisiyama-Suzune/LMR | 16325b9efcb71240111ac12ea55c0cb45b0c5834 | [
"MIT"
] | 8 | 2019-07-18T10:27:50.000Z | 2021-06-08T13:03:47.000Z | point fermat_point (cp a, cp b, cp c) {
if (a == b) return a; if (b == c) return b; if (c == a) return c;
double ab = dis (a, b), bc = dis (b, c), ca = dis (c, a);
double cosa = dot (b - a, c - a) / ab / ca;
double cosb = dot (a - b, c - b) / ab / bc;
double cosc = dot (b - c, a - c) / ca / bc;
double sq3 = PI / ... | 46.266667 | 128 | 0.498559 | Nisiyama-Suzune |
f650b03f0a256a147e36fd8cd0592dcd3cf2744f | 706 | ipp | C++ | v8pp/throw_ex.ipp | Alia5/v8pp | 2782d7b203f3a39f0a805dd6e7a56b966ca04299 | [
"BSL-1.0"
] | 18 | 2021-09-17T16:41:14.000Z | 2022-02-01T15:22:20.000Z | v8pp/throw_ex.ipp | Alia5/v8pp | 2782d7b203f3a39f0a805dd6e7a56b966ca04299 | [
"BSL-1.0"
] | 36 | 2021-09-21T10:22:16.000Z | 2022-01-22T10:25:11.000Z | v8pp/throw_ex.ipp | Alia5/v8pp | 2782d7b203f3a39f0a805dd6e7a56b966ca04299 | [
"BSL-1.0"
] | 6 | 2021-09-26T11:06:32.000Z | 2022-01-21T15:07:05.000Z | #include "v8pp/throw_ex.hpp"
namespace v8pp {
V8PP_IMPL v8::Local<v8::Value> throw_ex(v8::Isolate* isolate, std::string_view str)
{
v8::Local<v8::String> msg = v8::String::NewFromUtf8(isolate, str.data(),
v8::NewStringType::kNormal, static_cast<int>(str.size())).ToLocalChecked();
return isolate->ThrowException(ms... | 33.619048 | 83 | 0.720963 | Alia5 |
f657a86f7701a7c8a0efb92f32fe05db8b35d622 | 466 | cc | C++ | codeforces/Round582-Div.3/A.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 67 | 2019-07-14T05:38:41.000Z | 2021-12-23T11:52:51.000Z | codeforces/Round582-Div.3/A.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | null | null | null | codeforces/Round582-Div.3/A.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 12 | 2020-01-16T10:48:01.000Z | 2021-06-11T16:49:04.000Z | //
// Created by OFShare on 2019-09-08
//
#include <bits/stdc++.h>
const int maxn = 1e2 + 5;
int n;
int A[maxn];
int main(){
scanf("%d", &n);
for(int i=1; i<=n; ++i){
scanf("%d", &A[i]);
}
// 枚举最后都移动到相同的点
int ans = 1e9;
for(int i=1; i<=n; ++i){
int sum = 0;
for(int j=1;... | 17.259259 | 41 | 0.429185 | OFShare |
2cf1257301db7e9dd64ad67e3a11b5069ebb8b94 | 3,327 | cpp | C++ | benchmarks/FFNN_mnist/igen/igen_ffnn_f64i.cpp | joaoriverd/IGen | c887cf4a03a6c901180be8ac618a1705d150cb60 | [
"BSD-3-Clause"
] | 5 | 2021-02-21T22:35:08.000Z | 2022-02-01T18:22:50.000Z | benchmarks/FFNN_mnist/igen/igen_ffnn_f64i.cpp | joaoriverd/IGen | c887cf4a03a6c901180be8ac618a1705d150cb60 | [
"BSD-3-Clause"
] | null | null | null | benchmarks/FFNN_mnist/igen/igen_ffnn_f64i.cpp | joaoriverd/IGen | c887cf4a03a6c901180be8ac618a1705d150cb60 | [
"BSD-3-Clause"
] | 1 | 2021-03-30T11:22:52.000Z | 2021-03-30T11:22:52.000Z | #include "igen_lib.h"
#include "igen_math.h"
#include <math.h>
#include <stddef.h>
#include <stdlib.h>
static f64_I _y1[1024];
static f64_I _y2[1024];
static void WeightedSum_opt(f64_I *W, f64_I *b, f64_I *x, f64_I *y, int n_in,
int num_n) {
for (int i = 0; i < num_n; i += 2) {
f64_... | 30.805556 | 77 | 0.530207 | joaoriverd |
2cf3f024f2e60bf95a183f1262a736b774cc67d4 | 1,074 | cpp | C++ | main.cpp | JohnBobSmith/triangulardeathrepo | 65e16009ddc446e40515299e2a86e184c8747849 | [
"MIT"
] | null | null | null | main.cpp | JohnBobSmith/triangulardeathrepo | 65e16009ddc446e40515299e2a86e184c8747849 | [
"MIT"
] | null | null | null | main.cpp | JohnBobSmith/triangulardeathrepo | 65e16009ddc446e40515299e2a86e184c8747849 | [
"MIT"
] | null | null | null | #include "TDGameEngine.hpp"
#include "Player.hpp"
#include "PropTriangle.hpp"
#include "PropPlatform.hpp"
int main()
{
Player player;
PropTriangle proptriangle;
PropPlatform propplatform;
int screenWidth = 800;
int screenHeight = 600;
sf::RenderWindow window(sf::VideoMode(screenWidth, screenH... | 24.976744 | 90 | 0.621974 | JohnBobSmith |
2cfff24eda2a2b383e8348e26d2c19a8c3e34391 | 2,586 | hpp | C++ | library/DataStructures/BinaryIndexedTree.hpp | ducaddepar/ProgrammingContest | 4c47cada50ed23bd841cfea06a377a4129d4d88f | [
"MIT"
] | 39 | 2018-08-26T05:53:19.000Z | 2021-12-11T07:47:24.000Z | library/DataStructures/BinaryIndexedTree.hpp | ducaddepar/ProgrammingContest | 4c47cada50ed23bd841cfea06a377a4129d4d88f | [
"MIT"
] | 1 | 2018-06-21T00:40:41.000Z | 2018-06-21T00:40:46.000Z | library/DataStructures/BinaryIndexedTree.hpp | ducaddepar/ProgrammingContest | 4c47cada50ed23bd841cfea06a377a4129d4d88f | [
"MIT"
] | 8 | 2018-08-27T00:34:23.000Z | 2020-09-27T12:51:22.000Z | #include "global.hpp"
#ifndef BIT_H
#define BIT_H
template <class T> class BinaryIndexedTree {
vector<T> val;
int n, minIndex, maxIndex;
public:
BinaryIndexedTree() {}
BinaryIndexedTree(int n): BinaryIndexedTree(1, n) {}
BinaryIndexedTree(int minIndex, int maxIndex) {
init(minIndex, max... | 27.510638 | 124 | 0.448956 | ducaddepar |
fa006de6d48dec90973f93c30a2be0c573e57d83 | 270 | cpp | C++ | mcare_server/MsgQueue.cpp | KatSchrier/mcare | cd9ecc6e130ed94e1fe8a1881178c7729625fbb3 | [
"MIT"
] | 1 | 2021-08-21T02:21:00.000Z | 2021-08-21T02:21:00.000Z | mcare_server/MsgQueue.cpp | KatSchrier/mcare | cd9ecc6e130ed94e1fe8a1881178c7729625fbb3 | [
"MIT"
] | null | null | null | mcare_server/MsgQueue.cpp | KatSchrier/mcare | cd9ecc6e130ed94e1fe8a1881178c7729625fbb3 | [
"MIT"
] | 2 | 2021-09-04T00:21:03.000Z | 2022-02-05T08:43:48.000Z | // MsgQueue.cpp
// Created by Robin Rowe 2021-08-15
// MIT Open Source
#include "MsgQueue.h"
using namespace std;
ostream& MsgQueue::Print(ostream& os) const
{ // to-do
return os << "MsgQueue";
}
istream& MsgQueue::Input(std::istream& is)
{ // to-do
return is;
}
| 15.882353 | 43 | 0.67037 | KatSchrier |
fa00a4dc8cdcca9310abe4d407f6802fe1836b26 | 5,661 | cpp | C++ | DataStructures/Linear/DoublyLinkedList.cpp | anantdhok/ComputerScience | 03939dc2cd56d0ef32d929f7f19f50dcf7573cd9 | [
"MIT"
] | 1 | 2020-12-30T15:39:43.000Z | 2020-12-30T15:39:43.000Z | DataStructures/Linear/DoublyLinkedList.cpp | anantdhok/ComputerScience | 03939dc2cd56d0ef32d929f7f19f50dcf7573cd9 | [
"MIT"
] | null | null | null | DataStructures/Linear/DoublyLinkedList.cpp | anantdhok/ComputerScience | 03939dc2cd56d0ef32d929f7f19f50dcf7573cd9 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<conio.h>
using namespace std;
struct node {
int data;
struct node *next, *prev;
} *root, *current, *previous, *head, *traverse;
struct node *create() {
struct node *newnode = (struct node *)malloc(sizeof(struct node));
cout << "\n Enter the data : ";
cin >> newno... | 24.720524 | 108 | 0.45787 | anantdhok |
fa02e6f75b7ec9ab92705addd1584d35f50e51a3 | 1,961 | hpp | C++ | modules/core/combinatorial/include/nt2/combinatorial/functions/scalar/fibonacci.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/combinatorial/include/nt2/combinatorial/functions/scalar/fibonacci.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/combinatorial/include/nt2/combinatorial/functions/scalar/fibonacci.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// 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.
// Se... | 40.854167 | 121 | 0.580826 | psiha |
fa0fb41a31752a17d07a69307a060cf2711d07f8 | 1,473 | cpp | C++ | src/varinfo.cpp | alarm-redist/redistmetrics | a4167d9556ad724e63933304afdc3d6313862c88 | [
"MIT"
] | 3 | 2021-12-24T03:29:01.000Z | 2022-01-06T19:57:02.000Z | src/varinfo.cpp | alarm-redist/redistmetrics | a4167d9556ad724e63933304afdc3d6313862c88 | [
"MIT"
] | 12 | 2021-11-09T04:32:35.000Z | 2022-03-04T20:41:01.000Z | src/varinfo.cpp | alarm-redist/redistmetrics | a4167d9556ad724e63933304afdc3d6313862c88 | [
"MIT"
] | null | null | null | // [[Rcpp::interfaces(r, cpp)]]
#include <RcppArmadillo.h>
#include <RcppThread.h>
using namespace Rcpp;
using namespace arma;
double var_info(const uvec m1, const uvec m2, const vec pop, int k) {
int V = m1.n_elem;
mat joint(k, k);
vec p1(k);
vec p2(k);
double total_pop = 0;
for (int i = 0; i... | 25.396552 | 96 | 0.505092 | alarm-redist |
fa11267b5c8678f4362ce0853b2ebd0489141f96 | 340 | hpp | C++ | net/TcpListener.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | net/TcpListener.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | net/TcpListener.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #ifndef ___INANITY_NET_TCP_LISTENER_HPP___
#define ___INANITY_NET_TCP_LISTENER_HPP___
#include "net.hpp"
BEGIN_INANITY_NET
/// Server TCP listener abstract class.
/** Retains a reference to itself until closed. */
class TcpListener : public Object
{
public:
/// Closes a listener.
virtual void Close() = 0;
};
END_... | 17 | 50 | 0.770588 | quyse |
fa1655e910c75c0c3fd02b5d4f266f307f4d6e73 | 547 | cpp | C++ | Morpheus-Core/Source/Morpheus/Renderer/RendererCore/RendererAPI.cpp | Red-Scarlet/Morpheus-Engine | f9ddc2ab4bac5f6f8b2f7334358c47dcc558eec4 | [
"Apache-2.0"
] | 2 | 2020-11-07T12:38:16.000Z | 2020-11-21T01:36:49.000Z | Morpheus-Core/Source/Morpheus/Renderer/RendererCore/RendererAPI.cpp | LegendaryDelta/Morpheus-Engine | f9ddc2ab4bac5f6f8b2f7334358c47dcc558eec4 | [
"Apache-2.0"
] | null | null | null | Morpheus-Core/Source/Morpheus/Renderer/RendererCore/RendererAPI.cpp | LegendaryDelta/Morpheus-Engine | f9ddc2ab4bac5f6f8b2f7334358c47dcc558eec4 | [
"Apache-2.0"
] | null | null | null | #include "Morppch.h"
#include "RendererAPI.h"
#include "Platform/Vulkan/VulkanRendererAPI.h"
namespace Morpheus {
RendererAPI::API RendererAPI::s_RenderAPI = RendererAPI::API::Vulkan;
Scope<RendererAPI> RendererAPI::Create()
{
switch (s_RenderAPI)
{
case RendererAPI::API::None: MORP_CORE_ASSERT(true, "... | 24.863636 | 123 | 0.738574 | Red-Scarlet |
fa16b20a757107bc5ee9736a301b22d4d4cafa61 | 1,404 | cpp | C++ | src/Gui/Common/RestoreFromMnemonicSeedDialog.cpp | exploshot/fork_qwertycoin-zero | b22803590568ad8652c0c116ab00228d587afce9 | [
"MIT"
] | 8 | 2019-03-04T12:04:14.000Z | 2021-01-31T12:11:38.000Z | src/Gui/Common/RestoreFromMnemonicSeedDialog.cpp | Diamoneum/diamoneum-zero | 4b0ff54f04306cffe9ae2bd9a946b2b32de8773f | [
"MIT"
] | 11 | 2019-03-29T14:01:32.000Z | 2020-05-17T09:13:30.000Z | src/Gui/Common/RestoreFromMnemonicSeedDialog.cpp | Diamoneum/diamoneum-zero | 4b0ff54f04306cffe9ae2bd9a946b2b32de8773f | [
"MIT"
] | 10 | 2019-04-06T09:04:14.000Z | 2021-01-31T12:11:50.000Z | // Copyright (c) 2011-2016 The Cryptonote developers
// Copyright (c) 2015-2016 XDN developers
// Copyright (c) 2016-2017 The Karbowanec developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QApplication>
#inc... | 34.243902 | 144 | 0.717949 | exploshot |
fa17ed5754d7650bef5c7a6ccef4f54e50a7b323 | 1,344 | cpp | C++ | Source/AllProjects/CQCServer/CQCServer.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/CQCServer/CQCServer.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/CQCServer/CQCServer.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: CQCServer.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 07/04/2000
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.or... | 25.358491 | 80 | 0.436756 | MarkStega |
fa1ce07133fe6b15bc966cfa5818c047c76fea5b | 22,497 | cpp | C++ | ComponentMaterial.cpp | CITMProject3/Project3 | 5076dbaf4eced4eb69bb43b811684206e62eded4 | [
"MIT"
] | 3 | 2017-04-02T19:37:52.000Z | 2018-11-06T13:37:33.000Z | ComponentMaterial.cpp | CITMProject3/Project3 | 5076dbaf4eced4eb69bb43b811684206e62eded4 | [
"MIT"
] | 74 | 2017-04-03T14:32:09.000Z | 2017-06-08T10:12:56.000Z | ComponentMaterial.cpp | CITMProject3/Project3 | 5076dbaf4eced4eb69bb43b811684206e62eded4 | [
"MIT"
] | 3 | 2017-06-06T17:10:46.000Z | 2019-10-28T16:25:27.000Z | #include "Application.h"
#include "ModuleEditor.h"
#include "GameObject.h"
#include "ComponentMaterial.h"
#include "imgui\imgui.h"
#include "Data.h"
#include "ResourceFileTexture.h"
#include "ResourceFileMaterial.h"
#include "ResourceFileRenderTexture.h"
#include "Assets.h"
#include "Glew\include\glew.h"
Componen... | 30.197315 | 159 | 0.650131 | CITMProject3 |
fa35979bf1c12659c48a034f343d1c956e9a8d56 | 1,659 | cpp | C++ | src/linalg/linalg_internal_cpu/Norm_internal.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 11 | 2020-04-14T15:45:42.000Z | 2022-03-31T14:37:03.000Z | src/linalg/linalg_internal_cpu/Norm_internal.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 38 | 2019-08-02T15:15:51.000Z | 2022-03-04T19:07:02.000Z | src/linalg/linalg_internal_cpu/Norm_internal.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 7 | 2019-07-17T07:50:55.000Z | 2021-07-03T06:44:52.000Z | #include "Norm_internal.hpp"
#include "utils/utils_internal_interface.hpp"
#include "utils/utils.hpp"
#include "lapack_wrapper.hpp"
#ifdef UNI_OMP
#include <omp.h>
#endif
namespace cytnx{
namespace linalg_internal{
/// Norm
void Norm_internal_cd(void *out, const boost::intrusive_ptr<Storage_b... | 29.625 | 89 | 0.555756 | j9263178 |
fa377dd05e99cfd4d271a264519f106f5936b58c | 26,028 | hh | C++ | src/lib/MeshFEM/SymmetricMatrix.hh | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | null | null | null | src/lib/MeshFEM/SymmetricMatrix.hh | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | null | null | null | src/lib/MeshFEM/SymmetricMatrix.hh | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// SymmetricMatrix.hh
////////////////////////////////////////////////////////////////////////////////
/*! @file
// Classes to wrap a flattened symmetric rank 2 tensor (a 6-vector in 3D),
// allowing it to be treated as a plain symmetric... | 42.529412 | 174 | 0.605079 | pbedenbaugh |
fa37fe5288f4da41cfcabde3312d5381491a27d7 | 1,106 | cpp | C++ | src/app_state.cpp | jjimenezg93/star-control2 | d4062e442fc375fa6fceffac96b7c1b80b353cfd | [
"MIT"
] | 5 | 2018-12-05T10:50:00.000Z | 2019-10-08T19:56:34.000Z | src/app_state.cpp | jjimenezg93/star-control2 | d4062e442fc375fa6fceffac96b7c1b80b353cfd | [
"MIT"
] | null | null | null | src/app_state.cpp | jjimenezg93/star-control2 | d4062e442fc375fa6fceffac96b7c1b80b353cfd | [
"MIT"
] | null | null | null | #include <iostream>
#include "../include/app_state.h"
#include "../include/as_start_menu.h"
#include "../include/as_game_conf_menu.h"
#include "../include/as_end_game.h"
#include "../include/as_game.h"
uint16 IAppState::m_currentFrames = 0;
clock_t IAppState::m_framesTimer = 0;
clock_t IAppState::m_lastTimer = 0;
IA... | 21.269231 | 67 | 0.705244 | jjimenezg93 |
fa3bacbdd98d204b695e70611bbccdec3ab8f0bf | 8,606 | cpp | C++ | src/blsct/types.cpp | mellowsharp/navcoin-core | 6d4c580efa1e73791a18d8d2d8e9c9e90fd8e780 | [
"MIT"
] | null | null | null | src/blsct/types.cpp | mellowsharp/navcoin-core | 6d4c580efa1e73791a18d8d2d8e9c9e90fd8e780 | [
"MIT"
] | null | null | null | src/blsct/types.cpp | mellowsharp/navcoin-core | 6d4c580efa1e73791a18d8d2d8e9c9e90fd8e780 | [
"MIT"
] | 2 | 2020-09-06T20:02:00.000Z | 2020-11-19T18:47:42.000Z | // Copyright (c) 2020 The NavCoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "types.h"
#include <utilstrencodings.h>
#include <iostream>
void CheckRelicErrorsBLSCT() {
if (!core_get()) {
th... | 19.693364 | 80 | 0.607599 | mellowsharp |
fa43c9ce5f5752d7be99308d691569357293598d | 2,075 | cpp | C++ | lib/QSgml/qsgmlhighliter.cpp | OwNet/qtownet | bcddc85401a279e850f269cdd14e2d08dff5e02e | [
"MIT"
] | 2 | 2016-09-28T02:23:07.000Z | 2019-07-13T15:53:47.000Z | lib/QSgml/qsgmlhighliter.cpp | OwNet/qtownet | bcddc85401a279e850f269cdd14e2d08dff5e02e | [
"MIT"
] | null | null | null | lib/QSgml/qsgmlhighliter.cpp | OwNet/qtownet | bcddc85401a279e850f269cdd14e2d08dff5e02e | [
"MIT"
] | null | null | null | #include "qsgmlhighliter.h"
QSgmlHighliter::QSgmlHighliter(QTextDocument * parent)
:QSyntaxHighlighter(parent)
{
}
void QSgmlHighliter::highlightBlock(const QString &text)
{
int index;
QString pattern;
QTextCharFormat myClassFormat;
QRegExp expression;
expression.setMinimal(false);
myClassFo... | 27.302632 | 56 | 0.663614 | OwNet |
fa4717de4eb46c48b7d0043fd89bcaef584233bf | 2,252 | cpp | C++ | Code/Week4_Challenge_Find_Matches_sol.cpp | bumsu-kim/PIC10A | e0e93496967ec78bd1f5c989c25056f5321ae264 | [
"MIT"
] | null | null | null | Code/Week4_Challenge_Find_Matches_sol.cpp | bumsu-kim/PIC10A | e0e93496967ec78bd1f5c989c25056f5321ae264 | [
"MIT"
] | null | null | null | Code/Week4_Challenge_Find_Matches_sol.cpp | bumsu-kim/PIC10A | e0e93496967ec78bd1f5c989c25056f5321ae264 | [
"MIT"
] | null | null | null | /*
* PIC10A 1A, Spring 2022, UCLA
* TA: Bumsu Kim
*
* Challenge: Find Matches
*
* The provided program finds the *first* match of the input character from the input string.
* Modify the program so that
* (1) it finds characters in case-insensitive manner
* (i.e. 'h' can be found in "Hello, Worlds!", and so can 'E'.)
... | 30.432432 | 92 | 0.608792 | bumsu-kim |
fa48e8863b9bcb4681d3f1fc2986052193d34f9b | 4,130 | cpp | C++ | emerald/sph2d_box/config.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | 3 | 2020-08-16T17:56:25.000Z | 2021-02-25T21:55:39.000Z | emerald/sph2d_box/config.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | null | null | null | emerald/sph2d_box/config.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | null | null | null | #include <emerald/sph2d_box/config.h>
#include <emerald/sph2d_box/solids.h>
#include <emerald/sph_common/kernels.h>
#include <emerald/sph_common/types.h>
#include <emerald/util/flicks.h>
#include <emerald/util/format.h>
#include <emerald/util/functions.h>
#include <fmt/format.h>
#include <limits>
namespace emerald:... | 30.820896 | 78 | 0.630508 | blackencino |
fa4cc50ac9aea011a3b393a6ae9b5fb9ac30dcd6 | 4,458 | cpp | C++ | Engine/Code/Engine/RHI/RHIFactory.cpp | cugone/Abrams2018 | 3c5f1e42ab43dda135ac585acbea06ef4c110023 | [
"MIT"
] | null | null | null | Engine/Code/Engine/RHI/RHIFactory.cpp | cugone/Abrams2018 | 3c5f1e42ab43dda135ac585acbea06ef4c110023 | [
"MIT"
] | 4 | 2019-06-15T17:38:21.000Z | 2019-06-20T20:28:53.000Z | Engine/Code/Engine/RHI/RHIFactory.cpp | cugone/Abrams2018 | 3c5f1e42ab43dda135ac585acbea06ef4c110023 | [
"MIT"
] | 1 | 2019-04-08T14:47:28.000Z | 2019-04-08T14:47:28.000Z | #include "Engine/RHI/RHIFactory.hpp"
#include "Engine/Core/ErrorWarningAssert.hpp"
#include "Engine/Renderer/Window.hpp"
#include "Engine/Rhi/RHIDevice.hpp"
RHIFactory::RHIFactory() noexcept {
#ifdef RENDER_DEBUG
auto hr_factory = ::CreateDXGIFactory2(DXGI_CREATE_FACTORY_DEBUG, __uuidof(IDXGIFactory6), reinter... | 34.292308 | 148 | 0.700538 | cugone |
fa516645d2d745bed2119833476500856cb90a52 | 6,585 | cpp | C++ | sample/_devel/bitmarker/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | 24 | 2017-09-07T16:08:33.000Z | 2022-02-26T16:32:48.000Z | sample/_devel/bitmarker/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | null | null | null | sample/_devel/bitmarker/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | 8 | 2018-11-30T02:53:24.000Z | 2021-05-18T06:30:42.000Z | #define SP_USE_DEBUG 1
#define SP_USE_CONSOLE 1
#define SP_USE_IMGUI 1
#include "simplesp.h"
#include "spex/spgl.h"
#include "spex/spcv.h"
using namespace sp;
class BitMarkerGUI : public BaseWindow {
Mem1<BitMarkerParam> m_mrks;
BitMarker m_bitMarker;
Mem2<Col3> m_crntImg;
struct UIFlag {
... | 29.931818 | 123 | 0.479879 | sanko-shoko |
fa55e190712542222271cbe023a7101c0d0dab8b | 47 | hpp | C++ | libCard/include/card/board.hpp | Mizux/cardgame | 61b7dbf340823a513dc0504646a5589dacf1463e | [
"Apache-2.0"
] | 1 | 2020-08-16T03:01:30.000Z | 2020-08-16T03:01:30.000Z | libCard/include/card/board.hpp | Mizux/cardgame | 61b7dbf340823a513dc0504646a5589dacf1463e | [
"Apache-2.0"
] | null | null | null | libCard/include/card/board.hpp | Mizux/cardgame | 61b7dbf340823a513dc0504646a5589dacf1463e | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace cg {
class Board {};
}
| 7.833333 | 15 | 0.659574 | Mizux |
fa56fabba02c4872d6575a03b9eb41a9316f81d6 | 11,514 | cc | C++ | testing/vector_test.cc | shgalus/shg | 0318d0126cf12c3236183447d130969c468a02fa | [
"MIT"
] | 9 | 2015-05-21T04:14:50.000Z | 2021-05-31T17:15:15.000Z | testing/vector_test.cc | shgalus/shg | 0318d0126cf12c3236183447d130969c468a02fa | [
"MIT"
] | 1 | 2015-05-21T05:31:04.000Z | 2015-05-21T05:31:04.000Z | testing/vector_test.cc | shgalus/shg | 0318d0126cf12c3236183447d130969c468a02fa | [
"MIT"
] | 2 | 2015-05-21T04:14:44.000Z | 2020-08-18T12:35:22.000Z | #include <shg/vector.h>
#include <shg/utils.h>
#include "testing.h"
namespace SHG::Testing {
BOOST_AUTO_TEST_SUITE(vector_test)
const std::ios_base::openmode binary_io_mode =
std::ios_base::out | std::ios_base::in | std::ios_base::binary;
BOOST_AUTO_TEST_CASE(vector_constructor_test) {
{
const V... | 29.44757 | 70 | 0.435904 | shgalus |
fa5b15fa98d174d0a36d50cfc6dbf826f2c3ac36 | 1,021 | cpp | C++ | source/AlgebraicMethods/TermStorageVector.cpp | CoghettoR/gclc | b481b15d28ee66f995b73283e26c285ca8c4a821 | [
"MIT"
] | 21 | 2020-12-08T20:06:01.000Z | 2022-02-13T22:52:02.000Z | source/AlgebraicMethods/TermStorageVector.cpp | CoghettoR/gclc | b481b15d28ee66f995b73283e26c285ca8c4a821 | [
"MIT"
] | 9 | 2020-12-20T03:54:55.000Z | 2022-03-31T19:30:04.000Z | source/AlgebraicMethods/TermStorageVector.cpp | CoghettoR/gclc | b481b15d28ee66f995b73283e26c285ca8c4a821 | [
"MIT"
] | 5 | 2021-04-25T18:47:17.000Z | 2022-01-23T02:37:30.000Z | #include "TermStorageVector.h"
TermStorageVector::TermStorageVector()
{
}
TermStorageVector::~TermStorageVector()
{
uint size = (uint)_terms.size();
for (uint ii = 0; ii < size; ii++)
{
_terms[ii]->Dispose();
}
}
int TermStorageVector::AddTerm(Term* term)
{
term->AddRef();
_terms.push_back(... | 16.737705 | 57 | 0.628795 | CoghettoR |
fa5d5fa0fe1ead861c1e7ff6cb3b35ae6b41b9f0 | 1,555 | cpp | C++ | mra/mraconferencesettings.cpp | negram/kopete_mrim | c75c28a451e17b14edbe4dcd1ff8b261273473a5 | [
"BSD-2-Clause"
] | null | null | null | mra/mraconferencesettings.cpp | negram/kopete_mrim | c75c28a451e17b14edbe4dcd1ff8b261273473a5 | [
"BSD-2-Clause"
] | 1 | 2017-01-16T05:37:28.000Z | 2018-10-22T06:30:29.000Z | mra/mraconferencesettings.cpp | negram/kopete_mrim | c75c28a451e17b14edbe4dcd1ff8b261273473a5 | [
"BSD-2-Clause"
] | null | null | null | #include <QSet>
#include "mraconferencesettings.h"
MRAConferenceSettings::MRAConferenceSettings()
{
}
const QStringList &MRAConferenceSettings::contactList() const
{
return list;
}
void MRAConferenceSettings::setContactList(const QStringList&arg)
{
list = arg;
}
void MRAConferenceSettings::addContact(const... | 23.560606 | 80 | 0.650804 | negram |
fa5da68deac6e537e709d7304cabb4d20c4691e1 | 17,327 | cpp | C++ | tests/data_structure/test_kd_tree.cpp | mitthy/TCC | 4c48eb11cafd50334c5faef93edc5f03bc7fc171 | [
"MIT"
] | null | null | null | tests/data_structure/test_kd_tree.cpp | mitthy/TCC | 4c48eb11cafd50334c5faef93edc5f03bc7fc171 | [
"MIT"
] | null | null | null | tests/data_structure/test_kd_tree.cpp | mitthy/TCC | 4c48eb11cafd50334c5faef93edc5f03bc7fc171 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "geometricks/data_structure/kd_tree.hpp"
#include <vector>
#include <tuple>
#include <array>
using namespace geometricks;
TEST( TestKDTree, TestNearestNeighborCorrectness ) {
std::vector<std::tuple<int, int, int>> input_vector;
input_vector.reserve( 10 );
input_vector.push_back... | 41.651442 | 169 | 0.663185 | mitthy |
fa5e52aa4b95a68b2c7d2b06bbbd48a4de6f4c63 | 2,669 | hpp | C++ | libguard/include/guard_record.hpp | RameshIyyar/guard | 87b02b63b64b36a925bec42723d70e0531e93407 | [
"Apache-2.0"
] | null | null | null | libguard/include/guard_record.hpp | RameshIyyar/guard | 87b02b63b64b36a925bec42723d70e0531e93407 | [
"Apache-2.0"
] | null | null | null | libguard/include/guard_record.hpp | RameshIyyar/guard | 87b02b63b64b36a925bec42723d70e0531e93407 | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
#pragma once
#include "../guard_common.hpp"
#include <vector>
namespace openpower
{
namespace guard
{
#define GUARD_MAGIC "GUARDREC" //! "GUARDREC"
/* From hostboot: src/include/usr/hwas/hwasPlatDeconfigGard.H */
const uint8_t CURRENT_GARD_VERSION_LAYOUT = 0x1;
#ifdef PGUARD
/... | 29.01087 | 80 | 0.646309 | RameshIyyar |
fa695e4791a655b32f997e8fae725cf36b916737 | 27,740 | hxx | C++ | SimModel_Python_API/simmodel_swig/SimModel/framework/SimController_ZoneControlTemperature_Thermostat1Zone.hxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel/framework/SimController_ZoneControlTemperature_Thermostat1Zone.hxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimController_ZoneControlTemperature_Thermostat1Zone.hxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 43.753943 | 218 | 0.770764 | EnEff-BIM |
fa69601a025484ff3816f7cc26412b03e5e8cf53 | 3,569 | cpp | C++ | src/arucoTest.cpp | behollan/SwarmBot | 81a909e9fa17d4706a9d20e0371c715def3a3c98 | [
"MIT"
] | null | null | null | src/arucoTest.cpp | behollan/SwarmBot | 81a909e9fa17d4706a9d20e0371c715def3a3c98 | [
"MIT"
] | 1 | 2017-08-31T02:50:11.000Z | 2017-11-30T17:04:14.000Z | src/arucoTest.cpp | behollan/SwarmBot | 81a909e9fa17d4706a9d20e0371c715def3a3c98 | [
"MIT"
] | null | null | null | /*
By downloading, copying, installing or using the software you agree to this
license. If you do not agree to this license, do not download, install,
copy or use the software.
License Agreement
For Open Source Computer Vision Library
(3-clause BSD Licens... | 34.990196 | 95 | 0.692631 | behollan |
fa69fe69d4b5b14b4abeaf0276f830bdcb046bf5 | 6,353 | cpp | C++ | newton-3.14/applications/blenderPlugin/pyScene/pyMesh.cpp | execomrt/newton-dynamics | b38363000bed09cf514cdad92013b0c0b4c48f3f | [
"Zlib"
] | 1,031 | 2015-01-02T14:08:47.000Z | 2022-03-29T02:25:27.000Z | newton-3.14/applications/blenderPlugin/pyScene/pyMesh.cpp | execomrt/newton-dynamics | b38363000bed09cf514cdad92013b0c0b4c48f3f | [
"Zlib"
] | 240 | 2015-01-11T04:27:19.000Z | 2022-03-30T00:35:57.000Z | newton-3.14/applications/blenderPlugin/pyScene/pyMesh.cpp | execomrt/newton-dynamics | b38363000bed09cf514cdad92013b0c0b4c48f3f | [
"Zlib"
] | 224 | 2015-01-05T06:13:54.000Z | 2022-02-25T14:39:51.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: pyMesh.h
// Purpose:
// Author: Julio Jerez
// Modified by:
// Created: 22/05/2010 08:02:08
// RCS-ID:
// Copyright: Copyright (c) <2010> <Newton Game Dynamics>
// License:
// This software is provi... | 24.719844 | 126 | 0.660633 | execomrt |
fa6de77951765a7dfdeddbd9505a3700e5930724 | 1,028 | cpp | C++ | Service/Memory/Implementation/Original/Memory/UniqueString.cpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | 3 | 2021-06-02T05:06:48.000Z | 2022-01-26T09:39:44.000Z | Service/Memory/Implementation/Original/Memory/UniqueString.cpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | null | null | null | Service/Memory/Implementation/Original/Memory/UniqueString.cpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | null | null | null | #include <Memory/Original/UniqueString.hpp>
#include <Memory/UniqueString.hpp>
#include <SyntaxSugar/BlockCast.hpp>
namespace Emergence::Memory
{
UniqueString::UniqueString () noexcept
{
new (&data) Original::UniqueString ();
}
UniqueString::UniqueString (const char *_string) noexcept
{
new (&data) Original:... | 23.906977 | 105 | 0.734436 | KonstantinTomashevich |
fa6e861f7a23fac196d120fbda9a001b9204d728 | 4,462 | cpp | C++ | components/rgbd-sources/test/source_unit.cpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 4 | 2020-12-28T15:29:15.000Z | 2021-06-27T12:37:15.000Z | components/rgbd-sources/test/source_unit.cpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | null | null | null | components/rgbd-sources/test/source_unit.cpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 2 | 2021-01-13T05:28:39.000Z | 2021-05-04T03:37:11.000Z | #include "catch.hpp"
//---- Mocks -------------------------------------------------------------------
#include <ftl/rgbd/source.hpp>
#include "../src/basesource.hpp"
#include <ftl/config.h>
#include <nlohmann/json.hpp>
static std::string last_type = "";
namespace ftl {
namespace rgbd {
class Snapshot {};
class S... | 25.352273 | 121 | 0.655087 | knicos |
fa75ef9d93be83c2103a36b061ab5e23a46e3126 | 5,164 | hpp | C++ | src/graphblas/exceptions.hpp | KIwabuchi/gbtl | 62c6b1e3262f3623359e793edb5ec4fa7bb471f0 | [
"Unlicense"
] | 112 | 2016-04-26T05:54:30.000Z | 2022-03-27T05:56:16.000Z | src/graphblas/exceptions.hpp | KIwabuchi/gbtl | 62c6b1e3262f3623359e793edb5ec4fa7bb471f0 | [
"Unlicense"
] | 21 | 2016-03-22T19:06:46.000Z | 2021-10-07T15:40:18.000Z | src/graphblas/exceptions.hpp | KIwabuchi/gbtl | 62c6b1e3262f3623359e793edb5ec4fa7bb471f0 | [
"Unlicense"
] | 22 | 2016-04-26T05:54:35.000Z | 2021-12-21T03:33:20.000Z | /*
* GraphBLAS Template Library (GBTL), Version 3.0
*
* Copyright 2020 Carnegie Mellon University, Battelle Memorial Institute, and
* Authors.
*
* THIS MATERIAL WAS PREPARED AS AN ACCOUNT OF WORK SPONSORED BY AN AGENCY OF
* THE UNITED STATES GOVERNMENT. NEITHER THE UNITED STATES GOVERNMENT NOR THE
* UNITED STA... | 28.530387 | 80 | 0.512781 | KIwabuchi |
fa7876d25f482b4340dbf7aebb7ed4acb0941345 | 895 | cpp | C++ | Exercises/03_fundamentalDecimalTypes/03_fundamentalDecimalTypes.cpp | DanailIordanov/Uni-Mainz-efficient-Programming | 189f940b14757338ac951bbac2aa00bc3d4c33c6 | [
"MIT"
] | null | null | null | Exercises/03_fundamentalDecimalTypes/03_fundamentalDecimalTypes.cpp | DanailIordanov/Uni-Mainz-efficient-Programming | 189f940b14757338ac951bbac2aa00bc3d4c33c6 | [
"MIT"
] | null | null | null | Exercises/03_fundamentalDecimalTypes/03_fundamentalDecimalTypes.cpp | DanailIordanov/Uni-Mainz-efficient-Programming | 189f940b14757338ac951bbac2aa00bc3d4c33c6 | [
"MIT"
] | null | null | null | #define _USE_MATH_DEFINES
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
double degreeToRadian(double value)
{
return value * M_PI / 180;
}
int main()
{
double a, b, n;
a = 6377397.15508;
b = 6356078.96290;
n = (a - b) / (a + b);
double alpha = ((a + b) / 2) * (1 + pow(n, 2) / ... | 24.189189 | 154 | 0.588827 | DanailIordanov |
fa7885a5970330e142fdcd728e5b2452eb823233 | 9,843 | cpp | C++ | filename.cpp | heliosfa/Generics | 82c82f25dc68159c8bb2e158d2e486e08e13f20d | [
"BSD-3-Clause"
] | null | null | null | filename.cpp | heliosfa/Generics | 82c82f25dc68159c8bb2e158d2e486e08e13f20d | [
"BSD-3-Clause"
] | null | null | null | filename.cpp | heliosfa/Generics | 82c82f25dc68159c8bb2e158d2e486e08e13f20d | [
"BSD-3-Clause"
] | null | null | null | //------------------------------------------------------------------------------
#include "filename.h"
#include "macros.h"
const string FileName::Xc(1,':');
// ADR bodgey workaround for discrepancies in file path character. Run-time OS detection would be better.
#ifdef __BORLANDC__
const string FileName::Xs(1,'\\');
... | 33.366102 | 105 | 0.430052 | heliosfa |
fa79f8934d6a6248bacaa6b36233b7da8a95d212 | 427 | cpp | C++ | chap03/ex_jump.cpp | asciigen/tut_cpp | aebcb465bf27f6a147847092b09c975ce71b147f | [
"MIT"
] | null | null | null | chap03/ex_jump.cpp | asciigen/tut_cpp | aebcb465bf27f6a147847092b09c975ce71b147f | [
"MIT"
] | null | null | null | chap03/ex_jump.cpp | asciigen/tut_cpp | aebcb465bf27f6a147847092b09c975ce71b147f | [
"MIT"
] | null | null | null | using namespace std;
#include<iostream>
#include<stdlib.h>
int main()
{
int i = 0, n = 10;
while(i < n)
{
i++;
if(i == 7)
break;
cout <<"While iteration with break " << i <<" \n";
}
i = 0;
while(i < n)
{
i++;
if( i == 7)
continue;
cout <<"While iteration with continue "<< i << " \n";
}
i = ... | 13.34375 | 55 | 0.508197 | asciigen |
fa7f9ba6426e296f808fbcf5b81e596a0a7fe2c4 | 1,481 | cpp | C++ | C++ProgrammingBasic/04 RTTI(2)/04 RTTI(2).cpp | chowon986/Study | f92f026e412e61c0a75c0127420aa8fedcf0b621 | [
"MIT"
] | null | null | null | C++ProgrammingBasic/04 RTTI(2)/04 RTTI(2).cpp | chowon986/Study | f92f026e412e61c0a75c0127420aa8fedcf0b621 | [
"MIT"
] | null | null | null | C++ProgrammingBasic/04 RTTI(2)/04 RTTI(2).cpp | chowon986/Study | f92f026e412e61c0a75c0127420aa8fedcf0b621 | [
"MIT"
] | null | null | null | // dynamic_cast
#include <iostream>
#include <typeinfo>
class Animal {};
class Dog : public Animal
{
public:
int color;
};
void foo(Animal* p)
{
// p가 dog라면 색을 바꾸고싶다
p->color = 10;
}
int main()
{
Animal a;
foo(&a);
Dog d;
foo(&d);
}
// (1) 함수가 인자로 기반 클래스의 포인터를 받으면
// 기반 클래스 뿐 아니라 모든 파... | 16.640449 | 65 | 0.597569 | chowon986 |
fa81814425726527025cd8388496842bcd6dc41c | 4,523 | cpp | C++ | src/drivers/uavcannode/sim_controller.cpp | mgkim3070/Drone_Firmware | 6843061ce5eb573424424598cf3bac33e037d4d0 | [
"BSD-3-Clause"
] | null | null | null | src/drivers/uavcannode/sim_controller.cpp | mgkim3070/Drone_Firmware | 6843061ce5eb573424424598cf3bac33e037d4d0 | [
"BSD-3-Clause"
] | null | null | null | src/drivers/uavcannode/sim_controller.cpp | mgkim3070/Drone_Firmware | 6843061ce5eb573424424598cf3bac33e037d4d0 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
*
* Copyright (C) 2015 PX4 Development Team. All rights reserved.
* Author: Pavel Kirienko <pavel.kirienko@gmail.com>
* David Sidrane<david_s5@nscdg.com>
*
* Redistribution and use in source and binary forms, with or... | 28.808917 | 105 | 0.661066 | mgkim3070 |
fa89c2f12318e5c17443cc00a0eda40c75fa8208 | 2,898 | hpp | C++ | simd/neon/simdu16x8_neon.hpp | sebsgit/simd | 348eab6bea17680c9ceba91e5a5da54356f5493c | [
"MIT"
] | null | null | null | simd/neon/simdu16x8_neon.hpp | sebsgit/simd | 348eab6bea17680c9ceba91e5a5da54356f5493c | [
"MIT"
] | null | null | null | simd/neon/simdu16x8_neon.hpp | sebsgit/simd | 348eab6bea17680c9ceba91e5a5da54356f5493c | [
"MIT"
] | null | null | null | #pragma once
#include "../simd_base.hpp"
extern "C" {
#include <arm_neon.h>
}
#include <iostream>
template <>
class simd<uint16_t, 8> : public simd_common<simd<uint16_t, 8>> {
public:
using type = uint16_t;
static constexpr size_t value_count = 8;
simd() noexcept
: _d(vdupq_n_u16(0))
{
}... | 26.587156 | 115 | 0.588337 | sebsgit |
fa8bf4901ae3cb0434ab6c0c1ca3f001e6ba57a6 | 30,563 | cxx | C++ | SGI_STL_cstdlib/stdlib_20000608/locale.cxx | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | SGI_STL_cstdlib/stdlib_20000608/locale.cxx | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | SGI_STL_cstdlib/stdlib_20000608/locale.cxx | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 1998
* Silicon Graphics Computer Systems, Inc.
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and... | 31.77027 | 79 | 0.631319 | wjingzhe |
fa8d043bc61a6f90b3c9feab05b9557ef6b4f3d3 | 2,052 | cpp | C++ | GameServer/ProductManager.cpp | Light-Games-Ink/LMLastChaosSource | ff3f1988590dfd441824832d9c242fb51eb2c318 | [
"Unlicense"
] | 3 | 2016-05-22T16:44:18.000Z | 2021-06-12T00:38:59.000Z | GameServer/ProductManager.cpp | Light-Games-Ink/LMLastChaosSource | ff3f1988590dfd441824832d9c242fb51eb2c318 | [
"Unlicense"
] | null | null | null | GameServer/ProductManager.cpp | Light-Games-Ink/LMLastChaosSource | ff3f1988590dfd441824832d9c242fb51eb2c318 | [
"Unlicense"
] | 1 | 2021-01-16T23:15:30.000Z | 2021-01-16T23:15:30.000Z | #include "stdhdrs.h"
#include "ProductManager.h"
#include "Log.h"
#include "Server.h"
#include "../ShareLib/DBCmd.h"
CProductMgr::CProductMgr():
m_count(0)
, m_data(NULL)
{ }
CProductMgr::~CProductMgr()
{
removeMemory();
}
void CProductMgr::removeMemory()
{
if( m_data )
{
delete [] m_dat... | 18.825688 | 88 | 0.630604 | Light-Games-Ink |
fa9a6a547570f36cda5ef01372ff30cf61aab904 | 1,797 | hpp | C++ | src/lib/netcdfIO.hpp | AppliedMathematicsANU/diamorse | 3416d7a6ffa13b2fce7d83c560ac6bc83f1faa44 | [
"Unlicense",
"MIT"
] | 13 | 2016-04-19T06:36:11.000Z | 2022-03-22T18:41:47.000Z | src/lib/netcdfIO.hpp | AppliedMathematicsANU/diamorse | 3416d7a6ffa13b2fce7d83c560ac6bc83f1faa44 | [
"Unlicense",
"MIT"
] | 6 | 2016-06-07T08:55:27.000Z | 2017-07-17T22:41:42.000Z | src/lib/netcdfIO.hpp | AppliedMathematicsANU/diamorse | 3416d7a6ffa13b2fce7d83c560ac6bc83f1faa44 | [
"Unlicense",
"MIT"
] | 11 | 2016-01-29T15:45:52.000Z | 2021-06-18T19:08:52.000Z | /** -*-c++-*-
*
* Copyright 2014 The Australian National University
*
* netcdfIO.hpp
*
* IO classes to be used in conjection with the generic NetCDF library.
*
* Olaf Delgado-Friedrichs jan 15
*
*/
#ifndef ANU_AM_NETCDF_IO_HPP
#define ANU_AM_NETCDF_IO_HPP
#include <iostream>
#include <fstream>
#include ... | 17.446602 | 72 | 0.57596 | AppliedMathematicsANU |
b703914351cb6a97aebf9db62dc47f3cd15c71bf | 201 | hh | C++ | MMIOOffsetPtr32.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | MMIOOffsetPtr32.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | MMIOOffsetPtr32.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | #include "AbstractOffsetPtr32.hh"
template <class T>
class MMIOOffsetPtr32 : public AbstractOffsetPtr32<MMIOConfig, T> {
public:
using AbstractOffsetPtr32<MMIOConfig, T>::AbstractOffsetPtr32;
};
| 16.75 | 67 | 0.78607 | cndolo |
b7057464c4fbe931af5c244ca51dfd2e604eacb9 | 2,366 | hpp | C++ | src/common/low_precision_transformations/include/low_precision/rt_info/precisions_attribute.hpp | evgeniya-egupova/openvino | 4b8d6c59e3444ecdc549bfdf357d19d625479b89 | [
"Apache-2.0"
] | null | null | null | src/common/low_precision_transformations/include/low_precision/rt_info/precisions_attribute.hpp | evgeniya-egupova/openvino | 4b8d6c59e3444ecdc549bfdf357d19d625479b89 | [
"Apache-2.0"
] | 44 | 2020-12-09T12:38:22.000Z | 2022-03-28T13:18:29.000Z | src/common/low_precision_transformations/include/low_precision/rt_info/precisions_attribute.hpp | rkazants/openvino | a9a583eb42d43322b39b95b164b5b22c4f341111 | [
"Apache-2.0"
] | 2 | 2021-11-18T06:09:04.000Z | 2021-11-30T07:39:47.000Z | // Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <set>
#include <unordered_set>
#include <vector>
#include <ngraph/node.hpp>
#include <ngraph/pass/graph_rewrite.hpp>
#include <ngraph/variant.hpp>
#include "low_precision/layer_transformation.hp... | 34.289855 | 158 | 0.770499 | evgeniya-egupova |
b705860fc21e2db83da4c13dd43278ca533f3e4f | 8,534 | cpp | C++ | src/ElementMaker.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | 1 | 2022-03-31T02:28:18.000Z | 2022-03-31T02:28:18.000Z | src/ElementMaker.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | null | null | null | src/ElementMaker.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | null | null | null | /**
*
* @license MIT
*
* @copyright: 2022 LinJi
*
* @technical support: www.svgsvg.cn
*
* @email: 93681992@qq.com
*
* @module: QtSVGEditor
*
* 版权申明:
*
* 本源码开源基于MIT协议。
*
* 该软件及其相关文档对所有人免费,可以任意处置,包括使用,复制,修改,合并,发表,分发,再授权,或者销售。
*
* 唯一的限制是需要保留我们的许可申明。
*
*/
#include "ElementMaker.h"
#include <QtXml>
#include "SVGGlobal.h"
#... | 22.108808 | 122 | 0.666979 | SVGEditors |
b7078d7082fb9140944d9d3f99ecb6dd67a46e28 | 2,413 | cpp | C++ | test/src/test_scheduler.cpp | PokIsemaine/fishjoy | 97d9e2f0c04a9e4c770d87c8bb6f7fdb2de2d239 | [
"Unlicense"
] | null | null | null | test/src/test_scheduler.cpp | PokIsemaine/fishjoy | 97d9e2f0c04a9e4c770d87c8bb6f7fdb2de2d239 | [
"Unlicense"
] | null | null | null | test/src/test_scheduler.cpp | PokIsemaine/fishjoy | 97d9e2f0c04a9e4c770d87c8bb6f7fdb2de2d239 | [
"Unlicense"
] | null | null | null | #include "fishjoy/fishjoy.hpp"
static fishjoy::Logger::ptr g_logger = FISHJOY_LOG_ROOT();
/**
* @brief 演示协程主动yield情况下应该如何操作
*/
void test_fiber1() {
FISHJOY_LOG_INFO(g_logger) << "test_fiber1 begin";
/**
* 协程主动让出执行权,在yield之前,协程必须再次将自己添加到调度器任务队列中,
* 否则yield之后没人管,协程会处理未执行完的逃逸状态,测试时可以将下面这行注释掉以观察效果
*... | 23.201923 | 81 | 0.6954 | PokIsemaine |
b707c032dae57ee5d8a6995435491cb1d93e9975 | 1,651 | cpp | C++ | Source/StartPageComponent.cpp | liamlacey/LeapFingerCountingUiDemo | b051e89abd048b8bf3158acaad16d512f20b5b7f | [
"Apache-2.0"
] | null | null | null | Source/StartPageComponent.cpp | liamlacey/LeapFingerCountingUiDemo | b051e89abd048b8bf3158acaad16d512f20b5b7f | [
"Apache-2.0"
] | null | null | null | Source/StartPageComponent.cpp | liamlacey/LeapFingerCountingUiDemo | b051e89abd048b8bf3158acaad16d512f20b5b7f | [
"Apache-2.0"
] | 1 | 2021-02-03T13:21:49.000Z | 2021-02-03T13:21:49.000Z | /*
==============================================================================
StartPageComponent.cpp
Created: 28 Jun 2020 2:41:00pm
Author: Liam Lacey
==============================================================================
*/
#include <JuceHeader.h>
#include "StartPageComponent... | 27.516667 | 133 | 0.569352 | liamlacey |
b70c9d8ef0725c4cc53dbd470abfacd0298649a1 | 80 | cpp | C++ | fork.cpp | leouzz/Informatica-C- | 32ac6b93e75350578ab1fc5a37bd7bf2e61373e5 | [
"Apache-2.0"
] | 1 | 2020-08-20T09:45:58.000Z | 2020-08-20T09:45:58.000Z | fork.cpp | leouzz/Informatica-C- | 32ac6b93e75350578ab1fc5a37bd7bf2e61373e5 | [
"Apache-2.0"
] | null | null | null | fork.cpp | leouzz/Informatica-C- | 32ac6b93e75350578ab1fc5a37bd7bf2e61373e5 | [
"Apache-2.0"
] | null | null | null | #include <unistd.h>
int main(void)
{
while(1)
fork();
return 0;
}
| 10 | 20 | 0.525 | leouzz |
b70d46a3592d19e6c77b470c479004ac9e891837 | 1,030 | cpp | C++ | NetcodeServer/main.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | NetcodeServer/main.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | NetcodeServer/main.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | #include <Netcode/DefaultModuleFactory.h>
#include "ServerApp.h"
#include "ProgramOptions.h"
#include <Netcode/IO/Path.h>
#include <Netcode/IO/File.h>
#include <Netcode/IO/Json.h>
#include <Netcode/System/SystemClock.h>
int main(int argc, char * argv[]) {
Netcode::Initialize();
Netcode::SystemClock::Tick();
Log::... | 24.52381 | 87 | 0.732039 | tyekx |
b711492b9cffb5a579b779661e5e39d0ebded03f | 1,115 | cpp | C++ | 10473.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10473.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10473.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi acos(-1.0)
#define eps 1e-9
... | 16.641791 | 68 | 0.567713 | felikjunvianto |
b7116298a1708653259ae31fa10ff56220f782c1 | 1,155 | cpp | C++ | Examples/gui/qt4-tiny-times-table.cpp | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | Examples/gui/qt4-tiny-times-table.cpp | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | Examples/gui/qt4-tiny-times-table.cpp | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | #include "../../jade.hpp"
#include "ui_tinytimes.h"
/* Needed for Center() Method */
#include <QStyle>
#include <QDesktopWidget>
class TT: public QMainWindow {
Q_OBJECT //REQUIRED!
public:
CONSTRUCTOR TT();
void Center();
private:
Ui::MainWindow ui;
private slots:
vo... | 22.211538 | 149 | 0.652814 | xet7 |
b7176e283b4c615bd13b18d0b23884841aa13b17 | 1,914 | cpp | C++ | Testing/Common/albaWizardTest.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Testing/Common/albaWizardTest.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Testing/Common/albaWizardTest.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaWizardTest
Authors: Gianluigi Crimi
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; without even
th... | 32.440678 | 80 | 0.507315 | IOR-BIC |
b71a44299e844d10dc7138be8df579c5355b2a9c | 7,888 | hpp | C++ | include/cppdevtk/gui/k_squeezed_text_label.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/cppdevtk/gui/k_squeezed_text_label.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/cppdevtk/gui/k_squeezed_text_label.hpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | /* This file is part of the KDE libraries
Copyright (C) 2000 Ronny Standtke <Ronny.Standtke@gmx.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This libra... | 30.222222 | 90 | 0.663286 | CoSoSys |
b71bfe9406ecf0b375bb0df8cdfbeffc0f12fc54 | 6,635 | cpp | C++ | src/GLGizmoScale.cpp | stonexjr/davinci | 40793f19de0919e5d74ecb0de10524c4bd10f084 | [
"MIT"
] | 1 | 2018-06-06T13:20:49.000Z | 2018-06-06T13:20:49.000Z | src/GLGizmoScale.cpp | stonexjr/davinci | 40793f19de0919e5d74ecb0de10524c4bd10f084 | [
"MIT"
] | null | null | null | src/GLGizmoScale.cpp | stonexjr/davinci | 40793f19de0919e5d74ecb0de10524c4bd10f084 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2013-2017 Jinrong Xie (jrxie at ucdavis dot edu)
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,... | 31.595238 | 89 | 0.752826 | stonexjr |
b71c0a07eb61c5f7f3b5f42401b439f20013378e | 503 | hpp | C++ | src/multilogger.hpp | sp2danny/Fact | aa25f3c7568834ae5a7d2aa93f2a265d99f02b80 | [
"MIT"
] | null | null | null | src/multilogger.hpp | sp2danny/Fact | aa25f3c7568834ae5a7d2aa93f2a265d99f02b80 | [
"MIT"
] | null | null | null | src/multilogger.hpp | sp2danny/Fact | aa25f3c7568834ae5a7d2aa93f2a265d99f02b80 | [
"MIT"
] | null | null | null |
#pragma once
#include <iostream>
typedef std::ostream& (&omanip_t)(std::ostream&);
struct MultiLogger
{
void add_target(std::ostream& out)
{
outputs.push_back(out);
}
MultiLogger& operator<<(omanip_t manip)
{
for (auto& out : outputs)
out.get() << manip;
return *this;
}
template<typename T>
MultiLo... | 16.766667 | 59 | 0.656064 | sp2danny |
b71db37385d2061a133474ee65d12abcfc071a62 | 695 | cpp | C++ | 00045_jump-game-ii/191223-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 6 | 2019-10-23T01:07:29.000Z | 2021-12-05T01:51:16.000Z | 00045_jump-game-ii/191223-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | null | null | null | 00045_jump-game-ii/191223-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 1 | 2021-12-03T06:54:57.000Z | 2021-12-03T06:54:57.000Z | // https://leetcode-cn.com/problems/jump-game-ii/
#include <cstdio>
#include <vector>
using namespace std;
class Solution {
public:
int jump(vector<int>& nums) {
int n = nums.size();
vector<int> x(n);
for (int i = 0; i + 1 < n; ++i) {
int m = nums[i];
for (int j = 1; j <= m && i + j < n; ++j) {
if (x[... | 17.375 | 49 | 0.479137 | yanlinlin82 |
b72c1adc2f56e57bdf1444927dcaab0eb86454af | 2,742 | cpp | C++ | src/libmettle/windows/subprocess.cpp | JohnGalbraith/mettle | 38b70fe1dc0f30e98b768a37108196328182b5f4 | [
"BSD-3-Clause"
] | 1 | 2019-06-07T08:03:33.000Z | 2019-06-07T08:03:33.000Z | src/libmettle/windows/subprocess.cpp | JohnGalbraith/mettle | 38b70fe1dc0f30e98b768a37108196328182b5f4 | [
"BSD-3-Clause"
] | null | null | null | src/libmettle/windows/subprocess.cpp | JohnGalbraith/mettle | 38b70fe1dc0f30e98b768a37108196328182b5f4 | [
"BSD-3-Clause"
] | 2 | 2018-07-02T19:28:43.000Z | 2019-06-07T08:03:35.000Z | #include <mettle/driver/windows/subprocess.hpp>
#include <cassert>
#include <cstdint>
#include <memory>
#include <windows.h>
#include <mettle/driver/windows/scoped_handle.hpp>
namespace mettle::windows {
namespace {
const std::size_t BUFSIZE = 4096;
void cancel_io(const std::vector<readhandle> &dests) {... | 28.863158 | 79 | 0.576951 | JohnGalbraith |
b73139a57cb7a4fc7285eed1efa5c150ff83e1da | 5,154 | hpp | C++ | src/Containers/Array.hpp | DabbyG/cpp-lsh | a9adc142d7c71384b9bebd70d04a695d61c9f276 | [
"MIT"
] | 2 | 2016-10-12T01:02:47.000Z | 2016-10-12T05:40:03.000Z | src/Containers/Array.hpp | DabbyG/cpp-lsh | a9adc142d7c71384b9bebd70d04a695d61c9f276 | [
"MIT"
] | null | null | null | src/Containers/Array.hpp | DabbyG/cpp-lsh | a9adc142d7c71384b9bebd70d04a695d61c9f276 | [
"MIT"
] | null | null | null | #ifndef __ARRAY_H__
#define __ARRAY_H__
#include <iostream>
template <typename T>
class Array
{
public:
using sizeType = unsigned int;
using iteratorType = T*;
using constIteratorType = const T*;
private:
sizeType mCapacity;
sizeType mLength;
T* mData;
void doubleIfFull()
{
... | 20.211765 | 157 | 0.49612 | DabbyG |
b73da646dc4ae39f2331d2ed5741e7dff69229bc | 646 | cpp | C++ | libcxx/test/libcxx/atomics/libcpp-has-no-threads.pass.cpp | wmaxey/libcudacxx | f6a1e6067d0ccaae1c2717aef751622033481590 | [
"Apache-2.0"
] | null | null | null | libcxx/test/libcxx/atomics/libcpp-has-no-threads.pass.cpp | wmaxey/libcudacxx | f6a1e6067d0ccaae1c2717aef751622033481590 | [
"Apache-2.0"
] | null | null | null | libcxx/test/libcxx/atomics/libcpp-has-no-threads.pass.cpp | wmaxey/libcudacxx | f6a1e6067d0ccaae1c2717aef751622033481590 | [
"Apache-2.0"
] | 1 | 2021-11-12T21:19:28.000Z | 2021-11-12T21:19:28.000Z | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 32.3 | 81 | 0.565015 | wmaxey |
b7450d987a0181a1b41df3998d6c09e4b6c2a6da | 2,622 | cpp | C++ | WWO_01_11.cpp | kociap/SPOJ | 77273e943ef5d11ddc9c1455b95868afbb116309 | [
"MIT"
] | null | null | null | WWO_01_11.cpp | kociap/SPOJ | 77273e943ef5d11ddc9c1455b95868afbb116309 | [
"MIT"
] | null | null | null | WWO_01_11.cpp | kociap/SPOJ | 77273e943ef5d11ddc9c1455b95868afbb116309 | [
"MIT"
] | null | null | null | #include <stdio.h>
using i64 = long long;
using u8 = unsigned char;
struct Input_Buffer {
char buf[65536];
char* i;
char* end;
Input_Buffer(): i(buf), end(buf) {
buf[65535] = EOF;
}
i64 read_i64() {
if(end - i < 10) {
i64 remaining = end - i;
char* b =... | 20.809524 | 62 | 0.347063 | kociap |
b749bf68bff6aaa2ff6e90927388fd1faf29c723 | 3,590 | cpp | C++ | gphoto2pp_src/choices_widget.cpp | duyi324/CameraServer | fed0ff272545cd1500be119d1f809433cfcdf2ee | [
"Unlicense"
] | null | null | null | gphoto2pp_src/choices_widget.cpp | duyi324/CameraServer | fed0ff272545cd1500be119d1f809433cfcdf2ee | [
"Unlicense"
] | null | null | null | gphoto2pp_src/choices_widget.cpp | duyi324/CameraServer | fed0ff272545cd1500be119d1f809433cfcdf2ee | [
"Unlicense"
] | null | null | null | /** \file
* \author Copyright (c) 2013 maldworth <https://github.com/maldworth>
*
* \note
* This file is part of gphoto2pp
*
* \note
* gphoto2pp is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation... | 26.992481 | 143 | 0.707521 | duyi324 |
b74e74ac675eab828d02aad62b3af9de9afc39ce | 3,021 | hpp | C++ | include/database/DataHandler.hpp | fdbresearch/FBENCH | 9f6c4ea79448649a74d2136ead93e4e5008a33a5 | [
"Apache-2.0"
] | 3 | 2019-02-28T11:29:45.000Z | 2021-03-24T23:22:05.000Z | include/database/DataHandler.hpp | fdbresearch/FBENCH | 9f6c4ea79448649a74d2136ead93e4e5008a33a5 | [
"Apache-2.0"
] | null | null | null | include/database/DataHandler.hpp | fdbresearch/FBENCH | 9f6c4ea79448649a74d2136ead93e4e5008a33a5 | [
"Apache-2.0"
] | 1 | 2021-03-19T02:56:16.000Z | 2021-03-19T02:56:16.000Z | //===----------------------------------------------------------------------===//
//
// FBench
//
// https://fdbresearch.github.io/
//
// Copyright (c) 2019, FDB Research Group, University of Oxford
//
//===----------------------------------------------------------------------===//
#ifndef INCLUDE_DATAHANDLER_HPP_
#de... | 23.787402 | 142 | 0.686197 | fdbresearch |
b7554056a99cd099842592891506ef3c640907c8 | 1,809 | hpp | C++ | gecode/string/int/length.hpp | ramadini/gecode | ff0d261486a67f66895850a771f161bfa8bf9839 | [
"MIT-feh"
] | 1 | 2021-05-26T13:27:00.000Z | 2021-05-26T13:27:00.000Z | gecode/string/int/length.hpp | ramadini/gecode | ff0d261486a67f66895850a771f161bfa8bf9839 | [
"MIT-feh"
] | null | null | null | gecode/string/int/length.hpp | ramadini/gecode | ff0d261486a67f66895850a771f161bfa8bf9839 | [
"MIT-feh"
] | null | null | null | namespace Gecode { namespace String {
forceinline
Length::Length(Home home, StringView y0, Gecode::Int::IntView y1)
: MixBinaryPropagator<StringView, PC_STRING_DOM,
Gecode::Int::IntView,Gecode::Int::PC_INT_BND> (home, y0, y1) {}
forceinline
Length::Length(Space& home, Length& p)
: MixBinaryPropagator<... | 31.189655 | 76 | 0.606412 | ramadini |
b75f9d78c7ffbe7300ceb3f22b716a40970f0b89 | 1,179 | cpp | C++ | solved/446.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/446.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/446.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<math.h>
#include<string.h>
long long decimal(char a[100],long long len);
int binary1 (long long n);
int binary2 (long long n);
long long arry2[100],arry1[100];
void main( )
{
char num1[100],num2[100],ch[2];
long long pum1,pum2,sum,len,ten,i,j,n;
scanf("%lld",&n);
for(j=0;j<n;j++)
{
while(scan... | 13.247191 | 45 | 0.578456 | goutomroy |
b76107d107d9d684e095854f455b6d41d0ee3bfc | 4,928 | cpp | C++ | Luogu/P3384.cpp | Thomitics/MyOI | 72f75b61b79230835a65ca313896031ba9d4665f | [
"MIT"
] | 140 | 2021-02-14T02:41:48.000Z | 2021-07-08T02:59:13.000Z | Luogu/P3384.cpp | LikiBlaze/MyOI | 72f75b61b79230835a65ca313896031ba9d4665f | [
"MIT"
] | 1 | 2021-02-16T02:46:45.000Z | 2021-02-16T02:46:45.000Z | Luogu/P3384.cpp | Thomitics/MyOI | 72f75b61b79230835a65ca313896031ba9d4665f | [
"MIT"
] | null | null | null | /**************************************************************
* Problem: Luogu P3384
* Author: 芊枫
* Date: 2021 July 07
* Algorithm: 轻重链剖分
**************************************************************/
#include <bits/stdc++.h>
#define INF 0x3f3f3f3f3f3f3f3f
#define IINF 0x3f3f3f3f
using namespace std;
inline lo... | 15.744409 | 66 | 0.510146 | Thomitics |
b7632bd376d76d10591532a94e5ac9acfdc3cec1 | 993 | cpp | C++ | src/Render/Tex2DArray.cpp | mtheory101/hybrid-rendering-thesis | 314a200726450e27982e1a95eec3702ad5c9d320 | [
"MIT"
] | 1 | 2019-06-14T20:22:21.000Z | 2019-06-14T20:22:21.000Z | src/Render/Tex2DArray.cpp | ptrefall/hybrid-rendering-thesis | 72be3b3f6b457741737cd83cefb90f2bdbaa46dc | [
"MIT"
] | null | null | null | src/Render/Tex2DArray.cpp | ptrefall/hybrid-rendering-thesis | 72be3b3f6b457741737cd83cefb90f2bdbaa46dc | [
"MIT"
] | null | null | null | #include "Tex2DArray.h"
using namespace Render;
Tex2DArray::Tex2DArray(const Tex2DArrayParams &tex_params)
: internal_format(tex_params.internal_format), format(tex_params.format), type(tex_params.type), w(tex_params.w), h(tex_params.h), slice_count(tex_params.slice_count), wrap_mode(tex_params.wrap_mode), data... | 32.032258 | 224 | 0.775428 | mtheory101 |
b763c5323b88d45149a459ceca379f99800ece99 | 29,637 | cpp | C++ | src/mods/FirstPerson.cpp | angelfor3v3r/RE2-Mod-Framework | 63b3bd73df883c258566b7562754e692a6771d0c | [
"MIT"
] | null | null | null | src/mods/FirstPerson.cpp | angelfor3v3r/RE2-Mod-Framework | 63b3bd73df883c258566b7562754e692a6771d0c | [
"MIT"
] | null | null | null | src/mods/FirstPerson.cpp | angelfor3v3r/RE2-Mod-Framework | 63b3bd73df883c258566b7562754e692a6771d0c | [
"MIT"
] | null | null | null | #include <unordered_set>
#include <spdlog/spdlog.h>
#include <imgui/imgui.h>
#include "utility/Scan.hpp"
#include "REFramework.hpp"
#include "sdk/REMath.hpp"
#include "FirstPerson.hpp"
FirstPerson* g_first_person = nullptr;
FirstPerson::FirstPerson() {
// thanks imgui
g_first_person = this;
m_attach_bo... | 37.467762 | 173 | 0.66751 | angelfor3v3r |
b7695126e621fad45b9325f6dc853da922fda036 | 113 | hh | C++ | src/Exception/MethodCallCountException.hh | ivyhjk/hackmock | 7d58c7c5fc0cf9e7c17cbb821c4c61d35e971b03 | [
"MIT"
] | 7 | 2018-05-29T11:21:51.000Z | 2020-05-26T12:48:56.000Z | src/Exception/MethodCallCountException.hh | ivyhjk/hackmock | 7d58c7c5fc0cf9e7c17cbb821c4c61d35e971b03 | [
"MIT"
] | 12 | 2018-10-19T19:32:35.000Z | 2021-01-20T19:18:14.000Z | src/Exception/MethodCallCountException.hh | ivyhjk/hackmock | 7d58c7c5fc0cf9e7c17cbb821c4c61d35e971b03 | [
"MIT"
] | 7 | 2018-10-19T19:11:09.000Z | 2020-08-17T21:54:42.000Z | <?hh // strict
namespace Usox\HackMock\Exception;
final class MethodCallCountException extends \Exception {
}
| 16.142857 | 57 | 0.778761 | ivyhjk |
b76e13a9302d41d8fbb8782dedca6edea2fdef88 | 399 | cpp | C++ | pub/1284.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | 2 | 2021-05-01T15:51:58.000Z | 2021-05-02T15:19:49.000Z | pub/1284.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | 1 | 2021-05-16T15:04:38.000Z | 2021-09-19T09:49:00.000Z | pub/1284.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int n, k;
int ans = 0;
void dfs(int last, int tot, int cnt){
if(tot == n && cnt == k){
ans++;
}
if(cnt == k){
return;
}
if(tot >= n){
return;
}
for(int i = last; i <= n - tot; i++){
dfs(i, tot + i, cnt + 1);
}
}... | 16.625 | 41 | 0.423559 | BashuMiddleSchool |
b77bfaf7a12287c2fe7fe78cb354f84df0e49175 | 6,575 | hpp | C++ | examples/cpp/driver_abstraction/core/driver/time_of_flight.hpp | ankur19030/embedded-resources | bdcf22066f58738cce0ce52e4a04e0dd5aadd9ef | [
"CC0-1.0"
] | 468 | 2017-05-16T17:31:49.000Z | 2022-03-31T01:33:18.000Z | examples/cpp/driver_abstraction/core/driver/time_of_flight.hpp | ankur19030/embedded-resources | bdcf22066f58738cce0ce52e4a04e0dd5aadd9ef | [
"CC0-1.0"
] | 29 | 2017-04-04T15:51:06.000Z | 2021-07-15T00:52:01.000Z | examples/cpp/driver_abstraction/core/driver/time_of_flight.hpp | phillipjohnston/embedded-resources | ab0c4fb3d56ffac676702e7ec521c318c9544c8a | [
"CC0-1.0"
] | 378 | 2017-07-11T10:20:03.000Z | 2022-03-13T15:06:04.000Z | #ifndef TIME_OF_FLIGHT_HPP_
#define TIME_OF_FLIGHT_HPP_
#include <inplace_function/inplace_function.hpp>
#include <string_view>
namespace embvm
{
/// @addtogroup FrameworkDriver
/// @{
/// Definitions, functions, and classes related to Time-of-Flight sensors.
namespace tof
{
/// Representation for the ToF range resu... | 27.51046 | 97 | 0.712548 | ankur19030 |
b77e08bf9969237123eb1843a9ed84e3d9223eaf | 1,084 | hpp | C++ | teal/include/util/random.hpp | S6066/Teal | d2b4c4474be5caead2db956b3e11894472c8d465 | [
"X11"
] | 22 | 2016-07-12T14:17:21.000Z | 2019-02-16T19:05:32.000Z | teal/include/util/random.hpp | S6066/Teal | d2b4c4474be5caead2db956b3e11894472c8d465 | [
"X11"
] | null | null | null | teal/include/util/random.hpp | S6066/Teal | d2b4c4474be5caead2db956b3e11894472c8d465 | [
"X11"
] | 3 | 2016-12-02T06:38:04.000Z | 2018-11-25T05:59:46.000Z | // Copyright (C) 2019 Samy Bensaid
// This file is part of the Teal project.
// For conditions of distribution and use, see copyright notice in LICENSE
#pragma once
#ifndef RANDOM_HPP
#define RANDOM_HPP
#include <random>
#ifdef TEAL_RANDOM_DEVICE_BROKEN
#include <ctime>
#include "util/util.hpp"
#endif
///
/// \c... | 19.357143 | 74 | 0.690037 | S6066 |
b77e41b60a90caa14e9f95f16239a31be7e1a715 | 33,049 | cpp | C++ | NE/HyperNEAT/Hypercube_NEAT/src/Experiments/HCUBE_GoExperiment.cpp | LMBernardo/HyperNEAT | 8ebee6fda17dcf20dd0c6c081dc8681557c1faad | [
"BSD-3-Clause"
] | null | null | null | NE/HyperNEAT/Hypercube_NEAT/src/Experiments/HCUBE_GoExperiment.cpp | LMBernardo/HyperNEAT | 8ebee6fda17dcf20dd0c6c081dc8681557c1faad | [
"BSD-3-Clause"
] | null | null | null | NE/HyperNEAT/Hypercube_NEAT/src/Experiments/HCUBE_GoExperiment.cpp | LMBernardo/HyperNEAT | 8ebee6fda17dcf20dd0c6c081dc8681557c1faad | [
"BSD-3-Clause"
] | null | null | null | #include "HCUBE_Defines.h"
#include "Experiments/HCUBE_GoExperiment.h"
#include "GoBoardUtil.h"
#include "SgTimeRecord.h"
#include "SgPoint.h"
#include "SgEvaluatedMoves.h"
#include "SpAveragePlayer.h"
#include "SpCapturePlayer.h"
#include "SpDumbTacticalPlayer.h"
#include "SpGreedyPlayer.h"
#include "SpInfluencePla... | 32.884577 | 161 | 0.551756 | LMBernardo |
b784bd5e093e0bcafafa12da8055af365ae6f9c6 | 492 | hpp | C++ | FootCommander.hpp | meirozenfeld/Ex4cpp | e9b4813087f998a07772f2d883710aa6b5fa60d8 | [
"MIT"
] | null | null | null | FootCommander.hpp | meirozenfeld/Ex4cpp | e9b4813087f998a07772f2d883710aa6b5fa60d8 | [
"MIT"
] | null | null | null | FootCommander.hpp | meirozenfeld/Ex4cpp | e9b4813087f998a07772f2d883710aa6b5fa60d8 | [
"MIT"
] | 1 | 2020-06-25T15:18:17.000Z | 2020-06-25T15:18:17.000Z | #pragma once
#include "FootSoldier.hpp"
using namespace std;
const int max_health_point_footcom = 150;
const int Damage_footcom = 20;
class FootCommander : public FootSoldier {
public:
FootCommander(int num_p) : FootSoldier(max_health_point_footcom , Damage_footcom , num_p){}
FootCommander(int ma... | 24.6 | 112 | 0.735772 | meirozenfeld |
b786570a36e273622b594477db2fd48239a7e1df | 19,283 | cpp | C++ | src/CameraControl/gPhoto2/GPhoto2PropertyAccess.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 16 | 2015-03-26T02:32:43.000Z | 2021-10-18T16:34:31.000Z | src/CameraControl/gPhoto2/GPhoto2PropertyAccess.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 7 | 2019-02-21T06:07:09.000Z | 2022-01-01T10:00:50.000Z | src/CameraControl/gPhoto2/GPhoto2PropertyAccess.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 6 | 2019-05-07T09:21:15.000Z | 2021-09-01T06:36:24.000Z | //
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2020 Michael Fink
//
/// \file GPhoto2PropertyAccess.cpp gPhoto2 - Property access
//
#include "stdafx.h"
#include "GPhoto2PropertyAccess.hpp"
#include "GPhoto2Include.hpp"
#include "CameraException.hpp"
using GPhoto2::PropertyAccess;
Proper... | 30.803514 | 124 | 0.695535 | vividos |
b78a7249d2493b95ed251d67a4030a37241c31d4 | 2,675 | hpp | C++ | src/lib/storage/mvcc_data.hpp | PeterTsayun/hyrise | 40ed5e570a0ee2cb259f43607aa1d90dc52d77b8 | [
"MIT"
] | null | null | null | src/lib/storage/mvcc_data.hpp | PeterTsayun/hyrise | 40ed5e570a0ee2cb259f43607aa1d90dc52d77b8 | [
"MIT"
] | null | null | null | src/lib/storage/mvcc_data.hpp | PeterTsayun/hyrise | 40ed5e570a0ee2cb259f43607aa1d90dc52d77b8 | [
"MIT"
] | null | null | null | #pragma once
#include <atomic>
#include <shared_mutex> // NOLINT lint thinks this is a C header or something
#include "types.hpp"
#include "utils/copyable_atomic.hpp"
namespace opossum {
/**
* Stores visibility information for multiversion concurrency control.
*/
struct MvccData {
friend class Chunk;
friend ... | 44.583333 | 119 | 0.747664 | PeterTsayun |
b78b83c86b15a97bb364f58bac7d45089d889477 | 8,113 | cpp | C++ | ui-qt/InfernoUI/Home/SimulationTool/ImageManagemnet.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | 1 | 2017-12-28T08:08:02.000Z | 2017-12-28T08:08:02.000Z | ui-qt/InfernoUI/Home/SimulationTool/ImageManagemnet.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | null | null | null | ui-qt/InfernoUI/Home/SimulationTool/ImageManagemnet.cpp | qianyongjun123/FPGA-Industrial-Smart-Camera | 54b3e2c2661cf7f6774a7fb4d6ae637fa73cba32 | [
"MIT"
] | 3 | 2017-12-28T08:08:05.000Z | 2021-11-12T07:59:13.000Z | #include <QDebug>
#include "ui_ImageManagemnet.h"
#include <QMessageBox>
#include "ImageManagemnet.h"
#include "../Global/UtilitiesFun.h"
#include "BusinessData/InterfaceLib/BaseImageData.h"
#include "image_include/ImageScanGlobal.h"
#include "image_include/ImageManageGlobal.h"
#include "image_include/ImageSimulationGl... | 27.879725 | 143 | 0.651547 | qianyongjun123 |
b78bdbf798c2bc14d2f674c4559826723c08ce58 | 365 | cpp | C++ | arithmetic_operations.cpp | AbdulRazak4M/C-learning | c02c27be51728fd085d733eedd9f8b2fda61aa4f | [
"MIT"
] | 1 | 2021-12-27T13:51:58.000Z | 2021-12-27T13:51:58.000Z | arithmetic_operations.cpp | AbdulRazak4M/C-learning | c02c27be51728fd085d733eedd9f8b2fda61aa4f | [
"MIT"
] | null | null | null | arithmetic_operations.cpp | AbdulRazak4M/C-learning | c02c27be51728fd085d733eedd9f8b2fda61aa4f | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<conio.h>
int main()
{
int x=10,y=10;
float z;
z=x+y;
printf("\nThe value of z:%d",z);
x=x+y;
printf("\nThe value of x:%d",x);
y+=z;
printf("\nThe value of y:%d",y);
x++;
printf("\nThe value of x:%d",x);
y=x++;
printf("\nThe value of y:%d",y);
z... | 13.518519 | 34 | 0.49589 | AbdulRazak4M |
b78c2453faf54371641fe9602885d0fd3a9df424 | 2,823 | hpp | C++ | modules/boost/simd/base/include/boost/simd/swar/functions/simd/sse/sse2/sort.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/include/boost/simd/swar/functions/simd/sse/sse2/sort.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/include/boost/simd/swar/functions/simd/sse/sse2/sort.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// 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.
// Se... | 36.662338 | 80 | 0.486716 | psiha |
b78ce97b05299f3c4aa8866e5deec0e9b5ea8d49 | 1,648 | hpp | C++ | SDK/ARKSurvivalEvolved_GasVein_Base_BP_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_GasVein_Base_BP_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_GasVein_Base_BP_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_GasVein_Base_BP_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//------------------------------------------------------... | 25.75 | 152 | 0.667476 | 2bite |
b790965775f8841f48629f98c0d25207f50744af | 1,646 | cpp | C++ | C++/binary-tree-zigzag-level-order-traversal.cpp | burneychen/LintCode | babd95aca1fa7540e75b1d3b4d458971ebbe6bcb | [
"Unlicense"
] | null | null | null | C++/binary-tree-zigzag-level-order-traversal.cpp | burneychen/LintCode | babd95aca1fa7540e75b1d3b4d458971ebbe6bcb | [
"Unlicense"
] | null | null | null | C++/binary-tree-zigzag-level-order-traversal.cpp | burneychen/LintCode | babd95aca1fa7540e75b1d3b4d458971ebbe6bcb | [
"Unlicense"
] | 1 | 2019-06-20T16:41:58.000Z | 2019-06-20T16:41:58.000Z | // Time: O(n)
// Space: O(n)
/**
* Definition of TreeNode:
* class TreeNode {
* public:
* int val;
* TreeNode *left, *right;
* TreeNode(int val) {
* this->val = val;
* this->left = this->right = NULL;
* }
* }
*/
class Solution {
/**
* @param root: The root of bina... | 24.567164 | 69 | 0.471446 | burneychen |
b792bb1c9f31095551753c0475c234869510d521 | 756 | cc | C++ | util/options.cc | hidva/rocksdb | 9dca27383742ce6634c2ab42f945ad0ab9982849 | [
"BSD-3-Clause"
] | 2 | 2018-12-06T06:39:09.000Z | 2020-11-24T02:23:57.000Z | util/options.cc | hidva/rocksdb | 9dca27383742ce6634c2ab42f945ad0ab9982849 | [
"BSD-3-Clause"
] | null | null | null | util/options.cc | hidva/rocksdb | 9dca27383742ce6634c2ab42f945ad0ab9982849 | [
"BSD-3-Clause"
] | 1 | 2022-02-22T02:51:43.000Z | 2022-02-22T02:51:43.000Z | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "include/options.h"
#include "include/comparator.h"
#include "include/env.h"
namespace level... | 25.2 | 77 | 0.694444 | hidva |
b7949e75b8f7160ed7b2f5fd4e93da39db66e0ce | 231 | cpp | C++ | framework/graphics/graphics/scene/camera_op_3.cpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | 1 | 2018-03-01T01:05:25.000Z | 2018-03-01T01:05:25.000Z | framework/graphics/graphics/scene/camera_op_3.cpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | null | null | null | framework/graphics/graphics/scene/camera_op_3.cpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | null | null | null | #include "graphics/scene/camera_op_3.hpp"
namespace vg
{
CameraOP3::CameraOP3()
: CameraOP<SpaceType::SPACE_3>()
{
m_pProjector = std::shared_ptr<BaseProjector>{ new ProjectorOP3()};
}
} //namespace kgs | 23.1 | 75 | 0.658009 | YiJiangFengYun |
b7953b2cb2c6556eb94cac0689f72675f082a597 | 1,273 | hpp | C++ | include/camera.hpp | JeanCharlesNeboit/OpenGL | cf0365cb3c38a5f8cb9831607382e04d7112a642 | [
"Apache-2.0"
] | null | null | null | include/camera.hpp | JeanCharlesNeboit/OpenGL | cf0365cb3c38a5f8cb9831607382e04d7112a642 | [
"Apache-2.0"
] | null | null | null | include/camera.hpp | JeanCharlesNeboit/OpenGL | cf0365cb3c38a5f8cb9831607382e04d7112a642 | [
"Apache-2.0"
] | null | null | null | #ifndef CAMERA_HPP
#define CAMERA_HPP
#include <glad/glad.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <vector>
enum Camera_Movement {
FORWARD,
BACKWARD,
LEFT,
RIGHT,
UP,
DOWN
};
const float YAW = -90.0f;
const float PITCH = 0.0f;
const float SPEED = 2.5f;
cons... | 24.480769 | 141 | 0.692852 | JeanCharlesNeboit |
b796f975db14830c20ce6656d8777bed56790617 | 11,227 | cpp | C++ | impedance_control/src/utils/impedance.cpp | CaffeMrDe/HsForceWithOnRobotRos | b4aa77fa02a273e7236ee20703a5687b74b965e0 | [
"Apache-2.0"
] | null | null | null | impedance_control/src/utils/impedance.cpp | CaffeMrDe/HsForceWithOnRobotRos | b4aa77fa02a273e7236ee20703a5687b74b965e0 | [
"Apache-2.0"
] | null | null | null | impedance_control/src/utils/impedance.cpp | CaffeMrDe/HsForceWithOnRobotRos | b4aa77fa02a273e7236ee20703a5687b74b965e0 | [
"Apache-2.0"
] | null | null | null | #include "impedance.h"
impedance::impedance(ros::NodeHandle* node):Node(node) {
//控制阻抗模块启动或停止
SubCommand_begin=Node->subscribe<std_msgs::Bool>("ShakeHandRobot_ctrlCommand",1,&impedance::Subcallback_begin,this);
//接收力矩传感器数据
SubForceSensor=Node->subscribe<geometry_msgs::Wrench>("daq_data",1000,&impedance... | 31.448179 | 150 | 0.59633 | CaffeMrDe |
b79fb1b885f005ebb64159b20eed904ec5e7c1e9 | 4,341 | cc | C++ | App/app.cc | Nimita311/motor-driver | 7141e968798fea4a01dbc03481151cd8bfbbefeb | [
"MIT"
] | 3 | 2020-03-12T05:02:50.000Z | 2021-07-10T03:33:12.000Z | App/app.cc | Nimita311/motor-driver | 7141e968798fea4a01dbc03481151cd8bfbbefeb | [
"MIT"
] | null | null | null | App/app.cc | Nimita311/motor-driver | 7141e968798fea4a01dbc03481151cd8bfbbefeb | [
"MIT"
] | 1 | 2020-12-05T23:11:04.000Z | 2020-12-05T23:11:04.000Z | /**
* @file app.cc
* @brief Application code interface.
* @author Haoze Zhang
* @version 20200211
*
* Distributed under MIT License
* Copyright (c) 2020 Haoze Zhang | Brown Engineering
*/
#define STM32H743xx
#include "app.h"
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "stm32h... | 29.732877 | 91 | 0.680488 | Nimita311 |
b7a21654cc0b27e09675101970a30e193d8562f7 | 706 | hh | C++ | src/SpycFrontendFactory.hh | mpsm/spyc | 60c2f53941c30aaf688b0966bd87978bc511342e | [
"MIT"
] | null | null | null | src/SpycFrontendFactory.hh | mpsm/spyc | 60c2f53941c30aaf688b0966bd87978bc511342e | [
"MIT"
] | null | null | null | src/SpycFrontendFactory.hh | mpsm/spyc | 60c2f53941c30aaf688b0966bd87978bc511342e | [
"MIT"
] | null | null | null | #ifndef __SPYC_SPYCFRONTENDFACTORY_HH__
#define __SPYC_SPYCFRONTENDFACTORY_HH__
#include "CodeModel.hh"
#include "SpycFrontendAction.hh"
#include <clang/Frontend/FrontendAction.h>
#include <clang/Tooling/Tooling.h>
namespace spyc {
class SpycFrontendActionFactory
: public clang::tooling::FrontendActionF... | 21.393939 | 66 | 0.668555 | mpsm |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.