hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85c708e5e7da4d3365a6e763963c16e5a61b97dd | 5,610 | cpp | C++ | old/AG/drivers/shell/driver.cpp | jcnelson/syndicate | 4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b | [
"Apache-2.0"
] | 16 | 2015-01-02T15:39:04.000Z | 2016-03-17T06:38:46.000Z | old/AG/drivers/shell/driver.cpp | jcnelson/syndicate | 4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b | [
"Apache-2.0"
] | 37 | 2015-01-28T20:58:05.000Z | 2016-03-22T04:01:32.000Z | old/AG/drivers/shell/driver.cpp | jcnelson/syndicate | 4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b | [
"Apache-2.0"
] | 8 | 2015-04-08T02:26:03.000Z | 2016-03-04T05:56:24.000Z | /*
Copyright 2013 The Trustees of Princeton University
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 applicabl... | 26.338028 | 141 | 0.631373 | jcnelson |
85d258ba8b09f1b388ab2886567b836358b3b54c | 1,352 | cpp | C++ | strtolower.cpp | WojciechMula/simd-string | 59968cbd270b4a3345d4714d92850866daf49b38 | [
"BSD-2-Clause"
] | 69 | 2016-04-14T14:48:37.000Z | 2022-03-11T14:31:18.000Z | strtolower.cpp | WojciechMula/simd-string | 59968cbd270b4a3345d4714d92850866daf49b38 | [
"BSD-2-Clause"
] | 2 | 2017-06-28T14:22:20.000Z | 2018-08-25T04:27:48.000Z | strtolower.cpp | WojciechMula/simd-string | 59968cbd270b4a3345d4714d92850866daf49b38 | [
"BSD-2-Clause"
] | 14 | 2015-11-27T08:57:02.000Z | 2020-11-04T00:50:56.000Z | enum class strcase_mode {
to_lower,
to_upper,
swap_case
};
void sse4_strcase(const char* s, strcase_mode m) {
__m128i ranges;
switch (m) {
case strcase_mode::to_lower:
ranges = _mm_setr_epi8('A', 'Z', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
break;
case... | 25.037037 | 91 | 0.522189 | WojciechMula |
85d418de98e3578d322f9675da6e78d94b9aa496 | 12,272 | cpp | C++ | Tests/GeometryShop/stencilTestbed/exec/dirichletTest.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-05-20T13:04:05.000Z | 2021-05-20T13:04:05.000Z | Tests/GeometryShop/stencilTestbed/exec/dirichletTest.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Tests/GeometryShop/stencilTestbed/exec/dirichletTest.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <cmath>
#include "AMReX_GeometryShop.H"
#include "AMReX_BoxIterator.H"
#include "AMReX_ParmParse.H"
#include "AMReX_RealVect.H"
#include "AMReX_SphereIF.H"
#include "AMReX_EBCellFAB.H"
#include "AMReX_VolIndex.H"
#include "AMReX_FaceIndex.H"
#include "AMReX_TestbedUtil.H"
#include <AMReX_ParallelDescriptor.H>... | 30.376238 | 134 | 0.597376 | malvarado27 |
85d5cb092415734b16aa92020cbc827f60e46201 | 2,423 | cpp | C++ | Felix/ComMemories_test.cpp | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | Felix/ComMemories_test.cpp | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | Felix/ComMemories_test.cpp | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "App2.h"
#include "Memories.h"
#include "query.h"
#ifdef UNIT_TEST
#include "felix_model_fake.h"
#include <boost/test/unit_test.hpp>
// test_properties_loaded_history
BOOST_AUTO_TEST_SUITE( TestComMemories )
using namespace mem_engine;
typedef CComObject< CMemories > m... | 23.524272 | 67 | 0.687165 | ultimatezen |
85d835266d81d732ebc3afe51727c027f702ff1c | 445 | cpp | C++ | 10799.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 10799.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 10799.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <memory.h>
#include <stack>
using namespace std;
int main() {
string str;
cin >> str;
int stack = 0;
int cnt = 0;
for (int i = 0; i < str.size(); i++) {
if (str[i] == '(' && str[i + 1] == ')') {
cnt += stack;
i++; conti... | 15.892857 | 43 | 0.516854 | jaemin2682 |
85d90d31873f73245e390cc069adc3154c136e58 | 9,968 | cpp | C++ | src/qsiproject.cpp | Eggbertx/QtSphere-IDE | 7ae7ed840fcef7a79fb47a6903afb95ca23838ca | [
"BSD-2-Clause"
] | 12 | 2017-05-04T16:58:07.000Z | 2021-06-09T03:08:29.000Z | src/qsiproject.cpp | Eggbertx/QtSphere-IDE | 7ae7ed840fcef7a79fb47a6903afb95ca23838ca | [
"BSD-2-Clause"
] | 1 | 2017-06-19T03:30:22.000Z | 2018-04-09T21:35:00.000Z | src/qsiproject.cpp | Eggbertx/QtSphere-IDE | 7ae7ed840fcef7a79fb47a6903afb95ca23838ca | [
"BSD-2-Clause"
] | 1 | 2018-09-04T00:27:54.000Z | 2018-09-04T00:27:54.000Z | #include <QDebug>
#include <QFile>
#include <QDir>
#include <QFileInfo>
#include <QFileInfoList>
#include <QRegularExpression>
#include <QRegularExpressionMatchIterator>
#include <QRegularExpressionMatch>
#include <QStringList>
#include <QTextStream>
#include "qsiproject.h"
#include "util.h"
#define QUO... | 27.688889 | 105 | 0.661116 | Eggbertx |
85dbe2608391566cff2e04033a9ea0c5b5be9cec | 712 | cpp | C++ | Source/041.SapXepTang.cpp | tannd/learning-cplus | 1969b7ce5dd331348330df8121fdafec16325589 | [
"Apache-2.0"
] | 2 | 2016-12-15T07:17:33.000Z | 2018-10-18T15:15:30.000Z | Source/041.SapXepTang.cpp | tannd/learning-cplus | 1969b7ce5dd331348330df8121fdafec16325589 | [
"Apache-2.0"
] | null | null | null | Source/041.SapXepTang.cpp | tannd/learning-cplus | 1969b7ce5dd331348330df8121fdafec16325589 | [
"Apache-2.0"
] | null | null | null | //============================================================================//
// Unit 041 : Sap xep mang tang dan
// Author : Nguyen.Duy.Tan
// Date : 18/11/2011 (dd/mm/yyyy)
//============================================================================//
#include <stdio.h>
#include <conio.h>
void nhap(int A[1... | 18.736842 | 80 | 0.373596 | tannd |
85e04fc53cafac91ba1c99ee8fd15640972e8382 | 82 | hpp | C++ | include/Engine/IUpdatable.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | include/Engine/IUpdatable.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | include/Engine/IUpdatable.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | #pragma once
class IUpdatable
{
public:
virtual void Update(float delta) = 0;
}; | 11.714286 | 38 | 0.719512 | FoxelCode |
85e44c2aa042f5cbd8cf6510cf9fc9e69e8f0ddd | 1,044 | cpp | C++ | math/crt-extgcd.cpp | Yoko303/algorithm | 9caa62f8e9a8a01c20256029d21dbe088cc19790 | [
"Unlicense"
] | null | null | null | math/crt-extgcd.cpp | Yoko303/algorithm | 9caa62f8e9a8a01c20256029d21dbe088cc19790 | [
"Unlicense"
] | null | null | null | math/crt-extgcd.cpp | Yoko303/algorithm | 9caa62f8e9a8a01c20256029d21dbe088cc19790 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
using ll = long long;
ll mod(ll a, ll m) { return (a%m + m) % m; }
ll ext_gcd(ll a, ll b, ll& x, ll& y) {
if(b == 0) { x = 1; y = 0; return a; }
ll g = ext_gcd(b, a % b, y, x);
y -= a/b * x;
return g;
}
pair<ll, ll> crt_extgcd(const vector<... | 26.769231 | 85 | 0.471264 | Yoko303 |
85e9a516c869525d7025cdb4093b54b5ff78abbb | 1,153 | cpp | C++ | platform/windows/error_util.cpp | mexicowilly/Chucho | f4235420437eb2078ab592540c0d729b7b9a3c10 | [
"Apache-2.0"
] | 4 | 2016-12-06T05:33:29.000Z | 2017-12-17T17:04:25.000Z | platform/windows/error_util.cpp | mexicowilly/Chucho | f4235420437eb2078ab592540c0d729b7b9a3c10 | [
"Apache-2.0"
] | 147 | 2016-09-05T14:00:46.000Z | 2021-08-24T14:43:07.000Z | platform/windows/error_util.cpp | mexicowilly/Chucho | f4235420437eb2078ab592540c0d729b7b9a3c10 | [
"Apache-2.0"
] | 4 | 2017-11-08T04:12:39.000Z | 2022-01-04T06:40:16.000Z | /*
* Copyright 2013-2021 Will Mason
*
* 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 applicab... | 25.065217 | 83 | 0.606245 | mexicowilly |
85ef5de0c55ade0bed3fdadeaaa54da13474941a | 1,558 | cc | C++ | Poj/1144.cc | KailinLi/Online-Judge | 606ed66b121beb02d72f7920e88a5af5079f49bd | [
"MIT"
] | 1 | 2017-12-07T01:00:17.000Z | 2017-12-07T01:00:17.000Z | Poj/1144.cc | KailinLi/Online-Judge | 606ed66b121beb02d72f7920e88a5af5079f49bd | [
"MIT"
] | null | null | null | Poj/1144.cc | KailinLi/Online-Judge | 606ed66b121beb02d72f7920e88a5af5079f49bd | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
#define REP(i, n) for (int (i) = 0; (i) < (n); ++(i))
using namespace std;
const int INF = 0x3f3f3f3f;
const int MAXN = 100 + 5;
struct Edge {
int to;
int next;
};
Edge edge[MAXN * MAXN];
int head[MAXN];
int eCnt;
void ad... | 19 | 53 | 0.529525 | KailinLi |
85f1821cc53fb65df98570c31b13135005760e5c | 8,598 | cc | C++ | SimG4Core/GFlash/TB/TreeProducerCalibSimul.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | SimG4Core/GFlash/TB/TreeProducerCalibSimul.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | SimG4Core/GFlash/TB/TreeProducerCalibSimul.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "SimG4Core/GFlash/TB/TreeProducerCalibSimul.h"
using namespace std;
// -------------------------------------------------
// contructor
TreeProducerCalibSimul::TreeProducerCalibSimul( const edm::ParameterSet& iConfig )
{
// now do what ever initialization is needed
xtalInBeam = iConfig.ge... | 33.850394 | 181 | 0.576878 | ckamtsikis |
85f18c1b65dc2e1b838cc6065e7dc6339dffe869 | 9,771 | cpp | C++ | libalcc/libalcc.cpp | comnetsAD/ALCC | fc9c627de8c381987fc775ce0872339fceb43ddf | [
"MIT"
] | 6 | 2021-05-19T16:58:15.000Z | 2022-03-10T03:51:20.000Z | libalcc/libalcc.cpp | comnetsAD/ALCC | fc9c627de8c381987fc775ce0872339fceb43ddf | [
"MIT"
] | null | null | null | libalcc/libalcc.cpp | comnetsAD/ALCC | fc9c627de8c381987fc775ce0872339fceb43ddf | [
"MIT"
] | 4 | 2021-05-24T11:19:18.000Z | 2022-03-08T17:58:24.000Z | #include <stdio.h>
#include <iostream>
#include <errno.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include "libalcc.h"
#include <time.h>
#include <cstdio>
#include <memory>
#include <mutex>
#include <linux/netlink.h>
#include <math.h>
... | 25.578534 | 154 | 0.616621 | comnetsAD |
85f442eace7036a3e8cdbe261fc68ce8da967acd | 39,719 | cpp | C++ | ds/security/services/ca/tools/viewtest/viewtest.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/services/ca/tools/viewtest/viewtest.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/services/ca/tools/viewtest/viewtest.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1999 - 1999
//
// File: viewtest.cpp
//
//--------------------------------------------------------------------------
#include <pch.cpp>
#pragma hdrstop
... | 46.673325 | 98 | 0.581611 | npocmaka |
85f55f8ff08cc111c81a0fb2a084ff982dc53107 | 1,711 | cpp | C++ | 11_recursion/06/06.cpp | bilyanhadzhi/intro_to_programming_labs | 083bfaad1fdb423c0d8320b3e882316fa56c0bf8 | [
"MIT"
] | 3 | 2020-11-05T10:11:31.000Z | 2020-11-14T16:10:27.000Z | 11_recursion/06/06.cpp | bilyanhadzhi/intro_to_programming_labs | 083bfaad1fdb423c0d8320b3e882316fa56c0bf8 | [
"MIT"
] | null | null | null | 11_recursion/06/06.cpp | bilyanhadzhi/intro_to_programming_labs | 083bfaad1fdb423c0d8320b3e882316fa56c0bf8 | [
"MIT"
] | 1 | 2021-06-17T13:21:58.000Z | 2021-06-17T13:21:58.000Z | #include <iostream>
#include <iomanip>
bool can_move(int n, int** board, int x, int y, int dx, int dy)
{
int new_x = x + dx;
int new_y = y + dy;
if (new_x < 0 || new_x >= n || new_y < 0 || new_y >= n)
{
return false;
}
return board[new_x][new_y] == -1;
}
bool knights_tour_rec(int n, ... | 19.011111 | 74 | 0.421391 | bilyanhadzhi |
85fb484dd9adce3422977ac9ce9bd258c17d9e19 | 1,594 | cpp | C++ | acmp.ru/p0651.cpp | bolatov/contests | 39654ec36e1b7ff62052e324428141a9564fd576 | [
"MIT"
] | null | null | null | acmp.ru/p0651.cpp | bolatov/contests | 39654ec36e1b7ff62052e324428141a9564fd576 | [
"MIT"
] | null | null | null | acmp.ru/p0651.cpp | bolatov/contests | 39654ec36e1b7ff62052e324428141a9564fd576 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#ifndef int64
#define int64 long long
#endif
void g(unordered_map<int, int>& mp, int i) {
if (mp.find(i) == mp.end()) {
mp[i] = 0;
}
mp[i]++;
}
unordered_map<int, int> f(int n) {
unordered_map<int, int> mp;
while (n % 2 == 0) {
g(mp, ... | 19.679012 | 73 | 0.405897 | bolatov |
c8020672f066988136714597be8aae036d810b6b | 2,538 | cpp | C++ | pilotapp/Source/Widgets/Widgets/MainContentSlate/ContentWidgets/Settings/SettingsContentWidgets/Options/settingsOptionsWidget.cpp | appliedengineering/pilotapp | d7130687fcbc4b959d54f07dc6b3c1b9db8788db | [
"MIT"
] | 1 | 2022-02-21T00:41:16.000Z | 2022-02-21T00:41:16.000Z | pilotapp/Source/Widgets/Widgets/MainContentSlate/ContentWidgets/Settings/SettingsContentWidgets/Options/settingsOptionsWidget.cpp | appliedengineering/pilotapp | d7130687fcbc4b959d54f07dc6b3c1b9db8788db | [
"MIT"
] | null | null | null | pilotapp/Source/Widgets/Widgets/MainContentSlate/ContentWidgets/Settings/SettingsContentWidgets/Options/settingsOptionsWidget.cpp | appliedengineering/pilotapp | d7130687fcbc4b959d54f07dc6b3c1b9db8788db | [
"MIT"
] | null | null | null | #include "settingsOptionsWidget.h"
#include <QMessageBox>
#include "../../../../../../../Backend/Utilities/utilities.h"
//
settingsOptionsWidget::settingsOptionsWidget(QWidget* parent){
//utilities::setPaletteColor(this, QPalette::Background, Qt::blue);
setupLayout();
renderContent();
}
settingsOptio... | 29.511628 | 215 | 0.745863 | appliedengineering |
65a08447e47647e889ee19382dfbf9bdae4897d5 | 529 | cpp | C++ | 4rth_Sem_c++_backup/SHIT/vowel_freq.cpp | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 16 | 2018-11-26T08:39:42.000Z | 2019-05-08T10:09:52.000Z | 4rth_Sem_c++_backup/SHIT/vowel_freq.cpp | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 8 | 2020-05-04T06:29:26.000Z | 2022-02-12T05:33:16.000Z | 4rth_Sem_c++_backup/SHIT/vowel_freq.cpp | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 5 | 2020-02-11T16:02:21.000Z | 2021-02-05T07:48:30.000Z | #include<stdio.h>
#include<conio.h>
main()
{
char s[100];
printf("\nEnter the name :\n");
gets(s);
int i,j,c=0;
printf("\nFrequency of each vowel :\n");
for(i=0;s[i];i++)
{
c=0;
if(s[i]=='A' || s[i]=='E' || s[i]=='I' || s[i]=='O' || s[i]=='U' || s[i]==... | 23 | 138 | 0.325142 | SayanGhoshBDA |
65a35e3e212d7da5f1958af0b3c4298aaceb91e4 | 607 | cpp | C++ | example/neighbour_example.cpp | arapelle/dirn | 79e7daea5e7ee38d985c8fdd985a34544d220930 | [
"MIT"
] | null | null | null | example/neighbour_example.cpp | arapelle/dirn | 79e7daea5e7ee38d985c8fdd985a34544d220930 | [
"MIT"
] | 2 | 2020-09-10T09:51:38.000Z | 2020-09-10T21:18:28.000Z | example/neighbour_example.cpp | arapelle/dirn | 79e7daea5e7ee38d985c8fdd985a34544d220930 | [
"MIT"
] | null | null | null | #include <iostream>
#include <dirn/directions4.hpp>
#include <dirn/neighbourhood.hpp>
class vec2
{
int x_;
int y_;
public:
vec2(int x = 0, int y = 0)
: x_(x), y_(y)
{}
const int& x() const { return x_; }
int& x() { return x_; }
const int& y() const { return y_; }
int& y() { r... | 19.580645 | 77 | 0.576606 | arapelle |
65a41bcd0316cb7710b58f064120fe705f18ef34 | 395 | cpp | C++ | src/World.cpp | jacksonwilliampluskota/GamePlaatformOF | 53701190f21aa956864311ca6d971f80c206a0cd | [
"MIT"
] | 1 | 2020-02-18T13:35:44.000Z | 2020-02-18T13:35:44.000Z | src/World.cpp | jacksonwilliampluskota/GamePlaatformOF | 53701190f21aa956864311ca6d971f80c206a0cd | [
"MIT"
] | null | null | null | src/World.cpp | jacksonwilliampluskota/GamePlaatformOF | 53701190f21aa956864311ca6d971f80c206a0cd | [
"MIT"
] | 1 | 2020-02-18T13:32:02.000Z | 2020-02-18T13:32:02.000Z | #include "World.h"
#include <stdio.h>
World::World()
{
}
void World::moeda_setup(string state, int x, int y)
{
animationCoin = new Animation();
positionCoin.set(x, y);
animationCoin->setup(state, 4, 8);
}
void World::moeda_update(float deltaTime)
{
}
void World::moeda_draw()
{
ofPushMatrix();
animationCoin->dr... | 13.62069 | 53 | 0.688608 | jacksonwilliampluskota |
65ac9ada2404e217870195ff18e32ab99dfe7cfb | 215 | hpp | C++ | MntoneUIFramework/include/text_block.hpp | mntone/MntoneUIFramework | 61a66977b2a1d8a9208d998493f8f99c6aa94380 | [
"MIT"
] | 12 | 2015-07-06T10:18:12.000Z | 2019-03-11T02:48:00.000Z | MntoneUIFramework/include/text_block.hpp | mntone/MntoneUIFramework | 61a66977b2a1d8a9208d998493f8f99c6aa94380 | [
"MIT"
] | null | null | null | MntoneUIFramework/include/text_block.hpp | mntone/MntoneUIFramework | 61a66977b2a1d8a9208d998493f8f99c6aa94380 | [
"MIT"
] | 4 | 2016-07-06T13:04:17.000Z | 2019-10-19T02:08:25.000Z | #pragma once
#include "static_panel.hpp"
namespace mnfx {
class text_block final
: public static_panel
{
public:
text_block()
: static_panel()
{
set_style(style() | window_style::static_no_prefix);
}
};
} | 12.647059 | 54 | 0.711628 | mntone |
65ad8f3820547925d46eb02c0129db4515650788 | 1,217 | cpp | C++ | averageOfNums.cpp | nikeshsraj10/parallel-programming-multithreading | 046af811add225fa6f40fbb63d5656e6c72de7dd | [
"MIT"
] | null | null | null | averageOfNums.cpp | nikeshsraj10/parallel-programming-multithreading | 046af811add225fa6f40fbb63d5656e6c72de7dd | [
"MIT"
] | null | null | null | averageOfNums.cpp | nikeshsraj10/parallel-programming-multithreading | 046af811add225fa6f40fbb63d5656e6c72de7dd | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
#include <vector>
using namespace std;
void average(vector<vector<int>>& A, vector<vector<int>>& B, int n, int r1, int r2, int c1, int c2) {
for (int i = r1; i <= r2; i++) {
for (int j = c1; j <= c2; j++) {
int N, E, S, W;
N = (i - 1 >= 0)? A[i - 1][j] : 0;
E = (j + 1... | 23.403846 | 101 | 0.459326 | nikeshsraj10 |
65afe8678836fb9569db6a751536eec964f2ff01 | 1,112 | cpp | C++ | ClientEngine/game/engine/Stage/UnitPart/UnitExecute/ExecuteParameter.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | ClientEngine/game/engine/Stage/UnitPart/UnitExecute/ExecuteParameter.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | ClientEngine/game/engine/Stage/UnitPart/UnitExecute/ExecuteParameter.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | #include "ExecuteParameter.h"
#include "../../UnitInstance/UnitInstanceStandard.h"
ExecuteParameter::ExecuteParameter(SharedParams_t params) :
ExecuteBase(params)
{
_behavior = NULL;
}
ExecuteParameter::~ExecuteParameter()
{
}
// Добавить параметр
void ExecuteParameter::AddParameter( stringc name, stringc val )
... | 21.384615 | 82 | 0.714928 | twesd |
65b053c313968aa4493640a4b25a3a797b28ebba | 3,723 | cpp | C++ | Utilities/aaf2xtl/aif2xtllib/Aif2XtlMobSelectVisitor.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | Utilities/aaf2xtl/aif2xtllib/Aif2XtlMobSelectVisitor.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | Utilities/aaf2xtl/aif2xtllib/Aif2XtlMobSelectVisitor.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | //=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... | 28.204545 | 86 | 0.688423 | Phygon |
65b0b82cbc83c964bdcb65afee46f16f943582bf | 5,022 | cpp | C++ | src/model/mesh_part.cpp | Shtille/scythe | 795b482921bed9ab36fd9ced38863371c75367ab | [
"MIT"
] | null | null | null | src/model/mesh_part.cpp | Shtille/scythe | 795b482921bed9ab36fd9ced38863371c75367ab | [
"MIT"
] | 8 | 2018-07-12T14:10:53.000Z | 2020-09-17T11:15:52.000Z | src/model/mesh_part.cpp | Shtille/scythe | 795b482921bed9ab36fd9ced38863371c75367ab | [
"MIT"
] | null | null | null | #include "mesh_part.h"
#include "material.h"
namespace scythe {
MeshPart::MeshPart(Renderer * renderer)
: primitive_mode_(PrimitiveType::kTriangleStrip)
, renderer_(renderer)
, material_(nullptr)
, vertex_buffer_(nullptr)
, index_buffer_(nullptr)
, vertex_array_object_(0)
, num_vertices_(0)
, vertices_array... | 27.145946 | 134 | 0.691358 | Shtille |
65b211d32e64dc9f199acfd583066d2c8d19a85d | 176 | hpp | C++ | include/queue.hpp | Dacilndak/ds | edae4a057912946329066338bada4deea8d723ab | [
"MIT"
] | null | null | null | include/queue.hpp | Dacilndak/ds | edae4a057912946329066338bada4deea8d723ab | [
"MIT"
] | null | null | null | include/queue.hpp | Dacilndak/ds | edae4a057912946329066338bada4deea8d723ab | [
"MIT"
] | null | null | null | #ifndef _MPH_WRAPPER_QUEUE_H_
#define _MPH_WRAPPER_QUEUE_H_
#include <queue/queue.hpp>
#include <queue/deque.hpp>
template <typename T> using DoubleQueue = Deque<T>;
#endif
| 17.6 | 51 | 0.784091 | Dacilndak |
65b4254056b9fe1d4d6cef2f490b823ad788778b | 452 | cpp | C++ | Codeforces/297/A.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | 2 | 2018-12-11T14:37:24.000Z | 2022-01-23T18:11:54.000Z | Codeforces/297/A.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | Codeforces/297/A.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
n = 2*n-2;
string s;
cin>>s;
int l[26]={0};
int count = 0;
for(int i=0;i<n;i++)
{
int c = s[i]-'a';
if(c>=0 && c<26) l[c]++;
else if(l[s[i]-'A']>0) {l[s[i]-'A']--;}
else {count++;}
// cout<<"i: "<<i<<" count:... | 17.384615 | 58 | 0.438053 | Mindjolt2406 |
65b8fe5092ddff65bc1f0e696534a9b309762332 | 10,455 | cpp | C++ | pass/semantic/tests/lnast_semantic_test.cpp | maximiliantiao/livehd | 88215f0d6fc395db96e6ed058f00b9205454bd0c | [
"BSD-3-Clause"
] | null | null | null | pass/semantic/tests/lnast_semantic_test.cpp | maximiliantiao/livehd | 88215f0d6fc395db96e6ed058f00b9205454bd0c | [
"BSD-3-Clause"
] | null | null | null | pass/semantic/tests/lnast_semantic_test.cpp | maximiliantiao/livehd | 88215f0d6fc395db96e6ed058f00b9205454bd0c | [
"BSD-3-Clause"
] | null | null | null |
#include "semantic_check.hpp"
#include "lnast.hpp"
int main(void) {
int line_num, pos1, pos2 = 0;
Lnast* lnast = new Lnast();
Semantic_pass s;
// ======================== Testing Assign Operations ========================
// auto idx_root = Lnast_node::create_top ("top", line_num, pos1, pos2);
//... | 61.140351 | 121 | 0.610904 | maximiliantiao |
65bdf857146a86817765e8af2852b726c29c1865 | 2,717 | cpp | C++ | tests/src/test_comparisons.cpp | cmas1/HolorLib | bb62dc738298b7e229a1965a5bfc206395f68b88 | [
"MIT"
] | 1 | 2022-01-20T12:48:36.000Z | 2022-01-20T12:48:36.000Z | tests/src/test_comparisons.cpp | cmas1/HolorLib | bb62dc738298b7e229a1965a5bfc206395f68b88 | [
"MIT"
] | null | null | null | tests/src/test_comparisons.cpp | cmas1/HolorLib | bb62dc738298b7e229a1965a5bfc206395f68b88 | [
"MIT"
] | null | null | null | // This file is part of Holor, a C++ header-only template library for multi-dimensional containers
// Copyright 2020-2022 Carlo Masone
// 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 wi... | 35.285714 | 98 | 0.622746 | cmas1 |
65c2a37f7fe81f129b08baa6011382616fa71d87 | 336 | cpp | C++ | NKZX_NOI_OJ/P1298.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | 1 | 2021-04-05T16:26:00.000Z | 2021-04-05T16:26:00.000Z | NKZX_NOI_OJ/P1298.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | null | null | null | NKZX_NOI_OJ/P1298.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | null | null | null | #include<cstdio>
bool yy[1001];
int main(){
int jj,zz,kk=0;
scanf("%d",&jj);
for(int i=0;i<jj;i++){
scanf("%d",&zz);
if(!yy[zz]){
yy[zz]=1;
kk++;
}
}
printf("%d\n",kk);
for(int i=1;i<=1000;i++){
if(yy[i])
printf("%d ",i);
}
... | 16.8 | 29 | 0.372024 | Rose2073 |
65c2a8014a18d147935d01e4c3bc02c4c99bfe6b | 1,158 | cpp | C++ | tests/wavelet_matrix_test.cpp | keijak/hikidashi-cpp | 63d01dfa1587fa56fd7f4e50712f7c10d8168520 | [
"Apache-2.0"
] | null | null | null | tests/wavelet_matrix_test.cpp | keijak/hikidashi-cpp | 63d01dfa1587fa56fd7f4e50712f7c10d8168520 | [
"Apache-2.0"
] | null | null | null | tests/wavelet_matrix_test.cpp | keijak/hikidashi-cpp | 63d01dfa1587fa56fd7f4e50712f7c10d8168520 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#include "../src/wavelet_matrix.hpp"
#include "gtest/gtest.h"
using namespace std;
struct WaveletMatrixTest : public ::testing::Test {
vector<unsigned> vec;
WaveletMatrix<unsigned> wm;
WaveletMatrixTest() {
vec = {1, 3, 5, 7, 3, 2, 4, 1, 2, 3, 4};
wm = WaveletMatrix<unsigned>(v... | 25.173913 | 51 | 0.635579 | keijak |
65c4c6885fc5beb79b32ce5ffcb5dbeace35cbd0 | 4,146 | cpp | C++ | fboss/agent/hw/test/dataplane_tests/HwL3Tests.cpp | isabella232/fboss | e552180def2131b2827cbcdc4e6248765f0b96ce | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/hw/test/dataplane_tests/HwL3Tests.cpp | isabella232/fboss | e552180def2131b2827cbcdc4e6248765f0b96ce | [
"BSD-3-Clause"
] | 1 | 2021-04-16T12:11:48.000Z | 2021-04-16T12:11:48.000Z | fboss/agent/hw/test/dataplane_tests/HwL3Tests.cpp | isabella232/fboss | e552180def2131b2827cbcdc4e6248765f0b96ce | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | 32.390625 | 79 | 0.660396 | isabella232 |
65c564974845a5802c4daac0007a01c2b8c94121 | 1,214 | cpp | C++ | Reference/Graphs/LCA.cpp | searleser97/Algorithms | af791541d416c29867213d705375cbb3361f486c | [
"Apache-2.0"
] | 7 | 2019-06-06T17:54:20.000Z | 2021-03-24T02:31:55.000Z | Reference/Graphs/LCA.cpp | searleser97/Algorithms | af791541d416c29867213d705375cbb3361f486c | [
"Apache-2.0"
] | null | null | null | Reference/Graphs/LCA.cpp | searleser97/Algorithms | af791541d416c29867213d705375cbb3361f486c | [
"Apache-2.0"
] | 1 | 2021-03-24T02:31:57.000Z | 2021-03-24T02:31:57.000Z | // 7
// st = sparse table, p = parent
typedef pair<int, int> T;
int neutro = 0;
vector<vector<T>> st;
vector<int> first;
vector<T> tour;
vector<vector<int>> adj;
void init(int N) { adj.assign(N, vector<int>()); }
// 4
void addEdge(int u, int v) {
adj[u].push_back(v);
adj[v].push_back(u);
}
T F(T a, T b) { return ... | 22.481481 | 53 | 0.500824 | searleser97 |
65c892a3f041a6b504ef1025ee4bd0f9400b46b4 | 2,777 | cc | C++ | src/client/StatusCommand.cc | ryan-rao/LTFS-Data-Management | 041960282d20aeefb8da20eabf04367a164a5903 | [
"Apache-2.0"
] | 19 | 2018-06-28T03:53:41.000Z | 2022-03-15T16:17:33.000Z | src/client/StatusCommand.cc | ryan-rao/LTFS-Data-Management | 041960282d20aeefb8da20eabf04367a164a5903 | [
"Apache-2.0"
] | 13 | 2018-04-25T15:40:14.000Z | 2021-01-18T11:03:27.000Z | src/client/StatusCommand.cc | ryan-rao/LTFS-Data-Management | 041960282d20aeefb8da20eabf04367a164a5903 | [
"Apache-2.0"
] | 8 | 2018-08-08T05:40:31.000Z | 2022-03-22T16:21:06.000Z | /*******************************************************************************
* Copyright 2018 IBM Corp. 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
*
* ht... | 25.018018 | 93 | 0.623335 | ryan-rao |
65caacf185c4f367d99cf40176d1cc1f8057cab8 | 432 | cpp | C++ | cpp/cpp_primer_code/chap07/putval1.cpp | jiapeish/leetcode-c-cpp | ca98deee38242564160b1df04096bb04f7e9b6c6 | [
"Apache-2.0"
] | null | null | null | cpp/cpp_primer_code/chap07/putval1.cpp | jiapeish/leetcode-c-cpp | ca98deee38242564160b1df04096bb04f7e9b6c6 | [
"Apache-2.0"
] | null | null | null | cpp/cpp_primer_code/chap07/putval1.cpp | jiapeish/leetcode-c-cpp | ca98deee38242564160b1df04096bb04f7e9b6c6 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using std::cout;
const lineLength = 12; // elements to a line
void putValues( int *ia, int sz )
{
cout << "( " << sz << " )< ";
for ( int i = 0; i < sz; ++i )
{
if ( i % lineLength == 0 && i )
cout << "\n\t"; // line filled
cout << ia[ i ];
// separate all but last ele... | 18.782609 | 45 | 0.462963 | jiapeish |
65cd4d0b865ea0a1db86efa80b5310220d5aaab9 | 451 | cpp | C++ | tests/RenderCommandStream.cpp | KieranHsieh/GLB | 9d959cca69984c876ef6e4267ed12ee80d444620 | [
"MIT"
] | null | null | null | tests/RenderCommandStream.cpp | KieranHsieh/GLB | 9d959cca69984c876ef6e4267ed12ee80d444620 | [
"MIT"
] | 20 | 2021-05-08T08:43:13.000Z | 2021-05-14T00:02:59.000Z | tests/RenderCommandStream.cpp | KieranHsieh/GLB | 9d959cca69984c876ef6e4267ed12ee80d444620 | [
"MIT"
] | null | null | null | #include "includes.hpp"
TEST_CASE("RenderCommandStream Add") {
using namespace GLB;
RenderCommandStream strm;
RenderCommandCustom cmd;
strm << cmd;
for(auto& cmd : strm) {
REQUIRE(cmd->localType == RenderCommandType::CUSTOM);
}
}
TEST_CASE("RenderCommandStream Size") {
using namesp... | 23.736842 | 61 | 0.658537 | KieranHsieh |
65ced6c6308cb6e81e4c1b3a69f280edddd80180 | 2,945 | cpp | C++ | 2018-nov-23/K/K.cpp | acmiut/contests | 757e198914697e81b9f3640ae315c3b539a49d17 | [
"Apache-2.0"
] | null | null | null | 2018-nov-23/K/K.cpp | acmiut/contests | 757e198914697e81b9f3640ae315c3b539a49d17 | [
"Apache-2.0"
] | null | null | null | 2018-nov-23/K/K.cpp | acmiut/contests | 757e198914697e81b9f3640ae315c3b539a49d17 | [
"Apache-2.0"
] | 3 | 2019-03-31T13:29:09.000Z | 2021-12-20T02:03:06.000Z | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
using namespace std;
typedef vector<int> VI;
typedef vector<VI> VVI;
const int INF = 1000000000;
struct MinCostMaxFlow {
int N;
VVI cap, flow, cost;
VI found, dad, dist, pi;
bool search(int source, int sink) {
... | 24.541667 | 84 | 0.43837 | acmiut |
65d256ca83b4847e47c91e2b473ba8e56b843ced | 442 | cpp | C++ | Math/TrailingZerosInFactorial.cpp | 007mathur/InterviewBit | 6b5560871d54b97546de10d83f6c4e74c420ce02 | [
"MIT"
] | 1 | 2022-02-01T14:10:27.000Z | 2022-02-01T14:10:27.000Z | Math/TrailingZerosInFactorial.cpp | 007mathur/InterviewBit | 6b5560871d54b97546de10d83f6c4e74c420ce02 | [
"MIT"
] | null | null | null | Math/TrailingZerosInFactorial.cpp | 007mathur/InterviewBit | 6b5560871d54b97546de10d83f6c4e74c420ce02 | [
"MIT"
] | null | null | null | //In a factorial a zero arises from the multiplication of 2*5.
//Every second number is even, so there are abundant 2s in the sea of prime factors of numbers.
//5s can be counted by adding all the factors of power of 5.
//As the numbers of 5s are less, the number of 0s is equal to this sum.
int Solution::trailingZeroes... | 36.833333 | 95 | 0.662896 | 007mathur |
65d34015e89382a3aaa7f8761285f313294415a0 | 797 | cpp | C++ | notebook/demo/src/compdict.cpp | BrinedYoung/home | c8832758b3693c4f0af2839dd352b387e7854826 | [
"MIT"
] | 1 | 2020-03-05T02:46:48.000Z | 2020-03-05T02:46:48.000Z | notebook/demo/src/compdict.cpp | BrinedYoung/home | c8832758b3693c4f0af2839dd352b387e7854826 | [
"MIT"
] | null | null | null | notebook/demo/src/compdict.cpp | BrinedYoung/home | c8832758b3693c4f0af2839dd352b387e7854826 | [
"MIT"
] | null | null | null | /*
g++ -std=c++11 -o demo compdict.cpp
*/
#include <unordered_map>
#include <string>
#include <iostream>
using namespace std;
typedef string (*myFunc)(void);
typedef unordered_map<string, myFunc> compdict;
/* The functions */
string Boiler(void)
{
return "- BOILER -";
}
string Condenser(void)
{
return ... | 18.113636 | 101 | 0.59724 | BrinedYoung |
65d5670ff9d889a4c2b2c9fdc846481195281bc3 | 531 | hpp | C++ | utils/net/include/net/unix_comm.hpp | TApplencourt/level-zero-tests | 7983a11cbfb8a815af0296e3400f59f635107f67 | [
"MIT"
] | 32 | 2020-03-05T19:26:02.000Z | 2022-02-21T13:13:52.000Z | utils/net/include/net/unix_comm.hpp | TApplencourt/level-zero-tests | 7983a11cbfb8a815af0296e3400f59f635107f67 | [
"MIT"
] | 9 | 2020-05-04T20:15:09.000Z | 2021-12-19T07:17:50.000Z | utils/net/include/net/unix_comm.hpp | TApplencourt/level-zero-tests | 7983a11cbfb8a815af0296e3400f59f635107f67 | [
"MIT"
] | 19 | 2020-04-07T16:00:48.000Z | 2022-01-19T00:19:49.000Z | /*
*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#ifndef __UNIX_COMM_HPP__
#define __UNIX_COMM_HPP__
#include <level_zero/ze_api.h>
#include <chrono>
namespace level_zero_tests {
#ifdef __linux__
int read_fd_from_socket(int socket);
int write_fd_to_socket(int socket, int fd);
... | 18.310345 | 74 | 0.760829 | TApplencourt |
65d567493ff3415a39b52cceb7296b3e5d39bc5c | 4,243 | cpp | C++ | src/mapleall/maple_be/src/cg/aarch64/aarch64_reg_info.cpp | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | 2 | 2019-09-06T07:02:41.000Z | 2019-09-09T12:24:46.000Z | src/mapleall/maple_be/src/cg/aarch64/aarch64_reg_info.cpp | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | null | null | null | src/mapleall/maple_be/src/cg/aarch64/aarch64_reg_info.cpp | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | null | null | null | /*
* Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
... | 31.664179 | 109 | 0.703276 | venshine |
65ddd600c50f69ef358fd25dba0ed22f2ca84226 | 10,149 | cpp | C++ | Source/Source.cpp | iiKurt/Egg | 68371a017b80261c31258ef13c2ac2364ac44c02 | [
"MIT"
] | null | null | null | Source/Source.cpp | iiKurt/Egg | 68371a017b80261c31258ef13c2ac2364ac44c02 | [
"MIT"
] | 5 | 2022-01-03T05:18:28.000Z | 2022-01-03T05:25:19.000Z | Source/Source.cpp | iiKurt/Egg | 68371a017b80261c31258ef13c2ac2364ac44c02 | [
"MIT"
] | null | null | null | // TODOs:
// Consistent {} spacing and general formatting
// Huge project: seperate things into functions/classes? that have draw methods and properties such as color etc...
// Gamestates and all...
// File organisation and naming
// Using SDL and standard IO
#include <string>
#include <cstdlib> // srand, rand
#includ... | 27.504065 | 127 | 0.638092 | iiKurt |
65de7a666a5bd8d8ff8d756440b2c5f883b6d66b | 1,478 | cpp | C++ | client/include/util/Path.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 97 | 2019-01-13T20:19:19.000Z | 2022-02-27T18:47:11.000Z | client/include/util/Path.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 92 | 2019-01-23T23:02:31.000Z | 2022-03-23T19:59:40.000Z | client/include/util/Path.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 69 | 2019-01-13T22:01:40.000Z | 2022-03-09T00:55:49.000Z | /*
This is a SampVoice project file
Developer: CyberMor <cyber.mor.2020@gmail.ru>
See more here https://github.com/CyberMor/sampvoice
Copyright (c) Daniel (CyberMor) 2020 All rights reserved
*/
#include "Path.h"
#include <array>
#include <ShlObj.h>
#include "Logger.h"
Path::Path()
{
constexpr... | 27.37037 | 100 | 0.655616 | MayconFelipeA |
65e35314c28ebc11ae84d608aeaf6a81b1f3571a | 4,271 | cpp | C++ | C_lib/codescandemo.cpp | fkie-cad/Codescanner | 64f68501ecb3da905bd247b337551967472a7b99 | [
"FSFAP"
] | 5 | 2020-12-15T12:17:40.000Z | 2021-09-15T02:25:58.000Z | C_lib/codescandemo.cpp | fkie-cad/Codescanner | 64f68501ecb3da905bd247b337551967472a7b99 | [
"FSFAP"
] | 1 | 2021-08-20T13:16:56.000Z | 2021-08-24T13:58:12.000Z | C_lib/codescandemo.cpp | fkie-cad/Codescanner | 64f68501ecb3da905bd247b337551967472a7b99 | [
"FSFAP"
] | 1 | 2021-09-15T02:26:00.000Z | 2021-09-15T02:26:00.000Z | #include <unistd.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <cstring>
#include <vector>
#include "common_shared/shared_codescan.h"
// Compile with:
// Default:
// gcc -L. -Wl,-rpath=. -o program -fPIC -Ofast -lstdc++ -lcodescan codescandemo.cpp
// for ASAN plea... | 30.507143 | 100 | 0.59424 | fkie-cad |
65e4df8c42cdd84dcb7e0060dee85073cdf56b1e | 21,895 | cc | C++ | util/Scattering.cc | erikleitch/climax | 66ce64b0ab9f3a3722d3177cc5215ccf59369e88 | [
"MIT"
] | 1 | 2018-11-01T05:15:31.000Z | 2018-11-01T05:15:31.000Z | util/Scattering.cc | erikleitch/climax | 66ce64b0ab9f3a3722d3177cc5215ccf59369e88 | [
"MIT"
] | null | null | null | util/Scattering.cc | erikleitch/climax | 66ce64b0ab9f3a3722d3177cc5215ccf59369e88 | [
"MIT"
] | 2 | 2017-05-02T19:35:55.000Z | 2018-03-07T00:54:51.000Z | #include "gcp/util/Constants.h"
#include "gcp/util/Energy.h"
#include "gcp/util/FileHandler.h"
#include "gcp/util/Scattering.h"
#include "gcp/util/SzCalculator.h"
#include "gsl/gsl_sf_gamma.h"
#include <fcntl.h>
#include <arpa/inet.h>
#include <unistd.h>
using namespace std;
using namespace gcp::util;
static doub... | 28.885224 | 150 | 0.573601 | erikleitch |
65eb1e71085a34b134bed47ba37871e40babe266 | 676 | cpp | C++ | Codeforces/A. Anton and Letters.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | Codeforces/A. Anton and Letters.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | Codeforces/A. Anton and Letters.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
/*
Problem: A. Anton and Letters
Link : https://codeforces.com/contest/443/problem/A
Solution by: Mohamed Hisham El-Banna
Gmail : Mohamed00Hisham@Gmail.com
Github : www.github.com/Mhmd-Hisham
LinkedIn: www.linkedin.com/in/Mhmd-Hisham
*/
using namespace std;
char letter;
unordered_set< ... | 16.9 | 69 | 0.642012 | Mhmd-Hisham |
65efd20bbec69912adf7502a21907de70da281e3 | 2,909 | cpp | C++ | src/hit_ids_and.cpp | kasperwelbers/textquery | 893ef26b3864a56bae10a3b235a4b900bb12bce7 | [
"MIT"
] | 1 | 2022-02-18T23:21:13.000Z | 2022-02-18T23:21:13.000Z | src/hit_ids_and.cpp | kasperwelbers/textquery | 893ef26b3864a56bae10a3b235a4b900bb12bce7 | [
"MIT"
] | null | null | null | src/hit_ids_and.cpp | kasperwelbers/textquery | 893ef26b3864a56bae10a3b235a4b900bb12bce7 | [
"MIT"
] | null | null | null | #include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::plugins(cpp11)]]
bool match_shortest(std::string &x, std::set<std::string> &group_set){
for (const auto &y : group_set) {
unsigned int length = x.size();
if (y.size() < length) length = y.size();
if (x.substr(0,length) == y.substr(0,length)) return true;... | 42.779412 | 187 | 0.591268 | kasperwelbers |
65f0d22d0744c1c91859d2cccb24c065f9d6521c | 1,615 | hpp | C++ | phylanx/execution_tree/primitives/variable.hpp | NK-Nikunj/phylanx | 6898992513a122c49d26947d877f329365486665 | [
"BSL-1.0"
] | null | null | null | phylanx/execution_tree/primitives/variable.hpp | NK-Nikunj/phylanx | 6898992513a122c49d26947d877f329365486665 | [
"BSL-1.0"
] | null | null | null | phylanx/execution_tree/primitives/variable.hpp | NK-Nikunj/phylanx | 6898992513a122c49d26947d877f329365486665 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017-2018 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)
#if !defined(PHYLANX_PRIMITIVES_VARIABLE_SEP_05_2017_1105AM)
#define PHYLANX_PRIMITIVES_VARIABLE_SEP_05_2017_1105AM
#... | 29.363636 | 80 | 0.716409 | NK-Nikunj |
65f0f7fa29980491436ea5a606f79359d0733068 | 1,382 | cpp | C++ | framework/source/geometry_node.cpp | ChristopherScholl/CGLab-Scholl119705-Schwegler121501 | a93b6a92d0293892ae0762d825e5acbd3218a646 | [
"MIT"
] | null | null | null | framework/source/geometry_node.cpp | ChristopherScholl/CGLab-Scholl119705-Schwegler121501 | a93b6a92d0293892ae0762d825e5acbd3218a646 | [
"MIT"
] | null | null | null | framework/source/geometry_node.cpp | ChristopherScholl/CGLab-Scholl119705-Schwegler121501 | a93b6a92d0293892ae0762d825e5acbd3218a646 | [
"MIT"
] | null | null | null | #include "geometry_node.hpp"
// constructors
GeometryNode::GeometryNode(){}
GeometryNode::GeometryNode(model const& geometry) : geometry_(geometry) {}
GeometryNode::GeometryNode(
std::string const& name,
std::shared_ptr<Node> const& parent,
glm::fmat4 const& localTansform,
float size,
float speed,
float di... | 22.290323 | 74 | 0.737337 | ChristopherScholl |
65f7e1b41856d6f470bf11b6e9aeb57ec6e1efcf | 2,441 | hh | C++ | AIR-ARR/Zaawansowane Metody Programowania/zad2/zalazki/xml_parser/inc/xmlparser4scene.hh | superdyzio/PWR-Stuff | 942dfd72e4fa987f80b0de185c4a3086d98b4e3f | [
"MIT"
] | null | null | null | AIR-ARR/Zaawansowane Metody Programowania/zad2/zalazki/xml_parser/inc/xmlparser4scene.hh | superdyzio/PWR-Stuff | 942dfd72e4fa987f80b0de185c4a3086d98b4e3f | [
"MIT"
] | null | null | null | AIR-ARR/Zaawansowane Metody Programowania/zad2/zalazki/xml_parser/inc/xmlparser4scene.hh | superdyzio/PWR-Stuff | 942dfd72e4fa987f80b0de185c4a3086d98b4e3f | [
"MIT"
] | null | null | null | #ifndef XMLPARSER4SCENE_HH
#define XMLPARSER4SCENE_HH
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/sax/Locator.hpp>
#include <xercesc/sax2/Attributes.hpp>
#include <xercesc/sax2/DefaultHandler.hpp>
//XERCES_CPP_NAMESPACE_USE
#include <string>
#include "scene.hh"
... | 26.247312 | 79 | 0.627612 | superdyzio |
65f7fa627e6fa9f61d2fb59a55fb53f46567ab1a | 26,202 | cpp | C++ | src/experiments/babybot/soundgrab/main.cpp | robotology-legacy/yarp1 | 21434f5b776edea201b39a9644552dca59339dbc | [
"Artistic-1.0-Perl"
] | null | null | null | src/experiments/babybot/soundgrab/main.cpp | robotology-legacy/yarp1 | 21434f5b776edea201b39a9644552dca59339dbc | [
"Artistic-1.0-Perl"
] | null | null | null | src/experiments/babybot/soundgrab/main.cpp | robotology-legacy/yarp1 | 21434f5b776edea201b39a9644552dca59339dbc | [
"Artistic-1.0-Perl"
] | null | null | null | /////////////////////////////////////////////////////////////////////////
/// ///
/// YARP - Yet Another Robotic Platform (c) 2001-2004 ///
/// ///
/// #... | 30.862191 | 117 | 0.532707 | robotology-legacy |
65fc824bdb73c936ddf97fc978b22dc2926df6d2 | 748 | hpp | C++ | test/reflection/parser/api/core/clang/unit/mocks.hpp | roscopecoltran/siplasplas | 9fae7559f87087cf8ef34f04bd1e774b84b2ea9c | [
"MIT"
] | 182 | 2016-07-19T19:31:47.000Z | 2022-02-22T13:54:25.000Z | test/reflection/parser/api/core/clang/unit/mocks.hpp | roscopecoltran/siplasplas | 9fae7559f87087cf8ef34f04bd1e774b84b2ea9c | [
"MIT"
] | 50 | 2016-07-13T16:49:31.000Z | 2018-06-15T13:39:49.000Z | test/reflection/parser/api/core/clang/unit/mocks.hpp | GueimUCM/ceplusplus | 9fae7559f87087cf8ef34f04bd1e774b84b2ea9c | [
"MIT"
] | 26 | 2015-12-14T11:35:41.000Z | 2022-02-22T19:13:48.000Z | #ifndef SIPLASPLAS_TEST_REFLECTION_PARSER_API_CORE_CLANG_MOCKS_HPP
#define SIPLASPLAS_TEST_REFLECTION_PARSER_API_CORE_CLANG_MOCKS_HPP
#include <gmock/gmock.h>
#include <siplasplas/reflection/parser/api/core/clang/handle.hpp>
namespace cpp
{
namespace test
{
namespace mocks
{
template<typename RawHandle, typename T... | 17.809524 | 68 | 0.778075 | roscopecoltran |
65fcb2944b30e3944c0389e8ac9c9cb4d4fc1f52 | 36,559 | cpp | C++ | 01_Develop/libXMFFmpeg/Source/libavcodec/dnxhdenc.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2017-08-03T07:15:00.000Z | 2018-06-18T10:32:53.000Z | 01_Develop/libXMFFmpeg/Source/libavcodec/dnxhdenc.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | null | null | null | 01_Develop/libXMFFmpeg/Source/libavcodec/dnxhdenc.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2019-03-04T22:57:42.000Z | 2020-03-06T01:32:26.000Z | /*
* VC3/DNxHD encoder
* Copyright (c) 2007 Baptiste Coudurier <baptiste dot coudurier at smartjog dot com>
* Copyright (c) 2011 MirriAd Ltd
*
* VC-3 encoder funded by the British Broadcasting Corporation
* 10 bit support added by MirriAd Ltd, Joseph Artsimovich <joseph@mirriad.com>
*
* This file is part of FFm... | 36.054241 | 141 | 0.559835 | mcodegeeks |
65fd17b433a315e61e4595b23d4476495b43670d | 291 | hpp | C++ | lib/exe/Process.hpp | MikaylaFischler/dorm-leds | d5edd7b1d8ba1bc76e13c2ee37cb4f9b1d272d9b | [
"MIT"
] | 2 | 2018-10-03T05:40:00.000Z | 2018-12-07T00:39:03.000Z | lib/exe/Process.hpp | MikaylaFischler/dorm-leds | d5edd7b1d8ba1bc76e13c2ee37cb4f9b1d272d9b | [
"MIT"
] | 5 | 2017-09-02T03:57:24.000Z | 2018-01-14T17:52:15.000Z | lib/exe/Process.hpp | MikaylaFischler/dorm-leds | d5edd7b1d8ba1bc76e13c2ee37cb4f9b1d272d9b | [
"MIT"
] | null | null | null | #ifndef PROCESS_HPP_
#define PROCESS_HPP_
#include <Arduino.h>
#include <ArduinoSTL.h>
#include <vector>
#include "Executable.hpp"
class Process : public Executable {
protected:
Process() {}
public:
virtual ~Process() {}
virtual void init() {};
virtual void step() {};
};
#endif
| 13.857143 | 35 | 0.690722 | MikaylaFischler |
65fdb8b5e1695236a7c55f495b039ea48527d04e | 4,375 | cpp | C++ | machmemory.cpp | nlitsme/hexdumper | 6ca3dd2f1fd119ff8ad2a986d97abd91fdc5fa2b | [
"MIT"
] | 10 | 2018-05-07T02:33:26.000Z | 2022-03-07T05:15:40.000Z | machmemory.cpp | nlitsme/hexdumper | 6ca3dd2f1fd119ff8ad2a986d97abd91fdc5fa2b | [
"MIT"
] | null | null | null | machmemory.cpp | nlitsme/hexdumper | 6ca3dd2f1fd119ff8ad2a986d97abd91fdc5fa2b | [
"MIT"
] | 10 | 2018-05-07T02:33:40.000Z | 2022-03-07T05:15:42.000Z | #include <unistd.h>
#include <Security/Security.h>
#include "machmemory.h"
//
// /usr/include/mach/mach_traps.h
// /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_traps.h
// extern kern_return_t task_for_pid( mach_port_name_t target_tport, int ... | 33.396947 | 145 | 0.6608 | nlitsme |
5a024191ee9116364aaf45552ea9da220efe1eef | 1,112 | cpp | C++ | src/main.cpp | korenandr/poco_restful_webservice | 864b02fb0cd500c9c74fb2f6931c44ecd6f4d019 | [
"Apache-2.0"
] | 1 | 2021-07-01T18:45:35.000Z | 2021-07-01T18:45:35.000Z | src/main.cpp | korenandr/poco_restful_webservice | 864b02fb0cd500c9c74fb2f6931c44ecd6f4d019 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | korenandr/poco_restful_webservice | 864b02fb0cd500c9c74fb2f6931c44ecd6f4d019 | [
"Apache-2.0"
] | null | null | null | /*
* (C) Copyright 2017 Edson (http://edsonaraujosoares.com) and others.
*
* 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... | 27.121951 | 78 | 0.678957 | korenandr |
5a036ad1ad6651140ee006866676ea98429890af | 210 | cpp | C++ | cpp/test_class_with_static_and_new.cpp | jieyaren/hello-world | 9fbc7d117b9aee98d748669646dd200c25a4122f | [
"WTFPL"
] | 3 | 2021-11-12T09:20:21.000Z | 2022-02-18T11:34:33.000Z | cpp/test_class_with_static_and_new.cpp | jieyaren/hello-world | 9fbc7d117b9aee98d748669646dd200c25a4122f | [
"WTFPL"
] | 1 | 2021-03-08T03:23:04.000Z | 2021-03-08T03:23:04.000Z | cpp/test_class_with_static_and_new.cpp | jieyaren/hello-world | 9fbc7d117b9aee98d748669646dd200c25a4122f | [
"WTFPL"
] | null | null | null | #include <cstdio>
struct test{
static void f(){printf("static %s \n",__FUNCTION__);}
void ff(){printf("%s \n",__FUNCTION__);}
int m;
};
int main()
{
test::f();
test * t= new test();
t->f();
t->ff();
} | 14 | 54 | 0.566667 | jieyaren |
5a08819a7f34b2df7d9bb45919ecfad6625cdd96 | 2,674 | cpp | C++ | Source/ThirdPersonCamera/Camera/HoatCameraModifierFocusWalkDirection.cpp | ArnaudSpicht/third-person-camera | 7bedf626d15820d0ff3563b503729d8e2ce5aaa9 | [
"MIT"
] | 156 | 2018-04-27T20:27:12.000Z | 2022-02-25T02:46:02.000Z | Source/ThirdPersonCamera/Camera/HoatCameraModifierFocusWalkDirection.cpp | ArnaudSpicht/third-person-camera | 7bedf626d15820d0ff3563b503729d8e2ce5aaa9 | [
"MIT"
] | 1 | 2020-11-30T01:46:13.000Z | 2021-10-07T03:49:18.000Z | Source/ThirdPersonCamera/Camera/HoatCameraModifierFocusWalkDirection.cpp | ArnaudSpicht/third-person-camera | 7bedf626d15820d0ff3563b503729d8e2ce5aaa9 | [
"MIT"
] | 41 | 2018-05-01T04:16:47.000Z | 2022-01-07T11:22:13.000Z | #include "HoatCameraModifierFocusWalkDirection.h"
#include "GameFramework/Actor.h"
#include "Camera/PlayerCharacterInterface.h"
UHoatCameraModifierFocusWalkDirection::UHoatCameraModifierFocusWalkDirection(const FObjectInitializer& ObjectInitializer /*= FObjectInitializer::Get()*/)
: Super(ObjectInitializer)
{
... | 28.147368 | 156 | 0.690352 | ArnaudSpicht |
5a0907b201a56b997378bace9740a2b40330dcbe | 991 | cpp | C++ | libraries/models/src/ModelTreeHeadlessViewer.cpp | Adrianl3d/hifi | 7bd01f606b768f6aa3e21d48959718ad249a3551 | [
"Apache-2.0"
] | null | null | null | libraries/models/src/ModelTreeHeadlessViewer.cpp | Adrianl3d/hifi | 7bd01f606b768f6aa3e21d48959718ad249a3551 | [
"Apache-2.0"
] | null | null | null | libraries/models/src/ModelTreeHeadlessViewer.cpp | Adrianl3d/hifi | 7bd01f606b768f6aa3e21d48959718ad249a3551 | [
"Apache-2.0"
] | null | null | null | //
// ModelTreeHeadlessViewer.cpp
// libraries/models/src
//
// Created by Brad Hefta-Gaub on 2/26/14.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "ModelTreeHeadl... | 25.410256 | 121 | 0.706357 | Adrianl3d |
5a0f69ba96e0fe3713c71cc449550e800411079e | 539 | cpp | C++ | Testbot/src/main/cpp/TestRobot.cpp | CJBuchel/KillSwitch-EventCode | d0cf3e5a0ae8d042137bfab129f0f69631609ec3 | [
"MIT"
] | 1 | 2021-10-10T06:52:19.000Z | 2021-10-10T06:52:19.000Z | Testbot/src/main/cpp/TestRobot.cpp | CJBuchel/KillSwitch-EventCode | d0cf3e5a0ae8d042137bfab129f0f69631609ec3 | [
"MIT"
] | null | null | null | Testbot/src/main/cpp/TestRobot.cpp | CJBuchel/KillSwitch-EventCode | d0cf3e5a0ae8d042137bfab129f0f69631609ec3 | [
"MIT"
] | null | null | null | #include "TestRobot.h"
#include <actuators/VoltageController.h>
#include <math.h>
#include <iostream>
using namespace frc;
using namespace curtinfrc;
void Robot::RobotInit() {
xbox = new curtinfrc::controllers::XboxController(0);
}
void Robot::AutonomousInit() {}
void Robot::AutonomousPeriodic() {}
void Rob... | 17.966667 | 55 | 0.695733 | CJBuchel |
5a0fad0973d0f544531cf3ca92f6d346571cd7f7 | 1,193 | cpp | C++ | benchmarks/cpp/dry.cpp | satoshigeyuki/Centaurus | 032ffec87fc8ddb129347974d3478fd1ee5f305a | [
"MIT"
] | 3 | 2021-02-23T01:34:28.000Z | 2021-07-19T08:07:10.000Z | benchmarks/cpp/dry.cpp | satoshigeyuki/Centaurus | 032ffec87fc8ddb129347974d3478fd1ee5f305a | [
"MIT"
] | null | null | null | benchmarks/cpp/dry.cpp | satoshigeyuki/Centaurus | 032ffec87fc8ddb129347974d3478fd1ee5f305a | [
"MIT"
] | null | null | null | #include <chrono>
#include "CodeGenEM64T.hpp"
#include "Stage1Runner.hpp"
int main(int argc, const char *argv[])
{
if (argc < 3) return 0;
const char *grammar_path = argv[1];
const char *input_path = argv[2];
const bool result_captured = argc > 3 && argv[3] == std::string("debug");
Centaurus::Gr... | 27.113636 | 120 | 0.604359 | satoshigeyuki |
5a10fa94d50b618d31f72bedc3431b524eca19d6 | 16,663 | cc | C++ | DataFormats/PatCandidates/test/testPackedCandidate.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | DataFormats/PatCandidates/test/testPackedCandidate.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | DataFormats/PatCandidates/test/testPackedCandidate.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include <cppunit/extensions/HelperMacros.h>
#include <algorithm>
#include <iterator>
#include <iostream>
#include <iomanip>
#include "DataFormats/PatCandidates/interface/PackedCandidate.h"
class testPackedCandidate : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(testPackedCandidate);
CPPUNIT_TEST(testDefault... | 51.909657 | 294 | 0.670167 | nistefan |
5a161508863f11d0148cd63cb3f7851e4922212e | 2,429 | cpp | C++ | 2D/PointAndSegment.cpp | xwen99/Computational-Geometry-Algorithm-Library | f3aa36217f17860f4cd87f93b63b253ad7b93b6f | [
"MIT"
] | 5 | 2019-07-08T14:00:26.000Z | 2021-07-21T08:08:01.000Z | 2D/PointAndSegment.cpp | xwen99/Computational-Geometry-Algorithm-Library | f3aa36217f17860f4cd87f93b63b253ad7b93b6f | [
"MIT"
] | null | null | null | 2D/PointAndSegment.cpp | xwen99/Computational-Geometry-Algorithm-Library | f3aa36217f17860f4cd87f93b63b253ad7b93b6f | [
"MIT"
] | 2 | 2019-10-12T08:43:55.000Z | 2020-06-19T13:14:30.000Z | //向量点乘
double Dot(Vector A, Vector B) { return A.x * B.x + A.y * B.y; }
//向量模长
double Length(Vector A) { return sqrt(Dot(A, A)); }
//向量模长平方
double Length2(Vector A) { return Dot(A, A); }
//向量夹角
double Angle(Vector A, Vector B) { return acos(Dot(A, B) / Length(A) / Length(B)); }
//向量叉乘
double Cross(Vector A, Vector B) {... | 29.621951 | 112 | 0.575957 | xwen99 |
5a16841b7b8f7ca761239074eee23e5d8e95c140 | 2,830 | cpp | C++ | sauce/core/fundamentals/things/strange__locked_data_t.cpp | oneish/strange | e6c47eca5738dd98f4e09ee5c0bb820146e8b48f | [
"Apache-2.0"
] | null | null | null | sauce/core/fundamentals/things/strange__locked_data_t.cpp | oneish/strange | e6c47eca5738dd98f4e09ee5c0bb820146e8b48f | [
"Apache-2.0"
] | null | null | null | sauce/core/fundamentals/things/strange__locked_data_t.cpp | oneish/strange | e6c47eca5738dd98f4e09ee5c0bb820146e8b48f | [
"Apache-2.0"
] | null | null | null | #include "../../strange__core.h"
namespace strange
{
// locked_data_t
// data_o
template <typename type_d, typename lock_d>
data_o<std::remove_reference_t<type_d>> const* locked_data_t<type_d, lock_d>::_operations()
{
static data_o<std::remove_reference_t<type_d>> operations =
{
{
// any_a
data_a<s... | 30.76087 | 122 | 0.713074 | oneish |
5a16d325d641efcc02cb009147554e65deec9d29 | 1,262 | cpp | C++ | Pramp/Move Zeros To End.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | 2 | 2019-11-10T18:42:11.000Z | 2020-07-04T07:05:22.000Z | Pramp/Move Zeros To End.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | null | null | null | Pramp/Move Zeros To End.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | 1 | 2019-11-04T11:05:17.000Z | 2019-11-04T11:05:17.000Z | #include <iostream>
#include <vector>
using namespace std;
/*
*
1 2 3 5 6 7 6 3 2 0 0 0 0 0 0 0 0 ---> 1 2 3 5 6 7 6 3 2 0 0 0 0 0 0 0 0
lo - ^
hi - ^
*/
// just make a simple simulation of this problem. you will get it.
vector<int> moveZerosToEnd(const ... | 22.535714 | 93 | 0.474643 | shamiul94 |
5a1bab8ea00b28a223f57bad7ef58ec8bba72c2a | 9,106 | cpp | C++ | src/tests/functional/plugin/shared/src/behavior/ov_plugin/caching_tests.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1 | 2022-02-07T09:14:15.000Z | 2022-02-07T09:14:15.000Z | src/tests/functional/plugin/shared/src/behavior/ov_plugin/caching_tests.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 2 | 2022-03-28T13:18:55.000Z | 2022-03-28T13:18:57.000Z | src/tests/functional/plugin/shared/src/behavior/ov_plugin/caching_tests.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <thread>
#include "behavior/ov_plugin/caching_tests.hpp"
#include "common_test_utils/file_utils.hpp"
#include "functional_test_utils/skip_tests_config.hpp"
#include "ngraph_functions/builders.hpp"
#include "ngraph_funct... | 42.157407 | 157 | 0.671755 | ryanloney |
5a1de50e6303f0be94a78bc3366ea6e74e112c29 | 659 | cpp | C++ | dataset/test/modification/1541_control_replacement/59/transformation_1.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/modification/1541_control_replacement/59/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/modification/1541_control_replacement/59/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <iomanip>
#include <iostream>
#include <iostream>
#define long long int
void solve() {
int n;
std::cin >> n;
if(!(n%2)){
{
int i=1;
for ( ; i<n; )
{
std::cout << i+1 << " " << i << " ";
i+=2;
}}
}
else {
... | 15.690476 | 49 | 0.291351 | Karina5005 |
5a1ea2f1fb6f20447d6deb2187d90d1943806a35 | 37,960 | cc | C++ | src/developer/debug/zxdb/console/verbs_symbol.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | src/developer/debug/zxdb/console/verbs_symbol.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | src/developer/debug/zxdb/console/verbs_symbol.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <inttypes.h>
#include <algorithm>
#include <limits>
#include <set>
#include <vector>
#include "llvm/Demangle/Demangle.h"
#include "src/developer... | 36.464938 | 100 | 0.664989 | opensource-assist |
5a1ef76f296da1bbea41eddda924a8566e9f98db | 1,129 | cpp | C++ | source/app/xml_logs/src/Backend.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | 1 | 2022-01-25T10:31:51.000Z | 2022-01-25T10:31:51.000Z | source/app/xml_logs/src/Backend.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | null | null | null | source/app/xml_logs/src/Backend.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | null | null | null | ///
/// Copyright Matus Chochlik.
/// Distributed under the GNU GENERAL PUBLIC LICENSE version 3.
/// See http://www.gnu.org/licenses/gpl-3.0.txt
///
#include "Backend.hpp"
//------------------------------------------------------------------------------
Backend::Backend(eagine::main_ctx_parent parent)
: QObject{null... | 35.28125 | 80 | 0.390611 | matus-chochlik |
5a1f992efaf533a5f444ee930182a544f8f4229f | 1,662 | cpp | C++ | src/tools/random.cpp | WatchJolley/rivercrossing | 694c4245a8a5ae000e8d6338695a24dcedbb13a8 | [
"MIT"
] | null | null | null | src/tools/random.cpp | WatchJolley/rivercrossing | 694c4245a8a5ae000e8d6338695a24dcedbb13a8 | [
"MIT"
] | null | null | null | src/tools/random.cpp | WatchJolley/rivercrossing | 694c4245a8a5ae000e8d6338695a24dcedbb13a8 | [
"MIT"
] | null | null | null | #include <random>
#include <chrono>
#include <fstream>
std::mt19937_64 generator; // C++11 Mersene Twister 19937 generator (64 bit)
unsigned randomise(unsigned s=0) {
if (!s) {std::random_device seeder; s=seeder();}
if (!s) s = std::chrono::high_resolution_clock::now().time_since_epoch().count();
generator.seed... | 51.9375 | 137 | 0.733454 | WatchJolley |
5a232a1b7f41a2e2cbbe98597506052f48c94cc6 | 2,211 | cc | C++ | 01-elementary/07-iterators/src/main.cc | aohontsev/movax01h-cpp-practice | ee81a2502e662f55fc1587fb3cb9caf783b8694c | [
"MIT"
] | null | null | null | 01-elementary/07-iterators/src/main.cc | aohontsev/movax01h-cpp-practice | ee81a2502e662f55fc1587fb3cb9caf783b8694c | [
"MIT"
] | null | null | null | 01-elementary/07-iterators/src/main.cc | aohontsev/movax01h-cpp-practice | ee81a2502e662f55fc1587fb3cb9caf783b8694c | [
"MIT"
] | null | null | null | // Copyright (c) 2018.
// Author: Anton Okhontsev <anton.ohontsev@gmail.com>
#include "string"
#include <algorithm>
#include <iostream>
#include <iterator>
#include <sstream>
#include <vector>
typedef std::string Date;
enum class MainFuncExitCodes {
SUCCESS = 0,
INPUT_STREAM_IS_EMPTY = 1,
INPUT_STREAM_IS_NOT_... | 33.5 | 77 | 0.67119 | aohontsev |
5a26accf665ce391608dd561a59915044177ddb4 | 189 | cc | C++ | RecoLocalTracker/Records/src/TkPhase2OTCPERecord.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoLocalTracker/Records/src/TkPhase2OTCPERecord.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoLocalTracker/Records/src/TkPhase2OTCPERecord.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "RecoLocalTracker/Records/interface/TkPhase2OTCPERecord.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(TkPhase2OTCPERecord);
| 37.8 | 75 | 0.878307 | ckamtsikis |
5a27db71a33db825f048c416e1aa0acf7e167c91 | 979 | cpp | C++ | Review/main.cpp | ariyonaty/ECE3310 | 845d7204c16e84712fab2e25f79c0f16cb1e7c99 | [
"MIT"
] | null | null | null | Review/main.cpp | ariyonaty/ECE3310 | 845d7204c16e84712fab2e25f79c0f16cb1e7c99 | [
"MIT"
] | null | null | null | Review/main.cpp | ariyonaty/ECE3310 | 845d7204c16e84712fab2e25f79c0f16cb1e7c99 | [
"MIT"
] | 1 | 2021-09-22T04:01:52.000Z | 2021-09-22T04:01:52.000Z | #include <iostream>
#include <cmath>
class Shape
{
public:
virtual double Area() = 0;
};
class Circle : public Shape
{
protected:
double width;
public:
Circle(double w)
{
width = w;
}
double Area() override
{
return 3.1414 * pow((width / 2), 2);
}
};
struct Shape2
{
... | 13.788732 | 64 | 0.527068 | ariyonaty |
5a27eabf43beaf6c70e6f94aec7102cb517d55f6 | 1,660 | cpp | C++ | src/camera/DepthCamera.cpp | aurthconan/fanLens | d05ce02cd748f21b6a5385892972accce54fd58d | [
"MIT"
] | null | null | null | src/camera/DepthCamera.cpp | aurthconan/fanLens | d05ce02cd748f21b6a5385892972accce54fd58d | [
"MIT"
] | null | null | null | src/camera/DepthCamera.cpp | aurthconan/fanLens | d05ce02cd748f21b6a5385892972accce54fd58d | [
"MIT"
] | null | null | null | #include "DepthCamera.h"
#include <algo/rasterize/fanScanLineGenerator.h>
#include <texture/MemoryTexture.h>
#include <camera/RasterisationScanner.h>
#include <filler/DepthFiller.h>
using namespace fan;
class DepthPixelConvertor
: public fanTexture<int, float, 2>
{
public:
DepthPixelConvertor( fanTexture<i... | 27.666667 | 71 | 0.592771 | aurthconan |
5a282b8f07028d8d867d9c3bd39b5dbeb61df5e1 | 1,219 | cpp | C++ | cppp/src/9-sequential-container/45-46-50.cpp | ahxxm/cpp-exercise | abbe530770d49843ceaf706fb55b91ef100b1162 | [
"WTFPL"
] | 2 | 2016-12-06T00:49:35.000Z | 2017-01-15T07:00:24.000Z | cppp/src/9-sequential-container/45-46-50.cpp | ahxxm/cpp-exercise | abbe530770d49843ceaf706fb55b91ef100b1162 | [
"WTFPL"
] | 5 | 2016-05-02T13:52:52.000Z | 2016-09-28T07:57:09.000Z | cppp/src/9-sequential-container/45-46-50.cpp | ahxxm/cpp-exercise | abbe530770d49843ceaf706fb55b91ef100b1162 | [
"WTFPL"
] | null | null | null | #include <string>
#include <vector>
#include "gtest/gtest.h"
// 45: iterator, insert and append
// add prefix and suffix to a string
void add_prefix_suffix(std::string &s, const std::string &prefix, const std::string &suffix) {
s.insert(s.begin(), prefix.begin(), prefix.end());
s.append(suffix);
}
// 46: rewrite ... | 23.901961 | 97 | 0.655455 | ahxxm |
5a28405339af9d2936339626d1a63aa5da261607 | 4,655 | cpp | C++ | src/RkFehl.cpp | tmkwan/Cpp-Runge-Kutta-Fehlberg | 4e1aeb1d0231acbb12c94617fb79a33b3f542726 | [
"MIT"
] | null | null | null | src/RkFehl.cpp | tmkwan/Cpp-Runge-Kutta-Fehlberg | 4e1aeb1d0231acbb12c94617fb79a33b3f542726 | [
"MIT"
] | null | null | null | src/RkFehl.cpp | tmkwan/Cpp-Runge-Kutta-Fehlberg | 4e1aeb1d0231acbb12c94617fb79a33b3f542726 | [
"MIT"
] | null | null | null | /*
* RkFehl.cpp
*
* This function runs the Runge-Kutta Fehlberg method on an
* ODE selected by the string given as an input. It uses
* adaptive time-stepping to create the output matrix.
*
* Created on: Aug 6, 2016
* Author: Ted Kwan
*/
#include "RkFehl.h"
using namespace std;
using namespace arma;
Rk... | 27.544379 | 84 | 0.58131 | tmkwan |
5a2ac588f4ba8bddf84dd6d0bc6922ab12e361c5 | 1,934 | cc | C++ | demo/echo_client.cc | gatieme/yohub | 5cf68da73259c6fb75d35925ef44b1824efecc3f | [
"MIT"
] | 102 | 2015-01-12T01:30:00.000Z | 2021-08-06T05:49:58.000Z | demo/echo_client.cc | guker/yohub | 5cf68da73259c6fb75d35925ef44b1824efecc3f | [
"MIT"
] | 3 | 2015-01-21T08:57:12.000Z | 2016-08-29T10:31:19.000Z | demo/echo_client.cc | guker/yohub | 5cf68da73259c6fb75d35925ef44b1824efecc3f | [
"MIT"
] | 63 | 2015-01-04T02:17:17.000Z | 2020-10-14T04:57:10.000Z | #include "share/log.h"
#include "network/event_pool.h"
#include "network/async_client.h"
#include "network/async_connection.h"
#include "network/buffer.h"
#include <string>
#include <boost/bind.hpp>
#include <signal.h>
using namespace yohub;
static bool stop = false;
class EchoClient {
public:
EchoClient(Event... | 24.481013 | 75 | 0.607549 | gatieme |
5a2e6375dfe8bb10a07261a93b5e267e734c4322 | 5,925 | cpp | C++ | src/asiUI/salome/moc_QtxColorButton.cpp | yeeeeeeti/3D_feature_extract | 6297daa8afaac09aef9b44858e74fb2a95e1e7c5 | [
"BSD-3-Clause"
] | null | null | null | src/asiUI/salome/moc_QtxColorButton.cpp | yeeeeeeti/3D_feature_extract | 6297daa8afaac09aef9b44858e74fb2a95e1e7c5 | [
"BSD-3-Clause"
] | null | null | null | src/asiUI/salome/moc_QtxColorButton.cpp | yeeeeeeti/3D_feature_extract | 6297daa8afaac09aef9b44858e74fb2a95e1e7c5 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'QtxColorButton.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.1)
**
** WARNING! All changes made in this file will be lost!
******************************************************... | 33.857143 | 96 | 0.605401 | yeeeeeeti |
5a32c3f7e8607b919081120e2c04e80a510193d2 | 6,546 | cpp | C++ | third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainterTest.cpp | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainterTest.cpp | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainterTest.cpp | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/paint/SVGInlineTextBoxPainter.h"
#include "core/dom/Document.h"
#include "core/dom/Range.h"
#include "core/editing/DOMSelection.h"
#includ... | 39.433735 | 80 | 0.661931 | google-ar |
5a38c234ee4a7209c410bac36e545bf699861638 | 10,487 | inl | C++ | applications/plugins/SofaOpenCL/OpenCLSPHFluidForceField.inl | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/SofaOpenCL/OpenCLSPHFluidForceField.inl | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/SofaOpenCL/OpenCLSPHFluidForceField.inl | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | 43.878661 | 256 | 0.677601 | sofa-framework |
5a3a3f56303afc57a213d74f85375c003754fedd | 6,848 | cpp | C++ | BasicGameFramework/Component/Player/PlayerMovement.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | BasicGameFramework/Component/Player/PlayerMovement.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | BasicGameFramework/Component/Player/PlayerMovement.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | #include "PlayerMovement.h"
#include "../CircleComponent.h"
#include "../../Object/GameObject.h"
#include "../../Util/Input.h"
#include "../../Util/Timer.h"
#include "PlayerSpriteRenderer.h"
#include "../../Manager/GameManager.h"
#include "../../Manager/PhysicsManager.h"
#include "../../Manager/GameManager.h"
#incl... | 24.992701 | 131 | 0.664282 | dlwlxns4 |
5a3cb2fe0f92798500e8b3e298a895275fc5f2e5 | 567 | cpp | C++ | jp.atcoder/abc092/arc093_a/11933117.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc092/arc093_a/11933117.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc092/arc093_a/11933117.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n; cin >> n;
vector<int> a(n + 2);
for (int i = 1; i < n + 1; i++) cin >> a[i];
int s = 0;
for (int i = 0; i < n + 1; i++) {
s += abs(a[i+1] - a[i]);
}
for (int i = 1; i < n + 1;... | 23.625 | 68 | 0.405644 | kagemeka |
5a41b612b64a67861ac2b5f7fba964b361203b51 | 2,090 | hpp | C++ | include/json/AbstractJsonStateMapParser.hpp | SecureCloud-biz/Forecast.io-CPP | dc42abaa9d2887ae5e9a61336dd4cf4be1994993 | [
"Apache-2.0"
] | 12 | 2015-04-08T16:18:08.000Z | 2020-09-08T01:52:27.000Z | include/json/AbstractJsonStateMapParser.hpp | SecureCloud-biz/Forecast.io-CPP | dc42abaa9d2887ae5e9a61336dd4cf4be1994993 | [
"Apache-2.0"
] | null | null | null | include/json/AbstractJsonStateMapParser.hpp | SecureCloud-biz/Forecast.io-CPP | dc42abaa9d2887ae5e9a61336dd4cf4be1994993 | [
"Apache-2.0"
] | 6 | 2015-07-24T01:19:58.000Z | 2019-07-08T11:52:48.000Z | #ifndef ABSTRACTJSONSTATEMAPPARSER_HPP
#define ABSTRACTJSONSTATEMAPPARSER_HPP
#include "AbstractJsonParser.hpp" // Base class: json::AbstractJsonParser
#include <sstream>
#include <string>
#include <unordered_map>
#include "ParseError.hpp"
#include "../common/to_string.hpp"
namespace json
{
template<typename A>
cl... | 22.473118 | 90 | 0.733971 | SecureCloud-biz |
5a431cdbb6b1967255c17ce88df360c0af7587a7 | 1,756 | cpp | C++ | problems/codeforces/1244/c-the-football-season/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codeforces/1244/c-the-football-season/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codeforces/1244/c-the-football-season/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define long int64_t
#define bigint __int128_t
// *****
long gcd(long a, long b, long& x, long& y) {
long xn = 1, yn = 0;
x = 0, y = 1;
while (a != 0) {
long q = b / a;
b = b % a;
x = x - q * xn, y = y - q * yn;
swap(a, b), sw... | 23.105263 | 65 | 0.340547 | brunodccarvalho |
5a436ebdb47418288b67438e9bcbf4f6d8e194f5 | 457 | cpp | C++ | nocBunnyHop/src/Dandelion.cpp | TravelByRocket/immersive-science-visualizations | 8cb47997cc97365df14dbd7ad915f162b5b35ff6 | [
"MIT"
] | null | null | null | nocBunnyHop/src/Dandelion.cpp | TravelByRocket/immersive-science-visualizations | 8cb47997cc97365df14dbd7ad915f162b5b35ff6 | [
"MIT"
] | null | null | null | nocBunnyHop/src/Dandelion.cpp | TravelByRocket/immersive-science-visualizations | 8cb47997cc97365df14dbd7ad915f162b5b35ff6 | [
"MIT"
] | null | null | null | //
// Dandelion.cpp
// nocBunnyHop
//
// Created by Bryan Costanza on 2/2/20.
//
#include "Dandelion.h"
void Dandelion::draw(){
int height = 10;
ofPushStyle();
ofFill();
ofSetColor(ofColor::lawnGreen);
ofDrawLine(loc.x, loc.y, loc.x, loc.y - height);
ofSetColor(ofColor::greenYellow);
of... | 21.761905 | 78 | 0.606127 | TravelByRocket |
5a475e65eda1f9350be5f50b4ef6ab0e55475875 | 452 | hpp | C++ | NWNXLib/API/API/CTlkTableToken.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 111 | 2018-01-16T18:49:19.000Z | 2022-03-13T12:33:54.000Z | NWNXLib/API/API/CTlkTableToken.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 636 | 2018-01-17T10:05:31.000Z | 2022-03-28T20:06:03.000Z | NWNXLib/API/API/CTlkTableToken.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 110 | 2018-01-16T19:05:54.000Z | 2022-03-28T03:44:16.000Z | #pragma once
#include "nwn_api.hpp"
#include "CExoString.hpp"
#ifdef NWN_API_PROLOGUE
NWN_API_PROLOGUE(CTlkTableToken)
#endif
struct CTlkTableToken
{
uint32_t m_nHash;
CExoString m_sToken;
uint32_t m_nActionCode;
uint32_t m_nStrRef[4];
uint32_t m_nStrRefDefault;
#ifdef NWN_CLASS_EXTENSION... | 12.914286 | 41 | 0.780973 | summonFox |
5a4881c4ff7fffc3e3dac8cc4c20f6cd70c5cd00 | 521 | cpp | C++ | examples/src/eigen_containers.cpp | oKermorgant/log2plot | 93044f286df685da698cfa4d5461d346d9b1e5b9 | [
"MIT"
] | 5 | 2018-04-19T13:35:40.000Z | 2021-10-09T04:24:07.000Z | examples/src/eigen_containers.cpp | oKermorgant/log2plot | 93044f286df685da698cfa4d5461d346d9b1e5b9 | [
"MIT"
] | 3 | 2019-10-15T07:49:52.000Z | 2021-04-26T14:28:50.000Z | examples/src/eigen_containers.cpp | oKermorgant/log2plot | 93044f286df685da698cfa4d5461d346d9b1e5b9 | [
"MIT"
] | 2 | 2019-09-06T12:34:59.000Z | 2021-04-22T10:21:54.000Z | #include <Eigen/Core>
#include <log2plot/logger.h>
int main()
{
Eigen::Vector3d t;
log2plot::Logger logger(LOG2PLOT_EXAMPLE_PATH);
// save translation with Latex legend
logger.save(t, "eigen_t", "[t_x,t_y,t_z]", "Position");
for(int i=0;i<100;++i)
{
t[0] = cos(i*0.01);
t[1] = ... | 16.806452 | 59 | 0.52975 | oKermorgant |
5a49e305ec89e26a1d3b9b62e09bded50ef263f0 | 1,444 | cpp | C++ | Strings/RollingHash.cpp | 4eyes4u/Algorithms | afd8363ee39e5b7c499741f56922f16f4f50dc09 | [
"MIT"
] | 2 | 2019-02-16T13:13:40.000Z | 2019-03-19T20:05:42.000Z | Strings/RollingHash.cpp | 4eyes4u/Algorithms | afd8363ee39e5b7c499741f56922f16f4f50dc09 | [
"MIT"
] | null | null | null | Strings/RollingHash.cpp | 4eyes4u/Algorithms | afd8363ee39e5b7c499741f56922f16f4f50dc09 | [
"MIT"
] | 1 | 2020-07-03T06:15:41.000Z | 2020-07-03T06:15:41.000Z | /*
Name: Rolling hash
Time complexity:
-O(N + logMOD) for initialization
-O(1) for substrings' hash
* * *
Prime should be several magnitudes lower than moduo.
Several hash functions can be applied in order to reduce number of collisions.
*/
#include <bits/stdc++.h>
using namespace std... | 18.278481 | 82 | 0.455679 | 4eyes4u |
5a4c6363132c8ec500b2c4f3b1ce18202d89fafd | 5,770 | cpp | C++ | source/XDynamicLibrary.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null | source/XDynamicLibrary.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null | source/XDynamicLibrary.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null |
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// XSDK
// Copyright (c) 2015 Schneider Electric
//
// Use, modification, and distribution is subject to the Boost Software License,
// Version 1.0 (See accompanying file LICENSE).
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | 31.703297 | 166 | 0.462912 | MultiSight |
53ff8057e0bca24f227762fd1d0d8f7f34184af9 | 4,196 | cpp | C++ | Examples/PDU/PDU_Factory2/KDIS.cpp | TangramFlex/KDIS_Fork | 698d81a2de8b6df3fc99bb31b9d31eaa5368fda4 | [
"BSD-2-Clause"
] | null | null | null | Examples/PDU/PDU_Factory2/KDIS.cpp | TangramFlex/KDIS_Fork | 698d81a2de8b6df3fc99bb31b9d31eaa5368fda4 | [
"BSD-2-Clause"
] | null | null | null | Examples/PDU/PDU_Factory2/KDIS.cpp | TangramFlex/KDIS_Fork | 698d81a2de8b6df3fc99bb31b9d31eaa5368fda4 | [
"BSD-2-Clause"
] | null | null | null | /**********************************************************************
The following UNLICENSE statement applies to this example.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code for... | 34.677686 | 124 | 0.630839 | TangramFlex |
9904e948ada36e1a76f79b99d594615cf2c506ca | 1,170 | hpp | C++ | opt/nomad/src/Attribute/cacheAttributesDefinition.hpp | scikit-quant/scikit-quant | 397ab0b6287f3815e9bcadbfadbe200edbee5a23 | [
"BSD-3-Clause-LBNL"
] | 31 | 2019-02-05T16:39:18.000Z | 2022-03-11T23:14:11.000Z | opt/nomad/src/Attribute/cacheAttributesDefinition.hpp | scikit-quant/scikit-quant | 397ab0b6287f3815e9bcadbfadbe200edbee5a23 | [
"BSD-3-Clause-LBNL"
] | 20 | 2020-04-13T09:22:53.000Z | 2021-08-16T16:14:13.000Z | opt/nomad/src/Attribute/cacheAttributesDefinition.hpp | scikit-quant/scikit-quant | 397ab0b6287f3815e9bcadbfadbe200edbee5a23 | [
"BSD-3-Clause-LBNL"
] | 6 | 2020-04-21T17:43:47.000Z | 2021-03-10T04:12:34.000Z | //////////// THIS FILE MUST BE CREATED BY EXECUTING WriteAttributeDefinitionFile ////////////
//////////// DO NOT MODIFY THIS FILE MANUALLY ///////////////////////////////////////////////
#ifndef __NOMAD_4_0_CACHEATTRIBUTESDEFINITION__
#define __NOMAD_4_0_CACHEATTRIBUTESDEFINITION__
_definition = {
{ "CACHE_FILE", "... | 97.5 | 436 | 0.64359 | scikit-quant |
990b60af7db02ce94660a789e6f60f04d0ea63ef | 7,020 | cpp | C++ | 1/face_morphing/morphing.cpp | Trinkle23897/dip2018 | c8a29f1d6dcc165906165caebd41389e1be23062 | [
"MIT"
] | 4 | 2018-04-20T11:35:39.000Z | 2019-04-10T02:43:18.000Z | 1/face_morphing/morphing.cpp | Trinkle23897/dip2018 | c8a29f1d6dcc165906165caebd41389e1be23062 | [
"MIT"
] | null | null | null | 1/face_morphing/morphing.cpp | Trinkle23897/dip2018 | c8a29f1d6dcc165906165caebd41389e1be23062 | [
"MIT"
] | 3 | 2019-04-16T05:11:33.000Z | 2019-05-01T13:22:52.000Z | #define STB_IMAGE_IMPLEMENTATION
#include "tools/stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "tools/stb_image_write.h"
#include "delaunay.h"
namespace Gauss
{
ld a[10][10];
const int n=3;
void pr(){
for(int i=1;i<=n;i++,puts(""))
for(int j=1;j<=n+1;j++)
printf("%lf ",a[i][j]);
puts("");
}
void ... | 31.339286 | 203 | 0.531054 | Trinkle23897 |
990c981deab8ee1f973aa8b79fd4541113777dc6 | 4,568 | cpp | C++ | main.cpp | Arc-N/DLL-Implementation | f366ad19eef76f7b52158e71107a32a6bbcdae24 | [
"MIT"
] | null | null | null | main.cpp | Arc-N/DLL-Implementation | f366ad19eef76f7b52158e71107a32a6bbcdae24 | [
"MIT"
] | null | null | null | main.cpp | Arc-N/DLL-Implementation | f366ad19eef76f7b52158e71107a32a6bbcdae24 | [
"MIT"
] | null | null | null | //Arman Arakelyan
#include "helperFunctions.hpp"
int main()
{
int lengthOfSimulation = 0, numberOfRegisters = 0, maximumLineLength = 0;
char arrangmentSelector = '\0';
std::cin >> lengthOfSimulation >> numberOfRegisters >> maximumLineLength;
std::cin >> arrangmentSelector;
//=======================================... | 35.968504 | 150 | 0.652583 | Arc-N |
990f85b744345a87ef04bcddf060234fcc476d96 | 5,470 | cpp | C++ | npy/NOpenMeshEnum.cpp | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | npy/NOpenMeshEnum.cpp | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | npy/NOpenMeshEnum.cpp | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | /*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... | 30.903955 | 80 | 0.67989 | hanswenzel |
99120f71365de278ae23671cd007a867bc94f843 | 556 | hpp | C++ | headers/event.hpp | bdomitil/irc-server | 16ea347ea3d1a79fec402a871320cf22d5ef5a2f | [
"Unlicense"
] | null | null | null | headers/event.hpp | bdomitil/irc-server | 16ea347ea3d1a79fec402a871320cf22d5ef5a2f | [
"Unlicense"
] | null | null | null | headers/event.hpp | bdomitil/irc-server | 16ea347ea3d1a79fec402a871320cf22d5ef5a2f | [
"Unlicense"
] | null | null | null | #ifndef IRC_EVENT_HPP
#define IRC_EVENT_HPP
#include "irc-server.hpp"
class t_event{
private:
uint32_t len;
int fd;
uint32_t update_len;
struct kevent *event_list;
public:
void update();
void addReadEvent(int fd, void *udata);
void addWriteEvent(int fd, void *udata);
void disableReadEvent(int fd, void *ud... | 23.166667 | 45 | 0.733813 | bdomitil |
9912ad534241b957aeb416a745be3738794589ed | 1,766 | cpp | C++ | src/tdme/engine/model/FacesEntity.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/engine/model/FacesEntity.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/engine/model/FacesEntity.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | #include <tdme/engine/model/FacesEntity.h>
#include <vector>
#include <string>
#include <tdme/engine/model/Face.h>
#include <tdme/engine/model/Group.h>
#include <tdme/engine/model/Material.h>
#include <tdme/engine/model/TextureCoordinate.h>
#include <tdme/math/Vector3.h>
using std::vector;
using std::string;
using ... | 27.169231 | 121 | 0.715742 | mahula |
991ebdf78337daca3f78c08db62eded13e83ae73 | 1,688 | inl | C++ | include/luaBind/object.inl | StefanoLanza/LuaBind | 37b27e8ed54915890a69139826ece9e24d0860d5 | [
"MIT"
] | null | null | null | include/luaBind/object.inl | StefanoLanza/LuaBind | 37b27e8ed54915890a69139826ece9e24d0860d5 | [
"MIT"
] | null | null | null | include/luaBind/object.inl | StefanoLanza/LuaBind | 37b27e8ed54915890a69139826ece9e24d0860d5 | [
"MIT"
] | null | null | null | #pragma once
#include "autoBlock.h"
#include "result.h"
#include "stackUtils.h"
#include <cassert>
namespace Typhoon::LuaBind {
template <typename RetType, typename... ArgTypes>
Result Object::callMethodRet(const char* func, RetType& ret, ArgTypes&&... args) const {
AutoBlock autoBlock(ls);
const auto [validCall,... | 25.969231 | 101 | 0.668246 | StefanoLanza |
991edfab00304ba2bf9d5d0fc9e954691c949ed0 | 478,311 | cc | C++ | test/gf_poly_add.cc | rescrv/redupe | d7427613d9f695e8ad051fd745e1498e7403ee84 | [
"BSD-3-Clause"
] | 11 | 2015-12-04T22:46:15.000Z | 2022-03-28T08:56:46.000Z | test/gf_poly_add.cc | rescrv/redupe | d7427613d9f695e8ad051fd745e1498e7403ee84 | [
"BSD-3-Clause"
] | null | null | null | test/gf_poly_add.cc | rescrv/redupe | d7427613d9f695e8ad051fd745e1498e7403ee84 | [
"BSD-3-Clause"
] | 2 | 2020-07-21T05:55:32.000Z | 2020-07-22T21:10:38.000Z | // Copyright (c) 2015, Robert Escriva
// 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 c... | 33.378297 | 838 | 0.561091 | rescrv |
991f70d987ade5625f8ddbc1269112446000031e | 5,880 | cpp | C++ | src/4-CPUArchitecture/cpu_cache_misses.cpp | nixiz/advanced_cpp_course | acc3cab52cb629ed3eb12cd0fdd9689069e733e7 | [
"MIT"
] | 1 | 2021-12-09T07:23:06.000Z | 2021-12-09T07:23:06.000Z | src/4-CPUArchitecture/cpu_cache_misses.cpp | nixiz/advanced_cpp_course | acc3cab52cb629ed3eb12cd0fdd9689069e733e7 | [
"MIT"
] | null | null | null | src/4-CPUArchitecture/cpu_cache_misses.cpp | nixiz/advanced_cpp_course | acc3cab52cb629ed3eb12cd0fdd9689069e733e7 | [
"MIT"
] | null | null | null | #include <advanced_cpp_topics.h>
#include <limits>
#include <type_traits>
#include <chrono>
#include <random>
#include <map>
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
namespace cpu_cache_misses {
enum class TraversalOrder : unsigned {
RowMajor,
ColumnMajor
};
template ... | 28 | 122 | 0.596429 | nixiz |
9921d1792e24d504db60756a0857ae644ed51ccc | 6,762 | cpp | C++ | src/schedulers/Static.cpp | EngineCL/EngineCL | 28b717317c3d6330385cb3b8f574f2b35f62ad4c | [
"MIT"
] | 13 | 2020-10-12T00:08:42.000Z | 2022-03-31T21:17:12.000Z | src/schedulers/Static.cpp | EngineCL/EngineCL | 28b717317c3d6330385cb3b8f574f2b35f62ad4c | [
"MIT"
] | null | null | null | src/schedulers/Static.cpp | EngineCL/EngineCL | 28b717317c3d6330385cb3b8f574f2b35f62ad4c | [
"MIT"
] | 3 | 2020-11-19T01:17:57.000Z | 2021-04-27T03:40:05.000Z | /**
* Copyright (c) 2018 ATC (University of Cantabria) <nozalr@unican.es>
* This file is part of EngineCL which is released under MIT License.
* See file LICENSE for full license details.
*/
#include "schedulers/Static.hpp"
#include <tuple>
#include "Device.hpp"
namespace ecl {
void
fnThreadScheduler(StaticS... | 23.726316 | 96 | 0.674652 | EngineCL |