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 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
455680b9155630f3e6d96be1a8de3c27928d49c0 | 517 | hpp | C++ | src/Exceptions/Exception.hpp | pokorj54/Command-line-calendar | de2c8a89917bd4cb69547427a6ec1bced218c5ad | [
"MIT"
] | null | null | null | src/Exceptions/Exception.hpp | pokorj54/Command-line-calendar | de2c8a89917bd4cb69547427a6ec1bced218c5ad | [
"MIT"
] | null | null | null | src/Exceptions/Exception.hpp | pokorj54/Command-line-calendar | de2c8a89917bd4cb69547427a6ec1bced218c5ad | [
"MIT"
] | null | null | null | #ifndef Exception_785a62ec3213411cb4e442ee734c00cb
#define Exception_785a62ec3213411cb4e442ee734c00cb
#include <iostream>
/**
* @brief Abstract class providing genereal interface to exceptions
*
*/
class Exception: public std::exception
{
public:
/**
* @brief Message that can be printed to th... | 24.619048 | 67 | 0.686654 |
4558774323aa65b0256e5a57988556294f5c1ef0 | 2,982 | cxx | C++ | src/Cxx/Visualization/ProjectSphere.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 81 | 2020-08-10T01:44:30.000Z | 2022-03-23T06:46:36.000Z | src/Cxx/Visualization/ProjectSphere.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 2 | 2020-09-12T17:33:52.000Z | 2021-04-15T17:33:09.000Z | src/Cxx/Visualization/ProjectSphere.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 27 | 2020-08-17T07:09:30.000Z | 2022-02-15T03:44:58.000Z | #include <vtkActor.h>
#include <vtkCamera.h>
#include <vtkElevationFilter.h>
#include <vtkNamedColors.h>
#include <vtkNew.h>
#include <vtkParametricFunctionSource.h>
#include <vtkParametricSuperEllipsoid.h>
#include <vtkPointData.h>
#include <vtkPolyData.h>
#include <vtkPolyDataMapper.h>
#include <vtkProjectSphereFilte... | 30.742268 | 77 | 0.757881 |
455878b48a2ef154a4e5242dc0e51a7aee92a867 | 898 | cpp | C++ | src/util/TexShare.cpp | pharpend/Oscilloscope | e2598c559302bd91747b73a251d614eeb4dea663 | [
"MIT"
] | 460 | 2015-03-18T18:59:49.000Z | 2022-03-19T19:11:09.000Z | src/util/TexShare.cpp | pharpend/Oscilloscope | e2598c559302bd91747b73a251d614eeb4dea663 | [
"MIT"
] | 78 | 2015-05-10T07:23:55.000Z | 2022-03-09T13:58:51.000Z | src/util/TexShare.cpp | pharpend/Oscilloscope | e2598c559302bd91747b73a251d614eeb4dea663 | [
"MIT"
] | 64 | 2015-06-13T01:45:54.000Z | 2022-01-14T17:38:19.000Z | //
// SharedTex.cpp
// Oscilloscope
//
// Created by Hansi on 27/06/19.
//
//
#include "TexShare.h"
#include "ofMain.h"
#ifdef TARGET_OSX
#include "ofxSyphon.h"
class TexShareImpl{
public:
ofxSyphonServer server;
void setup(string name){
server.setName(name);
}
void update(ofTexture &tex){
server.publi... | 14.483871 | 38 | 0.690423 |
455a9f22c0c56eeceee8a943903882aa281ccc0d | 20,389 | hxx | C++ | main/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 32.261076 | 80 | 0.71568 |
4568b8382c54da544c4c3ba3095eb7ec6c41ecac | 4,872 | cpp | C++ | convertxml/native_module_convertxml.cpp | openharmony-gitee-mirror/js_api_module | 2c3d4cf53a81d4b68933cdeec74e4c3e3da7f46d | [
"Apache-2.0"
] | null | null | null | convertxml/native_module_convertxml.cpp | openharmony-gitee-mirror/js_api_module | 2c3d4cf53a81d4b68933cdeec74e4c3e3da7f46d | [
"Apache-2.0"
] | null | null | null | convertxml/native_module_convertxml.cpp | openharmony-gitee-mirror/js_api_module | 2c3d4cf53a81d4b68933cdeec74e4c3e3da7f46d | [
"Apache-2.0"
] | 1 | 2021-09-13T11:21:19.000Z | 2021-09-13T11:21:19.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 38.362205 | 119 | 0.609811 |
456984dafd290502cd6b7fbbd63266164f802149 | 202 | cpp | C++ | Backbone/UserManager/XMLManager/main.cpp | ed-quiroga-2103/OdisseyC | cf7ec95c574bfd4b2581f9af092dae50803dcebb | [
"Apache-2.0"
] | null | null | null | Backbone/UserManager/XMLManager/main.cpp | ed-quiroga-2103/OdisseyC | cf7ec95c574bfd4b2581f9af092dae50803dcebb | [
"Apache-2.0"
] | null | null | null | Backbone/UserManager/XMLManager/main.cpp | ed-quiroga-2103/OdisseyC | cf7ec95c574bfd4b2581f9af092dae50803dcebb | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "pugixml.hpp"
#include "string"
#include "XMLParts.h"
#include "XMLManager.h"
using document = pugi::xml_document;
using string = std::string;
int main() {
return 0;
} | 16.833333 | 36 | 0.70297 |
456ce2aad5fd617a5ed86fc8916b091e371316e3 | 423 | cpp | C++ | cph/modbus/mbqueue.cpp | Loggi-pro/cph-lib | 4109dd1d3cc780c9f76aa54c2322bbdcbfdfea67 | [
"MIT"
] | null | null | null | cph/modbus/mbqueue.cpp | Loggi-pro/cph-lib | 4109dd1d3cc780c9f76aa54c2322bbdcbfdfea67 | [
"MIT"
] | null | null | null | cph/modbus/mbqueue.cpp | Loggi-pro/cph-lib | 4109dd1d3cc780c9f76aa54c2322bbdcbfdfea67 | [
"MIT"
] | null | null | null | #include "mbqueue.h"
void ModbusEventQueue::init() {
_isEventInQueue = false;
}
bool ModbusEventQueue::postEvent(MBEventType eEvent) {
_isEventInQueue = true;
_queuedEvent = eEvent;
return true;
}
bool ModbusEventQueue::getEvent(MBEventType* eEvent) {
bool isEventHappened = false;
if (_isEventInQueue) {
*eEv... | 19.227273 | 54 | 0.747045 |
456cee28cc1d1ab23a90b671f5ab734025642346 | 1,778 | cpp | C++ | examples/HelloWorld/HelloWorld.cpp | SteveDeFacto/ovgl | 879899f63f0dc399e2823dd84bb715fda3aafb78 | [
"Apache-2.0"
] | 3 | 2019-02-24T23:17:49.000Z | 2020-05-03T09:05:49.000Z | examples/HelloWorld/HelloWorld.cpp | SteveDeFacto/ovgl | 879899f63f0dc399e2823dd84bb715fda3aafb78 | [
"Apache-2.0"
] | null | null | null | examples/HelloWorld/HelloWorld.cpp | SteveDeFacto/ovgl | 879899f63f0dc399e2823dd84bb715fda3aafb78 | [
"Apache-2.0"
] | null | null | null | /**
* @file HelloWorld.cpp
* Copyright 2011 Steven Batchelor
*
* 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... | 27.78125 | 105 | 0.663105 |
456d9b8f021d8459aaea5b9c07ffd93e2d8a506f | 738 | hpp | C++ | src/cpp/iir-filter-node.hpp | node-3d/waa-raub | e458d76f290b1e12ef2a0adc063b521816337f04 | [
"MIT"
] | 17 | 2018-10-03T00:44:33.000Z | 2022-03-17T06:40:15.000Z | src/cpp/iir-filter-node.hpp | raub/node-waa | e458d76f290b1e12ef2a0adc063b521816337f04 | [
"MIT"
] | 7 | 2019-07-16T08:22:31.000Z | 2021-11-29T21:45:06.000Z | src/cpp/iir-filter-node.hpp | raub/node-waa | e458d76f290b1e12ef2a0adc063b521816337f04 | [
"MIT"
] | 2 | 2019-08-05T20:00:42.000Z | 2020-03-15T13:25:41.000Z | #ifndef _IIR_FILTER_NODE_HPP_
#define _IIR_FILTER_NODE_HPP_
#include "common.hpp"
class IIRFilterNode : public CommonNode {
DECLARE_ES5_CLASS(IIRFilterNode, IIRFilterNode);
public:
~IIRFilterNode();
explicit IIRFilterNode(const Napi::CallbackInfo &info);
static void init(Napi::Env env, Napi::Object exports)... | 17.571429 | 56 | 0.768293 |
456fba303c64e745bee06e191b15a89f770516b4 | 15,915 | cpp | C++ | Lambda-Lib-C++/LambdaCalc_SampleExec.cpp | jrandleman/Lambda-Calc-Compilation | 488c6d1fbc92d00429aa7eb772df3fd6e0dd92c5 | [
"MIT"
] | 1 | 2020-09-14T19:47:13.000Z | 2020-09-14T19:47:13.000Z | Lambda-Lib-C++/LambdaCalc_SampleExec.cpp | jrandleman/Lambda-Calc-Compiler | 488c6d1fbc92d00429aa7eb772df3fd6e0dd92c5 | [
"MIT"
] | null | null | null | Lambda-Lib-C++/LambdaCalc_SampleExec.cpp | jrandleman/Lambda-Calc-Compiler | 488c6d1fbc92d00429aa7eb772df3fd6e0dd92c5 | [
"MIT"
] | null | null | null | // Author: Jordan Randleman -- LambdaCalc_SampleExec.cpp
// => Demo File to Illustrate LambdaCalc.hpp's Capabilities
#include <iostream>
#include "LambdaCalc.hpp"
/**
* -:- NAMESPACE LambdaCalc LAMBDAS -:-
* => ALL DATA IS IMMUTABLE (CONST)
* => ALL LAMBDAS ARE CURRIED ( IE Add(ox1, ox2) => Add(ox1)(ox2)... | 35.13245 | 121 | 0.507823 |
45718afe4218efca271bb3f57bd98b4aa166ec63 | 503 | cpp | C++ | src/format.cpp | zyntop2014/CppND-System-Monitor-yananzhang-solution | 57a6173e73a23646b697da45f7bec2823300a8f7 | [
"MIT"
] | null | null | null | src/format.cpp | zyntop2014/CppND-System-Monitor-yananzhang-solution | 57a6173e73a23646b697da45f7bec2823300a8f7 | [
"MIT"
] | null | null | null | src/format.cpp | zyntop2014/CppND-System-Monitor-yananzhang-solution | 57a6173e73a23646b697da45f7bec2823300a8f7 | [
"MIT"
] | null | null | null | #include <string>
#include "format.h"
using std::string;
using std::to_string;
// TODO: Complete this helper function
// INPUT: Long int measuring seconds
// OUTPUT: HH:MM:SS
// REMOVE: [[maybe_unused]] once you define the function
string Format::ElapsedTime(long seconds) {
int hour = seconds / 3600;
int re... | 26.473684 | 79 | 0.677932 |
45774a243eba9339b1d84de55198c4399b64d3f2 | 954 | hpp | C++ | main/inou_rand_api.hpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | main/inou_rand_api.hpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | main/inou_rand_api.hpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null |
#include "inou_rand.hpp"
#include "main_api.hpp"
class Inou_rand_api {
protected:
static void tolg(Eprp_var &var) {
Inou_rand rand;
for(const auto &l:var.dict) {
rand.set(l.first,l.second);
}
std::vector<LGraph *> lgs = rand.tolg();
if (lgs.empty()) {
Main_api::warn(fmt::format("i... | 24.461538 | 128 | 0.638365 |
457799f6c60e7d7a5d1685b8781ec801a174ca43 | 3,127 | hpp | C++ | GameEngine/Systems/ButtonSystem.hpp | Epitech-Tek2/superBonobros2 | 525ab414215f5b67829bf200797c2055141cb7b9 | [
"MIT"
] | null | null | null | GameEngine/Systems/ButtonSystem.hpp | Epitech-Tek2/superBonobros2 | 525ab414215f5b67829bf200797c2055141cb7b9 | [
"MIT"
] | null | null | null | GameEngine/Systems/ButtonSystem.hpp | Epitech-Tek2/superBonobros2 | 525ab414215f5b67829bf200797c2055141cb7b9 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** B-CPP-501-STG-5-1-rtype-romuald1.soultan
** File description:
** ButtonSystem
*/
#ifndef BUTTONSYSTEM_HPP_
#define BUTTONSYSTEM_HPP_
#include "ASystem.hpp"
#include "ECS.hpp"
#include "AScene.hpp"
#include "AGame.hpp"
#include "ASystem.hpp"
#include "ClickableComponent.hpp"
#include "Sh... | 39.582278 | 132 | 0.549089 |
4577c52083767b5b1ed8420cedc7326e012220ed | 875 | cpp | C++ | coast/modules/Renderer/SubStringRenderer.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/modules/Renderer/SubStringRenderer.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/modules/Renderer/SubStringRenderer.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | 38.043478 | 102 | 0.718857 |
4578b38a6b3f01fa80365cd43053e30c3d4c7513 | 65 | cpp | C++ | cpp_data_structure_and_algorithm/day9/IndexMaxHeap.cpp | xcyi2017/Agorithm | bae9918b0758624ecd1f94a3ca1692050c193a29 | [
"Apache-2.0"
] | 1 | 2020-11-15T09:40:47.000Z | 2020-11-15T09:40:47.000Z | cpp_data_structure_and_algorithm/day9/IndexMaxHeap.cpp | xcyi2017/Agorithm | bae9918b0758624ecd1f94a3ca1692050c193a29 | [
"Apache-2.0"
] | null | null | null | cpp_data_structure_and_algorithm/day9/IndexMaxHeap.cpp | xcyi2017/Agorithm | bae9918b0758624ecd1f94a3ca1692050c193a29 | [
"Apache-2.0"
] | null | null | null | //
// Created by xcy on 2020/10/5.
//
#include "IndexMaxHeap.h"
| 10.833333 | 31 | 0.630769 |
457bc8521fdebe0808d93f1cd867ad9f31f5b80e | 835 | cpp | C++ | CameraShake/MyCameraShake.cpp | H4DC0R3/unrealcpp | b0f5667cb20711d740a6fb0cb5064efc6873c948 | [
"MIT"
] | 765 | 2018-01-03T14:58:37.000Z | 2022-03-29T16:03:13.000Z | CameraShake/MyCameraShake.cpp | shyaZhou/unrealcpp | e998d89ce6c8d5484c084f395d2eca5e247b88bf | [
"MIT"
] | 1 | 2019-09-26T09:33:50.000Z | 2020-12-11T05:17:13.000Z | CameraShake/MyCameraShake.cpp | shyaZhou/unrealcpp | e998d89ce6c8d5484c084f395d2eca5e247b88bf | [
"MIT"
] | 166 | 2018-02-20T07:36:12.000Z | 2022-03-25T07:49:03.000Z | // Harrison McGuire
// UE4 Version 4.20.2
// https://github.com/Harrison1/unrealcpp
// https://severallevels.io
// https://harrisonmcguire.com
#include "MyCameraShake.h"
// Helpful Links
// http://api.unrealengine.com/INT/API/Runtime/Engine/Camera/UCameraShake/index.html
//
// Great explanation of camera shake values... | 27.833333 | 84 | 0.731737 |
457bd37fec85e9482385200325361d5c389ea414 | 10,188 | cpp | C++ | src/main.cpp | cabletie/Ugo-ESP32 | 6fde7568cbf2c388661a71e07b7887e5e9744b9d | [
"Apache-2.0"
] | 7 | 2020-07-10T21:00:22.000Z | 2022-02-21T07:55:02.000Z | src/main.cpp | cabletie/Ugo-ESP32 | 6fde7568cbf2c388661a71e07b7887e5e9744b9d | [
"Apache-2.0"
] | 16 | 2020-04-05T00:02:59.000Z | 2020-08-15T17:16:48.000Z | src/main.cpp | cabletie/Ugo-ESP32 | 6fde7568cbf2c388661a71e07b7887e5e9744b9d | [
"Apache-2.0"
] | 2 | 2020-08-16T10:57:09.000Z | 2022-01-23T18:04:53.000Z | /*
Copyright 2020 Marco Massarelli
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, softwar... | 30.872727 | 147 | 0.550452 |
4584d9705bc128ecf32ee9da4ab82849fdd83607 | 2,241 | hpp | C++ | falcon/mpl/placeholders.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | falcon/mpl/placeholders.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | falcon/mpl/placeholders.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_MPL_PLACEHOLDERS_HPP
#define FALCON_MPL_PLACEHOLDERS_HPP
#include <falcon/mpl/arg.hpp>
namespace falcon {
namespace mpl {
namespace placeholders {
using _1 = arg<1>;
using _2 = arg<2>;
using _3 = arg<3>;
using _4 = arg<4>;
using _5 = arg<5>;
using _6 = arg<6>;
using _7 = arg<7>;
using _8 = arg<8>;
usi... | 19.486957 | 35 | 0.629183 |
4586a2f0f7b631495373c018c934fe3720aeba6d | 2,998 | cc | C++ | sieve2015/src/presieved_primes.cc | mhdeleglise/Gh | 21a0b9bd53ae9de17f8b99040cac95cd6e1897e4 | [
"MIT"
] | null | null | null | sieve2015/src/presieved_primes.cc | mhdeleglise/Gh | 21a0b9bd53ae9de17f8b99040cac95cd6e1897e4 | [
"MIT"
] | null | null | null | sieve2015/src/presieved_primes.cc | mhdeleglise/Gh | 21a0b9bd53ae9de17f8b99040cac95cd6e1897e4 | [
"MIT"
] | null | null | null | #include<mylib.h>
namespace presieved_primes{
long32 presieve_base;
long32 number_of_presieve_primes;
long32 sum_of_presieve_primes;
long32 small_primes[5] = {2, 3, 5, 7, 11};
int primes_initialized = 0;
long* Sp;
void init_presieve(int nbps) {
switch (nbps) {
case 2:
presieve_base = 6;
... | 29.106796 | 110 | 0.616077 |
4586e007716ddb33e39503120febcfcd9f469dcd | 2,706 | cpp | C++ | checks/rng.cpp | vster/OpenCL | fb29aead4e6345e23f3f7ba5fb038fa1fd217e10 | [
"BSD-2-Clause"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | checks/rng.cpp | vster/OpenCL | fb29aead4e6345e23f3f7ba5fb038fa1fd217e10 | [
"BSD-2-Clause"
] | null | null | null | checks/rng.cpp | vster/OpenCL | fb29aead4e6345e23f3f7ba5fb038fa1fd217e10 | [
"BSD-2-Clause"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | /* This file is in the public domain */
#include <string>
#include <opencl/filters.h>
#include <opencl/square.h>
#include <opencl/randpool.h>
#include <opencl/x917.h>
#if defined(OPENCL_EXT_ENTROPY_SRC_DEVRANDOM)
#include <opencl/devrand.h>
#endif
#if defined(OPENCL_EXT_ENTROPY_SRC_PTHREAD)
#include <opencl/pthr_e... | 26.271845 | 77 | 0.636364 |
4588b724efd0ce0f13cef267f2da3c49f709e55c | 8,657 | cpp | C++ | intro/messageworld/messageworld.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-09-09T21:01:57.000Z | 2022-03-27T10:01:27.000Z | intro/messageworld/messageworld.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | null | null | null | intro/messageworld/messageworld.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-04-03T01:45:23.000Z | 2021-05-14T08:23:01.000Z | //
// Menu World
//
// A sample program demonstrating the basics of using
// the BMessage and BMessenger classes.
//
// Written by: Eric Shepherd
//
/*
Copyright 1999, Be Incorporated. All Rights Reserved.
This file may be used under the terms of the Be Sample Code License.
*/
#include <Application.h>
#include <M... | 21.696742 | 75 | 0.688922 |
458900190893fa28482feb5dd9be4cf587142595 | 5,591 | cpp | C++ | aoc2018_day21.cpp | bluespeck/aoc_2018 | d847613516bd1e0a6c1a7a0c32cc093a3f558dd4 | [
"MIT"
] | null | null | null | aoc2018_day21.cpp | bluespeck/aoc_2018 | d847613516bd1e0a6c1a7a0c32cc093a3f558dd4 | [
"MIT"
] | null | null | null | aoc2018_day21.cpp | bluespeck/aoc_2018 | d847613516bd1e0a6c1a7a0c32cc093a3f558dd4 | [
"MIT"
] | 1 | 2018-12-15T11:50:33.000Z | 2018-12-15T11:50:33.000Z | #include <algorithm>
#include <array>
#include <cassert>
#include <cstdint>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#include <sstream>
#include <utility>
using Registers = std::array<int64_t, 6>;
struct Instruction
{
int opcode;
... | 21.670543 | 152 | 0.524235 |
458bf6d617a44dfd03bbc2a44d0c4749251feb4d | 801 | cpp | C++ | DEngine/Physics/cdCollisionWorld.cpp | norrischiu/DEngine | acea553f110b8d10fc7386ff0941b84f6d7ebce7 | [
"MIT",
"Unlicense"
] | 8 | 2016-05-23T03:08:08.000Z | 2020-03-02T06:15:16.000Z | DEngine/Physics/cdCollisionWorld.cpp | norrischiu/DEngine | acea553f110b8d10fc7386ff0941b84f6d7ebce7 | [
"MIT",
"Unlicense"
] | 8 | 2016-06-01T17:00:58.000Z | 2021-07-21T13:53:41.000Z | DEngine/Physics/cdCollisionWorld.cpp | norrischiu/DEngine | acea553f110b8d10fc7386ff0941b84f6d7ebce7 | [
"MIT",
"Unlicense"
] | 1 | 2017-09-25T03:39:34.000Z | 2017-09-25T03:39:34.000Z | #include "cdCollisionWorld.h"
/**
void CollisionWorld::addObject(const CollidableObject & object)
{
m_pObjects.push_back(object);
}
void CollisionWorld::addCollide(const Collide & collide)
{
m_pCollide.push_back(collide);
}
void CollisionWorld::computeCollision()
{
bool value = false;
Collide collide;
for (int... | 19.536585 | 95 | 0.68789 |
458c004d2710be6d40ca18beea5ef17f8842f0f1 | 8,708 | cxx | C++ | MITK/Plugins/uk.ac.ucl.cmic.igiultrasoundoverlayeditor/src/internal/niftkIGIUltrasoundOverlayEditorPreferencePage.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | MITK/Plugins/uk.ac.ucl.cmic.igiultrasoundoverlayeditor/src/internal/niftkIGIUltrasoundOverlayEditorPreferencePage.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | MITK/Plugins/uk.ac.ucl.cmic.igiultrasoundoverlayeditor/src/internal/niftkIGIUltrasoundOverlayEditorPreferencePage.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 37.373391 | 156 | 0.706821 |
45916e18b70b1ba2bd94f6b171cfa3caaa03cbf6 | 12,415 | hpp | C++ | include/Lodtalk/Collections.hpp | ronsaldo/lodtalk | 4668e8923f508c8a9e87a00242ab67b26fb0c9a4 | [
"MIT"
] | 3 | 2017-02-10T18:18:58.000Z | 2019-02-21T02:35:29.000Z | include/Lodtalk/Collections.hpp | ronsaldo/lodtalk | 4668e8923f508c8a9e87a00242ab67b26fb0c9a4 | [
"MIT"
] | null | null | null | include/Lodtalk/Collections.hpp | ronsaldo/lodtalk | 4668e8923f508c8a9e87a00242ab67b26fb0c9a4 | [
"MIT"
] | null | null | null | #ifndef LODTALK_COLLECTIONS_HPP_
#define LODTALK_COLLECTIONS_HPP_
#include <stddef.h>
#include <string>
#include "Lodtalk/Object.hpp"
namespace Lodtalk
{
/**
* Collection
*/
class LODTALK_VM_EXPORT Collection: public Object
{
public:
static SpecialNativeClassFactory Factory;
};
/**
* SequenceableCollection
... | 23.829175 | 134 | 0.737898 |
4593f57d4d81656f516d9deaca99f02bef8d2f98 | 1,610 | cpp | C++ | codechef/aug17/6.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | codechef/aug17/6.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | codechef/aug17/6.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
void printArr(vector<string> &v){
for(int i=0;i<v.size();i++){
cout<<v[i]<<endl;
}
}
long long int f(vector<string> &v,string str){
for(int i=0;i<str.length();i++){
bool is=0;
char c=str... | 22.676056 | 56 | 0.445342 |
459410b8db4d34750797b8d22906e62fa7952018 | 72,861 | cpp | C++ | src/zgemmtune.cpp | codedivine/raijinclv2 | e4c50b757e3fe6d1fa5d09c135f1156b31c08fab | [
"Apache-2.0"
] | null | null | null | src/zgemmtune.cpp | codedivine/raijinclv2 | e4c50b757e3fe6d1fa5d09c135f1156b31c08fab | [
"Apache-2.0"
] | null | null | null | src/zgemmtune.cpp | codedivine/raijinclv2 | e4c50b757e3fe6d1fa5d09c135f1156b31c08fab | [
"Apache-2.0"
] | null | null | null | /**Copyright 2012, Rahul Garg and McGill University
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 o... | 44.319343 | 193 | 0.447427 |
459c85c986e46de885a11a2a0a52ad2704918e44 | 1,840 | cpp | C++ | hyperplatform_log_parser/hyperplatform_log_parser.cpp | tandasat/hyperplatform_log_parser | 7a7eba3c8c582fa43ba2a47372a363080796d2d4 | [
"MIT"
] | 17 | 2016-04-08T10:59:03.000Z | 2021-12-11T07:09:31.000Z | hyperplatform_log_parser/hyperplatform_log_parser.cpp | c3358/hyperplatform_log_parser | 7a7eba3c8c582fa43ba2a47372a363080796d2d4 | [
"MIT"
] | null | null | null | hyperplatform_log_parser/hyperplatform_log_parser.cpp | c3358/hyperplatform_log_parser | 7a7eba3c8c582fa43ba2a47372a363080796d2d4 | [
"MIT"
] | 11 | 2016-07-02T15:23:57.000Z | 2021-01-08T19:27:36.000Z | // Copyright (c) 2015-2016, tandasat. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
//
// This module implements an entry point of the driver.
//
#include "stdafx.h"
#include "log_parser.h"
#include "utility.h"
///////////////////////////... | 23.291139 | 80 | 0.448913 |
459d3fd808aba1dfd91a27a8763c89bd4d83aae4 | 61 | hpp | C++ | addons/interrogation/functions/script_component.hpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 6 | 2018-05-05T22:28:57.000Z | 2019-07-06T08:46:51.000Z | addons/interrogation/functions/script_component.hpp | Schwaggot/kellerkompanie-mods | 7a389e49e3675866dbde1b317a44892926976e9d | [
"MIT"
] | 107 | 2018-04-11T19:42:27.000Z | 2019-09-13T19:05:31.000Z | addons/interrogation/functions/script_component.hpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 3 | 2018-10-03T11:54:46.000Z | 2019-02-28T13:30:16.000Z | #include "\x\keko\addons\interrogation\script_component.hpp"
| 30.5 | 60 | 0.819672 |
45a0d5b4a59c688e301f8a5f78f412956f5d1494 | 1,603 | cpp | C++ | SystemResource/Source/Compression/ZLIB/ZLIBCompressionLevel.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 5 | 2021-10-19T18:30:43.000Z | 2022-03-19T22:02:02.000Z | SystemResource/Source/Compression/ZLIB/ZLIBCompressionLevel.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 12 | 2022-03-09T13:40:21.000Z | 2022-03-31T12:47:48.000Z | SystemResource/Source/Compression/ZLIB/ZLIBCompressionLevel.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | null | null | null | #include "ZLIBCompressionLevel.h"
BF::ZLIBCompressionLevel BF::ConvertCompressionLevel(unsigned char compressionLevel)
{
switch (compressionLevel)
{
case 0u:
return BF::ZLIBCompressionLevel::Fastest;
case 1u:
return BF::ZLIBCompressionLevel::Fast;
case 2u:
... | 23.925373 | 84 | 0.625702 |
45a0dc71972c48dd43d07afd55f00e8ee349c216 | 15,185 | cpp | C++ | src/Conversion.cpp | markvilar/Sennet-ZED | 2b761ed4f3fefa93f5e37e3b5f283eb0934146d3 | [
"Apache-2.0"
] | null | null | null | src/Conversion.cpp | markvilar/Sennet-ZED | 2b761ed4f3fefa93f5e37e3b5f283eb0934146d3 | [
"Apache-2.0"
] | null | null | null | src/Conversion.cpp | markvilar/Sennet-ZED | 2b761ed4f3fefa93f5e37e3b5f283eb0934146d3 | [
"Apache-2.0"
] | null | null | null | #include "Sennet-ZED/Conversion.hpp"
sl::VIEW SennetToStereolabs(const Sennet::ZED::View& view)
{
switch (view)
{
case Sennet::ZED::View::Left:
return sl::VIEW::LEFT;
case Sennet::ZED::View::Right:
return sl::VIEW::RIGHT;
case Sennet::ZED::View::LeftGray:
return sl::VIEW::LEFT_GRAY;
case Sennet::ZED... | 30.989796 | 80 | 0.753309 |
45a55d2ac83ad14f7d75e5bef293e0e05bf1b121 | 19 | cpp | C++ | src/Type.cpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | 1 | 2021-09-05T08:38:39.000Z | 2021-09-05T08:38:39.000Z | src/Type.cpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | src/Type.cpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | 2 | 2021-12-04T14:39:52.000Z | 2022-03-04T21:12:02.000Z | #include "Type.hpp" | 19 | 19 | 0.736842 |
45aa1cc56e96bcf62894efe1c61d5d3ed75c0841 | 238 | cpp | C++ | Course Experiment/C Language Course Course Exp/Homework/No.7 Homework/5.空格处理.cpp | XJDKC/University-Code-Archive | 2dd9c6edb2164540dc50db1bb94940fe53c6eba0 | [
"MIT"
] | 4 | 2019-04-01T17:33:38.000Z | 2022-01-08T04:07:52.000Z | Course Experiment/C Language Course Course Exp/Homework/No.7 Homework/5.空格处理.cpp | XJDKC/University-Code-Archive | 2dd9c6edb2164540dc50db1bb94940fe53c6eba0 | [
"MIT"
] | null | null | null | Course Experiment/C Language Course Course Exp/Homework/No.7 Homework/5.空格处理.cpp | XJDKC/University-Code-Archive | 2dd9c6edb2164540dc50db1bb94940fe53c6eba0 | [
"MIT"
] | 1 | 2021-01-06T11:04:31.000Z | 2021-01-06T11:04:31.000Z | #include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
getchar();
while (n--)
{
char a='0',b;
while ((b=getchar())!='\n')
{
if (a!='0'&&a==' '&&b==' ') continue;
a=b;
printf("%c",a);
}
printf("\n");
}
return 0;
}
| 11.9 | 40 | 0.432773 |
45b1eec24e6fbb6c79c985d3859420b22890719f | 2,353 | cpp | C++ | Projects/Library/Source/Translator/Token.cpp | kalineh/KAI | 43ab555bcbad1886715cd00b2cdac89e12d5cfe5 | [
"MIT"
] | 1 | 2018-06-16T17:53:43.000Z | 2018-06-16T17:53:43.000Z | Projects/Library/Source/Translator/Token.cpp | kalineh/KAI | 43ab555bcbad1886715cd00b2cdac89e12d5cfe5 | [
"MIT"
] | null | null | null | Projects/Library/Source/Translator/Token.cpp | kalineh/KAI | 43ab555bcbad1886715cd00b2cdac89e12d5cfe5 | [
"MIT"
] | null | null | null | #include "KAI/KAI.h"
#include "KAI/Translator/Token.h"
#include "KAI/Translator/Lexer.h"
KAI_BEGIN
Token::Token(Type type, const Lexer &lexer, int ln, Slice slice)
: type(type), lexer(&lexer), lineNumber(ln), slice(slice)
{
}
char Token::operator[](int n) const
{
return lexer->input[slice.Start + n];
}
std::stri... | 23.29703 | 80 | 0.686783 |
45b23114090b3dc841c5f936a8868d223511c6af | 521 | cpp | C++ | Interview-preparation-resources/Usual-C++-interview-question/algorithmic-solutions/possible_combination_of_a_given_string.cpp | Ajay-Embed/dataStructure-implementations | 03638b9bc34a7e1ef5fa450be6c660c223608eff | [
"BSD-3-Clause"
] | null | null | null | Interview-preparation-resources/Usual-C++-interview-question/algorithmic-solutions/possible_combination_of_a_given_string.cpp | Ajay-Embed/dataStructure-implementations | 03638b9bc34a7e1ef5fa450be6c660c223608eff | [
"BSD-3-Clause"
] | 4 | 2021-01-23T15:24:39.000Z | 2021-02-07T05:14:14.000Z | Interview-preparation-resources/Usual-C++-interview-question/algorithmic-solutions/possible_combination_of_a_given_string.cpp | Ajay-Embed/dataStructure-implementations | 03638b9bc34a7e1ef5fa450be6c660c223608eff | [
"BSD-3-Clause"
] | 2 | 2020-11-17T20:40:39.000Z | 2021-01-30T17:12:33.000Z | //code to find all possible combinations of a given string
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
void permut(string s, int i, int n)
{
// Recursion end case
if (i == n)
cout << s << " ";
else
{
for (int j = i; j <= n; j++)
{
swap(s[i], ... | 15.323529 | 58 | 0.452975 |
45b5656d99ec73a5687a9c57e0255033950efb59 | 863 | hpp | C++ | HexDumper.hpp | jancarlsson/snarkfront | 7f90a4181721f758f114497382aa462185e71dae | [
"MIT"
] | 60 | 2015-01-02T12:28:40.000Z | 2021-04-13T01:40:07.000Z | HexDumper.hpp | artree222/snarkfront | 7f90a4181721f758f114497382aa462185e71dae | [
"MIT"
] | 8 | 2015-03-05T13:12:39.000Z | 2018-07-03T07:17:45.000Z | HexDumper.hpp | artree222/snarkfront | 7f90a4181721f758f114497382aa462185e71dae | [
"MIT"
] | 17 | 2015-01-22T03:10:49.000Z | 2020-12-27T12:22:17.000Z | #ifndef _SNARKFRONT_HEX_DUMPER_HPP_
#define _SNARKFRONT_HEX_DUMPER_HPP_
#include <cstdint>
#include <istream>
#include <ostream>
#include <vector>
#include <cryptl/ASCII_Hex.hpp>
#include <cryptl/DataPusher.hpp>
namespace snarkfront {
////////////////////////////////////////////////////////////////////////////////
... | 19.177778 | 80 | 0.618772 |
45b6bb571b5dcd870ad59efbb29989e5fc5dfa59 | 1,278 | hpp | C++ | Siv3D/include/Siv3D/Base64.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | 1 | 2018-05-23T10:57:32.000Z | 2018-05-23T10:57:32.000Z | Siv3D/include/Siv3D/Base64.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/include/Siv3D/Base64.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | 1 | 2019-10-06T17:09:26.000Z | 2019-10-06T17:09:26.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Fwd.hpp"
namespace s... | 20.612903 | 61 | 0.553991 |
45b73eca1940d922653a5d22e172df165ef4f990 | 824 | cpp | C++ | superneurons/testing/test_malloc_free_speed.cpp | Phaeton-lang/baselines | 472c248047fbb55b5fa0e620758047b7f0a1d041 | [
"MIT"
] | null | null | null | superneurons/testing/test_malloc_free_speed.cpp | Phaeton-lang/baselines | 472c248047fbb55b5fa0e620758047b7f0a1d041 | [
"MIT"
] | null | null | null | superneurons/testing/test_malloc_free_speed.cpp | Phaeton-lang/baselines | 472c248047fbb55b5fa0e620758047b7f0a1d041 | [
"MIT"
] | null | null | null | //
// Created by ay27 on 8/15/17.
//
#include <superneurons.h>
using namespace std;
using namespace SuperNeurons;
int main(int argc, char** argv) {
const int T = 100;
const size_t MB = 1024*1024;
double ts;
double t1 = 0, t2 = 0;
size_t size;
//---------------------------------------------... | 20.097561 | 58 | 0.433252 |
45bf2301b27fdcb7361443a3e2f34a32713aedeb | 563 | cpp | C++ | week3/Math/main.cpp | iustina0/CommandDefense | 47044018be774b09d135bda82f1abdd5289237ea | [
"MIT"
] | null | null | null | week3/Math/main.cpp | iustina0/CommandDefense | 47044018be774b09d135bda82f1abdd5289237ea | [
"MIT"
] | null | null | null | week3/Math/main.cpp | iustina0/CommandDefense | 47044018be774b09d135bda82f1abdd5289237ea | [
"MIT"
] | null | null | null | #include "Math.h"
int main()
{
int a = 23, b=645, c=633;
double x = 132.45, y = 43.546, z = 89.476;
char *p, *q;
p = new char[4];
q = new char[4];
strcpy(p, "qwer");
strcpy(q, "asdf");
cout << Math::Add(a,b) << "\n";
cout << Math::Add(a,b,c) << "\n";
cout << Math::Add(x,y) << "\... | 24.478261 | 46 | 0.426288 |
45c0d698f2da891f8e4c70ef14a9883932ed1004 | 1,492 | cpp | C++ | GeeksForGeeks/Strongly Connected Components (Kosaraju's Algo).cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | GeeksForGeeks/Strongly Connected Components (Kosaraju's Algo).cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | GeeksForGeeks/Strongly Connected Components (Kosaraju's Algo).cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <locale>
#include <algorithm>
#include <cmath>
#include <unordered_map>
#include <bitset>
#include <climits>
#include <queue>
#include <stack>
using namespace std;
// GRAPH
void dfs(vector<int> adj[], vector<bool> &vis, stack<int> &st, int ind){
vis... | 19.893333 | 72 | 0.476542 |
45c1f7f43093cf219183eba6c6043dbd56ca7db3 | 1,532 | cpp | C++ | CWin/CWin/events/event_trigger_condition.cpp | benbraide/CWin | 0441b48a71fef0dbddabf61033d7286669772c1e | [
"MIT"
] | null | null | null | CWin/CWin/events/event_trigger_condition.cpp | benbraide/CWin | 0441b48a71fef0dbddabf61033d7286669772c1e | [
"MIT"
] | null | null | null | CWin/CWin/events/event_trigger_condition.cpp | benbraide/CWin | 0441b48a71fef0dbddabf61033d7286669772c1e | [
"MIT"
] | null | null | null | #include "event_trigger_condition.h"
cwin::events::trigger_condition::~trigger_condition() = default;
cwin::events::trigger_condition::operator m_callback_type() const{
return get();
}
cwin::events::trigger_condition::m_callback_type cwin::events::trigger_condition::get() const{
return nullptr;
}
cwin::events::ex... | 31.916667 | 105 | 0.772846 |
45c4ff283f1bd510f5089c454c2a348f353c0a08 | 3,347 | cpp | C++ | 12_TIM1_PWM_input/main.cpp | AVilezhaninov/STM32F429VG | cb77fb53235ffd4cdf000749e4857108bc96c2cb | [
"MIT"
] | null | null | null | 12_TIM1_PWM_input/main.cpp | AVilezhaninov/STM32F429VG | cb77fb53235ffd4cdf000749e4857108bc96c2cb | [
"MIT"
] | null | null | null | 12_TIM1_PWM_input/main.cpp | AVilezhaninov/STM32F429VG | cb77fb53235ffd4cdf000749e4857108bc96c2cb | [
"MIT"
] | null | null | null | /* CMSIS */
#include "CMSIS\Device\stm32f4xx.h"
/* User */
#include "user\RCC.h"
/******************************************************************************/
/* Private definitions ********************************************************/
/**************************************************************************... | 42.367089 | 80 | 0.380042 |
45c88d8e96e32d7e9ca06903b231e840b90406f2 | 836 | cxx | C++ | src/engine/ivp/ivp_collision/ivp_clustering_lrange_hash.cxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/ivp/ivp_collision/ivp_clustering_lrange_hash.cxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/ivp/ivp_collision/ivp_clustering_lrange_hash.cxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | // Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved.
#include <ivp_physics.hxx>
#include <ivu_vhash.hxx>
#include <ivp_clustering_longrange.hxx>
#include <ivp_clustering_lrange_hash.hxx>
IVP_ov_tree_hash::~IVP_ov_tree_hash() { ; }
int IVP_ov_tree_hash::node_to_index(IVP_OV_Node *node) {
return ... | 24.588235 | 79 | 0.697368 |
68f7074b50725b6a6363ef2a3ca8ae00111b5899 | 19,721 | cpp | C++ | components/sound/manager/sources/manager/sound_manager.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/sound/manager/sources/manager/sound_manager.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/sound/manager/sources/manager/sound_manager.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include <stl/algorithm>
#include <stl/hash_map>
#include <stl/list>
#include <stl/stack>
#include <stl/string>
#include <xtl/bind.h>
#include <xtl/common_exceptions.h>
#include <xtl/function.h>
#include <xtl/intrusive_ptr.h>
#include <xtl/iterator.h>
#include <xtl/shared_ptr.h>
#include <xtl/signal.h>
... | 33.539116 | 221 | 0.637341 |
68f869732418d1de819ccec3d477502ec2a8e751 | 2,715 | cpp | C++ | vkconfig/widget_preset.cpp | johnzupin/VulkanTools | 4a4d824b43984d29902f7c8246aab99f0909151d | [
"Apache-2.0"
] | null | null | null | vkconfig/widget_preset.cpp | johnzupin/VulkanTools | 4a4d824b43984d29902f7c8246aab99f0909151d | [
"Apache-2.0"
] | null | null | null | vkconfig/widget_preset.cpp | johnzupin/VulkanTools | 4a4d824b43984d29902f7c8246aab99f0909151d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Valve Corporation
* Copyright (c) 2020 LunarG, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 31.569767 | 130 | 0.698343 |
68ff22d8df3673d6303576f88fc3fa40888fd4de | 1,947 | cpp | C++ | network/src/network/loopPrivate.cpp | yandaomin/network | fd88844116d77639c7a76ec61fb352f2710f47a8 | [
"Apache-2.0"
] | null | null | null | network/src/network/loopPrivate.cpp | yandaomin/network | fd88844116d77639c7a76ec61fb352f2710f47a8 | [
"Apache-2.0"
] | null | null | null | network/src/network/loopPrivate.cpp | yandaomin/network | fd88844116d77639c7a76ec61fb352f2710f47a8 | [
"Apache-2.0"
] | null | null | null | #include "loopPrivate.h"
#include "async.h"
#include "loop.h"
// LoopPrivate::LoopPrivate()
// : LoopPrivate(false)
// {
// isRunning_ = false;
// }
LoopPrivate::LoopPrivate(bool isDefault) {
isRunning_ = false;
if (isDefault) {
loop_ = uv_default_loop();
}
else {
loop_ = new uv_loop_t();
::uv_loop_init(l... | 17.7 | 56 | 0.662044 |
ec026418b10f1e3f3595a30148bc55aec6ed70ab | 21,184 | cpp | C++ | src/decifer/cpp/solver.cpp | brian-arnold/decifer | 35be17f44988f55eb2a1cf71dc27ad2041c7d044 | [
"BSD-3-Clause"
] | 22 | 2019-05-04T10:50:41.000Z | 2021-12-30T06:17:16.000Z | src/decifer/cpp/solver.cpp | brian-arnold/decifer | 35be17f44988f55eb2a1cf71dc27ad2041c7d044 | [
"BSD-3-Clause"
] | 15 | 2019-07-23T09:13:03.000Z | 2022-03-20T22:19:35.000Z | src/decifer/cpp/solver.cpp | brian-arnold/decifer | 35be17f44988f55eb2a1cf71dc27ad2041c7d044 | [
"BSD-3-Clause"
] | 8 | 2019-07-24T12:56:02.000Z | 2021-09-21T14:05:34.000Z | /*
* solver.cpp
*
* Created on: 12-nov-2017
* Author: M. El-Kebir
*/
#include "solver.h"
#include "stategraph.h"
#include <iomanip>
Solver::Solver(const ReadMatrix& R,
int k,
int nrSegments,
double precisionBetaBin)
: _R(R)
, _k(k)
, _nrSegments(nrSegments... | 26.381071 | 151 | 0.527898 |
ec087b40fc0aeb9bb7862421ed3d0a0427b72406 | 170 | hpp | C++ | dfg/dataAnalysisAll.hpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2017-08-01T04:42:29.000Z | 2017-08-01T04:42:29.000Z | dfg/dataAnalysisAll.hpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 128 | 2018-04-06T23:01:51.000Z | 2022-03-31T20:19:38.000Z | dfg/dataAnalysisAll.hpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2018-03-21T01:11:05.000Z | 2021-04-05T19:20:31.000Z | #pragma once
#include "dataAnalysis/correlation.hpp"
#include "dataAnalysis/smoothWithNeighbourAverages.hpp"
#include "dataAnalysis/smoothWithNeighbourMedians.hpp"
| 28.333333 | 56 | 0.823529 |
ec0ecae6922b038f7a8c11091a6209d1259ba087 | 1,271 | cpp | C++ | week08/lesson/743-network-delay-time-Dijkstra.cpp | MiracleWong/algorithm-learning-camp | aa5bee8f12dc25992aaebd46647537633bf1207f | [
"MIT"
] | null | null | null | week08/lesson/743-network-delay-time-Dijkstra.cpp | MiracleWong/algorithm-learning-camp | aa5bee8f12dc25992aaebd46647537633bf1207f | [
"MIT"
] | null | null | null | week08/lesson/743-network-delay-time-Dijkstra.cpp | MiracleWong/algorithm-learning-camp | aa5bee8f12dc25992aaebd46647537633bf1207f | [
"MIT"
] | null | null | null | class Solution {
public:
int networkDelayTime(vector<vector<int>>& times, int n, int k) {
// 建立图
vector<vector<int>> ver(n+1, vector<int>());
vector<vector<int>> edge(n+1, vector<int>());
for (auto& e: times) {
int x = e[0], y = e[1], z = e[2];
ver[x].push_bac... | 28.886364 | 68 | 0.389457 |
ec0eef56d74c1c6cc4dae12c44f81b1e0cf72c91 | 689 | cpp | C++ | benchmarks/clean_shared_memory.cpp | MaximilienNaveau/shared_memory | 1440454759cdd19e0d898753d86b8714c1aefa84 | [
"BSD-3-Clause"
] | 2 | 2020-09-08T04:01:02.000Z | 2021-01-28T15:02:11.000Z | benchmarks/clean_shared_memory.cpp | MaximilienNaveau/shared_memory | 1440454759cdd19e0d898753d86b8714c1aefa84 | [
"BSD-3-Clause"
] | 13 | 2019-09-24T17:21:49.000Z | 2021-03-02T10:09:03.000Z | benchmarks/clean_shared_memory.cpp | MaximilienNaveau/shared_memory | 1440454759cdd19e0d898753d86b8714c1aefa84 | [
"BSD-3-Clause"
] | 2 | 2019-05-06T08:25:35.000Z | 2020-04-14T11:49:02.000Z | /**
* @file clean_shared_memory.cpp
* @author Vincent Berenz
* @license License BSD-3-Clause
* @copyright Copyright (c) 2019, New York University and Max Planck
* Gesellschaft.
* @date 2019-05-22
*
* @brief Clean the shared memory of the benchmark, the unnittests, ...
*/
#include <boost/interprocess/managed_s... | 29.956522 | 79 | 0.744557 |
ec1575753c7539cdf739067f1dad2f0a0b145d89 | 1,263 | cpp | C++ | solutions/partition_to_k_equal_sum_subsets.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | solutions/partition_to_k_equal_sum_subsets.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | solutions/partition_to_k_equal_sum_subsets.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | // Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty subsets whose sums are all equal.
// Example 1:
// Input: nums = [4, 3, 2, 3, 5, 2, 1], k = 4
// Output: True
// Explanation: It's possible to divide it into 4 subsets (5), (1, 4), (2,3), (... | 29.372093 | 159 | 0.524941 |
ec1b25669f107c859b42ff23c246f036309fd584 | 961 | cc | C++ | third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_receiver_sink_optimizer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_receiver_sink_optimizer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_receiver_sink_optimizer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | #include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_receiver_sink_optimizer.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace blink {
RtcEncodedAudioReceiverSinkOp... | 38.44 | 104 | 0.825182 |
ec1df7964614a4d7c573d595175c61fd57240122 | 3,463 | cpp | C++ | Queries/LanguageQuery.cpp | garmin/ActiveCaptainCommunitySDK-common | a7574a3b85b77771ceb47e5fc9a99fd31a10d47a | [
"Apache-2.0"
] | null | null | null | Queries/LanguageQuery.cpp | garmin/ActiveCaptainCommunitySDK-common | a7574a3b85b77771ceb47e5fc9a99fd31a10d47a | [
"Apache-2.0"
] | null | null | null | Queries/LanguageQuery.cpp | garmin/ActiveCaptainCommunitySDK-common | a7574a3b85b77771ceb47e5fc9a99fd31a10d47a | [
"Apache-2.0"
] | null | null | null | /*------------------------------------------------------------------------------
Copyright 2021 Garmin Ltd. or its subsidiaries.
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.apach... | 28.619835 | 80 | 0.574646 |
ec1f214e9a1c35cd7ee04a0109985f1a428a2937 | 2,473 | hpp | C++ | third-party/Empirical/include/emp/io/ascii_utils.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/include/emp/io/ascii_utils.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/include/emp/io/ascii_utils.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | /**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2020
*
* @file ascii_utils.hpp
* @brief Tools for working with ascii output.
* @note Status: ALPHA
*
*/
#ifndef EMP_A... | 33.418919 | 96 | 0.57501 |
ec1f273a78a9da8364d7fbaac6258d91b67b5c61 | 341 | cc | C++ | relative_path.cc | dancerj/gitlstreefs | f5eca366643a47814d3a12bc458e64a6a093e315 | [
"BSD-3-Clause"
] | 2 | 2015-10-05T10:30:14.000Z | 2018-09-10T05:35:04.000Z | relative_path.cc | dancerj/gitlstreefs | f5eca366643a47814d3a12bc458e64a6a093e315 | [
"BSD-3-Clause"
] | 1 | 2015-10-04T16:58:10.000Z | 2015-10-18T08:53:04.000Z | relative_path.cc | dancerj/gitlstreefs | f5eca366643a47814d3a12bc458e64a6a093e315 | [
"BSD-3-Clause"
] | 1 | 2015-09-28T04:25:20.000Z | 2015-09-28T04:25:20.000Z | #include "relative_path.h"
#include <assert.h>
#include <string>
using std::string;
string GetRelativePath(const char* path) {
// Input is /absolute/path/below
// convert to a relative path.
assert(*path != 0);
if (path[1] == 0) {
// special-case / ? "" isn't a good relative path.
return "./";
}
... | 17.05 | 54 | 0.615836 |
ec213f9231c8fb1d202eee73c015179b132f8df4 | 5,346 | cpp | C++ | 01_Develop/libXMCocos2D/Source/extensions/CCScrollView/CCSorting.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2017-08-03T07:15:00.000Z | 2018-06-18T10:32:53.000Z | 01_Develop/libXMCocos2D/Source/extensions/CCScrollView/CCSorting.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | null | null | null | 01_Develop/libXMCocos2D/Source/extensions/CCScrollView/CCSorting.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2019-03-04T22:57:42.000Z | 2020-03-06T01:32:26.000Z | /* --------------------------------------------------------------------------
*
* File CCSorting.cpp
* Author Y.H Mun
*
* --------------------------------------------------------------------------
*
* Copyright (c) 2010-2013 cocos2d-x.org
* Copyright (c) 2010 San... | 27.415385 | 128 | 0.559858 |
ec222a29a646a72b53ac2d8de9038785177f1c42 | 14,945 | cpp | C++ | riptide_teleop/src/ps3_controller.cpp | noahl1/riptide_software | 1b380889c063b8866bc356f586752b63b1a429f8 | [
"BSD-2-Clause"
] | 1 | 2020-07-17T23:57:58.000Z | 2020-07-17T23:57:58.000Z | riptide_teleop/src/ps3_controller.cpp | noahl1/riptide_software | 1b380889c063b8866bc356f586752b63b1a429f8 | [
"BSD-2-Clause"
] | null | null | null | riptide_teleop/src/ps3_controller.cpp | noahl1/riptide_software | 1b380889c063b8866bc356f586752b63b1a429f8 | [
"BSD-2-Clause"
] | null | null | null | #include "riptide_teleop/ps3_controller.h"
#define GRAVITY 9.81 // [m/s^2]
#define WATER_DENSITY 1000 // [kg/m^3]
bool IS_ATTITUDE_RESET = false;
bool IS_DEPTH_RESET = false;
int main(int argc, char **argv)
{
ros::init(argc, argv, "ps3_controller");
PS3Controller ps3;
ps3.Loop();
}
PS3Controller::PS3Con... | 30.131048 | 142 | 0.661559 |
ec29a544d9100b3387e11d9bc03102fb43674314 | 329 | hh | C++ | src/UsageEnvironment/include/UsageEnvironment_version.hh | RayanWang/Live555 | 3a8b2998e5872326e4edb96e6e7dc46dc1d16af4 | [
"MIT"
] | 5 | 2018-04-09T02:03:33.000Z | 2022-03-26T16:17:52.000Z | src/UsageEnvironment/include/UsageEnvironment_version.hh | RayanWang/Live555 | 3a8b2998e5872326e4edb96e6e7dc46dc1d16af4 | [
"MIT"
] | null | null | null | src/UsageEnvironment/include/UsageEnvironment_version.hh | RayanWang/Live555 | 3a8b2998e5872326e4edb96e6e7dc46dc1d16af4 | [
"MIT"
] | null | null | null | // Version information for the "UsageEnvironment" library
// Copyright (c) 1996-2014 Live Networks, Inc. All rights reserved.
#ifndef _USAGEENVIRONMENT_VERSION_HH
#define _USAGEENVIRONMENT_VERSION_HH
#define USAGEENVIRONMENT_LIBRARY_VERSION_STRING "2014.12.17"
#define USAGEENVIRONMENT_LIBRARY_VERSION_INT 1418774400... | 29.909091 | 68 | 0.835866 |
ec2bc096ac8d02bf32f1e3d46ed2a7005d6d0383 | 3,663 | cpp | C++ | Builds/vs2013/Task2/unittest1.cpp | AJ-Moore/AIStates | b2bc31d7d3cbec25b4efacbe9ae6c9940e8e68e4 | [
"MIT"
] | null | null | null | Builds/vs2013/Task2/unittest1.cpp | AJ-Moore/AIStates | b2bc31d7d3cbec25b4efacbe9ae6c9940e8e68e4 | [
"MIT"
] | null | null | null | Builds/vs2013/Task2/unittest1.cpp | AJ-Moore/AIStates | b2bc31d7d3cbec25b4efacbe9ae6c9940e8e68e4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CppUnitTest.h"
#include <AI.h>
#include <FSM.h>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Task2
{
TEST_CLASS(UnitTest1)
{
public:
//Test that the AI Starting State is Idle
TEST_METHOD(StartState)
{
AI ai(false, 0, 0);
Assert::AreEqual... | 31.577586 | 83 | 0.670762 |
ec2c9e529ef42d3a903fcae5273beb2dec55545d | 276 | cpp | C++ | Char.cpp | RafelNunes/ifsc-programacao | 40622fb1a5496e09f4800220e293385468fef323 | [
"MIT"
] | null | null | null | Char.cpp | RafelNunes/ifsc-programacao | 40622fb1a5496e09f4800220e293385468fef323 | [
"MIT"
] | null | null | null | Char.cpp | RafelNunes/ifsc-programacao | 40622fb1a5496e09f4800220e293385468fef323 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
int main(void){
char letra1, letra2;
printf("Digite um caracter: ");
scanf("%c", &letra1);
while(letra1 != 'X')
{printf("Digite um caracter: ");
scanf(" %c", &letra1);
}
printf("Letra1: %c Letra2: %c\n", letra1, letra2);
}
| 16.235294 | 51 | 0.605072 |
ec2cac1e7551ff2e16b4369eae9e355be031b373 | 3,361 | cpp | C++ | tests/isqrt_test.cpp | aladur/primes | 1db3050af466da367daeac4f98fc3b05153385ac | [
"BSD-3-Clause"
] | null | null | null | tests/isqrt_test.cpp | aladur/primes | 1db3050af466da367daeac4f98fc3b05153385ac | [
"BSD-3-Clause"
] | null | null | null | tests/isqrt_test.cpp | aladur/primes | 1db3050af466da367daeac4f98fc3b05153385ac | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright 2021 Wolfgang Schwotzer
Redistribution and use in source and binary forms, with or without modification,are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyr... | 33.949495 | 141 | 0.712883 |
ec2ec73f474fa18945883ea8e2f68b90c16505c2 | 1,645 | hpp | C++ | libcaf_net/caf/net/http/v1.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_net/caf/net/http/v1.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_net/caf/net/http/v1.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | // 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.
#pragma once
#include "caf/byte_span.hpp"
#include "caf/detail/net_export.hpp"
#include "... | 40.121951 | 79 | 0.68997 |
ec30e5ce0bcc57fc07b313ca33ef1b05123d8737 | 2,089 | cpp | C++ | lib-dmxserial/src/serial/serialspi.cpp | vanvught/rpidmx512 | b56bb2db406247b4fd4c56aa372952939f4a3290 | [
"MIT"
] | 328 | 2015-02-26T09:54:16.000Z | 2022-03-31T11:04:00.000Z | lib-dmxserial/src/serial/serialspi.cpp | vanvught/rpidmx512 | b56bb2db406247b4fd4c56aa372952939f4a3290 | [
"MIT"
] | 195 | 2016-07-13T10:43:37.000Z | 2022-03-20T19:14:55.000Z | lib-dmxserial/src/serial/serialspi.cpp | vanvught/rpidmx512 | b56bb2db406247b4fd4c56aa372952939f4a3290 | [
"MIT"
] | 113 | 2015-06-08T04:54:23.000Z | 2022-02-15T09:06:10.000Z | /**
* @file serialspi.cpp
*
*/
/* Copyright (C) 2020-2021 by Arjan van Vught mailto:info@orangepi-dmx.nl
*
* 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, includin... | 26.782051 | 80 | 0.748205 |
ec33e1506d3394794f2a6196eef9fa94d4dc6e6e | 32,278 | cpp | C++ | Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | Engine/Source/Runtime/Core/Private/Linux/LinuxPlatformProcess.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "CorePrivatePCH.h"
#include "LinuxPlatformRunnableThread.h"
#include "EngineVersion.h"
#include <spawn.h>
#include <sys/wait.h>
#include <sys/resource.h>
#include <sys/ioctl.h> // ioctl
#include <asm/ioctls.h> // FIONREAD
#include "LinuxApplication.... | 26.875937 | 253 | 0.707045 |
ec349105626f6ef1b4acc73abbf21be54516c61e | 4,545 | cpp | C++ | LaalMathEngine/src/Shape/SvgShape.cpp | vijayshankarkumar/LME | 6483d893a8902cec4959936220656fcab2b72d4f | [
"MIT"
] | 1 | 2022-02-18T10:38:42.000Z | 2022-02-18T10:38:42.000Z | LaalMathEngine/src/Shape/SvgShape.cpp | vijayshankarkumar/LME | 6483d893a8902cec4959936220656fcab2b72d4f | [
"MIT"
] | 1 | 2021-09-03T21:20:38.000Z | 2021-09-03T21:20:38.000Z | LaalMathEngine/src/Shape/SvgShape.cpp | vijayshankarkumar/LME | 6483d893a8902cec4959936220656fcab2b72d4f | [
"MIT"
] | null | null | null | #include "Shape/SvgShape.h"
namespace laal
{
SvgShape::SvgShape()
{
}
SvgShape::SvgShape(const std::string& fileName)
{
InitChildShapes(fileName);
}
SvgShape::~SvgShape()
{
for (Shape* shape : m_ChildShapes)
{
delete shape;
}
}
void SvgShape::InitChildShapes(const std::string& fileName)
{
N... | 22.5 | 91 | 0.626843 |
ec360c64fc078ef775cec6f7c9475b9ced8fe411 | 1,343 | cc | C++ | src/leveldb/db/version_edit_test.cc | moorecoin/MooreCoinMiningAlgorithm | fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d | [
"MIT"
] | null | null | null | src/leveldb/db/version_edit_test.cc | moorecoin/MooreCoinMiningAlgorithm | fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d | [
"MIT"
] | null | null | null | src/leveldb/db/version_edit_test.cc | moorecoin/MooreCoinMiningAlgorithm | fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d | [
"MIT"
] | null | null | null | // copyright (c) 2011 the leveldb authors. all rights reserved.
// use of this source code is governed by a bsd-style license that can be
// found in the license file. see the authors file for names of contributors.
#include "db/version_edit.h"
#include "util/testharness.h"
namespace leveldb {
static void testencode... | 28.574468 | 77 | 0.676098 |
ec3dedc1db72bb18c98c72b2040a10eee84a5009 | 62,323 | cpp | C++ | Analysis/Calibration/LinearCalibrationModel.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 125 | 2015-01-22T05:43:23.000Z | 2022-03-22T17:15:59.000Z | Analysis/Calibration/LinearCalibrationModel.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 59 | 2015-02-10T09:13:06.000Z | 2021-11-11T02:32:38.000Z | Analysis/Calibration/LinearCalibrationModel.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 98 | 2015-01-17T01:25:10.000Z | 2022-03-18T17:29:42.000Z | /* Copyright (C) 2015 Life Technologies Corporation, a part of Thermo Fisher Scientific, Inc. All Rights Reserved. */
//! @file LinearCalibrationModel.cpp
//! @ingroup Calibration
//! @brief LinearCalibrationModel. Algorithms for adjusting the predicted signal by homopolymer.
//! @brief During model trainin... | 41.355674 | 196 | 0.656194 |
ec3f65192e715686735d0cc87c5ef7837a149342 | 6,837 | cpp | C++ | SimSpark/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/rcssserver3d/plugin/soccer/gamestateaspect/gamestateitem.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
this file is part of rcssserver3D
Fri May 9 2003
Copyright (C) 2002,2003 Koblenz University
Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
$Id$
This program is free software; you can redistribute it and/or modify
it und... | 31.506912 | 124 | 0.64853 |
ec411e41e5e7f00fd5988a99752d7abb2b69a426 | 4,490 | cpp | C++ | 3DShootingGame/Framework/Physics/Rigidbody.cpp | ydeagames/3DShootingGame | f93e15179452810bd55fbfcedb6c162698296ec4 | [
"MIT"
] | 2 | 2020-03-30T05:11:51.000Z | 2022-01-30T09:04:40.000Z | 3DShootingGame/Framework/Physics/Rigidbody.cpp | ydeagames/3DShootingGame | f93e15179452810bd55fbfcedb6c162698296ec4 | [
"MIT"
] | null | null | null | 3DShootingGame/Framework/Physics/Rigidbody.cpp | ydeagames/3DShootingGame | f93e15179452810bd55fbfcedb6c162698296ec4 | [
"MIT"
] | 2 | 2020-03-30T05:11:52.000Z | 2020-10-28T02:06:35.000Z | // Copyright (c) 2019-2020 ydeagames
// Released under the MIT license
// https://github.com/ydeagames/3DShootingGame/blob/master/LICENSE
//
// Author: ${ydeagames}
// Created: 2019-07-22 06:12:28 +0900
// Modified: 2020-01-17 11:44:41 +0900
#include "pch.h"
#include "Rigidbody.h"
#include "Collidable.h"
#include <Fra... | 30.753425 | 162 | 0.710022 |
ec41db944c5ccf4371e9f02f77f4024f1882087c | 754 | cpp | C++ | source/native-backend/parsing/TextProcessor.cpp | batburger/Native-Backend | aaed26851e09f9e110061025fb2140aed1b4f9b5 | [
"Apache-2.0"
] | null | null | null | source/native-backend/parsing/TextProcessor.cpp | batburger/Native-Backend | aaed26851e09f9e110061025fb2140aed1b4f9b5 | [
"Apache-2.0"
] | null | null | null | source/native-backend/parsing/TextProcessor.cpp | batburger/Native-Backend | aaed26851e09f9e110061025fb2140aed1b4f9b5 | [
"Apache-2.0"
] | null | null | null | //
// Created by albert on 3/17/18.
//
#include "native-backend/parsing/TextProcessor.h"
/*!\brief Finds the value specified as key in \c replacement_map in the \c input_string and replaces it with the value for the key.*/
void
nvb::TextProcessor::process(std::string *input_string, std::unordered_map<std::string, std... | 41.888889 | 133 | 0.706897 |
ec452340961e1d815ad437430988dbeaa16cbb3d | 1,234 | cpp | C++ | daolib/CommonQueries.cpp | mfranceschi/SQLiteDao | 447da25d15f6332e454f151fb71aa232665d8506 | [
"MIT"
] | null | null | null | daolib/CommonQueries.cpp | mfranceschi/SQLiteDao | 447da25d15f6332e454f151fb71aa232665d8506 | [
"MIT"
] | null | null | null | daolib/CommonQueries.cpp | mfranceschi/SQLiteDao | 447da25d15f6332e454f151fb71aa232665d8506 | [
"MIT"
] | null | null | null |
#include "CommonQueries.hpp"
#include <algorithm>
#include "magic_enum.hpp"
#include <fmt/core.h>
#include <fmt/format.h>
std::string enquote(const std::string &text) {
return fmt::format("`{}`", text);
};
namespace CommonQueries {
std::string dropTableIfExists(const std::string &tableName) {
return fmt::forma... | 30.85 | 79 | 0.628849 |
ec4c7360f6ec7ae840e22bc6ba95fe901cc59e4a | 186 | cpp | C++ | test/test-bits.cpp | mbeutel/slowmath | d09967d168433814896e83af2fbc92bc36e6c4fb | [
"BSL-1.0"
] | 1 | 2021-09-02T07:03:53.000Z | 2021-09-02T07:03:53.000Z | test/test-bits.cpp | mbeutel/slowmath | d09967d168433814896e83af2fbc92bc36e6c4fb | [
"BSL-1.0"
] | 8 | 2019-12-03T21:11:07.000Z | 2020-02-05T18:44:31.000Z | test/test-bits.cpp | mbeutel/slowmath | d09967d168433814896e83af2fbc92bc36e6c4fb | [
"BSL-1.0"
] | null | null | null |
#include <tuple>
#include <catch2/catch.hpp>
#include <slowmath/arithmetic.hpp>
// TODO: add comprehensive tests for shift_left()
// TODO: add comprehensive tests for shift_right()
| 16.909091 | 50 | 0.741935 |
ec4cf730a3c860d1d316407b9f40218bc5535f56 | 4,644 | cpp | C++ | cafebazaar-iap/src/iapc_private.cpp | dev-masih/cafebazaar-iap | 765fd6c2dacf687c09cf7585003c0d3437e4748e | [
"MIT"
] | 3 | 2019-10-26T05:55:50.000Z | 2021-03-30T12:30:33.000Z | cafebazaar-iap/src/iapc_private.cpp | dev-masih/cafebazaar-iap | 765fd6c2dacf687c09cf7585003c0d3437e4748e | [
"MIT"
] | null | null | null | cafebazaar-iap/src/iapc_private.cpp | dev-masih/cafebazaar-iap | 765fd6c2dacf687c09cf7585003c0d3437e4748e | [
"MIT"
] | null | null | null | #if defined(DM_PLATFORM_ANDROID)
#include <dmsdk/sdk.h>
#include "iapc.h"
#include "iapc_private.h"
#include <string.h>
#include <stdlib.h>
IAPCListener::IAPCListener() {
IAPC_ClearCallback(this);
}
void IAPC_ClearCallback(IAPCListener* callback)
{
callback->m_L = 0;
callback->m_Callback = LUA_NOREF;
... | 24.062176 | 117 | 0.623385 |
ec4de22693fbd85ce1682b86960c25b1d8fde467 | 1,614 | cpp | C++ | HW06/src/utils.cpp | petegerhat/cuda | 671c244276828baeeb66e2c4e0e2f9881b666716 | [
"Apache-2.0"
] | null | null | null | HW06/src/utils.cpp | petegerhat/cuda | 671c244276828baeeb66e2c4e0e2f9881b666716 | [
"Apache-2.0"
] | null | null | null | HW06/src/utils.cpp | petegerhat/cuda | 671c244276828baeeb66e2c4e0e2f9881b666716 | [
"Apache-2.0"
] | null | null | null | /*
* File: main.cpp
* Author: peter
*
* Created on March 25, 2012, 1:36 AM
*/
#ifndef UTILS_H
#define UTILS_H
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
DT& getDistance(DT* distances, int n, int i, int j) {
#ifdef DIS1
return distances[i * n + j];
#e... | 17.543478 | 53 | 0.545229 |
ec5adc5a9c03b8a2411a07904d972c0b0913191d | 2,437 | cpp | C++ | GLEngine/Program.cpp | TheMysticLynx/GLEngine | b0c696941d6bbdb5d8fd9d556fc70cf975497153 | [
"Apache-2.0"
] | null | null | null | GLEngine/Program.cpp | TheMysticLynx/GLEngine | b0c696941d6bbdb5d8fd9d556fc70cf975497153 | [
"Apache-2.0"
] | null | null | null | GLEngine/Program.cpp | TheMysticLynx/GLEngine | b0c696941d6bbdb5d8fd9d556fc70cf975497153 | [
"Apache-2.0"
] | null | null | null | #include "Program.h"
#include <glad/glad.h>
#include <iostream>
#include <glm/ext/matrix_float4x4.hpp>
#include <glm/gtc/type_ptr.hpp>
Program::Program(std::vector<Shader> shaders)
{
id = glCreateProgram();
std::vector<Shader>::iterator itt = shaders.begin();
do {
glAttachShader(id, (*itt).id);
itt++;
} while ... | 23.892157 | 97 | 0.691014 |
ec5c747a65793612ebb73d5af99470d314af928a | 1,235 | cc | C++ | common/iterator_test.cc | disktnk/chainer-compiler | 5cfd027b40ea6e4abf73eb42be70b4fba74d1cde | [
"MIT"
] | 116 | 2019-01-25T03:54:44.000Z | 2022-03-08T00:11:14.000Z | common/iterator_test.cc | disktnk/chainer-compiler | 5cfd027b40ea6e4abf73eb42be70b4fba74d1cde | [
"MIT"
] | 431 | 2019-01-25T10:18:44.000Z | 2020-06-17T05:28:55.000Z | common/iterator_test.cc | disktnk/chainer-compiler | 5cfd027b40ea6e4abf73eb42be70b4fba74d1cde | [
"MIT"
] | 26 | 2019-01-25T07:21:09.000Z | 2021-11-26T04:24:35.000Z | #include <gtest/gtest.h>
#include <set>
#include <vector>
#include <common/iterator.h>
namespace chainer_compiler {
namespace {
TEST(IteratorTest, Zip) {
std::set<int> ints = {3, 4, 5};
std::vector<std::string> strs = {"a", "b", "c"};
std::vector<std::tuple<int, std::string>> results;
for (const aut... | 28.068182 | 56 | 0.604858 |
ec5f0a1e909552fb2848eaa8bea0b5b849b68c16 | 575 | cpp | C++ | Algorithms/1269.Number_of_Ways_to_Stay_in_the_Same_Place_After_Some_Steps.cpp | metehkaya/LeetCode | 52f4a1497758c6f996d515ced151e8783ae4d4d2 | [
"MIT"
] | 2 | 2020-07-20T06:40:22.000Z | 2021-11-20T01:23:26.000Z | Problems/LeetCode/Problems/1269.Number_of_Ways_to_Stay_in_the_Same_Place_After_Some_Steps.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | Problems/LeetCode/Problems/1269.Number_of_Ways_to_Stay_in_the_Same_Place_After_Some_Steps.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | class Solution {
public:
const int MOD = (int) 1e9 + 7;
int numWays(int steps, int n) {
n = min(n,steps+1);
vector<vector<int>> dp(steps+1,vector<int>(n,0));
dp[0][0] = 1;
for( int s = 1 ; s <= steps ; s++ )
for( int i = 0 ; i < n ; i++ ) {
dp[s][i] = ... | 31.944444 | 65 | 0.353043 |
ec626a878b49aeca2f8c8eb34f81b11e7ba0e81b | 46,255 | cpp | C++ | net/tapi/skywalker/terminals/frecord/recordingtrackterminal.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | net/tapi/skywalker/terminals/frecord/recordingtrackterminal.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | net/tapi/skywalker/terminals/frecord/recordingtrackterminal.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // RecordingTrackTerminal.cpp: implementation of the CRecordingTrackTerminal class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "RecordingTrackTerminal.h"
#include "FileRecordingTerminal.h"
#include "..\storage\RendPinFilter.h"
#include <formats.h>... | 22.955335 | 141 | 0.575224 |
ec62ea93f7707080935e94c530290dd834411df5 | 23,401 | cxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_HeatExEarthToWater_Surface.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_HeatExEarthToWater_Surface.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_HeatExEarthToWater_Surface.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 41.271605 | 164 | 0.718345 |
ec65139c14c4f006ab838c4f734336557e3ed9e9 | 5,705 | hpp | C++ | runtime/src/Plugin.hpp | KungRaseri/Onsharp | 84edac81c184a1c5c40af915ac4c70e1ee27982e | [
"MIT"
] | 11 | 2020-06-26T07:51:34.000Z | 2020-10-31T13:36:57.000Z | runtime/src/Plugin.hpp | KungRaseri/Onsharp | 84edac81c184a1c5c40af915ac4c70e1ee27982e | [
"MIT"
] | 1 | 2021-01-13T20:05:11.000Z | 2021-01-13T20:05:11.000Z | runtime/src/Plugin.hpp | KungRaseri/Onsharp | 84edac81c184a1c5c40af915ac4c70e1ee27982e | [
"MIT"
] | 5 | 2020-07-14T20:46:26.000Z | 2021-05-18T01:07:05.000Z | #pragma once
#include <vector>
#include <tuple>
#include <map>
#include <functional>
#include <PluginSDK.h>
#include "Singleton.hpp"
#include "NetBridge.hpp"
class Plugin : public Singleton<Plugin>
{
friend class Singleton<Plugin>;
private:
Plugin();
~Plugin() = default;
std::map<std::string, lua_Stat... | 24.590517 | 91 | 0.474847 |
ec6550f7f9b7351b4b82ef1fc9ffef8244d19ad7 | 5,809 | hpp | C++ | my_vulkan/command_buffer.hpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | my_vulkan/command_buffer.hpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | 3 | 2019-02-25T10:13:57.000Z | 2020-11-11T14:46:14.000Z | my_vulkan/command_buffer.hpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | #pragma once
#include <vulkan/vulkan.h>
#include <vector>
#include "utils.hpp"
namespace my_vulkan
{
struct command_buffer_t
{
struct scope_t
{
scope_t(
VkCommandBuffer command_buffer,
VkCommandBufferUsageFlags flags
);
scope_... | 33.773256 | 72 | 0.531589 |
ec669e2811f8c3832ac24e4ccb6ea55c1716d7e3 | 2,325 | cpp | C++ | leetcode/stack and queue/Implement Stack using Queues225/Implement Stack using Queues/Implement Stack using Queues/main.cpp | mingyuefly/leetcode | b1af0b715ac6ef15a1321057bbd9e6f8bddbbcf8 | [
"MIT"
] | null | null | null | leetcode/stack and queue/Implement Stack using Queues225/Implement Stack using Queues/Implement Stack using Queues/main.cpp | mingyuefly/leetcode | b1af0b715ac6ef15a1321057bbd9e6f8bddbbcf8 | [
"MIT"
] | null | null | null | leetcode/stack and queue/Implement Stack using Queues225/Implement Stack using Queues/Implement Stack using Queues/main.cpp | mingyuefly/leetcode | b1af0b715ac6ef15a1321057bbd9e6f8bddbbcf8 | [
"MIT"
] | null | null | null | //
// main.cpp
// Implement Stack using Queues
//
/**
Implement the following operations of a stack using queues.
push(x) -- Push element x onto stack.
pop() -- Removes the element on top of the stack.
top() -- Get the top element.
empty() -- Return whether the stack is empty.
Example:
MyStack stack = new My... | 25.833333 | 193 | 0.603011 |
ec68e4787edb502ad2d5e52c90b00576688b9711 | 1,373 | cpp | C++ | src/core/main.cpp | Opticalp/instrumentall | f952c1cd54f375dc4cb258fec5af34d14c2b8044 | [
"MIT"
] | 1 | 2020-05-19T02:06:55.000Z | 2020-05-19T02:06:55.000Z | src/core/main.cpp | Opticalp/instrumentall | f952c1cd54f375dc4cb258fec5af34d14c2b8044 | [
"MIT"
] | 16 | 2015-11-18T13:25:30.000Z | 2018-05-17T19:25:46.000Z | src/core/main.cpp | Opticalp/instrumentall | f952c1cd54f375dc4cb258fec5af34d14c2b8044 | [
"MIT"
] | null | null | null | /**
* @file src/core/main.cpp
* @date nov. 2015
* @author PhRG / opticalp.fr
*
* Entry point for the Instrumentall software.
*
* Using POCO (pocoproject.org) Util Application feature.
*/
/*
Copyright (c) 2015 Ph. Renaud-Goud / Opticalp
Permission is hereby granted, free of charge, to any person obtaining a... | 36.131579 | 77 | 0.778587 |
ec69358fa56dcbd1b4a63769bb58639a33809df3 | 762 | hpp | C++ | matlab/src/bits/nnsimpooling.hpp | taigw/matconvnet-dermoscopy | 14429a9f66a116cabafaae252f23bd88f0b910a5 | [
"BSD-2-Clause"
] | 39 | 2017-06-15T19:34:26.000Z | 2021-12-10T23:25:13.000Z | matlab/src/bits/nnsimpooling.hpp | taigw/matconvnet-dermoscopy | 14429a9f66a116cabafaae252f23bd88f0b910a5 | [
"BSD-2-Clause"
] | 2 | 2018-06-05T20:34:50.000Z | 2019-02-10T19:35:21.000Z | matlab/src/bits/nnsimpooling.hpp | igondia/matconvnet-dermoscopy | 038cc2f023d464520517ca6a5fedf95bc09a9edc | [
"BSD-2-Clause"
] | 21 | 2017-06-02T13:00:12.000Z | 2021-01-02T11:14:42.000Z | // @file nnpooling.hpp
// @brief Pooling block
// @author Andrea Vedaldi
/*
Copyright (C) 2014-16 Andrea Vedaldi and Karel Lenc.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
#ifndef __vl__nnsimpooling__
#define __vl__... | 21.771429 | 67 | 0.641732 |
ec6c1797585f179110d25ad63d2a5108246f8356 | 2,142 | cpp | C++ | Source/SimpleBattle/Pawns/BattlePlayerPawn.cpp | mrthunder/Simple-Battle | cc104c29314619875007e6596f6090691e3ec465 | [
"MIT"
] | null | null | null | Source/SimpleBattle/Pawns/BattlePlayerPawn.cpp | mrthunder/Simple-Battle | cc104c29314619875007e6596f6090691e3ec465 | [
"MIT"
] | null | null | null | Source/SimpleBattle/Pawns/BattlePlayerPawn.cpp | mrthunder/Simple-Battle | cc104c29314619875007e6596f6090691e3ec465 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Unit.h"
#include "BattlePlayerPawn.h"
// Sets default values
ABattlePlayerPawn::ABattlePlayerPawn()
{
// Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActo... | 21.636364 | 114 | 0.736228 |
ec6dac3adc0af9a1ab1733e9ef7655065611ac44 | 6,494 | cpp | C++ | utils/TauReflectionGenerator/src/reflection/attribs/GetAttribute.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | utils/TauReflectionGenerator/src/reflection/attribs/GetAttribute.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | utils/TauReflectionGenerator/src/reflection/attribs/GetAttribute.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | #include <llvm/Support/raw_ostream.h>
#include "reflection/attribs/GetAttribute.hpp"
#include "reflection/Class.hpp"
namespace tau { namespace reflection { namespace attribs {
AttributeData GetPropertyAttribute::parseAttribute(const DynString& attribName, const ::clang::MacroArgs*, const ::clang::Token*& currentToken... | 74.643678 | 158 | 0.345088 |
ec7446fc4af36d64c68344b4d9619a9098c878d8 | 3,468 | cpp | C++ | cpp/godot-cpp/src/gen/TextureLayered.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | 1 | 2021-03-16T09:51:00.000Z | 2021-03-16T09:51:00.000Z | cpp/godot-cpp/src/gen/TextureLayered.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | cpp/godot-cpp/src/gen/TextureLayered.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | #include "TextureLayered.hpp"
#include <core/GodotGlobal.hpp>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include <core/Godot.hpp>
#include "__icalls.hpp"
#include "Image.hpp"
namespace godot {
TextureLayered::___method_bindings TextureLayered::___mb = {};
void TextureLayered::___init_method_bindin... | 41.783133 | 154 | 0.789792 |
ec749757eb5106520231af244b31d13744d49a66 | 2,431 | cpp | C++ | isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0 ... | 30.3875 | 75 | 0.63513 |
3f3c5d302aa9fcea024c627020f5f72bb25c5f8b | 2,518 | cpp | C++ | RenderSystem/Cpu/rtCpuRenderSystem.cpp | CharlesCarley/Raytracer | 63f4926846195e45b3620aeea007094857a709d9 | [
"MIT"
] | null | null | null | RenderSystem/Cpu/rtCpuRenderSystem.cpp | CharlesCarley/Raytracer | 63f4926846195e45b3620aeea007094857a709d9 | [
"MIT"
] | null | null | null | RenderSystem/Cpu/rtCpuRenderSystem.cpp | CharlesCarley/Raytracer | 63f4926846195e45b3620aeea007094857a709d9 | [
"MIT"
] | null | null | null | /*
-------------------------------------------------------------------------------
Copyright (c) Charles Carley.
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is gran... | 26.787234 | 79 | 0.639793 |
3f404a701ec0e6c5ef9feb354a41640bc9ef5dd3 | 1,966 | cc | C++ | cpp/shared/tflite_micro/mltk_tflite_micro_recorded_data.cc | SiliconLabs/mltk | 56b19518187e9d1c8a0d275de137fc9058984a1f | [
"Zlib"
] | null | null | null | cpp/shared/tflite_micro/mltk_tflite_micro_recorded_data.cc | SiliconLabs/mltk | 56b19518187e9d1c8a0d275de137fc9058984a1f | [
"Zlib"
] | 1 | 2021-11-19T20:10:09.000Z | 2021-11-19T20:10:09.000Z | cpp/shared/tflite_micro/mltk_tflite_micro_recorded_data.cc | sldriedler/mltk | d82a60359cf875f542a2257f1bc7d8eb4bdaa204 | [
"Zlib"
] | null | null | null | #if TFLITE_MICRO_RECORDER_ENABLED
#include <cstring>
#include <cassert>
#include "mltk_tflite_micro_recorded_data.hpp"
namespace mltk
{
static TfliteMicroRecordedData _recorded_data;
/*************************************************************************************************/
TfliteMicroRecordedData& Tflit... | 22.860465 | 99 | 0.437436 |
3f47a80f400cd1cc69732af1e9dec95d15ed7b12 | 954 | cpp | C++ | src/receptor-bridge/receptors/TiltReceptor.cpp | bistanovski/ShiftEmitter | 000f14e3501bfb5d0b65cf2d9bbe8c150c66f391 | [
"MIT"
] | null | null | null | src/receptor-bridge/receptors/TiltReceptor.cpp | bistanovski/ShiftEmitter | 000f14e3501bfb5d0b65cf2d9bbe8c150c66f391 | [
"MIT"
] | 3 | 2018-05-05T19:51:14.000Z | 2018-05-06T22:25:41.000Z | src/receptor-bridge/receptors/TiltReceptor.cpp | bistanovski/ShiftEmitter | 000f14e3501bfb5d0b65cf2d9bbe8c150c66f391 | [
"MIT"
] | null | null | null | #include "TiltReceptor.hpp"
#include <QDebug>
TiltReceptor::TiltReceptor(QObject *parent) : Receptor(parent)
{
qDebug() << "TiltReceptor";
}
TiltReceptor::~TiltReceptor()
{
qDebug() << "~TiltReceptor";
}
void TiltReceptor::connectReceptor()
{
QObject::connect(&m_tiltSensor, SIGNAL(readingChanged()), thi... | 23.85 | 94 | 0.691824 |
3f4b62d952232e291a04c2a3b2fb320970ea9535 | 1,063 | cpp | C++ | src/btr/native_io.nix.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | 2 | 2021-08-02T15:04:33.000Z | 2021-08-10T05:07:46.000Z | src/btr/native_io.nix.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | null | null | null | src/btr/native_io.nix.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | null | null | null | #include "./native_io.hpp"
#include "./syserror.hpp"
using namespace btr;
#if !_WIN32
#include <unistd.h>
void posix_fd_traits::close(int fd) noexcept { ::close(fd); }
std::size_t posix_fd_traits::write(int fd, const_buffer cbuf) {
neo_assert(expects,
fd != null_handle,
"Attempte... | 27.25641 | 70 | 0.605833 |
3f4ece7a59eb5f75bc51e55c851b7c331440f617 | 3,081 | hpp | C++ | include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:15 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.MulticastDelegate
#include "System/MulticastDelegate.... | 54.052632 | 286 | 0.776696 |
3f4fd94e8e029a3067bf411c49d6eb736c47a204 | 2,650 | cpp | C++ | src/lowestindexbranchingscheme.cpp | sraaphorst/nibac | 288fcc4012065cf8b15dab4fc5f0c829b2b4a65c | [
"Apache-2.0"
] | null | null | null | src/lowestindexbranchingscheme.cpp | sraaphorst/nibac | 288fcc4012065cf8b15dab4fc5f0c829b2b4a65c | [
"Apache-2.0"
] | 9 | 2018-05-06T20:27:49.000Z | 2018-10-24T23:28:24.000Z | src/lowestindexbranchingscheme.cpp | sraaphorst/nibac | 288fcc4012065cf8b15dab4fc5f0c829b2b4a65c | [
"Apache-2.0"
] | null | null | null | /**
* lowestindexbranchingscheme.cpp
*
* By Sebastian Raaphorst, 2003 - 2018.
*/
#include <map>
#include <set>
#include <sstream>
#include <string>
#include "common.h"
#include "lowestindexbranchingscheme.h"
#include "nibacexception.h"
#include "node.h"
namespace vorpal::nibac {
int LowestIndexBranchingScheme... | 35.810811 | 120 | 0.526038 |
3f50c9431e2adc2e41c156e9fac5231e218f41c7 | 651 | hpp | C++ | include/haz/Tools/SourceInfo.hpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | include/haz/Tools/SourceInfo.hpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | include/haz/Tools/SourceInfo.hpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | #ifndef __HAZ_SOURCE_INF
#define __HAZ_SOURCE_INF
#include <haz/Tools/Macro.hpp>
BEG_NAMESPACE_HAZ
#define SOURCE_INFO_LIST __LINE__, __PRETTY_FUNCTION__, __FILE__
#define SOURCE_INFO ::haz::SourceInfo(SOURCE_INFO_LIST)
struct SourceInfo {
inline SourceInfo(unsigned int line, const char* func, const char* file)... | 22.448276 | 78 | 0.674347 |
3f5150feae066afa27501536c9e4d4ecb09eae86 | 171 | hpp | C++ | cpp/Autogarden/include/pins/interfaces/output.hpp | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | cpp/Autogarden/include/pins/interfaces/output.hpp | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | cpp/Autogarden/include/pins/interfaces/output.hpp | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | #pragma once
#include <pins/interfaces/pin.hpp>
class IOutputPin : virtual public IPin {
public:
virtual ~IOutputPin() = default;
virtual void connect() = 0;
}; | 17.1 | 40 | 0.690058 |
3f51813b9ca97a9e20f84b41c6663a2d08d07cd1 | 3,225 | hh | C++ | include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 Assured Information Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 30.714286 | 100 | 0.688372 |
3f53f83a723c80a9ba3a98b0c76669d871de493e | 1,342 | cpp | C++ | src/Collection.cpp | fatehmtd/QtPexelsLib | f38bc62b43444c98935c72164f87aeb9a4021a44 | [
"MIT"
] | 3 | 2021-11-19T21:37:41.000Z | 2021-12-09T21:20:17.000Z | src/Collection.cpp | fatehmtd/QtPexelsLib | f38bc62b43444c98935c72164f87aeb9a4021a44 | [
"MIT"
] | null | null | null | src/Collection.cpp | fatehmtd/QtPexelsLib | f38bc62b43444c98935c72164f87aeb9a4021a44 | [
"MIT"
] | null | null | null | #include "../include/Collection.h"
qtpexels::Collection::Collection(QObject* parent)
: FetchableResource(parent)
{
}
bool qtpexels::Collection::processJSON(const QJsonObject& jsonObject)
{
_id = jsonObject["id"].toString();
_title = jsonObject["title"].toString();
_description = jsonObject[... | 20.96875 | 70 | 0.672131 |
3f54e3856c78df42fcc6af14574621d6ea764a36 | 1,342 | cpp | C++ | src/plane.cpp | Twinklebear/micro-packet | 24a35b4ecde7bc0283abba3b03eefe497fb1f138 | [
"MIT"
] | 12 | 2015-03-21T01:43:46.000Z | 2020-08-05T01:55:37.000Z | src/plane.cpp | Twinklebear/micro-packet | 24a35b4ecde7bc0283abba3b03eefe497fb1f138 | [
"MIT"
] | null | null | null | src/plane.cpp | Twinklebear/micro-packet | 24a35b4ecde7bc0283abba3b03eefe497fb1f138 | [
"MIT"
] | null | null | null | #include "plane.h"
Plane::Plane(Vec3f pos, Vec3f normal, int material_id) : pos(pos), normal(normal.normalized()), material_id(material_id){}
__m256 Plane::intersect(Ray8 &ray, DiffGeom8 &dg) const {
const auto vpos = Vec3f_8{pos};
const auto vnorm = Vec3f_8{normal};
const auto t = _mm256_div_ps((vpos - ray.o).dot(... | 44.733333 | 122 | 0.732489 |
3f5538f21dc87bc5c7ac85ae5d1c154a908cade1 | 8,538 | cpp | C++ | src/cdcarduino.cpp | gdsports/cdcarduino_uhs2 | 40e39265a1009cff53d85460939066d87b917866 | [
"MIT"
] | 3 | 2020-06-04T11:31:10.000Z | 2021-10-03T03:03:50.000Z | src/cdcarduino.cpp | gdsports/cdcarduino_uhs2 | 40e39265a1009cff53d85460939066d87b917866 | [
"MIT"
] | null | null | null | src/cdcarduino.cpp | gdsports/cdcarduino_uhs2 | 40e39265a1009cff53d85460939066d87b917866 | [
"MIT"
] | null | null | null | /*
* Arduino board serial console port USB CDC ACM.
* This adds to the generic CDC ACM class, Arduino board detection and
* board reset. Works for Uno and Mega/Mega2560. Includes experimental
* code for Leonardo(32u4) and Nano Every (4809) but they are not supported.
*/
/*
* MIT License
*
* Copyright (c) 2019 ... | 26.030488 | 97 | 0.656711 |