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 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4b686e364cd0d9b86a354df6e64cbbb8ab96071 | 343 | hpp | C++ | src/framework/forms/input/input.hpp | kevinaud/asm-dom-OO-counters | 58ea010941b5e7ab860109b6ebbd6f3ca47fd4c6 | [
"MIT"
] | 9 | 2018-06-07T00:39:45.000Z | 2021-06-28T18:26:51.000Z | src/framework/forms/input/input.hpp | kevinaud/asm-dom-OO-counters | 58ea010941b5e7ab860109b6ebbd6f3ca47fd4c6 | [
"MIT"
] | null | null | null | src/framework/forms/input/input.hpp | kevinaud/asm-dom-OO-counters | 58ea010941b5e7ab860109b6ebbd6f3ca47fd4c6 | [
"MIT"
] | 2 | 2019-05-04T15:35:04.000Z | 2019-09-24T12:11:45.000Z | #ifndef INPUT_H
#define INPUT_H
#include "../../component/component.hpp"
#include "../../view-property/view-property.hpp"
class Input : public Component {
public:
Input(Component* parent);
Input(Component* parent, string initValue);
VNode* render();
private:
ViewProperty<stri... | 18.052632 | 51 | 0.641399 | kevinaud |
c4b86abbd7ac32192638543b82b05e5363f5706b | 4,208 | hpp | C++ | src/CameraControl/EDSDK/EdsdkSourceDeviceImpl.hpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 16 | 2015-03-26T02:32:43.000Z | 2021-10-18T16:34:31.000Z | src/CameraControl/EDSDK/EdsdkSourceDeviceImpl.hpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 7 | 2019-02-21T06:07:09.000Z | 2022-01-01T10:00:50.000Z | src/CameraControl/EDSDK/EdsdkSourceDeviceImpl.hpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 6 | 2019-05-07T09:21:15.000Z | 2021-09-01T06:36:24.000Z | //
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2017 Michael Fink
//
/// \file EdsdkSourceDeviceImpl.hpp EDSDK - SourceDevice impl
//
#pragma once
// includes
#include "SourceDevice.hpp"
#include "EdsdkCameraFileSystemImpl.hpp"
#include "EdsdkRemoteReleaseControlImpl.hpp"
#include "EdsdkSh... | 27.86755 | 108 | 0.689401 | vividos |
c4b89cd754ed4e145b5eb1a88a5604a2934d4aac | 37,506 | cpp | C++ | src/method/method_schema_info.cpp | Yechan0815/cubrid | da09d9e60b583d0b7ce5f665429f397976728d99 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/method/method_schema_info.cpp | Yechan0815/cubrid | da09d9e60b583d0b7ce5f665429f397976728d99 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | src/method/method_schema_info.cpp | Yechan0815/cubrid | da09d9e60b583d0b7ce5f665429f397976728d99 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
*
* Copyright 2016 CUBRID 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 la... | 29.43956 | 174 | 0.661174 | Yechan0815 |
c4ba7b34dc3b3e66b9eec7f770a9565416ea41e9 | 474 | hpp | C++ | aech/src/resource_management/material_library.hpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | 4 | 2021-05-25T13:58:30.000Z | 2021-05-26T20:13:15.000Z | aech/src/resource_management/material_library.hpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | null | null | null | aech/src/resource_management/material_library.hpp | markomijolovic/aech | 6e2ea36146596dff6f92e451a598aab535b03d3c | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "material.hpp"
#include <unordered_map>
namespace aech::graphics {
namespace material_library {
inline std::unordered_map<std::string, material_t> default_materials{};
// creates default material objects
auto generate_default_materials() noexcept -> void;
// create a material from the given t... | 26.333333 | 83 | 0.776371 | markomijolovic |
c4bbda3e53670c898370397ab10975570b59dde3 | 89 | hpp | C++ | openexr-c/abigen/imf_deeptiledoutputpart.hpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 7 | 2021-06-04T20:59:16.000Z | 2022-02-11T01:00:42.000Z | openexr-c/abigen/imf_deeptiledoutputpart.hpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 35 | 2021-05-14T04:28:22.000Z | 2021-12-30T12:08:40.000Z | openexr-c/abigen/imf_deeptiledoutputpart.hpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 5 | 2021-05-15T04:02:56.000Z | 2021-07-02T05:38:01.000Z | #pragma once
#include <ostream>
void abi_gen_imf_deeptiledoutputpart(std::ostream& os);
| 17.8 | 55 | 0.797753 | vfx-rs |
c4bc3d397a4bb39caad3e5a4ec91485b71cad824 | 1,631 | hpp | C++ | source/hougfx/include/hou/gfx/gfx_exceptions.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/hougfx/include/hou/gfx/gfx_exceptions.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/hougfx/include/hou/gfx/gfx_exceptions.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#ifndef HOU_GFX_GFX_EXCEPTIONS_HPP
#define HOU_GFX_GFX_EXCEPTIONS_HPP
#include "hou/cor/exception.hpp"
#include "hou/gfx/gfx_config.hpp"
namespace hou
{
/** Font creation error.
*
* This exception is thrown when creati... | 21.746667 | 76 | 0.702636 | DavideCorradiDev |
c4bce915f809e6a7583322ea1475f8dd37c80c23 | 6,525 | cpp | C++ | src/Text/FontCache.cpp | tido64/rainbow | b54b84860979eca86e7d32ab61f92d9745fecfaa | [
"MIT"
] | 43 | 2019-03-13T16:35:09.000Z | 2021-11-14T20:35:05.000Z | src/Text/FontCache.cpp | tido64/rainbow | b54b84860979eca86e7d32ab61f92d9745fecfaa | [
"MIT"
] | 574 | 2019-02-27T22:21:55.000Z | 2021-09-06T18:46:59.000Z | src/Text/FontCache.cpp | tn0502/rainbow | b54b84860979eca86e7d32ab61f92d9745fecfaa | [
"MIT"
] | 7 | 2015-12-22T20:12:55.000Z | 2018-02-24T10:05:55.000Z | // Copyright (c) 2010-present Bifrost Entertainment AS and Tommy Nguyen
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)
#include "Text/FontCache.h"
#include "Common/Logging.h"
#include "Common/TypeCast.h"
#include "FileSystem/File.h"
#include "Gra... | 32.788945 | 80 | 0.6 | tido64 |
c4bf748586b523ee4d3eaa57641be1668e75e2b0 | 146,403 | cc | C++ | src/mavsdk_server/src/generated/camera_server/camera_server.pb.cc | hamishwillee/MAVSDK | e7f4e27bdd4442b91b623abf6ac86d1cbb188244 | [
"BSD-3-Clause"
] | 115 | 2018-07-11T00:18:12.000Z | 2019-06-05T22:10:23.000Z | src/mavsdk_server/src/generated/camera_server/camera_server.pb.cc | hamishwillee/MAVSDK | e7f4e27bdd4442b91b623abf6ac86d1cbb188244 | [
"BSD-3-Clause"
] | 228 | 2018-07-09T12:03:21.000Z | 2019-06-07T09:51:14.000Z | src/mavsdk_server/src/generated/camera_server/camera_server.pb.cc | hamishwillee/MAVSDK | e7f4e27bdd4442b91b623abf6ac86d1cbb188244 | [
"BSD-3-Clause"
] | 104 | 2018-07-19T09:45:16.000Z | 2019-06-05T18:40:35.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: camera_server/camera_server.proto
#include "camera_server/camera_server.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <goo... | 40.331405 | 192 | 0.744459 | hamishwillee |
c4c097d367481bfdb40a6fdfc522bb94a6b33db3 | 13,071 | cpp | C++ | data/627.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/627.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/627.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int AJ,vaBae
,//y38
uvxYkLF , x94ea
, u1, u5//D
,JtNU ,/*Q*/
UR , ajM0,
Fuz
/*bOM*/, A, otxhG,ny ,/*DFb*/wLF /*gk*/,V,Ol ,w2s, Tf
,/**/SI7,
Ae4Z
,kw,
l1, f,aVQR ,WwiI
, md, z3BV8p
,Ko9i//6b
,FBUU9 ,SI2Uo ,//te
CMoBR,B3Jr ,
WKM, GOTsm/**/, Ks2 ,R , //X
Bjd ,Tmd
/*D*/
,
RDy9d ,
Z2eEw
,pJ7
,
ULa3J... | 11.366087 | 66 | 0.461633 | TianyiChen |
c4c3479200066b5e42319d90e068c50b6b0cf80d | 14,588 | cpp | C++ | libs/fnd/cctype/test/src/unit_test_fnd_cctype_isgraph.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/cctype/test/src/unit_test_fnd_cctype_isgraph.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/cctype/test/src/unit_test_fnd_cctype_isgraph.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file unit_test_fnd_cctype_isgraph.cpp
*
* @brief isgraph のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/cctype/isgraph.hpp>
#include <bksge/fnd/config.hpp>
#include <gtest/gtest.h>
#include "constexpr_test.hpp"
namespace bksge_cctype_test
{
namespace isgraph_test
{
GTEST_TEST(CCTy... | 48.304636 | 85 | 0.751234 | myoukaku |
c4c386ed6ec04217de9acf9177b5619084e84b1f | 1,612 | cpp | C++ | BOJ_solve/16583.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | BOJ_solve/16583.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | BOJ_solve/16583.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 5e18;
const long long ... | 24.424242 | 73 | 0.519231 | python-programmer1512 |
c4c42acc715932ef9b303cad4b0597f08c75f643 | 1,142 | cpp | C++ | Stack/Stack_01_IMPLEMENT_USING_ARRAY.cpp | compl3xX/ROAD-TO-DSA | 2261c112135a51d9d88c4b57e6f062f6b32550a7 | [
"MIT"
] | null | null | null | Stack/Stack_01_IMPLEMENT_USING_ARRAY.cpp | compl3xX/ROAD-TO-DSA | 2261c112135a51d9d88c4b57e6f062f6b32550a7 | [
"MIT"
] | null | null | null | Stack/Stack_01_IMPLEMENT_USING_ARRAY.cpp | compl3xX/ROAD-TO-DSA | 2261c112135a51d9d88c4b57e6f062f6b32550a7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define MAX 1000
class Stack
{
int top;
public:
int a[MAX];
Stack() { top = -1; }
void push(int x);
int pop();
int peek();
bool isempty();
};
void Stack::push(int x)
{
if (top >= (MAX - 1))
{
cout << "Stack Ove... | 15.226667 | 52 | 0.408056 | compl3xX |
c4c4e01696c18cdeaa7407ac894763a2ce5802da | 3,552 | hpp | C++ | apps/Cocles/old_src/ledger/internal/Database.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 1 | 2022-02-11T21:25:53.000Z | 2022-02-11T21:25:53.000Z | apps/Cocles/old_src/ledger/internal/Database.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 15 | 2021-08-21T13:41:29.000Z | 2022-03-08T14:13:43.000Z | apps/Cocles/old_src/ledger/internal/Database.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | null | null | null | // License: The Unlicense (https://unlicense.org)
#ifndef COCLES_LEDGER_INTERNAL_DATABASE_HPP
#define COCLES_LEDGER_INTERNAL_DATABASE_HPP
#include "AccountEntry.hpp"
#include "AccountTypeEntry.hpp"
#include "AdjustmentEntry.hpp"
#include "FilteredTableView.hpp"
#include "RecordKeeper.hpp"
#include "TransactionEntry.hp... | 33.509434 | 99 | 0.798142 | tybl |
c4c5967a1fdc234c240577ee2dc274dfb50c5df2 | 9,922 | cpp | C++ | OcularCore/src/Scene/Routines/FreeFlyController.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 8 | 2017-01-27T01:06:06.000Z | 2020-11-05T20:23:19.000Z | OcularCore/src/Scene/Routines/FreeFlyController.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 39 | 2016-06-03T02:00:36.000Z | 2017-03-19T17:47:39.000Z | OcularCore/src/Scene/Routines/FreeFlyController.cpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 4 | 2019-05-22T09:13:36.000Z | 2020-12-01T03:17:45.000Z | /**
* Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.com)
*
* 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 requir... | 31.398734 | 159 | 0.395586 | ssell |
c4cc1dc3cdae8ced08454b7bd6976ab3a3f096e7 | 809 | cpp | C++ | Documents/RacimoAire/Libreria/Prueba3PMS/mainwindow.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | Documents/RacimoAire/Libreria/Prueba3PMS/mainwindow.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | Documents/RacimoAire/Libreria/Prueba3PMS/mainwindow.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#define GPIOSet 16
#define GPIOReSet 12
#define GPIORX 26
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
GPIO = new Crpigpio;
PMSSensor = new PMS(GPIO,GPIOSet, GPIOReSet, GPIORX);
conne... | 23.794118 | 119 | 0.677379 | JoseSalamancaCoy |
c4cdce569be7011bc86b2d30d36a72431a396384 | 2,567 | cpp | C++ | src/ui/gtk3/window/FileSelectWindow.cpp | jmdaemon/oggex | ae6153c021cbbfb784ffee5da4b1769d3fbf5617 | [
"MIT"
] | null | null | null | src/ui/gtk3/window/FileSelectWindow.cpp | jmdaemon/oggex | ae6153c021cbbfb784ffee5da4b1769d3fbf5617 | [
"MIT"
] | null | null | null | src/ui/gtk3/window/FileSelectWindow.cpp | jmdaemon/oggex | ae6153c021cbbfb784ffee5da4b1769d3fbf5617 | [
"MIT"
] | null | null | null | #include "FileSelectWindow.h"
#include <iostream>
#include <exception>
FileSelectWindow::FileSelectWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& refBuilder)
: Gtk::ApplicationWindow(cobject), m_refBuilder(refBuilder) {
}
//: Gtk::ApplicationWindow(cobject), m_refBuilder(refBuilder), m_Button_F... | 29.848837 | 127 | 0.643553 | jmdaemon |
c4d16931a4b2c2f323dd4905eb1e62c6304aefc9 | 2,395 | cpp | C++ | BOJ/06000~06999/6000~6099/6091.cpp | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/06000~06999/6000~6099/6091.cpp | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/06000~06999/6000~6099/6091.cpp | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define for1(s,n) for(int i = s; i < n; i++)
#define for1j(s,n) for(int j = s; j < n; j++)
#define foreach(k) for(auto i : k)
#define foreachj(k) for(auto j : k)
#define pb(a) push_back(a)
#define sz(a) a.size()
#define INF (ll)1e18
#define MAX 1100
using namespace std;
typedef unsigned long ... | 22.383178 | 72 | 0.460125 | shinkeonkim |
c4d46b3df02f299b3d31c1640d207587e516ceb8 | 6,094 | cpp | C++ | examples/imgui/main.cpp | jayrulez/LLGI | a0836e6db18e444d4534deb8eedb18263439fc4c | [
"Zlib"
] | 166 | 2019-06-19T19:51:45.000Z | 2022-03-24T13:03:29.000Z | examples/imgui/main.cpp | jayrulez/LLGI | a0836e6db18e444d4534deb8eedb18263439fc4c | [
"Zlib"
] | 312 | 2019-06-13T19:39:25.000Z | 2022-03-02T18:37:22.000Z | examples/imgui/main.cpp | jayrulez/LLGI | a0836e6db18e444d4534deb8eedb18263439fc4c | [
"Zlib"
] | 23 | 2019-10-04T11:02:21.000Z | 2021-12-24T16:34:52.000Z |
#ifdef _WIN32
#define GLFW_EXPOSE_NATIVE_WIN32 1
#endif
#ifdef __APPLE__
#define GLFW_EXPOSE_NATIVE_COCOA 1
#endif
#ifdef __linux__
#define GLFW_EXPOSE_NATIVE_X11 1
#undef Always
#endif
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
#ifdef __linux__
#undef Always
#endif
#include <LLGI.CommandList.h>
#inclu... | 21.233449 | 131 | 0.698392 | jayrulez |
c4d55018ad52bb8e87654d41fe73702b41dde485 | 717 | cpp | C++ | src/Utility.cpp | kmc7468/IceScript | b11ea9dce5507949badfaeffa337c780cdf6ec5e | [
"MIT"
] | null | null | null | src/Utility.cpp | kmc7468/IceScript | b11ea9dce5507949badfaeffa337c780cdf6ec5e | [
"MIT"
] | null | null | null | src/Utility.cpp | kmc7468/IceScript | b11ea9dce5507949badfaeffa337c780cdf6ec5e | [
"MIT"
] | null | null | null | #include <ice/Utility.hpp>
namespace ice {
std::string Format(const std::string& format, const std::vector<std::string>& arguments) {
std::string result;
std::size_t begin = 0;
std::size_t percent;
std::size_t index = 0;
while ((percent = format.find('%', begin)) != std::string::npos) {
result.insert(r... | 25.607143 | 91 | 0.606695 | kmc7468 |
c4d5a0b731a7a1ba3e6610fa55646d0dfe4163a8 | 8,275 | cpp | C++ | Iron/opening/macroitem.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | Iron/opening/macroitem.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | Iron/opening/macroitem.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | #include "macroitem.h"
#include <regex>
namespace iron
{
int GetIntFromString(const string & s)
{
stringstream ss(s);
int a = 0;
ss >> a;
return a;
}
// Make a Type string look pretty for the UI
string NiceTypeName(const string & s)
{
string inputName(s);
replace(inputName.begin(), inputName.end(),... | 22.364865 | 138 | 0.659698 | biug |
c4d971e6fb2c5248bb1da7022e68c69e5c2cf5b9 | 2,378 | hpp | C++ | boost/actor/policy/sequential_invoke.hpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | 2 | 2015-03-20T21:11:16.000Z | 2020-01-20T08:05:41.000Z | boost/actor/policy/sequential_invoke.hpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | null | null | null | boost/actor/policy/sequential_invoke.hpp | syoummer/boost.actor | 58f35499bac8871b8f5b0b024246a467b63c6fb0 | [
"BSL-1.0"
] | null | null | null | /******************************************************************************\
* *
* ____ _ _ _ *
* | __ ) ___ ___ ___| |_ / \ ___| |_ ___ _ __ *... | 36.584615 | 80 | 0.433558 | syoummer |
c4dbb710846d892b5562fc123745778edd9f3e45 | 2,055 | cc | C++ | tree/1609.cc | MingfeiPan/leetcode | 55dc878cfb7b15a34252410ae7420a656da604f8 | [
"Apache-2.0"
] | null | null | null | tree/1609.cc | MingfeiPan/leetcode | 55dc878cfb7b15a34252410ae7420a656da604f8 | [
"Apache-2.0"
] | null | null | null | tree/1609.cc | MingfeiPan/leetcode | 55dc878cfb7b15a34252410ae7420a656da604f8 | [
"Apache-2.0"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 31.615385 | 93 | 0.373723 | MingfeiPan |
c4dd6a879e608c28f2d3f92a4b6213cee9eef290 | 1,577 | cpp | C++ | tutorial_publisher/src/talker.cpp | ryo4432/ros2_tutorial_collection | 4e7ed30e35009f07bd219c762d68b4b8022d4d9d | [
"Apache-2.0"
] | null | null | null | tutorial_publisher/src/talker.cpp | ryo4432/ros2_tutorial_collection | 4e7ed30e35009f07bd219c762d68b4b8022d4d9d | [
"Apache-2.0"
] | null | null | null | tutorial_publisher/src/talker.cpp | ryo4432/ros2_tutorial_collection | 4e7ed30e35009f07bd219c762d68b4b8022d4d9d | [
"Apache-2.0"
] | null | null | null | /*
# Copyright 2019 Open Source Robotics Foundation, 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 ... | 26.728814 | 74 | 0.700063 | ryo4432 |
c4dec47b393ea9fc4c51411e2fe9a8ac4f702c79 | 2,596 | hpp | C++ | include/drag/detail/utils.hpp | bigno78/drag | a7fc1ff77a0e743bbe9a9e72a310a015f6f3b098 | [
"BSD-3-Clause"
] | 3 | 2020-07-29T19:38:51.000Z | 2022-01-28T05:13:55.000Z | include/drag/detail/utils.hpp | bigno78/drag | a7fc1ff77a0e743bbe9a9e72a310a015f6f3b098 | [
"BSD-3-Clause"
] | 2 | 2020-09-05T19:59:15.000Z | 2021-12-05T20:50:41.000Z | include/drag/detail/utils.hpp | bigno78/drag | a7fc1ff77a0e743bbe9a9e72a310a015f6f3b098 | [
"BSD-3-Clause"
] | 2 | 2020-07-29T19:44:52.000Z | 2022-01-28T05:13:59.000Z | #pragma once
#include <string>
#include <vector>
#include <drag/vec2.hpp>
#include <drag/types.hpp>
namespace drag {
template <typename T>
T sgn(T val) { return ( T(0) < val ) - ( val < T(0) ); }
template<typename T>
struct range {
T r_start;
T r_end;
int step;
range(T start, T end, int step = ... | 26.222222 | 105 | 0.547766 | bigno78 |
c4df2d75c14d83b0119c74cd216535da3a4d9c9e | 3,001 | hpp | C++ | masterui/display.hpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-09-19T16:37:59.000Z | 2017-09-19T16:37:59.000Z | masterui/display.hpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | masterui/display.hpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | //
// $Id$
//
// Copyright (C) 2007 Turner Technolgoies Inc. http://www.turner.ca
//
// 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... | 29.712871 | 71 | 0.626458 | rickfoosusa |
c4df6e50171420d497d76d5afe8636009394b043 | 3,393 | cpp | C++ | mini/tor/circuit_node_crypto_state.cpp | geralltf/mini-tor | 61d58749431fba970e19e0d35a53811956c69b16 | [
"MIT"
] | 380 | 2016-07-20T10:22:37.000Z | 2022-03-30T08:47:44.000Z | mini/tor/circuit_node_crypto_state.cpp | geralltf/mini-tor | 61d58749431fba970e19e0d35a53811956c69b16 | [
"MIT"
] | 24 | 2016-08-13T12:56:03.000Z | 2021-05-26T01:59:17.000Z | mini/tor/circuit_node_crypto_state.cpp | geralltf/mini-tor | 61d58749431fba970e19e0d35a53811956c69b16 | [
"MIT"
] | 105 | 2016-07-20T14:34:52.000Z | 2022-02-17T13:31:25.000Z | #include "circuit_node_crypto_state.h"
#include "relay_cell.h"
#include <mini/stack_buffer.h>
#include <mini/io/memory_stream.h>
#include <mini/io/stream_wrapper.h>
#include <mini/logger.h>
namespace mini::tor {
circuit_node_crypto_state::circuit_node_crypto_state(
const byte_buffer_ref key_material
)
{
io::m... | 28.041322 | 101 | 0.7486 | geralltf |
c4e04900cf25da6cc065194c8b82d97bfd57337c | 1,925 | cpp | C++ | src/private/PZGBeaconData.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | null | null | null | src/private/PZGBeaconData.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | null | null | null | src/private/PZGBeaconData.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | null | null | null | #include "zg/private/PZGBeaconData.h"
namespace zg_private
{
void PZGBeaconData :: Flatten(uint8 *buffer) const
{
const uint32 numItems = _dbis.GetNumItems();
const uint32 dbiFlatSize = PZGDatabaseStateInfo::FlattenedSize();
muscleCopyOut(buffer, B_HOST_TO_LENDIAN_INT32(numItems)); buffer += sizeof(uint3... | 26.013514 | 129 | 0.686753 | ruurdadema |
c4e1c2f5ec6fb5b8c322d1497c5992c18e382612 | 402 | cpp | C++ | AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/H.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/H.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 1 Training Contests/Contest #6 (Online)/H.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://codeforces.com/group/aDFQm4ed6d/contest/274872/problem/H
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
int main ()
{
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
ll k, n, s, p;
cin >> k ... | 21.157895 | 66 | 0.577114 | MaGnsio |
c4e3b64788f0256a3afac60415999e1650d2725b | 1,191 | cpp | C++ | 1142/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1142/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1142/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
long long gcd(long long a, long long b) {
if (b == 0) {
return a;
}
return gcd(b, a % b);
}
void solve(long long a, long long b, long long len, long long &mn, long long &mx) {
long long step;
if (a > b) {
step = len - (... | 19.85 | 93 | 0.455919 | vladshablinsky |
c4e625a98b552cf6e92bf5fc7f2d46aed001c7a0 | 520 | cpp | C++ | source/ItemShotgun.cpp | fgrehm/pucrs-doom2d | edea7d5d762f427a5a8c944d36819009eb514429 | [
"MIT"
] | 1 | 2016-08-15T16:11:40.000Z | 2016-08-15T16:11:40.000Z | source/ItemShotgun.cpp | fgrehm/pucrs-doom2d | edea7d5d762f427a5a8c944d36819009eb514429 | [
"MIT"
] | null | null | null | source/ItemShotgun.cpp | fgrehm/pucrs-doom2d | edea7d5d762f427a5a8c944d36819009eb514429 | [
"MIT"
] | null | null | null |
#include "ItemShotgun.h"
ItemShotgun::ItemShotgun(int _x, int _y):
x(_x),
y(_y)
{
sprite = new cgf::Sprite();
sprite->load("data/img/shotgun.png");
sprite->scale(1.2, 1.2);
sf::Vector2f vpos = sf::Vector2f();
vpos.x = x;
vpos.y = y;
sprite->setPosition(vpos);
}
ItemShotgun::~ItemShotgun... | 16.25 | 41 | 0.6 | fgrehm |
c4eabc24d27ea35b73a8be559fea0a51971629d2 | 1,327 | cc | C++ | src/dictionaries/node_webrtc/rtc_offer_options.cc | elofun/node-webrtc | be63c8c007402c25962df9e30c9813ba70b8a17b | [
"Apache-2.0"
] | 1,302 | 2018-11-26T03:29:51.000Z | 2022-03-31T23:38:34.000Z | src/dictionaries/node_webrtc/rtc_offer_options.cc | elofun/node-webrtc | be63c8c007402c25962df9e30c9813ba70b8a17b | [
"Apache-2.0"
] | 311 | 2018-11-26T14:22:19.000Z | 2022-03-28T09:47:38.000Z | src/dictionaries/node_webrtc/rtc_offer_options.cc | elofun/node-webrtc | be63c8c007402c25962df9e30c9813ba70b8a17b | [
"Apache-2.0"
] | 233 | 2018-11-26T18:08:11.000Z | 2022-03-30T01:29:50.000Z | #include "src/dictionaries/node_webrtc/rtc_offer_options.h"
#include "src/functional/maybe.h"
#include "src/functional/validation.h"
namespace node_webrtc {
#define RTC_OFFER_OPTIONS_FN CreateRTCOfferOptions
static Validation<RTC_OFFER_OPTIONS> RTC_OFFER_OPTIONS_FN(
const bool voiceActivityDetection,
const ... | 36.861111 | 90 | 0.788244 | elofun |
c4ebcceb99ea1493cdca6d9dfd62fecda016417a | 6,732 | cpp | C++ | CQGLFlocking/src/CQGLFlocking.cpp | colinw7/CQDemos | a66452e0f963613ae351fea4d078552c19aa002b | [
"MIT"
] | 2 | 2019-12-22T09:49:25.000Z | 2021-12-23T02:22:34.000Z | CQGLFlocking/src/CQGLFlocking.cpp | colinw7/CQDemos | a66452e0f963613ae351fea4d078552c19aa002b | [
"MIT"
] | null | null | null | CQGLFlocking/src/CQGLFlocking.cpp | colinw7/CQDemos | a66452e0f963613ae351fea4d078552c19aa002b | [
"MIT"
] | 1 | 2019-04-01T13:35:49.000Z | 2019-04-01T13:35:49.000Z | #include <CQGLFlocking.h>
#include <CFlocking.h>
#include <CQMenu.h>
#include <CQGLControl.h>
#include <CGLTexture.h>
#include <QApplication>
#include <QTimer>
#include <QVBoxLayout>
#include "images/bird1.xpm"
#include "images/bird2.xpm"
#include "images/bird3.xpm"
#include "images/bird4.xpm"
int
main(int argc, cha... | 21.646302 | 93 | 0.670826 | colinw7 |
c4f0c2c7196823dc9b7e4df7ce7ecaa079388207 | 4,070 | hpp | C++ | krest/core/AbstractDataSink.hpp | mwoehlke-kitware/krest | fe83740bd685507e358c4cdfb2438b3e3e70266f | [
"BSD-3-Clause"
] | 1 | 2021-04-06T16:07:59.000Z | 2021-04-06T16:07:59.000Z | krest/core/AbstractDataSink.hpp | mwoehlke-kitware/krest | fe83740bd685507e358c4cdfb2438b3e3e70266f | [
"BSD-3-Clause"
] | 1 | 2021-01-13T16:49:46.000Z | 2021-01-13T16:49:46.000Z | krest/core/AbstractDataSink.hpp | mwoehlke-kitware/krest | fe83740bd685507e358c4cdfb2438b3e3e70266f | [
"BSD-3-Clause"
] | 2 | 2021-01-19T15:14:50.000Z | 2021-01-19T15:16:16.000Z | /* This file is part of Krest, and is distributed under the OSI-approved BSD
* 3-Clause License. See top-level LICENSE file or
* https://github.com/Kitware/krest/blob/master/LICENSE for details. */
#ifndef krest_core_AbstractDataSink_hpp
#define krest_core_AbstractDataSink_hpp
#include <krest/core/Export.h>
#inclu... | 37.685185 | 79 | 0.696314 | mwoehlke-kitware |
c4f555afb2e4dd6f69ddfbeee7a363d0ec688111 | 16,222 | cpp | C++ | install/halodi_msgs/include/halodi_msgs/msg/feedback_parameters3_d__type_support.cpp | AHGOverbeek/halodi-messages | 4286676cb85cc4d5b2684523c1482afc9eef6ec9 | [
"Apache-2.0"
] | null | null | null | install/halodi_msgs/include/halodi_msgs/msg/feedback_parameters3_d__type_support.cpp | AHGOverbeek/halodi-messages | 4286676cb85cc4d5b2684523c1482afc9eef6ec9 | [
"Apache-2.0"
] | 3 | 2020-11-05T14:53:41.000Z | 2021-04-27T13:40:47.000Z | install/halodi_msgs/include/halodi_msgs/msg/feedback_parameters3_d__type_support.cpp | AHGOverbeek/halodi-messages | 4286676cb85cc4d5b2684523c1482afc9eef6ec9 | [
"Apache-2.0"
] | 1 | 2021-10-05T14:08:08.000Z | 2021-10-05T14:08:08.000Z | // generated from rosidl_typesupport_introspection_cpp/resource/idl__type_support.cpp.em
// with input from halodi_msgs:msg/FeedbackParameters3D.idl
// generated code does not contain a copyright notice
#include "array"
#include "cstddef"
#include "string"
#include "vector"
#include "rosidl_generator_c/message_type_su... | 38.901679 | 134 | 0.774011 | AHGOverbeek |
c4f5838d7ff632354152537fc38e2044a64591d6 | 418 | cpp | C++ | Challenges - Sorting & Searching/Winning CB Scholarship.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | 3 | 2019-10-04T13:24:16.000Z | 2020-01-22T05:07:02.000Z | Challenges - Sorting & Searching/Winning CB Scholarship.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | null | null | null | Challenges - Sorting & Searching/Winning CB Scholarship.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
ll N, M, X, Y, r_cpn, c_cpn, ans = INT_MIN;
cin >> N >> M >> X >> Y;
ll st = 1, ed = N;
ll mid = (st+ed)/2;
while(st <= ed){
mid = (st+ed)/2;
r_cpn = mid*X;
c_cpn = M + (N-mid)*Y;
if(r_cpn > c_cpn)
ed = mid-1;
else... | 14.413793 | 44 | 0.502392 | helewrer3 |
c4f71328bc68fc79f731aa6cb23abc7869f33e4d | 400 | cpp | C++ | practice/algorithms/birthday-cake-candles.cpp | geezardo/hackerrank | c3dd829ba803bd21ec3f432f419e40415cf6a6a8 | [
"MIT"
] | null | null | null | practice/algorithms/birthday-cake-candles.cpp | geezardo/hackerrank | c3dd829ba803bd21ec3f432f419e40415cf6a6a8 | [
"MIT"
] | null | null | null | practice/algorithms/birthday-cake-candles.cpp | geezardo/hackerrank | c3dd829ba803bd21ec3f432f419e40415cf6a6a8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
vector<int> a (n);
for (int i = 0; i < n; i++) cin >> a[i];
sort(a.begin(), a.end());
auto lb = lower_bound(a.begin(), a.end(), a[n - 1]);
int sum = 0;
for (au... | 14.814815 | 54 | 0.5175 | geezardo |
c4f73ea2e0c7a774f1a8ce6f901f00efd9361853 | 2,146 | cpp | C++ | src/widgets/outlineprovider.cpp | l1422586361/vnote | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | 8,054 | 2016-10-19T14:59:52.000Z | 2020-10-11T06:21:15.000Z | src/widgets/outlineprovider.cpp | micalstanley/vnote-1 | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | 1,491 | 2017-03-06T02:31:32.000Z | 2020-10-11T02:14:32.000Z | src/widgets/outlineprovider.cpp | micalstanley/vnote-1 | 606dcef16f882350cc2be2fd108625894d13143b | [
"MIT"
] | 986 | 2017-02-14T05:45:13.000Z | 2020-10-10T07:42:31.000Z | #include "outlineprovider.h"
using namespace vnotex;
void Outline::clear()
{
m_headings.clear();
}
bool Outline::operator==(const Outline &p_a) const
{
return m_headings == p_a.m_headings;
}
bool Outline::isEmpty() const
{
return m_headings.isEmpty();
}
Outline::Heading::Heading(const QString &p_name, ... | 20.634615 | 105 | 0.632805 | l1422586361 |
c4fbc70e4741770df8cd09eb41601131ae677538 | 3,090 | hpp | C++ | include/SSVStart/Assets/Internal/Loader.hpp | vittorioromeo/SSVStart | ba604007e54462df30346d9c0545ba3274850f49 | [
"AFL-3.0"
] | 11 | 2015-01-27T09:45:11.000Z | 2017-10-05T17:14:40.000Z | include/SSVStart/Assets/Internal/Loader.hpp | vittorioromeo/SSVStart | ba604007e54462df30346d9c0545ba3274850f49 | [
"AFL-3.0"
] | 2 | 2019-12-16T00:24:29.000Z | 2019-12-17T13:57:42.000Z | include/SSVStart/Assets/Internal/Loader.hpp | vittorioromeo/SSVStart | ba604007e54462df30346d9c0545ba3274850f49 | [
"AFL-3.0"
] | 7 | 2015-01-29T17:05:52.000Z | 2020-08-12T22:59:47.000Z | // Copyright (c) 2013-2015 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
#pragma once
#include "SSVStart/BitmapText/BitmapText.hpp"
#include "SSVStart/Tileset/Tileset.hpp"
#include "SSVStart/Assets/Internal/Helper.hpp"
#include <SSVUtils/C... | 23.769231 | 73 | 0.615858 | vittorioromeo |
c4fe06d0e89af85642f74102c029023403bba445 | 917 | hpp | C++ | src/Jogo/Resources/TexturesHolder.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/Resources/TexturesHolder.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/Resources/TexturesHolder.hpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | //
// TexturesHolder.hpp
// Jogo-SFML
//
// Created by Matheus Kunnen Ledesma on 10/6/19.
// Copyright © 2019 Matheus Kunnen Ledesma. All rights reserved.
//
#ifndef TexturesHolder_hpp
#define TexturesHolder_hpp
#include "../base_includes.hpp"
#include "ResourcesHolder.hpp"
namespace Game { namespace Resources{
... | 26.2 | 196 | 0.730643 | MatheusKunnen |
c4fef3501d1e79063d25b709e2a8c0c0df6017e9 | 289 | cpp | C++ | Dataset/Leetcode/test/112/795.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/112/795.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/112/795.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
bool XXX(TreeNode* root, int sum) {
if(root==nullptr) return false;//空树
sum-=root->val;
if(root->left==nullptr&&root->right==nullptr) //叶节点
return sum==0;
return XXX(root->left,sum)||XXX(root->right,sum);
}
};
| 24.083333 | 59 | 0.557093 | kkcookies99 |
f2021f7c98f0cb0d818ce3b84d16ae26332d5d05 | 1,029 | cpp | C++ | Classes/Character/Traps/FallingTrap2.cpp | HoangTrongMinhDuc/JMOK-Game | bd06a8dc166805de0709c61b4acdfcd89b9b3ff8 | [
"MIT"
] | 1 | 2019-07-11T08:06:06.000Z | 2019-07-11T08:06:06.000Z | Classes/Character/Traps/FallingTrap2.cpp | HoangTrongMinhDuc/JOMK-Game | bd06a8dc166805de0709c61b4acdfcd89b9b3ff8 | [
"MIT"
] | null | null | null | Classes/Character/Traps/FallingTrap2.cpp | HoangTrongMinhDuc/JOMK-Game | bd06a8dc166805de0709c61b4acdfcd89b9b3ff8 | [
"MIT"
] | 1 | 2021-09-13T12:00:12.000Z | 2021-09-13T12:00:12.000Z | #include "FallingTrap2.h"
#include "Helper\Helper.h"
FallingTrap2::FallingTrap2()
{
m_sprite = NULL;
m_isFall = false;
}
void FallingTrap2::update(float deltaTime)
{
Trap::update(deltaTime);
if (m_isFall)
m_physicsBody->SetType(b2_dynamicBody);
}
void FallingTrap2::collision(LivingObject *lObj, void *data)
{
... | 22.866667 | 117 | 0.677357 | HoangTrongMinhDuc |
f2035d55167952bad1b2980f66af46a14e20d846 | 268 | cpp | C++ | lldb/packages/Python/lldbsuite/test/commands/process/launch/main.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | packages/Python/lldbsuite/test/functionalities/process_launch/main.cpp | DalavanCloud/lldb | e913eaf2468290fb94c767d474d611b41a84dd69 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | packages/Python/lldbsuite/test/functionalities/process_launch/main.cpp | DalavanCloud/lldb | e913eaf2468290fb94c767d474d611b41a84dd69 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | #include <stdio.h>
#include <stdlib.h>
int
main (int argc, char **argv)
{
char buffer[1024];
fgets (buffer, sizeof (buffer), stdin);
fprintf (stdout, "%s", buffer);
fgets (buffer, sizeof (buffer), stdin);
fprintf (stderr, "%s", buffer);
return 0;
}
| 14.888889 | 41 | 0.619403 | medismailben |
f203968e1899e726d69b2e8a57e506a629b2fe7c | 712 | cpp | C++ | Week 6/Lab/Old/Week 6 Sample Programs/Pr9-8.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | Week 6/Lab/Old/Week 6 Sample Programs/Pr9-8.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | Week 6/Lab/Old/Week 6 Sample Programs/Pr9-8.cpp | sugamkarki/NAMI-Year-II-Term-I-Software_Engineering | 39182816b670dcb75ec322e24b346a4cfeb80be0 | [
"Apache-2.0"
] | null | null | null | // This program uses the address of each element in the array.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
const int NUM_COINS = 5;
double coins[NUM_COINS] = {0.05, 0.1, 0.25, 0.5, 1.0};
double *doublePtr; // Pointer to a double
int count; // Array index
... | 27.384615 | 63 | 0.592697 | sugamkarki |
f206c47f392e55176ed6e6d6daa1da23e72fe2ee | 67,074 | cpp | C++ | Object_Recognition/src/pnp/signature.cpp | EricCJoyce/The-Recognitions | 05aafbcd124988d58b1cc60070b9ad17d49322d7 | [
"MIT"
] | 1 | 2021-06-29T20:53:18.000Z | 2021-06-29T20:53:18.000Z | Object_Recognition/src/pnp/signature.cpp | EricCJoyce/The-Recognitions | 05aafbcd124988d58b1cc60070b9ad17d49322d7 | [
"MIT"
] | null | null | null | Object_Recognition/src/pnp/signature.cpp | EricCJoyce/The-Recognitions | 05aafbcd124988d58b1cc60070b9ad17d49322d7 | [
"MIT"
] | 1 | 2021-09-26T03:14:49.000Z | 2021-09-26T03:14:49.000Z | #ifndef __SIGNATURE_CPP
#define __SIGNATURE_CPP
#include "signature.h"
/**************************************************************************************************
Constructors */
/* Signature constructor, no data given */
Signature::Signature()
{
unsigned int i;
#ifdef __SIGNATURE_DEBUG
cout... | 36.793198 | 141 | 0.451606 | EricCJoyce |
f20a3e12339a04abdf34db7fda92ed68117f4f5e | 1,331 | cpp | C++ | C_CPP/final/KMP.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | C_CPP/final/KMP.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | C_CPP/final/KMP.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | #include <iostream>
using namespace std;
const int maxn = 1000005;
char s[maxn];
char p[maxn];
int nex[maxn];
int pl, ml;
int ans = 0;
void init()
{
pl = 0;
ml = 0;
int i = 0, j = 0;
while (s[i] != '\0')
s[i++] = '\0';
while (p[j] != '\0')
p[j++] = '\0';
}
// 获取窗口滑动位置
void getnex()
{
nex[0] = -1;
... | 13.581633 | 38 | 0.352367 | dengchongsen |
f2102881aec08af853984f88ca90789b059c05e0 | 21,007 | cpp | C++ | source/game_state.cpp | Craig-J/RhythMIR | 37165688b5bf925a1570ed1daf6e1b21892456b2 | [
"MIT"
] | null | null | null | source/game_state.cpp | Craig-J/RhythMIR | 37165688b5bf925a1570ed1daf6e1b21892456b2 | [
"MIT"
] | 3 | 2016-07-17T15:26:12.000Z | 2016-07-17T15:32:38.000Z | source/game_state.cpp | Craig-J/RhythMIR | 37165688b5bf925a1570ed1daf6e1b21892456b2 | [
"MIT"
] | null | null | null | #include "game_state.h"
#include "app_state_machine.h"
#include "menu_state.h"
#include <SFML_Extensions/global.h>
namespace
{
sf::Vector2f window_centre;
sf::Vector2f window_size;
float path_start_y;
float path_end_y;
float path_x;
float path_x_offset;
float note_length;
bool interpolate_beats;
sf::Time ... | 26.794643 | 205 | 0.674347 | Craig-J |
f2121a9ace2020ef7de22565827ac127ac416f18 | 2,763 | cc | C++ | src/carnot/exec/ml/kmeans_test.cc | hangqiu/pixie | 1dd4af47d40ff856c4d52a1d6de81f78a76ff31e | [
"Apache-2.0"
] | 1,821 | 2020-04-08T00:45:27.000Z | 2021-09-01T14:56:25.000Z | src/carnot/exec/ml/kmeans_test.cc | hangqiu/pixie | 1dd4af47d40ff856c4d52a1d6de81f78a76ff31e | [
"Apache-2.0"
] | 142 | 2020-04-09T06:23:46.000Z | 2021-08-24T06:02:12.000Z | src/carnot/exec/ml/kmeans_test.cc | hangqiu/pixie | 1dd4af47d40ff856c4d52a1d6de81f78a76ff31e | [
"Apache-2.0"
] | 105 | 2021-09-08T10:26:50.000Z | 2022-03-29T09:13:36.000Z | /*
* Copyright 2018- The Pixie Authors.
*
* 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 ag... | 26.825243 | 91 | 0.702135 | hangqiu |
f21222388a6463740758275ff3ae120e631f9a15 | 638 | cpp | C++ | src/RE/BSLightingShaderMaterialFacegenTint.cpp | powerof3/CommonLibVR | c84cd2c63ccba0cc88a212fe9cf86b5470b10a4f | [
"MIT"
] | null | null | null | src/RE/BSLightingShaderMaterialFacegenTint.cpp | powerof3/CommonLibVR | c84cd2c63ccba0cc88a212fe9cf86b5470b10a4f | [
"MIT"
] | null | null | null | src/RE/BSLightingShaderMaterialFacegenTint.cpp | powerof3/CommonLibVR | c84cd2c63ccba0cc88a212fe9cf86b5470b10a4f | [
"MIT"
] | null | null | null | #include "RE/BSLightingShaderMaterialFacegenTint.h"
#include "RE/Offsets.h"
#include "REL/Relocation.h"
namespace RE
{
BSLightingShaderMaterialFacegenTint* BSLightingShaderMaterialFacegenTint::CreateMaterial()
{
auto material = malloc<BSLightingShaderMaterialFacegenTint>();
material->ctor();
material->tintCo... | 25.52 | 91 | 0.783699 | powerof3 |
f212eb472a77987f912edc19f46952d9c5e71b96 | 1,979 | cpp | C++ | src/cookie.cpp | kamchatka-volcano/hot_teacup | ef894b6f333364f9768f1d2477580604affada87 | [
"MS-PL"
] | null | null | null | src/cookie.cpp | kamchatka-volcano/hot_teacup | ef894b6f333364f9768f1d2477580604affada87 | [
"MS-PL"
] | null | null | null | src/cookie.cpp | kamchatka-volcano/hot_teacup | ef894b6f333364f9768f1d2477580604affada87 | [
"MS-PL"
] | null | null | null | #include <hot_teacup/cookie.h>
#include <sfun/string_utils.h>
namespace http{
namespace str = sfun::string_utils;
Cookie::Cookie(std::string name,
std::string value,
int maxAgeSec,
std::string domain,
std::string path)
: header_("Set-Cookie", "")
, n... | 22.488636 | 67 | 0.605356 | kamchatka-volcano |
f215ae93708125a7a55390132439a0ccd9c084e0 | 2,033 | cpp | C++ | src/classad_support/coll-serv-inst.cpp | sridish123/htcondor | 481d975fd8602242f6a052aab04e20b0b560db89 | [
"Apache-2.0"
] | 217 | 2015-01-08T04:49:42.000Z | 2022-03-27T10:11:58.000Z | src/classad_support/coll-serv-inst.cpp | sridish123/htcondor | 481d975fd8602242f6a052aab04e20b0b560db89 | [
"Apache-2.0"
] | 185 | 2015-05-03T13:26:31.000Z | 2022-03-28T03:08:59.000Z | src/classad_support/coll-serv-inst.cpp | sridish123/htcondor | 481d975fd8602242f6a052aab04e20b0b560db89 | [
"Apache-2.0"
] | 133 | 2015-02-11T09:17:45.000Z | 2022-03-31T07:28:54.000Z | /***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... | 33.327869 | 75 | 0.702902 | sridish123 |
f2167268765ffe76e761cc6761bc607ce690351d | 7,801 | cpp | C++ | src/nnfusion/core/operators/generic_op/generic_op_define/MaxPool.cpp | nox-410/nnfusion | 0777e297299c4e7a5071dc2ee97b87adcd22840e | [
"MIT"
] | 639 | 2020-09-05T10:00:59.000Z | 2022-03-30T08:42:39.000Z | src/nnfusion/core/operators/generic_op/generic_op_define/MaxPool.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 252 | 2020-09-09T05:35:36.000Z | 2022-03-29T04:58:41.000Z | src/nnfusion/core/operators/generic_op/generic_op_define/MaxPool.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 104 | 2020-09-05T10:01:08.000Z | 2022-03-23T10:59:13.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "nnfusion/core/operators/generic_op/generic_op.hpp"
REGISTER_OP(MaxPool)
.infershape(nnfusion::op::infershape::unimplemented_and_not_used)
/*
.translate([](std::shared_ptr<graph::GNode> curr) -> std::string {
auto ... | 43.099448 | 182 | 0.483912 | nox-410 |
f217aaea17f8a57ecb3b96c89935b9862d806b2b | 2,485 | cpp | C++ | src/blinkit/blink/renderer/platform/shared_buffer.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | 13 | 2020-04-21T13:14:00.000Z | 2021-11-13T14:55:12.000Z | src/blinkit/blink/renderer/platform/shared_buffer.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | null | null | null | src/blinkit/blink/renderer/platform/shared_buffer.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | 4 | 2020-04-21T13:15:43.000Z | 2021-11-13T14:55:00.000Z | // -------------------------------------------------
// BlinKit - BlinKit Library
// -------------------------------------------------
// File Name: shared_buffer.cpp
// Description: SharedBuffer Class
// Author: Ziming Li
// Created: 2019-09-29
// -------------------------------------------------
// Copyrig... | 24.85 | 92 | 0.616901 | titilima |
f218d21c79bde9079b3dfe9c8a08d2cb52b571b7 | 8,355 | cpp | C++ | src/+ffmpeg/audioread.cpp | hokiedsp/matlab-ffmpeg | 60162157ab8e6ac1c4a4e6e8894e95a6eb2099ed | [
"BSD-2-Clause"
] | 3 | 2017-09-06T18:11:37.000Z | 2020-04-14T09:17:36.000Z | src/+ffmpeg/audioread.cpp | hokiedsp/matlab-ffmpeg | 60162157ab8e6ac1c4a4e6e8894e95a6eb2099ed | [
"BSD-2-Clause"
] | 1 | 2019-06-19T16:34:57.000Z | 2019-07-07T01:20:27.000Z | src/+ffmpeg/audioread.cpp | hokiedsp/matlab-ffmpeg | 60162157ab8e6ac1c4a4e6e8894e95a6eb2099ed | [
"BSD-2-Clause"
] | null | null | null | #include <mex.h>
#include <ffmpegReader.h>
#include <ffmpegPtrs.h>
#include <ffmpegTimeUtil.h>
#include "../utils/mxutils.h"
#include "@Reader/mexReaderPostOps.h"
#include <mexGetString.h>
extern "C"
{
#include <libavutil/dict.h>
}
#include <algorithm>
#include <chrono>
typedef std::chrono::duration<double> mex_d... | 29.839286 | 80 | 0.636744 | hokiedsp |
35e9c6bda47f6d686260a9b56053968e37ddce62 | 1,804 | cpp | C++ | expvar/main.cpp | dtoma/cpp | 1c6c726071092d9e238c6fb3de22fed833a148b2 | [
"MIT"
] | null | null | null | expvar/main.cpp | dtoma/cpp | 1c6c726071092d9e238c6fb3de22fed833a148b2 | [
"MIT"
] | null | null | null | expvar/main.cpp | dtoma/cpp | 1c6c726071092d9e238c6fb3de22fed833a148b2 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <unistd.h>
#include <signal.h>
#include <thread>
#include "http.h"
#include "network.h"
#include "db.h"
namespace {
class expvar {
std::thread t;
public:
template <typename T>
expvar(T&& function) : t(function) {
}
~expvar... | 23.428571 | 64 | 0.5 | dtoma |
35eb358a8aa5bf3c0da7d1e0e8f6f987445bfe82 | 1,081 | hxx | C++ | time.hxx | Arcoth/VTMPL | d83e4c6ab2e931bce60761997c782d6679a7cba4 | [
"BSL-1.0"
] | null | null | null | time.hxx | Arcoth/VTMPL | d83e4c6ab2e931bce60761997c782d6679a7cba4 | [
"BSL-1.0"
] | null | null | null | time.hxx | Arcoth/VTMPL | d83e4c6ab2e931bce60761997c782d6679a7cba4 | [
"BSL-1.0"
] | null | null | null | /* Copyright (c) Arcoth, 2013-2014.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */
#ifndef TIME_HXX_INCLUDED
#define TIME_HXX_INCLUDED
#include "string.hxx"
#include "parsers.hxx"
namespace vtmpl
{
template <t... | 20.788462 | 91 | 0.629047 | Arcoth |
35f2d80b23e75ccd71a142d1576cb22247a87735 | 24,966 | cpp | C++ | main.cpp | ghsecuritylab/BLEClient_mbedDevConn_Watson | f162ec8a99ab3b21cee28aaed65da60cf5dd6618 | [
"Apache-2.0"
] | 1 | 2019-05-28T04:54:23.000Z | 2019-05-28T04:54:23.000Z | main.cpp | ghsecuritylab/BLEClient_mbedDevConn_Watson | f162ec8a99ab3b21cee28aaed65da60cf5dd6618 | [
"Apache-2.0"
] | 1 | 2017-02-20T10:48:02.000Z | 2017-02-21T11:34:16.000Z | main.cpp | ghsecuritylab/BLEClient_mbedDevConn_Watson | f162ec8a99ab3b21cee28aaed65da60cf5dd6618 | [
"Apache-2.0"
] | 3 | 2017-02-07T15:06:06.000Z | 2021-02-19T13:56:31.000Z | /*
* Copyright (c) 2015 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* 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... | 35.819225 | 187 | 0.665665 | ghsecuritylab |
35f701f1ab7d83d91cbd9e7f9eb415b23acb9406 | 1,238 | cc | C++ | media/gpu/android/mock_android_video_surface_chooser.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | media/gpu/android/mock_android_video_surface_chooser.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | media/gpu/android/mock_android_video_surface_chooser.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 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 "media/gpu/android/mock_android_video_surface_chooser.h"
namespace media {
MockAndroidVideoSurfaceChooser::MockAndroidVideoSurfaceChooser() = d... | 30.195122 | 76 | 0.78433 | zipated |
35f767f33774d158c13387495c68f16022c9407f | 209 | cpp | C++ | src/module_args/args_args.cpp | Sonotsugipaa/csono | 7e08734b982bc22758ee76fc09ade46f67195e8a | [
"MIT"
] | null | null | null | src/module_args/args_args.cpp | Sonotsugipaa/csono | 7e08734b982bc22758ee76fc09ade46f67195e8a | [
"MIT"
] | null | null | null | src/module_args/args_args.cpp | Sonotsugipaa/csono | 7e08734b982bc22758ee76fc09ade46f67195e8a | [
"MIT"
] | null | null | null | #include <csono/args.hpp>
namespace csono {
Argument::Argument(): a_value(), a_position(-1) { }
Argument::Argument(std::string val, unsigned pos):
a_value(std::move(val)),
a_position(pos)
{ }
}
| 13.933333 | 52 | 0.650718 | Sonotsugipaa |
35fcfaf76da268c75972bbd0932dd996a96d523f | 119 | cpp | C++ | src/FilterIterator.cpp | adsharma/iterlib | eacc729b7ec8be7376e1d1bf5e9edd4dade3f222 | [
"BSD-3-Clause"
] | 76 | 2016-11-11T18:08:12.000Z | 2018-06-04T23:14:43.000Z | src/FilterIterator.cpp | adsharma/iterlib | eacc729b7ec8be7376e1d1bf5e9edd4dade3f222 | [
"BSD-3-Clause"
] | 13 | 2016-11-16T00:25:54.000Z | 2017-04-18T21:14:14.000Z | src/FilterIterator.cpp | adsharma/iterlib | eacc729b7ec8be7376e1d1bf5e9edd4dade3f222 | [
"BSD-3-Clause"
] | 5 | 2016-11-12T00:02:34.000Z | 2017-06-22T22:06:14.000Z | #include "iterlib/FilterIterator.h"
namespace iterlib {
namespace detail {
template class FilterIterator<Item>;
}
}
| 11.9 | 36 | 0.764706 | adsharma |
35ffc9324e782737a9bb66b6ab459d3809c006d4 | 720 | cpp | C++ | src/ext/openexr/Contrib/Photoshop/src/framework/PSAutoBuffer.cpp | tomoya5296/pbrt-cv | f5078db1e42bb8305aa386bda1ba26c528dec489 | [
"BSD-2-Clause"
] | 21 | 2016-12-14T09:46:27.000Z | 2021-12-28T10:05:04.000Z | src/ext/openexr/Contrib/Photoshop/src/framework/PSAutoBuffer.cpp | tomoya5296/pbrt-cv | f5078db1e42bb8305aa386bda1ba26c528dec489 | [
"BSD-2-Clause"
] | 2 | 2015-10-09T19:13:25.000Z | 2018-12-25T17:16:54.000Z | src/ext/openexr/Contrib/Photoshop/src/framework/PSAutoBuffer.cpp | tomoya5296/pbrt-cv | f5078db1e42bb8305aa386bda1ba26c528dec489 | [
"BSD-2-Clause"
] | 15 | 2015-02-23T16:35:28.000Z | 2022-03-25T13:40:33.000Z | // ===========================================================================
// PSAutoBuffer.cp Part of OpenEXR
// ===========================================================================
//
#if MSWindows
#pragma warning (disable: 161)
#endif
#include "PSAutoBuffer.h"
#include <new>
PSAutoBuffer::PSAutoBuff... | 15.319149 | 78 | 0.506944 | tomoya5296 |
c401731f8ee6fcef335edaccdf03a53c2e0d7768 | 4,166 | hh | C++ | lsl/runtime/types.hh | vinzenz/lsl-emu | 3f799248ee57d0d11d6f12e6ff0f48cf359ced1e | [
"Apache-2.0"
] | 1 | 2018-03-28T19:26:44.000Z | 2018-03-28T19:26:44.000Z | lsl/runtime/types.hh | vinzenz/lsl-emu | 3f799248ee57d0d11d6f12e6ff0f48cf359ced1e | [
"Apache-2.0"
] | null | null | null | lsl/runtime/types.hh | vinzenz/lsl-emu | 3f799248ee57d0d11d6f12e6ff0f48cf359ced1e | [
"Apache-2.0"
] | null | null | null | // Copyright 2014 Vinzenz Feenstra
//
// 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 ... | 27.407895 | 94 | 0.62722 | vinzenz |
c401bc08ec86b95b8a9224ce279252c9a2ee9c31 | 2,553 | cc | C++ | tests/testfoundation/ringbuffertest.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 377 | 2018-10-24T08:34:21.000Z | 2022-03-31T23:37:49.000Z | tests/testfoundation/ringbuffertest.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 11 | 2020-01-22T13:34:46.000Z | 2022-03-07T10:07:34.000Z | tests/testfoundation/ringbuffertest.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 23 | 2019-07-13T16:28:32.000Z | 2022-03-20T09:00:59.000Z | //------------------------------------------------------------------------------
// ringbuffertest.cc
// (C) 2008 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "ringbuffertest.h"
#include "util/ringbuffer.h"
namespace Test
{
__ImplementC... | 23.209091 | 80 | 0.444967 | sirAgg |
c402b271c528f3f30ac1d07b1a9ade6e3719f17d | 1,291 | cpp | C++ | ml_belowzerosrc/src/sys/_windows/msys_debugOS.cpp | mudlord/demos | 359bada56a27ddbd4fcb846c0ff34bc474cb7f05 | [
"Unlicense"
] | 20 | 2017-12-12T16:37:25.000Z | 2022-02-19T10:35:46.000Z | ml_noisecorpsesrc/src/sys/_windows/msys_debugOS.cpp | mudlord/demos | 359bada56a27ddbd4fcb846c0ff34bc474cb7f05 | [
"Unlicense"
] | null | null | null | ml_noisecorpsesrc/src/sys/_windows/msys_debugOS.cpp | mudlord/demos | 359bada56a27ddbd4fcb846c0ff34bc474cb7f05 | [
"Unlicense"
] | 7 | 2017-12-29T23:19:18.000Z | 2021-08-17T09:53:15.000Z | //--------------------------------------------------------------------------//
// iq . 2003/2008 . code for 64 kb intros by RGBA //
//--------------------------------------------------------------------------//
#ifdef DEBUG
#include <windows.h>
#include <stdio.h>
#include <stdarg.h>
#include... | 19.861538 | 78 | 0.464756 | mudlord |
c404f608c89c74c706284a3c2458289f6764d91d | 1,021 | hpp | C++ | files/src/app-helpers/cpp/ezored/helpers/MapHelper.hpp | Leo-Neves/ezored | 924a6c10bdedd9d3115b31cb56c81c671f524c49 | [
"MIT"
] | null | null | null | files/src/app-helpers/cpp/ezored/helpers/MapHelper.hpp | Leo-Neves/ezored | 924a6c10bdedd9d3115b31cb56c81c671f524c49 | [
"MIT"
] | null | null | null | files/src/app-helpers/cpp/ezored/helpers/MapHelper.hpp | Leo-Neves/ezored | 924a6c10bdedd9d3115b31cb56c81c671f524c49 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <sstream>
#include <string>
#include <unordered_map>
#include <vector>
#include "rapidjson/document.h"
using std::string;
using std::unordered_map;
using std::vector;
using rapidjson::Document;
namespace ezored
{
namespace helpers
{
class MapHelper
{
public:
virtual ~Ma... | 26.179487 | 117 | 0.742409 | Leo-Neves |
c40c540782938c034f29377cfd660fbb877bbc01 | 394 | cpp | C++ | Solutions/CF1543D1.cpp | SamuNatsu/icpc-solution | 17facc464a042026ff117ab33b439e87615de74b | [
"MIT"
] | null | null | null | Solutions/CF1543D1.cpp | SamuNatsu/icpc-solution | 17facc464a042026ff117ab33b439e87615de74b | [
"MIT"
] | null | null | null | Solutions/CF1543D1.cpp | SamuNatsu/icpc-solution | 17facc464a042026ff117ab33b439e87615de74b | [
"MIT"
] | null | null | null | #include <cstdio>
int t, n, k, r;
int main() {
scanf("%d", &t);
while (t--) {
scanf("%d%d", &n, &k);
int q = 0, lst = 0;
for (int i = 0; i < n; ++i) {
q = lst ^ i;
lst ^= q;
printf("%d\n", q);
fflush(stdout);
scanf("%d", &r);
... | 17.909091 | 37 | 0.307107 | SamuNatsu |
c40d812bb32a7fde40a87b21fa899cad836e5948 | 348 | cc | C++ | leetcode/leetcode_218.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | leetcode/leetcode_218.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | leetcode/leetcode_218.cc | math715/arts | ff73ccb7d67f7f7c87150204e15aeb46047f0e02 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
using namespace std;
vector<pair<int, int>> getSkyline(vector<vector<int>>& buildings) {
vector<pair<int, int>> result;
int buildings idx = 0;
while (true) {
}
return result;
}
int main( int argc, char *... | 15.818182 | 67 | 0.637931 | math715 |
c4165c13cd4a8bee3f87127c8beddb720f43bd98 | 12,157 | hpp | C++ | src/framework/shared/inc/private/common/fxirp.hpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 994 | 2015-03-18T21:37:07.000Z | 2019-04-26T04:04:14.000Z | src/framework/shared/inc/private/common/fxirp.hpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 9 | 2015-03-19T08:40:01.000Z | 2019-03-24T22:54:51.000Z | src/framework/shared/inc/private/common/fxirp.hpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 350 | 2015-03-19T04:29:46.000Z | 2019-05-05T23:26:50.000Z | /*++
Copyright (c) Microsoft Corporation
Module Name:
FxIrp.hpp
Abstract:
This module implements a class for handling irps.
Author:
Environment:
Both kernel and user mode
Revision History:
// A function for when not assigning
... | 14.302353 | 81 | 0.591182 | IT-Enthusiast-Nepal |
c41a5ca1692f2e46445f7554bebb80107923a3a9 | 2,571 | cpp | C++ | AliceEngine/ALC/Rendering/Camera.cpp | ARAMODODRAGON/Project-Alice | 49d3189ba065911c8495cfb04761a2050d3a0702 | [
"MIT"
] | null | null | null | AliceEngine/ALC/Rendering/Camera.cpp | ARAMODODRAGON/Project-Alice | 49d3189ba065911c8495cfb04761a2050d3a0702 | [
"MIT"
] | null | null | null | AliceEngine/ALC/Rendering/Camera.cpp | ARAMODODRAGON/Project-Alice | 49d3189ba065911c8495cfb04761a2050d3a0702 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2021 Domara Shlimon
*
* 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, m... | 30.607143 | 87 | 0.731622 | ARAMODODRAGON |
c41b278b7639f741d3c23c2ca68c682efbed0483 | 248 | cpp | C++ | work/desenet-sensor/src/common/platform/nucleo-stm32l476rg/board/display/eplib/hal/gpio.cpp | MacherelR/DeSemProject_20212022 | 7314e5787a3ff2ca5bf95c6de7fbbee9598b98ea | [
"MIT"
] | null | null | null | work/desenet-sensor/src/common/platform/nucleo-stm32l476rg/board/display/eplib/hal/gpio.cpp | MacherelR/DeSemProject_20212022 | 7314e5787a3ff2ca5bf95c6de7fbbee9598b98ea | [
"MIT"
] | null | null | null | work/desenet-sensor/src/common/platform/nucleo-stm32l476rg/board/display/eplib/hal/gpio.cpp | MacherelR/DeSemProject_20212022 | 7314e5787a3ff2ca5bf95c6de7fbbee9598b98ea | [
"MIT"
] | null | null | null | #include "gpio.h"
namespace ep {
/**
* @brief Construct a new GPIO object
*
* @param p1 Pin Number
* @param port Port Name
*/
Gpio::Gpio(GPIO_TypeDef * port, uint32_t pin) :
port(port),
pin(pin)
{
}
} // namespace ep
| 13.052632 | 48 | 0.580645 | MacherelR |
c41ba80f75e10deb60a3e4f03c58eea1f2a0a099 | 829 | cpp | C++ | CSES/1640.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | 1 | 2020-10-16T18:14:30.000Z | 2020-10-16T18:14:30.000Z | CSES/1640.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | null | null | null | CSES/1640.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | 1 | 2021-01-06T04:45:38.000Z | 2021-01-06T04:45:38.000Z | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define MOD 1000000007
#define all(v) v.begin(),v.end()
#define PB push_back
#define F first
#define S second
int solve(){
ll n,x; cin>>n>>x;
vector< pair< ll , ll > > v(n);
for(ll i=0;i<n;i++){
cin>>v[i].F;
... | 14.54386 | 38 | 0.405308 | hardik0899 |
c421c8527b0bdf126b1a2b03027c289b903f9398 | 13,627 | cxx | C++ | test/font_test/font_test.cxx | henne90gen/cgv | 31995e9f09d093f9997980093452a5424d0c1319 | [
"BSD-3-Clause"
] | null | null | null | test/font_test/font_test.cxx | henne90gen/cgv | 31995e9f09d093f9997980093452a5424d0c1319 | [
"BSD-3-Clause"
] | null | null | null | test/font_test/font_test.cxx | henne90gen/cgv | 31995e9f09d093f9997980093452a5424d0c1319 | [
"BSD-3-Clause"
] | null | null | null | #include <cgv/base/node.h>
#include <cgv/base/register.h>
#include <cgv/gui/event_handler.h>
#include <cgv/gui/provider.h>
#include <cgv/gui/key_event.h>
#include <cgv/gui/mouse_event.h>
#include <cgv/utils/file.h>
#include <cgv/utils/dir.h>
#include <cgv/render/drawable.h>
#include <cgv/render/attribute_array_binding.... | 31.764569 | 125 | 0.676965 | henne90gen |
c422e32063934f810d7ba085a9650364c9f7c1d4 | 1,155 | cpp | C++ | luogu/P3478.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:07:08.000Z | 2020-07-24T03:07:08.000Z | luogu/P3478.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | luogu/P3478.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | //
// Created by yangtao on 20-11-27.
//
#include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
using namespace std;
typedef long long ll;
const int N = 1e6 + 5;
ll h[N], e[N*2], ne[N*2], size[N], dep[N], dp[N];
int n, idx;
void add(int u, int v) {
e[idx] = v, ne[idx] = h[u], h[u] = idx++;
}
... | 20.625 | 49 | 0.423377 | delphi122 |
c424bb1d9916145c4ecfbcf3106ff97b6794b842 | 809 | cpp | C++ | mp2/main.cpp | Atrifex/ECE-438 | fbf2c3f51291bfa347abaa06f843e2d20d5239f6 | [
"MIT"
] | 2 | 2019-04-25T00:24:55.000Z | 2019-04-25T04:35:05.000Z | mp2/main.cpp | Atrifex/ECE-438 | fbf2c3f51291bfa347abaa06f843e2d20d5239f6 | [
"MIT"
] | null | null | null | mp2/main.cpp | Atrifex/ECE-438 | fbf2c3f51291bfa347abaa06f843e2d20d5239f6 | [
"MIT"
] | 1 | 2020-10-02T21:32:34.000Z | 2020-10-02T21:32:34.000Z |
#include <iostream>
#include <utility>
#include <thread>
#include <chrono>
#include <functional>
#include <atomic>
#include "ls_router.h"
using std::thread;
using std::ref;
void announceToNeighbors(LS_Router & router) {
router.announceToNeighbors();
}
void generateLSP(LS_Router & router) {
router.generateL... | 19.731707 | 84 | 0.672435 | Atrifex |
c42540e5c27ad1cc5aea128573f1731dc0b40771 | 3,385 | cc | C++ | stig/rpc/msg.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | 5 | 2018-04-24T12:36:50.000Z | 2020-03-25T00:37:17.000Z | stig/rpc/msg.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | null | null | null | stig/rpc/msg.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | 2 | 2018-04-24T12:39:24.000Z | 2020-03-25T00:45:08.000Z | /* <stig/rpc/msg.cc>
Implements <stig/rpc/msg.h>.
Copyright 2010-2014 Tagged
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
... | 32.864078 | 109 | 0.690694 | ctidder |
c4269bf3b0e39b55290bc4a407ffcc9b0cdc5a8c | 641 | cpp | C++ | src/Evel/UdpSocket_WF.cpp | hleclerc/Evel | c607adda555f417dfc9fb4de310c07c48ea3642f | [
"Apache-2.0"
] | null | null | null | src/Evel/UdpSocket_WF.cpp | hleclerc/Evel | c607adda555f417dfc9fb4de310c07c48ea3642f | [
"Apache-2.0"
] | null | null | null | src/Evel/UdpSocket_WF.cpp | hleclerc/Evel | c607adda555f417dfc9fb4de310c07c48ea3642f | [
"Apache-2.0"
] | null | null | null | #include "UdpSocket_WF.h"
namespace Evel {
UdpSocket_WF::~UdpSocket_WF() {
if ( f_close ) f_close( this );
}
void UdpSocket_WF::on_rdy() {
if ( f_rdy ) f_rdy( this );
}
void UdpSocket_WF::parse( const InetAddress &src, char **data, unsigned size ) {
if ( f_parse ) f_parse( this, src, data, size );
}
vo... | 24.653846 | 95 | 0.687988 | hleclerc |
c428833922bad37bca68690b5d71003424c6b628 | 1,249 | cpp | C++ | 01-Question_after_WangDao/Chapter_02/2.2/T01.cpp | ysl970629/kaoyan_data_structure | d0a469bf0e9e7040de21eca38dc19961aa7e9a53 | [
"MIT"
] | 2 | 2021-03-24T03:29:16.000Z | 2022-03-29T16:34:30.000Z | 01-Question_after_WangDao/Chapter_02/2.2/T01.cpp | ysl2/kaoyan-data-structure | d0a469bf0e9e7040de21eca38dc19961aa7e9a53 | [
"MIT"
] | null | null | null | 01-Question_after_WangDao/Chapter_02/2.2/T01.cpp | ysl2/kaoyan-data-structure | d0a469bf0e9e7040de21eca38dc19961aa7e9a53 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
using namespace std;
#define INFINITY 9999
typedef int ElemType;
typedef struct {
ElemType *data;
int length;
} SqList;
SqList initList(int arr[], int length) {
SqList L;
L.length = length;
L.data = (ElemType *)malloc(sizeof(ElemType) * L.length);
for (... | 19.215385 | 61 | 0.536429 | ysl970629 |
c42a24c0464599f37230836540333f75a738d277 | 1,894 | cc | C++ | lib/wam_orderby.cc | fbsamples/wamquery | d772b10adb5ff7979212b0b2d6197c06c4553478 | [
"Apache-2.0"
] | 1 | 2021-09-12T13:28:40.000Z | 2021-09-12T13:28:40.000Z | lib/wam_orderby.cc | fbsamples/wamquery | d772b10adb5ff7979212b0b2d6197c06c4553478 | [
"Apache-2.0"
] | null | null | null | lib/wam_orderby.cc | fbsamples/wamquery | d772b10adb5ff7979212b0b2d6197c06c4553478 | [
"Apache-2.0"
] | 1 | 2021-09-12T12:36:55.000Z | 2021-09-12T12:36:55.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 21.522727 | 80 | 0.703801 | fbsamples |
c42a95ae09e4e4ec894bc0e23fbad602c769659c | 3,660 | cc | C++ | llvm-gcc-4.2-2.9/libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/1.cc | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 1 | 2016-04-09T02:58:13.000Z | 2016-04-09T02:58:13.000Z | llvm-gcc-4.2-2.9/libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/1.cc | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/1.cc | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | // Copyright (C) 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library 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 2, or (at your option)
// an... | 30.756303 | 79 | 0.639891 | vidkidz |
c42b0f6f5556e70beb86f8f029212fa1a274897d | 5,565 | hpp | C++ | SSCode/SSFeature.hpp | timmyd7777/SSCore | 3a3a6f1408a5e4b37af67c27026269997d7a6216 | [
"IJG",
"FSFAP"
] | 13 | 2020-05-11T06:16:58.000Z | 2022-01-16T00:12:38.000Z | SSCode/SSFeature.hpp | timmyd7777/SSCore | 3a3a6f1408a5e4b37af67c27026269997d7a6216 | [
"IJG",
"FSFAP"
] | 2 | 2020-09-09T17:58:45.000Z | 2020-12-04T23:06:33.000Z | SSCode/SSFeature.hpp | timmyd7777/SSCore | 3a3a6f1408a5e4b37af67c27026269997d7a6216 | [
"IJG",
"FSFAP"
] | 5 | 2020-04-13T02:28:56.000Z | 2021-07-27T07:40:43.000Z | // SSFeature.hpp
// SSCore
//
// Created by Tim DeBenedictis on 11/18/20.
//
// Copyright © 2020 Southern Stars. All rights reserved.
//
// This subclass of SSObject represents planetary surface features.
#ifndef SSFeature_hpp
#define SSFeature_hpp
#include "SSObject.hpp"
#include "SSPlanet.hpp"
#pragma pack ( push,... | 40.919118 | 129 | 0.681941 | timmyd7777 |
c430c3f7a41a594286a0aced1e17298807805390 | 418 | cpp | C++ | contest/AtCoder/abc173/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc173/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc173/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "string.hpp"
int main() {
int n(in), ac = 0, wa = 0, tle = 0, re = 0;
for (int i = 0; i < n; ++i) {
String s(in);
if (s == "AC") {
++ac;
} else if (s == "WA") {
++wa;
} else if (s == "TLE") {
++tle;
} else {
++re;
}
}
cout << "AC x " << ac << endl;
cou... | 19 | 45 | 0.366029 | not522 |
c431093118059ac620713bcb36cf416c81693b5e | 254 | hpp | C++ | src/Modules/Interface/IModuleBuilder.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | 1 | 2021-03-12T13:39:17.000Z | 2021-03-12T13:39:17.000Z | src/Modules/Interface/IModuleBuilder.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | null | null | null | src/Modules/Interface/IModuleBuilder.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | null | null | null | //
// Created by caedus on 04.02.2021.
//
#pragma once
#include "Modules/Interface/IModule.hpp"
namespace nastya::modules {
class IModuleBuilder {
public:
virtual ~IModuleBuilder() = default;
virtual std::unique_ptr<IModule> build() = 0;
};
}
| 15.875 | 49 | 0.692913 | pawel-jarosz |
c43214465609dcb7aad82c3d6fb31cb98b9fa6ef | 1,859 | cpp | C++ | boboleetcode/Play-Leetcode-master/0909-Snakes-and-Ladders/cpp-0909/main.cpp | yaominzh/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 2 | 2021-03-25T05:26:55.000Z | 2021-04-20T03:33:24.000Z | boboleetcode/Play-Leetcode-master/0909-Snakes-and-Ladders/cpp-0909/main.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 6 | 2019-12-04T06:08:32.000Z | 2021-05-10T20:22:47.000Z | boboleetcode/Play-Leetcode-master/0909-Snakes-and-Ladders/cpp-0909/main.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | null | null | null | /// Source : https://leetcode.com/problems/snakes-and-ladders/description/
/// Author : liuyubobobo
/// Time : 2018-09-22
#include <iostream>
#include <vector>
#include <queue>
#include <cassert>
using namespace std;
/// BFS
/// Time Complexity: O(n^2)
/// Space Complexity: O(n^2)
class Solution {
public:
int... | 22.670732 | 74 | 0.423346 | yaominzh |
c4331b57d588538cff69656332c13bef13a5c624 | 3,031 | hpp | C++ | include/gp/genetic_operations/mutation.hpp | ho-ri1991/genetic-programming | 06d0c1f0719f4d2ddcf9c066d9de1d0bb67772b0 | [
"MIT"
] | null | null | null | include/gp/genetic_operations/mutation.hpp | ho-ri1991/genetic-programming | 06d0c1f0719f4d2ddcf9c066d9de1d0bb67772b0 | [
"MIT"
] | null | null | null | include/gp/genetic_operations/mutation.hpp | ho-ri1991/genetic-programming | 06d0c1f0719f4d2ddcf9c066d9de1d0bb67772b0 | [
"MIT"
] | null | null | null | #ifndef GP_GENETIC_OPERATIONS_MUTATION
#define GP_GENETIC_OPERATIONS_MUTATION
#include <gp/node/node_interface.hpp>
#include <gp/tree/tree.hpp>
#include <gp/tree_operations/tree_operations.hpp>
#include <gp/utility/is_detected.hpp>
#include <cassert>
namespace gp::genetic_operations {
namespace detail {
t... | 41.520548 | 211 | 0.633124 | ho-ri1991 |
c436572efbf5f261c84fa7f82e672f10a9ff032f | 310 | cpp | C++ | aql/benchmark/lib_60/class_8.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_60/class_8.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_60/class_8.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | #include "class_8.h"
#include "class_9.h"
#include "class_3.h"
#include "class_6.h"
#include "class_4.h"
#include "class_7.h"
#include <lib_8/class_1.h>
#include <lib_40/class_5.h>
#include <lib_52/class_4.h>
#include <lib_7/class_3.h>
#include <lib_10/class_9.h>
class_8::class_8() {}
class_8::~class_8() {}
| 20.666667 | 27 | 0.712903 | menify |
c436876c46e9b0354a1ad972f0d59d2e4927cf83 | 1,646 | hpp | C++ | src/vkt/Resample_serial.hpp | szellmann/volk | f8e8755d0e016359e4977934412888830080dd42 | [
"MIT"
] | 1 | 2021-01-20T22:31:07.000Z | 2021-01-20T22:31:07.000Z | src/vkt/Resample_serial.hpp | szellmann/volkit | f8e8755d0e016359e4977934412888830080dd42 | [
"MIT"
] | null | null | null | src/vkt/Resample_serial.hpp | szellmann/volkit | f8e8755d0e016359e4977934412888830080dd42 | [
"MIT"
] | null | null | null | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#pragma once
#include <vkt/Resample.hpp>
#include <vkt/StructuredVolume.hpp>
#include "linalg.hpp"
namespace vkt
{
void Resample_serial(
StructuredVolume& dst,
StructuredVolume& src,
Filte... | 26.983607 | 73 | 0.402795 | szellmann |
c439ec2d3cac849808d08ae87376fbed3236e7c5 | 1,337 | cpp | C++ | luogu/p6198.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p6198.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p6198.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int n;
int val = 1;
vector<int> arr(1e6+5), ans(1e6+5);
vector<vector<int>> pos(1e6+5, vector<int>());
void slove(int l, int r, int splitNum)
{
/* cout << l << " " << r << endl; */
if(l>r) return;
vector<int> splitPos; //记录分割点
// 二分查端点
int st = lower_bo... | 26.215686 | 96 | 0.511593 | freedomDR |
c43ac9c7802269ebb639954548731d12893d3d66 | 1,302 | cc | C++ | DataFormats/CaloTowers/test/CaloTowersDump.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DataFormats/CaloTowers/test/CaloTowersDump.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DataFormats/CaloTowers/test/CaloTowersDump.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/CaloTowers/interface/CaloTowerCollection.h"
#include <iostream>
using namespace std;
/** \class CaloTowersDump
\author J. Mans - Minnesota
... | 29.590909 | 82 | 0.68126 | ckamtsikis |
c43c81cf2f099d29d0bec5181481cc6203ce1388 | 800 | cpp | C++ | source/game/Main.cpp | AlexKoukoulas2074245K/Genesis | 23c114cfe06b65b0b7b5f7807a9ceb4faf8cdf88 | [
"MIT"
] | null | null | null | source/game/Main.cpp | AlexKoukoulas2074245K/Genesis | 23c114cfe06b65b0b7b5f7807a9ceb4faf8cdf88 | [
"MIT"
] | null | null | null | source/game/Main.cpp | AlexKoukoulas2074245K/Genesis | 23c114cfe06b65b0b7b5f7807a9ceb4faf8cdf88 | [
"MIT"
] | null | null | null | ///------------------------------------------------------------------------------------------------
/// Main.cpp
/// Genesis
///
/// Created by Alex Koukoulas on 19/11/2019.
///------------------------------------------------------------------------------------------------
#include "Game.h"
#include "../engine/Gene... | 27.586207 | 99 | 0.3325 | AlexKoukoulas2074245K |
c43ebc79b8b575b62f652c1abbdb65988fd33316 | 984 | cpp | C++ | Plugins/Optimizations/Optimizations/AsyncLogFlush.cpp | Jorteck/unified | 834e39fabfe8fdb0b636cf6b4d48b3a78af64c59 | [
"MIT"
] | null | null | null | Plugins/Optimizations/Optimizations/AsyncLogFlush.cpp | Jorteck/unified | 834e39fabfe8fdb0b636cf6b4d48b3a78af64c59 | [
"MIT"
] | null | null | null | Plugins/Optimizations/Optimizations/AsyncLogFlush.cpp | Jorteck/unified | 834e39fabfe8fdb0b636cf6b4d48b3a78af64c59 | [
"MIT"
] | null | null | null | #include "Optimizations/AsyncLogFlush.hpp"
#include "Services/Hooks/Hooks.hpp"
#include "Services/Tasks/Tasks.hpp"
#include "API/Functions.hpp"
#include "API/CExoDebugInternal.hpp"
#include "API/CExoFile.hpp"
namespace Optimizations {
using namespace NWNXLib;
using namespace NWNXLib::API;
NWNXLib::Services::TasksPr... | 26.594595 | 123 | 0.721545 | Jorteck |
c44396e5f9fff08a4c4008c7cbf95202dd6aa77f | 6,498 | cpp | C++ | src/Pegasus/Config/tests/BldMsgBndl/BldMsgBndl.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 1 | 2021-11-12T21:28:50.000Z | 2021-11-12T21:28:50.000Z | src/Pegasus/Config/tests/BldMsgBndl/BldMsgBndl.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 39 | 2021-01-18T19:28:41.000Z | 2022-03-27T20:55:36.000Z | src/Pegasus/Config/tests/BldMsgBndl/BldMsgBndl.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 4 | 2021-07-09T12:52:33.000Z | 2021-12-21T15:05:59.000Z | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | 35.315217 | 80 | 0.58618 | natronkeltner |
c4460696fcf299459176912295c98084eea6094e | 6,149 | cpp | C++ | examples_tests/07.HardwareSkinning/main.cpp | Crisspl/Nabla | 8e2ff2551113b2837513b188a8f16ef70adc9f81 | [
"Apache-2.0"
] | null | null | null | examples_tests/07.HardwareSkinning/main.cpp | Crisspl/Nabla | 8e2ff2551113b2837513b188a8f16ef70adc9f81 | [
"Apache-2.0"
] | 2 | 2021-04-28T21:42:36.000Z | 2021-06-02T22:52:33.000Z | examples_tests/07.HardwareSkinning/main.cpp | Crisspl/Nabla | 8e2ff2551113b2837513b188a8f16ef70adc9f81 | [
"Apache-2.0"
] | 1 | 2021-05-31T20:33:28.000Z | 2021-05-31T20:33:28.000Z | #define _IRR_STATIC_LIB_
#include <irrlicht.h>
#include "../../ext/ScreenShot/ScreenShot.h"
#include "../common/QToQuitEventReceiver.h"
using namespace irr;
using namespace core;
class SimpleCallBack : public video::IShaderConstantSetCallBack
{
int32_t mvpUniformLocation;
int32_t cameraDirUniformLocation;
vide... | 35.959064 | 175 | 0.733615 | Crisspl |
c446fbaec4e11b32e672213929f1c501ec9605f8 | 352 | cpp | C++ | exercises/4.4.2/main.cpp | PatrickTrentin88/intro_c-_qt | 1d73ef364711fac7b46cd3752258c0273c689835 | [
"MIT"
] | null | null | null | exercises/4.4.2/main.cpp | PatrickTrentin88/intro_c-_qt | 1d73ef364711fac7b46cd3752258c0273c689835 | [
"MIT"
] | null | null | null | exercises/4.4.2/main.cpp | PatrickTrentin88/intro_c-_qt | 1d73ef364711fac7b46cd3752258c0273c689835 | [
"MIT"
] | null | null | null | #include "contact.h"
#include "contactlist.h"
#include "contactfactory.h"
#include <QTextStream>
int main(int argc, char *argv[])
{
QTextStream out(stdout);
ContactFactory cf;
ContactList cl;
cf.createRandomContacts(cl, 10);
for (int i = 0; i < cl.count(); ++i) {
Contact c = cl.at(i);
... | 18.526316 | 42 | 0.585227 | PatrickTrentin88 |
c448de0cde57393a668990a66beed745ce0007ac | 3,075 | cpp | C++ | ad_map_access/src/point/BoundingSphereOperation.cpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 61 | 2019-12-19T20:57:24.000Z | 2022-03-29T15:20:51.000Z | ad_map_access/src/point/BoundingSphereOperation.cpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 54 | 2020-04-05T05:32:47.000Z | 2022-03-15T18:42:33.000Z | ad_map_access/src/point/BoundingSphereOperation.cpp | woojinjjang/map-1 | d12bb410f03d078a995130b4e671746ace8b6287 | [
"MIT"
] | 31 | 2019-12-20T07:37:39.000Z | 2022-03-16T13:06:16.000Z | // ----------------- BEGIN LICENSE BLOCK ---------------------------------
//
// Copyright (C) 2018-2021 Intel Corporation
//
// SPDX-License-Identifier: MIT
//
// ----------------- END LICENSE BLOCK -----------------------------------
#include "ad/map/point/BoundingSphereOperation.hpp"
namespace ad {
namespace map {... | 28.211009 | 112 | 0.663415 | woojinjjang |
c449c846ca94f3a68d09ce129de727b925a62c83 | 221 | cpp | C++ | Os/MemCommon.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 9,182 | 2017-07-06T15:51:35.000Z | 2022-03-30T11:20:33.000Z | Os/MemCommon.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 719 | 2017-07-14T17:56:01.000Z | 2022-03-31T02:41:35.000Z | Os/MemCommon.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 1,216 | 2017-07-12T15:41:08.000Z | 2022-03-31T21:44:37.000Z | #include <Os/Mem.hpp>
#include <cstring>
namespace Os {
U32 Mem::virtToPhys(U32 virtAddr) {
return virtAddr;
}
U32 Mem::physToVirt(U32 physAddr) {
return physAddr;
}
}
| 13.8125 | 39 | 0.552036 | AlperenCetin0 |
c44a0627e809de0fb6c2b324059d3a75c1dda6ab | 6,723 | cpp | C++ | src/shogun/classifier/FeatureBlockLogisticRegression.cpp | srgnuclear/shogun | 33c04f77a642416376521b0cd1eed29b3256ac13 | [
"Ruby",
"MIT"
] | 1 | 2015-11-05T18:31:14.000Z | 2015-11-05T18:31:14.000Z | src/shogun/classifier/FeatureBlockLogisticRegression.cpp | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | src/shogun/classifier/FeatureBlockLogisticRegression.cpp | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | /*
* 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.
*
* Copyright (C) 2012 Sergey Lisitsyn
*/
#include <shogun/cl... | 25.660305 | 100 | 0.754425 | srgnuclear |
c44a87df8b1fe729708ce05a2d1d2a0766fff0d8 | 1,587 | cpp | C++ | Source/Controllers/Corsair/CorsairController.cpp | pramberg/DeviceRGB | a2020b2b5accb1fc864c16905c35c352d3e4f39b | [
"MIT"
] | 3 | 2021-08-12T16:13:22.000Z | 2022-02-26T05:54:06.000Z | Source/Controllers/Corsair/CorsairController.cpp | pramberg/DeviceRGB | a2020b2b5accb1fc864c16905c35c352d3e4f39b | [
"MIT"
] | 12 | 2021-08-11T09:00:36.000Z | 2021-11-06T16:04:55.000Z | Source/Controllers/Corsair/CorsairController.cpp | pramberg/DeviceRGB | a2020b2b5accb1fc864c16905c35c352d3e4f39b | [
"MIT"
] | null | null | null | // Copyright(c) 2021 Viktor Pramberg
#include "CorsairController.h"
#include <Interfaces/IPluginManager.h>
#include "CorsairDevice.h"
#include "DeviceRGB.h"
#include <CUESDK.h>
FCorsairController::FCorsairController()
{
const FString BaseDir = IPluginManager::Get().FindPlugin("DeviceRGB")->GetBaseDir();
const FStri... | 24.045455 | 120 | 0.759294 | pramberg |
c44be4f8fba288be41dc23c9d349f72f73b0c8cc | 1,158 | hpp | C++ | include/nornir/external/fastflow/ff/make_unique.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 11 | 2020-12-16T22:44:08.000Z | 2022-03-30T00:52:58.000Z | include/nornir/external/fastflow/ff/make_unique.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 1 | 2021-04-01T09:07:52.000Z | 2021-07-21T22:10:07.000Z | include/nornir/external/fastflow/ff/make_unique.hpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 3 | 2020-12-21T18:47:43.000Z | 2021-11-20T19:48:45.000Z | #ifndef FF_MAKEUNIQUE_HPP
#define FF_MAKEUNIQUE_HPP
#include <memory>
#include <type_traits>
#include <utility>
#if __cplusplus < 201400L // to check
// C++11 implementation of make_unique
#if (__cplusplus >= 201103L) || (defined __GXX_EXPERIMENTAL_CXX0X__) || (defined(HAS_CXX11_VARIADIC_TEMPLATES))
template <typ... | 28.243902 | 111 | 0.701209 | DanieleDeSensi |
c44c7f7ed528e1e6acde199cb5f205e7fb51537d | 14,535 | cpp | C++ | Source/Canvas/selectiontransformitem.cpp | erayzesen/turquoise2D | 33bd2e85169bba4c82c388c1619b2de55065eb7b | [
"Zlib"
] | 13 | 2020-05-24T23:52:48.000Z | 2020-12-01T02:43:03.000Z | Source/Canvas/selectiontransformitem.cpp | erayzesen/turquoise2D | 33bd2e85169bba4c82c388c1619b2de55065eb7b | [
"Zlib"
] | 3 | 2020-05-26T22:19:49.000Z | 2020-12-01T09:31:25.000Z | Source/Canvas/selectiontransformitem.cpp | erayzesen/turquoise2D | 33bd2e85169bba4c82c388c1619b2de55065eb7b | [
"Zlib"
] | 3 | 2020-05-26T01:35:20.000Z | 2020-05-26T13:51:07.000Z | #include "selectiontransformitem.h"
SelectionTransformItem::SelectionTransformItem(QList<QGraphicsItem*> _items,GraphicsScene * _scene,PropertiesItem *_propItem)
{
scene=_scene;
items=_items;
//(i) Defining anchor items for scale
rightBottomAnchor=new TransformAnchor(this,TransformTypes::Scale);
le... | 38.76 | 135 | 0.684692 | erayzesen |
c44f77c396cd96c4c1070d239e652530745ad88b | 470 | hpp | C++ | src/systems/EntityTestSystem.hpp | gabriellanzer/Ravine-ECS | f96467508cd22d4f4b9230b6c5502da201869449 | [
"MIT"
] | 7 | 2019-09-10T10:22:52.000Z | 2021-11-23T02:54:10.000Z | src/systems/EntityTestSystem.hpp | gabriellanzer/Ravine-ECS | f96467508cd22d4f4b9230b6c5502da201869449 | [
"MIT"
] | null | null | null | src/systems/EntityTestSystem.hpp | gabriellanzer/Ravine-ECS | f96467508cd22d4f4b9230b6c5502da201869449 | [
"MIT"
] | null | null | null | #ifndef ENTITYTESTSYSTEM_HPP
#define ENTITYTESTSYSTEM_HPP
#include "components/Position.h"
#include "ravine/ecs.h"
#include "ravine/ecs/Entity.hpp"
using namespace rv;
class EntityTestSystem : public BaseSystem<EntityProxy, Position>
{
void update(double deltaTime, int32_t size, EntityProxy* const e, Position* cons... | 22.380952 | 91 | 0.695745 | gabriellanzer |
c450fac68fa8df9625a6f1af5e900b7cee05546e | 424 | cpp | C++ | tests/src/string_ifind.cpp | scaryrawr/mtl | eea8e9c6662b613dc5098a2cb442a7b1522bf8f0 | [
"MIT"
] | null | null | null | tests/src/string_ifind.cpp | scaryrawr/mtl | eea8e9c6662b613dc5098a2cb442a7b1522bf8f0 | [
"MIT"
] | null | null | null | tests/src/string_ifind.cpp | scaryrawr/mtl | eea8e9c6662b613dc5098a2cb442a7b1522bf8f0 | [
"MIT"
] | null | null | null | #include <mtl/string.hpp>
#include <gtest/gtest.h>
TEST(StringIFind, RawString)
{
const char *str{"Hello World"};
ASSERT_EQ(mtl::string::ifind(str, "world"), 6);
}
TEST(StringIFind, BasicString)
{
std::string str{"Hello World"};
ASSERT_EQ(mtl::string::ifind(str, "world"), 6);
}
TEST(StringIFind, Stri... | 21.2 | 51 | 0.658019 | scaryrawr |