hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b734a89359d25f26c8059c848c924145e36066d4 | 1,031 | cpp | C++ | examples/kelpie/nonet/dim-sum/Producer.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | examples/kelpie/nonet/dim-sum/Producer.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | examples/kelpie/nonet/dim-sum/Producer.cpp | 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.
#include <iostream>
#include <chrono>
#include <cstdlib>
#include "Producer.hh"
using namespace std;
Producer:... | 23.431818 | 94 | 0.693501 | faodel |
b73525adbfa77ef2bf0f15bfca2adc306baab1cc | 664 | cpp | C++ | Compiler/AssignmentExpression.cpp | acbarrentine/Mika | 8d88f015360c1ab731da0fda1281a3327dcb9ec9 | [
"Unlicense"
] | null | null | null | Compiler/AssignmentExpression.cpp | acbarrentine/Mika | 8d88f015360c1ab731da0fda1281a3327dcb9ec9 | [
"Unlicense"
] | null | null | null | Compiler/AssignmentExpression.cpp | acbarrentine/Mika | 8d88f015360c1ab731da0fda1281a3327dcb9ec9 | [
"Unlicense"
] | null | null | null | #include "stdafx.h"
#include "AssignmentExpression.h"
#include "Compiler.h"
#include "ObjectFileHelper.h"
AssignmentExpression::AssignmentExpression(int rootToken)
: BinaryExpression(rootToken)
{
}
void AssignmentExpression::ResolveType(SymbolTable& symbolTable)
{
mLeft->ResolveType(symbolTable);
mRight->ResolveTy... | 22.896552 | 66 | 0.76506 | acbarrentine |
b737197c8687506ab9a90b4f5ddc1d77e07948cb | 3,843 | cpp | C++ | src/HydroMonitorCirculation.cpp | wvmarle/HydroMonitor | c3f6701bd84d13d74bd5a5f7e6b4b83944f30003 | [
"MIT"
] | 1 | 2021-12-31T01:44:38.000Z | 2021-12-31T01:44:38.000Z | src/HydroMonitorCirculation.cpp | wvmarle/HydroMonitor | c3f6701bd84d13d74bd5a5f7e6b4b83944f30003 | [
"MIT"
] | null | null | null | src/HydroMonitorCirculation.cpp | wvmarle/HydroMonitor | c3f6701bd84d13d74bd5a5f7e6b4b83944f30003 | [
"MIT"
] | 2 | 2018-11-12T09:21:33.000Z | 2020-07-09T02:35:30.000Z | #include <HydroMonitorCirculation.h>
#ifdef USE_CIRCULATION
/*
The constructor.
*/
HydroMonitorCirculation::HydroMonitorCirculation() {
}
/*
Set up the circulation pump control.
*/
#ifdef CIRCULATION_MCP17_PIN // Connected to MCP23017 port expander.
void HydroMonito... | 32.567797 | 164 | 0.687484 | wvmarle |
b7378606117519cf1fa04cffa76b5e68ad8f932c | 2,988 | cpp | C++ | plugins/qm-dsp/dsp/signalconditioning/Filter.cpp | horstsoft0815/qlcplus | 249da9d165630b89fe9fbb0796d892c992645709 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | plugins/qm-dsp/dsp/signalconditioning/Filter.cpp | horstsoft0815/qlcplus | 249da9d165630b89fe9fbb0796d892c992645709 | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2021-11-14T16:31:59.000Z | 2021-12-11T19:53:10.000Z | plugins/qm-dsp/dsp/signalconditioning/Filter.cpp | horstsoft0815/qlcplus | 249da9d165630b89fe9fbb0796d892c992645709 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
QM DSP Library
Centre for Digital Music, Queen Mary, University of London.
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 th... | 23.34375 | 84 | 0.519411 | horstsoft0815 |
b73b031149525a914a07ed34f91e5ee39783f533 | 2,737 | cpp | C++ | src/test/lib/entire_chunk_pos_list_test.cpp | ramboldio/hyrise | 41a3307dbe81a3378b4947aacf5347890cf0953d | [
"MIT"
] | 1 | 2019-12-30T13:23:30.000Z | 2019-12-30T13:23:30.000Z | src/test/lib/entire_chunk_pos_list_test.cpp | ramboldio/hyrise | 41a3307dbe81a3378b4947aacf5347890cf0953d | [
"MIT"
] | 5 | 2020-01-08T09:14:39.000Z | 2020-03-17T20:31:28.000Z | src/test/lib/entire_chunk_pos_list_test.cpp | ramboldio/hyrise | 41a3307dbe81a3378b4947aacf5347890cf0953d | [
"MIT"
] | null | null | null | #include "base_test.hpp"
#include "operators/get_table.hpp"
#include "operators/maintenance/create_table.hpp"
#include "operators/table_wrapper.hpp"
#include "storage/pos_lists/entire_chunk_pos_list.hpp"
#include "storage/pos_lists/rowid_pos_list.hpp"
namespace opossum {
class EntireChunkPosListTest : public BaseTest... | 42.107692 | 111 | 0.76909 | ramboldio |
b7500d1d8a1b1221f32e272a7ec41332559bde3e | 1,273 | cpp | C++ | Classes/BonusScene.cpp | smile0210/mcdinero | eb15fa27f48868850980338bd13bdd67a7c90ea4 | [
"MIT"
] | 2 | 2020-10-05T00:58:37.000Z | 2020-10-20T15:33:22.000Z | Classes/BonusScene.cpp | smile0210/mcdinero | eb15fa27f48868850980338bd13bdd67a7c90ea4 | [
"MIT"
] | null | null | null | Classes/BonusScene.cpp | smile0210/mcdinero | eb15fa27f48868850980338bd13bdd67a7c90ea4 | [
"MIT"
] | null | null | null | //
// BonusScene.cpp
// McDinero
//
// Created by Smile0210 on 05/03/15.
//
//
#include "BonusScene.h"
#include "GameManager.h"
#include "CustomDirector.h"
Scene* BonusScene::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
a... | 19.890625 | 103 | 0.659859 | smile0210 |
b75308462cf31a4059993ffedba5ba86a4f68ea8 | 2,554 | cpp | C++ | matlab-toolboxes/toolbox_signal/mex/coder/global.cpp | Dieselmarble/FYP | ce59fe8885a22f88ca8cddd7ea4f299a9f49c195 | [
"MIT"
] | 1 | 2019-05-12T17:07:26.000Z | 2019-05-12T17:07:26.000Z | matlab-toolboxes/toolbox_signal/mex/coder/global.cpp | Dieselmarble/FYP | ce59fe8885a22f88ca8cddd7ea4f299a9f49c195 | [
"MIT"
] | null | null | null | matlab-toolboxes/toolbox_signal/mex/coder/global.cpp | Dieselmarble/FYP | ce59fe8885a22f88ca8cddd7ea4f299a9f49c195 | [
"MIT"
] | null | null | null | /*---------------------------------------------------------------------------*/
// Baseline Wavelet Transform Coder Construction Kit
//
// Geoff Davis
// gdavis@cs.dartmouth.edu
// http://www.cs.dartmouth.edu/~gdavis
//
// Copyright 1996 Geoff Davis 9/11/96
//
// Permission is granted to use this software for research ... | 23.218182 | 79 | 0.473767 | Dieselmarble |
b7546f7598474ed30b5e792c06db5e013e57619f | 1,037 | cpp | C++ | Google/Kick Start 2018/Round A/A.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | Google/Kick Start 2018/Round A/A.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | Google/Kick Start 2018/Round A/A.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://codingcompetitions.withgoogle.com/kickstart/round/0000000000050edf/00000000000510ed
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
const ll mod = 1e9 + 7;
void solve (ll c)
{
ll n;
cin >> n;
string x = to_string (n), y... | 25.925 | 93 | 0.450338 | MaGnsio |
b757d3a31a70d58b14a9e54cc8cd77bbe0bb58cf | 1,147 | cpp | C++ | tests/unit/src/to_non_ext.cpp | cppfw/treeml | b8480ca944d4058cf41bc6dc7df3fffd604bd22a | [
"MIT"
] | 1 | 2022-02-19T18:35:03.000Z | 2022-02-19T18:35:03.000Z | tests/unit/src/to_non_ext.cpp | cppfw/treeml | b8480ca944d4058cf41bc6dc7df3fffd604bd22a | [
"MIT"
] | 13 | 2021-02-25T22:03:07.000Z | 2022-02-20T20:52:59.000Z | tests/unit/src/to_non_ext.cpp | cppfw/treeml | b8480ca944d4058cf41bc6dc7df3fffd604bd22a | [
"MIT"
] | 1 | 2021-05-13T21:54:24.000Z | 2021-05-13T21:54:24.000Z | #include <tst/set.hpp>
#include <tst/check.hpp>
#include "../../../src/treeml/tree_ext.hpp"
namespace{
tst::set set0("to_non_ext", [](auto& suite){
suite.template add<std::string>(
"tree_to_non_ext",
{
"hello",
"hello {world!}",
"hello{world!... | 26.674419 | 85 | 0.428073 | cppfw |
b7596e0a61daf7b5932fc1d5227978f9972a6b91 | 219 | cpp | C++ | chapter3/Proj323.cpp | basstal/CPPPrimer | 6366965657f873ac62003cf0a30a3fdb26c09351 | [
"MIT"
] | null | null | null | chapter3/Proj323.cpp | basstal/CPPPrimer | 6366965657f873ac62003cf0a30a3fdb26c09351 | [
"MIT"
] | null | null | null | chapter3/Proj323.cpp | basstal/CPPPrimer | 6366965657f873ac62003cf0a30a3fdb26c09351 | [
"MIT"
] | null | null | null | #include<vector>
#include<iostream>
using namespace::std;
int main()
{
vector<int> vctI(10,8);
for(auto it=vctI.begin();it!=vctI.end();++it)
*it *= 2;
for(auto &w:vctI)
cout<<w<<" ";
cout<<endl;
return 0;
}
| 13.6875 | 46 | 0.60274 | basstal |
b759892b866e3a855e2a328ffb15edbb515c40c4 | 1,649 | cpp | C++ | ToolBox/CsvParse/CsvParseLibrary/BoreholeParams.cpp | TXCodeDancer/OpenSource | 18c6442be2a8b6459a46c5021dd9b68698811811 | [
"MIT"
] | null | null | null | ToolBox/CsvParse/CsvParseLibrary/BoreholeParams.cpp | TXCodeDancer/OpenSource | 18c6442be2a8b6459a46c5021dd9b68698811811 | [
"MIT"
] | null | null | null | ToolBox/CsvParse/CsvParseLibrary/BoreholeParams.cpp | TXCodeDancer/OpenSource | 18c6442be2a8b6459a46c5021dd9b68698811811 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "BoreholeParams.h"
#include <stdexcept>
#include "RapidCsvEngine.h"
#include <iomanip>
std::vector<float> BoreholeParams::GetData(std::string csvIn)
{
auto rapidCsvEngine = RapidCsvEngine();
auto colRow = (int)rapidCsvEngine.GetRowIdx(csvIn, "~PARAMETER", ' ') + 2;
auto inputs = r... | 27.949153 | 91 | 0.632505 | TXCodeDancer |
b760c11c9ee9e91d592227dfaffaf5ecacc27410 | 204 | cpp | C++ | src/main.cpp | JaimieVos/opengl-framework | 98bcf93f78e11ada0dab40adb75082c732540c3b | [
"MIT"
] | null | null | null | src/main.cpp | JaimieVos/opengl-framework | 98bcf93f78e11ada0dab40adb75082c732540c3b | [
"MIT"
] | 10 | 2022-01-01T21:29:03.000Z | 2022-01-02T21:11:10.000Z | src/main.cpp | JaimieVos/opengl-framework | 98bcf93f78e11ada0dab40adb75082c732540c3b | [
"MIT"
] | null | null | null | #include "core/engine.h"
#include "scenes/example.h"
#include <iostream>
#include <memory.h>
int main()
{
Engine::get().init("OpenGL Framework", std::make_shared<ExampleScene>());
return 0;
} | 15.692308 | 77 | 0.666667 | JaimieVos |
b76b6835d13ab4917eb4c17a09edd1dcb8999bfd | 1,216 | cpp | C++ | src/chp15/15_4.cpp | gianscarpe/cpp_primer | f09c645449d9b79e7c77dde13381513dee25519a | [
"MIT"
] | null | null | null | src/chp15/15_4.cpp | gianscarpe/cpp_primer | f09c645449d9b79e7c77dde13381513dee25519a | [
"MIT"
] | null | null | null | src/chp15/15_4.cpp | gianscarpe/cpp_primer | f09c645449d9b79e7c77dde13381513dee25519a | [
"MIT"
] | null | null | null | #include "Quote.hpp"
class Base {
public:
int pub_mem;
protected:
int prot_mem;
private:
int priv_mem;
};
struct Pub_Derv: Base{
int f() { return prot_mem; }
void memf(Base &b) { b = *this; }
};
struct Priv_Derv: private Base{
int f1() const { return prot_mem; }
void memf(Base &b) { b = *this; }
};... | 15.2 | 46 | 0.601974 | gianscarpe |
b76ef78fb09770540e2465b4da87db9f5c4b0532 | 191,950 | cpp | C++ | tests/unit/fem/test_3d_bilininteg.cpp | lmdiazangulo/mfem | 34c0b55882e931d068613ce4ce24b608d53a6d32 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/fem/test_3d_bilininteg.cpp | lmdiazangulo/mfem | 34c0b55882e931d068613ce4ce24b608d53a6d32 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/fem/test_3d_bilininteg.cpp | lmdiazangulo/mfem | 34c0b55882e931d068613ce4ce24b608d53a6d32 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... | 33.622351 | 80 | 0.529138 | lmdiazangulo |
b77074d4df684b8670c785f2fd55f9e7f7bfe6be | 9,006 | cpp | C++ | lib/main.cpp | COSEnu/COSEnu | 62d3dd8c8b8bbc29af4b09ba00f3a1bd5868aa12 | [
"BSD-3-Clause"
] | 2 | 2022-03-25T22:20:21.000Z | 2022-03-29T17:20:32.000Z | lib/main.cpp | COSEnu/COSEnu | 62d3dd8c8b8bbc29af4b09ba00f3a1bd5868aa12 | [
"BSD-3-Clause"
] | null | null | null | lib/main.cpp | COSEnu/COSEnu | 62d3dd8c8b8bbc29af4b09ba00f3a1bd5868aa12 | [
"BSD-3-Clause"
] | null | null | null |
// +------------------------------------------------------------------------------------------+
// | COSEnu |
// +------------------------------------------------------------------------------------------+
// | Contributors: ... | 29.722772 | 106 | 0.469576 | COSEnu |
b7828d82744046943cf9e17040995207532b7983 | 4,095 | cpp | C++ | sandbox/src/main.cpp | trbflxr/x808 | d5ab9e96c5a6109283151a591c261e4183628075 | [
"MIT"
] | null | null | null | sandbox/src/main.cpp | trbflxr/x808 | d5ab9e96c5a6109283151a591c261e4183628075 | [
"MIT"
] | null | null | null | sandbox/src/main.cpp | trbflxr/x808 | d5ab9e96c5a6109283151a591c261e4183628075 | [
"MIT"
] | null | null | null | #include <xe/app/application.hpp>
#include <xe/core/vfs.hpp>
#include <xe/core/filesystem.hpp>
#include <xe/resources/texturemanager.hpp>
#include <xe/resources/soundmanager.hpp>
#include "mainmenu.hpp"
#include "3d/examplescene.hpp"
static void writeKeyValue(xe::Config &config, const char *key, const char *value) {
... | 32.244094 | 87 | 0.636386 | trbflxr |
b785c288398757b37bfba955f3493514f2a38169 | 36,167 | cpp | C++ | src/CommonProperties.cpp | TimoKunze/EditControls | bab032907b47bafb0afdf700aebd5057be4662d6 | [
"MIT"
] | 4 | 2019-02-24T09:43:17.000Z | 2020-10-02T08:56:41.000Z | src/CommonProperties.cpp | TimoKunze/EditControls | bab032907b47bafb0afdf700aebd5057be4662d6 | [
"MIT"
] | null | null | null | src/CommonProperties.cpp | TimoKunze/EditControls | bab032907b47bafb0afdf700aebd5057be4662d6 | [
"MIT"
] | 1 | 2022-01-31T01:11:26.000Z | 2022-01-31T01:11:26.000Z | // CommonProperties.cpp: The controls' "Common" property page
#include "stdafx.h"
#include "CommonProperties.h"
CommonProperties::CommonProperties()
{
m_dwTitleID = IDS_TITLECOMMONPROPERTIES;
m_dwDocStringID = IDS_DOCSTRINGCOMMONPROPERTIES;
}
//////////////////////////////////////////////////////////////////////... | 53.73997 | 231 | 0.767772 | TimoKunze |
b7909fa55fe5bb3018d0b87faff8a1b2bb4b8ab5 | 12,890 | cc | C++ | quake_framebuffer/ustl-master/ustring.cc | WarlockD/quake-stm32 | 8414f407f6fc529bf9d5a371ed91c1ee1194679b | [
"BSD-2-Clause"
] | 4 | 2018-07-03T14:21:39.000Z | 2021-06-01T06:12:14.000Z | quake_framebuffer/ustl-master/ustring.cc | WarlockD/quake-stm32 | 8414f407f6fc529bf9d5a371ed91c1ee1194679b | [
"BSD-2-Clause"
] | null | null | null | quake_framebuffer/ustl-master/ustring.cc | WarlockD/quake-stm32 | 8414f407f6fc529bf9d5a371ed91c1ee1194679b | [
"BSD-2-Clause"
] | null | null | null | // This file is part of the uSTL library, an STL implementation.
//
// Copyright (c) 2005 by Mike Sharov <msharov@users.sourceforge.net>
// This file is free software, distributed under the MIT License.
#include "icommon.h"
#include "ustring.h"
#include "strmsize.h"
#include <stdio.h> // for vsnprintf (in string::forma... | 31.593137 | 153 | 0.638402 | WarlockD |
b7973e1336161a5bf8f423e57ec19d0202ef2a96 | 1,646 | hpp | C++ | include/rime/assert.hpp | rogiervd/rime | 9abf14ef3461e789b67ec4dd92e88cb9ea7a0587 | [
"Apache-2.0"
] | null | null | null | include/rime/assert.hpp | rogiervd/rime | 9abf14ef3461e789b67ec4dd92e88cb9ea7a0587 | [
"Apache-2.0"
] | null | null | null | include/rime/assert.hpp | rogiervd/rime | 9abf14ef3461e789b67ec4dd92e88cb9ea7a0587 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2013 Rogier van Dalen.
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 writing, softwa... | 27.898305 | 73 | 0.671932 | rogiervd |
b79c08aacb15e080d570d80011dd1120ca98e924 | 608 | cpp | C++ | Lab3/main.cpp | JaeSungPak/Pocu_Test | 9f606e88236ef59bba1baea7a0199fd6c49fe478 | [
"MIT"
] | null | null | null | Lab3/main.cpp | JaeSungPak/Pocu_Test | 9f606e88236ef59bba1baea7a0199fd6c49fe478 | [
"MIT"
] | null | null | null | Lab3/main.cpp | JaeSungPak/Pocu_Test | 9f606e88236ef59bba1baea7a0199fd6c49fe478 | [
"MIT"
] | null | null | null | #include <iostream>
#include "TimeSheet.h"
int main()
{
lab3::TimeSheet employee1("", 10);
employee1 = employee1;
std::cout << "Employee: " << employee1.GetName() << " / AverageTime: " << employee1.GetAverageTime() << " / StandardDeviation: " << employee1.GetStandardDeviation() << " / TotalTime: " <<... | 46.769231 | 232 | 0.631579 | JaeSungPak |
b7a08a56a1dcdec7a2ca698bd029f7fb54e31425 | 12,642 | cpp | C++ | src/launcher/reslistgenerator.cpp | DeadZoneLuna/csso-src | 6c978ea304ee2df3796bc9c0d2916bac550050d5 | [
"Unlicense"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | src/launcher/reslistgenerator.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | null | null | null | src/launcher/reslistgenerator.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// Defines the entry point for the application.
//
//===========================================================================//
#include "reslistgenerator.h"
#include "filesystem.h"
#include "tier1/utlrbtree.h"
#include ... | 24.125954 | 173 | 0.668882 | DeadZoneLuna |
b7a9a7328a25d80a858e9d598eaad439c9cdca0a | 525 | cpp | C++ | src/fireengine.native.player/src/app/project.cpp | iamkevinf/FireEngine | abf440f7a1e5596165b08fcc691ce894dfe2faef | [
"MIT"
] | 1 | 2021-12-15T07:14:53.000Z | 2021-12-15T07:14:53.000Z | src/fireengine.native.player/src/app/project.cpp | iamkevinf/FireEngine | abf440f7a1e5596165b08fcc691ce894dfe2faef | [
"MIT"
] | null | null | null | src/fireengine.native.player/src/app/project.cpp | iamkevinf/FireEngine | abf440f7a1e5596165b08fcc691ce894dfe2faef | [
"MIT"
] | null | null | null | #include "project.h"
#include "exportapi.h"
#include "utils/string_tool.h"
namespace FireEngine
{
Project Project::s_instance;
Project* Project::getInstance()
{
return &s_instance;
}
EXPORT_API void SetProjectPath(const char16_t* path)
{
std::string _path = ToUtf8String(std::u16string(pa... | 19.444444 | 63 | 0.687619 | iamkevinf |
5d9d4eb783ddbbe5c4f684437b81613508dcddd7 | 43,737 | cpp | C++ | mathlib.cpp | flysaiah/583-possible-benchmarks | cc41b69a4ca9e5612c606e5de2685b2ae1d67a1b | [
"MIT"
] | 1 | 2022-03-29T06:47:22.000Z | 2022-03-29T06:47:22.000Z | mathlib.cpp | flysaiah/583-possible-benchmarks | cc41b69a4ca9e5612c606e5de2685b2ae1d67a1b | [
"MIT"
] | null | null | null | mathlib.cpp | flysaiah/583-possible-benchmarks | cc41b69a4ca9e5612c606e5de2685b2ae1d67a1b | [
"MIT"
] | null | null | null | /*
Copyright 2007-2010 Adobe Systems Incorporated
Copyright 2018 Chris Cox
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html )
Goal: Examine performance of the standard math library routines.
Assumptions:
1) mathlib func... | 36.477898 | 126 | 0.518074 | flysaiah |
5da131b40fbec5750a2229583593f0cb941966af | 4,374 | cpp | C++ | component/edriver/WiFi/esp8266_tcp.cpp | eboxmaker/eboxFramework-rtt | 9718678422f56faec1cf21a6a8fd3f72441bea33 | [
"MIT"
] | 115 | 2018-08-12T08:41:17.000Z | 2022-03-08T07:43:48.000Z | component/edriver/WiFi/esp8266_tcp.cpp | eboxmaker/eboxFramework-rtt | 9718678422f56faec1cf21a6a8fd3f72441bea33 | [
"MIT"
] | 4 | 2018-08-13T10:14:55.000Z | 2019-07-03T06:54:10.000Z | component/edriver/WiFi/esp8266_tcp.cpp | eboxmaker/eboxFramework-rtt | 9718678422f56faec1cf21a6a8fd3f72441bea33 | [
"MIT"
] | 59 | 2018-09-02T21:54:25.000Z | 2022-01-13T02:28:28.000Z | /*
* file : esp8266_tcp.cpp
* author : shentq&link
* version: V1.0
* date : 2016/03/18
*
* esp8266 library for eBOX.
*
* Copyright Notice
* No part of this software may be used for any commercial activities by any form or means, without the prior written consent of shentq and link.
* Disclaimer
* T... | 21.028846 | 167 | 0.613397 | eboxmaker |
5da5e47146e6177acb384228e7c1ec3b3077836b | 2,214 | cpp | C++ | SYCL/DeprecatedFeatures/kernel_interop.cpp | dnmokhov/llvm-test-suite | fd60c1f4918b80d67a71cf0b8dd0397ccc594728 | [
"Apache-2.0"
] | 10 | 2020-08-04T04:29:03.000Z | 2022-02-23T21:43:56.000Z | SYCL/DeprecatedFeatures/kernel_interop.cpp | dnmokhov/llvm-test-suite | fd60c1f4918b80d67a71cf0b8dd0397ccc594728 | [
"Apache-2.0"
] | 519 | 2020-09-15T07:40:51.000Z | 2022-03-31T20:51:15.000Z | SYCL/DeprecatedFeatures/kernel_interop.cpp | dnmokhov/llvm-test-suite | fd60c1f4918b80d67a71cf0b8dd0397ccc594728 | [
"Apache-2.0"
] | 117 | 2020-06-24T13:11:04.000Z | 2022-03-23T15:44:23.000Z | // REQUIRES: opencl, opencl_icd
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -D__SYCL_INTERNAL_API %s -o %t.out %opencl_lib
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//==--------------- kernel_interop.cpp - SYCL kernel ocl interop test ------==/... | 30.75 | 98 | 0.66486 | dnmokhov |
5da8227c0fc80e8dedcff1ae6d52b6849e8a9c7e | 1,626 | cpp | C++ | Algorithms/FibonacciSequenceDynamicProgramming.cpp | yzsme/Algorithms | d774a3d7ede5cd2390d8f358c08d6fdcf906b1a5 | [
"MIT"
] | null | null | null | Algorithms/FibonacciSequenceDynamicProgramming.cpp | yzsme/Algorithms | d774a3d7ede5cd2390d8f358c08d6fdcf906b1a5 | [
"MIT"
] | null | null | null | Algorithms/FibonacciSequenceDynamicProgramming.cpp | yzsme/Algorithms | d774a3d7ede5cd2390d8f358c08d6fdcf906b1a5 | [
"MIT"
] | null | null | null | //
// Created by Zhensheng on 2017/5/23.
//
#include <cstring>
#include <climits>
#include "FibonacciSequenceDynamicProgramming.h"
namespace Algorithms {
FibonacciSequenceDynamicProgramming::FibonacciSequenceDynamicProgramming(int n) {
this->n = n;
this->tmp = new unsigned long long[n +... | 30.111111 | 126 | 0.570111 | yzsme |
5da99d696fd9be14bc1e29339cdccc0f379eb471 | 594 | cpp | C++ | easy2d/src/object/e2d_action.cpp | xiyoo0812/easy2d | 4edf9683de603d7f8c9474f0923001b8de48429f | [
"MIT"
] | 3 | 2021-05-25T01:51:11.000Z | 2021-08-09T02:06:59.000Z | easy2d/src/object/e2d_action.cpp | xiyoo0812/easy2d | 4edf9683de603d7f8c9474f0923001b8de48429f | [
"MIT"
] | null | null | null | easy2d/src/object/e2d_action.cpp | xiyoo0812/easy2d | 4edf9683de603d7f8c9474f0923001b8de48429f | [
"MIT"
] | null | null | null | #include "e2d_action.h"
#include "e2d_entity.h"
/* Easy2D */
using namespace Easy2D;
Action::Action() : Object()
{
}
Action::Action(const String& name) : Object(name)
{
}
Action::~Action()
{
}
void Action::destroy()
{
if (!mMaster.expired())
{
mMaster.lock()->removeAction(mGUID);
}
}
void ... | 10.8 | 49 | 0.616162 | xiyoo0812 |
5dad1dcfdda188d14fe2082d35e72e5a34e42012 | 1,610 | cpp | C++ | Userland/Applications/Spreadsheet/Writers/Test/TestXSVWriter.cpp | toottoot1/serenity | 81b44450a74dc1b5cf7cc7cd96597b6d06aa97bb | [
"BSD-2-Clause"
] | 1 | 2021-05-04T04:22:39.000Z | 2021-05-04T04:22:39.000Z | Userland/Applications/Spreadsheet/Writers/Test/TestXSVWriter.cpp | arunb-lab/serenity | 4b3336507823328292fbcc8bc1a1cb726974a1a1 | [
"BSD-2-Clause"
] | null | null | null | Userland/Applications/Spreadsheet/Writers/Test/TestXSVWriter.cpp | arunb-lab/serenity | 4b3336507823328292fbcc8bc1a1cb726974a1a1 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/TestSuite.h>
#include "../CSV.h"
#include "../XSV.h"
#include <AK/MemoryStream.h>
TEST_CASE(can_write)
{
Vector<Vector<int>> data = {
{ 1, 2, 3 },
{ 4, 5, 6 },
{ 7, 8, 9 },
... | 20.909091 | 143 | 0.599379 | toottoot1 |
5dad4d19e4cb659660fbc9d9f157a2b5b5f7af58 | 3,370 | cpp | C++ | rot18.cpp | VoxelPixel/cipherCpp | fefa88f30f4351c8e998d7ebae1175ec9dc03578 | [
"MIT"
] | 5 | 2020-01-16T16:38:19.000Z | 2021-04-06T10:04:34.000Z | rot18.cpp | rawatarun1592/code | 92d65a6e6f26a3034ebe03d114f6447f86d7f716 | [
"MIT"
] | null | null | null | rot18.cpp | rawatarun1592/code | 92d65a6e6f26a3034ebe03d114f6447f86d7f716 | [
"MIT"
] | 9 | 2019-08-20T19:08:35.000Z | 2022-02-28T10:56:57.000Z | /*********
-*- Made by VoxelPixel
-*- For YouTube Tutorial
-*- https://github.com/VoxelPixel
-*- Support me on Patreon: https://www.patreon.com/voxelpixel
*********/
#include <iostream>
#include <regex>
using namespace std;
void cipherDecryption(){
string rot5 = "5678901234";
string zeroToN... | 26.124031 | 70 | 0.45727 | VoxelPixel |
5db0168a85a159f60a63abbd1f3709fb0d6cf558 | 793 | hpp | C++ | core/database/database/Database.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | 2 | 2022-02-21T08:23:02.000Z | 2022-03-17T10:01:40.000Z | core/database/database/Database.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | 43 | 2022-02-21T13:07:08.000Z | 2022-03-22T11:02:16.000Z | core/database/database/Database.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | null | null | null | #ifndef MAD_DATABASE_HPP
#define MAD_DATABASE_HPP
#include <pqxx/pqxx>
#include <cstddef>
namespace mad::core {
class Database {
public:
Database();
bool is_user_exists(const std::string &username);
void registry_user(const std::string &username);
std::size_t get_id(const ... | 20.868421 | 62 | 0.65826 | PlatformerTeam |
5db8180845a9854ac416b7acba22ee46c84451c4 | 755 | cpp | C++ | src/libaten/sampler/sampler.cpp | nackdai/aten | 6d8ca0ddbf4ea77a87b1b5506d43d3a910cf9fef | [
"MIT"
] | 49 | 2018-02-04T07:13:52.000Z | 2021-11-23T16:44:17.000Z | src/libaten/sampler/sampler.cpp | nakdai/aten | f6de0840c1631bafbec3162da6a9af5767300e4d | [
"MIT"
] | 11 | 2020-01-21T01:40:20.000Z | 2022-02-06T08:14:34.000Z | src/libaten/sampler/sampler.cpp | nakdai/aten | f6de0840c1631bafbec3162da6a9af5767300e4d | [
"MIT"
] | 4 | 2018-10-28T22:19:27.000Z | 2021-03-26T09:27:36.000Z | #include <random>
#include <algorithm>
#include "sampler/samplerinterface.h"
#include "sampler/halton.h"
namespace aten {
static std::vector<uint32_t> g_random;
void initSampler(
uint32_t width, uint32_t height,
int seed/*= 0*/,
bool needInitHalton/*= false*/)
{
// TODO
... | 21.571429 | 66 | 0.584106 | nackdai |
5db9a76cb9cea71e74ddc4d78384b50cc70e8222 | 25,336 | cpp | C++ | gui/SignalCharacteristics.cpp | Qinterfly/EvalSig | a7884f926b97f442eaf1048aff94bef9ebf5c867 | [
"MIT"
] | null | null | null | gui/SignalCharacteristics.cpp | Qinterfly/EvalSig | a7884f926b97f442eaf1048aff94bef9ebf5c867 | [
"MIT"
] | null | null | null | gui/SignalCharacteristics.cpp | Qinterfly/EvalSig | a7884f926b97f442eaf1048aff94bef9ebf5c867 | [
"MIT"
] | null | null | null | #include "MainWindow.h"
#include "ui_MainWindow.h"
#include "core/NumericalFunctions.h"
// ---- Характеристики сигнала ---------------------------------------------------------------------------------
// Вспомогательные функции
void checkWeightWindowWidth(QPointer<QSpinBox> spinBoxWeightWindowWidth); // Проверка шири... | 52.564315 | 214 | 0.705399 | Qinterfly |
5db9f9e1151cb96514f43b1015add14b00267d35 | 5,105 | cpp | C++ | code/proj/Plutonium/UnitTesting/Vector2.cpp | Arzana/Plutonium | 5a17c93e5072ac291b96347a4df196e1609fabe2 | [
"MIT"
] | 4 | 2019-03-21T16:02:03.000Z | 2020-04-09T08:53:29.000Z | code/proj/Plutonium/UnitTesting/Vector2.cpp | Arzana/Plutonium | 5a17c93e5072ac291b96347a4df196e1609fabe2 | [
"MIT"
] | 24 | 2018-04-06T08:25:17.000Z | 2020-10-19T11:01:09.000Z | code/proj/Plutonium/UnitTesting/Vector2.cpp | Arzana/Plutonium | 5a17c93e5072ac291b96347a4df196e1609fabe2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CppUnitTest.h"
#include <ctime>
#include <Core/Math/Vector2.h>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTesting
{
TEST_CLASS(Vector2)
{
public:
TEST_METHOD(DefaultCtor)
{
const Pu::Vector2 v;
Assert::AreEqual(0.0f, v.X, L"Vector2.X was not... | 30.029412 | 97 | 0.666993 | Arzana |
5dbbbe9eaa2acb7f7856b1dc8d2941ec97e7ecfd | 19,979 | cpp | C++ | src/engine/host_listmaps.cpp | DeadZoneLuna/csso-src | 6c978ea304ee2df3796bc9c0d2916bac550050d5 | [
"Unlicense"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | src/engine/host_listmaps.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | null | null | null | src/engine/host_listmaps.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//===========================================================================//
#include "quakedef.h"
#include "bspfile.h"
#include "host.h"
#include "sys.h"
#include "filesystem_engine.h"
#include "utld... | 27.981793 | 186 | 0.518645 | DeadZoneLuna |
5dc2428cd35f409200eeab411fa90421fe8fc8fe | 2,304 | cpp | C++ | source/test/cgdlTestLog.cpp | graveman82/cgdl | 6418de44aab4e3b98adf197d54401081c2d61f3f | [
"MIT"
] | null | null | null | source/test/cgdlTestLog.cpp | graveman82/cgdl | 6418de44aab4e3b98adf197d54401081c2d61f3f | [
"MIT"
] | null | null | null | source/test/cgdlTestLog.cpp | graveman82/cgdl | 6418de44aab4e3b98adf197d54401081c2d61f3f | [
"MIT"
] | null | null | null | /*
//-----------------------------------------------------------------------------
MIT License
Project: CGDL (Common Game Development Library)
Copyright (c) 2021 Marat Sungatullin (aka graveman[82], aka MrSung[82])
Permission is hereby granted, free of charge, to any person obtaining a copy
of thi... | 39.050847 | 82 | 0.62934 | graveman82 |
5dc505a32064975b21d59f7a821ce4cd1ccb0630 | 2,360 | cc | C++ | src/fileseverity.cc | i-rinat/fragview | 930b51b6290356c389b0b3a9de6b62344e7e0b5a | [
"MIT"
] | 47 | 2015-02-04T20:51:24.000Z | 2022-03-21T04:47:53.000Z | src/fileseverity.cc | dcstrange/fragview | 930b51b6290356c389b0b3a9de6b62344e7e0b5a | [
"MIT"
] | 10 | 2015-02-07T10:32:02.000Z | 2022-03-19T00:09:42.000Z | src/fileseverity.cc | i-rinat/fragview | 930b51b6290356c389b0b3a9de6b62344e7e0b5a | [
"MIT"
] | 5 | 2015-02-05T08:47:48.000Z | 2021-12-08T05:33:36.000Z | /*
* Copyright © 2011-2014 Rinat Ibragimov
*
* This file is part of "fragview" software suite.
*
* 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... | 29.135802 | 83 | 0.616525 | i-rinat |
5dc596b84319c45842875227b95ccc0b12a1d35e | 14,626 | cpp | C++ | include/hydro/system/HObjectContext.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/system/HObjectContext.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/system/HObjectContext.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 26.024911 | 182 | 0.598523 | hydraate |
5dc74a42b78bf5f697e93f867c7836c6d15b9b64 | 4,907 | cpp | C++ | include/spriteSheet.cpp | DerekSlagle/spiderSolitaire | aa6075a4eca0be14dcb3dd2a807c8c5b29806afb | [
"MIT"
] | null | null | null | include/spriteSheet.cpp | DerekSlagle/spiderSolitaire | aa6075a4eca0be14dcb3dd2a807c8c5b29806afb | [
"MIT"
] | null | null | null | include/spriteSheet.cpp | DerekSlagle/spiderSolitaire | aa6075a4eca0be14dcb3dd2a807c8c5b29806afb | [
"MIT"
] | null | null | null | #include "spriteSheet.h"
spriteSheet::spriteSheet( const char* fName )
{
std::ifstream inFile( fName );
if( inFile ) init(inFile);
}
spriteSheet::spriteSheet( std::ifstream& inFile ) { init(inFile); }
void spriteSheet::init( std::ifstream& inFile )
{
getline( inFile, imgFname );
img.loadFromFile( im... | 33.609589 | 152 | 0.51396 | DerekSlagle |
5dc7ad0e226dbc580a9e653c1ef9ad333aa833e9 | 1,270 | cpp | C++ | UVa Online Judge/13037.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | 1 | 2022-02-24T12:44:30.000Z | 2022-02-24T12:44:30.000Z | UVa Online Judge/13037.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | null | null | null | UVa Online Judge/13037.cpp | xiezeju/ACM-Code-Archives | db135ed0953adcf5c7ab37a00b3f9458291ce0d7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef pair<string, int> si;
typedef vector<int> vi;
typedef vector<ii> vii;
const int INF = 1e9;
const long long LLINF = 4e18;
const double EPS = 1e-9;
const int maxn = 2e6 + 10;
int main() {
ios::sync_with_stdio(fa... | 21.896552 | 48 | 0.414173 | xiezeju |
5dd1c359aefddf722bf6d22fe38ef20931b14be4 | 866 | cpp | C++ | CodeForces/Ahmed and House.cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | CodeForces/Ahmed and House.cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | CodeForces/Ahmed and House.cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
using namespace std;
int main() {
fast;
// Code
int a, b; cin >> a >> b;
int x1, y1; cin >> x1 >> y1;
int x2, y2; cin >> x2 >> y2;
bool flag = false;
if (a - x1 - x2 >= 0 && b - max(y1, y2) >= 0)
... | 24.742857 | 67 | 0.488453 | abdelrahman0123 |
5dd1fb443a18169c5d2327ead3e1be4b019e0637 | 1,538 | hpp | C++ | src/Compiler.hpp | mita4829/Pine | 0269d466eaf3b228745def5cec7796d257aa90a1 | [
"MIT"
] | 1 | 2018-07-07T21:16:00.000Z | 2018-07-07T21:16:00.000Z | src/Compiler.hpp | mita4829/Pine | 0269d466eaf3b228745def5cec7796d257aa90a1 | [
"MIT"
] | 1 | 2018-07-07T17:14:58.000Z | 2018-07-08T18:17:14.000Z | src/Compiler.hpp | mita4829/Pine | 0269d466eaf3b228745def5cec7796d257aa90a1 | [
"MIT"
] | null | null | null | #include "Foundation.hpp"
#ifndef COMPILER_HPP
#define COMPILER_HPP
#include "Register.hpp"
struct CompilerResult {
Int32 resultType;
Int32 stackLocation;
string data;
};
struct CompileBinding {
Int32 stackLocation;
Object* obj;
};
class Compiler {
private:
vector<Object*> ast;
v... | 22.955224 | 63 | 0.677503 | mita4829 |
5dd7b34a897099f228c79aec5132e2f707c8338d | 5,764 | cpp | C++ | tests/bin/ssd.cpp | YJieZhang/Tengine | f5cf2b4cecde412d9c9ae72c3278d9c65110e206 | [
"Apache-2.0"
] | null | null | null | tests/bin/ssd.cpp | YJieZhang/Tengine | f5cf2b4cecde412d9c9ae72c3278d9c65110e206 | [
"Apache-2.0"
] | null | null | null | tests/bin/ssd.cpp | YJieZhang/Tengine | f5cf2b4cecde412d9c9ae72c3278d9c65110e206 | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 27.061033 | 116 | 0.62873 | YJieZhang |
5dd7cb209a67a36f53b6e48028ab3f90c3b9450f | 10,251 | cpp | C++ | tests/framegraph/UnitTests/UnitTest_ImageDesc.cpp | ayberkgerey5/FrameGraphx | cefc587529305ffdba35a4faa06a9e7c10accbe2 | [
"BSD-2-Clause"
] | 362 | 2018-10-14T04:03:50.000Z | 2022-03-26T23:45:06.000Z | tests/framegraph/UnitTests/UnitTest_ImageDesc.cpp | loopunit/FrameGraph | 1359143284a135542ace8b851db78521f2800cc3 | [
"BSD-2-Clause"
] | 18 | 2019-05-25T13:43:53.000Z | 2021-03-22T18:12:18.000Z | tests/framegraph/UnitTests/UnitTest_ImageDesc.cpp | loopunit/FrameGraph | 1359143284a135542ace8b851db78521f2800cc3 | [
"BSD-2-Clause"
] | 39 | 2019-03-04T05:47:11.000Z | 2022-02-04T14:32:39.000Z | // Copyright (c) 2018-2020, Zhirnov Andrey. For more information see 'LICENSE'
#include "framegraph/Public/ImageDesc.h"
#include "UnitTest_Common.h"
static void ImageDesc_Test1 ()
{
{
ImageDesc desc;
desc.format = EPixelFormat::RGBA8_UNorm;
desc.SetDimension( 2 );
TEST( desc.imageType == EImageDim_1D );
... | 22.52967 | 79 | 0.662862 | ayberkgerey5 |
5dd94bb1c6c4c0844f709a34df630f087b40fe49 | 354 | cc | C++ | src/lib/AlwaysNotTakenPredictor.cc | ABagdia/SimEng | 63b52fbb6e07c75100e03a153191b9c548f537c5 | [
"Apache-2.0"
] | 12 | 2021-08-14T10:16:36.000Z | 2022-01-30T11:31:24.000Z | src/lib/AlwaysNotTakenPredictor.cc | ABagdia/SimEng | 63b52fbb6e07c75100e03a153191b9c548f537c5 | [
"Apache-2.0"
] | 25 | 2021-08-13T21:45:49.000Z | 2022-03-24T17:41:08.000Z | src/lib/AlwaysNotTakenPredictor.cc | ABagdia/SimEng | 63b52fbb6e07c75100e03a153191b9c548f537c5 | [
"Apache-2.0"
] | 2 | 2021-09-07T06:31:51.000Z | 2022-01-06T15:39:44.000Z | #include "simeng/AlwaysNotTakenPredictor.hh"
namespace simeng {
BranchPrediction AlwaysNotTakenPredictor::predict(
std::shared_ptr<Instruction>& uop) {
return {false, 0};
}
void AlwaysNotTakenPredictor::update(std::shared_ptr<Instruction>& uop,
bool taken, uint64_t targetAd... | 25.285714 | 75 | 0.686441 | ABagdia |
5ddb9d0183ab380b3a22d40204a27bb456073bf3 | 6,584 | cpp | C++ | source/vgame/vix_transform.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | null | null | null | source/vgame/vix_transform.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | 3 | 2015-10-28T01:29:03.000Z | 2015-11-10T15:20:02.000Z | source/vgame/vix_transform.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | null | null | null | /*
The MIT License(MIT)
Copyright(c) 2015 Vixen Team, Matt Guerrette
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... | 20.196319 | 106 | 0.640948 | ritgraphics |
5dddd4c9357c729e3ebb6b5819ecca79fb3cb1b0 | 1,877 | cpp | C++ | snippets/0x08/sol_petersmines.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | snippets/0x08/sol_petersmines.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | snippets/0x08/sol_petersmines.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | // author: a.voss@fh-aachen.de
#include <iostream>
#include <vector>
#include <memory>
using namespace std;
// fahrzeuge
class befoerderungsmittel {
public:
unsigned int sitze;
befoerderungsmittel(unsigned int sitze) : sitze(sitze) {}
};
class fahrzeug {
public:
unsigned int topspeed;
fahrzeug... | 25.364865 | 78 | 0.621737 | pblan |
5de18e075348218a36537d6a4daa97670167793d | 8,266 | cpp | C++ | Src/singleLevelRegrid.cpp | AspdenGroup/PeleAnalysis_Aspden | 4259efa97a65a646a4e1bc3493cd9dae1e7024c5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/singleLevelRegrid.cpp | AspdenGroup/PeleAnalysis_Aspden | 4259efa97a65a646a4e1bc3493cd9dae1e7024c5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/singleLevelRegrid.cpp | AspdenGroup/PeleAnalysis_Aspden | 4259efa97a65a646a4e1bc3493cd9dae1e7024c5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <string>
#include <iostream>
#include <AMReX_ParmParse.H>
#include <AMReX_MultiFab.H>
#include <AMReX_DataServices.H>
#include <AMReX_PlotFileUtil.H>
using namespace amrex;
#define Y_IN_PLOTFILE
#undef Y_IN_PLOTFILE
static
void
print_usage (int,
char* argv[])
{
std::cerr << "usage:\n";
s... | 23.890173 | 99 | 0.563997 | AspdenGroup |
5de44f639d35d73df1d1d266137771690008d08f | 2,655 | cpp | C++ | TicTacToeSave/main.cpp | eatanga/QT-ADVANCED-C-Plus-Plus | 20c7ca8aa01931f3a4c273fa0ad43f1f9986abd5 | [
"MIT"
] | 1 | 2021-05-20T18:30:43.000Z | 2021-05-20T18:30:43.000Z | TicTacToeSave/main.cpp | eatanga/QT-ADVANCED-C-Plus-Plus | 20c7ca8aa01931f3a4c273fa0ad43f1f9986abd5 | [
"MIT"
] | null | null | null | TicTacToeSave/main.cpp | eatanga/QT-ADVANCED-C-Plus-Plus | 20c7ca8aa01931f3a4c273fa0ad43f1f9986abd5 | [
"MIT"
] | null | null | null | //Emmanuel Atanga
// 09/08/2020
// Saving Tic Tac Toe moves Assignment
#include <array>
#include <vector>
#include <iostream>
using namespace std;
struct S {
char board[9];
};
int main() {
// TODO: declare a vector
vector<S> vectorboard;
S s;
array<char, 2> mark = {'X','O'};
array<char, 9> board = {' ',' ',' ',' ',' '... | 32.378049 | 77 | 0.443691 | eatanga |
5de9c31c40ed5edb3e332caed882ad86d6795d41 | 6,231 | cpp | C++ | vehicle/OVMS.V3/components/can/src/canlog_vfs.cpp | martingraml/Open-Vehicle-Monitoring-System-3 | 022075ade0f0d5ff136ec65dd7a46cbf1967a25a | [
"MIT"
] | 322 | 2017-06-12T16:56:49.000Z | 2022-03-27T15:46:38.000Z | vehicle/OVMS.V3/components/can/src/canlog_vfs.cpp | KilveEng/Open-Vehicle-Monitoring-System-3-MGEV | 3faeb9ff94ce026aff339226fbcc64b7a3c47c33 | [
"MIT"
] | 426 | 2017-08-30T04:47:34.000Z | 2022-03-25T21:01:11.000Z | vehicle/OVMS.V3/components/can/src/canlog_vfs.cpp | KilveEng/Open-Vehicle-Monitoring-System-3-MGEV | 3faeb9ff94ce026aff339226fbcc64b7a3c47c33 | [
"MIT"
] | 194 | 2017-07-03T23:34:08.000Z | 2022-03-16T09:09:22.000Z | /*
; Project: Open Vehicle Monitor System
; Module: CAN logging framework
; Date: 18th January 2018
;
; (C) 2018 Michael Balzer
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"),... | 27.328947 | 123 | 0.659124 | martingraml |
5deee17b2fc28a950674f254544c865002f5f1cb | 464 | cpp | C++ | AtCoder/ABC 165/D.cpp | igortakeo/Solutions-CF | d945f0ae21c691120b69db78ff3d240b7dedc0a7 | [
"MIT"
] | 1 | 2020-05-25T15:32:23.000Z | 2020-05-25T15:32:23.000Z | AtCoder/ABC 165/D.cpp | igortakeo/Solutions-CF | d945f0ae21c691120b69db78ff3d240b7dedc0a7 | [
"MIT"
] | null | null | null | AtCoder/ABC 165/D.cpp | igortakeo/Solutions-CF | d945f0ae21c691120b69db78ff3d240b7dedc0a7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
#define pii pair<int,int>
#define fastcin ios_base::sync_with_stdio(false); cin.tie(NULL);
using namespace std;
int main(){
fastcin
ll a, b, n;
cin >> a >> b >> n;
ll d = n/b;
ll e = d*b-1;
if(d == 0) cout << floor((a*n)/(double)b) - a*floor(n/(double)b) << e... | 20.173913 | 120 | 0.588362 | igortakeo |
5def824aaa397d078322191ee82f1ac8f5ada3d6 | 3,082 | cpp | C++ | UniEngine/src/InputManager.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | null | null | null | UniEngine/src/InputManager.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | null | null | null | UniEngine/src/InputManager.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | 1 | 2021-09-06T08:07:37.000Z | 2021-09-06T08:07:37.000Z | #include "pch.h"
#include "InputManager.h"
#include "UniEngine.h"
#include "EditorManager.h"
#include "imgui_internal.h"
#include "WindowManager.h"
using namespace UniEngine;
inline void InputManager::Init() {
}
inline bool InputManager::GetKey(int key) {
bool retVal = false;
ImGui::Begin("Camera");
{
// Using a... | 23 | 87 | 0.687216 | edisonlee0212 |
5df067cca47804d55c46d2c02a9b48556913e210 | 3,459 | cpp | C++ | 14_segment_tree/4_max_sum_insubarray.cpp | ShyamNandanKumar/coding-ninja2 | a43a21575342261e573f71f7d8eff0572f075a17 | [
"MIT"
] | 11 | 2021-01-02T10:07:17.000Z | 2022-03-16T00:18:06.000Z | 14_segment_tree/4_max_sum_insubarray.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | null | null | null | 14_segment_tree/4_max_sum_insubarray.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | 5 | 2021-05-19T11:17:18.000Z | 2021-09-16T06:23:31.000Z | /*
You are given a sequence A[1], A[2], ..., A[N] . ( |A[i]| ≤ 15007 , 1 ≤ N ≤ 50000 ). A query is defined as follows:
Query(x,y) = Max { a[i]+a[i+1]+...+a[j] ; x ≤ i ≤ j ≤ y }.
Given M queries, your program must output the results of these queries.
Input
The first line of the input file contains the integer N.
In the ... | 26.007519 | 115 | 0.561434 | ShyamNandanKumar |
5df1e6a4d96c0bef64095803a4c3bb2b7f7b79e0 | 1,238 | cc | C++ | below2.1/busnumbers.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/busnumbers.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/busnumbers.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int main(){
int n;
cin>>n;
int arr[n];
for (int i = 0; i < n; i++)
{
cin>>arr[i];
}
sort(arr,arr+n);
int star;
int en;
bool inl = false;
for (int i = 0; i < n-2; i++)
{
if(inl){
if(... | 21.719298 | 62 | 0.278675 | danzel-py |
5df39217ce945647a14a7eb0358f9f669b0df407 | 1,716 | cpp | C++ | File.cpp | vova7878/JIOLib | a0362b8808ba784c31ac4f54999b27d155847151 | [
"MIT"
] | null | null | null | File.cpp | vova7878/JIOLib | a0362b8808ba784c31ac4f54999b27d155847151 | [
"MIT"
] | null | null | null | File.cpp | vova7878/JIOLib | a0362b8808ba784c31ac4f54999b27d155847151 | [
"MIT"
] | null | null | null | #include "File.hpp"
using namespace JIO;
bool File::exists() const noexcept {
std::error_code ignore;
return fs::exists(path, ignore);
}
bool File::isDirectory() const noexcept {
std::error_code ignore;
return fs::is_directory(path, ignore);
}
bool File::isFile() const noexcept {
return exists()... | 21.185185 | 74 | 0.668998 | vova7878 |
5df40a0dbc374872dc16341cca9eff75e7053ce8 | 11,912 | cpp | C++ | tests/uri_parse_test.cpp | novalexei/mod_servlet | a394bbb7e9af5e3d40b60cc167727d27ec2866ce | [
"BSL-1.0"
] | 5 | 2017-09-12T02:58:49.000Z | 2021-10-30T03:09:39.000Z | tests/uri_parse_test.cpp | novalexei/mod_servlet | a394bbb7e9af5e3d40b60cc167727d27ec2866ce | [
"BSL-1.0"
] | null | null | null | tests/uri_parse_test.cpp | novalexei/mod_servlet | a394bbb7e9af5e3d40b60cc167727d27ec2866ce | [
"BSL-1.0"
] | 2 | 2017-08-13T15:44:18.000Z | 2018-09-19T13:03:27.000Z | #include <gtest/gtest.h>
#include <servlet/uri.h>
using namespace servlet;
static bool check_integrity(const URI& uri)
{
string_view view = uri.uri_view();
auto b = view.begin();
auto e = view.end();
return uri.scheme().begin() >= b && uri.scheme().end() <= e &&
uri.scheme().begin() >= b &&... | 37.225 | 120 | 0.606111 | novalexei |
5df42e2b617fa73d08e427383d33c885c9954699 | 1,871 | hpp | C++ | tool-dfxcli/include/dfx/api/cli/MeasurementCommand.hpp | nuralogix/dfx-api-client-cpp | 6b45307ddf4b0036c107eebd7e8915f6c501c3b0 | [
"MIT"
] | null | null | null | tool-dfxcli/include/dfx/api/cli/MeasurementCommand.hpp | nuralogix/dfx-api-client-cpp | 6b45307ddf4b0036c107eebd7e8915f6c501c3b0 | [
"MIT"
] | null | null | null | tool-dfxcli/include/dfx/api/cli/MeasurementCommand.hpp | nuralogix/dfx-api-client-cpp | 6b45307ddf4b0036c107eebd7e8915f6c501c3b0 | [
"MIT"
] | null | null | null | // Copyright (c) Nuralogix. All rights reserved. Licensed under the MIT license.
// See LICENSE.txt in the project root for license information.
#ifndef DFXAPI_MEASUREMENTCOMMAND_HPP
#define DFXAPI_MEASUREMENTCOMMAND_HPP
#include "dfx/api/cli/DFXAppCommand.hpp"
class MeasurementData;
class MeasurementGetCommand : p... | 27.514706 | 117 | 0.722074 | nuralogix |
5df48c261d2af5dc19427895bbb68f743c2fff29 | 3,764 | cpp | C++ | src/saiga/vulkan/buffer/Buffer.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/vulkan/buffer/Buffer.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/vulkan/buffer/Buffer.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2017 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "Buffer.h"
#include "saiga/core/math/imath.h"
#include "saiga/vulkan/buffer/StagingBuffer.h"
namespace Saiga
{
namespace Vulkan
{
void Buffer::destroy()
{
if (m_memoryLocation && bu... | 31.898305 | 118 | 0.697928 | SimonMederer |
5df8b9c2f06e096945f95ae6253c33294868666b | 3,701 | cpp | C++ | src/chip/chip74164.cpp | flypie/atanua | aabeef9c8b49fb922dbfec44a0c6198b08f4a1e4 | [
"Zlib"
] | null | null | null | src/chip/chip74164.cpp | flypie/atanua | aabeef9c8b49fb922dbfec44a0c6198b08f4a1e4 | [
"Zlib"
] | null | null | null | src/chip/chip74164.cpp | flypie/atanua | aabeef9c8b49fb922dbfec44a0c6198b08f4a1e4 | [
"Zlib"
] | null | null | null | /*
Atanua Real-Time Logic Simulator
Copyright (c) 2008-2014 Jari Komppa
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
in... | 29.141732 | 100 | 0.713321 | flypie |
b9005415c31df56e268ff367ebe085a49e0678c4 | 6,497 | hpp | C++ | sprout/uuid/literals.hpp | kariya-mitsuru/Sprout | 8274f34db498b02bff12277bac5416ea72e018cd | [
"BSL-1.0"
] | null | null | null | sprout/uuid/literals.hpp | kariya-mitsuru/Sprout | 8274f34db498b02bff12277bac5416ea72e018cd | [
"BSL-1.0"
] | null | null | null | sprout/uuid/literals.hpp | kariya-mitsuru/Sprout | 8274f34db498b02bff12277bac5416ea72e018cd | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2017 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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.tx... | 44.197279 | 142 | 0.697245 | kariya-mitsuru |
b902bb7a10014e4237406808297b5a54fb924642 | 1,494 | cpp | C++ | unit-test/test_dynamic_method_name.cpp | 2channelkrt/ALADDIN | 704e9c49300ef0d6c7ff3ef8e6bbc9b93a8e6e20 | [
"BSD-3-Clause"
] | 1 | 2019-11-13T15:59:40.000Z | 2019-11-13T15:59:40.000Z | unit-test/test_dynamic_method_name.cpp | nitish2112/ALADDIN | 2cef8aa854f25483f9f50a8a07d185b56c53e150 | [
"BSD-3-Clause"
] | null | null | null | unit-test/test_dynamic_method_name.cpp | nitish2112/ALADDIN | 2cef8aa854f25483f9f50a8a07d185b56c53e150 | [
"BSD-3-Clause"
] | null | null | null | #include "catch.hpp"
#include "DDDG.h"
#include "file_func.h"
#include "Scratchpad.h"
#include "ScratchpadDatapath.h"
#include "SourceManager.h"
SCENARIO("Test Dynamic Method Name w/ aes", "[aes]") {
GIVEN("Test MachSuite aes-aes") {
std::string bench("outputs/aes-aes");
std::string trace_file("inputs/aes-ae... | 37.35 | 71 | 0.618474 | 2channelkrt |
b90576167a17b25556b3fe16a930bac05663545e | 226 | cpp | C++ | Phasor/Phasor/Halo/Halo.cpp | ChadSki/Phasor | 4a7f1d95cc8552714a550404b8e1b82347ceb3da | [
"MIT"
] | 7 | 2015-02-12T10:36:35.000Z | 2021-11-23T18:22:14.000Z | Phasor/Phasor/Halo/Halo.cpp | th3w1zard1/Phasor | bd2594e8398fefcafe105eea4996a7f37516de68 | [
"MIT"
] | 9 | 2015-01-09T02:15:02.000Z | 2017-03-27T01:00:03.000Z | Phasor/Phasor/Halo/Halo.cpp | th3w1zard1/Phasor | bd2594e8398fefcafe105eea4996a7f37516de68 | [
"MIT"
] | 8 | 2015-01-04T04:49:11.000Z | 2021-01-15T10:04:07.000Z | #include "Halo.h"
#include "Addresses.h"
namespace halo
{
ident make_ident(unsigned long id) {
ident out;
out.slot = (unsigned short)(id & 0xffff);
out.id = (unsigned short)((id & 0xffff0000) >> 16);
return out;
}
} | 18.833333 | 53 | 0.654867 | ChadSki |
b906b0544e59341236e9a2b7eef78c7c26a1d812 | 146 | cpp | C++ | Axis.Physalis/application/factories/algorithms/ClockworkFactory.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Physalis/application/factories/algorithms/ClockworkFactory.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Physalis/application/factories/algorithms/ClockworkFactory.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #include "ClockworkFactory.hpp"
axis::application::factories::algorithms::ClockworkFactory::~ClockworkFactory( void )
{
// nothing to do here
}
| 20.857143 | 85 | 0.760274 | renato-yuzup |
b909aa8814a383abb7cd85211274aa5228e815fc | 224 | cpp | C++ | B-exponentiation/main.cpp | slavadevelopers/B.-exponentiation | 744e91ca41e1d1b8fd62e905efff70a260eb9236 | [
"MIT"
] | null | null | null | B-exponentiation/main.cpp | slavadevelopers/B.-exponentiation | 744e91ca41e1d1b8fd62e905efff70a260eb9236 | [
"MIT"
] | null | null | null | B-exponentiation/main.cpp | slavadevelopers/B.-exponentiation | 744e91ca41e1d1b8fd62e905efff70a260eb9236 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
short int x, x2;
int x3, x5;
cin >> x;
x2 = x * x;
x3 = x2 * x;
x5 = x2 * x3;
cout << x2 << ' ' << x3 << ' ' << x5 << endl;
return 0;
}
| 14 | 49 | 0.433036 | slavadevelopers |
b90c12e632d5c5256e46c40018fe697acb0f8d65 | 1,380 | hxx | C++ | include/Module/Task.hxx | FredrikBlomgren/aff3ct | fa616bd923b2dcf03a4cf119cceca51cf810d483 | [
"MIT"
] | 315 | 2016-06-21T13:32:14.000Z | 2022-03-28T09:33:59.000Z | include/Module/Task.hxx | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 153 | 2017-01-17T03:51:06.000Z | 2022-03-24T15:39:26.000Z | include/Module/Task.hxx | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 119 | 2017-01-04T14:31:58.000Z | 2022-03-21T08:34:16.000Z | #include <algorithm>
#include <sstream>
#include <cassert>
#include "Module/Task.hpp"
namespace aff3ct
{
namespace module
{
bool Task
::is_autoalloc() const
{
return this->autoalloc;
}
bool Task
::is_stats() const
{
return this->stats;
}
bool Task
::is_fast() const
{
return this->fast;
}
bool Task
::is_debug() ... | 13.663366 | 73 | 0.673188 | FredrikBlomgren |
b9123e6ac77314af50c1f1e105fe698730f6f348 | 347 | cpp | C++ | source/dummy_static/DummyStatic.cpp | remileduc/Qt_DummyLibrary_Example | b853267d25d76494573a48d807c4e69968daa67e | [
"MIT"
] | null | null | null | source/dummy_static/DummyStatic.cpp | remileduc/Qt_DummyLibrary_Example | b853267d25d76494573a48d807c4e69968daa67e | [
"MIT"
] | null | null | null | source/dummy_static/DummyStatic.cpp | remileduc/Qt_DummyLibrary_Example | b853267d25d76494573a48d807c4e69968daa67e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "DummyStatic.hpp"
int DummyStatic::_counter = 0;
void DummyStatic::dummyStaticFunction()
{
DummyStatic::_counter++;
std::cout << "\n\tNumber of calls: " + std::to_string(DummyStatic::_counter) + "\n";
}
void DummyStatic::dummyFunction()
{
std::cout << "\n\tCall to S... | 19.277778 | 85 | 0.694524 | remileduc |
b916454a91d57eb5991192c1485bd67c77c38c74 | 4,379 | cpp | C++ | sandbox/ardupilot/libraries/AP_HAL_AVR/GPIO.cpp | prabhu-dev/LineDetectorLengthFix | 2450bae17eb8bfbf0e3b942d765c5c4954715bde | [
"MIT"
] | null | null | null | sandbox/ardupilot/libraries/AP_HAL_AVR/GPIO.cpp | prabhu-dev/LineDetectorLengthFix | 2450bae17eb8bfbf0e3b942d765c5c4954715bde | [
"MIT"
] | null | null | null | sandbox/ardupilot/libraries/AP_HAL_AVR/GPIO.cpp | prabhu-dev/LineDetectorLengthFix | 2450bae17eb8bfbf0e3b942d765c5c4954715bde | [
"MIT"
] | null | null | null | #include <AP_HAL.h>
#if (CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2)
#include <avr/interrupt.h>
#include <avr/io.h>
#include "pins_arduino_mega.h"
#include "GPIO.h"
using namespace AP_HAL_AVR;
AP_HAL::Proc AVRGPIO::_interrupt_6 = NULL;
SIGNAL(INT6_vect) {
if (AVRGPIO::_interrupt_... | 25.608187 | 97 | 0.625485 | prabhu-dev |
b918a066e12a12db5c89be20730ebac359fbddeb | 2,843 | hpp | C++ | libvast/include/vast/format/json.hpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | null | null | null | libvast/include/vast/format/json.hpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | null | null | null | libvast/include/vast/format/json.hpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | null | null | null | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2016 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "vast/fwd.hpp"
#include "vast/de... | 28.148515 | 76 | 0.707703 | rdettai |
b918b098faf6c39a24f05cf618a7352efa9a90a6 | 17,685 | cpp | C++ | Source/SimpleDirectPBR.cpp | michal-z/SimpleDirectPBR | 53d0fa7b7f69c16588a71b10d2ebfb12418d235d | [
"MIT"
] | 11 | 2019-08-18T14:56:35.000Z | 2021-12-14T15:57:21.000Z | Source/SimpleDirectPBR.cpp | michal-z/SimpleDirectPBR | 53d0fa7b7f69c16588a71b10d2ebfb12418d235d | [
"MIT"
] | 1 | 2020-11-20T13:09:15.000Z | 2020-11-20T19:05:30.000Z | Source/SimpleDirectPBR.cpp | michal-z/SimpleDirectPBR | 53d0fa7b7f69c16588a71b10d2ebfb12418d235d | [
"MIT"
] | 3 | 2020-02-15T15:17:28.000Z | 2021-03-17T23:22:39.000Z | #include "Library.h"
#include "CPUAndGPUCommon.h"
#include "d3dx12.h"
#include "imgui/imgui.h"
#include "EAStdC/EAStdC.h"
#include "EAStdC/EASprintf.h"
#include "stb_image.h"
struct FVertex
{
XMFLOAT3 Position;
XMFLOAT3 Normal;
};
struct FStaticMesh
{
uint32_t IndexCount;
uint32_t StartIndexLocation;
uint32_t B... | 36.091837 | 264 | 0.76104 | michal-z |
2c6b96087b173a17328d2edee01aa11468315be0 | 585 | cpp | C++ | cppsrc/modules/dither.cpp | sjoerd108/jimp-native | d489a68923e377d5a7f4fd0f9583382fc3773906 | [
"MIT"
] | 11 | 2021-06-05T19:32:08.000Z | 2022-03-24T02:01:10.000Z | cppsrc/modules/dither.cpp | sjoerd108/jimp-native | d489a68923e377d5a7f4fd0f9583382fc3773906 | [
"MIT"
] | 1 | 2021-11-13T13:12:48.000Z | 2022-02-07T23:46:17.000Z | cppsrc/modules/dither.cpp | sjoerd108/jimp-native | d489a68923e377d5a7f4fd0f9583382fc3773906 | [
"MIT"
] | null | null | null | #include "dither.hpp"
const uint8_t rgb565Matrix[] = {1, 9, 3, 11, 13, 5, 15, 7, 4, 12, 2, 10, 16, 8, 14, 6};
void dither (Image& image) {
for (long y = 0; image.height > y; y++) {
for (long x = 0; image.width > x; x++) {
uint8_t* pixel = image.getPixelAt(x, y);
int threshold = ((y... | 34.411765 | 87 | 0.488889 | sjoerd108 |
2c6dee5c708786d0af0cb844cd863ec3db182663 | 312 | cc | C++ | compiler/src/frontend/stmt.cc | balayette/saphIR-project | 18da494ac21e5433fdf1c646be02c9bf25177d7d | [
"MIT"
] | 14 | 2020-07-31T09:35:23.000Z | 2021-11-15T11:18:35.000Z | compiler/src/frontend/stmt.cc | balayette/saphIR-project | 18da494ac21e5433fdf1c646be02c9bf25177d7d | [
"MIT"
] | null | null | null | compiler/src/frontend/stmt.cc | balayette/saphIR-project | 18da494ac21e5433fdf1c646be02c9bf25177d7d | [
"MIT"
] | null | null | null | #include "frontend/stmt.hh"
#include "mach/target.hh"
namespace frontend
{
std::ostream &operator<<(std::ostream &os, const vardec &dec)
{
os << dec.type_->to_string() << ' ' << dec.name_;
if (dec.escapes_)
os << '^';
return os;
}
tydec::tydec(symbol name) : dec(nullptr, name) {}
} // namespace frontend
| 19.5 | 61 | 0.647436 | balayette |
2c72336352d59b3337c91f4113b66220ddb1448a | 431 | cpp | C++ | src/255.verify_preorder_sequence_in_binary_search_tree/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2016-07-02T17:44:10.000Z | 2016-07-02T17:44:10.000Z | src/255.verify_preorder_sequence_in_binary_search_tree/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | null | null | null | src/255.verify_preorder_sequence_in_binary_search_tree/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2019-12-21T04:57:15.000Z | 2019-12-21T04:57:15.000Z | class Solution {
public:
bool verifyPreorder(vector<int>& preorder) {
stack<int> s;
int limit = INT_MIN;
for (int i = 0; i < preorder.size(); i++) {
while (!s.empty() && s.top() < preorder[i]) {
limit = s.top();
s.pop();
}
i... | 25.352941 | 57 | 0.436195 | cloudzfy |
2c731aa46755e336629043e8504d6d6999316306 | 528 | cpp | C++ | PRACTICE/LdrArrEle.cpp | prasantmahato/CP-Practice | 54ca79117fcb0e2722bfbd1007b972a3874bef03 | [
"MIT"
] | null | null | null | PRACTICE/LdrArrEle.cpp | prasantmahato/CP-Practice | 54ca79117fcb0e2722bfbd1007b972a3874bef03 | [
"MIT"
] | null | null | null | PRACTICE/LdrArrEle.cpp | prasantmahato/CP-Practice | 54ca79117fcb0e2722bfbd1007b972a3874bef03 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
long int test,leader,N,max;
int i,j;
cin>>test;
while(test--)
{
cin>>N;
int arr[N];
for(i=0; i<N; i++)
cin>>arr[i];
for(i=N; i>=0; i--)
{
max=arr[i];
for(j=i;j>=0;j-... | 16 | 34 | 0.339015 | prasantmahato |
2c78b2e01308fb065f9dce2e34d8a5f5ecdd4108 | 304 | cpp | C++ | 31 - Rekrusif Factorial.cpp | adityadees/alpro | bb0c99c392c7d17421c60517f3d01f5802294f02 | [
"MIT"
] | null | null | null | 31 - Rekrusif Factorial.cpp | adityadees/alpro | bb0c99c392c7d17421c60517f3d01f5802294f02 | [
"MIT"
] | null | null | null | 31 - Rekrusif Factorial.cpp | adityadees/alpro | bb0c99c392c7d17421c60517f3d01f5802294f02 | [
"MIT"
] | null | null | null | #include <iostream>
#include <conio.h>
using namespace std;
long faktorial(int BilFak) {
if (BilFak == 0) {
return 1;
} else{
return BilFak * faktorial(BilFak - 1);
}
}
int main() {
int n;
cout<<"Masukan Angka : ";
cin>>n;
cout << n <<"! = " << faktorial(n) <<endl;
return 0;
getch();
}
| 13.217391 | 43 | 0.582237 | adityadees |
2c7e554e032183626f22487783fbceab4309417e | 816 | cc | C++ | src/application_files_platform_folders.cc | domenn/cppcommonutil | 8f8f071a274a57e4d1bcf7f09935a08175c1204e | [
"Unlicense"
] | null | null | null | src/application_files_platform_folders.cc | domenn/cppcommonutil | 8f8f071a274a57e4d1bcf7f09935a08175c1204e | [
"Unlicense"
] | null | null | null | src/application_files_platform_folders.cc | domenn/cppcommonutil | 8f8f071a274a57e4d1bcf7f09935a08175c1204e | [
"Unlicense"
] | null | null | null |
#include <application_files.hpp>
#include <filesystem>
#include <sago/platform_folders.h>
namespace app_files_internal {
//std::string combine_paths_and_create_dirs() {
//
//}
//std::filesystem::path
}
std::string d_common::application_files::get_app_folder(bool create_parents) {
// auto dir =
return {};
}
std::... | 30.222222 | 89 | 0.625 | domenn |
2c7e57467ac6414458bd6838851b564e66575b29 | 15,396 | hpp | C++ | src/ProfileSampler.hpp | cmcantalupo/geopm-legacy-branches | ad4d8e558dfa289001496a6798fe1e3965e1fcad | [
"BSD-3-Clause"
] | null | null | null | src/ProfileSampler.hpp | cmcantalupo/geopm-legacy-branches | ad4d8e558dfa289001496a6798fe1e3965e1fcad | [
"BSD-3-Clause"
] | null | null | null | src/ProfileSampler.hpp | cmcantalupo/geopm-legacy-branches | ad4d8e558dfa289001496a6798fe1e3965e1fcad | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2015, 2016, 2017, 2018, 2019, 2020, Intel Corporation
*
* 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,... | 48.567823 | 150 | 0.60756 | cmcantalupo |
2c8051c5329c461fbfd31d672c8554a8cf2994e1 | 21 | cpp | C++ | src/CWSDK/common/Matrix4.cpp | Mininoob/CWLevelSystem | ee5e06bcc0d1c4417d0a7eb2cf52897fa908e903 | [
"MIT"
] | 39 | 2021-02-28T04:17:16.000Z | 2022-02-23T14:25:41.000Z | src/CWSDK/common/Matrix4.cpp | Mininoob/CWLevelSystem | ee5e06bcc0d1c4417d0a7eb2cf52897fa908e903 | [
"MIT"
] | 16 | 2021-03-12T04:44:33.000Z | 2022-03-31T14:16:16.000Z | src/CWSDK/common/Matrix4.cpp | Mininoob/CWLevelSystem | ee5e06bcc0d1c4417d0a7eb2cf52897fa908e903 | [
"MIT"
] | 3 | 2021-09-10T14:19:08.000Z | 2021-12-19T20:45:04.000Z | #include "Matrix4.h"
| 10.5 | 20 | 0.714286 | Mininoob |
2c8116ba7d03c8e31fcefe09bfd4d118c925c3fa | 23,975 | hpp | C++ | include/tdp/pipeline.impl.hpp | JoelFilho/TDP | 7609cca96afc60a29156d622756cb95b27aee7f2 | [
"BSL-1.0"
] | 81 | 2020-05-19T18:09:24.000Z | 2022-03-21T12:29:41.000Z | include/tdp/pipeline.impl.hpp | JoelFilho/TDP | 7609cca96afc60a29156d622756cb95b27aee7f2 | [
"BSL-1.0"
] | 6 | 2020-05-20T22:27:20.000Z | 2021-06-19T04:34:54.000Z | include/tdp/pipeline.impl.hpp | JoelFilho/TDP | 7609cca96afc60a29156d622756cb95b27aee7f2 | [
"BSL-1.0"
] | 2 | 2020-05-20T03:08:05.000Z | 2021-03-25T09:05:09.000Z | // The Darkest Pipeline - https://github.com/JoelFilho/TDP
// pipeline.impl.hpp - Implementation details of TDP pipelines
// Copyright Joel P. C. Filho 2020 - 2020
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at https://www.boost.org/LICENSE_1_0.txt)
#ifnd... | 35.83707 | 120 | 0.61439 | JoelFilho |
2c869f1e17e7ee64171bc78e93e279181b75306c | 2,401 | hpp | C++ | datastructures/stacks/TreiberStackOrcGC.hpp | pramalhe/orcgc | 7a6b70ff741ca29dfb4ed49e6904c5cacc8cacd2 | [
"MIT"
] | 1 | 2021-03-09T15:11:22.000Z | 2021-03-09T15:11:22.000Z | datastructures/stacks/TreiberStackOrcGC.hpp | pramalhe/orcgc | 7a6b70ff741ca29dfb4ed49e6904c5cacc8cacd2 | [
"MIT"
] | null | null | null | datastructures/stacks/TreiberStackOrcGC.hpp | pramalhe/orcgc | 7a6b70ff741ca29dfb4ed49e6904c5cacc8cacd2 | [
"MIT"
] | null | null | null | /*
* Copyright 2020
* Andreia Correia <andreia.veiga@unine.ch>
* Pedro Ramalhete <pramalhe@gmail.com>
* Pascal Felber <pascal.felber@unine.ch>
*
* This work is published under the MIT license. See LICENSE.txt
*/
#pragma once
#include <atomic>
#include <stdexcept>
#include "../../trackers/Orc... | 26.677778 | 112 | 0.593919 | pramalhe |
2c8c9886c896bdbc4f60a56da67985828ada5089 | 2,259 | cpp | C++ | src/updaters/sphericalVectorialVicsek.cpp | DanielMSussman/curvedSpaceVertexModel | b26a8fcd9218953225d5be578c0f72658c52764e | [
"BSL-1.0"
] | null | null | null | src/updaters/sphericalVectorialVicsek.cpp | DanielMSussman/curvedSpaceVertexModel | b26a8fcd9218953225d5be578c0f72658c52764e | [
"BSL-1.0"
] | null | null | null | src/updaters/sphericalVectorialVicsek.cpp | DanielMSussman/curvedSpaceVertexModel | b26a8fcd9218953225d5be578c0f72658c52764e | [
"BSL-1.0"
] | null | null | null | #include "sphericalVectorialVicsek.h"
/*! \file sphericalVectorialVicsek.cpp */
void sphericalVectorialVicsek::integrateEOMCPU()
{
sim->computeForces();
{
ArrayHandle<dVec> n(voronoiModel->returnDirectors());
ArrayHandle<dVec> f(voronoiModel->returnForces());
ArrayHandle<dVec> disp(displaceme... | 33.716418 | 91 | 0.600708 | DanielMSussman |
2c970f31dd802d22f9d74ff6ddb58b427c37545b | 5,219 | hpp | C++ | alpaka/include/alpaka/mem/view/ViewStdArray.hpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | 6 | 2021-02-01T09:01:39.000Z | 2021-11-14T17:09:03.000Z | alpaka/include/alpaka/mem/view/ViewStdArray.hpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | 17 | 2020-11-09T14:13:50.000Z | 2021-11-03T11:54:54.000Z | alpaka/include/alpaka/mem/view/ViewStdArray.hpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | null | null | null | /* Copyright 2019 Axel Huebl, Benjamin Worpitz
*
* This file is part of alpaka.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <alpa... | 38.947761 | 114 | 0.419237 | alpaka-group |
2caaf90edb613b54a814dc8df9d842b04b8fab69 | 4,748 | cpp | C++ | rclcpp/src/rclcpp/serialized_message.cpp | squizz617/rclcpp | 8e5ddb1f81d4ddf8f788b1d67cbb0e7ef477d504 | [
"Apache-2.0"
] | 271 | 2015-04-07T15:26:53.000Z | 2022-03-31T17:42:58.000Z | rclcpp/src/rclcpp/serialized_message.cpp | squizz617/rclcpp | 8e5ddb1f81d4ddf8f788b1d67cbb0e7ef477d504 | [
"Apache-2.0"
] | 1,676 | 2015-01-15T23:46:56.000Z | 2022-03-31T21:32:06.000Z | rclcpp/src/rclcpp/serialized_message.cpp | irobot-ros/rclcpp | edcae47df2528a9c06cfd98f204ad9b5d2da56b4 | [
"Apache-2.0"
] | 299 | 2015-10-05T16:51:32.000Z | 2022-03-30T11:23:18.000Z | // Copyright 2020 Open Source Robotics Foundation, 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 appli... | 28.775758 | 98 | 0.770851 | squizz617 |
2cab9d1060b15c50ad681d05fbac2414a8c78516 | 1,043 | hpp | C++ | src/problem/indepset/indepset_instance.hpp | ctjandra/ddopt-bounds | aaf7407da930503a17969cee71718ffcf0c1fe96 | [
"MIT"
] | 6 | 2018-02-15T03:54:35.000Z | 2022-02-24T03:06:05.000Z | src/problem/indepset/indepset_instance.hpp | ctjandra/ddopt-bounds | aaf7407da930503a17969cee71718ffcf0c1fe96 | [
"MIT"
] | null | null | null | src/problem/indepset/indepset_instance.hpp | ctjandra/ddopt-bounds | aaf7407da930503a17969cee71718ffcf0c1fe96 | [
"MIT"
] | 2 | 2021-01-07T02:29:55.000Z | 2021-12-05T13:21:13.000Z | /**
* Independent set instance
*/
#ifndef INDEPSET_INSTANCE_HPP_
#define INDEPSET_INSTANCE_HPP_
#include <fstream>
#include <iostream>
#include <cstring>
#include "../../util/graph.hpp"
#include "../../util/intset.hpp"
#include "../instance.hpp"
using namespace std;
/**
* Independent set instance structure
*... | 21.285714 | 78 | 0.69511 | ctjandra |
2cadfe06671087cd58a69572bf62e15c2e26a2c6 | 413 | hh | C++ | include/CUBOID.hh | KPO-2020-2021/zad5_2-Leklo | 63137733bf131034b4324bb8c8051f1e051fa872 | [
"Unlicense"
] | null | null | null | include/CUBOID.hh | KPO-2020-2021/zad5_2-Leklo | 63137733bf131034b4324bb8c8051f1e051fa872 | [
"Unlicense"
] | null | null | null | include/CUBOID.hh | KPO-2020-2021/zad5_2-Leklo | 63137733bf131034b4324bb8c8051f1e051fa872 | [
"Unlicense"
] | null | null | null | #ifndef CUBOID_HH
#define CUBOID_HH
#include "BLOCK.hh"
class CUBOID : public BLOCK
{
public:
CUBOID(Wektor3D center=Wektor3D(), double x=50,double y=50, double z=50,std::string name="../datasets/CUBOID.dat");
CUBOID( CUBOID& pr );
CUBOID &operator=(const CUBOID &other)
{
dim=other.dim;
vertex=other.ve... | 14.241379 | 115 | 0.663438 | KPO-2020-2021 |
2cae250c91eb9a6ae791bf749cedeb28c6ea0a5e | 15,171 | cpp | C++ | Sources/Commands/command_vbr.cpp | c3358/ntfstool | 08d6efc1298cb223fe9f24c3849e1aad08c5a45f | [
"MIT"
] | 1 | 2021-07-28T12:54:08.000Z | 2021-07-28T12:54:08.000Z | Sources/Commands/command_vbr.cpp | c3358/ntfstool | 08d6efc1298cb223fe9f24c3849e1aad08c5a45f | [
"MIT"
] | null | null | null | Sources/Commands/command_vbr.cpp | c3358/ntfstool | 08d6efc1298cb223fe9f24c3849e1aad08c5a45f | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdint>
#include <string>
#include <iostream>
#include <iomanip>
#include <memory>
#include <stdexcept>
#include <distorm.h>
#include "Drive/disk.h"
#include "Drive/vbr.h"
#include "options.h"
#include "NTFS/ntfs.h"
#include "Utils/utils.h"
void print_jump(BYTE jump[3])
{
UINT32 jmp ... | 45.017804 | 162 | 0.575374 | c3358 |
2cb35d85ced43775a5fc75312b6a12f62bedcf11 | 9,556 | cpp | C++ | libraries/controllers/src/controllers/impl/Filter.cpp | alphaversiond/hifi | 735944c912a29e948a557dbff13e0a1cb71d954e | [
"Apache-2.0"
] | 2 | 2018-05-07T16:12:38.000Z | 2019-04-28T17:32:01.000Z | libraries/controllers/src/controllers/impl/Filter.cpp | alphaversiond/hifi | 735944c912a29e948a557dbff13e0a1cb71d954e | [
"Apache-2.0"
] | null | null | null | libraries/controllers/src/controllers/impl/Filter.cpp | alphaversiond/hifi | 735944c912a29e948a557dbff13e0a1cb71d954e | [
"Apache-2.0"
] | null | null | null | //
// Created by Bradley Austin Davis 2015/10/09
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "Filter.h"
#include <QtCore/QObject>
#include <QtScript/QScriptValue>
... | 33.065744 | 113 | 0.613437 | alphaversiond |
2cbe0a987b3badf8286aea099df29c40ff77b895 | 1,750 | cc | C++ | unit_tests/contrib_uri.cc | InspectorWidget/PEGTL | 1f2c5bb8d43a9412fa7eeeb76a945fc5229500bc | [
"MIT"
] | 9 | 2017-05-09T14:22:57.000Z | 2018-04-25T11:48:54.000Z | ChatAssistant_iOS/Carthage/Checkouts/realm-cocoa/Realm/ObjectStore/external/pegtl/unit_tests/contrib_uri.cc | RickeyBoy/HACKxSJTU_ChatAssistant | 12768c8b6710adb582aec6c3b40613eedc3dfeb2 | [
"Apache-2.0"
] | null | null | null | ChatAssistant_iOS/Carthage/Checkouts/realm-cocoa/Realm/ObjectStore/external/pegtl/unit_tests/contrib_uri.cc | RickeyBoy/HACKxSJTU_ChatAssistant | 12768c8b6710adb582aec6c3b40613eedc3dfeb2 | [
"Apache-2.0"
] | 1 | 2019-02-11T20:59:42.000Z | 2019-02-11T20:59:42.000Z | // Copyright (c) 2014-2015 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/ColinH/PEGTL/
#include <cassert>
#include <pegtl.hh>
#include <pegtl/analyze.hh>
#include <pegtl/contrib/uri.hh>
using GRAMMAR = pegtl::must< pegtl::uri::URI, pegtl::eof >;
void test( const std:... | 31.25 | 112 | 0.64 | InspectorWidget |
2cc2ee3381c834af8b25b4bf32c297d6bde771f7 | 2,377 | cc | C++ | dcmdata/libsrc/dcrlecp.cc | chrisvana/dcmtk_copy | f929ab8590aca5b7a319c95af4fe2ee31be52f46 | [
"Apache-2.0"
] | 24 | 2015-07-22T05:07:51.000Z | 2019-02-28T04:52:33.000Z | dcmdata/libsrc/dcrlecp.cc | chrisvana/dcmtk_copy | f929ab8590aca5b7a319c95af4fe2ee31be52f46 | [
"Apache-2.0"
] | 13 | 2015-07-23T05:43:02.000Z | 2021-07-17T17:14:45.000Z | dcmdata/libsrc/dcrlecp.cc | chrisvana/dcmtk_copy | f929ab8590aca5b7a319c95af4fe2ee31be52f46 | [
"Apache-2.0"
] | 13 | 2015-07-23T01:07:30.000Z | 2021-01-05T09:49:30.000Z | /*
*
* Copyright (C) 1994-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmdata
*
* Author: Marco Ei... | 25.021053 | 75 | 0.727808 | chrisvana |
2cc53040cbcb4faa2a9bfc377fd534fd64c93f94 | 9,171 | cpp | C++ | FsprgEmbeddedStore/StoreParameters.cpp | Sun870905/FastSpring_EmbeddedStoreWinMFC | 447ff5064151033d913ef3eaa5edc76e6bd7f5da | [
"MIT"
] | null | null | null | FsprgEmbeddedStore/StoreParameters.cpp | Sun870905/FastSpring_EmbeddedStoreWinMFC | 447ff5064151033d913ef3eaa5edc76e6bd7f5da | [
"MIT"
] | null | null | null | FsprgEmbeddedStore/StoreParameters.cpp | Sun870905/FastSpring_EmbeddedStoreWinMFC | 447ff5064151033d913ef3eaa5edc76e6bd7f5da | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "StoreParameters.h"
#include "Utilities\WebBrowserHelper.h"
#include <msxml6.h>
using namespace FsprgEmbeddedStore;
using namespace Utilities::WebBrowser;
const wstring StoreParameters::LANGUAGE(L"language");
const wstring StoreParameters::ORDER_PROCESS_TYPE(L"orderProcessType");
const ws... | 19.596154 | 126 | 0.730346 | Sun870905 |
2ccd8c4b64ab8a2f789dd32194e86c375704b299 | 10,508 | cpp | C++ | Lib/OakModel/UnionRef.cpp | vilaversoftware/OakModelView | c24d30b711fe0f2fdc336f2623dd9bc555867a9d | [
"Apache-2.0"
] | null | null | null | Lib/OakModel/UnionRef.cpp | vilaversoftware/OakModelView | c24d30b711fe0f2fdc336f2623dd9bc555867a9d | [
"Apache-2.0"
] | null | null | null | Lib/OakModel/UnionRef.cpp | vilaversoftware/OakModelView | c24d30b711fe0f2fdc336f2623dd9bc555867a9d | [
"Apache-2.0"
] | null | null | null | /*
* OakModelView (http://oakmodelview.com/)
* Author: Mikkel Nøhr Løvgreen (mikkel@oakmodelview.com)
* ------------------------------------------------------------------------
* Licensed to Vilaversoftware IVS who licenses this file to you under the
* Apache License, Version 2.0 (the "License"); you may not use t... | 29.351955 | 97 | 0.456985 | vilaversoftware |
2ccefd47ba74b2ee362d0d4f87132a5f0ac3fcb4 | 328 | cpp | C++ | src/buffer.cpp | gwankyun/asio-echo-server | 742f1679b0fb479913036040661b79d5def54c75 | [
"MIT"
] | null | null | null | src/buffer.cpp | gwankyun/asio-echo-server | 742f1679b0fb479913036040661b79d5def54c75 | [
"MIT"
] | null | null | null | src/buffer.cpp | gwankyun/asio-echo-server | 742f1679b0fb479913036040661b79d5def54c75 | [
"MIT"
] | null | null | null | #include "buffer.h"
char* buffer_t::data()
{
return _data.data();
}
std::size_t& buffer_t::offset()
{
return _offet;
}
std::size_t buffer_t::size()
{
return _data.size();
}
void buffer_t::resize(std::size_t newsize)
{
_data.resize(newsize);
}
void buffer_t::clear()
{
::clear(_data);
_offet... | 11.714286 | 42 | 0.615854 | gwankyun |
2cd64b5cc43195aed9d8a2fa5ca724ae45131d7a | 756 | hpp | C++ | include/utils/warning.hpp | Mathieu-Lala/unamed00 | e9a7bc3f2c0c791d719c1f3f68f23c2734f70f10 | [
"MIT"
] | 5 | 2020-02-23T13:48:42.000Z | 2020-04-12T17:43:12.000Z | include/utils/warning.hpp | Mathieu-Lala/unamed00 | e9a7bc3f2c0c791d719c1f3f68f23c2734f70f10 | [
"MIT"
] | null | null | null | include/utils/warning.hpp | Mathieu-Lala/unamed00 | e9a7bc3f2c0c791d719c1f3f68f23c2734f70f10 | [
"MIT"
] | null | null | null | /**
* @file include/utils/warning.hpp
*
*/
#ifndef WARNING_HPP_
# define WARNING_HPP_
# include <config/platform.hpp>
# if defined(OS_WINDOWS)
# define DISABLE_WARNING_PUSH __pragma(warning(push))
# define DISABLE_WARNING_POP __pragma(warning(pop))
# define DISABLE_WARNING(num) __pragma(warning(disable:num... | 26.068966 | 75 | 0.75 | Mathieu-Lala |
2cd81bb3c6159699e30b2a74afa615468874e670 | 3,160 | cpp | C++ | depends/7z1701-src/CPP/7zip/Archive/register.cpp | ProtocolONE/cord.seven-zip | 1c85a852cb01efd7aabbacfa01253ca213fcb2ef | [
"Apache-2.0"
] | 1 | 2019-08-07T06:15:09.000Z | 2019-08-07T06:15:09.000Z | depends/7z1701-src/CPP/7zip/Archive/register.cpp | ProtocolONE/cord.seven-zip | 1c85a852cb01efd7aabbacfa01253ca213fcb2ef | [
"Apache-2.0"
] | null | null | null | depends/7z1701-src/CPP/7zip/Archive/register.cpp | ProtocolONE/cord.seven-zip | 1c85a852cb01efd7aabbacfa01253ca213fcb2ef | [
"Apache-2.0"
] | null | null | null | #include "StdAfx.h"
#include "register.h"
#include "../Common/RegisterCodec.h"
#define DECLARE_REG_GETTER(nm) namespace nm { extern void* __stdcall getRegInfo(); }
#define CALL_REG_GETTER(nm) NArchive::nm::getRegInfo();
#define REGISTER_HASHER_GETTER_NAME(x) CRegHasherGetter_ ## x
#define CALL_HASHER_GETTER_NAME(x... | 24.496124 | 108 | 0.725949 | ProtocolONE |
2cd82d2d2b8a217ddd5686d4dfd8493328d8d6bb | 1,405 | cpp | C++ | Offer/Offer-47-li-wu-de-zui-da-jie-zhi-lcof.cpp | wandsX/LeetCodeExperience | 8502e6e8ce911045f45f0075bcf3ee751a4558c7 | [
"MIT"
] | null | null | null | Offer/Offer-47-li-wu-de-zui-da-jie-zhi-lcof.cpp | wandsX/LeetCodeExperience | 8502e6e8ce911045f45f0075bcf3ee751a4558c7 | [
"MIT"
] | null | null | null | Offer/Offer-47-li-wu-de-zui-da-jie-zhi-lcof.cpp | wandsX/LeetCodeExperience | 8502e6e8ce911045f45f0075bcf3ee751a4558c7 | [
"MIT"
] | null | null | null | //在一个 m*n 的棋盘的每一格都放有一个礼物,每个礼物都有一定的价值(价值大于 0)。你可以从棋盘的左上角开始拿格子里的礼物,并每次向右或者向下移动一格、直
//到到达棋盘的右下角。给定一个棋盘及其上面的礼物的价值,请计算你最多能拿到多少价值的礼物?
//
//
//
// 示例 1:
//
// 输入:
//[
// [1,3,1],
// [1,5,1],
// [4,2,1]
//]
//输出: 12
//解释: 路径 1→3→5→2→1 可以拿到最多价值的礼物
//
//
//
// 提示:
//
//
// 0 < grid.length <= 200
// 0 < grid[0].length... | 20.362319 | 80 | 0.438434 | wandsX |
2cdeef00be8010d7448ff63f56b0d490da7159e0 | 1,206 | cpp | C++ | test/unit/util/test-integral-limits.cpp | ggeorgakoudis/RAJA | 05f4a5e473a4160ddfdb5e829b4fdc9e0384ae26 | [
"BSD-3-Clause"
] | 1 | 2020-11-19T04:55:20.000Z | 2020-11-19T04:55:20.000Z | test/unit/util/test-integral-limits.cpp | ggeorgakoudis/RAJA | 05f4a5e473a4160ddfdb5e829b4fdc9e0384ae26 | [
"BSD-3-Clause"
] | null | null | null | test/unit/util/test-integral-limits.cpp | ggeorgakoudis/RAJA | 05f4a5e473a4160ddfdb5e829b4fdc9e0384ae26 | [
"BSD-3-Clause"
] | null | null | null | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2016-20, Lawrence Livermore National Security, LLC
// and RAJA project contributors. See the RAJA/COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 30.15 | 79 | 0.625207 | ggeorgakoudis |
2ce362a660b35ac29dc6f8c64572b882cbeca307 | 2,225 | hpp | C++ | src/object/if.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/object/if.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/object/if.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "../handle/object.hpp"
#include "../handle/opengl.hpp"
#include "../resource.hpp"
#include "debug_gui/if.hpp"
#include "spine/src/optional.hpp"
#include <cstdint>
#include <limits>
namespace rev {
using Priority = uint32_t;
constexpr static Priority DefaultPriority = std::numeric_limits<Priorit... | 30.479452 | 86 | 0.697079 | degarashi |
f8e88962d30f0eb0b79cff14ecf294b07b250939 | 5,417 | cpp | C++ | opencl/test/unit_test/mem_obj/buffer_tests_pvc_and_later.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/mem_obj/buffer_tests_pvc_and_later.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/mem_obj/buffer_tests_pvc_and_later.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gmm_helper/gmm_helper.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h"
#include "shared/test/common/mocks/mock_device.h"
#include "shared/test/common/mocks/mock_memory_manager.h"
#include ... | 42.653543 | 158 | 0.733247 | againull |
f8eb259183fa6e4be18978db18f641f5c434637d | 1,319 | cpp | C++ | 动态规划/数位DP/acwing_1085.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | 3 | 2020-11-16T08:58:30.000Z | 2020-11-16T08:58:33.000Z | 动态规划/数位DP/acwing_1085.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | 动态规划/数位DP/acwing_1085.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | /*
* @Description: 1085. 不要62
* @Author: Xiaobin Ren
* @Date: 2020-10-07 16:31:24
* @Last Modified time: 2020-10-07 16:31:37
*/
#include <iostream>
#include <algorithm>
#include <cstring>
#include <vector>
using namespace std;
const int N = 10;
int f[N][N]; //最高位是j 有i位 f[i][j]
void init(){
memset(f, 0, sizeof ... | 21.622951 | 56 | 0.411676 | tempure |
f8f0030bbc1610cca5e92a701ec7377dc77b7285 | 675 | cpp | C++ | move.cpp | AlphaYuan/ChineseChess | 4e9fbe609e89c9ecc6329b148e4f583ec71d1e92 | [
"MIT"
] | 1 | 2020-01-15T08:11:30.000Z | 2020-01-15T08:11:30.000Z | move.cpp | AlphaYuan/ChineseChess | 4e9fbe609e89c9ecc6329b148e4f583ec71d1e92 | [
"MIT"
] | null | null | null | move.cpp | AlphaYuan/ChineseChess | 4e9fbe609e89c9ecc6329b148e4f583ec71d1e92 | [
"MIT"
] | null | null | null | #include "move.h"
Move::Move()
{
}
Move::Move(ChessPiece piece, int to_x, int to_y)
{
this->piece = piece;
this->to_x = to_x;
this->to_y = to_y;
id = piece.id;
from_x = piece.x;
from_y = piece.y;
}
Move::Move(int id, int from_x, int from_y, int to_x, int to_y)
{
this->... | 18.75 | 75 | 0.552593 | AlphaYuan |
f8f39a7f2192d817de1ef36c6ccd80ba33529b13 | 203 | cpp | C++ | src/rcl/rcl.cpp | yangfuyuan/stm32 | 6f77d7741b23298456aecb696da1f552d79eb68c | [
"BSD-3-Clause"
] | 2 | 2019-09-11T10:55:37.000Z | 2020-09-29T02:58:14.000Z | src/rcl/rcl.cpp | nicedone/bosch-ros-pkg_stm32 | df1d808b23535d7d610d1c457d98652802954fce | [
"BSD-3-Clause"
] | null | null | null | src/rcl/rcl.cpp | nicedone/bosch-ros-pkg_stm32 | df1d808b23535d7d610d1c457d98652802954fce | [
"BSD-3-Clause"
] | 5 | 2019-06-04T06:49:44.000Z | 2020-11-10T10:07:45.000Z | #include "rcl.h"
#include "FreeRTOS.h"
#include "task.h"
#include "timers.h"
void spinLoop(void (*callback)(void), unsigned int period)
{
LOOP(period,
// start while
callback();
// end while
)
}
| 12.6875 | 58 | 0.660099 | yangfuyuan |
f8f4410b29d122288f1b4c61e37ea3669aa5a352 | 1,350 | hpp | C++ | include/ShaderAST/Expr/ExprTextureAccessCall.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | include/ShaderAST/Expr/ExprTextureAccessCall.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | include/ShaderAST/Expr/ExprTextureAccessCall.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | /*
See LICENSE file in root folder
*/
#ifndef ___AST_ExprTextureAccessCall_H___
#define ___AST_ExprTextureAccessCall_H___
#pragma once
#include "ExprList.hpp"
#include "EnumTextureAccess.hpp"
#include "IntrinsicCallHelpers.hpp"
namespace ast::expr
{
class TextureAccessCall
: public Expr
{
public:
TextureAccess... | 21.428571 | 73 | 0.73037 | Praetonus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.