hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5da9227781eb96f71864d43896619633bcd7ce2b | 725 | hpp | C++ | ProjectMajestic/Chunk.hpp | Edgaru089/ProjectMajestic | 16cda6f86fd5ad02baedc9481609d6140cdda62a | [
"MIT"
] | 1 | 2018-08-29T06:36:23.000Z | 2018-08-29T06:36:23.000Z | ProjectMajestic/Chunk.hpp | Edgaru089/ProjectMajestic | 16cda6f86fd5ad02baedc9481609d6140cdda62a | [
"MIT"
] | null | null | null | ProjectMajestic/Chunk.hpp | Edgaru089/ProjectMajestic | 16cda6f86fd5ad02baedc9481609d6140cdda62a | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "Main.hpp"
#include "TextureManager.hpp"
#include "Data.hpp"
#include "Block.hpp"
const int chunkSize = 16;
class Chunk {
public:
friend class TerrainManager;
~Chunk();
void updateLogic();
void getRenderList(VertexArray & verts);
void getLightMask(VertexArray& verts)... | 18.125 | 63 | 0.736552 | Edgaru089 |
5dad7dc4efc0d79571baeb86707000cbb1329e53 | 499 | cpp | C++ | 0x7E9FB/hand file/Socket/Sockets.cpp | 518651/0x7E9FB-Net-Project | ec6ad70aa8c0df1eaa318034b2513c6394d9fbe6 | [
"MIT"
] | 1 | 2022-02-28T02:57:30.000Z | 2022-02-28T02:57:30.000Z | 0x7E9FB/hand file/Socket/Sockets.cpp | 518651/0x7E9FB-Net-Project | ec6ad70aa8c0df1eaa318034b2513c6394d9fbe6 | [
"MIT"
] | null | null | null | 0x7E9FB/hand file/Socket/Sockets.cpp | 518651/0x7E9FB-Net-Project | ec6ad70aa8c0df1eaa318034b2513c6394d9fbe6 | [
"MIT"
] | null | null | null | //#include "Sockets.h"
#include "../../Un-main.h"
bool GetSocketAddress(char* host, sockaddr_in* address)
{
struct addrinfo* result = NULL;
struct addrinfo* ptr = NULL;
struct addrinfo hints;
ZeroMemory(&hints, sizeof(hints));
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
hints.ai_pro... | 24.95 | 63 | 0.687375 | 518651 |
5dadc621f94f523ed042108027e6464038868b02 | 1,826 | cpp | C++ | RegisterSystem/RegisterSystem/Register.cpp | vladislav-karamfilov/CPlusPlus-Playground | 01827ed133b7033063f2859000c4c586acda910b | [
"MIT"
] | 7 | 2016-02-13T05:47:50.000Z | 2021-03-27T02:09:57.000Z | RegisterSystem/RegisterSystem/Register.cpp | vladislav-karamfilov/CPlusPlus-Playground | 01827ed133b7033063f2859000c4c586acda910b | [
"MIT"
] | null | null | null | RegisterSystem/RegisterSystem/Register.cpp | vladislav-karamfilov/CPlusPlus-Playground | 01827ed133b7033063f2859000c4c586acda910b | [
"MIT"
] | 20 | 2016-02-08T05:44:02.000Z | 2020-10-28T03:51:12.000Z | #include <iostream>
#include <vector>
#include <algorithm>
#include "Register.h"
#include "PeopleComparer.h"
namespace RegisterSystem
{
using namespace std;
Register::Register()
{
this->people = vector<Person*>();
}
Register::~Register()
{
int peopleCount = this->people.size();
for (int i = 0; i < people... | 18.824742 | 97 | 0.647864 | vladislav-karamfilov |
5dae506649ac8908d6e50a6c7f82b73af7cf6538 | 3,089 | cpp | C++ | Cpp/progs/ch03/customCC.cpp | ernestyalumni/CompPhys | 1f5d7559146a14a21182653b77fd35e6d6829855 | [
"Apache-2.0"
] | 70 | 2017-07-24T04:09:27.000Z | 2021-12-24T16:00:41.000Z | Cpp/progs/ch03/customCC.cpp | ernestyalumni/CompPhys | 1f5d7559146a14a21182653b77fd35e6d6829855 | [
"Apache-2.0"
] | 3 | 2018-01-16T22:34:47.000Z | 2019-01-29T22:37:10.000Z | Cpp/progs/ch03/customCC.cpp | ernestyalumni/CompPhys | 1f5d7559146a14a21182653b77fd35e6d6829855 | [
"Apache-2.0"
] | 40 | 2017-01-24T19:18:42.000Z | 2021-03-01T07:13:35.000Z | /*
* cf. M. Hjorth-Jensen, Computational Physics, University of Oslo (2015)
* http://www.mn.uio.no/fysikk/english/people/aca/mhjensen/
* Ernest Yeung (I typed it up and made modifications)
* ernestyalumni@gmail.com
* MIT License
* cf. Chapter 3 Numerical differentiation and interpolation
* 3.3 Classes in C++
... | 26.62931 | 109 | 0.586921 | ernestyalumni |
5dae83510a21f412177fed4a4c7bcdab8c2d77d4 | 1,068 | cpp | C++ | debian/passenger-2.2.15/benchmark/ApplicationPool.cpp | brightbox/nginx-brightbox | cbb27b979ff8de2a6d3f57cebb214f0cde348d3f | [
"BSD-2-Clause"
] | 4 | 2016-05-09T12:50:34.000Z | 2020-10-08T07:28:46.000Z | benchmark/ApplicationPool.cpp | chad/passenger | 74fb3cf821d5b5d5bae37e03ba7ccaffc13ce9d0 | [
"MIT"
] | null | null | null | benchmark/ApplicationPool.cpp | chad/passenger | 74fb3cf821d5b5d5bae37e03ba7ccaffc13ce9d0 | [
"MIT"
] | 1 | 2020-10-08T07:51:20.000Z | 2020-10-08T07:51:20.000Z | //#define USE_SERVER
#include <iostream>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#ifdef USE_SERVER
#include "ApplicationPoolServer.h"
#else
#include "StandardApplicationPool.h"
#endif
#include "Utils.h"
#include "Logging.h"
using namespace std;
using namespace boost;
using namespace Passenger;
#defin... | 20.150943 | 77 | 0.714419 | brightbox |
5db0bbdfba88122f208ca2ebbec62702bff460f5 | 13,180 | cpp | C++ | testsuite/core/file/TestCase_Core_File_Directory.cpp | caochunxi/llbc | 2ff4af937f1635be67a7e24602d0a3e87c708ba7 | [
"MIT"
] | 83 | 2015-11-10T09:52:56.000Z | 2022-01-12T11:53:01.000Z | testsuite/core/file/TestCase_Core_File_Directory.cpp | lailongwei/llbc | ec7e69bfa1f0afece8bb19dfa9a0a4578508a077 | [
"MIT"
] | 30 | 2017-09-30T07:43:20.000Z | 2022-01-23T13:18:48.000Z | testsuite/core/file/TestCase_Core_File_Directory.cpp | caochunxi/llbc | 2ff4af937f1635be67a7e24602d0a3e87c708ba7 | [
"MIT"
] | 34 | 2015-11-14T12:37:44.000Z | 2021-12-16T02:38:36.000Z | // The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.com>
//
// 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 r... | 31.682692 | 114 | 0.643778 | caochunxi |
5db573026e9f723c79f51e80fb795bac5e12d82c | 2,381 | cpp | C++ | Paznici/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 11 | 2015-08-29T13:41:22.000Z | 2020-01-08T20:34:06.000Z | Paznici/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | null | null | null | Paznici/main.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 5 | 2016-01-20T18:17:01.000Z | 2019-10-30T11:57:15.000Z | #include <fstream>
#include <vector>
#include <bitset>
#include <queue>
#include <algorithm>
#include <utility>
#include <cstring>
#include <string>
#include <stack>
#include <deque>
#include <iomanip>
#include <set>
#include <map>
#include <cassert>
#include <ctime>
#include <list>
#include <iomanip>
using namespace ... | 22.67619 | 73 | 0.453171 | rusucosmin |
5db66d7a1f7ee5905f64100438a12008879295df | 5,129 | cxx | C++ | examples/structure.cxx | elcuco/mimetic | 00c46f7e25235ea6de9ddefc0b63c3249eb1d1da | [
"MIT"
] | null | null | null | examples/structure.cxx | elcuco/mimetic | 00c46f7e25235ea6de9ddefc0b63c3249eb1d1da | [
"MIT"
] | null | null | null | examples/structure.cxx | elcuco/mimetic | 00c46f7e25235ea6de9ddefc0b63c3249eb1d1da | [
"MIT"
] | 1 | 2022-02-24T19:24:28.000Z | 2022-02-24T19:24:28.000Z | /***************************************************************************
copyright : (C) 2002-2008 by Stefano Barbato
email : stefano@codesink.org
$Id: structure.cxx,v 1.6 2008-10-07 11:06:25 tat Exp $
**************************************************************************... | 29.819767 | 93 | 0.454475 | elcuco |
5db6b84160fefe6dbb129a5b04cfe16bf03ac470 | 24,205 | cpp | C++ | example-hard-decode-pybind/src/ffhdd/cuvid_decoder.cpp | shouxieai/tensorRT_Pro | 963c8250c3cefc568d7d13f3b1b6769393d7b94e | [
"MIT"
] | 537 | 2021-10-03T10:51:49.000Z | 2022-03-31T10:07:05.000Z | example-hard-decode-pybind/src/ffhdd/cuvid_decoder.cpp | shouxieai/tensorRT_Pro | 963c8250c3cefc568d7d13f3b1b6769393d7b94e | [
"MIT"
] | 52 | 2021-10-04T09:05:35.000Z | 2022-03-31T07:35:22.000Z | example-hard-decode-pybind/src/ffhdd/cuvid_decoder.cpp | shouxieai/tensorRT_Pro | 963c8250c3cefc568d7d13f3b1b6769393d7b94e | [
"MIT"
] | 146 | 2021-10-11T00:46:19.000Z | 2022-03-31T02:19:37.000Z |
#include "cuvid_decoder.hpp"
#include "cuda_tools.hpp"
#include <nvcuvid.h>
#include <mutex>
#include <vector>
#include <sstream>
#include <string.h>
#include <assert.h>
using namespace std;
void convert_nv12_to_bgr_invoker(
const uint8_t* y, const uint8_t* uv, int width, int height, int linesize, uint8_t* dst_... | 45.842803 | 177 | 0.599215 | shouxieai |
5dbbb8e8f2cf49cd4bf76f284d059b5a80443409 | 1,347 | cpp | C++ | Dynamic Programming/139. Word Break/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 1 | 2021-11-19T19:58:33.000Z | 2021-11-19T19:58:33.000Z | Dynamic Programming/139. Word Break/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | null | null | null | Dynamic Programming/139. Word Break/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 2 | 2021-11-26T12:47:27.000Z | 2022-01-13T16:14:46.000Z | //
// main.cpp
// 139. Word Break
//
// Created by 边俊林 on 2019/8/22.
// Copyright © 2019 Minecode.Link. All rights reserved.
//
/* ------------------------------------------------------ *\
https://leetcode.com/problems/word-break/
\* ------------------------------------------------------ */
#include <map>
#inclu... | 24.053571 | 77 | 0.504826 | Minecodecraft |
5dbd884ebe28d1e93dfd508f4f5d255aac30f0a8 | 6,663 | cpp | C++ | cwrapper/engine/src/renderer/DirectionalVolumetricRenderer.cpp | tippesi/Go-Atlas-Engine-Test | 83aedf376802803eddded6363898f001e4e83c36 | [
"BSD-3-Clause"
] | null | null | null | cwrapper/engine/src/renderer/DirectionalVolumetricRenderer.cpp | tippesi/Go-Atlas-Engine-Test | 83aedf376802803eddded6363898f001e4e83c36 | [
"BSD-3-Clause"
] | null | null | null | cwrapper/engine/src/renderer/DirectionalVolumetricRenderer.cpp | tippesi/Go-Atlas-Engine-Test | 83aedf376802803eddded6363898f001e4e83c36 | [
"BSD-3-Clause"
] | 1 | 2019-11-28T08:45:09.000Z | 2019-11-28T08:45:09.000Z | #include "DirectionalVolumetricRenderer.h"
#include "../lighting/DirectionalLight.h"
namespace Atlas {
namespace Renderer {
std::string DirectionalVolumetricRenderer::volumetricVertexPath = "volumetric.vsh";
std::string DirectionalVolumetricRenderer::volumetricFragmentPath = "volumetric.fsh";
... | 42.170886 | 134 | 0.634849 | tippesi |
5dbed243bc1ef60853dcabaa4ecd87938ddc8c71 | 1,059 | cpp | C++ | Leetcode/Day026/add_2_num_LL_2.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | Leetcode/Day026/add_2_num_LL_2.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | Leetcode/Day026/add_2_num_LL_2.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | // not sure if this is not reversing the list.
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* addTwoNumbers(ListNode* l1, ListNode* l2)
{
ListNode* ans = N... | 20.365385 | 56 | 0.390935 | SujalAhrodia |
5dbfb9eee1c05aef2e5a2211f35767cb136b519a | 3,728 | cpp | C++ | PhysXChips_Dlg/PhysXMaterial_Dlg.cpp | snaxgameengine/PhysXForSnaX | aa18d93a30e6cfe11b0258af3733b65de0adf832 | [
"BSD-3-Clause"
] | 3 | 2021-04-27T08:52:40.000Z | 2021-05-19T18:05:40.000Z | PhysXChips_Dlg/PhysXMaterial_Dlg.cpp | snaxgameengine/PhysXForSnaX | aa18d93a30e6cfe11b0258af3733b65de0adf832 | [
"BSD-3-Clause"
] | null | null | null | PhysXChips_Dlg/PhysXMaterial_Dlg.cpp | snaxgameengine/PhysXForSnaX | aa18d93a30e6cfe11b0258af3733b65de0adf832 | [
"BSD-3-Clause"
] | null | null | null | // Copyright(c) 2013-2019, mCODE A/S
// 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 code must retain the above copyright
// notice, this list of conditio... | 63.186441 | 246 | 0.747049 | snaxgameengine |
5dc61414252ec404cb3226e3874203a9e52a4806 | 3,609 | cpp | C++ | third_party/omr/fvtest/porttest/cudaStream.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/fvtest/porttest/cudaStream.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/fvtest/porttest/cudaStream.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2015, 2015 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 32.809091 | 135 | 0.704904 | xiacijie |
5dc70052ccbad732e8cd523f9614e99d7ff684d1 | 4,899 | cpp | C++ | moses/phrase-extract/extract-ghkm/ScfgRule.cpp | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 3 | 2018-01-25T00:51:56.000Z | 2022-01-07T15:09:38.000Z | moses/phrase-extract/extract-ghkm/ScfgRule.cpp | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 1 | 2020-06-23T08:29:09.000Z | 2020-06-24T12:11:47.000Z | moses/phrase-extract/extract-ghkm/ScfgRule.cpp | anshsarkar/TailBench | 25845756aee9a892229c25b681051591c94daafd | [
"MIT"
] | 3 | 2018-06-08T08:36:27.000Z | 2021-12-26T20:36:16.000Z | /***********************************************************************
Moses - statistical machine translation system
Copyright (C) 2006-2011 University of Edinburgh
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 ... | 33.554795 | 85 | 0.635028 | anshsarkar |
5dc9027100b9729b1d99f263135cc6893f3370aa | 758 | hpp | C++ | include/eve/function/operator.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | include/eve/function/operator.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | include/eve/function/operator.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 36.095238 | 100 | 0.488127 | orao |
5dc95106d0d8836eb3ccd81f2f89ad1e45cd97a9 | 4,149 | cpp | C++ | nbr-mgr/src/nbr_mgr_main.cpp | open-switch/opx-nas-l3 | c6fb3b1619bd09cebc60bd82120aa7c1a0557d58 | [
"CC-BY-4.0"
] | 1 | 2019-09-18T22:29:56.000Z | 2019-09-18T22:29:56.000Z | nbr-mgr/src/nbr_mgr_main.cpp | open-switch/opx-nas-l3 | c6fb3b1619bd09cebc60bd82120aa7c1a0557d58 | [
"CC-BY-4.0"
] | 18 | 2017-01-28T02:52:48.000Z | 2021-06-11T04:31:29.000Z | nbr-mgr/src/nbr_mgr_main.cpp | open-switch/opx-nas-l3 | c6fb3b1619bd09cebc60bd82120aa7c1a0557d58 | [
"CC-BY-4.0"
] | 13 | 2017-01-03T17:48:37.000Z | 2019-01-09T21:42:49.000Z | /*
* Copyright (c) 2018 Dell 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
*
* THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WAR... | 34.289256 | 102 | 0.687154 | open-switch |
5dca8957b0adefb0f97ea423c205613b29fe073e | 2,170 | cpp | C++ | src/common/port/gs_syscall_lock.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 360 | 2020-06-30T14:47:34.000Z | 2022-03-31T15:21:53.000Z | src/common/port/gs_syscall_lock.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 4 | 2020-06-30T15:09:16.000Z | 2020-07-14T06:20:03.000Z | src/common/port/gs_syscall_lock.cpp | opengauss-mirror/openGauss-graph | 6beb138fd00abdbfddc999919f90371522118008 | [
"MulanPSL-1.0"
] | 133 | 2020-06-30T14:47:36.000Z | 2022-03-25T15:29:00.000Z | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 25.529412 | 101 | 0.66129 | opengauss-mirror |
5dcb6f415d3d60d3f591f35cd1f585a5ae2cadc7 | 1,596 | cpp | C++ | crnlib/crn_checksum.cpp | HugoPeters/crunch | 44c8402e24441c7524ca364941fd224ab3b971e9 | [
"Zlib"
] | 478 | 2015-01-04T16:59:53.000Z | 2022-03-07T20:28:07.000Z | crnlib/crn_checksum.cpp | HugoPeters/crunch | 44c8402e24441c7524ca364941fd224ab3b971e9 | [
"Zlib"
] | 83 | 2015-01-15T21:45:06.000Z | 2021-11-08T11:01:48.000Z | crnlib/crn_checksum.cpp | HugoPeters/crunch | 44c8402e24441c7524ca364941fd224ab3b971e9 | [
"Zlib"
] | 175 | 2015-01-04T03:30:39.000Z | 2020-01-27T17:08:14.000Z | // File: crn_checksum.cpp
#include "crn_core.h"
namespace crnlib
{
// From the public domain stb.h header.
uint adler32(const void* pBuf, size_t buflen, uint adler32)
{
const uint8* buffer = static_cast<const uint8*>(pBuf);
const unsigned long ADLER_MOD = 65521;
unsigned lo... | 24.9375 | 63 | 0.43609 | HugoPeters |
5dcbdd5bf5ae328f67ff8dc9898c6ee5ad78fa67 | 3,407 | cpp | C++ | libs/image/color_ops.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 15 | 2017-10-18T05:08:16.000Z | 2022-02-02T11:01:46.000Z | libs/image/color_ops.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | null | null | null | libs/image/color_ops.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 1 | 2018-11-10T03:12:57.000Z | 2018-11-10T03:12:57.000Z | // SPDX-License-Identifier: MIT
// Copyright contributors to the gecko project.
#include "color_ops.h"
#include "threading.h"
#include <color/color.h>
#include <sstream>
////////////////////////////////////////
namespace color
{
engine::hash &operator<<( engine::hash &h, const state &p );
/// \todo { do something... | 26.207692 | 93 | 0.487526 | kdt3rd |
5dd1174a5b97fe10eb3ec2729a3225b446f3c65e | 13,323 | cpp | C++ | src/kernel/Version.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | src/kernel/Version.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | src/kernel/Version.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | //===--- Version.cpp - Swift Version Number -------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
//===---------------------... | 31.201405 | 96 | 0.61953 | PHP-OPEN-HUB |
5dd14a1d5e434f04c1ee055a0d27bf099a7e7f5a | 1,245 | hpp | C++ | sprout/numeric/dft/cxx14/spectrum.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 691 | 2015-01-15T18:52:23.000Z | 2022-03-15T23:39:39.000Z | sprout/numeric/dft/cxx14/spectrum.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 22 | 2015-03-11T01:22:56.000Z | 2021-03-29T01:51:45.000Z | sprout/numeric/dft/cxx14/spectrum.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 57 | 2015-03-11T07:52:29.000Z | 2021-12-16T09:15:33.000Z | /*=============================================================================
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.tx... | 38.90625 | 109 | 0.680321 | kevcadieux |
5dd25af28cae85b35d675bd16be94aaa95e5879c | 2,892 | cc | C++ | chrome/browser/chromeos/frame/dom_browser_view.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-02-20T14:25:04.000Z | 2019-12-13T13:58:28.000Z | chrome/browser/chromeos/frame/dom_browser_view.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | chrome/browser/chromeos/frame/dom_browser_view.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2020-01-12T00:55:53.000Z | 2020-11-04T06:36:41.000Z | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/frame/dom_browser_view.h"
#include "chrome/browser/chromeos/frame/dom_browser_view_layout.h"
#include "ui/gfx/rect.... | 26.290909 | 80 | 0.713347 | SlimKatLegacy |
5dd7a523db90223a3c025dd6f203d0d8374852dc | 52 | cc | C++ | vector/Vector.cc | me701/cpp_classes | 302d10855069bbb818d317cc98d21ae9d7f8f3eb | [
"MIT"
] | null | null | null | vector/Vector.cc | me701/cpp_classes | 302d10855069bbb818d317cc98d21ae9d7f8f3eb | [
"MIT"
] | null | null | null | vector/Vector.cc | me701/cpp_classes | 302d10855069bbb818d317cc98d21ae9d7f8f3eb | [
"MIT"
] | null | null | null | #include "Vector.hh"
// Member definitions go here
| 13 | 29 | 0.730769 | me701 |
5ddf649cbcc500b7ebfe96f1e6cc58a638ac0ebf | 4,661 | cpp | C++ | src/Devantech_CMPS11.cpp | sgparry/Devantech_Compass | d49fea0d03ff2adf0c9e527c81bab9ddfd728356 | [
"MIT"
] | null | null | null | src/Devantech_CMPS11.cpp | sgparry/Devantech_Compass | d49fea0d03ff2adf0c9e527c81bab9ddfd728356 | [
"MIT"
] | null | null | null | src/Devantech_CMPS11.cpp | sgparry/Devantech_Compass | d49fea0d03ff2adf0c9e527c81bab9ddfd728356 | [
"MIT"
] | null | null | null | /***********************************************************************************
* Copyright (c) 2018 EduMake Limited and Stephen Parry (sgparry@mainscreen.com)
* See file LICENSE for further details
* MIT license, this line and all text above must be included in any redistribution
*****************************... | 29.314465 | 111 | 0.750483 | sgparry |
5de3630a88b02043850ea8c06e3e3203199c0546 | 214 | cpp | C++ | reverse_strings.cpp | HeyIamJames/Learning-C- | 623fad8cb50d71e7404f270f965c8915f8a02c64 | [
"MIT"
] | null | null | null | reverse_strings.cpp | HeyIamJames/Learning-C- | 623fad8cb50d71e7404f270f965c8915f8a02c64 | [
"MIT"
] | null | null | null | reverse_strings.cpp | HeyIamJames/Learning-C- | 623fad8cb50d71e7404f270f965c8915f8a02c64 | [
"MIT"
] | null | null | null | void reverseChar(char* str) {
const size_t len = strlen(str);
for(size_t i=0; i<len/2; i++)
swap(str[i], str[len-i-1]);
}
void reverseChar(char* str) {
std::reverse(str, str + strlen(str));
}
| 19.454545 | 41 | 0.584112 | HeyIamJames |
5de59cb07f002d870ba38d424909ae56214de11f | 6,492 | hpp | C++ | src/tpl/simpool/DynamicPoolAllocator.hpp | nanzifan/Umpire-edit | 990895b527bef0716aaa0fbb0c0f2017e8e15882 | [
"MIT"
] | null | null | null | src/tpl/simpool/DynamicPoolAllocator.hpp | nanzifan/Umpire-edit | 990895b527bef0716aaa0fbb0c0f2017e8e15882 | [
"MIT"
] | null | null | null | src/tpl/simpool/DynamicPoolAllocator.hpp | nanzifan/Umpire-edit | 990895b527bef0716aaa0fbb0c0f2017e8e15882 | [
"MIT"
] | null | null | null | #ifndef _DYNAMICPOOLALLOCATOR_HPP
#define _DYNAMICPOOLALLOCATOR_HPP
#include <cstddef>
#include <cassert>
#include "umpire/tpl/simpool/StdAllocator.hpp"
#include "umpire/tpl/simpool/FixedPoolAllocator.hpp"
#include "umpire/strategy/AllocationStrategy.hpp"
template <class IA = StdAllocator>
class DynamicPoolAllocator... | 26.606557 | 99 | 0.628928 | nanzifan |
5de9de20e00b94b067e4445dd7c48b5a84932e64 | 4,185 | hpp | C++ | include/itp/core_bits/core_fileio.hpp | TING2938/Gmx2020PostAnalysis | 0859383946c05c7424adb1ffa72fd2f8066ce850 | [
"MIT"
] | 4 | 2021-11-23T15:02:13.000Z | 2022-03-21T16:32:09.000Z | include/itp/core_bits/core_fileio.hpp | jianghuili/Gmx2020PostAnalysis | 0859383946c05c7424adb1ffa72fd2f8066ce850 | [
"MIT"
] | null | null | null | include/itp/core_bits/core_fileio.hpp | jianghuili/Gmx2020PostAnalysis | 0859383946c05c7424adb1ffa72fd2f8066ce850 | [
"MIT"
] | 1 | 2021-11-23T15:01:49.000Z | 2021-11-23T15:01:49.000Z | #ifndef __CORE_FILEIO_HPP__
#define __CORE_FILEIO_HPP__
#include <fstream>
#include "../core"
namespace itp
{
namespace inner
{
inline bool is_comment(std::string& line, std::string& comments)
{
auto np = line.find_first_not_of(" ");
return np == std::string::npos || (c... | 28.469388 | 122 | 0.45687 | TING2938 |
5dea70019f2b53cda332b8cad86fefc279ad2e3c | 77,691 | cc | C++ | src/cxx/libsparse/libsparse2d/MR_NoiseModel.cc | jstarck/cosmostat | f686efe4c00073272487417da15e207a529f07e7 | [
"MIT"
] | null | null | null | src/cxx/libsparse/libsparse2d/MR_NoiseModel.cc | jstarck/cosmostat | f686efe4c00073272487417da15e207a529f07e7 | [
"MIT"
] | null | null | null | src/cxx/libsparse/libsparse2d/MR_NoiseModel.cc | jstarck/cosmostat | f686efe4c00073272487417da15e207a529f07e7 | [
"MIT"
] | null | null | null | /******************************************************************************
** Copyright (C) 1996 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 18:28:57
**
** Author: Jean-Luc Starck
**
** Date: 97/05/06
**
** F... | 31.77546 | 129 | 0.477404 | jstarck |
5deb11b2b625dc4a762fa6ca09adcf714906b83c | 1,519 | cpp | C++ | src/PlayMusicOnStartC.cpp | NoVariableGlobal/g.shift | 35907cd4aa931dbef8d15cade76d8cab1d11716c | [
"MIT"
] | null | null | null | src/PlayMusicOnStartC.cpp | NoVariableGlobal/g.shift | 35907cd4aa931dbef8d15cade76d8cab1d11716c | [
"MIT"
] | null | null | null | src/PlayMusicOnStartC.cpp | NoVariableGlobal/g.shift | 35907cd4aa931dbef8d15cade76d8cab1d11716c | [
"MIT"
] | 1 | 2020-10-07T15:09:57.000Z | 2020-10-07T15:09:57.000Z | #include "PlayMusicOnStartC.h"
#include "ComponentsManager.h"
#include "Entity.h"
#include "FactoriesFactory.h"
#include "Scene.h"
#include "SoundComponent.h"
#include <json.h>
// COMPONENT CODE
void PlayMusicOnStartC::destroy() {
stopCurrentMusic(music_);
setActive(false);
scene_->getComponentsManager()-... | 27.618182 | 80 | 0.677419 | NoVariableGlobal |
5dec5ba4bc3a4d54edf53ad196833bb2c6cdb1e9 | 3,344 | cpp | C++ | searchcore/src/vespa/searchcore/fdispatch/common/timestat.cpp | yehzu/vespa | a439476f948f52a57485f5e7700b17bf9aa73417 | [
"Apache-2.0"
] | 1 | 2018-12-30T05:42:18.000Z | 2018-12-30T05:42:18.000Z | searchcore/src/vespa/searchcore/fdispatch/common/timestat.cpp | yehzu/vespa | a439476f948f52a57485f5e7700b17bf9aa73417 | [
"Apache-2.0"
] | 1 | 2021-03-31T22:27:25.000Z | 2021-03-31T22:27:25.000Z | searchcore/src/vespa/searchcore/fdispatch/common/timestat.cpp | yehzu/vespa | a439476f948f52a57485f5e7700b17bf9aa73417 | [
"Apache-2.0"
] | 1 | 2020-02-01T07:21:28.000Z | 2020-02-01T07:21:28.000Z | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "timestat.h"
void
FastS_TimeStatHistory::Reset()
{
_sampleAccTime = 0.0;
_totalAccTime = 0.0;
_sampleIdx = 0;
_sampleCount = 0;
_totalCount = 0;
for (uint32_t i = 0; ... | 28.581197 | 118 | 0.614234 | yehzu |
5def05c6497532561c420c99e28ef891b12862e6 | 496 | cpp | C++ | source/main.cpp | Sticky-Bits/voxel_engine | d730c6bc652df11d0ca6cfe750bf32fb71906440 | [
"MIT"
] | null | null | null | source/main.cpp | Sticky-Bits/voxel_engine | d730c6bc652df11d0ca6cfe750bf32fb71906440 | [
"MIT"
] | null | null | null | source/main.cpp | Sticky-Bits/voxel_engine | d730c6bc652df11d0ca6cfe750bf32fb71906440 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include "Game.h"
int main()
{
// Load settings
Settings* p_settings = new Settings();
p_settings->load_settings();
// Create game using settings
Game* p_game = Game::get_instance();
p_game->create(p_settings);
// Main loop
while (!p_game->should_close())
{
// Poll input events
p_ga... | 14.588235 | 39 | 0.65121 | Sticky-Bits |
5def8e8e8d39e584d096d1f97b7676a1d132b9bc | 2,639 | cpp | C++ | graph-source-code/404-C/9402829.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/404-C/9402829.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/404-C/9402829.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++0x
//created by Yash Sadhwani
//sadhwaniyash6
#include<stdio.h>
#include<iostream>
#include<vector>
#include<string.h>
#include<algorithm>
#include<deque>
#include<map>
#include<set>
#include<stdlib.h>
#include<math.h>
#include<queue>
#include<functional>
using namespace std;
#define... | 21.991667 | 101 | 0.483516 | AmrARaouf |
5df362d247ca17517db8dc6d3d85858190dac9db | 710 | cpp | C++ | Online Judges/CodeChef/NOLOGIC/9288037_AC_0ms_3276kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | 4 | 2017-02-20T17:41:14.000Z | 2019-07-15T14:15:34.000Z | Online Judges/CodeChef/NOLOGIC/9288037_AC_0ms_3276kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | Online Judges/CodeChef/NOLOGIC/9288037_AC_0ms_3276kB.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int ts,vs[30];
string s;
cin>>ts;
getchar();
while(ts--)
{
getline(cin,s);
int l = s.size();
memset(vs,0,sizeof vs);
for(int i=0; i<l; i++)
{
if(isalpha(s[i]))
{
... | 18.205128 | 36 | 0.323944 | moni-roy |
5df3db5beeb54baf4b1d1c617d7f80cd345c849c | 2,401 | cpp | C++ | src/qt/qtbase/tests/manual/widgets/itemviews/qtreeview/main.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | src/qt/qtbase/tests/manual/widgets/itemviews/qtreeview/main.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/manual/widgets/itemviews/qtreeview/main.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... | 36.938462 | 77 | 0.688047 | power-electro |
5df3f62863952cbba5581906d60a098a129cc588 | 436 | hpp | C++ | cpp/include/init_numpy.hpp | davidkleiven/WangLandau | 0b253dd98033c53560fe95c76f5e38257834bdf6 | [
"MIT"
] | 2 | 2022-02-10T00:38:53.000Z | 2022-03-17T22:08:40.000Z | cpp/include/init_numpy.hpp | davidkleiven/CEMC | 0b253dd98033c53560fe95c76f5e38257834bdf6 | [
"MIT"
] | 30 | 2018-05-21T14:52:00.000Z | 2021-02-24T07:45:09.000Z | cpp/include/init_numpy.hpp | davidkleiven/WangLandau | 0b253dd98033c53560fe95c76f5e38257834bdf6 | [
"MIT"
] | 3 | 2018-10-09T14:03:32.000Z | 2022-02-09T05:36:05.000Z | #ifndef INIT_NUMPY_H
#define INIT_NUMPY_H
#include <Python.h>
#define PY_ARRAY_UNIQUE_SYMBOL CE_UPDATER_ARRAY_API
#include "numpy/ndarrayobject.h"
#if PY_MAJOR_VERSION >= 3
inline int* init_numpy()
{
import_array();
// Avoid compilation warning
// import_array is a macro that inserts a return statement
// ... | 18.166667 | 61 | 0.743119 | davidkleiven |
5df5dd9b588e787cca0c343de28b3cd84fa752b7 | 443 | cpp | C++ | lectures/week-02/calc.cpp | programming-workshop-2/course-material | 898ca41343f49c0c96e380bd569631e2be339a8c | [
"MIT"
] | 1 | 2017-01-13T17:44:15.000Z | 2017-01-13T17:44:15.000Z | lectures/week-02/calc.cpp | programming-workshop-2/course-material | 898ca41343f49c0c96e380bd569631e2be339a8c | [
"MIT"
] | null | null | null | lectures/week-02/calc.cpp | programming-workshop-2/course-material | 898ca41343f49c0c96e380bd569631e2be339a8c | [
"MIT"
] | 2 | 2017-02-01T00:36:54.000Z | 2017-03-14T16:01:00.000Z | #include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char** argv)
{
char op;
double v1, v2, ans;
op = argv[1][0];
v1 = atof(argv[2]);
v2 = atof(argv[3]);
switch (op)
{
case '+': ans = v1 + v2; break;
case '-': ans = v1 - v2; break;
case '/': ans = v1 / v2; break;
... | 17.038462 | 63 | 0.48307 | programming-workshop-2 |
5df70854e8ea8137f0b0b570138c80120d0cbee3 | 1,013 | cpp | C++ | cpp_kernels/port_width_widening/src/krnl_base.cpp | kapil2099/Vitis_Accel_Examples | 05f898ab0fb808421316fad9fb7dd862d92eb623 | [
"Apache-2.0"
] | null | null | null | cpp_kernels/port_width_widening/src/krnl_base.cpp | kapil2099/Vitis_Accel_Examples | 05f898ab0fb808421316fad9fb7dd862d92eb623 | [
"Apache-2.0"
] | null | null | null | cpp_kernels/port_width_widening/src/krnl_base.cpp | kapil2099/Vitis_Accel_Examples | 05f898ab0fb808421316fad9fb7dd862d92eb623 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2020 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | 22.021739 | 75 | 0.641658 | kapil2099 |
5df728314923c9851bdf1ccd25adb5e7a4f0af19 | 506 | cpp | C++ | telegram/TMessagesProj/jni/voip/tgcalls/VideoCaptureInterface.cpp | SAFE-anwang/SafeWallet-android | ac1ddfc262b34e398b4504c65ac74911b7ca4381 | [
"MIT"
] | null | null | null | telegram/TMessagesProj/jni/voip/tgcalls/VideoCaptureInterface.cpp | SAFE-anwang/SafeWallet-android | ac1ddfc262b34e398b4504c65ac74911b7ca4381 | [
"MIT"
] | null | null | null | telegram/TMessagesProj/jni/voip/tgcalls/VideoCaptureInterface.cpp | SAFE-anwang/SafeWallet-android | ac1ddfc262b34e398b4504c65ac74911b7ca4381 | [
"MIT"
] | 2 | 2022-03-26T11:06:16.000Z | 2022-03-26T11:13:21.000Z | #include "VideoCaptureInterface.h"
#include "VideoCaptureInterfaceImpl.h"
namespace tgcalls {
std::unique_ptr<VideoCaptureInterface> VideoCaptureInterface::Create(
std::shared_ptr<Threads> threads, std::string deviceId, bool isScreenCapture,
std::shared_ptr<PlatformContext> platformContext) {
return std::make... | 31.625 | 116 | 0.804348 | SAFE-anwang |
5df9810a6707fe3c44c98d9f45dc9f4044a81571 | 2,150 | cpp | C++ | apps/src/videostitch-live-gui/src/livesettings.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | apps/src/videostitch-live-gui/src/livesettings.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | apps/src/videostitch-live-gui/src/livesettings.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "livesettings.hpp"
#include "guiconstants.hpp"
#include "libvideostitch-base/common-config.hpp"
#include <QDir>
LiveSettings::LiveSettings(const QString& settingsName) : VSSettings(settingsName) {}
LiveSettings* LiveSettings::createLi... | 37.068966 | 120 | 0.775814 | tlalexander |
5dfa47f3c8891104f93dbb311354153378ac67ab | 1,844 | cpp | C++ | LayZ/src/math/vec2.cpp | AliKhudiyev/LayZ-Renderer-Engine | 8e8943295f6f80a05c1ba2b7c7c1b3e51779a272 | [
"MIT"
] | 11 | 2020-06-25T20:52:56.000Z | 2021-04-27T05:37:22.000Z | LayZ/src/math/vec2.cpp | AliKhudiyev/LayZ-Renderer-Engine | 8e8943295f6f80a05c1ba2b7c7c1b3e51779a272 | [
"MIT"
] | 3 | 2020-06-29T14:21:52.000Z | 2020-07-06T17:41:45.000Z | LayZ/src/math/vec2.cpp | AliKhudiyev/LayZ-Renderer-Engine | 8e8943295f6f80a05c1ba2b7c7c1b3e51779a272 | [
"MIT"
] | 2 | 2020-07-09T22:07:14.000Z | 2021-02-05T22:04:57.000Z | #include "math/vec2.h"
#include <cassert>
namespace lyz { namespace math {
vec2::vec2(float x, float y) {
data[0] = x;
data[1] = y;
}
vec2::vec2(const float* fdata) {
data[0] = fdata[0];
data[1] = fdata[1];
}
vec2::vec2(const vec2& vec) {
data[0] = vec.data[0];
data[1] = vec.data[1];
}
vec2::~ve... | 17.730769 | 83 | 0.574837 | AliKhudiyev |
b9012a8282cdeded891a00442d30a674680ee591 | 1,041 | cpp | C++ | lib/LuaObject.cpp | indie-zen-plugins/ZLua | 6fff6e889a27152ed85b0c0c0786e6b8706f2247 | [
"MIT"
] | null | null | null | lib/LuaObject.cpp | indie-zen-plugins/ZLua | 6fff6e889a27152ed85b0c0c0786e6b8706f2247 | [
"MIT"
] | null | null | null | lib/LuaObject.cpp | indie-zen-plugins/ZLua | 6fff6e889a27152ed85b0c0c0786e6b8706f2247 | [
"MIT"
] | null | null | null | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// Lua plugin for Zen Scripting
//
// Copyright (C) 2001 - 2016 Raymond A. Richards
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
#include "LuaObject.hpp"
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-... | 26.692308 | 81 | 0.225744 | indie-zen-plugins |
b901c26952db884bb48ded53af470278af5655aa | 4,108 | cpp | C++ | platform/android/Rhodes/jni/src/alert.cpp | oneEyedOdin/rhodes | 3f855212cbbe3fc00ebb15193d9259e47e8c18b0 | [
"MIT"
] | 1 | 2019-10-18T09:44:40.000Z | 2019-10-18T09:44:40.000Z | platform/android/Rhodes/jni/src/alert.cpp | sdwood/rhodes | 8228aa40708dcbcc1d3967a479d1d84364022255 | [
"MIT"
] | 2 | 2019-09-16T09:45:10.000Z | 2019-09-16T09:50:36.000Z | platform/android/Rhodes/jni/src/alert.cpp | sdwood/rhodes | 8228aa40708dcbcc1d3967a479d1d84364022255 | [
"MIT"
] | 1 | 2021-07-03T18:19:38.000Z | 2021-07-03T18:19:38.000Z | /*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software ... | 37.345455 | 134 | 0.702045 | oneEyedOdin |
b9024d6f822e0d46413fe88d77b9fc56ebde2a91 | 1,380 | cpp | C++ | Hacker-Rank/contests/codeagon/1.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | 1 | 2019-05-20T14:38:05.000Z | 2019-05-20T14:38:05.000Z | Hacker-Rank/contests/codeagon/1.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | null | null | null | Hacker-Rank/contests/codeagon/1.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// Complete the solve function below.
float slope(int x1,int y1,int x2,int y2)
{
return abs(float(y2-y1)/(x2-x1))
}
void solve(vector<vector<int>> &grid) {
for(int i=0;i<5;i++)
{
map<float,int> mymap;
int nanc=0,c=0;
for(int j=0;j<5;j... | 17.922078 | 75 | 0.325362 | kishorevarma369 |
b90880593142c92494ef2acf80ebcb1e20a9121e | 1,287 | cpp | C++ | oneflow/core/ep/common/active_device_guard.cpp | LiPengze97/oneflow | 1c1d2d3faa1c02d20e009046a290cf1095ee12e0 | [
"Apache-2.0"
] | null | null | null | oneflow/core/ep/common/active_device_guard.cpp | LiPengze97/oneflow | 1c1d2d3faa1c02d20e009046a290cf1095ee12e0 | [
"Apache-2.0"
] | null | null | null | oneflow/core/ep/common/active_device_guard.cpp | LiPengze97/oneflow | 1c1d2d3faa1c02d20e009046a290cf1095ee12e0 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | 33.868421 | 99 | 0.738151 | LiPengze97 |
b90893dc93ae8e7389089097e352775b5ef4e2bc | 19,599 | cpp | C++ | src/pronet/pro_net/pro_net.cpp | libpronet/libpronet | 78f52fbe002767915553bdf58fb10453e63bf502 | [
"Apache-2.0"
] | 35 | 2018-10-29T06:31:09.000Z | 2022-03-21T08:13:39.000Z | src/pronet/pro_net/pro_net.cpp | libpronet/libpronet | 78f52fbe002767915553bdf58fb10453e63bf502 | [
"Apache-2.0"
] | null | null | null | src/pronet/pro_net/pro_net.cpp | libpronet/libpronet | 78f52fbe002767915553bdf58fb10453e63bf502 | [
"Apache-2.0"
] | 11 | 2018-11-03T04:45:29.000Z | 2021-11-23T06:09:20.000Z | /*
* Copyright (C) 2018-2019 Eric Tung <libpronet@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License"),
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 23.641737 | 90 | 0.537987 | libpronet |
b90aa71724dc8fbd01144d97c285bdadbfc68866 | 11,045 | cc | C++ | tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.cc | vixadd/tensorflow | 8c624204eb686a91779149dc500e6c8c60096074 | [
"Apache-2.0"
] | 190,993 | 2015-11-09T13:17:30.000Z | 2022-03-31T23:05:27.000Z | tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.cc | vixadd/tensorflow | 8c624204eb686a91779149dc500e6c8c60096074 | [
"Apache-2.0"
] | 48,461 | 2015-11-09T14:21:11.000Z | 2022-03-31T23:17:33.000Z | tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.cc | vixadd/tensorflow | 8c624204eb686a91779149dc500e6c8c60096074 | [
"Apache-2.0"
] | 104,981 | 2015-11-09T13:40:17.000Z | 2022-03-31T19:51:54.000Z | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 36.694352 | 85 | 0.72105 | vixadd |
b90b75b2c2ee62d27dd11fdb8f49398f1df80d9b | 65,944 | cpp | C++ | Samples/Win7Samples/netds/tapi/tapi3/cpp/tapirecv/Processing.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/netds/tapi/tapi3/cpp/tapirecv/Processing.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/netds/tapi/tapi3/cpp/tapirecv/Processing.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | /*
Copyright (c) 1999 - 2000 Microsoft Corporation
Module Name:
Processing.cpp
Abstract:
Implementation of the ITTAPIEventNotification interface. An application
must implement and register this interface in order to receive calls and
events related to calls. See TAPI documentatio... | 22.762858 | 89 | 0.50919 | windows-development |
b90d71ff73fe564644ad817975cdc885fc3f1562 | 12,961 | cpp | C++ | test/libfilsc_test/c_codegen_tests.cpp | GuillermoHernan/fil-s | 33d2a8e1c0eb3a9fddd9e6e2dc02780a13fd2302 | [
"MIT"
] | null | null | null | test/libfilsc_test/c_codegen_tests.cpp | GuillermoHernan/fil-s | 33d2a8e1c0eb3a9fddd9e6e2dc02780a13fd2302 | [
"MIT"
] | null | null | null | test/libfilsc_test/c_codegen_tests.cpp | GuillermoHernan/fil-s | 33d2a8e1c0eb3a9fddd9e6e2dc02780a13fd2302 | [
"MIT"
] | null | null | null | /// <summary>
/// Tests for 'C' code generator
/// </summary>
#include "libfilsc_test_pch.h"
#include "c_codeGenerator_internal.h"
#include "codeGeneratorState.h"
#include "semanticAnalysis.h"
#include "utils.h"
//#include <time.h>
using namespace std;
/// <summary>
/// Fixture for code generation tests.
/// </summ... | 26.559426 | 126 | 0.505671 | GuillermoHernan |
b90f7ecd38578fe8fd5de93ffdebca63eb03daa9 | 1,542 | cpp | C++ | leetcode/Algorithms/available-captures-for-rook.cpp | Doarakko/competitive-programming | 5ae78c501664af08a3f16c81dbd54c68310adec8 | [
"MIT"
] | 1 | 2017-07-11T16:47:29.000Z | 2017-07-11T16:47:29.000Z | leetcode/Algorithms/available-captures-for-rook.cpp | Doarakko/Competitive-Programming | 10642a4bd7266c828dd2fc6e311284e86bdf2968 | [
"MIT"
] | 1 | 2021-02-07T09:10:26.000Z | 2021-02-07T09:10:26.000Z | leetcode/Algorithms/available-captures-for-rook.cpp | Doarakko/Competitive-Programming | 10642a4bd7266c828dd2fc6e311284e86bdf2968 | [
"MIT"
] | null | null | null | class Solution {
public:
int numRookCaptures(vector<vector<char>>& board) {
// search rook
int x, y;
for(int i = 0; i < board.size(); i++){
for(int j = 0; j < board[0].size(); j++){
if(board[i][j] == 'R'){
x = j;
y = i;
... | 24.870968 | 54 | 0.270428 | Doarakko |
b9114f53a4edef347073818413904c0a12028c20 | 2,005 | cpp | C++ | src/ripple/protocol/impl/Issue.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 5 | 2019-01-23T04:36:03.000Z | 2020-02-04T07:10:39.000Z | src/ripple/protocol/impl/Issue.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | null | null | null | src/ripple/protocol/impl/Issue.cpp | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 2 | 2019-05-14T07:26:59.000Z | 2020-06-15T07:25:01.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//————————————————————————————————————————————————————————————————————————————————————————————————————————————————
/*
... | 17.743363 | 114 | 0.583541 | yinchengtsinghua |
b918d115b957255720f7138fa9c2839a7c379849 | 10,057 | cpp | C++ | sdbq_parser/sdbq_parser/sdbq_parser.cpp | w1n5t0n99/SdbqParser | d92f21bebbaaf02028b40b73f052198eb2c11858 | [
"MIT"
] | null | null | null | sdbq_parser/sdbq_parser/sdbq_parser.cpp | w1n5t0n99/SdbqParser | d92f21bebbaaf02028b40b73f052198eb2c11858 | [
"MIT"
] | null | null | null | sdbq_parser/sdbq_parser/sdbq_parser.cpp | w1n5t0n99/SdbqParser | d92f21bebbaaf02028b40b73f052198eb2c11858 | [
"MIT"
] | null | null | null | #include "sdbq_parser.h"
#include <algorithm>
#include <iostream>
#include <unordered_set>
#include <map>
#include "csv.h"
namespace sdbq
{
struct QuestionDescriptorHasher
{
size_t operator() (const Question& val) const { return std::hash<std::string>()(val.descriptor+val.difficulty); }
};
struct QuestionDes... | 26.60582 | 151 | 0.68062 | w1n5t0n99 |
2c6e45870f582585cab579c82f1d9d0d79fcf9f5 | 3,387 | cpp | C++ | Nesis/Nesis/src/NesisBrowser.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | 3 | 2015-11-08T07:17:46.000Z | 2019-04-05T17:08:05.000Z | Nesis/Nesis/src/NesisBrowser.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | Nesis/Nesis/src/NesisBrowser.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
* *
* Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] *
* Writen by: *
* Ales... | 29.710526 | 92 | 0.446118 | jpoirier |
2c6e46b7e07f7e232d9c0143b0f11f767452969a | 447 | hpp | C++ | include/Sprite/Wall.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | 2 | 2020-05-05T13:31:55.000Z | 2022-01-16T15:38:00.000Z | include/Sprite/Wall.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | null | null | null | include/Sprite/Wall.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | 1 | 2021-11-27T02:32:24.000Z | 2021-11-27T02:32:24.000Z | #ifndef WALL_HPP
#define WALL_HPP
#include "Sprite.hpp"
#include "Collision.hpp"
#include "Colliable.hpp"
#include "ColliSystem.hpp"
#include "Texture.hpp"
class Wall : public ColliableSprite{
public:
static Wall* Create();
void Init() override;
int Width() const;
int Height() const;
~Wall();
priva... | 17.88 | 36 | 0.666667 | VisualGMQ |
2c6e74a9e357f3bf89c4ce9ba98b700eeb860dce | 992 | hpp | C++ | src/micromamba/info.hpp | pbauwens-kbc/mamba | 243bf801e99fc2215f88fd87c66574aeb85a52e9 | [
"BSD-3-Clause"
] | null | null | null | src/micromamba/info.hpp | pbauwens-kbc/mamba | 243bf801e99fc2215f88fd87c66574aeb85a52e9 | [
"BSD-3-Clause"
] | null | null | null | src/micromamba/info.hpp | pbauwens-kbc/mamba | 243bf801e99fc2215f88fd87c66574aeb85a52e9 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019, QuantStack and Mamba Contributors
//
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.
#ifndef UMAMBA_INFO_HPP
#define UMAMBA_INFO_HPP
#include "mamba/context.hpp"
#ifdef VENDORED_CLI11
#include "mamba/CLI... | 20.666667 | 86 | 0.607863 | pbauwens-kbc |
2c6ea8547eaf985577c74dba91007c36f665cfca | 7,496 | cc | C++ | src/rbf/pfm.cc | moophis/CS222-Simple-Data-Management-System | 55b34eccc4d66c0c0ed201992fd0a2cd4e4711d5 | [
"Apache-2.0"
] | null | null | null | src/rbf/pfm.cc | moophis/CS222-Simple-Data-Management-System | 55b34eccc4d66c0c0ed201992fd0a2cd4e4711d5 | [
"Apache-2.0"
] | null | null | null | src/rbf/pfm.cc | moophis/CS222-Simple-Data-Management-System | 55b34eccc4d66c0c0ed201992fd0a2cd4e4711d5 | [
"Apache-2.0"
] | null | null | null | #include "pfm.h"
#include <iostream>
#include <cstdio>
/////////////////////////////////////////////////////
PagedFileManager* PagedFileManager::_pf_manager = 0;
PagedFileManager* PagedFileManager::instance()
{
if(!_pf_manager)
_pf_manager = new PagedFileManager();
return _pf_manager;
}
PagedFileM... | 22.177515 | 147 | 0.584578 | moophis |
2c70e4268ed74f579b99de7c886ecc0d7b0d8723 | 2,003 | cpp | C++ | Algorithms/0088.MergeSortedArray/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0088.MergeSortedArray/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0088.MergeSortedArray/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <queue>
#include <vector>
#include "gtest/gtest.h"
namespace
{
class Solution
{
public:
void merge(std::vector<int>& nums1, int m, std::vector<int> const &nums2, int n)
{
const size_t size1 = m;
const size_t size2 = n;
std::queue<int> nums1Queue;
size_t index2 = 0;
... | 26.012987 | 126 | 0.529206 | stdstring |
2c7234a4936f1166cc531c5961dc59e848b59b0a | 2,657 | cc | C++ | cartographer_ros/cartographer_ros/node_options.cc | athtest800/cartographer | 566899786d21f11ceeb8b4d51d6a53eca73c4058 | [
"Apache-2.0"
] | null | null | null | cartographer_ros/cartographer_ros/node_options.cc | athtest800/cartographer | 566899786d21f11ceeb8b4d51d6a53eca73c4058 | [
"Apache-2.0"
] | null | null | null | cartographer_ros/cartographer_ros/node_options.cc | athtest800/cartographer | 566899786d21f11ceeb8b4d51d6a53eca73c4058 | [
"Apache-2.0"
] | 1 | 2019-07-11T01:12:15.000Z | 2019-07-11T01:12:15.000Z | /*
* Copyright 2016 The Cartographer Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 40.257576 | 79 | 0.75988 | athtest800 |
2c73d6ed1bffe930c21c219d4bb3ac91bc8dbbd9 | 905 | cpp | C++ | 006/main.cpp | Ponz-Tofu-N/ModernCppChallengePractice | c2003fc180fc28448a3ff5b3e0f0c2788154af8c | [
"MIT"
] | null | null | null | 006/main.cpp | Ponz-Tofu-N/ModernCppChallengePractice | c2003fc180fc28448a3ff5b3e0f0c2788154af8c | [
"MIT"
] | null | null | null | 006/main.cpp | Ponz-Tofu-N/ModernCppChallengePractice | c2003fc180fc28448a3ff5b3e0f0c2788154af8c | [
"MIT"
] | null | null | null | // 6. Abundant Numbers
// Usage: Enter max number
#include <iostream>
#include <cmath>
#include <string>
int main(int argc, char const *argv[])
{
std::cout << "input max number: ";
unsigned int max; std::cin >> max;
/*pick a num*/
/*sum divisors*/
/*print if abundant num and its abu... | 22.073171 | 76 | 0.390055 | Ponz-Tofu-N |
2c74542b046b20d23af5c42548f57bc40a88334f | 5,842 | cc | C++ | Engine/foundation/io/memoryreader.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | 26 | 2015-01-15T12:57:40.000Z | 2022-02-16T10:07:12.000Z | Engine/foundation/io/memoryreader.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | null | null | null | Engine/foundation/io/memoryreader.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | 17 | 2015-02-18T07:51:31.000Z | 2020-06-01T01:10:12.000Z | /****************************************************************************
Copyright (c) 2006, Radon Labs GmbH
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentati... | 28.778325 | 102 | 0.534235 | BikkyS |
2c77a65f0d36f156d472f93c2e9c568c65111e61 | 6,757 | tcc | C++ | radiomicsfeatureextractionpipeline/conquest/src/dgate/dicomlib/array.tcc | Maastro-CDS-Imaging-Group/SQLite4Radiomics | e3a7afc181eec0fe04c18da00edc3772064e6758 | [
"Apache-2.0"
] | null | null | null | radiomicsfeatureextractionpipeline/conquest/src/dgate/dicomlib/array.tcc | Maastro-CDS-Imaging-Group/SQLite4Radiomics | e3a7afc181eec0fe04c18da00edc3772064e6758 | [
"Apache-2.0"
] | 6 | 2021-06-09T19:39:27.000Z | 2021-09-30T16:41:40.000Z | radiomicsfeatureextractionpipeline/conquest/src/dgate/dicomlib/array.tcc | Maastro-CDS-Imaging-Group/SQLite4Radiomics | e3a7afc181eec0fe04c18da00edc3772064e6758 | [
"Apache-2.0"
] | null | null | null | /*
20050125 ljz Added 'ReplaceAt()' to the 'Array' class
20100619 bcb Fix gcc4 warnings and improve speed.
20130429 lsp Corrected (unused) printf format string
20130812 mvh Removed non-thread safe caching of last value
Does not seem to affect speed, throughput remains
at 320 MB/s receive wi... | 20.537994 | 77 | 0.597159 | Maastro-CDS-Imaging-Group |
2c7b28cd370a850ec77649e471db05f1398aaa2e | 138 | hpp | C++ | source/framework/algorithm/include/lue/framework/algorithm/definition/greater_than.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 2 | 2021-02-26T22:45:56.000Z | 2021-05-02T10:28:48.000Z | source/framework/algorithm/include/lue/framework/algorithm/definition/greater_than.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/framework/algorithm/include/lue/framework/algorithm/definition/greater_than.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #pragma once
#include "lue/framework/algorithm/greater_than.hpp"
#include "lue/framework/algorithm/definition/binary_local_operation.hpp"
| 34.5 | 72 | 0.84058 | computationalgeography |
2c7cfc0c08dd10e6631562000626193fc83d9992 | 3,308 | cpp | C++ | samples/win32/mfc/CanalDiagnostic/DocumentProperties.cpp | grodansparadis/vscp-samples | 43becaafe267de0b772e99d9608e8ec4eb8343c8 | [
"MIT"
] | 2 | 2020-12-01T18:54:20.000Z | 2022-01-24T20:18:33.000Z | samples/win32/mfc/CanalDiagnostic/DocumentProperties.cpp | grodansparadis/vscp-samples | 43becaafe267de0b772e99d9608e8ec4eb8343c8 | [
"MIT"
] | null | null | null | samples/win32/mfc/CanalDiagnostic/DocumentProperties.cpp | grodansparadis/vscp-samples | 43becaafe267de0b772e99d9608e8ec4eb8343c8 | [
"MIT"
] | null | null | null | // DocumentProperties.cpp : implementation file
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version
// 2 of the License, or (at your option) any later version.
// canald.cpp
//... | 28.273504 | 78 | 0.655985 | grodansparadis |
2c7eccb92b8799dde7d139354e501a01f7145075 | 13,600 | cc | C++ | src/common/time.cc | sergeyfilip/objectstore | e2d0c86134c46c77fb143f7198d13fab7f5b1ea5 | [
"MIT"
] | null | null | null | src/common/time.cc | sergeyfilip/objectstore | e2d0c86134c46c77fb143f7198d13fab7f5b1ea5 | [
"MIT"
] | null | null | null | src/common/time.cc | sergeyfilip/objectstore | e2d0c86134c46c77fb143f7198d13fab7f5b1ea5 | [
"MIT"
] | null | null | null | //
//! \file common/time.cc
//
//! Implementation of our time routines
//
// $Id: time.cc,v 1.17 2013/05/23 08:54:57 joe Exp $
//
#include "time.hh"
#include "error.hh"
#include "string.hh"
#include <vector>
#include <iomanip>
#include <istream>
#include <ostream>
#include <math.h>
#include <time.h>
#include <string... | 23.776224 | 82 | 0.606691 | sergeyfilip |
2c811f7a86797f15c9801e7149dcc4e063114d22 | 7,276 | cpp | C++ | fkie_iop_pantilt_specification_service/src/PantiltCfgReader.cpp | fkie/iop_jaus_manipulator | d147d14a212fa57f52349c5ec937817591ef7d9c | [
"BSD-3-Clause"
] | null | null | null | fkie_iop_pantilt_specification_service/src/PantiltCfgReader.cpp | fkie/iop_jaus_manipulator | d147d14a212fa57f52349c5ec937817591ef7d9c | [
"BSD-3-Clause"
] | null | null | null | fkie_iop_pantilt_specification_service/src/PantiltCfgReader.cpp | fkie/iop_jaus_manipulator | d147d14a212fa57f52349c5ec937817591ef7d9c | [
"BSD-3-Clause"
] | null | null | null | /**
ROS/IOP Bridge
Copyright (c) 2017 Fraunhofer
This program is dual licensed; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation, or
enter into a proprietary license agreement with the copyright
holder.
This program is di... | 39.978022 | 151 | 0.757559 | fkie |
2c8168440ba85f8160a3e3f7b75cfc16885e6fa2 | 1,957 | cpp | C++ | foe4.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | foe4.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | foe4.cpp | Loretac/ohlavache | 2cbe309433cca0f7a61d8c08f6f4f383dd934f10 | [
"MIT"
] | null | null | null | #include "foe4.h"
#include "game.h"
#include "bulletdirected.h"
#include "bulletminesmall.h"
#include <QTimer>
extern Game *game;
/*********************************************************************
**
*********************************************************************/
Foe4::Foe4()
{
setStartingHealth... | 20.385417 | 96 | 0.552376 | Loretac |
2c844a4d5b4b4f7aaf9c25dc955654683e53893b | 1,519 | hh | C++ | src/image/image.hh | kofuk/pixel-terrain | f39e2a0120aab5a11311f57cfd1ab46efa65fddd | [
"MIT"
] | 2 | 2020-10-16T08:46:45.000Z | 2020-11-04T02:19:19.000Z | src/image/image.hh | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | src/image/image.hh | kofuk/minecraft-image-generator | ef2f7deb2daac7f7c2cfb468ef39e0cdc8b33db7 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
#ifndef IMAGE_HH
#define IMAGE_HH
#include <filesystem>
#include "image/containers.hh"
#include "image/worker.hh"
#include "logger/logger.hh"
#include "nbt/chunk.hh"
#include "nbt/region.hh"
#include "utils/path_hack.hh"
#include "utils/threaded_worker.hh"
namespace pixel_terrain::im... | 29.211538 | 77 | 0.593153 | kofuk |
2c84bfe2d6f3a681f0b0ddf7a0eee48b60012c57 | 3,196 | hpp | C++ | src/oclVM.hpp | beehive-lab/ProtonVM | 22636178d2b0bb6ddf2beaa0e381fb6d6ce3598c | [
"Apache-2.0"
] | 5 | 2021-07-23T10:12:12.000Z | 2022-02-08T19:38:45.000Z | src/oclVM.hpp | beehive-lab/ProtonVM | 22636178d2b0bb6ddf2beaa0e381fb6d6ce3598c | [
"Apache-2.0"
] | null | null | null | src/oclVM.hpp | beehive-lab/ProtonVM | 22636178d2b0bb6ddf2beaa0e381fb6d6ce3598c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020-2021, APT Group, Department of Computer Science,
* The University of Manchester.
*
* 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/l... | 24.030075 | 83 | 0.661139 | beehive-lab |
2c8a4c69dfcad9e88a375b07312965a2600ff4bc | 269 | cpp | C++ | cpp/Itterators/using_zad1.cpp | joro2404/Programming_problems | e0a6f5cbaed013ffde9ecaf3f6d266c582191e41 | [
"MIT"
] | null | null | null | cpp/Itterators/using_zad1.cpp | joro2404/Programming_problems | e0a6f5cbaed013ffde9ecaf3f6d266c582191e41 | [
"MIT"
] | null | null | null | cpp/Itterators/using_zad1.cpp | joro2404/Programming_problems | e0a6f5cbaed013ffde9ecaf3f6d266c582191e41 | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
#include <string>
#include "zad1.cpp"
using namespace std;
using namespace brackets;
int main() {
Brackets Brackets;
int checker = Brackets.countBrackets();
cout << "The string is balanced: " << checker << endl;
}
| 14.944444 | 58 | 0.672862 | joro2404 |
2c8cac1b9c33c8497d87479093a357bebbfa92f4 | 2,459 | cc | C++ | src/simplesat/parsers/dimacs_parser.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | src/simplesat/parsers/dimacs_parser.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | src/simplesat/parsers/dimacs_parser.cc | evmaus/ClusterSAT | d26ff539fe9789611e9ecd8ef5c14a19e150105b | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// 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 ... | 30.7375 | 88 | 0.651891 | evmaus |
2c979c8325291c6061e2735370baa586ab05be42 | 234 | cpp | C++ | display/source/DisplayConstants.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | display/source/DisplayConstants.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | display/source/DisplayConstants.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | #include "DisplayConstants.hpp"
using namespace std;
const string DisplayIdentifier::DISPLAY_IDENTIFIER_CURSES = "curses";
const string DisplayIdentifier::DISPLAY_IDENTIFIER_SDL = "sdl";
DisplayIdentifier::DisplayIdentifier()
{
}
| 19.5 | 69 | 0.807692 | sidav |
2ca15fdd61c0a58f78d82d0e92b823c8ba841b67 | 285 | cpp | C++ | src/kitti/common.cpp | dzyswy/kitti_player | 77f9d6266a05639da4ba9b943338a9f2304b9f5e | [
"MIT"
] | null | null | null | src/kitti/common.cpp | dzyswy/kitti_player | 77f9d6266a05639da4ba9b943338a9f2304b9f5e | [
"MIT"
] | null | null | null | src/kitti/common.cpp | dzyswy/kitti_player | 77f9d6266a05639da4ba9b943338a9f2304b9f5e | [
"MIT"
] | null | null | null | #include "kitti/common.h"
namespace kitti {
void GlobalInit(int* pargc, char*** pargv)
{
// Google logging.
::google::InitGoogleLogging(*(pargv)[0]);
// Provide a backtrace on segfault.
::google::InstallFailureSignalHandler();
}
}//namespace kitti
| 8.142857 | 43 | 0.631579 | dzyswy |
2ca2106ecd6bed73ee0215738d606f2a216e6f64 | 3,062 | cpp | C++ | src/Tools/ProjectBuilder/XmlToBinDecoder.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Tools/ProjectBuilder/XmlToBinDecoder.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Tools/ProjectBuilder/XmlToBinDecoder.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "XmlToBinDecoder.h"
#include "Interface/ServiceInterface.h"
#include "Interface/StringizeServiceInterface.h"
#include "Interface/ArchivatorInterface.h"
#include "Interface/LoggerInterface.h"
#include "Interface/CodecInterface.h"
#include "Interface/ConverterInterface.h"
#include "Interface/FileServi... | 30.929293 | 142 | 0.599282 | irov |
2ca2e271039a5fffec046d722e2e2d7093237e3a | 3,276 | cpp | C++ | poprithms/tests/tests/schedule/shift/graph_comparisons_0.cpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | 24 | 2020-07-06T17:11:30.000Z | 2022-01-01T07:39:12.000Z | poprithms/tests/tests/schedule/shift/graph_comparisons_0.cpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | null | null | null | poprithms/tests/tests/schedule/shift/graph_comparisons_0.cpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | 2 | 2020-07-15T12:33:22.000Z | 2021-07-27T06:07:16.000Z | // Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#include <iostream>
#include <string>
#include <poprithms/error/error.hpp>
#include <poprithms/schedule/shift/graph.hpp>
namespace {
using namespace poprithms::schedule::shift;
void test0() {
// check multiple comparison operators at the same time
auto ... | 21.552632 | 76 | 0.547314 | graphcore |
2ca6a079c413fb203abe0b963e59036bf389350c | 17,757 | hpp | C++ | Datastructures/Tree.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | 2 | 2021-06-09T00:38:46.000Z | 2021-09-04T21:55:33.000Z | Datastructures/Tree.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | null | null | null | Datastructures/Tree.hpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | 1 | 2021-08-30T00:46:12.000Z | 2021-08-30T00:46:12.000Z | //
// Created by phoenixflower on 9/26/21.
//
#ifndef LANDESSDEVCORE_TREE_HPP
#define LANDESSDEVCORE_TREE_HPP
//
// Tree.h
// Foundation
//
// Created by James Landess on 1/6/14.
// Copyright (c) 2014 LandessDev. All rights reserved.
//
#ifndef Foundation_Tree_h
#define Foundation_Tree_h
/*----------------------... | 31.822581 | 122 | 0.525933 | jlandess |
2ca6bdbc6157547d62a3c5a0bcaad1b02cbb0113 | 1,137 | cpp | C++ | src/LongestValidParentheses.cpp | lzz5235/leetcode | 8713b7924a84a0c7d6887e1c8052738b5a778d1f | [
"MIT"
] | null | null | null | src/LongestValidParentheses.cpp | lzz5235/leetcode | 8713b7924a84a0c7d6887e1c8052738b5a778d1f | [
"MIT"
] | null | null | null | src/LongestValidParentheses.cpp | lzz5235/leetcode | 8713b7924a84a0c7d6887e1c8052738b5a778d1f | [
"MIT"
] | null | null | null | //Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
//
//For "(()", the longest valid parentheses substring is "()", which has length = 2.
//
//Another example is ")()())", where the longest valid parentheses substring is "()()", whi... | 21.45283 | 135 | 0.562005 | lzz5235 |
2ca7b5bd693fd0599d411fb3c96a2b6adfc57565 | 2,000 | hpp | C++ | engine/include/io/logger.hpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 44 | 2017-01-25T05:57:21.000Z | 2021-09-21T13:36:49.000Z | engine/include/io/logger.hpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 1 | 2017-04-05T01:50:18.000Z | 2017-04-05T01:50:18.000Z | engine/include/io/logger.hpp | ValtoForks/Terminus-Engine | 0c7381af84736ec7b029977843590453cde64b1d | [
"MIT"
] | 3 | 2017-09-28T08:11:00.000Z | 2019-03-27T03:38:47.000Z | #pragma once
#include <core/terminus_macros.hpp>
#include <string>
// Macros for quick access. File and line are added through the respective macros.
#define TE_LOG_INFO(x) te::logger::log(x, std::string(__FILE__), __LINE__, te::logger::LEVEL_INFO)
#define TE_LOG_WARNING(x) te::logger::log(x, std::string(__FILE__), _... | 29.411765 | 104 | 0.751 | ValtoForks |
2caa60a850f9f796a4bb0bf8d40e9537f2e24d5f | 424 | cpp | C++ | ieee_sep/RateComponentListLink.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/RateComponentListLink.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/RateComponentListLink.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////
// RateComponentListLink.cpp
// Implementation of the Class RateComponentListLink
// Created on: 13-Apr-2020 2:51:38 PM
// Original author: svanausdall
///////////////////////////////////////////////////////////
#include "RateComponentListLink.h"
R... | 22.315789 | 59 | 0.54717 | Tylores |
2caae092e04eda8fe3c4320d39f468ae13e0f99f | 3,705 | cpp | C++ | arduino/pcc2arduino.cpp | ncchandler42/pcc2arduino | ff67796d93760b1c2dd3dc9e9a02319d71ef6d7e | [
"MIT"
] | null | null | null | arduino/pcc2arduino.cpp | ncchandler42/pcc2arduino | ff67796d93760b1c2dd3dc9e9a02319d71ef6d7e | [
"MIT"
] | null | null | null | arduino/pcc2arduino.cpp | ncchandler42/pcc2arduino | ff67796d93760b1c2dd3dc9e9a02319d71ef6d7e | [
"MIT"
] | null | null | null | #include "pcc2arduino.h"
///////////////////////
// reads in bytes from serial
// returns true when the controller state is ready
///////////////////////
bool PCController::update()
{
if (!ser || !ser->available())
return false;
//find the start of a valid parsel
while (ser->peek() != '<')
{
byte b = ser->re... | 16.764706 | 67 | 0.516059 | ncchandler42 |
2cadf91207f78b90cb5b8e80ead2ba9d1169e48b | 10,520 | cpp | C++ | external/src/zxing/zxing/maxicode/MCDecoder.cpp | emarc99/SLib | 4e492d6c550f845fd1b3f40bf10183097eb0e53c | [
"MIT"
] | 1,049 | 2019-07-22T14:45:58.000Z | 2022-03-17T15:42:31.000Z | external/src/zxing/zxing/maxicode/MCDecoder.cpp | Crasader/SLib | 4e492d6c550f845fd1b3f40bf10183097eb0e53c | [
"MIT"
] | 153 | 2019-07-23T08:01:14.000Z | 2022-01-19T03:53:52.000Z | external/src/zxing/zxing/maxicode/MCDecoder.cpp | Crasader/SLib | 4e492d6c550f845fd1b3f40bf10183097eb0e53c | [
"MIT"
] | 169 | 2019-07-23T07:48:22.000Z | 2022-03-30T09:01:34.000Z | /*
* Copyright 2016 Nu-book Inc.
* Copyright 2016 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 32.978056 | 211 | 0.545342 | emarc99 |
2caeace24a8b6ba44157289ba3753368b9eb3993 | 16,647 | cpp | C++ | external/sbml/annotation/test/TestRDFAnnotation.cpp | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | 1 | 2019-08-22T17:17:41.000Z | 2019-08-22T17:17:41.000Z | external/sbml/annotation/test/TestRDFAnnotation.cpp | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | null | null | null | external/sbml/annotation/test/TestRDFAnnotation.cpp | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | null | null | null | /**
* \file TestRDFAnnotation.cpp
* \brief fomula units data unit tests
* \author Ben Bornstein
*
* $Id: TestRDFAnnotation.cpp 10125 2009-08-28 12:14:18Z sarahkeating $
* $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/src/annotation/test/TestRDFAnnotation.cpp $
*/
/* Copyright 2002 C... | 36.426696 | 336 | 0.698985 | dchandran |
2caffe97249eed511b7f5a9ee7f0aa9e296ee893 | 6,582 | cpp | C++ | Ouroboros/Source/oGUI/menu.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | Ouroboros/Source/oGUI/menu.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | Ouroboros/Source/oGUI/menu.cpp | igHunterKiller/ouroboros | 5e2cde7e6365341da297da10d8927b091ecf5559 | [
"MIT"
] | null | null | null | // Copyright (c) 2016 Antony Arciuolo. See License.txt regarding use.
#include <oGUI/menu.h>
#include <oCore/assert.h>
#include <oSystem/windows/win_error.h>
namespace ouro { namespace gui { namespace menu {
#if 0
// not in use (yet?)
static int find_position(menu_handle parent, int item)
{
const int n = num_items... | 27.655462 | 333 | 0.721513 | igHunterKiller |
2cb53b6db898cb0767dee7cc81f220cbab1273e6 | 3,401 | inl | C++ | include/IECore/FastFloat.inl | gcodebackups/cortex-vfx | 72fa6c6eb3327fce4faf01361c8fcc2e1e892672 | [
"BSD-3-Clause"
] | 5 | 2016-07-26T06:09:28.000Z | 2022-03-07T03:58:51.000Z | include/IECore/FastFloat.inl | turbosun/cortex | 4bdc01a692652cd562f3bfa85f3dae99d07c0b15 | [
"BSD-3-Clause"
] | null | null | null | include/IECore/FastFloat.inl | turbosun/cortex | 4bdc01a692652cd562f3bfa85f3dae99d07c0b15 | [
"BSD-3-Clause"
] | 3 | 2015-03-25T18:45:24.000Z | 2020-02-15T15:37:18.000Z | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | 27.427419 | 121 | 0.68127 | gcodebackups |
2cb716fccda08419a28cc4b10ce7141c47468a28 | 3,110 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_astid.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_astid.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_astid.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #ifndef INCLUDED_STDDEFX
#include "stddefx.h"
#define INCLUDED_STDDEFX
#endif
#ifndef INCLUDED_CALC_ASTID
#include "calc_astid.h"
#define INCLUDED_CALC_ASTID
#endif
// Library headers.
// PCRaster library headers.
// Module headers.
#ifndef INCLUDED_CALC_QUOTE
#include "calc_quote.h"
#define INCLUDED_CALC_QUOTE
#en... | 18.294118 | 80 | 0.526688 | quanpands |
2cb72f3d5e61bd976d875bc823bd7eb18db6b045 | 866 | cpp | C++ | Codeforces/Gym101002C.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Codeforces/Gym101002C.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Codeforces/Gym101002C.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <bits/stdc++.h>
#define MAXN 16
using namespace std;
int n,k,w[MAXN],h[MAXN],q[MAXN];
long long dp[MAXN][1<<MAXN],mw[1<<MAXN],mh[1<<MAXN],cnt[1<<MAXN],all[1<<MAXN];
long long v[1<<MAXN],ans=~(1LL<<63);
int main()
{
memset(dp,0x3f,sizeof dp);dp[0][0]=0;
scanf("%d %d",&n,&k);
for (int i=0;i<n;i++) scanf("%d... | 24.055556 | 78 | 0.515012 | HeRaNO |
2cb936c9997e65bb6cdfc2d04b81b9a9838050ab | 6,666 | cpp | C++ | qt-creator-opensource-src-4.6.1/tests/unit/unittest/clangtranslationunit-test.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/tests/unit/unittest/clangtranslationunit-test.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/tests/unit/unittest/clangtranslationunit-test.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 33.837563 | 108 | 0.663966 | kevinlq |
2cba4a9acdf0794ca520d5900be289868bff8ea8 | 5,192 | hpp | C++ | vlite/strided_ref_vector.hpp | verri/vlite | c4677dad17070b8fb0cbabd06018b3bcbb162860 | [
"Zlib"
] | null | null | null | vlite/strided_ref_vector.hpp | verri/vlite | c4677dad17070b8fb0cbabd06018b3bcbb162860 | [
"Zlib"
] | null | null | null | vlite/strided_ref_vector.hpp | verri/vlite | c4677dad17070b8fb0cbabd06018b3bcbb162860 | [
"Zlib"
] | null | null | null | #ifndef VLITE_STRIDED_REF_VECTOR_HPP_INCLUDED
#define VLITE_STRIDED_REF_VECTOR_HPP_INCLUDED
#include <vlite/common_vector_base.hpp>
#include <vlite/slice.hpp>
#include <vlite/strided_iterator.hpp>
namespace vlite
{
template <typename T>
class strided_ref_vector : public common_vector_base<strided_ref_vector<T>>
{
... | 27.764706 | 88 | 0.658128 | verri |
2cba665570bb385075abcde32c257eaa4c100300 | 29,839 | cpp | C++ | camera/ndk/impl/ACameraManager.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | null | null | null | camera/ndk/impl/ACameraManager.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | null | null | null | camera/ndk/impl/ACameraManager.cpp | Dreadwyrm/lhos_frameworks_av | 62c63ccfdf5c79a3ad9be4836f473da9398c671b | [
"Apache-2.0"
] | 2 | 2021-07-08T07:42:11.000Z | 2021-07-09T21:56:10.000Z | /*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... | 37.675505 | 101 | 0.628875 | Dreadwyrm |
2cbb92f70ac51a6f3dd45b695bd796bdc8525db9 | 5,547 | cpp | C++ | CodeGenere/photogram/cRegD2.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 451 | 2016-11-25T09:40:28.000Z | 2022-03-30T04:20:42.000Z | CodeGenere/photogram/cRegD2.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 143 | 2016-11-25T20:35:57.000Z | 2022-03-01T11:58:02.000Z | CodeGenere/photogram/cRegD2.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 139 | 2016-12-02T10:26:21.000Z | 2022-03-10T19:40:29.000Z | /*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : Marc Pierrot Deseilligny
Contributors : Gregoire Maille... | 29.663102 | 81 | 0.711556 | kikislater |
2cc0184b760471df88cb0c90a9e9d89b3dff60db | 16,874 | hpp | C++ | LinaGraphics/include/Core/Backend/OpenGL/OpenGLRenderEngine.hpp | moonantonio/LinaEngine | fe5a91a85c64dd0719656eb38e2fb37037bacfc1 | [
"MIT"
] | 10 | 2018-09-30T22:29:27.000Z | 2018-10-08T14:04:42.000Z | LinaGraphics/include/Core/Backend/OpenGL/OpenGLRenderEngine.hpp | moonantonio/LinaEngine | fe5a91a85c64dd0719656eb38e2fb37037bacfc1 | [
"MIT"
] | 15 | 2018-10-02T22:14:17.000Z | 2018-10-12T08:01:36.000Z | LinaGraphics/include/Core/Backend/OpenGL/OpenGLRenderEngine.hpp | moonantonio/LinaEngine | fe5a91a85c64dd0719656eb38e2fb37037bacfc1 | [
"MIT"
] | 1 | 2018-09-30T16:37:10.000Z | 2018-09-30T16:37:10.000Z | /*
This file is a part of: Lina Engine
https://github.com/inanevin/LinaEngine
Author: Inan Evin
http://www.inanevin.com
Copyright (c) [2018-2020] [Inan Evin]
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 t... | 35.081081 | 147 | 0.648987 | moonantonio |
2cc40324de4e9508a348c23e4b8157b91237050a | 6,558 | cpp | C++ | eagleye_core/navigation/src/smoothing.cpp | shjzhang/eagleye | e4e105d3a5438cf5ee36f1cc525ff87313923fc5 | [
"BSD-3-Clause"
] | 1 | 2020-07-16T15:31:59.000Z | 2020-07-16T15:31:59.000Z | eagleye_core/navigation/src/smoothing.cpp | shjzhang/eagleye | e4e105d3a5438cf5ee36f1cc525ff87313923fc5 | [
"BSD-3-Clause"
] | null | null | null | eagleye_core/navigation/src/smoothing.cpp | shjzhang/eagleye | e4e105d3a5438cf5ee36f1cc525ff87313923fc5 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019, Map IV, Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and... | 44.310811 | 233 | 0.76319 | shjzhang |
2cc564d474ea0a6388fb3bc8a018f3293f77c791 | 291 | cpp | C++ | src/Client/MainClient.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 13 | 2016-04-02T14:21:49.000Z | 2021-01-10T17:32:43.000Z | src/Client/MainClient.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 24 | 2016-04-02T12:08:39.000Z | 2021-01-27T01:21:58.000Z | src/Client/MainClient.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 6 | 2016-04-02T12:05:28.000Z | 2017-05-10T14:13:39.000Z | /**
* NecroEdit v1.0
*/
#include <Client/System/NEApplication.hpp>
#include <string>
#include <vector>
int main(int argc, char *argv[])
{
// put arguments into vector.
std::vector<std::string> args(argv, argv+argc);
// run client.
NEApplication client;
return client.run(args);
}
| 16.166667 | 48 | 0.680412 | Marukyu |
2cc69a0e44e5b8df7888fbfdda346c3c700cf26a | 253 | cc | C++ | src/AST/ASTRequire.cc | dburkart/check-sieve | 667f0e9670e8820e37a8162ec09e794e6e4f1cb4 | [
"MIT"
] | 20 | 2015-09-06T04:16:04.000Z | 2022-03-24T16:34:56.000Z | src/AST/ASTRequire.cc | dburkart/mail-sieve-verifier | cb51fda06c933dd1e1d0ded05ccba9bedbe67e7f | [
"MIT"
] | 24 | 2015-06-14T01:44:30.000Z | 2015-09-05T17:25:11.000Z | src/AST/ASTRequire.cc | dburkart/mail-sieve-verifier | cb51fda06c933dd1e1d0ded05ccba9bedbe67e7f | [
"MIT"
] | 3 | 2015-09-08T05:24:08.000Z | 2019-04-01T00:15:29.000Z | #include "ASTRequire.hh"
#include "ASTVisitor.hh"
namespace sieve
{
ASTRequire::ASTRequire( yy::location location )
: ASTCommand( location )
{
}
void ASTRequire::accept( ASTVisitor &visitor ) {
visitor.visit(this);
}
} // namespace sieve | 14.882353 | 48 | 0.6917 | dburkart |
2cc7e361669722d95a91ef3d1479964f30499718 | 190,413 | cpp | C++ | com/netfx/src/clr/vm/excep.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/netfx/src/clr/vm/excep.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/netfx/src/clr/vm/excep.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/* EXCEP.CPP:
*
*/
#include "common.h"
#include "tls.h"
#include "frames.h"
#include "threads.h"
#include "excep.h"
#include "object.h"
#include "COMString.h"
#include "field.h"
#include "DbgInterface.h"
... | 35.812112 | 178 | 0.569814 | npocmaka |
2cc93bc2deb10ffdd179cc6269c4f4830d1cffe3 | 88 | hpp | C++ | noncopyable.hpp | yuriks/libyuriks | e80c599cdfe6294df8ce58ad5570af20e50b1072 | [
"Apache-2.0"
] | 6 | 2015-02-13T20:58:28.000Z | 2020-10-02T02:38:13.000Z | libyuriks/noncopyable.hpp | yuriks/super-match-5-dx | 47d53b99cc8f93f7cd63a7b11b380ba935739662 | [
"Apache-2.0"
] | null | null | null | libyuriks/noncopyable.hpp | yuriks/super-match-5-dx | 47d53b99cc8f93f7cd63a7b11b380ba935739662 | [
"Apache-2.0"
] | 2 | 2016-10-03T18:50:27.000Z | 2018-12-12T22:14:58.000Z | #pragma once
#define NONCOPYABLE(cls) cls(const cls&); const cls& operator=(const cls&)
| 29.333333 | 74 | 0.738636 | yuriks |
2ccc90d150fe55648df73ba053f9b4f7ffe5772c | 1,988 | hpp | C++ | src/endian/boost/io/detail/bin_manip.hpp | veprbl/libepecur | 83167ac6220e69887c03b556f1a7ffc518cbb227 | [
"Unlicense"
] | 1 | 2021-06-25T13:41:19.000Z | 2021-06-25T13:41:19.000Z | src/endian/boost/io/detail/bin_manip.hpp | veprbl/libepecur | 83167ac6220e69887c03b556f1a7ffc518cbb227 | [
"Unlicense"
] | null | null | null | src/endian/boost/io/detail/bin_manip.hpp | veprbl/libepecur | 83167ac6220e69887c03b556f1a7ffc518cbb227 | [
"Unlicense"
] | null | null | null | // boost/io/detail/bin_manip.hpp -----------------------------------------------------//
// Copyright Beman Dawes 2009, 2011
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
#ifndef BOOST_BIN_MANIP_HPP
#define BOOST_BIN_MANIP_HPP
#include <boost/config.h... | 24.54321 | 90 | 0.691147 | veprbl |
2ccd42cb5391a7f47e2769fe6befd68a23307375 | 2,348 | cpp | C++ | src/saveload/animated_tile_sl.cpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/saveload/animated_tile_sl.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/saveload/animated_tile_sl.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD 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, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 36.6875 | 185 | 0.758518 | trademarks |
2ccd709ed3d6150e8440478c862626b8257c7a06 | 2,128 | cpp | C++ | src/kalman_filter.cpp | kunlin596/CarND-Extended-Kalman-Filter-Project | 130a8e3555b94edb494dcbcef20d3620176cf21a | [
"MIT"
] | null | null | null | src/kalman_filter.cpp | kunlin596/CarND-Extended-Kalman-Filter-Project | 130a8e3555b94edb494dcbcef20d3620176cf21a | [
"MIT"
] | null | null | null | src/kalman_filter.cpp | kunlin596/CarND-Extended-Kalman-Filter-Project | 130a8e3555b94edb494dcbcef20d3620176cf21a | [
"MIT"
] | null | null | null | #include "kalman_filter.h"
#include "tools.h"
#include "logger.h"
using Eigen::MatrixXd;
using Eigen::VectorXd;
/*
* Please note that the Eigen library does not initialize
* VectorXd or MatrixXd objects with zeros upon creation.
*/
void KalmanFilter::Predict(double dt) {
// Update F
F_(0, 2) = F_(1, 3)... | 33.25 | 81 | 0.549342 | kunlin596 |
2ccf346bceb3ae6911c239b47004f6e90a1b497d | 5,926 | hpp | C++ | third_party/concurrentqueue/tests/relacy/relacy/relacy/memory.hpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 1,847 | 2020-03-24T19:01:42.000Z | 2022-03-31T13:18:57.000Z | third_party/concurrentqueue/tests/relacy/relacy/relacy/memory.hpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 1,100 | 2020-03-24T19:41:13.000Z | 2022-03-31T14:27:09.000Z | third_party/concurrentqueue/tests/relacy/relacy/relacy/memory.hpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 228 | 2020-03-25T05:32:08.000Z | 2022-03-31T11:27:39.000Z | /* Relacy Race Detector
* Copyright (c) 2008-2013, Dmitry S. Vyukov
* All rights reserved.
* This software is provided AS-IS with no warranty, either express or implied.
* This software is distributed under a license and may not be copied,
* modified or distributed except as expressly authorized under the
*... | 24.487603 | 121 | 0.509619 | tufeigunchu |
2ccfac126bcae4aaea53017a8daef5a4d577a548 | 1,429 | cpp | C++ | moci/moci_system/system/windows/info.cpp | tobanteAudio/moci | a0a764e8a5270f9344ff57366fea36f72e7e3aa4 | [
"BSD-2-Clause"
] | null | null | null | moci/moci_system/system/windows/info.cpp | tobanteAudio/moci | a0a764e8a5270f9344ff57366fea36f72e7e3aa4 | [
"BSD-2-Clause"
] | 16 | 2020-03-19T22:08:47.000Z | 2020-06-18T18:55:00.000Z | moci/moci_system/system/windows/info.cpp | tobanteAudio/moci | a0a764e8a5270f9344ff57366fea36f72e7e3aa4 | [
"BSD-2-Clause"
] | null | null | null | #include "moci_system/system/windows/info.hpp"
#if defined(MOCI_WINDOWS)
#include <windows.h>
namespace moci
{
std::string SystemInfo::Pimpl::GetOSName() { return "Windows"; }
std::string SystemInfo::Pimpl::GetVendor()
{
// auto const procInfo = SystemInfoLinuxReadProcInfo();
// auto const vendorID = procIn... | 23.42623 | 70 | 0.649405 | tobanteAudio |