hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
38b3d591571417f9228d4f060a5c25dc6ff02d0f | 1,327 | cc | C++ | leet_code/Letter_Combinations_of_a_Phone_Number/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | leet_code/Letter_Combinations_of_a_Phone_Number/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | leet_code/Letter_Combinations_of_a_Phone_Number/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class Solution {
private:
vector<string> answer;
vector<vector<char> > phone;
void getAnswer(string &digits, int idx, string buffer) {
if (idx == digits.size()) {
if (buffer.length() > 0) {
answer.push_back(buffer);
}
return;
}
if ... | 31.595238 | 124 | 0.494348 | ldy121 |
38b8c0ee00901e25876500ed31aeb70e384d808f | 1,681 | cpp | C++ | source/bezier_debug.cpp | Sankhma/AutismoSimulator | ac0cd2c321929b92cadfed9eb6c96faa9e60e18e | [
"MIT"
] | null | null | null | source/bezier_debug.cpp | Sankhma/AutismoSimulator | ac0cd2c321929b92cadfed9eb6c96faa9e60e18e | [
"MIT"
] | 38 | 2020-11-08T21:54:57.000Z | 2020-12-01T09:33:11.000Z | source/bezier_debug.cpp | Sankhma/AutismoSimulator | ac0cd2c321929b92cadfed9eb6c96faa9e60e18e | [
"MIT"
] | 1 | 2020-11-04T22:17:11.000Z | 2020-11-04T22:17:11.000Z | #include <iostream>
#include "Bezier.h"
#include "Vector.h"
// and this
int main(){
Vector2<double> vec0 = Vector2<double>(1, 2);
Vector2<double> vec1 = Vector2<double>(2, 3);
Vector2<double> vec2 = Vector2<double>(7, 4);
Vector2<double> vec3 = Vector2<double>(133, 1123);
std::vector<Vector2<dou... | 29.491228 | 101 | 0.607971 | Sankhma |
38c0a940ef7fac4fe1b38094bc3cda98e082d9fa | 324 | cpp | C++ | elastic-circuits/examples/string_match.cpp | minseongg/dynamatic | 268d97690f128569da46e4f39a99346e93ee9d4e | [
"MIT"
] | 46 | 2019-11-16T13:44:07.000Z | 2022-03-12T14:28:44.000Z | elastic-circuits/examples/string_match.cpp | minseongg/dynamatic | 268d97690f128569da46e4f39a99346e93ee9d4e | [
"MIT"
] | 11 | 2020-05-12T17:20:51.000Z | 2022-02-04T10:04:59.000Z | elastic-circuits/examples/string_match.cpp | minseongg/dynamatic | 268d97690f128569da46e4f39a99346e93ee9d4e | [
"MIT"
] | 22 | 2020-02-21T21:33:40.000Z | 2022-02-24T06:50:41.000Z | // Finds an occurrence of x in y
// n is the length of x, m is the length of y
int substring(char x[], char y[], int n, int m) {
for (int i = 0; i <= m - n; ++i) {
int j = 0;
while (j < n and x[j] == y[i + j])
++j;
if (j == n)
return i;
}
return -1;
... | 24.923077 | 50 | 0.41358 | minseongg |
38ca6e7461ceb6687bc335e05c40db489d7ccd06 | 3,550 | hxx | C++ | src/engine/ivp/ivp_utility/ivu_float.hxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/ivp/ivp_utility/ivu_float.hxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/ivp/ivp_utility/ivu_float.hxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | #ifdef WIN32
#include <float.h>
#endif
#if defined(IVP_NO_DOUBLE) && !defined(SUN)
# include <math.h>
# if defined(WIN32) || defined(PSXII) || defined(LINUX)
union p_float_ieee { IVP_FLOAT val;
struct {
unsigned int valh:23; unsigned int exp:8; unsigned int signum:1;
} ln; };
#else
unio... | 26.102941 | 98 | 0.587606 | cstom4994 |
38cb0edf44d87a3a9a36ca82f4c06e941e8d6a97 | 5,997 | cpp | C++ | meeting-qt/setup/src/dui/Box/TileBox.cpp | GrowthEase/- | 5cc7cab95fc309049de8023ff618219dff22d773 | [
"MIT"
] | 48 | 2022-03-02T07:15:08.000Z | 2022-03-31T08:37:33.000Z | meeting-qt/setup/src/dui/Box/TileBox.cpp | chandarlee/Meeting | 9350fdea97eb2cdda28b8bffd9c4199de15460d9 | [
"MIT"
] | 1 | 2022-02-16T01:54:05.000Z | 2022-02-16T01:54:05.000Z | meeting-qt/setup/src/dui/Box/TileBox.cpp | chandarlee/Meeting | 9350fdea97eb2cdda28b8bffd9c4199de15460d9 | [
"MIT"
] | 9 | 2022-03-01T13:41:37.000Z | 2022-03-10T06:05:23.000Z | /**
* @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be found in the LICENSE file.
*/
#include "stdafx.h"
#include "TileBox.h"
namespace ui
{
TileLayout::TileLayout()
{
m_szItem.cx = m_szItem.cy = 0;
}
CSize TileLay... | 29.541872 | 125 | 0.637986 | GrowthEase |
38d059c88a8cdda0cb6ba2169db771c76242e513 | 1,483 | cpp | C++ | src/Aplicatii Vectori/ex 9/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | 2 | 2021-11-27T18:29:32.000Z | 2021-11-28T14:35:47.000Z | src/Aplicatii Vectori/ex 9/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | src/Aplicatii Vectori/ex 9/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | #include <iostream>
//9. Se citesc elementele unui tablou v unidimensional cu n (n<=100) componente, numere întregi din cel
//mult 4 cifre fiecare. Sa se realizeze următoarele prelucrări: a. Să se afişeze valorile prime. b. Să se afişeze
//numerele prime a căror invers este tot un număr prim.
using namespace std;
i... | 19.25974 | 113 | 0.401214 | andrew-miroiu |
38d1097ac49d5678b32384644edd0219f7fcd9f5 | 4,679 | cpp | C++ | Engine/source/platform/platformAssert.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | null | null | null | Engine/source/platform/platformAssert.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | null | null | null | Engine/source/platform/platformAssert.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | 1 | 2018-10-26T03:18:22.000Z | 2018-10-26T03:18:22.000Z | // Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include <stdarg.h>
#include "core/strings/stringFunctions.h"
#include "console/console.h"
//-------------------------------------- STATIC Declaration
PlatformAssert *PlatformAssert::platformAssert... | 30.383117 | 119 | 0.582176 | fr1tz |
38d15c721c10b88000fc8841d3021692d002b1b5 | 2,097 | cpp | C++ | src/Saurobyte/SystemPool.cpp | Symphonym/Saurobyte | c4bc5afd4ac4353ed6cd9a201454fd14aa3aced2 | [
"MIT"
] | 17 | 2015-01-26T19:46:42.000Z | 2021-10-04T15:30:32.000Z | src/Saurobyte/SystemPool.cpp | Symphonym/Saurobyte | c4bc5afd4ac4353ed6cd9a201454fd14aa3aced2 | [
"MIT"
] | 1 | 2021-04-06T01:12:03.000Z | 2021-04-06T01:12:03.000Z | src/Saurobyte/SystemPool.cpp | Symphonym/Saurobyte | c4bc5afd4ac4353ed6cd9a201454fd14aa3aced2 | [
"MIT"
] | 2 | 2015-02-03T21:23:49.000Z | 2021-05-02T14:52:52.000Z | #include <Saurobyte/SystemPool.hpp>
#include <Saurobyte/System.hpp>
namespace Saurobyte
{
SystemPool::SystemPool(Engine *engine)
:
m_engine(engine)
{
}
SystemPool::~SystemPool()
{
frameCleanup();
m_systemPool.clear();
}
void SystemPool::addSystem(BaseSystem *newSystem)
{
// Make sure the system do... | 22.793478 | 89 | 0.680496 | Symphonym |
38d3c1e7f8c1a57cf3db762f9dda90899b1e041b | 11,451 | cpp | C++ | Spider3D.cpp | Artars/WalkingGLSpider | d939a1f27730aaabdc36b01fd574351f967c08dd | [
"MIT"
] | null | null | null | Spider3D.cpp | Artars/WalkingGLSpider | d939a1f27730aaabdc36b01fd574351f967c08dd | [
"MIT"
] | null | null | null | Spider3D.cpp | Artars/WalkingGLSpider | d939a1f27730aaabdc36b01fd574351f967c08dd | [
"MIT"
] | null | null | null | #include "Spider3D.h"
Spider3D::Spider3D(){
finishConstruction();
}
Spider3D::Spider3D(Vector3 position, Vector3 scale, Vector3 rotation){
this->position = position;
this->scale = scale;
this->rotation = rotation;
finishConstruction();
}
void Spider3D::finishConstruction() {
char path[] = "S... | 40.896429 | 128 | 0.643699 | Artars |
38dc60458e367ea135611f1b6160469ccd7f898a | 78,194 | cpp | C++ | SGXDNN/sgxdnn_main.cpp | goten-team/Goten | 690f1429b62c70caec72f4010ee5b7a9786f0d25 | [
"MIT"
] | 17 | 2020-04-28T09:18:28.000Z | 2021-12-28T08:38:00.000Z | SGXDNN/sgxdnn_main.cpp | goten-team/Goten | 690f1429b62c70caec72f4010ee5b7a9786f0d25 | [
"MIT"
] | 2 | 2021-09-26T04:10:51.000Z | 2022-03-31T05:28:25.000Z | SGXDNN/sgxdnn_main.cpp | goten-team/Goten | 690f1429b62c70caec72f4010ee5b7a9786f0d25 | [
"MIT"
] | 2 | 2021-09-26T05:06:17.000Z | 2021-12-14T16:25:06.000Z | #define USE_EIGEN_TENSOR
#ifndef USE_SGX
#define EIGEN_USE_THREADS
#include <malloc.h>
#else
#include "Enclave.h"
#include "sgx_tseal.h"
#include "sgx_trts.h"
#include "sgx_thread.h"
#endif
#include "sgxdnn_main.hpp"
#include "randpool.hpp"
#include "utils.hpp"
#include "common_with_enclaves.h"
#include <unsupporte... | 45.647402 | 303 | 0.656201 | goten-team |
38e4d38d50750c10109432ede6945a804cd9906f | 7,047 | cc | C++ | test/distributions.cc | TeoGiane/bayesmix | 43182d61c3f332aefb832426cc9e8e2b2394bd68 | [
"BSD-3-Clause"
] | null | null | null | test/distributions.cc | TeoGiane/bayesmix | 43182d61c3f332aefb832426cc9e8e2b2394bd68 | [
"BSD-3-Clause"
] | null | null | null | test/distributions.cc | TeoGiane/bayesmix | 43182d61c3f332aefb832426cc9e8e2b2394bd68 | [
"BSD-3-Clause"
] | null | null | null | #include "src/utils/distributions.h"
#include <gtest/gtest.h>
#include <Eigen/Dense>
#include <stan/math/prim.hpp>
#include <vector>
#include "src/utils/rng.h"
TEST(mix_dist, 1) {
auto& rng = bayesmix::Rng::Instance().get();
int nclus = 5;
Eigen::VectorXd weights1 =
stan::math::dirichlet_rng(Eigen::Vec... | 31.600897 | 79 | 0.648503 | TeoGiane |
38eca32354dc5f2fd7f50db6ee608ecde759de72 | 1,409 | cpp | C++ | src/generator/SwitchGenerator.cpp | jaydee-io/bnf2c | 453b9dec8d94f32eebf9df1ab9578da0b5c70d84 | [
"BSD-4-Clause"
] | null | null | null | src/generator/SwitchGenerator.cpp | jaydee-io/bnf2c | 453b9dec8d94f32eebf9df1ab9578da0b5c70d84 | [
"BSD-4-Clause"
] | null | null | null | src/generator/SwitchGenerator.cpp | jaydee-io/bnf2c | 453b9dec8d94f32eebf9df1ab9578da0b5c70d84 | [
"BSD-4-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// BNF2C
//
// This file is distributed under the 4-clause Berkeley Software Distribution
// License. See LICENSE for details.
/////////////////////////////////////////////////////////////////////////////... | 38.081081 | 120 | 0.432221 | jaydee-io |
38eec9b7f9f3239a097967416fa7f2d6fe070a22 | 10,011 | cpp | C++ | fluxes.cpp | rocketcrush/suchsolver | 18ffeaf13aa0c549f7081acc943bc1257e50c656 | [
"MIT"
] | 1 | 2017-11-07T17:45:52.000Z | 2017-11-07T17:45:52.000Z | fluxes.cpp | rocketcrush/suchsolver | 18ffeaf13aa0c549f7081acc943bc1257e50c656 | [
"MIT"
] | null | null | null | fluxes.cpp | rocketcrush/suchsolver | 18ffeaf13aa0c549f7081acc943bc1257e50c656 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
#include <data.h>
#include <constants.h>
#include <mesh.h>
#include <initialconditions.h>
using namespace std;
extern vector<node> n;
extern vector<element> e;
extern vector<type1> tp1;
extern vector<type2> tp2;
extern vector<type3> tp3;
void W(int i)
{
tp1[... | 18.888679 | 145 | 0.386775 | rocketcrush |
38ef2670a4f65f2b81725468725d81d53a46c3c9 | 392 | hpp | C++ | 08_pass-by-reference/include/vehicle.hpp | JuliusDiestra/cpp-sandbox | 6fa3bcb2a284e58136168e1952a8a54621232621 | [
"MIT"
] | null | null | null | 08_pass-by-reference/include/vehicle.hpp | JuliusDiestra/cpp-sandbox | 6fa3bcb2a284e58136168e1952a8a54621232621 | [
"MIT"
] | null | null | null | 08_pass-by-reference/include/vehicle.hpp | JuliusDiestra/cpp-sandbox | 6fa3bcb2a284e58136168e1952a8a54621232621 | [
"MIT"
] | null | null | null | #ifndef TOKEN_VEHICLE_H_
#define TOKEN_VEHICLE_H_
#include <iostream>
#include <memory>
class Vehicle
{
public:
Vehicle();
float GetVelocity();
float GetAcceleration();
void SetVelocity(float velocity_);
void SetAcceleration(float acceleration_);
private:
float ... | 17.818182 | 50 | 0.660714 | JuliusDiestra |
38f3ed6d74edc2ff689deff592ba87296c98c9f6 | 3,771 | cpp | C++ | libs/assign/v2/speed/tools.cpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | libs/assign/v2/speed/tools.cpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | libs/assign/v2/speed/tools.cpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Copyright 2010 Manuel Peinado Gallego //
// Distributed under the Boost Software License, Version 1.0. (See //
// accompanying file LICENSE_1_0.txt or copy at //
... | 27.129496 | 94 | 0.529568 | rogard |
38f659577afa98b56ac96286e15c1d72bdd86810 | 475 | cpp | C++ | src/LibCraft/renderEngine/ibo.cpp | Kenny38GH/Test | 24c0277de8f98a3b0b3b8a90a300a321a485684c | [
"MIT"
] | 1 | 2021-11-24T16:49:48.000Z | 2021-11-24T16:49:48.000Z | src/LibCraft/renderEngine/ibo.cpp | leodlplq/IMACraft | 5fec1729238e7e428bd39543dfd1fad521e16047 | [
"MIT"
] | null | null | null | src/LibCraft/renderEngine/ibo.cpp | leodlplq/IMACraft | 5fec1729238e7e428bd39543dfd1fad521e16047 | [
"MIT"
] | null | null | null | //
// Created by leodlplq on 18/11/2021.
//
#include "LibCraft/renderEngine/include/ibo.hpp"
ibo::ibo(GLuint *vertices, GLsizeiptr size) {
glGenBuffers(1, &_id);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _id);
glBufferData(GL_ELEMENT_ARRAY_BUFFER, size, vertices, GL_STATIC_DRAW);
}
void ibo::bind() {
gl... | 19 | 74 | 0.701053 | Kenny38GH |
38fa76819bdbf20fe7f3616974344595930a6254 | 3,293 | hpp | C++ | src/libsnw_event/future.hpp | Sojourn/snw | e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f | [
"MIT"
] | null | null | null | src/libsnw_event/future.hpp | Sojourn/snw | e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f | [
"MIT"
] | null | null | null | src/libsnw_event/future.hpp | Sojourn/snw | e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f | [
"MIT"
] | null | null | null | #include <cassert>
template<typename T>
snw::future<T>::future()
: promise_(nullptr)
, state_(state::broken)
{
}
template<typename T>
snw::future<T>::future(promise<T>* promise)
: promise_(promise)
, state_(state::waiting)
{
}
template<typename T>
snw::future<T>::future(T value)
: promise_(nullpt... | 19.485207 | 63 | 0.57607 | Sojourn |
ac0181486adf913dc29ed5cb8a5939bca47e8b2d | 838 | hpp | C++ | meta/include/mgs/meta/concepts/input_range.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | 24 | 2020-07-01T13:45:50.000Z | 2021-11-04T19:54:47.000Z | meta/include/mgs/meta/concepts/input_range.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | null | null | null | meta/include/mgs/meta/concepts/input_range.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <type_traits>
#include <mgs/meta/concepts/input_iterator.hpp>
#include <mgs/meta/concepts/range.hpp>
#include <mgs/meta/detected.hpp>
#include <mgs/meta/iterator_t.hpp>
namespace mgs
{
namespace meta
{
template <typename T>
struct is_input_range
{
private:
using Iterator = meta::detected_t<it... | 20.95 | 76 | 0.74105 | theodelrieu |
ac0483ad1b7c2d1c61cf0a68a621281d07889c6e | 194 | cpp | C++ | OCT18B/CHSERVE.cpp | Chhekur/codechef-solutions | 14ca902ea693139de13ffe5b9f602447bf34b79f | [
"MIT"
] | 1 | 2019-03-25T14:14:47.000Z | 2019-03-25T14:14:47.000Z | OCT18B/CHSERVE.cpp | Chhekur/codechef-solutions | 14ca902ea693139de13ffe5b9f602447bf34b79f | [
"MIT"
] | null | null | null | OCT18B/CHSERVE.cpp | Chhekur/codechef-solutions | 14ca902ea693139de13ffe5b9f602447bf34b79f | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(void){
int t;cin>>t;
while(t--){
long a,b,c;cin>>a>>b>>c;
long e = (a + b) / c;
if(e % 2 == 0)cout<<"CHEF\n";
else cout<<"COOK\n";
}
} | 17.636364 | 31 | 0.541237 | Chhekur |
f19f54632a9a42642580b073ddb19973492bd572 | 5,582 | cpp | C++ | Source/Gui3D-master/Gui3DPanel.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 3 | 2019-04-12T15:22:53.000Z | 2022-01-05T02:59:56.000Z | Source/Gui3D-master/Gui3DPanel.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | null | null | null | Source/Gui3D-master/Gui3DPanel.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 2 | 2019-04-10T22:46:21.000Z | 2020-05-27T16:21:37.000Z | /*
Gui3D
-------
Copyright (c) 2012 Valentin Frechaud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | 36.966887 | 94 | 0.64296 | shanefarris |
f1a4c44e616b221904cda01046e4865fa97fe64e | 742 | cpp | C++ | src/LuminoEngine/sandbox/Example_Shader.cpp | infinnie/Lumino | 921caabdbcb91528a2aac290e31d650628bc3bed | [
"MIT"
] | null | null | null | src/LuminoEngine/sandbox/Example_Shader.cpp | infinnie/Lumino | 921caabdbcb91528a2aac290e31d650628bc3bed | [
"MIT"
] | null | null | null | src/LuminoEngine/sandbox/Example_Shader.cpp | infinnie/Lumino | 921caabdbcb91528a2aac290e31d650628bc3bed | [
"MIT"
] | null | null | null |
#include <LuminoEngine.hpp>
using namespace ln;
class App_Example_Shader : public Application
{
virtual void onInit() override
{
Engine::renderView()->setGuideGridEnabled(true);
Engine::mainCamera()->addComponent(CameraOrbitControlComponent::create());
auto plane = PlaneMesh::create(... | 21.2 | 106 | 0.657682 | infinnie |
f1a57afa200e7da6937ae658156a22b31fb8054f | 456 | cpp | C++ | Leetcode/35.SearchInsertPosition/SearchInsertPosition.cpp | juancgar/CompetitiveProgramming | 9ff93ba14d9d5f45314a18cc78bd2d44de0b9fec | [
"MIT"
] | null | null | null | Leetcode/35.SearchInsertPosition/SearchInsertPosition.cpp | juancgar/CompetitiveProgramming | 9ff93ba14d9d5f45314a18cc78bd2d44de0b9fec | [
"MIT"
] | null | null | null | Leetcode/35.SearchInsertPosition/SearchInsertPosition.cpp | juancgar/CompetitiveProgramming | 9ff93ba14d9d5f45314a18cc78bd2d44de0b9fec | [
"MIT"
] | null | null | null | int searchInsert(vector<int>& nums, int target) {
int begin = 0;
int end = nums.size();
end > 0 ? end = end-1: end = begin;
int mid;
while(begin <= end)
{
mid = begin + (end-begin)/2;
if(nums[mid] == target)
return mid;
else if(nums[mid] ... | 22.8 | 50 | 0.414474 | juancgar |
f1a68d13344afd1477dfc29135e40432a55a63b1 | 1,052 | cpp | C++ | extra/news/src/xk/iat/ImageAnnotation/iat-stage/listtool.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/xk/iat/ImageAnnotation/iat-stage/listtool.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/xk/iat/ImageAnnotation/iat-stage/listtool.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | #include "listtool.h"
#include "ui_listtool.h"
ListTool::ListTool(QWidget *parent):QDialog(parent),ui(new Ui::ListTool){
ui->setupUi(this);
}
ListTool::~ListTool(){
delete ui;
}
void ListTool::on_textObject_textChanged()
{
}
void ListTool::on_textInstance_textChanged()
{
}
void ListT... | 21.04 | 99 | 0.615019 | scignscape |
f1a7d76d699ec0852a16f4325b7452f4240f7166 | 1,244 | cpp | C++ | source/Input/Queue.cpp | kurocha/input | 619cbe901ebb2cfd9dd97235d30e596edc96aa14 | [
"MIT",
"Unlicense"
] | null | null | null | source/Input/Queue.cpp | kurocha/input | 619cbe901ebb2cfd9dd97235d30e596edc96aa14 | [
"MIT",
"Unlicense"
] | null | null | null | source/Input/Queue.cpp | kurocha/input | 619cbe901ebb2cfd9dd97235d30e596edc96aa14 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Queue.cpp
// This file is part of the "Input" project and released under the MIT License.
//
// Created by Samuel Williams on 23/2/2019.
// Copyright, 2019, by Samuel Williams. All rights reserved.
//
#include "Queue.hpp"
#include "ResizeEvent.hpp"
#include "ButtonEvent.hpp"
#include "MotionEvent.hpp"
#incl... | 18.567164 | 80 | 0.686495 | kurocha |
f1a8e7362e9df7d5424c5caab15669ef09c32c1b | 1,280 | cpp | C++ | 3/main.cpp | ls171433/leetcode | 863d562153382f3d1480deb7ab453c15a72da6c4 | [
"MIT"
] | null | null | null | 3/main.cpp | ls171433/leetcode | 863d562153382f3d1480deb7ab453c15a72da6c4 | [
"MIT"
] | null | null | null | 3/main.cpp | ls171433/leetcode | 863d562153382f3d1480deb7ab453c15a72da6c4 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
class Solution
{
public:
int lengthOfLongestSubstring(string s)
{
int longest = 0;
size_t indexs[256];
size_t repeated_index = (size_t)(-1);
for (size_t &index : indexs)
{
index ... | 22.45614 | 74 | 0.435156 | ls171433 |
f1b0a041aa928c91071daf898bd919066ceeba51 | 1,727 | cpp | C++ | SDL Game/SDL Game/Behaviours/Mover.cpp | BrunoAOR/SDL-Game | 090a09e2c19d18b000769f353c5e7727d60fe5f6 | [
"MIT"
] | null | null | null | SDL Game/SDL Game/Behaviours/Mover.cpp | BrunoAOR/SDL-Game | 090a09e2c19d18b000769f353c5e7727d60fe5f6 | [
"MIT"
] | null | null | null | SDL Game/SDL Game/Behaviours/Mover.cpp | BrunoAOR/SDL-Game | 090a09e2c19d18b000769f353c5e7727d60fe5f6 | [
"MIT"
] | null | null | null | #include "Mover.h"
#include "Engine/API/API.h"
#include "Engine/GameObjects/GameObject.h"
#include "Engine/Components/Transforms/Transform.h"
#include "Engine/Vector2.h"
Mover::Mover()
{
useWASD = false;
speed = 100;
speedStep = 50;
}
void Mover::update()
{
Vector2 motion(0, 0);
// Check speed
if (InputAPI:... | 16.292453 | 56 | 0.634627 | BrunoAOR |
f1b6df40f02c068d419034453b13e697531733b3 | 1,169 | cpp | C++ | test/ExtensionWordTest.cpp | PaulTrampert/GenieSys | 637e7f764bc7faac8d0b5afcf22646e200562f6a | [
"MIT"
] | null | null | null | test/ExtensionWordTest.cpp | PaulTrampert/GenieSys | 637e7f764bc7faac8d0b5afcf22646e200562f6a | [
"MIT"
] | 82 | 2020-12-17T04:03:10.000Z | 2022-03-24T17:54:28.000Z | test/ExtensionWordTest.cpp | PaulTrampert/GenieSys | 637e7f764bc7faac8d0b5afcf22646e200562f6a | [
"MIT"
] | null | null | null | //
// Created by paul.trampert on 11/26/2020.
//
#include <gtest/gtest.h>
#include <GenieSys/ExtensionWord.h>
TEST(ExtensionWord, DecodeBriefExtensionWord) {
uint16_t word = 0b1010101000000011;
auto result = GenieSys::ExtensionWord(word);
EXPECT_EQ(GenieSys::M68K_REG_TYPE_ADDR, result.getIdxRegType());
... | 37.709677 | 74 | 0.740804 | PaulTrampert |
f1b77b495c0fe88863915c977078ffa07b1236a2 | 604 | cpp | C++ | Chapter_6_Loops/Program1.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | 1 | 2020-12-03T15:26:20.000Z | 2020-12-03T15:26:20.000Z | Chapter_6_Loops/Program1.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | null | null | null | Chapter_6_Loops/Program1.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | null | null | null | // Chapter 6: Program 1
/***
Write a C++ program to read ten students' names and display them.
**/
# include <iostream>
# include <string>
using namespace std;
int main(void)
{
string Name;
int LCV, Size = 10;
for(LCV = 0; LCV < Size; LCV++)
{
if(LCV == 0)
cout <<"\n\t Pl... | 18.875 | 66 | 0.516556 | othneildrew |
f1b7f3bc74e80fa36b8323602b2fbc7fa005694e | 947 | cpp | C++ | source/Ch18/main.cpp | Koma52/UDProg-Introduction | ca8cf7f7a2c11559d4f5b3c8ad5dd55040e99762 | [
"CC0-1.0"
] | null | null | null | source/Ch18/main.cpp | Koma52/UDProg-Introduction | ca8cf7f7a2c11559d4f5b3c8ad5dd55040e99762 | [
"CC0-1.0"
] | null | null | null | source/Ch18/main.cpp | Koma52/UDProg-Introduction | ca8cf7f7a2c11559d4f5b3c8ad5dd55040e99762 | [
"CC0-1.0"
] | 1 | 2020-09-12T11:41:44.000Z | 2020-09-12T11:41:44.000Z | #include "../std_lib_facilities.h"
int* ga = new int[10] { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 };
void f(int* array, int n){
int* la = new int[10];
for (int i = 0; i < 10; ++i){
la[i] = ga[i];
}
for (int i = 0; i < 10; ++i){
cout << la[i] << " ";
}
cout << endl;
int* ... | 14.796875 | 64 | 0.393875 | Koma52 |
f1b89d4d3c8d3d92409904dd78483cd83ba357f6 | 1,554 | cpp | C++ | client/main.cpp | master-gekus/thrift_test | cbf6b763706f1212e4fcac377b2a5225ea7cd033 | [
"Unlicense"
] | null | null | null | client/main.cpp | master-gekus/thrift_test | cbf6b763706f1212e4fcac377b2a5225ea7cd033 | [
"Unlicense"
] | null | null | null | client/main.cpp | master-gekus/thrift_test | cbf6b763706f1212e4fcac377b2a5225ea7cd033 | [
"Unlicense"
] | null | null | null | #include "SharedService.h"
#include <cstdio>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TBufferTransports.h>
using namespace std;
using namespace apache::thrift;
using namespace apache::thrift::protocol;
using namespace apache::thrift::transport;
u... | 27.75 | 77 | 0.602317 | master-gekus |
f1b9ddc57c32d1c2385dbe1d61224e24c989287a | 1,330 | cpp | C++ | engine/time/source/SwimmingMovementAccumulationChecker.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/time/source/SwimmingMovementAccumulationChecker.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/time/source/SwimmingMovementAccumulationChecker.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "CombatManager.hpp"
#include "Game.hpp"
#include "MapUtils.hpp"
#include "SwimmingCalculator.hpp"
#include "SwimmingMovementAccumulationChecker.hpp"
#include "RNG.hpp"
// Check for damage due to swimming past the point of exhaustion.
void SwimmingMovementAccumulationChecker::check(CreaturePtr creature)
{
if... | 32.439024 | 140 | 0.728571 | sidav |
f1bdd927a07345f35ee7e40bd6e687692fc0f579 | 3,795 | cpp | C++ | src/Engine/TextLine.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Engine/TextLine.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Engine/TextLine.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | #include "TextLine.h"
#include "Kernel/Logger.h"
#include "utf8.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
TextLine::TextLine( uint32_t _layout, float _charOffset )
: m_layout( _layout )
, m_length( 0.f )
, m_charOffse... | 33.289474 | 152 | 0.436627 | Terryhata6 |
f1beb97847c09949f33987b4e64fb137edf47025 | 74 | cpp | C++ | src/rosic_NumberManipulations.cpp | NeoBirth/rs-303 | bf3cda07e354809b2bdee389d8ee230210f741c4 | [
"MIT"
] | 13 | 2019-11-04T17:54:43.000Z | 2022-03-30T12:31:58.000Z | src/rosic_NumberManipulations.cpp | NeoBirth/rs-303 | bf3cda07e354809b2bdee389d8ee230210f741c4 | [
"MIT"
] | null | null | null | src/rosic_NumberManipulations.cpp | NeoBirth/rs-303 | bf3cda07e354809b2bdee389d8ee230210f741c4 | [
"MIT"
] | 5 | 2020-04-10T06:23:43.000Z | 2022-03-12T18:15:59.000Z | #include "rosic_NumberManipulations.h"
using namespace rosic;
| 9.25 | 39 | 0.702703 | NeoBirth |
f1becde937ef49393472de6ff5c3a4cdc6354ea8 | 51,253 | cpp | C++ | source/game/anim/Anim.cpp | JasonHutton/QWTA | 7f42dc70eb230cf69a8048fc98d647a486e752f1 | [
"MIT"
] | 2 | 2021-05-02T18:37:48.000Z | 2021-07-18T16:18:14.000Z | source/game/anim/Anim.cpp | JasonHutton/QWTA | 7f42dc70eb230cf69a8048fc98d647a486e752f1 | [
"MIT"
] | null | null | null | source/game/anim/Anim.cpp | JasonHutton/QWTA | 7f42dc70eb230cf69a8048fc98d647a486e752f1 | [
"MIT"
] | null | null | null |
// Copyright (C) 2007 Id Software, Inc.
//
#include "../precompiled.h"
#pragma hdrstop
#if defined( _DEBUG ) && !defined( ID_REDIRECT_NEWDELETE )
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "Anim.h"
#include "../../framework/Licensee.h"
bool idAnimMana... | 28.697088 | 162 | 0.604609 | JasonHutton |
f1bee58ab434b40987cd26f207f244d178b46bff | 1,334 | hpp | C++ | clstatphys/clstatphys/tools/auto_correlation_function.hpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | null | null | null | clstatphys/clstatphys/tools/auto_correlation_function.hpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | 2 | 2020-01-21T08:54:05.000Z | 2020-01-21T09:29:10.000Z | clstatphys/clstatphys/tools/auto_correlation_function.hpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | 2 | 2020-07-18T03:36:32.000Z | 2021-07-21T22:58:27.000Z | #ifndef AUTO_CORRELATION_FUNCTION_HPP
#define AUTO_CORRELATION_FUNCTION_HPP
#include <string>
#include <vector>
#include <cmath>
namespace correlation{
class AutoCorrelationFunction{
public:
AutoCorrelationFunction(int dim=1, int Nl=1) : dim_(dim), Nl_(Nl), counter_(0), correlation_(dim,0.0), mean_(dim,0.0){}
vo... | 23.821429 | 121 | 0.623688 | FIshikawa |
f1c967503ead248e5269a51c98a133a1912ecf5d | 534 | cpp | C++ | src/duktype/AsyncObjectScope.cpp | CasperTech/duktype | dbfd2838d23c3c2d8c3574f61e23f197c00b0fa2 | [
"MIT"
] | 1 | 2021-11-01T20:18:08.000Z | 2021-11-01T20:18:08.000Z | src/duktype/AsyncObjectScope.cpp | CasperTech/duktype | dbfd2838d23c3c2d8c3574f61e23f197c00b0fa2 | [
"MIT"
] | 1 | 2021-01-28T17:46:47.000Z | 2021-01-28T17:46:47.000Z | src/duktype/AsyncObjectScope.cpp | CasperTech/duktype | dbfd2838d23c3c2d8c3574f61e23f197c00b0fa2 | [
"MIT"
] | null | null | null | #include "AsyncObjectScope.h"
#include "AsyncContext.h"
namespace Duktype
{
void AsyncObjectScope::createObjectAsync(const Nan::FunctionCallbackInfo<v8::Value> &info)
{
if (info.Length() > 0 && info[0]->IsString())
{
std::string objNameStr = *Nan::Utf8String(info[0]);
... | 29.666667 | 95 | 0.586142 | CasperTech |
f1ce6b6911bff1a229eb1bd792ce95f284ff51ac | 1,860 | cpp | C++ | src/0.3.7-R1/KeyStuff.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | 7 | 2019-09-23T10:19:40.000Z | 2021-07-25T06:17:27.000Z | src/0.3.7-R1/KeyStuff.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | null | null | null | src/0.3.7-R1/KeyStuff.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | 1 | 2021-04-11T17:13:00.000Z | 2021-04-11T17:13:00.000Z | /*
This is a SAMP (0.3.7-R1) API project file.
Developer: LUCHARE <luchare.dev@gmail.com>
See more here https://github.com/LUCHARE/SAMP-API
Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved.
*/
#include "KeyStuff.h"
CPad *&SAMP::KeyStuff::pInternalKeys = *(CPad **)SAMP_ADDROF(0... | 31.525424 | 82 | 0.682796 | DarkP1xel |
f1d08d0158b9c32fb53f4b7af8c2d00d2c1edbd8 | 710 | hpp | C++ | src/mettle/test_command.hpp | jimporter/mettle | c65aa75b04a08b550b3572f4c080c68e26ad86fa | [
"BSD-3-Clause"
] | 82 | 2015-01-05T10:06:44.000Z | 2022-03-07T01:41:28.000Z | src/mettle/test_command.hpp | JohnGalbraith/mettle | 38b70fe1dc0f30e98b768a37108196328182b5f4 | [
"BSD-3-Clause"
] | 44 | 2015-01-08T08:40:54.000Z | 2021-10-29T23:28:56.000Z | src/mettle/test_command.hpp | jimporter/mettle | c65aa75b04a08b550b3572f4c080c68e26ad86fa | [
"BSD-3-Clause"
] | 13 | 2015-06-23T07:41:54.000Z | 2020-02-14T15:35:07.000Z | #ifndef INC_METTLE_SRC_METTLE_TEST_COMMAND_HPP
#define INC_METTLE_SRC_METTLE_TEST_COMMAND_HPP
#include <memory>
#include <string>
#include <vector>
#include <boost/any.hpp>
namespace mettle {
class test_command {
public:
test_command(std::string command);
const std::string & command() const {
ret... | 18.684211 | 70 | 0.657746 | jimporter |
f1d1cace8a50a0dc5605adfcf33c39b328c9248a | 644 | cpp | C++ | P/2032.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2020-09-13T02:51:25.000Z | 2020-09-13T02:51:25.000Z | P/2032.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | null | null | null | P/2032.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2021-06-05T03:37:57.000Z | 2021-06-05T03:37:57.000Z | #include<iostream>
#include<stdio.h>
#include<deque>
#define max(_1,_2) ((_1)>(_2)?(_1):(_2))
#define min(_1,_2) ((_1)>(_2)?(_1):(_2))
using namespace std;
struct cr{
int num,id;
inline void put(int _num,int _id){
num=_num,id=_id;
}
}a[1000005];
int num,n,m;
void work(int _if_min){
deque<cr>q;
for(int i=1;i<=n;i... | 17.888889 | 60 | 0.56677 | langonginc |
f1d558f3d6294a7cebd557d1c8c20082674e5bf0 | 7,024 | cpp | C++ | examples/Example_reconstruct_image.cpp | MSusik/LibAPR | 5338da714905577642342c80120524bdebab5bb6 | [
"Apache-2.0"
] | null | null | null | examples/Example_reconstruct_image.cpp | MSusik/LibAPR | 5338da714905577642342c80120524bdebab5bb6 | [
"Apache-2.0"
] | null | null | null | examples/Example_reconstruct_image.cpp | MSusik/LibAPR | 5338da714905577642342c80120524bdebab5bb6 | [
"Apache-2.0"
] | null | null | null | //
// Created by cheesema on 14/03/17.
//
////////////////////////////////////////
///
/// Bevan Cheeseman 2018
///
const char* usage = R"(
APR pixel image reconstruction example:
Outputs various reconstructed images from the APR.
Usage:
(using *_apr.h5 output of Example_get_apr)
Example_reconstruct_image -i input... | 31.63964 | 120 | 0.632118 | MSusik |
f1d637ee274d74c7f3dc883b100d9db2cd160fd2 | 329 | cpp | C++ | tests/FirstBadVersionTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | tests/FirstBadVersionTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | tests/FirstBadVersionTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "catch.hpp"
#include "FirstBadVersion.hpp"
TEST_CASE("First Bad Version") {
const int N = 2126753390;
const int M = 1702766719;
auto isBad = [](int version) {
return version >= M;
};
FirstBadVersion s(isBad);
SECTION("Sample test") {
REQUIRE(s.firstBadVersion(N) == M);... | 20.5625 | 43 | 0.601824 | yanzhe-chen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.