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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb31f4d1d3c9e6ce1a3f5c52005e5aaa927486fe | 9,779 | cc | C++ | src/tint/writer/hlsl/generator_impl_sanitizer_test.cc | hexops/dawn | 36cc72ad1c7b0c0a92be4754b95b1441850533b0 | [
"Apache-2.0"
] | 9 | 2021-11-05T11:08:14.000Z | 2022-03-18T05:14:34.000Z | src/tint/writer/hlsl/generator_impl_sanitizer_test.cc | hexops/dawn | 36cc72ad1c7b0c0a92be4754b95b1441850533b0 | [
"Apache-2.0"
] | 2 | 2021-12-01T05:08:59.000Z | 2022-02-18T08:14:30.000Z | src/tint/writer/hlsl/generator_impl_sanitizer_test.cc | hexops/dawn | 36cc72ad1c7b0c0a92be4754b95b1441850533b0 | [
"Apache-2.0"
] | 1 | 2022-02-11T17:39:44.000Z | 2022-02-11T17:39:44.000Z | // Copyright 2021 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 29.104167 | 79 | 0.591267 | hexops |
cb33e206a632fb56eb0d84f2b843f0e0cb97ca34 | 1,208 | cpp | C++ | riscv/llvm/3.5/cfe-3.5.0.src/test/CXX/drs/dr412.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | null | null | null | riscv/llvm/3.5/cfe-3.5.0.src/test/CXX/drs/dr412.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | null | null | null | riscv/llvm/3.5/cfe-3.5.0.src/test/CXX/drs/dr412.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | 1 | 2021-03-24T06:40:32.000Z | 2021-03-24T06:40:32.000Z | // RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT="throw()" -DBAD_ALLOC="throw(std::bad_alloc)"
// RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -DNOEXCEPT=noexcept -DBAD_ALLOC=
// RUN: %clang_cc1 -std=c++1y %s -verify -fexceptions ... | 57.52381 | 144 | 0.737583 | tangyibin |
cb343dea6aa1b1219c04bb3e2e34f96cf46be367 | 6,094 | cpp | C++ | SerialPrograms/Source/CommonFramework/Widgets/SerialSelector.cpp | nmousouros/Arduino-Source | f8dce62af0b619016b4c18dc0371c59568da3e9a | [
"MIT"
] | null | null | null | SerialPrograms/Source/CommonFramework/Widgets/SerialSelector.cpp | nmousouros/Arduino-Source | f8dce62af0b619016b4c18dc0371c59568da3e9a | [
"MIT"
] | null | null | null | SerialPrograms/Source/CommonFramework/Widgets/SerialSelector.cpp | nmousouros/Arduino-Source | f8dce62af0b619016b4c18dc0371c59568da3e9a | [
"MIT"
] | null | null | null | /* Serial Connection Selector
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include <QJsonObject>
#include <QHBoxLayout>
#include "Common/Qt/QtJsonTools.h"
#include "Common/Qt/NoWheelComboBox.h"
#include "SerialSelector.h"
#include <iostream>
using std::cout;
using std::endl;... | 28.082949 | 103 | 0.596981 | nmousouros |
cb35719183bc076a014d5c090379c3a3756b21be | 4,304 | cc | C++ | tensorflow/stream_executor/cuda/cudart_stub.cc | khodges42/tensorflow | cb011e1dd8d79757fea01be39e19cb1155681e7e | [
"Apache-2.0"
] | 3 | 2019-02-04T10:10:19.000Z | 2019-12-29T08:09:37.000Z | tensorflow/stream_executor/cuda/cudart_stub.cc | khodges42/tensorflow | cb011e1dd8d79757fea01be39e19cb1155681e7e | [
"Apache-2.0"
] | null | null | null | tensorflow/stream_executor/cuda/cudart_stub.cc | khodges42/tensorflow | cb011e1dd8d79757fea01be39e19cb1155681e7e | [
"Apache-2.0"
] | 6 | 2018-11-29T20:52:00.000Z | 2021-02-19T22:43:32.000Z | /* Copyright 2015 The TensorFlow 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 by applicable law or a... | 37.426087 | 80 | 0.70632 | khodges42 |
cb3792620caa21018f8ece94216e509532d9161b | 3,283 | cpp | C++ | src/cpp-ethereum/libethereum/TransactionReceipt.cpp | nccproject/ncc | 068ccc82a73d28136546095261ad8ccef7e541a3 | [
"MIT"
] | 42 | 2021-01-04T01:59:21.000Z | 2021-05-14T14:35:04.000Z | src/cpp-ethereum/libethereum/TransactionReceipt.cpp | estxcoin/estcore | 4398b1d944373fe25668469966fa2660da454279 | [
"MIT"
] | 2 | 2021-01-04T02:08:47.000Z | 2021-01-04T02:36:08.000Z | src/cpp-ethereum/libethereum/TransactionReceipt.cpp | estxcoin/estcore | 4398b1d944373fe25668469966fa2660da454279 | [
"MIT"
] | 15 | 2021-01-04T02:00:21.000Z | 2021-01-06T02:06:43.000Z | /*
This file is part of cpp-ethereum.
cpp-ethereum 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 version.
cpp-ethereum is distributed in the... | 27.358333 | 104 | 0.709717 | nccproject |
cb3876ee76b164483281367d1bb0beb667e46323 | 11,494 | cpp | C++ | planner_cspace/src/grid_astar_model_3dof.cpp | at-wat/neonavigation | 4fabc3d100f5e211db09fb3f8e68650fa46a0d50 | [
"BSD-3-Clause"
] | 195 | 2017-02-16T08:19:29.000Z | 2022-03-03T06:00:28.000Z | planner_cspace/src/grid_astar_model_3dof.cpp | at-wat/neonavigation | 4fabc3d100f5e211db09fb3f8e68650fa46a0d50 | [
"BSD-3-Clause"
] | 584 | 2016-11-10T04:48:04.000Z | 2021-12-19T23:53:12.000Z | planner_cspace/src/grid_astar_model_3dof.cpp | at-wat/neonavigation | 4fabc3d100f5e211db09fb3f8e68650fa46a0d50 | [
"BSD-3-Clause"
] | 74 | 2016-10-15T13:54:29.000Z | 2022-02-02T00:26:22.000Z | /*
* Copyright (c) 2019-2020, the neonavigation authors
* 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
* not... | 32.377465 | 118 | 0.666 | at-wat |
cb3adced9e2f053dc575e6c761d0535ab59180fa | 4,220 | hpp | C++ | graph/graph.hpp | ytuza/proyecto | 3ebd08518c80180063262810ed9515cb94a2b735 | [
"MIT"
] | null | null | null | graph/graph.hpp | ytuza/proyecto | 3ebd08518c80180063262810ed9515cb94a2b735 | [
"MIT"
] | null | null | null | graph/graph.hpp | ytuza/proyecto | 3ebd08518c80180063262810ed9515cb94a2b735 | [
"MIT"
] | null | null | null | #pragma once
#include "edge.hpp"
#include "node.hpp"
#include <algorithm>
#include <deque>
#include <utility>
template <typename N, typename E> class Graph {
public:
using SelfType = Graph<N, E>;
using NodeValueType = N;
using EdgeValueType = E;
using NodeType = Node<SelfType>;
using EdgeType = Edge<SelfTyp... | 28.513514 | 86 | 0.579147 | ytuza |
cb3c47a7c4b5b99a1700bdf4d0fff2baa2bb6ac3 | 6,106 | cpp | C++ | 2006/samples/database/clonreac_dg/clonreac.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | 1 | 2021-06-25T02:58:47.000Z | 2021-06-25T02:58:47.000Z | 2004/samples/database/clonreac_dg/clonreac.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | null | null | null | 2004/samples/database/clonreac_dg/clonreac.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | 3 | 2020-05-23T02:47:44.000Z | 2020-10-27T01:26:53.000Z | // (C) Copyright 1996,1998 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warr... | 28.138249 | 73 | 0.583361 | kevinzhwl |
cb467a2eb68adef076637f5224505c959a950816 | 88 | cpp | C++ | coding/helo.cpp | tusharkumar2005/developer | b371cedcd77b7926db7b6b7c7d6a144f48eed07b | [
"CC0-1.0"
] | 1 | 2021-09-21T11:49:50.000Z | 2021-09-21T11:49:50.000Z | coding/helo.cpp | tusharkumar2005/developer | b371cedcd77b7926db7b6b7c7d6a144f48eed07b | [
"CC0-1.0"
] | null | null | null | coding/helo.cpp | tusharkumar2005/developer | b371cedcd77b7926db7b6b7c7d6a144f48eed07b | [
"CC0-1.0"
] | null | null | null | using namespace std;
#include<iostream>
int main(){
cout<<"hello";
}
| 9.777778 | 21 | 0.545455 | tusharkumar2005 |
cb48500de4798dd97f46ba7790a7910efee7110d | 12,749 | cpp | C++ | tests/core/data_test.cpp | DCC-UFJF/UFJF-MLTK | bb0696a5ec41e8a2b89be2a2d4e35b39fdcb85f2 | [
"MIT"
] | null | null | null | tests/core/data_test.cpp | DCC-UFJF/UFJF-MLTK | bb0696a5ec41e8a2b89be2a2d4e35b39fdcb85f2 | [
"MIT"
] | null | null | null | tests/core/data_test.cpp | DCC-UFJF/UFJF-MLTK | bb0696a5ec41e8a2b89be2a2d4e35b39fdcb85f2 | [
"MIT"
] | null | null | null | //
// Created by mateus on 12/04/2021.
//
#include <iostream>
#include <gtest/gtest.h>
#include "ufjfmltk/core/Data.hpp"
#include "ufjfmltk/core/Datasets.hpp"
#include "ufjfmltk/core/Kernel.hpp"
#include "ufjfmltk/valid/Validation.hpp"
class DataTest: public ::testing::Test
{
protected:
void SetUp() override{
... | 33.374346 | 94 | 0.609695 | DCC-UFJF |
cb48bd399b04a33bf49054d0bcf397b0e1edc63b | 1,898 | cpp | C++ | test/launcher/verify_bintree.cpp | baziotis/rv | e0e9373bed333cf19370d811ecfd1146d605118a | [
"Apache-2.0"
] | 71 | 2017-03-03T01:36:28.000Z | 2022-02-25T19:57:12.000Z | test/launcher/verify_bintree.cpp | baziotis/rv | e0e9373bed333cf19370d811ecfd1146d605118a | [
"Apache-2.0"
] | 48 | 2017-04-05T16:41:47.000Z | 2021-06-09T09:52:36.000Z | test/launcher/verify_bintree.cpp | baziotis/rv | e0e9373bed333cf19370d811ecfd1146d605118a | [
"Apache-2.0"
] | 21 | 2017-03-01T16:04:35.000Z | 2021-09-15T13:38:24.000Z | #include<iostream>
#include <cassert>
#include "launcherTools.h"
struct Node {
float data;
int left;
int right;
Node()
: left(-1)
, right(-1)
, data(0.0f)
{}
};
extern "C" {
int foo(Node * nodes, float elem);
int8 foo_SIMD(Node * nodes, float8 elem);
}
void insert(Node * nodes, int i, float ele... | 21.088889 | 124 | 0.536881 | baziotis |
cb4b073bad58f8f50607fbae531841b8474d360d | 416 | hpp | C++ | inc/Ball.hpp | Swaift/rpg | b4e9ecb68b85c6859a3984aa1234f377c56633fa | [
"MIT"
] | 2 | 2017-03-02T01:00:37.000Z | 2017-03-02T01:00:47.000Z | inc/Ball.hpp | Swaift/pong | b4e9ecb68b85c6859a3984aa1234f377c56633fa | [
"MIT"
] | null | null | null | inc/Ball.hpp | Swaift/pong | b4e9ecb68b85c6859a3984aa1234f377c56633fa | [
"MIT"
] | null | null | null | #ifndef BALL_HPP
#define BALL_HPP
#include <SFML/Graphics.hpp>
namespace sf {
class Ball: public CircleShape {
public:
Ball(float radius);
void reset();
float getDx();
float getDy();
void setDx(float dx);
void setDy(float dy);
... | 18.909091 | 36 | 0.509615 | Swaift |
cb4d7af798a271e1d7cce11e5ced263db8aa9735 | 19,465 | hpp | C++ | pennylane_lightning/src/gates/OpToMemberFuncPtr.hpp | AmintorDusko/pennylane-lightning | 9554a95842de9d7759ce96bfa75857e0c9ca756b | [
"Apache-2.0"
] | null | null | null | pennylane_lightning/src/gates/OpToMemberFuncPtr.hpp | AmintorDusko/pennylane-lightning | 9554a95842de9d7759ce96bfa75857e0c9ca756b | [
"Apache-2.0"
] | null | null | null | pennylane_lightning/src/gates/OpToMemberFuncPtr.hpp | AmintorDusko/pennylane-lightning | 9554a95842de9d7759ce96bfa75857e0c9ca756b | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 Xanadu Quantum Technologies 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 o... | 42.407407 | 80 | 0.694631 | AmintorDusko |
cb4e20da2cdd41de90bbd915cb72bf33165d1b4f | 516 | cpp | C++ | examples/SysTick/Main.cpp | marangisto/stm32 | a3972918adb734597ecd122e2546670dad3cd990 | [
"MIT"
] | null | null | null | examples/SysTick/Main.cpp | marangisto/stm32 | a3972918adb734597ecd122e2546670dad3cd990 | [
"MIT"
] | 1 | 2019-08-31T20:54:29.000Z | 2019-09-01T07:11:43.000Z | examples/SysTick/Main.cpp | marangisto/stm32f0 | a3972918adb734597ecd122e2546670dad3cd990 | [
"MIT"
] | null | null | null | #include <gpio.h>
using namespace stm32f0;
using namespace gpio;
typedef output_t<PC8> led_a;
typedef output_t<PC9> led_b;
int main()
{
led_a::setup();
led_b::setup();
for (;;)
{
static uint32_t next_a = 0, next_b = 0;
uint32_t now = sys_tick::count();
if (now >= next_a)
... | 15.636364 | 47 | 0.478682 | marangisto |
cb4f44cc4f4f1627f63f867b8052d51a768fcf7a | 2,170 | hpp | C++ | include/signals/detail/connection_impl.hpp | a-n-t-h-o-n-y/signals | 2db5f083a814b970dfd0f797873d9a894d80bf42 | [
"MIT"
] | 2 | 2018-09-03T03:51:41.000Z | 2020-05-29T06:27:49.000Z | include/signals/detail/connection_impl.hpp | a-n-t-h-o-n-y/signals | 2db5f083a814b970dfd0f797873d9a894d80bf42 | [
"MIT"
] | null | null | null | include/signals/detail/connection_impl.hpp | a-n-t-h-o-n-y/signals | 2db5f083a814b970dfd0f797873d9a894d80bf42 | [
"MIT"
] | 1 | 2020-11-03T05:37:27.000Z | 2020-11-03T05:37:27.000Z | #ifndef SIGNALS_DETAIL_CONNECTION_IMPL_HPP
#define SIGNALS_DETAIL_CONNECTION_IMPL_HPP
#include <memory>
#include <mutex>
#include <utility>
#include "../connection.hpp"
#include "../slot.hpp"
#include "connection_impl_base.hpp"
namespace sig {
class Connection;
template <typename Signature>
class Connection_impl;
/... | 28.933333 | 78 | 0.659908 | a-n-t-h-o-n-y |
cb51b86338f4c2de18524d860ed65f32f486832f | 336 | cpp | C++ | cpp1/cppio.cpp | CGCC-CS/csc240spring18 | 824026556610976b26ad0c0fa2f51ef244524180 | [
"MIT"
] | null | null | null | cpp1/cppio.cpp | CGCC-CS/csc240spring18 | 824026556610976b26ad0c0fa2f51ef244524180 | [
"MIT"
] | null | null | null | cpp1/cppio.cpp | CGCC-CS/csc240spring18 | 824026556610976b26ad0c0fa2f51ef244524180 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
using namespace std;
int main() {
int count;
string str;
cout << "Enter a number: ";
cin >> count;
cout << "Enter a string: ";
cin >> str; // Only gets characters until the next whitespace!
for(int ii=0;ii<count;ii++) {
cout << ii << " : " << str << endl;
}... | 15.272727 | 66 | 0.574405 | CGCC-CS |
cb53e73c54c9762e43096e774582efa54477a5a5 | 10,245 | cpp | C++ | src/catalog/catalog_util.cpp | xinzhang1234/peloton | 9b11d92dd5a2a0b32d5c39a9ba0b1aa45fe0b654 | [
"Apache-2.0"
] | 7 | 2017-03-12T01:57:48.000Z | 2022-03-16T12:44:07.000Z | src/catalog/catalog_util.cpp | xinzhang1234/peloton | 9b11d92dd5a2a0b32d5c39a9ba0b1aa45fe0b654 | [
"Apache-2.0"
] | null | null | null | src/catalog/catalog_util.cpp | xinzhang1234/peloton | 9b11d92dd5a2a0b32d5c39a9ba0b1aa45fe0b654 | [
"Apache-2.0"
] | 2 | 2017-03-30T00:43:50.000Z | 2021-07-21T06:27:44.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// catalog_util.cpp
//
// Identification: src/catalog/catalog_util.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===------------------------------------------------... | 37.665441 | 85 | 0.711957 | xinzhang1234 |
cb54519037742793b0c149c87545388006a38b6a | 2,343 | cpp | C++ | tf2_bot_detector_updater/Update_MSIX.cpp | Magicrafter13/tf2_bot_detector | 4cb43ae7e90fc5a084bef7d572af5bee1b10f389 | [
"MIT"
] | 1 | 2021-01-06T17:57:33.000Z | 2021-01-06T17:57:33.000Z | tf2_bot_detector_updater/Update_MSIX.cpp | cyrusParvereshi/tf2_bot_detector | 4cb43ae7e90fc5a084bef7d572af5bee1b10f389 | [
"MIT"
] | null | null | null | tf2_bot_detector_updater/Update_MSIX.cpp | cyrusParvereshi/tf2_bot_detector | 4cb43ae7e90fc5a084bef7d572af5bee1b10f389 | [
"MIT"
] | null | null | null | #include "Update_MSIX.h"
#include "Common.h"
#include <mh/source_location.hpp>
#include <mh/text/codecvt.hpp>
#include <mh/text/format.hpp>
#include <iostream>
#include <Windows.h>
#undef max
#undef min
#include <winrt/Windows.ApplicationModel.h>
#include <winrt/Windows.Management.Deployment.h>
#include <winrt/Wind... | 28.228916 | 101 | 0.706359 | Magicrafter13 |
cb54869797df94699ba268bbf56f585d276f56a4 | 7,876 | cpp | C++ | test/test_string_stream_u16.cpp | mhx/etl | 9931339605511ab4641fcd7bf47293a17bd551fa | [
"MIT"
] | 1,159 | 2015-01-05T13:18:58.000Z | 2022-03-31T16:43:48.000Z | test/test_string_stream_u16.cpp | mhx/etl | 9931339605511ab4641fcd7bf47293a17bd551fa | [
"MIT"
] | 383 | 2015-04-26T08:04:40.000Z | 2022-03-31T09:25:56.000Z | test/test_string_stream_u16.cpp | mhx/etl | 9931339605511ab4641fcd7bf47293a17bd551fa | [
"MIT"
] | 248 | 2015-01-13T07:50:30.000Z | 2022-03-31T21:55:37.000Z | /******************************************************************************
The MIT License(MIT)
Embedded Template Library.
https://github.com/ETLCPP/etl
https://www.etlcpp.com
Copyright(c) 2020 jwellbelove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associat... | 26.972603 | 117 | 0.492636 | mhx |
cb5a5ca587bd579fbe52257d6cb4da8eda15682c | 4,552 | cpp | C++ | leetcode/docu/468.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | leetcode/docu/468.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | leetcode/docu/468.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | #include "cpp_header.h"
class Solution {
public:
string validIPAddress(string IP)
{
int dot_nums = count(IP.begin(), IP.end(), '.');
if(dot_nums == 3)
if(consider_v4(IP))
return "IPv4";
int colon_nums = count(IP.begin(), IP.end(), ':');
if(colon_nums == 7)
if(consider_v6(IP))
return "IPv6";
... | 16.199288 | 56 | 0.517355 | sczzq |
cb5e295f4d074243ce2d069626fcbbe325c1e3c2 | 52 | cpp | C++ | c++/CMakeProject1/query/boost_timer_demo.cpp | Minyi1750/test | 08409df49fb576114c8b70677face827023d9cb5 | [
"Apache-2.0"
] | 1 | 2018-03-03T21:04:45.000Z | 2018-03-03T21:04:45.000Z | c++/CMakeProject1/query/boost_timer_demo.cpp | Minyi1750/test | 08409df49fb576114c8b70677face827023d9cb5 | [
"Apache-2.0"
] | null | null | null | c++/CMakeProject1/query/boost_timer_demo.cpp | Minyi1750/test | 08409df49fb576114c8b70677face827023d9cb5 | [
"Apache-2.0"
] | null | null | null | #include<boost/timer.cpp>
int main() {
return 0;
} | 10.4 | 25 | 0.653846 | Minyi1750 |
cb61fcd77c4c80c87c3085044ffefcc4e036db75 | 8,298 | cpp | C++ | libs/nav/src/reactive/CMultiObjectiveMotionOptimizerBase.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/nav/src/reactive/CMultiObjectiveMotionOptimizerBase.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/nav/src/reactive/CMultiObjectiveMotionOptimizerBase.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 1 | 2021-08-16T11:50:47.000Z | 2021-08-16T11:50:47.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 29.956679 | 159 | 0.650398 | yhexie |
cb63e51ad8fbd81ebe284c3f7dd86cb81de18814 | 793 | cpp | C++ | Yogesh Gaur/implelement_in_cpp/algorithms/Sorting/bubble_sort.cpp | sanskriti2023/Hacktoberfest-KIIT-2020 | fcb670b3bd7a8351af1b3bbbbef7a1f3e8d037c4 | [
"MIT"
] | 8 | 2019-10-05T18:40:46.000Z | 2019-10-25T16:26:41.000Z | Yogesh Gaur/implelement_in_cpp/algorithms/Sorting/bubble_sort.cpp | sanskriti2023/Hacktoberfest-KIIT-2020 | fcb670b3bd7a8351af1b3bbbbef7a1f3e8d037c4 | [
"MIT"
] | 13 | 2020-09-30T19:27:29.000Z | 2021-09-08T02:31:48.000Z | Yogesh Gaur/implelement_in_cpp/algorithms/Sorting/bubble_sort.cpp | sanskriti2023/Hacktoberfest-KIIT-2020 | fcb670b3bd7a8351af1b3bbbbef7a1f3e8d037c4 | [
"MIT"
] | 84 | 2020-09-30T19:00:05.000Z | 2021-09-30T04:17:34.000Z | #include <iostream>
using namespace std;
void bubbleSort(int arr[], int n)
{
int i, j;
for (i = 0; i < n - 1; i++)
{
for (j = 0; j < n - i - 1; j++)
{
if (arr[j] > arr[j + 1])
{
arr[j] = arr[j] + arr[j + 1];
arr[j + 1] = arr[j] - arr[j... | 19.825 | 49 | 0.364439 | sanskriti2023 |
cb63ee8f1e1cefcede8e1b6533fbc6251167ca9e | 3,775 | cpp | C++ | Demo.cpp | michal-z/SimplePbr | 629a0addae04b03630e0aaed6890da8f044dedb1 | [
"MIT"
] | 1 | 2021-11-07T07:21:52.000Z | 2021-11-07T07:21:52.000Z | Demo.cpp | michal-z/SimplePbr | 629a0addae04b03630e0aaed6890da8f044dedb1 | [
"MIT"
] | null | null | null | Demo.cpp | michal-z/SimplePbr | 629a0addae04b03630e0aaed6890da8f044dedb1 | [
"MIT"
] | null | null | null | #include "External.h"
#include "Common.h"
void *operator new[](size_t Size, const char* /*Name*/, int /*Flags*/,
unsigned /*DebugFlags*/, const char* /*File*/, int /*Line*/)
{
return malloc(Size);
}
void *operator new[](size_t Size, size_t Alignment, size_t AlignmentOffset, const char* /*Na... | 27.962963 | 122 | 0.630199 | michal-z |
cb648166f7bb6279b559ed8ea745ce07943624dd | 12,572 | cc | C++ | src/relay/op/nn/convolution.cc | qqsun8819/tvm | 53ac89ede7cddd1649b01b2ff10cc67a963757ce | [
"Apache-2.0"
] | null | null | null | src/relay/op/nn/convolution.cc | qqsun8819/tvm | 53ac89ede7cddd1649b01b2ff10cc67a963757ce | [
"Apache-2.0"
] | null | null | null | src/relay/op/nn/convolution.cc | qqsun8819/tvm | 53ac89ede7cddd1649b01b2ff10cc67a963757ce | [
"Apache-2.0"
] | null | null | null | /*!
* Copyright (c) 2018 by Contributors
* \file convolution.cc
* \brief Convolution operators
*/
#include <tvm/relay/op.h>
#include <tvm/relay/attrs/nn.h>
#include <vector>
#include "../layout.h"
namespace tvm {
namespace relay {
TVM_REGISTER_NODE_TYPE(Conv2DAttrs);
bool Conv2DRel(const Array<Type>& types,
... | 40.038217 | 97 | 0.650255 | qqsun8819 |
cb65760ade206a9a00afdc8ac77f46abff891cf3 | 8,882 | hpp | C++ | include/Thoth/Attribute.hpp | DerekCresswell/Thoth | e2ce891a45dffdf7c767ab7ddca13076f51ae567 | [
"MIT"
] | null | null | null | include/Thoth/Attribute.hpp | DerekCresswell/Thoth | e2ce891a45dffdf7c767ab7ddca13076f51ae567 | [
"MIT"
] | null | null | null | include/Thoth/Attribute.hpp | DerekCresswell/Thoth | e2ce891a45dffdf7c767ab7ddca13076f51ae567 | [
"MIT"
] | null | null | null |
#pragma once
#include <algorithm>
#include <string>
#include <sstream>
#include <vector>
/*
*
* @TODO
* Figure out defining attributes at run time
* Implement other common attributes
* Expand adding / deleting values to include more convience
* Add optional safety for overwriting
* Clearing values
*... | 26.99696 | 95 | 0.633641 | DerekCresswell |
cb6762f2e42a636b2598c8716be291e7a0eeb2d8 | 6,528 | hpp | C++ | libs/math/test/compile_test/test_compile_result.hpp | Talustus/boost_src | ffe074de008f6e8c46ae1f431399cf932164287f | [
"BSL-1.0"
] | null | null | null | libs/math/test/compile_test/test_compile_result.hpp | Talustus/boost_src | ffe074de008f6e8c46ae1f431399cf932164287f | [
"BSL-1.0"
] | null | null | null | libs/math/test/compile_test/test_compile_result.hpp | Talustus/boost_src | ffe074de008f6e8c46ae1f431399cf932164287f | [
"BSL-1.0"
] | null | null | null | // Copyright John Maddock 2007.
// Use, modification and distribution are 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)
//
// Note this header must NOT include any other headers, for its
// use to be meaningf... | 35.478261 | 106 | 0.67739 | Talustus |
cb6b046099cff431135f96e7c489c4700de1c176 | 3,174 | cpp | C++ | Day1/main.cpp | baldwinmatt/AoC-2021 | 4a7f18f6364715f6e61127aba175db6fec6e6b13 | [
"Apache-2.0"
] | 4 | 2021-12-06T17:14:00.000Z | 2021-12-10T06:29:35.000Z | Day1/main.cpp | baldwinmatt/AoC-2021 | 4a7f18f6364715f6e61127aba175db6fec6e6b13 | [
"Apache-2.0"
] | null | null | null | Day1/main.cpp | baldwinmatt/AoC-2021 | 4a7f18f6364715f6e61127aba175db6fec6e6b13 | [
"Apache-2.0"
] | null | null | null | #include "aoc21/helpers.h"
/*
--- Day 1: Sonar Sweep ---
You're minding your own business on a ship at sea when the overboard alarm goes off! You rush to see if you can help. Apparently, one of the Elves tripped and accidentally sent the sleigh keys flying into the ocean!
Before you know it, you're inside a submarine... | 35.266667 | 374 | 0.744802 | baldwinmatt |
cb6be6db8face42eec6aeb6687376a39e9bfc890 | 113 | cpp | C++ | Coocoo3DGraphics/RayTracingShaderTable.cpp | sselecirPyM/Coocoo3D | edefdc5a65c2784a3be2bdcb5cd575c149ecaaa9 | [
"BSD-3-Clause"
] | 50 | 2020-07-14T06:51:26.000Z | 2022-03-27T12:51:15.000Z | Coocoo3DGraphics/RayTracingShaderTable.cpp | sselecirPyM/Coocoo3D | edefdc5a65c2784a3be2bdcb5cd575c149ecaaa9 | [
"BSD-3-Clause"
] | 1 | 2021-08-05T06:30:15.000Z | 2021-11-23T04:41:08.000Z | Coocoo3DGraphics/RayTracingShaderTable.cpp | sselecirPyM/Coocoo3D | edefdc5a65c2784a3be2bdcb5cd575c149ecaaa9 | [
"BSD-3-Clause"
] | 8 | 2020-11-30T02:48:37.000Z | 2022-03-14T13:23:07.000Z | #include "pch.h"
#include "RayTracingShaderTable.h"
#include "DirectXHelper.h"
using namespace Coocoo3DGraphics;
| 22.6 | 34 | 0.80531 | sselecirPyM |
cb6c66c75ee21994c0f7cc1e3c511325fd25dfba | 1,180 | cpp | C++ | reverse.cpp | nainwalsanju/codechef | 6baaab3e6b76ec60054fe427274be31d6de60c12 | [
"MIT"
] | 1 | 2021-12-17T14:43:15.000Z | 2021-12-17T14:43:15.000Z | reverse.cpp | nainwalsanju/codechef | 6baaab3e6b76ec60054fe427274be31d6de60c12 | [
"MIT"
] | null | null | null | reverse.cpp | nainwalsanju/codechef | 6baaab3e6b76ec60054fe427274be31d6de60c12 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
string reverse_words(string s)
{
reverse(s.begin(), s.end());
string tmp;
string res;
for(int i=0;i<s.size();i++)
{
if (s[i]==' ')
{
reverse(tmp.begin(), tmp.end());
res+=tmp;
... | 18.4375 | 99 | 0.360169 | nainwalsanju |
cb7401366ea1a35e697ca49934aed1a26c6cfb95 | 3,949 | cpp | C++ | Master/cores/esp8266/core_esp8266_main.cpp | morlantechnologies/Arduino-Libraries | 128313d34f746bee660c0234050bae1af99745df | [
"MIT"
] | null | null | null | Master/cores/esp8266/core_esp8266_main.cpp | morlantechnologies/Arduino-Libraries | 128313d34f746bee660c0234050bae1af99745df | [
"MIT"
] | null | null | null | Master/cores/esp8266/core_esp8266_main.cpp | morlantechnologies/Arduino-Libraries | 128313d34f746bee660c0234050bae1af99745df | [
"MIT"
] | null | null | null | /*
main.cpp - platform initialization and context switching
emulation
Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
... | 23.646707 | 101 | 0.697392 | morlantechnologies |
cb75886e88f17263a61db65197759a158a653fd0 | 3,583 | cc | C++ | src/net/TcpServer.cc | GGGGITFKBJG/wethands | 169b2c4e8758657de10fa5850d1749014338a31d | [
"MIT"
] | 3 | 2020-12-03T13:18:17.000Z | 2021-11-12T12:15:36.000Z | src/net/TcpServer.cc | GGGGITFKBJG/wethands | 169b2c4e8758657de10fa5850d1749014338a31d | [
"MIT"
] | null | null | null | src/net/TcpServer.cc | GGGGITFKBJG/wethands | 169b2c4e8758657de10fa5850d1749014338a31d | [
"MIT"
] | null | null | null | // Copyright (c) 2020 GGGGITFKBJG
//
// Date: 2020-06-04 10:09:40
// Description:
#include "src/net/TcpServer.h"
#include <cassert>
#include <utility>
#include "src/logger/Logger.h"
namespace wethands {
namespace details {
void DefaultConnectionCallback(const TcpConnectionPtr& conn) {
LOG_TRACE << "DefaultConnecti... | 32.87156 | 78 | 0.657829 | GGGGITFKBJG |
cb78078a2e040a3fada0567c1872975d87bdddf7 | 143,715 | cpp | C++ | solarpilot/SolarField.cpp | sacorbet97/ssc | 6887d1e011de4f9ead8b283276c8c49f0f1dba2e | [
"MIT"
] | 3 | 2017-09-04T12:19:13.000Z | 2017-09-12T15:44:38.000Z | solarpilot/SolarField.cpp | sacorbet97/ssc | 6887d1e011de4f9ead8b283276c8c49f0f1dba2e | [
"MIT"
] | 1 | 2018-03-26T06:50:20.000Z | 2018-03-26T06:50:20.000Z | solarpilot/SolarField.cpp | sacorbet97/ssc | 6887d1e011de4f9ead8b283276c8c49f0f1dba2e | [
"MIT"
] | 2 | 2018-02-12T22:23:55.000Z | 2018-08-23T07:32:54.000Z | /*******************************************************************************************************
* Copyright 2017 Alliance for Sustainable Energy, LLC
*
* NOTICE: This software was developed at least in part by Alliance for Sustainable Energy, LLC
* (“Alliance”) under Contract No. DE-AC36-08GO28308 with the ... | 34.671894 | 207 | 0.655861 | sacorbet97 |
cb7b75f78252d6ef3d9aee01e29b0c2ab68d9c0c | 40,533 | cpp | C++ | test/test_util_network_ssl.cpp | Subv/realm-core | 377a85d2a385a31ec91be7e5fe8c09d22365df97 | [
"Apache-2.0"
] | null | null | null | test/test_util_network_ssl.cpp | Subv/realm-core | 377a85d2a385a31ec91be7e5fe8c09d22365df97 | [
"Apache-2.0"
] | null | null | null | test/test_util_network_ssl.cpp | Subv/realm-core | 377a85d2a385a31ec91be7e5fe8c09d22365df97 | [
"Apache-2.0"
] | null | null | null | #include <thread>
#include <realm/util/network_ssl.hpp>
#include "test.hpp"
#include "util/semaphore.hpp"
using namespace realm::util;
using namespace realm::test_util;
// Test independence and thread-safety
// -----------------------------------
//
// All tests must be thread safe and independent of each other. T... | 36.814714 | 118 | 0.67202 | Subv |
cb80b31eabe2f186879f72c627146ef22579f727 | 1,803 | cpp | C++ | src/medPacs/medAbstractPacsMoveScu.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src/medPacs/medAbstractPacsMoveScu.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src/medPacs/medAbstractPacsMoveScu.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
====... | 21.987805 | 174 | 0.695507 | ocommowi |
cb80e817794d89f60a9a68f2a6fb6135e2762dc1 | 5,612 | cpp | C++ | src/Material.cpp | JoshNoel/Raytracer | 2ff3aaecb5d9048a9b6a5f0a1a05560449dacd0e | [
"MIT"
] | null | null | null | src/Material.cpp | JoshNoel/Raytracer | 2ff3aaecb5d9048a9b6a5f0a1a05560449dacd0e | [
"MIT"
] | null | null | null | src/Material.cpp | JoshNoel/Raytracer | 2ff3aaecb5d9048a9b6a5f0a1a05560449dacd0e | [
"MIT"
] | null | null | null | #include "Material.h"
#include "Ray.h"
#include "Triangle.h"
#include "MathHelper.h"
#include <array>
#include <fstream>
#include "helper/array.h"
Material::Material(glm::vec3 col, float dc, glm::vec3 specCol, float sc, float shine, float ref, float ior)
: color(col), diffuseCoef(dc), indexOfRefrac(ior), specCoef(sc)... | 27.509804 | 110 | 0.651639 | JoshNoel |
cb82b95e796f59f5085527c2cedd5e626493675a | 530 | cc | C++ | yt/cpp-template/src/lib/cpplib.cc | e-dnx/courses | d21742a51447496f541dc8ec32b0df79d709dbff | [
"MIT"
] | null | null | null | yt/cpp-template/src/lib/cpplib.cc | e-dnx/courses | d21742a51447496f541dc8ec32b0df79d709dbff | [
"MIT"
] | null | null | null | yt/cpp-template/src/lib/cpplib.cc | e-dnx/courses | d21742a51447496f541dc8ec32b0df79d709dbff | [
"MIT"
] | null | null | null | #include "cpplib.h"
#include "limits"
std::string CPPLib::PrintHelloWorld() { return "**** Hello World ****"; }
// Calculates the Nth Fibonacci number
int CPPLib::fib(int N) {
if (N == 0) {
return 0;
}
if (N == 1) {
return 1;
}
return fib(N - 1) + fib(N - 2);
}
int CPPLib::FindMax(const std::vect... | 16.5625 | 73 | 0.549057 | e-dnx |
cb86d020926f4bdd1a6b0390b31c46990939a1fa | 3,986 | cpp | C++ | libs/asio/test/buffer.cpp | zyiacas/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 11 | 2015-07-12T13:04:52.000Z | 2021-05-30T23:23:46.000Z | libs/asio/test/buffer.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | null | null | null | libs/asio/test/buffer.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 3 | 2015-12-23T01:51:57.000Z | 2019-08-25T04:58:32.000Z | //
// buffer.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
//
// Disable autolinking for unit tests... | 26.751678 | 81 | 0.623432 | zyiacas |
cb87696c4881154da3875a239a73a08433467bd7 | 2,012 | cpp | C++ | core/src/view/light/PointLight.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | core/src/view/light/PointLight.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | core/src/view/light/PointLight.cpp | masrice/megamol | d48fc4889f500528609053a5445202a9c0f6e5fb | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* PointLight.cpp
* Copyright (C) 2009-2017 by MegaMol Team
* Alle Rechte vorbehalten.
*/
#include "mmcore/view/light/PointLight.h"
#include "mmcore/param/ColorParam.h"
#include "mmcore/param/FloatParam.h"
#include "mmcore/param/Vector3fParam.h"
#include "stdafx.h"
using namespace megamol::core::view::light;
v... | 30.484848 | 103 | 0.683897 | masrice |
cb8964efc3e0de162559226feb6de3d668afb4ad | 6,851 | hpp | C++ | tuttex/adjacency_list.hpp | DavePearce/TuttePoly | 0a97f50d0c7bede42c39e19e7f5145b06aaad45d | [
"BSD-3-Clause"
] | null | null | null | tuttex/adjacency_list.hpp | DavePearce/TuttePoly | 0a97f50d0c7bede42c39e19e7f5145b06aaad45d | [
"BSD-3-Clause"
] | 1 | 2021-01-27T23:04:31.000Z | 2021-01-27T23:04:31.000Z | tuttex/adjacency_list.hpp | DavePearce/TuttePoly | 0a97f50d0c7bede42c39e19e7f5145b06aaad45d | [
"BSD-3-Clause"
] | null | null | null | // (C) Copyright David James Pearce and Gary Haggard, 2007.
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
// This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability f... | 29.153191 | 89 | 0.62531 | DavePearce |
cb8965a817a3343072699b5849d6c0b181368995 | 2,034 | cpp | C++ | aws-cpp-sdk-servicediscovery/source/model/RegisterInstanceRequest.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-servicediscovery/source/model/RegisterInstanceRequest.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-servicediscovery/source/model/RegisterInstanceRequest.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 1 | 2019-01-18T13:03:55.000Z | 2019-01-18T13:03:55.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 25.111111 | 109 | 0.757129 | curiousjgeorge |
cb8b45308458bc5023eb27b83893519bd5627e5b | 1,198 | cc | C++ | plog/smodels-2.34/examples/example3.cc | bu-air-lab/POMDP-Dialog-Manager-Language-Learning | 36731060d970003944532395275c85453265aba8 | [
"MIT"
] | 2 | 2018-10-01T07:04:24.000Z | 2019-04-01T14:45:14.000Z | plog/smodels-2.34/examples/example3.cc | bu-air-lab/POMDP-Dialog-Manager-Language-Learning | 36731060d970003944532395275c85453265aba8 | [
"MIT"
] | null | null | null | plog/smodels-2.34/examples/example3.cc | bu-air-lab/POMDP-Dialog-Manager-Language-Learning | 36731060d970003944532395275c85453265aba8 | [
"MIT"
] | 2 | 2018-10-01T06:14:53.000Z | 2018-10-16T21:39:42.000Z | // Compute the stable models of the program
// a :- not b.
// b :- not a.
// Then add the rule
// a :- b.
// and compute the stable models of the resulting program.
#include <iostream>
#include "smodels.h"
#include "api.h"
#include "atomrule.h"
int main ()
{
Smodels smodels;
Api api (&smodels.program);
... | 21.017544 | 58 | 0.617696 | bu-air-lab |
cb8bd1ec4ca35823105caf34293db97eb68b499f | 6,811 | hpp | C++ | game/gamecontroller.hpp | edwinkepler/chessman | f9ffb902ce91c15726b8716665707d178ac734e1 | [
"MIT"
] | null | null | null | game/gamecontroller.hpp | edwinkepler/chessman | f9ffb902ce91c15726b8716665707d178ac734e1 | [
"MIT"
] | 14 | 2017-08-28T15:37:20.000Z | 2017-09-20T09:15:43.000Z | game/gamecontroller.hpp | edwinkepler/chessman | f9ffb902ce91c15726b8716665707d178ac734e1 | [
"MIT"
] | null | null | null | /**
* @copyright 2017 Edwin Kepler
* @license MIT
*/
#ifndef GAMECONTROLLER_HPP
#define GAMECONTROLLER_HPP
#include <utility>
#include <vector>
#include <chrono>
#include <memory>
#include <exception>
#include "pieces/pawn.hpp"
#include "pieces/rook.hpp"
#include "pieces/knight.hpp"
#include "pieces/bishop.hpp"
#... | 42.836478 | 105 | 0.621495 | edwinkepler |
cb8cb68d022aa88ea0c8d034260350a5fc42ecc5 | 1,235 | cc | C++ | src/tint/writer/wgsl/generator_bench.cc | hexops/dawn | 36cc72ad1c7b0c0a92be4754b95b1441850533b0 | [
"Apache-2.0"
] | 9 | 2021-11-05T11:08:14.000Z | 2022-03-18T05:14:34.000Z | src/tint/writer/wgsl/generator_bench.cc | hexops/dawn | 36cc72ad1c7b0c0a92be4754b95b1441850533b0 | [
"Apache-2.0"
] | 2 | 2021-12-01T05:08:59.000Z | 2022-02-18T08:14:30.000Z | src/tint/writer/wgsl/generator_bench.cc | hexops/dawn | 36cc72ad1c7b0c0a92be4754b95b1441850533b0 | [
"Apache-2.0"
] | 1 | 2022-02-11T17:39:44.000Z | 2022-02-11T17:39:44.000Z | // Copyright 2022 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 30.121951 | 75 | 0.703644 | hexops |
cb8d7390dd77b15cc5ad0ee09628f74470787436 | 10,073 | cpp | C++ | src/ScreenOptionsManageEditSteps.cpp | fpmuniz/stepmania | 984dc8668f1fedacf553f279a828acdebffc5625 | [
"MIT"
] | 1,514 | 2015-01-02T17:00:28.000Z | 2022-03-30T14:11:21.000Z | src/ScreenOptionsManageEditSteps.cpp | fpmuniz/stepmania | 984dc8668f1fedacf553f279a828acdebffc5625 | [
"MIT"
] | 1,462 | 2015-01-01T10:53:29.000Z | 2022-03-27T04:35:53.000Z | src/ScreenOptionsManageEditSteps.cpp | fpmuniz/stepmania | 984dc8668f1fedacf553f279a828acdebffc5625 | [
"MIT"
] | 552 | 2015-01-02T05:34:41.000Z | 2022-03-26T05:19:19.000Z | #include "global.h"
#include "ScreenOptionsManageEditSteps.h"
#include "ScreenManager.h"
#include "RageLog.h"
#include "GameState.h"
#include "SongManager.h"
#include "ScreenTextEntry.h"
#include "ScreenPrompt.h"
#include "GameManager.h"
#include "Steps.h"
#include "ScreenMiniMenu.h"
#include "RageUtil.h"
#include "Rag... | 30.524242 | 149 | 0.733843 | fpmuniz |
cb8ddf542520e955b9dcb91110ad076090cdaf98 | 2,687 | cpp | C++ | lib/samp-plugin-sdk/amxplugin2.cpp | TommyB123/pawn-chrono | 9e3a9237bff75c3191f5b1123c74abca07e11935 | [
"MIT"
] | 14 | 2018-06-03T03:05:21.000Z | 2021-09-16T17:08:34.000Z | lib/samp-plugin-sdk/amxplugin2.cpp | TommyB123/pawn-chrono | 9e3a9237bff75c3191f5b1123c74abca07e11935 | [
"MIT"
] | 6 | 2018-06-15T21:27:48.000Z | 2021-08-18T11:51:02.000Z | lib/samp-plugin-sdk/amxplugin2.cpp | TommyB123/pawn-chrono | 9e3a9237bff75c3191f5b1123c74abca07e11935 | [
"MIT"
] | 6 | 2018-08-13T01:33:32.000Z | 2022-03-13T16:38:40.000Z | //----------------------------------------------------------
//
// SA-MP Multiplayer Modification For GTA:SA
// Copyright 2014 SA-MP Team, Dan, maddinat0r
//
//----------------------------------------------------------
#include <cstring>
#include <cstdlib>
//---------------------------------------------... | 23.365217 | 89 | 0.534053 | TommyB123 |
cb902a321ce496c9ee21bd3293c86d1e0afcb78b | 2,257 | cpp | C++ | src/face2js.cpp | dreamdrive/ros_brave_face | 935470be602d48a8a6e4706d223b4d5fcdeab5f7 | [
"MIT"
] | 1 | 2020-10-28T01:28:31.000Z | 2020-10-28T01:28:31.000Z | src/face2js.cpp | dreamdrive/ros_brave_face | 935470be602d48a8a6e4706d223b4d5fcdeab5f7 | [
"MIT"
] | null | null | null | src/face2js.cpp | dreamdrive/ros_brave_face | 935470be602d48a8a6e4706d223b4d5fcdeab5f7 | [
"MIT"
] | null | null | null | // 20200925
// ファイバリオン用頭部、顔追従プログラムノード (口はジョイスティックで動く)
// Face2jointstates
#include "ros/ros.h"
#include "ros/time.h"
#include "opencv_apps/FaceArrayStamped.h"
#include "sensor_msgs/JointState.h"
#include <sensor_msgs/Joy.h>
#define SV_CNT 3
double face_x = 0;
double face_y = 0;
double mouse = 0;
sensor_msgs::Joint... | 25.647727 | 89 | 0.607887 | dreamdrive |
cb92f211e92c8916f51a81482e7b764e4afff9f7 | 9,494 | cpp | C++ | mpi/tsp/tsp.cpp | fraguela/dparallel_recursion | 30050242b7d01766fee5a3107c7a79db5c512d9e | [
"Apache-2.0"
] | 3 | 2022-01-01T07:48:58.000Z | 2022-01-25T14:01:35.000Z | mpi/tsp/tsp.cpp | fraguela/dparallel_recursion | 30050242b7d01766fee5a3107c7a79db5c512d9e | [
"Apache-2.0"
] | null | null | null | mpi/tsp/tsp.cpp | fraguela/dparallel_recursion | 30050242b7d01766fee5a3107c7a79db5c512d9e | [
"Apache-2.0"
] | null | null | null | /*
dparallel_recursion: distributed parallel_recursion skeleton
Copyright (C) 2015-2016 Carlos H. Gonzalez, Basilio B. Fraguela. Universidade da Coruna
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 Lic... | 22.604762 | 88 | 0.591426 | fraguela |
cb97a164bd3fe69862b66bc9a87a3fc41b1229a9 | 497 | cpp | C++ | Code full house/buoi8 - nguyen dinh trung duc-mang/bai11 cu dan lineland.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/buoi8 - nguyen dinh trung duc-mang/bai11 cu dan lineland.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/buoi8 - nguyen dinh trung duc-mang/bai11 cu dan lineland.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | /* bai 11 thanh pho Line Land */
#include<stdio.h>
int min(int a, int b){
if(a<b) return a;
return b;
}
int max(int a, int b){
if(a>b) return a;
return b;
}
int main(){
int i,n;
scanf("%d", &n);
int a[n];
for(i=0; i<n;i++){
scanf("%d",&a[i]);
}s
for(i=0;i<n;i++){
if(i==0){
printf("%d %d\n", a[1]-a[0]... | 15.53125 | 83 | 0.474849 | ducyb2001 |
cb989d5b0baf880de6daac4866f72e2ef4721c96 | 610 | cpp | C++ | UVa/686.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | 1 | 2018-02-11T09:41:54.000Z | 2018-02-11T09:41:54.000Z | UVa/686.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | UVa/686.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define MAXN 32768
using namespace std;
int prime[100000]={2,3,5,7},primeNUM=4;
int NUM[1000001]={0};
int main(){
for(int i=11;i<=MAXN;i++){
int judge=1;
for(int j=0;judge&&prime[j]<=sqrt(i);j++){
if(i%prime[j]==0)
judge=0;
}
if(judge){
prime[primeNUM++]=i;
}
}
for(int i... | 15.641026 | 47 | 0.544262 | tico88612 |
cb99d03a67c1f22595ca5b7d90a55d0d34e8d596 | 3,092 | cpp | C++ | sim/FFT/fft_gen/bench/cpp/twoc.cpp | SebastianBraun01/vu_meter | 131e632c388f39c37c539e9c5d5492b3f4cb2db6 | [
"Apache-2.0"
] | null | null | null | sim/FFT/fft_gen/bench/cpp/twoc.cpp | SebastianBraun01/vu_meter | 131e632c388f39c37c539e9c5d5492b3f4cb2db6 | [
"Apache-2.0"
] | null | null | null | sim/FFT/fft_gen/bench/cpp/twoc.cpp | SebastianBraun01/vu_meter | 131e632c388f39c37c539e9c5d5492b3f4cb2db6 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// Filename: twoc.cpp
// {{{
// Project: A General Purpose Pipelined FFT Implementation
//
// Purpose: Some various two's complement related C++ helper routines.
// Specifically, these help extract signed numbers from
// packed bitfie... | 30.313725 | 80 | 0.570181 | SebastianBraun01 |
ed806a15cb8396018711330adfc0ba80a74f8312 | 3,083 | hpp | C++ | include/UnityEngine/Experimental/Rendering/ScriptableRuntimeReflectionSystemSettings.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Experimental/Rendering/ScriptableRuntimeReflectionSystemSettings.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Experimental/Rendering/ScriptableRuntimeReflectionSystemSettings.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Completed includes
// Begin forward declares
// Forward declaring namespace: UnityEng... | 62.918367 | 189 | 0.798573 | darknight1050 |
ed80d1cdae7a0ff0f958cc04a6bf80a89bbb6e48 | 3,962 | cpp | C++ | tests/lll/lll_test.cpp | pdx-cs-tutors/pdp | 48622b1a4bdbf724795a1a6faed4ba1df16319a8 | [
"MIT"
] | 10 | 2017-04-25T05:01:19.000Z | 2021-03-27T22:40:21.000Z | tests/lll/lll_test.cpp | pdx-cs-tutors/pdp | 48622b1a4bdbf724795a1a6faed4ba1df16319a8 | [
"MIT"
] | null | null | null | tests/lll/lll_test.cpp | pdx-cs-tutors/pdp | 48622b1a4bdbf724795a1a6faed4ba1df16319a8 | [
"MIT"
] | 1 | 2019-02-02T23:39:46.000Z | 2019-02-02T23:39:46.000Z | #include <sstream>
#include "../include/lll_test.h"
// Helper function to create a string representing an LLL given its head node
// e.g. "[1 -> 2 -> 3]"
std::string stringify(lll::node* head) {
std::stringstream ss;
ss << "[";
while (head) {
ss << head->data;
if (head->next) ss << " -> ";
... | 26.238411 | 98 | 0.538617 | pdx-cs-tutors |
ed80e8fa693c8897d1d3c80fa21d33aa18405fe1 | 28,847 | cpp | C++ | turtlebotDemo/sick_line_guidance_demo/src/navigation_mapper.cpp | SICKAG/sick_line_guidance | 8df75641adb7d3273701de7c52941ec9b53b97d6 | [
"Apache-2.0"
] | 5 | 2019-04-15T11:19:19.000Z | 2022-02-16T09:58:05.000Z | turtlebotDemo/sick_line_guidance_demo/src/navigation_mapper.cpp | dejongyeong/sick_line_guidance | 48cbbdea13d7e881db35334c04df5949667b9c28 | [
"Apache-2.0"
] | 3 | 2020-07-07T11:59:02.000Z | 2021-04-21T05:43:19.000Z | turtlebotDemo/sick_line_guidance_demo/src/navigation_mapper.cpp | dejongyeong/sick_line_guidance | 48cbbdea13d7e881db35334c04df5949667b9c28 | [
"Apache-2.0"
] | 5 | 2019-02-18T18:32:48.000Z | 2022-02-10T15:04:35.000Z | /*
* NavigationMapper transforms the robots xy-positions from world/meter into map/pixel position,
* detect lines and barcodes in the map plus their distance to the robot,
* and transforms them invers into world coordinates.
*
* Copyright (C) 2019 Ing.-Buero Dr. Michael Lehning, Hildesheim
* Copyright (C) 2... | 58.276768 | 409 | 0.721392 | SICKAG |
ed81e202fb0ebb3d782ba5fd290e66c29a61420f | 525 | cpp | C++ | src/hobbits-core/parseresult.cpp | nfi002/hobbits | b63a15e2e6d8238cba08f2bce686887d8626924b | [
"MIT"
] | null | null | null | src/hobbits-core/parseresult.cpp | nfi002/hobbits | b63a15e2e6d8238cba08f2bce686887d8626924b | [
"MIT"
] | 1 | 2020-07-18T23:30:20.000Z | 2020-07-18T23:30:20.000Z | src/hobbits-core/parseresult.cpp | nfi002/hobbits | b63a15e2e6d8238cba08f2bce686887d8626924b | [
"MIT"
] | null | null | null | #include "parseresult.h"
ParseResult::ParseResult()
{
}
ParseResult::ParseResult(qlonglong val, int mult)
{
this->_val = val;
this->_mult = mult;
}
qlonglong ParseResult::getVal()
{
return this->_val;
}
int ParseResult::getMult()
{
return this->_mult;
}
qlonglong ParseResult::getResult()
{
if (... | 15 | 88 | 0.630476 | nfi002 |
ed84d6114a2d78c11f9036dd7fd2dd95c10ce1d9 | 12,681 | cpp | C++ | src/ofxDarknet.cpp | ermuur/ofxDarknet | 670101468e86416860fe805cc0e4c61bb2511d0a | [
"MIT"
] | 64 | 2018-12-28T16:18:18.000Z | 2022-02-14T16:48:00.000Z | src/ofxDarknet.cpp | Tencv/ofxDarknet | 670101468e86416860fe805cc0e4c61bb2511d0a | [
"MIT"
] | 6 | 2019-01-28T14:57:50.000Z | 2020-02-19T05:47:05.000Z | src/ofxDarknet.cpp | Tencv/ofxDarknet | 670101468e86416860fe805cc0e4c61bb2511d0a | [
"MIT"
] | 15 | 2018-12-19T15:02:51.000Z | 2022-03-11T07:03:24.000Z | #include "ofxDarknet.h"
ofxDarknet::ofxDarknet()
{
loaded = false;
labelsAvailable = false;
}
ofxDarknet::~ofxDarknet()
{
}
void ofxDarknet::init( std::string cfgfile, std::string weightfile, std::string nameslist )
{
if (nameslist != "") {
labelsAvailable = true;
}
net = parse_network_cfg( ... | 29.018307 | 164 | 0.560918 | ermuur |
ed8c8c9064c33414c6b7b794d54471efb93cc98f | 96,769 | cc | C++ | lib/thrift/compiler/cpp/src/thrift/thrifty.cc | NorbertoBurciaga/apache-thrift-tutorial | 6da9bb3021e4e330b85d4473a7c1e690d6668827 | [
"Apache-2.0"
] | null | null | null | lib/thrift/compiler/cpp/src/thrift/thrifty.cc | NorbertoBurciaga/apache-thrift-tutorial | 6da9bb3021e4e330b85d4473a7c1e690d6668827 | [
"Apache-2.0"
] | null | null | null | lib/thrift/compiler/cpp/src/thrift/thrifty.cc | NorbertoBurciaga/apache-thrift-tutorial | 6da9bb3021e4e330b85d4473a7c1e690d6668827 | [
"Apache-2.0"
] | null | null | null | /* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
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... | 31.644539 | 145 | 0.546714 | NorbertoBurciaga |
ed907a846ceb8f108937f2bef8431448ebf24349 | 961 | cpp | C++ | Roteiro_00/parouimpar.cpp | sigismundo03/Maratona-de-programacao-facape | 8e28f1674053f1d1ccd5541e08651e0c230f4ade | [
"MIT"
] | null | null | null | Roteiro_00/parouimpar.cpp | sigismundo03/Maratona-de-programacao-facape | 8e28f1674053f1d1ccd5541e08651e0c230f4ade | [
"MIT"
] | null | null | null | Roteiro_00/parouimpar.cpp | sigismundo03/Maratona-de-programacao-facape | 8e28f1674053f1d1ccd5541e08651e0c230f4ade | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool par( int value){
bool verdade = false;
if((value/2) == 0){
verdade = true;
}
return verdade;
}
int main(){
string name[2], nomevecedor[1002];
int valor,valor2,teste=1,i,tamanho,tamanhodovecedor = 0;
while(cin>>tamanho ... | 20.020833 | 61 | 0.477627 | sigismundo03 |
ed93be1db3b51f31bc72d97a68975c9b121e1fdf | 547 | cpp | C++ | components/tiled_visuals.cpp | ZamfirYonchev/Jam-game-engine | 2c72ce6901d5b5fe6d273f532843f83d8a826523 | [
"MIT"
] | null | null | null | components/tiled_visuals.cpp | ZamfirYonchev/Jam-game-engine | 2c72ce6901d5b5fe6d273f532843f83d8a826523 | [
"MIT"
] | null | null | null | components/tiled_visuals.cpp | ZamfirYonchev/Jam-game-engine | 2c72ce6901d5b5fe6d273f532843f83d8a826523 | [
"MIT"
] | null | null | null | /*
* tiled_visuals.cpp
*
* Created on: Dec 4, 2021
* Author: zamfi
*/
#include "tiled_visuals.h"
#include "position.h"
int TiledVisuals::repeat_x() const
{
return std::ceil(m_position_accessor(m_self_id).w()/m_tile_w);
}
int TiledVisuals::repeat_y() const
{
return std::ceil(m_position_accessor(m_self_id... | 18.233333 | 63 | 0.722121 | ZamfirYonchev |
ed9f4a82e3b131a9d8d0446d386a85ae7aff2e1d | 5,534 | cpp | C++ | Code/settings/DialogGraphOption.cpp | jiaguobing/FastCAE | 2348ab87e83fe5c704e4c998cf391229c25ac5d5 | [
"BSD-3-Clause"
] | 2 | 2020-02-21T01:04:35.000Z | 2020-02-21T03:35:37.000Z | Code/settings/DialogGraphOption.cpp | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | Code/settings/DialogGraphOption.cpp | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2021-11-21T13:03:26.000Z | 2021-11-21T13:03:26.000Z | #include "DialogGraphOption.h"
#include "GraphOption.h"
#include "ui_DialogGraphOption.h"
#include "mainWindow/mainWindow.h"
namespace Setting
{
GraphOptionDialog::GraphOptionDialog(GUI::MainWindow* mainwindow, GraphOption* op) :/* QFDialog(mainwindow),*/
_ui(new Ui::GraphOptionDialog), _mainWindow(mainwind... | 36.649007 | 112 | 0.738164 | jiaguobing |
eda27ca825d7324cc3cf8e6868e5cd8966f862cd | 4,049 | cpp | C++ | Boss/Mod/NodeBalanceSwapper.cpp | willcl-ark/clboss | 09a802ca00c04bf480c5f2d388f4cbd4500e3211 | [
"MIT"
] | null | null | null | Boss/Mod/NodeBalanceSwapper.cpp | willcl-ark/clboss | 09a802ca00c04bf480c5f2d388f4cbd4500e3211 | [
"MIT"
] | null | null | null | Boss/Mod/NodeBalanceSwapper.cpp | willcl-ark/clboss | 09a802ca00c04bf480c5f2d388f4cbd4500e3211 | [
"MIT"
] | null | null | null | #include"Boss/Mod/NodeBalanceSwapper.hpp"
#include"Boss/ModG/Swapper.hpp"
#include"Boss/Msg/ListpeersResult.hpp"
#include"Boss/Msg/OnchainFee.hpp"
#include"Boss/log.hpp"
#include"Jsmn/Object.hpp"
#include"Ln/Amount.hpp"
#include"S/Bus.hpp"
#include"Util/make_unique.hpp"
#include<sstream>
namespace {
/* The minimum pe... | 24.689024 | 71 | 0.588787 | willcl-ark |
eda2aa73b060b082fedbdad9fa793219be712cf6 | 1,846 | cpp | C++ | Strings/String Matching(or Searching) Algorithms/Using Trie/Creation, Insertion & Searching in a Trie.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 8 | 2021-02-13T17:07:27.000Z | 2021-08-20T08:20:40.000Z | Strings/String Matching(or Searching) Algorithms/Using Trie/Creation, Insertion & Searching in a Trie.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | null | null | null | Strings/String Matching(or Searching) Algorithms/Using Trie/Creation, Insertion & Searching in a Trie.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 5 | 2021-02-17T18:12:20.000Z | 2021-10-10T17:49:34.000Z | // Trie is basically an n-ary tree.
#include<bits/stdc++.h>
using namespace std;
// trie structure for inserting string consisting of lowercase
// latin alphabets
struct trie
{
// everything is by-default "public" in a struct
// every trie node will contain an array/vector of
// pointers each pointing to a simila... | 21.218391 | 75 | 0.601842 | Edith-3000 |
eda8b802fa30ed800d233182a2a1e63693ef05bb | 2,147 | cpp | C++ | src/gui/widgetdrawsimple.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/gui/widgetdrawsimple.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/gui/widgetdrawsimple.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file widgetdrawsimple.cpp
* @brief Base class for drawing widgets.
* @author RinceWind
* @date 2006-10-11
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/gui/precompiled.h"
#include "o3d/gui/widgetdrawsimple.h"
#include "o3d/engine/matrix.h"
#includ... | 28.626667 | 89 | 0.489986 | dream-overflow |
eda92c81dc6761012687f1753c30ef7e7351dce4 | 132 | hpp | C++ | ares/ms/expansion/fmsound/fmsound.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/ms/expansion/fmsound/fmsound.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/ms/expansion/fmsound/fmsound.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | struct FMSoundUnit : Expansion {
FMSoundUnit(Node::Port);
~FMSoundUnit();
auto serialize(serializer& s) -> void override;
};
| 18.857143 | 49 | 0.69697 | CasualPokePlayer |
eda9730d1182545ac5d0354286e262798ae5082d | 7,597 | hpp | C++ | include/nuls/system/math/elliptic_curve.hpp | ccccbjcn/nuls-v2-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | 1 | 2020-04-26T07:32:52.000Z | 2020-04-26T07:32:52.000Z | include/nuls/system/math/elliptic_curve.hpp | CCC-NULS/nuls-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | null | null | null | include/nuls/system/math/elliptic_curve.hpp | CCC-NULS/nuls-cplusplus-sdk | 3d5a76452fe0673eba490b26e5a95fea3d5788df | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2020 libnuls developers (see AUTHORS)
*
* This file is part of libnuls.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 35.834906 | 80 | 0.700013 | ccccbjcn |
edaa417d0ed6c5ff860a967f5b291a2fd1d15247 | 359 | cpp | C++ | OpenTESArena/src/UI/Button.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | 742 | 2016-03-09T17:18:55.000Z | 2022-03-21T07:23:47.000Z | OpenTESArena/src/UI/Button.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | 196 | 2016-06-07T15:19:21.000Z | 2021-12-12T16:50:58.000Z | OpenTESArena/src/UI/Button.cpp | TotalCaesar659/OpenTESArena | e72eda7a5e03869309b5ed7375f432d0ad826ff3 | [
"MIT"
] | 85 | 2016-04-17T13:25:16.000Z | 2022-03-25T06:45:15.000Z | #include "Button.h"
ButtonProxy::ButtonProxy(MouseButtonType buttonType, const RectFunction &rectFunc,
const Callback &callback, const ActiveFunction &isActiveFunc)
: rectFunc(rectFunc), callback(callback), isActiveFunc(isActiveFunc)
{
this->buttonType = buttonType;
}
ButtonProxy::ButtonProxy()
{
this->buttonType... | 25.642857 | 82 | 0.78273 | TotalCaesar659 |
edaba1edd7d4df4d79b582400024c6bc62b2bb0e | 215 | cpp | C++ | C++/sources/opencv_opengl_toolbox/fileviewer.cpp | sandeepmanandhargithub/Toolbox-ComputerVision | 9104a7a020944f2e4cbf383c5c4c7de0d8eab3ea | [
"MIT"
] | null | null | null | C++/sources/opencv_opengl_toolbox/fileviewer.cpp | sandeepmanandhargithub/Toolbox-ComputerVision | 9104a7a020944f2e4cbf383c5c4c7de0d8eab3ea | [
"MIT"
] | null | null | null | C++/sources/opencv_opengl_toolbox/fileviewer.cpp | sandeepmanandhargithub/Toolbox-ComputerVision | 9104a7a020944f2e4cbf383c5c4c7de0d8eab3ea | [
"MIT"
] | null | null | null | #include "fileviewer.h"
#include "ui_fileviewer.h"
fileViewer::fileViewer(QWidget *parent) :
QWidget(parent),
ui(new Ui::fileViewer)
{
ui->setupUi(this);
}
fileViewer::~fileViewer()
{
delete ui;
}
| 14.333333 | 41 | 0.665116 | sandeepmanandhargithub |
edb054bbcd24886cec7ae84ec92ef2abef0d4913 | 153 | cpp | C++ | recipes/libmp3lame/all/test_package/test_package.cpp | nadzkie0/conan-center-index | fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c | [
"MIT"
] | 3 | 2020-04-16T15:01:33.000Z | 2022-01-13T08:05:47.000Z | recipes/libmp3lame/all/test_package/test_package.cpp | nadzkie0/conan-center-index | fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c | [
"MIT"
] | 33 | 2020-02-18T15:54:50.000Z | 2022-03-28T08:54:10.000Z | recipes/libmp3lame/all/test_package/test_package.cpp | nadzkie0/conan-center-index | fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c | [
"MIT"
] | 8 | 2021-05-24T11:46:53.000Z | 2021-12-14T17:15:47.000Z | #include <cstdlib>
#include <iostream>
#include "lame/lame.h"
int main()
{
std::cout << get_lame_version() << std::endl;
return EXIT_SUCCESS;
}
| 15.3 | 49 | 0.653595 | nadzkie0 |
edbb3315df7384f29c0b0b59fa97de4cb8bdfb8c | 5,645 | cpp | C++ | src/NovelRT.Interop/Graphics/NrtImageRect.cpp | ClxS/NovelRT | f6703813b426dd906952fbf65986edf65ad4a55e | [
"MIT"
] | null | null | null | src/NovelRT.Interop/Graphics/NrtImageRect.cpp | ClxS/NovelRT | f6703813b426dd906952fbf65986edf65ad4a55e | [
"MIT"
] | null | null | null | src/NovelRT.Interop/Graphics/NrtImageRect.cpp | ClxS/NovelRT | f6703813b426dd906952fbf65986edf65ad4a55e | [
"MIT"
] | null | null | null | // Copyright © Matt Jones and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root
// for more information.
#include <NovelRT.Interop/Graphics/NrtImageRect.h>
#include <NovelRT.Interop/NrtErrorHandling.h>
#include <NovelRT.h>
#include <list>
using namespace NovelRT::Graphics;
usi... | 27.945545 | 119 | 0.656156 | ClxS |
edbe8a89f1a2fe4c4176f05407a1d95d8d01af0c | 672 | hpp | C++ | libs/naming_base/include/hpx/naming_base.hpp | weilewei/hpx | 49eb429a028f04fa4ed0c3860933d0fcced48792 | [
"BSL-1.0"
] | null | null | null | libs/naming_base/include/hpx/naming_base.hpp | weilewei/hpx | 49eb429a028f04fa4ed0c3860933d0fcced48792 | [
"BSL-1.0"
] | null | null | null | libs/naming_base/include/hpx/naming_base.hpp | weilewei/hpx | 49eb429a028f04fa4ed0c3860933d0fcced48792 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2016 Hartmut Kaiser
// Copyright (c) 2011 Bryce Lelbach
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef HPX_RUNTIME_NAMING_TYPES_FWD_HP... | 25.846154 | 80 | 0.732143 | weilewei |
edbf129c46b6696275ba0d6ec26628db05389210 | 1,449 | cpp | C++ | LeetCode/Problems/Algorithms/#756_PyramidTransitionMatrix_sol2_recursive_backtracking_(A^(N^2))_time_O(N^2)_extra_space_4ms_9.2MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#756_PyramidTransitionMatrix_sol2_recursive_backtracking_(A^(N^2))_time_O(N^2)_extra_space_4ms_9.2MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#756_PyramidTransitionMatrix_sol2_recursive_backtracking_(A^(N^2))_time_O(N^2)_extra_space_4ms_9.2MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
private:
unordered_map<string, vector<char>> candidates;
void back(string& colors, int pos1, int pos2, const vector<bool>& IS_ROW_END, bool& isValid){
if(pos2 == colors.length()){
isValid = true;
}
if(isValid){
return;
... | 30.829787 | 98 | 0.510007 | Tudor67 |
edbfc6e1df7589ffdc7fcdeea026a39f54dff27e | 3,891 | cpp | C++ | src/Level.cpp | p-mccusker/Gloom-Editor | 58ca43c7897f169311a084094b3f9852e56873cf | [
"Apache-2.0"
] | null | null | null | src/Level.cpp | p-mccusker/Gloom-Editor | 58ca43c7897f169311a084094b3f9852e56873cf | [
"Apache-2.0"
] | null | null | null | src/Level.cpp | p-mccusker/Gloom-Editor | 58ca43c7897f169311a084094b3f9852e56873cf | [
"Apache-2.0"
] | null | null | null | #include "Level.h"
Level::Level(uint rows, uint columns, uint height)
{
//Default width and height of 40 pixels for each tile
_cellHeight = _cellWidth = 40;
for (int i = 0; i < height; i++) {
vector<vector<shared_ptr<Cell>>> grid;
uint yCoord = 0;
for (int j = 0; j < rows; j++) {
uint xCoord = 0;
vecto... | 19.953846 | 66 | 0.587253 | p-mccusker |
edc32378ee40d9eebf809264b897fa85a7e1caef | 2,758 | hpp | C++ | ThirdParty/assimp/BoostWorkaround/boost/timer.hpp | spetz911/almaty3d | 0dda0f05862be2585eae9b6e2e8cf476c043e3dc | [
"MIT"
] | null | null | null | ThirdParty/assimp/BoostWorkaround/boost/timer.hpp | spetz911/almaty3d | 0dda0f05862be2585eae9b6e2e8cf476c043e3dc | [
"MIT"
] | null | null | null | ThirdParty/assimp/BoostWorkaround/boost/timer.hpp | spetz911/almaty3d | 0dda0f05862be2585eae9b6e2e8cf476c043e3dc | [
"MIT"
] | null | null | null | // boost timer.hpp header file ---------------------------------------------//
// Copyright Beman Dawes 1994-99. 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)
// See http://www.boost.org/libs/timer ... | 37.27027 | 81 | 0.643582 | spetz911 |
edc53544fdbe13eef2b5a9f1d6faf7a5ddeab0b0 | 11,654 | cpp | C++ | Scheduler/CoinOR/examplesMakefiles/fast0507.cpp | enyquist/Concordia_Scheduling | 5eb96ed585e7f2002983159b8ee0837b791753fa | [
"MIT"
] | null | null | null | Scheduler/CoinOR/examplesMakefiles/fast0507.cpp | enyquist/Concordia_Scheduling | 5eb96ed585e7f2002983159b8ee0837b791753fa | [
"MIT"
] | null | null | null | Scheduler/CoinOR/examplesMakefiles/fast0507.cpp | enyquist/Concordia_Scheduling | 5eb96ed585e7f2002983159b8ee0837b791753fa | [
"MIT"
] | null | null | null | // $Id: fast0507.cpp 1574 2011-01-05 01:13:55Z lou $
// Copyright (C) 2005, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#if defined(_MSC_VER)
// Turn off compiler warning about long names
# pragma warnin... | 31.928767 | 92 | 0.678394 | enyquist |
edc664e4b802762cc6f3874259e4b256e1ed153f | 9,953 | cpp | C++ | Chapter/10_ConsoleSystem/Core/ProcessManager.cpp | arkiny/OSwithMSVC | 90cd62ce9bbe8301942e024404f32b04874e7906 | [
"MIT"
] | 1 | 2021-05-09T01:24:05.000Z | 2021-05-09T01:24:05.000Z | Chapter/10_ConsoleSystem/Core/ProcessManager.cpp | arkiny/OSwithMSVC | 90cd62ce9bbe8301942e024404f32b04874e7906 | [
"MIT"
] | null | null | null | Chapter/10_ConsoleSystem/Core/ProcessManager.cpp | arkiny/OSwithMSVC | 90cd62ce9bbe8301942e024404f32b04874e7906 | [
"MIT"
] | null | null | null | #include "SkyOS.h"
#include "KernelProcessLoader.h"
#include "UserProcessLoader.h"
ProcessManager* ProcessManager::m_processManager = nullptr;
static int kernelStackIndex = 1;
extern int g_stackPhysicalAddressPool;
#define TASK_GENESIS_ID 1000
ProcessManager::ProcessManager()
{
m_nextThreadId = 1000;
m_pCurrentT... | 26.12336 | 141 | 0.728424 | arkiny |
edcb8b59a0c2dbcdc798f74034925ee0722025fc | 6,145 | hpp | C++ | optionals/faction_the_zone/CfgGroups.hpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 6 | 2018-05-05T22:28:57.000Z | 2019-07-06T08:46:51.000Z | optionals/faction_the_zone/CfgGroups.hpp | Schwaggot/kellerkompanie-mods | 7a389e49e3675866dbde1b317a44892926976e9d | [
"MIT"
] | 107 | 2018-04-11T19:42:27.000Z | 2019-09-13T19:05:31.000Z | optionals/faction_the_zone/CfgGroups.hpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 3 | 2018-10-03T11:54:46.000Z | 2019-02-28T13:30:16.000Z | class CfgGroups {
class east {
class GVAR(opfor) {
name = QUOTE(Kellerkompanie The Zone);
class Bandits {
name = QUOTE(Bandits);
class GVAR(opfor_bandit_group_4) {
name = QUOTE(4 Bandits);
faction = QGVAR(opfor);... | 36.796407 | 56 | 0.296989 | kellerkompanie |
edce46f09fbb30e52d6a507700192cb4a8129fba | 11,581 | cpp | C++ | guilib/src/OdometryViewer.cpp | redater/PAM-BATR | 3fc8f95972ec13963a53c5448921b59df80a8c8b | [
"BSD-3-Clause"
] | 1 | 2017-05-25T20:41:33.000Z | 2017-05-25T20:41:33.000Z | guilib/src/OdometryViewer.cpp | redater/PAM-BATR | 3fc8f95972ec13963a53c5448921b59df80a8c8b | [
"BSD-3-Clause"
] | null | null | null | guilib/src/OdometryViewer.cpp | redater/PAM-BATR | 3fc8f95972ec13963a53c5448921b59df80a8c8b | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2010-2014, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
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
... | 30.396325 | 122 | 0.677575 | redater |
edd08954bb398e4414cdc08003847733dace611f | 3,008 | cpp | C++ | jerome_tool/Help.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | 3 | 2018-06-11T10:48:54.000Z | 2021-05-30T07:10:15.000Z | jerome_tool/Help.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | jerome_tool/Help.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | //
// Help.cpp
// jerome
//
// Created by Anton Leuski on 9/5/16.
// Copyright © 2016 Anton Leuski & ICT/USC. All rights reserved.
//
// This file is part of Jerome.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You m... | 28.11215 | 82 | 0.701463 | leuski-ict |
edd6a9fe5f4b3bbec07a5d5a0d5a0fb2d5e995d3 | 2,041 | hpp | C++ | contrib/autoboost/autoboost/mpl/advance.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/mpl/advance.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/mpl/advance.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z |
#ifndef AUTOBOOST_MPL_ADVANCE_HPP_INCLUDED
#define AUTOBOOST_MPL_ADVANCE_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// 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)
//
// See http://www.boost.org/li... | 26.506494 | 83 | 0.719745 | CaseyCarter |
eddd9e4d8879a08cc69c08a3421507f23e261240 | 7,316 | cc | C++ | test/gtest/uct/ib/test_rc.cc | Bayyapu/ucx | b339b76ad67d2cc69e14598bac59b00b2d05d9ee | [
"BSD-3-Clause"
] | null | null | null | test/gtest/uct/ib/test_rc.cc | Bayyapu/ucx | b339b76ad67d2cc69e14598bac59b00b2d05d9ee | [
"BSD-3-Clause"
] | null | null | null | test/gtest/uct/ib/test_rc.cc | Bayyapu/ucx | b339b76ad67d2cc69e14598bac59b00b2d05d9ee | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) Mellanox Technologies Ltd. 2001-2016. ALL RIGHTS RESERVED.
* Copyright (C) UT-Battelle, LLC. 2016. ALL RIGHTS RESERVED.
* Copyright (C) ARM Ltd. 2016.All rights reserved.
* See file LICENSE for terms.
*/
#include "test_rc.h"
#define UCT_RC_INSTANTIATE_TEST_CASE(_test_case) \
_UCT_INSTANTIATE... | 27.503759 | 85 | 0.677556 | Bayyapu |
ede2bc114b93da6fa90a72e5829bce0ce5272997 | 5,733 | cpp | C++ | src/bind/lens_File.cpp | lubyk/lens | 05541de73c2df31680c6273a796a624323ac2c04 | [
"MIT"
] | 1 | 2016-01-21T22:07:58.000Z | 2016-01-21T22:07:58.000Z | src/bind/lens_File.cpp | lubyk/lens | 05541de73c2df31680c6273a796a624323ac2c04 | [
"MIT"
] | 1 | 2015-11-21T13:56:01.000Z | 2015-11-30T20:03:50.000Z | src/bind/lens_File.cpp | lubyk/lens | 05541de73c2df31680c6273a796a624323ac2c04 | [
"MIT"
] | null | null | null | /**
*
* MACHINE GENERATED FILE. DO NOT EDIT.
*
* Bindings for class File
*
* This file has been generated by dub 2.2.1.
*/
#include "dub/dub.h"
#include "lens/File.h"
using namespace lens;
/** lens::File::File(const char *path, Mode mode)
* include/lens/File.h:98
*/
static int File_File(lua_State *L) {
try... | 27.695652 | 81 | 0.54823 | lubyk |
ede87b17544ec85f5498388092a544c3907e5c84 | 1,673 | cpp | C++ | 99_sketch/win.cpp | kumaashi/VulkanSandbox | bb7c4e633dcd14d4ff4d2f279da48a2a78e1df5e | [
"Unlicense"
] | null | null | null | 99_sketch/win.cpp | kumaashi/VulkanSandbox | bb7c4e633dcd14d4ff4d2f279da48a2a78e1df5e | [
"Unlicense"
] | null | null | null | 99_sketch/win.cpp | kumaashi/VulkanSandbox | bb7c4e633dcd14d4ff4d2f279da48a2a78e1df5e | [
"Unlicense"
] | null | null | null | #include "win.h"
static LRESULT WINAPI WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
int temp = wParam & 0xFFF0;
switch (msg) {
case WM_SYSCOMMAND:
if (temp == SC_MONITORPOWER || temp == SC_SCREENSAVE) {
return 0;
}
break;
case WM_IME_SETCONTEXT:
lParam &= ~ISC_SHOWUIALL;
return 0;
... | 25.738462 | 124 | 0.708906 | kumaashi |
ede8d50579f6b9c9eddc199a4549552ea5b74aad | 1,369 | cpp | C++ | lcs.cpp | Sdccoding/Data-Structure_Algorithms_Coding | 169ac55ae0a916e49276658c7fbe362ef78b5484 | [
"MIT"
] | null | null | null | lcs.cpp | Sdccoding/Data-Structure_Algorithms_Coding | 169ac55ae0a916e49276658c7fbe362ef78b5484 | [
"MIT"
] | null | null | null | lcs.cpp | Sdccoding/Data-Structure_Algorithms_Coding | 169ac55ae0a916e49276658c7fbe362ef78b5484 | [
"MIT"
] | null | null | null | //Find LCS in terms of LIS,when 1 array has unique elemnts
//Find LIS in O(nlogn)
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define mk make_pair
#define fi first
#define se second
#define ll long long int
#define ld long double
#define MOD 1000000007
#define endl "\n"
#define pi pair<int,int>
... | 14.410526 | 72 | 0.450694 | Sdccoding |
ede9d6ee7995c5a5f58e99cd3f15d93f22197ca1 | 17,422 | cpp | C++ | pwiz_tools/commandline/idconvert.cpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 2 | 2019-12-28T21:24:36.000Z | 2020-04-18T03:52:05.000Z | pwiz_tools/commandline/idconvert.cpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | null | null | null | pwiz_tools/commandline/idconvert.cpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | null | null | null | //
// $Id: idconvert.cpp 6865 2014-10-31 21:47:12Z chambm $
//
//
// Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu>
//
// Copyright 2011 Vanderbilt University - Nashville, TN 37232
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complia... | 31.734062 | 141 | 0.596372 | shze |
edeb285194394566d4fcbcd0905cc5aee7d520e2 | 6,141 | cpp | C++ | src/SystemResources.in.cpp | atlantis07/LimeSuite | 9c365b144dc8fcc277a77843adf7dd4d55ba6406 | [
"Apache-2.0"
] | null | null | null | src/SystemResources.in.cpp | atlantis07/LimeSuite | 9c365b144dc8fcc277a77843adf7dd4d55ba6406 | [
"Apache-2.0"
] | null | null | null | src/SystemResources.in.cpp | atlantis07/LimeSuite | 9c365b144dc8fcc277a77843adf7dd4d55ba6406 | [
"Apache-2.0"
] | null | null | null | /**
@file SystemResources.h
@author Lime Microsystems
@brief APIs for locating system resources.
*/
#include "SystemResources.h"
#include "ErrorReporting.h"
#include <cstdlib> //getenv, system
#include <vector>
#include <sstream>
#include <iostream>
#ifdef _MSC_VER
#include <windows.h>
#include <shlobj.h>
#include <... | 29.81068 | 143 | 0.658362 | atlantis07 |
edeea8fe78da3db68b868d896923f2a56c5631e7 | 1,897 | hh | C++ | packages/solid/Region.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/solid/Region.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/solid/Region.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #ifndef Region_hh
#define Region_hh
#include <memory>
#include <vector>
#include "Surface.hh"
template<class T1, class T2> class Conversion;
class Material;
class XML_Node;
/*
Describes a solid geometry region
The memory for the regions must be allocated before the data is initialized,
as a region can... | 23.7125 | 84 | 0.663679 | brbass |
edf0a36ef614a3d4eb6c066bc9ba1732344b6097 | 18,182 | cc | C++ | release/src/router/aria2/src/FileEntry.cc | Clarkmania/ripetomato | 5eda5521468cb9cb7156ae6750cf8229b776d10e | [
"FSFAP"
] | 3 | 2019-01-13T09:19:57.000Z | 2022-01-15T12:16:14.000Z | release/src/router/aria2/src/FileEntry.cc | Clarkmania/ripetomato | 5eda5521468cb9cb7156ae6750cf8229b776d10e | [
"FSFAP"
] | 1 | 2020-07-28T08:22:45.000Z | 2020-07-28T08:22:45.000Z | release/src/router/aria2/src/FileEntry.cc | Clarkmania/ripetomato | 5eda5521468cb9cb7156ae6750cf8229b776d10e | [
"FSFAP"
] | 1 | 2020-03-06T21:17:24.000Z | 2020-03-06T21:17:24.000Z | /* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2006 Tatsuhiro Tsujikawa
*
* 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 the Lice... | 29.70915 | 80 | 0.650093 | Clarkmania |
edf1fbcd166750ff6482174ea741e731218485c9 | 1,750 | cpp | C++ | tests/unit/general/test_zlib.cpp | stefanhenneking/mfem | dc4715e03d177233ea0d891f2875324cadb06dc4 | [
"BSD-3-Clause"
] | 1 | 2020-08-15T07:00:22.000Z | 2020-08-15T07:00:22.000Z | tests/unit/general/test_zlib.cpp | stefanhenneking/mfem | dc4715e03d177233ea0d891f2875324cadb06dc4 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/general/test_zlib.cpp | stefanhenneking/mfem | dc4715e03d177233ea0d891f2875324cadb06dc4 | [
"BSD-3-Clause"
] | 1 | 2021-09-15T14:14:29.000Z | 2021-09-15T14:14:29.000Z | // Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... | 29.166667 | 80 | 0.684571 | stefanhenneking |
edf3bf559ad9311c86fc2fb2156b6a78c6b5b5da | 2,647 | hpp | C++ | Samples/EnginePrototype/PrototypeApplication.hpp | samkusin/overview | affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1 | [
"MIT"
] | null | null | null | Samples/EnginePrototype/PrototypeApplication.hpp | samkusin/overview | affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1 | [
"MIT"
] | null | null | null | Samples/EnginePrototype/PrototypeApplication.hpp | samkusin/overview | affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1 | [
"MIT"
] | null | null | null | //
// GameController.hpp
// EnginePrototype
//
// Created by Samir Sinha on 12/9/15.
//
//
#ifndef Prototype_Application_hpp
#define Prototype_Application_hpp
#include "GameTypes.hpp"
#include "Common.hpp"
#include "ResourceFactory.hpp"
#include "UICore/UIEngine.hpp"
#include "Engine/EntityDatabase.hpp"
#include... | 24.284404 | 75 | 0.722327 | samkusin |
edf3de456d91f0f6b3b4cedc269b1142465547c3 | 4,955 | cpp | C++ | EllysDeathStars.cpp | felikjunvianto/kfile-tc-srm-submissions | c98b21c6dbffb8c80b97abddc08d77c508aa43dc | [
"MIT"
] | null | null | null | EllysDeathStars.cpp | felikjunvianto/kfile-tc-srm-submissions | c98b21c6dbffb8c80b97abddc08d77c508aa43dc | [
"MIT"
] | null | null | null | EllysDeathStars.cpp | felikjunvianto/kfile-tc-srm-submissions | c98b21c6dbffb8c80b97abddc08d77c508aa43dc | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#de... | 33.255034 | 167 | 0.569526 | felikjunvianto |
edf549339fe1f22307d75e232580293c447e6f88 | 3,650 | cpp | C++ | test/unit/cuda/test-forall-view.cpp | resslerruntime/RAJA | 43a7f76d50972fa8c7aaad05fb361de5e91c2620 | [
"BSD-3-Clause"
] | 1 | 2019-09-27T02:45:41.000Z | 2019-09-27T02:45:41.000Z | test/unit/cuda/test-forall-view.cpp | resslerruntime/RAJA | 43a7f76d50972fa8c7aaad05fb361de5e91c2620 | [
"BSD-3-Clause"
] | null | null | null | test/unit/cuda/test-forall-view.cpp | resslerruntime/RAJA | 43a7f76d50972fa8c7aaad05fb361de5e91c2620 | [
"BSD-3-Clause"
] | null | null | null | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC
// and RAJA project contributors. See the RAJA/COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 28.515625 | 88 | 0.556986 | resslerruntime |
edf56876548982c8df49bd0276eb0d1c6e2cb7ff | 20,891 | cpp | C++ | src/game/server/fogcontroller.cpp | hitmen047/City-17-Episode-One-Source-2013 | 7c210bca82dad51b17bb6d47dee94a996111fd77 | [
"Unlicense"
] | 9 | 2016-06-03T17:39:38.000Z | 2018-11-15T13:51:07.000Z | src/game/server/fogcontroller.cpp | KyleGospo/City-17-Episode-One-Source-2013 | 0cc2bb3c19dd411f0eb3e86665cec2eec8952d5e | [
"Unlicense"
] | 2 | 2017-01-10T11:45:03.000Z | 2018-05-23T16:42:56.000Z | src/game/server/fogcontroller.cpp | hitmen047/City-17-Episode-One-Source-2013 | 7c210bca82dad51b17bb6d47dee94a996111fd77 | [
"Unlicense"
] | 7 | 2016-06-03T17:40:07.000Z | 2019-09-08T16:43:31.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// An entity that allows level designer control over the fog parameters.
//
//=============================================================================
#include "cbase.h"
#include "fogcontroller.h"
#include "entityinput.h"
#include "en... | 32.795918 | 162 | 0.66488 | hitmen047 |
edf7839f32cd56ea2a00b3e68bfad710c7212fe4 | 12,289 | cpp | C++ | src/foo_scrobble/PlaybackScrobbler.cpp | gix/foo_scrobble | df9d3321ac29ed6f676bb540b97190118cbdf604 | [
"MIT"
] | 294 | 2017-11-20T17:42:08.000Z | 2022-03-31T04:15:13.000Z | src/foo_scrobble/PlaybackScrobbler.cpp | gix/foo_scrobble | df9d3321ac29ed6f676bb540b97190118cbdf604 | [
"MIT"
] | 36 | 2017-12-03T04:24:46.000Z | 2022-02-24T21:22:17.000Z | src/foo_scrobble/PlaybackScrobbler.cpp | gix/foo_scrobble | df9d3321ac29ed6f676bb540b97190118cbdf604 | [
"MIT"
] | 14 | 2018-03-10T12:47:03.000Z | 2021-11-11T09:00:08.000Z | #include "ScrobbleConfig.h"
#include "WebService.h"
#include "fb2ksdk.h"
#include "ScrobbleService.h"
#include "ServiceHelper.h"
#include "Track.h"
namespace foo_scrobble
{
namespace
{
using SecondsD = std::chrono::duration<double>;
#ifdef _DEBUG
static constexpr bool IsDebug = true;
#else
static constexpr bool Is... | 31.510256 | 90 | 0.678574 | gix |
edf8157ecb7985f216c01428ba25326602c2d7bf | 436 | hpp | C++ | knapsacksolver/algorithms/surrelax.hpp | fontanf/knapsack | 619f8a65a9c23eaab9825dcce589408945e7ef65 | [
"MIT"
] | null | null | null | knapsacksolver/algorithms/surrelax.hpp | fontanf/knapsack | 619f8a65a9c23eaab9825dcce589408945e7ef65 | [
"MIT"
] | null | null | null | knapsacksolver/algorithms/surrelax.hpp | fontanf/knapsack | 619f8a65a9c23eaab9825dcce589408945e7ef65 | [
"MIT"
] | null | null | null | #pragma once
#include "knapsacksolver/solution.hpp"
namespace knapsacksolver
{
void solvesurrelax(
Instance instance,
Output& output,
std::function<Output (Instance&, Info, bool*)> func,
bool* end,
Info info = Info());
Output surrelax(
const Instance& instance,
... | 17.44 | 60 | 0.614679 | fontanf |
edf9a39ccb7c7bde9a2c35e00c778bc9bd04f704 | 35,466 | cpp | C++ | src/game/shared/econ/econ_item_system.cpp | TF2V/Tf2Vintage | 983d652c338dc017dca51f5bc4eee1a3d4b7ac2e | [
"Unlicense"
] | null | null | null | src/game/shared/econ/econ_item_system.cpp | TF2V/Tf2Vintage | 983d652c338dc017dca51f5bc4eee1a3d4b7ac2e | [
"Unlicense"
] | null | null | null | src/game/shared/econ/econ_item_system.cpp | TF2V/Tf2Vintage | 983d652c338dc017dca51f5bc4eee1a3d4b7ac2e | [
"Unlicense"
] | null | null | null | #include "cbase.h"
#include "filesystem.h"
#include "econ_item_system.h"
#include "script_parser.h"
#include "activitylist.h"
#include "tier0/icommandline.h"
#if defined(CLIENT_DLL)
#define UTIL_VarArgs VarArgs
#endif
const char *g_TeamVisualSections[TF_TEAM_VISUALS_COUNT] =
{
"visuals", // TEAM_UNASSIGNED
"", ... | 27.156202 | 170 | 0.670924 | TF2V |
edf9aa2ac8977d639dd63540255307c2d55bc5c0 | 679 | hpp | C++ | src/Operators/HashJoin.hpp | elordin/dbimpl | 4aa1ef8f9921bf3dc77752a139772a54a7e65663 | [
"MIT"
] | null | null | null | src/Operators/HashJoin.hpp | elordin/dbimpl | 4aa1ef8f9921bf3dc77752a139772a54a7e65663 | [
"MIT"
] | 4 | 2016-05-03T11:54:07.000Z | 2016-05-03T13:49:46.000Z | src/Operators/HashJoin.hpp | elordin/dbimpl | 4aa1ef8f9921bf3dc77752a139772a54a7e65663 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <vector>
#include <unordered_map>
#include "Register.hpp"
#include "Operator.cpp"
class HashJoin : public Operator{
private:
Operator* leftOp;
Operator* rightOp;
unsigned regIdLeft;
unsigned regIdRight;
vector<Register*> result;
std::unordered_map<uint64_t, vector<Regi... | 20.575758 | 124 | 0.721649 | elordin |
edfb2eacd1a1f34fd64cb2ecba611bf9aceb1102 | 526 | cpp | C++ | test/test_main_storage.cpp | karimdavoodi/iptv_rest | 93fdc83ce9ace2c733179caf26394d8aaa010de0 | [
"MIT"
] | 1 | 2020-09-16T01:45:24.000Z | 2020-09-16T01:45:24.000Z | test/test_main_storage.cpp | karimdavoodi/iptv_rest | 93fdc83ce9ace2c733179caf26394d8aaa010de0 | [
"MIT"
] | null | null | null | test/test_main_storage.cpp | karimdavoodi/iptv_rest | 93fdc83ce9ace2c733179caf26394d8aaa010de0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <catch.hpp>
#include "../src/main_storage.hpp"
TEST_CASE("test of MainStorage","")
{
return;
MainStorage st;
nlohmann::json j = st.getJson("configs","");
REQUIRE(j.size() > 0);
REQUIRE(j["login"].size() > 0 );
REQUIRE(j["login"]["admin"].size... | 27.684211 | 58 | 0.534221 | karimdavoodi |
edfcb02eb3220da7d366edea719bead076aa049e | 1,141 | hpp | C++ | PP/tuple/find.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | 3 | 2019-07-12T23:12:24.000Z | 2019-09-05T07:57:45.000Z | PP/tuple/find.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | PP/tuple/find.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | #pragma once
#include <PP/size_t.hpp>
#include <PP/tuple/find_index_state.hpp>
#include <PP/tuple/fold.hpp>
#include <PP/utility/move.hpp>
namespace PP::tuple
{
PP_CIA find = [](auto&& predicate, concepts::tuple auto&& tuple)
{
return PP_CV_MEMBER(
foldl(
[PP_FWL(predicate)](concepts::value aut... | 33.558824 | 80 | 0.496933 | Petkr |
61016ee7ef89395223351d703fa1d3e7bef0b069 | 4,260 | cpp | C++ | src/components/input/mipyuv420fileinput.cpp | xchbx/fox | 12787683ba10db8f5eedf21e2d0e7a63bebc1664 | [
"Apache-2.0"
] | 2 | 2019-04-12T10:26:43.000Z | 2019-06-21T15:20:11.000Z | src/components/input/mipyuv420fileinput.cpp | xchbx/fox | 12787683ba10db8f5eedf21e2d0e7a63bebc1664 | [
"Apache-2.0"
] | 1 | 2018-08-25T14:55:07.000Z | 2018-08-25T14:55:07.000Z | src/components/input/mipyuv420fileinput.cpp | xchbx/NetCamera | 12787683ba10db8f5eedf21e2d0e7a63bebc1664 | [
"Apache-2.0"
] | 1 | 2020-12-31T08:52:03.000Z | 2020-12-31T08:52:03.000Z | /*
This file is a part of EMIPLIB, the EDM Media over IP Library.
Copyright (C) 2006-2016 Hasselt University - Expertise Centre for
Digital Media (EDM) (http://www.edm.uhasselt.be)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU ... | 23.027027 | 120 | 0.721127 | xchbx |
6103aad785badd38907e5e8b243235f96b1c7cee | 640 | cpp | C++ | example/IconWindow.cpp | laferenorg/FGame | 488386054ef375e838d00afc5e771dd088050cb2 | [
"MIT"
] | 2 | 2021-06-22T02:38:51.000Z | 2021-06-22T11:46:24.000Z | example/IconWindow.cpp | laferenorg/FGame | 488386054ef375e838d00afc5e771dd088050cb2 | [
"MIT"
] | 1 | 2021-07-16T03:49:15.000Z | 2021-07-16T03:49:15.000Z | example/IconWindow.cpp | laferenorg/FGame | 488386054ef375e838d00afc5e771dd088050cb2 | [
"MIT"
] | 2 | 2021-06-22T11:46:36.000Z | 2021-06-23T06:10:35.000Z | /* Script example: Icon Window */
/* Include header C++ */
#include <iostream>
#include <string>
/* Include header FGame */
#include <FGame.hpp>
void handleEventsAndExtendUpdate(SDL_Event& event, FGameV2* fgame) {
/* Set Background */
fgame->SetBackground({ 0, 255, 0 });
}
void update(FGameV2* fgame) {
/* Code h... | 19.393939 | 68 | 0.665625 | laferenorg |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.