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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
66af94e4f85c6d0955e2669b0a5e751617df4cee | 1,530 | cpp | C++ | leetcode/1224-frequency.cpp | syedakainat3/youtube | 9e6860786b3f7b57add7cb4a0d44c551f88b8248 | [
"MIT"
] | 2,605 | 2019-02-05T16:03:10.000Z | 2022-03-31T15:17:10.000Z | leetcode/1224-frequency.cpp | MohaiminulEraj/youtube | 9e6860786b3f7b57add7cb4a0d44c551f88b8248 | [
"MIT"
] | 11 | 2019-10-21T14:40:15.000Z | 2021-11-07T21:57:26.000Z | leetcode/1224-frequency.cpp | MohaiminulEraj/youtube | 9e6860786b3f7b57add7cb4a0d44c551f88b8248 | [
"MIT"
] | 586 | 2019-03-24T18:39:57.000Z | 2022-03-26T12:22:17.000Z | // https://leetcode.com/problems/maximum-equal-frequency/
class Solution {
public:
int maxEqualFreq(vector<int>& nums) {
const int n = nums.size();
int answer = 0;
map<int,int> freq;
map<int,int> freq_freq;
for(int i = 0; i < n; i++) {
int x = nums[i];
... | 30.6 | 65 | 0.313072 | syedakainat3 |
66b6dfa371c6d12e92de5a44ab6c7a163a143333 | 674 | cpp | C++ | LeetCode/ThousandOne/0779-kth_symbol_in_grammar.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0779-kth_symbol_in_grammar.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0779-kth_symbol_in_grammar.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 779. 第K个语法符号
在第一行我们写上一个 0。接下来的每一行,将前一行中的0替换为01,1替换为10。
给定行数 N 和序数 K,返回第 N 行中第 K个字符。(K从1开始)
例子:
输入: N = 1, K = 1
输出: 0
输入: N = 2, K = 1
输出: 0
输入: N = 2, K = 2
输出: 1
输入: N = 4, K = 5
输出: 1
解释:
第一行: 0
第二行: 01
第三行: 0110
第四行: 01101001
注意:
N 的范围 [1, 30].
K 的范围 [1, 2^(N-1)].
*/
// h... | 12.716981 | 101 | 0.569733 | Ginkgo-Biloba |
66b82f79d6c3617cb17fe53fa53c40ab12e94a2c | 745 | cc | C++ | modules/std/core/bool.cc | clever-lang/clever | 2c03e4d4a4bd48b110226907fd158ba76bbccb97 | [
"MIT"
] | 20 | 2015-03-13T16:03:08.000Z | 2022-02-22T17:47:40.000Z | modules/std/core/bool.cc | felipensp/clever | f0795e5ad271750795f55386d2aad815a1d7cb82 | [
"MIT"
] | 1 | 2021-05-14T11:50:44.000Z | 2021-05-14T11:50:44.000Z | modules/std/core/bool.cc | felipensp/clever | f0795e5ad271750795f55386d2aad815a1d7cb82 | [
"MIT"
] | 9 | 2015-01-14T19:21:54.000Z | 2020-10-01T16:42:06.000Z | /**
* Clever programming language
* Copyright (c) Clever Team
*
* This file is distributed under the MIT license. See LICENSE for details.
*/
#include "modules/std/core/bool.h"
#include "modules/std/core/function.h"
namespace clever {
CLEVER_TYPE_OPERATOR(BoolType::equal)
{
if (rhs->isBool()) {
result->setBo... | 16.931818 | 75 | 0.691275 | clever-lang |
66b9a659c299456972886f1b7f96a66cc5ae0e7f | 2,031 | hpp | C++ | src/Singleton/Coordinator/Coordinator.hpp | QLaille/Queenside | 4d9e0f776cd7bb4ecc55686317ebca032032ccba | [
"MIT"
] | null | null | null | src/Singleton/Coordinator/Coordinator.hpp | QLaille/Queenside | 4d9e0f776cd7bb4ecc55686317ebca032032ccba | [
"MIT"
] | null | null | null | src/Singleton/Coordinator/Coordinator.hpp | QLaille/Queenside | 4d9e0f776cd7bb4ecc55686317ebca032032ccba | [
"MIT"
] | null | null | null | #ifndef QUEENSIDE_SERVICE_COORDINATOR_HPP
#define QUEENSIDE_SERVICE_COORDINATOR_HPP
#include <unordered_map>
#include <algorithm>
#include <list>
#include <optional>
#include <ctime>
#include <vector>
#include <iostream>
#include "Client.hpp"
#include "IDGenerator.hpp"
#include "Strings.hpp"
#include "Broadcaster.hp... | 28.605634 | 93 | 0.718365 | QLaille |
66bd1db603f1bb1bcb9cfeb670f713d21711d452 | 1,350 | hpp | C++ | include/code_generator/NamedType.hpp | czhj/code_generator | f56382ae851ead5594a5f8772230eee33ea6e747 | [
"MIT"
] | 1 | 2022-02-21T02:06:37.000Z | 2022-02-21T02:06:37.000Z | include/code_generator/NamedType.hpp | czhj/code_generator | f56382ae851ead5594a5f8772230eee33ea6e747 | [
"MIT"
] | null | null | null | include/code_generator/NamedType.hpp | czhj/code_generator | f56382ae851ead5594a5f8772230eee33ea6e747 | [
"MIT"
] | null | null | null | /**
* @file NamedType.hpp
* @author huangjian
* @date 2022-02-21
* @version 1.0
* @copyright huangjian
**/
#ifndef NAMEDTYPE_HPP
#define NAMEDTYPE_HPP
#include "Type.hpp"
class NamedType;
typedef RefObject<NamedType> NamedTypeRef;
/**
* @brief The NamedType class 命名类型
*/
class NamedType : ... | 21.428571 | 105 | 0.661481 | czhj |
66c7fd31a511be6fd141986e74a2dec7aad98cc8 | 391 | cpp | C++ | contrib/glbinding-master/source/tests/glbinding-test/Boolean_compilation_test.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 632 | 2015-07-01T18:03:24.000Z | 2022-03-17T08:25:51.000Z | contrib/glbinding-master/source/tests/glbinding-test/Boolean_compilation_test.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 191 | 2015-07-01T16:11:32.000Z | 2022-02-10T22:04:09.000Z | contrib/glbinding-master/source/tests/glbinding-test/Boolean_compilation_test.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 89 | 2015-10-26T11:18:07.000Z | 2022-03-31T16:22:50.000Z |
#include <gmock/gmock.h>
#include <glbinding/gl45core/boolean.h>
using namespace gl;
TEST(Boolean, Compilation)
{
const gl45core::GLboolean b1 = gl45core::GL_TRUE;
const gl::GLboolean b2 = gl::GL_TRUE;
const GLboolean b3 = GL_TRUE;
(void)b1;
(void)b2;
(void)b3;
SUCCEED(); // compil... | 17 | 93 | 0.680307 | Khirion |
66c996df9f1be746e40a590c31638741e5754ea9 | 7,103 | cpp | C++ | src/layers/medCore/process/diffusion_processes/medDiffusionModelEstimationMetaProcess.cpp | arthursw/medInria-public | d52af882c36f0d96cc433cc1a4082accaa1ca11a | [
"BSD-4-Clause"
] | null | null | null | src/layers/medCore/process/diffusion_processes/medDiffusionModelEstimationMetaProcess.cpp | arthursw/medInria-public | d52af882c36f0d96cc433cc1a4082accaa1ca11a | [
"BSD-4-Clause"
] | null | null | null | src/layers/medCore/process/diffusion_processes/medDiffusionModelEstimationMetaProcess.cpp | arthursw/medInria-public | d52af882c36f0d96cc433cc1a4082accaa1ca11a | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2018. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.... | 28.873984 | 108 | 0.703787 | arthursw |
66ca469c0c0b16a5ddeeadc9e365d88485ad37a4 | 272 | hpp | C++ | include/kuro/error.hpp | X-Neon/kuro | 001944f1e7bf035830732ba11e361ba9ba345c8a | [
"MIT"
] | 8 | 2021-05-11T02:41:53.000Z | 2021-11-16T06:36:26.000Z | include/kuro/error.hpp | X-Neon/kuro | 001944f1e7bf035830732ba11e361ba9ba345c8a | [
"MIT"
] | null | null | null | include/kuro/error.hpp | X-Neon/kuro | 001944f1e7bf035830732ba11e361ba9ba345c8a | [
"MIT"
] | null | null | null | #pragma once
#include <system_error>
namespace kuro::detail
{
inline void check_error(int ret_val)
{
if (ret_val == -1) {
throw std::system_error(errno, std::system_category());
}
}
inline int check_fd(int fd)
{
check_error(fd);
return fd;
}
} | 12.952381 | 63 | 0.643382 | X-Neon |
66cdf8bd26fc99f754e57d91142a52d6e5f451ce | 1,102 | cpp | C++ | vkoo/src/core/Framebuffer.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 129 | 2021-09-07T17:15:18.000Z | 2022-02-28T08:59:02.000Z | vkoo/src/core/Framebuffer.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 2 | 2021-10-03T07:30:20.000Z | 2022-01-06T16:05:41.000Z | vkoo/src/core/Framebuffer.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 11 | 2021-09-08T11:29:09.000Z | 2022-03-17T08:39:50.000Z | #include "vkoo/core/Framebuffer.h"
#include "vkoo/core/Device.h"
namespace vkoo {
Framebuffer::Framebuffer(Device& device, const VkExtent2D& extent,
const std::vector<VkImageView>& attachments,
const RenderPass& render_pass)
: device_{device}, extent_{extent} {
... | 31.485714 | 80 | 0.717786 | KaiSut0 |
66cf2f5a8cc64570e4a37ab811bed0af1775984a | 30,638 | cpp | C++ | src/aeNet.cpp | johnhues/aether-game-utils | 3b67cc77d232d43ee8c273a1db3c9373374438b2 | [
"MIT"
] | 4 | 2020-08-26T19:41:32.000Z | 2021-05-09T20:54:56.000Z | src/aeNet.cpp | johnhues/aether-game-utils | 3b67cc77d232d43ee8c273a1db3c9373374438b2 | [
"MIT"
] | 20 | 2020-07-07T20:06:04.000Z | 2021-02-28T23:09:18.000Z | src/aeNet.cpp | johnhues/aether-game-utils | 3b67cc77d232d43ee8c273a1db3c9373374438b2 | [
"MIT"
] | 1 | 2021-11-03T14:55:25.000Z | 2021-11-03T14:55:25.000Z | //------------------------------------------------------------------------------
// aeNet.cpp
//------------------------------------------------------------------------------
// Copyright (c) 2020 John Hughes
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and asso... | 32.489926 | 149 | 0.524479 | johnhues |
66d2a80e60846ff5eba31094ff57391f383c76eb | 1,145 | cpp | C++ | others/algorithm_topics/data_structure/stack/linklist_based_stack.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | others/algorithm_topics/data_structure/stack/linklist_based_stack.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | others/algorithm_topics/data_structure/stack/linklist_based_stack.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <exception>
using namespace std;
class stack{
public:
stack(){
this->head = new Node();
}
stack* push(int data){
Node* new_node = new Node();
new_node->data = data;
new_node->next = this->head;
this->head = new_node;
this->curre... | 19.083333 | 43 | 0.489083 | friskit-china |
20359a2dd0322a762f6ec26fd89e70aad5eb50aa | 998 | hpp | C++ | Bouncer/include/Bouncer/Configuration.hpp | rhymu8354/Bouncer | 7bcc58d6014246e92b2ba56b95e9327c7ffd47f5 | [
"MIT"
] | 1 | 2019-10-22T21:10:04.000Z | 2019-10-22T21:10:04.000Z | Bouncer/include/Bouncer/Configuration.hpp | rhymu8354/Bouncer | 7bcc58d6014246e92b2ba56b95e9327c7ffd47f5 | [
"MIT"
] | null | null | null | Bouncer/include/Bouncer/Configuration.hpp | rhymu8354/Bouncer | 7bcc58d6014246e92b2ba56b95e9327c7ffd47f5 | [
"MIT"
] | 1 | 2019-09-21T20:32:54.000Z | 2019-09-21T20:32:54.000Z | #pragma once
/**
* @file Configuration.hpp
*
* This module declares the Bouncer::Configuration structure.
*
* © 2019 by Richard Walters
*/
#include <stdint.h>
#include <string>
#include <vector>
namespace Bouncer {
/**
* This holds the settings that can be adjusted for the application
* at runti... | 24.95 | 71 | 0.655311 | rhymu8354 |
20363c61f16e67162d8ca05111449776d9195395 | 5,587 | cpp | C++ | src/xalanc/XSLT/XalanNumberingResourceBundle.cpp | kidaa/xalan-c | bb666d0ab3d0a192410823e6857c203d83c27b16 | [
"Apache-2.0"
] | null | null | null | src/xalanc/XSLT/XalanNumberingResourceBundle.cpp | kidaa/xalan-c | bb666d0ab3d0a192410823e6857c203d83c27b16 | [
"Apache-2.0"
] | 1 | 2021-08-18T12:32:31.000Z | 2021-08-18T12:32:31.000Z | src/xalanc/XSLT/XalanNumberingResourceBundle.cpp | AaronNGray/xalan | 6741bbdcb64a9d33df8bd7e21b558d66bb4292ec | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you m... | 32.109195 | 106 | 0.737963 | kidaa |
2037eb8b5630d01421b9abb054d0835fb5f2ee99 | 3,953 | hpp | C++ | pythran/pythonic/__builtin__/map.hpp | wizardxz/pythran | 9a1b1c08cf9d3478be3b6313ac8ebca9e5b88e65 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/map.hpp | wizardxz/pythran | 9a1b1c08cf9d3478be3b6313ac8ebca9e5b88e65 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/map.hpp | wizardxz/pythran | 9a1b1c08cf9d3478be3b6313ac8ebca9e5b88e65 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_BUILTIN_MAP_HPP
#define PYTHONIC_BUILTIN_MAP_HPP
#include "pythonic/include/__builtin__/map.hpp"
#include "pythonic/types/list.hpp"
#include "pythonic/types/NoneType.hpp"
#include "pythonic/types/tuple.hpp"
#include "pythonic/utils/fwd.hpp"
#include "pythonic/utils/functor.hpp"
#include "pythonic/uti... | 33.786325 | 80 | 0.589426 | wizardxz |
203ccd735d20ba2c2436263e6125da5362d6f370 | 513 | cpp | C++ | HDU/20/hdu2021.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2017-08-19T16:02:15.000Z | 2017-08-19T16:02:15.000Z | HDU/20/hdu2021.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | null | null | null | HDU/20/hdu2021.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2018-01-05T23:37:23.000Z | 2018-01-05T23:37:23.000Z | #include <stdio.h>
int main(void)
{
int n, i, x, sum;
while (scanf("%d", &n), n)
{
sum = 0;
for (i = 0 ; i < n ; i++)
{
scanf("%d", &x);
sum += x / 100;
x %= 100;
sum += x / 50;
x %= 50;
sum += x / 10;
... | 17.1 | 33 | 0.253411 | bilibiliShen |
204eaf006ce754857f9966002ff5b43e63f59846 | 490 | hpp | C++ | lib/Math/Burkardt/Poly.hpp | hlp2/EnjoLib | 6bb69d0b00e367a800b0ef2804808fd1303648f4 | [
"BSD-3-Clause"
] | 3 | 2021-06-14T15:36:46.000Z | 2022-02-28T15:16:08.000Z | lib/Math/Burkardt/Poly.hpp | hlp2/EnjoLib | 6bb69d0b00e367a800b0ef2804808fd1303648f4 | [
"BSD-3-Clause"
] | 1 | 2021-07-17T07:52:15.000Z | 2021-07-17T07:52:15.000Z | lib/Math/Burkardt/Poly.hpp | hlp2/EnjoLib | 6bb69d0b00e367a800b0ef2804808fd1303648f4 | [
"BSD-3-Clause"
] | 3 | 2021-07-12T14:52:38.000Z | 2021-11-28T17:10:33.000Z | #ifndef POLY_H
#define POLY_H
#include "FuncBase.hpp"
#include <Util/VecD.hpp>
namespace EnjoLib {
class Poly : public FuncBase
{
public:
virtual ~Poly();
// constructors:
Poly(const std::size_t degree)
: coeff(1+degree) {}
Poly(const VecD & v)
: coeff(v) {}
Poly(const double* c... | 15.806452 | 59 | 0.626531 | hlp2 |
20590031b6ee794073e18a8a49ea8a69a6702362 | 9,762 | cc | C++ | src/ForceTorqueSensor.cc | david-alejo/ign-sensors | 13308478b6f88c99a3685181439ab51ed7ed63f6 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ForceTorqueSensor.cc | david-alejo/ign-sensors | 13308478b6f88c99a3685181439ab51ed7ed63f6 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ForceTorqueSensor.cc | david-alejo/ign-sensors | 13308478b6f88c99a3685181439ab51ed7ed63f6 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 30.990476 | 80 | 0.657652 | david-alejo |
205d36a270cd5dd4ddc599141a2e8cf725b1bca5 | 333 | cpp | C++ | 295 C Questions/1.cpp | DevGithub007/My_Codes | e506050b97abc058fa8b1e24b3b936cc2315c664 | [
"MIT"
] | null | null | null | 295 C Questions/1.cpp | DevGithub007/My_Codes | e506050b97abc058fa8b1e24b3b936cc2315c664 | [
"MIT"
] | null | null | null | 295 C Questions/1.cpp | DevGithub007/My_Codes | e506050b97abc058fa8b1e24b3b936cc2315c664 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
/*void Foo() {
cout << "Hello World!" << endl;
}*/
int a=9;
int main() {
int a=100,*b;
float *p;
//p=200;
b=&a;
p=(float*)&a;
//cout << "Hello! This is a console application." << endl;
//cin >> a ;
cout << p <<endl<< a<<endl<<(~::a)+1<<endl<<&::a<<endl<<sizeof(p);
... | 15.857143 | 68 | 0.531532 | DevGithub007 |
2060039e282db7c71cdd909af610cbe17a25f1ff | 12,529 | cxx | C++ | src/medVtkInria/vtkDataManagement/vtkMetaVolumeMesh.cxx | lcatanes/medInria-public | 5d79ce0085c11f2fb9277a06c8cf56b4258a9d9f | [
"BSD-4-Clause"
] | null | null | null | src/medVtkInria/vtkDataManagement/vtkMetaVolumeMesh.cxx | lcatanes/medInria-public | 5d79ce0085c11f2fb9277a06c8cf56b4258a9d9f | [
"BSD-4-Clause"
] | null | null | null | src/medVtkInria/vtkDataManagement/vtkMetaVolumeMesh.cxx | lcatanes/medInria-public | 5d79ce0085c11f2fb9277a06c8cf56b4258a9d9f | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2014. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE... | 23.462547 | 124 | 0.573629 | lcatanes |
2067dcdb3750fe3cd60704cf474ec4a37dc66801 | 269 | hh | C++ | src/haxor/hc/node/all.hh | krzysztof-magosa/haxor | 76344f9f6b5442b9c2fd79e32efc0064758898b6 | [
"BSD-3-Clause"
] | 14 | 2015-12-22T19:12:12.000Z | 2019-04-03T06:26:48.000Z | src/haxor/hc/node/all.hh | krzysztof-magosa/haxor | 76344f9f6b5442b9c2fd79e32efc0064758898b6 | [
"BSD-3-Clause"
] | 4 | 2016-06-06T22:18:23.000Z | 2016-06-29T17:59:52.000Z | src/haxor/hc/node/all.hh | krzysztof-magosa/haxor | 76344f9f6b5442b9c2fd79e32efc0064758898b6 | [
"BSD-3-Clause"
] | 3 | 2016-07-28T01:23:26.000Z | 2017-08-19T17:49:11.000Z | #include "haxor/hc/node/base.hh"
#include "haxor/hc/node/program.hh"
#include "haxor/hc/node/instr.hh"
#include "haxor/hc/node/imm.hh"
#include "haxor/hc/node/num.hh"
#include "haxor/hc/node/reg.hh"
#include "haxor/hc/node/label.hh"
#include "haxor/hc/node/section.hh"
| 29.888889 | 35 | 0.732342 | krzysztof-magosa |
206d1806b4ce8280f9ad38925f08686af40d46c7 | 2,742 | cpp | C++ | src/ekf.cpp | scr123/kalman_filter | e282aef98d0ce0b4ec3e1307b292b35315468ccd | [
"MIT"
] | 1 | 2020-05-25T18:44:17.000Z | 2020-05-25T18:44:17.000Z | src/ekf.cpp | scr123/kalman_filter | e282aef98d0ce0b4ec3e1307b292b35315468ccd | [
"MIT"
] | null | null | null | src/ekf.cpp | scr123/kalman_filter | e282aef98d0ce0b4ec3e1307b292b35315468ccd | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2020 Sean Crutchlow
*
* 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, ... | 36.078947 | 81 | 0.623268 | scr123 |
206df2cd793930a7db5e6dc2818ca36f96a933e7 | 1,120 | cpp | C++ | graph-source-code/462-D/7686586.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/462-D/7686586.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/462-D/7686586.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
//
// main.cpp
// cf3
//
// Created by chengshuo on 14-9-5.
// Copyright (c) 2014年 chengshuo. All rights reserved.
//
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <vector>
#define mod 1000000007
#define maxn 100005
using namespace std;
vector<int> c... | 16.716418 | 64 | 0.488393 | AmrARaouf |
2075a8a80a1da4899466cb9af4aa6226d1e9efa9 | 555 | cpp | C++ | src/UOJ_1107 - (1937397) Accepted.cpp | miguelarauj1o/UOJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 80 | 2015-01-07T01:18:40.000Z | 2021-05-04T15:23:18.000Z | src/UOJ_1107 - (1937397) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 1 | 2019-01-07T01:13:32.000Z | 2019-01-07T01:13:32.000Z | src/UOJ_1107 - (1937397) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 28 | 2015-03-05T11:53:23.000Z | 2020-07-05T15:50:42.000Z | #include <cstdio>
using namespace std;
#define sc1(a) scanf("%d", &a)
#define sc2(a, b) scanf("%d%d", &a, &b)
#define fr(i, a, n) for(int i = (a); i < (n); i++)
int main(int argc, char const *argv[])
{
bool b;
int a, c, cnt, w, x, tmp;
while (sc2(a, c) && (a || c))
{
cnt = 0, b = false, tmp = w... | 15 | 51 | 0.423423 | miguelarauj1o |
207efd12eda96b3798642d99bfa738f37d5027a3 | 5,558 | cpp | C++ | apps/physx_app/kapla_app.cpp | ArcheGraphics/Arche-cpp | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | 8 | 2022-02-15T12:54:57.000Z | 2022-03-30T16:35:58.000Z | apps/physx_app/kapla_app.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | apps/physx_app/kapla_app.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | // Copyright (c) 2022 Feng Yang
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "kapla_app.h"
#include "mesh/primitive_mesh.h"
#include "mesh/mesh_renderer.h"
#include "ma... | 44.464 | 120 | 0.661029 | ArcheGraphics |
2080c19f9c5c26b2f60ada5822c847a82190eafc | 71,052 | cpp | C++ | Sources/cImGui/cimgui.cpp | Zollerboy1/ImGui | f8ac69b2a97730cf47d02b895641c02857a81e4f | [
"MIT"
] | null | null | null | Sources/cImGui/cimgui.cpp | Zollerboy1/ImGui | f8ac69b2a97730cf47d02b895641c02857a81e4f | [
"MIT"
] | null | null | null | Sources/cImGui/cimgui.cpp | Zollerboy1/ImGui | f8ac69b2a97730cf47d02b895641c02857a81e4f | [
"MIT"
] | null | null | null | //
// cimgui.c
//
//
// Created by Josef Zoller on 06.03.20.
//
#include "cimgui.h"
#ifdef CIMGUI_USE_WCHAR32
#define IMGUI_USE_WCHAR32
#endif
#include <cppimgui.hpp>
#include "asserts.h"
#include "conversions.h"
CImGuiContext * igCreateContext(CImFontAtlas * shared_font_atlas) {
return ImGui::CreateConte... | 28.882927 | 224 | 0.743765 | Zollerboy1 |
20848823b0e3128e18fe82dd03af94748e895983 | 608 | cpp | C++ | ilwiscoreui/models/operationsbykeymodel.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | ilwiscoreui/models/operationsbykeymodel.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | ilwiscoreui/models/operationsbykeymodel.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | #include "operationsbykeymodel.h"
OperationsByKeyModel::OperationsByKeyModel()
{
}
OperationsByKeyModel::OperationsByKeyModel(const QString& kword, const std::vector<OperationModel *> &opers, QObject *parent) :
QObject(parent), _keyword(kword)
{
for(auto element : opers)
_operations.push_back(element... | 20.965517 | 127 | 0.756579 | ridoo |
2087330a9010e3d91421b2b7bd25ccce615aa19f | 6,539 | cpp | C++ | Component/SeedArmPathGenerator/src/LibManipulatorPathGenerator.cpp | rsdlab/SeedNoidManipulation_RTM_pkg | 682f95fb07864d9839ab3a66e98e1f6b71175497 | [
"MIT"
] | null | null | null | Component/SeedArmPathGenerator/src/LibManipulatorPathGenerator.cpp | rsdlab/SeedNoidManipulation_RTM_pkg | 682f95fb07864d9839ab3a66e98e1f6b71175497 | [
"MIT"
] | null | null | null | Component/SeedArmPathGenerator/src/LibManipulatorPathGenerator.cpp | rsdlab/SeedNoidManipulation_RTM_pkg | 682f95fb07864d9839ab3a66e98e1f6b71175497 | [
"MIT"
] | null | null | null |
#include "LibManipulatorPathGenerator.h"
ManipPath m_path;
ManipPath::ManipPath()
{
}
/************************************************
void pathPlan(double startPos, double goalPos, std::vector<double>& path, double time,double updateCycle)
概要:関節空間法での関節位置軌道を生成する
引数:double startPos・・・動作開始位置[deg]
... | 32.211823 | 193 | 0.580976 | rsdlab |
2099330aa5bd21c867ec98f3f0f3ddb4a6e69ce4 | 10,116 | cpp | C++ | vox.geometry/particle_emitter/volume_particle_emitter2.cpp | yangfengzzz/DigitalVox3 | c3277007d7cae90cf3f55930bf86119c93662493 | [
"MIT"
] | 28 | 2021-11-23T11:52:55.000Z | 2022-03-04T01:48:52.000Z | vox.geometry/particle_emitter/volume_particle_emitter2.cpp | yangfengzzz/DigitalVox3 | c3277007d7cae90cf3f55930bf86119c93662493 | [
"MIT"
] | null | null | null | vox.geometry/particle_emitter/volume_particle_emitter2.cpp | yangfengzzz/DigitalVox3 | c3277007d7cae90cf3f55930bf86119c93662493 | [
"MIT"
] | 3 | 2022-01-02T12:23:04.000Z | 2022-01-07T04:21:26.000Z | // Copyright (c) 2018 Doyub Kim
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "../common.h"
#include "../array_utils.h"
#include "../implicit_surfaces/surface_to_implicit.h... | 36.919708 | 117 | 0.738928 | yangfengzzz |
209ba159b12437fb5ecd1d21b2f4ccf2f89bf106 | 764 | cpp | C++ | 0049_GroupAnagrams.cpp | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | null | null | null | 0049_GroupAnagrams.cpp | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | null | null | null | 0049_GroupAnagrams.cpp | taro-masuda/leetcode | 39739e9fec7c66513b114c740ef982ccc09dc39f | [
"MIT"
] | 1 | 2020-03-18T05:23:40.000Z | 2020-03-18T05:23:40.000Z | class Solution {
public:
vector<vector<string>> groupAnagrams(vector<string>& strs) {
vector<string> sort_strs;
unordered_map<string, int> mp;
int idx = 0;
for (int i = 0; i < strs.size(); i++) {
string s_sort = strs[i];
sort(s_sort.begin(), s_sort.end());
... | 27.285714 | 64 | 0.450262 | taro-masuda |
209cfc04dd4edbafde8626b349e75861654289f2 | 5,345 | cpp | C++ | src/commandline/parsenum.cpp | galaxor/executor | 4cfafb4584816ef8b9e226242680afc46779388f | [
"MIT"
] | 96 | 2017-10-27T10:55:21.000Z | 2022-01-04T12:56:26.000Z | src/commandline/parsenum.cpp | galaxor/executor | 4cfafb4584816ef8b9e226242680afc46779388f | [
"MIT"
] | 30 | 2018-01-28T11:02:45.000Z | 2021-05-12T22:50:09.000Z | src/commandline/parsenum.cpp | galaxor/executor | 4cfafb4584816ef8b9e226242680afc46779388f | [
"MIT"
] | 5 | 2019-03-26T17:59:34.000Z | 2020-05-20T16:48:40.000Z | /* Copyright 1995 by Abacus Research and
* Development, Inc. All rights reserved.
*/
#include <base/common.h>
#include <commandline/parsenum.h>
#include <ctype.h>
using namespace Executor;
using namespace std;
/* If the given string has a 'k', 'K', 'm', or 'M' suffix, returns the
* log base 2 corresponding to th... | 28.891892 | 82 | 0.601123 | galaxor |
209eb078d3a2bb692df32b9ff9df3bffe9a544cf | 2,868 | cpp | C++ | src/G15_Controller.cpp | EbinPhilip/arm_control | ca2accc2601ff18ce9d4e76cf9d9fcf2b066ad85 | [
"MIT"
] | null | null | null | src/G15_Controller.cpp | EbinPhilip/arm_control | ca2accc2601ff18ce9d4e76cf9d9fcf2b066ad85 | [
"MIT"
] | null | null | null | src/G15_Controller.cpp | EbinPhilip/arm_control | ca2accc2601ff18ce9d4e76cf9d9fcf2b066ad85 | [
"MIT"
] | null | null | null | #include "G15_Controller.h"
#include <stdexcept>
#include <cmath>
G15_Controller::G15_Controller(const std::string &controller_name, const std::string &serial_port)
: controller_name_(controller_name),
serial_port_(serial_port),
hal_(serial_port),
servo_controller_(hal_)
{
servo_controller_.... | 29.875 | 140 | 0.624128 | EbinPhilip |
209ec2a66a0ac0015589e6f629b65967a80224f6 | 6,007 | cpp | C++ | arduino/libraries/Seeed_Arduino_Audio/control_wm8960.cpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | null | null | null | arduino/libraries/Seeed_Arduino_Audio/control_wm8960.cpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | null | null | null | arduino/libraries/Seeed_Arduino_Audio/control_wm8960.cpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | null | null | null | #include "control_wm8960.h"
#include <Arduino.h>
#include "Wire.h"
/**
* @brief enable WM8960 voice card.
* @return true or false.
*/
bool AudioControlWM8960::enable(void)
{
Wire.begin();
// Serial.println("WM8960 INIT...");
//Reset Device
if (! Write(RESET, 0x0000))return false;
delay(100);
// Seri... | 27.058559 | 81 | 0.681705 | Mchaney3 |
20a2fde2f5e34ca90ea4bf51271ff39b41c63c4a | 4,454 | cc | C++ | sparse_operation_kit/Deprecated/cc/kernels/v1/embedding_wrapper_bprop.cc | marsmiao/HugeCTR | c9ff359a69565200fcc0c7aae291d9c297bea70e | [
"Apache-2.0"
] | null | null | null | sparse_operation_kit/Deprecated/cc/kernels/v1/embedding_wrapper_bprop.cc | marsmiao/HugeCTR | c9ff359a69565200fcc0c7aae291d9c297bea70e | [
"Apache-2.0"
] | null | null | null | sparse_operation_kit/Deprecated/cc/kernels/v1/embedding_wrapper_bprop.cc | marsmiao/HugeCTR | c9ff359a69565200fcc0c7aae291d9c297bea70e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* 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... | 50.044944 | 113 | 0.681634 | marsmiao |
20ad500e036e2d3fe391669c296a71f6ded93b58 | 35,302 | cpp | C++ | WaveletTL/cube/cube_index.cpp | kedingagnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 3 | 2018-05-20T15:25:58.000Z | 2021-01-19T18:46:48.000Z | WaveletTL/cube/cube_index.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | null | null | null | WaveletTL/cube/cube_index.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 2 | 2019-04-24T18:23:26.000Z | 2020-09-17T10:00:27.000Z | // implementation for cube_index.h
#include <cmath>
namespace WaveletTL
{
template <class IBASIS, unsigned int DIM, class CUBEBASIS>
CubeIndex<IBASIS,DIM,CUBEBASIS>::CubeIndex(const CUBEBASIS* basis)
: basis_(basis)
{
if (basis_ == 0) {
j_ = 0; // invalid (e and k are initialized by zero automatica... | 39.576233 | 146 | 0.5166 | kedingagnumerikunimarburg |
20add8f8029efca2e1f64f31871d59e2e676ac1d | 431 | cpp | C++ | Problems/acmp/Task8/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | Problems/acmp/Task8/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | 1 | 2019-05-09T19:17:00.000Z | 2019-05-09T19:17:00.000Z | Problems/acmp/Task8/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "rt", stdin);
// freopen("output.txt", "wt", stdout);
#endif
long long a = 0, b = 0, tmp;
for (int i = 0; i < 4; ++i)
{
cin >> tmp;
a += tmp;
cin >> tmp;
b += tmp;
}
... | 15.962963 | 41 | 0.436195 | grand87 |
20ae6edac68504662dc929b705a8517ae79c21e3 | 840 | cc | C++ | problems/0XXX/02XX/027X/0278_first_bad_version.cc | mohankarthik/leetcode | 9a15200460425962b26867ed14416576f54e8ce5 | [
"MIT"
] | null | null | null | problems/0XXX/02XX/027X/0278_first_bad_version.cc | mohankarthik/leetcode | 9a15200460425962b26867ed14416576f54e8ce5 | [
"MIT"
] | null | null | null | problems/0XXX/02XX/027X/0278_first_bad_version.cc | mohankarthik/leetcode | 9a15200460425962b26867ed14416576f54e8ce5 | [
"MIT"
] | null | null | null | #include "../../../../common/Includes.h"
class Solution {
private:
int badVersion;
bool isBadVersion(int n) {
return n >= badVersion;
}
public:
void setFirstBadVersion(int n) {
badVersion = n;
}
int firstBadVersion(int n) {
int mid, low = 1, high = n;
int ans = ... | 22.105263 | 64 | 0.491667 | mohankarthik |
20b3e67dd70ecd8e52323f1f88388dc85259fd62 | 3,112 | cpp | C++ | src/input_audio_builder.cpp | diharaw/EmoGPU | 342fc5cfafadad503a6f160c8dfb7b07e5882f0a | [
"MIT"
] | 1 | 2019-12-01T15:14:53.000Z | 2019-12-01T15:14:53.000Z | src/input_audio_builder.cpp | diharaw/EmoGPU | 342fc5cfafadad503a6f160c8dfb7b07e5882f0a | [
"MIT"
] | null | null | null | src/input_audio_builder.cpp | diharaw/EmoGPU | 342fc5cfafadad503a6f160c8dfb7b07e5882f0a | [
"MIT"
] | null | null | null | #include <input_audio_builder.hpp>
#include <input_audio.hpp>
#include <mfcc_computer.hpp>
#define AUDIO_IMAGE_HEIGHT 36
#define AUDIO_IMAGE_WIDTH 36
#define DELTA_N 2
EMOLIB_BEGIN_NAMESPACE
static void compute_delta(std::vector<v_d>& input, uint32_t n, std::vector<v_d>& output)
{
uint32_t count = input.size();
... | 24.3125 | 88 | 0.564267 | diharaw |
20b4d292be473dfb9b7fc45676584a285eee8344 | 1,058 | cpp | C++ | src/translator/Factory.cpp | ojab/Diagon | dc884d5e0cf187907d7c8f7b9429cb2197da09d3 | [
"MIT"
] | 798 | 2018-05-05T20:51:33.000Z | 2022-03-29T22:05:18.000Z | src/translator/Factory.cpp | ojab/Diagon | dc884d5e0cf187907d7c8f7b9429cb2197da09d3 | [
"MIT"
] | 22 | 2020-05-15T14:34:20.000Z | 2022-03-25T06:48:41.000Z | src/translator/Factory.cpp | ojab/Diagon | dc884d5e0cf187907d7c8f7b9429cb2197da09d3 | [
"MIT"
] | 28 | 2019-08-23T07:46:07.000Z | 2022-03-29T22:05:39.000Z | #include "translator/Factory.h"
// List of exported translator.
TranslatorPtr FrameTranslator();
TranslatorPtr GrammarTranslator();
TranslatorPtr GraphDAGTranslator();
TranslatorPtr GraphPlanarTranslator();
TranslatorPtr MathTranslator();
TranslatorPtr SequenceTranslator();
TranslatorPtr TableTranslator();
TranslatorP... | 27.128205 | 53 | 0.746692 | ojab |
20b969c599e855fc23fd1e8ac01cbae1d086151e | 4,186 | hpp | C++ | hw7/src/interpreter.hpp | eptitsyn/otus_cpp | a576ba8593763fcab8b69bc5d371eb0324caf19e | [
"Unlicense"
] | 1 | 2020-06-20T22:09:36.000Z | 2020-06-20T22:09:36.000Z | hw7/src/interpreter.hpp | eptitsyn/otus_cpp | a576ba8593763fcab8b69bc5d371eb0324caf19e | [
"Unlicense"
] | null | null | null | hw7/src/interpreter.hpp | eptitsyn/otus_cpp | a576ba8593763fcab8b69bc5d371eb0324caf19e | [
"Unlicense"
] | null | null | null | /*! @file interpreter.hpp
* @brief Класс интерпретатор
*/
#pragma once
#include "date.h" // date.h by Howard Hinnant
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
/*!
* @brief Непосредственно класс интерпретатор
*/
class Interpreter {
struct Bulk {
std:... | 23.92 | 116 | 0.555423 | eptitsyn |
20cae5f83f49b599c7879edccae51444643cfeff | 926 | hpp | C++ | test/system_tests/tools/Logger.hpp | CapRat/APAL | a08f4bc6ee6299e8e370ef99750262ad23c87d58 | [
"MIT"
] | 2 | 2020-09-21T12:30:05.000Z | 2020-10-14T19:43:51.000Z | test/system_tests/tools/Logger.hpp | CapRat/APAL | a08f4bc6ee6299e8e370ef99750262ad23c87d58 | [
"MIT"
] | null | null | null | test/system_tests/tools/Logger.hpp | CapRat/APAL | a08f4bc6ee6299e8e370ef99750262ad23c87d58 | [
"MIT"
] | null | null | null | #ifndef LOGGER_HPP
#define LOGGER_HPP
#include <iostream>
#include <string>
enum class LoggerValue
{
INFO, // Just information, to make it more readable
STATUS, // Normal statusresult, like from Tests
WARNING, // Problems in a test, or things, which should be handled.
ERROR // Bad thinks, like Failed te... | 22.585366 | 76 | 0.640389 | CapRat |
20cefd4e7391c5d65ce6e874606d13f61dc83175 | 1,466 | cpp | C++ | JoystickCalibrationControl.cpp | PankeyCR/aMonkeyEngine | 83e631a6185a65e88d6eea95c73475b0da59ea54 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T11:47:10.000Z | 2021-07-02T11:47:10.000Z | JoystickCalibrationControl.cpp | PankeyCR/aMonkeyEngine | 83e631a6185a65e88d6eea95c73475b0da59ea54 | [
"BSD-3-Clause"
] | null | null | null | JoystickCalibrationControl.cpp | PankeyCR/aMonkeyEngine | 83e631a6185a65e88d6eea95c73475b0da59ea54 | [
"BSD-3-Clause"
] | null | null | null |
#ifndef JoystickCalibrationControl_cpp
#define JoystickCalibrationControl_cpp
#include "JoystickCalibrationControl.h"
ame::JoystickCalibrationControl::JoystickCalibrationControl(){
}
ame::JoystickCalibrationControl::~JoystickCalibrationControl(){
}
bool ame::JoystickCalibrationControl::isValidControl... | 26.178571 | 87 | 0.738745 | PankeyCR |
20d615f60b3cd39e0566f12303b16521ef4c18f0 | 9,457 | cpp | C++ | chapter09/main.cpp | daemyung/ogl_to_vlk | 9b8863fc175b76ec565f034b25dcbbbdbb8a8ff6 | [
"MIT"
] | 13 | 2020-04-07T02:42:11.000Z | 2021-12-27T14:56:01.000Z | chapter09/main.cpp | daemyung/ogl_to_vlk | 9b8863fc175b76ec565f034b25dcbbbdbb8a8ff6 | [
"MIT"
] | null | null | null | chapter09/main.cpp | daemyung/ogl_to_vlk | 9b8863fc175b76ec565f034b25dcbbbdbb8a8ff6 | [
"MIT"
] | null | null | null | //
// This file is part of the "ogl_to_vlk" project
// See "LICENSE" for license information.
//
#include <cassert>
#include <iostream>
#include <sstream>
#include <vector>
#include <vulkan/vulkan.h>
#define VMA_IMPLEMENTATION
#include "vk_mem_alloc.h"
using namespace std;
//----------------------------------------... | 28.657576 | 120 | 0.5396 | daemyung |
20dc9d7e26c2157535e0e95733b2e343e6f75532 | 4,340 | cpp | C++ | spatialops/structured/stencil/test/test_stencil4.cpp | MaxZZG/SpatialOps | c673081a6214ac3020d2fa92d09663922815f740 | [
"MIT"
] | null | null | null | spatialops/structured/stencil/test/test_stencil4.cpp | MaxZZG/SpatialOps | c673081a6214ac3020d2fa92d09663922815f740 | [
"MIT"
] | null | null | null | spatialops/structured/stencil/test/test_stencil4.cpp | MaxZZG/SpatialOps | c673081a6214ac3020d2fa92d09663922815f740 | [
"MIT"
] | null | null | null | #include <spatialops/Nebo.h>
#include <spatialops/structured/FVStaggeredFieldTypes.h>
#include "test_stencil_helper.h"
#include <test/TestHelper.h>
#include <spatialops/util/TimeLogger.h>
#include <boost/program_options.hpp>
namespace po = boost::program_options;
using namespace SpatialOps;
#include <stdexcept>
u... | 42.54902 | 149 | 0.611521 | MaxZZG |
20dddf0b998127144d2925e2e4ad31c077e1d441 | 1,800 | cpp | C++ | foxxll/io/request_with_waiters.cpp | joka921/foxxll | e8cc1e88661d4737a0422f29ecebc07e6dccd23e | [
"BSL-1.0"
] | null | null | null | foxxll/io/request_with_waiters.cpp | joka921/foxxll | e8cc1e88661d4737a0422f29ecebc07e6dccd23e | [
"BSL-1.0"
] | null | null | null | foxxll/io/request_with_waiters.cpp | joka921/foxxll | e8cc1e88661d4737a0422f29ecebc07e6dccd23e | [
"BSL-1.0"
] | null | null | null | /***************************************************************************
* foxxll/io/request_with_waiters.cpp
*
* Part of FOXXLL. See http://foxxll.org
*
* Copyright (C) 2002 Roman Dementiev <dementiev@mpi-sb.mpg.de>
* Copyright (C) 2008 Andreas Beckmann <beckmann@cs.uni-frankfurt.de>
*
* Distributed u... | 27.692308 | 76 | 0.604444 | joka921 |
221571c63b128c6b2dc48817f63833f35cbd19d2 | 637 | cpp | C++ | code/source/ui/game/editor/editorcomponent_ui.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/ui/game/editor/editorcomponent_ui.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/ui/game/editor/editorcomponent_ui.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #include "editorcomponent_ui.hpp"
#define EC_HEADERS
#include "game/editor/components/components.def"
#undef EC_HEADERS
namespace clover {
namespace ui { namespace game { namespace editor {
util::Coord RuntimeEditorComponentUiTraits::defaultRadius(const util::Str8& comp_type){
#define EC(ui_type) \
if (EditorComp... | 30.333333 | 87 | 0.761381 | crafn |
22159257fc839b3233c8d4532e39d62b6dfc340e | 1,717 | cpp | C++ | info1/src/info1.cpp | epan-utbm/image_anonymization | 02999fa75e55e4052f8d848da3ce3671241764e1 | [
"BSD-3-Clause"
] | 8 | 2020-01-28T08:25:27.000Z | 2021-06-29T14:44:37.000Z | info1/src/info1.cpp | yzrobot/image_anonymization | 02999fa75e55e4052f8d848da3ce3671241764e1 | [
"BSD-3-Clause"
] | null | null | null | info1/src/info1.cpp | yzrobot/image_anonymization | 02999fa75e55e4052f8d848da3ce3671241764e1 | [
"BSD-3-Clause"
] | 1 | 2021-02-08T18:37:58.000Z | 2021-02-08T18:37:58.000Z | #include <iostream>
#include <ros/ros.h>
#include <rosbag/bag.h>
#include <rosbag/view.h>
#include <opencv2/highgui/highgui.hpp>
#include"cv_bridge/cv_bridge.h"
#include "std_msgs/String.h"
#include <sstream>
#include <unistd.h>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <iostream>
#include... | 20.686747 | 81 | 0.629586 | epan-utbm |
221a9ef23bdbbae192cf3125e93c1e6c76fdb625 | 1,741 | cpp | C++ | lib/IR/Compute/ConstantFill.cpp | zakk0610/onnc | ed470ff76dce0c5338b285ecfbd88b03e667d295 | [
"BSD-3-Clause"
] | 1 | 2018-08-27T02:51:59.000Z | 2018-08-27T02:51:59.000Z | lib/IR/Compute/ConstantFill.cpp | ffk0716/onnc | 91e4955ade64b479db17aaeccacf4b7339fe44d2 | [
"BSD-3-Clause"
] | null | null | null | lib/IR/Compute/ConstantFill.cpp | ffk0716/onnc | 91e4955ade64b479db17aaeccacf4b7339fe44d2 | [
"BSD-3-Clause"
] | null | null | null | //===- ConstantFill.cpp ------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <onnc/IR/Compute/ConstantFill.h>
using namespace onnc;
char C... | 29.508475 | 145 | 0.499138 | zakk0610 |
221bcec166ef7576cc19151b3c78e3e68eb0c3f4 | 3,536 | cpp | C++ | src/BenchMuParserSSE.cpp | beltoforion/math-parser-benchmark-project | dcdb8cf290d580c564c9e57d21c6c4454e702363 | [
"Apache-2.0",
"Zlib",
"MIT"
] | 1 | 2021-03-07T13:17:37.000Z | 2021-03-07T13:17:37.000Z | src/BenchMuParserSSE.cpp | beltoforion/math-parser-benchmark-project | dcdb8cf290d580c564c9e57d21c6c4454e702363 | [
"Apache-2.0",
"Zlib",
"MIT"
] | null | null | null | src/BenchMuParserSSE.cpp | beltoforion/math-parser-benchmark-project | dcdb8cf290d580c564c9e57d21c6c4454e702363 | [
"Apache-2.0",
"Zlib",
"MIT"
] | null | null | null | #include "BenchMuParserSSE.h"
#include <cmath>
#include <cassert>
#include "muParserSSE/muParserSSE.h"
using namespace std;
//-------------------------------------------------------------------------------------------------
BenchMuParserSSE::BenchMuParserSSE()
: Benchmark(Benchmark::FLOAT)
{
m_sName = "muparserS... | 24.219178 | 99 | 0.526867 | beltoforion |
222092348bfea544099935614632e491b3acdbae | 1,151 | cpp | C++ | LeetCode/977.Squares_of_a_Sorted_Array.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | LeetCode/977.Squares_of_a_Sorted_Array.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | LeetCode/977.Squares_of_a_Sorted_Array.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | // O(nlogn)
/*
class Solution {
public:
vector<int> sortedSquares(vector<int>& A) {
for(int i = 0; i < A.size(); ++i)
A[i] *= A[i];
sort(A.begin(), A.end());
return A;
}
};
*/
// O(n)
// two pointer
// two case: 1. >0 2. <0
class Solution {
public:
vector<int> sortedSqu... | 23.02 | 54 | 0.364031 | w181496 |
222494e8bb99aa068baf8b4814e1fb64d35e8a75 | 810 | hpp | C++ | src/random/random_internal_cpu/Uniform_internal.hpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 11 | 2020-04-14T15:45:42.000Z | 2022-03-31T14:37:03.000Z | src/random/random_internal_cpu/Uniform_internal.hpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 38 | 2019-08-02T15:15:51.000Z | 2022-03-04T19:07:02.000Z | src/random/random_internal_cpu/Uniform_internal.hpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 7 | 2019-07-17T07:50:55.000Z | 2021-07-03T06:44:52.000Z | #ifndef _H_Uniform_cpu_
#define _H_Uniform_cpu_
#include <cstdio>
#include <cstdlib>
#include <stdint.h>
#include <climits>
#include "Type.hpp"
#include "Storage.hpp"
#include "cytnx_error.hpp"
namespace cytnx{
namespace random_internal{
void Rng_uniform_cpu_cd(boost::intrusive_ptr<Storage_base> &in, con... | 35.217391 | 133 | 0.718519 | j9263178 |
22256118f40f22f4da9c82c19bdb9b8c471961e0 | 892 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/anim/AnimFeature_PlayerMovement.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/anim/AnimFeature_PlayerMovement.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/anim/AnimFeature_PlayerMovement.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/Vector4.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/AnimFeature_Movement.hpp>
namespace RED4ext
{
namespace anim {
struct AnimFeature_Play... | 30.758621 | 76 | 0.770179 | jackhumbert |
2225ff5c195cb8c2bba45592279f69ee42013809 | 1,167 | cpp | C++ | soj/1071.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/1071.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/1071.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
using namespace std;
int T=1,n,ans,sz,f[100];
struct BLOCK
{
int x,y,h;
int no;
bool operator < (const BLOCK &b) const
{
return x==b.x ? y<b.y : x<b.x;
}
}block[100];
int main()
{
int t[3],i,j;
while (scanf("%d",&n)==1 && n)
{
sz=0... | 25.369565 | 93 | 0.417309 | huangshenno1 |
2229c5501094ef28dbfd3aba4ecf0d7a47700ea0 | 14,715 | cpp | C++ | src/Resources.cpp | handsomePirate/VulkanBackend | dcdcc594e25a64802ae312f3285420b00849cb94 | [
"MIT"
] | null | null | null | src/Resources.cpp | handsomePirate/VulkanBackend | dcdcc594e25a64802ae312f3285420b00849cb94 | [
"MIT"
] | null | null | null | src/Resources.cpp | handsomePirate/VulkanBackend | dcdcc594e25a64802ae312f3285420b00849cb94 | [
"MIT"
] | null | null | null | #include "VulkanBackend/VulkanBackendAPI.hpp"
#include "VulkanBackend/ErrorCheck.hpp"
#include <SoftwareCore/DefaultLogger.hpp>
VulkanBackend::Image VulkanBackend::CreateImage2D(const BackendData& backendData, uint32_t width, uint32_t height, uint32_t layerCount, uint32_t mipCount,
VkImageUsageFlags usage, VkFormat f... | 43.279412 | 162 | 0.818892 | handsomePirate |
222f706aac2763afce3bb86e64ab30e5aca987ef | 2,868 | cpp | C++ | shade/slot/connector_registry.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | shade/slot/connector_registry.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | shade/slot/connector_registry.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#include "connector_registry.h"
using namespace so_shade ;
//*******************************************************... | 31.516484 | 96 | 0.446653 | aconstlink |
223689ba0d4ea3b522efc51e1c4da84e2db1354b | 146 | cpp | C++ | cppcheck/data/c_files/376.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/376.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/376.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | void CrosLibrary::TestApi::SetBrightnessLibrary(
BrightnessLibrary* library, bool own) {
library_->brightness_lib_.SetImpl(library, own);
}
| 29.2 | 50 | 0.773973 | awsm-research |
223741190028d0c08bf84ee33e7a79da33bef718 | 2,930 | cxx | C++ | tests/test_pbkdf2.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | tests/test_pbkdf2.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | tests/test_pbkdf2.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019, 2020, 2021 SiKol Ltd.
* Distributed under the Boost Software License, Version 1.0.
*/
#include <array>
#include <string_view>
#include <catch2/catch.hpp>
#include <ivy/algorithm/bintext.hxx>
#include <ivy/crypto/pbkdf2.hxx>
struct test_vector {
std::string_view password... | 32.197802 | 90 | 0.567918 | sikol |
22391d833d057c9b786e223804ecc2c99839edc7 | 860 | hpp | C++ | include/armadillo_bits/fn_diagmat.hpp | jshahbazi/mnist-cpp | d757d07c03b2c24df94af4c0762b99db21c21538 | [
"MIT"
] | 80 | 2015-06-23T04:51:27.000Z | 2022-03-09T08:15:36.000Z | include/armadillo_bits/fn_diagmat.hpp | jshahbazi/mnist-cpp | d757d07c03b2c24df94af4c0762b99db21c21538 | [
"MIT"
] | 4 | 2017-06-18T03:40:48.000Z | 2018-10-31T09:55:32.000Z | include/armadillo_bits/fn_diagmat.hpp | jshahbazi/mnist-cpp | d757d07c03b2c24df94af4c0762b99db21c21538 | [
"MIT"
] | 37 | 2015-08-20T03:26:28.000Z | 2022-03-08T10:54:49.000Z | // Copyright (C) 2008-2012 Conrad Sanderson
// Copyright (C) 2008-2012 NICTA (www.nicta.com.au)
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//! \addtogroup ... | 22.631579 | 99 | 0.702326 | jshahbazi |
223d78bdf175d9d7a43d0367722a7d882ffdb819 | 20,049 | hpp | C++ | include/lstm/containers/rbtree.hpp | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | 9 | 2016-11-14T23:35:30.000Z | 2019-01-18T23:21:08.000Z | include/lstm/containers/rbtree.hpp | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | 3 | 2017-01-09T01:22:57.000Z | 2017-03-20T04:50:05.000Z | include/lstm/containers/rbtree.hpp | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | null | null | null | #ifndef LSTM_CONTAINERS_RBTREE_HPP
#define LSTM_CONTAINERS_RBTREE_HPP
// lots of copy paste from wikipedia. probly lots of cycles to be saved
#include <lstm/lstm.hpp>
LSTM_DETAIL_BEGIN
enum class color : bool
{
red,
black,
};
template<typename Alloc, typename T>
using rebind_to =... | 36.320652 | 100 | 0.492942 | mtak- |
223e76fae9f5dbbb281999d89d7bfcdf2a04b0ef | 103 | hpp | C++ | Error/Header.hpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | 2 | 2020-09-13T07:31:22.000Z | 2022-03-26T08:37:32.000Z | Error/Header.hpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | null | null | null | Error/Header.hpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | null | null | null | // c:/Users/user/Documents/Programming/Error/Header.hpp
#pragma once
#include "../Utility/Header.hpp"
| 20.6 | 55 | 0.747573 | p-adic |
2243cd9e6b7cf4d8e8d9374b1a1d2712bbf7f9e5 | 649 | cpp | C++ | src_legacy/2018/test/mock_esp.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | null | null | null | src_legacy/2018/test/mock_esp.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | 75 | 2017-05-28T23:39:33.000Z | 2019-05-09T06:18:44.000Z | src_legacy/2018/test/mock_esp.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | null | null | null | #include "mock_esp.h"
xQueueHandle dispatchQueue;
xQueueHandle memoryQueue;
xQueueHandle playerQueue;
xQueueHandle wifiControlQueue;
xQueueHandle programQueue;
xQueueHandle displayQueue;
void esp_log_write(esp_log_level_t level, const char* tag, const char* format, ...)
{
v... | 20.28125 | 83 | 0.696456 | gmoehler |
2244ad54cac0d1e3a609ee3ecca5241c11dd906f | 7,291 | cpp | C++ | src/bot/main.cpp | kacerr/quark | d1812dd9aa510605f15ffb48ae339e8a312e3b42 | [
"MIT"
] | null | null | null | src/bot/main.cpp | kacerr/quark | d1812dd9aa510605f15ffb48ae339e8a312e3b42 | [
"MIT"
] | null | null | null | src/bot/main.cpp | kacerr/quark | d1812dd9aa510605f15ffb48ae339e8a312e3b42 | [
"MIT"
] | null | null | null | /*
* main.cpp
*
* Created on: Jul 28, 2017
* Author: ondra
*/
#include <unistd.h> //for isatty()
#include <stdio.h> //for fileno()
#include <fstream>
#include <random>
#include <couchit/minihttp/httpclient.h>
#include <imtjson/string.h>
#include <imtjson/parser.h>
#include <imtjson/validator.h>
#include ".... | 21.318713 | 107 | 0.62968 | kacerr |
224989624a28cc6e542643f67e1daecf8b4ae031 | 1,192 | cpp | C++ | Mision Extrema/TP3/SpriteSheetManager.cpp | Oskit-Producciones/C-plus-Games | caa307d82555e576a299d3ef03c9d929e43ad05a | [
"MIT"
] | null | null | null | Mision Extrema/TP3/SpriteSheetManager.cpp | Oskit-Producciones/C-plus-Games | caa307d82555e576a299d3ef03c9d929e43ad05a | [
"MIT"
] | null | null | null | Mision Extrema/TP3/SpriteSheetManager.cpp | Oskit-Producciones/C-plus-Games | caa307d82555e576a299d3ef03c9d929e43ad05a | [
"MIT"
] | null | null | null | #include "SpriteSheetManager.h"
#include "TextureManager.h"
void SpriteSheetManager::Load(string filename, unsigned nCols, unsigned nRows,unsigned LevelRows,unsigned LevelCols){
// cargamos
const sf::Image &sheet = TextureManager::GetInstance().GetTexture(filename);
cols = nCols;
rows = nRows;
tiles.clear()... | 20.912281 | 117 | 0.702181 | Oskit-Producciones |
224da7044739cd5855ed654c3128993b49096d0c | 9,774 | cpp | C++ | BlendDemo/BlendDemo/App.cpp | dtrebilco/PreMulAlpha | 4eaf2b0967a4440bbaf7a83a560ee84626015d3d | [
"MIT"
] | 110 | 2017-06-23T17:12:28.000Z | 2022-02-22T19:11:38.000Z | BlendDemo/BlendDemo/App.cpp | dtrebilco/PreMulAlpha | 4eaf2b0967a4440bbaf7a83a560ee84626015d3d | [
"MIT"
] | null | null | null | BlendDemo/BlendDemo/App.cpp | dtrebilco/PreMulAlpha | 4eaf2b0967a4440bbaf7a83a560ee84626015d3d | [
"MIT"
] | 3 | 2018-02-12T00:16:18.000Z | 2018-02-18T11:12:35.000Z | //======================================================================
// BlendDemo
// By Damian Trebilco
//======================================================================
#include "App.h"
extern long g_allocRequestCount;
extern long g_allocFreeCount;
BaseApp *CreateApp() { return new App(); }
int32_t... | 28.495627 | 133 | 0.647637 | dtrebilco |
2258122ff49a7c53988b48c04fb36fbcd3494b17 | 572 | hpp | C++ | src/widgets/widget_layer.hpp | DisQS/AniMolViewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | 2 | 2021-11-21T23:26:00.000Z | 2021-12-18T10:33:17.000Z | src/widgets/widget_layer.hpp | DisQS/AniMolViewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | 5 | 2021-11-28T18:26:25.000Z | 2021-12-06T08:15:06.000Z | src/widgets/widget_layer.hpp | DisQS/animol-viewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <array>
#include <type_traits>
#include "plate.hpp"
namespace animol {
template<class M>
class widget_layer : public plate::ui_event_destination
{
public:
virtual void init(const std::shared_ptr<plate::state>& _ui, plate::gpu::int_box& coords,
const std::shared_ptr<plate::u... | 16.342857 | 91 | 0.727273 | DisQS |
22656ff00e5aa866644dda8466b746b816766b86 | 5,204 | cpp | C++ | Boss/Mod/PeerJudge/DataGatherer.cpp | raphjaph/clboss | ceeb856ec72a7c7d743305e3b9a03a0a3ff512e6 | [
"MIT"
] | 108 | 2020-10-01T17:12:40.000Z | 2022-03-30T09:18:03.000Z | Boss/Mod/PeerJudge/DataGatherer.cpp | raphjaph/clboss | ceeb856ec72a7c7d743305e3b9a03a0a3ff512e6 | [
"MIT"
] | 94 | 2020-10-03T13:40:30.000Z | 2022-03-30T09:18:00.000Z | Boss/Mod/PeerJudge/DataGatherer.cpp | raphjaph/clboss | ceeb856ec72a7c7d743305e3b9a03a0a3ff512e6 | [
"MIT"
] | 17 | 2020-10-29T13:27:59.000Z | 2022-03-18T13:05:03.000Z | #include"Boss/Mod/PeerJudge/DataGatherer.hpp"
#include"Boss/Mod/PeerJudge/Info.hpp"
#include"Boss/ModG/ReqResp.hpp"
#include"Boss/Msg/ListpeersResult.hpp"
#include"Boss/Msg/OnchainFee.hpp"
#include"Boss/Msg/RequestPeerStatistics.hpp"
#include"Boss/Msg/ResponsePeerStatistics.hpp"
#include"Boss/concurrent.hpp"
#include"B... | 25.509804 | 76 | 0.601076 | raphjaph |
2268a139d331ce38aa3076469e5300b7043c04c3 | 3,005 | cpp | C++ | src/utils/offset_storage_provider.cpp | eikeschumann971/kspp | e9665f0d7fb9c976c232393428d2d3e616db7eb5 | [
"BSL-1.0"
] | 103 | 2017-01-13T11:27:52.000Z | 2022-01-22T08:30:41.000Z | src/utils/offset_storage_provider.cpp | eikeschumann971/kspp | e9665f0d7fb9c976c232393428d2d3e616db7eb5 | [
"BSL-1.0"
] | 26 | 2017-02-16T13:26:24.000Z | 2022-03-07T18:05:58.000Z | src/utils/offset_storage_provider.cpp | eikeschumann971/kspp | e9665f0d7fb9c976c232393428d2d3e616db7eb5 | [
"BSL-1.0"
] | 24 | 2017-05-09T03:44:28.000Z | 2022-02-04T02:40:18.000Z | #include <kspp/utils/offset_storage_provider.h>
#include <fstream>
#include <glog/logging.h>
#include <kspp/kspp.h>
#include <kspp/utils/url.h>
#ifdef KSPP_S3
#include <kspp/features/aws/s3_offset_storage_provider.h>
#endif
namespace kspp {
//TODO should we set commited offset and flushed offset to this??? probabl... | 30.05 | 119 | 0.664892 | eikeschumann971 |
226ceb3ba86c421e713cd239349f7a2192dc0a49 | 13,807 | cpp | C++ | src/autousi/pipe.cpp | bleu48/aobazero | c805b80d9ed8d27ce507fc2b74fb7609d75b2426 | [
"Unlicense"
] | null | null | null | src/autousi/pipe.cpp | bleu48/aobazero | c805b80d9ed8d27ce507fc2b74fb7609d75b2426 | [
"Unlicense"
] | null | null | null | src/autousi/pipe.cpp | bleu48/aobazero | c805b80d9ed8d27ce507fc2b74fb7609d75b2426 | [
"Unlicense"
] | null | null | null | // 2019 Team AobaZero
// This source code is in the public domain.
#ifdef _MSC_VER
# define _CRT_SECURE_NO_WARNINGS
#endif
#include "client.hpp"
#include "err.hpp"
#include "iobase.hpp"
#include "osi.hpp"
#include "pipe.hpp"
#include "shogibase.hpp"
#include "version.hpp"
#include <chrono>
#include <fstream>
#include ... | 31.667431 | 79 | 0.619179 | bleu48 |
22700a3244138594580431283642daf06a80b0c2 | 5,110 | cpp | C++ | src/crc32_c.cpp | kiciek/etl | 90bc895cce06470e2b3f032644f0316dbfd75e04 | [
"MIT"
] | null | null | null | src/crc32_c.cpp | kiciek/etl | 90bc895cce06470e2b3f032644f0316dbfd75e04 | [
"MIT"
] | null | null | null | src/crc32_c.cpp | kiciek/etl | 90bc895cce06470e2b3f032644f0316dbfd75e04 | [
"MIT"
] | null | null | null | ///\file
/******************************************************************************
The MIT License(MIT)
Embedded Template Library.
https://github.com/ETLCPP/etl
https://www.etlcpp.com
Copyright(c) 2018 jwellbelove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software an... | 63.08642 | 107 | 0.75225 | kiciek |
2273ec4779557d2248fbfa099af22425d810fd8c | 7,147 | cpp | C++ | hphp/php7/analysis.cpp | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/php7/analysis.cpp | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/php7/analysis.cpp | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... | 25.708633 | 80 | 0.581083 | SiebelsTim |
2276619b5881a034ab90c432a4bdfb5093ce45df | 824 | cpp | C++ | libraries/protocol/operations/fulfill_nda_content_access_request_operation.cpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 1 | 2021-08-16T12:44:43.000Z | 2021-08-16T12:44:43.000Z | libraries/protocol/operations/fulfill_nda_content_access_request_operation.cpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | null | null | null | libraries/protocol/operations/fulfill_nda_content_access_request_operation.cpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 2 | 2021-08-16T12:44:46.000Z | 2021-12-31T17:09:45.000Z | #include <deip/protocol/deip_operations.hpp>
#include <locale>
#include <fc/log/logger.hpp>
#include <functional>
#include <numeric>
namespace deip {
namespace protocol {
void fulfill_nda_content_access_request_operation::validate() const
{
validate_160_bits_hexadecimal_string(external_id);
validate_account_n... | 39.238095 | 119 | 0.781553 | DEIPworld |
228272302f564067ba615857076d98606baefe5e | 3,376 | cpp | C++ | digitanks/src/digitanks/campaign/userfile.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | 5 | 2015-07-03T18:42:32.000Z | 2017-08-25T10:28:12.000Z | digitanks/src/digitanks/campaign/userfile.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | null | null | null | digitanks/src/digitanks/campaign/userfile.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | null | null | null | #include "userfile.h"
#include <renderer/game_renderer.h>
#include <glgui/glgui.h>
#include <game/gameserver.h>
#include <renderer/game_renderingcontext.h>
#include <glgui/rootpanel.h>
#include <digitanksgame.h>
#include <units/digitank.h>
#include <ui/digitankswindow.h>
#include <ui/hud.h>
REGISTER_ENTITY(CUserFile... | 23.774648 | 116 | 0.72423 | BSVino |
2285fd2b26d2ba02b86644d102f1a25fcdb72c2f | 2,662 | hpp | C++ | include/eepp/system/cpack.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/system/cpack.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/system/cpack.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #ifndef EE_SYSTEMCPACK_HPP
#define EE_SYSTEMCPACK_HPP
#include <eepp/system/base.hpp>
#include <eepp/system/cmutex.hpp>
#include <eepp/system/safedatapointer.hpp>
namespace EE { namespace System {
/** @brief Base class for all packing classes */
class EE_API cPack : protected cMutex {
public:
cPack();
virtual ... | 34.571429 | 123 | 0.678437 | dogtwelve |
2286e6863070378f461724b5afc791605075c607 | 1,203 | hpp | C++ | libraries/CustomHeaderLibs/device/CAT24C16.hpp | mskoenz/arduino_crash_course | cc7031e827dd13211cb9ce84f6d758f6e635e6a8 | [
"WTFPL"
] | null | null | null | libraries/CustomHeaderLibs/device/CAT24C16.hpp | mskoenz/arduino_crash_course | cc7031e827dd13211cb9ce84f6d758f6e635e6a8 | [
"WTFPL"
] | null | null | null | libraries/CustomHeaderLibs/device/CAT24C16.hpp | mskoenz/arduino_crash_course | cc7031e827dd13211cb9ce84f6d758f6e635e6a8 | [
"WTFPL"
] | null | null | null | // Author: Mario S. Könz <mskoenz@gmx.net>
// Date: 19.08.2013 22:23:43 CEST
// File: CAT24C16.hpp
/* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Pub... | 30.846154 | 90 | 0.594347 | mskoenz |
228c2c110247ea41edd2c041c9f73911024565d1 | 9,187 | cpp | C++ | lib/Util/Builtin/TestEvalExpression.cpp | ashley-b/PothosCore | 42d23cb1b72fea2f04ff2792448f7b0b1d632455 | [
"BSL-1.0"
] | null | null | null | lib/Util/Builtin/TestEvalExpression.cpp | ashley-b/PothosCore | 42d23cb1b72fea2f04ff2792448f7b0b1d632455 | [
"BSL-1.0"
] | null | null | null | lib/Util/Builtin/TestEvalExpression.cpp | ashley-b/PothosCore | 42d23cb1b72fea2f04ff2792448f7b0b1d632455 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2014-2017 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#include <Pothos/Testing.hpp>
#include <Pothos/Proxy.hpp>
#include <Pothos/Framework.hpp>
#include <Pothos/Exception.hpp>
#include <Pothos/Object/Containers.hpp>
#include <complex>
#include <iostream>
POTHOS_TEST_BLOCK("/util/tests", test_eval_e... | 35.608527 | 115 | 0.603897 | ashley-b |
2297196ccc39488c61fe8758e1681d7689c4fd37 | 81,021 | cpp | C++ | Element Game V2/main.cpp | jasonwynn10/Past-Console-Projects | bc90c4d20635d21281563ad8f2aaa32966b5f965 | [
"Unlicense"
] | 1 | 2021-08-08T14:43:56.000Z | 2021-08-08T14:43:56.000Z | Element Game V2/main.cpp | jasonwynn10/Past-Console-Projects | bc90c4d20635d21281563ad8f2aaa32966b5f965 | [
"Unlicense"
] | null | null | null | Element Game V2/main.cpp | jasonwynn10/Past-Console-Projects | bc90c4d20635d21281563ad8f2aaa32966b5f965 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <string>
#include <fstream>
#include <windows.h>
using namespace std;
void charselect(void); // character slect screen
void setplayer(void); // apply chosen element to player
void fight(void); // full cycle of combat from initialization to finish
void turnMenu(void); // HUD displaying turn... | 27.511375 | 353 | 0.520939 | jasonwynn10 |
2297fc8905e19d36624c72416fe3c78cb66dcd1b | 1,982 | cc | C++ | ChiTech/ChiMath/Quadratures/lua/createquadrature.cc | zachhardy/chi-tech | 18fb6cb691962a90820e2ef4fcb05473f4a6bdd6 | [
"MIT"
] | 7 | 2019-09-10T12:16:08.000Z | 2021-05-06T16:01:59.000Z | ChiTech/ChiMath/Quadratures/lua/createquadrature.cc | zachhardy/chi-tech | 18fb6cb691962a90820e2ef4fcb05473f4a6bdd6 | [
"MIT"
] | 72 | 2019-09-04T15:00:25.000Z | 2021-12-02T20:47:29.000Z | ChiTech/ChiMath/Quadratures/lua/createquadrature.cc | Naktakala/chi-tech | df5f517d5aff1d167db50ccbcf4229ac0cb668c4 | [
"MIT"
] | 41 | 2019-09-02T15:33:31.000Z | 2022-02-10T13:26:49.000Z | #include "../../../ChiLua/chi_lua.h"
#include "../../chi_math.h"
#include "../quadrature_gausslegendre.h"
#include "../quadrature_gausschebyshev.h"
extern ChiMath& chi_math_handler;
#include <chi_log.h>
extern ChiLog& chi_log;
/**\defgroup LuaQuadrature Quadrature rules
* \ingroup LuaMath*/
//###############... | 28.724638 | 80 | 0.683148 | zachhardy |
22a77b9579199b3c2e73e2ad0fd4bcebf88a299b | 141 | cpp | C++ | src/UOJ_1004 - (644593) Accepted.cpp | miguelarauj1o/UOJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 80 | 2015-01-07T01:18:40.000Z | 2021-05-04T15:23:18.000Z | src/UOJ_1004 - (644593) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 1 | 2019-01-07T01:13:32.000Z | 2019-01-07T01:13:32.000Z | src/UOJ_1004 - (644593) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 28 | 2015-03-05T11:53:23.000Z | 2020-07-05T15:50:42.000Z | #include <cstdio>
int main()
{
int x;
int y;
scanf("%d", &x);
scanf("%d", &y);
printf("PROD = %d\n", x * y);
return 0;
} | 10.846154 | 31 | 0.446809 | miguelarauj1o |
22a95f3ff9a00d526226d895ee06b9bb24d0434c | 1,735 | cpp | C++ | SYCLTracer/sycl_example.cpp | shaovoon/simple_raytracing_sycl2020 | 84e8ee89eaaa1558eb989d311f02da61a345d533 | [
"MIT"
] | 1 | 2021-01-29T07:39:47.000Z | 2021-01-29T07:39:47.000Z | SYCLTracer/sycl_example.cpp | shaovoon/simple_raytracing_sycl2020 | 84e8ee89eaaa1558eb989d311f02da61a345d533 | [
"MIT"
] | null | null | null | SYCLTracer/sycl_example.cpp | shaovoon/simple_raytracing_sycl2020 | 84e8ee89eaaa1558eb989d311f02da61a345d533 | [
"MIT"
] | null | null | null | // https://github.com/jeffhammond/dpcpp-tutorial
#include <CL/sycl.hpp>
#include <array>
#include <iostream>
#include <exception>
using namespace sycl;
constexpr int N = 42;
int main(){
// I use array on the stack because the array is not
// huge, only 42 elements. I would advise to use std::vector
// wh... | 28.442623 | 81 | 0.603458 | shaovoon |
22ab92faf5732f5776006c4e40bb99d3b0a81842 | 2,128 | hpp | C++ | src/org/apache/poi/hpsf/VariantSupport.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hpsf/VariantSupport.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hpsf/VariantSupport.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/hpsf/VariantSupport.java
#pragma once
#include <fwd-POI.hpp>
#include <java/io/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/util/fwd-POI.hpp>
#include <org/apache/poi/hpsf/fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <org/apache/poi/hpsf/V... | 34.885246 | 211 | 0.736372 | pebble2015 |
22b608e952ebfba21217eabe013d1d9c62f35c60 | 2,676 | cpp | C++ | sorting/quick-sort-hoare-sorting-scheme.cpp | HarshitKaushik/ds-algorithms-revision | 98fddca7b196179dd795dfde822a1d9bb1518b74 | [
"MIT"
] | 1 | 2018-08-28T17:44:45.000Z | 2018-08-28T17:44:45.000Z | sorting/quick-sort-hoare-sorting-scheme.cpp | HarshitKaushik/ds-algorithms-revision | 98fddca7b196179dd795dfde822a1d9bb1518b74 | [
"MIT"
] | null | null | null | sorting/quick-sort-hoare-sorting-scheme.cpp | HarshitKaushik/ds-algorithms-revision | 98fddca7b196179dd795dfde822a1d9bb1518b74 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
// Quick Sort Algorithm to sort values by Hoare partition scheme
// Reference link: https://www.geeksforgeeks.org/hoares-vs-lomuto-partition-scheme-quicksort/
// Lomuto’s partition scheme is easy to implement as compare to Hoare scheme.
// This approach takes O(n log n) runnin... | 30.067416 | 93 | 0.661061 | HarshitKaushik |
22b66bee6c8ab3f378eabfe1b890ce739275bff7 | 7,883 | cpp | C++ | utils/outerplanar.cpp | charlespnh/shortest-beer-path | c133969bbfd977498623f39e665e60e66890b998 | [
"MIT"
] | 1 | 2021-09-13T04:01:12.000Z | 2021-09-13T04:01:12.000Z | utils/outerplanar.cpp | Phuc2002/shortest-beer-path | c133969bbfd977498623f39e665e60e66890b998 | [
"MIT"
] | null | null | null | utils/outerplanar.cpp | Phuc2002/shortest-beer-path | c133969bbfd977498623f39e665e60e66890b998 | [
"MIT"
] | null | null | null | #include <vector>
#include <utility>
#include <ctime>
#include <iostream>
using namespace std;
#include "../include/outerplanar.h"
#include "../include/graph/dcel.h"
#include "../include/graph/btree.h"
#include "../include/preprocess/beer.h"
#include "../include/preprocess/lca.h"
// Check if vertex v ... | 27.466899 | 110 | 0.646074 | charlespnh |
22b8f474ce2c6cf0ef21aab4747f05af51912b50 | 2,086 | hpp | C++ | NamelessEngine/NL.hpp | mattateusb7/NamelessEngine | 14055477b6f873baab7b01ef8508f559a0b72fc0 | [
"MIT"
] | 2 | 2018-07-19T12:19:08.000Z | 2018-07-20T15:20:32.000Z | NamelessEngine/NL.hpp | mattateusb7/NamelessEngine-Framework | 14055477b6f873baab7b01ef8508f559a0b72fc0 | [
"MIT"
] | null | null | null | NamelessEngine/NL.hpp | mattateusb7/NamelessEngine-Framework | 14055477b6f873baab7b01ef8508f559a0b72fc0 | [
"MIT"
] | null | null | null | #pragma once
//INCLUDE THIS HPP FILE BEFORE USING THE ENGINE TO HAVE ACCESS
//TO EVERY IMPLEMENTED THE HEADERS
/*
MIT License
Copyright (c) 2018 [mattateusb7]Eventyon_MateusBranco
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "S... | 22.673913 | 78 | 0.738734 | mattateusb7 |
22bc7af18f72535a9df3031949e1869ce5a98c1b | 3,668 | cpp | C++ | Common/script/src/ini_variant.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 4 | 2021-10-20T09:18:06.000Z | 2022-03-27T05:08:26.000Z | Common/script/src/ini_variant.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 1 | 2021-11-05T03:28:41.000Z | 2021-11-06T07:48:05.000Z | Common/script/src/ini_variant.cpp | deeptexas-ai/test | f06b798d18f2d53c9206df41406d02647004ce84 | [
"MIT"
] | 1 | 2021-12-13T16:04:22.000Z | 2021-12-13T16:04:22.000Z | /**
* \file ini_variant.cpp
* \brief ini脚本文件变量类函数实现
*/
#include "pch.h"
#include "ini_variant.h"
#include "strutil.h"
using namespace dtutil;
namespace dtscript
{
/// 空变量
IniVariant IniVariant::s_EmptyVar;
/**
* \brief 构造函数
*/
IniVariant::IniVariant(void)
{
m_Type = VT_EMPTY;
... | 17.301887 | 62 | 0.530262 | deeptexas-ai |
22bd82f46bbbddbd0802e68d5d9d652e7cd3d675 | 1,088 | cpp | C++ | Board/src/PSFonts.cpp | LMBernardo/HyperNEAT | 8ebee6fda17dcf20dd0c6c081dc8681557c1faad | [
"BSD-3-Clause"
] | 85 | 2015-02-08T20:36:17.000Z | 2021-11-14T20:38:31.000Z | Board/src/PSFonts.cpp | LMBernardo/HyperNEAT | 8ebee6fda17dcf20dd0c6c081dc8681557c1faad | [
"BSD-3-Clause"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | Board/src/PSFonts.cpp | LMBernardo/HyperNEAT | 8ebee6fda17dcf20dd0c6c081dc8681557c1faad | [
"BSD-3-Clause"
] | 27 | 2015-01-28T16:33:30.000Z | 2021-08-12T05:04:39.000Z | /* -*- mode: c++ -*- */
/**
* @file PSFonts.cpp
* @author Sebastien Fourey <http://www.greyc.ensicaen.fr/~seb>
* @date Sat Aug 18 2007
*
* @brief The Point structure.
* \@copyright
*/
namespace LibBoard {
const char * PSFontNames[] = {
"Times-Roman",
"Times-Italic",
"Times-Bold",
"Times-Bold-Ital... | 20.923077 | 63 | 0.658088 | LMBernardo |
22bf0bdd4e11efe276b25cd158cc8cfa9d4624a8 | 768 | cpp | C++ | core/src/utility/Custom_Field.cpp | MSallermann/spirit | d3b771bcbf2f1eb4b28d48899091c17a48f12c67 | [
"MIT"
] | 46 | 2020-08-24T22:40:15.000Z | 2022-02-28T06:54:54.000Z | core/src/utility/Custom_Field.cpp | MSallermann/spirit | d3b771bcbf2f1eb4b28d48899091c17a48f12c67 | [
"MIT"
] | null | null | null | core/src/utility/Custom_Field.cpp | MSallermann/spirit | d3b771bcbf2f1eb4b28d48899091c17a48f12c67 | [
"MIT"
] | 4 | 2020-09-05T13:24:41.000Z | 2021-11-06T07:46:47.000Z | #ifndef SPIRIT_USE_CUDA
#include <utility/Custom_Field.hpp>
#include <engine/Vectormath_Defines.hpp>
#include <cmath>
namespace Utility
{
namespace Custom_Field
{
Vector3 Custom_Field(Vector3 x, scalar t)
{
Vector3 out={0,0,0};
if (x[0]*x[0]+x[1]*x[1]<37) {
out = {0,0,0.00};
}
else{
out... | 21.942857 | 148 | 0.675781 | MSallermann |
22c2452bf657133d1c77f4c005851b35d3c96396 | 1,196 | hpp | C++ | Source/OpenTranslate/SentenceAnalyzer.hpp | alvinahmadov/Dixter | 6f98f1e84192e1e43eee409bdee6b3dac75d6443 | [
"MIT"
] | 4 | 2018-12-06T01:20:50.000Z | 2019-08-04T10:19:23.000Z | Source/OpenTranslate/SentenceAnalyzer.hpp | alvinahmadov/Dixter | 6f98f1e84192e1e43eee409bdee6b3dac75d6443 | [
"MIT"
] | null | null | null | Source/OpenTranslate/SentenceAnalyzer.hpp | alvinahmadov/Dixter | 6f98f1e84192e1e43eee409bdee6b3dac75d6443 | [
"MIT"
] | null | null | null | /**
* Copyright (C) 2015-2019
* Author Alvin Ahmadov <alvin.dev.ahmadov@gmail.com>
*
* This file is part of Dixter
* License-Identifier: MIT License
* See README.md for more information.
*/
#pragma once
#include "Tokenizer.hpp"
namespace Dixter
{
namespace OpenTranslate
{
class TSentenceAnalyzer
{
... | 18.984127 | 70 | 0.658027 | alvinahmadov |
42f0b4bb672fa69e67a248d72b20d4cf9f2dd365 | 469 | cpp | C++ | chapter_07/RollADie.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | null | null | null | chapter_07/RollADie.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | 31 | 2021-05-14T03:37:24.000Z | 2022-03-13T17:38:32.000Z | chapter_07/RollADie.cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | null | null | null | // Exercise 7.13 - Game: Rolling a die
#include <iostream>
#include <cstdlib>
#include <ctime>
int main()
{
const int TRIALS = 10000;
int results[6] = {0, 0, 0, 0, 0, 0};
int count = 0;
srand(time(0));
while (count < TRIALS)
{
results[rand() % 6] += 1;
count++;
}
for (i... | 19.541667 | 98 | 0.479744 | Kevin-Oudai |
42f30385deed1c3759b25fa5c002fbe72bc4469b | 4,896 | cpp | C++ | test/src/common/helper.cpp | dejsha01/armchina-zhouyi | 5de86bbdb5dc4184df4348d64cd152db0dbf9a96 | [
"MIT"
] | null | null | null | test/src/common/helper.cpp | dejsha01/armchina-zhouyi | 5de86bbdb5dc4184df4348d64cd152db0dbf9a96 | [
"MIT"
] | null | null | null | test/src/common/helper.cpp | dejsha01/armchina-zhouyi | 5de86bbdb5dc4184df4348d64cd152db0dbf9a96 | [
"MIT"
] | null | null | null | /**********************************************************************************
* This file is CONFIDENTIAL and any use by you is subject to the terms of the
* agreement between you and Arm China or the terms of the agreement between you
* and the party authorised by Arm China to disclose this file to you.
* Th... | 26.464865 | 104 | 0.535539 | dejsha01 |
42f69617bc9a9c2bb31c4b10d5316e357abcc705 | 14,568 | cpp | C++ | e32/ROMs/ROMe32/rom.cpp | ecilasun/riscvtool | 82a6184f2187044c6be81576d00cacb95a518cbc | [
"MIT"
] | 1 | 2021-10-05T20:30:50.000Z | 2021-10-05T20:30:50.000Z | e32/ROMs/ROMe32/rom.cpp | ecilasun/riscvtool | 82a6184f2187044c6be81576d00cacb95a518cbc | [
"MIT"
] | null | null | null | e32/ROMs/ROMe32/rom.cpp | ecilasun/riscvtool | 82a6184f2187044c6be81576d00cacb95a518cbc | [
"MIT"
] | 1 | 2021-04-02T22:24:04.000Z | 2021-04-02T22:24:04.000Z | // Bootloader
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include "rvcrt0.h"
#include "core.h"
#include "uart.h"
#include "elf.h"
#include "sdcard.h"
#include "fat32/ff.h"
#include "memtest/memtest.h"
const char *FRtoString[]={
"Succeeded\n",
"A hard error... | 32.017582 | 122 | 0.542079 | ecilasun |
42f84745bdc2fb1e8d1e7b63615c6530d9a0cbe1 | 248 | cpp | C++ | lgor/PolySpace.cpp | blaszczyk/lgor | f5386c421681437dc88e0c4dba72ebf166049132 | [
"MIT"
] | null | null | null | lgor/PolySpace.cpp | blaszczyk/lgor | f5386c421681437dc88e0c4dba72ebf166049132 | [
"MIT"
] | null | null | null | lgor/PolySpace.cpp | blaszczyk/lgor | f5386c421681437dc88e0c4dba72ebf166049132 | [
"MIT"
] | null | null | null | #include "PolySpace.h"
void PolySpace::ReduceBasis()
{
unsigned int i,j;
for( i = 0 ; i < term.size(); i++ )
{
for( j = 0 ; j < i ; j++ )
if(term[i].EqualTo(&term[j]))
{
term.erase(term.begin()+i);
i--;
}
}
}
| 15.5 | 37 | 0.467742 | blaszczyk |
42fb62295c3c5dcd95aa1c0427380e72374bd922 | 859 | cpp | C++ | src/core/CrossThreadCollection.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | null | null | null | src/core/CrossThreadCollection.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | 26 | 2017-12-13T12:45:32.000Z | 2018-02-06T11:08:04.000Z | src/core/CrossThreadCollection.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | null | null | null | #include "CrossThreadCollection.h"
template<class T>
CrossThreadCollection<T>::CrossThreadCollection()
{
}
template<class T>
CrossThreadCollection<T>::CrossThreadCollection(const CrossThreadCollection<T> &other)
{
}
template<class T>
ICollection<T> CrossThreadCollection<T>::getAll()
{
_mtx_lock.lock();
ICo... | 18.276596 | 86 | 0.705471 | Neomer |
42ff5db14c599f153a60fca6853e057b285e6b52 | 284 | cpp | C++ | mnit/a.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | mnit/a.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | mnit/a.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
long long int w,s,p,q;
scanf("%lld%lld%lld%lld",&w,&s,&p,&q);
int dif=abs(w-s);
w=w+p;
s=s+q;
int dif2=abs(w-s);
if(dif2==dif)
printf("NO\n");
else printf("YES\n");
}
} | 13.52381 | 40 | 0.538732 | sagar-sam |
6e04c289af222cc69dee55c3eaf4cd98395c88f3 | 337 | hpp | C++ | src/output/bufferedOutput.hpp | NHollmann/CmdPathtracer | 6c6c0382948bb6ea547458f743937b70c090ca6c | [
"MIT"
] | null | null | null | src/output/bufferedOutput.hpp | NHollmann/CmdPathtracer | 6c6c0382948bb6ea547458f743937b70c090ca6c | [
"MIT"
] | null | null | null | src/output/bufferedOutput.hpp | NHollmann/CmdPathtracer | 6c6c0382948bb6ea547458f743937b70c090ca6c | [
"MIT"
] | null | null | null | #pragma once
#include <fstream>
#include "imageOutput.hpp"
namespace output
{
class BufferedOutput
{
public:
BufferedOutput(int width, int height);
~BufferedOutput();
void writeTo(ImageOutput *output);
uint8_t* getData();
private:
uint8_t* data;
size_... | 14.652174 | 46 | 0.593472 | NHollmann |
6e05bac16999611640216e9d50b5811f6ecb5ee7 | 1,837 | hpp | C++ | code/editors/xrWeatherEditor/property_converter_string_values.hpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/editors/xrWeatherEditor/property_converter_string_values.hpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/editors/xrWeatherEditor/property_converter_string_values.hpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 5 | 2020-10-18T11:55:26.000Z | 2022-03-28T07:21:35.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : property_converter_string_values.hpp
// Created : 07.12.2007
// Modified : 07.12.2007
// Author : Dmitriy Iassenev
// Description : property converter string values class
//////////////////////////////////////////////////////... | 44.804878 | 102 | 0.754491 | Rikoshet-234 |
6e119679a7e898a597d8a8c6cc93f5a11a19a8c3 | 18,750 | cpp | C++ | src/filter/OceanCurrents.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | 6 | 2020-09-23T19:49:07.000Z | 2022-01-08T15:53:55.000Z | src/filter/OceanCurrents.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | null | null | null | src/filter/OceanCurrents.cpp | Kuhlwein/Demiurge | 0981f1d267efed87d51e2b328a93e1fa0be1158d | [
"MIT"
] | 1 | 2020-09-23T17:53:26.000Z | 2020-09-23T17:53:26.000Z | //
// Created by kuhlwein on 4/12/21.
//
#include <iostream>
#include "Project.h"
#include "OceanCurrents.h"
OceanCurrentsMenu::OceanCurrentsMenu() : FilterModal("OceanCurrents") {
}
void OceanCurrentsMenu::update_self(Project *p) {
ImGuiIO io = ImGui::GetIO();
ImGui::DragFloat("Pressure", &pressure, 0.01f, 0.1f... | 26.408451 | 142 | 0.664267 | Kuhlwein |
6e1b40fdc2397eac86e97f1df6b82a9f76064074 | 542 | cpp | C++ | vehicle.cpp | rauroll/sumo-analyzer | fac084915c4cd14b9f7ca8e491a04f153731ea63 | [
"MIT"
] | null | null | null | vehicle.cpp | rauroll/sumo-analyzer | fac084915c4cd14b9f7ca8e491a04f153731ea63 | [
"MIT"
] | null | null | null | vehicle.cpp | rauroll/sumo-analyzer | fac084915c4cd14b9f7ca8e491a04f153731ea63 | [
"MIT"
] | null | null | null | #include "vehicle.h"
void Vehicle::setValues(QString id_, float x_, float y_, float angle_, QString vtype_, float speed_, float pos_, QString lane_, float slope_)
{
Vehicle::id = id_;
Vehicle::x = x_;
Vehicle::y = y_;
Vehicle::angle = angle_;
Vehicle::vtype = vtype_;
Vehicle::speed = speed_;
... | 27.1 | 141 | 0.603321 | rauroll |
6e1e119e6b594757a2db57b7532d5e28a70fb7ec | 7,579 | cpp | C++ | src/lua/functions/core/network/network_message_functions.cpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | src/lua/functions/core/network/network_message_functions.cpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | src/lua/functions/core/network/network_message_functions.cpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | /**
* Canary - A free and open-source MMORPG server emulator
* Copyright (C) 2021 OpenTibiaBR <opentibiabr@outlook.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 o... | 25.778912 | 74 | 0.726349 | Waclaw-I |
6e261be20d46c71717701950bb3040d0af77b2d0 | 7,824 | hpp | C++ | src/core/peer.hpp | heshu-by/likelib-ws | 85987d328dc274622f4b758afa1b6af43d15564f | [
"Apache-2.0"
] | null | null | null | src/core/peer.hpp | heshu-by/likelib-ws | 85987d328dc274622f4b758afa1b6af43d15564f | [
"Apache-2.0"
] | null | null | null | src/core/peer.hpp | heshu-by/likelib-ws | 85987d328dc274622f4b758afa1b6af43d15564f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "base/error.hpp"
#include "base/time.hpp"
#include "base/utility.hpp"
#include "core/address.hpp"
#include "core/block.hpp"
#include "core/messages.hpp"
#include "core/rating.hpp"
#include "net/error.hpp"
#include "net/session.hpp"
#include <atomic>
#include <deque>
#include <forward_list>
#incl... | 29.862595 | 114 | 0.621933 | heshu-by |
6e2b0de8bb933ed5cb2214a0cbdfdcbbd6338ece | 2,974 | hpp | C++ | src/vars.hpp | giag3/peng-utils | f0883ffbf3b422de2e0ea326861114b1f5809037 | [
"MIT"
] | 1 | 2022-03-28T11:20:50.000Z | 2022-03-28T11:20:50.000Z | src/vars.hpp | giag3/peng-utils | f0883ffbf3b422de2e0ea326861114b1f5809037 | [
"MIT"
] | null | null | null | src/vars.hpp | giag3/peng-utils | f0883ffbf3b422de2e0ea326861114b1f5809037 | [
"MIT"
] | null | null | null | #pragma once
// OUT INCLUDES
#include <iostream>
#include <fstream>
#include <string>
#include <experimental/filesystem>
#include <vector>
#include <map>
#include <bitset>
#include <exception>
#include <stack>
#include <sstream>
// OS INFO
#define _LINUX 0
#define _WINDOWS 1
// This information about the OS is dete... | 27.537037 | 157 | 0.656355 | giag3 |
6e2ce7a121dae286814cc6607ce50e1c123e8d05 | 990 | cc | C++ | POJ/3134_Power Calculus/3134.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | 1 | 2019-05-05T03:51:20.000Z | 2019-05-05T03:51:20.000Z | POJ/3134_Power Calculus/3134.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | POJ/3134_Power Calculus/3134.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int n;
int max_dep;
int num[20];
bool dfs(int cnt, int x) {
// cnt 当前搜索深度
// x 上一次搜索后最大的数
if (num[cnt] == n)
return true;
if (cnt == max_dep) // 搜索达到最大层数
return false;
x = max(x, num[cnt]);
if (x * (1 << (max_dep - cnt)) < n) // 剪枝
... | 18.333333 | 45 | 0.412121 | pdszhh |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.