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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56720c144b05a88018c932b433a8c585033f0131 | 2,041 | cpp | C++ | src/Settings.cpp | gottyduke/BunnyHopperOfSkyrim | 0b7539298bd0899060cc926bf3fc2b5758835014 | [
"MIT"
] | 2 | 2021-03-24T20:39:02.000Z | 2021-08-09T02:12:10.000Z | src/Settings.cpp | gottyduke/BunnyHopperOfSkyrim | 0b7539298bd0899060cc926bf3fc2b5758835014 | [
"MIT"
] | null | null | null | src/Settings.cpp | gottyduke/BunnyHopperOfSkyrim | 0b7539298bd0899060cc926bf3fc2b5758835014 | [
"MIT"
] | 2 | 2021-03-24T20:39:04.000Z | 2021-08-09T02:12:15.000Z | #include "Settings.h"
bool Settings::LoadSettings(const bool a_dumpParse)
{
auto [log, success] = J2S::load_settings(FILE_NAME, a_dumpParse);
if (!log.empty()) {
_ERROR("%s", log.c_str());
}
return success;
}
decltype(Settings::globalSpeedMult) Settings::globalSpeedMult("globalSpeedMult", 1.0f);
decltype(Se... | 47.465116 | 96 | 0.799118 |
5676f6326df5b8e56d60ed31f3ff4155d6890611 | 4,507 | hpp | C++ | searchlib/src/vespa/searchlib/util/posting_priority_queue_merger.hpp | alexeyche/vespa | 7585981b32937d2b13da1a8f94b42c8a0833a4c2 | [
"Apache-2.0"
] | null | null | null | searchlib/src/vespa/searchlib/util/posting_priority_queue_merger.hpp | alexeyche/vespa | 7585981b32937d2b13da1a8f94b42c8a0833a4c2 | [
"Apache-2.0"
] | null | null | null | searchlib/src/vespa/searchlib/util/posting_priority_queue_merger.hpp | alexeyche/vespa | 7585981b32937d2b13da1a8f94b42c8a0833a4c2 | [
"Apache-2.0"
] | null | null | null | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "posting_priority_queue.hpp"
#include "posting_priority_queue_merger.h"
namespace search {
template <class Reader, class Writer>
void
PostingPriorityQueueMerger<Reader, Writer>::mergeHeap(W... | 37.247934 | 195 | 0.609274 |
56779e040eb36d545987180dc664df785d04e324 | 967 | hpp | C++ | rkt/src/MainScene.hpp | gbuzogany/dash | 8667f19fdf288172dad6e28f59c55cd54b3ca8f7 | [
"BSD-3-Clause"
] | null | null | null | rkt/src/MainScene.hpp | gbuzogany/dash | 8667f19fdf288172dad6e28f59c55cd54b3ca8f7 | [
"BSD-3-Clause"
] | null | null | null | rkt/src/MainScene.hpp | gbuzogany/dash | 8667f19fdf288172dad6e28f59c55cd54b3ca8f7 | [
"BSD-3-Clause"
] | null | null | null | #ifndef MainScene_hpp
#define MainScene_hpp
#include <stdio.h>
#include <iostream>
#include <ft2build.h>
#include <map>
#include <thread>
#include <queue>
#include FT_FREETYPE_H
#include "Scene.hpp"
#include "Definitions.h"
#include "Animation.hpp"
#include "Utils.hpp"
#include "SpriteMap.hpp"
#include "ShaderProgram.... | 19.34 | 57 | 0.692865 |
56796e2def726508cf2edce78e7c18190d9ceeb1 | 1,905 | inl | C++ | dependencies/gl++/framebuffer/Framebuffer.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | 6 | 2015-12-29T07:21:01.000Z | 2020-05-29T10:47:38.000Z | dependencies/gl++/framebuffer/Framebuffer.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | dependencies/gl++/framebuffer/Framebuffer.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | /*! \file Framebuffer.inl
* \author Jared Hoberock
* \brief Inline file for Framebuffer.h.
*/
#include "Framebuffer.h"
Framebuffer::Framebuffer(void):Parent()
{
setTarget(GL_FRAMEBUFFER_EXT);
} // end Framebuffer::Framebuffer()
void Framebuffer::attachTexture(const GLenum textureTarget,
... | 34.636364 | 82 | 0.580577 |
567f9fdd36f0d77e4b5a192dc733ef3c87aa4dfd | 5,320 | cpp | C++ | admin/wmi/wbem/providers/wdmprovider/classfac.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/wmi/wbem/providers/wdmprovider/classfac.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/wmi/wbem/providers/wdmprovider/classfac.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | ////////////////////////////////////////////////////////////////////////////////////////
//
// CLASSFAC.CPP
//
// Purpose: Contains the class factory. This creates objects when
// connections are requested.
//
// Copyright (c) 1997-2002 Microsoft Corporation, All Rights Reserved
//
///////////////... | 25.825243 | 97 | 0.36485 |
568391550cc1ee675da1debff7b38b5cb9565139 | 12,373 | cpp | C++ | src/public/src/yssystemfont/src/windows/yswin32systemfont.cpp | rothberg-cmu/rothberg-run | a42df5ca9fae97de77753864f60d05295d77b59f | [
"MIT"
] | 1 | 2019-08-10T00:24:09.000Z | 2019-08-10T00:24:09.000Z | src/public/src/yssystemfont/src/windows/yswin32systemfont.cpp | rothberg-cmu/rothberg-run | a42df5ca9fae97de77753864f60d05295d77b59f | [
"MIT"
] | null | null | null | src/public/src/yssystemfont/src/windows/yswin32systemfont.cpp | rothberg-cmu/rothberg-run | a42df5ca9fae97de77753864f60d05295d77b59f | [
"MIT"
] | 2 | 2019-05-01T03:11:10.000Z | 2019-05-01T03:30:35.000Z | /* ////////////////////////////////////////////////////////////
File Name: yswin32systemfont.cpp
Copyright (c) 2017 Soji Yamakawa. All rights reserved.
http://www.ysflight.com
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are me... | 20.656093 | 171 | 0.693041 |
5683b9d1393d2d9026b43d7ac0d9abaff4b5a99a | 6,028 | hpp | C++ | source/sema/sema_node_visitor.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 51 | 2019-05-06T01:33:34.000Z | 2021-11-17T11:44:54.000Z | source/sema/sema_node_visitor.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 191 | 2019-05-06T18:31:24.000Z | 2020-06-19T06:48:06.000Z | source/sema/sema_node_visitor.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 3 | 2019-10-12T21:03:29.000Z | 2020-06-19T06:22:25.000Z | #pragma once
namespace cmsl::sema {
class add_declarative_file_node;
class add_subdirectory_node;
class add_subdirectory_with_declarative_script_node;
class add_subdirectory_with_old_script_node;
class binary_operator_node;
class block_node;
class bool_value_node;
class break_node;
class cast_to_reference_node;
class ... | 42.751773 | 78 | 0.7928 |
568979b22aa48321f52ee46162c98edbae691c38 | 41,473 | cpp | C++ | src/component_route.cpp | skfzyy/WEAVESS | dd529e37ebccaedebbd801a6ef9bf67373594369 | [
"MIT"
] | 21 | 2021-03-31T10:44:07.000Z | 2022-03-21T03:46:43.000Z | src/component_route.cpp | skfzyy/WEAVESS | dd529e37ebccaedebbd801a6ef9bf67373594369 | [
"MIT"
] | null | null | null | src/component_route.cpp | skfzyy/WEAVESS | dd529e37ebccaedebbd801a6ef9bf67373594369 | [
"MIT"
] | 17 | 2021-02-01T10:54:53.000Z | 2022-03-15T02:49:18.000Z | //
// Created by MurphySL on 2020/10/23.
//
#include "weavess/component.h"
namespace weavess {
void ComponentSearchRouteGreedy::RouteInner(unsigned int query, std::vector<Index::Neighbor> &pool,
std::vector<unsigned int> &res) {
const auto L = index->getPar... | 44.787257 | 194 | 0.494732 |
568bd9ad3cb2f62679e434f75af209d2486a40cb | 3,909 | hpp | C++ | openstudiocore/src/model/SolarCollectorFlatPlatePhotovoltaicThermal.hpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | 1 | 2016-12-29T08:45:03.000Z | 2016-12-29T08:45:03.000Z | openstudiocore/src/model/SolarCollectorFlatPlatePhotovoltaicThermal.hpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | null | null | null | openstudiocore/src/model/SolarCollectorFlatPlatePhotovoltaicThermal.hpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2016, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... | 31.780488 | 160 | 0.764902 |
568c41443b53d6196f5f1db2f8ce9c141cff4ddf | 4,345 | cpp | C++ | third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | third_party/WebKit/Source/platform/graphics/BitmapImageMetrics.cpp | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "platform/graphics/BitmapImageMetrics.h"
#include "platform/Histogram.h"
#include "third_party/skia/include/core/SkColorSpaceXform.h"
#include "... | 33.167939 | 77 | 0.666974 |
568f10697831712b4d8f97971a516023086824a9 | 1,249 | cpp | C++ | materials/14032019/globalne_ocieplenie.cpp | kamiltokarski/devcpp_thur | 4106483644cde347f60eb20c8063e0d78fc89bcb | [
"MIT"
] | null | null | null | materials/14032019/globalne_ocieplenie.cpp | kamiltokarski/devcpp_thur | 4106483644cde347f60eb20c8063e0d78fc89bcb | [
"MIT"
] | null | null | null | materials/14032019/globalne_ocieplenie.cpp | kamiltokarski/devcpp_thur | 4106483644cde347f60eb20c8063e0d78fc89bcb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int tab[1000009];
pair <int, int> srt[1000009];
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n;
cin >> n;
for(int i = 1; i <= n; i++)
{
cin >> tab[i];
srt[i] = make_pair(tab[i], i);
}
... | 22.709091 | 118 | 0.38751 |
5693400ae915eb521f4cda991780ee13e607e42f | 13,436 | cc | C++ | cpp/src/arrow/compute/exec/task_util.cc | karldw/arrow | 0d995486e6eb4c94a64f03578731aad05c151596 | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 1 | 2020-09-30T02:48:39.000Z | 2020-09-30T02:48:39.000Z | cpp/src/arrow/compute/exec/task_util.cc | karldw/arrow | 0d995486e6eb4c94a64f03578731aad05c151596 | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 20 | 2021-05-09T06:53:01.000Z | 2022-03-27T22:21:50.000Z | cpp/src/arrow/compute/exec/task_util.cc | karldw/arrow | 0d995486e6eb4c94a64f03578731aad05c151596 | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 2 | 2021-08-05T14:58:01.000Z | 2021-08-10T14:16:01.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 you under the Apache License, Version 2.0 (the
// "License"); you may... | 33.012285 | 90 | 0.670735 |
56942edfb2262afe0789d1b4bb07fd1bee627502 | 17,728 | cpp | C++ | Development/Plugin/Warcraft3/yd_d3d8hook/Direct3DDevice8.cpp | alanoooaao/YDWE | fa9c6dc24d01f78919b5c8b2c69252291536424a | [
"Apache-2.0"
] | 5 | 2019-01-22T02:35:35.000Z | 2022-02-28T02:50:03.000Z | Development/Plugin/Warcraft3/yd_d3d8hook/Direct3DDevice8.cpp | alanoooaao/YDWE | fa9c6dc24d01f78919b5c8b2c69252291536424a | [
"Apache-2.0"
] | 8 | 2016-10-19T00:04:05.000Z | 2016-11-14T10:58:14.000Z | Development/Plugin/Warcraft3/yd_d3d8hook/Direct3DDevice8.cpp | alanoooaao/YDWE | fa9c6dc24d01f78919b5c8b2c69252291536424a | [
"Apache-2.0"
] | 2 | 2018-01-24T04:34:16.000Z | 2021-01-04T09:49:09.000Z | #include "Direct3DDevice8.h"
bool gamerender = false;
CDirect3DDevice8::CDirect3DDevice8(IDirect3D8* d3d, HWND hwnd, IDirect3DDevice8* device, D3DPRESENT_PARAMETERS* pPresentationParameters)
: m_d3d(d3d)
, m_device(device)
{
}
CDirect3DDevice8::~CDirect3DDevice8()
{
}
HRESULT WINAPI CDirect3DDevice8... | 34.026871 | 274 | 0.79146 |
569490308adf4f5dceb4679e68122e2c35bf77b9 | 1,952 | cpp | C++ | src/LoadDataWidget.cpp | abdellaui/gender_detection | 4a5e80fec4244fe40ef97aad3b1d50f46418db14 | [
"MIT"
] | 1 | 2019-12-13T15:27:51.000Z | 2019-12-13T15:27:51.000Z | src/LoadDataWidget.cpp | abdellaui/gender_detection | 4a5e80fec4244fe40ef97aad3b1d50f46418db14 | [
"MIT"
] | null | null | null | src/LoadDataWidget.cpp | abdellaui/gender_detection | 4a5e80fec4244fe40ef97aad3b1d50f46418db14 | [
"MIT"
] | null | null | null | #include "LoadDataWidget.h"
LoadDataWidget::LoadDataWidget(QWidget *parent) : QWidget(parent) {
m_gui.setupUi(this);
QWidget::setWindowTitle("Select files!");
m_gui.lineEdit_test->setText("/Users/abdullah/Desktop/gender_detection/src/material/test");
m_gui.lineEdit_training->setText("/Users/abdull... | 32.533333 | 113 | 0.729508 |
5696b9aa3e2c61a83029c42663ffd8eb0d19ff5f | 2,305 | cpp | C++ | Few Course Reader Exercises/Cap8-Exercises/Ex3/cap8_ex3.cpp | diogoamvasconcelos/CS106b-eroberts2015-solutions | 8964130bb872990b809e74ed489237e0c1c96604 | [
"MIT"
] | 4 | 2017-06-26T09:44:28.000Z | 2020-01-19T05:42:41.000Z | Few Course Reader Exercises/Cap8-Exercises/Ex3/cap8_ex3.cpp | diogoamvasconcelos/CS106b-eroberts2015-solutions | 8964130bb872990b809e74ed489237e0c1c96604 | [
"MIT"
] | null | null | null | Few Course Reader Exercises/Cap8-Exercises/Ex3/cap8_ex3.cpp | diogoamvasconcelos/CS106b-eroberts2015-solutions | 8964130bb872990b809e74ed489237e0c1c96604 | [
"MIT"
] | 1 | 2020-10-08T08:26:07.000Z | 2020-10-08T08:26:07.000Z | #include <iostream>
#include "console.h"
#include "simpio.h"
#include "stack.h"
using namespace std;
struct HanoiTask
{
int num_disks;
char start_pile;
char finish_pile;
char temp_pile;
};
const char PILE_A = 'A';
const char PILE_B = 'B';
const char PILE_C = 'C';
void MoveHanoiTower(int n);
void Move... | 25.898876 | 78 | 0.660738 |
5698e98f860d2e7e16e6b35725e4ad8d1ad5bc0e | 2,682 | cpp | C++ | lib-src/vgui/ProgressBar.cpp | Velaron/vgui_dll | 9ebb9ab4abf49ba3bd4aad8d102923a0d61d139b | [
"BSD-3-Clause"
] | 22 | 2017-02-21T04:30:12.000Z | 2022-02-13T22:40:39.000Z | lib-src/vgui/ProgressBar.cpp | FWGS/vgui_dll | 4a677fc844f3d92c1b83c6a0f748242a2601286e | [
"BSD-3-Clause"
] | 1 | 2017-05-08T18:31:26.000Z | 2017-05-08T18:31:26.000Z | lib-src/vgui/ProgressBar.cpp | nagist/vgui_dll | acf73ec95a4499b229d68854819fb5e951de1759 | [
"BSD-3-Clause"
] | 12 | 2017-02-18T16:03:05.000Z | 2021-12-30T16:34:27.000Z | /*
* BSD 3-Clause License
*
* 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 and the following disc... | 29.472527 | 82 | 0.722222 |
569aae33732ac9c6f639809ca8468c3ca1e3d69b | 3,150 | hh | C++ | src/NodeList/FixedSmoothingScale.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/NodeList/FixedSmoothingScale.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/NodeList/FixedSmoothingScale.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// FixedSmoothingScale
//
// Implements the static fixed smoothing scale option.
//
// Created by JMO, Wed Sep 14 13:50:49 PDT 2005
//----------------------------------------------------------------------------//
#ifndef __Spheral_NodeSpac... | 35.795455 | 80 | 0.546984 |
569d1bc85900ccbadf1d6542ed46ef40ad524806 | 2,252 | cpp | C++ | Verkehrssituation/src/tests/Verkehrssituation.cpp | DavidHeiss/vs2 | a00a58acab582e22e426a290eff9dd251edda992 | [
"MIT"
] | null | null | null | Verkehrssituation/src/tests/Verkehrssituation.cpp | DavidHeiss/vs2 | a00a58acab582e22e426a290eff9dd251edda992 | [
"MIT"
] | null | null | null | Verkehrssituation/src/tests/Verkehrssituation.cpp | DavidHeiss/vs2 | a00a58acab582e22e426a290eff9dd251edda992 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "../Verkehrssituation.h"
class VerkehrssituationTest : public testing::Test {
protected:
void SetUp() override {
verkehrssituation = Sensor::Verkehrssitation();
}
Sensor::Verkehrssitation verkehrssituation;
};
TEST_F(VerkehrssituationTest , has_data)
{
auto me... | 21.245283 | 59 | 0.746892 |
569f52cb404ddae81549019ab9880be1adaffbaa | 14,400 | cc | C++ | fawnds/bdb.cc | ByteHamster/silt | 9970432b27db7b9ef3f23f56cdd0609183e9fd83 | [
"Apache-2.0"
] | 134 | 2015-02-02T21:32:16.000Z | 2022-01-27T06:03:22.000Z | fawnds/bdb.cc | theopengroup/silt | 9970432b27db7b9ef3f23f56cdd0609183e9fd83 | [
"Apache-2.0"
] | null | null | null | fawnds/bdb.cc | theopengroup/silt | 9970432b27db7b9ef3f23f56cdd0609183e9fd83 | [
"Apache-2.0"
] | 43 | 2015-01-02T03:12:34.000Z | 2021-12-17T09:19:28.000Z | /* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "bdb.h"
#include "configuration.h"
#include <cassert>
#include <sstream>
#ifdef HAVE_LIBDB
namespace fawn {
BDB::BDB()
: dbp_(NULL)
{
}
BDB::~BDB()
{
if (dbp_)
Close();
}
FawnDS_Return... | 25.622776 | 120 | 0.497917 |
56a06f3fe2fa251050dd996c7bc7fdc016d33694 | 4,924 | cpp | C++ | src/box2ddestructionlistener.cpp | bobweaver/qml-box2d | 905841c01d6603678d34f0f8aaaf6843b70dc08a | [
"Zlib"
] | 1 | 2022-02-09T19:14:01.000Z | 2022-02-09T19:14:01.000Z | src/box2ddestructionlistener.cpp | bobweaver/qml-box2d | 905841c01d6603678d34f0f8aaaf6843b70dc08a | [
"Zlib"
] | null | null | null | src/box2ddestructionlistener.cpp | bobweaver/qml-box2d | 905841c01d6603678d34f0f8aaaf6843b70dc08a | [
"Zlib"
] | null | null | null | /*
* box2ddestructionlistener.cpp
* Copyright (c) 2011 Joonas Erkinheimo <joonas.erkinheimo@nokia.com>
* Copyright (c) 2011 Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
*
* This file is part of the Box2D QML plugin.
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event wi... | 49.24 | 108 | 0.791024 |
56a0d0b3fad5eb659d96e937d612a531ba3d9e04 | 1,259 | cpp | C++ | college/COMP053/LAB01/main.cpp | Ambamore2000/Ambamore2000.github.io | 2e84d015f95fd43af55240943477132744fa3a82 | [
"MIT"
] | null | null | null | college/COMP053/LAB01/main.cpp | Ambamore2000/Ambamore2000.github.io | 2e84d015f95fd43af55240943477132744fa3a82 | [
"MIT"
] | 4 | 2020-02-26T13:11:19.000Z | 2021-09-28T00:07:05.000Z | college/COMP053/LAB01/main.cpp | Ambamore2000/Ambamore2000.github.io | 2e84d015f95fd43af55240943477132744fa3a82 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////
/// Group Members: Andrew Kim, Ethan Rodriguez ///
//////////////////////////////////////////////////
#include <iostream>
using namespace std;
class State {
public:
State();
void printSize() const;
void setName(string name) {
this->name = name;... | 18.514706 | 72 | 0.526608 |
56a1bd12b942ee6a6bcb244043c7eb2cad8cca1b | 7,224 | cc | C++ | Library/Utilities/fftw++-2.05/mpi/cconv3.cc | stevend12/SolutioCpp | 6fa8a12207cd1e7e806a8ef5de93dc137c33856e | [
"Apache-2.0"
] | 9 | 2017-06-27T14:04:46.000Z | 2022-02-17T17:38:03.000Z | Library/Utilities/fftw++-2.05/mpi/cconv3.cc | stevend12/SolutioCpp | 6fa8a12207cd1e7e806a8ef5de93dc137c33856e | [
"Apache-2.0"
] | null | null | null | Library/Utilities/fftw++-2.05/mpi/cconv3.cc | stevend12/SolutioCpp | 6fa8a12207cd1e7e806a8ef5de93dc137c33856e | [
"Apache-2.0"
] | 3 | 2017-06-23T20:10:44.000Z | 2021-01-13T10:09:46.000Z | #include "mpiconvolution.h"
#include "utils.h"
using namespace std;
using namespace utils;
using namespace fftwpp;
void init(Complex **F,
unsigned int X, unsigned int Y, unsigned int Z,
unsigned int x0, unsigned int y0, unsigned int z0,
unsigned int x, unsigned int y, unsigned int z,
... | 23.006369 | 79 | 0.508029 |
56a36fc4c7c1ccc621bcf16a5b0375220f0f8cd4 | 4,132 | cc | C++ | common/SettingService.cc | zhiqiang-hu/cell-phone-ux-demo | 80df27f47bdf3318b60fe327890f868c3fe28969 | [
"Apache-2.0"
] | 13 | 2017-12-17T16:18:44.000Z | 2022-01-07T15:40:36.000Z | common/SettingService.cc | zhiqiang-hu/cell-phone-ux-demo | 80df27f47bdf3318b60fe327890f868c3fe28969 | [
"Apache-2.0"
] | null | null | null | common/SettingService.cc | zhiqiang-hu/cell-phone-ux-demo | 80df27f47bdf3318b60fe327890f868c3fe28969 | [
"Apache-2.0"
] | 8 | 2018-07-07T03:08:33.000Z | 2022-01-27T09:25:08.000Z | ///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.... | 27.006536 | 115 | 0.613262 |
56a37bab1a6013d24cb768f084cecc1faf7e8e02 | 1,044 | cpp | C++ | include/nac/ProcessLauncher.cpp | nacitar/old-projects | e5af376f868124b9828196df1f55adb682969f3d | [
"MIT"
] | 1 | 2016-05-04T04:22:42.000Z | 2016-05-04T04:22:42.000Z | include/nac/ProcessLauncher.cpp | nacitar/old-projects | e5af376f868124b9828196df1f55adb682969f3d | [
"MIT"
] | null | null | null | include/nac/ProcessLauncher.cpp | nacitar/old-projects | e5af376f868124b9828196df1f55adb682969f3d | [
"MIT"
] | 6 | 2016-05-04T04:23:02.000Z | 2020-11-30T22:32:43.000Z | #include "ProcessLauncher.h"
namespace nac
{
ProcessLauncher::ProcessLauncher(std::string strFilePath_,std::string strDirectory_)
: strFilePath(strFilePath_), strDirectory(strDirectory_)
{
if (strDirectory.empty())
{
std::string strTemp;
split_path(strFilePath,strDirectory,strTemp);
}
}
... | 29 | 102 | 0.694444 |
56a44ba46e683f431be3fabd9fd1acc81adb33ae | 806 | cpp | C++ | calc/c_rgb_yuv.cpp | dlarue/donkey_racing | 83d243b9379330ed2a4ad462106bc7c294baa92c | [
"MIT"
] | 15 | 2017-08-18T12:26:15.000Z | 2020-07-19T23:06:24.000Z | calc/c_rgb_yuv.cpp | dlarue/donkey_racing | 83d243b9379330ed2a4ad462106bc7c294baa92c | [
"MIT"
] | 2 | 2018-02-10T23:52:47.000Z | 2020-06-09T00:28:47.000Z | calc/c_rgb_yuv.cpp | dlarue/donkey_racing | 83d243b9379330ed2a4ad462106bc7c294baa92c | [
"MIT"
] | 8 | 2017-08-30T04:02:47.000Z | 2019-01-21T18:09:13.000Z |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void print_rgb(int q) {
float r = ((q >>16) & 0xff);
float g = ((q >> 8) & 0xff);
float b = (q & 0xff);
float y = r * 0.299f + g * 0.587f + b * 0.114f;
float u = 0.492f * (b - y);
float v = 0.492f * (r - y);
fprintf(stdout, "%.1f ... | 22.388889 | 67 | 0.46402 |
56a5da54a9181d31831549916dddaef3e59252fd | 616 | cpp | C++ | factory.cpp | iambillzhao/Movie-Store | fdd8aea26a3169844ad011a43b8271d7cb2ed6f0 | [
"MIT"
] | 1 | 2020-07-10T06:48:34.000Z | 2020-07-10T06:48:34.000Z | factory.cpp | iambillzhao/Movie-Store | fdd8aea26a3169844ad011a43b8271d7cb2ed6f0 | [
"MIT"
] | null | null | null | factory.cpp | iambillzhao/Movie-Store | fdd8aea26a3169844ad011a43b8271d7cb2ed6f0 | [
"MIT"
] | null | null | null | /*
* factory.cpp is part of the Movie Store Simulator, a C++ program that
* offers the function of borrow, return, or stock with up to 10,000
* customers and 26 genres of movies
*
* @author Bill Zhao, Lucas Bradley
* @date March 12th
*/
#include "factory.h"
#include <iostream>
// buildMovie takes a string Inpu... | 22 | 71 | 0.672078 |
56a7158d66e5a8137e78fd42274f43080a4a3243 | 554 | cpp | C++ | test/predict/main.cpp | coffee-lord/angonoka | a8a4a79da4092630c5243c2081f92ba39d0b056c | [
"MIT"
] | 2 | 2019-10-23T18:05:25.000Z | 2022-02-21T21:53:24.000Z | test/predict/main.cpp | coffee-lord/angonoka | a8a4a79da4092630c5243c2081f92ba39d0b056c | [
"MIT"
] | 3 | 2022-02-12T19:52:27.000Z | 2022-02-12T19:55:52.000Z | test/stun/stochastic_tunneling/main.cpp | coffee-lord/angonoka | a8a4a79da4092630c5243c2081f92ba39d0b056c | [
"MIT"
] | null | null | null | #include <boost/ut.hpp>
// boost::ut relies on static destructors so if
// we don't defer LLVM coverage report until after
// ut's destructor we won't get any coverage.
#if defined(__llvm__) && defined(ANGONOKA_COVERAGE)
extern "C" {
int __llvm_profile_runtime;
void __llvm_profile_initialize_file(void);
int __llvm_pro... | 22.16 | 51 | 0.718412 |
56a9d5b4f56c4c293fe2f0c7bb6f54377a4c2296 | 2,791 | cpp | C++ | jmtpfs/src/jmtpfs-0.5/src/MtpMetadataCache.cpp | akshaykumar23399/DOTS | e7779f7c849e4d7f08eec5adce4fa8317d04b80d | [
"Unlicense"
] | null | null | null | jmtpfs/src/jmtpfs-0.5/src/MtpMetadataCache.cpp | akshaykumar23399/DOTS | e7779f7c849e4d7f08eec5adce4fa8317d04b80d | [
"Unlicense"
] | null | null | null | jmtpfs/src/jmtpfs-0.5/src/MtpMetadataCache.cpp | akshaykumar23399/DOTS | e7779f7c849e4d7f08eec5adce4fa8317d04b80d | [
"Unlicense"
] | null | null | null | /*
* MtpMetadataCache.cpp
*
* Author: Jason Ferrara
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful... | 23.652542 | 100 | 0.724113 |
56abeca03db4452942dae28104ef62327d65de85 | 4,176 | hpp | C++ | core/src/Simulation/AssetManager.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 36 | 2015-03-12T10:42:36.000Z | 2022-01-12T04:20:40.000Z | core/src/Simulation/AssetManager.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 1 | 2015-12-17T00:25:43.000Z | 2016-02-20T12:00:57.000Z | core/src/Simulation/AssetManager.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 6 | 2017-06-17T07:57:53.000Z | 2019-04-09T21:11:24.000Z | /*
* Copyright (c) 2013, Hernan Saez
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of con... | 33.677419 | 111 | 0.625479 |
56afadad706c7d38fce2265cb20214649b49db93 | 548 | hpp | C++ | PP/decompose_const.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | 3 | 2019-07-12T23:12:24.000Z | 2019-09-05T07:57:45.000Z | PP/decompose_const.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | PP/decompose_const.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | #pragma once
#include <PP/compose.hpp>
#include <PP/cv_qualifier.hpp>
#include <PP/decompose_pair.hpp>
#include <PP/overloaded.hpp>
#include <PP/to_type_t.hpp>
#include <PP/value_t.hpp>
namespace PP
{
PP_CIA decompose_const = compose(
overloaded(
[]<typename T>(type_t<const T>)
{
return... | 23.826087 | 80 | 0.625912 |
56b205ff002447e58f3296486d4f79983530a652 | 989 | cpp | C++ | MNO/MATCHORDER/yujungee.cpp | Queue-ri/Advanced-Algorithm-Study | f44a75e55fffedcd988bfe8301eac224462c872d | [
"MIT"
] | 5 | 2022-01-13T08:21:54.000Z | 2022-01-31T03:37:14.000Z | MNO/MATCHORDER/yujungee.cpp | Queue-ri/Advanced-Algorithm-Study | f44a75e55fffedcd988bfe8301eac224462c872d | [
"MIT"
] | 115 | 2022-01-13T07:37:23.000Z | 2022-03-13T14:09:15.000Z | MNO/MATCHORDER/yujungee.cpp | Queue-ri/Advanced-Algorithm-Study | f44a75e55fffedcd988bfe8301eac224462c872d | [
"MIT"
] | 2 | 2022-01-27T02:10:23.000Z | 2022-02-09T14:37:04.000Z | //
// matchOrder.cpp
// study6
//
// Created by yujeong on 2021/03/05.
//
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int tc , n;
int rus_r[100], kor_r[100];
vector<int> russian;
vector<int> korean;
int match() {
sort(korean.begin(), korean.end());
int res = 0;
for ... | 18.314815 | 45 | 0.436805 |
56b3b547a5fc191f86116d140353a47f0ba15c19 | 9,427 | cpp | C++ | tests/server/barriers-validity.cpp | freedesktop-unofficial-mirror/xorg__test__xorg-integration-tests | 1ffa848434ce084cf02dd1abc231ff99dad0d277 | [
"MIT"
] | null | null | null | tests/server/barriers-validity.cpp | freedesktop-unofficial-mirror/xorg__test__xorg-integration-tests | 1ffa848434ce084cf02dd1abc231ff99dad0d277 | [
"MIT"
] | 1 | 2020-09-07T03:24:26.000Z | 2020-09-07T03:24:26.000Z | tests/server/barriers-validity.cpp | freedesktop-unofficial-mirror/xorg__test__xorg-integration-tests | 1ffa848434ce084cf02dd1abc231ff99dad0d277 | [
"MIT"
] | 1 | 2020-09-07T03:04:34.000Z | 2020-09-07T03:04:34.000Z | /*
* Copyright © 2012-2013 Red Hat, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pu... | 35.43985 | 98 | 0.647926 |
56ba0137aeee0736e49716c019b8b1a83823a719 | 256 | cpp | C++ | 1543.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 22 | 2017-08-12T11:56:19.000Z | 2022-03-27T10:04:31.000Z | 1543.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 2 | 2017-12-17T02:52:59.000Z | 2018-02-09T02:10:43.000Z | 1543.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 4 | 2017-12-22T15:24:38.000Z | 2020-05-18T14:51:16.000Z | #include <iostream>
using namespace std;
long long n;
long long num(long long x) {
if (x < 3) return x;
long long r = x / 3, m = x - r - (r << 1);
return (m + 1) * num(r) + m;
}
int main() {
cin >> n;
cout << n - num(n);
return 0;
} | 19.692308 | 46 | 0.5 |
56bfe43665188613028fba330939ebb1d49b833a | 9,590 | cxx | C++ | pdfwiz/parsemake/new_make2proj.cxx | kit-transue/software-emancipation-discover | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | [
"BSD-2-Clause"
] | 2 | 2015-11-24T03:31:12.000Z | 2015-11-24T16:01:57.000Z | pdfwiz/parsemake/new_make2proj.cxx | radtek/software-emancipation-discover | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | [
"BSD-2-Clause"
] | null | null | null | pdfwiz/parsemake/new_make2proj.cxx | radtek/software-emancipation-discover | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | [
"BSD-2-Clause"
] | 1 | 2019-05-19T02:26:08.000Z | 2019-05-19T02:26:08.000Z | /*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... | 28.040936 | 92 | 0.634202 |
56c3917f8a9590b435d02bab6a627eaa3ed8ab13 | 169 | cpp | C++ | _codeforces/486A/486a.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 11 | 2015-08-29T13:41:22.000Z | 2020-01-08T20:34:06.000Z | _codeforces/486A/486a.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | null | null | null | _codeforces/486A/486a.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 5 | 2016-01-20T18:17:01.000Z | 2019-10-30T11:57:15.000Z | #include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
if(n & 1)
cout << -1LL * (n + 1LL) / 2LL << '\n';
else
cout << n / 2LL << '\n';
}
| 13 | 41 | 0.497041 |
56c5ba9bd8562df759d553e5f6081d2b713ebc66 | 4,417 | hpp | C++ | test/logdataprocessor.hpp | Bembelbots/particlefilter | 7fc67763da217639de403485abf8a72029c5025a | [
"FSFAP"
] | null | null | null | test/logdataprocessor.hpp | Bembelbots/particlefilter | 7fc67763da217639de403485abf8a72029c5025a | [
"FSFAP"
] | null | null | null | test/logdataprocessor.hpp | Bembelbots/particlefilter | 7fc67763da217639de403485abf8a72029c5025a | [
"FSFAP"
] | null | null | null | #include <iostream>
#include <string>
#include <fstream>
#include <definitions.h>
#include <coords.h>
#include <particlefilter.h>
#include <random>
struct LogData {
int stamp;
std::vector<Robot> poseEstimates;
Robot wcs;
std::vector<Robot> hypos;
std::vector<DirectedCoord> odo;
std::vector<Visi... | 35.620968 | 115 | 0.465927 |
08cb00f666f1316b124ce7bd517dd7f05c8e0ca6 | 473 | cpp | C++ | src/buffers/Vb0BufferVec2.cpp | MrMCG/MGL | 894a336505b510d18dc28e3adae747fd6938816a | [
"MIT"
] | null | null | null | src/buffers/Vb0BufferVec2.cpp | MrMCG/MGL | 894a336505b510d18dc28e3adae747fd6938816a | [
"MIT"
] | null | null | null | src/buffers/Vb0BufferVec2.cpp | MrMCG/MGL | 894a336505b510d18dc28e3adae747fd6938816a | [
"MIT"
] | null | null | null | #include <GL/glew.h>
#include "VboBufferVec2.hpp"
namespace MGL {
VboBufferVec2::VboBufferVec2(std::vector<Vec2> const& data) : m_data(data) {}
void VboBufferVec2::bufferData(int const location) const {
bind();
glBufferData(GL_ARRAY_BUFFER, m_data.size() * sizeof(Vec2), &m_data.at(0), GL_STATIC_DRAW);
glVer... | 23.65 | 93 | 0.710359 |
08cc021ac5a577a3d899c876fd16ecc61c223bfc | 233 | hpp | C++ | arduino/vroom/topics.hpp | DrakeAxelrod/group-02 | 9c2ef37f3e4f25cc4572fe03cddb6016ffaa3c22 | [
"MIT"
] | 24 | 2021-12-30T16:23:43.000Z | 2022-02-03T12:42:42.000Z | arduino/vroom/topics.hpp | DrakeAxelrod/group-02 | 9c2ef37f3e4f25cc4572fe03cddb6016ffaa3c22 | [
"MIT"
] | 68 | 2021-04-02T15:51:35.000Z | 2021-05-28T10:39:11.000Z | arduino/vroom/topics.hpp | DrakeAxelrod/group-02 | 9c2ef37f3e4f25cc4572fe03cddb6016ffaa3c22 | [
"MIT"
] | 2 | 2021-05-09T23:08:16.000Z | 2021-12-30T16:22:29.000Z | const String forward = "/smartcar/control/throttle/forward";
const String reverse = "/smartcar/control/throttle/reverse";
const String left = "/smartcar/control/steering/left";
const String right = "/smartcar/control/steering/right"; | 58.25 | 60 | 0.781116 |
08cd1078eabbff7aaf5922dd8add205a48ea0fa8 | 4,515 | cpp | C++ | src/test/accounting_tests.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | 1 | 2015-04-23T04:45:46.000Z | 2015-04-23T04:45:46.000Z | src/test/accounting_tests.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | null | null | null | src/test/accounting_tests.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | null | null | null | // Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet.h"
#include "walletdb.h"
#include <stdint.h>
#include <boost/foreach.hpp>
#include <boost/test/unit_te... | 32.956204 | 91 | 0.712514 |
08cea99638e5b48abdbc36e54f88f24ef9a3ddc5 | 6,202 | cpp | C++ | src/Alarm/AlarmEntry.cpp | diqiu50/value | 019e430ae1da9dc132369ff53b8ab7bcaedd09d7 | [
"Apache-2.0"
] | 1 | 2018-04-13T09:41:53.000Z | 2018-04-13T09:41:53.000Z | src/Alarm/AlarmEntry.cpp | diqiu50/value | 019e430ae1da9dc132369ff53b8ab7bcaedd09d7 | [
"Apache-2.0"
] | null | null | null | src/Alarm/AlarmEntry.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 ... | 23.055762 | 82 | 0.60158 |
08d1fd930599baa672ee6d5a283414de9a4c8421 | 13,688 | cxx | C++ | Utilities/FltkImageViewer/fltkImage2DViewerWindow.cxx | clwyatt/CTC | 284d52dc888bcd997214804715fe690149e33f85 | [
"BSD-3-Clause"
] | 1 | 2019-07-29T02:04:06.000Z | 2019-07-29T02:04:06.000Z | Utilities/FltkImageViewer/fltkImage2DViewerWindow.cxx | clwyatt/CTC | 284d52dc888bcd997214804715fe690149e33f85 | [
"BSD-3-Clause"
] | null | null | null | Utilities/FltkImageViewer/fltkImage2DViewerWindow.cxx | clwyatt/CTC | 284d52dc888bcd997214804715fe690149e33f85 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile: fltkImage2DViewerWindow.cxx,v $
Language: C++
Date: $Date: 2002/10/15 15:16:54 $
Version: $Revision: 1.20 $
Copyright (c) 2002 Insight Consortium.... | 19.064067 | 104 | 0.502192 |
08d5a67101b5f6c210a2b2213e641905cf404ba9 | 573 | hpp | C++ | Chip8lib/font/fontLoader.hpp | tstibro/chip8 | fa342b8641737780e20b259f6df9dcb51127786a | [
"MIT"
] | null | null | null | Chip8lib/font/fontLoader.hpp | tstibro/chip8 | fa342b8641737780e20b259f6df9dcb51127786a | [
"MIT"
] | null | null | null | Chip8lib/font/fontLoader.hpp | tstibro/chip8 | fa342b8641737780e20b259f6df9dcb51127786a | [
"MIT"
] | null | null | null | /*
* fontLoader.hpp
*
* Created on: Jul 23, 2016
* Author: Tomas Stibrany
*/
#ifndef FONT_FONTLOADER_HPP_
#define FONT_FONTLOADER_HPP_
#include "../chip8Types.hpp"
namespace chip8 {
namespace core {
namespace memory {
class RAM;
}
}
}
namespace chip8 {
namespace font {
class Font;
}
}
using ... | 12.191489 | 36 | 0.670157 |
08d8c404b313187f4ba38d65810ce2ceb01a6c07 | 15,151 | cc | C++ | chrome/browser/ui/pdf/pdf_unsupported_feature.cc | Crystalnix/BitPop | 1fae4ecfb965e163f6ce154b3988b3181678742a | [
"BSD-3-Clause"
] | 7 | 2015-05-20T22:41:35.000Z | 2021-11-18T19:07:59.000Z | chrome/browser/ui/pdf/pdf_unsupported_feature.cc | Crystalnix/BitPop | 1fae4ecfb965e163f6ce154b3988b3181678742a | [
"BSD-3-Clause"
] | 1 | 2015-02-02T06:55:08.000Z | 2016-01-20T06:11:59.000Z | chrome/browser/ui/pdf/pdf_unsupported_feature.cc | Crystalnix/BitPop | 1fae4ecfb965e163f6ce154b3988b3181678742a | [
"BSD-3-Clause"
] | 2 | 2015-12-08T00:37:41.000Z | 2017-04-06T05:34:05.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/pdf/pdf_unsupported_feature.h"
#include "base/bind.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#... | 34.200903 | 80 | 0.744901 |
08d93b6b65eb7e4504db0d0a455eadfdd06ad947 | 1,897 | hpp | C++ | unittests/data/temporary_variable_to_be_exported.hpp | electronicvisions/pyplusplus | 4d88bb8754d22654a61202ae8adc222807953e38 | [
"BSL-1.0"
] | 9 | 2016-06-07T19:14:53.000Z | 2020-02-28T09:06:19.000Z | unittests/data/temporary_variable_to_be_exported.hpp | electronicvisions/pyplusplus | 4d88bb8754d22654a61202ae8adc222807953e38 | [
"BSL-1.0"
] | 1 | 2018-08-15T11:33:40.000Z | 2018-08-15T11:33:40.000Z | unittests/data/temporary_variable_to_be_exported.hpp | electronicvisions/pyplusplus | 4d88bb8754d22654a61202ae8adc222807953e38 | [
"BSL-1.0"
] | 5 | 2016-06-23T09:37:00.000Z | 2019-12-18T13:51:29.000Z | // Copyright 2004-2008 Roman Yakovenko.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef __temporary_variable_to_be_exported_hpp__
#define __temporary_variable_to_be_exported_hpp__
#include <string>
nam... | 20.846154 | 72 | 0.680548 |
08df8e684b33864a1b60ea7bd33b533968ba656f | 20,057 | ipp | C++ | include/External/stlib/packages/cpt/Face3.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/cpt/Face3.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/cpt/Face3.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
#if !defined(__cpt_Face3_ipp__)
#error This file is an implementation detail of the class Face.
#endif
namespace cpt {
//! A 3-D face on a b-rep.
template<typename T>
class Face<3, T> {
public:
//
// Public types.
//
//! The number type.
typedef T Number;
//! A... | 28.490057 | 92 | 0.610311 |
08e03811b4b6fef2210c8cbc0245664a09e52dcc | 1,434 | cpp | C++ | main/c++-class-templates/c-class-templates.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/c++-class-templates/c-class-templates.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/c++-class-templates/c-class-templates.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <cassert>
using namespace std;
namespace {
template <typename T>
class AddElements final {
public:
explicit AddElements(const T elem1) : elem1_{elem1} { }
T add(const T elem2) { return ele... | 24.305085 | 75 | 0.593445 |
08e08cd072855ce935cf1840a2215b955421a32e | 953 | hpp | C++ | color_detector/leds.hpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | color_detector/leds.hpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | color_detector/leds.hpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | #ifndef LEDS_HPP
#define LEDS_HPP
#include "hwlib.hpp"
/// @file
/// \brief
/// leds class
/// \details
/// This is a class for color for 5 leds.
class leds{
private:
hwlib::pin_out & l1;
hwlib::pin_out & l2;
hwlib::pin_out & l3;
hwlib::pin_out & l4;
hwlib::pin_out & l5;
/// \brief
/// ... | 20.276596 | 112 | 0.593914 |
08e1655a6ea40ca41ee8bd4ca653e5c30640d026 | 1,274 | cpp | C++ | src/math/tests/test_libaeon_math/test_size2d.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 7 | 2017-02-19T16:22:16.000Z | 2021-03-02T05:47:39.000Z | src/math/tests/test_libaeon_math/test_size2d.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 61 | 2017-05-29T06:11:17.000Z | 2021-03-28T21:51:44.000Z | src/math/tests/test_libaeon_math/test_size2d.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 2 | 2017-05-28T17:17:40.000Z | 2017-07-14T21:45:16.000Z | // Distributed under the BSD 2-Clause License - Copyright 2012-2021 Robin Degen
#include <aeon/math/size2d.h>
#include <aeon/math/size2d_stream.h>
#include <gtest/gtest.h>
using namespace aeon;
TEST(test_size2d, test_size2d_default_int)
{
[[maybe_unused]] math::size2d<int> size;
}
struct external_size2d
{
i... | 28.311111 | 85 | 0.66562 |
08e2d306237380b794321d0edbfd42c70a61b2bb | 4,852 | cpp | C++ | src/classical/io/write_verilog.cpp | eletesta/cirkit | 6d0939798ea25cecf92306ce796be154139b94f5 | [
"MIT"
] | null | null | null | src/classical/io/write_verilog.cpp | eletesta/cirkit | 6d0939798ea25cecf92306ce796be154139b94f5 | [
"MIT"
] | null | null | null | src/classical/io/write_verilog.cpp | eletesta/cirkit | 6d0939798ea25cecf92306ce796be154139b94f5 | [
"MIT"
] | null | null | null | /* CirKit: A circuit toolkit
* Copyright (C) 2009-2015 University of Bremen
* Copyright (C) 2015-2017 EPFL
*
* 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, in... | 34.657143 | 141 | 0.591509 |
08e4d6f55664305d11c4b22861efc87b3e154840 | 259 | cpp | C++ | tests/main.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2021-10-02T19:31:14.000Z | 2021-10-02T19:31:14.000Z | tests/main.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2020-06-17T01:15:45.000Z | 2020-06-17T01:16:08.000Z | tests/main.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2020-10-17T23:57:27.000Z | 2020-10-17T23:57:27.000Z | //
// Created by grant on 1/2/20.
//
#include "gtest/gtest.h"
#include "stms/log_test.cpp"
#include "stms/async_test.cpp"
#include "stms/general.cpp"
#if STMS_SSL_TESTS_ENABLED // Toggle SSL tests, disable for travis
# include "stms/ssl_test.cpp"
#endif
| 19.923077 | 67 | 0.718147 |
08e707f8036b8a1d6f86f75bd1152df0f04744d1 | 1,395 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/com_bitvectortest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/com_bitvectortest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/com_bitvectortest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #include "com_bitvectortest.h"
// Library headers.
#include <boost/shared_ptr.hpp>
#include <boost/test/test_tools.hpp>
#include <boost/test/unit_test_suite.hpp>
// PCRaster library headers.
// Module headers.
#include "com_bitvector.h"
/*!
\file
This file contains the implementation of the BitVectorTest clas... | 18.116883 | 80 | 0.536201 |
08e7bc9d26d1bca865b1ba8f1f8b54a2852db55e | 336 | hpp | C++ | etl/utils/singleton.hpp | julienlopez/ETL | 51c6e2c425d1bec29507a4f9a89c6211c9d7488f | [
"MIT"
] | null | null | null | etl/utils/singleton.hpp | julienlopez/ETL | 51c6e2c425d1bec29507a4f9a89c6211c9d7488f | [
"MIT"
] | 1 | 2015-03-25T09:42:10.000Z | 2015-03-25T09:42:10.000Z | etl/utils/singleton.hpp | julienlopez/ETL | 51c6e2c425d1bec29507a4f9a89c6211c9d7488f | [
"MIT"
] | null | null | null | #ifndef __SINGLETON_HPP__
#define __SINGLETON_HPP__
#include "noncopyable.hpp"
namespace etl {
namespace utils {
template<class T> class singleton : public noncopyable {
public:
static T& instance() {
static T i;
return i;
}
protected:
singleton() {}
};
} //utils
} //etl
#endif // __... | 12.923077 | 56 | 0.660714 |
08e8850381bddd9d41475a7b1eabc6b9dcaeb4b9 | 1,524 | cpp | C++ | ProjetGraph/ProjetGraph/tests/CUnit.cpp | RakSrinaNa/DI3---Projet-CPP | e5742941032f6a30f84868039b81b647fcf41cb5 | [
"MIT"
] | null | null | null | ProjetGraph/ProjetGraph/tests/CUnit.cpp | RakSrinaNa/DI3---Projet-CPP | e5742941032f6a30f84868039b81b647fcf41cb5 | [
"MIT"
] | null | null | null | ProjetGraph/ProjetGraph/tests/CUnit.cpp | RakSrinaNa/DI3---Projet-CPP | e5742941032f6a30f84868039b81b647fcf41cb5 | [
"MIT"
] | null | null | null | #include <iostream>
#include "CUnit.h"
#include "CExceptionUnit.h"
#include "CArcUnit.h"
#include "CVertexUnit.h"
#include "CGraphUnit.h"
#include "CGraphParserUnit.h"
#include "CHashMapUnit.h"
#include "../CException.h"
#include "CGraphToolboxUnit.h"
void CUnit::UNITassertError(const char * pcMessage)
{
perror(pcMes... | 28.222222 | 61 | 0.660105 |
08f2dfb507e32aa9e718d9c6509667bf65db2812 | 14,440 | cc | C++ | cc_code/src/common/error-model.test.cc | erisyon/whatprot | 176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c | [
"MIT"
] | null | null | null | cc_code/src/common/error-model.test.cc | erisyon/whatprot | 176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c | [
"MIT"
] | 1 | 2021-06-12T00:50:08.000Z | 2021-06-15T17:59:12.000Z | cc_code/src/common/error-model.test.cc | erisyon/whatprot | 176cd7e6ee99ea3f91794dcf1ec14f3578b7ee3c | [
"MIT"
] | 1 | 2021-06-11T19:34:43.000Z | 2021-06-11T19:34:43.000Z | /******************************************************************************\
* Author: Matthew Beauregard Smith *
* Affiliation: The University of Texas at Austin *
* Department: Oden Institute and Institute for Cellular and Molecular Biology... | 32.304251 | 80 | 0.523546 |
08f3d3b0ab3c01c13c305f0aefd1c5a67448b14d | 635 | cpp | C++ | CPP/ones_complement_checksum.cpp | sarthaks-ss/open-source-contribution | ef13e5ed0c8396d62c363fe52708d49c40374d26 | [
"MIT"
] | null | null | null | CPP/ones_complement_checksum.cpp | sarthaks-ss/open-source-contribution | ef13e5ed0c8396d62c363fe52708d49c40374d26 | [
"MIT"
] | null | null | null | CPP/ones_complement_checksum.cpp | sarthaks-ss/open-source-contribution | ef13e5ed0c8396d62c363fe52708d49c40374d26 | [
"MIT"
] | null | null | null | //16bit binary adder with carry
#include<iostream>
using namespace std;
uint16_t b16_adder(uint16_t a,uint16_t b)
{
uint32_t total32=0;
total32=a+b;
uint16_t rem=(total32>>16);
uint16_t total16=(total32);
uint16_t real_total=(total16+rem);
return real_total;
}
//pointer to data array and array size
uint16_t c... | 20.483871 | 53 | 0.729134 |
08f4420ae9b237e53d192e28ad209aaae3a6384b | 2,524 | cpp | C++ | framework/L2DMatrix44.cpp | dragonflylee/Dango | 3243a3ade6d8a4391b1d78c8bc4bb210779022cb | [
"MIT"
] | 1 | 2018-01-09T02:43:57.000Z | 2018-01-09T02:43:57.000Z | framework/L2DMatrix44.cpp | dragonflylee/Dango | 3243a3ade6d8a4391b1d78c8bc4bb210779022cb | [
"MIT"
] | null | null | null | framework/L2DMatrix44.cpp | dragonflylee/Dango | 3243a3ade6d8a4391b1d78c8bc4bb210779022cb | [
"MIT"
] | null | null | null | /**
*
* You can modify and use this source freely
* only for the development of application related Live2D.
*
* (c) Live2D Inc. All rights reserved.
*/
#include "L2DMatrix44.h"
namespace live2d
{
namespace framework
{
L2DMatrix44::L2DMatrix44()
{
identity();
}
... | 22.336283 | 89 | 0.389857 |
08f7b1a7196f0b681692d1bb2cbe0f9b9bb590ab | 1,926 | cpp | C++ | test/unit_tests/tests/18_FFT_revtests.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/18_FFT_revtests.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/18_FFT_revtests.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | #include "setting.h"
#include "math/fft.h"
#include "utils/logger.h"
#include "audio/audio_tools.h"
using namespace bacchus;
const float tol18 = 1e-4f;
const int ulpDif = 256*1024;
void FftCrossTest(const matxf& x, const matxcx& resy) {
matxcx y = DFT(x);
int n = y.size();
EXPECT_EQ(resy.size(), n);
f... | 25.342105 | 73 | 0.558152 |
08fcbe77618e5dfaad7de00fe7b983a15598ca9f | 25,842 | cc | C++ | src/mavsdk_server/src/generated/gimbal/gimbal.grpc.pb.cc | fpersson/MAVSDK | a7161d7634cd04de97f7fbcea10c2da21136892c | [
"BSD-3-Clause"
] | 1 | 2020-03-30T07:53:19.000Z | 2020-03-30T07:53:19.000Z | src/mavsdk_server/src/generated/gimbal/gimbal.grpc.pb.cc | fpersson/MAVSDK | a7161d7634cd04de97f7fbcea10c2da21136892c | [
"BSD-3-Clause"
] | 1 | 2021-03-15T18:34:13.000Z | 2021-03-15T18:34:13.000Z | src/mavsdk_server/src/generated/gimbal/gimbal.grpc.pb.cc | SEESAI/MAVSDK | 5a9289eb09eb6b13f24e9d8d69f5644d2210d6b2 | [
"BSD-3-Clause"
] | null | null | null | // Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: gimbal/gimbal.proto
#include "gimbal/gimbal.pb.h"
#include "gimbal/gimbal.grpc.pb.h"
#include <functional>
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcp... | 76.910714 | 317 | 0.747581 |
1c00ca7ebcb8c0ce9aeeb4784f8e788502f27923 | 9,983 | cc | C++ | src/xzero/http/http1/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 24 | 2016-07-10T08:05:11.000Z | 2021-11-16T10:53:48.000Z | src/xzero/http/http1/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 14 | 2015-04-12T10:45:26.000Z | 2016-06-28T22:27:50.000Z | src/xzero/http/http1/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 4 | 2016-10-05T17:51:38.000Z | 2020-04-20T07:45:23.000Z | // This file is part of the "x0" project, http://github.com/christianparpart/x0>
// (c) 2009-2018 Christian Parpart <christian@parpart.family>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the License at: http://op... | 28.280453 | 80 | 0.683863 |
1c071123e27cd580970c23437b07e9d79b516281 | 78,938 | cpp | C++ | ImportantExample/QTDbfDemo/src/dbfeditor.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 3 | 2018-12-24T19:35:52.000Z | 2022-02-04T14:45:59.000Z | ImportantExample/QTDbfDemo/src/dbfeditor.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | null | null | null | ImportantExample/QTDbfDemo/src/dbfeditor.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 1 | 2019-05-09T02:42:40.000Z | 2019-05-09T02:42:40.000Z | #/********************************************************************************/
#/* */
#/* Copyright 2011 Alexander Vorobyev (Voral) */
#/* http://va-soft.ru/ ... | 33.908076 | 139 | 0.475373 |
1c09fa25e31e9f9eb1cf698f769c434748b626f3 | 24,246 | hpp | C++ | src/pbdcex.core.hpp | jj4jj/pbdcex | 5b0d2bbdaebf94cceee47350819dae93a88a4cc8 | [
"MIT"
] | 5 | 2015-12-24T19:03:41.000Z | 2016-09-01T02:32:58.000Z | src/pbdcex.core.hpp | jj4jj/pbdcex | 5b0d2bbdaebf94cceee47350819dae93a88a4cc8 | [
"MIT"
] | null | null | null | src/pbdcex.core.hpp | jj4jj/pbdcex | 5b0d2bbdaebf94cceee47350819dae93a88a4cc8 | [
"MIT"
] | 2 | 2019-08-21T19:58:00.000Z | 2021-12-22T23:05:16.000Z | #ifndef __PBDCEX_CORE_EX_HPP_XX__
#define __PBDCEX_CORE_EX_HPP_XX__
#pragma once
#include <cstdio>
#include <cstdarg>
#include <cstdint>
#include <cstring>
#include <cassert>
#include <string>
#include <algorithm>
namespace pbdcex {
namespace util {
static inline uint64_t FNV_1A_Hash64(const unsigned char * data, s... | 30.23192 | 117 | 0.471542 |
1c0f8cdf4689a866f0b5c92700272cdaa0d66e4e | 5,951 | cpp | C++ | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/B3atZOnlineBeacon.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | 10 | 2017-07-22T13:04:45.000Z | 2021-12-22T10:02:32.000Z | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/B3atZOnlineBeacon.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | null | null | null | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/B3atZOnlineBeacon.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | 3 | 2017-05-06T20:31:43.000Z | 2020-07-01T01:45:37.000Z | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved
// Plugin written by Philipp Buerki. Copyright 2017. All Rights reserved..
#include "../OnlineSubsystemB3atZUtils/Public/B3atZOnlineBeacon.h"
#include "Engine/NetConnection.h"
#include "EngineGlobals.h"
#include "Engine/Engine.h"
DEFINE_LOG_CATEGORY(LogBeaco... | 31.321053 | 152 | 0.750294 |
1c11aa81d8d5c87a5eba9e1c34588fa89aa6edaa | 7,208 | cpp | C++ | src/tests/unit/cpu/shape_inference_test/interpolate_shape_inference.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 1 | 2019-09-22T01:05:07.000Z | 2019-09-22T01:05:07.000Z | src/tests/unit/cpu/shape_inference_test/interpolate_shape_inference.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 58 | 2020-11-06T12:13:45.000Z | 2022-03-28T13:20:11.000Z | src/tests/unit/cpu/shape_inference_test/interpolate_shape_inference.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 2 | 2019-09-20T01:33:37.000Z | 2019-09-20T08:42:11.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <interpolate_shape_inference.hpp>
#include <openvino/op/constant.hpp>
#include <openvino/op/interpolate.hpp>
#include <openvino/op/parameter.hpp>
#include <utils/shape_inference/shape_inference.hpp... | 48.375839 | 120 | 0.66232 |
1c1246b06c41ea08f0c0a3bb12e4b5c2f55d9dea | 1,107 | cpp | C++ | Online Judges/LightOJ/1047 - Neighbor House.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | Online Judges/LightOJ/1047 - Neighbor House.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | Online Judges/LightOJ/1047 - Neighbor House.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
//Macros
#define read(a) scanf("%d",&a)
#define CLEAR(a,b) memset(a,b,sizeof(a))
#define VI(a) vector<a>
#define lld long long int
#define ulld unsigned long long int
#define PI acos(-1.0)
#define Gamma 0.5772156649015328606065120900824024310421
int arr... | 17.030769 | 104 | 0.483288 |
1c135917bc74b3aae19c1068d8fe38e7acb51550 | 4,730 | cpp | C++ | dnn/src/naive/elemwise_multi_type/opr_impl_1.cpp | TaoweiZhang/MegEngine | bd3c4a05274f69dacca6097d8cbadbb34c7cc2e4 | [
"Apache-2.0"
] | 1 | 2022-03-21T03:13:45.000Z | 2022-03-21T03:13:45.000Z | dnn/src/naive/elemwise_multi_type/opr_impl_1.cpp | TaoweiZhang/MegEngine | bd3c4a05274f69dacca6097d8cbadbb34c7cc2e4 | [
"Apache-2.0"
] | null | null | null | dnn/src/naive/elemwise_multi_type/opr_impl_1.cpp | TaoweiZhang/MegEngine | bd3c4a05274f69dacca6097d8cbadbb34c7cc2e4 | [
"Apache-2.0"
] | null | null | null | /**
* \file dnn/src/naive/elemwise_multi_type/opr_impl_1.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distri... | 34.028777 | 89 | 0.604017 |
1c16dc3bb20e37ed22e6079c11a2e75d1e557c8f | 1,361 | cpp | C++ | client/LocalConn.cpp | lzs123/CProxy | 08266997317b0ba89ddc93dac46b0faf5fd12592 | [
"MIT"
] | 7 | 2022-02-07T08:26:55.000Z | 2022-03-23T02:55:44.000Z | client/LocalConn.cpp | lzs123/CProxy | 08266997317b0ba89ddc93dac46b0faf5fd12592 | [
"MIT"
] | null | null | null | client/LocalConn.cpp | lzs123/CProxy | 08266997317b0ba89ddc93dac46b0faf5fd12592 | [
"MIT"
] | null | null | null | #include <fcntl.h>
#include <string.h>
#include "LocalConn.h"
#include "Tunnel.h"
#include "lib/Util.h"
void LocalConn::handleRead() {
try{
int bs = splice(fd_, NULL, pipe_fds_[1], NULL, 2048, SPLICE_F_MOVE | SPLICE_F_NONBLOCK);
if (bs < 0) {
SPDLOG_CRITICAL("proxy_id: {} local_fd: {} -> pipe_fd: {} ... | 35.815789 | 162 | 0.659809 |
1c1daf85142e4d3caa7fc315f2ddee90e9f4dda5 | 490 | cpp | C++ | dawn/test/unit-test/dawn/Optimizer/samples/KCacheTest02b.cpp | BenWeber42/dawn | 727835e027b8270d667452b857fa4e0af57b2c2e | [
"MIT"
] | 20 | 2017-09-28T14:23:54.000Z | 2021-08-23T09:58:26.000Z | dawn/test/unit-test/dawn/Optimizer/samples/KCacheTest02b.cpp | BenWeber42/dawn | 727835e027b8270d667452b857fa4e0af57b2c2e | [
"MIT"
] | 1,018 | 2017-10-09T13:55:47.000Z | 2022-03-14T13:16:38.000Z | dawn/test/unit-test/dawn/Optimizer/samples/KCacheTest02b.cpp | eddie-c-davis/dawn | 4dabcfc72e422f125e6a18fe08d0212d588adf98 | [
"MIT"
] | 20 | 2017-09-21T10:35:24.000Z | 2021-01-18T09:24:58.000Z | #include "gtclang_dsl_defs/gtclang_dsl.hpp"
using namespace gtclang::dsl;
stencil Test {
storage a, b, c;
var tmp;
Do {
// MS0
vertical_region(k_start, k_start) {
tmp = a;
}
vertical_region(k_start + 1, k_end) {
b = tmp(k - 1);
}
// MS1
vertical_re... | 19.6 | 43 | 0.483673 |
1c2019fcd1b8894f0a0a76c6cff42181449ee6bc | 129,465 | cpp | C++ | bwchart/bwchart/DlgStats.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | bwchart/bwchart/DlgStats.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | bwchart/bwchart/DlgStats.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | // DlgStats.cpp : implementation file
//
#include "stdafx.h"
#include "bwchart.h"
#include "DlgStats.h"
#include "regparam.h"
#include "bwrepapi.h"
#include "DlgHelp.h"
#include "DlgMap.h"
#include "Dlgbwchart.h"
#include "gradient.h"
#include "hsvrgb.h"
#include "overlaywnd.h"
#include "ExportCoachDlg.h... | 29.947953 | 165 | 0.609408 |
1c209867ff2b92d973c8bb6b15a5196ba9203476 | 29,311 | cpp | C++ | OpenGLEngine/OpenGLEngine/Main.cpp | BEEMO197/Reality-Game-Engine | 08ff9d9b02790e31bef5ec1c3a50f1b36d43a572 | [
"MIT"
] | 1 | 2021-04-02T17:21:38.000Z | 2021-04-02T17:21:38.000Z | OpenGLEngine/OpenGLEngine/Main.cpp | BEEMO197/Reality-Game-Engine | 08ff9d9b02790e31bef5ec1c3a50f1b36d43a572 | [
"MIT"
] | null | null | null | OpenGLEngine/OpenGLEngine/Main.cpp | BEEMO197/Reality-Game-Engine | 08ff9d9b02790e31bef5ec1c3a50f1b36d43a572 | [
"MIT"
] | null | null | null | //#define STB_IMAGE_IMPLEMENTATION
#include "RenderingSystem.h"
#include "RenderingSystemV2.h"
#include "InputEventSystem.h"
#include "FPSControlSystem.h"
#include "RotateSystem.h"
#include "RotateSystemV2.h"
#include "FireworksSystem.h"
#include "GravityForceSystem.h"
#include "DragForceSystem.h"
#include "F... | 38.265013 | 138 | 0.712804 |
1c2682699ff4fe1a11841ac9317106789dfb46ed | 369 | hpp | C++ | phase_1/eval/york/challenge/src/http/request_state.hpp | cromulencellc/chess-aces | 7780e29de1991758078816ca501ff79a2586b8c2 | [
"MIT"
] | null | null | null | phase_1/eval/york/challenge/src/http/request_state.hpp | cromulencellc/chess-aces | 7780e29de1991758078816ca501ff79a2586b8c2 | [
"MIT"
] | null | null | null | phase_1/eval/york/challenge/src/http/request_state.hpp | cromulencellc/chess-aces | 7780e29de1991758078816ca501ff79a2586b8c2 | [
"MIT"
] | null | null | null | #pragma once
#include <optional>
#include <vector>
namespace http {
struct RequestState {
public:
bool abort = false;
bool want_line = false;
std::optional<size_t> want_bytes;
bool ready_to_respond = false;
bool in_valid_state() const;
};
}
std::ostream& operator<<(std::ostream& o,
... | 18.45 | 55 | 0.634146 |
1c27fe1b64d1ff82139e5e8dac02a3cbfa0bd650 | 872 | cpp | C++ | engine/visibility/BackSurfaceCull/BackSurfaceCull.cpp | PiroDev/graphics-engine | bf1e5f57878c02421e2e8a787d94ce6074637402 | [
"Apache-2.0"
] | null | null | null | engine/visibility/BackSurfaceCull/BackSurfaceCull.cpp | PiroDev/graphics-engine | bf1e5f57878c02421e2e8a787d94ce6074637402 | [
"Apache-2.0"
] | null | null | null | engine/visibility/BackSurfaceCull/BackSurfaceCull.cpp | PiroDev/graphics-engine | bf1e5f57878c02421e2e8a787d94ce6074637402 | [
"Apache-2.0"
] | null | null | null | #include "BackSurfaceCull.hpp"
void BackSurfaceCull::operator()(std::shared_ptr<Model> &model, const Point3f &eye) const {
std::vector<Polygon> remaining;
const auto &polygons = model->Polygons();
const auto &points = model->Points();
const auto &normals = model->Normals();
for (const auto &polyg... | 28.129032 | 91 | 0.544725 |
1c28a6c2d84c8db78475da19c2ed7f4c02177055 | 2,687 | cc | C++ | cagey-engine/source/cagey/window/Window.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | cagey-engine/source/cagey/window/Window.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | cagey-engine/source/cagey/window/Window.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////
////
//// cagey-engine - Toy 3D Engine
//// Copyright (c) 2014 Kyle Girard <theycallmecoach@gmail.com>
////
//// The MIT License (MIT)
////
//// Permission is hereby granted, free of charge, to any person obtaining a copy
//// of this so... | 34.012658 | 99 | 0.629326 |
1c2a37052907e1c29dfc55784516f8f3d7af259a | 8,085 | cc | C++ | src/system/kernel/core/process/Process.cc | jmolloy/pedigree | 4f02647d8237cc19cff3c20584c0fdd27b14a7d4 | [
"0BSD"
] | 37 | 2015-01-11T20:08:48.000Z | 2022-01-06T17:25:22.000Z | src/system/kernel/core/process/Process.cc | jmolloy/pedigree | 4f02647d8237cc19cff3c20584c0fdd27b14a7d4 | [
"0BSD"
] | 4 | 2016-05-20T01:01:59.000Z | 2016-06-22T00:03:27.000Z | src/system/kernel/core/process/Process.cc | jmolloy/pedigree | 4f02647d8237cc19cff3c20584c0fdd27b14a7d4 | [
"0BSD"
] | 6 | 2015-09-14T14:44:20.000Z | 2019-01-11T09:52:21.000Z | /*
* Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "A... | 33 | 164 | 0.687322 |
1c2ab67c1db41c545f994247455c2e688cd42224 | 321 | cpp | C++ | src/Omega_h_timer.cpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/Omega_h_timer.cpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/Omega_h_timer.cpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "Omega_h_timer.hpp"
namespace Omega_h {
Now now() {
Now t;
t.impl = std::chrono::high_resolution_clock::now();
return t;
}
Real operator-(Now b, Now a) {
return std::chrono::duration_cast<std::chrono::nanoseconds>(b.impl - a.impl)
.count() *
1e-9;
}
} // end namespace Omega_h... | 17.833333 | 78 | 0.619938 |
1c2cf5f3e0ce5d29833ec36397e7c4fea8733201 | 1,321 | cpp | C++ | src/plugins/cgal/nodes/topology/convex_hull.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 232 | 2017-10-09T11:45:28.000Z | 2022-03-28T11:14:46.000Z | src/plugins/cgal/nodes/topology/convex_hull.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 26 | 2019-01-20T21:38:25.000Z | 2021-10-16T03:57:17.000Z | src/plugins/cgal/nodes/topology/convex_hull.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 33 | 2017-10-26T19:20:38.000Z | 2022-03-16T11:21:43.000Z | #include <CGAL/convex_hull_3.h>
#include <possumwood_sdk/node_implementation.h>
#include "datatypes/meshes.h"
#include "errors.h"
namespace {
using possumwood::CGALPolyhedron;
using possumwood::Meshes;
typedef possumwood::CGALPolyhedron Mesh;
dependency_graph::InAttr<Meshes> a_inMesh;
dependency_graph::OutAttr<Me... | 28.106383 | 98 | 0.766086 |
1c2e89d744f4124d22abdfe05d593e26c4d67f5a | 6,353 | cpp | C++ | Child/Releases/r081211/Code/tListInputData/tListInputData.cpp | dvalters/child | 9874278f5308ab6c5f0cb93ed879bca9761d24b9 | [
"MIT"
] | 9 | 2015-02-23T15:47:20.000Z | 2020-05-19T23:42:05.000Z | Child/Releases/r081211/Code/tListInputData/tListInputData.cpp | dvalters/child | 9874278f5308ab6c5f0cb93ed879bca9761d24b9 | [
"MIT"
] | 3 | 2020-04-21T06:12:53.000Z | 2020-08-20T16:56:17.000Z | Child/Releases/r081211/Code/tListInputData/tListInputData.cpp | dvalters/child | 9874278f5308ab6c5f0cb93ed879bca9761d24b9 | [
"MIT"
] | 12 | 2015-02-18T18:34:57.000Z | 2020-07-12T04:04:36.000Z | /**************************************************************************/
/**
** @file tListInputData.cpp
** @brief Functions for class tListInputData.
**
** Modifications:
** - changed .tri file format from points-edges-triangles to
** points-triangles-edges, compatible with earlier format (gt 1/98)
... | 30.990244 | 79 | 0.555171 |
1c330f7ac0367e8acfd10060b8804c48af9818e7 | 353 | cpp | C++ | source/code/programs/examples/saturating/main.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/code/programs/examples/saturating/main.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/code/programs/examples/saturating/main.cpp | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | #include <cstddef>
#include <cstdint>
#include <iostream>
#include "types.hpp"
uint8_t x[] { 101, 27, 3, 95 };
int main () {
uint_sat8_t s = 25;
for (const auto& v : x) {
s -= v;
} // s == 0
s++; // s == 1
for (const auto& v : x) {
s *= v;
}
unsigned j = s; // s == 255
... | 16.045455 | 32 | 0.456091 |
1c3585e9f7e941a11ef84bd043a79cf2de61c87f | 2,522 | cpp | C++ | LeetCode/C++/General/Hard/LongestValidParentheses/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Hard/LongestValidParentheses/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Hard/LongestValidParentheses/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include <string>
#include <vector>
/*
* Solutions:
*
* 1. Brute-force. We generate every possible substring and if the substring is valid, update the result
* to be the length of the longest one of these substrings.
*
* Time complexity: O(n^3) [where n is the length of the i... | 18.143885 | 104 | 0.458763 |
1c3910f2a6205a1a12e5f64cf3fca1df90a4da2b | 8,952 | cpp | C++ | Web/src/ApacheAgent/ApacheAgent.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Web/src/ApacheAgent/ApacheAgent.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Web/src/ApacheAgent/ApacheAgent.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 30.040268 | 111 | 0.661416 |
1c39384ce95547642533d79874ef7f0dda03a3c5 | 4,864 | cpp | C++ | source/Foundation/DataStream.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 19 | 2015-12-19T11:15:57.000Z | 2022-03-09T11:22:11.000Z | source/Foundation/DataStream.cpp | DevilWithin/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 1 | 2017-05-17T09:31:10.000Z | 2017-05-19T17:01:31.000Z | source/Foundation/DataStream.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 3 | 2015-12-14T17:40:26.000Z | 2021-02-25T00:42:42.000Z | #include <Nephilim/Foundation/DataStream.h>
#include <Nephilim/Foundation/IODevice.h>
#include <Nephilim/Foundation/String.h>
#include <assert.h>
#include <stdio.h>
NEPHILIM_NS_BEGIN
/// Constructs a invalid data stream
DataStream::DataStream()
: m_device(NULL)
{
}
/// Constructs a data stream from a device
DataSt... | 19.07451 | 80 | 0.694901 |
1c3b4e522196f9a659bf825df253016e8ed0edf2 | 1,881 | cpp | C++ | src/bpfrequencytracker.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 22 | 2016-08-11T06:16:25.000Z | 2022-02-22T00:06:59.000Z | src/bpfrequencytracker.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 9 | 2016-12-08T12:42:38.000Z | 2021-12-28T20:12:15.000Z | src/bpfrequencytracker.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 8 | 2017-06-26T13:15:06.000Z | 2021-11-12T18:39:54.000Z | //
// bpfrequencytracker.cpp
// barcode_project
//
// Created by luzhao on 4/21/16.
// Copyright © 2016 luzhao. All rights reserved.
//
#include "bpfrequencytracker.hpp"
#include <array>
#include <cassert>
#include <vector>
using std::array;
using std::vector;
namespace barcodeSpace {
BPFrequencyTracker::BPF... | 34.2 | 133 | 0.596491 |
1c3f0bc21d3ed41f6fe8b58cb8a63f66eb007ca4 | 2,627 | inl | C++ | src/wire/core/transport.inl | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 5 | 2016-04-07T19:49:39.000Z | 2021-08-03T05:24:11.000Z | src/wire/core/transport.inl | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | null | null | null | src/wire/core/transport.inl | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 1 | 2020-12-27T11:47:31.000Z | 2020-12-27T11:47:31.000Z | /*
* transport.inl
*
* Created on: Feb 8, 2016
* Author: zmij
*/
#ifndef WIRE_CORE_TRANSPORT_INL_
#define WIRE_CORE_TRANSPORT_INL_
#include <wire/core/transport.hpp>
#include <wire/util/debug_log.hpp>
namespace wire {
namespace core {
template < typename Session, transport_type Type >
transport_listener<... | 25.019048 | 104 | 0.694328 |
1c4131f4e99beaf367375d11ca8b722024d71696 | 3,249 | hpp | C++ | include/Common/math.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | 2 | 2020-05-05T13:31:55.000Z | 2022-01-16T15:38:00.000Z | include/Common/math.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | null | null | null | include/Common/math.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | 1 | 2021-11-27T02:32:24.000Z | 2021-11-27T02:32:24.000Z | #ifndef MATH_HPP
#define MATH_HPP
#include <cfloat>
#include <cmath>
#include <iostream>
#include <vector>
#include "glm/glm.hpp"
using namespace std;
#define FLT_CMP(a, b) (abs(a-b)<=FLT_EPSILON)
#define DEG2RAD(x) (x*M_PI/180.0)
#define RAD2DEG(x) (x*180.0/M_PI)
template <typename T>
ostream& operator<<(ostream& o, ... | 23.374101 | 54 | 0.644814 |
1c4340895d9ff32d7ffa191d42ebd2c4e08e39ec | 732 | cpp | C++ | anagram/anagram.cpp | aydinsimsek/exercism-solutions-cpp | 6d7c8d37f628840559509d7f6e5b7788c8c637b6 | [
"MIT"
] | 1 | 2022-02-04T19:22:58.000Z | 2022-02-04T19:22:58.000Z | anagram/anagram.cpp | aydinsimsek/exercism-solutions-cpp | 6d7c8d37f628840559509d7f6e5b7788c8c637b6 | [
"MIT"
] | null | null | null | anagram/anagram.cpp | aydinsimsek/exercism-solutions-cpp | 6d7c8d37f628840559509d7f6e5b7788c8c637b6 | [
"MIT"
] | null | null | null | #include "anagram.h"
namespace anagram {
anagram::anagram(string s)
{
word = s;
}
vector <string> anagram::matches(vector <string> v)
{
size_t w;
for (int i = 0; i < v.size(); i++)
{
if (word.length() == v[i].length())
{
temp1 = v[i];
for (int j = 0; j < v[i].length(); j++)
{
v... | 17.023256 | 53 | 0.449454 |
1c49c154874b273a42fea95b7447dfd1476a38c6 | 2,902 | cpp | C++ | src/input.cpp | Bryankaveen/tanks-ce | 27670778dbf6329b7fa4e69d12f8a4e5fa1f3ad9 | [
"MIT"
] | 14 | 2020-08-11T14:39:52.000Z | 2022-02-08T21:17:56.000Z | src/input.cpp | commandblockguy/Tanks-CE | 9eb79438a0ecd12cbde23be207257c650b703acb | [
"MIT"
] | 1 | 2020-11-04T08:17:52.000Z | 2020-11-05T22:41:46.000Z | src/input.cpp | commandblockguy/Tanks-CE | 9eb79438a0ecd12cbde23be207257c650b703acb | [
"MIT"
] | 1 | 2021-12-16T19:24:04.000Z | 2021-12-16T19:24:04.000Z | #include "game.h"
#include "gui/pause.h"
#include "objects/tank.h"
#include "util/profiler.h"
#include <keypadc.h>
#define PLAYER_BARREL_ROTATION DEGREES_TO_ANGLE(5)
//1/3 of a second for 90 degree rotation
#define PLAYER_TREAD_ROTATION (DEGREES_TO_ANGLE(90) / (TARGET_TICK_RATE / 3))
void handle_movement() {
Tan... | 25.910714 | 77 | 0.569952 |
1c50b7b697cd116c9bd383da141940098b7b88dd | 1,001 | hpp | C++ | branch_predictor/btb_set.hpp | thild/orcs | 3cf377e5573e05843a15d338c29d595d95ed1495 | [
"MIT"
] | null | null | null | branch_predictor/btb_set.hpp | thild/orcs | 3cf377e5573e05843a15d338c29d595d95ed1495 | [
"MIT"
] | null | null | null | branch_predictor/btb_set.hpp | thild/orcs | 3cf377e5573e05843a15d338c29d595d95ed1495 | [
"MIT"
] | null | null | null | #include <tuple>
#include <cmath>
using namespace std;
class btb_set_t {
public:
btb_line_t *lines = NULL;
uint8_t depth = 0;
// ====================================================================
/// Methods
// ====================================================... | 28.6 | 88 | 0.467532 |
1c5164bdec19659eaffe195a7202c4bdcdd32ff4 | 1,463 | cpp | C++ | platforms/gfg/0455_k_maximum_sum_overlapping_contiguous_sub_arrays.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | 2 | 2020-09-17T09:04:00.000Z | 2020-11-20T19:43:18.000Z | platforms/gfg/0455_k_maximum_sum_overlapping_contiguous_sub_arrays.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | platforms/gfg/0455_k_maximum_sum_overlapping_contiguous_sub_arrays.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | #include "../../template.hpp"
void GetKMaxSums(vi arr, int k) {
int n = arr.size();
vi presum(n + 1);
for (int i = 1; i <= n; ++i) {
presum[i] = arr[i - 1] + presum[i - 1];
}
vi sums;
for (int i = 1; i <= n; ++i) {
for (int j = i; j <= n; ++j) {
sums.push_back(presum... | 24.383333 | 56 | 0.395079 |
1c5287128a8e952846a5208fa07831366f7e1a2e | 2,141 | cpp | C++ | src/logger/logger.cpp | gratonos/cxlog | 1e2befb466d600545db3ad79cb0001f2f0056476 | [
"MIT"
] | null | null | null | src/logger/logger.cpp | gratonos/cxlog | 1e2befb466d600545db3ad79cb0001f2f0056476 | [
"MIT"
] | null | null | null | src/logger/logger.cpp | gratonos/cxlog | 1e2befb466d600545db3ad79cb0001f2f0056476 | [
"MIT"
] | null | null | null | #include <cxlog/logger/logger.h>
NAMESPACE_CXLOG_BEGIN
void Logger::Log(Level level, const char *file, std::size_t line, const char *func,
std::string &&msg) const {
const Additional &additional = this->additional;
std::vector<Context> contexts;
contexts.reserve(additional.statics->size() + additiona... | 31.485294 | 89 | 0.601121 |
1c545e6a82c9f3620c90a0f0cb67fffe2415267f | 781 | cpp | C++ | Olympiad Solutions/DMOJ/bts17p4.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/DMOJ/bts17p4.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/DMOJ/bts17p4.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://dmoj.ca/problem/bts17p4
#include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> ii;
vector<ii> todos;
vector<int> menores;
int N,M,J;
int checa(int t){
menores.clear();
for(ii d : todos){
if(d.second <= t) menores.push_back(d.first);
}
sort(menores.begin(),menor... | 18.595238 | 47 | 0.567222 |
1c551e9d9dd8a9379c999a289f2501eaa2dff666 | 22,647 | cpp | C++ | src/plugins/grass/qgsgrasstools.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/plugins/grass/qgsgrasstools.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/plugins/grass/qgsgrasstools.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
qgsgrasstools.cpp
-------------------
begin : March, 2005
copyright : (C) 2005 by Radim Blazek
email : blazek@itc.it
*************... | 29.034615 | 159 | 0.634654 |
1c5856d4b398bc8f8bf0bc558731f2f7feff1882 | 1,311 | cpp | C++ | c++/Test/GlobalData/weoExceptionMessageCreator.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/GlobalData/weoExceptionMessageCreator.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/GlobalData/weoExceptionMessageCreator.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
//-------------------------------------------------------------------
// include
//-------------------------------------------------------------------
#include "weoExceptionMessageCreator.h"
#include <sstream>
namespace pm_mode {
/********************************************************************
... | 26.755102 | 129 | 0.515637 |
1c5b3de7fce16286f16fb22e379723f676ef5d50 | 546 | hpp | C++ | jmax/shader/Shader.hpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | jmax/shader/Shader.hpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | jmax/shader/Shader.hpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | #ifndef SHADER_HPP_
#define SHADER_HPP_
#include "../jmax.hpp"
#include <string>
#include <vector>
namespace jmax {
class Shader
{
public:
Shader(std::string const& filePath, GLenum shaderType = 0);
virtual ~Shader();
public:
static GLuint compileShaderFile(std::string const& shaderFilePath, GLenum shaderTyp... | 19.5 | 88 | 0.725275 |
1c5b779943d9abe8389382f1717d224f7c402fef | 816 | cpp | C++ | Linked List/Singly Linked List/Insert/add_at_front.cpp | dipanshuchaubey/competitive-coding | 9b41f4693a30fdcf00b82db9aad5ced7d0dc454f | [
"MIT"
] | null | null | null | Linked List/Singly Linked List/Insert/add_at_front.cpp | dipanshuchaubey/competitive-coding | 9b41f4693a30fdcf00b82db9aad5ced7d0dc454f | [
"MIT"
] | null | null | null | Linked List/Singly Linked List/Insert/add_at_front.cpp | dipanshuchaubey/competitive-coding | 9b41f4693a30fdcf00b82db9aad5ced7d0dc454f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class Node
{
public:
Node *next;
int data;
};
void printList(Node *n)
{
while (n != NULL)
{
cout << n->data << "\t";
n = n->next;
}
}
void insertAtFront(Node **start_node, int data)
{
Node *new_node = new Node();
new_node->data = d... | 14.571429 | 50 | 0.551471 |
1c5c19ab2d119c2ccec4e995d72e9230b11a2b97 | 1,807 | cpp | C++ | src/LG/lg-P1659.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | 1 | 2021-08-13T14:27:39.000Z | 2021-08-13T14:27:39.000Z | src/LG/lg-P1659.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | src/LG/lg-P1659.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <iostream>
#define int long long
const int MAX_N = 2000050;
const int MOD = 19930726;
std::string d, s;
int re[MAX_N], cnt[MAX_N];
int n, nn, k;
void init();
void manacher();
int quick_pow(int a, int b);
signed main() {
std::ios::sync_with_stdio(false);
std:... | 17.891089 | 65 | 0.342557 |
1c5d2d09af639b8b275c0a1e970826844b4512c4 | 129 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example_details.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example_details.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example_details.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:338e6e57d5446ad622a48ab505a62e4ddf72367f1dd3bd9dee9773f0f43ab857
size 1576
| 32.25 | 75 | 0.883721 |
1c60fa930f611edaa3a07a5d07828882b70c0b10 | 974 | cpp | C++ | demo/src/main.cpp | fundies/Crash2D | 40b14d4259d7cedeea27d46f7206b80a07a3327c | [
"MIT"
] | 1 | 2017-05-25T13:49:18.000Z | 2017-05-25T13:49:18.000Z | demo/src/main.cpp | fundies/SAT | 40b14d4259d7cedeea27d46f7206b80a07a3327c | [
"MIT"
] | 6 | 2016-09-27T22:57:13.000Z | 2017-05-11T17:01:26.000Z | demo/src/main.cpp | fundies/SAT | 40b14d4259d7cedeea27d46f7206b80a07a3327c | [
"MIT"
] | 4 | 2016-09-29T01:19:44.000Z | 2021-04-02T07:45:59.000Z | #include "MTVDemo.hpp"
#include "BroadphaseDemo.hpp"
int main(int argc, char **argv)
{
sf::RenderWindow window(sf::VideoMode(800, 600), "Crash2D Demo");
window.setFramerateLimit(60);
Demo *demo = new MTVDemo(window);
size_t demoId = 0;
while (window.isOpen()) {
// check all the window's events that were trigg... | 21.173913 | 91 | 0.596509 |
1c61f3b6817b5d6e4326b7725944537b55eeac20 | 1,007 | cpp | C++ | Exam Practice/dice.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | Exam Practice/dice.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | Exam Practice/dice.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | #include "dice.h"
#include "randgen.h"
// implementation of dice class
// written Jan 31, 1994, modified 5/10/94 to use RandGen class
// modified 3/31/99 to move RandGen class here from .h file
Dice::Dice(int sides)
// postcondition: all private fields initialized
{
myRollCount = 0;
mySides = sides;
}
i... | 20.55102 | 73 | 0.608739 |
1c6a083592b615ed772efc3dab21d3feb3c4330e | 14,096 | cpp | C++ | Common/win32/ProxyResolver.cpp | JzHuai0108/bluefox-mlc-continuous-capture-avi | b04a2c80223c6f3afa15ca05ba3068f20702549a | [
"BSD-3-Clause"
] | null | null | null | Common/win32/ProxyResolver.cpp | JzHuai0108/bluefox-mlc-continuous-capture-avi | b04a2c80223c6f3afa15ca05ba3068f20702549a | [
"BSD-3-Clause"
] | null | null | null | Common/win32/ProxyResolver.cpp | JzHuai0108/bluefox-mlc-continuous-capture-avi | b04a2c80223c6f3afa15ca05ba3068f20702549a | [
"BSD-3-Clause"
] | null | null | null | #include "ProxyResolver.h"
#if _WIN32_WINNT < 0x0602 // This stuff became available with Windows 8
# define WINHTTP_CALLBACK_STATUS_GETPROXYFORURL_COMPLETE 0x01000000
# define WINHTTP_CALLBACK_FLAG_GETPROXYFORURL_COMPLETE WINHTTP_CALLBACK_STATUS_GETPROXYFORURL_COMPLETE
# define API_GET_PROXY_FOR_URL (6)
... | 34.380488 | 264 | 0.623936 |
1c6a8639fcb04a9a56098c34f080c26b14a84208 | 896 | cpp | C++ | UTSO/utso21p2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | UTSO/utso21p2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | UTSO/utso21p2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
#ifndef ONLINE_JUDGE
template<typename T>
void pr(T a){std::cerr<<a<<std::endl;}
template<typename T,typename... Args>
void pr(T a, Args... args) {std::cerr<<a<<' ',pr(args...);}
#else
template<typename... Args>
void pr(Ar... | 18.666667 | 60 | 0.504464 |
1c6d2c7de9a44b122987529f4e6d173c3d381f35 | 1,127 | cpp | C++ | src/openloco/townmgr.cpp | Gymnasiast/OpenLoco | 1bef36f96bcce0d6095d1b804a8d9f9df9651d07 | [
"MIT"
] | null | null | null | src/openloco/townmgr.cpp | Gymnasiast/OpenLoco | 1bef36f96bcce0d6095d1b804a8d9f9df9651d07 | [
"MIT"
] | null | null | null | src/openloco/townmgr.cpp | Gymnasiast/OpenLoco | 1bef36f96bcce0d6095d1b804a8d9f9df9651d07 | [
"MIT"
] | null | null | null | #include "townmgr.h"
#include "companymgr.h"
#include "interop/interop.hpp"
#include "openloco.h"
using namespace openloco::interop;
namespace openloco::townmgr
{
static loco_global_array<town, 80, 0x005B825C> _towns;
std::array<town, max_towns>& towns()
{
auto arr = (std::array<town, max_towns>*... | 21.673077 | 73 | 0.485359 |