hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08500952859a6b8ba35a9eeae0e6a43d3e083a3e | 1,195 | hpp | C++ | external/armadillo-10.1.2/tmp/include/armadillo_bits/wall_clock_bones.hpp | hb407/libnome | cf11c6e34e6d147e28bfc6f54dd3ca81d2443438 | [
"MIT"
] | 55 | 2020-10-07T20:22:22.000Z | 2021-08-28T10:58:36.000Z | external/armadillo-10.1.2/tmp/include/armadillo_bits/wall_clock_bones.hpp | hb407/libnome | cf11c6e34e6d147e28bfc6f54dd3ca81d2443438 | [
"MIT"
] | 16 | 2020-12-06T22:02:38.000Z | 2021-08-19T09:37:56.000Z | external/armadillo-10.1.2/tmp/include/armadillo_bits/wall_clock_bones.hpp | hb407/libnome | cf11c6e34e6d147e28bfc6f54dd3ca81d2443438 | [
"MIT"
] | 11 | 2019-12-16T16:06:19.000Z | 2020-04-15T15:28:31.000Z | // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// 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... | 28.452381 | 103 | 0.654393 | hb407 |
085083eabeed7f9f44c97d548e8690fdad894cd5 | 1,907 | cpp | C++ | circle/src/Circulo.cpp | cyrstem/OF-Experiments | 42dd5e522f5cce39f9a3448531c6e17eaa2554dc | [
"BSD-2-Clause"
] | null | null | null | circle/src/Circulo.cpp | cyrstem/OF-Experiments | 42dd5e522f5cce39f9a3448531c6e17eaa2554dc | [
"BSD-2-Clause"
] | null | null | null | circle/src/Circulo.cpp | cyrstem/OF-Experiments | 42dd5e522f5cce39f9a3448531c6e17eaa2554dc | [
"BSD-2-Clause"
] | null | null | null | //
// Circulo.cpp
// circle
//
// Created by Jacobo Heredia on 5/16/17.
//
//
#include "Circulo.h"
Circulo::Circulo(){
}
void Circulo::setup(){
}
void Circulo::update(){
}
void Circulo::draw(int _rad, int _tamLinea, int _cRess,ofColor _clr,int _anim, float _sine){
tamLinea =_tamLinea;
rad ... | 26.859155 | 131 | 0.63398 | cyrstem |
085711738e7da01286d97a2dfc0b74a98185b440 | 7,813 | cc | C++ | MyMuduo/App/Multiplexer/Demux.cc | Fragrant-Yang/git-test-copy | cc026d7dedacf8d5c798d9e80a658d6fd599812d | [
"Apache-2.0"
] | 2 | 2021-02-20T10:37:52.000Z | 2021-05-07T08:15:37.000Z | MyMuduo/App/Multiplexer/Demux.cc | Fragrant-Yang/git-test-copy | cc026d7dedacf8d5c798d9e80a658d6fd599812d | [
"Apache-2.0"
] | null | null | null | MyMuduo/App/Multiplexer/Demux.cc | Fragrant-Yang/git-test-copy | cc026d7dedacf8d5c798d9e80a658d6fd599812d | [
"Apache-2.0"
] | 1 | 2021-04-17T13:48:36.000Z | 2021-04-17T13:48:36.000Z | #include "../../Lib/lib.h"
#include "../../Tcp/lib.h"
typedef std::shared_ptr<TcpClient> TcpClientPtr;
// const int kMaxConns = 1;
const size_t s_nMaxPacketLen = 255;
const size_t s_nHeaderLen = 3;
const uint16_t s_nListenPort = 9999;
const char* socksIp = "127.0.0.1";
const uint16_t s_nSocksPort = 7777;
// 接口与责任:
//... | 21.763231 | 94 | 0.564444 | Fragrant-Yang |
085997f6cf1f369ae3e53c7adf4a994b509334d5 | 2,644 | cpp | C++ | cli.cpp | seanpringle/rela | 134d45647caa642e1dd6f8b7a45fda3d70265f6c | [
"MIT"
] | 3 | 2022-01-15T12:55:49.000Z | 2022-01-17T15:44:51.000Z | cli.cpp | seanpringle/rela | 134d45647caa642e1dd6f8b7a45fda3d70265f6c | [
"MIT"
] | null | null | null | cli.cpp | seanpringle/rela | 134d45647caa642e1dd6f8b7a45fda3d70265f6c | [
"MIT"
] | null | null | null | // Rela, MIT License
//
// Copyright (c) 2021 Sean Pringle <sean.pringle@gmail.com> github:seanpringle
//
// 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 wit... | 25.921569 | 81 | 0.6823 | seanpringle |
085aa39f7d608dd596b358f93e42cb3f512e0997 | 29 | hpp | C++ | include/assets/icon.hpp | Zenith80/initial_emulator | 2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72 | [
"Apache-2.0"
] | 9 | 2017-11-12T23:16:14.000Z | 2017-12-08T19:42:44.000Z | include/assets/icon.hpp | Zenith80/Zenith80 | 2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72 | [
"Apache-2.0"
] | null | null | null | include/assets/icon.hpp | Zenith80/Zenith80 | 2c2bfbed9fe0ed55c856a02b52a5fdd97f328e72 | [
"Apache-2.0"
] | null | null | null | extern unsigned char icon[];
| 14.5 | 28 | 0.758621 | Zenith80 |
0862382ccc54958ce4825c1793fca6500abd157b | 3,893 | cpp | C++ | tests/test_gemm0.cpp | pruthvistony/MIOpenGEMM | 8f844e134d54244a6138504a4190486d8702e8fd | [
"MIT"
] | 52 | 2017-06-30T06:45:19.000Z | 2021-11-04T01:53:48.000Z | tests/test_gemm0.cpp | pruthvistony/MIOpenGEMM | 8f844e134d54244a6138504a4190486d8702e8fd | [
"MIT"
] | 31 | 2017-08-01T03:17:25.000Z | 2022-03-22T18:19:41.000Z | tests/test_gemm0.cpp | pruthvistony/MIOpenGEMM | 8f844e134d54244a6138504a4190486d8702e8fd | [
"MIT"
] | 23 | 2017-07-17T02:09:17.000Z | 2021-11-10T00:38:19.000Z | /*******************************************************************************
* Copyright (C) 2017 Advanced Micro Devices, Inc. All rights reserved.
*******************************************************************************/
#include <iomanip>
#include <mutex>
#include <thread>
#include <miopengemm/apitest.... | 28.210145 | 96 | 0.532751 | pruthvistony |
08659db0ce1208349e489f9fd02aeabf4c622c9d | 2,940 | cpp | C++ | tests/extension/oneapi_sub_group_mask/sub_group_mask_insert_bits.cpp | AidanBeltonS/SYCL-CTS | f8d877560d82e2e4a7eacefe9d252178a7d602c1 | [
"Apache-2.0"
] | null | null | null | tests/extension/oneapi_sub_group_mask/sub_group_mask_insert_bits.cpp | AidanBeltonS/SYCL-CTS | f8d877560d82e2e4a7eacefe9d252178a7d602c1 | [
"Apache-2.0"
] | null | null | null | tests/extension/oneapi_sub_group_mask/sub_group_mask_insert_bits.cpp | AidanBeltonS/SYCL-CTS | f8d877560d82e2e4a7eacefe9d252178a7d602c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
//
// SYCL 2020 Conformance Test Suite
//
// Provides tests to check sub_group_mask insert_bits()
//
*******************************************************************************/
#include "sub_group_mask_common.h"
#define TEST_NAME ... | 28.823529 | 80 | 0.632993 | AidanBeltonS |
08660c13d2cbafde7585fe89836363e170947627 | 3,037 | hpp | C++ | openstudiocore/src/model/ShadingControl.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/model/ShadingControl.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/model/ShadingControl.hpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2013, 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... | 25.957265 | 99 | 0.699374 | bobzabcik |
086774bebde2eb92d95f195791463fd495d45a59 | 1,510 | cpp | C++ | STL/Maps/Maps.cpp | saubhagya0111/Competitive-Progmramming | ca429f0ef89a3e6a93b3cbd7297f1ffae80616ab | [
"MIT"
] | null | null | null | STL/Maps/Maps.cpp | saubhagya0111/Competitive-Progmramming | ca429f0ef89a3e6a93b3cbd7297f1ffae80616ab | [
"MIT"
] | null | null | null | STL/Maps/Maps.cpp | saubhagya0111/Competitive-Progmramming | ca429f0ef89a3e6a93b3cbd7297f1ffae80616ab | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
//Map is used to store the values corresponding to a particular key
//Elements in the map are stored in the sorted order by default to store the keys in unsorted order can be used
map<int, string> m;
m = {{1, "abc"}, {69, "saubhagya"}, {45, "Mor... | 34.318182 | 131 | 0.576159 | saubhagya0111 |
0867dc18da2ac286267eb8ba38d5e7ebb216538c | 1,541 | cpp | C++ | Sources/Uis/UiStartLogo.cpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | 1 | 2019-03-13T08:26:38.000Z | 2019-03-13T08:26:38.000Z | Sources/Uis/UiStartLogo.cpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | null | null | null | Sources/Uis/UiStartLogo.cpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | null | null | null | #include "UiStartLogo.hpp"
#include "Events/EventTime.hpp"
#include "Events/Events.hpp"
#include "Maths/Visual/DriverConstant.hpp"
#include "Maths/Visual/DriverSlide.hpp"
namespace acid
{
UiStartLogo::UiStartLogo(UiObject *parent) :
UiObject(parent, UiBound(Vector2(0.5f, 0.5f), "Centre", true, true, Vector2(1.0f,... | 36.690476 | 326 | 0.713173 | hhYanGG |
086d5d65775a5d530caefde0e90c4b1ee7517857 | 672 | cpp | C++ | libraries/chain/omnibazaar/exchange.cpp | OmniBazaar/OmniCoin2--Core | f54e125f5672519632b7a7cbbddb1123af80a9a4 | [
"MIT"
] | null | null | null | libraries/chain/omnibazaar/exchange.cpp | OmniBazaar/OmniCoin2--Core | f54e125f5672519632b7a7cbbddb1123af80a9a4 | [
"MIT"
] | null | null | null | libraries/chain/omnibazaar/exchange.cpp | OmniBazaar/OmniCoin2--Core | f54e125f5672519632b7a7cbbddb1123af80a9a4 | [
"MIT"
] | null | null | null | #include <exchange.hpp>
namespace omnibazaar {
void exchange_create_operation::validate()const
{
FC_ASSERT( fee.amount >= 0 );
FC_ASSERT( coin_name.length(), "Coin name is empty." );
FC_ASSERT( tx_id.length(), "Transaction ID is empty." );
FC_ASSERT( amount.amount > 0 );
}
... | 28 | 122 | 0.653274 | OmniBazaar |
0877f62c3f61ccaf688236f1a2315bf62a3cd8d7 | 2,829 | cpp | C++ | Sem2/ds/Assignment2/050/3.cpp | shashi-kant10/nit_lab | 2c4c587b23325c26bbf4958b9a19636486ee4b00 | [
"MIT"
] | null | null | null | Sem2/ds/Assignment2/050/3.cpp | shashi-kant10/nit_lab | 2c4c587b23325c26bbf4958b9a19636486ee4b00 | [
"MIT"
] | null | null | null | Sem2/ds/Assignment2/050/3.cpp | shashi-kant10/nit_lab | 2c4c587b23325c26bbf4958b9a19636486ee4b00 | [
"MIT"
] | 1 | 2021-12-23T08:08:04.000Z | 2021-12-23T08:08:04.000Z | // Assignment 2 Program 3
// Shashi Kant | 2021PGCACA050
#include <bits/stdc++.h>
using namespace std;
#define N 1000
// Display Memory storage
void displayMemoryStorage(int a[][N], int r, int c)
{
cout << endl
<< "Memory storage representation" << endl;
// vr : vector that stores rows whose elemen... | 24.815789 | 88 | 0.377519 | shashi-kant10 |
087d5c9cc629f09c552733d042b0baa54a4f7272 | 6,104 | cpp | C++ | src/Core.cpp | Tastyep/SFML-GameCore-2D | 51dfcd7f3a098b2efa76754703999c6b8d22369d | [
"MIT"
] | null | null | null | src/Core.cpp | Tastyep/SFML-GameCore-2D | 51dfcd7f3a098b2efa76754703999c6b8d22369d | [
"MIT"
] | null | null | null | src/Core.cpp | Tastyep/SFML-GameCore-2D | 51dfcd7f3a098b2efa76754703999c6b8d22369d | [
"MIT"
] | null | null | null | #include "Core.hpp"
#include <cstddef>
#include <memory>
#include <utility>
#include <SFML/Window/Event.hpp>
#include <SFML/Window/Keyboard.hpp>
#include "TaskManager/Module.hpp"
#include "GameConstant.hpp"
#include "app/command/CommandDispatcher.hpp"
#include "world/entity/Factory.hpp"
#include "configParser/de... | 26.197425 | 107 | 0.569626 | Tastyep |
0881303d86055f97be1b3572b74b650e237018f7 | 4,848 | cpp | C++ | Code/Libs/HTTP/request_handler.cpp | cpp-rakesh/opendatacon | 0fabe335ab5d358c1c6ea3c5b09437c0b059c38f | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2018-01-23T20:16:03.000Z | 2020-08-01T16:31:56.000Z | Code/Libs/HTTP/request_handler.cpp | cpp-rakesh/opendatacon | 0fabe335ab5d358c1c6ea3c5b09437c0b059c38f | [
"ECL-2.0",
"Apache-2.0"
] | 83 | 2015-07-16T07:41:05.000Z | 2022-02-21T06:26:03.000Z | Code/Libs/HTTP/request_handler.cpp | cpp-rakesh/opendatacon | 0fabe335ab5d358c1c6ea3c5b09437c0b059c38f | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2018-01-22T00:48:53.000Z | 2021-02-03T11:06:39.000Z | //
// request_handler.cpp
// ~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "mime_types.hpp"
#in... | 25.650794 | 141 | 0.667492 | cpp-rakesh |
0889ec82aa4889dbb9e4edb68a5df1db77ed4189 | 970 | cpp | C++ | src-parameter-list/parameter.cpp | XavierCai1996/signal-pool | 16afac9580e38a9a6e2d698382869b11f0322d4e | [
"Apache-2.0"
] | 1 | 2018-10-25T10:10:32.000Z | 2018-10-25T10:10:32.000Z | src-parameter-list/parameter.cpp | XavierCai1996/signal-pool | 16afac9580e38a9a6e2d698382869b11f0322d4e | [
"Apache-2.0"
] | null | null | null | src-parameter-list/parameter.cpp | XavierCai1996/signal-pool | 16afac9580e38a9a6e2d698382869b11f0322d4e | [
"Apache-2.0"
] | null | null | null | #include "parameter.h"
Parameter::~Parameter()
{
#ifdef MEM_SAFE_PARAMETER
m_impls.GetDeleteImpl()(m_value);
#else
FunctionStorage::Delete(m_value, m_verify);
#endif
}
Parameter::Parameter(const Parameter &o)
: m_verify(o.m_verify), m_value(
#ifndef MEM_SAFE_PARAMETER
FunctionStorage::Copy(o.m_value, o.m_verify))... | 19.4 | 56 | 0.745361 | XavierCai1996 |
088f36851b883bf13f6af1a60c195890ce751cb3 | 1,659 | cpp | C++ | src/osc_general.cpp | Zeken/Musical-Tabletop-Coding-Framework | c0e2d64cf3ac6dcf2d0b3e5fe142a7b4c4bab7c5 | [
"MIT"
] | null | null | null | src/osc_general.cpp | Zeken/Musical-Tabletop-Coding-Framework | c0e2d64cf3ac6dcf2d0b3e5fe142a7b4c4bab7c5 | [
"MIT"
] | null | null | null | src/osc_general.cpp | Zeken/Musical-Tabletop-Coding-Framework | c0e2d64cf3ac6dcf2d0b3e5fe142a7b4c4bab7c5 | [
"MIT"
] | null | null | null | #include "osc_general.hpp"
#include "osc_polygon.hpp"
#include "osc_text.hpp"
#include "osc_line.hpp"
#include "ofxGlobalConfig.hpp"
OscGeneral::OscGeneral() : OSCCMD("/mtcf"),
textsize(ofxGlobalConfig::getRef("PROGRAM:TEXTSIZE", 1.0f)){
buildBackground();
}
void OscGeneral::buildBackg... | 23.366197 | 88 | 0.590115 | Zeken |
088f56eda2317ecf733268f19a7a15f4d372730d | 8,224 | cpp | C++ | editor/echo/Editor/UI/ProjectWindow/ProjectWnd.cpp | Texas-C/echo | 486acc57c9149363206a2367c865a2ccbac69975 | [
"MIT"
] | 675 | 2019-02-07T01:23:19.000Z | 2022-03-28T05:45:10.000Z | editor/echo/Editor/UI/ProjectWindow/ProjectWnd.cpp | Texas-C/echo | 486acc57c9149363206a2367c865a2ccbac69975 | [
"MIT"
] | 843 | 2019-01-25T01:06:46.000Z | 2022-03-16T11:15:53.000Z | editor/echo/Editor/UI/ProjectWindow/ProjectWnd.cpp | blab-liuliang/Echo | ba75816e449d2f20a375ed44b0f706a6b7bc21a1 | [
"MIT"
] | 83 | 2019-02-20T06:18:46.000Z | 2022-03-20T09:36:09.000Z | #include <QMessageBox>
#include <QStandardItem>
#include <QDesktopServices>
#include <QPainter>
#include "ProjectWnd.h"
#include <qfiledialog.h>
#include "Studio.h"
#include "Update.h"
#include "MacHelper.h"
#include <engine/core/log/Log.h>
#include <engine/core/util/PathUtil.h>
#include <engine/core/main/game_settings... | 29.266904 | 137 | 0.672544 | Texas-C |
0891683146be2a42bc5c4518261771994520330f | 3,210 | hpp | C++ | boost/lib/include/boost/asio/execution/detail/as_operation.hpp | mamil/demo | 32240d95b80175549e6a1904699363ce672a1591 | [
"MIT"
] | 177 | 2021-02-19T02:01:04.000Z | 2022-03-30T07:31:21.000Z | boost/lib/include/boost/asio/execution/detail/as_operation.hpp | mamil/demo | 32240d95b80175549e6a1904699363ce672a1591 | [
"MIT"
] | 188 | 2021-02-19T04:15:55.000Z | 2022-03-26T09:42:15.000Z | boost/lib/include/boost/asio/execution/detail/as_operation.hpp | mamil/demo | 32240d95b80175549e6a1904699363ce672a1591 | [
"MIT"
] | 78 | 2021-03-05T03:01:13.000Z | 2022-03-29T07:10:01.000Z | //
// execution/detail/as_operation.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
//
#... | 29.722222 | 80 | 0.73053 | mamil |
089592bb6f81385ce46ba7c2ced37396da4af143 | 10,682 | cc | C++ | lib/aligner.cc | ctSkennerton/khmer | f5428c5bdfe009ce39b125fa6e18077c534dc747 | [
"BSD-3-Clause"
] | 1 | 2019-11-02T15:12:44.000Z | 2019-11-02T15:12:44.000Z | lib/aligner.cc | ibest/khmer | fbc307abd64363b329745709846d77444ce0c025 | [
"BSD-3-Clause"
] | null | null | null | lib/aligner.cc | ibest/khmer | fbc307abd64363b329745709846d77444ce0c025 | [
"BSD-3-Clause"
] | null | null | null | //
// This file is part of khmer, http://github.com/ged-lab/khmer/, and is
// Copyright (C) Michigan State University, 2009-2013. It is licensed under
// the three-clause BSD license; see doc/LICENSE.txt.
// Contact: khmer-project@idyll.org
//
#include "aligner.hh"
namespace khmer
{
// http://www.wesleysteiner.com/p... | 29.106267 | 88 | 0.487924 | ctSkennerton |
089b7be83623653d30a06bc6a411760e83a3f0bc | 1,670 | cpp | C++ | Data Structures/segtree + lazy + add + mul.cpp | PauliusGasiukevicius/Algorithms-and-Data-Structures | 11d8e47f8db6a744e4e50065e8fe0c44ca4f0ea2 | [
"MIT"
] | 2 | 2017-11-23T09:36:10.000Z | 2018-08-01T12:10:45.000Z | Data Structures/segtree + lazy + add + mul.cpp | PauliusGasiukevicius/Algorithms-and-Data-Structures | 11d8e47f8db6a744e4e50065e8fe0c44ca4f0ea2 | [
"MIT"
] | null | null | null | Data Structures/segtree + lazy + add + mul.cpp | PauliusGasiukevicius/Algorithms-and-Data-Structures | 11d8e47f8db6a744e4e50065e8fe0c44ca4f0ea2 | [
"MIT"
] | 2 | 2018-08-01T12:11:15.000Z | 2018-12-21T07:43:09.000Z | ll A[200005];
ll seg[4*200005][6]; //[val][mul][add]
//so every node is val*mul + add
//addition: add+=x
//setRange: mul*=0, add+=x;
void build(int c, int l, int r)
{
seg[c][1]=1;
if(l==r)
{
seg[c][0]=A[r];
return;
}
int m = (l+r)/2;
build(2*c,l,m);
build(2*c+1,m+1,r);
... | 21.139241 | 56 | 0.404192 | PauliusGasiukevicius |
089cf528d65570f2f9f6a4b7ad20b8a1a3c7f2bb | 6,397 | cpp | C++ | Firmware/Marlin/src/core/utility.cpp | PavelTajdus/Anet-A8-PLUS-Dual-Color-Rebuild | 76ce07b6c8f52962c1251d40beb6de26301409ef | [
"MIT"
] | 1 | 2019-10-22T11:04:05.000Z | 2019-10-22T11:04:05.000Z | Firmware/Marlin/src/core/utility.cpp | PavelTajdus/Anet-A8-PLUS-Dual-Color-Rebuild | 76ce07b6c8f52962c1251d40beb6de26301409ef | [
"MIT"
] | null | null | null | Firmware/Marlin/src/core/utility.cpp | PavelTajdus/Anet-A8-PLUS-Dual-Color-Rebuild | 76ce07b6c8f52962c1251d40beb6de26301409ef | [
"MIT"
] | 2 | 2019-07-22T20:31:15.000Z | 2021-08-01T00:15:38.000Z | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 31.053398 | 141 | 0.609348 | PavelTajdus |
089eb8c4b76c40311b7ff605da0ad17f80bd4fb5 | 1,907 | cpp | C++ | luogu/1903.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | luogu/1903.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | luogu/1903.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define N 400020
#define ll long long
using namespace std;
inline ll read(){
ll x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
struct nodejs {
ll pos, w;
} ask[N];
struct webp... | 23.256098 | 61 | 0.441007 | swwind |
08a5d07583a211424568c6d97b31cd6567103f59 | 209 | cpp | C++ | game/gameConfig.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | game/gameConfig.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | game/gameConfig.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | #include <stdafx.h>
#include "gameConfig.h"
#include "character.h"
#include "pathfinding/pathfinder.h"
void Configure(MOAIGlobals* globals) {
REGISTER_LUA_CLASS(Character)
REGISTER_LUA_CLASS(Pathfinder)
} | 20.9 | 38 | 0.784689 | jjimenezg93 |
08ac220cf98ce5651f4d13b9018e63792f9b7395 | 222 | cpp | C++ | for(case #n).cpp | honeysquid/programming | 2bf08444d2706c738002d5f3fd726e4a289fe674 | [
"MIT"
] | null | null | null | for(case #n).cpp | honeysquid/programming | 2bf08444d2706c738002d5f3fd726e4a289fe674 | [
"MIT"
] | null | null | null | for(case #n).cpp | honeysquid/programming | 2bf08444d2706c738002d5f3fd726e4a289fe674 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main()
{
int a,b,i;
scanf("%d",&i);
for(i=1; i<=10; i++)
{
while(i<=i)
{
scanf("%d %d", &a, &b);
printf("Case #%d: %d + %d = %d\n",l,a,b,a+b);
l++;
}
}
return 0;
}
| 13.058824 | 48 | 0.387387 | honeysquid |
08b1b0f5990270f4507afcd25cf9a4d451e00216 | 2,237 | hxx | C++ | Legolas/Matrix/MatrixStructures/Diagonal/DiagonalMatrixContainer.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | null | null | null | Legolas/Matrix/MatrixStructures/Diagonal/DiagonalMatrixContainer.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | null | null | null | Legolas/Matrix/MatrixStructures/Diagonal/DiagonalMatrixContainer.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | 1 | 2021-02-11T14:43:25.000Z | 2021-02-11T14:43:25.000Z | /**
* project DESCARTES
*
* @file DiagonalMatrixContainer.hxx
*
* @author Laurent PLAGNE
* @date june 2004 - january 2005
*
* @par Modifications
* - author date object
*
* (c) Copyright EDF R&D - CEA 2001-2005
*/
#ifndef __LEGOLAS_DIAGONALMATRIXCONTAINER_HXX__
#define __LEGOLAS_DIAGONALMATRIXCONT... | 25.420455 | 88 | 0.683952 | LaurentPlagne |
08b7ae9fe7da33e0cee28a342115cc3fd2618f15 | 2,319 | cpp | C++ | LeetCode/SetMatrixZeroes.cpp | Michael-Ma/Coding-Practice | 6ab3d76ae1cd3a97046b399c59d6bf2b135d7b5f | [
"MIT"
] | null | null | null | LeetCode/SetMatrixZeroes.cpp | Michael-Ma/Coding-Practice | 6ab3d76ae1cd3a97046b399c59d6bf2b135d7b5f | [
"MIT"
] | null | null | null | LeetCode/SetMatrixZeroes.cpp | Michael-Ma/Coding-Practice | 6ab3d76ae1cd3a97046b399c59d6bf2b135d7b5f | [
"MIT"
] | null | null | null | #include <sstream>
#include <stdio.h>
#include <string>
#include <cstring>
#include <iostream>
#include <vector>
#include <map>
#include <stack>
#include <queue>
#include <set>
#include <cmath>
#include <algorithm>
#include <cfloat>
#include <climits>
//#include <unordered_set>
//#include <unordered_map>
using names... | 26.965116 | 130 | 0.457094 | Michael-Ma |
08badd4356f3b85cb2f95fa6e2a6b9ceee7b7016 | 19,977 | cpp | C++ | extern/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp | chip5441/clReflect | d366cced2fff9aefcfc5ec6a0c97ed6c827263eb | [
"MIT"
] | null | null | null | extern/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp | chip5441/clReflect | d366cced2fff9aefcfc5ec6a0c97ed6c827263eb | [
"MIT"
] | 1 | 2020-02-22T09:59:21.000Z | 2020-02-22T09:59:21.000Z | extern/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp | chip5441/clReflect | d366cced2fff9aefcfc5ec6a0c97ed6c827263eb | [
"MIT"
] | null | null | null | //===-- MipsISelDAGToDAG.cpp - A Dag to Dag Inst Selector for Mips --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------... | 35.170775 | 82 | 0.598488 | chip5441 |
08be40c8edbf4415282db7f0e44e578e09c4228f | 2,246 | cpp | C++ | code/engine.vc2008/xrGame/Level_network_messages.cpp | StalkerEz/xray-oxygen | 77f7791fa71ad08eacc1330b5441d29cd8ce79ef | [
"Apache-2.0"
] | 6 | 2020-07-06T13:34:28.000Z | 2021-07-12T10:36:23.000Z | code/engine.vc2008/xrGame/Level_network_messages.cpp | StalkerEz/xray-oxygen | 77f7791fa71ad08eacc1330b5441d29cd8ce79ef | [
"Apache-2.0"
] | null | null | null | code/engine.vc2008/xrGame/Level_network_messages.cpp | StalkerEz/xray-oxygen | 77f7791fa71ad08eacc1330b5441d29cd8ce79ef | [
"Apache-2.0"
] | 5 | 2020-10-18T11:55:26.000Z | 2022-03-28T07:21:35.000Z | #include "stdafx.h"
#include "entity.h"
#include "xrserver_objects.h"
#include "level.h"
#include "xrmessages.h"
#include "net_queue.h"
#include "xrServer.h"
#include "Actor.h"
#include "Artefact.h"
#include "ai_space.h"
#include "saved_game_wrapper.h"
#include "level_graph.h"
#include "../xrphysics/iphworld.h"
#inclu... | 23.395833 | 93 | 0.599288 | StalkerEz |
08c15099d5f35ebbc591bd1b501cdfcaf03f4305 | 1,563 | cpp | C++ | source/Graphics/Windows/WindowsCpuWindow.cpp | JordanCpp/LDL | 39048ea4af28970e274a71e08fa57725b28d34c7 | [
"BSL-1.0"
] | null | null | null | source/Graphics/Windows/WindowsCpuWindow.cpp | JordanCpp/LDL | 39048ea4af28970e274a71e08fa57725b28d34c7 | [
"BSL-1.0"
] | null | null | null | source/Graphics/Windows/WindowsCpuWindow.cpp | JordanCpp/LDL | 39048ea4af28970e274a71e08fa57725b28d34c7 | [
"BSL-1.0"
] | null | null | null | #include "../include/LDL/Graphics/Windows/WindowsCpuWindow.h"
LDL::Graphics::WindowsCpuWindow::WindowsCpuWindow(const Point& pos, const Point& size, const std::string& title):
_WindowsWindow(pos, size, title)
{
}
LDL::Graphics::WindowsCpuWindow::~WindowsCpuWindow()
{
}
void LDL::Graphics::WindowsCpuWindow::Prese... | 28.944444 | 186 | 0.723608 | JordanCpp |
08c25cdf19274a6fa452a1e0267b31430639acf8 | 1,475 | cpp | C++ | Scheduler/main.cpp | maxkofler/AVRScheduler | 122a3138ba2536dc383a6eb4d560551df05cd37f | [
"Apache-2.0"
] | null | null | null | Scheduler/main.cpp | maxkofler/AVRScheduler | 122a3138ba2536dc383a6eb4d560551df05cd37f | [
"Apache-2.0"
] | null | null | null | Scheduler/main.cpp | maxkofler/AVRScheduler | 122a3138ba2536dc383a6eb4d560551df05cd37f | [
"Apache-2.0"
] | null | null | null | /*
* Scheduler.cpp
*
* Created: 01.06.2021 19:57:05
* Author : Kofle
*/
#include <avr/io.h>
#include "scheduler.h"
#include <avr/interrupt.h>
void proc1();
void proc2();
void sleep(int ms);
#define F_CPU 16000000
#define sl_12 1
#define sl_13 150
ISR (TIMER1_OVF_vect) // Timer1 ISR
{
asm volatile("pop r... | 17.352941 | 89 | 0.623051 | maxkofler |
08c337c585adafd686ae293be516c148f1237d56 | 1,277 | hpp | C++ | rt/include/spiral/fun.hpp | honzasp/spiral | ed506c02aa90a248799f6b84fb0de19ad6f396ab | [
"Unlicense"
] | 3 | 2018-01-11T07:30:41.000Z | 2019-09-19T04:40:59.000Z | rt/include/spiral/fun.hpp | honzasp/spiral | ed506c02aa90a248799f6b84fb0de19ad6f396ab | [
"Unlicense"
] | null | null | null | rt/include/spiral/fun.hpp | honzasp/spiral | ed506c02aa90a248799f6b84fb0de19ad6f396ab | [
"Unlicense"
] | null | null | null | #ifndef HAVE_spiral_fun_hpp
#define HAVE_spiral_fun_hpp
#include "spiral/core.hpp"
namespace spiral {
struct FunObj {
const ObjTable* otable;
void* fun_addr;
Val captures[0];
};
struct FunTable {
uint32_t slot_count;
uint32_t arg_count;
uint32_t capture_count;
const char* fun_name;
... | 28.377778 | 73 | 0.700861 | honzasp |
08c68e4ed61c47c638f9dfd7d6f16ab481b5a207 | 27,308 | cpp | C++ | propcov/lib/propcov-cpp/Spacecraft.cpp | EarthObservationSimulator/orbits | b476762532f8644b9fe0723760b5202ab77a4547 | [
"Apache-2.0"
] | 4 | 2021-12-23T16:49:06.000Z | 2022-02-09T21:36:31.000Z | propcov/lib/propcov-cpp/Spacecraft.cpp | EarthObservationSimulator/orbits | b476762532f8644b9fe0723760b5202ab77a4547 | [
"Apache-2.0"
] | 15 | 2022-01-14T17:28:14.000Z | 2022-02-11T02:39:25.000Z | propcov/lib/propcov-cpp/Spacecraft.cpp | EarthObservationSimulator/orbits | b476762532f8644b9fe0723760b5202ab77a4547 | [
"Apache-2.0"
] | 1 | 2022-02-03T15:44:16.000Z | 2022-02-03T15:44:16.000Z | //------------------------------------------------------------------------------
// Spacecraft
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2017 United States Government as represented by the... | 33.922981 | 185 | 0.454299 | EarthObservationSimulator |
08c804512a8249c8bf55bd060a50b5315159a412 | 709 | cpp | C++ | tests/format-io-tests/molality-tests/molality-tests.cpp | LoliGothick/mitama-dimensional | 46b9ae3764bd472da9ed5372afd82e6b5d542543 | [
"MIT"
] | 34 | 2019-01-18T11:51:02.000Z | 2021-09-17T02:46:43.000Z | tests/format-io-tests/molality-tests/molality-tests.cpp | LoliGothick/mitama-dimensional | 46b9ae3764bd472da9ed5372afd82e6b5d542543 | [
"MIT"
] | 11 | 2019-02-10T23:12:07.000Z | 2019-05-06T21:05:09.000Z | tests/format-io-tests/molality-tests/molality-tests.cpp | LoliGothick/mitama-dimensional | 46b9ae3764bd472da9ed5372afd82e6b5d542543 | [
"MIT"
] | 5 | 2019-02-27T11:53:20.000Z | 2021-03-20T21:59:59.000Z | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <mitama/dimensional/systems/si/derived_units/molality.hpp>
#include <mitama/dimensional/systems/si/quantity.hpp>
#include "../format_io_common.hpp"
TEST_CASE("molality format test", "[quantity][abbreviation]") {
REQUIRE(fmt(1 | systems::si::molality_t{})... | 44.3125 | 167 | 0.726375 | LoliGothick |
08c88e5fda9f8ccdb2a6d1132f16ab8aaf1b94a0 | 3,062 | cpp | C++ | contrib/opensigcomp/src/test/test_osc_ReadWriteLockable.cpp | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 1 | 2019-04-15T14:10:58.000Z | 2019-04-15T14:10:58.000Z | contrib/opensigcomp/src/test/test_osc_ReadWriteLockable.cpp | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | null | null | null | contrib/opensigcomp/src/test/test_osc_ReadWriteLockable.cpp | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 2 | 2019-10-31T09:11:09.000Z | 2021-09-17T01:00:49.000Z | /* ***********************************************************************
Open SigComp -- Implementation of RFC 3320 Signaling Compression
Copyright 2005 Estacado Systems, LLC
Your use of this code is governed by the license under which it
has been provided to you. Unless you have a written and signed
... | 28.091743 | 75 | 0.676682 | dulton |
c0941f5596bbe947a367cb3df6a777e5ab9e4acf | 841 | cpp | C++ | euler076.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | euler076.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | euler076.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | /**
* Problem 76 「和の数え上げ」
* 5は数の和として6通りに書くことができる:
*
* 4 + 1
* 3 + 2
* 3 + 1 + 1
* 2 + 2 + 1
* 2 + 1 + 1 + 1
* 1 + 1 + 1 + 1 + 1
*
* 2つ以上の正整数の和としての100の表し方は何通りか.
*/
#include <array>
#include <cstdint>
#include <iostream>
using uInt = std::uint_fast64_t;
// 類題: Problem 31 「硬貨の和」
// -> e076では,硬貨が 1,2,...,99 ... | 18.282609 | 60 | 0.51962 | suihan74 |
c0956a1b2bcc20bb25c68a54d25ecc618f41ba7e | 2,796 | cpp | C++ | src/animation/property_animation.cpp | santaclose/LumixEngine | f163e673d7ebc451c134db8d2fbb55ac38962137 | [
"MIT"
] | 3,112 | 2015-01-15T20:19:35.000Z | 2022-03-31T15:16:27.000Z | src/animation/property_animation.cpp | santaclose/LumixEngine | f163e673d7ebc451c134db8d2fbb55ac38962137 | [
"MIT"
] | 996 | 2015-01-02T22:19:35.000Z | 2022-03-20T09:57:46.000Z | src/animation/property_animation.cpp | santaclose/LumixEngine | f163e673d7ebc451c134db8d2fbb55ac38962137 | [
"MIT"
] | 445 | 2015-08-22T14:24:37.000Z | 2022-03-25T08:42:07.000Z | #include "animation/property_animation.h"
#include "engine/crc32.h"
#include "engine/allocator.h"
#include "engine/log.h"
#include "engine/lua_wrapper.h"
#include "engine/reflection.h"
#include "engine/stream.h"
namespace Lumix {
const ResourceType PropertyAnimation::TYPE("property_animation");
PropertyAnimation::... | 27.145631 | 112 | 0.667382 | santaclose |
c0a03fe1ce84519dc37c704250cc1ec04c849015 | 1,069 | cpp | C++ | Misc/Overloading/OperatorOverloading.cpp | karan2808/Cpp | 595f536e33505c5fd079b709d6370bf888043fb3 | [
"MIT"
] | 1 | 2021-01-25T14:26:56.000Z | 2021-01-25T14:26:56.000Z | Misc/Overloading/OperatorOverloading.cpp | karan2808/Cpp | 595f536e33505c5fd079b709d6370bf888043fb3 | [
"MIT"
] | null | null | null | Misc/Overloading/OperatorOverloading.cpp | karan2808/Cpp | 595f536e33505c5fd079b709d6370bf888043fb3 | [
"MIT"
] | 1 | 2021-01-25T14:27:08.000Z | 2021-01-25T14:27:08.000Z | /**
* Operator Overloading: C++ provides option to overload operators. For example, we can make the operator ('+') for string
* class to concatenate two strings. We know that this is the addition operator whose task is to add two operands. So a
* single operator '+' when placed between integer operands, adds them an... | 26.073171 | 124 | 0.631431 | karan2808 |
c0a4dbd689af39b383447b0fa329612225b047bc | 611 | cpp | C++ | archive/3/zagadka_nicola_tartaglii.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | archive/3/zagadka_nicola_tartaglii.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | archive/3/zagadka_nicola_tartaglii.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int I;
int main()
{
I n;
cin >> n;
for(I i = 0; i < n; ++i) {
I p, q;
cin >> p >> q;
I lo = 0, hi = (I)2e6;
while(lo < hi) {
I x = (lo + hi) / 2;
I val = x * x * x + p * x;
... | 15.275 | 38 | 0.292962 | Aleshkev |
c0a83fd79ff515bf99d880c5192957f50bcf136b | 42,679 | cc | C++ | src_fused/ozz_animation_fbx.cc | fabiopolimeni/ozz-animation | 7199d867be158b977e3ef5958ca3cf96e4dd5da7 | [
"MIT"
] | null | null | null | src_fused/ozz_animation_fbx.cc | fabiopolimeni/ozz-animation | 7199d867be158b977e3ef5958ca3cf96e4dd5da7 | [
"MIT"
] | null | null | null | src_fused/ozz_animation_fbx.cc | fabiopolimeni/ozz-animation | 7199d867be158b977e3ef5958ca3cf96e4dd5da7 | [
"MIT"
] | null | null | null | // This file is autogenerated. Do not modify it.
// Including fbx.cc file.
//----------------------------------------------------------------------------//
// //
// ozz-animation is hosted at http://github.com/guillaumeblanc/ozz-animation //
... | 41.395732 | 80 | 0.580567 | fabiopolimeni |
c0aa02476b6307647f8b625382d734fcebd0bb07 | 888 | cpp | C++ | test/std/utilities/memory/allocator.tag/allocator_arg.fail.cpp | K-Wu/libcxx.doc | c3c0421b2a9cc003146e847d0b8dd3a37100f39a | [
"Apache-2.0"
] | null | null | null | test/std/utilities/memory/allocator.tag/allocator_arg.fail.cpp | K-Wu/libcxx.doc | c3c0421b2a9cc003146e847d0b8dd3a37100f39a | [
"Apache-2.0"
] | null | null | null | test/std/utilities/memory/allocator.tag/allocator_arg.fail.cpp | K-Wu/libcxx.doc | c3c0421b2a9cc003146e847d0b8dd3a37100f39a | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 29.6 | 117 | 0.582207 | K-Wu |
c0ac781a6b9b30a9a05e3eddf8ba0775de723dd3 | 416 | cpp | C++ | YorozuyaGSLib/source/_be_damaged_player.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_be_damaged_player.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_be_damaged_player.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_be_damaged_player.hpp>
START_ATF_NAMESPACE
_be_damaged_player::_be_damaged_player()
{
using org_ptr = void (WINAPIV*)(struct _be_damaged_player*);
(org_ptr(0x14013e450L))(this);
};
void _be_damaged_player::ctor__be_damaged_player()
{
using org_ptr = void (WINAPIV... | 26 | 68 | 0.685096 | lemkova |
c0aeb25758531829c5eb13205d2612aff196252a | 441 | cpp | C++ | fuzzing/macho_fuzzer.cpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | fuzzing/macho_fuzzer.cpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | fuzzing/macho_fuzzer.cpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | #include <LIEF/LIEF.hpp>
#include <memory>
#include <vector>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
std::vector<uint8_t> raw = {data, data + size};
std::unique_ptr<LIEF::MachO::FatBinary> binaries;
try {
binaries = std::unique_ptr<LIEF::MachO::FatBinary>(
LIEF::Mach... | 27.5625 | 73 | 0.650794 | ahawad |
c0b030a6ccb2e105111a88450fa72c8780ca95c3 | 17,011 | cpp | C++ | Assets/IntermediateAssets.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | 1 | 2016-06-01T10:41:12.000Z | 2016-06-01T10:41:12.000Z | Assets/IntermediateAssets.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | null | null | null | Assets/IntermediateAssets.cpp | yorung/XLE | 083ce4c9d3fe32002ff5168e571cada2715bece4 | [
"MIT"
] | null | null | null | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#define _SCL_SECURE_NO_WARNINGS
#include "IntermediateAssets.h"
#include "CompileAndAsyncManager.h" // for ~PendingCompileMarker -- remo... | 41.089372 | 160 | 0.566927 | yorung |
c0bb6990f38f0d6965cf7b5c113f566e2378cd62 | 483 | cpp | C++ | lib/hyperscale/syntax/token_kinds.cpp | hyperscale/hyperscale | 0ae6eaa7ef93af665a60fff14cb35afefb4124aa | [
"MIT"
] | 3 | 2018-05-07T00:53:05.000Z | 2019-05-27T20:02:28.000Z | lib/hyperscale/syntax/token_kinds.cpp | hyperscale/hyperscale | 0ae6eaa7ef93af665a60fff14cb35afefb4124aa | [
"MIT"
] | 1 | 2018-05-05T23:55:31.000Z | 2021-07-20T22:28:15.000Z | lib/hyperscale/syntax/token_kinds.cpp | hyperscale/hyperscale | 0ae6eaa7ef93af665a60fff14cb35afefb4124aa | [
"MIT"
] | null | null | null | /**
* Hyperscale
*
* (c) 2015-2017 Axel Etcheverry
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#include <type_traits>
#include <hyperscale/syntax/token_kinds.hpp>
namespace hyperscale {
namespace syntax {
std::ostream& o... | 21.954545 | 74 | 0.699793 | hyperscale |
c0bc83e40ba2292e5c54cded354f36c1e7816cb7 | 560 | cpp | C++ | C++/ways-to-make-a-fair-array.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/ways-to-make-a-fair-array.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/ways-to-make-a-fair-array.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n)
// Space: O(1)
class Solution {
public:
int waysToMakeFair(vector<int>& nums) {
vector<int> prefix(2), suffix(2);
for (int k = 0; k < 2; ++k) {
for (int i = k; i < size(nums); i += 2) {
suffix[k] += nums[i];
}
}
int result = 0;
... | 25.454545 | 74 | 0.410714 | Priyansh2 |
c0bd295b1b1ad41aaeaaba9d5bff134727a1068c | 406 | cpp | C++ | solutions/246.strobogrammatic-number.364981221.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/246.strobogrammatic-number.364981221.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/246.strobogrammatic-number.364981221.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
bool isStrobogrammatic(string num) {
unordered_map<char, char> mp = {
{'6', '9'}, {'9', '6'}, {'8', '8'}, {'0', '0'}, {'1', '1'},
};
int n = num.size();
for (int i = 0; i < n; i++) {
if (!mp.count(num[i]) || !mp.count(num[n - i - 1]))
return false;
... | 23.882353 | 67 | 0.433498 | satu0king |
c0bedab87d7b43265bc00cbfe4eb3018943cca03 | 9,937 | cc | C++ | SourceCode/src/app/tide/mass_constants.cc | Tide-for-PTM-search/Tide-for-PTM-search | b41957fec1ed333ae976e8d5b14c1c7cd481fc75 | [
"Apache-2.0"
] | 8 | 2018-02-26T00:56:14.000Z | 2021-10-31T03:45:53.000Z | SourceCode/src/app/tide/mass_constants.cc | Tide-for-PTM-search/Tide-for-PTM-search | b41957fec1ed333ae976e8d5b14c1c7cd481fc75 | [
"Apache-2.0"
] | null | null | null | SourceCode/src/app/tide/mass_constants.cc | Tide-for-PTM-search/Tide-for-PTM-search | b41957fec1ed333ae976e8d5b14c1c7cd481fc75 | [
"Apache-2.0"
] | null | null | null | #include <limits>
#include "io/carp.h"
#include "mass_constants.h"
#include "header.pb.h"
#include "stdio.h"
using namespace std;
double const MassConstants::proton = 1.00727646688;
double const MassConstants::kFixedPointScalar = 1e5;
const double MassConstants::elts_mono[] = {
1.007825035, // H
12.0, // ... | 36.399267 | 100 | 0.658348 | Tide-for-PTM-search |
c0c1e584aabd5f3ac8a663c82729d52c056cb51e | 8,850 | cpp | C++ | node/functionaltests/send_wrong_tx_test.cpp | hadescoincom/hds-core | 383a38da9a5e40de66ba2277b54fea41b7c32537 | [
"Apache-2.0"
] | null | null | null | node/functionaltests/send_wrong_tx_test.cpp | hadescoincom/hds-core | 383a38da9a5e40de66ba2277b54fea41b7c32537 | [
"Apache-2.0"
] | null | null | null | node/functionaltests/send_wrong_tx_test.cpp | hadescoincom/hds-core | 383a38da9a5e40de66ba2277b54fea41b7c32537 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Hds Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 18.829787 | 80 | 0.638757 | hadescoincom |
c0c1f6997d8097eef2caaa5ae8ef123c0b30389b | 6,090 | cpp | C++ | ngraph/test/backend/space_to_depth.in.cpp | uikilin100/openvino | afc5191b8c75b1de4adc8cb07c6269b52882ddfe | [
"Apache-2.0"
] | 1 | 2021-12-30T05:47:43.000Z | 2021-12-30T05:47:43.000Z | ngraph/test/backend/space_to_depth.in.cpp | uikilin100/openvino | afc5191b8c75b1de4adc8cb07c6269b52882ddfe | [
"Apache-2.0"
] | 42 | 2020-11-23T08:09:57.000Z | 2022-02-21T13:03:34.000Z | ngraph/test/backend/space_to_depth.in.cpp | tsocha/openvino | 3081fac7581933568b496a3c4e744d1cee481619 | [
"Apache-2.0"
] | 4 | 2021-04-02T08:48:38.000Z | 2021-07-01T06:59:02.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "gtest/gtest.h"
#include "ngraph/op/space_to_depth.hpp"
#include "util/engine/test_engines.hpp"
#include "util/test_case.hpp"
#include "util/test_control.hpp"
using namespace ngraph;
static std::string s_manifest = "${MAN... | 55.363636 | 118 | 0.58555 | uikilin100 |
c0c2d64937611ef52e171082ad849068ea8cf7a1 | 9,965 | cc | C++ | src/cvplot/window.cc | TimmvonderMehden/caffe2_cpp_tutorial | d207768adaf13ae6bc8e49ba0868234001a43ce9 | [
"BSD-2-Clause"
] | 23 | 2020-09-10T14:33:18.000Z | 2022-03-09T09:07:30.000Z | src/cvplot/window.cc | TimmvonderMehden/caffe2_cpp_tutorial | d207768adaf13ae6bc8e49ba0868234001a43ce9 | [
"BSD-2-Clause"
] | 2 | 2020-09-11T03:01:20.000Z | 2020-09-30T03:04:19.000Z | src/cvplot/window.cc | TimmvonderMehden/caffe2_cpp_tutorial | d207768adaf13ae6bc8e49ba0868234001a43ce9 | [
"BSD-2-Clause"
] | 7 | 2020-09-17T20:53:50.000Z | 2021-11-19T15:32:49.000Z | #include "cvplot/window.h"
#include "internal.h"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <ctime>
namespace cvplot {
namespace {
Window *shared_window = NULL;
int shared_index = 0;
clock_t shared_time = clock();
} // namespace
float runtime() { return (float)(clock() ... | 25.291878 | 80 | 0.598093 | TimmvonderMehden |
c0c3ca34fb0f1c55cb67b0693de9e42d5b6503cf | 731 | cpp | C++ | src/BasicLNS.cpp | YimingXieUSC/curve_lns | 5ac334a3500a9d7582bca6310ef13e0f6a117417 | [
"MIT"
] | 8 | 2021-12-29T03:42:37.000Z | 2022-02-17T00:39:26.000Z | src/BasicLNS.cpp | YimingXieUSC/curve_lns | 5ac334a3500a9d7582bca6310ef13e0f6a117417 | [
"MIT"
] | null | null | null | src/BasicLNS.cpp | YimingXieUSC/curve_lns | 5ac334a3500a9d7582bca6310ef13e0f6a117417 | [
"MIT"
] | 1 | 2022-02-26T00:20:38.000Z | 2022-02-26T00:20:38.000Z | #include "BasicLNS.h"
BasicLNS::BasicLNS(const Instance& instance, double time_limit, int neighbor_size, int screen) :
instance(instance), time_limit(time_limit), neighbor_size(neighbor_size), screen(screen) {}
void BasicLNS::rouletteWheel()
{
double sum = 0;
for (const auto& h : destroy_weights)
... | 29.24 | 99 | 0.612859 | YimingXieUSC |
c0c464b1d1141fbac983bb1aefe32332d7194361 | 1,266 | cc | C++ | burger/net/tests/tcpConnection_test01.cc | BurgerGroup/Burger | b9159ea8855122a32091d40eb24439456f8879a9 | [
"MIT"
] | 30 | 2021-05-07T16:54:30.000Z | 2022-03-12T01:55:49.000Z | burger/net/tests/tcpConnection_test01.cc | chanchann/Burger | b9159ea8855122a32091d40eb24439456f8879a9 | [
"MIT"
] | 1 | 2021-07-27T16:27:14.000Z | 2021-07-27T16:27:14.000Z | burger/net/tests/tcpConnection_test01.cc | chanchann/Burger | b9159ea8855122a32091d40eb24439456f8879a9 | [
"MIT"
] | 9 | 2021-06-07T09:20:46.000Z | 2022-03-01T06:30:36.000Z | #include "burger/net/TcpServer.h"
#include "burger/net/EventLoop.h"
#include "burger/net/InetAddress.h"
#include <iostream>
using namespace burger;
using namespace burger::net;
void onConnection(const TcpConnectionPtr& conn) {
if(conn->isConnected()) {
std::cout << "onConnection(): new connection ["
... | 32.461538 | 76 | 0.596367 | BurgerGroup |
c0c5057bdf6c8388eb0c9d6a21f9fa960e46d911 | 690 | cpp | C++ | 202105/2/_88_MergeSortedArray.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | 202105/2/_88_MergeSortedArray.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | 202105/2/_88_MergeSortedArray.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | //
// Created by GYC on 2021/5/11.
//
#include "../../common.h"
class Solution {
public:
void merge(vector<int> &nums1, int m, vector<int> &nums2, int n) {
int i = m - 1, j = n - 1, curr = m + n - 1;
while (i > -1 || j > -1) {
if (i == -1) {
nums1[curr--] = nums2[j--];
... | 23 | 70 | 0.385507 | uaniheng |
c0c51a8dfd23552cb35c4b8498c010596b1fc269 | 637 | cpp | C++ | MOFA/Utility/Global.cpp | C6H5-NO2/MOFA | dcd6c886a255e49986f0914e2bca6bee6f628b45 | [
"MIT"
] | 1 | 2021-04-03T11:57:50.000Z | 2021-04-03T11:57:50.000Z | MOFA/Utility/Global.cpp | C6H5-NO2/MOFA | dcd6c886a255e49986f0914e2bca6bee6f628b45 | [
"MIT"
] | null | null | null | MOFA/Utility/Global.cpp | C6H5-NO2/MOFA | dcd6c886a255e49986f0914e2bca6bee6f628b45 | [
"MIT"
] | null | null | null | #include "Global.h"
#include "../Instruction/InstructionSet.h"
#include "../Register/RegisterFile.h"
namespace MOFA {
std::unique_ptr<const InstructionSet> Global::instrset(new InstructionSet);
std::unique_ptr<const RegisterFile> Global::regfile(new RegisterFile);
const InstructionSet& Global::getInstruct... | 30.333333 | 79 | 0.675039 | C6H5-NO2 |
c0c82851489233e5d903c38dafc04e8a1aa7ca29 | 1,167 | cpp | C++ | 901-1000/909. Snakes and Ladders.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 901-1000/909. Snakes and Ladders.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 901-1000/909. Snakes and Ladders.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | class Solution
{
public:
int snakesAndLadders(vector<vector<int>> &board)
{
int N = board.size();
vector<int> f(N * N, INT_MAX);
vector<int> newBoard(N * N);
bool flag = true;
for (int i = N - 1, idx = 0; i >= 0; --i)
{
if (flag)
{
for (int j = 0; j < N; ++j)
{
... | 22.442308 | 71 | 0.394173 | erichuang1994 |
c0c856faa76e7349d27b8bedd53061330e06eec6 | 807 | hh | C++ | src/GSPH/computeSPHVolume.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/GSPH/computeSPHVolume.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 17 | 2020-01-05T08:41:46.000Z | 2020-09-18T00:08:32.000Z | src/GSPH/computeSPHVolume.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// Compute the volume from m/rho
//----------------------------------------------------------------------------//
#ifndef __Spheral__computeSPHVolume__
#define __Spheral__computeSPHVolume__
#include <vector>
namespace Spheral {
// Fo... | 29.888889 | 85 | 0.612144 | jmikeowen |
c0c85bcfa6119b430f880454108b4ea9b1a2c31d | 10,954 | cpp | C++ | engine/test/qlcphysical/qlcphysical_test.cpp | bgnt44/qlcplus2020 | f0906ca725e0bae5b012a30188658e4f406355e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | engine/test/qlcphysical/qlcphysical_test.cpp | bgnt44/qlcplus2020 | f0906ca725e0bae5b012a30188658e4f406355e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | engine/test/qlcphysical/qlcphysical_test.cpp | bgnt44/qlcplus2020 | f0906ca725e0bae5b012a30188658e4f406355e1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Q Light Controller Plus - Unit tests
qlcphysical_test.cpp
Copyright (C) Heikki Junnila
Massimo Callegari
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:/... | 29.605405 | 99 | 0.638853 | bgnt44 |
c0c9ce9a061f87433336e6993ecdaacb2c09de84 | 2,325 | cpp | C++ | central_control_ui/src/ClientGroupWidget.cpp | DeepBlue14/usar_system | a1b3d78a65f064be897f75dfc5f4dad4214f9d74 | [
"MIT"
] | null | null | null | central_control_ui/src/ClientGroupWidget.cpp | DeepBlue14/usar_system | a1b3d78a65f064be897f75dfc5f4dad4214f9d74 | [
"MIT"
] | null | null | null | central_control_ui/src/ClientGroupWidget.cpp | DeepBlue14/usar_system | a1b3d78a65f064be897f75dfc5f4dad4214f9d74 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2016 James T. Kuczynski
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "../include/central_control_ui/ClientGroupWidget.h"
ClientGroupWidget::ClientGroupWidget(cct::Group group, QWidget* parent) : QWidget(p... | 25.549451 | 130 | 0.568172 | DeepBlue14 |
c0ca8a723454a2a120856cba148969f629c09a8a | 3,332 | hxx | C++ | opencascade/IGESSolid_SolidOfRevolution.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/IGESSolid_SolidOfRevolution.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/IGESSolid_SolidOfRevolution.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 1993-01-09
// Created by: CKY / Contract Toubro-Larsen ( SIVA )
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
... | 29.75 | 150 | 0.756002 | mgreminger |
c0cd632e3f84ba880c6ef9dfa0cea6c444c0f5a7 | 4,044 | cpp | C++ | parser.cpp | kwQt/dummyscope | 160010342e87fb1578f707b97812af9d34814d76 | [
"MIT"
] | 1 | 2020-07-17T05:17:07.000Z | 2020-07-17T05:17:07.000Z | parser.cpp | kwQt/dummyscope | 160010342e87fb1578f707b97812af9d34814d76 | [
"MIT"
] | null | null | null | parser.cpp | kwQt/dummyscope | 160010342e87fb1578f707b97812af9d34814d76 | [
"MIT"
] | null | null | null | #include "parser.hpp"
Parser::Parser(std::string filename) {
lexer = std::make_unique<Lexer>(filename);
lexer->lexicalAnalysis();
curToken = lexer->getCurToken();
peekToken = lexer->getNextToken();
TU = std::make_unique<TranslationUnitAST>();
}
void Parser::nextToken() {
curToken = peekToken;
peekToken ... | 22.977273 | 104 | 0.675321 | kwQt |
c0ced3675f78580ef8591e1eb19ad0d01bcdf97d | 19,511 | cxx | C++ | Source/igtlPolyDataMessage.cxx | leochan2009/OpenIGTLinkPointCloud | 5243294af41d06d26008bdce5e34934a364b49e1 | [
"BSD-3-Clause"
] | null | null | null | Source/igtlPolyDataMessage.cxx | leochan2009/OpenIGTLinkPointCloud | 5243294af41d06d26008bdce5e34934a364b49e1 | [
"BSD-3-Clause"
] | null | null | null | Source/igtlPolyDataMessage.cxx | leochan2009/OpenIGTLinkPointCloud | 5243294af41d06d26008bdce5e34934a364b49e1 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: The OpenIGTLink Library
Language: C++
Web page: http://openigtlink.org/
Copyright (c) Insight Software Consortium. All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warr... | 20.934549 | 110 | 0.61268 | leochan2009 |
c0cee2c0c3699106de34766243016051f832b6d7 | 1,077 | cpp | C++ | docs/MainScreen/ProductControlGUI/mainwindow.cpp | Chesterdelang/I-OSM-Project-19-20-S1-Groep4 | d8c0a4582074243f93220b356b7000fb6ebf1df5 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | docs/MainScreen/ProductControlGUI/mainwindow.cpp | Chesterdelang/I-OSM-Project-19-20-S1-Groep4 | d8c0a4582074243f93220b356b7000fb6ebf1df5 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | docs/MainScreen/ProductControlGUI/mainwindow.cpp | Chesterdelang/I-OSM-Project-19-20-S1-Groep4 | d8c0a4582074243f93220b356b7000fb6ebf1df5 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | #include "mainwindow.hpp"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_actionLoad_triggered()
{
// QString fileName = QFileDialog::getOpenFileNa... | 17.370968 | 92 | 0.651811 | Chesterdelang |
c0d07de53c382a09dfa747d97b9d1107ef530185 | 7,804 | cpp | C++ | sdl2/BattleCitySDL/src/GameTimer.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/BattleCitySDL/src/GameTimer.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/BattleCitySDL/src/GameTimer.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include "GameTimer.h"
#include "Game.h"
using namespace std;
void GameTimer::Init() {
enemySpawnTime = 3;
currentEnemyTime = 2.5;
playerSpawnTime = 1;
currentPlayerTime = 0;
nextmapChangeTime = 3;
currentNextmapTime = 0;
currentLevelProtectTime = 0;
levelProtectTime... | 37.161905 | 165 | 0.561379 | pdpdds |
c0d0edbfa879bce4ad26fc4cd0a7ed65deb6b63f | 2,343 | cpp | C++ | src/smtrat-mcsat/assignments/arithmetic/AssignmentFinder.cpp | modass/smtrat | 2e6909bb764cf30d6afc231a2d447dfc13f3fa40 | [
"MIT"
] | null | null | null | src/smtrat-mcsat/assignments/arithmetic/AssignmentFinder.cpp | modass/smtrat | 2e6909bb764cf30d6afc231a2d447dfc13f3fa40 | [
"MIT"
] | null | null | null | src/smtrat-mcsat/assignments/arithmetic/AssignmentFinder.cpp | modass/smtrat | 2e6909bb764cf30d6afc231a2d447dfc13f3fa40 | [
"MIT"
] | null | null | null | #include "AssignmentFinder.h"
#include "AssignmentFinder_arithmetic.h"
namespace smtrat {
namespace mcsat {
namespace arithmetic {
boost::optional<AssignmentOrConflict> AssignmentFinder::operator()(const mcsat::Bookkeeping& data, carl::Variable var) const {
SMTRAT_LOG_DEBUG("smtrat.mcsat.arithmetic", "Looking for a... | 33.471429 | 136 | 0.682885 | modass |
c0d0f8c9ac7cd461fb20f71d4e338a3622a08df0 | 78 | cpp | C++ | src/Duration.cpp | DarkBlackJPG/Virtual-Piano | 08d9989113af8c2c1084a0840301dd0d34c5cb02 | [
"MIT"
] | null | null | null | src/Duration.cpp | DarkBlackJPG/Virtual-Piano | 08d9989113af8c2c1084a0840301dd0d34c5cb02 | [
"MIT"
] | null | null | null | src/Duration.cpp | DarkBlackJPG/Virtual-Piano | 08d9989113af8c2c1084a0840301dd0d34c5cb02 | [
"MIT"
] | null | null | null | #include "Duration.h"
Duration::Duration()
{
}
Duration::~Duration()
{
}
| 6 | 21 | 0.615385 | DarkBlackJPG |
c0d1259116af35538d274f525bfc8b8e4119dbf3 | 33,507 | cpp | C++ | rev/asset_manager/dds_loader.cpp | Roman-Skabin/REV | adfa0a742525784d66f98ff5b0d157343e5f1cf4 | [
"BSD-4-Clause"
] | 2 | 2020-12-12T20:37:32.000Z | 2022-01-06T22:20:30.000Z | rev/asset_manager/dds_loader.cpp | Roman-Skabin/REV | adfa0a742525784d66f98ff5b0d157343e5f1cf4 | [
"BSD-4-Clause"
] | null | null | null | rev/asset_manager/dds_loader.cpp | Roman-Skabin/REV | adfa0a742525784d66f98ff5b0d157343e5f1cf4 | [
"BSD-4-Clause"
] | null | null | null | // Copyright (c) 2020-2021, Roman-Skabin
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE.md file in the root directory of this source tree.
#include "core/pch.h"
#include "asset_manager/asset_manager.h"
#include "graphics/graphics_api.h"
#include "core/s... | 45.27973 | 148 | 0.493091 | Roman-Skabin |
c0d1f511d6322037a1efebf0e88c27bda31791f3 | 1,256 | cpp | C++ | Question 0160 Intersection Of Two Linked Lists/main.cpp | toby0622/Leetcode-Practicing | dd2b3fd2e1aba601abf2c7a308c4d1d1b5f9015e | [
"MIT"
] | null | null | null | Question 0160 Intersection Of Two Linked Lists/main.cpp | toby0622/Leetcode-Practicing | dd2b3fd2e1aba601abf2c7a308c4d1d1b5f9015e | [
"MIT"
] | null | null | null | Question 0160 Intersection Of Two Linked Lists/main.cpp | toby0622/Leetcode-Practicing | dd2b3fd2e1aba601abf2c7a308c4d1d1b5f9015e | [
"MIT"
] | null | null | null | // LeetCode Solution Class
// 解題思路:考量如果兩條 linked list 長度相同,對應的一個一個比下去便能找到相交點
// ,所以要做的就是把比較長的 linked list 縮短即可。分別遍歷兩個 linked list,得
// 到分別對應的長度,然後求兩長度的差值,並且把長 linked list 向後移動這個差值得個
// 數,再次一一進行比較即可求解。
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode... | 22.428571 | 69 | 0.501592 | toby0622 |
c0d5fc580f330b57417f62b4ee59c8beb5b13c36 | 2,084 | hh | C++ | src/Finalizer/GCC/ELFExecutable.hh | pjaaskel/phsa-runtime | b37cd9bd8085632e89b02861da193bbd0fa25c5b | [
"MIT"
] | 7 | 2016-04-17T20:38:36.000Z | 2017-12-28T17:46:21.000Z | src/Finalizer/GCC/ELFExecutable.hh | pjaaskel/phsa-runtime | b37cd9bd8085632e89b02861da193bbd0fa25c5b | [
"MIT"
] | 6 | 2016-03-11T15:54:28.000Z | 2016-11-22T13:20:11.000Z | src/Finalizer/GCC/ELFExecutable.hh | pjaaskel/phsa-runtime | b37cd9bd8085632e89b02861da193bbd0fa25c5b | [
"MIT"
] | 4 | 2016-03-10T14:27:53.000Z | 2020-05-03T22:16:51.000Z | /*
Copyright (c) 2016 General Processor Tech.
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, ... | 35.322034 | 80 | 0.729367 | pjaaskel |
c0d714ff3f82511a07c7e1c687b646ed4a355cb1 | 1,222 | cpp | C++ | Common/Loader/ssloader_ssee.cpp | Naruto/SpriteStudio6-SDK | 0966fed33800f7b0194ac4a40ac6d1737b56e645 | [
"BSD-3-Clause"
] | 2 | 2021-04-28T23:26:18.000Z | 2021-11-08T08:56:25.000Z | Common/Loader/ssloader_ssee.cpp | Naruto/SpriteStudio6-SDK | 0966fed33800f7b0194ac4a40ac6d1737b56e645 | [
"BSD-3-Clause"
] | 2 | 2018-10-17T14:14:42.000Z | 2019-11-19T09:16:34.000Z | Common/Loader/ssloader_ssee.cpp | Naruto/SpriteStudio6-SDK | 0966fed33800f7b0194ac4a40ac6d1737b56e645 | [
"BSD-3-Clause"
] | null | null | null | #include "ssloader_sspj.h"
#include "ssloader_ssae.h"
#include "ssloader_ssce.h"
#include "ssloader_ssee.h"
#include "ssstring_uty.h"
#include "../Helper/DebugPrint.h"
SsEffectFile* ssloader_ssee::Load(const std::string& filename )
{
SsString _basepath = "";
SsEffectFile* effectFile = new SsEffectFile();
XML... | 19.709677 | 94 | 0.635025 | Naruto |
c0da04ed1901cfff33bf25fcf5824c407fb7d02f | 51,873 | cpp | C++ | datanet_openresty_1.9.7.3_0.1.1/datanet_engine/ooo_replay.cpp | phaynes/datanet | ac448c2886becce253b247b9fa480b7a783810e6 | [
"BSD-2-Clause"
] | 16 | 2017-12-14T03:57:28.000Z | 2021-02-28T23:50:29.000Z | datanet_openresty_1.9.7.3_0.1.1/datanet_engine/ooo_replay.cpp | phaynes/datanet | ac448c2886becce253b247b9fa480b7a783810e6 | [
"BSD-2-Clause"
] | null | null | null | datanet_openresty_1.9.7.3_0.1.1/datanet_engine/ooo_replay.cpp | phaynes/datanet | ac448c2886becce253b247b9fa480b7a783810e6 | [
"BSD-2-Clause"
] | 4 | 2018-11-05T10:42:46.000Z | 2019-10-28T21:08:07.000Z |
#include <cstdio>
#include <cstring>
#include <string>
#include <sstream>
#include <iostream>
extern "C" {
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/un.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
}
#include "json/json.h"
#include "easylogging++.h"
#... | 39.477169 | 80 | 0.58356 | phaynes |
c0dbe8cf34ccf3222f690cf6caa9d309340caf8c | 7,143 | cpp | C++ | franka_control/src/franka_control_node.cpp | suneelbelkhale/franka_ros2 | 1cfdc6b89acf6008f788c9e27d7acee34e66b954 | [
"Apache-2.0"
] | null | null | null | franka_control/src/franka_control_node.cpp | suneelbelkhale/franka_ros2 | 1cfdc6b89acf6008f788c9e27d7acee34e66b954 | [
"Apache-2.0"
] | 3 | 2021-08-15T19:17:03.000Z | 2021-08-16T20:16:22.000Z | franka_control/src/franka_control_node.cpp | suneelbelkhale/franka_ros2 | 1cfdc6b89acf6008f788c9e27d7acee34e66b954 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2017 Franka Emika GmbH
// Use of this source code is governed by the Apache-2.0 license, see LICENSE
#include <algorithm>
#include <atomic>
#include <chrono>
#include <thread>
#include <rclcpp_action/rclcpp_action.hpp>
#include <controller_manager/controller_manager.h>
#include <franka/exception.h>
#i... | 35.014706 | 123 | 0.686126 | suneelbelkhale |
c0e1f1f0349869d4fe89d39af0ccc8ec1b347392 | 10,995 | cc | C++ | spicy/context.cc | asilha/hilti | ebfffc7dad31059b43a02eb26abcf7a25f742eb8 | [
"BSD-3-Clause"
] | 46 | 2015-01-21T13:31:25.000Z | 2020-10-27T10:18:03.000Z | spicy/context.cc | jjchromik/hilti-104-total | 0f9e0cb7114acc157211af24f8254e4b23bd78a5 | [
"BSD-3-Clause"
] | 29 | 2015-03-30T08:23:04.000Z | 2019-05-03T13:11:35.000Z | spicy/context.cc | jjchromik/hilti-104-total | 0f9e0cb7114acc157211af24f8254e4b23bd78a5 | [
"BSD-3-Clause"
] | 20 | 2015-01-27T12:59:38.000Z | 2020-10-28T21:40:47.000Z |
#include <fstream>
#include <limits.h>
#include <util/util.h>
// LLVM redefines the DEBUG macro. Sigh.
#ifdef DEBUG
#define __SAVE_DEBUG DEBUG
#undef DEBUG
#endif
#include <llvm/IR/Module.h>
#undef DEBUG
#ifdef __SAVE_DEBUG
#define DEBUG __SAVE_DEBUG
#endif
#include "context.h"
#include "expression.h"
#include "o... | 24.111842 | 100 | 0.626739 | asilha |
c0e2013d0bc26d42b7203e712ef467cd3a80b557 | 1,476 | cpp | C++ | Meeting Rooms II with Description.cpp | chaitanyks/fuzzy-disco | bc52f779c68da3f259f116cc1f41c464db290fbf | [
"MIT"
] | 1 | 2021-12-12T05:55:44.000Z | 2021-12-12T05:55:44.000Z | Meeting Rooms II with Description.cpp | chaitanyks/fuzzy-disco | bc52f779c68da3f259f116cc1f41c464db290fbf | [
"MIT"
] | null | null | null | Meeting Rooms II with Description.cpp | chaitanyks/fuzzy-disco | bc52f779c68da3f259f116cc1f41c464db290fbf | [
"MIT"
] | null | null | null |
// Description:
// Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei),
// find the minimum number of conference rooms required.
// Example:
// Input: intervals = [(0,30),(5,10),(15,20)]
// Output: 2
// Explanation:
// We need two meeting rooms
// room1: (0,30)
/... | 23.806452 | 110 | 0.468835 | chaitanyks |
c0e2ab8b160fa84fb03c8e0bea3996ae00fba8b7 | 1,521 | cpp | C++ | sources/Engine/Modules/Graphics/GraphicsSystem/Animation/AnimationStatesMachineVariables.cpp | n-paukov/swengine | ca7441f238e8834efff5d2b61b079627824bf3e4 | [
"MIT"
] | 22 | 2017-07-26T17:42:56.000Z | 2022-03-21T22:12:52.000Z | sources/Engine/Modules/Graphics/GraphicsSystem/Animation/AnimationStatesMachineVariables.cpp | n-paukov/swengine | ca7441f238e8834efff5d2b61b079627824bf3e4 | [
"MIT"
] | 50 | 2017-08-02T19:37:48.000Z | 2020-07-24T21:10:38.000Z | sources/Engine/Modules/Graphics/GraphicsSystem/Animation/AnimationStatesMachineVariables.cpp | n-paukov/swengine | ca7441f238e8834efff5d2b61b079627824bf3e4 | [
"MIT"
] | 4 | 2018-08-20T08:12:48.000Z | 2020-07-19T14:10:05.000Z | #include "precompiled.h"
#pragma hdrstop
#include "AnimationStatesMachineVariables.h"
AnimationStatesMachineVariables::AnimationStatesMachineVariables() = default;
SkeletalAnimationVariableId AnimationStatesMachineVariables::registerVariable(const std::string& name,
float initialValue)
{
SW_ASSERT(m_variablesNa... | 31.6875 | 105 | 0.819198 | n-paukov |
c0e318df0544b72eff3db16d5f2e25f8acdb285e | 4,856 | cpp | C++ | source/utils/file/file.cpp | MatthijsReyers/HexMe | 945acbe8ed0fa48c01bda2f5083b0bba6293007d | [
"MIT"
] | 5 | 2019-09-14T10:10:18.000Z | 2022-02-18T03:50:23.000Z | source/utils/file/file.cpp | MatthijsReyers/HexMe | 945acbe8ed0fa48c01bda2f5083b0bba6293007d | [
"MIT"
] | null | null | null | source/utils/file/file.cpp | MatthijsReyers/HexMe | 945acbe8ed0fa48c01bda2f5083b0bba6293007d | [
"MIT"
] | 1 | 2019-10-10T16:23:05.000Z | 2019-10-10T16:23:05.000Z | #include "file.h"
#include "./../../utils/hdetect/hdetect.h"
#include <unistd.h>
#include <ncurses.h>
#include <sstream>
namespace utils
{
file::file()
{
fileStream = new std::fstream();
}
file::file(const char* path)
{
this->fileStream = new std::fstream();
this->open(std... | 23.572816 | 86 | 0.548188 | MatthijsReyers |
c0e5c705fd12e835102bbd0834be604d6a53a470 | 1,050 | cpp | C++ | src/homework/04_iteration/main.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-JustinBrewer22 | 9a2c884cc4189808eb80255c94a183645b209f5f | [
"MIT"
] | null | null | null | src/homework/04_iteration/main.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-JustinBrewer22 | 9a2c884cc4189808eb80255c94a183645b209f5f | [
"MIT"
] | null | null | null | src/homework/04_iteration/main.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-JustinBrewer22 | 9a2c884cc4189808eb80255c94a183645b209f5f | [
"MIT"
] | null | null | null | //write include statements
#include "dna.h"
#include <iostream>
//write using statements
using std::cout;
using std::cin;
using std::string;
/*
Write code that prompts user to enter 1 for Get GC Content,
or 2 for Get DNA Complement. The program will prompt user for a
DNA string and call either get gc content or ge... | 20.588235 | 79 | 0.638095 | acc-cosc-1337-fall-2020 |
c0ea8a4317f52db6c8bc69b807d893d13e38b9ff | 6,912 | cpp | C++ | src/thunderbots/software/ai/hl/stp/tactic/shoot_goal_tactic.cpp | Solaris5959/Software | b34ed63f671460dcb8db62d328b776747adaf374 | [
"MIT"
] | null | null | null | src/thunderbots/software/ai/hl/stp/tactic/shoot_goal_tactic.cpp | Solaris5959/Software | b34ed63f671460dcb8db62d328b776747adaf374 | [
"MIT"
] | null | null | null | src/thunderbots/software/ai/hl/stp/tactic/shoot_goal_tactic.cpp | Solaris5959/Software | b34ed63f671460dcb8db62d328b776747adaf374 | [
"MIT"
] | null | null | null | #include "ai/hl/stp/tactic/shoot_goal_tactic.h"
#include "ai/hl/stp/action/move_action.h"
#include "ai/hl/stp/evaluation/calc_best_shot.h"
#include "ai/hl/stp/evaluation/intercept.h"
#include "geom/rectangle.h"
ShootGoalTactic::ShootGoalTactic(const Field &field, const Team &friendly_team,
... | 39.724138 | 90 | 0.619792 | Solaris5959 |
c0fc8f4da816af4e1c19d5ae0d43cc7d115f80da | 488 | cpp | C++ | tests/unit/parse/concepts/error_rule.cpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 1 | 2019-04-30T17:56:23.000Z | 2019-04-30T17:56:23.000Z | tests/unit/parse/concepts/error_rule.cpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | null | null | null | tests/unit/parse/concepts/error_rule.cpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 4 | 2018-08-01T08:32:00.000Z | 2019-12-18T06:34:33.000Z | #include "parse/concepts/error_rule.hpp"
#include <catch2/catch.hpp>
using namespace Parse::Concepts;
struct FooSimpleRule {
template <class Input, class... States>
static bool match(Input& /*unused*/, States&&... /*unused*/) {return true;}
};
struct FooErrorRule : FooSimpleRule {
static constexpr auto error(... | 24.4 | 77 | 0.721311 | qedalab |
c0fda5fb944745e31069568569beff11d91b59e9 | 77 | cpp | C++ | NayukiYq/Src/NayukiYq/Common/FSM/FSMBuilder.cpp | qiboda/NayukiYq | 4969502b3d32383cbf3d943e68b979325eb05e61 | [
"MIT"
] | null | null | null | NayukiYq/Src/NayukiYq/Common/FSM/FSMBuilder.cpp | qiboda/NayukiYq | 4969502b3d32383cbf3d943e68b979325eb05e61 | [
"MIT"
] | null | null | null | NayukiYq/Src/NayukiYq/Common/FSM/FSMBuilder.cpp | qiboda/NayukiYq | 4969502b3d32383cbf3d943e68b979325eb05e61 | [
"MIT"
] | null | null | null | #include <NayukiYq/NayukiYq.h>
#include <NayukiYq/Common/FSM/FSMBuilder.h>
| 15.4 | 43 | 0.766234 | qiboda |
8d038172c989017671b20173ca8d50dd7f61ea34 | 34,255 | cpp | C++ | Source/Storm-Graphics/include/GraphicManager.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | 3 | 2021-11-27T04:56:12.000Z | 2022-02-14T04:02:10.000Z | Source/Storm-Graphics/include/GraphicManager.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | null | null | null | Source/Storm-Graphics/include/GraphicManager.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | null | null | null | #include "GraphicManager.h"
#include "DirectXController.h"
#include "Camera.h"
#include "GeneralReadOnlyUIDisplay.h"
#include "Grid.h"
#include "GraphicCoordinateSystem.h"
#include "GraphicRigidBody.h"
#include "GraphicParticleSystem.h"
#include "GraphicParticleData.h"
#include "GraphicConstraintSystem.h... | 35.025562 | 263 | 0.720508 | SunlayGGX |
8d06bb8ff15ad19f79562a2c0686b0f556a96a2e | 3,505 | hpp | C++ | include/gridtools/stencil_composition/grid_base.hpp | wdeconinck/gridtools | 1811413f6e22a8f1205e542f5354daaae7c5554b | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/stencil_composition/grid_base.hpp | wdeconinck/gridtools | 1811413f6e22a8f1205e542f5354daaae7c5554b | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/stencil_composition/grid_base.hpp | wdeconinck/gridtools | 1811413f6e22a8f1205e542f5354daaae7c5554b | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include "../common/array.hpp"
#include "../common/halo_descriptor.hpp"
#include "axis.hpp"
#include "interval.hpp"
... | 34.029126 | 104 | 0.624251 | wdeconinck |
8d0b23d273d8c7fdc09bfe65d79698e92a7ec6d7 | 3,334 | cpp | C++ | sources/chap02/ex04.cpp | ClazyChen/ds-lab | d7ce031bb1e22230be5687ac848e897a6d589ddf | [
"MIT"
] | 4 | 2022-03-12T14:42:21.000Z | 2022-03-30T02:09:55.000Z | sources/chap02/ex04.cpp | ClazyChen/ds-lab | d7ce031bb1e22230be5687ac848e897a6d589ddf | [
"MIT"
] | null | null | null | sources/chap02/ex04.cpp | ClazyChen/ds-lab | d7ce031bb1e22230be5687ac848e897a6d589ddf | [
"MIT"
] | 1 | 2022-03-29T18:17:55.000Z | 2022-03-29T18:17:55.000Z | #include "vector.h"
#include "test_framework.h"
using namespace clazy_framework;
// 这个例子讨论:如何在向量中进行批量删除?
// 输入:向量V,条件P
// 输出:向量V中删除所有符合条件P的元素,并返回删除的元素数量
template <typename T>
using Vector = clazy::Vector<T>;
template <typename T>
class BatchRemove : public Algorithm<int, Vector<T>&, const Predicate<T>&> {
protected:... | 34.020408 | 89 | 0.561188 | ClazyChen |
8d0c3ba96fea566fbc08b8183a54c9ea9e979db9 | 492 | cpp | C++ | agent/browser/ie/urlBlast/UrlMgrBase.cpp | LeeLiangze/web_test | 50ce21afb153b105569e31ef08ddc098743208e5 | [
"IJG"
] | null | null | null | agent/browser/ie/urlBlast/UrlMgrBase.cpp | LeeLiangze/web_test | 50ce21afb153b105569e31ef08ddc098743208e5 | [
"IJG"
] | null | null | null | agent/browser/ie/urlBlast/UrlMgrBase.cpp | LeeLiangze/web_test | 50ce21afb153b105569e31ef08ddc098743208e5 | [
"IJG"
] | null | null | null | #include "StdAfx.h"
#include "UrlMgrBase.h"
CUrlMgrBase::CUrlMgrBase(CLog &logRef):log(logRef)
{
// create a NULL DACL we will re-use everywhere we do file access
ZeroMemory(&nullDacl, sizeof(nullDacl));
nullDacl.nLength = sizeof(nullDacl);
nullDacl.bInheritHandle = FALSE;
if( InitializeSecurityDescriptor(&SD, SE... | 27.333333 | 70 | 0.75813 | LeeLiangze |
8d0cb3c9044dbd57d589ec19765b3416ab0e9938 | 25,926 | cc | C++ | src/compiler.cc | asakidaisuke/levi | 3e7ec7176d4d58b9685e01a5c9c195cfa0cdba2e | [
"MIT"
] | null | null | null | src/compiler.cc | asakidaisuke/levi | 3e7ec7176d4d58b9685e01a5c9c195cfa0cdba2e | [
"MIT"
] | null | null | null | src/compiler.cc | asakidaisuke/levi | 3e7ec7176d4d58b9685e01a5c9c195cfa0cdba2e | [
"MIT"
] | null | null | null | #include <iostream>
#include <functional>
#include "compiler.hpp"
#include "scanner.hpp"
using namespace std::placeholders;
void Compiler::add_this_to_compiler(FunctionType type){
int index = currentCompiler->compilerState.localCount++;
Local* local = ¤tCompiler->compilerState.locals[... | 29.461364 | 137 | 0.629831 | asakidaisuke |
8d0e1faf5f399197e5b2c1b98f94b393417f43f7 | 2,424 | cpp | C++ | 05-Functions/Program_6-19.cpp | ringosimonchen0820/How-to-C-- | 69b0310e6aeab25a7e2eed41e4d6cff85a034e00 | [
"MIT"
] | null | null | null | 05-Functions/Program_6-19.cpp | ringosimonchen0820/How-to-C-- | 69b0310e6aeab25a7e2eed41e4d6cff85a034e00 | [
"MIT"
] | 1 | 2020-10-11T18:39:08.000Z | 2020-10-11T18:39:17.000Z | 05-Functions/Program_6-19.cpp | ringosimonchen0820/How-to-C-- | 69b0310e6aeab25a7e2eed41e4d6cff85a034e00 | [
"MIT"
] | 2 | 2020-10-12T20:33:32.000Z | 2020-10-12T20:34:00.000Z | // This program calculates gross pay.
#include <iostream>
#include <iomanip>
using namespace std;
// Global constatns
const double PAY_RATE = 22.55; // Hourly pay rate
const double BASE_HOURS = 40.0; // Max non-overtime hours
const double OT_MULTIPLIER = 1.5; // Overtime multiplier
// Functi... | 27.235955 | 76 | 0.52929 | ringosimonchen0820 |
8d120de691074bde58afcc466e3bde6c9af0f678 | 64,592 | cpp | C++ | src/add-ons/kernel/file_systems/bfs/kernel_interface.cpp | Yn0ga/haiku | 74e271b2a286c239e60f0ec261f4f197f4727eee | [
"MIT"
] | 2 | 2021-11-30T22:17:42.000Z | 2022-02-04T20:57:17.000Z | src/add-ons/kernel/file_systems/bfs/kernel_interface.cpp | Yn0ga/haiku | 74e271b2a286c239e60f0ec261f4f197f4727eee | [
"MIT"
] | null | null | null | src/add-ons/kernel/file_systems/bfs/kernel_interface.cpp | Yn0ga/haiku | 74e271b2a286c239e60f0ec261f4f197f4727eee | [
"MIT"
] | null | null | null | /*
* Copyright 2001-2020, Axel Dörfler, axeld@pinc-software.de.
* This file may be used under the terms of the MIT License.
*/
//! file system interface to Haiku's vnode layer
#include "Attribute.h"
#include "CheckVisitor.h"
#include "Debug.h"
#include "Volume.h"
#include "Inode.h"
#include "Index.h"
#include "B... | 24.597106 | 108 | 0.704654 | Yn0ga |
8d1352ceb002d4a7a023082ddc6ae2d3320ca35a | 4,789 | cc | C++ | common/window.cc | joone/opengl-wayland | 76355d9fbe160c3991577fe206350d5f992a9395 | [
"BSD-2-Clause"
] | 5 | 2021-01-25T01:51:58.000Z | 2022-03-18T22:50:10.000Z | common/window.cc | joone/opengl-wayland | 76355d9fbe160c3991577fe206350d5f992a9395 | [
"BSD-2-Clause"
] | null | null | null | common/window.cc | joone/opengl-wayland | 76355d9fbe160c3991577fe206350d5f992a9395 | [
"BSD-2-Clause"
] | null | null | null | #include <assert.h>
#include "window.h"
#include "wayland_platform.h"
#include "gl.h"
void redraw(void* data, struct wl_callback* callback, unsigned int time);
const struct wl_callback_listener frame_listener = {redraw};
void redraw(void* data, struct wl_callback* callback, unsigned int time) {
WaylandWindow* wi... | 29.024242 | 79 | 0.679474 | joone |
8d264bfb3b77c4ef13684ae6188820be0c1ff5ec | 382 | cpp | C++ | gui/button.cpp | TaimoorRana/Risk | ed96461f2b87d6336e50b27a35f50946e9125c86 | [
"MIT"
] | 3 | 2016-05-23T09:39:08.000Z | 2016-10-08T03:28:24.000Z | gui/button.cpp | TaimoorRana/Risk | ed96461f2b87d6336e50b27a35f50946e9125c86 | [
"MIT"
] | 3 | 2017-09-11T00:51:55.000Z | 2017-09-11T00:52:05.000Z | gui/button.cpp | Taimoorrana1/Risk | ed96461f2b87d6336e50b27a35f50946e9125c86 | [
"MIT"
] | 1 | 2017-02-12T19:35:39.000Z | 2017-02-12T19:35:39.000Z | #include "button.h"
#include <iostream>
Button::Button(QString label)
{
this->setText(label);
}
void Button::pressed(Player &playerAttacker, Country &attackingCountry, Player &playerDefender, Country &defendingCountry)
{
WarReferee war;
war.startWar(playerAttacker,attackingCountry,playerDefender,defending... | 20.105263 | 122 | 0.735602 | TaimoorRana |
8d29d6e91cd2ac4a4ba608b955f4d920a443a366 | 76 | cpp | C++ | case3msg.cpp | SYSU-Unmaned-System-Team/asc_-work-station | caef9002b93e01219418f891640773f21b08ba73 | [
"MulanPSL-1.0"
] | null | null | null | case3msg.cpp | SYSU-Unmaned-System-Team/asc_-work-station | caef9002b93e01219418f891640773f21b08ba73 | [
"MulanPSL-1.0"
] | null | null | null | case3msg.cpp | SYSU-Unmaned-System-Team/asc_-work-station | caef9002b93e01219418f891640773f21b08ba73 | [
"MulanPSL-1.0"
] | null | null | null | #include "case3msg.h"
case3Msg::case3Msg()
{
}
case3Msg::~case3Msg()
{
}
| 6.909091 | 21 | 0.631579 | SYSU-Unmaned-System-Team |
8d2f129256fe2f3ce796b128985bcb371abe5dc0 | 13,810 | cpp | C++ | plugins/eoc_relay_plugin/icp_connection.cpp | aiguo186/eocs | acc6086ab7b6075bba3271199e773ff0fbbe017e | [
"MIT"
] | 24 | 2018-12-25T03:52:10.000Z | 2021-03-22T12:16:27.000Z | plugins/eoc_relay_plugin/icp_connection.cpp | aiguo186/eocs | acc6086ab7b6075bba3271199e773ff0fbbe017e | [
"MIT"
] | 14 | 2018-12-13T03:19:09.000Z | 2019-05-10T02:17:09.000Z | plugins/eoc_relay_plugin/icp_connection.cpp | aiguo186/eocs | acc6086ab7b6075bba3271199e773ff0fbbe017e | [
"MIT"
] | 12 | 2018-12-12T10:37:35.000Z | 2019-07-10T08:39:17.000Z | #include "icp_relay.hpp"
#include "api.hpp"
#include "message.hpp"
#include <fc/log/logger.hpp>
#include "icp_connection.hpp"
#include <eosio/eoc_relay_plugin/eoc_relay_plugin.hpp>
namespace eoc_icp {
using icp_connection_ptr = std::shared_ptr<icp_connection>;
using icp_connection_wptr = std::weak_ptr<icp_conn... | 31.747126 | 153 | 0.564374 | aiguo186 |
8d2f9bfc0f1e2b8e955b9ab40b0d4bb2ef906017 | 6,410 | cpp | C++ | src_c/adapter.cpp | ptenbrock/SimpleBLE | 84e7b99d9560f54b4a18db6def16c4ca09f750a8 | [
"MIT"
] | 45 | 2021-08-31T02:04:10.000Z | 2022-03-26T02:26:18.000Z | src_c/adapter.cpp | ptenbrock/SimpleBLE | 84e7b99d9560f54b4a18db6def16c4ca09f750a8 | [
"MIT"
] | 32 | 2021-09-08T05:11:00.000Z | 2022-03-29T07:13:31.000Z | src_c/adapter.cpp | ptenbrock/SimpleBLE | 84e7b99d9560f54b4a18db6def16c4ca09f750a8 | [
"MIT"
] | 8 | 2021-08-31T01:53:34.000Z | 2022-01-31T17:57:45.000Z | #include <simpleble_c/adapter.h>
#include <simpleble/AdapterSafe.h>
#include <cstring>
size_t simpleble_adapter_get_count(void) {
return SimpleBLE::Safe::Adapter::get_adapters().value_or(std::vector<SimpleBLE::Safe::Adapter>()).size();
}
simpleble_adapter_t simpleble_adapter_get_handle(size_t index) {
auto ... | 36.214689 | 119 | 0.6883 | ptenbrock |
8d311660139afa4d82782e1f55edf337196c1a40 | 1,012 | cpp | C++ | view-cmake/src/ChrosomeChoice.cpp | limeng12/GenomeBrowser-CPlusPlus | 63d41a55d013cee9208e244cf154901461e12a30 | [
"BSD-3-Clause-Attribution"
] | 2 | 2019-10-14T09:29:38.000Z | 2021-04-25T00:16:40.000Z | view-cmake/src/ChrosomeChoice.cpp | limeng12/GenomeBrowser-CPlusPlus | 63d41a55d013cee9208e244cf154901461e12a30 | [
"BSD-3-Clause-Attribution"
] | null | null | null | view-cmake/src/ChrosomeChoice.cpp | limeng12/GenomeBrowser-CPlusPlus | 63d41a55d013cee9208e244cf154901461e12a30 | [
"BSD-3-Clause-Attribution"
] | null | null | null | #include "ChrosomeChoice.h"
wxBEGIN_EVENT_TABLE(ChrosomeChoice, wxListView)
EVT_LEFT_UP(ChrosomeChoice::OnDoubleClick)
wxEND_EVENT_TABLE()
ChrosomeChoice::ChrosomeChoice(/*pilot_viewFrame& parent):root(parent*/){
}
void ChrosomeChoice::Init(){
}
bool ChrosomeChoice::Create(wxWindow* parent){
return wxListVi... | 19.843137 | 73 | 0.728261 | limeng12 |
8d349ab631f821a9820afc19d48db2c8446fadb0 | 15,842 | cpp | C++ | SDKs/CryCode/3.8.1/GameDll/AI/SearchModule.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.7.0/GameDll/AI/SearchModule.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.7.0/GameDll/AI/SearchModule.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | #include "StdAfx.h"
#include "SearchModule.h"
#include <IAgent.h>
#include <IAISystem.h>
#include <IAIObject.h>
#include <IRenderAuxGeom.h>
#include <ICoverSystem.h>
#include <VisionMapTypes.h>
#include "Agent.h"
#include "GameCVars.h"
SearchSpot::SearchSpot()
: m_pos(ZERO)
, m_status(NotSearchedYet)
, m_assigneeID(0)... | 23.33137 | 130 | 0.719669 | amrhead |
8d368125441ac76e55e32458dbc1880795411630 | 1,822 | cpp | C++ | src/node-mushrooms/app/project/shroom_task.cpp | cometurrata/mad-hatter | 1f84b2eafbd16258ec47b9db096bc60fc59aa859 | [
"MIT"
] | 4 | 2020-06-14T12:30:07.000Z | 2021-02-08T14:57:50.000Z | src/node-mushrooms/app/project/shroom_task.cpp | cometurrata/mad-hatter | 1f84b2eafbd16258ec47b9db096bc60fc59aa859 | [
"MIT"
] | null | null | null | src/node-mushrooms/app/project/shroom_task.cpp | cometurrata/mad-hatter | 1f84b2eafbd16258ec47b9db096bc60fc59aa859 | [
"MIT"
] | null | null | null | #include <stdint.h>
#include <SmingCore.h>
#include <Libraries/Adafruit_NeoPixel/Adafruit_NeoPixel.h>
#include "http_client.h"
#include "shroom_task.h"
#include "shroom.h"
#include "Adafruit_MCP23017.h"
Adafruit_MCP23017 mcp;
#define SDA_PIN 4
#define SCL_PIN 5
#define D8 15
#define D7 13
#define D6 12
#define D5 ... | 21.435294 | 77 | 0.678924 | cometurrata |
8d3bb23eb71b2bff425327e42addd0ee6081a202 | 16,286 | cpp | C++ | SoftRast/Texture.cpp | mathieuchartier/SoftRast | 0987c1abfbe104a403642e96e72c973d69f0f8d1 | [
"MIT"
] | 38 | 2019-04-03T13:43:32.000Z | 2022-02-10T17:29:35.000Z | SoftRast/Texture.cpp | mathieuchartier/SoftRast | 0987c1abfbe104a403642e96e72c973d69f0f8d1 | [
"MIT"
] | 1 | 2019-09-23T23:23:30.000Z | 2019-09-24T09:08:24.000Z | SoftRast/Texture.cpp | mathieuchartier/SoftRast | 0987c1abfbe104a403642e96e72c973d69f0f8d1 | [
"MIT"
] | 5 | 2020-04-23T05:59:48.000Z | 2022-01-30T17:22:43.000Z | #include <string.h>
#include <intrin.h>
#include <immintrin.h>
#include <kt/Memory.h>
#include <kt/Logging.h>
#include "Texture.h"
#include "stb_image.h"
#include "stb_image_resize.h"
#define SR_TILE_TEXTURES (1)
namespace kt
{
template <>
void Serialize(ISerializer* _s, sr::Tex::TextureData& _tex)
{
Serialize(_s... | 35.793407 | 165 | 0.751811 | mathieuchartier |
8d3d6f8872e5ae389dac5b29543d4ed0a4f7c8ca | 12,977 | hpp | C++ | libraries/chain/include/eos/chain/record_functions.hpp | brendankirby/eos | 233ba4e54bd53a7cf6ac68898fd25c44345737fa | [
"MIT"
] | 2 | 2018-01-06T12:12:28.000Z | 2021-12-25T11:09:37.000Z | libraries/chain/include/eos/chain/record_functions.hpp | lijava2002/eos | 2cc40a4eed76b797ba1382ab461fe8b6d3f518c4 | [
"MIT"
] | null | null | null | libraries/chain/include/eos/chain/record_functions.hpp | lijava2002/eos | 2cc40a4eed76b797ba1382ab461fe8b6d3f518c4 | [
"MIT"
] | 1 | 2021-04-04T23:28:27.000Z | 2021-04-04T23:28:27.000Z | /**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#include <eos/chain/key_value_object.hpp>
namespace eosio { namespace chain {
/// find_tuple helper
template <typename T>
struct find_tuple {};
template <>
struct find_tuple<key_value_object> {
inline static auto get(name scope, name code, name table, uin... | 38.055718 | 127 | 0.716421 | brendankirby |
8d41f4fd92fb2d95f5870b65d1b3ef7bc01004f1 | 560 | cpp | C++ | z/util/regex/rules/word.cpp | ZacharyWesterman/zLibraries | cbc6a5f4a6cce7d382906eb1754f627b5df1cc1d | [
"MIT"
] | null | null | null | z/util/regex/rules/word.cpp | ZacharyWesterman/zLibraries | cbc6a5f4a6cce7d382906eb1754f627b5df1cc1d | [
"MIT"
] | 12 | 2022-01-09T04:05:56.000Z | 2022-01-16T04:50:52.000Z | z/util/regex/rules/word.cpp | ZacharyWesterman/zLibraries | cbc6a5f4a6cce7d382906eb1754f627b5df1cc1d | [
"MIT"
] | 1 | 2021-01-30T01:19:02.000Z | 2021-01-30T01:19:02.000Z | #include "word.hpp"
#include "../../../core/charFunctions.hpp"
namespace z
{
namespace util
{
namespace rgx
{
word::word(bool negate, int min, int max, bool greedy) noexcept :
rule(min,max,greedy), negate(negate) {}
bool word::match(uint32_t current) const noexcept
{
return negate ^ (('_' == cur... | 21.538462 | 79 | 0.621429 | ZacharyWesterman |
8d42f0d2f27d8b70896042575e773980c5b415c0 | 389 | cpp | C++ | test/gbelib_tests/ops/logic_tests.cpp | johannes51/GBEmu | bb85debc8191d7eaa3917c2d441172f97731374c | [
"MIT"
] | null | null | null | test/gbelib_tests/ops/logic_tests.cpp | johannes51/GBEmu | bb85debc8191d7eaa3917c2d441172f97731374c | [
"MIT"
] | null | null | null | test/gbelib_tests/ops/logic_tests.cpp | johannes51/GBEmu | bb85debc8191d7eaa3917c2d441172f97731374c | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "location/location.h"
#include "location/rambyte.h"
#include "ops/logic.h"
#include "location/variablebyte.h"
TEST(LogicTest, Xor)
{
auto d = variableLocation(0x3C);
auto s = variableLocation(0xF1);
ops::xorF(d, s);
EXPECT_EQ(0xCD, d.get());
}
TEST(LogicTest, XorZ)
{
au... | 15.56 | 34 | 0.676093 | johannes51 |
1d2caac62e61d201987a9a6f970b781e4364ba0d | 2,350 | hpp | C++ | engine/include/Transform.hpp | Trypio/Aeyon3D | 6e630228fe8f8fe269ab1dfc835a7c7c5d314c2b | [
"MIT"
] | null | null | null | engine/include/Transform.hpp | Trypio/Aeyon3D | 6e630228fe8f8fe269ab1dfc835a7c7c5d314c2b | [
"MIT"
] | null | null | null | engine/include/Transform.hpp | Trypio/Aeyon3D | 6e630228fe8f8fe269ab1dfc835a7c7c5d314c2b | [
"MIT"
] | null | null | null | //
//
//
#ifndef AEYON3D_TRANSFORM_HPP
#define AEYON3D_TRANSFORM_HPP
#include "ECS/ComponentTypeIndex.hpp"
#include "Space.hpp"
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include <vector>
namespace aeyon
{
class Transform : public ComponentTypeIndex<Transform>
{
private:
glm::vec3 m_position;
g... | 27.647059 | 95 | 0.739149 | Trypio |
1d2daf60c5182772dee199804d234512ae42ec53 | 34,545 | hpp | C++ | include/foonathan/memory/joint_allocator.hpp | Bog999/memory | c1a06eb19992410e11e2fe20d8b2d076c1737804 | [
"Zlib"
] | 1 | 2021-03-07T09:33:39.000Z | 2021-03-07T09:33:39.000Z | include/foonathan/memory/joint_allocator.hpp | Bog999/memory | c1a06eb19992410e11e2fe20d8b2d076c1737804 | [
"Zlib"
] | 1 | 2020-12-18T13:37:01.000Z | 2020-12-18T13:37:01.000Z | include/foonathan/memory/joint_allocator.hpp | Bog999/memory | c1a06eb19992410e11e2fe20d8b2d076c1737804 | [
"Zlib"
] | null | null | null | // Copyright (C) 2015-2020 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef FOONATHAN_MEMORY_JOINT_ALLOCATOR_HPP_INCLUDED
#define FOONATHAN_MEMORY_JOINT_ALLOCATOR_HPP_INCLUDED
/// \file
//... | 37.225216 | 130 | 0.519873 | Bog999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.