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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88272ef7427fbb6c6403d5ae5bcaea95374d8bb7 | 6,023 | hh | C++ | src/include/cpu.hh | tomblackwhite/alpha-emu | a371f7d094acbf02c83aa3940ff043f033b7cfe8 | [
"BSD-2-Clause"
] | null | null | null | src/include/cpu.hh | tomblackwhite/alpha-emu | a371f7d094acbf02c83aa3940ff043f033b7cfe8 | [
"BSD-2-Clause"
] | null | null | null | src/include/cpu.hh | tomblackwhite/alpha-emu | a371f7d094acbf02c83aa3940ff043f033b7cfe8 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include <bitset>
#include <cstdint>
#include <functional>
#include <unordered_map>
#include <vector>
using std::uint16_t;
using std::uint8_t;
using std::int8_t;
using std::int16_t;
/* 寻址方式 6502为小端 */
enum class AddressMode {
// accumulator impiled single byte instruction
// operand is AC (implied s... | 22.307407 | 76 | 0.618297 | tomblackwhite |
88279010049a442451ff74bcd4820086458b91df | 7,105 | hpp | C++ | bits.hpp | YagoMello/bits | 0d82845930ee71b78a995eca59d470ae29f58f02 | [
"Apache-2.0"
] | null | null | null | bits.hpp | YagoMello/bits | 0d82845930ee71b78a995eca59d470ae29f58f02 | [
"Apache-2.0"
] | null | null | null | bits.hpp | YagoMello/bits | 0d82845930ee71b78a995eca59d470ae29f58f02 | [
"Apache-2.0"
] | null | null | null | #ifndef BIT_HPP
#define BIT_HPP
/* Bit abstraction library
* Author: Yago T. de Mello
* e-mail: [email protected]
* Version: 2.6.0 2021-11-24
* License: Apache 2.0
* C++20
*/
/*
Copyright 2021 Yago Teodoro de Mello
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file... | 32.741935 | 117 | 0.666854 | YagoMello |
882c699df89729f87108858b2ed7f0db4c1a6597 | 3,098 | hpp | C++ | include/ghost/connection/Reader.hpp | mathieunassar/ghostmodule | 8e9a9e958ec3cfa3494b49211920e3f669a9c8bd | [
"Apache-2.0"
] | 2 | 2019-10-05T06:51:49.000Z | 2020-10-11T11:20:59.000Z | include/ghost/connection/Reader.hpp | mathieunassar/ghostmodule | 8e9a9e958ec3cfa3494b49211920e3f669a9c8bd | [
"Apache-2.0"
] | 24 | 2019-06-19T21:33:23.000Z | 2020-10-04T11:36:41.000Z | include/ghost/connection/Reader.hpp | mathieunassar/ghostmodule | 8e9a9e958ec3cfa3494b49211920e3f669a9c8bd | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Mathieu Nassar
*
* 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 ... | 32.610526 | 106 | 0.732085 | mathieunassar |
8830fb955023a846e2bba1fe3f46edf3e85ebf78 | 1,796 | hpp | C++ | src/cc/Books/ElementsOfProgrammingInterviews/reference/ch16.hpp | nuggetwheat/study | 1e438a995c3c6ce783af9ae6a537c349afeedbb8 | [
"MIT"
] | null | null | null | src/cc/Books/ElementsOfProgrammingInterviews/reference/ch16.hpp | nuggetwheat/study | 1e438a995c3c6ce783af9ae6a537c349afeedbb8 | [
"MIT"
] | null | null | null | src/cc/Books/ElementsOfProgrammingInterviews/reference/ch16.hpp | nuggetwheat/study | 1e438a995c3c6ce783af9ae6a537c349afeedbb8 | [
"MIT"
] | null | null | null |
#ifndef Books_ElementsOfProgrammingInterviews_reference_ch16_hpp
#define Books_ElementsOfProgrammingInterviews_reference_ch16_hpp
#include "Common/Tree.hpp"
#include <array>
#include <cstdlib>
#include <memory>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
namespace reference {
extern v... | 32.071429 | 97 | 0.763363 | nuggetwheat |
883143a10ab0b7c390135c75b87f00ae8742b0ce | 1,504 | cpp | C++ | src/Zelta/Concurrency/Worker.cpp | RafaelGC/ese | 95868d2f7221334271d4a74ef38b2ed3478a8b91 | [
"MIT"
] | 1 | 2018-01-28T21:35:14.000Z | 2018-01-28T21:35:14.000Z | src/Zelta/Concurrency/Worker.cpp | RafaelGC/ese | 95868d2f7221334271d4a74ef38b2ed3478a8b91 | [
"MIT"
] | 1 | 2017-04-05T00:41:53.000Z | 2017-04-05T00:41:53.000Z | src/Zelta/Concurrency/Worker.cpp | rafaelgc/ESE | 95868d2f7221334271d4a74ef38b2ed3478a8b91 | [
"MIT"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Worker.cpp
* Author: rafa
*
* Created on January 14, 2018, 3:42 PM
*/
#include <thread>
#include <Zelta/Concurre... | 20.888889 | 79 | 0.490691 | RafaelGC |
88337aa39dc78f9e6d0ab600afd2499272c41cf2 | 1,265 | cpp | C++ | benchmarks/Matmul/matmul_cpp.cpp | Cwc-Lib/Cello | 139e04c3b2cc2c6a68f96637e0c53286ca5792c0 | [
"BSD-2-Clause-FreeBSD"
] | 4,067 | 2015-05-16T22:57:52.000Z | 2022-03-30T05:40:04.000Z | benchmarks/Matmul/matmul_cpp.cpp | Cwc-Lib/Cello | 139e04c3b2cc2c6a68f96637e0c53286ca5792c0 | [
"BSD-2-Clause-FreeBSD"
] | 59 | 2015-06-17T09:51:27.000Z | 2021-09-24T20:15:21.000Z | benchmarks/Matmul/matmul_cpp.cpp | Cwc-Lib/Cello | 139e04c3b2cc2c6a68f96637e0c53286ca5792c0 | [
"BSD-2-Clause-FreeBSD"
] | 308 | 2015-05-16T11:33:08.000Z | 2022-03-18T00:26:28.000Z | #include <stdlib.h>
class Matrix {
public:
size_t n;
double** d;
Matrix(int n);
~Matrix();
};
Matrix::Matrix(int n) {
n = n;
d = (double**)malloc(n * sizeof(double*));
for (int i = 0; i < n; ++i) {
d[i] = (double*)calloc(n, sizeof(double));
}
}
Matrix::~Matrix() {
for (int i = 0; i < n; ++i)... | 17.569444 | 51 | 0.474308 | Cwc-Lib |
883bbec44358e50add87f47786eea94f72a5f192 | 4,353 | hh | C++ | hackt_docker/hackt/src/sim/prsim/Cause.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/sim/prsim/Cause.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/sim/prsim/Cause.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "sim/prsim/Cause.hh"
Structure of basic node event.
$Id: Cause.hh,v 1.5 2009/02/01 07:21:35 fang Exp $
*/
#ifndef __HAC_SIM_PRSIM_CAUSE_H__
#define __HAC_SIM_PRSIM_CAUSE_H__
#include <iosfwd>
#include "sim/common.hh"
#include "sim/prsim/enums.hh"
#include "util/utypes.h"
#include "sim/prsim/devel_swit... | 23.657609 | 79 | 0.666667 | broken-wheel |
883e5f28b3e8dd39ce48699669e91cddc117a46a | 1,547 | hpp | C++ | include/gogh/disassembler.hpp | braedinski/gogh | 28f5be6b075fc549dd9d8d6fb1708176b1892c03 | [
"MIT"
] | null | null | null | include/gogh/disassembler.hpp | braedinski/gogh | 28f5be6b075fc549dd9d8d6fb1708176b1892c03 | [
"MIT"
] | null | null | null | include/gogh/disassembler.hpp | braedinski/gogh | 28f5be6b075fc549dd9d8d6fb1708176b1892c03 | [
"MIT"
] | null | null | null | /*
* gogh::disassembler
*
* The class is just a wrapper for capstone disassembler.
* `gogh` will use its own instruction decoder/disassembler.
*
*/
#include <capstone/capstone.h>
namespace gogh {
class disassembler {
public:
disassembler() {
if (cs_open(
... | 26.672414 | 81 | 0.372334 | braedinski |
883f7d3ccf35c53eb89b1db830f34c5e76883615 | 5,220 | cpp | C++ | tests/CoreTests/RandomOuts.cpp | JacopoDT/numerare-core | a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f | [
"MIT-0"
] | null | null | null | tests/CoreTests/RandomOuts.cpp | JacopoDT/numerare-core | a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f | [
"MIT-0"
] | null | null | null | tests/CoreTests/RandomOuts.cpp | JacopoDT/numerare-core | a98b32150a9b2e6ea7535d12b7e8e1aac0589e2f | [
"MIT-0"
] | null | null | null | /***
MIT License
Copyright (c) 2018 NUMERARE
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... | 37.826087 | 120 | 0.66705 | JacopoDT |
8842930a3f2c988927dcdc7a2bca9a2f05163bc8 | 11,159 | cpp | C++ | src/gpu/ocl/gemm/gen12lp_gemm.cpp | IvanNovoselov/oneDNN | aa47fcd2a03ee5caac119b6417bc66abe3154aab | [
"Apache-2.0"
] | null | null | null | src/gpu/ocl/gemm/gen12lp_gemm.cpp | IvanNovoselov/oneDNN | aa47fcd2a03ee5caac119b6417bc66abe3154aab | [
"Apache-2.0"
] | 1 | 2020-04-17T22:23:01.000Z | 2020-04-23T21:11:41.000Z | src/gpu/ocl/gemm/gen12lp_gemm.cpp | IvanNovoselov/oneDNN | aa47fcd2a03ee5caac119b6417bc66abe3154aab | [
"Apache-2.0"
] | 3 | 2021-07-20T07:40:15.000Z | 2021-08-03T08:39:17.000Z | /*******************************************************************************
* Copyright 2019-2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | 36.113269 | 80 | 0.570123 | IvanNovoselov |
8847f3406218db6478b2dd223dca1bda84814406 | 1,718 | hpp | C++ | kernel/memory_map.hpp | mox692/mos | 211b36dade615cfd43d3bb077703b82b638eec10 | [
"Apache-2.0"
] | null | null | null | kernel/memory_map.hpp | mox692/mos | 211b36dade615cfd43d3bb077703b82b638eec10 | [
"Apache-2.0"
] | null | null | null | kernel/memory_map.hpp | mox692/mos | 211b36dade615cfd43d3bb077703b82b638eec10 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <stdint.h>
// 構造体定義はUEFI specificな部分. UEFI規格で定められてる定義を独自に構造体定義とした.
// ref: edk2/MdePkg/Include/Uefi/UefiSpec.h
// ref: p57
struct MemoryMap {
unsigned long long buffer_size;
// memory mapの中身の先頭アドレス.
// 内部的にはEFI_MEMORY_DESCRIPTORの配列になっている(ref:edk2/MdePkg/Include/Uefi/UefiSpec.h)
void* buf... | 25.264706 | 81 | 0.786962 | mox692 |
88491b236a93fd2f6d9cfcd0b3b86a55d38fea6c | 1,016 | cpp | C++ | src/brokerlib/message/payload/src/BrokerRegistryQueryResponsePayload.cpp | chrissmith-mcafee/opendxl-broker | a3f985fc19699ab8fcff726bbd1974290eb6e044 | [
"Apache-2.0",
"MIT"
] | 13 | 2017-10-15T14:32:34.000Z | 2022-02-17T08:25:26.000Z | src/brokerlib/message/payload/src/BrokerRegistryQueryResponsePayload.cpp | vkrish-mcafee/opendxl-broker | 39c5d06c233dbe01146f0db781eccfd67bbaafbf | [
"Apache-2.0",
"MIT"
] | 14 | 2017-10-17T18:23:50.000Z | 2021-12-10T22:05:25.000Z | src/brokerlib/message/payload/src/BrokerRegistryQueryResponsePayload.cpp | vkrish-mcafee/opendxl-broker | 39c5d06c233dbe01146f0db781eccfd67bbaafbf | [
"Apache-2.0",
"MIT"
] | 26 | 2017-10-27T00:27:29.000Z | 2021-09-02T16:57:55.000Z | /******************************************************************************
* Copyright (c) 2018 McAfee, LLC - All Rights Reserved.
*****************************************************************************/
#include "include/BrokerSettings.h"
#include "message/include/DxlMessageConstants.h"
#include "message... | 37.62963 | 79 | 0.601378 | chrissmith-mcafee |
884bcdf60400ceca8e082489717b4773b8b35acc | 1,059 | cpp | C++ | PaintlLess/Assets/components/Ability_Priest.cpp | rubenglezortiz/Proyectos2-2020-21 | 74b52b8ec4c60717292f8287fa05c00a3748b0d4 | [
"CC0-1.0"
] | null | null | null | PaintlLess/Assets/components/Ability_Priest.cpp | rubenglezortiz/Proyectos2-2020-21 | 74b52b8ec4c60717292f8287fa05c00a3748b0d4 | [
"CC0-1.0"
] | null | null | null | PaintlLess/Assets/components/Ability_Priest.cpp | rubenglezortiz/Proyectos2-2020-21 | 74b52b8ec4c60717292f8287fa05c00a3748b0d4 | [
"CC0-1.0"
] | null | null | null | #include "Ability_Priest.h"
Ability_Priest::Ability_Priest() : AbilityStruct(selectorH, ShaderForm::TxT, ShaderType::nullSh) {}
bool Ability_Priest::AbilityExecute(int x, int y)
{
bool hasCured = false;
GameMap* map = this->getAbility()->getMap();
Entity* entity_ = this->getAbility()->getEntity();
std::vector<Vec... | 39.222222 | 209 | 0.687441 | rubenglezortiz |
884bd6f3ee6572e5aaa93f8e2e7cd4b0c97193b3 | 21,491 | cpp | C++ | 20/jurassic_jigsaw.cpp | ComicSansMS/AdventOfCode2020 | a46b49f5c566cabbea0e61e24f6238e4caf7470c | [
"Unlicense"
] | null | null | null | 20/jurassic_jigsaw.cpp | ComicSansMS/AdventOfCode2020 | a46b49f5c566cabbea0e61e24f6238e4caf7470c | [
"Unlicense"
] | null | null | null | 20/jurassic_jigsaw.cpp | ComicSansMS/AdventOfCode2020 | a46b49f5c566cabbea0e61e24f6238e4caf7470c | [
"Unlicense"
] | null | null | null | #include <jurassic_jigsaw.hpp>
#include <fmt/printf.h>
#include <range/v3/view/cartesian_product.hpp>
#include <range/v3/range/conversion.hpp>
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <charconv>
#include <iterator>
#include <limits>
#include <numeric>
#include <regex>
#inc... | 37.375652 | 186 | 0.574566 | ComicSansMS |
9c008761a4ea0029f4ed43ab696820a5ad4c27d8 | 5,671 | cpp | C++ | Game/Source/Graphics/TextureUtils.cpp | JanVijfhuizen/Data-Oriented-Engine | cf0af33249a5b81a28adb8e3502e426d112934ba | [
"MIT"
] | null | null | null | Game/Source/Graphics/TextureUtils.cpp | JanVijfhuizen/Data-Oriented-Engine | cf0af33249a5b81a28adb8e3502e426d112934ba | [
"MIT"
] | null | null | null | Game/Source/Graphics/TextureUtils.cpp | JanVijfhuizen/Data-Oriented-Engine | cf0af33249a5b81a28adb8e3502e426d112934ba | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Graphics/TextureUtils.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "StringView.h"
#include "VkRenderer/VkApp.h"
#include "VkRenderer/VkStackAllocator.h"
#include "VkRenderer/VkCommandBufferUtils.h"
#include "VkRenderer/VkSyncUtils.h"
#include "VkRenderer/VkImageUtils.h... | 35.892405 | 155 | 0.771822 | JanVijfhuizen |
9c07441de55c192415887232cde2f678a892a56a | 17,859 | cc | C++ | src/runtime/runtime-test-wasm.cc | marsonya/v8 | aa13c15f19cdb57643e02b5a2def80162c2200f9 | [
"BSD-3-Clause"
] | 2 | 2021-04-19T00:22:26.000Z | 2021-04-19T00:23:56.000Z | src/runtime/runtime-test-wasm.cc | marsonya/v8 | aa13c15f19cdb57643e02b5a2def80162c2200f9 | [
"BSD-3-Clause"
] | 5 | 2021-04-19T10:15:18.000Z | 2021-04-28T19:02:36.000Z | src/runtime/runtime-test-wasm.cc | marsonya/v8 | aa13c15f19cdb57643e02b5a2def80162c2200f9 | [
"BSD-3-Clause"
] | 1 | 2021-03-08T00:27:33.000Z | 2021-03-08T00:27:33.000Z | // Copyright 2021 the V8 project 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 "src/base/memory.h"
#include "src/base/platform/mutex.h"
#include "src/execution/arguments-inl.h"
#include "src/execution/frames-inl.h"
#includ... | 36.521472 | 80 | 0.718293 | marsonya |
9c0ada9cd56768f5143633c87da83d0f3f61dd4b | 1,382 | hpp | C++ | include/boost/simd/arch/x86/sse1/simd/function/load.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/arch/x86/sse1/simd/function/load.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/arch/x86/sse1/simd/function/load.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
@file
@copyright 2015 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... | 33.707317 | 100 | 0.502171 | yaeldarmon |
9c0f5c5de6bfe5889e0e7a9c7aaab616d590b5ce | 661 | cxx | C++ | src/test/dblclient/test_version.cxx | mcptr/dbl-service | 9af5aee06be0a4b909782b251bf6078513399d33 | [
"MIT"
] | null | null | null | src/test/dblclient/test_version.cxx | mcptr/dbl-service | 9af5aee06be0a4b909782b251bf6078513399d33 | [
"MIT"
] | null | null | null | src/test/dblclient/test_version.cxx | mcptr/dbl-service | 9af5aee06be0a4b909782b251bf6078513399d33 | [
"MIT"
] | 1 | 2018-10-09T06:30:03.000Z | 2018-10-09T06:30:03.000Z | #include "utils/test.hxx"
#include <string>
#include <memory>
#include <iostream>
int main(int argc, char** argv)
{
using namespace test;
using dblclient::Session;
UnitTest unit_test;
std::unique_ptr<Server> server(new Server());
std::string address = server->get_address();
int port = server->get_port();
uni... | 21.322581 | 57 | 0.698941 | mcptr |
9c10af8e01ebf7237c8d5fac4e991053993dc9ec | 8,144 | cpp | C++ | rviz_default_plugins/src/rviz_default_plugins/displays/image/image_display.cpp | miraiworks/rviz | c53e307332a62805bf4b4ee275c008011b51a970 | [
"BSD-3-Clause-Clear"
] | null | null | null | rviz_default_plugins/src/rviz_default_plugins/displays/image/image_display.cpp | miraiworks/rviz | c53e307332a62805bf4b4ee275c008011b51a970 | [
"BSD-3-Clause-Clear"
] | null | null | null | rviz_default_plugins/src/rviz_default_plugins/displays/image/image_display.cpp | miraiworks/rviz | c53e307332a62805bf4b4ee275c008011b51a970 | [
"BSD-3-Clause-Clear"
] | null | null | null | /*
* Copyright (c) 2012, Willow Garage, Inc.
* Copyright (c) 2017, Bosch Software Innovations GmbH.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code... | 31.937255 | 98 | 0.73502 | miraiworks |
9c15e855d38d2e17cd8eec66d4d57842d0d686c4 | 1,758 | hpp | C++ | rosbag2_transport/src/rosbag2_transport/formatter.hpp | albtam/rosbag2 | e4ce24cdfa7e24c6d2c025ecc38ab1157a0eecc8 | [
"Apache-2.0"
] | 1 | 2020-05-22T13:40:13.000Z | 2020-05-22T13:40:13.000Z | rosbag2_transport/src/rosbag2_transport/formatter.hpp | albtam/rosbag2 | e4ce24cdfa7e24c6d2c025ecc38ab1157a0eecc8 | [
"Apache-2.0"
] | 7 | 2019-10-22T17:24:35.000Z | 2020-01-03T16:28:36.000Z | rosbag2_transport/src/rosbag2_transport/formatter.hpp | albtam/rosbag2 | e4ce24cdfa7e24c6d2c025ecc38ab1157a0eecc8 | [
"Apache-2.0"
] | 8 | 2020-04-08T11:11:25.000Z | 2020-11-16T15:55:24.000Z | // Copyright 2018, Bosch Software Innovations GmbH.
//
// 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 applicabl... | 30.310345 | 96 | 0.770193 | albtam |
9c1611b336777d85b788ac690f91083e28d56834 | 776 | hpp | C++ | src/stan/math/prim/mat/meta/is_constant.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/math/prim/mat/meta/is_constant.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/math/prim/mat/meta/is_constant.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_MAT_META_IS_CONSTANT_HPP
#define STAN_MATH_PRIM_MAT_META_IS_CONSTANT_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/meta/is_eigen.hpp>
#include <stan/math/prim/scal/meta/bool_constant.hpp>
#include <stan/math/prim/scal/meta/is_constant.hpp>
#include <type_traits>
n... | 31.04 | 77 | 0.761598 | alashworth |
9c171112ed84d97e7e7cef4373009c84055eb7b0 | 4,613 | hpp | C++ | external/boost_1_60_0/qsboost/phoenix/core/expression.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/phoenix/core/expression.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/phoenix/core/expression.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null |
#if !QSBOOST_PHOENIX_IS_ITERATING
#ifndef QSBOOST_PHOENIX_CORE_EXPRESSION_HPP
#define QSBOOST_PHOENIX_CORE_EXPRESSION_HPP
#include <qsboost/phoenix/core/limits.hpp>
#include <qsboost/call_traits.hpp>
#include <qsboost/fusion/sequence/intrinsic/at.hpp>
#include <qsboost/phoenix/core/as_actor.hpp>
#include <qsboost/ph... | 34.94697 | 110 | 0.620204 | wouterboomsma |
9c19f5efe66502016882f3258595b5af6719725e | 102 | hpp | C++ | contracts/eosiolib/stdlib.hpp | celes-dev/celesos | b2877d64915bb027b9d86a7a692c6e91f23328b0 | [
"MIT"
] | null | null | null | contracts/eosiolib/stdlib.hpp | celes-dev/celesos | b2877d64915bb027b9d86a7a692c6e91f23328b0 | [
"MIT"
] | null | null | null | contracts/eosiolib/stdlib.hpp | celes-dev/celesos | b2877d64915bb027b9d86a7a692c6e91f23328b0 | [
"MIT"
] | null | null | null | #pragma once
#include <initializer_list>
#include <iterator>
#include <memory>
#define DEBUG 1
| 14.571429 | 28 | 0.715686 | celes-dev |
9c1cfcdcce7dcc27a9170dafc83d0afa6e118049 | 2,044 | cpp | C++ | Luogu/P1619.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-09-11T13:17:28.000Z | 2020-09-11T13:17:28.000Z | Luogu/P1619.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-10-22T13:36:23.000Z | 2020-10-22T13:36:23.000Z | Luogu/P1619.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-10-22T13:33:11.000Z | 2020-10-22T13:33:11.000Z | /*
Problem: P1619
Time: 2020/10/14 20:35:55
Author: Insouciant21
Status: Accepted
*/
#include <bits/stdc++.h>
using namespace std;
const int maxn = int(1e7) * 4 + 1;
bitset<maxn> numList;
map<int, int> q;
int prime[2433655];
int cnt;
void prepare() {
numList[0] = numList[1] = 1;
for (int i = 2; i ... | 22.966292 | 80 | 0.395793 | Insouciant21 |
9c1e2865c00182de878ee3f78dcc572f223b33ce | 33,768 | cpp | C++ | src/Bindings/LuaState.cpp | p-mcgowan/MCServer | 46bdc6c2c621a27c40e11c7af701f3ce50148e01 | [
"Apache-2.0"
] | null | null | null | src/Bindings/LuaState.cpp | p-mcgowan/MCServer | 46bdc6c2c621a27c40e11c7af701f3ce50148e01 | [
"Apache-2.0"
] | null | null | null | src/Bindings/LuaState.cpp | p-mcgowan/MCServer | 46bdc6c2c621a27c40e11c7af701f3ce50148e01 | [
"Apache-2.0"
] | null | null | null |
// LuaState.cpp
// Implements the cLuaState class representing the wrapper over lua_State *, provides associated helper functions
#include "Globals.h"
#include "LuaState.h"
extern "C"
{
#include "lua/src/lualib.h"
}
#undef TOLUA_TEMPLATE_BIND
#include "tolua++/include/tolua++.h"
#include "Bindings.h"
#include "Ma... | 18.801782 | 130 | 0.695037 | p-mcgowan |
9c2484d3538e728431aad1d2f8712e14ce7f3d27 | 1,412 | hh | C++ | src/pks/PK_BDF.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/pks/PK_BDF.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/pks/PK_BDF.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /*
Process Kernels
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Authors: Konstantin Lipnikov, Ethan Coon
This is a purely virtu... | 24.77193 | 80 | 0.723796 | fmyuan |
9c2567c22c33c731fc0e23733c13d9a9191fdef5 | 14,586 | cpp | C++ | Tudat/Astrodynamics/OrbitDetermination/AccelerationPartials/directTidalDissipationAccelerationPartial.cpp | sebranchett/tudat | 24e5f3cc85c250fcbed0aac37f026c1dd7fd6c44 | [
"BSD-3-Clause"
] | null | null | null | Tudat/Astrodynamics/OrbitDetermination/AccelerationPartials/directTidalDissipationAccelerationPartial.cpp | sebranchett/tudat | 24e5f3cc85c250fcbed0aac37f026c1dd7fd6c44 | [
"BSD-3-Clause"
] | null | null | null | Tudat/Astrodynamics/OrbitDetermination/AccelerationPartials/directTidalDissipationAccelerationPartial.cpp | sebranchett/tudat | 24e5f3cc85c250fcbed0aac37f026c1dd7fd6c44 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010-2019, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have receiv... | 53.04 | 163 | 0.67222 | sebranchett |
9c2633e8271987c1198734d2c376e5426524abb9 | 1,648 | cpp | C++ | code/texturanalysis.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 8 | 2020-02-21T22:21:01.000Z | 2022-02-16T05:30:54.000Z | code/texturanalysis.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | null | null | null | code/texturanalysis.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 3 | 2020-08-05T05:42:35.000Z | 2021-08-30T05:39:51.000Z | #define _USE_MATH_DEFINES
#include <iostream>
#include <stdio.h>
#include <cmath>
#include <iomanip>
#include <vector>
#include <string>
#include <algorithm>
#include <unordered_set>
#include <ctype.h>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <unordered_map>
#define EPSILON 0.00001
type... | 18.942529 | 54 | 0.418689 | matthewReff |
9c26a39d5606a2d8fc0213a969ff68daa4b1dacf | 2,121 | hpp | C++ | cppcache/src/TimeoutTimer.hpp | vaijira/geode-native | 5a46b659b86ecc4890df59c1b7abe727192e5d06 | [
"Apache-2.0"
] | null | null | null | cppcache/src/TimeoutTimer.hpp | vaijira/geode-native | 5a46b659b86ecc4890df59c1b7abe727192e5d06 | [
"Apache-2.0"
] | null | null | null | cppcache/src/TimeoutTimer.hpp | vaijira/geode-native | 5a46b659b86ecc4890df59c1b7abe727192e5d06 | [
"Apache-2.0"
] | null | null | null | #pragma once
#ifndef GEODE_TIMEOUTTIMER_H_
#define GEODE_TIMEOUTTIMER_H_
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this fil... | 28.662162 | 75 | 0.726073 | vaijira |
9c2b25a05445cbd4fb817c64503b949df9959a2e | 17,176 | cpp | C++ | protoc_plugin/main.cpp | FrancoisChabot/easy_grpc | d811e63fa022e1030a086e38945f4000b947d9af | [
"Apache-2.0"
] | 26 | 2019-06-09T02:00:00.000Z | 2022-02-16T08:08:58.000Z | protoc_plugin/main.cpp | FrancoisChabot/easy_grpc | d811e63fa022e1030a086e38945f4000b947d9af | [
"Apache-2.0"
] | 13 | 2019-05-28T02:05:23.000Z | 2019-07-10T20:21:12.000Z | protoc_plugin/main.cpp | FrancoisChabot/easy_grpc | d811e63fa022e1030a086e38945f4000b947d9af | [
"Apache-2.0"
] | 4 | 2019-06-08T11:30:38.000Z | 2020-05-17T04:45:37.000Z | #include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/plugin.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream.h>
#include <filesystem>
#include <functional>
using google::protobuf::Descripto... | 34.629032 | 174 | 0.55694 | FrancoisChabot |
9c2ba419c96951cf61cbd815930d9c9460333a1c | 6,838 | cpp | C++ | src/common/meta/GflagsManager.cpp | wenhaocs/nebula | 326b856cdf44fcaf67d3883073dc9412a9e3eebd | [
"Apache-2.0"
] | null | null | null | src/common/meta/GflagsManager.cpp | wenhaocs/nebula | 326b856cdf44fcaf67d3883073dc9412a9e3eebd | [
"Apache-2.0"
] | null | null | null | src/common/meta/GflagsManager.cpp | wenhaocs/nebula | 326b856cdf44fcaf67d3883073dc9412a9e3eebd | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2019 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "common/meta/GflagsManager.h"
#include "common/conf/Configuration.h"
#include "common/fs/FileUtils.h"
DEFINE_string(gflags_mode_json, "share/resources/gflags.json", "gflags mode json for s... | 34.887755 | 98 | 0.630301 | wenhaocs |
9c2c0ff0cc5390f799834059af174f87aa59e277 | 3,288 | cpp | C++ | src/qt/veil/veilstatusbar.cpp | Oilplik/veil-1 | 852b05b255b464201de53fe7afdf7c696ed50724 | [
"MIT"
] | null | null | null | src/qt/veil/veilstatusbar.cpp | Oilplik/veil-1 | 852b05b255b464201de53fe7afdf7c696ed50724 | [
"MIT"
] | null | null | null | src/qt/veil/veilstatusbar.cpp | Oilplik/veil-1 | 852b05b255b464201de53fe7afdf7c696ed50724 | [
"MIT"
] | null | null | null | #include <qt/veil/veilstatusbar.h>
#include <qt/veil/forms/ui_veilstatusbar.h>
#include <qt/bitcoingui.h>
#include <qt/walletmodel.h>
#include <qt/veil/qtutils.h>
#include <iostream>
VeilStatusBar::VeilStatusBar(QWidget *parent, BitcoinGUI* gui) :
QWidget(parent),
mainWindow(gui),
ui(new Ui::VeilStatusBar... | 32.88 | 179 | 0.716241 | Oilplik |
9c2e210c0eef0fa2784d7abf75641799a36d804f | 4,156 | cpp | C++ | DT3Core/Resources/Importers/ImporterFontTTF.cpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2018-10-05T15:03:27.000Z | 2019-03-19T11:01:56.000Z | DT3Core/Resources/Importers/ImporterFontTTF.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3Core/Resources/Importers/ImporterFontTTF.cpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | //==============================================================================
///
/// File: ImporterFontTTF.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part of this ... | 36.778761 | 111 | 0.478104 | 9heart |
9c2e5f56b26e34245f54665bec514f35e3fed30d | 5,272 | cpp | C++ | tests/Util/Time.cpp | DiantArts/xrnEcs | 821ad9504dc022972f499721a8f494ab78d4d2d8 | [
"MIT"
] | null | null | null | tests/Util/Time.cpp | DiantArts/xrnEcs | 821ad9504dc022972f499721a8f494ab78d4d2d8 | [
"MIT"
] | 13 | 2022-03-18T00:36:09.000Z | 2022-03-28T14:14:26.000Z | tests/Util/Time.cpp | DiantArts/xrnEcs | 821ad9504dc022972f499721a8f494ab78d4d2d8 | [
"MIT"
] | null | null | null | #include <pch.hpp>
#include <xrn/Util/Time.hpp>
template class ::xrn::util::BasicTime<double>;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#include <boost/test/unit_test.hpp>
#pragma GCC diagnostic pop
BOOST_AUTO_TEST_SUITE(test)
BOOST_AUTO_TEST_SUITE(xrn)
BOOST_AUTO_TEST_SUITE(util)
BOOST_A... | 27.89418 | 65 | 0.600341 | DiantArts |
9c3062e925d921e9a97c72c056b1e17c1b853826 | 14,587 | cpp | C++ | whip/VFSBackend.cpp | IlyaFinkelshteyn/whip-server-1 | d6055f523950f5f05cb164cc7ad79a5a9424809f | [
"Apache-2.0"
] | 2 | 2018-08-16T02:00:55.000Z | 2018-08-19T06:27:00.000Z | whip/VFSBackend.cpp | IlyaFinkelshteyn/whip-server-1 | d6055f523950f5f05cb164cc7ad79a5a9424809f | [
"Apache-2.0"
] | 2 | 2018-08-19T17:49:15.000Z | 2019-04-24T16:58:32.000Z | whip/VFSBackend.cpp | IlyaFinkelshteyn/whip-server-1 | d6055f523950f5f05cb164cc7ad79a5a9424809f | [
"Apache-2.0"
] | 5 | 2016-12-18T08:16:04.000Z | 2017-06-04T22:59:41.000Z | #include "StdAfx.h"
#include "VFSBackend.h"
#include "AppLog.h"
#include "AssetStorageError.h"
#include "Settings.h"
#include "DatabaseSet.h"
#include "IndexFile.h"
#include "SQLiteIndexFileManager.h"
#include "IIndexFileManager.h"
#include "kashmir/uuid.h"
#include "SQLiteError.h"
#include <boost/filesystem/fstream... | 31.989035 | 149 | 0.710838 | IlyaFinkelshteyn |
9c30b76ccf7ff6426b05eb259bf7db7ef015b39b | 4,019 | hpp | C++ | Source/AMRInterpolator/AMRInterpolator.hpp | GeraintPratten/GRChombo | ab6c9d5bd2267215a8f199f3df1ea9dcf4b5abe6 | [
"BSD-3-Clause"
] | null | null | null | Source/AMRInterpolator/AMRInterpolator.hpp | GeraintPratten/GRChombo | ab6c9d5bd2267215a8f199f3df1ea9dcf4b5abe6 | [
"BSD-3-Clause"
] | null | null | null | Source/AMRInterpolator/AMRInterpolator.hpp | GeraintPratten/GRChombo | ab6c9d5bd2267215a8f199f3df1ea9dcf4b5abe6 | [
"BSD-3-Clause"
] | null | null | null | /* GRChombo
* Copyright 2012 The GRChombo collaboration.
* Please refer to LICENSE in GRChombo's root directory.
*/
#ifndef AMRINTERPOLATOR_HPP_
#define AMRINTERPOLATOR_HPP_
// Chombo includes
#include "AMR.H"
#include "AMRLevel.H"
#include "UsingNamespace.H"
// Our includes
#include "BoundaryConditions.hpp"
#... | 33.491667 | 77 | 0.696193 | GeraintPratten |
9c3199d0fe9f3ea30e284f29e8059b00b560cb84 | 1,088 | cpp | C++ | AK/MappedFile.cpp | shubhdev/serenity | 9321d9d83d366ad4cf686c856063ff9ac97c18a4 | [
"BSD-2-Clause"
] | 4 | 2021-02-23T05:35:25.000Z | 2021-06-08T06:11:06.000Z | AK/MappedFile.cpp | shubhdev/serenity | 9321d9d83d366ad4cf686c856063ff9ac97c18a4 | [
"BSD-2-Clause"
] | 4 | 2021-04-27T20:44:44.000Z | 2021-06-30T18:07:10.000Z | AK/MappedFile.cpp | shubhdev/serenity | 9321d9d83d366ad4cf686c856063ff9ac97c18a4 | [
"BSD-2-Clause"
] | 1 | 2022-01-10T08:02:34.000Z | 2022-01-10T08:02:34.000Z | /*
* Copyright (c) 2018-2021, Andreas Kling <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/MappedFile.h>
#include <AK/ScopeGuard.h>
#include <AK/String.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
namespace AK {
Result<... | 19.428571 | 78 | 0.627757 | shubhdev |
9c349d12895913e37f7dabba7864ee7f7724e541 | 21,610 | cpp | C++ | shared/ebm_native/CalculateInteractionScore.cpp | jruales/interpret | edb7418cd12865e55e352ace6c61ff5cef8e1061 | [
"MIT"
] | null | null | null | shared/ebm_native/CalculateInteractionScore.cpp | jruales/interpret | edb7418cd12865e55e352ace6c61ff5cef8e1061 | [
"MIT"
] | null | null | null | shared/ebm_native/CalculateInteractionScore.cpp | jruales/interpret | edb7418cd12865e55e352ace6c61ff5cef8e1061 | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Microsoft Corporation
// Licensed under the MIT license.
// Author: Paul Koch <[email protected]>
#include "PrecompiledHeader.h"
#include <stddef.h> // size_t, ptrdiff_t
#include <limits> // numeric_limits
#include "ebm_native.h"
#include "EbmInternal.h"
#include "Logging.h" // EBM_ASSERT & LOG
/... | 49.002268 | 222 | 0.741323 | jruales |
9c35b8ac2db3bbc1bdeff2051048e22eec55d45b | 4,159 | cpp | C++ | BookSamples/Capitolo7/Filtro_Shelving_II_ordine/Filtro_Shelving_II_ordine/main.cpp | mscarpiniti/ArtBook | ca74c773c7312d22329cc453f4a5a799fe2dd587 | [
"MIT"
] | null | null | null | BookSamples/Capitolo7/Filtro_Shelving_II_ordine/Filtro_Shelving_II_ordine/main.cpp | mscarpiniti/ArtBook | ca74c773c7312d22329cc453f4a5a799fe2dd587 | [
"MIT"
] | null | null | null | BookSamples/Capitolo7/Filtro_Shelving_II_ordine/Filtro_Shelving_II_ordine/main.cpp | mscarpiniti/ArtBook | ca74c773c7312d22329cc453f4a5a799fe2dd587 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
#include "audioIO.h"
#define F0 (3000)
#define FB (1000)
using namespace std;
typedef struct
{
float f0;
float fb;
float G;
float wL[2];
float wR[2];
} filtro;
/* Parametri del filtro Shelving del II ordine -----------------------... | 27.183007 | 108 | 0.550373 | mscarpiniti |
9c383eab4379b324dceb5df57df14d90c2349016 | 4,562 | cpp | C++ | hard/training_army/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | hard/training_army/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | hard/training_army/main.cpp | exbibyte/hr | 100514dfc2a1c9b5366c12ec0a75e889132a620e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// edge
struct E {
int from;
int to;
int cap;
int rev;
};
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n, t;
cin >> n >> t;
int source = n + t;
int sink = n + t + 1;
int nodes_total = n + t + 2;
vec... | 26.523256 | 79 | 0.437089 | exbibyte |
9c3b081fbe4be5f759063ecd100484698ed4247f | 778 | hpp | C++ | ReactNativeFrontend/ios/Pods/boost/boost/thread/experimental/config/inline_namespace.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 17,104 | 2016-12-28T07:45:54.000Z | 2022-03-31T07:02:52.000Z | ios/Pods/boost-for-react-native/boost/thread/experimental/config/inline_namespace.hpp | c7yrus/alyson-v3 | 5ad95a8f782f5f5d2fd543d44ca6a8b093395965 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | ios/Pods/boost-for-react-native/boost/thread/experimental/config/inline_namespace.hpp | c7yrus/alyson-v3 | 5ad95a8f782f5f5d2fd543d44ca6a8b093395965 | [
"Apache-2.0"
] | 3,568 | 2016-12-28T07:47:46.000Z | 2022-03-31T02:13:19.000Z | #ifndef BOOST_THREAD_EXPERIMENTAL_CONFIG_INLINE_NAMESPACE_HPP
#define BOOST_THREAD_EXPERIMENTAL_CONFIG_INLINE_NAMESPACE_HPP
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Vicente J. Botet Escriba 2014. Distributed under the Boost
// Software License, Version 1.0. (Se... | 32.416667 | 78 | 0.642674 | Harshitha91 |
9c47edd0ee7c2fd984564056dbdd7887a290a433 | 17,345 | cc | C++ | util/cache.cc | paritytech/rocksdb | 362c69481d18f8bf1bc59d93750dfebf4705bd2e | [
"BSD-3-Clause"
] | 2 | 2021-04-22T06:28:43.000Z | 2021-11-12T06:34:16.000Z | util/cache.cc | paritytech/rocksdb | 362c69481d18f8bf1bc59d93750dfebf4705bd2e | [
"BSD-3-Clause"
] | null | null | null | util/cache.cc | paritytech/rocksdb | 362c69481d18f8bf1bc59d93750dfebf4705bd2e | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyright (c) 2011 The... | 29.751286 | 79 | 0.638109 | paritytech |
9c4b32435f73e16e3c625751edcb717c87c70655 | 1,402 | cpp | C++ | CK3toEU4/Source/Mappers/ReligionGroupScraper/ReligionGroupScraper.cpp | Idhrendur/CK3toEU4 | 25137130f14d78ade8962dfc87ff9c4fc237973d | [
"MIT"
] | 1 | 2020-09-03T00:08:27.000Z | 2020-09-03T00:08:27.000Z | CK3toEU4/Source/Mappers/ReligionGroupScraper/ReligionGroupScraper.cpp | PheonixScale9094/CK3toEU4 | fcf891880ec6cc5cbafbb4d249b5c9f6528f9fd0 | [
"MIT"
] | null | null | null | CK3toEU4/Source/Mappers/ReligionGroupScraper/ReligionGroupScraper.cpp | PheonixScale9094/CK3toEU4 | fcf891880ec6cc5cbafbb4d249b5c9f6528f9fd0 | [
"MIT"
] | null | null | null | #include "ReligionGroupScraper.h"
#include "Log.h"
#include "OSCompatibilityLayer.h"
#include "ParserHelpers.h"
#include "ReligionGroupScraping.h"
#include "CommonRegexes.h"
mappers::ReligionGroupScraper::ReligionGroupScraper()
{
LOG(LogLevel::Info) << "-> Scraping religion hierarchy.";
registerKeys();
for (const a... | 34.195122 | 120 | 0.773894 | Idhrendur |
9c4da66bcaa4000103323c8634fea629a15c3aa5 | 5,376 | cpp | C++ | src/graphs/laplacian.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | src/graphs/laplacian.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | src/graphs/laplacian.cpp | wmotte/toolkid | 2a8f82e1492c9efccde9a4935ce3019df1c68cde | [
"MIT"
] | null | null | null | #include "tkdCmdParser.h"
#include "graphCommon.h"
/**
* Calculate (normalized) laplacian and eigenvector/values.
*/
class Laplacian
{
public:
typedef double PixelType;
/**
* Run app.
*/
void Run( const std::string& filename, const std::string& outputFileName,
bool normalize,
const std::string& outpu... | 28.748663 | 118 | 0.678943 | wmotte |
9c4e385a8b4226636de01172b84b207f5451ceb8 | 4,656 | cc | C++ | uuv_sensor_plugins/uuv_sensor_plugins/src/MagnetometerPlugin.cc | Abhi10arora/uuv_simulator | bfcd8bb4b05f14c8d5ec0f3431223f654d4b1441 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | uuv_sensor_plugins/uuv_sensor_plugins/src/MagnetometerPlugin.cc | Abhi10arora/uuv_simulator | bfcd8bb4b05f14c8d5ec0f3431223f654d4b1441 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | uuv_sensor_plugins/uuv_sensor_plugins/src/MagnetometerPlugin.cc | Abhi10arora/uuv_simulator | bfcd8bb4b05f14c8d5ec0f3431223f654d4b1441 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2018-10-18T15:11:01.000Z | 2018-10-18T15:11:01.000Z | // Copyright (c) 2016 The UUV Simulator Authors.
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | 36.375 | 78 | 0.717354 | Abhi10arora |
9c4ee80c068c69dfe9733e6e35573ed539111929 | 632 | cpp | C++ | t1m1/FOSSSim/ExplicitEuler.cpp | dailysoap/CSMM.104x | 4515b30ab5f60827a9011b23ef155a3063584a9d | [
"MIT"
] | null | null | null | t1m1/FOSSSim/ExplicitEuler.cpp | dailysoap/CSMM.104x | 4515b30ab5f60827a9011b23ef155a3063584a9d | [
"MIT"
] | null | null | null | t1m1/FOSSSim/ExplicitEuler.cpp | dailysoap/CSMM.104x | 4515b30ab5f60827a9011b23ef155a3063584a9d | [
"MIT"
] | null | null | null | #include "ExplicitEuler.h"
bool ExplicitEuler::stepScene( TwoDScene& scene, scalar dt )
{
// Your code goes here!
// Some tips on getting data from TwoDScene:
// A vector containing all of the system's position DoFs. x0, y0, x1, y1, ...
//VectorXs& x = scene.getX();
// A vector containing all ... | 31.6 | 81 | 0.620253 | dailysoap |
9c52156354e973d58ee13f744cf22c0fdb5f0dd2 | 18,521 | hpp | C++ | include/beap_view.hpp | degski/beap | 6fffd5b536f29ed7551bdbe66ad20eb39e7024c8 | [
"MIT"
] | 1 | 2020-03-12T15:17:50.000Z | 2020-03-12T15:17:50.000Z | include/beap_view.hpp | degski/beap | 6fffd5b536f29ed7551bdbe66ad20eb39e7024c8 | [
"MIT"
] | null | null | null | include/beap_view.hpp | degski/beap | 6fffd5b536f29ed7551bdbe66ad20eb39e7024c8 | [
"MIT"
] | null | null | null |
// MIT License
//
// Copyright (c) 2020 degski
//
// 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, rhs_, modify, mer... | 39.915948 | 132 | 0.528049 | degski |
9c53de73ff008b60db768a75560594941870e0d9 | 1,000 | cpp | C++ | src/Core/Status.cpp | anisimovsergey/gluino_test | 7de141362cafb244841b13b7b86c17d00f550fba | [
"MIT"
] | 5 | 2017-10-07T06:46:23.000Z | 2018-12-10T07:14:47.000Z | src/Core/Status.cpp | anisimovsergey/gluino_test | 7de141362cafb244841b13b7b86c17d00f550fba | [
"MIT"
] | 8 | 2017-01-07T15:01:32.000Z | 2017-07-16T20:18:10.000Z | src/Core/Status.cpp | anisimovsergey/gluino_test | 7de141362cafb244841b13b7b86c17d00f550fba | [
"MIT"
] | 4 | 2017-01-07T14:58:00.000Z | 2019-10-30T09:38:53.000Z | #include "Status.hpp"
#include "Memory.hpp"
using namespace Core;
Status Status::OK(StatusCode::OK, "OK");
Status Status::NotImplemented(StatusCode::NotImplemented, "Not implemented.");
Status::Status() : code(StatusCode::OK), message("OK") {
}
Status::Status(const StatusCode& code, const std::string& message) :
... | 26.315789 | 95 | 0.693 | anisimovsergey |
9c56ca81ea5c09699806b48f266a19f636eb89df | 9,051 | hpp | C++ | include/sprout/cstdlib/str_to_float.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | 4 | 2021-12-29T22:17:40.000Z | 2022-03-23T11:53:44.000Z | dsp/lib/sprout/sprout/cstdlib/str_to_float.hpp | TheSlowGrowth/TapeLooper | ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264 | [
"MIT"
] | 16 | 2021-10-31T21:41:09.000Z | 2022-01-22T10:51:34.000Z | include/sprout/cstdlib/str_to_float.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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)
==... | 30.681356 | 105 | 0.689537 | thinkoid |
9c578e32666ef7cd89a35e26154d369a33841d14 | 5,032 | cpp | C++ | inference-engine/src/multi_device/multi_device_async_infer_request.cpp | oxygenxo/openvino | a984e7e81bcf4a18138b57632914b5a88815282d | [
"Apache-2.0"
] | null | null | null | inference-engine/src/multi_device/multi_device_async_infer_request.cpp | oxygenxo/openvino | a984e7e81bcf4a18138b57632914b5a88815282d | [
"Apache-2.0"
] | 27 | 2020-12-29T14:38:34.000Z | 2022-02-21T13:04:03.000Z | inference-engine/src/multi_device/multi_device_async_infer_request.cpp | dorloff/openvino | 1c3848a96fdd325b044babe6d5cd26db341cf85b | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#include <string>
#include <vector>
#include <memory>
#include <map>
#include "multi_device_async_infer_request.hpp"
namespace Mul... | 50.828283 | 141 | 0.614269 | oxygenxo |
9c59b39adaec4554bc712f329391175a5ffd0c10 | 3,695 | cpp | C++ | src/Bme280Spi.cpp | karol57/Bme280SpiTest | ecbd64a71396f63be1e4595b2562f6feaa6690ae | [
"MIT"
] | null | null | null | src/Bme280Spi.cpp | karol57/Bme280SpiTest | ecbd64a71396f63be1e4595b2562f6feaa6690ae | [
"MIT"
] | null | null | null | src/Bme280Spi.cpp | karol57/Bme280SpiTest | ecbd64a71396f63be1e4595b2562f6feaa6690ae | [
"MIT"
] | null | null | null | #include "Bme280Spi.hpp"
#include <cstring>
#include <iostream>
#include <thread>
#include <chrono>
namespace {
void ensureValidSpiSpeed(SpiDevice& spi)
{
constexpr uint32_t Mhz20 = 20'000'000;
if (const uint32_t spiSpeed = spi.getMaxSpeedHz(); spiSpeed > Mhz20)
{
spi.setMaxSpeedHz(Mhz20);
... | 32.699115 | 111 | 0.69364 | karol57 |
9c5a54d102180c96470f77c1515c8b5ea4243363 | 3,115 | cpp | C++ | trainings/2015-08-02-ZOJ-Monthly-2015-July/F.cpp | HcPlu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 9 | 2017-10-07T13:35:45.000Z | 2021-06-07T17:36:55.000Z | trainings/2015-08-02-ZOJ-Monthly-2015-July/F.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | null | null | null | trainings/2015-08-02-ZOJ-Monthly-2015-July/F.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 3 | 2018-04-24T05:27:21.000Z | 2019-04-25T06:06:00.000Z | #include <cstdio>
#include <iostream>
using namespace std;
const int N = 10000010;
int n, m;
int num[N], a[111111];
bool U_prime[N];
int cnt = 0;
struct Node {
int l, r, Max, sum;
} tree[400444];
void update(int root) {
tree[root].Max = max(tree[root << 1].Max, tree[root << 1 | 1].Max);
tree[root].sum ... | 23.961538 | 79 | 0.402247 | HcPlu |
9c5aea0a6ffeba117367b70a8617ce4bca0ed544 | 4,936 | cpp | C++ | ame/src/v20190916/model/TRTCJoinRoomInput.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | ame/src/v20190916/model/TRTCJoinRoomInput.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | ame/src/v20190916/model/TRTCJoinRoomInput.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.120879 | 144 | 0.680308 | suluner |
9c62c70f747d78ce976c8b75b284d2e70a231f8f | 2,199 | hh | C++ | src/Distributed/MortonOrderRedistributeNodes.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/Distributed/MortonOrderRedistributeNodes.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Distributed/MortonOrderRedistributeNodes.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// MortonOrderRedistributeNodes
//
// Attempt to redistribute nodes such that they are laid out in memory
// in a Morton ordering. Note that this involves renumbering the nodes of
// each NodeList, not just redistributing them between pr... | 32.820896 | 90 | 0.653024 | jmikeowen |
9c697b6e0764a0944673453b6b221ca376f1b109 | 6,923 | cpp | C++ | src/singletons/settingsmanager.cpp | alexandera3/chatterino2 | 41fbcc738b34a19f66eef3cca8d5dea0b89e07a3 | [
"MIT"
] | 1 | 2018-03-24T18:40:00.000Z | 2018-03-24T18:40:00.000Z | src/singletons/settingsmanager.cpp | alexandera3/chatterino2 | 41fbcc738b34a19f66eef3cca8d5dea0b89e07a3 | [
"MIT"
] | null | null | null | src/singletons/settingsmanager.cpp | alexandera3/chatterino2 | 41fbcc738b34a19f66eef3cca8d5dea0b89e07a3 | [
"MIT"
] | null | null | null | #include "singletons/settingsmanager.hpp"
#include "debug/log.hpp"
#include "singletons/pathmanager.hpp"
#include "singletons/resourcemanager.hpp"
#include "singletons/windowmanager.hpp"
using namespace chatterino::messages;
namespace chatterino {
namespace singletons {
std::vector<std::weak_ptr<pajlada::Settings::I... | 29.459574 | 99 | 0.628485 | alexandera3 |
9c6a7e723996e5e54041d88ec331b20845a226db | 2,255 | cpp | C++ | ir/node.cpp | pierce-m/p4c | afe96cf5a658f7bf5e1b95a044c241d9afb13dc6 | [
"Apache-2.0"
] | null | null | null | ir/node.cpp | pierce-m/p4c | afe96cf5a658f7bf5e1b95a044c241d9afb13dc6 | [
"Apache-2.0"
] | null | null | null | ir/node.cpp | pierce-m/p4c | afe96cf5a658f7bf5e1b95a044c241d9afb13dc6 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2013-present Barefoot Networks, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 33.161765 | 73 | 0.566741 | pierce-m |
9c6cc0772cd6f8a3fc597daf84a19aec3613854c | 782 | cpp | C++ | GPTP/src/graphics/draw_hook.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 8 | 2015-04-03T16:50:59.000Z | 2021-01-06T17:12:29.000Z | GPTP/src/graphics/draw_hook.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 6 | 2015-04-03T18:10:56.000Z | 2016-02-18T05:04:21.000Z | GPTP/src/graphics/draw_hook.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 6 | 2015-04-04T04:37:33.000Z | 2018-04-09T09:03:50.000Z | #include "draw_hook.h"
#include "../SCBW/api.h"
#include "../hook_tools.h"
#include "graphics_misc.h"
namespace {
//-------- Draw hook taken from BWAPI --------//
bool wantRefresh = false;
void __stdcall DrawHook(graphics::Bitmap *surface, Bounds *bounds) {
if (wantRefresh) {
wantRefresh = false;
... | 20.578947 | 70 | 0.609974 | idmontie |
9c6ef314c1bc19517b00f75bb594d36395203b8e | 18,170 | cpp | C++ | src/hook.cpp | juce/taksi | 154ce405d5c51429d66c5e160891afa60dd23044 | [
"BSD-3-Clause"
] | 2 | 2020-10-23T02:42:18.000Z | 2021-12-08T14:01:46.000Z | src/hook.cpp | juce/taksi | 154ce405d5c51429d66c5e160891afa60dd23044 | [
"BSD-3-Clause"
] | null | null | null | src/hook.cpp | juce/taksi | 154ce405d5c51429d66c5e160891afa60dd23044 | [
"BSD-3-Clause"
] | null | null | null | /* hook */
/* Version 1.1 (with Win32 GUI) by Juce. */
#include <windows.h>
#include <windef.h>
#include <string.h>
#include <stdio.h>
#include "mydll.h"
#include "shared.h"
#include "win32gui.h"
#include "config.h"
#include "hook.h"
FILE* log = NULL;
// Program Configuration
static TAXI_CONFIG con... | 31.273666 | 111 | 0.671987 | juce |
9c7349434259d3d42f01b7ed9e66f64d09e76ef2 | 7,923 | cpp | C++ | src/rx/core/memory/buddy_allocator.cpp | DethRaid/rex | 21ba92d38398240faa45a402583c11f8c72e6e41 | [
"MIT"
] | 2 | 2020-06-13T11:39:46.000Z | 2021-03-10T01:03:03.000Z | src/rx/core/memory/buddy_allocator.cpp | DethRaid/rex | 21ba92d38398240faa45a402583c11f8c72e6e41 | [
"MIT"
] | null | null | null | src/rx/core/memory/buddy_allocator.cpp | DethRaid/rex | 21ba92d38398240faa45a402583c11f8c72e6e41 | [
"MIT"
] | 1 | 2021-01-06T03:47:08.000Z | 2021-01-06T03:47:08.000Z | #include <string.h> // memcpy
#include "rx/core/memory/buddy_allocator.h"
#include "rx/core/concurrency/scope_lock.h"
#include "rx/core/hints/unlikely.h"
#include "rx/core/hints/likely.h"
#include "rx/core/assert.h"
namespace Rx::Memory {
// Each allocation in the heap is prefixed with this header.
struct alignas... | 28.397849 | 82 | 0.649628 | DethRaid |
9c753066d459755141cd3223d7174009bedff3ca | 2,172 | cpp | C++ | rmw_connext_dynamic_cpp/src/publish_take.cpp | ross-desmond/rmw_connext | 6c22e0a4a76c7ca6ffe2340e0009eaeca40789e9 | [
"Apache-2.0"
] | 24 | 2017-11-15T09:16:24.000Z | 2022-03-30T07:32:15.000Z | rmw_connext_dynamic_cpp/src/publish_take.cpp | ross-desmond/rmw_connext | 6c22e0a4a76c7ca6ffe2340e0009eaeca40789e9 | [
"Apache-2.0"
] | 394 | 2015-03-07T01:00:13.000Z | 2022-02-03T15:40:52.000Z | rmw_connext_dynamic_cpp/src/publish_take.cpp | ross-desmond/rmw_connext | 6c22e0a4a76c7ca6ffe2340e0009eaeca40789e9 | [
"Apache-2.0"
] | 41 | 2015-08-13T02:07:08.000Z | 2021-07-07T03:41:44.000Z | // Copyright 2014-2016 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 ... | 38.105263 | 82 | 0.785912 | ross-desmond |
9c7bb56013c79a1f386e8d97d0786a977e22fb38 | 1,967 | cpp | C++ | 601-700/647-Palindromic_Substrings-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | 1 | 2018-10-02T22:44:52.000Z | 2018-10-02T22:44:52.000Z | 601-700/647-Palindromic_Substrings-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | 601-700/647-Palindromic_Substrings-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | // Given a string, your task is to count how many palindromic substrings in
// this string.
// The substrings with different start indexes or end indexes are counted as
// different substrings even they consist of same characters.
// Example 1:
// Input: "abc"
// Output: 3
// Explanation: Three palindromic strings... | 23.141176 | 76 | 0.457041 | ysmiles |
9c8310c2a2dea6ab25be8ccf42817c5a1bac54a4 | 957 | hpp | C++ | src/Evolution/Systems/NewtonianEuler/BoundaryConditions/BoundaryCondition.hpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | src/Evolution/Systems/NewtonianEuler/BoundaryConditions/BoundaryCondition.hpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | src/Evolution/Systems/NewtonianEuler/BoundaryConditions/BoundaryCondition.hpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <pup.h>
#include "Domain/BoundaryConditions/BoundaryCondition.hpp"
namespace NewtonianEuler {
/// \brief Boundary conditions for the Newtonian Euler hydrodynamics system
namespace BoundaryConditions {
/// \brief The base cla... | 33 | 80 | 0.781609 | nilsvu |
9c83e8cb9572500dad8edbde3cd9091d57c3fae1 | 6,487 | cpp | C++ | ui-cpp/src/IsosurfaceWidget.cpp | MSallermann/spirit | d3b771bcbf2f1eb4b28d48899091c17a48f12c67 | [
"MIT"
] | 46 | 2020-08-24T22:40:15.000Z | 2022-02-28T06:54:54.000Z | ui-cpp/src/IsosurfaceWidget.cpp | MSallermann/spirit | d3b771bcbf2f1eb4b28d48899091c17a48f12c67 | [
"MIT"
] | null | null | null | ui-cpp/src/IsosurfaceWidget.cpp | MSallermann/spirit | d3b771bcbf2f1eb4b28d48899091c17a48f12c67 | [
"MIT"
] | 4 | 2020-09-05T13:24:41.000Z | 2021-11-06T07:46:47.000Z | #include <QtWidgets>
#include "IsosurfaceWidget.hpp"
#include "SpinWidget.hpp"
IsosurfaceWidget::IsosurfaceWidget(std::shared_ptr<State> state, SpinWidget *spinWidget, int i)
{
this->state = state;
this->spinWidget = spinWidget;
setAttribute(Qt::WA_DeleteOnClose);
// Setup User Interface
this->set... | 30.744076 | 196 | 0.681517 | MSallermann |
9c84c3b4bd9b231a0935b3b1cc9bb16255245dcd | 1,946 | cpp | C++ | Sources/Sentry/SentryThreadMetadataCache.cpp | mrtnrst/sentry-cocoa | b8724668c3df2a41600d80b7bbde930f70c20f4a | [
"MIT"
] | null | null | null | Sources/Sentry/SentryThreadMetadataCache.cpp | mrtnrst/sentry-cocoa | b8724668c3df2a41600d80b7bbde930f70c20f4a | [
"MIT"
] | null | null | null | Sources/Sentry/SentryThreadMetadataCache.cpp | mrtnrst/sentry-cocoa | b8724668c3df2a41600d80b7bbde930f70c20f4a | [
"MIT"
] | null | null | null | #include "SentryThreadMetadataCache.hpp"
#if SENTRY_TARGET_PROFILING_SUPPORTED
# include "SentryStackBounds.hpp"
# include "SentryThreadHandle.hpp"
# include <algorithm>
# include <string>
# include <vector>
namespace {
bool
isSentryOwnedThreadName(const std::string &name)
{
return name.rfind("i... | 29.044776 | 94 | 0.588386 | mrtnrst |
9c84dc71b0e1c6286420085b9baad54835b0be76 | 491 | hpp | C++ | Source/Tools/relive_api/JsonMapRootInfoReader.hpp | mouzedrift/alive_reversing | be7dfbaed3be99b452459e974bc4e79f9503c178 | [
"MIT"
] | 208 | 2018-06-06T13:14:03.000Z | 2022-03-30T02:21:27.000Z | Source/Tools/relive_api/JsonMapRootInfoReader.hpp | mouzedrift/alive_reversing | be7dfbaed3be99b452459e974bc4e79f9503c178 | [
"MIT"
] | 537 | 2018-06-06T16:50:45.000Z | 2022-03-31T16:41:15.000Z | Source/Tools/relive_api/JsonMapRootInfoReader.hpp | mouzedrift/alive_reversing | be7dfbaed3be99b452459e974bc4e79f9503c178 | [
"MIT"
] | 42 | 2018-06-06T00:40:08.000Z | 2022-03-23T08:38:55.000Z | #pragma once
#include "JsonModelTypes.hpp"
#include <fstream>
namespace ReliveAPI {
// Reads the root fields to read the version/game type (we need to know this so we can create a game specific reader/do an upgrade of the json).
class JsonMapRootInfoReader final
{
public:
void Read(const std::string& fileName);
... | 25.842105 | 144 | 0.759674 | mouzedrift |
9c8778de92fe31f69d52a077c62dd553c09fa5a6 | 1,107 | cpp | C++ | cannon/math/rootfinding.test.cpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | null | null | null | cannon/math/rootfinding.test.cpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | 46 | 2021-01-12T23:03:52.000Z | 2021-10-01T17:29:01.000Z | cannon/math/rootfinding.test.cpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <iomanip>
#include <cannon/math/rootfinding.hpp>
#include <cannon/math/nearly_equal.hpp>
#include <cannon/log/registry.hpp>
using namespace cannon::math;
using namespace cannon::log;
TEST_CASE("Rootfinding", "[math]") {
double r = bisection_method([](double x){
return x ... | 26.357143 | 57 | 0.600723 | cannontwo |
9c87dcece66731b3452b1626ab75c3f291c718b3 | 3,646 | cpp | C++ | src/python/pypangolin/window.cpp | Yoyochen0106/Pangolin | e55463bd2bdd758e46ded7d95332e31f9cdc4f71 | [
"MIT"
] | 662 | 2019-09-01T02:16:59.000Z | 2022-03-29T19:24:07.000Z | src/python/pypangolin/window.cpp | Yoyochen0106/Pangolin | e55463bd2bdd758e46ded7d95332e31f9cdc4f71 | [
"MIT"
] | 38 | 2019-09-05T05:02:20.000Z | 2022-03-30T02:59:49.000Z | src/python/pypangolin/window.cpp | Yoyochen0106/Pangolin | e55463bd2bdd758e46ded7d95332e31f9cdc4f71 | [
"MIT"
] | 104 | 2019-09-01T07:41:58.000Z | 2022-03-27T16:24:54.000Z | /* This file is part of the Pangolin Project.
* http://github.com/stevenlovegrove/Pangolin
*
* Copyright (c) Andrey Mnatsakanov
*
* 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 withou... | 34.396226 | 109 | 0.583379 | Yoyochen0106 |
9c8e8209f90318ea5fa25580e127abbba470d4de | 896 | cpp | C++ | 510A.cpp | dipubiswas1303/codeforces_solve | ccfa55ca42e8e1504d72fc02f84ea1717f4f1f79 | [
"MIT"
] | null | null | null | 510A.cpp | dipubiswas1303/codeforces_solve | ccfa55ca42e8e1504d72fc02f84ea1717f4f1f79 | [
"MIT"
] | null | null | null | 510A.cpp | dipubiswas1303/codeforces_solve | ccfa55ca42e8e1504d72fc02f84ea1717f4f1f79 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
/*
NAME : DIPU BISWAS
JUST CSE 2019 - 2020
PROBLEM CODE : 510A
LINK : https://codeforces.com/problemset/problem/510/A
*/
int main()
{
int m, n, i = 0, j = 0, k = 2;
cin >> m >> n;
for(i = 0; i < m; i++){
if(i % 2 == 0)
for... | 21.853659 | 57 | 0.287946 | dipubiswas1303 |
9c8f7b6ec3bed83c367fd83de701506ff241464c | 1,837 | cpp | C++ | kernel/node/Pipe.cpp | busybox11/skift | 778ae3a0dc5ac29d7de02200c49d3533e47854c5 | [
"MIT"
] | 2 | 2020-07-14T21:16:54.000Z | 2020-10-08T08:40:47.000Z | kernel/node/Pipe.cpp | busybox11/skift | 778ae3a0dc5ac29d7de02200c49d3533e47854c5 | [
"MIT"
] | null | null | null | kernel/node/Pipe.cpp | busybox11/skift | 778ae3a0dc5ac29d7de02200c49d3533e47854c5 | [
"MIT"
] | null | null | null |
#include <libsystem/Result.h>
#include "kernel/node/Handle.h"
#include "kernel/node/Pipe.h"
#define PIPE_BUFFER_SIZE 4096
static bool pipe_can_read(FsPipe *node, FsHandle *handle)
{
__unused(handle);
// FIXME: make this atomic or something...
return !ringbuffer_is_empty(node->buffer) || !node->writers;... | 22.13253 | 106 | 0.696788 | busybox11 |
9c93bc9334c49d76bfcedb4a8635ce8500a2f71c | 1,253 | cpp | C++ | 1595/1573862_AC_0MS_56K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 1595/1573862_AC_0MS_56K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 1595/1573862_AC_0MS_56K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #include<iostream.h>
#include<math.h>
void main()
{
const int iPrimeCount=169;
const int iPrimeNum[iPrimeCount]={1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103
,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211
,223,227,229,233,239,241,251,2... | 28.477273 | 116 | 0.621708 | vandreas19 |
9c96bae813bc435c8a8298983f54fe5b60797beb | 4,708 | cc | C++ | analysis/zz_deprecated/untested/RadShockPosn.cc | jfbucas/PION | e0a66aa301e4d94d581ba4df078f1a3b82faab99 | [
"BSD-3-Clause"
] | 4 | 2020-08-20T11:31:22.000Z | 2020-12-05T13:30:03.000Z | analysis/zz_deprecated/untested/RadShockPosn.cc | Mapoet/PION | 51559b18f700c372974ac8658a266b6a647ec764 | [
"BSD-3-Clause"
] | null | null | null | analysis/zz_deprecated/untested/RadShockPosn.cc | Mapoet/PION | 51559b18f700c372974ac8658a266b6a647ec764 | [
"BSD-3-Clause"
] | 4 | 2020-08-20T14:33:19.000Z | 2022-03-07T10:29:34.000Z | /** \file RadShockPosn.cc
* \author Jonathan Mackey
*
* This file reads in a series of fits files, which are assumed to be outputs
* of radiative shock simulations in 1D or 2D. For each file it determines
* the position of the shock in the x-direction, in the 1st y-column, and
* writes the (time,position) pair... | 40.586207 | 126 | 0.634452 | jfbucas |
9c98a694e55d27be8b03bea36cf1e5bb88a1f3cd | 6,158 | hpp | C++ | CppSprtPkg/Include/ext/pb_ds/detail/binomial_heap_base_/binomial_heap_base_.hpp | lvjianmin-loongson/uefi | d6fba2f83e00125ff0362b4583461958d459fb4b | [
"BSD-2-Clause"
] | null | null | null | CppSprtPkg/Include/ext/pb_ds/detail/binomial_heap_base_/binomial_heap_base_.hpp | lvjianmin-loongson/uefi | d6fba2f83e00125ff0362b4583461958d459fb4b | [
"BSD-2-Clause"
] | null | null | null | CppSprtPkg/Include/ext/pb_ds/detail/binomial_heap_base_/binomial_heap_base_.hpp | lvjianmin-loongson/uefi | d6fba2f83e00125ff0362b4583461958d459fb4b | [
"BSD-2-Clause"
] | null | null | null | // -*- C++ -*-
// Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
//
// 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 ve... | 26.204255 | 91 | 0.729458 | lvjianmin-loongson |
9c9ad6755960492a50c414be65c6f06b2bee3a93 | 35,058 | cpp | C++ | Source/Tools/Editor/Editor.cpp | tatjam/rbfx | 565b505a8ded1ddf6e0fd0f322e004cb9aefc499 | [
"MIT"
] | 1 | 2021-01-09T14:42:48.000Z | 2021-01-09T14:42:48.000Z | Source/Tools/Editor/Editor.cpp | tatjam/rbfx | 565b505a8ded1ddf6e0fd0f322e004cb9aefc499 | [
"MIT"
] | null | null | null | Source/Tools/Editor/Editor.cpp | tatjam/rbfx | 565b505a8ded1ddf6e0fd0f322e004cb9aefc499 | [
"MIT"
] | 1 | 2020-06-29T08:05:12.000Z | 2020-06-29T08:05:12.000Z | //
// Copyright (c) 2017-2020 the rbfx project.
//
// 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, mer... | 37.656284 | 152 | 0.631325 | tatjam |
9c9aea0af0fc323928b9b900169e7839ac20ee13 | 34 | hpp | C++ | NamedPipes/src/Config.hpp | TDToolbox/btdapi | b8349ef33d5bc2dacc85e96ced86dc37e972e8ee | [
"MIT"
] | null | null | null | NamedPipes/src/Config.hpp | TDToolbox/btdapi | b8349ef33d5bc2dacc85e96ced86dc37e972e8ee | [
"MIT"
] | 8 | 2020-03-10T23:11:09.000Z | 2020-03-14T01:19:32.000Z | NamedPipes/src/Config.hpp | TDToolbox/btdapi | b8349ef33d5bc2dacc85e96ced86dc37e972e8ee | [
"MIT"
] | null | null | null | #pragma once
#define PIPE_LOGGING | 11.333333 | 20 | 0.823529 | TDToolbox |
9c9e6fae539b7a36045dfb2e1a46ba04630bdc5c | 20,900 | cpp | C++ | planet.cpp | CobaltXII/planet | 4b22ecd4df38a971debeb2714001a6450cebf181 | [
"MIT"
] | 10 | 2019-01-13T00:21:41.000Z | 2021-06-23T20:11:12.000Z | planet.cpp | CobaltXII/planet | 4b22ecd4df38a971debeb2714001a6450cebf181 | [
"MIT"
] | null | null | null | planet.cpp | CobaltXII/planet | 4b22ecd4df38a971debeb2714001a6450cebf181 | [
"MIT"
] | 2 | 2020-07-31T22:09:04.000Z | 2020-08-11T02:33:46.000Z | /*
GLM header include directives. Please use GLM 0.9.9.3 or greater for known
results. Previous versions of GLM are not guaranteed to work correctly.
*/
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <glm/mat4x4.hpp>
#include <glm/gtc/matrix_transform.hpp>
/*
libnoise header include directives. libnoi... | 25.770654 | 139 | 0.70933 | CobaltXII |
9ca0a6fba5e0922b0bc99853009fee24bf8c7ed2 | 19,548 | cpp | C++ | samples/sample_encode/src/pipeline_user.cpp | me176c-dev/MediaSDK | 0c7f315958b78c98c5c06bd60565eb8c1ad15d41 | [
"MIT"
] | null | null | null | samples/sample_encode/src/pipeline_user.cpp | me176c-dev/MediaSDK | 0c7f315958b78c98c5c06bd60565eb8c1ad15d41 | [
"MIT"
] | null | null | null | samples/sample_encode/src/pipeline_user.cpp | me176c-dev/MediaSDK | 0c7f315958b78c98c5c06bd60565eb8c1ad15d41 | [
"MIT"
] | null | null | null | /******************************************************************************\
Copyright (c) 2005-2019, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source c... | 38.862823 | 755 | 0.689227 | me176c-dev |
9ca17dc30c08fb42cd049a2ac44052e498d89e13 | 526 | cpp | C++ | SOURCE/allProjects/ManagerEmployeeSystem/ManagerEmployeeSystemUnitTest/ManagerUnitTest.cpp | llanesjuan/AllMyProjects | 5944b248ae8f4f84cfea9fcf379f877909372551 | [
"MIT"
] | null | null | null | SOURCE/allProjects/ManagerEmployeeSystem/ManagerEmployeeSystemUnitTest/ManagerUnitTest.cpp | llanesjuan/AllMyProjects | 5944b248ae8f4f84cfea9fcf379f877909372551 | [
"MIT"
] | null | null | null | SOURCE/allProjects/ManagerEmployeeSystem/ManagerEmployeeSystemUnitTest/ManagerUnitTest.cpp | llanesjuan/AllMyProjects | 5944b248ae8f4f84cfea9fcf379f877909372551 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CppUnitTest.h"
#include"..\ManagerEmployeeSystem\Manager.cpp"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace ManagerEmployeeSystemUnitTest
{
TEST_CLASS(ManagerUnitTest)
{
public:
TEST_METHOD(ManagerUnitTest_parseManager)
{
string manEmp = "a->b,c,d... | 22.869565 | 62 | 0.73384 | llanesjuan |
9ca5ec64c1f00539f658fe4201a0f7815d2f8f74 | 933 | cpp | C++ | Test/Core/Hash/hash.cpp | CodogoFreddie/FredLib | 8c7307d039f285e16a1a6979e05a071a2c18717e | [
"Apache-2.0"
] | 2 | 2016-04-28T22:59:58.000Z | 2016-05-04T01:04:27.000Z | Test/Core/Hash/hash.cpp | CodogoFreddie/FredLib | 8c7307d039f285e16a1a6979e05a071a2c18717e | [
"Apache-2.0"
] | null | null | null | Test/Core/Hash/hash.cpp | CodogoFreddie/FredLib | 8c7307d039f285e16a1a6979e05a071a2c18717e | [
"Apache-2.0"
] | null | null | null | #include<Core/hash.hpp>
#include<gtest/gtest.h>
#include<gmock/gmock.h>
using namespace core;
TEST(HashInt, DoneAtCompile){
static_assert(hashInt(1234) != 1234, "Not evaluted at compileTime");
}
TEST(Hash, IsItSalty){
EXPECT_NE(hashInt(1234 ), hashInt(1234,1));
EXPECT_NE(hashInt(1234,1), hashInt(1234,2... | 27.441176 | 84 | 0.687031 | CodogoFreddie |
9ca92ab7a35f4878cbec4de5b9e03f6c9db9316f | 40,214 | cc | C++ | psdaq/drp/BldDetectorSlow.cc | valmar/lcls2 | 1c24da076a8cd252cf6601e125dd721fd2004f2a | [
"BSD-3-Clause-LBNL"
] | null | null | null | psdaq/drp/BldDetectorSlow.cc | valmar/lcls2 | 1c24da076a8cd252cf6601e125dd721fd2004f2a | [
"BSD-3-Clause-LBNL"
] | null | null | null | psdaq/drp/BldDetectorSlow.cc | valmar/lcls2 | 1c24da076a8cd252cf6601e125dd721fd2004f2a | [
"BSD-3-Clause-LBNL"
] | null | null | null | #define __STDC_FORMAT_MACROS 1
#include "BldDetector.hh"
#include <bitset>
#include <chrono>
#include <iostream>
#include <memory>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include "DataDriver.h"
#include "RunInfoDef.hh"
#include "psdaq/service/kwargs.hh"
#include "psdaq/service/EbDgram.hh"
#... | 35.841355 | 143 | 0.557418 | valmar |
66d4adbd39653ccee1c693950dc60d6fe1d7d823 | 1,825 | cpp | C++ | src/Mapper.cpp | binss/HTTPServer | 8f2bcae86b00fed7c237c51aa4e6990d852d9370 | [
"MIT"
] | null | null | null | src/Mapper.cpp | binss/HTTPServer | 8f2bcae86b00fed7c237c51aa4e6990d852d9370 | [
"MIT"
] | null | null | null | src/Mapper.cpp | binss/HTTPServer | 8f2bcae86b00fed7c237c51aa4e6990d852d9370 | [
"MIT"
] | null | null | null | /***********************************************************
* FileName: Mapper.cpp
* Author: binss
* Create: 2015-11-06 11:24:22
* Description: No Description
***********************************************************/
#include "Mapper.h"
Mapper * Mapper::mapper = NULL;
Mapper * Mapper::GetIns... | 20.505618 | 75 | 0.568767 | binss |
66d5fffc8f179b4dd7597fcf56070e93f11a7dc7 | 5,640 | cpp | C++ | Source/UiUndoRedo.cpp | StefanoLusardi/BilinearOscillator | cb53ba05a865cc360243adf0e04ef9421028abcf | [
"MIT"
] | 1 | 2020-03-15T17:48:01.000Z | 2020-03-15T17:48:01.000Z | Source/UiUndoRedo.cpp | StefanoLusardi/BilinearOscillator | cb53ba05a865cc360243adf0e04ef9421028abcf | [
"MIT"
] | null | null | null | Source/UiUndoRedo.cpp | StefanoLusardi/BilinearOscillator | cb53ba05a865cc360243adf0e04ef9421028abcf | [
"MIT"
] | null | null | null | /*
==============================================================================
This is an automatically generated GUI class created by the Projucer!
Be careful when adding custom code to these files, as only the code within
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loade... | 35.923567 | 152 | 0.606738 | StefanoLusardi |
66d7ac6c6ee2501963e8ba43336d8cb525e8cfeb | 904 | hpp | C++ | Engine/Lang/AST/Nodes/Conditional/ASTNodeIfStatement.hpp | GabyForceQ/PolluxEngine | 2dbc84ed1d434f1b6d794f775f315758f0e8cc49 | [
"BSD-3-Clause"
] | 3 | 2020-05-19T20:24:28.000Z | 2020-09-27T11:28:42.000Z | Engine/Lang/AST/Nodes/Conditional/ASTNodeIfStatement.hpp | GabyForceQ/PolluxEngine | 2dbc84ed1d434f1b6d794f775f315758f0e8cc49 | [
"BSD-3-Clause"
] | 31 | 2020-05-27T11:01:27.000Z | 2020-08-08T15:53:23.000Z | Engine/Lang/AST/Nodes/Conditional/ASTNodeIfStatement.hpp | GabyForceQ/PolluxEngine | 2dbc84ed1d434f1b6d794f775f315758f0e8cc49 | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************************************************************
* Copyright 2020 Gabriel Gheorghe. All rights reserved.
* This code is licensed under the BSD 3-Clause "New" or "Revised" License
* License url: https://github.com/GabyForceQ/PolluxEngine/bl... | 28.25 | 127 | 0.533186 | GabyForceQ |
66e0f863acb0141a66c782bd5ef9047cf5fc03ad | 10,265 | cpp | C++ | Flow3D/Flow3D/src/Flow3D/Components/ComponentManager.cpp | florianvoelkers/Flow3D | 017d2f321f943dfecc360bec9fc6f17c77ffde68 | [
"MIT"
] | 2 | 2020-05-09T10:06:00.000Z | 2021-03-10T00:10:41.000Z | Flow3D/Flow3D/src/Flow3D/Components/ComponentManager.cpp | florianvoelkers/Flow3D | 017d2f321f943dfecc360bec9fc6f17c77ffde68 | [
"MIT"
] | 1 | 2022-03-04T09:17:15.000Z | 2022-03-04T09:17:15.000Z | Flow3D/Flow3D/src/Flow3D/Components/ComponentManager.cpp | florianvoelkers/Flow3D | 017d2f321f943dfecc360bec9fc6f17c77ffde68 | [
"MIT"
] | 2 | 2020-02-17T00:43:03.000Z | 2020-11-26T11:55:19.000Z | #include "ComponentManager.hpp"
const std::size_t Component::Type = std::hash<std::string>()(TO_STRING(Component));
// All class definitions for components
// CLASS_DEFINITION(parent class, sub class)
CLASS_DEFINITION(Component, Rotatable)
CLASS_DEFINITION(Component, FreeCamera)
CLASS_DEFINITION(Component, Renderable... | 35.642361 | 247 | 0.746322 | florianvoelkers |
66e0fff5a52a9989a2f801c9d318e01be21aa13e | 804 | cpp | C++ | Source/examples/inherits-via-dominance.cpp | nojhan/leathers | d8a2867a477baab515affdf320d872896e01a797 | [
"BSD-2-Clause"
] | 86 | 2015-05-11T22:47:52.000Z | 2021-09-05T11:26:05.000Z | Source/examples/inherits-via-dominance.cpp | nojhan/leathers | d8a2867a477baab515affdf320d872896e01a797 | [
"BSD-2-Clause"
] | 6 | 2015-07-03T12:34:26.000Z | 2020-03-08T09:01:51.000Z | Source/examples/inherits-via-dominance.cpp | nojhan/leathers | d8a2867a477baab515affdf320d872896e01a797 | [
"BSD-2-Clause"
] | 12 | 2015-09-01T11:36:37.000Z | 2021-12-01T12:56:44.000Z | // Copyright (c) 2014, Ruslan Baratov
// All rights reserved.
#include <leathers/push>
#include <leathers/object-layout-change>
#include <leathers/c++98-compat>
#include <leathers/weak-vtables>
#include <leathers/padded>
class Foo {
public:
virtual void foo() {
}
virtual ~Foo() {
}
};
class... | 18.697674 | 45 | 0.656716 | nojhan |
66e10c3dc38d490ec22dc8dc847583b3fa75b4cf | 1,002 | cpp | C++ | 124-binary-tree-maximum-path-sum.cpp | ranveeraggarwal/leetcode-cpp | 931dd37c00076ee8e49d2ba3dbafbe0113e35376 | [
"MIT"
] | null | null | null | 124-binary-tree-maximum-path-sum.cpp | ranveeraggarwal/leetcode-cpp | 931dd37c00076ee8e49d2ba3dbafbe0113e35376 | [
"MIT"
] | null | null | null | 124-binary-tree-maximum-path-sum.cpp | ranveeraggarwal/leetcode-cpp | 931dd37c00076ee8e49d2ba3dbafbe0113e35376 | [
"MIT"
] | null | null | null | #include "stdafx.h"
struct TreeNode
{
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution
{
int vmax;
public:
int maxPathSum(TreeNode *root)
{
vmax = INT_MIN;
subPath(root);
return vmax;
}
int su... | 19.647059 | 56 | 0.443114 | ranveeraggarwal |
66e80b14adfe64ada87ef0a12ac183ac7975680e | 1,363 | cpp | C++ | Util/testsuite/src/MapConfigurationTest.cpp | AppAnywhere/agent-sdk | c5495c4a1d892f2d3bca5b82a7436db7d8adff71 | [
"BSL-1.0"
] | null | null | null | Util/testsuite/src/MapConfigurationTest.cpp | AppAnywhere/agent-sdk | c5495c4a1d892f2d3bca5b82a7436db7d8adff71 | [
"BSL-1.0"
] | null | null | null | Util/testsuite/src/MapConfigurationTest.cpp | AppAnywhere/agent-sdk | c5495c4a1d892f2d3bca5b82a7436db7d8adff71 | [
"BSL-1.0"
] | null | null | null | //
// MapConfigurationTest.cpp
//
// $Id: //poco/1.7/Util/testsuite/src/MapConfigurationTest.cpp#1 $
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "MapConfigurationTest.h"
#include "CppUnit/TestCaller.h"
#include "... | 18.930556 | 100 | 0.758621 | AppAnywhere |
66e84a1cf50265f1578c87458a7eddb20fe53d13 | 72,652 | cpp | C++ | extensions/standard-processors/tests/unit/TailFileTests.cpp | nghiaxlee/nifi-minifi-cpp | ddddb22d63c4a60b97066e555f771135c8dbb26d | [
"Apache-2.0"
] | 1 | 2017-03-14T15:42:08.000Z | 2017-03-14T15:42:08.000Z | extensions/standard-processors/tests/unit/TailFileTests.cpp | nghiaxlee/nifi-minifi-cpp | ddddb22d63c4a60b97066e555f771135c8dbb26d | [
"Apache-2.0"
] | null | null | null | extensions/standard-processors/tests/unit/TailFileTests.cpp | nghiaxlee/nifi-minifi-cpp | ddddb22d63c4a60b97066e555f771135c8dbb26d | [
"Apache-2.0"
] | 1 | 2020-07-17T15:27:37.000Z | 2020-07-17T15:27:37.000Z | /**
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you ... | 47.054404 | 155 | 0.710111 | nghiaxlee |
66ea13aa778e838ccbb81d1729c4b485d3927fd3 | 27,043 | cpp | C++ | src/WtBtCore/HftMocker.cpp | v1otusc/wondertrader | fd65a052d26be32882f89e8e9dfcd1d7b8736a3b | [
"MIT"
] | null | null | null | src/WtBtCore/HftMocker.cpp | v1otusc/wondertrader | fd65a052d26be32882f89e8e9dfcd1d7b8736a3b | [
"MIT"
] | 1 | 2022-03-21T06:51:59.000Z | 2022-03-21T06:51:59.000Z | src/WtBtCore/HftMocker.cpp | v1otusc/wondertrader | fd65a052d26be32882f89e8e9dfcd1d7b8736a3b | [
"MIT"
] | null | null | null | /*!
* \file HftMocker.cpp
* \project WonderTrader
*
* \author Wesley
* \date 2020/03/30
*
* \brief
*/
#include "HftMocker.h"
#include "WtHelper.h"
#include <stdarg.h>
#include <boost/filesystem.hpp>
#include "../Includes/WTSVariant.hpp"
#include "../Includes/WTSContractInfo.hpp"
#include ... | 24.947417 | 191 | 0.662205 | v1otusc |
66eb96db8ae4810dc6bbda0ebcd0bd7d351ed05c | 5,785 | cpp | C++ | src/network/udp_socket.cpp | Revolution-Populi/fc | 02b7593a96b02d9966358c59d22f344d86fa9a19 | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | 37 | 2017-02-04T09:42:48.000Z | 2021-02-17T14:59:15.000Z | src/network/udp_socket.cpp | Revolution-Populi/fc | 02b7593a96b02d9966358c59d22f344d86fa9a19 | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | 120 | 2017-11-09T19:46:40.000Z | 2022-01-20T18:26:23.000Z | src/network/udp_socket.cpp | Revolution-Populi/fc | 02b7593a96b02d9966358c59d22f344d86fa9a19 | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | 109 | 2017-01-16T14:24:31.000Z | 2022-03-18T21:10:07.000Z | #include <fc/network/udp_socket.hpp>
#include <fc/network/ip.hpp>
#include <fc/fwd_impl.hpp>
#include <fc/asio.hpp>
namespace fc {
class udp_socket::impl {
public:
impl():_sock( fc::asio::default_io_service() ){}
~impl(){
// _sock.cancel();
}
boost::asio::ip::udp::socket _sock... | 33.247126 | 134 | 0.631979 | Revolution-Populi |
66ef2aca7561189fc1efddd261320af007ffb270 | 834 | cpp | C++ | Toast/src/Platform/Windows/WindowsInput.cpp | Toastmastern87/Toast | be9efd2f4f62597c3d95b47d242a2e783571620b | [
"Apache-2.0"
] | 17 | 2020-07-02T19:07:56.000Z | 2021-11-30T14:23:49.000Z | Toast/src/Platform/Windows/WindowsInput.cpp | Toastmastern87/Toast | be9efd2f4f62597c3d95b47d242a2e783571620b | [
"Apache-2.0"
] | null | null | null | Toast/src/Platform/Windows/WindowsInput.cpp | Toastmastern87/Toast | be9efd2f4f62597c3d95b47d242a2e783571620b | [
"Apache-2.0"
] | 3 | 2020-06-30T00:22:26.000Z | 2021-11-30T14:23:56.000Z | #include "tpch.h"
#include "Toast/Core/Input.h"
#include "Toast/Core/Application.h"
namespace Toast {
bool Input::IsKeyPressed(const KeyCode keycode)
{
auto state = GetAsyncKeyState(static_cast<int>(keycode));
return (state & 0x8000);
}
bool Input::IsMouseButtonPressed(const MouseCode button)
{
auto sta... | 16.038462 | 59 | 0.699041 | Toastmastern87 |
66f18b9bca9f0d727ec2959ca99299390269f65a | 81,261 | cpp | C++ | ecl/eclcc/eclcc.cpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | 1 | 2020-08-01T19:54:56.000Z | 2020-08-01T19:54:56.000Z | ecl/eclcc/eclcc.cpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | null | null | null | ecl/eclcc/eclcc.cpp | emuharemagic/HPCC-Platform | bbd5423b25f6ba2d675521c8917f9ecfa97dace5 | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
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 ... | 35.300174 | 184 | 0.612988 | emuharemagic |
66f5b2c623ee7880fa709b0ca8bee1dd351cc54f | 137,676 | cpp | C++ | src/ngraph/runtime/cpu/pass/cpu_mkldnn_primitive_build.cpp | ilya-lavrenov/ngraph | 2d8b2b4b30dbcabda0c3de2ae458418e63da057a | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/cpu/pass/cpu_mkldnn_primitive_build.cpp | ilya-lavrenov/ngraph | 2d8b2b4b30dbcabda0c3de2ae458418e63da057a | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/cpu/pass/cpu_mkldnn_primitive_build.cpp | ilya-lavrenov/ngraph | 2d8b2b4b30dbcabda0c3de2ae458418e63da057a | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 53.487179 | 100 | 0.506523 | ilya-lavrenov |
66f87caac8919d0b19be2e829a3cdac4adec20d8 | 456 | cpp | C++ | 1474/b.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1474/b.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1474/b.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
bool is_prime(int x) {
if (x < 4) {
return true;
}
for (int i = 2; i * i <= x; ++i) {
if (x % i == 0) {
return false;
}
}
return true;
}
void solve() {
int d;
cin >> d;
int p = d + 1;
for (; !is_prime(p); ++p) {}
int q =... | 13.028571 | 36 | 0.440789 | vladshablinsky |
66fa8463e3800378bb1d93248fa38aef09506b44 | 678 | hpp | C++ | include/mizuiro/color/set_percentage.hpp | cpreh/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | 1 | 2015-08-22T04:19:39.000Z | 2015-08-22T04:19:39.000Z | include/mizuiro/color/set_percentage.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | include/mizuiro/color/set_percentage.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2016.
// 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 MIZUIRO_COLOR_SET_PERCENTAGE_HPP_INCLUDED
#define MIZUIRO_COLOR_SET_PERCENTAGE_HPP_INCLUDED... | 27.12 | 100 | 0.747788 | cpreh |
66fdff7856d661ac7599dbf154fde7b7a69021ce | 70 | cpp | C++ | test/unit/main.unit.cpp | flisboac/gq | 36f78933127ab4c04d0b2712fa1c07ae0184ecd4 | [
"MIT"
] | null | null | null | test/unit/main.unit.cpp | flisboac/gq | 36f78933127ab4c04d0b2712fa1c07ae0184ecd4 | [
"MIT"
] | null | null | null | test/unit/main.unit.cpp | flisboac/gq | 36f78933127ab4c04d0b2712fa1c07ae0184ecd4 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "gq.def.hpp"
| 14 | 25 | 0.757143 | flisboac |
0f07995cbfb34d3844b62df4fc07e0cc78a1eec9 | 144 | hpp | C++ | src/geom/ex.hpp | orsonbraines/apytuuengine | b2a02e5f979bea0a3a75ad40f43d8d0c56bfe2a0 | [
"MIT"
] | null | null | null | src/geom/ex.hpp | orsonbraines/apytuuengine | b2a02e5f979bea0a3a75ad40f43d8d0c56bfe2a0 | [
"MIT"
] | null | null | null | src/geom/ex.hpp | orsonbraines/apytuuengine | b2a02e5f979bea0a3a75ad40f43d8d0c56bfe2a0 | [
"MIT"
] | null | null | null | #ifndef APYTUU_ENGINE_GEOM_EX
#define APYTUU_ENGINE_GEOM_EX
namespace apytuu_engine_geom{
class GeomException{
public:
private:
};
}
#endif
| 14.4 | 29 | 0.8125 | orsonbraines |
0f0e439eb3f208d14e230aff66fa78aa9e5e14cf | 15,980 | cpp | C++ | src/backend/uop.cpp | jeroendebaat/lc3tools | b1ceb8bc28a82227ccbd17c90f6b6cfcdf324d41 | [
"Apache-2.0"
] | 58 | 2018-07-13T03:41:38.000Z | 2022-03-08T19:06:20.000Z | src/backend/uop.cpp | jeroendebaat/lc3tools | b1ceb8bc28a82227ccbd17c90f6b6cfcdf324d41 | [
"Apache-2.0"
] | 26 | 2019-12-02T05:33:00.000Z | 2022-03-12T15:54:26.000Z | src/backend/uop.cpp | jeroendebaat/lc3tools | b1ceb8bc28a82227ccbd17c90f6b6cfcdf324d41 | [
"Apache-2.0"
] | 24 | 2019-08-30T15:00:13.000Z | 2022-01-26T05:11:36.000Z | /*
* Copyright 2020 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
*/
#include "decoder.h"
#include "isa.h"
#include "state.h"
#include "uop.h"
using namespace lc3::core;
PIMicroOp IMicroOp::insert(PIMicroOp new_next)
{
if(... | 32.088353 | 153 | 0.678285 | jeroendebaat |
0f10b1b9bde8b54535b9adda144c603e94b19c5c | 5,127 | cc | C++ | test/cctest/heap/test-concurrent-marking.cc | YBApp-Bot/org_chromium_v8 | de9efd579907d75b4599b33cfcc8c00468a72b9b | [
"BSD-3-Clause"
] | 1 | 2019-04-25T17:50:34.000Z | 2019-04-25T17:50:34.000Z | test/cctest/heap/test-concurrent-marking.cc | YBApp-Bot/org_chromium_v8 | de9efd579907d75b4599b33cfcc8c00468a72b9b | [
"BSD-3-Clause"
] | null | null | null | test/cctest/heap/test-concurrent-marking.cc | YBApp-Bot/org_chromium_v8 | de9efd579907d75b4599b33cfcc8c00468a72b9b | [
"BSD-3-Clause"
] | 1 | 2018-11-28T07:47:41.000Z | 2018-11-28T07:47:41.000Z | // Copyright 2017 the V8 project 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 <stdlib.h>
#include "src/v8.h"
#include "src/heap/concurrent-marking.h"
#include "src/heap/heap-inl.h"
#include "src/heap/heap.h"
#include "s... | 34.409396 | 79 | 0.736883 | YBApp-Bot |
0f1220db98a4d9c01264add6c01eefb52615a0fd | 6,900 | cpp | C++ | toonz/sources/toonzlib/txshsoundlevel.cpp | jhonsu01/opentoonz | b8b0f90055ae6a54fc5926c46a063d460c9884d7 | [
"BSD-3-Clause"
] | null | null | null | toonz/sources/toonzlib/txshsoundlevel.cpp | jhonsu01/opentoonz | b8b0f90055ae6a54fc5926c46a063d460c9884d7 | [
"BSD-3-Clause"
] | null | null | null | toonz/sources/toonzlib/txshsoundlevel.cpp | jhonsu01/opentoonz | b8b0f90055ae6a54fc5926c46a063d460c9884d7 | [
"BSD-3-Clause"
] | null | null | null |
#include "toonz/txshsoundlevel.h"
#include "tsound_io.h"
#include "toonz/toonzscene.h"
#include "toonz/sceneproperties.h"
#include "toonz/txshleveltypes.h"
#include "tstream.h"
#include "toutputproperties.h"
#include "tconvert.h"
//-----------------------------------------------------------------------------
DEFIN... | 29.237288 | 80 | 0.51913 | jhonsu01 |
0f1248f1cc04475c9c56f11c28f8e637ece37de1 | 15,808 | cpp | C++ | immBodyDistanceSmooth.cpp | TomLKoller/Boxplus-IMM | 4f610967b8b9d3ed5b7110db7019d2acbc8ca57b | [
"MIT"
] | 4 | 2021-07-16T08:50:46.000Z | 2021-09-13T13:45:56.000Z | immBodyDistanceSmooth.cpp | TomLKoller/Boxplus-IMM | 4f610967b8b9d3ed5b7110db7019d2acbc8ca57b | [
"MIT"
] | 3 | 2021-07-16T06:50:19.000Z | 2021-10-04T13:37:04.000Z | immBodyDistanceSmooth.cpp | TomLKoller/Boxplus-IMM | 4f610967b8b9d3ed5b7110db7019d2acbc8ca57b | [
"MIT"
] | 1 | 2020-07-17T08:39:15.000Z | 2020-07-17T08:39:15.000Z | #include "ADEKF.h"
#include "ManifoldCreator.h"
#include "types/SO3.h"
#include "adekf_viz.h"
#include "PoseRenderer.h"
#include "BPIMM.h"
#include "BPRTSIMM.h"
#include "PathCreatorOrientation.h"
#include "SimulatedBodyMeas.h"
#include "GaussianNoiseVector.h"
#include <numeric>
#define GRAVITY_CONSTANT 9.81
//#define... | 48.490798 | 194 | 0.615764 | TomLKoller |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.