blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d5a39fbc42fd06670a99fa14048eed005d676331 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /extensions/renderer/content_watcher.h | 4480ce99cf73850a6b5029a67ef14b589231eb38 | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 2,719 | h | content_watcher.h | // Copyright 2014 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 EXTENSIONS_RENDERER_CONTENT_WATCHER_H_
#define EXTENSIONS_RENDERER_CONTENT_WATCHER_H_
#include <map>
#include <set>
#include <string>
#include <v... |
ed15c93c764ccf6942da29632ff7e6006b127afe | dad0a7c20dbbcba829d60b4b47a4ab93df1c3e0f | /src/vsharma7_assignment1.cpp | 4f8879fe405bdcfc2f39fd12364d32c0d820329a | [] | no_license | varunsharma0286/P2PFileTransfer | 3f0867572a0ee300980070e51b064e7a85901faa | c0b6de60214dbd205ff01300f18894201d61db54 | refs/heads/master | 2020-12-24T17:18:08.386334 | 2014-09-30T00:40:00 | 2014-09-30T00:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,046 | cpp | vsharma7_assignment1.cpp | /**
* @vsharma7_assignment1
* @author Varun Sharma <vsharma7@buffalo.edu>
* @version 1.0
*
* @section LICENSE
*
* 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
* t... |
6ad619436e12b7640eb511556e8bee272f2eb048 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /content/browser/bluetooth/bluetooth_device_scanning_prompt_controller.cc | 590dd6fb4cc8f49aee9213f6a28e39bfe1bc3d80 | [
"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 | 2,401 | cc | bluetooth_device_scanning_prompt_controller.cc | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/bluetooth/bluetooth_device_scanning_prompt_controller.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "co... |
dbe952ed8fc9c3504a6721e0ee868b5999238e1d | 5cfbc693c02bb5afc3e762a8e9958239b8b0f08d | /MIA/Contest1/i.cpp | 5595514e4b214c4ec361be9af60f4e5920f22f4e | [] | no_license | ItachiEU/University | f38e3e1f3d5c08ab0c4385f8309f668b64d98e7d | 1b17188bd2bd859b6206698787a196e9259b57a5 | refs/heads/master | 2023-01-27T15:04:47.370134 | 2023-01-13T18:07:37 | 2023-01-13T18:07:37 | 246,630,943 | 0 | 2 | null | 2023-01-13T18:02:17 | 2020-03-11T17:02:29 | Jupyter Notebook | UTF-8 | C++ | false | false | 495 | cpp | i.cpp | #include<bits/stdc++.h>
using namespace std;
const int maxn=1e6+4, INF=1e9+7;
int t[maxn];
int main(){
ios_base::sync_with_stdio(false);
long long int n,a,b;
cin>>n>>a>>b;
for(int i=0; i<n; i++){
cin>>t[i];
if(a<0)
t[i]*=-1;
}
long long int maxik = -INF, temp=0;
for(int i=0; i<n; i++){
temp+=t[i];
i... |
6d673b1e999c58422e75c1edcbe4eaed2e5381ae | fc6e305cb37e5555a3ed26aee2ad8a5a6d1b543f | /src/Observer.h | 2fad2a51c6e41aad02e4e65e887c21dd9b009073 | [] | no_license | betranjacob/Threaded-Observer-Pattern | 7497ec200c19a3b641eb82a4c1882167e8d325d3 | 19a13715569058737b9cf578bdce33185b448d16 | refs/heads/master | 2021-03-24T13:23:48.031611 | 2017-02-06T14:00:14 | 2017-02-06T14:00:14 | 81,092,692 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,140 | h | Observer.h | /*
* Observer.h
*
* Created on: 31 Jan 2017
* Author: betran
*/
#ifndef OBSERVER_H_
#define OBSERVER_H_
#include <vector>
#include <algorithm>
#include <string>
#include <mutex>
#include <condition_variable>
#include <thread>
#include <chrono>
#include <memory>
#include <atomic>
using namespace std;
temp... |
285b0eabeba243ac9e2f7dd4d42144ca2264cf27 | e5e5e8b07e8cd21f23fd4befbc7e7aceb1bf61f5 | /src/daemonizer/windows_service_runner.h | fe3129fc7e2ce7aba623e09e773795add4cc3363 | [
"BSD-3-Clause",
"MIT"
] | permissive | sumoprojects/sumokoin | c4074f7b4f40c909b9d9dc9ce01521adb3cccb3e | 2857d0bffd36bf2aa579ef80518f4cb099c98b05 | refs/heads/master | 2022-03-04T02:21:41.550045 | 2021-08-22T04:32:04 | 2021-08-22T04:32:04 | 89,453,021 | 175 | 245 | NOASSERTION | 2021-08-22T04:32:05 | 2017-04-26T07:45:08 | C++ | UTF-8 | C++ | false | false | 5,281 | h | windows_service_runner.h | // Copyright (c) 2014-2021, The Monero Project
//
// All rights reserved.
//
// 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 o... |
09a129b2d5c60cd7b0ac9f267b8020ae17ad0ad4 | 1df486c012a3fb4c8f2bd27ae6afb8fd4e55d049 | /algo/IteratorPattern/IteratorPattern.cpp | ad68ee1e63dd9a636b41bdeb7c672571e69ea406 | [] | no_license | freshman2008/crytionTest | 1cc7f4f494071aeb61b581dcef0b85805c1b7242 | 06ae1b6fa9266056943cc23e3d8fdd5770878bcc | refs/heads/master | 2020-03-18T23:04:33.362775 | 2018-05-30T09:13:02 | 2018-05-30T09:13:02 | 135,381,848 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,229 | cpp | IteratorPattern.cpp | // IteratorPattern.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <vector>
#include <string>
#include <iostream>
using namespace std;
class Employee {
public:
Employee() {
}
Employee(string name, int age, string address) : mName(name), mAge(age), mAddress(address) {
}
void setName(string name) {
this->mN... |
2f28b3c1cc07f3dc30490bb2c747c7eed559fb7c | 32a87cda74dacf8289b21aefd63fbcb31d20c535 | /KGeoBag/Source/Extensions/DiscreteRotationalMesh/Complex/Include/KGConicalWireArrayDiscreteRotationalMesher.hh | 73da107458bcf55f1f44b3b6cf95e2c5545e6c64 | [] | no_license | Blawker/Kassiopeia | 16c9ed4e203073409cc58e009207950b0f7dde80 | 4f7145bde9972cfa088a1994f98a491646333a8b | refs/heads/master | 2022-12-03T19:28:38.050926 | 2020-08-18T14:16:21 | 2020-08-18T14:16:21 | 279,245,030 | 1 | 0 | null | 2020-07-13T08:38:58 | 2020-07-13T08:38:57 | null | UTF-8 | C++ | false | false | 667 | hh | KGConicalWireArrayDiscreteRotationalMesher.hh | #ifndef KGeoBag_KGConicalWireArrayDiscreteRotationalMesher_hh_
#define KGeoBag_KGConicalWireArrayDiscreteRotationalMesher_hh_
#include "KGConicalWireArraySurface.hh"
#include "KGDiscreteRotationalMesherBase.hh"
namespace KGeoBag
{
class KGConicalWireArrayDiscreteRotationalMesher :
virtual public KGDiscreteRotatio... |
9d497c4b833470ccc8d44d929918fbdbda27a894 | 66cc7d98bf4b388a1b3c83968c4e41540375ea31 | /src/wake.cpp | 59fa8daa59582d96e039259b5dab0130b6dc5f14 | [] | no_license | ew1abz/qWake | 95396ee7d3f923823efa01fe1fd22295257e789a | 7324b7f9a4acee9de1a3a532ffa7295ecc9cd73c | refs/heads/master | 2016-09-06T08:22:11.788824 | 2014-03-27T11:45:39 | 2014-03-27T11:45:39 | 493,454 | 0 | 1 | null | null | null | null | KOI8-R | C++ | false | false | 9,533 | cpp | wake.cpp | //#include <string.h>
//#include <stdlib.h>
//#include <QDebug>
#include "utils.h"
#include "wake.h"
//---------------------------- Constants: -----------------------------------
//Special commands:
#define CMD_NOP 0 //no operation
#define CMD_ERR 1 //get error code
#define CMD_ECHO 2 //get echo
#define CM... |
6b56bc51dad038f7b12a526a0a3534701480f357 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/ash/login/screens/base_screen.h | 08188ac3d9758c054d5325e777d8b6b82f3ba78e | [
"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 | 3,143 | h | base_screen.h | // Copyright 2012 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_LOGIN_SCREENS_BASE_SCREEN_H_
#define CHROME_BROWSER_ASH_LOGIN_SCREENS_BASE_SCREEN_H_
#include "ash/public/cpp/login_accelerators.h"
#include "base/m... |
97be2ad9ca219a813a53dfc2cc0ab8c4089ea095 | 72e95df33ab3fb6bba03a81867b77b755f46bb66 | /irohad/util/proto_status_tools.cpp | 670f076d04e64cde25ed5f86305d80c0422fea46 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | hyperledger/iroha | f07a81389fe1d3c488968919ab9196c548048f3a | f2d96e3050a504a982b983d8061588d8c650c5ad | refs/heads/main | 2023-09-06T00:40:53.092106 | 2023-09-01T17:37:08 | 2023-09-01T17:37:08 | 67,340,575 | 1,125 | 419 | Apache-2.0 | 2019-04-16T17:26:30 | 2016-09-04T11:17:53 | C++ | UTF-8 | C++ | false | false | 1,887 | cpp | proto_status_tools.cpp | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "util/proto_status_tools.hpp"
#include <boost/preprocessor/repetition/repeat.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
#include <optional>
#include "common/bind.hpp"
#include "util/status.hpp"
using ... |
3a76c58a8c5c34cf92dd8dc74e4efbae7ac08c6b | b555c422cf2fea3d5d62a4e877f049ecafc43daf | /DCFabric-Plus/src/nat/CNatHostConnMgr.cpp | d7f6c189d872241f823e3554244d8edfebec65b9 | [] | no_license | chenff/DCFabric | 305807c78a19520165191e8765e033467d288664 | c38deb027a330eace3a9f6f7e7227949b6d40f06 | refs/heads/master | 2020-05-26T06:19:32.717627 | 2019-01-21T05:03:43 | 2019-01-21T05:03:43 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,074 | cpp | CNatHostConnMgr.cpp | #include "log.h"
#include "bnc-type.h"
#include "bnc-error.h"
#include "bnc-param.h"
#include "comm-util.h"
#include "CSNatStream.h"
#include "CSNatStreamMgr.h"
#include "CNatHostConnMgr.h"
CNatHostConnMgr* CNatHostConnMgr::m_pInstance = NULL;
#if 0
CNatHostConnMgr::CNatHostConnMgr()
{
}
CNatHost... |
d1b3ee76a9d6d4f0110eb1f3c0f692b1e37f56e2 | 95a43c10c75b16595c30bdf6db4a1c2af2e4765d | /codecrawler/_code/hdu1342/16208343.cpp | 43a17991717c4dfc4730800cdfe7cac347698f9d | [] | no_license | kunhuicho/crawl-tools | 945e8c40261dfa51fb13088163f0a7bece85fc9d | 8eb8c4192d39919c64b84e0a817c65da0effad2d | refs/heads/master | 2021-01-21T01:05:54.638395 | 2016-08-28T17:01:37 | 2016-08-28T17:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 658 | cpp | 16208343.cpp | #include<cstdio>
#include<cstring>
int a[15],b[15],vis[15],k;
void dfs(int ans,int num)
{
if(num==6)
{
for(int i=0;i<5;i++)
printf("%d ",b[i]);
printf("%d\n",b[5]);
return;
}
for(int i=ans;i<k;i++)
{
if(!vis[i])
{
vis[i]=1;
... |
9635aa38967b957285c85e5202d0a819c0c59b8b | bb77a1c098f16a8cd18cb8cdbfa73c61a012beb4 | /Array/695.cpp | 95f773b055213cb7f0706b5a5d3737ed75476f20 | [] | no_license | BUPTAlanMa/leetcode | 21e581bd62177225addd500a2b44f803fe63d6e9 | 1c96bff9a39db8f970087c958fc56bc1526a6e5d | refs/heads/master | 2020-03-27T16:16:55.709319 | 2018-09-12T04:47:27 | 2018-09-12T04:47:27 | 146,771,303 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,678 | cpp | 695.cpp | /*
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid are surrounded by water.
Find the maximum area of an island in the given 2D array. (If there is no island, the maximum area is... |
444b82f317645cd3d9f3266706dc8de1bee433d4 | 1302a1694230096ae4289a22b7e64ade390ee9c6 | /main.cpp | 6babac3f8c46449af6c14fbd5ce21f5688132b93 | [] | no_license | fabricfc/SMOL | f9e42f6a787db571f73e1f1a0baea5c53dd8c4c3 | 40b68cb3f8e8a8b51bb974f9526fcb41eb8dc35e | refs/heads/master | 2021-01-10T21:11:56.880098 | 2012-07-03T17:37:36 | 2012-07-03T17:37:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,759 | cpp | main.cpp | #include "smol.h"
int main()
{
SMOL <float> matOp;
float **mat1 = matOp.criarMatriz(3,2),
**mat2 = matOp.criarMatriz(2,3),
**mat3 = matOp.criarMatriz(3,3),
**resultado1,
**resultado2,
**resultado3;
float **resultado2Inversa = matOp.criarMatriz(3,3);
int valor = 0;
... |
37d38ca3f5cc4af879c13d47a9db8cdfcec24708 | 317c4d3347f15cc77b17e23af806b7b79437b60b | /minicurl.hpp | b6319da6df9173d9dff1ee63a4e7e82b7e8c0ab9 | [
"Apache-2.0"
] | permissive | robinrowe/minicurl | ff2ca0b592bd49349bfe12006a43e1b1f0471c1a | 368639c2b4b22d7af4cc9a76b538cc4332edd188 | refs/heads/master | 2020-04-24T12:28:13.301962 | 2019-02-15T16:55:24 | 2019-02-15T16:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,270 | hpp | minicurl.hpp | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Minicurl
// Copyright 2019 Jean Diogo (aka Jango) <jeandiogo@gmail.com>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
//... |
b578bc07bd2b50d9b5df4b88e9dc16d6d38b18c0 | 118da6ff7b1aed905d7f97432be1b418803bb266 | /MyProjectStady/Con trỏ tới lớp.cpp | 6a3816ee149ae551b319234b17dc767ce098364b | [] | no_license | anhhst/MyProjectStady | c4527a603bc2acc39efb3bbdf5b5fb228a8802eb | 9b548c1e147cc8ea1dc76c1929695d182d510614 | refs/heads/master | 2020-12-24T11:18:05.502071 | 2016-11-07T03:29:58 | 2016-11-07T03:29:58 | 73,037,078 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,245 | cpp | Con trỏ tới lớp.cpp | #include <iostream>
using namespace std;
class Box
{
public:
// phan dinh nghia Constructor
Box(double dai=1.0, double rong=1.0, double cao=1.0)
{
cout <<"Constructor duoc goi." << endl;
chieudai = dai;
chieurong = rong;
chieucao = cao;
}
double th... |
41f84d857766aff7493081a94617215269f7616e | 1d76c55dcdff235db8f49604026f529129c12439 | /src/sstable/ob_scan_column_indexes.h | 2b4f2034edb083e93e83ced526de68cee42fdf59 | [] | no_license | ailyanlu/oceanbase | 1afb8fcb8279dac535c3553e480d31f560ddb547 | 3d642f3fa306d3d820860f9a48dcac20639f1da7 | refs/heads/master | 2016-09-05T11:14:56.049300 | 2012-03-15T06:58:55 | 2012-03-15T06:58:55 | 6,865,593 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,743 | h | ob_scan_column_indexes.h | /**
* (C) 2010-2011 Alibaba Group Holding Limited.
*
* 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.
*
* Version: 5567
*
* ob_scan_column_indexes.h
*
* Authors:
* h... |
9ed43dd0faecd3d7b611825b6dc47b938e225c9c | 3ad50a410ed92d9600071e326bcb4b2355bfa02a | /unittests/helpers/driver/timer.h | c433fc9b7dacfa92a7eb990c43fb98162aa70720 | [] | no_license | Deadolus/esp-clock | c4011e63113325df6ca8595d9e1d50b19122239e | 5e05e19e704736be5bb94f46b8bedbc1e65386ff | refs/heads/master | 2020-05-13T20:21:19.713490 | 2020-03-01T16:56:22 | 2020-03-01T16:56:22 | 181,656,872 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 76 | h | timer.h | //timer stub
#pragma once
#include <cstdint>
typedef uint8_t timer_idx_t;
|
6673a5b286f5d1a336a375e6dde8c07de9836a9b | 664075b7f2ce1bfa6bee17176d4206dd0feb35be | /Item.cpp | 2ae18e5052dfe1c99a531d9199aa8da816f20042 | [] | no_license | compiler-scnu/SLRAnalyser | 448c967bc75413ebabedbf6f47a355d66229c5b2 | 1364e6b37db6e9077daff5f1c8c1058041576124 | refs/heads/master | 2023-02-08T01:51:59.478439 | 2020-12-27T10:21:15 | 2020-12-27T10:21:15 | 324,734,071 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,042 | cpp | Item.cpp | #include "Item.h"
#include <QDebug>
Item::Item()
{
}
Item::Item(const Item &item) : Production(item)
{
this->point = item.point;
this->leftPart = item.leftPart;
this->rightParts = item.rightParts;
this->number = item.number;
}
Item::Item(Production production)
{
leftPart = production.leftPart;
... |
a456d37feded146027e5b4a4d4cb792feb62436d | 4f0da986892c74486f5a3051b791eb523f4371a2 | /pa3/game/Tree_Node.cpp | a166f7a7130ea5dbba0dc5f72fca6331cc03554d | [] | no_license | donaldelrod/CSCE315-HW | 3e5fbf2a54fe4b95a6f1ca44b708a74aff1a2799 | 3a48a07d2ed58f49d15e819feda2211a130d1cdc | refs/heads/master | 2020-04-25T01:32:37.847221 | 2019-02-25T01:09:38 | 2019-02-25T01:09:38 | 172,411,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,761 | cpp | Tree_Node.cpp | #include "Tree_Node.h"
//this function checks whether the move from the node t, to the node s is a legal move
bool isValid(Tree_Node t, Tree_Node s){
unsigned int count = 0;
vector<int> dummy;
for(unsigned int i = 0; i <= s.node.size(); ++i){
dummy = flip(t.node, i);
for(unsigned int j = 0;... |
a4bb565a6dbc32b7f45d4a4477b594196e022d81 | 147a7d094cac257c105a68b25255ccbbe91b9863 | /src/lib/operation/operation_proxy.h | e26b80325caef7647603c13841aa97d031bfd9cc | [] | no_license | sugarsweetrobotics/nerikiri | d3e9950ffc02a5e378507eae203cd95f14338849 | 9c0025da822f0fb8fa000267aec5f40972cc6f97 | refs/heads/master | 2022-06-03T19:04:05.407723 | 2022-03-24T03:10:32 | 2022-03-24T03:10:32 | 232,934,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 592 | h | operation_proxy.h | #pragma once
#include <memory>
#include <string>
namespace juiz {
class InletAPI;
class OperationAPI;
class ClientProxyAPI;
std::shared_ptr<OperationAPI> operationProxy(const std::shared_ptr<ClientProxyAPI>& broker, const std::string& fullName);
std::shared_ptr<OutletAPI> operationOutletProxy(O... |
907e7b8ed0727d59975fd7a781dec34d3d872094 | 02eb38f375a73771655d190c4bfc40b4a8063b6b | /cpp/1012.cpp | 04dcb7d3a5b203d134c36a6601e2c799e10ec7ce | [] | no_license | seungchan100/boj | 0812cd06b030b2f6d763b52d2f0208bfce183600 | f9f3c2f9b4bb1ac9e298ce6e2c6e145b951bfd31 | refs/heads/master | 2021-07-10T11:34:46.447173 | 2020-06-24T14:05:02 | 2020-06-24T14:05:02 | 142,887,614 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | cpp | 1012.cpp | #include <stdio.h>
int uniq, map[60][60], X, Y;
int dx[] = { 1, -1, 0, 0 }, dy[] = { 0, 0, 1, -1 };
inline bool isValid(int x, int y) {
return x >= 0 && x < X && y >= 0 && y < Y;
}
void spread(int x, int y) {
map[x][y] = 0;
register int i, tx, ty;
for (i = 0; i < 4; i++) {
tx = x + dx[i], ty = y + dy[i];
if (is... |
d0f5de71f5e4a1158f430d648cc73ad82bc66c05 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/security_interstitials/core/https_only_mode_policy_handler.cc | d7826a403f79061ea58e90d4f42cddb3f865cb18 | [
"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,543 | cc | https_only_mode_policy_handler.cc | // 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.
#include "components/security_interstitials/core/https_only_mode_policy_handler.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/policy_con... |
608a0d6241e7a478790846b35da54e6aac27dce7 | 1187b42bd08c1be389272dce452406e57ed78f64 | /sapfor/experts/Sapfor_2017/_src/DvmhRegions/RegionsMerger.cpp | 5e16399284307e6e99287cc4f7949d74404721a7 | [] | no_license | koldeen/Sapfor2 | 2b784a12400bdeb919a6e7a6c3df54ec94d7f86b | 6ab55f3ed3ef4d741dc3fa291aaf4fb15111df7d | refs/heads/master | 2023-05-28T06:26:54.435944 | 2021-03-18T07:19:45 | 2021-03-18T07:19:45 | 371,909,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,043 | cpp | RegionsMerger.cpp | #include "leak_detector.h"
#include "RegionsMerger.h"
using namespace std;
bool RegionsMerger::compareByStart(const DvmhRegion *a, const DvmhRegion *b)
{
if (a->getLoops().size() < 1 || b->getLoops().size() < 1)
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
int lineLeft = a->getLoo... |
47dac0d30b5259b4a2046c5b49a2e9a475cd1e90 | 8c6117ae298d1df73caedf1baad408662b6ba2d4 | /bigquery/version.h | 022e61bfc1206c70ab7ad917a9727b5609be826a | [] | no_license | aryann/cpp-bigquery | be81a84f2c2e01e176500ee8ec4ba74c2d53604a | d2b0048b4a58cb9e3d8f2edbf1d7ea99a3222a22 | refs/heads/master | 2020-08-06T09:49:56.250885 | 2019-10-06T23:54:03 | 2019-10-06T23:54:03 | 212,932,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,383 | h | version.h | #ifndef BIGQUERY_VERSION_H_
#define BIGQUERY_VERSION_H_
#include <sstream>
#include <string>
#include "bigquery/version_info.h"
#include "google/cloud/version.h"
#define BIGQUERY_CLIENT_NS \
GOOGLE_CLOUD_CPP_VEVAL(BIGQUERY_CLIENT_VERSION_MAJOR, \
BIGQUERY_CLIEN... |
078df3ac687c7d187f35ae39714e17d2d959241a | 252278a89c3029a3cbf87af6f1b41886d5222c5b | /include/shlobj.inc | e75d5c8f829bcc1471038f04bdf2360b86472125 | [] | no_license | mrfearless/UASM-SDK | 2a306568555bf714b70a509bd424dc835ef8978d | 4c6d4fa9dd44da7582f81d1f481b953831e9502f | refs/heads/master | 2022-08-24T20:01:46.092391 | 2022-08-18T13:19:04 | 2022-08-18T13:19:04 | 147,090,530 | 10 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 57,218 | inc | shlobj.inc | ;--- include file created by h2incx v0.99.3, copyright 2005 japheth
;--- source file: d:\microsoft sdk\include\ShlObj.h, last modified: 7/4/2001 0:59
ifndef _SHLOBJ_H_
_SHLOBJ_H_ EQU <>
ifndef _WINRESRC_
ifndef _WIN32_IE
_WIN32_IE EQU 0501h
else
if (_WIN32_IE lt 0400h) AND defined(_WIN32_WINNT) AND (_WIN32_WINNT ge 05... |
0b3272ff756d1c9e23c3983681fc59ad4dff249a | 2566606cb0fb4730ae17b3e01506a5ea412ba135 | /lab_07/main.cpp | 3368e58fcacccde6b60a1763b0f82a53c8d8cd8a | [
"MIT"
] | permissive | bmstu-ics7/data-types-and-structures | d5bb6f3e090b96a1c6725c12f5b59a0d3c57d635 | 8804b3f84123caea3316154fbf89419fb9e86fec | refs/heads/master | 2022-05-25T02:19:22.419137 | 2019-11-07T20:34:48 | 2019-11-07T20:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,149 | cpp | main.cpp | /*
* Задана система двусторонних дорог.
* Найти множество городов, расстояние от которых до выделенного города ( столицы ) больше, чем Т.
*/
#include <iostream>
#include <vector>
#include <fstream>
#include <iomanip>
#include <cmath>
#include <time.h>
#define SUCCESS 0
#define INCORRECT_FILE -1
#define INF 10000... |
5015e160f973ea0b36e81236a99ce8ddde20ac44 | 29e2f637f2c49a4d9d0dd375dd0ccd79c69cb438 | /freeflow/sdn/switch.hpp | 672123e4d3b30764ae21137bb99ee18e2d7cdbd2 | [
"Apache-2.0"
] | permissive | dmbk/freeflow | 03ea3da9dabfd516dbf286c00b47ee17c1840297 | c5cd77495d44fe3a9e48a2e06fbb44f7418d388e | refs/heads/master | 2020-12-27T20:39:43.757320 | 2014-08-28T12:45:44 | 2014-08-28T12:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,986 | hpp | switch.hpp | // Copyright (c) 2013-2014 Flowgrammable, LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
bb0647878def5c03df3f7cfbfa19615b6ad578d1 | 895e1f0af56518c7956594f7c650211d9fc2467a | /labs/game_engine/dev/include/math/math_types.h | 3cffde55d9cd9bb563c8a319aff63973a308a1fd | [] | no_license | lythm/orb3d | b6061ebf839381a35aaeab8baf08a38fcfe03a71 | 2defcbf86ef7dd2a27fe7bdc89bf709ed8bf2a79 | refs/heads/master | 2016-09-15T15:55:19.069094 | 2013-07-12T17:09:29 | 2013-07-12T17:09:55 | 4,442,482 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 517 | h | math_types.h | #ifndef __MATH_TYPES_H__
#define __MATH_TYPES_H__
#pragma once
//#include <math>
#include <limits>
#ifdef MATH_PI
#undef MATH_PI
#endif
typedef float Real;
namespace math
{
const Real MATH_PI = Real(3.1415926);
//const Real MATH_REAL_MAX = std::numeric_limits<Real>::max();
//const Real MATH_REAL_M... |
219c84a171e04023e83f61b30cdc5ec6bc3b2f46 | 17c1d4c926b3bbb702a2a232e36bb9337ca7d02c | /IITKWPCH.cpp | 0eb8d1777610f619e9ccbd56521e260add6606b1 | [] | no_license | venkat-oss/SPOJ | 796c51696061240980935f6fbf2fdc2f9f1ba674 | 119d0dec0733ca300bb0072d69e9e5bbcbb80c72 | refs/heads/master | 2021-10-11T05:15:50.696357 | 2019-01-22T16:52:48 | 2019-01-22T16:52:48 | 169,182,392 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,358 | cpp | IITKWPCH.cpp | //
// main.cpp
// Dolphin
//
// Created by Mahmud on 22/05/17.
// Copyright © 2017 Mahmud. All rights reserved.
//
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <numeric>
#include <algorithm>
#include <functional>
#include <vector>
#include <queue>
#include ... |
f051659ae3381f0e6d5574cdc86d1d9407975764 | 959a198f0102bb11775c9e69ddc625f9e52f4b63 | /lab5/MyList4Students/src/MyList.cpp | fd6f852fb17ce46350c7a99ac7f6c1b8bac1a7f2 | [] | no_license | kocimski/CPlusPlusLab | 45d0ba6ddd1b519b185d2c145bee00ba96dabb3c | a8ac1d4315043042a4eb12d7f08a703bb76f68ce | refs/heads/master | 2022-11-10T10:03:27.608478 | 2020-06-25T16:20:08 | 2020-06-25T16:20:08 | 248,291,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 896 | cpp | MyList.cpp | //
// Created by pawel on 06.04.2020.
//
#include "MyList.h"
//class Iterator {
//public:
// Iterator() noexcept :
// m_pCurrentNode(head) {}
//
// Iterator(const Node *pNode) noexcept :
// m_pCurrentNode(pNode) {}
//
// Iterator &operator=(Node *pNode) {
// this->m_pCurrentN... |
3ebd8da6744393965996c281a0036d311b3a8f1a | b837b2ccbaaa22f21949766aa4d373b0e59de612 | /rocknroll/Classes/Car.h | f68f0804df2a0fa94d2fb006e2deaae81f2fb704 | [] | no_license | Kangmo/ChickenSlider | 7ebcfb901cb34b556daa239622a16b94c50dbe31 | 9a803b8de47956789b0d8d12bcb77c70e8849471 | refs/heads/master | 2021-10-11T11:18:28.971830 | 2019-01-25T04:20:48 | 2019-01-25T04:20:48 | 167,482,504 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | h | Car.h | #ifndef _THX_CAR_H_
#define _THX_CAR_H_ (1)
#include "Box2D.h"
class Car
{
public :
Car( b2Body *body )
{
body_ = body;
}
~Car()
{
}
b2Body * getBody() {
return body_;
}
void setWheelSpeed(float32 radiansPerSec);
private:
b2Body * body_;
};
... |
3147964258a9fb2c463804db807984be8a1cf4ec | 7cc602874e6cdf64b6298e9909b90fa8208c403c | /modules/game/src/m3/game/gem_ring.cpp | c30fb81808d81a086af8c1e49fbcb0ce4ac16982 | [] | no_license | j-jorge/m3 | 21e1421a3713e2493de9f8baefccc21e067cf4aa | 286415537b7fe2854e713e1e241a48bced5b965f | refs/heads/master | 2021-07-02T05:56:43.619525 | 2017-09-13T19:44:50 | 2017-09-18T19:37:37 | 104,260,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,695 | cpp | gem_ring.cpp | #include "m3/game/gem_ring.hpp"
#include "m3/math/circle_section_index.hpp"
#include "m3/math/pi_times_2.hpp"
#include <algorithm>
#include <functional>
#include <cassert>
m3::game::gem_ring::gem_ring()
: m_orientation( 0 )
{
}
m3::game::gem_ring::gem_ring( const std::vector< gem >& chain )
: m_chain( chain ),... |
0f7f4c98e27734668fb2a8ab22af0abcd7373dfa | c6ec43fd1a3f1a4f5dcd995bc569ebde57f8925a | /node_modules/node-inspector/node_modules/v8-profiler/src/cpu_profile.cc | 963f616eafe3e7f2ce9eda09831df7364b5301c4 | [
"BSD-2-Clause"
] | permissive | liemqv/Vote | 962c29790bdf448186dc98a084ac28cba69b3665 | 01341bf0ea5e400d89f39af08f819061569a4537 | refs/heads/master | 2021-03-12T22:56:07.910949 | 2014-12-22T04:21:36 | 2014-12-22T04:21:36 | 28,224,548 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,088 | cc | cpu_profile.cc | #include "cpu_profile.h"
#include "cpu_profile_node.h"
namespace nodex {
using v8::Array;
using v8::CpuProfile;
using v8::CpuProfileNode;
using v8::Handle;
using v8::Number;
using v8::Integer;
using v8::Local;
using v8::Object;
using v8::ObjectTemplate;
using v8::Persistent;
using v8::String;
u... |
33ec806afaf81e8fc661b4c34b62f8e869c42946 | c2edc63819f7634a951c3e9a7d524c3321201490 | /03/driver.h | 812dab37df3cd5a3f9d9f289362b201facf279de | [] | no_license | aryapradipta9/OkeOce | 07c574ef22ff90947db828b2eaf608543d7aa322 | 6e227ae44baeaf34e0caa56f66161c554a48222e | refs/heads/master | 2021-01-21T11:19:11.476512 | 2017-03-17T03:39:57 | 2017-03-17T03:39:57 | 83,553,908 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 700 | h | driver.h | #ifndef DRIVER_H
#define DRIVER_H
#include <cstdio>
#include <iostream>
#define clearScreen() printf("\033[H\033[J")
#include "air_animal.h"
#include "air_habitat.h"
#include "animal.h"
#include "cell.h"
#include "entrance.h"
#include "exit.h"
#include "facility.h"
#include "habitat.h"
#include "herbivora.h"
#include "... |
d6b8b8da0f618a9d84afe8e650d8f3b7b6eda676 | 44f04b8f2b6c0dba51f1e998985d3a9e8540715f | /Gym/100733/I/I.cpp | 58d90795c52854735a6e59ade9ff4e3c35cc167f | [] | no_license | GuessEver/ACMICPCSolutions | 2dd318a45939711eff1dd208cffc05a029b38130 | 909927778efd77ca9ec8e18aed3ff22c167d2a33 | refs/heads/master | 2020-05-18T20:52:32.359955 | 2015-11-04T08:31:43 | 2015-11-04T08:31:43 | 29,720,059 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,050 | cpp | I.cpp | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
const int inf = 0x3f3f3f3f;
const int N = 500 * 5 + 10;
int n1, n2, m, d;
int g[N][N];
int v[N], h[N];
int S, T;
struct Node{
int a, idx;
}a[N], b[N];
bool cmp1(const Node &x, const Node &y) { return x.a > y.a; }
bool cmp2(const Node &x, con... |
2768854f17882f322f9a211980692b6372e8fcd1 | 5b425ffd730c7c179fed654410dc96df7e80c064 | /Classes/SelectRole.h | 7178a83831597a257fb72e8820f0993319a24429 | [] | no_license | niujianlong/CocosProjects | 4756555c682465b5a65214ad163bf718871273c8 | 9145993a3a23eb019f4434b658fd118966bbf4df | refs/heads/master | 2020-04-12T04:26:17.996885 | 2018-12-19T14:25:03 | 2018-12-19T14:25:03 | 162,295,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,236 | h | SelectRole.h | #include "cocos2d.h"
USING_NS_CC;
class SelectRole : public CCLayer,public cocos2d::CCTextFieldDelegate
{
public:
SelectRole(void);
~SelectRole(void);
CCRect rect(CCSprite* tack);
bool isTouchInside_nan(CCPoint thisPos,CCSprite* tack);
bool isTouchInside_nv(CCPoint thisPos,CCSprite* tack);
//virtual void r... |
74120b78a6d653b4f4a09e38000471eefd468129 | b215b52973d879e4f72390cfe1c7cc57e7f26569 | /computers/main.cpp | 788b6effe0e23e91d819bd530993c8c5bacd3103 | [] | no_license | chemikadze/oldschool | 41d9479b25afe81e9afe093658a54c96051995e7 | 416f0825ad6dacef2158c819e41be58ec73e4a75 | refs/heads/master | 2021-01-18T13:45:50.274717 | 2013-12-21T23:30:08 | 2013-12-21T23:43:37 | 15,367,414 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,583 | cpp | main.cpp | #include "window.h"
#include <QtGui>
#include <mcheck.h>
int main(int argc, char **argv)
{
mcheck(NULL);
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
QApplication app(argc, argv);
Window *mainWindow=new Window;
Computer *myHomeComputer=new Computer;
myHomeComputer->description=Tr("Мой домашн... |
0b1dc60632d4d60eac2488e60a5233f20229ec17 | b8ac37fdef58577dff08e49cd02edb13b3703992 | /mySort/quickSort.h | 4e41aae6bc75f478296a0e25e059d412de85ab39 | [] | no_license | 357272055/Sorting-Algprithm | 76c9e253919d49a0b34e68c3ba085347f1eb1322 | 5c5e73ab196070d2ad35316d9bd121aed371315d | refs/heads/master | 2021-01-23T20:45:12.907288 | 2015-01-02T11:10:16 | 2015-01-02T11:10:16 | 28,711,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | h | quickSort.h | #ifndef QUICKSORT_H
#define QUICKSORT_H
#include "dataList.h"
template<class T>
void QuickSort(dataList<T>& L, const int left, const int right, int& swapTime){
swapTime = 0;
QuickSort(left, right, swapTime, L);
}
template<class T>
void QuickSort(const int left, const int right, int& swapTime, dataList<T>& L){
if(... |
7ba65d6a5e5d5e2bcc4e7e8c0d4bf1f0d9e1d76f | afb685e516514ba4bd2ba8a7453c891a682ecf94 | /sa.ino | d55ae1888649d71886030595f6143271e47a8753 | [] | no_license | amitkrdotmandal/Arduino | a3b1af0b11eb9f073938feec94cff766de7c6aee | 556424c262b2aae6fd73f2f13f6fe42212f366bb | refs/heads/master | 2022-11-21T09:02:17.142778 | 2020-07-26T09:16:27 | 2020-07-26T09:16:27 | 282,606,103 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | ino | sa.ino | int raw1= 0;
int i= 4;
int j= 4;
int analogPin=A1;
void setup()
{
pinMode(10, OUTPUT);
Serial.begin(9600);
}
void loop()
{
for (int j = 0; j <= 200; j++) {
if (j<100) {
i=255;
}
else{
i=100;
}
analogWrite(10,i);
raw1= analogRead(analogPin);
Serial.println(raw1);
delay(100);
}
}
|
dc74177415abed3bbcf91ddea8dce203ee7d32fc | 13bfcfd7492f3f4ee184aeafd0153a098e0e2fa5 | /Kattis/joinstrings.cpp | 686d05194e647871fba2090c85940d3aa9eb938a | [] | no_license | jqk6/CodeArchive | fc59eb3bdf60f6c7861b82d012d298f2854d7f8e | aca7db126e6e6f24d0bbe667ae9ea2c926ac4a5f | refs/heads/master | 2023-05-05T09:09:54.032436 | 2021-05-20T07:10:02 | 2021-05-20T07:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,791 | cpp | joinstrings.cpp | // Knapsack DP is harder than FFT.
#include<bits/stdc++.h>
using namespace std;
typedef long long ll; typedef pair<int,int> pii; typedef pair<ll,ll> pll;
#define ff first
#define ss second
#define pb emplace_back
#define AI(x) begin(x),end(x)
template<class I>bool chmax(I&a,I b){return a<b?(a=b,true):false;}
template<c... |
d48ce6fc5c8b83743c241b840791ddf4114aabd7 | 562dc1fe31a9c83985c547eaa919fd2f2f392745 | /Programming Relevant/Einführung in die praktische Informatik/sort_template.cpp | f6959ce6e2dfce274c562b5e4d0739c06ff4ae7d | [] | no_license | anananlyjlyj/mybachelor | 530d73b0f75a63ff75a5e8df3c81655ca8b1ca3f | fa5ff48f817e13dd501339e0046a03121e74dbe1 | refs/heads/master | 2021-06-18T10:16:34.193996 | 2020-04-28T19:06:03 | 2020-04-28T19:06:03 | 190,816,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,712 | cpp | sort_template.cpp | #include <iostream>
#include <cassert>
#include <vector>
#include <cmath>
#include <algorithm>
template <typename ElementType, typename LessThanFunctor>
bool check_sorted(std::vector<ElementType> const & v, LessThanFunctor less_than)
{
for(int i = 1; i < v.size(); i++)
{
if(less_than(v[i], v[i - 1]))
... |
786d2946d59082f3607804fd38b2963bba1b078a | 6e142cebf3c804271c66d7f837b6ed5ac1fd7d96 | /format.cpp | 7c11c4e17394a56b104020b2d066496a1fd849b4 | [
"MIT"
] | permissive | tsmanner/cpp-format | 0055ed85da2a955ae9b90796e5af1e96b7189400 | aa731054b70d5a09438547305455d732603f65a1 | refs/heads/main | 2023-05-06T04:03:41.382677 | 2021-05-18T18:56:11 | 2021-05-18T18:56:11 | 366,400,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | format.cpp | #include <iomanip>
#include <iostream>
#include "Formatter.h"
constexpr auto MyFmt = "My number is " + Fmt<int, 5>() + "! My char is '" + Fmt<char>() + "'!\n";
constexpr auto EaFmt = "Ea=" + Fmt<uint32_t, 8, '0', std::hex>() + ":" + Fmt<uint32_t, 8, '0', std::hex, std::uppercase>();
int main() {
using std::cout;... |
26659cf30ddcd002f07fa62b6ef85027b5c8f2ff | b21a026a74a5efc0f338ea76171e7b2cf7363fda | /GraphicsNode.cpp | a33e1f5296e93a412f8116498e4b5de943806362 | [] | no_license | iKlsR/SDFSandbox | 5c9939832c32ace8d9cfb19a2d5f8bafd1d9557b | 65ee07479e25aedf709cc8da2d3502aaabda3bf6 | refs/heads/master | 2023-02-03T02:31:18.607302 | 2020-12-25T23:07:23 | 2020-12-25T23:07:23 | 307,894,711 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,302 | cpp | GraphicsNode.cpp | #include "GraphicsNode.h"
#include <QPainter>
#include <QGraphicsTextItem>
#include <QGraphicsDropShadowEffect>
#include <QFontDatabase>
#include <QDebug>
#include <QStyleOptionGraphicsItem>
#include "Node.h"
GraphicsNode::GraphicsNode()
{
width = 100;
height = 100;
titleHeight = 25;
radius = 5;
... |
b79ffa06b65fe1c155655abd76f965cb52003c0f | 68984b1afe0f60079855230c78ffcd2a62bf9663 | /floodfill.cpp | 952aaad6b893a339b9c3fac6e866fa5492559bd3 | [] | no_license | sarthak20535/Data_structure-Algorithms- | 541017c526a8fe2ef30283534692782eee1a8a24 | b799c321183285e3917d99f2e6cfeed581847efe | refs/heads/master | 2022-11-16T01:56:45.466008 | 2020-07-14T07:30:03 | 2020-07-14T07:30:03 | 279,511,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,791 | cpp | floodfill.cpp | #include<bits/stdc++.h>
using namespace std;
const int a=11,b=11;
bool DFS(int x,int y,bool visited[a][b],int ar[a][b],int n,int m){
if( x == n && y== m)
return true;
if(x > n || y > n)
return false;
if(x <= 0 || y <= 0)
return false;
if(ar[x][y] == 0)
return false;
if( visited[x][y] == true)
return fals... |
36b4b3d13992c9d4577970d8bc6316e441394570 | 8ef121c4fb829cd7ad5906535c7eac1503e46259 | /ModelLoader/ModelLoader.cpp | b4e076c0849301a9d985c46317703ba57dde2763 | [] | no_license | adan830/TLBBModelLoader | b7af1b2cdeb959fe975059eed1351daa5525d140 | 6b1e42559049bda72faef196b914b4b32331f0a2 | refs/heads/master | 2021-05-29T11:41:23.465791 | 2015-06-30T03:24:39 | 2015-06-30T03:24:39 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,161 | cpp | ModelLoader.cpp | /*
-----------------------------------------------------------------------------
Filename: ModelLoader.cpp
-----------------------------------------------------------------------------
This source file is part of the
___ __ __ _ _ _
/___\__ _ _ __ ___ / / /\ \ (_) | _(_)
// // _` | '__... |
70b4b1779d1edbb339d57256e6514c03c0f8a78c | 6f06493bf8df1900ef5352208a2b8ebd2bfac37f | /OpenGLProject/renderer.hpp | be30a97312f9704323a099b9f9d52b7c377b5832 | [] | no_license | Cresspresso/RocketChess | c5df0f107cae1fc392976b9f2fb442c67e56431a | 96c0372317e5f4ca2d866094f02e95f341794ce2 | refs/heads/master | 2022-03-14T06:40:50.469855 | 2019-11-11T01:42:51 | 2019-11-11T01:42:51 | 198,104,578 | 1 | 0 | null | 2019-09-02T04:31:58 | 2019-07-21T20:56:09 | C++ | UTF-8 | C++ | false | false | 578 | hpp | renderer.hpp | /*
** Bachelor of Software Engineering
** Media Design School
** Auckland
** New Zealand
**
** (c) 2019 Media Design School
**
** File : renderer.hpp
**
** Summary : Renders a mesh with a shader program and a material.
**
** Project : Robotron Summative
** Author : Elijah Shadbolt
** Email : elijah.sha7979@mediade... |
bb4e711eeb53d43be654ab2f7634d533662be7f4 | 0f4012d03230b59125ac3c618f9b5e5e61d4cc7d | /Cocos2d-x/2.0-x-2.03_branch_231_NoScript/projects/HelloUI/Classes/SixUI/SIX_MusicMgr.cpp | 109d486404f1dc4bb549e9b0466a6c5cb732eba2 | [
"MIT"
] | permissive | daxingyou/SixCocos2d-xVC2012 | 80d0a8701dda25d8d97ad88b762aadd7e014c6ee | 536e5c44b08c965744cd12103d3fabd403051f19 | refs/heads/master | 2022-04-27T06:41:50.396490 | 2020-05-01T02:57:20 | 2020-05-01T02:57:20 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,890 | cpp | SIX_MusicMgr.cpp | #include "SIX_MusicMgr.h"
// 忽略大小写
int compareIgnoreCase(CCString str,const char * pStr)
{
#ifdef WIN32
return stricmp(str.getCString(),pStr);
#else
return strcasecmp(str.getCString(),pStr);
#endif
}
void SIX_MusicMgr::ParseNode(SIX_XmlDataSet *pDataSet,const char *nodeName)
{
if (compareIgnoreCase(pDataSet->getVa... |
01d6a1cd19b1c8fadc375153dbd524aff2fea892 | 3fa6677113c68ce0bac0d0355ea57b662575158b | /TestC/preTest.cpp | a12d9684eb909afc6b7e99c83e7317d5411573b0 | [] | no_license | edenhub/sicily | 99dc04415f9fb99154f24f24d8f7de339b2bf5cc | d984d8e60b4c58d97b38da19ed804e0e2d51f875 | refs/heads/master | 2016-09-05T19:07:02.087519 | 2015-03-02T15:31:35 | 2015-03-02T15:31:35 | 25,717,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | cpp | preTest.cpp | #include <set>
#include <iostream>
#include <stack>
using namespace std;
int main(){
set<string> container;
container.insert("ada");
cout<<container.size()<<endl;
container.insert("ada");
cout<<container.size()<<endl;
cout<<"-------------"<<endl;
stack<char> st;
st.push('a');
st.push('b');
cout<<st.size()... |
cf89e9b0fbfcabf9a9d894e7406c5b767777dfec | da1bf98911536942b932c83a6fbb0e7ba062834f | /codigo/funGenetico.cpp | 26ab08185cc6abe56a515697fc55111d38d22dc1 | [] | no_license | tomasalonso/TP3-AyED3 | aaa857bb6adcbc680e819392e84432c04d5e5ca2 | f9963adbf8bd46505bb2c14f0bd81eb5aab35411 | refs/heads/master | 2020-05-01T17:33:02.311239 | 2018-07-21T02:33:05 | 2018-07-21T02:33:05 | 177,602,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,163 | cpp | funGenetico.cpp | #include "funGenetico.hpp"
#define min_gen -1.0
#define max_gen 1.0
vector<string> f_names = {"fitness_puntos", "fitness_dif_goles"};
vector<string> s_names = {"seleccion_por_puntaje", "seleccion_por_cantidad"};
vector<string> m_names = {"mutacion_A", "mutacion_B"};
vector<string> c_names = {"crossover_BLOQUES", "cro... |
d22ffd572d609e109b3da91fc38fa9a5e2c3a7a4 | d24020ce4ed1895199c187a4386ccc5e6a741f0d | /project 1/base/base.ino | c4a3e7688dd82673ea20f45315589996ec2c8e69 | [] | no_license | kerfootj/csc460 | 0beecff9762e45304bba6b9f3918fc1223063578 | 3e897b1955a93664a2c5633f3f8e955b32d517bb | refs/heads/master | 2020-12-12T21:24:03.048485 | 2020-03-07T01:55:42 | 2020-03-07T01:55:42 | 234,230,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,210 | ino | base.ino | #include "scheduler.h"
#include <LiquidCrystal.h>
#define DEBUG false
#define I_PIN 24
#define L_PIN 52
#define X_PIN A8
#define Y_PIN A9
#define S_PIN A10
#define X_0 502
#define Y_0 512
#define DEADZONE 10
#define ALPHA 0.8
#define DELTA 8
int x = X_0;
int y = Y_0;
int swtch = 0;
int on = -1;
bool toggle = false;
... |
57d420f8c68a16bd1e7db0a0dc74c69d1f86a990 | b6d0cec25653f346d8b4e19030d4e71396bed4d2 | /base/include/LogDeal.cpp | c00dd168f04ef0d7cd2bbe443cab013e823b5b34 | [] | no_license | DuJunxiu/Messenger | d3ddc6268743b4ccf27d6c8ebce61cf89e23711b | 18e55fed2db0f1bf95e14d8949bb69501d1ca0f5 | refs/heads/master | 2023-08-05T10:38:18.461190 | 2021-09-17T07:45:38 | 2021-09-17T07:45:38 | 297,316,455 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,638 | cpp | LogDeal.cpp |
#include <string.h>
#include <stdarg.h>
#include "LogDeal.hpp"
#include "TimeUtility.h"
using namespace MyMessenger;
// 日志命名示例:log_2020_01_01.log
int CLogFileManager::initLogFile()
{
m_uiLastTickTime = 0;
m_pFile = nullptr;
memset(m_szFileName, 0, sizeof(char) * MAX_FILE_NAME_LENGTH);
checkLogFile... |
0830113fc657705235bd2c460da812d6e4806dcf | 0cf0d019a9957c6c7735e63f1f142f95e6b05e97 | /06-Uslovna_sinhronizacija/Zadaci/a_pre_b/main.cpp | f8e6255db48e7f907acb248439d5f76db42c3113 | [] | no_license | FmasterofU/OS_FTN_assist | 4720636e1eaee800c05f86e9769d00dbd14d6613 | be7de35073413a53b19c311daff4869291b0356f | refs/heads/master | 2021-02-11T11:22:14.118969 | 2020-04-06T19:51:31 | 2020-04-06T19:51:31 | 244,486,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | cpp | main.cpp | // Napraviti konkurentni program sa dve niti.
// Nit a ispisuje: Ja sam nit a.
// Nit b ispisuje: Ja sam nit b.
// Obezbediti da se uvek izvrši prvo nit a.
//
// Implementirati označene metode u klasi Koordinator u fajlu koordinator.h
#include <iostream>
#include <thread>
#include "koordinator.h"
using namespace std... |
4274a2190b6835442641ab18111d1ee20aa6987d | 2db19a11a072ef5777f383dae024ea10cf780a12 | /Source.cpp | 9d8d00a83ba54032d900aaa1d09c84330b732c2d | [
"MIT"
] | permissive | arya-ht/Area | 6a4a394542560cd314763268bcb870a838247b5a | a66f3501012f2830d6206959902c4da586325b7a | refs/heads/master | 2021-01-01T06:07:04.753665 | 2018-06-11T00:40:28 | 2018-06-11T00:40:28 | 97,358,631 | 0 | 0 | null | 2018-06-11T00:39:39 | 2017-07-16T03:57:25 | C++ | UTF-8 | C++ | false | false | 1,106 | cpp | Source.cpp | #include <iostream>
#include <string>
#include <iomanip>
// Arya HajiTaheri
#include "point.h"
#include "circle.h"
#include "cylinder.h"
using namespace std;
int main()
{
cylinder cylinder1;
circle circle1;
int input;
char input1;
while (true) {
cout << "\nWhat aspect of shape do you want to calculate? (1)Sur... |
be4356f3a31974a848897f201545e2a69fba8f1d | 94c1d92671797d793e7af4baa4c279a8dea05af4 | /Sliding_Window/UVA_1121.cpp | 61debc4f7daf81f442ff7fa29c30c7e8507b1caf | [] | no_license | SadiHassan/UVA | f3f061622b2bd82623f3aa0538610e48c8ddf227 | 8e65d384e961f2c2cc567a0c8a3a140406eb7055 | refs/heads/master | 2021-06-03T08:17:48.459875 | 2021-02-17T02:25:57 | 2021-02-17T02:25:57 | 24,782,488 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,503 | cpp | UVA_1121.cpp | //ACCEPTED!!!
#include<iostream>
#define ULI unsigned long int
#define MAX 0
#define MIN 1
using namespace std;
ULI arr[100001], leftt[100001], rightt[100001], N, S, now_min, now_max;
ULI _min(ULI a, ULI b){ if(a<=b) return a; return b; }
ULI _max(ULI a, ULI b){ if(a>=b) return a; return b; }
void window(ULI k){
... |
d5fdf82b45182f37016d51ef421d0c646f728b88 | b4d3d2f684ce6ff47719ba15ef12c67eb91a835b | /test/TestGame.h | f98ef9722d8d9995b537c943af015bcdbec55e13 | [] | no_license | soniaobmok/chess | 78d37c855680148f070c190b05dc2a420708479b | ae396d5cea79f65c68c9b1dd30c36498081f5dc6 | refs/heads/master | 2022-11-08T01:46:06.142916 | 2020-06-22T06:30:43 | 2020-06-22T06:30:43 | 274,057,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | h | TestGame.h | #include <cassert>
#include "../include/headers/Game.h"
#ifndef CHESS_TESTGAME_H
#define CHESS_TESTGAME_H
class TestGame {
public:
static Cell **createEmptyBoard(int width);
static void deleteBoard(Cell **board);
static void testCoordinatesAreValid();
static void testMoveFigure();
static void te... |
f3bc26425b8f20ebdf0c26532d656e60352cd837 | dc5cec64a3ab91444c928b10a4d90feb6ba6f4f2 | /p0301_stack_template.cpp | 6a6db33130fe200d7354a02c3df253d90f9cf3ff | [] | no_license | coding10000/ctci150 | eb9d9555813167e7fb0720b309d0617b10c06476 | 0a1527a431f76f7679b269002778fa8eb9589bf8 | refs/heads/master | 2021-01-24T20:02:11.591022 | 2013-04-21T03:34:19 | 2013-04-21T03:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 677 | cpp | p0301_stack_template.cpp | #include "p0301_stack_template.h"
//template<typename T>
//MyStack<T>::MyStack():head(nullptr),size(0){
//}
//
//template<typename T>
//MyStack<T>::~MyStack(){
//}
template<typename T>
bool MyStack<T>::empty(){
return 0==size;
}
template<typename T>
bool MyStack<T>::push(T d){
Node* p = new Node(d);
p->next = hea... |
30cc643d399f96672bd1489a88fd03dac5e75d18 | 602f57af8c39a1992b44e18b448b54dc33482472 | /examples/annotations/text/text_8.cpp | 64d79511d09c1d325df334a39a70cc10ba767b01 | [
"MIT"
] | permissive | alandefreitas/matplotplusplus | 6e3bd7f5e641809c2e4d04f1c6e4af261dbf6c69 | 156001b56efb9b79c888426a7754c3255f15b665 | refs/heads/master | 2023-07-23T23:08:29.013396 | 2023-07-17T17:18:12 | 2023-07-17T17:18:12 | 291,173,540 | 3,596 | 292 | MIT | 2023-07-17T16:21:09 | 2020-08-29T00:45:11 | C++ | UTF-8 | C++ | false | false | 310 | cpp | text_8.cpp | #include <cmath>
#include <matplot/matplot.h>
int main() {
using namespace matplot;
auto y = transform(iota(1, 10), [](double x) { return pow(x, 2); });
plot(y);
text(3, 90, "λ_{12}^{3/2}/π - πΔ^{2/3}");
text(4, 60, "lambda12^{3/2}/pi - pi delta^{2/3}");
show();
return 0;
} |
99cbf89dc64113d2fb1053186d0c8b983bc95083 | 1dc50cd9dce12fc65e31c4afe7d13bb838e15cfa | /SkapaClothes-Hito-3/include/Registro.h | 9f3d4f7df7c4d4456624a3305b3185c56c0db4fa | [] | no_license | GaizkaWilliam/progreros | 93c56bb6a238a5de41406bdc95771567b2901fdf | 349f49e15abee91aee267c33bf6ade73de4a9701 | refs/heads/main | 2023-06-05T05:41:00.776993 | 2021-06-21T19:50:11 | 2021-06-21T19:50:11 | 354,505,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | h | Registro.h | #ifndef REGISTRO_H
#define REGISTRO_H
class Registro
{
public:
Registro();
virtual ~Registro();
protected:
private:
};
#endif // REGISTRO_H
|
55dc732214205142209f15358032710ea9b69a86 | d9985ba6cd706fd8178b31519afb8dbd44477eb1 | /src/lib/socket/toolkit_linux.cpp | f2fd718b959b88b3fb814b381e42bc9962b030cc | [] | no_license | penn201500/npg | 5f19cc40b8191daa5cae7f0e44fb7f9286975c58 | 1074718ecb699c7e65dff3df7b8fa60411771926 | refs/heads/master | 2021-05-27T21:30:32.424047 | 2013-10-12T00:56:58 | 2013-10-12T00:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,230 | cpp | toolkit_linux.cpp | /*
* socket_toolkit.cpp
*
* Created on: 2011-9-20
* Author: Young <public0821@gmail.com>
*/
#ifdef __GNUC__
#include "toolkit.h"
#include "../../logger.h"
#include "socket.h"
#include <qobject.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <ifaddrs.h>
std::vector<ifi_info> So... |
7e419d691e2e07d9e16cfe2f868a0306da8f73cc | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/1.43/U | a9eddc75c78d1d26b4d879a8e0e05de2e13e2f0d | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435,376 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
fcab2b268b177f20519efa34b50102cde2d4e1f2 | a991c1985f9efb0f02ecbe34f9256789927942ee | /JustCplusplus/friendmetod.cpp | b626efeb831da458c74d3f9d1afa16c1e3e3630a | [] | no_license | piffs1/AnyCPP | da373e022ad2a7266b87adf08d9eb844df243168 | 7423e512550a8bb4f8c68f25e65bc2f7e50faef6 | refs/heads/master | 2023-03-16T06:20:42.963041 | 2023-03-04T20:30:45 | 2023-03-04T20:30:45 | 152,266,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 750 | cpp | friendmetod.cpp | /*friend method of class */
#include <iostream>
#include <string>
using namespace std;
class Apple;
class Human
{
public:
void TakeApple(Apple &apple);
};
class Apple
{
///friend class Human;
friend void Human::TakeApple(Apple &apple);
private:
int weight;
string color;
public:
Apple(int we... |
601d02212622518be23d4a476ab0702a9dca50a0 | 3ea93843b69cdc578e26b9440990f6a5a4bd3dc8 | /source/MainMenuScene.cpp | 9cabbf44596e7d9aa76e219c6f548e2c7f1238e3 | [] | no_license | gnaww/Lumia-1 | 7d5466085f5d0ef3b3a1ccea21adbbd180a8524d | b7a545cd6a264ed47ed8516edd70ef7e9c944f08 | refs/heads/main | 2023-05-03T11:42:09.121232 | 2021-05-25T06:32:28 | 2021-05-25T06:32:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,343 | cpp | MainMenuScene.cpp | //
// UIButtonScene.cpp
// UI Demo
//
// This module shows off a basic button. The button is backed by a NinePatch
// so it can resize dynamically. It changes the text on a click.
//
// Author: Walker White
// Version: 1/20/18
//
#include "MainMenuScene.h"
using namespace cugl;
/** This is adjusted by screen ... |
bc340155c3c28ea7e2178c27b5c91126e3a2d5c8 | a798ff30e5a638188bee9b48625805568c57f317 | /Filesystem.cpp | 8fc2bbc736fbcd9b951f8815582406a06d300093 | [
"MIT"
] | permissive | AlexanderDzhoganov/torrentstream | 390c7ae07f40176ae0cdacb64404e527d044f6f1 | afd96d51551b8b8283eb70ccbe42873a8e9e5187 | refs/heads/master | 2021-01-10T19:10:23.124490 | 2014-07-29T21:37:10 | 2014-07-29T21:37:10 | 22,107,719 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,153 | cpp | Filesystem.cpp | #include <boost/asio.hpp>
#include <boost/asio/windows/random_access_handle.hpp>
#include <Windows.h>
#include <fstream>
#include <vector>
#include <memory>
#include <thread>
#include <condition_variable>
#include <mutex>
#include "ASIOThreadPool.h"
#include "Filesystem.h"
namespace TorrentStream
{
namespace Fil... |
db2ea7192f3614a6e1dc7e35431eba10ed7f21fe | 460cdb9ddc640f060f20d2234cdd17a97198db38 | /VGP332/HelloFSM/FollowState.h | 73509584acb197a2b16db6467178d81f6dc90a95 | [] | no_license | rsaz/Angazi | fdae15379409fc5d66b1b57d245153471f7f4ef4 | b6ad8198f5b7dfbd06f786f750a452f526140579 | refs/heads/master | 2023-01-07T15:35:26.481210 | 2020-11-08T07:24:22 | 2020-11-08T07:24:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | h | FollowState.h | #pragma once
#include "Enemy.h"
#include <Angazi/Inc/Angazi.h>
class FollowState : public Angazi::AI::State<Enemy>
{
void Enter(Enemy& agent) override;
void Update(Enemy& agent, float deltaTime) override;
void Exit(Enemy& agent) override;
}; |
0e4409d4bf4728e58caf71afb150d15c7699cd32 | 57733ee151cb0ecdedeebdcdd9c1fc3a1cb4076d | /Desidia Engine/src/engine/scene/Scene.cpp | cb00ef84dd76a47d207ef1e4ac2bbfecaeef37b4 | [] | no_license | iwoplaza/Desidia-Engine | 92552b7086d245a593ae2912231ef67450e80a0b | c3d345c7a901c721c046b481300d86c4111021a6 | refs/heads/master | 2021-01-19T19:40:18.513116 | 2017-12-27T17:39:22 | 2017-12-27T17:39:22 | 101,200,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,750 | cpp | Scene.cpp | #include "Scene.hpp"
#include "../gameobject/GameObject.hpp"
#include "../lighting/LightSource.hpp"
#include "../rendering/shader/ShaderManager.hpp"
#include "../rendering/shader/Shader.hpp"
#include "../rendering/GLHelper.hpp"
#include <iostream>
#include <sstream>
#include <glm/gtc/matrix_transform.hpp>
Scene* Scen... |
d3246d686e5da51526d83a72a46422aacb7471c5 | 89a6ada08a209a6da4f040e66c256f57b1cf4d34 | /itmo/2018/region2009_1/D.cpp | e230e881b3745f88089b98eb442b92149e1d5660 | [] | no_license | khbminus/Code | dc8fd7336281aa57fd332cff7a05eb9611471c3b | a03065e270c578a0bc61764d4f5eaa630f2ec6ed | refs/heads/master | 2022-03-04T02:49:22.118934 | 2019-07-17T05:59:51 | 2019-07-17T05:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,546 | cpp | D.cpp | #include <iostream>
#include <vector>
#include <cstdlib>
#include <cstdio>
#include <map>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <random>
#include <algorithm>
#include <cmath>
#include <cstring>
#include <ctime>
#include <climits>
#include <string>
#include <cassert>
using namespace ... |
7342f9590417594cce65c15b97cf16358ff43e0e | a37626167f68b6608753f924001a48f3ab395d6e | /deitel/ch3/ch3_exercise_9_Account.h | 7a04876beab6e4ad2198722c96ae435c305c5fdf | [] | no_license | mxd369/cpp | 020ae3e3d90df559369ac8ce54384db355fd6324 | eb88e92f16b8e54d5265099e1c6716077b592b7f | refs/heads/master | 2021-01-11T22:29:46.771673 | 2017-03-18T07:18:46 | 2017-03-18T07:18:46 | 78,972,533 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,270 | h | ch3_exercise_9_Account.h | /*
3.9
(Modified Account Class) Modify class Account (Fig. 3.8) to provide member function called withdraw that withdraws money from an Account. Ensure that the withdrawal amount does not exceed the Account's balance. If it does, the balance should be left unchanged and the member function should display a message indi... |
3092c702cf89b49a96857a388d013d66553a3e25 | 40a0b8cea8e891b3827826223b816de55baf967a | /RansomNote.cpp | 70549fd54e06e0d96744c4e85db4716bd24b1861 | [] | no_license | petercrackthecode/HackerrankPractice | 64b3236674e798e3d7c2f9ae2a6d3d90ad957162 | 5503b4e7be5af6820732d12964d5874ade88778a | refs/heads/master | 2020-12-27T08:51:33.223889 | 2020-05-06T21:16:27 | 2020-05-06T21:16:27 | 237,840,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 863 | cpp | RansomNote.cpp | // link: https://www.hackerrank.com/challenges/ctci-ransom-note/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=dictionaries-hashmaps
void checkMagazine(vector<string> magazine, vector<string> note) {
std::map<std::string, int> hashTable;
// insertion
for (std... |
8253ce11c6cde35be8d65ce82982a6d8964c0ef3 | 6ab9a3229719f457e4883f8b9c5f1d4c7b349362 | /euler/e357.cpp | e8754d47722d9dd01ee794b8275b287b6a77005a | [] | no_license | ajmarin/coding | 77c91ee760b3af34db7c45c64f90b23f6f5def16 | 8af901372ade9d3d913f69b1532df36fc9461603 | refs/heads/master | 2022-01-26T09:54:38.068385 | 2022-01-09T11:26:30 | 2022-01-09T11:26:30 | 2,166,262 | 33 | 15 | null | null | null | null | UTF-8 | C++ | false | false | 659 | cpp | e357.cpp | #include <cstdio>
#include <ctime>
const int MAXP = 100000005, ROOT = 10005;
bool prime[MAXP];
int main(void){
long long ans = 1;
clock_t start = clock();
for(int i = 0; i < MAXP; ++i) prime[i] = i & 1;
prime[1] = false;
prime[2] = true;
for(int i = 3; i < ROOT; i += 2) if(prime[i])
for(int j = i * i, k = i <... |
becf2d01ab0c10a4dd1f718c4eff7d5a6f0988ad | 17a48e76af8bd3741c7544e4773fa5beba978e1d | /src/bysetposcounter.cpp | dca2740037630b25d07b1b59ab5e595641def9d5 | [
"MIT"
] | permissive | sourcesimian/uICAL | 2577689328c9f5d50906053cdd6392648671ea9b | e7e5ad61dd8ebc1d4706c200d07d48b7437aaa0e | refs/heads/master | 2022-01-28T05:38:25.354812 | 2022-01-21T09:53:01 | 2022-01-21T09:53:01 | 219,053,932 | 13 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,638 | cpp | bysetposcounter.cpp | /*############################################################################
# Copyright (c) 2020 Source Simian : https://github.com/sourcesimian/uICAL #
############################################################################*/
#include "uICAL/cppstl.h"
#include "uICAL/types.h"
#include "uICAL/error.h"
#includ... |
c67cc120069b4f8b5262c57c15dedc17d645813f | d48bea7a2473809800c09f46686f4417bb5f9fe9 | /coding_interviews/48_longest_substring.cpp | 5088fded109ba60c214c576f77a15892b04477ba | [] | no_license | imLogM/code_practice | 9200e2c518b44c038e0d45674abd55ee41536adb | 485068939b76d2259b62f077ad33f7e41347dc3c | refs/heads/master | 2021-06-19T18:16:51.387441 | 2021-01-26T15:47:05 | 2021-01-26T15:47:05 | 174,918,306 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | cpp | 48_longest_substring.cpp | #include <iostream>
#include <string>
int longestSubstring(const std::string& str) {
if (str.length()<=0) { return 0; }
int position[26];
for (int i=0; i<26; ++i) {
position[i] = -1;
}
int* longest = new int[str.length()];
for (int i=0; i<str.length(); ++i) {
if (position[str... |
64c45fa3ed23a4959613016a52700c5451379c74 | 9d364070c646239b2efad7abbab58f4ad602ef7b | /platform/external/chromium_org/content/renderer/browser_plugin/browser_plugin_manager.h | 7d7a20de5c31ed9779c1d7f87e0853355abcf856 | [
"BSD-3-Clause"
] | permissive | denix123/a32_ul | 4ffe304b13c1266b6c7409d790979eb8e3b0379c | b2fd25640704f37d5248da9cc147ed267d4771c2 | refs/heads/master | 2021-01-17T20:21:17.196296 | 2016-08-16T04:30:53 | 2016-08-16T04:30:53 | 65,786,970 | 0 | 2 | null | 2020-03-06T22:00:52 | 2016-08-16T04:15:54 | null | UTF-8 | C++ | false | false | 2,257 | h | browser_plugin_manager.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 CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_
#define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_
#include "base/id... |
6245931e5f4957a6e889988ee7a6d983df351f00 | 461530fafbeb079f6e5cca56eeaada0bdc07c6cb | /acwing/0776.cpp | 6a770b3a7070c66da4c218dd9fd70b53a43c7fe6 | [
"Apache-2.0"
] | permissive | Richard-coder-Nai/OJ | f9b9db5714fbd7249b9b23095be25a8cd52f8d1c | 55221a55515231182b6bd133edbdb55501a565fc | refs/heads/master | 2022-10-23T21:40:50.999709 | 2020-06-07T12:13:00 | 2020-06-07T12:13:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | cpp | 0776.cpp | #include<iostream>
#include<string>
using namespace std;
string str1, str2;
int main(void){
cin>>str1>>str2;
if(str1.size()<str2.size()) swap(str2, str1);
str1 = str1+str1;
int pos = str1.find(str2);
if(pos!=str2.npos) cout<<"true"<<endl;
else cout<<"false"<<endl;
}
|
eab593d512aff2f30870a873dd7e576ef96b050e | 01359a2cc3598eba3b4339105831e706ef305a83 | /tests/ConfigTest.cpp | 4f209eb611c98d31a674af451ae4eb245ffdf5d5 | [
"BSD-3-Clause"
] | permissive | szekipepe/gsys-dsv | 6e1cac9703145f546d381b59b15da1c4f211e57a | c00de28168657d27efa88807beeb4d049bd53fe0 | refs/heads/master | 2020-06-19T21:31:01.911722 | 2019-07-17T21:45:45 | 2019-07-17T21:45:45 | 196,881,516 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,067 | cpp | ConfigTest.cpp | #include <functional>
#include <type_traits>
#include <gtest/gtest.h>
#include <GSys/DSV/Config.h>
using namespace GSys::DSV;
TEST(ConfigContructor, Default)
{
EXPECT_TRUE(std::is_default_constructible<Config>::value);
}
TEST(ConfigContructor, CopyNoThrow)
{
EXPECT_TRUE(std::is_nothrow_copy_constructible<C... |
0a0a64cc913d86bf1ab25c639a06c4cbf818f96d | de80268cf13a3acae311984d49c26ba34ac3e571 | /Sources/Include/UICore/UI/View/view_event_handler.h | 154773f94e362d59152d27430858a823d2ad7f48 | [
"Zlib"
] | permissive | rombust/UICore | f5930fa133d13101b3e9ea5ae68d37d59c30f795 | e643b83147b7818eb5d34d311676fde6ddf54abe | refs/heads/master | 2021-01-24T01:22:16.232890 | 2019-05-29T11:52:22 | 2019-05-29T11:52:22 | 44,157,623 | 1 | 0 | null | 2015-10-13T06:51:27 | 2015-10-13T06:51:27 | null | UTF-8 | C++ | false | false | 2,645 | h | view_event_handler.h | /*
** UICore
** Copyright (c) 1997-2015 The UICore Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for any pur... |
2f196a08a151a55dda9099dcd1106ee625d3a9a9 | 26e0a6d1f54903c993ee5244658a9ad3389a2c11 | /PHOENIXEngine/PHOENIX/PX2Engine/Voxel/PX2VoxelBlock.hpp | 3207e9f093433ec71eb07b3e62e9fa9c548822aa | [] | no_license | ycwang812/SLAMCar | a8a3ba0ca301d67a171859909be46b7a4b846227 | af3e5a79b37f31e0ba83ea0eb6ea0d6dfc7aec77 | refs/heads/master | 2021-07-09T12:18:52.253121 | 2020-04-15T09:00:53 | 2020-04-15T09:00:53 | 240,099,985 | 0 | 1 | null | 2021-04-08T08:19:02 | 2020-02-12T19:43:23 | C++ | UTF-8 | C++ | false | false | 739 | hpp | PX2VoxelBlock.hpp | // PX2VoxelBlock.hpp
#ifndef PX2VOXELBLOCK_HPP
#define PX2VOXELBLOCK_HPP
#include "PX2VoxelPre.hpp"
#include "PX2APoint.hpp"
#include "PX2Float2.hpp"
#include "PX2Float4.hpp"
#include "PX2SmartPointer.hpp"
#include "PX2VertexBufferAccessor.hpp"
#include "PX2IndexBuffer.hpp"
namespace PX2
{
class PX2_ENGINE_ITEM Vo... |
80ac94d3a7b1a36331265ddf91fb5dde7aefbfea | 1546843d3cf2ede73425676fbad128fd31cef9a6 | /src/RoboDeckMoving.hh | cd7c282ab6c7a37ab0c757ca3e50549d2e6f5e30 | [
"MIT"
] | permissive | pissardini/api_robodeck | b056d8406835554f627dd8ad370384d95b660726 | ee1ca8da5f2160ff55bf6756db47b1cb9c51df5c | refs/heads/master | 2023-02-01T14:25:23.218523 | 2020-12-09T14:06:24 | 2020-12-09T14:06:24 | 294,423,551 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | hh | RoboDeckMoving.hh | /*
* Copyright 2012 - Guilherme Orlandini
* Author: Guilherme Orlandini (guilherme_orlandini AT bol DOT com DOT br)
* Header class Robodeck Moving
* Date: 03/02/2012 (dd/mm/yyyy)
*
* Updates:
* Author: R.S. Pissardini
* Date: 04/05/2014 (dd/mm/yyyy)
* Obs: -Corrections
* -Optimization and standardization... |
887ec2a5a13e8086e69f990ea555e51921aa6352 | 375328fd0e944a5eb66cf0acddf69c4ae87f0222 | /main.cpp | 85e36abd4daafd0173239ac9a1f979800d499261 | [] | no_license | loveEnlin/sort-exam | b79de05ed9dc32649c889f4c434e884fa69ee390 | 80d9a0192a6dea185d026ada8a7c8d31066090da | refs/heads/master | 2020-04-23T20:17:19.899848 | 2019-02-21T08:49:40 | 2019-02-21T08:49:40 | 171,434,600 | 1 | 0 | null | 2019-02-19T08:23:09 | 2019-02-19T08:23:09 | null | UTF-8 | C++ | false | false | 2,238 | cpp | main.cpp | #include "main.hpp"
class SortingMethod{
public:
void (*func)(std::vector<Element> v);
std::string name;
std::string author;
std::string description;
};
class Element{
public:
bool operator<=(const Element& another);
bool operator<(const Element& another);
bool operator>=(const Element& an... |
f13546600da83729953a8d167b80613f5b7fbbb2 | 4ad2ec9e00f59c0e47d0de95110775a8a987cec2 | /_Concursuri/OJI 2014 clasa a VIII-a/_Surse/BR_lic/BR_9_lic/BR_9_009/BR_9_0091.cpp | 9766b5f5c4fc5ce5bb08617d749a25109699b418 | [] | no_license | atatomir/work | 2f13cfd328e00275672e077bba1e84328fccf42f | e8444d2e48325476cfbf0d4cfe5a5aa1efbedce9 | refs/heads/master | 2021-01-23T10:03:44.821372 | 2021-01-17T18:07:15 | 2021-01-17T18:07:15 | 33,084,680 | 2 | 1 | null | 2015-08-02T20:16:02 | 2015-03-29T18:54:24 | C++ | UTF-8 | C++ | false | false | 2,102 | cpp | BR_9_0091.cpp | #include <iostream>
#include <fstream>
using namespace std;
int n,i,bb,k,p,verificare[1001],f,r,i1=1,i2=1,curent,maxim=1,l,sir[5001];
ifstream intrare("cool.in");
ofstream iesire("cool.out");
bool adevar=true;
void elementedistincte()
{
if (sir[1]!=sir[2]){r+=1;}
if (sir[k]!=sir[k-1]){r+=1;}
... |
9e166704cb1468b04b5155c702828356ba09591c | 6c7cc3e79bdb43359d0b2ab632f6404338da1369 | /lircpp.cpp | 431e8bba79e3484f399c42e115da93949dde6ae2 | [] | no_license | HomerSp/cec-forwarder | 268f5408d1bf6ea1b45c407303bd6f3dcd0357de | 9f00405fe259e6423cd6d65b3f0f7d0eaef332c4 | refs/heads/master | 2021-07-21T10:13:48.683624 | 2020-05-14T09:13:51 | 2020-05-14T09:13:51 | 149,772,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,899 | cpp | lircpp.cpp | #include <iostream>
#include <fstream>
#include <bitset>
#include <cmath>
#include <cerrno>
#include <fcntl.h>
#include <unistd.h>
#include <poll.h>
#include <sys/ioctl.h>
#include <linux/lirc.h>
#include "config.h"
#include "lircpp.h"
LircPP::LircPP(const std::string& keyspath)
: mVerbose(false)
{
HueConfig... |
dfda548f215c4b8787708f4356959f606804c36d | 63a7ef9bbae1b3d68afb842451b838d4279a4e31 | /AI/AI.h | 127b964326cb7f1d1c2bc5dbc9f176edb0a69345 | [] | no_license | LimGuanHui/SP3-part-3 | 61735a891baf1fa1240d4302fca0edfe95f7e6e1 | 29b74529c23630cfd3582f1bda57967f3b572248 | refs/heads/master | 2021-06-02T13:31:03.598095 | 2016-09-03T08:30:52 | 2016-09-03T08:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249 | h | AI.h | #pragma once
#include "AIExports.h"
#include "Boss.h"
#include "Monster.h"
namespace AI
{
class AI_API ArtInt
{
public:
ArtInt();
~ArtInt();
BOSS::Boss *Boss;
MONSTER::Monster *Monster;
private:
};
AI_API ArtInt* N_AI();
}
|
6d9c26e4e112c7c5b856d13135e1ace49dab0005 | 8fa3227c98426a75b97b66798c4dd1376dd989b8 | /pointers/p2p.cpp | c570442fdbf93d7ecb351e9454a90126e45b2b12 | [] | no_license | ABX9801/Data-Structures | 926c919aa152a6c70337799550b1d0ace461d34f | b5d9002dfa90e55cd318c66817becf3f56608409 | refs/heads/main | 2023-04-23T03:29:23.854659 | 2021-05-10T04:36:08 | 2021-05-10T04:36:08 | 317,292,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 656 | cpp | p2p.cpp | #include<iostream>
using namespace std;
int main(void){
// computer give me an integer
int a = 5;
// computer give me an integer pointer that points to a
int* p = &a;
//computer give me a pointer that points to an integer pointer;
int** q;// make it point to p
q = &p;
cout<<a<<en... |
5dbdefc14f975ea7cd591407820cbb903688889b | 033a7cf4abd4780055ae3d4f1d9ea7eec1747b6a | /source/memory/page_entry.h | 1a8f3981f17b7c88a7677492b4a27698b88e6ec3 | [] | no_license | killvxk/VirtualCPU | 84cfca08dd8d76f0b7bfeb0e97156725ce9a27c2 | fcde7df2c7d44b74ef79265264752d8a6ee73e70 | refs/heads/master | 2023-07-01T11:58:29.181617 | 2021-08-06T09:45:47 | 2021-08-06T09:45:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,137 | h | page_entry.h | //
// Created by swift on 2021/6/30.
//
#pragma once
#include <include/types.h>
namespace Svm::Memory {
constexpr auto page_entry_attr_bits = 3;
constexpr auto readable_bit = 0;
constexpr auto writable_bit = 1;
constexpr auto executable_bit = 2;
union PageEntry {
enum Attr : u8 {
... |
9a2a00f9f7a3d2dbc49e7a5d408475ca3aa85c4f | 01398729b284cdc97fc01403d67c05292a7d5bc4 | /testProject/Collider.h | 16e1471ae0c6e3f863780c815f1e9f91023e6498 | [] | no_license | Kingikk10/Mathlib-and-engine | 721a6d909cb337a30cc23ad27c15885e9b657d5c | 14dacf0fcffc3b6c7d547c1f1daf3298e3a0d9dc | refs/heads/master | 2016-08-12T19:13:58.659806 | 2016-03-30T23:17:41 | 2016-03-30T23:17:41 | 54,904,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | h | Collider.h | #pragma once
#include "collisions.h"
#include "transform.h"
#include "GCData.h"
class Collider : public GCData<Collider>
{
public:
enum SHAPE { e_CIRCLE = 1, e_AABB = 2, e_RAY = 4, e_PLANE = 8 } shape;
union
{
Circle circle;
AABB aabb;
Ray ray;
Plane plane;
};
Collider();
};
class Transform;
Col... |
73fdc991933dab5bb430a6e69f78fba3c7f757ba | 0bd5652e7780de7268bee097e4ad58532744104b | /HDU_ACM/2050/main.cpp | 97a43a870d6596c24fb14c24638eaf7fffe93912 | [] | no_license | nopower0/ACM | f7c967eff9ae144b658a4970bd09f8e2e967b0a2 | fa3d9a21086b72df04379a0921edb1dfc9a17a9b | refs/heads/master | 2016-08-03T02:41:21.328823 | 2012-12-31T14:54:06 | 2012-12-31T14:54:06 | 7,224,206 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 395 | cpp | main.cpp | /*
* File: main.cpp
* Author: nopower0
*
* Created on 2012年3月21日, 下午1:17
*/
#include <iostream>
using namespace std;
int f(int n)
{
if (n==1)
return 2;
else
{
int* a=new int[n+1];
a[1]=2;
for (int i=2; i<=n; i++)
a[i]=a[i-1]+4*i-3;
return a[n];
}
}
int main()
{
int n;
cin >> n;
while (n--... |
55f07ba0da6e0ee896626b516af3f506c784bafa | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/rtorrent/gumtree/rtorrent_new_log_157.cpp | 3c0dea9632f3434ce3a4d5b5116459bf1f28f8c1 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 103 | cpp | rtorrent_new_log_157.cpp | m_canvas->print(0, y++, "Priority: %u", torrent::download_priority(m_download->get_download())); |
71ac2fc3764dbcd7108e77949689cbb265e48ae8 | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /PhysicsAnalysis/Algorithms/FTagAnalysisAlgorithms/src/components/FTagAnalysisAlgorithms_entries.cxx | 05df68d48072e4f484febf42f5d33811d2051381 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 294 | cxx | FTagAnalysisAlgorithms_entries.cxx | // AsgExampleTools_entries.cxx
#include <GaudiKernel/DeclareFactoryEntries.h>
#include <FTagAnalysisAlgorithms/BTaggingEfficiencyAlg.h>
DECLARE_ALGORITHM_FACTORY (CP::BTaggingEfficiencyAlg)
DECLARE_FACTORY_ENTRIES(FTagAnalysisAlgorithms) {
DECLARE_ALGORITHM (CP::BTaggingEfficiencyAlg)
}
|
cd38cc60d42cd353c4b2b1abfcc56c316cbac97d | fad55ad28eca71bc08081c68cb13a3639961173d | /virtual_class_proxy/virtual_class_proxy/src/student_read_connect.hpp | 7b76913e1af26d815411cd5c48975fa6f78146fe | [] | no_license | rchatsiri/techniquecpp | d8e6f2b4f2119b1810f8a42bd10efb0df1a59dc4 | 6899954190fbfdd2e59916c007b3f650f5e7baa3 | refs/heads/master | 2020-05-16T23:05:01.443732 | 2013-08-21T03:46:27 | 2013-08-21T03:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 601 | hpp | student_read_connect.hpp | #ifndef STUDENT_READ_CONNECT_HPP
#define STUDENT_READ_CONNECT_HPP
#include "connect_util.hpp"
#include "shared_util.hpp"
class student_read_connect : public connect_util
{
public:
student_read_connect()
{
data = "Student_read_conect";
_data_str.data_vec.push_back(data);
}
data_struct & get_data()
{
r... |
35a1acbc3ebbf3a2c6ad254d179d88b1598a5b91 | 48298469e7d828ab1aa54a419701c23afeeadce1 | /Client/SceneEdit/Xerces/tests/UtilTests/CoreTests_Transcoders.cpp | 2e0f45fe7ba1ba67ebcde13318a5f3f3839e0fa5 | [
"Apache-2.0"
] | permissive | brock7/TianLong | c39fccb3fd2aa0ad42c9c4183d67a843ab2ce9c2 | 8142f9ccb118e76a5cd0a8b168bcf25e58e0be8b | refs/heads/master | 2021-01-10T14:19:19.850859 | 2016-02-20T13:58:55 | 2016-02-20T13:58:55 | 52,155,393 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,030 | cpp | CoreTests_Transcoders.cpp | /*
* Copyright 1999-2000,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
25721ce2c07af2549091154c03d0243a0773d18d | 67f5a829bf0fe695059d62ae46ce7804ba88d1a6 | /include/lispy.h | 93c7b38e7739abf6f22d8119b05abfa740f9f282 | [] | no_license | JYLeeLYJ/your-little-schemer | e89ca541f6f96a5407bfd90210b453fd32c2bbd6 | 91328ace2858f49ee056c761010e3a19ffb049a6 | refs/heads/master | 2023-03-05T07:40:55.619286 | 2021-02-17T14:30:12 | 2021-02-17T14:30:12 | 335,876,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | h | lispy.h | #pragma once
#include <exception>
namespace lispy{
using exception_base = std::logic_error;
struct parse_error : exception_base{
using exception_base::exception_base;
};
struct bad_syntax : exception_base {
using exception_base::exception_base;
};
struct type_error : exception_base{
using exception_ba... |
d39668414d3a8554a7dcc4df6bed563da994e967 | b8055e5ba25d7651148ced296a5dbcc147791179 | /leetcode/hard/Linked_List/3_Copy_List_with_Random_Pointer/Solution_O1.cpp | 137c09fcb5908e33404099c2f2e4fe07f8c87746 | [] | no_license | sahn93/problem-solving | 9dd7638f214a572ee0839d078ef2cf62f637f139 | 5f65b26c9b19cfd008c16420122658a5a9ae18b2 | refs/heads/master | 2021-09-23T20:59:09.724484 | 2018-05-28T15:48:09 | 2018-05-28T15:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,415 | cpp | Solution_O1.cpp | /**
* Definition for singly-linked list with a random pointer.
* struct RandomListNode {
* int label;
* RandomListNode *next, *random;
* RandomListNode(int x) : label(x), next(NULL), random(NULL) {}
* };
*/
class Solution {
public:
RandomListNode *copyRandomList(RandomListNode *head) {
//... |
714ae90da0db0c44fd80df2a1f671302f39925d7 | 09252133f379c981f69f20415cab7650d9ec537f | /Source/mainwindow.cpp | 8c6ddf13b6fbcd1f7f6fa4618b30794e876feeaf | [] | no_license | yahyatawil/NeuralNetworkSim | 9fcc4841c81249931990fd166f9310257d3d5d1a | 5369aa4221e4f76052480ad788252b246e514e53 | refs/heads/master | 2023-01-24T01:06:58.001039 | 2020-11-15T02:56:30 | 2020-11-15T02:56:30 | 309,020,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,570 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QPainter>
#include <QTimer>
#include <QDebug>
#include "weights_input.h"
#include <math.h>
double MainWindow::sigmoid(double number)
{
return (1/(1+exp(-1*number)));
}
void MainWindow::output_calculation()
{
//Z11 = W11X1+W12X2 ... + Wn1Xn + b11
//Z21 =... |
4b596869e30db430669aeaa2f32f7acebc9868fd | 1e419d6781fc409ca3669b28ddb21e0c08f1b3be | /src/average.h | 824d28791f0799fc2074e5b541693f31358d944e | [] | no_license | mhazley/rims-monitor | 6c52053e0662c301dcea807b5ca4819adc2d8379 | eef925e1fe70a5b66d75341dffdee3d5d92a64fc | refs/heads/master | 2020-04-15T02:51:45.767350 | 2019-01-06T18:07:58 | 2019-01-06T18:07:58 | 82,714,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | h | average.h | #ifndef AVERAGE_H
#define AVERAGE_H
#define AVERAGE_SIZE ( 50 )
class Average
{
private:
double values[AVERAGE_SIZE] = { 0 };
double average = 0;
int curIndex = 0;
void calculateAverage();
public:
double getAverage();
void addValue( double v... |
f74427694f9e8078e35ac75f14e913b74a4c312d | c23ee91a556db827f790e0a40829f61e82de6b2b | /Valentin/Heart.cpp | f2b22fbe9cf1062385d6d1ced115cbfc209d4619 | [] | no_license | newincpp/kaboom | 9fa782651de3cea20c9d8e6e664d9fff08016691 | 32b930b7f0e33a7bc3deb138ade1d390ca1ea01d | refs/heads/master | 2020-05-19T21:57:02.459650 | 2013-06-09T18:54:05 | 2013-06-09T18:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 296 | cpp | Heart.cpp | #include "Heart.hpp"
Heart::Heart()
{
range = 0;
bombe = 0;
push = 0;
speed = 0;
life = 1;
}
Heart::~Heart()
{
}
type Heart::getType() const
{
type tmp;
tmp = heart;
return (tmp);
}
int Heart::getLife() const
{
return (life);
}
void Heart::setLife(int i)
{
life = i;
}
|
6af035b804159d6a03f92c3ead504427ef754fe1 | 37dadfb209d5d3e868f88b5eb844483e1e085ce3 | /task.cpp | 4b1b855dfa20da38e1ef61a37b67e44aea29d56d | [] | no_license | Asmit-Bajaj/multithreading | 5135d50f073d123f106951ec38c7a7c47e1d7801 | cbcd2988fbec438d5ea3c33f4e87dc25627193f2 | refs/heads/main | 2023-01-30T06:00:16.782264 | 2020-12-16T05:20:55 | 2020-12-16T05:20:55 | 321,866,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,474 | cpp | task.cpp | #include<bits/stdc++.h>
#include<fstream>
#include<dirent.h>
#include<sys/types.h>
#include<string>
#include<future>
using namespace std;
struct my_file{
string name;
vector<string>content;
pair<int,pair<int,int> > length;
int similarWords;
};
vector<struct my_file*>files;
//read the con... |
5795b96d23125d07985cd35019529bf3e281ddf5 | 621c7c9c5bc587d33d96cb94957c5b24ccc96911 | /Class_DSA/BST.cpp | e2520c8aa77f52e880516134d8dda12a5efbc8f6 | [] | no_license | Ayush152/DSA | 7fea4c732b11bea5e9cd2aaa93fba20adaec3e5b | a99b92bce614a30e17096e685d1e3b5d087f824b | refs/heads/master | 2023-07-06T05:59:56.738799 | 2021-08-10T04:39:55 | 2021-08-10T04:39:55 | 364,589,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,674 | cpp | BST.cpp | #include<bits/stdc++.h>
#define vi vector<int>
#define pii pair<int,int>
#define vii vector<pii>
#define rep(i,a,b) for(int i=a ; i<b ; i++)
#define ff first
#define ss second
#define int long long
using namespace std;
const int N = 1e5+2, MOD = 1e9+7;
struct node{
int data;
struct node* left;
struct node* ... |
bef04c164ee90227c5a7e077ea70389a256b20b5 | 99ec4668f71832ca7f9382ef8b6e8d4c82247785 | /test/MyString.cpp | 899083a05c180afc39210c2995b7e90afa23dcae | [] | no_license | xueyida/CPPTest | c3b21874c8452cfc66731005f24aaad9afb76a21 | 69af98d28eae87007058b1d682cf80e8d4039fdf | refs/heads/main | 2023-04-02T15:03:11.087368 | 2021-03-27T14:47:16 | 2021-03-27T14:47:16 | 321,602,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | cpp | MyString.cpp | #include "myString.h"
CMyString::CMyString()
{
m_pBuff = nullptr;
m_nBuffSize = 0;
m_nStringLen = 0;
}
CMyString::CMyString(const char* str)
{
m_nStringLen = strlen(str);
m
}
CMyString::~CMyString()
{
}
size_t CMyString::GetLen()
{
return size_t();
}
const char* CMyString::GetStr()
{
return nullptr;
}
|
89a6ee326be8a4189ffe685e40bbcd01c9eeff64 | 0a2357ad0098bbb7b74528cb01d6decaab928ed8 | /aoj/1056.cpp | 0c1ddf4cf1c0c247950ce22d572d9dbcc0894a53 | [] | no_license | touyou/CompetitiveProgramming | 12af9e18f4fe9ce9f08f0a0f2750bcb5d1fc9ce7 | 419f310ccb0f24ff08d3599e5147e5a614071926 | refs/heads/master | 2021-06-18T09:19:01.767323 | 2020-07-16T03:40:08 | 2020-07-16T03:40:08 | 90,118,147 | 0 | 0 | null | 2020-10-13T04:32:19 | 2017-05-03T06:57:58 | C++ | UTF-8 | C++ | false | false | 429 | cpp | 1056.cpp | #include <cstdio>
#include <cstring>
int n;
double dp[100000][2];
int main() {
memset(dp, 0, sizeof(dp));
dp[0][1]=1.0;
for (int i=1; i<100000; i++) {
dp[i][1]=dp[i-1][1]*0.5+dp[i-1][0];
dp[i][0]=dp[i-1][1]*0.5;
}
while (scanf("%d",&n)) {
if (!n) break;
double res=0.0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.