blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 986
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 145
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 10.4M | extension stringclasses 122
values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd6b06617d0ac0caf60fd4b288e45e0209552b2d | df9bec4043aa971e803063bdcdd951fe48391431 | /uex1010Base/src/uex1010.cpp | d9e1210cf2a1d34ee187d9df9616758e945b5d97 | [] | no_license | acm1997/1010game | 460eccf25eeb7a3dc18eabd066f9d48064c705d3 | a1363145aac64d50f8184f72bd508a00d079e4d4 | refs/heads/main | 2023-07-30T06:05:20.319229 | 2021-09-09T10:53:27 | 2021-09-09T10:53:27 | 404,685,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,879 | cpp | //============================================================================
// Name : uex1010.cpp
// Author : Angel Cañada y Carlos Guillen.
// Version : Curso 16/17
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//==============================================... | [
"noreply@github.com"
] | acm1997.noreply@github.com |
0838ee9d06acf6b82889badd386b9ca10346c4bd | 6d5db68fe2e912f7f18dfddcf73955a042f32475 | /project1-1403225/codebase/rbf/rbftest8b.cc | 04d508a8001ffab144b5a8fa27d6549f1984b943 | [] | no_license | DanielThurau/Database-System-II | 9d33341d37f71324bd63b29571a1b53e12346af1 | 42ab3c9d84cc100a7606d099924dcfb9c32bb8dc | refs/heads/master | 2020-03-09T21:07:59.720033 | 2018-06-12T18:44:10 | 2018-06-12T18:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,621 | cc | #include <iostream>
#include <string>
#include <cassert>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include <stdexcept>
#include <stdio.h>
#include "pfm.h"
#include "rbfm.h"
#include "test_util.h"
using namespace std;
int RBFTest_8b(RecordBasedFileManager *rbfm) {
// Functio... | [
"pefbass@gmail.com"
] | pefbass@gmail.com |
4443686ae5356bfe45dcf193765788f50aa50797 | bcfe3b540106599630acbfd811c48a5ce283d4ef | /RPS.cpp | 0ca1da0bde24c499a1aa38e10046bc7fd9fdbe03 | [] | no_license | Kevin-Escobedo/RPS | 14e374fa90e0ed470568bab62f40b37b5537cf85 | 90257b1240275734a1452c7466ad4b3da1dbeaa7 | refs/heads/master | 2023-03-09T04:29:52.056508 | 2021-02-19T21:35:17 | 2021-02-19T21:35:17 | 340,464,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,061 | cpp | #include "RPS.h"
RPS::RPS()
:result(0), lastPlayerMove()
{
srand(time(nullptr));
}
RPS::RPS(const RPS& rps)
:result(rps.result), lastPlayerMove(rps.lastPlayerMove)
{
srand(time(nullptr));
}
RPS& RPS::operator =(const RPS& rps)
{
result = rps.result;
lastPlayerMove = rps.lastPlayerMove;
return *t... | [
"escobedo001@gmail.com"
] | escobedo001@gmail.com |
1b5bc9a069318c1a7938372630886282b2dbed28 | ef7eabdd5f9573050ef11d8c68055ab6cdb5da44 | /eolimp/page27/q2619/Main.cpp | c462ba7d1f9960b7a332275f7b58a7c3b97e9e1f | [
"WTFPL"
] | permissive | gauravsingh58/algo | cdbf68e28019ba7c3e4832e373d32c71902c9c0d | 397859a53429e7a585e5f6964ad24146c6261326 | refs/heads/master | 2022-12-28T01:08:32.333111 | 2020-09-30T19:37:53 | 2020-09-30T19:37:53 | 300,037,652 | 1 | 1 | WTFPL | 2020-10-15T09:26:32 | 2020-09-30T19:29:29 | Java | UTF-8 | C++ | false | false | 453 | cpp | #include <cstdio>
int main() {
int n, ns[1000000], sum1 = 0, sum2 = 0;
scanf("%d", &n);
for(int i=0; i<n; i++) {
scanf("%d", &ns[i]);
sum1 += ns[i];
}
if(sum1%2 == 0) {
for(int i=0; i<n; i++) {
sum1 -= ns[i];
sum2 += ns[i];
if(sum1 == sum2) {
printf("%d\n", i+1);
... | [
"elmas.ferhat@gmail.com"
] | elmas.ferhat@gmail.com |
0ac3a1da96544775e71947d71648ef12b20d9950 | 1dd825971ed4ec0193445dc9ed72d10618715106 | /examples/extended/hadronic/Hadr02/include/G4UrQMD1_3Model.hh | b508864984d593e3a0977dcbacf5f07cc4d010b4 | [] | no_license | gfh16/Geant4 | 4d442e5946eefc855436f4df444c245af7d3aa81 | d4cc6c37106ff519a77df16f8574b2fe4ad9d607 | refs/heads/master | 2021-06-25T22:32:21.104339 | 2020-11-02T13:12:01 | 2020-11-02T13:12:01 | 158,790,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,179 | hh | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | [
"gfh16@mails.tsinghua.edu.cn"
] | gfh16@mails.tsinghua.edu.cn |
0b17591b5f274b89f38d222f9f63924b4d44b383 | b30a7be97defa312346391099b3d2eae0fb6f7ce | /src/qt/addresstablemodel.cpp | eee2a1bddfe1ffbe118039c23bd65e6265f23b14 | [
"MIT"
] | permissive | chavezcoin-project/arepacoin-pivx | 5a3b6000834417f295aba719c5b66283cd5df63f | e51b95c8a733f98a71e0e2b4fc8d8dbc43fc2bae | refs/heads/master | 2021-07-10T15:24:35.549002 | 2017-10-03T16:36:11 | 2017-10-03T16:36:11 | 105,044,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,043 | cpp | // Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "addresstablemodel.h"
... | [
"loldlm1@gmail.com"
] | loldlm1@gmail.com |
a446699439d3e6312cbfcfd14bd677d7b1513b2b | 883dc584a7df35efc9dbc52ffea8b7078c6e231d | /UVA兩顆星/Blowing Fuses.cpp | 2b8dc5617fe866397ef47597eb0a25469a9fd448 | [] | no_license | gigilin7/Program-solving | 5ef048c24fa9ff0f2ea738c0d9361eb340c50152 | ac4402b2635b2af2f41c83764bcc9bfce02a0f89 | refs/heads/main | 2023-03-12T17:59:33.905088 | 2021-02-22T11:22:23 | 2021-02-22T11:22:23 | 341,097,168 | 1 | 0 | null | null | null | null | BIG5 | C++ | false | false | 811 | cpp | //題目:http://javauva.blogspot.com/2016/01/c094-00661-blowing-fuses.html
#include <iostream>
using namespace std;
int main()
{
int n,m,c,count=1;//電器用品數,開關次數,上限
while(cin>>n>>m>>c&&n)
{ //turn=0是關,turn=1是開
int I[20]={0},turn[100]={0},sum=0,max=0;
for(int i=1;i<=n;i++)
{
cin>>I[i];//每個電器的電流
}
for... | [
"gigilinqoo@gmail.com"
] | gigilinqoo@gmail.com |
33efc59050ea54141be8ef3066911d753e9d41d6 | e42c57e2cbcc6193bb0f623e67931e084b828c8b | /Libraries/BetterStepper/BetterStepper.cpp | ecf25eb50baaab654dfb27fdaf187190e8b458c3 | [] | no_license | CautelaTech/BluetoothRCCar | 8df89e54ec3aea3a34093c35bd1ceeb40f8db3dd | 35fe38c1913774a507418c1e3b92224de3f87551 | refs/heads/master | 2021-01-25T05:23:17.462100 | 2014-12-30T21:22:40 | 2014-12-30T21:22:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,023 | cpp | /*
BetterStepper.cpp - - BetterStepper library for Wiring/Arduino - Version 0.4
Original library (0.1) by Tom Igoe.
Two-wire modifications (0.2) by Sebastian Gassner
Combination version (0.3) by Tom Igoe and David Mellis
Bug fix for four-wire (0.4) by Tom Igoe, bug fix from Noah Shibley
Driv... | [
"ncoursey@brownjordan.com"
] | ncoursey@brownjordan.com |
0f1d1fdb9351d125b48a756d9f3a897a2d55f011 | 806fdce612d3753d219e7b3474c52a419e382fb1 | /Renderer/RendererBackend/Direct3D11Renderer/include/Direct3D11Renderer/RootSignature.h | 1011490a154f67d81bded029952ab074887e1a68 | [
"MIT"
] | permissive | whaison/unrimp | 4ca650ac69e4e8fd09b35d9caa198fe05a0246a3 | 8fb5dfb80a3818b0b12e474160602cded4972d11 | refs/heads/master | 2021-01-11T15:19:21.726753 | 2017-01-25T19:55:54 | 2017-01-25T21:55:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,888 | h | /*********************************************************\
* Copyright (c) 2012-2017 The Unrimp Team
*
* 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 wit... | [
"cofenberg@gmail.com"
] | cofenberg@gmail.com |
4a843629d5d1c73fecc2da0187c9769d79d265aa | 98998787f7d2fe79e4438ffc3c01b049824bedbc | /Data Structures/Graph C++/graph.h | 8a947f2a90ada1d3981790434a8769a5dd68882a | [] | no_license | Niangmodou/Cpp-DataStructures-Algorithms | 41f15377bfbb28828db8426aa75be5401578a2f1 | fbff402cafa94ffccb3ef34edbe072382e6f1eb6 | refs/heads/master | 2022-04-14T05:14:56.013694 | 2020-04-06T01:56:09 | 2020-04-06T01:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | h | #include <iostream>
#include <vector>
#include <set>
struct Node{
Node(int data = 0);
int data;
std::vector<Node*>;
};
class Graph{
private:
size_t numVerticies;
std::set<int> verticies;
std::vector< std::vector<Node*>> adjacenyList;
public:
Graph();
~Graph();
Graph& operator=(const Graph&);
Graph(const ... | [
"niangmodou100@gmail.com"
] | niangmodou100@gmail.com |
c8b944e4911a3201c02cb369db7a2b946a910873 | 8a2f29a448f953a757e3421a1494bd575b6d324f | /orig/HeadCoupledPerspective/CPUT/CPUT/CPUTEventHandler.h | e31aaf6378f4be466901a369f42bd69bf60a6faa | [] | no_license | SRP2504/clap_project | 5c203e0b36632b29ec66b7974e0630177678910d | c5d0e11a24484e89991a38574e0b9866526bc276 | refs/heads/master | 2016-09-05T20:08:48.528622 | 2014-03-16T16:48:54 | 2014-03-16T16:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,738 | h | //--------------------------------------------------------------------------------------
// Copyright 2011 Intel Corporation
// All Rights Reserved
//
// Permission is granted to use, copy, distribute and prepare derivative works of this
// software for any purpose and without fee, provided, that the above copyrig... | [
"srp201201051@gmail.com"
] | srp201201051@gmail.com |
22b51dc8b515c62e99ddbf4ef9a8bbe9c6acf361 | 434ff801f9f28918c9e572bb752d0fc5a181edb2 | /face_practice question/stage2/Electricity_bill.cpp | 5858714446e530f65e0c3f7e969b86f3fdce0c8a | [] | no_license | ayushikhandelwal99/C_basic_to_adv | bdf63dd202a9ef287f558a959a82a04e157f8a76 | 9cfcc20c10a2b1c19e3e32f5c8e3a49c581df1fa | refs/heads/master | 2022-12-26T00:52:48.973577 | 2020-10-15T05:31:03 | 2020-10-15T05:31:03 | 279,268,546 | 0 | 1 | null | 2020-10-15T05:31:04 | 2020-07-13T10:15:51 | C++ | UTF-8 | C++ | false | false | 320 | cpp | #include<iostream>
using namespace std;
int main()
{
int units;
int cost=0;
cin>>units;
if(units<=200)
cost=units*0.5;
else if(units<=400)
cost=units*0.65+100;
else if(units<=600)
cost=units*0.80+200;
else
cost=units*1.25+425;
cout<<"Rs."<<cost;
return 0;
//Type your code here.
}
| [
"ayushikhandelwal9919@yahoo.com"
] | ayushikhandelwal9919@yahoo.com |
d7cebdf9af46425513763dd91c011de1c2be5a41 | e59b51f7aa3abd84607879c5d8a360c62e3c3f96 | /include/leveldb/table_builder.h | 74a3aaa1d08c620ffe2da244ee7015fe6ce5a9c8 | [
"BSD-3-Clause"
] | permissive | bigtreetree/leveldb2 | b4421b4fe327d12b074a123816138c0a85793376 | 6d058a0672854e76e526b94d52571ef4782d614c | refs/heads/master | 2021-01-10T14:04:56.506997 | 2015-11-03T13:04:57 | 2015-11-03T13:04:57 | 43,273,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,452 | h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// TableBuilder provides the interface used to build a Table
// (an immutable and sorted map from key... | [
"chengshaoyuan@daoke.me"
] | chengshaoyuan@daoke.me |
0c8bef0e31c3ae8be762f14676a19c8c7f02b391 | fe7519308d99558da2ba14a8a5235166039496bb | /src/Models/Embedded/AchievedCommands/AchievedCommands.cpp | da923043c7353adcf8678d7a65f4e74f71fea24b | [] | no_license | SwaggyTyrion/MissileSim | c1953b1c1bd275d4d1ae4642bd75ecb13757c9d5 | c49088247f34c7fbfb1d86fe73261d6735321a88 | refs/heads/master | 2020-06-15T13:09:29.841446 | 2016-12-28T18:30:01 | 2016-12-28T18:30:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,844 | cpp | //
// AchievedCommands.cpp
// MissileSim
//
// Created by Christian J Howard on 9/30/16.
// Copyright © 2016 Christian Howard. All rights reserved.
//
#include "AchievedCommands.hpp"
#include "MissileModel.hpp"
#include "ProNav.hpp"
#include "CoordTransforms.hpp"
#include "Gravity84.hpp"
#include <math.h>
#include... | [
"choward1491@gmail.com"
] | choward1491@gmail.com |
fb9ca22a3037ce6b270ba9ca6b2670210d686764 | 50fb7bffeeca41da0ffd7b4f2e6e187f386030b9 | /src/ngraph/slice_plan.hpp | 49ab7c55fe8cb33fd87af2a8a5c588bc574e6353 | [
"Apache-2.0"
] | permissive | biswajitcsecu/ngraph | eaa0eb54a7bcf9a602e5fbd52c0c5a1856351977 | d6bff37d7968922ef81f3bed63379e849fcf3b45 | refs/heads/master | 2020-09-12T04:36:36.214712 | 2019-11-17T20:31:26 | 2019-11-17T20:31:26 | 222,307,789 | 1 | 0 | Apache-2.0 | 2019-11-17T20:30:18 | 2019-11-17T20:30:18 | null | UTF-8 | C++ | false | false | 2,376 | hpp | //*****************************************************************************
// Copyright 2017-2019 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | [
"diyessi@users.noreply.github.com"
] | diyessi@users.noreply.github.com |
5674e00669fe66a35086f3c0e9c234f39798a1d1 | 7dc33e4edeac09883fefe6f4c353936473f10cb1 | /C++ Задачи (Руский язык)/03 Динамические массы и функции/Задача 06 Количество пар элементов/Задача 6 Количество пар элементов.cpp | 89295e86e5d672971cd461a74f50cd45e4650e22 | [] | no_license | ErikHarutyunyan/Cpp-Projects | 204ac6b94a6886ec77977f8c468da4b9eedc3928 | 92f1eaa316fd554b61de26ca09cb62221164dbcd | refs/heads/main | 2023-03-28T17:13:54.231337 | 2021-04-18T17:59:08 | 2021-04-18T17:59:08 | 359,203,500 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,616 | cpp | // Задача 6 Количество пар элементов.cpp
/* Напишите программу, которая будет получать на входе натуральное число N, а затем последовательность целых N элементов. Программа должна отображать количество пар элементов последовательности. Используйте динамический массив для решения проблемы.։ */
/*
Примеры
... | [
"noreply@github.com"
] | ErikHarutyunyan.noreply@github.com |
1ab2831e62166cbaa1959dfaf1caa5fbda0eecd9 | 1cb73a0dece5dc21e8e7e4f88f96d1ad9e92da1a | /opencv/opencv_write_video.cpp | bfb4d01afe6e5b07d17e4a438896bbf957f6ef03 | [] | no_license | keineahnung2345/cpp-code-snippets | c2af1c7eaaddc2f0c262022743f6d42fec7fede4 | d2b48129f2c1bae1940a213517bfa3597c802aee | refs/heads/master | 2023-08-16T17:13:55.414432 | 2023-08-16T02:07:24 | 2023-08-16T02:07:24 | 160,354,272 | 52 | 16 | null | null | null | null | UTF-8 | C++ | false | false | 1,773 | cpp | #include "opencv2/opencv.hpp"
#include <iostream>
int main(){
// Create a VideoCapture object and use camera to capture the video
cv::VideoCapture cap(0);
// Check if camera opened successfully
if(!cap.isOpened())
{
std::cout << "Error opening video stream" << std::endl;
retu... | [
"noreply@github.com"
] | keineahnung2345.noreply@github.com |
0f36a8e151537d9d4a82649772d00112cb3ea247 | d0a05a30b92277e1e022bbbc9216c9f3cf8ddd58 | /EncryptedString.cpp | 6e82a0346f67cde2436f01451c546c15ef3f4d4a | [] | no_license | Averyvan/COSC2436-Lab-1 | 5b8fd346d9125c9a288604376d17052805e30aa2 | f7ce8a9d6da053530ba327035082ae4ea3479e45 | refs/heads/master | 2020-04-01T03:48:36.686977 | 2018-10-13T05:06:27 | 2018-10-13T05:06:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,392 | cpp | // Author: Avery VanAusdal
// Assignment Number: Lab 1
// File Name: EncryptedString.cpp
// Course/Section: COSC 1337 Section 3
// Date: 8/30/2018
// Instructor: Bernard Ku
#include "EncryptedString.h"
#include <string>
EncryptedString::EncryptedString()
{
}
EncryptedString::EncryptedString(string inputString)
{
set... | [
"42887561+Appleseed107@users.noreply.github.com"
] | 42887561+Appleseed107@users.noreply.github.com |
a3e54c2eb8dd56471b8f070da7508288b095e0d2 | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/testing/libfuzzer/fuzzers/sha1_fuzzer.cc | 26224331af6768e01c647579fdc755dbfb4dc7e0 | [
"BSD-3-Clause"
] | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | C++ | false | false | 436 | cc | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include <stdint.h>
#include "base/sha1.h"
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, ... | [
"csineneo@gmail.com"
] | csineneo@gmail.com |
59ecec546b2544c44b9f34af59509db93abc0776 | b9f1e77d86ad07110fae422c6212184d92cb558a | /Item.h | 73f1ab6b89fd323477f12c45b6785645fead43e6 | [] | no_license | calvinlf/BORK | 7c6a05ee1f8b8acdbc6f191a03a609af6aa6ab28 | 08c1ae4de853252127a204cafbfe9ececd9742f8 | refs/heads/master | 2020-04-09T19:46:25.441131 | 2018-12-09T03:00:38 | 2018-12-09T03:00:38 | 160,552,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 795 | h | //
// Created by CalPC on 11/27/2018.
//
#ifndef BORK_ITEM_H
#define BORK_ITEM_H
#include <string>
#include <vector>
#include <functional>
using namespace std;
class Item {
public:
Item();
Item(vector<string> names, string description, string use, vector<string> usePhrases);
Item(vector<string> names, str... | [
"calvin.l.fischer@gmail.com"
] | calvin.l.fischer@gmail.com |
72ca4c8261d1c9b6a59b9e9f2c323bab6e1804f5 | f92da971db89d6398ed38afb01923d8a687a614d | /seach_count.cpp | 8688d6aba8bc3e95e2c41fbcbe07ccd71b4a54b3 | [] | no_license | me-neha1309/DSA | e14308d7af8e9ba9f505b403f91b21e08e2a0f26 | dda2f12954ec16c909d4406cea02668f9b8eaa59 | refs/heads/main | 2023-08-31T15:47:25.345073 | 2021-09-28T04:13:32 | 2021-09-28T04:13:32 | 411,130,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,150 | cpp | #include<bits/stdc++.h>
using namespace std;
int first_search(int arr[], int n, int ele)
{
int start = 0, end = n-1, mid, res=-1;
while(start<=end)
{
mid = start + (end - start)/2;
if(arr[mid]==ele)
res = mid;
if(arr[mid]>=ele)
end = mid-1;
i... | [
"noreply@github.com"
] | me-neha1309.noreply@github.com |
8e045e40a75c60d6dc79d3a739864a9588517d05 | 1490a424c1916dfa42ae67e7c64326c10cfb115a | /SEAL/native/examples/7_performance.cpp | 82aa68a90ac7697fbff4b8642546f96e33eba9c8 | [
"MIT",
"CC0-1.0",
"BSD-3-Clause"
] | permissive | WeidanJi/seal_expansion | d858b05f5dba2e4aefded6b0f6d1ec1f0ced2bda | f4cd34f31fb43d3511cdca62206e0f764d460abc | refs/heads/master | 2023-05-06T11:43:50.011827 | 2021-05-26T05:39:12 | 2021-05-26T05:39:12 | 351,049,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,053 | cpp | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "examples.h"
using namespace std;
using namespace seal;
void bfv_performance_test(SEALContext context)
{
chrono::high_resolution_clock::time_point time_start, time_end;
print_parameters(context);
c... | [
"weidan.ji@basebit.ai"
] | weidan.ji@basebit.ai |
fa429d4690761c57ce37e41ef32069cff2afa378 | 6393b2fffc38998362aa4510c502186bcbac937c | /src/KOPSMsg_m.cc | 2dc2fe863239a5a0f2a4b8f7555249f96617a14c | [] | no_license | rodneyamanor/BLE-Link | 1412c308c0bdc69291803435e55661cb37036f3e | 39d43823e385308ca10826be145758ebc4a56d95 | refs/heads/main | 2023-02-07T19:35:14.211980 | 2021-01-03T04:05:57 | 2021-01-03T04:05:57 | 326,323,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118,889 | cc | //
// Generated file, do not edit! Created by nedtool 5.4 from KOPSMsg.msg.
//
// Disable warnings about unused variables, empty switch stmts, etc:
#ifdef _MSC_VER
# pragma warning(disable:4101)
# pragma warning(disable:4065)
#endif
#if defined(__clang__)
# pragma clang diagnostic ignored "-Wshadow"
# pragma clan... | [
"rodney@massalia.comnets.uni-bremen.de"
] | rodney@massalia.comnets.uni-bremen.de |
f1cb42262d370ebeed06ea7008c9e1e22cb00249 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/ash/child_accounts/website_approval_notifier.h | 017cb73fac83d08f474ed63d3a01a68e45c6ab6a | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 1,730 | h | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_CHILD_ACCOUNTS_WEBSITE_APPROVAL_NOTIFIER_H_
#define CHROME_BROWSER_ASH_CHILD_ACCOUNTS_WEBSITE_APPROVAL_NOTIFIER_H_
#include <string>
#include "base... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
5524afa897048af3de99bb8ecc711893b2c1fd9c | e3ef6ff25d8322cf479210846ebc677702e8edab | /necrodancer/item_coin.cpp | 14ad596b07f39cdea05e98f319525a3117aa368e | [] | no_license | dongnamyoooooooooon/yoOoOoOon | 885dbfe0c982ddc3c79eca8b129a2b11bbfd53c5 | 8a1e84a053bcf752532fb102d54fe5d810ce255b | refs/heads/master | 2020-05-01T14:05:27.437184 | 2019-04-09T08:44:05 | 2019-04-09T08:44:05 | 177,509,953 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,669 | cpp | #include "stdafx.h"
#include "item_coin.h"
item_coin::item_coin()
{
}
item_coin::~item_coin()
{
}
HRESULT item_coin::init(string keyName, int idxX, int idxY, ITEM_TYPE type)
{
item::init(keyName, idxX, idxY, type);
_appliedValue = RND->getFromIntTo(1, 9) * (OBJECTMANAGER->getChainCount() + 1);
_posX = idxX * ... | [
"46731689+dongnamyoooooooooon@users.noreply.github.com"
] | 46731689+dongnamyoooooooooon@users.noreply.github.com |
a9c07f0054b6aa918a781f0fe9822b55c15851d2 | 186a05fcb725481c0c51c31b2b948819205c789d | /src/commands/string/RegexParseCommand.cpp | 07c28f11a6c8ac60b5d9acd99220f68b8887c9a0 | [] | no_license | benhj/jasl | e497c5e17bff05aa5bbd2cfb1528b54674835b72 | 6e2d6cdb74692e4eaa950e25ed661d615cc32f11 | refs/heads/master | 2020-12-25T16:49:00.699346 | 2019-12-09T18:57:47 | 2019-12-09T18:57:47 | 28,279,592 | 27 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,125 | cpp | //
// RegexParseCommand.cpp
// jasl
//
// Copyright (c) 2018 Ben Jones. All rights reserved.
//
#include "RegexParseCommand.hpp"
#include "caching/VarExtractor.hpp"
#include "core/RegisterCommand.hpp"
#include <regex>
#include <string>
#include <vector>
bool jasl::RegexParseCommand::m_registered =
registerCommand... | [
"bhj.research@gmail.com"
] | bhj.research@gmail.com |
6189931d7a5335cb0f3b3e991d57a746f91ce4b0 | d75da4d4fa2399a1b1f5829fd89d24ae22a7e4ae | /ImGui/src/imgui_forwarder/imgui_message_forwarder.cpp | 4eaa403212cadefd26d45070b0b4296ba7245d1b | [
"MIT"
] | permissive | cbrl/Hyperion | ccb80573ece35d0e8f8220edfe653f61fb3720e5 | 27238d24ce7e629e38f94635cc9bdcc519c81a59 | refs/heads/master | 2022-12-12T06:56:36.681362 | 2022-11-25T02:31:34 | 2022-11-25T02:31:34 | 183,313,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | #include "imgui_message_forwarder.h"
// Declare the ImGui msg handler
extern LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
// Define the static message forwarder
ImGuiMessageForwarder ImGuiMessageForwarder::forwarder;
void ImGuiMessageForwarder::msgProc(gsl::not_null<HWN... | [
"cbroyles94@gmail.com"
] | cbroyles94@gmail.com |
084d5b4793ca78f015b4f63d06937f55f8de02a0 | c8daba44b8a9d10208264b4a8ddef0979b1fe288 | /rendering/RenderableComponent.cpp | ce17dce80218519ea85d8349ad9917eeeb76dc5d | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | noirb/FuLBLINKy | 3c1738cc92c11f998636dcf1b35cbf09dcabed38 | 2be81d24198b73a78e4928ab7ac8a44ffa5efd57 | refs/heads/master | 2021-01-25T00:37:48.654371 | 2015-11-26T20:09:12 | 2015-11-26T20:09:12 | 37,765,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,450 | cpp | #include "RenderableComponent.hpp"
#include <iostream>
// Destructor: clean up now-unused objects
RenderableComponent::~RenderableComponent()
{
if (_vertex_buffer_data)
{
delete _vertex_buffer_data;
}
glDeleteBuffers(1, &_VBO);
glDeleteVertexArrays(1, &_VAO);
}
void RenderableComponent::... | [
"quetchl@gmail.com"
] | quetchl@gmail.com |
745bb03667097740477baec284743aa1685f0566 | ba7707734e366326a7deaed69e0d22c883f64230 | /cpp-code/PRIC-13553643-src.cpp | 71246215e01000537869dfc37925ea56f6869637 | [] | no_license | aseemchopra25/spoj | 2712ed84b860b7842b8f0ee863678ba54888eb59 | 3c785eb4141b35bc3ea42ffc07ff95136503a184 | refs/heads/master | 2023-08-13T14:07:58.461480 | 2021-10-18T12:26:44 | 2021-10-18T12:26:44 | 390,030,214 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,457 | cpp | #include<cstdio>
#include <cstdlib>
#define MOD 2147483648
#define ADD 1234567890
#define pc(x) putchar_unlocked(x)
#define ll long long
inline int mulmod(int a, int b, int mod)
{
ll x = 0,y = a % mod;
while (b > 0)
{
if (b&1)
{
x = (x +y) % mod;
}
y = (y<<1) % ... | [
"aseemchopra@protonmail.com"
] | aseemchopra@protonmail.com |
c3bc0a76b928bf952eca1a476fba508fbc81132c | d89df4cf6e89529f91db28115059278b6691e77b | /src/vendors/OceanOptics/devices/NIR256.cpp | c1ba2bdb3e948852d214d08a7c38823ce7ac0c77 | [
"MIT"
] | permissive | udyni/seabreeze | d31f1abeac5489929318ca9406b6e2064eb1e197 | 3d3934f8f0df61c11cef70516cf62a8472cab974 | refs/heads/master | 2021-03-23T12:46:31.498576 | 2020-04-06T15:01:14 | 2020-04-06T15:01:14 | 247,455,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,877 | cpp | /***************************************************//**
* @file NIR256.cpp
* @date March 2020
* @author Michele Devetta
*
* LICENSE:
*
* SeaBreeze Copyright (C) 2020, Michele Devetta
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated docu... | [
"michele.devetta@cnr.it"
] | michele.devetta@cnr.it |
e9d115176fabcc0454ac43a9a4a7148c86576940 | b43123758faa3d717d51000dcc82b125ef7fc41e | /UNITTESTS/stubs/ChainingBlockDevice_stub.cpp | 51134b3553702a2fb7e6cadba429cafa696ebd16 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | codegrande/mbed-os | 806f1526dfd11b03e2c1de4508674cff5ea499ce | d847a07cb37c15cbe5b0cdc3937026411058d298 | refs/heads/master | 2020-03-30T14:24:12.879359 | 2019-06-20T14:38:49 | 2019-06-20T14:38:49 | 151,316,378 | 0 | 0 | Apache-2.0 | 2018-10-02T20:08:19 | 2018-10-02T20:08:19 | null | UTF-8 | C++ | false | false | 1,714 | cpp | /* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* 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 require... | [
"antti.kauppila@arm.com"
] | antti.kauppila@arm.com |
1c14897dcc8eb2daa13d030ad237dd83fc2712cd | eef01cebbf69c1d5132793432578d931a40ce77c | /IF/Classes/scene/battle/BattleManager.cpp | 8f48dfc283d1ffe2a9f1bcbc2191026a1c9dd700 | [] | no_license | atom-chen/zltx | 0b2e78dd97fc94fa0448ba9832da148217f1a77d | 8ead8fdddecd64b7737776c03417d73a82a6ff32 | refs/heads/master | 2022-12-03T05:02:45.624200 | 2017-03-29T02:58:10 | 2017-03-29T02:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,809 | cpp | //
// BattleManager.cpp
// IF
//
// Created by ganxiaohua on 13-9-17.
//
//
#include "BattleManager.h"
#include "UIComponent.h"
#include "GeneralInfo.h"
#include "CCFloatingText.h"
#include "GeneralManager.h"
#include "MailFightReportCommand.h"
#include <spine/Json.h>
using namespace cocos2d;
CCPoint postion[11]... | [
"441066277@qq.com"
] | 441066277@qq.com |
741fcac39fca998ea04115a8444e0fdc1e0e20fe | 5f12bccc76142365ba4e1a28db800d01c952a24a | /passive/AtMagnet.cxx | a4cee2a213b9bb9417c989374085a41dd9c625c0 | [] | no_license | sunlijie-msu/ATTPCROOTv2 | 7ad98fd6f85126e5b480f7897a2b98d1fc8bf184 | 870b75170990b0782918f17b2230045ab1f458ef | refs/heads/master | 2023-06-02T06:28:30.308596 | 2021-02-26T14:59:53 | 2021-02-26T14:59:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,930 | cxx | /********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the ... | [
"ayyadlim@nscl.msu.edu"
] | ayyadlim@nscl.msu.edu |
f0db03f164f379977fef9b24fa2640415f34d6aa | 505284bd4a9dde17b016db6df6c6ce7f27ff5db9 | /main.cpp | 8b0847c34a14ba89dec2b31a812d71aa08f8d04e | [] | no_license | Vennisha-Naidoo/BinaryToDecimalConversion-CPlusPlus- | 51c90e04e4c03c83a4e3619a659f437a1038d57d | 4dd563e1be95d13a16da66f8a51682911160703a | refs/heads/main | 2023-08-24T00:07:07.702519 | 2021-10-11T12:14:28 | 2021-10-11T12:14:28 | 415,911,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,432 | cpp | #include <iostream>
#include <math.h>// including math - to use pow() function
#include <bits/stdc++.h>
#include <sstream> //for the use of ostringstream - integer to string conversion
using namespace std;
//Validate function declaration - parameter recieved
bool ValidateInput(int Num){
ostringstream... | [
"noreply@github.com"
] | Vennisha-Naidoo.noreply@github.com |
54af83b92f0ff18156ca34848bd38291a34a3b1d | 696e35ccdf167c3f6b1a7f5458406d3bb81987c9 | /storage/browser/fileapi/file_system_context.h | 9e4c99fc7e1b661d2ffa5f9b49d3e46ef52260f8 | [
"BSD-3-Clause"
] | permissive | mgh3326/iridium-browser | 064e91a5e37f4e8501ea971483bd1c76297261c3 | e7de6a434d2659f02e94917be364a904a442d2d0 | refs/heads/master | 2023-03-30T16:18:27.391772 | 2019-04-24T02:14:32 | 2019-04-24T02:14:32 | 183,128,065 | 0 | 0 | BSD-3-Clause | 2019-11-30T06:06:02 | 2019-04-24T02:04:51 | null | UTF-8 | C++ | false | false | 17,370 | h | // 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.
#ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
#define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_CONTEXT_H_
#include <stdint.h>
#include <map>
#in... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
5826ea56e9f7674698d396f35264ac04f974e561 | 9792ff3e2512a70bf286363d5cfc451dae9f09ca | /SuperSequence.cpp | 29bb24abb88a80fa0f71235b10fbefc2ae12227f | [] | no_license | TheTypo36/competitive-Programming | 0ecffbb48c3fcccb110eb965cb2738de05a0aa10 | 59ae2bc2761b89461ef6948c84dbb3e4f68842d8 | refs/heads/master | 2023-07-06T19:56:18.125386 | 2021-08-19T15:13:47 | 2021-08-19T15:13:47 | 297,542,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | cpp | #include <bits/stdc++.h>
using namespace std;
int lcs(char str1[], char str2[], int n, int m){
vector<vector<int>> dp(n+1,vector<int>(m+1, 0));
for (int i = 1; i < n + 1 ; ++i)
{
for (int j = 1; j < m+1; ++j)
{
if(str1[i-1] == str2[j-1]){
dp[i][j] = 1 + dp[i-1][j-1];
}else{
int option = dp[i-1][j];... | [
"thetypo36@gmail.com"
] | thetypo36@gmail.com |
054af09ae9989ac17046610f7a017755fd898f28 | ff6a8e462e51552d3b7da069df8f80239d8c9506 | /cs680-distsim/lab2/simplus/LogLogisticDist.cpp | b7278f634f83c02a274a7b11456dd21225a2bbff | [] | no_license | Salimlou/Class-Work | 5ad5463eff2c916c414d88c35a3c50c415ece5e3 | 2b8db821bd16ed5746bae42cfa03f0b6d45b713a | refs/heads/master | 2021-01-18T11:22:43.266151 | 2012-03-25T02:02:01 | 2012-03-25T02:02:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | /*****************************************************************
Program: SimPlus
Class: LogLogisticDist
Group: Mark Randles, Dan Sinclair
*****************************************************************/
#include <math.h>
#include "LogLogisticDist.h"
/*
The contructor receives two parameters N and P
*/
LogL... | [
"randlem@gmail.com"
] | randlem@gmail.com |
2fd9105a40880bf9cfddb8ee3f4185b2dbf07b03 | 6bda0d8a8aeb1357de3131e39d695685a727e148 | /src/drivers/disk_logger.cpp | 25800021495d3f424c23a4846a1eee82a31c0608 | [
"Apache-2.0"
] | permissive | xekoukou/IncludeOS | 78ac2a20463093a2cdff2f8f007ad46281b8ace0 | 34bb08cf4b01bdd7e9bb5ee49f59241cf5e73fe8 | refs/heads/master | 2021-05-13T23:14:27.434226 | 2018-01-04T15:37:07 | 2018-01-04T15:37:07 | 116,509,752 | 0 | 0 | null | 2018-01-06T19:28:25 | 2018-01-06T19:28:24 | null | UTF-8 | C++ | false | false | 2,517 | cpp | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may... | [
"fwsgonzo@hotmail.com"
] | fwsgonzo@hotmail.com |
3789891ff5b2b23acb87082352e49c577bef6930 | 60bd79d18cf69c133abcb6b0d8b0a959f61b4d10 | /libraries/TOPMAX/examples/TOPMAX_performance/TOPMAX_performance.ino | 2ca13efcc7fc120cdc0208f5d70e79e91df12058 | [
"MIT"
] | permissive | RobTillaart/Arduino | e75ae38fa6f043f1213c4c7adb310e91da59e4ba | 48a7d9ec884e54fcc7323e340407e82fcc08ea3d | refs/heads/master | 2023-09-01T03:32:38.474045 | 2023-08-31T20:07:39 | 2023-08-31T20:07:39 | 2,544,179 | 1,406 | 3,798 | MIT | 2022-10-27T08:28:51 | 2011-10-09T19:53:59 | C++ | UTF-8 | C++ | false | false | 2,246 | ino | //
// FILE: TOPMAX_performance.ino
// AUTHOR: Rob Tillaart
// PURPOSE: TOPMAX demo
// URL: https://github.com/RobTillaart/TOPMAX
#include "TOPMAX.h"
uint32_t start, stop;
uint32_t cnt = 0;
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("TOPMAX_LIB_VERSION: ");
Serial.pr... | [
"rob.tillaart@gmail.com"
] | rob.tillaart@gmail.com |
2a0844a5b49abaf12edd7e63828bfe34001d068e | e6ef968145e4f9c5c4556e9ca7273b95377c39e9 | /singaporean name/main.cpp | 39a7c324a06ac835f279dd836dbb2d7c840424f2 | [] | no_license | FangShaoHua94/kattis-Cplusplus | 99cd9cecb1a84df116046671f5be073e6b5f1144 | 82049df6793682bb73b57913add04be28a3d3829 | refs/heads/master | 2023-02-11T12:11:42.966616 | 2021-01-15T08:25:57 | 2021-01-15T08:25:57 | 329,851,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | #include <bits/stdc++.h>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
string call_as(string name);
int main() {
string name="Ng Zhen Rui Matthew";
name=call_as(name);
name="Tan Jun An";
name=call_as(name);
name="Lim Li";
name=call_as(... | [
"daythehangedman@hotmail.com"
] | daythehangedman@hotmail.com |
cddade305793f9093e01413ea691cf3ea6fb7e3d | 6361c72200b965117807b80bce1360fab4f24975 | /AEDA_proj2/empresa.cpp | 15422988678929703adf1308c1c009dd622a7e31 | [] | no_license | bluediberry/AEDA | bcb566b36b6c2aeece6433867b917c6d9b1da7e9 | fdc8c8a98633d2c8524918f59af729ffe731e21f | refs/heads/master | 2020-04-01T17:37:08.865602 | 2019-01-09T16:48:39 | 2019-01-09T16:48:39 | 153,440,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,195 | cpp | #include "empresa.h"
float Empresa::cartao_gold_preco = 5.95;
float Empresa::desconto_cartao_gold = 0.15;
int Empresa::numero_maximo_utentes_por_campo=25;
float Empresa::preco_modo_livre=7.50;
Empresa::Empresa() : utilizadores(Utente("", "",0,true)){
gastosEmReparacoes=0;
}
void Empresa::adicionar_campo(ca... | [
"noreply@github.com"
] | bluediberry.noreply@github.com |
f4ea3567630d2fe92edd70e17791c978b3ede9e3 | f84ee6582e88483aa337bc9bb9312294c1d79e23 | /src/events/sacpp_archiver_takeImageDone_send.cpp | ed278de6c5f9f822b03ed26c0c14b91b8091be0a | [] | no_license | provingground-curly/ctrl_iip | 41ab1fe1c70cd898019f5b75b6c0f5adf21e3d3f | 193859f72e1beb2fc5a940f6bb5f5f0bbef7f99a | refs/heads/master | 2020-05-16T13:15:24.731460 | 2019-04-20T02:36:40 | 2019-04-20T02:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,179 | cpp |
/*
* This file contains the implementation for the archiver_takeImageDone send test.
*
***/
#include <string>
#include <sstream>
#include <iostream>
#include <unistd.h>
#include "SAL_archiver.h"
#include "ccpp_sal_archiver.h"
#include "os.h"
#include <stdlib.h>
#include "example_main.h"
using namespace DDS;
usi... | [
"htutkhwin@gmail.com"
] | htutkhwin@gmail.com |
1d8e91ffa3e877a62e3adeb5219c179dc1011011 | 65987a3251e26302d23396be2a14c8730caf9f6c | /CF/1295B.cpp | d6763f42fdf9cbdb130663167e66ad7198034a9a | [] | no_license | wuyuhang422/My-OI-Code | 9608bca023fa2e4506b2d3dc1ede9a2c7487a376 | f61181cc64fafc46711ef0e85522e77829b04b37 | refs/heads/master | 2021-06-16T08:15:52.203672 | 2021-02-01T05:16:41 | 2021-02-01T05:16:41 | 135,901,492 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,290 | cpp | /*
* Author: RainAir
* Time: 2020-03-05 10:10:42
*/
#include<bits/stdc++.h>
#define fi first
#define se second
#define U unsigned
#define P std::pair<int,int>
#define LL long long
#define pb push_back
#define MP std::make_pair
#define all(x) x.begin(),x.end()
#define CLR(i,a) memset(i,a,sizeof(i))
#define FOR(i,a,b... | [
"wuyuhang422@gmail.com"
] | wuyuhang422@gmail.com |
0a868b4c62c119d35a27f482f879384e97938929 | 67fee4c964cfba111dcb1a39d126987e6b9867fd | /src/header.h | 41fcc25eb66caa29994b64870ee9f3b27c017ac8 | [] | no_license | ss12330335/MEPL | f4fd3e02880f8cd511c7e5d7baa346bde8f44477 | 99629bf5ddb814480a1fd533346163c76a79090c | refs/heads/master | 2020-03-27T12:39:11.025795 | 2018-08-29T07:13:15 | 2018-08-29T07:13:15 | 146,559,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 277 | h | #ifndef __HEADER_H__
#define __HEADER_H__
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <list>
#include <algorithm>
#include <cmath>
#include <assert.h>
#include <fstream>
#include <limits.h> // for INT_MAX and INT_MIN
#endif | [
"614984958@qq.com"
] | 614984958@qq.com |
f10521d50edf11018cc7530cfc90d9434bdffe38 | 9a3b9d80afd88e1fa9a24303877d6e130ce22702 | /src/Providers/UNIXProviders/tests/UNIXProviders.Tests/UNIX_IPSubnetFixture.cpp | 641d8736b567017a28b9ff074dc8be2fc714681e | [
"MIT"
] | permissive | brunolauze/openpegasus-providers | 3244b76d075bc66a77e4ed135893437a66dd769f | f24c56acab2c4c210a8d165bb499cd1b3a12f222 | refs/heads/master | 2020-04-17T04:27:14.970917 | 2015-01-04T22:08:09 | 2015-01-04T22:08:09 | 19,707,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,383 | cpp | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | [
"brunolauze@msn.com"
] | brunolauze@msn.com |
8d7d31f152cf7c0b4fbce6e353c988728bb03ef6 | 93f20091d507fa59ee2492e03a5e950341cc2662 | /BOJ/BOJ/17140 이차원 배열과 연산.cpp | 46efd2ac304cb4c9246b0b7d2f775dd961e942fb | [] | no_license | Wonjyeon/BOJ | f90ab0881fa25cb6b0893902143d3a6477cc4307 | 56554d4c964dc3c4d749de86a3ddc40d9dda58fc | refs/heads/master | 2021-03-04T18:20:18.499160 | 2020-11-01T12:12:32 | 2020-11-01T12:12:32 | 246,055,134 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,321 | cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int r, c, k, map[101][101];
int N = 3, M = 3, ans = 0, max_row = 0, max_col = 0;
bool cmp(pair<int, int> p1, pair<int, int> p2) {
if (p1.second < p2.second) return true;
else if (p1.second == p2.second) {
if (p1.first < p2.first) retu... | [
"wndus9382@naver.com"
] | wndus9382@naver.com |
01fb37a2a4adbe33e2a5f655d559f7cbd90bf349 | 5f6cef5c4dab7661b4ec6c9de53395ba425e0925 | /08_jumpFloor.cpp | f42da3f75ec0ab5c3cf0db3403faa4ead3b2f60d | [] | no_license | htyxiaoaiai/Offer | 89da97e6feea99fe5e2dabbe5768ac2cb1a978fa | a7ba10cd9f180256138db6afc633ebb8d8c85352 | refs/heads/master | 2021-01-17T12:48:44.148425 | 2016-07-21T15:48:30 | 2016-07-21T15:48:30 | 58,129,881 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | cpp | 题目描述
一只青蛙一次可以跳上1级台阶,也可以跳上2级。求该青蛙跳上一个n级的台阶总共有多少种跳法。
解法分析:
最简单的情况:
如果只有1级台阶,那么显然只有一种跳法。如果有2级台阶,那么则会有2种跳法:一种是分两次跳,每次跳1阶;另外一种则是一次跳2级。
一般情况:
当n大于2时,第一次跳的时候有两种选择:一种是第一次只跳1阶,此时的跳法就是f(n-1),另外一种跳法就是第一次跳2阶,然后此时的跳法就是f(n-2)。
所以总的次数就是f(n)=f(n-1)+f(n-2);很明显此时是一个斐波那契数列。
//跳台阶
long long jumpFloor(size_t number) {
size_t jump[2] =... | [
"htyxiaoaiai1314@gmail.com"
] | htyxiaoaiai1314@gmail.com |
647b77697765305dfb89ef91cbc034e4598faad0 | fba719746323ebb2a561cfc6f2cb448eec042d1a | /c++实用代码/tmp/New LCP+Suffix Array1.cpp | 1917eacfa25fb427e5684e359221722b70bb638f | [
"MIT"
] | permissive | zhzh2001/Learning-public | 85eedf205b600dfa64747b20bce530861050b387 | c7b0fe6ea64d2890ba2b25ae8a080d61c22f71c9 | refs/heads/master | 2021-05-16T09:44:08.380814 | 2017-09-23T04:55:33 | 2017-09-23T04:55:33 | 104,541,989 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 891 | cpp | #include<stdio.h>
#include<time.h>
#include<algorithm>
#define N 500010
#define CH 256
typedef int value;
value X[N][21],ra[CH];
int l2[N],sa[N];
char str[N];
int n,i,j;
int LCP(int x,int y){
int pre=x;
for (int i=l2[n];i>=0;--i)
if (x+(1<<i)-1<n&&y+(1<<i)-1<n&&X[x][i]==X[y][i])
x+=1<<i,y+=1<<i;
return x-pre;
}... | [
"zhangzheng0928@163.com"
] | zhangzheng0928@163.com |
7728dde8d0a1b8647862c1a202ab17783fe4c269 | f52bf7316736f9fb00cff50528e951e0df89fe64 | /Platform/vendor/samsung/common/packages/apps/SBrowser/src/chrome/app/android/sbr/sbr_chrome_main_delegate_android.h | 4e90870dafbf89a4fb110c265b9adeaf9cf20692 | [
"BSD-3-Clause"
] | permissive | git2u/sm-t530_KK_Opensource | bcc789ea3c855e3c1e7471fc99a11fd460b9d311 | 925e57f1f612b31ea34c70f87bc523e7a7d53c05 | refs/heads/master | 2021-01-19T21:32:06.678681 | 2014-11-21T23:09:45 | 2014-11-21T23:09:45 | 48,746,810 | 0 | 1 | null | 2015-12-29T12:35:13 | 2015-12-29T12:35:13 | null | UTF-8 | C++ | false | false | 802 | h | // 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.
#ifndef CHROME_APP_ANDROID_SBR_SBR_CHROME_MAIN_DELEGATE_ANDROID_H_
#define CHROME_APP_ANDROID_SBR_SBR_CHROME_MAIN_DELEGATE_ANDROID_H_
#include "chrom... | [
"digixp2006@gmail.com"
] | digixp2006@gmail.com |
bf62c7c8e323bbb98f8ef9e3cd6f7a61e17a2d4a | 18cf4e58c04409e1372ec3a65223e5d5cf2c048c | /test/unit_tests/subscriber_test/Subscriber.h | 9b7b700b7b0a38434e979eea837a018d0c095b78 | [] | no_license | malzer42/lmis | 967fdfafde36690e8b12e96ff4986b4ec923fe8a | 6a621dfd07ba5c6b7cbf1b7ab5f97545f154b726 | refs/heads/master | 2020-03-19T22:57:58.646928 | 2020-03-10T14:18:19 | 2020-03-10T14:18:19 | 136,987,520 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,069 | h | // Subscriber.h: Header for the definition of the class Subscriber.
// Author(s): Pierre Abraham Mulamba.
// Date of creation (modification): 2018/06/10 (2018/06/12).
// Description: The class Subscriber is a concrete class that defines a Subscriber interface and representation.
// Usage: To create an instance of a Sub... | [
"pmulamba@gmail.com"
] | pmulamba@gmail.com |
9a494a6c74e2f9add9a0a0083ca6fe5e9785a4ab | 5633c81bd22fa81d84a7dc2424ed04580250b7bb | /php-5.2.2/s60ext/s60_log/CLogImpl.h | ce93c874772a2911bc23ffd75d0c28d6386801dc | [] | no_license | tuankien2601/PAMP | bc104d5ec8411b570429e4f9b9bff299a75f86bd | 320b286d28c96356ef88b086a71c740b2ec91b44 | refs/heads/master | 2021-06-20T19:49:18.206942 | 2017-08-14T08:47:56 | 2017-08-14T08:47:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | h | #ifndef __CLOGIMPL_H__
#define __CLOGIMPL_H__
#include <e32base.h> // CActive
#include <F32FILE.H>
#include <LOGVIEW.H>
#include <logcli.h>
#include "s60ext_tools.h"
class CWaitAndReturn : public CActive
{
public:
CWaitAndReturn();
~CWaitAndReturn();
TInt Wait();
private:
void RunL();
void DoCancel();
pri... | [
"lizhenfan902@gmail.com"
] | lizhenfan902@gmail.com |
404500c497ef435e178ff8d43a2ed6c775a0e118 | 694c05848157073888a6dd5cde215ada80c20fb2 | /src/DPPrimaryGeneratorAction.cxx | 80870ae27a0399de700a83089a1d93a6cabf05d2 | [] | no_license | dkleinja/DPSim | 240f30795b21ef39a6c8fc1646cfbaa4f2cf9a18 | 80d285a6183e730b72129f36322c479d0327c60b | refs/heads/dev | 2020-06-18T15:57:41.365444 | 2017-06-01T22:36:20 | 2017-06-01T22:36:20 | 75,128,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,955 | cxx | #include "DPPrimaryGeneratorAction.h"
#include <fstream>
#include <string>
#include "Randomize.hh"
#include "G4SystemOfUnits.hh"
#include "G4PhysicalConstants.hh"
#include <TFile.h>
#include <TTree.h>
#include <TMath.h>
#include <TVector3.h>
#include <TLorentzVector.h>
namespace DPGEN
{
// global parameters
... | [
"liuk.pku@gmail.com"
] | liuk.pku@gmail.com |
80d4d416a5c7bb2e110441b825b961b878f6622e | 0c619682d82e155047ff1c9adcdecf5e9c4cc17a | /20200209/D/D.cpp | f890e94a51a398e7561d60aa4bf939f73decedf6 | [] | no_license | kasataku777/atcoder_solution | 822a6638ec78079c35877fadc78f6fad24dd5252 | 8838eb10bf844ac3209f527d7b5ac213902352ec | refs/heads/master | 2023-01-23T06:36:59.810060 | 2020-12-03T02:02:40 | 2020-12-03T02:02:40 | 247,486,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | cpp | #include<iostream>
using namespace std;
int main() {
int n, k;
int p[200000];
double sum=0;
double max = 0;
double kitai[200000];
cin >> n >> k;
for (int i = 0; i < n; i++) {
cin >> p[i];
}
for (int i = 0; i < n; i++) {
kitai[i] = 1 + 0.50*(p[i] - 1);
}
for (int i = 0; i < k; i++) {
sum += k... | [
"takumi.jihen@gmail.com"
] | takumi.jihen@gmail.com |
76825cf2bd742ffb91ced0ecd0ae9ab91befacaa | 0058e203911ee4920b6962f4679e9b40461cffdb | /unique-datesize.cpp | 605ce39fa2dbc0302a6bfbd1c70dd3994fa3eb25 | [] | no_license | FeelUsM/scripts | 81f17eac43aa224c225a11b4b4d57416a64ea515 | 90867b733c94626f2203882dc90453bfbb793012 | refs/heads/master | 2023-08-09T23:13:08.741189 | 2023-07-31T08:04:54 | 2023-07-31T08:04:54 | 38,750,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,574 | cpp | #define ONE_SOURCE
#include <strstr/strin.h>
#include <iostream>
//#include <utime.h>
#include <map>
#include <string>
#include <stdlib.h>
#include <algorithm>
using std::string;
using std::pair;
using std::make_pair;
using std::multimap;
using std::cerr;
using std::cout;
using std::endl;
using std::sort;
using str:... | [
"fel1992@mail.ru"
] | fel1992@mail.ru |
c8b4a1d8bdfdc9f33cd5c4f56db93882a401a14b | 35635422101e1c0e4142ca1e176c5d976a6a6ff2 | /deps/glm.9.9.5/glm_inn/detail/type_mat4x3.hpp | 451c0341d7030e4cb5149ed4371b043b2acb9f19 | [
"BSD-3-Clause"
] | permissive | wanghaoxin1991/tprPix | e9ac6078dcf104b89e7db8bc6e973b47d4a46bfc | 877d2f3bcd2028b28f575deebf37bf7d19d1da52 | refs/heads/master | 2021-05-25T17:27:13.564129 | 2020-04-08T22:08:00 | 2020-04-08T22:08:00 | 253,843,248 | 0 | 0 | null | 2020-04-07T15:58:08 | 2020-04-07T15:58:08 | null | UTF-8 | C++ | false | false | 11,692 | hpp | <<<<<<< HEAD
/// @ref core
/// @file glm/detail/type_mat4x3.hpp
#pragma once
#include "type_vec3.hpp"
#include "type_vec4.hpp"
#include <limits>
#include <cstddef>
namespace glm
{
template<typename T, qualifier Q>
struct mat<4, 3, T, Q>
{
typedef vec<3, T, Q> col_type;
typedef vec<4, T, Q> row_type;
typedef... | [
"wanghaoxin8@163.com"
] | wanghaoxin8@163.com |
6cd9920917d598ecc0fb9ab5f9eafbe892e543da | ce7ad1d167614954deba8960bd1a41d04b5d3866 | /Tutorials-Foam-Extend-3.1/incompressible/circularChannel/system/fvSchemes | cf5f09ac0b66a2196f96664666af8899c53b80ea | [] | no_license | amikkonen/pisoCentralFoam | 8191614788e7148bd019ff8df20879aa371a4c26 | 0137fcede7a439ac92d0f49a40930dca1d2d19e9 | refs/heads/master | 2021-01-25T04:58:56.942179 | 2017-06-06T11:53:11 | 2017-06-06T11:53:11 | 93,497,647 | 1 | 0 | null | 2017-06-06T08:58:34 | 2017-06-06T08:58:34 | null | UTF-8 | C++ | false | false | 1,842 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... | [
"matvey.kraposhin@sl-BIG.inicluster.ru"
] | matvey.kraposhin@sl-BIG.inicluster.ru | |
4dc60b4f8ee843237ffa6a0d1bebcabd694530a4 | 6b96c03193a050b18a5b5c433b0791a602702a31 | /tensorflow/core/util/debug_data_dumper.cc | a4599bb7c7e003bb364e26ff5c08141ee13c2c07 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | engelmi/tensorflow | c7d3a6114fa5a88c715ca242302f94fb24410364 | 9bc55d66eca16143e16e824eeef7de23c7bb9623 | refs/heads/master | 2023-04-21T19:12:34.491700 | 2023-04-10T10:25:01 | 2023-04-10T10:28:02 | 111,595,000 | 0 | 0 | null | 2017-11-21T19:57:15 | 2017-11-21T19:57:14 | null | UTF-8 | C++ | false | false | 5,332 | cc | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
7ce68329727ca3ba2995a1181c3a715f6438b4cb | ad8b3fd13cab0bde6ccde44db19607195d07828f | /server1.5_内存池/MessageHeader.hpp | cb3676d706bf86fde8c33c98c8f4a715f1b21f7c | [] | no_license | QaoKi/server | 43bc56e2462804a598a89eaeb0fcec3c4b1e8b32 | 0d745c7b7017bfb3bfbf63839c1d61f1d4b87981 | refs/heads/master | 2020-05-01T15:31:08.970524 | 2019-07-26T03:43:10 | 2019-07-26T03:43:10 | 177,548,642 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,259 | hpp | #ifndef _MessageHeader_hpp_
#define _MessageHeader_hpp_
/*
定义消息结构
*/
enum CMD
{
CMD_LOGIN = 0,
CMD_LOGIN_RESULT,
CMD_LOGOUT,
CMD_LOGOUT_RESULT,
CMD_EXIT,
CMD_NEW_USER_JOIN,
CMD_ERROR
};
struct DataHeader
{
DataHeader()
{
dataLength = sizeof(DataHeader);
cmd = CMD_ERROR;
}
short dataLength;
short cmd... | [
"10330180@qq.com"
] | 10330180@qq.com |
6847d3c4c796ba3b085417d11e7970a1da7e7e59 | 0dbcba96285b5da208984314c793904557040bc8 | /include/C4013.hpp | bba82eb8bfb021c85620f1515486f96b5247175b | [] | no_license | Khsime-Marwane/EPITECH-Nanotekspice | 4d3541b2d2551b3eba85414b2d8c039f18d65df6 | c21d48cbba3b0a9d7538492bb7952bd091270edf | refs/heads/master | 2022-04-02T13:50:07.634685 | 2020-02-12T08:23:32 | 2020-02-12T08:23:32 | 83,517,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 708 | hpp | //
// Author: Marwane Khsime
// Date: 2017-02-04 19:55:57
//
// Last Modified by: Marwane Khsime
// Last Modified time: 2017-02-04 19:55:57
//
#ifndef _C4013_HPP_
# define _C4013_HPP_
#include "AComponent.hpp"
namespace nts
{
class C4013 : public nts::AComponent {
public:
// Constructor / Destructor
... | [
"sebastien.jacobin@epitech.eu"
] | sebastien.jacobin@epitech.eu |
ab0bf027813b1b87f600bfe41dc4c8f868675eda | fef35e45b060a701cc91b59fca69feb094b82380 | /C/8/3계좌조회.cpp | ab3a7e00839b89a9af909ccbeb31a514f851d6d9 | [] | no_license | EIDOSDATA/OLD_STUDY | f03a1c8203236deb5f3766431bca03655ed7056d | a6389514eba647b59f76a4c8dc8d6814ceadb52d | refs/heads/main | 2023-06-16T08:15:17.060616 | 2021-07-17T06:25:14 | 2021-07-17T06:25:14 | 381,949,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,034 | cpp | #include <iostream>
#include <iomanip>
#include <cstring>
#include <string>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
#define SI 15
#define CN 20
#define EN 10
class Account
{
char accid[SI]; // 계좌번호
char name[CN]; // 고객명
long long balance; // 잔액
int inx = 0;
public:
voi... | [
"ihjisan00@gmail.com"
] | ihjisan00@gmail.com |
57b10468d6419dd49ab4ef2c436b0a275c2cb103 | 97eb00d7b35076b1efce57b21ad51636ac2a920c | /ABC/157/C.cpp | 9592111119da9cacd0b78c1fa693458af2e4d4df | [] | no_license | jimjin73/compro | 43199716dc857f52c10d3237908e70c1801e7fb4 | b194b4414752fff3debc838f4ee70af8e2e43f34 | refs/heads/master | 2021-05-18T01:02:39.338377 | 2020-08-06T12:25:20 | 2020-08-06T12:25:20 | 251,037,702 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 648 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int N,M;
int d[5];
int main(){
cin >> N >> M;
for(int i=0;i<N;i++) d[i] = -1;
for(int i=0;i<M;i++){
int a,b;
cin >> a >> b;
if(d[a-1] != -1 && d[a-1] != b){
cout << -1 << endl;
return 0;
... | [
"j.kam.j.kan.w.jmj@gmail.com"
] | j.kam.j.kan.w.jmj@gmail.com |
f61f3ab121386c79848694b01ceecc5f23377b5c | 7b6764e2d4805d5ca6974ee520460c6adf5c9828 | /src/simplest_scheduler.cpp | e78e4c4731ce9cb372a2c820eea1593310dd770b | [
"BSD-3-Clause"
] | permissive | icnc/icnc | 4c0580587f3b5e7bf225dcfbaef5a2c73fb52122 | 0213a13ca94a944cac7efacc21019541ce3e09ca | refs/heads/master | 2023-02-07T03:38:53.269607 | 2023-01-25T20:12:08 | 2023-01-25T20:12:08 | 20,026,405 | 116 | 28 | BSD-3-Clause | 2021-11-23T21:03:56 | 2014-05-21T15:30:18 | C++ | UTF-8 | C++ | false | false | 4,146 | cpp | /* *******************************************************************************
* Copyright (c) 2007-2021, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source c... | [
"frank.schlimbach@intel.com"
] | frank.schlimbach@intel.com |
58057d5923c2413e440cd3378e5e259d41b9a27f | 334802586c8966f62f45debea1e4faf37ffa939d | /src/transform.cpp | 6cab10cc812e1b913dfc6c391f7f8449a488acbc | [] | no_license | MarcyMosswitch/Pokemon-Fan-Game | d3e8844b8e1e7c9324c7ed54a68aa5093585b9e9 | 8bf22f6034971fc267d5675181dbc8948f9d5def | refs/heads/master | 2022-12-28T18:41:34.251486 | 2020-10-08T03:32:47 | 2020-10-08T03:32:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,307 | cpp | #include "transform.h"
#include <cmath>
#include <algorithm>
#define PI 3.14159265
#define MAGIC_ANGLE (90.0 - 30.0)
double Transform::offsetX;
double Transform::offsetY;
double Transform::offsetZ;
void Transform::transform(double in[3]) {
double rotateZ[3][3] = {{sin(45.0 * PI/180.0), -sin(45.0 * PI/180.0), 0.0... | [
"magicalmanjack@gmail.com"
] | magicalmanjack@gmail.com |
9385de1169972ad09f5da5af4939bfe4ae1fdd57 | a25e95ea8eb3d682286758588f79a29ba77a6121 | /Day6/Flatten_Mutlilevel_LinkedList.cpp | 03b8cf69cd35ec6ee47cfacf7c305a590049c107 | [] | no_license | veedee2000/SDE_30_DAYS | adf12bd9a7909f2c8cca2bf81bba5857c120d0ba | 31bf4220a401f2ea0879dc5aa28403527e6b8c4d | refs/heads/master | 2022-12-23T08:28:24.925486 | 2020-09-07T07:02:06 | 2020-09-07T07:02:06 | 270,763,479 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 600 | cpp | /*
// Definition for a Node.
class Node {
public:
int val;
Node* prev;
Node* next;
Node* child;
};
*/
class Solution {
public:
Node* flatten(Node* head) {
if(!head) return NULL;
Node* nextNode = head -> next, *childNode = flatten(head -> child);
head -> next = childNode;
... | [
"noreply@github.com"
] | veedee2000.noreply@github.com |
8ebe65a92b47e2e28df7b97e5cfc752ff164ff5d | 52482fb96fe7f3eed874db7a88c889ecd5bc34c5 | /src/Details/FDTransfer.cpp | 5a7fa11012df8b74681688e62046d2109a047138 | [] | no_license | rusingineer/EmulePlus | f3e29ca7ca853feea920c4cb5ffb0d0a13ed236e | 21955cd94d28cebdb3cf9c289f0aafa7a5cf3744 | refs/heads/master | 2021-01-17T11:54:26.925858 | 2016-06-20T12:22:32 | 2016-06-20T12:22:32 | 61,430,884 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,561 | cpp | // This file is part of eMule Plus
//
// 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 version.
//
// This program is distribu... | [
"makani@inbox.ru"
] | makani@inbox.ru |
8fa7cc5164f80b98ccc455b440a31f2c0070d16f | 4a08a54ce2fa877f17a7c8b060c28b4b71d9325b | /sources/inc/CountDaLoot.hpp | ec0fcacc8a52e63e8057e3f49ec4fb60ab5d5ce5 | [
"MIT"
] | permissive | stryku/CountDaLoot | 263c09bcaa51a551da8a17cd45e97bed03f14bcc | 805e3cd094201bc5694ed111e66a1f6d0021a756 | refs/heads/master | 2021-01-21T14:43:34.662468 | 2017-07-26T18:43:09 | 2017-07-26T18:43:09 | 95,328,026 | 0 | 0 | null | 2017-07-26T18:43:10 | 2017-06-24T23:30:38 | null | UTF-8 | C++ | false | false | 1,211 | hpp | #pragma once
#include "view/LootListUpdater.hpp"
#include "view/LootTabStateLabelUpdater.hpp"
#include "loot/NewLootProvider.hpp"
#include "ui/controls/Table.hpp"
#include "loot/KilledMonstersData.hpp"
#include "view/summary/SummaryUpdater.hpp"
#include "log/LoggerFactory.hpp"
#include "mainwindow.h"
#include <QAppli... | [
"stryku2393@gmail.com"
] | stryku2393@gmail.com |
2c2bbc9be836453ffa4b20fba079c8a163eea38c | 38c10c01007624cd2056884f25e0d6ab85442194 | /media/filters/video_renderer_algorithm.h | 71d251f416a667e9515afb779d776bdbbffba12d | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | C++ | false | false | 15,086 | h | // Copyright 2015 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.
#ifndef MEDIA_FILTERS_VIDEO_RENDERER_ALGORITHM_H_
#define MEDIA_FILTERS_VIDEO_RENDERER_ALGORITHM_H_
#include <deque>
#include "base/callback.h"
#include... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
18e1353c2ea5e2796be76d6e05167ab614bc3ab7 | 372b2c81cddd69e5906d04b8bf137887e6e3953b | /metricTon.cpp | 286889eff4027f40b9e94f86c508e900b597127b | [] | no_license | SarahCaruthers/c- | 92c7fc7fd1753a0d881ac1cb32f2402d2aa7ba93 | 2edda977e853c78c63a65eadab6e65b3dcbfcc5a | refs/heads/main | 2023-02-25T10:49:05.298631 | 2021-01-30T03:15:30 | 2021-01-30T03:15:30 | 332,957,424 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 679 | cpp | /* Sarah Caruthers
2350081
I referenced zybooks for this assignemnt.
g++ metricTon.cpp
*/
#include <iostream>
using namespace std;
int main (int argc, char **argv){
double cerealWeight;
double cerealToMetricTons;
double boxesForATon;
const double METRICTONOUNCES = 35273.92;
cout << "Enter the weight o... | [
"noreply@github.com"
] | SarahCaruthers.noreply@github.com |
8284a1b7a342866270010be059ad9a5cac4dc1a8 | 2acafbd539b4e5060951ce6af04eb723a7022a24 | /GCore/GC_ClockManager.cpp | 48de689a5395391283e92d62bbe3c4754bb54f9e | [] | no_license | Klaim/gamecore | 163eb76f16e92b3e109e689833f23b0debeffd55 | 167f9d1c59ae15e12f42cc1e4c2b7784b9db0742 | refs/heads/master | 2021-01-01T16:34:52.468541 | 2015-03-14T09:50:05 | 2015-03-14T09:50:05 | 32,204,874 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,301 | cpp | #include "GC_ClockManager.h"
#include <algorithm>
#include "GC_Clock.h"
namespace gcore
{
/** Constructor.
@param timeReference Provide time used as reference to update all Clocks.
*/
ClockManager::ClockManager(const TimeReferenceProvider& timeReference, size_t reserveClockCount )
: m_timeRefere... | [
"mjklaim@gmail.com"
] | mjklaim@gmail.com |
a311fa6cebeac734ffeacf7b58105d5e7ace3277 | e1298938458dc88f73d9e128809a26357d098138 | /BSTree.h | f9066c330594caf3c99d519a8837105be011e519 | [] | no_license | joseapalomera/342-Jolly-Banker | 14352bd83fe5bcb268efad27a05b6a2e3559a7b7 | c019aac87b3976b3bbbabe7fe6ec390c85d9a41e | refs/heads/master | 2022-10-11T07:26:55.713287 | 2020-06-08T22:55:40 | 2020-06-08T22:55:40 | 270,848,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,226 | h | //
// BSTree.h
// Program5
//
// Created by Jose Palomera on 11/26/19.
// Copyright © 2019 Jose Palomera. All rights reserved.
//
#ifndef BSTree_h
#define BSTree_h
#include <iostream>
#include "Account.h"
using namespace std;
class BSTree{
private:
struct Node{
Account *pAcct;
Node *rig... | [
"noreply@github.com"
] | joseapalomera.noreply@github.com |
39286193fa25ee3f7e2e0bbf1874dc306455108d | 811e4727612ce11d5d73a1f9646dc5aadfe2db4f | /cpp.cpp | 6dfd164782aa9d3e6b70db47e9e5d98c8f4c3b74 | [] | no_license | Brian3647/hello-world | 1e96d13347be8dff856f081c0d0346c4bb5b4068 | 0804732fae6cd0caf0aabb5766ede84553dec6a0 | refs/heads/master | 2023-06-14T23:46:35.031943 | 2021-06-30T15:14:42 | 2021-06-30T15:14:42 | 381,744,188 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 93 | cpp | #include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}
| [
"victoris3647@gmail.com"
] | victoris3647@gmail.com |
d547b9d67129d741da75c351b9ef263602b17ae8 | 337f830cdc233ad239a5cc2f52c6562fbb671ea8 | /case5cells/9.9/gradTy | 80b2f0cddb2f186a2a06ea3159c9c92ecd01c2aa | [] | no_license | j-avdeev/laplacianFoamF | dba31d0941c061b2435532cdfbd5a5b337e6ffe9 | 6e1504dc84780dc86076145c18862f1882078da5 | refs/heads/master | 2021-06-25T23:52:36.435909 | 2017-02-05T17:28:45 | 2017-02-05T17:28:45 | 26,997,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,640 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... | [
"j-avdeev@ya.ru"
] | j-avdeev@ya.ru | |
daeb5e0019d296956b04787c28ac8d330a56cd3b | e84a10d08e93db20b06d97dcb7a2c35a8ee8359c | /Foundation/Public/EnumClass.h | 7738fc9c73e16ef691a0990ffbcc7b8f1bcb1d47 | [
"Unlicense"
] | permissive | randyfan/NOME3 | 44b142f87105dcaeaa25fa03b79e9ab73de6115d | 26c47cc6d45214e619d89dcc29787528f4db4aeb | refs/heads/master | 2023-07-29T00:24:01.433701 | 2021-09-19T16:45:14 | 2021-09-19T16:45:14 | 293,137,094 | 4 | 6 | null | 2021-03-10T21:26:27 | 2020-09-05T18:58:36 | C++ | UTF-8 | C++ | false | false | 1,928 | h | #pragma once
#include <type_traits>
#define DEFINE_ENUM_CLASS_BITWISE_OPERATORS(Enum)\
inline Enum& operator|=(Enum& lhs, Enum rhs) { return lhs = (Enum)((std::underlying_type_t<Enum>)lhs | (std::underlying_type_t<Enum>)rhs); }\
inline Enum& operator&=(Enum& lhs, Enum rhs) { return lhs = (Enum)((std::underlying_type_t... | [
"randyfan@berkeley.edu"
] | randyfan@berkeley.edu |
2e1edc30f725caf6994d3fcbf615ec8461992068 | 92604577dc46debdc467cb3f4f7d07aed69c02f7 | /amarillion_Laundry Day at Bananas Manor/tins12/include/main.h | 33feb4d1cf63f207c14c75d8dbf8c243912d91cd | [] | no_license | amarillion/TINS-is-not-speedhack-2012 | 73da3d6253ec5804f9afde36a1bd394163dca49c | ae3e9c5617477777d8049ba6d7b2c011cfaa592e | refs/heads/master | 2016-08-03T19:25:19.126941 | 2012-09-29T08:40:29 | 2012-09-29T08:40:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | h | #ifndef MAIN_H
#define MAIN_H
#include <allegro.h>
#include "resources.h"
#include "engine.h"
#include "settings.h"
#include "mainloop.h"
class Main : public MainLoop
{
private:
Engine engine;
Settings settings;
Resources resources;
public:
Settings *getSettings() { return &settings; }
Resources *getResources... | [
"mvaniersel@gmail.com"
] | mvaniersel@gmail.com |
12aff9d6c71ac4520b453841e8703c0135c7f02a | c061446e8dfe28c25c5b87ac721a1c6aff99f35b | /chromium/src/device/vr/vr_display_impl.h | d169dfaafd809fabb3daa56253019a28d435366d | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | jai2033shankar/chromium-webar | 698aab8a4f1db97f9f00eb5a62adaad1400aa477 | 429270e8f9ba9fa25de24aa6346e8e2f3fafda05 | refs/heads/master | 2021-01-02T22:40:04.421980 | 2017-07-20T20:13:07 | 2017-07-20T20:13:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,362 | h | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEVICE_VR_VR_DISPLAY_IMPL_H
#define DEVICE_VR_VR_DISPLAY_IMPL_H
#include <memory>
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#in... | [
"ijamardo@ijamardo-glaptop2.roam.corp.google.com"
] | ijamardo@ijamardo-glaptop2.roam.corp.google.com |
72e08b141dc91d36bcf180ce2bba92c41ac197ac | 96ab4dd1b01a51164031c2cdf2dc9e7b773a4293 | /HPB_bot/bot_client.cpp | 439f58df9e18ec7eade093280aacbda48f01cb3d | [] | no_license | N7P0L3ON/hlsdk10-bots | 25e821d519f8229ac5ab6ab614df7698ce843f90 | d12620edecb1d2012663f32957a01d2c7b16c52a | refs/heads/master | 2023-05-02T05:57:31.064376 | 2018-08-25T10:01:57 | 2018-08-25T10:01:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,732 | cpp | //
// HPB bot - botman's High Ping Bastard bot
//
// (http://planethalflife.com/botman/)
//
// bot_client.cpp
//
#include "extdll.h"
#include "util.h"
#include "cbase.h"
#include "bot.h"
#include "bot_func.h"
#include "bot_client.h"
#include "bot_weapons.h"
// types of damage to ignore...
#define I... | [
"weimingzhi@baidu.com"
] | weimingzhi@baidu.com |
82e7d656b84603ef217752eb0bc096580d96958f | 44dc164053e86ce6415a1c882bd021628c066bb4 | /main.cpp | 68b134881ee1849294640f134c4319ba198a3bc1 | [] | no_license | Sizu1025/NetPacketCap | 1fceca1c425128f8450d269d9fd81d70048ad3a8 | 5c35f190fc9d037d237a8cb94fcec739b73a78b4 | refs/heads/master | 2023-03-16T05:03:22.583308 | 2019-11-08T08:04:11 | 2019-11-08T08:04:11 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 12,750 | cpp | #define WIN32
#include<iostream>
#include"pcap.h"
#include<winsock2.h>
#include "main.h"
#include"Packet.h"
#include"HTTPParse.h"
#pragma comment(lib,"wpcap.lib")
#pragma comment(lib,"packet.lib")
#pragma comment(lib,"ws2_32.lib")
#pragma warning( disable : 4996 )
using namespace std;
int... | [
"noreply@github.com"
] | Sizu1025.noreply@github.com |
2bd21fc40f4c8e68b58742a4b69945feeaccef29 | bfd4c1ef0a7d413114243dfec6711b3bb12b47f7 | /Source.cpp | fb241958addab8f8347ca1a9972a132c09445c43 | [] | no_license | benson871229/multithread | 9d790de6c9a34529250688ded4618d51a41751ab | 156dc0c4a2c71658d187ab5c6ee74a0f83ea19e9 | refs/heads/master | 2023-04-07T13:21:10.362217 | 2021-04-10T04:53:16 | 2021-04-10T04:53:16 | 356,473,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 841 | cpp | #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<Windows.h>
#define THREAD_AMOUNT 30
typedef struct _DATA
{
char str[32];
int value;
} DATA, * LPDATA;
DWORD WINAPI ThreadfFunc(LPVOID lpParam)
{
LPDATA pData = (LPDATA)lpParam;
for (int i = 0; i < 10; i++)
{
printf("%s,%d\n", pData->str, pData->value++... | [
"71371929+benson871229@users.noreply.github.com"
] | 71371929+benson871229@users.noreply.github.com |
f21720d13e339a16402ed85c7a607f7447f83453 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/core/model/base/program_desc.h | 95b728d7b7ee968a2404370200a366eb8d13bfce | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | C++ | false | false | 2,040 | h | // Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
04e4abe61e351eaaaca39aa5d9bc81e1642efb13 | 52415739d86f95e206936d6d7a308b4d56e1af6e | /Blink1/Screen.cpp | 56a94c2229febed09f425844db76dd1c41fd4100 | [] | no_license | AbdulovHell/Esm-RPi2- | cfeac0a44332b697244fcda983a9da2e54e9c005 | e92ab2e7ecb2ce3fbdd49865da95fb8f5adc2f47 | refs/heads/master | 2021-01-01T04:49:31.922368 | 2019-02-18T07:51:41 | 2019-02-18T07:51:41 | 97,258,142 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 8,593 | cpp | #include "sys_headers.h"
#include <functional>
#include "Display.h"
#include "Screen.h"
#include "DisplayControl.h"
#include "Colorize.h"
void Display::Screen::UpdateScrllFlag()
{
if (Lines->size() > 4) {
bScrollable = true;
}
else {
bScrollable = false;
}
}
void Display::Screen::UpdateDisplay()
{
display->S... | [
"dronovova@gmail.com"
] | dronovova@gmail.com |
b8a711b35d21ab45e387cbe02d404e0c8584c10e | 77b1e6f423fdbf544c798c87dde175189733b862 | /Lekcja6Zadanie2.cpp | 0d714aa540791e75a75d321486e1c0780552fa04 | [] | no_license | reagne/C-Simple-Exercises | d2747892666a153745f406856f8b50dbc2f5986b | 348414c5dfb7f414b15b5b480da6bce30db7c9b2 | refs/heads/master | 2021-01-10T05:03:42.604026 | 2016-03-17T13:40:56 | 2016-03-17T13:40:56 | 54,119,276 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 2,229 | cpp | #include <iostream>
using namespace std;
enum menu // w enum nie może być spacji
{
Wyjscie,
SprawdzSaldo,
Wyplac50zl,
Wyplac100zl,
WyplacInnaKwote
};
int main()
{
int stanKonta = 2500; // stan naszego konta; gdy zaczynamy
int kwota; // kwota, którą bedziemy wyplacać z bankomatu;
cout << "Menu:\n1... | [
"regina.anam@gmail.com"
] | regina.anam@gmail.com |
b4b5ba19a04b25b4395b7b4cfd54ae171076aa39 | 1a41836c57f1628cf2d796af3ca736d98044553e | /modules/perception/obstacle/camera/lane_post_process/common/connected_component.h | d8965e639b88fb90d336810681d3c47113e552dc | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | ColleyLi/JMCMAuto | 67fc7971bc8fe8725de5297ad7121d472db891ee | 54e727271e9d9f0fb300cdf7ab0dcc7789c6ca95 | refs/heads/master | 2023-04-25T19:49:21.978686 | 2021-06-03T10:28:49 | 2021-06-03T10:28:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,995 | h | /******************************************************************************
* Copyright 2018 The JmcAuto Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | [
"yli97@jmc.com.cn"
] | yli97@jmc.com.cn |
90f62b3266a2874ecb10f9f0d23546090f794b04 | 776f5892f1395bb8d30731a60466e4c756a44c8c | /contests/abc257/abc257_b/main.cc | 7b49e07c57ee22c5569221d15e7f72ebbf605631 | [] | no_license | kkishi/atcoder | fae494af4b47a9f39f05e7536e93d5c4dd21555b | f21d22095699dbf064c0d084a5ce5a09a252dc6b | refs/heads/master | 2023-08-31T18:37:13.293499 | 2023-08-27T21:33:43 | 2023-08-27T21:33:43 | 264,760,383 | 0 | 0 | null | 2023-03-10T05:24:07 | 2020-05-17T21:30:14 | C++ | UTF-8 | C++ | false | false | 237 | cc | #include <bits/stdc++.h>
#include "atcoder.h"
void Main() {
ints(n, k, q);
V<int> a(k), l(q);
cin >> a >> l;
each(e, l) {
--e;
if (a[e] == n) continue;
if (e == k - 1 || a[e] + 1 != a[e + 1]) ++a[e];
}
wt(a);
}
| [
"keisuke.kishimoto@gmail.com"
] | keisuke.kishimoto@gmail.com |
cd672d2c815dfb3cafb4b701dc0de2e342fb7bdc | aa3779604d4f2f9be049a99598e550fce2edbab4 | /src/Subsystems/Shooter.cpp | 8eaffb98edbc60b8d2c45e29dd565a7872dcaa8c | [] | no_license | CRRobotics/2017Robot | 082d408167071e16017bb06de57346d315285374 | fdd0135aa7d7038dd3f5f8c80d838ac0b3216f79 | refs/heads/master | 2021-03-27T20:00:48.811835 | 2017-04-29T03:19:18 | 2017-04-29T03:19:18 | 81,997,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,166 | cpp | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// C++ from RobotBuilder. Do not put any code or make any change in
// the b... | [
"mrinal.thomas@icsd.k12.ny.us"
] | mrinal.thomas@icsd.k12.ny.us |
ccba003e9308762293836db36f92f819d731f28f | 13d93c2922005af35056d015f1ae3ebebe05ee31 | /pong/trunk/src/random-singleton.h | 49c37b26cdf73deade80fbd8c8c66b370d8641c0 | [] | no_license | scls19fr/openphysic | 647cc2cdadbdafd050d178e02bc3873bd2b07445 | 67bdb548574f4feecb99b60995238f12f4ef26da | refs/heads/master | 2021-04-30T23:16:26.197961 | 2020-11-16T20:21:17 | 2020-11-16T20:21:17 | 32,207,155 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,367 | h | //Random Singleton
//Ce fichier d'en-tete propose un bon generateur aleatoire
//de nombre reels ou entiers.Il s'agit du generateur de L'Ecuyer avec melange
//de Bays-Durham, des Numerical Recipes (http://www.nr.com)
//This header file provides a good random generator. It is the one of L'Ecuyer
//with Bays-Durham shuff... | [
"s.celles@gmail.com@41f3eeec-7763-abce-c6e2-0c955b6d8259"
] | s.celles@gmail.com@41f3eeec-7763-abce-c6e2-0c955b6d8259 |
30e7ce05765a037746a93fd57c4d990be7423905 | 81de7aaf7ba6a591720056ca9771dd0256e2396a | /include/CsGameInterface.h | 95e3914cc098f22a353aa232582af7295fd0ccc4 | [] | no_license | SabinT/Wings-Of-Chaos | 9286add428d4a9a76f713bcc9ce6ac2560ace58f | 71359b1287613f82a35997c50a1c6c5882f98581 | refs/heads/master | 2021-01-10T21:45:41.628525 | 2013-11-25T08:37:22 | 2013-11-25T08:37:22 | 13,536,656 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | h | #ifndef CSGAMEINTERFACE_H
#define CSGAMEINTERFACE_H
#include <OgrePrerequisites.h>
#include <CsCommons.h>
// TODO: separate input into separate class, which handles controls
#include <CsLockable.h>
class CsGameInterface: public CsLockable
{
public:
CsGameInterface() : mRoot(0), mWindow(0), mViewport(0), mSceneMg... | [
"stimalsena@verishhealth.com"
] | stimalsena@verishhealth.com |
495cd3e93b3e024ef89f122714cd4e57947b35f8 | 9d6eca4001a864d3a23cd9ade63e3c5eb6c92783 | /Programming/C++/prog01.cpp | 805b644d6504c2212c30213532d41675da25ae64 | [] | no_license | LiasOne/iek-assignments | 2e163b09dad1a172e59d80f593f8880e3a4d03c1 | 0b76f47a97499a25bfad08466e72e867a25e3835 | refs/heads/master | 2020-04-07T02:29:11.400989 | 2019-06-20T13:40:08 | 2019-06-20T13:40:08 | 157,978,445 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 296 | cpp | #include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main() {
int num;
cout<<"Δώσε έναν αριθμό"<<endl;
cin>>num;
if (num >= 1 && num <=3 ) {
cout << "Μήνυμα" <<endl;
} else {
cout << "Άλλο μήνυμα" <<endl;
}
return 0;
}
| [
"eno@vostro.localdomain"
] | eno@vostro.localdomain |
125a6108c0f9e36c38b41edc47961421982c0f4e | f4e37c76b0fd36cf91a12a5d59e5a8d240214156 | /SuperClass/Base.inl | 0edb0459efcdd8080a7924ee2cde79db2e38657e | [] | no_license | cherleey/Vindictus | 53a1f4f70326310ef1486e3a350102d5222689c1 | e6d6a63c7cb2230d6152c54d41a01fb618191ebd | refs/heads/master | 2020-03-26T19:55:59.587337 | 2018-08-19T10:39:17 | 2018-08-19T10:39:17 | 145,293,679 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 298 | inl |
// unsigned long : 증가시키고 난 이후의 결과
unsigned long CBase::Add_Ref(void)
{
return ++m_dwRefCnt;
}
// unsigned long : 감소시키기 이전의 결과
unsigned long CBase::Release(void)
{
if(0 == m_dwRefCnt)
{
Free();
delete this;
return 0;
}
return m_dwRefCnt--;
} | [
"31400524+cherleey@users.noreply.github.com"
] | 31400524+cherleey@users.noreply.github.com |
ece516d8486d3dd48532d0bc476f65299ffdc18d | a85a1e6c776e0433c30aa5830aa353a82f4c8833 | /multiplayer/multiplayer_controls_chatedit.cpp | 353b44d550d34fa14c7300975af0e7e252a64b23 | [] | no_license | IceCube-22/darkreign2 | fe97ccb194b9eacf849d97b2657e7bd1c52d2916 | 9ce9da5f21604310a997f0c41e9cd383f5e292c3 | refs/heads/master | 2023-03-20T02:27:03.321950 | 2018-10-04T10:06:38 | 2018-10-04T10:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,335 | cpp | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright 1997-1999 Pandemic Studios, Dark Reign II
//
// MultiPlayer Stuff
// 1-JUL-1999
//
///////////////////////////////////////////////////////////////////////////////
//
// Includes
//
#include "multiplayer_controls_chatedit.h... | [
"eider@protonmail.com"
] | eider@protonmail.com |
6bc1ea488b1f1fa1785f46d95c7fbb437793e477 | 9fda5b2aa670589d5911dae3084149ad9170bb60 | /simulator/sim/population/person.cpp | dbefcbcc76c430b0dce54e572aaa8be6784e144c | [] | no_license | mattj23/covid-delta-usa | 93bba1284324225dc65394ace9197415538fb1fd | 258b84673cc3dbe87a3c14dd40a96b016d323208 | refs/heads/main | 2023-07-07T22:44:12.391214 | 2021-08-20T05:20:16 | 2021-08-20T05:20:16 | 391,808,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 263 | cpp | #include "person.hpp"
void sim::Person::Reset() {
variant = Variant::None;
infected_day = 0;
symptom_onset = 0;
test_day = 0;
natural_immunity_scalar = 0;
vaccine_immunity_scalar = 0;
is_vaccinated = false;
vaccination_day = 0;
}
| [
"mattj23@gmail.com"
] | mattj23@gmail.com |
a3cf931a212d13c2c00c002a271d3f6909d27430 | c0472d749b96d43a551899bfbf4e5d61b2cadd46 | /OpenGL-Window-Manager-and-GUI-master/DVA222_Project/DVA222_Project/ImageBox.cpp | 7eaa7b2a12e225e4a062522f8fc8b5f0ab8ae7de | [] | no_license | jontelarsson94/OpenGL-Window-Manager-and-GUI | 3bb9323362b859bde8d8b6f4ac241a38323b3e7d | a1d76c1675c061beaedca1f3b5b852b7a6d13681 | refs/heads/master | 2021-01-12T16:56:17.476471 | 2016-10-20T13:40:42 | 2016-10-20T13:40:42 | 71,466,065 | 1 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,632 | cpp | #include "StdAfx.h"
#include "ImageBox.h"
#include "Graphix.h"
#include "glut.h"
using namespace std;
// This is just a sample code to show you how you can use different Event Handlers in your code
ImageBox::ImageBox()
{
hit = pressed = false;
}
ImageBox::ImageBox(int locX, int locY, int width, int height)
: UIC... | [
"jonathan-larsson@outlook.com"
] | jonathan-larsson@outlook.com |
6dba8d948edc8f9b097ec56d34196ad7db380c07 | ddd6539d24a45ab8d529cad73688212542b43e8b | /Sprite_Test/Direction2D.h | e9cfa8db6c24677eafe295bfa6d6b575d511e528 | [] | no_license | dele1251/SDL_Project | a8b9f1194c5954faa23f90dc0dcb6041c6075b05 | daeef8aab10707a31410ec476b65d8358f2a06e5 | refs/heads/master | 2021-01-21T15:19:10.264390 | 2017-05-21T00:50:41 | 2017-05-21T00:50:41 | 91,839,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,119 | h | //****************************************************************************
// File name: Direction2D.h
// Author: Doug Ryan
// Date: 1/13/2016
// Class: CS 250
// Assignment:SDL_MovingCircle
// Purpose: Represent a direction
//*****************************************************************************
... | [
"ernesto.deleon.1@gmail.com"
] | ernesto.deleon.1@gmail.com |
17e9b911561e6a9c9d8ddfe092144fff121c82c7 | ef620c4a84f777a7916bed1d7d5d92ef4db3a416 | /src/spork.h | b1d4d71d150f01a7bf2c5bed3ecf4cf127d0a63f | [
"MIT"
] | permissive | bspanda98/improvedbtc | 8855a24e854dd058f8bb6525e7f1529bff73cdd1 | a92085ebc1ab011db76596934219e7e2686a7521 | refs/heads/master | 2022-04-19T05:38:39.397913 | 2020-04-18T07:44:23 | 2020-04-18T07:44:23 | 256,695,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,911 | h | // Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2016-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SPORK_H
#define SPORK_H
#include "base58.h"
#include "key.h"
#include "ma... | [
"rangecoin@outlook.com"
] | rangecoin@outlook.com |
54192b35735cc368179475591b8011c1a2b37f3c | f8aa2d3996aa3866101b1b680dff214efb1ead0d | /basicPrograme/function/difference_bn_date.cpp | 112c6d75f1b0ba0bd1d5664ece00e0be9802830d | [] | no_license | LokeshvarKr/cpp | 9590d9c0851667dd9aaacd16f37fc34acdefb6b7 | 6556e2b72aec2d0ebcabb84d542bf5b0e5670042 | refs/heads/master | 2022-04-30T21:01:13.341606 | 2022-04-09T18:12:39 | 2022-04-09T18:12:39 | 176,687,488 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | cpp | #include<iostream>
using namespace std;
int main()
{
int d1,m1,y1,d2,m2,y2,d,m,y;
cout<<"Enter first and second date (first falls before second)"<<endl;
cout<<"Enter first date"<<endl;
cin>>d1>>m1>>y1;
cout<<"Enter second date"<<endl;
cin>>d2>>m2>>y2;
int is_leap=0;
if((y2%100!=0 && y2%4==0) || y2%400==0)
i... | [
"lokeshvarszb@gmail.com"
] | lokeshvarszb@gmail.com |
2e15511d383563cf9828f839068aba13d2396178 | fd2754ec7ab1fbb7da19a605c650c51081d09feb | /px4-firmware/src/lib/matrix/matrix/SquareMatrix.hpp | 175a3e40a7d82810dad4b358b26e691d68cdaac9 | [
"BSD-3-Clause"
] | permissive | thehummingbird/MavrosToPx4 | 133a82093c2678bd233577b192f5c91941d55237 | 7378f0d1abd02e538a75ace62ebb515f924c9afb | refs/heads/master | 2020-09-15T13:35:10.893704 | 2019-11-23T14:07:12 | 2019-11-23T14:07:12 | 223,458,088 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,565 | hpp | /**
* @file SquareMatrix.hpp
*
* A square matrix
*
* @author James Goppert <james.goppert@gmail.com>
*/
#pragma once
#include "math.hpp"
namespace matrix
{
template <typename Type, size_t M, size_t N>
class Matrix;
template <typename Type, size_t M>
class Vector;
template <typename Type, size_t P, size_t Q,... | [
"sharadmaheshwari19@gmail.com"
] | sharadmaheshwari19@gmail.com |
d187a5bed8df5ff2b9c992e0ee78e127dbc3dd31 | 7eaf54a78c9e2117247cb2ab6d3a0c20719ba700 | /SOFTWARE/A64-TERES/linux-a64/tools/gator/daemon/ExternalSource.h | 919e75e8a41af34d8935d8b58e3d6395602f87b6 | [
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | OLIMEX/DIY-LAPTOP | ae82f4ee79c641d9aee444db9a75f3f6709afa92 | a3fafd1309135650bab27f5eafc0c32bc3ca74ee | refs/heads/rel3 | 2023-08-04T01:54:19.483792 | 2023-04-03T07:18:12 | 2023-04-03T07:18:12 | 80,094,055 | 507 | 92 | Apache-2.0 | 2023-04-03T07:05:59 | 2017-01-26T07:25:50 | C | UTF-8 | C++ | false | false | 1,212 | h | /**
* Copyright (C) ARM Limited 2010-2014. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef EXTERNALSOURCE_H
#define EXTERNALSOURCE_H
#include ... | [
"gamishev@gmail.com"
] | gamishev@gmail.com |
31483fe25a39f8f34f46832cebb82d6af29e26af | 9d7a8d3e8d5df680c32fa70c73ef7c2820986187 | /.history/D05/ex03/Intern_20210312163129.cpp | fee76e43bb91d483a0ae54ee3aca57d285442b72 | [] | no_license | asleonova/cpp | dc2d606e361ffdfa2013953f68bd0da4530f34bc | adfaecc238cdb63053b34b106869d3185204d73a | refs/heads/master | 2023-04-06T19:27:21.725162 | 2021-04-13T19:18:00 | 2021-04-13T19:18:00 | 337,834,070 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,200 | cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Intern.cpp :+: :+: :+: ... | [
"dbliss@oa-f5.msk.21-school.ru"
] | dbliss@oa-f5.msk.21-school.ru |
0040d35b432410ba5f761c1b8516317e57a90a51 | 1b315f2f82cc22b1caada7ae4d9e6770ee3a8ff5 | /src/DiskBufferReader.cpp | 56480df28ffe85b49c2a53de4c5d17ba2798b586 | [] | no_license | knightwh/gougou | 861b08989b9869ee3ec6414867178f2a75b0eea5 | 89b74da0f1e36bb58d3dfb41e4503a7b5e7824de | refs/heads/master | 2020-12-24T14:26:31.508012 | 2015-05-14T03:35:35 | 2015-05-14T03:35:35 | 31,428,725 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,139 | cpp | #include "DiskBufferReader.hpp"
#include "DAMreader.hpp"
#include <climits>
using namespace std;
DiskBufferReader::DiskBufferReader(DiskAsMemoryReader *theIOP,uint64_t beginP,uint64_t endP,int fileHandle,int offset) : theIO(theIOP),begin(beginP),end(endP),itemSize(theIOP->getItemSize())
{
usage = 0;
if(begin==ULLON... | [
"knightwha@gmail.com"
] | knightwha@gmail.com |
533e012b2ae40066b1000a1011947d8dfe0c82f1 | a37963cee6a482275b089922375a60b3819d8072 | /viz/PointLocator/ControlScreen.cpp | f6c56ce1e123058284fc077597b9114a5d8597ef | [] | no_license | njun-git/kvs | f639ab36df290d308531d1538066739b8ca265e6 | ae15b5dc2b50f9ff8fb5090bdd41fc1b496cada3 | refs/heads/master | 2021-01-23T07:03:20.287011 | 2012-02-14T06:53:59 | 2012-02-14T06:53:59 | 2,502,777 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,103 | cpp | /*
* ControlScreen.cpp
*
*
* Created by njun on 11/10/11.
* Copyright 2011 Jun Nishimura. All rights reserved.
*
*/
#include "ControlScreen.h"
#include <kvs/Mouse>
#include <kvs/MouseButton>
namespace kvs
{
ControlScreen::ControlScreen( kvs::glut::Application* app ) :
kvs::glut::Screen( app )
{
... | [
"njun3196@gmail.com"
] | njun3196@gmail.com |
a660b0b69474ec404b01e8717128ec4e9a32af57 | c6f69ac70fbfe5380d691e35a818a6e8eaf6e914 | /src/videoseg/io.cpp | 62d75c7ba3a7b763ad63dcd40dcc447119eb0180 | [] | no_license | jvlmdr/non-rigid-tracking | 00e9d116410628da2d4f5153439167f5a34c55a1 | ee0377e3a324b4e82ee0fc2eee0fbcfe7ec062a1 | refs/heads/master | 2020-04-15T16:27:25.755272 | 2013-03-13T05:45:28 | 2013-03-13T05:45:28 | 6,432,545 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 6,703 | cpp | /*
* Created by Matthias Grundmann on 6/30/10.
* Copyright 2010 Matthias Grundmann. All rights reserved.
*
*/
#include "videoseg/io.hpp"
#include "videoseg/hierarchical-segmentation.hpp"
#include <iostream>
typedef unsigned char uchar;
namespace videoseg {
bool SegmentationWriter::OpenFile() {
// Open file ... | [
"jack.valmadre@gmail.com"
] | jack.valmadre@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.