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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed391cd4cb8dd757beeb5e4978a567be37229eb8 | 5,489 | cc | C++ | daemon/protocol/mcbp/get_context.cc | cgvarela/memcached | 493a2ed939e87d18eb368f17bec5b948701e9d2d | [
"BSD-3-Clause"
] | null | null | null | daemon/protocol/mcbp/get_context.cc | cgvarela/memcached | 493a2ed939e87d18eb368f17bec5b948701e9d2d | [
"BSD-3-Clause"
] | null | null | null | daemon/protocol/mcbp/get_context.cc | cgvarela/memcached | 493a2ed939e87d18eb368f17bec5b948701e9d2d | [
"BSD-3-Clause"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2016 Couchbase, 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
*
* ... | 31.011299 | 86 | 0.599198 | cgvarela |
ed3d9f0b86d763cd5ba8c5ac2cab8633a9cf7b04 | 312 | cpp | C++ | uppdev/RMutex/RMutex.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | uppdev/RMutex/RMutex.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | uppdev/RMutex/RMutex.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include <Core/Core.h>
class Mutex {
int count;
void *threadid;
void Enter() {
if(self_thread == threadid) {
count++;
return;
}
Enter...
threadid = self_thread
count = 1;
}
void Leave() {
if(--count != 0) return;
Leave...
}
};
CONSOLE_APP_MAIN
{
}
| 11.555556 | 32 | 0.516026 | dreamsxin |
ed3dd0c8fa7bd7278b15a67812dfd032af549b22 | 3,521 | cpp | C++ | DataStructures/GraphMain.cpp | SimpleTechTalks/SimpleTechTalks | eefdb4cffc955f43535f4054d1558978ae0088e1 | [
"MIT"
] | null | null | null | DataStructures/GraphMain.cpp | SimpleTechTalks/SimpleTechTalks | eefdb4cffc955f43535f4054d1558978ae0088e1 | [
"MIT"
] | null | null | null | DataStructures/GraphMain.cpp | SimpleTechTalks/SimpleTechTalks | eefdb4cffc955f43535f4054d1558978ae0088e1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#include "GraphDefine.h"
void add_header (const char *line)
{
cout << "========================================================================" << endl;
cout << line << endl;
cout << "========================================================================" << end... | 31.4375 | 97 | 0.590457 | SimpleTechTalks |
ed3e3e3d927bc9cc698220827b30d7426542c5e4 | 510 | cpp | C++ | test/HttpClientTest.cpp | taozhijiang/roo | bea672b9274f91f4002a9742e096152b0d62f122 | [
"BSD-3-Clause"
] | null | null | null | test/HttpClientTest.cpp | taozhijiang/roo | bea672b9274f91f4002a9742e096152b0d62f122 | [
"BSD-3-Clause"
] | null | null | null | test/HttpClientTest.cpp | taozhijiang/roo | bea672b9274f91f4002a9742e096152b0d62f122 | [
"BSD-3-Clause"
] | 2 | 2019-08-23T02:31:42.000Z | 2020-05-02T00:12:36.000Z | #include <gmock/gmock.h>
#include <string>
#include <iostream>
#include <other/HttpClient.h>
using namespace ::testing;
using namespace roo;
TEST(HttpClientTest, HttpClientSmokeTest) {
const char* url_404 = "http://www.example.com/bb";
const char* url_200 = "http://www.example.com/index.html";
auto cl... | 20.4 | 62 | 0.678431 | taozhijiang |
ed43fc400c22daaa49802b65ad3d11383d2432ff | 6,037 | cpp | C++ | constraintsolver/src/CGSolver.cpp | rapyuta-robotics/alica-supplementary-1 | 6ffd66d0a479d6a77c0caf1e6a41db75f2a95b9c | [
"MIT"
] | 1 | 2018-12-28T12:06:45.000Z | 2018-12-28T12:06:45.000Z | constraintsolver/src/CGSolver.cpp | rapyuta-robotics/alica-supplementary-1 | 6ffd66d0a479d6a77c0caf1e6a41db75f2a95b9c | [
"MIT"
] | 12 | 2018-05-28T05:27:04.000Z | 2021-11-23T07:52:35.000Z | constraintsolver/src/CGSolver.cpp | rapyuta-robotics/alica-supplementary-1 | 6ffd66d0a479d6a77c0caf1e6a41db75f2a95b9c | [
"MIT"
] | 3 | 2019-03-27T01:05:10.000Z | 2020-07-23T19:11:09.000Z | #include "constraintsolver/CGSolver.h"
#include "constraintsolver/GSolver.h"
#include <engine/AlicaEngine.h>
#include <engine/constraintmodul/ProblemDescriptor.h>
#include <engine/constraintmodul/VariableSyncModule.h>
#include <engine/model/Variable.h>
#include <autodiff/Term.h>
#include <autodiff/TermHolder.h>
#inc... | 34.497143 | 147 | 0.640219 | rapyuta-robotics |
ed47362f62e368f1af948cc9403e4f0db1e602da | 806 | hpp | C++ | include/yaul/tml/numeric_cast_fwd.hpp | ptomulik/yaul-tml | 2b8bf3f88742996bd8199375678cdebd6e3206d9 | [
"BSL-1.0"
] | null | null | null | include/yaul/tml/numeric_cast_fwd.hpp | ptomulik/yaul-tml | 2b8bf3f88742996bd8199375678cdebd6e3206d9 | [
"BSL-1.0"
] | 2 | 2015-03-07T13:52:46.000Z | 2015-03-07T13:53:14.000Z | include/yaul/tml/numeric_cast_fwd.hpp | ptomulik/yaul-tml | 2b8bf3f88742996bd8199375678cdebd6e3206d9 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2014, Pawel Tomulik <ptomulik@meil.pw.edu.pl>
//
// 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)
// yaul/tml/numeric_cast_fwd.hpp
/** // doc: yaul/tml/numeric_cast_fwd.hpp {{{
* \file yaul/tm... | 28.785714 | 65 | 0.729529 | ptomulik |
ed4b7d4ef2ca4aff73d6d0a5e7254fd29d210efa | 50,241 | cpp | C++ | control/mpc_follower/src/mpc_follower_core.cpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 1 | 2022-03-09T05:53:04.000Z | 2022-03-09T05:53:04.000Z | control/mpc_follower/src/mpc_follower_core.cpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 4 | 2022-01-07T21:21:04.000Z | 2022-03-14T21:25:37.000Z | control/mpc_follower/src/mpc_follower_core.cpp | loop-perception/AutowareArchitectureProposal.iv | 5d8dff0db51634f0c42d2a3e87ca423fbee84348 | [
"Apache-2.0"
] | 2 | 2021-03-09T00:20:39.000Z | 2021-04-16T10:23:36.000Z | // Copyright 2018-2019 Autoware Foundation
//
// 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 ... | 39.220141 | 100 | 0.699409 | loop-perception |
ed4ba278c0457cd58551f29d9fbea4bce10a4d7f | 2,258 | cpp | C++ | pxr/base/lib/tf/wrapRefPtrTracker.cpp | marsupial/USD | 98d49911893d59be5a9904a29e15959affd530ec | [
"BSD-3-Clause"
] | 9 | 2021-03-31T21:23:48.000Z | 2022-03-05T09:29:27.000Z | pxr/base/lib/tf/wrapRefPtrTracker.cpp | marsupial/USD | 98d49911893d59be5a9904a29e15959affd530ec | [
"BSD-3-Clause"
] | null | null | null | pxr/base/lib/tf/wrapRefPtrTracker.cpp | marsupial/USD | 98d49911893d59be5a9904a29e15959affd530ec | [
"BSD-3-Clause"
] | 1 | 2021-04-15T16:18:55.000Z | 2021-04-15T16:18:55.000Z | //
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 29.324675 | 75 | 0.734278 | marsupial |
ed4d99bc1997078b804af517225dbf8733350659 | 2,035 | cpp | C++ | others/DDCC/D_ver2.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | 1 | 2021-06-01T17:13:44.000Z | 2021-06-01T17:13:44.000Z | others/DDCC/D_ver2.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | others/DDCC/D_ver2.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | //#include <cassert>
//#include <cstdio>
//#include <cmath>
//#include <iostream>
//#include <iomanip>
//#include <sstream>
//#include <vector>
//#include <set>
//#include <map>
//#include <queue>
//#include <numeric>
//#include <algorithm>
//
//using namespace std;
//using lint = long long;
//constexpr int MOD = 10000... | 18.669725 | 75 | 0.490418 | rajyan |
ed4f2e9715b259a42ed9162674e0b7d7035b5a09 | 1,071 | cpp | C++ | TAP 2020.1/brincando-com-conjuntos_2222.cpp | lucianovianna/IP-2019-1 | 585ab983d87de1bda4cb000581ebbee10214651e | [
"Apache-2.0"
] | 1 | 2019-04-20T01:02:13.000Z | 2019-04-20T01:02:13.000Z | TAP 2020.1/brincando-com-conjuntos_2222.cpp | lucianovianna/study_C | 585ab983d87de1bda4cb000581ebbee10214651e | [
"Apache-2.0"
] | null | null | null | TAP 2020.1/brincando-com-conjuntos_2222.cpp | lucianovianna/study_C | 585ab983d87de1bda4cb000581ebbee10214651e | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// https://www.urionlinejudge.com.br/judge/pt/problems/view/2222
typedef unsigned long long int ull;
int main()
{
ios_base::sync_with_stdio( false );
cin.tie( NULL );
int T;
cin >> T;
vector< vector<ull> > cj;
while(T--)
{
int n;
ci... | 15.521739 | 64 | 0.394024 | lucianovianna |
ed5016f0f13c2dfa2f4f9358bf4c802c925dedc2 | 2,717 | cc | C++ | Memcached/MCBug5/memcached-127/libmemcached-0.49/tests/pool.cc | uditagarwal97/nekara-artifact | b210ccaf751aca6bae7189d4f4db537b6158c525 | [
"MIT"
] | 2 | 2021-07-15T15:58:18.000Z | 2021-07-16T14:37:26.000Z | Memcached/MCBug5/memcached-127/libmemcached-0.49/tests/pool.cc | uditagarwal97/nekara-artifact | b210ccaf751aca6bae7189d4f4db537b6158c525 | [
"MIT"
] | null | null | null | Memcached/MCBug5/memcached-127/libmemcached-0.49/tests/pool.cc | uditagarwal97/nekara-artifact | b210ccaf751aca6bae7189d4f4db537b6158c525 | [
"MIT"
] | 2 | 2021-07-15T12:19:06.000Z | 2021-09-06T04:28:19.000Z | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Libmemcached Client and Server
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follow... | 34.392405 | 143 | 0.744571 | uditagarwal97 |
ed567ad96a62ddff18cf733b12d5787962da1e6a | 804 | cpp | C++ | 290-word-pattern/290-word-pattern.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 2 | 2022-01-02T19:15:00.000Z | 2022-01-05T21:12:24.000Z | 290-word-pattern/290-word-pattern.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | null | null | null | 290-word-pattern/290-word-pattern.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 1 | 2022-03-11T17:11:07.000Z | 2022-03-11T17:11:07.000Z | class Solution {
public:
bool wordPattern(string pattern, string s) {
vector<string>v(pattern.length()+1);
int j=0;
for(int i=0;i<s.length();i++){
if(s[i]!=' ')
{
v[j]+=s[i];
}
else
j++;
}
ma... | 24.363636 | 70 | 0.365672 | Ananyaas |
ed5b37cde35b82cfdc3bd8ff014da35df126ed5d | 2,418 | cpp | C++ | UVA/NetworkConnections.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | UVA/NetworkConnections.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | UVA/NetworkConnections.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <cctype>
#include <set>
#include <queue>
#include <map>
#include <stack>
#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
#include <sstream>
#include <cstdlib>
#include <locale>
#include <cmath>
#include <vector>
#include <cstdio>
#include <cstring>
#define scd(x) scanf("%d", &x)
... | 24.673469 | 73 | 0.563689 | MartinAparicioPons |
ed5fa1a09871813ca7bb89af7f31028f0c040d6e | 3,449 | cpp | C++ | lab4/150101033_3.cpp | mayank-myk/Basic-Datastructure-implementations | 4bf5f79c2c5ad636fe9d61c0be36a0a3e1238356 | [
"MIT"
] | null | null | null | lab4/150101033_3.cpp | mayank-myk/Basic-Datastructure-implementations | 4bf5f79c2c5ad636fe9d61c0be36a0a3e1238356 | [
"MIT"
] | null | null | null | lab4/150101033_3.cpp | mayank-myk/Basic-Datastructure-implementations | 4bf5f79c2c5ad636fe9d61c0be36a0a3e1238356 | [
"MIT"
] | null | null | null | // mayank agrawal
// 150101033
// To complie type: g++ 150101033_3.cpp -std=c++11 in linux
#include <bits/stdc++.h>
#include <cstdlib>
#include <cstdio>
#include <iostream>
using namespace std;
struct node{
int row;
int col;
int value;
struct node * right;
struct node * down;
};
struct node *createnode(int ro... | 21.030488 | 108 | 0.551464 | mayank-myk |
ed60a20123146118a0edd7b0e761349a80d128ab | 312 | hpp | C++ | compendium/test_bundles/TestBundleDSTOI12/src/ServiceImpl.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 588 | 2015-10-07T15:55:08.000Z | 2022-03-29T00:35:44.000Z | compendium/test_bundles/TestBundleDSTOI12/src/ServiceImpl.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 459 | 2015-10-05T23:29:59.000Z | 2022-03-29T14:13:37.000Z | compendium/test_bundles/TestBundleDSTOI12/src/ServiceImpl.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 218 | 2015-11-04T08:19:48.000Z | 2022-03-24T02:17:08.000Z | #ifndef SERVICEIMPL_HPP
#define SERVICEIMPL_HPP
#include "TestInterfaces/Interfaces.hpp"
namespace sample {
class ServiceComponent12 : public test::Interface1
{
public:
ServiceComponent12() = default;
~ServiceComponent12() override;
std::string Description() override;
};
}
#endif // _SERVICE_IMPL_HPP_
| 18.352941 | 50 | 0.775641 | fmilano |
ed673c2776dc5598cc3d749d7bc6a8fd1db9a70d | 2,471 | cpp | C++ | src/robot/Constants.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | src/robot/Constants.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | src/robot/Constants.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | #include "Constants.hpp"
namespace constants {
units::QLength RobotConstants::kDriveWheelRadius = 2*units::inch;
units::QMass RobotConstants::kRobotMass = 4*units::kg;
units::QMoment RobotConstants::kRobotMoment = 4*units::kgm2;
units::QAngularDrag RobotConstants::kRobotAngularDrag = 0.0;
units::QL... | 43.350877 | 98 | 0.734925 | roboFiddle |
ed6abab59f7433f6de3847922a8fb3045b931481 | 1,004 | cpp | C++ | tests/cpp/integration/test_p2p_apis.cpp | Pandinosaurus/KungFu | 80dfa463450330e920b413f65cc49d8e013b84a9 | [
"Apache-2.0"
] | 291 | 2019-10-25T16:37:59.000Z | 2022-03-17T21:47:09.000Z | tests/cpp/integration/test_p2p_apis.cpp | Pandinosaurus/KungFu | 80dfa463450330e920b413f65cc49d8e013b84a9 | [
"Apache-2.0"
] | 56 | 2019-10-26T08:25:33.000Z | 2021-09-07T11:11:51.000Z | tests/cpp/integration/test_p2p_apis.cpp | Pandinosaurus/KungFu | 80dfa463450330e920b413f65cc49d8e013b84a9 | [
"Apache-2.0"
] | 53 | 2019-10-25T17:45:40.000Z | 2022-02-08T13:09:39.000Z | #include <algorithm>
#include <numeric>
#include <vector>
#include <kungfu.h>
void test_versioned_store(kungfu::Peer &world)
{
const int rank = world.Rank();
const int np = world.Size();
using T = int;
const int n = 10;
std::vector<T> send_buf(n);
std::vector<T> recv_buf(n);
std::i... | 21.826087 | 70 | 0.546813 | Pandinosaurus |
ed6c965bce32a1aed0d2b1aa897fc1e392e61e3e | 2,834 | hpp | C++ | include/codegen/include/System/Text/EncoderFallback.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Text/EncoderFallback.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Text/EncoderFallback.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:42 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 44.984127 | 89 | 0.739238 | Futuremappermydud |
ed70bd97497d987130f6f2f8e57ad2d83f38bd35 | 438 | cpp | C++ | src/boards/mcu/espressif/spi_board.cpp | luisgcu/SX126x-Arduino | 072acaa9f5cdcc8cdf582bd4d2248c232b1c2b08 | [
"MIT"
] | 118 | 2019-10-02T14:30:43.000Z | 2022-03-25T10:31:04.000Z | src/boards/mcu/espressif/spi_board.cpp | luisgcu/SX126x-Arduino | 072acaa9f5cdcc8cdf582bd4d2248c232b1c2b08 | [
"MIT"
] | 58 | 2019-08-21T15:30:41.000Z | 2022-03-04T02:42:14.000Z | src/boards/mcu/espressif/spi_board.cpp | luisgcu/SX126x-Arduino | 072acaa9f5cdcc8cdf582bd4d2248c232b1c2b08 | [
"MIT"
] | 49 | 2019-09-08T15:44:00.000Z | 2022-03-20T22:42:41.000Z | #if defined ESP8266 || defined ESP32
#include <SPI.h>
#include "boards/mcu/board.h"
SPIClass SPI_LORA;
void initSPI(void)
{
#ifdef ESP8266
SPI_LORA.pins(_hwConfig.PIN_LORA_SCLK, _hwConfig.PIN_LORA_MISO, _hwConfig.PIN_LORA_MOSI, _hwConfig.PIN_LORA_NSS);
SPI_LORA.begin();
SPI_LORA.setHwCs(false);
#else
SPI_LORA.beg... | 25.764706 | 115 | 0.799087 | luisgcu |
ed76770cf59f0fe9c209d72428c36fbf12d46704 | 7,904 | cc | C++ | cpp/core/libcore/net/tcp_conn.cc | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | cpp/core/libcore/net/tcp_conn.cc | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | cpp/core/libcore/net/tcp_conn.cc | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | #include "net/libevent_headers.h"
#include "net/tcp_conn.h"
#include "net/fd_channel.h"
#include "net/event_loop.h"
#include "net/sockets.h"
#include "net/invoke_timer.h"
TCPConn::TCPConn(EventLoop* l, const std::string& n, net_socket_t sockfd, const std::string& laddr, const std::string& raddr)
: loop_(l)
,... | 26.702703 | 154 | 0.604504 | cheukw |
ed777fc0af8a172c2885b4654977e8876c2fce6d | 1,481 | cc | C++ | cc/test/fake_context_provider.cc | GnorTech/chromium | e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-03-10T13:08:49.000Z | 2018-03-10T13:08:49.000Z | cc/test/fake_context_provider.cc | GnorTech/chromium | e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | cc/test/fake_context_provider.cc | GnorTech/chromium | e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:19:31.000Z | 2020-11-04T07:19:31.000Z | // Copyright 2013 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 "cc/test/fake_context_provider.h"
#include "cc/test/test_web_graphics_context_3d.h"
namespace cc {
FakeContextProvider::FakeContextProvider()
... | 23.887097 | 73 | 0.740041 | GnorTech |
ed782f71f78615ea0d6b69b6e205495e66e01901 | 2,445 | cpp | C++ | Open3D/cpp/open3d/visualization/gui/Label3D.cpp | xdeng7/redwood_open3d_3dreconstruction | aa1651d3cec1feb00468d548ac2268a3ed17b856 | [
"Apache-2.0"
] | 2 | 2021-03-16T11:36:41.000Z | 2021-03-26T08:52:27.000Z | Open3D/cpp/open3d/visualization/gui/Label3D.cpp | xdeng7/redwood_open3d_3dreconstruction | aa1651d3cec1feb00468d548ac2268a3ed17b856 | [
"Apache-2.0"
] | 1 | 2019-12-15T09:02:38.000Z | 2019-12-15T09:02:38.000Z | Open3D/cpp/open3d/visualization/gui/Label3D.cpp | xdeng7/redwood_open3d_3dreconstruction | aa1651d3cec1feb00468d548ac2268a3ed17b856 | [
"Apache-2.0"
] | 1 | 2021-02-28T15:22:20.000Z | 2021-02-28T15:22:20.000Z | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... | 35.434783 | 80 | 0.637628 | xdeng7 |
ed7a09e14953f33b3b15f828b3df4233ae1bef45 | 7,296 | cpp | C++ | scopehal/VICPSocketTransport.cpp | x44203/scopehal | 984b38431cdf46c3e9c6055b164e03b4f7336a49 | [
"BSD-3-Clause"
] | null | null | null | scopehal/VICPSocketTransport.cpp | x44203/scopehal | 984b38431cdf46c3e9c6055b164e03b4f7336a49 | [
"BSD-3-Clause"
] | null | null | null | scopehal/VICPSocketTransport.cpp | x44203/scopehal | 984b38431cdf46c3e9c6055b164e03b4f7336a49 | [
"BSD-3-Clause"
] | 1 | 2020-08-02T14:20:52.000Z | 2020-08-02T14:20:52.000Z | /***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... | 33.62212 | 120 | 0.497396 | x44203 |
ed7c40908b43202032ee913067216d7c4c9be040 | 3,500 | cpp | C++ | core/src/codecs/default/DefaultIdBloomFilterFormat.cpp | yamasite/milvus | ee3a65a811b5487a92b39418540780fd19f378dc | [
"Apache-2.0"
] | 1 | 2021-10-01T18:16:34.000Z | 2021-10-01T18:16:34.000Z | core/src/codecs/default/DefaultIdBloomFilterFormat.cpp | yamasite/milvus | ee3a65a811b5487a92b39418540780fd19f378dc | [
"Apache-2.0"
] | null | null | null | core/src/codecs/default/DefaultIdBloomFilterFormat.cpp | yamasite/milvus | ee3a65a811b5487a92b39418540780fd19f378dc | [
"Apache-2.0"
] | 2 | 2020-03-02T05:16:57.000Z | 2020-03-04T06:05:55.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 42.682927 | 119 | 0.722571 | yamasite |
ed7c7062c6784c8205b51a5beed3e2bf783f8d3d | 1,865 | cpp | C++ | CK2ToEU4/Source/Mappers/RulerPersonalitiesMapper/RulerPersonalitiesMapper.cpp | bavbeerhall/CK2ToEU4 | a65edfb895b30e80af5bd7045dbfac7e2c5069e9 | [
"MIT"
] | 2 | 2020-04-25T15:14:10.000Z | 2020-04-25T18:47:00.000Z | CK2ToEU4/Source/Mappers/RulerPersonalitiesMapper/RulerPersonalitiesMapper.cpp | dlbuunk/CK2ToEU4 | 5c1755d17a36950d29a6c0ca13e454cb27b767bf | [
"MIT"
] | null | null | null | CK2ToEU4/Source/Mappers/RulerPersonalitiesMapper/RulerPersonalitiesMapper.cpp | dlbuunk/CK2ToEU4 | 5c1755d17a36950d29a6c0ca13e454cb27b767bf | [
"MIT"
] | null | null | null | #include "RulerPersonalitiesMapper.h"
#include "../../CK2World/Characters/Character.h"
#include "Log.h"
#include "ParserHelpers.h"
mappers::RulerPersonalitiesMapper::RulerPersonalitiesMapper()
{
LOG(LogLevel::Info) << "-> Parsing Ruler Personalities";
registerKeys();
parseFile("configurables/ruler_personalities.txt... | 33.303571 | 153 | 0.737265 | bavbeerhall |
1431b79db846a46616b69b588bd825b5c88e9056 | 7,415 | cxx | C++ | main/sc/source/ui/view/output3.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sc/source/ui/view/output3.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sc/source/ui/view/output3.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 27.565056 | 115 | 0.657047 | Grosskopf |
14338e16675bc71fcc0664b66520f21cb4ae551c | 7,233 | cc | C++ | components/sync_sessions/favicon_cache.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/sync_sessions/favicon_cache.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/sync_sessions/favicon_cache.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2013 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 "components/sync_sessions/favicon_cache.h"
#include <utility>
#include "base/bind.h"
#include "components/favicon/core/favicon_service.h"
#incl... | 32.728507 | 79 | 0.702198 | sarang-apps |
14344357127d3b9c72846d69dab9ecc638811cfc | 54,675 | cpp | C++ | engine/src/execution_kernels/BatchJoinProcessing.cpp | davisusanibar/blazingsql | ee3e7b0150489d6ee21ca680728be40a27f5125c | [
"Apache-2.0"
] | null | null | null | engine/src/execution_kernels/BatchJoinProcessing.cpp | davisusanibar/blazingsql | ee3e7b0150489d6ee21ca680728be40a27f5125c | [
"Apache-2.0"
] | null | null | null | engine/src/execution_kernels/BatchJoinProcessing.cpp | davisusanibar/blazingsql | ee3e7b0150489d6ee21ca680728be40a27f5125c | [
"Apache-2.0"
] | null | null | null | #include <string>
#include "BatchJoinProcessing.h"
#include "ExceptionHandling/BlazingThread.h"
#include "parser/expression_tree.hpp"
#include "utilities/CodeTimer.h"
#include <cudf/partitioning.hpp>
#include <cudf/join.hpp>
#include <cudf/stream_compaction.hpp>
#include <src/execution_kernels/LogicalFilter.h>
#include... | 44.379058 | 190 | 0.681536 | davisusanibar |
143b49ce98020dd1388d8a56d385721003bf40b5 | 1,573 | cpp | C++ | src/blockManagement/block.cpp | ivomachado/Trabalho1BD | 291a52ae8a24c7dc0ec2a87543b8260e1953c354 | [
"MIT"
] | 2 | 2019-05-16T13:52:40.000Z | 2019-05-31T20:05:18.000Z | src/blockManagement/block.cpp | ivomachado/Trabalho1BD | 291a52ae8a24c7dc0ec2a87543b8260e1953c354 | [
"MIT"
] | null | null | null | src/blockManagement/block.cpp | ivomachado/Trabalho1BD | 291a52ae8a24c7dc0ec2a87543b8260e1953c354 | [
"MIT"
] | null | null | null | #include "block.hpp"
#include "field.hpp"
#include "utils.hpp"
#include <cstdio>
#include <vector>
DiskBlock::DiskBlock(std::vector<Field>& recordFields)
{
m_header.m_data.emplace_back(Field::asInteger(0)); //Registros no bloco
m_header.m_data.emplace_back(Field::asInteger(0)); //Apontador para o de overflow
... | 26.661017 | 85 | 0.698029 | ivomachado |
143b6b698831ee4bf8d154e9568860a5354cbb5c | 2,764 | cc | C++ | shared/ortcustomops.cc | vvchernov/onnxruntime-extensions | cc858e831b719d31e4f34ee9adb391105b4ce26b | [
"MIT"
] | 59 | 2021-04-29T07:39:42.000Z | 2022-03-29T21:12:05.000Z | shared/ortcustomops.cc | vvchernov/onnxruntime-extensions | cc858e831b719d31e4f34ee9adb391105b4ce26b | [
"MIT"
] | 45 | 2021-05-12T08:32:58.000Z | 2022-03-29T21:11:59.000Z | shared/ortcustomops.cc | vvchernov/onnxruntime-extensions | cc858e831b719d31e4f34ee9adb391105b4ce26b | [
"MIT"
] | 18 | 2021-05-10T10:15:46.000Z | 2022-03-22T10:46:36.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <set>
#include "onnxruntime_extensions.h"
#include "ocos.h"
class ExternalCustomOps {
public:
ExternalCustomOps() {
}
static ExternalCustomOps& instance() {
static ExternalCustomOps g_instance;
r... | 24.678571 | 105 | 0.686686 | vvchernov |
143ca63aa83dc435341cc33e07f47564e0b7c809 | 8,593 | cpp | C++ | viceplugins/retrojsvice/src/vice_plugin_api.cpp | hackyannick/browservice | 10022849a15683e0f72a14aaee475b8daf13dbb1 | [
"MIT"
] | null | null | null | viceplugins/retrojsvice/src/vice_plugin_api.cpp | hackyannick/browservice | 10022849a15683e0f72a14aaee475b8daf13dbb1 | [
"MIT"
] | null | null | null | viceplugins/retrojsvice/src/vice_plugin_api.cpp | hackyannick/browservice | 10022849a15683e0f72a14aaee475b8daf13dbb1 | [
"MIT"
] | null | null | null | #include "context.hpp"
#include "../../../vice_plugin_api.h"
namespace {
using namespace retrojsvice;
const char* RetrojsviceVersion = "0.9.2.1";
template <typename T>
class GlobalCallback {
private:
struct Inner {
T callback;
void* data;
void (*destructorCallback)(void* data);
... | 24.481481 | 82 | 0.669615 | hackyannick |
143d80b09390681feecdc7626536dd75e5a15255 | 888 | cpp | C++ | libs/renderer/src/renderer/state/ffp/lighting/light/scoped.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/src/renderer/state/ffp/lighting/light/scoped.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/src/renderer/state/ffp/lighting/light/scoped.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 <sge/renderer/context/ffp.hpp>
#include <sge/renderer/context/ffp_ref.hpp>
#include <sge/r... | 37 | 87 | 0.726351 | cpreh |
143e49499bb3d2d02291ec8c84b33f38a67501e8 | 4,858 | cpp | C++ | modules/task_4/gushchin_a_simpson_method/simsponMethod.cpp | vla5924-practice/parallel-programming-2 | 4657fd9c02fdd11bbb64614f2aca04356ff45a60 | [
"BSD-3-Clause"
] | null | null | null | modules/task_4/gushchin_a_simpson_method/simsponMethod.cpp | vla5924-practice/parallel-programming-2 | 4657fd9c02fdd11bbb64614f2aca04356ff45a60 | [
"BSD-3-Clause"
] | null | null | null | modules/task_4/gushchin_a_simpson_method/simsponMethod.cpp | vla5924-practice/parallel-programming-2 | 4657fd9c02fdd11bbb64614f2aca04356ff45a60 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 Gushchin Artem
#include <algorithm>
#include <functional>
#include <numeric>
#include <vector>
#include "../../../3rdparty/unapproved/unapproved.h"
#include "../../../modules/task_4/gushchin_a_simpson_method/simpsonMethod.h"
namespace {
constexpr auto numOfThreads = 4;
}
double parallelSimpso... | 29.987654 | 76 | 0.591601 | vla5924-practice |
1444e3d97396e6cdfa54f9f2bc84a35e5748a8af | 753 | hpp | C++ | include/RED4ext/Types/generated/AI/ArgumentSerializableValue.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/AI/ArgumentSerializableValue.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/AI/ArgumentSerializableValue.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/Types/generated/AI/ArgumentDefinition.hpp>
#include <RED4ext/Types/generated/AI/ArgumentType.hpp>
namespace RED4ext
{
... | 25.965517 | 70 | 0.756972 | Cyberpunk-Extended-Development-Team |
14482f5853be44047d53bea9e416a8aa68add96f | 1,871 | cpp | C++ | kuangbin/1/i.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 2 | 2021-06-09T12:27:07.000Z | 2021-06-11T12:02:03.000Z | kuangbin/1/i.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | 1 | 2021-09-08T12:00:05.000Z | 2021-09-08T14:52:30.000Z | kuangbin/1/i.cpp | tusikalanse/acm-icpc | 20150f42752b85e286d812e716bb32ae1fa3db70 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
#include <cstring>
#include <queue>
using namespace std;
struct node
{
int x, y, vis, step;
char ch;
void init(){
vis = step = 0;
return;
}
}mp[12][12], temp;
int n, m;
int dir[4][2] = {1, 0, -1, 0, 0, 1, 0, -1};
int main(){
int T, ans, flag;
scanf("%d", &T);
for(int ... | 22.817073 | 99 | 0.397648 | tusikalanse |
14496db05408da977026af636f9ad71da45cec96 | 6,333 | cpp | C++ | deps/bcd-1.1/src/core/SamplesAccumulator.cpp | julescmay/LuxCore | 3a6233f37afaf064300f52854715c0ab9ca2103e | [
"Apache-2.0"
] | 826 | 2017-12-12T15:38:16.000Z | 2022-03-28T07:12:40.000Z | deps/bcd-1.1/src/core/SamplesAccumulator.cpp | julescmay/LuxCore | 3a6233f37afaf064300f52854715c0ab9ca2103e | [
"Apache-2.0"
] | 531 | 2017-12-03T17:21:06.000Z | 2022-03-20T19:22:11.000Z | deps/bcd-1.1/src/core/SamplesAccumulator.cpp | julescmay/LuxCore | 3a6233f37afaf064300f52854715c0ab9ca2103e | [
"Apache-2.0"
] | 133 | 2017-12-13T18:46:10.000Z | 2022-03-27T16:21:00.000Z | // This file is part of the reference implementation for the paper
// Bayesian Collaborative Denoising for Monte-Carlo Rendering
// Malik Boughida and Tamy Boubekeur.
// Computer Graphics Forum (Proc. EGSR 2017), vol. 36, no. 4, p. 137-153, 2017
//
// All rights reserved. Use of this source code is governed by a... | 37.473373 | 158 | 0.730144 | julescmay |
144a15106536480fac3c3a2f7bd5bca269c4dd10 | 3,760 | hpp | C++ | include/np/ndarray/static/NDArrayStaticIndexImpl.hpp | mgorshkov/np | 75c7adff38e7260371135839b547d5340f3ca367 | [
"MIT"
] | null | null | null | include/np/ndarray/static/NDArrayStaticIndexImpl.hpp | mgorshkov/np | 75c7adff38e7260371135839b547d5340f3ca367 | [
"MIT"
] | null | null | null | include/np/ndarray/static/NDArrayStaticIndexImpl.hpp | mgorshkov/np | 75c7adff38e7260371135839b547d5340f3ca367 | [
"MIT"
] | null | null | null | /*
C++ numpy-like template-based array implementation
Copyright (c) 2022 Mikhail Gorshkov (mikhail.gorshkov@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includi... | 41.777778 | 138 | 0.645213 | mgorshkov |
144a8f33863d0db6051f4bb1d962e1b188d68554 | 19,987 | cpp | C++ | externals/skia/third_party/externals/angle2/src/libANGLE/ContextState.cpp | terrajobst/linux-packaging-skiasharp | 47dbb2ff9ae01305b190f409ccea00b3b4f0bc79 | [
"MIT"
] | 1 | 2019-10-29T14:36:32.000Z | 2019-10-29T14:36:32.000Z | externals/skia/third_party/externals/angle2/src/libANGLE/ContextState.cpp | terrajobst/linux-packaging-skiasharp | 47dbb2ff9ae01305b190f409ccea00b3b4f0bc79 | [
"MIT"
] | 1 | 2017-06-18T00:25:03.000Z | 2017-11-29T16:01:48.000Z | externals/skia/third_party/externals/angle2/src/libANGLE/ContextState.cpp | terrajobst/linux-packaging-skiasharp | 47dbb2ff9ae01305b190f409ccea00b3b4f0bc79 | [
"MIT"
] | 5 | 2017-11-30T06:06:50.000Z | 2022-03-31T21:48:49.000Z | //
// Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Data.cpp: Container class for all GL relevant state, caps and objects
#include "libANGLE/ContextState.h"
#include "libANGLE/Framebuffe... | 31.675119 | 98 | 0.593986 | terrajobst |
144c4dcff9515405e869ec9fd60e94b33c61d40b | 5,771 | hpp | C++ | Engine/UserInterface/UICommon.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | Engine/UserInterface/UICommon.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | Engine/UserInterface/UICommon.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | //==============================================================================================================
//UserInterfaceCommon.hpp
//by Albert Chen Apr-18-2016.
//==============================================================================================================
#pragma once
#ifndef _included_UserI... | 34.556886 | 112 | 0.634032 | achen889 |
144ed7f11ac26f0182a4b081598643bb3c088ece | 18,652 | cc | C++ | src/swig_siqadconn/siqadconn.cc | samuelngsh/qpuanneal-sidb | ba0341a0ba852241de7c9a4e45f6a0a252bc48b4 | [
"Apache-2.0"
] | null | null | null | src/swig_siqadconn/siqadconn.cc | samuelngsh/qpuanneal-sidb | ba0341a0ba852241de7c9a4e45f6a0a252bc48b4 | [
"Apache-2.0"
] | null | null | null | src/swig_siqadconn/siqadconn.cc | samuelngsh/qpuanneal-sidb | ba0341a0ba852241de7c9a4e45f6a0a252bc48b4 | [
"Apache-2.0"
] | null | null | null | // @file: siqadconn.cc
// @author: Samuel
// @created: 2017.08.23
// @editted: 2019.01.23 - Nathan
// @license: Apache License 2.0
//
// @desc: Convenient functions for interacting with SiQAD
#include "siqadconn.h"
#include <iostream>
#include <stdexcept>
#include <boost/property_tree/ptree.hpp>
#include ... | 33.546763 | 154 | 0.670974 | samuelngsh |
1450fa120cf1fb191e79295c4e1457d208e06999 | 6,323 | cpp | C++ | src/aries/utility/Polygon.cpp | IAries/VEDO | 8268005d381268cafcf7024ff38fef91c6318ef4 | [
"BSD-3-Clause"
] | null | null | null | src/aries/utility/Polygon.cpp | IAries/VEDO | 8268005d381268cafcf7024ff38fef91c6318ef4 | [
"BSD-3-Clause"
] | null | null | null | src/aries/utility/Polygon.cpp | IAries/VEDO | 8268005d381268cafcf7024ff38fef91c6318ef4 | [
"BSD-3-Clause"
] | null | null | null | #include <aries/utility/Polygon.h>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
namespace aries
{
Polygon::Polygon()
{
}
const Polygon& Polygon::operator = (const Polygon& p)
{
_Vertex = p._Vertex;
_EdgeVertexSN = p._EdgeVertexSN;
_FaceVertexSN = p._FaceVertexS... | 25.393574 | 148 | 0.603037 | IAries |
1451044b38ed0271bae68880cb6828154f585caf | 3,193 | cpp | C++ | cpp/leetcode/57.insert-interval.cpp | Gerrard-YNWA/piece_of_code | ea8c9f05a453c893cc1f10e9b91d4393838670c1 | [
"MIT"
] | 1 | 2021-11-02T05:17:24.000Z | 2021-11-02T05:17:24.000Z | cpp/leetcode/57.insert-interval.cpp | Gerrard-YNWA/code | 546230593c33ff322d3205499fe17cd6a9a437c1 | [
"MIT"
] | null | null | null | cpp/leetcode/57.insert-interval.cpp | Gerrard-YNWA/code | 546230593c33ff322d3205499fe17cd6a9a437c1 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=57 lang=cpp
*
* [57] Insert Interval
*/
#include <iostream>
#include <vector>
using namespace std;
// @lc code=start
class Solution {
public:
vector<vector<int>> insert(vector<vector<int>>& intervals, vector<int>& newInterval) {
vector<vector<int>> res;
auto len = in... | 26.38843 | 90 | 0.57125 | Gerrard-YNWA |
1454823ac8ee1007ba45c1ec68c543110d228e7f | 165 | cpp | C++ | aten/src/TH/THTensorMath.cpp | DavidKo3/mctorch | 53ffe61763059677978b4592c8b2153b0c15428f | [
"BSD-3-Clause"
] | 1 | 2019-07-21T02:13:22.000Z | 2019-07-21T02:13:22.000Z | aten/src/TH/THTensorMath.cpp | DavidKo3/mctorch | 53ffe61763059677978b4592c8b2153b0c15428f | [
"BSD-3-Clause"
] | null | null | null | aten/src/TH/THTensorMath.cpp | DavidKo3/mctorch | 53ffe61763059677978b4592c8b2153b0c15428f | [
"BSD-3-Clause"
] | null | null | null | #include "THTensor.hpp"
#include "THVector.h"
#include "THBlas.h"
#include "THTensorDimApply.h"
#include "generic/THTensorMath.cpp"
#include "THGenerateAllTypes.h"
| 20.625 | 35 | 0.769697 | DavidKo3 |
145630173d390683f362c3890da6cdc56da711b8 | 17,862 | cpp | C++ | export/debug/windows/obj/src/openfl/display3D/textures/RectangleTexture.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | 1 | 2021-07-19T05:10:43.000Z | 2021-07-19T05:10:43.000Z | export/debug/windows/obj/src/openfl/display3D/textures/RectangleTexture.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/debug/windows/obj/src/openfl/display3D/textures/RectangleTexture.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_Exception
#include <haxe/Exception.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_backend_native_NativeOpenGLRenderContext
#include <lime/_interna... | 46.155039 | 279 | 0.716269 | bobisdabbing |
14584214e497f8362294b8cdfcc0de8369b1538f | 7,552 | hpp | C++ | dakota-6.3.0.Windows.x86/include/Teuchos_SerialDenseHelpers.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | null | null | null | dakota-6.3.0.Windows.x86/include/Teuchos_SerialDenseHelpers.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | null | null | null | dakota-6.3.0.Windows.x86/include/Teuchos_SerialDenseHelpers.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | 1 | 2022-03-18T14:13:14.000Z | 2022-03-18T14:13:14.000Z | // @HEADER
// ***********************************************************************
//
// Teuchos: Common Tools Package
// Copyright (2004) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of... | 40.385027 | 156 | 0.6875 | seakers |
145b245c696f7437af7e97ce08cf77482ea0acd9 | 878 | cpp | C++ | 1. Basic Recursion/All_Indices.cpp | bhavinvirani/Competitive-Programming-coding-ninjas | 5e50ae7ad3fc969a4970f91f8d895c986353bb71 | [
"MIT"
] | null | null | null | 1. Basic Recursion/All_Indices.cpp | bhavinvirani/Competitive-Programming-coding-ninjas | 5e50ae7ad3fc969a4970f91f8d895c986353bb71 | [
"MIT"
] | null | null | null | 1. Basic Recursion/All_Indices.cpp | bhavinvirani/Competitive-Programming-coding-ninjas | 5e50ae7ad3fc969a4970f91f8d895c986353bb71 | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int allIndexes(int input[], int size, int x, int output[]) {
if(size == 0)
return 0;
int ans=allIndexes(input, size-1, x, output);
if(input[size-1] == x)
{
output[ans]=size-1;
return ans+1;
}
retu... | 15.678571 | 60 | 0.477221 | bhavinvirani |
145e97372ee4f1c1ba22a5af56fca405ddd26554 | 4,930 | hpp | C++ | ocs2_thirdparty/include/cppad/local/record/put_var_atomic.hpp | grizzi/ocs2 | 4b78c4825deb8b2efc992fdbeef6fdb1fcca2345 | [
"BSD-3-Clause"
] | 126 | 2021-07-13T13:59:12.000Z | 2022-03-31T02:52:18.000Z | ocs2_thirdparty/include/cppad/local/record/put_var_atomic.hpp | grizzi/ocs2 | 4b78c4825deb8b2efc992fdbeef6fdb1fcca2345 | [
"BSD-3-Clause"
] | 27 | 2021-07-14T12:14:04.000Z | 2022-03-30T16:27:52.000Z | ocs2_thirdparty/include/cppad/local/record/put_var_atomic.hpp | grizzi/ocs2 | 4b78c4825deb8b2efc992fdbeef6fdb1fcca2345 | [
"BSD-3-Clause"
] | 55 | 2021-07-14T07:08:47.000Z | 2022-03-31T15:54:30.000Z | # ifndef CPPAD_LOCAL_RECORD_PUT_VAR_ATOMIC_HPP
# define CPPAD_LOCAL_RECORD_PUT_VAR_ATOMIC_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-19 Bradley M. Bell
CppAD is distributed under the terms of the
Eclipse Publ... | 32.649007 | 79 | 0.624341 | grizzi |
145ef6f82c06f734589059a9c68495765a8c8dc2 | 16,270 | cc | C++ | m3/syscall.cc | Barkhausen-Institut/M3-musl | d57e48aa0f99349c8f6e56fdcaea4588c8e858e9 | [
"MIT"
] | null | null | null | m3/syscall.cc | Barkhausen-Institut/M3-musl | d57e48aa0f99349c8f6e56fdcaea4588c8e858e9 | [
"MIT"
] | null | null | null | m3/syscall.cc | Barkhausen-Institut/M3-musl | d57e48aa0f99349c8f6e56fdcaea4588c8e858e9 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2021 Nils Asmussen, Barkhausen Institut
*
* This file is part of M3 (Microkernel-based SysteM for Heterogeneous Manycores).
*
* M3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Founda... | 34.543524 | 99 | 0.627474 | Barkhausen-Institut |
145f91f53a91148d68c786f4c75d6d4b4f28cbe1 | 349 | hpp | C++ | libs/gui/include/sge/gui/master_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/gui/include/sge/gui/master_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/gui/include/sge/gui/master_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_GUI_MASTER_FWD_HPP_INCLUDED
#define SGE_GUI_MASTER_FWD_HPP_INCLUDED
namespace sge::gui... | 20.529412 | 61 | 0.727794 | cpreh |
1460b9a061802c50f96cf0d13a7cff4b9c091db9 | 2,703 | cpp | C++ | src/routes/miners/MercuryMiner.cpp | xXNurioXx/gta-samp-driver | 9bd2b0863281cf5bd68a2b699217d3ef73afc3ca | [
"MIT"
] | 3 | 2020-07-12T15:57:39.000Z | 2020-09-06T11:00:06.000Z | src/routes/miners/MercuryMiner.cpp | xXNurioXx/gta-sa-self-driving-car | 9bd2b0863281cf5bd68a2b699217d3ef73afc3ca | [
"MIT"
] | null | null | null | src/routes/miners/MercuryMiner.cpp | xXNurioXx/gta-sa-self-driving-car | 9bd2b0863281cf5bd68a2b699217d3ef73afc3ca | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <Windows.h>
#include "../../drivers/Walker.cpp"
#include "../../interactions/CaptchaSolver.cpp"
#include "../../interactions/ChatManager.cpp"
#include "Miner.cpp"
class MercuryMiner {
private:
Movement *movement = new Movement();
ChatManager *chat = new ChatManager()... | 26.5 | 71 | 0.63781 | xXNurioXx |
1463a9000c0501599b36fc1dd05ddfa1bb9e47bd | 73,362 | cpp | C++ | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/propgrid/props.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/propgrid/props.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/propgrid/props.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
// Name: src/propgrid/props.cpp
// Purpose: Basic Property Classes
// Author: Jaakko Salli
// Modified by:
// Created: 2005-05-14
// RCS-ID: $Id$
// Copyright: (c) Jaakko Salli
// Licence: wxWindows licence
////... | 26.638344 | 113 | 0.543388 | wivlaro |
1466dc0b97163b96047137c89eac3c31e1a69ef2 | 9,418 | cc | C++ | randen_test.cc | google/randen | 717ced67384bde1dd371589566bbc294fc42e20a | [
"Apache-2.0"
] | 302 | 2018-04-13T19:10:20.000Z | 2022-01-07T19:46:29.000Z | randen_test.cc | google/randen | 717ced67384bde1dd371589566bbc294fc42e20a | [
"Apache-2.0"
] | 8 | 2018-05-03T00:02:43.000Z | 2020-04-17T13:27:52.000Z | randen_test.cc | google/randen | 717ced67384bde1dd371589566bbc294fc42e20a | [
"Apache-2.0"
] | 24 | 2018-05-03T01:00:42.000Z | 2020-10-13T17:00:41.000Z | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 29.616352 | 79 | 0.657995 | google |
1467992010877e2598b28a9a8bfb77bcf13c0d3d | 6,259 | cpp | C++ | rapid_generator/src/rapid_emitter.cpp | gavanderhoorn/abb_file_suite | 333a0d76ef229b09e9a6b36b5243ba6fa00bf5df | [
"Apache-2.0"
] | 4 | 2016-06-10T21:59:01.000Z | 2020-07-15T13:37:23.000Z | rapid_generator/src/rapid_emitter.cpp | gavanderhoorn/abb_file_suite | 333a0d76ef229b09e9a6b36b5243ba6fa00bf5df | [
"Apache-2.0"
] | null | null | null | rapid_generator/src/rapid_emitter.cpp | gavanderhoorn/abb_file_suite | 333a0d76ef229b09e9a6b36b5243ba6fa00bf5df | [
"Apache-2.0"
] | 5 | 2016-12-18T19:55:41.000Z | 2019-02-26T08:38:11.000Z | #include "rapid_generator/rapid_emitter.h"
#include <iostream>
bool rapid_emitter::emitRapidFile(std::ostream& os, const std::vector<TrajectoryPt>& points,
size_t startProcessMotion, size_t endProcessMotion,
const ProcessParams& params)
{
// Write ... | 29.663507 | 97 | 0.599776 | gavanderhoorn |
1468080503d3090a31225b98550633f2ecb4a482 | 16,622 | cpp | C++ | sdktools/debuggers/srcsrv/srcsrv.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | sdktools/debuggers/srcsrv/srcsrv.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | sdktools/debuggers/srcsrv/srcsrv.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 2002 Microsoft Corporation
Module Name:
srcsrv.cpp
Abstract:
This code obtaining version-controlled source.
Author:
patst
--*/
#include "pch.h"
BOOL gInitialized = false;
LIST_ENTRY gProcessList;
DWORD gProcessListCount = 0;
DWORD gOptions ... | 19.717675 | 82 | 0.511912 | npocmaka |
146932c4f16d0460bd1ae613ca1b5851eaed0b9a | 1,098 | cpp | C++ | Qualification_Round_2/Editorials/cutting_paper_tester.cpp | manojpandey/CodeSprint_India_2014 | 91ecfc9f565f20ae7517f556a0c414990a84e0d8 | [
"MIT"
] | null | null | null | Qualification_Round_2/Editorials/cutting_paper_tester.cpp | manojpandey/CodeSprint_India_2014 | 91ecfc9f565f20ae7517f556a0c414990a84e0d8 | [
"MIT"
] | null | null | null | Qualification_Round_2/Editorials/cutting_paper_tester.cpp | manojpandey/CodeSprint_India_2014 | 91ecfc9f565f20ae7517f556a0c414990a84e0d8 | [
"MIT"
] | 2 | 2015-07-25T11:44:07.000Z | 2019-07-14T11:33:48.000Z | #include<bits/stdc++.h>
using namespace std;
int mat[101][101];
void solve()
{
mat[0][0] = 0;
mat[0][1] = 0;
mat[1][0] = 0;
for(int i = 1; i <= 100; i++)
{
mat[i][1] = i;
mat[1][i] = i;
}
for(int i = 2; i <= 100; i++)
{
for(int j = 2; j <= 100; j++)
{
... | 18.931034 | 52 | 0.264117 | manojpandey |
146b2ca80615a94883d57bae62be453d6153da8d | 3,825 | hpp | C++ | src/base/subscriber/EphemWriterSPK.hpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | src/base/subscriber/EphemWriterSPK.hpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | src/base/subscriber/EphemWriterSPK.hpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | //$Id$
//------------------------------------------------------------------------------
// EphemWriterSPK
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Government as r... | 37.135922 | 91 | 0.614118 | IncompleteWorlds |
146bc487becac75c3f0629a658fd1aa5d58c7bcf | 13,052 | cpp | C++ | src/SwingCompiler.cpp | SilverJun/SWING | 0a9c35d74b3ec75d349a14a59e4d731dbd016069 | [
"MIT"
] | 8 | 2017-07-17T16:12:20.000Z | 2021-02-20T13:18:33.000Z | src/SwingCompiler.cpp | SilverJun/SWING | 0a9c35d74b3ec75d349a14a59e4d731dbd016069 | [
"MIT"
] | null | null | null | src/SwingCompiler.cpp | SilverJun/SWING | 0a9c35d74b3ec75d349a14a59e4d731dbd016069 | [
"MIT"
] | 1 | 2020-02-19T06:51:03.000Z | 2020-02-19T06:51:03.000Z | #include "SwingCompiler.h"
#include <fstream>
#include <sstream>
#include "llvm/Support/TargetSelect.h"
#include "Type.h"
#include "Method.h"
#include "StructType.h"
#include "ProtocolType.h"
#include <iostream>
#include "Error.h"
#include "FunctionDeclAST.h"
namespace swing
{
std::unique_ptr<SwingCompiler> SwingC... | 31.990196 | 213 | 0.690699 | SilverJun |
146c552bb08d097cab3c561a85b5ec36e7bfe2d8 | 4,482 | cc | C++ | sdk/test/metrics/histogram_aggregator_test.cc | padmaja-nadkarni/opentelemetry-cpp | 4751ae5a29e5eeed1b775b7c337bdbe294165346 | [
"Apache-2.0"
] | 2 | 2020-06-26T15:26:35.000Z | 2020-06-28T16:47:35.000Z | sdk/test/metrics/histogram_aggregator_test.cc | padmaja-nadkarni/opentelemetry-cpp | 4751ae5a29e5eeed1b775b7c337bdbe294165346 | [
"Apache-2.0"
] | 3 | 2020-07-08T22:36:00.000Z | 2020-08-26T16:21:07.000Z | sdk/test/metrics/histogram_aggregator_test.cc | padmaja-nadkarni/opentelemetry-cpp | 4751ae5a29e5eeed1b775b7c337bdbe294165346 | [
"Apache-2.0"
] | 4 | 2020-05-27T22:08:57.000Z | 2020-05-29T19:13:11.000Z | #include "opentelemetry/sdk/metrics/aggregator/histogram_aggregator.h"
#include <gtest/gtest.h>
#include <iostream>
#include <numeric>
#include <thread>
// #include <chrono>
namespace metrics_api = opentelemetry::metrics;
OPENTELEMETRY_BEGIN_NAMESPACE
namespace sdk
{
namespace metrics
{
// Test updating with a unif... | 26.678571 | 99 | 0.676261 | padmaja-nadkarni |
146f86d183582cec69a730b2040e6f7acad0f3f1 | 2,485 | cc | C++ | Source/Plugins/SubsystemPlugins/BladeGame/source/interface_imp/GameWorldData.cc | OscarGame/blade | 6987708cb011813eb38e5c262c7a83888635f002 | [
"MIT"
] | 146 | 2018-12-03T08:08:17.000Z | 2022-03-21T06:04:06.000Z | Source/Plugins/SubsystemPlugins/BladeGame/source/interface_imp/GameWorldData.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 1 | 2019-01-18T03:35:49.000Z | 2019-01-18T03:36:08.000Z | Source/Plugins/SubsystemPlugins/BladeGame/source/interface_imp/GameWorldData.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 31 | 2018-12-03T10:32:43.000Z | 2021-10-04T06:31:44.000Z | /********************************************************************
created: 2011/05/03
filename: GameWorldData.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#include "GameWorldData.h"
#include <interface/public/graphics/IGraphicsScene.h... | 36.014493 | 98 | 0.426559 | OscarGame |
147078aff1c71200db88e86e829c6b4749d374c0 | 600 | cpp | C++ | All Codes/URI_1074.cpp | Habibu-R-ahman/URI-Online-Judge-Solutions | 62aa23f4bfcf9ea2a1054451c6380ed827816b3c | [
"MIT"
] | 12 | 2020-03-05T15:18:25.000Z | 2022-01-29T18:38:25.000Z | All Codes/URI_1074.cpp | junaid359/URI-Online-Judge-Solutions | f4f10c7e0649d233ce7757cbe7cb225b7845c5af | [
"MIT"
] | null | null | null | All Codes/URI_1074.cpp | junaid359/URI-Online-Judge-Solutions | f4f10c7e0649d233ce7757cbe7cb225b7845c5af | [
"MIT"
] | 19 | 2020-01-08T18:04:28.000Z | 2021-08-18T12:27:41.000Z | #include <iostream>
using namespace std;
int main() {
int i,j,k[10000];
cin >> j;
for (i=0; i<j; i++) {
cin >> k[i];
}
for (i=0; i<j; i++) {
if(k[i] == 0)
cout << "NULL" << endl;
else if (k[i]%2 == 0) {
if (k[i]>0)
cout << "EVEN POSITIVE" <... | 18.181818 | 48 | 0.358333 | Habibu-R-ahman |
1471da20d296f07168d10e313d63602c9ddc7654 | 15,291 | cpp | C++ | OsirisInventory/Memory.cpp | danielkrupinski/OsirisInventory | e4716de9b05d0c257a1733d96c503e64104b3657 | [
"MIT"
] | 31 | 2021-07-08T12:24:40.000Z | 2022-03-07T11:24:53.000Z | OsirisInventory/Memory.cpp | danielkrupinski/OsirisInventory | e4716de9b05d0c257a1733d96c503e64104b3657 | [
"MIT"
] | 21 | 2021-07-21T11:39:16.000Z | 2022-03-24T02:03:26.000Z | OsirisInventory/Memory.cpp | danielkrupinski/OsirisInventory | e4716de9b05d0c257a1733d96c503e64104b3657 | [
"MIT"
] | 8 | 2021-12-05T11:29:21.000Z | 2022-03-06T06:21:51.000Z | #include <algorithm>
#include <array>
#include <cassert>
#include <cstring>
#include <limits>
#include <string_view>
#include <utility>
#ifdef _WIN32
#include <Windows.h>
#include <Psapi.h>
#elif __linux__
#include <fcntl.h>
#include <link.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#endif
#inc... | 62.158537 | 207 | 0.703943 | danielkrupinski |
147465c78b977cc2e28b1c08ea6895a140727e1c | 1,488 | cpp | C++ | GameExample/PlayerAction.cpp | alwayssmile11a1/MultiplayerGameServer | cd4227ecc5fe1b44d427bcbd76c050a8130d2200 | [
"MIT"
] | null | null | null | GameExample/PlayerAction.cpp | alwayssmile11a1/MultiplayerGameServer | cd4227ecc5fe1b44d427bcbd76c050a8130d2200 | [
"MIT"
] | null | null | null | GameExample/PlayerAction.cpp | alwayssmile11a1/MultiplayerGameServer | cd4227ecc5fe1b44d427bcbd76c050a8130d2200 | [
"MIT"
] | null | null | null | #include "PlayerAction.h"
PlayerAction::PlayerAction()
{
}
PlayerAction::PlayerAction(float timeStamp, float deltaTime, const Vector2 &velocity, bool isShooting)
{
mTimeStamp = timeStamp;
mDeltaTime = deltaTime;
mVelocity = velocity;
mIsShooting = isShooting;
}
PlayerAction::~PlayerAction()
{
}
void PlayerActi... | 19.84 | 126 | 0.763441 | alwayssmile11a1 |
14749a8f8727a99ba85d39c6a9290b16a9d47a72 | 21,135 | cpp | C++ | iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.cpp | L-Net-1992/iree | a9ce2574f11ce811c07c21b49f679667d66f7798 | [
"Apache-2.0"
] | null | null | null | iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.cpp | L-Net-1992/iree | a9ce2574f11ce811c07c21b49f679667d66f7798 | [
"Apache-2.0"
] | null | null | null | iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.cpp | L-Net-1992/iree | a9ce2574f11ce811c07c21b49f679667d66f7798 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree/compiler/Dialect/HAL/Target/LLVM/LibraryBuilder.h"
#include "llvm/IR/IRBuilder.h"... | 41.118677 | 80 | 0.59049 | L-Net-1992 |
14759b72b661dd3dc94bee2b69b06a9d624bbf83 | 3,324 | cpp | C++ | src/common/buses/network/TCPIPv4SocketBus.cpp | udyni/seabreeze | 3d3934f8f0df61c11cef70516cf62a8472cab974 | [
"MIT"
] | null | null | null | src/common/buses/network/TCPIPv4SocketBus.cpp | udyni/seabreeze | 3d3934f8f0df61c11cef70516cf62a8472cab974 | [
"MIT"
] | null | null | null | src/common/buses/network/TCPIPv4SocketBus.cpp | udyni/seabreeze | 3d3934f8f0df61c11cef70516cf62a8472cab974 | [
"MIT"
] | 1 | 2020-07-03T08:36:47.000Z | 2020-07-03T08:36:47.000Z | /***************************************************//**
* @file TCPIPv4SocketBus.cpp
* @date February 2016
* @author Ocean Optics, Inc.
*
* LICENSE:
*
* SeaBreeze Copyright (C) 2016, Ocean Optics Inc
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software an... | 32.588235 | 88 | 0.679904 | udyni |
1477521f893597df15fa83f56d2eea3420fdbb00 | 4,296 | cpp | C++ | third-party/casadi/casadi/solvers/linsol_ldl.cpp | dbdxnuliba/mit-biomimetics_Cheetah | f3b0c0f6a3835d33b7f2f345f00640b3fc256388 | [
"MIT"
] | 8 | 2020-02-18T09:07:48.000Z | 2021-12-25T05:40:02.000Z | third-party/casadi/casadi/solvers/linsol_ldl.cpp | geekfeiw/Cheetah-Software | f3b0c0f6a3835d33b7f2f345f00640b3fc256388 | [
"MIT"
] | null | null | null | third-party/casadi/casadi/solvers/linsol_ldl.cpp | geekfeiw/Cheetah-Software | f3b0c0f6a3835d33b7f2f345f00640b3fc256388 | [
"MIT"
] | 13 | 2019-08-25T12:32:06.000Z | 2022-03-31T02:38:12.000Z | /*
* This file is part of CasADi.
*
* CasADi -- A symbolic framework for dynamic optimization.
* Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl,
* K.U. Leuven. All rights reserved.
* Copyright (C) 2011-2014 Greg Horn
*
* CasADi is free software; you ... | 30.906475 | 96 | 0.635242 | dbdxnuliba |
1477b1da3f5a6f2bf0785334beaf19fdd22eacc1 | 1,609 | hpp | C++ | header/p6_side_panel.hpp | Meta-chan/P6 | 2323f3f12894d2eb01a777643f69301a368f9c69 | [
"MIT"
] | null | null | null | header/p6_side_panel.hpp | Meta-chan/P6 | 2323f3f12894d2eb01a777643f69301a368f9c69 | [
"MIT"
] | null | null | null | header/p6_side_panel.hpp | Meta-chan/P6 | 2323f3f12894d2eb01a777643f69301a368f9c69 | [
"MIT"
] | null | null | null | /*
This software is distributed under MIT License, which means:
- Do whatever you want
- Please keep this notice and include the license file to your project
- I provide no warranty
Created by Kyrylo Sovailo (github.com/Meta-chan, k.sovailo@gmail.com)
Reinventing bicycles since 2020
*/
#ifndef P6_SIDE_PANEL
... | 26.377049 | 93 | 0.697328 | Meta-chan |
147907f259fe06961c980374d4046b8f6e8cc18e | 6,733 | cpp | C++ | ds2/lib_demonsaw/component/router/router_idle_component.cpp | demonsaw/Code | b036d455e9e034d7fd178e63d5e992242d62989a | [
"MIT"
] | 132 | 2017-03-22T03:46:38.000Z | 2022-03-08T15:08:16.000Z | ds2/lib_demonsaw/component/router/router_idle_component.cpp | demonsaw/Code | b036d455e9e034d7fd178e63d5e992242d62989a | [
"MIT"
] | 4 | 2017-04-06T17:46:10.000Z | 2018-08-08T18:27:59.000Z | ds2/lib_demonsaw/component/router/router_idle_component.cpp | demonsaw/Code | b036d455e9e034d7fd178e63d5e992242d62989a | [
"MIT"
] | 30 | 2017-03-26T22:38:17.000Z | 2021-11-21T20:50:17.000Z | //
// The MIT License(MIT)
//
// Copyright(c) 2014 Demonsaw 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 restriction, including without limitation the rights
// to use, c... | 23.297578 | 111 | 0.655428 | demonsaw |
147b12c0fc00d5ec514f907043bb5151e513d59b | 12,821 | cc | C++ | tests/test_csp.cc | RReverser/libwebp2 | c90b5b476004c9a98731ae1c175cebab5de50fbf | [
"Apache-2.0"
] | 4 | 2020-11-10T17:46:57.000Z | 2022-03-22T06:24:17.000Z | tests/test_csp.cc | RReverser/libwebp2 | c90b5b476004c9a98731ae1c175cebab5de50fbf | [
"Apache-2.0"
] | null | null | null | tests/test_csp.cc | RReverser/libwebp2 | c90b5b476004c9a98731ae1c175cebab5de50fbf | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 38.969605 | 80 | 0.566492 | RReverser |
148014ae662c05e88edbc8c6a03d58093a3ed202 | 544 | hpp | C++ | src/ssmkit/map/transition_matrix.hpp | vahid-bastani/ssmpack | 68aed98b1c661a7d1c9e5610656de57f6a967532 | [
"MIT"
] | 7 | 2016-07-08T09:18:49.000Z | 2018-03-10T06:46:55.000Z | src/ssmkit/map/transition_matrix.hpp | vahidbas/ssmkit | 68aed98b1c661a7d1c9e5610656de57f6a967532 | [
"MIT"
] | null | null | null | src/ssmkit/map/transition_matrix.hpp | vahidbas/ssmkit | 68aed98b1c661a7d1c9e5610656de57f6a967532 | [
"MIT"
] | 1 | 2018-01-03T17:46:08.000Z | 2018-01-03T17:46:08.000Z | #ifndef SSMPACK_MODEL_TRANSITION_MATRIX_HPP
#define SSMPACK_MODEL_TRANSITION_MATRIX_HPP
#include <armadillo>
namespace ssmkit {
namespace map {
struct TransitionMatrix {
using TParameter = arma::vec;
using TConditionVAR = int;
TransitionMatrix(arma::mat t) : transfer{t} {}
// should not be overloaded, sho... | 20.148148 | 55 | 0.744485 | vahid-bastani |
14803394483eeb5f488df31c1303f1b9c945da08 | 77 | cpp | C++ | atmega256_fw/src/main.cpp | chcbaram/avr_vscode | 7d85b98b7e6d4fc4cbbe34985d8bc8a8cdc88f6b | [
"MIT"
] | null | null | null | atmega256_fw/src/main.cpp | chcbaram/avr_vscode | 7d85b98b7e6d4fc4cbbe34985d8bc8a8cdc88f6b | [
"MIT"
] | null | null | null | atmega256_fw/src/main.cpp | chcbaram/avr_vscode | 7d85b98b7e6d4fc4cbbe34985d8bc8a8cdc88f6b | [
"MIT"
] | null | null | null | #include "main.h"
int main(void)
{
hwInit();
apInit();
apMain();
} | 6.416667 | 17 | 0.532468 | chcbaram |
14816e9e9fa9b75957aa4f9cb3d8508f9951b731 | 1,691 | cc | C++ | mindspore/ccsrc/mindrecord/meta/shard_shuffle.cc | TommyLike/mindspore | 401dabb786a9097d6dd84f391657d266b04e9a37 | [
"Apache-2.0"
] | 1 | 2020-05-23T07:08:46.000Z | 2020-05-23T07:08:46.000Z | mindspore/ccsrc/mindrecord/meta/shard_shuffle.cc | liyong126/mindspore | 930a1fb0a8fa9432025442c4f4732058bb7af592 | [
"Apache-2.0"
] | 7 | 2020-03-30T08:31:56.000Z | 2020-04-01T09:54:39.000Z | mindspore/ccsrc/mindrecord/meta/shard_shuffle.cc | liyong126/mindspore | 930a1fb0a8fa9432025442c4f4732058bb7af592 | [
"Apache-2.0"
] | 1 | 2020-03-30T17:07:43.000Z | 2020-03-30T17:07:43.000Z | /**
* Copyright 2019 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 36.76087 | 118 | 0.715553 | TommyLike |
1487ff58e867aa7b2353c2e6e82ed1a0ccbe752b | 1,551 | cpp | C++ | examples/GLUT/28-voxel-basic/WifiSend.cpp | zwells1/HapticMoCap | 0f102834b44f6f38473145da4e39090fafa126b2 | [
"BSD-3-Clause"
] | null | null | null | examples/GLUT/28-voxel-basic/WifiSend.cpp | zwells1/HapticMoCap | 0f102834b44f6f38473145da4e39090fafa126b2 | [
"BSD-3-Clause"
] | null | null | null | examples/GLUT/28-voxel-basic/WifiSend.cpp | zwells1/HapticMoCap | 0f102834b44f6f38473145da4e39090fafa126b2 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <sstream>
#include <boost/array.hpp>
#include <boost/asio.hpp>
using boost::asio::ip::udp;
class UDPClient
{
public:
UDPClient(
boost::asio::io_service& io_service,
const std::string& host,
const std::string& port
) : io_service_(io_service), socket_(io_service, udp::endpoint(udp:... | 18.247059 | 80 | 0.630561 | zwells1 |
148a11cc081330fedc9f84fb16329c92cf516990 | 5,126 | cpp | C++ | src/internal/src/EqualPowerPanner.cpp | doc22940/LabSound | 0f2379661dc9d0c2faa798a1be16791803c12621 | [
"BSD-2-Clause"
] | null | null | null | src/internal/src/EqualPowerPanner.cpp | doc22940/LabSound | 0f2379661dc9d0c2faa798a1be16791803c12621 | [
"BSD-2-Clause"
] | null | null | null | src/internal/src/EqualPowerPanner.cpp | doc22940/LabSound | 0f2379661dc9d0c2faa798a1be16791803c12621 | [
"BSD-2-Clause"
] | null | null | null | // License: BSD 2 Clause
// Copyright (C) 2010, Google Inc. All rights reserved.
// Copyright (C) 2015+, The LabSound Authors. All rights reserved.
#include "LabSound/core/AudioBus.h"
#include "LabSound/core/Mixing.h"
#include "LabSound/core/Macros.h"
#include "internal/EqualPowerPanner.h"
#include "internal/AudioUti... | 37.144928 | 177 | 0.619782 | doc22940 |
148ada794dcc9576f63010996a7f11980bd914bf | 43,862 | cpp | C++ | src/pke/lib/bfvrnsB-dcrtpoly-impl.cpp | fuz-woo/PALISADE | bc70288323c45d3b260c998eba79bc93a1274501 | [
"BSD-2-Clause"
] | 6 | 2019-03-19T04:12:00.000Z | 2022-01-27T11:23:01.000Z | src/pke/lib/bfvrnsB-dcrtpoly-impl.cpp | fuz-woo/PALISADE | bc70288323c45d3b260c998eba79bc93a1274501 | [
"BSD-2-Clause"
] | null | null | null | src/pke/lib/bfvrnsB-dcrtpoly-impl.cpp | fuz-woo/PALISADE | bc70288323c45d3b260c998eba79bc93a1274501 | [
"BSD-2-Clause"
] | 3 | 2019-04-30T07:07:50.000Z | 2022-01-27T06:59:53.000Z | /*
* @file bfvrnsB-dcrtpoly-impl.cpp - dcrtpoly implementation for the BEHZ variant of the BFV scheme.
* @author TPOC: palisade@njit.edu
*
* @copyright Copyright (c) 2017, New Jersey Institute of Technology (NJIT)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without modifica... | 36.070724 | 195 | 0.748301 | fuz-woo |
148c3fa34e07e1108761e70b7b478d15353aa5d8 | 19,238 | cpp | C++ | src/framework/shared/enhancedverif/verifier.cpp | codeclimate-testing/Windows-Driver-Frameworks | ece2036dbfa4f5e04e9376e8ceae4c761c9c6b08 | [
"MIT"
] | null | null | null | src/framework/shared/enhancedverif/verifier.cpp | codeclimate-testing/Windows-Driver-Frameworks | ece2036dbfa4f5e04e9376e8ceae4c761c9c6b08 | [
"MIT"
] | null | null | null | src/framework/shared/enhancedverif/verifier.cpp | codeclimate-testing/Windows-Driver-Frameworks | ece2036dbfa4f5e04e9376e8ceae4c761c9c6b08 | [
"MIT"
] | 1 | 2018-07-11T13:52:50.000Z | 2018-07-11T13:52:50.000Z | /*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
Verifier.cpp
Abstract:
This file has implementation of verifier support routines
Author:
Environment:
Shared (Kernel and user)
Revision History:
--*/
#include "vfpriv.hpp"
extern "C"
{
extern WDFVERSION WdfVersion... | 29.551459 | 100 | 0.637488 | codeclimate-testing |
148c8de06159112ab784c00a158751e7407616e8 | 1,758 | hpp | C++ | Runtime/Character/CBoneTracking.hpp | jackoalan/urde | 413483a996805a870f002324ee46cfc123f4df06 | [
"MIT"
] | null | null | null | Runtime/Character/CBoneTracking.hpp | jackoalan/urde | 413483a996805a870f002324ee46cfc123f4df06 | [
"MIT"
] | null | null | null | Runtime/Character/CBoneTracking.hpp | jackoalan/urde | 413483a996805a870f002324ee46cfc123f4df06 | [
"MIT"
] | null | null | null | #pragma once
#include <optional>
#include <string_view>
#include "Runtime/RetroTypes.hpp"
#include "Runtime/Character/CSegId.hpp"
#include <zeus/CQuaternion.hpp>
#include <zeus/CTransform.hpp>
#include <zeus/CVector3f.hpp>
namespace urde {
class CAnimData;
class CStateManager;
class CBodyController;
enum class EBo... | 27.904762 | 96 | 0.721274 | jackoalan |
1496132e73214ad33317fd3841a44801b373584c | 687 | hpp | C++ | brain/plugins/naive/NaiveDevelopment.hpp | danielrh/elysia | fb462e02ca3bada3b9e904cbc50684b5b72ec50d | [
"BSD-3-Clause"
] | 9 | 2015-08-08T05:16:45.000Z | 2022-02-09T09:53:22.000Z | brain/plugins/naive/NaiveDevelopment.hpp | danielrh/elysia | fb462e02ca3bada3b9e904cbc50684b5b72ec50d | [
"BSD-3-Clause"
] | null | null | null | brain/plugins/naive/NaiveDevelopment.hpp | danielrh/elysia | fb462e02ca3bada3b9e904cbc50684b5b72ec50d | [
"BSD-3-Clause"
] | 3 | 2015-10-21T11:11:11.000Z | 2021-01-11T19:08:29.000Z |
#include "StandardDevelopment.hpp"
namespace Elysia {
class NaiveDevelopment: public StandardDevelopment<NaiveDevelopment> {
float mDevelopmentSignal;
float mBestDevelopmentSignal;
void passDevelopmentSignal(CellComponent*component,
float signalWeight);
public:
NaiveDevel... | 32.714286 | 70 | 0.660844 | danielrh |
1496c352517dac9bf341b3849eaf4cdc8f9bc6bb | 36,851 | cpp | C++ | ckafka/src/v20190819/model/InstanceAttributesResponse.cpp | TencentCloud/tencentcloud-sdk-cpp | 896da198abe6f75c0dc90901131d709143186b77 | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | ckafka/src/v20190819/model/InstanceAttributesResponse.cpp | TencentCloud/tencentcloud-sdk-cpp | 896da198abe6f75c0dc90901131d709143186b77 | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | ckafka/src/v20190819/model/InstanceAttributesResponse.cpp | TencentCloud/tencentcloud-sdk-cpp | 896da198abe6f75c0dc90901131d709143186b77 | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 30.008958 | 165 | 0.686494 | TencentCloud |
149bb0962c3483d3de9ae32d6163b3a4678fb0c4 | 17,022 | cpp | C++ | Plugins/DotNET/DotNETExports.cpp | Lord-Nightmare/unified | 4b6c7351f1389b741667abe03f950313dcde8e1c | [
"MIT"
] | null | null | null | Plugins/DotNET/DotNETExports.cpp | Lord-Nightmare/unified | 4b6c7351f1389b741667abe03f950313dcde8e1c | [
"MIT"
] | null | null | null | Plugins/DotNET/DotNETExports.cpp | Lord-Nightmare/unified | 4b6c7351f1389b741667abe03f950313dcde8e1c | [
"MIT"
] | null | null | null | #include "nwnx.hpp"
#include "API/CNWSObject.hpp"
#include "API/CAppManager.hpp"
#include "API/CServerAIMaster.hpp"
#include "API/CServerExoApp.hpp"
#include "API/CVirtualMachine.hpp"
#include "API/CNWVirtualMachineCommands.hpp"
#include "API/CWorldTimer.hpp"
#include <dlfcn.h>
using namespace NWNXLib;
using namespa... | 30.560144 | 123 | 0.663024 | Lord-Nightmare |
149da88c83d91c82c5e6ce254eedb3cdc0cf1e1b | 1,951 | cpp | C++ | Mastermind/src/GameState.cpp | olafur-skulason/CodeExamples | 2365bb075695e31ca0d006f2e57479e2c3c67ef3 | [
"MIT"
] | null | null | null | Mastermind/src/GameState.cpp | olafur-skulason/CodeExamples | 2365bb075695e31ca0d006f2e57479e2c3c67ef3 | [
"MIT"
] | null | null | null | Mastermind/src/GameState.cpp | olafur-skulason/CodeExamples | 2365bb075695e31ca0d006f2e57479e2c3c67ef3 | [
"MIT"
] | null | null | null | /*
* GameState.cpp
*
* Created on: Feb 28, 2020
* Author: olafur
*/
#include "../inc/GameState.h"
#include <iostream>
GameState::GameState(unsigned int codeLength, unsigned int attemptLimit, ColorSelector * colorSelector) :
color_selector(colorSelector),
code_length(codeLength),
attempt_limit(attemptLi... | 18.580952 | 105 | 0.655561 | olafur-skulason |
149ddcab7d584c53e3ceaf9d30b61fb03d6f5a3f | 725 | hpp | C++ | tc_alt.hpp | arbrk1/typeclasses_cpp | 7bb180f0daaa7dfeb84387f9913c99b99702be2c | [
"MIT"
] | 10 | 2018-11-16T14:34:50.000Z | 2021-11-25T04:37:39.000Z | tc_alt.hpp | arbrk1/typeclasses_cpp | 7bb180f0daaa7dfeb84387f9913c99b99702be2c | [
"MIT"
] | null | null | null | tc_alt.hpp | arbrk1/typeclasses_cpp | 7bb180f0daaa7dfeb84387f9913c99b99702be2c | [
"MIT"
] | 3 | 2020-06-01T14:22:06.000Z | 2021-11-22T20:26:24.000Z | // An alternative to the tc.hpp
// arbrk1@gmail.com, 2018
#ifndef _TC_ALT_HPP_
#define _TC_ALT_HPP_
#define TC_DEF(name, params, body...) \
template< params > struct name; \
template< params > struct _tc_methods_##name body;
#define TC_INSTANCE(name, params, body...) \
struct name< params > : _tc_method... | 26.851852 | 77 | 0.706207 | arbrk1 |
14a109f240ab686df20563c75af7ef82bf10b4ee | 2,818 | cpp | C++ | accept.cpp | theProgrammerDavid/Board-Project | 93ce38b17687c3cd3d24ef22b0d0b4cffacd1bd0 | [
"MIT"
] | 1 | 2020-05-26T07:38:15.000Z | 2020-05-26T07:38:15.000Z | accept.cpp | theProgrammerDavid/Board-Project | 93ce38b17687c3cd3d24ef22b0d0b4cffacd1bd0 | [
"MIT"
] | null | null | null | accept.cpp | theProgrammerDavid/Board-Project | 93ce38b17687c3cd3d24ef22b0d0b4cffacd1bd0 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include "accept.h"
/** int l and int space are predefined values.
*
* These values are predefined elsewhere in the program (main.cpp)
* to help with alignment and table making
* \return
*
*/
extern int l;
extern int space;
int accept::enterInt()
{
int temp_var;
while(1)
{
... | 17.72327 | 82 | 0.465224 | theProgrammerDavid |
14a82bcc38ed891264d75c019e0e268300dc7bd6 | 2,709 | cpp | C++ | tools/CustomPasteState/pasteHook.cpp | matcool/BetterEdit | aaf3f37b4c0d7b6d8298cd099d8bd2d9699cb68f | [
"MIT"
] | null | null | null | tools/CustomPasteState/pasteHook.cpp | matcool/BetterEdit | aaf3f37b4c0d7b6d8298cd099d8bd2d9699cb68f | [
"MIT"
] | null | null | null | tools/CustomPasteState/pasteHook.cpp | matcool/BetterEdit | aaf3f37b4c0d7b6d8298cd099d8bd2d9699cb68f | [
"MIT"
] | null | null | null | #include "../../BetterEdit.hpp"
#include "PasteLayer.hpp"
using namespace gdmake;
GDMAKE_HOOK(0x884c0)
void __fastcall EditorUI_onPasteState(gd::EditorUI* self, edx_t edx, cocos2d::CCObject* pSender) {
if (BetterEdit::sharedState()->getPasteStateEnabled())
PasteLayer::create()->show();
else
GD... | 41.676923 | 110 | 0.663344 | matcool |
14a8b78c1f826693f60734320b02233323f1a920 | 2,763 | cpp | C++ | firmware/utility/ServoFirmata.cpp | fgu-cas/arenomat | 81954e82f58178586a31886136d3047cf5a0c4d2 | [
"MIT"
] | null | null | null | firmware/utility/ServoFirmata.cpp | fgu-cas/arenomat | 81954e82f58178586a31886136d3047cf5a0c4d2 | [
"MIT"
] | null | null | null | firmware/utility/ServoFirmata.cpp | fgu-cas/arenomat | 81954e82f58178586a31886136d3047cf5a0c4d2 | [
"MIT"
] | null | null | null | /*
ServoFirmata.cpp - Firmata library
Copyright (C) 2006-2008 Hans-Christoph Steiner. All rights reserved.
Copyright (C) 2010-2011 Paul Stoffregen. All rights reserved.
Copyright (C) 2009 Shigeru Kobayashi. All rights reserved.
Copyright (C) 2009-2011 Jeff Hoefs. All rights reserved.
Copyright (C) 2013 ... | 24.026087 | 80 | 0.661962 | fgu-cas |
14ab7a328a5431e82e49e9d14d89cb901a13213b | 732 | hpp | C++ | source/framework/algorithm/include/lue/framework/algorithm/default_policies/tan.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 1 | 2019-04-14T15:51:12.000Z | 2019-04-14T15:51:12.000Z | source/framework/algorithm/include/lue/framework/algorithm/default_policies/tan.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/framework/algorithm/include/lue/framework/algorithm/default_policies/tan.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #pragma once
#include "lue/framework/algorithm/tan.hpp"
namespace lue {
namespace policy::tan {
template<
typename Element>
using DefaultPolicies = policy::DefaultPolicies<
AllValuesWithinDomain<Element>,
OutputElements<Element>,
InputElements<Eleme... | 22.181818 | 67 | 0.584699 | pcraster |
14ae7a0477b0d332f10a0616ce21b5df60e761b9 | 2,310 | cpp | C++ | code/nes/gamepad.cpp | oldGanon/neszett | 7b42b042fe74e37e18f93718c3549feeea7d85e7 | [
"MIT"
] | null | null | null | code/nes/gamepad.cpp | oldGanon/neszett | 7b42b042fe74e37e18f93718c3549feeea7d85e7 | [
"MIT"
] | null | null | null | code/nes/gamepad.cpp | oldGanon/neszett | 7b42b042fe74e37e18f93718c3549feeea7d85e7 | [
"MIT"
] | null | null | null |
struct gamepad_frame
{
u8 Gamepad[2];
u8 Flags;
};
struct gamepad_playback
{
u32 Size;
u32 Index;
gamepad_frame Frames[1];
};
struct gamepad
{
console *Console;
gamepad_playback *Playback;
u8 Strobe;
u8 ReadSerial[2];
};
inline u8
Gamepad_GetPlaybackButtons(gamepad_playback *Pla... | 19.411765 | 71 | 0.6329 | oldGanon |
14aee236386f8f8515cc70aba17e22b9d96abea7 | 492 | hpp | C++ | epoch/lucca/include/lucca/tool/look_at/look_diagonal_tool.hpp | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | 47 | 2020-03-30T14:36:46.000Z | 2022-03-06T07:44:54.000Z | epoch/lucca/include/lucca/tool/look_at/look_diagonal_tool.hpp | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | null | null | null | epoch/lucca/include/lucca/tool/look_at/look_diagonal_tool.hpp | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | 8 | 2020-04-01T01:22:45.000Z | 2022-01-02T13:06:09.000Z | #ifndef LUCCA_LOOK_DIAGONAL_TOOL_HPP
#define LUCCA_LOOK_DIAGONAL_TOOL_HPP
#include "lucca/config.hpp"
#include "lucca/tool/look_at/look_at_tool.hpp"
namespace lucca {
/**
* @author O Programador
*/
class LUCCA_API LookDiagonalTool final : public LookAtTool {
public:
LookDiagonalTool(View& view);
virtual ~LookDi... | 20.5 | 102 | 0.784553 | oprogramadorreal |
14affe60b9d55e5797f5be7d861ae36543201ba7 | 4,455 | cc | C++ | paddle/phi/ops/compat/batch_norm_sig.cc | thunder95/Paddle | 27cb52a4cda29184851a53d63ea45d436c632e59 | [
"Apache-2.0"
] | null | null | null | paddle/phi/ops/compat/batch_norm_sig.cc | thunder95/Paddle | 27cb52a4cda29184851a53d63ea45d436c632e59 | [
"Apache-2.0"
] | 1 | 2022-01-28T07:23:22.000Z | 2022-01-28T07:23:22.000Z | paddle/phi/ops/compat/batch_norm_sig.cc | thunder95/Paddle | 27cb52a4cda29184851a53d63ea45d436c632e59 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 39.776786 | 80 | 0.467789 | thunder95 |
14b0790f5e6f8eba805fda06a7996160d37ffb73 | 603 | cpp | C++ | src/kernel/musicserviceproxy.cpp | meego-tablet-ux/meegolabs-ux-components | 0f939f1f6bab34427d10f4ce6ec24e0a13447da9 | [
"Apache-2.0"
] | null | null | null | src/kernel/musicserviceproxy.cpp | meego-tablet-ux/meegolabs-ux-components | 0f939f1f6bab34427d10f4ce6ec24e0a13447da9 | [
"Apache-2.0"
] | null | null | null | src/kernel/musicserviceproxy.cpp | meego-tablet-ux/meegolabs-ux-components | 0f939f1f6bab34427d10f4ce6ec24e0a13447da9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2011 Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*/
#include "musicserviceproxy.h"
/*
* Implementation of interface class MusicServic... | 25.125 | 133 | 0.754561 | meego-tablet-ux |
14b0fdd10453ce38cdd6d6f7d42f88cf84701581 | 237 | cc | C++ | cpp/badmacro.cc | iskhanba/epicode | fda752e5e016ab64011083450be91bec9ee8358a | [
"MIT"
] | null | null | null | cpp/badmacro.cc | iskhanba/epicode | fda752e5e016ab64011083450be91bec9ee8358a | [
"MIT"
] | null | null | null | cpp/badmacro.cc | iskhanba/epicode | fda752e5e016ab64011083450be91bec9ee8358a | [
"MIT"
] | null | null | null | #include <cassert>
//@include
// Avoid overhead of a function call.
#define isvowel(c) (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u')
//@exclude
int main(int argc, char** argv) {
char c = 'a';
assert(isvowel(c));
}
| 19.75 | 77 | 0.514768 | iskhanba |
14b115bcd2464a7ef5ba44a606d04d8bc42b7edc | 12,259 | cp | C++ | Std/Mod/Dialog.cp | romiras/Blackbox-fw-playground | 6de94dc65513e657a9b86c1772e2c07742b608a8 | [
"BSD-2-Clause"
] | 1 | 2016-03-17T08:27:05.000Z | 2016-03-17T08:27:05.000Z | Std/Mod/Dialog.cp | romiras/Blackbox-fw-playground | 6de94dc65513e657a9b86c1772e2c07742b608a8 | [
"BSD-2-Clause"
] | null | null | null | Std/Mod/Dialog.cp | romiras/Blackbox-fw-playground | 6de94dc65513e657a9b86c1772e2c07742b608a8 | [
"BSD-2-Clause"
] | 1 | 2018-03-14T17:53:27.000Z | 2018-03-14T17:53:27.000Z | MODULE StdDialog;
(**
project = "BlackBox"
organization = "www.oberon.ch"
contributors = "Oberon microsystems"
version = "System/Rsrc/About"
copyright = "System/Rsrc/About"
license = "Docu/BB-License"
changes = ""
issues = ""
**)
IMPORT
Kernel, Meta... | 40.062092 | 126 | 0.502488 | romiras |
14b2a7c9b582160d72dc604e7e9deefbf9355764 | 899 | cpp | C++ | 13.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | 13.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | 13.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | //
// Created by sunguoyan on 2017/3/30.
// 将罗马数字转为整数,整数是在1-3999范围内,要先把握下罗马数字的规律,1是"I",两个I就是2...到4是IV,5是V...
// 9是IX,10是X,50是L,100是C,500是D,10000是M,因此要注意的是如果识别类似IV,IX,XL....等组合成的罗马数字需要
// 有方法,方法就是从字符串后面往前遍历,如果后一个数字大于前一个数字,那么就减去前一个数字,否则就加上前一个数字
#include "LeetCode.h"
int romanToInt(string s) {
unordered_map<char,int... | 28.09375 | 74 | 0.451613 | Sherryhaha |
14b2e7a935998e4d3e3501b08fa2de9ea72eaceb | 2,846 | cpp | C++ | Engine/Source/Render/Shader/SShaderCompiler.cpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | 9 | 2018-07-21T00:30:35.000Z | 2021-09-04T02:54:11.000Z | Engine/Source/Render/Shader/SShaderCompiler.cpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | null | null | null | Engine/Source/Render/Shader/SShaderCompiler.cpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | 1 | 2021-12-03T14:12:41.000Z | 2021-12-03T14:12:41.000Z | /// \file SShaderCompiler.cpp
/// \date 21/07/2018
/// \project OOM-Engine
/// \package Render/Shader
/// \author Vincent STEHLY--CALISTO
#include <malloc.h>
#include "Core/Debug/SLogger.hpp"
#include "Render/Shader/SShaderCompiler.hpp"
namespace Oom
{
GLuint SShaderCompiler::CreateProgram(con... | 31.622222 | 97 | 0.68201 | Aredhele |
14b78b3f6db46cf1f7e7774ccce5b9db20263e6f | 9,747 | cpp | C++ | test/afu/Commands.cpp | OpenCAPI/ocse | ddc640fbafe9d027c0218ccad366bc6ce37c34c8 | [
"Apache-2.0"
] | 3 | 2019-10-10T19:39:12.000Z | 2021-04-05T17:36:33.000Z | test/afu/Commands.cpp | OpenCAPI/ocse | ddc640fbafe9d027c0218ccad366bc6ce37c34c8 | [
"Apache-2.0"
] | 8 | 2019-10-25T12:51:45.000Z | 2021-04-06T09:31:39.000Z | test/afu/Commands.cpp | OpenCAPI/ocse | ddc640fbafe9d027c0218ccad366bc6ce37c34c8 | [
"Apache-2.0"
] | 4 | 2019-10-31T13:05:39.000Z | 2021-04-05T17:36:28.000Z | /*
* Copyright 2015,2017 International Business Machines
*
* 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 app... | 31.543689 | 150 | 0.672104 | OpenCAPI |
14b8aa4305d6ab8ad4d5e5b3259e4a80725b823c | 3,262 | hpp | C++ | include/codegen/include/Zenject/StaticMemoryPool_8.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/StaticMemoryPool_8.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/StaticMemoryPool_8.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:45 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: Zenject.StaticMemoryPoolBase`1
#include "Zenject/StaticMemoryPoolBase_1.hpp"
// Includin... | 62.730769 | 324 | 0.745555 | Futuremappermydud |
14bcb0cdb3954fea721d40b8fc65340cab770211 | 985 | cpp | C++ | FTSE/entities/Book.cpp | melindil/FTSE | c0b54194900ac45ce1ecc778d838a72d09278bab | [
"MIT"
] | 3 | 2019-10-05T15:51:12.000Z | 2021-01-08T21:58:48.000Z | FTSE/entities/Book.cpp | melindil/FTSE | c0b54194900ac45ce1ecc778d838a72d09278bab | [
"MIT"
] | 2 | 2021-06-04T13:42:16.000Z | 2021-07-27T10:38:38.000Z | FTSE/entities/Book.cpp | melindil/FTSE | c0b54194900ac45ce1ecc778d838a72d09278bab | [
"MIT"
] | 2 | 2018-07-03T11:31:11.000Z | 2021-06-16T21:05:38.000Z | #include "Book.h"
#include "LuaHelper.h"
#include "Helpers.h"
Book::Book(EntityID id)
: Collectable(id)
{
}
Book::Book(void * ptr)
: Collectable(ptr)
{
}
Book::~Book()
{
}
void Book::MakeLuaObject(lua_State * l)
{
lua_newtable(l);
lua_pushinteger(l, GetID());
lua_setfield(l, -2, "id");
lua_getglobal(l, "Book... | 18.240741 | 79 | 0.694416 | melindil |
14c09198d6978f73bc5b6839d7d58a6e12850347 | 1,367 | cpp | C++ | src/ui/uicheckbox.cpp | alexeyden/whack | 2bff3beb0afb8c5aaba996b2838d2f0b9797039c | [
"WTFPL"
] | null | null | null | src/ui/uicheckbox.cpp | alexeyden/whack | 2bff3beb0afb8c5aaba996b2838d2f0b9797039c | [
"WTFPL"
] | null | null | null | src/ui/uicheckbox.cpp | alexeyden/whack | 2bff3beb0afb8c5aaba996b2838d2f0b9797039c | [
"WTFPL"
] | null | null | null | #include "uicheckbox.h"
UICheckBox::UICheckBox(UIManager* manager): UIElement(manager, false), checked(false)
{
}
void UICheckBox::render(Texture* out)
{
unsigned color = isPressed() ? _manager->style()->colorActivated : _manager->style()->colorNormal;
if(checked)
_manager->style()->checkboxChecked.draw(out, b... | 28.479167 | 121 | 0.693489 | alexeyden |
14c1b1e99a4169b62e1fedc6a258f487345ba134 | 10,656 | cpp | C++ | clang/test/Analysis/initializers-cfg-output.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | clang/test/Analysis/initializers-cfg-output.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang/test/Analysis/initializers-cfg-output.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=debug.DumpCFG -analyzer-config cfg-rich-constructors=false %s 2>&1 | FileCheck -check-prefixes=CHECK,WARNINGS %s
// RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=debug.DumpCFG -analyzer-config cfg-rich-constructors=true %s 2>&1 | FileCheck -check-prefixes=C... | 36.122034 | 168 | 0.555556 | medismailben |
14c251049f89139d5cf3387c35547b0d88770830 | 20,717 | cc | C++ | ggeo/GInstancer.cc | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | 1 | 2020-05-13T06:55:49.000Z | 2020-05-13T06:55:49.000Z | ggeo/GInstancer.cc | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | null | null | null | ggeo/GInstancer.cc | seriksen/opticks | 2173ea282bdae0bbd1abf4a3535bede334413ec1 | [
"Apache-2.0"
] | null | null | null | /*
* 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 ... | 28.071816 | 132 | 0.595598 | seriksen |
14c2d8a99bf1484b4974775491111f626e45feb3 | 3,468 | cpp | C++ | runtime/Cpp/runtime/src/ANTLRInputStream.cpp | charwliu/antlr4 | 1c987e77eaa2baf786023cfff437a409f4623221 | [
"BSD-3-Clause"
] | null | null | null | runtime/Cpp/runtime/src/ANTLRInputStream.cpp | charwliu/antlr4 | 1c987e77eaa2baf786023cfff437a409f4623221 | [
"BSD-3-Clause"
] | null | null | null | runtime/Cpp/runtime/src/ANTLRInputStream.cpp | charwliu/antlr4 | 1c987e77eaa2baf786023cfff437a409f4623221 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2012-2016 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
#include "Exceptions.h"
#include "misc/Interval.h"
#include "IntStream.h"
#include "support/StringUtils.h"
#include "sup... | 22.230769 | 93 | 0.660323 | charwliu |