hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 77k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39f2e3009dc60767bc21fd301b10c4e591572eea | 1,139 | cpp | C++ | src/leetcode/q0101_0200/q0102.cpp | jielyu/leetcode | ce5327f5e5ceaa867ea2ddd58a93bfb02b427810 | [
"MIT"
] | 9 | 2020-04-09T12:37:50.000Z | 2021-04-01T14:01:14.000Z | src/leetcode/q0101_0200/q0102.cpp | jielyu/leetcode | ce5327f5e5ceaa867ea2ddd58a93bfb02b427810 | [
"MIT"
] | 3 | 2020-05-05T02:43:54.000Z | 2020-05-20T11:12:16.000Z | src/leetcode/q0101_0200/q0102.cpp | jielyu/leetcode | ce5327f5e5ceaa867ea2ddd58a93bfb02b427810 | [
"MIT"
] | 5 | 2020-04-17T02:32:10.000Z | 2020-05-20T10:12:26.000Z | /*
#面试刷题# 第0113期
#Leetcode# Q0102 按层次顺序遍历二叉树
难度:中
给定一个二叉树,返回其节点值的级别顺序遍历。即,从左到右,逐级递进)。
示例:
Input: [3,9,20,null,null,15,7]
Output: [[3],[9,20],[15,7]]
*/
#include "leetcode.h"
namespace q0102
{
template<typename T>
bool run_testcases() {
T slt;
}
// Runtime: 4 ms, faster than 94.38%
// Memory Usage: 12.5 MB, less... | 23.729167 | 58 | 0.535558 |
39f474ef79a775e7cae39e502c4f1fcf981e7cf3 | 1,528 | cpp | C++ | dev_esp/lib/GasValue/GasValue.cpp | Granyy/SensAir | f56458322975a67793c6be92944e370cbd0117b2 | [
"MIT"
] | 2 | 2021-08-12T14:37:43.000Z | 2021-08-17T13:59:35.000Z | dev_esp/lib/GasValue/GasValue.cpp | Granyy/SensAir | f56458322975a67793c6be92944e370cbd0117b2 | [
"MIT"
] | null | null | null | dev_esp/lib/GasValue/GasValue.cpp | Granyy/SensAir | f56458322975a67793c6be92944e370cbd0117b2 | [
"MIT"
] | 2 | 2021-08-17T13:59:36.000Z | 2021-11-05T03:46:12.000Z | /******************************************************************************/
/* @TITLE : GasValue.cpp */
/* @VERSION : 1.0 */
/* @CREATION : dec 27, 2017 ... | 29.960784 | 80 | 0.524869 |
39f491a0815135ec3d8aff68d39ff960d16fa93f | 25,050 | cpp | C++ | c-transactions-extractor/code/main.cpp | rodrigo-brito/co-change-analysis | 298bb5437371ab29fb94a9e2f9012d3a5cf033f7 | [
"MIT"
] | 1 | 2019-04-15T22:27:52.000Z | 2019-04-15T22:27:52.000Z | c-transactions-extractor/code/main.cpp | rodrigo-brito/co-change-analysis | 298bb5437371ab29fb94a9e2f9012d3a5cf033f7 | [
"MIT"
] | 1 | 2019-05-09T01:55:12.000Z | 2019-05-09T02:14:41.000Z | c-transactions-extractor/code/main.cpp | rodrigo-brito/co-change-analysis | 298bb5437371ab29fb94a9e2f9012d3a5cf033f7 | [
"MIT"
] | 2 | 2019-05-09T01:41:29.000Z | 2019-06-12T18:59:45.000Z | #include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#define assert(x)
#define STB_LEAKCHECK_IMPLEMENTATION
#include "stb_leakcheck.h"
#include "dd_array.cpp"
#define min(a, b) (a < b ? a:b)
#define max(a, b) (a > b ? a:b)
#include "Memory.h"
#include "Array.cpp"
#include "... | 35.582386 | 160 | 0.506028 |
39f821f32de24e02de68f7ffda67b4a5d03b2338 | 3,062 | cpp | C++ | svntrunk/src/untabbed/BlueMatter/analysis/src/bootstrap.cpp | Bhaskers-Blu-Org1/BlueMatter | 1ab2c41af870c19e2e1b1095edd1d5c85eeb9b5e | [
"BSD-2-Clause"
] | 7 | 2020-02-25T15:46:18.000Z | 2022-02-25T07:04:47.000Z | svntrunk/src/untabbed/BlueMatter/analysis/src/bootstrap.cpp | IBM/BlueMatter | 5243c0ef119e599fc3e9b7c4213ecfe837de59f3 | [
"BSD-2-Clause"
] | null | null | null | svntrunk/src/untabbed/BlueMatter/analysis/src/bootstrap.cpp | IBM/BlueMatter | 5243c0ef119e599fc3e9b7c4213ecfe837de59f3 | [
"BSD-2-Clause"
] | 5 | 2019-06-06T16:30:21.000Z | 2020-11-16T19:43:01.000Z | /* Copyright 2001, 2019 IBM Corporation
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following d... | 39.25641 | 118 | 0.6855 |
39f94e132ec565178e4dd922c8930ca532840825 | 1,854 | cc | C++ | chrome/browser/ash/power/auto_screen_brightness/model_config.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ash/power/auto_screen_brightness/model_config.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ash/power/auto_screen_brightness/model_config.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2019 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 <cmath>
#include "chrome/browser/ash/power/auto_screen_brightness/model_config.h"
namespace ash {
namespace power {
namespace auto_screen_brigh... | 25.054054 | 79 | 0.696332 |
39f9a1535130f5c46084c4e29bf8877c8ddc2cdd | 12,330 | cpp | C++ | small-and-simple-programs-in-qt/computer-assembly-qt/computer-assembly/mainwindow.cpp | gusenov/examples-qt | 083a51feedf6cefe82b6de79d701da23d1da2a2f | [
"MIT"
] | 2 | 2020-09-01T18:37:30.000Z | 2021-11-28T16:25:04.000Z | small-and-simple-programs-in-qt/computer-assembly-qt/computer-assembly/mainwindow.cpp | gusenov/examples-qt | 083a51feedf6cefe82b6de79d701da23d1da2a2f | [
"MIT"
] | null | null | null | small-and-simple-programs-in-qt/computer-assembly-qt/computer-assembly/mainwindow.cpp | gusenov/examples-qt | 083a51feedf6cefe82b6de79d701da23d1da2a2f | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
#include <QDesktopServices>
#include <QUrl>
#include <QDir>
#include <QMessageBox>
// Конструктор:
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent), // вызов родительского конструктора.
ui(new Ui::MainWindow)
{
... | 32.88 | 110 | 0.66253 |
39f9e16fdc0f4ff2f6f202000875bfcb3f0960f3 | 15,736 | cpp | C++ | oblibtest/testclot.cpp | uesp/tes4lib | 7b426c9209ff7996d3d763e6d4e217abfefae406 | [
"MIT"
] | 1 | 2021-02-07T07:32:14.000Z | 2021-02-07T07:32:14.000Z | oblibtest/testclot.cpp | uesp/tes4lib | 7b426c9209ff7996d3d763e6d4e217abfefae406 | [
"MIT"
] | null | null | null | oblibtest/testclot.cpp | uesp/tes4lib | 7b426c9209ff7996d3d763e6d4e217abfefae406 | [
"MIT"
] | null | null | null | /*===========================================================================
*
* File: TestClot.CPP
* Author: Dave Humphrey (uesp@sympatico.ca)
* Created On: April 17, 2006
*
* Description
*
*=========================================================================*/
/* Include Files */
#include "... | 36.766355 | 129 | 0.626843 |
39f9e5213e4adc4f7734c8c8558c63ef5473e7b3 | 189,255 | cpp | C++ | src/parser/flex_lexer.cpp | ankushrayabhari/sql-parser | 004408f43d0c96a017087bc89823d44a72f3f201 | [
"MIT"
] | null | null | null | src/parser/flex_lexer.cpp | ankushrayabhari/sql-parser | 004408f43d0c96a017087bc89823d44a72f3f201 | [
"MIT"
] | null | null | null | src/parser/flex_lexer.cpp | ankushrayabhari/sql-parser | 004408f43d0c96a017087bc89823d44a72f3f201 | [
"MIT"
] | null | null | null | #line 2 "flex_lexer.cpp"
#line 4 "flex_lexer.cpp"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
#ifdef yy_c... | 37.63273 | 109 | 0.541264 |
39fa8414a7efdd1a3993b0b3a31cad00cf0e31c9 | 10,880 | hpp | C++ | include/ripple/utility/memory.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | 4 | 2021-04-25T16:38:12.000Z | 2021-12-23T08:32:15.000Z | include/ripple/utility/memory.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | null | null | null | include/ripple/utility/memory.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | null | null | null | /**=--- ripple/utility/memory.hpp -------------------------- -*- C++ -*- ---==**
*
* Ripple
*
* Copyright (c) 2019 - 2021 Rob Clucas.
*
* This file is distributed under the MIT License. See LICENSE for details.
*
*==-----------------------------------------... | 34.983923 | 80 | 0.688879 |
39fcd126f2f7b60511a4fffe5052e76a511f9731 | 7,477 | cpp | C++ | trunk/win/Source/BT_ThreadableUnit.cpp | dyzmapl/BumpTop | 1329ea41411c7368516b942d19add694af3d602f | [
"Apache-2.0"
] | 460 | 2016-01-13T12:49:34.000Z | 2022-02-20T04:10:40.000Z | trunk/win/Source/BT_ThreadableUnit.cpp | dyzmapl/BumpTop | 1329ea41411c7368516b942d19add694af3d602f | [
"Apache-2.0"
] | 24 | 2016-11-07T04:59:49.000Z | 2022-03-14T06:34:12.000Z | trunk/win/Source/BT_ThreadableUnit.cpp | dyzmapl/BumpTop | 1329ea41411c7368516b942d19add694af3d602f | [
"Apache-2.0"
] | 148 | 2016-01-17T03:16:43.000Z | 2022-03-17T12:20:36.000Z | // Copyright 2012 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 ap... | 24.923333 | 153 | 0.671927 |
2603f24fa10bb207b89b226b36885e6a30549682 | 5,911 | hpp | C++ | include/graphics.hpp | a276me/MilSim | b3ba8ef8cc46b6ae9cc7befece6cd00b016038ea | [
"MIT"
] | null | null | null | include/graphics.hpp | a276me/MilSim | b3ba8ef8cc46b6ae9cc7befece6cd00b016038ea | [
"MIT"
] | null | null | null | include/graphics.hpp | a276me/MilSim | b3ba8ef8cc46b6ae9cc7befece6cd00b016038ea | [
"MIT"
] | null | null | null | #pragma once
#include "raylib.h"
#include "main.hpp"
#include "Division.hpp"
const int SCREEN_WIDTH = 1280*1.5;
const int SCREEN_HEIGHT = 960*1.2;
Texture2D natoTest;
Texture2D natoInf;
Texture2D natoArmor;
Texture2D natoMechInf;
Texture2D hostileInf;
Texture2D hostileArmor;
Texture2D hostileMechInf;
void initRL()... | 34.366279 | 246 | 0.630012 |
26060c9cd453f6eb01ded7d869aafb8e9c4fb67d | 997 | hpp | C++ | RayTracer/core/source/RTweekend.hpp | ZFhuang/AmbiRenderer | d223e1c4d947872c9011c1cba6a8f498ebbaf3b7 | [
"Apache-2.0"
] | null | null | null | RayTracer/core/source/RTweekend.hpp | ZFhuang/AmbiRenderer | d223e1c4d947872c9011c1cba6a8f498ebbaf3b7 | [
"Apache-2.0"
] | null | null | null | RayTracer/core/source/RTweekend.hpp | ZFhuang/AmbiRenderer | d223e1c4d947872c9011c1cba6a8f498ebbaf3b7 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cmath>
#include <limits>
#include <memory>
#include <random>
// 保存Ray Tracing in One Weekend项目所需的基本常量和函数
using std::shared_ptr;
using std::make_shared;
using std::sqrt;
const double infinity = std::numeric_limits<double>::infinity();
const double pi = 3.1415926535897932385;
// 角度转弧度
inline ... | 20.346939 | 70 | 0.706118 |
2609c25feca6969e8f9c31b3be4f6301848dc8dc | 3,645 | cpp | C++ | 2017-09-10-practice/E.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 3 | 2018-04-02T06:00:51.000Z | 2018-05-29T04:46:29.000Z | 2017-09-10-practice/E.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-03-31T17:54:30.000Z | 2018-05-02T11:31:06.000Z | 2017-09-10-practice/E.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-10-07T00:08:06.000Z | 2021-06-28T11:02:59.000Z | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef long double DB;
const int maxn = 500001, INF = 0x3f3f3f3f;
int rad, n, totL, totR;
struct Query {
int typ, x, y;
} que[maxn];
struct Fraction {
LL x, y;
Fraction() {}
Fraction(LL _x, LL _y) { // _y > 0
LL r = __gcd(abs(_x), _y);
x = _x ... | 28.476563 | 101 | 0.494925 |
260e864a1f93c48554bc7ee15e6a536d28c1bc43 | 5,340 | hpp | C++ | include/GTGE/Editor/ParticleEditor/ParticleEditor.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 31 | 2015-03-19T08:44:48.000Z | 2021-12-15T20:52:31.000Z | include/GTGE/Editor/ParticleEditor/ParticleEditor.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 19 | 2015-07-09T09:02:44.000Z | 2016-06-09T03:51:03.000Z | include/GTGE/Editor/ParticleEditor/ParticleEditor.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 3 | 2017-10-04T23:38:18.000Z | 2022-03-07T08:27:13.000Z | // Copyright (C) 2011 - 2014 David Reid. See included LICENCE.
#ifndef GT_ParticleEditor
#define GT_ParticleEditor
#include "../SubEditor.hpp"
#include "../Editor3DViewportEventHandler.hpp"
#include "../EditorGrid.hpp"
#include "../EditorAxisArrows.hpp"
#include "../../ParticleSystem.hpp"
#include "../../Scene.hpp"
... | 27.525773 | 145 | 0.603933 |
260fbcac89d9c171b877e48c878a90c4994a737c | 1,586 | hpp | C++ | legacy/galaxy/meta/UniqueId.hpp | reworks/rework | 90508252c9a4c77e45a38e7ce63cfd99f533f42b | [
"Apache-2.0"
] | 6 | 2018-07-21T20:37:01.000Z | 2018-10-31T01:49:35.000Z | legacy/galaxy/meta/UniqueId.hpp | reworks/rework | 90508252c9a4c77e45a38e7ce63cfd99f533f42b | [
"Apache-2.0"
] | null | null | null | legacy/galaxy/meta/UniqueId.hpp | reworks/rework | 90508252c9a4c77e45a38e7ce63cfd99f533f42b | [
"Apache-2.0"
] | null | null | null | ///
/// UniqueId.hpp
/// galaxy
///
/// Refer to LICENSE.txt for more details.
///
#ifndef GALAXY_META_UNIQUEID_HPP_
#define GALAXY_META_UNIQUEID_HPP_
#include "galaxy/meta/Concepts.hpp"
namespace galaxy
{
namespace meta
{
///
/// Generates a unique id for a type for each type of specialization.
/// And the ... | 19.341463 | 75 | 0.628625 |
2613106580d834e6f6c23229ec8e14b28bab861e | 1,837 | cpp | C++ | cpp/Maya Calendar/Maya Calendar.cpp | xuzishan/Algorithm-learning-through-Problems | 4aee347af6fd7fd935838e1cbea57c197e88705c | [
"MIT"
] | 27 | 2016-11-04T09:18:25.000Z | 2022-02-12T12:34:01.000Z | cpp/Maya Calendar/Maya Calendar.cpp | Der1128/Algorithm-learning-through-Problems | 4aee347af6fd7fd935838e1cbea57c197e88705c | [
"MIT"
] | 1 | 2016-11-05T02:30:24.000Z | 2016-11-16T10:21:09.000Z | cpp/Maya Calendar/Maya Calendar.cpp | Der1128/Algorithm-learning-through-Problems | 4aee347af6fd7fd935838e1cbea57c197e88705c | [
"MIT"
] | 20 | 2016-11-04T10:26:02.000Z | 2021-09-25T05:41:21.000Z | //
// Maya Calendar.cpp
// laboratory
//
// Created by 徐子珊 on 16/4/4.
// Copyright (c) 2016年 xu_zishan. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <hash_map>
using namespace std;
pair<string, int> a[]={make_pair("pop... | 32.22807 | 107 | 0.62221 |
2613699c22b337a40d0a7955cf85646d1082af29 | 549 | cc | C++ | test/lattice/parameter.cc | Alexhuszagh/funxx | 9f6c1fae92d96a84282fc62be272f4dc1e1dba9b | [
"MIT",
"BSD-3-Clause"
] | 1 | 2017-07-21T22:58:38.000Z | 2017-07-21T22:58:38.000Z | test/lattice/parameter.cc | Alexhuszagh/funxx | 9f6c1fae92d96a84282fc62be272f4dc1e1dba9b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | test/lattice/parameter.cc | Alexhuszagh/funxx | 9f6c1fae92d96a84282fc62be272f4dc1e1dba9b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | // :copyright: (c) 2017 Alex Huszagh.
// :license: MIT, see LICENSE.md for more details.
#include <pycpp/lattice/parameter.h>
#include <gtest/gtest.h>
PYCPP_USING_NAMESPACE
// TESTS
// -----
TEST(parameters_t, get)
{
parameters_t parameters = {
{"name", "value"},
};
EXPECT_EQ(parameters.get()... | 18.3 | 60 | 0.622951 |
26138d64ec152d2b5f041c77ae3b068cfb7a950c | 1,254 | cpp | C++ | LeetCode/187. Repeated DNA Sequences.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 2 | 2021-04-13T00:19:56.000Z | 2021-04-13T01:19:45.000Z | LeetCode/187. Repeated DNA Sequences.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | null | null | null | LeetCode/187. Repeated DNA Sequences.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 1 | 2020-08-26T12:36:08.000Z | 2020-08-26T12:36:08.000Z | class Solution {
public:
vector<string> findRepeatedDnaSequences(string s) {
map<char, int> charToBit;
charToBit['A'] = 0b00;
charToBit['C'] = 0b01;
charToBit['G'] = 0b10;
charToBit['T'] = 0b11;
map<int, char> bitToChar;
bitToChar[0b00] = 'A';
... | 27.866667 | 56 | 0.360447 |
261cdd21729796c74dc94d854f918e1929207d29 | 3,081 | cpp | C++ | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/assistant/qhelpconverter/pathpage.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/assistant/qhelpconverter/pathpage.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qttools/src/assistant/qhelpconverter/pathpage.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Assistant of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid co... | 30.81 | 86 | 0.66407 |
261f35817fc8033d8bbf94f018bb61bac851283a | 37,455 | cpp | C++ | src/libraries/dynamicMesh/dynamicMesh/meshCut/meshModifiers/meshCutAndRemove/meshCutAndRemove.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/dynamicMesh/dynamicMesh/meshCut/meshModifiers/meshCutAndRemove/meshCutAndRemove.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/dynamicMesh/dynamicMesh/meshCut/meshModifiers/meshCutAndRemove/meshCutAndRemove.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011-2012 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
... | 27.479824 | 80 | 0.435055 |
2622eab5a23a648711817362a3f70a54c2c7b51c | 10,696 | hpp | C++ | src/core/ArrayTraits.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | null | null | null | src/core/ArrayTraits.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | null | null | null | src/core/ArrayTraits.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | 1 | 2021-07-21T06:48:19.000Z | 2021-07-21T06:48:19.000Z | // Copyright (c) 2020 Matthew J. Smith and Overkit contributors
// License: MIT (http://opensource.org/licenses/MIT)
#ifndef OVK_CORE_ARRAY_TRAITS_HPP_INCLUDED
#define OVK_CORE_ARRAY_TRAITS_HPP_INCLUDED
#include <ovk/core/ArrayTraitsBase.hpp>
#include <ovk/core/Elem.hpp>
#include <ovk/core/Global.hpp>
#include <ovk/c... | 45.130802 | 100 | 0.755984 |
2626448ee8c472a55023f86a2caaea7f08d76247 | 158 | cpp | C++ | old/Codeforces/466/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | old/Codeforces/466/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | old/Codeforces/466/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "template.hpp"
int main() {
int n, m, a, b;
cin >> n >> m >> a >> b;
cout << min(n * a, min(n / m * b + n % m * a, n / m * b + b)) << endl;
}
| 19.75 | 72 | 0.411392 |
26290ecf777c44a6fc4b1ab9cd0cbf89918f0d97 | 1,208 | hh | C++ | recorder/src/main/cpp/blocking_ring_buffer.hh | Flipkart/fk-prof | ed801c32a8c3704204be670e16c6465297431e1a | [
"Apache-2.0",
"MIT"
] | 7 | 2017-01-17T11:29:08.000Z | 2021-06-07T10:36:59.000Z | recorder/src/main/cpp/blocking_ring_buffer.hh | Flipkart/fk-prof | ed801c32a8c3704204be670e16c6465297431e1a | [
"Apache-2.0",
"MIT"
] | 106 | 2017-01-12T04:38:40.000Z | 2017-10-04T11:12:54.000Z | recorder/src/main/cpp/blocking_ring_buffer.hh | Flipkart/fk-prof | ed801c32a8c3704204be670e16c6465297431e1a | [
"Apache-2.0",
"MIT"
] | 4 | 2016-12-22T08:56:27.000Z | 2018-07-26T17:13:42.000Z | #ifndef BLOCKING_RING_BUFFER_H
#define BLOCKING_RING_BUFFER_H
#include <thread>
#include <mutex>
#include <condition_variable>
#include "globals.hh"
class BlockingRingBuffer {
private:
std::uint32_t read_idx, write_idx, capacity, available;
std::uint8_t *buff;
bool allow_writes;
std::mutex m;
std:... | 26.844444 | 112 | 0.712748 |
262cab7befc0663f26883159779c9a7d1d2edb3a | 4,246 | hpp | C++ | include/gamma/basis.hpp | robashaw/gamma | 26fba31be640c9bc429f8c22d5c61c0f8e9215e6 | [
"MIT"
] | 8 | 2019-09-13T10:35:26.000Z | 2022-03-26T13:20:54.000Z | include/gamma/basis.hpp | robashaw/gamma | 26fba31be640c9bc429f8c22d5c61c0f8e9215e6 | [
"MIT"
] | null | null | null | include/gamma/basis.hpp | robashaw/gamma | 26fba31be640c9bc429f8c22d5c61c0f8e9215e6 | [
"MIT"
] | null | null | null | /*
*
* PURPOSE: To define the class Basis representing a
* basis set.
*
* class Basis:
* owns: bfs - a set of BFs
* data: name - the name of the basis set, needed for file io
* charges - a list of atomic numbers corresponding to
* ... | 38.252252 | 79 | 0.567358 |
262e2c6360952d755e2279fb0b1cfb7972446d70 | 1,348 | cpp | C++ | Kattis/Week0/Wk0j_interpreter.cpp | Frodocz/CS2040C | d2e132a2f3cf56eef3f725990c7ffcf71a6a76d5 | [
"MIT"
] | null | null | null | Kattis/Week0/Wk0j_interpreter.cpp | Frodocz/CS2040C | d2e132a2f3cf56eef3f725990c7ffcf71a6a76d5 | [
"MIT"
] | null | null | null | Kattis/Week0/Wk0j_interpreter.cpp | Frodocz/CS2040C | d2e132a2f3cf56eef3f725990c7ffcf71a6a76d5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
#define MEMORY_SIZE 1000
#define REGISTER_NUM 10
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int i, cnt = 0, idx = 0;
vector<int> registers(REGISTER_NUM), ram(MEMORY_SIZE);
while (cin >> i) {
ram[idx++] ... | 24.962963 | 64 | 0.432493 |
262e2d197cb7945f4341134e31eac2a8530912dd | 1,966 | cpp | C++ | AMM/multiPage.cpp | CatOfBlades/ArbitraryMemoryMapper | ef49c548b6171ca1b3cac61c5cb6366ca6039abc | [
"MIT"
] | null | null | null | AMM/multiPage.cpp | CatOfBlades/ArbitraryMemoryMapper | ef49c548b6171ca1b3cac61c5cb6366ca6039abc | [
"MIT"
] | null | null | null | AMM/multiPage.cpp | CatOfBlades/ArbitraryMemoryMapper | ef49c548b6171ca1b3cac61c5cb6366ca6039abc | [
"MIT"
] | null | null | null |
#include "multiPage.h"
#include "../Defines.h"
#ifdef WINBUILD
#include <windows.h>
#endif // WINBUILD
unsigned long int multiPage::_size()
{
if(!bankList.size()){return 0;}
return bankList[_bankNum]->_size();
}
bool multiPage::_is_free()
{
if(!bankList.size()){return 0;}
return bankList[_bankNum]->_... | 22.860465 | 96 | 0.685656 |
1c79f5bbe1b6b243c5446a39d6116e47b4c0efac | 2,049 | cpp | C++ | ECOO/ECOO '19 R1 P3 - Side Scrolling Simulator.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 2 | 2021-04-13T00:19:56.000Z | 2021-04-13T01:19:45.000Z | ECOO/ECOO '19 R1 P3 - Side Scrolling Simulator.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | null | null | null | ECOO/ECOO '19 R1 P3 - Side Scrolling Simulator.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 1 | 2020-08-26T12:36:08.000Z | 2020-08-26T12:36:08.000Z | #include <bits/stdc++.h>
#define MEM(a, b) memset(a, b, sizeof(a))
using namespace std;
void solve(){
char a[105][13];
MEM(a,'@');
int j, w, h;
cin>> j >> w >> h;
string s;
int x = 0,y = h - 2;
for(int i = 0; i < h; i++)
{
cin >> s;
for(int j = 0; j < w; j++)
... | 19.514286 | 57 | 0.226452 |
1c7a23c69da6a8ca7bcfc1c13c3afcd7d8b5ab15 | 11,114 | cpp | C++ | src/EBV_Triangulator.cpp | fdebrain/Stereo-Event-Based-Reconstruction-with-Active-Laser-Features | 9e63a5d15edffba65d6e6ab521c5f6413832a97c | [
"MIT"
] | 4 | 2021-08-10T17:35:35.000Z | 2021-12-06T08:43:07.000Z | src/EBV_Triangulator.cpp | fdebrain/Stereo-Event-Based-Reconstruction-with-Active-Laser-Features | 9e63a5d15edffba65d6e6ab521c5f6413832a97c | [
"MIT"
] | null | null | null | src/EBV_Triangulator.cpp | fdebrain/Stereo-Event-Based-Reconstruction-with-Active-Laser-Features | 9e63a5d15edffba65d6e6ab521c5f6413832a97c | [
"MIT"
] | null | null | null | #include <EBV_Triangulator.h>
#include <EBV_Benchmarking.h>
void Triangulator::switchMode()
{
m_mode = static_cast<Triangulator::StereoPair>((m_mode+1)%3);
std::cout << "Switch triangulation mode to: " << stereoPairNames[m_mode] << "\n\r";
}
void Triangulator::resetCalibration()
{
for (auto &k : m_K) { k ... | 31.936782 | 99 | 0.520875 |
1c8540e0cc6f5f8955cf146e09cf4feb22d1cf64 | 9,058 | cpp | C++ | unittest/testTimer.cpp | airekans/Tpool | 2ba21ca68588d90e738f35c6ddcc17bb8b1f3f1d | [
"MIT"
] | 13 | 2015-05-19T11:08:44.000Z | 2021-07-11T01:00:35.000Z | unittest/testTimer.cpp | guker/Tpool | 2ba21ca68588d90e738f35c6ddcc17bb8b1f3f1d | [
"MIT"
] | 17 | 2015-01-04T15:16:51.000Z | 2015-04-16T04:43:38.000Z | unittest/testTimer.cpp | guker/Tpool | 2ba21ca68588d90e738f35c6ddcc17bb8b1f3f1d | [
"MIT"
] | 11 | 2015-04-30T09:21:59.000Z | 2021-10-04T07:48:34.000Z | #include "Timer.h"
#include "Atomic.h"
#include "Thread.h"
#include "TestUtil.h"
#include <gtest/gtest.h>
using namespace tpool;
using namespace tpool::unittest;
namespace {
class TimerTestSuite : public ::testing::Test
{
protected:
Atomic<int> counter;
TimerTestSuite()
: counter(0)
{}
vi... | 19.64859 | 69 | 0.659417 |
1c888ffbcbdae678e1772280f72ea0065ce94d34 | 3,040 | cpp | C++ | 2018/0804_mujin-pc-2018/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 2018/0804_mujin-pc-2018/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 2018/0804_mujin-pc-2018/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 1 | 2020-07-22T17:27:09.000Z | 2020-07-22T17:27:09.000Z | /**
* File : E.cpp
* Author : Kazune Takahashi
* Created : 2018-8-4 22:09:58
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) ... | 22.189781 | 116 | 0.464474 |
1c88b3e9ef72afba9c9d5b45ba8a309c3ef87f97 | 1,032 | hpp | C++ | src/emp_dist.hpp | dcjones/isolator | 24bafc0a102dce213bfc2b5b9744136ceadaba03 | [
"MIT"
] | 33 | 2015-07-13T03:00:01.000Z | 2021-03-20T08:49:07.000Z | src/emp_dist.hpp | dcjones/isolator | 24bafc0a102dce213bfc2b5b9744136ceadaba03 | [
"MIT"
] | 9 | 2016-11-29T00:04:30.000Z | 2020-02-10T17:46:01.000Z | src/emp_dist.hpp | dcjones/isolator | 24bafc0a102dce213bfc2b5b9744136ceadaba03 | [
"MIT"
] | 6 | 2015-09-10T15:49:34.000Z | 2017-03-09T05:14:06.000Z |
#ifndef ISOLATOR_EMP_DIST
#define ISOLATOR_EMP_DIST
#include <climits>
#include <vector>
class EmpDist
{
public:
EmpDist(EmpDist&);
/* Construct a emperical distribution from n observations stored in xs.
*
* Input in run-length encoded samples, which must be in sorted order.
... | 21.061224 | 79 | 0.573643 |
1c90d631037316fe7681bb0a8018a698d72eeb8c | 7,897 | cpp | C++ | src/toolbar.cpp | alekratz/fiefdom | d0ddb1cc4fe24b57319b3089928c1a576d0c1bbc | [
"0BSD"
] | 1 | 2017-05-19T15:24:51.000Z | 2017-05-19T15:24:51.000Z | src/toolbar.cpp | alekratz/fiefdom | d0ddb1cc4fe24b57319b3089928c1a576d0c1bbc | [
"0BSD"
] | null | null | null | src/toolbar.cpp | alekratz/fiefdom | d0ddb1cc4fe24b57319b3089928c1a576d0c1bbc | [
"0BSD"
] | null | null | null | #include "toolbar.hpp"
#include "game_scene.hpp"
#include "globals.hpp"
#include <SDL_ttf.h>
#include <SDL.h>
#include <cassert>
constexpr auto TOOLBAR_HEIGHT = 23;
constexpr auto TOOLBAR_ITEM_VPADDING = 3;
constexpr auto TOOLBAR_ITEM_HPADDING = 13;
//const SDL_Color WHITE { 255, 255, 255, SDL_ALPHA_OPAQUE };
// const... | 41.34555 | 157 | 0.694314 |
1c93f82b414d383676dcdfc79956b5141e8135b4 | 1,104 | hxx | C++ | tests/cvinvaffine.hxx | zardchim/opencvx | f3727c9be5532f9a41c29f558e72aa19b6db97a4 | [
"Unlicense"
] | 10 | 2015-01-29T23:21:06.000Z | 2019-07-05T06:27:16.000Z | tests/cvinvaffine.hxx | zardchim/opencvx | f3727c9be5532f9a41c29f558e72aa19b6db97a4 | [
"Unlicense"
] | null | null | null | tests/cvinvaffine.hxx | zardchim/opencvx | f3727c9be5532f9a41c29f558e72aa19b6db97a4 | [
"Unlicense"
] | 13 | 2015-04-13T20:50:36.000Z | 2022-03-20T16:06:05.000Z | #ifdef _MSC_VER
#pragma warning(disable:4996)
#pragma comment(lib, "cv.lib")
#pragma comment(lib, "cxcore.lib")
#pragma comment(lib, "cvaux.lib")
#pragma comment(lib, "highgui.lib")
#endif
#include <stdio.h>
#include <stdlib.h>
#include "cv.h"
#include "cvaux.h"
#include "cxcore.h"
#include "highgui.h"
#include "cvcre... | 26.926829 | 91 | 0.577899 |
1c9b1e3e468091ba85c0dae6153ff9f95968ca8b | 1,604 | hpp | C++ | tainthlp.hpp | yqw1212/demovfuscator | d27dd1c87ba6956dae4a3003497fe8760b7299f9 | [
"BSD-2-Clause"
] | 614 | 2016-06-19T21:39:02.000Z | 2022-03-27T06:07:53.000Z | tainthlp.hpp | yqw1212/demovfuscator | d27dd1c87ba6956dae4a3003497fe8760b7299f9 | [
"BSD-2-Clause"
] | 20 | 2016-06-19T21:44:20.000Z | 2022-03-31T05:21:34.000Z | tainthlp.hpp | yqw1212/demovfuscator | d27dd1c87ba6956dae4a3003497fe8760b7299f9 | [
"BSD-2-Clause"
] | 54 | 2016-06-20T07:01:22.000Z | 2021-12-14T13:34:56.000Z | #ifndef TAINTHLP_H
#define TAINTHLP_H
#include <map>
#include <unordered_map>
#include <capstone/x86.h>
class tainthlp{
public:
/**
* Adds taint to a specified address and (len - 1) subsequent addresses
* @param base base address to taint
* @param len length of the area to taint
* @param ref the taint... | 26.733333 | 91 | 0.69015 |
1c9d69b28786bc646d051ce2fbbde45848874949 | 312 | cpp | C++ | codeforces/1337A.cpp | LordRonz/cp-solutions | d95eabbdbf6a04fba912f4e8be203b180af7f46d | [
"WTFPL"
] | 2 | 2021-04-19T06:20:11.000Z | 2021-05-04T14:30:00.000Z | codeforces/1337A.cpp | LordRonz/cp-solutions | d95eabbdbf6a04fba912f4e8be203b180af7f46d | [
"WTFPL"
] | 2 | 2022-03-01T09:28:46.000Z | 2022-03-02T09:52:33.000Z | codeforces/1337A.cpp | LordRonz/cp-solutions | d95eabbdbf6a04fba912f4e8be203b180af7f46d | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define MAX(a,b,c) max(a,max(b,c))
#define MIN(a,b,c) min(a,min(b,c))
typedef pair<int, int> pii;
//0xACCE97ED
int main()
{
int t, a, b, c, d;
scanf("%d", &t);
while(t--) {
scanf("%d %d %d %d", &a, &b, &c, &d);
printf("%d %d %d\n", b, c, c);
}
return 0;
} | 17.333333 | 39 | 0.532051 |
1ca384e980b06811e0353de766b843292a6a672c | 7,384 | cpp | C++ | ExternalLibraries/NvGameworksFramework/src/NvGLUtils/NvUIGL.cpp | centauroWaRRIor/VulkanSamples | 5a7c58de820207cc0931a9db8c90f00453e31631 | [
"MIT"
] | 175 | 2018-08-28T14:40:34.000Z | 2022-03-19T03:10:02.000Z | ExternalLibraries/NvGameworksFramework/src/NvGLUtils/NvUIGL.cpp | centauroWaRRIor/VulkanSamples | 5a7c58de820207cc0931a9db8c90f00453e31631 | [
"MIT"
] | null | null | null | ExternalLibraries/NvGameworksFramework/src/NvGLUtils/NvUIGL.cpp | centauroWaRRIor/VulkanSamples | 5a7c58de820207cc0931a9db8c90f00453e31631 | [
"MIT"
] | 11 | 2019-05-13T12:06:53.000Z | 2022-03-18T09:56:37.000Z | //----------------------------------------------------------------------------------
// File: NvGLUtils/NvUIGL.cpp
// SDK Version: v3.00
// Email: gameworks@nvidia.com
// Site: http://developer.nvidia.com/
//
// Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
//
// Redistribution ... | 37.105528 | 103 | 0.643418 |
1cacd2e8237bc3da55355501ac313c2b8d666f59 | 5,986 | cpp | C++ | NEST-14.0-FPGA/nestkernel/nest_time.cpp | OpenHEC/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 45 | 2019-12-09T06:45:53.000Z | 2022-01-29T12:16:41.000Z | NEST-14.0-FPGA/nestkernel/nest_time.cpp | zlchai/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 2 | 2020-05-23T05:34:21.000Z | 2021-09-08T02:33:46.000Z | NEST-14.0-FPGA/nestkernel/nest_time.cpp | OpenHEC/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 10 | 2019-12-09T06:45:59.000Z | 2021-03-25T09:32:56.000Z | /*
* nest_time.cpp
*
* This file is part of NEST.
*
* Copyright (C) 2004 The NEST Initiative
*
* NEST is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at ... | 26.963964 | 80 | 0.688607 |
1cafef81519c467dc4d7a545f84ecbf83849af10 | 63,947 | cpp | C++ | src/execution/util/fast_double_parser.cpp | rohanaggarwal7997/terrier2 | 275d96fdb3f16f94b043230553a8d8d4a26f4168 | [
"MIT"
] | null | null | null | src/execution/util/fast_double_parser.cpp | rohanaggarwal7997/terrier2 | 275d96fdb3f16f94b043230553a8d8d4a26f4168 | [
"MIT"
] | 2 | 2020-08-24T16:29:40.000Z | 2020-09-08T16:34:51.000Z | src/execution/util/fast_double_parser.cpp | rohanaggarwal7997/terrier2 | 275d96fdb3f16f94b043230553a8d8d4a26f4168 | [
"MIT"
] | null | null | null | #include "execution/util/fast_double_parser.h"
namespace terrier::execution::util {
const double FastDoubleParser::POWER_OF_TEN[] = {1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11,
1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22... | 79.437267 | 120 | 0.399315 |
1cb18eb87cbbd47a02724d9bfd9dcc47a2423df1 | 17,332 | cpp | C++ | src/tri-prong.cpp | jinqiangshou/Tri-prong | 394913b293b8a94edd9717eab5c6d0cbe11f36db | [
"Apache-2.0"
] | 1 | 2015-11-08T10:36:32.000Z | 2015-11-08T10:36:32.000Z | src/tri-prong.cpp | jinqiangshou/Tri-prong | 394913b293b8a94edd9717eab5c6d0cbe11f36db | [
"Apache-2.0"
] | null | null | null | src/tri-prong.cpp | jinqiangshou/Tri-prong | 394913b293b8a94edd9717eab5c6d0cbe11f36db | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/epoll.h>
#include <sys/time.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in.h>
#include <netdb.h>
#include <pthread.h>
#include <time.h>... | 31.455535 | 143 | 0.664667 |
1cb443b558689eb8476d57651ccbc56b0b20d513 | 4,703 | inl | C++ | matlab_code/jjcao_code-head/toolbox/jjcao_mesh/geodesic/mex/gw/gw_core/GW_SmartCounter.inl | joycewangsy/normals_pointnet | fc74a8ed1a009b18785990b1b4c20eda0549721c | [
"MIT"
] | null | null | null | matlab_code/jjcao_code-head/toolbox/jjcao_mesh/geodesic/mex/gw/gw_core/GW_SmartCounter.inl | joycewangsy/normals_pointnet | fc74a8ed1a009b18785990b1b4c20eda0549721c | [
"MIT"
] | null | null | null | matlab_code/jjcao_code-head/toolbox/jjcao_mesh/geodesic/mex/gw/gw_core/GW_SmartCounter.inl | joycewangsy/normals_pointnet | fc74a8ed1a009b18785990b1b4c20eda0549721c | [
"MIT"
] | null | null | null | /*------------------------------------------------------------------------------*/
/**
* \file GW_SmartCounter.inl
* \brief Inlined methods for \c GW_SmartCounter
* \author Gabriel Peyr?2001-09-12
*/
/*------------------------------------------------------------------------------*/
#include "GW_SmartCounter.h... | 29.21118 | 96 | 0.402296 |
1cb60bcb0a7f2747bb34edc4ffef8a1ae21c6fac | 415 | cpp | C++ | src/1064b/emm.cpp | lifeich1/play-cf | 7eb6dbb290fcf7935e88d3f090d4af79e7308773 | [
"WTFPL"
] | null | null | null | src/1064b/emm.cpp | lifeich1/play-cf | 7eb6dbb290fcf7935e88d3f090d4af79e7308773 | [
"WTFPL"
] | 8 | 2018-10-15T06:47:19.000Z | 2019-02-15T09:58:02.000Z | src/1064b/emm.cpp | lifeich1/play-cf | 7eb6dbb290fcf7935e88d3f090d4af79e7308773 | [
"WTFPL"
] | null | null | null | //-[
#include "type.h"
//-]
namespace licf {
namespace emm_1064b {
// placeholder
}
}
using namespace licf::emm_1064b;
int emm_1064b(const _in_t & in_, _out_t & out_)
{
int n;
while (in_.read(&n))
{
LL res = 1;
for (; n > 0; n >>= 1)
{
if (n & 1)
{
... | 12.96875 | 47 | 0.414458 |
1cb6b50ac4e909f6822ded0ee163ee38682adb8b | 1,093 | cpp | C++ | src/lib/cert/cvc/cvc_req.cpp | el-forkorama/botan | 4ad555977b03cb92dfac0b87a00febe4d8e7ff5e | [
"BSD-2-Clause"
] | null | null | null | src/lib/cert/cvc/cvc_req.cpp | el-forkorama/botan | 4ad555977b03cb92dfac0b87a00febe4d8e7ff5e | [
"BSD-2-Clause"
] | null | null | null | src/lib/cert/cvc/cvc_req.cpp | el-forkorama/botan | 4ad555977b03cb92dfac0b87a00febe4d8e7ff5e | [
"BSD-2-Clause"
] | null | null | null | /*
* (C) 2007 FlexSecure GmbH
* 2008-2010 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/cvc_req.h>
#include <botan/cvc_cert.h>
#include <botan/ber_dec.h>
namespace Botan {
bool EAC1_1_Req::operator==(EAC1_1_Req const& rhs) const
{
return (this->tbs_d... | 20.240741 | 70 | 0.651418 |
1cb80b74074bb26c2036f07218be4c664d9fdd01 | 560 | cpp | C++ | parser.test.cpp | stet-stet/facilities | 1ebff3a3e546f313c297f3606a1941be519943a0 | [
"MIT"
] | null | null | null | parser.test.cpp | stet-stet/facilities | 1ebff3a3e546f313c297f3606a1941be519943a0 | [
"MIT"
] | null | null | null | parser.test.cpp | stet-stet/facilities | 1ebff3a3e546f313c297f3606a1941be519943a0 | [
"MIT"
] | null | null | null | #include"parser.hpp"
#include"essentials.hpp"
#include<iostream>
using std::cout, std::endl;
using namespace facilities;
int main(int argc, char** argv){
PARSE(argc,argv);
if( SANITYCHECK(a,b) ){
print("yes, a and b are present");
}
if( !SANITYCHECK(c) ){
print("no, c isn't present... | 20.740741 | 43 | 0.575 |
1cc139eda2b6b5a9c47ddadf86860934f1467cea | 2,592 | hpp | C++ | lib/core/test/fakelogger.hpp | DanglingPointer/veridie-native | dd75c92617094d20ae34fa2d26fa9b1b5eab54f1 | [
"Apache-2.0"
] | null | null | null | lib/core/test/fakelogger.hpp | DanglingPointer/veridie-native | dd75c92617094d20ae34fa2d26fa9b1b5eab54f1 | [
"Apache-2.0"
] | null | null | null | lib/core/test/fakelogger.hpp | DanglingPointer/veridie-native | dd75c92617094d20ae34fa2d26fa9b1b5eab54f1 | [
"Apache-2.0"
] | null | null | null | #ifndef TESTS_FAKELOGGER_HPP
#define TESTS_FAKELOGGER_HPP
#include "utils/log.hpp"
#include <algorithm>
#include <vector>
class FakeLogger
{
public:
enum class Level
{
DEBUG,
INFO,
WARNING,
ERROR,
FATAL
};
struct LogLine
{
Level lvl;
std::string tag;
st... | 23.142857 | 91 | 0.580247 |
1cc2c32fe849253ec5bcaa89abc100f454914d6b | 6,048 | cpp | C++ | code/source/thread_capture.cpp | DEAKSoftware/KFX | 8a759d21a651d9f8acbfef2e3d19b1e8580a74b5 | [
"MIT"
] | null | null | null | code/source/thread_capture.cpp | DEAKSoftware/KFX | 8a759d21a651d9f8acbfef2e3d19b1e8580a74b5 | [
"MIT"
] | null | null | null | code/source/thread_capture.cpp | DEAKSoftware/KFX | 8a759d21a651d9f8acbfef2e3d19b1e8580a74b5 | [
"MIT"
] | null | null | null | /*===========================================================================
Video Capture Thread
Dominik Deak
===========================================================================*/
#ifndef ___THREAD_CAPTURE_CPP___
#define ___THREAD_CAPTURE_CPP___
/*----------------------------------------... | 31.175258 | 144 | 0.430556 |
1cc82007e7d7bf67fbd363d61d85c060a6120404 | 5,276 | cpp | C++ | src/directions/VDWDirection.cpp | XiyuChenFAU/kgs_vibration_entropy | 117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9 | [
"MIT"
] | 1 | 2020-05-23T18:26:14.000Z | 2020-05-23T18:26:14.000Z | src/directions/VDWDirection.cpp | XiyuChenFAU/kgs_vibration_entropy | 117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9 | [
"MIT"
] | 8 | 2017-01-26T19:54:38.000Z | 2021-02-06T16:06:30.000Z | src/directions/VDWDirection.cpp | XiyuChenFAU/kgs_vibration_entropy | 117c4a3d39ec6285eccc1d3b8e5de9a21db21ec9 | [
"MIT"
] | null | null | null | /*
Excited States software: KGS
Contributors: See CONTRIBUTORS.txt
Contact: kgs-contact@simtk.org
Copyright (C) 2009-2017 Stanford University
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 with... | 45.094017 | 115 | 0.682714 |
1cc8b81bd2ea2c25f32328f85b60a2ae1b81d3d8 | 364 | cpp | C++ | src/column.cpp | aschaffer/libgdf | dd9bc77a61098215b37f63cc8a09c3dc69cf1cb3 | [
"Apache-2.0"
] | 5 | 2018-10-17T20:28:42.000Z | 2022-02-15T17:33:01.000Z | src/column.cpp | aschaffer/libgdf | dd9bc77a61098215b37f63cc8a09c3dc69cf1cb3 | [
"Apache-2.0"
] | 19 | 2018-07-18T07:15:44.000Z | 2021-02-22T17:00:18.000Z | src/column.cpp | aschaffer/libgdf | dd9bc77a61098215b37f63cc8a09c3dc69cf1cb3 | [
"Apache-2.0"
] | 2 | 2020-05-01T09:54:34.000Z | 2021-04-17T10:57:07.000Z | #include <gdf/gdf.h>
gdf_size_type gdf_column_sizeof() {
return sizeof(gdf_column);
}
gdf_error gdf_column_view(gdf_column *column, void *data, gdf_valid_type *valid,
gdf_size_type size, gdf_dtype dtype) {
column->data = data;
column->valid = valid;
column->size = size;
column... | 21.411765 | 80 | 0.662088 |
1cd27e671a0ca1a0581041df32c1c948f55e5809 | 4,119 | cpp | C++ | src/tanktextures.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | src/tanktextures.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | src/tanktextures.cpp | Eae02/tank-game | 0c526b177ccc15dd49e3228489163f13335040db | [
"Zlib"
] | null | null | null | #include "tanktextures.h"
#include "exceptions/invalidstateexception.h"
#include "utils/utils.h"
#include "utils/ioutils.h"
#include "graphics/textureloadoperation.h"
namespace TankGame
{
static std::unique_ptr<TankTextures> instance;
class TankTexturesLoadOperation : public IASyncOperation
{
public:
TankTextu... | 49.035714 | 105 | 0.646759 |
1cd2b5bee1b0b729cf337ab461287ad15a9185f9 | 46,483 | cpp | C++ | external/vsomeip/implementation/endpoints/src/tcp_server_endpoint_impl.cpp | lixiaolia/ndk-someip-lib | f4088e87f07e3a6bcec402514bb7ebb77ec946ce | [
"Apache-2.0"
] | 3 | 2021-06-17T14:01:04.000Z | 2022-03-18T09:22:44.000Z | external/vsomeip/implementation/endpoints/src/tcp_server_endpoint_impl.cpp | lixiaolia/ndk-someip-lib | f4088e87f07e3a6bcec402514bb7ebb77ec946ce | [
"Apache-2.0"
] | 1 | 2022-03-15T06:21:33.000Z | 2022-03-28T06:31:12.000Z | external/vsomeip/implementation/endpoints/src/tcp_server_endpoint_impl.cpp | lixiaolia/ndk-someip-lib | f4088e87f07e3a6bcec402514bb7ebb77ec946ce | [
"Apache-2.0"
] | 4 | 2021-06-17T14:12:18.000Z | 2021-12-13T11:53:10.000Z |
// Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <iomanip>
#include <boost/... | 47.383282 | 148 | 0.553557 |
1cd624056df2e7aaa352ab483ad1d97874aba4d5 | 2,228 | cpp | C++ | src/code-examples/chapter-04/printing-people/main.cpp | nhatvu148/helpers | 1a6875017cf39790dfe40ecec9dcee4410b1d89e | [
"MIT"
] | null | null | null | src/code-examples/chapter-04/printing-people/main.cpp | nhatvu148/helpers | 1a6875017cf39790dfe40ecec9dcee4410b1d89e | [
"MIT"
] | null | null | null | src/code-examples/chapter-04/printing-people/main.cpp | nhatvu148/helpers | 1a6875017cf39790dfe40ecec9dcee4410b1d89e | [
"MIT"
] | null | null | null |
#include <string>
#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <fstream>
#include "../../common/person.h"
void print_person(const person_t &person,
std::ostream &out,
person_t::output_format_t format)
{
if (format == person_t::name_... | 27.85 | 72 | 0.474865 |
1cdb59d29336c26315412dcf45704dbc2251c68b | 4,803 | cc | C++ | deps/smmr/example/client_server/client_server.cc | xflagstudio/network-bfd-sample | 89a21dd7ff195527fd8c3ce811ed0520acaac6b5 | [
"MIT"
] | 6 | 2017-03-24T08:37:39.000Z | 2020-07-24T08:08:30.000Z | deps/smmr/example/client_server/client_server.cc | xflagstudio/network-bfd-sample | 89a21dd7ff195527fd8c3ce811ed0520acaac6b5 | [
"MIT"
] | null | null | null | deps/smmr/example/client_server/client_server.cc | xflagstudio/network-bfd-sample | 89a21dd7ff195527fd8c3ce811ed0520acaac6b5 | [
"MIT"
] | 2 | 2017-07-17T03:25:34.000Z | 2019-06-09T18:14:15.000Z | #include "smmr_pagedbuffer.h"
#include "smmr_categories.h"
#include "smmr_memory.h"
#include "smmr_database.h"
#include "smmr_tree.h"
#include <sys/types.h>
#include <sys/wait.h>
#define UNUSED(x) (void)(x)
const char *SERVER_MSGKEY = "from_server_to_client";
char SERVER_HELLOW[] = "hellow client.";
const char *CLI... | 34.804348 | 142 | 0.634812 |
1cdd107e2bbce48e8df7103aa1c0817e30708734 | 985 | cpp | C++ | 09_QueueWithTwoStacks/main09.cpp | HaoliangLi/CodingInterviewChinese2 | c3ae0d7bec404d92dc3f5f395ccefb5455d08eb3 | [
"BSD-3-Clause"
] | null | null | null | 09_QueueWithTwoStacks/main09.cpp | HaoliangLi/CodingInterviewChinese2 | c3ae0d7bec404d92dc3f5f395ccefb5455d08eb3 | [
"BSD-3-Clause"
] | null | null | null | 09_QueueWithTwoStacks/main09.cpp | HaoliangLi/CodingInterviewChinese2 | c3ae0d7bec404d92dc3f5f395ccefb5455d08eb3 | [
"BSD-3-Clause"
] | null | null | null | /***
* @Date: 2021-11-27 17:36:41
* @LastEditors: zjulhl
* @LastEditTime: 2021-11-28 13:25:47
* @Description:
* @FilePath: /CodingInterviewChinese2/09_QueueWithTwoStacks/main09.cpp
*/
#include <stack>
using namespace std;
class CQueue
{
stack<int> stack1, stack2;
public:
CQueue()
{
while (... | 17.589286 | 71 | 0.447716 |
1cde2492418251c053d007af77a2e1f334cd06e9 | 228 | hpp | C++ | include/FindTheDifference.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/FindTheDifference.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/FindTheDifference.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef FIND_THE_DIFFERENCE_HPP_
#define FIND_THE_DIFFERENCE_HPP_
#include <string>
using namespace std;
class FindTheDifference {
public:
char findTheDifference(string s, string t);
};
#endif // FIND_THE_DIFFERENCE_HPP_ | 17.538462 | 47 | 0.798246 |
1ce098a977b00d0e57343ab54ff9a2978c182aec | 1,218 | cpp | C++ | Solutions/Longest Valid Parentheses/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | 1 | 2015-04-13T10:58:30.000Z | 2015-04-13T10:58:30.000Z | Solutions/Longest Valid Parentheses/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | Solutions/Longest Valid Parentheses/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int longestValidParentheses(string s) {
int s_size = s.size();
if (s_size <= 1) {
return 0;
}
int *dp = new int [s_size];
for(int i = 0; i < s_size; i++) {
dp[i] = 0;... | 23.882353 | 61 | 0.325123 |
1ce1eaa1c65f735565091b2e87477fb75e979f02 | 2,271 | hpp | C++ | include/Core/Castor3D/Render/ShadowMap/ShadowMapPassPoint.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 245 | 2015-10-29T14:31:45.000Z | 2022-03-31T13:04:45.000Z | include/Core/Castor3D/Render/ShadowMap/ShadowMapPassPoint.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 64 | 2016-03-11T19:45:05.000Z | 2022-03-31T23:58:33.000Z | include/Core/Castor3D/Render/ShadowMap/ShadowMapPassPoint.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 11 | 2018-05-24T09:07:43.000Z | 2022-03-21T21:05:20.000Z | /*
See LICENSE file in root folder
*/
#ifndef ___C3D_SHADOW_MAP_PASS_POINT_H___
#define ___C3D_SHADOW_MAP_PASS_POINT_H___
#include "ShadowMapModule.hpp"
#include "Castor3D/Render/ShadowMap/ShadowMapPass.hpp"
#include "Castor3D/Render/Viewport.hpp"
#include <ashespp/Buffer/UniformBuffer.hpp>
namespace castor3d
{
cl... | 28.037037 | 116 | 0.730956 |
1ce309004a88acddaa5b3abce61c11ee69147d9b | 309 | cpp | C++ | 2_formulas/is_leap.cpp | alphaolomi/cpp-examples | eda9c371ddf4264f2830425c036fd1570b9efda1 | [
"Apache-2.0"
] | null | null | null | 2_formulas/is_leap.cpp | alphaolomi/cpp-examples | eda9c371ddf4264f2830425c036fd1570b9efda1 | [
"Apache-2.0"
] | null | null | null | 2_formulas/is_leap.cpp | alphaolomi/cpp-examples | eda9c371ddf4264f2830425c036fd1570b9efda1 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int year;
cout << "Enter a year: " << endl;
cin >> year;
if ((year % 4) == 0)
{
cout << " Leap Year ";
}
else
{
cout << " Not a Leap Year" << endl;
}
return 0;
}
/*
Enter a year: 2016
Leap Year
*/ | 12.875 | 43 | 0.466019 |
1ce568a02137152b50ce38760832e528aa88db29 | 3,318 | cpp | C++ | examples/rara.cpp | rodriguescr/libfastlib | b89172ae727cd36f84d0d02359ce635eb11b8472 | [
"BSD-3-Clause-LBNL"
] | null | null | null | examples/rara.cpp | rodriguescr/libfastlib | b89172ae727cd36f84d0d02359ce635eb11b8472 | [
"BSD-3-Clause-LBNL"
] | null | null | null | examples/rara.cpp | rodriguescr/libfastlib | b89172ae727cd36f84d0d02359ce635eb11b8472 | [
"BSD-3-Clause-LBNL"
] | null | null | null | // $Id$
// Author: John Wu <John.Wu at ACM.org> Lawrence Berkeley National Laboratory
// Copyright (c) 2008-2017 the Regents of the University of California
/** @file rara.cpp
This is meant to be the simplest test program for the querying
functions of ibis::query and ibis::part. It accepts the following
f... | 35.677419 | 85 | 0.570223 |
1ce6121b396bcd37b7818d11901a5a873c67387c | 193 | hpp | C++ | src/linux/linux_platform.hpp | NickCao/ebpf-verifier | ccbfd158ca2b4c24b91c235ce21a1fbd192d458e | [
"Apache-2.0",
"MIT"
] | 181 | 2019-03-12T22:39:25.000Z | 2022-03-28T13:34:35.000Z | src/linux/linux_platform.hpp | NickCao/ebpf-verifier | ccbfd158ca2b4c24b91c235ce21a1fbd192d458e | [
"Apache-2.0",
"MIT"
] | 153 | 2019-02-21T18:44:11.000Z | 2022-03-31T23:22:11.000Z | src/linux/linux_platform.hpp | NickCao/ebpf-verifier | ccbfd158ca2b4c24b91c235ce21a1fbd192d458e | [
"Apache-2.0",
"MIT"
] | 30 | 2019-04-19T18:33:55.000Z | 2022-01-04T19:49:31.000Z | // Copyright (c) Prevail Verifier contributors.
// SPDX-License-Identifier: MIT
#pragma once
EbpfHelperPrototype get_helper_prototype_linux(int32_t n);
bool is_helper_usable_linux(int32_t n);
| 27.571429 | 58 | 0.818653 |
1ce74f81493c64aa21f249d0f83e812d93f2f98d | 306 | cpp | C++ | tutorials/learncpp.com#1.0#1/variables_part_ii/enumerated_types/source2.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | tutorials/learncpp.com#1.0#1/variables_part_ii/enumerated_types/source2.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | tutorials/learncpp.com#1.0#1/variables_part_ii/enumerated_types/source2.cpp | officialrafsan/CppDroid | 5fb2cc7750fea53b1ea6ff47b5094da6e95e9224 | [
"MIT"
] | null | null | null | enum Color
{
COLOR_BLACK, // assigned 0
COLOR_RED, // assigned 1
COLOR_BLUE, // assigned 2
COLOR_GREEN, // assigned 3
COLOR_WHITE, // assigned 4
COLOR_CYAN, // assigned 5
COLOR_YELLOW, // assigned 6
COLOR_MAGENTA // assigned 7
};
Color eColor = COLOR_WHITE;
cout << eColor; | 21.857143 | 31 | 0.653595 |
1ce9df55b36a4a6a72489cde35526546cb787727 | 1,236 | hpp | C++ | src/shuffler.hpp | nikolaimerkel/edgepart | 58b3d57eebd850dfdd7016e90352bddcf840e1f5 | [
"MIT"
] | 21 | 2018-04-19T07:27:18.000Z | 2022-02-23T19:33:04.000Z | src/shuffler.hpp | nikolaimerkel/edgepart | 58b3d57eebd850dfdd7016e90352bddcf840e1f5 | [
"MIT"
] | 1 | 2020-12-30T01:40:51.000Z | 2021-02-20T03:36:17.000Z | src/shuffler.hpp | nikolaimerkel/edgepart | 58b3d57eebd850dfdd7016e90352bddcf840e1f5 | [
"MIT"
] | 9 | 2019-06-19T13:40:57.000Z | 2021-12-09T19:30:50.000Z | #pragma once
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "util.hpp"
#include "conversions.hpp"
class Shuffler : public Converter
{
private:
struct work_t {
Shuffler *shuffler;
int nchunks;
std::vector<edge_t> chunk_buf;
void opera... | 26.297872 | 80 | 0.618123 |
1cec0fe776c42b019c1dff63883f60e3d7408525 | 31,587 | cc | C++ | MT_systems/matxin-lex/squoia_xfer_lex.cc | ariosquoia/squoia | 3f3c3c253bdb2d891889e0427790e6c972870f08 | [
"Apache-2.0"
] | 9 | 2016-04-27T16:48:58.000Z | 2021-01-17T21:55:55.000Z | MT_systems/matxin-lex/squoia_xfer_lex.cc | ariosquoia/squoia | 3f3c3c253bdb2d891889e0427790e6c972870f08 | [
"Apache-2.0"
] | null | null | null | MT_systems/matxin-lex/squoia_xfer_lex.cc | ariosquoia/squoia | 3f3c3c253bdb2d891889e0427790e6c972870f08 | [
"Apache-2.0"
] | 6 | 2016-03-29T22:26:50.000Z | 2021-01-17T21:56:21.000Z | /*
* Copyright (C) 2005 IXA Research Group / IXA Ikerkuntza Taldea.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ... | 28.00266 | 134 | 0.629246 |
1ced0d82f1e0edc30c2e913f425fbac2084d7fd7 | 1,858 | cpp | C++ | Source/Game/MainMenuScene.cpp | nathanlink169/3D-Shaders-Test | 2493fb71664d75100fbb4a80ac70f657a189593d | [
"MIT"
] | null | null | null | Source/Game/MainMenuScene.cpp | nathanlink169/3D-Shaders-Test | 2493fb71664d75100fbb4a80ac70f657a189593d | [
"MIT"
] | null | null | null | Source/Game/MainMenuScene.cpp | nathanlink169/3D-Shaders-Test | 2493fb71664d75100fbb4a80ac70f657a189593d | [
"MIT"
] | null | null | null | #include "CommonHeader.h"
MainMenuScene::MainMenuScene()
{
}
MainMenuScene::~MainMenuScene()
{
}
void MainMenuScene::OnSurfaceChanged(unsigned int aWidth, unsigned int aHeight)
{
Scene::OnSurfaceChanged(aWidth, aHeight);
}
void MainMenuScene::LoadContent()
{
Scene::LoadContent();
CreateCameraObject(); ... | 28.151515 | 213 | 0.684069 |
1cefe798b4d803b740eb9cc858578e7cd56a1af5 | 3,076 | cpp | C++ | C++/Stack/stack_linked-list.cpp | Vishwas-10/Data-structures | 34598895b56c9bf26e03c02e81a9b3222a61cd9a | [
"MIT"
] | null | null | null | C++/Stack/stack_linked-list.cpp | Vishwas-10/Data-structures | 34598895b56c9bf26e03c02e81a9b3222a61cd9a | [
"MIT"
] | null | null | null | C++/Stack/stack_linked-list.cpp | Vishwas-10/Data-structures | 34598895b56c9bf26e03c02e81a9b3222a61cd9a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
/* Steps:
- Create linked list node which stores value(data), next(pointer), min(current min element)
- while pushing elements :
- if stack is empty store current val in min
- if current element is less than min than store (2*x – minEle) in min
- wh... | 24.412698 | 114 | 0.491222 |
1cf05e916039a1c77ac99a82b67ece7c35271c0c | 756 | cpp | C++ | cpp/bjyd/06/TestGeometricObject2.cpp | skyofsmith/servePractice | d143497ec7c13dcbb55354c9050fd48e5b1c7b51 | [
"MIT"
] | null | null | null | cpp/bjyd/06/TestGeometricObject2.cpp | skyofsmith/servePractice | d143497ec7c13dcbb55354c9050fd48e5b1c7b51 | [
"MIT"
] | 18 | 2020-07-16T21:36:57.000Z | 2022-03-25T18:59:38.000Z | cpp/bjyd/06/TestGeometricObject2.cpp | skyofsmith/servePractice | d143497ec7c13dcbb55354c9050fd48e5b1c7b51 | [
"MIT"
] | null | null | null | #include <iostream>
//#include "AbstractGeometricObject.h"
#include "DerivedCircle2.h"
#include "Rectangle2.h"
using namespace std;
bool equalArea(GeometricObject &object1, GeometricObject &object2)
{
return object1.getArea() == object2.getArea();
}
void displayGeometricObject(GeometricObject &object)
{
cout << "Th... | 22.909091 | 66 | 0.691799 |
1cf6d96673df89a58ee0fc7bb8581a94ce538a35 | 321 | cxx | C++ | cxx/extends.cxx | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | null | null | null | cxx/extends.cxx | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | 1 | 2020-04-12T07:48:18.000Z | 2020-04-12T07:49:29.000Z | cxx/extends.cxx | coalpha/coalpha.github.io | 8a620314a5c0bcbe2225d29f733379d181534430 | [
"Apache-2.0"
] | 1 | 2020-09-30T05:27:07.000Z | 2020-09-30T05:27:07.000Z | #include <type_traits>
using namespace std;
template <typename Base, typename Derived>
using extends = enable_if_t<is_base_of_v<Base, Derived>>;
struct cat{};
struct dog{};
template <typename T, typename = extends<cat, T>>
void only_cats(T) noexcept;
int main() noexcept {
only_cats(cat{});
only_dogs(dog{});
}... | 18.882353 | 57 | 0.719626 |
7f2fbcd1d85fa5f4336de189dfc07777ac507a16 | 12,108 | cpp | C++ | src/Sparrow/Sparrow/Implementations/Dftb/Utils/SKPair.cpp | qcscine/sparrow | 387e56ed8da78e10d96861758c509f7c375dcf07 | [
"BSD-3-Clause"
] | 45 | 2019-06-12T20:04:00.000Z | 2022-02-28T21:43:54.000Z | src/Sparrow/Sparrow/Implementations/Dftb/Utils/SKPair.cpp | qcscine/sparrow | 387e56ed8da78e10d96861758c509f7c375dcf07 | [
"BSD-3-Clause"
] | 12 | 2019-06-12T23:53:57.000Z | 2022-03-28T18:35:57.000Z | src/Sparrow/Sparrow/Implementations/Dftb/Utils/SKPair.cpp | qcscine/sparrow | 387e56ed8da78e10d96861758c509f7c375dcf07 | [
"BSD-3-Clause"
] | 11 | 2019-06-22T22:52:51.000Z | 2022-03-11T16:59:59.000Z | /**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* See LICENSE.txt for details.
*/
#include "SKPair.h"
#include "SKAtom.h"
#include <Utils/IO/Regex.h>
#include <Utils/Scf/MethodException... | 39.439739 | 131 | 0.631318 |
7f33db92718d0e225f767b59142b526a75fdc42c | 605 | cpp | C++ | tests/unit/appc/util/test_option.cpp | cdaylward/libappc | 4f7316b584d92a110198a3f1573c170e5492194c | [
"Apache-2.0"
] | 63 | 2015-01-20T18:35:27.000Z | 2021-11-16T10:53:40.000Z | tests/unit/appc/util/test_option.cpp | Manu343726/libappc | 8d181ef4ee80c8f1bcbf6ca04cf66e04e5e5bc8a | [
"Apache-2.0"
] | 5 | 2015-01-20T17:28:54.000Z | 2015-02-09T17:36:54.000Z | tests/unit/appc/util/test_option.cpp | cdaylward/libappc | 4f7316b584d92a110198a3f1573c170e5492194c | [
"Apache-2.0"
] | 12 | 2015-01-26T04:37:08.000Z | 2020-11-14T02:19:13.000Z | #include "gtest/gtest.h"
#include "appc/util/option.h"
TEST(Option, none_is_false) {
auto none = None<int>();
ASSERT_FALSE(none);
}
TEST(Option, some_is_true) {
auto some = Some(std::string{""});
ASSERT_TRUE(some);
}
TEST(Option, some_is_shared_ptr) {
auto some = Some(std::string(""));
std::shared_ptr<... | 21.607143 | 58 | 0.669421 |
7f34132ef268ccb61428758f166ec384c7d0ad3d | 14,400 | cc | C++ | chrome/browser/ui/views/page_info/permission_selector_row.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/views/page_info/permission_selector_row.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/views/page_info/permission_selector_row.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/page_info/permission_selector_row.h"
#include "base/i18n/rtl.h"
#include "base/macros.h"
#include "base/strings/utf... | 38.4 | 80 | 0.702083 |
7f344ec08e017dcdf3c41926a1d07bd06a239b8b | 757 | hpp | C++ | bia/memory/gc/root.hpp | bialang/bia | b54fff096b4fe91ddb0b1d509ea828daa11cee7e | [
"BSD-3-Clause"
] | 2 | 2017-09-09T17:03:18.000Z | 2018-03-02T20:02:02.000Z | bia/memory/gc/root.hpp | terrakuh/Bia | 412b7e8aeb259f4925c3b588f6025760a43cd0b7 | [
"BSD-3-Clause"
] | 7 | 2018-10-11T18:14:19.000Z | 2018-12-26T15:31:04.000Z | bia/memory/gc/root.hpp | terrakuh/Bia | 412b7e8aeb259f4925c3b588f6025760a43cd0b7 | [
"BSD-3-Clause"
] | null | null | null | #ifndef BIA_MEMORY_GC_ROOT_HPP_
#define BIA_MEMORY_GC_ROOT_HPP_
#include <bia/util/gsl.hpp>
#include <cstddef>
#include <memory>
#include <mutex>
namespace bia {
namespace memory {
namespace gc {
class GC;
/// Defines the root for the search tree for the marking phase during garbage collection. This class is not
//... | 18.02381 | 107 | 0.712021 |
7f379093ec9f642f9797b97b5696ef29a2f9e7dc | 469 | hpp | C++ | archive/stan/src/stan/model/standalone_functions_header.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | archive/stan/src/stan/model/standalone_functions_header.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | archive/stan/src/stan/model/standalone_functions_header.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MODEL_STANDALONE_FUNCTIONS_HEADER_HPP
#define STAN_MODEL_STANDALONE_FUNCTIONS_HEADER_HPP
#include <stan/math.hpp>
#include <boost/random/additive_combine.hpp>
#include <stan/io/program_reader.hpp>
#include <stan/lang/rethrow_located.hpp>
#include <stan/model/indexing.hpp>
#include <cmath>
#in... | 22.333333 | 51 | 0.763326 |
7f3ebfb97f2fa4678666afd5f2133eaaafbea074 | 1,762 | cc | C++ | thirdparty/jplayer/thirdparty/libde265/libde265/encoder/algo/tb-rateestim.cc | Houkime/echo | d115ca55faf3a140bea04feffeb2efdedb0e7f82 | [
"MIT"
] | 675 | 2019-02-07T01:23:19.000Z | 2022-03-28T05:45:10.000Z | thirdparty/jplayer/thirdparty/libde265/libde265/encoder/algo/tb-rateestim.cc | Houkime/echo | d115ca55faf3a140bea04feffeb2efdedb0e7f82 | [
"MIT"
] | 843 | 2019-01-25T01:06:46.000Z | 2022-03-16T11:15:53.000Z | thirdparty/jplayer/thirdparty/libde265/libde265/encoder/algo/tb-rateestim.cc | Houkime/echo | d115ca55faf3a140bea04feffeb2efdedb0e7f82 | [
"MIT"
] | 83 | 2019-02-20T06:18:46.000Z | 2022-03-20T09:36:09.000Z | /*
* H.265 video codec.
* Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de>
*
* Authors: struktur AG, Dirk Farin <farin@struktur.de>
*
* This file is part of libde265.
*
* libde265 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public Li... | 37.489362 | 93 | 0.613507 |
7f41e852364ec3899156a3df2674f78ef0c58bfa | 738 | cpp | C++ | algorithms/cpp/1_TwoSum_Easy/main.cpp | vsawce/leetcode_practice | f0195d0749e3143e25708668bf9f35e152d895cf | [
"MIT"
] | null | null | null | algorithms/cpp/1_TwoSum_Easy/main.cpp | vsawce/leetcode_practice | f0195d0749e3143e25708668bf9f35e152d895cf | [
"MIT"
] | null | null | null | algorithms/cpp/1_TwoSum_Easy/main.cpp | vsawce/leetcode_practice | f0195d0749e3143e25708668bf9f35e152d895cf | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
vector<int> twoSum(vector<int>& nums, int target) {
for (int i = 0; i < nums.size(); i++) {
for (int j = 0; j < i; j++) {
if (nums[i] + nums[j] == target) {
return vector<int> {j, i};
}
}
}
... | 18.45 | 74 | 0.424119 |
7f470ee74bb40907b5c8a97d042ed1ee216e9aef | 74,059 | cc | C++ | lullaby/systems/render/next/render_system_next.cc | jjzhang166/lullaby | d9b11ea811cb5869b46165b9b9537b6063c6cbae | [
"Apache-2.0"
] | null | null | null | lullaby/systems/render/next/render_system_next.cc | jjzhang166/lullaby | d9b11ea811cb5869b46165b9b9537b6063c6cbae | [
"Apache-2.0"
] | null | null | null | lullaby/systems/render/next/render_system_next.cc | jjzhang166/lullaby | d9b11ea811cb5869b46165b9b9537b6063c6cbae | [
"Apache-2.0"
] | null | null | null | /*
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 law or agreed to in ... | 34.542444 | 80 | 0.686439 |
7f5039992eb67ceedc2414dfed8e29ad0caf0b2e | 109 | cpp | C++ | sources/shared_ptr.cpp | Denis-Gorbachev/lab-03-shared-ptr | 555967045a5893a0f79507e60e5ccf386335fbe6 | [
"MIT"
] | null | null | null | sources/shared_ptr.cpp | Denis-Gorbachev/lab-03-shared-ptr | 555967045a5893a0f79507e60e5ccf386335fbe6 | [
"MIT"
] | null | null | null | sources/shared_ptr.cpp | Denis-Gorbachev/lab-03-shared-ptr | 555967045a5893a0f79507e60e5ccf386335fbe6 | [
"MIT"
] | null | null | null | // Copyright 2021 Denis <denis.gorbachev2002@yandex.ru>
//#include <stdexcept>
//#include <shared_ptr.hpp>
| 18.166667 | 55 | 0.733945 |
7f56ba7b9b0425620218970964694ac78674c346 | 3,703 | cpp | C++ | lib/common/Shader.cpp | ynsn/rendor | b4d9da7ccedd472c7fc6d0155000c5b6a031dd1a | [
"MIT"
] | null | null | null | lib/common/Shader.cpp | ynsn/rendor | b4d9da7ccedd472c7fc6d0155000c5b6a031dd1a | [
"MIT"
] | null | null | null | lib/common/Shader.cpp | ynsn/rendor | b4d9da7ccedd472c7fc6d0155000c5b6a031dd1a | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2019 Yoram
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 29.15748 | 86 | 0.709155 |
7f59467bbebf778457679b5aae0d9fca38b6115d | 578 | cpp | C++ | util/mod_count_in_range.cpp | sekiya9311/CplusplusAlgorithmLibrary | f29dbdfbf3594da055185e39765880ff5d1e64ae | [
"Apache-2.0"
] | null | null | null | util/mod_count_in_range.cpp | sekiya9311/CplusplusAlgorithmLibrary | f29dbdfbf3594da055185e39765880ff5d1e64ae | [
"Apache-2.0"
] | 8 | 2019-04-13T15:11:11.000Z | 2020-03-19T17:14:18.000Z | util/mod_count_in_range.cpp | sekiya9311/CplusplusAlgorithmLibrary | f29dbdfbf3594da055185e39765880ff5d1e64ae | [
"Apache-2.0"
] | null | null | null | // 範囲内のmodごとの数
// [l, r] 閉区間
std::vector<long long> mod_count_in_range(long long left, long long right, int mod) {
const long long range = (right - left + 1);
std::vector<long long> mod_count(mod, range / mod);
if (range % mod > 0) {
const int add_of_rest_left = left % mod;
int add_of_rest_right;
if (... | 28.9 | 85 | 0.610727 |
7f5d6320aa10eee491059fc407abd1e679737819 | 366 | cpp | C++ | basic/root.cpp | ray2060/learn-cpp | bcf322d32574e1741a048219acff5697c99b2614 | [
"MIT"
] | null | null | null | basic/root.cpp | ray2060/learn-cpp | bcf322d32574e1741a048219acff5697c99b2614 | [
"MIT"
] | null | null | null | basic/root.cpp | ray2060/learn-cpp | bcf322d32574e1741a048219acff5697c99b2614 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
using namespace std;
string root(string s) {
if (s.size() == 1) return s;
int m;
for (int i = 0; i < s.size(); i ++) m += s[i] - 48;
stringstream st;
st << m;
string t;
st >> t;
return root(t);
}
int main() {
string s;
c... | 15.25 | 55 | 0.510929 |
7f5fd23d9e82092bb4d7066d6d588405d98299aa | 23,640 | cpp | C++ | DesignPages/DesignFormPanel.cpp | LibertyWarriorMusic/DBWorks | 4bda411608cecb86f2cfc7f9319b160ed558a853 | [
"MIT"
] | 1 | 2020-03-10T03:26:50.000Z | 2020-03-10T03:26:50.000Z | DesignPages/DesignFormPanel.cpp | LibertyWarriorMusic/DBWorks | 4bda411608cecb86f2cfc7f9319b160ed558a853 | [
"MIT"
] | 1 | 2020-03-20T05:16:14.000Z | 2020-03-20T05:17:25.000Z | DesignPages/DesignFormPanel.cpp | LibertyWarriorMusic/DBWorks | 4bda411608cecb86f2cfc7f9319b160ed558a853 | [
"MIT"
] | null | null | null | //
// DrawPan.cpp
// P2
//
// Created by Nicholas Zounis on 27/2/20.
//
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/button.h>
#include <wx/string.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/... | 32.383562 | 167 | 0.677876 |
7f60bb0f944ba4d08ab554d599ac5ea4d433bb12 | 19,513 | cc | C++ | Archive/Stroika_FINAL_for_STERL_1992/Library/Graphix/Sources/Shape.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Graphix/Sources/Shape.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Graphix/Sources/Shape.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/Shape.cc,v 1.7 1992/09/11 18:41:55 sterling Exp $
*
* TODO:
*
* - Desperately need the ability to scale shapes - probably shouyld add general
* transform capabilty - at least scale, etc..
*
* Changes:
... | 25.810847 | 129 | 0.656178 |
7f64675a48af53579e50b10fcf74a2893e7bf43b | 730 | cc | C++ | ash/quick_pair/common/account_key_failure.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | ash/quick_pair/common/account_key_failure.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | ash/quick_pair/common/account_key_failure.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/quick_pair/common/account_key_failure.h"
namespace ash {
namespace quick_pair {
std::ostream& operator<<(std::ostream& stream, AccountKeyF... | 28.076923 | 75 | 0.730137 |
7f648ca329c34393391088b306750f82f8dc4b08 | 5,949 | cpp | C++ | mbed-glove-firmware/sensor_tests.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | null | null | null | mbed-glove-firmware/sensor_tests.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | null | null | null | mbed-glove-firmware/sensor_tests.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | 1 | 2019-01-09T05:16:42.000Z | 2019-01-09T05:16:42.000Z | /*
* Copyright (c) 2016 by Nick Bertoldi, Ben Heckathorn, Ryan O'Keefe,
* Adrian Padin, Timothy Schumacher
*
* 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 withou... | 25.207627 | 109 | 0.593713 |
7f65000118ec2d9709cec5f5792f3d4512aeba66 | 1,607 | hpp | C++ | src/component/symbol_table.hpp | aabaa/mizcore | 5542f080278d79a993df741bd3bf3daa24ac28f9 | [
"MIT"
] | 1 | 2020-11-17T12:47:29.000Z | 2020-11-17T12:47:29.000Z | src/component/symbol_table.hpp | aabaa/mizcore | 5542f080278d79a993df741bd3bf3daa24ac28f9 | [
"MIT"
] | null | null | null | src/component/symbol_table.hpp | aabaa/mizcore | 5542f080278d79a993df741bd3bf3daa24ac28f9 | [
"MIT"
] | 2 | 2020-02-28T09:19:45.000Z | 2020-02-28T09:26:17.000Z | #pragma once
#include <map>
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include "symbol_type.hpp"
#include "tsl/htrie_map.h"
namespace mizcore {
class Symbol;
class SymbolTable
{
public:
// ctor, dtor
SymbolTable();
virtual ~SymbolTable() = default;
SymbolTable(... | 27.237288 | 78 | 0.676416 |
7f6e05b69da4a03db5b0fa024ad65f9d7d59f3ae | 1,312 | cpp | C++ | src/Compiler/CodeGen/For.cpp | BenjaminNavarro/Feral | 579411c36a1cc66f96fcda1b82e3259e22022ac2 | [
"BSD-3-Clause"
] | null | null | null | src/Compiler/CodeGen/For.cpp | BenjaminNavarro/Feral | 579411c36a1cc66f96fcda1b82e3259e22022ac2 | [
"BSD-3-Clause"
] | null | null | null | src/Compiler/CodeGen/For.cpp | BenjaminNavarro/Feral | 579411c36a1cc66f96fcda1b82e3259e22022ac2 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2020, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#include "Internal.hpp"
bool stmt_for_t::gen_code( bcode_t &... | 25.230769 | 99 | 0.664634 |
7f725472e5d2bd0568eeea50d9f6e7e71d806e3a | 4,611 | cc | C++ | file_exchange_client.cc | yitzikc/grpc-file-exchange | 668798c5d2e770f643f696fb65e89b5e5c0e10dd | [
"MIT"
] | 13 | 2020-07-10T18:54:40.000Z | 2021-12-07T22:36:25.000Z | file_exchange_client.cc | yitzikc/grpc-file-exchange | 668798c5d2e770f643f696fb65e89b5e5c0e10dd | [
"MIT"
] | null | null | null | file_exchange_client.cc | yitzikc/grpc-file-exchange | 668798c5d2e770f643f696fb65e89b5e5c0e10dd | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <string>
#include <cstdlib>
#include <cstdint>
#include <utility>
#include <cassert>
#include <sysexits.h>
#include <grpc/grpc.h>
#include <grpc++/channel.h>
#include <grpc++/client_context.h>
#include <grpc++/create_channel.h>
#include... | 29.369427 | 119 | 0.567773 |
7f7265728b572c76da1e29ebe58b29a88f345161 | 2,169 | cpp | C++ | src/core/features/defuse.cpp | mov-rax-rax/gamesneeze | 09b2d9d6ef5b6ad7c9c820f98f1a6339bf1405a1 | [
"MIT"
] | 1 | 2022-01-13T07:05:26.000Z | 2022-01-13T07:05:26.000Z | src/core/features/defuse.cpp | mov-rax-rax/gamesneeze | 09b2d9d6ef5b6ad7c9c820f98f1a6339bf1405a1 | [
"MIT"
] | null | null | null | src/core/features/defuse.cpp | mov-rax-rax/gamesneeze | 09b2d9d6ef5b6ad7c9c820f98f1a6339bf1405a1 | [
"MIT"
] | 1 | 2021-12-31T13:02:42.000Z | 2021-12-31T13:02:42.000Z | #include "../../includes.hpp"
#include "features.hpp"
void Features::Defuse::createMoveStart(Command *cmd) {
auto autoDefuse = CONFIGBOOL("Misc>Misc>Misc>Auto Defuse");
auto silentDefuse = CONFIGBOOL("Misc>Misc>Misc>Silent Defuse");
auto antiAiming = CONFIGINT("Rage>AntiAim>Type") != 0;
if (!(autoDefu... | 30.549296 | 154 | 0.632089 |
7f771b35efe4c9619b2da87401e3ab7679742766 | 3,159 | hpp | C++ | packages/monte_carlo/core/src/MonteCarlo_AdjointPhotonProbeState.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/core/src/MonteCarlo_AdjointPhotonProbeState.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/core/src/MonteCarlo_AdjointPhotonProbeState.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_AdjointPhotonProbeState.hpp
//! \author Alex Robinson
//! \brief Adjoint photon probe state class declaration
//!
//---------------------------------------------------------------------------//
#ifndef MONTE_CAR... | 30.375 | 90 | 0.686926 |
7f7a350edbf1b381dbd5d2994a11701cbd83b77b | 3,015 | cpp | C++ | Ejercicios/Ejercicio44-Punto-de-Venta-parte-V/productos.cpp | DanielaVH/cpp | c54c853681cdd46d85172546b14019ed48909999 | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio44-Punto-de-Venta-parte-V/productos.cpp | DanielaVH/cpp | c54c853681cdd46d85172546b14019ed48909999 | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio44-Punto-de-Venta-parte-V/productos.cpp | DanielaVH/cpp | c54c853681cdd46d85172546b14019ed48909999 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
extern void agregarProducto(string descripcion, int cantidad, double precio);
void productos(int opcion)
{
system("cls");
int opcionProducto = 0;
switch (opcion)
{
case 1:
{
cout << "BEBIDAS CALIENTES" << endl;
cout << "******************" << endl;
... | 22.333333 | 78 | 0.448093 |
7f7eb0c1e0f936d0f4e7a2690c69c17e9e1d80e0 | 5,504 | cpp | C++ | tests/bint_div.cpp | mrdcvlsc/bintlib | 9290f779eb50101bd35b00148eea94c5c30dcc61 | [
"MIT"
] | 2 | 2020-10-30T06:39:01.000Z | 2020-10-31T02:18:00.000Z | tests/bint_div.cpp | mrdcvlsc/bintlib | 9290f779eb50101bd35b00148eea94c5c30dcc61 | [
"MIT"
] | 2 | 2020-10-30T06:49:01.000Z | 2020-10-31T11:12:42.000Z | tests/bint_div.cpp | mrdcvlsc/bintlib | 9290f779eb50101bd35b00148eea94c5c30dcc61 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#ifndef _MAKE_LIB
#include "../core.hpp"
#else
#include <bint.hpp>
#endif
#include "mini-test.hpp"
int main() { START_TEST;
// test variables
apa::bint ONE = 1, ZERO = 0;
apa::bint NUM1(
"0x19cf0546f6a3fc1e93d8dbda5ea2889551cb7248d21125fbf60... | 45.866667 | 90 | 0.646802 |
7f7fd0a272828d9329a064393a4fb8097fcfcaf6 | 2,850 | cpp | C++ | ardupilot/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_PX4.cpp | quadrotor-IITKgp/emulate_GPS | 3c888d5b27b81fb17e74d995370f64bdb110fb65 | [
"MIT"
] | 1 | 2021-07-17T11:37:16.000Z | 2021-07-17T11:37:16.000Z | ardupilot/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_PX4.cpp | arl-kgp/emulate_GPS | 3c888d5b27b81fb17e74d995370f64bdb110fb65 | [
"MIT"
] | null | null | null | ardupilot/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_PX4.cpp | arl-kgp/emulate_GPS | 3c888d5b27b81fb17e74d995370f64bdb110fb65 | [
"MIT"
] | null | null | null | /*
Battery SMBus PX4 driver
*/
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed ... | 31.318681 | 137 | 0.669825 |
7f8142b6435655dade52964f1658b48d4b45c721 | 276 | hpp | C++ | tools/editor/utils.hpp | ijacquez/SMT-DS-SH | 6fe6c15b76fb74ecb5bbb735139aa5791d79fcb8 | [
"MIT"
] | 6 | 2015-10-03T20:51:04.000Z | 2019-10-21T04:19:06.000Z | tools/editor/utils.hpp | ijacquez/SMT-DS-SH | 6fe6c15b76fb74ecb5bbb735139aa5791d79fcb8 | [
"MIT"
] | null | null | null | tools/editor/utils.hpp | ijacquez/SMT-DS-SH | 6fe6c15b76fb74ecb5bbb735139aa5791d79fcb8 | [
"MIT"
] | null | null | null | #ifndef UTILS_HPP
#define UTILS_HPP
#include "jansson.h"
#define BIG2LE_16(x) (((x) & 0x00FF) << 8) | (((x) >> 8) & 0x00FF)
#define BIG2LE_32(x) (BIG2LE_16((x) & 0x0000FFFF) << 16) | \
BIG2LE_16(((x) >> 16) & 0x0000FFFF)
#endif /* !UTILS_HPP */
| 25.090909 | 80 | 0.547101 |
7f83d6e4766ea81b9e559b467aa37682d6ef14dc | 10,242 | cc | C++ | tls/src/params.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 40 | 2015-03-10T07:55:39.000Z | 2021-06-11T10:13:56.000Z | tls/src/params.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 297 | 2015-04-30T10:02:04.000Z | 2022-03-09T13:31:54.000Z | tls/src/params.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 29 | 2015-08-03T10:04:15.000Z | 2021-11-25T12:21:00.000Z | /*
** Copyright 2009-2013,2021 Centreon
**
** 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 agr... | 33.03871 | 80 | 0.647335 |
7f872e524a56490cc8fea1da694a27bdc9480b4a | 296 | cpp | C++ | main.cpp | RoliSoft/Obfuscation-Tunnel | cbd31a1c80a7bd5b51057e1a976628727fc8987e | [
"BSD-2-Clause"
] | 11 | 2020-09-15T11:59:41.000Z | 2022-02-11T16:49:08.000Z | main.cpp | RoliSoft/Obfuscation-Tunnel | cbd31a1c80a7bd5b51057e1a976628727fc8987e | [
"BSD-2-Clause"
] | 2 | 2021-11-13T12:38:01.000Z | 2021-12-06T01:38:07.000Z | main.cpp | RoliSoft/Obfuscation-Tunnel | cbd31a1c80a7bd5b51057e1a976628727fc8987e | [
"BSD-2-Clause"
] | 2 | 2021-08-12T07:43:16.000Z | 2021-08-23T00:12:20.000Z | #include "factory.cpp"
int main(int argc, char* argv[])
{
signal(SIGINT, sig_handler);
struct session session;
int ret = parse_arguments(argc, argv, &session);
if (ret == EXIT_SUCCESS || ret == EXIT_FAILURE)
{
return ret;
}
return run_session(&session);
}
| 17.411765 | 52 | 0.618243 |
7f8da4f6e297a835989c59cdb729061244ed91ea | 401 | cpp | C++ | vjezbe3/zadatak2/main.cpp | Miillky/objektno_orijentirano_programiranje | b41fe690c25a73acd09aff5606524b9e43f0b38a | [
"MIT"
] | null | null | null | vjezbe3/zadatak2/main.cpp | Miillky/objektno_orijentirano_programiranje | b41fe690c25a73acd09aff5606524b9e43f0b38a | [
"MIT"
] | null | null | null | vjezbe3/zadatak2/main.cpp | Miillky/objektno_orijentirano_programiranje | b41fe690c25a73acd09aff5606524b9e43f0b38a | [
"MIT"
] | null | null | null | // Prošlu strukturu i funkcije implementirajte u zasebnoj datoteci zaglavlja i implementacije(kompleksniBroj.hpp i KompleksniBroj.cpp)
// U glavnoj datoteci includajte vašu datoteku i prikažite korištenje strukture i pripadnih funkcija.
#include <iostream>
#include "KompleksniBroj.hpp"
int main(){
prikaziKompleks... | 40.1 | 134 | 0.783042 |
7f91fcd150dfc74048f2f3e4c806d85457f6bb95 | 50 | hpp | C++ | include/JsonLoader.hpp | 0x0015/CP2DG | ae919b15dc06631171116b927ff46d7d98da4dd9 | [
"MIT"
] | 2 | 2021-10-06T03:11:06.000Z | 2022-01-06T18:53:43.000Z | include/JsonLoader.hpp | 0x0015/CP2DG | ae919b15dc06631171116b927ff46d7d98da4dd9 | [
"MIT"
] | null | null | null | include/JsonLoader.hpp | 0x0015/CP2DG | ae919b15dc06631171116b927ff46d7d98da4dd9 | [
"MIT"
] | null | null | null | #pragma once
#include "JsonLoader/JsonLoader.hpp"
| 16.666667 | 36 | 0.8 |
7f94b0353c36e3bed4d29bfca747840bde03bc43 | 9,396 | cpp | C++ | test/test_core_estimator.cpp | accosmin/libnan | a47c28f22df2c0943697dccb007de946090c7705 | [
"MIT"
] | null | null | null | test/test_core_estimator.cpp | accosmin/libnan | a47c28f22df2c0943697dccb007de946090c7705 | [
"MIT"
] | null | null | null | test/test_core_estimator.cpp | accosmin/libnan | a47c28f22df2c0943697dccb007de946090c7705 | [
"MIT"
] | null | null | null | #include <fstream>
#include <utest/utest.h>
#include "fixture/enum.h"
#include <nano/core/stream.h>
#include <nano/core/estimator.h>
using namespace nano;
static auto to_string(const estimator_t& estimator)
{
std::ostringstream stream;
UTEST_REQUIRE_NOTHROW(estimator.write(stream));
UTEST_REQUIRE(stream);... | 32.4 | 112 | 0.70083 |
7f94c3b7cd19f83bf8b6492a094d92257be28f5e | 718 | cpp | C++ | stable.cpp | okosan/AStar | 867da5417a97cafd620db9016c8b0efb399b139c | [
"MIT"
] | 4 | 2016-11-11T10:50:07.000Z | 2021-04-01T10:06:51.000Z | stable.cpp | okosan/AStar | 867da5417a97cafd620db9016c8b0efb399b139c | [
"MIT"
] | 1 | 2020-02-11T15:47:43.000Z | 2020-02-11T15:47:43.000Z | stable.cpp | okosan/AStar | 867da5417a97cafd620db9016c8b0efb399b139c | [
"MIT"
] | 1 | 2017-10-23T07:24:55.000Z | 2017-10-23T07:24:55.000Z | #include "stable.h"
void xfBeep(int freq, int duration)
{
std::printf ("beeping!!!");
}
bool xfBetween(double val, double val1, double val2)
{
if (val1<val2)
{
if ((val >= val1) && (val <= val2))
return true;
return false;
}
else
{
if ((v... | 17.95 | 57 | 0.448468 |
7f967881b38f927953ac0ffa7aca6fae3a2413f8 | 663 | cpp | C++ | Programming-Contest/Number Theory/BSGS.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | Programming-Contest/Number Theory/BSGS.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | Programming-Contest/Number Theory/BSGS.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | /*
Shnak's Baby-Step-giant-Step Algorithm
a^x = b (mod m)
return the power x where a , b , m given
*/
#define mod 100000007
ll solve (ll a, ll b, ll m)
{
ll n = (ll) sqrt (m + .0) + 1 , an = 1 , curr ;
rep(i,n) an = (an * a) % m;
map<ll,ll> vals;
curr = an ;
For(i,n){
if ( !vals.count(curr) ) vals[ curr ... | 21.387097 | 76 | 0.523379 |
7f99b358e33664d4255b10c28de67d0b5d3f8ca5 | 6,590 | cc | C++ | chrome/browser/chromeos/status/clock_menu_button.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-02-20T14:25:04.000Z | 2019-12-13T13:58:28.000Z | chrome/browser/chromeos/status/clock_menu_button.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | chrome/browser/chromeos/status/clock_menu_button.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2020-01-12T00:55:53.000Z | 2020-11-04T06:36:41.000Z | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/status/clock_menu_button.h"
#include "base/i18n/time_formatting.h"
#include "base/string_util.h"
#include "base/tim... | 35.240642 | 80 | 0.667527 |
7f9b48ea988e27f03c7214538543556df8cbbc24 | 4,133 | cpp | C++ | deps/MFEM/ComputeFemMassMatrix1/ComputeFemMassMatrixMfem.cpp | kailaix/AdFem.jl | 77eabfeedb297570a42d1f26575c59f0712796d9 | [
"MIT"
] | 47 | 2020-10-18T01:33:11.000Z | 2022-03-16T00:13:24.000Z | deps/MFEM/ComputeFemMassMatrix1/ComputeFemMassMatrixMfem.cpp | kailaix/AdFem.jl | 77eabfeedb297570a42d1f26575c59f0712796d9 | [
"MIT"
] | 10 | 2020-10-19T03:51:31.000Z | 2022-03-22T23:38:46.000Z | deps/MFEM/ComputeFemMassMatrix1/ComputeFemMassMatrixMfem.cpp | kailaix/AdFem.jl | 77eabfeedb297570a42d1f26575c59f0712796d9 | [
"MIT"
] | 11 | 2020-11-05T11:34:16.000Z | 2022-03-03T19:30:09.000Z | #include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/tensor_shape.h"
#include "tensorflow/core/platform/default/logging.h"
#include "tensorflow/core/framework/shape_inference.h"
#include<cmath>
// Signatures for GPU kernels here
using namespace tensorflow;
#include "ComputeFemMassMat... | 28.503448 | 113 | 0.66586 |
7f9ca1a35e2ae5f8187a902da1f17182140c90ad | 364 | cpp | C++ | src/codepulsar/pulsar/Parser.cpp | FireTheLost/JPulse | 1c462ef4c605bd844a4a5fb9a28a4e91233286be | [
"MIT"
] | null | null | null | src/codepulsar/pulsar/Parser.cpp | FireTheLost/JPulse | 1c462ef4c605bd844a4a5fb9a28a4e91233286be | [
"MIT"
] | null | null | null | src/codepulsar/pulsar/Parser.cpp | FireTheLost/JPulse | 1c462ef4c605bd844a4a5fb9a28a4e91233286be | [
"MIT"
] | null | null | null | #include "Parser.h"
Pulsar::Parser::Parser(std::string sourceCode) {
this->sourceCode = sourceCode;
}
void Pulsar::Parser::parse() {
Pulsar::Lexer lexer = Lexer(this->sourceCode);
this->tokens = lexer.tokenize();
this->errors = lexer.getErrors();
if (this->errors->hasError()) return;
Pulsar:... | 24.266667 | 53 | 0.67033 |