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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cbf6021119212bfdd13e888bdb0aaa72b88bc33f | 5,191 | cpp | C++ | indra/integration_tests/llui_libtest/llwidgetreg.cpp | SaladDais/LSO2-VM-Performance | d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638 | [
"ISC"
] | 1 | 2022-01-29T07:10:03.000Z | 2022-01-29T07:10:03.000Z | indra/integration_tests/llui_libtest/llwidgetreg.cpp | SaladDais/LSO2-VM-Performance | d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638 | [
"ISC"
] | null | null | null | indra/integration_tests/llui_libtest/llwidgetreg.cpp | SaladDais/LSO2-VM-Performance | d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638 | [
"ISC"
] | 1 | 2021-10-01T22:22:27.000Z | 2021-10-01T22:22:27.000Z | /**
* @file llwidgetreg.cpp
*
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by... | 48.064815 | 102 | 0.799075 | SaladDais |
02082b5d69c4264e74197730f982e43693fb3c1f | 260 | hpp | C++ | Planets/Graph.hpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | Planets/Graph.hpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | Planets/Graph.hpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | #ifndef GRAPH_H
#define GRAPH_H
#include <vector>
#include <utility>
// Header file for the graphing file
std::pair<double,double> extrema(std::vector<double> v);
std::pair<double,double> getLeastSquares(std::vector<double> x, std::vector<double> y);
#endif | 23.636364 | 87 | 0.746154 | GEslinger |
02098a73feec75805920a6f0064ac723be0d6723 | 2,003 | hh | C++ | src/blas/utils.hh | hmatuschek/linalg | b4b8337ba001b24572f13349cc5804a416bfe5a7 | [
"MIT"
] | 1 | 2016-05-24T15:27:52.000Z | 2016-05-24T15:27:52.000Z | src/blas/utils.hh | hmatuschek/linalg | b4b8337ba001b24572f13349cc5804a416bfe5a7 | [
"MIT"
] | null | null | null | src/blas/utils.hh | hmatuschek/linalg | b4b8337ba001b24572f13349cc5804a416bfe5a7 | [
"MIT"
] | null | null | null | /*
* This file is part of the Linalg project, a C++ interface to BLAS and LAPACK.
*
* The source-code is licensed under the terms of the MIT license, read LICENSE for more details.
*
* (c) 2011, 2012 Hannes Matuschek <hmatuschek at gmail dot com>
*/
#ifndef __LINALG_BLAS_UTILS_HH__
#define __LINALG_BLAS_UTILS_HH... | 32.306452 | 119 | 0.658013 | hmatuschek |
020a06c3b0386487bf769fdb51b8d0e5db94421b | 3,157 | cpp | C++ | groups/csa/csamisc/csamisc_shortcompare.cpp | hyrosen/bde_verify | c2db13c9f1649806bfd9155e2bffcbbcf9d54918 | [
"Apache-2.0"
] | null | null | null | groups/csa/csamisc/csamisc_shortcompare.cpp | hyrosen/bde_verify | c2db13c9f1649806bfd9155e2bffcbbcf9d54918 | [
"Apache-2.0"
] | null | null | null | groups/csa/csamisc/csamisc_shortcompare.cpp | hyrosen/bde_verify | c2db13c9f1649806bfd9155e2bffcbbcf9d54918 | [
"Apache-2.0"
] | null | null | null | // csamisc_donotuseendl.cpp -*-C++-*-
#include <clang/AST/Expr.h>
#include <clang/ASTMatchers/ASTMatchFinder.h>
#include <clang/ASTMatchers/ASTMatchers.h>
#include <csabase_analyser.h>
#include <csabase_debug.h>
#include <csabase_registercheck.h>
#include <csabase_report.h>
#i... | 34.315217 | 80 | 0.560025 | hyrosen |
020a0fa22c0b7915b733150f7e2839eeba5c0058 | 26,548 | hpp | C++ | libs/fft/FFTRealFixed.hpp | constcut/mtherapp | 20b8e32361ef492d5b7cb4ff150f0956e952fdef | [
"MIT"
] | 2 | 2022-03-04T17:54:48.000Z | 2022-03-28T06:20:31.000Z | libs/fft/FFTRealFixed.hpp | constcut/aurals | bb00fac92a3a919867fe2e482c37fc0abe5e6984 | [
"MIT"
] | null | null | null | libs/fft/FFTRealFixed.hpp | constcut/aurals | bb00fac92a3a919867fe2e482c37fc0abe5e6984 | [
"MIT"
] | null | null | null | #ifndef FFTREALFIXED_H
#define FFTREALFIXED_H
#include <cstdint>
#include <cassert>
#include <cmath>
#include <type_traits>
const double PI = 3.1415926535897932384626433832795;
const double SQRT2 = 1.41421356237309514547462185873883;
template <class T>
class DynArray
{
public:
DynArray ();
explicit DynA... | 24.672862 | 183 | 0.548403 | constcut |
020b078552ed651f6af89c77f968a8981ff13b1d | 796 | cpp | C++ | LeetCode/_0167_TwoSumII_InputArrayIsSorted.cpp | Restart20200301/Algorithm-Practice | 2b5f42492a1ae574d7ddc7efeebdef55a82a30a5 | [
"MIT"
] | 2 | 2020-05-26T08:25:25.000Z | 2020-05-27T03:53:00.000Z | LeetCode/_0167_TwoSumII_InputArrayIsSorted.cpp | Restart20200301/Algorithm-Practice | 2b5f42492a1ae574d7ddc7efeebdef55a82a30a5 | [
"MIT"
] | null | null | null | LeetCode/_0167_TwoSumII_InputArrayIsSorted.cpp | Restart20200301/Algorithm-Practice | 2b5f42492a1ae574d7ddc7efeebdef55a82a30a5 | [
"MIT"
] | null | null | null | /*
给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。
函数应该返回这两个下标值 index1 和 index2,其中 index1 必须小于 index2。
说明:
返回的下标值(index1 和 index2)不是从零开始的。
你可以假设每个输入只对应唯一的答案,而且你不可以重复使用相同的元素。
示例:
输入: numbers = [2, 7, 11, 15], target = 9
输出: [1,2]
解释: 2 与 7 之和等于目标数 9 。因此 index1 = 1, index2 = 2 。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/prob... | 24.121212 | 68 | 0.611809 | Restart20200301 |
020f2fae5a1cf348fe57133d0d7af0a969664af5 | 14,537 | cpp | C++ | RDT.cpp | fmckenna/RDT | e06273495c4dbe02d7eca55396970d6f749cccaf | [
"BSD-3-Clause"
] | null | null | null | RDT.cpp | fmckenna/RDT | e06273495c4dbe02d7eca55396970d6f749cccaf | [
"BSD-3-Clause"
] | null | null | null | RDT.cpp | fmckenna/RDT | e06273495c4dbe02d7eca55396970d6f749cccaf | [
"BSD-3-Clause"
] | 1 | 2020-09-16T21:02:16.000Z | 2020-09-16T21:02:16.000Z |
// Copyright 2019 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use rest... | 31.262366 | 122 | 0.672972 | fmckenna |
020f47b3f07d69f7d0a2a783b77c149ad42bfed4 | 10,169 | cc | C++ | chrome/browser/ui/webui/options/bitpop_options_ui.cc | leiferikb/bitpop-private | 4c967307d228e86f07f2576068a169e846c833ca | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-11-15T15:17:43.000Z | 2021-11-15T15:17:43.000Z | chrome/browser/ui/webui/options/bitpop_options_ui.cc | houseoflifeproperty/bitpop-private | 4c967307d228e86f07f2576068a169e846c833ca | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/webui/options/bitpop_options_ui.cc | houseoflifeproperty/bitpop-private | 4c967307d228e86f07f2576068a169e846c833ca | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:24:02.000Z | 2020-11-04T07:24:02.000Z | // Copyright (c) 2013 House of Life Property Ltd. All rights reserved.
// Copyright (c) 2013 Crystalnix <vgachkaylo@crystalnix.com>
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/options/bitpop_options_ui.h"
#include <algorithm... | 36.579137 | 88 | 0.708821 | leiferikb |
021519459a4abdc8e68defbff44fd977dca0b7d2 | 21,457 | cpp | C++ | classes/ArgumentHelper.cpp | bmampaey/SPoCA | 902f3f713c1f86263a8c27d8a3cf429b508ed596 | [
"MIT"
] | null | null | null | classes/ArgumentHelper.cpp | bmampaey/SPoCA | 902f3f713c1f86263a8c27d8a3cf429b508ed596 | [
"MIT"
] | null | null | null | classes/ArgumentHelper.cpp | bmampaey/SPoCA | 902f3f713c1f86263a8c27d8a3cf429b508ed596 | [
"MIT"
] | null | null | null | /*
*
* Argument Helper
*
* Daniel Russel drussel@alumni.princeton.edu
* Stanford University
*
*
* This software is not subject to copyright protection and is in the
* public domain. Neither Stanford nor the author assume any
* responsibility whatsoever for its use by other parties, and makes no
* guarantees... | 31.052098 | 102 | 0.615277 | bmampaey |
0215dc982e9b92fb0d9f4cc0303459c635969a42 | 3,885 | cpp | C++ | src/data_science/logistic_regression.cpp | arotem3/numerics | ba208d9fc0ccb9471cfec9927a21622eb3535f54 | [
"Apache-2.0"
] | 18 | 2019-04-18T17:34:49.000Z | 2021-11-15T07:57:29.000Z | src/data_science/logistic_regression.cpp | arotem3/numerics | ba208d9fc0ccb9471cfec9927a21622eb3535f54 | [
"Apache-2.0"
] | null | null | null | src/data_science/logistic_regression.cpp | arotem3/numerics | ba208d9fc0ccb9471cfec9927a21622eb3535f54 | [
"Apache-2.0"
] | 4 | 2019-12-02T04:04:21.000Z | 2022-02-17T08:23:09.000Z | #include <numerics.hpp>
void mult_coefs_serial(arma::mat& yh, const arma::vec& coefs, const arma::rowvec& b, const arma::mat& w, const arma::mat& x) {
yh = arma::repmat(coefs.subvec(0,b.n_elem-1).as_row(), x.n_rows, 1);
arma::uword start = b.n_elem;
for (u_long i=0; i < w.n_rows; ++i) {
for (u_long... | 29.656489 | 161 | 0.551094 | arotem3 |
0217515b32bbeec62e4d1faf4e81d57b3d7b1c5f | 2,409 | cpp | C++ | Lowest Common Ancestor (LCA-problem)/DISQUERY - Distance Query (sol. 2).cpp | yokeshrana/Fast_Algorithms_in_Data_Structures | 2346fee16c6c3ffceac7cb79b1f449b4d8dc9df2 | [
"MIT"
] | 4 | 2021-01-15T16:30:48.000Z | 2021-08-12T03:17:00.000Z | Lowest Common Ancestor (LCA-problem)/DISQUERY - Distance Query (sol. 2).cpp | andy489/Fast_Algorithms_in_Data_Structures | 0f28a75030df3367902f0aa859a34096ea2b2582 | [
"MIT"
] | null | null | null | Lowest Common Ancestor (LCA-problem)/DISQUERY - Distance Query (sol. 2).cpp | andy489/Fast_Algorithms_in_Data_Structures | 0f28a75030df3367902f0aa859a34096ea2b2582 | [
"MIT"
] | 2 | 2021-02-24T14:50:08.000Z | 2021-02-28T17:39:41.000Z | /*
github.com/andy489
Complexity: <O(n.log(n), log(n))>
Link: http://www.spoj.com/problems/DISQUERY/
*/
#include <stdio.h>
#include <vector>
using namespace std;
#define pii pair<int,int>
#define pb push_back
#define f first
#define s second
const int mxN = 1e5 + 5;
const int mxLog = 17;
vector<pair<int, int>> adj... | 24.581633 | 73 | 0.429639 | yokeshrana |
021cfde3788cdde45bee5f039475f69d25bb37e8 | 1,023 | cpp | C++ | FangameReader/DetectorMouseController.cpp | TheBiob/DeadSplit | 2e29bae2b86fa689ed9c28d345f2e8743b10c115 | [
"MIT"
] | 3 | 2019-04-02T19:23:35.000Z | 2021-04-30T03:57:15.000Z | FangameReader/DetectorMouseController.cpp | TheBiob/DeadSplit | 2e29bae2b86fa689ed9c28d345f2e8743b10c115 | [
"MIT"
] | 1 | 2018-07-10T22:34:41.000Z | 2018-07-10T22:52:43.000Z | FangameReader/DetectorMouseController.cpp | TheBiob/DeadSplit | 2e29bae2b86fa689ed9c28d345f2e8743b10c115 | [
"MIT"
] | 3 | 2020-12-28T19:06:07.000Z | 2021-01-30T10:09:56.000Z | #include <common.h>
#pragma hdrstop
#include <DetectorMouseController.h>
#include <FangameDetectorState.h>
#include <MouseTarget.h>
#include <DetectorActionController.h>
namespace Fangame {
//////////////////////////////////////////////////////////////////////////
void CDetectorMouseController::OnMouseMove()
{
con... | 22.733333 | 74 | 0.638319 | TheBiob |
021d90eda0e13562cdffcd38536f0c49f8fc403f | 38,617 | hpp | C++ | thirdparty/nark/gold_hash_map.hpp | ktprime/emhash | 3b059cc5db31f3e3c4102b1b1bc46bbfc3313c37 | [
"MIT"
] | 92 | 2019-09-11T05:17:20.000Z | 2022-03-31T09:54:06.000Z | thirdparty/nark/gold_hash_map.hpp | ktprime/emhash | 3b059cc5db31f3e3c4102b1b1bc46bbfc3313c37 | [
"MIT"
] | 7 | 2019-11-23T16:24:03.000Z | 2020-09-15T13:07:06.000Z | thirdparty/nark/gold_hash_map.hpp | ktprime/emhash | 3b059cc5db31f3e3c4102b1b1bc46bbfc3313c37 | [
"MIT"
] | 5 | 2020-06-10T07:20:04.000Z | 2022-03-01T08:43:18.000Z | #ifndef __nark_gold_hash_tab__
#define __nark_gold_hash_tab__
#ifdef _MSC_VER
#if _MSC_VER < 1600
#include <hash_map>
#define DEFAULT_HASH_FUNC stdext::hash
#else
#include <unordered_map>
#define DEFAULT_HASH_FUNC std::hash
#endif
#elif defined(__GNUC__) && __GNUC__ * 1000 + __GNUC_MINOR__ < 4001
#includ... | 27.842105 | 101 | 0.640081 | ktprime |
021f205bbd10b7ed975697de2501f90ec14fee0f | 7,038 | hpp | C++ | src/Luddite/Graphics/ShaderAttributeList.hpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | 1 | 2021-06-03T05:46:46.000Z | 2021-06-03T05:46:46.000Z | src/Luddite/Graphics/ShaderAttributeList.hpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | null | null | null | src/Luddite/Graphics/ShaderAttributeList.hpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Luddite/Core/pch.hpp"
#include "Luddite/Core/Core.hpp"
#include "Luddite/Core/AssetTypes/Texture.hpp"
#include "Luddite/Graphics/Color.hpp"
#include "Luddite/Graphics/DiligentInclude.hpp"
// #include "Luddite/Core/pch.hpp"
// #include "Luddite/Platform/DiligentPlatform.hpp"
// #include "Graphics/... | 42.143713 | 153 | 0.603296 | Aquaticholic |
0220d2bb3788965160cc9bdbaf6163ae99a03f91 | 2,423 | cc | C++ | engine/runtime/gpu/src/resource.cc | aejsmith/orion | 0e172e1829c0f4522a4af1ddb4afcd2ed046ca49 | [
"ISC"
] | 5 | 2015-08-02T18:20:19.000Z | 2020-03-10T10:39:51.000Z | engine/runtime/gpu/src/resource.cc | aejsmith/orion | 0e172e1829c0f4522a4af1ddb4afcd2ed046ca49 | [
"ISC"
] | 1 | 2018-04-25T15:12:35.000Z | 2018-04-25T15:12:35.000Z | engine/runtime/gpu/src/resource.cc | aejsmith/orion | 0e172e1829c0f4522a4af1ddb4afcd2ed046ca49 | [
"ISC"
] | null | null | null | /*
* Copyright (C) 2016 Alex Smith
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIM... | 33.652778 | 95 | 0.685927 | aejsmith |
0226d207c2cff8ddfb0f5797b924142535f9ce20 | 6,045 | cc | C++ | src/engine/systems/collider_system.cc | hvonck/lambda-lilac | c4cf744356c2d2056e8f66da4f95d2268f7c25d0 | [
"BSD-3-Clause"
] | 1 | 2019-05-28T16:39:19.000Z | 2019-05-28T16:39:19.000Z | src/engine/systems/collider_system.cc | hvonck/lambda-lilac | c4cf744356c2d2056e8f66da4f95d2268f7c25d0 | [
"BSD-3-Clause"
] | null | null | null | src/engine/systems/collider_system.cc | hvonck/lambda-lilac | c4cf744356c2d2056e8f66da4f95d2268f7c25d0 | [
"BSD-3-Clause"
] | 1 | 2019-05-28T16:39:06.000Z | 2019-05-28T16:39:06.000Z | #include "collider_system.h"
#include "rigid_body_system.h"
#include "transform_system.h"
#include "utils/mesh_decimator.h"
#include <platform/scene.h>
namespace lambda
{
namespace components
{
namespace ColliderSystem
{
ColliderComponent addComponent(const entity::Entity& entity, scene::Scene& sc... | 27.729358 | 135 | 0.66617 | hvonck |
02280e2bdcf0d36c1832ab5c74c6fbdd1c45cd52 | 2,421 | cpp | C++ | Sandbox/src/Player.cpp | Super-Shadow/RiseFlappyRocketGame | 7ed3191823af77cd246940f6766f453c12dab601 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Player.cpp | Super-Shadow/RiseFlappyRocketGame | 7ed3191823af77cd246940f6766f453c12dab601 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Player.cpp | Super-Shadow/RiseFlappyRocketGame | 7ed3191823af77cd246940f6766f453c12dab601 | [
"Apache-2.0"
] | null | null | null | #include "Player.h"
#include "imgui/imgui.h"
#include <glm/gtx/transform.hpp>
using namespace Rise;
Player::Player()
{
m_SmokeParticle.Position = {0.f, 0.f};
m_SmokeParticle.Velocity = {-2.f, 0.f};
m_SmokeParticle.VelocityVariation = { 4.f, 2.f};
m_SmokeParticle.SizeBegin = .35f;
m_SmokeParticle.SizeEnd = 0.f;
... | 26.604396 | 120 | 0.693928 | Super-Shadow |
022b26afd6d361726223c70e6c3ffbcb736c160d | 349 | cpp | C++ | CF/1611B.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | CF/1611B.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | CF/1611B.cpp | jawahiir98/CP | a32566554949cd12a62151f90ac3b82b67275cac | [
"MIT"
] | null | null | null | /*
/\ In The Name Of Allah /\
Author : Jawahiir Nabhan
*/
#include <bits/stdc++.h>
#define pb push_back
using namespace std;
typedef long long ll;
const char nl = '\n';
int main()
{
int T; cin>> T;
while(T--)
{
int a,b; cin>> a >> b;
if(a > b) swap(a, b);
cout<< min(min(a, b... | 16.619048 | 47 | 0.495702 | jawahiir98 |
022c8391657a0ed821ec91198f3e3811e7e6e97e | 6,398 | cpp | C++ | DT3Core/System/Globals.cpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2018-10-05T15:03:27.000Z | 2019-03-19T11:01:56.000Z | DT3Core/System/Globals.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3Core/System/Globals.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2016-01-14T07:51:52.000Z | 2021-08-21T08:02:51.000Z | //==============================================================================
///
/// File: Globals.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part of this source c... | 29.897196 | 116 | 0.455924 | 9heart |
0232334d11e4efc946c3ffad18c64a59c08d2b86 | 14,341 | cpp | C++ | src/asdxSkySphere.cpp | ProjectAsura/asdx11 | 67c3d4129f3e6d32e66c64ee9354d873f99d0eaf | [
"MIT"
] | null | null | null | src/asdxSkySphere.cpp | ProjectAsura/asdx11 | 67c3d4129f3e6d32e66c64ee9354d873f99d0eaf | [
"MIT"
] | null | null | null | src/asdxSkySphere.cpp | ProjectAsura/asdx11 | 67c3d4129f3e6d32e66c64ee9354d873f99d0eaf | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// File : asdxSkySphere.cpp
// Desc : Sky Sphere Module.
// Copyright(c) Project Asura. All right reserved.
//-----------------------------------------------------------------------------
//------------------------------------------... | 33.664319 | 122 | 0.473816 | ProjectAsura |
0237b7eb818f95115f65a80370fb734d44937069 | 363 | hpp | C++ | include/bbbgpio/core.hpp | uilianries/BeagleBoneBlackGPIO | bbd4137ca2b5b2e506321bf440ba87370764646b | [
"MIT"
] | 6 | 2016-03-11T16:48:16.000Z | 2021-06-05T11:38:48.000Z | include/bbbgpio/core.hpp | uilianries/BeagleBoneBlackGPIO | bbd4137ca2b5b2e506321bf440ba87370764646b | [
"MIT"
] | 9 | 2016-03-03T17:31:57.000Z | 2018-01-11T23:00:55.000Z | include/bbbgpio/core.hpp | uilianries/BeagleBoneBlackGPIO | bbd4137ca2b5b2e506321bf440ba87370764646b | [
"MIT"
] | null | null | null | /**
* \file
* \brief Load basic pin core
*
* \author Uilian Ries <uilianries@gmail.com>
*/
#ifndef BBBGPIO_CORE_HPP
#define BBBGPIO_CORE_HPP
namespace bbb {
namespace gpio {
/**
* \brief Basic core declaration
*/
class core {
public:
virtual ~core() = default;
};
} // namespace gpio
} /... | 13.961538 | 45 | 0.639118 | uilianries |
0238d577559be1aeeded0fdfb1e11de41c886a7b | 718 | hpp | C++ | src/layout/composer.hpp | kounoike/hisui | 7dca5cf4fedfdcf9320a1299ed61f16ee6a3a3ce | [
"Apache-2.0"
] | null | null | null | src/layout/composer.hpp | kounoike/hisui | 7dca5cf4fedfdcf9320a1299ed61f16ee6a3a3ce | [
"Apache-2.0"
] | null | null | null | src/layout/composer.hpp | kounoike/hisui | 7dca5cf4fedfdcf9320a1299ed61f16ee6a3a3ce | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <array>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <vector>
#include "layout/cell_util.hpp"
namespace hisui::layout {
class Region;
struct ComposerParameters {
const std::vector<std::shared_ptr<Region>>& regions;
const Resolution& resolution;
};
class Composer {
pu... | 20.514286 | 65 | 0.729805 | kounoike |
023ee49c6e0a51231affc25ec765f9383fce1f2a | 3,662 | hpp | C++ | be/src/util/lru_cache.hpp | kaiker19/incubator-doris | f4c5c6ccc650012a0db7ddda8a38f4c65cc5c9be | [
"Apache-2.0"
] | 3,562 | 2018-08-30T05:26:10.000Z | 2022-03-31T10:01:56.000Z | be/src/util/lru_cache.hpp | kaiker19/incubator-doris | f4c5c6ccc650012a0db7ddda8a38f4c65cc5c9be | [
"Apache-2.0"
] | 5,199 | 2018-09-11T07:57:21.000Z | 2022-03-31T16:17:50.000Z | be/src/util/lru_cache.hpp | kaiker19/incubator-doris | f4c5c6ccc650012a0db7ddda8a38f4c65cc5c9be | [
"Apache-2.0"
] | 1,234 | 2018-08-31T09:34:54.000Z | 2022-03-31T06:01:02.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 29.063492 | 91 | 0.638176 | kaiker19 |
0241e131febd400c95b44450a12d4a135b6f0489 | 1,007 | cc | C++ | Daily_Problem/2101/Beginning/210104_Fibonacci_Number/method2/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | 1 | 2020-02-07T12:25:56.000Z | 2020-02-07T12:25:56.000Z | Daily_Problem/2101/Beginning/210104_Fibonacci_Number/method2/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | null | null | null | Daily_Problem/2101/Beginning/210104_Fibonacci_Number/method2/solution.cc | sheriby/DandAInLeetCode | dd7f5029aa0c297ea82bb20f882b524789f35c96 | [
"MIT"
] | null | null | null | #include <vector>
using std::vector;
class Solution {
public:
// 除去直接使用通项公式的方法,还有一种方法时间复杂度更低,
// 1 1 ^n f(1) = f(n+1)
// 1 0 f(0) f(n)
using matrix_type = vector<vector<int>>;
int fib(int n) {
if (n < 2) return n;
matrix_type a{{1, 1}, {1, 0}};
matrix_type r = matri... | 23.97619 | 65 | 0.454816 | sheriby |
02464d969d1ea5a1796198d466f27a0e71d79a41 | 7,317 | hxx | C++ | data3d/suncg_utils/cmake-3.13.2/Bootstrap.cmk/cmsys/Configure.hxx | picwoon/As_built_BIM | 9e6b81e2fd8904f5afd013e21d2db45456c138d5 | [
"MIT"
] | 2 | 2020-03-05T06:39:03.000Z | 2020-03-31T12:08:04.000Z | data3d/suncg_utils/cmake-3.13.2/Bootstrap.cmk/cmsys/Configure.hxx | picwoon/As_built_BIM | 9e6b81e2fd8904f5afd013e21d2db45456c138d5 | [
"MIT"
] | null | null | null | data3d/suncg_utils/cmake-3.13.2/Bootstrap.cmk/cmsys/Configure.hxx | picwoon/As_built_BIM | 9e6b81e2fd8904f5afd013e21d2db45456c138d5 | [
"MIT"
] | null | null | null | /*
* Generated by /home/wenjing/DATA/Detection_3D-data_multi_stories/data3d/suncg_utils/cmake-3.13.2/bootstrap
* Version: $Revision$
*
* Source directory: /home/wenjing/DATA/Detection_3D-data_multi_stories/data3d/suncg_utils/cmake-3.13.2
* Binary directory: /home/wenjing/DATA/Detection_3D-data_multi_stories/da... | 84.103448 | 4,066 | 0.789941 | picwoon |
0249b78204328624e2fdccb88e9a72f5398166e4 | 5,933 | cpp | C++ | platform-io/lib/zeromq/src/zeromq/esp8266/ZeroMQConnection.cpp | darvik80/rover-cpp | 8da7b7f07efe7096843ae17536603277f55debea | [
"Apache-2.0"
] | 2 | 2020-01-13T07:32:50.000Z | 2020-03-03T14:32:25.000Z | platform-io/lib/zeromq/src/zeromq/esp8266/ZeroMQConnection.cpp | darvik80/rover-cpp | 8da7b7f07efe7096843ae17536603277f55debea | [
"Apache-2.0"
] | 16 | 2019-06-16T05:51:02.000Z | 2020-02-03T01:59:23.000Z | platform-io/lib/zeromq/src/zeromq/esp8266/ZeroMQConnection.cpp | darvik80/rover-cpp | 8da7b7f07efe7096843ae17536603277f55debea | [
"Apache-2.0"
] | 1 | 2020-03-03T14:32:27.000Z | 2020-03-03T14:32:27.000Z | //
// Created by Ivan Kishchenko on 01.09.2021.
//
#ifdef ARDUINO_ARCH_ESP8266
#include "ZeroMQConnection.h"
#include "../ZeroMQReader.h"
#include <HardwareSerial.h>
size_t ZeroMQDataMessage::ack(size_t len) {
// If the whole message is now acked...
if (_acked + len > _buf->size()) {
// Return the n... | 30.116751 | 130 | 0.568178 | darvik80 |
024bea0e9b3bff5f63c5cd9a4a76ca5587a89ab7 | 6,790 | cpp | C++ | task3_stack_queue_list.cpp | 5x/AlgorithmsAndDataStructures | e383c509c09ea0b9eccad761b9fa53227d05e6d5 | [
"MIT"
] | null | null | null | task3_stack_queue_list.cpp | 5x/AlgorithmsAndDataStructures | e383c509c09ea0b9eccad761b9fa53227d05e6d5 | [
"MIT"
] | null | null | null | task3_stack_queue_list.cpp | 5x/AlgorithmsAndDataStructures | e383c509c09ea0b9eccad761b9fa53227d05e6d5 | [
"MIT"
] | null | null | null | #include <iostream>
template<class T>
struct Node {
T value;
Node* next;
Node(T _value, Node* _next) : value(_value), next(_next) {
}
};
template<class T>
class Stack {
public:
Stack() {
last = NULL;
}
~Stack() {
clear();
}
void push(T const... | 20.268657 | 63 | 0.405007 | 5x |
024fb820d76ab863416a6f3ad7ef02dae89eea3a | 4,329 | cpp | C++ | VAlloc.cpp | nardinan/vulture | d4be5b028d9fab4c0d23797ceb95d22f5a33cb75 | [
"FTL"
] | null | null | null | VAlloc.cpp | nardinan/vulture | d4be5b028d9fab4c0d23797ceb95d22f5a33cb75 | [
"FTL"
] | null | null | null | VAlloc.cpp | nardinan/vulture | d4be5b028d9fab4c0d23797ceb95d22f5a33cb75 | [
"FTL"
] | null | null | null | /* PSYCHO GAMES(C) STUDIOS - 2007 www.psychogames.net
* Project: Vulture(c)
* Author : Andrea Nardinocchi
* eMail : andrea@nardinan.it
*
* 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, ... | 37.318966 | 91 | 0.585355 | nardinan |
02513cf2f95e0a8bacaeefde50dcfdc8e25c6acc | 18,224 | cpp | C++ | third_party/skia_m63/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/dxgi_format_map_autogen.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 4 | 2019-10-18T05:53:30.000Z | 2021-08-21T07:36:37.000Z | third_party/skia_m63/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/dxgi_format_map_autogen.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | third_party/skia_m63/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/dxgi_format_map_autogen.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 4 | 2018-10-14T00:17:11.000Z | 2020-07-01T04:01:25.000Z | // GENERATED FILE - DO NOT EDIT.
// Generated by gen_dxgi_format_table.py using data from dxgi_format_data.json.
//
// Copyright 2016 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// DXGI format info:
// Deter... | 35.249516 | 79 | 0.63131 | kniefliu |
025a22a31abed79d345bca7e660f644db80de58c | 571 | cpp | C++ | Stack.cpp | nyugoh/STL | 3cd09e0be525e8951d7e28bc935fc0aa1971777c | [
"Apache-2.0"
] | null | null | null | Stack.cpp | nyugoh/STL | 3cd09e0be525e8951d7e28bc935fc0aa1971777c | [
"Apache-2.0"
] | null | null | null | Stack.cpp | nyugoh/STL | 3cd09e0be525e8951d7e28bc935fc0aa1971777c | [
"Apache-2.0"
] | null | null | null | #include <stack>
#include <iostream>
using namespace std;
int main(){
stack<string> applications;
//Adding elements to the stack
applications.push("ASPOF-3435");
applications.push("AAKJDH2399");
applications.push("ADXKJQ2332");
applications.push("ASDWWE232");
applications.push("ASKLD923")... | 25.954545 | 77 | 0.635727 | nyugoh |
025c838c9c4d9c10d39fba29bcf3d162ddd6a3e5 | 9,957 | cpp | C++ | gtsam_unstable/dynamics/tests/testPoseRTV.cpp | kvmanohar22/gtsam | 8194b931fe07fb1bd346cdcf116a35f9c4e208ba | [
"BSD-3-Clause"
] | 1,402 | 2017-03-28T00:18:11.000Z | 2022-03-30T10:28:32.000Z | gtsam_unstable/dynamics/tests/testPoseRTV.cpp | kvmanohar22/gtsam | 8194b931fe07fb1bd346cdcf116a35f9c4e208ba | [
"BSD-3-Clause"
] | 851 | 2017-11-27T15:09:56.000Z | 2022-03-31T22:26:38.000Z | gtsam_unstable/dynamics/tests/testPoseRTV.cpp | kvmanohar22/gtsam | 8194b931fe07fb1bd346cdcf116a35f9c4e208ba | [
"BSD-3-Clause"
] | 565 | 2017-11-30T16:15:59.000Z | 2022-03-31T02:53:04.000Z | /**
* @file testPoseRTV
* @author Alex Cunningham
*/
#include <CppUnitLite/TestHarness.h>
#include <gtsam/base/Testable.h>
#include <gtsam/base/TestableAssertions.h>
#include <gtsam/base/numericalDerivative.h>
#include <gtsam_unstable/dynamics/PoseRTV.h>
using namespace gtsam;
GTSAM_CONCEPT_TESTABLE_INST(PoseRTV... | 40.47561 | 117 | 0.629306 | kvmanohar22 |
025db52336b789ba6b08c8a68415287dcddffdec | 2,699 | hpp | C++ | septem/include/communication.hpp | CalielOfSeptem/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | 1 | 2017-03-30T14:31:33.000Z | 2017-03-30T14:31:33.000Z | septem/include/communication.hpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null | septem/include/communication.hpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null |
// ==========================================================================
#ifndef SE7EN_COMMUNICATION_HPP_
#define SE7EN_COMMUNICATION_HPP_
#include <string>
#include <boost/shared_ptr.hpp>
namespace terminalpp {
class string;
}
class client;
class world_context;
//* =====================================... | 34.164557 | 77 | 0.399407 | CalielOfSeptem |
025ffbb15475ed2d03edf32bfe3b9fbf87e589d8 | 2,708 | hpp | C++ | src/nnfusion/core/kernels/hlsl/hlsl_kernel_emitter.hpp | LittleQili/nnfusion | 6c1a25db5be459a1053798f1c75bfbd26863ed08 | [
"MIT"
] | 1 | 2021-05-14T08:10:30.000Z | 2021-05-14T08:10:30.000Z | src/nnfusion/core/kernels/hlsl/hlsl_kernel_emitter.hpp | LittleQili/nnfusion | 6c1a25db5be459a1053798f1c75bfbd26863ed08 | [
"MIT"
] | null | null | null | src/nnfusion/core/kernels/hlsl/hlsl_kernel_emitter.hpp | LittleQili/nnfusion | 6c1a25db5be459a1053798f1c75bfbd26863ed08 | [
"MIT"
] | 1 | 2021-08-11T09:09:53.000Z | 2021-08-11T09:09:53.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "nnfusion/common/common.hpp"
#include "nnfusion/common/languageunit.hpp"
#include "nnfusion/core/kernels/antares_ke_imp.hpp"
#include "nnfusion/core/kernels/kernel_emitter.hpp"
#include "nnfusion/core/operators/generic_op/... | 34.717949 | 75 | 0.441654 | LittleQili |
02627f9072997ed6493369ed68e83e6b5db55726 | 25 | hh | C++ | include/trick/compat/trick_utils/units/include/UCFn.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 647 | 2015-05-07T16:08:16.000Z | 2022-03-30T02:33:21.000Z | include/trick/compat/trick_utils/units/include/UCFn.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 995 | 2015-04-30T19:44:31.000Z | 2022-03-31T20:14:44.000Z | include/trick/compat/trick_utils/units/include/UCFn.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 251 | 2015-05-15T09:24:34.000Z | 2022-03-22T20:39:05.000Z | #include "trick/UCFn.hh"
| 12.5 | 24 | 0.72 | gilbertguoze |
026740d230641181e886680a0a7b6c846e76d76e | 1,286 | cpp | C++ | first_round/easy/test/test_add_two_nums_smartptr.cpp | forwardkth/leetcode | af1ecf96ca0630b2124f06b0527088f91ee2dafe | [
"MIT"
] | 1 | 2019-01-29T16:23:33.000Z | 2019-01-29T16:23:33.000Z | first_round/easy/test/test_add_two_nums_smartptr.cpp | forwardkth/leetcode | af1ecf96ca0630b2124f06b0527088f91ee2dafe | [
"MIT"
] | null | null | null | first_round/easy/test/test_add_two_nums_smartptr.cpp | forwardkth/leetcode | af1ecf96ca0630b2124f06b0527088f91ee2dafe | [
"MIT"
] | null | null | null | #include "../include/add_two_nums_smartptr.h"
#include <gtest/gtest.h>
//Google Test cases
TEST(AddTwoNums_sharedPtr_Test, testPos)
{
ListNodeShared* ls1 = new ListNodeShared(2);
ls1->next = make_shared<ListNodeShared>(4);
ls1->next->next = make_shared<ListNodeShared>(3);
ListNodeShared* ls2 = new ListNodeSh... | 31.365854 | 71 | 0.730949 | forwardkth |
026825fff62a84aa690ffc8b2b542b878f8483de | 3,545 | cpp | C++ | qink/CQInkscapeColorBar.cpp | colinw7/CSVG | 049419b4114fc6ff7f5b25163398f02c21a64bf6 | [
"MIT"
] | 5 | 2015-04-11T14:56:03.000Z | 2021-12-14T10:12:36.000Z | qink/CQInkscapeColorBar.cpp | colinw7/CSVG | 049419b4114fc6ff7f5b25163398f02c21a64bf6 | [
"MIT"
] | 3 | 2015-04-20T19:23:15.000Z | 2021-09-03T20:03:30.000Z | qink/CQInkscapeColorBar.cpp | colinw7/CSVG | 049419b4114fc6ff7f5b25163398f02c21a64bf6 | [
"MIT"
] | 3 | 2015-05-21T08:33:12.000Z | 2020-05-13T15:45:11.000Z | #include <CQInkscapeColorBar.h>
#include <CQInkscapeWindow.h>
#include <CSVGObject.h>
#include <CQUtil.h>
#include <QPainter>
#include <QMenu>
#include <QContextMenuEvent>
namespace CQInkscape {
ColorBar::
ColorBar(Window *window) :
QFrame(window), window_(window)
{
setObjectName("colorBar");
setContextMenuPo... | 18.367876 | 74 | 0.643159 | colinw7 |
026d5be2cb1f5ab3247a0e0f36b008c1a18e59a0 | 4,124 | cpp | C++ | darwin/unix_adapter.cpp | mikecovlee/darwin | 000bcfd31994be860a422fe2fb11dbced408da72 | [
"Apache-2.0"
] | 20 | 2016-12-12T12:07:44.000Z | 2021-07-29T01:23:35.000Z | darwin/unix_adapter.cpp | mikecovlee/darwin | 000bcfd31994be860a422fe2fb11dbced408da72 | [
"Apache-2.0"
] | null | null | null | darwin/unix_adapter.cpp | mikecovlee/darwin | 000bcfd31994be860a422fe2fb11dbced408da72 | [
"Apache-2.0"
] | 7 | 2016-12-17T12:52:19.000Z | 2020-04-04T03:35:47.000Z | /*
* Covariant Darwin Universal Character Graphics Library
*
* 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... | 21.591623 | 93 | 0.598206 | mikecovlee |
027276e2cd5dceec1f48b9c4a0df221cc6f05831 | 881 | cpp | C++ | dependency_graph_generator.cpp | YJDoc2/Makefile-Generator | 94780cee107ecc7286e80777f1a3beea615b00e5 | [
"MIT"
] | null | null | null | dependency_graph_generator.cpp | YJDoc2/Makefile-Generator | 94780cee107ecc7286e80777f1a3beea615b00e5 | [
"MIT"
] | null | null | null | dependency_graph_generator.cpp | YJDoc2/Makefile-Generator | 94780cee107ecc7286e80777f1a3beea615b00e5 | [
"MIT"
] | null | null | null | #include <set>
#include <list>
#include <fstream>
#include <iostream>
#include "./dependency_graph_generator.hpp"
using dgg = dependency_graph_generator;
dependency_graph dgg::get_dependency_graph(const std::string& f){
enqued.push_back(f);
while(!enqued.empty()){
std::string f = enqued.front();
... | 21.487805 | 65 | 0.61067 | YJDoc2 |
02727ceffbb8735c91c04cf170c1dd1741da86f4 | 528 | cc | C++ | ports/www/chromium-legacy/newport/files/patch-base_process_launch.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2015-02-06T17:06:37.000Z | 2022-03-08T19:53:28.000Z | ports/www/chromium-legacy/newport/files/patch-base_process_launch.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 236 | 2015-06-29T19:51:17.000Z | 2021-12-16T22:46:38.000Z | ports/www/chromium-legacy/newport/files/patch-base_process_launch.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 52 | 2015-02-06T17:05:36.000Z | 2021-10-21T12:13:06.000Z | --- base/process/launch.cc.orig 2020-11-13 06:36:34 UTC
+++ base/process/launch.cc
@@ -15,7 +15,7 @@ LaunchOptions::~LaunchOptions() = default;
LaunchOptions LaunchOptionsForTest() {
LaunchOptions options;
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_... | 44 | 78 | 0.731061 | liweitianux |
02765f6ce6846b83230b64cf3eac7489f99e2786 | 4,972 | cpp | C++ | Samples/shell/src/Shell.cpp | inniyah/RmlUi | 35b1132d7d018cfca4f9f1836f0d059a8e795ecf | [
"MIT"
] | null | null | null | Samples/shell/src/Shell.cpp | inniyah/RmlUi | 35b1132d7d018cfca4f9f1836f0d059a8e795ecf | [
"MIT"
] | null | null | null | Samples/shell/src/Shell.cpp | inniyah/RmlUi | 35b1132d7d018cfca4f9f1836f0d059a8e795ecf | [
"MIT"
] | null | null | null | /*
* This source file is part of RmlUi, the HTML/CSS Interface Middleware
*
* For the latest information, see http://github.com/mikke89/RmlUi
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
* Copyright (c) 2019 The RmlUi Team, and contributors
*
* Permission is hereby granted, free of charge, to... | 34.054795 | 145 | 0.716412 | inniyah |
0276aff95eb79ef76baddcf8dac2319d4bf66be9 | 1,986 | cpp | C++ | parts/Drive.cpp | fdekruijff/Group-Project-TICT-V1GP-15 | ec1de58bf3e5f22066f563e0014760e54d779159 | [
"MIT"
] | null | null | null | parts/Drive.cpp | fdekruijff/Group-Project-TICT-V1GP-15 | ec1de58bf3e5f22066f563e0014760e54d779159 | [
"MIT"
] | null | null | null | parts/Drive.cpp | fdekruijff/Group-Project-TICT-V1GP-15 | ec1de58bf3e5f22066f563e0014760e54d779159 | [
"MIT"
] | null | null | null | #include <cmath>
#include <iostream>
#include <unistd.h>
#include "./piprograms/BrickPi3.cpp"
#include <thread>
#include <signal.h>
#include <vector>
using namespace std;
BrickPi3 BP;
uint8_t s_contrast = PORT_2; // Light sensor
uint8_t m_head = PORT_A; // Head motor
uint8_t m_left = PORT_B;... | 24.219512 | 117 | 0.666163 | fdekruijff |
02773adfef90ebe52be74848f2315ef64a8c0346 | 1,822 | cpp | C++ | algorithms/recursion/twisted_tower_of_hanoi.cpp | adisakshya/dsa | 5b40eb339b19cdec95dcfc645516d725f0cb6c74 | [
"MIT"
] | null | null | null | algorithms/recursion/twisted_tower_of_hanoi.cpp | adisakshya/dsa | 5b40eb339b19cdec95dcfc645516d725f0cb6c74 | [
"MIT"
] | null | null | null | algorithms/recursion/twisted_tower_of_hanoi.cpp | adisakshya/dsa | 5b40eb339b19cdec95dcfc645516d725f0cb6c74 | [
"MIT"
] | null | null | null | /**
* Twisted Tower of Hanoi (Recursive)
*
* Twisted Tower of Hanoi is a mathematical puzzle where we have three rods and n disks.
* The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules:
* 1) Only one disk can be moved at a time.
* 2) Each mov... | 35.72549 | 117 | 0.608672 | adisakshya |
02776f948c5fa197561eef3d5f575f85a41e012e | 4,281 | cpp | C++ | ModuleProgram.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | ModuleProgram.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | ModuleProgram.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | #include "ModuleProgram.h"
#include "Application.h"
#include "ModuleImgui.h"
#include "Globals.h"
#include "MathGeoLib/include/Math/float4x4.h"
#include "SDL.h"
ModuleProgram::ModuleProgram()
{
}
ModuleProgram::~ModuleProgram()
{
}
bool ModuleProgram::Init()
{
App->imgui->AddLog("\nSHADERS.\n\n");
//init verte... | 24.186441 | 92 | 0.759402 | raulgonzalezupc |
027819e961512efc5a5ec99005c2753ebcd04467 | 1,669 | cpp | C++ | velox/connectors/hive/tests/FileHandleTest.cpp | winningsix/velox-1 | 45c25f5ad58491ede2491b9406256535ce438b2d | [
"Apache-2.0"
] | null | null | null | velox/connectors/hive/tests/FileHandleTest.cpp | winningsix/velox-1 | 45c25f5ad58491ede2491b9406256535ce438b2d | [
"Apache-2.0"
] | null | null | null | velox/connectors/hive/tests/FileHandleTest.cpp | winningsix/velox-1 | 45c25f5ad58491ede2491b9406256535ce438b2d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 31.490566 | 75 | 0.714799 | winningsix |
02785cc1636955ff187ba94b3c6a64069cb80935 | 11,312 | cxx | C++ | main/autodoc/source/display/idl/hfi_linklist.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/autodoc/source/display/idl/hfi_linklist.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/autodoc/source/display/idl/hfi_linklist.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 30.327078 | 107 | 0.487447 | Grosskopf |
027aef0ad172b889318d28bb09dbad2e6c8b0ee6 | 4,823 | cc | C++ | remoting/host/win/session_event_executor.cc | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | 2 | 2020-06-10T07:15:26.000Z | 2020-12-13T19:44:12.000Z | remoting/host/win/session_event_executor.cc | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | null | null | null | remoting/host/win/session_event_executor.cc | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/win/session_event_executor.h"
#include <string>
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/lo... | 30.719745 | 77 | 0.716774 | quisquous |
027bb391c109eb9866ead92e51ab438cc9d42def | 3,066 | cc | C++ | ecs/src/model/DescribeDiskMonitorDataRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | ecs/src/model/DescribeDiskMonitorDataRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | ecs/src/model/DescribeDiskMonitorDataRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 1 | 2020-11-27T09:13:12.000Z | 2020-11-27T09:13:12.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 25.983051 | 102 | 0.771363 | iamzken |
0280219b9443179587297e57704c87cc4b7aa7f2 | 1,644 | cpp | C++ | src/algorithm/Algorithm.cpp | oldas1/Riner | 492804079eb223e6d4ffd5f5f44283162eaf421b | [
"MIT"
] | null | null | null | src/algorithm/Algorithm.cpp | oldas1/Riner | 492804079eb223e6d4ffd5f5f44283162eaf421b | [
"MIT"
] | null | null | null | src/algorithm/Algorithm.cpp | oldas1/Riner | 492804079eb223e6d4ffd5f5f44283162eaf421b | [
"MIT"
] | null | null | null | //
//
#include "Algorithm.h"
#include "grin/AlgoCuckatoo31Cl.h"
#include "dummy/AlgoDummy.h"
#include "ethash/AlgoEthashCL.h"
#include <src/compute/DeviceId.h>
#include <src/pool/WorkEthash.h>
#include <src/pool/WorkCuckoo.h>
namespace miner {
/**
* Register all Algorithm implementations here.
* This i... | 34.978723 | 139 | 0.667275 | oldas1 |
0283b0332e6a4eb780ca44439332565d75e5dd1d | 601 | cpp | C++ | two-sum.cpp | casper001207/leetcode | 7b5c9b77078385fe67cb4ad5d0d52f9250cdfa30 | [
"MIT"
] | null | null | null | two-sum.cpp | casper001207/leetcode | 7b5c9b77078385fe67cb4ad5d0d52f9250cdfa30 | [
"MIT"
] | null | null | null | two-sum.cpp | casper001207/leetcode | 7b5c9b77078385fe67cb4ad5d0d52f9250cdfa30 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
vector<int> v;
for ( vector<int>::iterator it = nums.begin(); it != nums.end(); ++it ) {
for ( vector<int>::iterator it2 = nums.begin() + distance(nums.begin(), it) + 1; it2 != nums.end(); ++it2 ) {
... | 37.5625 | 121 | 0.430948 | casper001207 |
02886a263f1ca7908acf62c14d5f2532f559567e | 3,278 | hpp | C++ | src/libraries/core/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/core/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/core/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
under... | 26.015873 | 79 | 0.493289 | MrAwesomeRocks |
02886c0d5b3d2ef911ea028d4e50894471323041 | 6,248 | cpp | C++ | platform-abstractions/tizen/resource-loader/resource-thread-image.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | platform-abstractions/tizen/resource-loader/resource-thread-image.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | platform-abstractions/tizen/resource-loader/resource-thread-image.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 30.778325 | 153 | 0.711908 | pwisbey |
028a2c507cef9b32cac89ce2f3e7c543e476d5c4 | 3,738 | cxx | C++ | Testing/Code/BasicFilters/itkMinimumMaximumImageCalculatorTest.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | 1 | 2018-04-15T13:32:43.000Z | 2018-04-15T13:32:43.000Z | Testing/Code/BasicFilters/itkMinimumMaximumImageCalculatorTest.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | null | null | null | Testing/Code/BasicFilters/itkMinimumMaximumImageCalculatorTest.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkMinimumMaximumImageCalculatorTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
Se... | 31.677966 | 92 | 0.587747 | kiranhs |
028c018ae593b3cb084a8b013613887b039fd020 | 15,309 | cpp | C++ | moon-src/luabind/lua_json.cpp | Mu-L/moon | 53a32422a39788850ec16dd84ca4276a66f5f1da | [
"MIT"
] | null | null | null | moon-src/luabind/lua_json.cpp | Mu-L/moon | 53a32422a39788850ec16dd84ca4276a66f5f1da | [
"MIT"
] | null | null | null | moon-src/luabind/lua_json.cpp | Mu-L/moon | 53a32422a39788850ec16dd84ca4276a66f5f1da | [
"MIT"
] | null | null | null | #include "lua.hpp"
#include <vector>
#include <charconv>
#include <string_view>
// __SSE2__ and __SSE4_2__ are recognized by gcc, clang, and the Intel compiler.
// We use -march=native with gmake to enable -msse2 and -msse4.2, if supported.
#if defined(__SSE4_2__)
# define RAPIDJSON_SSE42
#elif defined(__SSE2__)
# d... | 25.515 | 104 | 0.525639 | Mu-L |
028e5ec97bbaec3a476e32481d2a4f6b93c99e52 | 5,701 | cpp | C++ | src/Settings/RunawaySourceTerms.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | src/Settings/RunawaySourceTerms.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | src/Settings/RunawaySourceTerms.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | /**
* Initialization of runaway source terms.
*/
#include "DREAM/Equations/Fluid/TritiumRateTerm.hpp"
#include "DREAM/Equations/Fluid/HottailRateTermHighZ.hpp"
#include "DREAM/Equations/Fluid/ExternalAvalancheTerm.hpp"
#include "DREAM/Equations/RunawaySourceTerm.hpp"
#include "DREAM/IO.hpp"
#include "DREAM/Settings/... | 50.008772 | 208 | 0.6776 | chalmersplasmatheory |
028e7cbdf1e43feb8ada7ee6eef1eac47839e56c | 13,358 | cpp | C++ | source/Bit/System/Bencode/BencodeValue.cpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | source/Bit/System/Bencode/BencodeValue.cpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | source/Bit/System/Bencode/BencodeValue.cpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | // Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com
//
// This software is provided 'as-is', without any express or
// implied warranty. In no event will the authors be held
// liable for any damages arising from the use of this software.
//
// Permission is granted to anyone to use this software for any... | 21.579968 | 118 | 0.59485 | jimmiebergmann |
028fb24e8a5f1bcc6c8e9582ef71e19ff0523bfe | 3,223 | cpp | C++ | Linux/src/myTrackpadHelper.cpp | teamclouday/AndroidTrackpad | c4a8b954592dac3e1020b0e5df55c46260437c75 | [
"MIT"
] | 1 | 2022-03-03T19:46:03.000Z | 2022-03-03T19:46:03.000Z | Linux/src/myTrackpadHelper.cpp | teamclouday/AndroidTrackpad | c4a8b954592dac3e1020b0e5df55c46260437c75 | [
"MIT"
] | null | null | null | Linux/src/myTrackpadHelper.cpp | teamclouday/AndroidTrackpad | c4a8b954592dac3e1020b0e5df55c46260437c75 | [
"MIT"
] | null | null | null | #include "myTrackpadHelper.hpp"
#include "myUI.hpp"
#include <X11/Xutil.h>
#include <X11/extensions/XTest.h>
#include <thread>
#include <iostream>
TrackpadManager::TrackpadManager() : buffer()
{
root_display = XOpenDisplay(NULL);
if(!root_display)
{
UIManager::showLinuxMessageError("Failed to get X11 root displ... | 22.858156 | 104 | 0.730065 | teamclouday |
028fd3cc4dd03dc2e8913fb16a2ee72aa527f652 | 2,720 | cxx | C++ | src/Math/Interpolate.cxx | ICRAR/NBodylib | 10de78dde32d724b7a5ce323ce8ab093b15c61a8 | [
"MIT"
] | null | null | null | src/Math/Interpolate.cxx | ICRAR/NBodylib | 10de78dde32d724b7a5ce323ce8ab093b15c61a8 | [
"MIT"
] | 5 | 2020-05-21T16:49:12.000Z | 2021-07-27T06:31:03.000Z | src/Math/Interpolate.cxx | ICRAR/NBodylib | 10de78dde32d724b7a5ce323ce8ab093b15c61a8 | [
"MIT"
] | 3 | 2019-04-23T02:58:07.000Z | 2020-10-23T00:21:57.000Z | /*! \file Interpolate.cxx
* \brief interpolation subroutines
*/
#include <Interpolate.h>
using namespace std;
namespace Math
{
//polynomial interpolation
/*void PolyInt(Double_t *xa, Double_t *ya, int n, Double_t x, Double_t &y, Double_t &dy)
{
const int nmax=10;
int i,m,ns;
D... | 23.652174 | 92 | 0.359191 | ICRAR |
029026b90ad7da546a8f342a6ffe4ea383f85c98 | 7,600 | hpp | C++ | Lab11/barista.hpp | NLaDuke/CSIII-Labs | 8f2658d6fcf6cc838bbef17bc5110a10c742bf0e | [
"MIT"
] | null | null | null | Lab11/barista.hpp | NLaDuke/CSIII-Labs | 8f2658d6fcf6cc838bbef17bc5110a10c742bf0e | [
"MIT"
] | null | null | null | Lab11/barista.hpp | NLaDuke/CSIII-Labs | 8f2658d6fcf6cc838bbef17bc5110a10c742bf0e | [
"MIT"
] | null | null | null | #ifndef BARISTA_HPP
#define BARISTA_HPP
#include "drink.hpp"
#include <string>
#include <iostream>
#include <unordered_set>
#include <deque>
#include <ctime>
#include <algorithm>
using std::cin; using std::cout;
using std::string; using std::endl;
//----------------------------
// File: barista.hpp
// By: Nolan LaD... | 28.04428 | 118 | 0.615263 | NLaDuke |
0296044c22ef9d508056b8ffc59078c21a1dd264 | 5,352 | cc | C++ | store/weakstore/shardclient.cc | yc1111/tapir | 2ce0f57725611076cd76ad7374b44f887d8618d8 | [
"MIT"
] | 437 | 2016-01-13T23:06:06.000Z | 2022-03-07T07:41:55.000Z | store/weakstore/shardclient.cc | yc1111/tapir | 2ce0f57725611076cd76ad7374b44f887d8618d8 | [
"MIT"
] | 13 | 2016-01-14T06:12:21.000Z | 2021-09-15T07:45:17.000Z | store/weakstore/shardclient.cc | yc1111/tapir | 2ce0f57725611076cd76ad7374b44f887d8618d8 | [
"MIT"
] | 58 | 2016-01-14T05:54:13.000Z | 2022-03-08T02:56:33.000Z | // -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*-
/***********************************************************************
*
* store/weakstore/shardclient.cc
* Client for one weak consistency store shard.
*
* Copyright 2015 Irene Zhang <iyzhang@cs.washington.edu>
* Naveen Kr. Sharma <n... | 29.086957 | 86 | 0.56988 | yc1111 |
02975f410346e6c65299d093623b36bcdb28b09c | 1,531 | cpp | C++ | BOJ_solve/5804.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | BOJ_solve/5804.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | BOJ_solve/5804.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 2e18;
const long long ... | 23.553846 | 55 | 0.544089 | python-programmer1512 |
029ab28c0d8d12a4cebdeb14483fe8731bda23ad | 17,991 | cxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimSpaceBoundary.cxx | 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_Dll_lib/framework/SimSpaceBoundary.cxx | 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/SimSpaceBoundary.cxx | 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... | 29.835821 | 132 | 0.617642 | EnEff-BIM |
029b4ad5e413faf728cfca0f64f0bf38fa38e055 | 1,003 | cpp | C++ | Codeforces/CF1618F.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | null | null | null | Codeforces/CF1618F.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | 1 | 2021-11-18T15:10:29.000Z | 2021-11-20T07:13:31.000Z | Codeforces/CF1618F.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | /*
* @author Nickel_Angel (1239004072@qq.com)
* @copyright Copyright (c) 2021
*/
#include <algorithm>
#include <iostream>
#include <cstdio>
#include <cstring>
#include <set>
#include <string>
using std::set;
using std::string;
long long x, y;
string tar, ori;
set<string> cur;
void dfs(string s)
{
if (cur.count(... | 16.177419 | 42 | 0.461615 | Nickel-Angel |
029f7862c89879897231d107e993919270bfa276 | 1,241 | hpp | C++ | src/Event/KeyboardEvent.hpp | billy4479/BillyEngine | df7d519f740d5862c4743872dbf89b3654eeb423 | [
"MIT"
] | 1 | 2021-09-05T20:50:59.000Z | 2021-09-05T20:50:59.000Z | src/Event/KeyboardEvent.hpp | billy4479/sdl-tests | df7d519f740d5862c4743872dbf89b3654eeb423 | [
"MIT"
] | null | null | null | src/Event/KeyboardEvent.hpp | billy4479/sdl-tests | df7d519f740d5862c4743872dbf89b3654eeb423 | [
"MIT"
] | null | null | null | #pragma once
#include "Event.hpp"
#include "KeyCodes.hpp"
namespace BillyEngine {
class KeyboardEvent : public Event {
public:
KeyboardEvent(Key::KeyCode keyCode, Key::Mods::Mods mods)
: m_Key(keyCode), m_Mods(mods) {}
EVENT_CLASS_CATEGORY(EventCategory::Input | EventCategory::Keyboard)
Key::... | 24.82 | 76 | 0.65834 | billy4479 |
02a216c58d84cc56bb99ecf6f493fb6d0a725f2a | 1,780 | cpp | C++ | Volume105/10582 - ASCII Labyrinth/10582.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | 1 | 2017-01-25T18:07:49.000Z | 2017-01-25T18:07:49.000Z | Volume105/10582 - ASCII Labyrinth/10582.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | Volume105/10582 - ASCII Labyrinth/10582.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define N 64
#define M 3
#define DIR 4
using namespace std;
int t;
int n,m;
char tab[N][N][M][M];
int mat[N][N];
int vis[N][N];
int x[DIR]={0,0,-1,1};
int y[DIR]={-1,1,0,0};
int sol;
void compute(int i,int j,int dir)
{
if(i==n-1 && j==m-1)
{
if(mat[i][j]!=0)
sol++;
return;
}
if(mat... | 15.344828 | 81 | 0.451124 | rstancioiu |
02a53a62b1405396c37f4ef32977b172e8bb6076 | 1,573 | cpp | C++ | adopt_lock/adopt_lock.cpp | giorgiozoppi/cppconcurrency | 7c19f780f5649cd048467a013e42948e5ba2efd5 | [
"MIT"
] | null | null | null | adopt_lock/adopt_lock.cpp | giorgiozoppi/cppconcurrency | 7c19f780f5649cd048467a013e42948e5ba2efd5 | [
"MIT"
] | null | null | null | adopt_lock/adopt_lock.cpp | giorgiozoppi/cppconcurrency | 7c19f780f5649cd048467a013e42948e5ba2efd5 | [
"MIT"
] | null | null | null | #include <mutex>
#include <thread>
#include <iostream>
class BankAccount {
public:
explicit BankAccount(int balance): balance(balance) {}
int getBalance() { return balance; }
friend void transfer(BankAccount* fromAcc, BankAccount* toAcc, int amount);
private:
int balance;
std::mutex m;
};
void ... | 30.843137 | 79 | 0.656707 | giorgiozoppi |
02a7a66dfb63a9527f9cb4ae8e89f1d70cb2a936 | 4,331 | cpp | C++ | lib/Parser/FunctionBuilder.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 80 | 2015-02-19T21:38:57.000Z | 2016-05-25T06:53:12.000Z | lib/Parser/FunctionBuilder.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 8 | 2015-02-20T09:47:20.000Z | 2015-11-13T07:49:17.000Z | lib/Parser/FunctionBuilder.cpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 6 | 2015-02-20T11:26:19.000Z | 2016-04-13T14:30:39.000Z | #include <locic/AST.hpp>
#include <locic/Debug/SourcePosition.hpp>
#include <locic/Parser/FunctionBuilder.hpp>
#include <locic/Parser/TokenReader.hpp>
namespace locic {
namespace Parser {
FunctionBuilder::FunctionBuilder(const TokenReader& reader)
: reader_(reader) { }
FunctionBuilder::~FunctionBuilder(... | 45.589474 | 94 | 0.641422 | scross99 |
02a810f45d6bc4b465de8be7ebd0c44ade2b405c | 5,526 | cpp | C++ | murdoch_rta/src/murdoch_rta/resource/IntegerRange.cpp | caueguidotti/MRTA | a933fde4046444c9aa5750cf7b42f19a88e5bb3d | [
"BSD-3-Clause"
] | 1 | 2018-07-17T00:51:11.000Z | 2018-07-17T00:51:11.000Z | murdoch_rta/src/murdoch_rta/resource/IntegerRange.cpp | caueguidotti/MRTA | a933fde4046444c9aa5750cf7b42f19a88e5bb3d | [
"BSD-3-Clause"
] | 1 | 2018-08-01T03:01:46.000Z | 2020-10-24T22:33:36.000Z | murdoch_rta/src/murdoch_rta/resource/IntegerRange.cpp | caueguidotti/MRTA | a933fde4046444c9aa5750cf7b42f19a88e5bb3d | [
"BSD-3-Clause"
] | null | null | null | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2017, Caue Franco Guidotti
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of sou... | 36.117647 | 115 | 0.74991 | caueguidotti |
02a8b5e456ab04346a8605f66c1ebbd3ae9c3fef | 4,411 | cpp | C++ | ContourTiler/CloseContourRanker.cpp | GuMiner/agow | b8665d5879f43a6bcb6e878827b3b25af9cc1b1d | [
"MIT"
] | null | null | null | ContourTiler/CloseContourRanker.cpp | GuMiner/agow | b8665d5879f43a6bcb6e878827b3b25af9cc1b1d | [
"MIT"
] | null | null | null | ContourTiler/CloseContourRanker.cpp | GuMiner/agow | b8665d5879f43a6bcb6e878827b3b25af9cc1b1d | [
"MIT"
] | null | null | null | #include "CloseContourRanker.h"
CloseContourRanker::CloseContourRanker()
: closestLine(CloseContourLine()), secondClosestLine(CloseContourLine()), thirdClosestLine(CloseContourLine())
{
}
bool CloseContourRanker::ResortIfIdentical(CloseContourLine contourLine)
{
if (closestLine.elevationId == contourLine.el... | 30.631944 | 122 | 0.642938 | GuMiner |
02aa9fbddd18b0f443fd9499e88de2f5ab907888 | 198 | hh | C++ | Include/Zion/Main.hh | zionmultiplayer/Client | 291c027c4011cb1ab207c9b394fb5f4b1da8652c | [
"MIT"
] | 4 | 2022-02-08T07:04:49.000Z | 2022-02-09T23:43:49.000Z | Include/Zion/Main.hh | zionmultiplayer/Client | 291c027c4011cb1ab207c9b394fb5f4b1da8652c | [
"MIT"
] | null | null | null | Include/Zion/Main.hh | zionmultiplayer/Client | 291c027c4011cb1ab207c9b394fb5f4b1da8652c | [
"MIT"
] | null | null | null | #pragma once
#include "Game/CPad.h"
#include "Game/CPlayerPed.h"
namespace Zion
{
class Main
{
public:
static CPlayerPed *player;
static CPad *pad;
};
}; | 15.230769 | 38 | 0.560606 | zionmultiplayer |
02abbb2801446ddd72cdac1c1ee8d8876f2d97eb | 1,018 | hpp | C++ | src/metal-driver/pseudo_operators.hpp | metalfs/metal_fs | f244d4125622849f36bd7846881a5f3a7efca188 | [
"MIT"
] | 12 | 2020-04-21T05:21:32.000Z | 2022-02-19T11:27:18.000Z | src/metal-driver/pseudo_operators.hpp | metalfs/metal_fs | f244d4125622849f36bd7846881a5f3a7efca188 | [
"MIT"
] | 10 | 2019-02-10T17:10:16.000Z | 2020-02-01T20:05:42.000Z | src/metal-driver/pseudo_operators.hpp | metalfs/metal_fs | f244d4125622849f36bd7846881a5f3a7efca188 | [
"MIT"
] | 4 | 2020-07-15T04:42:20.000Z | 2022-02-19T11:27:19.000Z | #pragma once
#include <stdint.h>
#include <cxxopts.hpp>
namespace metal {
class OperatorAgent;
class DatagenOperator {
public:
static std::string id() { return "datagen"; }
static bool isDatagenAgent(const OperatorAgent &agent);
static void validate(OperatorAgent &agent);
static bool isProfilingEnabled(Op... | 24.238095 | 65 | 0.764244 | metalfs |
02abf685440a7045f4f1884222d8248747a38684 | 1,424 | cpp | C++ | util/Bip39.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | 1 | 2020-03-19T10:02:16.000Z | 2020-03-19T10:02:16.000Z | util/Bip39.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | null | null | null | util/Bip39.cpp | velezladonna/mwc-qt-wallet | bd241b91d28350e17e52a10208e663fcb992d7cc | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The MWC Developers
//
// 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... | 27.384615 | 123 | 0.643258 | velezladonna |
02ad6389b3ff30b8ad3461909f013803a088a115 | 1,575 | hpp | C++ | include/humanity/io/file.hpp | crimsonwoods/humanity | 5c2cc601eb8823ca7c06a0bef5cde0122b4d067a | [
"MIT"
] | 1 | 2019-04-16T16:06:05.000Z | 2019-04-16T16:06:05.000Z | include/humanity/io/file.hpp | crimsonwoods/humanity | 5c2cc601eb8823ca7c06a0bef5cde0122b4d067a | [
"MIT"
] | null | null | null | include/humanity/io/file.hpp | crimsonwoods/humanity | 5c2cc601eb8823ca7c06a0bef5cde0122b4d067a | [
"MIT"
] | null | null | null | /**
* ファイルを扱うためのクラス定義ファイル
* @file file.hpp
*/
#ifndef HUMANITY_IO_FILE_H
#define HUMANITY_IO_FILE_H
#include <humanity/io/io.hpp>
HUMANITY_IO_NS_BEGIN
class path;
/**
* ファイルを扱うためのクラス
*/
class file {
public:
/**
* ファイルのモードを表す定数値群
*/
enum {
FMODE_USER_READ = 0400,
FMODE_USER_WRITE = 0200,
FMODE_U... | 27.155172 | 79 | 0.743492 | crimsonwoods |
02aea3a9f2104d5b36ad58263d19937bd6aea589 | 3,234 | cc | C++ | vos/MotifApp/YesNoDialog.cc | NASA-AMMOS/VICAR | 4504c1f558855d9c6eaef89f4460217aa4909f8e | [
"BSD-3-Clause"
] | 16 | 2020-10-21T05:56:26.000Z | 2022-03-31T10:02:01.000Z | vos/MotifApp/YesNoDialog.cc | NASA-AMMOS/VICAR | 4504c1f558855d9c6eaef89f4460217aa4909f8e | [
"BSD-3-Clause"
] | null | null | null | vos/MotifApp/YesNoDialog.cc | NASA-AMMOS/VICAR | 4504c1f558855d9c6eaef89f4460217aa4909f8e | [
"BSD-3-Clause"
] | 2 | 2021-03-09T01:51:08.000Z | 2021-03-23T00:23:24.000Z | ///////////////////////////////////////////////////////////////
// YesNoDialog.h: Motif Question dialog that also contains No
// button. Note that this dialog is not cached, it is created
// at every request and destroys itself when user presses any of
// the buttons.
////////////////////////////////////////////////... | 22.774648 | 74 | 0.648423 | NASA-AMMOS |
02aeb57f89aacc9e872341e5208681726dcb708b | 1,737 | hpp | C++ | src/include/duckdb/common/re2_regex.hpp | lokax/duckdb | c2581dfebccaebae9468c924c2c722fcf0306944 | [
"MIT"
] | 1 | 2022-01-06T17:44:07.000Z | 2022-01-06T17:44:07.000Z | src/include/duckdb/common/re2_regex.hpp | lokax/duckdb | c2581dfebccaebae9468c924c2c722fcf0306944 | [
"MIT"
] | 32 | 2021-09-24T23:50:09.000Z | 2022-03-29T09:37:26.000Z | src/include/duckdb/common/re2_regex.hpp | lokax/duckdb | c2581dfebccaebae9468c924c2c722fcf0306944 | [
"MIT"
] | null | null | null | // RE2 compatibility layer with std::regex
#pragma once
#include "duckdb/common/winapi.hpp"
#include <vector>
#include <string>
#include <stdexcept>
namespace duckdb_re2 {
class RE2;
enum class RegexOptions : uint8_t { NONE, CASE_INSENSITIVE };
class Regex {
public:
DUCKDB_API Regex(const std::string &pattern, Re... | 23.472973 | 113 | 0.723661 | lokax |
02b389941a8f99833ac436c39a06ca1cd9194c53 | 72 | cpp | C++ | MailClient/sources/gui/Tasks.cpp | SRIIIXI/XDesk | 4324763a7d981bb3c335d153ebf27a6ddf1cfc13 | [
"BSD-2-Clause"
] | null | null | null | MailClient/sources/gui/Tasks.cpp | SRIIIXI/XDesk | 4324763a7d981bb3c335d153ebf27a6ddf1cfc13 | [
"BSD-2-Clause"
] | null | null | null | MailClient/sources/gui/Tasks.cpp | SRIIIXI/XDesk | 4324763a7d981bb3c335d153ebf27a6ddf1cfc13 | [
"BSD-2-Clause"
] | null | null | null | #include "Tasks.h"
Tasks::Tasks(QWidget *parent) : QWidget(parent)
{
}
| 12 | 47 | 0.680556 | SRIIIXI |
02b6fd676b8055976f0aff9d4ac0daf6de01459b | 16,979 | cpp | C++ | DocCluster/src/DCController.cpp | McGill-DMaS/FIHC | 6928f6fdf62f0e0de004623a8f956e4ca3b3afa1 | [
"Apache-2.0"
] | null | null | null | DocCluster/src/DCController.cpp | McGill-DMaS/FIHC | 6928f6fdf62f0e0de004623a8f956e4ca3b3afa1 | [
"Apache-2.0"
] | null | null | null | DocCluster/src/DCController.cpp | McGill-DMaS/FIHC | 6928f6fdf62f0e0de004623a8f956e4ca3b3afa1 | [
"Apache-2.0"
] | null | null | null | // DCController.cpp: implementation of the CDCController class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#if !defined(DCCONTROLLER_H)
#include "DCController.h"
#endif
#if !defined(DCKMEANSMGR_H)
#include "DCKMeansMgr.h"
#endif
#if !defined(D... | 30.428315 | 160 | 0.566464 | McGill-DMaS |
02ba104c1168ba8820fcfeb2afa53da656a9db43 | 2,194 | cpp | C++ | Code/GUI/ProgressBar.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | Code/GUI/ProgressBar.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | Code/GUI/ProgressBar.cpp | BomjSoft/BCL | f6863035d987b3fad184db8533d395d73beaf601 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include "ProgressBar.h"
//---------------------------------------------------------------------------
namespace bcl {
//---------------------------------------------------------------------------
CProgressBar::CProgressBar() : CComponen... | 30.472222 | 182 | 0.377393 | BomjSoft |
02babea15d1ecfd6da55df55bc1e7c4062d5c06d | 1,124 | cpp | C++ | codeforces/659/c.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/659/c.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/659/c.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
#include <cstring>
#include <vector>
#include <string>
#include <set>
#include <map>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin >> t;
while(t--){
int n;
cin >> n;
string a,b;
cin... | 21.615385 | 44 | 0.387011 | udayan14 |
02bcd3a4e6afc4dd03196b29ddf3d91bf9e1ff1b | 3,866 | cc | C++ | extern/glow-extras/material/glow-extras/material/IBL.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/glow-extras/material/glow-extras/material/IBL.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/glow-extras/material/glow-extras/material/IBL.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #include "IBL.hh"
#include <glow/common/str_utils.hh>
#include <glow/data/TextureData.hh>
#include <glow/objects/Program.hh>
#include <glow/objects/Texture2D.hh>
#include <glow/objects/TextureCubeMap.hh>
#include <glow/util/DefaultShaderParser.hh>
#ifdef GLOW_EXTRAS_EMBED_SHADERS
#include <glow-extras/generated/mater... | 30.68254 | 141 | 0.681324 | rovedit |
02be76086ccef99a5f863463431c62b50b535cad | 1,209 | hh | C++ | examples/ScatteringExample/include/SEDetectorConstruction.hh | QTNM/Electron-Tracking | b9dff0232af5a99fd795fd504dbddde71f4dd31c | [
"MIT"
] | 2 | 2022-03-16T22:30:19.000Z | 2022-03-16T22:30:26.000Z | examples/ScatteringExample/include/SEDetectorConstruction.hh | QTNM/Electron-Tracking | b9dff0232af5a99fd795fd504dbddde71f4dd31c | [
"MIT"
] | 18 | 2021-03-02T15:14:11.000Z | 2022-02-14T08:12:20.000Z | examples/ScatteringExample/include/SEDetectorConstruction.hh | QTNM/Electron-Tracking | b9dff0232af5a99fd795fd504dbddde71f4dd31c | [
"MIT"
] | null | null | null | #ifndef SEDetectorConstruction_h
#define SEDetectorConstruction_h 1
#include "G4Cache.hh"
#include "G4GenericMessenger.hh"
#include "G4VUserDetectorConstruction.hh"
#include "globals.hh"
class G4VPhysicalVolume;
class G4GlobalMagFieldMessenger;
class SEGasSD;
class SEWatchSD;
class SEDetectorConstruction : public G4... | 27.477273 | 76 | 0.659222 | QTNM |
02c6b4dbed15e710d6e9dbd33aee3f9119917f39 | 3,165 | cpp | C++ | GameDownloader/src/GameDownloader/Behavior/PostHookBehavior.cpp | ProtocolONE/cord.game-downloader | 90950019937cd2974801ca2f53ed3b4ecd1d219b | [
"Apache-2.0"
] | 1 | 2019-08-07T06:13:15.000Z | 2019-08-07T06:13:15.000Z | GameDownloader/src/GameDownloader/Behavior/PostHookBehavior.cpp | ProtocolONE/cord.game-downloader | 90950019937cd2974801ca2f53ed3b4ecd1d219b | [
"Apache-2.0"
] | null | null | null | GameDownloader/src/GameDownloader/Behavior/PostHookBehavior.cpp | ProtocolONE/cord.game-downloader | 90950019937cd2974801ca2f53ed3b4ecd1d219b | [
"Apache-2.0"
] | null | null | null | #include <GameDownloader/Behavior/PostHookBehavior.h>
#include <GameDownloader/ServiceState.h>
#include <GameDownloader/GameDownloadService.h>
#include <Core/Service.h>
#include <QtConcurrent/QtConcurrentRun>
namespace P1 {
namespace GameDownloader {
namespace Behavior {
PostHookBehavior::Po... | 35.965909 | 137 | 0.64139 | ProtocolONE |
02c917b230168e05d5c19fecf4033164e612a287 | 1,149 | hpp | C++ | src/utils/DisplayConfiguration.hpp | bonnefoa/flowstats | 64f3e2d4466596788174b508bc62838379162224 | [
"MIT"
] | 4 | 2020-07-21T12:34:26.000Z | 2020-12-09T16:51:33.000Z | src/utils/DisplayConfiguration.hpp | bonnefoa/flowstats | 64f3e2d4466596788174b508bc62838379162224 | [
"MIT"
] | null | null | null | src/utils/DisplayConfiguration.hpp | bonnefoa/flowstats | 64f3e2d4466596788174b508bc62838379162224 | [
"MIT"
] | 1 | 2020-07-21T12:34:31.000Z | 2020-07-21T12:34:31.000Z | #pragma once
#include "Field.hpp"
#include "enum.h"
#include <string>
#include <vector>
namespace flowstats {
class DisplayConfiguration {
public:
DisplayConfiguration();
auto updateFieldSize(Field field, int delta) -> void;
auto emptyFilter() { filter = ""; };
auto addFilterChar(int c) { filter.p... | 27.357143 | 76 | 0.678851 | bonnefoa |
02caa5f3c7d730e77ef9a47742232d53e52cf02f | 1,041 | cpp | C++ | UVA/DP/uva_10819_knapsack.cpp | raphasramos/competitive-programming | 749b6726bd9d517d9143af7e9236d3e5e8cef49b | [
"MIT"
] | 3 | 2020-05-15T17:15:10.000Z | 2021-04-24T17:54:26.000Z | UVA/DP/uva_10819_knapsack.cpp | raphasramos/competitive-programming | 749b6726bd9d517d9143af7e9236d3e5e8cef49b | [
"MIT"
] | null | null | null | UVA/DP/uva_10819_knapsack.cpp | raphasramos/competitive-programming | 749b6726bd9d517d9143af7e9236d3e5e8cef49b | [
"MIT"
] | 1 | 2019-06-24T18:41:49.000Z | 2019-06-24T18:41:49.000Z | #include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define ll long long
#define pq priority_queue
#define mii map<int,int>
typedef vector<int> vi;
typedef pair<int,int> ii;
typedef set<int> si;
typedef vector<vi> vii;
typedef vector<ii> vpi;
typedef vector<ll> vll;
int oo = (1e9) + 7;
... | 20.82 | 71 | 0.513929 | raphasramos |
c49f007a9c1ae8d5d42f9db5932d934641f1561b | 369 | cpp | C++ | cppLearn/fib.cpp | adammorley/cpp | ff8682843f64f808b51f45b6e9530b0755455f27 | [
"Apache-2.0"
] | null | null | null | cppLearn/fib.cpp | adammorley/cpp | ff8682843f64f808b51f45b6e9530b0755455f27 | [
"Apache-2.0"
] | null | null | null | cppLearn/fib.cpp | adammorley/cpp | ff8682843f64f808b51f45b6e9530b0755455f27 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
int main() {
std::vector<long long> fib;
fib.push_back(0);
fib.push_back(1);
long long a;
std::cin >> a;
long long cnt = 2;
while (cnt <= a) {
long long num = fib[cnt-1] + fib[cnt-2];
fib.push_back(num);
cnt++;
}
std::cout << fib[a] << std::endl;
//std::cout... | 17.571429 | 46 | 0.571816 | adammorley |
c4a0ab9be5956d15f660c0b48a9d16b7f14613cb | 2,530 | cpp | C++ | TestsParallel/test_contact_model_3d.cpp | COFS-UWA/MPM3D | 1a0c5dc4e92dff3855367846002336ca5a18d124 | [
"MIT"
] | null | null | null | TestsParallel/test_contact_model_3d.cpp | COFS-UWA/MPM3D | 1a0c5dc4e92dff3855367846002336ca5a18d124 | [
"MIT"
] | 2 | 2020-10-19T02:03:11.000Z | 2021-03-19T16:34:39.000Z | TestsParallel/test_contact_model_3d.cpp | COFS-UWA/MPM3D | 1a0c5dc4e92dff3855367846002336ca5a18d124 | [
"MIT"
] | 1 | 2020-04-28T00:33:14.000Z | 2020-04-28T00:33:14.000Z | #include "TestsParallel_pcp.h"
#include "ParticleGenerator3D.hpp"
#include "LinearElasticity.h"
#include "Model_T3D_ME_mt.h"
#include "Step_T3D_ME_mt.h"
#include "ModelData_T3D_ME_mt.h"
#include "TimeHistory_T3D_ME_mt_complete.h"
#include "TimeHistory_ConsoleProgressBar.h"
#include "QtApp_Prep_T3D_ME_mt.h"
#include "t... | 32.025316 | 91 | 0.762846 | COFS-UWA |
c4a82c434e58b321c715c96ac6bd83d5400cd1fe | 5,802 | cpp | C++ | sdl2/sdlbird/Sprite.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/sdlbird/Sprite.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/sdlbird/Sprite.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2014, Wei Mingzhi <whistler_wmz@users.sf.net>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 25.901786 | 115 | 0.647363 | pdpdds |
c4aafeaa4d72886d265d9ecdad97d91aaa482665 | 5,898 | hpp | C++ | src/util/rpc/client.hpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 652 | 2022-02-03T19:31:04.000Z | 2022-03-31T17:45:29.000Z | src/util/rpc/client.hpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 50 | 2022-02-03T23:16:36.000Z | 2022-03-31T19:50:19.000Z | src/util/rpc/client.hpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 116 | 2022-02-03T19:57:26.000Z | 2022-03-20T17:23:47.000Z | // Copyright (c) 2021 MIT Digital Currency Initiative,
// Federal Reserve Bank of Boston
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef OPENCBDC_TX_SRC_RPC_CLIENT_H_
#define OPENCBDC_TX_SRC_RPC_CLIENT... | 43.051095 | 80 | 0.604103 | EnrikoChavez |
c4abbc992515476b03b4d213d4352259d198df90 | 3,213 | cc | C++ | third_party/eRPC/src/util/numautils.cc | agnesnatasya/Be-Tree | 516c97c1a4ee68346e301277cfc318bb07a0c1b7 | [
"BSD-2-Clause"
] | 579 | 2019-02-24T20:58:06.000Z | 2022-03-31T08:56:48.000Z | third_party/eRPC/src/util/numautils.cc | agnesnatasya/Be-Tree | 516c97c1a4ee68346e301277cfc318bb07a0c1b7 | [
"BSD-2-Clause"
] | 64 | 2019-02-25T02:48:31.000Z | 2022-03-30T03:38:40.000Z | third_party/eRPC/src/util/numautils.cc | agnesnatasya/Be-Tree | 516c97c1a4ee68346e301277cfc318bb07a0c1b7 | [
"BSD-2-Clause"
] | 86 | 2019-02-28T01:40:50.000Z | 2022-02-23T08:02:26.000Z | #include <stdio.h>
#include <thread>
#include <vector>
#include "common.h"
#include "util/logger.h"
#ifdef __linux__
#include <numa.h>
#else
#include <windows.h>
#endif
namespace erpc {
#ifdef __linux__
size_t num_lcores_per_numa_node() {
return static_cast<size_t>(numa_num_configured_cpus() /
... | 30.028037 | 80 | 0.668845 | agnesnatasya |
c4ad43f15955cded255e777e45a2fb436ddd38ed | 3,017 | cpp | C++ | example/frame/concept/alpha/src/alphawriter.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | example/frame/concept/alpha/src/alphawriter.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | example/frame/concept/alpha/src/alphawriter.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | // alphawriter.cpp
//
// Copyright (c) 2007, 2008 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.
//
#include "alphawriter... | 27.18018 | 97 | 0.672854 | joydit |
c4ae11028445ad1e97267d0264850775b57a6778 | 2,610 | cpp | C++ | Client/client/World/World.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 14 | 2019-03-05T10:03:59.000Z | 2021-12-21T03:00:18.000Z | Client/client/World/World.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2019-10-24T21:37:59.000Z | 2019-10-24T21:37:59.000Z | Client/client/World/World.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2020-12-06T21:07:52.000Z | 2020-12-06T21:07:52.000Z | #include "World.hpp"
#include "../Global.hpp"
#include "WorldPacket.hpp"
#include <vector>
World::World()
{
g_Socket = new Socket();
m_Events = new Events();
g_Config = new ConfigHandler();
m_MapManager = new MapManager(m_Events);
m_InterfaceManager = new InterfaceManager(m_Events);
m_Graphics = new Gra... | 22.894737 | 74 | 0.6659 | pinkmouse |
c4aedb60a6b584cb8efb91d7df4431cd47cb86e0 | 483 | hpp | C++ | include/brimstone/Size.hpp | theJ8910/Brimstone | e28da7a995ab5533b78bf5e1664a59753d139fff | [
"MIT"
] | 1 | 2015-12-31T05:49:39.000Z | 2015-12-31T05:49:39.000Z | include/brimstone/Size.hpp | theJ8910/Brimstone | e28da7a995ab5533b78bf5e1664a59753d139fff | [
"MIT"
] | null | null | null | include/brimstone/Size.hpp | theJ8910/Brimstone | e28da7a995ab5533b78bf5e1664a59753d139fff | [
"MIT"
] | null | null | null | /*
Size.hpp
-----------------------
Copyright (c) 2014, theJ89
Description:
Include this file for access to Size and its variations.
Note: Since this file merely includes other files, there are no include guards necessary here.
*/
//Includes
#include <brimstone/size/SizeN.hpp>
#include <brimstone/size/Size... | 23 | 98 | 0.724638 | theJ8910 |
c4b010e42abdd2e35f215d93afc09ed2119a37f3 | 22 | cpp | C++ | TetrisConsole/source/Konsole/Vector2i.cpp | mooviies/TetrisConsole | 4468df779c74cb30d4543eb50d89c491839998bb | [
"MIT"
] | null | null | null | TetrisConsole/source/Konsole/Vector2i.cpp | mooviies/TetrisConsole | 4468df779c74cb30d4543eb50d89c491839998bb | [
"MIT"
] | null | null | null | TetrisConsole/source/Konsole/Vector2i.cpp | mooviies/TetrisConsole | 4468df779c74cb30d4543eb50d89c491839998bb | [
"MIT"
] | null | null | null | #include "Vector2i.h"
| 11 | 21 | 0.727273 | mooviies |
c4b088cdd2eba4b2c63c98fff03c2b0e99b3275c | 1,305 | cpp | C++ | codechef/SWAPPALI/Wrong Answer.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codechef/SWAPPALI/Wrong Answer.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codechef/SWAPPALI/Wrong Answer.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 29-02-2020 19:55:44
* solution_verdict: Wrong Answer language: C++14
* run... | 29.659091 | 111 | 0.4 | kzvd4729 |
c4b0cb7be0da45a9827665348569fe4bd3544efa | 3,005 | cpp | C++ | unittests/timer/ExecutionDeferrerTest.cpp | zavadovsky/stingraykit | 33e6587535325f08769bd8392381d70d4d316410 | [
"0BSD"
] | 24 | 2015-03-04T16:30:03.000Z | 2022-02-04T15:03:42.000Z | unittests/timer/ExecutionDeferrerTest.cpp | zavadovsky/stingraykit | 33e6587535325f08769bd8392381d70d4d316410 | [
"0BSD"
] | null | null | null | unittests/timer/ExecutionDeferrerTest.cpp | zavadovsky/stingraykit | 33e6587535325f08769bd8392381d70d4d316410 | [
"0BSD"
] | 7 | 2015-04-08T12:22:58.000Z | 2018-06-14T09:58:45.000Z | #include <stingraykit/function/bind.h>
#include <stingraykit/timer/Timer.h>
#include <stingraykit/unique_ptr.h>
#include <gtest/gtest.h>
using namespace stingray;
class ExecutionDeferrerTest : public testing::Test
{
protected:
class DeferrerHolder
{
private:
ExecutionDeferrer _deferrer;
public:
DeferrerHold... | 23.294574 | 115 | 0.738769 | zavadovsky |
c4b10ee02bb5e600696d5bd152526c61ae663e94 | 215 | cpp | C++ | Source/Common/MPIWrapper.cpp | sunkwei/CNTK | 08691e97707538b110ca71bce4ad06c46d840517 | [
"Intel"
] | 6 | 2019-08-18T05:29:09.000Z | 2021-01-19T09:58:45.000Z | Source/Common/MPIWrapper.cpp | Omar-Belghaouti/CNTK | 422f710242c602b2660a634f2234abf5aaf5b337 | [
"RSA-MD"
] | null | null | null | Source/Common/MPIWrapper.cpp | Omar-Belghaouti/CNTK | 422f710242c602b2660a634f2234abf5aaf5b337 | [
"RSA-MD"
] | 1 | 2019-10-24T00:35:07.000Z | 2019-10-24T00:35:07.000Z | #include "Include/Basics.h"
#include "Include/MPIWrapper.h"
int Microsoft::MSR::CNTK::MPIWrapper::s_myRank = -1;
std::shared_ptr<Microsoft::MSR::CNTK::MPIWrapper> Microsoft::MSR::CNTK::MPIWrapper::s_mpi = nullptr;
| 35.833333 | 100 | 0.748837 | sunkwei |
c4b3615457b213dec9d96b0c8eaaf5b4af20be21 | 299 | cpp | C++ | Codeforces Online Judge Solve/dice.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/dice.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/dice.cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main ()
{
ll m,n,k;
cin>>n;
while(n--)
{
cin>>m;
if(m==2||m==3||m==4||m==5||m==6||m==7) cout<<"1"<<endl;
else
{
k=m/2; cout<<k<<endl;
}
}
}
| 16.611111 | 64 | 0.381271 | Remonhasan |
c4b3834a3ced9015f6db46be6e6f5fc176787725 | 1,234 | cc | C++ | src/platform/udp_server_test.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/platform/udp_server_test.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/platform/udp_server_test.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | 2 | 2019-11-12T23:15:18.000Z | 2020-01-15T17:49:27.000Z | #include "platform.cc"
#include <cstdio>
volatile bool running = true;
s32
main(s32 argc, char** argv)
{
const char* ip = "127.0.0.1";
const char* port = "9845";
while (1) {
s32 opt = platform_getopt(argc, argv, "i:p:");
if (opt == -1) break;
switch (opt) {
case 'i':
ip = platform_o... | 19.903226 | 73 | 0.559157 | AnthonyBrunasso |
c4b421f980c2a384fcb3a9806084e3725979098a | 442 | cc | C++ | caffe2/opt/distributed_converter.cc | brooks-anderson/pytorch | dd928097938b6368fc7e2dc67721550d50ab08ea | [
"Intel"
] | 7 | 2021-05-29T16:31:51.000Z | 2022-02-21T18:52:25.000Z | caffe2/opt/distributed_converter.cc | stas00/pytorch | 6a085648d81ce88ff59d6d1438fdb3707a0d6fb7 | [
"Intel"
] | 1 | 2021-05-10T01:18:33.000Z | 2021-05-10T01:18:33.000Z | caffe2/opt/distributed_converter.cc | stas00/pytorch | 6a085648d81ce88ff59d6d1438fdb3707a0d6fb7 | [
"Intel"
] | 1 | 2021-12-26T23:20:06.000Z | 2021-12-26T23:20:06.000Z | #include "caffe2/opt/converter.h"
namespace caffe2 {
namespace {
using namespace nom;
using namespace nom::repr;
TRIVIAL_CONVERTER(Declare);
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
REGISTER_CONVERTER(Declare, DeclareConverter);
TRIVIAL_CONVERTER(Export);
// NOLINTNEXTLINE(cppcoreguidel... | 23.263158 | 69 | 0.807692 | brooks-anderson |
c4b457a7d61ab62179e13416dda2f179f7be4a5e | 1,663 | hh | C++ | modules/Tsp/TspParticle.hh | ElonKou/genetic | 507f739b44399b8dbae1bde4523fbb718704e223 | [
"MIT"
] | null | null | null | modules/Tsp/TspParticle.hh | ElonKou/genetic | 507f739b44399b8dbae1bde4523fbb718704e223 | [
"MIT"
] | null | null | null | modules/Tsp/TspParticle.hh | ElonKou/genetic | 507f739b44399b8dbae1bde4523fbb718704e223 | [
"MIT"
] | null | null | null | #pragma once
#include "TspAlgorithmBase.hh"
typedef struct SpeedItem {
int x;
int y;
} SpeedItem;
class TspParticle : public TspAlgorithmBase {
public:
std::vector<SpeedItem> m_personal; // cur:A -> his:B (current vs personal history)
std::vector<SpeedItem> m_global; ... | 33.938776 | 178 | 0.595911 | ElonKou |
c4b4aaa187fd4398015417a985e637dd01253ad7 | 10,528 | cpp | C++ | src/IndexBar.cpp | Keyaku/ff8-garden | 76754fb067ccf07add4feb2c5e5dafe97e758380 | [
"MIT"
] | 1 | 2019-09-03T20:33:19.000Z | 2019-09-03T20:33:19.000Z | src/IndexBar.cpp | Keyaku/ff8-garden | 76754fb067ccf07add4feb2c5e5dafe97e758380 | [
"MIT"
] | null | null | null | src/IndexBar.cpp | Keyaku/ff8-garden | 76754fb067ccf07add4feb2c5e5dafe97e758380 | [
"MIT"
] | null | null | null | // IndexBar.cpp : implementation file
//
#include "ui_win32/StdAfx.h"
//#include "Gast.h"
#include "Garden.h"
#include "IndexBar.h"
#include "resource.h"
#include <afxpriv.h>
#include "project.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern... | 26.385965 | 153 | 0.666413 | Keyaku |