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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c1800df98fe466062565c9d0429f2c4745c0b53 | 1,501 | cpp | C++ | Bleach/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 11 | 2015-08-29T13:41:22.000Z | 2020-01-08T20:34:06.000Z | Bleach/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | null | null | null | Bleach/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 5 | 2016-01-20T18:17:01.000Z | 2019-10-30T11:57:15.000Z | #include <fstream>
#include <vector>
#include <bitset>
#include <queue>
using namespace std;
const char infile[] = "bleach.in";
const char outfile[] = "bleach.out";
ifstream fin(infile);
ofstream fout(outfile);
const int MAXN = 4005;
const int oo = 0x3f3f3f3f;
typedef vector<int> Graph[MAXN];
typedef vector<int> :... | 23.092308 | 86 | 0.477682 | rusucosmin |
2c1d2ce066a00712239431ee98b984e96cd7c364 | 476 | cpp | C++ | src/RESTAPI_unknownRequestHandler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | src/RESTAPI_unknownRequestHandler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | src/RESTAPI_unknownRequestHandler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | //
// License type: BSD 3-Clause License
// License copy: https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/blob/master/LICENSE
//
// Created by Stephane Bourque on 2021-03-04.
// Arilia Wireless Inc.
//
#include "RESTAPI_unknownRequestHandler.h"
void RESTAPI_UnknownRequestHandler::handleRequest(Poco::Net:... | 28 | 129 | 0.754202 | shimmy568 |
2c1eb109ecfb359f640fce24cc599ef65144777a | 3,316 | cpp | C++ | test/unit/misc/bit_reversal.cpp | Nemo1369/libcds | 6c96ab635067b2018b14afe5dd0251b9af3ffddf | [
"BSD-2-Clause"
] | null | null | null | test/unit/misc/bit_reversal.cpp | Nemo1369/libcds | 6c96ab635067b2018b14afe5dd0251b9af3ffddf | [
"BSD-2-Clause"
] | null | null | null | test/unit/misc/bit_reversal.cpp | Nemo1369/libcds | 6c96ab635067b2018b14afe5dd0251b9af3ffddf | [
"BSD-2-Clause"
] | null | null | null | /*
This file is a part of libcds - Concurrent Data Structures library
(C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
Redistribution and use in source and binary forms, with... | 34.185567 | 87 | 0.642039 | Nemo1369 |
2c24b8af8865154153a12f626942b5190dbabeef | 4,069 | hpp | C++ | methods/islet/islet_npx.hpp | ambrad/COMPOSE | 0bda7aeaf2b8494c7de8cd179c22e340b08eda6e | [
"BSD-3-Clause"
] | 3 | 2018-12-30T20:01:25.000Z | 2020-07-22T23:44:14.000Z | methods/islet/islet_npx.hpp | E3SM-Project/COMPOSE | 0bda7aeaf2b8494c7de8cd179c22e340b08eda6e | [
"BSD-3-Clause"
] | 8 | 2019-02-06T19:08:31.000Z | 2020-04-24T03:40:49.000Z | methods/islet/islet_npx.hpp | ambrad/COMPOSE | 0bda7aeaf2b8494c7de8cd179c22e340b08eda6e | [
"BSD-3-Clause"
] | 2 | 2019-01-16T03:58:31.000Z | 2019-02-06T22:45:43.000Z | #ifndef INCLUDE_ISLET_NPX_HPP
#define INCLUDE_ISLET_NPX_HPP
#include "islet_util.hpp"
#include "islet_types.hpp"
#include "islet_tables.hpp"
#include "islet_interpmethod.hpp"
template <typename Scalar>
void eval_lagrange_poly (const Scalar* x_gll, const Int& np, const Scalar& x,
Scalar* const... | 29.485507 | 77 | 0.539936 | ambrad |
2c2564a4ccd403b51385fd91c1d0dcc9e6f6bf71 | 1,201 | hpp | C++ | code/AssetLib/XNAlara/XnalaraImporter.hpp | bradosia/assimp-XNAlara | db8963c06e6bcfd9433b0894a2bce98df069bc7a | [
"MIT"
] | 1 | 2020-12-25T02:43:29.000Z | 2020-12-25T02:43:29.000Z | code/AssetLib/XNAlara/XnalaraImporter.hpp | bradosia/assimp-XNAlara | db8963c06e6bcfd9433b0894a2bce98df069bc7a | [
"MIT"
] | null | null | null | code/AssetLib/XNAlara/XnalaraImporter.hpp | bradosia/assimp-XNAlara | db8963c06e6bcfd9433b0894a2bce98df069bc7a | [
"MIT"
] | 1 | 2020-12-25T02:43:31.000Z | 2020-12-25T02:43:31.000Z | #ifndef XNALARA_FILE_IMPORTER_H
#define XNALARA_FILE_IMPORTER_H
// C++
#include <sstream>
#include <vector>
/* assimp 5.0.1
* License: BSD
*/
#include <assimp/BaseImporter.h>
#include <assimp/IOSystem.hpp>
#include <assimp/material.h>
#include <assimp/scene.h>
// Local Project
#include "read_bin_xps.hpp"
namespac... | 22.660377 | 99 | 0.638634 | bradosia |
2c2772b33e1e11c89aba7847b2966eb1abf03591 | 2,085 | cpp | C++ | Codeforces/Goodbye 2020/1466E.cpp | ApocalypseMac/CP | b2db9aa5392a362dc0d979411788267ed9a5ff1d | [
"MIT"
] | null | null | null | Codeforces/Goodbye 2020/1466E.cpp | ApocalypseMac/CP | b2db9aa5392a362dc0d979411788267ed9a5ff1d | [
"MIT"
] | null | null | null | Codeforces/Goodbye 2020/1466E.cpp | ApocalypseMac/CP | b2db9aa5392a362dc0d979411788267ed9a5ff1d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
typedef long long ll;
const int maxn = 500005;
const ll MOD = 1e9 + 7;
ll x[maxn];
int bitcnt[63];
int n, d, dm;
ll tmp, res, l, r;
ll m[63];
int main(){
ios_base::sync_with_stdio(false); cin.t... | 26.0625 | 76 | 0.302638 | ApocalypseMac |
2c2791889d601ee8bd542f686cdeb888398ab3c3 | 19,164 | cpp | C++ | src/SNC-Meister/SNC-Meister.cpp | timmyzhu/SNC-Meister | 7ecb5de94b4dae1c3c31d699bfe2289ab9f29abd | [
"MIT"
] | 5 | 2016-09-28T19:45:01.000Z | 2020-04-19T08:01:28.000Z | src/SNC-Meister/SNC-Meister.cpp | timmyzhu/SNC-Meister | 7ecb5de94b4dae1c3c31d699bfe2289ab9f29abd | [
"MIT"
] | null | null | null | src/SNC-Meister/SNC-Meister.cpp | timmyzhu/SNC-Meister | 7ecb5de94b4dae1c3c31d699bfe2289ab9f29abd | [
"MIT"
] | 4 | 2017-02-12T05:59:25.000Z | 2020-06-15T08:18:49.000Z | // SNC-Meister.cpp - SNC-Meister admission control server.
// Performs admission control for a network based on Stochastic Network Calculus (SNC) using SNC-Library.
// When a set of tenants (a.k.a. clients) seeks admission, their latency is calculated using SNC and compared against their SLO.
// Also, other clients tha... | 35.554731 | 178 | 0.632749 | timmyzhu |
2c287d1d11f64b02c40201ad39367c8cf8ae089b | 7,015 | cc | C++ | onnxruntime/core/optimizer/conv_bn_fusion.cc | csteegz/onnxruntime | a36810471b346ec862ac6e4de7f877653f49525e | [
"MIT"
] | 1 | 2020-07-12T15:23:49.000Z | 2020-07-12T15:23:49.000Z | onnxruntime/core/optimizer/conv_bn_fusion.cc | ajinkya933/onnxruntime | 0e799a03f2a99da6a1b87a2cd37facb420c482aa | [
"MIT"
] | null | null | null | onnxruntime/core/optimizer/conv_bn_fusion.cc | ajinkya933/onnxruntime | 0e799a03f2a99da6a1b87a2cd37facb420c482aa | [
"MIT"
] | 1 | 2020-09-09T06:55:51.000Z | 2020-09-09T06:55:51.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/graph/graph_utils.h"
#include "core/optimizer/initializer.h"
#include "core/optimizer/conv_bn_fusion.h"
using namespace ONNX_NAMESPACE;
using namespace ::onnxruntime::common;
namespace onnxruntime {
Status ... | 41.023392 | 114 | 0.728154 | csteegz |
2c2e2fcea640fc1ca20ba422ea384917d32a9de9 | 16,588 | cpp | C++ | pyqstrat/cpp/text_file_parsers.cpp | vishalbelsare/pyqstrat | 10a94ae7275609a2b89e309222089932293bfe6f | [
"BSD-3-Clause"
] | 284 | 2018-08-16T19:16:28.000Z | 2022-03-28T15:01:10.000Z | pyqstrat/cpp/text_file_parsers.cpp | vishalbelsare/pyqstrat | 10a94ae7275609a2b89e309222089932293bfe6f | [
"BSD-3-Clause"
] | 20 | 2018-08-29T15:54:08.000Z | 2022-01-16T20:45:55.000Z | pyqstrat/cpp/text_file_parsers.cpp | vishalbelsare/pyqstrat | 10a94ae7275609a2b89e309222089932293bfe6f | [
"BSD-3-Clause"
] | 47 | 2018-09-06T23:50:39.000Z | 2022-03-26T14:01:05.000Z |
#include "text_file_parsers.hpp"
#include "date.hpp"
using namespace std;
#define parse_error(msg) \
{ \
std::ostringstream os; \
os << msg << " file: " << __FILE__ << "line: " << __LINE__ ; \
throw ParseException(os.str().c_str()); \
}
FormatTimestampParser::FormatTimestampParser(int64_t base_date, const std::stri... | 43.310705 | 138 | 0.606884 | vishalbelsare |
2c2e80972f9620a4a4cdcc2f888ae94e800545a3 | 1,530 | cpp | C++ | myoddtest/os/testipcdata_wstring.cpp | FFMG/myoddweb.piger | 6c5e9dff6ab8e2e02d6990c1959450f087acf371 | [
"MIT"
] | 18 | 2016-03-04T15:44:24.000Z | 2021-12-31T11:06:25.000Z | myoddtest/os/testipcdata_wstring.cpp | FFMG/myoddweb.piger | 6c5e9dff6ab8e2e02d6990c1959450f087acf371 | [
"MIT"
] | 49 | 2016-02-29T17:59:52.000Z | 2019-05-05T04:59:26.000Z | myoddtest/os/testipcdata_wstring.cpp | FFMG/myoddweb.piger | 6c5e9dff6ab8e2e02d6990c1959450f087acf371 | [
"MIT"
] | 2 | 2016-07-30T10:17:12.000Z | 2016-08-11T20:31:46.000Z | #include "os\ipcdata.h"
#include "..\testcommon.h"
#include <gtest/gtest.h>
const struct test_wstring
{
std::wstring uuid;
typedef std::vector<std::wstring> VALUE_TYPE;
VALUE_TYPE values;
};
struct MyoddOsWStringTest : testing::Test, testing::WithParamInterface<test_wstring>
{
myodd::os::IpcData* ipc;
Myod... | 24.285714 | 84 | 0.615686 | FFMG |
2c2eca04b6faf0e89a4a5dfa93e683582976219f | 4,373 | hpp | C++ | modules/core/predicates/include/nt2/core/functions/common/isequaln.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | 2 | 2016-09-14T00:23:53.000Z | 2018-01-14T12:51:18.000Z | modules/core/predicates/include/nt2/core/functions/common/isequaln.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | null | null | null | modules/core/predicates/include/nt2/core/functions/common/isequaln.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 32.879699 | 80 | 0.520924 | pbrunet |
2c2f0b90f898c860a18f98181ff9042b8d79f81f | 9,794 | cpp | C++ | ic.cpp | Allabakshu-shaik/Mercedes-POC | b338c471870830ba4b4fb26e4dc1097e0882a8e2 | [
"MIT"
] | 46 | 2020-01-08T16:38:46.000Z | 2022-03-30T21:08:07.000Z | ic.cpp | Allabakshu-shaik/Mercedes-POC | b338c471870830ba4b4fb26e4dc1097e0882a8e2 | [
"MIT"
] | 2 | 2020-03-28T08:26:29.000Z | 2020-08-06T10:52:57.000Z | ic.cpp | Allabakshu-shaik/Mercedes-POC | b338c471870830ba4b4fb26e4dc1097e0882a8e2 | [
"MIT"
] | 9 | 2020-03-13T20:53:02.000Z | 2021-08-31T08:50:20.000Z | //
// Created by ashcon on 10/5/19.
//
#include "ic.h"
#include "debug.h"
//#define START_IN_DIAG_MODE
/**
* Sets the refresh rate for scrolling text. If text is static (8 chars),
* refresh rate is locked to every 2 seconds
*
* @param rate Desired rate to scroll across text
*/
void IC_DISPLAY::setRefreshRate(i... | 29.768997 | 137 | 0.559016 | Allabakshu-shaik |
2c3292a1a81828ee830fbe28e5dbc0185a32cead | 5,857 | cxx | C++ | Graphics/Testing/Cxx/TestQuadraturePointStatistics.cxx | garyc618/GitTagBug | 0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864 | [
"BSD-3-Clause"
] | 1 | 2019-05-31T06:45:40.000Z | 2019-05-31T06:45:40.000Z | Graphics/Testing/Cxx/TestQuadraturePointStatistics.cxx | garyc618/GitTagBug | 0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864 | [
"BSD-3-Clause"
] | null | null | null | Graphics/Testing/Cxx/TestQuadraturePointStatistics.cxx | garyc618/GitTagBug | 0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Visualization Toolkit
Module: TestQuadraturePointStatistics.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... | 37.787097 | 96 | 0.673041 | garyc618 |
2c37db840a6a20342a022d28eca3c2eb3d8cfe27 | 247 | hpp | C++ | intrusive/pair_fwd.hpp | awonnacott/data-structures | 90bfa3994812b433a69ee0996952fcb874ca9184 | [
"MIT"
] | 1 | 2021-04-27T19:12:27.000Z | 2021-04-27T19:12:27.000Z | intrusive/pair_fwd.hpp | awonnacott/data-structures | 90bfa3994812b433a69ee0996952fcb874ca9184 | [
"MIT"
] | null | null | null | intrusive/pair_fwd.hpp | awonnacott/data-structures | 90bfa3994812b433a69ee0996952fcb874ca9184 | [
"MIT"
] | null | null | null | #pragma once
#include <utility> // pair
namespace intrusive {
template <typename A, typename B> class pair;
template <typename A, typename B>
constexpr std::pair<pair<A, B>, pair<B, A>> make_pair(const A&, const B&);
} // namespace intrusive
| 19 | 74 | 0.704453 | awonnacott |
2c38e4eaf551b31c7d1e6cbc759347ccdd2d0126 | 3,042 | cpp | C++ | src/search_engine/relja_retrival/v2/retrieval/wgc.cpp | kaloyan13/vise2 | 833a8510c7cbac3cbb8ac4569fd51448906e62f3 | [
"BSD-2-Clause"
] | 43 | 2017-07-06T23:44:39.000Z | 2022-03-25T06:53:29.000Z | src/search_engine/relja_retrival/v2/retrieval/wgc.cpp | kaloyan13/vise2 | 833a8510c7cbac3cbb8ac4569fd51448906e62f3 | [
"BSD-2-Clause"
] | 2 | 2018-11-09T03:52:14.000Z | 2020-03-25T14:08:33.000Z | src/search_engine/relja_retrival/v2/retrieval/wgc.cpp | kaloyan13/vise2 | 833a8510c7cbac3cbb8ac4569fd51448906e62f3 | [
"BSD-2-Clause"
] | 9 | 2017-07-27T10:55:55.000Z | 2020-12-15T13:42:43.000Z | /*
==== Author:
Relja Arandjelovic (relja@robots.ox.ac.uk)
Visual Geometry Group,
Department of Engineering Science
University of Oxford
==== Copyright:
The library belongs to Relja Arandjelovic and the University of Oxford.
No usage or redistribution is allowed without explicit permission.
*/
#include "wgc.h"
#in... | 26.224138 | 139 | 0.602564 | kaloyan13 |
2c3973599e108bbf66163a086cef4667593a6296 | 287 | hpp | C++ | src/Gui/single/Layouts/HBoxLayout.hpp | classix-ps/sfml-widgets | 0556f9d95ee2c5a5bc34e2182cf7f16290c102cf | [
"MIT"
] | null | null | null | src/Gui/single/Layouts/HBoxLayout.hpp | classix-ps/sfml-widgets | 0556f9d95ee2c5a5bc34e2182cf7f16290c102cf | [
"MIT"
] | null | null | null | src/Gui/single/Layouts/HBoxLayout.hpp | classix-ps/sfml-widgets | 0556f9d95ee2c5a5bc34e2182cf7f16290c102cf | [
"MIT"
] | null | null | null | #ifndef GUI_HBOXLAYOUT_SINGLE_HPP
#define GUI_HBOXLAYOUT_SINGLE_HPP
#include "Layout.hpp"
namespace guiSingle
{
/**
* Horizontally stacked layout
*/
class HBoxLayout: public Layout
{
public:
private:
void recomputeGeometry() override;
};
}
#endif // GUI_HBOXLAYOUT_SINGLE_HPP
| 13.045455 | 38 | 0.766551 | classix-ps |
2c3b7a67403f2106a4bc907fc69d6e00b801dc06 | 1,542 | cpp | C++ | UVa Online Judge/v119/11926.cpp | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | 1 | 2021-12-08T08:58:43.000Z | 2021-12-08T08:58:43.000Z | UVa Online Judge/v119/11926.cpp | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | UVa Online Judge/v119/11926.cpp | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | /*=============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 11926.cpp
# Description: UVa Online Judge - 11926
=============================================================================*/
#include <c... | 30.235294 | 79 | 0.330739 | mjenrungrot |
2c3d51d5ad9f12e395c8d87e4a8bda13cc46f228 | 1,820 | cc | C++ | function_ref/snippets/snippet-member-function-without-type-erasure-usage.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | 1 | 2022-01-21T20:10:46.000Z | 2022-01-21T20:10:46.000Z | function_ref/snippets/snippet-member-function-without-type-erasure-usage.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | function_ref/snippets/snippet-member-function-without-type-erasure-usage.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | struct delegateTest
{
int state = 0;
long current(int i, long l, char c) const
{
return state + i + l;
}
long test(int i, long l, char c)
{
state += i;
return state + l;
}
};
int main()
{
delegateTest dt;
function_ref_prime<long(delegateTest*, int, long, char... | 49.189189 | 136 | 0.642857 | descender76 |
2c4111c6c34aecbcce335b8f9828ecbf4959b04e | 1,943 | cpp | C++ | Laburi/Lab12/p1/State.cpp | teodutu/PA | 9abaf9f0ebbce8beac274edd672473a17575fe03 | [
"MIT"
] | 7 | 2019-02-12T15:14:12.000Z | 2020-05-05T13:48:52.000Z | Laburi/Lab12/p1/State.cpp | teodutu/PA | 9abaf9f0ebbce8beac274edd672473a17575fe03 | [
"MIT"
] | null | null | null | Laburi/Lab12/p1/State.cpp | teodutu/PA | 9abaf9f0ebbce8beac274edd672473a17575fe03 | [
"MIT"
] | 7 | 2020-03-22T09:46:19.000Z | 2021-03-11T20:53:19.000Z | #include "State.h"
#include <cmath>
bool State::has_same_state(const State& other) {
return x == other.x && y == other.y;
}
int State::approx_distance(const State other) {
int approx_distance = 0;
/*TODO: functie admisibila care sa estimeze costul pana la starea finala*/
approx_distance = ABS(x - other.x) + AB... | 24.910256 | 75 | 0.630983 | teodutu |
2c42b90f863c17c776d7db965a8e80f3db6cb20e | 4,972 | hpp | C++ | txml/applications/json/include/SchemaSerializer.hpp | SergeyIvanov87/templatedXML | 2873fff802979113de102cd6ff5c2184720ee107 | [
"MIT"
] | 4 | 2020-09-30T10:41:44.000Z | 2022-03-14T19:12:26.000Z | txml/applications/json/include/SchemaSerializer.hpp | SergeyIvanov87/templatedXML | 2873fff802979113de102cd6ff5c2184720ee107 | [
"MIT"
] | 3 | 2021-11-03T18:46:24.000Z | 2021-11-03T18:47:09.000Z | txml/applications/json/include/SchemaSerializer.hpp | SergeyIvanov87/templatedXML | 2873fff802979113de102cd6ff5c2184720ee107 | [
"MIT"
] | null | null | null | #ifndef TXML_APPLICATION_JSON_SCHEMA_SERIALIZER_HPP
#define TXML_APPLICATION_JSON_SCHEMA_SERIALIZER_HPP
#include <txml/include/engine/SchemaSerializerBase.hpp>
#include <txml/applications/json/include/fwd/SchemaSerializer.h>
#include <txml/applications/json/include/SerializerCore.hpp>
#include <txml/applications/json/... | 43.234783 | 125 | 0.684232 | SergeyIvanov87 |
2c46911871cb067b5962b902321a3cb14d06d461 | 6,165 | cpp | C++ | platform/wii/dir_access_wii.cpp | xchellx/godot | d7beb5790eb9a01e6acdd7fd4838df3d2a303619 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | platform/wii/dir_access_wii.cpp | xchellx/godot | d7beb5790eb9a01e6acdd7fd4838df3d2a303619 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | platform/wii/dir_access_wii.cpp | xchellx/godot | d7beb5790eb9a01e6acdd7fd4838df3d2a303619 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | #include "dir_access_wii.h"
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
Error DirAccessWii::list_dir_begin()
{
list_dir_end(); //close any previous dir opening!
//char real_current_dir_name[2048]; //is this enough?!
//getcwd(real_current_dir_name,2048);
//chdir(current_path.utf8().get_data());
... | 21.555944 | 93 | 0.696026 | xchellx |
2c477440c48b3026acfd0921201aa493ff5335ad | 2,197 | cpp | C++ | drape/utils/gpu_mem_tracker.cpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 2 | 2019-01-24T15:36:20.000Z | 2019-12-26T10:03:48.000Z | drape/utils/gpu_mem_tracker.cpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 1 | 2018-03-07T15:05:23.000Z | 2018-03-07T15:05:23.000Z | drape/utils/gpu_mem_tracker.cpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 1 | 2019-08-09T21:31:29.000Z | 2019-08-09T21:31:29.000Z | #include "drape/utils/gpu_mem_tracker.hpp"
#include "std/tuple.hpp"
#include "std/sstream.hpp"
namespace dp
{
string GPUMemTracker::GPUMemorySnapshot::ToString() const
{
ostringstream ss;
ss << " Summary Allocated = " << m_summaryAllocatedInMb << "Mb\n";
ss << " Summary Used = " << m_summaryUsedInMb << "Mb\n";... | 26.154762 | 83 | 0.672736 | marceldallagnol |
2c47b6b4bb3baaa25ce739a3f867f3876115a95c | 2,697 | cpp | C++ | tests/Unit/Helpers/PointwiseFunctions/GeneralRelativity/TestHelpers.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 2 | 2021-04-11T04:07:42.000Z | 2021-04-11T05:07:54.000Z | tests/Unit/Helpers/PointwiseFunctions/GeneralRelativity/TestHelpers.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 4 | 2018-06-04T20:26:40.000Z | 2018-07-27T14:54:55.000Z | tests/Unit/Helpers/PointwiseFunctions/GeneralRelativity/TestHelpers.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 1 | 2019-01-03T21:47:04.000Z | 2019-01-03T21:47:04.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Helpers/PointwiseFunctions/GeneralRelativity/TestHelpers.hpp"
#include "DataStructures/DataVector.hpp" // IWYU pragma: keep
#include "DataStructures/Tensor/Tensor.hpp" // IWYU pragma: keep
#include "Helpers/DataStructures/MakeWithRan... | 39.661765 | 77 | 0.708194 | macedo22 |
2c481bd2bd7b05816bcfae573030a18d98461e1e | 890 | inl | C++ | src/Engine/Renderer/RenderTechnique/RenderParameters.inl | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/RenderTechnique/RenderParameters.inl | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/RenderTechnique/RenderParameters.inl | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | #include <Engine/Renderer/RenderTechnique/RenderParameters.hpp>
#include <Engine/Renderer/RenderTechnique/ShaderProgram.hpp>
namespace Ra
{
namespace Engine
{
template <typename T>
inline void RenderParameters::UniformBindableVector<T>::bind(const ShaderProgram* shader ) const
... | 28.709677 | 105 | 0.589888 | nmellado |
2c492deee70eb7e4a73c88bf04ed9c49a1d7416a | 2,104 | cpp | C++ | modules/task_2/ermakov_p_grackham_omp/Main.cpp | allnes/pp_2022_spring | 159191f9c2f218f8b8487f92853cc928a7652462 | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/ermakov_p_grackham_omp/Main.cpp | allnes/pp_2022_spring | 159191f9c2f218f8b8487f92853cc928a7652462 | [
"BSD-3-Clause"
] | null | null | null | modules/task_2/ermakov_p_grackham_omp/Main.cpp | allnes/pp_2022_spring | 159191f9c2f218f8b8487f92853cc928a7652462 | [
"BSD-3-Clause"
] | 2 | 2022-03-31T17:48:22.000Z | 2022-03-31T18:06:07.000Z | // Copyright 2022 Ermakov Pavel
#include "../../../modules/task_2/ermakov_p_grackham_omp/grackham.h"
#include "gtest/gtest.h"
#define THREAD_NUM 4
TEST(grackham_seq, test_size_0) {
std::vector<std::pair<double, double>> dots;
int size = 0;
dots = gen_dots(size);
std::vector<std::pair<double, double>> s... | 29.633803 | 68 | 0.664924 | allnes |
2c4c07131285fad5893fd08084a675afc9b15192 | 525 | cpp | C++ | Aula08/ex-02-16.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | null | null | null | Aula08/ex-02-16.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | 1 | 2018-04-27T23:42:44.000Z | 2018-04-27T23:42:44.000Z | Aula08/ex-02-16.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | null | null | null | /*
Escreva um programa que solicita ao usuário inserir dois números, obtém os dois números do usuário imprime a soma, produto, diferença e quociente dos dois números.
Cassio
*/
#include <iostream>
using namespace std;
int main()
{
float a;
float b;
cout << "Informe o valor de A: ";
cin >> a;
cout << "Info... | 16.935484 | 163 | 0.6 | cgcosta |
2c4ca4be579e70582211ec5ab8862f8bf4d2c3fe | 4,008 | cpp | C++ | src/cpp/XMLParser.cpp | YuriySavchenko/Test_Task | 206fd75800767ad18027a6d9934a3f5be50f7526 | [
"Apache-2.0"
] | null | null | null | src/cpp/XMLParser.cpp | YuriySavchenko/Test_Task | 206fd75800767ad18027a6d9934a3f5be50f7526 | [
"Apache-2.0"
] | null | null | null | src/cpp/XMLParser.cpp | YuriySavchenko/Test_Task | 206fd75800767ad18027a6d9934a3f5be50f7526 | [
"Apache-2.0"
] | null | null | null | //
// Created by yuriy on 10/7/18.
//
#include "../headers/XMLParser.h"
/* implementation of method for parsing *.xml files */
void XMLParser::parseFile(std::vector<Interval> &intervals) {
if (fin.is_open()) {
std::vector<std::string> text = splitString(buffer, '\n');
// we are checking if firs... | 30.830769 | 109 | 0.460329 | YuriySavchenko |
2c50c0972b3eabeab1e35cad10068396972e061b | 1,525 | cpp | C++ | compiler/src/parser/symboltable.cpp | Excse/ArkoiL | d075ddd83b218f4e21df6141cca549bc75f46419 | [
"Apache-2.0"
] | 8 | 2020-04-15T19:57:29.000Z | 2022-03-18T21:09:12.000Z | compiler/src/parser/symboltable.cpp | Excse/ArkoiL | d075ddd83b218f4e21df6141cca549bc75f46419 | [
"Apache-2.0"
] | 4 | 2020-06-28T22:20:45.000Z | 2020-08-15T13:31:08.000Z | compiler/src/parser/symboltable.cpp | Excse/ArkoiL | d075ddd83b218f4e21df6141cca549bc75f46419 | [
"Apache-2.0"
] | 3 | 2020-04-15T19:40:11.000Z | 2021-01-18T20:02:09.000Z | //
// Created by timo on 8/7/20.
//
#include "../../include/parser/symboltable.h"
#include <iostream>
#include <utility>
#include "../../include/parser/astnodes.h"
SymbolTable::SymbolTable(SharedSymbolTable parent)
: m_Parent(std::move(parent)), m_Table({}) {}
SymbolTable::SymbolTable(const SymbolTable &ot... | 25.416667 | 76 | 0.633443 | Excse |
2c5449f1599c8e1b05acff2e28f6d6b8f2c18ac5 | 6,192 | cxx | C++ | c++/laolrt/laol/rt/array.cxx | gburdell/laol | 4ba457b2d4fa25525173cd045aa57ff4485ef7ae | [
"MIT"
] | null | null | null | c++/laolrt/laol/rt/array.cxx | gburdell/laol | 4ba457b2d4fa25525173cd045aa57ff4485ef7ae | [
"MIT"
] | null | null | null | c++/laolrt/laol/rt/array.cxx | gburdell/laol | 4ba457b2d4fa25525173cd045aa57ff4485ef7ae | [
"MIT"
] | null | null | null | /*
* The MIT License
*
* Copyright 2017 kpfalzer.
*
* 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... | 32.93617 | 86 | 0.531008 | gburdell |
2c55204f2eca4f64f796c17d14fba6d7b0fbd1d9 | 4,195 | cpp | C++ | tools/engine_hook/window_hooks.cpp | mouzedrift/alive | 7c297a39c60e930933c0a93ea373226907f8b1c7 | [
"MIT"
] | null | null | null | tools/engine_hook/window_hooks.cpp | mouzedrift/alive | 7c297a39c60e930933c0a93ea373226907f8b1c7 | [
"MIT"
] | null | null | null | tools/engine_hook/window_hooks.cpp | mouzedrift/alive | 7c297a39c60e930933c0a93ea373226907f8b1c7 | [
"MIT"
] | null | null | null | #include "window_hooks.hpp"
#include "debug_dialog.hpp"
#include "resource.h"
#include <memory>
#include <vector>
#include "anim_logger.hpp"
#include <WinUser.h>
bool gCollisionsEnabled = true;
bool gGridEnabled = false;
static WNDPROC g_pOldProc = 0;
std::unique_ptr<DebugDialog> gDebugUi;
extern HMODULE gDllHandle;
... | 24.389535 | 117 | 0.618832 | mouzedrift |
2c57c5a03651bea61c96f288b8fec0f0d8f5d104 | 2,220 | cpp | C++ | acm-template/4 Math/FFT/lrj.cpp | joshua-xia/noip | 0603a75c7be6e9b21fcabbba4260153cf776c32f | [
"Apache-2.0"
] | null | null | null | acm-template/4 Math/FFT/lrj.cpp | joshua-xia/noip | 0603a75c7be6e9b21fcabbba4260153cf776c32f | [
"Apache-2.0"
] | null | null | null | acm-template/4 Math/FFT/lrj.cpp | joshua-xia/noip | 0603a75c7be6e9b21fcabbba4260153cf776c32f | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define mem(ar,num) memset(ar,num,sizeof(ar))
#define me(ar) memset(ar,0,sizeof(ar))
#define lowbit(x) (x&(-x))
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
const int prime = 999983;
const int INF = 0x7FFFFFFF;
const LL INFF =0x7FFFFFFFFFFFFFFF;
//const d... | 30.410959 | 87 | 0.564414 | joshua-xia |
2c5b1dbafc7604151a63e9eeffcca4a56b1c0087 | 1,490 | hpp | C++ | src/utils/Log.hpp | gflix/LegoLwpProxy | 289fd32ddadf3dbfbfba85b42dbbab4fd026c813 | [
"MIT"
] | null | null | null | src/utils/Log.hpp | gflix/LegoLwpProxy | 289fd32ddadf3dbfbfba85b42dbbab4fd026c813 | [
"MIT"
] | null | null | null | src/utils/Log.hpp | gflix/LegoLwpProxy | 289fd32ddadf3dbfbfba85b42dbbab4fd026c813 | [
"MIT"
] | null | null | null | #ifndef UTILS_LOG_HPP_
#define UTILS_LOG_HPP_
#include <sstream>
#include <string>
#include <models/LogLevel.hpp>
namespace Lego
{
class Log
{
public:
Log();
explicit Log(LogLevel logLevel);
virtual ~Log() = default;
void error(std::string logMessage) const;
void warning(std::string logMessage) ... | 26.607143 | 114 | 0.713423 | gflix |
2c5fdd407fe564619ddb7888110d9c37b061f55f | 1,498 | cpp | C++ | module05/ex01/Form.cpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | module05/ex01/Form.cpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | module05/ex01/Form.cpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | #include "Form.hpp"
/*
** Canonical Form
*/
Form::Form(int signGrad, int executionGrad)
: _signGrad(signGrad), _executionGrad(executionGrad) {}
Form::Form(const std::string& name, int signGrad, int executionGrad)
: _name(name), _signGrad(signGrad), _executionGrad(executionGrad), _isSigned(false) {
if (signGrad ... | 28.264151 | 108 | 0.655541 | M-Philippe |
2c61f3b774c8b976cdcf7bb565d93724a2bba6da | 5,863 | cc | C++ | src/ThreadPool.cc | isabella232/mod_dup | 531382c8baeaa6781ddd1cfe4748b2dd0dbf328c | [
"Apache-2.0"
] | 16 | 2015-07-17T15:50:38.000Z | 2022-02-14T23:01:07.000Z | src/ThreadPool.cc | Orange-OpenSource/mod_dup | 531382c8baeaa6781ddd1cfe4748b2dd0dbf328c | [
"Apache-2.0"
] | 4 | 2016-04-19T20:27:04.000Z | 2018-02-21T11:48:05.000Z | src/ThreadPool.cc | isabella232/mod_dup | 531382c8baeaa6781ddd1cfe4748b2dd0dbf328c | [
"Apache-2.0"
] | 5 | 2015-01-26T14:49:47.000Z | 2021-06-22T09:59:11.000Z | /*
* mod_dup - duplicates apache requests
*
* Copyright (C) 2017 Orange
*
* 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
*
* Unles... | 31.021164 | 118 | 0.662118 | isabella232 |
2c6336949785352075fae63e49653788b7b3047e | 964 | cpp | C++ | utils.cpp | caminek/Gilligan | c7546d647a1fa9e4add929fa813f62c227fcb600 | [
"MIT"
] | null | null | null | utils.cpp | caminek/Gilligan | c7546d647a1fa9e4add929fa813f62c227fcb600 | [
"MIT"
] | null | null | null | utils.cpp | caminek/Gilligan | c7546d647a1fa9e4add929fa813f62c227fcb600 | [
"MIT"
] | null | null | null | #include <iostream>
#include "utils.hpp"
Status status;
uint8_t Utils::rol(uint8_t nibble)
{
uint8_t retval;
bool previous_carry = status.carry_flag;
status.carry_flag = nibble >> 7;
retval = (nibble << 1) | previous_carry;
return retval;
}
uint8_t Utils::ror(uint8_t bit)
{
uint8_t retval;
bool pre... | 16.338983 | 73 | 0.659751 | caminek |
2c63f1cde72b706915e05701a8f3c4a026b96846 | 861 | cpp | C++ | leetcode/72.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | leetcode/72.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | leetcode/72.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int sloveDP(string w1, string w2)
{
int w1Len = w1.size(), w2Len = w2.size();
vector<vector<int>> dp(w1Len+1, vector<int>(w2Len+1));
auto mins = [](int v1, int v2, int v3){
return min(min(v1,v2), v3);
};
for(int i = 0; i <= w1Len; i++) {
... | 23.916667 | 76 | 0.425087 | freedomDR |
2c673e1281ebca671c418f0740f114b73aeff04f | 11,214 | cpp | C++ | tests/test_matrix_traits.cpp | fancidev/euler | a74e3ddf46034718253259eac4880472c58a7b22 | [
"MIT"
] | null | null | null | tests/test_matrix_traits.cpp | fancidev/euler | a74e3ddf46034718253259eac4880472c58a7b22 | [
"MIT"
] | null | null | null | tests/test_matrix_traits.cpp | fancidev/euler | a74e3ddf46034718253259eac4880472c58a7b22 | [
"MIT"
] | null | null | null | #include <array>
#include <cstdint>
#include <type_traits>
#include <vector>
//#include "euler/matrix.hpp"
#include "euler/matrix_traits.hpp"
//#include "euler/matrix_adaptor.hpp"
#include "euler/matrix_algorithm.hpp"
#include "gtest/gtest.h"
#define MYTEST(functionName, testAspect) \
TEST(matrix ## __ ## functionNa... | 25.958333 | 76 | 0.618423 | fancidev |
ef1ad2b46e0fa27ba7309124db2bd4a4e43a5c38 | 756 | cc | C++ | tests/CompileTests/ElsaTestCases/t0502.cc | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/CompileTests/ElsaTestCases/t0502.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/CompileTests/ElsaTestCases/t0502.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | // t0502.cc
// invoke method on non-dependent class with dependent base
template <class T>
struct A {
struct B : T {};
void f()
{
B b;
b.foo();
};
};
struct C {
void foo();
};
void f()
{
A<C> a;
a.f();
}
// ---------------
// in contrast, this would be error; gcc diagnoses, icc does not
temp... | 17.581395 | 70 | 0.59127 | maurizioabba |
ef1bb44fb921624b5cf6e776d8e9051d5afe4df9 | 3,845 | hpp | C++ | include/stl2/detail/concepts/object.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | include/stl2/detail/concepts/object.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | include/stl2/detail/concepts/object.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | // cmcstl2 - A concept-enabled C++ standard library
//
// Copyright Casey Carter 2015
// Copyright Eric Niebler 2015
//
// Use, modification and distribution is subject to 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)
//
/... | 32.863248 | 81 | 0.668661 | marehr |
ef1d20dd2d6215d9a198a449b4827b7db8ad6224 | 31,091 | cpp | C++ | circe/gl/graphics/ibl.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | 1 | 2021-09-17T18:12:47.000Z | 2021-09-17T18:12:47.000Z | circe/gl/graphics/ibl.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | null | null | null | circe/gl/graphics/ibl.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | 2 | 2021-09-17T18:13:02.000Z | 2021-09-17T18:16:21.000Z | /// Copyright (c) 2021, FilipeCN.
///
/// The MIT License (MIT)
///
/// 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 u... | 81.603675 | 119 | 0.298511 | gui-works |
ef1fc4f106139ad96d30385eb27447b40fdc5987 | 7,026 | cxx | C++ | source/boomhs/ui_debug.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 2 | 2016-07-22T10:09:21.000Z | 2017-09-16T06:50:01.000Z | source/boomhs/ui_debug.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 14 | 2016-08-13T22:45:56.000Z | 2018-12-16T03:56:36.000Z | source/boomhs/ui_debug.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | null | null | null | #include <boomhs/bounding_object.hpp>
#include <boomhs/camera.hpp>
#include <boomhs/components.hpp>
#include <boomhs/engine.hpp>
#include <boomhs/entity.hpp>
#include <boomhs/frame_time.hpp>
#include <boomhs/level_manager.hpp>
#include <boomhs/player.hpp>
#include <boomhs/tree.hpp>
#include <boomhs/view_frustum.hpp>
#... | 35.846939 | 100 | 0.62895 | bjadamson |
ef20e5ad3c6caee5688e920381e0bed7342f98e1 | 10,865 | cpp | C++ | install/TexGen/Core/StaggeredPeriodicBoundaries.cpp | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 14 | 2021-06-17T17:17:07.000Z | 2022-03-26T05:20:20.000Z | install/TexGen/Core/StaggeredPeriodicBoundaries.cpp | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 6 | 2021-11-01T20:37:39.000Z | 2022-03-11T17:18:53.000Z | install/TexGen/Core/StaggeredPeriodicBoundaries.cpp | dalexa10/puma | ca02309c9f5c71e2e80ad8d64155dd6ca936c667 | [
"NASA-1.3"
] | 8 | 2021-07-20T09:24:23.000Z | 2022-02-26T16:32:00.000Z | /*=============================================================================
TexGen: Geometric textile modeller.
Copyright (C) 2010 Louise Brown
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; eit... | 41.311787 | 115 | 0.607731 | dalexa10 |
ef22a4f91c9d675b92178ebbcdccb2c5858fc8ed | 4,160 | cc | C++ | ortools/lp_data/model_reader.cc | yingzong/or-tools | e8287052b6108f92cdde70b7b1f2c1476e2b2f01 | [
"Apache-2.0"
] | 3 | 2021-12-11T12:30:09.000Z | 2021-12-30T09:49:45.000Z | ortools/lp_data/model_reader.cc | yingzong/or-tools | e8287052b6108f92cdde70b7b1f2c1476e2b2f01 | [
"Apache-2.0"
] | null | null | null | ortools/lp_data/model_reader.cc | yingzong/or-tools | e8287052b6108f92cdde70b7b1f2c1476e2b2f01 | [
"Apache-2.0"
] | null | null | null | // Copyright 2010-2017 Google
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 39.245283 | 79 | 0.669712 | yingzong |
ef22b4d7cab72e966ec25a0ddc7833335d80dc35 | 4,488 | cpp | C++ | open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CProviderExecutor.cpp | mrehman29/open-vm-tools | 03f35e3209b3a73cf8e43a74ac764f22526723a0 | [
"X11"
] | 2 | 2020-07-23T06:01:37.000Z | 2021-02-25T06:48:42.000Z | open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CProviderExecutor.cpp | mrehman29/open-vm-tools | 03f35e3209b3a73cf8e43a74ac764f22526723a0 | [
"X11"
] | null | null | null | open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CProviderExecutor.cpp | mrehman29/open-vm-tools | 03f35e3209b3a73cf8e43a74ac764f22526723a0 | [
"X11"
] | 1 | 2020-11-11T12:54:06.000Z | 2020-11-11T12:54:06.000Z | /*
* Author: bwilliams
* Created: Oct 22, 2010
*
* Copyright (C) 2010-2016 VMware, Inc. All rights reserved. -- VMware Confidential
*/
#include "stdafx.h"
#include "CProviderExecutorRequest.h"
#include "Common/IAppContext.h"
#include "IBean.h"
#include "Integration/Core/CErrorHandler.h"
#include "Integration/... | 30.739726 | 107 | 0.807487 | mrehman29 |
ef274bc17b75be462d3a98a34a54ecc2fbb62165 | 3,266 | cpp | C++ | src/util/pfx_mass.cpp | erwincoumans/test2 | cb78f36ae4002d79f21d21c759d07e2e23aabf15 | [
"BSD-3-Clause"
] | 5 | 2017-10-08T16:06:35.000Z | 2020-10-08T23:30:34.000Z | src/util/pfx_mass.cpp | erwincoumans/test2 | cb78f36ae4002d79f21d21c759d07e2e23aabf15 | [
"BSD-3-Clause"
] | null | null | null | src/util/pfx_mass.cpp | erwincoumans/test2 | cb78f36ae4002d79f21d21c759d07e2e23aabf15 | [
"BSD-3-Clause"
] | null | null | null | /*
Physics Effects Copyright(C) 2010 Sony Computer Entertainment Inc.
All rights reserved.
Physics Effects is open software; you can redistribute it and/or
modify it under the terms of the BSD License.
Physics Effects is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even th... | 31.708738 | 123 | 0.663503 | erwincoumans |
ef2c6225de520e9b2e85c92fd692cec7bd0bdfed | 1,139 | cpp | C++ | src/cxx/basic_client.cpp | basho-labs/riak-cxx-client | 88f7196f8c30f35ec784c6e051e82082927acc77 | [
"Apache-2.0"
] | 8 | 2015-11-05T15:28:34.000Z | 2021-08-03T10:23:07.000Z | src/cxx/basic_client.cpp | basho-labs/riak-cxx-client | 88f7196f8c30f35ec784c6e051e82082927acc77 | [
"Apache-2.0"
] | 3 | 2015-03-31T12:26:25.000Z | 2015-04-15T10:50:18.000Z | src/cxx/basic_client.cpp | basho-labs/riak-cxx-client | 88f7196f8c30f35ec784c6e051e82082927acc77 | [
"Apache-2.0"
] | 3 | 2017-05-01T01:21:48.000Z | 2020-10-20T13:13:40.000Z | /*
Copyright 2011 Basho Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 26.488372 | 89 | 0.740123 | basho-labs |
ef2fbaf2e29bf8fbcd9036a80241574ad9edd5ad | 1,384 | cpp | C++ | src/main/cpp/commands/ShooterHood/SetHoodAngle.cpp | FIRSTTeam102/Robot2022 | 2a3224fd9bf7e4e9b469214fdf141a3d25d9094c | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/commands/ShooterHood/SetHoodAngle.cpp | FIRSTTeam102/Robot2022 | 2a3224fd9bf7e4e9b469214fdf141a3d25d9094c | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/commands/ShooterHood/SetHoodAngle.cpp | FIRSTTeam102/Robot2022 | 2a3224fd9bf7e4e9b469214fdf141a3d25d9094c | [
"BSD-3-Clause"
] | null | null | null | #include "commands/ShooterHood/SetHoodAngle.h"
// SetHoodAngle based on hardcoded value
SetHoodAngle::SetHoodAngle(double degrees, ShooterHood* pShooterHood) :
mDegrees{degrees}, mpShooterHood{pShooterHood}, mpLimelight{NULL}, mpNTEntry{NULL} {
SetName("SetHoodAngle");
AddRequirements(pShooterHood);
}
// SetHoodAng... | 33.756098 | 88 | 0.78396 | FIRSTTeam102 |
ef32badf6a2beccf2075ac54bfaf5f610cd2c05f | 19,139 | cpp | C++ | MathTL/numerics/w_method.cpp | kedingagnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 3 | 2018-05-20T15:25:58.000Z | 2021-01-19T18:46:48.000Z | MathTL/numerics/w_method.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | null | null | null | MathTL/numerics/w_method.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 2 | 2019-04-24T18:23:26.000Z | 2020-09-17T10:00:27.000Z | // implementation for w_method.h
#include <cmath>
#include <iostream>
#include <utils/array1d.h>
using std::cout;
using std::endl;
namespace MathTL
{
//template <class VECTOR>
template <class VECTOR, class IVP>
WMethodStageEquationHelper<VECTOR, IVP>::~WMethodStageEquationHelper()
{
}
template <class ... | 28.27031 | 117 | 0.613512 | kedingagnumerikunimarburg |
ef35db23d27540f9fc1d94ec79eedfe7ddd43041 | 2,566 | cc | C++ | asylo/platform/primitives/untrusted_primitives.cc | mzohreva/asylo | f6c79ec9775f5579cf5587745f5c64243898e136 | [
"Apache-2.0"
] | null | null | null | asylo/platform/primitives/untrusted_primitives.cc | mzohreva/asylo | f6c79ec9775f5579cf5587745f5c64243898e136 | [
"Apache-2.0"
] | null | null | null | asylo/platform/primitives/untrusted_primitives.cc | mzohreva/asylo | f6c79ec9775f5579cf5587745f5c64243898e136 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright 2018 Asylo authors
*
* 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 agree... | 32.481013 | 78 | 0.718628 | mzohreva |
ef36853504465cdbf282b73dc51349ef6e5f84c0 | 4,893 | cpp | C++ | catkin_ws/src/srrg2_core/srrg2_core/src/srrg_data_structures/path_matrix.cpp | laaners/progetto-labiagi_pick_e_delivery | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | [
"MIT"
] | null | null | null | catkin_ws/src/srrg2_core/srrg2_core/src/srrg_data_structures/path_matrix.cpp | laaners/progetto-labiagi_pick_e_delivery | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | [
"MIT"
] | null | null | null | catkin_ws/src/srrg2_core/srrg2_core/src/srrg_data_structures/path_matrix.cpp | laaners/progetto-labiagi_pick_e_delivery | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | [
"MIT"
] | null | null | null | #include "path_matrix.h"
#include <srrg_system_utils/shell_colors.h>
namespace srrg2_core {
using namespace std;
float PathMatrix::maxValue(const Type channel) const {
float max_val = 0;
for (const PathMatrixCell& cell : _data) {
if (!cell.parent) {
continue;
}
switch (channel) {... | 31.567742 | 83 | 0.517065 | laaners |
ef394300d536a95e9ba8a0a364041c1b17a7529e | 1,047 | hpp | C++ | NYPR/CharacterSegment/NYCharacterPartition.hpp | iwwee/PLR_Vision | bda2384c10546479860bcc351757737385c9a251 | [
"Apache-2.0"
] | 3 | 2021-04-30T06:05:38.000Z | 2022-02-16T08:06:33.000Z | NYPR/CharacterSegment/NYCharacterPartition.hpp | iwwee/PLR_Vision | bda2384c10546479860bcc351757737385c9a251 | [
"Apache-2.0"
] | null | null | null | NYPR/CharacterSegment/NYCharacterPartition.hpp | iwwee/PLR_Vision | bda2384c10546479860bcc351757737385c9a251 | [
"Apache-2.0"
] | 1 | 2021-04-30T06:05:51.000Z | 2021-04-30T06:05:51.000Z | //
// NYCharacterPartition.hpp
// NYPlateRecognition
//
// Created by NathanYu on 28/01/2018.
// Copyright © 2018 NathanYu. All rights reserved.
//
#ifndef NYCharacterPartition_hpp
#define NYCharacterPartition_hpp
#include <stdio.h>
#include <algorithm>
#include "NYPlateDetect.hpp"
class NYCharacterPartition {
... | 13.96 | 77 | 0.663801 | iwwee |
ef3ada0d1ed4c47e4dcaa1ef310eb0f57b1a94b7 | 5,355 | cc | C++ | veins/src/pveins_providencia/ExampleProvidencia.cc | molguin92/paramics_traci | adcc38785c165ec4b668e2b587f615cf5461e1b0 | [
"BSD-3-Clause"
] | null | null | null | veins/src/pveins_providencia/ExampleProvidencia.cc | molguin92/paramics_traci | adcc38785c165ec4b668e2b587f615cf5461e1b0 | [
"BSD-3-Clause"
] | null | null | null | veins/src/pveins_providencia/ExampleProvidencia.cc | molguin92/paramics_traci | adcc38785c165ec4b668e2b587f615cf5461e1b0 | [
"BSD-3-Clause"
] | null | null | null | //
// 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 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will... | 30.6 | 122 | 0.64986 | molguin92 |
ef3aefc073928005abc8d0961302b01c4a423a88 | 682 | cpp | C++ | kattis/problems/the_easiest_problem_is_this_one.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | kattis/problems/the_easiest_problem_is_this_one.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | kattis/problems/the_easiest_problem_is_this_one.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <iostream>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
unsigned int digits_sum(unsigned int number)
{
unsigned int sum {0};
for (unsigned int i {number}; i > 0; i /= 10)
{
sum += i % 10;
}
return sum;
}... | 15.860465 | 61 | 0.555718 | Rkhoiwal |
ef3bcf31d6bf69c0f6f86ef376438b0dbeb757d7 | 5,115 | hpp | C++ | src/main/generic_format/helper.hpp | foobar27/generic_format | a44ce919b9c296ce66c0b54a51a61c884ddb78dd | [
"BSL-1.0"
] | null | null | null | src/main/generic_format/helper.hpp | foobar27/generic_format | a44ce919b9c296ce66c0b54a51a61c884ddb78dd | [
"BSL-1.0"
] | null | null | null | src/main/generic_format/helper.hpp | foobar27/generic_format | a44ce919b9c296ce66c0b54a51a61c884ddb78dd | [
"BSL-1.0"
] | null | null | null | /**
@file
@copyright
Copyright Sebastien Wagener 2014
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)
*/
#pragma once
#include <type_traits>
#include <functional>
namespace generi... | 31.189024 | 136 | 0.709677 | foobar27 |
ef3c43278e3760f822c1bea5894813bae7deb9b6 | 94 | cpp | C++ | bin/lib/base/main.cpp | johnsonyl/cpps | ed91be2c1107e3cfa8e91d159be81931eacfec19 | [
"MIT"
] | 18 | 2017-09-01T04:59:23.000Z | 2021-09-23T06:42:50.000Z | bin/lib/base/main.cpp | johnsonyl/cpps | ed91be2c1107e3cfa8e91d159be81931eacfec19 | [
"MIT"
] | null | null | null | bin/lib/base/main.cpp | johnsonyl/cpps | ed91be2c1107e3cfa8e91d159be81931eacfec19 | [
"MIT"
] | 4 | 2017-06-15T08:46:07.000Z | 2021-06-09T15:03:55.000Z | #include <lib/base/colorprint.cpp>
#include <lib/base/io.cpp>
#include <lib/base/thread.cpp> | 31.333333 | 35 | 0.734043 | johnsonyl |
ef3cc80b1bd0993ec639212984eb355dd5bcf1af | 490 | cpp | C++ | GameObject.cpp | JetBrains/cpp-russia-2017-clion | 9322bb9ae34476e744f38c61f0ef89bed26e60ba | [
"Apache-2.0"
] | 7 | 2017-05-15T12:31:54.000Z | 2021-11-08T09:49:53.000Z | GameObject.cpp | JetBrains/cpp-russia-2017-clion | 9322bb9ae34476e744f38c61f0ef89bed26e60ba | [
"Apache-2.0"
] | null | null | null | GameObject.cpp | JetBrains/cpp-russia-2017-clion | 9322bb9ae34476e744f38c61f0ef89bed26e60ba | [
"Apache-2.0"
] | 4 | 2019-02-03T17:49:24.000Z | 2022-03-19T06:44:48.000Z | #include "Ball.h"
#include "GameObject.h"
GameObject::GameObject(const QPointF& pos, const QPointF& speed) :
pos_(pos), speed_(speed) {}
const QPointF& GameObject::getPos() const {
return pos_;
}
const QPointF& GameObject::getSpeed() const {
return speed_;
}
void GameObject::calc(int msec) {
pos... | 18.846154 | 66 | 0.663265 | JetBrains |
ef4236b6fc400ab751ba4cfcec44914237579f1c | 1,080 | cpp | C++ | external/keko_enhanced_movement/babe_em/func/config.cpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 6 | 2018-05-05T22:28:57.000Z | 2019-07-06T08:46:51.000Z | external/keko_enhanced_movement/babe_em/func/config.cpp | Schwaggot/kellerkompanie-mods | 7a389e49e3675866dbde1b317a44892926976e9d | [
"MIT"
] | 107 | 2018-04-11T19:42:27.000Z | 2019-09-13T19:05:31.000Z | external/keko_enhanced_movement/babe_em/func/config.cpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 3 | 2018-10-03T11:54:46.000Z | 2019-02-28T13:30:16.000Z | ////////////////////////////////////////////////////////////////////
//DeRap: babe_em\func\config.bin
//Produced from mikero's Dos Tools Dll version 6.44
//'now' is Tue Jun 12 14:55:49 2018 : 'file' last modified on Thu May 10 19:35:42 2018
//http://dev-heaven.net/projects/list_files/mikero-pbodll
/////////////////////... | 20.377358 | 86 | 0.558333 | kellerkompanie |
ef43b35466b5d8e230902957ac50c0ebe03f5326 | 1,961 | cpp | C++ | websocket_core_client.cpp | branislavhesko/Websocket_synchronization | 0adc0e336d300130574dd71eb840c9448c954572 | [
"Apache-2.0"
] | null | null | null | websocket_core_client.cpp | branislavhesko/Websocket_synchronization | 0adc0e336d300130574dd71eb840c9448c954572 | [
"Apache-2.0"
] | null | null | null | websocket_core_client.cpp | branislavhesko/Websocket_synchronization | 0adc0e336d300130574dd71eb840c9448c954572 | [
"Apache-2.0"
] | null | null | null | //
// Created by brani on 14.02.20.
//
#include <iostream>
#include <ixwebsocket/IXWebSocket.h>
#include <chrono>
#include <thread>
#include <string>
#include <queue>
#include "json.hpp"
#include "request_handler.hpp"
int main() {
using namespace std::chrono_literals;
using json = nlohmann::json;
bool ... | 33.237288 | 140 | 0.600714 | branislavhesko |
ef44804e128e517c125819af527d098733abacf0 | 1,670 | cpp | C++ | inetsrv/intlwb/chs2/src/chsbrkr.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/intlwb/chs2/src/chsbrkr.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/intlwb/chs2/src/chsbrkr.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*============================================================================
Microsoft Simplified Chinese WordBreaker
Microsoft Confidential.
Copyright 1997-1999 Microsoft Corporation. All Rights Reserved.
Component: DLL Main and exported functions
Purpose: DLL Main and exported functions
Remarks:
Owner:... | 22.266667 | 79 | 0.542515 | npocmaka |
ef471770ed2b53556fee90c2e5eb8a7d224ffb83 | 801 | hpp | C++ | stan/math/opencl/rev/as_column_vector_or_scalar.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/opencl/rev/as_column_vector_or_scalar.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/opencl/rev/as_column_vector_or_scalar.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_OPENCL_REV_AS_COLUMN_VECTOR_OR_SCALAR_HPP
#define STAN_MATH_OPENCL_REV_AS_COLUMN_VECTOR_OR_SCALAR_HPP
#ifdef STAN_OPENCL
#include <stan/math/opencl/kernel_generator.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/rev/core.hpp>
namespace stan {
namespace math {
/**
* Converts kernel gene... | 25.83871 | 80 | 0.765293 | LaudateCorpus1 |
ef48161b9469a60d2066b60b1488814f11acffaf | 7,616 | hpp | C++ | Source/FFTMeter.hpp | hotwatermorning/LevelMeter | b052f51445870ea9135fcd65bc64542e237ac81c | [
"MIT"
] | 7 | 2016-08-04T08:30:01.000Z | 2021-07-13T02:16:20.000Z | Source/FFTMeter.hpp | hotwatermorning/LevelMeter | b052f51445870ea9135fcd65bc64542e237ac81c | [
"MIT"
] | null | null | null | Source/FFTMeter.hpp | hotwatermorning/LevelMeter | b052f51445870ea9135fcd65bc64542e237ac81c | [
"MIT"
] | null | null | null | /*
==============================================================================
FFTMeter.h
Created: 19 Jan 2016 4:11:43pm
Author: yuasa
==============================================================================
*/
#ifndef FFTMETER_H_INCLUDED
#define FFTMETER_H_INCLUDED
#include <... | 31.733333 | 131 | 0.531119 | hotwatermorning |
ef4c6326f5e4f95cbc981302de52df5defec4561 | 1,777 | cpp | C++ | tests/TcpServer_test.cpp | yangzecai/Web-Server | 8a26bc1ad7db5c3e4825fc8c37d83f53d0c98f7f | [
"MIT"
] | 2 | 2021-08-24T00:35:42.000Z | 2022-02-23T13:20:23.000Z | tests/TcpServer_test.cpp | yangzecai/Web-Server | 8a26bc1ad7db5c3e4825fc8c37d83f53d0c98f7f | [
"MIT"
] | null | null | null | tests/TcpServer_test.cpp | yangzecai/Web-Server | 8a26bc1ad7db5c3e4825fc8c37d83f53d0c98f7f | [
"MIT"
] | null | null | null | #include "Address.h"
#include "EventLoop.h"
#include "Log.h"
#include "TcpConnection.h"
#include "TcpServer.h"
#include <cstdio>
#include <chrono>
#include <unistd.h>
EventLoop* g_loop;
std::string message1;
std::string message2;
void onConnection(const TcpConnectionPtr& conn)
{
printf("onConnection(): new con... | 23.381579 | 68 | 0.65785 | yangzecai |
ef4ceed48da58f8e2e578d1fbb0801b4caf7233c | 9,222 | cpp | C++ | 3rd_party_libs/chai3d-2.1/src/devices/CVirtualDevice.cpp | atp42/jks-ros-pkg | 367fc00f2a9699f33d05c7957d319a80337f1ed4 | [
"FTL"
] | 3 | 2017-02-02T13:27:45.000Z | 2018-06-17T11:52:13.000Z | 3rd_party_libs/chai3d-2.1/src/devices/CVirtualDevice.cpp | salisbury-robotics/jks-ros-pkg | 367fc00f2a9699f33d05c7957d319a80337f1ed4 | [
"FTL"
] | null | null | null | 3rd_party_libs/chai3d-2.1/src/devices/CVirtualDevice.cpp | salisbury-robotics/jks-ros-pkg | 367fc00f2a9699f33d05c7957d319a80337f1ed4 | [
"FTL"
] | null | null | null | //===========================================================================
/*
This file is part of the CHAI 3D visualization and haptics libraries.
Copyright (C) 2003-2010 by CHAI 3D. All rights reserved.
This library is free software; you can redistribute it and/or modify
it under the terms o... | 29.557692 | 81 | 0.447951 | atp42 |
ef4fb0837a804f8aa1b82254932d0c1492cd9418 | 20 | cpp | C++ | vendor/kult/kult.cpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2019-02-11T12:18:39.000Z | 2019-02-11T12:18:39.000Z | vendor/kult/kult.cpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2021-11-11T07:27:58.000Z | 2021-11-11T07:27:58.000Z | vendor/kult/kult.cpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2021-11-11T07:22:12.000Z | 2021-11-11T07:22:12.000Z | #include "kult.hpp"
| 10 | 19 | 0.7 | emdavoca |
ef513d30412be923701d932668aa2e1a39d3828c | 3,012 | hh | C++ | src/faodel-common/BootstrapImplementation.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | src/faodel-common/BootstrapImplementation.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | src/faodel-common/BootstrapImplementation.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#ifndef FAODEL_COMMON_BOOTSTRAPINTERNAL_HH
#define FAODEL_COMMON_BOOTSTRAPINTERNAL_HH
#include <string>
#include... | 28.149533 | 80 | 0.722112 | faodel |
ef571c5b57d325d297c173d275539cd1416142e0 | 1,117 | cpp | C++ | eventset.cpp | rao1219/qt-SON | b8a28c8358dda55c3e5e01d199f2276b71dc2646 | [
"MIT"
] | 11 | 2015-08-31T15:53:43.000Z | 2021-12-24T13:25:05.000Z | eventset.cpp | rao1219/qt-SON | b8a28c8358dda55c3e5e01d199f2276b71dc2646 | [
"MIT"
] | null | null | null | eventset.cpp | rao1219/qt-SON | b8a28c8358dda55c3e5e01d199f2276b71dc2646 | [
"MIT"
] | 5 | 2017-06-30T07:18:44.000Z | 2020-04-17T16:08:15.000Z | #include "eventset.h"
#include "ui_eventset.h"
#include <QDebug>
eventSet::eventSet(QWidget *parent) :
QDialog(parent),
ui(new Ui::eventSet)
{
ui->setupUi(this);
QPalette bgpal = palette();
bgpal.setColor (QPalette::Background, QColor (29, 15, 29));
//bgpal.setColor (QPalette::Background, Qt::t... | 27.925 | 74 | 0.678603 | rao1219 |
ef58705892b12d6d7b05589554de923073d5681b | 3,331 | cpp | C++ | src/base/logger.cpp | wanchuanheng/wtaf | 90410ecb6b9e8213c0e2b2b87f72438d24ef8836 | [
"Apache-2.0"
] | null | null | null | src/base/logger.cpp | wanchuanheng/wtaf | 90410ecb6b9e8213c0e2b2b87f72438d24ef8836 | [
"Apache-2.0"
] | null | null | null | src/base/logger.cpp | wanchuanheng/wtaf | 90410ecb6b9e8213c0e2b2b87f72438d24ef8836 | [
"Apache-2.0"
] | null | null | null | #include <cstdarg>
#include <unistd.h>
#include <chrono>
#include <ctime>
#include <sys/stat.h>
#include <sys/types.h>
#include <thread>
#include "base/logger.h"
namespace wtaf {
namespace base {
void Logger::init(LOG_LEVEL level, const std::string &app, const std::string &path)
{
m_level = level;
struct time... | 30.842593 | 105 | 0.576704 | wanchuanheng |
ef59a5a79969c9e6a25ec6bbd597e3381684b289 | 201 | hpp | C++ | include/test_language_features.hpp | jdtaylor7/quetzal | 23d2dfe1c6620c6dc115710445307ddc241d4456 | [
"MIT"
] | null | null | null | include/test_language_features.hpp | jdtaylor7/quetzal | 23d2dfe1c6620c6dc115710445307ddc241d4456 | [
"MIT"
] | null | null | null | include/test_language_features.hpp | jdtaylor7/quetzal | 23d2dfe1c6620c6dc115710445307ddc241d4456 | [
"MIT"
] | null | null | null | #ifndef TEST_LANGUAGE_FEATURES_HPP
#define TEST_LANGUAGE_FEATURES_HPP
bool test_uninit_globals();
bool test_init_globals();
bool test_all_language_features();
#endif /* TEST_LANGUAGE_FEATURES_HPP */
| 22.333333 | 39 | 0.840796 | jdtaylor7 |
ef61347ea66adf304ba1a46f6ddb0c243f63cf81 | 11,863 | cpp | C++ | AADC/src/adtfUser/dev/src/util/history.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | 1 | 2018-05-10T22:35:25.000Z | 2018-05-10T22:35:25.000Z | AADC/src/adtfUser/dev/src/util/history.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | null | null | null | AADC/src/adtfUser/dev/src/util/history.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | null | null | null | #include "history.h"
#include <assert.h>
// -------------------------------------------------------------------------------------------------
bool History::insert(HistoryEntry new_entry) {
// -------------------------------------------------------------------------------------------------
if(entries_.size() > histor... | 41.190972 | 101 | 0.33811 | AADC-Fruit |
ef6459388f3b5ed605e46e28d1055259b9dafa26 | 1,824 | cpp | C++ | prog/prj/src/MacierzOb.cpp | MarutTomasz/ZadaniePodwodnyDron | 669ac1d10be228cd2d2e1517e5b56f9742abd421 | [
"MIT"
] | null | null | null | prog/prj/src/MacierzOb.cpp | MarutTomasz/ZadaniePodwodnyDron | 669ac1d10be228cd2d2e1517e5b56f9742abd421 | [
"MIT"
] | null | null | null | prog/prj/src/MacierzOb.cpp | MarutTomasz/ZadaniePodwodnyDron | 669ac1d10be228cd2d2e1517e5b56f9742abd421 | [
"MIT"
] | null | null | null | #include "MacierzOb.hh"
/*!
* \file
* \brief Definicja metod klasy MacierzOb
*
* Plik zawiera definicje metod działających
* na macierzach obrotu.
*/
MacierzOb::MacierzOb(const Macierz3D &M) : Macierz3D(M) {
double epsilon = 0.000000001;
if(abs(tab[0] * tab[1]) > epsilon){
cout << "Macierz nie jest ort... | 22.518519 | 76 | 0.524123 | MarutTomasz |
ef6a4232e6f2491c3b33091fce6da0f114e5fe9b | 4,118 | ipp | C++ | include/External/stlib/packages/shortest_paths/GraphDijkstra.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/shortest_paths/GraphDijkstra.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/shortest_paths/GraphDijkstra.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
#if !defined(__GraphDijkstra_ipp__)
#error This file is an implementation detail of the class GraphDijkstra.
#endif
namespace shortest_paths {
//
// Mathematical operations
//
template <typename WeightType, typename HeapType>
inline
void
GraphDijkstra<WeightType, HeapType>::
build() {... | 29.625899 | 77 | 0.654201 | bxl295 |
ef724a5fee6c341680ca5427d5697d2fe7cf8fba | 2,445 | inl | C++ | GLShader.inl | ffhighwind/DeferredShading | c8b765c5d1126ef8f337047db50e2eb63308baf9 | [
"Apache-2.0"
] | 1 | 2019-10-18T13:45:05.000Z | 2019-10-18T13:45:05.000Z | GLShader.inl | ffhighwind/DeferredShading | c8b765c5d1126ef8f337047db50e2eb63308baf9 | [
"Apache-2.0"
] | 1 | 2019-10-18T13:44:49.000Z | 2019-11-29T23:26:27.000Z | GLShader.inl | ffhighwind/DeferredShading | c8b765c5d1126ef8f337047db50e2eb63308baf9 | [
"Apache-2.0"
] | null | null | null | /*
* GLShader class for OpenGL 4.3
*
* Copyright (c) 2013 Wesley Hamilton
*
* 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 u... | 29.817073 | 104 | 0.745603 | ffhighwind |
ef72922217abbf859e05423495f1e87fc30d3ce5 | 2,870 | cpp | C++ | trains/train.cpp | mtlbaur/coursework_cpp | e86670df99a7e283c86bf702c708f92db6cfe0bf | [
"MIT"
] | null | null | null | trains/train.cpp | mtlbaur/coursework_cpp | e86670df99a7e283c86bf702c708f92db6cfe0bf | [
"MIT"
] | null | null | null | trains/train.cpp | mtlbaur/coursework_cpp | e86670df99a7e283c86bf702c708f92db6cfe0bf | [
"MIT"
] | null | null | null | // Name: Matthias Baur
// File Name: train.cpp
// Date: 3 October, 2017
// This is the source file for the header file "train.h".
#include "train.h"
using namespace std;
// This function is responsible for adding a car the the end of a train.
void addToEnd(TrainCar* &head, TrainCar* carToAdd)
{
if (head == NULL)
... | 18.75817 | 101 | 0.677352 | mtlbaur |
ef72c546e444ddc8238e9eea281d6e40f6d15209 | 1,367 | cpp | C++ | Kiwi/Private/Emulator.cpp | WhoBrokeTheBuild/Kiwi | 12370043032d07fa825e8c80ad11c931ce71235b | [
"MIT"
] | null | null | null | Kiwi/Private/Emulator.cpp | WhoBrokeTheBuild/Kiwi | 12370043032d07fa825e8c80ad11c931ce71235b | [
"MIT"
] | null | null | null | Kiwi/Private/Emulator.cpp | WhoBrokeTheBuild/Kiwi | 12370043032d07fa825e8c80ad11c931ce71235b | [
"MIT"
] | null | null | null | #include <Kiwi/Emulator.hpp>
#include <Kiwi/Log.hpp>
#include <QKeyEvent>
#include <QCoreApplication>
#include <chrono>
#include <typeinfo>
namespace kiwi {
using namespace std::chrono_literals;
Emulator::Emulator()
{
}
Emulator::~Emulator()
{
stop();
}
void Emulator::start()
{
if (_running) {
re... | 18.986111 | 144 | 0.596196 | WhoBrokeTheBuild |
ef74ccd4f99a3b33143694b3a68aa242cb4b5397 | 6,650 | cc | C++ | Geometry/MTDNumberingBuilder/plugins/MTDGeometricTimingDetExtraESModule.cc | flodamas/cmssw | fff9de2a54e62debab81057f8d6f8c82c2fd3dd6 | [
"Apache-2.0"
] | null | null | null | Geometry/MTDNumberingBuilder/plugins/MTDGeometricTimingDetExtraESModule.cc | flodamas/cmssw | fff9de2a54e62debab81057f8d6f8c82c2fd3dd6 | [
"Apache-2.0"
] | null | null | null | Geometry/MTDNumberingBuilder/plugins/MTDGeometricTimingDetExtraESModule.cc | flodamas/cmssw | fff9de2a54e62debab81057f8d6f8c82c2fd3dd6 | [
"Apache-2.0"
] | null | null | null | #include "Geometry/MTDNumberingBuilder/plugins/MTDGeometricTimingDetExtraESModule.h"
#include "Geometry/MTDNumberingBuilder/plugins/DDDCmsMTDConstruction.h"
#include "CondFormats/GeometryObjects/interface/PGeometricTimingDet.h"
#include "CondFormats/GeometryObjects/interface/PGeometricTimingDetExtra.h"
#include "Geomet... | 41.304348 | 171 | 0.67218 | flodamas |
ef74fc893c803120b15a589f3a0539fe520fed3b | 59,119 | cpp | C++ | meshoptimizer/demo/miniz.cpp | FAETHER/VEther | 081f0df2c4279c21e1d55bfc336a43bc96b5f1c3 | [
"MIT"
] | 3 | 2019-12-07T23:57:47.000Z | 2019-12-31T19:46:41.000Z | meshoptimizer/demo/miniz.cpp | FAETHER/VEther | 081f0df2c4279c21e1d55bfc336a43bc96b5f1c3 | [
"MIT"
] | null | null | null | meshoptimizer/demo/miniz.cpp | FAETHER/VEther | 081f0df2c4279c21e1d55bfc336a43bc96b5f1c3 | [
"MIT"
] | null | null | null | /* This is miniz.c with removal of all zlib/zip like functionality - only tdefl/tinfl APIs are left
For maximum compatibility unaligned load/store and 64-bit register paths have been removed so this is slower than miniz.c
miniz.c v1.15 - public domain deflate/inflate, zlib-subset, ZIP reading/writing/appending, ... | 37.679414 | 217 | 0.667907 | FAETHER |
ef783296e7654ad982da2ac3500b56fe53fec725 | 2,422 | cpp | C++ | WinAPIWrapperWiz/VCWizards/WinAPIWrapperWiz/templates/1033/document_window.cpp | cdragan/WinAPI-Wrapper | 5d9b0a3f70932b55b08fbe2700e611f466af9f0b | [
"MIT"
] | 15 | 2015-10-09T04:26:12.000Z | 2022-03-17T21:09:11.000Z | WinAPIWrapperWiz/VCWizards/WinAPIWrapperWiz/templates/1033/document_window.cpp | cdragan/WinAPI-Wrapper | 5d9b0a3f70932b55b08fbe2700e611f466af9f0b | [
"MIT"
] | null | null | null | WinAPIWrapperWiz/VCWizards/WinAPIWrapperWiz/templates/1033/document_window.cpp | cdragan/WinAPI-Wrapper | 5d9b0a3f70932b55b08fbe2700e611f466af9f0b | [
"MIT"
] | 7 | 2015-10-09T04:33:23.000Z | 2022-01-27T00:38:22.000Z |
#include "StdAfx.h"
#include "document_window.h"
using namespace WinAPI;
[!if PURE_WRAPPER || ON_GENERIC]
int DocumentWindow::HandleMessage( int uMsg, int wParam, int lParam )
{
switch ( uMsg ) {
[!if !PURE_WRAPPER]
case WM_USER: // Replace this with your messages
[!endif]
[!if PURE_WRAPPER]
cas... | 16.703448 | 85 | 0.656069 | cdragan |
ef7d0231a32890c7fb46352c97d49ee75b80770c | 5,933 | cpp | C++ | molequeue/app/testing/oartest.cpp | kwon-young/molequeue | 1dfed97fd34a26cb4ba9ee901b441d89f732bc64 | [
"BSD-3-Clause"
] | null | null | null | molequeue/app/testing/oartest.cpp | kwon-young/molequeue | 1dfed97fd34a26cb4ba9ee901b441d89f732bc64 | [
"BSD-3-Clause"
] | null | null | null | molequeue/app/testing/oartest.cpp | kwon-young/molequeue | 1dfed97fd34a26cb4ba9ee901b441d89f732bc64 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
This source file is part of the MoleQueue project.
Copyright 2013 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distr... | 34.9 | 620 | 0.670319 | kwon-young |
ef7f1a2dc27a339c0f1d609f315f4008e0cea273 | 2,870 | cpp | C++ | Code/C++/LCA/hdu4547_LCAODA.cpp | EdmundLuan/NOIP14-16 | c4277dfc7467346d6c67dd4cfae9a9caa08b487c | [
"MIT"
] | null | null | null | Code/C++/LCA/hdu4547_LCAODA.cpp | EdmundLuan/NOIP14-16 | c4277dfc7467346d6c67dd4cfae9a9caa08b487c | [
"MIT"
] | null | null | null | Code/C++/LCA/hdu4547_LCAODA.cpp | EdmundLuan/NOIP14-16 | c4277dfc7467346d6c67dd4cfae9a9caa08b487c | [
"MIT"
] | null | null | null | /*LCA Online Doubling Algorithm*/
#include <cstdio>
#include <cctype>
#include <queue>
#include <cstring>
#include <string>
#include <map>
#include <algorithm>
using namespace std;
const int maxn = 100010;
struct EDGE {
int to, next;
} edge[maxn << 1];
map<string, int>mapping;
int index, n, m, root, Num;
int ancest... | 20.35461 | 77 | 0.510105 | EdmundLuan |
ef811b7e4ac3e007270ac15ba8404e9b64a77758 | 8,596 | cpp | C++ | c10/test/core/impl/InlineStreamGuard_test.cpp | brooks-anderson/pytorch | dd928097938b6368fc7e2dc67721550d50ab08ea | [
"Intel"
] | 7 | 2021-05-29T16:31:51.000Z | 2022-02-21T18:52:25.000Z | c10/test/core/impl/InlineStreamGuard_test.cpp | stas00/pytorch | 6a085648d81ce88ff59d6d1438fdb3707a0d6fb7 | [
"Intel"
] | 1 | 2021-03-25T13:42:15.000Z | 2021-03-25T13:42:15.000Z | c10/test/core/impl/InlineStreamGuard_test.cpp | stas00/pytorch | 6a085648d81ce88ff59d6d1438fdb3707a0d6fb7 | [
"Intel"
] | 1 | 2021-12-26T23:20:06.000Z | 2021-12-26T23:20:06.000Z | #include <gtest/gtest.h>
#include <c10/core/impl/FakeGuardImpl.h>
#include <c10/core/impl/InlineStreamGuard.h>
using namespace c10;
using namespace c10::impl;
constexpr auto TestDeviceType = DeviceType::CUDA;
using TestGuardImpl = FakeGuardImpl<TestDeviceType>;
static Device dev(DeviceIndex index) {
return Device... | 38.375 | 79 | 0.727315 | brooks-anderson |
ef8238f0bd5700a762652ad239facb74f7ff7063 | 498 | cpp | C++ | tests/ds18b20/main/ds18b20.cpp | chegewara/esp32sx-c-plus-wrappers | dcc61fc057d6d07b354b4bd352956240707ca482 | [
"MIT"
] | 3 | 2021-12-15T10:24:08.000Z | 2022-03-10T14:34:10.000Z | tests/ds18b20/main/ds18b20.cpp | chegewara/esp32sx-c-plus-wrappers | dcc61fc057d6d07b354b4bd352956240707ca482 | [
"MIT"
] | null | null | null | tests/ds18b20/main/ds18b20.cpp | chegewara/esp32sx-c-plus-wrappers | dcc61fc057d6d07b354b4bd352956240707ca482 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include "ds18b20.hpp"
DS18B20 sensor(1);
extern "C" void app_main(void)
{
sensor.init(GPIO_NUM_14);
sensor.read();
sensor.addSensors();
sensor.removeSensors();
sensor.addSensors();
while (1)
{
sensor.read();
printf("Temperature readings (degrees C):\n")... | 19.153846 | 57 | 0.532129 | chegewara |
ef82a602364d0663ddfc1520af0a05bce17e5979 | 14,810 | cpp | C++ | contracts/eosio.system/src/voting.cpp | guilledk/telos.contracts | eff3dc89c6904196f0cf0591df2c2313e2f57800 | [
"MIT"
] | 11 | 2020-01-01T00:14:35.000Z | 2022-03-08T10:50:32.000Z | contracts/eosio.system/src/voting.cpp | guilledk/telos.contracts | eff3dc89c6904196f0cf0591df2c2313e2f57800 | [
"MIT"
] | 8 | 2020-11-28T06:16:09.000Z | 2022-03-28T11:53:00.000Z | contracts/eosio.system/src/voting.cpp | guilledk/telos.contracts | eff3dc89c6904196f0cf0591df2c2313e2f57800 | [
"MIT"
] | 11 | 2020-01-03T00:47:43.000Z | 2022-01-23T10:07:40.000Z | #include <eosio.system/eosio.system.hpp>
#include <eosio/eosio.hpp>
#include <eosio/datastream.hpp>
#include <eosio/serialize.hpp>
#include <eosio/multi_index.hpp>
#include <eosio/privileged.hpp>
#include <eosio/singleton.hpp>
#include <eosio/transaction.hpp>
#include <eosio.token/eosio.token.hpp>
#include <boost/con... | 41.836158 | 164 | 0.594261 | guilledk |
ef86603267050f3b4f30e94dfe5e4ada8d338f80 | 8,130 | cc | C++ | llcc/front-end/src/lexical_analyzer.cc | toy-compiler/toy_js_compiler | 4267c96cd65b2359b6ba70dad7ee1f17114e88fc | [
"MIT"
] | 2 | 2019-03-12T07:42:33.000Z | 2019-03-12T07:42:41.000Z | llcc/front-end/src/lexical_analyzer.cc | toy-compiler/awesomeCC | 4267c96cd65b2359b6ba70dad7ee1f17114e88fc | [
"MIT"
] | null | null | null | llcc/front-end/src/lexical_analyzer.cc | toy-compiler/awesomeCC | 4267c96cd65b2359b6ba70dad7ee1f17114e88fc | [
"MIT"
] | 1 | 2019-11-29T11:13:22.000Z | 2019-11-29T11:13:22.000Z | /**
* @file lexical_analyzer.cc
* @brief 词法分析器,具体实现
*/
#include "../include/lexical_analyzer.h"
/**
* @brief LexicalAnalyzer类构造函数
*/
LexicalAnalyzer::LexicalAnalyzer() {
in_comment = false;
};
/**
* @brief 判断curPos处是否为空字符
* @return
* -<em>true</em> 是空字符
* -<em>false</em> 不是空字符
*/
bool Lexi... | 26.057692 | 116 | 0.473924 | toy-compiler |
ef87441c699a7e1538738802e33fc97990ab8394 | 6,790 | cpp | C++ | module5/sw_parallel.cpp | madsbk/hpc_course | 8480e2992de2e617d061b0460f27b69c7f251bf8 | [
"MIT"
] | null | null | null | module5/sw_parallel.cpp | madsbk/hpc_course | 8480e2992de2e617d061b0460f27b69c7f251bf8 | [
"MIT"
] | null | null | null | module5/sw_parallel.cpp | madsbk/hpc_course | 8480e2992de2e617d061b0460f27b69c7f251bf8 | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
#include <fstream>
#include <chrono>
#include <cmath>
#include <numeric>
#include <cassert>
#include <array>
#include <algorithm>
using real_t = float;
constexpr size_t NX = 512, NY = 512; //World Size
using grid_t = std::array<std::array<real_t, NX>, NY>;
class Sim_Configuration... | 40.416667 | 126 | 0.57511 | madsbk |
ef8ed27b080958b77bfb153ebd32cd746fc9ef86 | 5,633 | cc | C++ | mysql-server/router/src/mock_server/src/mock_server_plugin.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/src/mock_server/src/mock_server_plugin.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/src/mock_server/src/mock_server_plugin.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (including
... | 32.75 | 80 | 0.679034 | silenc3502 |
ef8fb8f51b907e2072632953e558b3c0a16d7b9d | 56 | hpp | C++ | src/boost_wave_grammars_cpp_expression_value.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_wave_grammars_cpp_expression_value.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_wave_grammars_cpp_expression_value.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/wave/grammars/cpp_expression_value.hpp>
| 28 | 55 | 0.839286 | miathedev |
ef9059aafa477bd01466cb3170654a32160d5cd4 | 12,745 | cpp | C++ | src/video_compress/dxt_glsl.cpp | thpryrchn/UltraGrid | f9fdd96ff73e05888d26c40aaaccdf4eb5fe7289 | [
"BSD-3-Clause"
] | 370 | 2016-10-05T15:19:00.000Z | 2022-03-29T22:12:28.000Z | src/video_compress/dxt_glsl.cpp | thpryrchn/UltraGrid | f9fdd96ff73e05888d26c40aaaccdf4eb5fe7289 | [
"BSD-3-Clause"
] | 165 | 2016-11-21T13:01:36.000Z | 2022-03-31T20:01:20.000Z | src/video_compress/dxt_glsl.cpp | thpryrchn/UltraGrid | f9fdd96ff73e05888d26c40aaaccdf4eb5fe7289 | [
"BSD-3-Clause"
] | 63 | 2016-10-13T12:07:45.000Z | 2022-03-23T19:46:10.000Z | /**
* @file video_compress/dxt_glsl.cpp
* @author Martin Pulec <pulec@cesnet.cz>
*/
/*
* Copyright (c) 2011-2014 CESNET, z. s. p. o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following conditions
* are met:... | 36.104816 | 126 | 0.537466 | thpryrchn |
ef91c55817be5168e77058674085a768af6a087d | 628 | cpp | C++ | 5_lesson/run.cpp | JonMuehlst/INTROCPP | 5f394c58c66a873bafb11dce54207a1dd580c916 | [
"MIT"
] | null | null | null | 5_lesson/run.cpp | JonMuehlst/INTROCPP | 5f394c58c66a873bafb11dce54207a1dd580c916 | [
"MIT"
] | null | null | null | 5_lesson/run.cpp | JonMuehlst/INTROCPP | 5f394c58c66a873bafb11dce54207a1dd580c916 | [
"MIT"
] | null | null | null | #include <iostream>
#include "binom.h"
#include "selection_sort.h"
#include "gtest/gtest.h"
int main(int argc, char **argv) {
/*
Selection sort
*/
int arr[MAX_ARR_SIZE]; // static allocation
int arr_size= getArrayFromInput(arr, MAX_ARR_SIZE);
printArr(arr, 0, arr_size);
sort(arr, a... | 16.972973 | 59 | 0.55414 | JonMuehlst |
ef91e7b0d3d6ba358e8bef8f3d02c4fd91c08ddf | 3,039 | cpp | C++ | src/public/src/fssimplewindow/samples/sample02-echo/sample02-echo.cpp | rothberg-cmu/rothberg-run | a42df5ca9fae97de77753864f60d05295d77b59f | [
"MIT"
] | 1 | 2019-08-10T00:24:09.000Z | 2019-08-10T00:24:09.000Z | samples/fssimplewindow/samples/sample02-echo/sample02-echo.cpp | captainys/MMLPlayer | ce1d1a2a349b50f240527ca686e24f8ce2446449 | [
"BSD-3-Clause"
] | null | null | null | samples/fssimplewindow/samples/sample02-echo/sample02-echo.cpp | captainys/MMLPlayer | ce1d1a2a349b50f240527ca686e24f8ce2446449 | [
"BSD-3-Clause"
] | 2 | 2019-05-01T03:11:10.000Z | 2019-05-01T03:30:35.000Z | /* ////////////////////////////////////////////////////////////
File Name: sample02-echo.cpp
Copyright (c) 2017 Soji Yamakawa. All rights reserved.
http://www.ysflight.com
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
... | 23.55814 | 81 | 0.708128 | rothberg-cmu |
ef947b93d9c89103f82c52d600b4fc8345b36f5a | 6,953 | cpp | C++ | src/tools/gripper-control.cpp | Rascof/sot-core | 281ed2a1b40b7945b5a3d5735f785b9004b19f87 | [
"BSD-2-Clause"
] | 12 | 2016-03-28T07:15:27.000Z | 2022-01-05T13:41:06.000Z | src/tools/gripper-control.cpp | Rascof/sot-core | 281ed2a1b40b7945b5a3d5735f785b9004b19f87 | [
"BSD-2-Clause"
] | 121 | 2015-02-17T08:38:25.000Z | 2021-12-01T10:54:05.000Z | src/tools/gripper-control.cpp | Rascof/sot-core | 281ed2a1b40b7945b5a3d5735f785b9004b19f87 | [
"BSD-2-Clause"
] | 24 | 2015-07-01T16:25:24.000Z | 2021-11-08T15:06:58.000Z | /*
* Copyright 2010,
* François Bleibel,
* Olivier Stasse,
*
* CNRS/AIST
*
*/
#define ENABLE_RT_LOG
#include <sot/core/debug.hh>
#include <sot/core/factory.hh>
#include <sot/core/gripper-control.hh>
#include <sot/core/macros-signal.hh>
#include <dynamic-graph/all-commands.h>
#include <dynamic-graph/real-time-... | 35.840206 | 80 | 0.543506 | Rascof |
ef96a27368bdf6cc5d46d48282657c043274d62c | 3,432 | cpp | C++ | Data Struct Programming/Experiment 2/CarParking/main.cpp | xianfei/SSE18_Homework | 7ef4ccbbaf012224ceb190bf31593a2732a44405 | [
"WTFPL"
] | 62 | 2019-11-07T01:46:55.000Z | 2022-03-28T02:27:02.000Z | Data Struct Programming/Experiment 2/CarParking/main.cpp | WongBa/SSE18_Homework | 7ef4ccbbaf012224ceb190bf31593a2732a44405 | [
"WTFPL"
] | null | null | null | Data Struct Programming/Experiment 2/CarParking/main.cpp | WongBa/SSE18_Homework | 7ef4ccbbaf012224ceb190bf31593a2732a44405 | [
"WTFPL"
] | 9 | 2020-06-17T11:39:48.000Z | 2022-02-09T07:06:27.000Z | #include <iostream>
#include <stdexcept>
template <class T>
struct Stack{
const int DEFAULT_SIZE=10;
T* array=(T*)malloc(DEFAULT_SIZE*sizeof(T));
int size=0;
int capacity=DEFAULT_SIZE;
T getTop(){
if(size==0)throw std::out_of_range("stack is empty");
return array[size-1];
}
... | 29.084746 | 118 | 0.499709 | xianfei |
aab393d2a0cd27bda04c2653a88688c3872b8608 | 8,461 | cpp | C++ | src/jet/volume_particle_emitter3.cpp | Whitemane/fluid-engine-dev | 93c3e942182cd73d54b74b7c2a283854e79911be | [
"MIT"
] | 1 | 2018-04-16T13:09:03.000Z | 2018-04-16T13:09:03.000Z | src/jet/volume_particle_emitter3.cpp | Whitemane/fluid-engine-dev | 93c3e942182cd73d54b74b7c2a283854e79911be | [
"MIT"
] | null | null | null | src/jet/volume_particle_emitter3.cpp | Whitemane/fluid-engine-dev | 93c3e942182cd73d54b74b7c2a283854e79911be | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Doyub Kim
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include <pch.h>
#include <jet/bcc_lattice_point_generator.h>
#include <jet/point_hash_grid_searcher3.h>... | 28.392617 | 147 | 0.663279 | Whitemane |
aab3d8b8a09a2743d0de5116ee225498ed961872 | 2,822 | cpp | C++ | Packer/RepetitionFinder.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 67 | 2018-03-02T10:50:02.000Z | 2022-03-23T18:20:29.000Z | Packer/RepetitionFinder.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | null | null | null | Packer/RepetitionFinder.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 9 | 2018-03-01T16:38:28.000Z | 2021-03-02T16:17:09.000Z | //-------------------------------------
// (c) Reliable Software 1999-2003
// ------------------------------------
#include "precompiled.h"
#include "RepetitionFinder.h"
#include "Repetitions.h"
#include "ForgetfulHashTable.h"
#include "Statistics.h"
#include "Bucketizer.h"
#include <Ex/WinEx.h>
RepetitionFinder::Repe... | 30.021277 | 118 | 0.668675 | BartoszMilewski |
aab3fb72d062e9215459ab412efd3751d795aac5 | 5,466 | cpp | C++ | editor/audio/Player.cpp | minhvien5059/congnghe_Vietnam | 06d6efce856ba369db340a2d834e003fe5a99fa0 | [
"BSD-3-Clause"
] | 40 | 2015-09-03T05:50:42.000Z | 2022-02-25T10:00:01.000Z | editor/audio/Player.cpp | minhvien5059/congnghe_Vietnam | 06d6efce856ba369db340a2d834e003fe5a99fa0 | [
"BSD-3-Clause"
] | 1 | 2017-10-24T14:30:13.000Z | 2017-11-07T02:14:10.000Z | editor/audio/Player.cpp | minhvien5059/congnghe_Vietnam | 06d6efce856ba369db340a2d834e003fe5a99fa0 | [
"BSD-3-Clause"
] | 7 | 2017-03-13T07:08:19.000Z | 2021-06-01T01:06:05.000Z | /* Player.cpp from QTau http://github.com/qtau-devgroup/editor by digited, BSD license */
#include "audio/Player.h"
#include "audio/Source.h"
#include "audio/Mixer.h"
#include "Utils.h"
#include <QAudioOutput>
#include <QThread>
#include <QTimer>
#include <QDebug>
#include <QApplication>
qtmmPlayer::qtmmPlayer() :... | 23.973684 | 108 | 0.637029 | minhvien5059 |
aab56c1cca596c00a4365ee563d586d8b22f860e | 6,262 | hpp | C++ | tools/seec-view/ExplanationViewer.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 7 | 2018-06-25T12:06:13.000Z | 2022-01-18T09:20:13.000Z | tools/seec-view/ExplanationViewer.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 20 | 2016-12-01T23:46:12.000Z | 2019-08-11T02:41:04.000Z | tools/seec-view/ExplanationViewer.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 1 | 2020-10-19T03:20:05.000Z | 2020-10-19T03:20:05.000Z | //===- tools/seec-trace-view/ExplanationViewer.hpp ------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... | 26.091667 | 80 | 0.648195 | seec-team |
aab69f4adc8f9f080ac7d2c22e5750e4b92a7393 | 10,793 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgshaderterrain/osgshaderterrain.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 3 | 2018-08-20T12:12:43.000Z | 2021-06-06T09:43:27.000Z | deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgshaderterrain/osgshaderterrain.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgshaderterrain/osgshaderterrain.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z | /* OpenSceneGraph example, osgshaderterrain.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, ... | 32.509036 | 128 | 0.575095 | UM-ARM-Lab |
aab78b191f13689ed92ce23c9b2dcdcb50f90706 | 42,735 | cpp | C++ | src/genicam_device_nodelet.cpp | roboception/rc_genicam_driver_ros | 68e97903d72c5a840b93425903031d336ae97db8 | [
"BSD-3-Clause"
] | 1 | 2020-10-13T17:35:41.000Z | 2020-10-13T17:35:41.000Z | src/genicam_device_nodelet.cpp | roboception/rc_genicam_driver_ros | 68e97903d72c5a840b93425903031d336ae97db8 | [
"BSD-3-Clause"
] | null | null | null | src/genicam_device_nodelet.cpp | roboception/rc_genicam_driver_ros | 68e97903d72c5a840b93425903031d336ae97db8 | [
"BSD-3-Clause"
] | 1 | 2022-02-23T12:37:44.000Z | 2022-02-23T12:37:44.000Z | /*
* Copyright (c) 2020 Roboception GmbH
* All rights reserved
*
* Author: Heiko Hirschmueller
*
* 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 copyrig... | 31.307692 | 120 | 0.626255 | roboception |
aab965312397f90f3c18b850ecf341fe64ca32e9 | 2,825 | cpp | C++ | Tekken-7-Frames-To-Speech/audio.cpp | n-o-u/Tekken-7-Frames-To-Speech | b0c794464f34e0c0cdc3a848be3b51fc7e33ca1d | [
"MIT"
] | 1 | 2021-01-28T22:12:28.000Z | 2021-01-28T22:12:28.000Z | Tekken-7-Frames-To-Speech/audio.cpp | n-o-u/Tekken-7-Frames-To-Speech | b0c794464f34e0c0cdc3a848be3b51fc7e33ca1d | [
"MIT"
] | null | null | null | Tekken-7-Frames-To-Speech/audio.cpp | n-o-u/Tekken-7-Frames-To-Speech | b0c794464f34e0c0cdc3a848be3b51fc7e33ca1d | [
"MIT"
] | 1 | 2021-01-28T22:12:59.000Z | 2021-01-28T22:12:59.000Z | #include "frames-to-speech.h"
#include "resource.h"
#include "audio.h"
void playFramesAudio(int frames) {
LPCWSTR path = getWavResourcePath(frames);
if (path != 0) {
PlaySound(path, GetModuleHandle(NULL), SND_RESOURCE | SND_ASYNC);
//PlaySound(path, GetModuleHandle(NULL), SND_FILENAME | SND_ASYNC); //directly fr... | 17.993631 | 92 | 0.670088 | n-o-u |
aaba67aa05441d448ae0e0977586a10f1dc7c29d | 64 | cpp | C++ | src/ui/src/comms/dfcomms.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/ui/src/comms/dfcomms.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/ui/src/comms/dfcomms.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | /*
UI Comms Driver stuff (ALL of it which is NOT part of VU)
*/
| 16 | 57 | 0.671875 | Terebinth |
aabca80b93a778881b4f513e64b9466519e11487 | 4,813 | hpp | C++ | src/sprite/llvm/type.hpp | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | 1 | 2022-03-16T16:37:11.000Z | 2022-03-16T16:37:11.000Z | src/sprite/llvm/type.hpp | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | null | null | null | src/sprite/llvm/type.hpp | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | null | null | null | #pragma once
#include "sprite/llvm/config.hpp"
#include "sprite/llvm/fwd.hpp"
#include "sprite/llvm/llvmobj.hpp"
#include "sprite/llvm/array_ref.hpp"
#include "sprite/llvm/special_values.hpp"
#include "sprite/llvm/type_traits.hpp"
#include "llvm/IR/DerivedTypes.h"
#include <iostream>
#include <vector>
namespace sprite... | 26.157609 | 79 | 0.658633 | andyjost |