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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16fc9b575fe868a8a6d2909989edd3756090747a | 817 | cpp | C++ | max_subarray_sum.cpp | ShinAKS/cses_solutions | e4ebcf80c010785f1b73df7aa8052da07ad549e0 | [
"MIT"
] | null | null | null | max_subarray_sum.cpp | ShinAKS/cses_solutions | e4ebcf80c010785f1b73df7aa8052da07ad549e0 | [
"MIT"
] | null | null | null | max_subarray_sum.cpp | ShinAKS/cses_solutions | e4ebcf80c010785f1b73df7aa8052da07ad549e0 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define pii pair<int,int>
#define vi vector<int>
#define vii vector<pii>
#define mi map<int,int>
#define mii map<pii,int>
#define all(a) (a).begin(),(a).end()
#define ff first
#d... | 22.694444 | 41 | 0.575275 | ShinAKS |
16fd0b46ec285a93c2c91b74a820d703b9aedcbb | 349 | cpp | C++ | done/sleepy.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/sleepy.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/sleepy.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
int cows[101];
int main() {
ifstream fin ("sleepy.in");
ofstream fout ("sleepy.out");
int N; fin>>N;
for (int i=0; i<N; i++) fin>>cows[i];
int ans=N-1;
for (int i=N-2; i>=0; i--) {
if (cows[i] < cows[i+1]) ans=i;
else b... | 20.529412 | 41 | 0.524355 | birdhumming |
16ffbc8bd3d3b527823de3876885b5dd57192d56 | 574 | cpp | C++ | src/main/cpp/palindrome-linked-list.cpp | wittyResry/leetcode | 182258d91d8cd160fd897e9a5cce33104ac31afe | [
"Apache-2.0"
] | 1 | 2020-07-27T09:48:06.000Z | 2020-07-27T09:48:06.000Z | src/main/cpp/palindrome-linked-list.cpp | wittyResry/leetcode | 182258d91d8cd160fd897e9a5cce33104ac31afe | [
"Apache-2.0"
] | 2 | 2016-05-25T07:32:35.000Z | 2016-05-25T07:48:40.000Z | src/main/cpp/palindrome-linked-list.cpp | wittyResry/leetcode | 182258d91d8cd160fd897e9a5cce33104ac31afe | [
"Apache-2.0"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
int a[100005];
int cnt;
class Solution {
public:
bool isPalindrome(ListNode* head) {
ListNode* t = new ListNode(-1);
t -> next = head;
... | 22.076923 | 80 | 0.458188 | wittyResry |
e5029bc4275a56a6ff1b6eaa4b5abdd78d40d4f8 | 5,170 | cpp | C++ | src/modules/noise/noise_module_dialog.cpp | jfdelnero/WinDSP | 1ff66bc6e2070fcaf65709abc8512230c9f6f11a | [
"FTL"
] | 2 | 2016-09-06T02:09:45.000Z | 2017-11-06T00:35:29.000Z | src/modules/noise/noise_module_dialog.cpp | jfdelnero/WinDSP | 1ff66bc6e2070fcaf65709abc8512230c9f6f11a | [
"FTL"
] | null | null | null | src/modules/noise/noise_module_dialog.cpp | jfdelnero/WinDSP | 1ff66bc6e2070fcaf65709abc8512230c9f6f11a | [
"FTL"
] | 2 | 2015-10-13T15:19:45.000Z | 2021-05-22T16:31:07.000Z | // Noise_module_dialog.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include <malloc.h>
#include <string.h>
#include "module.h"
#include "noise_module.h"
#include "noise_module_dialog.h"
#include "sound_io.h"
#include "scheduler.h"
#include "ChildView.h"
#include "MainFrm.h"
#include "WinDS... | 28.882682 | 98 | 0.75648 | jfdelnero |
e5030463fa6f1e08acfcb000b0bb297689d12a87 | 11,171 | cpp | C++ | ManagedScripts/MConsoleFunctionClassPtrDynamicVectorClass.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | ManagedScripts/MConsoleFunctionClassPtrDynamicVectorClass.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | ManagedScripts/MConsoleFunctionClassPtrDynamicVectorClass.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | /*
Copyright 2020 Neijwiert
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, software
distr... | 32.952802 | 172 | 0.803509 | mpforums |
e50371fd0a20e4d488e0de581ac0968e4c34f526 | 9,359 | cpp | C++ | tests/gl-500-texture-sparse-ext.cpp | LRLVEC/OpenGLReading | 827cd99f6dfa0c86a26b38d21495217465b1c731 | [
"Unlicense"
] | 2 | 2019-03-02T14:46:25.000Z | 2020-06-27T09:34:08.000Z | tests/gl-500-texture-sparse-ext.cpp | LRLVEC/OpenGLReading | 827cd99f6dfa0c86a26b38d21495217465b1c731 | [
"Unlicense"
] | null | null | null | tests/gl-500-texture-sparse-ext.cpp | LRLVEC/OpenGLReading | 827cd99f6dfa0c86a26b38d21495217465b1c731 | [
"Unlicense"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Samples Pack (ogl-samples.g-truc.net)
///
/// Copyright (c) 2004 - 2014 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated doc... | 34.662963 | 145 | 0.724116 | LRLVEC |
e50ab33feaecce8085a79036fa14fc81a8d34a64 | 3,564 | cc | C++ | earth_enterprise/src/common/gedbroot/proto_dbroot_util.cc | seamusdunlop123/earthenterprise | a2651b1c00dd6230fd5d3d47502d228dbfca0f63 | [
"Apache-2.0"
] | 3 | 2017-12-21T05:40:09.000Z | 2018-05-16T11:18:25.000Z | earth_enterprise/src/common/gedbroot/proto_dbroot_util.cc | seamusdunlop123/earthenterprise | a2651b1c00dd6230fd5d3d47502d228dbfca0f63 | [
"Apache-2.0"
] | null | null | null | earth_enterprise/src/common/gedbroot/proto_dbroot_util.cc | seamusdunlop123/earthenterprise | a2651b1c00dd6230fd5d3d47502d228dbfca0f63 | [
"Apache-2.0"
] | 1 | 2019-09-09T09:48:08.000Z | 2019-09-09T09:48:08.000Z | // Copyright 2017 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 required by applicable law or agreed to in... | 34.601942 | 76 | 0.699214 | seamusdunlop123 |
e50c1cc2e8c070c1e8d4fec149d88e2540becee7 | 344 | cpp | C++ | aulas/aula_13/03_soma_vetorial.cpp | sueyvid/Atividade_de_programacao_cpp | 691941fc94125eddd4e5466862d5a1fe04dfb520 | [
"MIT"
] | null | null | null | aulas/aula_13/03_soma_vetorial.cpp | sueyvid/Atividade_de_programacao_cpp | 691941fc94125eddd4e5466862d5a1fe04dfb520 | [
"MIT"
] | null | null | null | aulas/aula_13/03_soma_vetorial.cpp | sueyvid/Atividade_de_programacao_cpp | 691941fc94125eddd4e5466862d5a1fe04dfb520 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int n, i;
cin >> n;
float u[n], v[n], soma[n];
for(i = 0; i < n; i++){
cin >> u[i];
}
for(i = 0; i < n; i++){
cin >> v[i];
}
for(i = 0; i < n; i++){
soma[i] = u[i] + v[i];
cout << soma[i] << endl... | 14.956522 | 32 | 0.363372 | sueyvid |
e50d0d03dff50f651b459f6dfcc6f0ba9662f536 | 5,313 | hpp | C++ | source/resource_manager.hpp | JROB774/tein-editor | f952a1c7ad1941f5a5266c232b1d50ab1a26f379 | [
"MIT"
] | 2 | 2018-09-02T11:30:27.000Z | 2020-07-21T15:53:05.000Z | source/resource_manager.hpp | thatb0y/tein-editor | 4c49be9534e439154553a188df758fa956b20e49 | [
"MIT"
] | null | null | null | source/resource_manager.hpp | thatb0y/tein-editor | 4c49be9534e439154553a188df758fa956b20e49 | [
"MIT"
] | null | null | null | #pragma once
// Various clips for the different icons that are found in resources_icons.
GLOBAL constexpr quad CLIP_NONE = { 0, 0, 0, 0 };
GLOBAL constexpr quad CLIP_BULLET = { 96, 108, 24, 12 };
GLOBAL constexpr quad CLIP_BRUSH = { 0, 0, 24, 24 };
GLOBAL constexpr quad CLIP_FILL =... | 53.666667 | 180 | 0.668361 | JROB774 |
e510f14ae650980e05145b4fdd689122be3eeb30 | 3,189 | cpp | C++ | samples/luxcoreui/lightstrategywindow.cpp | LuxRender/LuxRays | edb001ddeb744b534f6fe98c7b789d4635196718 | [
"Apache-2.0"
] | null | null | null | samples/luxcoreui/lightstrategywindow.cpp | LuxRender/LuxRays | edb001ddeb744b534f6fe98c7b789d4635196718 | [
"Apache-2.0"
] | null | null | null | samples/luxcoreui/lightstrategywindow.cpp | LuxRender/LuxRays | edb001ddeb744b534f6fe98c7b789d4635196718 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
* Copyright 1998-2017 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxRender. *
* ... | 40.884615 | 118 | 0.5127 | LuxRender |
e511cc5145c2f51ae885a3d48a6dce85ecb2a5d6 | 4,722 | cpp | C++ | httpservice/src/HttpServletPart.cpp | githubforsank/CppMicroServices | e6ae266cd02b7145f17bc2499e5e8234e4ff76c2 | [
"Apache-2.0"
] | 1 | 2019-11-01T02:57:31.000Z | 2019-11-01T02:57:31.000Z | httpservice/src/HttpServletPart.cpp | githubforsank/CppMicroServices | e6ae266cd02b7145f17bc2499e5e8234e4ff76c2 | [
"Apache-2.0"
] | 1 | 2019-11-05T12:51:59.000Z | 2019-11-05T12:51:59.000Z | httpservice/src/HttpServletPart.cpp | githubforsank/CppMicroServices | e6ae266cd02b7145f17bc2499e5e8234e4ff76c2 | [
"Apache-2.0"
] | null | null | null | /*=============================================================================
Library: CppMicroServices
Copyright (c) The CppMicroServices developers. See the COPYRIGHT
file at the top-level directory of this distribution and at
https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT .
Licensed un... | 24.091837 | 79 | 0.717916 | githubforsank |
e518b1d2e12e32f87f3bfcbbffbfcfa9c7d748c0 | 66,942 | cpp | C++ | master/core/third/libtorrent/src/bt_peer_connection.cpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:48.000Z | 2019-10-26T21:44:59.000Z | master/core/third/libtorrent/src/bt_peer_connection.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | null | null | null | master/core/third/libtorrent/src/bt_peer_connection.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:49.000Z | 2018-12-27T03:20:31.000Z | /*
Copyright (c) 2003 - 2006, Arvid Norberg
Copyright (c) 2007, Arvid Norberg, Un Shyam
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyri... | 26.459289 | 101 | 0.670058 | importlib |
e521956e66e08e6dc7d988c8cd1f2227f10ef518 | 3,826 | cpp | C++ | engine/platform/rpi/src/rpi_platform_manager.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 12 | 2017-02-25T17:14:15.000Z | 2021-08-02T13:39:18.000Z | engine/platform/rpi/src/rpi_platform_manager.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 31 | 2017-02-23T06:59:44.000Z | 2017-05-21T11:49:10.000Z | engine/platform/rpi/src/rpi_platform_manager.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 5 | 2017-05-02T05:34:53.000Z | 2020-05-19T06:57:50.000Z | /*
* Copyright (c) 2012-2018 Robin Degen
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge,... | 29.430769 | 118 | 0.694198 | aeon-engine |
e52655eb3f64eed10196c5dd8505f79f7a52332a | 7,116 | cpp | C++ | userspace/engine/evttype_index_ruleset.cpp | FedeDP/falco | 75712caa9a7d1079aa3357b4bfd8430d0b33dfcc | [
"Apache-2.0"
] | 966 | 2016-05-17T22:09:20.000Z | 2018-10-04T23:11:02.000Z | userspace/engine/evttype_index_ruleset.cpp | FedeDP/falco | 75712caa9a7d1079aa3357b4bfd8430d0b33dfcc | [
"Apache-2.0"
] | 185 | 2016-05-17T22:59:54.000Z | 2018-10-03T16:05:04.000Z | userspace/engine/evttype_index_ruleset.cpp | FedeDP/falco | 75712caa9a7d1079aa3357b4bfd8430d0b33dfcc | [
"Apache-2.0"
] | 118 | 2016-05-18T14:13:22.000Z | 2018-10-04T18:38:29.000Z | /*
Copyright (C) 2019 The Falco Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 22.807692 | 138 | 0.711776 | FedeDP |
e528aae0006cd62454c9c862b384c54fc0cf6fc6 | 594 | inl | C++ | Memory/Implementations/Windows/VirtualMemoryAllocator.inl | jsbourdon/salvation_common | 33024058685e75e0cebb713255dec4232ab671c2 | [
"MIT"
] | null | null | null | Memory/Implementations/Windows/VirtualMemoryAllocator.inl | jsbourdon/salvation_common | 33024058685e75e0cebb713255dec4232ab671c2 | [
"MIT"
] | null | null | null | Memory/Implementations/Windows/VirtualMemoryAllocator.inl | jsbourdon/salvation_common | 33024058685e75e0cebb713255dec4232ab671c2 | [
"MIT"
] | null | null | null | #pragma once
#include "Memory/VirtualMemoryAllocator.h"
using namespace salvation::memory;
void* VirtualMemoryAllocator::NativeReserve(size_t byteSize)
{
return VirtualAlloc(NULL, byteSize, MEM_RESERVE, PAGE_READWRITE);
}
void VirtualMemoryAllocator::NativeCommit(void *pMemory, size_t size)
{
VirtualAlloc(p... | 22 | 71 | 0.781145 | jsbourdon |
e52b191c1f707828b5c484ec44e5ca0a2c4586b8 | 7,989 | hpp | C++ | include/GlobalNamespace/FlyingScoreEffect.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/FlyingScoreEffect.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/FlyingScoreEffect.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: FlyingObjectEffect
#include "GlobalNamespace/FlyingObjectEffect.hpp"
... | 52.559211 | 698 | 0.74903 | darknight1050 |
e52f0188bbfdd69e92e68d1902cf0c6080eb6f44 | 1,370 | cpp | C++ | Submissions/Codeforces/352A.cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | Submissions/Codeforces/352A.cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | Submissions/Codeforces/352A.cpp | purhan/mindsport | d14fe8917c64b475589f494d98b74e99c9e064e5 | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
#include<vector>
using namespace std;
#define lli long long int
#define fo(i,b,n) for(int i=b;i<n;i++)
#define si(x) scanf("%d",&x)
#define sll(x) scanf("%lld",&x)
#define ss(s) scanf("%s",s)
#define pi(x) printf("%d\n",x)
#define pl(x) printf("%lld\n",x)
#define ps(s) printf(... | 20.757576 | 71 | 0.524818 | purhan |
e5353b78ca831225075345c801569a485fd4d74e | 1,405 | cpp | C++ | src/utilities/diagnostics.cpp | esclapez/incflo | cb1a4c2a0c32a3aeb9995d70119efd83d26029ec | [
"BSD-3-Clause"
] | 20 | 2019-08-07T05:30:35.000Z | 2022-03-16T00:17:29.000Z | src/utilities/diagnostics.cpp | esclapez/incflo | cb1a4c2a0c32a3aeb9995d70119efd83d26029ec | [
"BSD-3-Clause"
] | 17 | 2018-09-28T23:28:11.000Z | 2022-01-07T21:21:44.000Z | src/utilities/diagnostics.cpp | esclapez/incflo | cb1a4c2a0c32a3aeb9995d70119efd83d26029ec | [
"BSD-3-Clause"
] | 16 | 2018-12-25T00:47:55.000Z | 2022-03-17T15:35:30.000Z | #include <incflo.H>
using namespace amrex;
//
// Print maximum values (useful for tracking evolution)
//
void incflo::PrintMaxValues(Real time_in)
{
return; // xxxxx TODO
#if 0
ComputeDivU(time_in);
for(int lev = 0; lev <= finest_level; lev++)
{
amrex::Print() << "Level " << lev << std::endl... | 23.813559 | 93 | 0.487544 | esclapez |
e53c7408f9580aae94300322d7ade4be5d06a5ee | 13,812 | hpp | C++ | include/ogs.hpp | rzambre/hipBone | 3202f7161f478510e0d0057ae42a633d7dc4943e | [
"MIT"
] | 4 | 2022-02-28T17:41:58.000Z | 2022-03-03T18:09:05.000Z | include/ogs.hpp | paranumal/dawgs | 34048957e632e28029a3145ab3135e0ed660a925 | [
"MIT"
] | 6 | 2022-03-14T18:06:17.000Z | 2022-03-29T14:53:06.000Z | include/ogs.hpp | paranumal/dawgs | 34048957e632e28029a3145ab3135e0ed660a925 | [
"MIT"
] | 1 | 2020-03-25T17:10:25.000Z | 2020-03-25T17:10:25.000Z | /*
The MIT License (MIT)
Copyright (c) 2017-2022 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus
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 limi... | 34.358209 | 86 | 0.648132 | rzambre |
e53cc583ba1dd06f2eb7ae811372eabe4ab1d047 | 2,346 | cxx | C++ | tests/hemm.cxx | evaleev/scalapackpp | bf17a7246af38d34523bd0099b01d9961d06d311 | [
"BSD-3-Clause"
] | 2 | 2021-11-30T15:04:15.000Z | 2021-11-30T18:41:58.000Z | tests/hemm.cxx | evaleev/scalapackpp | bf17a7246af38d34523bd0099b01d9961d06d311 | [
"BSD-3-Clause"
] | 5 | 2020-02-12T19:29:45.000Z | 2021-05-28T16:13:48.000Z | tests/hemm.cxx | evaleev/scalapackpp | bf17a7246af38d34523bd0099b01d9961d06d311 | [
"BSD-3-Clause"
] | 2 | 2020-02-12T03:44:12.000Z | 2021-11-30T13:54:03.000Z | /**
* This file is a part of scalapackpp (see LICENSE)
*
* Copyright (c) 2019-2020 David Williams-Young
* All rights reserved
*/
#include "ut.hpp"
#include <scalapackpp/scatter_gather.hpp>
#include <scalapackpp/block_cyclic.hpp>
#include <scalapackpp/pblas/symm.hpp>
#include <scalapackpp/pblas/hemm.hpp>
SCALA... | 26.965517 | 68 | 0.654731 | evaleev |
e53dc04ca2041c9aa2a0c4f65f4860550c3cf1db | 917 | hpp | C++ | Section 2.2/Exercise221/Exercise221/Point.hpp | scottsidoli/C-for-Financial-Engineering---Baruch-Pre-MFE-Certificate | 79c2fb297a85c914d5f0b8671bb17636801e3ce7 | [
"MIT"
] | 1 | 2021-11-05T08:14:37.000Z | 2021-11-05T08:14:37.000Z | Section 2.2/Exercise221/Exercise221/Point.hpp | scottsidoli/C-for-Financial-Engineering---Baruch-Pre-MFE-Certificate | 79c2fb297a85c914d5f0b8671bb17636801e3ce7 | [
"MIT"
] | null | null | null | Section 2.2/Exercise221/Exercise221/Point.hpp | scottsidoli/C-for-Financial-Engineering---Baruch-Pre-MFE-Certificate | 79c2fb297a85c914d5f0b8671bb17636801e3ce7 | [
"MIT"
] | null | null | null | // Exercise 2.2.1 - The Point Class
//
// by Scott Sidoli
//
// 4-15-19
//
// Point.hpp
// The goal of this exercise is to create the class "Point" whose objects are 2-dimensional
// points in the (x,y)-plane.
// Preprocessor directives to prevent multiple inclusions.
#ifndef Point_HPP
#define Point_HPP
... | 23.512821 | 92 | 0.640131 | scottsidoli |
e53f888b71cb44f6e31f377fe6c655dd610f1281 | 6,337 | cpp | C++ | lib/PhasarLLVM/DataFlowSolver/WPDS/Problems/WPDSSolverTest.cpp | ddiepo-pjr/phasar | 78c93057360f71bcd49bf98e275135c70eb27e90 | [
"MIT"
] | null | null | null | lib/PhasarLLVM/DataFlowSolver/WPDS/Problems/WPDSSolverTest.cpp | ddiepo-pjr/phasar | 78c93057360f71bcd49bf98e275135c70eb27e90 | [
"MIT"
] | null | null | null | lib/PhasarLLVM/DataFlowSolver/WPDS/Problems/WPDSSolverTest.cpp | ddiepo-pjr/phasar | 78c93057360f71bcd49bf98e275135c70eb27e90 | [
"MIT"
] | 1 | 2020-11-06T06:19:29.000Z | 2020-11-06T06:19:29.000Z | /******************************************************************************
* Copyright (c) 2017 Philipp Schubert.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Philipp Schubert and others
**********************... | 38.877301 | 79 | 0.616853 | ddiepo-pjr |
e54261c2ee222061b5df424ef3bfa76610f34f72 | 252 | cpp | C++ | CsStatusEffect/Source/CsSe/Public/Event/Damage/CsStatusEffectEvent_Damage.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsStatusEffect/Source/CsSe/Public/Event/Damage/CsStatusEffectEvent_Damage.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsStatusEffect/Source/CsSe/Public/Event/Damage/CsStatusEffectEvent_Damage.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "Event/Damage/CsStatusEffectEvent_Damage.h"
#include "CsSe.h"
const FName NCsStatusEffect::NEvent::NDamage::IDamage::Name = FName("NCsStatusEffect::NEvent::NDamage::IDamage"); | 50.4 | 113 | 0.781746 | closedsum |
e5433efa44ddf8fb4b00e0edf9a2d4f1009c49ed | 579 | hpp | C++ | src/cli/Event.hpp | timorl/tiyl | 5195434092fd6ee262e620be2c97618511e66e38 | [
"MIT"
] | null | null | null | src/cli/Event.hpp | timorl/tiyl | 5195434092fd6ee262e620be2c97618511e66e38 | [
"MIT"
] | null | null | null | src/cli/Event.hpp | timorl/tiyl | 5195434092fd6ee262e620be2c97618511e66e38 | [
"MIT"
] | null | null | null | #ifndef TIYL_CLI_EVENT_HPP
#define TIYL_CLI_EVENT_HPP
#include"cli/Command.hpp"
#include"cli/Completions.hpp"
#include"projects/Event.hpp"
namespace cli {
using Event = projects::Event;
using Events = projects::Events;
void printEventNames(Events const & events);
int eventAdd(Context & c, Arguments const & arg... | 19.965517 | 52 | 0.739206 | timorl |
e543eb3dff6b23cd321ed0b7a8fac7071c0b404f | 936 | cpp | C++ | trikKernel/src/deinitializationHelper.cpp | thetoropov/trikRuntime | f236e441875ff4ab999803252f26075e089ae04c | [
"Apache-2.0"
] | 17 | 2015-03-20T16:56:36.000Z | 2019-07-24T08:13:23.000Z | trikKernel/src/deinitializationHelper.cpp | thetoropov/trikRuntime | f236e441875ff4ab999803252f26075e089ae04c | [
"Apache-2.0"
] | 276 | 2015-02-01T20:25:37.000Z | 2022-03-25T13:18:14.000Z | trikKernel/src/deinitializationHelper.cpp | IKhonakhbeeva/trikRuntime | b87c4c4eb50ad505e69964e594123e3b4138f17d | [
"Apache-2.0"
] | 50 | 2015-01-03T13:56:26.000Z | 2022-03-29T12:47:39.000Z | /* Copyright 2016 Yurii Litvinov.
*
* 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... | 30.193548 | 84 | 0.741453 | thetoropov |
e544bd4b7256679efcc6dbb00faa7369130d91fd | 1,069 | hpp | C++ | cpp/NXApplication.hpp | nxplatform/nx-mobile | 0dc174c893f2667377cb2ef7e5ffeb212fa8b3e5 | [
"Apache-2.0"
] | 1 | 2018-12-15T19:57:24.000Z | 2018-12-15T19:57:24.000Z | cpp/NXApplication.hpp | nxplatform/nx-mobile | 0dc174c893f2667377cb2ef7e5ffeb212fa8b3e5 | [
"Apache-2.0"
] | null | null | null | cpp/NXApplication.hpp | nxplatform/nx-mobile | 0dc174c893f2667377cb2ef7e5ffeb212fa8b3e5 | [
"Apache-2.0"
] | null | null | null | //
// NXApplication.hpp
// NXFramework
//
// Created by heart on 2/6/2560 BE.
// Copyright © 2560 3dsinteractive.com. All rights reserved.
//
#ifndef NXApplication_hpp
#define NXApplication_hpp
#include <stdio.h>
#include "NXRouteNode.hpp"
#include "binder/NXBinder.hpp"
#include "views/Window.hpp"
BEGIN_NS_NX
cl... | 20.960784 | 61 | 0.700655 | nxplatform |
e54afa058d21ed1b55f8afbde60668e758a1eb2e | 11,040 | hpp | C++ | include/ensmallen_bits/sdp/lrsdp_function_impl.hpp | walragatver/ensmallen | 7c37b614e35bd1e8f2131d5ee631013493be53bf | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/ensmallen_bits/sdp/lrsdp_function_impl.hpp | walragatver/ensmallen | 7c37b614e35bd1e8f2131d5ee631013493be53bf | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/ensmallen_bits/sdp/lrsdp_function_impl.hpp | walragatver/ensmallen | 7c37b614e35bd1e8f2131d5ee631013493be53bf | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /**
* @file lrsdp_function.cpp
* @author Ryan Curtin
* @author Abhishek Laddha
*
* Implementation of the LRSDPFunction class, and also template specializations
* for faster execution with the AugLagrangian optimizer.
*
* ensmallen is free software; you may redistribute it and/or modify it under
* the terms of ... | 34.179567 | 80 | 0.693116 | walragatver |
e558139c1a021c6d1ee0bf3890b51a98c6c1c018 | 1,872 | cxx | C++ | sdk/procmonsdk/thread.cxx | Syr0/openprocmon | 2a4b7b9f5da97215fcb59354a2951a62a3aa41a7 | [
"MIT"
] | 90 | 2020-07-28T06:44:56.000Z | 2022-03-10T03:59:33.000Z | sdk/procmonsdk/thread.cxx | L4ys/openprocmon | 44fb542922f31f9548739dc81d7a7269a564ea41 | [
"MIT"
] | 4 | 2021-02-24T09:13:27.000Z | 2022-01-18T08:44:52.000Z | sdk/procmonsdk/thread.cxx | L4ys/openprocmon | 44fb542922f31f9548739dc81d7a7269a564ea41 | [
"MIT"
] | 27 | 2020-07-28T06:49:22.000Z | 2022-02-14T05:09:56.000Z |
#include "pch.hpp"
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <windows.h>
#include "thread.hpp"
#include "logger.hpp"
CThread::CThread()
{
}
CThread::~CThread()
{
//Kill();
SetTimeout(5);
Stop();
}
DWORD WINAPI CThread::ThreadProc(void* lpParam)
{
CThread* pTh... | 16.137931 | 84 | 0.621795 | Syr0 |
e55b75b9846d21e314bd0bb44b3afbc83e722dcb | 3,930 | cpp | C++ | src/editor.cpp | Colbeyyy/eden | 2955b92ec3038763b983ddc4c1c0db97b93d8227 | [
"Unlicense"
] | 11 | 2019-09-30T18:07:59.000Z | 2020-03-01T23:27:12.000Z | src/editor.cpp | Colbeyyy/eden | 2955b92ec3038763b983ddc4c1c0db97b93d8227 | [
"Unlicense"
] | 1 | 2019-09-05T19:04:17.000Z | 2019-09-05T19:04:17.000Z | src/editor.cpp | Colbeyyy/eden | 2955b92ec3038763b983ddc4c1c0db97b93d8227 | [
"Unlicense"
] | 1 | 2019-09-05T05:19:37.000Z | 2019-09-05T05:19:37.000Z | #include "editor.h"
#include "draw.h"
#include "buffer.h"
#include "gui.h"
#include "input.h"
#include "buffer_view.h"
#include "config.h"
#include "buffer.h"
#include <ch_stl/opengl.h>
#include <ch_stl/time.h>
#include <ch_stl/hash_table.h>
#if CH_PLATFORM_WINDOWS
#include "win32/icon_win32.h"
#endif
ch::Window th... | 24.259259 | 130 | 0.735623 | Colbeyyy |
e55bd4e8091a4a93e8d0051e7baf021c9afb9247 | 1,706 | cpp | C++ | src/FalconEngine/Graphics/Renderer/Resource/VertexBuffer.cpp | LiuYiZhou95/FalconEngine | b798f20e9dbd01334a4e4cdbbd9a5bec74966418 | [
"MIT"
] | null | null | null | src/FalconEngine/Graphics/Renderer/Resource/VertexBuffer.cpp | LiuYiZhou95/FalconEngine | b798f20e9dbd01334a4e4cdbbd9a5bec74966418 | [
"MIT"
] | null | null | null | src/FalconEngine/Graphics/Renderer/Resource/VertexBuffer.cpp | LiuYiZhou95/FalconEngine | b798f20e9dbd01334a4e4cdbbd9a5bec74966418 | [
"MIT"
] | 1 | 2021-08-25T07:39:02.000Z | 2021-08-25T07:39:02.000Z | #include <FalconEngine/Graphics/Renderer/Resource/VertexBuffer.h>
#include <FalconEngine/Graphics/Renderer/Resource/VertexBufferBinding.h>
using namespace std;
namespace FalconEngine
{
/************************************************************************/
/* Constructors and Destructor ... | 26.246154 | 80 | 0.48007 | LiuYiZhou95 |
e55c4d0c07d2369907cf1bfa25a542e1513aa913 | 8,443 | hpp | C++ | phylanx/util/serialization/blaze.hpp | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | 1 | 2019-08-17T21:19:57.000Z | 2019-08-17T21:19:57.000Z | phylanx/util/serialization/blaze.hpp | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | null | null | null | phylanx/util/serialization/blaze.hpp | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017 Parsa Amini
//
// 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)
// phylanxinspect:noinclude:HPX_ASSERT
#if !defined(PHYLANX_UTIL_BLAZE_SERIALIZATION_HPP)
#define PHYLANX_UTIL_BLAZE_SERIALIZ... | 33.371542 | 80 | 0.582494 | frzfrsfra4 |
e5619e964eee98f7dd2248e9afe3ce611a83e503 | 747 | cpp | C++ | Exercises/Voraces/Los broncos de Boston/problem.cpp | BMZE/MARP | a184c871786167517cd2e791695bd40d1a7e3ba7 | [
"MIT"
] | 1 | 2021-03-04T16:13:03.000Z | 2021-03-04T16:13:03.000Z | Exercises/Voraces/Los broncos de Boston/problem.cpp | BMZE/MARP | a184c871786167517cd2e791695bd40d1a7e3ba7 | [
"MIT"
] | null | null | null | Exercises/Voraces/Los broncos de Boston/problem.cpp | BMZE/MARP | a184c871786167517cd2e791695bd40d1a7e3ba7 | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
//O(n log n) where n is the number of matches
bool SolveCase()
{
int n; cin >> n;
if (n == 0)
return false;
vector<int> homeTeam; homeTeam.resize(n);
vector<int> awayTeam; awayTeam.resize(n);
for (int i = 0; i < n; i++)
cin >> a... | 18.219512 | 74 | 0.609103 | BMZE |
e56375566f940d1db380429ce49124ee91b5e851 | 4,820 | cpp | C++ | pochi_libs_and_includes/include/fastinterp/fastinterp_tpl_partial_inline_pointer_arith.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | pochi_libs_and_includes/include/fastinterp/fastinterp_tpl_partial_inline_pointer_arith.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | pochi_libs_and_includes/include/fastinterp/fastinterp_tpl_partial_inline_pointer_arith.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | #define POCHIVM_INSIDE_FASTINTERP_TPL_CPP
#include "fastinterp_tpl_common.hpp"
#include "fastinterp_tpl_object_size_kind.h"
#include "pochivm/ast_arithmetic_expr_type.h"
namespace PochiVM
{
// Partially inlined pointer arithmetic expression.
// computes var + %
//
struct FIPartialInlineLhsPointerArithmeticImpl
{
... | 31.92053 | 119 | 0.638589 | dghosef |
e568bcddce8a006b6b66619828ecf38efe99744a | 3,280 | cpp | C++ | targeting.cpp | devenrao/openpower-proc-control | 1dc3acd254df36670e978ad2fc4af13d7ce84bcb | [
"Apache-2.0"
] | 1 | 2020-04-22T17:21:10.000Z | 2020-04-22T17:21:10.000Z | targeting.cpp | devenrao/openpower-proc-control | 1dc3acd254df36670e978ad2fc4af13d7ce84bcb | [
"Apache-2.0"
] | 5 | 2017-06-30T10:14:12.000Z | 2021-11-28T19:42:41.000Z | targeting.cpp | devenrao/openpower-proc-control | 1dc3acd254df36670e978ad2fc4af13d7ce84bcb | [
"Apache-2.0"
] | 7 | 2017-03-24T22:33:51.000Z | 2022-01-20T05:31:29.000Z | /**
* Copyright (C) 2017 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 29.285714 | 80 | 0.607317 | devenrao |
e574ffd31ac8ef65a29ddf49f6cb338dff1540a7 | 3,434 | cpp | C++ | CryptoLib/Crypto/SOURCE/BaseCrypt/DeriveKey.cpp | sn2234/cryptdisk | 796e5ed9f9b7d74c5fabb9dda67d45ec171f0e81 | [
"BSD-2-Clause"
] | 1 | 2021-12-04T19:35:53.000Z | 2021-12-04T19:35:53.000Z | CryptoLib/Crypto/SOURCE/BaseCrypt/DeriveKey.cpp | caraioniurie47/cryptdisk | 796e5ed9f9b7d74c5fabb9dda67d45ec171f0e81 | [
"BSD-2-Clause"
] | null | null | null | CryptoLib/Crypto/SOURCE/BaseCrypt/DeriveKey.cpp | caraioniurie47/cryptdisk | 796e5ed9f9b7d74c5fabb9dda67d45ec171f0e81 | [
"BSD-2-Clause"
] | 1 | 2021-12-04T16:16:57.000Z | 2021-12-04T16:16:57.000Z | /*
* Copyright (c) 2006, nobody
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condition... | 31.218182 | 87 | 0.690157 | sn2234 |
e575ced924458d97dbeea76c520e63d96fc486b7 | 3,618 | cpp | C++ | GGEZwin/GameManager.cpp | longnt0707/CodeFest79_GGEZ | fda17c6f64cf07a17970c98f22be10a598aba41b | [
"MIT"
] | null | null | null | GGEZwin/GameManager.cpp | longnt0707/CodeFest79_GGEZ | fda17c6f64cf07a17970c98f22be10a598aba41b | [
"MIT"
] | null | null | null | GGEZwin/GameManager.cpp | longnt0707/CodeFest79_GGEZ | fda17c6f64cf07a17970c98f22be10a598aba41b | [
"MIT"
] | null | null | null | #include "GameManager.h"
#include "source\SocketIOManager.hpp"
#include "source\CElephant.hpp"
#ifdef _DEBUG
#define DLOG(__x__) printf("\e[1;31m[debug]-----");\
printf __x__;\
printf("\e[0m\n");
#else
#define DLOG(__x__)
#endif
void OnIncommingRoomState(sio::event& event)... | 28.488189 | 114 | 0.651465 | longnt0707 |
ec797dbe0cda13aff4004ec80338feae53fb1e79 | 57 | hpp | C++ | src/boost_spirit_home_x3_support_utility_utf8.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_x3_support_utility_utf8.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_x3_support_utility_utf8.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/x3/support/utility/utf8.hpp>
| 28.5 | 56 | 0.789474 | miathedev |
ec7a0c9294514410e2c512cf79c43549adea0e6f | 7,591 | cpp | C++ | solver.cpp | n-stott/masketshare | 8869dabc3e4c3f8ee6e2c147573c891bff335c17 | [
"MIT"
] | null | null | null | solver.cpp | n-stott/masketshare | 8869dabc3e4c3f8ee6e2c147573c891bff335c17 | [
"MIT"
] | null | null | null | solver.cpp | n-stott/masketshare | 8869dabc3e4c3f8ee6e2c147573c891bff335c17 | [
"MIT"
] | null | null | null | #include "instance.h"
#include <array>
#include <vector>
#include <algorithm>
#include <iostream>
#include <cassert>
#include <iomanip>
#include <bitset>
#include <chrono>
#include <sstream>
#include "threadpool.h"
enum class Res {
Ok,
Opt,
Infeas,
Prune
};
#define FIXED 21
struct Sol {
std::arr... | 23.721875 | 111 | 0.456593 | n-stott |
ec81d0829e2fad40c12e857833969f7cccb6668c | 1,585 | hpp | C++ | include/flecs/addons/cpp/mixins/timer/impl.hpp | dcascais/flecs | a1ca4103fed4103c29ce24257490ed8dd96907ef | [
"MIT"
] | null | null | null | include/flecs/addons/cpp/mixins/timer/impl.hpp | dcascais/flecs | a1ca4103fed4103c29ce24257490ed8dd96907ef | [
"MIT"
] | null | null | null | include/flecs/addons/cpp/mixins/timer/impl.hpp | dcascais/flecs | a1ca4103fed4103c29ce24257490ed8dd96907ef | [
"MIT"
] | null | null | null | #pragma once
namespace flecs {
#define flecs_me_ this->me()
#define flecs_world_ flecs_me_.world()
// Timer class
struct timer final : extendable<timer, Mixins>, entity_base {
template <typename ... Args>
timer(Args&&... args) : entity_base(std::forward<Args>(args)...) { }
};
// Mixin functions for flecs::s... | 24.765625 | 73 | 0.740063 | dcascais |
ec894a9be8c610f445cbd91ca4cea3cc10050144 | 1,848 | cpp | C++ | RS16Repair.cpp | BadCodebot/ReedSolomon | b0bf3ca063ac5d82ca3051e61683155db34fbf02 | [
"MIT"
] | null | null | null | RS16Repair.cpp | BadCodebot/ReedSolomon | b0bf3ca063ac5d82ca3051e61683155db34fbf02 | [
"MIT"
] | null | null | null | RS16Repair.cpp | BadCodebot/ReedSolomon | b0bf3ca063ac5d82ca3051e61683155db34fbf02 | [
"MIT"
] | null | null | null | #include "RS16Repair.h"
#include "GaloisField16.h"
#include <stdexcept>
#include <iostream>
namespace ReedSolomon {
RS16Repair::RS16Repair(const RS16Syndrome& rss, int nCodeWords, int* errorLocations, int errorCount)
: _rss(rss), _nCodeWords(nCodeWords), _correctionMatrix(errorCount), errorCount(errorCount... | 33.6 | 164 | 0.687229 | BadCodebot |
ec8e1d7d5082d3c9f7559674ca8d528d830b3135 | 319 | cpp | C++ | qt_playground/qt_playground/HelloWorld/widget.cpp | hyq5436/playground | 828b9d2266dbb7d0311e2e73b295fcafb101d94f | [
"MIT"
] | 1 | 2021-06-23T08:41:55.000Z | 2021-06-23T08:41:55.000Z | qt_playground/qt_playground/HelloWorld/widget.cpp | hyq5436/playground | 828b9d2266dbb7d0311e2e73b295fcafb101d94f | [
"MIT"
] | null | null | null | qt_playground/qt_playground/HelloWorld/widget.cpp | hyq5436/playground | 828b9d2266dbb7d0311e2e73b295fcafb101d94f | [
"MIT"
] | null | null | null | #include "widget.h"
#include "ui_widget.h"
#include <QString>
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{
ui->setupUi(this);
#ifdef GLOBAL_MACRO_DEMO
ui->label->setText(QStringLiteral("Global Macro Demo"));
#endif
}
Widget::~Widget()
{
delete ui;
}
| 15.95 | 61 | 0.623824 | hyq5436 |
ec8e664fd7f3b218b62dac58496d694afebb80f0 | 325 | cpp | C++ | Miscellaneous/LeetCode/April30DayChallenge/BestTimeToBuyAndSell.cpp | chirag-singhal/-Data-Structures-and-Algorithms | 9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3 | [
"MIT"
] | 24 | 2021-02-09T17:59:54.000Z | 2022-03-11T07:30:38.000Z | Miscellaneous/LeetCode/April30DayChallenge/BestTimeToBuyAndSell.cpp | chirag-singhal/-Data-Structures-and-Algorithms | 9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3 | [
"MIT"
] | null | null | null | Miscellaneous/LeetCode/April30DayChallenge/BestTimeToBuyAndSell.cpp | chirag-singhal/-Data-Structures-and-Algorithms | 9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3 | [
"MIT"
] | 3 | 2021-06-22T03:09:49.000Z | 2022-03-09T18:25:14.000Z | #include <bits/stdc++.h>
class Solution {
public:
int maxProfit(std::vector<int>& prices) {
int n = prices.size();
int maxProfit = 0;
for(int i = 1; i < n; i++)
if(prices[i] > prices[i - 1])
maxProfit += prices[i] - prices[i - 1];
return maxProfit;
... | 25 | 55 | 0.489231 | chirag-singhal |
ec9cccd20bfcea0a251b81e5202165eaa113a9b3 | 688 | cpp | C++ | player/playerlib/android/AndroidModule.cpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | player/playerlib/android/AndroidModule.cpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | player/playerlib/android/AndroidModule.cpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | /*
* This file is part of FFL project.
*
* The MIT License (MIT)
* Copyright (C) 2017-2018 zhufeifei All rights reserved.
*
* AndroidModule.cpp
* Created by zhufeifei(34008081@qq.com) on 2018/06/28
* https://github.com/zhenfei2016/FFL-v2.git
* android播放输出模块定义
*
*/
#include "AndroidModule.hpp"
namespace andr... | 18.105263 | 78 | 0.69186 | zhenfei2016 |
ecaf588ef3818ed080663f7a01c5c1c1e915b022 | 2,718 | cpp | C++ | buzzer/sync/main.cpp | victorlaskurain/unaibot | d3a59eb49b2a582dee824b8ea3f8d46521445cab | [
"MIT"
] | null | null | null | buzzer/sync/main.cpp | victorlaskurain/unaibot | d3a59eb49b2a582dee824b8ea3f8d46521445cab | [
"MIT"
] | null | null | null | buzzer/sync/main.cpp | victorlaskurain/unaibot | d3a59eb49b2a582dee824b8ea3f8d46521445cab | [
"MIT"
] | null | null | null | #include <vla/registers.hpp>
#include <util/delay.h>
using namespace vla;
const double
note_0 = 0,
note_c4 = 261.626,
note_d4 = 293.665,
note_e4 = 329.628,
note_f4 = 369.994,
note_g4 = 391.995,
note_a4 = 440,
note_b4 = 493.883,
note_c5 = 523.251,
note_d5 = 587.330,
note_e5... | 26.647059 | 79 | 0.577263 | victorlaskurain |
ecb7c27b3ef64f5d61127ccab592ca1fd5e33da2 | 3,584 | cpp | C++ | src/game/cmd/Lol.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 25 | 2016-05-27T11:53:58.000Z | 2021-10-17T00:13:41.000Z | src/game/cmd/Lol.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 1 | 2016-07-09T05:25:03.000Z | 2016-07-09T05:25:03.000Z | src/game/cmd/Lol.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 16 | 2016-05-28T23:06:50.000Z | 2022-01-26T13:47:12.000Z | #include <bgame/impl.h>
namespace cmd {
///////////////////////////////////////////////////////////////////////////////
Lol::Lol()
: AbstractBuiltin( "lol" )
{
__usage << xvalue( "!" + _name )
<< ' ' << _ovalue( "PLAYER_FILTER" )
<< ' ' << _ovalue( "NUM_GRENADES" );
__descr << "R... | 25.41844 | 79 | 0.465681 | jumptohistory |
ecba472ed2cdd1e37c62a0401a80ede32d3ecfcd | 3,288 | cpp | C++ | leetcode/docu/456.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | leetcode/docu/456.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | leetcode/docu/456.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | #include "cpp_header.h"
class Solution {
public:
bool find132pattern(vector<int>& nums)
{
for(int i = 0; i < nums.size(); i++)
{
for(int j = i + 1; j < nums.size(); j++)
{
for(int k = j + 1; k < nums.size(); k++)
{
if(nums[i] < nums[k] && nums[k] < nums[j])
{
return true;
}
... | 20.171779 | 698 | 0.555353 | sczzq |
ecbc080a6bcc7c8914f2aed3e69b879cf202a8ac | 2,772 | hpp | C++ | modules/scene_manager/include/diagnostic_msgs/srv/add_diagnostics__request__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/scene_manager/include/diagnostic_msgs/srv/add_diagnostics__request__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-11-14T12:20:06.000Z | 2020-08-07T13:51:10.000Z | modules/scene_manager/include/diagnostic_msgs/srv/add_diagnostics__request__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | // generated from
// rosidl_typesupport_opensplice_cpp/resource/msg__rosidl_typesupport_opensplice_cpp.hpp.em
// generated code does not contain a copyright notice
#ifndef DIAGNOSTIC_MSGS__SRV__ADD_DIAGNOSTICS__REQUEST__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_HPP_
#define DIAGNOSTIC_MSGS__SRV__ADD_DIAGNOSTICS__REQUEST__ROSI... | 29.806452 | 135 | 0.86075 | Omnirobotic |
ecc1c81eb0a6f6ba20fc79bcd093e49e4171bde7 | 4,990 | cpp | C++ | modules/gapi/src/api/render_ocv.cpp | Delicode/opencv | a1b8cd4da4b81f3d28e732cac52c6101c5f1ee8e | [
"BSD-3-Clause"
] | 2 | 2020-03-31T19:01:30.000Z | 2020-06-29T15:20:09.000Z | modules/gapi/src/api/render_ocv.cpp | whuluowei/opencv | 2ff12c498171ba2ced3ac80c94b65b9ed647d379 | [
"BSD-3-Clause"
] | 9 | 2019-10-19T06:55:30.000Z | 2019-10-21T15:08:33.000Z | modules/gapi/src/api/render_ocv.cpp | whuluowei/opencv | 2ff12c498171ba2ced3ac80c94b65b9ed647d379 | [
"BSD-3-Clause"
] | 1 | 2019-10-19T02:12:38.000Z | 2019-10-19T02:12:38.000Z | #include <opencv2/imgproc.hpp>
#include <opencv2/gapi/render/render.hpp> // Kernel API's
#include "api/render_ocv.hpp"
namespace cv
{
namespace gapi
{
namespace ocv
{
} // namespace ocv
namespace wip
{
namespace draw
{
void mosaic(cv::Mat mat, const cv::Rect &rect, int cellSz);
void image(cv::Mat mat, cv::Point or... | 29.181287 | 95 | 0.545291 | Delicode |
ecc773173fee1141156d46c6efb3c21bf3bc5c23 | 3,191 | inl | C++ | shading/functions/LambertianBase.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | 6 | 2015-12-29T07:21:01.000Z | 2020-05-29T10:47:38.000Z | shading/functions/LambertianBase.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | shading/functions/LambertianBase.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | /*! \file LambertianBase.inl
* \author Jared Hoberock
* \brief Inline file for LambertianBase.h.
*/
#include "LambertianBase.h"
#include "../areSameHemisphere.h"
#include "../../geometry/Mappings.h"
#ifndef INV_PI
#define INV_PI 0.318309886f
#endif // INV_PI
template<typename V3, typename S3, typename Boolean>
... | 28.238938 | 89 | 0.621435 | jaredhoberock |
ecc9f62e5686dae63d3245403068eb191ac81d6f | 81 | cpp | C++ | abc/abc006/a/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | 3 | 2019-06-25T06:17:38.000Z | 2019-07-13T15:18:51.000Z | abc/abc006/a/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | abc/abc006/a/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | #include "template.hpp"
int main() {
ll(N);
yes(N % 3 == 0, "YES", "NO");
}
| 11.571429 | 31 | 0.481481 | wotsushi |
ecca153370488419c1f0cbb4acb1ee29b804e042 | 1,093 | cpp | C++ | tests/juliet/testcases/CWE404_Improper_Resource_Shutdown/CWE404_Improper_Resource_Shutdown__w32CreateFile_fclose_81_bad.cpp | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 28 | 2017-01-20T15:25:54.000Z | 2020-03-17T00:28:31.000Z | testcases/CWE404_Improper_Resource_Shutdown/CWE404_Improper_Resource_Shutdown__w32CreateFile_fclose_81_bad.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2021-07-12T02:57:17.000Z | 2021-07-16T02:07:29.000Z | testcases/CWE404_Improper_Resource_Shutdown/CWE404_Improper_Resource_Shutdown__w32CreateFile_fclose_81_bad.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 2 | 2019-07-15T19:07:04.000Z | 2019-09-07T14:21:04.000Z | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE404_Improper_Resource_Shutdown__w32CreateFile_fclose_81_bad.cpp
Label Definition File: CWE404_Improper_Resource_Shutdown__w32CreateFile.label.xml
Template File: source-sinks-81_bad.tmpl.cpp
*/
/*
* @description
* CWE: 404 Improper Resource Shutdown or Release
... | 31.228571 | 102 | 0.743824 | RanerL |
eccef4edc567de256df0d613c2de551d15be3a26 | 84,786 | cpp | C++ | src/AssemblerReadGraph.cpp | chanzuckerberg/shasta | a8933d5aade5c8cc8b92852bf3092fb32bf30b22 | [
"BSD-3-Clause-Open-MPI"
] | 267 | 2018-07-31T16:12:24.000Z | 2022-03-29T13:57:53.000Z | src/AssemblerReadGraph.cpp | chanzuckerberg/shasta | a8933d5aade5c8cc8b92852bf3092fb32bf30b22 | [
"BSD-3-Clause-Open-MPI"
] | 140 | 2018-08-10T14:14:19.000Z | 2022-02-18T22:05:05.000Z | src/AssemblerReadGraph.cpp | chanzuckerberg/shasta | a8933d5aade5c8cc8b92852bf3092fb32bf30b22 | [
"BSD-3-Clause-Open-MPI"
] | 47 | 2018-09-28T18:29:37.000Z | 2022-02-21T02:45:40.000Z |
// Shasta.
#include "Assembler.hpp"
#include "deduplicate.hpp"
#include "LocalReadGraph.hpp"
#include "orderPairs.hpp"
#include "Reads.hpp"
#include "shastaLapack.hpp"
#include "timestamp.hpp"
using namespace shasta;
// Boost libraries.
#include <boost/pending/disjoint_sets.hpp>
#include <boost/graph/maximum_adjacenc... | 40.144886 | 128 | 0.614264 | chanzuckerberg |
eccfed6c0aff769bea67f3dfc918c6f244f65a4f | 3,859 | cc | C++ | lib/src/trevi.cc | MonadicLabs/trevi | e22824b09a76f5bfac305e08fc3b493dd12223d4 | [
"MIT"
] | 2 | 2018-01-28T10:33:55.000Z | 2018-02-02T18:52:32.000Z | lib/src/trevi.cc | MonadicLabs/trevi | e22824b09a76f5bfac305e08fc3b493dd12223d4 | [
"MIT"
] | null | null | null | lib/src/trevi.cc | MonadicLabs/trevi | e22824b09a76f5bfac305e08fc3b493dd12223d4 | [
"MIT"
] | 1 | 2018-01-30T07:57:31.000Z | 2018-01-30T07:57:31.000Z |
#include "trevi.h"
#include "xor.h"
#include "encoder.h"
#ifdef USE_PROFILING
#include "profiler.h"
#endif
#include <cstring>
#include <iostream>
using namespace std;
#include <unistd.h>
void trevi_init()
{
init_xor();
#ifdef USE_PROFILING
Remotery* rmt;
rmt_CreateGlobalInstance(&rmt);
#endif
}
trevi... | 28.167883 | 164 | 0.694221 | MonadicLabs |
ecd0efa059f17eb67d339265728a0cae0e95071d | 5,593 | cpp | C++ | test/hl.cpp | tzlaine/parser | 095aa362d777a480fffef415d27d214cd6ffec4a | [
"BSL-1.0"
] | 7 | 2020-08-29T02:10:20.000Z | 2022-03-29T20:31:59.000Z | test/hl.cpp | tzlaine/parser | 095aa362d777a480fffef415d27d214cd6ffec4a | [
"BSL-1.0"
] | 16 | 2020-08-29T21:33:08.000Z | 2022-03-22T03:01:02.000Z | test/hl.cpp | tzlaine/parser | 095aa362d777a480fffef415d27d214cd6ffec4a | [
"BSL-1.0"
] | 1 | 2021-09-22T08:15:57.000Z | 2021-09-22T08:15:57.000Z | /**
* Copyright (C) 2020 T. Zachary Laine
*
* 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 <boost/parser/detail/hl.hpp>
#include <tuple>
#include <sstream>
#include <gtest/gtest.h>
us... | 28.105528 | 77 | 0.50885 | tzlaine |
ecd538b17044e9c00a7e4cdc220d6cb931bd8c40 | 27,275 | cc | C++ | packages/firebase_auth/firebase_auth/linux/firebase_auth_plugin.cc | cenomla/flutterfire | 1a94722b86e66a84663d4f10df4e8e83ae032b0c | [
"BSD-3-Clause"
] | null | null | null | packages/firebase_auth/firebase_auth/linux/firebase_auth_plugin.cc | cenomla/flutterfire | 1a94722b86e66a84663d4f10df4e8e83ae032b0c | [
"BSD-3-Clause"
] | null | null | null | packages/firebase_auth/firebase_auth/linux/firebase_auth_plugin.cc | cenomla/flutterfire | 1a94722b86e66a84663d4f10df4e8e83ae032b0c | [
"BSD-3-Clause"
] | null | null | null | #include "include/firebase_auth/fl_firebase_auth_plugin.h"
#include <firebase/auth/credential.h>
#include <firebase/util.h>
#include <unordered_map>
#include <unordered_set>
#include <thread>
#include <random>
#include <flutter_linux/flutter_linux.h>
#include <gtk/gtk.h>
#include <firebase/app.h>
#include <firebase/a... | 38.578501 | 126 | 0.778515 | cenomla |
ecd57315f3cafc3480828d68b2c002ca846116b3 | 3,695 | cpp | C++ | src/app.cpp | conanbitter/murom-engine | 1bf6133f93aeaf9da77115ccb0195974f6c6a97c | [
"MIT"
] | null | null | null | src/app.cpp | conanbitter/murom-engine | 1bf6133f93aeaf9da77115ccb0195974f6c6a97c | [
"MIT"
] | null | null | null | src/app.cpp | conanbitter/murom-engine | 1bf6133f93aeaf9da77115ccb0195974f6c6a97c | [
"MIT"
] | null | null | null | #include "app.hpp"
#include "shaders.hpp"
#include "spritebatch.hpp"
#include "textures.hpp"
#include <sstream>
#include <gl/gl_core_3_2.hpp>
namespace mrm {
const string vertexShaderCode = R"(
#version 410
layout(location = 0) in vec2 vert;
layout(location = 1) in vec2 vertUV;
layout(location = 2) in vec4 v... | 24.798658 | 101 | 0.631394 | conanbitter |
ecd5d7df4789e097662926047e01c5c02746a623 | 1,491 | cpp | C++ | Seminars/Seminar 06/passing_parameters_by_reference.cpp | terziev-viktor/FMI-UP-2019-2020 | 1974eec4677257229dcb5f9327aed5dfb38d1f8c | [
"MIT"
] | 4 | 2019-11-06T12:03:06.000Z | 2020-02-24T18:33:11.000Z | Seminars/Seminar 06/passing_parameters_by_reference.cpp | terziev-viktor/FMI-UP-2019-2020 | 1974eec4677257229dcb5f9327aed5dfb38d1f8c | [
"MIT"
] | null | null | null | Seminars/Seminar 06/passing_parameters_by_reference.cpp | terziev-viktor/FMI-UP-2019-2020 | 1974eec4677257229dcb5f9327aed5dfb38d1f8c | [
"MIT"
] | 3 | 2019-11-27T17:13:59.000Z | 2020-02-24T18:33:15.000Z | #include <iostream>
// Tries to read input in the format - (1,3)
// If the reading is successful the functions returns true, we can use this to determine that first and second
// have meaningful values.
// If the reading fails the function return false, we can take appropiate measures - maybe show error message and st... | 26.157895 | 135 | 0.677398 | terziev-viktor |
ecdb56eeb327a47f40e0dc0f2c5528335644e7a0 | 2,958 | cpp | C++ | kernel/arch/x86_shared/mem/pmm.cpp | feliwir/benny | b5960339facfe6cbe0f66b3766c06fdf2123aa8c | [
"MIT"
] | 3 | 2016-10-03T20:48:18.000Z | 2021-01-23T20:17:15.000Z | kernel/arch/x86_shared/mem/pmm.cpp | feliwir/benny | b5960339facfe6cbe0f66b3766c06fdf2123aa8c | [
"MIT"
] | 5 | 2016-10-03T22:56:39.000Z | 2018-06-17T09:54:08.000Z | kernel/arch/x86_shared/mem/pmm.cpp | feliwir/benny | b5960339facfe6cbe0f66b3766c06fdf2123aa8c | [
"MIT"
] | 4 | 2016-09-12T10:50:13.000Z | 2020-08-25T09:05:55.000Z | #include "pmm.hpp"
#include "paging.hpp"
#include "vga.hpp"
#include <mem/mmap.hpp>
#include <scheduler/lock_guard.hpp>
#include <util/math.hpp>
#include <util/util.hpp>
Bitmap PMM::bitmap;
uintptr_t PMM::highestPage = 0;
TicketLock PMM::s_lock;
uintptr_t PMM::s_lastUsedIndex = 0;
// Defined in linker.ld, indicate th... | 22.580153 | 71 | 0.63117 | feliwir |
ecdbda9f3a8ce1f8eb5efb29cb91f50fa5cefdb7 | 566 | cpp | C++ | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/icalls/System/System.Diagnostics/FileVersionInfo.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 16 | 2018-10-13T12:29:06.000Z | 2022-02-25T14:56:47.000Z | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/icalls/System/System.Diagnostics/FileVersionInfo.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 8 | 2020-03-10T23:11:09.000Z | 2020-03-14T01:19:32.000Z | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/icalls/System/System.Diagnostics/FileVersionInfo.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | 7 | 2020-06-09T13:16:30.000Z | 2021-11-01T15:28:04.000Z | #include "il2cpp-config.h"
#include "icalls/System/System.Diagnostics/FileVersionInfo.h"
#include "vm/Exception.h"
namespace il2cpp
{
namespace icalls
{
namespace System
{
namespace System
{
namespace Diagnostics
{
void FileVersionInfo::GetVersionInfo_internal(void* /* System.Diagnostics.FileVersionInfo */ self, ... | 22.64 | 126 | 0.740283 | dngoins |
ecdea988875815db5b533bad642cc8062d0495e6 | 7,575 | cpp | C++ | cpp/icub/gazebo-yarp-plugins/plugins/fakecontrolboard/src/FakeControlBoardDriverControl.cpp | BrunoDaCosta/NL_limit_cycles | 62c8c93d8ca9d6c7442154c467cd0f9e27329871 | [
"RSA-MD"
] | 2 | 2019-07-26T08:51:15.000Z | 2020-10-16T09:52:58.000Z | cpp/icub/gazebo-yarp-plugins/plugins/fakecontrolboard/src/FakeControlBoardDriverControl.cpp | BrunoDaCosta/NL_limit_cycles | 62c8c93d8ca9d6c7442154c467cd0f9e27329871 | [
"RSA-MD"
] | null | null | null | cpp/icub/gazebo-yarp-plugins/plugins/fakecontrolboard/src/FakeControlBoardDriverControl.cpp | BrunoDaCosta/NL_limit_cycles | 62c8c93d8ca9d6c7442154c467cd0f9e27329871 | [
"RSA-MD"
] | 1 | 2021-01-26T14:34:05.000Z | 2021-01-26T14:34:05.000Z | /*
* Copyright (C) 2013-2015 Fondazione Istituto Italiano di Tecnologia RBCS & iCub Facility & ADVR
* Authors: see AUTHORS file.
* CopyPolicy: Released under the terms of the LGPLv2.1 or any later version, see LGPL.TXT or LGPL3.TXT
*/
#include "FakeControlBoardDriver.h"
using namespace yarp::dev;
//////////////... | 46.189024 | 159 | 0.70429 | BrunoDaCosta |
ece0d70f02cb80c0734fbe541664f300a14b76f6 | 11,682 | cpp | C++ | src/lexer.cpp | niko-niko-ni/eme | 5c3718731464f67a3a03efe7d6012375701c4538 | [
"MIT"
] | 3 | 2020-08-11T01:27:29.000Z | 2021-02-10T04:31:13.000Z | src/lexer.cpp | niko-niko-ni/eme | 5c3718731464f67a3a03efe7d6012375701c4538 | [
"MIT"
] | null | null | null | src/lexer.cpp | niko-niko-ni/eme | 5c3718731464f67a3a03efe7d6012375701c4538 | [
"MIT"
] | null | null | null | #include "lexer.h"
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include "types.h"
#include "symbol.h"
#include "token.h"
#include "errors.h"
#include "files.h"
bool is_valid_symbol_start_char(char ch) {
if(isalpha(ch)) return true;
switch(ch) {
case '_': return true;
case... | 33.472779 | 338 | 0.619671 | niko-niko-ni |
ece34a923852b9aca7bba7cfd8ccaa0befd0a4b8 | 2,474 | cpp | C++ | libpvguiqt/src/PVLayerStackDelegate.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvguiqt/src/PVLayerStackDelegate.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvguiqt/src/PVLayerStackDelegate.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | //
// MIT License
//
// © ESI Group, 2015
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, pu... | 34.84507 | 96 | 0.606306 | inendi-inspector |
ece391b261de6bd94b41b1ee62ada75822a4afe5 | 669 | cpp | C++ | test/snippet/io/structure_file/structure_file_input_data_out.cpp | joergi-w/seqan3 | b757646eee3cddf1f2487db8f1c9f3576ee37391 | [
"CC-BY-4.0",
"CC0-1.0"
] | 283 | 2017-03-14T23:43:33.000Z | 2022-03-28T02:30:02.000Z | test/snippet/io/structure_file/structure_file_input_data_out.cpp | simonsasse/seqan3 | 0ff2e117952743f081735df9956be4c512f4ccba | [
"CC0-1.0",
"CC-BY-4.0"
] | 2,754 | 2017-03-21T18:39:02.000Z | 2022-03-31T13:26:15.000Z | test/snippet/io/structure_file/structure_file_input_data_out.cpp | simonsasse/seqan3 | 0ff2e117952743f081735df9956be4c512f4ccba | [
"CC0-1.0",
"CC-BY-4.0"
] | 88 | 2017-03-20T12:43:42.000Z | 2022-03-17T08:56:13.000Z | #include <sstream>
#include <utility>
#include <vector>
#include <seqan3/io/structure_file/input.hpp>
auto input = R"(> S.cerevisiae_tRNA-PHE M10740/1-73
GCGGAUUUAGCUCAGUUGGGAGAGCGCCAGACUGAAGAUUUGGAGGUCCUGUGUUCGAUCCACAGAAUUCGCA
(((((((..((((........)))).((((.........)))).....(((((.......)))))))))))). (-17.50)
> examp... | 27.875 | 89 | 0.626308 | joergi-w |
ece3c6c7c17847ffb05c9ed2a5f096349e392364 | 3,403 | ipp | C++ | Siv3D/include/Siv3D/detail/Transformer2D.ipp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/include/Siv3D/detail/Transformer2D.ipp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 32 | 2021-10-09T10:04:11.000Z | 2022-02-25T06:10:13.000Z | Siv3D/include/Siv3D/detail/Transformer2D.ipp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
namespace s3d
{
inline Transfo... | 21.954839 | 123 | 0.691449 | tas9n |
eced248d93f0d0940f8665d553ca0bef419f7834 | 8,244 | cpp | C++ | code/mts_core/OrderAction.cpp | mtsquant/MTS | ab7ecab0f88c844289b5c81e5627326fe36e682f | [
"Apache-2.0"
] | 8 | 2019-03-28T04:15:59.000Z | 2021-03-23T14:29:43.000Z | code/mts_core/OrderAction.cpp | mtsquant/MTS | ab7ecab0f88c844289b5c81e5627326fe36e682f | [
"Apache-2.0"
] | null | null | null | code/mts_core/OrderAction.cpp | mtsquant/MTS | ab7ecab0f88c844289b5c81e5627326fe36e682f | [
"Apache-2.0"
] | 5 | 2019-11-06T12:39:21.000Z | 2021-01-28T19:14:14.000Z |
/*****************************************************************************
* Copyright [2017-2019] [MTSQuant]
*
* 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/lic... | 21.694737 | 128 | 0.708515 | mtsquant |
ecf74c1e87459cf45c8202db613f3b687f95125a | 2,234 | cpp | C++ | native/networking.cpp | tpr-evilempire/hlsteam | 6eafee44a00253ea0a4951ecd74d6f01692571ba | [
"MIT"
] | 32 | 2017-07-12T10:40:53.000Z | 2022-02-15T17:01:13.000Z | native/networking.cpp | tpr-evilempire/hlsteam | 6eafee44a00253ea0a4951ecd74d6f01692571ba | [
"MIT"
] | null | null | null | native/networking.cpp | tpr-evilempire/hlsteam | 6eafee44a00253ea0a4951ecd74d6f01692571ba | [
"MIT"
] | 8 | 2018-06-26T01:46:44.000Z | 2022-03-19T10:43:40.000Z | #include "steamwrap.h"
#define Networking() (SteamNetworking() ? SteamNetworking() : SteamGameServerNetworking())
vdynamic *CallbackHandler::EncodeP2PSessionRequest( P2PSessionRequest_t *d ) {
HLValue v;
v.Set("uid", d->m_steamIDRemote);
return v.value;
}
vdynamic *CallbackHandler::EncodeP2PSessionConne... | 35.460317 | 100 | 0.742167 | tpr-evilempire |
a6012154b88d7c469d0dacd3dd23fffa9fa342b6 | 795 | hpp | C++ | core/api/service/chain/chain_jrpc_processor.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | 110 | 2019-04-03T13:39:39.000Z | 2022-03-09T11:54:42.000Z | core/api/service/chain/chain_jrpc_processor.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | 890 | 2019-03-22T21:33:30.000Z | 2022-03-31T14:31:22.000Z | core/api/service/chain/chain_jrpc_processor.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | 27 | 2019-06-25T06:21:47.000Z | 2021-11-01T14:12:10.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_CHAIN_JRPC_PROCESSOR_HPP
#define KAGOME_CHAIN_JRPC_PROCESSOR_HPP
#include "api/jrpc/jrpc_processor.hpp"
#include "api/jrpc/jrpc_server_impl.hpp"
#include "api/service/chain/chain_api.hpp"
namespace kag... | 26.5 | 58 | 0.725786 | FlorianFranzen |
a607dbb2305151572819b3f5a63aa79a6ba1b72d | 963 | hpp | C++ | include/constants.hpp | EmreTech/Calculator_NX | 0903ac8b154af9ddfc67cfa43dfb282cd67bdc7f | [
"MIT"
] | 4 | 2021-01-16T12:12:34.000Z | 2022-02-11T04:58:44.000Z | include/constants.hpp | EmreTech/Calculator_NX | 0903ac8b154af9ddfc67cfa43dfb282cd67bdc7f | [
"MIT"
] | 8 | 2021-02-09T23:02:35.000Z | 2021-08-04T06:27:46.000Z | include/constants.hpp | EmreTech/Calculator_NX | 0903ac8b154af9ddfc67cfa43dfb282cd67bdc7f | [
"MIT"
] | null | null | null | #pragma once
#define SWITCH_PATH "/switch/"
#define CALCULATOR_NX_PATH SWITCH_PATH "Calculator_NX/"
#define PATH_1 CALCULATOR_NX_PATH "Calculator_NX.nro"
#define PATH_2 SWITCH_PATH "Calculator_NX.nro"
#define CONFIG_PATH "/config/Calculator_NX/"
#define DOWNLOAD_PATH CONFIG_PATH "download/"
#define CONFIG_FORWARDER_P... | 37.038462 | 108 | 0.805815 | EmreTech |
a60b16229c72a893b333bb7126f14f49a3967f0d | 1,200 | cpp | C++ | solutions/c++/31.cpp | KyleMcB/leetcode_solutions-old | d544580c0af2d9405944e68014bba0486ab4434a | [
"Unlicense"
] | null | null | null | solutions/c++/31.cpp | KyleMcB/leetcode_solutions-old | d544580c0af2d9405944e68014bba0486ab4434a | [
"Unlicense"
] | null | null | null | solutions/c++/31.cpp | KyleMcB/leetcode_solutions-old | d544580c0af2d9405944e68014bba0486ab4434a | [
"Unlicense"
] | null | null | null |
//9% speed
class Solution {
public:
void nextPermutation(vector<int>& nums) {
if (nums.empty()) return;
if (nums.size() == 1) return;
if (nums.size() == 2) {
swap(nums[0], nums[1]);
return;
}
int end= nums.size()-1;
//cout <<
while (en... | 28.571429 | 81 | 0.486667 | KyleMcB |
a60e32dd26fb3a953d636b20ff49bea6a9316272 | 1,090 | cpp | C++ | Kattis_Problems/DanceRecital.cpp | MAXI0008/Kattis-Problems | ff6ec752b741a56fc37a993c528fc925ca302cc8 | [
"MIT"
] | 3 | 2019-04-01T05:38:09.000Z | 2021-11-17T11:43:20.000Z | Kattis_Problems/DanceRecital.cpp | MAXI0008/Algorithms-Practices | ff6ec752b741a56fc37a993c528fc925ca302cc8 | [
"MIT"
] | null | null | null | Kattis_Problems/DanceRecital.cpp | MAXI0008/Algorithms-Practices | ff6ec752b741a56fc37a993c528fc925ca302cc8 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int dist(string a, string b) {
int cnt = 0;
int A[26];
int B[26];
for (int j = 0; j < 26; j++) { A[j] = 0; B[j] = 0; }
for (auto c : a) { A[c-'A']++; }
for (auto c : b) { B[c-'A']++; }
for (int j = 0; j < 26; j++) { cnt += (A[j] & B[j]); }
r... | 25.348837 | 64 | 0.443119 | MAXI0008 |
a60f0e1720b575a4f626a29c31baf3d832270bc7 | 290 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/MetaData.ConvertCodeSourceFileToAssemblyFile/CPP/source.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 3,294 | 2016-10-30T05:27:20.000Z | 2022-03-31T15:59:30.000Z | samples/snippets/cpp/VS_Snippets_Remoting/MetaData.ConvertCodeSourceFileToAssemblyFile/CPP/source.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 16,739 | 2016-10-28T19:41:29.000Z | 2022-03-31T22:38:48.000Z | samples/snippets/cpp/VS_Snippets_Remoting/MetaData.ConvertCodeSourceFileToAssemblyFile/CPP/source.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 6,701 | 2016-10-29T20:56:11.000Z | 2022-03-31T12:32:26.000Z |
// <Snippet1>
#using <system.dll>
#using <system.runtime.remoting.dll>
using namespace System;
using namespace System::Runtime::Remoting::MetadataServices;
int main()
{
MetaData::ConvertCodeSourceFileToAssemblyFile( "CsSource.cs", "testAssm.dll", "" );
return 0;
}
// </Snippet1>
| 18.125 | 86 | 0.717241 | BaruaSourav |
a610ca3fe86ff9a612ba815975b1dcf5847ed9ac | 10,835 | cpp | C++ | vendor/ddc/examples/heat_equation.cpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | 3 | 2022-02-28T08:47:07.000Z | 2022-03-01T10:29:08.000Z | vendor/ddc/examples/heat_equation.cpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | null | null | null | vendor/ddc/examples/heat_equation.cpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
//! [includes]
#include <cmath>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <ddc/ddc.hpp>
//! [includes]
// some parameters that would typically be read from some form of
// configuration file in a more realistic code
//! [parameters]
// Start of the domain of... | 35.641447 | 73 | 0.557914 | gyselax |
a614a48525966f6e9e286202493cc2b28850ceac | 1,003 | hpp | C++ | utility/make_balanced_sampler.hpp | ncrookston/liver_source | 9876ac4e9ea57d8e23767af9be061a9b10c6f1e5 | [
"BSL-1.0"
] | null | null | null | utility/make_balanced_sampler.hpp | ncrookston/liver_source | 9876ac4e9ea57d8e23767af9be061a9b10c6f1e5 | [
"BSL-1.0"
] | null | null | null | utility/make_balanced_sampler.hpp | ncrookston/liver_source | 9876ac4e9ea57d8e23767af9be061a9b10c6f1e5 | [
"BSL-1.0"
] | null | null | null | #ifndef JHMI_UTILITY_MAKE_BALANCED_SAMPLER_HPP_NRC_20160805
#define JHMI_UTILITY_MAKE_BALANCED_SAMPLER_HPP_NRC_20160805
#include <boost/container/flat_map.hpp>
#include <range/v3/algorithm.hpp>
#include <range/v3/view.hpp>
namespace jhmi {
auto make_balanced_sampler(std::vector<int> const& values) {
auto hist ... | 35.821429 | 92 | 0.692921 | ncrookston |
a6186c3a690bcb698b46aa7648e18067c74557a4 | 2,204 | cpp | C++ | libsrc/smsg/SMsg_Error.cpp | christywear/UlServer | 44d090ab266f7de0096b8f55c0906f21522243ff | [
"BSD-3-Clause"
] | 5 | 2018-08-17T17:16:50.000Z | 2019-07-01T12:54:01.000Z | libsrc/smsg/SMsg_Error.cpp | christywear/UlServer | 44d090ab266f7de0096b8f55c0906f21522243ff | [
"BSD-3-Clause"
] | 2 | 2019-01-06T15:32:09.000Z | 2019-01-18T06:03:26.000Z | libsrc/smsg/SMsg_Error.cpp | christywear/UlServer | 44d090ab266f7de0096b8f55c0906f21522243ff | [
"BSD-3-Clause"
] | 4 | 2018-08-16T15:41:15.000Z | 2020-06-22T06:09:10.000Z | // SMsg_Error.cpp -*- C++ -*-
// $Id: SMsg_Error.cpp,v 1.9 1997-07-29 19:32:31-07 jason Exp $
// Copyright 1996-1997 Lyra LLC, All rights reserved.
//
// message implementation
#ifdef __GNUC__
#pragma implementation "SMsg_Error.h"
#endif
#ifdef WIN32
#define STRICT
#include "unix.h"
#include <winsock.h>
#else /* !WI... | 17.632 | 69 | 0.657441 | christywear |
a61a94fc18054205a73d14dd1ba4eeb72e7fdcef | 282 | hpp | C++ | include/graphics/IEventListener.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/graphics/IEventListener.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/graphics/IEventListener.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | 1 | 2019-06-11T03:41:48.000Z | 2019-06-11T03:41:48.000Z | #ifndef IEVENTLISTENER_H_
#define IEVENTLISTENER_H_
#include "Event.hpp"
namespace ice_engine
{
namespace graphics
{
class IEventListener
{
public:
virtual ~IEventListener()
{
}
;
virtual bool processEvent(const Event& event) = 0;
};
}
}
#endif /* IEVENTLISTENER_H_ */
| 10.444444 | 51 | 0.723404 | icebreakersentertainment |
a6202461f5fe779db100bf8db97c545ee000e756 | 1,360 | cpp | C++ | logger.cpp | k-al/wiki-phraser | af10361b3f567fccee72ba1ab19668126ac5479f | [
"Unlicense"
] | null | null | null | logger.cpp | k-al/wiki-phraser | af10361b3f567fccee72ba1ab19668126ac5479f | [
"Unlicense"
] | null | null | null | logger.cpp | k-al/wiki-phraser | af10361b3f567fccee72ba1ab19668126ac5479f | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <fstream>
#include <filesystem>
namespace fs = std::filesystem;
#include "logger.hpp"
#include "args.hpp"
void Logger::update (Args& args) {
this->args = &args;
}
bool Logger::to_file () const {
if (this->args == nullptr) {
std::cerr << "[Error in to_file-check]logger ... | 26.666667 | 160 | 0.608824 | k-al |
a621e2bb9e9fa93a478e4cb67b40c6c53d375ee9 | 18,147 | cpp | C++ | src/os/fs_attr_untyped.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | 3 | 2018-05-21T15:32:32.000Z | 2019-03-21T13:34:55.000Z | src/os/fs_attr_untyped.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/os/fs_attr_untyped.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | /*
* Copyright 2005-2008, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
/*! Emulation BeOS-style attributes by mapping them to untyped attributes of
the host platform (xattr on Linux, extattr on FreeBSD).
*/
#ifdef BUILDING_FS_SHELL
# include <compat.h>
# define B_... | 23.536965 | 79 | 0.578002 | stasinek |
a62374dfb7e0e504d4afdf441fa54cf6092e6922 | 579 | cpp | C++ | src/2000/2910.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/2000/2910.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/2000/2910.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
#include <unordered_map>
#include <algorithm>
using namespace std;
int main()
{
int n, c;
unordered_map<int, pair<int, int> > M;
vector < pair<int, pair<int, int> > > arr;
scanf("%d %d", &n, &c);
for (int i = 0; i < n; i++)
{
int num;
scanf("%d", &num);
if (M[num].firs... | 17.545455 | 65 | 0.566494 | upple |
a626c41173f0fb420ace83ca0d5330f2cab7b2ed | 178 | cpp | C++ | 20200328_ABC160/a.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20200328_ABC160/a.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20200328_ABC160/a.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin >> s;
if(s[2]==s[3] && s[4]==s[5]) cout << "Yes" << endl;
else cout << "No" << endl;
} | 14.833333 | 55 | 0.483146 | miyalab |
98a94a6142adb182f50caeac602d0741e2d1100c | 2,523 | hpp | C++ | Terra/transport/Transporter.hpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 68 | 2019-01-27T08:59:23.000Z | 2022-03-30T02:29:02.000Z | Terra/transport/Transporter.hpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 11 | 2019-03-18T17:21:53.000Z | 2019-07-07T05:28:55.000Z | Terra/transport/Transporter.hpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 8 | 2019-03-20T07:54:29.000Z | 2021-07-14T01:45:59.000Z | #pragma once
#include <utility>
#include <mutex>
#include "../misc/LockFactory.hpp"
#include "TransportInfo.hpp"
#include "../misc/ListenerService.hpp"
#include "../project/IMusicalTimeService.hpp"
NS_HWM_BEGIN
//! Represent the current playing back position, and
//! provide some functions to operate playing back st... | 29.682353 | 85 | 0.700357 | leeairw |
98b6c5c39617b186df1f5121c1d81b656f37251f | 2,696 | cpp | C++ | src/rokkithash.cpp | aviateur17/ESP32-Paxcounter | dee734a4893d4c4927dd8887d74be88b843d7df4 | [
"Apache-2.0"
] | 1 | 2021-02-01T03:43:25.000Z | 2021-02-01T03:43:25.000Z | src/rokkithash.cpp | aviateur17/ESP32-Paxcounter | dee734a4893d4c4927dd8887d74be88b843d7df4 | [
"Apache-2.0"
] | null | null | null | src/rokkithash.cpp | aviateur17/ESP32-Paxcounter | dee734a4893d4c4927dd8887d74be88b843d7df4 | [
"Apache-2.0"
] | null | null | null | /*
* RokkitHash - Arduino port for Paul Hsieh's "SuperFastHash"
*
* A very quick hash function, (c) Paul Hsieh
*
* See http://www.azillionmonkeys.com/qed/hash.html for more information
* about its inner workings
*
* - Initial Arduino version: 2014 Alex K
* - 8-bit improvements: robtillaart
* - Current maintai... | 32.095238 | 72 | 0.605341 | aviateur17 |
98be3451b2e193a3da7abe0c30772188860ab965 | 7,433 | cpp | C++ | Engine/source/renderInstance/renderOcclusionMgr.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 2,113 | 2015-01-01T11:23:01.000Z | 2022-03-28T04:51:46.000Z | Engine/source/renderInstance/renderOcclusionMgr.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 948 | 2015-01-02T01:50:00.000Z | 2022-02-27T05:56:40.000Z | Engine/source/renderInstance/renderOcclusionMgr.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 944 | 2015-01-01T09:33:53.000Z | 2022-03-15T22:23:03.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 31.362869 | 117 | 0.641329 | vbillet |
98bfca45d40838475508ee450d2692fb7d4ae963 | 8,666 | cpp | C++ | src/Element.cpp | 1-gcc/Xelite | 66960c840ec24272b0e3a4cadd65a762d0bbdd7f | [
"MIT"
] | null | null | null | src/Element.cpp | 1-gcc/Xelite | 66960c840ec24272b0e3a4cadd65a762d0bbdd7f | [
"MIT"
] | null | null | null | src/Element.cpp | 1-gcc/Xelite | 66960c840ec24272b0e3a4cadd65a762d0bbdd7f | [
"MIT"
] | null | null | null | // Element.cpp
// (C) Copyright 2017 by Martin Brunn see License.txt for details
//
#include <iostream>
#include <cstdio>
#include <fstream>
#include "Element.h"
#include "UTFConverter.h"
namespace Xelite
{
Element::Element()
{
empty = true;
}
Element::Element(const std::wstring & nspace, ... | 23.742466 | 109 | 0.618048 | 1-gcc |
98c26386d7e9134085f409657226f9e0e7e443a0 | 1,099 | cpp | C++ | Codeforces Round 369/Coloring Trees/main.cpp | sqc1999-oi/Codeforces | 5551e0e4b9dc66bb77c697568f0584aac3dbefae | [
"MIT"
] | 1 | 2016-07-18T12:05:56.000Z | 2016-07-18T12:05:56.000Z | Codeforces Round 369/Coloring Trees/main.cpp | sqc1999/Codeforces | 5551e0e4b9dc66bb77c697568f0584aac3dbefae | [
"MIT"
] | null | null | null | Codeforces Round 369/Coloring Trees/main.cpp | sqc1999/Codeforces | 5551e0e4b9dc66bb77c697568f0584aac3dbefae | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
const int N = 100;
const long long INF = 0x3f3f3f3f3f3f3f3f;
int p[N][N + 1], c[N];
long long f[N][N + 1][N + 1];
void update(long long &x, long long y) { x = min(x, y); }
int main()
{
ios::sync_with_stdio(false);
int n, m, ... | 26.166667 | 71 | 0.423112 | sqc1999-oi |
98c66798d804cff0a3cbf6ddc46ca7e3e58039c2 | 3,992 | cc | C++ | sdios/src/apppager/util.cc | NeoLeMarc/sdios | 24630c16dfabab008891a354e2f49088d0d0a369 | [
"BSD-2-Clause"
] | null | null | null | sdios/src/apppager/util.cc | NeoLeMarc/sdios | 24630c16dfabab008891a354e2f49088d0d0a369 | [
"BSD-2-Clause"
] | null | null | null | sdios/src/apppager/util.cc | NeoLeMarc/sdios | 24630c16dfabab008891a354e2f49088d0d0a369 | [
"BSD-2-Clause"
] | null | null | null | #include "util.h"
#include <l4/space.h>
// implementation for Page class {{{
Page * Page::globalFirstFreePage = NULL;
L4_Word_t Page::nextAllocablePageStart = 0x40000000;
Page * Page::alloc() {
Page * freePage = globalFirstFreePage;
if (freePage == NULL) {
// don't go too far...
if (nextAlloca... | 25.265823 | 70 | 0.612725 | NeoLeMarc |
98c73e23f481576aa0f7d6295a309bb15c74c70e | 3,587 | hpp | C++ | src/gui/EventHandler.hpp | G1ov4/Dotto | 58645c0d1575b9d2107c686c137cd14489527689 | [
"MIT"
] | null | null | null | src/gui/EventHandler.hpp | G1ov4/Dotto | 58645c0d1575b9d2107c686c137cd14489527689 | [
"MIT"
] | null | null | null | src/gui/EventHandler.hpp | G1ov4/Dotto | 58645c0d1575b9d2107c686c137cd14489527689 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 LibreSprite Authors (cf. AUTHORS.md)
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#pragma once
#include <functional>
#include <typeinfo>
#include <typeindex>
#include <common/types.hpp>
#include <gui/Events.hpp>
#include <log/Log.hpp>
n... | 32.026786 | 98 | 0.473097 | G1ov4 |
98cb0e0f856a6644953a863729842d0b2cbfbeb7 | 4,290 | hpp | C++ | Visitors/DescriptorVisitors/PixelFeatureVectorDescriptorVisitor.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 39 | 2015-01-01T07:59:51.000Z | 2021-10-01T18:11:46.000Z | Visitors/DescriptorVisitors/PixelFeatureVectorDescriptorVisitor.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 1 | 2019-04-24T09:56:15.000Z | 2019-04-24T14:45:46.000Z | Visitors/DescriptorVisitors/PixelFeatureVectorDescriptorVisitor.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 18 | 2015-01-11T15:10:23.000Z | 2022-02-24T20:02:10.000Z | /*=========================================================================
*
* Copyright David Doria 2012 daviddoria@gmail.com
*
* 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
*
*... | 35.163934 | 102 | 0.684615 | jingtangliao |
98cf37aaa36f976dc67d59119aa05d860aac7d4c | 1,353 | cpp | C++ | code/language/family_c/language_swift.cpp | jmpcosta/loc | 0efc9aadd4cc08a6c5c6841f494862b35f4533be | [
"MIT"
] | null | null | null | code/language/family_c/language_swift.cpp | jmpcosta/loc | 0efc9aadd4cc08a6c5c6841f494862b35f4533be | [
"MIT"
] | null | null | null | code/language/family_c/language_swift.cpp | jmpcosta/loc | 0efc9aadd4cc08a6c5c6841f494862b35f4533be | [
"MIT"
] | null | null | null | // *****************************************************************************************
//
// File description:
//
// Author: Joao Costa
// Purpose: Define the SWIFT language
//
// *****************************************************************************************
// ***************************************... | 24.160714 | 92 | 0.31929 | jmpcosta |
98d19e3ee490f473c8139442c9643808c5af1d32 | 340 | cpp | C++ | Muriel/MuSpotLight.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:15:27.000Z | 2017-03-01T12:15:27.000Z | Muriel/MuSpotLight.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:19:17.000Z | 2017-03-01T12:19:52.000Z | Muriel/MuSpotLight.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "MuSpotLight.h"
namespace Muriel
{
SpotLight::SpotLight(const string& name, const Shader& shader, const Color& color, float intensity, Attenuation attenuation, float cutoff)
: PointLight(name, shader, color, intensity, attenuation)
{
_cutoff = cutoff;
}
SpotLight::~Spot... | 21.25 | 140 | 0.694118 | MurielSoftware |
98d4fd2f99c9a953a18bb03eda4d6f0590361ee4 | 619 | cpp | C++ | tests/DeductionGuideTest.cpp | galorojo/cppinsights | 52ecab4ddd8e36fb99893551cf0fb8b5d58589f2 | [
"MIT"
] | 1,853 | 2018-05-13T21:49:17.000Z | 2022-03-30T10:34:45.000Z | tests/DeductionGuideTest.cpp | galorojo/cppinsights | 52ecab4ddd8e36fb99893551cf0fb8b5d58589f2 | [
"MIT"
] | 398 | 2018-05-15T14:48:51.000Z | 2022-03-24T12:14:33.000Z | tests/DeductionGuideTest.cpp | galorojo/cppinsights | 52ecab4ddd8e36fb99893551cf0fb8b5d58589f2 | [
"MIT"
] | 104 | 2018-05-15T04:00:59.000Z | 2022-03-17T02:04:15.000Z | // Source: https://en.cppreference.com/w/cpp/language/class_template_argument_deduction
#include <iterator>
#include <vector>
namespace Test {
// declaration of the template
template<class T> struct container {
container(T t) {}
template<class Iter> container(Iter beg, Iter end);
};
// additional deduction gu... | 30.95 | 88 | 0.714055 | galorojo |
98de7130f1c3467b140180074cb8b742cb2d3844 | 1,465 | cc | C++ | src/main.cc | ShawnFeng0/log_rotate | f6c10ddab81c6d5ad5766067574c0cb229f2b0ab | [
"MIT"
] | null | null | null | src/main.cc | ShawnFeng0/log_rotate | f6c10ddab81c6d5ad5766067574c0cb229f2b0ab | [
"MIT"
] | null | null | null | src/main.cc | ShawnFeng0/log_rotate | f6c10ddab81c6d5ad5766067574c0cb229f2b0ab | [
"MIT"
] | null | null | null | //
// Created by shawnfeng on 2021-08-10.
//
#include <fcntl.h>
#include <poll.h>
#include <ulog/helper/async_rotating_file.h>
#include <ulog/ulog.h>
#include <unistd.h>
#include <CLI11/CLI11.hpp>
int main(int argc, char **argv) {
CLI::App app;
app.get_formatter()->column_width(40);
std::string file_path;
a... | 24.830508 | 76 | 0.63959 | ShawnFeng0 |
98e1101050d550fdcdef3a6f36c358ba565ae6aa | 55,053 | cpp | C++ | unit_tests/source/XStringTest.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null | unit_tests/source/XStringTest.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null | unit_tests/source/XStringTest.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null |
#include "XStringTest.h"
#include <cstdlib>
#include <cstring>
#include <iostream>
#include "XSDK/XString.h"
#include "XSDK/XException.h"
#include "XSDK/XMemory.h"
#include "XSDK/OS.h"
#ifdef WIN32
#include "WindowsCompliantUnicodeConstants.h"
#else
#include "LinuxCompliantUnicodeConstants.h"
#endif
using namespac... | 30.928652 | 180 | 0.623999 | MultiSight |
98e163c754642822fddaf25087079224391b91b3 | 1,258 | cpp | C++ | src/world/level.cpp | ValtoForks/crown | 0d273f352de01f0adac8a29db7f520979540b916 | [
"MIT"
] | null | null | null | src/world/level.cpp | ValtoForks/crown | 0d273f352de01f0adac8a29db7f520979540b916 | [
"MIT"
] | null | null | null | src/world/level.cpp | ValtoForks/crown | 0d273f352de01f0adac8a29db7f520979540b916 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2012-2018 Daniele Bartolini and individual contributors.
* License: https://github.com/dbartolini/crown/blob/master/LICENSE
*/
#include "resource/level_resource.h"
#include "resource/unit_resource.h"
#include "world/level.h"
#include "world/unit_manager.h"
#include "world/world.h"
namespace crow... | 21.689655 | 78 | 0.689984 | ValtoForks |
98e3c80eddf07354dbb52ab72fe647124b1b1f66 | 6,791 | hpp | C++ | include/pique/util/serializable-chunk.hpp | daboyuka/PIQUE | d0e2ba4cc47aaeaf364b3c76339306e1795adb5e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/pique/util/serializable-chunk.hpp | daboyuka/PIQUE | d0e2ba4cc47aaeaf364b3c76339306e1795adb5e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/pique/util/serializable-chunk.hpp | daboyuka/PIQUE | d0e2ba4cc47aaeaf364b3c76339306e1795adb5e | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 David A. Boyuka II
*
* 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 ... | 33.955 | 192 | 0.73244 | daboyuka |
98e4460c3af970b4d3b24cdb5e6c7c82cce2c4f6 | 17,553 | cpp | C++ | src/rdd9_mxf/RDD9IndexTable.cpp | AllMethodGrind/bmxlib | 9480bdec14c082f9b121b7a6102461b05bdea547 | [
"BSD-3-Clause"
] | 4 | 2015-02-24T23:55:07.000Z | 2021-04-13T20:48:45.000Z | src/rdd9_mxf/RDD9IndexTable.cpp | AllMethodGrind/bmxlib | 9480bdec14c082f9b121b7a6102461b05bdea547 | [
"BSD-3-Clause"
] | null | null | null | src/rdd9_mxf/RDD9IndexTable.cpp | AllMethodGrind/bmxlib | 9480bdec14c082f9b121b7a6102461b05bdea547 | [
"BSD-3-Clause"
] | 3 | 2019-03-20T18:34:45.000Z | 2020-10-04T20:37:52.000Z | /*
* Copyright (C) 2012, British Broadcasting Corporation
* All Rights Reserved.
*
* Author: Philip de Nier
*
* 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 t... | 34.758416 | 122 | 0.689284 | AllMethodGrind |
98e90823c0f79126d98e8625cc556125d4c595f6 | 593 | cpp | C++ | benchmark/common/utils.cpp | breiker/cereal_fwd | 9a668029a194f4fc2c2324ff05fb2198d85bb623 | [
"BSD-3-Clause"
] | 1 | 2021-04-27T22:15:00.000Z | 2021-04-27T22:15:00.000Z | benchmark/common/utils.cpp | breiker/cereal_fwd | 9a668029a194f4fc2c2324ff05fb2198d85bb623 | [
"BSD-3-Clause"
] | null | null | null | benchmark/common/utils.cpp | breiker/cereal_fwd | 9a668029a194f4fc2c2324ff05fb2198d85bb623 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by breiker on 6/11/17.
//
#include "utils.hpp"
thread_local Random Random::random;
Random& GetRandom() {
static thread_local Random random;
return random;
}
#if USING_NULLSTREAM
int NullBuffer::overflow(int c)
{
++bytes;
return c;
}
#endif
Random::Random()
: gen(randomDevice()),
uni... | 19.129032 | 101 | 0.694772 | breiker |
98eaa2b0a667535e46e21a1c10e466f29d0ea7dd | 7,171 | cpp | C++ | src/solvers/smt/smt_overflow.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | src/solvers/smt/smt_overflow.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | src/solvers/smt/smt_overflow.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | #include <solvers/smt/smt_conv.h>
smt_astt smt_convt::overflow_arith(const expr2tc &expr)
{
// If in integer mode, this is completely pointless. Return false.
if(int_encoding)
return mk_smt_bool(false);
const overflow2t &overflow = to_overflow2t(expr);
const arith_2ops &opers = static_cast<const arith_2op... | 33.046083 | 80 | 0.678427 | shmarovfedor |
98ebc139f8ea735c48cd94a5c7c28626a2723877 | 2,604 | cpp | C++ | mrrc/src/mirror/ast/expressions/core.cpp | nfwGytautas/mirror | 4e9a20f364076cd52abf3c358afebe7b10c08078 | [
"MIT"
] | null | null | null | mrrc/src/mirror/ast/expressions/core.cpp | nfwGytautas/mirror | 4e9a20f364076cd52abf3c358afebe7b10c08078 | [
"MIT"
] | null | null | null | mrrc/src/mirror/ast/expressions/core.cpp | nfwGytautas/mirror | 4e9a20f364076cd52abf3c358afebe7b10c08078 | [
"MIT"
] | null | null | null | #include "mirror/ast/mrrexpr.hpp"
#include "mirror/utility/log.hpp"
namespace mirror {
llvm::Value* mrr_bin_expr::codegen() {
// Assignment
if (m_op == '=') {
mrr_var_expr* lhse = dynamic_cast<mrr_var_expr*>(m_lhs.get());
if (!lhse) {
log_error("Destination of '=' must be a variable");
return nullp... | 31.756098 | 99 | 0.562596 | nfwGytautas |
98ecf91bf490cef0a4ed25662a492514698a2e81 | 6,353 | cpp | C++ | services/arena/test/scriptTests/ChaiRegisterTestCase.cpp | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | 9 | 2019-04-13T17:11:06.000Z | 2020-04-23T12:06:59.000Z | services/arena/test/scriptTests/ChaiRegisterTestCase.cpp | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | null | null | null | services/arena/test/scriptTests/ChaiRegisterTestCase.cpp | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | 2 | 2020-04-07T06:05:11.000Z | 2020-11-07T23:26:56.000Z | // MIT License
//
// Copyright (c) 2021 Quentin Balland
// Repository : https://github.com/FreeYourSoul/FyS
//
// 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, ... | 39.459627 | 119 | 0.678262 | FreeYourSoul |
98eec53c78f5c32c362078b44bc5c102f2e96a91 | 11,333 | cpp | C++ | realcharge/bossManage.cpp | wakefulwombat/realcharge | 596b08f6dd64217380a33b8d72a158c787622a7c | [
"MIT"
] | null | null | null | realcharge/bossManage.cpp | wakefulwombat/realcharge | 596b08f6dd64217380a33b8d72a158c787622a7c | [
"MIT"
] | null | null | null | realcharge/bossManage.cpp | wakefulwombat/realcharge | 596b08f6dd64217380a33b8d72a158c787622a7c | [
"MIT"
] | null | null | null | #include "bossManage.h"
#include "sound.h"
#include "DxLib.h"
BossManage::BossManage(ISetSelifBox* isetSelifBox, ISetTextEffect* isetTextEffect, ISetBullet* isetBullet, ISetBulletInvalid* isetBulletInvalid, ISetItem* isetItem, IGetPosition* igetPlayerPosition, IGetStage* igetStage, ISetNextStage* isetNextStage, ISetBu... | 36.915309 | 373 | 0.717462 | wakefulwombat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.