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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8866263f42cea726dfa486f18f253b776670aa6a | 1,278 | cpp | C++ | daily_challenge/September_LeetCoding_Challenge_2021/minimizeDistanceToGasStation.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | 1 | 2021-01-27T16:37:36.000Z | 2021-01-27T16:37:36.000Z | daily_challenge/September_LeetCoding_Challenge_2021/minimizeDistanceToGasStation.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | daily_challenge/September_LeetCoding_Challenge_2021/minimizeDistanceToGasStation.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | /**
* @author : archit
* @GitHub : archit-1997
* @Email : architsingh456@gmail.com
* @file : minimizeDistanceToGasStation.cpp
* @created : Saturday Sep 18, 2021 02:17:22 IST
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define P pair<int,int>
void init(){
fr... | 23.666667 | 83 | 0.536776 | archit-1997 |
88671c98ae280e3f980ab324078c10e768fd8152 | 304 | cpp | C++ | codeforces/codeforces_100_days/B/2.cpp | shivanshu-semwal/competitive-programming | b1c7fe1f9d5807fff47890267cc9936c9ff95f58 | [
"MIT"
] | 1 | 2021-09-24T03:57:42.000Z | 2021-09-24T03:57:42.000Z | codeforces/codeforces_100_days/B/2.cpp | shivanshu-semwal/competitive-programming | b1c7fe1f9d5807fff47890267cc9936c9ff95f58 | [
"MIT"
] | null | null | null | codeforces/codeforces_100_days/B/2.cpp | shivanshu-semwal/competitive-programming | b1c7fe1f9d5807fff47890267cc9936c9ff95f58 | [
"MIT"
] | null | null | null | // https://codeforces.com/problemset/problem/734/B
#include <iostream>
using namespace std;
int main() {
long k2, k3, k5, k6;
cin >> k2 >> k3 >> k5 >> k6;
long min1 = std::min(k2, min(k5, k6));
long long int ans = min1 * 256 + min(k2 - min1, k3) * 32;
cout << ans;
return 0;
}
| 20.266667 | 61 | 0.565789 | shivanshu-semwal |
886afed8d4178ac0a3781e164a789ffe6f917f2f | 529 | cpp | C++ | clang/test/Analysis/unified-sources/source1.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,102 | 2015-01-04T02:28:35.000Z | 2022-03-30T12:53:41.000Z | clang/test/Analysis/unified-sources/source1.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/unified-sources/source1.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 1,868 | 2015-01-03T04:27:11.000Z | 2022-03-25T13:37:35.000Z | // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
// This test tests that the warning is here when it is included from
// the unified sources file. The run-line in this file is there
// only to suppress LIT warning for the complete lack of run-line.
int foo(int x) {
if (x) {}
return 1 / x; // expected-w... | 33.0625 | 68 | 0.725898 | medismailben |
886c4cd447dee614e0df4c02fbf260fdb26218e9 | 1,201 | hpp | C++ | include/caffe/util/parallel.hpp | whitenightwu/caffe-quant-TI | df1551f184d9d5e850650af0e7a68206d09cea2d | [
"MIT"
] | 2 | 2019-06-06T13:15:46.000Z | 2019-06-20T08:14:45.000Z | include/caffe/util/parallel.hpp | whitenightwu/caffe-quant-TI | df1551f184d9d5e850650af0e7a68206d09cea2d | [
"MIT"
] | null | null | null | include/caffe/util/parallel.hpp | whitenightwu/caffe-quant-TI | df1551f184d9d5e850650af0e7a68206d09cea2d | [
"MIT"
] | 1 | 2020-03-24T02:04:59.000Z | 2020-03-24T02:04:59.000Z | /**
* TI C++ Reference software for Computer Vision Algorithms (TICV)
* TICV is a software module developed to model computer vision
* algorithms on TI's various platforms/SOCs.
*
* Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
* ALL RIGHTS RESERVED
*/
/**
* @file: parallel.h
* ... | 24.510204 | 105 | 0.642798 | whitenightwu |
8872a557b0e6db1a52000ce44d6176f8cd4af1dd | 3,055 | hpp | C++ | include/espadin/comments_group.hpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | include/espadin/comments_group.hpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | include/espadin/comments_group.hpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | #if !defined(ESPADIN_COMMENTS_GROUP_HPP_)
#define ESPADIN_COMMENTS_GROUP_HPP_
#include <espadin/comment.hpp>
#include <memory>
namespace espadin
{
class ESPADIN_EXPORT comments_group
{
public:
class create_interface
{
public:
virtual ~create_interface() = default;
virtual std::unique_ptr... | 29.375 | 107 | 0.615712 | mexicowilly |
8875e232fa60e8afe8603f10f69eb4d28f7cbc2d | 39,264 | cpp | C++ | src_main/public/zip_utils.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 25 | 2018-02-28T15:04:42.000Z | 2021-08-16T03:49:00.000Z | src_main/public/zip_utils.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 1 | 2019-09-20T11:06:03.000Z | 2019-09-20T11:06:03.000Z | src_main/public/zip_utils.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 9 | 2019-07-31T11:58:20.000Z | 2021-08-31T11:18:15.000Z | // Copyright © 1996-2018, Valve Corporation, All rights reserved.
#include "build/include/build_config.h"
#ifdef OS_WIN
#include "base/include/windows/windows_light.h"
#endif
#include "zip_utils.h"
#include "base/include/base_types.h"
#include "tier0/include/platform.h"
#include "tier1/byteswap.h"
#include "tier1/c... | 30.343122 | 80 | 0.670156 | ArcadiusGFN |
887b0e7e8d39ff75c07236fe027d06843ce6b2f3 | 2,043 | cpp | C++ | 01/solution.cpp | IAmBullsaw/AOC-2017 | c320ea275403d261ebc0dbd8f46c8fb62453dc97 | [
"MIT"
] | null | null | null | 01/solution.cpp | IAmBullsaw/AOC-2017 | c320ea275403d261ebc0dbd8f46c8fb62453dc97 | [
"MIT"
] | null | null | null | 01/solution.cpp | IAmBullsaw/AOC-2017 | c320ea275403d261ebc0dbd8f46c8fb62453dc97 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int solveCaptcha(string & captcha) {
captcha.push_back(captcha.front());
string::const_iterator it{captcha.begin()};
int sum{0};
while(it != captcha.end()) {
char letter{*it};
unsigned n{0};
do {
if (letter == *(it+1+n)) {
++n... | 24.614458 | 57 | 0.565835 | IAmBullsaw |
887bc69ffdd7ebd817942f6022addd0dd752630f | 5,272 | cc | C++ | cpp_rgb_depth_sync_example/app/src/main/jni/camera_texture_drawable.cc | jimmysoda/tango-examples-c | a6db7947c4d95337a9155a3e0519aa219c385d19 | [
"Apache-2.0"
] | 344 | 2015-01-03T10:36:33.000Z | 2018-02-20T12:02:16.000Z | cpp_rgb_depth_sync_example/app/src/main/jni/camera_texture_drawable.cc | JzHuai0108/tango-examples-c | 51113f2d88d61749ea396b3f5a4bebbf7912327b | [
"Apache-2.0"
] | 64 | 2015-01-21T17:16:31.000Z | 2018-01-02T19:42:07.000Z | cpp_rgb_depth_sync_example/app/src/main/jni/camera_texture_drawable.cc | JzHuai0108/tango-examples-c | 51113f2d88d61749ea396b3f5a4bebbf7912327b | [
"Apache-2.0"
] | 192 | 2015-01-03T14:36:28.000Z | 2018-03-01T05:28:21.000Z | /*
* Copyright 2014 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 applic... | 37.928058 | 80 | 0.725152 | jimmysoda |
887d6855c0d662ef850a463539d0e0246c91463c | 541 | cpp | C++ | src/command/RenderWindowCommand.cpp | tody411/SimpleMeshViewer | 25aa62371bf815316244387cb1a69a27b47f80c0 | [
"MIT"
] | null | null | null | src/command/RenderWindowCommand.cpp | tody411/SimpleMeshViewer | 25aa62371bf815316244387cb1a69a27b47f80c0 | [
"MIT"
] | null | null | null | src/command/RenderWindowCommand.cpp | tody411/SimpleMeshViewer | 25aa62371bf815316244387cb1a69a27b47f80c0 | [
"MIT"
] | null | null | null |
/*!
\file RenderWindowCommand.cpp
\author Tody
RenderWindowCommand definition.
date 2015/12/20
*/
#include "RenderWindowCommand.h"
#include <QFileDialog>
void RenderWindowCommand::doImp ()
{
if ( _outputFile == "" )
{
_outputFile = QFileDialog::getSaveFileName ( nullptr,
... | 20.037037 | 61 | 0.569316 | tody411 |
887f1664c29e830bcfde11052ab662a9c323950c | 5,611 | cpp | C++ | src/slaggy-engine/slaggy-engine/engine/Shader.cpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | 1 | 2021-09-24T23:13:13.000Z | 2021-09-24T23:13:13.000Z | src/slaggy-engine/slaggy-engine/engine/Shader.cpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | null | null | null | src/slaggy-engine/slaggy-engine/engine/Shader.cpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | 2 | 2020-06-24T07:10:13.000Z | 2022-03-08T17:19:12.000Z | #include "Shader.hpp"
#include <fstream>
#include <sstream>
#include <iostream>
#include <glm/gtc/type_ptr.hpp>
namespace slaggy
{
std::map<Shader::ShaderType, Shader::ShaderTypeInfo> Shader::_shaderTypes =
{
{ShaderType::VERTEX, {"VERTEX", GL_VERTEX_SHADER}},
{ShaderType::FRAGMENT, {"FRAGMENT", GL_FRAGMENT_S... | 22.716599 | 112 | 0.679023 | SlaggyWolfie |
8881516f07cb80f2fe4b38071deddf5a594c62a4 | 5,164 | cpp | C++ | 2018/0325_ARC093/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 2018/0325_ARC093/E.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 2018/0325_ARC093/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-3-25 21:58: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)... | 19.785441 | 103 | 0.480442 | kazunetakahashi |
88842f01a273fce974ec20e86b3a43e9eedd4796 | 1,412 | cpp | C++ | src/problem79/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | 1 | 2016-09-29T14:23:59.000Z | 2016-09-29T14:23:59.000Z | src/problem79/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | null | null | null | src/problem79/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
bool exist(vector<vector<char>>& board, string word) {
len = word.size();
if (len == 0) {
return false;
}
row = board.size();
if (row == 0)
return false;
col = board[0].size();
if (col == 0)
return f... | 31.377778 | 98 | 0.445467 | MyYaYa |
88858ae7961ecbe1d2a6028711cbfbdb154ef098 | 14,290 | cpp | C++ | tests/algorithms/QAOATester.cpp | Milos9304/Quacc | f9ba6076a4d55286d61684fdadf92164cfc5bff0 | [
"MIT"
] | 1 | 2021-03-02T11:14:43.000Z | 2021-03-02T11:14:43.000Z | tests/algorithms/QAOATester.cpp | Milos9304/Quacc | f9ba6076a4d55286d61684fdadf92164cfc5bff0 | [
"MIT"
] | null | null | null | tests/algorithms/QAOATester.cpp | Milos9304/Quacc | f9ba6076a4d55286d61684fdadf92164cfc5bff0 | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2020 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompanies... | 38.005319 | 172 | 0.589363 | Milos9304 |
8888712d33dd1ac907427e6d70c7b735db6dce07 | 3,491 | cpp | C++ | sketches/signpost/samd21timerirq.cpp | xdylanm/signpost | 20622b2928f1955f84882a255f6262f5392b700d | [
"MIT"
] | null | null | null | sketches/signpost/samd21timerirq.cpp | xdylanm/signpost | 20622b2928f1955f84882a255f6262f5392b700d | [
"MIT"
] | null | null | null | sketches/signpost/samd21timerirq.cpp | xdylanm/signpost | 20622b2928f1955f84882a255f6262f5392b700d | [
"MIT"
] | null | null | null | #include "samd21timerirq.h"
hw_timer_t tcCreate(int id, uint32_t timer_period_us, bool one_shot)
{
// source clock is always 0
// the same source clock is muxed between TC pairs: [TCC2, TC3], [TC4, TC5]
// Not sure how to support 32 bit clock with interrupt (should pair TC4+TC5 but that didn't work)
hw_timer_... | 31.169643 | 121 | 0.704383 | xdylanm |
888fc2cdf3f2a91c41eecd862c3158cb33cb5fa2 | 782 | cpp | C++ | src/shared/PstAll.cpp | zibneuro/cortexinsilico | d75d1410124b0d2fce83f00987950729bb45736f | [
"MIT"
] | 1 | 2018-07-04T12:37:23.000Z | 2018-07-04T12:37:23.000Z | src/shared/PstAll.cpp | zibneuro/cortexinsilico | d75d1410124b0d2fce83f00987950729bb45736f | [
"MIT"
] | null | null | null | src/shared/PstAll.cpp | zibneuro/cortexinsilico | d75d1410124b0d2fce83f00987950729bb45736f | [
"MIT"
] | 3 | 2019-01-02T10:46:10.000Z | 2022-02-08T12:56:45.000Z | #include "PstAll.h"
#include <QFile>
#include <QTextStream>
void PstAll::load(QString filename) {
QFile file(filename);
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
const QString msg =
QString("Error reading features file. Could not open file %1")
.arg(filename);
throw std::... | 25.225806 | 70 | 0.630435 | zibneuro |
889048e718aec3cb4029716789daa16ce803a323 | 1,071 | cpp | C++ | src/measurecurrent.cpp | WAAM-UFJF/Ensaio-Frequencia | 7063eb764872f5039c5ce203c894402d7edaab46 | [
"MIT"
] | null | null | null | src/measurecurrent.cpp | WAAM-UFJF/Ensaio-Frequencia | 7063eb764872f5039c5ce203c894402d7edaab46 | [
"MIT"
] | null | null | null | src/measurecurrent.cpp | WAAM-UFJF/Ensaio-Frequencia | 7063eb764872f5039c5ce203c894402d7edaab46 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <Adafruit_INA219.h>
// Definição do sensor de corrente e tensão.
Adafruit_INA219 ina219_0 (0x40);
// Define o valor de amostras para a media movel
static const int N = 128;
static const float n = 1.0/N;
static float mediaMovel[N];
static int contador=0;
void inicializaINA(){
while ... | 22.787234 | 54 | 0.612512 | WAAM-UFJF |
88906223a4d3d9e5c88edaf0266e2134e5a36e9c | 9,716 | cpp | C++ | Sources Age of Enigma/Scene_Island_Dive.cpp | calidrelle/Gamecodeur | 4449ea1dce02b8f08e39d258d864546fcc9b2fc6 | [
"CC0-1.0"
] | 29 | 2016-05-04T08:22:46.000Z | 2022-01-27T10:20:55.000Z | Sources Age of Enigma/Scene_Island_Dive.cpp | calidrelle/Gamecodeur | 4449ea1dce02b8f08e39d258d864546fcc9b2fc6 | [
"CC0-1.0"
] | 1 | 2018-11-25T14:12:39.000Z | 2018-11-25T14:12:39.000Z | Sources Age of Enigma/Scene_Island_Dive.cpp | calidrelle/Gamecodeur | 4449ea1dce02b8f08e39d258d864546fcc9b2fc6 | [
"CC0-1.0"
] | 49 | 2016-04-29T19:43:42.000Z | 2022-02-19T16:13:35.000Z | /*
* SceneFondMarin.cpp
*
* Created by Rockford on 19/04/10.
* Copyright 2010 Casual Games France. All rights reserved.
*
*/
#include "EScene.h"
#include "Scene_Island_Dive.h"
#include "ESceneDirector.h"
#include "SoundBank.h"
#include "MyGame.h"
#include <string>
#include "EMiniJeuTemplate.h"
#include "Globa... | 32.066007 | 138 | 0.63555 | calidrelle |
88918310cc9ef181dac2f71083d8c5fa8b11eedf | 12,982 | cxx | C++ | inetcore/wininet/handles/ftp.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/wininet/handles/ftp.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/wininet/handles/ftp.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1994 Microsoft Corporation
Module Name:
ftp.cxx
Abstract:
Contains methods for FTP_FIND_HANDLE_OBJECT and FTP_FILE_HANDLE_OBJECT classes
Contents:
RMakeFtpFindObjectHandle
RMakeFtpFileObjectHandle
RMakeFtpErrorObjectHandle
FTP_ERROR_H... | 22.577391 | 83 | 0.561778 | npocmaka |
8895a634fb861c4d0f7d42812b8a21a98dce0726 | 1,557 | hpp | C++ | Game/Physics.hpp | Zakhar-V/Game32k | 1b44efb539c0382500511cb0190f00ccbfbe3243 | [
"MIT"
] | null | null | null | Game/Physics.hpp | Zakhar-V/Game32k | 1b44efb539c0382500511cb0190f00ccbfbe3243 | [
"MIT"
] | null | null | null | Game/Physics.hpp | Zakhar-V/Game32k | 1b44efb539c0382500511cb0190f00ccbfbe3243 | [
"MIT"
] | null | null | null | #pragma once
#include "Scene.hpp"
//----------------------------------------------------------------------------//
// Defs
//----------------------------------------------------------------------------//
//----------------------------------------------------------------------------//
// PhysicsBody
//---... | 22.897059 | 81 | 0.23571 | Zakhar-V |
889c2d23486e34c3f670540e701c19075f50970f | 5,422 | cpp | C++ | library/uapki/src/api/digest.cpp | DJm00n/UAPKI | 7ced3adc6d2990c88cc48b273d44ec99489a0282 | [
"BSD-2-Clause"
] | null | null | null | library/uapki/src/api/digest.cpp | DJm00n/UAPKI | 7ced3adc6d2990c88cc48b273d44ec99489a0282 | [
"BSD-2-Clause"
] | null | null | null | library/uapki/src/api/digest.cpp | DJm00n/UAPKI | 7ced3adc6d2990c88cc48b273d44ec99489a0282 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, The UAPKI Project Authors.
*
* 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 ... | 30.460674 | 110 | 0.69716 | DJm00n |
88a0031164db190941245acab3b8bb995ce5c9d2 | 637 | cpp | C++ | rt/rt/cameras/perspective.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/cameras/perspective.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/cameras/perspective.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | #include <rt/cameras/perspective.h>
#include <rt/ray.h>
#include <cmath>
#include <iostream>
namespace rt
{
PerspectiveCamera::PerspectiveCamera(const Point& center, const Vector& forward,
const Vector& up, float verticalOpeningAngle, float horizontalOpeningAngle)
: center(center)
, focal(forward.normalize())... | 23.592593 | 80 | 0.704867 | DasNaCl |
88a1ef50564b78b62b5e7e2bab2b98d5beb9b829 | 32 | cpp | C++ | code/source/Octree.cpp | MajiKau/MoosEngine | 3fca25f52129a33f438d0b3477a810d1f6c83a3f | [
"MIT"
] | null | null | null | code/source/Octree.cpp | MajiKau/MoosEngine | 3fca25f52129a33f438d0b3477a810d1f6c83a3f | [
"MIT"
] | null | null | null | code/source/Octree.cpp | MajiKau/MoosEngine | 3fca25f52129a33f438d0b3477a810d1f6c83a3f | [
"MIT"
] | null | null | null | #include "code/headers/Octree.h" | 32 | 32 | 0.78125 | MajiKau |
88ac57c8e8ba8ed8fe17c3605653a0daff8d98d4 | 4,482 | cpp | C++ | test/test_serialization.cpp | MikhailTerekhov/mdso | e032083bc6da6548718a5d222ec4016189ec2dc8 | [
"MIT"
] | 7 | 2020-09-11T11:27:08.000Z | 2022-03-22T02:12:07.000Z | test/test_serialization.cpp | MikhailTerekhov/mdso | e032083bc6da6548718a5d222ec4016189ec2dc8 | [
"MIT"
] | null | null | null | test/test_serialization.cpp | MikhailTerekhov/mdso | e032083bc6da6548718a5d222ec4016189ec2dc8 | [
"MIT"
] | 1 | 2020-09-11T19:52:59.000Z | 2020-09-11T19:52:59.000Z | #include "../samples/mfov/reader/MultiFovReader.h"
#include "output/TrajectoryWriter.h"
#include "system/DsoSystem.h"
#include "system/serialization.h"
#include "util/flags.h"
#include <gtest/gtest.h>
using namespace fishdso;
DEFINE_string(mfov_dir, "/shared/datasets/mfov",
"Path to the MultiFoV dataset... | 36.145161 | 79 | 0.681169 | MikhailTerekhov |
88ae1d04c6346c2df3ad3805957ec45b2995839f | 3,458 | cpp | C++ | lib/cpp/vpath.cpp | fooofei/c_cpp | 83b780fd48cd3c03fd3850fb297576d5fc907955 | [
"MIT"
] | null | null | null | lib/cpp/vpath.cpp | fooofei/c_cpp | 83b780fd48cd3c03fd3850fb297576d5fc907955 | [
"MIT"
] | null | null | null | lib/cpp/vpath.cpp | fooofei/c_cpp | 83b780fd48cd3c03fd3850fb297576d5fc907955 | [
"MIT"
] | null | null | null |
#include "vpath.h"
/* cannot use namespace base {}, will cause a link error */
#include <cstring>
#include "strings_algorithm.h"
#include "whereami/whereami.h"
#include <string>
#ifdef WIN32
#include "encoding/encoding_std.h"
#include <Windows.h>
int
base::path_abspath(const std::string & src, std::string & dst)... | 18.393617 | 95 | 0.635628 | fooofei |
88afb7d94e6e53d06cd5b79a4479b8d188b5659e | 715 | cpp | C++ | Jolt/Physics/Collision/CollisionGroup.cpp | All8Up/JoltPhysics | 751d13891f5bd8850863ad236eaa3c340e90de9a | [
"MIT"
] | 1,311 | 2021-08-16T07:37:05.000Z | 2022-03-31T21:13:39.000Z | Jolt/Physics/Collision/CollisionGroup.cpp | All8Up/JoltPhysics | 751d13891f5bd8850863ad236eaa3c340e90de9a | [
"MIT"
] | 102 | 2021-08-28T14:41:32.000Z | 2022-03-31T20:25:55.000Z | Jolt/Physics/Collision/CollisionGroup.cpp | All8Up/JoltPhysics | 751d13891f5bd8850863ad236eaa3c340e90de9a | [
"MIT"
] | 65 | 2021-08-16T07:59:04.000Z | 2022-03-28T06:18:49.000Z | // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
// SPDX-License-Identifier: MIT
#include <Jolt.h>
#include <Physics/Collision/CollisionGroup.h>
#include <ObjectStream/TypeDeclarations.h>
#include <Core/StreamIn.h>
#include <Core/StreamOut.h>
namespace JPH {
JPH_IMPLEMENT_SERIALIZABLE_NON_VIRTUAL(CollisionGroup)
{
JPH... | 22.34375 | 63 | 0.801399 | All8Up |
88b496e0c27305383e61cbd6071a4e8dcf07d912 | 2,372 | cpp | C++ | Hackerrank/30 Days of Code/C++/day 24.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Hackerrank/30 Days of Code/C++/day 24.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Hackerrank/30 Days of Code/C++/day 24.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | #include <cstddef>
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
class Node
{
public:
int data;
Node *next;
Node(int d){
data=d;
next=NULL;
}
};
class Solution{
public:
Node* re... | 25.782609 | 70 | 0.462901 | Next-Gen-UI |
88b4bbed90633e0e94837c47bc3a79716d3bcf98 | 1,923 | hpp | C++ | lib/abcresub/abcresub/vec_wrd.hpp | osamamowafy/mockturtle | 840ff314e9f5301686790a517c383240f1403588 | [
"MIT"
] | 98 | 2018-06-15T09:28:11.000Z | 2022-03-31T15:42:48.000Z | lib/abcresub/abcresub/vec_wrd.hpp | osamamowafy/mockturtle | 840ff314e9f5301686790a517c383240f1403588 | [
"MIT"
] | 257 | 2018-05-09T12:14:28.000Z | 2022-03-30T16:12:14.000Z | lib/abcresub/abcresub/vec_wrd.hpp | osamamowafy/mockturtle | 840ff314e9f5301686790a517c383240f1403588 | [
"MIT"
] | 75 | 2020-11-26T13:05:15.000Z | 2021-12-24T00:28:18.000Z | /*!
\file vec_wrd.hpp
\brief Extracted from ABC
https://github.com/berkeley-abc/abc
\author Alan Mishchenko (UC Berkeley)
*/
#pragma once
namespace abcresub
{
typedef struct Vec_Wrd_t_ Vec_Wrd_t;
struct Vec_Wrd_t_
{
int nCap;
int nSize;
word * pArray;... | 18.141509 | 62 | 0.552782 | osamamowafy |
88b562af416f747ac467974e3d2d9f316b8cc77c | 464 | cpp | C++ | app/bootloader/default_bd.cpp | HPezz/LekaOS | e4c16f52e2c7bd3d75c9d5aefe94eb67dbf5a694 | [
"Apache-2.0"
] | 2 | 2021-10-30T20:51:30.000Z | 2022-01-12T11:18:34.000Z | app/bootloader/default_bd.cpp | HPezz/LekaOS | e4c16f52e2c7bd3d75c9d5aefe94eb67dbf5a694 | [
"Apache-2.0"
] | 343 | 2021-07-15T12:57:08.000Z | 2022-03-29T10:14:06.000Z | app/bootloader/default_bd.cpp | HPezz/LekaOS | e4c16f52e2c7bd3d75c9d5aefe94eb67dbf5a694 | [
"Apache-2.0"
] | 3 | 2021-12-30T02:53:24.000Z | 2022-01-11T22:08:05.000Z | // Leka - LekaOS
// Copyright 2021 APF France handicap
// SPDX-License-Identifier: Apache-2.0
#include "QSPIFBlockDevice.h"
#include "SlicingBlockDevice.h"
auto get_secondary_bd() -> mbed::BlockDevice *
{
// In this case, our flash is much larger than a single image so
// slice it into the size of an image slot
s... | 24.421053 | 81 | 0.734914 | HPezz |
88b604129332b4d2aaec50963831d7d338f8028d | 11,266 | cpp | C++ | SofaKernel/framework/sofa/core/objectmodel/DDGNode.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | SofaKernel/framework/sofa/core/objectmodel/DDGNode.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | SofaKernel/framework/sofa/core/objectmodel/DDGNode.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | 30.781421 | 178 | 0.596041 | sofa-framework |
88c06b07bf56737b41c15500fa2654abfe3423f4 | 3,623 | cpp | C++ | orca/gporca/libnaucrates/src/parser/CParseHandlerWindowSpecList.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | 3 | 2017-12-10T16:41:21.000Z | 2020-07-08T12:59:12.000Z | orca/gporca/libnaucrates/src/parser/CParseHandlerWindowSpecList.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | orca/gporca/libnaucrates/src/parser/CParseHandlerWindowSpecList.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | 4 | 2017-12-10T16:41:35.000Z | 2020-11-28T12:20:30.000Z | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CParseHandlerWindowSpecList.cpp
//
// @doc:
// Implementation of the SAX parse handler class for parsing the list of
// window specifications in the logical window o... | 28.304688 | 102 | 0.617996 | vitessedata |
88c0d1a67be9ae5cb7efbd991daf1c84aa3025c5 | 7,399 | hpp | C++ | stapl_release/stapl/containers/heap/seq_heap.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/containers/heap/seq_heap.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/containers/heap/seq_heap.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
//
// // All rights reserved.
//
// // The information and source code contained herein is the exclusive
// // property of TEES and may not be disclosed, examined or reproduced
// // in whole o... | 30.829167 | 79 | 0.405595 | parasol-ppl |
88c1c46e3fb983cd08d102bef22f878a3d7a3b6f | 42,925 | hpp | C++ | include/libopfcpp/OPF.hpp | thierrypin/LibOPFcpp | 27614069e6600a1a2cab0d016018103b4eea1ee5 | [
"Apache-2.0"
] | 4 | 2019-05-06T14:44:53.000Z | 2021-11-07T17:09:44.000Z | include/libopfcpp/OPF.hpp | thierrypin/LibOPFcpp | 27614069e6600a1a2cab0d016018103b4eea1ee5 | [
"Apache-2.0"
] | null | null | null | include/libopfcpp/OPF.hpp | thierrypin/LibOPFcpp | 27614069e6600a1a2cab0d016018103b4eea1ee5 | [
"Apache-2.0"
] | null | null | null | /******************************************************
* A C++ program for the OPF classification machine, *
* all contained in a single header file. *
* *
* Author: Thierry Moreira *
* ... | 27.855289 | 169 | 0.554595 | thierrypin |
88c3f7528073ffaf1accc9cbeb797b34aa042b57 | 3,505 | cc | C++ | mr_sequential.cc | xtommy-1/cse-labs | 70e64309a77ecd57b277c51c7dac046ca60abefe | [
"Apache-2.0"
] | null | null | null | mr_sequential.cc | xtommy-1/cse-labs | 70e64309a77ecd57b277c51c7dac046ca60abefe | [
"Apache-2.0"
] | null | null | null | mr_sequential.cc | xtommy-1/cse-labs | 70e64309a77ecd57b277c51c7dac046ca60abefe | [
"Apache-2.0"
] | null | null | null | //
// A simple sequential MapReduce for WordCount
//
#include <string>
#include <sstream>
#include <fstream>
#include <iostream>
#include <vector>
#include <algorithm>
#include <regex>
using namespace std;
typedef struct {
string key;
string val;
}
KeyVal;
bool isLetter(char p) {
return ((p >= '... | 25.398551 | 113 | 0.567475 | xtommy-1 |
88c5cdc5e757ed0ae1d023cf9a5501e289a7821d | 214 | cpp | C++ | Loops/displayDigits/displayDigits.cpp | ntjohns1/cppPractice | c9c18bec889cde56217f68996077b9d409ceef04 | [
"Apache-2.0"
] | null | null | null | Loops/displayDigits/displayDigits.cpp | ntjohns1/cppPractice | c9c18bec889cde56217f68996077b9d409ceef04 | [
"Apache-2.0"
] | null | null | null | Loops/displayDigits/displayDigits.cpp | ntjohns1/cppPractice | c9c18bec889cde56217f68996077b9d409ceef04 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int n, digit;
cout<<"enter a number: ";
cin>>n;
while(n>0)
{
digit=n%10;
n=n/10;
cout<<digit<<" ";
}
} | 12.588235 | 30 | 0.448598 | ntjohns1 |
88c6dbab693d2a7388d9602126c089369a4a106d | 20,322 | cpp | C++ | src/caffe/multi_node/fc_thread.cpp | AIROBOTAI/caffe-mnode | e8b03bfb04f09dce21c9b5bbf66dacecb095d3e1 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/multi_node/fc_thread.cpp | AIROBOTAI/caffe-mnode | e8b03bfb04f09dce21c9b5bbf66dacecb095d3e1 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/multi_node/fc_thread.cpp | AIROBOTAI/caffe-mnode | e8b03bfb04f09dce21c9b5bbf66dacecb095d3e1 | [
"BSD-2-Clause"
] | null | null | null |
#include <map>
#include <string>
#include <vector>
#include "caffe/multi_node/fc_thread.hpp"
#include "caffe/multi_node/param_helper.hpp"
namespace caffe {
template <typename Dtype>
ParamBuf<Dtype> *FcWorker<Dtype>::pbuf_ = NULL;
template <typename Dtype>
boost::once_flag FcWorker<Dtype>::once_;
template <typenam... | 27.277852 | 80 | 0.635026 | AIROBOTAI |
88c838d2c91fe5fe7986ecd1f2f442f8990ce5c5 | 4,497 | hh | C++ | firmware/src/MightyBoard/shared/LcdBoard.hh | MalyanSystem/Malyan-M180-Sailfish | 8dd1ee7178a631f0e54c10db91ab3a18b370c363 | [
"AAL"
] | 2 | 2020-08-16T00:24:59.000Z | 2021-03-17T10:37:18.000Z | firmware/src/MightyBoard/shared/LcdBoard.hh | MalyanSystem/Malyan-M180-Sailfish | 8dd1ee7178a631f0e54c10db91ab3a18b370c363 | [
"AAL"
] | null | null | null | firmware/src/MightyBoard/shared/LcdBoard.hh | MalyanSystem/Malyan-M180-Sailfish | 8dd1ee7178a631f0e54c10db91ab3a18b370c363 | [
"AAL"
] | 1 | 2015-02-01T08:47:20.000Z | 2015-02-01T08:47:20.000Z | /*
* Copyright 2013 by Yongzong Lin <yongzong@malyansys.com>
*
* 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.
*
... | 34.592308 | 117 | 0.683567 | MalyanSystem |
88cbb50b6aeae06e424b64a97f1ff0b684e81f2c | 2,868 | cpp | C++ | BinaryTree.cpp | unigoetheradaw/AbstractDataTypes | 5e91af09d159afe68dbb4c19de9387b2139ea5e7 | [
"MIT"
] | null | null | null | BinaryTree.cpp | unigoetheradaw/AbstractDataTypes | 5e91af09d159afe68dbb4c19de9387b2139ea5e7 | [
"MIT"
] | null | null | null | BinaryTree.cpp | unigoetheradaw/AbstractDataTypes | 5e91af09d159afe68dbb4c19de9387b2139ea5e7 | [
"MIT"
] | null | null | null | //
// Created by Robert on 18/09/2019.
//
#include <iostream>
#include <stdio.h>
#include <array>
#include <iomanip>
using namespace std;
class BinaryTree {
private:
typedef struct Node {
int data;
Node *left = nullptr;
Node *right = nullptr;
};
Node *root;
publ... | 23.9 | 67 | 0.448396 | unigoetheradaw |
88d5ff603da09a240e513f72962a969765012868 | 100 | hh | C++ | source/src/hardware/driver/serial/pwmcontroller.hh | Dr-MunirShah/black-sheep | e908203d9516e01f90f4ed4c796cf4143d0df0c0 | [
"MIT"
] | 7 | 2019-07-25T10:06:31.000Z | 2021-02-20T06:00:51.000Z | source/src/hardware/driver/serial/pwmcontroller.hh | Dr-MunirShah/black-sheep | e908203d9516e01f90f4ed4c796cf4143d0df0c0 | [
"MIT"
] | null | null | null | source/src/hardware/driver/serial/pwmcontroller.hh | Dr-MunirShah/black-sheep | e908203d9516e01f90f4ed4c796cf4143d0df0c0 | [
"MIT"
] | 1 | 2019-08-31T23:32:02.000Z | 2019-08-31T23:32:02.000Z | #pragma once
#include "serial.hh"
class PWMController : public Serial{
using Serial::Serial;
};
| 12.5 | 36 | 0.72 | Dr-MunirShah |
88d701af23d93501282275751695a0f0663ced4f | 1,398 | cpp | C++ | src/main.cpp | Enhex/Build-Tool-Abstraction | dafeec5b541525884393508c336b9e390095c154 | [
"MIT"
] | 1 | 2019-12-29T19:31:03.000Z | 2019-12-29T19:31:03.000Z | src/main.cpp | Enhex/Build-Tool-Abstraction | dafeec5b541525884393508c336b9e390095c154 | [
"MIT"
] | null | null | null | src/main.cpp | Enhex/Build-Tool-Abstraction | dafeec5b541525884393508c336b9e390095c154 | [
"MIT"
] | null | null | null | #include <algorithm>
#include "MSBuild.h"
#include "Make.h"
#include "MakePkg.h"
// return true if successfully found the build tool
bool find_and_use_tool(fs::path const& path)
{
auto check_file = [](fs::path const& filepath){
// check for Visual Studio solution file
if (filepath.extension() == ".sln") {
fs:... | 18.891892 | 56 | 0.651645 | Enhex |
88d8af8154336d1822535f51f2ceeb67c80fa6b2 | 6,281 | cpp | C++ | src/chatlib/client/ChatClient.cpp | heftyy/simple-qt-chat | 72c35f0e37bc03197cee09a2919ea559d5222428 | [
"Apache-2.0"
] | 1 | 2019-07-17T07:01:12.000Z | 2019-07-17T07:01:12.000Z | src/chatlib/client/ChatClient.cpp | heftyy/simple-qt-chat | 72c35f0e37bc03197cee09a2919ea559d5222428 | [
"Apache-2.0"
] | null | null | null | src/chatlib/client/ChatClient.cpp | heftyy/simple-qt-chat | 72c35f0e37bc03197cee09a2919ea559d5222428 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <User.pb.h>
#include <ChatMessage.pb.h>
#include <NetworkMessage.pb.h>
#include <communication/Message.h>
#include <communication/MessageDeserializer.h>
#include <chat/ChatConnection.h>
#include <chat/Chatroom.h>
#include <chat/Chatee.h>
#include <chat/commands/CommandParser.h>
#include "... | 30.789216 | 96 | 0.646872 | heftyy |
88d8e2a584a1e2ff43810daacdcc69315a79e0bf | 6,678 | cpp | C++ | test/TestAlgorithm.cpp | AdrianWR/ft_containers | a6b519806448853b97dff385cf72dfc0e97c8ea2 | [
"MIT"
] | null | null | null | test/TestAlgorithm.cpp | AdrianWR/ft_containers | a6b519806448853b97dff385cf72dfc0e97c8ea2 | [
"MIT"
] | 3 | 2022-02-10T12:16:37.000Z | 2022-03-24T03:15:01.000Z | test/TestAlgorithm.cpp | AdrianWR/ft_containers | a6b519806448853b97dff385cf72dfc0e97c8ea2 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "algorithm.hpp"
#include <algorithm>
#include <deque>
#include <map>
#include <string>
#include <vector>
bool pred_int(int a, int b) { return a == b; }
bool pred_str(std::string a, std::string b) { return a == b; }
bool pred_map(std::pair<int, int> a, std::pair<int, int> b) { return ... | 41.7375 | 79 | 0.549117 | AdrianWR |
88de24f2162a886a0a7fc0f5fe81527bf16e7306 | 801 | cpp | C++ | PATest_paractice/PAT_1005.cpp | Ginuo/DataStructure_Algorithm | 3db0b328eeab9270fca14123061551de087d186c | [
"Apache-2.0"
] | null | null | null | PATest_paractice/PAT_1005.cpp | Ginuo/DataStructure_Algorithm | 3db0b328eeab9270fca14123061551de087d186c | [
"Apache-2.0"
] | null | null | null | PATest_paractice/PAT_1005.cpp | Ginuo/DataStructure_Algorithm | 3db0b328eeab9270fca14123061551de087d186c | [
"Apache-2.0"
] | null | null | null | #include<cstdio>
#include<cstring>
int main(){
char num[110];
gets(num);
int len = strlen(num);
int sum = 0;
for(int i = 0; i < len; i++){
sum = sum + (num[i] - '0');
}
int ans[100];
int index = 0;
do{
ans[index++] = sum % 10;
sum = sum / 10;
}while(sum != 0);
for(int i = index-1 ; i >= 0; i--){
... | 14.052632 | 36 | 0.486891 | Ginuo |
88df77e9b7aab27a0fce060078d0e5d3c0ee4812 | 349 | cpp | C++ | Problems/0026. Remove Duplicates from Sorted Array.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0026. Remove Duplicates from Sorted Array.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0026. Remove Duplicates from Sorted Array.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | #define pb push_back
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
vector<int> v = nums;
nums.clear();
if(v.empty())
return 0;
nums.pb(v[0]);
for(int i=1;i<(int)v.size();i++)
if(v[i]!=v[i-1])
nums.pb(v[i]);
... | 21.8125 | 45 | 0.461318 | KrKush23 |
88e076022188d589357a5d2575a22d454d8b15f0 | 1,119 | hpp | C++ | tsdbutil/SerializedStringTuples.hpp | naivewong/timeunion | 8070492d2c6a2d68175e7d026c27b858c2aec8e6 | [
"Apache-2.0"
] | null | null | null | tsdbutil/SerializedStringTuples.hpp | naivewong/timeunion | 8070492d2c6a2d68175e7d026c27b858c2aec8e6 | [
"Apache-2.0"
] | null | null | null | tsdbutil/SerializedStringTuples.hpp | naivewong/timeunion | 8070492d2c6a2d68175e7d026c27b858c2aec8e6 | [
"Apache-2.0"
] | null | null | null | #ifndef SERIALIZEDSTRINGTUPLES_H
#define SERIALIZEDSTRINGTUPLES_H
#include <stdint.h>
#include <boost/function.hpp>
#include "tsdbutil/StringTuplesInterface.hpp"
namespace tsdb {
namespace tsdbutil {
class SerializedStringTuples : public StringTuplesInterface {
public:
typedef boost::function<std::string(uint64... | 23.3125 | 78 | 0.666667 | naivewong |
88e0f213a66a9ca4bda465c4039eb14e71d9b10f | 11,031 | cpp | C++ | Generation.cpp | DiscoveryInstitute/coaly | 3b9617b13887ae30423b192dcf89526d84b64d29 | [
"MIT"
] | null | null | null | Generation.cpp | DiscoveryInstitute/coaly | 3b9617b13887ae30423b192dcf89526d84b64d29 | [
"MIT"
] | null | null | null | Generation.cpp | DiscoveryInstitute/coaly | 3b9617b13887ae30423b192dcf89526d84b64d29 | [
"MIT"
] | null | null | null | #include "Generation.h"
#include <cmath>
#include <limits>
#include <numeric>
#include <vector>
using namespace std;
const double EPSILON = numeric_limits<double>::epsilon();
/**
* Given lambda, the expected number of ancestral children per member of the population,
* calculate the probability of h... | 39.823105 | 159 | 0.637567 | DiscoveryInstitute |
88e10f35fbebe90c460f2cc957b8d6446c2f40f4 | 11,947 | cpp | C++ | src/core/cruntimetracker.cpp | squigglepuff/XonMap | 3c426c9fd66eda77c34d78dd45566062c702f6b9 | [
"Apache-2.0"
] | null | null | null | src/core/cruntimetracker.cpp | squigglepuff/XonMap | 3c426c9fd66eda77c34d78dd45566062c702f6b9 | [
"Apache-2.0"
] | null | null | null | src/core/cruntimetracker.cpp | squigglepuff/XonMap | 3c426c9fd66eda77c34d78dd45566062c702f6b9 | [
"Apache-2.0"
] | null | null | null | #include "core/cruntimetracker.h"
std::unique_ptr<GlobalCVariables> g_pCVars;
std::unique_ptr<CRuntimeTracker> g_CrtTracker{new CRuntimeTracker};
// These are local to this module only!
#if defined(Q_OS_WINDOWS)
static PDH_HQUERY gCpuQuery;
static PDH_HCOUNTER gCpuTotal;
#endif //#if (Q_OS_WINDOWS).
CRunt... | 34.232092 | 167 | 0.594291 | squigglepuff |
88e175c730ccc5858fc0adfa95f6921e7373124c | 1,005 | cpp | C++ | Source/Utilities/percentage_bar.cpp | Hopson97/ASCIImonClassic | a20d0e7272c512434f767d128642a057b5b20ca5 | [
"MIT"
] | 1 | 2018-05-27T18:18:08.000Z | 2018-05-27T18:18:08.000Z | Source/Utilities/percentage_bar.cpp | Hopson97/ASCIImonClassic | a20d0e7272c512434f767d128642a057b5b20ca5 | [
"MIT"
] | null | null | null | Source/Utilities/percentage_bar.cpp | Hopson97/ASCIImonClassic | a20d0e7272c512434f767d128642a057b5b20ca5 | [
"MIT"
] | null | null | null | #include "percentage_bar.h"
#include <iostream>
Percentage_Bar :: Percentage_Bar ()
: m_line ( BARS * 3, '-' )
{ }
void Percentage_Bar :: draw ( int curr, int max, Console::Foreground_Colour fullColour, Console::Foreground_Colour emptyColour )
{
drawLine ();
double full = (double)curr / ((double)max / (... | 22.333333 | 128 | 0.61592 | Hopson97 |
88e1b0fc6478fec4b82d0773bd836b5a33f953f5 | 539 | hpp | C++ | kernel/frame_buffer.hpp | three-0-3/my-mikanos | e85f9e15d735babde1650c6fa87ffed210dece6d | [
"Apache-2.0"
] | null | null | null | kernel/frame_buffer.hpp | three-0-3/my-mikanos | e85f9e15d735babde1650c6fa87ffed210dece6d | [
"Apache-2.0"
] | null | null | null | kernel/frame_buffer.hpp | three-0-3/my-mikanos | e85f9e15d735babde1650c6fa87ffed210dece6d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <memory>
#include <vector>
#include "error.hpp"
#include "frame_buffer_config.hpp"
#include "graphics.hpp"
class FrameBuffer {
public:
// Initialize frame buffer by checking config
Error Initialize(const FrameBufferConfig& config);
FrameBufferWriter& Writer() { return *writer_; }
pri... | 22.458333 | 58 | 0.755102 | three-0-3 |
88e8a13a7f84538b0c31962a5996f038437f4554 | 3,112 | cpp | C++ | BroadCast_QT/group.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | 1 | 2016-01-05T07:24:32.000Z | 2016-01-05T07:24:32.000Z | BroadCast_QT/group.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | null | null | null | BroadCast_QT/group.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2014 by Project Tox <https://tox.im>
This file is part of qTox, a Qt-based graphical interface for Tox.
This program is libre 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 v... | 25.933333 | 80 | 0.646208 | mickelfeng |
88e8a43f641ef1acb02ea5a089baff74f4e0a78c | 4,345 | cpp | C++ | tests/World.cpp | ronsaldo/abstract-physics | dbc23a57bfa369139c786071b2a6db4e84bb16fe | [
"MIT"
] | 10 | 2016-12-11T04:54:18.000Z | 2022-02-27T18:12:18.000Z | tests/World.cpp | ronsaldo/abstract-physics | dbc23a57bfa369139c786071b2a6db4e84bb16fe | [
"MIT"
] | null | null | null | tests/World.cpp | ronsaldo/abstract-physics | dbc23a57bfa369139c786071b2a6db4e84bb16fe | [
"MIT"
] | null | null | null | #include <APHY/aphy.hpp>
#include <UnitTest++.h>
SUITE(Engine)
{
class WorldFixture
{
public:
WorldFixture()
{
aphy_size numEngines;
aphyGetEngines(1, (aphy_engine**)&engine, &numEngines);
CHECK(numEngines > 0);
collisionConfiguration = engi... | 43.45 | 163 | 0.686997 | ronsaldo |
88ec5b1cda61f6c27f6a7f1ebe819eb280adc05a | 636 | cpp | C++ | WinObj/DialogMessageLoop.cpp | ngeor/vc6 | 49d68aad83fec91639dbe556f44333a3a72dae6f | [
"MIT"
] | null | null | null | WinObj/DialogMessageLoop.cpp | ngeor/vc6 | 49d68aad83fec91639dbe556f44333a3a72dae6f | [
"MIT"
] | 2 | 2021-10-03T10:37:59.000Z | 2022-03-18T06:06:30.000Z | WinObj/DialogMessageLoop.cpp | ngeor/vc6 | 49d68aad83fec91639dbe556f44333a3a72dae6f | [
"MIT"
] | null | null | null | // DialogMessageLoop.cpp: implementation of the CDialogMessageLoop class.
//
//////////////////////////////////////////////////////////////////////
#include "StdAfx.h"
#include "DialogMessageLoop.h"
namespace WinObj
{
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
/... | 23.555556 | 73 | 0.52044 | ngeor |
88ee8bc44a0180d2b8890165543ced054bbbad66 | 1,102 | cc | C++ | callback.cc | stories2/Native-Node-JS | 583a2db17b0f398779378294ea21a7034ee2c815 | [
"MIT"
] | null | null | null | callback.cc | stories2/Native-Node-JS | 583a2db17b0f398779378294ea21a7034ee2c815 | [
"MIT"
] | null | null | null | callback.cc | stories2/Native-Node-JS | 583a2db17b0f398779378294ea21a7034ee2c815 | [
"MIT"
] | null | null | null | #include <node.h>
#include <nan.h>
namespace function_arg
{
// using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Object;
using v8::String;
using v8::Value;
using v8::Context;
using v8::Number;
using v8::Function;
void CallbackFunc(const Nan::Function... | 27.55 | 72 | 0.599819 | stories2 |
88efae45ad5296fd391e686bde3f9b4bb9c75edf | 310 | cpp | C++ | LeetCode/Problems/Algorithms/#1480_RunningSumOf1DArray_sol2.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#1480_RunningSumOf1DArray_sol2.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#1480_RunningSumOf1DArray_sol2.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> runningSum(vector<int>& nums) {
const int N = nums.size();
vector<int> prefSum(N);
prefSum[0] = nums[0];
for(int i = 1; i < N; ++i){
prefSum[i] = prefSum[i - 1] + nums[i];
}
return prefSum;
}
}; | 25.833333 | 51 | 0.464516 | Tudor67 |
88f14366e84d6acc899e26bb0cd07e2ba07944c5 | 1,729 | cpp | C++ | C - C++/Painter's partition problem/Painters_Partition_Problem.cpp | ieternalleo/AlgoCode | 77287392ce08fba082307adb588a1495cb42b84e | [
"MIT"
] | 151 | 2020-10-01T07:38:26.000Z | 2022-03-31T10:07:55.000Z | C - C++/Painter's partition problem/Painters_Partition_Problem.cpp | ieternalleo/AlgoCode | 77287392ce08fba082307adb588a1495cb42b84e | [
"MIT"
] | 285 | 2020-10-01T09:34:29.000Z | 2021-08-02T12:13:49.000Z | C - C++/Painter's partition problem/Painters_Partition_Problem.cpp | ieternalleo/AlgoCode | 77287392ce08fba082307adb588a1495cb42b84e | [
"MIT"
] | 275 | 2020-10-01T09:43:51.000Z | 2022-03-30T19:30:53.000Z | // This arena belongs to WhiteDeath99
#include<bits/stdc++.h>
#define endl "\n"
#define IOS ios_base::sync_with_stdio(0);cin.tie(nullptr);cout.tie(nullptr)
#define rep(i,a,b) for(int i=a;i<b;i++)
using namespace std;
bool isPossible(long long int mid, vector<int> C, int paint)
{
int maxi = 0;
for(i... | 18.2 | 113 | 0.423944 | ieternalleo |
88f245d407e5f703cb66c9e7e6d8a2bfee10af68 | 594 | hpp | C++ | mpipe/modules/mod_equalizer.hpp | m-kus/mpipe | 82e2e93200030b89d76544cee13aabedf318ea0c | [
"MIT"
] | 2 | 2019-02-09T14:31:03.000Z | 2019-05-03T05:46:15.000Z | mpipe/modules/mod_equalizer.hpp | m-kus/mpipe | 82e2e93200030b89d76544cee13aabedf318ea0c | [
"MIT"
] | null | null | null | mpipe/modules/mod_equalizer.hpp | m-kus/mpipe | 82e2e93200030b89d76544cee13aabedf318ea0c | [
"MIT"
] | null | null | null | #pragma once
#include <core/mpipe.hpp>
#include <algorithm>
namespace mpipe
{
class ModEqualizer : public Module
{
public:
void Mutate(State* state) override
{
int64_t target_qty = 0;
for (auto& order : state->orders)
{
int64_t common_qty = order.qty / npabs(order.security->leg_factor);
if (... | 16.971429 | 71 | 0.624579 | m-kus |
88f3985112753da6c78e9ce5e64f22ce92f111f4 | 272 | cpp | C++ | RustConsumerInteropSolution/Component2/Class.cpp | raffaeler/RustConsumerInterop | ec3c803ca005cd26608230fe04ce0b4e36836cd0 | [
"MIT"
] | null | null | null | RustConsumerInteropSolution/Component2/Class.cpp | raffaeler/RustConsumerInterop | ec3c803ca005cd26608230fe04ce0b4e36836cd0 | [
"MIT"
] | null | null | null | RustConsumerInteropSolution/Component2/Class.cpp | raffaeler/RustConsumerInterop | ec3c803ca005cd26608230fe04ce0b4e36836cd0 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Class.h"
#include "Class2.g.cpp"
namespace winrt::Component2::implementation
{
int32_t Class2::MyProperty2()
{
return _myProperty2;
}
void Class2::MyProperty2(int32_t value)
{
_myProperty2 = value;
}
}
| 16 | 43 | 0.628676 | raffaeler |
88f7df8b08b019b9ba10bdf20a3bdf89d2dea2b7 | 357 | hpp | C++ | plugins/samefolder/version.hpp | TheChatty/FarManager | 0a731ce0b6f9f48f10eb370240309bed48e38f11 | [
"BSD-3-Clause"
] | 1 | 2019-11-15T10:13:04.000Z | 2019-11-15T10:13:04.000Z | plugins/samefolder/version.hpp | TheChatty/FarManager | 0a731ce0b6f9f48f10eb370240309bed48e38f11 | [
"BSD-3-Clause"
] | 1 | 2021-01-21T13:57:07.000Z | 2021-01-21T13:57:07.000Z | plugins/samefolder/version.hpp | TheChatty/FarManager | 0a731ce0b6f9f48f10eb370240309bed48e38f11 | [
"BSD-3-Clause"
] | null | null | null | #include "farversion.hpp"
#define PLUGIN_BUILD 1
#define PLUGIN_DESC L"Same Folder Plugin for Far Manager"
#define PLUGIN_NAME L"SameFolder"
#define PLUGIN_FILENAME L"SameFolder.dll"
#define PLUGIN_AUTHOR L"Far Group"
#define PLUGIN_VERSION MAKEFARVERSION(FARMANAGERVERSION_MAJOR,FARMANAGERVERSION_MINOR,FARMANAGERVERSI... | 39.666667 | 137 | 0.854342 | TheChatty |
0000307fa69e8ef7c044abee8558d48957d9292a | 566 | cpp | C++ | POO/aulas/aula01/h03.cpp | DaniloJNS/ufs-git | 5ec06c4b98ab17943280e992b53c793deb474301 | [
"MIT"
] | null | null | null | POO/aulas/aula01/h03.cpp | DaniloJNS/ufs-git | 5ec06c4b98ab17943280e992b53c793deb474301 | [
"MIT"
] | null | null | null | POO/aulas/aula01/h03.cpp | DaniloJNS/ufs-git | 5ec06c4b98ab17943280e992b53c793deb474301 | [
"MIT"
] | null | null | null | #include <stdio.h>
float es;
int en;
float ej;
int corrente;
float p;
void novoEmprestimo(float s, int n, float j) {
es = s;
en = n;
ej = j;
corrente = 1;
p = s;
}
float proximaParcela() {
float retorno = p;
corrente++;
if (corrente <= en)
p = p + (p * (ej / 100));
else
p = 0; // não há ma... | 13.804878 | 54 | 0.547703 | DaniloJNS |
0000dfdb0fea5abd19ee2dc1cfe3801c3a6cc439 | 5,240 | cpp | C++ | src/xray/editor/world/sources/particle_graph_node_collection.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/editor/world/sources/particle_graph_node_collection.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/editor/world/sources/particle_graph_node_collection.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 27.01.2010
// Author :
// Copyright (C) GSC Game World - 2010
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "particle_graph_node.h"
#include "particle_graph_node... | 31.005917 | 114 | 0.702863 | ixray-team |
000100773f5fee406d55f139d0c336e75509e1cc | 2,362 | cpp | C++ | devmand/gateway/src/devmand/devices/Factory.cpp | gurrapualt/magma | 13e05788fa6c40293a58b6e03cfb394bb79fa98f | [
"BSD-3-Clause"
] | 2 | 2020-12-09T11:42:30.000Z | 2021-09-26T03:28:33.000Z | devmand/gateway/src/devmand/devices/Factory.cpp | gurrapualt/magma | 13e05788fa6c40293a58b6e03cfb394bb79fa98f | [
"BSD-3-Clause"
] | 124 | 2020-08-21T06:11:21.000Z | 2022-03-21T05:25:26.000Z | devmand/gateway/src/devmand/devices/Factory.cpp | yogi8091/magma | edc3b249068ad871047e898c912f3228ee9f2c88 | [
"BSD-3-Clause"
] | 1 | 2020-09-21T04:25:06.000Z | 2020-09-21T04:25:06.000Z | /*
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR... | 32.356164 | 80 | 0.734124 | gurrapualt |
0002cc1256b81fdab140ea63ebd2246830591eb1 | 637 | cpp | C++ | src/HiContrastThemeAsCeeCode.cpp | CHRYSICS/audacity | ce1b172825cb8dcc4b7cb2bb52a4f62946f0b141 | [
"CC-BY-3.0"
] | 1 | 2021-11-01T10:32:52.000Z | 2021-11-01T10:32:52.000Z | src/HiContrastThemeAsCeeCode.cpp | CHRYSICS/audacity | ce1b172825cb8dcc4b7cb2bb52a4f62946f0b141 | [
"CC-BY-3.0"
] | null | null | null | src/HiContrastThemeAsCeeCode.cpp | CHRYSICS/audacity | ce1b172825cb8dcc4b7cb2bb52a4f62946f0b141 | [
"CC-BY-3.0"
] | null | null | null | /*!********************************************************************
Audacity: A Digital Audio Editor
@file HiContrastThemeAsCeeCode.cpp
Paul Licameli split from Theme.cpp
**********************************************************************/
#include <vector>
#include "Theme.h"
static const std::vect... | 26.541667 | 72 | 0.576138 | CHRYSICS |
322fd6e8955bb801f5a5c6578c0b83bf195344b7 | 16,027 | cpp | C++ | Shoot/src/PropertyStream.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | 5 | 2016-11-13T08:13:57.000Z | 2019-03-31T10:22:38.000Z | Shoot/src/PropertyStream.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | null | null | null | Shoot/src/PropertyStream.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | 1 | 2016-12-23T11:25:35.000Z | 2016-12-23T11:25:35.000Z | /*
Amine Rehioui
Created: February 24th 2010
*/
#include "Shoot.h"
#include "PropertyStream.h"
#include "MaterialProvider.h"
#include "rapidxml.hpp"
namespace shoot
{
//! Destructor
PropertyStream::~PropertyStream()
{
Clear();
}
//! reads/write from a property from this stream
void PropertyStream::Ser... | 29.67963 | 158 | 0.683222 | franticsoftware |
32308f50dc46137cef962e49a5b33fa158c1f135 | 223 | cpp | C++ | src/Game/Entities/Dynamic/Inspector.cpp | emmagonz22/DinerDashGameP3 | 687128c1cfd58ffe8639934b67190a3e4c764642 | [
"Apache-2.0"
] | null | null | null | src/Game/Entities/Dynamic/Inspector.cpp | emmagonz22/DinerDashGameP3 | 687128c1cfd58ffe8639934b67190a3e4c764642 | [
"Apache-2.0"
] | null | null | null | src/Game/Entities/Dynamic/Inspector.cpp | emmagonz22/DinerDashGameP3 | 687128c1cfd58ffe8639934b67190a3e4c764642 | [
"Apache-2.0"
] | null | null | null | #include "Inspector.h"
Inspector::Inspector(int x, int y, int width, int height, ofImage sprite, Burger* burger) : Client(x, y,width,height, sprite, burger)
{
//Empty constructor in case of thing wanna que added
}
| 37.166667 | 134 | 0.70852 | emmagonz22 |
3236852c59ca84af00eb07bed4dfea913e944f33 | 26,164 | cpp | C++ | termsrv/license/tlserver/server/templic.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | termsrv/license/tlserver/server/templic.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | termsrv/license/tlserver/server/templic.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1996-1998
//
// File: templic.cpp
//
// Contents:
// all routine deal with temporary license
//
// History:
// Feb 4, 98 HueiWang ... | 33.457801 | 125 | 0.533137 | npocmaka |
323c476323b9152d26412bc6573257b7b4a7ff8a | 2,284 | cpp | C++ | src/odil/pdu/AAbort.cpp | genisysram/odil | e6b12df698ce452f9c5d86858e896e9b6d28cdf0 | [
"CECILL-B"
] | 72 | 2016-02-04T00:41:02.000Z | 2022-03-18T18:10:34.000Z | src/odil/pdu/AAbort.cpp | genisysram/odil | e6b12df698ce452f9c5d86858e896e9b6d28cdf0 | [
"CECILL-B"
] | 74 | 2016-01-11T16:04:46.000Z | 2021-11-18T16:36:11.000Z | src/odil/pdu/AAbort.cpp | genisysram/odil | e6b12df698ce452f9c5d86858e896e9b6d28cdf0 | [
"CECILL-B"
] | 23 | 2016-04-27T07:14:56.000Z | 2021-09-28T21:59:31.000Z | /*************************************************************************
* odil - Copyright (C) Universite de Strasbourg
* Distributed under the terms of the CeCILL-B license, as published by
* the CEA-CNRS-INRIA. Refer to the LICENSE file or to
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
* for... | 24.297872 | 79 | 0.627408 | genisysram |
323ee4bf97a753729e65cf3c8b49512152ac57e9 | 18,924 | cpp | C++ | main.cpp | jczaja/test-movidius-NCS-v2-C-API | 5f461b7700ad2560dc60f9f3d72df2ba3646cdf9 | [
"BSD-3-Clause"
] | null | null | null | main.cpp | jczaja/test-movidius-NCS-v2-C-API | 5f461b7700ad2560dc60f9f3d72df2ba3646cdf9 | [
"BSD-3-Clause"
] | null | null | null | main.cpp | jczaja/test-movidius-NCS-v2-C-API | 5f461b7700ad2560dc60f9f3d72df2ba3646cdf9 | [
"BSD-3-Clause"
] | null | null | null | #include <mvnc.h>
#include <opencv2/opencv.hpp>
#include <time.h>
#include <cstring>
#include <vector>
#include <string>
#include <fstream>
#include <streambuf>
#include <sstream>
#include <memory>
#include <x86intrin.h>
#include <sys/types.h>
#include <unistd.h>
#include "gflags/gflags.h"
DEFINE_bool(profile,false,"P... | 34.722936 | 224 | 0.639717 | jczaja |
323fc673a2d0a679d848fda08f177a948892f9c9 | 931 | cpp | C++ | Array/Missing_Element_XOR.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 19 | 2018-12-02T05:59:44.000Z | 2021-07-24T14:11:54.000Z | Array/Missing_Element_XOR.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | null | null | null | Array/Missing_Element_XOR.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 13 | 2019-04-25T16:20:00.000Z | 2021-09-06T19:50:04.000Z | //Find the missing element from a list of 1..n-1 elements
/*Elements are distinct and range from 1 to n.Input has a list of n-1 numbers and the missing number
needs to be found*/
#include<iostream>
using namespace std;
//finds the missing element
/*XOR all the 1..n elements and then XOR the given elements and XOR bot... | 25.861111 | 100 | 0.691729 | susantabiswas |
3241e5e393e06a7b6384f50fb34f6beaba275250 | 498 | cpp | C++ | Leetcode/N-Repeated Element in Size 2N Array/solution.cpp | arushmangal/Hack-CP-DSA | 91f5aabc4741c1c518f35065273c7fcfced67061 | [
"MIT"
] | 205 | 2021-09-30T15:41:05.000Z | 2022-03-27T18:34:56.000Z | Leetcode/N-Repeated Element in Size 2N Array/solution.cpp | arushmangal/Hack-CP-DSA | 91f5aabc4741c1c518f35065273c7fcfced67061 | [
"MIT"
] | 566 | 2021-09-30T15:27:27.000Z | 2021-10-16T21:21:02.000Z | Leetcode/N-Repeated Element in Size 2N Array/solution.cpp | arushmangal/Hack-CP-DSA | 91f5aabc4741c1c518f35065273c7fcfced67061 | [
"MIT"
] | 399 | 2021-09-29T05:40:46.000Z | 2022-03-27T18:34:58.000Z | class Solution {
public:
int repeatedNTimes(vector<int>& nums) {
int n=nums.size(), ans=0; //defining variables
sort(nums.begin(),nums.end()); // sorted vector for easily finding repeated number
for (int i=0;i<n;i++){
if(nums[i]==nums[i+1]) {ans... | 38.307692 | 101 | 0.471888 | arushmangal |
32449484973d63f27bcea3d9a61a8f2dac9832e1 | 3,151 | cpp | C++ | oopAsgn4/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | oopAsgn4/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | oopAsgn4/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
//designing the class array to perform the relevant operations
class ARRAY {
int *p;
int size;
public:
//constrcutor to initialise the array
ARRAY(int s = 0) {
if (s == 0) {
size = s;
p = NULL;
}
else {
size = s;
p = new int[size];
for (int i = 0; i < si... | 24.811024 | 115 | 0.567122 | debargham14 |
324937a3bfe24ec8894252fd46c84182623aee9d | 5,295 | cc | C++ | src/sim/clinkedlist.cc | eniac/parallel-inet-omnet | 810ed40aecac89efbd0b6a05ee10f44a09417178 | [
"Xnet",
"X11"
] | 15 | 2021-08-20T08:10:01.000Z | 2022-03-24T21:24:50.000Z | src/sim/clinkedlist.cc | eniac/parallel-inet-omnet | 810ed40aecac89efbd0b6a05ee10f44a09417178 | [
"Xnet",
"X11"
] | 1 | 2022-03-30T09:03:39.000Z | 2022-03-30T09:03:39.000Z | src/sim/clinkedlist.cc | eniac/parallel-inet-omnet | 810ed40aecac89efbd0b6a05ee10f44a09417178 | [
"Xnet",
"X11"
] | 3 | 2021-08-20T08:10:34.000Z | 2021-12-02T06:15:02.000Z | //=========================================================================
// CLLIST.CC - part of
//
// OMNeT++/OMNEST
// Discrete System Simulation in C++
//
// Member functions of
// cLinkedList : linked list of void* pointers
//
// Author: Andras Varga
//
//========================... | 21.011905 | 93 | 0.555052 | eniac |
324ca8e0ff33f298810188e2095817491c1da158 | 1,284 | cpp | C++ | src_tests/arm_neon/test_vset_lane.cpp | AlexYaruki/prism | ba4b20f570d03bf896ad3634e5fbf4a6bf5b02f5 | [
"Apache-2.0"
] | 8 | 2019-06-14T09:25:46.000Z | 2021-11-11T10:34:28.000Z | src_tests/arm_neon/test_vset_lane.cpp | AlexYaruki/prism | ba4b20f570d03bf896ad3634e5fbf4a6bf5b02f5 | [
"Apache-2.0"
] | 1 | 2019-10-06T02:11:17.000Z | 2021-11-11T11:17:16.000Z | src_tests/arm_neon/test_vset_lane.cpp | AlexYaruki/prism | ba4b20f570d03bf896ad3634e5fbf4a6bf5b02f5 | [
"Apache-2.0"
] | 2 | 2017-06-10T01:01:00.000Z | 2021-07-13T00:48:30.000Z | #include <iris/iris.h>
#include <cassert>
using namespace iris;
template<typename T>
void test_vset_lane(T(*func)(typename T::elementType,T,int32_t)) {
T data;
for (size_t i = 0; i < T::length; i++) {
data = func((typename T::elementType)i,data,i);
}
for (size_t i = 0; i < T::length; i++) {
... | 29.181818 | 91 | 0.721963 | AlexYaruki |
324f495f006ff8d9558d2af4b1301fc9f4fb6fb4 | 2,103 | hpp | C++ | src/centurion/detail/array_utils.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | 14 | 2020-05-17T21:38:03.000Z | 2020-11-21T00:16:25.000Z | src/centurion/detail/array_utils.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | 70 | 2020-04-26T17:08:52.000Z | 2020-11-21T17:34:03.000Z | src/centurion/detail/array_utils.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2019-2022 Albin Johansson
*
* 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... | 30.042857 | 87 | 0.724679 | Creeperface01 |
325336bb7b753fc226e0c24b300a62e7040c8ce4 | 12,210 | cpp | C++ | Core/src/Core/GameObjectManager.cpp | Hukunaa/Condamnation | 04efeb6ee62013a8399695a8294d9bd9e9f0f41d | [
"MIT"
] | null | null | null | Core/src/Core/GameObjectManager.cpp | Hukunaa/Condamnation | 04efeb6ee62013a8399695a8294d9bd9e9f0f41d | [
"MIT"
] | null | null | null | Core/src/Core/GameObjectManager.cpp | Hukunaa/Condamnation | 04efeb6ee62013a8399695a8294d9bd9e9f0f41d | [
"MIT"
] | null | null | null | #include <tinyxml2.h>
#include <Core/GameObjectManager.h>
#include <Components/LightComp.h>
#include <Components/TransformComp.h>
#include <Components/MaterialComp.h>
#include <Components/BoxColliderComp.h>
#include <Components/RigidBodyComp.h>
#include <Components/ModelComp.h>
#include <Rendering/Managers/InputManage... | 40.29703 | 206 | 0.634808 | Hukunaa |
325a6205d1eb661c7f53405784f58e121e4906c4 | 93,995 | cpp | C++ | unittest/biunique_map_test.cpp | suomesta/ken3 | edac96489d5b638dc4eff25454fcca1307ca86e9 | [
"MIT"
] | null | null | null | unittest/biunique_map_test.cpp | suomesta/ken3 | edac96489d5b638dc4eff25454fcca1307ca86e9 | [
"MIT"
] | null | null | null | unittest/biunique_map_test.cpp | suomesta/ken3 | edac96489d5b638dc4eff25454fcca1307ca86e9 | [
"MIT"
] | null | null | null | /**
* @file unittest/biunique_map_test.cpp
* @brief Testing ken3::biunique_map using lest.
* @author toda
* @date 2016-11-24
* @version 0.1.0
* @remark the target is C++11 or more
*/
#include <iterator>
#include <tuple>
#include <vector>
#include "ken3/biunique_map.hpp"
#include "unittest/lest.hpp"
... | 35.323187 | 154 | 0.428342 | suomesta |
325d42fca1b6a7218a625bb898a7d0555984b104 | 34,340 | cpp | C++ | vlib/qlang/ast.cpp | syntheticgio/fda-hive | 5e645c6a5b76b5a437635631819a1c934c7fd7fc | [
"Unlicense",
"MIT"
] | null | null | null | vlib/qlang/ast.cpp | syntheticgio/fda-hive | 5e645c6a5b76b5a437635631819a1c934c7fd7fc | [
"Unlicense",
"MIT"
] | null | null | null | vlib/qlang/ast.cpp | syntheticgio/fda-hive | 5e645c6a5b76b5a437635631819a1c934c7fd7fc | [
"Unlicense",
"MIT"
] | null | null | null | /*
* ::718604!
*
* Copyright(C) November 20, 2014 U.S. Food and Drug Administration
* Authors: Dr. Vahan Simonyan (1), Dr. Raja Mazumder (2), et al
* Affiliation: Food and Drug Administration (1), George Washington University (2)
*
* All rights Reserved.
*
* The MIT License (MIT)
*
* Permission is hereb... | 25.26858 | 275 | 0.590419 | syntheticgio |
3265452c988b768445d55f2700259fcd24c36539 | 532 | hpp | C++ | core/include/olreport/tengine_cfg_data.hpp | wangshankun/Tengine_Atlas | b5485039e72b4a624c795ff95d73eb6d719c7706 | [
"Apache-2.0"
] | 25 | 2018-12-09T09:31:56.000Z | 2021-08-12T10:32:19.000Z | core/include/olreport/tengine_cfg_data.hpp | wangshankun/Tengine_Atlas | b5485039e72b4a624c795ff95d73eb6d719c7706 | [
"Apache-2.0"
] | 1 | 2022-03-31T03:33:42.000Z | 2022-03-31T03:33:42.000Z | core/include/olreport/tengine_cfg_data.hpp | wangshankun/Tengine_Atlas | b5485039e72b4a624c795ff95d73eb6d719c7706 | [
"Apache-2.0"
] | 6 | 2018-12-16T01:18:42.000Z | 2019-09-18T07:29:56.000Z | #ifndef __TENGINE_CFG_DATA_HPP__
#define __TENGINE_CFG_DATA_HPP__
#ifndef EXTERN_CFG_REPORT_DAT
#define CFG_REPORT_TIMER 7200 //seconds
#define CFG_TENGINE_KEY "TENGINE_DEP_171_2019"
#define CFG_TENGINE_TOKEN "TENGINE_DEP"
#define CFG_APPID "tengine_others"
#define CFG_APP_KEY "EzsKwQBYpAADva6k"
#define CFG_API_VERSI... | 23.130435 | 70 | 0.834586 | wangshankun |
3266afcaca7348d9bd3558479144991c005d04f1 | 585 | cpp | C++ | src/external_plugins/scintilla_editor_input_handler/input_handler_plugin.cpp | stonewell/wxglterm | 27480ed01e2832e98785b517ac17037a71cefe7c | [
"MIT"
] | 12 | 2017-11-23T16:02:41.000Z | 2019-12-29T08:36:36.000Z | src/external_plugins/scintilla_editor_input_handler/input_handler_plugin.cpp | stonewell/wxglterm | 27480ed01e2832e98785b517ac17037a71cefe7c | [
"MIT"
] | 9 | 2017-12-04T15:55:51.000Z | 2019-11-01T13:08:21.000Z | src/external_plugins/scintilla_editor_input_handler/input_handler_plugin.cpp | stonewell/wxglterm | 27480ed01e2832e98785b517ac17037a71cefe7c | [
"MIT"
] | 5 | 2018-09-02T07:35:13.000Z | 2019-12-29T08:36:37.000Z | #include <pybind11/embed.h>
#include <iostream>
#include <unistd.h>
#include <vector>
#include <string.h>
#include "key_code_map.h"
#include "plugin_manager.h"
#include "plugin.h"
#include "term_network.h"
#include "term_data_handler.h"
#include "term_context.h"
#include "term_window.h"
#include "input.h"
#include ... | 21.666667 | 113 | 0.77094 | stonewell |
326a561f5aa0f9ec625e95c45a2ecc229bf99da6 | 20,903 | cpp | C++ | vnpy/api/oes/vnoes/generated_files/generated_functions_9.cpp | howyu88/vnpy2 | c8ae445823dc1f71abda1a79fae7d4be3dd92dd4 | [
"MIT"
] | 323 | 2015-11-21T14:45:29.000Z | 2022-03-16T08:54:37.000Z | vnpy/api/oes/vnoes/generated_files/generated_functions_9.cpp | howyu88/vnpy2 | c8ae445823dc1f71abda1a79fae7d4be3dd92dd4 | [
"MIT"
] | 9 | 2017-03-21T08:26:21.000Z | 2021-08-23T06:41:17.000Z | vnpy/api/oes/vnoes/generated_files/generated_functions_9.cpp | howyu88/vnpy2 | c8ae445823dc1f71abda1a79fae7d4be3dd92dd4 | [
"MIT"
] | 148 | 2016-09-26T03:25:39.000Z | 2022-02-06T14:43:48.000Z | #include "config.h"
#include <iostream>
#include <string>
#include <pybind11/pybind11.h>
#include <pybind11/functional.h>
#include <pybind11/stl.h>
#include <c2py/c2py.hpp>
#include "module.hpp"
#include "wrappers.hpp"
#include "generated_functions.h"
#include "oes_api/oes_api.h"
#include "mds_api/mds_api.h"
void ... | 58.388268 | 115 | 0.787542 | howyu88 |
326b6347cc3bf49ac4d638cfb6ce752f624bf001 | 1,568 | cpp | C++ | mse.cpp | ArnoGranier/cppCNN | 9573e01eb71a8fdbb6a62812ef02ce0641055277 | [
"MIT"
] | 8 | 2020-01-23T08:26:22.000Z | 2022-02-22T22:50:17.000Z | mse.cpp | ArnoGranier/cppCNN | 9573e01eb71a8fdbb6a62812ef02ce0641055277 | [
"MIT"
] | 1 | 2021-04-11T02:03:48.000Z | 2021-04-11T02:05:15.000Z | mse.cpp | ArnoGranier/cppCNN | 9573e01eb71a8fdbb6a62812ef02ce0641055277 | [
"MIT"
] | null | null | null | #include "mse.hpp"
namespace cppcnn{
double MSE::compute(const vector<double>& prediction,
int8_t expected_int) const
{
double loss=0.0;
// We receive the expected result as an int between 0 and 9 (equivalent to
// a label). The expected activation of the output layer of th... | 32.666667 | 78 | 0.617347 | ArnoGranier |
3270b3b301028853379f60a7cfd8f8b6c5a9458d | 3,266 | cpp | C++ | Src/HideoutComponent.cpp | 4anotherday/DarkMaze | e032b05641019cf5d69fd5c8bec9949f250c6c3f | [
"MIT"
] | null | null | null | Src/HideoutComponent.cpp | 4anotherday/DarkMaze | e032b05641019cf5d69fd5c8bec9949f250c6c3f | [
"MIT"
] | null | null | null | Src/HideoutComponent.cpp | 4anotherday/DarkMaze | e032b05641019cf5d69fd5c8bec9949f250c6c3f | [
"MIT"
] | null | null | null | #include "HideoutComponent.h"
#include "HealthComponent.h"
#include "ComponentIDs.h"
#include "includeLUA.h"
#include "Transform.h"
#include "PlayerVisibilityComponent.h"
#include "UserComponentsIDs.h"
#include "GameObject.h"
#include "RenderObjectComponent.h"
#include "ColliderComponent.h"
#include "Engine.h"
#include... | 37.54023 | 192 | 0.748928 | 4anotherday |
327618b691aff17c7a6d8bb87feff53cb46db558 | 13,963 | cpp | C++ | AuxCore/AuxCore/LoadedModules.cpp | y11en/crystalaep | 628422d210b5de4799c6c3d4fd736bee75a3deeb | [
"Unlicense"
] | 30 | 2020-05-31T12:01:35.000Z | 2021-12-08T12:50:53.000Z | AuxCore/AuxCore/LoadedModules.cpp | y11en/crystalaep | 628422d210b5de4799c6c3d4fd736bee75a3deeb | [
"Unlicense"
] | null | null | null | AuxCore/AuxCore/LoadedModules.cpp | y11en/crystalaep | 628422d210b5de4799c6c3d4fd736bee75a3deeb | [
"Unlicense"
] | 10 | 2020-05-31T11:16:10.000Z | 2020-08-19T03:12:33.000Z | // Copyright (c) Peter Winter-Smith [peterwintersmith@gmail.com]
// important todo:
// 1. push HMODULEs and CSingleLoadedModules onto a queue to be erased periodically
// to avoid horrible situations when performing checks for heap/virtual mem
// functions
//
// 2. check that this code still works on XP with... | 21.715397 | 116 | 0.713815 | y11en |
327946e7065a6100efe3614c0625ad6f721a0199 | 20,551 | cpp | C++ | graphalgorithms/AStarDelay.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 2 | 2021-06-09T13:54:15.000Z | 2021-07-04T13:30:46.000Z | graphalgorithms/AStarDelay.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | null | null | null | graphalgorithms/AStarDelay.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 2 | 2017-04-17T11:08:57.000Z | 2017-04-18T08:28:27.000Z | /*
* AStarDelay.cpp
* hog2
*
* Created by Nathan Sturtevant on 9/27/07.
* Copyright 2007 __MyCompanyName__. All rights reserved.
*
*/
#include <sys/time.h>
#include <math.h>
#include <cstring>
#include "AStarDelay.h"
using namespace AStarDelayUtil;
using namespace GraphSearchConstants;
const static bool v... | 25.592777 | 165 | 0.655297 | AaronTrip |
3279cadbf2762fb01a492333c2210a62f038189b | 350 | hpp | C++ | srook/config/arch/SPARC.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | 1 | 2018-07-01T07:54:37.000Z | 2018-07-01T07:54:37.000Z | srook/config/arch/SPARC.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | null | null | null | srook/config/arch/SPARC.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | null | null | null | // Copyright (C) 2011-2020 Roki. Distributed under the MIT License
// Detecting to pre-defined macro of [SPARC architecture](http://en.wikipedia.org/wiki/SPARC).
#ifndef INCLUDED_SROOK_CONFIG_ARCH_SPARC_HPP
#define INCLUDED_SROOK_CONFIG_ARCH_SPARC_HPP
#include <srook/config/arch/SPARC/core.hpp>
#include <srook/config/a... | 43.75 | 94 | 0.808571 | falgon |
327d7915177103e31c46d8dc5f826a0c47939658 | 34,215 | cpp | C++ | ui/widgets/shader_node_view_widget.cpp | ppearson/ImaginePartial | 9871b052f2edeb023e2845578ad69c25c5baf7d2 | [
"Apache-2.0"
] | 1 | 2018-07-10T13:36:38.000Z | 2018-07-10T13:36:38.000Z | ui/widgets/shader_node_view_widget.cpp | ppearson/ImaginePartial | 9871b052f2edeb023e2845578ad69c25c5baf7d2 | [
"Apache-2.0"
] | null | null | null | ui/widgets/shader_node_view_widget.cpp | ppearson/ImaginePartial | 9871b052f2edeb023e2845578ad69c25c5baf7d2 | [
"Apache-2.0"
] | null | null | null | /*
Imagine
Copyright 2016 Peter Pearson.
Licensed under the Apache License, Version 2.0 (the "License");
You may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | 33.218447 | 143 | 0.747596 | ppearson |
327fd8dbe0781f7afc1f824ea50758bf3a8adec5 | 68,259 | cpp | C++ | src/rf_cavity.cpp | PierreSchnizer/FLAME | 44f42c6175be536236058452bec71c87a138710e | [
"MIT"
] | 10 | 2016-04-04T20:14:25.000Z | 2022-02-17T22:37:49.000Z | src/rf_cavity.cpp | PierreSchnizer/FLAME | 44f42c6175be536236058452bec71c87a138710e | [
"MIT"
] | 24 | 2016-04-07T19:23:31.000Z | 2022-03-21T14:31:14.000Z | src/rf_cavity.cpp | PierreSchnizer/FLAME | 44f42c6175be536236058452bec71c87a138710e | [
"MIT"
] | 13 | 2016-04-13T13:26:36.000Z | 2019-12-20T01:55:24.000Z |
#include <fstream>
#include <boost/lexical_cast.hpp>
#include <boost/filesystem.hpp>
#include "flame/constants.h"
#include "flame/moment.h"
#include "flame/moment_sup.h"
#include "flame/rf_cavity.h"
#include "flame/config.h"
#define sqr(x) ((x)*(x))
#define cube(x) ((x)*(x)*(x))
#ifdef DEFPATH
#define defpath... | 40.128748 | 143 | 0.509545 | PierreSchnizer |
327ffaac3db23bbca05af6c613dfdccd8c9925eb | 8,112 | cpp | C++ | src/AdafruitIO_Dashboard.cpp | khoih-prog/Adafruit_IO_Arduino | f6d762f01ba249d00510d1a884c13a5829b121bf | [
"MIT"
] | 181 | 2015-08-13T17:03:24.000Z | 2022-02-20T06:44:29.000Z | src/AdafruitIO_Dashboard.cpp | khoih-prog/Adafruit_IO_Arduino | f6d762f01ba249d00510d1a884c13a5829b121bf | [
"MIT"
] | 101 | 2016-04-10T17:40:14.000Z | 2022-02-26T22:20:36.000Z | src/AdafruitIO_Dashboard.cpp | khoih-prog/Adafruit_IO_Arduino | f6d762f01ba249d00510d1a884c13a5829b121bf | [
"MIT"
] | 113 | 2015-12-09T07:31:10.000Z | 2022-03-22T01:07:18.000Z | /*!
* @file AdafruitIO_Dashboard.cpp
*
*
* Adafruit invests time and resources providing this open source code.
* Please support Adafruit and open source hardware by purchasing
* products from Adafruit!
*
* Copyright (c) 2015-2016 Adafruit Industries
* Authors: Tony DiCola, Todd Treece
* Licensed under the MI... | 34.519149 | 80 | 0.489522 | khoih-prog |
32851497790e9fc8cb3d7034a825f68a172bf513 | 2,043 | cpp | C++ | tests/dsp_scalardelayline_tests.cpp | jontio/JSquelch | 72805d6e08035daca09e6c668c63f46dc66674a2 | [
"MIT"
] | 2 | 2021-07-11T03:36:42.000Z | 2022-03-26T15:04:30.000Z | tests/dsp_scalardelayline_tests.cpp | jontio/JSquelch | 72805d6e08035daca09e6c668c63f46dc66674a2 | [
"MIT"
] | null | null | null | tests/dsp_scalardelayline_tests.cpp | jontio/JSquelch | 72805d6e08035daca09e6c668c63f46dc66674a2 | [
"MIT"
] | null | null | null | #include "../src/dsp/dsp.h"
#include "../src/util/RuntimeError.h"
#include "../src/util/stdio_utils.h"
#include "../src/util/file_utils.h"
#include <QFile>
#include <QDataStream>
#include <iostream>
//important for Qt include cpputest last as it mucks up new and causes compiling to fail
#include "CppUTest/TestHarness.... | 24.321429 | 93 | 0.643661 | jontio |
3285d054d851d23edfbcd08c2e2dfb69ae0738f4 | 11,412 | cc | C++ | pkg/oc/varinfo.cc | ViennaNovoFlop/ViennaNovoFlop-dev | f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00 | [
"TCL",
"SWL",
"MIT",
"X11",
"BSD-3-Clause"
] | null | null | null | pkg/oc/varinfo.cc | ViennaNovoFlop/ViennaNovoFlop-dev | f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00 | [
"TCL",
"SWL",
"MIT",
"X11",
"BSD-3-Clause"
] | null | null | null | pkg/oc/varinfo.cc | ViennaNovoFlop/ViennaNovoFlop-dev | f8c4d6c06590a0d9a3890d81e9b0b4dcb7ea9e00 | [
"TCL",
"SWL",
"MIT",
"X11",
"BSD-3-Clause"
] | null | null | null | /* FILE: varinfo.cc -*-Mode: c++-*-
*
* Small program to probe system characteristics.
*
* Last modified on: $Date: 2009-11-06 05:42:23 $
* Last modified by: $Author: donahue $
*
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#inclu... | 28.247525 | 77 | 0.640379 | ViennaNovoFlop |
3286b7e617ed6b57216c4d1e94931b07250b85b8 | 1,423 | cpp | C++ | UltraDV/Source/TKeyFrame.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | UltraDV/Source/TKeyFrame.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | UltraDV/Source/TKeyFrame.cpp | ModeenF/UltraDV | 30474c60880de541b33687c96293766fe0dc4aef | [
"Unlicense"
] | null | null | null | //---------------------------------------------------------------------
//
// File: TKeyFrame.cpp
//
// Author: Mike Ost
//
// Date: 10.23.98
//
// Desc:
//
// TKeyFrame is owned by TCueEffect. It associates a time with a
// TEffectState, as defined by the add-on effects classes. This
// provides a generic interface to... | 21.560606 | 71 | 0.476458 | ModeenF |
3287eb434d6db4cc9a7763fe0426bf060c488786 | 4,139 | cpp | C++ | chess_server/RoomManager.cpp | Rexagon/chess | d13334ce89c2335b5abf65cce56d9d781bde2930 | [
"Apache-2.0"
] | null | null | null | chess_server/RoomManager.cpp | Rexagon/chess | d13334ce89c2335b5abf65cce56d9d781bde2930 | [
"Apache-2.0"
] | 4 | 2017-08-18T13:14:27.000Z | 2017-08-25T10:11:08.000Z | chess_server/RoomManager.cpp | Rexagon/chess | d13334ce89c2335b5abf65cce56d9d781bde2930 | [
"Apache-2.0"
] | null | null | null | #include "RoomManager.h"
#include "Server.h"
RoomManager::RoomManager(Server* server) : m_server(server), m_room_count(0)
{
}
RoomManager::~RoomManager()
{
}
void RoomManager::init()
{
sqlite3_stmt* statement;
int rc = 0;
sqlite3_prepare16_v2(m_server->m_db, L"SELECT * FROM rooms", -1, &statement, 0);
while (... | 31.120301 | 230 | 0.709108 | Rexagon |
3289d2425a82c902390a490c3a280314b8aa1e8f | 9,408 | hpp | C++ | WICWIU_src/Operator/ReShape.hpp | wok1909/WICWIU-OSSLab-Final-Project | ea172614c3106de3a8e203acfac8f0dd4eca7c7c | [
"Apache-2.0"
] | 119 | 2018-05-30T01:16:36.000Z | 2021-11-08T13:01:07.000Z | WICWIU_src/Operator/ReShape.hpp | wok1909/WICWIU-OSSLab-Final-Project | ea172614c3106de3a8e203acfac8f0dd4eca7c7c | [
"Apache-2.0"
] | 24 | 2018-08-05T16:50:42.000Z | 2020-10-28T00:38:48.000Z | WICWIU_src/Operator/ReShape.hpp | wok1909/WICWIU-OSSLab-Final-Project | ea172614c3106de3a8e203acfac8f0dd4eca7c7c | [
"Apache-2.0"
] | 35 | 2018-06-29T17:10:13.000Z | 2021-06-05T04:07:48.000Z | #ifndef RESHAPE_H_
#define RESHAPE_H_ value
#include "../Operator.hpp"
template<typename DTYPE>
class ReShape : public Operator<DTYPE>{
public:
/*!
@brief ReShape의 생성자
@details 파라미터로 받은 pInput, pRowSize, pColSize으로 Alloc한다.
@param pInput ReShape할 Operator.
@param pRowSize ReShape으로 새로 만들어질 Tens... | 36.045977 | 200 | 0.615434 | wok1909 |
329079285f1b12fdcb96cd7dd5fe66bb7869b63c | 436 | cpp | C++ | Dynamic Programming/Min Cost Climbing Stairs - leetcode 746.cpp | gdevanga/Competitive-programming | cb729f89b49ddf666f9db3dc7e4505a0372df740 | [
"MIT"
] | 2 | 2019-10-17T06:41:24.000Z | 2021-01-31T17:12:42.000Z | Dynamic Programming/Min Cost Climbing Stairs - leetcode 746.cpp | gdevanga/Competitive-programming | cb729f89b49ddf666f9db3dc7e4505a0372df740 | [
"MIT"
] | null | null | null | Dynamic Programming/Min Cost Climbing Stairs - leetcode 746.cpp | gdevanga/Competitive-programming | cb729f89b49ddf666f9db3dc7e4505a0372df740 | [
"MIT"
] | 1 | 2020-10-21T15:37:32.000Z | 2020-10-21T15:37:32.000Z | /*
* please find problem description @
* https://leetcode.com/problems/min-cost-climbing-stairs/
*/
class Solution {
public:
int minCostClimbingStairs(vector<int>& cost) {
int mc[cost.size()+2] = {0};
for (int i = cost.size()-1; i >= 0; --i)
{
mc[i] = min(cost[i]+mc[i+1], cos... | 27.25 | 59 | 0.529817 | gdevanga |
329276ffdf0b38e9ba8e91fcb9a36241b80c91c8 | 42,781 | cpp | C++ | glstate.cpp | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | 1 | 2020-06-19T12:34:44.000Z | 2020-06-19T12:34:44.000Z | glstate.cpp | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | null | null | null | glstate.cpp | prahal/apitrace | e9426dd61586757d23d7dddc85b3076f477e7f07 | [
"MIT"
] | null | null | null | /**************************************************************************
*
* Copyright 2011 Jose Fonseca
* All Rights Reserved.
*
* 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 wit... | 29.709028 | 145 | 0.634254 | prahal |
3293ffac38541bdbd5aa838b8b39b45efafd8ca3 | 1,218 | hpp | C++ | Software/STM/APP/Screens/StateAccel.hpp | ProrokWielki/Wooden-Clock | 96226750ab4b679764b0b254d3c3c21deb658252 | [
"MIT"
] | 1 | 2018-12-14T07:05:33.000Z | 2018-12-14T07:05:33.000Z | Software/STM/APP/Screens/StateAccel.hpp | ProrokWielki/Wooden-Clock | 96226750ab4b679764b0b254d3c3c21deb658252 | [
"MIT"
] | null | null | null | Software/STM/APP/Screens/StateAccel.hpp | ProrokWielki/Wooden-Clock | 96226750ab4b679764b0b254d3c3c21deb658252 | [
"MIT"
] | null | null | null | /**
* StataAccel.hpp
*
* Created on: 02-05-2020
* @author: Paweł Warzecha
*/
#ifndef APP_STATEMACHINE_STATES_STATEACCEL_HPP_
#define APP_STATEMACHINE_STATES_STATEACCEL_HPP_
#include <Canvas.hpp>
#include "LSM9DS1/LSM9DS1.hpp"
#include "BSP.hpp"
class StateAccel: public Canvas
{
public:
explicit StateAcc... | 19.03125 | 99 | 0.569787 | ProrokWielki |
3298f89e4f50077b33b105f16202820fef1bbd25 | 2,554 | cc | C++ | test/limits.cc | root-project/VecCore | 9375eb6005d08b2bca3b0a2b62e90dbe21694176 | [
"Apache-2.0"
] | 56 | 2017-04-12T17:57:33.000Z | 2021-12-18T03:28:24.000Z | test/limits.cc | root-project/VecCore | 9375eb6005d08b2bca3b0a2b62e90dbe21694176 | [
"Apache-2.0"
] | 19 | 2017-05-09T06:40:48.000Z | 2021-11-01T09:54:24.000Z | test/limits.cc | root-project/VecCore | 9375eb6005d08b2bca3b0a2b62e90dbe21694176 | [
"Apache-2.0"
] | 22 | 2017-04-10T13:41:15.000Z | 2021-08-20T09:05:10.000Z | #include "test.h"
template <class T> class NumericLimitsTest : public VectorTypeTest<T> {};
TYPED_TEST_SUITE_P(NumericLimitsTest);
TYPED_TEST_P(NumericLimitsTest, Limits) {
using Scalar_t = typename TestFixture::Scalar_t;
using Vector_t = typename TestFixture::Vector_t;
using vecCore::Get;
using vecCore::Nu... | 35.472222 | 80 | 0.676586 | root-project |
32993408f853be203f88de88f31cbb638cafb756 | 1,277 | cpp | C++ | Task 3/RSA.cpp | John-Ghaly88/Cryptography_Course | 7045e931c77032024bbebd2305895003a8625467 | [
"MIT"
] | null | null | null | Task 3/RSA.cpp | John-Ghaly88/Cryptography_Course | 7045e931c77032024bbebd2305895003a8625467 | [
"MIT"
] | null | null | null | Task 3/RSA.cpp | John-Ghaly88/Cryptography_Course | 7045e931c77032024bbebd2305895003a8625467 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int gcd(int x, int y)
{
if (x == 0)
return y;
return gcd(y % x, x);
}
int EulerTotient(int x)
{
int r = 1;
for (int i = 2; i < x; i++)
if (gcd(i, x) == 1)
r++;
return r;
}
int main()
{
cout << "Input n | n < 65536" <<... | 22.403509 | 106 | 0.512921 | John-Ghaly88 |
32997875f0e6406feec6fd94326385f6ae80d4c6 | 484 | cpp | C++ | VD_prep/VR_rep_K2016/main.cpp | theroyalcoder/old.HF-ICT-4-SEM-GUI | d97bec83f339807a0054449421fe061ba901ddf3 | [
"MIT"
] | null | null | null | VD_prep/VR_rep_K2016/main.cpp | theroyalcoder/old.HF-ICT-4-SEM-GUI | d97bec83f339807a0054449421fe061ba901ddf3 | [
"MIT"
] | null | null | null | VD_prep/VR_rep_K2016/main.cpp | theroyalcoder/old.HF-ICT-4-SEM-GUI | d97bec83f339807a0054449421fe061ba901ddf3 | [
"MIT"
] | 1 | 2018-05-03T21:46:28.000Z | 2018-05-03T21:46:28.000Z | #include <iostream>
using namespace std;
//Klausur 2015
int crossumRec(unsigned int n, int result) {
return result + (n % 10);
}
int crossum(unsigned int n) {
int result = 0;
int localN = n;
while (localN > 0) {
result = crossumRec(localN, result);
localN /= 10;
}
return result... | 16.689655 | 52 | 0.586777 | theroyalcoder |
329b7301fa019f359ee470e9ed947bfc831d8237 | 15,527 | cc | C++ | source/common/upstream/load_balancer_impl.cc | Sodman/envoy | 9cb135e059ac6af052e5a5aa6c6c279aada1850b | [
"Apache-2.0"
] | null | null | null | source/common/upstream/load_balancer_impl.cc | Sodman/envoy | 9cb135e059ac6af052e5a5aa6c6c279aada1850b | [
"Apache-2.0"
] | null | null | null | source/common/upstream/load_balancer_impl.cc | Sodman/envoy | 9cb135e059ac6af052e5a5aa6c6c279aada1850b | [
"Apache-2.0"
] | 1 | 2020-12-30T17:12:11.000Z | 2020-12-30T17:12:11.000Z | #include "common/upstream/load_balancer_impl.h"
#include <cstdint>
#include <string>
#include <vector>
#include "envoy/runtime/runtime.h"
#include "envoy/stats/stats.h"
#include "envoy/upstream/upstream.h"
#include "common/common/assert.h"
namespace Envoy {
namespace Upstream {
namespace {
const HostSet* bestAvail... | 40.968338 | 99 | 0.724351 | Sodman |
329e23d63c57f0da9e779735c030b5f29642fb8f | 2,802 | cpp | C++ | aws-cpp-sdk-route53-recovery-cluster/source/model/RoutingControl.cpp | Nexuscompute/aws-sdk-cpp | e7ef485e46e6962c9e084b8c9b104c1bfcceaf26 | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-route53-recovery-cluster/source/model/RoutingControl.cpp | Nexuscompute/aws-sdk-cpp | e7ef485e46e6962c9e084b8c9b104c1bfcceaf26 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-route53-recovery-cluster/source/model/RoutingControl.cpp | Nexuscompute/aws-sdk-cpp | e7ef485e46e6962c9e084b8c9b104c1bfcceaf26 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/route53-recovery-cluster/model/RoutingControl.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
names... | 23.157025 | 129 | 0.76838 | Nexuscompute |
329e9944c34e6b9ac913c2e359b7fbeca1276263 | 1,489 | cpp | C++ | CBP/CBP/UI/UIProfileEditorNode.cpp | clayne/CBPSSE | c2bd6470efe3e0dcb3df606fb693f5c66e66e4e5 | [
"MIT"
] | 3 | 2020-06-21T18:10:19.000Z | 2021-02-05T21:33:18.000Z | CBP/CBP/UI/UIProfileEditorNode.cpp | clayne/CBPSSE | c2bd6470efe3e0dcb3df606fb693f5c66e66e4e5 | [
"MIT"
] | 2 | 2020-08-29T14:29:19.000Z | 2020-09-10T18:40:52.000Z | CBP/CBP/UI/UIProfileEditorNode.cpp | clayne/CBPSSE | c2bd6470efe3e0dcb3df606fb693f5c66e66e4e5 | [
"MIT"
] | 4 | 2020-08-25T17:56:35.000Z | 2021-11-25T09:39:47.000Z | #include "pch.h"
#include "UIProfileEditorNode.h"
#include "UI.h"
#include "Common/Node.cpp"
namespace CBP
{
using namespace UICommon;
UIProfileEditorNode::UIProfileEditorNode(
UIContext& a_parent, const char* a_name)
:
UICommon::UIProfileEditorBase<NodeProfile>(a_name),
m_c... | 22.560606 | 99 | 0.661518 | clayne |