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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e0932793cd541b17d107d1d47c468a3170b96e2 | 1,517 | cpp | C++ | client/UDPClient.cpp | connest/BerkeleySockets | e3facc13150409483ab91ec373609715ac832602 | [
"MIT"
] | null | null | null | client/UDPClient.cpp | connest/BerkeleySockets | e3facc13150409483ab91ec373609715ac832602 | [
"MIT"
] | null | null | null | client/UDPClient.cpp | connest/BerkeleySockets | e3facc13150409483ab91ec373609715ac832602 | [
"MIT"
] | null | null | null | #include "UDPClient.h"
#include <iostream>
#include <arpa/inet.h>
#include <unistd.h>
#include <cstring>
UDPClient::UDPClient(const std::string &address, short port)
: IClient(address, port)
{
memset(&server_address, 0, sizeof(server_address));
server_address.sin_family = AF_INET;
server_address.sin... | 19.960526 | 77 | 0.607119 | connest |
3e09e4dd05661b82fafb4fc33c6a746ea5544951 | 310 | cpp | C++ | src/xray/shader_compiler/sources/shader_compiler_library_linkage.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/shader_compiler/sources/shader_compiler_library_linkage.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/shader_compiler/sources/shader_compiler_library_linkage.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 18.05.2010
// Author : Armen Abroyan
// Copyright (C) GSC Game World - 2010
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include <xray/core/library_linkage.h>
| 34.444444 | 77 | 0.325806 | ixray-team |
3e0b7f9e60c94d9507bd52cf0afd05ba81479e02 | 201 | hpp | C++ | unicode_back/character_categories/punctuation_dash.hpp | do-m-en/random_regex_string | 7ded2dcf7c03122a68e66b5db6f94403e8c9c690 | [
"BSL-1.0"
] | null | null | null | unicode_back/character_categories/punctuation_dash.hpp | do-m-en/random_regex_string | 7ded2dcf7c03122a68e66b5db6f94403e8c9c690 | [
"BSL-1.0"
] | null | null | null | unicode_back/character_categories/punctuation_dash.hpp | do-m-en/random_regex_string | 7ded2dcf7c03122a68e66b5db6f94403e8c9c690 | [
"BSL-1.0"
] | null | null | null | #ifndef UNICODE_PUNCTUATION_DASH_HPP_INCLUDED
#define UNICODE_PUNCTUATION_DASH_HPP_INCLUDED
namespace unicode {
// Pd
class punctuation_dash
{
};
}
#endif // UNICODE_PUNCTUATION_DASH_HPP_INCLUDED
| 13.4 | 47 | 0.830846 | do-m-en |
3e0debffd5950077536d0e6189e7c788e3474386 | 15,480 | hpp | C++ | include/hlsv/hlsv_reflect.hpp | mossseank/HLSV | 5725b842ec629536a4156321ac27c926ad063590 | [
"MIT"
] | null | null | null | include/hlsv/hlsv_reflect.hpp | mossseank/HLSV | 5725b842ec629536a4156321ac27c926ad063590 | [
"MIT"
] | null | null | null | include/hlsv/hlsv_reflect.hpp | mossseank/HLSV | 5725b842ec629536a4156321ac27c926ad063590 | [
"MIT"
] | null | null | null | /*
* The HLSV project and all associated files and assets, including this file, are licensed under the MIT license, the
* text of which can be found in the LICENSE file at the root of this project, and is available online at
* (https://opensource.org/licenses/MIT). In the event of redistribution of this cod... | 43 | 138 | 0.702261 | mossseank |
3e0ee372b42dce7b782e0dd26d2b41ea9ff64021 | 10,726 | cxx | C++ | drivers/storage/volsnap/vss/modules/coord/src/reg_util.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | drivers/storage/volsnap/vss/modules/coord/src/reg_util.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | drivers/storage/volsnap/vss/modules/coord/src/reg_util.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1999 Microsoft Corporation
Abstract:
@doc
@module reg_util.cxx | Implementation of the Registry-related functions
@end
Author:
Adi Oltean [aoltean] 09/27/1999
TBD:
Add comments.
Revision History:
Name Date Comments
aoltean 0... | 29.629834 | 114 | 0.571415 | npocmaka |
3e137481138fdf09e3991cecdf367f1246be62c3 | 1,225 | cpp | C++ | tests/Droplet_tests.cpp | padinadrian/droplet | 921415b5fed5a19fa5d7131a79713c2e574ca0d6 | [
"Apache-2.0"
] | null | null | null | tests/Droplet_tests.cpp | padinadrian/droplet | 921415b5fed5a19fa5d7131a79713c2e574ca0d6 | [
"Apache-2.0"
] | null | null | null | tests/Droplet_tests.cpp | padinadrian/droplet | 921415b5fed5a19fa5d7131a79713c2e574ca0d6 | [
"Apache-2.0"
] | null | null | null | /**
* Author: Adrian Padin (padin.adrian@gmail.com)
* Date: 2020/03/16
*/
/* ===== Includes ===== */
#include <gtest/gtest.h>
extern "C" {
#include "Droplet.h"
#include "BackgroundMap.h"
#include "data/maps/droplet_level1_bg.c"
}
/* ===== Tests ===== */
TEST(Position, DropletCheckMovement)
{
/... | 21.12069 | 56 | 0.568163 | padinadrian |
3e1527f339c5acd7412cd6a7a35cb08a7ecef28a | 3,959 | cpp | C++ | UI/GameHUD/Widget/Widget_PlayerSlowMotion.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | UI/GameHUD/Widget/Widget_PlayerSlowMotion.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | UI/GameHUD/Widget/Widget_PlayerSlowMotion.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Widget_PlayerSlowMotion.h"
#include "../../Core/WidgetAni_Mng.h"
#include "Runtime/UMG/Public/Animation/WidgetAnimation.h"
#include "Kismet/KismetMathLibrary.h"
void UWidget_PlayerSlowMotion::NativeConstruct()
{
Super::NativeCo... | 21.994444 | 115 | 0.735034 | Bornsoul |
3e1cd3e9a033fa1b10782747b2d1d830fd9ec04f | 1,048 | cpp | C++ | Editor/Source/Misc/EditorSelection.cpp | jkorn2324/jkornEngine | 5822f2a311ed62e6ca495919872f0f436d300733 | [
"MIT"
] | null | null | null | Editor/Source/Misc/EditorSelection.cpp | jkorn2324/jkornEngine | 5822f2a311ed62e6ca495919872f0f436d300733 | [
"MIT"
] | null | null | null | Editor/Source/Misc/EditorSelection.cpp | jkorn2324/jkornEngine | 5822f2a311ed62e6ca495919872f0f436d300733 | [
"MIT"
] | null | null | null | #include "EditorPCH.h"
#include "EditorSelection.h"
#include "EditorCamera.h"
namespace Editor
{
static Engine::Entity s_selectedEntity;
static bool OnEntityCreated_EditorSelection(Engine::EntityCreatedEvent& event)
{
return true;
}
static bool OnEntityDestroyed_EditorSelection(Engine::EntityDestroyedEvent&... | 23.288889 | 83 | 0.77958 | jkorn2324 |
3e1fa805fa276a6d1adb643d4e9f37eaa8a026bc | 860 | cpp | C++ | vm/exceptions.cpp | aidaka/KayoVM | e86ddb705ebf798f7e9f04a41ab64ca63a7f13f6 | [
"MIT"
] | 1 | 2019-12-09T02:54:51.000Z | 2019-12-09T02:54:51.000Z | vm/exceptions.cpp | aidaka/KayoVM | e86ddb705ebf798f7e9f04a41ab64ca63a7f13f6 | [
"MIT"
] | null | null | null | vm/exceptions.cpp | aidaka/KayoVM | e86ddb705ebf798f7e9f04a41ab64ca63a7f13f6 | [
"MIT"
] | null | null | null | /*
* Author: kayo
*/
#include <cstdlib>
#include "exceptions.h"
#include "interpreter/interpreter.h"
#include "rtda/heap/StringObject.h"
#include "loader/bootstrap_class_loader.h"
#include "rtda/ma/Class.h"
#define EXCEPTION_EXIT (-1)
[[noreturn]] void raiseException(const char *exceptionName, const char *msg)
{
... | 26.060606 | 118 | 0.67093 | aidaka |
4a3d73bb232e353024018ef8732bf6854029ba90 | 3,565 | cxx | C++ | Wells/Widgets/qMRMLMarkupsWellWidget.cxx | tierra-colada/ColadaWells | 3dbad8ac5a9acbf767a443eeb0d2698494bfb6e4 | [
"MIT"
] | null | null | null | Wells/Widgets/qMRMLMarkupsWellWidget.cxx | tierra-colada/ColadaWells | 3dbad8ac5a9acbf767a443eeb0d2698494bfb6e4 | [
"MIT"
] | null | null | null | Wells/Widgets/qMRMLMarkupsWellWidget.cxx | tierra-colada/ColadaWells | 3dbad8ac5a9acbf767a443eeb0d2698494bfb6e4 | [
"MIT"
] | null | null | null | /*==============================================================================
Copyright (c) The Intervention Centre
Oslo University Hospital, Oslo, Norway. All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to ... | 30.211864 | 92 | 0.597195 | tierra-colada |
4a419b245489a7a1facbb4189dfe76de15a0dfda | 5,424 | cpp | C++ | Examples/SetVarDefExample.cpp | alwinw/Janus | d80ec94af69e17e41718b94eea91e5419e600da2 | [
"MIT"
] | 7 | 2020-04-07T20:05:03.000Z | 2022-02-04T10:36:28.000Z | Examples/SetVarDefExample.cpp | alwinw/Janus | d80ec94af69e17e41718b94eea91e5419e600da2 | [
"MIT"
] | null | null | null | Examples/SetVarDefExample.cpp | alwinw/Janus | d80ec94af69e17e41718b94eea91e5419e600da2 | [
"MIT"
] | 1 | 2022-02-12T10:17:51.000Z | 2022-02-12T10:17:51.000Z | //
// DST Janus Library (Janus DAVE-ML Interpreter Library)
//
// Defence Science and Technology (DST) Group
// Department of Defence, Australia.
// 506 Lorimer St
// Fishermans Bend, VIC
// AUSTRALIA, 3207
//
// Copyright 2005-2019 Commonwealth of Australia
//
// Permission is hereby granted, free of charge, to any pe... | 35.45098 | 91 | 0.688975 | alwinw |
4a439ca093c442481cfbaa4b81199266bc2a32d1 | 4,735 | cpp | C++ | booster/lib/shared_object/src/shared_object.cpp | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 388 | 2017-03-01T07:39:21.000Z | 2022-03-30T19:38:41.000Z | booster/lib/shared_object/src/shared_object.cpp | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 81 | 2017-03-08T20:28:00.000Z | 2022-01-23T08:19:31.000Z | booster/lib/shared_object/src/shared_object.cpp | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 127 | 2017-03-05T21:53:40.000Z | 2022-02-25T02:31:01.000Z | #define BOOSTER_SOURCE
#include <booster/shared_object.h>
#include <booster/backtrace.h>
#include <booster/build_config.h>
#include <booster/nowide/convert.h>
#ifdef BOOSTER_WIN_NATIVE
#include <windows.h>
#include <booster/system_error.h>
#else
#include <dlfcn.h>
#endif
#include <iostream>
namespace booster {
#ifde... | 25.320856 | 109 | 0.692291 | gatehouse |
4a4471bdccd0f3b818af66840c59cf4a9dcd7661 | 2,679 | hpp | C++ | library/utility/byte.hpp | SJSURoboticsTeam/urc-control_systems-2020 | 35dff34c1bc0beecc94ad6b8f2d4b551969c6854 | [
"Apache-2.0"
] | 1 | 2020-02-22T20:26:41.000Z | 2020-02-22T20:26:41.000Z | library/utility/byte.hpp | SJSURoboticsTeam/urc-control_systems-2020 | 35dff34c1bc0beecc94ad6b8f2d4b551969c6854 | [
"Apache-2.0"
] | null | null | null | library/utility/byte.hpp | SJSURoboticsTeam/urc-control_systems-2020 | 35dff34c1bc0beecc94ad6b8f2d4b551969c6854 | [
"Apache-2.0"
] | 4 | 2019-10-17T03:42:03.000Z | 2020-05-23T20:32:03.000Z | #pragma once
#include <algorithm>
#include <array>
#include <bit>
#include <climits>
#include <cstdint>
#include <span>
namespace sjsu
{
template <typename T, size_t array_size = sizeof(T)>
constexpr auto ToByteArray(std::endian endian, T value)
{
std::array<uint8_t, array_size> array = {};
static_assert(std::is_... | 25.273585 | 76 | 0.562897 | SJSURoboticsTeam |
4a4499dd57b31069a8775c28f34832d24a4d1c3a | 12,270 | cc | C++ | src/test-string-view.cc | okuoku/wabt | 3dc09d11ff4396c9a4cf903cae2ed6a88f5982b6 | [
"Apache-2.0"
] | 8,664 | 2016-01-13T17:33:19.000Z | 2019-05-06T19:55:36.000Z | src/test-string-view.cc | okuoku/wabt | 3dc09d11ff4396c9a4cf903cae2ed6a88f5982b6 | [
"Apache-2.0"
] | 5,058 | 2016-01-13T17:57:02.000Z | 2019-05-04T15:41:54.000Z | src/test-string-view.cc | okuoku/wabt | 3dc09d11ff4396c9a4cf903cae2ed6a88f5982b6 | [
"Apache-2.0"
] | 1,367 | 2016-01-13T17:54:57.000Z | 2019-04-29T18:16:27.000Z | /*
* Copyright 2017 WebAssembly Community Group participants
*
* 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... | 29.495192 | 80 | 0.681581 | okuoku |
4a4a4afebe687c634b224eb377b4ac969d84a9ed | 1,065 | cpp | C++ | exploringBB/chp09/dcmotor/DCMotorApp.cpp | chaicko/ExploringBeagleBone | 56528557e7d9a328602c65f1b2d837906cb08952 | [
"Apache-2.0"
] | 1 | 2019-05-28T18:38:29.000Z | 2019-05-28T18:38:29.000Z | exploringBB/chp09/dcmotor/DCMotorApp.cpp | chaicko/ExploringBeagleBone | 56528557e7d9a328602c65f1b2d837906cb08952 | [
"Apache-2.0"
] | null | null | null | exploringBB/chp09/dcmotor/DCMotorApp.cpp | chaicko/ExploringBeagleBone | 56528557e7d9a328602c65f1b2d837906cb08952 | [
"Apache-2.0"
] | null | null | null | /* A DC Motor Example
* Written by Derek Molloy for the book "Exploring BeagleBone: Tools and
* Techniques for Building with Embedded Linux" by John Wiley & Sons, 2014
* ISBN 9781118935125. Please see the file README.md in the repository root
* directory for copyright and GNU GPLv3 license information. */
... | 36.724138 | 75 | 0.694836 | chaicko |
4a4e824e4424393ff50c0193a8823f86492c6e56 | 1,532 | cpp | C++ | Physx.NetCore/Source/VehicleDriveSimData.cpp | ronbrogan/Physx.NetCore | ac788494b6aefc4b6633c46e857f199e6ab0a47a | [
"MIT"
] | 187 | 2015-01-02T15:58:10.000Z | 2022-02-20T05:23:13.000Z | PhysX.Net-3.4/PhysX.Net-3/Source/VehicleDriveSimData.cpp | Golangltd/PhysX.Net | fb71e0422d441a16a05ed51348d8afb0328d4b90 | [
"MIT"
] | 37 | 2015-01-10T04:38:23.000Z | 2022-03-18T00:52:27.000Z | PhysX.Net-3.4/PhysX.Net-3/Source/VehicleDriveSimData.cpp | Golangltd/PhysX.Net | fb71e0422d441a16a05ed51348d8afb0328d4b90 | [
"MIT"
] | 63 | 2015-01-11T12:12:44.000Z | 2022-02-05T14:12:49.000Z | #include "StdAfx.h"
#include "VehicleDriveSimData.h"
#include "VehicleEngineData.h"
#include "VehicleGearsData.h"
#include "VehicleClutchData.h"
#include "VehicleAutoBoxData.h"
VehicleDriveSimData::VehicleDriveSimData()
{
_data = new PxVehicleDriveSimData();
}
VehicleDriveSimData::VehicleDriveSimData(PxVehicleDriveSi... | 25.966102 | 69 | 0.806136 | ronbrogan |
4a532efbc43a090eca996a4d7696171696919abc | 1,194 | cc | C++ | lib/fibers/SFibersCalSim.cc | SiFi-CC/sifi-framework | 8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55 | [
"MIT"
] | null | null | null | lib/fibers/SFibersCalSim.cc | SiFi-CC/sifi-framework | 8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55 | [
"MIT"
] | 3 | 2020-05-06T18:22:40.000Z | 2020-05-26T14:00:23.000Z | lib/fibers/SFibersCalSim.cc | SiFi-CC/sifi-framework | 8dba20dcc4dc8b25ca000d58e6eac27b2a94eb55 | [
"MIT"
] | 4 | 2021-02-11T10:44:29.000Z | 2021-06-17T10:50:23.000Z | // @(#)lib/fibers:$Id$
// Author: Rafal Lalik 18/11/2017
/*************************************************************************
* Copyright (C) 2017-2018, Rafał Lalik. *
* All rights reserved. *
* ... | 26.533333 | 98 | 0.468174 | SiFi-CC |
4a56d14d814c86a5b74dd454e0d13525b14a6213 | 475 | cpp | C++ | cppcode/cpp execise/day01/bool.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | cppcode/cpp execise/day01/bool.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | cppcode/cpp execise/day01/bool.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main (void) <%
bool b = true;
cout << boolalpha << b << noboolalpha
<< ' ' << b << endl;
b = false;
cout << boolalpha << b << noboolalpha
<< ' ' << b << endl;
cout << sizeof (bool) << endl;
// b = 1234;
// b = 1.23;
// b = 'A';
// b = "Hello, World !";
// b = *("Hel... | 21.590909 | 38 | 0.48 | jiedou |
4a571ca06f16a0c1c3b327d6a193ad39b17b1a65 | 4,155 | hpp | C++ | include/Hord/Data/TableSchema.hpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | include/Hord/Data/TableSchema.hpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | include/Hord/Data/TableSchema.hpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | /**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file
@brief TableSchema class.
@ingroup data
*/
#pragma once
#include <Hord/config.hpp>
#include <Hord/aux.hpp>
#include <Hord/String.hpp>
#include <Hord/utility.hpp>
#include <Hord/serialization.hpp>
#include <Hord/Data/Defs.hpp>
#includ... | 16.686747 | 72 | 0.635379 | komiga |
4a583509cdbfd5e612eabd578f3b25d0fd2e96a7 | 2,700 | cc | C++ | wrapper/lr_wrapper.cc | KaiminLai/tiny-machine-learning-system | e29625dfb513032b40712663b63f874e2ae6f924 | [
"MIT"
] | 1 | 2019-01-09T16:03:50.000Z | 2019-01-09T16:03:50.000Z | wrapper/lr_wrapper.cc | KaiminLai/tiny-machine-learning-system | e29625dfb513032b40712663b63f874e2ae6f924 | [
"MIT"
] | null | null | null | wrapper/lr_wrapper.cc | KaiminLai/tiny-machine-learning-system | e29625dfb513032b40712663b63f874e2ae6f924 | [
"MIT"
] | null | null | null | #include <iostream>
#include "../src/logistic_regression.h"
#include <ctime>
using namespace Eigen;
using namespace std;
void gen_random(char *s, int len) {
srand(time(NULL));
static const char alphanum[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < len; ++i){
... | 29.347826 | 117 | 0.608148 | KaiminLai |
4a5d94a107e0cd2785d6c29bbd9f46ed9048cb34 | 5,044 | cc | C++ | src/object/file.cc | jcbaillie/urbi | fb17359b2838cdf8d3c0858abb141e167a9d4bdb | [
"BSD-3-Clause"
] | 16 | 2016-05-10T05:50:58.000Z | 2021-10-05T22:16:13.000Z | src/object/file.cc | jcbaillie/urbi | fb17359b2838cdf8d3c0858abb141e167a9d4bdb | [
"BSD-3-Clause"
] | 7 | 2016-09-05T10:08:33.000Z | 2019-02-13T10:51:07.000Z | src/object/file.cc | jcbaillie/urbi | fb17359b2838cdf8d3c0858abb141e167a9d4bdb | [
"BSD-3-Clause"
] | 15 | 2015-01-28T20:27:02.000Z | 2021-09-28T19:26:08.000Z | /*
* Copyright (C) 2008-2012, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <libport/cstdlib>
... | 22.026201 | 80 | 0.519033 | jcbaillie |
4a5f5d3d3d9b840114271eba76557a9bd0402d34 | 1,263 | cpp | C++ | logic/EnabledItemFilter.cpp | Heufneutje/MultiMC5 | 7d1dd2a32f95eacaaea7d808cd07faf99e425977 | [
"Apache-2.0"
] | 2 | 2016-03-29T07:43:32.000Z | 2019-05-31T14:38:04.000Z | logic/EnabledItemFilter.cpp | Heufneutje/MultiMC5 | 7d1dd2a32f95eacaaea7d808cd07faf99e425977 | [
"Apache-2.0"
] | null | null | null | logic/EnabledItemFilter.cpp | Heufneutje/MultiMC5 | 7d1dd2a32f95eacaaea7d808cd07faf99e425977 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2013-2014 MultiMC Contributors
*
* 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... | 28.704545 | 94 | 0.756136 | Heufneutje |
4a60d8d84766f8bfad9320c6f021e7af991f235d | 1,283 | cc | C++ | c/test2.cc | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | 1 | 2017-10-14T04:23:45.000Z | 2017-10-14T04:23:45.000Z | c/test2.cc | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | c/test2.cc | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | void add(Bignum *pa, Bignum *pb) {
for(int i = 0; i < pa->len && i < pb->len; i++) {
pa->arr[i] += pb->arr[i];
}
}
void copyBignum(Bignum *dest, Bignum *src) {
dest->len = src->len;
for(int i = 0; i < src->len; i++) {
dest->arr[i] = src->arr[i];
}
}
Bignum res;
initBignum(&res);
for(int i = 1; i <... | 14.918605 | 51 | 0.550273 | seckcoder |
4a6215f7c75deeee00ed31bae53170713730c627 | 691 | cpp | C++ | pgm15_04.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | 1 | 2021-07-13T03:58:36.000Z | 2021-07-13T03:58:36.000Z | pgm15_04.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | null | null | null | pgm15_04.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | null | null | null | //
// This file contains the C++ code from Program 15.4 of
// "Data Structures and Algorithms
// with Object-Oriented Design Patterns in C++"
// by Bruno R. Preiss.
//
// Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved.
//
// http://www.pads.uwaterloo.ca/Bruno.Preiss/books/opus4/programs... | 26.576923 | 80 | 0.643994 | neharkarvishal |
4a6535087189ba4eb88e868f99c14a777eb2f38f | 4,490 | cpp | C++ | oi/codevs/P3160/main.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | oi/codevs/P3160/main.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | oi/codevs/P3160/main.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #include <cassert>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
#define NMAX 100000
#define SIGMA 28
#define EOFCHAR1 26
#define EOFCHAR2 27
class SuffixTree {
public:
SuffixTree() : size(0), root(new Node) {}
void append(char c) {
static Node *active = root;
... | 23.14433 | 75 | 0.417372 | Riteme |
4a6582e421a94644738cadd7e41a5ede344a106f | 3,943 | cpp | C++ | source/core/render/glfw_windowBuilder.cpp | zeplaz/s_liz_rz | 612ebd97be4d0624b967b1968c45f092ea1c8ddb | [
"MIT"
] | null | null | null | source/core/render/glfw_windowBuilder.cpp | zeplaz/s_liz_rz | 612ebd97be4d0624b967b1968c45f092ea1c8ddb | [
"MIT"
] | null | null | null | source/core/render/glfw_windowBuilder.cpp | zeplaz/s_liz_rz | 612ebd97be4d0624b967b1968c45f092ea1c8ddb | [
"MIT"
] | null | null | null |
#include "glfw_windowBuilder.hpp"
#include "../SL_ZER_namespace_def01.hpp"
window_glfw::~window_glfw()
{
this->shutdown();
}
ERRORCODE window_glfw::init()
{
ERRORCODE co = this->setup_context();
if(co != NO_ERROR)
{
#ifdef DEBUG_01
fmt::print("\n##->ERROR CODE create_window::{}\n", error_to_s... | 21.78453 | 120 | 0.676896 | zeplaz |
4a688579bfdf2b79e2c9facd2c3ccbb790338e94 | 4,722 | cpp | C++ | c/wikipedia/page_parse_dequeuer.cpp | mmonto7/small-world-graph | 8ea1015c24065cb71875620b28c66ffb8348dcae | [
"MIT"
] | 3 | 2016-05-31T07:23:27.000Z | 2018-02-16T00:06:04.000Z | c/wikipedia/page_parse_dequeuer.cpp | mmonto7/small-world-graph | 8ea1015c24065cb71875620b28c66ffb8348dcae | [
"MIT"
] | 2 | 2020-08-31T20:51:20.000Z | 2021-03-30T18:05:25.000Z | c/wikipedia/page_parse_dequeuer.cpp | mmonto7/small-world-graph | 8ea1015c24065cb71875620b28c66ffb8348dcae | [
"MIT"
] | 4 | 2015-01-17T07:31:25.000Z | 2020-08-31T20:49:41.000Z | #define _FILE_OFFSET_BITS 64
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <vector>
#include <list>
#include "wikipedia_xml_parser.h"
#include "wiki_parser.h"
#include "wiki_title_validator.h"
#incl... | 28.618182 | 252 | 0.624947 | mmonto7 |
4a6b66fb771ce459a760bdd25f427650e5893834 | 2,070 | hpp | C++ | include/fea/ui/sfmlinputbackend.hpp | CptAsgard/featherkit | 84e7a119fcb84cd3a4d8ad9ba9b288abe5c56aa5 | [
"Zlib"
] | 22 | 2015-01-13T10:49:38.000Z | 2020-12-23T15:25:59.000Z | include/fea/ui/sfmlinputbackend.hpp | CptAsgard/featherkit | 84e7a119fcb84cd3a4d8ad9ba9b288abe5c56aa5 | [
"Zlib"
] | 27 | 2015-01-11T03:47:27.000Z | 2015-12-10T17:52:17.000Z | include/fea/ui/sfmlinputbackend.hpp | CptAsgard/featherkit | 84e7a119fcb84cd3a4d8ad9ba9b288abe5c56aa5 | [
"Zlib"
] | 7 | 2015-09-18T15:06:45.000Z | 2020-02-19T15:12:34.000Z | #pragma once
#include <fea/config.hpp>
#include <fea/ui/inputbackend.hpp>
#include <SFML/Window.hpp>
namespace fea
{
class FEA_API SFMLInputBackend : public InputBackend
{
public:
SFMLInputBackend(sf::Window& window);
std::queue<Event> fetchEvents() override;
bool ... | 39.056604 | 83 | 0.629469 | CptAsgard |
4a6c3eb3722193437a81c9044d886a61a1116e10 | 16,798 | cpp | C++ | src/linalg/mat_arr_math.cpp | mirkoruether/ann-cpp | 7b7aae3f59b0ab82b4a83c4705f7025077b8bfd5 | [
"MIT"
] | null | null | null | src/linalg/mat_arr_math.cpp | mirkoruether/ann-cpp | 7b7aae3f59b0ab82b4a83c4705f7025077b8bfd5 | [
"MIT"
] | null | null | null | src/linalg/mat_arr_math.cpp | mirkoruether/ann-cpp | 7b7aae3f59b0ab82b4a83c4705f7025077b8bfd5 | [
"MIT"
] | null | null | null | #include "mat_arr_math.h"
#include "mat_arr_math_t.h"
using namespace linalg;
namespace linalg
{
struct _mat_e_by_e_add_kernel
{
fpt operator()(fpt a, fpt b) const
{
return a + b;
}
};
mat_arr mat_element_wise_add(const mat_arr& A, const mat_arr& B, mat_arr* C, const mat_tr tr)
{
return mat_element_b... | 23.105915 | 106 | 0.624836 | mirkoruether |
4a70b65caf147a534596463ea67c3eb62d134bb2 | 3,573 | cpp | C++ | src/net/https/openssl_server.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | src/net/https/openssl_server.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | src/net/https/openssl_server.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | #include <net/https/openssl_server.hpp>
#include <net/openssl/init.hpp>
#include <net/openssl/tls_stream.hpp>
#include <memdisk>
#define LOAD_FROM_MEMDISK
namespace http
{
// https://gist.github.com/darrenjs/4645f115d10aa4b5cebf57483ec82eca
inline void handle_error(const char* file, int lineno, const char* msg) {
... | 30.801724 | 127 | 0.655751 | justinc1 |
4a73474550dfb568e4ff71f431ce047fc4915952 | 6,976 | cpp | C++ | Libs/bullet/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp | stinvi/dava.engine | 2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e | [
"BSD-3-Clause"
] | 26 | 2018-09-03T08:48:22.000Z | 2022-02-14T05:14:50.000Z | Libs/bullet/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | null | null | null | Libs/bullet/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | 45 | 2018-05-11T06:47:17.000Z | 2022-02-03T11:30:55.000Z | /*==================================================================================
Copyright (c) 2008, binaryzebra
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... | 47.135135 | 243 | 0.724914 | stinvi |
4a73c220ee987a66d0220c899940fef195bbe26f | 896 | hpp | C++ | stan/math/rev/fun/log1p_exp.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/rev/fun/log1p_exp.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/rev/fun/log1p_exp.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_REV_FUN_LOG1P_EXP_HPP
#define STAN_MATH_REV_FUN_LOG1P_EXP_HPP
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/prim/fun/inv_logit.hpp>
#include <stan/math/prim/fun/log1p_exp.hpp>
namespace stan {
namespace math {
/**
* Return the log of 1 plus the exponential... | 28.903226 | 76 | 0.722098 | LaudateCorpus1 |
4a759bf0128590cc8ee8c0da81b80a79445de7d0 | 16,447 | cpp | C++ | src/plugins/dist_matrixops/dist_inverse_operation.cpp | kmoham6/phylanx | 252fa5fbb84acaf6f999410e6823b9f8d6693213 | [
"BSL-1.0"
] | null | null | null | src/plugins/dist_matrixops/dist_inverse_operation.cpp | kmoham6/phylanx | 252fa5fbb84acaf6f999410e6823b9f8d6693213 | [
"BSL-1.0"
] | null | null | null | src/plugins/dist_matrixops/dist_inverse_operation.cpp | kmoham6/phylanx | 252fa5fbb84acaf6f999410e6823b9f8d6693213 | [
"BSL-1.0"
] | 1 | 2021-07-25T15:44:01.000Z | 2021-07-25T15:44:01.000Z | // Copyright (c) 2020 Rory Hector
// Copyright (c) 2018-2020 Hartmut Kaiser
//
// 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 <phylanx/config.hpp>
#include <phylanx/execution_tree/annotation.hpp>
#include... | 41.743655 | 87 | 0.516021 | kmoham6 |
4a764191c7adbcb8350eed177c1f465a50fd4279 | 6,780 | cpp | C++ | Tetris Source/BlockOverlay.cpp | mattacer/Tetris | 2a553ec955d7742c9797504464f63af05e981663 | [
"MIT"
] | null | null | null | Tetris Source/BlockOverlay.cpp | mattacer/Tetris | 2a553ec955d7742c9797504464f63af05e981663 | [
"MIT"
] | null | null | null | Tetris Source/BlockOverlay.cpp | mattacer/Tetris | 2a553ec955d7742c9797504464f63af05e981663 | [
"MIT"
] | 1 | 2019-02-07T03:29:13.000Z | 2019-02-07T03:29:13.000Z | /*
BlockOverlay.cpp
Defines the methods and members of the BlockOverlay class.
*/
#include "BlockOverlay.h"
//Default BlockOverlay class constructor
BlockOverlay::BlockOverlay(){
blocks = nullptr;
blockCount = 0;
this->clearGrid();
}
//Constructor that accepts a pointer to a set of Block instance... | 30.403587 | 114 | 0.683628 | mattacer |
4a7a0371f8f2bc0e538528e06a14651e16ac9dcb | 1,325 | hpp | C++ | include/daq_ni.hpp | gadzooks00/AbsoluteThreshold_AIMS-Fork- | aa26ae3af9b165b3d2c95e472c9a20faa302a0c2 | [
"MIT"
] | null | null | null | include/daq_ni.hpp | gadzooks00/AbsoluteThreshold_AIMS-Fork- | aa26ae3af9b165b3d2c95e472c9a20faa302a0c2 | [
"MIT"
] | null | null | null | include/daq_ni.hpp | gadzooks00/AbsoluteThreshold_AIMS-Fork- | aa26ae3af9b165b3d2c95e472c9a20faa302a0c2 | [
"MIT"
] | null | null | null | /*
File: daq_ni.cpp
________________________________
Author(s): Zane Zook (gadzooks@rice.edu)
This file defines the DaqNI class which holds all the
lower level commands sent to the National Instruments DAQ
used for this experiment set. This specific version is
customized to work with the two ATI sensors hooked up
to t... | 27.604167 | 61 | 0.563019 | gadzooks00 |
4a81b95fe28284ed008d5d7bf2e8f4bdcfc653f9 | 196 | cc | C++ | experimental/proto_test.cc | romange/beeri | 60718d0f3133fffdf1500f8844852a79c91d8351 | [
"BSD-2-Clause"
] | 2 | 2015-01-07T06:34:25.000Z | 2019-01-25T10:11:24.000Z | experimental/proto_test.cc | romange/beeri | 60718d0f3133fffdf1500f8844852a79c91d8351 | [
"BSD-2-Clause"
] | null | null | null | experimental/proto_test.cc | romange/beeri | 60718d0f3133fffdf1500f8844852a79c91d8351 | [
"BSD-2-Clause"
] | 1 | 2019-01-25T10:11:28.000Z | 2019-01-25T10:11:28.000Z | #include <gtest/gtest.h>
#include "experimental/addressbook.pb.h"
class ProtoTest : public testing::Test {
};
TEST_F(ProtoTest, Basic) {
tutorial::Person person;
person.set_name("Roman");
} | 17.818182 | 40 | 0.719388 | romange |
4a8a3115f5e63f4538f17364ef7d8aaef909b938 | 194 | cpp | C++ | Source/GCE/Game/Death/PawnDeathComponent.cpp | ssapo/GCE | ddb5dfa2472c2f4ba01bf81d4fac9a64ac861e9f | [
"MIT"
] | 2 | 2019-07-28T13:30:14.000Z | 2019-11-22T08:14:28.000Z | Source/GCE/Game/Death/PawnDeathComponent.cpp | ssapo/GCE | ddb5dfa2472c2f4ba01bf81d4fac9a64ac861e9f | [
"MIT"
] | null | null | null | Source/GCE/Game/Death/PawnDeathComponent.cpp | ssapo/GCE | ddb5dfa2472c2f4ba01bf81d4fac9a64ac861e9f | [
"MIT"
] | 1 | 2019-07-07T13:39:08.000Z | 2019-07-07T13:39:08.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "PawnDeathComponent.h"
UPawnDeathComponent::UPawnDeathComponent()
{
ChessClass = EChessClass::Pawn;
}
| 19.4 | 78 | 0.783505 | ssapo |
4a8a994a09e35902ff3645293eab9b0ea6cede65 | 535 | cpp | C++ | C++/Clase 8/Clase8.1.cpp | Rofernweh/UDPpl | da448091396b3f567f83e2964e8db97f6b8382bc | [
"MIT"
] | null | null | null | C++/Clase 8/Clase8.1.cpp | Rofernweh/UDPpl | da448091396b3f567f83e2964e8db97f6b8382bc | [
"MIT"
] | 1 | 2021-06-29T05:16:19.000Z | 2021-06-29T05:16:19.000Z | C++/Clase 8/Clase8.1.cpp | Rofernweh/UDPpl | da448091396b3f567f83e2964e8db97f6b8382bc | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
/*Se deja caer un objeto.
Se pide al usuario un entero n,donde n es la cantidad de segundos que el usuario desea medir.
Imprimir en pantalla cuanto ha caído el objeto en cada segundo menor a n. */
int main ()
{
float n;
float distancia;
cout << "... | 28.157895 | 95 | 0.635514 | Rofernweh |
4a8bc14b35942e5905161e0890643f8a0fc2439f | 8,323 | inl | C++ | include/volt/math/vec3.inl | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | include/volt/math/vec3.inl | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | include/volt/math/vec3.inl | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | #include "../util/util.hpp"
namespace volt::math {
template<scalar T>
const vec3<T> vec3<T>::zero(0);
template<scalar T>
const vec3<T> vec3<T>::one(1);
template<scalar T>
const vec3<T> vec3<T>::left(-1, 0, 0);
template<scalar T>
const vec3<T> vec3<T>::right(1, 0, 0);
template<scalar T>
const vec3<T> vec3<T>::down... | 23.055402 | 88 | 0.641115 | voltengine |
4a905e489392eb0b97fbfd773b15341812e1a028 | 305 | hpp | C++ | tests/regex/regex_full.hpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 11 | 2021-03-15T07:06:21.000Z | 2021-09-27T13:54:25.000Z | tests/regex/regex_full.hpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | null | null | null | tests/regex/regex_full.hpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 1 | 2021-06-24T10:46:46.000Z | 2021-06-24T10:46:46.000Z | #pragma once
//------------------------------------------------------------------------------
namespace regex_tests {
//------------------------------------------------------------------------------
void run_full();
//------------------------------------------------------------------------------
}
| 21.785714 | 80 | 0.137705 | olegpublicprofile |
4a916439eaae0711688369191b735ef4483c6e05 | 82,405 | cpp | C++ | sdl1/goonies/GO_character.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/goonies/GO_character.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/goonies/GO_character.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | #ifdef KITSCHY_DEBUG_MEMORY
#include "debug_memorymanager.h"
#endif
#ifdef _WIN32
#include "windows.h"
#endif
#include "math.h"
#include "stdlib.h"
#include "string.h"
#include "GL/gl.h"
#include "GL/glu.h"
#include "SDL.h"
#include "SDL_image.h"
#include "SDL_mixer.h"
#include "List.h"
#include "auxiliar.h"
#incl... | 43.531432 | 135 | 0.46263 | pdpdds |
4a92aa08906e8bea87c98c0885d18dfce9960949 | 436 | cpp | C++ | PAT/PAT-B/CPP/1092.最好吃的月饼.cpp | hao14293/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 950 | 2020-02-21T02:39:18.000Z | 2022-03-31T07:27:36.000Z | PAT/PAT-B/CPP/1092.最好吃的月饼.cpp | RestmeF/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 6 | 2020-04-03T13:08:47.000Z | 2022-03-07T08:54:56.000Z | PAT/PAT-B/CPP/1092.最好吃的月饼.cpp | RestmeF/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 131 | 2020-02-22T15:35:59.000Z | 2022-03-21T04:23:57.000Z | #include <iostream>
using namespace std;
int main(){
int n, m, tmp, max = 0, v[1000] = {0};
scanf("%d%d",&n, &m); // n == 5, m == 3
for(int i = 0; i < m; i++){
for(int j = 0; j < n; j++){
scanf("%d", &tmp);
v[j] += tmp;
if(v[j] > max) max = v[j];
}
}
printf("%d\n", max);
int flag = 0;
for(int i = 0... | 18.166667 | 41 | 0.431193 | hao14293 |
4a9430264478d9fc53b88c39816be571904f0221 | 2,459 | hpp | C++ | src/behaviours/include/Action.hpp | BCLab-UNM/SwarmBaseCode-Modular-Public | 2061796570baf65deeb74f29444fcaf3b6464aa1 | [
"MIT"
] | null | null | null | src/behaviours/include/Action.hpp | BCLab-UNM/SwarmBaseCode-Modular-Public | 2061796570baf65deeb74f29444fcaf3b6464aa1 | [
"MIT"
] | null | null | null | src/behaviours/include/Action.hpp | BCLab-UNM/SwarmBaseCode-Modular-Public | 2061796570baf65deeb74f29444fcaf3b6464aa1 | [
"MIT"
] | null | null | null | #ifndef _ACTION_HPP
#define _ACTION_HPP
#include "Velocity.hpp"
#include "Point.hpp"
namespace core {
/**
* An action defined by a linear and an angular velocity
*/
class VelocityAction
{
private:
LinearVelocity _linear;
AngularVelocity _angular;
public:
VelocityAction();
... | 22.354545 | 70 | 0.611224 | BCLab-UNM |
4a9c7f24c0ea0348e4f1ca777afb833e4e77ef4e | 706 | cpp | C++ | higan/target-tomoko/settings/timing.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/target-tomoko/settings/timing.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/target-tomoko/settings/timing.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | TimingSettings::TimingSettings(TabFrame* parent) : TabFrameItem(parent) {
setIcon(Icon::Device::Clock);
setText("Timing");
layout.setMargin(5);
videoLabel.setText("Video:");
videoValue.setText(settings["Timing/Video"].real()).onActivate([&] { update(); });
videoAssign.setText("Assign").onActivate([&] { upd... | 37.157895 | 84 | 0.681303 | ameer-bauer |
4a9eaaa1a2348cac22620013f967b8d2acc03485 | 1,371 | cpp | C++ | ext/stub/java/awt/font/TextLayout_CaretPolicy-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/java/awt/font/TextLayout_CaretPolicy-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/stub/java/awt/font/TextLayout_CaretPolicy-stub.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#include <java/awt/font/TextLayout_CaretPolicy.hpp>
extern void unimplemented_(const char16_t* name);
java::awt::font::TextLayout_CaretPolicy::TextLayout_CaretPolicy(const ::default_init_tag&)
: super(*static_cast< ::... | 31.883721 | 167 | 0.716995 | pebble2015 |
4a9f1b9b1c50adf780dfda7e89ada478540b809e | 4,156 | cpp | C++ | src/misc/log-pri-enum.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | 2 | 2019-02-28T00:28:08.000Z | 2019-10-20T14:39:48.000Z | src/misc/log-pri-enum.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | src/misc/log-pri-enum.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | // ----------------------------------------------------------------------------
// "THE BEER-WARE LICENSE" (Revision 42):
// <ztn@zurreal.com> wrote this file. As long as you retain this notice you
// can do whatever you want with this stuff. If we meet some day, and you think
// this stuff is worth it, you can bu... | 25.975 | 93 | 0.394129 | tilnewman |
4a9f2a73591cd5cfc53c2ee7df808d5c6affe5c6 | 213 | cpp | C++ | test/progress.cpp | ltalirz/util-programs | 93c76cb8f52543b55afdd968f6d8374997031a27 | [
"MIT"
] | null | null | null | test/progress.cpp | ltalirz/util-programs | 93c76cb8f52543b55afdd968f6d8374997031a27 | [
"MIT"
] | null | null | null | test/progress.cpp | ltalirz/util-programs | 93c76cb8f52543b55afdd968f6d8374997031a27 | [
"MIT"
] | null | null | null | #include "boost/progress.hpp"
#include<stdio.h>
int main() {
boost::progress_display d(100);
for(int i = 0; i<100; ++i){
sleep(1);
std::cout << "i\n";
++d;
}
return 0;
}
| 14.2 | 35 | 0.488263 | ltalirz |
4aa0959a974c32187b532dd2aac8287e8be869ca | 54 | cpp | C++ | Algorithm/src/bigword/graph.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | 15 | 2015-11-04T12:53:23.000Z | 2021-08-10T09:53:12.000Z | Algorithm/src/bigword/graph.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | null | null | null | Algorithm/src/bigword/graph.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | 6 | 2015-11-13T10:17:01.000Z | 2020-05-14T07:25:48.000Z | #include "inc.h"
NS_BEGIN(elloop);
NS_END(elloop);
| 7.714286 | 17 | 0.685185 | elloop |
4aa3091a756b04c6d9612c565913cd2d7625d8cf | 2,516 | hpp | C++ | src/debug/debugger.hpp | MFdesigns/uvm | 628f6effc9a98adbc9e6e829b60818d8c0865bf9 | [
"Apache-2.0"
] | 2 | 2020-11-16T22:02:33.000Z | 2021-03-18T16:36:31.000Z | src/debug/debugger.hpp | MFdesigns/uvm | 628f6effc9a98adbc9e6e829b60818d8c0865bf9 | [
"Apache-2.0"
] | null | null | null | src/debug/debugger.hpp | MFdesigns/uvm | 628f6effc9a98adbc9e6e829b60818d8c0865bf9 | [
"Apache-2.0"
] | null | null | null | // ======================================================================== //
// Copyright 2020 Michel Fäh
//
// 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... | 33.546667 | 78 | 0.705087 | MFdesigns |
4aa75e1368cd9a7be201b002cee73b125f1a1616 | 3,016 | cpp | C++ | eyesim_kebabci_yesim_hw5/ConsoleApplication154/main.cpp | eyesimk/CS204-Advanced-Programming | 414a6e1a97aa77bd07f8f3bfbc66da5e3b62421e | [
"MIT"
] | null | null | null | eyesim_kebabci_yesim_hw5/ConsoleApplication154/main.cpp | eyesimk/CS204-Advanced-Programming | 414a6e1a97aa77bd07f8f3bfbc66da5e3b62421e | [
"MIT"
] | null | null | null | eyesim_kebabci_yesim_hw5/ConsoleApplication154/main.cpp | eyesimk/CS204-Advanced-Programming | 414a6e1a97aa77bd07f8f3bfbc66da5e3b62421e | [
"MIT"
] | null | null | null | #include<iostream>
#include <sstream>
#include <string>
#include "Header.h"
//#include your header file here
//do not change anything else
using namespace std;
void printByCopy(Matrix copy) {
copy.print();
}
void fillMatrix(Matrix & mat) {
for (int i = 0; i < mat.getRowNumber(); i++) {
for (int j... | 23.022901 | 95 | 0.575597 | eyesimk |
4aa76f6d30fb1b9fc15aa6c36b5cebc1dcc4f83d | 821 | cpp | C++ | LeetCode-Challenges/2020/5. May/Day 8/solution.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | LeetCode-Challenges/2020/5. May/Day 8/solution.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | LeetCode-Challenges/2020/5. May/Day 8/solution.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | class Solution {
public:
bool checkStraightLine(vector<vector<int>>& coordinates) {
if(coordinates.size()==2)
{
return true;
}
if((coordinates[1][0]-coordinates[0][0])==0)
{
for(int i=0;i<coordinates.size();i++)
{
if((coordi... | 27.366667 | 103 | 0.437272 | Ashwanigupta9125 |
4aa8745a2b7c89c60c1324304802ba09d928b697 | 9,330 | cpp | C++ | src/AC3DPlugins/bitmap_match.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/AC3DPlugins/bitmap_match.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/AC3DPlugins/bitmap_match.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 42 | 2015-12-14T19:13:02.000Z | 2022-03-01T15:15:03.000Z | /*
* Copyright (c) 2007, Laminar Research.
*
* 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, ... | 29.15625 | 130 | 0.683494 | rromanchuk |
4aa91532c457db25d1a06407abdc49d7ccd9ca26 | 7,009 | cxx | C++ | main/winaccessibility/source/service/AccDescendantManagerEventListener.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/winaccessibility/source/service/AccDescendantManagerEventListener.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/winaccessibility/source/service/AccDescendantManagerEventListener.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.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 y... | 30.876652 | 148 | 0.663718 | Grosskopf |
4aabe2ae756f12be5329773dd33dc68f447edc55 | 5,019 | cc | C++ | src/lib/JANA/JParameterManager.cc | mayank185T9/JANA | 58bc4c3dadde185a6bbfd83fe21f9c51df941ce5 | [
"Apache-2.0"
] | null | null | null | src/lib/JANA/JParameterManager.cc | mayank185T9/JANA | 58bc4c3dadde185a6bbfd83fe21f9c51df941ce5 | [
"Apache-2.0"
] | 2 | 2018-04-12T11:25:48.000Z | 2019-04-17T12:59:29.000Z | src/lib/JANA/JParameterManager.cc | mayank185T9/JANA | 58bc4c3dadde185a6bbfd83fe21f9c51df941ce5 | [
"Apache-2.0"
] | 2 | 2018-01-16T14:41:04.000Z | 2019-03-26T17:43:19.000Z | //
// File: JParameterManager.cc
// Created: Thu Oct 12 08:16:11 EDT 2017
// Creator: davidl (on Darwin harriet.jlab.org 15.6.0 i386)
//
// ------ Last repository commit info -----
// [ Date ]
// [ Author ]
// [ Source ]
// [ Revision ]
//
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -... | 39.210938 | 108 | 0.625423 | mayank185T9 |
4ab070033060eed49e14d5fa2bbbd3579b63ed98 | 709 | cpp | C++ | luogu/1068.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | 1 | 2020-05-07T09:26:05.000Z | 2020-05-07T09:26:05.000Z | luogu/1068.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | null | null | null | luogu/1068.cpp | shorn1/OI-ICPC-Problems | 0c18b3297190a0e108c311c74d28351ebc70c3d1 | [
"MIT"
] | null | null | null | #include<cmath>
#include<cctype>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<iostream>
#include<algorithm>
#define ns namespace
#define lol long long
using ns std;
int n,m;
struct Std
{
int k,s;
bool operator < (const Std &x) const
{
return s == x.s ? k < x.k : s > x.s;
}
}a... | 17.725 | 59 | 0.513399 | shorn1 |
4ab2887f7b92ea9ed4e9b11b726f73c0d1f86686 | 15,466 | hpp | C++ | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/cppad/local/checkpoint.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/cppad/local/checkpoint.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/cppad/local/checkpoint.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | /* $Id$ */
# ifndef CPPAD_CHECKPOINT_INCLUDED
# define CPPAD_CHECKPOINT_INCLUDED
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 Bradley M. Bell
CppAD is distributed under multiple licenses. This distribution is under
the term... | 28.274223 | 77 | 0.622074 | rebeccagb |
4ab58751c7c9495aabe61ad57ed348fa5ac4d0dc | 3,524 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgWrappers/osg/Timer.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/osgWrappers/osg/Timer.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgWrappers/osg/Timer.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z | // ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/Type... | 32.934579 | 78 | 0.573496 | UM-ARM-Lab |
4ab8be4a4a3b4b2087557e8b5b73c95a756079eb | 492 | cpp | C++ | fk/modules/scan_modules_worker.cpp | fieldkit/firmware | 09df5c4c5c2f21865cfbb11c9cdc362bb8803ad6 | [
"BSD-3-Clause"
] | 10 | 2019-11-26T11:35:56.000Z | 2021-07-03T07:21:38.000Z | fk/modules/scan_modules_worker.cpp | fieldkit/firmware | 09df5c4c5c2f21865cfbb11c9cdc362bb8803ad6 | [
"BSD-3-Clause"
] | 1 | 2019-07-03T06:27:21.000Z | 2019-09-06T09:21:27.000Z | fk/modules/scan_modules_worker.cpp | fieldkit/firmware | 09df5c4c5c2f21865cfbb11c9cdc362bb8803ad6 | [
"BSD-3-Clause"
] | 1 | 2019-09-23T18:13:51.000Z | 2019-09-23T18:13:51.000Z | #include "modules/scan_modules_worker.h"
#include "modules/scanning.h"
#include "state_manager.h"
namespace fk {
FK_DECLARE_LOGGER("modscan");
ScanModulesWorker::ScanModulesWorker() {
}
void ScanModulesWorker::run(Pool &pool) {
auto lock = get_modmux()->lock();
state::DynamicState dynamic;
if (dynamic... | 18.923077 | 47 | 0.672764 | fieldkit |
4ab9a92c3d210c6a8b428644c685ca82870ab003 | 1,154 | cpp | C++ | LeetCode/006-ZigZagConversion.cpp | BigEggStudy/LeetCode-CPP | 5e56142ae65da1fa72c0f890c357c760d493f783 | [
"MIT"
] | null | null | null | LeetCode/006-ZigZagConversion.cpp | BigEggStudy/LeetCode-CPP | 5e56142ae65da1fa72c0f890c357c760d493f783 | [
"MIT"
] | null | null | null | LeetCode/006-ZigZagConversion.cpp | BigEggStudy/LeetCode-CPP | 5e56142ae65da1fa72c0f890c357c760d493f783 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// Runtime: 16ms
// Memory Usage:
// Link:
//-----------------------------------------------------------------------------
#include "stdafx.h"
#include "006-ZigZagConversion.h"
namespace LeetCode
{
_006_ZigZagConversion::_006_ZigZag... | 25.086957 | 79 | 0.409879 | BigEggStudy |
3859acb39002f86f4b0bc47f1dea4e96007b3c07 | 9,827 | cpp | C++ | example_projects/controlls.cpp | mateuszstompor/ngin | 2a1f864e2aaf1b3eee134f1d7cf126436d05145f | [
"MIT"
] | 7 | 2018-03-28T18:04:25.000Z | 2020-04-21T12:34:55.000Z | example_projects/controlls.cpp | mateuszstompor/ngin | 2a1f864e2aaf1b3eee134f1d7cf126436d05145f | [
"MIT"
] | 61 | 2018-03-01T20:16:49.000Z | 2018-06-28T17:06:14.000Z | example_projects/controlls.cpp | mateuszstompor/ngin | 2a1f864e2aaf1b3eee134f1d7cf126436d05145f | [
"MIT"
] | 1 | 2018-04-07T17:09:51.000Z | 2018-04-07T17:09:51.000Z | //
// controlls.cpp
// ngin_mac
//
// Created by Mateusz Stompór on 28/03/2018.
// Copyright © 2018 Mateusz Stompór. All rights reserved.
//
#include "controlls.hpp"
using namespace ms;
using namespace math;
using namespace transform;
int usedSpotLight = 0;
int usedPointLight = 0;
void key_callback(GLFWwindow* ... | 49.38191 | 173 | 0.614023 | mateuszstompor |
385f07b28d4055d64ab07f828fee900a7b80b509 | 7,193 | cpp | C++ | higan/processor/r65816/algorithms.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/processor/r65816/algorithms.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/processor/r65816/algorithms.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | auto R65816::op_adc_b() {
int result;
if(!regs.p.d) {
result = regs.a.l + rd.l + regs.p.c;
} else {
result = (regs.a.l & 0x0f) + (rd.l & 0x0f) + (regs.p.c << 0);
if(result > 0x09) result += 0x06;
regs.p.c = result > 0x0f;
result = (regs.a.l & 0xf0) + (rd.l & 0xf0) + (regs.p.c << 4) + (result ... | 21.929878 | 90 | 0.52134 | ameer-bauer |
386023257373a030abba175fe5e167462f5f1c27 | 4,872 | cc | C++ | algorithms/vi-map-helpers/src/vi-map-geometry.cc | ethz-asl/maplab_summer | 7d57dabcdc3feffd8e9409686f7565bb77801f08 | [
"Apache-2.0"
] | 3 | 2019-09-16T02:11:58.000Z | 2020-03-20T22:49:32.000Z | algorithms/vi-map-helpers/src/vi-map-geometry.cc | ethz-asl/maplab_summer | 7d57dabcdc3feffd8e9409686f7565bb77801f08 | [
"Apache-2.0"
] | null | null | null | algorithms/vi-map-helpers/src/vi-map-geometry.cc | ethz-asl/maplab_summer | 7d57dabcdc3feffd8e9409686f7565bb77801f08 | [
"Apache-2.0"
] | 3 | 2020-02-28T14:11:54.000Z | 2022-02-25T08:30:50.000Z | #include "vi-map-helpers/vi-map-geometry.h"
#include <limits>
#include <aslam/frames/visual-frame.h>
#include <landmark-triangulation/pose-interpolator.h>
#include <maplab-common/geometry.h>
#include <maplab-common/parallel-process.h>
#include <vi-map/vi-map.h>
namespace vi_map_helpers {
VIMapGeometry::VIMapGeometr... | 35.304348 | 80 | 0.73358 | ethz-asl |
386126fb790690f52145ca624e7325b54122c022 | 1,165 | cc | C++ | LIMoSim/map/osm/osmrelationentry.cc | inet-framework/LIMoSim | d9bdcefe82d41d4c8fd665a268843763fce59363 | [
"MIT"
] | 7 | 2017-07-17T07:13:03.000Z | 2021-10-12T08:39:17.000Z | LIMoSim/map/osm/osmrelationentry.cc | tudo-cni/LIMoSim | f0e4c8d964da18dffecea040775f07da3f5a5d46 | [
"MIT"
] | 1 | 2018-03-08T10:28:01.000Z | 2018-03-08T10:28:01.000Z | LIMoSim/map/osm/osmrelationentry.cc | tudo-cni/LIMoSim | f0e4c8d964da18dffecea040775f07da3f5a5d46 | [
"MIT"
] | 7 | 2017-09-13T09:05:20.000Z | 2022-01-04T17:20:20.000Z | #include "osmrelationentry.h"
namespace LIMoSim
{
OSMRelationEntry::OSMRelationEntry(OSMDocument *_parent) :
OSMEntry(_parent)
{
}
OSMRelationEntry OSMRelationEntry::fromXML(DOMElement *_entry, OSMDocument *_parent)
{
OSMRelationEntry entry(_parent);
entry.id = _entry->getAttribute("id").toInt();
f... | 24.270833 | 84 | 0.561373 | inet-framework |
386136b82c05ed902b3695248be600058dc1bc93 | 1,158 | cpp | C++ | src_smartcontract_db/scan_select/scan_planner/scanner/join/JoinCandidateStack.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract_db/scan_select/scan_planner/scanner/join/JoinCandidateStack.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract_db/scan_select/scan_planner/scanner/join/JoinCandidateStack.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* JoinCandidateStack.cpp
*
* Created on: 2020/09/03
* Author: iizuka
*/
#include "scan_select/scan_planner/scanner/join/JoinCandidateStack.h"
#include "scan_select/scan_planner/scanner/join/AbstractJoinCandidate.h"
namespace codablecash {
JoinCandidateStack::JoinCandidateStack() : markStack(4) {
}
Jo... | 22.269231 | 74 | 0.727116 | alinous-core |
3863eabddc64fe61568f9771c3b45a7c6f2337ce | 60 | cpp | C++ | GameEngine/src/GameEngine/Core/GameObject.cpp | josh-teichro/2DTestGame | b2cc31ce997ed54a0c07709edc1e5d8c2ccccc65 | [
"Apache-2.0"
] | null | null | null | GameEngine/src/GameEngine/Core/GameObject.cpp | josh-teichro/2DTestGame | b2cc31ce997ed54a0c07709edc1e5d8c2ccccc65 | [
"Apache-2.0"
] | null | null | null | GameEngine/src/GameEngine/Core/GameObject.cpp | josh-teichro/2DTestGame | b2cc31ce997ed54a0c07709edc1e5d8c2ccccc65 | [
"Apache-2.0"
] | null | null | null | #include "gepch.h"
#include "GameEngine/Core/GameObject.h"
| 15 | 39 | 0.75 | josh-teichro |
386596058ee2d88fdf87b99b58a07d7757a2f2a8 | 6,607 | cpp | C++ | src/bin/gsqlerr/gsqlerr.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | 1 | 2020-06-30T15:00:50.000Z | 2020-06-30T15:00:50.000Z | src/bin/gsqlerr/gsqlerr.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | src/bin/gsqlerr/gsqlerr.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 27.077869 | 117 | 0.557288 | wotchin |
386642924995cbf3a723b741343feb29859b85a3 | 795 | cpp | C++ | tests/tst_Date/src/tst_Date.cpp | pet2petteam/PetAPI | ee7945d43953b3fcc20216fa51d8ede03f0b0351 | [
"MIT"
] | null | null | null | tests/tst_Date/src/tst_Date.cpp | pet2petteam/PetAPI | ee7945d43953b3fcc20216fa51d8ede03f0b0351 | [
"MIT"
] | null | null | null | tests/tst_Date/src/tst_Date.cpp | pet2petteam/PetAPI | ee7945d43953b3fcc20216fa51d8ede03f0b0351 | [
"MIT"
] | null | null | null | #include <QtTest>
#include <QDate>
#include <Container/ByteBuffer.h>
#include <DataStruct/DateTime.h>
using namespace PetAPI;
class tst_Date : public QObject {
Q_OBJECT
public:
tst_Date() = default;
~tst_Date() = default;
private slots:
void tst_currentDate();
void tst_fromToByteBuffer();
};
void t... | 18.068182 | 48 | 0.713208 | pet2petteam |
3867eedc6fdf01cdebb28c305c98eb8cd8f279e4 | 752 | cpp | C++ | EqNode/src/simplify.cpp | marcusbfs/HydroModel | 4c9793b338eb21898563396c32469a2740002f1e | [
"MIT"
] | null | null | null | EqNode/src/simplify.cpp | marcusbfs/HydroModel | 4c9793b338eb21898563396c32469a2740002f1e | [
"MIT"
] | null | null | null | EqNode/src/simplify.cpp | marcusbfs/HydroModel | 4c9793b338eb21898563396c32469a2740002f1e | [
"MIT"
] | null | null | null | #include "simplify.h"
bool SimplifyEqNode::simplify(EqNode& root)
{
bool changed = joinNumbers(root);
while (joinNumbers(root));
return changed;
}
bool SimplifyEqNode::joinNumbers(EqNode& root)
{
bool changed = false;
if (root.isOperator()) {
bool left_changed = false;
bool right_changed = false;
if (roo... | 18.341463 | 46 | 0.655585 | marcusbfs |
386925525751c603f7445336ffdcd6fffc128c2f | 966 | cpp | C++ | vespalib/src/vespa/vespalib/data/simple_buffer.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 4,054 | 2017-08-11T07:58:38.000Z | 2022-03-31T22:32:15.000Z | vespalib/src/vespa/vespalib/data/simple_buffer.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 4,854 | 2017-08-10T20:19:25.000Z | 2022-03-31T19:04:23.000Z | vespalib/src/vespa/vespalib/data/simple_buffer.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 541 | 2017-08-10T18:51:18.000Z | 2022-03-11T03:18:56.000Z | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "simple_buffer.h"
#include <cassert>
namespace vespalib {
SimpleBuffer::SimpleBuffer()
: _data(),
_used(0)
{
}
SimpleBuffer::~SimpleBuffer() = default;
Memory
SimpleBuffer::obtain()
{
ret... | 18.576923 | 104 | 0.662526 | Anlon-Burke |
386c1ea3018e31b0fd351772ca96ac28d05b9a1f | 589 | cpp | C++ | src/pkg_deb/prerm.cpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | src/pkg_deb/prerm.cpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | src/pkg_deb/prerm.cpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | #include <pkg/deb/prerm.hpp>
#include <pkg/utils.hpp>
#include <sstream>
using namespace std;
using namespace pkg::deb;
extern char _binary_resources_pkg_deb_prerm_sh_start;
extern char _binary_resources_pkg_deb_prerm_sh_end;
prerm::prerm() {
stringstream ss;
char *p = &_binary_resources_pkg_deb_prerm_sh_... | 20.310345 | 56 | 0.721562 | naughtybikergames |
387390a4844ec0b37df0dc6079d78f01f235962e | 7,175 | cpp | C++ | Samples/MediaEditing/cpp/Scenario1_TrimAndSaveClip.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,504 | 2019-05-07T06:56:42.000Z | 2022-03-31T19:37:59.000Z | Samples/MediaEditing/cpp/Scenario1_TrimAndSaveClip.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 314 | 2019-05-08T16:56:30.000Z | 2022-03-21T07:13:45.000Z | Samples/MediaEditing/cpp/Scenario1_TrimAndSaveClip.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,219 | 2019-05-07T00:47:26.000Z | 2022-03-30T21:12:31.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 41.715116 | 140 | 0.65547 | dujianxin |
38757d249e2171385af67dca661693a08dac9f8c | 2,184 | cpp | C++ | _KaramayEngine/karamay_engine_graphics_unit_cmake/karamay_engine_graphics_unit/source/graphics/vulkan/device_object/render_pass.cpp | Karamays/karamay_engine | 858054ea5155d0b690b7cf17d0e6a6266e0b0b9c | [
"MIT"
] | null | null | null | _KaramayEngine/karamay_engine_graphics_unit_cmake/karamay_engine_graphics_unit/source/graphics/vulkan/device_object/render_pass.cpp | Karamays/karamay_engine | 858054ea5155d0b690b7cf17d0e6a6266e0b0b9c | [
"MIT"
] | null | null | null | _KaramayEngine/karamay_engine_graphics_unit_cmake/karamay_engine_graphics_unit/source/graphics/vulkan/device_object/render_pass.cpp | Karamays/karamay_engine | 858054ea5155d0b690b7cf17d0e6a6266e0b0b9c | [
"MIT"
] | 1 | 2022-01-29T08:24:14.000Z | 2022-01-29T08:24:14.000Z | #include "render_pass.h"
#include "pooled_object/command_buffer.h"
#include "framebuffer.h"
render_pass::render_pass(device& dev) : device_object(dev)
{
}
render_pass::~render_pass()
{
deallocate();
}
bool render_pass::allocate(const std::vector<VkAttachmentDescription>& attachments, const std::vector<VkSubpassD... | 31.652174 | 189 | 0.742674 | Karamays |
3877e4f4709c1187ccaa0646bed3720bb53a4552 | 233 | cpp | C++ | src/model/Edge.cpp | hpedrorodrigues/Graphs | 1e6427317d8134c7cd2bd82500c048b8fe0dc77d | [
"MIT"
] | 2 | 2016-03-07T03:33:08.000Z | 2016-12-26T21:30:35.000Z | src/model/Edge.cpp | hpedrorodrigues/Graphs | 1e6427317d8134c7cd2bd82500c048b8fe0dc77d | [
"MIT"
] | null | null | null | src/model/Edge.cpp | hpedrorodrigues/Graphs | 1e6427317d8134c7cd2bd82500c048b8fe0dc77d | [
"MIT"
] | null | null | null | #include "Edge.h"
Edge::Edge(int originVertexId, int destinationVertexId, int weight) {
this->originVertexId = originVertexId;
this->destinationVertexId = destinationVertexId;
this->weight = weight;
};
Edge::~Edge() {
} | 23.3 | 69 | 0.712446 | hpedrorodrigues |
3879171c305c4ec51d069387dc6db8d8ff397276 | 2,514 | cpp | C++ | Nasko/DatingAgency/agency.cpp | slaviborisov/shu.bg | 1ed9a65fff1512d18a3e4cde90030abb450f0d9f | [
"Apache-2.0"
] | null | null | null | Nasko/DatingAgency/agency.cpp | slaviborisov/shu.bg | 1ed9a65fff1512d18a3e4cde90030abb450f0d9f | [
"Apache-2.0"
] | null | null | null | Nasko/DatingAgency/agency.cpp | slaviborisov/shu.bg | 1ed9a65fff1512d18a3e4cde90030abb450f0d9f | [
"Apache-2.0"
] | null | null | null | #include "agency.h"
#include <iostream>
#include <string>
using namespace std;
CAgency::CAgency()
{
m = NULL;
total_members = 0;
cout<< "Въведете име на агенцията: ";
getline(cin,agency_name);
}
CAgency::CAgency(string _agency_name)
{
m = NULL;
total_members = 0;
agency_name = _agency_nam... | 20.95 | 98 | 0.585123 | slaviborisov |
387b2b0bcfcf0c7dde3e56e2549152b3c1437fe9 | 5,375 | cpp | C++ | Esami/Laboratorio20160711/vector_graphics.cpp | eMDi94/EDM-ingmo | 2b53194d862dea87a1f95305511c70c155dcc42c | [
"MIT"
] | 2 | 2018-08-16T00:34:55.000Z | 2019-02-10T00:59:05.000Z | Esami/Laboratorio20160711/vector_graphics.cpp | eMDi94/EDM-ingmo | 2b53194d862dea87a1f95305511c70c155dcc42c | [
"MIT"
] | null | null | null | Esami/Laboratorio20160711/vector_graphics.cpp | eMDi94/EDM-ingmo | 2b53194d862dea87a1f95305511c70c155dcc42c | [
"MIT"
] | null | null | null | #include "vector_graphics.h"
#include <stdexcept>
#include <string>
#include <iterator>
using namespace std;
using namespace vector_graphics;
////////////////////////////////////////////
/* element_value dummy implementation*/
///////////////////////////////////////////
const value& element_value::valu... | 22.395833 | 106 | 0.589395 | eMDi94 |
387f0a903d2c6938d483b75114c24ae5dab90648 | 3,427 | cpp | C++ | image_compression/PicReader.cpp | teamwong111/Cpp-Programming-Course | 90a45cc6c228bd003a2f75071e170db729f489ce | [
"MIT"
] | null | null | null | image_compression/PicReader.cpp | teamwong111/Cpp-Programming-Course | 90a45cc6c228bd003a2f75071e170db729f489ce | [
"MIT"
] | null | null | null | image_compression/PicReader.cpp | teamwong111/Cpp-Programming-Course | 90a45cc6c228bd003a2f75071e170db729f489ce | [
"MIT"
] | null | null | null | #include "PicReader.h"
PicReader::PicReader() : m_pConvertedSourceBitmap(nullptr), m_pIWICFactory(nullptr) {
init();
}
PicReader::~PicReader() {
if (hFile != NULL) CloseHandle(hFile);
SafeRelease(m_pConvertedSourceBitmap);
SafeRelease(m_pIWICFactory);
CoUninitialize();
}
bool PicReader::checkHR(HRESULT hr) {
r... | 29.290598 | 148 | 0.71958 | teamwong111 |
38800c253be6927b3a9d17632fb952481613e280 | 237 | cc | C++ | tests/cc/usdt_test_lib.cc | yzhao1012/bcc | 15340c44b98d8ee97a6dce775de614fd268cee13 | [
"Apache-2.0"
] | 7 | 2020-08-24T01:56:06.000Z | 2022-02-26T15:49:44.000Z | tests/cc/usdt_test_lib.cc | yzhao1012/bcc | 15340c44b98d8ee97a6dce775de614fd268cee13 | [
"Apache-2.0"
] | 9 | 2021-07-29T21:15:28.000Z | 2022-02-16T18:17:49.000Z | tests/cc/usdt_test_lib.cc | yzhao1012/bcc | 15340c44b98d8ee97a6dce775de614fd268cee13 | [
"Apache-2.0"
] | 8 | 2019-01-25T21:48:34.000Z | 2022-03-15T16:21:50.000Z | #include <sys/types.h>
#include <unistd.h>
#include "folly/tracing/StaticTracepoint.h"
extern "C" {
int lib_probed_function() {
int an_int = 42 + getpid();
FOLLY_SDT(libbcc_test, sample_lib_probe_1, an_int);
return an_int;
}
}
| 15.8 | 53 | 0.708861 | yzhao1012 |
3882316b002ee690a8114dfe82b252feddd3579e | 495 | cpp | C++ | Source/FSD/Private/FirstPersonNiagaraComponent.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSD/Private/FirstPersonNiagaraComponent.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSD/Private/FirstPersonNiagaraComponent.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "FirstPersonNiagaraComponent.h"
class UNiagaraSystem;
class USceneComponent;
class UNiagaraComponent;
UNiagaraComponent* UFirstPersonNiagaraComponent::SpawnFirstPersonEmitterAttached(UNiagaraSystem* inNiagaraSystem, USceneComponent* AttachToComponent, FName AttachPointName, FVector Location, FRotator Rotatio... | 35.357143 | 295 | 0.850505 | Dr-Turtle |
3882aef1bd1d6034390d8f633c3f77213d12220c | 1,742 | cpp | C++ | archive/3/siec_wifi.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | archive/3/siec_wifi.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | archive/3/siec_wifi.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef int I;
typedef float F;
I n, k;
F pos[1000000];
bool is_possible(F range) {
I routers_used = 0;
F handled_up_to = -1.0;
for(I i = 0; i < n; ++i) {
if(pos[i] > handled_up_to) {
++routers_used;
if(routers_used > k) {
... | 21.506173 | 57 | 0.359357 | Aleshkev |
388594e437dc155e060cd8a311efac1ffe393462 | 5,249 | cc | C++ | chrome/browser/chromeos/policy/temp_certs_cache_nss_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/chromeos/policy/temp_certs_cache_nss_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/chromeos/policy/temp_certs_cache_nss_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/chromeos/policy/temp_certs_cache_nss.h"
#include <cert.h>
#include <certdb.h>
#include <secitem.h>
#include <string>
#include <... | 37.492857 | 79 | 0.73233 | zipated |
3885a60817f109fd83538e683015641709bee852 | 1,487 | cpp | C++ | ojcpp/leetcode/000/086_m_partitonlist.cpp | softarts/oj | 2f51f360a7a6c49e865461755aec2f3a7e721b9e | [
"Apache-2.0"
] | 3 | 2019-05-04T03:26:02.000Z | 2019-08-29T01:20:44.000Z | ojcpp/leetcode/000/086_m_partitonlist.cpp | softarts/oj | 2f51f360a7a6c49e865461755aec2f3a7e721b9e | [
"Apache-2.0"
] | null | null | null | ojcpp/leetcode/000/086_m_partitonlist.cpp | softarts/oj | 2f51f360a7a6c49e865461755aec2f3a7e721b9e | [
"Apache-2.0"
] | null | null | null | //
// Created by rui.zhou on 3/14/2019.
//
/*
* Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of the two partitions.
Example:
Input: head = 1->4->3->2->5->2, x = 3
Ou... | 23.983871 | 128 | 0.531271 | softarts |
38869a6ca5e0a74324d47afaeb7467cfe4b731d8 | 6,283 | cc | C++ | gram.cc | cadencorontzos/statsAndChats | aa402ce6215011f8d0ddf39d8426c6edf78705c9 | [
"Apache-2.0"
] | null | null | null | gram.cc | cadencorontzos/statsAndChats | aa402ce6215011f8d0ddf39d8426c6edf78705c9 | [
"Apache-2.0"
] | null | null | null | gram.cc | cadencorontzos/statsAndChats | aa402ce6215011f8d0ddf39d8426c6edf78705c9 | [
"Apache-2.0"
] | null | null | null | #include <string>
#include <iostream>
#include "gram.hh"
#include <ctime>
#include <cstdlib>
bool isPrime(int n) {
// Handle the obvious cases, including even ones.
if ((n <= 2) || (n % 2 == 0)) {
return (n == 2);
}
// Try several odd divisors.
int d = 3;
while (d*d <= n) {
if (n % d == 0) {
... | 24.447471 | 85 | 0.627726 | cadencorontzos |
3887ef153a9dc08fddd6f863a5722c7272ac413c | 727 | cpp | C++ | source/plants/WilczeJagody.cpp | Silentsky0/po-project-species-rivalry | c754ebad03877f2af122ba5bb42feaf99b57829f | [
"MIT"
] | null | null | null | source/plants/WilczeJagody.cpp | Silentsky0/po-project-species-rivalry | c754ebad03877f2af122ba5bb42feaf99b57829f | [
"MIT"
] | null | null | null | source/plants/WilczeJagody.cpp | Silentsky0/po-project-species-rivalry | c754ebad03877f2af122ba5bb42feaf99b57829f | [
"MIT"
] | null | null | null | #include "WilczeJagody.h"
WilczeJagody::WilczeJagody(int y, int x){
this->x = x;
this->y = y;
this->strength = 99;
this->initiative = 0;
this->age = 0;
this->name = "Wilcze Jagody";
this->is_plant = true;
}
WilczeJagody::~WilczeJagody(){
}
void WilczeJagody::rysowanie() {
std::cout << "J";
}
void WilczeJag... | 27.961538 | 275 | 0.68088 | Silentsky0 |
388f35cc27b82c0c1122138fe889e7f073201a93 | 1,273 | cpp | C++ | tests/WordStatics.cpp | chenzhengxi/example | 07a8436e92ccab8e330d2a77e2cca23b8a540df3 | [
"MIT"
] | null | null | null | tests/WordStatics.cpp | chenzhengxi/example | 07a8436e92ccab8e330d2a77e2cca23b8a540df3 | [
"MIT"
] | null | null | null | tests/WordStatics.cpp | chenzhengxi/example | 07a8436e92ccab8e330d2a77e2cca23b8a540df3 | [
"MIT"
] | null | null | null | #include "WordStatics.h"
#include <map>
#include <vector>
#include <algorithm>
std::string format(const std::pair<std::string, int> &words)
{
return words.first + ":" + std::to_string(words.second);
}
std::map<std::string, int> split(const std::string &words)
{
int pos = 0;
std::map<std::string, int> tmp;... | 24.018868 | 97 | 0.559309 | chenzhengxi |
3892a8f0d51acea61a7896cd00e3973edd0f961c | 1,087 | hpp | C++ | src/Nest/Utils/PrintTimer.hpp | CristianDragu/sparrow | 49844c2329ac001c3a0779baae7a2f02743c4494 | [
"MIT"
] | 80 | 2015-05-05T12:21:50.000Z | 2022-03-30T18:38:48.000Z | src/Nest/Utils/PrintTimer.hpp | CristianDragu/sparrow | 49844c2329ac001c3a0779baae7a2f02743c4494 | [
"MIT"
] | 51 | 2016-09-09T13:44:50.000Z | 2021-11-28T07:03:02.000Z | src/Nest/Utils/PrintTimer.hpp | CristianDragu/sparrow | 49844c2329ac001c3a0779baae7a2f02743c4494 | [
"MIT"
] | 8 | 2015-07-28T11:34:15.000Z | 2020-02-01T21:54:06.000Z | #pragma once
#include <chrono>
namespace Nest {
namespace Common {
/// Helper timer that prints the elapsed time at the console
///
/// In order for this to do something, the "enable" constructor parameter must be true; otherwise
/// this has no effect.
class PrintTimer {
chrono::steady_clock::time_point startTim... | 27.871795 | 97 | 0.621895 | CristianDragu |
389478d6e2e6cccf44eddfa6e05f82cf47d42367 | 977 | hpp | C++ | JK_rhythmgame/test/test-aes_utl.hpp | ai2playgame/JK_rhythmgame | 886f565c64612d452897fd37dcc2f10a1d2aa08b | [
"Zlib"
] | null | null | null | JK_rhythmgame/test/test-aes_utl.hpp | ai2playgame/JK_rhythmgame | 886f565c64612d452897fd37dcc2f10a1d2aa08b | [
"Zlib"
] | null | null | null | JK_rhythmgame/test/test-aes_utl.hpp | ai2playgame/JK_rhythmgame | 886f565c64612d452897fd37dcc2f10a1d2aa08b | [
"Zlib"
] | null | null | null | #pragma once
#include <sstream>
#include "test.hpp"
#include "../src/aes/aes-utl.hpp"
#include "../src/aes/include/key.hpp"
namespace jk::test {
DEFINE_TEST(encrypt_decrypt_test_aes_utl) {
enc::aes_utl encoder;
std::stringstream original, out;
original << "test test. this is a test of crypto class!!! i hope thi... | 25.710526 | 90 | 0.696008 | ai2playgame |
3895668c7d4ae6b9ee09ab6be347e171c6b64b44 | 1,242 | hpp | C++ | Source/AliveLibAE/MusicTrigger.hpp | UltraStars3000/alive_reversing | 41a3bdae97139358d39e95cd6e1a4027341b3a99 | [
"MIT"
] | null | null | null | Source/AliveLibAE/MusicTrigger.hpp | UltraStars3000/alive_reversing | 41a3bdae97139358d39e95cd6e1a4027341b3a99 | [
"MIT"
] | null | null | null | Source/AliveLibAE/MusicTrigger.hpp | UltraStars3000/alive_reversing | 41a3bdae97139358d39e95cd6e1a4027341b3a99 | [
"MIT"
] | null | null | null | #pragma once
#include "FunctionFwd.hpp"
#include "BaseGameObject.hpp"
#include "Path.hpp"
#include "MusicController.hpp"
struct Path_MusicTrigger : public Path_TLV
{
__int16 field_10_type; // TODO: Enum
short field_12_enabled_by; // TODO: Enum
__int16 field_14_timer;
// pad
};
ALIVE_ASSERT_SIZEOF_ALWA... | 30.292683 | 103 | 0.759259 | UltraStars3000 |
389616795440e68de549686ba27cdbac92f37b96 | 5,315 | hpp | C++ | include/src/Syntax/Language.hpp | ferhatgec/scril | 09a18c86970784e68771542422944d60d186ffc0 | [
"MIT"
] | 6 | 2020-10-12T14:08:01.000Z | 2021-05-11T06:26:08.000Z | include/src/Syntax/Language.hpp | FerhatGec/scrilt | 09a18c86970784e68771542422944d60d186ffc0 | [
"MIT"
] | null | null | null | include/src/Syntax/Language.hpp | FerhatGec/scrilt | 09a18c86970784e68771542422944d60d186ffc0 | [
"MIT"
] | null | null | null | /* MIT License
#
# Copyright (c) 2020 Ferhat Geçdoğan All Rights Reserved.
# Distributed under the terms of the MIT License.
#
# */
#ifndef LANGUAGE_HPP
#define LANGUAGE_HPP
#include "Colors.hpp"
#include "Log.hpp"
#include "RunFunction.hpp"
#include "Settings.hpp"
#include "../Scrift.hpp"
#include "CommandFunc.h"
#in... | 32.408537 | 188 | 0.622766 | ferhatgec |
389930a5403cc9f11e941d7788a0462019372958 | 7,449 | hpp | C++ | gripper/robotiq-2f/main/opcua_task.hpp | opcua-skills/plug-and-produce | 5567cd6177f973e97579fbd9d06ebbf23569ccfb | [
"Unlicense"
] | 5 | 2020-04-15T03:24:48.000Z | 2021-11-03T17:39:59.000Z | gripper/robotiq-2f/main/opcua_task.hpp | opcua-skills/plug-and-produce | 5567cd6177f973e97579fbd9d06ebbf23569ccfb | [
"Unlicense"
] | null | null | null | gripper/robotiq-2f/main/opcua_task.hpp | opcua-skills/plug-and-produce | 5567cd6177f973e97579fbd9d06ebbf23569ccfb | [
"Unlicense"
] | 2 | 2020-07-04T16:01:25.000Z | 2021-07-05T09:33:55.000Z | /*
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*
* Copyright (c) 2020 fortiss GmbH, Stefan Profanter
* All rights reserved.
*/
#ifndef ROBOTIQ_2FOPCUA_TASK_HPP
#define ROBOTIQ_2FOPCUA_TASK_HPP
#ifdef UA_ENABLE_AMALGAMATION
#inc... | 33.403587 | 143 | 0.653913 | opcua-skills |
389d1b5b255d7d1c83460efed92cbceed0de3d3a | 3,144 | cpp | C++ | src/osdep/native/nativepluginloader.cpp | lawarner/aft | fd2b6b97bedd2be3ccb1739b890aeea6aa2f9603 | [
"Apache-2.0"
] | null | null | null | src/osdep/native/nativepluginloader.cpp | lawarner/aft | fd2b6b97bedd2be3ccb1739b890aeea6aa2f9603 | [
"Apache-2.0"
] | null | null | null | src/osdep/native/nativepluginloader.cpp | lawarner/aft | fd2b6b97bedd2be3ccb1739b890aeea6aa2f9603 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 Andy Warner
*
* 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 o... | 24.372093 | 92 | 0.659987 | lawarner |
389def0c517bffde189f296ae7695e17b0f783b5 | 8,630 | cpp | C++ | controller/src/beerocks/master/tasks/network_health_check_task.cpp | SWRT-dev/easymesh | 12d902edde77599e074c0535f7256499b08f7494 | [
"BSD-3-Clause",
"BSD-2-Clause-Patent",
"MIT"
] | null | null | null | controller/src/beerocks/master/tasks/network_health_check_task.cpp | SWRT-dev/easymesh | 12d902edde77599e074c0535f7256499b08f7494 | [
"BSD-3-Clause",
"BSD-2-Clause-Patent",
"MIT"
] | null | null | null | controller/src/beerocks/master/tasks/network_health_check_task.cpp | SWRT-dev/easymesh | 12d902edde77599e074c0535f7256499b08f7494 | [
"BSD-3-Clause",
"BSD-2-Clause-Patent",
"MIT"
] | null | null | null | /* SPDX-License-Identifier: BSD-2-Clause-Patent
*
* SPDX-FileCopyrightText: 2016-2020 the prplMesh contributors (see AUTHORS.md)
*
* This code is subject to the terms of the BSD+Patent license.
* See LICENSE file for more details.
*/
#include "network_health_check_task.h"
#include "../db/db_algo.h"
#include "../... | 40.516432 | 119 | 0.569177 | SWRT-dev |
389e8b0b8a1b9929734767e1b62edd0dfa8a1afa | 1,018 | cpp | C++ | lib/il2cpp/il2cpp/libmono/icalls/mscorlib/System.Runtime.InteropServices/Marshal.cpp | smorey2/GameEstate | 1349dd68c675ed056210b4238f5b8e7c92857933 | [
"MIT"
] | null | null | null | lib/il2cpp/il2cpp/libmono/icalls/mscorlib/System.Runtime.InteropServices/Marshal.cpp | smorey2/GameEstate | 1349dd68c675ed056210b4238f5b8e7c92857933 | [
"MIT"
] | null | null | null | lib/il2cpp/il2cpp/libmono/icalls/mscorlib/System.Runtime.InteropServices/Marshal.cpp | smorey2/GameEstate | 1349dd68c675ed056210b4238f5b8e7c92857933 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include "Marshal.h"
#include "vm/PlatformInvoke.h"
namespace mono
{
namespace icalls
{
namespace mscorlib
{
namespace System
{
namespace Runtime
{
namespace InteropServices
{
intptr_t Marshal::GetFunctionPointerForDelegateInternal(MonoDelegate* d)
{
return mono::vm::PlatformInvoke::... | 26.789474 | 118 | 0.717092 | smorey2 |
389f1a7880590f6562af72cfaa68f77dd4382e71 | 521 | hpp | C++ | zen/lexgen/parser.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | null | null | null | zen/lexgen/parser.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | 2 | 2020-02-06T17:01:39.000Z | 2020-02-12T17:50:14.000Z | zen/lexgen/parser.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | null | null | null | #ifndef ZEN_LEXGEN_PARSER_HPP
#define ZEN_LEXGEN_PARSER_HPP
#include "zen/stream.hpp"
#include "zen/lexgen/common.hpp"
#include "zen/lexgen/lexer.hpp"
#include "zen/lexgen/nodes.hpp"
namespace zen {
namespace lexgen {
using TokenStream = PeekStream<Token>;
class Parser {
TokenStream& tokens;
... | 14.472222 | 42 | 0.667946 | ZenLibraries |
389fcb1be934c618a7a0e28cc900735855462c13 | 364 | cpp | C++ | books/tech/cpp/std-11/b_sutherland-cpp_recipes/ch_07-the_stl_containers/recipe_7.1-storing_a_fixed_number_of_objects/01-a_c-style_array/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | 1 | 2017-05-04T08:23:46.000Z | 2017-05-04T08:23:46.000Z | books/techno/cpp/__intermediate/cpp_recipes_a_problem_solution_approach_b_shutherland/code/ch_7-THE_STL_CONTAINERS/recipe_7.1-storing_a_fixed_number_of_objects/01-a_c-style_array/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | books/techno/cpp/__intermediate/cpp_recipes_a_problem_solution_approach_b_shutherland/code/ch_7-THE_STL_CONTAINERS/recipe_7.1-storing_a_fixed_number_of_objects/01-a_c-style_array/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdint>
int main() {
const uint32_t numberOfElements{ 5 };
int32_t normalArray[numberOfElements]{ 10, 65, 3000, 2, 49 };
for (uint32_t i{ 0 }; i < numberOfElements; ++i)
std::cout << normalArray[i] << std::endl;
for (auto&& number : normalArray)
std::co... | 22.75 | 65 | 0.601648 | ordinary-developer |
38a48084ba5ab1c30c116ae9c1666d494ea3cd68 | 80 | cpp | C++ | sources/source.cpp | Gustafsson88/lr12 | 4db8ad87ba1b29890b43307b5b093bce900cea62 | [
"MIT"
] | null | null | null | sources/source.cpp | Gustafsson88/lr12 | 4db8ad87ba1b29890b43307b5b093bce900cea62 | [
"MIT"
] | null | null | null | sources/source.cpp | Gustafsson88/lr12 | 4db8ad87ba1b29890b43307b5b093bce900cea62 | [
"MIT"
] | null | null | null | // Copyright 2021 Alexandr Guchkov <firer.a45@gmail.com>
#include "header.hpp"
| 20 | 56 | 0.75 | Gustafsson88 |
38a59f8ced308444dfb9946d96d823686cd00cb8 | 133 | hpp | C++ | include/NP-Engine/Input/Input.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | include/NP-Engine/Input/Input.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | include/NP-Engine/Input/Input.hpp | naphipps/NP-Engine | 0cac8b2d5e76c839b96f2061bf57434bdc37915e | [
"MIT"
] | null | null | null | //
// Input.hpp
// NP-Engine
//
// Created by Nathan Phipps on 2/13/21.
//
#ifndef Input_h
#define Input_h
#endif /* Input_h */
| 11.083333 | 40 | 0.616541 | naphipps |
38aacd90f44bd36dfd44ff94a89e712bedb6b6c7 | 708 | cpp | C++ | 2017.8.15/a.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | 2017.8.15/a.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | 2017.8.15/a.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | #include<cstdio>
#include<string>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<stack>
#define ll long long
#define read(a) scanf("%d",&a);
using namespace std;
const int maxn=1e7+5;
int a[maxn];
void init... | 14.16 | 37 | 0.579096 | 1980744819 |
38adfd053f9d6c00d00784d1e6e096ec1741d8f6 | 724 | cpp | C++ | Sources/CubbyDNN/Node/Input.cpp | utilForever/CubbyDNN | b044957e42eff8f14e826160b1bca1c82839a93b | [
"MIT"
] | 34 | 2018-10-18T02:30:26.000Z | 2021-06-13T19:11:23.000Z | Sources/CubbyDNN/Node/Input.cpp | utilForever/CubbyDNN | b044957e42eff8f14e826160b1bca1c82839a93b | [
"MIT"
] | 31 | 2018-11-04T08:33:48.000Z | 2020-10-07T14:59:55.000Z | Sources/CubbyDNN/Node/Input.cpp | utilForever/CubbyDNN | b044957e42eff8f14e826160b1bca1c82839a93b | [
"MIT"
] | 9 | 2018-11-05T09:31:59.000Z | 2020-12-25T13:04:26.000Z | #include <CubbyDNN/Node/Input.hpp>
namespace CubbyDNN::Node
{
Input::Input(Core::Graph* graph, std::string_view name) : Node(graph, name)
{
// Do nothing
}
const NodeType* Input::Type() const
{
return graph->nodeTypeManager.Type<Input>();
}
std::string_view Input::TypeName()
{
return "Input";
}
void Inp... | 17.238095 | 75 | 0.668508 | utilForever |
38ae8c1bef93489a7a77aa35b3a65136eab2de0d | 105,183 | cpp | C++ | AES_GPU_DX10/src/AES_GPU_DX10.cpp | Bizonu/amclibrary | 6dacc2386064bc1fb0ad9ef1cf0774c5fed56bed | [
"Apache-2.0"
] | null | null | null | AES_GPU_DX10/src/AES_GPU_DX10.cpp | Bizonu/amclibrary | 6dacc2386064bc1fb0ad9ef1cf0774c5fed56bed | [
"Apache-2.0"
] | null | null | null | AES_GPU_DX10/src/AES_GPU_DX10.cpp | Bizonu/amclibrary | 6dacc2386064bc1fb0ad9ef1cf0774c5fed56bed | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// File: AES_GPU_DX10.cpp
/// Description: The implementation of the internal interface for the AES implementation on the GPU using DX10.
/// Author: Chiuta Adrian Marius
/// Cre... | 53.802046 | 156 | 0.621422 | Bizonu |
38b2e42851cac4b1098d80487fd7f31390c1589f | 4,391 | hpp | C++ | includes/commands.hpp | Antip003/irc | 973c4e1ee3d231c6aca1a434a735f236d4d55e77 | [
"MIT"
] | 1 | 2021-11-29T21:41:10.000Z | 2021-11-29T21:41:10.000Z | includes/commands.hpp | Antip003/irc | 973c4e1ee3d231c6aca1a434a735f236d4d55e77 | [
"MIT"
] | null | null | null | includes/commands.hpp | Antip003/irc | 973c4e1ee3d231c6aca1a434a735f236d4d55e77 | [
"MIT"
] | null | null | null | #ifndef COMMANDS_HPP
# define COMMANDS_HPP
# include "ircserv.hpp"
# include <string>
struct IRCserv;
void initcommands(IRCserv *serv);
void cmd_nick(int fd, const t_strvect &split, IRCserv *serv);
void cmd_user(int fd, const t_strvect &split, IRCserv *serv);
void cmd_ping(int fd, const t_strvect &split, IRCserv *... | 44.353535 | 99 | 0.754042 | Antip003 |