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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00e10b9d5e9b6cd82f2600b57d17dd74f9191e9e | 7,875 | cpp | C++ | 1.BouncingBall/BouncingBall/Game.cpp | Cabrra/Physics-Projects | 8fb3ec73b58ab1a2055e47b780bd298ef2c14bbb | [
"MIT"
] | 1 | 2021-12-10T07:34:04.000Z | 2021-12-10T07:34:04.000Z | 1.BouncingBall/BouncingBall/Game.cpp | Cabrra/Physics-Projects | 8fb3ec73b58ab1a2055e47b780bd298ef2c14bbb | [
"MIT"
] | null | null | null | 1.BouncingBall/BouncingBall/Game.cpp | Cabrra/Physics-Projects | 8fb3ec73b58ab1a2055e47b780bd298ef2c14bbb | [
"MIT"
] | null | null | null |
#include"Game.h"
static cGame* game;
Camera camera;
RigidBody ball;
Ground ground;
cGame::cGame():cGameWindows()
{
}
cGame::~cGame()
{
}
bool SetupMatrices()
{
// setup the projection matrix
D3DXMatrixPerspectiveFovLH(&game->projectionMatrix,D3DX_PI/2.0f ,(float)WIDTH /(float)HEIGHT ,1.0f,10... | 21.935933 | 117 | 0.665778 | Cabrra |
00e210add32f93aa4f531acc8ba57dd3fc189f84 | 3,063 | cpp | C++ | 3rdparty/GPSTk/ext/lib/Vdraw/InterpolatedColorMap.cpp | mfkiwl/ICE | e660d031bb1bcea664db1de4946fd8781be5b627 | [
"MIT"
] | 50 | 2019-10-12T01:22:20.000Z | 2022-02-15T23:28:26.000Z | 3rdparty/GPSTk/ext/lib/Vdraw/InterpolatedColorMap.cpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | null | null | null | 3rdparty/GPSTk/ext/lib/Vdraw/InterpolatedColorMap.cpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | 14 | 2019-11-05T01:50:29.000Z | 2021-08-06T06:23:44.000Z | //============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; ei... | 28.626168 | 98 | 0.587006 | mfkiwl |
00e51de226e6c674e33aca642a7a7012fe56e0c3 | 3,025 | cpp | C++ | tests/StringWriteBatchTest.cpp | LPetrlik/karindb | 8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea | [
"MIT"
] | null | null | null | tests/StringWriteBatchTest.cpp | LPetrlik/karindb | 8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea | [
"MIT"
] | null | null | null | tests/StringWriteBatchTest.cpp | LPetrlik/karindb | 8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea | [
"MIT"
] | null | null | null | /* Copyright (c) 2015 Kerio Technologies s.r.o.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | 45.833333 | 138 | 0.787438 | LPetrlik |
00e55293aab01ecf987b9f298d3d71a5418d7168 | 46,413 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/quicktime/QTLiveUtils.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 3 | 2018-08-20T12:12:43.000Z | 2021-06-06T09:43:27.000Z | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/quicktime/QTLiveUtils.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/quicktime/QTLiveUtils.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with ... | 54.732311 | 212 | 0.518842 | UM-ARM-Lab |
00e772d902274d5d7c0b4282699996356f36ead0 | 3,563 | cc | C++ | onnxruntime/test/server/unit_tests/server_configuration_test.cc | hqucms/onnxruntime | 6e4e76414639f50836a64546603c8957227857b0 | [
"MIT"
] | 3 | 2019-11-25T10:26:57.000Z | 2021-05-14T08:11:29.000Z | onnxruntime/test/server/unit_tests/server_configuration_test.cc | hqucms/onnxruntime | 6e4e76414639f50836a64546603c8957227857b0 | [
"MIT"
] | 10 | 2019-03-25T21:47:46.000Z | 2019-04-30T02:33:05.000Z | onnxruntime/test/server/unit_tests/server_configuration_test.cc | hqucms/onnxruntime | 6e4e76414639f50836a64546603c8957227857b0 | [
"MIT"
] | 4 | 2021-06-05T19:52:22.000Z | 2021-11-30T13:58:13.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "server/server_configuration.h"
namespace onnxruntime {
namespace server {
namespace test {
TEST(ConfigParsingTests, AllArgs) {
char* test_argv[] = {
con... | 36.731959 | 82 | 0.685658 | hqucms |
00ecf3f7e33716204ac223630b3469014b19a522 | 2,099 | cpp | C++ | tests/integration/session_api_tests/basic_0_session_api_test.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | tests/integration/session_api_tests/basic_0_session_api_test.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | tests/integration/session_api_tests/basic_0_session_api_test.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | // Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#define BOOST_TEST_MODULE Basic0SessionApiTest
#include <boost/test/unit_test.hpp>
#include <filereader.hpp>
#include <popart/builder.hpp>
#include <popart/dataflow.hpp>
#include <popart/devicemanager.hpp>
#include <popart/inputshapeinfo.hpp>
#include <popart/n... | 30.867647 | 79 | 0.717485 | gglin001 |
00ef54ab3bf93ca4b4d9fa4f5fdb88b1fde45dd3 | 10,119 | cpp | C++ | src/chrono_synchrono/flatbuffer/message/SynTrackedVehicleMessage.cpp | zzhou292/chrono-collision | c2a20e171bb0eb8819636d370887aa32d68547c6 | [
"BSD-3-Clause"
] | 1 | 2020-01-18T02:39:17.000Z | 2020-01-18T02:39:17.000Z | src/chrono_synchrono/flatbuffer/message/SynTrackedVehicleMessage.cpp | zzhou292/chrono-collision | c2a20e171bb0eb8819636d370887aa32d68547c6 | [
"BSD-3-Clause"
] | null | null | null | src/chrono_synchrono/flatbuffer/message/SynTrackedVehicleMessage.cpp | zzhou292/chrono-collision | c2a20e171bb0eb8819636d370887aa32d68547c6 | [
"BSD-3-Clause"
] | 1 | 2019-07-16T00:23:00.000Z | 2019-07-16T00:23:00.000Z | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2020 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 55.598901 | 116 | 0.528412 | zzhou292 |
00f5aa571f72775b671c3176cae847391548883d | 3,156 | cpp | C++ | Train/Sheet/Sheet-B/extra/extra 01 - 15/02.[Trees on the level].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Train/Sheet/Sheet-B/extra/extra 01 - 15/02.[Trees on the level].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Train/Sheet/Sheet-B/extra/extra 01 - 15/02.[Trees on the level].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <string.h>
#include <array>
#include <iterator>
#include <set>
#include <cmath>
#include<iomanip> // Stew(10) :: 12 ........ 8 spaces and 2 digits in 10 padding right
#define pb push_back
#define up upper_b... | 21.04 | 106 | 0.556717 | mohamedGamalAbuGalala |
00f6096a32516c1909fb567de8ca7710814968db | 8,351 | cpp | C++ | src/localization/arena-detection/ImageProcessor.cpp | elikos/elikos_localization | 0eca76e5c836b1b0f407afffe0d1b85605d3cfa1 | [
"MIT"
] | 1 | 2019-02-24T08:29:06.000Z | 2019-02-24T08:29:06.000Z | src/localization/arena-detection/ImageProcessor.cpp | elikos/elikos_localization | 0eca76e5c836b1b0f407afffe0d1b85605d3cfa1 | [
"MIT"
] | null | null | null | src/localization/arena-detection/ImageProcessor.cpp | elikos/elikos_localization | 0eca76e5c836b1b0f407afffe0d1b85605d3cfa1 | [
"MIT"
] | 1 | 2019-02-12T23:06:13.000Z | 2019-02-12T23:06:13.000Z | #include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <Eigen/Geometry>
#include <iostream>
#include <unordered_map>
#include "LineGroup.h"
#include "DBSCAN.h"
#include "ImageProcessor.h"
namespace localization {
using Vector = Eigen::Vector2f;
... | 33.007905 | 127 | 0.635014 | elikos |
00f7683f5fc55e88997d8a93b199d6512cf3204d | 2,384 | cpp | C++ | src/AppInstallerRepositoryCore/ManifestJSONParser.cpp | ryfu-msft/winget-cli | 9f8ceea4fb8959552075d7c6f8679abc6a310306 | [
"MIT"
] | null | null | null | src/AppInstallerRepositoryCore/ManifestJSONParser.cpp | ryfu-msft/winget-cli | 9f8ceea4fb8959552075d7c6f8679abc6a310306 | [
"MIT"
] | null | null | null | src/AppInstallerRepositoryCore/ManifestJSONParser.cpp | ryfu-msft/winget-cli | 9f8ceea4fb8959552075d7c6f8679abc6a310306 | [
"MIT"
] | 1 | 2022-01-18T19:23:34.000Z | 2022-01-18T19:23:34.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "Public/winget/ManifestJSONParser.h"
#include "Rest/Schema/1_0/Json/ManifestDeserializer.h"
#include "Rest/Schema/1_1/Json/ManifestDeserializer.h"
namespace AppInstaller::Repository::JSON
{
struct Manifest... | 36.121212 | 138 | 0.657718 | ryfu-msft |
00f801e99fc8cd3518af0a6e74d0ffdde4534d32 | 6,472 | hpp | C++ | src/hotspot/share/runtime/os_perf.hpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | src/hotspot/share/runtime/os_perf.hpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | src/hotspot/share/runtime/os_perf.hpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 23.032028 | 101 | 0.709054 | 1690296356 |
00fc039e11d72fbd50f8d2e9e542853f518a8967 | 1,626 | hh | C++ | src/windows/libraries/ws2_32/types/WSABUF_IMPL.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 23 | 2021-02-17T16:58:52.000Z | 2022-02-12T17:01:06.000Z | src/windows/libraries/ws2_32/types/WSABUF_IMPL.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 1 | 2021-04-01T22:41:32.000Z | 2021-09-24T14:14:17.000Z | src/windows/libraries/ws2_32/types/WSABUF_IMPL.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 4 | 2021-02-17T16:53:18.000Z | 2021-04-13T16:51:10.000Z | /*
* Copyright 2021 Assured Information Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 29.035714 | 92 | 0.702337 | IntroVirt |
00ff824cf08ba008e87d810cf3332cefd969862a | 278 | cpp | C++ | CompetitiveProgramming/HackerEarth/BasicsofImplementation/CountDigits.cpp | send2manoo/Data-Structure-C | c9763ec9709421a558a8dee5e3d811dd8e343960 | [
"Apache-2.0"
] | 1 | 2020-01-20T09:15:13.000Z | 2020-01-20T09:15:13.000Z | CompetitiveProgramming/HackerEarth/BasicsofImplementation/CountDigits.cpp | send2manoo/Data-Structure-C | c9763ec9709421a558a8dee5e3d811dd8e343960 | [
"Apache-2.0"
] | null | null | null | CompetitiveProgramming/HackerEarth/BasicsofImplementation/CountDigits.cpp | send2manoo/Data-Structure-C | c9763ec9709421a558a8dee5e3d811dd8e343960 | [
"Apache-2.0"
] | 1 | 2020-10-01T06:33:39.000Z | 2020-10-01T06:33:39.000Z | #include <iostream>
using namespace std;
int main()
{
string S;
int S_length = 0, i=0, zero = 0, one = 0, two = 0, three = 0, four = 0, five = 0, six = 0, seven = 0 , eight = 0, nine = 0;
cin >> S;
S_length = S.length();
for (i = 0; i < S_length; i++)
{
}
return 0;
} | 19.857143 | 124 | 0.543165 | send2manoo |
2e008c9e96dab0976d65ffe9d7c295e03b2431d4 | 8,291 | cpp | C++ | src/slg/materials/metal2.cpp | mbrukman/LuxCore | 49a243f441785c9ba7ec1efcbd82fc0bf2595bfe | [
"Apache-2.0"
] | null | null | null | src/slg/materials/metal2.cpp | mbrukman/LuxCore | 49a243f441785c9ba7ec1efcbd82fc0bf2595bfe | [
"Apache-2.0"
] | null | null | null | src/slg/materials/metal2.cpp | mbrukman/LuxCore | 49a243f441785c9ba7ec1efcbd82fc0bf2595bfe | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
* Copyright 1998-2020 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... | 37.013393 | 110 | 0.640936 | mbrukman |
2e0307c3a32675cb8a349d8b80b2eb8dc25f9874 | 4,758 | hpp | C++ | output/include/core/fs/io_device.hpp | picofox/pilo | 59e12c947307d664c4ca9dcc232b481d06be104a | [
"MIT"
] | 1 | 2019-07-31T06:44:46.000Z | 2019-07-31T06:44:46.000Z | src/pilo/core/fs/io_device.hpp | picofox/pilo | 59e12c947307d664c4ca9dcc232b481d06be104a | [
"MIT"
] | null | null | null | src/pilo/core/fs/io_device.hpp | picofox/pilo | 59e12c947307d664c4ca9dcc232b481d06be104a | [
"MIT"
] | null | null | null | #pragma once
#include "core/coredefs.hpp"
#define MB_IO_DEV_OPEN_FLAG_APPEND (1<<0)
#define MB_IO_DEV_OPEN_SYNC (1<<1)
#define MB_IO_DEV_OPEN_NO_OS_CACHE (1<<2)
#define MB_IO_DEV_OPEN_REOPEN (1<<3)
#define MB_IO_DEV_INIT_FLAG_AUTO_CREATE (1<<0)
#define MB_IO_DEV_INIT_FLAG_FORCE_DELET... | 39.322314 | 151 | 0.519756 | picofox |
2e03f529a57225cb29ee158fc39249c2fea07d33 | 5,585 | cc | C++ | google/cloud/dataproc/cluster_controller_connection.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | google/cloud/dataproc/cluster_controller_connection.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | google/cloud/dataproc/cluster_controller_connection.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 41.066176 | 82 | 0.755058 | sydney-munro |
2e05ffbdcfc0058fbc589b079f97fab11807e86c | 22,737 | hpp | C++ | selene/base/Kernel.hpp | kmhofmann/selene | 11718e1a7de6ff6251c46e4ef429a7cfb1bdb9eb | [
"MIT"
] | 284 | 2017-11-20T08:23:54.000Z | 2022-03-30T12:52:00.000Z | selene/base/Kernel.hpp | kmhofmann/selene | 11718e1a7de6ff6251c46e4ef429a7cfb1bdb9eb | [
"MIT"
] | 9 | 2018-02-14T08:21:41.000Z | 2021-07-27T19:52:12.000Z | selene/base/Kernel.hpp | kmhofmann/selene | 11718e1a7de6ff6251c46e4ef429a7cfb1bdb9eb | [
"MIT"
] | 17 | 2018-03-10T00:01:36.000Z | 2021-06-29T10:44:27.000Z | // This file is part of the `Selene` library.
// Copyright 2017-2019 Michael Hofmann (https://github.com/kmhofmann).
// Distributed under MIT license. See accompanying LICENSE file in the top-level directory.
#ifndef SELENE_BASE_KERNEL_HPP
#define SELENE_BASE_KERNEL_HPP
/// @file
#include <selene/base/Assert.hpp>
#i... | 33.584934 | 118 | 0.734881 | kmhofmann |
2e073496ac144b8a6bfddb35875375faa5b602d8 | 701 | hpp | C++ | include/srpc/net/client/Client.hpp | ISSuh/SimpleRPC | 429f14d26a783ff092f326a49576d945f82ad610 | [
"MIT"
] | null | null | null | include/srpc/net/client/Client.hpp | ISSuh/SimpleRPC | 429f14d26a783ff092f326a49576d945f82ad610 | [
"MIT"
] | null | null | null | include/srpc/net/client/Client.hpp | ISSuh/SimpleRPC | 429f14d26a783ff092f326a49576d945f82ad610 | [
"MIT"
] | null | null | null | /**
*
* Copyright: Copyright (c) 2020, ISSuh
*
*/
#ifndef SRPC_NET_CLIENT_CLIENT_HPP_
#define SRPC_NET_CLIENT_CLIENT_HPP_
#include <string>
namespace srpc {
class Client {
public:
Client() = default;
virtual ~Client() = default;
virtual void connect(const std::string& host, const std::string& port) ... | 20.617647 | 77 | 0.650499 | ISSuh |
2e0b091088cf71f68a084d4552744de6ae5d4717 | 1,017 | cpp | C++ | Projects/RealityEngine/source/Core/Tools/Logger.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | null | null | null | Projects/RealityEngine/source/Core/Tools/Logger.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | null | null | null | Projects/RealityEngine/source/Core/Tools/Logger.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | 1 | 2021-11-05T02:55:27.000Z | 2021-11-05T02:55:27.000Z | // Copyright Reality Engine. All Rights Reserved.
#include "Core/Tools/Logger.h"
#include <cstdarg>
#include <fstream>
Reality::Logger::Logger() :
m_File{ std::make_unique<std::ofstream>(L"Logs/Logs.txt", std::ios::out | std::ios::trunc) }
{}
Reality::Logger::~Logger() = default;
void Reality::Logger... | 24.214286 | 115 | 0.6647 | Volta948 |
2e0d0122bacb5ad04230aba27e3e9ecbf382b718 | 502 | cpp | C++ | libs/renderer/src/renderer/plugin/collection.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/src/renderer/plugin/collection.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/src/renderer/plugin/collection.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 <sge/plugin/impl/instantiate_collection.hpp>
#include <sge/renderer/core.hpp>
#include <sg... | 38.615385 | 61 | 0.750996 | cpreh |
2e0ee15dff2c766adf01350b6a9fdd5048e8f91d | 1,066 | cpp | C++ | source/physics/private/internal/simulation/frameparts/framebody.cpp | fpuma/Physics2dModule | c329e45d05c77b81a45e0d509fe8deb1d327c686 | [
"MIT"
] | null | null | null | source/physics/private/internal/simulation/frameparts/framebody.cpp | fpuma/Physics2dModule | c329e45d05c77b81a45e0d509fe8deb1d327c686 | [
"MIT"
] | null | null | null | source/physics/private/internal/simulation/frameparts/framebody.cpp | fpuma/Physics2dModule | c329e45d05c77b81a45e0d509fe8deb1d327c686 | [
"MIT"
] | null | null | null | #include <precompiledphysics.h>
#include "framebody.h"
#include <utils/geometry/shapes/shape.h>
#include <box2d/b2_body.h>
#include <box2d/b2_fixture.h>
namespace puma::physics
{
FrameBody::FrameBody( FramePartID _id )
: m_framePart( _id )
{
}
/*Vec2 Body::getOffset() const
{
... | 19.035714 | 56 | 0.621013 | fpuma |
2e10119220e1abe4a2a5173f0b0de2a11a453ae8 | 1,010 | cpp | C++ | ComputerScienceSubj.cpp | tsvetan-gabrovski/SUSI-Project | c4d6544b5463a35b2bdcb876578324d47a10b315 | [
"MIT"
] | null | null | null | ComputerScienceSubj.cpp | tsvetan-gabrovski/SUSI-Project | c4d6544b5463a35b2bdcb876578324d47a10b315 | [
"MIT"
] | null | null | null | ComputerScienceSubj.cpp | tsvetan-gabrovski/SUSI-Project | c4d6544b5463a35b2bdcb876578324d47a10b315 | [
"MIT"
] | null | null | null | #include "ComputerScienceSubj.h"
ComputerScienceSubj::ComputerScienceSubj()
{
this->setName("ComputerScience.txt");
}
void ComputerScienceSubj::createFIle()
{
std::ofstream out(this->getNameSubject());
out << "Course1\n" << "Algebra,Discret Structures,Differential and Integral calculus1,Introduction to p... | 50.5 | 142 | 0.769307 | tsvetan-gabrovski |
2e13a83ec6b42d1a520912be1e57cd820af9f82e | 148 | hpp | C++ | src/Notifications.hpp | makuto/japanese-for-me | a32944bc6e709c572a93b94d205bd14bd75dbff4 | [
"MIT"
] | null | null | null | src/Notifications.hpp | makuto/japanese-for-me | a32944bc6e709c572a93b94d205bd14bd75dbff4 | [
"MIT"
] | null | null | null | src/Notifications.hpp | makuto/japanese-for-me | a32944bc6e709c572a93b94d205bd14bd75dbff4 | [
"MIT"
] | null | null | null | #pragma once
class NotificationsHandler
{
public:
NotificationsHandler();
~NotificationsHandler();
void sendNotification(const char* text);
};
| 13.454545 | 41 | 0.77027 | makuto |
2e13b5ce7c226d18f818236da5cc2b9fa37542d5 | 1,955 | cpp | C++ | Medusa/MedusaCore/Core/Pattern/Predicate/PredicateConfig.cpp | JamesLinus/Medusa | 243e1f67e76dba10a0b69d4154b47e884c3f191f | [
"MIT"
] | 1 | 2019-04-22T09:09:50.000Z | 2019-04-22T09:09:50.000Z | Medusa/MedusaCore/Core/Pattern/Predicate/PredicateConfig.cpp | JamesLinus/Medusa | 243e1f67e76dba10a0b69d4154b47e884c3f191f | [
"MIT"
] | null | null | null | Medusa/MedusaCore/Core/Pattern/Predicate/PredicateConfig.cpp | JamesLinus/Medusa | 243e1f67e76dba10a0b69d4154b47e884c3f191f | [
"MIT"
] | 1 | 2021-06-30T14:08:03.000Z | 2021-06-30T14:08:03.000Z | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaCorePreCompiled.h"
#include "PredicateConfig.h"
#include "Core/Pattern/Predicate/PredicateFactory.h"
#include "Core/Pattern/Predicate/IPredicate... | 26.418919 | 100 | 0.697187 | JamesLinus |
2e1485ad2f45fde33689f4fb8ab88f2ad53fa067 | 774 | cpp | C++ | src/Game.cpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | 1 | 2021-09-29T14:33:37.000Z | 2021-09-29T14:33:37.000Z | src/Game.cpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | null | null | null | src/Game.cpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | null | null | null | #include <pch.hpp>
#include <Game.hpp>
#include <scenes/TestScene.hpp>
using wars::Game;
using wars::scenes::TestScene;
Game::Game(): m_input(m_window)
{
std::cout << "[INFO]: Using OpenGL " << glGetString(GL_VERSION) << "\n";
int maximumTextureSize = 0;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maximumTextureS... | 18.428571 | 82 | 0.621447 | Hello56721 |
2e178db7e33c163e0cccdfc46c70386814872ce8 | 3,842 | hpp | C++ | boost/xml/dom/node.hpp | stefanseefeld/boost.xml | f68b661566b1e8a487295f63c846bd8012c1eb94 | [
"BSL-1.0"
] | 1 | 2018-03-22T14:23:28.000Z | 2018-03-22T14:23:28.000Z | boost/xml/dom/node.hpp | stefanseefeld/boost.xml | f68b661566b1e8a487295f63c846bd8012c1eb94 | [
"BSL-1.0"
] | null | null | null | boost/xml/dom/node.hpp | stefanseefeld/boost.xml | f68b661566b1e8a487295f63c846bd8012c1eb94 | [
"BSL-1.0"
] | null | null | null | #ifndef boost_xml_dom_node_hpp_
#define boost_xml_dom_node_hpp_
#include <boost/xml/dom/nodefwd.hpp>
#include <boost/xml/dom/iterator.hpp>
#include <stdexcept>
namespace boost
{
namespace xml
{
namespace dom
{
enum node_type
{
INTERNAL = 0,
ELEMENT,
ATTRIBUTE,
TEXT,
CDATA,
PI,
COMMENT,
};
template <ty... | 23.716049 | 79 | 0.675169 | stefanseefeld |
2e1b6b4a494dffcd58c5feac28e4afb5e1d26dbc | 14,091 | hpp | C++ | include/gbBase/Allocator/AllocationStrategyRing.hpp | ComicSansMS/GhulbusBase | 9d07e0ab6e80c93121d261605d0f3c859af149da | [
"MIT"
] | 22 | 2016-02-01T03:52:29.000Z | 2020-12-11T18:43:42.000Z | include/gbBase/Allocator/AllocationStrategyRing.hpp | ComicSansMS/GhulbusBase | 9d07e0ab6e80c93121d261605d0f3c859af149da | [
"MIT"
] | null | null | null | include/gbBase/Allocator/AllocationStrategyRing.hpp | ComicSansMS/GhulbusBase | 9d07e0ab6e80c93121d261605d0f3c859af149da | [
"MIT"
] | 7 | 2017-02-13T15:25:58.000Z | 2019-05-10T19:54:31.000Z | #ifndef GHULBUS_LIBRARY_INCLUDE_GUARD_BASE_ALLOCATOR_ALLOCATION_STRATEGY_RING_HPP
#define GHULBUS_LIBRARY_INCLUDE_GUARD_BASE_ALLOCATOR_ALLOCATION_STRATEGY_RING_HPP
/** @file
*
* @brief Ring allocation strategy.
* @author Andreas Weis (der_ghulbus@ghulbus-inc.de)
*/
#include <gbBase/config.hpp>
#include <gbBase/Alloca... | 47.285235 | 118 | 0.59137 | ComicSansMS |
2e1c6bd9ceb3e4b41686c7cca9d6089458bf7366 | 1,596 | cc | C++ | lib/xz-coder.cc | tkubotake/nwc-toolkit | 0f15669cf70b767724a11cb73f8e634765fee365 | [
"BSD-3-Clause"
] | 6 | 2017-04-06T01:49:36.000Z | 2021-03-14T15:01:59.000Z | lib/xz-coder.cc | tkubotake/nwc-toolkit | 0f15669cf70b767724a11cb73f8e634765fee365 | [
"BSD-3-Clause"
] | null | null | null | lib/xz-coder.cc | tkubotake/nwc-toolkit | 0f15669cf70b767724a11cb73f8e634765fee365 | [
"BSD-3-Clause"
] | 1 | 2021-12-24T22:23:29.000Z | 2021-12-24T22:23:29.000Z | // Copyright 2010 Susumu Yata <syata@acm.org>
#include <nwc-toolkit/xz-coder.h>
namespace nwc_toolkit {
bool XzCoder::OpenEncoder(int preset) {
if (is_open()) {
return false;
}
int xz_preset = preset;
switch (preset) {
case DEFAULT_PRESET: {
xz_preset = 6;
break;
}
case BEST_SPEED... | 20.461538 | 78 | 0.60589 | tkubotake |
2e1fbed4203bb08d6c4fc90530683bd6e89f6993 | 6,016 | hpp | C++ | src/libgit2xx/git2xx/Git.hpp | DrFrankenstein/goot | 2ea08283bd2fb52360ecd6a36d210fcc19332334 | [
"MIT"
] | null | null | null | src/libgit2xx/git2xx/Git.hpp | DrFrankenstein/goot | 2ea08283bd2fb52360ecd6a36d210fcc19332334 | [
"MIT"
] | null | null | null | src/libgit2xx/git2xx/Git.hpp | DrFrankenstein/goot | 2ea08283bd2fb52360ecd6a36d210fcc19332334 | [
"MIT"
] | null | null | null | #pragma once
#include "Buffer.hpp"
#include "Error.hpp"
#include "Repository.hpp"
#include "StrArray.hpp"
#include <cstddef>
#include <git2/config.h>
#include <git2/global.h>
#include <git2/repository.h>
#include <git2/sys/alloc.h>
#include <git2/types.h>
#include <string>
#include <utility>
#ifdef _MSC_VER
# includ... | 36.907975 | 133 | 0.759641 | DrFrankenstein |
2e205baea6d122bbb0340dba71649a40cba55445 | 1,556 | cpp | C++ | src/SignalSlotFactory.cpp | Joeasaurus/spina | 00a331aec57c3d18adc9eed02d992b44c659ea10 | [
"MIT"
] | null | null | null | src/SignalSlotFactory.cpp | Joeasaurus/spina | 00a331aec57c3d18adc9eed02d992b44c659ea10 | [
"MIT"
] | null | null | null | src/SignalSlotFactory.cpp | Joeasaurus/spina | 00a331aec57c3d18adc9eed02d992b44c659ea10 | [
"MIT"
] | 1 | 2021-12-26T17:12:08.000Z | 2021-12-26T17:12:08.000Z | #include "SignalSlotFactory.hpp"
namespace spina {
// Create
typename SignalSlotFactory::signal_ptr SignalSlotFactory::createSignal(const std::string& name) {
signals[name] = std::shared_ptr<signal_t>(new signal_t);
return signals[name];
};
void SignalSlotFactory::createSlot(const std::string& name, const Si... | 29.358491 | 151 | 0.720437 | Joeasaurus |
2e20d4f01525e78ddaa507048601ed6a56e9a05b | 996 | cpp | C++ | tests/Day21.cpp | willkill07/AdventOfCode2021 | 06e62cd8a8c7f1e99374075b7302f6dcfb770bb0 | [
"Apache-2.0"
] | 12 | 2021-12-02T01:44:53.000Z | 2022-02-02T17:22:23.000Z | tests/Day21.cpp | willkill07/AdventOfCode2021 | 06e62cd8a8c7f1e99374075b7302f6dcfb770bb0 | [
"Apache-2.0"
] | null | null | null | tests/Day21.cpp | willkill07/AdventOfCode2021 | 06e62cd8a8c7f1e99374075b7302f6dcfb770bb0 | [
"Apache-2.0"
] | 1 | 2021-12-03T04:25:32.000Z | 2021-12-03T04:25:32.000Z | #include <catch2/catch_all.hpp>
#include "AdventTest.hpp"
#include "AdventDay.hpp"
#include "Day21.hpp"
using namespace day21;
namespace {
char const* input = R"MULTILINE(Player 1 starting position: 4
Player 2 starting position: 8)MULTILINE";
auto const expected_part1 = 739785u;
auto const expected_part2 = 4443560... | 23.714286 | 61 | 0.596386 | willkill07 |
2e223b660845b5275acf039b08fd8bfa13cb2ef8 | 1,164 | cpp | C++ | discrete-maths/matroids/a_schedule.cpp | nothingelsematters/university | 5561969b1b11678228aaf7e6660e8b1a93d10294 | [
"WTFPL"
] | 1 | 2018-06-03T17:48:50.000Z | 2018-06-03T17:48:50.000Z | discrete-maths/matroids/a_schedule.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | null | null | null | discrete-maths/matroids/a_schedule.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | 14 | 2019-04-07T21:27:09.000Z | 2021-12-05T13:37:25.000Z | #include <fstream>
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
int main() {
std::ifstream fin("schedule.in");
size_t quantity;
fin >> quantity;
std::vector<std::pair<long long, long long>> task;
for (size_t i = 0; i < quantity; ++i) {
long long a, b;
fi... | 27.714286 | 72 | 0.485395 | nothingelsematters |
2e24f22ba791b2431b901fb6a773c4b54a471a06 | 524 | hpp | C++ | src/core/Texture.hpp | Xnork/Project-Engine-SDL2 | c49b2c1d83373f027624b3e5ff2f52633100db73 | [
"MIT"
] | null | null | null | src/core/Texture.hpp | Xnork/Project-Engine-SDL2 | c49b2c1d83373f027624b3e5ff2f52633100db73 | [
"MIT"
] | null | null | null | src/core/Texture.hpp | Xnork/Project-Engine-SDL2 | c49b2c1d83373f027624b3e5ff2f52633100db73 | [
"MIT"
] | null | null | null | #ifndef TEXTURE_H
#define TEXTURE_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <iostream>
#include <cstring>
#include "math/Vector2.hpp"
using namespace std;
class Texture
{
public:
Texture();
explicit Texture(const string, SDL_Renderer*);
virtual SDL_Texture *getTextureSDL() noexcept;... | 18.068966 | 59 | 0.719466 | Xnork |
2e26951b789d18a2b4ca0ddb3fca67cce92bff4e | 2,501 | cpp | C++ | Veri/VeriSiniflari/tekmarketbilgileri.cpp | mtc61/techmarket | 64533703db4256686abe428c007fd4a784ad2b5b | [
"Apache-2.0"
] | null | null | null | Veri/VeriSiniflari/tekmarketbilgileri.cpp | mtc61/techmarket | 64533703db4256686abe428c007fd4a784ad2b5b | [
"Apache-2.0"
] | null | null | null | Veri/VeriSiniflari/tekmarketbilgileri.cpp | mtc61/techmarket | 64533703db4256686abe428c007fd4a784ad2b5b | [
"Apache-2.0"
] | null | null | null | #include "tekmarketbilgileri.h"
TEKMarketBilgileri::TEKMarketBilgileri(QObject *parent) : QObject(parent)
{
}
IdTuru TEKMarketBilgileri::getId() const
{
return TeknoMarketId;
}
void TEKMarketBilgileri::setId(const IdTuru &value)
{
if(value == TeknoMarketId)
return;
TeknoMarketId = value;
emit ... | 24.281553 | 123 | 0.738505 | mtc61 |
2e2b00d5922cb0446fdad5d830fa7ec024757705 | 656 | cpp | C++ | codeforces/misc/143a.cpp | saranshbht/codes-and-more-codes | 0bd2e46ca613b3b81e1196d393902e86a43aa353 | [
"MIT"
] | null | null | null | codeforces/misc/143a.cpp | saranshbht/codes-and-more-codes | 0bd2e46ca613b3b81e1196d393902e86a43aa353 | [
"MIT"
] | null | null | null | codeforces/misc/143a.cpp | saranshbht/codes-and-more-codes | 0bd2e46ca613b3b81e1196d393902e86a43aa353 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int r1, r2, c1, c2, d1, d2, a, b, c, d;
cin >> r1 >> r2 >> c1 >> c2 >> d1 >> d2;
int i;
for (i = 1; i <= 9; i++) {
a = i;
b = r1 - a;
c = c1 - a;
d = c2 - b;
if ((a != b) && (a != c) && (a != d) && (b != c) && (b != d) && (c !=... | 27.333333 | 267 | 0.324695 | saranshbht |
2e2c43a247a6e7ad72376193ecffea9d265b1364 | 533 | hpp | C++ | obelus/client/interfaces/i_app_system.hpp | monthyx1337/obelus-hack | 8e83eb89ef56788c1b9c5af66b815824d17f309d | [
"MIT"
] | 36 | 2021-07-08T01:30:44.000Z | 2022-03-25T13:16:59.000Z | obelus/client/interfaces/i_app_system.hpp | monthyx1337/obelus-hack | 8e83eb89ef56788c1b9c5af66b815824d17f309d | [
"MIT"
] | 2 | 2021-09-11T05:11:55.000Z | 2022-01-28T07:49:39.000Z | obelus/client/interfaces/i_app_system.hpp | monthyx1337/obelus-hack | 8e83eb89ef56788c1b9c5af66b815824d17f309d | [
"MIT"
] | 14 | 2021-07-08T00:11:12.000Z | 2022-03-20T11:10:17.000Z | #pragma once
class i_app_system;
typedef void* (*create_interface_fn)(const char* name, int* return_code);
class i_app_system {
public:
virtual bool connect(create_interface_fn factory) = 0;
virtual void disconnect() = 0;
virtual void* query_interface(const char* interface_name) = 0;
virtual int init() = 0;
vir... | 28.052632 | 85 | 0.739212 | monthyx1337 |
2e2e86521956cfb6614f65e650f24e7ec1f7c8d2 | 529 | cpp | C++ | src/trial/services/add_two_ints_client.cpp | miroslavradojevic/agv_motion | 54a030dac4fad679b27ca53071f57b88edc28697 | [
"FSFAP"
] | null | null | null | src/trial/services/add_two_ints_client.cpp | miroslavradojevic/agv_motion | 54a030dac4fad679b27ca53071f57b88edc28697 | [
"FSFAP"
] | null | null | null | src/trial/services/add_two_ints_client.cpp | miroslavradojevic/agv_motion | 54a030dac4fad679b27ca53071f57b88edc28697 | [
"FSFAP"
] | null | null | null | #include <ros/ros.h>
#include <rospy_tutorials/AddTwoInts.h>
int main(int argc, char **argv)
{
ros::init(argc, argv, "add_two_ints_client");
ros::NodeHandle nh;
ros::ServiceClient client = nh.serviceClient<rospy_tutorials::AddTwoInts>("/add_two_ints");
rospy_tutorials::AddTwoInts srv;
srv.request.a... | 25.190476 | 95 | 0.625709 | miroslavradojevic |
2e369229575dc0c6112c4f39ef12c5ffaa7d205d | 1,899 | cpp | C++ | training/Codeforces/685A.cpp | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | 68 | 2017-10-08T04:44:23.000Z | 2019-08-06T20:15:02.000Z | training/Codeforces/685A.cpp | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | null | null | null | training/Codeforces/685A.cpp | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | 18 | 2017-05-31T02:52:23.000Z | 2019-07-05T09:18:34.000Z | #include <bits/stdc++.h>
#define IOS std::ios::sync_with_stdio(false);std::cin.tie(nullptr);
using namespace std;
typedef long l;
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned long ul;
typedef long double ld;
typedef pair<int, int > Pii;
const double pi = acos(-1.0);
const int INF = INT_MAX... | 24.346154 | 67 | 0.441811 | voleking |
aa31c875a706c5943757ad2fcc8eca2e72b9d66d | 1,952 | hpp | C++ | gmsl_camera/src/DataPath.hpp | vehicularkech/gmsl-camera-ros-driver | 1dfadb91c4b5829ca562e362911f1b3dcb7ab083 | [
"MIT"
] | 2 | 2018-04-20T02:26:18.000Z | 2018-10-11T03:20:36.000Z | gmsl_camera/src/DataPath.hpp | vehicularkech/gmsl-camera-ros-driver | 1dfadb91c4b5829ca562e362911f1b3dcb7ab083 | [
"MIT"
] | 1 | 2018-07-12T08:19:31.000Z | 2018-07-12T08:19:31.000Z | gmsl_camera/src/DataPath.hpp | vehicularkech/gmsl-camera-ros-driver | 1dfadb91c4b5829ca562e362911f1b3dcb7ab083 | [
"MIT"
] | 1 | 2019-01-24T03:02:45.000Z | 2019-01-24T03:02:45.000Z | // This code contains NVIDIA Confidential Information and is disclosed
// under the Mutual Non-Disclosure Agreement.
//
// Notice
// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
//... | 42.434783 | 94 | 0.745389 | vehicularkech |
aa334f86237f31707fde90f5165981665b96d318 | 3,259 | cpp | C++ | Grammars/Lab02/Lab02/main.cpp | IceNerd/hogwarts | df1f3e1a94688fd728f6b54653a36a47671293da | [
"Unlicense"
] | null | null | null | Grammars/Lab02/Lab02/main.cpp | IceNerd/hogwarts | df1f3e1a94688fd728f6b54653a36a47671293da | [
"Unlicense"
] | null | null | null | Grammars/Lab02/Lab02/main.cpp | IceNerd/hogwarts | df1f3e1a94688fd728f6b54653a36a47671293da | [
"Unlicense"
] | null | null | null | #include <conio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <vector>
#include "STable.h"
std::string CreateStringFromFile( const std::string& );
std::vector<std::string> Tokenize( const std::string&, const std::string& = " " );
void Analyze( std::vector<std::string>& );
... | 20.496855 | 107 | 0.597423 | IceNerd |
aa382ae061a2609f8c4eb5e7b32e7a96f8354d7f | 10,374 | cpp | C++ | src/main.cpp | d99kris/nchat | 2c51cf2ff7ab7b655067ba290071d9b005544e68 | [
"MIT"
] | 82 | 2019-02-19T15:00:19.000Z | 2022-03-24T20:22:43.000Z | src/main.cpp | d99kris/nchat | 2c51cf2ff7ab7b655067ba290071d9b005544e68 | [
"MIT"
] | 47 | 2019-03-07T13:07:36.000Z | 2022-03-27T14:32:09.000Z | src/main.cpp | d99kris/nchat | 2c51cf2ff7ab7b655067ba290071d9b005544e68 | [
"MIT"
] | 12 | 2019-03-06T18:58:41.000Z | 2022-03-26T17:41:31.000Z | // main.cpp
//
// Copyright (c) 2019-2021 Kristofer Berggren
// All rights reserved.
//
// nchat is distributed under the MIT license, see LICENSE for details.
#include <iostream>
#include <map>
#include <regex>
#include <set>
#include <string>
#include <path.hpp>
#include "appconfig.h"
#include "apputil.h"
#include... | 26.329949 | 119 | 0.591768 | d99kris |
aa3cf804ebd650fa05fdf9ce18400749aad0059f | 298 | cpp | C++ | src/Request/BalanceCheck.cpp | ZavierJin/AccountManager | b09235e71fa43a2c6ece1d6739ef44885d28af34 | [
"Apache-2.0"
] | null | null | null | src/Request/BalanceCheck.cpp | ZavierJin/AccountManager | b09235e71fa43a2c6ece1d6739ef44885d28af34 | [
"Apache-2.0"
] | null | null | null | src/Request/BalanceCheck.cpp | ZavierJin/AccountManager | b09235e71fa43a2c6ece1d6739ef44885d28af34 | [
"Apache-2.0"
] | null | null | null | // BalanceCheck.cpp
// Brief introduction: the implementation of BalanceCheck's method
// Create by Zhang Zhecheng 2020/5/18
#include "Request.h"
namespace request
{
BalanceCheck::BalanceCheck(const string &username)
: UserRequest(username, Kind::BalanceCheck){}
} // namespace request
| 29.8 | 66 | 0.748322 | ZavierJin |
aa3d370266bba86ba940dbe0f1f26b7b6dd23bfb | 14,765 | cpp | C++ | sumo-wrapper/code/par-sumo-wrapper.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | sumo-wrapper/code/par-sumo-wrapper.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | sumo-wrapper/code/par-sumo-wrapper.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <sstream>
#include <map>
#include <chrono>
#include <sys/wait.h>
#include "cInstance.hpp"
#include "simpleXMLParser.hpp"
using namespace std;
typedef struct
{
double GvR; // Original Green v... | 30.256148 | 162 | 0.634338 | esegredo |
aa420e5a2d10e61e1f527d8a68b3453adc373880 | 5,787 | cpp | C++ | src/string.cpp | surreal-Ceres/image32 | 0aabb8aa2f8e45dafea6249a9873080b048183b1 | [
"MIT"
] | 2 | 2020-12-23T16:42:52.000Z | 2021-04-13T20:41:09.000Z | src/string.cpp | surreal-Ceres/image32 | 0aabb8aa2f8e45dafea6249a9873080b048183b1 | [
"MIT"
] | null | null | null | src/string.cpp | surreal-Ceres/image32 | 0aabb8aa2f8e45dafea6249a9873080b048183b1 | [
"MIT"
] | null | null | null | #include "string.h"
#include <iterator>
#include <cstdarg>
#include <vector>
std::string string_to_lower(const std::string& str)
{
std::string result(str);
for(auto it = result.begin(); it != result.end(); it++)
*it = std::tolower(*it);
return result;
}
std::string format_to_string(const char* forma... | 22.257692 | 81 | 0.563332 | surreal-Ceres |
aa4e4438391c48eb8eb8351320b2ba86b86e9bc4 | 9,263 | cpp | C++ | qt/imageDisplay/RasterResource.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | 3 | 2021-06-28T21:07:58.000Z | 2021-07-02T11:21:49.000Z | qt/imageDisplay/RasterResource.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | null | null | null | qt/imageDisplay/RasterResource.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | null | null | null | #include "RasterResource.h"
#include <QMessageBox>
RasterResource::RasterResource(QString filepath, bool withSmoothIn, bool withSmoothOut)
{
// Abrir a imagem e testar se é válida
QImage* srcImage = new QImage();
_isValid = srcImage->load(filepath);
_levels = 0;
_useSmoothIn = withSmoothIn;
_useSmoothOut = with... | 27.900602 | 167 | 0.675159 | e-foto |
aa52f3f111e963b54ded8bd3b1c171624d6797d5 | 5,388 | hpp | C++ | headers/server_enum.hpp | DynasticSponge/Frederick2 | 410ad4a3ca43547d645248e13d27497e6c5b5f26 | [
"MIT"
] | null | null | null | headers/server_enum.hpp | DynasticSponge/Frederick2 | 410ad4a3ca43547d645248e13d27497e6c5b5f26 | [
"MIT"
] | null | null | null | headers/server_enum.hpp | DynasticSponge/Frederick2 | 410ad4a3ca43547d645248e13d27497e6c5b5f26 | [
"MIT"
] | null | null | null | //
// server_enum.hpp
// ~~~~~~~~~~~~~~~
//
// Author: Joseph Adomatis
// Copyright (c) 2020 Joseph R Adomatis (joseph dot adomatis at gmail dot com)
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef SERVER_ENUM_HPP
#define SERVER_ENUM_HP... | 30.100559 | 119 | 0.522086 | DynasticSponge |
aa570e94789ea2eb8d8da55e79805a91cf5f1b09 | 20,497 | cpp | C++ | Assets/FrameCapturer-master/Plugin/fccore/Foundation/PixelFormat.cpp | Okashiou/VJx | 491cc37e3d6eddd78e4c99d5f211c5e2b2d498f0 | [
"MIT"
] | null | null | null | Assets/FrameCapturer-master/Plugin/fccore/Foundation/PixelFormat.cpp | Okashiou/VJx | 491cc37e3d6eddd78e4c99d5f211c5e2b2d498f0 | [
"MIT"
] | null | null | null | Assets/FrameCapturer-master/Plugin/fccore/Foundation/PixelFormat.cpp | Okashiou/VJx | 491cc37e3d6eddd78e4c99d5f211c5e2b2d498f0 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "fcInternal.h"
#include "Buffer.h"
#include "PixelFormat.h"
#define fcEnableISPCKernel
int fcGetPixelSize(fcPixelFormat format)
{
switch (format)
{
case fcPixelFormat_RGBAu8: return 4;
case fcPixelFormat_RGBu8: return 3;
case fcPixelFormat_RGu8: return 2;
case ... | 62.874233 | 123 | 0.690784 | Okashiou |
aa5b53057aedea3d92c9887b302923faca18e753 | 25,676 | cpp | C++ | Editor/src/gdeditor.cpp | guilmont/GDManager | dedb0b6c5e1c55886def5360837cbce2485c0d78 | [
"Apache-2.0"
] | null | null | null | Editor/src/gdeditor.cpp | guilmont/GDManager | dedb0b6c5e1c55886def5360837cbce2485c0d78 | [
"Apache-2.0"
] | null | null | null | Editor/src/gdeditor.cpp | guilmont/GDManager | dedb0b6c5e1c55886def5360837cbce2485c0d78 | [
"Apache-2.0"
] | null | null | null | #include "gdeditor.h"
static std::string type2Label(GDM::Type type)
{
switch (type)
{
case GDM::Type::GROUP:
return "GROUP";
case GDM::Type::INT32:
return "INT32";
case GDM::Type::INT64:
return "INT64";
case GDM::Type::UINT8:
return "UINT8";
case GDM::Type::UINT16:
return "UINT16";
ca... | 26.226762 | 190 | 0.601418 | guilmont |
aa5cb80d29873cd202b9e6d1c585e14ab78e793f | 2,666 | cpp | C++ | tests/lsscript_sequencing.cpp | hamsham/LightScript | 22af688178067ebdb6f053e3916307ed799b3fb9 | [
"BSD-3-Clause"
] | 1 | 2015-11-07T03:59:57.000Z | 2015-11-07T03:59:57.000Z | tests/lsscript_sequencing.cpp | hamsham/LightScript | 22af688178067ebdb6f053e3916307ed799b3fb9 | [
"BSD-3-Clause"
] | null | null | null | tests/lsscript_sequencing.cpp | hamsham/LightScript | 22af688178067ebdb6f053e3916307ed799b3fb9 | [
"BSD-3-Clause"
] | 1 | 2015-10-16T06:07:54.000Z | 2015-10-16T06:07:54.000Z | /*
* File: sequence_test.cpp
* Author: hammy
*
* Created on Feb 26, 2015, 12:38:57 AM
*/
#include <cassert>
#include <iostream>
#include "lightsky/script/Script.h"
template <class data_t> using lsPointer = ls::script::Pointer_t<data_t>;
using lsVariable = ls::script::Variable;
using ls::script::create_variabl... | 33.325 | 84 | 0.684546 | hamsham |
aa5d110c209eafb80b53e1df4929bed17b2a523b | 114 | hpp | C++ | test/old_tests/Composable/precomp.hpp | sylveon/cppwinrt | 4d5c5ae3de386ce1f18c3410a27b9ceb40aa524d | [
"MIT"
] | 859 | 2016-10-13T00:11:52.000Z | 2019-05-06T15:45:46.000Z | test/old_tests/Composable/precomp.hpp | shinsetsu/cppwinrt | ae0378373d2318d91448b8697a91d5b65a1fb2e5 | [
"MIT"
] | 655 | 2019-10-08T12:15:16.000Z | 2022-03-31T18:26:40.000Z | test/old_tests/Composable/precomp.hpp | shinsetsu/cppwinrt | ae0378373d2318d91448b8697a91d5b65a1fb2e5 | [
"MIT"
] | 137 | 2016-10-13T04:19:59.000Z | 2018-11-09T05:08:03.000Z | #pragma once
#pragma warning(disable:4100)
#include "winrt/Windows.Foundation.h"
#include "winrt/Composable.h"
| 16.285714 | 37 | 0.763158 | sylveon |
aa5f519a08763d889fcdd4f1d6cf16cee2c97647 | 888 | cpp | C++ | src/core/RenderBuffer.cpp | Ubpa/UGL | 4db5b8a090ffa1018e52e77209b8723289798531 | [
"MIT"
] | null | null | null | src/core/RenderBuffer.cpp | Ubpa/UGL | 4db5b8a090ffa1018e52e77209b8723289798531 | [
"MIT"
] | null | null | null | src/core/RenderBuffer.cpp | Ubpa/UGL | 4db5b8a090ffa1018e52e77209b8723289798531 | [
"MIT"
] | null | null | null | #include <UGL/RenderBuffer.h>
#include <UGL/Texture2D.h>
using namespace Ubpa;
using namespace Ubpa::gl;
using namespace std;
RenderBuffer::RenderBuffer() {
gl::GenRenderbuffers(1, id.init_ptr());
}
RenderBuffer::~RenderBuffer() {
Clear();
}
RenderBuffer::RenderBuffer(RenderBuffer&& fb) noexcept
: Obj{ move(fb.... | 19.304348 | 102 | 0.717342 | Ubpa |
aa5f82437444424d60c4241dcd3ef5e04ff08539 | 9,565 | cc | C++ | passes/opt/muxpack.cc | jfng/yosys | 2116c585810cddb73777b46ea9aad0d6d511d82b | [
"ISC"
] | 33 | 2018-10-09T16:17:53.000Z | 2022-01-18T11:32:31.000Z | passes/opt/muxpack.cc | jfng/yosys | 2116c585810cddb73777b46ea9aad0d6d511d82b | [
"ISC"
] | 55 | 2018-11-19T21:59:12.000Z | 2021-12-17T11:02:51.000Z | passes/opt/muxpack.cc | jfng/yosys | 2116c585810cddb73777b46ea9aad0d6d511d82b | [
"ISC"
] | 10 | 2019-03-15T17:28:55.000Z | 2021-08-02T16:41:10.000Z | /*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
* 2019 Eddie Hung <eddie@fpgeh.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
*... | 25.921409 | 96 | 0.648824 | jfng |
aa6384a49df1d137e7cfc1c1b7f7957242c33d9a | 935 | cpp | C++ | test/utilities/template.bitset/bitset.members/any.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 1,244 | 2015-01-02T21:08:56.000Z | 2022-03-22T21:34:16.000Z | test/utilities/template.bitset/bitset.members/any.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 125 | 2015-01-22T01:08:00.000Z | 2020-05-25T08:28:17.000Z | test/utilities/template.bitset/bitset.members/any.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 124 | 2015-01-12T15:06:17.000Z | 2022-03-26T07:48:53.000Z | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 20.777778 | 80 | 0.427807 | caiohamamura |
aa65398a61e1b17699300f3639089ecf03236630 | 779 | cpp | C++ | src/debug_gui/types/camera3d.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/debug_gui/types/camera3d.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/debug_gui/types/camera3d.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "../../camera3d.hpp"
#include "../entry_field.hpp"
namespace rev {
const char* Camera3D::getDebugName() const noexcept {
return "Camera3D";
}
bool Camera3D::property(const bool edit) {
auto f = debug::EntryField("Camera3D", edit);
ImGui::Columns(1);
if(f.entry("pose", _rflag.ref<Pose>()))
refPos... | 25.966667 | 54 | 0.620026 | degarashi |
aa668b5cb37ed7dd43b860069a05572ef7871a8c | 1,026 | cpp | C++ | src/materials/PortalScatterer_t.cpp | guillaumetousignant/another_path_tracer | 2738b32f91443ce15d1e7ab8ab77903bdfca695b | [
"MIT"
] | 1 | 2019-08-08T12:19:45.000Z | 2019-08-08T12:19:45.000Z | src/materials/PortalScatterer_t.cpp | guillaumetousignant/another_path_tracer | 2738b32f91443ce15d1e7ab8ab77903bdfca695b | [
"MIT"
] | 38 | 2019-07-11T16:18:00.000Z | 2021-09-16T14:54:36.000Z | src/materials/PortalScatterer_t.cpp | guillaumetousignant/another_path_tracer | 2738b32f91443ce15d1e7ab8ab77903bdfca695b | [
"MIT"
] | null | null | null | #include "materials/PortalScatterer_t.h"
#include "entities/TransformMatrix_t.h"
#include "entities/RandomGenerator_t.h"
APTracer::Materials::PortalScatterer_t::PortalScatterer_t(APTracer::Entities::TransformMatrix_t* transformation, std::list<APTracer::Entities::Medium_t*> medium_list, double scattering_distance,... | 51.3 | 230 | 0.741715 | guillaumetousignant |
aa6bc184df9da1b35fe983d11f2779acaa978ee4 | 1,154 | cpp | C++ | WA/UVa-10410.cpp | chenhw26/OnlineJudgeByChw | 112560816a34062ddaf502d81f25dbb9a2ccd7d5 | [
"MIT"
] | null | null | null | WA/UVa-10410.cpp | chenhw26/OnlineJudgeByChw | 112560816a34062ddaf502d81f25dbb9a2ccd7d5 | [
"MIT"
] | null | null | null | WA/UVa-10410.cpp | chenhw26/OnlineJudgeByChw | 112560816a34062ddaf502d81f25dbb9a2ccd7d5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <set>
using namespace std;
int find(int a, int n, int *arr, int begin = 1){
for(int i = begin; i <= n; ++i)
if(arr[i] == a) return i;
return 0;
}
int main(){
int n;
while(cin >> n){
int bfs[n + 5] = {0}, dfs[n + 5] = {0};
set<int> ans[n + 5];
bool findAns[n + 5] = {0};
for (... | 26.227273 | 93 | 0.533795 | chenhw26 |
aa6ccc40393607ba110b06791af3732e152a2448 | 15,500 | inl | C++ | c++/Palm/PalmField.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Palm/PalmField.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Palm/PalmField.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////
//......................................................................................
// This is a part of AI Library [Arthur's Interfaces Library]. .
// 1998-2001 Arthur Amshukov ... | 38.75 | 195 | 0.684839 | aamshukov |
aa70d7599f31fced9d60ef5bb7c1d4e64bed6af5 | 274 | hh | C++ | extern/clean-core/src/clean-core/stringhash.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/clean-core/src/clean-core/stringhash.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/clean-core/src/clean-core/stringhash.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #pragma once
#include <clean-core/hash_combine.hh>
namespace cc
{
constexpr hash_t stringhash(char const* s)
{
if (!s)
return 0;
hash_t h = hash_combine();
while (*s)
{
h = hash_combine(h, hash_t(*s));
s++;
}
return h;
}
}
| 13.047619 | 42 | 0.547445 | rovedit |
aa714391fa9f24c129d6b44298d1991dc4ad96eb | 2,466 | cpp | C++ | hphp/runtime/debugger/cmd/cmd_quit.cpp | abhishekgahlot/hiphop-php | 5b367ac44a7a9a6e4c777ae0786d1c872d3ae0a9 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-11-05T19:26:02.000Z | 2015-11-05T19:26:02.000Z | hphp/runtime/debugger/cmd/cmd_quit.cpp | abhishekgahlot/hiphop-php | 5b367ac44a7a9a6e4c777ae0786d1c872d3ae0a9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/debugger/cmd/cmd_quit.cpp | abhishekgahlot/hiphop-php | 5b367ac44a7a9a6e4c777ae0786d1c872d3ae0a9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+---------... | 38.53125 | 79 | 0.528792 | abhishekgahlot |
aa729a6109d216204055f776fa7ca358c67e985b | 53,767 | cpp | C++ | join/sax/tests/packreader_test.cpp | mrabine/join | 63c6193f2cc229328c36748d7f9ef8aca915bec3 | [
"MIT"
] | 1 | 2021-09-14T13:53:07.000Z | 2021-09-14T13:53:07.000Z | join/sax/tests/packreader_test.cpp | joinframework/join | 63c6193f2cc229328c36748d7f9ef8aca915bec3 | [
"MIT"
] | 15 | 2021-08-09T23:55:02.000Z | 2021-11-22T11:05:41.000Z | join/sax/tests/packreader_test.cpp | mrabine/join | 63c6193f2cc229328c36748d7f9ef8aca915bec3 | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2021 Mathieu Rabine
*
* 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, ... | 53.659681 | 194 | 0.541168 | mrabine |
aa734a91a83581f5a4606e9bda196fedb55a0dd4 | 509 | cpp | C++ | src/luogu/T101689/24647440_ua_5_632ms_128000k_noO2.cpp | lnkkerst/oj-codes | d778489182d644370b2a690aa92c3df6542cc306 | [
"MIT"
] | null | null | null | src/luogu/T101689/24647440_ua_5_632ms_128000k_noO2.cpp | lnkkerst/oj-codes | d778489182d644370b2a690aa92c3df6542cc306 | [
"MIT"
] | null | null | null | src/luogu/T101689/24647440_ua_5_632ms_128000k_noO2.cpp | lnkkerst/oj-codes | d778489182d644370b2a690aa92c3df6542cc306 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int a[50001];
short b[10001][10001];
int n, m;
int main() {
scanf("%d%d", &n, &m);
for(int i = 1; i <= n; ++i) {
scanf("%d", &a[i]);
for(int j = i; j <= n; j++)
++b[j][a[i]];
}
while(m--) {
int l, r, l1, r1;
sca... | 20.36 | 47 | 0.375246 | lnkkerst |
aa7a2cdd5a856906d26cfc612bb67177e936e88b | 378 | cpp | C++ | src/Functions/left.cpp | chalice19/ClickHouse | 2f38e7bc5c2113935ab86260439bb543a1737291 | [
"Apache-2.0"
] | 8,629 | 2016-06-14T21:03:01.000Z | 2019-09-23T07:46:38.000Z | src/Functions/left.cpp | chalice19/ClickHouse | 2f38e7bc5c2113935ab86260439bb543a1737291 | [
"Apache-2.0"
] | 4,335 | 2016-06-15T12:58:31.000Z | 2019-09-23T11:18:43.000Z | src/Functions/left.cpp | chalice19/ClickHouse | 2f38e7bc5c2113935ab86260439bb543a1737291 | [
"Apache-2.0"
] | 1,700 | 2016-06-15T09:25:11.000Z | 2019-09-23T11:16:38.000Z | #include <Functions/FunctionFactory.h>
#include <Functions/LeftRight.h>
namespace DB
{
void registerFunctionLeft(FunctionFactory & factory)
{
factory.registerFunction<FunctionLeftRight<false, SubstringDirection::Left>>(FunctionFactory::CaseInsensitive);
factory.registerFunction<FunctionLeftRight<true, Substri... | 27 | 115 | 0.809524 | chalice19 |
aa7c59166aa6c18afa7647f939283201e04d1acc | 1,155 | hpp | C++ | test/core/fakes/util_fake_string.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 731 | 2020-05-07T06:22:59.000Z | 2022-03-31T16:36:03.000Z | test/core/fakes/util_fake_string.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 67 | 2020-07-20T19:46:42.000Z | 2022-03-31T15:34:47.000Z | test/core/fakes/util_fake_string.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 15 | 2021-01-29T04:49:11.000Z | 2022-03-04T22:16:31.000Z | #ifndef _UTIL_FAKE_STRING_HPP
#define _UTIL_FAKE_STRING_HPP
#include "util/string.hpp"
#include <cstring>
#include <cwchar>
#include <string>
namespace vind {
namespace util {
//
// The output string of std::wstring is the fake converted string.
// It is the same bytes as bef... | 26.860465 | 81 | 0.571429 | pit-ray |
aa7f133395e07b517688e9d433f61de49ad78047 | 9,479 | cpp | C++ | src/postprocess/buildex/utility/src/fileparser.cpp | Baltoli/He-2 | c3b20da61d8e0d4878e530fe26affa2ec4a4e717 | [
"MIT"
] | null | null | null | src/postprocess/buildex/utility/src/fileparser.cpp | Baltoli/He-2 | c3b20da61d8e0d4878e530fe26affa2ec4a4e717 | [
"MIT"
] | null | null | null | src/postprocess/buildex/utility/src/fileparser.cpp | Baltoli/He-2 | c3b20da61d8e0d4878e530fe26affa2ec4a4e717 | [
"MIT"
] | null | null | null | // file parser and other file operations are grouped in this file
#include <utility/defines.h>
#include <utility/fileparser.h>
#include <analysis/staticinfo.h>
#include <common/common_defines.h>
#include <common/utilities.h>
#include <algorithm>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstr... | 22.462085 | 78 | 0.622323 | Baltoli |
aa838803d3c90f97d190a710bf84c303df627919 | 4,477 | hpp | C++ | frontend/services/lua_service_wrapper/Lua_Service_Wrapper.hpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | frontend/services/lua_service_wrapper/Lua_Service_Wrapper.hpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | frontend/services/lua_service_wrapper/Lua_Service_Wrapper.hpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* Lua_Service_Wrapper.hpp
*
* Copyright (C) 2020 by MegaMol Team
* Alle Rechte vorbehalten.
*/
#pragma once
#include "AbstractFrontendService.hpp"
#include "ScriptPaths.h"
#include "mmcore/LuaAPI.h"
#include "LuaCallbacksCollection.h"
namespace megamol {
namespace frontend {
// the Lua Service Wrapper wr... | 41.841121 | 130 | 0.755193 | xge |
aa88b67294f221a8b29910587df848b66fafbbe6 | 936 | hpp | C++ | LinearAlgebra/operation/equal/equal.hpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | LinearAlgebra/operation/equal/equal.hpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | LinearAlgebra/operation/equal/equal.hpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | #pragma once
#include "equal.h"
#include "operation/utility.hpp"
#include <type_traits>
#include <cmath>
namespace algebra::arithmetic {
template <typename T>
inline bool are_equal(const algebra_vector<T> &left, const algebra_vector<T> &right) {
ensure_match(left, right);
if constexpr (std::is_floating_point_v<T... | 26 | 86 | 0.617521 | suiyili |
aa895fed680a6d5af9e6b8fd0ebc1a0f60d95832 | 1,192 | cpp | C++ | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab7(Array Based Queue)/quetype(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab7(Array Based Queue)/quetype(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab7(Array Based Queue)/quetype(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | #include"quetype.h"
#include <iostream>
using namespace std;
template<class ItemType>
QueType<ItemType>::QueType(int max)
{
maxQue=max+1;
front=maxQue-1;
rear=maxQue-1;
items=new ItemType[maxQue];
}
template<class ItemType>
QueType<ItemType>::QueType()
{
maxQue=501;
front=maxQue-1;
rear=ma... | 16.328767 | 49 | 0.647651 | diptu |
aa8a6dd9e66a1cc30715a03dc91c0460308b3560 | 14,899 | hpp | C++ | src/Core/CommandBuffer.hpp | Shmaug/Stratum | 036eccb824867b019c6ed3c589cfb171e9350c0c | [
"MIT"
] | 4 | 2019-12-13T19:29:39.000Z | 2022-02-15T05:51:47.000Z | src/Core/CommandBuffer.hpp | Shmaug/Stratum | 036eccb824867b019c6ed3c589cfb171e9350c0c | [
"MIT"
] | 2 | 2020-04-08T19:59:31.000Z | 2021-06-14T04:29:42.000Z | src/Core/CommandBuffer.hpp | Shmaug/Stratum | 036eccb824867b019c6ed3c589cfb171e9350c0c | [
"MIT"
] | 4 | 2020-03-03T01:29:10.000Z | 2022-02-15T05:51:52.000Z | #pragma once
#include "Fence.hpp"
#include "Framebuffer.hpp"
#include "Pipeline.hpp"
#include <Common/Profiler.hpp>
namespace stm {
class CommandBuffer : public DeviceResource {
public:
// assumes a CommandPool has been created for this_thread in queueFamily
STRATUM_API CommandBuffer(Device& device, const string&... | 47.906752 | 283 | 0.739177 | Shmaug |
aa8a722a066aa06e84a349f81f0ccfc22909efa5 | 451 | hpp | C++ | code/geodb/utility/as_const.hpp | mbeckem/msc | 93e71ba163a7ffef4eec3e83934fa793f3f50ff6 | [
"MIT"
] | null | null | null | code/geodb/utility/as_const.hpp | mbeckem/msc | 93e71ba163a7ffef4eec3e83934fa793f3f50ff6 | [
"MIT"
] | null | null | null | code/geodb/utility/as_const.hpp | mbeckem/msc | 93e71ba163a7ffef4eec3e83934fa793f3f50ff6 | [
"MIT"
] | null | null | null | #ifndef GEODB_UTILITY_AS_CONST_HPP
#define GEODB_UTILITY_AS_CONST_HPP
#include "geodb/common.hpp"
#include "geodb/type_traits.hpp"
/// \file
/// Const casting utilities.
namespace geodb {
template<typename T>
const T* as_const(const T* ptr) {
return ptr;
}
template<typename T, disable_if_t<std::is_pointer<T>::... | 18.04 | 72 | 0.733925 | mbeckem |
aa8af9ea3459db52b692e8c8a1708ae27e1f1964 | 346 | cpp | C++ | docs/atl-mfc-shared/reference/codesnippet/CPP/cfile-class_12.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/atl-mfc-shared/reference/codesnippet/CPP/cfile-class_12.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/atl-mfc-shared/reference/codesnippet/CPP/cfile-class_12.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | //example for CFile::Remove
TCHAR* pFileName = _T("Remove_File.dat");
try
{
CFile::Remove(pFileName);
}
catch (CFileException* pEx)
{
TRACE(_T("File %20s cannot be removed\n"), pFileName);
pE... | 31.454545 | 69 | 0.416185 | bobbrow |
aa8c47b70bc69e0039c64ad542d5321b16783173 | 7,906 | cpp | C++ | ChaosEngine/MaterialImporter.cpp | adrianam4/Chaos-Engine | 2bc5693c0c25118ec58331c4311eac68c94d4d19 | [
"MIT"
] | null | null | null | ChaosEngine/MaterialImporter.cpp | adrianam4/Chaos-Engine | 2bc5693c0c25118ec58331c4311eac68c94d4d19 | [
"MIT"
] | null | null | null | ChaosEngine/MaterialImporter.cpp | adrianam4/Chaos-Engine | 2bc5693c0c25118ec58331c4311eac68c94d4d19 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "MaterialImporter.h"
#include "ResourceMaterial.h"
#include "DevIL/include/il.h"
#include "DevIL/include/ilu.h"
#include "DevIL/include/ilut.h"
#include <string>
MaterialImporter::MaterialImporter()
{
}
MaterialImporter::~MaterialImporter()
{
}
void MaterialImporter::SaveMaterial... | 28.644928 | 118 | 0.656969 | adrianam4 |
aa8e09d4c4a77647fbda85f91f892ba622a2bc4e | 681 | cpp | C++ | final/pointers/wk3-functions.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | final/pointers/wk3-functions.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | final/pointers/wk3-functions.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
#include "wk3-user.h"
#include "wk3-utilities.h"
void displayUser(const user &user1)
{
cout << "Name: " << user1.name << endl;
cout << "Gender: " << (user1.gender == male ? "male" : "female") << endl;
cout << "Age: " << user1.age << endl;
if... | 21.28125 | 78 | 0.610866 | coderica |
aa97e99fbd607505aaaa60f8e4c1c431c48c9f3f | 2,202 | cc | C++ | sysrap/tests/map_void_int.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | sysrap/tests/map_void_int.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | sysrap/tests/map_void_int.cc | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | // name=map_void_int ; gcc $name.cc -std=c++11 -lstdc++ -o /tmp/$name && /tmp/$name
#include <cassert>
#include <iostream>
#include <vector>
#include <unordered_map>
#include <cstring>
/**
This tests a void* index cache for use with Geant4 objects that lack an index
**/
struct Surf
{
const char* name ;
int... | 24.197802 | 125 | 0.554042 | hanswenzel |
aa98c29cd43c309ccd3c1c7b4a157ff72cc7bb41 | 1,869 | cc | C++ | src/ui/a11y/testing/fake_a11y_manager.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | src/ui/a11y/testing/fake_a11y_manager.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | null | null | null | src/ui/a11y/testing/fake_a11y_manager.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2022 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/ui/a11y/testing/fake_a11y_manager.h"
namespace a11y_testing {
FakeSemanticTree::FakeSemanticTree(
fuchsia::accessibility::semantics::Se... | 40.630435 | 100 | 0.797753 | fabio-d |
aa9964468d6aa4c54aaf83ac6e4a28db73680e87 | 11,531 | cpp | C++ | Benchmarks/leukocyte/lc_dilate/dilate_7_multiddr/src/dilate.cpp | LemonAndRabbit/rodinia-hls | 097e8cf572a9ab04403c4eb0cfdb042f233f4aea | [
"BSD-2-Clause"
] | 16 | 2020-12-28T15:07:53.000Z | 2022-02-16T08:55:40.000Z | Benchmarks/leukocyte/lc_dilate/dilate_7_multiddr/src/dilate.cpp | LemonAndRabbit/rodinia-hls | 097e8cf572a9ab04403c4eb0cfdb042f233f4aea | [
"BSD-2-Clause"
] | null | null | null | Benchmarks/leukocyte/lc_dilate/dilate_7_multiddr/src/dilate.cpp | LemonAndRabbit/rodinia-hls | 097e8cf572a9ab04403c4eb0cfdb042f233f4aea | [
"BSD-2-Clause"
] | 6 | 2020-12-28T07:33:08.000Z | 2022-01-13T16:31:22.000Z | #include "dilate.h"
extern "C" {
const int PARA_FACTOR=16;
float lc_dilate_stencil_core(float img_sample[STREL_ROWS * STREL_COLS])
{
float max = 0.0;
for (int i = 0; i < STREL_ROWS; i++)
#pragma HLS unroll
for (int j = 0; j < STREL_COLS; j++) {
#pragma HLS unroll
float temp = img_s... | 39.62543 | 170 | 0.66447 | LemonAndRabbit |
aa998be3d5886b10d7a197f61b4c004e56109d05 | 2,348 | cc | C++ | cetlib/test/PluginFactory_t.cc | jcfreeman2/cetlib | 2ad242f6d9ec99f23c9730c60ef84036a9b8d8ca | [
"BSD-3-Clause"
] | null | null | null | cetlib/test/PluginFactory_t.cc | jcfreeman2/cetlib | 2ad242f6d9ec99f23c9730c60ef84036a9b8d8ca | [
"BSD-3-Clause"
] | null | null | null | cetlib/test/PluginFactory_t.cc | jcfreeman2/cetlib | 2ad242f6d9ec99f23c9730c60ef84036a9b8d8ca | [
"BSD-3-Clause"
] | 1 | 2022-03-30T15:12:49.000Z | 2022-03-30T15:12:49.000Z | #define BOOST_TEST_MODULE (PluginFactory_t)
#include "boost/test/unit_test.hpp"
#include "cetlib/BasicPluginFactory.h"
#include "cetlib/PluginTypeDeducer.h"
#include "cetlib/test/TestPluginBase.h"
#include "cetlib_except/exception.h"
#include <memory>
#include <string>
using namespace cet;
// PluginFactory tests ar... | 31.306667 | 80 | 0.689097 | jcfreeman2 |
aa9ad566eb58d2ae6327fb53cf8ae1bef9696e24 | 1,859 | hpp | C++ | stapl_release/stapl/views/type_traits/is_identity.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/views/type_traits/is_identity.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/views/type_traits/is_identity.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... | 32.051724 | 74 | 0.579344 | parasol-ppl |
aa9bae64f9ed87d56bd491fa3f13db0fdbf1f1a9 | 8,786 | cc | C++ | chrome/browser/page_load_metrics/observers/use_counter_page_load_metrics_observer_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/page_load_metrics/observers/use_counter_page_load_metrics_observer_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/page_load_metrics/observers/use_counter_page_load_metrics_observer_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/page_load_metrics/observers/use_counter_page_load_metrics_observer.h"
#include <memory>
#include <vector>
#include "base/macros.... | 42.240385 | 95 | 0.773389 | zipated |
aa9dc223835335d51a820d67bf599c19e7106c78 | 861 | cpp | C++ | src/cpp/drawing/CanvasWithProfiler.cpp | Yukihito/alcube | 8aac4e2dd2cb3871b672d92902cf15150c430a56 | [
"MIT"
] | null | null | null | src/cpp/drawing/CanvasWithProfiler.cpp | Yukihito/alcube | 8aac4e2dd2cb3871b672d92902cf15150c430a56 | [
"MIT"
] | null | null | null | src/cpp/drawing/CanvasWithProfiler.cpp | Yukihito/alcube | 8aac4e2dd2cb3871b672d92902cf15150c430a56 | [
"MIT"
] | null | null | null | #include "CanvasWithProfiler.h"
namespace alcube::drawing {
CanvasWithProfiler::CanvasWithProfiler(Camera *camera, utils::Profiler *profiler) : Canvas(camera) {
this->profiler = profiler;
profilers.draw = profiler->create("draw");
profilers.drawAllDrawables = profiler->create("drawAllDrawables");
pro... | 29.689655 | 102 | 0.711963 | Yukihito |
aa9f3c50eba90d00a967fb0d858f6642eba3f888 | 4,169 | cpp | C++ | src/text/freetype/wrap.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/text/freetype/wrap.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/text/freetype/wrap.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "wrap.hpp"
#include "error.hpp"
#include "../../sdl/rw.hpp"
namespace rev {
namespace {
constexpr unsigned int FTUnit = 64;
}
// ---------------------- FTLibrary ----------------------
FTLibrary::FTLibrary() {
FTAssert(FT_Init_FreeType, &_lib);
}
FTLibrary::~FTLibrary() {
if(_lib)
D_FTAssert(FT... | 28.751724 | 113 | 0.673063 | degarashi |
aaa0112e550b865ce0a2d2946b2ac2a5c9099c23 | 1,564 | cpp | C++ | snippets/cpp/VS_Snippets_Winforms/Classic DefaultEventAttribute Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 834 | 2017-06-24T10:40:36.000Z | 2022-03-31T19:48:51.000Z | snippets/cpp/VS_Snippets_Winforms/Classic DefaultEventAttribute Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 7,042 | 2017-06-23T22:34:47.000Z | 2022-03-31T23:05:23.000Z | snippets/cpp/VS_Snippets_Winforms/Classic DefaultEventAttribute Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 1,640 | 2017-06-23T22:31:39.000Z | 2022-03-31T02:45:37.000Z | #using <System.dll>
#using <System.Windows.Forms.dll>
using namespace System;
using namespace System::ComponentModel;
using namespace System::Windows::Forms;
namespace DefaultEventAttributeExample
{
// <Snippet1>
[DefaultEvent("CollectionChanged")]
public ref class TestCollection: public BaseCollection
... | 27.928571 | 69 | 0.661765 | BohdanMosiyuk |
aaa247e81f79f2589581a3e0995f94ebcccca378 | 1,371 | cpp | C++ | src/parser/expression/lambda_expression.cpp | nbenn/duckdb | a7493fec044a3d652389039fc942a3d331cf2c16 | [
"MIT"
] | 1 | 2021-12-13T06:00:18.000Z | 2021-12-13T06:00:18.000Z | src/parser/expression/lambda_expression.cpp | nbenn/duckdb | a7493fec044a3d652389039fc942a3d331cf2c16 | [
"MIT"
] | 32 | 2021-09-24T23:50:09.000Z | 2022-03-29T09:37:26.000Z | src/parser/expression/lambda_expression.cpp | nbenn/duckdb | a7493fec044a3d652389039fc942a3d331cf2c16 | [
"MIT"
] | null | null | null | #include "duckdb/parser/expression/lambda_expression.hpp"
#include "duckdb/common/field_writer.hpp"
#include "duckdb/common/types/hash.hpp"
namespace duckdb {
LambdaExpression::LambdaExpression(unique_ptr<ParsedExpression> lhs, unique_ptr<ParsedExpression> rhs)
: ParsedExpression(ExpressionType::LAMBDA, Expressio... | 32.642857 | 105 | 0.757112 | nbenn |
aaa42d1f553c87847ffef92b7900d9d30b2d4ac2 | 21,482 | cpp | C++ | src/main.cpp | CrackerCat/Ponce | c065c984ae20c9e7c3540042c2d1202b5b0a6b6c | [
"BSL-1.0"
] | 1,270 | 2016-09-23T13:43:00.000Z | 2022-03-27T10:00:02.000Z | src/main.cpp | CrackerCat/Ponce | c065c984ae20c9e7c3540042c2d1202b5b0a6b6c | [
"BSL-1.0"
] | 87 | 2016-09-23T13:50:17.000Z | 2021-05-16T06:02:36.000Z | src/main.cpp | CrackerCat/Ponce | c065c984ae20c9e7c3540042c2d1202b5b0a6b6c | [
"BSL-1.0"
] | 232 | 2016-09-23T15:24:42.000Z | 2022-03-30T13:22:34.000Z | //! \file
/*
** Copyright (c) 2020 - Ponce
** Authors:
** Alberto Garcia Illera agarciaillera@gmail.com
** Francisco Oca francisco.oca.gonzalez@gmail.com
**
** This program is under the terms of the BSD License.
*/
//IDA
#include <idp.hpp>
#include <dbg.hpp>
#include <loader.hp... | 96.331839 | 13,540 | 0.707383 | CrackerCat |
aaa773dbc0c43b8c14227438b71557ccd8d501f6 | 6,932 | cc | C++ | src/apps/vod/VoDUDPServer.cc | talal00/Simu5G | ffbdda3e4cd873b49d7022912fe25e39d1a503e8 | [
"Intel"
] | 58 | 2021-04-15T09:20:26.000Z | 2022-03-31T08:52:23.000Z | src/apps/vod/VoDUDPServer.cc | talal00/Simu5G | ffbdda3e4cd873b49d7022912fe25e39d1a503e8 | [
"Intel"
] | 34 | 2021-05-14T15:05:36.000Z | 2022-03-31T20:51:33.000Z | src/apps/vod/VoDUDPServer.cc | talal00/Simu5G | ffbdda3e4cd873b49d7022912fe25e39d1a503e8 | [
"Intel"
] | 30 | 2021-04-16T05:46:13.000Z | 2022-03-28T15:26:29.000Z | //
// Simu5G
//
// Authors: Giovanni Nardini, Giovanni Stea, Antonio Virdis (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are par... | 33.814634 | 153 | 0.594201 | talal00 |
aaa817e3d4addd5459537bd43baec980757528b9 | 7,027 | cpp | C++ | printscan/wia/drivers/util/gdipconv.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | printscan/wia/drivers/util/gdipconv.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | printscan/wia/drivers/util/gdipconv.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /****************************************************************************
*
* (C) COPYRIGHT 2000, MICROSOFT CORP.
*
* FILE: gdipconv.cpp
*
* VERSION: 1.0
*
* DATE: 11/10/2000
*
* AUTHOR: Dave Parsons
*
* DESCRIPTION:
* Helper functions for using GDI+ to convert image for... | 24.742958 | 96 | 0.54931 | npocmaka |
aaacd4d00260bf51d9070e3beb6b473c489b7652 | 8,724 | cpp | C++ | core/ir/node.cpp | lqwang1025/Eutopia | 5ecb47805fd650bd7580cd3702032a98378e334f | [
"Apache-2.0"
] | 2 | 2021-08-29T00:22:23.000Z | 2021-09-13T13:16:52.000Z | core/ir/node.cpp | lqwang1025/Eutopia | 5ecb47805fd650bd7580cd3702032a98378e334f | [
"Apache-2.0"
] | null | null | null | core/ir/node.cpp | lqwang1025/Eutopia | 5ecb47805fd650bd7580cd3702032a98378e334f | [
"Apache-2.0"
] | null | null | null | /*
* 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 ma... | 25.14121 | 107 | 0.685695 | lqwang1025 |
aab0b70d332efe7a18e716c2ad86348b07e41e71 | 805 | cpp | C++ | src/Tokenizer.cpp | eldermyoshida/Potato-Master | 31efa37b0f2cb4cbf44afda2b38b80053cc89d7f | [
"MIT"
] | null | null | null | src/Tokenizer.cpp | eldermyoshida/Potato-Master | 31efa37b0f2cb4cbf44afda2b38b80053cc89d7f | [
"MIT"
] | null | null | null | src/Tokenizer.cpp | eldermyoshida/Potato-Master | 31efa37b0f2cb4cbf44afda2b38b80053cc89d7f | [
"MIT"
] | null | null | null | //
// Tokenizer.cpp
// Potato-Master
//
// Created by Elder Yoshida on 4/23/15.
// Copyright (c) 2015 Elder Yoshida. All rights reserved.
//
#include "Tokenizer.h"
void Tokenize(const string& str,
vector<string>& tokens,
const string& delimiters = " ")
{
// Skip delimiters at beginning.
string::size_ty... | 29.814815 | 68 | 0.686957 | eldermyoshida |
aab155f3c6d981d9e9afb90b50db0b888f252313 | 445 | cpp | C++ | wwi-2019/choinka.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | wwi-2019/choinka.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | wwi-2019/choinka.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef intmax_t I;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr), cout.tie(nullptr);
I n;
cin >> n;
for (I k = 0; k < 2; ++k)
for (I i = 0; i < n + k; ++i)
cout << string(n - i, ' ') << string(2 * i + 1, '*') << '\n';
for (I k = 0... | 19.347826 | 67 | 0.501124 | Aleshkev |
82b457fc501bd9a5ffce50b88dee587bc5657254 | 1,734 | cpp | C++ | src/IO/gpio/PwmOutput.cpp | uorocketry/rocket-code-2020 | 06e3e56b79653f8c0c3af0cb422531d058a0f7ec | [
"MIT"
] | 8 | 2021-04-04T12:10:40.000Z | 2022-03-25T03:12:25.000Z | src/IO/gpio/PwmOutput.cpp | uorocketry/rocket-code-2020 | 06e3e56b79653f8c0c3af0cb422531d058a0f7ec | [
"MIT"
] | 104 | 2020-01-10T00:47:24.000Z | 2022-03-24T03:54:13.000Z | src/IO/gpio/PwmOutput.cpp | uorocketry/rocket-code-2020 | 06e3e56b79653f8c0c3af0cb422531d058a0f7ec | [
"MIT"
] | 4 | 2021-04-04T12:10:48.000Z | 2022-03-25T03:12:26.000Z | #include "config/config.h"
#if USE_GPIO == 1
#include "PwmOutput.h"
#include <iostream>
#include <spdlog/spdlog.h>
#include <utility>
#include <wiringSerial.h>
#if USE_WIRING_Pi == 1
#include <softPwm.h>
#include <wiringPi.h>
#endif
PwmOutput::PwmOutput(std::string name, const int pin, const int ... | 23.432432 | 98 | 0.60842 | uorocketry |
82b686cf7b10218ba123f71635a7a4dc38dddfaf | 2,834 | cpp | C++ | breeze/conversion/test/roman_test.cpp | gennaroprota/breeze | 7afe88a30dc8ac8b97a76a192dc9b189d9752e8b | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/conversion/test/roman_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | null | null | null | breeze/conversion/test/roman_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// Copyright 2016 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3-C... | 27.784314 | 78 | 0.51976 | gennaroprota |
82b6c82dd2b391f1568fd71f56c83159da297164 | 3,224 | cpp | C++ | Server/src/Services/Resource/ResourceDatabase.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Server/src/Services/Resource/ResourceDatabase.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Server/src/Services/Resource/ResourceDatabase.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 23.532847 | 84 | 0.531638 | achilex |
82b82cd7ee2ee6bbb0c0be93f62c980894f13e20 | 239 | hpp | C++ | include/Node.hpp | behluluysal/sau-data-structures-2020-midterm | 39b21a77943dcdbc9223b8f22690bac766050861 | [
"MIT"
] | null | null | null | include/Node.hpp | behluluysal/sau-data-structures-2020-midterm | 39b21a77943dcdbc9223b8f22690bac766050861 | [
"MIT"
] | null | null | null | include/Node.hpp | behluluysal/sau-data-structures-2020-midterm | 39b21a77943dcdbc9223b8f22690bac766050861 | [
"MIT"
] | null | null | null | #ifndef Node_hpp
#define Node_hpp
#pragma once
#include "iostream"
class Node
{
public:
Node();
Node(int data, Node *prevnew, Node *nextnew);
int getData();
~Node();
Node *next;
Node *prev;
int data;
};
#endif | 13.277778 | 49 | 0.615063 | behluluysal |
82b9bb8fa03488e86044b2df5eeba361aec3b249 | 2,552 | cpp | C++ | Classic Algorithms/Columnar cypher/columnar.cpp | IulianOctavianPreda/EncryptionAlgorithms | 3cbaec3f5a6b9b7c615a20bfd3c6206469deb8f4 | [
"MIT"
] | null | null | null | Classic Algorithms/Columnar cypher/columnar.cpp | IulianOctavianPreda/EncryptionAlgorithms | 3cbaec3f5a6b9b7c615a20bfd3c6206469deb8f4 | [
"MIT"
] | null | null | null | Classic Algorithms/Columnar cypher/columnar.cpp | IulianOctavianPreda/EncryptionAlgorithms | 3cbaec3f5a6b9b7c615a20bfd3c6206469deb8f4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
std::map<int, int> keyMap;
void orderColumns(const std::string &key) {
for (unsigned int i = 0; i < key.length(); i++) {
keyMap[key[i]] = i;
}
}
std::string encrypt(std::string text, const std::string &key) {
unsigned int row, column;
std::string cipher;
column = key.length();
... | 24.538462 | 78 | 0.53605 | IulianOctavianPreda |
82bbb41c98d85bcf17aeb6b4993071f13ad8339f | 2,932 | cc | C++ | jsp/rcm_denoising/horny_toad/examples/bicubic_example.cc | jeffsp/kaggle_denoising | ad0e86a34c8c0c98c95e3ec3fe791a6b75154a27 | [
"MIT"
] | 1 | 2015-06-04T14:34:01.000Z | 2015-06-04T14:34:01.000Z | jsp/rcm_denoising/horny_toad/examples/bicubic_example.cc | jeffsp/kaggle_denoising | ad0e86a34c8c0c98c95e3ec3fe791a6b75154a27 | [
"MIT"
] | null | null | null | jsp/rcm_denoising/horny_toad/examples/bicubic_example.cc | jeffsp/kaggle_denoising | ad0e86a34c8c0c98c95e3ec3fe791a6b75154a27 | [
"MIT"
] | null | null | null | // Bicubic Interpolation Example
//
// Copyright (C) 2004-2011
// Center for Perceptual Systems
// University of Texas at Austin
//
// contact: jeffsp@gmail.com
#include "horny_toad/horny_toad.h"
#include "jack_rabbit/jack_rabbit.h"
#include <cmath>
#include <iostream>
using namespace std;
using namespace horny_toad;... | 32.577778 | 89 | 0.398363 | jeffsp |
82bcba1f9f778d56dc28382e7a990618bdce2a5a | 4,171 | cpp | C++ | sdpsensor.cpp | dizcza/arduino-sdp | 6f4a74cbef4c35a9c8913a2cf51111299089b888 | [
"BSD-3-Clause"
] | null | null | null | sdpsensor.cpp | dizcza/arduino-sdp | 6f4a74cbef4c35a9c8913a2cf51111299089b888 | [
"BSD-3-Clause"
] | null | null | null | sdpsensor.cpp | dizcza/arduino-sdp | 6f4a74cbef4c35a9c8913a2cf51111299089b888 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018, Sensirion AG <joahnnes.winkelmann@sensirion.com>
* 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 co... | 30.896296 | 92 | 0.690961 | dizcza |
82bce099e057cee96fc162bb5fd79780a10a99fd | 2,273 | hh | C++ | include/xpgom/gomwrappedelement.hh | jberkman/gom | 4bccfec5e5ada830a4c5f076dfefb9ad9baab6a5 | [
"MIT"
] | null | null | null | include/xpgom/gomwrappedelement.hh | jberkman/gom | 4bccfec5e5ada830a4c5f076dfefb9ad9baab6a5 | [
"MIT"
] | null | null | null | include/xpgom/gomwrappedelement.hh | jberkman/gom | 4bccfec5e5ada830a4c5f076dfefb9ad9baab6a5 | [
"MIT"
] | null | null | null | /*
The MIT License
Copyright (c) 2008 jacob berkman <jacob@ilovegom.org>
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,... | 37.262295 | 125 | 0.805543 | jberkman |
82be9a432108b936dbab2c6ee1202c494cfb358e | 456 | cpp | C++ | essential/Exercise Files/Chap05/func-operator.cpp | disono/cp-cheat-sheet | 02edee3d822f56770e1a1a3cc4db6be3691a7a38 | [
"MIT"
] | null | null | null | essential/Exercise Files/Chap05/func-operator.cpp | disono/cp-cheat-sheet | 02edee3d822f56770e1a1a3cc4db6be3691a7a38 | [
"MIT"
] | null | null | null | essential/Exercise Files/Chap05/func-operator.cpp | disono/cp-cheat-sheet | 02edee3d822f56770e1a1a3cc4db6be3691a7a38 | [
"MIT"
] | null | null | null | // func-operator.cpp by Bill Weinman <http://bw.org/>
// updated for C++EssT 2018-08-08
#include <cstdio>
using namespace std;
class A {
int a;
public:
A ( const int &a ) : a(a) {}
const int & value() const { return a; }
};
int operator + (const A & lhs, const A & rhs ) {
puts("operator + for class A"... | 19 | 53 | 0.554825 | disono |
82c00462cd78a9c2103827adce5cbd9afc6bb797 | 2,359 | cpp | C++ | Uncategorized/hkccc15j5.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/hkccc15j5.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/hkccc15j5.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int MM = 1005;
int n, m, vis[MM], ad = 1001, bt[MM][MM*2], pre, ass[MM], v1[MM], v2[MM];
bool dp[MM][MM*2], last[MM][MM*2], NO;
vector<int> adj[MM];
char out[MM];
vector<pair<int, int>> v[MM][2];
int dfs(int cur, int id, int val){
int ret = val ? 1 : ... | 24.831579 | 83 | 0.342942 | crackersamdjam |
82c0e01358964e038113049e99c8e730deac79da | 4,109 | cc | C++ | scratch/performance.cc | Marquez607/Wireless-Perf-Sim | 1086759b6dbe7da192225780d5fe6a3da0c5eb07 | [
"MIT"
] | 1 | 2022-03-22T08:08:35.000Z | 2022-03-22T08:08:35.000Z | scratch/performance.cc | Marquez607/Wireless-Perf-Sim | 1086759b6dbe7da192225780d5fe6a3da0c5eb07 | [
"MIT"
] | null | null | null | scratch/performance.cc | Marquez607/Wireless-Perf-Sim | 1086759b6dbe7da192225780d5fe6a3da0c5eb07 | [
"MIT"
] | null | null | null |
// Performance calculation in NS3 without using software
SentPackets
ReceivedPackets
LostPackets
Packet Loss ratio << "%"
Packet delivery ratio << "%"
AvgThroughput<< "Kbps"
End to End Delay <<"ns"
End to End Jitter delay <<"ns"
// OS : ubuntu 16.04 LTS
// NS version ns-3.29
//Explain example with MANET-rout... | 36.6875 | 161 | 0.681188 | Marquez607 |
82c2f5b6572143f3919473671e6ed190fcc7e086 | 2,729 | cc | C++ | emplnofusion/employee2.cc | jorgeventura/spirit | 3ad8ebee54bb294486fe8eead44691bec89532e6 | [
"BSL-1.0"
] | null | null | null | emplnofusion/employee2.cc | jorgeventura/spirit | 3ad8ebee54bb294486fe8eead44691bec89532e6 | [
"BSL-1.0"
] | null | null | null | emplnofusion/employee2.cc | jorgeventura/spirit | 3ad8ebee54bb294486fe8eead44691bec89532e6 | [
"BSL-1.0"
] | null | null | null | #define BOOST_SPIRIT_X3_DEBUG
#include <iostream>
#include <boost/spirit/home/x3.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
#include <string>
#include <vector>
#include <variant>
namespace x3 = boost::spirit::x3;
namespace ast {
struct employee
{
int age;
std::string gname;
std::... | 25.036697 | 115 | 0.45841 | jorgeventura |