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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8ca9222faae1875beb79b7f1a132d9014bb917b | 648 | cpp | C++ | C++/TUIGomoku/applib/SingletonGomoku.cpp | rolanrbd/myLibrary | cea8ea502d0d6140c183ea60a35b691e4c629941 | [
"MIT"
] | null | null | null | C++/TUIGomoku/applib/SingletonGomoku.cpp | rolanrbd/myLibrary | cea8ea502d0d6140c183ea60a35b691e4c629941 | [
"MIT"
] | null | null | null | C++/TUIGomoku/applib/SingletonGomoku.cpp | rolanrbd/myLibrary | cea8ea502d0d6140c183ea60a35b691e4c629941 | [
"MIT"
] | null | null | null | #include <SingletonGomoku.h>
#include <cassert>
Console::SingletonGomoku* Console::SingletonGomoku::thisSingleton = nullptr;
Console::AdapterConsole* Console::SingletonGomoku::window = nullptr;
Console::SingletonGomoku::SingletonGomoku()
{
assert(!thisSingleton && "Error: Already initialized!");
thisSingleton = this... | 22.344828 | 76 | 0.75463 | rolanrbd |
d8d3844b52adea37aa6c45320e5a8e5665dec6d7 | 1,744 | cpp | C++ | answers/2.Add Two Numbers.medium/solution.cpp | morrow1nd/LeetcodeAnswers | 5f5d4a945910c82a3593de65e1dcf819ec5f84d7 | [
"MIT"
] | null | null | null | answers/2.Add Two Numbers.medium/solution.cpp | morrow1nd/LeetcodeAnswers | 5f5d4a945910c82a3593de65e1dcf819ec5f84d7 | [
"MIT"
] | null | null | null | answers/2.Add Two Numbers.medium/solution.cpp | morrow1nd/LeetcodeAnswers | 5f5d4a945910c82a3593de65e1dcf819ec5f84d7 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) {
ListNode* n1 = l1;
ListNode* n2 = l2;
L... | 27.68254 | 63 | 0.330849 | morrow1nd |
d8d427f3ecaa8aad79bda5bec5b2850ded8648ba | 6,907 | cpp | C++ | VC2010Samples/MFC/general/mdi/bounce.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2010Samples/MFC/general/mdi/bounce.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2010Samples/MFC/general/mdi/bounce.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // bounce.cpp : Defines the class behaviors for the Bounce child window.
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and relate... | 25.67658 | 77 | 0.69625 | alonmm |
d8d75bdee7f312d51287e756813f0bdb6aea5545 | 1,529 | hpp | C++ | src/server/websocket_connection.hpp | hemantranvir/websocket_server | 98836829550de7e9fc57f410e7d492d5dd661a6d | [
"MIT"
] | 2 | 2020-11-30T12:20:28.000Z | 2021-05-04T10:58:16.000Z | src/server/websocket_connection.hpp | pointer/websocket_server | 98836829550de7e9fc57f410e7d492d5dd661a6d | [
"MIT"
] | null | null | null | src/server/websocket_connection.hpp | pointer/websocket_server | 98836829550de7e9fc57f410e7d492d5dd661a6d | [
"MIT"
] | 3 | 2020-10-14T07:39:20.000Z | 2021-05-20T07:07:36.000Z | #ifndef _WEBSOCKET_REQUEST_HANDLER_HPP__
#define _WEBSOCKET_REQUEST_HANDLER_HPP__
#include <iostream>
#include <string>
#include <stdexcept>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <functional>
#include "Poco/Net/HTTPServer.h"
#include "Poco/Net/HTTPRequestHandler.h"
#include "Poco/Ne... | 29.980392 | 103 | 0.759974 | hemantranvir |
d8daa8e13017e2de1b5818e27923511004fd0dbe | 523 | cpp | C++ | src/NullRenderer.cpp | hasahmed/shape_game_cpp | 1f14ba1d3f6dc31723de827c21714bdc7bc3acaa | [
"MIT"
] | null | null | null | src/NullRenderer.cpp | hasahmed/shape_game_cpp | 1f14ba1d3f6dc31723de827c21714bdc7bc3acaa | [
"MIT"
] | null | null | null | src/NullRenderer.cpp | hasahmed/shape_game_cpp | 1f14ba1d3f6dc31723de827c21714bdc7bc3acaa | [
"MIT"
] | null | null | null | #include "shapegame.hpp"
#define ITERATIONS 1000
using namespace shapegame;
NullRenderer::NullRenderer(Scene &scene) : scene(scene) {}
void NullRenderer::setClearColor(Color& color){}
void NullRenderer::run() {
for (int i = 0; i < ITERATIONS; i++) {
this->scene.updateChildren();
this->scene.drawChildren();... | 29.055556 | 91 | 0.701721 | hasahmed |
d8df1cee73cfa3efa01c18e99706e75acf4bb0b4 | 95 | cpp | C++ | examples/tinygltf/boo.cpp | sanblch/hunter | a21edf8a43f567d2ae60ea1acdaab7d4facf3db7 | [
"BSD-2-Clause"
] | 440 | 2019-08-25T13:07:04.000Z | 2022-03-30T21:57:15.000Z | examples/tinygltf/boo.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 401 | 2019-08-29T08:56:55.000Z | 2022-03-30T12:39:34.000Z | examples/tinygltf/boo.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 162 | 2019-09-02T13:31:36.000Z | 2022-03-30T09:16:54.000Z | #define TINYGLTF_NO_INCLUDE_JSON
#include <tinygltf/tiny_gltf.h>
int main() {
return 0;
}
| 11.875 | 32 | 0.726316 | sanblch |
d8e6662b22591b0b9365c491948df45b33597ea9 | 1,460 | cpp | C++ | source/procedural_graph/reader/node_link_node.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 12 | 2019-04-16T17:35:53.000Z | 2020-04-12T14:37:27.000Z | source/procedural_graph/reader/node_link_node.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 47 | 2019-05-27T15:24:43.000Z | 2020-04-27T17:54:54.000Z | source/procedural_graph/reader/node_link_node.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | null | null | null | #include "node_link_node.h"
#include "ast_node_visitor.h"
namespace pagoda
{
NodeLinkNode::NodeLinkNode() : GraphStatementNode() {}
NodeLinkNode::NodeLinkNode(const NodeLinkContainer_t &linkedNodes) : m_linkedNodes(linkedNodes) {}
NodeLinkNode::NodeLinkNode(const AstNode::Offset_t &startOffset, const AstNode::Offse... | 35.609756 | 106 | 0.785616 | diegoarjz |
d8ec3011edeca6fb6039f6a70c1a1ef648b14cb4 | 1,105 | cpp | C++ | PTA-B/refer/1035-refer.cpp | chiangyung/PTA | c8e6bcbc9e552dad5ab71679d861a235b8ad0730 | [
"MIT"
] | 2 | 2018-08-23T06:58:56.000Z | 2018-09-04T02:07:44.000Z | PTA-B/refer/1035-refer.cpp | chiangyung/PTA | c8e6bcbc9e552dad5ab71679d861a235b8ad0730 | [
"MIT"
] | null | null | null | PTA-B/refer/1035-refer.cpp | chiangyung/PTA | c8e6bcbc9e552dad5ab71679d861a235b8ad0730 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int cmp(int a, int b) {
return a < b;
}
int main() {
int n;
cin >> n;
int *a = new int [n];
int *b = new int [n];
for (int i = 0; i < n; i++) {
cin >> a[i];
}
for (int i = 0; i < n; i++) {
cin >> b[i];
}... | 20.462963 | 54 | 0.322172 | chiangyung |
d8eca284273bdfc4c4443884db45257fa47b2707 | 1,031 | hpp | C++ | ext/src/java/text/AttributedCharacterIterator.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/text/AttributedCharacterIterator.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/text/AttributedCharacterIterator.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/text/fwd-POI.hpp>
#include <java/util/fwd-POI.hpp>
#include <java/text/CharacterIterator.hpp>
struct java::text::AttributedCharacterIte... | 36.821429 | 101 | 0.734239 | pebble2015 |
d8f152269aea56dcc7ab259150141b682b2c7bb8 | 126 | cpp | C++ | src/main.cpp | TheLifes08/game-of-life | 818a257ee78b90e25824d1fa4d9c8e540b3f1ae5 | [
"MIT"
] | null | null | null | src/main.cpp | TheLifes08/game-of-life | 818a257ee78b90e25824d1fa4d9c8e540b3f1ae5 | [
"MIT"
] | null | null | null | src/main.cpp | TheLifes08/game-of-life | 818a257ee78b90e25824d1fa4d9c8e540b3f1ae5 | [
"MIT"
] | null | null | null | #include "game/Engine.h"
int main(int argc, char** argv) {
Game::Engine engine;
return engine.execute(argc, argv);
}
| 18 | 38 | 0.65873 | TheLifes08 |
d8f417476769b1187a2c61ef71814479889146f1 | 17,143 | cpp | C++ | GameDrawing.cpp | Apflmus/Rust-Cheat | 7b4a1212cc1b0f46ff8cf510e83ca358b58aeb72 | [
"Apache-2.0"
] | 36 | 2017-10-31T21:52:47.000Z | 2020-01-19T02:32:27.000Z | GameDrawing.cpp | J0hnDark/Rust-Cheat | 7b4a1212cc1b0f46ff8cf510e83ca358b58aeb72 | [
"Apache-2.0"
] | 2 | 2018-01-03T17:22:53.000Z | 2019-09-25T19:25:29.000Z | GameDrawing.cpp | J0hnDark/Rust-Cheat | 7b4a1212cc1b0f46ff8cf510e83ca358b58aeb72 | [
"Apache-2.0"
] | 19 | 2020-02-22T02:25:22.000Z | 2022-03-31T15:08:50.000Z | #include "DrawingUtils.h"
#include <Windows.h>
#include "Utils.h"
#include "Renderer.h"
#include <iostream>
#include <string>
#include <clocale>
#include <cstdlib>
#include "XorString.h"
extern Globals::Values values;
extern Entity entity[500];
extern ActiveObject helicopter;
char display[50];
char we... | 44.643229 | 221 | 0.665519 | Apflmus |
d8f8d64c00102c6ba6f635918c995724b42e78b3 | 522 | cpp | C++ | C++ Intro/Genericke Klase/Primer2.cpp | owlCoder/C_Plus_Plus_Projects | d2c70411c9322c89a8d6158a144e161abce65735 | [
"MIT"
] | null | null | null | C++ Intro/Genericke Klase/Primer2.cpp | owlCoder/C_Plus_Plus_Projects | d2c70411c9322c89a8d6158a144e161abce65735 | [
"MIT"
] | null | null | null | C++ Intro/Genericke Klase/Primer2.cpp | owlCoder/C_Plus_Plus_Projects | d2c70411c9322c89a8d6158a144e161abce65735 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
template <typename T>
inline T const &Max (T const &a, T const &b)
{
return (a < b) ? b : a;
}
int main(void)
{
cout << endl << "Genericke funkcije" << endl << endl;
int a = 15, b = 25;
cout << "Max(a, b): " << Max(a, b) << e... | 19.333333 | 58 | 0.480843 | owlCoder |
d8fbd9d943c014840d4331f44709dc7668226441 | 591 | hpp | C++ | include/geometry/matrix_4d.hpp | jamjarlabs/JamJarNative | ed8aea9cbd3f1eed3eb49c7da0df50eea87e880e | [
"MIT"
] | 1 | 2022-03-28T02:26:23.000Z | 2022-03-28T02:26:23.000Z | include/geometry/matrix_4d.hpp | jamjarlabs/JamJarNative | ed8aea9cbd3f1eed3eb49c7da0df50eea87e880e | [
"MIT"
] | 103 | 2020-02-24T23:52:58.000Z | 2021-04-18T21:00:50.000Z | include/geometry/matrix_4d.hpp | jamjarlabs/JamJarNative | ed8aea9cbd3f1eed3eb49c7da0df50eea87e880e | [
"MIT"
] | 1 | 2021-05-20T22:29:44.000Z | 2021-05-20T22:29:44.000Z | #ifndef GEOMETRY_MATRIX_4D_HPP
#define GEOMETRY_MATRIX_4D_HPP
#include "geometry/vector_2d.hpp"
#include <vector>
namespace JamJar {
class Matrix4D {
public:
std::vector<float> data{};
Matrix4D();
explicit Matrix4D(const std::vector<float> &data);
Matrix4D *Translate(const Vector2D &translation);
... | 26.863636 | 99 | 0.72758 | jamjarlabs |
d8ff317fe06116df8986600c4a5aa4fc3ad95096 | 6,808 | cpp | C++ | CPP Source Files/CannonGame.cpp | sosavle/CPP-Graphical-Programming | 680cc28eafbbbfabe5f45c687dc3a9814ce376e3 | [
"Apache-2.0"
] | 1 | 2019-11-09T22:30:30.000Z | 2019-11-09T22:30:30.000Z | CPP Source Files/CannonGame.cpp | sosavle/CPP-Graphical-Programming | 680cc28eafbbbfabe5f45c687dc3a9814ce376e3 | [
"Apache-2.0"
] | null | null | null | CPP Source Files/CannonGame.cpp | sosavle/CPP-Graphical-Programming | 680cc28eafbbbfabe5f45c687dc3a9814ce376e3 | [
"Apache-2.0"
] | null | null | null | #include "library.h"
// FUNCTIONS USED BY THE WHOLE PROGRAM
double calculate_height(const double velocity, const double time){
return (velocity*time - 16.087*time*time + 0.5);
}
double calculate_time(const double velocity){
return 2*velocity/32.174;
}
double calculate_distance(const double velocity, const double ... | 29.991189 | 166 | 0.731933 | sosavle |
2b0009ec003ff56db518b14310f69223b1111f5d | 804 | cpp | C++ | NUGET/UsbApiUtility/UsbApiUtility/AssemblyInfo.cpp | narethi/Arduino-Projects | 9c73524dfc8103b54648267a50209cbbb15c7c0d | [
"MIT"
] | null | null | null | NUGET/UsbApiUtility/UsbApiUtility/AssemblyInfo.cpp | narethi/Arduino-Projects | 9c73524dfc8103b54648267a50209cbbb15c7c0d | [
"MIT"
] | 1 | 2022-01-02T21:36:16.000Z | 2022-01-02T21:36:16.000Z | NUGET/UsbApiUtility/UsbApiUtility/AssemblyInfo.cpp | narethi/Arduino-Projects | 9c73524dfc8103b54648267a50209cbbb15c7c0d | [
"MIT"
] | null | null | null | #include "pch.h"
using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;
using namespace System::Runtime::InteropServices;
using namespace System::Security::Permissions;
[assembly:AssemblyTitleAttribute(L"UsbApiUtility")];
[assembly:AssemblyDescriptionAttribute(L... | 38.285714 | 149 | 0.797264 | narethi |
2b008cf38f306be37db0af7aca59fc9552fb2214 | 355 | cpp | C++ | codeforces/problems/cf1189A.cpp | songhn233/ACM_Steps | 6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | codeforces/problems/cf1189A.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | codeforces/problems/cf1189A.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<algorithm>
#include<cstring>
#include<iostream>
#include<cstdio>
using namespace std;
int n;
string s;
int main()
{
cin>>n;
cin>>s;
int t=0;
for(int i=0;i<n;i++)
{
if(s[i]=='1') t++;
}
if(t!=n-t)
{
puts("1");
cout<<s<<endl;
}
else
{
puts("2");
cout<<s[0]<<" ";
for(int i=1;i<n;i++) cout<... | 11.451613 | 34 | 0.521127 | songhn233 |
2b05772e212ffad832f07ccaaea8eb1d253b9038 | 344 | cpp | C++ | Mathematical/EfficientWayOfPrimeFactors.cpp | SagarMedtiya/DSA-in-c- | eae528d97bdbbb2d3e5ecd3e91be346503d0c8af | [
"MIT"
] | 1 | 2021-07-16T14:38:51.000Z | 2021-07-16T14:38:51.000Z | Mathematical/EfficientWayOfPrimeFactors.cpp | SagarMedtiya/DSA-in-c- | eae528d97bdbbb2d3e5ecd3e91be346503d0c8af | [
"MIT"
] | null | null | null | Mathematical/EfficientWayOfPrimeFactors.cpp | SagarMedtiya/DSA-in-c- | eae528d97bdbbb2d3e5ecd3e91be346503d0c8af | [
"MIT"
] | 1 | 2021-07-16T14:34:59.000Z | 2021-07-16T14:34:59.000Z | #include<bits/stdc++.h>
using namespace std;
int primeFactor(int n){
if(n<=1){
cout<<"Not a prime nor composite";
}
for(int i=2; i*i<=n;i++){
while(n%i == 0){
cout<<i<<endl;
n=n/i;
}
}
if(n>1){
cout<<n; // to print the last prime number
}
return 0;
}
int main(){
int n;
cin>>n;
int b = prime... | 12.285714 | 44 | 0.555233 | SagarMedtiya |
2b073ba292ef6f302e22e5b06d0febddb6a0f095 | 4,177 | cpp | C++ | src/Harpoon.cpp | john-gress/QueueNado | 7bcd499f2a3b69c65c01203fad5922e545266fcd | [
"MIT"
] | 7 | 2018-03-31T04:40:50.000Z | 2021-03-02T22:39:03.000Z | src/Harpoon.cpp | LogRhythm/QueueNado | 7bcd499f2a3b69c65c01203fad5922e545266fcd | [
"MIT"
] | 13 | 2016-03-01T18:03:25.000Z | 2018-02-09T22:01:24.000Z | src/Harpoon.cpp | john-gress/QueueNado | 7bcd499f2a3b69c65c01203fad5922e545266fcd | [
"MIT"
] | 4 | 2018-06-18T16:58:16.000Z | 2020-10-16T18:27:32.000Z | /*
* File: Harpoon.h
* Author: Ryan Kophs
*
* Created on December, 2014
*/
#include <czmq.h>
#include <g3log/g3log.hpp>
#include <algorithm>
#include "Harpoon.h"
#include <chrono>
/// Creates the client that is to connect to the server/Kraken
Harpoon::Harpoon():
mQueueLength(1), //Number of allowed message... | 28.414966 | 98 | 0.673689 | john-gress |
2b0d01c37d6efe2adb776f4e6b945236ee9e1e5a | 5,581 | hpp | C++ | src/impl/deserialize_response.hpp | delftrobotics/modbus | 58e90f71b1744c67b61c07005f11f03784a25f6e | [
"BSD-3-Clause"
] | 6 | 2018-11-08T13:47:02.000Z | 2021-06-06T07:19:14.000Z | src/impl/deserialize_response.hpp | fizyr/modbus | 58e90f71b1744c67b61c07005f11f03784a25f6e | [
"BSD-3-Clause"
] | null | null | null | src/impl/deserialize_response.hpp | fizyr/modbus | 58e90f71b1744c67b61c07005f11f03784a25f6e | [
"BSD-3-Clause"
] | 4 | 2017-12-01T02:01:08.000Z | 2021-05-14T16:00:25.000Z | // Copyright (c) 2017, Fizyr (https://fizyr.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 conditions and th... | 44.648 | 135 | 0.769038 | delftrobotics |
2b13ecd17472220671181dc647e67e525f895c1d | 2,693 | cpp | C++ | sandbox/ardupilot/libraries/AP_Math/AP_Math.cpp | prabhu-dev/LineDetectorLengthFix | 2450bae17eb8bfbf0e3b942d765c5c4954715bde | [
"MIT"
] | null | null | null | sandbox/ardupilot/libraries/AP_Math/AP_Math.cpp | prabhu-dev/LineDetectorLengthFix | 2450bae17eb8bfbf0e3b942d765c5c4954715bde | [
"MIT"
] | null | null | null | sandbox/ardupilot/libraries/AP_Math/AP_Math.cpp | prabhu-dev/LineDetectorLengthFix | 2450bae17eb8bfbf0e3b942d765c5c4954715bde | [
"MIT"
] | null | null | null | #include "AP_Math.h"
// a varient of asin() that checks the input ranges and ensures a
// valid angle as output. If nan is given as input then zero is
// returned.
float safe_asin(float v)
{
if (isnan(v)) {
return 0.0;
}
if (v >= 1.0) {
return PI/2;
}
if (v <= -1.0) {
return... | 24.481818 | 83 | 0.622354 | prabhu-dev |
2b2376f1e0a3c6335a453ee8cd092f9d99b4099b | 1,222 | cpp | C++ | src/SoundEngine.cpp | Itokatsu/renard | ca4752ec09b9e9d2be5d01e8e5d1a1bb698f47c2 | [
"Unlicense"
] | null | null | null | src/SoundEngine.cpp | Itokatsu/renard | ca4752ec09b9e9d2be5d01e8e5d1a1bb698f47c2 | [
"Unlicense"
] | null | null | null | src/SoundEngine.cpp | Itokatsu/renard | ca4752ec09b9e9d2be5d01e8e5d1a1bb698f47c2 | [
"Unlicense"
] | null | null | null | #include "SoundEngine.h"
#include <iostream>
SoundEngine::SoundEngine()
{
}
bool SoundEngine::Init()
{
bool success = true;
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0)
{
std::cerr << "SDL_AUDIO could not initialize! SDL_Error:" << SDL_GetError() << std::endl;
success = false;
}
else
{
if (Mix_OpenAudio(441... | 18.8 | 98 | 0.635025 | Itokatsu |
2b241aa7e85bb28e006d90e61851f9f5cd158d72 | 1,718 | cpp | C++ | graph-source-code/441-D/10157556.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/441-D/10157556.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/441-D/10157556.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <cstdio>
#include <cstring>
#include <cctype>
#include <cstdlib>
#include <queue>
#include <stack>
#include <cmath>
#include <string>
#include <iostream>
#include <algorithm>
using namespace std;
#define maxn 1000 + 10
#define INF 2100000000
#define ... | 23.861111 | 50 | 0.366705 | AmrARaouf |
2b247254de0d526afdb28dc9aa3fc947c3638c84 | 1,751 | cpp | C++ | RunSetup/Control.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | RunSetup/Control.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | RunSetup/Control.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Control.cpp - process the control parameters
//*********************************************************
#include "RunSetup.hpp"
#include "Utility.hpp"
//---------------------------------------------------------
// Program_Control
//---------------------... | 23.346667 | 80 | 0.565962 | kravitz |
2b252dc5ebdecdf3b513a7e3b83d61a5577da1be | 2,436 | cpp | C++ | PathTracer/Material.cpp | bbtarzan12/PathTracer | 3178d6d2bfe05d505a67fbca4465cec154e3152d | [
"MIT"
] | null | null | null | PathTracer/Material.cpp | bbtarzan12/PathTracer | 3178d6d2bfe05d505a67fbca4465cec154e3152d | [
"MIT"
] | null | null | null | PathTracer/Material.cpp | bbtarzan12/PathTracer | 3178d6d2bfe05d505a67fbca4465cec154e3152d | [
"MIT"
] | null | null | null | #include "Material.h"
#include "IntersectInfo.h"
#include "Math.h"
#include "Random.h"
glm::vec3 Material::CalculateF(const IntersectInfo& info, const glm::vec3& worldWo, const glm::vec3& worldWi) const
{
bitmask<BxdfType> mask = BxdfType::ALL;
// 만약 worldWi와 worldWo가 같은 반구 내에 있다면 Reflection, 아니면 Transmission
if (... | 23.2 | 143 | 0.666667 | bbtarzan12 |
1a72d47dd9ca6b3c3f3dbbe74e8dcbcf92904247 | 719 | hpp | C++ | windows/ReactNativeNotes/NativeModules/Repository/NoteModel.hpp | callstack-internal/ReactNativeNotes | 9e9c35936219fcb3fcb32daf58ad8b049dfad179 | [
"MIT"
] | 3 | 2021-09-29T23:01:05.000Z | 2022-03-15T18:31:43.000Z | windows/ReactNativeNotes/NativeModules/Repository/NoteModel.hpp | callstack-internal/ReactNativeNotes | 9e9c35936219fcb3fcb32daf58ad8b049dfad179 | [
"MIT"
] | 1 | 2021-09-16T11:11:07.000Z | 2021-09-16T11:11:07.000Z | windows/ReactNativeNotes/NativeModules/Repository/NoteModel.hpp | callstack/ReactNativeNotes | 9e9c35936219fcb3fcb32daf58ad8b049dfad179 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
namespace winrt::ReactNativeNotes::implementation
{
class NoteModel
{
public:
explicit NoteModel() = default;
NoteModel( const std::string& title, const bool& isDone, const std::string& post = "" );
bool operator==( const NoteModel& model ) const;
... | 21.147059 | 96 | 0.600834 | callstack-internal |
1a79df9de780f4a4a95c285792ff9f045e01bac9 | 189 | hpp | C++ | include/Drawing/Animation.hpp | mineas312/WadoVice | 63325c31e2f8052113915437962da6d14ad1779e | [
"Unlicense"
] | null | null | null | include/Drawing/Animation.hpp | mineas312/WadoVice | 63325c31e2f8052113915437962da6d14ad1779e | [
"Unlicense"
] | 2 | 2021-03-04T15:32:09.000Z | 2021-03-05T15:43:30.000Z | include/Drawing/Animation.hpp | mineas312/WadoVice | 63325c31e2f8052113915437962da6d14ad1779e | [
"Unlicense"
] | 3 | 2021-03-04T14:16:21.000Z | 2021-03-04T21:47:49.000Z | #pragma once
#include "DirectX.hpp"
class Animation
{
public:
Animation(DirectX *dx);
virtual void DrawFrame();
virtual void DXInitialized();
private:
DirectX *dx;
};
| 13.5 | 33 | 0.661376 | mineas312 |
1a7a08e46b874f60841ac163b0fd4c67244cadd6 | 4,929 | cpp | C++ | texture_operations/texture_conversion.cpp | Lut1n/GeneticImgProc | 39fdd2f62ebe0772da4df5612292204d86853779 | [
"MIT"
] | null | null | null | texture_operations/texture_conversion.cpp | Lut1n/GeneticImgProc | 39fdd2f62ebe0772da4df5612292204d86853779 | [
"MIT"
] | null | null | null | texture_operations/texture_conversion.cpp | Lut1n/GeneticImgProc | 39fdd2f62ebe0772da4df5612292204d86853779 | [
"MIT"
] | null | null | null | #include "texture_conversion.hpp"
#include <iostream>
// --------------------------------------------------------------------------
#define GLSL_CODE( src ) #src
// --------------------------------------------------------------------------
static const std::string s_glsl_vertex = GLSL_CODE(
varying vec4 vertex;
... | 28.824561 | 112 | 0.487929 | Lut1n |
1a8c0e92d324bce009cc218b494d6ed08cbf9daf | 580 | cpp | C++ | Codeforces/166A - Rank List.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/166A - Rank List.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/166A - Rank List.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
int n, k;
cin >> n >> k;
vector<pair<int, int>> vec(n);
for ( auto &el: vec ) cin >> el.first >> el.second;
sort( begin(vec), end(vec), [](pair<int, int> a, pair<int, int> b) {
if (a.first != b.fir... | 23.2 | 73 | 0.5 | naimulcsx |
1a8f1006cdbe3360362f533f7fc56434a8f73ce6 | 95 | hpp | C++ | Iridium/IO/IO.hpp | lordharambae/Iridium | 40997d7082f7f80e38338af358fdca2a5ac3af63 | [
"BSD-3-Clause"
] | null | null | null | Iridium/IO/IO.hpp | lordharambae/Iridium | 40997d7082f7f80e38338af358fdca2a5ac3af63 | [
"BSD-3-Clause"
] | null | null | null | Iridium/IO/IO.hpp | lordharambae/Iridium | 40997d7082f7f80e38338af358fdca2a5ac3af63 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#ifndef IO_HPP
#define IO_HPP
#include "Console.hpp"
#include "File.hpp"
#endif
| 10.555556 | 22 | 0.736842 | lordharambae |
1a982dae772d93679118046bcfeef19ed3aab7a2 | 944 | cpp | C++ | Common/platform/platform_file_utils.cpp | benbancroft/2DEngine | 56aa3ecd388bac3ad3e036a750749b2399d2ed12 | [
"MIT"
] | null | null | null | Common/platform/platform_file_utils.cpp | benbancroft/2DEngine | 56aa3ecd388bac3ad3e036a750749b2399d2ed12 | [
"MIT"
] | null | null | null | Common/platform/platform_file_utils.cpp | benbancroft/2DEngine | 56aa3ecd388bac3ad3e036a750749b2399d2ed12 | [
"MIT"
] | null | null | null | #include "platform_file_utils.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "platform_log.h"
namespace Platform{
FileData get_file_data(std::string path) {
assert(!path.empty());
//DEBUG_LOG_WRITE_V("Shaders", path.c_str());
FILE*... | 24.842105 | 64 | 0.570975 | benbancroft |
1aa45ab4260316c1c2d3724d85dd7e7f6d49803c | 2,275 | cpp | C++ | example/isis.cpp | kybr/MAT240B-2019 | d3a875f90e12df195a172b4f4f485153d4251086 | [
"MIT"
] | null | null | null | example/isis.cpp | kybr/MAT240B-2019 | d3a875f90e12df195a172b4f4f485153d4251086 | [
"MIT"
] | null | null | null | example/isis.cpp | kybr/MAT240B-2019 | d3a875f90e12df195a172b4f4f485153d4251086 | [
"MIT"
] | null | null | null | /*
*/
#include "Gamma/SoundFile.h"
using namespace gam;
#include "al/core.hpp"
using namespace al;
#include "synths.h"
using namespace diy;
#include <vector>
using namespace std;
struct ISIS {
Phasor phasor;
float _{0};
float carrier{220};
float stretch{1};
float operator()(float f) {
// direct "... | 22.524752 | 79 | 0.609231 | kybr |
1aabdba2db8e8f7351aad701a04dd468749f5eb0 | 1,765 | cpp | C++ | src/x11/wm.cpp | corngood/polybar | 385572ec643ea6d35483b652a17e74b01229b267 | [
"MIT"
] | 1 | 2020-05-08T14:47:00.000Z | 2020-05-08T14:47:00.000Z | src/x11/wm.cpp | corngood/polybar | 385572ec643ea6d35483b652a17e74b01229b267 | [
"MIT"
] | null | null | null | src/x11/wm.cpp | corngood/polybar | 385572ec643ea6d35483b652a17e74b01229b267 | [
"MIT"
] | 1 | 2020-05-08T15:26:36.000Z | 2020-05-08T15:26:36.000Z | #include <unistd.h>
#include <xcb/xcb_icccm.h>
#include "utils/math.hpp"
#include "x11/atoms.hpp"
#include "x11/wm.hpp"
POLYBAR_NS
namespace wm_util {
void set_wm_name(xcb_connection_t* conn, xcb_window_t win, const string& wm_name, const string& wm_class) {
xcb_icccm_set_wm_name(conn, win, XCB_ATOM_STRING, 8,... | 38.369565 | 117 | 0.752975 | corngood |
1ab21a3fb579736d0b399e6ff6f7f966e8aa67d8 | 529 | cpp | C++ | codes/HDU/hdu4730.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu4730.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu4730.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 205;
const char sign[5] = "desu";
bool check (int pos, char* s) {
for (int i = 0; i < 4; i++)
if (s[pos+i] != sign[i])
return false;
return true;
}
int main () {
int cas;
char str[maxn];
scanf("%d", &cas);
for... | 17.064516 | 42 | 0.559546 | JeraKrs |
1ab63e9c5365a6a7c8e241b8573537204d64522b | 176 | hh | C++ | kernel/ocl/view/point/hy.hh | nthend/hypertrace | 5072849f8a10465ba1260626fbef6b013d756f90 | [
"Apache-2.0",
"MIT"
] | 5 | 2020-05-20T21:04:49.000Z | 2021-07-08T05:29:41.000Z | kernel/ocl/view/point/hy.hh | nthend/hypertrace | 5072849f8a10465ba1260626fbef6b013d756f90 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-01-27T09:07:22.000Z | 2021-02-22T11:17:11.000Z | kernel/ocl/view/point/hy.hh | nthend/hypertrace | 5072849f8a10465ba1260626fbef6b013d756f90 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-04-30T04:46:07.000Z | 2021-02-02T21:11:39.000Z | #pragma once
#include <macros.hh>
#include <geometry/hyperbolic.hh>
#include <geometry/ray_hy.hh>
#define $Geo Hy
#define $geo hy
#include "impl.inl"
#undef $Geo
#undef $geo
| 14.666667 | 33 | 0.721591 | nthend |
1ac8ae0cf1f6c48c2b87c0bc47ddfbf1df46c835 | 1,330 | cpp | C++ | hazelcast/src/hazelcast/client/Endpoint.cpp | sbrown-uhd/hazelcast-cpp-client | ce57a508092fa42b9b4b371ae6c2782a21c75515 | [
"Apache-2.0"
] | null | null | null | hazelcast/src/hazelcast/client/Endpoint.cpp | sbrown-uhd/hazelcast-cpp-client | ce57a508092fa42b9b4b371ae6c2782a21c75515 | [
"Apache-2.0"
] | null | null | null | hazelcast/src/hazelcast/client/Endpoint.cpp | sbrown-uhd/hazelcast-cpp-client | ce57a508092fa42b9b4b371ae6c2782a21c75515 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 40.30303 | 133 | 0.581955 | sbrown-uhd |
1acbfa1684b8c667cd178191b06de953df15350d | 191 | cpp | C++ | AliasTemplates/heal.cpp | mattpbooth/AliasTemplates | 04c2d8ca5ea66e09a315787a1099851f6cafe247 | [
"MIT"
] | 1 | 2016-02-21T17:17:36.000Z | 2016-02-21T17:17:36.000Z | TemplateTypedef/heal.cpp | mattpbooth/AliasTemplates | 04c2d8ca5ea66e09a315787a1099851f6cafe247 | [
"MIT"
] | null | null | null | TemplateTypedef/heal.cpp | mattpbooth/AliasTemplates | 04c2d8ca5ea66e09a315787a1099851f6cafe247 | [
"MIT"
] | null | null | null | #include "heal.h"
#include "wizard.h"
Heal::Heal(const int health)
: mHealth(health)
{}
void Heal::invoke(Wizard& other)
{
// Hurt with negative value to heal
other.damage(-mHealth);
} | 13.642857 | 36 | 0.685864 | mattpbooth |
1acc81ea5ff34e0d982f696963144f2a5e38b20c | 365 | hh | C++ | cpprofiler/analysis/similar_shape_algorithm.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | 1 | 2021-05-06T04:41:37.000Z | 2021-05-06T04:41:37.000Z | cpprofiler/analysis/similar_shape_algorithm.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | null | null | null | cpprofiler/analysis/similar_shape_algorithm.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | 1 | 2021-05-06T04:41:39.000Z | 2021-05-06T04:41:39.000Z | #pragma once
#include <vector>
class NodeTree;
class VisualNode;
class Shape;
namespace cpprofiler {
namespace analysis {
struct ShapeInfo {
int sol;
int size;
int height;
std::vector<VisualNode*> nodes;
Shape* s;
};
std::vector<ShapeInfo> runSimilarShapes(NodeTree& nt);
std::vector<std::vector<VisualNo... | 15.208333 | 73 | 0.728767 | cp-profiler |
1ad267f481196a4776d0d2833e1d68ec4cc598be | 695 | cpp | C++ | 数据结构/chp11/test_kmp.cpp | buct1705/912-notes | 308946cebc8ab86c999cb4d33fcf3e518e3bfb7a | [
"MIT"
] | 3 | 2019-10-25T01:11:01.000Z | 2020-01-20T03:19:54.000Z | 数据结构/chp11/test_kmp.cpp | xUhEngwAng/notes | 308946cebc8ab86c999cb4d33fcf3e518e3bfb7a | [
"MIT"
] | null | null | null | 数据结构/chp11/test_kmp.cpp | xUhEngwAng/notes | 308946cebc8ab86c999cb4d33fcf3e518e3bfb7a | [
"MIT"
] | null | null | null | #include "kmp.h"
#include <iostream>
#include <cassert>
using std::cout;
using std::endl;
void test_make_next(){
char* str = "chine chinchilla";
int exp[] = { -1, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 1, 2, 3, 0, 0 };
int* result = makeNext(str);
for (int ix = 0; ix != strlen(str); ++ix)
assert(exp[ix] == result[ix]);
... | 19.305556 | 65 | 0.578417 | buct1705 |
1ad3510bbfc113a81ee8e3bf89d00fd810dbeeef | 2,033 | cpp | C++ | versionutil.cpp | Vixlump/FC-Standard | 4549f4f4ec3e1dbeb42573edf45ab17609859b87 | [
"MIT"
] | null | null | null | versionutil.cpp | Vixlump/FC-Standard | 4549f4f4ec3e1dbeb42573edf45ab17609859b87 | [
"MIT"
] | null | null | null | versionutil.cpp | Vixlump/FC-Standard | 4549f4f4ec3e1dbeb42573edf45ab17609859b87 | [
"MIT"
] | null | null | null | /*
Copyright (c) Cohen ter Heide 2014-2022 All rights reserved.
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including c... | 34.457627 | 74 | 0.727496 | Vixlump |
1ad53277f39e1118d1f0b9986b54cbcf420cbe3b | 9,852 | cpp | C++ | ln/tests/test_ln_msg_normalope.cpp | mathiasrw/ptarmigan | 69b26470310daa24f95cb83eefde8e539eff6d96 | [
"Apache-2.0"
] | 143 | 2017-07-22T12:12:00.000Z | 2022-02-09T09:46:26.000Z | ln/tests/test_ln_msg_normalope.cpp | mathiasrw/ptarmigan | 69b26470310daa24f95cb83eefde8e539eff6d96 | [
"Apache-2.0"
] | 534 | 2017-09-02T13:45:32.000Z | 2020-06-15T09:26:33.000Z | ln/tests/test_ln_msg_normalope.cpp | mathiasrw/ptarmigan | 69b26470310daa24f95cb83eefde8e539eff6d96 | [
"Apache-2.0"
] | 31 | 2017-09-29T00:11:33.000Z | 2021-06-17T08:24:37.000Z | #include "gtest/gtest.h"
#include <string.h>
#include "tests/fff.h"
DEFINE_FFF_GLOBALS;
extern "C" {
#include "../../utl/utl_log.c"
#undef LOG_TAG
#include "../../utl/utl_dbg.c"
#include "../../utl/utl_buf.c"
#include "../../utl/utl_push.c"
#include "../../utl/utl_time.c"
#include "../../utl/utl_int.c"
#include "../.... | 36.488889 | 140 | 0.68514 | mathiasrw |
1ad59d855cf1be788e99dd15cc1f45c4e391f825 | 4,681 | cpp | C++ | cyclo/src/simulation/src/ssd1306.cpp | adarwoo/template_tests | 693a64c0efec41805259c2b0df232a491fb08d91 | [
"MIT"
] | null | null | null | cyclo/src/simulation/src/ssd1306.cpp | adarwoo/template_tests | 693a64c0efec41805259c2b0df232a491fb08d91 | [
"MIT"
] | 5 | 2021-09-06T11:05:25.000Z | 2021-09-18T09:05:01.000Z | cyclo/src/simulation/src/ssd1306.cpp | adarwoo/template_tests | 693a64c0efec41805259c2b0df232a491fb08d91 | [
"MIT"
] | null | null | null | #include "asx.h"
#include <X11/Xlib.h>
#include <X11/Xos.h>
#include <X11/Xutil.h>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <logger.h>
#include "keypad.h"
#include "ssd1306.h"
#include <rtos.hpp>
const char *const DOM = "X";
uint8_t fb[ 16 ][ 128 ... | 21.180995 | 100 | 0.494125 | adarwoo |
1adb01c62a4d6120bdc696648dea7fb311a2f367 | 234 | hpp | C++ | Sources/SolarTears/Input/ControlState.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | 4 | 2021-06-30T16:00:20.000Z | 2021-10-13T06:17:56.000Z | Sources/SolarTears/Input/ControlState.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | Sources/SolarTears/Input/ControlState.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <DirectXMath.h>
struct ControlState
{
DirectX::XMFLOAT2 Axis1Delta;
DirectX::XMFLOAT2 Axis2Delta;
DirectX::XMFLOAT2 Axis3Delta;
uint32_t CurrentKeyStates;
uint32_t KeyStateChangeFlags;
}; | 19.5 | 39 | 0.739316 | Sixshaman |
1adda0e7b6f4204cba6c4480d59c71c0b333766d | 207 | hpp | C++ | src/lib/rendering/2d/types.hpp | Fluci/GooBalls | 4b68084303e66af368fd6bbf94aaec0950c9c6e3 | [
"BSD-3-Clause"
] | null | null | null | src/lib/rendering/2d/types.hpp | Fluci/GooBalls | 4b68084303e66af368fd6bbf94aaec0950c9c6e3 | [
"BSD-3-Clause"
] | null | null | null | src/lib/rendering/2d/types.hpp | Fluci/GooBalls | 4b68084303e66af368fd6bbf94aaec0950c9c6e3 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "generic/types.hpp"
/// Common typedefs that should be shared within the module
namespace GooBalls {
namespace d2 {
namespace Render {
// empty
} // Render
} // d2
} // GooBalls
| 14.785714 | 59 | 0.690821 | Fluci |
1adec2d2b4aa9b636edf0d2b65889c618e5ae298 | 364 | cpp | C++ | 16 Heaps/08 minCostRopes.cpp | MrNevil/GeeksForGeeks-DSA-2 | cb53912a2bfea5e04ce1b2c10e103a61ae1d903b | [
"MIT"
] | 1 | 2021-04-03T06:23:42.000Z | 2021-04-03T06:23:42.000Z | 16 Heaps/08 minCostRopes.cpp | MrNevil/GeeksForGeeks-DSA-2 | cb53912a2bfea5e04ce1b2c10e103a61ae1d903b | [
"MIT"
] | null | null | null | 16 Heaps/08 minCostRopes.cpp | MrNevil/GeeksForGeeks-DSA-2 | cb53912a2bfea5e04ce1b2c10e103a61ae1d903b | [
"MIT"
] | 1 | 2021-02-26T17:16:36.000Z | 2021-02-26T17:16:36.000Z | #define ll long long
long long minCost(long long arr[], long long n) {
ll ans = 0;
priority_queue<ll, vector<ll>, greater<ll>> pq(arr, arr+n);
while (pq.size() > 1){
ll a = pq.top();
pq.pop();
ll b = pq.top();
pq.pop();
ans += a+b;
pq.push(... | 17.333333 | 63 | 0.436813 | MrNevil |
1ae55c87c61bac039197bd0ffcc13b4cdd2e6753 | 3,117 | cpp | C++ | suil/sawtooth/src/main.cpp | suilteam/suil | 5cc143891147cb9bec1448d3f319cead9b4ccad9 | [
"MIT"
] | 2 | 2018-09-21T05:55:46.000Z | 2018-10-29T13:51:00.000Z | suil/sawtooth/src/main.cpp | suilteam/suil | 5cc143891147cb9bec1448d3f319cead9b4ccad9 | [
"MIT"
] | 7 | 2016-06-08T13:17:27.000Z | 2016-06-27T06:50:29.000Z | suil/sawtooth/src/main.cpp | suilteam/suil | 5cc143891147cb9bec1448d3f319cead9b4ccad9 | [
"MIT"
] | 1 | 2018-09-21T05:55:49.000Z | 2018-09-21T05:55:49.000Z | //
// Created by dc on 2020-01-15.
//
#include <suil/init.h>
#include <suil/cmdl.h>
#include "../client.h"
using namespace suil;
static void cmdCreate(cmdl::Parser& parser);
static void cmdGenerate(cmdl::Parser& parser);
static void cmdGet(cmdl::Parser& parser);
int main(int argc, char *argv[])
{
suil::init(opt... | 32.810526 | 111 | 0.572666 | suilteam |
1ae9cbc73811c80837b3b05bbcb87ad33d64ed1b | 934 | cpp | C++ | src/jk_test/jk_test_file.cpp | Mr-WangJin/JK_CPP_FUNC | 4d90a36162e8dc3c333f69a8f0ae2f422bf1b121 | [
"Apache-2.0"
] | null | null | null | src/jk_test/jk_test_file.cpp | Mr-WangJin/JK_CPP_FUNC | 4d90a36162e8dc3c333f69a8f0ae2f422bf1b121 | [
"Apache-2.0"
] | null | null | null | src/jk_test/jk_test_file.cpp | Mr-WangJin/JK_CPP_FUNC | 4d90a36162e8dc3c333f69a8f0ae2f422bf1b121 | [
"Apache-2.0"
] | 1 | 2019-05-12T19:36:28.000Z | 2019-05-12T19:36:28.000Z | #include "jk_test_file.h"
#include <stdlib.h>
#include <iostream>
JK_Test_File::JK_Test_File()
{
m_pFileName = "testfile";
}
JK_Test_File::~JK_Test_File()
{
}
void JK_Test_File::TestClass()
{
COUT_STR("Start test file.....")
this->testWriteFile();
this->testReadFile();
COUT_STR("End test file.....")
}
void ... | 19.458333 | 71 | 0.626338 | Mr-WangJin |
8c186dcfb1737a83e8fad7951aff4a95bee2dbbb | 3,496 | cc | C++ | src/comet/resource/resource.cc | m4jr0/gameengine | 8b63893ac65c5853852c1418550d2772c22cd10f | [
"MIT"
] | 2 | 2018-09-15T21:18:26.000Z | 2018-10-03T14:28:26.000Z | src/comet/resource/resource.cc | m4jr0/gameengine | 8b63893ac65c5853852c1418550d2772c22cd10f | [
"MIT"
] | null | null | null | src/comet/resource/resource.cc | m4jr0/gameengine | 8b63893ac65c5853852c1418550d2772c22cd10f | [
"MIT"
] | null | null | null | // Copyright 2021 m4jr0. All Rights Reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.
#include "resource.h"
#include "comet/utils/date.h"
#include "comet/utils/file_system.h"
#ifdef _WIN32
#include "debug_windows.h"
#endif // _WIN32
namespace comet {
name... | 30.4 | 80 | 0.712529 | m4jr0 |
8c1f87270b33f9d681d89eb32db88be8012fa05b | 363 | cpp | C++ | mem-eater/mem-eater.cpp | rukletsov/goodies | 25cd58cc2daa05293c9d60bf1dbe7cfda766b102 | [
"BSD-3-Clause"
] | null | null | null | mem-eater/mem-eater.cpp | rukletsov/goodies | 25cd58cc2daa05293c9d60bf1dbe7cfda766b102 | [
"BSD-3-Clause"
] | null | null | null | mem-eater/mem-eater.cpp | rukletsov/goodies | 25cd58cc2daa05293c9d60bf1dbe7cfda766b102 | [
"BSD-3-Clause"
] | null | null | null |
#include <vector>
#include <unistd.h>
using namespace std;
int main() {
const int GB = 10;
const size_t BYTES_IN_GB = 1024*1024*1024;
const int SLEEP_DURATION = 100;
vector<vector<char>*> v;
for (int i = 1; i < GB; ++i) {
vector<char>* tmp = new vector<char>(BYTES_IN_GB, 1);
v.push_back(tmp);
... | 15.125 | 57 | 0.628099 | rukletsov |
8c1fdcd91ba88063d178991f3f1408a61a9e2728 | 399 | cpp | C++ | world/source/DamageFlag.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | world/source/DamageFlag.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | world/source/DamageFlag.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "DamageFlag.hpp"
using namespace std;
DamageFlag::DamageFlag(const DamageFlagType dft, const string& desc_sid)
: flag(dft), description_sid(desc_sid)
{
}
DamageFlagType DamageFlag::get_flag() const
{
return flag;
}
string DamageFlag::get_description_sid() const
{
return description_sid;... | 16.625 | 73 | 0.729323 | sidav |
8c2b7fdfa6431870b09297f7d1c90530e7710815 | 3,210 | cc | C++ | codebase/ix/ixtest9.cc | debatrimitra02/DBMS | 943faeb8fe542f29b35bd4bd1443ea405d42a4ab | [
"MIT"
] | null | null | null | codebase/ix/ixtest9.cc | debatrimitra02/DBMS | 943faeb8fe542f29b35bd4bd1443ea405d42a4ab | [
"MIT"
] | null | null | null | codebase/ix/ixtest9.cc | debatrimitra02/DBMS | 943faeb8fe542f29b35bd4bd1443ea405d42a4ab | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include "ix.h"
#include "ixtest_util.h"
IndexManager *indexManager;
int testCase_9(const string &indexFileName, const Attribute &attribute)
{
// Checks whether deleting an entry after getNextEntry() for EXACT MATCH case is handled prop... | 26.528926 | 109 | 0.633956 | debatrimitra02 |
8c30e5441349850c5facc0e72652ccb452d79ba2 | 785 | cpp | C++ | src/5000/5214.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/5000/5214.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/5000/5214.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
#include <queue>
using namespace std;
vector<int> adj[101002];
bool visit[101002];
int main()
{
int n, k, m, count = 0;
scanf("%d %d %d", &n, &k, &m);
int h[1001];
for(int i=1; i<=m; i++)
{
for(int j=0; j<k; j++)
{
scanf("%d", &h[j]);
}
for(int j=0; j<k; j++)
{... | 11.893939 | 31 | 0.467516 | upple |
8c32049c20060b20ebda7602cb05cff268a1dbc8 | 15,446 | cpp | C++ | Cores/Mednafen/mednafen/src/snes_faust/cart/sdd1.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 3,459 | 2015-01-07T14:07:09.000Z | 2022-03-25T03:51:10.000Z | Cores/Mednafen/mednafen/src/snes_faust/cart/sdd1.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 1,046 | 2018-03-24T17:56:16.000Z | 2022-03-23T08:13:09.000Z | Cores/Mednafen/mednafen/src/snes_faust/cart/sdd1.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 549 | 2015-01-07T14:07:15.000Z | 2022-01-07T16:13:05.000Z | /******************************************************************************/
/* Mednafen Fast SNES Emulation Module */
/******************************************************************************/
/* sdd1.cpp:
** Copyright (C) 2019 Mednafen Team
**
** This program is free ... | 22.417997 | 203 | 0.613298 | ianclawson |
8c32c29e78c20ef183486135f7d00770e3e87c35 | 446 | cpp | C++ | oftBasic/src/ofApp.cpp | violetcraze/openFrameworksTemplates | 54b3fbd641663a6517cd942ca5620e72b4e5e931 | [
"MIT"
] | 2 | 2020-05-24T13:57:14.000Z | 2020-11-13T13:22:01.000Z | oftBasic/src/ofApp.cpp | violetcraze/openFrameworksTemplates | 54b3fbd641663a6517cd942ca5620e72b4e5e931 | [
"MIT"
] | null | null | null | oftBasic/src/ofApp.cpp | violetcraze/openFrameworksTemplates | 54b3fbd641663a6517cd942ca5620e72b4e5e931 | [
"MIT"
] | null | null | null | #include "ofApp.h"
constexpr const char *PROJECT_NAME = "Untitled";
constexpr const char *CREATOR = "Creator Name";
void ofApp::setup() {}
void ofApp::update() { title(); }
void ofApp::draw() { ofBackground(ofGetFrameNum() % 255); }
void ofApp::title() {
stringstream titleStream;
titleStream << PROJECT_NAME <<... | 24.777778 | 66 | 0.650224 | violetcraze |
8c33091bd7a7c1a037c319b8f6494c6a2051fef2 | 1,466 | cpp | C++ | tests/square_and_rectangle.cpp | JulesFouchy/p6-docs | f3f7f2d0f3897b77db3fd5a57783f6c0658a5e0e | [
"MIT"
] | null | null | null | tests/square_and_rectangle.cpp | JulesFouchy/p6-docs | f3f7f2d0f3897b77db3fd5a57783f6c0658a5e0e | [
"MIT"
] | 1 | 2022-01-02T01:04:34.000Z | 2022-01-02T01:04:48.000Z | tests/square_and_rectangle.cpp | JulesFouchy/p6-examples | f3f7f2d0f3897b77db3fd5a57783f6c0658a5e0e | [
"MIT"
] | null | null | null | #include <p6/p6.h>
int main()
{
auto ctx = p6::Context{{1280, 720, "p6 Test Square and Rectangle"}};
p6::Angle rotation = 0.011_turn;
ctx.mouse_scrolled = [&](p6::MouseScroll e) {
rotation += e.dy * 0.025_turn;
};
ctx.update = [&]() {
ctx.background({});
... | 37.589744 | 83 | 0.487722 | JulesFouchy |
8c34581ceb0c6b3f7d481c635de2c87a12c1bb4d | 5,576 | cpp | C++ | Libs/SoundSystem/SoundSysFMOD3/SoundSysImpl.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Libs/SoundSystem/SoundSysFMOD3/SoundSysImpl.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Libs/SoundSystem/SoundSysFMOD3/SoundSysImpl.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "SoundSysImpl.hpp"
#include "SoundImpl.hpp"
#include "Channel.hpp"
#include "Buffer.hpp"
#include "BufferManager.hpp"
#include "fmod.h" // FMOD
#ifd... | 26.807692 | 157 | 0.689921 | dns |
8c359233e6ea36a9674b9375c5a9a925c50f70af | 8,572 | cpp | C++ | Firmware/Marlin/src/lcd/extui/lib/mks_ui/draw_jerk_settings.cpp | M1dn1ghtN1nj4/UnifiedFirmware | 510ef8f4145dcbae1caced5e391c3888e6022b00 | [
"Info-ZIP"
] | 6 | 2020-12-04T21:55:04.000Z | 2022-02-02T20:49:45.000Z | Firmware/Marlin/src/lcd/extui/lib/mks_ui/draw_jerk_settings.cpp | M1dn1ghtN1nj4/UnifiedFirmware | 510ef8f4145dcbae1caced5e391c3888e6022b00 | [
"Info-ZIP"
] | 24 | 2020-12-25T05:00:51.000Z | 2021-04-20T00:56:50.000Z | Firmware/Marlin/src/lcd/extui/lib/mks_ui/draw_jerk_settings.cpp | M1dn1ghtN1nj4/UnifiedFirmware | 510ef8f4145dcbae1caced5e391c3888e6022b00 | [
"Info-ZIP"
] | 3 | 2021-05-01T15:13:41.000Z | 2022-02-11T01:15:30.000Z | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 36.016807 | 89 | 0.736468 | M1dn1ghtN1nj4 |
8c3a4f02cd295a873fce565be4813960bf38e607 | 5,077 | cpp | C++ | src/modules/admin/UpdateSpecialDialog.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | src/modules/admin/UpdateSpecialDialog.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | src/modules/admin/UpdateSpecialDialog.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | #include "UpdateSpecialDialog.h"
#include <wx/filedlg.h>
#include "../lib/UpdateLibrary.h"
#include "UpdateAskDialog.h"
BEGIN_EVENT_TABLE(UpdateSpecialDialog, wxDialog)
EVT_BUTTON(FILE_CHOOSE_BUTTON, UpdateSpecialDialog::FileChooseEvent)
EVT_BUTTON(UPDATE_BUTTON, UpdateSpecialDialog::UpdateEvent)
END_EVENT_TABLE()
... | 33.401316 | 158 | 0.735474 | Thorsten-Geppert |
8c3ac988d61fe79ed7075f7e1941771417ea8503 | 409 | hpp | C++ | src/core/aliases/texture_index.hpp | albin-johansson/wanderer | 74c1e788e37d6555def23fb6f49d2342baf2a6fe | [
"MIT"
] | 11 | 2021-05-09T09:19:35.000Z | 2022-03-22T10:11:16.000Z | src/core/aliases/texture_index.hpp | albin-johansson/wanderer | 74c1e788e37d6555def23fb6f49d2342baf2a6fe | [
"MIT"
] | 5 | 2021-02-23T11:43:10.000Z | 2021-02-23T11:43:52.000Z | src/core/aliases/texture_index.hpp | albin-johansson/wanderer | 74c1e788e37d6555def23fb6f49d2342baf2a6fe | [
"MIT"
] | null | null | null | #pragma once
#include <cstddef> // size_t
#include <named_type.hpp>
namespace wanderer {
namespace detail {
struct texture_index_t;
}
using texture_index = fluent::NamedType<std::size_t,
detail::texture_index_t,
fluent::Comparable,
... | 24.058824 | 66 | 0.540342 | albin-johansson |
8c3e01c16fe501a0ddb98b86c7830b8d62c4ba33 | 568 | hpp | C++ | Electro/src/Asset/AssetMetadata.hpp | SurgeTechnologies/Electro | 8a7dfb6aabdf5d2e6fe31a8d9c976607fc2f1394 | [
"MIT"
] | 21 | 2021-08-30T15:30:22.000Z | 2022-02-09T14:05:36.000Z | Electro/src/Asset/AssetMetadata.hpp | SurgeTechnologies/Electro | 8a7dfb6aabdf5d2e6fe31a8d9c976607fc2f1394 | [
"MIT"
] | null | null | null | Electro/src/Asset/AssetMetadata.hpp | SurgeTechnologies/Electro | 8a7dfb6aabdf5d2e6fe31a8d9c976607fc2f1394 | [
"MIT"
] | null | null | null | // ELECTRO ENGINE
// Copyright(c) 2021 - Electro Team - All rights reserved
#pragma once
#include <filesystem>
#include "AssetBase.hpp"
namespace Electro
{
struct AssetMetadata
{
AssetHandle Handle = INVALID_ASSET_HANDLE;
AssetType Type = AssetType::NONE;
std::filesy... | 29.894737 | 127 | 0.637324 | SurgeTechnologies |
8c3fab68f7a0e7f798633d3fb5b4c447613517d5 | 960 | cc | C++ | lib/wts.cc | SimonMossmyr/w3x_t | 53044e6fb7aac9c12ed134d6e33edf839ccb3da6 | [
"MIT"
] | null | null | null | lib/wts.cc | SimonMossmyr/w3x_t | 53044e6fb7aac9c12ed134d6e33edf839ccb3da6 | [
"MIT"
] | null | null | null | lib/wts.cc | SimonMossmyr/w3x_t | 53044e6fb7aac9c12ed134d6e33edf839ccb3da6 | [
"MIT"
] | null | null | null | #include "w3x_t.h"
wts_type wts_to_struct(std::string contents) {
std::stringstream ss(contents);
wts_type wts;
wts.unknown_1 = read_byte(&ss);
wts.unknown_2 = read_byte(&ss);
wts.unknown_3 = read_byte(&ss);
std::string line;
while (!ss.eof()) {
getline(ss, line);
if (line... | 24 | 65 | 0.486458 | SimonMossmyr |
8c483765672bfdacb1c468eb592916396f43e4d2 | 308 | cpp | C++ | uri/1115.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | uri/1115.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | uri/1115.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
while(1)
{
scanf("%d%d",&a,&b);
if(!a && !b) break;
else if(a>0 && b>0) printf("primeiro\n");
else if(a>0 && b<0) printf("quarto\n");
else if(a<0 && b<0) printf("terceiro\n");
else printf("segundo\n");
}
return 0;
}
| 14 | 43 | 0.542208 | Shisir |
8c4f62ca1c2f5bbb943e82e98b14d55294c4dcd6 | 2,660 | cpp | C++ | opencl/test/unit_test/gen12lp/adlp/linux/dll/device_id_tests_adlp.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 778 | 2017-09-29T20:02:43.000Z | 2022-03-31T15:35:28.000Z | opencl/test/unit_test/gen12lp/adlp/linux/dll/device_id_tests_adlp.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 478 | 2018-01-26T16:06:45.000Z | 2022-03-30T10:19:10.000Z | opencl/test/unit_test/gen12lp/adlp/linux/dll/device_id_tests_adlp.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 215 | 2018-01-30T08:39:32.000Z | 2022-03-29T11:08:51.000Z | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/gen12lp/hw_cmds.h"
#include "shared/source/os_interface/linux/drm_neo.h"
#include "test.h"
#include <array>
using namespace NEO;
TEST(AdlpDeviceIdTest, GivenSupportedDeviceIdThenDeviceDescriptorTableExists)... | 47.5 | 106 | 0.707895 | troels |
8c5506980def9c052ebe27bfb0a3ee500a67b872 | 735 | cpp | C++ | 2019/day25/p1/combos.cpp | jbaldwin/adventofcode2019 | bdc333330dd5e36458a49f0b7cd64d462c9988c7 | [
"MIT"
] | null | null | null | 2019/day25/p1/combos.cpp | jbaldwin/adventofcode2019 | bdc333330dd5e36458a49f0b7cd64d462c9988c7 | [
"MIT"
] | null | null | null | 2019/day25/p1/combos.cpp | jbaldwin/adventofcode2019 | bdc333330dd5e36458a49f0b7cd64d462c9988c7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <array>
#include <string>
#include "../../../lib/Algorithms.hpp"
int main(int argc, char* argv[])
{
constexpr std::size_t CHOOSE = 3;
std::array<std::string, 7> data =
{
"mutex",
"ornament",
"astrolabe",
"sand",
... | 19.864865 | 81 | 0.461224 | jbaldwin |
8c566dbefefa4016b5c982472cbcd7b06d7896f5 | 1,530 | cpp | C++ | graph-source-code/505-B/11893914.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/505-B/11893914.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/505-B/11893914.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#include <utility>
#include <queue>
#include <iostream>
using namespace std;
const int MAX = 105;
typedef pair <int,int> P;
int n,m,q;
vector <int> G[MAX][MAX];
int visit[MAX][MAX];
int con[MAX][MAX];
int main()... | 22.835821 | 56 | 0.37451 | AmrARaouf |
8c5ef67ce6101f5f001c04eef908380c5b8bf2a1 | 1,755 | cc | C++ | src/util/serial_solution_stream.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 4 | 2019-03-19T17:31:33.000Z | 2022-01-08T12:27:33.000Z | src/util/serial_solution_stream.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | null | null | null | src/util/serial_solution_stream.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 1 | 2019-04-26T08:17:22.000Z | 2019-04-26T08:17:22.000Z | // © 2014 the PBNF Authors under the MIT license. See AUTHORS for the list of authors.
/**
* \file serial_solution_stream.cc
*
*
*
* \author eaburns
* \date 2009-04-20
*/
#include <iostream>
using namespace std;
#include <signal.h>
#include <stdlib.h>
#include "../state.h"
#include "solution_stream.h"
#inclu... | 18.473684 | 86 | 0.645014 | jinnaiyuu |
8c6124c28085f7b96f500e87920f79c1b1d3ea55 | 487 | cpp | C++ | 119-pascals-triangle-ii/pascals-triangle-ii_[AC1_0ms].cpp | i-square/LeetCode | 9b15114b7a3de8638d44b3030edb72f41d9a274e | [
"MIT"
] | 1 | 2019-10-09T11:25:10.000Z | 2019-10-09T11:25:10.000Z | 119-pascals-triangle-ii/pascals-triangle-ii_[AC1_0ms].cpp | i-square/LeetCode | 9b15114b7a3de8638d44b3030edb72f41d9a274e | [
"MIT"
] | null | null | null | 119-pascals-triangle-ii/pascals-triangle-ii_[AC1_0ms].cpp | i-square/LeetCode | 9b15114b7a3de8638d44b3030edb72f41d9a274e | [
"MIT"
] | 1 | 2021-03-31T08:45:51.000Z | 2021-03-31T08:45:51.000Z | // Given an index k, return the kth row of the Pascal's triangle.
//
//
// For example, given k = 3,
// Return [1,3,3,1].
//
//
//
// Note:
// Could you optimize your algorithm to use only O(k) extra space?
class Solution {
public:
vector<int> getRow(int rowIndex)
{
vector<int> ans(rowIndex + 1, 1);
... | 20.291667 | 66 | 0.535934 | i-square |
8c6219f0163c33a11daca01fe23107cf3c508f43 | 3,343 | cpp | C++ | src/samples/terrain/main.cpp | glines/libmc | 4d74c630252a0e46fda9dbec357bd1cd47223f1f | [
"MIT"
] | 14 | 2017-01-10T16:33:25.000Z | 2020-05-12T18:49:02.000Z | src/samples/terrain/main.cpp | auntieNeo/libmc | 4d74c630252a0e46fda9dbec357bd1cd47223f1f | [
"MIT"
] | null | null | null | src/samples/terrain/main.cpp | auntieNeo/libmc | 4d74c630252a0e46fda9dbec357bd1cd47223f1f | [
"MIT"
] | 3 | 2017-09-20T01:05:10.000Z | 2020-12-29T09:13:23.000Z | /*
* Copyright (c) 2016 Jonathan Glines
* Jonathan Glines <jonathan@glines.net>
*
* 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
... | 29.324561 | 79 | 0.656596 | glines |
8c63d115889237d0ab9da24d8d139a1db00473bd | 1,783 | cpp | C++ | Plugins/org.commontk.eventadmin/dispatch/ctkEASignalPublisher.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 515 | 2015-01-13T05:42:10.000Z | 2022-03-29T03:10:01.000Z | Plugins/org.commontk.eventadmin/dispatch/ctkEASignalPublisher.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 425 | 2015-01-06T05:28:38.000Z | 2022-03-08T19:42:18.000Z | Plugins/org.commontk.eventadmin/dispatch/ctkEASignalPublisher.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 341 | 2015-01-08T06:18:17.000Z | 2022-03-29T21:47:49.000Z | /*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the ... | 30.220339 | 79 | 0.672462 | kraehlit |
8c66232abb79e74a3e86676d4dfa30c5356a7bdd | 2,185 | cpp | C++ | src/mongo/db/auth/role_name.cpp | nleite/mongo | 1a1b6b0aaeefbae06942867e4dcf55d00d42afe0 | [
"Apache-2.0"
] | 1 | 2015-12-19T08:02:37.000Z | 2015-12-19T08:02:37.000Z | src/mongo/db/auth/role_name.cpp | nleite/mongo | 1a1b6b0aaeefbae06942867e4dcf55d00d42afe0 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/auth/role_name.cpp | nleite/mongo | 1a1b6b0aaeefbae06942867e4dcf55d00d42afe0 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2013 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful... | 34.140625 | 98 | 0.610526 | nleite |
8c7e48c5cd884038ce067ca3d767d3823eabaeac | 10,135 | cpp | C++ | tests/src/grafix/grafix_drawable.cpp | DNS-OARC/pplib | f7a479a1049e859cd0c97380a134d7e8f22939f0 | [
"BSD-2-Clause"
] | 1 | 2019-10-27T15:01:57.000Z | 2019-10-27T15:01:57.000Z | tests/src/grafix/grafix_drawable.cpp | DNS-OARC/pplib | f7a479a1049e859cd0c97380a134d7e8f22939f0 | [
"BSD-2-Clause"
] | 5 | 2016-02-01T19:03:33.000Z | 2022-02-06T15:27:01.000Z | tests/src/grafix/grafix_drawable.cpp | DNS-OARC/pplib | f7a479a1049e859cd0c97380a134d7e8f22939f0 | [
"BSD-2-Clause"
] | 1 | 2019-09-18T09:52:18.000Z | 2019-09-18T09:52:18.000Z | /*******************************************************************************
* This file is part of "Patrick's Programming Library", Version 7 (PPL7).
* Web: http://www.pfp.de/ppl/
*
* $Author$
* $Revision$
* $Date$
* $Id$
*
*******************************************************************************
*... | 31.088957 | 84 | 0.693833 | DNS-OARC |
8c7f53dfa2d04f7bc44369464a925fb974fdf13b | 419 | cpp | C++ | battle_tank/Source/battle_tank/Private/Tank.cpp | infinityplusb/battle_tank | 7ac8a18c71a74b359d889bb5b463ad751b880f5d | [
"MIT"
] | null | null | null | battle_tank/Source/battle_tank/Private/Tank.cpp | infinityplusb/battle_tank | 7ac8a18c71a74b359d889bb5b463ad751b880f5d | [
"MIT"
] | null | null | null | battle_tank/Source/battle_tank/Private/Tank.cpp | infinityplusb/battle_tank | 7ac8a18c71a74b359d889bb5b463ad751b880f5d | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Tank.h"
#include "TankBarrel.h"
#include "TankTurret.h"
#include "Projectile.h"
#include "TankMovementComponent.h"
// Sets default values
ATank::ATank()
{
// Set this pawn to call Tick() every frame. You can turn ... | 26.1875 | 115 | 0.718377 | infinityplusb |
8c86cf2c17858b6882beeeb7b9679020153b78c6 | 1,771 | cpp | C++ | Chapter-3-Expressions-and-Interactivity/Review Questions and Exercises/Programming Challenges/15.cpp | jesushilarioh/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 3 | 2019-02-02T16:59:48.000Z | 2019-02-28T14:50:08.000Z | Chapter-3-Expressions-and-Interactivity/Review Questions and Exercises/Programming Challenges/15.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | null | null | null | Chapter-3-Expressions-and-Interactivity/Review Questions and Exercises/Programming Challenges/15.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 1 | 2021-07-25T09:50:07.000Z | 2021-07-25T09:50:07.000Z | /********************************************************************
*
* 15. PROPERTY TAX
*
* A county collects property taxes on the assessment value of
* property, which is 60 percent of the property's
* actual value. If an acre of land is valued at
* $10,000, its assessment value is $6,000. ... | 34.057692 | 82 | 0.605872 | jesushilarioh |
8c957a67bdc8e589f786efffc6df539514983f5a | 572 | cpp | C++ | events/artifact_possessed.cpp | BenLubar/weblegends | 0eea0239c57ffc2540adc4d312f446cafafeb2c5 | [
"Zlib"
] | 16 | 2018-02-05T17:44:12.000Z | 2022-03-03T13:37:06.000Z | events/artifact_possessed.cpp | BenLubar/weblegends | 0eea0239c57ffc2540adc4d312f446cafafeb2c5 | [
"Zlib"
] | 12 | 2017-10-25T13:25:22.000Z | 2022-03-12T19:27:54.000Z | events/artifact_possessed.cpp | BenLubar/weblegends | 0eea0239c57ffc2540adc4d312f446cafafeb2c5 | [
"Zlib"
] | 5 | 2017-10-25T13:30:45.000Z | 2018-08-03T12:51:40.000Z | #include "../helpers_event.h"
#include "df/history_event_artifact_possessedst.h"
void do_event(std::ostream & s, const event_context & context, df::history_event_artifact_possessedst *event)
{
auto artifact = df::artifact_record::find(event->artifact);
auto histfig = df::historical_figure::find(event->histfig... | 30.105263 | 109 | 0.694056 | BenLubar |
8c969001bfac3dd7cea2f630b194c83df1ffc733 | 15,124 | cc | C++ | passes/taint/taint_worker.cc | ziqiaozhou/yosys | 98d8667ae823e0010c049797670d96abcda542ba | [
"0BSD"
] | null | null | null | passes/taint/taint_worker.cc | ziqiaozhou/yosys | 98d8667ae823e0010c049797670d96abcda542ba | [
"0BSD"
] | null | null | null | passes/taint/taint_worker.cc | ziqiaozhou/yosys | 98d8667ae823e0010c049797670d96abcda542ba | [
"0BSD"
] | null | null | null | #include "passes/taint/taint_worker.h"
#include "kernel/celltypes.h"
#include "kernel/log.h"
#include "kernel/register.h"
#include "kernel/rtlil.h"
#include "kernel/sigtools.h"
#include <assert.h>
#include <queue>
#include <string>
namespace Yosys {
namespace backend {
namespace taint {
namespace {
static bool IsClockC... | 32.878261 | 80 | 0.584435 | ziqiaozhou |
8ca2cb6721e87be331612c2f7253734160e63afb | 2,646 | cpp | C++ | docs/Development/Collisions/TetrominoBoard2.cpp | perezite/o2-blocks-ng | 3165918b943fb73bbd1c456c95ba645b57965536 | [
"MIT"
] | null | null | null | docs/Development/Collisions/TetrominoBoard2.cpp | perezite/o2-blocks-ng | 3165918b943fb73bbd1c456c95ba645b57965536 | [
"MIT"
] | null | null | null | docs/Development/Collisions/TetrominoBoard2.cpp | perezite/o2-blocks-ng | 3165918b943fb73bbd1c456c95ba645b57965536 | [
"MIT"
] | null | null | null | class Board
{
bool hasTetrominoCollision()
{
const vector<Vector2i>& blockPositions = getBlockPositions();
const vector<Vector2i>& tetrominoPositions = _tetromino.getGlobalPositions();
for (size_t i = 0; i < blockPositions.size(); i++)
for (size_t j= 0; j < tetrominoPositions.size(); j++)
if (blockPo... | 24.275229 | 107 | 0.705971 | perezite |
8cb3a74f654f156ac8111b6b770cc54ede2be39f | 3,555 | cpp | C++ | project/source/game/entity/Chest.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | 1 | 2016-04-30T15:34:11.000Z | 2016-04-30T15:34:11.000Z | project/source/game/entity/Chest.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | null | null | null | project/source/game/entity/Chest.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | 1 | 2018-11-30T23:32:58.000Z | 2018-11-30T23:32:58.000Z | #include "Pch.h"
#include "GameCore.h"
#include "Chest.h"
#include "Game.h"
#include "BitStreamFunc.h"
#include "Inventory.h"
#include "GlobalGui.h"
#include "PlayerInfo.h"
#include "SoundManager.h"
const float Chest::SOUND_DIST = 1.f;
int Chest::netid_counter;
//======================================================... | 22.643312 | 104 | 0.535865 | ntnt |
8cb4853835fb72c21d1753f4de488c4544646c72 | 777 | cpp | C++ | examples/core/Exceptions.cpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | examples/core/Exceptions.cpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | examples/core/Exceptions.cpp | abingham/ackward | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | [
"MIT"
] | null | null | null | #include <Python.h>
#include <iostream>
#include <ackward/core/Exceptions.hpp>
#include <ackward/core/ExceptionTranslation.hpp>
#include <ackward/core/Import.hpp>
#include <ackward/core/Initialize.hpp>
namespace ac=ackward::core;
void callPythonFunction()
{
try {
// This will trigger an AttributeError i... | 22.2 | 65 | 0.656371 | abingham |
8cb5adeb95c01c4aeb2c862690299a6a5ec8562b | 504 | hpp | C++ | libs/fnd/string_view/include/bksge/fnd/string_view/u16string_view.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/string_view/include/bksge/fnd/string_view/u16string_view.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/string_view/include/bksge/fnd/string_view/u16string_view.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file u16string_view.hpp
*
* @brief u16string_view クラスの定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_STRING_VIEW_U16STRING_VIEW_HPP
#define BKSGE_FND_STRING_VIEW_U16STRING_VIEW_HPP
#include <bksge/fnd/string_view/basic_string_view.hpp>
#include <bksge/fnd/config.hpp>
namespace bksge
{
#... | 20.16 | 59 | 0.757937 | myoukaku |
8cbde0115dc4c67478cf6122588fcd173e429dc1 | 1,448 | hpp | C++ | include/MonomialBasisForMinimumFrobeniusNormModel.hpp | snowpac/snowpac | ff4c6a83e01fc4ef6a78cf9ff9bf9358f972b305 | [
"BSD-2-Clause"
] | 3 | 2019-08-04T20:18:00.000Z | 2021-06-22T23:50:27.000Z | include/MonomialBasisForMinimumFrobeniusNormModel.hpp | snowpac/snowpac | ff4c6a83e01fc4ef6a78cf9ff9bf9358f972b305 | [
"BSD-2-Clause"
] | null | null | null | include/MonomialBasisForMinimumFrobeniusNormModel.hpp | snowpac/snowpac | ff4c6a83e01fc4ef6a78cf9ff9bf9358f972b305 | [
"BSD-2-Clause"
] | null | null | null | #ifndef HMonomialBasisForMinimumFrobeniusNormModel
#define HMonomialBasisForMinimumFrobeniusNormModel
#include "BasisForSurrogateModelBaseClass.hpp"
#include "QuadraticMonomial.hpp"
#include "VectorOperations.hpp"
#include <Eigen/Dense>
#include <vector>
#include "math.h"
class MonomialBasisForMinimumFrobeniusNormMod... | 37.128205 | 90 | 0.684392 | snowpac |
8cbf2307c8d53008f314f8273a38e80d655779a9 | 20,589 | cpp | C++ | src/plugins/common/conv1d_all_paddings.cpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 83 | 2017-08-27T15:09:13.000Z | 2022-01-18T17:03:41.000Z | src/plugins/common/conv1d_all_paddings.cpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 808 | 2017-08-27T15:35:01.000Z | 2021-12-14T17:30:50.000Z | src/plugins/common/conv1d_all_paddings.cpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 55 | 2017-08-27T15:09:22.000Z | 2022-03-25T12:07:34.000Z | // Copyright (c) 2019-2020 Bita Hasheminezhad
// Copyright (c) 2019-2020 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <phylanx/config.hpp>
#include <phylanx/execution_tree/primitives/n... | 41.013944 | 81 | 0.514838 | NanmiaoWu |
bc4cdeeb9c1c9b31b99fea163545aa804773ae8e | 1,396 | cpp | C++ | src/Math/Vec2.cpp | Nickswoboda/Aegis | 60e0e770892bdcb378686508ca455f6b5d522e33 | [
"MIT"
] | null | null | null | src/Math/Vec2.cpp | Nickswoboda/Aegis | 60e0e770892bdcb378686508ca455f6b5d522e33 | [
"MIT"
] | null | null | null | src/Math/Vec2.cpp | Nickswoboda/Aegis | 60e0e770892bdcb378686508ca455f6b5d522e33 | [
"MIT"
] | null | null | null | #include "Vec2.h"
#include <cmath>
namespace Aegis {
void Vec2::Normalize()
{
float length = x * x + y * y;
if (length != 0) {
length = sqrt(length);
x /= length;
y /= length;
}
}
Vec2 Vec2::Normalized()
{
Vec2 temp = *this;
temp.Normalize();
return temp;
}
Vec2 Vec2::operator-()
{
retur... | 20.835821 | 83 | 0.56447 | Nickswoboda |
bc4d84c892b97960e556590d5804c1393d9fe046 | 1,612 | hpp | C++ | src/utility.hpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | src/utility.hpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | src/utility.hpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <set>
#include <string>
class ScopeGuard {
public:
std::function<void()> on_exit;
~ScopeGuard();
};
/// Returns number of utf8 characters in text
size_t utf8_character_count(const std::string &text, size_t pos = 0, size_t length = std::string::npos) noexcept;
/// Retur... | 42.421053 | 113 | 0.751241 | jlangvand |
bc4e0fdc962d2fe5179d53bdecc1b52372bcf7b5 | 3,371 | hpp | C++ | src/logger.hpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | src/logger.hpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | src/logger.hpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014 DataStax
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 writing, softwar... | 26.335938 | 78 | 0.661525 | Paycasso |
bc4ef1de358b09fdee02010072f0d454b909a075 | 4,778 | cpp | C++ | HW2/HW2/HW2BST.cpp | justin-harper/cs223 | 487a4d8e803b3cb6a34608a15432e5aabe4894c4 | [
"MIT"
] | null | null | null | HW2/HW2/HW2BST.cpp | justin-harper/cs223 | 487a4d8e803b3cb6a34608a15432e5aabe4894c4 | [
"MIT"
] | null | null | null | HW2/HW2/HW2BST.cpp | justin-harper/cs223 | 487a4d8e803b3cb6a34608a15432e5aabe4894c4 | [
"MIT"
] | null | null | null | #include "HW2BST.h"
using namespace std;
HW2BST::Node::Node(int dataValue)
{
Data = dataValue;
Left = Right = NULL;
}
HW2BST::HW2BST(void)
{
m_root = NULL;
}
HW2BST::~HW2BST(void)
{
DeleteTree(m_root);
m_root = NULL;
}
// Should return false if the value already exists in the tree or if memory
// for a new n... | 15.216561 | 91 | 0.633738 | justin-harper |
bc527f58250daa60da22e160c4cebf876ac29bed | 1,651 | cpp | C++ | src/iotjs_objectwrap.cpp | chivalry02/iotjs | a7007b88120a020c5ece835811cec9ded48f9f2b | [
"Apache-2.0"
] | null | null | null | src/iotjs_objectwrap.cpp | chivalry02/iotjs | a7007b88120a020c5ece835811cec9ded48f9f2b | [
"Apache-2.0"
] | null | null | null | src/iotjs_objectwrap.cpp | chivalry02/iotjs | a7007b88120a020c5ece835811cec9ded48f9f2b | [
"Apache-2.0"
] | 1 | 2021-01-16T18:15:34.000Z | 2021-01-16T18:15:34.000Z | /* Copyright 2015 Samsung Electronics Co., Ltd.
*
* 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 la... | 25.4 | 77 | 0.730466 | chivalry02 |
bc5408fbf1d8ea6f7a017d5a00c5d9e344578e99 | 1,375 | cpp | C++ | Algorithm_0001-0250/id0021_MergeTwoSortedList/code.cpp | Louis266/LeetCode | 467a25ae2206d1c1e3ec52c155d3cb07395d5f95 | [
"MIT"
] | null | null | null | Algorithm_0001-0250/id0021_MergeTwoSortedList/code.cpp | Louis266/LeetCode | 467a25ae2206d1c1e3ec52c155d3cb07395d5f95 | [
"MIT"
] | null | null | null | Algorithm_0001-0250/id0021_MergeTwoSortedList/code.cpp | Louis266/LeetCode | 467a25ae2206d1c1e3ec52c155d3cb07395d5f95 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
using namespace std;
struct ListNode
{
int val;
ListNode *next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode *next) : val(x), next(next) {}
};
ListNode *mergeTwoLists(ListNode *l1, ListNode *l2)
{
... | 15.804598 | 59 | 0.434909 | Louis266 |
bc54dd87feaa1f1046c61605e329340587f4bebc | 365 | cpp | C++ | Source/Storm-Helper/include/FastOperation.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | 3 | 2021-11-27T04:56:12.000Z | 2022-02-14T04:02:10.000Z | Source/Storm-Helper/include/FastOperation.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | null | null | null | Source/Storm-Helper/include/FastOperation.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | null | null | null | #include "FastOperation.h"
#include "InstructionSet.h"
bool Storm::FastOperation::canUseSIMD()
{
static const bool k_useSIMD = Storm::InstructionSet::SSE() && Storm::InstructionSet::SSE2();
return k_useSIMD;
}
bool Storm::FastOperation::canUseAVX512()
{
static const bool k_useAVX512 = Storm::InstructionSet::AVX5... | 22.8125 | 93 | 0.745205 | SunlayGGX |
bc608220ebf86816460b37fae9b9c5ba42555fa4 | 7,469 | cpp | C++ | src/prod/src/ServiceModel/naming/ServiceGroupDescriptor.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/ServiceModel/naming/ServiceGroupDescriptor.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/ServiceModel/naming/ServiceGroupDescriptor.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
namespace... | 47.272152 | 167 | 0.629402 | vishnuk007 |
bc64fb60938b3c25c77ce677b371fc307c360265 | 1,604 | cpp | C++ | day15.cpp | sanjitdp/advent-of-code-2020 | dcda77265b26821f14ea7a1b0a1f209b7db21dcf | [
"MIT"
] | null | null | null | day15.cpp | sanjitdp/advent-of-code-2020 | dcda77265b26821f14ea7a1b0a1f209b7db21dcf | [
"MIT"
] | null | null | null | day15.cpp | sanjitdp/advent-of-code-2020 | dcda77265b26821f14ea7a1b0a1f209b7db21dcf | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
const long long NUM_INPUTS = 6;
struct element {
long long num = 0;
long long pos = 0;
};
int main() {
// declarations
std::vector<long long> starting_numbers(NUM_INPUTS);
std::vector<element> sequence;
// take input
for (long long i ... | 26.295082 | 67 | 0.48005 | sanjitdp |
bc65aa4eaefd687438be5611d8fbc05bda4cb756 | 484 | cpp | C++ | MoravaEngine/main.cpp | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | null | null | null | MoravaEngine/main.cpp | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | null | null | null | MoravaEngine/main.cpp | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | 1 | 2022-01-05T03:51:02.000Z | 2022-01-05T03:51:02.000Z | #include "main.h"
void SelectRendererAPI()
{
#if defined(SCENE_HAZEL_VULKAN)
H2M::RendererAPI_H2M::SetAPI(H2M::RendererAPITypeH2M::Vulkan);
#elif defined(SCENE_DX11)
H2M::RendererAPI_H2M::SetAPI(H2M::RendererAPITypeH2M::DX11);
#else:
H2M::RendererAPI_H2M::SetAPI(H2M::RendererAPITypeH2M::OpenGL);
#endif;
}
int ... | 17.285714 | 73 | 0.72314 | imgui-works |
bc6c9f7dfa9b2bbe431ea72047dba410a7a53b6f | 780 | hpp | C++ | src/sdm/utils/linear_algebra/matrix_interface.hpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/utils/linear_algebra/matrix_interface.hpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/utils/linear_algebra/matrix_interface.hpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | /**
* @file matrix_interface.hpp
* @author David Albert (david.albert@insa-lyon.fr)
* @brief File for MatrixInterface interface.
* @version 0.1
* @date 12/01/2021
*
* @copyright Copyright (c) 2021
*
*/
#pragma once
namespace sdm
{
/**
* @brief The Matrix interface. To be considered as a matrix in SDM... | 24.375 | 130 | 0.644872 | SDMStudio |
bc71ec275b4b90ac03181ff76c42e52559a3c1d5 | 197 | hh | C++ | src/Titon/Intl/locales/ha/locale.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | src/Titon/Intl/locales/ha/locale.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | src/Titon/Intl/locales/ha/locale.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh
// Hausa
return Map {
'code' => 'ha',
'iso2' => 'ha',
'iso3' => 'hau',
'timezone' => 'Africa/Niamey',
'title' => 'Hausa',
'plural' => Titon\Intl\PluralRule::RULE_2
};
| 16.416667 | 45 | 0.48731 | ciklon-z |
bc744eca095d9ff69e99ef30587e96efd68cef62 | 5,327 | cpp | C++ | leetcode.com/Weekly Contest 175/4/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/Weekly Contest 175/4/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/Weekly Contest 175/4/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <iostream>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
// dfs: TLE, not sure if it is right
// class Solution {
// private:
// vector<pair<int, int>> seats;
// int total_seats;
// int m, n;
// int result = 0;
// void dfs(int idx, int cur_cnt, vector<vector<... | 32.090361 | 292 | 0.378449 | sky-bro |
bc75ee4303ab2f027286a7b13626e6f49d123a46 | 480 | cpp | C++ | _temscript_module/blankershutter.cpp | christian-at-ceos/temscript | f9037885a404e8391af0b285a9573119dc086058 | [
"BSD-3-Clause"
] | 2 | 2022-03-28T20:50:26.000Z | 2022-03-29T08:40:06.000Z | _temscript_module/blankershutter.cpp | christian-at-ceos/temscript | f9037885a404e8391af0b285a9573119dc086058 | [
"BSD-3-Clause"
] | null | null | null | _temscript_module/blankershutter.cpp | christian-at-ceos/temscript | f9037885a404e8391af0b285a9573119dc086058 | [
"BSD-3-Clause"
] | null | null | null | #include "temscript.h"
#include "defines.h"
#include "types.h"
BOOL_PROPERTY_GETTER(BlankerShutter, ShutterOverrideOn)
BOOL_PROPERTY_SETTER(BlankerShutter, ShutterOverrideOn)
static PyGetSetDef BlankerShutter_getset[] = {
{"ShutterOverrideOn", (getter)&BlankerShutter_get_ShutterOverrideOn, (setter)&BlankerShutt... | 34.285714 | 134 | 0.802083 | christian-at-ceos |
bc772062af5c1cd523b75373753bd7014e920dee | 4,152 | cpp | C++ | lib/src/AMRTools/TensorFineStencilSet.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 10 | 2018-02-01T20:57:36.000Z | 2022-03-17T02:57:49.000Z | lib/src/AMRTools/TensorFineStencilSet.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 19 | 2018-10-04T21:37:18.000Z | 2022-02-25T16:20:11.000Z | lib/src/AMRTools/TensorFineStencilSet.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 11 | 2019-01-12T23:33:32.000Z | 2021-08-09T15:19:50.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "TensorFineStencilSet.H"
#include "NamespaceHeader.H"
TensorFineSte... | 26.615385 | 78 | 0.63632 | rmrsk |
bc779ced7b1d517b2a1b1111162da770622b22e5 | 2,217 | hpp | C++ | core/src/main/cpp/include/render/Flow.hpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | 2 | 2021-09-16T15:14:39.000Z | 2021-09-17T14:39:52.000Z | core/src/main/cpp/include/render/Flow.hpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | null | null | null | core/src/main/cpp/include/render/Flow.hpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by caolong on 2020/7/29.
//
#pragma once
#include <softarch/IComFunc.hpp>
#include <softarch/GLThread.hpp>
#include <softarch/IThreadPoster.hpp>
#include <softarch/IMsg.hpp>
namespace clt {
/**
* 管理单个线程
* 线程可以是GL线程或普通线程
* 基本线程 render 是渲染主线程,shared 是用来加载纹理,字体等资源的线程
*/
class Flow final
... | 22.622449 | 82 | 0.667118 | caolongcl |
bc7992cff68a0c135ac51fca49d5deadc3217bc0 | 2,041 | hpp | C++ | src/Tracker/EmbeddingsCalculator.hpp | xzou999/Multitarget-tracker | 94b22341d009c9585d08fcb64c25859283f86e7d | [
"Apache-2.0"
] | 1,801 | 2015-01-19T16:28:03.000Z | 2022-03-31T12:28:56.000Z | src/Tracker/EmbeddingsCalculator.hpp | xzou999/Multitarget-tracker | 94b22341d009c9585d08fcb64c25859283f86e7d | [
"Apache-2.0"
] | 168 | 2016-03-02T06:23:20.000Z | 2022-03-25T12:29:37.000Z | src/Tracker/EmbeddingsCalculator.hpp | xzou999/Multitarget-tracker | 94b22341d009c9585d08fcb64c25859283f86e7d | [
"Apache-2.0"
] | 608 | 2015-01-19T16:27:51.000Z | 2022-03-30T02:07:56.000Z | #pragma once
///
/// \brief The EmbeddingsCalculator class
///
class EmbeddingsCalculator
{
public:
EmbeddingsCalculator() = default;
virtual ~EmbeddingsCalculator() = default;
///
bool Initialize(const std::string& cfgName, const std::string& weightsName, const cv::Size& inputLayer)
{
#ifdef USE_OCV_EMBED... | 21.946237 | 107 | 0.618324 | xzou999 |
bc8054a928409f2d637dcd4f59734044ecc2296f | 25,469 | cpp | C++ | src/clos/dyn_net_sch.cpp | Flasew/ffsim-opera | ec4dd1ffa1fd33e2267f9a11b60e8cbf8400f26c | [
"BSD-3-Clause"
] | null | null | null | src/clos/dyn_net_sch.cpp | Flasew/ffsim-opera | ec4dd1ffa1fd33e2267f9a11b60e8cbf8400f26c | [
"BSD-3-Clause"
] | null | null | null | src/clos/dyn_net_sch.cpp | Flasew/ffsim-opera | ec4dd1ffa1fd33e2267f9a11b60e8cbf8400f26c | [
"BSD-3-Clause"
] | null | null | null | #include "dyn_net_sch.h"
#include "ecnqueue.h"
#include "queue_lossless.h"
#include "tcp.h"
#include <random>
#ifdef USE_GUROBI
#include "gurobi_c++.h"
#endif
#define INSERT_OR_ADD(_map, _key, _val) do { \
if ((_map).find(_key) == (_map).end()) { \
... | 34.51084 | 167 | 0.554635 | Flasew |
bc807fd72b78dd6114616871187fbb0559a619d6 | 1,850 | cpp | C++ | union_find_tree/uftree2.cpp | skyknsk/DataStructures | 863c98922129dde93e65720dc2a72c7476bb4201 | [
"MIT"
] | null | null | null | union_find_tree/uftree2.cpp | skyknsk/DataStructures | 863c98922129dde93e65720dc2a72c7476bb4201 | [
"MIT"
] | null | null | null | union_find_tree/uftree2.cpp | skyknsk/DataStructures | 863c98922129dde93e65720dc2a72c7476bb4201 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cstdint>
#define uint uint32_t
template <typename TYPE>
class UFTree {
private:
std::vector<TYPE> par;
std::vector<TYPE> rank;
public:
explicit UFTree(TYPE n)
: par{n}, rank{n}
{
for(TYPE i=0; i<n; ++i) {
par[i] = i;
ra... | 18.877551 | 138 | 0.538919 | skyknsk |
bc835e99b879686be791bdedd5e1057a4f384cc9 | 785 | cpp | C++ | Codeforces/580A_Kefa and First Steps.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | 1 | 2020-04-13T11:12:19.000Z | 2020-04-13T11:12:19.000Z | Codeforces/580A_Kefa and First Steps.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | Codeforces/580A_Kefa and First Steps.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | /*
People who don't work hard
don't have the right
to be envious of the people with talent.
People fail because
they don't understand
the hard work necessary to be successful.
*/
#include <bits/stdc++.h>
using namespace std;
int n, maks, arr[100007], dp[100007];
int main()
{
... | 18.690476 | 55 | 0.417834 | lieahau |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.