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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e678131155f7b22525a6341caec35ed9dd8edc9 | 2,310 | cpp | C++ | Svc/TlmChan/test/perf/TelemChanImplTester.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 9,182 | 2017-07-06T15:51:35.000Z | 2022-03-30T11:20:33.000Z | Svc/TlmChan/test/perf/TelemChanImplTester.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 719 | 2017-07-14T17:56:01.000Z | 2022-03-31T02:41:35.000Z | Svc/TlmChan/test/perf/TelemChanImplTester.cpp | AlperenCetin0/fprime | 7e20febd34019c730da1358567e7a512592de4d8 | [
"Apache-2.0"
] | 1,216 | 2017-07-12T15:41:08.000Z | 2022-03-31T21:44:37.000Z | /*
* PrmDbImplTester.cpp
*
* Created on: Mar 18, 2015
* Author: tcanham
*/
#include <Svc/TlmChan/test/ut/TelemChanImplTester.hpp>
#include <Fw/Com/FwComBuffer.hpp>
#include <Fw/Com/FwComPacket.hpp>
#include <Os/IntervalTimer.hpp>
#include <cstdio>
namespace Svc {
TelemStoreComponentBaseFriend::Telem... | 28.170732 | 156 | 0.628571 | AlperenCetin0 |
2e687517f1bae373b295ae672fba6fb05fa50aeb | 398 | hpp | C++ | include/lol/def/LcdsSummoner.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LcdsSummoner.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LcdsSummoner.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
namespace lol {
struct LcdsSummoner {
uint64_t sumId;
std::string name;
};
inline void to_json(json& j, const LcdsSummoner& v) {
j["sumId"] = v.sumId;
j["name"] = v.name;
}
inline void from_json(const json& j, LcdsSummoner& v) {
v.sumId = j.at("... | 24.875 | 57 | 0.595477 | Maufeat |
2e6b27a4fe30376e21dae59740f0e78f44cb209e | 540 | cpp | C++ | src/osd/modules/render/bgfx/clear.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | emulator/src/osd/modules/render/bgfx/clear.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/osd/modules/render/bgfx/clear.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
// clear.cpp - View clear info for a BGFX chain entry
//
//============================================================
#include "clear.h"
clear_state::clear_state(uint64_t flags, uint32_t color,... | 23.478261 | 86 | 0.553704 | Robbbert |
2e6c9d912756aa7d03e6668fd249eb38a70d9156 | 2,006 | cc | C++ | cpp/src/arrow/python/ipc.cc | timkpaine/arrow | a96297e65e17e728e4321cdecc7ace146e1363fb | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 9,734 | 2016-02-17T13:22:12.000Z | 2022-03-31T09:35:00.000Z | cpp/src/arrow/python/ipc.cc | timkpaine/arrow | a96297e65e17e728e4321cdecc7ace146e1363fb | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 11,470 | 2016-02-19T15:30:28.000Z | 2022-03-31T23:27:21.000Z | cpp/src/arrow/python/ipc.cc | XpressAI/arrow | eafd885e06f6bbc1eb169ed64016f804c1810bec | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 2,637 | 2016-02-17T10:56:29.000Z | 2022-03-31T08:20:13.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 29.5 | 86 | 0.728814 | timkpaine |
2e6dfda112f1d2c91261561e0c813d3e05d8dfb3 | 52 | hpp | C++ | src/boost_fusion_include_iterator_facade.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_include_iterator_facade.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_include_iterator_facade.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/include/iterator_facade.hpp>
| 26 | 51 | 0.826923 | miathedev |
2e6e177ecabb8032e0cbfe6ca574ed9bc19f6566 | 421 | cpp | C++ | archive/codevs.1010.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | archive/codevs.1010.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | archive/codevs.1010.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
using namespace std;
long long dx[8]={+2,+2,-2,-2,+1,+1,-1,-1};
long long dy[8]={+1,-1,+1,-1,+2,-2,+2,-2};
long long f[20][20],n,m,x,y;
int main(){
scanf("%d%d%d%d",&n,&m,&x,&y);
for(int i=x;i<=n;i++){
for(int j=y;j<=m;j++){
for(int k=0;k<8;k++){
long lon... | 20.047619 | 42 | 0.384798 | woshiluo |
2e730121679a0e9825893bb04949e16672d017f5 | 1,324 | cpp | C++ | src/SensorPaths.cpp | serve-bh-bmc/dbus-sensors | f69fbf998745bf006748c3b6ba6558443b560d21 | [
"Apache-2.0"
] | 15 | 2019-02-26T03:44:55.000Z | 2021-11-04T23:58:51.000Z | src/SensorPaths.cpp | serve-bh-bmc/dbus-sensors | f69fbf998745bf006748c3b6ba6558443b560d21 | [
"Apache-2.0"
] | 17 | 2019-01-23T19:47:44.000Z | 2022-03-31T23:03:43.000Z | src/SensorPaths.cpp | serve-bh-bmc/dbus-sensors | f69fbf998745bf006748c3b6ba6558443b560d21 | [
"Apache-2.0"
] | 21 | 2019-08-07T03:32:20.000Z | 2022-01-27T09:40:22.000Z | #include <SensorPaths.hpp>
#include <cstring>
#include <regex>
#include <string>
namespace sensor_paths
{
// This is an allowlist of the units a sensor can measure. Should be in sync
// with
// phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Sensor/Value.interface.yaml#L35
std::string getPathForUnits(const... | 21.704918 | 91 | 0.570242 | serve-bh-bmc |
2e731c8dbab974f00b7d31b4d795a1fdf380ee35 | 2,480 | hpp | C++ | VideoParsers/VideoParsers/MP4/Box/HandlerReferenceBox.hpp | suxinde2009/VideoParsers | f5456a234984efa17e33dc6dbb397e6e2f32ebe0 | [
"MIT"
] | null | null | null | VideoParsers/VideoParsers/MP4/Box/HandlerReferenceBox.hpp | suxinde2009/VideoParsers | f5456a234984efa17e33dc6dbb397e6e2f32ebe0 | [
"MIT"
] | null | null | null | VideoParsers/VideoParsers/MP4/Box/HandlerReferenceBox.hpp | suxinde2009/VideoParsers | f5456a234984efa17e33dc6dbb397e6e2f32ebe0 | [
"MIT"
] | null | null | null | /**
==============================================================================
MIT License
Copyright (c) 2011-Present __承_影__
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 r... | 25.306122 | 79 | 0.656855 | suxinde2009 |
2e73b93677774b452ec9617a1e5c2ba15ef644b1 | 24,080 | cpp | C++ | admin/wmi/wbem/winmgmt/coredll/olesrvr.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/wmi/wbem/winmgmt/coredll/olesrvr.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/wmi/wbem/winmgmt/coredll/olesrvr.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (C) 1996-2001 Microsoft Corporation
Module Name:
OLESRVR.CPP
Abstract:
"Main" file for wbemcore.dll: implements all DLL entry points.
Classes defined and implemeted:
CWbemLocator
History:
raymcc 16-Jul-96 Created.
raymcc 05-May-9... | 28.296122 | 200 | 0.549834 | npocmaka |
2e7413220b0009c6df42a9faafc50ddcc1cfd62b | 18,049 | cpp | C++ | silkworm/db/chaindb.cpp | gcolvin/silkworm | 11cb3ea2aa215185eb96a460f87c67f83bdc6620 | [
"Apache-2.0"
] | null | null | null | silkworm/db/chaindb.cpp | gcolvin/silkworm | 11cb3ea2aa215185eb96a460f87c67f83bdc6620 | [
"Apache-2.0"
] | null | null | null | silkworm/db/chaindb.cpp | gcolvin/silkworm | 11cb3ea2aa215185eb96a460f87c67f83bdc6620 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 The Silkworm Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 32.230357 | 115 | 0.653499 | gcolvin |
2e745caf97f63b1786f8767cea664aa369fc178b | 1,871 | hpp | C++ | libs/core/execution/include/hpx/execution/traits/detail/simd/vector_pack_load_store.hpp | Andrea-MariaDB-2/hpx | e230dddce4a8783817f38e07f5a77e624f64f826 | [
"BSL-1.0"
] | 1,822 | 2015-01-03T11:22:37.000Z | 2022-03-31T14:49:59.000Z | libs/core/execution/include/hpx/execution/traits/detail/simd/vector_pack_load_store.hpp | Andrea-MariaDB-2/hpx | e230dddce4a8783817f38e07f5a77e624f64f826 | [
"BSL-1.0"
] | 3,288 | 2015-01-05T17:00:23.000Z | 2022-03-31T18:49:41.000Z | libs/core/execution/include/hpx/execution/traits/detail/simd/vector_pack_load_store.hpp | Andrea-MariaDB-2/hpx | e230dddce4a8783817f38e07f5a77e624f64f826 | [
"BSL-1.0"
] | 431 | 2015-01-07T06:22:14.000Z | 2022-03-31T14:50:04.000Z | // Copyright (c) 2021 Srinivas Yadav
// Copyright (c) 2016-2017 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <hpx/config.hpp>
#i... | 30.672131 | 80 | 0.525387 | Andrea-MariaDB-2 |
2e785579f8d9d1af563bbe8c74a7144bb21d7a33 | 2,136 | hpp | C++ | xs/src/boost/range/detail/iterator.hpp | born2b/Slic3r | 589a0b3ac1a50f84de694b89cc10abcac45c0ae6 | [
"CC-BY-3.0"
] | 460 | 2016-01-13T12:49:34.000Z | 2022-02-20T04:10:40.000Z | xs/src/boost/range/detail/iterator.hpp | born2b/Slic3r | 589a0b3ac1a50f84de694b89cc10abcac45c0ae6 | [
"CC-BY-3.0"
] | 197 | 2017-07-06T16:53:59.000Z | 2019-05-31T17:57:51.000Z | xs/src/boost/range/detail/iterator.hpp | born2b/Slic3r | 589a0b3ac1a50f84de694b89cc10abcac45c0ae6 | [
"CC-BY-3.0"
] | 148 | 2016-01-17T03:16:43.000Z | 2022-03-17T12:20:36.000Z | // Boost.Range library
//
// Copyright Thorsten Ottosen 2003-2004. Use, modification and
// distribution is subject to 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)
//
// For more information, see http://www.boost.org/li... | 27.037975 | 106 | 0.519195 | born2b |
2e7b3571188db7f172cd05e9d084156af98dc8f7 | 7,768 | hpp | C++ | lib/random.hpp | jplevyak/pyc | 9f4bc49be78ba29427841460945ce63826fcd857 | [
"BSD-3-Clause"
] | 3 | 2019-08-21T22:01:35.000Z | 2021-07-25T00:21:28.000Z | lib/random.hpp | jplevyak/pyc | 9f4bc49be78ba29427841460945ce63826fcd857 | [
"BSD-3-Clause"
] | null | null | null | lib/random.hpp | jplevyak/pyc | 9f4bc49be78ba29427841460945ce63826fcd857 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __RANDOM_HPP
#define __RANDOM_HPP
#include "builtin.hpp"
#include "math.hpp"
#include "time.hpp"
using namespace __shedskin__;
namespace __random__ {
class Random;
class WichmannHill;
extern class_ *cl_Random;
class Random : public pyobj {
/**
Random number generator base class used by bound module function... | 30.582677 | 157 | 0.647013 | jplevyak |
2e848f245b5f81110c8b662c0796f425a6e459c0 | 13,740 | cpp | C++ | src/renderer/displayer/raster/raster.cpp | lPrimemaster/Liquid | 72c11bf96cccb3f93725f46f0e0756a1b732163c | [
"MIT"
] | null | null | null | src/renderer/displayer/raster/raster.cpp | lPrimemaster/Liquid | 72c11bf96cccb3f93725f46f0e0756a1b732163c | [
"MIT"
] | null | null | null | src/renderer/displayer/raster/raster.cpp | lPrimemaster/Liquid | 72c11bf96cccb3f93725f46f0e0756a1b732163c | [
"MIT"
] | null | null | null | #include "raster.h"
#include "../../raycaster/geometry.h"
#include "../overlay.h"
#include "../../../utils/shaderloader.h"
#include "../../raycaster/hittable/model.h"
#include <vector>
#include <tuple>
#include <unordered_map>
internal Vector3 rasterCamFront;
internal Vector3 rasterCamPos;
internal Vector3 rasterCamUp... | 32.40566 | 108 | 0.586681 | lPrimemaster |
2e872c91eabd0911e4d5b6946e678ef4b55d4e8d | 10,809 | cpp | C++ | G/GeographicLibWrapper/src/GeographicLibWrapper.cpp | sharanry/Yggdrasil | d89cb4ffdc8e96ad39b6242b3574c59561c1b546 | [
"MIT"
] | 195 | 2018-09-14T22:41:36.000Z | 2022-03-16T03:35:17.000Z | G/GeographicLibWrapper/src/GeographicLibWrapper.cpp | sharanry/Yggdrasil | d89cb4ffdc8e96ad39b6242b3574c59561c1b546 | [
"MIT"
] | 2,176 | 2018-12-20T07:05:43.000Z | 2022-03-31T21:39:20.000Z | G/GeographicLibWrapper/src/GeographicLibWrapper.cpp | sharanry/Yggdrasil | d89cb4ffdc8e96ad39b6242b3574c59561c1b546 | [
"MIT"
] | 455 | 2018-09-27T21:28:33.000Z | 2022-03-23T06:27:44.000Z | #include "jlcxx/jlcxx.hpp"
#include <GeographicLib/Geocentric.hpp>
#include <GeographicLib/Geoid.hpp>
#include <GeographicLib/GravityCircle.hpp>
#include <GeographicLib/GravityModel.hpp>
#include <GeographicLib/MagneticCircle.hpp>
#include <GeographicLib/MagneticModel.hpp>
#include <GeographicLib/Math.hpp>
#include <G... | 50.746479 | 80 | 0.626515 | sharanry |
2e87a05e30cad53a553570694c70b6ca7cca34ec | 4,745 | cpp | C++ | Island Simulation/src/assimp_model.cpp | GairePravesh/Graphics | 638cc40f7d87e3c118dbe28b539eff5c7d319b1f | [
"MIT"
] | null | null | null | Island Simulation/src/assimp_model.cpp | GairePravesh/Graphics | 638cc40f7d87e3c118dbe28b539eff5c7d319b1f | [
"MIT"
] | 1 | 2019-12-29T17:06:34.000Z | 2019-12-29T17:06:34.000Z | Island Simulation/src/assimp_model.cpp | GairePravesh/Graphics | 638cc40f7d87e3c118dbe28b539eff5c7d319b1f | [
"MIT"
] | 2 | 2019-10-05T18:11:45.000Z | 2019-10-27T07:40:12.000Z | #include "assimp_model.h"
CVertexBufferObject CAssimpModel::vboModelData;
UINT CAssimpModel::uiVAO;
vector<CTexture> CAssimpModel::tTextures;
/*-----------------------------------------------
Name: GetDirectoryPath
Params: sFilePath - guess ^^
Result: Returns directory name only from filepath.
/*------------------... | 24.209184 | 138 | 0.645522 | GairePravesh |
2e89af6e23e822c321ff6dde00197c26eb6568a0 | 476 | cpp | C++ | TC4/application/torpedo.cpp | rhuancaetano/openGL | 796845b31f0d0b84ac28aabc1c9bf5365648831e | [
"MIT"
] | null | null | null | TC4/application/torpedo.cpp | rhuancaetano/openGL | 796845b31f0d0b84ac28aabc1c9bf5365648831e | [
"MIT"
] | null | null | null | TC4/application/torpedo.cpp | rhuancaetano/openGL | 796845b31f0d0b84ac28aabc1c9bf5365648831e | [
"MIT"
] | null | null | null | #include <GL/glut.h>
#include "torpedo.h"
void desenhaTorpedo(double radius){
glColor3f( 0.0, 0.0, 0.35);
glBegin(GL_QUADS);
glVertex2f( -radius*0.1, radius*0.3);
glVertex2f( -radius*0.1, -radius*0.3);
glVertex2f( radius*0.1, -radius*0.3);
glVertex2f( radius*0.1, radius*0.3);
glEnd();
}
void Torpedo::drawTo... | 25.052632 | 40 | 0.663866 | rhuancaetano |
2e8a12096e876a21e1bff433bf4669d7fa9ff9c4 | 1,265 | cc | C++ | FlavoEngine/src/entityx/Entity.cc | Thirrash/FlavoEngine | fc3e867dc726d1a37ddd81bb6a1691833014703a | [
"MIT"
] | null | null | null | FlavoEngine/src/entityx/Entity.cc | Thirrash/FlavoEngine | fc3e867dc726d1a37ddd81bb6a1691833014703a | [
"MIT"
] | null | null | null | FlavoEngine/src/entityx/Entity.cc | Thirrash/FlavoEngine | fc3e867dc726d1a37ddd81bb6a1691833014703a | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2012 Alec Thomas <alec@swapoff.org>
* All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution.
*
* Author: Alec Thomas <alec@swapoff.org>
*/
#include <algorithm>
#include "entityx/Entity.h"
namespace ... | 21.810345 | 91 | 0.72253 | Thirrash |
2e8ebf02c8d7a693bbe3571ba7d8934993fd90bc | 2,174 | cc | C++ | components/download/content/internal/context_menu_download.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | components/download/content/internal/context_menu_download.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | components/download/content/internal/context_menu_download.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 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 "components/download/content/public/context_menu_download.h"
#include "components/download/public/common/download_url_parameters.h"
#include "co... | 43.48 | 80 | 0.74885 | zealoussnow |
2e97e6284fa93032a648662d58452b139ca0663d | 2,090 | cpp | C++ | code/ip/fc_separation/full_coverage_gtest.cpp | d-krupke/turncost | 2bbe1f1b31eddca5c6e686988e715be7d76c37a3 | [
"MIT"
] | null | null | null | code/ip/fc_separation/full_coverage_gtest.cpp | d-krupke/turncost | 2bbe1f1b31eddca5c6e686988e715be7d76c37a3 | [
"MIT"
] | null | null | null | code/ip/fc_separation/full_coverage_gtest.cpp | d-krupke/turncost | 2bbe1f1b31eddca5c6e686988e715be7d76c37a3 | [
"MIT"
] | null | null | null | //
// Created by Dominik Krupke, http://krupke.cc on 9/14/17.
//
#include <gtest/gtest.h>
#include "../../problem_instance/grid_graph.h"
#include "../general_cc_solver/ip_solver.h"
#include "../../apx/approximation.h"
#include "../../problem_instance/save_and_load.h"
#include "../integer_programming.h"
TEST(FcIp, Bas... | 36.034483 | 98 | 0.655981 | d-krupke |
2e9b2a25a5037805bf27928d511bd9136237cf6c | 1,104 | cpp | C++ | src/bubblesort.cpp | jtanisha-ee/data_s | 864bdcbaac861e50d3262b0f651e809962fba2f6 | [
"MIT"
] | null | null | null | src/bubblesort.cpp | jtanisha-ee/data_s | 864bdcbaac861e50d3262b0f651e809962fba2f6 | [
"MIT"
] | null | null | null | src/bubblesort.cpp | jtanisha-ee/data_s | 864bdcbaac861e50d3262b0f651e809962fba2f6 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#include <array>
/*
In the first pass, once the largest element is reached,it keeps on being swapped
until it gets to the last position of the sequence.
In the second pass, once the second largest element is reached, it keeps on being
swapped until it gets to the second-to-las... | 20.830189 | 82 | 0.655797 | jtanisha-ee |
2e9b63c03a4058027d44cbc03d6036f140b0986f | 7,616 | cpp | C++ | cpp/mlp_cpu/mlp.cpp | julitopower/LearnMachineLearning | 47526dd1fb52293c8199cc11207978144513bf5c | [
"BSD-2-Clause"
] | null | null | null | cpp/mlp_cpu/mlp.cpp | julitopower/LearnMachineLearning | 47526dd1fb52293c8199cc11207978144513bf5c | [
"BSD-2-Clause"
] | null | null | null | cpp/mlp_cpu/mlp.cpp | julitopower/LearnMachineLearning | 47526dd1fb52293c8199cc11207978144513bf5c | [
"BSD-2-Clause"
] | 1 | 2020-07-19T11:31:10.000Z | 2020-07-19T11:31:10.000Z | #include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <string>
#include <chrono>
#include <thread>
#include "mlp.hpp"
namespace {
namespace mx = mxnet::cpp;
namespace ch = std::chrono;
// The names of the model and params files are
// fixed
const std::string MODEL_FILENAME {"mode... | 31.60166 | 96 | 0.637999 | julitopower |
2e9c8600bcf010fcc6cc796767a48da741634605 | 989 | cpp | C++ | ch04/u1339.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | ch04/u1339.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | ch04/u1339.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <string.h>
using namespace std;
int main1339() {
#ifdef LOCAL
freopen("1339.in", "r", stdin);
#endif // LOCAL
char a[110], b[110]; // record the two strings
int ca[26] = {0};
int cb[26] = {0}; // count of the characters in t... | 22.477273 | 64 | 0.443883 | brucegua |
2e9f261035ffb5c2f33e15ee01ab9e4c2633f055 | 500 | cc | C++ | src/developer/debug/zxdb/symbols/module_symbols.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | src/developer/debug/zxdb/symbols/module_symbols.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | src/developer/debug/zxdb/symbols/module_symbols.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 73 | 2019-03-06T18:55:23.000Z | 2022-03-26T12:04:51.000Z | // Copyright 2018 The Fuchsia 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/developer/debug/zxdb/symbols/module_symbols.h"
namespace zxdb {
ModuleSymbols::ModuleSymbols() : weak_factory_(this) {}
ModuleSymbols::~Mo... | 26.315789 | 94 | 0.748 | allansrc |
2ea740c58f2e94ecc087bfb77d6d2c9bdb5c5d9e | 6,287 | cpp | C++ | SerialPrograms/Source/PokemonSwSh/Options/EncounterFilter/PokemonSwSh_EncounterFilterOverride.cpp | pifopi/Arduino-Source | e926d9f9154a27a33d976240ae956c9460e64cf9 | [
"MIT"
] | 9 | 2021-03-06T20:37:22.000Z | 2022-03-09T02:34:47.000Z | SerialPrograms/Source/PokemonSwSh/Options/EncounterFilter/PokemonSwSh_EncounterFilterOverride.cpp | pifopi/Arduino-Source | e926d9f9154a27a33d976240ae956c9460e64cf9 | [
"MIT"
] | 44 | 2021-05-31T21:33:14.000Z | 2022-02-25T17:40:50.000Z | SerialPrograms/Source/PokemonSwSh/Options/EncounterFilter/PokemonSwSh_EncounterFilterOverride.cpp | pifopi/Arduino-Source | e926d9f9154a27a33d976240ae956c9460e64cf9 | [
"MIT"
] | 16 | 2021-03-21T16:00:21.000Z | 2022-03-26T08:02:11.000Z | /* Encounter Filter
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include <QtGlobal>
#include "Common/Cpp/Exception.h"
#include "Common/Qt/QtJsonTools.h"
#include "Common/Qt/NoWheelComboBox.h"
#include "Pokemon/Resources/Pokemon_PokeballNames.h"
#include "Pokemon/Resources/Pokemo... | 34.168478 | 99 | 0.627803 | pifopi |
2ea765d3f49e91c0220d188cdf92d6192629e78c | 9,293 | cpp | C++ | Source/System/Math/Algebra/Vector2.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | 2 | 2020-01-09T07:48:24.000Z | 2020-01-09T07:48:26.000Z | Source/System/Math/Algebra/Vector2.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | null | null | null | Source/System/Math/Algebra/Vector2.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | null | null | null |
#include "Vector2.hpp"
#include "..//Utility/Utility.hpp"
#include <ostream>
#include "Matrix22.hpp"
#include "Vector3.hpp"
#include "Vector4.hpp"
#include "../Utility/VectorDef.hpp"
namespace Engine5
{
Vector2::Vector2(Real x, Real y)
: x(x), y(y)
{
}
Vector2::Vector2(Real arr[2])
: ... | 21.216895 | 127 | 0.512213 | arian153 |
2eabd19caedf684dddacc7e02a50132630e3b801 | 828 | cpp | C++ | daily_challenge/February_LeetCoding_Challenge_2021/longestWordInDictionaryThroughDeleting.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | 1 | 2021-01-27T16:37:36.000Z | 2021-01-27T16:37:36.000Z | daily_challenge/February_LeetCoding_Challenge_2021/longestWordInDictionaryThroughDeleting.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | daily_challenge/February_LeetCoding_Challenge_2021/longestWordInDictionaryThroughDeleting.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool compare(string &a, string &b) {
if (a.size() == b.size())
return a < b;
return a.size() > b.size();
}
class Solution {
public:
bool find(string &a, string &b, int i, int j) {
// if we have found the string
if (i == a.size())
return true;
/... | 21.789474 | 64 | 0.539855 | archit-1997 |
2eaf65447a7e7a2f0cf95263fbca227bef909f12 | 1,563 | cpp | C++ | Project/Source/Panels/PanelAudioMixer.cpp | TBD-org/TBD-Engine | 8b45d5a2a92e26bd0ec034047b8188e871fab0f9 | [
"MIT"
] | 7 | 2021-04-26T21:32:12.000Z | 2022-02-14T13:48:53.000Z | Project/Source/Panels/PanelAudioMixer.cpp | TBD-org/RealBugEngine | 0131fde0abc2d86137500acd6f63ed8f0fc2835f | [
"MIT"
] | 66 | 2021-04-24T10:08:07.000Z | 2021-10-05T16:52:56.000Z | Project/Source/Panels/PanelAudioMixer.cpp | TBD-org/TBD-Engine | 8b45d5a2a92e26bd0ec034047b8188e871fab0f9 | [
"MIT"
] | 1 | 2021-07-13T21:26:13.000Z | 2021-07-13T21:26:13.000Z | #include "PanelAudioMixer.h"
#include "Application.h"
#include "Modules/ModuleEditor.h"
#include "Modules/ModuleScene.h"
#include "Modules/ModuleAudio.h"
#include "Utils/Pool.h"
#include "Scene.h"
#include "imgui.h"
#include "IconsForkAwesome.h"
#include <string>
#include "Utils/Logging.h"
#include "Utils/Leaks.h"
... | 31.26 | 85 | 0.715291 | TBD-org |
2eb0fd271ab45086b7e6849c69a1408d86b223c0 | 14,728 | cc | C++ | src/modular/lib/modular_config/modular_config_xdr_unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | src/modular/lib/modular_config/modular_config_xdr_unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 1 | 2022-03-01T01:12:04.000Z | 2022-03-01T01:17:26.000Z | src/modular/lib/modular_config/modular_config_xdr_unittest.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia 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/modular/lib/modular_config/modular_config_xdr.h"
#include <fuchsia/modular/internal/cpp/fidl.h>
#include <fuchsia/modular/session/cpp/fidl.h... | 41.60452 | 99 | 0.751494 | allansrc |
2eb35dba0a0e6768130e3de707821abe5197840a | 2,305 | cpp | C++ | interleaving-string/main.cpp | rickytan/LeetCode | 7df9a47928552babaf5d2abf1d153bd92d44be09 | [
"MIT"
] | 1 | 2015-04-04T18:32:31.000Z | 2015-04-04T18:32:31.000Z | interleaving-string/main.cpp | rickytan/LeetCode | 7df9a47928552babaf5d2abf1d153bd92d44be09 | [
"MIT"
] | null | null | null | interleaving-string/main.cpp | rickytan/LeetCode | 7df9a47928552babaf5d2abf1d153bd92d44be09 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <map>
#include <stack>
#include <vector>
using namespace std;
class Solution {
public:
bool isInterleave(string s1, string s2, string s3) {
if(s3.length() != s1.length() + s2.length())
return false;
vector<vector<bool> > table(s1.length()... | 32.464789 | 439 | 0.465944 | rickytan |
2eb515a61c830996042031068e594e344273b81c | 22,273 | cc | C++ | pdb/src/storageManager/headers/PDBStorageManagerFrontendTemplate.cc | SeraphL/plinycompute | 7788bc2b01d83f4ff579c13441d0ba90734b54a2 | [
"Apache-2.0"
] | 3 | 2019-05-04T05:17:30.000Z | 2020-02-21T05:01:59.000Z | pdb/src/storageManager/headers/PDBStorageManagerFrontendTemplate.cc | dcbdan/plinycompute | a6f1c8ac8f75c09615f08752c82179f33cfc6d89 | [
"Apache-2.0"
] | 3 | 2020-02-20T19:50:46.000Z | 2020-06-25T14:31:51.000Z | pdb/src/storageManager/headers/PDBStorageManagerFrontendTemplate.cc | dcbdan/plinycompute | a6f1c8ac8f75c09615f08752c82179f33cfc6d89 | [
"Apache-2.0"
] | 5 | 2019-02-19T23:17:24.000Z | 2020-08-03T01:08:04.000Z | //
// Created by dimitrije on 2/17/19.
//
#ifndef PDB_PDBSTORAGEMANAGERFRONTENDTEMPLATE_H
#define PDB_PDBSTORAGEMANAGERFRONTENDTEMPLATE_H
#include <PDBStorageManagerFrontend.h>
#include <HeapRequestHandler.h>
#include <StoDispatchData.h>
#include <PDBBufferManagerInterface.h>
#include <PDBBufferManagerFrontEnd.h>
#in... | 30.510959 | 178 | 0.690387 | SeraphL |
e481bbb449f85fb3a4e5d64d1e86a9035bc0c598 | 537 | cpp | C++ | third_party/boost/libs/gil/toolbox/test/is_similar.cpp | Jackarain/tinyrpc | 07060e3466776aa992df8574ded6c1616a1a31af | [
"BSL-1.0"
] | 32 | 2019-02-27T06:57:07.000Z | 2021-08-29T10:56:19.000Z | third_party/boost/libs/gil/toolbox/test/is_similar.cpp | avplayer/cxxrpc | 7049b4079fac78b3828e68f787d04d699ce52f6d | [
"BSL-1.0"
] | 1 | 2019-04-04T18:00:00.000Z | 2019-04-04T18:00:00.000Z | third_party/boost/libs/gil/toolbox/test/is_similar.cpp | avplayer/cxxrpc | 7049b4079fac78b3828e68f787d04d699ce52f6d | [
"BSL-1.0"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z | //
// Copyright 2013 Christian Henning
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#include <boost/gil.hpp>
#include <boost/gil/extension/toolbox/metafunctions/is_similar.hpp>
#include <boost/te... | 22.375 | 68 | 0.735568 | Jackarain |
e487f3b200f80540bf1d3f7c13fe1cea9a296a27 | 25,748 | cpp | C++ | Libraries/RobsJuceModules/rosic/legacy/HighOrderEqualizer.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Libraries/RobsJuceModules/rosic/legacy/HighOrderEqualizer.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Libraries/RobsJuceModules/rosic/legacy/HighOrderEqualizer.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | #include "HighOrderEqualizer.h"
//----------------------------------------------------------------------------
// construction/destruction:
HighOrderEqualizer::HighOrderEqualizer()
{
// init member variables:
sampleRate = 44100.0;
stereoMode = STEREO_LINKED;
bypassAll = false;
int s, c, k; // indices for eq-st... | 27.131718 | 82 | 0.596901 | RobinSchmidt |
e48826a61286c965d7d880025652f2a2bf5c9be2 | 4,415 | cxx | C++ | com/svcdlls/trksvcs/utest/tbackup.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/svcdlls/trksvcs/utest/tbackup.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/svcdlls/trksvcs/utest/tbackup.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1996.
//
// File: tbackup.cxx
//
// Contents: testing backup read/write
//
// History: 1-Aug-97 weiruc Created.
//
//-----------------------------... | 28.856209 | 81 | 0.443262 | npocmaka |
e48b6ead79613720535e7e42d9bb3d47e592dfee | 1,584 | cpp | C++ | net/http/headers/HttpAcceptCharSet.cpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 27 | 2019-04-27T00:51:22.000Z | 2022-03-30T04:05:44.000Z | net/http/headers/HttpAcceptCharSet.cpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 9 | 2020-05-03T12:17:50.000Z | 2021-10-15T02:18:47.000Z | net/http/headers/HttpAcceptCharSet.cpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 1 | 2019-04-16T01:45:36.000Z | 2019-04-16T01:45:36.000Z | #include "HttpAcceptCharSet.hpp"
#include "HttpHeaderContentParser.hpp"
#include "Math.hpp"
namespace obotcha {
_HttpAcceptCharSetItem::_HttpAcceptCharSetItem(String s,float w) {
weight = w;
type = s;
}
_HttpAcceptCharSet::_HttpAcceptCharSet() {
charsets = createArrayList<HttpAcceptCharSetItem>();
}
_Ht... | 27.310345 | 89 | 0.642677 | wangsun1983 |
e490a1deae2b20f9c9a4f2a9cb1cff04bb35e725 | 2,840 | cpp | C++ | lang_sim_main.cpp | crabster15/LangEvolve | 76991783ba6ab24b28a62aefdc3d42fc09299cc5 | [
"MIT"
] | null | null | null | lang_sim_main.cpp | crabster15/LangEvolve | 76991783ba6ab24b28a62aefdc3d42fc09299cc5 | [
"MIT"
] | null | null | null | lang_sim_main.cpp | crabster15/LangEvolve | 76991783ba6ab24b28a62aefdc3d42fc09299cc5 | [
"MIT"
] | null | null | null | #include "Base_word.h"
#include "wordMod.hpp"
#include "xmlhandler.h"
#include <iostream>
#include "Constants.h"
#include <vector>
#include <memory>
std::vector<std::shared_ptr<Word>> RunGeneration(std::vector<std::shared_ptr<Word>> Wordlist, std::string characterSet, std::string vowelSet, MeaningHandle* mhandle){
st... | 41.764706 | 179 | 0.721127 | crabster15 |
e498539f226f24e2ee571a1e4ceb7ab0f620143a | 2,944 | cpp | C++ | src/monitors/ntff.cpp | johnaparker/fields | 7b8daf42dcc140448b2fa9e3ba7122bd69bbcb01 | [
"MIT"
] | null | null | null | src/monitors/ntff.cpp | johnaparker/fields | 7b8daf42dcc140448b2fa9e3ba7122bd69bbcb01 | [
"MIT"
] | null | null | null | src/monitors/ntff.cpp | johnaparker/fields | 7b8daf42dcc140448b2fa9e3ba7122bd69bbcb01 | [
"MIT"
] | 2 | 2020-09-09T18:13:24.000Z | 2021-02-16T08:40:02.000Z | #include "monitors/ntff.h"
namespace qbox {
ntff_point::ntff_point(const ComplexArray& S, const h5cpp::h5file &file, const h5cpp::h5group &group ): S(S) {
file_name = file.get_name();
group_path = group.get_path();
}
ntff_point::ntff_point(const ComplexArray& S, const std::string &file_na... | 39.783784 | 169 | 0.572011 | johnaparker |
e499a4ee0d6914d7563b9ba5ede631c8412527bf | 881 | cpp | C++ | src/terminal/gui/Rectangle.cpp | KeinR/Etermal | 9bf66f6be6ae8585b763dd902701e72013a5abcc | [
"MIT"
] | null | null | null | src/terminal/gui/Rectangle.cpp | KeinR/Etermal | 9bf66f6be6ae8585b763dd902701e72013a5abcc | [
"MIT"
] | null | null | null | src/terminal/gui/Rectangle.cpp | KeinR/Etermal | 9bf66f6be6ae8585b763dd902701e72013a5abcc | [
"MIT"
] | null | null | null | #include "Rectangle.h"
#include "../Resources.h"
etm::Rectangle::Rectangle(Resources *res): res(res) {
}
void etm::Rectangle::setColor(const Color &color) {
this->color = color;
}
void etm::Rectangle::setX(float x) {
model.x = x;
}
void etm::Rectangle::setY(float y) {
model.y = y;
}
void etm::Rectangle:... | 18.744681 | 53 | 0.649262 | KeinR |
e49a75643fab03bbc49e892f05ba3fc99e5c0fad | 2,433 | cc | C++ | chrome/browser/extensions/extension_installer.cc | devasia1000/chromium | 919a8a666862fb866a6bb7aa7f3ae8c0442b4828 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-02-03T05:19:48.000Z | 2021-11-15T15:07:21.000Z | chrome/browser/extensions/extension_installer.cc | devasia1000/chromium | 919a8a666862fb866a6bb7aa7f3ae8c0442b4828 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/extension_installer.cc | devasia1000/chromium | 919a8a666862fb866a6bb7aa7f3ae8c0442b4828 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013 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/extensions/extension_installer.h"
#include "base/bind.h"
#include "chrome/browser/extensions/extension_system.h"
#include "c... | 31.192308 | 74 | 0.750103 | devasia1000 |
e49b5a592e2cadde1a9f4149115932db038c2c73 | 4,265 | hpp | C++ | include/lol/def/LolLootPlayerLoot.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolLootPlayerLoot.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolLootPlayerLoot.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
#include "LolLootItemOwnershipStatus.hpp"
#include "LolLootRedeemableStatus.hpp"
namespace lol {
struct LolLootPlayerLoot {
std::string lootName;
std::string lootId;
std::string refId;
std::string localizedName;
std::string localizedDescription;
std::s... | 40.619048 | 85 | 0.652052 | Maufeat |
e49ba1239d6b3154853f8ef12232d790e217f69f | 16,006 | cpp | C++ | implementations/ugene/src/plugins/kraken_support/src/KrakenBuildWorkerFactory.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/plugins/kraken_support/src/KrakenBuildWorkerFactory.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/plugins/kraken_support/src/KrakenBuildWorkerFactory.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* 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
* ... | 65.868313 | 310 | 0.698863 | r-barnes |
e49e32a2edcd3104e05757da2a954d8d12b00832 | 2,181 | cpp | C++ | Raytracer/src/driver.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | Raytracer/src/driver.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | Raytracer/src/driver.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | #include <vector>
#include <string>
#include <iostream>
#include "../header/world.h"
#include "../header/camera.h"
#include "../header/WorldProgram/cameraProgram.h"
// Turn i into a string padded with 0s up to length n
std::string padInt(int i, int n) {
int numZeros = n - 1;
int copy = i / 10;
while (copy > 0) {... | 30.291667 | 99 | 0.715727 | rickyguerin |
e49f9f60bdb3636f69eff0e4436372a34ed41a15 | 1,424 | cpp | C++ | 36.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 36.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 36.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ull = uint64_t;
using ll = int64_t;
using ld = long double;
class Solution
{
public:
const int num = 9;
const int num_sub = 3;
bool isValidSudoku(vector< vector<char> >& board)
{
bitset<10> record; // Use a bitset to record whether an integer repeats
// Che... | 19.506849 | 74 | 0.496489 | Alex-Amber |
e4a0875f9ff2c13cb24aa40b14e0842a8e73b35b | 2,188 | cpp | C++ | graph_data_analytic/src/randLocalGraph.cpp | bxtx999/gm_scripts | de1e7a7d5717caf09f9b81fd627ac95ab01e1924 | [
"MIT"
] | null | null | null | graph_data_analytic/src/randLocalGraph.cpp | bxtx999/gm_scripts | de1e7a7d5717caf09f9b81fd627ac95ab01e1924 | [
"MIT"
] | null | null | null | graph_data_analytic/src/randLocalGraph.cpp | bxtx999/gm_scripts | de1e7a7d5717caf09f9b81fd627ac95ab01e1924 | [
"MIT"
] | null | null | null | #include "parseCommandLine.h"
#include "graphIO.h"
#include "utils.h"
#include "parallel.h"
using namespace benchIO;
// Generates an undirected graph with n vertices with approximately degree
// neighbors per vertex.
// Edges are distributed so they appear to come from
// a dim-dimensional space. In par... | 35.290323 | 81 | 0.531536 | bxtx999 |
e4a0adec3a081726617c249772a237b663b5ac4b | 568 | hh | C++ | src/Zynga/Framework/StorableObject/V1/Test/Mock/Broken/ValidButHasConstructorArgs.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/StorableObject/V1/Test/Mock/Broken/ValidButHasConstructorArgs.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/StorableObject/V1/Test/Mock/Broken/ValidButHasConstructorArgs.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh // strict
namespace Zynga\Framework\StorableObject\V1\Test\Mock\Broken;
use Zynga\Framework\StorableObject\V1\Interfaces\FieldsInterface;
use Zynga\Framework\StorableObject\V1\Test\Mock\Valid;
class ValidButHasConstructorArgs extends Valid {
public function __construct(string $myPrettyArg) {
parent::__c... | 25.818182 | 81 | 0.735915 | chintan-j-patel |
e4a25ae66a4dc49558b76de90781f0583983420d | 170 | cpp | C++ | tutorials/learncpp.com#1.0#1/input_and_output__i_o_/input_with_istream/source8.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | tutorials/learncpp.com#1.0#1/input_and_output__i_o_/input_with_istream/source8.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | tutorials/learncpp.com#1.0#1/input_and_output__i_o_/input_with_istream/source8.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | int main()
{
char strBuf[100];
cin.getline(strBuf, 100);
cout << strBuf << endl;
cout << cin.gcount() << " characters were read" << endl;
return 0;
} | 18.888889 | 60 | 0.558824 | officialrafsan |
e4a4bcfee6d925db8fdb261b96b3d77acaa3cb88 | 771 | hpp | C++ | libraries/chain/include/scorum/chain/database/process_user_activity.hpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | libraries/chain/include/scorum/chain/database/process_user_activity.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | libraries/chain/include/scorum/chain/database/process_user_activity.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z | #pragma once
#include <scorum/chain/tasks_base.hpp>
#include <scorum/protocol/transaction.hpp>
#include <scorum/protocol/types.hpp>
namespace scorum {
namespace chain {
namespace database_ns {
using scorum::protocol::signed_transaction;
class user_activity_context
{
public:
explicit user_activity_context(data... | 17.930233 | 96 | 0.743191 | scorum |
e4a5d342c7ead4b2906d5e38b99a3e88b00f9e95 | 8,876 | cc | C++ | media/blink/webmediaplayer_util.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | media/blink/webmediaplayer_util.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | media/blink/webmediaplayer_util.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/blink/webmediaplayer_util.h"
#include <math.h>
#include <stddef.h>
#include <string>
#include <utility>
#include "base/metrics/histogram... | 34.403101 | 82 | 0.7331 | google-ar |
e4a6bcf445420fa1c711a231504e125773cfe241 | 3,731 | cpp | C++ | examples/imagestack/imagestack.cpp | kraj/egt | 7065fd97e8bc61b0b0555bd48461ac9b2160ac7a | [
"Apache-2.0"
] | null | null | null | examples/imagestack/imagestack.cpp | kraj/egt | 7065fd97e8bc61b0b0555bd48461ac9b2160ac7a | [
"Apache-2.0"
] | null | null | null | examples/imagestack/imagestack.cpp | kraj/egt | 7065fd97e8bc61b0b0555bd48461ac9b2160ac7a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2018 Microchip Technology Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <egt/detail/imagecache.h>
#include <egt/ui>
#include <memory>
#include <string>
#include <vector>
using namespace egt;
class MainWindow : public TopWindow
{
public:
class LauncherItem :... | 25.209459 | 98 | 0.523184 | kraj |
e4aa7bc5caa16ee5b317585d134715ca1860f424 | 1,997 | cpp | C++ | data_structure/DISJOINT.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | data_structure/DISJOINT.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | data_structure/DISJOINT.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | struct DISJOINT {
//static const int maxn = MAXN;
int s[maxn];
void Init(int n){
memset(s, -1, (n+1) * sizeof(s[0]));
}
int FindRoot(int a){
return s[a] < 0 ? a : (s[a] = FindRoot(s[a]));
}
void Union(int a, int b){
UnionRoot(FindRoot(a), FindRoot(b));
}
void... | 21.706522 | 54 | 0.440661 | searchstar2017 |
e4ac414390032b70b006dead5f56634170460fae | 13,994 | hpp | C++ | Metrics/test/head/TestMetricsInitializer.hpp | guillaumetousignant/euler3D | 7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae | [
"MIT"
] | 1 | 2019-02-11T00:45:37.000Z | 2019-02-11T00:45:37.000Z | Metrics/test/head/TestMetricsInitializer.hpp | guillaumetousignant/euler3D | 7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae | [
"MIT"
] | null | null | null | Metrics/test/head/TestMetricsInitializer.hpp | guillaumetousignant/euler3D | 7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch.hpp>
//Project files
#include "Block.h"
#include "MetricsInitializer.h"
//using namespace std;
void buildConnectivity(Block *iBlock)
{
uint nbCells = 1;
uint nbCellsTot = 6;
uint nbFacesTot = 5;
uint nbNodesTot = 5;
iBlock->n_real_cells_in_block_ = ... | 28.385396 | 94 | 0.653566 | guillaumetousignant |
e4ac58e1fef53241e76504df4f18e0de6b8294fc | 3,650 | cpp | C++ | src/gui_scrollframe_glues.cpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 50 | 2015-01-15T10:00:31.000Z | 2022-02-04T20:45:25.000Z | src/gui_scrollframe_glues.cpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 88 | 2020-03-15T17:40:04.000Z | 2022-03-15T08:21:44.000Z | src/gui_scrollframe_glues.cpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 19 | 2017-03-11T04:32:01.000Z | 2022-01-12T22:47:12.000Z | #include "lxgui/gui_scrollframe.hpp"
#include "lxgui/gui_uiobject_tpl.hpp"
#include "lxgui/gui_frame.hpp"
#include "lxgui/gui_out.hpp"
#include "lxgui/gui_manager.hpp"
#include <sol/state.hpp>
/** A @{Frame} with scrollable content.
* This frame has a special child frame, the "scroll child". The scroll
... | 38.020833 | 119 | 0.704932 | cschreib |
e4ace4f777ad42177cdd89605133622ec5e91f98 | 2,003 | cc | C++ | ui/wm/core/nested_accelerator_controller.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 5 | 2019-05-24T01:25:34.000Z | 2020-04-06T05:07:01.000Z | ui/wm/core/nested_accelerator_controller.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | ui/wm/core/nested_accelerator_controller.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 5 | 2016-12-23T04:21:10.000Z | 2020-06-18T13:52:33.000Z | // Copyright 2014 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 "ui/wm/core/nested_accelerator_controller.h"
#include "base/auto_reset.h"
#include "base/bind.h"
#include "base/run_loop.h"
#include "ui/wm/core... | 34.534483 | 80 | 0.742886 | domenic |
e4b1fe8725e8463861252d0160580b68ddaf3698 | 3,071 | cpp | C++ | src/OISBState.cpp | fire-archive/oisb | 2e1a1a5f58dee986122a1aef8a98e5e610a845a4 | [
"Zlib"
] | null | null | null | src/OISBState.cpp | fire-archive/oisb | 2e1a1a5f58dee986122a1aef8a98e5e610a845a4 | [
"Zlib"
] | null | null | null | src/OISBState.cpp | fire-archive/oisb | 2e1a1a5f58dee986122a1aef8a98e5e610a845a4 | [
"Zlib"
] | null | null | null | /*
The zlib/libpng License
Copyright (c) 2009-2010 Martin Preisler
This software is provided 'as-is', without any express or implied warranty. In no event will
the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpos... | 24.96748 | 101 | 0.592966 | fire-archive |
e4b25daf69025b5c61391c1080fe95f41af759d9 | 7,098 | cpp | C++ | src/Ethereum/ABI/ParamFactory.cpp | Khaos-Labs/khaos-wallet-core | 2c06d49fddf978e0815b208dddef50ee2011c551 | [
"MIT"
] | 2 | 2020-11-16T08:06:30.000Z | 2021-06-18T03:21:44.000Z | src/Ethereum/ABI/ParamFactory.cpp | Khaos-Labs/khaos-wallet-core | 2c06d49fddf978e0815b208dddef50ee2011c551 | [
"MIT"
] | null | null | null | src/Ethereum/ABI/ParamFactory.cpp | Khaos-Labs/khaos-wallet-core | 2c06d49fddf978e0815b208dddef50ee2011c551 | [
"MIT"
] | null | null | null | // Copyright © 2017-2020 Khaos Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "ParamFactory.h"
#include "HexCoding.h"
#include ... | 39.653631 | 120 | 0.615807 | Khaos-Labs |
e4b675eaf8699a46535ae1317fdafc07483d5fb8 | 3,426 | hh | C++ | include/ignition/transport/TopicUtils.hh | amtj/ign-transport | 3b386bf46efd2fc0b847aa7fd3911b1d9d27546c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/ignition/transport/TopicUtils.hh | amtj/ign-transport | 3b386bf46efd2fc0b847aa7fd3911b1d9d27546c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/ignition/transport/TopicUtils.hh | amtj/ign-transport | 3b386bf46efd2fc0b847aa7fd3911b1d9d27546c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2014 Open Source Robotics Foundation
*
* 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... | 42.296296 | 79 | 0.665791 | amtj |
e4b93506670e4671f2ce9f66df16fe12be3a11c1 | 4,653 | inl | C++ | lib/NoesisGUI-2.2.0/Include/NsCore/Queue.inl | guillaume-haerinck/imac-tower-defense | 365a32642ea0d3ad8b2b7d63347d585c44d9f670 | [
"MIT"
] | 44 | 2019-06-06T21:33:30.000Z | 2022-03-26T06:18:23.000Z | lib/NoesisGUI-2.2.0/Include/NsCore/Queue.inl | guillaume-haerinck/imac-tower-defense | 365a32642ea0d3ad8b2b7d63347d585c44d9f670 | [
"MIT"
] | 1 | 2019-09-27T12:04:52.000Z | 2019-09-29T13:30:42.000Z | lib/NoesisGUI-2.2.0/Include/NsCore/Queue.inl | guillaume-haerinck/imac-tower-defense | 365a32642ea0d3ad8b2b7d63347d585c44d9f670 | [
"MIT"
] | 8 | 2019-07-26T16:44:26.000Z | 2020-11-24T17:56:18.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
// NoesisGUI - http://www.noesisengine.com
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////... | 34.984962 | 100 | 0.381689 | guillaume-haerinck |
e4b941a9020b7231e60ddc242dab3041593dd531 | 6,630 | cpp | C++ | Source/Parsing/ParsingAutomaton_EPDA.cpp | milizhang/Vlpp | 34a1217c1738587d0c723ed3227a79777636faf1 | [
"MS-PL"
] | 2 | 2020-04-16T15:51:41.000Z | 2021-06-05T06:38:20.000Z | Source/Parsing/ParsingAutomaton_EPDA.cpp | milizhang/Vlpp | 34a1217c1738587d0c723ed3227a79777636faf1 | [
"MS-PL"
] | null | null | null | Source/Parsing/ParsingAutomaton_EPDA.cpp | milizhang/Vlpp | 34a1217c1738587d0c723ed3227a79777636faf1 | [
"MS-PL"
] | null | null | null | #include "ParsingAutomaton.h"
#include "../Collections/Operation.h"
namespace vl
{
namespace parsing
{
using namespace collections;
using namespace definitions;
namespace analyzing
{
/***********************************************************************
CreateEpsilonPDAVisitor
***************************... | 37.247191 | 204 | 0.679638 | milizhang |
e4baccba4b6fc73c24c6a806d6f405465c6e3878 | 33,016 | cxx | C++ | drs4monitor/src/MonitorFrame.cxx | CMSROMA/DRS4_DAQ | 8ff60a58a1a254d56b2afedaf788ecf5afc67afc | [
"MIT"
] | null | null | null | drs4monitor/src/MonitorFrame.cxx | CMSROMA/DRS4_DAQ | 8ff60a58a1a254d56b2afedaf788ecf5afc67afc | [
"MIT"
] | null | null | null | drs4monitor/src/MonitorFrame.cxx | CMSROMA/DRS4_DAQ | 8ff60a58a1a254d56b2afedaf788ecf5afc67afc | [
"MIT"
] | null | null | null | /*
* MonitorFrame.cxx
*
* Created on: Apr 16, 2017
* Author: S. Lukic
*/
#include "TApplication.h"
#include <TGClient.h>
#include "TGButton.h"
#include "TGTextView.h"
#include "TGText.h"
#include "TGTextEntry.h"
#include "TGTextBuffer.h"
#include "TGComboBox.h"
#include "TGLabel.h"
#include "TGProgressBar.h... | 30.884939 | 196 | 0.634026 | CMSROMA |
e4bae3cb7fcc5f993c72157ed02a0e4b90e716e5 | 2,829 | cpp | C++ | targets/all/io/tests/pipes/Pipes.cpp | minuteos/lib | 288fe4f9221fb431e15792421e21084f29dccdce | [
"MIT"
] | null | null | null | targets/all/io/tests/pipes/Pipes.cpp | minuteos/lib | 288fe4f9221fb431e15792421e21084f29dccdce | [
"MIT"
] | null | null | null | targets/all/io/tests/pipes/Pipes.cpp | minuteos/lib | 288fe4f9221fb431e15792421e21084f29dccdce | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019 triaxis s.r.o.
* Licensed under the MIT license. See LICENSE.txt file in the repository root
* for full license information.
*
* io/tests/pipes/Pipes.cpp
*/
#include <testrunner/TestCase.h>
#include <kernel/kernel.h>
#include <io/io.h>
namespace
{
using namespace io;
using namespace ke... | 20.207143 | 78 | 0.481796 | minuteos |
e4bb426bd9fae6c5ae9cd39131dad34e8c6ead2b | 2,300 | cpp | C++ | src/qPoly.cpp | MaddTheSane/executor | 2a8baf83066ead802ae22e567af41d74a4e920ff | [
"MIT"
] | 12 | 2016-02-01T06:26:19.000Z | 2022-01-09T00:14:20.000Z | src/qPoly.cpp | MaddTheSane/executor | 2a8baf83066ead802ae22e567af41d74a4e920ff | [
"MIT"
] | 2 | 2017-07-16T02:24:15.000Z | 2018-02-14T04:15:37.000Z | src/qPoly.cpp | MaddTheSane/executor | 2a8baf83066ead802ae22e567af41d74a4e920ff | [
"MIT"
] | 4 | 2017-04-07T13:55:46.000Z | 2022-01-09T00:14:17.000Z | /* Copyright 1986, 1989, 1990 by Abacus Research and
* Development, Inc. All rights reserved.
*/
#if !defined (OMIT_RCSID_STRINGS)
char ROMlib_rcsid_qPoly[] =
"$Id: qPoly.c 63 2004-12-24 18:19:43Z ctm $";
#endif
/* Forward declarations in QuickDraw.h (DO NOT DELETE THIS LINE) */
/* HLock checked by ctm on Mo... | 26.436782 | 71 | 0.576522 | MaddTheSane |
e4bd5fc30070a2ee30344c2331d642ac1b2b571d | 7,723 | cpp | C++ | Lesson7/Activity01/Util.cpp | mkkekkonen/AdvancedCpp | f29598fed3c30d090f9c6c93bb0409135ca1c32e | [
"MIT"
] | 30 | 2019-09-02T11:55:44.000Z | 2022-03-09T14:43:27.000Z | Lesson7/Activity01/Util.cpp | animewasmistake/Advanced-CPlusPlus | b2ba3fc955b1dc0c617b0b2543fc82ad36573ff2 | [
"MIT"
] | null | null | null | Lesson7/Activity01/Util.cpp | animewasmistake/Advanced-CPlusPlus | b2ba3fc955b1dc0c617b0b2543fc82ad36573ff2 | [
"MIT"
] | 24 | 2019-08-05T07:08:08.000Z | 2022-03-08T07:48:35.000Z | #include<CommonHeader.h>
// Utility function to remove spaces and tabs from start of string and end of string..
string trim (string &str) { // remove space and tab from string.
string res("");
if ((str.find(' ') != string::npos) || (str.find('\t') != string::npos)){ // if space or tab found..
size_t ... | 34.477679 | 129 | 0.573482 | mkkekkonen |
e4bd71f54771127f3de4aae60424d5533a82ef8b | 1,460 | cpp | C++ | 07-functions/7.22-optional-rectangles-sizes/solution.cpp | trangnart/cis22a | 498a7b37d12a13efa7749849dc95d9892d1786be | [
"MIT"
] | 2 | 2020-09-04T22:06:06.000Z | 2020-09-09T04:00:25.000Z | 07-functions/7.22-optional-rectangles-sizes/solution.cpp | trangnart/cis22a | 498a7b37d12a13efa7749849dc95d9892d1786be | [
"MIT"
] | 14 | 2020-08-24T01:44:36.000Z | 2021-01-01T08:44:17.000Z | 07-functions/7.22-optional-rectangles-sizes/solution.cpp | trangnart/cis22a | 498a7b37d12a13efa7749849dc95d9892d1786be | [
"MIT"
] | 1 | 2020-09-04T22:13:13.000Z | 2020-09-04T22:13:13.000Z | #include <iostream>
#include <string>
#include <fstream>
using namespace std;
bool FirstRectangleSmaller(int, int, int, int, int, int, int, int);
void CompareRectangles(const string &);
int main()
{
const string FILENAME = "input.txt";
// cout << FirstRectangleSmaller(1,1,2,3,0,0,10,10) << endl;
Compar... | 24.333333 | 81 | 0.506849 | trangnart |
e4bf33e81a6c08724e9ee4bc7a8ee96aa8056c78 | 12,582 | hpp | C++ | include/message_logger/log/log_messages_ros.hpp | ANYbotics/message_logger | 66f9f0795f3a6395b6ee2ab7ac5f0df2ffd05f42 | [
"BSD-3-Clause"
] | 5 | 2019-12-27T02:04:55.000Z | 2022-01-11T13:29:27.000Z | include/message_logger/log/log_messages_ros.hpp | ANYbotics/message_logger | 66f9f0795f3a6395b6ee2ab7ac5f0df2ffd05f42 | [
"BSD-3-Clause"
] | 1 | 2020-10-22T16:36:03.000Z | 2020-10-23T05:53:12.000Z | include/message_logger/log/log_messages_ros.hpp | ANYbotics/message_logger | 66f9f0795f3a6395b6ee2ab7ac5f0df2ffd05f42 | [
"BSD-3-Clause"
] | 4 | 2019-12-27T02:04:57.000Z | 2020-10-22T16:19:18.000Z | /**********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Christian Gehring
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following co... | 40.456592 | 239 | 0.57924 | ANYbotics |
e4c2c8ef4dd7da05aa38ce489af1310c13e1027f | 77 | cpp | C++ | Ardulib2d/Arduboy2D.cpp | madya121/Ardulib2d | dc93424975c6a0a584b0d32d115b099bf9d0fbd1 | [
"MIT"
] | null | null | null | Ardulib2d/Arduboy2D.cpp | madya121/Ardulib2d | dc93424975c6a0a584b0d32d115b099bf9d0fbd1 | [
"MIT"
] | null | null | null | Ardulib2d/Arduboy2D.cpp | madya121/Ardulib2d | dc93424975c6a0a584b0d32d115b099bf9d0fbd1 | [
"MIT"
] | null | null | null | #include "Arduboy2D.h"
Arduboy2D::Arduboy2D() {
camera = new Camera();
}
| 11 | 24 | 0.649351 | madya121 |
e4c2d6719bb14bdc1338819e4e17506f48316526 | 1,983 | hpp | C++ | srcs/common/trackgrouptypebox.hpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | srcs/common/trackgrouptypebox.hpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | srcs/common/trackgrouptypebox.hpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | /* This file is part of Nokia HEIF library
*
* Copyright (c) 2015-2020 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
*
* Contact: heif@nokia.com
*
* This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its
* subsidiaries. All rights are r... | 35.410714 | 115 | 0.732728 | Reflectioner |
e4c2e59d9d0f2f2f0dab3bc91641611aaa7602a6 | 4,575 | cxx | C++ | Code/Filter/vtkMimxComputeNormalsFromPolydataFilter.cxx | Piyusha23/IAFEMesh | e91b34c9eaa9c8ecc4ebb5d16f4c13f330d75c9f | [
"BSD-4-Clause-UC"
] | null | null | null | Code/Filter/vtkMimxComputeNormalsFromPolydataFilter.cxx | Piyusha23/IAFEMesh | e91b34c9eaa9c8ecc4ebb5d16f4c13f330d75c9f | [
"BSD-4-Clause-UC"
] | null | null | null | Code/Filter/vtkMimxComputeNormalsFromPolydataFilter.cxx | Piyusha23/IAFEMesh | e91b34c9eaa9c8ecc4ebb5d16f4c13f330d75c9f | [
"BSD-4-Clause-UC"
] | null | null | null | /*=========================================================================
Program: MIMX Meshing Toolkit
Module: $RCSfile: vtkMimxComputeNormalsFromPolydataFilter.cxx,v $
Language: C++
Date: $Date: 2012/12/07 19:08:59 $
Version: $Revision: 1.1.1.1 $
Musculoskeletal Imaging, Modelling and Experimentatio... | 29.707792 | 86 | 0.637377 | Piyusha23 |
e4c3edb528753931a872af3e2b75920b4466f9a9 | 1,810 | hpp | C++ | acl/include/acl_cpp/aliyun/oss/model/GetObjectRequest.hpp | feixiao/C-C-_practice | ed5f953912dcb481265b2ca86707b41d8b449642 | [
"Apache-2.0"
] | 4 | 2016-10-30T13:10:26.000Z | 2021-12-31T13:32:14.000Z | acl/include/acl_cpp/aliyun/oss/model/GetObjectRequest.hpp | feixiao/C-C-_practice | ed5f953912dcb481265b2ca86707b41d8b449642 | [
"Apache-2.0"
] | null | null | null | acl/include/acl_cpp/aliyun/oss/model/GetObjectRequest.hpp | feixiao/C-C-_practice | ed5f953912dcb481265b2ca86707b41d8b449642 | [
"Apache-2.0"
] | 3 | 2019-05-31T06:13:16.000Z | 2021-12-31T13:32:15.000Z | #pragma once
#include "acl_cpp/acl_cpp_define.hpp"
#include <list>
#include "acl_cpp/stdlib/string.hpp"
namespace acl
{
class dbuf_pool;
class ResponseHeaderOverrides;
class ACL_CPP_API GetObjectRequest
{
public:
GetObjectRequest(const char* bucket, const char* key,
dbuf_pool* pool = NULL);
~GetObjectRequest();
... | 20.804598 | 68 | 0.762431 | feixiao |
e4c4b8226a759244643383bef43e7f5f911968fa | 616 | hpp | C++ | SDL2Cpp/SDL2Cpp/include/SDL2Cpp/Thread.hpp | jasonwnorris/SDL2Cpp | ece3bc247adab1b127303340d8463cb19d585d81 | [
"MIT"
] | 3 | 2015-02-04T20:35:10.000Z | 2015-10-26T16:45:27.000Z | SDL2Cpp/SDL2Cpp/include/SDL2Cpp/Thread.hpp | jasonwnorris/SDL2Cpp | ece3bc247adab1b127303340d8463cb19d585d81 | [
"MIT"
] | null | null | null | SDL2Cpp/SDL2Cpp/include/SDL2Cpp/Thread.hpp | jasonwnorris/SDL2Cpp | ece3bc247adab1b127303340d8463cb19d585d81 | [
"MIT"
] | null | null | null | // Thread.hpp
#ifndef __SDL2_THREAD_H__
#define __SDL2_THREAD_H__
// SDL Includes
#include <SDL.h>
namespace SDL2
{
class Thread
{
public:
Thread();
virtual ~Thread();
void Start(Uint32 pDelay = 0);
void Stop();
void Wait();
void StopAndWait();
void SetPriority(SDL_ThreadPriority pPriority)... | 15.02439 | 50 | 0.663961 | jasonwnorris |
e4c63b09538c9a7c7a7ca06a2f0c0177bfc2803f | 50,917 | cpp | C++ | third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinatorTest.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinatorTest.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinatorTest.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2012 Google 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... | 40.506762 | 80 | 0.752126 | metux |
e4c870af5a321951fa3ff9bc318e87486b09b59e | 365 | cpp | C++ | code/main.cpp | fawkesLi-lhh/Vagrant | 15adbf52fb55235f68b3d576c5a8433cf8ee5b41 | [
"Apache-2.0"
] | 3 | 2021-02-19T14:06:26.000Z | 2021-03-11T13:28:03.000Z | code/main.cpp | fawkesLi-lhh/Vagrant | 15adbf52fb55235f68b3d576c5a8433cf8ee5b41 | [
"Apache-2.0"
] | null | null | null | code/main.cpp | fawkesLi-lhh/Vagrant | 15adbf52fb55235f68b3d576c5a8433cf8ee5b41 | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <cstdlib>
#include <iostream>
#include <set>
#include <string>
#include <cstring>
#include <algorithm>
#include <dirent.h>
#include <unistd.h>
#include "Vagrant/vagrant.h"
#include "Vagrant/server/Server.h"
#include "Classes/Login.h"
signed main() {
Server server;
server.addUrl(new ... | 17.380952 | 34 | 0.687671 | fawkesLi-lhh |
e4c9b2e839a3a6a8eb1df537cd50049a27d07002 | 514 | cc | C++ | src/tsl_array_map.cc | agutikov/hash-table-shootout | fb98881843b8a3510ff0a9d90a6bf1ba8dbd9690 | [
"CC0-1.0"
] | null | null | null | src/tsl_array_map.cc | agutikov/hash-table-shootout | fb98881843b8a3510ff0a9d90a6bf1ba8dbd9690 | [
"CC0-1.0"
] | null | null | null | src/tsl_array_map.cc | agutikov/hash-table-shootout | fb98881843b8a3510ff0a9d90a6bf1ba8dbd9690 | [
"CC0-1.0"
] | null | null | null | #include <inttypes.h>
#include <string>
#include <tsl/array_map.h>
#include <string_view>
template<class CharT>
struct str_hash {
std::size_t operator()(const CharT* key, std::size_t key_size) const {
return std::hash<std::string_view>()(std::string_view(key, key_size));
}
};
typedef tsl::array_map<ch... | 24.47619 | 78 | 0.733463 | agutikov |
e4ced3dbe4972567aa73cf3489254377ce7ed420 | 8,558 | cpp | C++ | src/Evaluator.cpp | bmhowe34/qwixxmaster | 106d1da67c8c0e6378b7f55757f84396d124b05b | [
"MIT"
] | 2 | 2019-04-09T10:27:48.000Z | 2020-04-19T23:35:34.000Z | src/Evaluator.cpp | bmhowe34/qwixxmaster | 106d1da67c8c0e6378b7f55757f84396d124b05b | [
"MIT"
] | 2 | 2020-04-20T01:01:20.000Z | 2020-04-22T21:52:53.000Z | src/Evaluator.cpp | bmhowe34/qwixxmaster | 106d1da67c8c0e6378b7f55757f84396d124b05b | [
"MIT"
] | 1 | 2020-04-22T01:10:28.000Z | 2020-04-22T01:10:28.000Z | #include "Evaluator.h"
#include <algorithm>
#include <iostream>
#include <memory>
#include "State.h"
#include "RandomDice.h"
#include "BruteForceRollGenerator.h"
#include "StringUtils.h"
#include "MemoryManager.h"
namespace{
size_t encode_min_max_0_based(size_t first, size_t second){
size_t max=std::max(fir... | 33.042471 | 161 | 0.636364 | bmhowe34 |
e4cfad283dd9d846667f11cde2626250066208e2 | 49,214 | cpp | C++ | src/isbiad.cpp | nporsche/fastbit | 91d06c68b9f4a0a0cc39da737d1c880ab21fe947 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/isbiad.cpp | nporsche/fastbit | 91d06c68b9f4a0a0cc39da737d1c880ab21fe947 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/isbiad.cpp | nporsche/fastbit | 91d06c68b9f4a0a0cc39da737d1c880ab21fe947 | [
"BSD-3-Clause-LBNL"
] | null | null | null | // $Id$
// Author: John Wu <John.Wu at ACM.org>
// Copyright (c) 2000-2015 the Regents of the University of California
//
// This file contains the implementation of the class called ibis::sbiad.
//
// The word sbiad is the Italian translation of the English word fade.
//
// fade -- multicomponent range-encoded bitmap... | 27.310766 | 79 | 0.538201 | nporsche |
e4dac40bfd168b6f7794ccb6182f0e80bc9147fa | 876 | cpp | C++ | src/libutils/platform/endian_utils.cpp | nkming2/libutils | e044c8f1265aad50092e008d7706142c3029096a | [
"MIT"
] | null | null | null | src/libutils/platform/endian_utils.cpp | nkming2/libutils | e044c8f1265aad50092e008d7706142c3029096a | [
"MIT"
] | 1 | 2015-03-10T06:29:14.000Z | 2015-03-10T06:29:14.000Z | src/libutils/platform/endian_utils.cpp | nkming2/libutils | e044c8f1265aad50092e008d7706142c3029096a | [
"MIT"
] | null | null | null | /*
* endian_utils.cpp
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#include <cstdint>
#include <algorithm>
#include "libutils/platform/endian_utils.h"
#include "libutils/type/misc.h"
namespace utils
{
namespace platform
{
namespace
{
bool IsBigEndian_()
{
const ui... | 15.642857 | 57 | 0.696347 | nkming2 |
e4db8b780e9091e8fa9ca4723add404eaa8786bd | 5,343 | cpp | C++ | simulation.cpp | jayvalentine/evosim | 05c01f38314fb8fb556cfc1736530fff5ec0eb1c | [
"MIT"
] | null | null | null | simulation.cpp | jayvalentine/evosim | 05c01f38314fb8fb556cfc1736530fff5ec0eb1c | [
"MIT"
] | null | null | null | simulation.cpp | jayvalentine/evosim | 05c01f38314fb8fb556cfc1736530fff5ec0eb1c | [
"MIT"
] | null | null | null | #include "simulation.h"
Simulation::Simulation(World * w, int minCreatures, unsigned int rate)
{
creatures = std::vector<std::shared_ptr<Creature>>();
world = w;
minimumCreatures = minCreatures;
stepRate = rate;
steps = 0;
}
void Simulation::RunFor(unsigned long seconds)
{
for (unsigned long ... | 28.420213 | 121 | 0.620625 | jayvalentine |
e4dc1de71d07d72be3859246a17fed274a348476 | 1,317 | hpp | C++ | swizzle/lexer/FileInfo.hpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | swizzle/lexer/FileInfo.hpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | swizzle/lexer/FileInfo.hpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | #pragma once
#include <swizzle/lexer/LineInfo.hpp>
#include <cstddef>
#include <string>
namespace swizzle { namespace lexer {
class Token;
}}
namespace swizzle { namespace lexer {
// Information about where a token starts and ends
class FileInfo
{
public:
FileInfo();
FileInfo(co... | 27.4375 | 90 | 0.607441 | SenorAgosto |
e4dc392fbb4cfffe7373f1bb1c9b50e02f93b7c8 | 1,115 | cpp | C++ | 1560f2.cpp | wky32768/Mr.Shua | 9c6c7f22c9f80f9af51e9e6e88ea91ac7965fb21 | [
"MIT"
] | null | null | null | 1560f2.cpp | wky32768/Mr.Shua | 9c6c7f22c9f80f9af51e9e6e88ea91ac7965fb21 | [
"MIT"
] | null | null | null | 1560f2.cpp | wky32768/Mr.Shua | 9c6c7f22c9f80f9af51e9e6e88ea91ac7965fb21 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int t,xx,x,k,a[21],cnt;
bool vis[105];
int tot() {
memset(vis,0,sizeof vis);
int n=0;
for(int i=cnt;i>=1;i--) {
if(vis[a[i]]==0) {
vis[a[i]]=1;
n++;
if(n>k) return 0;
}
}
return 1;
}
sig... | 24.23913 | 51 | 0.328251 | wky32768 |
e4de0274c235641531abf69e10ca8aad9f9d6bab | 17,243 | cpp | C++ | Source/aiden_geo_tutorial/Private/FoliageCaptureActor.cpp | SquarerFive/cesium-procedural-foliage | 428b99d3ad2643b5c491b027ee7110b4e673e117 | [
"Apache-2.0"
] | 13 | 2021-07-29T12:33:44.000Z | 2022-03-28T08:38:51.000Z | Source/aiden_geo_tutorial/Private/FoliageCaptureActor.cpp | SquarerFive/cesium-procedural-foliage | 428b99d3ad2643b5c491b027ee7110b4e673e117 | [
"Apache-2.0"
] | 3 | 2021-10-11T15:54:21.000Z | 2021-12-19T00:01:21.000Z | Source/aiden_geo_tutorial/Private/FoliageCaptureActor.cpp | SquarerFive/cesium-procedural-foliage | 428b99d3ad2643b5c491b027ee7110b4e673e117 | [
"Apache-2.0"
] | 5 | 2021-10-07T06:42:10.000Z | 2022-03-29T07:51:48.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "FoliageCaptureActor.h"
#include "Kismet/KismetMathLibrary.h"
// Sets default values
AFoliageCaptureActor::AFoliageCaptureActor()
{
// Set this actor to call Tick() every frame. You can turn this off to improve perfo... | 30.846154 | 123 | 0.702604 | SquarerFive |
e4de834d0e9f197ec43b12a7b93efad5ce83e3bc | 2,627 | cpp | C++ | src/utils/fileio/SkeletonFile.cpp | Ibujah/compactskel | 8a54b5f0123490c4e8120537ae2b56d5ec2a34c9 | [
"MIT"
] | 4 | 2019-04-15T08:50:30.000Z | 2021-02-03T10:44:03.000Z | src/utils/fileio/SkeletonFile.cpp | Ibujah/compactskel | 8a54b5f0123490c4e8120537ae2b56d5ec2a34c9 | [
"MIT"
] | null | null | null | src/utils/fileio/SkeletonFile.cpp | Ibujah/compactskel | 8a54b5f0123490c4e8120537ae2b56d5ec2a34c9 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2016 Bastien Durix
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, publish, distribute, s... | 31.650602 | 126 | 0.669204 | Ibujah |
e4dfdfde7542f9293ddd30e45076d4a208f9cc6b | 524 | cpp | C++ | cpp/0238_productExceptSelf.cpp | linhx25/leetcode | 9cf1d6d2372fd8777825c8107780b7f3c934fe20 | [
"MIT"
] | 1 | 2021-04-16T12:54:56.000Z | 2021-04-16T12:54:56.000Z | cpp/0238_productExceptSelf.cpp | linhx25/leetcode | 9cf1d6d2372fd8777825c8107780b7f3c934fe20 | [
"MIT"
] | null | null | null | cpp/0238_productExceptSelf.cpp | linhx25/leetcode | 9cf1d6d2372fd8777825c8107780b7f3c934fe20 | [
"MIT"
] | 1 | 2021-04-26T13:20:41.000Z | 2021-04-26T13:20:41.000Z | // 1.最简单做法:遍历一遍得到连乘,每个元素单独除一遍即可;
// 2.不能使用除法:
// (1)先遍历一遍,得到每个位置的左连乘(不包括该位置)
// (2)从右边开始遍历,获得右连乘,随后更新每个位置的左连乘
class Solution {
public:
vector<int> productExceptSelf(vector<int>& nums) {
vector<int> res(nums.size());
int right=1;
res[0]=1;
for(auto i=1;i<nums.size();i++)
r... | 23.818182 | 54 | 0.51145 | linhx25 |
e4e00ea3d9d442924535e46cc8e4cd9ec884694d | 3,345 | hpp | C++ | rmf_schedule_visualizer/src/VisualizerData.hpp | Briancbn/rmf_schedule_visualizer | b6f61b6ddbdf34fe539256c9cb6c420408574f81 | [
"Apache-2.0"
] | null | null | null | rmf_schedule_visualizer/src/VisualizerData.hpp | Briancbn/rmf_schedule_visualizer | b6f61b6ddbdf34fe539256c9cb6c420408574f81 | [
"Apache-2.0"
] | null | null | null | rmf_schedule_visualizer/src/VisualizerData.hpp | Briancbn/rmf_schedule_visualizer | b6f61b6ddbdf34fe539256c9cb6c420408574f81 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* 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... | 30.688073 | 79 | 0.767414 | Briancbn |
e4e2f28c025a45a5b1d530ad4f16d9ea7beea7a6 | 928 | cpp | C++ | src/examples/textured_triangle/textured_triangle_shader.cpp | DavidSlayback/megaverse | 6ce21c9df5ee4d157f4a69b98de3ef1569bc8ccc | [
"MIT"
] | 149 | 2021-06-09T01:28:57.000Z | 2022-03-30T20:31:25.000Z | src/examples/textured_triangle/textured_triangle_shader.cpp | DavidSlayback/megaverse | 6ce21c9df5ee4d157f4a69b98de3ef1569bc8ccc | [
"MIT"
] | 4 | 2021-06-30T17:06:18.000Z | 2022-02-17T21:58:13.000Z | src/examples/textured_triangle/textured_triangle_shader.cpp | DavidSlayback/megaverse | 6ce21c9df5ee4d157f4a69b98de3ef1569bc8ccc | [
"MIT"
] | 13 | 2021-07-10T06:49:24.000Z | 2022-03-08T05:11:35.000Z | #include "textured_triangle_shader.hpp"
#include <Corrade/Containers/Reference.h>
#include <Corrade/Utility/Resource.h>
#include <Magnum/GL/Context.h>
#include <Magnum/GL/Shader.h>
#include <Magnum/GL/Version.h>
namespace Magnum {
TexturedTriangleShader::TexturedTriangleShader() {
MAGNUM_ASSERT_GL_VERSION_SUPPOR... | 28.121212 | 70 | 0.738147 | DavidSlayback |
e4e341e35f00763121e29e0d057557464476432e | 2,706 | hpp | C++ | modules/core/integration/include/nt2/toolbox/integration/options.hpp | timblechmann/nt2 | 6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce | [
"BSL-1.0"
] | 2 | 2016-09-14T00:23:53.000Z | 2018-01-14T12:51:18.000Z | modules/core/integration/include/nt2/toolbox/integration/options.hpp | timblechmann/nt2 | 6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce | [
"BSL-1.0"
] | null | null | null | modules/core/integration/include/nt2/toolbox/integration/options.hpp | timblechmann/nt2 | 6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 33.825 | 80 | 0.609387 | timblechmann |
e4e3ca21e90fde907f4e39a80b029a65935ce82f | 954 | cpp | C++ | emulator/Hardware.cpp | arturmazurek/dcpu | 0647fc521b04ba71b793eedeb62c7add3111576c | [
"MIT"
] | null | null | null | emulator/Hardware.cpp | arturmazurek/dcpu | 0647fc521b04ba71b793eedeb62c7add3111576c | [
"MIT"
] | null | null | null | emulator/Hardware.cpp | arturmazurek/dcpu | 0647fc521b04ba71b793eedeb62c7add3111576c | [
"MIT"
] | null | null | null | //
// Hardware.cpp
// dcpu
//
// Created by Artur Mazurek on 08.09.2013.
// Copyright (c) 2013 Artur Mazurek. All rights reserved.
//
#include "Hardware.h"
#include <cassert>
#include "Core.h"
#include "DCPUException.h"
Hardware::Hardware(uint32_t hardwareId, uint16_t version, uint32_t manufacturer) :
m_hardwar... | 19.875 | 82 | 0.708595 | arturmazurek |
e4e62835e3211e21adfb136995ef2f08a3b6901d | 1,397 | cpp | C++ | snippets/cpp/VS_Snippets_CLR_System/system.Runtime.InteropServices.TypelibConverter.ConvertAssemblyToTypelib1/CPP/convert2.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-02-22T09:30:21.000Z | 2021-08-02T23:44:31.000Z | snippets/cpp/VS_Snippets_CLR_System/system.Runtime.InteropServices.TypelibConverter.ConvertAssemblyToTypelib1/CPP/convert2.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR_System/system.Runtime.InteropServices.TypelibConverter.ConvertAssemblyToTypelib1/CPP/convert2.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z |
// <snippet1>
using namespace System;
using namespace System::Reflection;
using namespace System::Reflection::Emit;
using namespace System::Runtime::InteropServices;
[ComImport,
GuidAttribute("00020406-0000-0000-C000-000000000046"),
InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown),
ComVisible(false)]
int... | 27.94 | 180 | 0.745168 | BohdanMosiyuk |
e4e7b247b69c9c62b595db1d8ecd9171b15a29fd | 1,094 | cc | C++ | cpp/Offline_sampling.cc | iskhanba/epicode | fda752e5e016ab64011083450be91bec9ee8358a | [
"MIT"
] | null | null | null | cpp/Offline_sampling.cc | iskhanba/epicode | fda752e5e016ab64011083450be91bec9ee8358a | [
"MIT"
] | null | null | null | cpp/Offline_sampling.cc | iskhanba/epicode | fda752e5e016ab64011083450be91bec9ee8358a | [
"MIT"
] | null | null | null | // Copyright (c) 2015 Elements of Programming Interviews. All rights reserved.
#include <algorithm>
#include <cassert>
#include <iostream>
#include <random>
#include <vector>
#include "./Offline_sampling.h"
using std::cout;
using std::default_random_engine;
using std::endl;
using std::random_device;
using std::swap;... | 24.311111 | 78 | 0.571298 | iskhanba |
e4e98a060da8913c927916cc83c32fbb5b508fe6 | 4,339 | cpp | C++ | 10-11/VmWriter.cpp | jomiller/nand2tetris | 4be20996e1b5185654ef4de5234a9543f957d6fc | [
"MIT"
] | 1 | 2020-10-13T07:06:37.000Z | 2020-10-13T07:06:37.000Z | 10-11/VmWriter.cpp | jomiller/nand2tetris | 4be20996e1b5185654ef4de5234a9543f957d6fc | [
"MIT"
] | null | null | null | 10-11/VmWriter.cpp | jomiller/nand2tetris | 4be20996e1b5185654ef4de5234a9543f957d6fc | [
"MIT"
] | null | null | null | /*
* This file is part of Nand2Tetris.
*
* Copyright © 2013-2020 Jonathan Miller
*
* 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... | 29.924138 | 107 | 0.651302 | jomiller |
e4f17dfd32c13132bc78515fb43194c63b27ae5a | 1,131 | hpp | C++ | team_AASM/find_optimal_cell.hpp | AlinGeorgescu/Halite-III-Bot | 79bcf45c0f131c35c6b60eced56a4c3f01453845 | [
"CC0-1.0"
] | null | null | null | team_AASM/find_optimal_cell.hpp | AlinGeorgescu/Halite-III-Bot | 79bcf45c0f131c35c6b60eced56a4c3f01453845 | [
"CC0-1.0"
] | null | null | null | team_AASM/find_optimal_cell.hpp | AlinGeorgescu/Halite-III-Bot | 79bcf45c0f131c35c6b60eced56a4c3f01453845 | [
"CC0-1.0"
] | null | null | null | #pragma once
#include "hlt/game.hpp"
using namespace std;
using namespace hlt;
/** Greedy search of optimal cell. */
Position optimal_mine_cell(shared_ptr<Ship> ship,
unique_ptr<GameMap>& game_map) {
Position optimal;
int max = 0;
for (int y = 0; y < game_map->height; ++y) {
... | 26.928571 | 77 | 0.478338 | AlinGeorgescu |
e4f26e33e7ab5a681f5e23c1e42f3c9498740718 | 634 | cxx | C++ | Modules/ThirdParty/VNL/src/vxl/core/vnl/Templates/vcl_complex+vnl_rational-.cxx | jcfr/ITK | 6632b7f968c3827e8a3bcc9812e05b4e2064676e | [
"Apache-2.0"
] | null | null | null | Modules/ThirdParty/VNL/src/vxl/core/vnl/Templates/vcl_complex+vnl_rational-.cxx | jcfr/ITK | 6632b7f968c3827e8a3bcc9812e05b4e2064676e | [
"Apache-2.0"
] | null | null | null | Modules/ThirdParty/VNL/src/vxl/core/vnl/Templates/vcl_complex+vnl_rational-.cxx | jcfr/ITK | 6632b7f968c3827e8a3bcc9812e05b4e2064676e | [
"Apache-2.0"
] | null | null | null | #include <vcl_iostream.h>
#include <vnl/vnl_rational.h>
#include <vcl_complex.hxx>
// this function will tickle implicit templates for
// some compilers and detect missing instances for others.
template <class T>
vcl_complex<T> vcl_complex_instances_ticker(T *)
{
vcl_complex<T> z(1, 2);
return vcl_conj(z);
}
temp... | 26.416667 | 80 | 0.712934 | jcfr |
e4f2ac64bb0bb542747626b0228b4d045918b6b6 | 17,128 | cpp | C++ | 3DSnake/GodRays.cpp | lerignoux/3D_snake | 3932d5cc3462cfffa1867f766857fa7f3a29a170 | [
"MIT"
] | null | null | null | 3DSnake/GodRays.cpp | lerignoux/3D_snake | 3932d5cc3462cfffa1867f766857fa7f3a29a170 | [
"MIT"
] | null | null | null | 3DSnake/GodRays.cpp | lerignoux/3D_snake | 3932d5cc3462cfffa1867f766857fa7f3a29a170 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------
// Light shafts demo variables
// ----------------------------------------------------------------------------
#include "GodRays.h"
// God ray data struct
struct GodRayData
{
GodRayData()
{
}
// Arrays information:
// [0] -> Cu... | 34.324649 | 224 | 0.64199 | lerignoux |
e4f2bb925d5c929687a8c10830eae36f2b56c563 | 66,448 | cpp | C++ | Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp | gSpera/serenity | 5eb0f63c5463ad69286868978ce65fa4705a457c | [
"BSD-2-Clause"
] | 2 | 2022-02-08T09:18:50.000Z | 2022-02-21T17:57:23.000Z | Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp | gSpera/serenity | 5eb0f63c5463ad69286868978ce65fa4705a457c | [
"BSD-2-Clause"
] | null | null | null | Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp | gSpera/serenity | 5eb0f63c5463ad69286868978ce65fa4705a457c | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
* Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
* Copyright (c) 2021, Marcin Gasperowicz <xnooga@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Format.h>
#i... | 41.220844 | 267 | 0.660532 | gSpera |
e4f40cc473b23988ba0cc7e6ab9abe4bcd889592 | 1,437 | cpp | C++ | tests/unrepresentable_operation_error.test.cpp | atimholt/rational_geometry | 2738ac352dc527b2c2d5f4d3197692161a0d34b1 | [
"MIT"
] | null | null | null | tests/unrepresentable_operation_error.test.cpp | atimholt/rational_geometry | 2738ac352dc527b2c2d5f4d3197692161a0d34b1 | [
"MIT"
] | null | null | null | tests/unrepresentable_operation_error.test.cpp | atimholt/rational_geometry | 2738ac352dc527b2c2d5f4d3197692161a0d34b1 | [
"MIT"
] | null | null | null |
#include "../src/rational_geometry/unrepresentable_operation_error.hpp"
#include "doctest.h"
#include <ostream>
#include <string>
#include <typeinfo>
namespace rational_geometry {
TEST_CASE("Testing unrepresentable_operation_error.hpp")
{
SUBCASE("class unrepresentable_operation_error")
{
SUBCASE("Constru... | 21.447761 | 78 | 0.631176 | atimholt |
e4fd7df13e2271077ed77daa1a65b22b8ed19a5d | 685 | hpp | C++ | include/server/service/utils.hpp | jhermsmeier/osrm-backend | 7b11cd3a11c939c957eeff71af7feddaa86e7f82 | [
"BSD-2-Clause"
] | 13 | 2019-02-21T02:02:41.000Z | 2021-09-09T13:49:31.000Z | include/server/service/utils.hpp | serarca/osrm-backend | 3b4e2e83ef85983df1381dbeacd0ea5d4b9bbbcb | [
"BSD-2-Clause"
] | 288 | 2019-02-21T01:34:04.000Z | 2021-03-27T12:19:10.000Z | include/server/service/utils.hpp | serarca/osrm-backend | 3b4e2e83ef85983df1381dbeacd0ea5d4b9bbbcb | [
"BSD-2-Clause"
] | 4 | 2019-06-21T20:51:59.000Z | 2021-01-13T09:22:24.000Z | #include <boost/format.hpp>
namespace osrm
{
namespace server
{
namespace service
{
const constexpr char PARAMETER_SIZE_MISMATCH_MSG[] =
"Number of elements in %1% size %2% does not match coordinate size %3%";
template <typename ParamT>
bool constrainParamSize(const char *msg_template,
co... | 22.833333 | 87 | 0.583942 | jhermsmeier |
9000fb3b8702118f57f3a3a312660835ace9ec11 | 1,746 | cpp | C++ | CCSDSlib/source/PacketFixedLength.cpp | nhaflinger/CCSDSlib | 23bd332078c6c8a1a3e70bacdb9a81f0da9403a3 | [
"MIT"
] | 1 | 2021-06-10T13:14:27.000Z | 2021-06-10T13:14:27.000Z | CCSDSlib/source/PacketFixedLength.cpp | nhaflinger/CCSDSlib | 23bd332078c6c8a1a3e70bacdb9a81f0da9403a3 | [
"MIT"
] | null | null | null | CCSDSlib/source/PacketFixedLength.cpp | nhaflinger/CCSDSlib | 23bd332078c6c8a1a3e70bacdb9a81f0da9403a3 | [
"MIT"
] | null | null | null | #ifdef __linux__
//linux code goes here
#elif defined(_WIN32) || defined(WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include "PacketFixedLength.h"
using namespace std;
PacketFixedLength::PacketFixedLength()
{
}
PacketFixedLength::~PacketFixedLength()
{
}
map<string, string> P... | 22.101266 | 106 | 0.71764 | nhaflinger |
07e5868483e4085ce759c4c9760a7f4a5e01bf3b | 15,061 | cpp | C++ | pizjuce/image/src/imagePlugin.cpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | null | null | null | pizjuce/image/src/imagePlugin.cpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | null | null | null | pizjuce/image/src/imagePlugin.cpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | 1 | 2021-01-26T12:25:01.000Z | 2021-01-26T12:25:01.000Z | #include "imagePlugin.h"
#include "imagePluginEditor.h"
//==============================================================================
/*
This function must be implemented to create the actual plugin object that
you want to use.
*/
PizAudioProcessor* JUCE_CALLTYPE createPluginFilter()
{
return new image... | 36.291566 | 147 | 0.66795 | nonameentername |
07eaf40d3f0a233b8b1574b1e9a0e7927bae8267 | 1,311 | cpp | C++ | c++ problems asked in interview/704. Binary Search.cpp | rj011/Hacktoberfest2021-4 | 0aa981d4ba5e71c86cc162d34fe57814050064c2 | [
"MIT"
] | 41 | 2021-10-03T16:03:52.000Z | 2021-11-14T18:15:33.000Z | c++ problems asked in interview/704. Binary Search.cpp | rj011/Hacktoberfest2021-4 | 0aa981d4ba5e71c86cc162d34fe57814050064c2 | [
"MIT"
] | 175 | 2021-10-03T10:47:31.000Z | 2021-10-20T11:55:32.000Z | c++ problems asked in interview/704. Binary Search.cpp | rj011/Hacktoberfest2021-4 | 0aa981d4ba5e71c86cc162d34fe57814050064c2 | [
"MIT"
] | 208 | 2021-10-03T11:24:04.000Z | 2021-10-31T17:27:59.000Z | Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums.
If target exists, then return its index. Otherwise, return -1.
You must write an algorithm with O(log n) runtime complexity.
Example 1:
Input: nums = [-1,0,3,5,9,12], target = 9... | 29.133333 | 135 | 0.577422 | rj011 |
07f164fc4e58f06307a47c51638aa3831438f707 | 28,524 | cxx | C++ | reduce_includes/reduce_includes.cxx | linev/misc | 4627ab0e62da1e66c3c4d656498463724713e891 | [
"MIT"
] | null | null | null | reduce_includes/reduce_includes.cxx | linev/misc | 4627ab0e62da1e66c3c4d656498463724713e891 | [
"MIT"
] | null | null | null | reduce_includes/reduce_includes.cxx | linev/misc | 4627ab0e62da1e66c3c4d656498463724713e891 | [
"MIT"
] | 1 | 2019-07-05T09:42:45.000Z | 2019-07-05T09:42:45.000Z | #include <cstdio>
#include <string>
#include <fstream>
#include <streambuf>
#include <cstdlib>
#include <cstring>
#include <streambuf>
#include <vector>
#include <algorithm>
#include <stdio.h>
std::string ReadFile(const char *fname)
{
std::ifstream t(fname, std::ios::binary);
std::string str;
t.seekg(0, std:... | 33.957143 | 135 | 0.534743 | linev |
07f1fda9b0cbc86c226ca508d9ff756a62166e8e | 2,868 | cpp | C++ | src/model.cpp | nek0bit/LoopCube | 882296f32bfe3a8b1765950a9b8c9e24af75d009 | [
"MIT"
] | 9 | 2020-04-03T21:20:02.000Z | 2021-08-23T19:57:57.000Z | src/model.cpp | nek0bit/LoopCube | 882296f32bfe3a8b1765950a9b8c9e24af75d009 | [
"MIT"
] | 2 | 2020-12-05T01:05:58.000Z | 2021-01-23T04:41:24.000Z | src/model.cpp | nek0bit/LoopCube | 882296f32bfe3a8b1765950a9b8c9e24af75d009 | [
"MIT"
] | 4 | 2020-07-04T13:47:33.000Z | 2021-09-11T15:29:08.000Z | #include "model.hpp"
Model::Model(const GLuint shader, const std::vector<Vertex>& vertices)
: refCount{std::make_shared<int>(1)},
vao{0},
vbo{0},
size{0},
shader{shader}
{
if (shader != 0)
{
glGenVertexArrays(1, &vao);
glGenBuffers(1, &vbo);
if (vert... | 26.803738 | 93 | 0.623431 | nek0bit |
07f6ea22cf57c8391558d0117cae5868c4e7ce4d | 189,298 | cc | C++ | vs/src/VsClient.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | vs/src/VsClient.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | vs/src/VsClient.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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... | 34.708104 | 239 | 0.783585 | aliyun |