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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a7f68bd5a50f2444fccefa76bd1bd4313872b67 | 21,442 | cpp | C++ | copasi/UI/CQModelValue.cpp | bmoreau/COPASI | d0bbec8947b1266ffd2b0ecf2566da7cf2c3e5ba | [
"Artistic-2.0"
] | null | null | null | copasi/UI/CQModelValue.cpp | bmoreau/COPASI | d0bbec8947b1266ffd2b0ecf2566da7cf2c3e5ba | [
"Artistic-2.0"
] | null | null | null | copasi/UI/CQModelValue.cpp | bmoreau/COPASI | d0bbec8947b1266ffd2b0ecf2566da7cf2c3e5ba | [
"Artistic-2.0"
] | null | null | null | // Copyright (C) 2010 - 2014 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and The University
// of Manchester.
// All rights reserved.
// Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., EML Research, gGmbH, University of Heidelber... | 30.414184 | 136 | 0.664537 | bmoreau |
2a8a9376f3a8e3721e2078ce814b7d00aae01c8f | 43,033 | cpp | C++ | wfs/stored_queries/StoredObsQueryHandler.cpp | nakkim/smartmet-plugin-wfs | 851334dd3be1a24b9708f66696f088fdc857a999 | [
"MIT"
] | null | null | null | wfs/stored_queries/StoredObsQueryHandler.cpp | nakkim/smartmet-plugin-wfs | 851334dd3be1a24b9708f66696f088fdc857a999 | [
"MIT"
] | null | null | null | wfs/stored_queries/StoredObsQueryHandler.cpp | nakkim/smartmet-plugin-wfs | 851334dd3be1a24b9708f66696f088fdc857a999 | [
"MIT"
] | null | null | null | #include "stored_queries/StoredObsQueryHandler.h"
#include "FeatureID.h"
#include "StoredQueryHandlerFactoryDef.h"
#include "WfsConst.h"
#include "WfsConvenience.h"
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include <boost/lambda/lambda.hpp>
#include <macgyver/Exception.h>
#include <macgyver/Str... | 37.881162 | 147 | 0.615249 | nakkim |
2a8b74b3d9b234e9d5ee90991ed83187d020f11e | 1,237 | cpp | C++ | AlgorithmStudyCpp/CLOCKSYNC_coloredrabbit.cpp | waltechel/AlgorithmCpp | 5a02d1c25d987e6cb0e9953aa87c181f659c8e7c | [
"MIT"
] | 2 | 2021-08-01T13:43:00.000Z | 2021-12-08T10:02:55.000Z | AlgorithmStudyCpp/CLOCKSYNC_coloredrabbit.cpp | waltechel/AlgorithmStudyCpp | c0557c2cd847ca9113bbb094403ea2e922787eda | [
"MIT"
] | null | null | null | AlgorithmStudyCpp/CLOCKSYNC_coloredrabbit.cpp | waltechel/AlgorithmStudyCpp | c0557c2cd847ca9113bbb094403ea2e922787eda | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<set>
#include<map>
#include<vector>
#include<cstring>
#include<string>
#include<unordered_set>
#include<unordered_map>
#include<queue>
#include<stack>
#include<cstdlib>
#include<cmath>
using ll = long long;
using namespace std;
const int N = 16, INF = 1e9, SWITCH=10;
vect... | 24.254902 | 159 | 0.540825 | waltechel |
2a8e5b39811a76bd7f064d076522da7a82c909b7 | 1,538 | cpp | C++ | GeeksForGeeks/C Plus Plus/Binary_Tree_to_BST.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 4 | 2021-06-19T14:15:34.000Z | 2021-06-21T13:53:53.000Z | GeeksForGeeks/C Plus Plus/Binary_Tree_to_BST.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 2 | 2021-07-02T12:41:06.000Z | 2021-07-12T09:37:50.000Z | GeeksForGeeks/C Plus Plus/Binary_Tree_to_BST.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 3 | 2021-06-19T15:19:20.000Z | 2021-07-02T17:24:51.000Z | /*
Problem Statement:
-----------------
Given a Binary Tree, convert it to Binary Search Tree in such a way that keeps the original structure of Binary Tree intact.
Example 1:
---------
Input:
1
/ \
2 3
Output: 1 2 3
Example 2:
----------
Input:
1
/ \
2 3
/ ... | 19.717949 | 155 | 0.529909 | ankit-sr |
2a8e675565d5df500801d12f84ecc49f43a47f54 | 798 | cpp | C++ | leetcode/medium/918. Maximum Sum Circular Subarray.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | 7 | 2019-08-05T14:49:41.000Z | 2022-03-13T07:10:51.000Z | leetcode/medium/918. Maximum Sum Circular Subarray.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | null | null | null | leetcode/medium/918. Maximum Sum Circular Subarray.cpp | Jeongseo21/Algorithm-1 | 1bce4f3d2328c3b3e24b9d7772fca43090a285e1 | [
"MIT"
] | 4 | 2021-01-04T03:45:22.000Z | 2021-10-06T06:11:00.000Z | /**
* problem : https://leetcode.com/problems/maximum-sum-circular-subarray/
* time comlexity : O(N)
*/
class Solution {
public:
int maxSubarraySumCircular(vector<int>& A) {
int ans = A[0];
int maxSub = A[0];
int minSub = A[0];
int sum = 0;
int sumMax =... | 24.9375 | 73 | 0.448622 | Jeongseo21 |
2a8f1c571837b15f19fc0a4b761e789d2d16f7ce | 497 | cpp | C++ | Project/expense.cpp | aczapi/BudgetApp | 63cb171d1384e7ca12542632da7ce9b3ae46d21b | [
"Unlicense"
] | null | null | null | Project/expense.cpp | aczapi/BudgetApp | 63cb171d1384e7ca12542632da7ce9b3ae46d21b | [
"Unlicense"
] | null | null | null | Project/expense.cpp | aczapi/BudgetApp | 63cb171d1384e7ca12542632da7ce9b3ae46d21b | [
"Unlicense"
] | null | null | null | #include "expense.hpp"
void Expense::setUserId(int userId) {
if (userId > 0)
userId_ = userId;
}
void Expense::setExpenseId(int expenseId) {
if (expenseId > 0)
expenseId_ = expenseId;
}
void Expense::setDate(std::string date) {
date_ = date;
}
void Expense::setItem(std::string item) {
i... | 20.708333 | 43 | 0.645875 | aczapi |
2a8fd0c558da91ec405cc301e68845ce5de18762 | 261 | hpp | C++ | Factory/include/Cycle.hpp | NEWPLAN/design_pattern | 07e332cc80008e9f1c263b53a94359b2c5884651 | [
"Apache-2.0"
] | 1 | 2020-05-02T09:06:18.000Z | 2020-05-02T09:06:18.000Z | Factory/include/Cycle.hpp | NEWPLAN/design_pattern | 07e332cc80008e9f1c263b53a94359b2c5884651 | [
"Apache-2.0"
] | null | null | null | Factory/include/Cycle.hpp | NEWPLAN/design_pattern | 07e332cc80008e9f1c263b53a94359b2c5884651 | [
"Apache-2.0"
] | null | null | null | #ifndef __CYCLES__
#define __CYCLES__
#include <iostream>
#include <string>
#include "BaseShape.hpp"
class Cycle : public BaseShape
{
public:
Cycle();
~Cycle();
public:
virtual void draw() override;
private:
std::string name;
};
#endif | 13.05 | 33 | 0.666667 | NEWPLAN |
2a919455f339573c3cdfe9860d552f9106200a8c | 3,159 | cc | C++ | third_party/blink/renderer/core/input/touch_event_manager_test.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/blink/renderer/core/input/touch_event_manager_test.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/renderer/core/input/touch_event_manager_test.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 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 "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/co... | 34.714286 | 79 | 0.739475 | zipated |
2a921f050f9bc5f64e3f358c2ce808b5042ec8a6 | 188 | cxx | C++ | src/lib/models/model/test/tst_model.cxx | johanneslochmann/cppprojecttemplate | 28f1bd4dd1bc414ed38c8a739e33974f65891f83 | [
"BSD-3-Clause"
] | null | null | null | src/lib/models/model/test/tst_model.cxx | johanneslochmann/cppprojecttemplate | 28f1bd4dd1bc414ed38c8a739e33974f65891f83 | [
"BSD-3-Clause"
] | null | null | null | src/lib/models/model/test/tst_model.cxx | johanneslochmann/cppprojecttemplate | 28f1bd4dd1bc414ed38c8a739e33974f65891f83 | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include <models/model/model.hxx>
PRAM_NS_BEGIN
MODEL_NAMESPACE_BEGIN
TEST(tst_model, testCtor) {
Model m;
(void) m;
}
MODEL_NAMESPACE_END
PRAM_NS_END
| 12.533333 | 33 | 0.744681 | johanneslochmann |
2aa1957907c190a5d7921edb2a90a8e29f76fab4 | 3,121 | hpp | C++ | modules/core/include/core/shader_codex.hpp | Wmbat/vermillon | 3dafc3d17a3225d32c62a3169b6b3dda32182b88 | [
"MIT"
] | 1 | 2021-04-07T03:02:47.000Z | 2021-04-07T03:02:47.000Z | modules/core/include/core/shader_codex.hpp | Wmbat/vermillon | 3dafc3d17a3225d32c62a3169b6b3dda32182b88 | [
"MIT"
] | null | null | null | modules/core/include/core/shader_codex.hpp | Wmbat/vermillon | 3dafc3d17a3225d32c62a3169b6b3dda32182b88 | [
"MIT"
] | null | null | null | #pragma once
#include <core/core.hpp>
#include <util/containers/dense_hash_map.hpp>
#include <vkn/shader.hpp>
#include <glslang/Public/ShaderLang.h>
namespace core
{
enum class shader_codex_error
{
failed_to_open_file,
unknow_shader_type,
failed_to_preprocess_shader,
failed_to_parse_s... | 34.296703 | 98 | 0.655239 | Wmbat |
2aa433a4bd1fcf9dace87958b7f15ebe6d244241 | 747 | cpp | C++ | program/OccurrencesCounter.cpp | wojtkolos/huffman_tree_generator | 1679ead8c2b180024a782b1d027beffac7a95f64 | [
"Apache-2.0"
] | null | null | null | program/OccurrencesCounter.cpp | wojtkolos/huffman_tree_generator | 1679ead8c2b180024a782b1d027beffac7a95f64 | [
"Apache-2.0"
] | null | null | null | program/OccurrencesCounter.cpp | wojtkolos/huffman_tree_generator | 1679ead8c2b180024a782b1d027beffac7a95f64 | [
"Apache-2.0"
] | null | null | null | #include "OccurrencesCounter.h"
OccurrencesCounter::OccurrencesCounter(std::vector<std::string> inp) : vec(inp) {}
void OccurrencesCounter::calculate() {
for (auto i = 0; i < vec.size(); ++i) {
for (auto el : vec[i])
{
if ((el >= 65 && el >= 90) or (el >= 97 && el <= 122))
... | 28.730769 | 85 | 0.487282 | wojtkolos |
2aa47b5edb268dea109295bbcec02c7149c6434d | 5,525 | cpp | C++ | extensions/openpower-pels/tools/peltool.cpp | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | extensions/openpower-pels/tools/peltool.cpp | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | extensions/openpower-pels/tools/peltool.cpp | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | #include "peltool.hpp"
#include "peltool_utility.hpp"
#include <iostream>
#include <iterator>
#include <map>
#include <phosphor-logging/log.hpp>
#include <fstream>
#include <filesystem>
#include <string> // std::string
#include <iostream> // std::cout
#include <sstream> // std::stringstream
#include "../... | 40.036232 | 123 | 0.544796 | sotaoverride |
2aa619a27889afbe6ba7a6c75280a28cb7b423ef | 6,657 | cpp | C++ | common_alg/src/grdecl_reader.cpp | bs-eagle/bs-eagle | b1017a4f6ac2dcafba2deafec84052ddde792671 | [
"BSD-3-Clause"
] | 7 | 2015-07-16T22:30:36.000Z | 2020-02-06T10:16:42.000Z | common_alg/src/grdecl_reader.cpp | bs-eagle/bs-eagle | b1017a4f6ac2dcafba2deafec84052ddde792671 | [
"BSD-3-Clause"
] | null | null | null | common_alg/src/grdecl_reader.cpp | bs-eagle/bs-eagle | b1017a4f6ac2dcafba2deafec84052ddde792671 | [
"BSD-3-Clause"
] | 3 | 2017-01-05T20:06:28.000Z | 2021-12-20T16:19:10.000Z | /// @file grdecl_reader.cpp
/// @brief Read GRDECL Petrel text files into set of BlueSky arrays
/// @author uentity
/// @version 1.0
/// @date 03.04.2013
/// @copyright This source code is released under the terms of
/// the BSD License. See LICENSE for more details.
#include "bs_kernel.h"
#include "conf.h"... | 28.32766 | 106 | 0.642482 | bs-eagle |
2aa725fe58dfa44e0477431e0c02ee98c2f79c17 | 8,287 | cpp | C++ | source/binding/Research.cpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | source/binding/Research.cpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | source/binding/Research.cpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | /*
** Research.cpp for bomberman in /home/care_j/work/bomberman/source/binding
**
** Made by care_j
** Login <care_j@epitech.net>
**
*/
#include "Research.hpp"
bbman::Research::Research(void)
{
this->_trueA.addBlockType(bbman::ItemID::II_BLOCK_INBRKABLE);
this->_trueA.addBlockType(bbman::ItemID::II_BLOCK_BRKABL... | 30.579336 | 165 | 0.60975 | Stephouuu |
2aa980fad1466bdf6478d16d9bcfc6e13b9bd41a | 692 | hpp | C++ | sprout/math/signbit.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/math/signbit.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/math/signbit.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_MATH_SIGNBIT_HPP
#define SPROUT_MATH_SIGNBIT_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/math/detail/config.hpp>
#include <sprout/type_traits/enabler_if.hpp>
namespace sprout {
namespace math {
namespace detail {
template<
typename FloatType,
type... | 23.862069 | 98 | 0.710983 | osyo-manga |
2aaa5ac4465ddd0f6c9761459157b8d640b29a0f | 1,581 | cpp | C++ | stack07.cpp | LuluFighting/DataStructAndAlgorithm | af8fe59a0bcf41c48034182de4e00bb91f9e411a | [
"MIT"
] | 1 | 2020-03-11T16:02:41.000Z | 2020-03-11T16:02:41.000Z | stack07.cpp | LuluFighting/DataStructAndAlgorithm | af8fe59a0bcf41c48034182de4e00bb91f9e411a | [
"MIT"
] | null | null | null | stack07.cpp | LuluFighting/DataStructAndAlgorithm | af8fe59a0bcf41c48034182de4e00bb91f9e411a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using std::vector;
//数组栈
class Stack{
public:
Stack(int size)
:_size(size),_index(0),_items(new int[size]())
{
std::cout << "having create a stack " << std::endl;
}
bool push(int item){
if(_index == _size){
return false;
}
... | 20.802632 | 60 | 0.510436 | LuluFighting |
2aab6c86af0b918717ca52bc87acc7d31ac73840 | 1,076 | hpp | C++ | src/rfx/compiler/Signal.hpp | JKot-Coder/RedRaven | b0f9a679c39e0d87bee60c7f4f202ca1a795eaa9 | [
"BSD-3-Clause"
] | null | null | null | src/rfx/compiler/Signal.hpp | JKot-Coder/RedRaven | b0f9a679c39e0d87bee60c7f4f202ca1a795eaa9 | [
"BSD-3-Clause"
] | null | null | null | src/rfx/compiler/Signal.hpp | JKot-Coder/RedRaven | b0f9a679c39e0d87bee60c7f4f202ca1a795eaa9 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
namespace RR
{
namespace Rfx
{
enum class SignalType
{
Unexpected,
Unimplemented,
AssertFailure,
Unreachable,
InvalidOperation,
AbortCompilation,
};
void handleSignal(SignalType type, const U8S... | 27.589744 | 68 | 0.567844 | JKot-Coder |
2ab0412bec72bc8e1e9278d0444c59718685460c | 17,914 | cpp | C++ | src/main.cpp | LaudateCorpus1/souffle | 66feafbc7b9b9b4318695c271aabaa48669900fa | [
"UPL-1.0"
] | 61 | 2016-03-07T23:52:52.000Z | 2020-10-19T06:23:50.000Z | src/main.cpp | LaudateCorpus1/souffle | 66feafbc7b9b9b4318695c271aabaa48669900fa | [
"UPL-1.0"
] | 11 | 2016-03-08T06:11:59.000Z | 2017-07-20T17:58:13.000Z | src/main.cpp | LaudateCorpus1/souffle | 66feafbc7b9b9b4318695c271aabaa48669900fa | [
"UPL-1.0"
] | 25 | 2016-03-08T03:36:39.000Z | 2022-02-18T04:50:33.000Z | /*
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All Rights reserved
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software,
* associated documentation and/or data (collectivel... | 38.774892 | 150 | 0.565982 | LaudateCorpus1 |
2ab0f3d71d0f992a477fda337fe0ad607e552326 | 20,419 | cpp | C++ | implementations/ugene/src/plugins/ngs_reads_classification/src/ClassificationReportWorker.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/plugins/ngs_reads_classification/src/ClassificationReportWorker.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/plugins/ngs_reads_classification/src/ClassificationReportWorker.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* 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
* ... | 42.188017 | 1,228 | 0.658749 | r-barnes |
2ab2712909da74b138ba8aca26a880f009c4a7ff | 3,344 | cpp | C++ | src/plugins/azoth/plugins/chathistory/storagethread.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/azoth/plugins/chathistory/storagethread.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/azoth/plugins/chathistory/storagethread.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 35.574468 | 89 | 0.686005 | MellonQ |
2ab709282cd25bc805e687ba40a60e78c8d669da | 111 | cpp | C++ | Project2/test.cpp | dss875914213/dll_demo | 31efea0135f39d9592b5769f6c09e7bb5e8a101e | [
"MIT"
] | null | null | null | Project2/test.cpp | dss875914213/dll_demo | 31efea0135f39d9592b5769f6c09e7bb5e8a101e | [
"MIT"
] | null | null | null | Project2/test.cpp | dss875914213/dll_demo | 31efea0135f39d9592b5769f6c09e7bb5e8a101e | [
"MIT"
] | null | null | null | #include "test.h"
int Add(int a, int b)
{
return a + b;
}
int Min(int a, int b)
{
return a > b ? b : a;
}
| 8.538462 | 22 | 0.522523 | dss875914213 |
2ab79fc58c1e500c7f63960f72220588072ccbcd | 409 | cpp | C++ | isode++/code/iso/itu/osi/fsmc/smc/UnaryOperation.cpp | Kampbell/ISODE | 37f161e65f11348ef6fca2925d399d611df9f31b | [
"Apache-2.0"
] | 3 | 2016-01-18T17:00:00.000Z | 2021-06-25T03:18:13.000Z | isode++/code/iso/itu/osi/fsmc/smc/UnaryOperation.cpp | Kampbell/ISODE | 37f161e65f11348ef6fca2925d399d611df9f31b | [
"Apache-2.0"
] | null | null | null | isode++/code/iso/itu/osi/fsmc/smc/UnaryOperation.cpp | Kampbell/ISODE | 37f161e65f11348ef6fca2925d399d611df9f31b | [
"Apache-2.0"
] | null | null | null | /*
* UnaryOperation.cpp
*
* Created on: 20 janv. 2016
* Author: FrancisANDRE
*/
#include "UnaryOperation.h"
namespace ALS {
namespace SMC {
namespace MODEL {
const string UnaryOperation::display() const {
if (_asstring.empty()) {
switch (_operator) {
case Operator::not: _asstring += '!'... | 17.041667 | 49 | 0.599022 | Kampbell |
2abe42037e8c21807ce7f1df5af82b1934b8dac6 | 2,196 | cpp | C++ | src/util/StackAllocator.cpp | shiinamiyuki/LuisaCompute | f8358f8ec138950a84f570c0ede24cc76fc159de | [
"BSD-3-Clause"
] | null | null | null | src/util/StackAllocator.cpp | shiinamiyuki/LuisaCompute | f8358f8ec138950a84f570c0ede24cc76fc159de | [
"BSD-3-Clause"
] | null | null | null | src/util/StackAllocator.cpp | shiinamiyuki/LuisaCompute | f8358f8ec138950a84f570c0ede24cc76fc159de | [
"BSD-3-Clause"
] | null | null | null | #pragma vengine_package vengine_dll
#include <util/StackAllocator.h>
#include <util/vstring.h>
#include <util/vector.h>
#include <core/logging.h>
namespace valloc {
struct StackData {
static constexpr size_t VENGINE_STACK_LENGTH = 1024 * 64;
uint8_t* data = nullptr;
uint8_t* offset = nullptr;
~StackData() {
if (... | 25.835294 | 97 | 0.698543 | shiinamiyuki |
2abeb5a7e5e840da07615aa4d784fdd1aa0253ea | 6,070 | cc | C++ | inet/src/inet/applications/tcpapp/TcpBasicClientApp.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/applications/tcpapp/TcpBasicClientApp.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/applications/tcpapp/TcpBasicClientApp.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T13:32:40.000Z | 2021-07-02T13:32:40.000Z | //
// Copyright (C) 2004 Andras Varga
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... | 29.609756 | 143 | 0.667381 | ntanetani |
2ac0e73c95f1fb39db2df6144f8c89e2817d8d65 | 2,798 | cpp | C++ | bundle/calamares/src/modules/netinstall/NetInstallViewStep.cpp | ehalferty/garchinstall | 29185f13a53d6bef0983349f29856a349e753d0a | [
"BSD-2-Clause"
] | null | null | null | bundle/calamares/src/modules/netinstall/NetInstallViewStep.cpp | ehalferty/garchinstall | 29185f13a53d6bef0983349f29856a349e753d0a | [
"BSD-2-Clause"
] | null | null | null | bundle/calamares/src/modules/netinstall/NetInstallViewStep.cpp | ehalferty/garchinstall | 29185f13a53d6bef0983349f29856a349e753d0a | [
"BSD-2-Clause"
] | null | null | null | /*
* SPDX-FileCopyrightText: 2016 Luca Giambonini <almack@chakraos.org>
* SPDX-FileCopyrightText: 2016 Lisa Vitolo <shainer@chakraos.org>
* SPDX-FileCopyrightText: 2017 Kyle Robbertze <krobbertze@gmail.com>
* SPDX-FileCopyrightText: 2017-2018 2020, Adriaan de Groot <groot@kde.org>
* SPDX-License-Identif... | 20.275362 | 105 | 0.682988 | ehalferty |
2ac4e38de2a487099d74701a368830a7c975d0cd | 9,439 | cpp | C++ | ICC_interface/ICC_interface/Control.cpp | ArminPCM/GolfBall-Logo-Recognition | b03896c5b0d0f54dbdd06896b741509968ba02f3 | [
"Unlicense"
] | null | null | null | ICC_interface/ICC_interface/Control.cpp | ArminPCM/GolfBall-Logo-Recognition | b03896c5b0d0f54dbdd06896b741509968ba02f3 | [
"Unlicense"
] | null | null | null | ICC_interface/ICC_interface/Control.cpp | ArminPCM/GolfBall-Logo-Recognition | b03896c5b0d0f54dbdd06896b741509968ba02f3 | [
"Unlicense"
] | null | null | null | #include "stdafx.h"
#include "ControlWindow.h"
#include "OptionsWindow.h"
#include "StatisticsWindow.h"
#include "SnapshotWindow.h"
namespace ICC_interface
{
const wchar_t* settingFile = L"settings.bin";
namespace golfTransmissionConsts
{
const int maximgwidth = 2048;
const int maximgheight = 1088;
... | 30.253205 | 154 | 0.687679 | ArminPCM |
2ac81f8158fc864fde09d0c5b551d1c5b071934b | 2,703 | hpp | C++ | include/gSparse/ER/Policy/ExactERJacobiCG.hpp | As-12/gSparse | 66c7d60544565d4bdafbffa0ba08d62db620f9d1 | [
"MIT"
] | 6 | 2018-09-14T09:38:12.000Z | 2021-12-11T13:03:55.000Z | include/gSparse/ER/Policy/ExactERJacobiCG.hpp | As-12/gSparse | 66c7d60544565d4bdafbffa0ba08d62db620f9d1 | [
"MIT"
] | null | null | null | include/gSparse/ER/Policy/ExactERJacobiCG.hpp | As-12/gSparse | 66c7d60544565d4bdafbffa0ba08d62db620f9d1 | [
"MIT"
] | 1 | 2021-12-11T13:03:58.000Z | 2021-12-11T13:03:58.000Z | // Copyright (C) 2018 Thanaphon Chavengsaksongkram <as12production@gmail.com>, He Sun <he.sun@ed.ac.uk>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef GSPARSE_ER_POLICY_EXACTERJACOBICG_HPP
#define GSPARSE_ER_POLICY_EXACTERJACOBICG_HPP
... | 45.05 | 146 | 0.559378 | As-12 |
2acbc4abdd1548b347448e08f07c19af376088a6 | 2,707 | cpp | C++ | avs/vis_avs/g_avi.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 18 | 2020-07-30T11:55:23.000Z | 2022-02-25T02:39:15.000Z | avs/vis_avs/g_avi.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 34 | 2021-01-13T02:02:12.000Z | 2022-03-23T12:09:55.000Z | avs/vis_avs/g_avi.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 3 | 2021-03-18T12:53:58.000Z | 2021-10-02T20:24:41.000Z | #include "g__lib.h"
#include "g__defs.h"
#include "c_avi.h"
#include "resource.h"
#include <windows.h>
#include <commctrl.h>
static void EnableWindows(HWND hwndDlg, C_THISCLASS* config)
{
EnableWindow(GetDlgItem(hwndDlg,IDC_PERSIST),config->adapt);
EnableWindow(GetDlgItem(hwndDlg,IDC_PERSIST_TITLE),config->adapt);
... | 38.671429 | 100 | 0.735131 | semiessessi |
2acc704301de198eba30483025dbff577325a125 | 2,680 | cpp | C++ | Drivers/PCA9685/Pca9685.cpp | LeStarch/fprime-rc-car | 507f2693797f982d4703e4f8862cb1e1d4cae984 | [
"Apache-2.0"
] | 4 | 2021-05-04T17:20:37.000Z | 2022-03-26T12:52:23.000Z | Drivers/PCA9685/Pca9685.cpp | LeStarch/fprime-rc-car | 507f2693797f982d4703e4f8862cb1e1d4cae984 | [
"Apache-2.0"
] | null | null | null | Drivers/PCA9685/Pca9685.cpp | LeStarch/fprime-rc-car | 507f2693797f982d4703e4f8862cb1e1d4cae984 | [
"Apache-2.0"
] | null | null | null | // ======================================================================
// \title PCA9685ComponentImpl.cpp
// \author starchmd
// \brief cpp file for PCA9685 component implementation class
// ======================================================================
#include <Drivers/PCA9685/Pca9685.hpp>
#include "Fw/... | 33.924051 | 121 | 0.566045 | LeStarch |
2aceb1a1fbc5a319db71632b3e09e6478202f42c | 406 | cpp | C++ | C++/Tutorial/30Days/14.cpp | gietal/HackerRank | 66e88359022d02cf14a9cef5fc1d76946bb59c7d | [
"MIT"
] | null | null | null | C++/Tutorial/30Days/14.cpp | gietal/HackerRank | 66e88359022d02cf14a9cef5fc1d76946bb59c7d | [
"MIT"
] | null | null | null | C++/Tutorial/30Days/14.cpp | gietal/HackerRank | 66e88359022d02cf14a9cef5fc1d76946bb59c7d | [
"MIT"
] | null | null | null | // Add your code here
Difference(const vector<int> e)
: elements(e) {
}
void computeDifference() {
maximumDifference = 0;
for(int i = 0; i < elements.size() - 1; ++i) {
for(int j = 0; j < elements.size(); ++j) {
maximumDifference = ma... | 29 | 92 | 0.470443 | gietal |
2ad0376b3ccd61f96c4d54acbefaec10122e35a2 | 3,043 | cpp | C++ | 13_greedy_prob/7_weight_job_sch.cpp | ShyamNandanKumar/coding-ninja2 | a43a21575342261e573f71f7d8eff0572f075a17 | [
"MIT"
] | 11 | 2021-01-02T10:07:17.000Z | 2022-03-16T00:18:06.000Z | 13_greedy_prob/7_weight_job_sch.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | null | null | null | 13_greedy_prob/7_weight_job_sch.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | 5 | 2021-05-19T11:17:18.000Z | 2021-09-16T06:23:31.000Z | /*
You are given N jobs where every job is represented as:
1.Start Time
2.Finish Time
3.Profit Associated
Find the maximum profit subset of jobs such that no two jobs in the subset overlap.
Input
The first line of input contains one integer denoting N.
Next N lines contains three space separated integers denoting the s... | 24.739837 | 134 | 0.546172 | ShyamNandanKumar |
2ad17dd8d904775f1e7296b4eb519658aa26bcc4 | 5,242 | cpp | C++ | GameEngine/TestUserActor.cpp | csyonghe/GameEngine | 1ac8174714a3a52e22a935f573121dd1ab0fa546 | [
"MIT"
] | 60 | 2016-12-02T17:12:51.000Z | 2022-01-23T09:23:19.000Z | GameEngine/TestUserActor.cpp | csyonghe/GameEngine | 1ac8174714a3a52e22a935f573121dd1ab0fa546 | [
"MIT"
] | 5 | 2016-11-14T21:18:57.000Z | 2019-07-12T04:01:12.000Z | GameEngine/TestUserActor.cpp | csyonghe/GameEngine | 1ac8174714a3a52e22a935f573121dd1ab0fa546 | [
"MIT"
] | 11 | 2016-11-14T21:11:46.000Z | 2020-09-10T07:29:01.000Z | #ifndef TEST_USER_ACTOR_H
#define TEST_USER_ACTOR_H
#include "Engine.h"
#include "Level.h"
#include "CoreLib/LibUI/LibUI.h"
#include "SystemWindow.h"
#include "RendererService.h"
using namespace GraphicsUI;
using namespace GameEngine;
using namespace VectorMath;
class TestUserActor : public Actor
{
private:
RefPtr<... | 35.90411 | 282 | 0.585464 | csyonghe |
2ad255a3f398ba6c58dce6b480d14e285e9cafc7 | 2,919 | hpp | C++ | src/core/include/ngraph/pass/graph_rewrite.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | src/core/include/ngraph/pass/graph_rewrite.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | src/core/include/ngraph/pass/graph_rewrite.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <functional>
#include <memory>
#include <ngraph/log.hpp>
#include <set>
#include "ngraph/pass/pass.hpp"
#include "ngraph/pattern/matcher.hpp"
#include "openvino/pass/graph_rewrite.hpp"
namespace ngraph {
usi... | 32.076923 | 100 | 0.618705 | ryanloney |
2ad345bf467066e2b409d5be8f12d8ffbbc531ca | 476 | cpp | C++ | parralel-prog/Lab5/F3.cpp | smithros/kpi-stuff | 60da5f960ab6ab3d1c2b0ea451d4d113c333d7ad | [
"MIT"
] | 21 | 2021-01-20T19:49:31.000Z | 2021-12-15T20:26:18.000Z | parralel-prog/Lab5/F3.cpp | smithros/kpi-stuff | 60da5f960ab6ab3d1c2b0ea451d4d113c333d7ad | [
"MIT"
] | 1 | 2021-03-13T17:24:41.000Z | 2021-05-28T18:33:49.000Z | parralel-prog/Lab5/F3.cpp | smithros/kpi-stuff | 60da5f960ab6ab3d1c2b0ea451d4d113c333d7ad | [
"MIT"
] | 3 | 2021-02-16T17:41:16.000Z | 2022-03-25T13:18:04.000Z | #include "F3.h"
F3::F3(int N) {
this->N = N;
}
Matrix* F3::getResult() {
return result;
}
DWORD WINAPI F3::startThread(void* param) {
F3* This = (F3*)param;
return This->run();
}
DWORD F3::run() {
cout << "Task 3 start\n";
Matrix *MP = new Matrix(N);
Matrix *MR = new Matrix(N);
Matrix *MS = new Matrix(N);
... | 17 | 46 | 0.60084 | smithros |
2ada44ee5b1e2e14e1a78d03268b78fcd27ce895 | 3,454 | hpp | C++ | libcaf_core/caf/make_source_result.hpp | v2nero/actor-framework | c2f811809143d32c598471a20363238b0882a761 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-07-16T19:01:52.000Z | 2020-07-16T19:01:52.000Z | libcaf_core/caf/make_source_result.hpp | Boubou818/actor-framework | da90ef78b26da5d225f039072e616da415c48494 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/make_source_result.hpp | Boubou818/actor-framework | da90ef78b26da5d225f039072e616da415c48494 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-02-19T11:25:15.000Z | 2021-02-19T11:25:15.000Z | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 36.357895 | 80 | 0.505501 | v2nero |
2adae3809de644fd7832ebcbc335df751e1be204 | 585 | cpp | C++ | voj/contest/418207/F.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2020-07-22T16:54:07.000Z | 2020-07-22T16:54:07.000Z | voj/contest/418207/F.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2018-05-12T12:53:06.000Z | 2018-05-12T12:53:06.000Z | voj/contest/418207/F.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | null | null | null | #include <iostream>
long long F (long long n) {
if (n == 0) {
return 0;
} else if (n % 10) {
return n%10;
} else {
return F(n/10);
}
}
long long ans;
void S(long long l, long long r) {
if (r - 1 < 9) {
for (int i = 1; i <= r; ++i) {
ans += F(i);
}
return ;
}
while (l % 10) {
ans += F(l);
++l... | 11.938776 | 34 | 0.432479 | TheBadZhang |
2adf8acbc2b2938f1227e2c0c169abbaa1ab3d3f | 3,913 | hh | C++ | aux/broker/broker/detail/network_cache.hh | zpx2012/zeek_3.0.8 | 7a912ebbdd0871838c7fb35538fef467279ec1fe | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 1 | 2021-03-06T19:51:07.000Z | 2021-03-06T19:51:07.000Z | aux/broker/broker/detail/network_cache.hh | zpx2012/zeek_3.0.8 | 7a912ebbdd0871838c7fb35538fef467279ec1fe | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | aux/broker/broker/detail/network_cache.hh | zpx2012/zeek_3.0.8 | 7a912ebbdd0871838c7fb35538fef467279ec1fe | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | #ifndef BROKER_DETAIL_NETWORK_CACHE_HPP
#define BROKER_DETAIL_NETWORK_CACHE_HPP
#include <cstdint>
#include <utility>
#include <set>
#include <string>
#include <unordered_map>
#include <caf/actor.hpp>
#include <caf/event_based_actor.hpp>
#include <caf/optional.hpp>
#include <caf/result.hpp>
#include <caf/io/middlema... | 30.811024 | 127 | 0.640174 | zpx2012 |
2adfd40c1074f0fca553eb7419662220dedd05c3 | 13,330 | cpp | C++ | src/Services/RenderService/RenderTextureService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Services/RenderService/RenderTextureService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Services/RenderService/RenderTextureService.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "RenderTextureService.h"
#include "Interface/WatchdogServiceInterface.h"
#include "Interface/PrefetcherServiceInterface.h"
#include "Interface/GraveyardServiceInterface.h"
#include "Interface/ConfigServiceInterface.h"
#include "Interface/CodecServiceInterface.h"
#include "Interface/EnumeratorServiceInterface.... | 37.027778 | 238 | 0.595874 | irov |
2ae3667b9b8d5be6565b6e8025951e2e4bc605d0 | 1,277 | cpp | C++ | src/gui/fader.cpp | synaodev/apostellein | f664a88d13f533df54ad6fb58c2ad8134f8f942c | [
"BSD-3-Clause"
] | 1 | 2022-01-16T07:06:13.000Z | 2022-01-16T07:06:13.000Z | src/gui/fader.cpp | synaodev/apostellein | f664a88d13f533df54ad6fb58c2ad8134f8f942c | [
"BSD-3-Clause"
] | null | null | null | src/gui/fader.cpp | synaodev/apostellein | f664a88d13f533df54ad6fb58c2ad8134f8f942c | [
"BSD-3-Clause"
] | null | null | null | #include <apostellein/konst.hpp>
#include "./fader.hpp"
#include "../x2d/renderer.hpp"
namespace {
constexpr r32 INCREMENTATION = 12.0f;
}
void gui::fader::clear() {
type_ = fade_type::done_out;
current_ = konst::WINDOW_DIMENSIONS<r32>();
}
void gui::fader::handle() {
switch (type_) {
case fade_type::done_in:... | 19.646154 | 57 | 0.650744 | synaodev |
2ae7d97fbf827552fbd97046e392405cadd306cf | 5,424 | cpp | C++ | projects/read_pot/tasks.cpp | j3270/SAMD_Experiments | 5c242aff44fc8d7092322d7baf2dda450a78a9b7 | [
"MIT"
] | null | null | null | projects/read_pot/tasks.cpp | j3270/SAMD_Experiments | 5c242aff44fc8d7092322d7baf2dda450a78a9b7 | [
"MIT"
] | null | null | null | projects/read_pot/tasks.cpp | j3270/SAMD_Experiments | 5c242aff44fc8d7092322d7baf2dda450a78a9b7 | [
"MIT"
] | null | null | null | /******************************************************************************
* MIT License
*
* Copyright (c) 2021 Justin J. Jordan
*
* 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 witho... | 30.818182 | 115 | 0.766409 | j3270 |
2aebde647e6537300825004bf2fe34d60977bb39 | 2,054 | cpp | C++ | qt/pubnub.cpp | sghiocel/pubnub-c | 149e536e4e1e973a717b324034aa08df9b1bc3a8 | [
"MIT"
] | 47 | 2015-07-09T14:14:32.000Z | 2022-03-03T21:47:16.000Z | qt/pubnub.cpp | parasyte/c-core | 943b39284837ea5db65eb2445fdc27a60753b183 | [
"MIT"
] | 52 | 2015-11-03T16:59:24.000Z | 2022-03-09T15:52:37.000Z | qt/pubnub.cpp | parasyte/c-core | 943b39284837ea5db65eb2445fdc27a60753b183 | [
"MIT"
] | 69 | 2015-08-19T11:32:27.000Z | 2022-03-31T16:20:13.000Z | #include "pubnub.hpp"
#include <QCoreApplication>
extern "C" {
#include "pubnub_helper.h"
}
using namespace pubnub;
futres::futres(context &ctx, pubnub_res initial) :
d_ctx(ctx), d_result(initial), d_triggered(false), d_mutex(QMutex::Recursive)
{
connect(&ctx.d_pbqt, SIGNAL(outcome(pubnub_res)), this, SLOT... | 21.175258 | 92 | 0.675755 | sghiocel |
2aef9b7bd6d40b9b372e903996061fdde1d8dae3 | 6,222 | cpp | C++ | System.Core/src/Switch/Microsoft/Win32/RegistryKeyAll.cpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 4 | 2021-10-14T01:43:00.000Z | 2022-03-13T02:16:08.000Z | System.Core/src/Switch/Microsoft/Win32/RegistryKeyAll.cpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | null | null | null | System.Core/src/Switch/Microsoft/Win32/RegistryKeyAll.cpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 2 | 2022-03-13T02:16:06.000Z | 2022-03-14T14:32:57.000Z | #if defined(__linux__) || defined(__APPLE__)
#include "../../../../include/Switch/Microsoft/Win32/Registry.hpp"
#include "../../../../include/Switch/Microsoft/Win32/RegistryKey.hpp"
#include "../../../../include/Switch/System/IO/Directory.hpp"
#include "../../../../include/Switch/System/IO/DirectoryInfo.hpp"
#include ... | 34.186813 | 170 | 0.701221 | kkptm |
2af25c52922d00b63ec90600f42a19a3135c6fcf | 16,532 | cpp | C++ | src/programs/mdrun/tests/domain_decomposition.cpp | alexxy/gromacs | 5a5b1be159beabc9ddd53eb22e3142bcb86d3aaa | [
"BSD-2-Clause"
] | null | null | null | src/programs/mdrun/tests/domain_decomposition.cpp | alexxy/gromacs | 5a5b1be159beabc9ddd53eb22e3142bcb86d3aaa | [
"BSD-2-Clause"
] | null | null | null | src/programs/mdrun/tests/domain_decomposition.cpp | alexxy/gromacs | 5a5b1be159beabc9ddd53eb22e3142bcb86d3aaa | [
"BSD-2-Clause"
] | null | null | null | /*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright 2015- The GROMACS Authors
* and the project initiators Erik Lindahl, Berk Hess and David van der Spoel.
* Consult the AUTHORS/COPYING files and https://www.gromacs.org for details.
*
* GROMACS is free software; you can redistribute... | 41.853165 | 109 | 0.661263 | alexxy |
2af3e2a3cdaa268634481eb382b94b07ee1df8bc | 12,231 | cpp | C++ | prefetcher/prefetcher.cpp | compor/prodigy_compiler_support_public | 014885eb9466076770e76b8c8b1fbe31735b4104 | [
"BSD-3-Clause"
] | 1 | 2021-12-30T10:48:08.000Z | 2021-12-30T10:48:08.000Z | prefetcher/prefetcher.cpp | compor/prodigy_compiler_support_public | 014885eb9466076770e76b8c8b1fbe31735b4104 | [
"BSD-3-Clause"
] | null | null | null | prefetcher/prefetcher.cpp | compor/prodigy_compiler_support_public | 014885eb9466076770e76b8c8b1fbe31735b4104 | [
"BSD-3-Clause"
] | 1 | 2021-12-30T10:47:58.000Z | 2021-12-30T10:47:58.000Z | /*
BSD 3-Clause License
Copyright (c) 2021, Kuba Kaszyk and Chris Vasiladiotis
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,... | 29.831707 | 239 | 0.678358 | compor |
2af4c8ead66fb0806b58c9656ba5b9bba909a8a4 | 3,875 | cpp | C++ | fon9/PkCont_UT.cpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 21 | 2019-01-29T14:41:46.000Z | 2022-03-11T00:22:56.000Z | fon9/PkCont_UT.cpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | null | null | null | fon9/PkCont_UT.cpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 9 | 2019-01-27T14:19:33.000Z | 2022-03-11T06:18:24.000Z | // \file fon9/PkCont_UT.cpp
// \author fonwinz@gmail.com
#define _CRT_SECURE_NO_WARNINGS
#include "fon9/PkCont.hpp"
#include "fon9/TestTools.hpp"
#include "fon9/Endian.hpp"
#include "fon9/CountDownLatch.hpp"
struct Feeder : public fon9::PkContFeeder {
fon9_NON_COPY_NON_MOVE(Feeder);
using base = fon9::PkContFee... | 34.292035 | 97 | 0.592774 | fonwin |
2af998d639656d149eaf69afaa59f19811f3116a | 702 | cpp | C++ | src/obsolete/udev.cpp | pdumais/dhas | 424212d4766c02f5df9e363ddb8ad2c295ed49d8 | [
"MIT"
] | 12 | 2015-09-09T07:05:27.000Z | 2020-12-27T12:52:28.000Z | src/obsolete/udev.cpp | pdumais/dhas | 424212d4766c02f5df9e363ddb8ad2c295ed49d8 | [
"MIT"
] | null | null | null | src/obsolete/udev.cpp | pdumais/dhas | 424212d4766c02f5df9e363ddb8ad2c295ed49d8 | [
"MIT"
] | 2 | 2016-10-23T05:23:20.000Z | 2020-09-17T22:01:33.000Z | #include "DHASLogging.h"
#include <stdio.h>
#include <string>
#include <sstream>
#include "config.h"
#include "UDev.h"
#include <string.h>
unsigned long getMemUsage()
{
char buf[1024];
FILE* f = fopen("/proc/self/status","r");
while (fgets(buf,1024,f))
{
if (!strncmp(buf,"VmSize:",7))
... | 18.972973 | 57 | 0.534188 | pdumais |
2afa230a6982415423598f47a93dfd858fb2510d | 774 | cpp | C++ | src/blinktask.cpp | XMrVertigoX/DualLampSwitch | c86a0bd38cc4e585de24cc2d8494067468fc4483 | [
"MIT"
] | null | null | null | src/blinktask.cpp | XMrVertigoX/DualLampSwitch | c86a0bd38cc4e585de24cc2d8494067468fc4483 | [
"MIT"
] | null | null | null | src/blinktask.cpp | XMrVertigoX/DualLampSwitch | c86a0bd38cc4e585de24cc2d8494067468fc4483 | [
"MIT"
] | null | null | null | #include <em_cmu.h>
#include <em_gpio.h>
#include <FreeRTOS.h>
#include <semphr.h>
#include <task.h>
#include "blinktask.hpp"
using namespace xXx;
BlinkTask::BlinkTask(uint16_t stack, UBaseType_t priority)
: ArduinoTask(stack, priority), _LastWakeTime(0) {}
BlinkTask::~BlinkTask() {}
void BlinkTask::setup() {... | 22.114286 | 63 | 0.728682 | XMrVertigoX |
2afa4086cdaae5e0aa81c05a98e43cfd82547e84 | 774 | cpp | C++ | UVA10924.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 17 | 2015-12-08T18:50:03.000Z | 2022-03-16T01:23:20.000Z | UVA10924.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | null | null | null | UVA10924.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 6 | 2017-04-04T18:16:23.000Z | 2020-06-28T11:07:22.000Z | #include <iostream>
#include <unordered_set>
#include <bitset>
#include <string>
#include <cctype>
using namespace std;
typedef long long ll;
ll sieve_size;
bitset<10000010> bs;
unordered_set<int> primes;
void sieve(ll upperbound) {
sieve_size=upperbound+1; bs.set(); bs[0]=bs[1]=0;
for (ll i=2; i<=sieve_size; i++) ... | 22.114286 | 63 | 0.595607 | MaSteve |
630053987f198b6cd2d83ed4a11af4dde0f561f4 | 15,094 | cpp | C++ | qt-creator-opensource-src-4.6.1/tests/manual/shootout/tst_codesize.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/tests/manual/shootout/tst_codesize.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/tests/manual/shootout/tst_codesize.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 30.678862 | 88 | 0.534583 | kevinlq |
63069b3b6a55828d4064129407daa848c0d8a02b | 1,328 | cpp | C++ | src/renderer/MemoryBuffer.cpp | elix22/GPlayEngine | 5b73da393ddfc30905dcaca678a62d642b7d8912 | [
"Apache-2.0"
] | 175 | 2018-06-26T04:40:00.000Z | 2022-03-31T11:15:57.000Z | src/renderer/MemoryBuffer.cpp | elix22/GPlayEngine | 5b73da393ddfc30905dcaca678a62d642b7d8912 | [
"Apache-2.0"
] | 11 | 2018-07-07T14:58:21.000Z | 2020-09-09T11:44:25.000Z | src/renderer/MemoryBuffer.cpp | elix22/GPlayEngine | 5b73da393ddfc30905dcaca678a62d642b7d8912 | [
"Apache-2.0"
] | 42 | 2018-07-23T10:05:27.000Z | 2021-12-05T22:26:25.000Z | #include "../renderer/MemoryBuffer.h"
namespace gplay {
//---------------------------------------------------------
// IBuffer
//---------------------------------------------------------
IBuffer::IBuffer()
{
_size = 0;
}
IBuffer::~IBuffer()
{
destroy();
}
void IBuffer::resize(uint32_t newSize)
{
if (_s... | 13.414141 | 59 | 0.508283 | elix22 |
6306f6446d8b5786251e2fbf734199ab4c649530 | 2,203 | cpp | C++ | BearIO/BearFilePackageStream.cpp | BearIvan/bearcore | 330a7983cb831fa4222b3ddfefc4c02df1267f0f | [
"MIT"
] | 1 | 2020-10-17T08:04:12.000Z | 2020-10-17T08:04:12.000Z | BearIO/BearFilePackageStream.cpp | BearIvan/bearcore | 330a7983cb831fa4222b3ddfefc4c02df1267f0f | [
"MIT"
] | null | null | null | BearIO/BearFilePackageStream.cpp | BearIvan/bearcore | 330a7983cb831fa4222b3ddfefc4c02df1267f0f | [
"MIT"
] | 1 | 2020-04-24T20:19:07.000Z | 2020-04-24T20:19:07.000Z | #include "BearCore.hpp"
BearFilePackageStream::BearFilePackageStream():m_tell(0),m_ptr(0),m_size(0)
{
}
BearFilePackageStream::~BearFilePackageStream()
{
}
BearFilePackageStream::BearFilePackageStream(const BearFilePackageStream & right) :m_tell(0), m_ptr(0), m_size(0)
{
Copy(right);
}
BearFilePackageStream::Bear... | 19.669643 | 113 | 0.744893 | BearIvan |
630ac956a82b703c068c3dfbf3954760cecce7ee | 5,825 | cpp | C++ | src/MxGridFieldInterpolator.cpp | bauerca/maxwell | cf8e2decb42f8ee5235c26314af4eee7b39c9411 | [
"Unlicense"
] | 2 | 2015-08-18T17:12:01.000Z | 2017-08-10T08:51:20.000Z | src/MxGridFieldInterpolator.cpp | bauerca/maxwell | cf8e2decb42f8ee5235c26314af4eee7b39c9411 | [
"Unlicense"
] | null | null | null | src/MxGridFieldInterpolator.cpp | bauerca/maxwell | cf8e2decb42f8ee5235c26314af4eee7b39c9411 | [
"Unlicense"
] | 3 | 2017-06-24T14:15:52.000Z | 2021-07-23T02:01:35.000Z | #include "MxGridFieldInterpolator.h"
#include "MxDimVector.hpp"
#include "MxGridFieldIter.hpp"
template<size_t DIM, typename Scalar>
MxGridFieldInterpolator<DIM, Scalar>::MxGridFieldInterpolator(
MxGridField<DIM> const * fromField,
MxGridField<DIM> const * toField) :
MxCrsMatrix<Scalar>(toField->getMap(), fromField-... | 32.909605 | 92 | 0.692532 | bauerca |
deb9535f6d3e6ecfd7e6144eb84d3cfc2ef6ebac | 733 | cpp | C++ | DanielaBarrios_Final.cpp | DanielaFBL/DanielaBarrios_Final | f2914a67021bd2aba09078e564970374831f90ec | [
"MIT"
] | null | null | null | DanielaBarrios_Final.cpp | DanielaFBL/DanielaBarrios_Final | f2914a67021bd2aba09078e564970374831f90ec | [
"MIT"
] | null | null | null | DanielaBarrios_Final.cpp | DanielaFBL/DanielaBarrios_Final | f2914a67021bd2aba09078e564970374831f90ec | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
int main(){
float m = 7294.29;
float q = 2;
float omega=1.0;
return 0;
}
void leapfrog (float t0, float tf, float dt, float m, float q, string datos){
float t0=0.0;
float x=1.0;
float y=0.0;
float tf=10.0;... | 15.270833 | 77 | 0.45839 | DanielaFBL |
debcd9b2f4e8b3278c797248b6222690090f3f9c | 4,003 | cpp | C++ | cpp/src/rmfs.xtreemfs/rmfs_options.cpp | stanik137/xtreemfs | e548deba8be2631ab0d2e47a1652941729cf70de | [
"BSD-3-Clause"
] | 270 | 2015-01-03T22:15:03.000Z | 2022-03-14T03:45:59.000Z | cpp/src/rmfs.xtreemfs/rmfs_options.cpp | stanik137/xtreemfs | e548deba8be2631ab0d2e47a1652941729cf70de | [
"BSD-3-Clause"
] | 84 | 2015-01-05T10:14:40.000Z | 2022-03-10T21:11:13.000Z | cpp/src/rmfs.xtreemfs/rmfs_options.cpp | stanik137/xtreemfs | e548deba8be2631ab0d2e47a1652941729cf70de | [
"BSD-3-Clause"
] | 59 | 2015-03-07T23:53:19.000Z | 2022-02-22T07:33:13.000Z | /*
* Copyright (c) 2011 by Michael Berlin, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
#include "rmfs.xtreemfs/rmfs_options.h"
#include <boost/program_options/cmdline.hpp>
#include <iostream>
#include <sstream>
#include "libxtreemfs/helper.h"
#include "libxtreemf... | 31.273438 | 93 | 0.694979 | stanik137 |
debf8fff70fdf33dae3f3a3c91062b23b981beee | 1,988 | cpp | C++ | src/Coordination/WriteBufferFromNuraftBuffer.cpp | 540522905/ClickHouse | 299445ec7da10bd2ef62d8e333a95b7ab12bf5f2 | [
"Apache-2.0"
] | 15,577 | 2019-09-23T11:57:53.000Z | 2022-03-31T18:21:48.000Z | src/Coordination/WriteBufferFromNuraftBuffer.cpp | 540522905/ClickHouse | 299445ec7da10bd2ef62d8e333a95b7ab12bf5f2 | [
"Apache-2.0"
] | 16,476 | 2019-09-23T11:47:00.000Z | 2022-03-31T23:06:01.000Z | src/Coordination/WriteBufferFromNuraftBuffer.cpp | 540522905/ClickHouse | 299445ec7da10bd2ef62d8e333a95b7ab12bf5f2 | [
"Apache-2.0"
] | 3,633 | 2019-09-23T12:18:28.000Z | 2022-03-31T15:55:48.000Z | #include <Coordination/WriteBufferFromNuraftBuffer.h>
#include <base/logger_useful.h>
namespace DB
{
namespace ErrorCodes
{
extern const int CANNOT_WRITE_AFTER_END_OF_BUFFER;
}
void WriteBufferFromNuraftBuffer::nextImpl()
{
if (is_finished)
throw Exception("WriteBufferFromNuraftBuffer is finished", E... | 27.611111 | 159 | 0.703219 | 540522905 |
dec0c16542a97df2aeea3aa4987d740f8fb06e5d | 943 | cpp | C++ | src/objective3d.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/objective3d.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/objective3d.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file objective3d.cpp
* @brief Application dynamic library entry
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2001-12-25
* @copyright Copyright (C) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/objective3d.h"
#include "o3d/core/architecture.h"
// it... | 23 | 86 | 0.658537 | dream-overflow |
deccb41abfa17ce8b58e5e8131bf06b4ea74f875 | 2,648 | cpp | C++ | cpp/src/Rpc/RpcObjectPool.cpp | zhuyanxie/LangStack | 2d1b23cc725898c49f5f3f58f19310881cad273d | [
"MIT"
] | null | null | null | cpp/src/Rpc/RpcObjectPool.cpp | zhuyanxie/LangStack | 2d1b23cc725898c49f5f3f58f19310881cad273d | [
"MIT"
] | null | null | null | cpp/src/Rpc/RpcObjectPool.cpp | zhuyanxie/LangStack | 2d1b23cc725898c49f5f3f58f19310881cad273d | [
"MIT"
] | null | null | null | /******************************************************************************
Copyright (C) 2015 zhuyanxie
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 w... | 27.583333 | 83 | 0.637085 | zhuyanxie |
decfecdda5274a2ffe14db48aef52e774d85db73 | 765 | cpp | C++ | UVa 11971 - Polygon/sample/11971 - Polygon.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 11971 - Polygon/sample/11971 - Polygon.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 11971 - Polygon/sample/11971 - Polygon.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <vector>
#include <assert.h>
#include <map>
#include <algorithm>
using namespace std;
long long gcd(long long x, long long y) {
for (long long t; x%y; t = x, x = y, y = t%y);
return y;
}
int main() {
int n, k, cases = 0;
scanf("%*d");
... | 21.25 | 96 | 0.457516 | tadvi |
ded1309f8feb0c5c1fd4661d258b41e14c53d0e8 | 3,313 | hpp | C++ | proton-c/bindings/cpp/include/proton/messaging_adapter.hpp | Azure/qpid-proton | fa784b1f3c4f3dbd6b143d5cceda10bf76da23a5 | [
"Apache-2.0"
] | 2 | 2020-04-28T13:33:06.000Z | 2020-06-01T14:51:05.000Z | proton-c/bindings/cpp/include/proton/messaging_adapter.hpp | Azure/qpid-proton | fa784b1f3c4f3dbd6b143d5cceda10bf76da23a5 | [
"Apache-2.0"
] | null | null | null | proton-c/bindings/cpp/include/proton/messaging_adapter.hpp | Azure/qpid-proton | fa784b1f3c4f3dbd6b143d5cceda10bf76da23a5 | [
"Apache-2.0"
] | 4 | 2015-10-17T20:44:45.000Z | 2021-06-08T19:00:56.000Z | #ifndef PROTON_CPP_MESSAGING_ADAPTER_H
#define PROTON_CPP_MESSAGING_ADAPTER_H
/*
*
* 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 ... | 41.936709 | 97 | 0.779052 | Azure |
ded2a7014e51e63036da42da0be6559d3da9077e | 3,881 | cpp | C++ | src/app.cpp | antongus/clock-7-seg | 090778c28d078541e376531327e23a9a669e8b29 | [
"MIT"
] | null | null | null | src/app.cpp | antongus/clock-7-seg | 090778c28d078541e376531327e23a9a669e8b29 | [
"MIT"
] | null | null | null | src/app.cpp | antongus/clock-7-seg | 090778c28d078541e376531327e23a9a669e8b29 | [
"MIT"
] | null | null | null | /**
* @file app.cpp
*
* Application class implementation.
* Copyright © 2015 Anton B. Gusev aka AHTOXA
**/
#include "app.h"
#include "textbuf.h"
/**
* Dynamic indication loop.
*/
OS_PROCESS void Application::RefreshLoop()
{
int kbdCounter = 20;
// restore brightness at startup
digits_.SetBrightness(BKP->DR2);... | 19.118227 | 60 | 0.646998 | antongus |
ded510b573e3c00f111631fc62198da623024f50 | 1,371 | cpp | C++ | Flatten/GA/c2ga_draw.cpp | mauriciocele/arap-svd | bbefe4b0f18d7cd5e834b4c54e518f0d70f49565 | [
"MIT"
] | 4 | 2021-01-05T15:14:34.000Z | 2021-09-08T14:08:49.000Z | Flatten/GA/c2ga_draw.cpp | mauriciocele/arap-svd | bbefe4b0f18d7cd5e834b4c54e518f0d70f49565 | [
"MIT"
] | null | null | null | Flatten/GA/c2ga_draw.cpp | mauriciocele/arap-svd | bbefe4b0f18d7cd5e834b4c54e518f0d70f49565 | [
"MIT"
] | null | null | null | // 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
// of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful,
... | 27.42 | 88 | 0.722101 | mauriciocele |
ded513904dbd40be12eaf1d591259c65228ac98f | 6,759 | cpp | C++ | Enterprise/src/Enterprise/Time/Time.cpp | theOtherMichael/Enterprise | 1f018e364c58808c36af9a428a081bb441387847 | [
"Apache-2.0"
] | null | null | null | Enterprise/src/Enterprise/Time/Time.cpp | theOtherMichael/Enterprise | 1f018e364c58808c36af9a428a081bb441387847 | [
"Apache-2.0"
] | null | null | null | Enterprise/src/Enterprise/Time/Time.cpp | theOtherMichael/Enterprise | 1f018e364c58808c36af9a428a081bb441387847 | [
"Apache-2.0"
] | null | null | null | #include "EP_PCH.h"
#include "Time.h"
#include "Enterprise/Graphics/Graphics.h"
using Enterprise::Time;
static uint64_t fixedTimestepInRealTicks;
#ifdef EP_CONFIG_DIST
static uint64_t fixedTimestepInGameTicks, maxFrameDeltaInRealTicks;
#endif
static double currentTimeScale = 1.0;
static uint64_t currentSysTimeInTic... | 33.626866 | 149 | 0.802486 | theOtherMichael |
ded6c242d020ad4c4d22f0bde61e7cbeb57fccaa | 4,360 | cc | C++ | be/src/exec/parquet/parquet-bool-decoder-test.cc | adoroszlai/impala | ea13e744977c71206c11a54f65d77aeecb55703d | [
"Apache-2.0"
] | 746 | 2017-12-02T06:02:05.000Z | 2022-03-29T06:59:03.000Z | be/src/exec/parquet/parquet-bool-decoder-test.cc | xwzbupt/impala | 97dda2b27da99367f4d07699aa046b16cda16dd4 | [
"Apache-2.0"
] | 9 | 2018-01-30T16:16:22.000Z | 2021-08-31T00:13:28.000Z | be/src/exec/parquet/parquet-bool-decoder-test.cc | xwzbupt/impala | 97dda2b27da99367f4d07699aa046b16cda16dd4 | [
"Apache-2.0"
] | 363 | 2017-12-10T01:08:17.000Z | 2022-03-26T05:25:00.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... | 40.37037 | 86 | 0.70711 | adoroszlai |
ded73efd2f98c074186f084b6a378806ec7572fa | 927 | cpp | C++ | DP/Cut_rod_example.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | DP/Cut_rod_example.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | DP/Cut_rod_example.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | /* ***********************************************************************
> File Name: Cut_rod_example.cpp
> Author: zzy
> Mail: 942744575@qq.com
> Created Time: Sun 03 Mar 2019 03:17:27 PM CST
********************************************************************** */
/*
* 不同长度的钢条,具有不同的价值,而切割工序没有成本支出,公司管理... | 23.175 | 95 | 0.488673 | obviouskkk |
ded793c27eb89f826a9204701ae3d557dbcfd876 | 21,198 | cpp | C++ | tests/eosio.limitauth_tests.cpp | guilledk/mandel-contracts | 0d452a3b45404a57f039c8a944534be1368032be | [
"MIT"
] | 8 | 2022-01-06T19:55:54.000Z | 2022-03-25T07:11:36.000Z | tests/eosio.limitauth_tests.cpp | gofractally/mandel-contracts | 0d452a3b45404a57f039c8a944534be1368032be | [
"MIT"
] | 6 | 2022-01-06T17:59:06.000Z | 2022-01-31T15:25:15.000Z | tests/eosio.limitauth_tests.cpp | gofractally/mandel-contracts | 0d452a3b45404a57f039c8a944534be1368032be | [
"MIT"
] | 8 | 2022-01-13T21:27:23.000Z | 2022-03-25T07:11:42.000Z | #include <Runtime/Runtime.h>
#include <boost/test/unit_test.hpp>
#include <cstdlib>
#include <eosio/chain/contract_table_objects.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/global_property_object.hpp>
#include <eosio/chain/resource_limits.hpp>
#include <eosio/chain/wast_to_wasm.hpp>
#include <fc/lo... | 41.810651 | 152 | 0.688603 | guilledk |
ded885b9243bd911d25f242d9ddf53b2bf47b6aa | 1,197 | hh | C++ | src/Common/fasta.hh | sagrudd/amos | 47643a1d238bff83421892cb74daaf6fff8d9548 | [
"Artistic-1.0"
] | 10 | 2015-03-20T18:25:56.000Z | 2020-06-02T22:00:08.000Z | src/Common/fasta.hh | sagrudd/amos | 47643a1d238bff83421892cb74daaf6fff8d9548 | [
"Artistic-1.0"
] | 5 | 2015-05-14T17:51:20.000Z | 2020-07-19T04:17:47.000Z | src/Common/fasta.hh | sagrudd/amos | 47643a1d238bff83421892cb74daaf6fff8d9548 | [
"Artistic-1.0"
] | 10 | 2015-05-17T16:01:23.000Z | 2020-05-20T08:13:43.000Z | // A. L. Delcher
//
// File: fasta.h
//
// Last Modified: 25 November 2002
//
// Routines to manipulate FASTA format files
#ifndef __FASTA_HH
#define __FASTA_HH
#include "delcher.hh"
#include <string>
#include <vector>
#include <cstring>
const int DEFAULT_FASTA_WIDTH = 60;
// Max number of characte... | 23.019231 | 75 | 0.658312 | sagrudd |
dee150a933928bf6bfe92c09c1a8d382c686db74 | 2,651 | hpp | C++ | libs/ecs/include/GameplayManager.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | null | null | null | libs/ecs/include/GameplayManager.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | null | null | null | libs/ecs/include/GameplayManager.hpp | Sharpyfile/WARdrobe | 7842d486f65c7a045771f9ef78c0655eda2d346a | [
"DOC"
] | 1 | 2021-03-21T16:52:22.000Z | 2021-03-21T16:52:22.000Z | #pragma once
#include <cassert>
#include <memory>
#include <unordered_map>
#include <vector>
#include "ComponentManager.hpp"
#include "ECSTypes.hpp"
#include "EntityManager.hpp"
#include "SystemManager.hpp"
class GameplayManager
{
public:
void Init()
{
// Create pointers to each manager
componentManager = std:... | 24.1 | 76 | 0.763108 | Sharpyfile |
dee1db6933d541784cdb98aa468e12af688755d7 | 1,810 | hpp | C++ | lihowarlib/include/lihowarlib/io/ConfigSerializer.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | lihowarlib/include/lihowarlib/io/ConfigSerializer.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | lihowarlib/include/lihowarlib/io/ConfigSerializer.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | /*
* Copyright (c) 2020-2021 Lihowar
*
* This software is licensed under OSEF License.
*
* The "Software" is defined as the pieces of code, the documentation files, the config
* files, the textures assets, the Wavefront OBJ assets, the screenshot image, the sound
* effects and music associated with.
*
* ... | 30.677966 | 122 | 0.712155 | ludchieng |
dee8f55e6a4095f23c71dc5914919940c8bfd820 | 8,986 | cpp | C++ | tests/FileSender.cpp | catid/tonk | e993c9b7d1bf14bd510739036e022cf24c3ecf3c | [
"BSD-3-Clause"
] | 91 | 2018-09-14T12:35:50.000Z | 2021-12-24T18:09:35.000Z | tests/FileSender.cpp | catid/tonk | e993c9b7d1bf14bd510739036e022cf24c3ecf3c | [
"BSD-3-Clause"
] | 6 | 2018-09-15T00:30:37.000Z | 2018-09-18T17:58:22.000Z | tests/FileSender.cpp | catid/tonk | e993c9b7d1bf14bd510739036e022cf24c3ecf3c | [
"BSD-3-Clause"
] | 9 | 2018-09-14T14:04:16.000Z | 2022-03-22T14:36:45.000Z | /*
Copyright (c) 2018 Christopher A. Taylor. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of ... | 29.462295 | 132 | 0.637992 | catid |
deea02df274624662688c1f57af5633f8709c74d | 9,853 | cpp | C++ | src/wigner_d.cpp | dglazier/jpacPhoto | a364cf40610f793bee50c4e1ce61615cd30f30a5 | [
"MIT"
] | null | null | null | src/wigner_d.cpp | dglazier/jpacPhoto | a364cf40610f793bee50c4e1ce61615cd30f30a5 | [
"MIT"
] | null | null | null | src/wigner_d.cpp | dglazier/jpacPhoto | a364cf40610f793bee50c4e1ce61615cd30f30a5 | [
"MIT"
] | null | null | null | // Wigner little-d functions for half-integer spin particles
//
// Author: Daniel Winney (2020)
// Affiliation: Joint Physics Analysis Center (JPAC)
// Email: dwinney@iu.edu
// ---------------------------------------------------------------------------
#include "misc_math.hpp"
// --------------... | 24.388614 | 91 | 0.357962 | dglazier |
deed00e11b964c85558aa5e5ef32d5eb3f8ee7b1 | 419 | cpp | C++ | src/TimeStats.cpp | dudad/words | bba0d3bd1c2a5fd395fa3f0166fcf9c4c2063074 | [
"MIT"
] | null | null | null | src/TimeStats.cpp | dudad/words | bba0d3bd1c2a5fd395fa3f0166fcf9c4c2063074 | [
"MIT"
] | null | null | null | src/TimeStats.cpp | dudad/words | bba0d3bd1c2a5fd395fa3f0166fcf9c4c2063074 | [
"MIT"
] | null | null | null | #include "TimeStats.h"
#include <numeric>
void TimeStats::init(unsigned int bucket)
{
m_currBucketIdx = bucket;
m_ticks = SDL_GetTicks();
}
void TimeStats::set(unsigned int bucket)
{
Uint32 now = SDL_GetTicks();
m_buckets[m_currBucketIdx] += (now - m_ticks);
m_currBucketIdx = bucket;
m_ticks = now;
}
u... | 18.217391 | 64 | 0.706444 | dudad |
deedcad9d367c22ea4b40f7019b82c2d9253f67a | 3,363 | cpp | C++ | source/gloperate/source/stages/lights/LightBufferTextureStage.cpp | lordgeorg/gloperate | 13a6363fdac1f9ff06d91c9bc99649eacd87078e | [
"MIT"
] | 34 | 2015-10-07T12:26:27.000Z | 2021-04-06T06:35:01.000Z | source/gloperate/source/stages/lights/LightBufferTextureStage.cpp | lordgeorg/gloperate | 13a6363fdac1f9ff06d91c9bc99649eacd87078e | [
"MIT"
] | 219 | 2015-07-07T15:55:03.000Z | 2018-09-28T08:54:36.000Z | source/gloperate/source/stages/lights/LightBufferTextureStage.cpp | lordgeorg/gloperate | 13a6363fdac1f9ff06d91c9bc99649eacd87078e | [
"MIT"
] | 21 | 2015-07-07T14:33:08.000Z | 2018-12-23T12:43:56.000Z |
#include <gloperate/stages/lights/LightBufferTextureStage.h>
#include <glm/vec3.hpp>
#include <glbinding/gl/enum.h>
#include <globjects/Buffer.h>
#include <globjects/Texture.h>
#include <gloperate/rendering/Light.h>
namespace
{
struct ColorTypeEntry
{
glm::vec3 color;
float type;
};
}
namespace glopera... | 27.565574 | 101 | 0.742194 | lordgeorg |
def56e35d0f136d3049c042b236e8e909086cc68 | 1,862 | cpp | C++ | source/shared/kernels/resourcekernels/emotion.cpp | AmonShokhinAhmed/TattleTale | b3ec96ca7831d38f2cce88f1ef02f351d9f8547f | [
"MIT"
] | 1 | 2022-03-22T16:17:45.000Z | 2022-03-22T16:17:45.000Z | source/shared/kernels/resourcekernels/emotion.cpp | AmonShokhinAhmed/TattleTale | b3ec96ca7831d38f2cce88f1ef02f351d9f8547f | [
"MIT"
] | 88 | 2022-01-31T09:16:19.000Z | 2022-03-29T19:30:50.000Z | source/shared/kernels/resourcekernels/emotion.cpp | AmonShokhinAhmed/TattleTale | b3ec96ca7831d38f2cce88f1ef02f351d9f8547f | [
"MIT"
] | null | null | null | #include "shared/kernels/resourcekernels/emotion.hpp"
#include <assert.h>
#include <iostream>
#include <fmt/core.h>
#include "shared/actor.hpp"
namespace tattletale
{
Emotion::Emotion(EmotionType type, size_t id, size_t tick, Actor *owner, std::vector<Kernel *> reasons, float value)
: Resource(
... | 34.481481 | 121 | 0.581096 | AmonShokhinAhmed |
def95af310a929968f78ff84aec0cdbd52e0130f | 28 | hpp | C++ | Engine/vendor/zed/include/sl/Camera.hpp | jeroennelis/Engine | 43ed6c76d1eeeeddd7fd2b3b38d17ed72d312f1f | [
"Apache-2.0"
] | 2 | 2019-05-17T17:08:30.000Z | 2020-12-15T09:42:04.000Z | Engine/vendor/zed/include/sl/Camera.hpp | jeroennelis/Engine | 43ed6c76d1eeeeddd7fd2b3b38d17ed72d312f1f | [
"Apache-2.0"
] | null | null | null | Engine/vendor/zed/include/sl/Camera.hpp | jeroennelis/Engine | 43ed6c76d1eeeeddd7fd2b3b38d17ed72d312f1f | [
"Apache-2.0"
] | null | null | null | #include <sl_zed/Camera.hpp> | 28 | 28 | 0.785714 | jeroennelis |
defbc8aa803262daf230b57e40a564e58c6dfeb3 | 2,215 | hpp | C++ | Source/server/src/DBBackEnd.hpp | fmiguelgarcia/crossover | 380d12e7cb9f892894889f7a0f25ecd60c775fc7 | [
"MIT"
] | null | null | null | Source/server/src/DBBackEnd.hpp | fmiguelgarcia/crossover | 380d12e7cb9f892894889f7a0f25ecd60c775fc7 | [
"MIT"
] | null | null | null | Source/server/src/DBBackEnd.hpp | fmiguelgarcia/crossover | 380d12e7cb9f892894889f7a0f25ecd60c775fc7 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 Francisco Miguel Garcia
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify,... | 33.059701 | 77 | 0.728668 | fmiguelgarcia |
defcb26b2fa2f23bd59d5339838adfb13477bf8d | 33,706 | cpp | C++ | src/prefsdlg.cpp | devinsmith/ngnc | cbcf69b435cc8c26ff6adf2f86a0eae1cfdc948e | [
"0BSD"
] | null | null | null | src/prefsdlg.cpp | devinsmith/ngnc | cbcf69b435cc8c26ff6adf2f86a0eae1cfdc948e | [
"0BSD"
] | null | null | null | src/prefsdlg.cpp | devinsmith/ngnc | cbcf69b435cc8c26ff6adf2f86a0eae1cfdc948e | [
"0BSD"
] | null | null | null | /*
* Copyright (c) 2016-2019 Devin Smith <devin@devinsmith.net>
*
* Permission to use, copy, modify, and 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 I... | 53.757576 | 241 | 0.648015 | devinsmith |
defcc13dbe875f434dad15e1fd141052733dd4de | 245 | cxx | C++ | source/code/icelib/private/output/elements/include.cxx | iceshard-engine/code-emitter | b86eda2bc0cbdc4302fb4b03ce012ca2a0f3aeea | [
"BSD-3-Clause-Clear"
] | null | null | null | source/code/icelib/private/output/elements/include.cxx | iceshard-engine/code-emitter | b86eda2bc0cbdc4302fb4b03ce012ca2a0f3aeea | [
"BSD-3-Clause-Clear"
] | 2 | 2019-09-30T05:20:37.000Z | 2019-10-10T19:18:59.000Z | source/code/icelib/private/output/elements/include.cxx | iceshard-engine/code-emitter | b86eda2bc0cbdc4302fb4b03ce012ca2a0f3aeea | [
"BSD-3-Clause-Clear"
] | null | null | null | #include <ice/output/elements/include.hxx>
namespace ice::output
{
template<>
auto ice::output::identifier(Include const& data) noexcept -> std::string
{
return { "include:" + data.path };
}
} // namespace ice::output
| 18.846154 | 77 | 0.632653 | iceshard-engine |
defd03bc6160f50bfe311cc7021a0b293db8d6d0 | 303 | cpp | C++ | src/utils/log.cpp | vtavernier/libshadertoy | a0b2a133199383cc7e9bcb3c0300f39eb95177c0 | [
"MIT"
] | 2 | 2020-02-23T09:33:07.000Z | 2021-11-15T18:23:13.000Z | src/utils/log.cpp | vtavernier/libshadertoy | a0b2a133199383cc7e9bcb3c0300f39eb95177c0 | [
"MIT"
] | 2 | 2019-08-09T15:48:07.000Z | 2020-11-16T13:51:56.000Z | src/utils/log.cpp | vtavernier/libshadertoy | a0b2a133199383cc7e9bcb3c0300f39eb95177c0 | [
"MIT"
] | 3 | 2019-12-12T09:42:34.000Z | 2020-12-14T03:56:30.000Z | #include "shadertoy/utils/log.hpp"
using namespace shadertoy::utils;
namespace spd = spdlog;
bool log::initialized_ = false;
std::shared_ptr<spd::logger> log::shadertoy()
{
if (!initialized_)
{
initialized_ = true;
return spd::stderr_color_st("shadertoy");
}
return spd::get("shadertoy");
}
| 16.833333 | 45 | 0.709571 | vtavernier |
720122c35945ec937b381a4b640afb2221773fdd | 13,297 | cc | C++ | src/mesh/test/test_entity_iterators.cc | lanl/Jali | 96c6518f4aea39a667d8d752ebc496cbbc8db29b | [
"BSD-3-Clause"
] | 13 | 2017-05-01T13:30:01.000Z | 2022-03-30T22:42:40.000Z | src/mesh/test/test_entity_iterators.cc | mjgpinheiro/jali | fcfcf9f9889aec250eb715d7f98ac5860d640189 | [
"BSD-3-Clause"
] | 6 | 2018-04-05T14:15:21.000Z | 2022-01-18T19:55:56.000Z | src/mesh/test/test_entity_iterators.cc | mjgpinheiro/jali | fcfcf9f9889aec250eb715d7f98ac5860d640189 | [
"BSD-3-Clause"
] | 10 | 2017-05-05T22:28:56.000Z | 2020-05-27T11:20:11.000Z | /*
Copyright (c) 2019, Triad National Security, LLC
All rights reserved.
Copyright 2019. Triad National Security, LLC. This software was
produced under U.S. Government contract 89233218CNA000001 for Los
Alamos National Laboratory (LANL), which is operated by Triad
National Security, LLC for the U.S. Department o... | 38.766764 | 88 | 0.599233 | lanl |
7203b9f9e5b03aedb382352776caa2528c41b72a | 41,092 | cpp | C++ | EASE/toolsrc/NEWTRAN/gennedX/EASEgen.cpp | amullarney/EAS-E | d76558ea2f29bd9fa9147b11195b8e793414756c | [
"MIT"
] | null | null | null | EASE/toolsrc/NEWTRAN/gennedX/EASEgen.cpp | amullarney/EAS-E | d76558ea2f29bd9fa9147b11195b8e793414756c | [
"MIT"
] | 1 | 2019-10-11T21:45:56.000Z | 2019-10-12T13:26:33.000Z | EASE/tooldev/ExpTRAN/DevTRAN/EASEgen.cpp | amullarney/EAS-E | d76558ea2f29bd9fa9147b11195b8e793414756c | [
"MIT"
] | 2 | 2019-10-13T11:22:10.000Z | 2019-10-16T11:33:48.000Z | #include "stdafx.h"
#include "malloc.h"
#include "libopts.h"
#include "math.h"
#include "EASEgen.h"
void EASEgen_addTypes() {
}
EASEgen_sys* EASEgen;
void EASEgen_init() {
EASEgen = (EASEgen_sys*)E_CREATE_F( 0,3008, sizeof(EASEgen_sys));
EASEgen_sets();
EASEgen_addTypes();
}
void EASEgen_sets() {
return;
}
int... | 27.303654 | 140 | 0.526429 | amullarney |
7206a085f7fd472287fb054f58ad85f266e4432c | 2,715 | cpp | C++ | src/parser/src/TypeCheckingSymbolTable.cpp | CUDA-me-impressed/CuMat-Compiler | d5050f96a2712d4d135c1729484cd91db2bdd42e | [
"MIT"
] | 2 | 2020-10-18T10:29:34.000Z | 2021-01-05T15:46:34.000Z | src/parser/src/TypeCheckingSymbolTable.cpp | CUDA-me-impressed/CuMat-Compiler | d5050f96a2712d4d135c1729484cd91db2bdd42e | [
"MIT"
] | 11 | 2020-10-08T18:41:20.000Z | 2021-03-19T14:49:19.000Z | src/parser/src/TypeCheckingSymbolTable.cpp | CUDA-me-impressed/CuMat-Compiler | d5050f96a2712d4d135c1729484cd91db2bdd42e | [
"MIT"
] | null | null | null | #include "TypeCheckingSymbolTable.hpp"
#include "TypeCheckingUtils.hpp"
std::shared_ptr<Typing::Type> TypeCheckUtils::TypeCheckingSymbolTable::getFuncType(std::string funcName, std::string nameSpace) {
if (this->funcTypes.contains(nameSpace)) {
if (this->funcTypes[nameSpace].contains(funcName)) {
... | 36.689189 | 166 | 0.684346 | CUDA-me-impressed |
7207cce9bbf86f5d3492770c0ce8b2a1c2b11cd0 | 762 | hpp | C++ | core/source/core/game/components/text_component.hpp | Karlashenko/engine-2d | 842c67fb6a7f19eaf16550b441ec7b79af2a0b7a | [
"MIT"
] | null | null | null | core/source/core/game/components/text_component.hpp | Karlashenko/engine-2d | 842c67fb6a7f19eaf16550b441ec7b79af2a0b7a | [
"MIT"
] | null | null | null | core/source/core/game/components/text_component.hpp | Karlashenko/engine-2d | 842c67fb6a7f19eaf16550b441ec7b79af2a0b7a | [
"MIT"
] | null | null | null | #pragma once
#include <utility>
#include "../../fonts/font.hpp"
class TextComponent final
{
public:
U32 space_width;
U32 line_height;
TextComponent(const Shared<Font>& p_font, String p_text)
: m_font(p_font), m_text(std::move(p_text))
{
space_width = m_font->get_size() * 0.4F;
... | 18.585366 | 60 | 0.598425 | Karlashenko |
7208deee29978030b07f41137afca85f463d16eb | 263 | hpp | C++ | src/snabl/timer.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 22 | 2018-08-27T15:28:10.000Z | 2022-02-13T08:18:00.000Z | src/snabl/timer.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 3 | 2018-08-27T01:44:51.000Z | 2020-06-28T20:07:42.000Z | src/snabl/timer.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 2 | 2018-08-26T18:55:47.000Z | 2018-09-29T01:04:36.000Z | #ifndef SNABL_TIMER_HPP
#define SNABL_TIMER_HPP
#include "snabl/types.hpp"
namespace snabl {
struct Timer {
static steady_clock::time_point now();
steady_clock::time_point start;
Timer();
void reset();
I64 ns() const;
};
}
#endif
| 13.842105 | 42 | 0.661597 | codr4life |
720a1e62d450d103c004dfed5a68edcb599d2476 | 449 | cpp | C++ | lesson22/example03/share/Triangle.cpp | Youngfellows/LinuxCPP | 6148346ba2c5c0a6d29a4f3a564baf9f06d619fe | [
"Apache-2.0"
] | null | null | null | lesson22/example03/share/Triangle.cpp | Youngfellows/LinuxCPP | 6148346ba2c5c0a6d29a4f3a564baf9f06d619fe | [
"Apache-2.0"
] | null | null | null | lesson22/example03/share/Triangle.cpp | Youngfellows/LinuxCPP | 6148346ba2c5c0a6d29a4f3a564baf9f06d619fe | [
"Apache-2.0"
] | null | null | null | #include "../include/Triangle.h"
//在类外实现函数 - 构造函数
Triangle::Triangle(double width,double height)
{
cout << "Triangle()有参数构造函数" << endl;
this->width = width;
this->height = height;
}
//在类外实现函数 - 析构函数
Triangle::~Triangle()
{
cout << "~Triangle()析构函数" << endl;
}
//在类外实现函数 - 实现接口area()函数
... | 19.521739 | 47 | 0.579065 | Youngfellows |
720b2059c817949fe594cde895e62f1b045106fd | 5,420 | cpp | C++ | src/drivers/win32/input_win32.cpp | demurzasty/rabb | f980fd18332f7846cd22b502f1075d224938379c | [
"MIT"
] | 8 | 2020-11-21T17:59:09.000Z | 2022-02-13T05:14:40.000Z | src/drivers/win32/input_win32.cpp | demurzasty/rabb | f980fd18332f7846cd22b502f1075d224938379c | [
"MIT"
] | null | null | null | src/drivers/win32/input_win32.cpp | demurzasty/rabb | f980fd18332f7846cd22b502f1075d224938379c | [
"MIT"
] | 1 | 2020-11-23T23:01:14.000Z | 2020-11-23T23:01:14.000Z | #include "input_win32.hpp"
#include "window_win32.hpp"
#include <Windows.h>
#include <unordered_map>
using namespace rb;
static std::unordered_map<keycode, int> key_map = {
{ keycode::left_system, VK_LWIN },
{ keycode::right_system, VK_RWIN },
{ keycode::menu, VK_APPS },
{ keycode::semi... | 32.071006 | 119 | 0.587269 | demurzasty |
720b2358fe2a4572d5b19235af339cd0493a96c3 | 1,525 | cpp | C++ | January Challenge 2021/Long Challenge/BILLRD/main.cpp | pratheekpai/CodeChef | 067ae2be32cd95a4fd77f1c2100d8db819ffe2ae | [
"MIT"
] | null | null | null | January Challenge 2021/Long Challenge/BILLRD/main.cpp | pratheekpai/CodeChef | 067ae2be32cd95a4fd77f1c2100d8db819ffe2ae | [
"MIT"
] | null | null | null | January Challenge 2021/Long Challenge/BILLRD/main.cpp | pratheekpai/CodeChef | 067ae2be32cd95a4fd77f1c2100d8db819ffe2ae | [
"MIT"
] | null | null | null |
#include <bits/stdc++.h>
using namespace std;
void point_of_impact(){
long long n, k, i, x, y, p;
cin >> n >> k >> x >> y;
if(x == y){
cout << n << " " << n << endl;
}
else if(y < x){
if(x == n && y == 0){
cout << x << " " << y << endl;
}
... | 25.847458 | 67 | 0.252459 | pratheekpai |
720d1e4ca36f2a3d8fe4762bd77b5a8bc3b5d837 | 126 | cpp | C++ | tests/PhiCore/compile_failure/src/core/scope_ptr/not_null_reset_nullptr.fail.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 3 | 2020-12-21T13:47:35.000Z | 2022-03-16T23:53:21.000Z | tests/PhiCore/compile_failure/src/core/scope_ptr/not_null_reset_nullptr.fail.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 53 | 2020-08-07T07:46:57.000Z | 2022-02-12T11:07:08.000Z | tests/PhiCore/compile_failure/src/core/scope_ptr/not_null_reset_nullptr.fail.cpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 1 | 2020-08-19T15:50:02.000Z | 2020-08-19T15:50:02.000Z | #include <phi/core/scope_ptr.hpp>
int main()
{
phi::not_null_scope_ptr<int> ptr(new int(21));
ptr.reset(nullptr);
}
| 14 | 50 | 0.65873 | AMS21 |
720db526960706897de8ec415b0802e328c6654a | 3,969 | cpp | C++ | humidor_dht22_client/libs/osh/XMLWriter.cpp | bytemaster-0xff/playground | bf038c2d9c62519a5310aba4f65e56e6cb2eb20e | [
"MIT"
] | 1 | 2017-05-01T07:25:45.000Z | 2017-05-01T07:25:45.000Z | osh_dht11_client/libs/osh/XMLWriter.cpp | bytemaster-0xff/playground | bf038c2d9c62519a5310aba4f65e56e6cb2eb20e | [
"MIT"
] | null | null | null | osh_dht11_client/libs/osh/XMLWriter.cpp | bytemaster-0xff/playground | bf038c2d9c62519a5310aba4f65e56e6cb2eb20e | [
"MIT"
] | null | null | null | //
// FILE: XMLWriter.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.05
// DATE: 2013-11-06
// PURPOSE: Simple XML library
//
// HISTORY:
// 0.1.00 - 2013-11-06 initial version
// 0.1.01 - 2013-11-07 rework interfaces
// 0.1.02 - 2013-11-07 +setIndentSize(), corrected history, +escape support
// 0.1.03 - 2015-03-07... | 20.780105 | 95 | 0.591081 | bytemaster-0xff |
720e45e5d8839ea3929e61714f0f48dd1ebc33a4 | 912 | cpp | C++ | src/output/TableOutput.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 4 | 2017-04-13T02:11:15.000Z | 2021-11-29T18:04:16.000Z | src/output/TableOutput.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 27 | 2018-01-15T08:37:38.000Z | 2018-04-26T13:01:58.000Z | src/output/TableOutput.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 3 | 2017-07-24T13:13:28.000Z | 2019-04-10T19:09:56.000Z | #include "../output/TableOutput.h"
using namespace std;
namespace ysk {
void TableOutput::writeHeader(string label, size_t solution, size_t numberOfNodes, size_t numberOfClusters) {
_os<<numberOfNodes<<endl;
_os<<numberOfClusters<<endl;
_os<<"name\tcluster"<<endl;
}
void TableOutput::writeBeginNodes(siz... | 18.24 | 109 | 0.691886 | mironec |
720e5be21aefa21fa6d6f272fe96fc583330b98a | 398 | cpp | C++ | LagEngine/src/scene/PointLight.cpp | MadEqua/LagEngine | 62e08d06763ff330e2763f986e4e61201e83cb33 | [
"MIT"
] | 1 | 2019-03-25T13:54:33.000Z | 2019-03-25T13:54:33.000Z | LagEngine/src/scene/PointLight.cpp | MadEqua/LagEngine | 62e08d06763ff330e2763f986e4e61201e83cb33 | [
"MIT"
] | null | null | null | LagEngine/src/scene/PointLight.cpp | MadEqua/LagEngine | 62e08d06763ff330e2763f986e4e61201e83cb33 | [
"MIT"
] | null | null | null | #include "PointLight.h"
using namespace Lag;
PointLight::PointLight(const Color &color, const glm::vec3 &attenuation, bool castShadow) :
Light(color, castShadow),
attenuation(attenuation) {
}
void PointLight::setAttenuation(float constant, float linear, float quadratic) {
attenuation[0]... | 28.428571 | 92 | 0.688442 | MadEqua |
720e69e272248e9022cc0c7c0fc9133b90eefc27 | 22,449 | cpp | C++ | tests/value.cpp | sinisa-susnjar/mgclient | 81a1086aa066d5fc03e770b3f1b0bdf0d5f95f00 | [
"Apache-2.0"
] | 30 | 2020-03-01T20:00:52.000Z | 2022-03-22T08:40:07.000Z | tests/value.cpp | sinisa-susnjar/mgclient | 81a1086aa066d5fc03e770b3f1b0bdf0d5f95f00 | [
"Apache-2.0"
] | 11 | 2019-08-19T13:34:21.000Z | 2022-03-18T11:25:15.000Z | tests/value.cpp | sinisa-susnjar/mgclient | 81a1086aa066d5fc03e770b3f1b0bdf0d5f95f00 | [
"Apache-2.0"
] | 4 | 2019-08-21T12:07:53.000Z | 2021-08-01T22:23:00.000Z | // Copyright (c) 2016-2020 Memgraph Ltd. [https://memgraph.com]
//
// 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 ... | 35.9184 | 80 | 0.71139 | sinisa-susnjar |
72124b5d1a1bdc5b89468906144d2f8dd5aa0f4f | 951 | cpp | C++ | src/rotate-list.cpp | amoudgl/leetcode-solutions | dc6570bb06b82c2c70d6f387b3486897035cc995 | [
"MIT"
] | null | null | null | src/rotate-list.cpp | amoudgl/leetcode-solutions | dc6570bb06b82c2c70d6f387b3486897035cc995 | [
"MIT"
] | null | null | null | src/rotate-list.cpp | amoudgl/leetcode-solutions | dc6570bb06b82c2c70d6f387b3486897035cc995 | [
"MIT"
] | null | null | null | // Author: Abhinav Moudgil [ https://leetcode.com/amoudgl/ ]
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* rotateRight(ListNode* head, int k) {
ListNode *ptr;
... | 22.116279 | 60 | 0.446898 | amoudgl |
7214c7de7b00188972a1f5cda685ea6f92a9f8fc | 708 | cpp | C++ | Algorithms/Searching and Sorting/BubbleSort.cpp | Anvesh-Chennupati/DsAlgo | fd8ddd264e14f89f86e339c684e1f7a553507a35 | [
"MIT"
] | null | null | null | Algorithms/Searching and Sorting/BubbleSort.cpp | Anvesh-Chennupati/DsAlgo | fd8ddd264e14f89f86e339c684e1f7a553507a35 | [
"MIT"
] | null | null | null | Algorithms/Searching and Sorting/BubbleSort.cpp | Anvesh-Chennupati/DsAlgo | fd8ddd264e14f89f86e339c684e1f7a553507a35 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
void printArray(int arr[],int n){
for(int i=0; i<n; i++){
cout<<" "<<arr[i];
}
}
void swapElements(int *xp, int *yp){
int temp = *xp;
*xp = *yp;
*yp = temp;
}
void BubbleSort(int arr[],int n){
for(int i = 0; i < n-1; i++){
for(int j = 0... | 19.666667 | 48 | 0.463277 | Anvesh-Chennupati |
721737962dc6ed67f62c0ca81ca7146f3c7bc9ad | 2,990 | cpp | C++ | 02_camera/source/program.cpp | DamianReloaded/ModernOpenGL | c7fe024e4d13c7bd06c0704fa66124ddf7ea75fa | [
"MIT"
] | null | null | null | 02_camera/source/program.cpp | DamianReloaded/ModernOpenGL | c7fe024e4d13c7bd06c0704fa66124ddf7ea75fa | [
"MIT"
] | null | null | null | 02_camera/source/program.cpp | DamianReloaded/ModernOpenGL | c7fe024e4d13c7bd06c0704fa66124ddf7ea75fa | [
"MIT"
] | null | null | null | #include "program.h"
#include <fstream>
#include <sstream>
#include <vector>
#include <GL/glew.h>
using namespace reload;
program::program()
{
//ctor
}
program::~program()
{
//dtor
}
const uint32_t& program::id()
{
return m_id;
}
bool program::load (const std::string& _path_vertex_shader, const std::str... | 27.431193 | 101 | 0.666221 | DamianReloaded |
7217672c27496d3709f365dfbb424403d92ea803 | 5,544 | cpp | C++ | implementations/ugene/src/plugins/external_tool_support/src/stringtie/StringtieGeneAbundanceReportWorkerFactory.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/plugins/external_tool_support/src/stringtie/StringtieGeneAbundanceReportWorkerFactory.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/plugins/external_tool_support/src/stringtie/StringtieGeneAbundanceReportWorkerFactory.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* 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
* ... | 44.352 | 115 | 0.652056 | r-barnes |
721a73cea2ba9a66abd9651520c16dcf693fd4bb | 5,068 | hpp | C++ | include/atomic_ops/atomic_ops.hpp | ldalessa/atomic_ops | b718286789732fe36107b170e9a73b058db609ff | [
"BSD-3-Clause"
] | null | null | null | include/atomic_ops/atomic_ops.hpp | ldalessa/atomic_ops | b718286789732fe36107b170e9a73b058db609ff | [
"BSD-3-Clause"
] | null | null | null | include/atomic_ops/atomic_ops.hpp | ldalessa/atomic_ops | b718286789732fe36107b170e9a73b058db609ff | [
"BSD-3-Clause"
] | null | null | null | // BSD 3-Clause License
//
// Copyright (c) 2020, Luke D'Alessandro
// Copyright (c) 2020, Trustees of Indiana University
// 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. Redistributio... | 29.126437 | 81 | 0.709747 | ldalessa |
721dfcb5a7fa7feae736e75dd26a4e38ca9a7206 | 9,614 | cpp | C++ | crashfix_service/libdumper_tests/StackWalkerTests.cpp | jsonzilla/crashfix | 278a0dfb94f815709067bef61e64f1b290f17fa0 | [
"BSD-3-Clause"
] | 3 | 2019-01-07T20:55:30.000Z | 2019-04-10T10:04:16.000Z | crashfix_service/libdumper_tests/StackWalkerTests.cpp | 0um/crashfix | f283498b92efbaf150f6f09251d4bd69d8335a6b | [
"BSD-3-Clause"
] | 9 | 2020-04-04T13:33:00.000Z | 2020-04-04T13:33:18.000Z | crashfix_service/libdumper_tests/StackWalkerTests.cpp | jsonzilla/crashfix | 278a0dfb94f815709067bef61e64f1b290f17fa0 | [
"BSD-3-Clause"
] | 1 | 2021-04-25T14:26:27.000Z | 2021-04-25T14:26:27.000Z | #include "stdafx.h"
#include "Tests.h"
#include "Utils.h"
#include "MiniDumpReader.h"
#include "StackWalker.h"
#include "Thread.h"
#include "FileFinder.h"
#include "CrashReportReader.h"
#include "strconv.h"
class StackWalkerTests : public CTestCase
{
BEGIN_TEST_MAP(StackWalkerTests, "CStackWalker class tests")
... | 25.101828 | 103 | 0.717183 | jsonzilla |
7221b92f74b356f40f55a6698fbf0cade05b460d | 8,063 | cpp | C++ | media/libstagefright/codecs/amrwb/test/AmrwbDecoderTest.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | null | null | null | media/libstagefright/codecs/amrwb/test/AmrwbDecoderTest.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | null | null | null | media/libstagefright/codecs/amrwb/test/AmrwbDecoderTest.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | 2 | 2021-07-08T07:42:11.000Z | 2021-07-09T21:56:10.000Z | /*
* Copyright (C) 2019 The Android Open Source Project
*
* 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 app... | 35.995536 | 97 | 0.666129 | Dreadwyrm |
7228b4ae79eb8a377506fc8e6369017a99cf2bb1 | 10,088 | cxx | C++ | lump/src/lump/LOFAR_Station_Beamformed_Valid.cxx | David-McKenna/lump-lofar-und-mpifr-pulsare | e7846443498c24b1a8521ece498938e9c4390c3a | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2016-03-03T21:03:16.000Z | 2016-03-03T21:03:16.000Z | lump/src/lump/LOFAR_Station_Beamformed_Valid.cxx | David-McKenna/lump-lofar-und-mpifr-pulsare | e7846443498c24b1a8521ece498938e9c4390c3a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | lump/src/lump/LOFAR_Station_Beamformed_Valid.cxx | David-McKenna/lump-lofar-und-mpifr-pulsare | e7846443498c24b1a8521ece498938e9c4390c3a | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2016-03-03T21:03:28.000Z | 2019-12-19T12:28:37.000Z | // LOFAR_Station_Beamformed_Valid.cxx
// handling a vald bit file for LOFAR beamformed data
//_HIST DATE NAME PLACE INFO
// 2011 Mar 31 James M Anderson --MPIfR start
// 2013 Mar 16 JMA ---- extra throw()
// 2014 Sep 16 JMA --- add 64 bit version of popcount
// 2014 Sep 16 JMA --- use buffer for writing inste... | 28.178771 | 1,334 | 0.625496 | David-McKenna |
722b15f11db4d3b6c941c8b4a6c5d395b11b035f | 1,415 | hpp | C++ | third_party/libprocess/include/process/io.hpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | null | null | null | third_party/libprocess/include/process/io.hpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | null | null | null | third_party/libprocess/include/process/io.hpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | 1 | 2022-02-19T10:59:37.000Z | 2022-02-19T10:59:37.000Z | #ifndef __PROCESS_IO_HPP__
#define __PROCESS_IO_HPP__
#include <string>
#include <process/future.hpp>
namespace process {
namespace io {
// Possible events for polling.
const short READ = 0x01;
const short WRITE = 0x02;
// Returns the events (a subset of the events specified) that can be
// performed on the specif... | 35.375 | 80 | 0.749823 | clearstorydata |