hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
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
float64
1
77k
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
float64
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
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
dee9518ffeb35a2f6dc7b3f566346a6fd6e6d3fd
22,804
cpp
C++
src/slib/db/sqlite.cpp
emarc99/SLib
4e492d6c550f845fd1b3f40bf10183097eb0e53c
[ "MIT" ]
146
2017-03-21T07:50:43.000Z
2022-03-19T03:32:22.000Z
src/slib/db/sqlite.cpp
Crasader/SLib
4e492d6c550f845fd1b3f40bf10183097eb0e53c
[ "MIT" ]
50
2017-03-22T04:08:15.000Z
2019-10-21T16:55:48.000Z
src/slib/db/sqlite.cpp
Crasader/SLib
4e492d6c550f845fd1b3f40bf10183097eb0e53c
[ "MIT" ]
55
2017-03-21T07:52:58.000Z
2021-12-27T13:02:08.000Z
/* * Copyright (c) 2008-2019 SLIBIO <https://github.com/SLIBIO> * * 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 * ...
28.433915
157
0.620944
deeb50bf2737a13113f6383e8c965541b118890b
7,337
hpp
C++
Extensions/Gameplay/IndexedHalfEdgeMesh.hpp
jodavis42/ZeroPhysicsTestbed
e84a3f6faf16b7a4242dc049121b5338e80039f8
[ "MIT" ]
1
2022-03-26T21:08:19.000Z
2022-03-26T21:08:19.000Z
Extensions/Gameplay/IndexedHalfEdgeMesh.hpp
jodavis42/ZeroPhysicsTestbed
e84a3f6faf16b7a4242dc049121b5338e80039f8
[ "MIT" ]
null
null
null
Extensions/Gameplay/IndexedHalfEdgeMesh.hpp
jodavis42/ZeroPhysicsTestbed
e84a3f6faf16b7a4242dc049121b5338e80039f8
[ "MIT" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// /// /// Authors: Joshua Davis /// Copyright 2017, DigiPen Institute of Technology /// /////////////////////////////////////////////////////////////////////////////// #pragma once namespace Zero { template <typename ArrayTyp...
29.704453
119
0.654355
deeff73bf44115b9aa19e662852a661458027b77
221
cpp
C++
C++/170923/170923/Item_4_Heal.cpp
ChoiChangYong/Game_Programing
6c290e31eaac526b0dbdfc59731e6479126e95bc
[ "MIT" ]
null
null
null
C++/170923/170923/Item_4_Heal.cpp
ChoiChangYong/Game_Programing
6c290e31eaac526b0dbdfc59731e6479126e95bc
[ "MIT" ]
null
null
null
C++/170923/170923/Item_4_Heal.cpp
ChoiChangYong/Game_Programing
6c290e31eaac526b0dbdfc59731e6479126e95bc
[ "MIT" ]
1
2020-04-27T12:41:20.000Z
2020-04-27T12:41:20.000Z
#include "Item_4_Heal.h" #include "Game.h" #include <iostream> using namespace std; void Item_4_Heal::onCheck(Game* pGame) { pGame->Use_Item_4_Heal(); } Item_4_Heal::Item_4_Heal() { } Item_4_Heal::~Item_4_Heal() { }
11.631579
38
0.714932
def119c406c8eaa5a601880b39120d51f9266eec
2,917
cpp
C++
bitsafe/window_effective.cpp
codereba/bittrace
6826559565aaafc9412d20427d21b73e23febcfe
[ "Unlicense" ]
10
2018-11-09T01:08:15.000Z
2020-06-21T05:39:54.000Z
bitsafe/window_effective.cpp
codereba/bittrace
6826559565aaafc9412d20427d21b73e23febcfe
[ "Unlicense" ]
null
null
null
bitsafe/window_effective.cpp
codereba/bittrace
6826559565aaafc9412d20427d21b73e23febcfe
[ "Unlicense" ]
4
2018-11-09T03:29:52.000Z
2021-07-23T03:30:03.000Z
/* * * Copyright 2010 JiJie Shi(weixin:AIChangeLife) * * This file is part of bittrace. * * bittrace 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 ...
21.768657
147
0.629071
def25db62073c18ceca30494b8ac3956e4a26189
1,169
cpp
C++
Old Code/SM64FM/src/main.cpp
sonich2401/SM64_Save_File_Converter
bd6876d66cbc3177b634540c7a2241e0ae8c759c
[ "MIT-0" ]
6
2020-07-27T19:07:37.000Z
2021-08-29T19:16:07.000Z
Old Code/SM64FM/src/main.cpp
sonich2401/SM64_Save_File_Converter
bd6876d66cbc3177b634540c7a2241e0ae8c759c
[ "MIT-0" ]
2
2021-06-09T05:49:41.000Z
2022-01-30T04:06:40.000Z
Old Code/SM64FM/src/main.cpp
sonich2401/SM64_Save_File_Converter
bd6876d66cbc3177b634540c7a2241e0ae8c759c
[ "MIT-0" ]
null
null
null
#include <stdlib.h> #include <stdio.h> #include <typedefs.h> #include "menu/option_decode.h" #include "util/load_file/load_bin.h" #include "EEPROM/EEPROM.h" #include "menu/menu_choice.h" #include "util/os/linux/escape_codes.h" void exit_program(option_struct * options); int main(int argc, cstring argv[]){ opt...
25.977778
117
0.663815
def94d20ef029a33c8313959adb0651a463e3480
4,645
cpp
C++
Desktop/FOSSA-GroundStationControlPanel/FOSSASatTracker/SGP4_experiments/main.cpp
FOSSASystems/FOSSA-GroundStationControlPanel
af83a09619239abe9fca09e073ab41c68bfd4822
[ "MIT" ]
2
2021-11-07T16:26:46.000Z
2022-03-20T10:14:41.000Z
Desktop/FOSSA-GroundStationControlPanel/FOSSASatTracker/SGP4_experiments/main.cpp
FOSSASystems/FOSSA-GroundStationControlPanel
af83a09619239abe9fca09e073ab41c68bfd4822
[ "MIT" ]
18
2020-08-28T13:38:36.000Z
2020-09-30T11:08:42.000Z
Desktop/FOSSA-GroundStationControlPanel/FOSSASatTracker/SGP4_experiments/main.cpp
FOSSASystems/FOSSA-GroundStationControlPanel
af83a09619239abe9fca09e073ab41c68bfd4822
[ "MIT" ]
2
2020-07-29T21:19:28.000Z
2021-08-16T03:58:14.000Z
#include "sgp4io.h" #include "sgp4unit.h" #include <GeographicLib/Geocentric.hpp> #include <iostream> int main() { /* INPUT is e.g. 2019 12 6 1 1 1 2020 12 6 1 1 1 */ char fossasatTLELineA[70] = "1 44829U 19084F 20183.10006475 .00039774 00000-0 23016-3 0 9991"; char fossasatTLEL...
27.323529
117
0.56254
defaa02a4762d4b70cc4f0fb2249bf63a7fccfca
757
cpp
C++
alpaca/portfolio.cpp
aidanjalili/alpaca-trade-api-cpp
0914de8ba46cea4c289ef362539d77b2bee74807
[ "MIT" ]
43
2020-04-07T03:28:22.000Z
2022-03-30T21:34:16.000Z
alpaca/portfolio.cpp
aidanjalili/alpaca-trade-api-cpp
0914de8ba46cea4c289ef362539d77b2bee74807
[ "MIT" ]
5
2020-04-29T03:45:36.000Z
2021-03-31T00:59:43.000Z
alpaca/portfolio.cpp
aidanjalili/alpaca-trade-api-cpp
0914de8ba46cea4c289ef362539d77b2bee74807
[ "MIT" ]
18
2020-04-27T18:35:18.000Z
2022-02-05T17:13:38.000Z
#include "alpaca/portfolio.h" #include "alpaca/json.h" #include "rapidjson/document.h" namespace alpaca { Status PortfolioHistory::fromJSON(const std::string& json) { rapidjson::Document d; if (d.Parse(json.c_str()).HasParseError()) { return Status(1, "Received parse error when deserializing portfolio JSON");...
28.037037
81
0.738441
defb2c5f63928f233ffce6f66bbca5071e7175b0
395
cc
C++
C++/algorithms/iterative_bsearch.cc
Pejo-306/mystdlib
89d94bfb2fb590775f6d6f689eea6dbf89afd849
[ "MIT" ]
null
null
null
C++/algorithms/iterative_bsearch.cc
Pejo-306/mystdlib
89d94bfb2fb590775f6d6f689eea6dbf89afd849
[ "MIT" ]
null
null
null
C++/algorithms/iterative_bsearch.cc
Pejo-306/mystdlib
89d94bfb2fb590775f6d6f689eea6dbf89afd849
[ "MIT" ]
null
null
null
using namespace std; int bsearch(int *arr, int size, int value) { int left = 0, right = size - 1, middle; while (left <= right) { middle = (left + right) / 2; if (arr[middle] == value) return middle; else if (arr[middle] < value) left = middle + 1; else ...
21.944444
43
0.498734
deff9e0ef99374df542a6693b5dcc62e077471c5
6,456
cpp
C++
src/IB/IBLagrangianForceStrategySet.cpp
MSV-Project/IBAMR
3cf614c31bb3c94e2620f165ba967cba719c45ea
[ "BSD-3-Clause" ]
2
2017-12-06T06:16:36.000Z
2021-03-13T12:28:08.000Z
src/IB/IBLagrangianForceStrategySet.cpp
MSV-Project/IBAMR
3cf614c31bb3c94e2620f165ba967cba719c45ea
[ "BSD-3-Clause" ]
null
null
null
src/IB/IBLagrangianForceStrategySet.cpp
MSV-Project/IBAMR
3cf614c31bb3c94e2620f165ba967cba719c45ea
[ "BSD-3-Clause" ]
null
null
null
// Filename: IBLagrangianForceStrategySet.cpp // Created on 04 April 2007 by Boyce Griffith // // Copyright (c) 2002-2013, Boyce Griffith // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // ...
37.103448
139
0.670074
72007729164461efc492cbee49cf51da6b5c9677
2,935
cpp
C++
example/sql/test_multithread.cpp
zizzzw/fflib
ba9b465347b650d86c34876fbfae48bc31194d97
[ "MIT" ]
1
2022-02-08T07:28:07.000Z
2022-02-08T07:28:07.000Z
example/sql/test_multithread.cpp
zizzzw/fflib
ba9b465347b650d86c34876fbfae48bc31194d97
[ "MIT" ]
null
null
null
example/sql/test_multithread.cpp
zizzzw/fflib
ba9b465347b650d86c34876fbfae48bc31194d97
[ "MIT" ]
2
2022-01-06T02:16:09.000Z
2022-01-19T12:49:54.000Z
/*********************************************** The MIT License (MIT) Copyright (c) 2012 Athrun Arthur <athrunarthur@gmail.com> 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 ...
37.151899
79
0.612947
7200cb8c29aa54b386846e16aac4f09b5848effa
9,142
cpp
C++
Code/Core/CoreTest/Tests/TestSmallBlockAllocator.cpp
qq573011406/FASTBuild_UnrealEngine
29c49672f82173a903cb32f0e4656e2fd07ebef2
[ "MIT" ]
30
2020-07-15T06:16:55.000Z
2022-02-10T21:37:52.000Z
Code/Core/CoreTest/Tests/TestSmallBlockAllocator.cpp
qq573011406/FASTBuild_UnrealEngine
29c49672f82173a903cb32f0e4656e2fd07ebef2
[ "MIT" ]
1
2020-11-23T13:35:00.000Z
2020-11-23T13:35:00.000Z
Code/Core/CoreTest/Tests/TestSmallBlockAllocator.cpp
qq573011406/FASTBuild_UnrealEngine
29c49672f82173a903cb32f0e4656e2fd07ebef2
[ "MIT" ]
12
2020-09-16T17:39:34.000Z
2021-08-17T11:32:37.000Z
// TestSmallBlockAllocator.cpp //------------------------------------------------------------------------------ // Includes //------------------------------------------------------------------------------ #include "TestFramework/UnitTest.h" #include "Core/Containers/Array.h" #include "Core/Math/Random.h" #include "Co...
35.710938
198
0.556005
72028a958d4a35056f23ad403159ba57ac3b6bbc
1,639
h++
C++
include/wheels/adl/swap.h++
dendisuhubdy/wheels
a49e790dbc277335907b393ebaddea947ae14d0e
[ "CC0-1.0" ]
null
null
null
include/wheels/adl/swap.h++
dendisuhubdy/wheels
a49e790dbc277335907b393ebaddea947ae14d0e
[ "CC0-1.0" ]
null
null
null
include/wheels/adl/swap.h++
dendisuhubdy/wheels
a49e790dbc277335907b393ebaddea947ae14d0e
[ "CC0-1.0" ]
1
2019-11-16T18:30:53.000Z
2019-11-16T18:30:53.000Z
// Wheels - various C++ utilities // // Written in 2013 by Martinho Fernandes <martinho.fernandes@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without a...
38.116279
101
0.626602
72029ac0401188223aa3ccc577020843e1245dd9
3,722
cc
C++
src/connectivity/wlan/drivers/testing/lib/sim-env/sim-env.cc
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
src/connectivity/wlan/drivers/testing/lib/sim-env/sim-env.cc
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
src/connectivity/wlan/drivers/testing/lib/sim-env/sim-env.cc
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "sim-env.h" #include <zircon/assert.h> namespace wlan::simulation { uint64_t Environment::event_count_ = 0; void Environment::Run() { while ...
29.539683
97
0.622783
7202f264bd57851ca7f5b279dd6700bd6f5d9dd6
556
cc
C++
examples/toy/andor.cc
paulhjkelly/taskgraph-metaprogramming
54c4e2806a97bec555a90784ab4cf0880660bf89
[ "BSD-3-Clause" ]
5
2020-04-11T21:30:19.000Z
2021-12-04T16:16:09.000Z
examples/toy/andor.cc
paulhjkelly/taskgraph-metaprogramming
54c4e2806a97bec555a90784ab4cf0880660bf89
[ "BSD-3-Clause" ]
null
null
null
examples/toy/andor.cc
paulhjkelly/taskgraph-metaprogramming
54c4e2806a97bec555a90784ab4cf0880660bf89
[ "BSD-3-Clause" ]
null
null
null
#include <TaskGraph> using namespace tg; typedef TaskGraph<void,int> andor_TaskGraph; int main( int argc, char *argv[] ) { andor_TaskGraph T; taskgraph( andor_TaskGraph, T, tuple1(a) ) { tVar(int, b); b = ((a < 12) + (a > 42)); b = ((a > 6) - (a < 9)); b = ((a < 12) * (a > 42)); b = ((a > 6) ...
22.24
46
0.393885
7208b1a74f7a044ea3b92c8d2697cdd2dffbc33f
437
hpp
C++
include/imgui.hpp
richard-vock/graphene
1a721894a9972c8865a1ad0861d500cef8436932
[ "Unlicense" ]
null
null
null
include/imgui.hpp
richard-vock/graphene
1a721894a9972c8865a1ad0861d500cef8436932
[ "Unlicense" ]
null
null
null
include/imgui.hpp
richard-vock/graphene
1a721894a9972c8865a1ad0861d500cef8436932
[ "Unlicense" ]
null
null
null
#pragma once #include <string> #include <imgui.h> #include "common.hpp" #include "events.hpp" struct GLFWwindow; namespace graphene::imgui { IMGUI_IMPL_API bool init_application(GLFWwindow* window, const std::string& font_path, float font_size, std::shared_ptr<event_manager> events); IMGUI_IMPL_API void shutdown_a...
20.809524
143
0.78032
7209c4bdc94f639f48deccad6ab5e8cd5451ec5e
4,139
cpp
C++
libdclalgo/tests/AzimuthEvaluationTests.cpp
OlegZhavoronkov/tnk_certification
9ef3544f3fd27073b78e38bba26af76e79f55a78
[ "Unlicense" ]
null
null
null
libdclalgo/tests/AzimuthEvaluationTests.cpp
OlegZhavoronkov/tnk_certification
9ef3544f3fd27073b78e38bba26af76e79f55a78
[ "Unlicense" ]
null
null
null
libdclalgo/tests/AzimuthEvaluationTests.cpp
OlegZhavoronkov/tnk_certification
9ef3544f3fd27073b78e38bba26af76e79f55a78
[ "Unlicense" ]
null
null
null
#include "AzimuthEvaluation.h" #include "PolarDecomposition.h" #include "LibraryParameters.h" #include <opencv2/core.hpp> #include <gtest/gtest.h> #include <limits> #include <vector> class AzimuthEvaluationTests : public ::testing::Test { public: AzimuthEvaluationTests(); cv::Mat genRandomMat(double min, double...
30.433824
93
0.636144
7209c78d917330a56ef4ad047da24049bab203e5
7,107
cc
C++
virtual-machine/instructions.cc
AlexGustafsson/mjavac
6efbf8d77ba67760cff5ab87a3e858de769ac33e
[ "Unlicense" ]
null
null
null
virtual-machine/instructions.cc
AlexGustafsson/mjavac
6efbf8d77ba67760cff5ab87a3e858de769ac33e
[ "Unlicense" ]
null
null
null
virtual-machine/instructions.cc
AlexGustafsson/mjavac
6efbf8d77ba67760cff5ab87a3e858de769ac33e
[ "Unlicense" ]
1
2021-08-19T02:56:28.000Z
2021-08-19T02:56:28.000Z
#include <iostream> #include <list> #include <tuple> #include "instructions.hpp" using namespace mjavac::vm; Instruction_iload::Instruction_iload(std::string identifier) : identifier(identifier) { } void Instruction_iload::perform(State *state) const { state->stack.push(state->variables[this->identifier]); ...
25.024648
106
0.686647
720bb2895a6c02e62838eab7e95643be1aa134eb
6,035
cc
C++
apis/ocpdiag/ocpdiag/core/results/internal/logging_test.cc
opencomputeproject/ocp-diag-core
37b83ff6f69684b435364000d26cd913eb6ff5f3
[ "Apache-2.0" ]
10
2021-11-09T20:20:56.000Z
2022-03-25T11:59:14.000Z
apis/ocpdiag/ocpdiag/core/results/internal/logging_test.cc
opencomputeproject/ocp-diag-core
37b83ff6f69684b435364000d26cd913eb6ff5f3
[ "Apache-2.0" ]
2
2022-02-10T21:27:33.000Z
2022-03-23T22:08:30.000Z
apis/ocpdiag/ocpdiag/core/results/internal/logging_test.cc
opencomputeproject/ocp-diag-core
37b83ff6f69684b435364000d26cd913eb6ff5f3
[ "Apache-2.0" ]
1
2021-11-24T04:46:00.000Z
2021-11-24T04:46:00.000Z
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
31.432292
89
0.708699
720c50dc8d59b9d1cfb7c087510ca8fb74d2d718
7,580
cpp
C++
level1/p11_linkedList/linkedList.cpp
shui12jiao/c2021
0a21392fe0c35cbebc04335d43e134410e17d89c
[ "MIT" ]
null
null
null
level1/p11_linkedList/linkedList.cpp
shui12jiao/c2021
0a21392fe0c35cbebc04335d43e134410e17d89c
[ "MIT" ]
null
null
null
level1/p11_linkedList/linkedList.cpp
shui12jiao/c2021
0a21392fe0c35cbebc04335d43e134410e17d89c
[ "MIT" ]
null
null
null
#include <sstream> #include "illegalParameter.h" #include "linearList.h" #include "linkedNode.h" template <typename T> class linkedList : public linearList<T> { //链表 public: linkedList(); linkedList(const linkedList<T>&); ~linkedList(); bool empty() const { return listSize == 0; } int size() ...
26.784452
107
0.581003
720e527a45f234e6add1ca37bbf847a70b75d5fc
1,617
cpp
C++
src/lib/Mutex.cpp
romoadri21/boi
deef8e7148b50fbb36886ba4ff491a6c0e18ad67
[ "BSD-3-Clause" ]
null
null
null
src/lib/Mutex.cpp
romoadri21/boi
deef8e7148b50fbb36886ba4ff491a6c0e18ad67
[ "BSD-3-Clause" ]
null
null
null
src/lib/Mutex.cpp
romoadri21/boi
deef8e7148b50fbb36886ba4ff491a6c0e18ad67
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2010, Piet Hein Schouten. All rights reserved. * This code is licensed under a BSD-style license that can be * found in the LICENSE file. The license can also be found at: * http://www.boi-project.org/license */ #include <QMutex> #include <QWaitCondition> #include "ThreadLockData.h" #include "Mute...
18.586207
65
0.520717
72116306bdcb5a850237fd09e64692faddd4be31
299
cpp
C++
code/hackerrank/left rotation.cpp
Codernob/problem-solving-codes
c852bae4e31887bd442d70af921348c8f1d246bf
[ "MIT" ]
null
null
null
code/hackerrank/left rotation.cpp
Codernob/problem-solving-codes
c852bae4e31887bd442d70af921348c8f1d246bf
[ "MIT" ]
null
null
null
code/hackerrank/left rotation.cpp
Codernob/problem-solving-codes
c852bae4e31887bd442d70af921348c8f1d246bf
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; void lr(int a[],int n) { int temp=a[0]; for(int i=0;i<n-1;i++) a[i]=a[i+1]; a[n-1]=temp; } int main() { int n,d; cin>>n/*>>d*/; int a[n]; for(int i=0;i<n;i++) cin>>a[i]; /*for(int i=1;i<=d;i++)*/ lr(a,n); for(int i=0;i<n;i++) cout<<a[i]<<" "; return 0; }
18.6875
38
0.521739
72127937d14cdbfedbe5d1c95ae94d20942522bf
664
hpp
C++
include/simple_math/vec.hpp
signekatt/simple_math
aa17f449330a2dd38a10222074c1139fdbdeeb75
[ "MIT" ]
null
null
null
include/simple_math/vec.hpp
signekatt/simple_math
aa17f449330a2dd38a10222074c1139fdbdeeb75
[ "MIT" ]
null
null
null
include/simple_math/vec.hpp
signekatt/simple_math
aa17f449330a2dd38a10222074c1139fdbdeeb75
[ "MIT" ]
null
null
null
// Copyright(c) 2019-present, Anton Lilja. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include "vec2.hpp" #include "vec3.hpp" #include "vec4.hpp" namespace sm { // Other op funcs template <typename V> inline V inverse(const V& v) { return v.inverse(); ...
21.419355
73
0.626506
721acc9a9c532c8339dcd09529c1bacf2d4dcb43
4,277
cpp
C++
tests/test_jpeg_out.cpp
Hasnain17/modern_cpp_image_to_jpeg
889e37e051d12cf2430f0ffe75fd94bd1a44eb88
[ "MIT" ]
null
null
null
tests/test_jpeg_out.cpp
Hasnain17/modern_cpp_image_to_jpeg
889e37e051d12cf2430f0ffe75fd94bd1a44eb88
[ "MIT" ]
1
2021-03-02T08:46:30.000Z
2021-03-02T08:46:30.000Z
tests/test_jpeg_out.cpp
Hasnain17/modern_cpp_image_to_jpeg
889e37e051d12cf2430f0ffe75fd94bd1a44eb88
[ "MIT" ]
1
2021-03-02T07:19:32.000Z
2021-03-02T07:19:32.000Z
//! Integration test for C++17 variant of the toojpeg implementation #include <iostream> #include "toojpeg_17.h" #include "vendor/sha2.h" #include "tests.h" #include <filesystem> #include <array> using std::cout; using std::endl; // 800x600 image const auto width = 800; const auto height = 600; void testColor() { ...
40.349057
119
0.550386
721c2de3ada7099eceea094e17c91fb0912c52f8
4,875
cpp
C++
modules/dasClangBind/src/dasClangBind.func_3.cpp
profelis/daScript
eea57f39dec4dd6168ee64c8ae5139cbcf2937bc
[ "BSD-3-Clause" ]
421
2019-08-15T15:40:04.000Z
2022-03-29T06:59:06.000Z
modules/dasClangBind/src/dasClangBind.func_3.cpp
profelis/daScript
eea57f39dec4dd6168ee64c8ae5139cbcf2937bc
[ "BSD-3-Clause" ]
55
2019-08-17T13:50:53.000Z
2022-03-25T17:58:38.000Z
modules/dasClangBind/src/dasClangBind.func_3.cpp
profelis/daScript
eea57f39dec4dd6168ee64c8ae5139cbcf2937bc
[ "BSD-3-Clause" ]
58
2019-08-22T17:04:13.000Z
2022-03-25T17:43:28.000Z
// this file is generated via daScript automatic C++ binder // all user modifications will be lost after this file is re-generated #include "daScript/misc/platform.h" #include "daScript/ast/ast.h" #include "daScript/ast/ast_interop.h" #include "daScript/ast/ast_handle.h" #include "daScript/ast/ast_typefactory_bind.h" ...
87.053571
284
0.791179
721f63b1042c4020bc953e493fbecf874d6fdb7c
3,585
cpp
C++
test/unit_tests/02_lock_acquire_release/test.cpp
stephenneuendorffer/mlir-aie
c95e5f4996f5490759705de63820adcf373444e6
[ "Apache-2.0" ]
67
2021-08-29T04:47:56.000Z
2022-03-29T05:38:32.000Z
test/unit_tests/02_lock_acquire_release/test.cpp
pssrawat/mlir-aie
b3f29a6344b70c6730d7ce0485b7bda54f3277dc
[ "Apache-2.0" ]
45
2021-09-02T21:35:59.000Z
2022-03-18T10:07:25.000Z
test/unit_tests/02_lock_acquire_release/test.cpp
hanchenye/mlir-aie
8027f07c8d58afc11c25aab743fbcb901dac2ae6
[ "Apache-2.0" ]
26
2021-08-29T17:38:33.000Z
2022-03-29T23:25:05.000Z
//===- test.cpp -------------------------------------------------*- C++ -*-===// // // This file is licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // // (c) Copyright 2020 Xilinx Inc. //...
30.12605
100
0.530544
7220274c2f0659c42f463ff7829710cef92ef67a
2,359
cpp
C++
ojcpp/leetcode/000/001_e_twosum.cpp
softarts/oj
2f51f360a7a6c49e865461755aec2f3a7e721b9e
[ "Apache-2.0" ]
3
2019-05-04T03:26:02.000Z
2019-08-29T01:20:44.000Z
ojcpp/leetcode/000/001_e_twosum.cpp
softarts/oj
2f51f360a7a6c49e865461755aec2f3a7e721b9e
[ "Apache-2.0" ]
null
null
null
ojcpp/leetcode/000/001_e_twosum.cpp
softarts/oj
2f51f360a7a6c49e865461755aec2f3a7e721b9e
[ "Apache-2.0" ]
null
null
null
/* https://leetcode.com/problems/two-sum/ Given nums = [2, 7, 11, 15], target = 9, Because nums[0] + nums[1] = 2 + 7 = 9, return [0, 1]. 思路 在one pass中,每个element-target=value,看看value是否已存在于hash map中 */ #include <codech/codech_def.h> using namespace CODECH; using namespace std; /* vector<int> twoSum(vector<int>...
21.445455
69
0.492158
72208adfe8279fd00a279c401a823f6d33b2b62a
3,703
cpp
C++
android-quill-master/jni/org_libharu_Document.cpp
xiang-lab/Note
e8c902f13e59de22c3312f81da44d45436d84165
[ "Apache-2.0" ]
null
null
null
android-quill-master/jni/org_libharu_Document.cpp
xiang-lab/Note
e8c902f13e59de22c3312f81da44d45436d84165
[ "Apache-2.0" ]
null
null
null
android-quill-master/jni/org_libharu_Document.cpp
xiang-lab/Note
e8c902f13e59de22c3312f81da44d45436d84165
[ "Apache-2.0" ]
null
null
null
#include "org_libharu_Document.h" #include "org_libharu_HPDF.h" #include "haru_error_handler.h" #include <assert.h> jfieldID Document_HPDF_Doc_Pointer_ID; JNIEXPORT void JNICALL Java_org_libharu_Document_initIDs (JNIEnv *env, jclass cls) { Document_HPDF_Doc_Pointer_ID = env->GetFieldID(cls, "HPDF_Doc_Pointer", "I...
31.922414
94
0.746422
72212be3fd2dd2fadb93b6595d42cb3cfec9fad0
5,065
cpp
C++
util/qtColorScheme.cpp
Kitware/qtextensions
0ff5b486f08435c8cdfbc9f05d2f104f63b16aed
[ "BSD-3-Clause" ]
19
2015-12-17T14:48:11.000Z
2021-11-26T13:43:40.000Z
util/qtColorScheme.cpp
Kitware/qtextensions
0ff5b486f08435c8cdfbc9f05d2f104f63b16aed
[ "BSD-3-Clause" ]
26
2015-11-16T21:34:23.000Z
2021-01-29T13:41:21.000Z
util/qtColorScheme.cpp
Kitware/qtextensions
0ff5b486f08435c8cdfbc9f05d2f104f63b16aed
[ "BSD-3-Clause" ]
13
2015-11-10T02:44:47.000Z
2020-11-16T06:07:21.000Z
// This file is part of qtExtensions, and is distributed under the // OSI-approved BSD 3-Clause License. See top-level LICENSE file or // https://github.com/Kitware/qtExtensions/blob/master/LICENSE for details. #include "qtColorScheme.h" #include <QSettings> #define ARGS(x) QPalette::x, #x //-----------------------...
41.516393
79
0.603356
722310472f4f466485792343c31670010863c197
11,228
hpp
C++
tcob/include/tcob/core/Automation.hpp
TobiasBohnen/tcob
53092b3c8e657f1ff5e48ce961659edf7cb1cb05
[ "MIT" ]
2
2021-08-18T19:14:35.000Z
2021-12-01T14:14:49.000Z
tcob/include/tcob/core/Automation.hpp
TobiasBohnen/tcob
53092b3c8e657f1ff5e48ce961659edf7cb1cb05
[ "MIT" ]
null
null
null
tcob/include/tcob/core/Automation.hpp
TobiasBohnen/tcob
53092b3c8e657f1ff5e48ce961659edf7cb1cb05
[ "MIT" ]
null
null
null
// Copyright (c) 2021 Tobias Bohnen // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #pragma once #include <tcob/tcob_config.hpp> #include <concepts> #include <queue> #include <vector> #include <tcob/core/Random.hpp> #include <tcob/core/Signal.hpp> #include <tcob/core/Upd...
24.408696
125
0.546491
722453a47a24987fd1452538469992a1e5025906
1,288
cpp
C++
ewk/unittest/utc_blink_ewk_context_proxy_uri_set_func.cpp
Jabawack/chromium-efl
6d3a3accc8afba0aa0eff6461eb5c83138172e6e
[ "BSD-3-Clause" ]
9
2015-04-09T20:22:08.000Z
2021-03-17T08:34:56.000Z
ewk/unittest/utc_blink_ewk_context_proxy_uri_set_func.cpp
Jabawack/chromium-efl
6d3a3accc8afba0aa0eff6461eb5c83138172e6e
[ "BSD-3-Clause" ]
2
2015-02-04T13:41:12.000Z
2015-05-25T14:00:40.000Z
ewk/unittest/utc_blink_ewk_context_proxy_uri_set_func.cpp
isabella232/chromium-efl
db2d09aba6498fb09bbea1f8440d071c4b0fde78
[ "BSD-3-Clause" ]
14
2015-02-12T16:20:47.000Z
2022-01-20T10:36:26.000Z
// Copyright 2014 Samsung Electronics. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "utc_blink_ewk_base.h" class utc_blink_ewk_context_proxy_uri_set : public utc_blink_ewk_base { protected: static const char*const url; }; cons...
30.666667
82
0.776398
7228c338c7a4d565cdda960c9153395a6e053ef3
4,554
cpp
C++
DHT_U.cpp
bert386/esp32-pellet-hmi
17e389632defb51dbc42cb2eef968fdc74a39477
[ "Apache-2.0" ]
1
2021-03-03T05:35:43.000Z
2021-03-03T05:35:43.000Z
DHT_U.cpp
bert386/esp32-pellet-hmi
17e389632defb51dbc42cb2eef968fdc74a39477
[ "Apache-2.0" ]
null
null
null
DHT_U.cpp
bert386/esp32-pellet-hmi
17e389632defb51dbc42cb2eef968fdc74a39477
[ "Apache-2.0" ]
null
null
null
#include "DHT_U.h" DHT_Unified::DHT_Unified(uint8_t pin, uint8_t type, uint8_t count, int32_t tempSensorId, int32_t humiditySensorId): _dht(pin, type, count), _type(type), _temp(this, tempSensorId), _humidity(this, humiditySensorId) {} void DHT_Unified::begin() { _dht.begin(); } void DHT_Unified::setName(...
28.4625
115
0.63307
7229d3675fd07fda77dd0738036f04243218b3cb
1,625
cpp
C++
concept_tests/drivers/freertos_driver.cpp
jedrzejboczar/ubik-micromouse
6470368de0c3207fc278bcfa604d1fdd74aaeb8f
[ "MIT" ]
3
2019-10-30T07:37:47.000Z
2021-01-21T11:50:20.000Z
concept_tests/drivers/freertos_driver.cpp
jedrzejboczar/ubik-micromouse
6470368de0c3207fc278bcfa604d1fdd74aaeb8f
[ "MIT" ]
null
null
null
concept_tests/drivers/freertos_driver.cpp
jedrzejboczar/ubik-micromouse
6470368de0c3207fc278bcfa604d1fdd74aaeb8f
[ "MIT" ]
null
null
null
#include "freertos_driver.h" // void FreeRTOSDriverTask::task() { // run(); // } FreeRTOSDriverTask::FreeRTOSDriverTask( const char * name, int priority, int stack_depth, size_t request_queue_length, TickType_t timeout): FreeRTOSTask(name, priority, stack_depth), request_queue_length(requ...
31.25
95
0.729231
722e215ab9d583c68b4b931841d7e1501fc8ff49
1,453
cpp
C++
algorithms/KthSmallestElementinaBST/tree.cpp
PikachuPikachuHAHA/leetcode-2
4cf8d30509f4b994b1845765807380eeffb95c73
[ "MIT" ]
93
2016-04-27T23:25:27.000Z
2021-07-13T20:32:25.000Z
algorithms/KthSmallestElementinaBST/tree.cpp
shangan/leetcode
db05338f8057ad440cb5dd6cfe0151aafb7a8d56
[ "MIT" ]
null
null
null
algorithms/KthSmallestElementinaBST/tree.cpp
shangan/leetcode
db05338f8057ad440cb5dd6cfe0151aafb7a8d56
[ "MIT" ]
43
2016-05-31T15:46:50.000Z
2021-04-09T04:07:39.000Z
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cstdio> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(nullptr), right(nullptr){} }; class Solution { public: int kthSmallest(TreeNode *root, int k) { int result...
19.90411
78
0.644184
7236a5e16e768f9e870eab43fe93378f499bac48
985
cpp
C++
System/GroundMissionControl.cpp
MatthewGotte/214_project_Derived
48a74a10bc4fd5b01d11d1f89a7203a5b070b9bd
[ "MIT" ]
null
null
null
System/GroundMissionControl.cpp
MatthewGotte/214_project_Derived
48a74a10bc4fd5b01d11d1f89a7203a5b070b9bd
[ "MIT" ]
null
null
null
System/GroundMissionControl.cpp
MatthewGotte/214_project_Derived
48a74a10bc4fd5b01d11d1f89a7203a5b070b9bd
[ "MIT" ]
null
null
null
#include "GroundMissionControl.h" #include "Satellite.h" GroundMissionControl::GroundMissionControl() { } void GroundMissionControl::attach(Satellite* addSatellite) { this->satelliteList.push_back(addSatellite); } void GroundMissionControl::detach(Satellite* removeSatellite) { vector<Sate...
24.625
84
0.603046
723825c6ae045d3688616d4d86c65a960f8057ce
4,609
cpp
C++
test/graphic/sphere_transparent_test.cpp
mpinto70/raytracing
5e3a46257b74a3df1b91fb066d7763b50273bf83
[ "MIT" ]
null
null
null
test/graphic/sphere_transparent_test.cpp
mpinto70/raytracing
5e3a46257b74a3df1b91fb066d7763b50273bf83
[ "MIT" ]
null
null
null
test/graphic/sphere_transparent_test.cpp
mpinto70/raytracing
5e3a46257b74a3df1b91fb066d7763b50273bf83
[ "MIT" ]
null
null
null
#include "graphic/sphere_transparent.h" #include <gtest/gtest.h> namespace graphic { using geometry::vec3d; TEST(sphere_transparent, creation) { constexpr vec3d C1{ 7, 8, 9 }; constexpr dim_t R1 = 5.0f; const sphere_transparent S1{ C1, R1, 1.458, 0.1, 0.2, 0.3 }; constexpr vec3d C2{ -2, 3, 10 }; ...
34.395522
85
0.635713
5cfb300c5618be540e9dab1268bc36675010d39a
2,624
cpp
C++
homomorphic_evaluation/ntl-11.3.2/src/Poly3TimeTest.cpp
dklee0501/PLDI_20_242_artifact_publication
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
160
2016-05-11T09:45:56.000Z
2022-03-06T09:32:19.000Z
homomorphic_evaluation/ntl-11.3.2/src/Poly3TimeTest.cpp
dklee0501/Lobster
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
57
2016-12-26T07:02:12.000Z
2022-03-06T16:34:31.000Z
homomorphic_evaluation/ntl-11.3.2/src/Poly3TimeTest.cpp
dklee0501/Lobster
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
67
2016-10-10T17:56:22.000Z
2022-03-15T22:56:39.000Z
#include <NTL/ZZ_pX.h> #include <cstdio> NTL_CLIENT double clean_data(double *t) { double x, y, z; long i, ix, iy, n; x = t[0]; ix = 0; y = t[0]; iy = 0; for (i = 1; i < 5; i++) { if (t[i] < x) { x = t[i]; ix = i; } if (t[i] > y) { y = t[i]; iy...
15.255814
62
0.470655
5cfd9b6935f140e9eca09aeef566fb9c6424ab7f
1,120
cpp
C++
examples/week01/numbers/sizeof.cpp
DaveParillo/cisc187-docker
872c0dba7d79d2e5c7c0269a8b75045c6f2bc229
[ "MIT" ]
null
null
null
examples/week01/numbers/sizeof.cpp
DaveParillo/cisc187-docker
872c0dba7d79d2e5c7c0269a8b75045c6f2bc229
[ "MIT" ]
null
null
null
examples/week01/numbers/sizeof.cpp
DaveParillo/cisc187-docker
872c0dba7d79d2e5c7c0269a8b75045c6f2bc229
[ "MIT" ]
null
null
null
#include <iostream> #include <string> int main() { char c = 'a'; std::cout << "size of char: " << sizeof(c) << '\n' << "size of int: " << sizeof(int) << '\n' << "size of double: " << sizeof(double) << '\n' << "size of pointer: " << sizeof(&c) << std::endl; double foo[...
46.666667
178
0.473214
5cfeffcb3608cdbcd3725189563c08e85ff27ae1
9,461
cpp
C++
src/test-apps/weave-connection-tunnel.cpp
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2021-08-10T12:08:31.000Z
2021-08-10T12:08:31.000Z
src/test-apps/weave-connection-tunnel.cpp
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
null
null
null
src/test-apps/weave-connection-tunnel.cpp
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2020-06-15T01:50:59.000Z
2020-06-15T01:50:59.000Z
/* * * Copyright (c) 2016-2017 Nest Labs, 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...
29.381988
138
0.659233
cf03086f029e45cfbb3b2a27e454049c615950a8
2,462
cpp
C++
Dory/Sensores.cpp
project-neon/Dory
7a84ee5556b681f1b4d2a03db14f170734dd74ed
[ "MIT" ]
1
2021-11-08T20:17:21.000Z
2021-11-08T20:17:21.000Z
Dory/Sensores.cpp
project-neon/Dory
7a84ee5556b681f1b4d2a03db14f170734dd74ed
[ "MIT" ]
null
null
null
Dory/Sensores.cpp
project-neon/Dory
7a84ee5556b681f1b4d2a03db14f170734dd74ed
[ "MIT" ]
1
2021-11-08T19:57:53.000Z
2021-11-08T19:57:53.000Z
#include <VL53L0X.h> #include "Sensores.h" #include "_config.h" #include <Wire.h> VL53L0X Sensores::sensor1; VL53L0X Sensores::sensor2; void Sensores::init(){ Wire.begin(); pinMode(Xshut_1, OUTPUT); pinMode(Xshut_2, OUTPUT); digitalWrite(Xshut_1, LOW); digitalWrite(Xshut_2, LOW); delay(10)...
26.191489
88
0.655971
cf054e4210c98e07939233cb28e89ffba22d1566
6,560
cc
C++
jni/main.cc
No9/leveldown-mobile
5bc696412771c126a2f4254a055b4942bd0d52d8
[ "BSD-3-Clause" ]
1
2019-06-12T19:37:47.000Z
2019-06-12T19:37:47.000Z
jni/main.cc
No9/leveldown-mobile
5bc696412771c126a2f4254a055b4942bd0d52d8
[ "BSD-3-Clause" ]
null
null
null
jni/main.cc
No9/leveldown-mobile
5bc696412771c126a2f4254a055b4942bd0d52d8
[ "BSD-3-Clause" ]
null
null
null
/* * This file contains sample wrappers showing Android Java Developers * who are not familiar with the NDK or JNI how to get data in and out of the * CPP and how to incorporate the sample code in * http://leveldb.googlecode.com/svn/trunk/doc/index.html into their JNI */ #include <string.h> #include <jni.h> #incl...
28.154506
129
0.709604
cf0e92dadd83905c9a73be9189544e26aab87294
30,067
cpp
C++
Source/Interface/Resources/FontResource.cpp
Noxagonal/Vulkan2DRenderer
5110a2422dfbf0bf5cfb1d3e13c5b97d5b80243e
[ "MIT" ]
90
2020-06-20T15:00:31.000Z
2022-03-22T21:03:45.000Z
Source/Interface/Resources/FontResource.cpp
Niko40/Vulkan2DRenderer
5110a2422dfbf0bf5cfb1d3e13c5b97d5b80243e
[ "MIT" ]
39
2019-11-04T01:40:14.000Z
2020-03-09T15:57:00.000Z
Source/Interface/Resources/FontResource.cpp
Niko40/Vulkan2DRenderer
5110a2422dfbf0bf5cfb1d3e13c5b97d5b80243e
[ "MIT" ]
4
2020-12-02T22:39:33.000Z
2021-12-27T07:55:12.000Z
#include "Core/SourceCommon.h" #include "System/ThreadPrivateResources.h" #include "Interface/InstanceImpl.h" #include "Interface/Resources/ResourceManager.h" #include "Interface/Resources/ResourceManagerImpl.h" #include "Interface/Resources/FontResource.h" #include "Interface/Resources/FontResourceImpl.h" #inclu...
32.364909
177
0.683241
cf1375d321ab6dff3ca69728686c391b0bb9f4a4
827
cpp
C++
UVa 10585 - Center of symmetry/sample/10585 - Center of symmetry.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 10585 - Center of symmetry/sample/10585 - Center of symmetry.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 10585 - Center of symmetry/sample/10585 - Center of symmetry.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
#include <stdio.h> #include <map> using namespace std; long long x[10000], y[10000], avex, avey, n; void solve() { if(avex%n || avey%n) { puts("no"); return; } avex /= n, avey /= n; map<long long, int> r; int i; for(i = 0; i < n; i++) r[x[i]*100000000+y[i]] = 1; long ...
20.675
45
0.385732
cf1485d6b4456ed43ad3558b0191dc7ba14f6957
162
cpp
C++
src/utils/Application.cpp
mgeorgoulopoulos/gencut
e9751c0d04816311d5460d14a88eaa1fcbe6f40d
[ "MIT" ]
null
null
null
src/utils/Application.cpp
mgeorgoulopoulos/gencut
e9751c0d04816311d5460d14a88eaa1fcbe6f40d
[ "MIT" ]
null
null
null
src/utils/Application.cpp
mgeorgoulopoulos/gencut
e9751c0d04816311d5460d14a88eaa1fcbe6f40d
[ "MIT" ]
null
null
null
#include "Application.h" #include "GenomeModel.h" void Application::execute() { GenomeModel model; model.load(arguments.genomeModelFilename, geneRegistry); }
18
57
0.771605
cf16edca209b988b8b8becbb6e49ecf128e1f2b8
5,119
cxx
C++
src/curl/Request.cxx
CM4all/libcommon
fba0eae725b0e7a6cf93ff0be231d90e2c0aa04e
[ "BSD-2-Clause" ]
13
2017-06-30T15:38:21.000Z
2022-03-11T06:49:17.000Z
src/curl/Request.cxx
CM4all/libcommon
fba0eae725b0e7a6cf93ff0be231d90e2c0aa04e
[ "BSD-2-Clause" ]
2
2017-10-29T18:28:28.000Z
2020-08-20T00:43:21.000Z
src/curl/Request.cxx
CM4all/libcommon
fba0eae725b0e7a6cf93ff0be231d90e2c0aa04e
[ "BSD-2-Clause" ]
6
2017-10-29T11:38:13.000Z
2021-10-12T00:36:38.000Z
/* * Copyright 2008-2021 Max Kellermann <max.kellermann@gmail.com> * * 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 co...
20.808943
78
0.714202
cf197e0fc95906c485da135c45136ca4783a1cd7
3,272
cpp
C++
src/script/scriptlistingdialog.cpp
nilsding/IrrerrC
0ff273e96c7a2f731ae23e17c9d58b872db14ebc
[ "BSD-2-Clause" ]
1
2016-06-14T14:21:27.000Z
2016-06-14T14:21:27.000Z
src/script/scriptlistingdialog.cpp
nilsding/IrrerrC
0ff273e96c7a2f731ae23e17c9d58b872db14ebc
[ "BSD-2-Clause" ]
null
null
null
src/script/scriptlistingdialog.cpp
nilsding/IrrerrC
0ff273e96c7a2f731ae23e17c9d58b872db14ebc
[ "BSD-2-Clause" ]
null
null
null
#include "scriptlistingdialog.h" #include "ui_scriptlistingdialog.h" ScriptListingDialog::ScriptListingDialog(QWidget *parent) : QDialog(parent), _ui(new Ui::ScriptListingDialog), _scriptDirModel(new QFileSystemModel), _currentScript(0) { _scriptDir = QFileInfo(_SETTINGS.fileName()).absolutePath() + "/...
32.72
112
0.654951
cf19d1a9499b20b8b71a2f80ec54d258e801780e
3,505
cpp
C++
src/wbdl/wbdl.cpp
DAlexis/wb-display-lib
67317051282d69904774d10553c33ed6c2dedb56
[ "MIT" ]
null
null
null
src/wbdl/wbdl.cpp
DAlexis/wb-display-lib
67317051282d69904774d10553c33ed6c2dedb56
[ "MIT" ]
null
null
null
src/wbdl/wbdl.cpp
DAlexis/wb-display-lib
67317051282d69904774d10553c33ed6c2dedb56
[ "MIT" ]
null
null
null
#include "wbdl.hpp" #include <algorithm> using namespace wbdl; ////////////////////////// // FrameBuffer void FrameBuffer::clearDirty() { dirtyX0 = 0; dirtyY0 = 0; dirtyX1 = 0; dirtyY1 = 0; } bool FrameBuffer::isDirty() { return dirtyX0 != dirtyX1; } unsigned int FrameBuffer::bufferSize() { return width * ...
17.26601
75
0.580884
cf224860179885ffaa17a8ab974eef5da9fd7ae7
1,625
hpp
C++
third_party/boost/simd/detail/dispatch/property_of.hpp
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
6
2018-02-25T22:23:33.000Z
2021-01-15T15:13:12.000Z
third_party/boost/simd/detail/dispatch/property_of.hpp
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
third_party/boost/simd/detail/dispatch/property_of.hpp
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
7
2017-12-12T12:36:31.000Z
2020-02-10T14:27:07.000Z
//================================================================================================== /*! @file Defines the property_of meta-function @copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_...
30.092593
100
0.651077
cf23785fa10c5955c4187c84d5583a29b1301d3d
577
cpp
C++
demos/glyph_paint/side_pane.cpp
RyanDraves/CPPurses
19cbdae2d18e702144659187ec989c486c714a0f
[ "MIT" ]
null
null
null
demos/glyph_paint/side_pane.cpp
RyanDraves/CPPurses
19cbdae2d18e702144659187ec989c486c714a0f
[ "MIT" ]
null
null
null
demos/glyph_paint/side_pane.cpp
RyanDraves/CPPurses
19cbdae2d18e702144659187ec989c486c714a0f
[ "MIT" ]
null
null
null
#include "side_pane.hpp" #include <cppurses/painter/color.hpp> #include <cppurses/painter/glyph.hpp> #include <cppurses/widget/widgets/text_display.hpp> using namespace cppurses; namespace demos { namespace glyph_paint { Side_pane::Side_pane() { this->width_policy.fixed(16); space1.wallpaper = L'─'; sp...
22.192308
51
0.734835
cf240458e3e47526197c6cf80111a9ad1882045f
17,299
hpp
C++
bluetoe/attribute_handle.hpp
TorstenRobitzki/bluetoe
0f04ccefa4e9ba6a89bf4dfaa0dd62b8e3a46043
[ "MIT" ]
138
2015-04-11T12:07:19.000Z
2022-02-11T13:22:36.000Z
bluetoe/attribute_handle.hpp
TorstenRobitzki/bluetoe
0f04ccefa4e9ba6a89bf4dfaa0dd62b8e3a46043
[ "MIT" ]
60
2015-08-29T12:32:56.000Z
2022-03-25T07:20:21.000Z
bluetoe/attribute_handle.hpp
TorstenRobitzki/bluetoe
0f04ccefa4e9ba6a89bf4dfaa0dd62b8e3a46043
[ "MIT" ]
34
2015-07-08T22:06:25.000Z
2021-12-15T13:17:42.000Z
#ifndef BLUETOE_ATTRIBUTE_HANDLE_HPP #define BLUETOE_ATTRIBUTE_HANDLE_HPP #include <bluetoe/meta_types.hpp> #include <bluetoe/meta_tools.hpp> #include <cstdint> #include <cstdlib> #include <cassert> #include <algorithm> namespace bluetoe { namespace details { struct attribute_handle_meta_type {}; ...
45.643799
163
0.637493
cf25e5c06c8f4264e5dd840483da443534068a07
1,402
cpp
C++
earth_enterprise/src/third_party/sgl/v0_8_6/src/SkScan.cpp
ezeeyahoo/earthenterprise
b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9
[ "Apache-2.0" ]
2,661
2017-03-20T22:12:50.000Z
2022-03-30T09:43:19.000Z
earth_enterprise/src/third_party/sgl/v0_8_6/src/SkScan.cpp
ezeeyahoo/earthenterprise
b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9
[ "Apache-2.0" ]
1,531
2017-03-24T17:20:32.000Z
2022-03-16T18:11:14.000Z
earth_enterprise/src/third_party/sgl/v0_8_6/src/SkScan.cpp
ezeeyahoo/earthenterprise
b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9
[ "Apache-2.0" ]
990
2017-03-24T11:54:28.000Z
2022-03-22T11:51:47.000Z
/* libs/graphics/sgl/SkScan.cpp ** ** Copyright 2006, Google 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 req...
28.04
85
0.621969
cf26279b7f8fdff66c5b19b3d7b123f0c179dccd
739
cpp
C++
algorithms/implementation/AppendAndDelete.cpp
HannoFlohr/hackerrank
9644c78ce05a6b1bc5d8f542966781d53e5366e3
[ "MIT" ]
null
null
null
algorithms/implementation/AppendAndDelete.cpp
HannoFlohr/hackerrank
9644c78ce05a6b1bc5d8f542966781d53e5366e3
[ "MIT" ]
null
null
null
algorithms/implementation/AppendAndDelete.cpp
HannoFlohr/hackerrank
9644c78ce05a6b1bc5d8f542966781d53e5366e3
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; string appendAndDelete(string s, string t, int k) { if(s==t) return "Yes"; int i=0; while(s[i]==t[i]) i++; if( ( s.length()+t.length()-2*i ) > k ) return "No"; else if( (s.length()+t.length()-2*i) % 2 == k%2 ) return "Yes"; else ...
17.595238
56
0.515562
cf2697dcaaf5af85590c4600fd4bfac32c9c4d7e
549
cpp
C++
leetcode/easy/Add_Digits.cpp
HoussemBousmaha/Competitive-Programming
c4530fc01d8933bdfefec7fb6d31cd648e760334
[ "MIT" ]
6
2022-03-02T23:08:00.000Z
2022-03-07T07:26:48.000Z
leetcode/easy/Add_Digits.cpp
HoussemBousmaha/Competitive-Programming
c4530fc01d8933bdfefec7fb6d31cd648e760334
[ "MIT" ]
null
null
null
leetcode/easy/Add_Digits.cpp
HoussemBousmaha/Competitive-Programming
c4530fc01d8933bdfefec7fb6d31cd648e760334
[ "MIT" ]
null
null
null
class Solution { public: // int add_digits(int n) { // int ans = 0; // int k; // while (n != 0) { // k = n % 10; // ans += k; // n /= 10; // } // return ans; // } int addDigits(int n) { ...
18.931034
42
0.256831
cf293d85b523041d2dfca0b8c7c7fa252e3fac76
469
cpp
C++
no3.cpp
bigdaddyjeff/JeffreyCSC102
dbdcbc50634b23ce7973c71329f4fdd2d3964927
[ "MIT" ]
null
null
null
no3.cpp
bigdaddyjeff/JeffreyCSC102
dbdcbc50634b23ce7973c71329f4fdd2d3964927
[ "MIT" ]
null
null
null
no3.cpp
bigdaddyjeff/JeffreyCSC102
dbdcbc50634b23ce7973c71329f4fdd2d3964927
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { int var = 789; int *ptr2; int **ptr1; ptr2 = &var; ptr1 = &ptr2; cout << "The value of var = "<< var << endl; cout << "Content value of single pointer ptr2 = " << *ptr2 << endl; cout << "address value of single pointer ptr2 = " << ptr2 << e...
27.588235
71
0.58209
cf2a28aa2539b4286c59835f605a6abdd6eda519
18,747
cpp
C++
IP/IMap.cpp
bharat-varma/Software-Engineering
36cdff296010e1076fb440707bfb2424110308ca
[ "Apache-2.0" ]
null
null
null
IP/IMap.cpp
bharat-varma/Software-Engineering
36cdff296010e1076fb440707bfb2424110308ca
[ "Apache-2.0" ]
3
2017-12-09T03:16:32.000Z
2017-12-15T04:22:08.000Z
IP/IMap.cpp
bharat-varma/Software-Engineering
36cdff296010e1076fb440707bfb2424110308ca
[ "Apache-2.0" ]
1
2017-09-19T00:28:47.000Z
2017-09-19T00:28:47.000Z
#include <map> #include <set> #include <vector> #include <algorithm> #include <cstdlib> #include <stack> #include <cmath> using namespace std; class IntMap { public: static const long serialVersionUID = 1L; static const int FREE_KEY = 0; static const int NO_VALUE = 0; /** Keys and values */ vector<in...
22.081272
134
0.53886
cf2eed74523c5d43661f04cba155aa1d24e3eba1
45,612
cpp
C++
stlsoft/samples/whereis/whereis.cpp
masscry/dmc
c7638f7c524a65bc2af0876c76621d8a11da42bb
[ "BSL-1.0" ]
86
2018-05-24T12:03:44.000Z
2022-03-13T03:01:25.000Z
stlsoft/samples/whereis/whereis.cpp
masscry/dmc
c7638f7c524a65bc2af0876c76621d8a11da42bb
[ "BSL-1.0" ]
1
2019-05-30T01:38:40.000Z
2019-10-26T07:15:01.000Z
stlsoft/samples/whereis/whereis.cpp
masscry/dmc
c7638f7c524a65bc2af0876c76621d8a11da42bb
[ "BSL-1.0" ]
14
2018-07-16T08:29:12.000Z
2021-08-23T06:21:30.000Z
/* ///////////////////////////////////////////////////////////////////////////// * File: whereis.cpp * * Purpose: Implementation file for the Synesis Software whereis utility * * Created: 19th January 1996 * Updated: 16th August 2004 * * Author: Matthew Wilson, Synesis Software P...
31.829728
215
0.562001
cf33b92f91390297175f9db1e773eeda011fd2dc
1,461
cpp
C++
Progs/Ch05/Referst.cpp
singhnir/C-Plus-Plus-Robert-Lafore
7ce3c92d15958e157484fc989632b879360103aa
[ "MIT" ]
4
2021-02-24T06:53:51.000Z
2022-02-18T11:15:19.000Z
Progs/Ch05/Referst.cpp
singhnir/C-Plus-Plus-Robert-Lafore
7ce3c92d15958e157484fc989632b879360103aa
[ "MIT" ]
null
null
null
Progs/Ch05/Referst.cpp
singhnir/C-Plus-Plus-Robert-Lafore
7ce3c92d15958e157484fc989632b879360103aa
[ "MIT" ]
4
2021-02-24T07:05:43.000Z
2022-03-09T17:45:32.000Z
// referst.cpp // demonstrates passing structure by reference #include <iostream> using namespace std; //////////////////////////////////////////////////////////////// struct Distance //English distance { int feet; float inches; }; ////////////////////////////////////////////...
31.085106
65
0.450376
cf3b5ad84e6ad780c89f9600ea72d405d86631b9
738
cpp
C++
src/QtGadgets/Validators/nRegExpValidator.cpp
Vladimir-Lin/QtGadgets
5fcea23ca95d85088d68fa64996e16281549ec3c
[ "MIT" ]
null
null
null
src/QtGadgets/Validators/nRegExpValidator.cpp
Vladimir-Lin/QtGadgets
5fcea23ca95d85088d68fa64996e16281549ec3c
[ "MIT" ]
null
null
null
src/QtGadgets/Validators/nRegExpValidator.cpp
Vladimir-Lin/QtGadgets
5fcea23ca95d85088d68fa64996e16281549ec3c
[ "MIT" ]
null
null
null
#include <qtgadgets.h> N::RegExpValidator:: RegExpValidator ( QObject * parent ) : QRegExpValidator ( parent ) , Validator ( parent ) { } N::RegExpValidator::~RegExpValidator (void) { } int N::RegExpValidator::Type(void) const { return 1102 ; } voi...
19.945946
78
0.658537
cf3d9a79062dafd4f1fe432932c9b68a30ce0998
1,097
cpp
C++
c++/primer_plus_s_pratt/ch_9/pr_ex4/sales.cpp
dinimar/Projects
7606c23c4e55d6f0c03692b4a1d2bb5b42f10992
[ "MIT" ]
null
null
null
c++/primer_plus_s_pratt/ch_9/pr_ex4/sales.cpp
dinimar/Projects
7606c23c4e55d6f0c03692b4a1d2bb5b42f10992
[ "MIT" ]
null
null
null
c++/primer_plus_s_pratt/ch_9/pr_ex4/sales.cpp
dinimar/Projects
7606c23c4e55d6f0c03692b4a1d2bb5b42f10992
[ "MIT" ]
null
null
null
#ifndef SALES_H #define SALES_H #include "sales.h" #endif #include <iostream> using namespace std; namespace SALES { void setSales(Sales &s, const double ar[], int n) { int count = 0; double max, min, ave = ar[0]; for(int i=0;i<n and i<QUARTERS;++i) { s.sales[i] = ar[i]; count++; if(max < ar[i])...
15.671429
50
0.52051
cf3dac6ef0e6d5ca630943ed95d601a3080002e5
2,746
cpp
C++
src/Kepler3rdLaw.cpp
wstern1234/CPP-Projects
e8712171355b7a833f8a63ce0ffa49dcca10b053
[ "MIT" ]
null
null
null
src/Kepler3rdLaw.cpp
wstern1234/CPP-Projects
e8712171355b7a833f8a63ce0ffa49dcca10b053
[ "MIT" ]
null
null
null
src/Kepler3rdLaw.cpp
wstern1234/CPP-Projects
e8712171355b7a833f8a63ce0ffa49dcca10b053
[ "MIT" ]
null
null
null
// Identification comments code block // Wills Stern // Kepler's 3rd Law // Editor(s) used: VS Code // Compiler(s) used: g++ #include <iostream> using std::cout; using std::cin; #include <string> using std::string; using std::endl; #include <cctype> // for toupper #include <cstdlib> // for atof #include <cmath> //...
22.145161
75
0.550255
cf3e39d26b98da0c54f6d62a7faae7c489feb69d
17,443
hpp
C++
tests/unit/coherence/util/CircularArrayListTest.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
6
2020-07-01T21:38:30.000Z
2021-11-03T01:35:11.000Z
tests/unit/coherence/util/CircularArrayListTest.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
1
2020-07-24T17:29:22.000Z
2020-07-24T18:29:04.000Z
tests/unit/coherence/util/CircularArrayListTest.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
6
2020-07-10T18:40:58.000Z
2022-02-18T01:23:40.000Z
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ #include "cxxtest/TestSuite.h" #include "coherence/lang.ns" #include "coherence/util/CircularArrayList.hpp" #include "private/coherence/util/l...
32.301852
98
0.480193
cf52f5bb6f126cfe12d71a828ecbec9b9d4b0bb0
617
cc
C++
ext/extbrotli.cc
dearblue/ruby-extbrotli
309a7088fdc8bc87354a00d6e442c97bf00da9f9
[ "BSD-2-Clause" ]
1
2017-05-23T07:13:40.000Z
2017-05-23T07:13:40.000Z
ext/extbrotli.cc
dearblue/ruby-extbrotli
309a7088fdc8bc87354a00d6e442c97bf00da9f9
[ "BSD-2-Clause" ]
null
null
null
ext/extbrotli.cc
dearblue/ruby-extbrotli
309a7088fdc8bc87354a00d6e442c97bf00da9f9
[ "BSD-2-Clause" ]
null
null
null
#include "extbrotli.h" VALUE mBrotli; VALUE mConst; VALUE eError; VALUE eNeedsMoreInput; VALUE eNeedsMoreOutput; EXTBROTLI_CEXTERN void Init_extbrotli(void) { mBrotli = rb_define_module("Brotli"); mConst = rb_define_module_under(mBrotli, "Constants"); rb_include_module(mBrotli, mConst); eError = rb_...
24.68
81
0.773096
cf54a1975be0c92f61cc83bc42ca252674bcfe2f
18,260
cpp
C++
src/SystemConfigurator/CSPs/DiagnosticLogCSP.cpp
mehrdad-shokri/iot-core-azure-dm-client
09c203f158c5f66a5bd2e508a7d50ac2e1372b89
[ "MIT" ]
52
2017-05-02T09:43:39.000Z
2021-11-11T18:32:46.000Z
src/SystemConfigurator/CSPs/DiagnosticLogCSP.cpp
mehrdad-shokri/iot-core-azure-dm-client
09c203f158c5f66a5bd2e508a7d50ac2e1372b89
[ "MIT" ]
161
2017-04-07T19:04:26.000Z
2020-09-21T12:42:22.000Z
src/SystemConfigurator/CSPs/DiagnosticLogCSP.cpp
mehrdad-shokri/iot-core-azure-dm-client
09c203f158c5f66a5bd2e508a7d50ac2e1372b89
[ "MIT" ]
67
2017-03-31T00:33:02.000Z
2021-03-06T00:34:33.000Z
/* Copyright 2017 Microsoft 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, publish, distribute, sublicense...
41.033708
196
0.648028
cf54ff4ccd37abfe5c66d8b83cbe74fcf6f7a80b
24,755
cpp
C++
src/test_infNaN_iamax.cpp
tlapack/testBLAS
dd63ade035880783cd55a8032c13a6d8e85dc490
[ "BSD-3-Clause" ]
null
null
null
src/test_infNaN_iamax.cpp
tlapack/testBLAS
dd63ade035880783cd55a8032c13a6d8e85dc490
[ "BSD-3-Clause" ]
null
null
null
src/test_infNaN_iamax.cpp
tlapack/testBLAS
dd63ade035880783cd55a8032c13a6d8e85dc490
[ "BSD-3-Clause" ]
1
2021-06-28T21:13:49.000Z
2021-06-28T21:13:49.000Z
/// @file test_infNaN_iamax.cpp /// @brief Test cases for iamax with NaNs, Infs and the overflow threshold (OV). // // Copyright (c) 2021, University of Colorado Denver. All rights reserved. // // This file is part of testBLAS. // testBLAS is free software: you can redistribute it and/or modify it under // the terms of...
32.317232
103
0.428277
cf572f7d6c43f4e28dbc736337834fbc72e648fd
5,679
cpp
C++
src/visitors/interp_visitor.cpp
ut-amrl/pips
1f553dc850f8c27a460f020d91b35c8a18c479bb
[ "MIT" ]
null
null
null
src/visitors/interp_visitor.cpp
ut-amrl/pips
1f553dc850f8c27a460f020d91b35c8a18c479bb
[ "MIT" ]
null
null
null
src/visitors/interp_visitor.cpp
ut-amrl/pips
1f553dc850f8c27a460f020d91b35c8a18c479bb
[ "MIT" ]
null
null
null
#include "interp_visitor.hpp" #include <eigen3/Eigen/Core> // Vector2f #include <iostream> // cout, endl #include <memory> // make_shared #include <stdexcept> // invalid_argument #include <string> // string #include "ast/library_functions.hpp" using Eigen::Vector2f; using ...
30.368984
78
0.61296
cf5817e955fde871be13b3af2de4f1caa3b99a8c
4,052
cpp
C++
main.cpp
arcanelab/telnet
9a74ecd7f43b7ab9a5cdb3527efda8db85a39db2
[ "Unlicense", "MIT" ]
3
2016-03-31T06:42:14.000Z
2019-05-30T00:35:17.000Z
main.cpp
arcanelab/telnet
9a74ecd7f43b7ab9a5cdb3527efda8db85a39db2
[ "Unlicense", "MIT" ]
null
null
null
main.cpp
arcanelab/telnet
9a74ecd7f43b7ab9a5cdb3527efda8db85a39db2
[ "Unlicense", "MIT" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <direct.h> #ifdef WIN32 #pragma warning(disable:4996) #include <conio.h> #endif #include "telnet.h" bool getInputString(char *buf,int len) { bool ret = true; int index = 0; bool exit = false; while ( !exit ) ...
25.167702
124
0.411649
cf587e787585f40839ca0cc1592ee6b659a8b0d8
6,200
cpp
C++
pnwtl/optionscontrols.cpp
Adept-Space/pn
d722f408cf3c3b8d0b8028846c0199969b6a103c
[ "BSD-3-Clause" ]
null
null
null
pnwtl/optionscontrols.cpp
Adept-Space/pn
d722f408cf3c3b8d0b8028846c0199969b6a103c
[ "BSD-3-Clause" ]
null
null
null
pnwtl/optionscontrols.cpp
Adept-Space/pn
d722f408cf3c3b8d0b8028846c0199969b6a103c
[ "BSD-3-Clause" ]
null
null
null
/** * @file optionscontrols.cpp * @brief Controls for options dialogs (and the like). * @author Simon Steele * @note Copyright (c) 2002-2011 Simon Steele - http://untidy.net/ * * Programmer's Notepad 2 : The license file (license.[txt|html]) describes * the conditions under which this source may be modified / d...
22.463768
144
0.647742
cf614dcba15e8f5442b2aedba5196ab8203bf185
2,744
cpp
C++
cpp/tests/tdmaMsgProcessor_UT.cpp
MinesJA/meshNetwork
5ffada57c13049cb00c2996fe239cdff6edf6f17
[ "NASA-1.3" ]
133
2017-06-24T02:44:28.000Z
2022-03-25T05:17:00.000Z
cpp/tests/tdmaMsgProcessor_UT.cpp
MinesJA/meshNetwork
5ffada57c13049cb00c2996fe239cdff6edf6f17
[ "NASA-1.3" ]
null
null
null
cpp/tests/tdmaMsgProcessor_UT.cpp
MinesJA/meshNetwork
5ffada57c13049cb00c2996fe239cdff6edf6f17
[ "NASA-1.3" ]
33
2017-06-19T03:24:40.000Z
2022-02-03T20:13:12.000Z
#include "tests/tdmaMsgProcessor_UT.hpp" #include "comm/tdmaCmds.hpp" #include "comm/tdmaComm.hpp" #include "comm/cmdHeader.hpp" #include "comm/commands.hpp" #include "node/nodeParams.hpp" #include "node/nodeState.hpp" #include <gtest/gtest.h> #include <cmath> #include <unistd.h> using std::vector; namespace { } na...
33.876543
134
0.673105
cf6521d38e5984acfd1d3a5a8a35309c09d30c38
1,545
cc
C++
Codeforces/BubbleCup/Problem H/H.cc
VastoLorde95/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
170
2017-07-25T14:47:29.000Z
2022-01-26T19:16:31.000Z
Codeforces/BubbleCup/Problem H/H.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
null
null
null
Codeforces/BubbleCup/Problem H/H.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
55
2017-07-28T06:17:33.000Z
2021-10-31T03:06:22.000Z
#include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <cstring> #include <map> #include <set> #include <vector> #include <utility> #include <queue> #include <stack> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi f...
21.458333
79
0.551456
cf65bf0e6b368a9f22c998f5fe83b42b89c5c720
310
hpp
C++
systemc.hpp
dcblack/Simple-SystemC-Debug
b7997c7cb3b5ba0eed2016a2ae5ff85989216982
[ "Apache-2.0" ]
1
2021-06-20T02:26:30.000Z
2021-06-20T02:26:30.000Z
systemc.hpp
dcblack/Simple-SystemC-Debug
b7997c7cb3b5ba0eed2016a2ae5ff85989216982
[ "Apache-2.0" ]
null
null
null
systemc.hpp
dcblack/Simple-SystemC-Debug
b7997c7cb3b5ba0eed2016a2ae5ff85989216982
[ "Apache-2.0" ]
1
2021-03-01T14:58:27.000Z
2021-03-01T14:58:27.000Z
#pragma once #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #include <systemc> #include <sc_time_literal.hpp> #pragma clang diagnostic pop #pragma GCC diagnostic pop //vim:syntax=systemc
28.181818
53
0.790323
cf661d16ad9e0680abcf6f9984f642f6d3e51eb3
3,293
cpp
C++
test/src/player_test.cpp
nathiss/Fusion
673245a68f75997494deec202bdffdea6ac78d48
[ "MIT" ]
null
null
null
test/src/player_test.cpp
nathiss/Fusion
673245a68f75997494deec202bdffdea6ac78d48
[ "MIT" ]
null
null
null
test/src/player_test.cpp
nathiss/Fusion
673245a68f75997494deec202bdffdea6ac78d48
[ "MIT" ]
null
null
null
/** * @file player_test.cpp * * This module is a part of Fusion Server project. * It contains the implementation of the unit tests for the Player class. * * Copyright 2019 Kamil Rusin */ #include <gtest/gtest.h> #include <fusion_server/ui/player.hpp> using namespace fusion_server; TEST(PlayerTest, SerializeI...
26.991803
81
0.653811
cf6cf656205dfebbe7b6c6f7babd454f63dbfde3
486
cpp
C++
problemsets/Codeforces/C++/A910.cpp
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/C++/A910.cpp
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/C++/A910.cpp
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
/** * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * */ #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); int n, d; cin >> n >> d; int p = 0, l = p+d, next = -1; string a; cin >> a; int ret = 0; for (int i = 1; i < n; i++) { if (a[i]=='...
19.44
49
0.469136
cf74b621634e4acb8c7e54c991f4ec11a5b7900c
14,792
cpp
C++
main.cpp
Sundragon1993/AI-Game-Pratices
7549b23f71c3b2b5145388f0d8d4900bdb307a7a
[ "MIT" ]
null
null
null
main.cpp
Sundragon1993/AI-Game-Pratices
7549b23f71c3b2b5145388f0d8d4900bdb307a7a
[ "MIT" ]
null
null
null
main.cpp
Sundragon1993/AI-Game-Pratices
7549b23f71c3b2b5145388f0d8d4900bdb307a7a
[ "MIT" ]
null
null
null
#pragma warning (disable:4786) #include <windows.h> #include <time.h> #include "constants.h" #include "misc/utils.h" #include "Time/PrecisionTimer.h" #include "Resource.h" #include "misc/windowutils.h" #include "misc/Cgdi.h" #include "debug/DebugConsole.h" #include "Raven_UserOptions.h" #include "Raven_Game.h" #include...
26.700361
114
0.60046
cf77bbe20e26934dc3acc307f4b1caa8f6b7cdfd
391
cpp
C++
cpp/cpp_primer/chapter19/ex_19_03.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
2
2019-12-21T00:53:47.000Z
2020-01-01T10:36:30.000Z
cpp/cpp_primer/chapter19/ex_19_03.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
null
null
null
cpp/cpp_primer/chapter19/ex_19_03.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
null
null
null
// // Created by kaiser on 19-3-16. // #include <iostream> class A { public: virtual ~A() = default; }; class B : public A {}; class C : public B {}; int main() { { A* pa = new C; if (B* pb = dynamic_cast<B*>(pa); !pb) { std::cerr << "error 1\n"; } } { B* pb = new B; if (C* pc = dy...
13.964286
44
0.468031
cf78dd0d497dca8c6985d07ecff1df821163605a
5,508
cpp
C++
src/hdp_py.cpp
jstraub/bnp
11cd28b49e9cf1db96f349181aff57a17672b6a4
[ "MIT" ]
12
2015-01-13T01:18:39.000Z
2021-06-16T20:16:54.000Z
src/hdp_py.cpp
jstraub/bnp
11cd28b49e9cf1db96f349181aff57a17672b6a4
[ "MIT" ]
1
2015-07-12T12:58:14.000Z
2015-07-12T12:58:14.000Z
src/hdp_py.cpp
jstraub/bnp
11cd28b49e9cf1db96f349181aff57a17672b6a4
[ "MIT" ]
2
2017-07-22T05:37:10.000Z
2018-08-26T07:11:34.000Z
/* Copyright (c) 2012, Julian Straub <jstraub@csail.mit.edu> * Licensed under the MIT license. See LICENSE.txt or * http://www.opensource.org/licenses/mit-license.php */ #include <baseMeasure_py.hpp> #include <hdp_gibbs_py.hpp> #include <hdp_var_py.hpp> #include <hdp_var_base_py.hpp> // using the hdp which utilizes...
43.714286
94
0.69971
cf79eafceff5d8d46fae59e5aa56764304bdc8ef
1,307
hpp
C++
code/adobe.poly/adobe/implementation/string_pool.hpp
andyprowl/virtual-concepts
ed3a5690c353b6998abcd3368a9b448f1bb2aa19
[ "Unlicense" ]
59
2015-04-01T12:55:36.000Z
2021-06-22T02:46:20.000Z
adobe/implementation/string_pool.hpp
brycelelbach/asl
df0d271f6c67fbb944039a9455c4eb69ae6df141
[ "MIT" ]
1
2015-06-29T14:51:55.000Z
2015-06-29T16:40:26.000Z
adobe/implementation/string_pool.hpp
brycelelbach/asl
df0d271f6c67fbb944039a9455c4eb69ae6df141
[ "MIT" ]
5
2016-04-19T09:21:11.000Z
2021-12-29T09:48:09.000Z
/* Copyright 2005-2007 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://stlab.adobe.com/licenses.html) */ /*************************************************************************************************/ #ifndef ADOBE_STRING_POOL_H...
26.673469
100
0.337414
cf7af2af2ce72a6cd137dfa8c94cc6880fa00c92
4,290
hpp
C++
include/ipfixprobe/process.hpp
CESNET/NEMEA-probe
c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97
[ "BSD-3-Clause" ]
null
null
null
include/ipfixprobe/process.hpp
CESNET/NEMEA-probe
c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97
[ "BSD-3-Clause" ]
null
null
null
include/ipfixprobe/process.hpp
CESNET/NEMEA-probe
c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97
[ "BSD-3-Clause" ]
null
null
null
/** * \file process.hpp * \brief Generic interface of processing plugin * \author Vaclav Bartos <bartos@cesnet.cz> * \author Jiri Havranek <havranek@cesnet.cz> * \date 2021 */ /* * Copyright (C) 2021 CESNET * * LICENSE TERMS * * Redistribution and use in source and binary forms, with or without * modificati...
30.863309
125
0.701399
cf7afec8d91451c3ae14adbeefc7ed64963657d9
743
hh
C++
src/collider-manager-2d.hh
obs145628/opl
aeb8e70f3dbca8b8564cd829c2327df25e00392e
[ "MIT" ]
null
null
null
src/collider-manager-2d.hh
obs145628/opl
aeb8e70f3dbca8b8564cd829c2327df25e00392e
[ "MIT" ]
null
null
null
src/collider-manager-2d.hh
obs145628/opl
aeb8e70f3dbca8b8564cd829c2327df25e00392e
[ "MIT" ]
null
null
null
/** @file ColliderManager2D ckass definition */ #ifndef COLLIDER_MANAGER_2D_HH_ # define COLLIDER_MANAGER_2D_HH_ # include <cstddef> # include <map> # include "object-2d.hh" # include "collider-2d.hh" namespace opl { class ColliderManager2D { public: static ColliderManager2D* instance (); bool are_col...
14.86
59
0.718708
cf8d4a21fc6e4946e1b77ff96f8b80daa1ee0b32
164
hpp
C++
src/semantic.hpp
amzamora/diamond
c9cad46401815461ebae8db781bbb669c11bd257
[ "MIT" ]
4
2021-02-02T19:55:23.000Z
2021-03-26T22:54:12.000Z
src/semantic.hpp
amzamora/diamond
c9cad46401815461ebae8db781bbb669c11bd257
[ "MIT" ]
28
2021-01-31T01:04:54.000Z
2021-12-11T13:53:49.000Z
src/semantic.hpp
amzamora/diamond
c9cad46401815461ebae8db781bbb669c11bd257
[ "MIT" ]
null
null
null
#ifndef SEMANTIC_HPP #define SEMANTIC_HPP #include "types.hpp" namespace semantic { Result<Ok, Errors> analyze(std::shared_ptr<Ast::Program> program); } #endif
14.909091
67
0.756098
cf8e46de8aa704945cb4baf7c5036b98a61190e3
5,277
cxx
C++
main/sw/source/ui/config/caption.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/sw/source/ui/config/caption.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/sw/source/ui/config/caption.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
29.480447
84
0.565094
cf90ef7c36bf959177421f9dd048e4f5d2ee1611
1,637
cpp
C++
src/GUI/Selection.cpp
szebest/Basic-SFML-Application-Framework
e6b979283a1aba87ea5eefb1785d6f9bf4485d4a
[ "MIT" ]
null
null
null
src/GUI/Selection.cpp
szebest/Basic-SFML-Application-Framework
e6b979283a1aba87ea5eefb1785d6f9bf4485d4a
[ "MIT" ]
null
null
null
src/GUI/Selection.cpp
szebest/Basic-SFML-Application-Framework
e6b979283a1aba87ea5eefb1785d6f9bf4485d4a
[ "MIT" ]
null
null
null
#include "Selection.h" Selection::Selection(sf::Vector2f pos) : m_selected(false) { m_outerShape.setRadius(12); m_innerShape.setRadius(10); m_innerShape.setFillColor(sf::Color::Blue); setPosition(pos); } void Selection::handleEvents(sf::Event e, const sf::RenderWindow& window, sf::Vector2f displacement) { switc...
22.736111
100
0.744655
cf984f3074382b3d9970476ba611f764046adf3a
8,296
cpp
C++
Source/Motor2D/j1Player.cpp
Needlesslord/PaintWars_by_BrainDeadStudios
578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf
[ "MIT" ]
2
2020-03-06T11:32:40.000Z
2020-03-20T12:17:30.000Z
Source/Motor2D/j1Player.cpp
Needlesslord/Heathen_Games
578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf
[ "MIT" ]
2
2020-03-03T09:56:57.000Z
2020-05-02T15:50:45.000Z
Source/Motor2D/j1Player.cpp
Needlesslord/Heathen_Games
578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf
[ "MIT" ]
1
2020-03-17T18:50:53.000Z
2020-03-17T18:50:53.000Z
#include "p2Defs.h" #include "j1App.h" #include "p2Log.h" #include "j1Textures.h" #include "j1Input.h" #include "j1Audio.h" #include "j1Render.h" #include "j1Window.h" #include "j1Player.h" #include "j1SceneManager.h" #include "j1EntityManager.h" #include "j1Window.h" #include "j1UI_manager.h" #include "Scene.h" #inclu...
22.241287
187
0.639344
cf98dfda2cfd8ff4aba8b083cefe8ea8af931e8d
2,846
hpp
C++
third-party/casadi/casadi/core/global_options.hpp
dbdxnuliba/mit-biomimetics_Cheetah
f3b0c0f6a3835d33b7f2f345f00640b3fc256388
[ "MIT" ]
8
2020-02-18T09:07:48.000Z
2021-12-25T05:40:02.000Z
flip-optimization-master/casadi/include/casadi/core/global_options.hpp
WatsonZhouAnda/Cheetah-Software
05e416fb26f968300826f0deb0953be9afb22bfe
[ "MIT" ]
null
null
null
flip-optimization-master/casadi/include/casadi/core/global_options.hpp
WatsonZhouAnda/Cheetah-Software
05e416fb26f968300826f0deb0953be9afb22bfe
[ "MIT" ]
13
2019-08-25T12:32:06.000Z
2022-03-31T02:38:12.000Z
/* * This file is part of CasADi. * * CasADi -- A symbolic framework for dynamic optimization. * Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl, * K.U. Leuven. All rights reserved. * Copyright (C) 2011-2014 Greg Horn * * CasADi is free software; you ...
31.977528
92
0.696416
cf9d37798720db9786c9cc62bd9736ada53f15da
3,671
cpp
C++
modules/tracktion_engine/plugins/internal/tracktion_VCA.cpp
jbloit/tracktion_engine
b3fa7d6a3a404f64ae419abdf9c801d672cffb16
[ "MIT", "Unlicense" ]
null
null
null
modules/tracktion_engine/plugins/internal/tracktion_VCA.cpp
jbloit/tracktion_engine
b3fa7d6a3a404f64ae419abdf9c801d672cffb16
[ "MIT", "Unlicense" ]
null
null
null
modules/tracktion_engine/plugins/internal/tracktion_VCA.cpp
jbloit/tracktion_engine
b3fa7d6a3a404f64ae419abdf9c801d672cffb16
[ "MIT", "Unlicense" ]
null
null
null
/* ,--. ,--. ,--. ,--. ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation `---' `--' `...
27.192593
114
0.616998
cf9e02d74d153181e3e897ebe551f78dd73fe3ea
2,278
cpp
C++
FirstSemester(CS Project)/Plane.cpp
garretfox/C
9c6baeffc26e1131b873c1d7aaa99b0145635526
[ "MIT" ]
null
null
null
FirstSemester(CS Project)/Plane.cpp
garretfox/C
9c6baeffc26e1131b873c1d7aaa99b0145635526
[ "MIT" ]
null
null
null
FirstSemester(CS Project)/Plane.cpp
garretfox/C
9c6baeffc26e1131b873c1d7aaa99b0145635526
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Plane.h" #include <iostream> using namespace std; Plane::Plane() { isSet = 0; } Plane::Plane(char *c) { PlaneName = c; NumberOfParties = 0; for (int i = 0; i < 40; i++) { PartyArray[i].SetPartyName("NULL"); PartyArray[i].SetPartySize(0); }; isSet = 0; } void Plane::SetPartyAt(...
18.672131
87
0.644425
cf9fad672f46c29a27693a166044d7a5eb688cdf
6,161
cc
C++
protocol/zigbee/app/framework/scenarios/z3/Z3SwitchWithVoice/keyword_detection.cc
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
82
2016-06-29T17:24:43.000Z
2021-04-16T06:49:17.000Z
protocol/zigbee/app/framework/scenarios/z3/Z3SwitchWithVoice/keyword_detection.cc
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
protocol/zigbee/app/framework/scenarios/z3/Z3SwitchWithVoice/keyword_detection.cc
PascalGuenther/gecko_sdk
2e82050dc8823c9fe0e8908c1b2666fb83056230
[ "Zlib" ]
56
2016-08-02T10:50:50.000Z
2021-07-19T08:57:34.000Z
/***************************************************************************//** * @file keywork_detection.cc * @brief Top level application functions ******************************************************************************* * # License * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b> ******...
39.748387
119
0.549586
cfa01b83595624a414618fe97995471a1d0b71be
583
cpp
C++
AppCUI/src/Controls/UserControl.cpp
rzaharia/AppCUI
9aa37b154e04d0aa3e69a75798a698f591b0c8ca
[ "MIT" ]
null
null
null
AppCUI/src/Controls/UserControl.cpp
rzaharia/AppCUI
9aa37b154e04d0aa3e69a75798a698f591b0c8ca
[ "MIT" ]
null
null
null
AppCUI/src/Controls/UserControl.cpp
rzaharia/AppCUI
9aa37b154e04d0aa3e69a75798a698f591b0c8ca
[ "MIT" ]
null
null
null
#include "ControlContext.hpp" using namespace AppCUI::Controls; bool UserControl::Create(Control* parent, const AppCUI::Utils::ConstString& caption, const std::string_view& layout) { CONTROL_INIT_CONTEXT(ControlContext); CHECK(Init(parent, caption, layout, false), false, "Failed to create user control !"); ...
36.4375
116
0.744425
cfa15397b6c7d61a6ac8537e4b9c2cdecbd4826b
1,360
hh
C++
src/ETransform.hh
jjzhang166/CxxLog4j
3c674f8a7f57deee228c5de6869c9f5852596930
[ "Apache-2.0" ]
5
2016-08-25T14:26:45.000Z
2018-11-07T08:30:38.000Z
src/ETransform.hh
jjzhang166/CxxLog4j
3c674f8a7f57deee228c5de6869c9f5852596930
[ "Apache-2.0" ]
1
2018-07-06T02:37:10.000Z
2018-07-11T05:47:47.000Z
src/ETransform.hh
jjzhang166/CxxLog4j
3c674f8a7f57deee228c5de6869c9f5852596930
[ "Apache-2.0" ]
4
2017-06-09T01:22:43.000Z
2019-02-19T07:19:59.000Z
/* * ETransform.hh * * Created on: 2015-8-11 * Author: cxxjava@163.com */ #ifndef ETRANSFORM_HH_ #define ETRANSFORM_HH_ #include "Efc.hh" #include "../inc/ELogger.hh" namespace efc { namespace log { /** * Utility class for transforming strings. */ class ETransform { public: /** * This method takes ...
24.727273
87
0.680147
cfa1a15555f29bc71b3ec1198ffc2ffa006c53f3
254
cpp
C++
abc/ABC161/cpp/a.cpp
yokotani92/atcoder
febaef2d13c40093a2a284c87a949cd46113801d
[ "MIT" ]
null
null
null
abc/ABC161/cpp/a.cpp
yokotani92/atcoder
febaef2d13c40093a2a284c87a949cd46113801d
[ "MIT" ]
null
null
null
abc/ABC161/cpp/a.cpp
yokotani92/atcoder
febaef2d13c40093a2a284c87a949cd46113801d
[ "MIT" ]
null
null
null
#include <algorithm> #include <iostream> #include <vector> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; typedef long long ll; const int MOD = 1E9 + 9; const int INF = 1 << 29; int main() { int A; cin >> A; cout << A; }
18.142857
52
0.598425
cfa44f9a16a58ec7ed3b6ee8a2744e12ce2704d7
1,985
cpp
C++
CSL/CSL-r/src/wmark/scanner_actions/tk_action.cpp
ZJU-ZSJ/CppTSL
6ce7673d5f7f8de8769c6377090b845492e63aa9
[ "BSD-2-Clause" ]
null
null
null
CSL/CSL-r/src/wmark/scanner_actions/tk_action.cpp
ZJU-ZSJ/CppTSL
6ce7673d5f7f8de8769c6377090b845492e63aa9
[ "BSD-2-Clause" ]
null
null
null
CSL/CSL-r/src/wmark/scanner_actions/tk_action.cpp
ZJU-ZSJ/CppTSL
6ce7673d5f7f8de8769c6377090b845492e63aa9
[ "BSD-2-Clause" ]
null
null
null
/* ** Xin YUAN, 2019, BSD (2) */ //////////////////////////////////////////////////////////////////////////////// #include "precomp.h" #include "../WmarkScanner.h" #include "../base/WmarkDef.h" //////////////////////////////////////////////////////////////////////////////// ////////////////////////...
22.303371
81
0.38136
cfa5723015d33450fb4eb00278ee8b7638607106
1,079
cpp
C++
C++/Data_Structures/Path_Sum_II.cpp
IUC4801/HactoberFest21
ad52dee669deba54630584435b77a6ab07dc67b2
[ "Unlicense" ]
1
2021-10-03T08:02:58.000Z
2021-10-03T08:02:58.000Z
C++/Data_Structures/Path_Sum_II.cpp
IUC4801/HactoberFest21
ad52dee669deba54630584435b77a6ab07dc67b2
[ "Unlicense" ]
1
2021-10-06T04:41:55.000Z
2021-10-06T04:41:55.000Z
C++/Data_Structures/Path_Sum_II.cpp
IUC4801/HactoberFest21
ad52dee669deba54630584435b77a6ab07dc67b2
[ "Unlicense" ]
1
2021-10-08T12:31:04.000Z
2021-10-08T12:31:04.000Z
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l...
27.666667
93
0.510658
cfa6269395b8e032be571d81ad55df8fe1d840f4
1,902
cpp
C++
test/algorithm/test_scalar_product.cpp
jan-moeller/lina
9acaac27d7efb3e8b3c4d1ae2ad9425e79f233c8
[ "MIT" ]
null
null
null
test/algorithm/test_scalar_product.cpp
jan-moeller/lina
9acaac27d7efb3e8b3c4d1ae2ad9425e79f233c8
[ "MIT" ]
null
null
null
test/algorithm/test_scalar_product.cpp
jan-moeller/lina
9acaac27d7efb3e8b3c4d1ae2ad9425e79f233c8
[ "MIT" ]
null
null
null
// // MIT License // // Copyright (c) 2021 Jan Möller // // 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, modif...
35.886792
81
0.679811
cfa71a4d6fc15a687b05d19ccf96c7684a70116f
2,593
cpp
C++
src/database/core/SoXipMprActiveElement.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
2
2020-05-21T07:06:07.000Z
2021-06-28T02:14:34.000Z
src/database/core/SoXipMprActiveElement.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
null
null
null
src/database/core/SoXipMprActiveElement.cpp
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
6
2016-03-21T19:53:18.000Z
2021-06-08T18:06:03.000Z
/* Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation 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....
21.429752
100
0.712302
cfa7ce00d119a08def66b1f055401db4c1bf0e76
19,869
cc
C++
chrome/browser/ui/views/tabs/overflow_view_unittest.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
chrome/browser/ui/views/tabs/overflow_view_unittest.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
chrome/browser/ui/views/tabs/overflow_view_unittest.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/tabs/overflow_view.h" #include <algorithm> #include <memory> #include <utility> #include "base/bind.h" #include "base/...
37.773764
80
0.726156
bbb9f9305db3702a4b26f8b6b4ba73adab3845da
424
cpp
C++
src/Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.cpp
sfulham/GameProject-1
83c065ac7abc4c0a098dfcb0d1cc13f9d8bf7a03
[ "MIT" ]
null
null
null
src/Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.cpp
sfulham/GameProject-1
83c065ac7abc4c0a098dfcb0d1cc13f9d8bf7a03
[ "MIT" ]
null
null
null
src/Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.cpp
sfulham/GameProject-1
83c065ac7abc4c0a098dfcb0d1cc13f9d8bf7a03
[ "MIT" ]
null
null
null
// // Created by MarcasRealAccount on 31. Oct. 2020 // #include "Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.h" #include "Engine/Renderer/Shader/Shader.h" namespace gp1::renderer::apis::vulkan::shader { VulkanMaterialData::VulkanMaterialData(renderer::shader::Material* material) : VulkanRendererData(m...
26.5
77
0.754717
bbbaf53d3973f2789d74f363bb43a4a2d77364d0
3,058
cc
C++
finter/finter_writer_bzip2.cc
cpalmer718/finter
93db360d5d73cb14e15974a93627bbf02e66b7a9
[ "MIT" ]
null
null
null
finter/finter_writer_bzip2.cc
cpalmer718/finter
93db360d5d73cb14e15974a93627bbf02e66b7a9
[ "MIT" ]
null
null
null
finter/finter_writer_bzip2.cc
cpalmer718/finter
93db360d5d73cb14e15974a93627bbf02e66b7a9
[ "MIT" ]
null
null
null
/*! \file finter_writer_bzip2.cc \brief method implementations for finter bzip2 writer \copyright Released under the MIT License. Copyright 2020 Cameron Palmer */ #include "finter/finter_writer_bzip2.h" void finter::finter_writer_bzip2::open(const char *filename) { if (_raw_output) throw std::domain_er...
30.277228
79
0.640615
bbbc772b8773e5cae180e4580e552b77666c8a72
3,599
cpp
C++
src/system/libroot/posix/unistd/lockf.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
1,338
2015-01-03T20:06:56.000Z
2022-03-26T13:49:54.000Z
src/system/libroot/posix/unistd/lockf.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
15
2015-01-17T22:19:32.000Z
2021-12-20T12:35:00.000Z
src/system/libroot/posix/unistd/lockf.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
350
2015-01-08T14:15:27.000Z
2022-03-21T18:14:35.000Z
/* * Copyright 2007, Vasilis Kaoutsis, kaoutsis@sch.gr. * Distributed under the terms of the MIT License. */ #include <errno.h> #include <fcntl.h> #include <unistd.h> #include <errno_private.h> int lockf(int fileDescriptor, int function, off_t size) { struct flock fileLock; fileLock.l_start = 0; fileLock.l_le...
40.897727
77
0.701028
bbbef5de65bc8b029ed136f8309ca4db2a319ecb
1,879
cpp
C++
src/plugins/zalil/servicesmanager.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
120
2015-01-22T14:10:39.000Z
2021-11-25T12:57:16.000Z
src/plugins/zalil/servicesmanager.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
8
2015-02-07T19:38:19.000Z
2017-11-30T20:18:28.000Z
src/plugins/zalil/servicesmanager.cpp
Maledictus/leechcraft
79ec64824de11780b8e8bdfd5d8a2f3514158b12
[ "BSL-1.0" ]
33
2015-02-07T16:59:55.000Z
2021-10-12T00:36:40.000Z
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2014 Georg Rudoy * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0....
25.053333
89
0.619478
bbc18b7e6cbf92a4660726cc386e7834f0fb3e2d
1,773
cpp
C++
code/mandelbrot_tty/main.cpp
battibass/pf2021
7d370d26a53588c3168b57614e34e0dda70f5bbf
[ "CC-BY-4.0" ]
7
2021-10-20T08:43:46.000Z
2022-03-26T14:18:19.000Z
code/mandelbrot_tty/main.cpp
battibass/pf2021
7d370d26a53588c3168b57614e34e0dda70f5bbf
[ "CC-BY-4.0" ]
null
null
null
code/mandelbrot_tty/main.cpp
battibass/pf2021
7d370d26a53588c3168b57614e34e0dda70f5bbf
[ "CC-BY-4.0" ]
10
2021-10-01T13:49:56.000Z
2022-03-29T10:28:06.000Z
#include <iostream> #include <string> class Complex { double r_; double i_; public: Complex(double r = 0., double i = 0.) : r_{r}, i_{i} { } double real() const { return r_; } double imag() const { return i_; } Complex& operator+=(Complex const& o) { r_ += o.r_; i_ += o.i_; ...
17.909091
79
0.585448
bbc1d2621c8dd95ab7076682e99978b9f8e22d8a
8,626
cpp
C++
Tests/DiligentToolsTest/src/RenderStateNotationParser/PipelineStateParserTest.cpp
SebMenozzi/DiligentTools
cf2d8b67df590a93862749051c65310535a2f3cd
[ "Apache-2.0" ]
null
null
null
Tests/DiligentToolsTest/src/RenderStateNotationParser/PipelineStateParserTest.cpp
SebMenozzi/DiligentTools
cf2d8b67df590a93862749051c65310535a2f3cd
[ "Apache-2.0" ]
null
null
null
Tests/DiligentToolsTest/src/RenderStateNotationParser/PipelineStateParserTest.cpp
SebMenozzi/DiligentTools
cf2d8b67df590a93862749051c65310535a2f3cd
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019-2022 Diligent Graphics 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...
41.07619
161
0.761651
bbc21fea637e1879270776e4399ec10b782f2ba7
3,861
hpp
C++
source/Irrlicht/rtc/impl/threadpool.hpp
MagicAtom/irrlicht-ce
b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d
[ "IJG" ]
null
null
null
source/Irrlicht/rtc/impl/threadpool.hpp
MagicAtom/irrlicht-ce
b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d
[ "IJG" ]
null
null
null
source/Irrlicht/rtc/impl/threadpool.hpp
MagicAtom/irrlicht-ce
b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d
[ "IJG" ]
null
null
null
/** * Copyright (c) 2020 Paul-Louis Ageneau * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This ...
30.642857
105
0.690236