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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2dd24f7fc8331429f106d2ec5c93ea90773b0aa | 2,285 | hpp | C++ | src/gui/Component.hpp | desktopgame/ofxGameUI | c4637c5eee108e07ec935e0a9588c3e53d09cb10 | [
"MIT"
] | 1 | 2020-02-24T14:10:55.000Z | 2020-02-24T14:10:55.000Z | src/gui/Component.hpp | desktopgame/ofxGameUI | c4637c5eee108e07ec935e0a9588c3e53d09cb10 | [
"MIT"
] | null | null | null | src/gui/Component.hpp | desktopgame/ofxGameUI | c4637c5eee108e07ec935e0a9588c3e53d09cb10 | [
"MIT"
] | null | null | null | #pragma once
#ifndef OFXGAMEUI_COMPONENT_HPP
#define OFXGAMEUI_COMPONENT_HPP
#include <glm/glm.hpp>
#include <memory>
#include "IEventHandler.hpp"
namespace ofxGameUI {
class Canvas;
/**
* Component.
*/
class Component : public IEventHandler {
public:
using Instance = std::shared_ptr<Component>;
using Reference = ... | 18.427419 | 74 | 0.668271 | desktopgame |
d2e0b4069bc438c0a7b29e61efad4bab47d551a4 | 1,302 | cpp | C++ | lumino/LuminoEngine/src/PostEffect/LightShaftPostEffect.cpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 30 | 2016-01-24T05:35:45.000Z | 2020-03-03T09:54:27.000Z | lumino/LuminoEngine/src/PostEffect/LightShaftPostEffect.cpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 35 | 2016-04-18T06:14:08.000Z | 2020-02-09T15:51:58.000Z | lumino/LuminoEngine/src/PostEffect/LightShaftPostEffect.cpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 5 | 2016-04-03T02:52:05.000Z | 2018-01-02T16:53:06.000Z |
#include "Internal.hpp"
#include <LuminoGraphics/RHI/Texture.hpp>
#include <LuminoGraphics/RHI/SamplerState.hpp>
#include <LuminoGraphics/Rendering/Material.hpp>
#include <LuminoGraphics/Rendering/RenderingContext.hpp>
#include <LuminoEngine/PostEffect/LightShaftPostEffect.hpp>
#include <LuminoGraphics/Rendering/deta... | 29.590909 | 127 | 0.715054 | lriki |
d2e16be266f929c2725843e71936599f3fc05446 | 294 | cpp | C++ | problems/baekjoon/p11720.cpp | yejun614/algorithm-solve | ac7aca22e06a8aa39002c9bf6d6d39bbc6148ff9 | [
"MIT"
] | null | null | null | problems/baekjoon/p11720.cpp | yejun614/algorithm-solve | ac7aca22e06a8aa39002c9bf6d6d39bbc6148ff9 | [
"MIT"
] | null | null | null | problems/baekjoon/p11720.cpp | yejun614/algorithm-solve | ac7aca22e06a8aa39002c9bf6d6d39bbc6148ff9 | [
"MIT"
] | null | null | null | /*
* (210718) 숫자의 합
* https://www.acmicpc.net/problem/11720
*/
#include <cstdio>
int main() {
int N;
scanf("%d", &N);
char str[100] = "";
scanf("%s", str);
int i = 0, answer = 0;
while (str[i] != '\0') {
answer += str[i] - '0';
i ++;
}
printf("%d\n", answer);
return 0;
}
| 11.76 | 40 | 0.493197 | yejun614 |
d2e40210161d7523c65555ece6796e924501af1c | 13,778 | cpp | C++ | logview/core/egraph.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 8 | 2015-11-16T19:15:55.000Z | 2021-02-17T23:58:33.000Z | logview/core/egraph.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 5 | 2015-11-12T00:19:59.000Z | 2020-03-23T10:18:19.000Z | logview/core/egraph.cpp | Hayesie88/emstudio | 0ae4353e5dcaa76b6306ff0aabd5a89999c4dc1b | [
"MIT"
] | 11 | 2015-03-15T23:02:48.000Z | 2021-09-05T14:17:13.000Z | /**************************************************************************
* Copyright (C) 2010 by Michael Carpenter (malcom2073) *
* malcom2073@gmail.com *
* *
* This file is... | 29.503212 | 329 | 0.543693 | Hayesie88 |
5e45984e0b3fc8977e5344082ff97c8d39690b3b | 1,707 | cpp | C++ | codeforces/E - Bear and Forgotten Tree 2/Wrong answer on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/E - Bear and Forgotten Tree 2/Wrong answer on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/E - Bear and Forgotten Tree 2/Wrong answer on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Oct/29/2019 20:44
* solution_verdict: Wrong answer on test 3 language: GNU C++14
* run... | 29.431034 | 111 | 0.44874 | kzvd4729 |
5e48285da6ddc2d340399874378a11a990c9e998 | 10,456 | hpp | C++ | symba/core.hpp | vitos555/symba | c0aac2c6986b8f8f0a6402bb7ca77fa9420b3b4c | [
"BSD-3-Clause"
] | null | null | null | symba/core.hpp | vitos555/symba | c0aac2c6986b8f8f0a6402bb7ca77fa9420b3b4c | [
"BSD-3-Clause"
] | null | null | null | symba/core.hpp | vitos555/symba | c0aac2c6986b8f8f0a6402bb7ca77fa9420b3b4c | [
"BSD-3-Clause"
] | null | null | null |
#ifndef _SYMBA_CORE_HPP_
#define _SYMBA_CORE_HPP_
#include<cmath>
#include<algorithm>
#include<variant>
#include<string>
#include<vector>
#include<iostream>
#include<map>
#include<numeric>
#include<sstream>
#include<type_traits>
#include<iomanip>
#include "util.hpp"
namespace symba {
namespace polynomial {
templa... | 42.852459 | 150 | 0.625956 | vitos555 |
5e51e7caf26d3fde32da5e1f778dcba8d2fe2c2f | 4,550 | cpp | C++ | src/GeneratedFiles/Debug/moc_ToolButtonComboxMenu.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | 1 | 2022-03-31T02:28:18.000Z | 2022-03-31T02:28:18.000Z | src/GeneratedFiles/Release/moc_ToolButtonComboxMenu.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | null | null | null | src/GeneratedFiles/Release/moc_ToolButtonComboxMenu.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'ToolButtonComboxMenu.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.0)
**
** WARNING! All changes made in this file will be lost!
************************************************... | 32.971014 | 103 | 0.628132 | SVGEditors |
5e543ac537bcb1cd1da32ca8bebc8a5601921469 | 7,152 | hpp | C++ | src/armnn/backends/RefLayerSupport.hpp | KevinRodrigues05/armnn_caffe2_parser | c577f2c6a3b4ddb6ba87a882723c53a248afbeba | [
"MIT"
] | null | null | null | src/armnn/backends/RefLayerSupport.hpp | KevinRodrigues05/armnn_caffe2_parser | c577f2c6a3b4ddb6ba87a882723c53a248afbeba | [
"MIT"
] | null | null | null | src/armnn/backends/RefLayerSupport.hpp | KevinRodrigues05/armnn_caffe2_parser | c577f2c6a3b4ddb6ba87a882723c53a248afbeba | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#pragma once
#include <armnn/DescriptorsFwd.hpp>
#include <armnn/Types.hpp>
#include <armnn/Tensor.hpp>
#include <layers/LstmLayer.hpp>
#include <boost/optional.hpp>
namespace armnn
{
bool Is... | 51.453237 | 109 | 0.561661 | KevinRodrigues05 |
5e587b078313f37acd9c727db208a30affed73f7 | 586 | hpp | C++ | libs/parseini/include/sge/parse/ini/skipper.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/parseini/include/sge/parse/ini/skipper.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/parseini/include/sge/parse/ini/skipper.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_PARSE_INI_SKIPPER_HPP_INCLUDED
#define SGE_PARSE_INI_SKIPPER_HPP_INCLUDED
#include <fc... | 27.904762 | 99 | 0.742321 | cpreh |
5e5baaf673eaee49bacef2b391c4599f3b3fbcb4 | 283 | hpp | C++ | Escape Room Client/dependencies/volt/include/render/opengl/GlShader.hpp | Daninjakiwi/Escape-Room-Client | a67328feb4ec51e1d8d681804ae9831deb9c2181 | [
"MIT"
] | null | null | null | Escape Room Client/dependencies/volt/include/render/opengl/GlShader.hpp | Daninjakiwi/Escape-Room-Client | a67328feb4ec51e1d8d681804ae9831deb9c2181 | [
"MIT"
] | null | null | null | Escape Room Client/dependencies/volt/include/render/opengl/GlShader.hpp | Daninjakiwi/Escape-Room-Client | a67328feb4ec51e1d8d681804ae9831deb9c2181 | [
"MIT"
] | null | null | null | #pragma once
namespace volt {
class GlShader {
private:
unsigned int m_id;
public:
GlShader(const char* vert_src, const char* frag_src);
~GlShader();
unsigned int getId();
void bind();
private:
static unsigned int compile(const char* src, unsigned int type);
};
} | 16.647059 | 66 | 0.69258 | Daninjakiwi |
5e5c0acda29ec36e32d2bddc3b7f73a3ac34412a | 1,300 | cpp | C++ | src/comalc.cpp | markbush/comal-tools | d8b6affb0f31e40f6f85c39be48844ceb8aba863 | [
"MIT"
] | null | null | null | src/comalc.cpp | markbush/comal-tools | d8b6affb0f31e40f6f85c39be48844ceb8aba863 | [
"MIT"
] | null | null | null | src/comalc.cpp | markbush/comal-tools | d8b6affb0f31e40f6f85c39be48844ceb8aba863 | [
"MIT"
] | null | null | null | #include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <string>
#include <fstream>
#include <stdint.h>
#include "logger/Logger.h"
#include "parsers/TextParser.h"
using namespace std::string_literals;
static Logger logger {"main"s};
static std::optional<std::vector<uint8_t>> parseInput(std:... | 25 | 81 | 0.664615 | markbush |
5e5e0ff15050f0f3651b2f2eb0a579c1dc24369f | 4,036 | cpp | C++ | crosswordBuilderTest/WordRandomizerTest.cpp | omen273/crosswordBuilder | 21946fa831f79848dd9d16d458c260e0daeb126c | [
"MIT"
] | null | null | null | crosswordBuilderTest/WordRandomizerTest.cpp | omen273/crosswordBuilder | 21946fa831f79848dd9d16d458c260e0daeb126c | [
"MIT"
] | null | null | null | crosswordBuilderTest/WordRandomizerTest.cpp | omen273/crosswordBuilder | 21946fa831f79848dd9d16d458c260e0daeb126c | [
"MIT"
] | null | null | null | #include "pch.h"
#include "../crosswordBuilder/WordRandomizer.h"
#include <numeric>
#include <unordered_map>
#include <unordered_set>
#include"TestUtils.h"
using namespace testUtils;
namespace
{
auto computeChi(const std::vector<std::size_t>& Ys, float probability, std::size_t testCount)
{
auto exp... | 34.495726 | 167 | 0.615461 | omen273 |
5e6137b4b8e7a717182dc50cd51139130ecc21ef | 3,081 | hpp | C++ | include/Mono/Unity/UnityTlsConversions.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Mono/Unity/UnityTlsConversions.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/Mono/Unity/UnityTlsConversions.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: Mono.Unity.UnityTls
#include "Mono/Unity/UnityTls.hpp"
// Completed i... | 56.018182 | 209 | 0.767283 | darknight1050 |
5e6405d4454ad14753b50015909ff3177d5e4823 | 15,097 | cxx | C++ | src/python/lib/graph/rag/accumulate.cxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | 38 | 2016-06-29T07:42:50.000Z | 2021-12-09T09:25:25.000Z | src/python/lib/graph/rag/accumulate.cxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 62 | 2016-07-27T16:07:53.000Z | 2022-03-30T17:24:36.000Z | src/python/lib/graph/rag/accumulate.cxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 20 | 2016-01-25T21:21:52.000Z | 2021-12-09T09:25:16.000Z | #include <cstddef>
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include "nifty/graph/rag/grid_rag.hxx"
#include "nifty/graph/rag/grid_rag_accumulate.hxx"
#include "xtensor-python/pytensor.hpp"
#include "xtensor-python/pyarray.hpp"
#include "nifty/xtensor/xtensor.hxx"
// still need this for python bind... | 35.273364 | 117 | 0.522687 | konopczynski |
5e65b240b65db404413ead170bd9ae349585dfe2 | 1,555 | cpp | C++ | src/engine/engine/engine.core/path.cpp | lsempe/uipg | 3e4e978c58a3c56fe32441e495b7436179395fa2 | [
"MIT"
] | 8 | 2016-01-14T11:22:58.000Z | 2022-01-20T17:49:09.000Z | src/engine/engine/engine.core/path.cpp | lsempe/uipg | 3e4e978c58a3c56fe32441e495b7436179395fa2 | [
"MIT"
] | 1 | 2015-06-02T17:50:33.000Z | 2015-06-03T06:34:11.000Z | src/engine/engine/engine.core/path.cpp | lsempe/uipg | 3e4e978c58a3c56fe32441e495b7436179395fa2 | [
"MIT"
] | 3 | 2020-01-31T12:49:05.000Z | 2021-10-30T19:56:21.000Z | #include "path.h"
#include <iostream>
#include <fstream>
#include <list>
#include <tchar.h>
namespace path
{
bool FileExists(const std::wstring& file)
{
std::ifstream stream(file);
return stream.good();
}
void FixPathDelimitersInPlace(wchar_t* path)
{
wchar_t ch = *path;
while (ch != L'\0')
{
if (ch == L'... | 18.73494 | 61 | 0.641158 | lsempe |
5e6c78f8feec02db376f0069ebd4336764655034 | 9,439 | cpp | C++ | runtime/memory/main.cpp | rschleitzer/scaly | 7537cdf44f7a63ad1a560975017ee1c897c73787 | [
"MIT"
] | null | null | null | runtime/memory/main.cpp | rschleitzer/scaly | 7537cdf44f7a63ad1a560975017ee1c897c73787 | [
"MIT"
] | null | null | null | runtime/memory/main.cpp | rschleitzer/scaly | 7537cdf44f7a63ad1a560975017ee1c897c73787 | [
"MIT"
] | null | null | null | #include "Memory.cpp"
using namespace scaly::memory;
void test_page()
{
auto heap = Heap::create();
auto root_stack_bucket = StackBucket::create(&heap);
auto r = Region::create_from_page(Page::get(root_stack_bucket));
auto page = r.page;
// We have no next page yet
if (page->next_page != null... | 29.132716 | 88 | 0.595826 | rschleitzer |
5e6c8580182e045c87575234e40730c308cb2050 | 1,470 | cpp | C++ | Practice/2018/2018.8.6/BZOJ4813-DP.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.8.6/BZOJ4813-DP.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.8.6/BZOJ4813-DP.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=110;
const int maxM=maxN<<1;
const int inf=2147483647;
int n,m;
int edgecnt=0,Head[maxN],Next[maxM],V[maxM];
int F[maxN][ma... | 19.864865 | 60 | 0.52585 | SYCstudio |
5e6d6f5df9006b213308d081b39d035c55ef355c | 4,428 | cpp | C++ | source/objects/box2d/contact/wrap_contact.cpp | henlo-birb/lovepotion | 3b7128f0683252915cd0178a3e028a553b01fdc1 | [
"0BSD"
] | 303 | 2016-06-20T01:07:44.000Z | 2021-04-02T09:54:51.000Z | source/objects/box2d/contact/wrap_contact.cpp | henlo-birb/lovepotion | 3b7128f0683252915cd0178a3e028a553b01fdc1 | [
"0BSD"
] | 95 | 2017-09-26T19:17:58.000Z | 2021-04-06T00:53:02.000Z | source/objects/box2d/contact/wrap_contact.cpp | henlo-birb/lovepotion | 3b7128f0683252915cd0178a3e028a553b01fdc1 | [
"0BSD"
] | 50 | 2017-07-14T06:06:46.000Z | 2020-12-25T18:19:11.000Z | #include "objects/box2d/contact/wrap_contact.h"
using namespace love;
Contact* Wrap_Contact::CheckContact(lua_State* L, int index)
{
Contact* contact = Luax::CheckType<Contact>(L, index);
if (!contact->IsValid())
luaL_error(L, "Attempt to use destroyed contact!");
return contact;
}
int Wrap_Cont... | 22.943005 | 69 | 0.64589 | henlo-birb |
5e6dadf8c7a3b8a8fa5abdf18fde0effd37cf05b | 1,882 | cpp | C++ | examples/embed_cxx/main.cpp | hangedfish/WasmEdge | 7746f4309c6d186c86aa19924236a6e7c4b909c1 | [
"Apache-2.0"
] | 1 | 2022-02-22T02:04:23.000Z | 2022-02-22T02:04:23.000Z | examples/embed_cxx/main.cpp | hangedfish/WasmEdge | 7746f4309c6d186c86aa19924236a6e7c4b909c1 | [
"Apache-2.0"
] | null | null | null | examples/embed_cxx/main.cpp | hangedfish/WasmEdge | 7746f4309c6d186c86aa19924236a6e7c4b909c1 | [
"Apache-2.0"
] | null | null | null | #include "script/fibonacci.h"
#include <chrono>
#include <cstdio>
#include <iostream>
#include <wasmedge/wasmedge.h>
void run_fib_wasm() {
/* Create the configure context and add the WASI support. */
/* This step is not necessary unless you need WASI support. */
WasmEdge_ConfigureContext *ConfCxt = WasmEdge_Conf... | 33.607143 | 77 | 0.686504 | hangedfish |
5e6e20bcf2e3b01bf88800bc8d3afbf46e7166a7 | 1,105 | cpp | C++ | main/lucid/managed/Orbit/Properties.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | main/lucid/managed/Orbit/Properties.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | main/lucid/managed/Orbit/Properties.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | #include "Properties.h"
namespace /* anonymous */ {
namespace orbit = ::lucid::orbit;
}
namespace Lucid {
namespace Orbit {
///
///
///
PhysicalProperties::PhysicalProperties(orbit::PhysicalProperties const &properties)
{
_internal = new orbit::PhysicalProperties(properties);
_isOwner = true;
}
Ph... | 16.25 | 84 | 0.702262 | irumsey |
5e7290b81cce29956f0e38860ae6f086cd032793 | 3,673 | cpp | C++ | SimulationObject.cpp | MartinUbl/simlib | 175ee25400d6934049eccccf73ad6ebf92402e29 | [
"MIT"
] | null | null | null | SimulationObject.cpp | MartinUbl/simlib | 175ee25400d6934049eccccf73ad6ebf92402e29 | [
"MIT"
] | null | null | null | SimulationObject.cpp | MartinUbl/simlib | 175ee25400d6934049eccccf73ad6ebf92402e29 | [
"MIT"
] | null | null | null | /************************************************************
* SimLib simulation library for event-based simulations *
* Author: Martin Ubl (A16N0026P) *
* ublm@students.zcu.cz *
************************************************************/
#i... | 22.813665 | 110 | 0.630275 | MartinUbl |
5e740a14ead48634d426511ed34afc4a45703930 | 6,914 | cpp | C++ | WasapiIODLL/WWPcmStream.cpp | yamamoto2002/bitspersampleconv2 | 331a9fc531269e5dfdc78548e583f793a7687dc0 | [
"MIT"
] | null | null | null | WasapiIODLL/WWPcmStream.cpp | yamamoto2002/bitspersampleconv2 | 331a9fc531269e5dfdc78548e583f793a7687dc0 | [
"MIT"
] | null | null | null | WasapiIODLL/WWPcmStream.cpp | yamamoto2002/bitspersampleconv2 | 331a9fc531269e5dfdc78548e583f793a7687dc0 | [
"MIT"
] | 1 | 2020-11-12T06:55:18.000Z | 2020-11-12T06:55:18.000Z | // 日本語 UTF-8
#include "WWPcmStream.h"
#include "WWCommonUtil.h"
#include <assert.h>
WWPcmStream::WWPcmStream(void)
: m_nowPlayingPcmData(nullptr),
m_pauseResumePcmData(nullptr),
m_streamType(WWStreamPcm),
m_zeroFlushMillisec(0)
{
}
void
WWPcmStream::SetStreamType(... | 26.189394 | 113 | 0.656349 | yamamoto2002 |
5e74396e9512cbff43aa4a229f18a71a930bbb2c | 8,619 | cpp | C++ | API/Source/Core/Math/Matrix.cpp | SparkyPotato/Cinder | 438885c34709c6b1fe0531c1fd1a0878019e588f | [
"Apache-2.0"
] | 5 | 2020-11-26T14:37:34.000Z | 2020-12-14T10:44:36.000Z | API/Source/Core/Math/Matrix.cpp | SparkyPotato/Cinder | 438885c34709c6b1fe0531c1fd1a0878019e588f | [
"Apache-2.0"
] | null | null | null | API/Source/Core/Math/Matrix.cpp | SparkyPotato/Cinder | 438885c34709c6b1fe0531c1fd1a0878019e588f | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Shaye Garg
//
// 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... | 40.088372 | 100 | 0.638357 | SparkyPotato |
5e7c07c0981c0339e0541de387f3c929f34668c8 | 962 | cpp | C++ | test/kill.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | test/kill.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | test/kill.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | // Copyright (c) 2001 David Muse
// See the file COPYING for more information
#include <rudiments/process.h>
#include <rudiments/charstring.h>
#include <rudiments/error.h>
#include <rudiments/stdio.h>
int main(int argc, const char **argv) {
if (argc<3) {
stdoutput.printf("usage: kill signal processid\n");
proc... | 24.666667 | 64 | 0.668399 | davidwed |
5e7e45c52216771789c872d60aeaa77aa7ff08ea | 347 | cpp | C++ | Ch 16/16.05.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 16/16.05.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 16/16.05.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | #include "16.05_print.h"
#include<iostream>
#include<string>
int main()
{
char arr[10]{ 'a','b','c','d','e','f','g' };
int arr1[10]{ 1,2,3,4,5,6,7,8,9,0 };
std::string arr2[10]{ "asv","hello","cpp","freedomly","world" };
print(arr);
std::cout<<std::endl;
print(arr1);
std::cout<<std::endl;
print(arr2);
std::co... | 20.411765 | 65 | 0.585014 | Felon03 |
5e82b63b0d6e425088fe247f120458260ea112f5 | 1,604 | cpp | C++ | Source/NeuroDev/Actors/Axon.cpp | calben/NeuroDev | 4f6a792bcac37a6ffa90f3b3f19cd130b0f7f0e0 | [
"MIT"
] | null | null | null | Source/NeuroDev/Actors/Axon.cpp | calben/NeuroDev | 4f6a792bcac37a6ffa90f3b3f19cd130b0f7f0e0 | [
"MIT"
] | null | null | null | Source/NeuroDev/Actors/Axon.cpp | calben/NeuroDev | 4f6a792bcac37a6ffa90f3b3f19cd130b0f7f0e0 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "NeuroDev.h"
#include "Axon.h"
#include "Util/MathUtils.h"
#include "AxonSegment.h"
#include "Kismet/KismetMathLibrary.h"
// Sets default values
AAxon::AAxon()
{
// Set this actor to call Tick() every frame. You can turn this of... | 28.642857 | 126 | 0.755611 | calben |
5e82dd7f92797be4ae6c84e6382c633a91593d7f | 1,622 | hpp | C++ | code/engine/xrEngine/editor_environment_thunderbolts_thunderbolt_id.hpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 58 | 2016-11-20T19:14:35.000Z | 2021-12-27T21:03:35.000Z | code/engine/xrEngine/editor_environment_thunderbolts_thunderbolt_id.hpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 59 | 2016-09-10T10:44:20.000Z | 2018-09-03T19:07:30.000Z | code/engine/xrEngine/editor_environment_thunderbolts_thunderbolt_id.hpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 39 | 2017-02-05T13:35:37.000Z | 2022-03-14T11:00:12.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : editor_environment_thunderbolts_thunderbolt_id.hpp
// Created : 04.01.2008
// Modified : 04.01.2008
// Author : Dmitriy Iassenev
// Description : editor environment thunderbolts thunderbolt identifier class
//////////////////... | 29.490909 | 77 | 0.707768 | InNoHurryToCode |
5e830f2d7141c01d4d871545ba1303f3b3b3e275 | 551 | cpp | C++ | feb ch/chefandhischaracters.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | feb ch/chefandhischaracters.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | feb ch/chefandhischaracters.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
string s;
cin>>s;
int ans=0;
for(int i=0;i<s.size();i++)
{
int countc=0,counth=0,counte=0,countf=0;
for(int j=i;j<i+4 && j<s.size();j++)
{
if(s[j]=='c')
countc++;
else if(s[j]=='h')
count... | 15.742857 | 55 | 0.484574 | sagar-sam |
5e8432837d54e882794b82856d992fca19c85e0b | 10,048 | hpp | C++ | wave_geometry_og/include/wave/geometry_og/numerical_test_functors.hpp | Jebediah/libwave | c04998c964f0dc7d414783c6e8cf989a2716ad54 | [
"MIT"
] | 2 | 2019-06-13T13:47:18.000Z | 2019-06-13T14:54:35.000Z | wave_geometry_og/include/wave/geometry_og/numerical_test_functors.hpp | Jebediah/libwave | c04998c964f0dc7d414783c6e8cf989a2716ad54 | [
"MIT"
] | null | null | null | wave_geometry_og/include/wave/geometry_og/numerical_test_functors.hpp | Jebediah/libwave | c04998c964f0dc7d414783c6e8cf989a2716ad54 | [
"MIT"
] | 1 | 2020-02-13T02:27:29.000Z | 2020-02-13T02:27:29.000Z | /** @file
* @ingroup geometry
*/
#ifndef WAVE_GEOMETRY_NUMERICAL_TEST_FUNCTORS_HPP
#define WAVE_GEOMETRY_NUMERICAL_TEST_FUNCTORS_HPP
#include "wave/geometry_og/transformation.hpp"
namespace wave {
/** @addtogroup geometry
* @{ */
// The Functors are used for computing finite difference Jacobians
// of rotation ... | 29.727811 | 113 | 0.61873 | Jebediah |
5e8621fcd3cffb49e4bf6f486dee8985fdb64732 | 3,865 | cpp | C++ | lib/quickflux/qfappscriptrunnable.cpp | denLaure/DictionaryTrainer | fc6d85e0b755eeca7870312653fd03e62447fffb | [
"MIT"
] | null | null | null | lib/quickflux/qfappscriptrunnable.cpp | denLaure/DictionaryTrainer | fc6d85e0b755eeca7870312653fd03e62447fffb | [
"MIT"
] | null | null | null | lib/quickflux/qfappscriptrunnable.cpp | denLaure/DictionaryTrainer | fc6d85e0b755eeca7870312653fd03e62447fffb | [
"MIT"
] | 1 | 2019-07-04T09:24:16.000Z | 2019-07-04T09:24:16.000Z | #include <QtCore>
#include <QUuid>
#include "qfappdispatcher.h"
#include "priv/qfappscriptrunnable.h"
#include "priv/qfappscriptdispatcherwrapper.h"
QFAppScriptRunnable::QFAppScriptRunnable(QObject *parent) : QObject(parent)
{
m_engine = 0;
m_next = 0;
m_isSignalCondition = false;
m_isOnceOnly = true;
... | 24.935484 | 105 | 0.653299 | denLaure |
5e87c5ba94b5e36588d58039c736fba0f84b4a15 | 2,691 | cpp | C++ | src/emu/i8254_pit.cpp | madmoose/chani | 567e6c1a5769d050220f990b437f099198f1f8f1 | [
"MIT"
] | 11 | 2021-05-30T21:02:55.000Z | 2022-03-19T16:22:34.000Z | src/emu/i8254_pit.cpp | madmoose/chani | 567e6c1a5769d050220f990b437f099198f1f8f1 | [
"MIT"
] | 3 | 2021-06-06T08:37:04.000Z | 2021-10-06T18:40:12.000Z | src/emu/i8254_pit.cpp | madmoose/chani | 567e6c1a5769d050220f990b437f099198f1f8f1 | [
"MIT"
] | 3 | 2021-06-04T19:53:18.000Z | 2021-06-06T14:02:26.000Z | #include "emu/i8254_pit.h"
#include "emu/i8086.h"
#include "emu/ibm5160.h"
#include <cassert>
#include <algorithm>
#include <limits>
void i8254_counter_t::write(byte v) {
switch (w) {
case 0b00:
return;
case 0b01:
writelo(count_register, v);
w = 0b00;
break;
case 0b10:
writehi(count_register, v... | 19.359712 | 68 | 0.631364 | madmoose |
5e8aae7ca046330f39a6ec30a136539922ff33a8 | 285 | hpp | C++ | src/autograph/error.hpp | ennis/autograph | 4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d | [
"MIT"
] | null | null | null | src/autograph/error.hpp | ennis/autograph | 4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d | [
"MIT"
] | null | null | null | src/autograph/error.hpp | ennis/autograph | 4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d | [
"MIT"
] | null | null | null | #ifndef ERROR_HPP
#define ERROR_HPP
#include <string>
#include <stdexcept>
#include <iostream>
namespace ag {
[[noreturn]] inline void failWith(std::string message) {
std::cerr << "ABORT: " << message << "\n";
throw std::runtime_error(message.c_str());
}
}
#endif // !ERROR_HPP
| 17.8125 | 56 | 0.680702 | ennis |
5e8cbf3b9f13426f1f8911cb772dc6487a9e5853 | 86 | cpp | C++ | Source/BYGLocalization/Private/BYGLocalizationCoreMinimal.cpp | rodolphito/UE4-BYGLocalization | cfbfa026a8df7f573ea591943ce541af56ce73d6 | [
"BSD-3-Clause"
] | 43 | 2021-05-31T13:56:08.000Z | 2022-02-15T01:57:00.000Z | Source/BYGLocalization/Private/BYGLocalizationCoreMinimal.cpp | rodolphito/UE4-BYGLocalization | cfbfa026a8df7f573ea591943ce541af56ce73d6 | [
"BSD-3-Clause"
] | null | null | null | Source/BYGLocalization/Private/BYGLocalizationCoreMinimal.cpp | rodolphito/UE4-BYGLocalization | cfbfa026a8df7f573ea591943ce541af56ce73d6 | [
"BSD-3-Clause"
] | 6 | 2021-06-11T21:26:25.000Z | 2022-01-20T04:50:20.000Z | #include "BYGLocalizationCoreMinimal.h"
DEFINE_LOG_CATEGORY( LogBYGLocalization );
| 14.333333 | 42 | 0.825581 | rodolphito |
5e90ba200d96f33a275f71f69b73f44932ac46d8 | 13,649 | cc | C++ | FELICITY/Static_Codes/Mesh_Smoothing/src_code/Mesh_Class_For_Star.cc | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | FELICITY/Static_Codes/Mesh_Smoothing/src_code/Mesh_Class_For_Star.cc | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | FELICITY/Static_Codes/Mesh_Smoothing/src_code/Mesh_Class_For_Star.cc | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | /*
============================================================================================
This class accesses the mesh geometry data. In particular, it is useful for
accessing the ``star'' of elements around a vertex.
Copyright (c) 04-23-2013, Shawn W. Walker
==========================================... | 40.743284 | 123 | 0.522529 | brianchowlab |
5e918c802d11497ecc6540bae886781436c81953 | 12,871 | cpp | C++ | src/processing.cpp | frc5431/Copernicus | f68dda55231b2d6503f8f87425f4150df0176918 | [
"MIT"
] | null | null | null | src/processing.cpp | frc5431/Copernicus | f68dda55231b2d6503f8f87425f4150df0176918 | [
"MIT"
] | null | null | null | src/processing.cpp | frc5431/Copernicus | f68dda55231b2d6503f8f87425f4150df0176918 | [
"MIT"
] | null | null | null | /*------------------------------------------------------------------------------||
| |
| Copyright (C) 2017 by Titan Robotics |
| License Date: 01/23/2017 ... | 38.306548 | 164 | 0.654262 | frc5431 |
5e98ffb8a9917a092272f22dd3636b953e741553 | 2,026 | hpp | C++ | dockerfile/src/common/zeromq-4.1.0/src/windows.hpp | mushenghe/visual-pushing-grasping | 53607c99c6016bdf041f10d886fa2c0ab583eecb | [
"BSD-2-Clause"
] | 1 | 2020-03-27T01:19:46.000Z | 2020-03-27T01:19:46.000Z | dockerfile/src/common/zeromq-4.1.0/src/windows.hpp | mushenghe/visual-pushing-grasping | 53607c99c6016bdf041f10d886fa2c0ab583eecb | [
"BSD-2-Clause"
] | null | null | null | dockerfile/src/common/zeromq-4.1.0/src/windows.hpp | mushenghe/visual-pushing-grasping | 53607c99c6016bdf041f10d886fa2c0ab583eecb | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2007-2014 Contributors as noted in the AUTHORS file
This file is part of 0MQ.
0MQ is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
... | 27.378378 | 90 | 0.761106 | mushenghe |
5e9c01efd29a6d93833a3b28a230c61da89a7a44 | 865 | cpp | C++ | key.cpp | aydanh/HasGB | 05a5f005c03f59b1f47ae4f7af43eedc2beba224 | [
"MIT"
] | null | null | null | key.cpp | aydanh/HasGB | 05a5f005c03f59b1f47ae4f7af43eedc2beba224 | [
"MIT"
] | null | null | null | key.cpp | aydanh/HasGB | 05a5f005c03f59b1f47ae4f7af43eedc2beba224 | [
"MIT"
] | null | null | null | #include "key.h"
KEY::KEY() {}
KEY::~KEY() {}
void KEY::reset()
{
keyState = 0xF0;
key[0] = 0x0F;
key[1] = 0x0F;
}
void KEY::setKeyState(u8 val)
{
keyState = 0xC0 + val&0x30;
}
void KEY::setKey(int keyset, u8 val)
{
key[keyset] &= val;
switch(keyset)
{
case 0:
{
if(keyState == ... | 12.720588 | 40 | 0.492486 | aydanh |
5eaa0740c8cf69e09bf8814854fdd7e38de5b338 | 1,069 | cpp | C++ | Engine/src/Graphic/Shader.cpp | LinMAD/Nibble | 65a8d12810335d832512812740f86bd8df14feb0 | [
"MIT"
] | null | null | null | Engine/src/Graphic/Shader.cpp | LinMAD/Nibble | 65a8d12810335d832512812740f86bd8df14feb0 | [
"MIT"
] | null | null | null | Engine/src/Graphic/Shader.cpp | LinMAD/Nibble | 65a8d12810335d832512812740f86bd8df14feb0 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Shader.h"
#include "OpenGL/GLShader.h"
#include "Renderer.h"
namespace Nibble {
std::shared_ptr<Shader> Shader::Create(
const std::string& name,
const std::string& vertexSrc,
const std::string& fragmentSrc
)
{
// TODO Implement from string shader creation
M_NIBBLE_ENG_ASSERT(fal... | 24.860465 | 77 | 0.726848 | LinMAD |
5eabd458c7939dc19caad301859cc8e2eb78df6f | 761 | cpp | C++ | 803b/main.cpp | hotpxl/code-forces | f63b1517a3d1a05f24f36d330936efb6086ce4cc | [
"MIT"
] | null | null | null | 803b/main.cpp | hotpxl/code-forces | f63b1517a3d1a05f24f36d330936efb6086ce4cc | [
"MIT"
] | null | null | null | 803b/main.cpp | hotpxl/code-forces | f63b1517a3d1a05f24f36d330936efb6086ce4cc | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <limits>
#include <numeric>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int* arr = new int[n]{};
int* dis = new int[n]{};
for (int i = 0; i < n... | 17.295455 | 40 | 0.477004 | hotpxl |
5eaf4006925e7c60991585723251ef7d8804f330 | 1,269 | cpp | C++ | libs/pika/threading/tests/unit/error_callback.cpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 13 | 2022-01-17T12:01:48.000Z | 2022-03-16T10:03:14.000Z | libs/pika/threading/tests/unit/error_callback.cpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 163 | 2022-01-17T17:36:45.000Z | 2022-03-31T17:42:57.000Z | libs/pika/threading/tests/unit/error_callback.cpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 4 | 2022-01-19T08:44:22.000Z | 2022-01-31T23:16:21.000Z | // Copyright (c) 2018 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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 <pika/init.hpp>
#include <pika/runtime.hpp>
#include <pika/testing.hpp>
#inc... | 24.403846 | 80 | 0.594169 | pika-org |
5eb09fac2117dfebf8d8b42d1e2781e74033cea2 | 1,015 | cc | C++ | bayes/tests/bayes_test.cc | jparr721/wasabi | 65504a9ecdd28f3b9ed5a0aee14e56586e37ab00 | [
"Apache-2.0"
] | null | null | null | bayes/tests/bayes_test.cc | jparr721/wasabi | 65504a9ecdd28f3b9ed5a0aee14e56586e37ab00 | [
"Apache-2.0"
] | null | null | null | bayes/tests/bayes_test.cc | jparr721/wasabi | 65504a9ecdd28f3b9ed5a0aee14e56586e37ab00 | [
"Apache-2.0"
] | null | null | null | #define BOOST_TEST_MODULE BayesTests
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MAIN
#include <bayes/bayes.h>
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <memory>
/* BOOST_AUTO_TEST_CASE(Constructor) { */
/* std::cout << "FUCK" << std::endl; */
/* const auto bayes = std::make_unique<wasa... | 29.852941 | 77 | 0.648276 | jparr721 |
5eb171225f662ea76ebf52ecba3bf446cb19caa2 | 2,938 | cpp | C++ | src/backend/graph_compiler/compiler_backend.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | src/backend/graph_compiler/compiler_backend.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | src/backend/graph_compiler/compiler_backend.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2021-2022 Intel Corporation
*
* 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://... | 35.829268 | 81 | 0.708305 | wuxun-zhang |
5eb4ca9d4b5c854b3c674ce8ac0f5c4864b7cfae | 3,605 | cpp | C++ | ABC/ABC130/C.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | 1 | 2021-06-01T17:13:44.000Z | 2021-06-01T17:13:44.000Z | ABC/ABC130/C.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | ABC/ABC130/C.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | //#include <cstdio>
//#include <cmath>
//#include <iostream>
//#include <sstream>
//#include <string>
//#include <vector>
//#include <map>
//#include <queue>
//#include <algorithm>
//
//#include <random>
//#include <chrono>
//
//#ifdef _DEBUG
//#define DMP(x) cerr << #x << ": " << x << "\n"
//#else
//#define DMP(x) ((v... | 25.034722 | 88 | 0.542302 | rajyan |
5eb8a825ef82b83df6f6a136250820b2d4fdeeb5 | 6,393 | cpp | C++ | dali-toolkit/internal/filters/spread-filter.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali-toolkit/internal/filters/spread-filter.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-10-19T15:47:43.000Z | 2020-10-19T15:47:43.000Z | dali-toolkit/internal/filters/spread-filter.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 29.734884 | 140 | 0.743626 | zyndor |
5ec10a5d188de4b05b33cd758c200c65b8e3e884 | 972 | cpp | C++ | tests/TestCounter.cpp | vvromanov/hilo_utils | 05aa70f6a70af5bc41a46a3488721721d7355bac | [
"MIT"
] | null | null | null | tests/TestCounter.cpp | vvromanov/hilo_utils | 05aa70f6a70af5bc41a46a3488721721d7355bac | [
"MIT"
] | null | null | null | tests/TestCounter.cpp | vvromanov/hilo_utils | 05aa70f6a70af5bc41a46a3488721721d7355bac | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <sstream>
#include "counters_base.h"
TEST(TestCounter, SetGet) {
counter_t v = 0;
Counter c;
c.Init(&v);
c.Set(10);
EXPECT_EQ(10, v);
}
TEST(TestCounter, Assign) {
counter_t v = 0;
Counter c;
c.Init(&v);
c=10;
EXPECT_EQ(10, v);
}
TEST(TestCoun... | 14.086957 | 34 | 0.542181 | vvromanov |
5ec1751bf10c957f953e90ed9e960ec281055392 | 1,864 | cpp | C++ | sdl1/rockbot/editor/dialog_pick_color.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/rockbot/editor/dialog_pick_color.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/rockbot/editor/dialog_pick_color.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | #include "dialog_pick_color.h"
#include "ui_dialog_pick_color.h"
#include <QPushButton>
#include "mediator.h"
dialog_pick_color::dialog_pick_color(QWidget *parent) :
QDialog(parent),
ui(new Ui::dialog_pick_color)
{
QPushButton* buttons[67];
ui->setupUi(this);
int column = 0;
int row = 0;
signalMa... | 29.125 | 354 | 0.694206 | pdpdds |
5ec2a6b6d9dae1380c45202f5880a1b55a928238 | 645 | cpp | C++ | Source/FactoryGame/Buildables/FGBuildableConverter.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | Source/FactoryGame/Buildables/FGBuildableConverter.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | Source/FactoryGame/Buildables/FGBuildableConverter.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | // This file has been automatically generated by the Unreal Header Implementation tool
#include "FGBuildableConverter.h"
AFGBuildableConverter::AFGBuildableConverter(){ }
void AFGBuildableConverter::BeginPlay(){ }
void AFGBuildableConverter::Factory_CollectInput_Implementation(){ }
void AFGBuildableConverter::SetUpIn... | 49.615385 | 118 | 0.821705 | iam-Legend |
5ec434008646821576e0d45a852c5e3c677dd83d | 197 | hh | C++ | include/hal/i2c.hh | no111u3/stm32cclib | 172087dab568f1452755df6e9f8624930fc10396 | [
"Apache-2.0"
] | 24 | 2018-04-26T20:06:31.000Z | 2022-03-19T18:45:57.000Z | include/hal/i2c.hh | no111u3/stm32cclib | 172087dab568f1452755df6e9f8624930fc10396 | [
"Apache-2.0"
] | null | null | null | include/hal/i2c.hh | no111u3/stm32cclib | 172087dab568f1452755df6e9f8624930fc10396 | [
"Apache-2.0"
] | 9 | 2018-01-22T11:40:53.000Z | 2022-03-23T20:03:19.000Z | #ifndef I2C_HH
#define I2C_HH
#if (defined(STM32F4XX) || defined(STM32L1XX))
#include "hal/common/i2c_common_t.hh"
#else
#include "hal/i2c_t.hh"
#endif
#include "hal/i2c_d.hh"
#endif // I2C_HH
| 15.153846 | 46 | 0.720812 | no111u3 |
5ec9177fe429ff4604aedb0e0728ffd092f9e1fa | 60 | hpp | C++ | test/pybind11/include/mylib.hpp | Trick-17/clang-build | 9830f4bc18f5a082bd88b310965e974493508eab | [
"MIT"
] | 8 | 2018-03-09T20:02:12.000Z | 2021-08-21T21:38:13.000Z | test/pybind11/include/mylib.hpp | Trick-17/clang-build | 9830f4bc18f5a082bd88b310965e974493508eab | [
"MIT"
] | 131 | 2018-03-09T20:40:30.000Z | 2022-02-16T23:20:59.000Z | test/pybind11/include/mylib.hpp | Trick-17/clang-build | 9830f4bc18f5a082bd88b310965e974493508eab | [
"MIT"
] | 3 | 2018-04-15T12:55:39.000Z | 2021-07-07T00:23:55.000Z | #pragma once
namespace mylib
{
float triple(float x);
} | 10 | 26 | 0.683333 | Trick-17 |
5ecf9338400ca2a27f8fa63da5dee1355c091df5 | 25 | cpp | C++ | lib/STD/Tuple.cpp | EnjoMitch/EnjoLib | 321167146657cba1497a9d3b4ffd71430f9b24b3 | [
"BSD-3-Clause"
] | 3 | 2021-06-14T15:36:46.000Z | 2022-02-28T15:16:08.000Z | lib/STD/Tuple.cpp | EnjoMitch/EnjoLib | 321167146657cba1497a9d3b4ffd71430f9b24b3 | [
"BSD-3-Clause"
] | 1 | 2021-07-17T07:52:15.000Z | 2021-07-17T07:52:15.000Z | lib/STD/Tuple.cpp | EnjoMitch/EnjoLib | 321167146657cba1497a9d3b4ffd71430f9b24b3 | [
"BSD-3-Clause"
] | 3 | 2021-07-12T14:52:38.000Z | 2021-11-28T17:10:33.000Z | #include <STD/Tuple.hpp>
| 12.5 | 24 | 0.72 | EnjoMitch |
5ecfbc7ec16460b5ab88dd98e8b71aebb61416d2 | 804 | hpp | C++ | Packt_CreatingGamesWithAI/PackmanLikeGame/PLG_GameObjects/PLG_Key/PLG_KeyController.hpp | mcihanozer/Hands-On-Game-AI-Development | 36453b678cfeb644aeeccf4e77069fa6531684d2 | [
"MIT"
] | 6 | 2018-12-04T04:39:42.000Z | 2022-03-01T09:36:39.000Z | Packt_CreatingGamesWithAI/PackmanLikeGame/PLG_GameObjects/PLG_Key/PLG_KeyController.hpp | mcihanozer/Hands-On-Game-AI-Development | 36453b678cfeb644aeeccf4e77069fa6531684d2 | [
"MIT"
] | 1 | 2019-07-25T19:52:35.000Z | 2019-07-25T19:52:35.000Z | Packt_CreatingGamesWithAI/PackmanLikeGame/PLG_GameObjects/PLG_Key/PLG_KeyController.hpp | PacktPublishing/Hands-On-Game-AI-Development | 27328e4658bfd1606abe51cc14a8adbe8c752d76 | [
"MIT"
] | 4 | 2018-11-08T09:29:02.000Z | 2020-05-09T21:21:28.000Z | //
// PLG_KeyController.hpp
// Packt_CreatingGamesWithAI
//
// Created by Cihan Ozer on 02/11/2018.
// Copyright © 2018 Cihan Ozer. All rights reserved.
//
#ifndef PLG_KeyController_hpp
#define PLG_KeyController_hpp
#include "GameCharacterController.hpp"
#include "PLG_Key.hpp"
class PLG_KeyController : public Ga... | 22.333333 | 66 | 0.725124 | mcihanozer |
5ed56742ee944e8816c175ccc44212ca722e25d1 | 2,326 | cpp | C++ | apps/Stencil2D_Naive/Stencil2DRowDecomposition.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | 3 | 2020-02-21T01:34:36.000Z | 2021-11-13T06:24:40.000Z | apps/Stencil2D_Naive/Stencil2DRowDecomposition.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | 1 | 2021-01-25T06:57:45.000Z | 2022-02-02T11:44:04.000Z | apps/Stencil2D_Naive/Stencil2DRowDecomposition.cpp | randres2011/DARTS | d3a0d28926b15796661783f91451dcd313905582 | [
"BSD-2-Clause"
] | 4 | 2016-12-12T05:46:58.000Z | 2022-01-01T16:08:56.000Z | #define __STDC_FORMAT_MACROS
#include <stdint.h>
#include "Stencil2DRowDecomposition.h"
#include "Stencil2DKernel.h"
//#include "Stencil2DPartition.h"
#include <math.h>
#include <inttypes.h>
void
Stencil2DRowLoop::fire(void)
{
LOAD_FRAME(Stencil2DRowDecomposition);
uint64_t nRowsCut = FRAME(nRowsCut);
double *In... | 34.205882 | 214 | 0.717541 | randres2011 |
5ed6dc545d71e2b611366e0dbbabb12bc9be2525 | 986 | cpp | C++ | QuantumGateCryptoLib/McEliece/mceliece8192128/mceliece8192128.cpp | Colorfingers/QuantumGate | e183e02464859f4ca486999182c4c41221f3261a | [
"MIT"
] | 87 | 2018-09-01T05:29:22.000Z | 2022-03-13T17:44:00.000Z | QuantumGateCryptoLib/McEliece/mceliece8192128/mceliece8192128.cpp | Colorfingers/QuantumGate | e183e02464859f4ca486999182c4c41221f3261a | [
"MIT"
] | 6 | 2019-01-30T14:48:17.000Z | 2022-03-14T21:10:56.000Z | QuantumGateCryptoLib/McEliece/mceliece8192128/mceliece8192128.cpp | Colorfingers/QuantumGate | e183e02464859f4ca486999182c4c41221f3261a | [
"MIT"
] | 16 | 2018-11-25T23:09:47.000Z | 2022-02-01T22:14:11.000Z | // This file is part of the QuantumGate project. For copyright and
// licensing information refer to the license file(s) in the project root.
#include "pch.h"
#include "mceliece8192128.h"
#include "ref\operations.h"
#include "vec\operations.h"
int crypto_kem_mceliece8192128_enc(unsigned char* c, unsigned char* key, c... | 28.171429 | 103 | 0.79716 | Colorfingers |
5ed7e6725e4d6c09454d3d332e5e8b5085dc1a97 | 792 | cpp | C++ | atcoder/ABC 200/B.cpp | ApocalypseMac/CP | b2db9aa5392a362dc0d979411788267ed9a5ff1d | [
"MIT"
] | null | null | null | atcoder/ABC 200/B.cpp | ApocalypseMac/CP | b2db9aa5392a362dc0d979411788267ed9a5ff1d | [
"MIT"
] | null | null | null | atcoder/ABC 200/B.cpp | ApocalypseMac/CP | b2db9aa5392a362dc0d979411788267ed9a5ff1d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds; //required
using namespace std;
template<typename T> using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define fast ios_base::sync_with_stdio(... | 26.4 | 117 | 0.57702 | ApocalypseMac |
5ed8f2ae635d5049add03dd7cc0acda92fbbe44a | 1,961 | cpp | C++ | libs/slam/src/slam/CMetricMapsAlignmentAlgorithm.cpp | feroze/mrpt-shivang | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | 2 | 2017-03-25T18:09:17.000Z | 2017-05-22T08:14:48.000Z | libs/slam/src/slam/CMetricMapsAlignmentAlgorithm.cpp | feroze/mrpt-shivang | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | null | null | null | libs/slam/src/slam/CMetricMapsAlignmentAlgorithm.cpp | feroze/mrpt-shivang | 95bf524c5e10ed2e622bd199f1b0597951b45370 | [
"BSD-3-Clause"
] | 1 | 2018-07-29T09:40:46.000Z | 2018-07-29T09:40:46.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 37 | 83 | 0.484957 | feroze |
5eda598fa76cd28af40fe3bda0016fa9ea2698ee | 1,746 | cpp | C++ | Week 5/LeftRecursion.cpp | ComputerScientist-01/Compiler-Design | 67bcff5e2ba6b2c27d08d357a47d1be31ca50e84 | [
"MIT"
] | 4 | 2022-03-03T08:56:18.000Z | 2022-03-11T12:08:23.000Z | Week 5/LeftRecursion.cpp | ComputerScientist-01/Compiler-Design | 67bcff5e2ba6b2c27d08d357a47d1be31ca50e84 | [
"MIT"
] | null | null | null | Week 5/LeftRecursion.cpp | ComputerScientist-01/Compiler-Design | 67bcff5e2ba6b2c27d08d357a47d1be31ca50e84 | [
"MIT"
] | 4 | 2022-02-07T07:22:17.000Z | 2022-03-10T20:01:56.000Z | #include <iostream>
#include <string>
using namespace std;
int main()
{
int n, j, l, i, k;
int length[10] = {};
string d, a, b, flag;
char c;
cout << "Enter Parent Non-Terminal: ";
cin >> c;
d.push_back(c);
a += d + "\'->";
d += "->";
b += d;
cout << "Enter productions: ";
... | 22.675325 | 55 | 0.294387 | ComputerScientist-01 |
5ee2ecf22c87db5f931c0f0c77040226cc3cdfa5 | 5,743 | cpp | C++ | Editor/Sources/o2Editor/Core/Properties/IPropertyField.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Editor/Sources/o2Editor/Core/Properties/IPropertyField.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Editor/Sources/o2Editor/Core/Properties/IPropertyField.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2Editor/stdafx.h"
#include "IPropertyField.h"
#include "o2/Scene/UI/UIManager.h"
#include "o2/Scene/UI/Widget.h"
#include "o2/Scene/UI/WidgetLayout.h"
#include "o2/Scene/UI/WidgetState.h"
#include "o2/Scene/UI/Widgets/Button.h"
#include "o2/Scene/UI/Widgets/Label.h"
#include "o2Editor/Core/Properties/Proper... | 22.972 | 108 | 0.720355 | zenkovich |
5ee4602fe41489d1dfba862b4c1095f76e2768d7 | 4,500 | cc | C++ | src/clustering/table_manager/server_name_cache_updater.cc | rethinkdb/rethinkdb-legacy | e9c37045b46a94a1c918eacf73cdab945a10601d | [
"Apache-2.0"
] | 64 | 2018-09-27T04:30:36.000Z | 2019-02-03T12:53:01.000Z | src/clustering/table_manager/server_name_cache_updater.cc | rethinkdb/rethinkdb-legacy | e9c37045b46a94a1c918eacf73cdab945a10601d | [
"Apache-2.0"
] | 10 | 2018-09-27T14:36:01.000Z | 2019-01-29T12:59:39.000Z | src/clustering/table_manager/server_name_cache_updater.cc | rethinkdb/rethinkdb-legacy | e9c37045b46a94a1c918eacf73cdab945a10601d | [
"Apache-2.0"
] | 10 | 2018-10-05T11:42:18.000Z | 2019-02-04T02:35:31.000Z | // Copyright 2010-2015 RethinkDB, all rights reserved.
#include "clustering/table_manager/server_name_cache_updater.hpp"
#include "clustering/generic/raft_core.tcc"
#include "clustering/table_contract/contract_metadata.hpp"
server_name_cache_updater_t::server_name_cache_updater_t(
raft_member_t<table_raft_st... | 39.473684 | 89 | 0.630222 | rethinkdb |
5ee48f061fbdace85d096abb232df3c589abc4d8 | 3,337 | cpp | C++ | mptrack/scripting/ScriptManager.cpp | sagamusix/openmpt | 6d56d9a31d99c7f9a1f024d3deeb69006117e55c | [
"BSD-3-Clause"
] | null | null | null | mptrack/scripting/ScriptManager.cpp | sagamusix/openmpt | 6d56d9a31d99c7f9a1f024d3deeb69006117e55c | [
"BSD-3-Clause"
] | null | null | null | mptrack/scripting/ScriptManager.cpp | sagamusix/openmpt | 6d56d9a31d99c7f9a1f024d3deeb69006117e55c | [
"BSD-3-Clause"
] | null | null | null | /*
* ScriptManager.cpp
* -----------------
* Purpose: Handles instances of scripting VMs and script packages.
* Notes : (currently none)
* Authors: OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#include "ScriptManager.h"
#includ... | 20.224242 | 98 | 0.706023 | sagamusix |
5ee4dfb40b642cf09a1a42d62c3294a3547cda35 | 10,437 | inl | C++ | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Animation/Animation/Animation/SplineCompressed/hkaSplineCompressedAnimation.inl | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Animation/Animation/Animation/SplineCompressed/hkaSplineCompressedAnimation.inl | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Animation/Animation/Animation/SplineCompressed/hkaSplineCompressedAnimation.inl | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... | 38.655556 | 256 | 0.73958 | aditgoyal19 |
5ee61ce0779b71b295712e882e268308a27b496a | 984 | cpp | C++ | 912.sort-an-array.cpp | YouChenLiu/leetcode | 470954126ef316feab8c4c30e791535aeec56418 | [
"Unlicense"
] | 1 | 2021-03-22T07:43:26.000Z | 2021-03-22T07:43:26.000Z | 912.sort-an-array.cpp | YouChenLiu/leetcode | 470954126ef316feab8c4c30e791535aeec56418 | [
"Unlicense"
] | null | null | null | 912.sort-an-array.cpp | YouChenLiu/leetcode | 470954126ef316feab8c4c30e791535aeec56418 | [
"Unlicense"
] | null | null | null | /*
* @lc app=leetcode id=912 lang=cpp
*
* [912] Sort an Array
*/
// @lc code=start
#include <vector>
using namespace std;
class Solution {
public:
void swap(int &lhs, int &rhs) {
const auto tmp = lhs;
lhs = rhs;
rhs = tmp;
}
int partition(std::vector<int> &arr, int l, int r, int pivot) {
co... | 20.5 | 65 | 0.537602 | YouChenLiu |
5ee6ed7ea0fe95057300234a60a3c34fe30f10ab | 2,220 | cpp | C++ | test/Demos/MPRMinimal/main.cpp | RWTHmediTEC/CarnaQt | e805e4cf9027d06fcadb9189abe40e697358079a | [
"BSD-3-Clause"
] | null | null | null | test/Demos/MPRMinimal/main.cpp | RWTHmediTEC/CarnaQt | e805e4cf9027d06fcadb9189abe40e697358079a | [
"BSD-3-Clause"
] | null | null | null | test/Demos/MPRMinimal/main.cpp | RWTHmediTEC/CarnaQt | e805e4cf9027d06fcadb9189abe40e697358079a | [
"BSD-3-Clause"
] | null | null | null | //! [mpr_includes]
#include <Carna/qt/Application.h>
#include <Carna/qt/MPR.h>
#include <Carna/qt/MPRDisplay.h>
#include <Carna/base/Color.h>
//! [mpr_includes]
#include <TestScene.h>
// ----------------------------------------------------------------------------------
// main
// ------------------------------------... | 28.461538 | 94 | 0.590991 | RWTHmediTEC |
5eeabdbd81af20b5ac0ee35519808fb18ce28bac | 1,009 | cpp | C++ | Tankerfield/Tankerfield/Obj_HealingAnimation.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 7 | 2019-03-11T11:31:36.000Z | 2019-05-18T08:03:35.000Z | Tankerfield/Tankerfield/Obj_HealingAnimation.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 86 | 2019-03-27T14:36:16.000Z | 2019-06-10T18:43:52.000Z | Tankerfield/Tankerfield/Obj_HealingAnimation.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 1 | 2019-09-10T17:37:44.000Z | 2019-09-10T17:37:44.000Z | #include <list>
//#include "Brofiler/Brofiler.h"
#include "App.h"
#include "Object.h"
#include "M_ObjManager.h"
#include "M_Render.h"
#include "M_Scene.h"
#include "M_Pathfinding.h"
#include "Log.h"
#include "M_Collision.h"
#include "M_Map.h"
#include "Obj_HealingAnimation.h"
#include "Animation.h"
#include "M_Animat... | 19.784314 | 93 | 0.716551 | gamificalostudio |
5eeaf36ee035534eba402133c45df95b4e72b7f6 | 1,154 | cpp | C++ | 1461C.cpp | JiangWeibeta/Answers-to-Codeforces-Problems | f258ed0d441f587551ae0fc55215dca189a9dcef | [
"Apache-2.0"
] | 1 | 2021-10-30T02:17:29.000Z | 2021-10-30T02:17:29.000Z | 1461C.cpp | JiangWeibeta/Answers-to-codeforces-problemset | f258ed0d441f587551ae0fc55215dca189a9dcef | [
"Apache-2.0"
] | null | null | null | 1461C.cpp | JiangWeibeta/Answers-to-codeforces-problemset | f258ed0d441f587551ae0fc55215dca189a9dcef | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int t = 0;
cin >> t;
while (t--)
{
int n = 0, m = 0;
cin >> n >> m;
vector<int> arr(n);
vector<int> tmp(n);
for (int i = 0; i < n; i++)
{
... | 20.981818 | 56 | 0.333622 | JiangWeibeta |
5eee98b0434ae884ed6e5d0dd23e121fb57bedd9 | 14,717 | cpp | C++ | demo/demo-dsa.cpp | ipab-slmc/SDHLibrary-CPP | 0217d4edf82f34292750240bd7a3d9c63feb7e33 | [
"Apache-2.0"
] | 2 | 2021-11-12T09:28:45.000Z | 2021-12-22T09:09:31.000Z | demo/demo-dsa.cpp | ipab-slmc/SDHLibrary-CPP | 0217d4edf82f34292750240bd7a3d9c63feb7e33 | [
"Apache-2.0"
] | null | null | null | demo/demo-dsa.cpp | ipab-slmc/SDHLibrary-CPP | 0217d4edf82f34292750240bd7a3d9c63feb7e33 | [
"Apache-2.0"
] | 2 | 2019-05-02T20:03:29.000Z | 2019-06-24T14:50:42.000Z | //======================================================================
/*!
\addtogroup sdh_library_cpp_demo_programs_group
@{
*/
/*!
\file
\section sdhlibrary_cpp_demo_dsa_cpp_general General file information
\author Dirk Osswald, Winfried Baum (IPA)
\date 2008-06-12
\brief
Simple ... | 36.51861 | 210 | 0.496704 | ipab-slmc |
d6742929cca47b21b1c109fe03683d3e99748f73 | 653 | cpp | C++ | tests/bad_any_cast/bad_any_cast_fwd.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 11 | 2021-03-15T07:06:21.000Z | 2021-09-27T13:54:25.000Z | tests/bad_any_cast/bad_any_cast_fwd.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | null | null | null | tests/bad_any_cast/bad_any_cast_fwd.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 1 | 2021-06-24T10:46:46.000Z | 2021-06-24T10:46:46.000Z | #include "tests/bad_any_cast/bad_any_cast_fwd.hpp"
#ifdef STDFWD_IS_CPP17
#if __has_include(<any>)
#include <any>
#endif
#endif
//------------------------------------------------------------------------------
namespace bad_any_cast_tests {
//----------------------------------------------------------------------... | 20.40625 | 80 | 0.37366 | olegpublicprofile |
d677e883df0b1e5d9413c86ffce7f077032290d2 | 729 | hpp | C++ | android-31/android/os/RemoteException.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/os/RemoteException.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/os/RemoteException.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../util/AndroidException.hpp"
namespace java::lang
{
class RuntimeException;
}
class JString;
namespace android::os
{
class RemoteException : public android::util::AndroidException
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit RemoteException(const ch... | 22.78125 | 180 | 0.729767 | YJBeetle |
d681e38ca3b25597dd5ca92147b97d2571d4e2fa | 1,664 | cpp | C++ | SimSpark/spark/lib/oxygen/simulationserver/netcontrol_c.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/spark/lib/oxygen/simulationserver/netcontrol_c.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/spark/lib/oxygen/simulationserver/netcontrol_c.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
this file is part of rcssserver3D
Fri May 9 2003
Copyright (C) 2003 Koblenz University
$Id$
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the F... | 25.212121 | 71 | 0.701923 | IllyasvielEin |
d6828fa7e141f30d488f4704d3860e6901da62a5 | 142 | cpp | C++ | RECURSION/never ending recursion.cpp | ghostumar/DSA | ca8ca00d1c2cb132c46ace68f862c09883491f3c | [
"Apache-2.0"
] | null | null | null | RECURSION/never ending recursion.cpp | ghostumar/DSA | ca8ca00d1c2cb132c46ace68f862c09883491f3c | [
"Apache-2.0"
] | null | null | null | RECURSION/never ending recursion.cpp | ghostumar/DSA | ca8ca00d1c2cb132c46ace68f862c09883491f3c | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
void fun1(){
cout<<"never ending umar"<<endl;
fun1();
}
int main(){
fun1();
return 0;
}
| 12.909091 | 34 | 0.598592 | ghostumar |
d685892071351fba30146b09ab9dbe9e848acff4 | 4,451 | cpp | C++ | UnitTests/unittest.cpp | edwig/QLLanguage | 330c0e9e25e189215c68daf92a6a1b8515d5374d | [
"MIT"
] | 2 | 2017-11-25T18:49:04.000Z | 2019-09-24T10:44:45.000Z | UnitTests/unittest.cpp | edwig/QLLanguage | 330c0e9e25e189215c68daf92a6a1b8515d5374d | [
"MIT"
] | null | null | null | UnitTests/unittest.cpp | edwig/QLLanguage | 330c0e9e25e189215c68daf92a6a1b8515d5374d | [
"MIT"
] | 3 | 2019-09-02T12:33:43.000Z | 2022-03-08T09:36:21.000Z | #include "stdafx.h"
#include "RunRedirect.h"
#include "CppUnitTest.h"
#include <direct.h>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTests
{
TEST_CLASS(UnitTest)
{
public:
TEST_METHOD(test_add)
{
DoTheTest("test_add");
}
TEST_METHOD(test_array)
{
Do... | 19.60793 | 84 | 0.594922 | edwig |
d68c50c01b2eb5e483c2a72f6e2ff293fb1c76f9 | 894 | cpp | C++ | examples/example1.cpp | maxy-v/value_slider | f9e912795f3e18d31c8cc5be08b70e4ff90bce21 | [
"MIT"
] | null | null | null | examples/example1.cpp | maxy-v/value_slider | f9e912795f3e18d31c8cc5be08b70e4ff90bce21 | [
"MIT"
] | null | null | null | examples/example1.cpp | maxy-v/value_slider | f9e912795f3e18d31c8cc5be08b70e4ff90bce21 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cassert>
#include <vector>
#include "../ValueSlider.h"
using TestFunction = void (*)();
void test1()
{
ValueSlider<double> s{0.5, 1.0, 1.1};
assert( s.value() == 1.0 );
assert( s.prev() );
assert( s.value() == 0.5 );
assert( !s.prev() );
assert(... | 19.434783 | 59 | 0.529083 | maxy-v |
d68df1a9bdcbc4697d6ee6f2df3a771721ec1d91 | 830 | hpp | C++ | dependencies/osi_clp/Osi/src/Osi/OsiCollections.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 90 | 2019-05-19T03:48:23.000Z | 2022-02-02T15:20:49.000Z | dependencies/osi_clp/Osi/src/Osi/OsiCollections.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 11 | 2019-05-22T07:45:46.000Z | 2021-05-20T01:48:26.000Z | dependencies/osi_clp/Osi/src/Osi/OsiCollections.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 18 | 2019-05-19T03:48:32.000Z | 2021-05-29T18:19:16.000Z | // Copyright (C) 2000, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifndef OsiCollections_H
#define OsiCollections_H
#include <vector>
//Forward declarations
class OsiColCut;
class OsiRowCut;
class OsiC... | 23.055556 | 78 | 0.753012 | zyxrrr |
d68ef98ed53345bf49153c35c129eb9cfafbfad1 | 1,239 | hpp | C++ | libs/renderer/include/sge/renderer/vf/vertex_impl.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/vf/vertex_impl.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/vf/vertex_impl.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_VF_VERTEX_IMPL_HPP_INCLUDED
#define SGE_RENDERER_VF_VERTEX_IMPL_HPP_INCLUDED
... | 30.219512 | 98 | 0.736885 | cpreh |
d68f558a7c3e332f949ceefa013090ea9abdaabe | 966 | cpp | C++ | Part_Eight/Basics.cpp | ayushpareek179/CPP-course | b2b8b8d2dd06cd772e3c9838abd5b841237bb306 | [
"MIT"
] | null | null | null | Part_Eight/Basics.cpp | ayushpareek179/CPP-course | b2b8b8d2dd06cd772e3c9838abd5b841237bb306 | [
"MIT"
] | null | null | null | Part_Eight/Basics.cpp | ayushpareek179/CPP-course | b2b8b8d2dd06cd772e3c9838abd5b841237bb306 | [
"MIT"
] | null | null | null | //To demonstrate the basics of C++ arrays
#include <iostream>
using namespace std;
//Terribly coded as a single block - old school monolith
int main()
{
cout<<"Initialize arrays as:\nDataType ArrayName[size] = {..List of values..}\n";
int a[4] = {93,-62,117,-119};
cout<<"Display the array effortlessly using... | 37.153846 | 98 | 0.635611 | ayushpareek179 |
d695535a514bbaee2fdaed6e573bc0e61018a59d | 1,894 | hpp | C++ | contrib/autoboost/autoboost/concept/assert.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/concept/assert.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/concept/assert.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // Copyright David Abrahams 2006. 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 AUTOBOOST_CONCEPT_ASSERT_DWA2006430_HPP
# define AUTOBOOST_CONCEPT_ASSERT_DWA2006430_HPP
# include <autoboost/config.hpp>
# ... | 41.173913 | 91 | 0.703801 | CaseyCarter |
d69c0557265de5d3b57a673b19640b57db58536e | 1,703 | hpp | C++ | src/providers/twitch/TwitchUser.hpp | devolution2409/chatterino2 | 978931bcfc40bae63f65c18e7a3274c77c0f45ca | [
"MIT"
] | null | null | null | src/providers/twitch/TwitchUser.hpp | devolution2409/chatterino2 | 978931bcfc40bae63f65c18e7a3274c77c0f45ca | [
"MIT"
] | null | null | null | src/providers/twitch/TwitchUser.hpp | devolution2409/chatterino2 | 978931bcfc40bae63f65c18e7a3274c77c0f45ca | [
"MIT"
] | null | null | null | #pragma once
#include "util/RapidjsonHelpers.hpp"
#include <rapidjson/document.h>
#include <QString>
#include <pajlada/settings/serialize.hpp>
#include <cassert>
namespace chatterino {
struct TwitchUser {
QString id;
mutable QString name;
mutable QString displayName;
void update(const TwitchUser &... | 22.706667 | 91 | 0.611861 | devolution2409 |
d6a039bfff5be319faca215c3ec70f31fad95f6b | 1,141 | cpp | C++ | src/applications/tests/performance_tests/aggregate_bandwidth.cpp | AahilA/derecho | 18ea3d4ff1047bf267d8a4cd6edab16517ab5dbd | [
"BSD-3-Clause"
] | 50 | 2016-12-15T19:36:52.000Z | 2019-03-27T21:21:10.000Z | src/applications/tests/performance_tests/aggregate_bandwidth.cpp | AahilA/derecho | 18ea3d4ff1047bf267d8a4cd6edab16517ab5dbd | [
"BSD-3-Clause"
] | 111 | 2017-07-21T17:16:26.000Z | 2019-04-02T19:40:14.000Z | src/applications/tests/performance_tests/aggregate_bandwidth.cpp | AahilA/derecho | 18ea3d4ff1047bf267d8a4cd6edab16517ab5dbd | [
"BSD-3-Clause"
] | 26 | 2017-01-26T14:36:06.000Z | 2019-02-01T16:36:57.000Z | #include <fstream>
#include "aggregate_bandwidth.hpp"
double aggregate_bandwidth(std::vector<uint32_t> members, uint32_t node_id,
double bw) {
OneResultSST sst(sst::SSTParams(members, node_id));
sst.bw[sst.get_local_index()] = bw;
sst.put();
sst.sync_with_members();
doub... | 33.558824 | 94 | 0.617879 | AahilA |
d6a0f5c89106f23eaf9227aebf2e0359898f9f68 | 2,591 | cpp | C++ | POJ/1222/enumeration.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | POJ/1222/enumeration.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | POJ/1222/enumeration.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | // POJ - 1222
// Enumeration!
// We only need to enumerate the first row,
// because the rest of the rows will be decided by the first row.
// The goal of operating the (n+1)th row is to make the (n)th row all 0.
// Then at last we check if the last row is all 0.
#include <iostream>
#include <cstring>
using namespace... | 22.72807 | 72 | 0.355075 | codgician |
d6a152fdf17188f42a86d0c0edfe97b6bf194fdb | 585 | cpp | C++ | LibMathematics/Algebra/Wm5Matrix4.cpp | CRIMSONCardiovascularModelling/WildMagic5 | fcf549bfb99a5c4b3d6ffbff18aabdc1a4e9085c | [
"BSL-1.0"
] | 4 | 2021-01-25T04:26:01.000Z | 2021-10-30T14:16:34.000Z | LibMathematics/Algebra/Wm5Matrix4.cpp | CRIMSONCardiovascularModelling/WildMagic5 | fcf549bfb99a5c4b3d6ffbff18aabdc1a4e9085c | [
"BSL-1.0"
] | null | null | null | LibMathematics/Algebra/Wm5Matrix4.cpp | CRIMSONCardiovascularModelling/WildMagic5 | fcf549bfb99a5c4b3d6ffbff18aabdc1a4e9085c | [
"BSL-1.0"
] | 2 | 2021-11-05T01:11:48.000Z | 2021-11-05T01:12:03.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2014
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 5.0.0 (2010/01/01)
#include "Wm5MathematicsPCH.h"
#include "Wm5Matrix4.h"
namespac... | 29.25 | 66 | 0.740171 | CRIMSONCardiovascularModelling |
d6b40cfe18da4fe5500c7ad5a2855442e00ecac8 | 726 | cpp | C++ | cpp/AsyncError.cpp | bitflip-software/xlsx-util | 5e9292a67dffc390623e40284da4ab7db403d593 | [
"MIT"
] | null | null | null | cpp/AsyncError.cpp | bitflip-software/xlsx-util | 5e9292a67dffc390623e40284da4ab7db403d593 | [
"MIT"
] | null | null | null | cpp/AsyncError.cpp | bitflip-software/xlsx-util | 5e9292a67dffc390623e40284da4ab7db403d593 | [
"MIT"
] | null | null | null | #include "AsyncError.h"
namespace xlsx
{
AsyncError::AsyncError( const Napi::Function& callback, const std::string& message )
: Napi::AsyncWorker{ callback }
, myMessage{ message }
{
}
void
AsyncError::Execute()
{
// do nothing, we will send an error OnOK
}
void
... | 20.166667 | 90 | 0.564738 | bitflip-software |
d6b85888f12ff375d0f5b85a74ce8a48294d320a | 674 | cpp | C++ | utilities/src/math.cpp | lucabonamini/PaC | 3a4e3a865e2fc1005c0b5316393081627b6d9762 | [
"MIT"
] | null | null | null | utilities/src/math.cpp | lucabonamini/PaC | 3a4e3a865e2fc1005c0b5316393081627b6d9762 | [
"MIT"
] | null | null | null | utilities/src/math.cpp | lucabonamini/PaC | 3a4e3a865e2fc1005c0b5316393081627b6d9762 | [
"MIT"
] | null | null | null | #include "utilities/math.h"
#include <limits>
#include <memory>
namespace utilities::math {
void findClosestIndex(int &index,
const types::Point &point,
const types::Path &path) {
double closest_distance = std::numeric_limits<double>::max();
for (size_t i = index; i < pa... | 32.095238 | 63 | 0.620178 | lucabonamini |
d6bb8c852f29c24cbaed9e8877ed157633ec212f | 457 | cpp | C++ | Hackerrank/Divisible Sum Pairs.cpp | SurgicalSteel/Competitive-Programming | 3662b676de94796f717b25dc8d1b93c6851fb274 | [
"MIT"
] | 14 | 2016-02-11T09:26:13.000Z | 2022-03-27T01:14:29.000Z | Hackerrank/Divisible Sum Pairs.cpp | SurgicalSteel/Competitive-Programming | 3662b676de94796f717b25dc8d1b93c6851fb274 | [
"MIT"
] | null | null | null | Hackerrank/Divisible Sum Pairs.cpp | SurgicalSteel/Competitive-Programming | 3662b676de94796f717b25dc8d1b93c6851fb274 | [
"MIT"
] | 7 | 2016-10-25T19:29:35.000Z | 2021-12-05T18:31:39.000Z | #include <bits/stdc++.h>
#define psb push_back
using namespace std;
int main() {
int n,k,t,ctr=0;
vector<int> vi;
scanf("%d %d",&n,&k);
for(int i=0;i<n;i++)
{
scanf("%d",&t);
vi.psb(t);
}
for(int i=0;i<n-1;i++)
{
for(int j=1;j<n;j++)
{
if(i!=j&... | 17.576923 | 45 | 0.371991 | SurgicalSteel |
d6bbb3257b0ba5ef846b9788087e262b8d41c4ab | 47 | hpp | C++ | src/boost_polygon_rectangle_concept.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_polygon_rectangle_concept.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_polygon_rectangle_concept.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/polygon/rectangle_concept.hpp>
| 23.5 | 46 | 0.829787 | miathedev |
d6bc948f08a44a0f3b005f65272a19df5d1b3986 | 13,106 | cpp | C++ | contrib/opensigcomp/src/CompartmentMap.cpp | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 1 | 2019-04-15T14:10:58.000Z | 2019-04-15T14:10:58.000Z | contrib/opensigcomp/src/CompartmentMap.cpp | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | null | null | null | contrib/opensigcomp/src/CompartmentMap.cpp | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 2 | 2019-10-31T09:11:09.000Z | 2021-09-17T01:00:49.000Z | /* ***********************************************************************
Open SigComp -- Implementation of RFC 3320 Signaling Compression
Copyright 2005 Estacado Systems, LLC
Your use of this code is governed by the license under which it
has been provided to you. Unless you have a written and signed
... | 26.264529 | 80 | 0.625897 | dulton |
d6bded829b1b241916b3fb1c2741657f2cb72eef | 1,567 | cpp | C++ | examples/example_peripheral.cpp | MCJack123/craftos2 | 7ca6dacdd05c5889bf304b6998bb752bcab1c066 | [
"MIT"
] | 93 | 2019-09-02T02:38:37.000Z | 2022-03-30T20:04:45.000Z | examples/example_peripheral.cpp | MCJack123/craftos2 | 7ca6dacdd05c5889bf304b6998bb752bcab1c066 | [
"MIT"
] | 214 | 2019-08-06T18:04:00.000Z | 2022-03-29T14:38:14.000Z | examples/example_peripheral.cpp | MCJack123/craftos2 | 7ca6dacdd05c5889bf304b6998bb752bcab1c066 | [
"MIT"
] | 8 | 2019-10-21T13:23:57.000Z | 2022-03-02T03:16:55.000Z | extern "C" {
#include <lua.h>
#include <lauxlib.h>
}
#include <CraftOS-PC.hpp>
class example_peripheral: public peripheral {
int add(lua_State *L) {
lua_pushnumber(L, luaL_checknumber(L, 1) + luaL_checknumber(L, 2));
return 1;
}
int subtract(lua_State *L) {
lua_pushnumber(L, luaL_ch... | 28.490909 | 103 | 0.64582 | MCJack123 |
d6c3909aa22ba11b910fd311aa8fc1020e170868 | 37,097 | cpp | C++ | src/debugUtil.cpp | pachterlab/bam2tcc | 5580022369c0cc9d245f18ae14662ad821a13286 | [
"BSD-2-Clause"
] | 7 | 2018-10-15T18:19:36.000Z | 2018-11-27T21:48:13.000Z | src/debugUtil.cpp | kkapuria3/bam2tcc | 5580022369c0cc9d245f18ae14662ad821a13286 | [
"BSD-2-Clause"
] | 1 | 2019-07-16T14:59:58.000Z | 2019-07-16T14:59:58.000Z | src/debugUtil.cpp | kkapuria3/bam2tcc | 5580022369c0cc9d245f18ae14662ad821a13286 | [
"BSD-2-Clause"
] | 2 | 2018-10-24T20:20:58.000Z | 2018-10-28T18:55:01.000Z | #include <fstream>
#include <iostream>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include "common.hpp"
#include "FileUtil.hpp"
#include "TCC_Matrix.hpp"
using namespace std;
#define TRANSCRIPT_NAME_START_CHAR '>'
#define TRANSCRIPT_NAME_END_CHAR ' '
int no_zeros(string inname, string outname) ... | 30.08678 | 88 | 0.473003 | pachterlab |
d6c44981972e706674880b8cc6823e0db4cd76eb | 359,970 | cpp | C++ | src/parser/ds_parser.cpp | cvzakharchenko/daScript | 0653642a02b3de3982d300e48f855c67e8aaa5c8 | [
"BSD-3-Clause"
] | null | null | null | src/parser/ds_parser.cpp | cvzakharchenko/daScript | 0653642a02b3de3982d300e48f855c67e8aaa5c8 | [
"BSD-3-Clause"
] | null | null | null | src/parser/ds_parser.cpp | cvzakharchenko/daScript | 0653642a02b3de3982d300e48f855c67e8aaa5c8 | [
"BSD-3-Clause"
] | null | null | null | /* A Bison parser, made by GNU Bison 3.4.1. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License a... | 39.358189 | 186 | 0.461561 | cvzakharchenko |
d6c8ff4f2129d7fdbac954f74ba832a58a8bfb90 | 5,690 | hpp | C++ | arbor/include/arbor/cable_cell.hpp | 8Stefan/arbor | 89a4fc4335fe433af6758db84990a08ae5a8e3b2 | [
"BSD-3-Clause"
] | null | null | null | arbor/include/arbor/cable_cell.hpp | 8Stefan/arbor | 89a4fc4335fe433af6758db84990a08ae5a8e3b2 | [
"BSD-3-Clause"
] | null | null | null | arbor/include/arbor/cable_cell.hpp | 8Stefan/arbor | 89a4fc4335fe433af6758db84990a08ae5a8e3b2 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <unordered_map>
#include <string>
#include <vector>
#include <arbor/arbexcept.hpp>
#include <arbor/cable_cell_param.hpp>
#include <arbor/common_types.hpp>
#include <arbor/constants.hpp>
#include <arbor/mechcat.hpp>
#include <arbor/morph/label_dict.hpp>
#include <arbor/morph/morphology.hpp>
#inc... | 29.635417 | 82 | 0.70123 | 8Stefan |
d6cea4ac54436920299c5d94e967d74a58b59e00 | 9,371 | cpp | C++ | src/lib/group_actions/induced_actions/action_on_grassmannian.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/group_actions/induced_actions/action_on_grassmannian.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/group_actions/induced_actions/action_on_grassmannian.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // action_on_grassmannian.cpp
//
// Anton Betten
// July 20, 2009
#include "foundations/foundations.h"
#include "group_actions.h"
using namespace std;
namespace orbiter {
namespace group_actions {
action_on_grassmannian::action_on_grassmannian()
{
null();
}
action_on_grassmannian::~action_on_grassmannian()
{
fr... | 23.310945 | 85 | 0.648597 | abetten |
d6d1207afd8fa9fbaf85221b78e3b7af3c07b9bc | 1,697 | cpp | C++ | lib/LuaTypeMap.cpp | indie-zen-plugins/ZLua | 6fff6e889a27152ed85b0c0c0786e6b8706f2247 | [
"MIT"
] | null | null | null | lib/LuaTypeMap.cpp | indie-zen-plugins/ZLua | 6fff6e889a27152ed85b0c0c0786e6b8706f2247 | [
"MIT"
] | null | null | null | lib/LuaTypeMap.cpp | indie-zen-plugins/ZLua | 6fff6e889a27152ed85b0c0c0786e6b8706f2247 | [
"MIT"
] | null | null | null | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// Zen Gaem Engine Framework
//
// Copyright (C) 2001 - 2016 Raymond A. Richards
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
#include "LuaTypeMap.hpp"
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-... | 28.283333 | 81 | 0.362994 | indie-zen-plugins |
d6d5b1d40d849ee8ba057769112cf1b9f1c81d11 | 160 | cpp | C++ | ParamedicCommander.cpp | snir1551/Ex7_C- | bbfb91ddee016b4f729359f5e50038e2267a795e | [
"MIT"
] | 1 | 2021-05-31T13:11:04.000Z | 2021-05-31T13:11:04.000Z | ParamedicCommander.cpp | snir1551/Ex7_C- | bbfb91ddee016b4f729359f5e50038e2267a795e | [
"MIT"
] | null | null | null | ParamedicCommander.cpp | snir1551/Ex7_C- | bbfb91ddee016b4f729359f5e50038e2267a795e | [
"MIT"
] | null | null | null | #include "ParamedicCommander.hpp"
namespace WarGame {
ParamedicCommander::ParamedicCommander(int numPlayer): Soldier(numPlayer,100,0)
{
}
} | 22.857143 | 83 | 0.7 | snir1551 |
d6d653f14fdc1b064c96d9e09d9f79cf054ec513 | 638 | cc | C++ | src/rime/ticket.cc | mengzhisuoliu/librime | 9eeeffcc0fa24d9dbfd6d58f936eb9fe60be3e70 | [
"BSD-3-Clause"
] | 2,326 | 2015-01-26T13:34:46.000Z | 2022-03-30T06:53:47.000Z | src/rime/ticket.cc | ztl8702/librime | 56f1267fac5662b8e05efbb73db9d8f6a384cbc2 | [
"BSD-3-Clause"
] | 440 | 2015-01-26T12:29:17.000Z | 2022-03-31T13:21:59.000Z | src/rime/ticket.cc | ztl8702/librime | 56f1267fac5662b8e05efbb73db9d8f6a384cbc2 | [
"BSD-3-Clause"
] | 491 | 2015-01-24T17:58:21.000Z | 2022-03-27T21:17:37.000Z | //
// Copyright RIME Developers
// Distributed under the BSD License
//
// 2013-10-28 GONG Chen <chen.sst@gmail.com>
//
#include <rime/engine.h>
#include <rime/ticket.h>
namespace rime {
Ticket::Ticket(Schema* s, const string& ns)
: schema(s), name_space(ns) {
}
Ticket::Ticket(Engine* e, const string& ns,
... | 21.266667 | 45 | 0.628527 | mengzhisuoliu |
d6de7181f56d2ec9cf69769fd01c4d8ba8eee219 | 6,668 | hpp | C++ | src/gui/vlGLFW/GLFWWindow.hpp | pasenau/VisualizationLibrary | 2fcf1808475aebd4862f40377754be62a7f77a52 | [
"BSD-2-Clause"
] | 1 | 2017-06-29T18:25:11.000Z | 2017-06-29T18:25:11.000Z | src/gui/vlGLFW/GLFWWindow.hpp | pasenau/VisualizationLibrary | 2fcf1808475aebd4862f40377754be62a7f77a52 | [
"BSD-2-Clause"
] | null | null | null | src/gui/vlGLFW/GLFWWindow.hpp | pasenau/VisualizationLibrary | 2fcf1808475aebd4862f40377754be62a7f77a52 | [
"BSD-2-Clause"
] | 1 | 2021-01-01T10:43:33.000Z | 2021-01-01T10:43:33.000Z | /**************************************************************************************/
/* */
/* Visualization Library */
/* http://visualizationlibrary.org ... | 41.416149 | 135 | 0.566287 | pasenau |
d6e3c1e129ba81d229a48c7ac05d8eb41c55bf8b | 15,400 | cc | C++ | cpp/src/arrow/util/int_util.cc | cool-RR/arrow | e78aa4c986e6f0b58d857b55997955ba3dc10b02 | [
"Apache-2.0"
] | null | null | null | cpp/src/arrow/util/int_util.cc | cool-RR/arrow | e78aa4c986e6f0b58d857b55997955ba3dc10b02 | [
"Apache-2.0"
] | null | null | null | cpp/src/arrow/util/int_util.cc | cool-RR/arrow | e78aa4c986e6f0b58d857b55997955ba3dc10b02 | [
"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 may... | 28.518519 | 89 | 0.608961 | cool-RR |
d6e99c62862c792a98a7d7a4741f1e04ca1eb4e6 | 5,709 | cc | C++ | experiments/extrusion_validation/extract_top_face.cc | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 19 | 2020-10-21T10:05:17.000Z | 2022-03-20T13:41:50.000Z | experiments/extrusion_validation/extract_top_face.cc | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 4 | 2021-01-01T15:58:15.000Z | 2021-09-19T03:31:09.000Z | experiments/extrusion_validation/extract_top_face.cc | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | 4 | 2020-10-05T09:01:50.000Z | 2022-01-11T03:02:39.000Z | #include "../../MSHFieldParser.hh"
#include "../../MSHFieldWriter.hh"
#include "../../DenseCollisionGrid.hh"
#include "../../TetMesh.hh"
int main(int argc, const char *argv[]) {
if (argc != 4) {
std::cerr << "Usage: ./extract_surface_stresses 3d_mesh.msh surface_mesh.msh out.msh" << std::endl;
exit... | 46.414634 | 146 | 0.640042 | pbedenbaugh |
d6f4828291acac05bd32e9e62423b8bc5d7dc5d6 | 129 | cpp | C++ | CompilerGui/TestProject/main.cpp | nlowe/EECS3540 | 1c16f8168ef9b94d4800ce0793386a5885e8e6b7 | [
"MIT",
"Unlicense"
] | null | null | null | CompilerGui/TestProject/main.cpp | nlowe/EECS3540 | 1c16f8168ef9b94d4800ce0793386a5885e8e6b7 | [
"MIT",
"Unlicense"
] | 4 | 2016-09-10T22:22:12.000Z | 2016-09-25T17:57:59.000Z | CompilerGui/TestProject/main.cpp | nlowe/EECS3540 | 1c16f8168ef9b94d4800ce0793386a5885e8e6b7 | [
"MIT",
"Unlicense"
] | null | null | null | #include "funcs.h"
#include <iostream>
int main()
{
Math m;
std::cout << "1+2=" << m.add(1,2) << std::endl;
return 0;
}
| 10.75 | 49 | 0.534884 | nlowe |
d6f67d276afee15a22a6d6613e5dcd1caa08f7c5 | 904 | cpp | C++ | dsu/dsu_basic.cpp | ankit2001/CP_Algos | eadc0f9cd92a5a01791e3171dfe894e6db948b2b | [
"MIT"
] | 1 | 2020-08-11T17:50:01.000Z | 2020-08-11T17:50:01.000Z | dsu/dsu_basic.cpp | ankit2001/CP_Algos | eadc0f9cd92a5a01791e3171dfe894e6db948b2b | [
"MIT"
] | null | null | null | dsu/dsu_basic.cpp | ankit2001/CP_Algos | eadc0f9cd92a5a01791e3171dfe894e6db948b2b | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
#ifndef ONLINE_JUDGE
freopen("/Applications/input.txt", "r", stdin);
freopen("/Applications/output.txt", "w", stdout);
#endif
int tc = 1;
//cin >> tc;
for(int tt = 1; tt <= tc; tt++){
... | 19.652174 | 53 | 0.448009 | ankit2001 |
d6fb6c1376f5b33e4dbe1edeabd64e1e1ab581dc | 1,661 | cpp | C++ | src/mxml/parsing/SystemDividersHandler.cpp | dkun7944/mxml | 6450e7cab88eb6ee0ac469f437047072e1868ea4 | [
"MIT"
] | 18 | 2016-05-22T00:55:28.000Z | 2021-03-29T08:44:23.000Z | src/mxml/parsing/SystemDividersHandler.cpp | dkun7944/mxml | 6450e7cab88eb6ee0ac469f437047072e1868ea4 | [
"MIT"
] | 6 | 2017-05-17T13:20:09.000Z | 2018-10-22T20:00:57.000Z | src/mxml/parsing/SystemDividersHandler.cpp | dkun7944/mxml | 6450e7cab88eb6ee0ac469f437047072e1868ea4 | [
"MIT"
] | 14 | 2016-05-12T22:54:34.000Z | 2021-10-19T12:43:16.000Z | // Copyright © 2016 Venture Media Labs.
//
// This file is part of mxml. The full mxml copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "SystemDividersHandler.h"
#include "PositionFactory... | 36.911111 | 103 | 0.749548 | dkun7944 |
d6fd3bd9f6d1b8e0bebed0dd634f46a7ce46bb3c | 413 | hpp | C++ | pomegranate/pch.hpp | pairswiththymine/pomegranate | 695053c755c35f63ffad2d65fc500b23a75588f4 | [
"Apache-2.0"
] | null | null | null | pomegranate/pch.hpp | pairswiththymine/pomegranate | 695053c755c35f63ffad2d65fc500b23a75588f4 | [
"Apache-2.0"
] | null | null | null | pomegranate/pch.hpp | pairswiththymine/pomegranate | 695053c755c35f63ffad2d65fc500b23a75588f4 | [
"Apache-2.0"
] | null | null | null | #pragma once
// stl
#include <chrono>
#include <cmath>
#include <cstdint>
#include <exception>
#include <filesystem>
#include <iostream>
#include <ratio>
#include <string>
#include <utility>
// libs
#include "SDL.h"
// TODO: only if vulkan
#include "SDL_vulkan.h"
#include <vulkan/vulkan.h>
#include <stb_image.h>
/... | 15.296296 | 29 | 0.714286 | pairswiththymine |
d6fe6870c057f15c84d343f94ae8d004c70ab75a | 7,226 | cpp | C++ | src/imgloader.cpp | chuchienshu/PATCH-MATCH | ab06f83f558b5667a864076b3b1306ec78c131a4 | [
"MIT"
] | 2 | 2019-02-23T11:38:51.000Z | 2019-02-23T14:19:25.000Z | src/imgloader.cpp | chuchienshu/PATCH-MATCH | ab06f83f558b5667a864076b3b1306ec78c131a4 | [
"MIT"
] | null | null | null | src/imgloader.cpp | chuchienshu/PATCH-MATCH | ab06f83f558b5667a864076b3b1306ec78c131a4 | [
"MIT"
] | null | null | null | // Copyright 2018 chuchienshu
/*
* Copyright 1993-2007 NVIDIA Corporation. All rights reserved.
*/
#include <stdio.h>
#include <stdlib.h>
// #include <glog/logging.h>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui/highgui_c.h>
#inclu... | 27.899614 | 123 | 0.502353 | chuchienshu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.