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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47420fe837713722b30bd054801315dea2aff39d | 3,659 | cpp | C++ | source/ff.dx12/source/queue.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | source/ff.dx12/source/queue.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | source/ff.dx12/source/queue.cpp | spadapet/ff_game_library | f1bf00f90adde66c2c2aa35b109fe61b8d2c6352 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "access.h"
#include "device_reset_priority.h"
#include "fence.h"
#include "globals.h"
#include "queue.h"
ff::dx12::queue::queue(D3D12_COMMAND_LIST_TYPE type)
: type(type)
{
this->reset();
ff::dx12::add_device_child(this, ff::dx12::device_reset_priority::queue);
}
ff::dx12::queue:... | 27.511278 | 121 | 0.596338 | spadapet |
47477c973bc9e3b331ff840cd45038d5bfa7a81a | 1,178 | cpp | C++ | src/LightBulbApp/TrainingPlans/Preferences/PredefinedPreferenceGroups/Evolution/RateDifferenceConditionPreferenceGroup.cpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 5 | 2016-02-04T06:14:42.000Z | 2017-02-06T02:21:43.000Z | src/LightBulbApp/TrainingPlans/Preferences/PredefinedPreferenceGroups/Evolution/RateDifferenceConditionPreferenceGroup.cpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 41 | 2015-04-15T21:05:45.000Z | 2015-07-09T12:59:02.000Z | src/LightBulbApp/TrainingPlans/Preferences/PredefinedPreferenceGroups/Evolution/RateDifferenceConditionPreferenceGroup.cpp | domin1101/LightBulb | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | null | null | null | // Includes
#include "LightBulbApp/TrainingPlans/Preferences/PredefinedPreferenceGroups/Evolution/RateDifferenceConditionPreferenceGroup.hpp"
#include "LightBulbApp/TrainingPlans/Preferences/IntegerPreference.hpp"
#include "LightBulbApp/TrainingPlans/Preferences/DoublePreference.hpp"
#include "LightBulb/Learning/Evolu... | 36.8125 | 129 | 0.837861 | domin1101 |
474785b19cfc9676eb90451dfbd807f1f5548fe3 | 11,465 | cpp | C++ | unittests/conversation.cpp | traviscross/libzina | 6583baa68549a7d90bf6f9af5836361e41b3cef5 | [
"Apache-2.0"
] | 21 | 2016-04-03T00:05:34.000Z | 2020-05-19T23:08:37.000Z | unittests/conversation.cpp | traviscross/libzina | 6583baa68549a7d90bf6f9af5836361e41b3cef5 | [
"Apache-2.0"
] | null | null | null | unittests/conversation.cpp | traviscross/libzina | 6583baa68549a7d90bf6f9af5836361e41b3cef5 | [
"Apache-2.0"
] | 4 | 2018-01-15T07:17:27.000Z | 2021-01-10T02:01:37.000Z | /*
Copyright 2016 Silent Circle, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | 34.637462 | 137 | 0.632883 | traviscross |
474f455e0b90a74010298dbffc9363c798ebd1cd | 17,913 | cpp | C++ | shaderapivulkan/src/TF2Vulkan/meshes/VulkanMesh.cpp | melvyn2/TF2Vulkan | a8cd1c49ecfe9d4dc31af0a50ba7690c61c255c4 | [
"MIT"
] | null | null | null | shaderapivulkan/src/TF2Vulkan/meshes/VulkanMesh.cpp | melvyn2/TF2Vulkan | a8cd1c49ecfe9d4dc31af0a50ba7690c61c255c4 | [
"MIT"
] | null | null | null | shaderapivulkan/src/TF2Vulkan/meshes/VulkanMesh.cpp | melvyn2/TF2Vulkan | a8cd1c49ecfe9d4dc31af0a50ba7690c61c255c4 | [
"MIT"
] | null | null | null | #include "TF2Vulkan/IShaderAPI/IShaderAPI_StateManagerDynamic.h"
#include "interface/IMaterialInternal.h"
#include "interface/internal/IBufferPoolInternal.h"
#include "interface/internal/IShaderDeviceInternal.h"
#include "interface/internal/IStateManagerStatic.h"
#include "TF2Vulkan/VulkanFactories.h"
#include "VulkanM... | 26.498521 | 140 | 0.74566 | melvyn2 |
47535de4a05f42be5091ec3b3c518135ce8e4508 | 2,109 | cpp | C++ | shared/Heap/Heap.cpp | alicialink/system-squeeze | f0a82546389d5feae48668352e0b1dcd83100674 | [
"MIT"
] | null | null | null | shared/Heap/Heap.cpp | alicialink/system-squeeze | f0a82546389d5feae48668352e0b1dcd83100674 | [
"MIT"
] | null | null | null | shared/Heap/Heap.cpp | alicialink/system-squeeze | f0a82546389d5feae48668352e0b1dcd83100674 | [
"MIT"
] | null | null | null | #include "Heap.h"
#include <stdlib.h>
int h_parent(int i)
{
return (int)((i - 1) / 2);
}
int h_child_left(int i)
{
return (2 * i) + 1;
}
int h_child_right(int i)
{
return (2 * i) + 2;
}
bool h_create(Heap **h)
{
Heap *newHeap = (Heap *)malloc(sizeof(Heap));
if (newHeap == NULL) {
return false;
}... | 15.857143 | 69 | 0.495021 | alicialink |
4755c138300bb384230b1feed1c8d051175c5b97 | 5,366 | cpp | C++ | libcaf_core/src/response_promise.cpp | Hamdor/actor-framework | ce63edffa2b7acb698cfaea571142029d38e9ef0 | [
"BSD-3-Clause"
] | 2,517 | 2015-01-04T22:19:43.000Z | 2022-03-31T12:20:48.000Z | libcaf_core/src/response_promise.cpp | Hamdor/actor-framework | ce63edffa2b7acb698cfaea571142029d38e9ef0 | [
"BSD-3-Clause"
] | 894 | 2015-01-07T14:21:21.000Z | 2022-03-30T06:37:18.000Z | libcaf_core/src/response_promise.cpp | Hamdor/actor-framework | ce63edffa2b7acb698cfaea571142029d38e9ef0 | [
"BSD-3-Clause"
] | 570 | 2015-01-21T18:59:33.000Z | 2022-03-31T19:00:02.000Z | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#include <algorithm>
#include <utility>
#include "caf/response_promise.hpp"
#include "ca... | 28.242105 | 80 | 0.636974 | Hamdor |
4755cc6261ec0a76d98fa0fc10100bb7156beec2 | 3,766 | cpp | C++ | VrpnNet/AnalogOutputRemote.cpp | vrpn/VrpnNet | b75e5dd846f11b564f6e5ae06317b8781c40142f | [
"MIT"
] | 11 | 2015-04-13T17:53:29.000Z | 2021-06-01T17:33:49.000Z | VrpnNet/AnalogOutputRemote.cpp | vrpn/VrpnNet | b75e5dd846f11b564f6e5ae06317b8781c40142f | [
"MIT"
] | 7 | 2015-04-13T17:45:44.000Z | 2016-09-18T23:42:52.000Z | VrpnNet/AnalogOutputRemote.cpp | vancegroup/VrpnNet | 9767f94c573529f2b4859df1cebb96381b7750a9 | [
"MIT"
] | 4 | 2015-05-20T19:20:29.000Z | 2016-03-20T13:57:28.000Z | // AnalogOutputRemote.cpp: Implementation for Vrpn.AnalogOutputRemote
//
// Copyright (c) 2008-2009 Chris VanderKnyff
//
// 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 rest... | 31.123967 | 95 | 0.754116 | vrpn |
47587fb719b576a9f4a953f4233de13d93ae190f | 21,327 | cpp | C++ | Modules/PhotoacousticsAlgorithms/Algorithms/mitkPhotoacousticBeamformingFilter.cpp | ZP-Hust/MITK | ca11353183c5ed4bc30f938eae8bde43a0689bf6 | [
"BSD-3-Clause"
] | null | null | null | Modules/PhotoacousticsAlgorithms/Algorithms/mitkPhotoacousticBeamformingFilter.cpp | ZP-Hust/MITK | ca11353183c5ed4bc30f938eae8bde43a0689bf6 | [
"BSD-3-Clause"
] | null | null | null | Modules/PhotoacousticsAlgorithms/Algorithms/mitkPhotoacousticBeamformingFilter.cpp | ZP-Hust/MITK | ca11353183c5ed4bc30f938eae8bde43a0689bf6 | [
"BSD-3-Clause"
] | 1 | 2019-01-09T08:20:18.000Z | 2019-01-09T08:20:18.000Z | /*===================================================================
mitkPhotoacousticBeamformingFilter
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; w... | 35.077303 | 235 | 0.648099 | ZP-Hust |
4758a5d70b1bf5667b99161e9cefcf234ba15c33 | 3,732 | cpp | C++ | firmware-latest/communication/src/events.cpp | adeeshag/particle_project | 0c2ab278cf902f97d2422c44c008978be58fe6b7 | [
"Unlicense"
] | null | null | null | firmware-latest/communication/src/events.cpp | adeeshag/particle_project | 0c2ab278cf902f97d2422c44c008978be58fe6b7 | [
"Unlicense"
] | null | null | null | firmware-latest/communication/src/events.cpp | adeeshag/particle_project | 0c2ab278cf902f97d2422c44c008978be58fe6b7 | [
"Unlicense"
] | null | null | null | /**
******************************************************************************
* @file events.cpp
* @authors Zachary Crockett
* @version V1.0.0
* @date 26-Feb-2014
* @brief Internal CoAP event message creation
******************************************************************************
Cop... | 26.097902 | 80 | 0.583333 | adeeshag |
e6e577deb83d81b726fe574676492d8bb7430f7a | 2,263 | cpp | C++ | code/87.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 23 | 2020-03-30T05:44:56.000Z | 2021-09-04T16:00:57.000Z | code/87.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 1 | 2020-05-10T15:04:05.000Z | 2020-06-14T01:21:44.000Z | code/87.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 6 | 2020-03-30T05:45:04.000Z | 2020-08-13T10:01:39.000Z | #include <bits/stdc++.h>
#define INF 2000000000
using namespace std;
typedef long long ll;
int read(){
int f = 1, x = 0;
char c = getchar();
while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();}
while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar();
return f * x;
}
struct TreeNode {
int val... | 31 | 124 | 0.418913 | Nightwish-cn |
e6e6e861d6ae33a6ed1e82d6202e984019b0062d | 3,033 | cpp | C++ | test/module/shared_model/builders/common_objects/signature_builder_test.cpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | test/module/shared_model/builders/common_objects/signature_builder_test.cpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | test/module/shared_model/builders/common_objects/signature_builder_test.cpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. 2018 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... | 35.682353 | 91 | 0.726014 | coderintherye |
e6eda95147638c5a9ab2e6f5107109c2dc181850 | 16,857 | cpp | C++ | src/modrin_motor_plugins/epos2.cpp | ein57ein/modrin | 7ec843439ffb19fb9fb68ca416f78770b5c72228 | [
"BSD-3-Clause"
] | null | null | null | src/modrin_motor_plugins/epos2.cpp | ein57ein/modrin | 7ec843439ffb19fb9fb68ca416f78770b5c72228 | [
"BSD-3-Clause"
] | null | null | null | src/modrin_motor_plugins/epos2.cpp | ein57ein/modrin | 7ec843439ffb19fb9fb68ca416f78770b5c72228 | [
"BSD-3-Clause"
] | null | null | null | #include <pluginlib/class_list_macros.h>
#include <modrin_motor_plugins/epos2.hpp>
PLUGINLIB_EXPORT_CLASS(modrin_motor_plugins::Epos2, modrin::Motor)
namespace modrin_motor_plugins
{
Epos2::Epos2():devhandle(0), lastEpos2ErrorCode(0)
{
ROS_DEBUG("created an instance of epos2-plugin for modrin");
}
... | 34.543033 | 295 | 0.576556 | ein57ein |
e6f237ff9f91f4470cdb7e401b1e5960c0564716 | 2,454 | hh | C++ | nipXray/include/NXChamberParameterisation.hh | maxwell-herrmann/geant4-simple-examples | 0052d40fdc05baef05b4a6873c03d0d54885ad40 | [
"BSD-2-Clause"
] | 9 | 2015-04-27T11:54:19.000Z | 2022-01-30T23:42:00.000Z | nipXray/include/NXChamberParameterisation.hh | maxwell-herrmann/geant4-simple-examples | 0052d40fdc05baef05b4a6873c03d0d54885ad40 | [
"BSD-2-Clause"
] | null | null | null | nipXray/include/NXChamberParameterisation.hh | maxwell-herrmann/geant4-simple-examples | 0052d40fdc05baef05b4a6873c03d0d54885ad40 | [
"BSD-2-Clause"
] | 3 | 2019-12-18T21:11:57.000Z | 2020-05-28T17:30:03.000Z | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef NXChamberParameterisation_H
#define NXChamberParameterisation_H 1
#include "globals.hh"
#include "G4VPVParameterisation.hh"
#include "G4NistManager.... | 34.083333 | 91 | 0.696007 | maxwell-herrmann |
e6f5d5e5ce376f277c99c3f9d56ee7f31d62a478 | 33,983 | hpp | C++ | src/lang/dzm_prc.hpp | arogan-group/DZMLang | 4ef827de34a07fb4f2dde817c297841c25382231 | [
"Apache-2.0"
] | 1 | 2016-09-23T14:29:44.000Z | 2016-09-23T14:29:44.000Z | src/lang/dzm_prc.hpp | arogan-group/DZMLang | 4ef827de34a07fb4f2dde817c297841c25382231 | [
"Apache-2.0"
] | null | null | null | src/lang/dzm_prc.hpp | arogan-group/DZMLang | 4ef827de34a07fb4f2dde817c297841c25382231 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2016 Dominik Madarasz
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 25.941221 | 153 | 0.568549 | arogan-group |
e6f69861901ec37b5cad0bb497aa89182bac1d70 | 290 | cpp | C++ | src/16000/16917.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/16000/16917.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/16000/16917.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
const int INF=1e9;
using namespace std;
int main()
{
int a, b, c, x, y;
cin >> a >> b >> c >> x >> y;
int r1, r2, r3;
r1 = min(x, y) * 2 * c + abs(x - y)*(x > y ? a : b);
r2 = x*a + y*b;
r3 = max(x, y) * 2 * c;
cout << min({ r1, r2, r3 });
} | 19.333333 | 53 | 0.482759 | upple |
e6fcff938d84109a6d190404bd506133a607e31f | 3,685 | cpp | C++ | src/service_discovery.cpp | maxcong001/empty009 | 5fd7a4f2ef3f459ff869ffbd6fb6ac8e97725f64 | [
"MIT"
] | null | null | null | src/service_discovery.cpp | maxcong001/empty009 | 5fd7a4f2ef3f459ff869ffbd6fb6ac8e97725f64 | [
"MIT"
] | null | null | null | src/service_discovery.cpp | maxcong001/empty009 | 5fd7a4f2ef3f459ff869ffbd6fb6ac8e97725f64 | [
"MIT"
] | null | null | null | #include "service_discovery.hpp"
/*********************** Common ***********************/
/**
* @brief Compare functions used for "sort" and "difference"
* @param lhs: pointer reference to common data
* @param rhs: pointer reference to common data
* @return true if lhs < rhs, otherwise return false
*/
bool compare... | 23.621795 | 119 | 0.674084 | maxcong001 |
fc02c2816238aa40862f33daeab3d42036d3192e | 1,966 | hpp | C++ | src/src/lib/geneial/core/population/builder/PermutationChromosomeFactory.hpp | geneial/geneial | 5e525c32b7c1e1e88788644e448e9234c93b55e2 | [
"MIT"
] | 5 | 2015-08-25T15:40:09.000Z | 2020-03-15T19:33:22.000Z | src/src/lib/geneial/core/population/builder/PermutationChromosomeFactory.hpp | geneial/geneial | 5e525c32b7c1e1e88788644e448e9234c93b55e2 | [
"MIT"
] | null | null | null | src/src/lib/geneial/core/population/builder/PermutationChromosomeFactory.hpp | geneial/geneial | 5e525c32b7c1e1e88788644e448e9234c93b55e2 | [
"MIT"
] | 3 | 2019-01-24T13:14:51.000Z | 2022-01-03T07:30:20.000Z | #pragma once
#include <geneial/core/population/builder/PermutationChromosomeFactory.h>
#include <geneial/utility/Random.h>
#include <algorithm>
#include <cassert>
geneial_private_namespace(geneial)
{
geneial_private_namespace(population)
{
geneial_private_namespace(chromosome)
{
using ::geneial::population::chromoso... | 31.206349 | 136 | 0.702442 | geneial |
fc058332b8302cf04188b381800a978a276c22d1 | 1,589 | cpp | C++ | algorithms/cpp/source/candy.cpp | straywarrior/leetcode-solutions | d94749daf7da895b83c6834cb3b1e2a0b8a52ccc | [
"MIT"
] | null | null | null | algorithms/cpp/source/candy.cpp | straywarrior/leetcode-solutions | d94749daf7da895b83c6834cb3b1e2a0b8a52ccc | [
"MIT"
] | null | null | null | algorithms/cpp/source/candy.cpp | straywarrior/leetcode-solutions | d94749daf7da895b83c6834cb3b1e2a0b8a52ccc | [
"MIT"
] | null | null | null | /*
* candy.cpp
* Copyright (C) 2018 StrayWarrior <i@straywarrior.com>
*
* Distributed under terms of the MIT license.
*/
#include "common.hpp"
#define CATCH_CONFIG_MAIN
#include "catch/catch.hpp"
using namespace std;
class Candy {
public:
int candy(vector<int> & ratings) {
return this->solve_trivia... | 27.877193 | 79 | 0.539962 | straywarrior |
fc093012ab6bb16f57f98c62993fecf93857f662 | 3,664 | hxx | C++ | src/private/httpparser.hxx | Targoman/qhttp | 2351076d2e23c8820e6e94d064de689d99edb22f | [
"MIT"
] | 2 | 2020-07-03T06:34:15.000Z | 2020-07-03T19:19:09.000Z | src/private/httpparser.hxx | Targoman/QHttp | 55df46aab918a1f923e8b1b79674cf9f82490bc5 | [
"MIT"
] | null | null | null | src/private/httpparser.hxx | Targoman/QHttp | 55df46aab918a1f923e8b1b79674cf9f82490bc5 | [
"MIT"
] | null | null | null | /** @file httpparser.hxx
*
* @copyright (C) 2016
* @date 2016.05.26
* @version 1.0.0
* @author amir zamani <azadkuh@live.com>
*
*/
#ifndef QHTTP_HTTPPARSER_HXX
#define QHTTP_HTTPPARSER_HXX
#include "qhttpbase.hpp"
///////////////////////////////////////////////////////////////////////////////
namespace qhttp {... | 30.533333 | 79 | 0.593341 | Targoman |
fc0b34e792d9a186d4cb20c5baf0ed4ef3de16f7 | 7,955 | hh | C++ | src/include/SchemaItem.hh | websurfer5/json-schema-enforcer | 99211a602b1c8177d9f9e67cd7773015f74a4080 | [
"Apache-2.0"
] | null | null | null | src/include/SchemaItem.hh | websurfer5/json-schema-enforcer | 99211a602b1c8177d9f9e67cd7773015f74a4080 | [
"Apache-2.0"
] | null | null | null | src/include/SchemaItem.hh | websurfer5/json-schema-enforcer | 99211a602b1c8177d9f9e67cd7773015f74a4080 | [
"Apache-2.0"
] | null | null | null | // SchemaItem.hh
//
// Copyright 2018 Jeffrey Kintscher <websurfer@surf2c.net>
//
// 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... | 39.974874 | 120 | 0.565933 | websurfer5 |
fc12f1bb40762427e02bff17cf8ae9659a485933 | 4,207 | cc | C++ | src/api/render/texture.cc | izzyaxel/Loft | 809b4e3df2c2b08092c6b3a94073f4509240b4f2 | [
"BSD-3-Clause"
] | null | null | null | src/api/render/texture.cc | izzyaxel/Loft | 809b4e3df2c2b08092c6b3a94073f4509240b4f2 | [
"BSD-3-Clause"
] | null | null | null | src/api/render/texture.cc | izzyaxel/Loft | 809b4e3df2c2b08092c6b3a94073f4509240b4f2 | [
"BSD-3-Clause"
] | null | null | null | #include "texture.hh"
#include <glad/glad.h>
Texture::Texture(uint32_t width, uint32_t height, ColorFormat colorFormat, InterpMode mode, bool sRGB)
{
this->fmt = colorFormat;
this->width = width;
this->height = height;
glCreateTextures(GL_TEXTURE_2D, 1, &this->handle);
int32_t f = 0;
if(colorFormat == ColorForm... | 23.634831 | 117 | 0.697884 | izzyaxel |
fc189b0e59158000429902dc22d56f8eff5d771f | 2,647 | hh | C++ | kernel/host/host-common/util/FDReceiver.hh | ManyThreads/mythos | 723a4b11e454a0c28e096755140c5e0eecf6a211 | [
"MIT"
] | 12 | 2016-10-06T14:02:17.000Z | 2021-09-12T06:14:30.000Z | kernel/host/host-common/util/FDReceiver.hh | ManyThreads/mythos | 723a4b11e454a0c28e096755140c5e0eecf6a211 | [
"MIT"
] | 110 | 2017-06-22T20:10:17.000Z | 2022-01-18T12:58:40.000Z | kernel/host/host-common/util/FDReceiver.hh | ManyThreads/mythos | 723a4b11e454a0c28e096755140c5e0eecf6a211 | [
"MIT"
] | 6 | 2016-12-09T08:30:08.000Z | 2021-12-10T19:05:04.000Z | /* -*- mode:C++; indent-tabs-mode:nil; -*- */
/* MIT License -- MyThOS: The Many-Threads Operating System
*
* 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, includi... | 24.284404 | 88 | 0.68606 | ManyThreads |
fc1e1dedb28f9af089ad41fe9aa441064b3847a0 | 390 | cpp | C++ | src/top.chenqwwq/acwing/content/_52/_1.cpp | chenqwwq/_leetcode | a8055c53c9a68cedb1b57a56f98e83709448e4cb | [
"Apache-2.0"
] | null | null | null | src/top.chenqwwq/acwing/content/_52/_1.cpp | chenqwwq/_leetcode | a8055c53c9a68cedb1b57a56f98e83709448e4cb | [
"Apache-2.0"
] | null | null | null | src/top.chenqwwq/acwing/content/_52/_1.cpp | chenqwwq/_leetcode | a8055c53c9a68cedb1b57a56f98e83709448e4cb | [
"Apache-2.0"
] | null | null | null | //
// Created by chenqwwq on 2022/5/21.
//
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int num;
cin >> num;
int ans = 0, i = 1;
while (num) {
int cost = (i * (i + 1)) / 2;
if (num < cost) break;
num -= cost;
... | 15.6 | 37 | 0.471795 | chenqwwq |
fc2206d293c8a442af3c660c9af9e2f2af7492de | 282 | cpp | C++ | src/construction/Constraints.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | 3 | 2021-09-08T07:28:13.000Z | 2022-03-02T21:12:40.000Z | src/construction/Constraints.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | 1 | 2021-09-21T14:40:55.000Z | 2021-09-26T01:19:38.000Z | src/construction/Constraints.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | null | null | null | //
// Created by James Noeckel on 1/16/21.
//
#include "Constraints.h"
Edge2d ConnectionConstraint::getGuide() const {
Eigen::Vector2d dir = (edge.second - edge.first).normalized();
return {edge.first - dir * startGuideExtention, edge.second + dir * endGuideExtension};
}
| 25.636364 | 91 | 0.702128 | ShnitzelKiller |
fc23b7dac87be87ec34d96a2f549355e6b66018c | 3,965 | hpp | C++ | src/network.hpp | packetgenie/PacketGenie | cf09d39f53b9e6119c0ebe77134a032a082c81fd | [
"Apache-2.0"
] | 1 | 2015-08-20T12:31:02.000Z | 2015-08-20T12:31:02.000Z | src/network.hpp | packetgenie/PacketGenie | cf09d39f53b9e6119c0ebe77134a032a082c81fd | [
"Apache-2.0"
] | null | null | null | src/network.hpp | packetgenie/PacketGenie | cf09d39f53b9e6119c0ebe77134a032a082c81fd | [
"Apache-2.0"
] | 2 | 2015-08-19T14:47:32.000Z | 2019-08-30T15:58:07.000Z | // FILE: src/network.hpp Date Modified: March 17, 2015
// PacketGenie
// Copyright 2014 The Regents of the University of Michigan
// Dong-Hyeon Park, Ritesh Parikh, Valeria Bertacco
//
// PacketGenie is licensed under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance
/... | 26.790541 | 76 | 0.669357 | packetgenie |
fc27a28e41f64ee3f80965bb901ed85a1e9059ce | 3,560 | cpp | C++ | src/Models/NeuronNetwork.cpp | SpiritSeeker/SpikeSim | c0ce896df15ed4bd46deb1aa61a3df637c0b6078 | [
"Apache-2.0"
] | null | null | null | src/Models/NeuronNetwork.cpp | SpiritSeeker/SpikeSim | c0ce896df15ed4bd46deb1aa61a3df637c0b6078 | [
"Apache-2.0"
] | null | null | null | src/Models/NeuronNetwork.cpp | SpiritSeeker/SpikeSim | c0ce896df15ed4bd46deb1aa61a3df637c0b6078 | [
"Apache-2.0"
] | null | null | null | #include "sspch.h"
#include "NeuronNetwork.h"
namespace SpikeSim {
NeuronNetwork::NeuronNetwork()
{}
void NeuronNetwork::OnUpdate(const std::vector<std::vector<double>>& inputCurrents, uint32_t nIter)
{
uint32_t inputCounter = 0;
for (int i = 0; i < m_Neurons.size(); i++)
{
if (m_InputNeuro... | 29.666667 | 120 | 0.613764 | SpiritSeeker |
fc2be6da9d115404b750a37739abeeefef952fa1 | 1,658 | hh | C++ | src/thirdparty/acg_localizer/src/math/SFMT_src/SFMT-params607.hh | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | 1,102 | 2017-02-02T15:39:57.000Z | 2022-03-23T09:43:29.000Z | src/thirdparty/acg_localizer/src/math/SFMT_src/SFMT-params607.hh | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | 339 | 2017-02-17T09:55:38.000Z | 2022-03-29T11:44:01.000Z | src/thirdparty/acg_localizer/src/math/SFMT_src/SFMT-params607.hh | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | 331 | 2017-02-02T15:34:42.000Z | 2022-03-23T02:42:24.000Z | #ifndef SFMT_PARAMS607_H
#define SFMT_PARAMS607_H
#define POS1 2
#define SL1 15
#define SL2 3
#define SR1 13
#define SR2 3
#define MSK1 0xfdff37ffU
#define MSK2 0xef7f3f7dU
#define MSK3 0xff777b7dU
#define MSK4 0x7ff7fb2fU
#define PARITY1 0x00000001U
#define PARITY2 0x00000000U
#define PARITY3 0x00000000U
#define PARI... | 35.276596 | 72 | 0.693607 | rajvishah |
fc2fb291cd91df0b25212bfff4d27b4db24e9531 | 2,639 | cpp | C++ | HaloTAS/MCCTAS/speedometer.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | 6 | 2019-09-10T19:47:04.000Z | 2020-11-26T08:32:36.000Z | HaloTAS/MCCTAS/speedometer.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | 13 | 2018-11-24T09:37:49.000Z | 2021-10-22T02:29:11.000Z | HaloTAS/MCCTAS/speedometer.cpp | s3anyboy/HaloTAS | 9584786f19e1475399298fda2d5783d47623cccd | [
"MIT"
] | 3 | 2020-07-28T09:19:14.000Z | 2020-09-02T04:48:49.000Z | #include "pch.h"
#include "speedometer.h"
void speedometer::clear()
{
mDataPoints.clear();
mSumTotalDistanceXYTravelled = 0.0f;
mSumTotalDistanceXYZTravelled = 0.0f;
mSumTotalDistanceCount = 0;
}
float vec3_xy_distance(glm::vec3 a, glm::vec3 b) {
return glm::distance(
glm::vec2(a.x, a.y),
glm::vec2(b.x, b.y)... | 25.872549 | 80 | 0.71618 | s3anyboy |
fc3195ad06f02ab26d0c17c74229563b76f76652 | 2,208 | cpp | C++ | typo-poi/source/UTF8.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 14 | 2017-06-16T22:52:38.000Z | 2022-02-14T04:11:06.000Z | typo-poi/source/UTF8.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 2 | 2016-03-13T14:50:04.000Z | 2019-04-01T09:53:17.000Z | typo-poi/source/UTF8.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 2 | 2016-03-13T14:05:17.000Z | 2018-09-18T01:28:42.000Z | // Copyright (c) 2015 mogemimi. Distributed under the MIT license.
#include "utf8.h"
#include <cassert>
#include <utility>
#define USE_LLVM_CONVERTUTF 1
#if defined(USE_LLVM_CONVERTUTF)
#include "thirdparty/ConvertUTF.h"
#include <vector>
#else
#include <codecvt>
#include <locale>
#endif
namespace somera {
std::u32... | 25.37931 | 78 | 0.664402 | mogemimi |
fc32a97b374aebf8f4b5f922eb78cb6b7e4e0e15 | 1,913 | cpp | C++ | Source/DScene_Main2.cpp | XDApp/DawnFramework | 4963be2c4ead995a3b02fb0c683c3f77662b9916 | [
"MIT"
] | 1 | 2015-06-21T08:04:36.000Z | 2015-06-21T08:04:36.000Z | Source/DScene_Main2.cpp | XDApp/DawnFramework | 4963be2c4ead995a3b02fb0c683c3f77662b9916 | [
"MIT"
] | null | null | null | Source/DScene_Main2.cpp | XDApp/DawnFramework | 4963be2c4ead995a3b02fb0c683c3f77662b9916 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "DScene_Main2.h"
DScene_Main2::DScene_Main2()
{
}
DScene_Main2::~DScene_Main2()
{
}
void DScene_Main2::Update()
{
DScene::Update();
}
void DScene_Main2::Render()
{
DScene::Render();
glUseProgram(Program->GetProgram());
glEnableVertexAttribArray(vertexPosition_modelspaceID);
glBin... | 22.505882 | 103 | 0.736017 | XDApp |
fc3dbcd1b30877ed8bea9d755e097cc036f440b9 | 1,103 | hpp | C++ | src/prsClass.hpp | GeoKon/GKE-L1 | 1ae69b3fdcdf0bb20df1a5afc011ad2d682e29d2 | [
"MIT"
] | 3 | 2019-01-09T04:30:41.000Z | 2019-08-17T03:08:48.000Z | src/prsClass.hpp | GeoKon/GKE-L1 | 1ae69b3fdcdf0bb20df1a5afc011ad2d682e29d2 | [
"MIT"
] | null | null | null | src/prsClass.hpp | GeoKon/GKE-L1 | 1ae69b3fdcdf0bb20df1a5afc011ad2d682e29d2 | [
"MIT"
] | null | null | null | #pragma once
#define DQUOTE '"'
#define LCURL pr.moveAfter( '{' )
#define RCURL pr.moveAfter( '}' )
#define COLON pr.moveAfter( ':' )
#define COMMA pr.moveAfter( ',' )
#define COPYS pr.copyString()
#define COPYD pr.copyDigits()
#define EXPECT(A) pr.expect(A)
#define FIND(A) pr.find(A)
#define INIT(A) pr.ini... | 23.978261 | 78 | 0.563917 | GeoKon |
fc3e0e20de7584ae0fc60495db6d357ca298add9 | 39,391 | cpp | C++ | nfc/src/DOOM/doomclassic/doom/p_enemy.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | 1 | 2018-11-07T22:44:23.000Z | 2018-11-07T22:44:23.000Z | ekronclassic/ekron/p_enemy.cpp | vic3t3chn0/OpenKrown | 201c8fb6895cb0439e39c984d2fbc2c2eaf185b4 | [
"MIT"
] | null | null | null | ekronclassic/ekron/p_enemy.cpp | vic3t3chn0/OpenKrown | 201c8fb6895cb0439e39c984d2fbc2c2eaf185b4 | [
"MIT"
] | null | null | null | /*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... | 19.413997 | 366 | 0.595796 | 1337programming |
fc46f81abc7ae8be166f4cabead98178c3e38f0a | 7,157 | cpp | C++ | source/NanairoCore/Color/spectral_transport.cpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 30 | 2015-09-06T03:14:29.000Z | 2021-06-18T11:00:19.000Z | source/NanairoCore/Color/spectral_transport.cpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 31 | 2016-01-14T14:50:34.000Z | 2018-06-25T13:21:48.000Z | source/NanairoCore/Color/spectral_transport.cpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 6 | 2017-04-09T13:07:47.000Z | 2021-05-29T21:17:34.000Z | /*!
\file spectral_transport.cpp
\author Sho Ikeda
Copyright (c) 2015-2018 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#include "spectral_transport.hpp"
// Standard C++ library
#include <cmath>
#include <vector>
// Zisc
#include "zisc/arith_... | 34.244019 | 98 | 0.623585 | byzin |
fc491731ed86969ef7c98516499272f89a2775e6 | 751 | cpp | C++ | LeetCode/Check If It Is a Straight Line.cpp | Rupali409/CPP-Questions-and-Solutions | a42664302f18b7d99aac2501bcf956950e3cc61a | [
"MIT"
] | 42 | 2021-09-26T18:02:52.000Z | 2022-03-15T01:52:15.000Z | LeetCode/Check If It Is a Straight Line.cpp | Rupali409/CPP-Questions-and-Solutions | a42664302f18b7d99aac2501bcf956950e3cc61a | [
"MIT"
] | 404 | 2021-09-24T19:55:10.000Z | 2021-11-03T05:47:47.000Z | LeetCode/Check If It Is a Straight Line.cpp | Rupali409/CPP-Questions-and-Solutions | a42664302f18b7d99aac2501bcf956950e3cc61a | [
"MIT"
] | 140 | 2021-09-22T20:50:04.000Z | 2022-01-22T16:59:09.000Z | //1232. Check If It Is a Straight Line
//https://leetcode.com/problems/check-if-it-is-a-straight-line/
class Solution {
public:
bool checkStraightLine(vector<vector<int>>& coordinates) {
//if points are two then return true
if(coordinates.size()==2)
return true;
else{
int ... | 34.136364 | 107 | 0.54727 | Rupali409 |
fc54ebae2d6bc709d29b0f08c882c3a4bb9d7360 | 9,852 | cxx | C++ | bpkg/manifest-utility.cxx | build2/bpkg | bd939839b44d90d027517e447537dd52539269ff | [
"MIT"
] | 19 | 2018-05-30T12:01:25.000Z | 2022-01-29T21:37:23.000Z | bpkg/manifest-utility.cxx | build2/bpkg | bd939839b44d90d027517e447537dd52539269ff | [
"MIT"
] | 2 | 2019-03-18T22:31:45.000Z | 2020-07-28T06:44:03.000Z | bpkg/manifest-utility.cxx | build2/bpkg | bd939839b44d90d027517e447537dd52539269ff | [
"MIT"
] | 1 | 2019-02-04T02:58:14.000Z | 2019-02-04T02:58:14.000Z | // file : bpkg/manifest-utility.cxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#include <bpkg/manifest-utility.hxx>
#include <cstring> // strcspn()
#include <libbutl/b.hxx>
#include <libbutl/sha256.hxx>
#include <bpkg/package.hxx> // wildcard_version
#include <bpkg/diagnostics.hxx>
#i... | 27.290859 | 79 | 0.554101 | build2 |
fc61559c4a4edb821cb64c7d5840c59af574094c | 940 | cpp | C++ | Stp/Base/Thread/ThreadChecker.cpp | markazmierczak/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:52.000Z | 2019-07-11T12:47:52.000Z | Stp/Base/Thread/ThreadChecker.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | null | null | null | Stp/Base/Thread/ThreadChecker.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:53.000Z | 2019-07-11T12:47:53.000Z | // Copyright 2017 Polonite Authors. All rights reserved.
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "Base/Thread/ThreadChecker.h"
#if ASSERT_IS_ON
namespace stp {
ThreadChecker::Thr... | 24.736842 | 73 | 0.760638 | markazmierczak |
fc6a4314f477dffa086ae1c52382c4b19b12fe46 | 1,774 | cpp | C++ | applications/about/main.cpp | innerout/skift | e44a77adafa99676fa1a011d94b7a44eefbce18c | [
"MIT"
] | 2 | 2021-08-14T16:03:48.000Z | 2021-11-09T10:29:36.000Z | applications/about/main.cpp | optimisticside/skift | 3d59b222d686c83e370e8075506d129f8ff1fdac | [
"MIT"
] | null | null | null | applications/about/main.cpp | optimisticside/skift | 3d59b222d686c83e370e8075506d129f8ff1fdac | [
"MIT"
] | 2 | 2020-10-13T14:25:30.000Z | 2020-10-13T14:39:40.000Z | #include <libsystem/BuildInfo.h>
#include <libwidget/Application.h>
#include <libwidget/Markup.h>
#include <libwidget/Widgets.h>
#include <libwidget/widgets/TextField.h>
static auto logo_based_on_color_scheme()
{
auto path = theme_is_dark() ? "/Applications/about/logo-white.png"
: "... | 30.067797 | 106 | 0.614994 | innerout |
fc6ff2dbce458572e2e499af449318b67ccb40a3 | 2,115 | cpp | C++ | modules/libavparser/libavparser.cpp | Colinwang531/av_converged_communication_system_architecture | d8d8a2ff72b5342fd0c3426978884c0e9c43dde8 | [
"MIT"
] | 2 | 2021-12-10T07:45:30.000Z | 2021-12-17T01:42:36.000Z | modules/libavparser/libavparser.cpp | Colinwang531/av_converged_communication_system_architecture | d8d8a2ff72b5342fd0c3426978884c0e9c43dde8 | [
"MIT"
] | null | null | null | modules/libavparser/libavparser.cpp | Colinwang531/av_converged_communication_system_architecture | d8d8a2ff72b5342fd0c3426978884c0e9c43dde8 | [
"MIT"
] | null | null | null | #include "boost/bind/bind.hpp"
using namespace boost::placeholders;
#include "boost/make_shared.hpp"
#include "error_code.h"
#include "map/unordered_map.h"
#include "buffer/buffer_parser.h"
#include "ps/ps_parser.h"
#include "rtp/rtp_es_parser.h"
#include "libavparser.h"
using namespace module::av::stream;
using AVPar... | 21.15 | 74 | 0.705437 | Colinwang531 |
fc713583a57526add1657960aa4e6191346c46ac | 753 | hpp | C++ | cpp_kernels/global/mean_std_dev_u8.hpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-06-08T08:58:54.000Z | 2021-06-08T08:58:54.000Z | cpp_kernels/global/mean_std_dev_u8.hpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | 1 | 2021-11-13T14:55:55.000Z | 2021-11-13T14:55:55.000Z | cpp_kernels/global/mean_std_dev_u8.hpp | HipaccVX/HipaccVX | 0d469748df11c95f916b5a70f0006878f8550e3c | [
"MIT"
] | null | null | null | void Mean_Std_Dev_u8(float *out_mean, float *out_stddev,
unsigned char *in_data, const unsigned int in_width, const unsigned int in_height)
{
float fmean = 0.0f, fstddev = 0.0f;
double sum = 0.0, sum_diff_sqrs = 0.0;
for (long long y = 0; y < in_height; y++)
{
for (long long x = 0; x < in_wi... | 26.892857 | 103 | 0.609562 | HipaccVX |
fc720d7eca2c7568df0133c28d7a5ef10fff7931 | 3,317 | cpp | C++ | Code/GeometryCommand/GeoCommandCreateFace.cpp | baojunli/FastCAE | a3f99f6402da564df87fcef30674ce5f44379962 | [
"BSD-3-Clause"
] | 2 | 2020-02-21T01:04:35.000Z | 2020-02-21T03:35:37.000Z | Code/GeometryCommand/GeoCommandCreateFace.cpp | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | Code/GeometryCommand/GeoCommandCreateFace.cpp | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | null | null | null | #include "GeoCommandCreateFace.h"
#include "geometry/geometrySet.h"
#include "geometry/geometryData.h"
#include <BRepFilletAPI_MakeChamfer.hxx>
#include <TopExp.hxx>
#include <TopoDS.hxx>
#include <TopoDS_TShape.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Edge.hxx>
#include <T... | 23.863309 | 84 | 0.678324 | baojunli |
fc74bb7873f7a111ff7dc13f49fcb913a6a953cd | 564 | cpp | C++ | BFEngine/src/core/window.cpp | YnopTafGib/BigFatEngine | 267758779747adfd9e1d0eb6c7674158ecbe15c6 | [
"MIT"
] | null | null | null | BFEngine/src/core/window.cpp | YnopTafGib/BigFatEngine | 267758779747adfd9e1d0eb6c7674158ecbe15c6 | [
"MIT"
] | null | null | null | BFEngine/src/core/window.cpp | YnopTafGib/BigFatEngine | 267758779747adfd9e1d0eb6c7674158ecbe15c6 | [
"MIT"
] | null | null | null | #include "bfepch.hpp"
#include "window.hpp"
namespace BFE
{
Window::Window( const std::string& p_title, const ivec2& p_size ) : m_title( p_title ), m_size( p_size )
{
glfwInit();
glfwWindowHint( GLFW_CLIENT_API, GLFW_NO_API );
glfwWindowHint( GLFW_RESIZABLE, GLFW_FALSE );
m_window = glfwCreateWindow(... | 21.692308 | 104 | 0.684397 | YnopTafGib |
fc778e36a0b8f448698928817006dc79942c08d6 | 5,032 | hxx | C++ | OCC/opencascade-7.2.0/x64/debug/inc/BRepOffsetAPI_MakeEvolved.hxx | jiaguobing/FastCAE | 2348ab87e83fe5c704e4c998cf391229c25ac5d5 | [
"BSD-3-Clause"
] | 2 | 2020-02-21T01:04:35.000Z | 2020-02-21T03:35:37.000Z | OCC/opencascade-7.2.0/x64/debug/inc/BRepOffsetAPI_MakeEvolved.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | OCC/opencascade-7.2.0/x64/debug/inc/BRepOffsetAPI_MakeEvolved.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2021-11-21T13:03:26.000Z | 2021-11-21T13:03:26.000Z | // Created on: 1995-09-18
// Created by: Bruno DUMORTIER
// Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GN... | 37.552239 | 325 | 0.75159 | jiaguobing |
fc77e164cdb591239d9a443b9f3675442011aae5 | 2,690 | cc | C++ | control/vanes_generated.cc | sentree/hover-jet | 7c0f03e57ecfd07a7a167b3ae509700fb48b8764 | [
"MIT"
] | 10 | 2018-12-26T23:08:40.000Z | 2021-02-04T23:22:01.000Z | control/vanes_generated.cc | sentree/hover-jet | 7c0f03e57ecfd07a7a167b3ae509700fb48b8764 | [
"MIT"
] | 40 | 2018-12-15T21:10:04.000Z | 2021-07-29T06:21:22.000Z | control/vanes_generated.cc | sentree/hover-jet | 7c0f03e57ecfd07a7a167b3ae509700fb48b8764 | [
"MIT"
] | 6 | 2018-12-15T20:46:19.000Z | 2020-11-27T09:39:34.000Z | /* Don't edit this; this code was generated by op_graph */
#include "control/vanes_generated.hh"
namespace jet {
namespace control {
VecNd<4>
QuadraframeStatusDelta::to_vector(const QuadraframeStatusDelta &in_grp) {
const VecNd<4> out =
(VecNd<4>() << (in_grp.servo_0_angle_rad_error),
(in_grp.servo_1_an... | 44.833333 | 79 | 0.697026 | sentree |
fc79a4d089f7c42a53a09a502b9c66313b473aa1 | 660 | cpp | C++ | leetcode/852_easy_peak-index-in-a-mountain-array.cpp | shoryaconsul/code_practice | f04eeff266beffbba6d9f22e6f8c5861f0dbf998 | [
"MIT"
] | null | null | null | leetcode/852_easy_peak-index-in-a-mountain-array.cpp | shoryaconsul/code_practice | f04eeff266beffbba6d9f22e6f8c5861f0dbf998 | [
"MIT"
] | null | null | null | leetcode/852_easy_peak-index-in-a-mountain-array.cpp | shoryaconsul/code_practice | f04eeff266beffbba6d9f22e6f8c5861f0dbf998 | [
"MIT"
] | null | null | null | class Solution {
public:
int peakIndexInMountainArray(vector<int>& arr) {
int start = 0;
int end = arr.size()-1;
int mid;
while(start+2 <= end){
mid = start + (end-start)/2;
if(arr[mid] > arr[mid-1] && arr[mid] > arr[mid+1]) return mid;
... | 28.695652 | 74 | 0.442424 | shoryaconsul |
fc79af0f5598d3a659a11f37aa347ffabfa0e670 | 9,022 | cpp | C++ | source/xbox360/brfilenamexbox360.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 115 | 2015-01-18T17:29:30.000Z | 2022-01-30T04:31:48.000Z | source/xbox360/brfilenamexbox360.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 9 | 2015-01-22T04:53:38.000Z | 2015-01-31T13:52:40.000Z | source/xbox360/brfilenamexbox360.cpp | Olde-Skuul/burgerlib | 80848a4dfa17c5c05095ecea14a9bd87f86dfb9d | [
"Zlib"
] | 9 | 2015-01-23T20:06:46.000Z | 2020-05-20T16:06:00.000Z | /***************************************
Filename Class
Xbox 360 specific code
Copyright (c) 1995-2017 by Rebecca Ann Heineman <becky@burgerbecky.com>
It is released under an MIT Open Source license. Please see LICENSE for
license details. Yes, you can use it in a commercial title without paying
anything, just... | 28.282132 | 79 | 0.656728 | Olde-Skuul |
fc7e58b4c347acde1e49ff082be26e051fff46f3 | 958 | cpp | C++ | source/ashespp/Buffer/VertexBuffer.cpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | source/ashespp/Buffer/VertexBuffer.cpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | source/ashespp/Buffer/VertexBuffer.cpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
This file belongs to Ashes.
See LICENSE file in root folder.
*/
#include "ashespp/Buffer/VertexBuffer.hpp"
namespace ashes
{
VertexBufferBase::VertexBufferBase( Device const & device
, VkDeviceSize size
, VkBufferUsageFlags usage
, QueueShare sharingMode )
: VertexBufferBase{ device, "VertexBuffer", size, ... | 23.365854 | 85 | 0.729645 | DragonJoker |
fc8093dd6f33bc5e48bbc5b987201084ac954fd8 | 594 | cc | C++ | bindings.cc | jwerle/repo | 15d07ce6d039766e7c3f4bda6652430eb7686d7b | [
"MIT"
] | 1 | 2022-02-27T20:41:57.000Z | 2022-02-27T20:41:57.000Z | bindings.cc | jwerle/repo | 15d07ce6d039766e7c3f4bda6652430eb7686d7b | [
"MIT"
] | null | null | null | bindings.cc | jwerle/repo | 15d07ce6d039766e7c3f4bda6652430eb7686d7b | [
"MIT"
] | null | null | null |
#include <v8.h>
#include <node.h>
#include "repo.h"
#define str(s) v8::String::New(s)
class User {
// repo_user_t *ref_;
v8::Persistent<v8::Object> obj_;
public:
User () {
// ref_ = repo_user_new();
obj_->SetPointerInInternalField(0, this);
}
v8::Handle<v8::Object>
ToObject () {
return obj_;
}... | 16.5 | 44 | 0.648148 | jwerle |
fc8ac01aa8ee29821a616a46a192c8b5dacf67df | 1,223 | cpp | C++ | searching-algorithms/binarySearch.cpp | Divyansh1315/data-structures-and-algorithms-code | 46b0bec41f022b60be4798227a5f5fc86dccee1a | [
"MIT"
] | 1 | 2022-02-09T14:28:28.000Z | 2022-02-09T14:28:28.000Z | searching-algorithms/binarySearch.cpp | Divyansh1315/data-structures-and-algorithms-code | 46b0bec41f022b60be4798227a5f5fc86dccee1a | [
"MIT"
] | 1 | 2022-02-02T04:58:10.000Z | 2022-02-02T04:58:10.000Z | searching-algorithms/binarySearch.cpp | Divyansh1315/data-structures-and-algorithms-code | 46b0bec41f022b60be4798227a5f5fc86dccee1a | [
"MIT"
] | 1 | 2022-02-02T00:23:59.000Z | 2022-02-02T00:23:59.000Z | #include <bits/stdc++.h>
using namespace std;
// iterative approach
/*
int binarySearch(int arr[],int element, int low, int high) {
while(low <= high) {
int mid = low + (high - low)/2;
if(arr[mid] == element)
return mid;
else if(arr[mid] < element)
low = mid + 1;
else
high = mid - 1... | 23.075472 | 65 | 0.553557 | Divyansh1315 |
fc8c396a25870fcdf1cf16138b72464a1dfeab9a | 7,917 | cc | C++ | nox/src/nox/netapps/hoststate/hosttracker.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/nox/netapps/hoststate/hosttracker.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/nox/netapps/hoststate/hosttracker.cc | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | #include "hosttracker.hh"
#include <boost/bind.hpp>
namespace vigil
{
static Vlog_module lg("hosttracker");
Host_location_event::Host_location_event(const ethernetaddr host_,
const list<hosttracker::location> loc_,
enum type type_):
Event(static_get_name()), host(host_), eventType(type_)
{... | 26.215232 | 81 | 0.629784 | ayjazz |
475c6b2d3279c433fdf8b7adeaa360ee3671a805 | 661 | cpp | C++ | cses/graph-algorithms/flight-discount.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | cses/graph-algorithms/flight-discount.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | cses/graph-algorithms/flight-discount.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
#include <cpplib/graph/shortest-path/dijkstra.hpp>
int32_t main(){
// https://cses.fi/problemset/task/1195
desync();
int n, m;
cin >> n >> m;
vvii adj(n+1), adjinv(n+1);
for(int i=0; i<m; ++i){
int a, b, c;
cin >> a >> b >> c;
adj[a].pb({b, c... | 24.481481 | 75 | 0.465961 | tysm |
47614d5c08eaa65b87512ced2d003ab1dd8dc524 | 21,690 | cpp | C++ | Extensions/ZilchShaders/LibraryTranslator.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 52 | 2018-09-11T17:18:35.000Z | 2022-03-13T15:28:21.000Z | Extensions/ZilchShaders/LibraryTranslator.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 1,409 | 2018-09-19T18:03:43.000Z | 2021-06-09T08:33:33.000Z | Extensions/ZilchShaders/LibraryTranslator.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 26 | 2018-09-11T17:16:32.000Z | 2021-11-22T06:21:19.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Joshua Davis
/// Copyright 2015, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include "Precompiled.hpp"
namespace Zero
{
//---------------... | 41.235741 | 198 | 0.734071 | RachelWilSingh |
47684729576dfa76505d3551eec1f5544e4b1749 | 325 | cc | C++ | common/buffer/buffer_error.cc | changchengx/ReplicWBCache | f0a8ef3108513fcac3a2291dafaebfb52cacfcac | [
"Apache-2.0"
] | null | null | null | common/buffer/buffer_error.cc | changchengx/ReplicWBCache | f0a8ef3108513fcac3a2291dafaebfb52cacfcac | [
"Apache-2.0"
] | null | null | null | common/buffer/buffer_error.cc | changchengx/ReplicWBCache | f0a8ef3108513fcac3a2291dafaebfb52cacfcac | [
"Apache-2.0"
] | null | null | null | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright(c) 2020 Liu, Changcheng <changcheng.liu@aliyun.com>
*/
#include <iostream>
#include "buffer/buffer_error.h"
std::ostream& spec::buffer::operator<<(std::ostream& out, const spec::buffer::error& berror) {
const char* info = berror.what();
return out << inf... | 25 | 94 | 0.683077 | changchengx |
476c479cdfcd3cbd35ea8f9f9d6f33c1e5e24777 | 338 | cc | C++ | lib/AST/OutputPort.cc | rawatamit/scheme | 2c5e121fa873a2fb7762b69027480e28686bbb87 | [
"MIT"
] | null | null | null | lib/AST/OutputPort.cc | rawatamit/scheme | 2c5e121fa873a2fb7762b69027480e28686bbb87 | [
"MIT"
] | null | null | null | lib/AST/OutputPort.cc | rawatamit/scheme | 2c5e121fa873a2fb7762b69027480e28686bbb87 | [
"MIT"
] | null | null | null | #include "AST/OutputPort.h"
Scheme::OutputPort::OutputPort(FILE* out) :
Scheme::SchemeObject(Scheme::SchemeObject::OUTPUT_PORT_TY), out_(out)
{}
Scheme::OutputPort::~OutputPort()
{}
FILE* Scheme::OutputPort::getOutputStream() const {
return out_;
}
int Scheme::OutputPort::closeOutputStream() {
retur... | 19.882353 | 77 | 0.707101 | rawatamit |
476e156b97f8e3552d02104d5edbe3c0bde6a514 | 9,400 | cpp | C++ | BesImage/appConfig.cpp | BensonLaur/BesImage | 63e32cc35db093fbe3f3033c32837ee6595d8c49 | [
"MIT"
] | 2 | 2019-10-17T06:13:13.000Z | 2020-05-24T12:39:47.000Z | BesImage/appConfig.cpp | BensonLaur/BesImage | 63e32cc35db093fbe3f3033c32837ee6595d8c49 | [
"MIT"
] | null | null | null | BesImage/appConfig.cpp | BensonLaur/BesImage | 63e32cc35db093fbe3f3033c32837ee6595d8c49 | [
"MIT"
] | 3 | 2019-06-30T02:31:42.000Z | 2021-11-30T02:14:24.000Z | #include "appConfig.h"
AppConfig& AppConfig::GetInstance()
{
static AppConfig* instance = nullptr;
if(instance == nullptr)
instance = new AppConfig();
return *instance;
}
//获得打数 (如果未加载自动去文件读取,已加载则使用已载入的参数。bForceLoadFromFile 强制从文件获得最新参数)
bool AppConfig::GetAppParameter(AppConfigParameter& ... | 29.936306 | 177 | 0.58266 | BensonLaur |
47796a9a1dbf55676661038472e0926a913caf1b | 820 | cpp | C++ | CorrelationApp/CheckCorrelation/main.cpp | zkbreeze/KunPBR | 9f545a4e589998691b469bbcadb65a63ac826ebd | [
"BSD-3-Clause"
] | null | null | null | CorrelationApp/CheckCorrelation/main.cpp | zkbreeze/KunPBR | 9f545a4e589998691b469bbcadb65a63ac826ebd | [
"BSD-3-Clause"
] | null | null | null | CorrelationApp/CheckCorrelation/main.cpp | zkbreeze/KunPBR | 9f545a4e589998691b469bbcadb65a63ac826ebd | [
"BSD-3-Clause"
] | null | null | null | //
// main.cpp
//
//
// Created by Kun Zhao on 2015-12-11 15:22:50.
//
//
#include <iostream>
#include <fstream>
#include "Correlation.h"
// Load test csv data
int main( int argc, char** argv )
{
std::ifstream ifs( argv[1], std::ifstream::in );
char* buf = new char[256];
ifs.getline( buf, 256 ); // Skip
ifs.get... | 23.428571 | 80 | 0.62439 | zkbreeze |
47796f2012760298993adf0f73bdbf77d162e967 | 3,064 | cpp | C++ | higan/sfc/coprocessor/icd2/interface/interface.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/sfc/coprocessor/icd2/interface/interface.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/sfc/coprocessor/icd2/interface/interface.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | auto ICD2::lcdScanline() -> void {
if(GameBoy::ppu.status.ly > 143) return; //Vblank
if((GameBoy::ppu.status.ly & 7) == 0) {
write_bank = (write_bank + 1) & 3;
write_addr = 0;
}
}
auto ICD2::lcdOutput(uint2 color) -> void {
uint y = write_addr / 160;
uint x = write_addr % 160;
uint addr = write_ba... | 24.910569 | 90 | 0.574739 | ameer-bauer |
477a2dce24aedf16869dd3b5bd5701dc2f7b277c | 5,374 | hh | C++ | src/Damage/ScalarDamageModel.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Damage/ScalarDamageModel.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Damage/ScalarDamageModel.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// ScalarDamageModel -- Base class for the scalar damage physics models.
// This class does not know how to seed the flaw distribution -- that is
// required of descendant classes.
//
// Created by JMO, Sun Oct 10 17:22:05 PDT 2004
//----... | 36.557823 | 83 | 0.628768 | jmikeowen |
477f6910f6b332be8565a1020006d12339e9f4d7 | 1,693 | cpp | C++ | src/lib/slo/SloInfo.cpp | MarkLeone/PostHaste | 56083e30a58489338e39387981029488d7af2390 | [
"MIT"
] | 4 | 2015-05-07T03:29:52.000Z | 2016-08-29T17:30:15.000Z | src/lib/slo/SloInfo.cpp | MarkLeone/PostHaste | 56083e30a58489338e39387981029488d7af2390 | [
"MIT"
] | 1 | 2018-05-14T04:41:04.000Z | 2018-05-14T04:41:04.000Z | src/lib/slo/SloInfo.cpp | MarkLeone/PostHaste | 56083e30a58489338e39387981029488d7af2390 | [
"MIT"
] | null | null | null | // Copyright 2009 Mark Leone (markleone@gmail.com). All rights reserved.
// Licensed under the terms of the MIT License.
// See http://www.opensource.org/licenses/mit-license.php.
#include "slo/SloInfo.h"
#include "slo/SloInputFile.h"
#include "slo/SloOutputFile.h"
#include <string.h>
int
SloInfo::Read(SloInputFile*... | 33.86 | 79 | 0.558771 | MarkLeone |
4784403837a3640e1fa74c8ff40704737246c70f | 3,593 | cpp | C++ | sample/gl/kalmanfilter/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | 24 | 2017-09-07T16:08:33.000Z | 2022-02-26T16:32:48.000Z | sample/gl/kalmanfilter/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | null | null | null | sample/gl/kalmanfilter/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | 8 | 2018-11-30T02:53:24.000Z | 2021-05-18T06:30:42.000Z | #include "simplesp.h"
#include "spex/spgl.h"
using namespace sp;
class KalmanfilterGUI : public BaseWindow {
private:
void help() {
printf("\n");
}
virtual void init() {
help();
}
virtual void display() {
glClearColor(0.10f, 0.12f, 0.12f, 0.00f);
glClear(GL_CO... | 23.180645 | 126 | 0.367659 | sanko-shoko |
47883c640e13051e023540983403195e1dca9627 | 820 | cpp | C++ | docs/mfc/codesnippet/CPP/ccolordialog-class_5.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 14 | 2018-01-28T18:10:55.000Z | 2021-11-16T13:21:18.000Z | docs/mfc/codesnippet/CPP/ccolordialog-class_5.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/mfc/codesnippet/CPP/ccolordialog-class_5.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-11-01T12:33:08.000Z | 2021-11-16T13:21:19.000Z | // Override OnColorOK to validate the color entered to the
// Red, Green, and Blue edit controls. If the color
// is BLACK (i.e. RGB(0, 0,0)), then force the current color
// selection to be the color initially selected when the
// dialog box is created. The color dialog won't close so
// user can enter a new color.
BO... | 32.8 | 60 | 0.614634 | jmittert |
478b8065eb80f55e29466001e75deb52edbbb88c | 1,900 | cpp | C++ | Ch04/comp3.cpp | rzotya0327/UDProg-Introduction | c64244ee541d4ad0c85645385ef4f0c2e1886621 | [
"CC0-1.0"
] | null | null | null | Ch04/comp3.cpp | rzotya0327/UDProg-Introduction | c64244ee541d4ad0c85645385ef4f0c2e1886621 | [
"CC0-1.0"
] | null | null | null | Ch04/comp3.cpp | rzotya0327/UDProg-Introduction | c64244ee541d4ad0c85645385ef4f0c2e1886621 | [
"CC0-1.0"
] | null | null | null | #include "std_lib_facilities.h"
int main()
{
double number = 0, smallest = 0, largest = 0, convert = 0;
string unit;
const double m_to_cm = 100;
const double in_to_cm = 2.54;
const double ft_to_in = 12;
const double cm_to_m = 0.01;
vector<double> distances; //értékek eltárolása a vectorban
cout <... | 23.75 | 96 | 0.568947 | rzotya0327 |
478ed2e73e827ab55a48aadc2eae9190dcdb2147 | 2,302 | cpp | C++ | src/ZJGUIDataExchange.cpp | sowicm/mb-savedata-editor | 73dfb1c906ea651c0a9eb21b71702af895a3589c | [
"MIT"
] | null | null | null | src/ZJGUIDataExchange.cpp | sowicm/mb-savedata-editor | 73dfb1c906ea651c0a9eb21b71702af895a3589c | [
"MIT"
] | null | null | null | src/ZJGUIDataExchange.cpp | sowicm/mb-savedata-editor | 73dfb1c906ea651c0a9eb21b71702af895a3589c | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "ZJGUIDataExchange.h"
#include "ZJ_Algorithm.h"
void DDX_Text(CDataExchange* pDX, CZJGUI& gui, UINT iView, int nIDC, CString& value)
{
CZJGUIView *pView = gui.GetView(iView);
for (int i = 0; i < pView->GetNumControls(); ++i)
{
if (pView->GetControl(i)->GetID() ... | 28.419753 | 85 | 0.470026 | sowicm |
4796a51b0812e1f9b09a9121f7572f0d11bd228b | 7,078 | cpp | C++ | samples/openNI2_2d-icp-slam/test.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 2 | 2017-03-25T18:09:17.000Z | 2017-05-22T08:14:48.000Z | samples/openNI2_2d-icp-slam/test.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | samples/openNI2_2d-icp-slam/test.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 1 | 2021-08-16T11:50:47.000Z | 2021-08-16T11:50:47.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 35.747475 | 182 | 0.567816 | yhexie |
4799f417e923c2b78dc497746a1dd3e6c2a2f1ec | 762 | cpp | C++ | MrGimmick/BaseEnemySound.cpp | CodingC1402/SpaghettiEngine | 80fddf7c68ae7476a5880aae8fd0eac5bbf6ad1a | [
"MIT"
] | 1 | 2021-06-02T09:31:15.000Z | 2021-06-02T09:31:15.000Z | MrGimmick/BaseEnemySound.cpp | CornyCodingCorn/SpaghettiEngine | 80fddf7c68ae7476a5880aae8fd0eac5bbf6ad1a | [
"MIT"
] | 1 | 2021-07-13T13:56:18.000Z | 2021-07-13T13:56:18.000Z | MrGimmick/BaseEnemySound.cpp | CodingC1402/SpaghettiEngine | 80fddf7c68ae7476a5880aae8fd0eac5bbf6ad1a | [
"MIT"
] | 2 | 2021-04-25T02:08:42.000Z | 2021-04-29T04:18:34.000Z | #include "BaseEnemySound.h"
#include "FieldNames.h"
REGISTER_FINISH(BaseEnemySound, BaseSoundScript) {}
void BaseEnemySound::OnStart()
{
_health = GET_FIRST_SCRIPT_OF_TYPE(HealthScript);
_health->AddToHealthEvent([&](const int& health, const int& delta) {
this->Play(health, delta);
});
BaseSoundScript::OnS... | 18.585366 | 69 | 0.730971 | CodingC1402 |
479c8c6bdcf1594041d33deddb256f189d88cc6e | 9,743 | cpp | C++ | KeyWords/DX10AsmKeyWords.cpp | GPUOpen-Tools/common-src-ShaderUtils | 545195d74ff0758f74ebf9a8b4c541f9390a1df7 | [
"MIT"
] | 18 | 2017-01-28T14:18:44.000Z | 2020-04-29T00:05:10.000Z | KeyWords/DX10AsmKeyWords.cpp | GPUOpen-Archive/common-src-ShaderUtils | 545195d74ff0758f74ebf9a8b4c541f9390a1df7 | [
"MIT"
] | 1 | 2019-02-09T18:00:53.000Z | 2019-02-09T18:00:53.000Z | KeyWords/DX10AsmKeyWords.cpp | GPUOpen-Tools/common-src-ShaderUtils | 545195d74ff0758f74ebf9a8b4c541f9390a1df7 | [
"MIT"
] | 5 | 2018-04-29T09:46:06.000Z | 2019-11-01T23:11:27.000Z | //=====================================================================
//
// Author: AMD Developer Tools Team
// Graphics Products Group
// Developer Tools
// AMD, Inc.
//
// DX10AsmKeywords.cpp
// File contains <Seth file description here>
//
//============================================... | 39.445344 | 248 | 0.655548 | GPUOpen-Tools |
479db04fb3008cba1e3ec58ea4e97fd851c6c5b7 | 3,044 | cc | C++ | day-10/ten.cc | JoBoCl/advent-of-code-2018 | 536bcd422a8289a8944d847c7806a81a1044442d | [
"MIT"
] | null | null | null | day-10/ten.cc | JoBoCl/advent-of-code-2018 | 536bcd422a8289a8944d847c7806a81a1044442d | [
"MIT"
] | null | null | null | day-10/ten.cc | JoBoCl/advent-of-code-2018 | 536bcd422a8289a8944d847c7806a81a1044442d | [
"MIT"
] | null | null | null | #include <algorithm>
#include <fstream>
#include <functional>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <regex>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
struct Star {
int x;
int y;
int u;
... | 20.993103 | 74 | 0.538436 | JoBoCl |
47a41b1dff642d2d8441b83a3b1f3f79aa7397b4 | 2,990 | cpp | C++ | demo/dataflow/pipeline.cpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 2 | 2018-10-31T08:09:03.000Z | 2021-01-18T19:23:54.000Z | demo/dataflow/pipeline.cpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 1 | 2020-02-02T11:58:22.000Z | 2020-02-02T11:58:22.000Z | demo/dataflow/pipeline.cpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 1 | 2019-04-13T09:54:49.000Z | 2019-04-13T09:54:49.000Z | /*
* pipeline.cpp
*
* Created on: 04/05/2016
*
* =========================================================================
* Copyright (C) 2015-, Daniele De Sensi (d.desensi.software@gmail.com)
*
* This file is part of nornir.
*
* nornir is free software: you can redistribute it and/or
* modify it under ... | 25.338983 | 79 | 0.563211 | DanieleDeSensi |
47a839414bbddb9f1dfcfcf391b5a446432faaad | 1,420 | hpp | C++ | test_funcs.hpp | wagavulin/ropencv2 | c57b8611ccc241e0953eb04451bb21cc4d589611 | [
"Apache-2.0"
] | null | null | null | test_funcs.hpp | wagavulin/ropencv2 | c57b8611ccc241e0953eb04451bb21cc4d589611 | [
"Apache-2.0"
] | 6 | 2021-05-24T14:29:40.000Z | 2021-07-04T15:31:46.000Z | test_funcs.hpp | wagavulin/ropencv2 | c57b8611ccc241e0953eb04451bb21cc4d589611 | [
"Apache-2.0"
] | null | null | null | #include "opencv2/core.hpp"
namespace cv
{
CV_EXPORTS_W double bindTest1(int a, CV_IN_OUT Point& b, CV_OUT int* c, int d=10, RNG* rng=0, double e=1.2);
CV_EXPORTS_W void bindTest2(int a);
CV_EXPORTS_W int bindTest3(int a);
CV_EXPORTS_W void bindTest4(int a, CV_IN_OUT Point& pt);
CV_EXPORTS_W void bindTest5(int a, CV_... | 44.375 | 108 | 0.814789 | wagavulin |
47aaad505c523dbf9a61dde609f519c82c5c0414 | 6,339 | cpp | C++ | buffer_stream/buffer_stream_test.cpp | churuxu/codesnippets | 9d01c53a5bd7be29168e3c8bfb27ebacc5164f03 | [
"MIT"
] | 4 | 2018-11-05T03:21:02.000Z | 2021-09-25T15:33:52.000Z | buffer_stream/buffer_stream_test.cpp | churuxu/codesnippets | 9d01c53a5bd7be29168e3c8bfb27ebacc5164f03 | [
"MIT"
] | null | null | null | buffer_stream/buffer_stream_test.cpp | churuxu/codesnippets | 9d01c53a5bd7be29168e3c8bfb27ebacc5164f03 | [
"MIT"
] | 2 | 2021-01-28T08:14:07.000Z | 2021-09-25T15:33:54.000Z | #include "gtest.h"
#include "buffer_stream.h"
//默认模式基本测试
TEST(buffer_stream, test_default){
int len;
void* data;
buffer_stream* s = buffer_stream_create(64);
ASSERT_TRUE(s);
//写入两次,一次读取
buffer_stream_push(s, "hello", 5);
buffer_stream_push(s, "world", 5);
data = buffer_s... | 25.560484 | 65 | 0.589525 | churuxu |
47ace847e2d274e60f2f7f77dbbfabf7e2094d83 | 5,951 | cpp | C++ | buildpng.cpp | iggyvolz/GDD1-Assets | 80449c6860f63460db589727bbc6655537236f73 | [
"MIT"
] | null | null | null | buildpng.cpp | iggyvolz/GDD1-Assets | 80449c6860f63460db589727bbc6655537236f73 | [
"MIT"
] | null | null | null | buildpng.cpp | iggyvolz/GDD1-Assets | 80449c6860f63460db589727bbc6655537236f73 | [
"MIT"
] | null | null | null | #include <png++/png.hpp>
#include "buildpng.h"
#include<cmath>
#include <ft2build.h>
#include<iostream>
using namespace std;
#include FT_FREETYPE_H
bool about(double a, double b, double delta)
{
if(a>b)
{
return (a-b)<delta;
}
return (b-a)<delta;
}
void red(Image& image, png::uint_32 startX, p... | 27.298165 | 99 | 0.524282 | iggyvolz |
47b049c9e4869ebbbd4de24229d857dc7f9d8ba3 | 712 | cpp | C++ | Cpp_primer_5th/code_part7/prog7_12.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part7/prog7_12.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part7/prog7_12.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
/*****?????*****/
struct Sales_data;
istream &read(istream&, Sales_data&)
/*****?????****/
struct Sales_data{
Sales_data() = default;
Sales_data(const string &s): bookNo(s){}
Sales_data(const string &s, unsigned n, double p):
bookNo(s), units_sold(n), ... | 22.25 | 51 | 0.664326 | Links789 |
47ba25b5b6bb5c35f5de6f1d7d57d2d57f51f8eb | 939 | cc | C++ | test_rank.cc | kjwilder/ranker | ff0dd14e29443759e5047d093aa42c83ad9c5f37 | [
"Unlicense"
] | null | null | null | test_rank.cc | kjwilder/ranker | ff0dd14e29443759e5047d093aa42c83ad9c5f37 | [
"Unlicense"
] | null | null | null | test_rank.cc | kjwilder/ranker | ff0dd14e29443759e5047d093aa42c83ad9c5f37 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <string>
#include "./ranker.h"
int main(int argc, char** argv) {
uint num = 10, dump = 1;
string method = "average"; // Can also be "min" or "max" or "default"
if (argc > 1) num = (uint) atol(argv[1]);
if (argc > 2) method = argv[2];
if (argc > 3) dump = (uint... | 24.076923 | 72 | 0.497338 | kjwilder |
47bb1acf4ff47f8f113f2614ea4efc6c29f40a96 | 720 | cpp | C++ | 1100/10/1117b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 1100/10/1117b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 1100/10/1117b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <algorithm>
#include <iostream>
#include <vector>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(unsigned long long h)
{
std::cout << h << '\n';
}
void solve(std::vector<unsigned>& a, unsig... | 16 | 65 | 0.529167 | actium |
47c06b8d3ea9f4cfcee2a13f492820d16fceebdf | 1,527 | hpp | C++ | include/boost/simd/constant/fourthrooteps.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/constant/fourthrooteps.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/constant/fourthrooteps.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
@file
@copyright 2012-2015 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//======================... | 25.032787 | 100 | 0.599214 | yaeldarmon |
47c30f2e4a346afa32e383094f6e32de924e1f01 | 5,742 | cpp | C++ | src/Buffer.cpp | twh2898/glpp | b413293b525d885fefd20fedb51988edf1999b70 | [
"MIT"
] | null | null | null | src/Buffer.cpp | twh2898/glpp | b413293b525d885fefd20fedb51988edf1999b70 | [
"MIT"
] | null | null | null | src/Buffer.cpp | twh2898/glpp | b413293b525d885fefd20fedb51988edf1999b70 | [
"MIT"
] | null | null | null | #include "glpp/Buffer.hpp"
namespace glpp {
void Attribute::enable() const {
glVertexAttribPointer(index, size, type, normalized, stride, pointer);
glVertexAttribDivisor(index, divisor);
glEnableVertexAttribArray(index);
}
void Attribute::disable() const {
glDisableVertexAt... | 29.147208 | 88 | 0.547893 | twh2898 |
47c3f83ad828e82b70371511ad1432f7cbc01dcc | 229 | hpp | C++ | apps/smart_switch/messaging_config.hpp | ecrampton1/MspPeripheralmm | ae1f64cc785b9a3b994074e851e68c170aef613f | [
"MIT"
] | null | null | null | apps/smart_switch/messaging_config.hpp | ecrampton1/MspPeripheralmm | ae1f64cc785b9a3b994074e851e68c170aef613f | [
"MIT"
] | 1 | 2021-03-07T14:18:31.000Z | 2021-03-07T14:18:31.000Z | apps/smart_switch/messaging_config.hpp | ecrampton1/MspPeripheralmm | ae1f64cc785b9a3b994074e851e68c170aef613f | [
"MIT"
] | null | null | null | #ifndef MESSAGING_CONFIG_HPP_
#define MESSAGING_CONFIG_HPP_
static constexpr uint8_t NODEID = 12;
#define FOR_ALL_INCOMING_MESSAGES(ACTION) \
ACTION( SwitchQuery ) \
ACTION( SwitchRequest )
#endif //MESSAGING_CONFIG_HPP_
| 16.357143 | 43 | 0.799127 | ecrampton1 |
47cf64f750b91e4cf5b82e79ad54c4b1f14cd3ac | 3,947 | cc | C++ | pkg/src/bibliography/reference.cc | saaymeen/bib-parser | e1a5a2db7fa5dfef9b09c032beeeca6129043419 | [
"Unlicense"
] | 1 | 2020-06-12T10:33:56.000Z | 2020-06-12T10:33:56.000Z | pkg/src/bibliography/reference.cc | saaymeen/bib-parser | e1a5a2db7fa5dfef9b09c032beeeca6129043419 | [
"Unlicense"
] | null | null | null | pkg/src/bibliography/reference.cc | saaymeen/bib-parser | e1a5a2db7fa5dfef9b09c032beeeca6129043419 | [
"Unlicense"
] | 2 | 2020-06-12T10:31:41.000Z | 2020-06-12T13:19:08.000Z | #include <string>
#include <unordered_map>
#include <vector>
#include "bib-parser/bibliography/reference.h"
using std::string;
using std::unordered_map;
using std::vector;
using TUCSE::EntryType;
using TUCSE::FieldType;
using TUCSE::Reference;
Reference::Reference(string const &citationKey, EntryType const entryTyp... | 25.62987 | 81 | 0.776032 | saaymeen |
c51a1573724e40f8ea13aecbcc47a8ed7cec6052 | 737 | cpp | C++ | AIC/AIC'20 - Level 2 Training Contests/Contest #10/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 2 Training Contests/Contest #10/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 2 Training Contests/Contest #10/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://vjudge.net/contest/436257#problem/B
#include <bits/stdc++.h>
using namespace std;
bool solve(string A, string B) {
if (A == B) {
return true;
}
string X = A, Y = B;
sort(X.begin(), X.end());
sort(Y.begin(), Y.end());
if ((A.size() & 1) || (X != Y)) {
return false;
... | 27.296296 | 85 | 0.497965 | MaGnsio |
c51a70404b06ddc50ef0b305ed28bc0d083e84be | 1,708 | cpp | C++ | ESP01_NowSender/src/esp_now_ext/esp_now_ext.cpp | Pliskin707/ESPNOW_SmartHome | 6d09049fd39a4995e0cb4fb647aa9c260253f7aa | [
"MIT"
] | null | null | null | ESP01_NowSender/src/esp_now_ext/esp_now_ext.cpp | Pliskin707/ESPNOW_SmartHome | 6d09049fd39a4995e0cb4fb647aa9c260253f7aa | [
"MIT"
] | 2 | 2021-12-23T14:48:25.000Z | 2021-12-23T23:49:06.000Z | ESP01_NowSender/src/esp_now_ext/esp_now_ext.cpp | Pliskin707/ESPNOW_SmartHome | 6d09049fd39a4995e0cb4fb647aa9c260253f7aa | [
"MIT"
] | null | null | null | #include "esp_now_ext.hpp"
EspNowExtClass EspNowExt;
static uint8_t _txRetries = 0;
static struct
{
uint8_t txRetriesRemaining;
uint8_t len;
mac dest;
const uint8_t * data;
} _txPackage = {0, 0, {0}, nullptr};
bool EspNowExtClass::begin (const uint8_t txRetries)
{
if (esp_now_init() == 0)
{
... | 29.448276 | 221 | 0.70726 | Pliskin707 |
c51a83a62be319f139825ca299feea89f5fbee2d | 91,003 | cpp | C++ | src/plugins/DreamColor/DreamColorCalib.cpp | SchademanK/Ookala | 9a5112e1d3067d589c150fb9c787ae36801a67dc | [
"MIT"
] | null | null | null | src/plugins/DreamColor/DreamColorCalib.cpp | SchademanK/Ookala | 9a5112e1d3067d589c150fb9c787ae36801a67dc | [
"MIT"
] | null | null | null | src/plugins/DreamColor/DreamColorCalib.cpp | SchademanK/Ookala | 9a5112e1d3067d589c150fb9c787ae36801a67dc | [
"MIT"
] | null | null | null | // --------------------------------------------------------------------------
// $Id: DreamColorCalib.cpp 135 2008-12-19 00:49:58Z omcf $
// --------------------------------------------------------------------------
// Copyright (c) 2008 Hewlett-Packard Development Company, L.P.
//
// Permission is hereby granted, fre... | 35.813853 | 153 | 0.54941 | SchademanK |
c523658548de1ac5bde7283a1cdcabe837a4ba7b | 1,069 | cpp | C++ | hackerrank/algorithms/search/missing-numbers.cpp | maximg/comp-prog | 3d7a3e936becb0bc25b890396fa2950ac072ffb8 | [
"MIT"
] | null | null | null | hackerrank/algorithms/search/missing-numbers.cpp | maximg/comp-prog | 3d7a3e936becb0bc25b890396fa2950ac072ffb8 | [
"MIT"
] | null | null | null | hackerrank/algorithms/search/missing-numbers.cpp | maximg/comp-prog | 3d7a3e936becb0bc25b890396fa2950ac072ffb8 | [
"MIT"
] | null | null | null |
// https://www.hackerrank.com/challenges/missing-numbers/problem
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
vector <int> missingNumbers(vector <int> arr, vector <int> brr) {
vector<int> missing(100);
int bmin{brr[0]};
for (auto x: b... | 21.38 | 65 | 0.525725 | maximg |
c527ea2dc845956f912c85f6b9d7da344ff93f3b | 3,333 | cpp | C++ | src/Graphics.cpp | HerrNamenlos123/BatteryEngine | bef5f1b81baf144176653a928c9e8ac138888b3a | [
"MIT"
] | null | null | null | src/Graphics.cpp | HerrNamenlos123/BatteryEngine | bef5f1b81baf144176653a928c9e8ac138888b3a | [
"MIT"
] | 1 | 2021-10-07T09:59:58.000Z | 2021-10-07T10:06:53.000Z | src/Graphics.cpp | HerrNamenlos123/BatteryEngine | bef5f1b81baf144176653a928c9e8ac138888b3a | [
"MIT"
] | null | null | null |
#include "Battery/pch.h"
#include "Battery/Graphics.h"
// ImGui library
#include "imgui/imgui.h"
#include "imgui/imgui_internal.h"
#include "imgui.h"
#include "imgui_impl_allegro5.h"
namespace Battery {
namespace Graphics {
glm::vec3 __fillcolor = { 255, 255, 255 };
glm::vec3 __strokecolor = { 0, 0, 0 };
dou... | 28.008403 | 110 | 0.69667 | HerrNamenlos123 |
c52aa1f923212c0b4ae0d12329313cd1edf83658 | 1,163 | cpp | C++ | AIC/AIC'20 - Level 2 Training Contests/Contest #3/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 2 Training Contests/Contest #3/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 2 Training Contests/Contest #3/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://vjudge.net/contest/416541#problem/B
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
ll bs (vector<pair<ll, ll>> &v, ll f)
{
ll l = 0, r = v.size () - 1, ans = 0;
while (l <= r)
{
ll mid = l + (... | 21.943396 | 63 | 0.426483 | MaGnsio |
c5346eaff5201f731e266b53b16c2b0dd1d97d8d | 688 | cpp | C++ | src/Pipeline/TimedWorkWrapper_Test.cpp | rcstilborn/SecMon | f750d9c421dac1c5a795384ff8f7b7a29a0aece9 | [
"MIT"
] | 2 | 2021-12-17T17:35:07.000Z | 2022-01-11T12:38:00.000Z | src/Pipeline/TimedWorkWrapper_Test.cpp | rcstilborn/SecMon | f750d9c421dac1c5a795384ff8f7b7a29a0aece9 | [
"MIT"
] | null | null | null | src/Pipeline/TimedWorkWrapper_Test.cpp | rcstilborn/SecMon | f750d9c421dac1c5a795384ff8f7b7a29a0aece9 | [
"MIT"
] | 2 | 2018-01-15T06:10:07.000Z | 2021-07-08T19:40:49.000Z | /*
* TimedWorkWrapper_Test.cpp
*
* Created on: Aug 27, 2017
* Author: Richard
*
* Copyright 2017 Richard Stilborn
* Licensed under the MIT License
*/
#include "TimedWorkWrapper.h"
#include <gtest/gtest.h>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <memory>
void ttw_test_function(cons... | 21.5 | 102 | 0.688953 | rcstilborn |
c534fb6ca70c053d8e069d69de9822e139d0a52d | 4,442 | cpp | C++ | Axis.Capsicum/foundation/computing/GPUManager.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Capsicum/foundation/computing/GPUManager.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Capsicum/foundation/computing/GPUManager.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #include "GPUManager.hpp"
#include <cuda_runtime.h>
#include <cuda.h>
#include <vector>
namespace afc = axis::foundation::computing;
#define ERR_CHECK(x) {cudaError_t errId = x; if (errId != CUDA_SUCCESS) throw errId;}
#define AXIS_MIN_CUDA_COMPUTE_MAJOR_VERSION 2
#define AXIS_MIN_CUDA_COMPUTE_MINOR_VERSION... | 30.634483 | 127 | 0.708915 | renato-yuzup |
c53744556267aefd9647f1eb957ceca53b9cf48b | 13,529 | cpp | C++ | lib/sck/server.cpp | TheMarlboroMan/listener_service | 955b952a9c36d4a1ba3704551a9b1ac1d3dd2fb8 | [
"MIT"
] | null | null | null | lib/sck/server.cpp | TheMarlboroMan/listener_service | 955b952a9c36d4a1ba3704551a9b1ac1d3dd2fb8 | [
"MIT"
] | null | null | null | lib/sck/server.cpp | TheMarlboroMan/listener_service | 955b952a9c36d4a1ba3704551a9b1ac1d3dd2fb8 | [
"MIT"
] | null | null | null | #include <sck/server.h>
#include <sck/exception.h>
#include <lm/sentry.h>
#include <cstring> //Memset.
#include <arpa/inet.h> //inet_ntop.
#include <signal.h> //Memset.
#include <sys/un.h> //Local sockets...
#include <iostream>
/*
struct addrinfo {
int ai_flags; // AI_PASSIVE, AI_CANONNAME, ... | 27.058 | 167 | 0.688151 | TheMarlboroMan |
c53e306b453a4b49d262e15673de0b6d7baca7c2 | 1,589 | hpp | C++ | engine/src/engine/input/InputManager.hpp | CaptureTheBanana/CaptureTheBanana | 1398bedc80608e502c87b880c5b57d272236f229 | [
"MIT"
] | 1 | 2018-08-14T05:45:29.000Z | 2018-08-14T05:45:29.000Z | engine/src/engine/input/InputManager.hpp | CaptureTheBanana/CaptureTheBanana | 1398bedc80608e502c87b880c5b57d272236f229 | [
"MIT"
] | null | null | null | engine/src/engine/input/InputManager.hpp | CaptureTheBanana/CaptureTheBanana | 1398bedc80608e502c87b880c5b57d272236f229 | [
"MIT"
] | null | null | null | // This file is part of CaptureTheBanana++.
//
// Copyright (c) 2018 the CaptureTheBanana++ contributors (see CONTRIBUTORS.md)
// This file is licensed under the MIT license; see LICENSE file in the root of this
// project for details.
#ifndef ENGINE_KEYBOARDMANAGER_HPP
#define ENGINE_KEYBOARDMANAGER_HPP
#include <st... | 24.446154 | 84 | 0.702329 | CaptureTheBanana |
c543bf36206b1938e768f1f7dd2e8d1c2d5e72cc | 17,816 | cpp | C++ | bwchart/common/sysinfo.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | bwchart/common/sysinfo.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | bwchart/common/sysinfo.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | //
#include "stdafx.h"
#include <windows.h>
#include <wincon.h>
#include <stdlib.h>
#include <stdio.h>
#include <io.h>
#include <time.h>
#include "sysinfo.h"
static char MACP[17+1];
static char MAC[12+1];
static int nMACSearched = 0;
static int gnCodingMethod = 0;
static char ipconfig[32]="bwrecorder.dta... | 25.933042 | 106 | 0.584082 | udonyang |
c546ecb9d78c548501323f1c49a45f0ae83a872f | 3,550 | cpp | C++ | MineCloneProject/src/MCP/Renderer/Shader/Shader.cpp | didimojuni/MineClone | 68efadc775c324d64f61094b7bbeb3855d2df901 | [
"Apache-2.0"
] | 3 | 2019-12-07T03:57:55.000Z | 2021-01-26T15:40:19.000Z | MineCloneProject/src/MCP/Renderer/Shader/Shader.cpp | dindii/MineClone | 68efadc775c324d64f61094b7bbeb3855d2df901 | [
"Apache-2.0"
] | null | null | null | MineCloneProject/src/MCP/Renderer/Shader/Shader.cpp | dindii/MineClone | 68efadc775c324d64f61094b7bbeb3855d2df901 | [
"Apache-2.0"
] | null | null | null | #include "mcpch.h"
#include "Shader.h"
#include <glad/glad.h>
#include "MCP/Utils/Logger.h"
#include <fstream>
#include <sstream>
namespace MC
{
Shader::Shader(const std::string& vertexSource, const std::string& fragmentSource)
{
Init(vertexSource, fragmentSource);
}
void Shader::Init(const std::string& verte... | 25.177305 | 106 | 0.729577 | didimojuni |
c5474079ac031b8a30e3f6e686c2ba4e14a8c971 | 415 | hpp | C++ | phantom/include/phantom/inputs/linux_input.hpp | karanvivekbhargava/phantom | 35accd85cbbfd793b9c2988af27b6cf3a8d0c76f | [
"Apache-2.0"
] | null | null | null | phantom/include/phantom/inputs/linux_input.hpp | karanvivekbhargava/phantom | 35accd85cbbfd793b9c2988af27b6cf3a8d0c76f | [
"Apache-2.0"
] | null | null | null | phantom/include/phantom/inputs/linux_input.hpp | karanvivekbhargava/phantom | 35accd85cbbfd793b9c2988af27b6cf3a8d0c76f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "GLFW/glfw3.h"
#include "phantom/application.hpp"
#include "phantom/inputs/input.hpp"
namespace Phantom
{
class LinuxInput : public Input
{
protected:
virtual bool IsKeyPressedImpl(int32_t keycode) override;
virtual bool IsMouseButtonPressedImpl(int32_t button) overr... | 23.055556 | 80 | 0.720482 | karanvivekbhargava |
c5476e04f7ae4d07121f07ea3a27412a9942cac8 | 8,453 | hpp | C++ | src/client/headers/client/sqf/camera.hpp | TheWillard/intercept | 7bd96f4b0cec66f5ef1f3cbef7c4abe35e4f8fda | [
"MIT"
] | 166 | 2016-02-11T09:21:26.000Z | 2022-01-01T10:34:38.000Z | src/client/headers/client/sqf/camera.hpp | TheWillard/intercept | 7bd96f4b0cec66f5ef1f3cbef7c4abe35e4f8fda | [
"MIT"
] | 104 | 2016-02-10T14:34:27.000Z | 2022-03-26T18:03:47.000Z | src/client/headers/client/sqf/camera.hpp | TheWillard/intercept | 7bd96f4b0cec66f5ef1f3cbef7c4abe35e4f8fda | [
"MIT"
] | 85 | 2016-02-11T23:14:23.000Z | 2022-03-18T05:03:09.000Z | /*!
@file
@author Verox (verox.averre@gmail.com)
@author Nou (korewananda@gmail.com)
@author Glowbal (thomasskooi@live.nl)
@author Dedmen (dedmen@dedmen.de)
@brief Camera related Function wrappers.
https://github.com/NouberNou/intercept
*/
#pragma once
#include "shared/client_types.hpp"
using namespace... | 51.230303 | 164 | 0.653969 | TheWillard |
c55010c9b7c513f7fd8ab4e172072e12a9a4f3fd | 7,704 | cpp | C++ | dp/rix/gl/src/SamplerStateGL.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 217 | 2015-01-06T09:26:53.000Z | 2022-03-23T14:03:18.000Z | dp/rix/gl/src/SamplerStateGL.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 10 | 2015-01-25T12:42:05.000Z | 2017-11-28T16:10:16.000Z | dp/rix/gl/src/SamplerStateGL.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 44 | 2015-01-13T01:19:41.000Z | 2022-02-21T21:35:08.000Z | // Copyright (c) 2011-2016, NVIDIA 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 the above copyright
// notice, this list o... | 42.098361 | 129 | 0.670042 | asuessenbach |
c5533ca349bab1fc8faf4fe99ac9d68e54830ce6 | 3,444 | cpp | C++ | Src/GeometryShop/AMReX_IFData.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-05-20T13:04:05.000Z | 2021-05-20T13:04:05.000Z | Src/GeometryShop/AMReX_IFData.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/GeometryShop/AMReX_IFData.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <iostream>
#include <iomanip>
#include "AMReX_NormalDerivative.H"
#include "AMReX_IFData.H"
//leave to default faulse. Moving the coords works better
//but makes for weird convergence tests
bool LocalCoordMoveSwitch::s_turnOffMoveLocalCoords = true;
// empty constructor (dim == 1)
IFData<1>::IFData()
{
}
... | 26.90625 | 128 | 0.692218 | malvarado27 |
c5557bc89b09fff49b0d2ce31d46af36e4e256e6 | 12,844 | cpp | C++ | test/function/string_functions_test.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 3 | 2018-01-08T01:06:17.000Z | 2019-06-17T23:14:36.000Z | test/function/string_functions_test.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 1 | 2020-04-30T09:54:37.000Z | 2020-04-30T09:54:37.000Z | test/function/string_functions_test.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 3 | 2018-02-25T23:30:33.000Z | 2018-04-08T10:11:42.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// string_functions_test.cpp
//
// Identification: test/expression/string_functions_test.cpp
//
// Copyright (c) 2015-2018, Carnegie Mellon University Database Group
//
//===------------------------... | 36.282486 | 80 | 0.645905 | aaron-tian |
c557875997d78542cb0593c52ceed50ff6fef5f2 | 372 | cpp | C++ | BOJ/1699.cpp | ReinforceIII/Algorithm | 355f6e19f8deb6a76f82f5283d7c1987acd699a6 | [
"MIT"
] | null | null | null | BOJ/1699.cpp | ReinforceIII/Algorithm | 355f6e19f8deb6a76f82f5283d7c1987acd699a6 | [
"MIT"
] | null | null | null | BOJ/1699.cpp | ReinforceIII/Algorithm | 355f6e19f8deb6a76f82f5283d7c1987acd699a6 | [
"MIT"
] | null | null | null | /* 1699 제곱수의 합 */
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n;
cin>>n;
vector<int> number(n+1);
vector<int> memo(n+1);
for(int i=1; i<=n; i++) {
memo[i] = i;
for(int j=1; j*j<=i; j++) {
if(memo[i] > memo[i-j*j] + 1) memo[i] = memo[i-... | 17.714286 | 64 | 0.510753 | ReinforceIII |
c55fffd11d11540757b91a2786112889d990257e | 2,084 | cpp | C++ | liupeng/src/main/java/liupeng/Ch2_HDFS/liveMedia/H264VideoFileSink.cpp | jayfans3/example | 6982e33d760dd8e4d94de40c81ae733434bf3f1b | [
"BSD-2-Clause"
] | null | null | null | liupeng/src/main/java/liupeng/Ch2_HDFS/liveMedia/H264VideoFileSink.cpp | jayfans3/example | 6982e33d760dd8e4d94de40c81ae733434bf3f1b | [
"BSD-2-Clause"
] | null | null | null | liupeng/src/main/java/liupeng/Ch2_HDFS/liveMedia/H264VideoFileSink.cpp | jayfans3/example | 6982e33d760dd8e4d94de40c81ae733434bf3f1b | [
"BSD-2-Clause"
] | null | null | null |
#include "H264VideoFileSink.hh"
#include "OutputFile.hh"
#include "H264VideoRTPSource.hh"
////////// H264VideoFileSink //////////
H264VideoFileSink::H264VideoFileSink(UsageEnvironment& env, FILE* fid,char const* sPropParameterSetsStr,unsigned bufferSize, char const* perFrameFileNamePrefix)
: FileSink(env, fid, buffe... | 32.061538 | 160 | 0.74904 | jayfans3 |
c56ddedb6dc095f70df3d91e1b1a86922bcba0fe | 2,252 | hpp | C++ | src/ReteVisualSerialization.hpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | src/ReteVisualSerialization.hpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | src/ReteVisualSerialization.hpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | #ifndef SEMPR_GUI_RETEVISUALSERIALIZATION_HPP_
#define SEMPR_GUI_RETEVISUALSERIALIZATION_HPP_
#include <cereal/cereal.hpp>
#include <cereal/types/set.hpp>
#include <rete-core/NodeVisitor.hpp>
#include <string>
#include <set>
/*
This file provides a few classes to help with creating and transmitting a
visual... | 24.747253 | 83 | 0.666963 | sempr-tk |
c570bfb70284d78d42c5c150e462cd6efd27988e | 24,468 | cpp | C++ | Daniel2.Benchmark/Daniel2.Benchmark.cpp | Cinegy/Cinecoder.Samples | 28a567b52ee599307bf797f6420dbb1e54c918e5 | [
"Apache-2.0"
] | 17 | 2018-04-06T07:51:30.000Z | 2022-03-21T13:38:50.000Z | Daniel2.Benchmark/Daniel2.Benchmark.cpp | Cinegy/Cinecoder.Samples | 28a567b52ee599307bf797f6420dbb1e54c918e5 | [
"Apache-2.0"
] | 9 | 2019-02-22T10:00:03.000Z | 2020-12-11T03:27:46.000Z | Daniel2.Benchmark/Daniel2.Benchmark.cpp | Cinegy/Cinecoder.Samples | 28a567b52ee599307bf797f6420dbb1e54c918e5 | [
"Apache-2.0"
] | 4 | 2018-06-05T12:37:47.000Z | 2020-07-28T08:31:21.000Z | #define _CRT_SECURE_NO_WARNINGS
#ifdef _WIN32
#include <windows.h>
#include <atlbase.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <thread>
#include <chrono>
using namespace std::chrono;
using namespace std::chrono_literals;
#include "cpu_load_meter.h"
#include "../common/cuda_dyn/cuda_dyn_load.h"
#in... | 30.932996 | 166 | 0.65506 | Cinegy |
c57320827df3d63551e6259d6cedb1a413afc4c6 | 71 | cpp | C++ | test/data/pkg_config_use/program.cpp | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | 72 | 2015-06-23T02:35:13.000Z | 2021-12-08T01:47:40.000Z | test/data/pkg_config_use/program.cpp | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | 139 | 2015-03-01T18:48:17.000Z | 2021-06-18T15:45:14.000Z | test/data/pkg_config_use/program.cpp | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | 19 | 2015-12-23T21:24:33.000Z | 2022-01-06T04:04:41.000Z | #include <hello.hpp>
int main() {
hello::say_hello();
return 0;
}
| 10.142857 | 21 | 0.605634 | thomasrockhu |
c57601efe76fd07101ca62475a552334f32818e2 | 1,774 | cpp | C++ | tests/memRdRspFunc/src_pers/PersF2_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | tests/memRdRspFunc/src_pers/PersF2_src.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | tests/memRdRspFunc/src_pers/PersF2_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | #include "Ht.h"
#include "PersF2.h"
void CPersF2::PersF2()
{
if (PR1_htValid) {
switch (PR1_htInst) {
case F2_ENTRY:
{
if (ReadMemBusy()) {
HtRetry();
break;
}
S_rslt64 = 0;
ReadMem_func64(PR1_addr, 0x15, 256);
ReadMemPause(F2_RD32);
break;
}
case F2_RD32:
{
if (ReadMemBusy... | 16.735849 | 108 | 0.658399 | TonyBrewer |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.