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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2ec4fcdf2bcc951a27ba495a8edaa1a6c512fa79 | 905 | cpp | C++ | src/pwc.cpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | 1 | 2021-12-12T22:08:23.000Z | 2021-12-12T22:08:23.000Z | src/pwc.cpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | null | null | null | src/pwc.cpp | CardinalModules/TheXOR | 910b76622c9100d9755309adf76542237c6d3a77 | [
"CC0-1.0"
] | 1 | 2021-12-12T22:08:29.000Z | 2021-12-12T22:08:29.000Z | #include "../include/pwc.hpp"
void pwc::process(const ProcessArgs &args)
{
float vOut = 0;
if(trigger.process(inputs[IN].getVoltage()))
{
float v = (0.001f+params[PW].getValue()) * 0.01f; // valore in secondi
pulsed.trigger(v);
vOut = LVL_MAX;
} else
{
float deltaTime = 1.0 / args.sampleRate;
int pu... | 24.459459 | 109 | 0.666298 | CardinalModules |
2eca4984678648b60563a603980246481717f2a0 | 11,470 | cc | C++ | src/argh/argh.cc | shrimpster00/argh | e9570ec712573156b04b0b29395877cf8d76da10 | [
"MIT"
] | 1 | 2021-09-25T03:31:58.000Z | 2021-09-25T03:31:58.000Z | src/argh/argh.cc | shrimpster00/argh | e9570ec712573156b04b0b29395877cf8d76da10 | [
"MIT"
] | null | null | null | src/argh/argh.cc | shrimpster00/argh | e9570ec712573156b04b0b29395877cf8d76da10 | [
"MIT"
] | null | null | null | // src/argh/argh.cc
// v0.3.2
//
// Author: Cayden Lund
// Date: 09/28/2021
//
// This file contains the argh implementation.
// Use this utility to parse command line arguments.
//
// Copyright (C) 2021 Cayden Lund <https://github.com/shrimpster00>
// License: MIT <opensource.org/licenses/MIT>
#include "argh.h"
#in... | 36.762821 | 117 | 0.498344 | shrimpster00 |
2eca7bea048f63ca5a67b6620d40a90d3213291b | 48,187 | cpp | C++ | src/common.cpp | vadimostanin2/sneeze-detector | 2bac0d08cb4960b7dc16492b8c69ff1459dd9334 | [
"MIT"
] | 11 | 2015-04-18T23:42:44.000Z | 2021-04-03T18:23:44.000Z | src/common.cpp | vadimostanin2/sneeze-detector | 2bac0d08cb4960b7dc16492b8c69ff1459dd9334 | [
"MIT"
] | null | null | null | src/common.cpp | vadimostanin2/sneeze-detector | 2bac0d08cb4960b7dc16492b8c69ff1459dd9334 | [
"MIT"
] | 3 | 2017-06-02T17:07:08.000Z | 2019-04-18T05:59:48.000Z | /*
* common.c
*
* Created on: Nov 12, 2014
* Author: vostanin
*/
#include "common.h"
#include <unistd.h>
#include <errno.h>
#include <iostream>
#include <stdlib.h>
#include <algorithm>
#include "Mfcc.h"
#include "dtw.h"
RangeDistance global_ranges[] = {
{RANGE_1_E, 1},
{RANGE_2_E, 2},
{RANGE_4_E, 4}... | 26.047027 | 320 | 0.672567 | vadimostanin2 |
2ed50e6d8f1948cd6a2c2bc343aefc8919fb1b75 | 1,419 | cpp | C++ | 8 Hashing/4 unordered map/main.cpp | AdityaVSM/algorithms | 0ab0147a1e3905cf3096576a89cbce13de2673ed | [
"MIT"
] | null | null | null | 8 Hashing/4 unordered map/main.cpp | AdityaVSM/algorithms | 0ab0147a1e3905cf3096576a89cbce13de2673ed | [
"MIT"
] | null | null | null | 8 Hashing/4 unordered map/main.cpp | AdityaVSM/algorithms | 0ab0147a1e3905cf3096576a89cbce13de2673ed | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
/*
* used to store key-value pair
* unordered maps are implemented using hashing
* elements are arranged internally in any random order
* Repetitive elements can be stored
set.begin() -> O(1) in worst case
set.end() -> O(1) in worst case
set.size() -> O(1) in wo... | 24.465517 | 71 | 0.561663 | AdityaVSM |
2eeb73aac334c4959666b5084f63b760b01e46f7 | 791 | cpp | C++ | src/device_emulate.cpp | angainor/hwmalloc | 2cab9d95f90cef21d3cb7497c2e0fce73e8cc571 | [
"BSD-3-Clause"
] | null | null | null | src/device_emulate.cpp | angainor/hwmalloc | 2cab9d95f90cef21d3cb7497c2e0fce73e8cc571 | [
"BSD-3-Clause"
] | null | null | null | src/device_emulate.cpp | angainor/hwmalloc | 2cab9d95f90cef21d3cb7497c2e0fce73e8cc571 | [
"BSD-3-Clause"
] | null | null | null | /*
* ghex-org
*
* Copyright (c) 2014-2021, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <hwmalloc/device.hpp>
#include <cstdlib>
#include <cstring>
namespace hwmalloc
{
int
get_num_devices()
{
return 1;
}
... | 13.637931 | 63 | 0.670038 | angainor |
2eeb80e260f7f969c492f7a386b7323d232ae4cd | 391 | hpp | C++ | Game/Game/src/Result.hpp | ikuramikan/get_the_cats | 58cebec03454a9fda246a20cdecb84ae41724ea4 | [
"MIT"
] | 1 | 2021-02-24T12:08:30.000Z | 2021-02-24T12:08:30.000Z | Game/Game/src/Result.hpp | ikuramikan/get_the_cats | 58cebec03454a9fda246a20cdecb84ae41724ea4 | [
"MIT"
] | null | null | null | Game/Game/src/Result.hpp | ikuramikan/get_the_cats | 58cebec03454a9fda246a20cdecb84ae41724ea4 | [
"MIT"
] | null | null | null | #pragma once
#include "Common.hpp"
#include "Cat_anime.hpp"
class Result : public MyApp::Scene
{
private:
const Font font{30};
RectF end_buttom{ Arg::center = Vec2{600, 470}, 200, 60 };
int32 game_score = getData().game_score;
Transition transition{ 0.4s, 0.2s };
Cat_anime cat_anime;
public:
Result(const InitD... | 17.772727 | 59 | 0.70844 | ikuramikan |
2eecf678bb3fb830e3786728008a85e6e3a5bd05 | 9,498 | cpp | C++ | src/afk/ui/Ui.cpp | christocs/ICT397 | 5ff6e4ed8757effad19b88fdb91f36504208f942 | [
"ISC"
] | null | null | null | src/afk/ui/Ui.cpp | christocs/ICT397 | 5ff6e4ed8757effad19b88fdb91f36504208f942 | [
"ISC"
] | null | null | null | src/afk/ui/Ui.cpp | christocs/ICT397 | 5ff6e4ed8757effad19b88fdb91f36504208f942 | [
"ISC"
] | null | null | null | #include "afk/ui/Ui.hpp"
#include <filesystem>
#include <vector>
#include <imgui/examples/imgui_impl_glfw.h>
#include <imgui/examples/imgui_impl_opengl3.h>
#include <imgui/imgui.h>
#include "afk/Afk.hpp"
#include "afk/debug/Assert.hpp"
#include "afk/io/Log.hpp"
#include "afk/io/Path.hpp"
#include "afk/renderer/Rende... | 30.056962 | 148 | 0.619604 | christocs |
2eef26d831511ea853beb50ca153acb93feecd97 | 1,738 | cpp | C++ | src/apps/haikudepot/util/RatingUtils.cpp | chamalwr/haiku | b2bf76c43decc3fc2de50c4750f830b16807ddef | [
"MIT"
] | 2 | 2020-02-02T06:48:30.000Z | 2020-04-05T13:58:32.000Z | src/apps/haikudepot/util/RatingUtils.cpp | honza1a/haiku | 3959883f5047e803205668d4eb7d083b2d81e2da | [
"MIT"
] | null | null | null | src/apps/haikudepot/util/RatingUtils.cpp | honza1a/haiku | 3959883f5047e803205668d4eb7d083b2d81e2da | [
"MIT"
] | null | null | null | /*
* Copyright 2020, Andrew Lindesay <apl@lindesay.co.nz>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include <View.h>
#include "HaikuDepotConstants.h"
#include "RatingUtils.h"
BReference<SharedBitmap> RatingUtils::sStarBlueBitmap
= BReference<SharedBitmap>(new SharedBitmap(RSRC... | 22.868421 | 71 | 0.706559 | chamalwr |
2eef9c9d94e6311eb3d54f2b401e764e2273b930 | 538 | cpp | C++ | tests/src/good/StaticInternalVariableAddress_test.cpp | Ybalrid/jet-live | 14b909b00b98399d7e046cd8b7500a3fdfe0a0b1 | [
"MIT"
] | 325 | 2019-01-05T12:40:46.000Z | 2022-03-26T09:06:40.000Z | tests/src/good/StaticInternalVariableAddress_test.cpp | Ybalrid/jet-live | 14b909b00b98399d7e046cd8b7500a3fdfe0a0b1 | [
"MIT"
] | 23 | 2019-01-05T19:43:47.000Z | 2022-01-10T20:11:06.000Z | tests/src/good/StaticInternalVariableAddress_test.cpp | Ybalrid/jet-live | 14b909b00b98399d7e046cd8b7500a3fdfe0a0b1 | [
"MIT"
] | 29 | 2019-01-05T18:49:08.000Z | 2022-03-20T19:14:30.000Z |
#include <catch.hpp>
#include <iostream>
#include <thread>
#include "utility/StaticInternalVariableAddress.hpp"
#include "Globals.hpp"
#include "WaitForReload.hpp"
TEST_CASE("Relocation of static internal variable, comparing address", "[variable]")
{
auto oldVariableAddress = getStaticInternalVariableAddress();
... | 28.315789 | 84 | 0.758364 | Ybalrid |
2ef53b08ed9cdd1c32c0d9e916268f7bcc1488b5 | 2,638 | cpp | C++ | src/Scheduling/E_Task.cpp | martinc2907/KENS3-1 | f622c069da63b20102aee587209f288d0ff61292 | [
"MIT"
] | 1 | 2020-11-19T11:23:32.000Z | 2020-11-19T11:23:32.000Z | src/Scheduling/E_Task.cpp | martinc2907/KENS3-1 | f622c069da63b20102aee587209f288d0ff61292 | [
"MIT"
] | null | null | null | src/Scheduling/E_Task.cpp | martinc2907/KENS3-1 | f622c069da63b20102aee587209f288d0ff61292 | [
"MIT"
] | 1 | 2019-09-02T07:52:52.000Z | 2019-09-02T07:52:52.000Z | /*
* E_Task.cpp
*
* Created on: 2014. 12. 3.
* Author: Keunhong Lee
*/
#include <E/E_System.hpp>
#include <E/E_Module.hpp>
#include <E/Scheduling/E_Task.hpp>
#include <E/Scheduling/E_Computer.hpp>
#include <E/Scheduling/E_Job.hpp>
#include <E/Scheduling/E_Scheduler.hpp>
namespace E
{
PeriodicTask::Peri... | 19.984848 | 137 | 0.728961 | martinc2907 |
2ef6f08b927c25b94c1db02d189c595db8dd0221 | 11,899 | cpp | C++ | src/CacheManager.cpp | MyunginLee/tinc | d5d681d6fddca5fe9c194df0ba25902d785c895f | [
"BSD-3-Clause"
] | null | null | null | src/CacheManager.cpp | MyunginLee/tinc | d5d681d6fddca5fe9c194df0ba25902d785c895f | [
"BSD-3-Clause"
] | 2 | 2020-12-22T19:22:37.000Z | 2020-12-22T19:44:09.000Z | src/CacheManager.cpp | MyunginLee/tinc | d5d681d6fddca5fe9c194df0ba25902d785c895f | [
"BSD-3-Clause"
] | 3 | 2020-07-23T00:16:54.000Z | 2022-02-05T08:28:34.000Z | #include "tinc/CacheManager.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
#include "al/io/al_File.hpp"
#define TINC_META_VERSION_MAJOR 1
#define TINC_META_VERSION_MINOR 0
using namespace tinc;
// To regenerate this file run update_schema_cpp.sh
#include "tinc_cache_schema.cpp"
CacheManager::Cache... | 36.612308 | 79 | 0.575763 | MyunginLee |
2efa49e56c80c9ecd4a078791134a409ab19f01a | 360 | cpp | C++ | socket/tcp_socket.cpp | xqq/drawboard | 993f0f90c127c51ad5837656fc1383b2d9e7ddde | [
"MIT"
] | 10 | 2020-01-18T09:28:47.000Z | 2020-04-28T15:37:42.000Z | socket/tcp_socket.cpp | xqq/drawboard | 993f0f90c127c51ad5837656fc1383b2d9e7ddde | [
"MIT"
] | 1 | 2020-04-28T15:29:52.000Z | 2020-04-28T15:35:03.000Z | socket/tcp_socket.cpp | xqq/drawboard | 993f0f90c127c51ad5837656fc1383b2d9e7ddde | [
"MIT"
] | 2 | 2020-01-20T06:54:26.000Z | 2022-01-11T09:01:42.000Z | //
// @author magicxqq <xqq@xqq.im>
//
#include "tcp_socket.hpp"
#ifndef _WIN32
#include "tcp_socket_posix.hpp"
#else
#include "tcp_socket_winsock.hpp"
#endif
TcpSocket* TcpSocket::Create() {
TcpSocket* socket = nullptr;
#ifndef _WIN32
socket = new TcpSocketPosix();
#else
socket = new TcpSocket... | 14.4 | 37 | 0.677778 | xqq |
2efcae515c322a32f0824a5328284a24682d69e4 | 1,846 | cpp | C++ | main.cpp | fhwedel-hoe/ueye_mjpeg_streamer | 3aec9638ffa764b22e798753a312ac5e8b61a468 | [
"MIT"
] | 2 | 2020-03-13T01:56:32.000Z | 2020-08-19T22:12:10.000Z | main.cpp | fhwedel-hoe/ueye_mjpeg_streamer | 3aec9638ffa764b22e798753a312ac5e8b61a468 | [
"MIT"
] | null | null | null | main.cpp | fhwedel-hoe/ueye_mjpeg_streamer | 3aec9638ffa764b22e798753a312ac5e8b61a468 | [
"MIT"
] | 1 | 2021-02-06T19:49:33.000Z | 2021-02-06T19:49:33.000Z | #include <iostream>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <chrono>
#include <stdexcept>
#include <thread>
#include <memory>
#include <dlfcn.h>
#include "publisher.hpp"
#include "compress.hpp"
#include "serve.hpp"
#include "camera.hpp"
void capture(IPC_globals & ipc) {
for (;;) { // stre... | 33.563636 | 103 | 0.582882 | fhwedel-hoe |
2efd72ac39f7a136a4318c3720610d7cbf173798 | 3,459 | cpp | C++ | src/coremods/core_modules.cpp | BerilBBJ/beryldb | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 206 | 2021-04-27T21:44:24.000Z | 2022-02-23T12:01:20.000Z | src/coremods/core_modules.cpp | BerilBBJ/beryldb | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 10 | 2021-05-04T19:46:59.000Z | 2021-10-01T23:43:07.000Z | src/coremods/core_modules.cpp | berylcorp/beryl | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 7 | 2021-04-28T16:17:56.000Z | 2021-12-10T01:14:42.000Z | /*
* BerylDB - A lightweight database.
* http://www.beryldb.com
*
* Copyright (C) 2021 - Carlos F. Ferry <cferry@beryldb.com>
*
* This file is part of BerylDB. BerylDB is free software: you can
* redistribute it and/or modify it under the terms of the BSD License
* version 3.
*
* More information about our l... | 24.707143 | 113 | 0.583117 | BerilBBJ |
2c03da1dd464fbc37bff173f8f70e58cea01bf5d | 562 | cpp | C++ | chapter01/1.4_Flow_of_Control/1.4.3_Reading_an_Unknown_Number_of_Inputs.cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | 9 | 2019-05-10T05:39:21.000Z | 2022-02-22T08:04:52.000Z | chapter01/1.4_Flow_of_Control/1.4.3_Reading_an_Unknown_Number_of_Inputs.cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | null | null | null | chapter01/1.4_Flow_of_Control/1.4.3_Reading_an_Unknown_Number_of_Inputs.cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | 6 | 2019-05-13T13:39:19.000Z | 2022-02-22T08:05:01.000Z | /**
* 1.4.3 读取数量不定的输入数据
* @Author Bob
* @Eamil 0haizhu0@gmail.com
* @Date 2017/6/26
*/
#include <iostream>
/**
* 读取数量不定的输入数据,
* 只有输入换行符(比如:\n)或者非法字符(非数字,但直接回车不会停止)的时候才会停止接收数据,输出运算结果
* @EOF EOF 是 end of file 的缩写,windows环境是:ctrl+Z,unix 环境是:ctrl+D,即可模拟(?)EOF
*/
int main(){
std::cout << "数量不定的输入数据:输入一系列整数(想... | 23.416667 | 79 | 0.635231 | NorthFacing |
2c03ebf0289ea27755cd98b27d0c4648d6331887 | 909 | hpp | C++ | libctrpf/include/CTRPluginFrameworkImpl/Menu/GatewayRAMDumper.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFrameworkImpl/Menu/GatewayRAMDumper.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFrameworkImpl/Menu/GatewayRAMDumper.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | #ifndef CTRPLUGINFRAMEWORKIMPL_GATEWAYRAMDUMPER_HPP
#define CTRPLUGINFRAMEWORKIMPL_GATEWAYRAMDUMPER_HPP
#include "types.h"
#include "CTRPluginFrameworkImpl/Search/Search.hpp"
namespace CTRPluginFramework
{
class GatewayRAMDumper
{
public:
GatewayRAMDumper(void);
~GatewayRAMDumper(void){}
... | 25.25 | 51 | 0.547855 | MirayXS |
2c089201d3bed722abb3d92e212d3fa43fe74a6e | 10,469 | cpp | C++ | engine/hid/src/hid.cpp | Epitaph128/defold | 554625a6438c38014b8f701c4a6e0ca684478618 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-11-13T09:03:39.000Z | 2020-11-13T09:03:45.000Z | engine/hid/src/hid.cpp | Epitaph128/defold | 554625a6438c38014b8f701c4a6e0ca684478618 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | engine/hid/src/hid.cpp | Epitaph128/defold | 554625a6438c38014b8f701c4a6e0ca684478618 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-07-06T08:54:02.000Z | 2020-07-06T08:54:02.000Z | // Copyright 2020 The Defold Foundation
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs at
// https://www.defold.com/license
//
// Unless required by applicable law or a... | 27.47769 | 135 | 0.560512 | Epitaph128 |
2c0a985f02c864619b7ede4d6f772be0853b8751 | 354 | cpp | C++ | ExpressionEvaluation/evaluation/operand/custom_function/custom_function.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | ExpressionEvaluation/evaluation/operand/custom_function/custom_function.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | ExpressionEvaluation/evaluation/operand/custom_function/custom_function.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | #include "custom_function.hpp"
namespace expression::evaluate {
custom_function::custom_function(evaluation_function user_function, const argument_compilers &compilers)
: operand(compilers),
user_function_(move(user_function)) {}
double custom_function::get_result(const std::valarray<double> &args) const {
... | 32.181818 | 104 | 0.788136 | suiyili |
2c0fab5d22ae16693a4679df1ace86e3d7ce5bb0 | 3,459 | cpp | C++ | Old/Source/SceneModule.cpp | TinoTano/Games_Factory_2D | 116ec94f05eb805654f3d30735134e81eb873c60 | [
"MIT"
] | 1 | 2020-02-07T04:50:57.000Z | 2020-02-07T04:50:57.000Z | Old/Source/SceneModule.cpp | TinoTano/Games_Factory_2D | 116ec94f05eb805654f3d30735134e81eb873c60 | [
"MIT"
] | null | null | null | Old/Source/SceneModule.cpp | TinoTano/Games_Factory_2D | 116ec94f05eb805654f3d30735134e81eb873c60 | [
"MIT"
] | 1 | 2020-02-07T04:51:00.000Z | 2020-02-07T04:51:00.000Z | #include "SceneModule.h"
#include "GameObject.h"
#include "Application.h"
#include "CameraModule.h"
#include "ComponentTransform.h"
#include "Scene.h"
#include "Data.h"
#include "Log.h"
#include "FileSystemModule.h"
SceneModule::SceneModule(const char* moduleName, bool gameModule) : Module(moduleName, gameModule)
{
... | 19.432584 | 98 | 0.689217 | TinoTano |
2c0fb45aa4ab3d4f4eee4b6179bd5d949e05e07d | 5,464 | cpp | C++ | editor/source/widget/debugger/pass/debugger_pass.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | editor/source/widget/debugger/pass/debugger_pass.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | editor/source/widget/debugger/pass/debugger_pass.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | #include "widget/debugger/pass/debugger_pass.h"
namespace coffee_editor
{
//-META---------------------------------------------------------------------------------------//
COFFEE_BeginType(widget::DebuggerPass);
COFFEE_Ancestor(graphics::FramePass);
COFFEE_EndType();
namespace widget
{
//-CONS... | 40.474074 | 126 | 0.551428 | skarab |
2c12a8ac7a3f1da1e55f6a1229ed3f71ad14d6da | 5,939 | cpp | C++ | src/array/service/io_locker/io_locker.cpp | poseidonos/poseidonos | 1d4a72c823739ef3eaf86e65c57d166ef8f18919 | [
"BSD-3-Clause"
] | 38 | 2021-04-06T03:20:55.000Z | 2022-03-02T09:33:28.000Z | src/array/service/io_locker/io_locker.cpp | poseidonos/poseidonos | 1d4a72c823739ef3eaf86e65c57d166ef8f18919 | [
"BSD-3-Clause"
] | 19 | 2021-04-08T02:27:44.000Z | 2022-03-23T00:59:04.000Z | src/array/service/io_locker/io_locker.cpp | poseidonos/poseidonos | 1d4a72c823739ef3eaf86e65c57d166ef8f18919 | [
"BSD-3-Clause"
] | 28 | 2021-04-08T04:39:18.000Z | 2022-03-24T05:56:00.000Z | /*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics Corporation
* 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 th... | 29.112745 | 107 | 0.619465 | poseidonos |
2c17838f1d68291992228e8ab36c0665aec6ae8b | 690 | cpp | C++ | uva/11286.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | uva/11286.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | uva/11286.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
int main(){
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
int t, n[6];
char ch[20];
string s;
while(scanf("%d", &t) != EOF && t){
map<string, int> mp;
while(t--){
for(int i = 0; i < 5; scanf("%d", &n[i]), i++);
sort(n,... | 23 | 76 | 0.434783 | cosmicray001 |
2c1d2ce066a00712239431ee98b984e96cd7c364 | 476 | cpp | C++ | src/RESTAPI_unknownRequestHandler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | src/RESTAPI_unknownRequestHandler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | src/RESTAPI_unknownRequestHandler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | //
// License type: BSD 3-Clause License
// License copy: https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/blob/master/LICENSE
//
// Created by Stephane Bourque on 2021-03-04.
// Arilia Wireless Inc.
//
#include "RESTAPI_unknownRequestHandler.h"
void RESTAPI_UnknownRequestHandler::handleRequest(Poco::Net:... | 28 | 129 | 0.754202 | shimmy568 |
2c1eb109ecfb359f640fce24cc599ef65144777a | 3,316 | cpp | C++ | test/unit/misc/bit_reversal.cpp | Nemo1369/libcds | 6c96ab635067b2018b14afe5dd0251b9af3ffddf | [
"BSD-2-Clause"
] | null | null | null | test/unit/misc/bit_reversal.cpp | Nemo1369/libcds | 6c96ab635067b2018b14afe5dd0251b9af3ffddf | [
"BSD-2-Clause"
] | null | null | null | test/unit/misc/bit_reversal.cpp | Nemo1369/libcds | 6c96ab635067b2018b14afe5dd0251b9af3ffddf | [
"BSD-2-Clause"
] | null | null | null | /*
This file is a part of libcds - Concurrent Data Structures library
(C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
Redistribution and use in source and binary forms, with... | 34.185567 | 87 | 0.642039 | Nemo1369 |
2c24b8af8865154153a12f626942b5190dbabeef | 4,069 | hpp | C++ | methods/islet/islet_npx.hpp | ambrad/COMPOSE | 0bda7aeaf2b8494c7de8cd179c22e340b08eda6e | [
"BSD-3-Clause"
] | 3 | 2018-12-30T20:01:25.000Z | 2020-07-22T23:44:14.000Z | methods/islet/islet_npx.hpp | E3SM-Project/COMPOSE | 0bda7aeaf2b8494c7de8cd179c22e340b08eda6e | [
"BSD-3-Clause"
] | 8 | 2019-02-06T19:08:31.000Z | 2020-04-24T03:40:49.000Z | methods/islet/islet_npx.hpp | ambrad/COMPOSE | 0bda7aeaf2b8494c7de8cd179c22e340b08eda6e | [
"BSD-3-Clause"
] | 2 | 2019-01-16T03:58:31.000Z | 2019-02-06T22:45:43.000Z | #ifndef INCLUDE_ISLET_NPX_HPP
#define INCLUDE_ISLET_NPX_HPP
#include "islet_util.hpp"
#include "islet_types.hpp"
#include "islet_tables.hpp"
#include "islet_interpmethod.hpp"
template <typename Scalar>
void eval_lagrange_poly (const Scalar* x_gll, const Int& np, const Scalar& x,
Scalar* const... | 29.485507 | 77 | 0.539936 | ambrad |
2c2772b33e1e11c89aba7847b2966eb1abf03591 | 2,085 | cpp | C++ | Codeforces/Goodbye 2020/1466E.cpp | ApocalypseMac/CP | b2db9aa5392a362dc0d979411788267ed9a5ff1d | [
"MIT"
] | null | null | null | Codeforces/Goodbye 2020/1466E.cpp | ApocalypseMac/CP | b2db9aa5392a362dc0d979411788267ed9a5ff1d | [
"MIT"
] | null | null | null | Codeforces/Goodbye 2020/1466E.cpp | ApocalypseMac/CP | b2db9aa5392a362dc0d979411788267ed9a5ff1d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
typedef long long ll;
const int maxn = 500005;
const ll MOD = 1e9 + 7;
ll x[maxn];
int bitcnt[63];
int n, d, dm;
ll tmp, res, l, r;
ll m[63];
int main(){
ios_base::sync_with_stdio(false); cin.t... | 26.0625 | 76 | 0.302638 | ApocalypseMac |
2c2791889d601ee8bd542f686cdeb888398ab3c3 | 19,164 | cpp | C++ | src/SNC-Meister/SNC-Meister.cpp | timmyzhu/SNC-Meister | 7ecb5de94b4dae1c3c31d699bfe2289ab9f29abd | [
"MIT"
] | 5 | 2016-09-28T19:45:01.000Z | 2020-04-19T08:01:28.000Z | src/SNC-Meister/SNC-Meister.cpp | timmyzhu/SNC-Meister | 7ecb5de94b4dae1c3c31d699bfe2289ab9f29abd | [
"MIT"
] | null | null | null | src/SNC-Meister/SNC-Meister.cpp | timmyzhu/SNC-Meister | 7ecb5de94b4dae1c3c31d699bfe2289ab9f29abd | [
"MIT"
] | 4 | 2017-02-12T05:59:25.000Z | 2020-06-15T08:18:49.000Z | // SNC-Meister.cpp - SNC-Meister admission control server.
// Performs admission control for a network based on Stochastic Network Calculus (SNC) using SNC-Library.
// When a set of tenants (a.k.a. clients) seeks admission, their latency is calculated using SNC and compared against their SLO.
// Also, other clients tha... | 35.554731 | 178 | 0.632749 | timmyzhu |
2c287d1d11f64b02c40201ad39367c8cf8ae089b | 7,015 | cc | C++ | onnxruntime/core/optimizer/conv_bn_fusion.cc | csteegz/onnxruntime | a36810471b346ec862ac6e4de7f877653f49525e | [
"MIT"
] | 1 | 2020-07-12T15:23:49.000Z | 2020-07-12T15:23:49.000Z | onnxruntime/core/optimizer/conv_bn_fusion.cc | ajinkya933/onnxruntime | 0e799a03f2a99da6a1b87a2cd37facb420c482aa | [
"MIT"
] | null | null | null | onnxruntime/core/optimizer/conv_bn_fusion.cc | ajinkya933/onnxruntime | 0e799a03f2a99da6a1b87a2cd37facb420c482aa | [
"MIT"
] | 1 | 2020-09-09T06:55:51.000Z | 2020-09-09T06:55:51.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/graph/graph_utils.h"
#include "core/optimizer/initializer.h"
#include "core/optimizer/conv_bn_fusion.h"
using namespace ONNX_NAMESPACE;
using namespace ::onnxruntime::common;
namespace onnxruntime {
Status ... | 41.023392 | 114 | 0.728154 | csteegz |
2c2e80972f9620a4a4cdcc2f888ae94e800545a3 | 1,530 | cpp | C++ | myoddtest/os/testipcdata_wstring.cpp | FFMG/myoddweb.piger | 6c5e9dff6ab8e2e02d6990c1959450f087acf371 | [
"MIT"
] | 18 | 2016-03-04T15:44:24.000Z | 2021-12-31T11:06:25.000Z | myoddtest/os/testipcdata_wstring.cpp | FFMG/myoddweb.piger | 6c5e9dff6ab8e2e02d6990c1959450f087acf371 | [
"MIT"
] | 49 | 2016-02-29T17:59:52.000Z | 2019-05-05T04:59:26.000Z | myoddtest/os/testipcdata_wstring.cpp | FFMG/myoddweb.piger | 6c5e9dff6ab8e2e02d6990c1959450f087acf371 | [
"MIT"
] | 2 | 2016-07-30T10:17:12.000Z | 2016-08-11T20:31:46.000Z | #include "os\ipcdata.h"
#include "..\testcommon.h"
#include <gtest/gtest.h>
const struct test_wstring
{
std::wstring uuid;
typedef std::vector<std::wstring> VALUE_TYPE;
VALUE_TYPE values;
};
struct MyoddOsWStringTest : testing::Test, testing::WithParamInterface<test_wstring>
{
myodd::os::IpcData* ipc;
Myod... | 24.285714 | 84 | 0.615686 | FFMG |
2c2f0b90f898c860a18f98181ff9042b8d79f81f | 9,794 | cpp | C++ | ic.cpp | Allabakshu-shaik/Mercedes-POC | b338c471870830ba4b4fb26e4dc1097e0882a8e2 | [
"MIT"
] | 46 | 2020-01-08T16:38:46.000Z | 2022-03-30T21:08:07.000Z | ic.cpp | Allabakshu-shaik/Mercedes-POC | b338c471870830ba4b4fb26e4dc1097e0882a8e2 | [
"MIT"
] | 2 | 2020-03-28T08:26:29.000Z | 2020-08-06T10:52:57.000Z | ic.cpp | Allabakshu-shaik/Mercedes-POC | b338c471870830ba4b4fb26e4dc1097e0882a8e2 | [
"MIT"
] | 9 | 2020-03-13T20:53:02.000Z | 2021-08-31T08:50:20.000Z | //
// Created by ashcon on 10/5/19.
//
#include "ic.h"
#include "debug.h"
//#define START_IN_DIAG_MODE
/**
* Sets the refresh rate for scrolling text. If text is static (8 chars),
* refresh rate is locked to every 2 seconds
*
* @param rate Desired rate to scroll across text
*/
void IC_DISPLAY::setRefreshRate(i... | 29.768997 | 137 | 0.559016 | Allabakshu-shaik |
2c37db840a6a20342a022d28eca3c2eb3d8cfe27 | 247 | hpp | C++ | intrusive/pair_fwd.hpp | awonnacott/data-structures | 90bfa3994812b433a69ee0996952fcb874ca9184 | [
"MIT"
] | 1 | 2021-04-27T19:12:27.000Z | 2021-04-27T19:12:27.000Z | intrusive/pair_fwd.hpp | awonnacott/data-structures | 90bfa3994812b433a69ee0996952fcb874ca9184 | [
"MIT"
] | null | null | null | intrusive/pair_fwd.hpp | awonnacott/data-structures | 90bfa3994812b433a69ee0996952fcb874ca9184 | [
"MIT"
] | null | null | null | #pragma once
#include <utility> // pair
namespace intrusive {
template <typename A, typename B> class pair;
template <typename A, typename B>
constexpr std::pair<pair<A, B>, pair<B, A>> make_pair(const A&, const B&);
} // namespace intrusive
| 19 | 74 | 0.704453 | awonnacott |
2c3973599e108bbf66163a086cef4667593a6296 | 287 | hpp | C++ | src/Gui/single/Layouts/HBoxLayout.hpp | classix-ps/sfml-widgets | 0556f9d95ee2c5a5bc34e2182cf7f16290c102cf | [
"MIT"
] | null | null | null | src/Gui/single/Layouts/HBoxLayout.hpp | classix-ps/sfml-widgets | 0556f9d95ee2c5a5bc34e2182cf7f16290c102cf | [
"MIT"
] | null | null | null | src/Gui/single/Layouts/HBoxLayout.hpp | classix-ps/sfml-widgets | 0556f9d95ee2c5a5bc34e2182cf7f16290c102cf | [
"MIT"
] | null | null | null | #ifndef GUI_HBOXLAYOUT_SINGLE_HPP
#define GUI_HBOXLAYOUT_SINGLE_HPP
#include "Layout.hpp"
namespace guiSingle
{
/**
* Horizontally stacked layout
*/
class HBoxLayout: public Layout
{
public:
private:
void recomputeGeometry() override;
};
}
#endif // GUI_HBOXLAYOUT_SINGLE_HPP
| 13.045455 | 38 | 0.766551 | classix-ps |
2c3d51d5ad9f12e395c8d87e4a8bda13cc46f228 | 1,820 | cc | C++ | function_ref/snippets/snippet-member-function-without-type-erasure-usage.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | 1 | 2022-01-21T20:10:46.000Z | 2022-01-21T20:10:46.000Z | function_ref/snippets/snippet-member-function-without-type-erasure-usage.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | function_ref/snippets/snippet-member-function-without-type-erasure-usage.cc | descender76/cpp_proposals | 2eb7e2f59257b376dadd1b66464e076c3de23ab1 | [
"BSL-1.0"
] | null | null | null | struct delegateTest
{
int state = 0;
long current(int i, long l, char c) const
{
return state + i + l;
}
long test(int i, long l, char c)
{
state += i;
return state + l;
}
};
int main()
{
delegateTest dt;
function_ref_prime<long(delegateTest*, int, long, char... | 49.189189 | 136 | 0.642857 | descender76 |
2c42b90f863c17c776d7db965a8e80f3db6cb20e | 4,972 | hpp | C++ | txml/applications/json/include/SchemaSerializer.hpp | SergeyIvanov87/templatedXML | 2873fff802979113de102cd6ff5c2184720ee107 | [
"MIT"
] | 4 | 2020-09-30T10:41:44.000Z | 2022-03-14T19:12:26.000Z | txml/applications/json/include/SchemaSerializer.hpp | SergeyIvanov87/templatedXML | 2873fff802979113de102cd6ff5c2184720ee107 | [
"MIT"
] | 3 | 2021-11-03T18:46:24.000Z | 2021-11-03T18:47:09.000Z | txml/applications/json/include/SchemaSerializer.hpp | SergeyIvanov87/templatedXML | 2873fff802979113de102cd6ff5c2184720ee107 | [
"MIT"
] | null | null | null | #ifndef TXML_APPLICATION_JSON_SCHEMA_SERIALIZER_HPP
#define TXML_APPLICATION_JSON_SCHEMA_SERIALIZER_HPP
#include <txml/include/engine/SchemaSerializerBase.hpp>
#include <txml/applications/json/include/fwd/SchemaSerializer.h>
#include <txml/applications/json/include/SerializerCore.hpp>
#include <txml/applications/json/... | 43.234783 | 125 | 0.684232 | SergeyIvanov87 |
2c47b6b4bb3baaa25ce739a3f867f3876115a95c | 2,697 | cpp | C++ | tests/Unit/Helpers/PointwiseFunctions/GeneralRelativity/TestHelpers.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 2 | 2021-04-11T04:07:42.000Z | 2021-04-11T05:07:54.000Z | tests/Unit/Helpers/PointwiseFunctions/GeneralRelativity/TestHelpers.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 4 | 2018-06-04T20:26:40.000Z | 2018-07-27T14:54:55.000Z | tests/Unit/Helpers/PointwiseFunctions/GeneralRelativity/TestHelpers.cpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 1 | 2019-01-03T21:47:04.000Z | 2019-01-03T21:47:04.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Helpers/PointwiseFunctions/GeneralRelativity/TestHelpers.hpp"
#include "DataStructures/DataVector.hpp" // IWYU pragma: keep
#include "DataStructures/Tensor/Tensor.hpp" // IWYU pragma: keep
#include "Helpers/DataStructures/MakeWithRan... | 39.661765 | 77 | 0.708194 | macedo22 |
2c481bd2bd7b05816bcfae573030a18d98461e1e | 890 | inl | C++ | src/Engine/Renderer/RenderTechnique/RenderParameters.inl | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/RenderTechnique/RenderParameters.inl | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/RenderTechnique/RenderParameters.inl | nmellado/Radium-Engine | 6e42e4be8d14bcd496371a5f58d483f7d03f9cf4 | [
"Apache-2.0"
] | null | null | null | #include <Engine/Renderer/RenderTechnique/RenderParameters.hpp>
#include <Engine/Renderer/RenderTechnique/ShaderProgram.hpp>
namespace Ra
{
namespace Engine
{
template <typename T>
inline void RenderParameters::UniformBindableVector<T>::bind(const ShaderProgram* shader ) const
... | 28.709677 | 105 | 0.589888 | nmellado |
2c4c07131285fad5893fd08084a675afc9b15192 | 525 | cpp | C++ | Aula08/ex-02-16.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | null | null | null | Aula08/ex-02-16.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | 1 | 2018-04-27T23:42:44.000Z | 2018-04-27T23:42:44.000Z | Aula08/ex-02-16.cpp | cgcosta/scaling-barnacle | 2477436768ccb75b66feb6c0a837314f1ffa9dd3 | [
"MIT"
] | null | null | null | /*
Escreva um programa que solicita ao usuário inserir dois números, obtém os dois números do usuário imprime a soma, produto, diferença e quociente dos dois números.
Cassio
*/
#include <iostream>
using namespace std;
int main()
{
float a;
float b;
cout << "Informe o valor de A: ";
cin >> a;
cout << "Info... | 16.935484 | 163 | 0.6 | cgcosta |
2c4ca4be579e70582211ec5ab8862f8bf4d2c3fe | 4,008 | cpp | C++ | src/cpp/XMLParser.cpp | YuriySavchenko/Test_Task | 206fd75800767ad18027a6d9934a3f5be50f7526 | [
"Apache-2.0"
] | null | null | null | src/cpp/XMLParser.cpp | YuriySavchenko/Test_Task | 206fd75800767ad18027a6d9934a3f5be50f7526 | [
"Apache-2.0"
] | null | null | null | src/cpp/XMLParser.cpp | YuriySavchenko/Test_Task | 206fd75800767ad18027a6d9934a3f5be50f7526 | [
"Apache-2.0"
] | null | null | null | //
// Created by yuriy on 10/7/18.
//
#include "../headers/XMLParser.h"
/* implementation of method for parsing *.xml files */
void XMLParser::parseFile(std::vector<Interval> &intervals) {
if (fin.is_open()) {
std::vector<std::string> text = splitString(buffer, '\n');
// we are checking if firs... | 30.830769 | 109 | 0.460329 | YuriySavchenko |
2c5449f1599c8e1b05acff2e28f6d6b8f2c18ac5 | 6,192 | cxx | C++ | c++/laolrt/laol/rt/array.cxx | gburdell/laol | 4ba457b2d4fa25525173cd045aa57ff4485ef7ae | [
"MIT"
] | null | null | null | c++/laolrt/laol/rt/array.cxx | gburdell/laol | 4ba457b2d4fa25525173cd045aa57ff4485ef7ae | [
"MIT"
] | null | null | null | c++/laolrt/laol/rt/array.cxx | gburdell/laol | 4ba457b2d4fa25525173cd045aa57ff4485ef7ae | [
"MIT"
] | null | null | null | /*
* The MIT License
*
* Copyright 2017 kpfalzer.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify... | 32.93617 | 86 | 0.531008 | gburdell |
2c55204f2eca4f64f796c17d14fba6d7b0fbd1d9 | 4,195 | cpp | C++ | tools/engine_hook/window_hooks.cpp | mouzedrift/alive | 7c297a39c60e930933c0a93ea373226907f8b1c7 | [
"MIT"
] | null | null | null | tools/engine_hook/window_hooks.cpp | mouzedrift/alive | 7c297a39c60e930933c0a93ea373226907f8b1c7 | [
"MIT"
] | null | null | null | tools/engine_hook/window_hooks.cpp | mouzedrift/alive | 7c297a39c60e930933c0a93ea373226907f8b1c7 | [
"MIT"
] | null | null | null | #include "window_hooks.hpp"
#include "debug_dialog.hpp"
#include "resource.h"
#include <memory>
#include <vector>
#include "anim_logger.hpp"
#include <WinUser.h>
bool gCollisionsEnabled = true;
bool gGridEnabled = false;
static WNDPROC g_pOldProc = 0;
std::unique_ptr<DebugDialog> gDebugUi;
extern HMODULE gDllHandle;
... | 24.389535 | 117 | 0.618832 | mouzedrift |
2c57c5a03651bea61c96f288b8fec0f0d8f5d104 | 2,220 | cpp | C++ | acm-template/4 Math/FFT/lrj.cpp | joshua-xia/noip | 0603a75c7be6e9b21fcabbba4260153cf776c32f | [
"Apache-2.0"
] | null | null | null | acm-template/4 Math/FFT/lrj.cpp | joshua-xia/noip | 0603a75c7be6e9b21fcabbba4260153cf776c32f | [
"Apache-2.0"
] | null | null | null | acm-template/4 Math/FFT/lrj.cpp | joshua-xia/noip | 0603a75c7be6e9b21fcabbba4260153cf776c32f | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define mem(ar,num) memset(ar,num,sizeof(ar))
#define me(ar) memset(ar,0,sizeof(ar))
#define lowbit(x) (x&(-x))
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
const int prime = 999983;
const int INF = 0x7FFFFFFF;
const LL INFF =0x7FFFFFFFFFFFFFFF;
//const d... | 30.410959 | 87 | 0.564414 | joshua-xia |
2c5fdd407fe564619ddb7888110d9c37b061f55f | 1,498 | cpp | C++ | module05/ex01/Form.cpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | module05/ex01/Form.cpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | module05/ex01/Form.cpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | #include "Form.hpp"
/*
** Canonical Form
*/
Form::Form(int signGrad, int executionGrad)
: _signGrad(signGrad), _executionGrad(executionGrad) {}
Form::Form(const std::string& name, int signGrad, int executionGrad)
: _name(name), _signGrad(signGrad), _executionGrad(executionGrad), _isSigned(false) {
if (signGrad ... | 28.264151 | 108 | 0.655541 | M-Philippe |
2c6336949785352075fae63e49653788b7b3047e | 964 | cpp | C++ | utils.cpp | caminek/Gilligan | c7546d647a1fa9e4add929fa813f62c227fcb600 | [
"MIT"
] | null | null | null | utils.cpp | caminek/Gilligan | c7546d647a1fa9e4add929fa813f62c227fcb600 | [
"MIT"
] | null | null | null | utils.cpp | caminek/Gilligan | c7546d647a1fa9e4add929fa813f62c227fcb600 | [
"MIT"
] | null | null | null | #include <iostream>
#include "utils.hpp"
Status status;
uint8_t Utils::rol(uint8_t nibble)
{
uint8_t retval;
bool previous_carry = status.carry_flag;
status.carry_flag = nibble >> 7;
retval = (nibble << 1) | previous_carry;
return retval;
}
uint8_t Utils::ror(uint8_t bit)
{
uint8_t retval;
bool pre... | 16.338983 | 73 | 0.659751 | caminek |
2c63f1cde72b706915e05701a8f3c4a026b96846 | 861 | cpp | C++ | leetcode/72.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | leetcode/72.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | leetcode/72.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int sloveDP(string w1, string w2)
{
int w1Len = w1.size(), w2Len = w2.size();
vector<vector<int>> dp(w1Len+1, vector<int>(w2Len+1));
auto mins = [](int v1, int v2, int v3){
return min(min(v1,v2), v3);
};
for(int i = 0; i <= w1Len; i++) {
... | 23.916667 | 76 | 0.425087 | freedomDR |
2c673e1281ebca671c418f0740f114b73aeff04f | 11,214 | cpp | C++ | tests/test_matrix_traits.cpp | fancidev/euler | a74e3ddf46034718253259eac4880472c58a7b22 | [
"MIT"
] | null | null | null | tests/test_matrix_traits.cpp | fancidev/euler | a74e3ddf46034718253259eac4880472c58a7b22 | [
"MIT"
] | null | null | null | tests/test_matrix_traits.cpp | fancidev/euler | a74e3ddf46034718253259eac4880472c58a7b22 | [
"MIT"
] | null | null | null | #include <array>
#include <cstdint>
#include <type_traits>
#include <vector>
//#include "euler/matrix.hpp"
#include "euler/matrix_traits.hpp"
//#include "euler/matrix_adaptor.hpp"
#include "euler/matrix_algorithm.hpp"
#include "gtest/gtest.h"
#define MYTEST(functionName, testAspect) \
TEST(matrix ## __ ## functionNa... | 25.958333 | 76 | 0.618423 | fancidev |
ef1bb44fb921624b5cf6e776d8e9051d5afe4df9 | 3,845 | hpp | C++ | include/stl2/detail/concepts/object.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | include/stl2/detail/concepts/object.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | include/stl2/detail/concepts/object.hpp | marehr/cmcstl2 | 7a7cae1e23beacb18fd786240baef4ae121d813f | [
"MIT"
] | null | null | null | // cmcstl2 - A concept-enabled C++ standard library
//
// Copyright Casey Carter 2015
// Copyright Eric Niebler 2015
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
/... | 32.863248 | 81 | 0.668661 | marehr |
ef1d20dd2d6215d9a198a449b4827b7db8ad6224 | 31,091 | cpp | C++ | circe/gl/graphics/ibl.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | 1 | 2021-09-17T18:12:47.000Z | 2021-09-17T18:12:47.000Z | circe/gl/graphics/ibl.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | null | null | null | circe/gl/graphics/ibl.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | 2 | 2021-09-17T18:13:02.000Z | 2021-09-17T18:16:21.000Z | /// Copyright (c) 2021, FilipeCN.
///
/// The MIT License (MIT)
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to
/// deal in the Software without restriction, including without limitation the
/// rights to u... | 81.603675 | 119 | 0.298511 | gui-works |
ef1fc4f106139ad96d30385eb27447b40fdc5987 | 7,026 | cxx | C++ | source/boomhs/ui_debug.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 2 | 2016-07-22T10:09:21.000Z | 2017-09-16T06:50:01.000Z | source/boomhs/ui_debug.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 14 | 2016-08-13T22:45:56.000Z | 2018-12-16T03:56:36.000Z | source/boomhs/ui_debug.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | null | null | null | #include <boomhs/bounding_object.hpp>
#include <boomhs/camera.hpp>
#include <boomhs/components.hpp>
#include <boomhs/engine.hpp>
#include <boomhs/entity.hpp>
#include <boomhs/frame_time.hpp>
#include <boomhs/level_manager.hpp>
#include <boomhs/player.hpp>
#include <boomhs/tree.hpp>
#include <boomhs/view_frustum.hpp>
#... | 35.846939 | 100 | 0.62895 | bjadamson |
ef32badf6a2beccf2075ac54bfaf5f610cd2c05f | 19,139 | cpp | C++ | MathTL/numerics/w_method.cpp | kedingagnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 3 | 2018-05-20T15:25:58.000Z | 2021-01-19T18:46:48.000Z | MathTL/numerics/w_method.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | null | null | null | MathTL/numerics/w_method.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 2 | 2019-04-24T18:23:26.000Z | 2020-09-17T10:00:27.000Z | // implementation for w_method.h
#include <cmath>
#include <iostream>
#include <utils/array1d.h>
using std::cout;
using std::endl;
namespace MathTL
{
//template <class VECTOR>
template <class VECTOR, class IVP>
WMethodStageEquationHelper<VECTOR, IVP>::~WMethodStageEquationHelper()
{
}
template <class ... | 28.27031 | 117 | 0.613512 | kedingagnumerikunimarburg |
ef394300d536a95e9ba8a0a364041c1b17a7529e | 1,047 | hpp | C++ | NYPR/CharacterSegment/NYCharacterPartition.hpp | iwwee/PLR_Vision | bda2384c10546479860bcc351757737385c9a251 | [
"Apache-2.0"
] | 3 | 2021-04-30T06:05:38.000Z | 2022-02-16T08:06:33.000Z | NYPR/CharacterSegment/NYCharacterPartition.hpp | iwwee/PLR_Vision | bda2384c10546479860bcc351757737385c9a251 | [
"Apache-2.0"
] | null | null | null | NYPR/CharacterSegment/NYCharacterPartition.hpp | iwwee/PLR_Vision | bda2384c10546479860bcc351757737385c9a251 | [
"Apache-2.0"
] | 1 | 2021-04-30T06:05:51.000Z | 2021-04-30T06:05:51.000Z | //
// NYCharacterPartition.hpp
// NYPlateRecognition
//
// Created by NathanYu on 28/01/2018.
// Copyright © 2018 NathanYu. All rights reserved.
//
#ifndef NYCharacterPartition_hpp
#define NYCharacterPartition_hpp
#include <stdio.h>
#include <algorithm>
#include "NYPlateDetect.hpp"
class NYCharacterPartition {
... | 13.96 | 77 | 0.663801 | iwwee |
ef3aefc073928005abc8d0961302b01c4a423a88 | 682 | cpp | C++ | kattis/problems/the_easiest_problem_is_this_one.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | kattis/problems/the_easiest_problem_is_this_one.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | kattis/problems/the_easiest_problem_is_this_one.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <iostream>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
unsigned int digits_sum(unsigned int number)
{
unsigned int sum {0};
for (unsigned int i {number}; i > 0; i /= 10)
{
sum += i % 10;
}
return sum;
}... | 15.860465 | 61 | 0.555718 | Rkhoiwal |
ef3bcf31d6bf69c0f6f86ef376438b0dbeb757d7 | 5,115 | hpp | C++ | src/main/generic_format/helper.hpp | foobar27/generic_format | a44ce919b9c296ce66c0b54a51a61c884ddb78dd | [
"BSL-1.0"
] | null | null | null | src/main/generic_format/helper.hpp | foobar27/generic_format | a44ce919b9c296ce66c0b54a51a61c884ddb78dd | [
"BSL-1.0"
] | null | null | null | src/main/generic_format/helper.hpp | foobar27/generic_format | a44ce919b9c296ce66c0b54a51a61c884ddb78dd | [
"BSL-1.0"
] | null | null | null | /**
@file
@copyright
Copyright Sebastien Wagener 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#pragma once
#include <type_traits>
#include <functional>
namespace generi... | 31.189024 | 136 | 0.709677 | foobar27 |
ef3c43278e3760f822c1bea5894813bae7deb9b6 | 94 | cpp | C++ | bin/lib/base/main.cpp | johnsonyl/cpps | ed91be2c1107e3cfa8e91d159be81931eacfec19 | [
"MIT"
] | 18 | 2017-09-01T04:59:23.000Z | 2021-09-23T06:42:50.000Z | bin/lib/base/main.cpp | johnsonyl/cpps | ed91be2c1107e3cfa8e91d159be81931eacfec19 | [
"MIT"
] | null | null | null | bin/lib/base/main.cpp | johnsonyl/cpps | ed91be2c1107e3cfa8e91d159be81931eacfec19 | [
"MIT"
] | 4 | 2017-06-15T08:46:07.000Z | 2021-06-09T15:03:55.000Z | #include <lib/base/colorprint.cpp>
#include <lib/base/io.cpp>
#include <lib/base/thread.cpp> | 31.333333 | 35 | 0.734043 | johnsonyl |
ef4236b6fc400ab751ba4cfcec44914237579f1c | 1,080 | cpp | C++ | external/keko_enhanced_movement/babe_em/func/config.cpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 6 | 2018-05-05T22:28:57.000Z | 2019-07-06T08:46:51.000Z | external/keko_enhanced_movement/babe_em/func/config.cpp | Schwaggot/kellerkompanie-mods | 7a389e49e3675866dbde1b317a44892926976e9d | [
"MIT"
] | 107 | 2018-04-11T19:42:27.000Z | 2019-09-13T19:05:31.000Z | external/keko_enhanced_movement/babe_em/func/config.cpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 3 | 2018-10-03T11:54:46.000Z | 2019-02-28T13:30:16.000Z | ////////////////////////////////////////////////////////////////////
//DeRap: babe_em\func\config.bin
//Produced from mikero's Dos Tools Dll version 6.44
//'now' is Tue Jun 12 14:55:49 2018 : 'file' last modified on Thu May 10 19:35:42 2018
//http://dev-heaven.net/projects/list_files/mikero-pbodll
/////////////////////... | 20.377358 | 86 | 0.558333 | kellerkompanie |
ef48161b9469a60d2066b60b1488814f11acffaf | 7,616 | hpp | C++ | Source/FFTMeter.hpp | hotwatermorning/LevelMeter | b052f51445870ea9135fcd65bc64542e237ac81c | [
"MIT"
] | 7 | 2016-08-04T08:30:01.000Z | 2021-07-13T02:16:20.000Z | Source/FFTMeter.hpp | hotwatermorning/LevelMeter | b052f51445870ea9135fcd65bc64542e237ac81c | [
"MIT"
] | null | null | null | Source/FFTMeter.hpp | hotwatermorning/LevelMeter | b052f51445870ea9135fcd65bc64542e237ac81c | [
"MIT"
] | null | null | null | /*
==============================================================================
FFTMeter.h
Created: 19 Jan 2016 4:11:43pm
Author: yuasa
==============================================================================
*/
#ifndef FFTMETER_H_INCLUDED
#define FFTMETER_H_INCLUDED
#include <... | 31.733333 | 131 | 0.531119 | hotwatermorning |
ef4c6326f5e4f95cbc981302de52df5defec4561 | 1,777 | cpp | C++ | tests/TcpServer_test.cpp | yangzecai/Web-Server | 8a26bc1ad7db5c3e4825fc8c37d83f53d0c98f7f | [
"MIT"
] | 2 | 2021-08-24T00:35:42.000Z | 2022-02-23T13:20:23.000Z | tests/TcpServer_test.cpp | yangzecai/Web-Server | 8a26bc1ad7db5c3e4825fc8c37d83f53d0c98f7f | [
"MIT"
] | null | null | null | tests/TcpServer_test.cpp | yangzecai/Web-Server | 8a26bc1ad7db5c3e4825fc8c37d83f53d0c98f7f | [
"MIT"
] | null | null | null | #include "Address.h"
#include "EventLoop.h"
#include "Log.h"
#include "TcpConnection.h"
#include "TcpServer.h"
#include <cstdio>
#include <chrono>
#include <unistd.h>
EventLoop* g_loop;
std::string message1;
std::string message2;
void onConnection(const TcpConnectionPtr& conn)
{
printf("onConnection(): new con... | 23.381579 | 68 | 0.65785 | yangzecai |
ef4fb0837a804f8aa1b82254932d0c1492cd9418 | 20 | cpp | C++ | vendor/kult/kult.cpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2019-02-11T12:18:39.000Z | 2019-02-11T12:18:39.000Z | vendor/kult/kult.cpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2021-11-11T07:27:58.000Z | 2021-11-11T07:27:58.000Z | vendor/kult/kult.cpp | emdavoca/wee | 60344dd646a2e27d1cfdb1131dd679558d9cfa2b | [
"MIT"
] | 1 | 2021-11-11T07:22:12.000Z | 2021-11-11T07:22:12.000Z | #include "kult.hpp"
| 10 | 19 | 0.7 | emdavoca |
ef513d30412be923701d932668aa2e1a39d3828c | 3,012 | hh | C++ | src/faodel-common/BootstrapImplementation.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | src/faodel-common/BootstrapImplementation.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | src/faodel-common/BootstrapImplementation.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#ifndef FAODEL_COMMON_BOOTSTRAPINTERNAL_HH
#define FAODEL_COMMON_BOOTSTRAPINTERNAL_HH
#include <string>
#include... | 28.149533 | 80 | 0.722112 | faodel |
ef571c5b57d325d297c173d275539cd1416142e0 | 1,117 | cpp | C++ | eventset.cpp | rao1219/qt-SON | b8a28c8358dda55c3e5e01d199f2276b71dc2646 | [
"MIT"
] | 11 | 2015-08-31T15:53:43.000Z | 2021-12-24T13:25:05.000Z | eventset.cpp | rao1219/qt-SON | b8a28c8358dda55c3e5e01d199f2276b71dc2646 | [
"MIT"
] | null | null | null | eventset.cpp | rao1219/qt-SON | b8a28c8358dda55c3e5e01d199f2276b71dc2646 | [
"MIT"
] | 5 | 2017-06-30T07:18:44.000Z | 2020-04-17T16:08:15.000Z | #include "eventset.h"
#include "ui_eventset.h"
#include <QDebug>
eventSet::eventSet(QWidget *parent) :
QDialog(parent),
ui(new Ui::eventSet)
{
ui->setupUi(this);
QPalette bgpal = palette();
bgpal.setColor (QPalette::Background, QColor (29, 15, 29));
//bgpal.setColor (QPalette::Background, Qt::t... | 27.925 | 74 | 0.678603 | rao1219 |
ef58705892b12d6d7b05589554de923073d5681b | 3,331 | cpp | C++ | src/base/logger.cpp | wanchuanheng/wtaf | 90410ecb6b9e8213c0e2b2b87f72438d24ef8836 | [
"Apache-2.0"
] | null | null | null | src/base/logger.cpp | wanchuanheng/wtaf | 90410ecb6b9e8213c0e2b2b87f72438d24ef8836 | [
"Apache-2.0"
] | null | null | null | src/base/logger.cpp | wanchuanheng/wtaf | 90410ecb6b9e8213c0e2b2b87f72438d24ef8836 | [
"Apache-2.0"
] | null | null | null | #include <cstdarg>
#include <unistd.h>
#include <chrono>
#include <ctime>
#include <sys/stat.h>
#include <sys/types.h>
#include <thread>
#include "base/logger.h"
namespace wtaf {
namespace base {
void Logger::init(LOG_LEVEL level, const std::string &app, const std::string &path)
{
m_level = level;
struct time... | 30.842593 | 105 | 0.576704 | wanchuanheng |
ef59a5a79969c9e6a25ec6bbd597e3381684b289 | 201 | hpp | C++ | include/test_language_features.hpp | jdtaylor7/quetzal | 23d2dfe1c6620c6dc115710445307ddc241d4456 | [
"MIT"
] | null | null | null | include/test_language_features.hpp | jdtaylor7/quetzal | 23d2dfe1c6620c6dc115710445307ddc241d4456 | [
"MIT"
] | null | null | null | include/test_language_features.hpp | jdtaylor7/quetzal | 23d2dfe1c6620c6dc115710445307ddc241d4456 | [
"MIT"
] | null | null | null | #ifndef TEST_LANGUAGE_FEATURES_HPP
#define TEST_LANGUAGE_FEATURES_HPP
bool test_uninit_globals();
bool test_init_globals();
bool test_all_language_features();
#endif /* TEST_LANGUAGE_FEATURES_HPP */
| 22.333333 | 39 | 0.840796 | jdtaylor7 |
ef61347ea66adf304ba1a46f6ddb0c243f63cf81 | 11,863 | cpp | C++ | AADC/src/adtfUser/dev/src/util/history.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | 1 | 2018-05-10T22:35:25.000Z | 2018-05-10T22:35:25.000Z | AADC/src/adtfUser/dev/src/util/history.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | null | null | null | AADC/src/adtfUser/dev/src/util/history.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | null | null | null | #include "history.h"
#include <assert.h>
// -------------------------------------------------------------------------------------------------
bool History::insert(HistoryEntry new_entry) {
// -------------------------------------------------------------------------------------------------
if(entries_.size() > histor... | 41.190972 | 101 | 0.33811 | AADC-Fruit |
ef6459388f3b5ed605e46e28d1055259b9dafa26 | 1,824 | cpp | C++ | prog/prj/src/MacierzOb.cpp | MarutTomasz/ZadaniePodwodnyDron | 669ac1d10be228cd2d2e1517e5b56f9742abd421 | [
"MIT"
] | null | null | null | prog/prj/src/MacierzOb.cpp | MarutTomasz/ZadaniePodwodnyDron | 669ac1d10be228cd2d2e1517e5b56f9742abd421 | [
"MIT"
] | null | null | null | prog/prj/src/MacierzOb.cpp | MarutTomasz/ZadaniePodwodnyDron | 669ac1d10be228cd2d2e1517e5b56f9742abd421 | [
"MIT"
] | null | null | null | #include "MacierzOb.hh"
/*!
* \file
* \brief Definicja metod klasy MacierzOb
*
* Plik zawiera definicje metod działających
* na macierzach obrotu.
*/
MacierzOb::MacierzOb(const Macierz3D &M) : Macierz3D(M) {
double epsilon = 0.000000001;
if(abs(tab[0] * tab[1]) > epsilon){
cout << "Macierz nie jest ort... | 22.518519 | 76 | 0.524123 | MarutTomasz |
ef6a4232e6f2491c3b33091fce6da0f114e5fe9b | 4,118 | ipp | C++ | include/External/stlib/packages/shortest_paths/GraphDijkstra.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/shortest_paths/GraphDijkstra.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/shortest_paths/GraphDijkstra.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
#if !defined(__GraphDijkstra_ipp__)
#error This file is an implementation detail of the class GraphDijkstra.
#endif
namespace shortest_paths {
//
// Mathematical operations
//
template <typename WeightType, typename HeapType>
inline
void
GraphDijkstra<WeightType, HeapType>::
build() {... | 29.625899 | 77 | 0.654201 | bxl295 |
ef724a5fee6c341680ca5427d5697d2fe7cf8fba | 2,445 | inl | C++ | GLShader.inl | ffhighwind/DeferredShading | c8b765c5d1126ef8f337047db50e2eb63308baf9 | [
"Apache-2.0"
] | 1 | 2019-10-18T13:45:05.000Z | 2019-10-18T13:45:05.000Z | GLShader.inl | ffhighwind/DeferredShading | c8b765c5d1126ef8f337047db50e2eb63308baf9 | [
"Apache-2.0"
] | 1 | 2019-10-18T13:44:49.000Z | 2019-11-29T23:26:27.000Z | GLShader.inl | ffhighwind/DeferredShading | c8b765c5d1126ef8f337047db50e2eb63308baf9 | [
"Apache-2.0"
] | null | null | null | /*
* GLShader class for OpenGL 4.3
*
* Copyright (c) 2013 Wesley Hamilton
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to u... | 29.817073 | 104 | 0.745603 | ffhighwind |
ef72922217abbf859e05423495f1e87fc30d3ce5 | 2,870 | cpp | C++ | trains/train.cpp | mtlbaur/coursework_cpp | e86670df99a7e283c86bf702c708f92db6cfe0bf | [
"MIT"
] | null | null | null | trains/train.cpp | mtlbaur/coursework_cpp | e86670df99a7e283c86bf702c708f92db6cfe0bf | [
"MIT"
] | null | null | null | trains/train.cpp | mtlbaur/coursework_cpp | e86670df99a7e283c86bf702c708f92db6cfe0bf | [
"MIT"
] | null | null | null | // Name: Matthias Baur
// File Name: train.cpp
// Date: 3 October, 2017
// This is the source file for the header file "train.h".
#include "train.h"
using namespace std;
// This function is responsible for adding a car the the end of a train.
void addToEnd(TrainCar* &head, TrainCar* carToAdd)
{
if (head == NULL)
... | 18.75817 | 101 | 0.677352 | mtlbaur |
ef74fc893c803120b15a589f3a0539fe520fed3b | 59,119 | cpp | C++ | meshoptimizer/demo/miniz.cpp | FAETHER/VEther | 081f0df2c4279c21e1d55bfc336a43bc96b5f1c3 | [
"MIT"
] | 3 | 2019-12-07T23:57:47.000Z | 2019-12-31T19:46:41.000Z | meshoptimizer/demo/miniz.cpp | FAETHER/VEther | 081f0df2c4279c21e1d55bfc336a43bc96b5f1c3 | [
"MIT"
] | null | null | null | meshoptimizer/demo/miniz.cpp | FAETHER/VEther | 081f0df2c4279c21e1d55bfc336a43bc96b5f1c3 | [
"MIT"
] | null | null | null | /* This is miniz.c with removal of all zlib/zip like functionality - only tdefl/tinfl APIs are left
For maximum compatibility unaligned load/store and 64-bit register paths have been removed so this is slower than miniz.c
miniz.c v1.15 - public domain deflate/inflate, zlib-subset, ZIP reading/writing/appending, ... | 37.679414 | 217 | 0.667907 | FAETHER |
ef783296e7654ad982da2ac3500b56fe53fec725 | 2,422 | cpp | C++ | WinAPIWrapperWiz/VCWizards/WinAPIWrapperWiz/templates/1033/document_window.cpp | cdragan/WinAPI-Wrapper | 5d9b0a3f70932b55b08fbe2700e611f466af9f0b | [
"MIT"
] | 15 | 2015-10-09T04:26:12.000Z | 2022-03-17T21:09:11.000Z | WinAPIWrapperWiz/VCWizards/WinAPIWrapperWiz/templates/1033/document_window.cpp | cdragan/WinAPI-Wrapper | 5d9b0a3f70932b55b08fbe2700e611f466af9f0b | [
"MIT"
] | null | null | null | WinAPIWrapperWiz/VCWizards/WinAPIWrapperWiz/templates/1033/document_window.cpp | cdragan/WinAPI-Wrapper | 5d9b0a3f70932b55b08fbe2700e611f466af9f0b | [
"MIT"
] | 7 | 2015-10-09T04:33:23.000Z | 2022-01-27T00:38:22.000Z |
#include "StdAfx.h"
#include "document_window.h"
using namespace WinAPI;
[!if PURE_WRAPPER || ON_GENERIC]
int DocumentWindow::HandleMessage( int uMsg, int wParam, int lParam )
{
switch ( uMsg ) {
[!if !PURE_WRAPPER]
case WM_USER: // Replace this with your messages
[!endif]
[!if PURE_WRAPPER]
cas... | 16.703448 | 85 | 0.656069 | cdragan |
ef82a602364d0663ddfc1520af0a05bce17e5979 | 14,810 | cpp | C++ | contracts/eosio.system/src/voting.cpp | guilledk/telos.contracts | eff3dc89c6904196f0cf0591df2c2313e2f57800 | [
"MIT"
] | 11 | 2020-01-01T00:14:35.000Z | 2022-03-08T10:50:32.000Z | contracts/eosio.system/src/voting.cpp | guilledk/telos.contracts | eff3dc89c6904196f0cf0591df2c2313e2f57800 | [
"MIT"
] | 8 | 2020-11-28T06:16:09.000Z | 2022-03-28T11:53:00.000Z | contracts/eosio.system/src/voting.cpp | guilledk/telos.contracts | eff3dc89c6904196f0cf0591df2c2313e2f57800 | [
"MIT"
] | 11 | 2020-01-03T00:47:43.000Z | 2022-01-23T10:07:40.000Z | #include <eosio.system/eosio.system.hpp>
#include <eosio/eosio.hpp>
#include <eosio/datastream.hpp>
#include <eosio/serialize.hpp>
#include <eosio/multi_index.hpp>
#include <eosio/privileged.hpp>
#include <eosio/singleton.hpp>
#include <eosio/transaction.hpp>
#include <eosio.token/eosio.token.hpp>
#include <boost/con... | 41.836158 | 164 | 0.594261 | guilledk |
ef86603267050f3b4f30e94dfe5e4ada8d338f80 | 8,130 | cc | C++ | llcc/front-end/src/lexical_analyzer.cc | toy-compiler/toy_js_compiler | 4267c96cd65b2359b6ba70dad7ee1f17114e88fc | [
"MIT"
] | 2 | 2019-03-12T07:42:33.000Z | 2019-03-12T07:42:41.000Z | llcc/front-end/src/lexical_analyzer.cc | toy-compiler/awesomeCC | 4267c96cd65b2359b6ba70dad7ee1f17114e88fc | [
"MIT"
] | null | null | null | llcc/front-end/src/lexical_analyzer.cc | toy-compiler/awesomeCC | 4267c96cd65b2359b6ba70dad7ee1f17114e88fc | [
"MIT"
] | 1 | 2019-11-29T11:13:22.000Z | 2019-11-29T11:13:22.000Z | /**
* @file lexical_analyzer.cc
* @brief 词法分析器,具体实现
*/
#include "../include/lexical_analyzer.h"
/**
* @brief LexicalAnalyzer类构造函数
*/
LexicalAnalyzer::LexicalAnalyzer() {
in_comment = false;
};
/**
* @brief 判断curPos处是否为空字符
* @return
* -<em>true</em> 是空字符
* -<em>false</em> 不是空字符
*/
bool Lexi... | 26.057692 | 116 | 0.473924 | toy-compiler |
ef8fb8f51b907e2072632953e558b3c0a16d7b9d | 56 | hpp | C++ | src/boost_wave_grammars_cpp_expression_value.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_wave_grammars_cpp_expression_value.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_wave_grammars_cpp_expression_value.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/wave/grammars/cpp_expression_value.hpp>
| 28 | 55 | 0.839286 | miathedev |
ef9059aafa477bd01466cb3170654a32160d5cd4 | 12,745 | cpp | C++ | src/video_compress/dxt_glsl.cpp | thpryrchn/UltraGrid | f9fdd96ff73e05888d26c40aaaccdf4eb5fe7289 | [
"BSD-3-Clause"
] | 370 | 2016-10-05T15:19:00.000Z | 2022-03-29T22:12:28.000Z | src/video_compress/dxt_glsl.cpp | thpryrchn/UltraGrid | f9fdd96ff73e05888d26c40aaaccdf4eb5fe7289 | [
"BSD-3-Clause"
] | 165 | 2016-11-21T13:01:36.000Z | 2022-03-31T20:01:20.000Z | src/video_compress/dxt_glsl.cpp | thpryrchn/UltraGrid | f9fdd96ff73e05888d26c40aaaccdf4eb5fe7289 | [
"BSD-3-Clause"
] | 63 | 2016-10-13T12:07:45.000Z | 2022-03-23T19:46:10.000Z | /**
* @file video_compress/dxt_glsl.cpp
* @author Martin Pulec <pulec@cesnet.cz>
*/
/*
* Copyright (c) 2011-2014 CESNET, z. s. p. o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following conditions
* are met:... | 36.104816 | 126 | 0.537466 | thpryrchn |
ef91c55817be5168e77058674085a768af6a087d | 628 | cpp | C++ | 5_lesson/run.cpp | JonMuehlst/INTROCPP | 5f394c58c66a873bafb11dce54207a1dd580c916 | [
"MIT"
] | null | null | null | 5_lesson/run.cpp | JonMuehlst/INTROCPP | 5f394c58c66a873bafb11dce54207a1dd580c916 | [
"MIT"
] | null | null | null | 5_lesson/run.cpp | JonMuehlst/INTROCPP | 5f394c58c66a873bafb11dce54207a1dd580c916 | [
"MIT"
] | null | null | null | #include <iostream>
#include "binom.h"
#include "selection_sort.h"
#include "gtest/gtest.h"
int main(int argc, char **argv) {
/*
Selection sort
*/
int arr[MAX_ARR_SIZE]; // static allocation
int arr_size= getArrayFromInput(arr, MAX_ARR_SIZE);
printArr(arr, 0, arr_size);
sort(arr, a... | 16.972973 | 59 | 0.55414 | JonMuehlst |
aab3d8b8a09a2743d0de5116ee225498ed961872 | 2,822 | cpp | C++ | Packer/RepetitionFinder.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 67 | 2018-03-02T10:50:02.000Z | 2022-03-23T18:20:29.000Z | Packer/RepetitionFinder.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | null | null | null | Packer/RepetitionFinder.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 9 | 2018-03-01T16:38:28.000Z | 2021-03-02T16:17:09.000Z | //-------------------------------------
// (c) Reliable Software 1999-2003
// ------------------------------------
#include "precompiled.h"
#include "RepetitionFinder.h"
#include "Repetitions.h"
#include "ForgetfulHashTable.h"
#include "Statistics.h"
#include "Bucketizer.h"
#include <Ex/WinEx.h>
RepetitionFinder::Repe... | 30.021277 | 118 | 0.668675 | BartoszMilewski |
aab3fb72d062e9215459ab412efd3751d795aac5 | 5,466 | cpp | C++ | editor/audio/Player.cpp | minhvien5059/congnghe_Vietnam | 06d6efce856ba369db340a2d834e003fe5a99fa0 | [
"BSD-3-Clause"
] | 40 | 2015-09-03T05:50:42.000Z | 2022-02-25T10:00:01.000Z | editor/audio/Player.cpp | minhvien5059/congnghe_Vietnam | 06d6efce856ba369db340a2d834e003fe5a99fa0 | [
"BSD-3-Clause"
] | 1 | 2017-10-24T14:30:13.000Z | 2017-11-07T02:14:10.000Z | editor/audio/Player.cpp | minhvien5059/congnghe_Vietnam | 06d6efce856ba369db340a2d834e003fe5a99fa0 | [
"BSD-3-Clause"
] | 7 | 2017-03-13T07:08:19.000Z | 2021-06-01T01:06:05.000Z | /* Player.cpp from QTau http://github.com/qtau-devgroup/editor by digited, BSD license */
#include "audio/Player.h"
#include "audio/Source.h"
#include "audio/Mixer.h"
#include "Utils.h"
#include <QAudioOutput>
#include <QThread>
#include <QTimer>
#include <QDebug>
#include <QApplication>
qtmmPlayer::qtmmPlayer() :... | 23.973684 | 108 | 0.637029 | minhvien5059 |
aab56c1cca596c00a4365ee563d586d8b22f860e | 6,262 | hpp | C++ | tools/seec-view/ExplanationViewer.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 7 | 2018-06-25T12:06:13.000Z | 2022-01-18T09:20:13.000Z | tools/seec-view/ExplanationViewer.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 20 | 2016-12-01T23:46:12.000Z | 2019-08-11T02:41:04.000Z | tools/seec-view/ExplanationViewer.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 1 | 2020-10-19T03:20:05.000Z | 2020-10-19T03:20:05.000Z | //===- tools/seec-trace-view/ExplanationViewer.hpp ------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... | 26.091667 | 80 | 0.648195 | seec-team |
aab965312397f90f3c18b850ecf341fe64ca32e9 | 2,825 | cpp | C++ | Tekken-7-Frames-To-Speech/audio.cpp | n-o-u/Tekken-7-Frames-To-Speech | b0c794464f34e0c0cdc3a848be3b51fc7e33ca1d | [
"MIT"
] | 1 | 2021-01-28T22:12:28.000Z | 2021-01-28T22:12:28.000Z | Tekken-7-Frames-To-Speech/audio.cpp | n-o-u/Tekken-7-Frames-To-Speech | b0c794464f34e0c0cdc3a848be3b51fc7e33ca1d | [
"MIT"
] | null | null | null | Tekken-7-Frames-To-Speech/audio.cpp | n-o-u/Tekken-7-Frames-To-Speech | b0c794464f34e0c0cdc3a848be3b51fc7e33ca1d | [
"MIT"
] | 1 | 2021-01-28T22:12:59.000Z | 2021-01-28T22:12:59.000Z | #include "frames-to-speech.h"
#include "resource.h"
#include "audio.h"
void playFramesAudio(int frames) {
LPCWSTR path = getWavResourcePath(frames);
if (path != 0) {
PlaySound(path, GetModuleHandle(NULL), SND_RESOURCE | SND_ASYNC);
//PlaySound(path, GetModuleHandle(NULL), SND_FILENAME | SND_ASYNC); //directly fr... | 17.993631 | 92 | 0.670088 | n-o-u |
aaba67aa05441d448ae0e0977586a10f1dc7c29d | 64 | cpp | C++ | src/ui/src/comms/dfcomms.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/ui/src/comms/dfcomms.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/ui/src/comms/dfcomms.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | /*
UI Comms Driver stuff (ALL of it which is NOT part of VU)
*/
| 16 | 57 | 0.671875 | Terebinth |
aabca80b93a778881b4f513e64b9466519e11487 | 4,813 | hpp | C++ | src/sprite/llvm/type.hpp | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | 1 | 2022-03-16T16:37:11.000Z | 2022-03-16T16:37:11.000Z | src/sprite/llvm/type.hpp | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | null | null | null | src/sprite/llvm/type.hpp | andyjost/Sprite | 7ecd6fc7d48d7f62da644e48c12c7b882e1a2929 | [
"MIT"
] | null | null | null | #pragma once
#include "sprite/llvm/config.hpp"
#include "sprite/llvm/fwd.hpp"
#include "sprite/llvm/llvmobj.hpp"
#include "sprite/llvm/array_ref.hpp"
#include "sprite/llvm/special_values.hpp"
#include "sprite/llvm/type_traits.hpp"
#include "llvm/IR/DerivedTypes.h"
#include <iostream>
#include <vector>
namespace sprite... | 26.157609 | 79 | 0.658633 | andyjost |
aabcaa409c50b922c940044845f7282aba871d3f | 11,251 | cpp | C++ | QtOpenGLDB/prism.cpp | as-i-see/OOPFundamentals2sem | a859001fba5e81446edf1e272909991fa2bfbd81 | [
"MIT"
] | null | null | null | QtOpenGLDB/prism.cpp | as-i-see/OOPFundamentals2sem | a859001fba5e81446edf1e272909991fa2bfbd81 | [
"MIT"
] | null | null | null | QtOpenGLDB/prism.cpp | as-i-see/OOPFundamentals2sem | a859001fba5e81446edf1e272909991fa2bfbd81 | [
"MIT"
] | null | null | null | #include "prism.h"
#include <QOpenGLFunctions>
void Prism::reconstruct() {
Vertex BA(this->dots[0].position());
Vertex BB(this->dots[1].position());
Vertex BC(this->dots[2].position());
Vertex BD(this->dots[3].position());
Vertex BE(this->dots[4].position());
Vertex BF(this->dots[5].position());
Vertex T... | 39.616197 | 80 | 0.483513 | as-i-see |
aabe0f77f24de2d84727e21fdbde6daa6501ff11 | 4,052 | hpp | C++ | addons/briefing/CfgDiary.hpp | YonVclaw/6sfdgdemo | f09b4ed8569cd0fcbca4c634aa79289f1ca84014 | [
"MIT"
] | null | null | null | addons/briefing/CfgDiary.hpp | YonVclaw/6sfdgdemo | f09b4ed8569cd0fcbca4c634aa79289f1ca84014 | [
"MIT"
] | null | null | null | addons/briefing/CfgDiary.hpp | YonVclaw/6sfdgdemo | f09b4ed8569cd0fcbca4c634aa79289f1ca84014 | [
"MIT"
] | null | null | null | class CfgDiary {
class FixedPages {
class Diary {
text = "%TEXT";
};
class Tasks {
text = "%LINK_SET_CURRENT_TASK<br /><br />%TASK_DESCRIPTION";
};
};
};
class RscHTML;
class RscControlsGroup;
class RscDisplayMainMap {
class controls {
cla... | 37.518519 | 97 | 0.449161 | YonVclaw |
aac15adf50b4c9b80b307e9fbc15ee51f86bc62b | 847 | cpp | C++ | problems21ruse/robot/1.cpp | Gomango999/codebreaker | 407c4ac7a69c8db52cc7d2a57034cdda243c9134 | [
"MIT"
] | null | null | null | problems21ruse/robot/1.cpp | Gomango999/codebreaker | 407c4ac7a69c8db52cc7d2a57034cdda243c9134 | [
"MIT"
] | null | null | null | problems21ruse/robot/1.cpp | Gomango999/codebreaker | 407c4ac7a69c8db52cc7d2a57034cdda243c9134 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main () {
int K;
cin >> K;
string directions;
cin >> directions;
// well to work out the number of moves, let's just make the robot go backwards!
string reverse_directions(K, '-');
for (int i = 0; i < K; i++) {
if (directions[i] == ... | 30.25 | 84 | 0.57379 | Gomango999 |
aac258ecf21af6accf3dfd66fb591ef2fcd4856f | 628 | hpp | C++ | Fusion/src/Fusion/Audio/Buffer.hpp | WhoseTheNerd/Fusion | 35ab536388392b3ba2e14f288eecbc292abd7dea | [
"Apache-2.0"
] | 4 | 2018-11-12T18:43:02.000Z | 2020-02-02T10:18:56.000Z | Fusion/src/Fusion/Audio/Buffer.hpp | WhoseTheNerd/Fusion | 35ab536388392b3ba2e14f288eecbc292abd7dea | [
"Apache-2.0"
] | 2 | 2018-12-22T13:18:05.000Z | 2019-07-24T20:15:45.000Z | Fusion/src/Fusion/Audio/Buffer.hpp | WhoseTheNerd/Fusion | 35ab536388392b3ba2e14f288eecbc292abd7dea | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cinttypes>
#include <vector>
#include "Common.hpp"
namespace Fusion { namespace Audio {
class Buffer
{
public:
Buffer();
Buffer(uint32_t id);
/* The class doesn't store buffer data and we can't query it from OpenAL so it cannot be copied. */
Buffer(const Buffer& other) = delete;
... | 17.942857 | 101 | 0.69586 | WhoseTheNerd |
aac413e5574a6891287bff955bc123b8de305b5e | 16,038 | cpp | C++ | rmf_traffic/src/rmf_traffic/blockade/Constraint.cpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 10 | 2021-04-14T07:01:56.000Z | 2022-02-21T02:26:58.000Z | rmf_traffic/src/rmf_traffic/blockade/Constraint.cpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 63 | 2021-03-10T06:06:13.000Z | 2022-03-25T08:47:07.000Z | rmf_traffic/src/rmf_traffic/blockade/Constraint.cpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 10 | 2021-03-17T02:52:14.000Z | 2022-02-21T02:27:02.000Z | /*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* 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 appl... | 23.76 | 80 | 0.563599 | 0to1 |
aac499dbfd84c5e8199bf8a5811a0056d1d7bdd4 | 3,161 | cpp | C++ | Hashing/Maths and hashing/Grid Illumination.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | 7 | 2019-06-29T08:57:07.000Z | 2021-02-13T06:43:40.000Z | Hashing/Maths and hashing/Grid Illumination.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | null | null | null | Hashing/Maths and hashing/Grid Illumination.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | 3 | 2020-06-17T04:26:26.000Z | 2021-02-12T04:51:40.000Z | int dx[] = {-1, -1, 1, 1, -1, 0, 0, 0, 1};
int dy[] = {-1, 1, -1, 1, 0, -1, 0, 1, 0};
struct line{
int x1,y1,x2,y2;
int ass(int a, int b, int c, int d ){
x1 = a;
y1 = b;
x2 = c;
y2 = d;
}
};
line left(int x, int y, int A){
int top_x, top_y;
int sub = min(x-1, y-1);
... | 28.223214 | 86 | 0.412528 | cenation092 |
aac5f875f4abdf1245ad33f3d1c7dd52277d7295 | 18,950 | cc | C++ | src/neo.cc | Quicr/qmedia | 96408d740bf35e6a845f61c40cc9f9ff859a9955 | [
"BSD-2-Clause"
] | null | null | null | src/neo.cc | Quicr/qmedia | 96408d740bf35e6a845f61c40cc9f9ff859a9955 | [
"BSD-2-Clause"
] | 1 | 2021-12-29T03:37:51.000Z | 2022-03-16T05:59:11.000Z | src/neo.cc | Quicr/qmedia | 96408d740bf35e6a845f61c40cc9f9ff859a9955 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include "neo.hh"
#include "h264_encoder.hh"
namespace neo_media
{
Neo::Neo(const LoggerPointer &parent_logger) :
log(std::make_shared<Logger>("NEO", parent_logger)),
metrics(std::make_shared<Metrics>(MetricsConfig::URL,
MetricsConfig::ORG,
... | 33.718861 | 80 | 0.539947 | Quicr |
aac7aa7ee563ffb6904482b84dc7ad5fc5cecc85 | 526 | cpp | C++ | 11_10/11_10.cpp | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | 11_10/11_10.cpp | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | 11_10/11_10.cpp | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | #include<iostream>
#include<fstream>
using namespace std;
int main()
{
int value[]={ 3, 7, 0, 5, 4 };
ofstream os("intergers",ios_base::out|ios_base::binary);
os.write(reinterpret_cast<char*>(&value),sizeof(value));
os.close();
ifstream is("intergers",ios_base::in|ios_base::binary);
if(is)
{
is.seekg(3*sizeo... | 21.04 | 63 | 0.659696 | wjingzhe |
aac7d13eded9ad84c4984a36a7e4f0a561e5c490 | 11,421 | cpp | C++ | DEM/Low/src/Animation/AnimationController.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 15 | 2019-05-07T11:26:13.000Z | 2022-01-12T18:26:45.000Z | DEM/Low/src/Animation/AnimationController.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 16 | 2021-10-04T17:15:31.000Z | 2022-03-20T09:34:29.000Z | DEM/Low/src/Animation/AnimationController.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 2 | 2019-04-28T23:27:48.000Z | 2019-05-07T11:26:18.000Z | #include "AnimationController.h"
#include <Animation/Graph/AnimGraphNode.h>
#include <Animation/SkeletonInfo.h>
#include <Animation/Skeleton.h>
namespace DEM::Anim
{
CAnimationController::CAnimationController() = default;
CAnimationController::CAnimationController(CAnimationController&&) noexcept = default;
CAnimation... | 31.902235 | 135 | 0.66404 | niello |
aacd3557b80b70df994458a9fd7e0f18c8833abf | 682 | cpp | C++ | main.cpp | Zermil/mathEval | b49016bd21b787364c53b1fe6444d17366a838d7 | [
"MIT"
] | null | null | null | main.cpp | Zermil/mathEval | b49016bd21b787364c53b1fe6444d17366a838d7 | [
"MIT"
] | null | null | null | main.cpp | Zermil/mathEval | b49016bd21b787364c53b1fe6444d17366a838d7 | [
"MIT"
] | null | null | null | #include <iostream>
#include "MathEval.hpp"
int main(int argc, char* argv[])
{
std::string EXPRESSIONS[] = {
" -123 + 12 * 3 \t",
"(2 * 3) + 1\n\r",
"(-1 + 2) * 3",
" 3 + 4 * 2/(1-5)^2^3",
"5 * 3 + (4 + 2 % 2 * 8)",
"-Pi + 3.2 - 4 + (-3 + 2)-E*3",
"2.398+14.23+3-e*3+(-3)",
"-123 ... | 24.357143 | 63 | 0.409091 | Zermil |
aace9f423d7a4dfaaf366da679a6d04e0150d58c | 3,493 | hpp | C++ | src/Externals/spire/var-buffer/VarBuffer.hpp | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | null | null | null | src/Externals/spire/var-buffer/VarBuffer.hpp | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | null | null | null | src/Externals/spire/var-buffer/VarBuffer.hpp | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... | 31.468468 | 83 | 0.72631 | Haydelj |
aad0411c3c5470b87627b25488cd2b13710ec204 | 3,600 | cpp | C++ | test/StorageCacheNoneRuntimeTests.cpp | fsaporito/KVCache | 4d4402396426c1ca25e7fb9ae5f4fb181a0fa1f2 | [
"BSL-1.0"
] | null | null | null | test/StorageCacheNoneRuntimeTests.cpp | fsaporito/KVCache | 4d4402396426c1ca25e7fb9ae5f4fb181a0fa1f2 | [
"BSL-1.0"
] | null | null | null | test/StorageCacheNoneRuntimeTests.cpp | fsaporito/KVCache | 4d4402396426c1ca25e7fb9ae5f4fb181a0fa1f2 | [
"BSL-1.0"
] | null | null | null | #include "KVCache/StorageCache/StorageCacheNone.h"
#include <catch2/catch.hpp>
TEST_CASE("Put 1 KV Pair into StorageCacheNone", "[runtime],[Put],[Singlepair],[StorageCacheNone][SingleThread]")
{
// Initialize StorageCache
auto storageType = KVCache::Interface::StorageCacheType::NONE;
auto storagePath = K... | 42.352941 | 141 | 0.640556 | fsaporito |
aad0dc0b0a6f3ecabd8fb02405516b86e6eda6e3 | 339 | cpp | C++ | 00_cpp_beginners/04_pointers_memory/00_pointers/pointers.cpp | ganesh737/cfl-cpp | b1b9cff137897accca0f93a2d6f54129e5b9d19d | [
"MIT"
] | null | null | null | 00_cpp_beginners/04_pointers_memory/00_pointers/pointers.cpp | ganesh737/cfl-cpp | b1b9cff137897accca0f93a2d6f54129e5b9d19d | [
"MIT"
] | null | null | null | 00_cpp_beginners/04_pointers_memory/00_pointers/pointers.cpp | ganesh737/cfl-cpp | b1b9cff137897accca0f93a2d6f54129e5b9d19d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int nVal = 10;
int* pVal = &nVal;
cout << "nVal=" << nVal << endl;
cout << "pVal=" << pVal << endl;
cout << "*pVal=" << *pVal << endl;
cout << "sizeof(pVal)=" << sizeof(pVal) << endl;
cout << "sizeof(*pVal)=" << sizeof(*pVal) << en... | 22.6 | 54 | 0.501475 | ganesh737 |
aad1719583164cf3767724b1362548d81cc3228a | 1,218 | cpp | C++ | aws-cpp-sdk-chime/source/model/CreateSipMediaApplicationCallRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-chime/source/model/CreateSipMediaApplicationCallRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-chime/source/model/CreateSipMediaApplicationCallRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime/model/CreateSipMediaApplicationCallRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Chime::Model;
using namespace Aws::Utils::Js... | 21.75 | 79 | 0.761084 | perfectrecall |
aad1825460a7c417420398c215fefd9529353a97 | 1,214 | cpp | C++ | GuiLib/GuiButtonDoc.cpp | imxingquan/hotelMIS | f0da91dd5b4ffbe7d69a7038206a329e065d4c94 | [
"MIT"
] | 9 | 2019-11-28T02:42:01.000Z | 2021-12-25T08:32:02.000Z | GuiLib/GuiButtonDoc.cpp | imxingquan/hotelMIS | f0da91dd5b4ffbe7d69a7038206a329e065d4c94 | [
"MIT"
] | null | null | null | GuiLib/GuiButtonDoc.cpp | imxingquan/hotelMIS | f0da91dd5b4ffbe7d69a7038206a329e065d4c94 | [
"MIT"
] | 2 | 2021-01-07T10:00:07.000Z | 2021-11-01T11:18:37.000Z | // GuiButtonDoc.cpp : implementation file
//
#include "stdafx.h"
#include "GuiButtonDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGuiButtonDoc
CGuiButtonDoc::CGuiButtonDoc()
{
}... | 19.901639 | 81 | 0.636738 | imxingquan |
aad443b0febfc28694d99b2f0a2e2f887b32d0f3 | 2,768 | cpp | C++ | src/Test/TestMain.cpp | travelping/libamqp | afd15eec16bab7be4da9e4cc371392ea3f1a881e | [
"Apache-2.0"
] | 6 | 2015-11-05T10:28:59.000Z | 2021-05-06T03:50:12.000Z | src/Test/TestMain.cpp | travelping/libamqp | afd15eec16bab7be4da9e4cc371392ea3f1a881e | [
"Apache-2.0"
] | 2 | 2015-04-21T09:57:43.000Z | 2015-04-21T10:00:46.000Z | src/Test/TestMain.cpp | travelping/libamqp | afd15eec16bab7be4da9e4cc371392ea3f1a881e | [
"Apache-2.0"
] | 4 | 2016-09-14T08:01:24.000Z | 2021-06-15T11:24:14.000Z | /*
Copyright 2011-2012 StormMQ Limited
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 ... | 27.68 | 89 | 0.600434 | travelping |
aad457b42fbf4047458cbbacbfeadf42145e5c43 | 10,436 | cpp | C++ | src/gba/ppu/sprite.cpp | destoer/destoer-emu | 2a7941b175126e998eed2df8df87ee382c43d0b1 | [
"BSD-3-Clause"
] | 20 | 2020-01-19T21:54:23.000Z | 2021-11-28T17:27:15.000Z | src/gba/ppu/sprite.cpp | destoer/destoer-emu | 2a7941b175126e998eed2df8df87ee382c43d0b1 | [
"BSD-3-Clause"
] | 3 | 2020-05-01T07:46:10.000Z | 2021-09-18T13:50:18.000Z | src/gba/ppu/sprite.cpp | destoer/destoer-emu | 2a7941b175126e998eed2df8df87ee382c43d0b1 | [
"BSD-3-Clause"
] | null | null | null | #include <gba/gba.h>
namespace gameboyadvance
{
void Display::render_sprites(int mode)
{
const TileData lose_bg(read_bg_palette(0,0),pixel_source::bd);
// make all of the line lose
// until something is rendred over it
std::fill(sprite_line.begin(),sprite_line.end(),lose_bg);
std::fill(sprite_semi... | 30.425656 | 105 | 0.489651 | destoer |
aad5874acdd66e9037de46edf6f39957d593bd74 | 4,776 | cpp | C++ | src/system_model/system_model.cpp | ibrahimkakbar/ros-system_model | 0bf91e6bf2f6208d260319543b6407be3a48c217 | [
"MIT"
] | null | null | null | src/system_model/system_model.cpp | ibrahimkakbar/ros-system_model | 0bf91e6bf2f6208d260319543b6407be3a48c217 | [
"MIT"
] | null | null | null | src/system_model/system_model.cpp | ibrahimkakbar/ros-system_model | 0bf91e6bf2f6208d260319543b6407be3a48c217 | [
"MIT"
] | null | null | null | #include "system_model/system_model.hpp"
#include <system_model_msgs/variable.h>
#include <ros/console.h>
#include <ros/names.h>
#include <dlfcn.h>
using namespace system_model;
// CONSTRUCTORS
system_model_t::system_model_t(uint32_t n_variables, uint32_t n_observers)
: ukf_t(n_variables, n_observers)
{
//... | 30.420382 | 122 | 0.639866 | ibrahimkakbar |
aad807720f53c483f3f535c63dab83810cdc2e2c | 644 | cpp | C++ | API/source/src/WektorC.cpp | HPytkiewicz/DronPodwodny | b63feaca2abb268ef0ab6e831bed663608fadcbb | [
"MIT"
] | null | null | null | API/source/src/WektorC.cpp | HPytkiewicz/DronPodwodny | b63feaca2abb268ef0ab6e831bed663608fadcbb | [
"MIT"
] | null | null | null | API/source/src/WektorC.cpp | HPytkiewicz/DronPodwodny | b63feaca2abb268ef0ab6e831bed663608fadcbb | [
"MIT"
] | null | null | null | #include "Wektor.cpp"
#include <iostream>
#include <iomanip>
template class Wektor<double, 2>;
template Wektor<double,2> operator *(double a, const Wektor<double,2> &Wektor2);
template std::ostream & operator <<(std::ostream &Strm, const Wektor<double, 2> &wektor);
template std::istream & operator >>(std::istream &St... | 37.882353 | 89 | 0.72205 | HPytkiewicz |
aadbe9c297dcf14b54d8ec30efc511e5f34e7c1c | 3,097 | cpp | C++ | TestConditionCode.cpp | andkrau/nuance | 32b9d6b9257c6c51944727456fce2e7caf074182 | [
"W3C"
] | null | null | null | TestConditionCode.cpp | andkrau/nuance | 32b9d6b9257c6c51944727456fce2e7caf074182 | [
"W3C"
] | null | null | null | TestConditionCode.cpp | andkrau/nuance | 32b9d6b9257c6c51944727456fce2e7caf074182 | [
"W3C"
] | null | null | null | #include "mpe.h"
bool MPE::TestConditionCode(const uint32 whichCondition) const
{
//This sequencing is correct for 32/64 bit ECU instructions. The decode
//handler for 16/48 bit ECU instructions converts the extracted condition
//to this sequence. VMLabs must die. Mission accomplished!
switch(which... | 26.930435 | 118 | 0.55247 | andkrau |
aadf7e152155b081274583b31025f99ca823fb6e | 5,510 | cpp | C++ | src/UI/SettingsDlg.cpp | ShiraNai7/rstpad | 754e6b34229585946c9238350ca1d94f17ea2678 | [
"MIT"
] | 44 | 2017-02-13T18:56:55.000Z | 2021-12-28T09:45:09.000Z | src/UI/SettingsDlg.cpp | ShiraNai7/rstpad | 754e6b34229585946c9238350ca1d94f17ea2678 | [
"MIT"
] | 2 | 2017-08-01T22:56:58.000Z | 2019-07-15T21:28:29.000Z | src/UI/SettingsDlg.cpp | ShiraNai7/rstpad | 754e6b34229585946c9238350ca1d94f17ea2678 | [
"MIT"
] | 8 | 2017-10-31T15:08:01.000Z | 2022-02-24T05:05:19.000Z | #include "SettingsDlg.h"
#include "ui_SettingsDlg.h"
#include "../App.h"
#include <Qt>
#include <QLineEdit>
#include <QTextOption>
#include <QCheckBox>
#include <QComboBox>
namespace RstPad {
SettingsDlg::SettingsDlg(QWidget *parent) :
QDialog(parent),
ui(new Ui::SettingsDlg)
{
... | 43.730159 | 142 | 0.647731 | ShiraNai7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.