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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60c646147ce00b83d64baa64d51bd098cc4d962b | 1,104 | cpp | C++ | test/std/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp | crystax/android-toolchain-libcxx-3-6 | 68956dac7ae3ec8e9dcff82e5bf10c017fb9bd23 | [
"MIT"
] | 1,244 | 2015-01-02T21:08:56.000Z | 2022-03-22T21:34:16.000Z | deps/libcxx/test/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp | alkhe/runtime | acb6330185c1be88449198c28059d24bc4fb62c2 | [
"ECL-2.0",
"Apache-2.0"
] | 125 | 2015-01-22T01:08:00.000Z | 2020-05-25T08:28:17.000Z | deps/libcxx/test/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp | alkhe/runtime | acb6330185c1be88449198c28059d24bc4fb62c2 | [
"ECL-2.0",
"Apache-2.0"
] | 124 | 2015-01-12T15:06:17.000Z | 2022-03-26T07:48:53.000Z | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 30.666667 | 83 | 0.585145 | crystax |
60c71005cd114f29c3005eca9e85d10d1ee6f1c5 | 1,298 | cpp | C++ | leetcode/top_interview_questions/easy/linked_list/2.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | leetcode/top_interview_questions/easy/linked_list/2.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | leetcode/top_interview_questions/easy/linked_list/2.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
/*
Q: Remove Nth Node From End of List
Given the head of a linked list, remove the nth node from the end of the list and return its head.
Follow up: Could you do this in one pass?
Example 1:
Input: head = [1,2,3,4,5], n = 2
Output: [1,2,3,5]... | 19.969231 | 100 | 0.589368 | bvbasavaraju |
60c7c82df903e6e8b96bea09f807b609a83d5668 | 10,649 | cpp | C++ | all/native/renderers/NMLModelLODTreeRenderer.cpp | mostafa-j13/mobile-sdk | 60d51e4d37c7fb9558b1310345083c7f7d6b79e7 | [
"BSD-3-Clause"
] | null | null | null | all/native/renderers/NMLModelLODTreeRenderer.cpp | mostafa-j13/mobile-sdk | 60d51e4d37c7fb9558b1310345083c7f7d6b79e7 | [
"BSD-3-Clause"
] | null | null | null | all/native/renderers/NMLModelLODTreeRenderer.cpp | mostafa-j13/mobile-sdk | 60d51e4d37c7fb9558b1310345083c7f7d6b79e7 | [
"BSD-3-Clause"
] | null | null | null | #ifdef _CARTO_NMLMODELLODTREE_SUPPORT
#include "NMLModelLODTreeRenderer.h"
#include "components/ThreadWorker.h"
#include "datasources/NMLModelLODTreeDataSource.h"
#include "graphics/Shader.h"
#include "graphics/ShaderManager.h"
#include "graphics/ViewState.h"
#include "graphics/utils/GLContext.h"
#include "layers/NMLM... | 40.033835 | 230 | 0.595643 | mostafa-j13 |
60c809be1a7a375fde17ab9a93bb5f1f15e0df54 | 45,196 | cpp | C++ | src/ui/src/campaign/priority.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/ui/src/campaign/priority.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/ui/src/campaign/priority.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | // Priorities window stuff here
#include <windows.h>
#include "vu2.h"
#include "gtmobj.h"
#include "objectiv.h"
#include "falcsess.h"
#include "campmap.h"
#include "chandler.h"
#include "ui95_ext.h"
#include "userids.h"
#include "textids.h"
#include "ClassTbl.h"
#include "Cmpclass.h"
#pragma warning(disable : 4127)
... | 29.773386 | 152 | 0.576843 | Terebinth |
60c9224b4b4b50b2e40e8804077abf794dcd9cdc | 12,173 | inl | C++ | src/fonts/stb_font_courier_bold_7_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_courier_bold_7_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_courier_bold_7_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_courier_bold_7_usas... | 53.157205 | 129 | 0.687259 | stetre |
f59d0eb73b7131c681335c1aef512c4742f0c8f9 | 10,022 | cpp | C++ | src/Alarm/AlarmMgr.cpp | diqiu50/value | 019e430ae1da9dc132369ff53b8ab7bcaedd09d7 | [
"Apache-2.0"
] | 1 | 2018-04-13T09:41:53.000Z | 2018-04-13T09:41:53.000Z | src/Alarm/AlarmMgr.cpp | diqiu50/value | 019e430ae1da9dc132369ff53b8ab7bcaedd09d7 | [
"Apache-2.0"
] | null | null | null | src/Alarm/AlarmMgr.cpp | diqiu50/value | 019e430ae1da9dc132369ff53b8ab7bcaedd09d7 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2005
// Packet Engineering, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification is not permitted unless authorized in writing by a duly
// appointed officer of ... | 21.188161 | 114 | 0.635602 | diqiu50 |
f5a1cc0a54adcb18683225dcc5ad3549f435f3c1 | 10,834 | cpp | C++ | src/caffe/util/proposal_generate_anchors.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/util/proposal_generate_anchors.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/util/proposal_generate_anchors.cpp | imoisture/caffe | 4d6892afeff234c57ce470056939101e0ae71369 | [
"BSD-2-Clause"
] | null | null | null | /*
All modification made by Cambricon Corporation: © 2018-2019 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2019, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
Redistribution and us... | 40.883019 | 92 | 0.531383 | imoisture |
f5a346466ee300170935947b84a8f06bc97c3d46 | 5,045 | cpp | C++ | components/esphomecontroller/ThingSpeakClient.cpp | Yurik72/esphapcontroller | 94bfb7f1f2008f72b7b857481b4e7ebf63d50b0d | [
"MIT"
] | 2 | 2019-12-30T15:59:34.000Z | 2021-08-29T05:00:20.000Z | components/esphomecontroller/ThingSpeakClient.cpp | Yurik72/esphapcontroller | 94bfb7f1f2008f72b7b857481b4e7ebf63d50b0d | [
"MIT"
] | null | null | null | components/esphomecontroller/ThingSpeakClient.cpp | Yurik72/esphapcontroller | 94bfb7f1f2008f72b7b857481b4e7ebf63d50b0d | [
"MIT"
] | 1 | 2021-01-13T01:23:34.000Z | 2021-01-13T01:23:34.000Z | #include <Arduino.h>
#include <ArduinoJson.h>
#include "config.h"
#include "BaseController.h"
#include "ThingSpeakClient.h"
//REGISTER_CONTROLLER(BME280Controller)
#ifndef DISABLE_THINGSPEAK
REGISTER_CONTROLLER_FACTORY(ThingSpeakController)
#endif
const char* thingspeakserver = "api.thingspeak.com";
//BME280Controll... | 24.371981 | 110 | 0.699504 | Yurik72 |
f5a35b05b762e48bbc1e5a18289b49ce70f4c27b | 1,888 | hpp | C++ | include/natalie/range_object.hpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 7 | 2022-03-08T08:47:54.000Z | 2022-03-29T15:08:36.000Z | include/natalie/range_object.hpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 12 | 2022-03-10T13:04:42.000Z | 2022-03-24T01:40:23.000Z | include/natalie/range_object.hpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 5 | 2022-03-13T17:46:16.000Z | 2022-03-31T07:28:26.000Z | #pragma once
#include <assert.h>
#include "natalie/class_object.hpp"
#include "natalie/forward.hpp"
#include "natalie/global_env.hpp"
#include "natalie/macros.hpp"
#include "natalie/object.hpp"
#include "natalie/symbol_object.hpp"
namespace Natalie {
class RangeObject : public Object {
public:
RangeObject()
... | 27.362319 | 108 | 0.628178 | natalie-lang |
f5a72162743ed8d915cac30ed7d58590aea42738 | 402 | cpp | C++ | lib/ncurses/src/SceneGame/init/SceneGameInitMap.cpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | lib/ncurses/src/SceneGame/init/SceneGameInitMap.cpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | lib/ncurses/src/SceneGame/init/SceneGameInitMap.cpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** OOP_arcade_2019
** File description:
** SceneGameInitMap
*/
#include "ncurses/SceneGame.hpp"
void arc::SceneGame::initMap()
{
arc::Rectangle rect(_height + 2, _width * 2 + 2, arc::BACKGROUND_COLOR, arc::BACKGROUND_COLOR);
rect.setPosition(5, 2);
rect.setOutlineColors(arc::M... | 22.333333 | 99 | 0.696517 | Brukols |
f5a8523fa5de1511ee7045976931e968c90189bb | 17,637 | cpp | C++ | RuyiSDKCpp/Generated/UserServiceExternal/UserServiceExternalSDKDataTypes_types.cpp | c04x/sdk | a263b98e081a05fa4aa2d43aae4c10f4b4631998 | [
"MIT"
] | null | null | null | RuyiSDKCpp/Generated/UserServiceExternal/UserServiceExternalSDKDataTypes_types.cpp | c04x/sdk | a263b98e081a05fa4aa2d43aae4c10f4b4631998 | [
"MIT"
] | null | null | null | RuyiSDKCpp/Generated/UserServiceExternal/UserServiceExternalSDKDataTypes_types.cpp | c04x/sdk | a263b98e081a05fa4aa2d43aae4c10f4b4631998 | [
"MIT"
] | null | null | null | /**
* Autogenerated by Thrift Compiler (0.11.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "UserServiceExternalSDKDataTypes_types.h"
#include <algorithm>
#include <ostream>
#include <thrift/TToString.h>
namespace Ruyi { namespace SDK { namespace UserServiceExt... | 27.175655 | 185 | 0.626013 | c04x |
f5aaf14bf6b36f87564930aa41c5ae623684bc04 | 13,153 | cpp | C++ | dbms/src/Dictionaries/LibraryDictionarySource.cpp | Vinatorul/ClickHouse | 630ef978542e65d873e2ae294ec2fd522b787f03 | [
"Apache-2.0"
] | 1 | 2019-12-27T14:15:09.000Z | 2019-12-27T14:15:09.000Z | dbms/src/Dictionaries/LibraryDictionarySource.cpp | Vinatorul/ClickHouse | 630ef978542e65d873e2ae294ec2fd522b787f03 | [
"Apache-2.0"
] | null | null | null | dbms/src/Dictionaries/LibraryDictionarySource.cpp | Vinatorul/ClickHouse | 630ef978542e65d873e2ae294ec2fd522b787f03 | [
"Apache-2.0"
] | null | null | null | #include "LibraryDictionarySource.h"
#include <DataStreams/OneBlockInputStream.h>
#include <Interpreters/Context.h>
#include <Poco/File.h>
#include <common/logger_useful.h>
#include <ext/bit_cast.h>
#include <ext/range.h>
#include <ext/scope_guard.h>
#include <Common/StringUtils/StringUtils.h>
#include "DictionarySourc... | 42.429032 | 170 | 0.67133 | Vinatorul |
f5b453158a861c3ffb4bfeb941dc91b482864e8e | 476,187 | cpp | C++ | WindowsPC/Il2CppOutputProject/Source/il2cppOutput/Bulk_Generics_9.cpp | ludaher/HumanoVirtual | 3b65d54ea4e5e17c24dd1595da39a107e8b29e46 | [
"MIT"
] | null | null | null | WindowsPC/Il2CppOutputProject/Source/il2cppOutput/Bulk_Generics_9.cpp | ludaher/HumanoVirtual | 3b65d54ea4e5e17c24dd1595da39a107e8b29e46 | [
"MIT"
] | null | null | null | WindowsPC/Il2CppOutputProject/Source/il2cppOutput/Bulk_Generics_9.cpp | ludaher/HumanoVirtual | 3b65d54ea4e5e17c24dd1595da39a107e8b29e46 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "object-in... | 45.533276 | 404 | 0.799003 | ludaher |
f5bb5bfdcec4406bb5439c68f70e1b9dc3b00238 | 541 | cpp | C++ | docs/parallel/concrt/codesnippet/CPP/walkthrough-removing-work-from-a-user-interface-thread_8.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/parallel/concrt/codesnippet/CPP/walkthrough-removing-work-from-a-user-interface-thread_8.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/parallel/concrt/codesnippet/CPP/walkthrough-removing-work-from-a-user-interface-thread_8.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | void CChildView::OnPaint()
{
CPaintDC dc(this); // device context for painting
// Get the size of the client area of the window.
RECT rc;
GetClientRect(&rc);
// Create a Bitmap object that has the width and height of
// the client area.
BitmapPtr pBitmap(new Bitmap(rc.right, rc.bottom));
if... | 24.590909 | 62 | 0.63586 | bobbrow |
f5bb950ba0b61b0b19aa5578e957b32af5554887 | 4,508 | hpp | C++ | gtests/src/integration/simulacron/priming_requests.hpp | kw217/cpp-driver | 58c17d15b7ade2a1e6fdf3ce05d6fbe3d90f1828 | [
"Apache-2.0"
] | 1 | 2019-04-22T04:36:53.000Z | 2019-04-22T04:36:53.000Z | gtests/src/integration/simulacron/priming_requests.hpp | kw217/cpp-driver | 58c17d15b7ade2a1e6fdf3ce05d6fbe3d90f1828 | [
"Apache-2.0"
] | null | null | null | gtests/src/integration/simulacron/priming_requests.hpp | kw217/cpp-driver | 58c17d15b7ade2a1e6fdf3ce05d6fbe3d90f1828 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) DataStax, 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 applicable law or agreed to in writing, so... | 23.602094 | 86 | 0.658607 | kw217 |
f5be44451eaf94fce24ec9a4a17ed3aa9d52aaf7 | 1,484 | hpp | C++ | src/System/CPUID.hpp | tonyh-fff/swiftshader | f354daff5a2b882fc182c8377c826aa99b30f989 | [
"Apache-2.0"
] | 1,570 | 2016-06-30T10:40:04.000Z | 2022-03-31T01:47:33.000Z | src/System/CPUID.hpp | tonyh-fff/swiftshader | f354daff5a2b882fc182c8377c826aa99b30f989 | [
"Apache-2.0"
] | 9 | 2017-01-16T07:09:08.000Z | 2020-08-25T18:28:59.000Z | src/System/CPUID.hpp | tonyh-fff/swiftshader | f354daff5a2b882fc182c8377c826aa99b30f989 | [
"Apache-2.0"
] | 253 | 2016-06-30T18:57:10.000Z | 2022-03-25T03:57:40.000Z | // Copyright 2016 The SwiftShader Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 30.285714 | 131 | 0.743261 | tonyh-fff |
f5bf4f9245f5d5f6985d0da6bf602284411e79d8 | 355 | hpp | C++ | library/ATF/_PSFEATURE_CUSTPAPER.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_PSFEATURE_CUSTPAPER.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_PSFEATURE_CUSTPAPER.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct _PSFEATURE_CUSTPAPER
{
int lOrientation;
int lWidth;
int lHeight;
int lWidthOffset;
int lHeig... | 20.882353 | 108 | 0.68169 | lemkova |
f5c200e40e5662c96b3bff014f63185e02a83d68 | 5,658 | hpp | C++ | include/GlobalNamespace/PS4BeatmapDataAssetFileModel.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/PS4BeatmapDataAssetFileModel.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/PS4BeatmapDataAssetFileModel.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: IBeatmapDataAssetFileModel
#include "GlobalNamespace/IBeatmapDataAsset... | 60.83871 | 237 | 0.784376 | darknight1050 |
f5c2d9167060f3f5bf8a10e5ea91fd88ac274b32 | 2,000 | cpp | C++ | src/lib/common/NetworkControllerBasis.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 1 | 2021-05-21T21:10:09.000Z | 2021-05-21T21:10:09.000Z | src/lib/common/NetworkControllerBasis.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 12 | 2021-06-12T16:42:30.000Z | 2022-02-01T18:44:42.000Z | src/lib/common/NetworkControllerBasis.cpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021 Grant Erickson
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 20.20202 | 71 | 0.6845 | gerickson |
f5c4c93aad97daa290d185efbf96376aa471dcb7 | 3,151 | cpp | C++ | Example_Code/cpp/MSPBSL_example_5xx_UART_download.cpp | KirillSmirnov/trik-mspbsl-library | ee5e5bfe7aa00a8421a4d8203c82adb5445ecbe0 | [
"BSD-3-Clause"
] | 1 | 2015-11-29T18:33:02.000Z | 2015-11-29T18:33:02.000Z | Example_Code/cpp/MSPBSL_example_5xx_UART_download.cpp | KirillSmirnov/trik-mspbsl-library | ee5e5bfe7aa00a8421a4d8203c82adb5445ecbe0 | [
"BSD-3-Clause"
] | null | null | null | Example_Code/cpp/MSPBSL_example_5xx_UART_download.cpp | KirillSmirnov/trik-mspbsl-library | ee5e5bfe7aa00a8421a4d8203c82adb5445ecbe0 | [
"BSD-3-Clause"
] | 1 | 2015-11-29T18:33:13.000Z | 2015-11-29T18:33:13.000Z | /*
* MSPBSL commonFunctionUsage example file
*
* This file demonstrates the use of BSL functions that are being used in the same way across all BSL versions
*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
*... | 45.666667 | 119 | 0.741987 | KirillSmirnov |
f5cecda0a885bf8b7e744114d51f54a1e5973819 | 2,297 | cpp | C++ | BehaviroalPatterns/observer/div_observer.cpp | enuguru/design_patterns | 7b5a70d65811c39d15cbfa8b7a0603a16a851265 | [
"MIT"
] | null | null | null | BehaviroalPatterns/observer/div_observer.cpp | enuguru/design_patterns | 7b5a70d65811c39d15cbfa8b7a0603a16a851265 | [
"MIT"
] | null | null | null | BehaviroalPatterns/observer/div_observer.cpp | enuguru/design_patterns | 7b5a70d65811c39d15cbfa8b7a0603a16a851265 | [
"MIT"
] | null | null | null | // Purpose. Observer design pattern
// 1. Model the "independent" functionality with a "subject" abstraction
// 2. Model the "dependent" functionality with "observer" hierarchy
// 3. The Subject is coupled only to the Observer base class
// 4. Observers register themselves with the Subject
// 5. The Subject broadcast... | 32.814286 | 75 | 0.603831 | enuguru |
f5d0fc1940e4f22fa5c2e8cd37fbc2cb82ff5bf9 | 9,157 | cpp | C++ | src/object_based/extent.cpp | rsjtaylor/libear | 40a4000296190c3f91eba79e5b92141e368bd72a | [
"Apache-2.0"
] | 14 | 2019-07-30T17:58:00.000Z | 2022-02-15T15:33:36.000Z | src/object_based/extent.cpp | rsjtaylor/libear | 40a4000296190c3f91eba79e5b92141e368bd72a | [
"Apache-2.0"
] | 27 | 2019-07-30T18:01:58.000Z | 2021-12-14T10:24:52.000Z | src/object_based/extent.cpp | rsjtaylor/libear | 40a4000296190c3f91eba79e5b92141e368bd72a | [
"Apache-2.0"
] | 5 | 2019-07-30T15:12:02.000Z | 2020-09-14T16:22:43.000Z | #include "extent.hpp"
#include <algorithm>
#include <boost/algorithm/clamp.hpp>
#include <boost/math/constants/constants.hpp>
#include <cmath>
#include <utility>
#include "../common/geom.hpp"
#include "../common/helpers/eigen_helpers.hpp"
const double PI = boost::math::constants::pi<double>();
namespace ear {
/**... | 37.683128 | 80 | 0.625205 | rsjtaylor |
f5d2429ba405cae1ba747a5b1394b0179ec0317f | 4,055 | hpp | C++ | include/VROSC/OpenLooperTutorialStep.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/OpenLooperTutorialStep.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/OpenLooperTutorialStep.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include <initializer_list>
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: VROSC.T... | 48.855422 | 192 | 0.749445 | v0idp |
f5d5307ca5c3b264687208e33ff3923bb348888d | 5,825 | cc | C++ | src/sst/core/link.cc | AlecGrover/sst-core | 3d5607f75f8912107246af8c38bc70c85e67915e | [
"BSD-3-Clause"
] | 2 | 2020-02-01T16:09:53.000Z | 2020-02-03T00:21:00.000Z | src/sst/core/link.cc | AlecGrover/sst-core | 3d5607f75f8912107246af8c38bc70c85e67915e | [
"BSD-3-Clause"
] | null | null | null | src/sst/core/link.cc | AlecGrover/sst-core | 3d5607f75f8912107246af8c38bc70c85e67915e | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2009-2018 NTESS. Under the terms
// of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2018, NTESS
// All rights reserved.
//
// This file is part of the SST software package. For license
// information, see the LICENSE file in th... | 28.836634 | 170 | 0.678627 | AlecGrover |
f5d6a740efa579564d06d60a1e4cfedaea41ac81 | 462 | cpp | C++ | verify/open/leak1.cpp | GYJQTYL2/DoubleTake | cdcd0200bb364b5343beae72756420e6c3954a6f | [
"MIT"
] | 19 | 2015-09-17T18:10:14.000Z | 2021-08-16T11:26:33.000Z | verify/open/leak1.cpp | GYJQTYL2/DoubleTake | cdcd0200bb364b5343beae72756420e6c3954a6f | [
"MIT"
] | 17 | 2015-04-27T14:33:42.000Z | 2016-05-23T20:15:48.000Z | verify/open/leak1.cpp | plasma-umass/DoubleTake | cdcd0200bb364b5343beae72756420e6c3954a6f | [
"MIT"
] | 13 | 2015-07-29T15:15:00.000Z | 2021-01-15T04:53:21.000Z | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
int main(int argc, char ** argv) {
int * ptr;
int fd = 0;
// struct stat status;
ptr = (int *) malloc(sizeof(int));
*ptr = 5;
// fd = open("./test", O_RDWR);
f... | 20.086957 | 72 | 0.588745 | GYJQTYL2 |
f5dd88efd9d71af70364eaa1c5e7f6479b4f0f41 | 862 | cpp | C++ | recovery/osinfo.cpp | boudabass/noobs | e385dfaa3d589204d27c3160ad654d48846ee308 | [
"Unlicense"
] | 1,841 | 2015-01-01T09:15:52.000Z | 2022-03-27T12:26:05.000Z | recovery/osinfo.cpp | boudabass/noobs | e385dfaa3d589204d27c3160ad654d48846ee308 | [
"Unlicense"
] | 459 | 2015-01-01T14:11:53.000Z | 2022-01-13T12:21:45.000Z | recovery/osinfo.cpp | boudabass/noobs | e385dfaa3d589204d27c3160ad654d48846ee308 | [
"Unlicense"
] | 514 | 2015-01-08T12:19:57.000Z | 2022-03-27T12:26:07.000Z | #include "osinfo.h"
#include "partitioninfo.h"
#include "json.h"
OsInfo::OsInfo(const QString &folder, const QString &flavour, QObject *parent) :
QObject(parent), _folder(folder), _flavour(flavour)
{
QVariantMap m = Json::loadFromFile(folder+"/os.json").toMap();
_name = m.value("name").toString();
_ver... | 37.478261 | 108 | 0.680974 | boudabass |
f5dfaa65a23b2c4242c9d3ffd80e8fb143a04a7c | 16,233 | cc | C++ | lib/execreq_normalizer.cc | unofficial-mirror/goma-client | 1dedb59e6102d227b85cf144c786eca51bbfd5b6 | [
"BSD-3-Clause"
] | 2 | 2020-02-17T03:27:42.000Z | 2021-05-31T13:27:24.000Z | lib/execreq_normalizer.cc | unofficial-mirror/goma-client | 1dedb59e6102d227b85cf144c786eca51bbfd5b6 | [
"BSD-3-Clause"
] | null | null | null | lib/execreq_normalizer.cc | unofficial-mirror/goma-client | 1dedb59e6102d227b85cf144c786eca51bbfd5b6 | [
"BSD-3-Clause"
] | 1 | 2021-05-31T13:27:25.000Z | 2021-05-31T13:27:25.000Z | // Copyright 2016 The Goma 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 "lib/execreq_normalizer.h"
#include <utility>
#include <vector>
#include "absl/memory/memory.h"
#include "absl/strings/match.h"
#include "absl/str... | 33.960251 | 100 | 0.67757 | unofficial-mirror |
f5e1a5ff87e77f7e7797a8f739491610c644baa3 | 3,419 | cpp | C++ | 3rdparty/mygui/src/MyGUI_TabFactory.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | 3rdparty/mygui/src/MyGUI_TabFactory.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | 3rdparty/mygui/src/MyGUI_TabFactory.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | /*!
@file
@author Albert Semenov
@date 01/2008
@module
*//*
This file is part of MyGUI.
MyGUI is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option... | 35.614583 | 109 | 0.749342 | Osumi-Akari |
f5e252d9bbaa40c2b7a814f97ead069ed7c1cead | 11,575 | cpp | C++ | Resources/EngineScripts/Scripts/Helpers/Entity.cpp | MissclickStudios/The-Mandalorian-Sands-of-Arvala | 346081b26409a33f129189dbcd5a830d6d58f7da | [
"MIT"
] | 1 | 2021-05-14T13:08:40.000Z | 2021-05-14T13:08:40.000Z | Resources/EngineScripts/Scripts/Helpers/Entity.cpp | MissclickStudios/The-Mandalorian-Sands-of-Arvala | 346081b26409a33f129189dbcd5a830d6d58f7da | [
"MIT"
] | null | null | null | Resources/EngineScripts/Scripts/Helpers/Entity.cpp | MissclickStudios/The-Mandalorian-Sands-of-Arvala | 346081b26409a33f129189dbcd5a830d6d58f7da | [
"MIT"
] | 1 | 2021-07-05T08:18:36.000Z | 2021-07-05T08:18:36.000Z | #include "Entity.h"
#include "Application.h"
#include "M_Scene.h"
#include "GameObject.h"
#include "C_Transform.h"
#include "C_RigidBody.h"
#include "C_Animator.h"
#include "C_Material.h"
#include "C_AudioSource.h"
#include "C_Mesh.h"
#include "C_NavMeshAgent.h"
#include "AnimatorTrack.h"
#include "C_ParticleSystem.h... | 23.431174 | 131 | 0.679395 | MissclickStudios |
f5e75431c48e64159d6b6351afd61ff6c2718480 | 2,952 | cxx | C++ | magneticfield/src/GUExactHelixStepper.cxx | amadio/geant | a46790aa9eb3663f8324320a71e993d73ca443da | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2016-10-16T14:37:42.000Z | 2018-04-05T15:49:09.000Z | magneticfield/src/GUExactHelixStepper.cxx | amadio/geant | a46790aa9eb3663f8324320a71e993d73ca443da | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | magneticfield/src/GUExactHelixStepper.cxx | amadio/geant | a46790aa9eb3663f8324320a71e993d73ca443da | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //
// GUExactHelixStepper:
//
// Displace using helix - for field at initial location
//
// As the field is assumed constant, an error is not calculated.
//
// Author: J. Apostolakis, 28 Jan 2005
// Implementation adapted from ExplicitEuler of W.Wander
// ---------------------------------------------------------... | 31.404255 | 113 | 0.585705 | amadio |
f5e7e773f2b3d0a8e73ba9d393535641ed1ce15e | 8,705 | cpp | C++ | src/ngraph/op/select_and_scatter.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | src/ngraph/op/select_and_scatter.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | src/ngraph/op/select_and_scatter.cpp | bergtholdt/ngraph | 55ca8bb15488ac7a567bb420ca32fcee25e60fe6 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 36.57563 | 97 | 0.63297 | bergtholdt |
f5e88d7bb6cfb73e7b214b2ffb1ecccc640a6b9e | 843 | cpp | C++ | src/chp04/4_9.cpp | gianscarpe/cpp_primer | f09c645449d9b79e7c77dde13381513dee25519a | [
"MIT"
] | null | null | null | src/chp04/4_9.cpp | gianscarpe/cpp_primer | f09c645449d9b79e7c77dde13381513dee25519a | [
"MIT"
] | null | null | null | src/chp04/4_9.cpp | gianscarpe/cpp_primer | f09c645449d9b79e7c77dde13381513dee25519a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
using std::cin; using std::cout; using std::endl;
using std::string; using std::vector;
void ex4_29(){
cout << "Begine x 4.29" << endl;
int x[10];
int *p = x;
cout << sizeof(x) / sizeof(*x) << endl; //10
cout << sizeof(p) / sizeof(*p) << endl; // dim... | 18.733333 | 72 | 0.561091 | gianscarpe |
f5e8f1a08eea9a52f65226ae6eaea3d6b503455b | 11,080 | cpp | C++ | libgpopt/src/xforms/CXformSubqJoin2Apply.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-03-05T10:08:56.000Z | 2019-03-05T10:08:56.000Z | libgpopt/src/xforms/CXformSubqJoin2Apply.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | libgpopt/src/xforms/CXformSubqJoin2Apply.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CXformSubqJoin2Apply.cpp
//
// @doc:
// Implementation of Inner Join to Apply transform
//---------------------------------------------------------------------------
... | 28.929504 | 125 | 0.64991 | khannaekta |
f5edd995db9bfb669a43746f8e553386f1117e56 | 1,671 | cpp | C++ | base/global_initializer_registerer.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | 1 | 2018-03-14T21:48:43.000Z | 2018-03-14T21:48:43.000Z | base/global_initializer_registerer.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | null | null | null | base/global_initializer_registerer.cpp | RedBeard0531/mongo_utils | 402c2023df7d67609ce9da8e405bf13cdd270e20 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2012 10gen 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 applicable law or a... | 36.326087 | 97 | 0.608019 | RedBeard0531 |
f5ee0cd4d634e167bf38428a3ee55020c06c0a28 | 4,342 | cpp | C++ | src/cinder/app/AppScreenSaver.cpp | mingw4/Cinder | 447f1366bb4c4a4821055043fc4945da4139c1c9 | [
"BSD-2-Clause"
] | 3,494 | 2015-01-02T08:42:09.000Z | 2022-03-31T14:16:23.000Z | src/cinder/app/AppScreenSaver.cpp | mingw4/Cinder | 447f1366bb4c4a4821055043fc4945da4139c1c9 | [
"BSD-2-Clause"
] | 1,284 | 2015-01-02T07:31:47.000Z | 2022-03-30T02:06:43.000Z | src/cinder/app/AppScreenSaver.cpp | mingw4/Cinder | 447f1366bb4c4a4821055043fc4945da4139c1c9 | [
"BSD-2-Clause"
] | 780 | 2015-01-02T22:14:29.000Z | 2022-03-30T00:16:56.000Z | /*
Copyright (c) 2012, The Cinder Project, All rights reserved.
This code is intended for use with the Cinder C++ library: http://libcinder.org
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following conditions are met:
* Redistributions of s... | 29.739726 | 109 | 0.767158 | mingw4 |
f5f78e68a2874f29ae82dc8a1ac0a8ffe07784ab | 3,042 | cpp | C++ | Algorithm/第二次作业/code/MergeSort.cpp | TianYi2000/BUPT-Homework | cd38d4561814424d004bcb5bad903e9df8668380 | [
"MIT"
] | null | null | null | Algorithm/第二次作业/code/MergeSort.cpp | TianYi2000/BUPT-Homework | cd38d4561814424d004bcb5bad903e9df8668380 | [
"MIT"
] | null | null | null | Algorithm/第二次作业/code/MergeSort.cpp | TianYi2000/BUPT-Homework | cd38d4561814424d004bcb5bad903e9df8668380 | [
"MIT"
] | null | null | null | #include "MergeSort.h"
#include <iostream>
#define Reg register
#define gmax(_a, _b) ((_a) > (_b) ? (_a) : (_b))
#define gmin(_a, _b) ((_a) < (_b) ? (_a) : (_b))
#define cmax(_a, _b) (_a < (_b) ? _a = (_b) : 0)
#define cmin(_a, _b) (_a > (_b) ? _a = (_b) : 0)
#define FOR(_i,_a,_b) for (Reg int _i = (_a) ; _i <= ... | 20.693878 | 66 | 0.470743 | TianYi2000 |
f5f7b9fda316b8efe48baf487083973a3ca6d96b | 2,997 | cpp | C++ | Examples/CPP/WorkingWithFormulas/FormulaWithProjectFields.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | 1 | 2022-03-16T14:31:36.000Z | 2022-03-16T14:31:36.000Z | Examples/CPP/WorkingWithFormulas/FormulaWithProjectFields.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | null | null | null | Examples/CPP/WorkingWithFormulas/FormulaWithProjectFields.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | 1 | 2020-07-01T01:26:17.000Z | 2020-07-01T01:26:17.000Z | /*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Tasks for .NET API reference
when the project is build. Please check https:// Docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manually download Aspose.Tasks for .NET API from https://www.n... | 41.054795 | 237 | 0.759092 | aspose-tasks |
f5fa1c7c8a1ef0027cba13f31d36a049fb39167b | 1,132 | cpp | C++ | NFServer/NFWorldLogicPlugin/NFWorldLogicPlugin.cpp | sosan/NoahGameFrame | 38c54014c5c4620b784b2c1d2cab256f42bae186 | [
"Apache-2.0"
] | null | null | null | NFServer/NFWorldLogicPlugin/NFWorldLogicPlugin.cpp | sosan/NoahGameFrame | 38c54014c5c4620b784b2c1d2cab256f42bae186 | [
"Apache-2.0"
] | null | null | null | NFServer/NFWorldLogicPlugin/NFWorldLogicPlugin.cpp | sosan/NoahGameFrame | 38c54014c5c4620b784b2c1d2cab256f42bae186 | [
"Apache-2.0"
] | 1 | 2020-04-23T21:57:32.000Z | 2020-04-23T21:57:32.000Z | // -------------------------------------------------------------------------
// @FileName : NFWorldLogicPlugin.cpp
// @Author : LvSheng.Huang
// @Date : 2012-07-14 08:51
// @Module : NFWorldLogicPlugin
//
// ------------------------------------------------... | 26.325581 | 77 | 0.551237 | sosan |
f5fc3fb86cb3d5b347315af62578441a2014126c | 1,657 | hpp | C++ | distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/location_scale/derivative_log_unnormalized_pdf.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/location_scale/derivative_log_unnormalized_pdf.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/location_scale/derivative_log_unnormalized_pdf.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////
// distribution::toolkit::distributions::location_scale::log_unnormalized_pdf.hpp //
// //
// (C) Copyright 2009 Erwann Rogard ... | 39.452381 | 111 | 0.595051 | rogard |
f5fce79be8f3eb176e99ce990ea9b58e375e2066 | 1,640 | hpp | C++ | GPU_version/vio/include/vio/for_it.hpp | Pilot-Labs-Dev/vio_svo | 8274e4269b383e9816fca5c3102b51cd4d1b95ae | [
"MIT"
] | 2 | 2022-03-17T01:12:10.000Z | 2022-03-24T03:17:24.000Z | GPU_version/vio/include/vio/for_it.hpp | Pilot-Labs-Dev/vio_svo | 8274e4269b383e9816fca5c3102b51cd4d1b95ae | [
"MIT"
] | null | null | null | GPU_version/vio/include/vio/for_it.hpp | Pilot-Labs-Dev/vio_svo | 8274e4269b383e9816fca5c3102b51cd4d1b95ae | [
"MIT"
] | 1 | 2022-03-12T11:42:01.000Z | 2022-03-12T11:42:01.000Z | //
// Created by root on 5/12/21.
//
#ifndef VIO_FOR_IT_H
#define VIO_FOR_IT_H
#include <iostream>
#include <vector>
#include <tuple>
//https://stackoverflow.com/questions/24881799/get-index-in-c11-foreach-loop
// Wrapper class
template <typename T>
class for_impl
{
public:
// The return value of the operator* of... | 18.636364 | 76 | 0.565854 | Pilot-Labs-Dev |
f5fdfe4d84e2921d6e27f100014ba69ee9db1f91 | 26,940 | cc | C++ | src/pika_kv.cc | jason-gideon/pika | dfd57521f620061ddac1f198ecf6a3758a174d2f | [
"Apache-2.0"
] | null | null | null | src/pika_kv.cc | jason-gideon/pika | dfd57521f620061ddac1f198ecf6a3758a174d2f | [
"Apache-2.0"
] | null | null | null | src/pika_kv.cc | jason-gideon/pika | dfd57521f620061ddac1f198ecf6a3758a174d2f | [
"Apache-2.0"
] | null | null | null | #include "pika_command.h"
#include "pika_server.h"
#include "util.h"
#include <algorithm>
#include <map>
extern PikaServer *g_pikaServer;
extern std::map<std::string, Cmd *> g_pikaCmd;
void SetCmd::Do(std::list<std::string> &argv, std::string &ret) {
if ((arity > 0 && (int)argv.size() != arity) || (arity < 0 && (... | 32.379808 | 136 | 0.520973 | jason-gideon |
eb0555f164d201da918fad7b9cab18fb8fb74364 | 2,351 | cpp | C++ | lib/nhc.cpp | gmedders/pimd | ab03d489613e76b31a7e4c5f0a10271f248c96a7 | [
"BSD-3-Clause"
] | 1 | 2022-03-06T12:46:57.000Z | 2022-03-06T12:46:57.000Z | lib/nhc.cpp | gmedders/pimd | ab03d489613e76b31a7e4c5f0a10271f248c96a7 | [
"BSD-3-Clause"
] | 2 | 2018-07-07T05:07:43.000Z | 2018-07-27T04:36:50.000Z | lib/nhc.cpp | gmedders/pimd | ab03d489613e76b31a7e4c5f0a10271f248c96a7 | [
"BSD-3-Clause"
] | 1 | 2022-03-16T12:38:10.000Z | 2022-03-16T12:38:10.000Z | #include <cassert>
#include <cmath>
#include "nhc.h"
namespace parts {
namespace nhc {
//
// thermostat is stored as eta1 ... etaM, vel1 ... velM, acc1 ... accM
//
size_t size(size_t M) { return 3 * M; }
void initialize(size_t M, double *thermo, const double &tau,
std::mt19937 &prng) {
assert(M >... | 20.991071 | 80 | 0.531689 | gmedders |
eb057395f995c25186aa55226d361ab9ce66d162 | 11,276 | cc | C++ | source/core/rtc_adapter/VideoReceiveAdapter.cc | yfdandy/owt-server | 93b1721865907c6af94be4fdef8f191e59f345d2 | [
"Apache-2.0"
] | null | null | null | source/core/rtc_adapter/VideoReceiveAdapter.cc | yfdandy/owt-server | 93b1721865907c6af94be4fdef8f191e59f345d2 | [
"Apache-2.0"
] | null | null | null | source/core/rtc_adapter/VideoReceiveAdapter.cc | yfdandy/owt-server | 93b1721865907c6af94be4fdef8f191e59f345d2 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#include "VideoReceiveAdapter.h"
#include <future>
#include <modules/video_coding/include/video_error_codes.h>
#include <modules/video_coding/timing.h>
#include <rtc_base/time_utils.h>
#include <rtputils.h>
// using namespace webrtc;... | 36.374194 | 113 | 0.6442 | yfdandy |
eb06ff085d99757133685b6a9dc5b795aef56aae | 25,268 | cpp | C++ | DKPlugins/DKCef/DKCefWindow.cpp | aquawicket/DigitalKnob | 9e5997a1f0314ede80cf66a9bf28dc6373cb5987 | [
"MIT"
] | 29 | 2015-05-03T06:23:22.000Z | 2022-02-10T15:16:26.000Z | DKPlugins/DKCef/DKCefWindow.cpp | aquawicket/DigitalKnob | 9e5997a1f0314ede80cf66a9bf28dc6373cb5987 | [
"MIT"
] | 125 | 2016-02-28T06:13:49.000Z | 2022-01-04T11:50:08.000Z | DKPlugins/DKCef/DKCefWindow.cpp | aquawicket/DigitalKnob | 9e5997a1f0314ede80cf66a9bf28dc6373cb5987 | [
"MIT"
] | 8 | 2016-12-04T02:29:34.000Z | 2022-01-04T01:11:25.000Z | #include "DK/stdafx.h"
#include "DKCef/DKCefWindow.h"
#ifdef MAC
#import <AppKit/AppKit.h>
#endif
DKCefWindow::DKCefWindow(){
DKDEBUGFUNC();
DKClass::RegisterFunc("DKCefWindow::TestInt", &DKCefWindow::TestInt, this);
DKClass::RegisterFunc("DKCefWindow::TestString", &DKCefWindow::TestString, this);
DKClass::Regis... | 30.852259 | 115 | 0.675993 | aquawicket |
eb09c835f7d2391601d1a459bc76dd9d7da02124 | 1,083 | cpp | C++ | 4. Assignment/1.Duplicate_in_array.cpp | bhavinvirani/Competitive-Programming-coding-ninjas | 5e50ae7ad3fc969a4970f91f8d895c986353bb71 | [
"MIT"
] | null | null | null | 4. Assignment/1.Duplicate_in_array.cpp | bhavinvirani/Competitive-Programming-coding-ninjas | 5e50ae7ad3fc969a4970f91f8d895c986353bb71 | [
"MIT"
] | null | null | null | 4. Assignment/1.Duplicate_in_array.cpp | bhavinvirani/Competitive-Programming-coding-ninjas | 5e50ae7ad3fc969a4970f91f8d895c986353bb71 | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int duplicate(int arr[], int n){
//? aproch 1 [O(n^2)]
//* Bruteforce
// for(int i = 0; i<n; i++){
// for(int j = 0; j<n; j++){
// if(i!=j && arr[i] == arr[j]) return arr[i];
// }
// }
//? aproch 2 [... | 18.355932 | 58 | 0.401662 | bhavinvirani |
eb0a1cd73a8cbed32e9d685a1b402297915e1a64 | 4,772 | cpp | C++ | efp/unitTests/UnitTest17.cpp | Unit-X/srt_tango_2 | 9443457f807ad151c9b543f892c969404e74e3a7 | [
"MIT"
] | 1 | 2020-06-16T11:45:26.000Z | 2020-06-16T11:45:26.000Z | efp/unitTests/UnitTest17.cpp | Unit-X/srt_tango_2 | 9443457f807ad151c9b543f892c969404e74e3a7 | [
"MIT"
] | null | null | null | efp/unitTests/UnitTest17.cpp | Unit-X/srt_tango_2 | 9443457f807ad151c9b543f892c969404e74e3a7 | [
"MIT"
] | null | null | null | //
// Created by Anders Cedronius on 2020-02-26.
//
//UnitTest17
//Send 100 frames... Stop the sender. Delete the sender. delete the reciever
//start a new sender and force the superframe counter to != 0 start the reciever
#define PACKETS_1_ROUND 100
#define PACKETS_2_ROUND 100
#include "UnitTest17.h"
void UnitT... | 34.832117 | 162 | 0.638097 | Unit-X |
eb0ef3b9373c614c3a800e32f455474be65c79ad | 18,386 | cpp | C++ | src/server/PayDividendVisitor.cpp | benma/opentxs | 40aebd8baa0a1456f00fcafa9eb1b7d72f94b202 | [
"Apache-2.0"
] | null | null | null | src/server/PayDividendVisitor.cpp | benma/opentxs | 40aebd8baa0a1456f00fcafa9eb1b7d72f94b202 | [
"Apache-2.0"
] | null | null | null | src/server/PayDividendVisitor.cpp | benma/opentxs | 40aebd8baa0a1456f00fcafa9eb1b7d72f94b202 | [
"Apache-2.0"
] | null | null | null | /************************************************************
*
* PayDividendVisitor.cpp
*
*/
/************************************************************
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Pr... | 45.285714 | 80 | 0.612966 | benma |
eb10b7dd6b2fa3451c5298ed09cfcc516ca4d635 | 241 | cpp | C++ | home/code/date_class.cpp | EarthMan123/Cpp-Notes | 92b129649f494485e40cbbb5d346a9422056667d | [
"MIT"
] | null | null | null | home/code/date_class.cpp | EarthMan123/Cpp-Notes | 92b129649f494485e40cbbb5d346a9422056667d | [
"MIT"
] | null | null | null | home/code/date_class.cpp | EarthMan123/Cpp-Notes | 92b129649f494485e40cbbb5d346a9422056667d | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
// Test in main
int main()
{
Date date;
date.Day(-1);
date.Month(14);
date.Year(2000);
assert(date.Day() != -1);
assert(date.Month() != 14);
assert(date.Year() == 2000);
}
| 15.0625 | 32 | 0.556017 | EarthMan123 |
eb129e43121fd8273dfa5d68a77a86bdfaa9e359 | 787 | hpp | C++ | include/awl/backends/x11/system/event/processor.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/x11/system/event/processor.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/x11/system/event/processor.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #ifndef AWL_BACKENDS_X11_SYSTEM_EVENT_PROCESSOR_HPP_INCLUDED
#define AWL_BACKENDS_X11_SYSTEM_EVENT_PROCESSOR_HPP_INCLUDED
#include <awl/backends/posix/processor_base.hpp>
#include <awl/backends/x11/system/event/processor_fwd.hpp>
#include <awl/detail/class_symbol.hpp>
#include <awl/detail/symbol.hpp>
#include <awl/sys... | 24.59375 | 85 | 0.761118 | freundlich |
a3e5b9773d8637e725e63efd209ee0b4e14ec6d1 | 6,114 | ipp | C++ | implement/oglplus/enums/object_type_class.ipp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | implement/oglplus/enums/object_type_class.ipp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | implement/oglplus/enums/object_type_class.ipp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | // File implement/oglplus/enums/object_type_class.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/object_type.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 Matus Chochlik.
// Distributed under the Boost Software Licens... | 22.644444 | 62 | 0.743049 | matus-chochlik |
a3e64dba03c747a1f6a3d91d709b1b30b8222848 | 1,582 | cpp | C++ | sorting/slow_sort.cpp | icbdubey/C-Plus-Plus | d51947a9d5a96695ea52db4394db6518d777bddf | [
"MIT"
] | 20,295 | 2016-07-17T06:29:04.000Z | 2022-03-31T23:32:16.000Z | sorting/slow_sort.cpp | icbdubey/C-Plus-Plus | d51947a9d5a96695ea52db4394db6518d777bddf | [
"MIT"
] | 1,399 | 2017-06-02T05:59:45.000Z | 2022-03-31T00:55:00.000Z | sorting/slow_sort.cpp | icbdubey/C-Plus-Plus | d51947a9d5a96695ea52db4394db6518d777bddf | [
"MIT"
] | 5,775 | 2016-10-14T08:10:18.000Z | 2022-03-31T18:26:39.000Z | // Returns the sorted vector after performing SlowSort
// It is a sorting algorithm that is of humorous nature and not useful.
// It's based on the principle of multiply and surrender, a tongue-in-cheek joke
// of divide and conquer. It was published in 1986 by Andrei Broder and Jorge
// Stolfi in their paper Pessimal ... | 27.754386 | 80 | 0.590392 | icbdubey |
a3e87d91e121a8caa6597cb798b35efb4dcf78b2 | 281 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/MorphTargetsDiffTextureSize.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/MorphTargetsDiffTextureSize.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/MorphTargetsDiffTextureSize.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
enum class MorphTargetsDiffTextureSize : uint8_t
{
TEXTURE_SIZE_1024x1024 = 0,
TEXTURE_SIZE_512x512 = 1,
TEXTURE_SIZE_256x256 = 2,
};
} // namespace RED4ext
| 18.733333 | 57 | 0.743772 | jackhumbert |
a3e896ef6003a6dc5bb6108f40e94f7926835526 | 693 | hpp | C++ | optimization/benchmark_functions.hpp | czeslavo/gwo | 709488a90840c0a2ed43635143c007adb91b47d5 | [
"MIT"
] | 5 | 2018-06-04T02:09:37.000Z | 2019-11-25T12:48:11.000Z | optimization/benchmark_functions.hpp | czeslavo/gwo | 709488a90840c0a2ed43635143c007adb91b47d5 | [
"MIT"
] | 1 | 2018-06-14T22:37:39.000Z | 2018-06-15T08:54:06.000Z | optimization/benchmark_functions.hpp | czeslavo/gwo | 709488a90840c0a2ed43635143c007adb91b47d5 | [
"MIT"
] | 2 | 2018-03-07T07:50:23.000Z | 2019-03-03T08:31:30.000Z | #pragma once
#include <boost/python/list.hpp>
#include <vector>
namespace optimization
{
enum class function
{
bent_cigar,
rosenbrock,
rastrigin,
zakharov
};
double bent_cigar(const std::vector<double> &x);
double bent_cigar_pywrapper(const boost::python::list &x);
double rosenbrock(const std::vecto... | 23.896552 | 68 | 0.748918 | czeslavo |
a3e8a1c0528a6798a6a6e273f4b53b804b7b9997 | 11,844 | cpp | C++ | src/programs/subtract_from_stack/subtract_from_stack.cpp | ngrigorieff/cisTEM_downstream_ng | 8cf890cc5d8d9eec874e9d7897da51ed0419251c | [
"BSD-3-Clause"
] | 7 | 2020-09-09T10:59:59.000Z | 2020-11-19T15:26:53.000Z | src/programs/subtract_from_stack/subtract_from_stack.cpp | ngrigorieff/cisTEM_downstream_ng | 8cf890cc5d8d9eec874e9d7897da51ed0419251c | [
"BSD-3-Clause"
] | 85 | 2020-09-11T15:07:02.000Z | 2021-02-08T20:38:13.000Z | src/programs/subtract_from_stack/subtract_from_stack.cpp | ngrigorieff/cisTEM_downstream_ng | 8cf890cc5d8d9eec874e9d7897da51ed0419251c | [
"BSD-3-Clause"
] | 6 | 2021-03-26T13:04:10.000Z | 2021-11-18T19:28:16.000Z | #include "../../core/core_headers.h"
class
SubtractFromStackApp : public MyApp
{
public:
bool DoCalculation();
void DoInteractiveUserInput();
private:
};
IMPLEMENT_APP(SubtractFromStackApp)
// override the DoInteractiveUserInput
void SubtractFromStackApp::DoInteractiveUserInput()
{
wxString input_particle_im... | 40.841379 | 193 | 0.759794 | ngrigorieff |
a3e9856e3a23b267808582409120ed14a92f53df | 4,696 | hpp | C++ | src/window.hpp | AndrewGrim/Agro | f065920ab665938852bc8aa7e38d4d73f7e3ec0d | [
"MIT"
] | null | null | null | src/window.hpp | AndrewGrim/Agro | f065920ab665938852bc8aa7e38d4d73f7e3ec0d | [
"MIT"
] | null | null | null | src/window.hpp | AndrewGrim/Agro | f065920ab665938852bc8aa7e38d4d73f7e3ec0d | [
"MIT"
] | 1 | 2021-04-18T12:06:55.000Z | 2021-04-18T12:06:55.000Z | #ifndef WINDOW_HPP
#define WINDOW_HPP
#include <string>
#include <vector>
#include <utility>
#include <functional>
#include <unordered_map>
#include <SDL.h>
#include "event.hpp"
#include "state.hpp"
#include "keyboard.hpp"
#include "controls/widget.hpp"
#include "contr... | 35.308271 | 131 | 0.574957 | AndrewGrim |
a3efb818d48772f1230da5d5c278eac5572576bb | 401 | hpp | C++ | unittest/unittest.hpp | cafexd/c-_header_generator | c7b077e3d7ee3a814114eaedae783977e5d99e0d | [
"MIT"
] | 1 | 2020-03-08T14:18:30.000Z | 2020-03-08T14:18:30.000Z | unittest/unittest.hpp | cafexd/c-_header_generator | c7b077e3d7ee3a814114eaedae783977e5d99e0d | [
"MIT"
] | null | null | null | unittest/unittest.hpp | cafexd/c-_header_generator | c7b077e3d7ee3a814114eaedae783977e5d99e0d | [
"MIT"
] | null | null | null | #ifndef UNITTEST_HPP
#define UNITTEST_HPP
#include <../include/gerador.hpp>
#include <vector>
class UnitTest
{
public:
/**
* Construtor de gerador
*/
UnitTest();
/**
* Metodo run para executar testes unitarios
* Retorna um vetor com as aprovacoes/reprovacoes
... | 14.851852 | 55 | 0.586035 | cafexd |
a3f553de795ea62d326e9e192421c6fb52256271 | 538 | cpp | C++ | app/src/main/cpp/hello/hello-lib.cpp | hsf1002/HiNDK | a6453c8f80104edd212841b289856e7b163e1029 | [
"MIT"
] | null | null | null | app/src/main/cpp/hello/hello-lib.cpp | hsf1002/HiNDK | a6453c8f80104edd212841b289856e7b163e1029 | [
"MIT"
] | null | null | null | app/src/main/cpp/hello/hello-lib.cpp | hsf1002/HiNDK | a6453c8f80104edd212841b289856e7b163e1029 | [
"MIT"
] | null | null | null | //
// Created by sky on 2020-02-18.
//
#include <jni.h>
#include <string>
#ifdef __cplusplus
extern "C" {
#endif
JNIEXPORT jint JNICALL Java_com_hsf1002_sky_Hello_intFromJNI(
JNIEnv* env,
jobject /* this */, jint x, jint y) {
//jint i = 2048;
return x + y;
}
JNIEXPORT jstring JNICALL Java... | 16.8125 | 67 | 0.641264 | hsf1002 |
a3fb0fd8acbd04e1b32967cdcd61db35e2da1d6f | 12,045 | cpp | C++ | export/release/windows/obj/src/openfl/text/_internal/_TextLayout/TextDirection_Impl_.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | export/release/windows/obj/src/openfl/text/_internal/_TextLayout/TextDirection_Impl_.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | export/release/windows/obj/src/openfl/text/_internal/_TextLayout/TextDirection_Impl_.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.2.2
#include <hxcpp.h>
#ifndef INCLUDED_openfl_text__internal__TextLayout_TextDirection_Impl_
#include <openfl/text/_internal/_TextLayout/TextDirection_Impl_.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_fecd85f16d8632f8_300_reverse,"openfl.text._internal._TextLayout.TextDirection_Impl_","reverse",0x2... | 42.411972 | 273 | 0.751598 | SamuraiOfSecrets |
a3fe98e7b2091efe04907e82c7c544679e595d8d | 130 | cpp | C++ | AADC/src/aadcUser/LaneDetection/LaneDetection.cpp | AlexanderVenetidis/aadc2018 | 53227597d47254e191ac836298c00f3226477f3d | [
"MIT"
] | null | null | null | AADC/src/aadcUser/LaneDetection/LaneDetection.cpp | AlexanderVenetidis/aadc2018 | 53227597d47254e191ac836298c00f3226477f3d | [
"MIT"
] | null | null | null | AADC/src/aadcUser/LaneDetection/LaneDetection.cpp | AlexanderVenetidis/aadc2018 | 53227597d47254e191ac836298c00f3226477f3d | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:2fbb230beb7faee721d32138a211bf18b61010f9562ecfa7015847640e1165f8
size 34444
| 32.5 | 75 | 0.884615 | AlexanderVenetidis |
a3ffc66b9968488a94cf5aaa5b5f194a17b50c24 | 110,433 | hh | C++ | src/lib/hc/hcinteger.hh | democosm/hc-cpp | 4ced68fbb8531fdf7f17282b49c3e1a3d52547f7 | [
"BSD-2-Clause"
] | null | null | null | src/lib/hc/hcinteger.hh | democosm/hc-cpp | 4ced68fbb8531fdf7f17282b49c3e1a3d52547f7 | [
"BSD-2-Clause"
] | null | null | null | src/lib/hc/hcinteger.hh | democosm/hc-cpp | 4ced68fbb8531fdf7f17282b49c3e1a3d52547f7 | [
"BSD-2-Clause"
] | null | null | null | // HC integer templates
//
// Copyright 2019 Democosm
//
// 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 copyright notice,
// this list of conditions an... | 29.480246 | 212 | 0.580669 | democosm |
43003556f609295c6067c6f4a3c0cf2ce6e53f9f | 69,833 | cpp | C++ | src/dependencies/minizip/unzip.cpp | Turupawn/TravisTest | 6f909d58bc3b81694a20d8a58b5763a437a0ab68 | [
"MIT"
] | null | null | null | src/dependencies/minizip/unzip.cpp | Turupawn/TravisTest | 6f909d58bc3b81694a20d8a58b5763a437a0ab68 | [
"MIT"
] | 1 | 2018-11-28T22:05:13.000Z | 2018-11-28T22:14:18.000Z | src/dependencies/minizip/unzip.cpp | Turupawn/TravisTest | 6f909d58bc3b81694a20d8a58b5763a437a0ab68 | [
"MIT"
] | null | null | null | /* unzip.c -- IO for uncompress .zip files using zlib
Version 1.1, February 14h, 2010
part of the MiniZip project
Copyright (C) 1998-2010 Gilles Vollant
http://www.winimage.com/zLibDll/minizip.html
Modifications of Unzip for Zip64
Copyright (C) 2007-2008 Even Rouault
Modifications for Zip64 su... | 36.909619 | 128 | 0.64501 | Turupawn |
43005cfe4e663b206f961bb49c6840d924e3874b | 31,855 | cc | C++ | agent/wpthook/request.cc | arolleston/webpagetest | 25bee4bee3ac6964cee4b34c21d086cbe74bc0bf | [
"BSD-3-Clause"
] | null | null | null | agent/wpthook/request.cc | arolleston/webpagetest | 25bee4bee3ac6964cee4b34c21d086cbe74bc0bf | [
"BSD-3-Clause"
] | null | null | null | agent/wpthook/request.cc | arolleston/webpagetest | 25bee4bee3ac6964cee4b34c21d086cbe74bc0bf | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
Copyright (c) 2010, Google Inc.
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 co... | 36.281321 | 86 | 0.48727 | arolleston |
430070ea3edd613b73b28d168f4b67786b50d889 | 14,065 | cpp | C++ | src/quickdraw/xdata.cpp | DavidLudwig/executor | eddb527850af639b3ffe314e05d92a083ba47af6 | [
"MIT"
] | null | null | null | src/quickdraw/xdata.cpp | DavidLudwig/executor | eddb527850af639b3ffe314e05d92a083ba47af6 | [
"MIT"
] | null | null | null | src/quickdraw/xdata.cpp | DavidLudwig/executor | eddb527850af639b3ffe314e05d92a083ba47af6 | [
"MIT"
] | null | null | null | /* Copyright 1995 by Abacus Research and
* Development, Inc. All rights reserved.
*/
#include <base/common.h>
#include <MemoryMgr.h>
#include <quickdraw/xdata.h>
#include <quickdraw/xdblt.h>
#include <mman/tempalloc.h>
#include <mman/mman.h>
#include <vdriver/vdriver.h>
using namespace Executor;
bool Executor:... | 27.741617 | 80 | 0.567579 | DavidLudwig |
430115bbdf29dcce77889e43428a27f6309f5286 | 5,111 | cc | C++ | garnet/public/lib/inspect/query/tests/location_test.cc | myself659/fuchsia | 18eb5ad3d995fba458b32d8600b2af97f89a5726 | [
"BSD-3-Clause"
] | null | null | null | garnet/public/lib/inspect/query/tests/location_test.cc | myself659/fuchsia | 18eb5ad3d995fba458b32d8600b2af97f89a5726 | [
"BSD-3-Clause"
] | 4 | 2020-09-06T07:59:32.000Z | 2022-02-12T16:06:47.000Z | garnet/public/lib/inspect/query/tests/location_test.cc | myself659/fuchsia | 18eb5ad3d995fba458b32d8600b2af97f89a5726 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia 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 <lib/inspect/query/location.h>
#include <src/lib/files/directory.h>
#include <src/lib/files/path.h>
#include <algorithm>
#include <iterator>
#in... | 31.164634 | 79 | 0.632949 | myself659 |
430610a15df673efba1ad73f32d7b4885e549529 | 673 | cpp | C++ | software/src/8.1/src/kernel/Vxa_VPolytypeMap.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/kernel/Vxa_VPolytypeMap.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/kernel/Vxa_VPolytypeMap.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** Vxa_VPolytypeMap Implementation *****/
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
*************... | 20.393939 | 47 | 0.161961 | c-kuhlman |
4306c85dde5288d65648a50efae2b3963558b1e8 | 1,311 | cxx | C++ | src/parser/Parser.cxx | zserik/libzsparsell | 23597da3f917d755dce2b8a8af6212ed8052fe96 | [
"MIT"
] | null | null | null | src/parser/Parser.cxx | zserik/libzsparsell | 23597da3f917d755dce2b8a8af6212ed8052fe96 | [
"MIT"
] | null | null | null | src/parser/Parser.cxx | zserik/libzsparsell | 23597da3f917d755dce2b8a8af6212ed8052fe96 | [
"MIT"
] | null | null | null | /** zsparsell Parser.cxx
(C) 2018 Erik Zscheile
License: MIT
**/
#include "Parser.hpp"
#include <string.h>
using namespace std;
namespace zsparsell {
void Parser::lookahead(size_t n) {
if(_lextoks.size() >= n) return;
const size_t rest = n - _lextoks.size();
for(size_t i = 0; i < rest; ++i) look... | 28.5 | 81 | 0.594966 | zserik |
4307066afb42e004141c83e866e55910b7b63c6e | 5,169 | cpp | C++ | src/morda/widgets/group/book.cpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 69 | 2016-12-07T05:56:53.000Z | 2020-11-27T20:59:05.000Z | src/morda/widgets/group/book.cpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 103 | 2015-07-10T14:42:21.000Z | 2020-09-09T16:16:21.000Z | src/morda/widgets/group/book.cpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 18 | 2016-11-22T14:41:37.000Z | 2020-04-22T18:16:10.000Z | /*
morda - GUI framework
Copyright (C) 2012-2021 Ivan Gagis <igagis@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version... | 23.820276 | 133 | 0.673631 | igagis |
4310c4f037889681918c021dcb4ce9a9ddaaf003 | 1,644 | cpp | C++ | src/caffe/util/force_link.cpp | jwyang/JULE-Caffe | 797292223e9e9021e31730c87b9abc86f08fce0c | [
"MIT"
] | 22 | 2016-11-14T18:43:50.000Z | 2020-03-05T05:51:19.000Z | src/caffe/util/force_link.cpp | jwyang/JULE-Caffe | 797292223e9e9021e31730c87b9abc86f08fce0c | [
"MIT"
] | 2 | 2017-04-20T03:05:41.000Z | 2019-08-25T14:07:33.000Z | src/caffe/util/force_link.cpp | jwyang/JULE-Caffe | 797292223e9e9021e31730c87b9abc86f08fce0c | [
"MIT"
] | 6 | 2016-11-22T19:37:45.000Z | 2020-02-18T13:52:22.000Z | #include "caffe/caffe.hpp"
namespace caffe
{
REGISTER_LAYER_CLASS(Im2col);
REGISTER_LAYER_CLASS(Data);
REGISTER_LAYER_CLASS(Accuracy);
REGISTER_LAYER_CLASS(ArgMax);
REGISTER_LAYER_CLASS(BN);
REGISTER_LAYER_CLASS(BNLL);
REGISTER_LAYER_CLASS(Concat);
REGISTER_LAYER_CLASS(ContrastiveLoss);
REGISTER_LAYER_CLASS(De... | 30.444444 | 47 | 0.845499 | jwyang |
431baaa18cedeff5e26611b78de4824dbe10a911 | 366 | hpp | C++ | impl/jamtemplate/common/graphics/rotation_impl.hpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | impl/jamtemplate/common/graphics/rotation_impl.hpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | impl/jamtemplate/common/graphics/rotation_impl.hpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | #ifndef GURAD_JAMTEMPLATE_ROTATION_IMPL_HPP
#define GURAD_JAMTEMPLATE_ROTATION_IMPL_HPP
namespace jt {
class RotationImpl {
public:
void doSetRotation(float rot);
float doGetRotation() const;
private:
virtual void doRotate(float /*rot*/) = 0;
float m_rotationInDegree { 0.0f };
};
} // namespace jt
... | 19.263158 | 45 | 0.754098 | runvs |
431c034220a8b4183a651b3a4aeb1090ca70a6e2 | 6,073 | hpp | C++ | cpu_k6/sh.hpp | 111116/shfft | e7ad335ddb36ee60b251b74c6a4c707a009bef7d | [
"MIT"
] | 12 | 2021-12-15T14:19:06.000Z | 2022-03-08T07:31:12.000Z | cpu_k6/sh.hpp | 111116/shfft | e7ad335ddb36ee60b251b74c6a4c707a009bef7d | [
"MIT"
] | 2 | 2021-12-15T14:17:55.000Z | 2021-12-15T14:18:23.000Z | cpu_k6/sh.hpp | 111116/shfft | e7ad335ddb36ee60b251b74c6a4c707a009bef7d | [
"MIT"
] | 1 | 2021-12-31T16:26:31.000Z | 2021-12-31T16:26:31.000Z | // class SH: table of spherical harmonics coefficients,
// used to approximate a spherical function
#pragma once
#include <functional>
#include <vector>
#include <fstream>
#include <string>
#include <sstream>
#include <algorithm>
#include <iterator>
// #include "math/vecmath.hpp"
// #include "math/matmath.hpp"
// #i... | 21.234266 | 86 | 0.585872 | 111116 |
431cdcd278357e069fc83c5a190e86334c758e97 | 2,026 | cpp | C++ | plugins/pwdemos_gl/src/AbstractBezierRenderer.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | null | null | null | plugins/pwdemos_gl/src/AbstractBezierRenderer.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | null | null | null | plugins/pwdemos_gl/src/AbstractBezierRenderer.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | null | null | null | /*
* AbstractBezierRenderer.cpp
*
* Copyright (C) 2010 by VISUS (Universitaet Stuttgart)
* Alle Rechte vorbehalten.
*/
#define _USE_MATH_DEFINES
#include "AbstractBezierRenderer.h"
#include "mmcore/AbstractGetData3DCall.h"
#include "vislib_gl/graphics/gl/IncludeAllGL.h"
#include "OpenGL_Context.h"
namespace me... | 22.511111 | 94 | 0.69694 | xge |
43230260561c2696abb7d32e0b8dcbdead72e508 | 571 | cpp | C++ | source/quantum-script-extension-buffer.amalgam.cpp | g-stefan/quantum-script-extension-buffer | eece43fcd414663dfdf77483da6e18d393629795 | [
"MIT",
"Unlicense"
] | null | null | null | source/quantum-script-extension-buffer.amalgam.cpp | g-stefan/quantum-script-extension-buffer | eece43fcd414663dfdf77483da6e18d393629795 | [
"MIT",
"Unlicense"
] | null | null | null | source/quantum-script-extension-buffer.amalgam.cpp | g-stefan/quantum-script-extension-buffer | eece43fcd414663dfdf77483da6e18d393629795 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Quantum Script Extension Buffer
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#include "quantum-script-extension-buffer.cpp"
#include "quantum-script-extension-buffer-co... | 31.722222 | 63 | 0.76007 | g-stefan |
43231ac1c11f5889206b0cf3f1df7152674bded6 | 2,188 | cpp | C++ | tc 160+/BasketsWithApples.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/BasketsWithApples.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/BasketsWithApples.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
class BasketsWithApples {
public:
int removeExcess(vector <int> apples) {
sort(apples.begin(), apples.end());
apples.push_back(0);
int best... | 40.518519 | 309 | 0.584552 | ibudiselic |
4323f34f8601bcf56f11b4bb829ca59d5dbabb57 | 121 | cpp | C++ | src/examples/12_module/07_arrays_dyn_ch/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-CodyKobayashi | e9ab6e9a061176e375d3f87516923e1984208a21 | [
"MIT"
] | null | null | null | src/examples/12_module/07_arrays_dyn_ch/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-CodyKobayashi | e9ab6e9a061176e375d3f87516923e1984208a21 | [
"MIT"
] | null | null | null | src/examples/12_module/07_arrays_dyn_ch/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-CodyKobayashi | e9ab6e9a061176e375d3f87516923e1984208a21 | [
"MIT"
] | null | null | null | #include "arrays_dyn_ch.h"
//dynamic array allocation and deallocation
int main()
{
dynamic_char_array();
return 0;
} | 13.444444 | 43 | 0.743802 | acc-cosc-1337-fall-2019 |
4328c43a186af41db6e0104c54f41cf45d2594d9 | 1,421 | cpp | C++ | chapter10/task5.cpp | RazdolbayOne/CXX_TEST_NOOK_PULL | 56baf7fb52d28ae5e1521f00bf39fb98b75513ca | [
"MIT"
] | null | null | null | chapter10/task5.cpp | RazdolbayOne/CXX_TEST_NOOK_PULL | 56baf7fb52d28ae5e1521f00bf39fb98b75513ca | [
"MIT"
] | null | null | null | chapter10/task5.cpp | RazdolbayOne/CXX_TEST_NOOK_PULL | 56baf7fb52d28ae5e1521f00bf39fb98b75513ca | [
"MIT"
] | null | null | null |
#include "std_lib_facilities.h"
vector<string>roman_digit_tbl;
void init_print_tbl(vector<string>& tbl) {
tbl.push_back("I");
tbl.push_back("II");
tbl.push_back("III");
tbl.push_back("IV");
tbl.push_back("V");
tbl.push_back("VI");
tbl.push_back("VII");
tbl.push_back("VIII");
tbl.push_back("IX");
}
class... | 16.333333 | 69 | 0.630542 | RazdolbayOne |
432c17de4c1b3cda633c9f88623d9ba4a06d5f46 | 2,111 | inl | C++ | external/libco/arm.inl | ueqri/HIP-CPU | dc6d4715a6692fb82e9a982b1a30e3944e0aa4af | [
"MIT"
] | 75 | 2020-12-07T22:18:12.000Z | 2022-02-25T20:26:03.000Z | external/libco/arm.inl | ueqri/HIP-CPU | dc6d4715a6692fb82e9a982b1a30e3944e0aa4af | [
"MIT"
] | 32 | 2020-12-14T06:35:21.000Z | 2022-03-16T11:49:18.000Z | external/libco/arm.inl | ueqri/HIP-CPU | dc6d4715a6692fb82e9a982b1a30e3944e0aa4af | [
"MIT"
] | 10 | 2020-12-09T08:11:29.000Z | 2022-02-11T15:45:44.000Z | #define LIBCO_C
#include "libco.h"
#include "settings.h"
#ifdef LIBCO_MPROTECT
#include <unistd.h>
#include <sys/mman.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
static thread_local unsigned long co_active_buffer[64];
static thread_local cothread_t co_active_handle = 0;
static void (*co_swap)(cothread_t, co... | 24.264368 | 74 | 0.705353 | ueqri |
432c6d58f1a9a73ec0c01a71f93022690b6e9ad0 | 948 | cpp | C++ | 01. Mathematics/24_ModularEquation.cpp | Rohit-554/Hacktoberfest2021-DSA | 45062b13f31b2e719b70c26fb6a6e6c6249eb7d3 | [
"MIT"
] | 225 | 2021-10-01T03:09:01.000Z | 2022-03-11T11:32:49.000Z | 01. Mathematics/24_ModularEquation.cpp | Rohit-554/Hacktoberfest2021-DSA | 45062b13f31b2e719b70c26fb6a6e6c6249eb7d3 | [
"MIT"
] | 252 | 2021-10-01T03:45:20.000Z | 2021-12-07T18:32:46.000Z | 01. Mathematics/24_ModularEquation.cpp | Rohit-554/Hacktoberfest2021-DSA | 45062b13f31b2e719b70c26fb6a6e6c6249eb7d3 | [
"MIT"
] | 911 | 2021-10-01T02:55:19.000Z | 2022-02-06T09:08:37.000Z | //Problem Code: MODEQ
/*
Given integers N and M, find the number of ordered pairs (a,b) such that 1≤a<b≤N and ((M mod a) mod b)=((M mod b) mod a).
Input
The first line contains an integer T, the number of test cases. Then the test cases follow.
The only line of each test case contains two integers N, M.
Output
For eac... | 21.066667 | 121 | 0.559072 | Rohit-554 |
4331b8cac52c32f955f4125aa1563ac56c74be4b | 2,885 | hpp | C++ | src/item/item-factory.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | 2 | 2019-02-28T00:28:08.000Z | 2019-10-20T14:39:48.000Z | src/item/item-factory.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | src/item/item-factory.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | // ----------------------------------------------------------------------------
// "THE BEER-WARE LICENSE" (Revision 42):
// <ztn@zurreal.com> wrote this file. As long as you retain this notice you
// can do whatever you want with this stuff. If we meet some day, and you think
// this stuff is worth it, you can bu... | 32.784091 | 96 | 0.647487 | tilnewman |
433290fb4b2cfa0eeb8cf0fa7d5b2a54db29d7ef | 6,350 | cpp | C++ | src/scams/impl/predefined_moc/eln/sca_eln_l.cpp | sivertism/mirror-sysc-ams | ae6a41555bbe32771799111b2a120fede6cb790f | [
"Apache-2.0"
] | null | null | null | src/scams/impl/predefined_moc/eln/sca_eln_l.cpp | sivertism/mirror-sysc-ams | ae6a41555bbe32771799111b2a120fede6cb790f | [
"Apache-2.0"
] | null | null | null | src/scams/impl/predefined_moc/eln/sca_eln_l.cpp | sivertism/mirror-sysc-ams | ae6a41555bbe32771799111b2a120fede6cb790f | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
Copyright 2010-2014
Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
Copyright 2015-2020
COSEDA Technologies GmbH
Licensed under the Apache License, Version 2.0 (the "License");
you may not use t... | 20.684039 | 96 | 0.63748 | sivertism |
43338dc675aa7b2227516926597ee2351edaf3aa | 2,445 | cc | C++ | elements/analysis/timestampaccum.cc | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | null | null | null | elements/analysis/timestampaccum.cc | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | null | null | null | elements/analysis/timestampaccum.cc | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | null | null | null | // -*- c-basic-offset: 4 -*-
/*
* timestampaccum.{cc,hh} -- accumulate cycle counter deltas
* Eddie Kohler
*
* Copyright (c) 2002 International Computer Science Institute
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "S... | 25.206186 | 81 | 0.69816 | BorisPis |
4333f714a4bdcce42c4243b6aba551405790c2d1 | 1,030 | hpp | C++ | datastructures/Pair.hpp | arupa-loka/lrep | 7ef6ce39e7527693f8fb7d62b80a69fa29adc295 | [
"Apache-2.0"
] | null | null | null | datastructures/Pair.hpp | arupa-loka/lrep | 7ef6ce39e7527693f8fb7d62b80a69fa29adc295 | [
"Apache-2.0"
] | null | null | null | datastructures/Pair.hpp | arupa-loka/lrep | 7ef6ce39e7527693f8fb7d62b80a69fa29adc295 | [
"Apache-2.0"
] | null | null | null | #ifndef _PAIR_HPP
#define _PAIR_HPP
template<class A, class B>
class Pair {
public:
Pair();
Pair(A iFirst, B iSecond);
Pair(const Pair<A,B> & iP);
//Pair(const Pair<A,B> iP);
const Pair<A,B>& operator=(const Pair<A,B>& iP);
inline A first() const;
inline B second() const;
private:
A _first;
B _second;
};
... | 21.020408 | 82 | 0.643689 | arupa-loka |
433748a7f2b21ca92dc5dacf24d06f98454bae27 | 18,584 | cpp | C++ | src/arch/LowLevelWindow/LowLevelWindow_X11.cpp | kangalioo/etterna | 11630aa1c23bad46b2da993602b06f8b659a4961 | [
"MIT"
] | 1 | 2020-11-09T21:58:28.000Z | 2020-11-09T21:58:28.000Z | src/arch/LowLevelWindow/LowLevelWindow_X11.cpp | kangalioo/etterna | 11630aa1c23bad46b2da993602b06f8b659a4961 | [
"MIT"
] | null | null | null | src/arch/LowLevelWindow/LowLevelWindow_X11.cpp | kangalioo/etterna | 11630aa1c23bad46b2da993602b06f8b659a4961 | [
"MIT"
] | null | null | null | #include "Etterna/Globals/global.h"
#include "LowLevelWindow_X11.h"
#include "RageUtil/Misc/RageLog.h"
#include "RageUtil/Misc/RageException.h"
#include "archutils/Unix/X11Helper.h"
#include "Etterna/Singletons/PrefsManager.h" // XXX
#include "RageUtil/Graphics/RageDisplay.h" // VideoModeParams
#include "Etterna/Model... | 28.415902 | 79 | 0.716638 | kangalioo |
4337d35a64aa563774f8894d53e4553b57c0a69c | 759 | hpp | C++ | include/RED4ext/Types/generated/game/PopupData.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/game/PopupData.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/game/PopupData.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/SimpleTypes.hpp>
#include <RED4ext/Types/generated/game/VideoType.hpp>
namespace RED4ext
{
struct Bink;
namespace game {
struct PopupData
{
... | 23 | 57 | 0.706192 | Cyberpunk-Extended-Development-Team |
43404390e270b79b6023b3abce6b4fdf6884f547 | 10,410 | cpp | C++ | cpp/tests/structure/transpose_test.cpp | acostadon/cugraph | 4106a18872fde44af30de0221428e24ffb845138 | [
"Apache-2.0"
] | null | null | null | cpp/tests/structure/transpose_test.cpp | acostadon/cugraph | 4106a18872fde44af30de0221428e24ffb845138 | [
"Apache-2.0"
] | null | null | null | cpp/tests/structure/transpose_test.cpp | acostadon/cugraph | 4106a18872fde44af30de0221428e24ffb845138 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 39.581749 | 100 | 0.674928 | acostadon |
43420f7400779b053df3cfda037345b41843d117 | 150 | cpp | C++ | test/llvm_test_code/inst_interaction/return_01.cpp | ga0/phasar | b9ecb9a1f0353501376021fab67057a713fa70dc | [
"MIT"
] | 581 | 2018-06-10T10:37:55.000Z | 2022-03-30T14:56:53.000Z | test/llvm_test_code/inst_interaction/return_01.cpp | meret-boe/phasar | 2b394d5611b107e4fd3d8eec37f26abca8ef1e9a | [
"MIT"
] | 172 | 2018-06-13T12:33:26.000Z | 2022-03-26T07:21:41.000Z | test/llvm_test_code/inst_interaction/return_01.cpp | meret-boe/phasar | 2b394d5611b107e4fd3d8eec37f26abca8ef1e9a | [
"MIT"
] | 137 | 2018-06-10T10:31:14.000Z | 2022-03-06T11:53:56.000Z |
int returnIntegerLiteral() { return 9001; }
int main() {
int localVar;
localVar = 42;
localVar = returnIntegerLiteral();
return localVar;
}
| 15 | 43 | 0.686667 | ga0 |
4342741cb0c502e2a6df5703fcf1f7592a328708 | 434 | cc | C++ | 2_ArrayPointer/References2.cc | MikeHu13/CPP_Kurs | 13dda926da0cebd79f52f7141db1913fe7c56637 | [
"MIT"
] | null | null | null | 2_ArrayPointer/References2.cc | MikeHu13/CPP_Kurs | 13dda926da0cebd79f52f7141db1913fe7c56637 | [
"MIT"
] | null | null | null | 2_ArrayPointer/References2.cc | MikeHu13/CPP_Kurs | 13dda926da0cebd79f52f7141db1913fe7c56637 | [
"MIT"
] | null | null | null | #include <iostream>
// Call by Value
void f1(int number)
{
number++;
}
// Call by Refernce
void f2(int &number)
{
number++;
}
// Call by Value
int f3(int number)
{
return ++number;
}
int main()
{
int num = 0;
std::cout << num << std::endl;
f1(num);
std::cout << num << std::endl;
f2... | 11.72973 | 34 | 0.520737 | MikeHu13 |
43446483fa6d85c113b40003d81a9c3c664fda60 | 1,699 | cpp | C++ | model/tests/CPU.bcd.test.cpp | benvenutti/core8 | 6677f509d309ec2d0bdbe360165429d664811177 | [
"MIT"
] | 2 | 2017-12-09T02:09:17.000Z | 2018-10-20T03:59:40.000Z | model/tests/CPU.bcd.test.cpp | benvenutti/core8 | 6677f509d309ec2d0bdbe360165429d664811177 | [
"MIT"
] | 45 | 2016-11-07T23:13:29.000Z | 2018-12-26T16:02:58.000Z | model/tests/CPU.bcd.test.cpp | benvenutti/core8 | 6677f509d309ec2d0bdbe360165429d664811177 | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include "mock/Helper.hpp"
#include "model/CPU.hpp"
namespace
{
struct CpuFixture
{
Mock::TestKit testKit;
model::CPU& cpu = testKit.cpu;
model::MMU& mmu = testKit.mmu;
};
SCENARIO_METHOD( CpuFixture,
"CPU stores in address I the BCD representation of the value ... | 26.968254 | 100 | 0.528546 | benvenutti |
43455a13c7af8603093177228a4853606d005f65 | 1,671 | hpp | C++ | libs/oef-core/include/oef-core/tasks/OefLoginTimeoutTask.hpp | marcuswin/ledger | b79c5c4e7e92ff02ea4328fcc0885bf8ded2b8b2 | [
"Apache-2.0"
] | 1 | 2019-09-11T09:46:04.000Z | 2019-09-11T09:46:04.000Z | libs/oef-core/include/oef-core/tasks/OefLoginTimeoutTask.hpp | qati/ledger | e05a8f2d62ea1b79a704867d220cf307ef6b93b9 | [
"Apache-2.0"
] | null | null | null | libs/oef-core/include/oef-core/tasks/OefLoginTimeoutTask.hpp | qati/ledger | e05a8f2d62ea1b79a704867d220cf307ef6b93b9 | [
"Apache-2.0"
] | 1 | 2019-09-19T12:38:46.000Z | 2019-09-19T12:38:46.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Licen... | 31.528302 | 80 | 0.646918 | marcuswin |
4345ef8013f0dc70a5f6d1f86ba39b4bde740311 | 1,412 | cpp | C++ | LiveCam/Unused/FX/Custom/FxHockeyHelmet.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | LiveCam/Unused/FX/Custom/FxHockeyHelmet.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | LiveCam/Unused/FX/Custom/FxHockeyHelmet.cpp | KanSmith/LiveCam | 8b863f55f08cb3ea5090e417c68ad82ded690743 | [
"MIT"
] | null | null | null | #include <fx/FxHockeyHelmet.h>
FxHockeyHelmet::FxHockeyHelmet()
{
auto helmetShader = shaderManagerWrapper.LoadFromFile("./assets/shaders/vertex/simpleVertexShader.txt", "./assets/shaders/fragment/cubemapPhongFragmentShader.txt");
auto headModel = make_shared<FxWidget3D>();
headModel->modelPath = "./assets/fx/hock... | 33.619048 | 165 | 0.736544 | KanSmith |
434ccdba1b79727ab16641447f9559cf7abfe7d2 | 5,580 | hpp | C++ | gecode/set/rel-op/subofunion.hpp | SaGagnon/gecode-5.5.0-cbs | e871b320a9b2031423bb0fa452b1a5c09641a041 | [
"MIT-feh"
] | 2 | 2015-07-30T09:28:19.000Z | 2016-08-30T12:40:34.000Z | gecode/set/rel-op/subofunion.hpp | akiernan/gecode | c45c0e31c2d87a23995e09e7f9df563f7bb46a5c | [
"MIT-feh"
] | 1 | 2015-07-31T18:11:11.000Z | 2015-07-31T18:11:11.000Z | gecode/set/rel-op/subofunion.hpp | akiernan/gecode | c45c0e31c2d87a23995e09e7f9df563f7bb46a5c | [
"MIT-feh"
] | 1 | 2020-06-26T11:10:57.000Z | 2020-06-26T11:10:57.000Z | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
* Christian Schulte <schulte@gecode.org>
*
* Contributing authors:
* Gabor Szokoli <szokoli@gecode.org>
*
* Copyright:
* Guido Tack, 2004
* Christian Schulte, 2004
* ... | 33.413174 | 83 | 0.596595 | SaGagnon |
4352eba8ab9b2c9063daf75b6a24650de453c701 | 202 | cpp | C++ | power-of-two/power-of-two.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | 1 | 2022-02-14T07:57:07.000Z | 2022-02-14T07:57:07.000Z | power-of-two/power-of-two.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | power-of-two/power-of-two.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | class Solution {
public:
bool isPowerOfTwo(int n) {
if(n==1)
return true;
if(n%2!=0 || n==0)
return false;
return isPowerOfTwo(n/2);
}
}; | 18.363636 | 33 | 0.450495 | sharmishtha2401 |
43535d92dcac7b68c872264921d2dcad6772d55f | 504 | hpp | C++ | src/goodbye_class.hpp | kazumasa-kusaba/TemplateMethodByDesignPatternCpp | 1f8608d501f438b44d9b3039d00729cbeaf95ea9 | [
"MIT"
] | null | null | null | src/goodbye_class.hpp | kazumasa-kusaba/TemplateMethodByDesignPatternCpp | 1f8608d501f438b44d9b3039d00729cbeaf95ea9 | [
"MIT"
] | null | null | null | src/goodbye_class.hpp | kazumasa-kusaba/TemplateMethodByDesignPatternCpp | 1f8608d501f438b44d9b3039d00729cbeaf95ea9 | [
"MIT"
] | null | null | null | #ifndef GOODBYE_CLASS_H_
#define GOODBYE_CLASS_H_
#include <iostream>
#include "greet_class.hpp"
class Goodbye : public Greet {
private:
const std::string upperFrameElement = "-";
const std::string leftFrameElement = "|";
const std::string rightFrameElement = "|";
const std::string bottomFrameElement = "-";... | 21 | 45 | 0.714286 | kazumasa-kusaba |
43537e8c313f47e11f20890aa670682714fd570c | 6,039 | cpp | C++ | src/eve/main.cpp | sambles/ktools | 5c63bea747ce4a1ee22b6dfb863e58fb184bc3ce | [
"BSD-3-Clause"
] | 24 | 2016-11-16T15:05:47.000Z | 2021-06-17T15:09:54.000Z | src/eve/main.cpp | sambles/ktools | 5c63bea747ce4a1ee22b6dfb863e58fb184bc3ce | [
"BSD-3-Clause"
] | 195 | 2017-03-24T14:39:05.000Z | 2022-03-14T16:43:30.000Z | src/eve/main.cpp | sambles/ktools | 5c63bea747ce4a1ee22b6dfb863e58fb184bc3ce | [
"BSD-3-Clause"
] | 19 | 2016-11-16T13:42:05.000Z | 2020-12-18T23:24:43.000Z | /*
* Copyright (c)2015 - 2016 Oasis LMF Limited
* 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... | 32.12234 | 191 | 0.647789 | sambles |
43537f17521ab7f7e1e2d7044f484b22ff9a6bae | 629 | cpp | C++ | examples/qcor_demos/pirq_workshop/qcor/demo1_compile_target_execution/ghz.cpp | ahayashi/qcor | 929988b92cfec52d321c48e6cc01545e46edc024 | [
"BSD-3-Clause"
] | null | null | null | examples/qcor_demos/pirq_workshop/qcor/demo1_compile_target_execution/ghz.cpp | ahayashi/qcor | 929988b92cfec52d321c48e6cc01545e46edc024 | [
"BSD-3-Clause"
] | null | null | null | examples/qcor_demos/pirq_workshop/qcor/demo1_compile_target_execution/ghz.cpp | ahayashi/qcor | 929988b92cfec52d321c48e6cc01545e46edc024 | [
"BSD-3-Clause"
] | null | null | null | /// Simulator
/// $qcor -qpu qpp ghz.cpp
/// IBMQ Backend (normal gate-mode)
/// $qcor -qpu ibm:ibmqx2 ghz.cpp
/// IBMQ Backend (pulse mode)
/// QCOR lowers gates --> pulses
/// $qcor -qpu ibm:ibmq_montreal[mode:pulse] ghz.cpp
/// IonQ
/// Simulator:
/// qcor -qpu ionq ghz.cpp
/// QPU (11 qubits)
/// qcor -qpu io... | 16.552632 | 53 | 0.558029 | ahayashi |
435495869624e9e19de3055549ff49c4e439303e | 2,678 | cpp | C++ | library/src/messages/protobuf/ProtoBufWebSocketMessage.cpp | tomvodi/WebSocket-Resources-Qt | 412fa1424cd1da331ec316315994a9ae184d3b4b | [
"MIT"
] | 1 | 2018-03-05T08:42:57.000Z | 2018-03-05T08:42:57.000Z | library/src/messages/protobuf/ProtoBufWebSocketMessage.cpp | tomvodi/WebSocket-Resources-Qt | 412fa1424cd1da331ec316315994a9ae184d3b4b | [
"MIT"
] | null | null | null | library/src/messages/protobuf/ProtoBufWebSocketMessage.cpp | tomvodi/WebSocket-Resources-Qt | 412fa1424cd1da331ec316315994a9ae184d3b4b | [
"MIT"
] | 2 | 2017-10-02T08:01:16.000Z | 2021-04-09T17:21:53.000Z | /**
* @author Thomas Baumann <teebaum@ymail.com>
*
* @section LICENSE
* See LICENSE for more informations.
*
*/
#include <SubProtocol.pb.h>
#include "ProtoBufWebSocketMessage.h"
#include "ProtoBufWebSocketRequestMessage.h"
#include "ProtoBufWebSocketResponseMessage.h"
ProtoBufWebSocketMessage::ProtoBufWebSock... | 32.658537 | 113 | 0.699029 | tomvodi |
435ac9bf5e661a077cf7ca37f421e1a28f2d2ad3 | 352 | cpp | C++ | cap5/pp5_6.cpp | Titan201/Jumping-to-cpp | 467ba4d197ac2f5225b43732c42aa3fb5262d557 | [
"MIT"
] | null | null | null | cap5/pp5_6.cpp | Titan201/Jumping-to-cpp | 467ba4d197ac2f5225b43732c42aa3fb5262d557 | [
"MIT"
] | null | null | null | cap5/pp5_6.cpp | Titan201/Jumping-to-cpp | 467ba4d197ac2f5225b43732c42aa3fb5262d557 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int i=2;
int j=2;
cout << "These are the first 20 square numbers: \n";
cout <<"Index:"<<'\t' << 1;
while(i<=20)
{
cout << '\t' << i;
i++;
}
cout << "\n";
cout<<"Square:"<<'\t'<<1;
while(j<=20)
{
cout << '\t' << j*j;
... | 14.666667 | 54 | 0.431818 | Titan201 |
435bf8ff85747168856a52ed968d4ac88417aec6 | 4,196 | hpp | C++ | extlibs/include/Jopnal/Physics/Collider.hpp | Jopnal/Jopmodel | cfd50b9fd24eaf63497bf5bed883f0b831d9ad65 | [
"Zlib"
] | 2 | 2016-07-16T17:21:10.000Z | 2016-08-09T11:41:33.000Z | extlibs/include/Jopnal/Physics/Collider.hpp | Jopnal/Jopmodel | cfd50b9fd24eaf63497bf5bed883f0b831d9ad65 | [
"Zlib"
] | null | null | null | extlibs/include/Jopnal/Physics/Collider.hpp | Jopnal/Jopmodel | cfd50b9fd24eaf63497bf5bed883f0b831d9ad65 | [
"Zlib"
] | null | null | null | // Jopnal Engine C++ Library
// Copyright (c) 2016 Team Jopnal
//
// 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 granted to anyone to use this software for any pur... | 29.549296 | 83 | 0.602955 | Jopnal |
cb19761fcefaa3060a7ebab966b2583fdf73013d | 1,599 | cpp | C++ | src/software/new_geom/ray_test.cpp | matthewberends/Software | 4681c7cffc9c1ca8f739ea692daffc490a8c1910 | [
"MIT"
] | null | null | null | src/software/new_geom/ray_test.cpp | matthewberends/Software | 4681c7cffc9c1ca8f739ea692daffc490a8c1910 | [
"MIT"
] | null | null | null | src/software/new_geom/ray_test.cpp | matthewberends/Software | 4681c7cffc9c1ca8f739ea692daffc490a8c1910 | [
"MIT"
] | null | null | null | #include "software/new_geom/ray.h"
#include <gtest/gtest.h>
TEST(RayTest, default_constructor)
{
Ray r = Ray();
EXPECT_EQ(Point(), r.getStart());
EXPECT_EQ(Angle::zero(), r.getDirection());
}
TEST(RayTest, angle_constructor)
{
Ray r = Ray(Point(1, 2), Angle::half());
EXPECT_EQ(Point(1, 2), r.getS... | 24.984375 | 65 | 0.631645 | matthewberends |
cb1d13428211aa7874a2ba1131239e5dd1c69e6c | 3,010 | hh | C++ | kernel/host/init-channel/host/InitChannel.hh | hertrste/mythos | ea186cf4c1feec91cbcc15435c0364877fa96964 | [
"MIT"
] | null | null | null | kernel/host/init-channel/host/InitChannel.hh | hertrste/mythos | ea186cf4c1feec91cbcc15435c0364877fa96964 | [
"MIT"
] | null | null | null | kernel/host/init-channel/host/InitChannel.hh | hertrste/mythos | ea186cf4c1feec91cbcc15435c0364877fa96964 | [
"MIT"
] | null | null | null | /* -*- mode:C++; indent-tabs-mode:nil; -*- */
/* 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, including without limi... | 31.030928 | 88 | 0.684718 | hertrste |
cb2007cf0ba181dd8f8f2f2e12565144232597af | 1,389 | cpp | C++ | plugins/dinput/src/joypad/ff/enum_effects.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/dinput/src/joypad/ff/enum_effects.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/dinput/src/joypad/ff/enum_effects.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/dinput/di.hpp>
#include <sge/dinput/joypad/ff/enum_effects.hpp>
#include <sge/dinput/... | 27.78 | 86 | 0.715623 | cpreh |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.