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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fdf1d661f8f8bfeb1556b63da2e344d6f3cab9d6 | 47 | cpp | C++ | out.cpp | Hubear-MUC/File-access | 67dc59c7ead3ce1df47989a6b188dc7062a6aa73 | [
"MIT"
] | null | null | null | out.cpp | Hubear-MUC/File-access | 67dc59c7ead3ce1df47989a6b188dc7062a6aa73 | [
"MIT"
] | null | null | null | out.cpp | Hubear-MUC/File-access | 67dc59c7ead3ce1df47989a6b188dc7062a6aa73 | [
"MIT"
] | null | null | null | void out(int v)
{
printf ("out: %d\n", v);
}
| 9.4 | 26 | 0.489362 | Hubear-MUC |
fdf42d457833e1f0d4d185ff0b3780a7b4e7c7e6 | 311 | cpp | C++ | code/11.maxArea.cpp | T1mzhou/LeetCode | 574540d30f5696e55799831dc3c8d8b7246b74f1 | [
"MIT"
] | 1 | 2020-10-04T13:39:34.000Z | 2020-10-04T13:39:34.000Z | code/11.maxArea.cpp | T1mzhou/LeetCode | 574540d30f5696e55799831dc3c8d8b7246b74f1 | [
"MIT"
] | null | null | null | code/11.maxArea.cpp | T1mzhou/LeetCode | 574540d30f5696e55799831dc3c8d8b7246b74f1 | [
"MIT"
] | null | null | null | class Solution {
public:
int maxArea(vector<int>& height) {
int res = 0;
for (int i = 0, j = height.size() - 1; i < j;) {
res = max(res, min(height[i], height[j]) * (j - i));
if (height[i] > height[j]) j--;
else i++;
}
return res;
}
}; | 25.916667 | 64 | 0.424437 | T1mzhou |
fdf555e7f4041f2e45261485729b7426387b80e6 | 3,908 | cc | C++ | test/extensions/filters/listener/original_src/original_src_socket_option_test.cc | bianpengyuan/envoy | 925810d00b0d3095a8e67fd4e04e0f597ed188bb | [
"Apache-2.0"
] | 1 | 2019-02-14T01:02:29.000Z | 2019-02-14T01:02:29.000Z | test/extensions/filters/listener/original_src/original_src_socket_option_test.cc | bianpengyuan/envoy | 925810d00b0d3095a8e67fd4e04e0f597ed188bb | [
"Apache-2.0"
] | null | null | null | test/extensions/filters/listener/original_src/original_src_socket_option_test.cc | bianpengyuan/envoy | 925810d00b0d3095a8e67fd4e04e0f597ed188bb | [
"Apache-2.0"
] | null | null | null | #include "envoy/network/address.h"
#include "common/network/utility.h"
#include "extensions/filters/listener/original_src/original_src_socket_option.h"
#include "test/mocks/common.h"
#include "test/mocks/network/mocks.h"
#include "test/test_common/printers.h"
#include "test/test_common/test_base.h"
#include "gmock/... | 35.527273 | 99 | 0.746929 | bianpengyuan |
fdf57738ac5597964b420620738d4d9bd40ce2d3 | 2,112 | cpp | C++ | Samples/XamlListView/cppwinrt/Item.cpp | ayhrgr/Windows-universal-samples | 7b34a9f7613be0c5316428426dfc6df8ce657f02 | [
"MIT"
] | 1 | 2022-03-21T20:16:53.000Z | 2022-03-21T20:16:53.000Z | Samples/XamlListView/cppwinrt/Item.cpp | sanskarjain2110/Windows-universal-samples | 7b34a9f7613be0c5316428426dfc6df8ce657f02 | [
"MIT"
] | null | null | null | Samples/XamlListView/cppwinrt/Item.cpp | sanskarjain2110/Windows-universal-samples | 7b34a9f7613be0c5316428426dfc6df8ce657f02 | [
"MIT"
] | null | null | null | //*********************************************************
//
// 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... | 43.102041 | 106 | 0.607008 | ayhrgr |
fdf6ab77ec4a1da5e23eb8942f1a09482429c944 | 1,679 | cpp | C++ | doom_py/examples/c++/CIG.cpp | xakiru/doom-py | 85ada06dc9603e2f0768a06e4fcae637cf1c3931 | [
"MIT"
] | 78 | 2016-05-08T19:20:58.000Z | 2022-01-17T22:40:25.000Z | doom_py/examples/c++/CIG.cpp | xakiru/doom-py | 85ada06dc9603e2f0768a06e4fcae637cf1c3931 | [
"MIT"
] | 15 | 2016-05-10T19:15:31.000Z | 2021-09-30T22:18:32.000Z | doom_py/examples/c++/CIG.cpp | xakiru/doom-py | 85ada06dc9603e2f0768a06e4fcae637cf1c3931 | [
"MIT"
] | 42 | 2016-05-08T19:19:40.000Z | 2021-09-19T06:53:08.000Z | #include "ViZDoom.h"
#include <iostream>
#include <vector>
using namespace vizdoom;
int main(){
std::cout << "\n\nCIG EXAMPLE\n\n";
DoomGame* game = new DoomGame();
// Use CIG example config or Your own.
game->loadConfig("../../examples/config/cig.cfg");
// Select game and map You want to use... | 29.982143 | 124 | 0.591423 | xakiru |
fdf6cf8e102b6b61a14ba7d10363a1e656798d9d | 900 | hpp | C++ | Raspberrypi/module/src/frame_stacker.hpp | Dimsmary/MisakaImoto | fce04bd06d58e5b07fb134fd57703984cbb06278 | [
"MIT"
] | 12 | 2020-08-07T02:29:17.000Z | 2022-03-14T04:26:15.000Z | Raspberrypi/module/src/frame_stacker.hpp | Dimsmary/MisakaImoto | fce04bd06d58e5b07fb134fd57703984cbb06278 | [
"MIT"
] | 1 | 2020-10-31T04:32:35.000Z | 2020-10-31T04:32:35.000Z | Raspberrypi/module/src/frame_stacker.hpp | Dimsmary/MisakaImoto | fce04bd06d58e5b07fb134fd57703984cbb06278 | [
"MIT"
] | 2 | 2020-10-09T01:45:59.000Z | 2022-01-20T03:23:07.000Z | //
// Created by 79937 on 2020/7/31.
//
#ifndef DISPLAYIMAGE_FRAME_STACKER_HPP
#define DISPLAYIMAGE_FRAME_STACKER_HPP
#include <opencv2/opencv.hpp>
using namespace std;
class frame_stacker {
string text;
int times;
// 文字属性
bool back_ground;
int font_face;
double font_scale;
int thickn... | 18.367347 | 44 | 0.612222 | Dimsmary |
a90b2eeab579be875757b2d10642f63e87aecb92 | 766 | cpp | C++ | LeetCode/[Practice Problems]/string_to_integer.cpp | Alecs-Li/Competitive-Programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | 1 | 2021-07-06T02:14:03.000Z | 2021-07-06T02:14:03.000Z | LeetCode/[Practice Problems]/string_to_integer.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | LeetCode/[Practice Problems]/string_to_integer.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | class Solution {
public:
int myAtoi(string s) {
if(s.length() == 0){
return 0;
}
int i = 0;
while(s[i] == ' '){
i++;
}
bool isPositive = true;
if(s[i] == '-' || s[i] == '+'){
isPositive = (s[i] == '+' ? true : false... | 23.212121 | 74 | 0.314621 | Alecs-Li |
a90eacea464423f61a2392da908c426498297c50 | 547 | cpp | C++ | LeetCode/cpp/1022.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/cpp/1022.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/cpp/1022.cpp | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution {
int mod = static_cast<int>(pow(10, 9) + 7);
public:
int sumRootToLeaf(TreeNode *root) {
if (!root)
return 0;
return Sum(root, 0);
}
int Sum(TreeNode *node, int &&curr) {
int sum = 0;
if (!node->left && !node->right)
return curr * ... | 27.35 | 64 | 0.478976 | ZintrulCre |
a912cb3de06ece7074ba89e3c9c78b88cca9ffce | 23,413 | cpp | C++ | libpvkernel/src/rush/PVFormat.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvkernel/src/rush/PVFormat.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvkernel/src/rush/PVFormat.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | //
// MIT License
//
// © ESI Group, 2015
//
// 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, pu... | 35.367069 | 124 | 0.589715 | inendi-inspector |
a9144340c55da1ee5ac719b5bd19229b7e7e4de9 | 400 | hpp | C++ | Paramedic.hpp | reutKeyshawn/Ex4_cpp | 776e40a9456c56beffe1253366a1448794aaeea5 | [
"MIT"
] | null | null | null | Paramedic.hpp | reutKeyshawn/Ex4_cpp | 776e40a9456c56beffe1253366a1448794aaeea5 | [
"MIT"
] | null | null | null | Paramedic.hpp | reutKeyshawn/Ex4_cpp | 776e40a9456c56beffe1253366a1448794aaeea5 | [
"MIT"
] | null | null | null | #ifndef PARAMEDIC_H_
#define PARAMEDIC_H_
#pragma once
#include <vector>
#include "Soldier.hpp"
class Paramedic : public Soldier
{
public:
Paramedic(uint player_id, uint health_points = 100, uint damage = 0) : Soldier{player_id, health_points, damage} {}
Paramedic();
void attack(std::vector<std::vector<... | 20 | 119 | 0.6925 | reutKeyshawn |
a914f78ded8efc652df69f547236d0656af8299d | 2,904 | cpp | C++ | tests/common/test_utils.cpp | EDCBlockchain/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | 12 | 2019-10-31T13:24:21.000Z | 2021-12-29T22:02:22.000Z | tests/common/test_utils.cpp | DONOVA28/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | null | null | null | tests/common/test_utils.cpp | DONOVA28/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | 11 | 2019-07-24T12:46:29.000Z | 2021-11-27T04:41:48.000Z | #include "test_utils.hpp"
using namespace graphene;
using namespace graphene::chain;
std::map<string, account_object> accounts_map;
void create_test_account(account_test_in& new_account, database_fixture &db)
{
account_object parent = db.get_account_by_name(new_account.parent);
db.create_account(new_account.na... | 44.676923 | 154 | 0.708678 | EDCBlockchain |
a919a17eb9dea0b910e13ce4c651632b78045bd3 | 355 | hpp | C++ | Libraries/Networking/SimpleSocket.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/Networking/SimpleSocket.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Networking/SimpleSocket.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
namespace Zero
{
class TcpSocket;
class SimpleSocket : public Component
{
public:
ZilchDeclareType(SimpleSocket, TypeCopyMode::ReferenceType);
/// Constructor.
SimpleSocket();
/// Returns the socket.
TcpSocket* GetSocket();
private:
/// Socket.
TcpSocke... | 13.653846 | 62 | 0.704225 | RyanTylerRae |
a92065d6fb3ad6ff3bf499a044dfe5fe25749b7d | 7,689 | cpp | C++ | scene/2d/collision_shape_2d.cpp | literaldumb/godot | a2903fc51d1d20eba4dc451bdacbe477d6670163 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | scene/2d/collision_shape_2d.cpp | literaldumb/godot | a2903fc51d1d20eba4dc451bdacbe477d6670163 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | scene/2d/collision_shape_2d.cpp | literaldumb/godot | a2903fc51d1d20eba4dc451bdacbe477d6670163 | [
"CC-BY-3.0",
"MIT"
] | 1 | 2019-01-13T00:44:17.000Z | 2019-01-13T00:44:17.000Z | /*************************************************************************/
/* collision_shape_2d.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 31.129555 | 223 | 0.658343 | literaldumb |
a93a1419994149a8225cdebe31997407be8489c3 | 8,217 | cpp | C++ | src/mandelbrot/mandelbrot_avx/mandelbrot_avx.cpp | mrange/benchmarksgame | f091eeea3616cee50d3c8e74c5eabb85a146c3d0 | [
"Apache-2.0"
] | null | null | null | src/mandelbrot/mandelbrot_avx/mandelbrot_avx.cpp | mrange/benchmarksgame | f091eeea3616cee50d3c8e74c5eabb85a146c3d0 | [
"Apache-2.0"
] | null | null | null | src/mandelbrot/mandelbrot_avx/mandelbrot_avx.cpp | mrange/benchmarksgame | f091eeea3616cee50d3c8e74c5eabb85a146c3d0 | [
"Apache-2.0"
] | 2 | 2017-09-14T07:12:32.000Z | 2019-12-24T18:17:36.000Z | // ----------------------------------------------------------------------------------------------
// Copyright 2017 Mårten Rånge
//
// 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
//
// ... | 26.852941 | 119 | 0.525618 | mrange |
a93a7c18302add97a87fb0535861d01dbc393c7b | 187 | cc | C++ | test/check_file.cc | respu/libposix | 27681383e5d3e19687d7fba23d97166beeeece13 | [
"Unlicense"
] | 2 | 2015-11-05T09:08:04.000Z | 2016-02-09T23:26:00.000Z | test/check_file.cc | yggchan/libposix | 27681383e5d3e19687d7fba23d97166beeeece13 | [
"Unlicense"
] | null | null | null | test/check_file.cc | yggchan/libposix | 27681383e5d3e19687d7fba23d97166beeeece13 | [
"Unlicense"
] | null | null | null | /* This is free and unencumbered software released into the public domain. */
#include "catch.hpp"
#include <posix++/file.h> /* for posix::file */
TEST_CASE("test_file") {
// TODO
}
| 18.7 | 77 | 0.673797 | respu |
a93e7e38d09c4d0825d4f25aa5df75f13d4dca5f | 30,567 | cpp | C++ | applications/mne_browse/Windows/mainwindow.cpp | liminsun/mne-cpp | c5de865281164cf1867450c9705b21c9ac1b5cd7 | [
"BSD-3-Clause"
] | null | null | null | applications/mne_browse/Windows/mainwindow.cpp | liminsun/mne-cpp | c5de865281164cf1867450c9705b21c9ac1b5cd7 | [
"BSD-3-Clause"
] | null | null | null | applications/mne_browse/Windows/mainwindow.cpp | liminsun/mne-cpp | c5de865281164cf1867450c9705b21c9ac1b5cd7 | [
"BSD-3-Clause"
] | null | null | null | //=============================================================================================================
/**
* @file mainwindow.cpp
* @author Florian Schlembach <florian.schlembach@tu-ilmenau.de>;
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu... | 42.810924 | 208 | 0.623516 | liminsun |
a93f415519910387fdc4aeb93ac21d41ac3140ad | 2,790 | cpp | C++ | Source/Engine/ING/Source/ING/Resource/Manager/Manager.cpp | n-c0d3r/ING | f858c973e1b31ffc6deb324fa52eda6323d2c165 | [
"MIT"
] | 2 | 2022-01-21T04:03:55.000Z | 2022-03-19T08:54:00.000Z | Source/Engine/ING/Source/ING/Resource/Manager/Manager.cpp | n-c0d3r/ING | f858c973e1b31ffc6deb324fa52eda6323d2c165 | [
"MIT"
] | null | null | null | Source/Engine/ING/Source/ING/Resource/Manager/Manager.cpp | n-c0d3r/ING | f858c973e1b31ffc6deb324fa52eda6323d2c165 | [
"MIT"
] | null | null | null |
/**
* Include Header
*/
#include "Manager.h"
/**
* Include FStream
*/
#include <fstream>
/**
* Include File System
*/
#include <filesystem>
/**
* Include Coder
*/
#include <ING/Coder/Coder.h>
/**
* Include Debug
*/
#include <ING/_Debug/Debug.h>
/**
* Include Engine
*/
#include <ING/Engine/En... | 12.857143 | 107 | 0.645161 | n-c0d3r |
a9417e99857f34cd3456663b0047cd710756e0db | 2,604 | cpp | C++ | moai/src/uslscore/USRhombus.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/uslscore/USRhombus.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/uslscore/USRhombus.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | // Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved.
// http://getmoai.com
#include "pch.h"
#include <uslscore/USBox.h>
#include <uslscore/USPlane.h>
#include <uslscore/USRhombus.h>
//================================================================//
// USRhombus
//=====================================... | 24.8 | 68 | 0.49424 | jjimenezg93 |
a9431716c39b347bc03eba3eb71951e84f694ab1 | 3,184 | hpp | C++ | planning/scenario_planning/lane_driving/behavior_planning/behavior_velocity_planner/include/scene_module/occlusion_spot/risk_predictive_braking.hpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 1 | 2022-03-09T05:53:04.000Z | 2022-03-09T05:53:04.000Z | planning/scenario_planning/lane_driving/behavior_planning/behavior_velocity_planner/include/scene_module/occlusion_spot/risk_predictive_braking.hpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 4 | 2022-01-07T21:21:04.000Z | 2022-03-14T21:25:37.000Z | planning/scenario_planning/lane_driving/behavior_planning/behavior_velocity_planner/include/scene_module/occlusion_spot/risk_predictive_braking.hpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 2 | 2021-03-09T00:20:39.000Z | 2021-04-16T10:23:36.000Z | // Copyright 2021 Tier IV, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 39.8 | 97 | 0.784234 | loop-perception |
a946e466ad3a0d7381ebe09104c7f1c54e369037 | 6,899 | hpp | C++ | pabst/gui_spectator.hpp | ltac/ltmf-campus-martius.clafghan | 756e60b022fec52f599c86bb6f4eff63dbbdff20 | [
"Unlicense"
] | null | null | null | pabst/gui_spectator.hpp | ltac/ltmf-campus-martius.clafghan | 756e60b022fec52f599c86bb6f4eff63dbbdff20 | [
"Unlicense"
] | 1 | 2017-03-03T07:10:34.000Z | 2017-03-03T07:10:34.000Z | pabst/gui_spectator.hpp | ltac/ltmf-campus-martius.clafghan | 756e60b022fec52f599c86bb6f4eff63dbbdff20 | [
"Unlicense"
] | null | null | null | class PABST_SPECT_dialog
{
idd = 6969;
movingEnable = 1;
enableSimulation = 1;
enableDisplay = 1;
onLoad = "uiNamespace setVariable ['PABST_SPECT_theDialog', _this select 0];";
duration = 2147483647;
fadein = 0;
fadeout = 0;
onKeyDown = "['key', true, _this] call PABST_SPECT_UI_onKeyAction";
onKeyUp = "['ke... | 28.626556 | 79 | 0.559356 | ltac |
a947f7efe9ba7f159fa6e89c06cf9817fee8d7db | 19,361 | cpp | C++ | test/bridge/ActiveMediaListTest.cpp | danielgronberg/SymphonyMediaBridge | 2cdd2ecd45c534545c9d3f3c36d8e86771330057 | [
"Apache-2.0"
] | null | null | null | test/bridge/ActiveMediaListTest.cpp | danielgronberg/SymphonyMediaBridge | 2cdd2ecd45c534545c9d3f3c36d8e86771330057 | [
"Apache-2.0"
] | null | null | null | test/bridge/ActiveMediaListTest.cpp | danielgronberg/SymphonyMediaBridge | 2cdd2ecd45c534545c9d3f3c36d8e86771330057 | [
"Apache-2.0"
] | null | null | null | #include "bridge/engine/ActiveMediaList.h"
#include "bridge/engine/EngineAudioStream.h"
#include "bridge/engine/EngineVideoStream.h"
#include "bridge/engine/SimulcastStream.h"
#include "jobmanager/JobManager.h"
#include "nlohmann/json.hpp"
#include "test/bridge/ActiveMediaListTestLevels.h"
#include "test/bridge/DummyRt... | 37.090038 | 118 | 0.725944 | danielgronberg |
a94eadd6928a8d7da4d8a43255b50584aef29a44 | 1,264 | cc | C++ | src/block.cc | enteisuper/Tetris-Reloaded | c594402e315523491f854de54c6d956a34c79442 | [
"MIT"
] | null | null | null | src/block.cc | enteisuper/Tetris-Reloaded | c594402e315523491f854de54c6d956a34c79442 | [
"MIT"
] | null | null | null | src/block.cc | enteisuper/Tetris-Reloaded | c594402e315523491f854de54c6d956a34c79442 | [
"MIT"
] | null | null | null | //
// Created by Henrik Tseng on 4/25/20.
//
#include "physics/block.h"
#include <Box2D/Dynamics/b2Fixture.h>
#include <physics/world.h>
namespace tetris {
b2AABB Block::GetBlockBox(World* world) {
b2Fixture* fixture_list = body_->GetFixtureList();
b2AABB body_aabb;
// manually set constructor
body_aabb.low... | 25.795918 | 61 | 0.698576 | enteisuper |
a9501e5e94226cc4cf48d3e8cd3015c9ac26a910 | 1,335 | hpp | C++ | application/timely-matter/src/views/RenderView.hpp | davidbeermann/timely-matter | fca86fb5b48766c5371677a90ac5149c1b071149 | [
"MIT"
] | 2 | 2016-09-03T17:49:30.000Z | 2016-12-20T18:12:58.000Z | application/timely-matter/src/views/RenderView.hpp | davidbeermann/timely-matter | fca86fb5b48766c5371677a90ac5149c1b071149 | [
"MIT"
] | null | null | null | application/timely-matter/src/views/RenderView.hpp | davidbeermann/timely-matter | fca86fb5b48766c5371677a90ac5149c1b071149 | [
"MIT"
] | null | null | null | #pragma once
#include "ofMain.h"
#include "BaseView.hpp"
#include "RenderParams.hpp"
#include "VectorFieldInputFactory.hpp"
#include "VectorFieldInput.hpp"
#include "VectorField.hpp"
#include "ParticleSystem.hpp"
#include "Metaballs.hpp"
#include "PingPongFbo.hpp"
#include "RenderControls.hpp"
#include "OscRenderContr... | 25.188679 | 66 | 0.668914 | davidbeermann |
a955174c8c8d3f96c72bebcb6370b6567e1c8133 | 1,108 | cpp | C++ | examples/charstring-split.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | examples/charstring-split.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | examples/charstring-split.cpp | davidwed/sqlrelay_rudiments | 6ccffdfc5fa29f8c0226f3edc2aa888aa1008347 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | #include <rudiments/charstring.h>
#include <rudiments/stdio.h>
int main(int argc, const char **argv) {
const char str[]="All along the untrodden paths of the future...";
// split...
char **parts;
uint64_t partcount;
charstring::split(str," ",true,&parts,&partcount);
stdoutput.printf("original string:\n %s\n... | 22.612245 | 67 | 0.673285 | davidwed |
a95aad99a7d47706d522fca4c8e2ba705ad21087 | 8,378 | cpp | C++ | test/view/set_intersection.cpp | tlanc007/range-v3 | 7393f09b8bd0112695541df3e1b60515a34f8dc8 | [
"MIT"
] | 2 | 2018-01-28T14:30:10.000Z | 2019-03-27T09:21:58.000Z | test/view/set_intersection.cpp | tlanc007/range-v3 | 7393f09b8bd0112695541df3e1b60515a34f8dc8 | [
"MIT"
] | 1 | 2020-05-01T11:52:59.000Z | 2020-05-01T11:52:59.000Z | test/view/set_intersection.cpp | tlanc007/range-v3 | 7393f09b8bd0112695541df3e1b60515a34f8dc8 | [
"MIT"
] | 2 | 2020-10-01T04:13:57.000Z | 2021-07-01T07:46:47.000Z | // Range v3 library
//
// Copyright Eric Niebler 2014-present
// Copyright Tomislav Ivek 2015-2016
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: ht... | 37.401786 | 165 | 0.61005 | tlanc007 |
a95e4c18650e487b4917789ae377554451963b00 | 2,383 | cpp | C++ | src/SDIMCommon/HashTable.cpp | DamienHenderson/SDIM | 623ac00402a68a504451c3b7c76cd16fde2fa57e | [
"MIT"
] | null | null | null | src/SDIMCommon/HashTable.cpp | DamienHenderson/SDIM | 623ac00402a68a504451c3b7c76cd16fde2fa57e | [
"MIT"
] | null | null | null | src/SDIMCommon/HashTable.cpp | DamienHenderson/SDIM | 623ac00402a68a504451c3b7c76cd16fde2fa57e | [
"MIT"
] | null | null | null | #include "HashTable.hpp"
#include "Utils.hpp"
#include <cstdlib>
namespace SDIM
{
HashTable::HashTable()
{
}
HashTable::~HashTable()
{
if (strings_ != nullptr)
{
delete[] strings_;
strings_ = nullptr;
}
}
bool HashTable::Exists(const char* string)
{
if (strings_ == nullptr)
{
return false;... | 21.663636 | 108 | 0.650021 | DamienHenderson |
a95e6e1a396a83cceccf934f2c2a19329a1dcae4 | 321 | cpp | C++ | Source/Oscillators/SineOsc.cpp | mhamilt/Wiggle-Scope | dd33918ca6f01647c59ab4e94dee038155029cea | [
"MIT"
] | 1 | 2021-07-24T09:28:32.000Z | 2021-07-24T09:28:32.000Z | Source/Oscillators/SineOsc.cpp | mhamilt/Wiggle-Scope | dd33918ca6f01647c59ab4e94dee038155029cea | [
"MIT"
] | 1 | 2021-05-10T20:16:49.000Z | 2021-05-10T20:16:49.000Z | Source/Oscillators/SineOsc.cpp | mhamilt/Wiggle-Scope | dd33918ca6f01647c59ab4e94dee038155029cea | [
"MIT"
] | null | null | null | /*
==============================================================================
Oscillator.cpp
Created: 3 May 2021 2:55:47pm
Author: mhamilt7
==============================================================================
*/
#include "SineOsc.h"
float SinOsc::output()
{
return std::sin(phase * tau);
}... | 18.882353 | 79 | 0.314642 | mhamilt |
a963da36d91418f6641677585a75e5cd31d8a804 | 4,708 | cpp | C++ | src/lapel_default_user_list.cpp | cjhdev/lapel | 9fd86ba900ff3f83154e8ebd1cb8634e58c3ca75 | [
"MIT"
] | null | null | null | src/lapel_default_user_list.cpp | cjhdev/lapel | 9fd86ba900ff3f83154e8ebd1cb8634e58c3ca75 | [
"MIT"
] | null | null | null | src/lapel_default_user_list.cpp | cjhdev/lapel | 9fd86ba900ff3f83154e8ebd1cb8634e58c3ca75 | [
"MIT"
] | null | null | null | /* Copyright 2022 Cameron Harper
*
* */
#include "lapel_default_user_list.h"
#include "lapel_system.h"
#include "lapel_debug.h"
#include "mbed_sha256/mbed_sha256.h"
#include <string.h>
using namespace Lapel;
static const char Tag[] = "DefaultUserList";
DefaultUserList::DefaultUserList(System &system, size_t max_... | 20.558952 | 127 | 0.604928 | cjhdev |
a967e9fd0faad6844572ac1682488250452b86c2 | 355 | hpp | C++ | src/Function.hpp | ageorgiev97/yat | 293adda152025d7c7bfbb2e982aa9d2ff5a461d9 | [
"Apache-2.0"
] | 1 | 2019-12-11T21:50:13.000Z | 2019-12-11T21:50:13.000Z | src/Function.hpp | ageorgiev97/yat | 293adda152025d7c7bfbb2e982aa9d2ff5a461d9 | [
"Apache-2.0"
] | 4 | 2019-11-30T21:55:18.000Z | 2019-11-30T23:00:08.000Z | src/Function.hpp | ageorgiev97/yat | 293adda152025d7c7bfbb2e982aa9d2ff5a461d9 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <vector>
#include "Llvm.hpp"
#include "Type.hpp"
#include "Block.hpp"
namespace yat
{
struct Function
{
Type return_type;
llvm::Function * function;
std::vector<Block> blocks;
Function() = default;
Function(Type type, std::string const& name, s... | 16.136364 | 80 | 0.608451 | ageorgiev97 |
a96895f3360ea5bcb6eb833e73ec1a1140f1b494 | 544 | cpp | C++ | apps/gui/FileBrowser.cpp | npazosmendez/gpu-filters | 4a634c22ee888d904ecbeaa0806bf3c78619942c | [
"MIT"
] | 5 | 2020-04-27T20:25:12.000Z | 2020-08-14T02:51:15.000Z | apps/gui/FileBrowser.cpp | npazosmendez/gpu-filters | 4a634c22ee888d904ecbeaa0806bf3c78619942c | [
"MIT"
] | 2 | 2020-05-08T17:46:06.000Z | 2020-08-25T18:47:58.000Z | apps/gui/FileBrowser.cpp | npazosmendez/gpu-filters | 4a634c22ee888d904ecbeaa0806bf3c78619942c | [
"MIT"
] | 1 | 2021-03-19T15:27:36.000Z | 2021-03-19T15:27:36.000Z | #include "FileBrowser.hpp"
FileBrowser::FileBrowser(QString title, QWidget *parent)
: QWidget(parent), _button("..."), _label(title){
_button.setFixedSize(30,25);
// Arrange layout grid
_layout.addWidget(&_label,0,0);
_layout.addWidget(&_button,0,1);
QObject::connect(&_button, SIGNAL(clicked... | 27.2 | 103 | 0.693015 | npazosmendez |
a96bb59d8d6916b65aef1b6e66032af457a22b5b | 374 | cpp | C++ | plugin/game_plugin/game_plugin/PrecompiledHeader.cpp | thetodd/em5_bma | c5fdfbe1101dce1f0de223a2d5b935b4470cd360 | [
"MIT"
] | 2 | 2016-07-07T11:45:19.000Z | 2021-03-19T06:15:51.000Z | plugin/game_plugin/game_plugin/PrecompiledHeader.cpp | thetodd/em5_bma | c5fdfbe1101dce1f0de223a2d5b935b4470cd360 | [
"MIT"
] | 9 | 2016-07-07T11:57:28.000Z | 2016-07-18T15:56:41.000Z | plugin/game_plugin/game_plugin/PrecompiledHeader.cpp | thetodd/em5_bma | c5fdfbe1101dce1f0de223a2d5b935b4470cd360 | [
"MIT"
] | null | null | null | // Copyright (C) 2012-2015 Promotion Software GmbH
// This cpp-file creates the optional precompiled header, all other cpp-files are just using it
//[-------------------------------------------------------]
//[ Includes ]
//[----------------------------------------------... | 34 | 95 | 0.425134 | thetodd |
a96fd9fe64079d0f3f6404ba593b843cae566b24 | 664 | cpp | C++ | Sharp/Statements/IfStatement.cpp | gth747m/Sharp | 5c3d88779f4ba3f596bf0250a1397d4bcf84b3a7 | [
"MIT"
] | null | null | null | Sharp/Statements/IfStatement.cpp | gth747m/Sharp | 5c3d88779f4ba3f596bf0250a1397d4bcf84b3a7 | [
"MIT"
] | null | null | null | Sharp/Statements/IfStatement.cpp | gth747m/Sharp | 5c3d88779f4ba3f596bf0250a1397d4bcf84b3a7 | [
"MIT"
] | null | null | null | #include "IfStatement.hpp"
#include <utility>
IfStatement::IfStatement(std::unique_ptr<Expression>& condition, std::unique_ptr<Statement>&& thenBranch, std::unique_ptr<Statement>&& elseBranch) :
condition(std::move(condition)),
thenBranch(std::move(thenBranch)),
elseBranch(std::move(elseBranch))
{
}
void... | 27.666667 | 148 | 0.552711 | gth747m |
a9702d792b8dac26f8254df059733539078261cd | 1,542 | cc | C++ | moses2/reduct/contin_reduction.cc | moshelooks/moses | 81568276877f24c2cb1ca5649d44e22fba6f44b2 | [
"Apache-2.0"
] | null | null | null | moses2/reduct/contin_reduction.cc | moshelooks/moses | 81568276877f24c2cb1ca5649d44e22fba6f44b2 | [
"Apache-2.0"
] | null | null | null | moses2/reduct/contin_reduction.cc | moshelooks/moses | 81568276877f24c2cb1ca5649d44e22fba6f44b2 | [
"Apache-2.0"
] | null | null | null | /****
Copyright 2005-2007, Moshe Looks and Novamente LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | 32.125 | 75 | 0.703632 | moshelooks |
a970fcf54117763b564a0cbd426ace5605739805 | 797 | hh | C++ | components/WeaponPowerUpComponent.hh | deb0ch/R-Type | 8bb37cd5ec318efb97119afb87d4996f6bb7644e | [
"WTFPL"
] | 5 | 2016-03-15T20:14:10.000Z | 2020-10-30T23:56:24.000Z | components/WeaponPowerUpComponent.hh | deb0ch/R-Type | 8bb37cd5ec318efb97119afb87d4996f6bb7644e | [
"WTFPL"
] | 3 | 2018-12-19T19:12:44.000Z | 2020-04-02T13:07:00.000Z | components/WeaponPowerUpComponent.hh | deb0ch/R-Type | 8bb37cd5ec318efb97119afb87d4996f6bb7644e | [
"WTFPL"
] | 2 | 2016-04-11T19:29:28.000Z | 2021-11-26T20:53:22.000Z | #ifndef WEAPONPOWERUPCOMPONENT_H_
# define WEAPONPOWERUPCOMPONENT_H_
# include <string>
# include "ACopyableComponent.hpp"
# include "EntitySpawnerComponent.hh"
# include "APowerUpComponent.hpp"
class WeaponPowerUpComponent : public APowerUpComponent
{
public:
WeaponPowerUpComponent(const std::string weapon = "", f... | 26.566667 | 92 | 0.770389 | deb0ch |
a974bf177a67693f39c527237d81a276b4cc2956 | 55,523 | cpp | C++ | gtasa/extract.cpp | AugustoMoura/GritEnginePR | 0f8303df7f70972036d9b555dffe08cadb473926 | [
"MIT"
] | null | null | null | gtasa/extract.cpp | AugustoMoura/GritEnginePR | 0f8303df7f70972036d9b555dffe08cadb473926 | [
"MIT"
] | null | null | null | gtasa/extract.cpp | AugustoMoura/GritEnginePR | 0f8303df7f70972036d9b555dffe08cadb473926 | [
"MIT"
] | null | null | null | /* Copyright Copyright (c) David Cunningham and the Grit Game Engine project 2012
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... | 39.630978 | 134 | 0.534625 | AugustoMoura |
a9758707b607ca2557ac6388d27bf13540e82662 | 2,365 | cpp | C++ | codeforces/EDU/segment_tree/sign_alteration.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/EDU/segment_tree/sign_alteration.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/EDU/segment_tree/sign_alteration.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <climits>
using namespace std;
struct item{
long long int val;
int length;
};
struct segtree{
int size;
vector<item>values;
item NEUTRAL_ELEMENT = {0,0};
item combine(const item &p1, const item &p2){
if(p1.length==0){
return {p2.val, p2.length};
}
else... | 17.649254 | 80 | 0.536998 | udayan14 |
a9788365790c6e69bc5931bb9b2af15761989fda | 12,712 | cpp | C++ | CSGOSimple/Backtrack.cpp | D1ckRider/Dickware | d0b2417505437c7f67fe687a81a43d459f09af7f | [
"MIT"
] | 3 | 2019-11-17T19:52:44.000Z | 2020-02-26T18:22:25.000Z | CSGOSimple/Backtrack.cpp | Renji-kun/Dickware | d0b2417505437c7f67fe687a81a43d459f09af7f | [
"MIT"
] | 12 | 2019-01-17T14:52:06.000Z | 2019-03-21T17:01:09.000Z | CSGOSimple/Backtrack.cpp | D1ckRider/Dickware | d0b2417505437c7f67fe687a81a43d459f09af7f | [
"MIT"
] | 9 | 2019-06-02T18:26:13.000Z | 2020-04-21T19:21:48.000Z |
#include "Backtrack.h"
#include "helpers\math.hpp"
#include "Rbot.h"
#include "ConsoleHelper.h"
#include "Autowall.h"
#include "Settings.h"
void Backtrack::OnCreateMove()
{
for ( int i = 1; i < g_EngineClient->GetMaxClients(); i++ )
{
auto entity = static_cast<C_BasePlayer*> ( g_EntityList->GetClientE... | 27.455724 | 230 | 0.580868 | D1ckRider |
a985eafbb6c411bc9f63bfff5a0e65da53c45a9c | 2,651 | cpp | C++ | 069.cpp | Jalanjii/Algorithms | 6b6b01e18c5c6c4bcfa122a269fdab8a47f09b7b | [
"MIT"
] | 1 | 2021-04-14T22:52:05.000Z | 2021-04-14T22:52:05.000Z | 069.cpp | Jalanjii/Algorithms | 6b6b01e18c5c6c4bcfa122a269fdab8a47f09b7b | [
"MIT"
] | null | null | null | 069.cpp | Jalanjii/Algorithms | 6b6b01e18c5c6c4bcfa122a269fdab8a47f09b7b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
int n, index = -1, res = -1, length = 0, max_length = 0;
bool flipped = false;
cin >> n;
int *a = new int[n];
for (int i = 0; i < n; i++)
cin >> a[i];
for (int i = 0; i < n; i++) {... | 14.176471 | 57 | 0.479819 | Jalanjii |
a98955acb42b693e58479c8fc95d3c4153bd9f77 | 23,340 | inl | C++ | inc/behaviac/agent/agent.inl | Manistein/behaviac | 538266380446e0fd77461ad22fca05e2c9eb8cba | [
"BSD-3-Clause"
] | 2 | 2021-06-06T07:54:45.000Z | 2021-09-08T03:36:40.000Z | inc/behaviac/agent/agent.inl | gdtdftdqtd/behaviac | 538266380446e0fd77461ad22fca05e2c9eb8cba | [
"BSD-3-Clause"
] | null | null | null | inc/behaviac/agent/agent.inl | gdtdftdqtd/behaviac | 538266380446e0fd77461ad22fca05e2c9eb8cba | [
"BSD-3-Clause"
] | 1 | 2017-07-02T06:55:02.000Z | 2017-07-02T06:55:02.000Z | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clau... | 27.458824 | 183 | 0.711482 | Manistein |
8178c334693a1d18a3f9a4c1e92a17296856b1a1 | 2,107 | cpp | C++ | polygon.cpp | RaviSriTejaKuriseti/OPENCV-IN-WSL1 | 2646c73b52a8cfd265d5440dc43065ae8b164c9b | [
"MIT"
] | null | null | null | polygon.cpp | RaviSriTejaKuriseti/OPENCV-IN-WSL1 | 2646c73b52a8cfd265d5440dc43065ae8b164c9b | [
"MIT"
] | null | null | null | polygon.cpp | RaviSriTejaKuriseti/OPENCV-IN-WSL1 | 2646c73b52a8cfd265d5440dc43065ae8b164c9b | [
"MIT"
] | null | null | null | #include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include <iostream>
using namespace cv;
using namespace std;
int main( void )
{
const int r = 100;
Mat src = Mat::zeros( Size( 4*r, 4*r ), CV_8U );
vector<Point2f> vert(6);
vert[0] = Point( 3*r/2, static_cast<int>(1.34*r) );
vert[1] = Poi... | 33.444444 | 112 | 0.512577 | RaviSriTejaKuriseti |
81794ab8709d05625ce445c660b333289e4e88f6 | 5,189 | hpp | C++ | src/System/Synchronization.hpp | msisov/swiftshader | ba2cdf349b6ac061880e6f10997bfa7c5967f1b2 | [
"Apache-2.0"
] | 3 | 2020-07-07T19:45:20.000Z | 2022-02-20T11:44:35.000Z | src/System/Synchronization.hpp | msisov/swiftshader | ba2cdf349b6ac061880e6f10997bfa7c5967f1b2 | [
"Apache-2.0"
] | 1 | 2020-02-19T06:44:54.000Z | 2020-02-19T06:44:54.000Z | src/System/Synchronization.hpp | msisov/swiftshader | ba2cdf349b6ac061880e6f10997bfa7c5967f1b2 | [
"Apache-2.0"
] | 1 | 2020-06-03T16:14:54.000Z | 2020-06-03T16:14:54.000Z | // Copyright 2019 The SwiftShader Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 25.688119 | 95 | 0.702255 | msisov |
817b44fde868444fc46c28f75913f1bfb212302a | 2,047 | cpp | C++ | Applications/LogReporter.cpp | kabukunz/GeometricTools | bbc55cdef89a877f06310fdb6c6248205eae704b | [
"BSL-1.0"
] | null | null | null | Applications/LogReporter.cpp | kabukunz/GeometricTools | bbc55cdef89a877f06310fdb6c6248205eae704b | [
"BSL-1.0"
] | null | null | null | Applications/LogReporter.cpp | kabukunz/GeometricTools | bbc55cdef89a877f06310fdb6c6248205eae704b | [
"BSL-1.0"
] | null | null | null | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2019
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 4.0.2019.08.13
#include <Applications/GTApplicationsPCH... | 27.662162 | 88 | 0.668784 | kabukunz |
817bba6a75790eebe32b49d453f61a894c62e9c7 | 1,520 | cpp | C++ | src/preprocessor/main.cpp | 16bitnohito/cc | f1b1a15fd649ecf2c8dd6305b278d57e0887290b | [
"MIT"
] | null | null | null | src/preprocessor/main.cpp | 16bitnohito/cc | f1b1a15fd649ecf2c8dd6305b278d57e0887290b | [
"MIT"
] | null | null | null | src/preprocessor/main.cpp | 16bitnohito/cc | f1b1a15fd649ecf2c8dd6305b278d57e0887290b | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <string>
#include <system_error>
#include <vector>
#include <preprocessor/logger.h>
#include <preprocessor/preprocessor.h>
#include <preprocessor/utility.h>
using namespace pp;
using namespace std;
#if HOST_PLATFORM == PLATFORM_WINDOWS
int wmain(int argc, wchar_t* arg... | 24.918033 | 84 | 0.636184 | 16bitnohito |
817da4ec44723aa089d402ba948564e2a81480bf | 11,298 | cpp | C++ | Rasterizer/src/Rasterizer.cpp | litelawliet/ISARTRasterizer | 329ed70ea830cfff286c01d8efa5e726276f1fcd | [
"MIT"
] | 1 | 2020-03-23T14:36:02.000Z | 2020-03-23T14:36:02.000Z | Rasterizer/src/Rasterizer.cpp | litelawliet/ISARTRasterizer | 329ed70ea830cfff286c01d8efa5e726276f1fcd | [
"MIT"
] | null | null | null | Rasterizer/src/Rasterizer.cpp | litelawliet/ISARTRasterizer | 329ed70ea830cfff286c01d8efa5e726276f1fcd | [
"MIT"
] | null | null | null | #include "Rasterizer.h"
#include "Maths/Vec3.h"
#include "Maths/Vec4.h"
#include "Light.h"
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <vector>
using namespace Maths::Vector;
Rasterizer::Rasterizer(SDL_Renderer * p_renderer, SDL_Window * p_window, const unsigned int p_width, const unsigned... | 34.03012 | 242 | 0.66587 | litelawliet |
81801ca68111b2ae0d676ad91cc4fb7e510343a9 | 722 | cpp | C++ | kviewer.cpp | CryFeiFei/KTodo | cee290e69ce050810c23e23b2a24e2849251b7e4 | [
"MIT"
] | 3 | 2019-12-12T02:27:25.000Z | 2021-06-21T02:48:59.000Z | kviewer.cpp | CryFeiFei/KTodo | cee290e69ce050810c23e23b2a24e2849251b7e4 | [
"MIT"
] | null | null | null | kviewer.cpp | CryFeiFei/KTodo | cee290e69ce050810c23e23b2a24e2849251b7e4 | [
"MIT"
] | null | null | null | #include "kviewer.h"
#include <QSplitter>
#include <QVBoxLayout>
#include "kleftwidget.h"
#include "ktodowidget.h"
KViewer::KViewer(QWidget *parent) : QWidget(parent)
{
QVBoxLayout* mainLayout = new QVBoxLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
m_splitter = new QSplitter(Qt::Horizontal, this);
... | 24.066667 | 54 | 0.753463 | CryFeiFei |
8180420848baf101ea0e8a97c8a4e537855eeefe | 7,426 | cpp | C++ | poly.cpp | shibatch/rectdetect | 2d303e0bcb915a0e82178fa197f7e67de822f4e8 | [
"MIT"
] | 51 | 2018-12-18T03:36:39.000Z | 2022-03-30T10:42:25.000Z | poly.cpp | archit120/rectdetect | 2d303e0bcb915a0e82178fa197f7e67de822f4e8 | [
"MIT"
] | 4 | 2018-12-18T06:00:45.000Z | 2019-11-18T09:51:55.000Z | poly.cpp | archit120/rectdetect | 2d303e0bcb915a0e82178fa197f7e67de822f4e8 | [
"MIT"
] | 16 | 2018-12-18T12:07:04.000Z | 2022-02-16T21:29:04.000Z | // Copyright Naoki Shibata 2018. Distributed under the MIT License.
#ifdef _MSC_VER
#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <time.h>
//#include <sys/time.h>
#define CL_USE_DEPRECATED_OPE... | 37.695431 | 169 | 0.68314 | shibatch |
818269f1283f0c9eeceb7ea988300c4396691e64 | 494 | cpp | C++ | src/system/kernel/arch/aarch64/arch_timer.cpp | korli/haiku-jarek | c0cdd1413970ec2ca2cc7fab623f20161b1cec0b | [
"MIT"
] | 1 | 2021-08-31T01:47:13.000Z | 2021-08-31T01:47:13.000Z | src/system/kernel/arch/aarch64/arch_timer.cpp | korli/haiku-jarek | c0cdd1413970ec2ca2cc7fab623f20161b1cec0b | [
"MIT"
] | null | null | null | src/system/kernel/arch/aarch64/arch_timer.cpp | korli/haiku-jarek | c0cdd1413970ec2ca2cc7fab623f20161b1cec0b | [
"MIT"
] | 3 | 2018-12-17T13:07:38.000Z | 2021-09-08T13:07:31.000Z | /*
* Copyright 2018, Jaroslaw Pelczar <jarek@jpelczar.com>
* Distributed under the terms of the MIT License.
*/
#include <boot/stage2.h>
#include <kernel.h>
#include <arch/int.h>
#include <arch/cpu.h>
#include <console.h>
#include <debug.h>
#include <timer.h>
#include <int.h>
#include <safemode.h>
#include <arch... | 13.351351 | 56 | 0.724696 | korli |
8182bf01fbf352ca0415f9a3312a5510abfdb2b7 | 611 | cpp | C++ | NSS/Utils.cpp | Debu922/Natural-Selection-Simulator | f84279f3b635443506ec30cd88f0ddcc7b421497 | [
"MIT"
] | null | null | null | NSS/Utils.cpp | Debu922/Natural-Selection-Simulator | f84279f3b635443506ec30cd88f0ddcc7b421497 | [
"MIT"
] | null | null | null | NSS/Utils.cpp | Debu922/Natural-Selection-Simulator | f84279f3b635443506ec30cd88f0ddcc7b421497 | [
"MIT"
] | null | null | null | #include "Utils.h"
#include <math.h>
#include <stdint.h>
#include "Position.h"
uint64_t s[2];
uint64_t newRand() {
uint64_t s1 = s[0];
uint64_t s0 = s[1];
uint64_t result = s0 + s1;
s[0] = s0;
s1 ^= s1 << 23;
s[1] = s1 ^ s0 ^ (s1 >> 18) ^ (s0 >> 5);
return result;
}
void setRandSeed(int se... | 16.513514 | 95 | 0.551555 | Debu922 |
818320d76fcd00a06efc2c172bdb7465aefb4d57 | 5,377 | cpp | C++ | hphp/tools/bootstrap/gen-infotabs.cpp | chregu/hhvm | e95c8aff36dad178adac2418f2dbf5bb65ac2431 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/tools/bootstrap/gen-infotabs.cpp | chregu/hhvm | e95c8aff36dad178adac2418f2dbf5bb65ac2431 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/tools/bootstrap/gen-infotabs.cpp | chregu/hhvm | e95c8aff36dad178adac2418f2dbf5bb65ac2431 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... | 31.261628 | 80 | 0.492468 | chregu |
8185446b0a85d0a9265123b86d82d5e88e94e32f | 554 | cc | C++ | Part-I/Ch06/6.7/6.56.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | 1 | 2021-09-23T13:13:12.000Z | 2021-09-23T13:13:12.000Z | Part-I/Ch06/6.7/6.56.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | null | null | null | Part-I/Ch06/6.7/6.56.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
vector<int(*)(int, int)> vec;
int sum(int a, int b)
{
return a + b;
}
int sub(int a, int b)
{
return a - b;
}
int mul(int a, int b)
{
return a * b;
}
int div(int a, int b)
{
return a / b;
}
int main()
{
vec.push_back(sum);
vec.push... | 13.85 | 33 | 0.519856 | RingZEROtlf |
81877491358cc8b726bf4314fd777611bf47885e | 971 | cpp | C++ | CR/Engine/Core/source/Timer.cpp | duhone/conjure | 9b98309d01471a7ef3953f7d7e9fe6e98aa82c55 | [
"MIT"
] | null | null | null | CR/Engine/Core/source/Timer.cpp | duhone/conjure | 9b98309d01471a7ef3953f7d7e9fe6e98aa82c55 | [
"MIT"
] | null | null | null | CR/Engine/Core/source/Timer.cpp | duhone/conjure | 9b98309d01471a7ef3953f7d7e9fe6e98aa82c55 | [
"MIT"
] | null | null | null | module;
#include "fmt/compile.h"
#include "fmt/format.h"
module CR.Engine.Core.Timer;
using namespace std;
using namespace CR::Engine::Core;
Timer::Timer() {
Reset();
}
/*
Reset the total time back to 0. Also resets the last frame time back to 0.
Generally only used when total time is needed.
*/
void Time... | 22.581395 | 106 | 0.700309 | duhone |
81881c87cac5b8409a2938453e9bf6aab34293e6 | 497 | cpp | C++ | MeetingCodes/Meeting2/nelli_trap.cpp | knelli2/spectre-cpp-basics | 9ac3f192a3673e708e8cd33efce0b3eba13f46fc | [
"MIT"
] | null | null | null | MeetingCodes/Meeting2/nelli_trap.cpp | knelli2/spectre-cpp-basics | 9ac3f192a3673e708e8cd33efce0b3eba13f46fc | [
"MIT"
] | null | null | null | MeetingCodes/Meeting2/nelli_trap.cpp | knelli2/spectre-cpp-basics | 9ac3f192a3673e708e8cd33efce0b3eba13f46fc | [
"MIT"
] | null | null | null | #include <cmath>
#include "nelli_trap.hpp"
/// function to numerically integrate using trap midpoint
double trap(double (* const func)(const double),
const double step_size, const double lower_bound,
const double upper_bound) noexcept {
double result;
for(doubl... | 31.0625 | 72 | 0.623742 | knelli2 |
81897befa1386ea9e459724c115e395f33485f68 | 311 | hpp | C++ | include/args.hpp | tomdodd4598/UCL-PHAS0100-BumbleNassExample1 | 134f415ea9a4b884ab34208517db26d66bef7aeb | [
"MIT"
] | null | null | null | include/args.hpp | tomdodd4598/UCL-PHAS0100-BumbleNassExample1 | 134f415ea9a4b884ab34208517db26d66bef7aeb | [
"MIT"
] | null | null | null | include/args.hpp | tomdodd4598/UCL-PHAS0100-BumbleNassExample1 | 134f415ea9a4b884ab34208517db26d66bef7aeb | [
"MIT"
] | null | null | null | #ifndef ARGS_H
#define ARGS_H
#include <tuple>
namespace args {
/*template<typename... T>
std::tuple<T...> argv_tuple(int argc, char** argv) {
std::tuple<T...> tuple;
for (int i = 1; i < argc; ++i) {
std::get<i>(tuple) =
}
return tuple;
}*/
}
#endif
| 16.368421 | 56 | 0.501608 | tomdodd4598 |
818a765296a63b0c2f3148233ea93f15370c2bb2 | 13,369 | hpp | C++ | src/armnn/Network.hpp | sahilbandar/armnn | 249950645b7bc0593582182097c7e2f1d6d97442 | [
"MIT"
] | 1 | 2022-02-10T11:06:30.000Z | 2022-02-10T11:06:30.000Z | src/armnn/Network.hpp | sahilbandar/armnn | 249950645b7bc0593582182097c7e2f1d6d97442 | [
"MIT"
] | null | null | null | src/armnn/Network.hpp | sahilbandar/armnn | 249950645b7bc0593582182097c7e2f1d6d97442 | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/DescriptorsFwd.hpp>
#include <armnn/LstmParams.hpp>
#include <armnn/QuantizedLstmParams.hpp>
#include <armnn/TensorFwd.hpp>
#include <armnn/Types.hpp>
#include <armnn/INetwork.hpp>
#i... | 45.013468 | 115 | 0.603261 | sahilbandar |
818fe92c0f897494daa0a01ab0b41d3f7563833e | 3,779 | hpp | C++ | include/VROSC/BeatCounterUI_SyncToggleSource.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/VROSC/BeatCounterUI_SyncToggleSource.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/VROSC/BeatCounterUI_SyncToggleSource.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: VROSC.BeatCounterUI
#include "VROSC... | 51.767123 | 126 | 0.744377 | RedBrumbler |
81a1185c9615035ae1ccf93fdde6aa5bd2f7321c | 817 | cpp | C++ | p103/p103.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | 1 | 2019-10-07T05:00:21.000Z | 2019-10-07T05:00:21.000Z | p103/p103.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | p103/p103.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<vector<int>> zigzagLevelOrder(TreeNode* root) {
vector<vector<int>> res;
d... | 20.425 | 64 | 0.538556 | suzyz |
81a4ca4123e041a5c61773ab4c8c45144734b572 | 12,183 | cpp | C++ | c/infrastructure/PositionMatrix.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | 3 | 2021-06-28T21:07:58.000Z | 2021-07-02T11:21:49.000Z | c/infrastructure/PositionMatrix.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | null | null | null | c/infrastructure/PositionMatrix.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | null | null | null | /*Copyright 2002-2014 e-foto team (UERJ)
This file is part of e-foto.
e-foto is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later ... | 27.501129 | 141 | 0.619306 | e-foto |
81b4c284c1f48aad6878186f82352fa57cc1eaca | 94 | cpp | C++ | interface/GripperTypes.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | interface/GripperTypes.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | interface/GripperTypes.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | #include <wx/wx.h>
#include "GripperTypes.h"
DEFINE_ENUM(EnumGripperType, ENUM_GRIPPER_TYPE)
| 18.8 | 47 | 0.797872 | tapeguy |
81bb24acf6ae441ea0759fe6141603d8f2a80d6c | 1,176 | cpp | C++ | Gnss/Dev/devGNSS.cpp | SergeyMSV/LIB.Module.GNSS | 757d9d98c6d23ebd593b1db9bd0c14a49fda3b47 | [
"MIT"
] | 1 | 2021-06-15T19:18:04.000Z | 2021-06-15T19:18:04.000Z | Gnss/Dev/devGNSS.cpp | SergeyMSV/LIB.Module.GNSS | 757d9d98c6d23ebd593b1db9bd0c14a49fda3b47 | [
"MIT"
] | null | null | null | Gnss/Dev/devGNSS.cpp | SergeyMSV/LIB.Module.GNSS | 757d9d98c6d23ebd593b1db9bd0c14a49fda3b47 | [
"MIT"
] | 1 | 2021-06-15T19:18:14.000Z | 2021-06-15T19:18:14.000Z | #include "devGNSS.h"
namespace dev
{
tGNSS::tGNSS(utils::tLog* log, boost::asio::io_context& io)
:m_pLog(log), m_pIO(&io)
{
m_pModFSMachine = new tModGnssReceiver(this);
}
tGNSS::~tGNSS()
{
delete m_pModFSMachine;
}
void tGNSS::operator()()
{
if (m_pModFSMachine)
{
if (m_StartAuto)
{
m_StartAuto = false... | 12.378947 | 64 | 0.67602 | SergeyMSV |
81c2730d74a0ae23849a1f191e8190e24bb71ebb | 1,332 | cpp | C++ | src/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment_WorkbookNotFoundException.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment_WorkbookNotFoundException.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment_WorkbookNotFoundException.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment.java
#include <org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment_WorkbookNotFoundException.hpp>
poi::ss::formula::CollaboratingWorkbooksEnvironment_WorkbookNotFoundException::CollaboratingWorkbooksEnvironment_WorkbookNotF... | 38.057143 | 166 | 0.795796 | pebble2015 |
81c31d4fef4e829ca8a8eb7ae8b9536c4fb85b3f | 6,724 | cc | C++ | wrspice/devlib/bsimsoi-4.4/b4sconv.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | wrspice/devlib/bsimsoi-4.4/b4sconv.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | wrspice/devlib/bsimsoi-4.4/b4sconv.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 45.432432 | 82 | 0.466092 | wrcad |
81c3c919727beac780171a90ea7b532678e24dcd | 872 | cpp | C++ | sandbox/src/main.cpp | anujv99/GameEngine | 644cb6667800cfecaa429666e5610e27f923e953 | [
"MIT"
] | null | null | null | sandbox/src/main.cpp | anujv99/GameEngine | 644cb6667800cfecaa429666e5610e27f923e953 | [
"MIT"
] | null | null | null | sandbox/src/main.cpp | anujv99/GameEngine | 644cb6667800cfecaa429666e5610e27f923e953 | [
"MIT"
] | null | null | null |
#include <prevengine.h>
using namespace prev;
#include "boidsdemo.h"
class SandboxLayer : public Layer {
public:
virtual void OnAttach() override {
m_Label.Text = "Test String";
m_Label.Scale = Vec2(0.5f);
m_Label.Color = Vec4(0.0f);
}
virtual void OnUpdate(pvfloat deltaTime) override {
auto imguiFont =... | 19.377778 | 66 | 0.696101 | anujv99 |
81c4393dbe6d9fae892389eb52c9b7700c20e5f5 | 3,242 | hh | C++ | spot/spot/misc/fixpool.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2018-03-02T14:29:57.000Z | 2018-03-02T14:29:57.000Z | spot/spot/misc/fixpool.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | null | null | null | spot/spot/misc/fixpool.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2015-06-05T12:42:07.000Z | 2015-06-05T12:42:07.000Z | // -*- coding: utf-8 -*-
// Copyright (C) 2011, 2015, 2016 Laboratoire de Recherche et
// Développement de l'Epita (LRDE)
//
// This file is part of Spot, a model checking library.
//
// Spot is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
... | 28.690265 | 75 | 0.615361 | mcc-petrinets |
81c8d71beb5a4eed8cbf8e2034e982087e727bb5 | 1,005 | hpp | C++ | vm/segments.hpp | alex-ilin/factor | b6f33e03990cb7645201486366d543ae724e8fe1 | [
"BSD-2-Clause"
] | 930 | 2016-03-01T08:40:07.000Z | 2022-03-29T10:37:39.000Z | vm/segments.hpp | alex-ilin/factor | b6f33e03990cb7645201486366d543ae724e8fe1 | [
"BSD-2-Clause"
] | 1,231 | 2016-02-19T21:52:25.000Z | 2022-03-27T23:24:50.000Z | vm/segments.hpp | alex-ilin/factor | b6f33e03990cb7645201486366d543ae724e8fe1 | [
"BSD-2-Clause"
] | 118 | 2016-02-19T21:37:05.000Z | 2022-02-21T19:44:02.000Z | namespace factor {
inline cell align_page(cell a) { return align(a, getpagesize()); }
bool set_memory_locked(cell base, cell size, bool locked);
// segments set up guard pages to check for under/overflow.
// size must be a multiple of the page size
struct segment {
cell start;
cell size;
cell end;
segment(c... | 22.840909 | 66 | 0.648756 | alex-ilin |
81ca9fbe9940391510a535af1dd25d58ff8ef4dd | 1,323 | cpp | C++ | gameplay/src/lua/lua_LayoutType.cpp | j4m3z0r/GamePlay | 02ca734e5734d2fbc9d00a7eff65ed2656f26975 | [
"Apache-2.0",
"Unlicense"
] | 1 | 2021-09-02T01:45:24.000Z | 2021-09-02T01:45:24.000Z | gameplay/src/lua/lua_LayoutType.cpp | j4m3z0r/GamePlay | 02ca734e5734d2fbc9d00a7eff65ed2656f26975 | [
"Apache-2.0",
"Unlicense"
] | null | null | null | gameplay/src/lua/lua_LayoutType.cpp | j4m3z0r/GamePlay | 02ca734e5734d2fbc9d00a7eff65ed2656f26975 | [
"Apache-2.0",
"Unlicense"
] | null | null | null | #include "Base.h"
#include "lua_LayoutType.h"
namespace gameplay
{
static const char* enumStringEmpty = "";
static const char* luaEnumString_LayoutType_LAYOUT_FLOW = "LAYOUT_FLOW";
static const char* luaEnumString_LayoutType_LAYOUT_VERTICAL = "LAYOUT_VERTICAL";
static const char* luaEnumString_LayoutType_L... | 33.923077 | 81 | 0.728647 | j4m3z0r |
81cb8a621a32b22ea69f9177e86c8d57f6021f55 | 364 | cpp | C++ | src/L/L0611.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/L/L0611.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/L/L0611.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ll long long
using namespace std;
string s;
int arr[20]={0};
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int a,b;
cin>>a>>b;
for(int i=a;i<=b;i++){
s+=std::to_string(i);
for(int j=0;j<s.size();j++){
arr[char(s.at(j))-'0']++;
}
s.clear();
}
for(int i=0;i<10;i++... | 16.545455 | 50 | 0.554945 | wlhcode |
81cd6c6b2ce2ef98429b8530503cbe41cfe1e555 | 136 | cpp | C++ | qtreports/src/tags/detail.cpp | PO-31/QtReports-New | c9a22ac9dc0453c3ddbfcd0c4fd63a4341dff788 | [
"MIT"
] | 9 | 2017-02-14T09:38:41.000Z | 2019-03-22T04:21:35.000Z | qtreports/src/tags/detail.cpp | PO-31/QtReports-New | c9a22ac9dc0453c3ddbfcd0c4fd63a4341dff788 | [
"MIT"
] | 15 | 2016-02-25T03:48:47.000Z | 2018-05-02T13:39:46.000Z | qtreports/src/tags/detail.cpp | PO-31/QtReports-New | c9a22ac9dc0453c3ddbfcd0c4fd63a4341dff788 | [
"MIT"
] | 6 | 2018-02-18T23:59:02.000Z | 2021-06-02T19:36:50.000Z | #include "detail.hpp"
namespace qtreports {
namespace detail {
Detail::Detail() {}
Detail::~Detail() {}
}
}
| 11.333333 | 28 | 0.536765 | PO-31 |
81cf36d4c3cca724c9ccdb22f18796dc3be0a295 | 703 | cpp | C++ | pvl/abridged/graphs/scc/tarjan.cpp | bullybutcher/progvar-library | 4d4b351c8a2540c522d00138e1bcf0edc528b540 | [
"MIT"
] | 3 | 2021-10-16T13:22:58.000Z | 2021-10-29T22:03:44.000Z | pvl/abridged/graphs/scc/tarjan.cpp | bullybutcher/progvar-library | 4d4b351c8a2540c522d00138e1bcf0edc528b540 | [
"MIT"
] | 19 | 2021-11-27T14:40:00.000Z | 2022-03-30T07:14:59.000Z | pvl/abridged/graphs/scc/tarjan.cpp | bullybutcher/progvar-library | 4d4b351c8a2540c522d00138e1bcf0edc528b540 | [
"MIT"
] | 2 | 2022-03-11T20:53:41.000Z | 2022-03-20T07:08:46.000Z | int n, id[N], low[N], st[N], in[N], TOP, ID;
int scc[N], SCC_SIZE; // 0 <= scc[u] < SCC_SIZE
vector<int> adj[N]; // 0-based adjlist
void dfs(int u) {
id[u] = low[u] = ID++;
st[TOP++] = u; in[u] = 1;
for (int v : adj[u]) {
if (id[v] == -1) {
dfs(v);
low[u] = min(low[u], low[v]);
} els... | 29.291667 | 48 | 0.433855 | bullybutcher |
81da7bb0fdce77a951bb42cc298fd81ee856b140 | 42,001 | cpp | C++ | src/mlpack/tests/kde_test.cpp | tomjpsun/mlpack | 39b9a852c58b648ddb9b87a3d87aa3db2bacbf0a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-01-11T14:14:30.000Z | 2020-01-11T14:14:30.000Z | src/mlpack/tests/kde_test.cpp | tomjpsun/mlpack | 39b9a852c58b648ddb9b87a3d87aa3db2bacbf0a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-04-10T17:39:50.000Z | 2020-04-11T14:56:25.000Z | src/mlpack/tests/kde_test.cpp | tomjpsun/mlpack | 39b9a852c58b648ddb9b87a3d87aa3db2bacbf0a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file kde_test.cpp
* @author Roberto Hueso
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Clause fo... | 32.184674 | 80 | 0.661437 | tomjpsun |
81dabd9a860c0fbd4b337e7cb88afd1bcc11ced5 | 765 | hpp | C++ | include/lol/def/CollectionsLcdsSummonerRuneInventory.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/CollectionsLcdsSummonerRuneInventory.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/CollectionsLcdsSummonerRuneInventory.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
#include "CollectionsLcdsSummonerRune.hpp"
namespace lol {
struct CollectionsLcdsSummonerRuneInventory {
std::string dateString;
uint64_t summonerId;
std::vector<CollectionsLcdsSummonerRune> summonerRunes;
};
inline void to_json(json& j, const CollectionsLcds... | 38.25 | 93 | 0.715033 | Maufeat |
81dde5b38202b2fe57a196ee7a80fb54d225f2d0 | 709 | cpp | C++ | src/RGBPolynomial.cpp | kreztoffee/ArtBot | cdb63945551e8503642dc5c9f3051c94e3120e56 | [
"MIT"
] | null | null | null | src/RGBPolynomial.cpp | kreztoffee/ArtBot | cdb63945551e8503642dc5c9f3051c94e3120e56 | [
"MIT"
] | null | null | null | src/RGBPolynomial.cpp | kreztoffee/ArtBot | cdb63945551e8503642dc5c9f3051c94e3120e56 | [
"MIT"
] | null | null | null | #include <math.h>
#include <vector>
#include "RGBPolynomial.hpp"
float RGBPolynomial::norm(float z)
{
while (z > 1)
z--;
return z;
}
float RGBPolynomial::applySinglePoly(const float z, std::vector<int> coeffs)
{
float res = 0;
for (int i = coeffs.size() - 1; i >= 0; i--)
res += coeffs[i] * pow(z, i);
... | 22.15625 | 76 | 0.668547 | kreztoffee |
81e05416f630e126c21d433c7c4b261050005b43 | 60,020 | cpp | C++ | XMPFiles/source/XMPFiles.cpp | hfiguiere/exempi | ba6698c39da63b0cbe4742389d31bf4de8716de0 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 13 | 2015-04-10T16:31:04.000Z | 2021-10-12T18:01:22.000Z | XMPFiles/source/XMPFiles.cpp | hfiguiere/exempi | ba6698c39da63b0cbe4742389d31bf4de8716de0 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 7 | 2016-06-05T22:12:29.000Z | 2018-09-25T23:15:52.000Z | XMPFiles/source/XMPFiles.cpp | hfiguiere/exempi | ba6698c39da63b0cbe4742389d31bf4de8716de0 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 11 | 2015-05-07T06:25:51.000Z | 2021-12-23T19:43:35.000Z | // =================================================================================================
// ADOBE SYSTEMS INCORPORATED
// Copyright 2004 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe lic... | 33.233666 | 164 | 0.646368 | hfiguiere |
81e955b5601c605a10420cdd60e10ac13f375071 | 965 | cpp | C++ | HW5/HW5_Q1.cpp | Liuian/1082_INTRODUCTION_TO_COMPUTER_AND_PROGRAMMING_LANGUAGE_2 | d2b78ec90976f5ef0ffcd1e33ed8c3b8d4d79601 | [
"MIT"
] | null | null | null | HW5/HW5_Q1.cpp | Liuian/1082_INTRODUCTION_TO_COMPUTER_AND_PROGRAMMING_LANGUAGE_2 | d2b78ec90976f5ef0ffcd1e33ed8c3b8d4d79601 | [
"MIT"
] | null | null | null | HW5/HW5_Q1.cpp | Liuian/1082_INTRODUCTION_TO_COMPUTER_AND_PROGRAMMING_LANGUAGE_2 | d2b78ec90976f5ef0ffcd1e33ed8c3b8d4d79601 | [
"MIT"
] | null | null | null | //
// main.cpp
// HW5 Q1
//
// Created by 劉翊安 on 2020/5/20.
// Copyright © 2020 劉翊安. All rights reserved.
//
# include <iostream>
# include <cstdlib>
# include <math.h>
using namespace std;
double A[4][4]= {{0.1,0.2,0.4,0.3}, {0.5,0.2,0.1,0.2},{0.3,0.4,0.2,0.1},{0.15,0.25,0.2,0.4}};
double B[4][4]={{0.1,0.2,0.4,0.... | 20.531915 | 93 | 0.384456 | Liuian |
81f284a2ee7e2c16e07d2bb3ba5eaf256799fe42 | 4,306 | cc | C++ | Engine/Source/Runtime/Core/YumeComponentAnimInfo.cc | rodrigobmg/YumeEngine | 67c525c84616a5167b5bae45f36641e90227c281 | [
"MIT"
] | 129 | 2016-05-05T23:34:44.000Z | 2022-03-07T20:17:18.000Z | Engine/Source/Runtime/Core/YumeComponentAnimInfo.cc | rodrigobmg/YumeEngine | 67c525c84616a5167b5bae45f36641e90227c281 | [
"MIT"
] | 1 | 2017-05-07T16:09:41.000Z | 2017-05-08T15:35:50.000Z | Engine/Source/Runtime/Core/YumeComponentAnimInfo.cc | rodrigobmg/YumeEngine | 67c525c84616a5167b5bae45f36641e90227c281 | [
"MIT"
] | 20 | 2016-02-24T20:40:08.000Z | 2022-02-04T23:48:18.000Z | //----------------------------------------------------------------------------
//Yume Engine
//Copyright (C) 2015 arkenthera
//This program is free software; you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation; either version 2 of ... | 25.47929 | 125 | 0.692522 | rodrigobmg |
81f7d52eea43d9be3e56f15537253aa25f91a54c | 1,728 | cpp | C++ | backup/2/leetcode/c++/balance-a-binary-search-tree.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/leetcode/c++/balance-a-binary-search-tree.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/leetcode/c++/balance-a-binary-search-tree.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 36 | 345 | 0.61169 | yangyanzhan |
81f8a527f4bf15e7bbd1954f24ec1fea56699b15 | 533 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/game/ui/HUDVideoStopEvent.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/game/ui/HUDVideoStopEvent.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/game/ui/HUDVideoStopEvent.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
namespace RED4ext
{
namespace game::ui {
struct HUDVideoStopEvent
{
static constexpr const char* NAME = "gameuiHUDVideoStopEvent";
static constexpr const char* ALIAS = NAME;
uint8_t u... | 22.208333 | 66 | 0.707317 | jackhumbert |
3b567b21cdc15a8101f8504005da24326888df34 | 4,742 | cpp | C++ | libs/quadwild/libs/libigl/include/igl/cgal/peel_outer_hull_layers.cpp | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | libs/quadwild/libs/libigl/include/igl/cgal/peel_outer_hull_layers.cpp | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | libs/quadwild/libs/libigl/include/igl/cgal/peel_outer_hull_layers.cpp | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | #include "peel_outer_hull_layers.h"
#include "../per_face_normals.h"
#include "outer_hull.h"
#include <vector>
#include <iostream>
//#define IGL_PEEL_OUTER_HULL_LAYERS_DEBUG
#ifdef IGL_PEEL_OUTER_HULL_LAYERS_DEBUG
#include "../writePLY.h"
#include "../writeDMAT.h"
#include "../STR.h"
#endif
using namespace std;
templa... | 35.654135 | 579 | 0.661113 | Pentacode-IAFA |
3b5aecf5f1bf65da5cd72d49a079a65969e5a30c | 8,821 | cpp | C++ | src/spi.cpp | malioni/airbourne_f4 | 9efda7fd3b6f0c86284f04ebc9b5dda73d55392d | [
"BSD-3-Clause"
] | null | null | null | src/spi.cpp | malioni/airbourne_f4 | 9efda7fd3b6f0c86284f04ebc9b5dda73d55392d | [
"BSD-3-Clause"
] | 3 | 2018-09-12T19:59:41.000Z | 2018-09-12T20:01:20.000Z | src/spi.cpp | skyler237/rosgimbal | 9ab956ec22980ea78f29b45bb0e3f4d8b489761c | [
"BSD-3-Clause"
] | 3 | 2018-09-11T20:34:50.000Z | 2020-12-08T14:02:59.000Z | /*
* Copyright (c) 2017, James Jackson
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of cond... | 28.003175 | 103 | 0.736198 | malioni |
3b5aff815782d6134caf9eeee21ba3b6c105e94e | 4,319 | hpp | C++ | src/stage/stage-setup-packet.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | 2 | 2019-02-28T00:28:08.000Z | 2019-10-20T14:39:48.000Z | src/stage/stage-setup-packet.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | src/stage/stage-setup-packet.hpp | 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 buy me... | 32.473684 | 94 | 0.637648 | tilnewman |
3b5b0878776eb64d9394792e4d231ec537ccbaad | 6,603 | hpp | C++ | trsl/sort_iterator.hpp | renauddetry/trsl | 641e44d77488de65ab8f38f114db78ee47da74c3 | [
"BSL-1.0"
] | null | null | null | trsl/sort_iterator.hpp | renauddetry/trsl | 641e44d77488de65ab8f38f114db78ee47da74c3 | [
"BSL-1.0"
] | null | null | null | trsl/sort_iterator.hpp | renauddetry/trsl | 641e44d77488de65ab8f38f114db78ee47da74c3 | [
"BSL-1.0"
] | null | null | null | // (C) Copyright Renaud Detry 2007-2011.
// 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)
/** @file */
#ifndef TRSL_SORT_ITERATOR_HPP
#define TRSL_SORT_ITERATOR_HPP
#include <trsl/reorder_iterator.hpp>
#inclu... | 34.212435 | 76 | 0.641072 | renauddetry |
3b5b667f59ee15c99ad0b92d5ef911f62117e453 | 294 | hpp | C++ | triangler/font.hpp | viitana/triangler | 06719c0f019ee1946482ce58195468db518cbdde | [
"MIT"
] | 2 | 2020-01-14T11:22:23.000Z | 2022-02-24T13:13:47.000Z | triangler/font.hpp | viitana/triangler | 06719c0f019ee1946482ce58195468db518cbdde | [
"MIT"
] | null | null | null | triangler/font.hpp | viitana/triangler | 06719c0f019ee1946482ce58195468db518cbdde | [
"MIT"
] | null | null | null | #include <GL/glew.h>
#include <glm/glm.hpp>
struct Character {
GLuint TextureID; // ID handle of the glyph texture
glm::ivec2 Size; // Size of glyph
glm::ivec2 Bearing; // Offset from baseline to left/top of glyph
GLuint Advance; // Offset to advance to next glyph
};
| 29.4 | 68 | 0.666667 | viitana |
3b5c9b744ce47e9e36ed717bf9ea1e6176f0864c | 829 | cpp | C++ | Src/Array/769_MaxChunksToMakeSorted.cpp | HATTER-LONG/https---github.com-HATTER-LONG-AlgorithmTraining | bd2773c066352bab46ac019cef9fbbff8761c147 | [
"Apache-2.0"
] | 2 | 2021-02-07T07:03:43.000Z | 2021-02-08T16:04:42.000Z | Src/Array/769_MaxChunksToMakeSorted.cpp | HATTER-LONG/https---github.com-HATTER-LONG-AlgorithmTraining | bd2773c066352bab46ac019cef9fbbff8761c147 | [
"Apache-2.0"
] | null | null | null | Src/Array/769_MaxChunksToMakeSorted.cpp | HATTER-LONG/https---github.com-HATTER-LONG-AlgorithmTraining | bd2773c066352bab46ac019cef9fbbff8761c147 | [
"Apache-2.0"
] | 1 | 2021-02-24T09:48:26.000Z | 2021-02-24T09:48:26.000Z | #include "Tools/Tools.hpp"
/*
* 题目描述
* 给定一个含有 0 到 n
* 整数的数组,每个整数只出现一次,求这个数组最多可以分割成多少个
* 子数组,使得对每个子数组进行增序排序后,原数组也是增序的。
*
*
* 输入一个一维整数数组,输出一个整数,表示最多的分割数。
* Input: [1,0,2,3,4]
* Output: 4
* 在这个样例中,最多分割是 [1, 0], [2], [3], [4]。
*/
int maxChunksToSorted(vector<int>& arr)
{
int chunks = 0, curMax = 0;
for... | 19.27907 | 78 | 0.55006 | HATTER-LONG |
3b5d6bc356d314c25474a2afd42e396aa9404867 | 4,705 | hpp | C++ | include/list.hpp | oYOvOYo/Cplusplus.TemplateMetaProgramming | 02884fb85b44d4257f5c93e3b52ea97031937f3d | [
"MIT"
] | null | null | null | include/list.hpp | oYOvOYo/Cplusplus.TemplateMetaProgramming | 02884fb85b44d4257f5c93e3b52ea97031937f3d | [
"MIT"
] | null | null | null | include/list.hpp | oYOvOYo/Cplusplus.TemplateMetaProgramming | 02884fb85b44d4257f5c93e3b52ea97031937f3d | [
"MIT"
] | null | null | null | // todo: more operation on list like compare
#include <algorithm>
#include <iostream>
typedef int TYPE;
template <TYPE x>
struct Type {
static const TYPE value = x;
};
struct NIL {
typedef NIL Head;
typedef NIL Tail;
};
template <typename H, typename T = NIL>
struct List {
typedef H Head;
typedef T Tail;... | 26.581921 | 80 | 0.617003 | oYOvOYo |
3b602b77f0155f90729c8040fb3cbb3e94c65dc4 | 5,472 | cpp | C++ | src/apps/winforms_app/src/AsyncWrapper.cpp | elnoir/ge_test | a85a6ea95452005c4c6428faa80b1a8b3d4fd6a4 | [
"MIT"
] | null | null | null | src/apps/winforms_app/src/AsyncWrapper.cpp | elnoir/ge_test | a85a6ea95452005c4c6428faa80b1a8b3d4fd6a4 | [
"MIT"
] | null | null | null | src/apps/winforms_app/src/AsyncWrapper.cpp | elnoir/ge_test | a85a6ea95452005c4c6428faa80b1a8b3d4fd6a4 | [
"MIT"
] | null | null | null | #include "AsyncWrapper.h"
#include <msclr/marshal_cppstd.h>
#include <db/idb.h>
namespace annWinForm
{
using namespace System;
ManagedConfusionMatrix deserializeConfusionMatrix(const ann::async::MainMessage::buffer &buffer);
int deserializeImageCount(const ann::async::MainMessage::buffer& buffer);
TrainSnapshot^ de... | 27.223881 | 134 | 0.633224 | elnoir |
3b60d82b4f76b5c13ba2ceea64f44d34adf7cff2 | 49,812 | cpp | C++ | src/graysvr/CItemBase.cpp | mxdamien/Source | 5eb008ebbe1a67c33057c033b6920581c4fdc323 | [
"Apache-2.0"
] | 2 | 2020-04-24T12:19:13.000Z | 2020-04-24T12:19:14.000Z | src/graysvr/CItemBase.cpp | assadcalil/Source | 0f303cfc72496576a6eb432615f893e151210e8f | [
"Apache-2.0"
] | null | null | null | src/graysvr/CItemBase.cpp | assadcalil/Source | 0f303cfc72496576a6eb432615f893e151210e8f | [
"Apache-2.0"
] | 1 | 2017-05-12T02:56:10.000Z | 2017-05-12T02:56:10.000Z | #include "graysvr.h" // predef header.
//*********************************************************
// CItemBase
CItemBase::CItemBase(ITEMID_TYPE id) : CBaseBaseDef(RESOURCE_ID(RES_ITEMDEF, id))
{
m_type = IT_NORMAL;
m_weight = 0;
m_layer = LAYER_NONE;
m_uiFlags = 0;
m_speed = 0;
m_iSkill = SKILL_NON... | 25.66306 | 218 | 0.659339 | mxdamien |
3b68260d522b10c18c1359eb5b205e6ee3f410c5 | 10,707 | cpp | C++ | cyg_graph.cpp | yasuo-ozu/cygraph-gui | ec4f2793cdd6d208b89e5795a3e08dceff6b29e6 | [
"MIT"
] | 1 | 2018-02-12T05:09:30.000Z | 2018-02-12T05:09:30.000Z | cyg_graph.cpp | yasuo-ozu/cygraph-gui | ec4f2793cdd6d208b89e5795a3e08dceff6b29e6 | [
"MIT"
] | null | null | null | cyg_graph.cpp | yasuo-ozu/cygraph-gui | ec4f2793cdd6d208b89e5795a3e08dceff6b29e6 | [
"MIT"
] | null | null | null | #include "cyg_common.hpp"
namespace Cygraph {
// Graph
Graph::Graph() {
this->padding.top = 30.0;
this->padding.left = 30.0;
this->padding.right = 30.0;
this->padding.bottom = 30.0;
}
boundary Graph::get_boundary(Graphic g, double resolution) {
boundary bd{0.0, 0.0, 0.0, 0.0};
for (auto *axis : this-... | 31.866071 | 112 | 0.602129 | yasuo-ozu |
3b687ec16585ee94332b8abb7b843c7447c32030 | 2,182 | hh | C++ | src/Circuit/data/CircuitNode.hh | lucydot/devsim | 2c69fcc05551bb50ca134490279e206cdeaf91a6 | [
"Apache-2.0"
] | 100 | 2015-02-02T23:47:38.000Z | 2022-03-15T06:15:15.000Z | src/Circuit/data/CircuitNode.hh | fendou1997/devsim | 71c5a5a56f567b472f39e4968bedbe57a38d6ff6 | [
"Apache-2.0"
] | 75 | 2015-05-13T02:16:41.000Z | 2022-02-23T12:20:21.000Z | src/Circuit/data/CircuitNode.hh | fendou1997/devsim | 71c5a5a56f567b472f39e4968bedbe57a38d6ff6 | [
"Apache-2.0"
] | 50 | 2015-10-28T17:24:24.000Z | 2022-03-30T17:48:46.000Z | #ifndef CIRCUIT_NODE_HH
#define CIRCUIT_NODE_HH
/***
DEVSIM
Copyright 2013 Devsim LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required... | 27.275 | 77 | 0.671402 | lucydot |
3b68be2b1b9d07f20348ac79875cfcf5130620d1 | 5,291 | cc | C++ | src/simple-quic/custom/proof_source_openssl.cc | Hasan-Jawaheri/quic-tor | f8a5b8b93a82eb515808d381bfbb2cc662e12513 | [
"MIT"
] | null | null | null | src/simple-quic/custom/proof_source_openssl.cc | Hasan-Jawaheri/quic-tor | f8a5b8b93a82eb515808d381bfbb2cc662e12513 | [
"MIT"
] | null | null | null | src/simple-quic/custom/proof_source_openssl.cc | Hasan-Jawaheri/quic-tor | f8a5b8b93a82eb515808d381bfbb2cc662e12513 | [
"MIT"
] | null | null | null | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Modified by kku to remove dependency on BoringSSL.
//
// References:
// https://www.openssl.org/docs/manmaster/crypto/pem.html
// https://www.openssl... | 32.262195 | 119 | 0.680212 | Hasan-Jawaheri |
3b6bb4c533a6cd93c0702eb8e951b1f5ad9c9473 | 33,171 | hpp | C++ | include/domain/structure/io/sgnuplot_actor.hpp | hyperpower/CarpioPlus | 68cc6c976d6c3ba6adec847a94c344be3f4690aa | [
"MIT"
] | null | null | null | include/domain/structure/io/sgnuplot_actor.hpp | hyperpower/CarpioPlus | 68cc6c976d6c3ba6adec847a94c344be3f4690aa | [
"MIT"
] | 1 | 2018-06-18T03:52:56.000Z | 2018-06-18T03:52:56.000Z | include/domain/structure/io/sgnuplot_actor.hpp | hyperpower/CarpioPlus | 68cc6c976d6c3ba6adec847a94c344be3f4690aa | [
"MIT"
] | null | null | null | #ifndef _S_GNUPLOT_ACTOR_HPP
#define _S_GNUPLOT_ACTOR_HPP
#include "domain/structure/grid/sgrid.hpp"
#include "domain/structure/field/sfield.hpp"
#include "domain/structure/operation/soperation.hpp"
#include "io/gnuplot.hpp"
namespace carpio{
using namespace GnuplotActor;
template<St DIM>
class SGnuplotActor_ {
pub... | 36.252459 | 118 | 0.45591 | hyperpower |
3b733e6e5f21df17de7c12862ca8ccb3f0e50141 | 871 | cpp | C++ | 137-SingleNumberII.cpp | frost1990/leetcode_anwsers | ad7f84089b11591fab0f9407bc87b9f3fa8f2cf2 | [
"MIT"
] | null | null | null | 137-SingleNumberII.cpp | frost1990/leetcode_anwsers | ad7f84089b11591fab0f9407bc87b9f3fa8f2cf2 | [
"MIT"
] | null | null | null | 137-SingleNumberII.cpp | frost1990/leetcode_anwsers | ad7f84089b11591fab0f9407bc87b9f3fa8f2cf2 | [
"MIT"
] | null | null | null | /*
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
*/
#include <stdio.h>
#include <vector>
using namespace std;
class Solution {
public:
int single... | 20.255814 | 106 | 0.617681 | frost1990 |
3b7534d0bdfc267090cf3e38032d7fb0681b645c | 1,779 | hpp | C++ | include/alb-program.hpp | albertonl/alb | 8779ed2f047d63eff2bc96b658b2659641364322 | [
"MIT"
] | 2 | 2019-06-08T16:47:22.000Z | 2019-06-08T16:56:18.000Z | include/alb-program.hpp | albertonl/alb | 8779ed2f047d63eff2bc96b658b2659641364322 | [
"MIT"
] | 2 | 2019-02-02T21:15:45.000Z | 2019-06-10T08:23:09.000Z | include/alb-program.hpp | albertonl/alb | 8779ed2f047d63eff2bc96b658b2659641364322 | [
"MIT"
] | 1 | 2019-06-08T17:23:55.000Z | 2019-06-08T17:23:55.000Z | /*
Program class and reserved keywords
The ALB Programming Language
Alberto Navalon Lillo (C) 2019
This software is distributed under the MIT license
Visit https://github.com/albertonl/alb/LICENSE for further details
*/
#ifndef ALB_PROGRAM_HPP
#define ALB_PROGRAM_HPP
#include <iostream>
#include <fstream>
#incl... | 23.103896 | 145 | 0.704328 | albertonl |
3b7af5708aadc588cb20cd34edfb9868f866e02f | 295 | cpp | C++ | Uva/uva11401.cpp | Tunghohin/Competitive_coding | 879238605d5525cda9fd0cfa1155ba67959179a6 | [
"MIT"
] | 2 | 2021-09-06T08:34:00.000Z | 2021-11-22T14:52:41.000Z | Uva/uva11401.cpp | Tunghohin/Competitive_coding | 879238605d5525cda9fd0cfa1155ba67959179a6 | [
"MIT"
] | null | null | null | Uva/uva11401.cpp | Tunghohin/Competitive_coding | 879238605d5525cda9fd0cfa1155ba67959179a6 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
unsigned long long f[1000010];
int main()
{
for (int i = 4; i <= 1000000; i++)
{
f[i] = f[i - 1] + ((unsigned long long)(i - 1) * (i - 2) / 2 - (i - 1) / 2) / 2;
}
int n;
while (cin >> n)
{
if (n < 3) return 0;
cout << f[n] << '\n';
}
} | 14.047619 | 82 | 0.477966 | Tunghohin |
3b82c1b77ccb6b643f712a3a8156f8475ca7dbc1 | 1,128 | cpp | C++ | BOJ4949_balanced/balanced.cpp | wjoh0315/BOJSolution2 | 3bf41835d5bc04c92a0104d3651fb009298f08d7 | [
"MIT"
] | null | null | null | BOJ4949_balanced/balanced.cpp | wjoh0315/BOJSolution2 | 3bf41835d5bc04c92a0104d3651fb009298f08d7 | [
"MIT"
] | null | null | null | BOJ4949_balanced/balanced.cpp | wjoh0315/BOJSolution2 | 3bf41835d5bc04c92a0104d3651fb009298f08d7 | [
"MIT"
] | null | null | null | //https://www.acmicpc.net/problem/4949
#include <iostream>
#include <string>
using namespace std;
int stack[100];
int top = -1;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
while (true)
{
top = -1;
string in;
getline(cin, in, '.');
if (in.length() <= ... | 20.509091 | 51 | 0.296099 | wjoh0315 |
3b838143d4abf80840c758eaf84d7a3a74cb9e20 | 9,735 | cc | C++ | modules/audio_coding/main/source/acm_celt.cc | SlimXperiments/external_chromium_org_third_party_webrtc | 14c8d0b9402c3eaa282f34f7652c08a5b624279e | [
"DOC",
"BSD-3-Clause"
] | 1 | 2019-02-22T05:37:43.000Z | 2019-02-22T05:37:43.000Z | modules/audio_coding/main/source/acm_celt.cc | SlimXperiments/external_chromium_org_third_party_webrtc | 14c8d0b9402c3eaa282f34f7652c08a5b624279e | [
"DOC",
"BSD-3-Clause"
] | null | null | null | modules/audio_coding/main/source/acm_celt.cc | SlimXperiments/external_chromium_org_third_party_webrtc | 14c8d0b9402c3eaa282f34f7652c08a5b624279e | [
"DOC",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 28.632353 | 81 | 0.662763 | SlimXperiments |
3b8570b57474c122b44a6915d9975d7bfd83e575 | 4,901 | cpp | C++ | np2-rwg/lib/utility.cpp | rightson/network-programming | e656ad08db412c6bbc630f9353bcc5ad61de4f73 | [
"MIT"
] | null | null | null | np2-rwg/lib/utility.cpp | rightson/network-programming | e656ad08db412c6bbc630f9353bcc5ad61de4f73 | [
"MIT"
] | null | null | null | np2-rwg/lib/utility.cpp | rightson/network-programming | e656ad08db412c6bbc630f9353bcc5ad61de4f73 | [
"MIT"
] | null | null | null | #include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h> // inet_ntoa
#include <fcntl.h> // O_WRONLY
#include <sys/stat.h> // mkfifo
#include <sys/wait.h> // waitpid
#include <sstream>
#include "utility.hpp"
void die(const char *format, ...) {
... | 28.660819 | 105 | 0.620894 | rightson |
3b871bc2b6e5a37375ce8bf437ad16d080f95a1d | 1,590 | cpp | C++ | JSLAMPLUS/jslam/main.cpp | Johk3/JSLAM | 19072c2058effef861964849fae3c6e9b4e37aaa | [
"MIT"
] | 4 | 2019-02-21T17:28:02.000Z | 2021-01-09T21:29:58.000Z | JSLAMPLUS/jslam/main.cpp | Johk3/JSLAM | 19072c2058effef861964849fae3c6e9b4e37aaa | [
"MIT"
] | null | null | null | JSLAMPLUS/jslam/main.cpp | Johk3/JSLAM | 19072c2058effef861964849fae3c6e9b4e37aaa | [
"MIT"
] | 2 | 2019-02-21T17:28:01.000Z | 2019-02-21T19:50:13.000Z | #include <opencv2/highgui.hpp>
#include "opencv2/imgproc.hpp"
#include "opencv2/video/background_segm.hpp"
#include "opencv2/video/tracking.hpp"
#include "opencv2/xfeatures2d.hpp"
#include "opencv2/core.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/imgcodecs.hpp"
#include <iostream>
int main( int argc, cha... | 26.949153 | 71 | 0.613208 | Johk3 |
3b8aa1cfbbb77793737f9aeda63a1e31a88f0a79 | 1,365 | cpp | C++ | src/Boundaries.cpp | lzanotto/mo802-spitz | 3d3ce9f0fa6d345bd309aea5e2f4f64a8a4f4714 | [
"Apache-2.0"
] | 175 | 2015-01-03T21:50:11.000Z | 2022-03-07T00:20:08.000Z | src/Boundaries.cpp | KsGin-Fork/RayTracer | 4c9f2dd389ace5f7601af367d2aa0e8db70b2b7d | [
"Apache-2.0"
] | 4 | 2016-08-04T10:13:04.000Z | 2020-10-26T09:36:35.000Z | src/Boundaries.cpp | KsGin-Fork/RayTracer | 4c9f2dd389ace5f7601af367d2aa0e8db70b2b7d | [
"Apache-2.0"
] | 49 | 2015-03-04T16:13:21.000Z | 2022-02-23T00:27:13.000Z | #include "Boundaries.h"
#include <algorithm>
// Returns the center value for the given axis.
double Boundaries::splitValue(char axis) {
switch(axis) {
case 'x': return (min.x + max.x) / 2;
case 'y': return (min.y + max.y) / 2;
case 'z': return (min.z + max.z) / 2;
default: return 0.0f;
}
... | 31.744186 | 91 | 0.610256 | lzanotto |
3b8de2709b87a38719a43e3d0d43c1497f16ed9a | 3,370 | hpp | C++ | simulation/traffic_simulator/include/traffic_simulator/math/hermite_curve.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | null | null | null | simulation/traffic_simulator/include/traffic_simulator/math/hermite_curve.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | null | null | null | simulation/traffic_simulator/include/traffic_simulator/math/hermite_curve.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | null | null | null | // Copyright 2015-2020 Tier IV, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | 41.604938 | 93 | 0.760831 | WJaworskiRobotec |
3b8e317d40b0d15d4fdade9d70e5392190717415 | 767 | cc | C++ | Regex.cc | Phoenix500526/T-Reg | 8f9a79d0e117ec63b2ffc848bdce6a2c440ff5c1 | [
"MIT"
] | null | null | null | Regex.cc | Phoenix500526/T-Reg | 8f9a79d0e117ec63b2ffc848bdce6a2c440ff5c1 | [
"MIT"
] | null | null | null | Regex.cc | Phoenix500526/T-Reg | 8f9a79d0e117ec63b2ffc848bdce6a2c440ff5c1 | [
"MIT"
] | null | null | null | #include "Regex.h"
#include <string.h>
#include "ASTBuilder.h"
namespace treg {
Regex::Regex(const char* regex) { Compile(regex); }
Regex::Regex(const std::string& regex) { Compile(regex); }
bool Regex::Compile(const char* regex) { return Compile(regex, strlen(regex)); }
bool Regex::Compile(const char* regex, std::... | 27.392857 | 80 | 0.706649 | Phoenix500526 |
3b8ee442e4fd95d3b24ad998976be842e1638f71 | 5,010 | cpp | C++ | sanity/unit/ComputeFunction_unittest.cpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | 3 | 2015-01-09T08:15:28.000Z | 2019-05-24T08:34:04.000Z | sanity/unit/ComputeFunction_unittest.cpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | null | null | null | sanity/unit/ComputeFunction_unittest.cpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Soumyajit De
*
* 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,... | 29.298246 | 86 | 0.688822 | lambday |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.