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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb200a632f6b1077e2bcb6eef90df977171423aa | 7,141 | cc | C++ | source/agent/analytics/videoGstPipeline/VideoGstAnalyzerWrap.cc | GaoMingKai/owt-server | d515672e509fd48773ac02aec2634257eaf541bf | [
"Apache-2.0"
] | 1 | 2021-03-09T04:01:31.000Z | 2021-03-09T04:01:31.000Z | source/agent/analytics/videoGstPipeline/VideoGstAnalyzerWrap.cc | libinqi/owt-server | c7b9988087fd51f104d5e20b89d9100799fe6cb1 | [
"Apache-2.0"
] | null | null | null | source/agent/analytics/videoGstPipeline/VideoGstAnalyzerWrap.cc | libinqi/owt-server | c7b9988087fd51f104d5e20b89d9100799fe6cb1 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#ifndef BUILDING_NODE_EXTENSION
#define BUILDING_NODE_EXTENSION
#endif
#include "VideoGstAnalyzerWrap.h"
#include "VideoHelper.h"
#include <iostream>
using namespace v8;
Persistent<Function> VideoGstAnalyzerWrap::constructor;
VideoG... | 35.705 | 103 | 0.745134 | GaoMingKai |
cb2913c6b060d44ca7390ecc7bba4f7d79914928 | 4,877 | cpp | C++ | src/mongo/db/storage/paths.cpp | daveh86/mongo | a6462c6926ea97508b803b70fae0357b85b50427 | [
"Apache-2.0"
] | 1 | 2020-03-23T02:59:49.000Z | 2020-03-23T02:59:49.000Z | src/mongo/db/storage/paths.cpp | daveh86/mongo | a6462c6926ea97508b803b70fae0357b85b50427 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/storage/paths.cpp | daveh86/mongo | a6462c6926ea97508b803b70fae0357b85b50427 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2010 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* ... | 42.780702 | 115 | 0.584786 | daveh86 |
cb37014a8eda34849a37c7eb1484ea9f0f04e977 | 2,378 | cpp | C++ | src/optimizer/regex_range_filter.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/optimizer/regex_range_filter.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/optimizer/regex_range_filter.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | #include "guinsoodb/optimizer/regex_range_filter.hpp"
#include "guinsoodb/catalog/catalog_entry/scalar_function_catalog_entry.hpp"
#include "guinsoodb/function/scalar/string_functions.hpp"
#include "guinsoodb/planner/expression.hpp"
#include "guinsoodb/planner/expression/bound_comparison_expression.hpp"
#include "gu... | 36.584615 | 101 | 0.731707 | GuinsooLab |
cb3744e20d5ff6d72143b786fedcf942ff22d8c6 | 1,482 | cpp | C++ | src/intro_tf2/src/intro_tf2_listener.cpp | davidmball/ros_examples | c5ee7a4de5a61c4ffc0e0c36f3a62728220be3e8 | [
"BSD-3-Clause"
] | 1 | 2017-09-26T07:15:19.000Z | 2017-09-26T07:15:19.000Z | src/intro_tf2/src/intro_tf2_listener.cpp | davidmball/ros_examples | c5ee7a4de5a61c4ffc0e0c36f3a62728220be3e8 | [
"BSD-3-Clause"
] | 5 | 2017-07-01T22:43:09.000Z | 2017-10-02T22:18:22.000Z | src/intro_tf2/src/intro_tf2_listener.cpp | davidmball/ros_examples | c5ee7a4de5a61c4ffc0e0c36f3a62728220be3e8 | [
"BSD-3-Clause"
] | null | null | null | #include <ros/ros.h>
#include <tf2_ros/transform_listener.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
class ListenerNode
{
public:
ListenerNode()
: source_frame_("base_link") //
, target_frame_("map")
{ }
bool configure()
{
tf2_buffer_.reset(new tf2_ros::Buffer);
tf2_listener_.reset(ne... | 21.794118 | 73 | 0.612686 | davidmball |
cb3bc6e4b2e0fa198b1f1bddaddd3e2212290002 | 950 | hpp | C++ | stl/tests/fixture.hpp | Merulo/Solutions | 28ceaef4daf28dc77bc4e44c3668f045eb277347 | [
"MIT"
] | null | null | null | stl/tests/fixture.hpp | Merulo/Solutions | 28ceaef4daf28dc77bc4e44c3668f045eb277347 | [
"MIT"
] | null | null | null | stl/tests/fixture.hpp | Merulo/Solutions | 28ceaef4daf28dc77bc4e44c3668f045eb277347 | [
"MIT"
] | null | null | null | #pragma once
#include <gtest/gtest.h>
#include <array>
#include <vector>
#include <list>
#include <deque>
struct MyStruct {
int thisIsImportant;
int thisNotSoMuch;
bool operator ==(const MyStruct &b) const {
return thisIsImportant == b.thisIsImportant &&
thisNotSoMuch == b.thisNotSoMuch;
}
};
template <typ... | 20.652174 | 75 | 0.74 | Merulo |
cb3f091c258ae07494bc981b2e6d0fa4dbee61fb | 2,294 | hpp | C++ | lslboost/boost/get_pointer.hpp | SimonHanzal/liblsl_neuro | 566d58c5a8affa5a7741cc414c52bc0e9baebfa6 | [
"MIT"
] | 58 | 2018-12-08T23:53:50.000Z | 2022-03-26T14:14:40.000Z | lslboost/boost/get_pointer.hpp | SimonHanzal/liblsl_neuro | 566d58c5a8affa5a7741cc414c52bc0e9baebfa6 | [
"MIT"
] | 125 | 2018-11-21T15:42:39.000Z | 2022-03-29T12:15:54.000Z | lslboost/boost/get_pointer.hpp | SimonHanzal/liblsl_neuro | 566d58c5a8affa5a7741cc414c52bc0e9baebfa6 | [
"MIT"
] | 42 | 2019-03-06T13:43:18.000Z | 2022-03-21T08:55:34.000Z | // Copyright Peter Dimov and David Abrahams 2002.
// 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)
#ifndef GET_POINTER_DWA20021219_HPP
#define GET_POINTER_DWA20021219_HPP
#include <boost/config.hpp>
// In order ... | 29.792208 | 100 | 0.763296 | SimonHanzal |
cb4170bff0266b5bf40342e86b7568546a263b58 | 9,340 | cpp | C++ | src/lib/gaussquad.cpp | junghans/libecpint | b026140c2a48e455c59c64acb3d8cac0099fa82a | [
"MIT"
] | null | null | null | src/lib/gaussquad.cpp | junghans/libecpint | b026140c2a48e455c59c64acb3d8cac0099fa82a | [
"MIT"
] | null | null | null | src/lib/gaussquad.cpp | junghans/libecpint | b026140c2a48e455c59c64acb3d8cac0099fa82a | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Robert Shaw
* This file is a part of Libecpint.
*
* 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
* wi... | 32.206897 | 123 | 0.572377 | junghans |
cb434e52f35b270b171fe22aab998d62fbb37b01 | 1,008 | hpp | C++ | lib/primesieve/include/primesieve/EratSmall.hpp | jgmbenoit/primecount | 1c39ff8daeb149d100108d1cb364d20f20f48009 | [
"BSD-2-Clause"
] | 761 | 2015-01-07T15:22:57.000Z | 2022-03-29T10:55:37.000Z | lib/primesieve/include/primesieve/EratSmall.hpp | jgmbenoit/primecount | 1c39ff8daeb149d100108d1cb364d20f20f48009 | [
"BSD-2-Clause"
] | 88 | 2015-05-15T06:43:54.000Z | 2022-01-29T19:00:57.000Z | lib/primesieve/include/primesieve/EratSmall.hpp | jgmbenoit/primecount | 1c39ff8daeb149d100108d1cb364d20f20f48009 | [
"BSD-2-Clause"
] | 123 | 2015-01-24T01:56:44.000Z | 2022-03-26T16:29:54.000Z | ///
/// @file EratSmall.hpp
///
/// Copyright (C) 2019 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef ERATSMALL_HPP
#define ERATSMALL_HPP
#include "Bucket.hpp"
#include "macros.hpp"
#include "Wheel.hpp"
#i... | 22.4 | 67 | 0.72619 | jgmbenoit |
cb449bdfdbaa7be5777067d6d2d5a5d7b6779d90 | 282 | cpp | C++ | source/13.cpp | ConNoa/aufgabenblatt_1_2018 | 9aa7cdac892a55006f4d5e4ea7196f7cb2329de6 | [
"MIT"
] | null | null | null | source/13.cpp | ConNoa/aufgabenblatt_1_2018 | 9aa7cdac892a55006f4d5e4ea7196f7cb2329de6 | [
"MIT"
] | null | null | null | source/13.cpp | ConNoa/aufgabenblatt_1_2018 | 9aa7cdac892a55006f4d5e4ea7196f7cb2329de6 | [
"MIT"
] | null | null | null | #include <iostream>// Ein-/Ausgabe
//C++ Programme beginnen mit der Ausführung der Funktionen
int main()
{
int n =1;
int i= 1;
while(i<=20){
if(n%i != 0)
{
n++;
i = 0;
}
++i;
}
std::cout << "Die Zahl ist: ";
std::cout << n << std::endl;
return 0;
} | 12.818182 | 58 | 0.514184 | ConNoa |
cb45c92deb987908a30a872b141b0a0321415d8a | 3,663 | cpp | C++ | src/operators/kernel/fpga-kd/pool_kernel.cpp | JesseQu/paddle-mobile | 0b8368686fa03cd821b6c6ed4e3cf3768a4d1a8b | [
"Apache-2.0"
] | null | null | null | src/operators/kernel/fpga-kd/pool_kernel.cpp | JesseQu/paddle-mobile | 0b8368686fa03cd821b6c6ed4e3cf3768a4d1a8b | [
"Apache-2.0"
] | null | null | null | src/operators/kernel/fpga-kd/pool_kernel.cpp | JesseQu/paddle-mobile | 0b8368686fa03cd821b6c6ed4e3cf3768a4d1a8b | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 31.852174 | 72 | 0.654655 | JesseQu |
cb49a20e01e99106dc1070743f582fe6d08d920e | 4,868 | cpp | C++ | coding_exercise/add_search_word.cpp | devastating/misc | f9922e14a9305808e668d8412b7a2443a7f45a0d | [
"MIT"
] | null | null | null | coding_exercise/add_search_word.cpp | devastating/misc | f9922e14a9305808e668d8412b7a2443a7f45a0d | [
"MIT"
] | null | null | null | coding_exercise/add_search_word.cpp | devastating/misc | f9922e14a9305808e668d8412b7a2443a7f45a0d | [
"MIT"
] | null | null | null | #include "basic_includes.hpp"
using namespace std;
class Trie
{
struct trie_node
{
char m_val;
bool m_has_word;
map<char, trie_node *> m_next;
void add_child(string word)
{
if (word.length() == 0)
{
m_has_word = true;
... | 26.601093 | 70 | 0.445357 | devastating |
cb49e569cc4e0115a6d4903306d4d2605ff7b831 | 5,197 | cxx | C++ | src/http/src/win32/header.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | src/http/src/win32/header.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | src/http/src/win32/header.cxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019, 2020, 2021 SiKol Ltd.
* Distributed under the Boost Software License, Version 1.0.
*/
#include <ivy/win32/httpsys/header.hxx>
#include <span>
#include <unordered_map>
#include <utility>
#include <ivy/string.hxx>
namespace ivy::win32::httpsys {
namespace {
u... | 37.388489 | 76 | 0.540312 | sikol |
cb4a8c9d88eed29730005785458f0af056de1cb6 | 1,707 | cpp | C++ | AI/spells/disruption_web.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | AI/spells/disruption_web.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | AI/spells/disruption_web.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | #include "spells.h"
#include <AI/ai_common.h>
// V241 for VS2008
namespace AI {
class DisruptionWebTargetFinderProc: public scbw::UnitFinderCallbackMatchInterface {
private:
CUnit* caster;
public:
DisruptionWebTargetFinderProc(CUnit* caster)
: caster(caster) {}
bool match(CUn... | 24.042254 | 85 | 0.646749 | Lucifirius |
cb4b456c18adcd9703cad3b2a2782fbe1a7f1eab | 140 | hpp | C++ | test/missingassignmentop.hpp | steffanschlein/cythonwrapper | ef30a3bc1a24024b9845dad4aa8a42e05219bd91 | [
"BSD-3-Clause"
] | 33 | 2016-04-17T21:26:17.000Z | 2021-12-31T03:29:46.000Z | test/missingassignmentop.hpp | steffanschlein/cythonwrapper | ef30a3bc1a24024b9845dad4aa8a42e05219bd91 | [
"BSD-3-Clause"
] | 19 | 2016-04-12T22:28:11.000Z | 2017-08-19T16:34:32.000Z | test/missingassignmentop.hpp | steffanschlein/cythonwrapper | ef30a3bc1a24024b9845dad4aa8a42e05219bd91 | [
"BSD-3-Clause"
] | 7 | 2018-04-29T18:46:59.000Z | 2021-09-25T09:35:14.000Z | class MyClassA
{
void operator=(const MyClassA& other) {}
public:
MyClassA() {}
};
MyClassA factory()
{
return MyClassA(5);
}
| 10.769231 | 44 | 0.621429 | steffanschlein |
cb4c2bd43ac305b2be659e048b1b260e25b5afa4 | 416 | cpp | C++ | Excel Sheet Column Number.cpp | chaitanyks/fuzzy-disco | bc52f779c68da3f259f116cc1f41c464db290fbf | [
"MIT"
] | 1 | 2021-12-12T05:55:44.000Z | 2021-12-12T05:55:44.000Z | Excel Sheet Column Number.cpp | chaitanyks/fuzzy-disco | bc52f779c68da3f259f116cc1f41c464db290fbf | [
"MIT"
] | null | null | null | Excel Sheet Column Number.cpp | chaitanyks/fuzzy-disco | bc52f779c68da3f259f116cc1f41c464db290fbf | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/excel-sheet-column-number/
// 171. Excel Sheet Column Number
class Solution {
public:
int titleToNumber(string columnTitle) {
int n = columnTitle.length();
int ans = 0;
for(int i=0;i<n;i++)
{
int index = columnTitle[n-i-1] - 'A' ... | 21.894737 | 59 | 0.509615 | chaitanyks |
cb4fc2544aa6e5ba8fd62d91c7a73ca09d298832 | 200 | cpp | C++ | conan/test_package/example.cpp | igagis/testy | a38281336816bec1651d818fa7aad89ecade17b2 | [
"MIT"
] | 8 | 2021-04-16T13:17:20.000Z | 2022-01-05T09:14:03.000Z | conan/test_package/example.cpp | igagis/testy | a38281336816bec1651d818fa7aad89ecade17b2 | [
"MIT"
] | 16 | 2021-04-19T07:59:52.000Z | 2022-02-07T11:14:55.000Z | conan/test_package/example.cpp | igagis/testy | a38281336816bec1651d818fa7aad89ecade17b2 | [
"MIT"
] | 3 | 2021-04-17T02:33:46.000Z | 2022-02-21T15:37:55.000Z | #include <tst/set.hpp>
#include <tst/check.hpp>
namespace{
tst::set some_set("some_suite",[](tst::suite& s){
s.add(
"some_test",
[](){
tst::check(std::max(3, 4) == 4, SL);
}
);
});
}
| 14.285714 | 49 | 0.54 | igagis |
cb4fc605a8c3dfede36e724da1e2ccf65be2d1bb | 721 | hpp | C++ | foundation/unitedb/include/unitedb/dbundoop.hpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | 14 | 2018-06-16T04:49:50.000Z | 2021-04-10T03:18:40.000Z | foundation/unitedb/include/unitedb/dbundoop.hpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | null | null | null | foundation/unitedb/include/unitedb/dbundoop.hpp | xleakOfficial/xmax-mainchain | 16bb71da7f4c9f7c897d1de7b4e88b721d20cfdf | [
"MIT"
] | 7 | 2018-06-14T10:15:32.000Z | 2020-11-06T17:07:09.000Z | /**
* @file
* @copyright defined in xmax/LICENSE
*/
#pragma once
#include <unitedb/dbtypes.hpp>
namespace unitedb
{
class UndoOp
{
public:
UndoOp(DBAlloc<char>)
{
}
enum UndoCode
{
None = 0,
Create = 1,
Update = 2,
Delete = 3,
};
UndoCode op_ = UndoOp::None;
ObjIDCode id_ = 0;
Ob... | 12.875 | 68 | 0.61165 | xleakOfficial |
cb533ee9bcd700c71c203eca38981cb3d7bebbbd | 2,060 | cpp | C++ | std/template_inherit.cpp | torbjoernk/cpp_tech_demos | 84ba9807e7ecdc439f18e00b678282e010836d89 | [
"MIT"
] | null | null | null | std/template_inherit.cpp | torbjoernk/cpp_tech_demos | 84ba9807e7ecdc439f18e00b678282e010836d89 | [
"MIT"
] | null | null | null | std/template_inherit.cpp | torbjoernk/cpp_tech_demos | 84ba9807e7ecdc439f18e00b678282e010836d89 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <typeinfo>
using namespace std;
template<
typename T1,
typename ...Ts
>
struct TemplateOne
{
T1 x;
};
template<
typename T1,
typename T2,
typename... Ts
>
struct TemplateTwo
: public TemplateOne<T1, T2, Ts...>
{
T2 y;
TemplateTwo() = default;
templa... | 24.52381 | 117 | 0.623786 | torbjoernk |
cb56bcc68d1fde28eb9a17dc11faa50815b01ae2 | 3,127 | cpp | C++ | Game/OGRE/Tests/OgreMain/src/VectorTests.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/OGRE/Tests/OgreMain/src/VectorTests.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/OGRE/Tests/OgreMain/src/VectorTests.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2005 The OGRE Team
Also see acknowledgements in Readme.html
This program is free software... | 30.359223 | 89 | 0.645667 | hackerlank |
cb59dd60c4ac5a754319b09a2beebbad039d6a8e | 5,534 | hpp | C++ | alpaka/include/alpaka/workdiv/WorkDivMembers.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 25 | 2015-01-30T12:19:48.000Z | 2020-10-30T07:52:45.000Z | alpaka/include/alpaka/workdiv/WorkDivMembers.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 101 | 2015-01-06T11:31:26.000Z | 2020-11-09T13:51:19.000Z | alpaka/include/alpaka/workdiv/WorkDivMembers.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 10 | 2015-06-10T07:54:30.000Z | 2020-05-06T10:07:39.000Z | /* Copyright 2022 Benjamin Worpitz, Matthias Werner, Bernhard Manfred Gruber
*
* 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/.
*/... | 41.298507 | 115 | 0.655403 | ComputationalRadiationPhysics |
cb605db78d962e2deff1295686c5e95945f02531 | 6,563 | cc | C++ | paddle/pten/infermeta/binary.cc | jc19chaoj/Paddle | d89f246ccdcbaeb6d790333aef43295854863a2d | [
"Apache-2.0"
] | null | null | null | paddle/pten/infermeta/binary.cc | jc19chaoj/Paddle | d89f246ccdcbaeb6d790333aef43295854863a2d | [
"Apache-2.0"
] | null | null | null | paddle/pten/infermeta/binary.cc | jc19chaoj/Paddle | d89f246ccdcbaeb6d790333aef43295854863a2d | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 35.668478 | 77 | 0.547158 | jc19chaoj |
cb641f61dd91deaba32cb07ca8c7143cf3a1422f | 3,187 | cc | C++ | sdk/src/model/InitiateMultipartUploadRequest.cc | OpenInspur/inspur-oss-cpp-sdk | a0932232aaf46aab7c5a2079f72d80cc5d634ba2 | [
"Apache-2.0"
] | null | null | null | sdk/src/model/InitiateMultipartUploadRequest.cc | OpenInspur/inspur-oss-cpp-sdk | a0932232aaf46aab7c5a2079f72d80cc5d634ba2 | [
"Apache-2.0"
] | null | null | null | sdk/src/model/InitiateMultipartUploadRequest.cc | OpenInspur/inspur-oss-cpp-sdk | a0932232aaf46aab7c5a2079f72d80cc5d634ba2 | [
"Apache-2.0"
] | null | null | null |
#include <inspurcloud/oss/model/InitiateMultipartUploadRequest.h>
#include <inspurcloud/oss/http/HttpType.h>
#include "../utils/Utils.h"
#include <sstream>
using namespace InspurCloud::OSS;
InitiateMultipartUploadRequest::InitiateMultipartUploadRequest(const std::string &bucket, const std::string &key) :
Initiat... | 31.87 | 115 | 0.730468 | OpenInspur |
cb654329bd749df7897ce09d45a7eb7efa7c2cc7 | 2,073 | cpp | C++ | src/Filetype.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | 8 | 2021-04-16T02:05:54.000Z | 2022-03-16T13:56:23.000Z | src/Filetype.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | null | null | null | src/Filetype.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | 2 | 2021-04-17T10:49:58.000Z | 2021-07-21T20:39:52.000Z | /*
* Filetype.cpp
*
* Created on: May 15, 2015
* Author: lingnan
*/
#include <QDebug>
#include <Filetype.h>
#include <RunProfileManager.h>
Filetype::Filetype(const QString &name,
bool highlightEnabled,
bool tabSpaceConversionEnabled,
int numberOfSpacesForTab,
RunProfileManag... | 27.276316 | 80 | 0.685962 | lingnand |
cb665e39cb25e65a5e8b65dc4ab21d84b2f27081 | 473 | cpp | C++ | 3_Berkeley-sockets_Multiplexing/3_Messenger_Poll/src/main.cpp | PP189B/Multithreaded-programming-practice | f80378343824e51a164241289399ec92150852e8 | [
"MIT"
] | null | null | null | 3_Berkeley-sockets_Multiplexing/3_Messenger_Poll/src/main.cpp | PP189B/Multithreaded-programming-practice | f80378343824e51a164241289399ec92150852e8 | [
"MIT"
] | null | null | null | 3_Berkeley-sockets_Multiplexing/3_Messenger_Poll/src/main.cpp | PP189B/Multithreaded-programming-practice | f80378343824e51a164241289399ec92150852e8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include "server/server.hpp"
int main(int argc, const char* argv[])
{
if (argc != 3)
{
std::cerr << "Invalid number of arguments!\n"
"Please, provide ip and port to listen." << std::endl;
return 1;
}
try
{
MessangerServer::instance_.init(argv[1], ... | 16.892857 | 62 | 0.58351 | PP189B |
cb674934f4b919433c160c043962ae5b54b47606 | 19,171 | cpp | C++ | vstgui/standalone/source/helpers/value.cpp | etheory/vstgui | df5d1836440e743600397d33e1612d4605ea0b37 | [
"BSD-3-Clause"
] | null | null | null | vstgui/standalone/source/helpers/value.cpp | etheory/vstgui | df5d1836440e743600397d33e1612d4605ea0b37 | [
"BSD-3-Clause"
] | null | null | null | vstgui/standalone/source/helpers/value.cpp | etheory/vstgui | df5d1836440e743600397d33e1612d4605ea0b37 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#include "../../include/helpers/value.h"
#include "../../../lib/algorithm.h"
#include "../../../lib/dispatchlist.h"
... | 31.479475 | 99 | 0.568358 | etheory |
cb6a2ea9e9c55bc97287f0fcc4a85e00f93f1d39 | 10,771 | cpp | C++ | tests/unit/test_coreutils.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 3 | 2020-12-28T01:40:45.000Z | 2021-05-18T01:47:07.000Z | tests/unit/test_coreutils.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 4 | 2019-06-29T12:23:11.000Z | 2020-07-25T15:38:46.000Z | tests/unit/test_coreutils.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 1 | 2021-11-17T01:49:42.000Z | 2021-11-17T01:49:42.000Z | // Copyright (C) 2018-2021 Vincent Chambrin
// This file is part of the libscript library
// For conditions of distribution and use, see copyright notice in LICENSE
#include <gtest/gtest.h>
#include <cstdio>
#include <fstream>
#include "script/engine.h"
#include "script/array.h"
#include "script/cast.h"
#include "s... | 30.68661 | 110 | 0.700956 | strandfield |
cb704c3d9d7450b068fbea9af39417a64347cadb | 2,329 | cpp | C++ | src/mapper/InfoNES_Mapper_232.cpp | jay-kumogata/InfoNES | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | 6 | 2019-05-10T02:09:55.000Z | 2021-09-16T09:10:14.000Z | src/mapper/InfoNES_Mapper_232.cpp | b004004/InfoNES-1 | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | null | null | null | src/mapper/InfoNES_Mapper_232.cpp | b004004/InfoNES-1 | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | 1 | 2019-05-10T16:02:51.000Z | 2019-05-10T16:02:51.000Z | /*===================================================================*/
/* */
/* Mapper 232 : Quattro Games */
/* */
/*==========================... | 31.472973 | 90 | 0.422499 | jay-kumogata |
cb71352ff7ec12a31ad8f9536cb9b3f0300e8e2e | 683 | cpp | C++ | src/exception.cpp | Euler-Maskerony/PokerData | 4fbca303fdf17d74cd074be2d6a089bb0243da3b | [
"MIT"
] | null | null | null | src/exception.cpp | Euler-Maskerony/PokerData | 4fbca303fdf17d74cd074be2d6a089bb0243da3b | [
"MIT"
] | null | null | null | src/exception.cpp | Euler-Maskerony/PokerData | 4fbca303fdf17d74cd074be2d6a089bb0243da3b | [
"MIT"
] | null | null | null | #include "../headers/exception.h"
pd::InterimFrame::InterimFrame(std::string_view obj_type) throw() : err_message{obj_type}
{
this->err_message = "Can't find required bounding boxes in '" + this->err_message + "'";
}
pd::InterimFrame::~InterimFrame() throw() {}
const char* pd::InterimFrame::what() const throw() ... | 34.15 | 95 | 0.704246 | Euler-Maskerony |
cb72b95b83e31bc8270592de304a148d0e041ea7 | 5,240 | cpp | C++ | BaseConcept/stl_tuple_pair.cpp | zhml8951/CPlusPlusStuDemo | a5b0e00ed22e71a2e75e2a6f810f73d547ffce94 | [
"Apache-2.0"
] | null | null | null | BaseConcept/stl_tuple_pair.cpp | zhml8951/CPlusPlusStuDemo | a5b0e00ed22e71a2e75e2a6f810f73d547ffce94 | [
"Apache-2.0"
] | null | null | null | BaseConcept/stl_tuple_pair.cpp | zhml8951/CPlusPlusStuDemo | a5b0e00ed22e71a2e75e2a6f810f73d547ffce94 | [
"Apache-2.0"
] | null | null | null | #include <utility>
#include <iostream>
#include <string>
#include <tuple>
/* stl 标准库的pair, tuple
* std::pair 由两个数组组成, 标准的key, value组成,map, multimap中的元素就是pair; 它由两个元素first, second组成,pair是一种泛化的struct;
* tuple可以看成pair的泛化,可以容纳最多10种不同的类型的数据;std::get<size_t>(tuple), get<TypeT>(tuple);
* tuple 里有tie的使用:
* auto tuple1 =... | 30.114943 | 102 | 0.586832 | zhml8951 |
cb7610e4357cde61581f6868ebaa6f54cd9b52f7 | 3,374 | hpp | C++ | lihowarlib/include/lihowarlib/Mesh.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | lihowarlib/include/lihowarlib/Mesh.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | lihowarlib/include/lihowarlib/Mesh.hpp | ludchieng/IMAC-Lihowar | e5f551ab9958fa7d8fa4cbe07d0aa3555842b4fb | [
"BSL-1.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | /*
* Copyright (c) 2020-2021 Lihowar
*
* This software is licensed under OSEF License.
*
* The "Software" is defined as the pieces of code, the documentation files, the config
* files, the textures assets, the Wavefront OBJ assets, the screenshot image, the sound
* effects and music associated with.
*
* ... | 23.268966 | 91 | 0.65086 | ludchieng |
cb764f51304c9469a383b668450a4f5eef140461 | 55,122 | cpp | C++ | targets/test/mainCPP.cpp | fcgll520/testxlslib | 55f6d9e38c1ba5446da667dbb58335a98d5cc52d | [
"BSD-2-Clause"
] | null | null | null | targets/test/mainCPP.cpp | fcgll520/testxlslib | 55f6d9e38c1ba5446da667dbb58335a98d5cc52d | [
"BSD-2-Clause"
] | null | null | null | targets/test/mainCPP.cpp | fcgll520/testxlslib | 55f6d9e38c1ba5446da667dbb58335a98d5cc52d | [
"BSD-2-Clause"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* This file is part of xlslib -- A multiplatform, C/C++ library
* for dynamic generation of Excel(TM) files.
*
* Copyright 2004 Yeico S. A. de C. V. All Rights Reserved.
* Copyright 2008-2011 David Hoerl All Rights Reserved.
*
* ... | 27.060383 | 192 | 0.592286 | fcgll520 |
cb7b0c593d5ec0b274dfe720b235ffa2a97e8b94 | 5,802 | cpp | C++ | src/tests/end2end/ConcatTests.cpp | Rjasuja/webnn-native | d3da88c8a00fee1b8db20410a7e0dac4b8fc9caf | [
"Apache-2.0"
] | 26 | 2021-01-21T16:06:57.000Z | 2022-03-21T12:30:48.000Z | src/tests/end2end/ConcatTests.cpp | Rjasuja/webnn-native | d3da88c8a00fee1b8db20410a7e0dac4b8fc9caf | [
"Apache-2.0"
] | 182 | 2021-03-08T02:53:46.000Z | 2022-03-29T06:44:54.000Z | src/tests/end2end/ConcatTests.cpp | Rjasuja/webnn-native | d3da88c8a00fee1b8db20410a7e0dac4b8fc9caf | [
"Apache-2.0"
] | 15 | 2021-03-02T00:46:34.000Z | 2022-01-04T06:42:00.000Z | // Copyright 2021 The WebNN-native 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... | 50.017241 | 101 | 0.553085 | Rjasuja |
cb8180e3c9c2bb47db65597a8bd8cdf1270344e3 | 176,348 | hpp | C++ | tests/shared/include/ztd/text/tests/basic_unicode_strings.hpp | nicolasfella/text | 1edd6a7d5f039f631a6c27c4fea1c7c0862b4b33 | [
"Apache-2.0"
] | null | null | null | tests/shared/include/ztd/text/tests/basic_unicode_strings.hpp | nicolasfella/text | 1edd6a7d5f039f631a6c27c4fea1c7c0862b4b33 | [
"Apache-2.0"
] | null | null | null | tests/shared/include/ztd/text/tests/basic_unicode_strings.hpp | nicolasfella/text | 1edd6a7d5f039f631a6c27c4fea1c7c0862b4b33 | [
"Apache-2.0"
] | null | null | null | // =============================================================================
//
// ztd.text
// Copyright © 2021 JeanHeyd "ThePhD" Meneide and Shepherd's Oasis, LLC
// Contact: opensource@soasis.org
//
// Commercial License Usage
// Licensees holding valid commercial ztd.text licenses may use this file in
//... | 99.687959 | 116 | 0.761999 | nicolasfella |
cb81d7ef80d846ea9a9ca57647d872a3ab3cfc51 | 948 | hpp | C++ | include/bio/seq_io/all.hpp | joshuak94/b.i.o. | 537ebc584daaa7788f918bf179e0e317a959a950 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T10:25:40.000Z | 2022-03-22T10:25:40.000Z | include/bio/seq_io/all.hpp | joshuak94/b.i.o. | 537ebc584daaa7788f918bf179e0e317a959a950 | [
"BSD-3-Clause"
] | 13 | 2021-11-08T13:44:57.000Z | 2022-03-07T14:09:29.000Z | include/bio/seq_io/all.hpp | joshuak94/b.i.o. | 537ebc584daaa7788f918bf179e0e317a959a950 | [
"BSD-3-Clause"
] | 3 | 2021-11-10T07:09:05.000Z | 2022-03-02T12:07:52.000Z | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
// Copyright (c) 2020-2021, deCODE Genetics
// This file may be used, modifie... | 36.461538 | 104 | 0.558017 | joshuak94 |
cb8b82647aaa7a417b831e67313d0a67eca29a8d | 3,101 | cpp | C++ | devices/Sr74x595.cpp | PhischDotOrg/phisch-lib | 26df59d78533d3220a46e077ead5a5180a84d57a | [
"MIT"
] | null | null | null | devices/Sr74x595.cpp | PhischDotOrg/phisch-lib | 26df59d78533d3220a46e077ead5a5180a84d57a | [
"MIT"
] | null | null | null | devices/Sr74x595.cpp | PhischDotOrg/phisch-lib | 26df59d78533d3220a46e077ead5a5180a84d57a | [
"MIT"
] | null | null | null | /*-
* $Copyright$
-*/
#ifndef _SR_74x595_CPP_f28bd4ae_1bb2_476e_b609_7f9ac35ac675
#define _SR_74x595_CPP_f28bd4ae_1bb2_476e_b609_7f9ac35ac675
#include <sys/types.h>
#include "Sr74x595.hpp"
namespace devices {
/*******************************************************************************
*
********************... | 30.401961 | 98 | 0.474041 | PhischDotOrg |
cb90bfc62b5fa653e3375d9abfe583473ad4ca77 | 6,946 | cpp | C++ | src/server/scripts/Northrend/AzjolNerub/AzjolNerub/instance_azjol_nerub.cpp | Zone-Emu/ZoneEmuCataclysm | 6277efff6cb5adfe8b7a718bf376e81609fa9a6c | [
"OpenSSL"
] | 1 | 2019-03-23T19:32:57.000Z | 2019-03-23T19:32:57.000Z | src/server/scripts/Northrend/AzjolNerub/AzjolNerub/instance_azjol_nerub.cpp | Zone-Emu/ZoneEmuCataclysm | 6277efff6cb5adfe8b7a718bf376e81609fa9a6c | [
"OpenSSL"
] | null | null | null | src/server/scripts/Northrend/AzjolNerub/AzjolNerub/instance_azjol_nerub.cpp | Zone-Emu/ZoneEmuCataclysm | 6277efff6cb5adfe8b7a718bf376e81609fa9a6c | [
"OpenSSL"
] | null | null | null | /*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software;... | 31.288288 | 84 | 0.523611 | Zone-Emu |
cb90ca1c3a368d0294acc8de04cff7bb121ef1bd | 4,160 | hpp | C++ | test/unit/search/helper_search_scheme.hpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | 1 | 2021-03-01T11:12:56.000Z | 2021-03-01T11:12:56.000Z | test/unit/search/helper_search_scheme.hpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | 2 | 2017-05-17T07:16:19.000Z | 2020-02-13T16:10:10.000Z | test/unit/search/helper_search_scheme.hpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | null | null | null | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... | 36.173913 | 114 | 0.613942 | marehr |
cb9365a0397f2062790e67c07869c25e30ecf5ab | 21,086 | cpp | C++ | src/opt/BddAttachment.cpp | ryanberryhill/iimc | 2746410d283c53c494cc2389638bfd8c0a0b3404 | [
"BSD-3-Clause"
] | null | null | null | src/opt/BddAttachment.cpp | ryanberryhill/iimc | 2746410d283c53c494cc2389638bfd8c0a0b3404 | [
"BSD-3-Clause"
] | null | null | null | src/opt/BddAttachment.cpp | ryanberryhill/iimc | 2746410d283c53c494cc2389638bfd8c0a0b3404 | [
"BSD-3-Clause"
] | 2 | 2019-02-06T04:20:23.000Z | 2019-02-10T18:25:46.000Z | /********************************************************************
Copyright (c) 2010-2015, Regents of the University of Colorado
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
Redistributions of s... | 32.143293 | 101 | 0.647112 | ryanberryhill |
cb94ba28d4af3fe9398d9b9306abff88c7172849 | 5,999 | cpp | C++ | src/cmd/kits/shore_client.cpp | caetanosauer/zero | 2cf0c0e4420c8b87795300aeb71a729451d4f4c9 | [
"Spencer-94"
] | 27 | 2015-04-21T08:52:37.000Z | 2022-03-18T03:38:58.000Z | src/cmd/kits/shore_client.cpp | caetanosauer/fineline-zero | 74490df94728e513c2dd41f3edb8200698548b78 | [
"Spencer-94"
] | 24 | 2015-07-04T10:45:41.000Z | 2018-05-03T08:52:36.000Z | src/cmd/kits/shore_client.cpp | caetanosauer/zero | 2cf0c0e4420c8b87795300aeb71a729451d4f4c9 | [
"Spencer-94"
] | 15 | 2015-03-31T09:57:10.000Z | 2021-06-09T13:44:58.000Z | /* -*- mode:C++; c-basic-offset:4 -*-
Shore-kits -- Benchmark implementations for Shore-MT
Copyright (c) 2007-2009
Data Intensive Applications and Systems Labaratory (DIAS)
Ecole Polytechnique Federale de Lausanne
All Rights Reserved.
Permi... | 28.841346 | 82 | 0.578596 | caetanosauer |
cb94e38702b20cb171e1f23df2b04c3640d14e69 | 4,137 | cpp | C++ | ogsr_engine/xrGame/ai/monsters/monster_home.cpp | WladTriTopora/OGSR-Engine | b532f222a11ccbce5f95668b09277778a615f217 | [
"Apache-2.0"
] | null | null | null | ogsr_engine/xrGame/ai/monsters/monster_home.cpp | WladTriTopora/OGSR-Engine | b532f222a11ccbce5f95668b09277778a615f217 | [
"Apache-2.0"
] | null | null | null | ogsr_engine/xrGame/ai/monsters/monster_home.cpp | WladTriTopora/OGSR-Engine | b532f222a11ccbce5f95668b09277778a615f217 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "monster_home.h"
#include "BaseMonster/base_monster.h"
#include "../../ai_space.h"
#include "patrol_path_storage.h"
#include "patrol_path.h"
#include "level_graph.h"
#include "cover_point.h"
#include "monster_cover_manager.h"
#include "../../ai_object_location.h"
#include "../../restricted_... | 28.531034 | 175 | 0.699782 | WladTriTopora |
cb959dc41bfdf2db1ba5c45333fb9ff57b62cae8 | 1,464 | hpp | C++ | emulator/source/ram.hpp | Kostu96/K4004 | e9741e9df77de6426303b421bb8514ba6dd911cf | [
"MIT"
] | 1 | 2021-11-18T11:40:38.000Z | 2021-11-18T11:40:38.000Z | emulator/source/ram.hpp | Kostu96/K4004 | e9741e9df77de6426303b421bb8514ba6dd911cf | [
"MIT"
] | null | null | null | emulator/source/ram.hpp | Kostu96/K4004 | e9741e9df77de6426303b421bb8514ba6dd911cf | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
class RAM
{
public:
static constexpr uint16_t NUM_RAM_BANKS = 4u;
static constexpr uint16_t NUM_RAM_CHIPS = 4u;
static constexpr uint16_t NUM_RAM_REGS = 4u;
static constexpr uint16_t NUM_REG_CHARS = 16u;
static constexpr uint16_t NUM_STAUS_CHARS = 4u;
static cons... | 35.707317 | 107 | 0.731557 | Kostu96 |
cb95dfe4c0360158814df5d826bda5a2131826ad | 1,682 | cpp | C++ | shapes/src/Model.cpp | nickveys/opengl-play | a297b4ea804255fd54e4b1e78fb7d79d3e185b23 | [
"MIT"
] | null | null | null | shapes/src/Model.cpp | nickveys/opengl-play | a297b4ea804255fd54e4b1e78fb7d79d3e185b23 | [
"MIT"
] | null | null | null | shapes/src/Model.cpp | nickveys/opengl-play | a297b4ea804255fd54e4b1e78fb7d79d3e185b23 | [
"MIT"
] | null | null | null | #include <glut.h>
#include "Model.h"
Model::Model() : rotation(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1) {
trans[0] = trans[1] = trans[2] = 0.0f;
scale[0] = scale[1] = scale[2] = 1.0f;
drawingAxis = true;
}
void Model::draw() {
glPushMatrix();
glTranslatef(trans[0], trans[1], trans[2]);
glMultMatrixf(rotation.m);
... | 21.564103 | 63 | 0.629013 | nickveys |
ed8956b49784ee0521b0d39e928423fda81e8c5d | 12,420 | cxx | C++ | Modules/Numerics/Optimizersv4/test/itkRegistrationParameterScalesFromJacobianTest.cxx | bradking/ITK | 625d4497512b0fb0108106e680063998b8528e06 | [
"Apache-2.0"
] | 945 | 2015-01-09T00:43:52.000Z | 2022-03-30T08:23:02.000Z | Modules/Numerics/Optimizersv4/test/itkRegistrationParameterScalesFromJacobianTest.cxx | bradking/ITK | 625d4497512b0fb0108106e680063998b8528e06 | [
"Apache-2.0"
] | 2,354 | 2015-02-04T21:54:21.000Z | 2022-03-31T20:58:21.000Z | Modules/Numerics/Optimizersv4/test/itkRegistrationParameterScalesFromJacobianTest.cxx | bradking/ITK | 625d4497512b0fb0108106e680063998b8528e06 | [
"Apache-2.0"
] | 566 | 2015-01-04T14:26:57.000Z | 2022-03-18T20:33:18.000Z | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 35.384615 | 116 | 0.729871 | bradking |
ed8abdd83988ac0fc88640da85befb488681da32 | 3,463 | cpp | C++ | src/qt/src/corelib/io/qdataurl.cpp | martende/phantomjs | 5cecd7dde7b8fd04ad2c036d16f09a8d2a139854 | [
"BSD-3-Clause"
] | 1 | 2015-03-16T20:49:09.000Z | 2015-03-16T20:49:09.000Z | src/qt/src/corelib/io/qdataurl.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | src/qt/src/corelib/io/qdataurl.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
**... | 33.95098 | 79 | 0.617961 | martende |
ed91a9b9e373b41528d7a5bad793065e7791f4b9 | 10,642 | cpp | C++ | vendor/libraries/chain/bls_votes.cpp | chain2future-os/future-core | 030a2be7be92f205439334bd9a848843b0922cb0 | [
"MIT"
] | null | null | null | vendor/libraries/chain/bls_votes.cpp | chain2future-os/future-core | 030a2be7be92f205439334bd9a848843b0922cb0 | [
"MIT"
] | null | null | null | vendor/libraries/chain/bls_votes.cpp | chain2future-os/future-core | 030a2be7be92f205439334bd9a848843b0922cb0 | [
"MIT"
] | null | null | null | #include <futureio/chain/bls_votes.hpp>
#include <futureio/chain/database_utils.hpp>
namespace futureio {
namespace chain {
namespace detail {
using bls_votes::bls_votes_info;
using bls_votes::bls_votes_object;
using bls_votes::shared_bls_votes_info;
using b... | 50.91866 | 179 | 0.524901 | chain2future-os |
ed9689c875c3ac68f358f6a9d151f6184de639f4 | 29,535 | cpp | C++ | code/source/Groups/Groups.cpp | jasonsandlin/PlayFabCoreCSdk | ecf51e9a7a90e579efed595bd1d76ec8f3a1ae19 | [
"Apache-2.0"
] | null | null | null | code/source/Groups/Groups.cpp | jasonsandlin/PlayFabCoreCSdk | ecf51e9a7a90e579efed595bd1d76ec8f3a1ae19 | [
"Apache-2.0"
] | 1 | 2022-03-04T20:50:28.000Z | 2022-03-04T21:02:12.000Z | code/source/Groups/Groups.cpp | jasonsandlin/PlayFabCoreCSdk | ecf51e9a7a90e579efed595bd1d76ec8f3a1ae19 | [
"Apache-2.0"
] | 3 | 2021-12-04T20:43:04.000Z | 2022-01-03T21:16:32.000Z | #include "stdafx.h"
#include "Groups.h"
#include "GlobalState.h"
#include "TitlePlayer.h"
namespace PlayFab
{
namespace Groups
{
AsyncOp<void> GroupsAPI::AcceptGroupApplication(
SharedPtr<Entity> entity,
const AcceptGroupApplicationRequest& request,
const TaskQueue& queue
)
{
auto entityToken{ entity... | 28.34453 | 151 | 0.637346 | jasonsandlin |
ed96bb28cf8b9501d5c9035078ca9459556abc10 | 7,486 | cpp | C++ | trajectory_generation/src/trajectory_generator_with_turning_node.cpp | aslResearch/aslRover | eec6a772b90d18a38ac036773651c5b95eb4f22e | [
"BSD-3-Clause"
] | 9 | 2017-09-22T06:31:47.000Z | 2021-09-09T23:06:56.000Z | trajectory_generation/src/trajectory_generator_with_turning_node.cpp | aslResearch/aslRover | eec6a772b90d18a38ac036773651c5b95eb4f22e | [
"BSD-3-Clause"
] | null | null | null | trajectory_generation/src/trajectory_generator_with_turning_node.cpp | aslResearch/aslRover | eec6a772b90d18a38ac036773651c5b95eb4f22e | [
"BSD-3-Clause"
] | 7 | 2018-09-12T10:36:05.000Z | 2021-09-22T08:11:58.000Z | /**
* @brief trajectory_generator_with_turning_node
* @file trajectory_generator_with_turning_node.cpp
* @author Murali VNV <muralivnv@gmail.com>
*/
/*
* Copyright (c) 2017, muralivnv
*
* This file is part of the asl_gremlin_package and subject to the license terms
* in the top-level LICENSE file of the asl_gre... | 36.517073 | 103 | 0.577211 | aslResearch |
ed96f1b53d4f1bd5aaea13c98ce1f441f562189f | 17,544 | cpp | C++ | WebKit2-7606.2.104.1.1/WebKit2-7606.2.104.1.1/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | 1 | 2021-05-27T07:29:31.000Z | 2021-05-27T07:29:31.000Z | WebKit2-7606.2.104.1.1/WebKit2-7606.2.104.1.1/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | null | null | null | WebKit2-7606.2.104.1.1/WebKit2-7606.2.104.1.1/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | null | null | null | /*
* This file is part of the WebKit open source project.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later ve... | 38.900222 | 214 | 0.758151 | mlcldh |
ed97b95de07bc567afc594c8f639c1310164bb35 | 3,612 | cpp | C++ | interface/src/ui/overlays/Line3DOverlay.cpp | sodaglue/hifi | 725f9e29a3d8833c6051c1562ec4831e7b72370c | [
"Apache-2.0"
] | null | null | null | interface/src/ui/overlays/Line3DOverlay.cpp | sodaglue/hifi | 725f9e29a3d8833c6051c1562ec4831e7b72370c | [
"Apache-2.0"
] | null | null | null | interface/src/ui/overlays/Line3DOverlay.cpp | sodaglue/hifi | 725f9e29a3d8833c6051c1562ec4831e7b72370c | [
"Apache-2.0"
] | null | null | null | //
// Line3DOverlay.cpp
// interface/src/ui/overlays
//
// Copyright 2014 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 "Line3DOverlay.h"
#include <GeometryCache.h>
#include <Registe... | 30.610169 | 119 | 0.639258 | sodaglue |
ed991784b4b9d1d9e8c4780514c55f09bbc7c99d | 1,650 | cpp | C++ | CXX/src/euler012.cpp | troberson/exercises-euler | 03ffafb1016d252ca297f2ab6f02552df1377496 | [
"BSD-3-Clause"
] | 1 | 2020-02-12T20:40:39.000Z | 2020-02-12T20:40:39.000Z | CXX/src/euler012.cpp | troberson/exercises-euler | 03ffafb1016d252ca297f2ab6f02552df1377496 | [
"BSD-3-Clause"
] | null | null | null | CXX/src/euler012.cpp | troberson/exercises-euler | 03ffafb1016d252ca297f2ab6f02552df1377496 | [
"BSD-3-Clause"
] | null | null | null | /* Project Euler - 012 - Highly divisible triangular number
* Copyright (c) 2019 Tamara Roberson
*
* The sequence of triangle numbers is generated by adding the natural numbers.
* So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The
* first ten terms would be:
*
* 1, 3, 6, 10, 15, 21, 28,... | 24.264706 | 84 | 0.649091 | troberson |
ed99a971325c45dfeb2379ba2f4237dc729fbebe | 23 | cpp | C++ | SandBox/src/SandBoxPCH.cpp | PrebenRonningen/Crater | 0e81fd3e1bb1e692055296016d1b6d8cb2606aac | [
"MIT"
] | null | null | null | SandBox/src/SandBoxPCH.cpp | PrebenRonningen/Crater | 0e81fd3e1bb1e692055296016d1b6d8cb2606aac | [
"MIT"
] | null | null | null | SandBox/src/SandBoxPCH.cpp | PrebenRonningen/Crater | 0e81fd3e1bb1e692055296016d1b6d8cb2606aac | [
"MIT"
] | null | null | null | #include "SandBoxPCH.h" | 23 | 23 | 0.782609 | PrebenRonningen |
ed9b71e661d0f0a358cb40ade05d068cf891bd8f | 191 | hpp | C++ | src/chess/perft.hpp | skiminki/4ku | 4c54c99997cea34c9d824d551809f6b27942b7d5 | [
"MIT"
] | 3 | 2021-09-09T22:18:23.000Z | 2022-01-13T13:46:51.000Z | src/chess/perft.hpp | skiminki/4ku | 4c54c99997cea34c9d824d551809f6b27942b7d5 | [
"MIT"
] | 7 | 2021-07-06T19:26:11.000Z | 2021-08-11T13:22:07.000Z | src/chess/perft.hpp | skiminki/4ku | 4c54c99997cea34c9d824d551809f6b27942b7d5 | [
"MIT"
] | 4 | 2021-07-06T18:18:04.000Z | 2021-07-18T18:34:39.000Z | #ifndef PERFT_HPP
#define PERFT_HPP
#include <cstdint>
namespace chess {
struct Position;
std::uint64_t perft(const chess::Position &pos, const int depth);
} // namespace chess
#endif
| 12.733333 | 65 | 0.73822 | skiminki |
ed9c3c87cb60bfaa38a8b152ed6ce02d36a2cda7 | 793 | hpp | C++ | src/arptest.hpp | JerrySievert/arptest | 9ce5cd19d98157020bbfa0a8eac32a644bdbe6e8 | [
"MIT"
] | 3 | 2018-03-12T01:00:31.000Z | 2018-12-09T22:02:35.000Z | src/arptest.hpp | JerrySievert/arptest | 9ce5cd19d98157020bbfa0a8eac32a644bdbe6e8 | [
"MIT"
] | null | null | null | src/arptest.hpp | JerrySievert/arptest | 9ce5cd19d98157020bbfa0a8eac32a644bdbe6e8 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
extern uint16_t arp_test_passed;
extern uint16_t arp_test_failed;
struct arp_test {
uint8_t (*func)();
const char *name;
};
void _test_fail (const char *, const char *, uint16_t);
void _test_pass (const char *);
void _test_start (const char *);
void _add_test (uint8_t (*)(), cons... | 25.580645 | 171 | 0.688525 | JerrySievert |
eda3efa324ba31272e09ea888ff8186c8413d837 | 58 | hpp | C++ | test.hpp | weierstrass/cpp-smart-ptr | b1902ba85eeca2ef302a00ab1cf5fa3ab2019e2d | [
"MIT"
] | null | null | null | test.hpp | weierstrass/cpp-smart-ptr | b1902ba85eeca2ef302a00ab1cf5fa3ab2019e2d | [
"MIT"
] | null | null | null | test.hpp | weierstrass/cpp-smart-ptr | b1902ba85eeca2ef302a00ab1cf5fa3ab2019e2d | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
struct test : testing::Test {};
| 14.5 | 31 | 0.672414 | weierstrass |
eda6a0f95f7953cc2aae393eaa0295116e290ed7 | 22,865 | cpp | C++ | samples/opensource/sampleUffMaskRCNN/sampleUffMaskRCNN.cpp | cathy-kim/TensorRT-1 | 9d37f5df73096b533442d2e9a7713c16f801d13a | [
"Apache-2.0"
] | 11 | 2020-05-29T01:30:18.000Z | 2022-01-27T02:34:09.000Z | samples/opensource/sampleUffMaskRCNN/sampleUffMaskRCNN.cpp | cathy-kim/TensorRT-1 | 9d37f5df73096b533442d2e9a7713c16f801d13a | [
"Apache-2.0"
] | 3 | 2019-10-30T22:50:37.000Z | 2019-11-06T19:18:46.000Z | samples/opensource/sampleUffMaskRCNN/sampleUffMaskRCNN.cpp | cathy-kim/TensorRT-1 | 9d37f5df73096b533442d2e9a7713c16f801d13a | [
"Apache-2.0"
] | 2 | 2020-09-14T20:12:27.000Z | 2021-12-09T04:38:41.000Z | /*
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 33.526393 | 120 | 0.619637 | cathy-kim |
edaa4c59e2674e5f165c468059747d3dd2d54218 | 4,894 | cc | C++ | tensorflow/compiler/xla/service/hlo_reachability.cc | ajweiss/tensorflow | 2f4d4da52f0c488417d7e917edaf1b7569b5e408 | [
"Apache-2.0"
] | 2 | 2019-01-07T03:20:51.000Z | 2019-01-07T07:11:48.000Z | tensorflow/compiler/xla/service/hlo_reachability.cc | ajweiss/tensorflow | 2f4d4da52f0c488417d7e917edaf1b7569b5e408 | [
"Apache-2.0"
] | null | null | null | tensorflow/compiler/xla/service/hlo_reachability.cc | ajweiss/tensorflow | 2f4d4da52f0c488417d7e917edaf1b7569b5e408 | [
"Apache-2.0"
] | 2 | 2019-12-17T09:27:07.000Z | 2020-05-24T13:09:49.000Z | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 34.223776 | 80 | 0.678382 | ajweiss |
edab0100ff55fb2adfd29ce07fb5148b04732a97 | 9,680 | hpp | C++ | src/lib/common/serialize.hpp | bitslow/fcpp | abdaed70ccedb1a377e24d3b7c78b2ec203e111f | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-05-03T15:53:22.000Z | 2020-11-30T12:14:01.000Z | src/lib/common/serialize.hpp | bitslow/fcpp | abdaed70ccedb1a377e24d3b7c78b2ec203e111f | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2021-05-17T16:46:22.000Z | 2021-12-22T15:12:22.000Z | src/lib/common/serialize.hpp | bitslow/fcpp | abdaed70ccedb1a377e24d3b7c78b2ec203e111f | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2020-05-08T11:47:57.000Z | 2022-01-15T21:28:10.000Z | // Copyright © 2021 Giorgio Audrito. All Rights Reserved.
/**
* @file serialize.hpp
* @brief Implementation of serialization operations for standard and FCPP classes.
*/
#ifndef FCPP_COMMON_SERIALIZE_H_
#define FCPP_COMMON_SERIALIZE_H_
#include <cstring>
#include <map>
#include <set>
#include <stdexcept>
#include... | 26.520548 | 155 | 0.619112 | bitslow |
edafba704e90d814f2795bd98e877b3849eb868f | 2,024 | hpp | C++ | library/include/borealis/core/font.hpp | FaultyPine/UltimateModShop | bfef56a684c14f790ad6dc9ed3186e713c0b45e5 | [
"Apache-2.0"
] | 5 | 2021-03-02T14:39:00.000Z | 2021-11-16T16:51:41.000Z | library/include/borealis/core/font.hpp | FaultyPine/UltimateModShop | bfef56a684c14f790ad6dc9ed3186e713c0b45e5 | [
"Apache-2.0"
] | 1 | 2021-12-20T20:46:51.000Z | 2022-01-07T12:33:10.000Z | library/include/borealis/core/font.hpp | FaultyPine/UltimateModShop | bfef56a684c14f790ad6dc9ed3186e713c0b45e5 | [
"Apache-2.0"
] | 2 | 2021-12-10T19:26:52.000Z | 2022-02-23T15:52:46.000Z | /*
Copyright 2021 natinusala
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 i... | 32.126984 | 126 | 0.708992 | FaultyPine |
edb06f0e43ecca03ee4316f6b49811c5e4d4d486 | 1,023 | cpp | C++ | lv_cpp/misc/LvTimer.cpp | lvgl/lv_binding_cpp | 5ce27254ac8526dd1ca61e883785ed2606076a68 | [
"MIT"
] | 7 | 2021-07-26T12:26:48.000Z | 2022-03-19T16:30:56.000Z | lv_cpp/misc/LvTimer.cpp | lvgl/lv_binding_cpp | 5ce27254ac8526dd1ca61e883785ed2606076a68 | [
"MIT"
] | 4 | 2021-07-15T21:31:48.000Z | 2022-02-03T11:48:16.000Z | lv_cpp/misc/LvTimer.cpp | kisvegabor/lv_binding_cpp | 5ce27254ac8526dd1ca61e883785ed2606076a68 | [
"MIT"
] | 2 | 2021-10-06T00:59:52.000Z | 2022-02-18T15:03:51.000Z | /*
* LvTimer.cpp
*
*/
#include "LvTimer.h"
namespace lvglpp {
LvTimer::LvTimer() {
cObj.reset(lv_timer_create_basic());
}
LvTimer::~LvTimer() {
}
lv_timer_t* LvTimer::raw() {
return cObj.get();
}
LvTimer& LvTimer::setCb(lv_timer_cb_t timer_cb){
lv_timer_set_cb(cObj.get(),timer_cb);
return *this;
}
LvTimer... | 17.338983 | 55 | 0.70479 | lvgl |
edb3739f41c49af0c9813465f1f22d5f46dcd76c | 2,637 | cpp | C++ | libs/pfr/test/run/for_each_field.cpp | armdevvel/boost | 30d0930951181ef5bc5aad2231ebac8575db0720 | [
"BSL-1.0"
] | 1 | 2020-04-28T15:15:28.000Z | 2020-04-28T15:15:28.000Z | libs/pfr/test/run/for_each_field.cpp | armdevvel/boost | 30d0930951181ef5bc5aad2231ebac8575db0720 | [
"BSL-1.0"
] | 2 | 2017-05-23T08:01:11.000Z | 2019-09-06T20:49:05.000Z | libs/pfr/test/run/for_each_field.cpp | armdevvel/boost | 30d0930951181ef5bc5aad2231ebac8575db0720 | [
"BSL-1.0"
] | 8 | 2015-11-03T14:12:19.000Z | 2020-09-22T19:20:54.000Z | // Copyright (c) 2016-2020 Antony Polukhin
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/pfr/core.hpp>
#include <boost/core/lightweight_test.hpp>
#include <sstream>
// Test case was inspired b... | 23.131579 | 116 | 0.526735 | armdevvel |
edb496ee1ed74e6066408281cfdf57a2b7d05e1d | 9,433 | cpp | C++ | src/registrator_RegNEW_1_TouchIDs_YYY.cpp | dimtziwnas/InHandScanningICCV15_Reconstruction | 2506f397cf33db5dc9861f247abb0df36c39b05e | [
"RSA-MD"
] | 22 | 2015-12-07T14:15:18.000Z | 2021-05-18T13:37:14.000Z | src/registrator_RegNEW_1_TouchIDs_YYY.cpp | dimtziwnas/InHandScanningICCV15_Reconstruction | 2506f397cf33db5dc9861f247abb0df36c39b05e | [
"RSA-MD"
] | 1 | 2016-04-22T10:25:59.000Z | 2016-04-22T10:25:59.000Z | src/registrator_RegNEW_1_TouchIDs_YYY.cpp | dimtziwnas/InHandScanningICCV15_Reconstruction | 2506f397cf33db5dc9861f247abb0df36c39b05e | [
"RSA-MD"
] | 15 | 2016-04-15T08:59:16.000Z | 2020-06-17T08:21:52.000Z | // Author: Dimitrios Tzionas
//
// source code for the work:
//
// Dimitrios Tzionas and Juergen Gall
// 3D Object Reconstruction from Hand-Object Interactions
// International Conference on Computer Vision (ICCV) 2015
// http://files.is.tue.mpg.de/dtzionas/In-Hand-Scanning
#include <registrator.h>
//////////////... | 67.378571 | 216 | 0.271282 | dimtziwnas |
edb6002c410e071224804b87d1125c51a0e7284e | 2,090 | hpp | C++ | libs/renderer/include/sge/renderer/vertex/buffer_parameters.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/include/sge/renderer/vertex/buffer_parameters.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/vertex/buffer_parameters.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#ifndef SGE_RENDERER_VERTEX_BUFFER_PARAMETERS_HPP_INCLUDED
#define SGE_RENDERER_VERTEX_BUFFER_PARAM... | 30.735294 | 95 | 0.7689 | cpreh |
edbf0bf27e7723ce5a341bad4747dc59a7e44af3 | 722 | cpp | C++ | HW/HJ98/savingbox.cpp | gingkg/happynowcodereveryday | 0584e75cab23f9a8563de26beba5783d5c3235a7 | [
"MIT"
] | 1 | 2021-07-08T08:44:47.000Z | 2021-07-08T08:44:47.000Z | HW/HJ98/savingbox.cpp | gingkg/happynowcodereveryday | 0584e75cab23f9a8563de26beba5783d5c3235a7 | [
"MIT"
] | null | null | null | HW/HJ98/savingbox.cpp | gingkg/happynowcodereveryday | 0584e75cab23f9a8563de26beba5783d5c3235a7 | [
"MIT"
] | null | null | null | #include "savingbox.h"
SavingBox::SavingBox()
{
coins[1] = 0;
coins[2] = 0;
coins[5] = 0;
coins[10] = 0;
}
SavingBox::SavingBox(unordered_map<int, int> &index)
{
for(auto iter = index.begin(); iter != index.end(); iter++){
coins[iter->first] = iter->second;
}
}
void SavingBox::Init(un... | 16.790698 | 64 | 0.562327 | gingkg |
edc08af71b42f2c0ae22dbde24bd41c4c66d3878 | 12,890 | cpp | C++ | src/arch/Threads/Threads_Win32.cpp | Midiman/stepmania | a55d5d614c4caa8b035b9b7cdca94017baba026b | [
"MIT"
] | 1 | 2019-02-13T07:01:27.000Z | 2019-02-13T07:01:27.000Z | src/arch/Threads/Threads_Win32.cpp | Tatsh/stepmania | bff04ba72e9d578e922fd830819515559b535c45 | [
"MIT"
] | null | null | null | src/arch/Threads/Threads_Win32.cpp | Tatsh/stepmania | bff04ba72e9d578e922fd830819515559b535c45 | [
"MIT"
] | null | null | null | #include "global.h"
#include "Threads_Win32.h"
#include "RageUtil.h"
#include "RageThreads.h"
#include "RageTimer.h"
#include "archutils/Win32/ErrorStrings.h"
const int MAX_THREADS=128;
static MutexImpl_Win32 *g_pThreadIdMutex = NULL;
static void InitThreadIdMutex()
{
if( g_pThreadIdMutex != NULL )
return;
g_pThr... | 25.029126 | 149 | 0.726687 | Midiman |
edc1fe2034e81718a24ae92b0cc16a0650697fd0 | 32,284 | cpp | C++ | src/drivers/uavcan/uavcan_drivers/stm32h7/driver/src/uc_stm32h7_can.cpp | youssefmadany/Firmware | 743898d5748da7d811308619c517c9e4c0701585 | [
"BSD-3-Clause"
] | 3 | 2021-07-12T09:34:34.000Z | 2021-07-12T15:55:27.000Z | src/drivers/uavcan/uavcan_drivers/stm32h7/driver/src/uc_stm32h7_can.cpp | youssefmadany/Firmware | 743898d5748da7d811308619c517c9e4c0701585 | [
"BSD-3-Clause"
] | 2 | 2020-04-08T12:03:27.000Z | 2020-05-19T10:50:25.000Z | src/drivers/uavcan/uavcan_drivers/stm32h7/driver/src/uc_stm32h7_can.cpp | youssefmadany/Firmware | 743898d5748da7d811308619c517c9e4c0701585 | [
"BSD-3-Clause"
] | 2 | 2020-03-30T08:07:23.000Z | 2020-04-08T11:37:39.000Z | /****************************************************************************
*
* Copyright (C) 2020 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... | 27.759243 | 119 | 0.679191 | youssefmadany |
edc6375804b7f9f4f961e449e962b6a7f94d44ea | 4,856 | cpp | C++ | tools/llvm-reduce/deltas/ReduceMetadata.cpp | jeffcoukell/llvm | da0892bd0df7e3733651bc2e64df6c92ea4012f8 | [
"Apache-2.0"
] | null | null | null | tools/llvm-reduce/deltas/ReduceMetadata.cpp | jeffcoukell/llvm | da0892bd0df7e3733651bc2e64df6c92ea4012f8 | [
"Apache-2.0"
] | null | null | null | tools/llvm-reduce/deltas/ReduceMetadata.cpp | jeffcoukell/llvm | da0892bd0df7e3733651bc2e64df6c92ea4012f8 | [
"Apache-2.0"
] | null | null | null | //===- ReduceMetadata.cpp - Specialized Delta Pass ------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 34.685714 | 80 | 0.632002 | jeffcoukell |
edca841c9c234982e4b3891e02b026d4cac8389d | 3,193 | cpp | C++ | S_Komentari/ka_asm_03.cpp | Twenkid/Assembly-Examples | 616f0455cc2bf3fb5c4747cde75bb9a73988a2e4 | [
"MIT"
] | null | null | null | S_Komentari/ka_asm_03.cpp | Twenkid/Assembly-Examples | 616f0455cc2bf3fb5c4747cde75bb9a73988a2e4 | [
"MIT"
] | null | null | null | S_Komentari/ka_asm_03.cpp | Twenkid/Assembly-Examples | 616f0455cc2bf3fb5c4747cde75bb9a73988a2e4 | [
"MIT"
] | null | null | null | // примери за асемблерен код
// намиране на максимума на три числа
// Източник на кода: ФМИ, ПУ
/*
Условни преходи
J#
За #:
Първо, при стойност на флаг:
jc когато CF==1
jnc когато CF != 1
Второ, след cmp x, y
за x, y цели без знак преход при:
x<y команда jb или jnae
x==y команда je
x!=y коман... | 30.409524 | 312 | 0.597557 | Twenkid |
edcec6d298f933b4da1750708771653bbb5933d9 | 2,891 | cc | C++ | src/queue_manager.cc | mkwork/cquery | fc2af50c27e8d64e985ef90c0a3da73c798c6f56 | [
"MIT"
] | null | null | null | src/queue_manager.cc | mkwork/cquery | fc2af50c27e8d64e985ef90c0a3da73c798c6f56 | [
"MIT"
] | null | null | null | src/queue_manager.cc | mkwork/cquery | fc2af50c27e8d64e985ef90c0a3da73c798c6f56 | [
"MIT"
] | null | null | null | #include "queue_manager.h"
#include "cache_manager.h"
#include "lsp.h"
#include "query.h"
#include <sstream>
Index_Request::Index_Request(
const std::string& path,
const std::vector<std::string>& args,
bool is_interactive,
const std::string& contents,
const std::shared_ptr<ICacheManager>& cache_m... | 31.086022 | 79 | 0.683501 | mkwork |
edd13ef2383dbb5f838e24d34b3c73c08b57bd37 | 881 | cpp | C++ | main.cpp | tomoaki0705/sampleTranspose | b0461078d1238328dce70bb4b3d8aa7afd72effd | [
"MIT"
] | null | null | null | main.cpp | tomoaki0705/sampleTranspose | b0461078d1238328dce70bb4b3d8aa7afd72effd | [
"MIT"
] | null | null | null | main.cpp | tomoaki0705/sampleTranspose | b0461078d1238328dce70bb4b3d8aa7afd72effd | [
"MIT"
] | null | null | null | #include <arm_neon.h>
#include <iostream>
#include "inlineTranspose.hpp"
void dumpVector( const char* message, float32x4_t a )
{
using namespace std;
float stub[4];
vst1q_f32(stub, a);
cout << message;
for(unsigned int i = 0;i < 4;i++)
{
cout << '\t' << stub[i];
}
cout << endl;
}
int main(int argc, char**ar... | 20.022727 | 53 | 0.602724 | tomoaki0705 |
edd25de20da381d8951b5191b0007d62a8129ed4 | 3,786 | cpp | C++ | core/ServerCallbackThread.cpp | NiklasWang/Sirius | 823f73363984a166124c2c9ffd08bbacfe7f7ee7 | [
"Apache-2.0"
] | null | null | null | core/ServerCallbackThread.cpp | NiklasWang/Sirius | 823f73363984a166124c2c9ffd08bbacfe7f7ee7 | [
"Apache-2.0"
] | null | null | null | core/ServerCallbackThread.cpp | NiklasWang/Sirius | 823f73363984a166124c2c9ffd08bbacfe7f7ee7 | [
"Apache-2.0"
] | null | null | null | #include "ServerCallbackThread.h"
#include "ThreadPoolEx.h"
namespace sirius {
int32_t ServerCallbackThread::send(RequestType type, int32_t id, void *head, void *dat)
{
int32_t rc = NO_ERROR;
if (SUCCEED(rc)) {
rc = mThreads->run(
[=]() -> int32_t {
int32_t _rc = NO_ERROR;... | 21.884393 | 87 | 0.511886 | NiklasWang |
edd4c7399ce1b506d380ef170b4dd108230751c3 | 4,860 | cpp | C++ | yalmd/src/main.cpp | PDA-UR/end-to-end-latency | e9f30cba11ca67615cab115c50d175460c3005f1 | [
"MIT"
] | null | null | null | yalmd/src/main.cpp | PDA-UR/end-to-end-latency | e9f30cba11ca67615cab115c50d175460c3005f1 | [
"MIT"
] | null | null | null | yalmd/src/main.cpp | PDA-UR/end-to-end-latency | e9f30cba11ca67615cab115c50d175460c3005f1 | [
"MIT"
] | null | null | null | /* Source code for Yet Another Latency Measuring Device
* Written in 2020 by Andreas Schmid (University of Regensburg)
* Project Website: https://hci.ur.de/projects/end-to-end-latency
*
* Yet Another Latency Measuring Device measures end-to-end latency
* of systems with a button-equipped input device and a visual... | 30.375 | 109 | 0.648148 | PDA-UR |
edd966e4f4346a0fd2b86b7bae624d58f53f837b | 396 | cpp | C++ | Prism/src/Entity.cpp | Or4kel/Impetus | d4767fc0f5e52e887f57927410c33c3fc1fdc83e | [
"Apache-2.0"
] | null | null | null | Prism/src/Entity.cpp | Or4kel/Impetus | d4767fc0f5e52e887f57927410c33c3fc1fdc83e | [
"Apache-2.0"
] | null | null | null | Prism/src/Entity.cpp | Or4kel/Impetus | d4767fc0f5e52e887f57927410c33c3fc1fdc83e | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Entity.h"
#include "Core/Application.h"
namespace Prism {
Entity::Entity()
{
id = Application::world->m_GeneratorID++;
Application::world->m_Entities[id] = this;
}
Entity::~Entity()
{
Application::world->DestroyComponents(this);
}
void Entity::Register(Component* addedCompone... | 18 | 64 | 0.709596 | Or4kel |
edda7cb207aa4b38952c4716840c97101dfc8f61 | 180 | cpp | C++ | arr1.cpp | sk-2809/c- | efb73a7462642d12db3a5c890312f0dd6c62bcdb | [
"MIT"
] | 1 | 2021-07-27T07:37:19.000Z | 2021-07-27T07:37:19.000Z | arr1.cpp | sk-2809/cpp | efb73a7462642d12db3a5c890312f0dd6c62bcdb | [
"MIT"
] | null | null | null | arr1.cpp | sk-2809/cpp | efb73a7462642d12db3a5c890312f0dd6c62bcdb | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int a;
cin >> a;
if(a%2==0){
cout<<"even"<<endl;
}
else if(a%4==0)
cout<<"rem is 1"<<endl;
else
cout<<"rem is 2 or 3"<<endl;
}
| 12.857143 | 29 | 0.6 | sk-2809 |
eddcc6b3c5712f54ebf2c608433a76b9b970a75d | 2,125 | cpp | C++ | higra/io_utils/py_pink_graph_io.cpp | deisemaia/Higra | 82cb78b606a383f3961faa882457a9a987f802e0 | [
"CECILL-B"
] | 64 | 2019-08-18T19:23:23.000Z | 2022-03-21T04:15:04.000Z | higra/io_utils/py_pink_graph_io.cpp | deisemaia/Higra | 82cb78b606a383f3961faa882457a9a987f802e0 | [
"CECILL-B"
] | 120 | 2019-08-16T09:10:35.000Z | 2022-03-17T09:42:58.000Z | higra/io_utils/py_pink_graph_io.cpp | deisemaia/Higra | 82cb78b606a383f3961faa882457a9a987f802e0 | [
"CECILL-B"
] | 12 | 2019-10-04T07:35:55.000Z | 2021-01-10T19:59:11.000Z | /***************************************************************************
* Copyright ESIEE Paris (2018) *
* *
* Contributor(s) : Benjamin Perret *
* ... | 43.367347 | 118 | 0.450353 | deisemaia |
edddbbc756a2e30c35a31444ee47e2e2259e98d3 | 6,075 | cpp | C++ | cam/src/v20190116/model/GetGroupResponse.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | cam/src/v20190116/model/GetGroupResponse.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | cam/src/v20190116/model/GetGroupResponse.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 29.490291 | 122 | 0.659259 | sinjoywong |
ede07165d4f0f18a43befcede5c4303e9dfaf209 | 1,240 | cpp | C++ | mia/medium/nintendo-64dd.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | mia/medium/nintendo-64dd.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | mia/medium/nintendo-64dd.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | struct Nintendo64DD : FloppyDisk {
auto name() -> string override { return "Nintendo 64DD"; }
auto extensions() -> vector<string> override { return {"n64dd", "ndd"}; }
auto load(string location) -> bool override;
auto save(string location) -> bool override;
auto analyze(vector<u8>& rom) -> string;
};
auto Ni... | 28.181818 | 75 | 0.657258 | CasualPokePlayer |
ede16a68bfecca3ba3b826b2a073e93125f823dd | 824 | cpp | C++ | Source/StaticCamera.cpp | cstechfoodie/COMP371-Computer-Graphic-Scence-of-End-of-the-World | 91e47546d663e079b756fd90dab14c8954903a5a | [
"MIT"
] | 2 | 2019-08-09T00:54:29.000Z | 2020-11-16T22:49:27.000Z | Source/StaticCamera.cpp | cstechfoodie/COMP371-Computer-Graphic-Scence-of-End-of-the-World | 91e47546d663e079b756fd90dab14c8954903a5a | [
"MIT"
] | null | null | null | Source/StaticCamera.cpp | cstechfoodie/COMP371-Computer-Graphic-Scence-of-End-of-the-World | 91e47546d663e079b756fd90dab14c8954903a5a | [
"MIT"
] | 2 | 2019-08-08T13:42:35.000Z | 2019-08-09T22:20:41.000Z | //
// COMP 371 Assignment Framework
//
// Created by Nicolas Bergeron on 8/7/14.
// Updated by Gary Chang on 14/1/15
//
// Copyright (c) 2014-2019 Concordia University. All rights reserved.
//
#include "StaticCamera.h"
#include <glm/gtc/matrix_transform.hpp>
#include "EventManager.h"
using namespace glm;
StaticCam... | 21.128205 | 90 | 0.68568 | cstechfoodie |
ede1ff8967f76015c970a525609c5b7e111645a1 | 2,497 | cc | C++ | cpp/platform/impl/windows/executor.cc | huynhsontung/nearby | 5baf84629fa75ab57e882dec6701b84e312e6f81 | [
"Apache-2.0"
] | null | null | null | cpp/platform/impl/windows/executor.cc | huynhsontung/nearby | 5baf84629fa75ab57e882dec6701b84e312e6f81 | [
"Apache-2.0"
] | null | null | null | cpp/platform/impl/windows/executor.cc | huynhsontung/nearby | 5baf84629fa75ab57e882dec6701b84e312e6f81 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 30.45122 | 107 | 0.721266 | huynhsontung |
ede27c5026007162d4b451cb6ea62aa3004d62a2 | 1,410 | cpp | C++ | src/Client/src/fileinfo1.cpp | wanderingThroughSpaceAndTime/Dropbox | d704a1c24f3d21571d9779bb8e5e61a8da9cc97f | [
"MIT"
] | null | null | null | src/Client/src/fileinfo1.cpp | wanderingThroughSpaceAndTime/Dropbox | d704a1c24f3d21571d9779bb8e5e61a8da9cc97f | [
"MIT"
] | null | null | null | src/Client/src/fileinfo1.cpp | wanderingThroughSpaceAndTime/Dropbox | d704a1c24f3d21571d9779bb8e5e61a8da9cc97f | [
"MIT"
] | null | null | null | #include "fileinfo1.h"
fileinfo::fileinfo(){
filepath = NULL;
isdir = 0;
exist = 0;
filesize; // sys/types.h
last_modify = 0; // time.h
last_access = 0;
last_statuschange = 0;
}
fileinfo::fileinfo(string path){
filepath = (char *)path.c_str();
if(stat(filepath, &info_b... | 17.625 | 75 | 0.551773 | wanderingThroughSpaceAndTime |
ede3bd88edfe1bd32a51700cb0a600207c74799f | 780 | cpp | C++ | Dev Skill/Palindrome.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Dev Skill/Palindrome.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Dev Skill/Palindrome.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
int main()
{
int len,t,i,j,ck;
char ch1[101],ch2[101];
scanf("%d", &t);
while(t--)
{
scanf("%s", ch1);
len = strlen(ch1);
for(i = len-1,j=0; i >= 0;j++, i--)
{
ch2[j] = ch1[i];
}
ch2[j... | 19.5 | 44 | 0.270513 | Sohelr360 |
ede4cc20658940e0c51ba7ef2a31eb664572c2f9 | 8,859 | cpp | C++ | src/RDom.cpp | jaakkotuosa/Halide | b21e98783b953213bd09a26573ab31f701f9acf1 | [
"MIT"
] | 1 | 2016-09-25T10:19:07.000Z | 2016-09-25T10:19:07.000Z | src/RDom.cpp | jaakkotuosa/Halide | b21e98783b953213bd09a26573ab31f701f9acf1 | [
"MIT"
] | null | null | null | src/RDom.cpp | jaakkotuosa/Halide | b21e98783b953213bd09a26573ab31f701f9acf1 | [
"MIT"
] | null | null | null | #include "RDom.h"
#include "Util.h"
#include "IROperator.h"
#include "IRPrinter.h"
namespace Halide {
using namespace Internal;
using std::string;
using std::vector;
RVar::operator Expr() const {
if (!min().defined() || !extent().defined()) {
user_error << "Use of undefined RDom dimension: " <<
... | 30.760417 | 110 | 0.538435 | jaakkotuosa |
ede5cf975058934cd016713939b75c06d50e6428 | 915 | cpp | C++ | Sorting/QuickSort.cpp | hinduBale/DAA-Lab | dbce11b6cfb892b19ca4a976c6d325f7b3b652b2 | [
"MIT"
] | null | null | null | Sorting/QuickSort.cpp | hinduBale/DAA-Lab | dbce11b6cfb892b19ca4a976c6d325f7b3b652b2 | [
"MIT"
] | null | null | null | Sorting/QuickSort.cpp | hinduBale/DAA-Lab | dbce11b6cfb892b19ca4a976c6d325f7b3b652b2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define lli long long int
#define endl "\n"
#define mp make_pair
#define pb push_back
#define MOD 1000000007
using namespace std;
void swap_pos(int &a, int &b)
{
int temp;
temp = a;
a = b;
b = temp;
}
int partition(int A[], int p, int r)
{
int x= A[r];
int i = p - 1;
for(int j = p; j ... | 13.26087 | 47 | 0.528962 | hinduBale |
ede61d585099406f9e08fcf52bf1316a0c433a61 | 3,228 | cpp | C++ | code/SoftRenderer/SrRasTasks.cpp | neoliang/SoftRenderer | 769eeccc8dedd3b1be0a876db7378f66eed401ac | [
"MIT"
] | 141 | 2015-04-08T12:48:22.000Z | 2021-11-27T06:41:13.000Z | code/SoftRenderer/SrRasTasks.cpp | neoliang/SoftRenderer | 769eeccc8dedd3b1be0a876db7378f66eed401ac | [
"MIT"
] | 3 | 2015-07-08T09:39:52.000Z | 2019-03-11T01:41:02.000Z | code/SoftRenderer/SrRasTasks.cpp | gameknife/SoftRenderer | 769eeccc8dedd3b1be0a876db7378f66eed401ac | [
"MIT"
] | 28 | 2015-06-25T05:27:05.000Z | 2021-09-15T06:51:46.000Z | #include "stdafx.h"
#include "SrRasTasks.h"
#include "SrRasterizer.h"
#include "SrSwShader.h"
#include "SrFragmentBuffer.h"
SrRasTask_Pixel::SrRasTask_Pixel( int indexStart, int indexEnd, uint32* indexBuffer, SrFragment* gBuffer, uint32* oBuffer ):
m_indexStart(indexStart),
m_indexEnd(indexEnd),
m_indexBuffer(index... | 24.830769 | 139 | 0.669145 | neoliang |
ede7bbae6bf5b6ffc6e7f0b2ddca27a866d6bf8b | 3,847 | cpp | C++ | src/expander/queue_lossless_output.cpp | Flasew/opera-sim | 1f64017883689c115b8442acab7ef52846ab2c18 | [
"BSD-3-Clause"
] | null | null | null | src/expander/queue_lossless_output.cpp | Flasew/opera-sim | 1f64017883689c115b8442acab7ef52846ab2c18 | [
"BSD-3-Clause"
] | null | null | null | src/expander/queue_lossless_output.cpp | Flasew/opera-sim | 1f64017883689c115b8442acab7ef52846ab2c18 | [
"BSD-3-Clause"
] | null | null | null | // -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
#include <math.h>
#include <iostream>
#include <sstream>
#include "switch.h"
#include "queue_lossless_output.h"
LosslessOutputQueue::LosslessOutputQueue(linkspeed_bps bitrate, mem_b maxsize,
EventList& eventlist, QueueLogger* logger... | 27.676259 | 121 | 0.618404 | Flasew |
ede82ae529fa52bb3f0e4716a64d84503d8d7e85 | 321 | cpp | C++ | Data Structures/STRINGS/01_input_output.cpp | omkarugale7/Data-Structure-and-Algorithms | 057619946d0f333b9c4cb1eb5faf6d7c10afaa5b | [
"MIT"
] | 6 | 2021-10-14T15:03:08.000Z | 2022-01-04T05:11:03.000Z | STRINGS/01_input_output.cpp | omkarugale7/cpp | 21717ce36a4f0d88e850e8b7205470f812ca1d58 | [
"MIT"
] | null | null | null | STRINGS/01_input_output.cpp | omkarugale7/cpp | 21717ce36a4f0d88e850e8b7205470f812ca1d58 | [
"MIT"
] | 7 | 2021-10-16T03:47:20.000Z | 2021-11-12T10:37:33.000Z | #include <iostream>
#include <string>
using namespace std;
int main()
{
string str;
cin >> str;
cout << str << endl;
string str1(5, 'z');
cout << str1 << endl;
string str2 = "apnikaksha";
cout << str2 << endl;
string str3;
getline(cin, str3);
cout << str3 << endl;
return 0;
... | 17.833333 | 31 | 0.551402 | omkarugale7 |
edeb1e42a5ba3b5cad76bd5f998f768cd704b3be | 376 | cpp | C++ | component_solution/1.4/13.cpp | hsefz2018/NOIP-openjudge | b606d399b780959caadcf0094b90fa9163f30029 | [
"MIT"
] | 11 | 2016-02-03T11:13:07.000Z | 2021-05-30T04:37:02.000Z | 1.4/13.cpp | 20200117/noip-openjudge | 5c8b0786ea3fe2208ff9a44f244a631dbc5bb24c | [
"MIT"
] | 4 | 2015-08-18T10:52:33.000Z | 2015-10-29T12:51:52.000Z | 1.4/13.cpp | 20200117/noip-openjudge | 5c8b0786ea3fe2208ff9a44f244a631dbc5bb24c | [
"MIT"
] | 5 | 2016-02-03T11:13:09.000Z | 2019-07-10T13:25:59.000Z | #include <iostream>
#include <iomanip>
using namespace std;
int main() {
double x;
cin >> x;
cout << setiosflags(ios::fixed) << setprecision(3);
if(0 <= x && x < 5) {
cout << -x + 2.5 << endl;
} else if(5 <= x && x < 10) {
cout << 2 - 1.5 * (x-3) * (x-3) << endl;
} else if(10 <=... | 22.117647 | 55 | 0.441489 | hsefz2018 |
ededf03e33c80e2e91e5a207c58f7a473642f1e9 | 640 | cpp | C++ | Server/skillmodel.cpp | ROLL-E/roll-e | ddf7112ed7bf196616bafa9b9453df6b0b22ca38 | [
"MIT"
] | 1 | 2020-07-30T19:37:58.000Z | 2020-07-30T19:37:58.000Z | Server/skillmodel.cpp | ROLL-E/roll-e | ddf7112ed7bf196616bafa9b9453df6b0b22ca38 | [
"MIT"
] | null | null | null | Server/skillmodel.cpp | ROLL-E/roll-e | ddf7112ed7bf196616bafa9b9453df6b0b22ca38 | [
"MIT"
] | null | null | null | #include "skillmodel.h"
#include "Skill.h"
SkillModel::SkillModel(QObject *parent) :
QAbstractListModel(parent)
{
}
int SkillModel::rowCount(const QModelIndex &) const {
return skills.size();
}
QVariant SkillModel::data(const QModelIndex &index, int role) const {
if (!index.isValid()) return QVariant();
if ... | 22.068966 | 69 | 0.695313 | ROLL-E |
edee9eebc16310ee9b99e875888165cb3b8db605 | 70,132 | cpp | C++ | src/item.cpp | libtcod/pyromancer | ae4d4ad36246c0273fdc6e871e1f1bc72605dee4 | [
"MIT"
] | null | null | null | src/item.cpp | libtcod/pyromancer | ae4d4ad36246c0273fdc6e871e1f1bc72605dee4 | [
"MIT"
] | null | null | null | src/item.cpp | libtcod/pyromancer | ae4d4ad36246c0273fdc6e871e1f1bc72605dee4 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2009 Jice
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 36.300207 | 126 | 0.641077 | libtcod |
edf376bfbc25247274a197d0c28810aa762c619b | 23,401 | cpp | C++ | Source/printR.cpp | gongshijun/pulsesim | e44324771816d7738ba38fb72ebb0365d2967a2d | [
"0BSD"
] | 3 | 2018-01-24T11:53:47.000Z | 2018-06-13T07:15:30.000Z | Source/printR.cpp | gongshijun/pulsesim | e44324771816d7738ba38fb72ebb0365d2967a2d | [
"0BSD"
] | null | null | null | Source/printR.cpp | gongshijun/pulsesim | e44324771816d7738ba38fb72ebb0365d2967a2d | [
"0BSD"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
#include"wintolinux.h"
#include "ps_pipeline.h"
#include "printR.h"
FILE *fp_rv0,*fp_rv1,*fp_rv2,*fp_rv3,*fp_rv4,*fp_rv5,*fp_rv6,*fp_rv7,*fp_rv8,*fp_rv9,*fp_rv10,*fp_rv11,*fp_rv12,*fp_rv13,*fp_rv14,*fp_rv15;
FILE *fp_rbuffer,*fp_cbuffer;
FILE *fp_Mbuffer0;
FILE *fp_Mbuffer1;
FILE... | 42.858974 | 369 | 0.590616 | gongshijun |
edf3947edf0306aec475b2cc0b9947d04d3510b0 | 1,890 | cc | C++ | clientsdk/core/core/core_shortlink_packer.cc | nebula-im/imengine | c3e0867ecfa7c7bd9f42cb37754ed54c08e8b459 | [
"Apache-2.0"
] | 12 | 2016-12-01T02:49:35.000Z | 2020-11-23T14:32:24.000Z | clientsdk/core/core/core_shortlink_packer.cc | nebula-im/imengine | c3e0867ecfa7c7bd9f42cb37754ed54c08e8b459 | [
"Apache-2.0"
] | null | null | null | clientsdk/core/core/core_shortlink_packer.cc | nebula-im/imengine | c3e0867ecfa7c7bd9f42cb37754ed54c08e8b459 | [
"Apache-2.0"
] | 6 | 2018-01-25T03:42:07.000Z | 2020-11-03T04:19:21.000Z | /*
* Copyright (c) 2016, https://github.com/nebula-im
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | 37.8 | 146 | 0.75291 | nebula-im |
edf39716b2f6213c91f8d541e807cb8e1c59b3e7 | 590 | cpp | C++ | patbasic/test1060c.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1060c.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1060c.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | //
// Created by neild47 on 18-4-30.
//
#include <algorithm>
#include <functional>
#include <iostream>
using namespace std;
int test1060c() {
int n;
cin >> n;
int arr[n];
for (int i = 0; i < n; i++) {
int tmp;
cin >> tmp;
arr[i] = tmp;
}
sort(arr, arr + n, [](int x, i... | 15.945946 | 59 | 0.427119 | neild47 |
edf3b5bfdce3ccaff496d8bf3ab6aef1a13844bf | 343 | hpp | C++ | HandDetection/main.hpp | GoldenRUS/OpencCV-hant-tracking | dbb0de5143f69daa966da164d700106157a2702f | [
"BSD-3-Clause"
] | 4 | 2019-06-24T02:03:34.000Z | 2022-03-13T11:15:18.000Z | HandDetection/main.hpp | GoldenRUS/OpencCV-hant-tracking | dbb0de5143f69daa966da164d700106157a2702f | [
"BSD-3-Clause"
] | null | null | null | HandDetection/main.hpp | GoldenRUS/OpencCV-hant-tracking | dbb0de5143f69daa966da164d700106157a2702f | [
"BSD-3-Clause"
] | 4 | 2018-01-06T15:53:49.000Z | 2021-07-18T17:09:44.000Z | #ifndef _MAIN_HEADER_
#define _MAIN_HEADER_
#include <opencv2/imgproc/imgproc.hpp>
#include<opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#define ORIGCOL2COL CV_BGR2HLS
#define COL2ORIGCOL CV_HLS2BGR
#define NSAMPLES 7
#defin... | 16.333333 | 38 | 0.77551 | GoldenRUS |
edf4a07374d6a607653c0c8754027d0457ffb840 | 1,118 | cpp | C++ | AnorEngine/Source/Renderer/Renderer.cpp | useronuralp/GameEngineTest | cf11b1099a50d26eebaea6dcae02d3815c2bdd76 | [
"Apache-2.0"
] | 1 | 2021-05-25T13:38:15.000Z | 2021-05-25T13:38:15.000Z | AnorEngine/Source/Renderer/Renderer.cpp | useronuralp/GameEngineTest | cf11b1099a50d26eebaea6dcae02d3815c2bdd76 | [
"Apache-2.0"
] | null | null | null | AnorEngine/Source/Renderer/Renderer.cpp | useronuralp/GameEngineTest | cf11b1099a50d26eebaea6dcae02d3815c2bdd76 | [
"Apache-2.0"
] | 1 | 2021-06-08T14:12:58.000Z | 2021-06-08T14:12:58.000Z | #include "pch.h"
#include "Renderer.h"
namespace AnorEngine
{
namespace Graphics
{
Ref<OrthographicCamera> Renderer::s_OrthoCamera;
void Renderer::Init()
{
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
void Renderer::BeginScene(Ref<OrthographicCamera> camera)
{
Rendere... | 24.844444 | 127 | 0.700358 | useronuralp |
edfb8c67223a87292da81b1a81cec4de245bf638 | 56 | cpp | C++ | src/engine/rendering/renderable_sprite.cpp | invaderjon/gdev | 3f5c5da22160c4980afd6099b0b4e06fdf106204 | [
"Apache-2.0"
] | 1 | 2018-10-20T22:08:59.000Z | 2018-10-20T22:08:59.000Z | src/engine/rendering/renderable_sprite.cpp | invaderjon/gdev | 3f5c5da22160c4980afd6099b0b4e06fdf106204 | [
"Apache-2.0"
] | null | null | null | src/engine/rendering/renderable_sprite.cpp | invaderjon/gdev | 3f5c5da22160c4980afd6099b0b4e06fdf106204 | [
"Apache-2.0"
] | null | null | null | // renderable_sprite.cpp
#include "renderable_sprite.h"
| 18.666667 | 30 | 0.803571 | invaderjon |
edfe0587cedb91e79928b2872026b8900465686e | 679 | cpp | C++ | 20.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | 20.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | 20.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | //
// Created by pzz on 2021/10/28.
//
#include <iostream>
#include <algorithm>
#include <string>
#include <stack>
using namespace std;
class Solution {
public:
bool isValid(string s) {
stack<char> stack;
for (int i = 0; i < s.size(); i++) {
if (s[i] == '(') {
stack.p... | 18.861111 | 62 | 0.412371 | pengzhezhe |
6100091a4b4659d642c365f160cac194882fdbab | 41,550 | cpp | C++ | lib/node_add_on/win/zoom_native_to_wrap.cpp | pramesywaraj/zoom-react-electron-implementation | 94583834fe47dd29309114733c904ddcafdf928e | [
"MIT"
] | null | null | null | lib/node_add_on/win/zoom_native_to_wrap.cpp | pramesywaraj/zoom-react-electron-implementation | 94583834fe47dd29309114733c904ddcafdf928e | [
"MIT"
] | null | null | null | lib/node_add_on/win/zoom_native_to_wrap.cpp | pramesywaraj/zoom-react-electron-implementation | 94583834fe47dd29309114733c904ddcafdf928e | [
"MIT"
] | null | null | null | #include "zoom_native_to_wrap.h"
#include <locale.h>
ZNSDKError Map2WrapDefine(ZOOM_SDK_NAMESPACE::SDKError err)
{
ZNSDKError zn_err_(ZNSDKERR_UNKNOWN);
switch (err)
{
case ZOOM_SDK_NAMESPACE::SDKERR_SUCCESS:
zn_err_ = ZNSDKERR_SUCCESS;
break;
case ZOOM_SDK_NAMESPACE::SDKERR_NO_IMPL:
zn_err_ = ZNSDKERR_NO_IM... | 29.870597 | 135 | 0.828544 | pramesywaraj |
610186f2acfcf1c33dcec47c8a38517ba65468f2 | 14,206 | cpp | C++ | Kits/ATGTK/FrontPanel/FrontPanelDisplay.cpp | sonic74/Xbox-ATG-Samples | 46931b35220e955e75561fdb57721a571a22d16d | [
"MIT"
] | 2 | 2019-03-25T11:40:54.000Z | 2022-02-28T06:10:21.000Z | Kits/ATGTK/FrontPanel/FrontPanelDisplay.cpp | tunip3/Xbox-ATG-Samples | 27e30925a46ae5777703361409b8395fed0394d3 | [
"MIT"
] | null | null | null | Kits/ATGTK/FrontPanel/FrontPanelDisplay.cpp | tunip3/Xbox-ATG-Samples | 27e30925a46ae5777703361409b8395fed0394d3 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------------------------
// FrontPanelDisplay.cpp
//
// Advanced Technology Group (ATG)
// Copyright (C) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "pc... | 28.355289 | 137 | 0.597564 | sonic74 |
6106213067133080ddb7f3e460b4b102ef7e4e74 | 1,230 | cpp | C++ | engine/core/resources/TextureManager.cpp | TremaineDM/Engines | 88dacaddc633ad341b9a2559a9a80b9dd01b09de | [
"MIT"
] | 1 | 2020-10-16T06:39:35.000Z | 2020-10-16T06:39:35.000Z | engine/core/resources/TextureManager.cpp | TremaineDM/Engines | 88dacaddc633ad341b9a2559a9a80b9dd01b09de | [
"MIT"
] | null | null | null | engine/core/resources/TextureManager.cpp | TremaineDM/Engines | 88dacaddc633ad341b9a2559a9a80b9dd01b09de | [
"MIT"
] | 2 | 2021-02-10T21:28:59.000Z | 2021-04-19T07:34:43.000Z | #include "TextureManager.h"
#include <filesystem>
#include <iostream>
#include <cassert>
#include "core/Logger.h"
std::unordered_map<std::string, Texture> TextureManager::textures;
void TextureManager::LoadAllTextures()
{
using namespace std::filesystem;
EngineLogger::Info("=================Loading all textures====... | 21.206897 | 110 | 0.680488 | TremaineDM |
6109bf14c3ec9359c2c601a612450dbde9c3a5c3 | 3,369 | hh | C++ | src/coord.hh | adrian-tymorek/kakoune | e8f028a5bf97898c3c150aac079ab9fd3100e9fa | [
"Unlicense"
] | 8,648 | 2015-01-03T15:21:51.000Z | 2022-03-31T23:32:22.000Z | src/coord.hh | adrian-tymorek/kakoune | e8f028a5bf97898c3c150aac079ab9fd3100e9fa | [
"Unlicense"
] | 3,326 | 2015-01-13T21:53:15.000Z | 2022-03-30T23:34:22.000Z | src/coord.hh | adrian-tymorek/kakoune | e8f028a5bf97898c3c150aac079ab9fd3100e9fa | [
"Unlicense"
] | 976 | 2015-02-05T23:09:03.000Z | 2022-03-28T10:23:48.000Z | #ifndef coord_hh_INCLUDED
#define coord_hh_INCLUDED
#include "units.hh"
#include "hash.hh"
namespace Kakoune
{
template<typename EffectiveType, typename LineType, typename ColumnType>
struct LineAndColumn
{
LineType line = 0;
ColumnType column = 0;
[[gnu::always_inline]]
constexpr EffectiveType op... | 26.527559 | 101 | 0.62897 | adrian-tymorek |
6109f784e8160d144a2b71f8a7ba85b36b212ca0 | 1,337 | cpp | C++ | Classes/BaseController.cpp | brbranch/CocosCreatorCppSample | f2e805d7e4325b04506d35de65a0cd447a40bfab | [
"MIT"
] | 2 | 2017-05-16T02:04:30.000Z | 2017-07-19T14:02:07.000Z | Classes/BaseController.cpp | brbranch/CocosCreatorCppSample | f2e805d7e4325b04506d35de65a0cd447a40bfab | [
"MIT"
] | null | null | null | Classes/BaseController.cpp | brbranch/CocosCreatorCppSample | f2e805d7e4325b04506d35de65a0cd447a40bfab | [
"MIT"
] | null | null | null | //
// BaseController.cpp
// CocosCreatorCppSample
//
// Created by Kazuki Oda on 2017/05/01.
//
//
#include "BaseController.hpp"
USING_NS_CC;
static cocos2d::Size designResolutionSize = cocos2d::Size(640, 960);
Scene *BaseController::getScene() {
return m_scene;
}
void BaseController::setup() {
auto file ... | 27.285714 | 80 | 0.658938 | brbranch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.