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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e272bc101066745e744e65a5b511de089b188806 | 2743ed11026e2fba43799799b04d0df55af30365 | /abscommon/abscommon/IpList.h | 5fc48638ebaf0fa3d6ea5f887c5680ee6bcaa50f | [] | no_license | lineCode/ABx | bb792946429bf60fee38da609b0c36c89ec34990 | b726a2ada8815e8d4c8a838f823ffd3ab2e2b81b | refs/heads/master | 2022-01-22T06:13:49.170390 | 2019-07-19T20:03:31 | 2019-07-19T20:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | h | #pragma once
#include <set>
namespace Net {
class IpList
{
private:
std::set<uint32_t> ips_;
public:
IpList() = default;
~IpList() = default;
void Add(uint32_t ip);
void Add(const std::string& ip);
void AddList(const std::string& ips);
bool Contains(uint32_t value) const;
bool IsEmpt... | [
"sa@0x2a.wtf"
] | sa@0x2a.wtf |
32456365e72a2b5044db68e6df14f154b5e9f3a9 | 70441dcb7a8917a5574dd74c5afdeeaed3672a7a | /AtCoder Beginner Contest 041/A - 添字/main.cpp | 987a0b9ad9b32eb083156b5f0ba23be340c2c796 | [] | no_license | tmyksj/atcoder | f12ecf6255b668792d83621369194195f06c10f6 | 419165e85d8a9a0614e5544232da371d8a2f2f85 | refs/heads/master | 2023-03-05T12:14:14.945257 | 2023-02-26T10:10:20 | 2023-02-26T10:10:20 | 195,034,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 150 | cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
int i;
cin >> s >> i;
cout << s[i - 1] << endl;
}
| [
"33417830+tmyksj@users.noreply.github.com"
] | 33417830+tmyksj@users.noreply.github.com |
5dbc52e58a8e55f5b5eb063a128a7e7d695a4c03 | bb7755c327c59c86a69ecf54d182f3e2d8f50d43 | /Plugins/Wwise/ThirdParty/include/AK/Wwise/PlatformID.h | ab75f73904a3fa30f1ee625137d936a04451d069 | [] | no_license | Cime-Art-Project2/ProjectDA2 | 41f90abe71d1587deb2607d01e4b51c67bf405d7 | 76ebd80c6ace359552eaf08f0e0680284894a2f9 | refs/heads/master | 2021-02-10T03:24:33.368064 | 2020-09-02T13:19:06 | 2020-09-02T13:19:06 | 244,346,582 | 0 | 3 | null | 2020-05-29T07:01:12 | 2020-03-02T10:48:37 | C++ | UTF-8 | C++ | false | false | 7,385 | h | /*******************************************************************************
The content of this file includes portions of the AUDIOKINETIC Wwise Technology
released in source code form as part of the SDK installer package.
Commercial License Usage
Licensees holding valid commercial licenses to the AUDIOKINETIC W... | [
"60353476+Bensounddesigner@users.noreply.github.com"
] | 60353476+Bensounddesigner@users.noreply.github.com |
f8a7b9893cec8565b5f13532fd3457c764374874 | 89e7aca73b8df952e543322d47cf46163f37533d | /SPOJ/Classic/EGYPIZZA.cpp | 36ae6003b99b12b84146a1776b32a7818d674fde | [
"Unlicense"
] | permissive | nsudhanva/competetive | ec19c0b34a727e2fbeb8e8eb948b32cd74c1fdbe | d9e93fdeefaa4e422a2101db41a7ab0a5676e9da | refs/heads/master | 2020-03-26T03:12:59.048713 | 2018-08-10T12:56:31 | 2018-08-10T12:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n, i = 0,ans = 0;
int a1 = 0,a2 = 0,a3 = 0;
int n1, n2;
char op;
cin >> n;
for(i = 0; i < n; i++)
{
cin >> n1 >> op >> n2;
if(n1 == 3)
a3++;
else if(n2 == 2)
a2++;
else ... | [
"nsudhanva@gmail.com"
] | nsudhanva@gmail.com |
5105f3fe6a37d8487c39c5051ca46e1da122ac5a | e05ee73f59fa33c462743b30cbc5d35263383e89 | /magmablas/ctrsm_vbatched.cpp | 0b791094e1794b4e9872c5ec903dc82b849b8e6c | [] | no_license | bhrnjica/magma | 33c9e8a89f9bc2352f70867a48ec2dab7f94a984 | 88c8ca1a668055859a1cb9a31a204b702b688df5 | refs/heads/master | 2021-10-09T18:49:50.396412 | 2019-01-02T13:51:33 | 2019-01-02T13:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,602 | cpp | /*
-- MAGMA (version 2.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date June 2018
@generated from magmablas/ztrsm_vbatched.cpp, normal z -> c, Mon Jun 25 18:24:16 2018
@author Ahmad Abdelfattah
*/
#include "cublas... | [
"sinkingsugar@gmail.com"
] | sinkingsugar@gmail.com |
f5ae14b78675dc0f31a9846ab1539769739d4d1e | 0c7e20a002108d636517b2f0cde6de9019fdf8c4 | /Sources/Elastos/External/conscrypt/inc/org/conscrypt/COpenSSLSocketImpl.h | b1973ac213cade62287fa8b571df69e34a6a9530 | [
"Apache-2.0"
] | permissive | kernal88/Elastos5 | 022774d8c42aea597e6f8ee14e80e8e31758f950 | 871044110de52fcccfbd6fd0d9c24feefeb6dea0 | refs/heads/master | 2021-01-12T15:23:52.242654 | 2016-10-24T08:20:15 | 2016-10-24T08:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | h |
#ifndef __ORG_CONSCRYPT_COPENSSLSOCKERIMPL_H__
#define __ORG_CONSCRYPT_COPENSSLSOCKERIMPL_H__
#include "_Org_Conscrypt_COpenSSLSocketImpl.h"
#include "OpenSSLSocketImpl.h"
namespace Org {
namespace Conscrypt {
CarClass(COpenSSLSocketImpl)
, public OpenSSLSocketImpl
{
public:
CAR_OBJECT_DECL()
};
} // names... | [
"zhang.yu@kortide.com"
] | zhang.yu@kortide.com |
45ebcab6a8bd94244405c5d2f98ec51b4927817b | ad715f9713dc5c6c570a5ac51a18b11932edf548 | /tensorflow/compiler/xla/service/hlo_input_output_alias_config_test.cc | 03ce83a0150f12cbb7c11acce34ba4b88b48b291 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | rockzhuang/tensorflow | f1f31bc8edfa402b748c500efb97473c001bac95 | cb40c060b36c6a75edfefbc4e5fc7ee720273e13 | refs/heads/master | 2022-11-08T20:41:36.735747 | 2022-10-21T01:45:52 | 2022-10-21T01:45:52 | 161,580,587 | 27 | 11 | Apache-2.0 | 2019-01-23T11:00:44 | 2018-12-13T03:47:28 | C++ | UTF-8 | C++ | false | false | 7,168 | cc | /* Copyright 2017 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 |
a3a73e100f1ec67e642b6b21008bcbac9dfa6a62 | cc8750204d2331fdbb264d90907ac1e5c3595cf7 | /ros_workspace/kinect/src/process_users.cpp | 5da57e1df28c86ac41a97ff5792cfa9a2e7b8ec5 | [] | no_license | TjlHope/Rutler | 254cc3763805f369ac3558dba8c7d6827d3aa3d5 | cc68a4d5e5be23de26e8e57a2a1cc5e1648c725a | refs/heads/master | 2020-04-16T01:23:08.735496 | 2011-12-16T17:36:37 | 2011-12-16T17:36:37 | 2,665,862 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,778 | cpp | /****************************************************************************
* process_users.cpp
****************************************************************************/
//---------------------------------------------------------------------------
// Includes
//--------------------------------------------------... | [
"tjlhope@gmail.com"
] | tjlhope@gmail.com |
82bd76989c3951e4a54dfde4d22ab55043543751 | b7ebf3bdb6a33c5774676d9540e9cd798ba3e7b7 | /Intra/IO.hh | 8dbdd0a12c246602593abdf60ee1ef526d4a80be | [
"MIT"
] | permissive | devoln/Intra | ed44cf91e2c9f88630be3545ad3cc6c595f2e73d | aed1647cd2cf1781ab0976c2809533d0f347e87e | refs/heads/master | 2023-03-05T11:23:52.092505 | 2020-02-25T19:36:01 | 2020-02-25T19:36:01 | 67,451,995 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | hh | #pragma once
#include "IO/FormattedWriter.h"
#include "IO/HtmlWriter.h"
#include "IO/ConsoleInput.h"
#include "IO/ConsoleOutput.h"
#include "IO/OsFile.h"
#include "IO/FileSystem.h"
#include "IO/FileMapping.h"
#include "IO/LogSystem.h"
#include "IO/FileReader.h"
#include "IO/FileWriter.h"
#include "IO/SocketReader.h"
#... | [
"vav-94@mail.ru"
] | vav-94@mail.ru |
6bc270f0cfcdda39a1827c55b84b74b3e522ca64 | 8d2462d664841bbfefbe10ee92e13b80523839e5 | /C++/No1010.cpp | c936e8f96c796c3bcf2545b9f1b9c3ba71ad169b | [] | no_license | ku-alps/sw15_hyunsoo | e68e0b81033f1adce15074da3523d6c53ecc37c1 | c8f2e2e062a5cc5c1b58f1b56406bb0af250b77e | refs/heads/master | 2021-11-20T05:28:31.092107 | 2021-10-06T07:48:39 | 2021-10-06T07:48:39 | 176,670,530 | 0 | 1 | null | null | null | null | UHC | C++ | false | false | 825 | cpp | #include<iostream>
using namespace std;
// 다리 놓기
// 다리가 겹치지 않도록 하는 것이 목표
// so, 재귀 호출 시, 자신의 앞에 존재하는 다리에만 연결
int arr[31][31];
int Pascal(int a, int b) {
if (arr[a][b])
return arr[a][b]; // 이미 왔었으면 종료
if (b == 0) // 마지막 다리에 연결된 경우
arr[a][b] = 1;
else if (a < b) // 연결할 수 있는 다리가 부족하면
arr[a][b] = 0;
else // 그 외... | [
"39401832+RessChild@users.noreply.github.com"
] | 39401832+RessChild@users.noreply.github.com |
01ffdba991eb8083c8e6d322f1c1ba251cc716f4 | cdb55dbdd700a3f456bc67775374dd2a5f99f049 | /AIEngine/src/path/navmesh/NavMeshGenerator.h | 74e7e5e1fa00b1c8bf8519be86f805dc13b23e9d | [
"MIT"
] | permissive | wangscript007/urchinEngine | 1bfd6fb9ae6ed30154d29b082856101b9a8ef202 | 88f5f70d319299e2df6c006cdeabd6bfb622437b | refs/heads/master | 2022-12-30T18:06:53.231268 | 2020-10-07T19:03:56 | 2020-10-07T19:03:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,600 | h | #ifndef URCHINENGINE_NAVMESHGENERATOR_H
#define URCHINENGINE_NAVMESHGENERATOR_H
#include <memory>
#include <vector>
#include <mutex>
#include <atomic>
#include <set>
#include "UrchinCommon.h"
#include "input/AIWorld.h"
#include "path/navmesh/model/NavObject.h"
#include "path/navmesh/model/output/NavMeshAgent.h"
#incl... | [
"petitg1987@gmail.com"
] | petitg1987@gmail.com |
fdc26d21aaafd88e17190c2b940cd05ee7c53995 | e70ee32fbe945b0933c2ed653409a756e6d8b826 | /94. Binary Tree Inorder Traversal iterative app.cpp | a9407228255dea68097b3ff336305fd8e5e51315 | [] | no_license | jvishad/leetcode-problems- | 39d114cb16410dc772f24a7e95ec6aa4b256c928 | 480b2abd0b239cf21fe3759ddab9c76a410e708a | refs/heads/master | 2023-08-24T10:02:02.764433 | 2021-10-17T10:35:34 | 2021-10-17T10:35:34 | 368,204,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | cpp | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | [
"noreply@github.com"
] | jvishad.noreply@github.com |
b7e2c8402a79e47fe8a5240c34189c40f1eb5a0b | 5379060f92d54200399f8a189e4d6b4d9b33dbba | /getMaxGenerated.cpp | 1974a074052176e054bd8663b14bad7d0d492afa | [] | no_license | Garker-gan/LEETCODE_SOURCE | 9e7f26971fdf29a0870b17c11bb7849c64c83ead | 45eff47081cfb764f78fcae7b1364e6e7c5edfe6 | refs/heads/main | 2023-02-12T14:32:52.663804 | 2021-01-15T15:46:36 | 2021-01-15T15:46:36 | 305,569,389 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 791 | cpp | /*
5561:获取生成数组中的最大值 模拟
Garker-gan
2020-11-08
*/
#include<iostream>
#include<queue>
#include<vector>
using namespace std;
class Solution {
public:
int getMaximumGenerated(int n) {
if(n == 0) return 0;
if(n == 1) return 1;
priority_queue<int>q;
int... | [
"348416127@qq.com"
] | 348416127@qq.com |
c33be9d0089ca855347eff88cb6ced8afb39a8e6 | 1fdd0647dea9328042757624884b0d4284d4b327 | /Client/CAnimator.cpp | 1e54a2dd67f77c51310fd314a19da8e0e8b2d939 | [] | no_license | moonseokchoi-kr/CupheadCloneGame | 4800858b1c1363ca5e69d3d0328c028a34a2bdef | da2318cc82182abe44adee7cd180902ae44b2d99 | refs/heads/master | 2023-08-21T08:05:44.398782 | 2021-10-10T10:47:37 | 2021-10-10T10:47:37 | 394,128,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,334 | cpp | #include "pch.h"
#include "CAnimator.h"
#include "CAnimation.h"
CAnimator::CAnimator()
:m_curAnim(nullptr)
, m_curFrame(-1)
, m_owner(nullptr)
,m_repeat(false)
,m_alpha(255)
{
}
CAnimator::~CAnimator()
{
Safe_Delete_Map(m_animations);
}
void CAnimator::CreateAnimation(const wstring& _name, CTexture* _tex, Vec... | [
"moonseoktech@gmail.com"
] | moonseoktech@gmail.com |
0361f446602ffed961e152e7c264ed4a9da2f1b5 | 1afae960847cab0864623094e393e3ffb875c7ec | /Engine/Graphics/ParticleSystem.h | 6ea3b1e4408a560aa8533eda8ca68ded889637b3 | [] | no_license | BadHatHoffman/CSC195 | 9cd978a0adf07de21bb015e521cda0b4bc85e25b | a08576111d21634df9a41615506357d76fb9a679 | refs/heads/master | 2022-11-23T23:36:48.555972 | 2020-07-23T17:58:15 | 2020-07-23T17:58:15 | 275,940,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | h | #pragma once
#include "Particle.h"
#include "core.h"
namespace nc
{
class ParticleSystem
{
public:
void Startup();
void Shutdown();
void Update(float dt);
void Draw(Core::Graphics& graphics);
void Create(const Vector2& position, float angle, float angleRange,size_t count, const Color& color,float lifeti... | [
"EHoffman@student.neumont.edu"
] | EHoffman@student.neumont.edu |
cbbe5a661722b9da94f2b58c0b8d7b20d0d0c28c | 7ebf6560569075fbbcc238d1dad38b679504213e | /cpp_port/tantalum/src/gl_utils.cpp | 520eb05601525b3154e9c7c61f7988ea6a3ae353 | [
"Zlib",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | RNG65536/tantalum | 290afcf28ea216d3d4975e7a9b23aec17c165a7a | 313bd0d699ae9f082dbaec029b4b8cc7d864ddf0 | refs/heads/master | 2022-12-13T01:16:50.996339 | 2020-09-01T14:53:43 | 2020-09-01T14:53:43 | 291,390,434 | 1 | 0 | null | 2020-08-30T03:06:02 | 2020-08-30T03:06:02 | null | UTF-8 | C++ | false | false | 3,357 | cpp | #include <lodepng.h>
#include <glm/glm.hpp>
#include <iostream>
#include <memory>
#include <string>
#include "gl_context.h"
//
#include "gl_utils.h"
using std::cerr;
using std::cout;
using std::endl;
using namespace gl;
using namespace glbinding;
using namespace globjects;
std::unique_ptr<globjects::Texture> load_p... | [
"3524094614@qq.com"
] | 3524094614@qq.com |
cc2fc70a8592a68264a0c4d93ad430d25e6b1ae5 | 88ae8695987ada722184307301e221e1ba3cc2fa | /chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h | 77825f45c81595b9e6cb6ed08943b8604692989d | [
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 8,734 | 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_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_
#define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_
#include <map>
#include <set>
#include... | [
"jengelh@inai.de"
] | jengelh@inai.de |
311c12453ae95237d44ea9611579f5853c9c58f1 | 3581044e471ec2e9d159611276aef640bdfce15e | /TypedTests/TypedTests/main.cpp | 21ff9ea252f76a5764f1d4f2e1a863f8f2a62fb6 | [] | no_license | jginsburgn/SQaT | 162cf83f90d58f64e293dbe8ce1ffd0282a5313e | 069239a045f21f4cee5617d08deffa884e2a3af5 | refs/heads/master | 2021-01-15T14:20:00.067474 | 2017-10-26T01:30:18 | 2017-10-26T01:30:18 | 99,689,722 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | cpp | //
// main.cpp
// TypedTests
//
// Created by Jonathan Ginsburg on 8/21/17.
// Copyright © 2017 Jonathan Ginsburg. All rights reserved.
//
#include <iostream>
#include "gtest/gtest.h"
int main(int argc, char * argv[]) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| [
"jgn1055@aol.com"
] | jgn1055@aol.com |
37282ba1a84870b839f3ea4b20af308413bba4d5 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir29315/dir29712/dir33921/file34021.cpp | ec2887eaa5ce41aaa054d94713772143d614a0f0 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | #ifndef file34021
#error "macro file34021 must be defined"
#endif
static const char* file34021String = "file34021"; | [
"tgeng@google.com"
] | tgeng@google.com |
5ab74def8fa76aeab68695442000fe9f712934c4 | 07a84dffc92a390af241188ef24ecaf64f75fce9 | /Cannonball.h | 41855f36ba5511e417107742c307ecdec9184ca7 | [] | no_license | ChiefCashier/SFGame | eedca839e3c299d69fbfecf131f5320dd38b7c9f | bd729c3a0f8ae3604de85981eaa2a01d9e30bd87 | refs/heads/master | 2020-05-17T11:24:22.967199 | 2014-05-13T12:49:00 | 2014-05-13T12:49:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | h | #pragma once
#include "GO.h"
class Cannonball :public virtual GO
{
public:
Cannonball(float xPos, float yPos, sf::Texture* tex, float rotation, sf::IntRect border, int ID, sf::Vector2f speed);
void Draw(sf::RenderWindow & window);
void SetPosition(float xPos ,float yPos);
void Move(float Frametime);
void SetRot... | [
"jonipetteri.luomala@gmail.com"
] | jonipetteri.luomala@gmail.com |
315f0b070235489bbe90a11647be52f8d61bf420 | c4330d3fd36547a05e703e8e6ae5226927326ce9 | /Bubble Shooter/CPTS122PA9/Test.h | e527773488b0c5005b6c7aa278de9b99e2f45912 | [] | no_license | Erik-Handeland/Bubble-Shooter | 2ca70226b5fc173f564621897f91fe2608912381 | 3e5196cf09e4dbba33f2086992c0eaec73ef476b | refs/heads/master | 2022-04-30T23:32:57.101867 | 2022-04-17T04:49:10 | 2022-04-17T04:49:10 | 214,728,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | h | #ifndef TEST_H
#define TEST_H
#pragma once
#include "Scores.h"
#include "Grid.h"
#include "GameWrapper.h"
class Test {
public:
static void testAddScore();
static void testExportScores();
static void testImportScores();
static void testCollision();
static void testFire();
};
#endif | [
"erikhandeland@gmail.com"
] | erikhandeland@gmail.com |
f88c7b5c1814a7b9ca3bff1d5504ebcae8379dd8 | 416c21383352035d5b6c252ef3a95d879c27b49d | /snake/Snake.cpp | 59b5ab84c5750d95407e565ae1dbe8a544e09790 | [] | no_license | EMLEMS/Gluttonous-Snake | 981fe01a8b5a599f64fb4426abe8d298dd2ece63 | 067f1ab28578cf7fa54ec301cb2cd7afdcfecd73 | refs/heads/master | 2020-04-22T14:34:40.960998 | 2018-01-25T05:52:49 | 2018-01-25T05:52:49 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,394 | cpp | #include "stdafx.h"
#include "Snake.h"
#include <windows.h>
#pragma comment(lib,"winmm.lib")
CSnake::CSnake(int x,int y,int length,Directions direction,int speed,char pic)
{
m_headX = x;
m_headY = y;
m_length = length;
m_speed = speed;
m_neumCurrentDirection = direction;
m_pic = pic;
int tmpX = 0, tmpY = 0;
fo... | [
"yangruiqiyr@163.com"
] | yangruiqiyr@163.com |
4a67aebe08f4a3c923f92c718fd85b62f1be8420 | 0424284ceb27e08c21de6cb60037eea4c4eac318 | /src/support/cleanse.cpp | f7314f3ff95853b395b6b689e466bd7315c09100 | [
"MIT"
] | permissive | zelantus/MainNet-critical-fix | 499ced9931f469a667c9edca8b20f3676db60bb7 | dd6483350264a93e3a806d041b61acda1cc39871 | refs/heads/master | 2022-12-14T23:46:00.374195 | 2020-09-07T18:42:44 | 2020-09-07T18:42:44 | 277,615,888 | 2 | 2 | MIT | 2020-09-07T18:41:39 | 2020-07-06T18:13:36 | C | UTF-8 | C++ | false | false | 1,478 | cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2017-2019 The Zelantus Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "cleanse.h"
#in... | [
"comingtom531@gmail.com"
] | comingtom531@gmail.com |
94a4d1b9ed193fa65eb6e4048234a0378855ea9c | f221ab39e0d2c307be6fbf7adf58f636b24bdeea | /lib/MultinomialObservationModel.cpp | 85febf75d8d14154df4f48f90b8c6db0eba90292 | [
"BSD-3-Clause"
] | permissive | ChristianFrisson/NMPT | 3a40e81e5e69f03980d7460d1d3ccf18d4bc3978 | dda56fa5202bde140500120ee472465d386b685c | refs/heads/master | 2021-01-20T07:00:10.101779 | 2018-07-18T00:46:30 | 2018-07-18T00:46:30 | 11,305,943 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,178 | cpp | /*
* MultinomialObservationModel.cpp
* OpenCV
*
* Created by Nicholas Butko on 3/8/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "MultinomialObservationModel.h"
using namespace std;
MultinomialObservationModel::MultinomialObservationModel(CvSize gridSize) {
observationProbab... | [
"christian.frisson@gmail.com"
] | christian.frisson@gmail.com |
2b06a60d055434a2c1529b464b38c8e1a30ee588 | 91dfb15c4074ec9c8c380109ecccc93846aba562 | /logic/bitpp/dologic/commandhandler.cpp | 1c3e97753730993525312eef492806c521b65815 | [] | no_license | magnetsrev/bluepillproject | 1a6bb4a2d9805aeb6f08ff8d73b6e3e3a6976d9d | 3c5225ca277e970a58a7aed75f47d2c4e8eaca89 | refs/heads/master | 2023-03-17T18:14:36.708435 | 2020-10-30T18:35:24 | 2020-10-30T18:35:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,105 | cpp | #include <commandhandler.h>
//#include <datetimemanager.h>
//#include <datetime.h>
namespace
{
__attribute__((constructor)) void reg()
{
TaskScheduler::instance()->reg(new CommandHandler());
}
} // namespace
void CommandHandler::setup()
{
}
void CommandHandler::func()
{
auto line = usb().readLn(10);
if (... | [
"aranoy15@gmail.com"
] | aranoy15@gmail.com |
1e6f81b92513c945ff6f4ebe484b9048fb88fccd | 7257896c92585eb82d9757f193bdd8d10e9a5142 | /beakjoon/BaaaaaaaarkingDog/Stack/17298_오큰수.cpp | 65892ef61070032de52b087aa6b9a4d38e0609db | [] | no_license | plenilune3/problem_solving_cpp | 2689444c5f9832c9259b2ffef594867be6318961 | adc12c8fa3a2706792c9e89afa0fe31df886154f | refs/heads/master | 2021-08-10T17:38:43.204998 | 2021-08-07T10:15:35 | 2021-08-07T10:15:35 | 253,405,433 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | cpp | #include <iostream>
#include <stack>
using namespace std;
const int MAX = 1e6 + 1;
stack<int> s;
int N, A[MAX], B[MAX];
int main(int argc, char const *argv[])
{
ios_base::sync_with_stdio(false);
cin.tie(NULL), cout.tie(NULL);
cin >> N;
for (int i = 0; i < N; i++)
cin >> A[i];
for ... | [
"plenilune095@gmail.com"
] | plenilune095@gmail.com |
ad0e2eba5564aa09dba4a1e52d630d5cbb8b9ce5 | 4ae69f7929be0202ddeba2c1b9e1e63cea2c859b | /libflog/proto/ofp/v1_0/agent.hpp | ec28beff888d10c4c8d3d3d92668a00d5f44c8c3 | [
"Apache-2.0"
] | permissive | flowgrammable/onf2013 | 14ac093eb2d7cb31632faae75701c8ef260c3e6a | 5bd6b0e6946f75fe5636acc515d8501227ad5a63 | refs/heads/master | 2016-09-10T16:17:35.320570 | 2014-03-03T19:54:52 | 2014-03-03T19:54:52 | 16,410,030 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,148 | hpp | // Copyright (c) 2013 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 or a... | [
"andrew.n.sutton@gmail.com"
] | andrew.n.sutton@gmail.com |
70e6a10c83ff68c83eccefad913aad985c801a25 | 9509bc8d103bc8c7dfe93cd845e8748943f29145 | /src/Core/Interpolate.cpp | 1553fe13f9120e5c0db85d669ad1ea35fdc1873b | [] | no_license | 2BitStudios/Slerpy | 47829fad8235c338ce5756cd6bd22fdddf70ad1b | 9a3e6c89473cbef98e60515863863edd9a64b6ef | refs/heads/master | 2020-05-20T19:29:58.251741 | 2016-05-06T03:21:48 | 2016-05-06T03:21:48 | 33,644,117 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,031 | cpp | #include "Interpolate.h"
#include "Math.h"
#ifdef _MANAGED
#define TRANSLATE_FUNCTION_NAME(name) Interpolate::name
#else //_MANAGED
#define TRANSLATE_FUNCTION_NAME(name) Interpolate_##name
#endif //_MANAGED
#ifdef _MANAGED
namespace Slerpy
{
#else //_MANAGED
#endif //_MANAGED
float TRANSLATE_FUNCTION_NAME(... | [
"therealandrewjoy@gmail.com"
] | therealandrewjoy@gmail.com |
8d1b0e63da75d70e040ee0b80e69c7f480ac134f | 0876cc4c6591aec099eb19f784bcc5c6661d8d49 | /Sandbox/FastMap.cpp | c90973d3e13e75693dfcd46b94fb11e572060750 | [] | no_license | DhirajWishal/Sandbox | 4001772b0aa6b9f3bf38509a53b8ffbf147dee2f | eb74b7e482203cb2f4ddb947ad684360eedc0bd6 | refs/heads/main | 2023-04-20T03:12:35.125019 | 2021-05-10T19:43:36 | 2021-05-10T19:43:36 | 366,157,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,151 | cpp | #include "FastMap.h"
#include <immintrin.h>
#define CHUNK_SIZE 4
#define CHUNK_ALIGN __declspec(align(32))
long long FindIndex(std::vector<uint64_t>& hashVector, const uint64_t& hash)
{
uint64_t count = hashVector.size();
uint64_t mod = count % CHUNK_SIZE;
if (mod)
hashVector.insert(hashVector.end(), CHUNK_SI... | [
"wishaldhiraj@gmail.com"
] | wishaldhiraj@gmail.com |
f12e14442a4713fa4aae322eda39c136d4e89ac5 | 23c6ceb46cf7d98cbefc87c1c0e14b1880f4b912 | /快排.cpp | 21f9084eff002a15211703b752b2ec847b0d6817 | [] | no_license | lishuaiwq/struct_data | db2563f5d15025e15085b033b86ee9bc5c95de2d | b0111a025a5877f26835cc400ec9951e356fecbc | refs/heads/master | 2020-03-22T16:00:56.578105 | 2018-07-11T14:03:07 | 2018-07-11T14:03:07 | 140,296,310 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,433 | cpp | //快排复习
//int Quick_fast(int *arr,int left,int right)
//{
// //4,2,6,4,9,5,3,2,1,0
// int index = left;
// while (left < right)
// {
//
// while (left < right&&arr[right]>=arr[index])//首先从后往前走,从后面找比标志元素小的,前面找比标志元素大的
// {
// //从右向左走,因为如果从左向右走的话,
//这个时候right指向大于目标值,所以left走到right的位置就停下来了,然后和left交换
//相当于将比目标值大的交换在了第一个... | [
"2545214567@qq.com"
] | 2545214567@qq.com |
a323b99c1793f9f7a713d6b3d6571e1decbc824e | 92d4587306dc66cd9e86b3edf447ead7ba197837 | /N6LYT/Qt/trunk/src/QtDSPServer/client/g711a.h | 8f74d5279d6c7514ad6096f7700f11e05e5dfa77 | [] | no_license | ZHJEE/OpenHPSDR-SVN | 6b469826054356da4607097d17a00aa234e1924b | efe1cc275cdeaf7e0314e0eba068c2033ceb16f6 | refs/heads/master | 2022-01-23T07:21:43.714129 | 2019-05-11T07:18:33 | 2019-05-11T07:18:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | h | #ifndef G711A_H
#define G711A_H
class G711a
{
public:
G711a();
unsigned char encode(short sample);
short decode(unsigned char sample);
private:
short decodetable[256];
unsigned char encodetable[65536];
};
#endif // G711A_H
| [
"john.d.melton@googlemail.com"
] | john.d.melton@googlemail.com |
2e2ea84d2694678e9ddd768e99f9be3d2aed2545 | 01199f17abccb088dcfcc03f9903b27561e961c6 | /FMIE-SkectchDlg.h | 8078cc513e223785f3050e1c91f01f03e3ddd2b9 | [] | no_license | a994947007/FMIE-Sketch | 5aab0d5361be352e09fa3c1530bd3bf5c6d9197e | c66211f93a7f047b60c9e7ff060c44ae1cd0e9e1 | refs/heads/master | 2023-02-19T05:22:31.981987 | 2020-12-21T16:30:02 | 2020-12-21T16:30:02 | 259,953,425 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 959 | h |
// FMIE-SkectchDlg.h: 头文件
//
#pragma once
#include "UserConfig.h"
// CFMIESkectchDlg 对话框
class CFMIESkectchDlg : public CDialogEx
{
// 构造
public:
CFMIESkectchDlg(CWnd* pParent = nullptr); // 标准构造函数
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_FMIESKECTCH_DIALOG };
#endif
protected:
virtual void DoDataEx... | [
"994947007@qq.com"
] | 994947007@qq.com |
fecee02d8cd672ad7b4609d1bb0773f80dd4a2b6 | 88775a85b06c34f6665f16b8adff25b9690ec0ee | /.history/HJ20_20210316172638.CPP | e3f6294dabdb46078bb2ffc1e5638383ae353056 | [] | no_license | AraragiEro/newk | 417c2d75f62ac1b174e6981a6000cb62b6448dec | 63374264c10e90dc9a370bfc783913e3ec35610c | refs/heads/master | 2023-03-19T14:07:46.548504 | 2021-03-16T18:46:34 | 2021-03-16T18:46:34 | 348,370,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | cpp | #include<iostream>
#include<string>
#include<vector>
using namespace std;
int main(){
string input;
while(cin>>input){
bool iseight=false;
bool isThreeType=false;
bool isNotex=false;
if(input.size()>8) iseight=true;
vectormark=0;
for(auto i=input.begi... | [
"zhucct@126.com"
] | zhucct@126.com |
62b95ced54f4854c50c8b1b6a60b539dff342b83 | acd48b7d59221e51f956b20ae6303d0bae47bfd5 | /begin1001.cpp | 0898c171b684d9bf192ec9acb71a8e744bfee0b3 | [] | no_license | lisongming/practice | 2a47a60a69b6e10722e3d63f548aacaadecbb117 | 5e7bbdc87ea535c42f21008c553356583d555acd | refs/heads/master | 2020-04-24T21:50:00.871230 | 2019-05-13T15:53:00 | 2019-05-13T15:53:00 | 172,291,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 99 | cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
printf("Hello, World!");
return 0;
}
| [
"939200869@qq.com"
] | 939200869@qq.com |
374745c11aac46a7280e586ed1f364b3ff8a84cf | 6ce8ea71d7571bcce4d9c777d78710db3c0f808a | /C&C++/PAT/code/AdvancedLevel/1091.cpp | 8e8303cdef4e3dfe19f3c57259bcd03a043e7b2f | [] | no_license | Drrany/Algorithms_Code | 550057888dcf3c3c3797a6004590c00ea4baf65f | c68de942f9f46fae0b42bd8c3293846e6a7e2be3 | refs/heads/master | 2023-03-23T09:33:46.097869 | 2021-03-15T12:48:57 | 2021-03-15T12:48:57 | 289,410,041 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,887 | cpp | #include <bits/stdc++.h>
using namespace std;
int xOffset[] = {1, -1, 0, 0, 0, 0};
int yOffset[] = {0, 0, 1, -1, 0, 0};
int zOffset[] = {0, 0, 0, 0, 1, -1};
int arr[62][1288][130]{};
int main() {
int m, n, l, t, ans = 0;
cin >> m >> n >> l >> t;
for (int i = 1; i <= l; ++i) {
for (int j = 1; j <... | [
"deelhu370@gmail.com"
] | deelhu370@gmail.com |
2a6c904370c6c7cf88c9793107484e6b40eb4d98 | 603ad7bb3df5a02d222acefec08ce4f94d75409b | /rpc0220/j.cpp | 0d68a65d6ef1a74840fd894faa6bfa2cf189ad77 | [] | no_license | MijaelTola/icpc | 6fc43aa49f97cf951a2b2fcbd0becd8c895abf36 | ee2629ba087fbe7303743c84b509959f8d3fc9a0 | refs/heads/master | 2023-07-09T00:47:42.812242 | 2021-08-08T00:44:10 | 2021-08-08T00:44:10 | 291,160,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,173 | cpp | //problema j
#include <bits/stdc++.h>
#define pi acos(-1)
using namespace std;
int n,m;
int v[110];
double dp[110][110];
double dis[110][110];
vector<int> type[110];
double f(int pos, int last) {
if(pos == n) return 0;
double &ans = dp[pos][last];
if(ans != -1) return ans;
ans = 1e9;
for (int k:... | [
"mija.tola.ap@gmail.com"
] | mija.tola.ap@gmail.com |
8a8d538a80bdc8b278e58c9c25c8fe82143e14a4 | e09085d56ec9be2d8151f64215c371655d749ab6 | /loop-integrations/asio.cpp | 966c725a2b22b5724e8a558319f03b2f77e08093 | [] | no_license | crowdos/hwhal | 349b9a642e12f32ceff28cb88a4280341b574935 | e99b31e2912ec7c0c41dda250fc08427b82422b5 | refs/heads/master | 2021-01-21T04:41:32.520274 | 2016-05-13T11:53:19 | 2016-05-13T11:56:42 | 54,751,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,083 | cpp | #include "asio.h"
#include <iostream>
class LoopIntegrationAsio::Service {
public:
Service(uint64_t id) :
m_id(id) {}
virtual ~Service() {}
uint64_t id() const { return m_id; }
virtual bool start() = 0;
virtual void stop() = 0;
private:
const uint64_t m_id;
};
class WatchService : public LoopInteg... | [
"msameer@foolab.org"
] | msameer@foolab.org |
c5e6699895ceb72ba136b0f3ec748a00c739943f | 956e9c2785db1aaa1f56ef3a0e6b84aff44a51f1 | /odyssey-r155188-1.23/Tools/WebKitTestRunner/TestController.cpp | d691acd052264b98990c9e4ef81ed48ebcaa6921 | [] | no_license | kas1e/Odyssey | d452826d2648280390e4d6ff1c8df5c228d095ad | 947cc7a10be2599d3ed3145ab2af4a445df6d462 | refs/heads/master | 2023-02-23T15:21:53.806910 | 2022-06-26T13:47:07 | 2022-06-26T13:47:07 | 243,821,888 | 10 | 9 | null | 2023-02-07T20:04:56 | 2020-02-28T17:48:33 | C++ | UTF-8 | C++ | false | false | 50,657 | cpp | /*
* Copyright (C) 2010 Apple Inc. 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 of conditions a... | [
"amiga1200@amiga.com"
] | amiga1200@amiga.com |
689f75fe32ec142085c23e9b849a8eb09ae38bbe | 577a4fe1a1fe91e9db1c675228daac11e1e1a027 | /CarBase.h | 3bc5e4ce7a2e3309f8a9728ed47e2289aedc7b76 | [] | no_license | MahdiBazyar/Car-Dealership-System | 8d24dfb061a736fe8eae74b2cea033d7b6d77b17 | 98036a873dee1f6e3bd36d609a8f8fdf35c93601 | refs/heads/master | 2020-04-24T01:35:14.233819 | 2019-02-20T05:02:22 | 2019-02-20T05:02:22 | 171,603,797 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 777 | h | #ifndef CARBASEH
#define CARBASEH
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class CarBase
{
public:
CarBase();
CarBase(string carCategory, string carVin, bool carLeased, string carModel, string carMake, int carYear, float carPrice);
virtual ~CarBase();
... | [
"noreply@github.com"
] | MahdiBazyar.noreply@github.com |
72270180f8746cbf7e4530540819dd069fc8f9c7 | 2d43629a4f438e8b8c6b87a14ae7d4949bea1f91 | /3_Advanced Topics and STL/Big C++, Exercise 14/matrix1.cpp | 81b70b000b5eab22d3ad1164b9715e9326ac1815 | [
"MIT"
] | permissive | loadfc/Big-C | ae3d8e567eed66ddeba6ce9c35b82d5d69bbb144 | e32dfffd6a241d0ff307e91b0d027544a4f1bec3 | refs/heads/master | 2023-05-25T01:36:17.530568 | 2018-07-11T17:07:20 | 2018-07-11T17:07:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,398 | cpp | #include <iomanip>
#include "matrix1.h"
Matrix::Matrix()
{
for (int i = 0; i < ROWS; i++)
for (int j = 0; j < COLUMNS; j++)
(*this)(i, j) = 0;
}
Matrix& Matrix::operator+=(const Matrix& right)
{
for (int i = 0; i < ROWS; i++)
for (int j = 0; j < COLUMNS; j++)
(*this)(i, j) += ri... | [
"ibrahim_fathy@outlook.com"
] | ibrahim_fathy@outlook.com |
f7127259a935bc8101cefa85c8c158a0c6762f12 | 164ec3693c207c68b46852d031565228e9723caa | /NonTerminal.cpp | cd96a62e36d82af69bb72f948e4ec742ee1900a4 | [] | no_license | snahmad/AST | aa1c6fac35e82030d3224734250f094c5011ca2a | d6b67e39fb6e88d9019894a951cbd27555ad84c5 | refs/heads/master | 2022-04-27T17:03:07.437973 | 2020-04-27T17:46:02 | 2020-04-27T17:46:02 | 259,393,017 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 192 | cpp | #include "pch.h"
#include "NonTerminal.h"
NonTerminal::NonTerminal(Node* left, Node* right)
: left_(left)
, right_(right)
{
}
NonTerminal::~NonTerminal()
{
delete left_;
delete right_;
} | [
"naeem_fast@yahoo.com"
] | naeem_fast@yahoo.com |
ae35681536f4db902f138a1aeab3fbadea6ecf85 | 5f9aa7846462f286ecff94d55fd26a736ac21238 | /source/core/renderer/bidirectional-path-tracing/subPathBuilder.h | 84a7c64910b845f6be4e1e692affb3c15fae5702 | [
"MIT"
] | permissive | xh5a5n6k6/cadise | bba37903facf98b7640571ec3f910a8ec0f070e1 | 797b116b96d7d3989b58454422501f6ace04c4b8 | refs/heads/master | 2023-06-01T08:17:39.848765 | 2021-02-04T13:17:06 | 2021-02-04T13:17:06 | 179,852,908 | 35 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,042 | h | #pragma once
#include "core/spectrum/spectrum.h"
namespace cadise {
class Camera;
class Ray;
class Scene;
class SubPath;
enum class ETransportMode;
class SubPathBuilder {
public:
explicit SubPathBuilder(const std::size_t maxPathLength);
void setCamera(const Camera* const camera);
void buildLightPath(
... | [
"xh5a5n6k6@gmail.com"
] | xh5a5n6k6@gmail.com |
f2fe46c0d128246ef6ff193d9a5d53fbaf4acf93 | e1092274408656117bc00252bc761e3609ec437f | /paddle/fluid/operators/matrix_rank_op.h | 7fa74368332d0ab582919238ed6b0db6a32252ec | [
"Apache-2.0"
] | permissive | xiegegege/Paddle | 92822623e4d7fe0263503f11b63fb22610bf2773 | df1d04ca0031da2d701f314f1c98afdbb107b1b5 | refs/heads/develop | 2022-01-13T08:34:09.835700 | 2021-12-30T07:06:03 | 2021-12-30T07:06:03 | 226,800,733 | 0 | 0 | Apache-2.0 | 2019-12-09T06:28:40 | 2019-12-09T06:28:39 | null | UTF-8 | C++ | false | false | 1,952 | h | // Copyright (c) 2021 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"
] | xiegegege.noreply@github.com |
59111888f3a7a597033ebdd562592aafe8c2295f | f6ef1f50a476c3ed58b4f268feb6fb438996f06a | /有OJ/刷题指南(包含leetcode, POJ, PAT等)/POJ-2/problems/2215Parliament.cpp | bbf931c62b8f9a6ab0202ec11863fa33af7dc36c | [] | no_license | February13/OJ_Guide | f9d6c72fc2863f5b6f3ad80b0d6c68b51f9a07db | a190942fae29a0dbee306adc81ee245be7fda44a | refs/heads/master | 2020-04-25T09:01:48.458939 | 2018-01-18T08:31:30 | 2018-01-18T08:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 861 | cpp | #include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int sc[1001][1001];
int A[1001][1001];
int query(int x1,int y1,int x2,int y2){
return A[x2][y2]-A[x1-1][y2] -A[x2][y1-1] + A[x1-1][y1-1];
}
int main()
{
int t,r,s;
scanf("%d",&t);
while(t--){
scanf("%d%d",&r,&s);
... | [
"zhaoqijie@pku.edu.cn"
] | zhaoqijie@pku.edu.cn |
7eb637b8ef49caff33a86392119bc4f985556400 | cd5636d83e5b8d3d96ef68744f503d1c648eb285 | /using constractor.cpp | 4087853489d49b81ac65e570242a38f0550c8d7d | [] | no_license | fariha65/cpp | 2779573d1b7b50107a8688664424f3d69b6608ba | c0a4eb51f288bc391781e0d9fb7bdd392e2e2a67 | refs/heads/main | 2023-06-17T14:55:54.461420 | 2021-07-10T17:16:46 | 2021-07-10T17:16:46 | 384,750,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | cpp | /// using constractor
#include<iostream>
using namespace std;
class student
{
public:
int id;
double cgpa;
void display()
{
cout<<id<<" "<<cgpa<<endl;
}
/*Constractor has the same name as that of the class it belongs &it is a
special type of function*/
student(int x,double y)//co... | [
"farihaafrintamanna@gmail.com"
] | farihaafrintamanna@gmail.com |
7bfc6b413290370fa0258d457cdf95c9fb8eb1e2 | e7e497b20442a4220296dea1550091a457df5a38 | /main_project/OceCxxAdapter/src/FeedContentAdapter.cpp | ff1460fd87ff57601dc7cde68524f4dd336380d5 | [] | no_license | gunner14/old_rr_code | cf17a2dedf8dfcdcf441d49139adaadc770c0eea | bb047dc88fa7243ded61d840af0f8bad22d68dee | refs/heads/master | 2021-01-17T18:23:28.154228 | 2013-12-02T23:45:33 | 2013-12-02T23:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,752 | cpp | #include "FeedContentAdapter.h"
#include "FeedAssistantNAdapter.h"
#include "FeedMemcLoaderAdapter.h"
using namespace xce::feed;
using namespace std;
using namespace MyUtil;
FeedContentManagerPrx FeedContentAdapter::getManager(Ice::Long id) {
int i = labs(id % cluster());
return locate<FeedContentManagerPrx> (_man... | [
"liyong19861014@gmail.com"
] | liyong19861014@gmail.com |
b42cd88004913142d0e337916b2bcc96474f8985 | 6378e6203e0537c1dcbeebd6bc3a598982de48cc | /Ray.cpp | 4048f87c7a8d524e5465611a7ba71b8252936c07 | [] | no_license | irri/simple_raytracer | 07a67050fe31cd9a82f309499dca39760cf16563 | 3fe37741de619a3f4107828b5e8ef4bea5db2252 | refs/heads/master | 2020-06-06T03:30:18.705413 | 2014-11-22T10:11:57 | 2014-11-22T10:11:57 | 26,995,296 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 999 | cpp | /*
* Ray.cpp
*
* Created on: Jan 20, 2012
* Author: david
*/
#include "glm/glm.hpp"
#include "Ray.h"
Ray::Ray() {
Ray::position = vec3(0,0,0);
Ray::direction = vec3(0,0,1);
}
Ray::Ray(vec3 position, vec3 direction) {
Ray::position = position;
Ray::direction = direction;
}
Ray::~Ray() {
}
Ray R... | [
"philip@irri.se"
] | philip@irri.se |
19de7e4f5c26868136b49086696c84d193b6c794 | e4baed7689dd3f46395373b17108f0fd81ce8087 | /algolab/weak2/numtriangle.cpp | 0c32b87fee707371cc725999a07bbabedb885a9a | [] | no_license | kimchanmiii/2020CppAlgorithm | 6afa8277d08e6ad07475a06977addb69405722a0 | 5a62ccd2f04a7a13c1870f83a7e80a245cf948cc | refs/heads/main | 2023-01-15T04:31:52.829283 | 2020-11-17T16:16:15 | 2020-11-17T16:16:15 | 313,674,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 483 | cpp | #include <iostream>
using namespace std;
int main (){
int testCase;
cin >> testCase;
for(int n = 0; n < testCase; n++){
int k;
cin >> k;
for(int i = 0; i < k; i++){
for(int j = 0; j <= i; j++){
int triangle = 0;
triangle = j * k - (j*(... | [
"noreply@github.com"
] | kimchanmiii.noreply@github.com |
87d5082ae89a0f263864088f3b5baaabc1c366c6 | e3419a89a96d377c2d43f62e898f38a6b3310b6f | /taichi/backends/cuda/cuda_driver.cpp | 670f02599c004a4b2dd3de6a164bbb769e29ce64 | [
"MIT"
] | permissive | zf38473013/taichi | 7adc7299fb9c5b4e5b455e1a309fc86b77c25be9 | ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb | refs/heads/master | 2021-05-26T03:35:52.236338 | 2020-04-08T03:28:45 | 2020-04-08T03:28:45 | 254,035,227 | 1 | 0 | MIT | 2020-04-08T08:55:02 | 2020-04-08T08:55:02 | null | UTF-8 | C++ | false | false | 1,737 | cpp | #include "cuda_driver.h"
#include "taichi/system/dynamic_loader.h"
#include "taichi/backends/cuda/cuda_context.h"
TLANG_NAMESPACE_BEGIN
std::string get_cuda_error_message(uint32 err) {
const char *err_name_ptr;
const char *err_string_ptr;
CUDADriver::get_instance_without_context().get_error_name(err, &err_name... | [
"noreply@github.com"
] | zf38473013.noreply@github.com |
6f028db41ee2b86a7d018f6bc917407da64df1e0 | 3fc73ff771be1746265b288907756b7b2148490f | /ScInterImpl/SchemeObjects/ProcObjects/SyntaxProcObjects/CalcMethod/MinusMethod.hpp | aff4540ae6407dadae575c76d85b6acd7e5b9020 | [] | no_license | ygibo/SchemeInterpreter | 1c5dc22175001be3a472cc067179b9639e3dd6aa | 30c081b26f385113907c761f325110085d12e33d | refs/heads/master | 2020-04-02T11:01:20.985939 | 2018-10-23T17:34:42 | 2018-10-23T17:34:42 | 154,366,897 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 219 | hpp | #ifndef MINUS_METHOD
#define MINUS_METHOD
#include"CalcMethod.hpp"
#include"../../../Object.hpp"
#include<vector>
class MinusMethod : public CalcMethod{
public:
Object* calc(std::vector<Object*>& args);
};
#endif
| [
"logic.and.puzzle.eq.proof@gmail.com"
] | logic.and.puzzle.eq.proof@gmail.com |
04bd4ba63a5d49c708f1c4ce66825304dc318389 | 515f059b025d20ed308faff724699b886fb95573 | /photoview/moc_mainwindow.cpp | cff6333f95c635756d8b0399bb7a327f7742b08c | [] | no_license | lor21/photobooth | 1955dd77a4999f2d03f94cad54b613d0e014a101 | 71ba9884ef1d249304079625c0fee13acca75d02 | refs/heads/master | 2021-01-10T08:17:57.174347 | 2016-01-09T18:59:09 | 2016-01-09T18:59:09 | 48,206,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,567 | cpp | /****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2)
**
** WARNING! All changes made in this file will be lost!
**********************************************************... | [
"loroof@gmail.com"
] | loroof@gmail.com |
aea369a74b1edb129524cafc3382280585565893 | 343991667d37fba873674d8dc157f59f108c4370 | /bin/mac64.build/cpp/src/__files__.cpp | 432d9378404b02b7976cde8da069e8723cb67e9c | [] | no_license | PlumpMath/StarSlam | 7718152d348de29dc68c759a81fa9cfefe9647b9 | 4a05d1575a763ffab76db259050bfe3b9a16a910 | refs/heads/master | 2021-01-18T20:24:31.646389 | 2015-09-20T20:11:56 | 2015-09-20T20:11:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,909 | cpp | #include <hxcpp.h>
namespace hx {
const char *__hxcpp_all_files[] = {
#ifdef HXCPP_DEBUGGER
"/usr/lib/haxe/std/Lambda.hx",
"/usr/lib/haxe/std/List.hx",
"/usr/lib/haxe/std/StringTools.hx",
"/usr/lib/haxe/std/cpp/Lib.hx",
"/usr/lib/haxe/std/cpp/_std/Date.hx",
"/usr/lib/haxe/std/cpp/_std/EReg.hx",
"/usr/lib/haxe/std/cpp/... | [
"aledoux6@gatech.edu"
] | aledoux6@gatech.edu |
2d819b1cf18c64c8c52a9777126a11003919aea4 | 660d070addfc126e4325d5a63c43a40002f419d0 | /MineSweeper/main.cpp | 7f2c425eb61de72442e4b68e6640a17e19ed6eb0 | [] | no_license | qphien/sdl_game | d597f077ea829b7e71e3eed371eb437d5e490f4c | 5ebe87efd394204e4d0a024b3da85fcc57c1daca | refs/heads/master | 2021-01-17T18:47:48.411895 | 2017-02-26T03:28:05 | 2017-02-26T03:28:05 | 60,161,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 124 | cpp | #include "main.h"
using namespace std;
int main(int, char **)
{
Game MineSweeper;
MineSweeper.game_start();
return 0;
} | [
"clxidian@126.com"
] | clxidian@126.com |
e0e40ebf7c9401f14d292fd77d45653583fae528 | 74a0bd5552e2ffc94162ea9a2ffba3b46120d60d | /Mega_project_list/05_Text/07_Text_Editor/_18_Text_EditorApp.h | d8594bca5df0eb491797a23ee4eb3bbfb6f7b7c5 | [] | no_license | dmytrofrolov/Cpp | 9103f5979e710061d8bf03465fc87b7fc3ff7bc9 | a216cadd3903c1e73381bf6d12a394af472cfc93 | refs/heads/master | 2016-09-09T22:08:01.471867 | 2015-05-04T19:06:49 | 2015-05-04T19:06:49 | 25,148,597 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 472 | h | /***************************************************************
* Name: _18_Text_EditorApp.h
* Purpose: Defines Application Class
* Author: Dmytro Frolov (dimaf@i.ua)
* Created: 2015-01-11
**************************************************************/
#ifndef _18_Text_EditorApp_H
#define _18_Text_Ed... | [
"dimaf@i.ua"
] | dimaf@i.ua |
d2716ad06b942a77fa5cb16fe638c48e4e77220e | 4198ad6660dc27f09b105738cc4f06f4b005cf2b | /NucleoBase.cpp | 21aac3143d4989009d0a920bd0bd10f0baaa438c | [] | no_license | BurakHanGencmehmetoglu/Kill-Covid-19 | ffb70fdc193e568cce095f25b57cea61b4ac0e28 | 7ac9c9c2713d0b36b4ee1e8409c58e8c50b206b1 | refs/heads/master | 2022-12-08T23:42:12.086493 | 2020-09-09T19:05:57 | 2020-09-09T19:05:57 | 294,199,774 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 617 | cpp | #include "NucleoBase.h"
NucleoBase::NucleoBase() {
prev=NULL;
chain="";
}
NucleoBase::NucleoBase(string chain1,NucleoBase* ptr) {
chain=chain1;
prev=ptr;
}
NucleoBase::~NucleoBase() {
if (prev!=NULL){delete prev;}
}
NucleoBase* NucleoBase::GetLast() {
string temp(1,chain[chain.length()-1]);
Nuc... | [
"burakgencmehmetoglu@gmail.com"
] | burakgencmehmetoglu@gmail.com |
185ad339adba51bb05bc8430bb77e76a34e4e81f | fae873037a1b695c265ad0ba409101c4ef653015 | /src/path_generation_and_following.cpp | a962b6b599fca61bec0af5f682a058740bd1e94a | [] | no_license | Meskupie/gnc_experimentation | 62059e834053568035c97c52304c09f6aaa59f1b | 12ab0a4a77b518ea76b25767cdbef64775bc5cb9 | refs/heads/master | 2021-01-21T18:39:17.826223 | 2017-05-22T15:40:43 | 2017-05-22T15:40:43 | 92,068,554 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,664 | cpp | // ///////////////////////////////////////////////////////////
//
// turtlebot_example.cpp
//
// Author: Michael Skupien
//
// //////////////////////////////////////////////////////////
#include <ros/ros.h>
#include <geometry_msgs/PoseWithCovarianceStamped.h>
#include <geometry_msgs/Twist.h>
#include <tf/transform_d... | [
"meskupie@gmail.com"
] | meskupie@gmail.com |
ef2d66100c52ef3d3043d816e62070cef16f7d96 | ea250e6b6a21744af3fd00f0b8083a81f203c187 | /Special DS/Segment Tree Lazy Propagation.cpp | df764a2439b196b9668112508ee02a12e80d7a0e | [] | no_license | IITianUG/Competitive-Programming | 0d89608a3f047654d1bed303cbc484da7b1ccaa5 | ce06a6d4e446c7803edd3e97df5a3efe6895f7f9 | refs/heads/master | 2022-12-02T23:20:12.946185 | 2020-08-20T07:32:15 | 2020-08-20T07:32:15 | 266,742,443 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,483 | cpp | #include <bits/stdc++.h>
using namespace std;
#define MAX_N 100000
//number of nodes in segment tree is 2*N-1
long long segtree[4 * MAX_N];
long long lazy[4 * MAX_N];
int A[MAX_N + 1];
void updateRange(int node, int st, int en, int l, int r, int val)
{
if (lazy[node] != 0)
{
segtree[node] += (en - st ... | [
"umanggoel1996@gmail.com"
] | umanggoel1996@gmail.com |
396e512fd5a77a81160eb545094bfddbcc010950 | 6f16173ebd132247ce620dcea38cc5e62750d9fd | /杭电oj题/water/杭电1049-蠕虫(水).cpp | 1c7a29eb2d8387d5d1cbe46c55b6a315c6254f18 | [] | no_license | liangwg/codes | 74c07982827636ecfdd01232b3a835a31df64d40 | 7c290f02810eec0f19f73aca74e29cfcae9036a3 | refs/heads/master | 2021-01-21T10:05:19.680463 | 2018-10-25T13:20:08 | 2018-10-25T13:20:08 | 91,678,828 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 292 | cpp | #include<iostream>
using namespace std;
int main()
{
int height,v,rest;
while(1)
{
cin>>height>>v>>rest;
if(height==0)
break;
if(height<=v)
cout<<1<<endl;
else
{
int sum=1;
while(sum*(v-rest)<height-v)
sum++;
cout<<sum*2+1<<endl;
}
}
}
| [
"2870875593@qq.com"
] | 2870875593@qq.com |
4f5832bb9fc8f33d46c4732c8df03be9718199a5 | 15cec5616a1c10924ebfd7d1db2134dbcc4e5598 | /atcoder.jp/abc061/abc061_b/Main.cpp | a5b089237136c515b8811133f6c9670c164237d1 | [] | no_license | shuto1441/atcoder_archive | 2c474a379b6b3df8783504335cc678b3e45fc0e8 | 8c3cc31ebe39746e26f8fdef4f6ac289d34f91a0 | refs/heads/main | 2023-07-11T00:03:38.661106 | 2021-08-21T11:16:28 | 2021-08-21T11:16:28 | 397,816,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
//入力部
int N,M;
cin>>N>>M;
vector<int>a(M);
vector<int>b(M);
vector<int>c(N);
for(int i = 0;i < M; i++){
cin>>a.at(i)>>b.at(i);
}
//上下の文字列
for(int i = 0;i < N; i++){
for(int j=0;j < M; j++){
if (i + 1... | [
"shuto1441@gmail.com"
] | shuto1441@gmail.com |
c170109290b11c2a103552900a74ffcaf07361bd | 1da61642651b58573e87332b0345629ffd2944d8 | /edbee-test/main.cpp | 490bcea677d51e16e26a7f16709117df30fc1ae6 | [
"MIT",
"BSD-3-Clause"
] | permissive | tomcss/edbee-lib | 151f07f519d35d4f51aa7c83d5bfe868b8cb617f | e0029808ae87dc78bf83265b751928048d978e32 | refs/heads/master | 2021-01-20T17:06:22.833572 | 2017-05-09T10:54:01 | 2017-05-09T10:54:01 | 90,862,917 | 0 | 0 | null | 2017-05-10T12:41:39 | 2017-05-10T12:41:39 | null | UTF-8 | C++ | false | false | 2,353 | cpp | /**
* Copyright 2011-2013 - Reliable Bits Software by Blommers IT. All Rights Reserved.
* Author Rick Blommers
*/
#include <QApplication>
#include <QDebug>
#include <QList>
#include <QTimer>
#include <QsLog.h>
#include <QsLogDest.h>
#include "edbee/util/test.h"
#include "edbee/edbee.h"
#include "edbee/debug.h"
... | [
"rick@blommersit.nl"
] | rick@blommersit.nl |
4947d132c3fa9b181950ef1eab5daf84340d843c | e1700081b3e9fa1c74e6dd903da767a3fdeca7f5 | /libs/guicore/pre/geodata/private/geodataexporter_impl.h | c39436e68b3d9fc3bff24f9d08ea41590c7fd388 | [
"MIT"
] | permissive | i-RIC/prepost-gui | 2fdd727625751e624245c3b9c88ca5aa496674c0 | 8de8a3ef8366adc7d489edcd500a691a44d6fdad | refs/heads/develop_v4 | 2023-08-31T09:10:21.010343 | 2023-08-31T06:54:26 | 2023-08-31T06:54:26 | 67,224,522 | 8 | 12 | MIT | 2023-08-29T23:04:45 | 2016-09-02T13:24:00 | C++ | UTF-8 | C++ | false | false | 211 | h | #ifndef GEODATAEXPORTER_IMPL_H
#define GEODATAEXPORTER_IMPL_H
#include "../geodataexporter.h"
#include <QString>
class GeoDataExporter::Impl
{
public:
QString m_caption;
};
#endif // GEODATAEXPORTER_IMPL_H
| [
"keisuke.inoue@mizuho-ir.co.jp"
] | keisuke.inoue@mizuho-ir.co.jp |
1bf40b4555836ed2abb676950486d6a2da25649e | c258ecfc7fd11507da15e25bfcf5c6548c6f5874 | /ld-G.cpp | 9c5de226f7058932bc53f47a56f470efbffbdcf9 | [] | no_license | sagarsingla14/Codechef | 724ae9b8563deed5cb6c8648cbc39603f0283c57 | 74384679a2eec984b2fbb762e0a8a8e8f60cc103 | refs/heads/master | 2021-07-13T17:17:34.026783 | 2020-09-27T14:07:27 | 2020-09-27T14:07:27 | 208,868,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,143 | cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL);
int main() {
ll t;
cin >> t;
while(t--) {
ll x;
cin >> x;
if(x == 2) {
cout << -1 << endl;
continue... | [
"sagarrock1499@gmail.com"
] | sagarrock1499@gmail.com |
7cadc2abedca043f2ec98cdad701c1468132259d | 76a746a3fd3020dc398a86cb569ba86ce3c225bd | /PathComputationSession.cpp | acffdc95b6cc15681a0fcf56a50663a1ede39299 | [] | no_license | alessiocnit/dalay | fa5e3dd730a146a2d35740be83a5b4a162b479d3 | 3e8fae7f19bc784bacc5f9f177e3653ca93ac1a3 | refs/heads/main | 2022-12-27T03:44:35.165104 | 2020-10-12T15:55:22 | 2020-10-12T15:55:22 | 303,438,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,155 | cpp | #include "PathComputationSession.h"
#include "Statistics.h"
#include "CDomain.h"
#include "PCx_Node.h"
#include "CConnection.h"
#include "PCEP_PCReqPck.h"
#include "PCEP_PCRepPck.h"
#include "WritePckNodeEvent.h"
//#define DEBUG
PathComputationSession::PathComputationSession(PCEP_PCReqPck* pk, CConnection* conn, CNe... | [
"alessio.giorgetti@gmail.com"
] | alessio.giorgetti@gmail.com |
eb239d4d560dc7441fe27e0ed12dc463f3279514 | 82dd95197e290a6a98fa2530270c492be7ff24de | /smhasher/main.cpp | eca08485973c2578d864e1e97da9d7cce0645985 | [
"MIT"
] | permissive | jbenet/python-smhasher | 51c12e766008a23704a4106e2d3faeaef142485c | 6173d4d46ae0ae0744a45ea99281743b23dd21dd | refs/heads/master | 2023-08-12T17:31:53.133079 | 2011-06-18T14:21:19 | 2011-06-18T14:21:19 | 1,915,784 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,776 | cpp | #include "Platform.h"
#include "Hashes.h"
#include "KeysetTest.h"
#include "SpeedTest.h"
#include "AvalancheTest.h"
#include "DifferentialTest.h"
#include <stdio.h>
#include <time.h>
//-----------------------------------------------------------------------------
// Configuration. TODO - move these to comma... | [
"spaceboy@indirect.com"
] | spaceboy@indirect.com |
ab60a62805a4915e7384381b0c884ea687d0235a | 81f5a99f1f9b16016f2aa6d4860527239a0845a7 | /LeapYear.cpp | 786a72cb0446d6dc8e87d415da0d266001d44761 | [
"Zlib"
] | permissive | Mvrd0ChF3/First-Repo | c0c43f2ce0c81713cd6464fe69f1ad7e111aeec2 | b20e5e526a7abb3975ecc269ff2f7178dcfe7875 | refs/heads/master | 2020-07-27T16:47:41.979360 | 2020-07-13T10:24:11 | 2020-07-13T10:24:11 | 209,161,028 | 0 | 0 | null | 2020-06-27T17:49:40 | 2019-09-17T21:37:12 | C++ | UTF-8 | C++ | false | false | 463 | cpp | #include <iostream>
bool isLeapYear(int year);
int main()
{
int input;
std::cout << "Enter a year: ";
std::cin >> input;
if (isLeapYear(input))
std::cout << input << " is a leap year\n";
else
std::cout << input << " is not a leap year\n";
return 0;
}
bool isLeapYear(int year)
{
if (year % 4 == 0)
{
if ... | [
"noreply@github.com"
] | Mvrd0ChF3.noreply@github.com |
f8e61e65f12e90ceb8a79ee07ef0957323367bf0 | 1ab2594e3f73eb5877aef6976cfdb27e56699858 | /src/timetype.cpp | 6717053c405cfff2df3be53bdd9044b58627dbad | [] | no_license | TheGOro/sandbox | 96fe7260ad354480441190e3a0ab30ec28a176ac | afe917e55257505cb39dda57a1d4c9b11ba85f61 | refs/heads/master | 2021-01-17T15:22:30.056735 | 2013-10-30T07:46:08 | 2013-10-30T07:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 633 | cpp |
#include "timetype.h"
#include <cmath>
#include <stdexcept>
sandbox::TimeType::TimeType(const int hour, const int minute) {
// Range check
if (hour > 23 || hour < 0)
throw std::range_error("hour not in range");
if (minute > 59 || minute < 0)
throw std::range_error("minute not i... | [
"goro@goro.hu"
] | goro@goro.hu |
3e8e0c8aa322a275f0ecfaabafd6d3dc7a2b848b | e43f91e7ccb6b5c038ca114c19cd977735de58fa | /platform_gtk.cc | 3758ea14a34daafdde9606f78406ce756ff25aab | [
"BSD-3-Clause"
] | permissive | crosswalk-project/brackets-crosswalk | be0149d2b02188998fd04840df93c105a3d4cf00 | 34892866e50278ac87291137aa222251637a273d | refs/heads/master | 2023-08-18T02:53:57.462043 | 2013-09-12T21:28:08 | 2013-09-12T21:28:08 | 11,175,531 | 1 | 3 | null | 2013-11-22T18:23:23 | 2013-07-04T11:53:56 | C++ | UTF-8 | C++ | false | false | 5,131 | cc | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "platform.h"
#include <cerrno>
#include <cstdio>
#include <gtk/gtk.h>
#include <iostream>
#include <string>
#include <sys/stat.h>
#include <vec... | [
"leandro.pereira@intel.com"
] | leandro.pereira@intel.com |
52fafa439548e187b6aa6e1d88a5d3227d5e343d | cefd6c17774b5c94240d57adccef57d9bba4a2e9 | /WebKit/Source/WebCore/plugins/PluginStream.h | 7c04866a899f8829ed5ead84ffae7caa3d7cc2b6 | [
"BSD-2-Clause",
"LGPL-2.0-only",
"LGPL-2.1-only",
"BSL-1.0"
] | permissive | adzhou/oragle | 9c054c25b24ff0a65cb9639bafd02aac2bcdce8b | 5442d418b87d0da161429ffa5cb83777e9b38e4d | refs/heads/master | 2022-11-01T05:04:59.368831 | 2014-03-12T15:50:08 | 2014-03-12T15:50:08 | 17,238,063 | 0 | 1 | BSL-1.0 | 2022-10-18T04:23:53 | 2014-02-27T05:39:44 | C++ | UTF-8 | C++ | false | false | 4,622 | h | /*
* Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2008 Collabora, Ltd. 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 ... | [
"adzhou@hp.com"
] | adzhou@hp.com |
de823b2a15df829be14fc4496162d7f9dbd29812 | 980bc8d07cfe847a3e6d02bb888aee9cb49f3c4d | /Practica-MPalabrados/MPalabrados5/src/main.cpp | d8a73e664e4caeb52c4519a17d5d284e50a78e23 | [] | no_license | fernandolojano/Metodologia-de-la-Programacion | 9f4fda04db2af75c62acc286638db71e1041bdb1 | f486fe02aff0c2f3450b4efc335b804137f58f10 | refs/heads/master | 2023-03-19T06:18:53.806274 | 2021-03-09T13:01:14 | 2021-03-09T13:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,490 | cpp | /**
* @file main.cpp
* @author DECSAI
* @note To be implemented by students either completely or by giving them
* key functions prototipes to guide the implementation
*/
#include <iostream>
#include <string>
#include <fstream>
#include "language.h"
#include "bag.h"
#include "move.h"
#include "player.h"
#include... | [
"angr7991@hotmail.com"
] | angr7991@hotmail.com |
8303beb4725b1b78fbf60bc358572975c8abab4e | 22b495bf9d1a0fe321d1d101959974a2e1ecc909 | /scopehal/Graph.cpp | 9ccd16173ad8ec25b6946ed943951161f28c311a | [
"BSD-3-Clause"
] | permissive | Toroid-io/scopehal | 1c3383b98a1bb351ca2746b9c87443dc08cf964a | d401cc8cde02e1c1fce3096999553191b080960b | refs/heads/master | 2020-12-01T13:09:20.036985 | 2019-12-16T03:40:41 | 2019-12-16T03:40:41 | 230,635,823 | 0 | 0 | BSD-3-Clause | 2019-12-28T16:41:08 | 2019-12-28T16:41:08 | null | UTF-8 | C++ | false | false | 11,649 | cpp | /***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... | [
"azonenberg@drawersteak.com"
] | azonenberg@drawersteak.com |
504aefbc782fe9bf24fd8487af6f19ac8f778625 | dcec9de6107e8e6b2cffd74adc58cce2532e8a0f | /satori/satori_load_dict.cpp | a7d864010913464abcac74c2380fdb7ae8907c07 | [
"BSD-2-Clause"
] | permissive | yagi/satori | 12f85f0723beb1ee870818f7931fb4bd27459854 | 1eb8dfc95d84948e136256cf97d7241e2f70e530 | refs/heads/master | 2021-01-18T21:22:21.908468 | 2013-01-10T17:18:28 | 2013-01-10T17:25:30 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 10,291 | cpp | #include "satori.h"
#include <fstream>
#include <cassert>
#include <algorithm>
#include "../_/Utilities.h"
#include "satori_load_dict.h"
#ifdef POSIX
# include <iostream>
# include "stltool.h"
#endif
//////////DEBUG/////////////////////////
#ifdef _WINDOWS
#ifdef _DEBUG
#include <crtdbg.h>
#defi... | [
"patama@gmail.com"
] | patama@gmail.com |
a9ec287f67a26df40933daa6f9b56cec9f60c876 | 00ddb9c45922c34fb0cbdb9f00e86ba0b8536347 | /utility/sqstdstring.cpp | a9c6134d7c729f823ba997c06995240b17391718 | [
"MIT",
"Apache-2.0"
] | permissive | EternityForest/Acorns | c80f4ec0fe34a1160179f2108fbd2d0f10bffed4 | 2155cef8d10fccd56f54fc40c6ee072f83f94551 | refs/heads/master | 2021-07-05T21:04:11.066183 | 2020-08-01T07:39:38 | 2020-08-01T07:39:38 | 144,242,415 | 9 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 14,450 | cpp | /* see copyright notice in squirrel.h */
#include <squirrel.h>
#include <sqstdstring.h>
#include <string.h>
#include <stdlib.h>
#include "posix_compat.h"
#include <ctype.h>
#include <assert.h>
#define MAX_FORMAT_LEN 20
#define MAX_WFORMAT_LEN 3
#define ADDITIONAL_FORMAT_SPACE (100*sizeof(SQChar))
static SQBool isfmt... | [
"dannydunn@eternityforest.com"
] | dannydunn@eternityforest.com |
2beb9be7904afc4a79006b8e64794d56ba383060 | e4046dc8548f8d79844152999c398c918a2c3404 | /MonoCamLegoSLAM/include/Image.hpp | de2d2d99dad43e8d64465143fa90879b8207a638 | [] | no_license | timstr/MonoCamLegoSLAM | ca597bc77bdb61bbbf5eb6383c13122a900dd92e | 89401b76a861dce08b29236e23511bc9c5c89c96 | refs/heads/master | 2023-02-07T16:19:57.117553 | 2020-12-22T19:26:59 | 2020-12-22T19:26:59 | 320,461,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | hpp | #pragma once
#include <cstdint>
#include <string>
#include <vector>
/**
* Class representing a greyscale image
*/
class Image {
public:
Image();
Image(unsigned int width, unsigned int height);
void resize(unsigned int width, unsigned int height);
std::uint8_t operator()(unsigned int x, unsigned i... | [
"straubinger.tim@gmail.com"
] | straubinger.tim@gmail.com |
0e073463029c42d34bf744f0b659762bfcde23be | 8751230f16a776e5a61754c7d38c0c2380efbf42 | /src/appleseed/renderer/kernel/rendering/debug/debugtilerenderer.h | 08e0e706d2afa4fbbdd8bee6a20d7b9753ab5ba6 | [
"MIT"
] | permissive | willzhou/appleseed | 0b5dc66480809c92b358264de6e9f628a5758922 | ea08888796006387c800c23b63a8ca7bb3c9b675 | refs/heads/master | 2021-01-20T23:16:42.617460 | 2012-05-31T08:29:22 | 2012-05-31T08:29:22 | 4,506,046 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,191 | h |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2012 Francois Beaune, Jupiter Jazz Limited
//
// Permission is hereby granted, free of charge, to any person obtaining ... | [
"beaune@aist.enst.fr"
] | beaune@aist.enst.fr |
1dd353ca619b2f1c1fbcbbb0c2682f84142c5ce2 | 421f5b6d1a471a554ba99f6052ebc39a67581c96 | /CodeChef/others/beautiful arrays.cpp | a5cd633f6e9280898e61624327cfe1a92d2a2446 | [] | no_license | avinashw50w/practice_problems | 045a2a60998dcf2920a1443319f958ede4f58385 | 1968132eccddb1edeb68babaa05aaa81a7c8ecf3 | refs/heads/master | 2022-08-31T08:39:19.934398 | 2022-08-10T16:11:35 | 2022-08-10T16:11:35 | 193,635,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,285 | cpp | /*An array a is called beautiful if for every pair of numbers ai, aj, (i ≠ j), there exists an ak such that ak = ai * aj. Note that k can be equal to i or j too.
Find out whether the given array a is beautiful or not!
Input
First line of the input contains an integer T denoting the number of test cases. T test c... | [
"avinash.kumar@seenit.in"
] | avinash.kumar@seenit.in |
4b5ebbee1de1981b666b7d88d70dc392974329d0 | 28559880595ca979a0b81d19faf1de3b1611f420 | /Search/Pairs.cpp | 4404aebf01edee64162502ffa5a14f9d67c17e68 | [] | no_license | san018/Algorithms | fe93f9dbb8db8ed192f3b4467f35acde329b1260 | 95d8140e35e35b18d03330733096f2d8b4093e55 | refs/heads/master | 2021-01-16T21:29:04.073403 | 2018-06-09T05:54:15 | 2018-06-09T05:54:15 | 100,231,558 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,447 | cpp | /*
QUESTION:
You will be given an array of integers and a target value.
Determine the number of pairs of array elements that have a difference equal to a target value.
Function prototype:
int solveMeFirst(int x, int y);
where,
x is the first integer input.
y is the second integer input
Return values
sum of the a... | [
"noreply@github.com"
] | san018.noreply@github.com |
513425b86975f42ea5ac168449f470d7b822bd27 | 25d77f8535bf00ecebc0755b41d8fe60390daf85 | /TILE/src/LYSimScintillation.cc | 324105d1bfa323eb1eba0c834de63e1d3f2f5ee0 | [] | no_license | umd-fire-spd/HGCal-Dimple-Tile | ae27cd658d71141cb2349b10b93d009e6c25d1e8 | bc4b333a735415f8c30d551559b75accde2ed1d8 | refs/heads/master | 2020-05-14T22:16:25.910594 | 2019-02-25T15:30:01 | 2019-02-25T15:30:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,936 | cc | #include "LYSimScintillation.hh"
#include <G4VParticleChange.hh>
#include "g4root.hh"
#include "Analysis.hh"
using namespace CLHEP;
//extern std::ofstream outFile;
LYSimScintillation::LYSimScintillation(const G4String &processName, G4ProcessType type)
: G4Scintillation(processName, type)
{
G4AnalysisManager::Inst... | [
"noreply@github.com"
] | umd-fire-spd.noreply@github.com |
a17859097975e975da3a49d940b82f59f352f7e7 | 81df0943447e265990b8a8fd3aa7b801472bfb70 | /backend/registers/rcu/ttcl2_acnt.h | 2c4856bae18c16ee65d296f04a7a0e874e93ea79 | [] | no_license | odjuvsla/phos_dcs_2 | c030be60ed5fad2ed41f93dbd90d90c033b494d4 | ea3533193a6b982162e1ecc4fa811d061aa4d1b0 | refs/heads/master | 2021-01-19T18:11:19.030753 | 2013-03-30T11:05:44 | 2013-03-30T11:05:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,253 | h | /*
Library for controlling and configuring the electronics for
the PHOS detector at the ALICE Experiment
Copyright (C) 2011 Oystein Djuvsland <oystein.djuvsland@gmail.com>,
Henrik Qvigstad <henrik.qvigstad@cern.com>
This library is free software; you can redistr... | [
"henrik.qvigstad@cern.ch"
] | henrik.qvigstad@cern.ch |
88749286470b4651d34fd03129733dafccbcf5dd | 0468852a7a3f0f95179fd8e9f5a8e98560550a3e | /LearningOpenGL/Source/FrameWork/Scenes/StaticMeshTest.cpp | 212602ee9d83ee305a6f3e4f14e501c0f5577ef9 | [] | no_license | coreyao/MyRepository | 816cc047c3cbba8767387482657c5b4111b1bf34 | 13424a2665bb6d0ccdce51f2888c4dbe79c86cd3 | refs/heads/master | 2021-01-21T12:47:09.863256 | 2016-03-28T06:59:57 | 2016-03-28T06:59:57 | 30,702,652 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,735 | cpp | #include "StaticMeshTest.h"
#include "FrameWork/Utility.h"
#include "FrameWork/Mesh.h"
#include "FrameWork/OpenGL/GLProgramManager.h"
#include "FrameWork/Director.h"
void CStaticMeshTest::OnEnter()
{
CBaseScene::OnEnter();
CMesh* planeMesh = new CMesh;
planeMesh->InitFromFile("plane.CSTM");
planeMesh->m_transform... | [
"yjh1023@qq.com"
] | yjh1023@qq.com |
9fd4eb43214b3ca2b22dd6e86ee7956b5e43b1ad | 84a013fb5b18eef599403a0d98bdb7eade52ea44 | /src/providers/PollEventQueue.cpp | 2bb08ac62c1d0ee8ab962f0ac8d7d678ec830f0b | [] | no_license | supersoftcafe/robot | ec753424f6f3d40fc607e5503f6ae078fbe1159c | 124b720f1428457b72a9ddad356958e45384218c | refs/heads/master | 2020-02-26T16:05:57.999455 | 2014-04-12T17:59:33 | 2014-04-12T17:59:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,009 | cpp |
#include <queue>
#include <mutex>
#include <cstring>
#include <iostream>
#include <unistd.h>
#include <sys/eventfd.h>
#include "../interfaces/IFileWatcher.h"
#include "../providers/PollEventQueue.h"
#include "../tools/System.h"
namespace { // Start anonymous namespace
class _PollEventQueue : public PollEventQueue... | [
"michael@supersoftcafe.com"
] | michael@supersoftcafe.com |
e78fe93c2387635b957dbfa332290e2b82a0fe32 | 07d5313b6f7aa7fc421dd244a045e45962b23bf8 | /Common_3/ThirdParty/OpenSource/BulletPhysics/2.82/Demos/BulletXmlImportDemo/main.cpp | c9100183a924eb741bfdcb4852aa6bbeb2866438 | [
"Apache-2.0",
"Zlib",
"LicenseRef-scancode-unknown"
] | permissive | daveansh/The-Forge | 4bc91d1978f6f46ec746d4e690280fcdfe06efbd | 29b377a64230be414eb84b632b8517646a1f9da4 | refs/heads/master | 2022-02-22T21:14:44.125736 | 2019-08-19T20:27:19 | 2019-08-19T20:27:19 | 192,270,664 | 1 | 0 | Apache-2.0 | 2019-06-17T03:44:11 | 2019-06-17T03:44:11 | null | UTF-8 | C++ | false | false | 3,064 | cpp | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/
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.
Permiss... | [
"manas@conffx.com"
] | manas@conffx.com |
8995c98d5403dc6685ae1b63fe30758a2ebbb3e9 | dffd5d8466b51e0f3019b93042166cd96eef23b1 | /unix/QtDossierMetro2011-Qt4/FenetrePlanVille.h | 1d5b1a4931c5cc44b18629c30c2f22eb65cb5cd8 | [] | no_license | maxux/inpres-2eme | 72dcc30dc17ce77c78484f9a302ef7a98717d655 | 3a33b9822d20458996ca87ddf458895e820c88e3 | refs/heads/master | 2021-01-02T09:32:45.395891 | 2015-03-11T23:01:47 | 2015-03-11T23:01:47 | 32,045,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,388 | h | /****************************************************************************
** Form interface generated from reading ui file 'FenetrePlanVille.ui'
**
** Created: ven. oct. 14 12:31:24 2011
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.4 edited Nov 24 2003 $)
**
** WARNING! All changes made in this... | [
"maxux.mobile@gmail.com"
] | maxux.mobile@gmail.com |
43443a1c9bc733dc53315e0e590495e27de678aa | 147446dd49d00a8d304c7b8079270f3ddbeaddb2 | /Peer.cpp | fd33473377ea5fac3f90245f2a057f6c0cf6aa0a | [] | no_license | sro5h/authoritative_multiplayer | 20041159d854ded8cb6cca492ee4cd8abe856c97 | 2386b38679568ff9a2cf506d293a5862ce3fe53b | refs/heads/master | 2023-03-24T10:03:05.560915 | 2018-05-13T16:34:02 | 2018-05-13T16:34:02 | 123,607,244 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,778 | cpp | #include "Peer.hpp"
#include <enet/enet.h>
#include <functional>
Peer::Peer()
: peer(nullptr)
{
}
State Peer::getState()
{
if (!peer)
{
return State::Zombie;
}
switch (peer->state)
{
case ENET_PEER_STATE_ZOMBIE:
r... | [
"meffle.paul@me.com"
] | meffle.paul@me.com |
cdad41b75e02463558c33f9e40d3a0a4c7f830b8 | 5c5a916c937c1163aa8dd69d115173586147d891 | /ByTopic/mix/cpp/Instrument_nop.cc | c9a84173da730c5ac7db7e9b145f3eb79c92fa35 | [] | no_license | tommwq/demo | 37b1214064d6047f3dc6e036fc35638912cb4026 | a010a3fe77cd07cc1c4dbf9480fb584107311352 | refs/heads/master | 2023-05-12T23:21:38.812957 | 2021-07-15T16:06:13 | 2021-07-15T16:06:13 | 164,401,887 | 1 | 0 | null | 2023-05-05T02:24:12 | 2019-01-07T08:34:37 | HTML | UTF-8 | C++ | false | false | 221 | cc | #pragma once
#include "Instrument_nop.hh"
#include <cmath>
#include <stdexcept>
#include <iostream>
#include "Field.hh"
namespace mix {
void Instrument_nop::execute(Machine& machine) const {
return;
}
}
| [
"wangqian2@guosen.com.cn"
] | wangqian2@guosen.com.cn |
67d9fcbd9a544f1e8a8045997cbf13ea84ca9200 | 247f47169a5c167b9772aa8a724a3a90d1745079 | /cs488-master/A4/Material.hpp | 65917aee1ab743a951718729d02dbd675b18f1f7 | [] | no_license | ldct/uw-gitlab | 38e3079101a6fb8dd343e6e420768d6440977d17 | b29f94c977259db81cabf6eedacf63e24c7dfd46 | refs/heads/main | 2023-05-28T05:12:20.706929 | 2021-06-11T06:04:49 | 2021-06-11T06:04:49 | 375,921,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 363 | hpp | // Winter 2020
#pragma once
#include <list>
#include <glm/glm.hpp>
#include "Light.hpp"
class SceneNode;
class Material {
public:
virtual ~Material();
virtual glm::vec3 get_colour(const std::list<Light*>&, glm::vec3& normal, glm::vec3& p, const SceneNode* obstructions, const glm::vec3& eye, const glm::vec3& am... | [
"xuanji@gmail.com"
] | xuanji@gmail.com |
61078a330d331c199688c5e9dfe5ecf4a5ea6922 | 020002377c59e86cfbac6b82e4a37f3c3537d03a | /2012/Ripl/Objects/Landscape.h | 45de991ad7767a4652c62f8d796fb00fa6be8db4 | [] | no_license | jonogilmour/RiplGame | 5a5986c296701c1f6bf49523d004e726ba597abe | c9e477cc4d009804f807f6d3fd6c7c97a4e5797d | refs/heads/master | 2020-05-20T15:30:02.351850 | 2014-10-27T13:13:27 | 2014-10-27T13:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | h | #pragma once
#include "pch.h"
#include "Structures\VertexStructures.h"
#include "Structures\ShaderStructures.h"
namespace Ripl
{
// A simple rectangular plane
class Landscape
{
public:
Landscape(unsigned short sideLengthZ, unsigned short sideLengthX);
uint32 getIndexCount();
uint32 getVertexCount();
std::... | [
"imadedend@gmail.com"
] | imadedend@gmail.com |
047328c16823d54bb917764c20cb605f93c41b29 | afd426edda4c716ae21651ee0315e2ee5523dcb1 | /rabbit.h | adb47eeb9ca254499a5b4920c159e64a4fae7707 | [] | no_license | FikriAnuar/PredatorPreySimulator | d3a2aed2994787e4a0833a6daed09038a1c70fab | 8072024d7565ce9ef775b2979da1490b2d77bd52 | refs/heads/master | 2022-12-10T14:45:40.347289 | 2020-09-08T17:43:17 | 2020-09-08T17:43:17 | 293,876,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | h | //This is the header file rabbit.h.
//This is the interface for the class Rabbit.
#ifndef RABBIT_H
#define RABBIT_H
#include "common.h"
#include <iostream>
using std::cout;
class Rabbit : public Common
{
friend class World;
friend class Grass;
public:
Rabbit();
Rabbit(World *worldPtr, int X, int Y);
void move();
vo... | [
"noreply@github.com"
] | FikriAnuar.noreply@github.com |
355976fca566298b4e4976c96a35873f3cf473df | ece3f0c98eb8a675282dbf42789c3354857aba17 | /src/other/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h | 075447cb43eafebeb03d32abe56d49449279c3aa | [
"MIT"
] | permissive | GanonKuppa/kuwaganon | 4afd8fec2fa05cbd1b3b02d9b6fc747ba269e552 | 91ef0b0021e2fc4474f4f439d697f53e02872b44 | refs/heads/master | 2021-06-24T07:11:08.398352 | 2021-02-08T17:29:02 | 2021-02-08T17:29:02 | 201,558,423 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,054 | h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2012 Désiré Nuentsa-Wakam <desire.nuentsa_wakam@inria.fr>
// Copyright (C) 2015 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. ... | [
"qtfdl94q@gmail.com"
] | qtfdl94q@gmail.com |
d0b7af2a27fb79e8c9d78f6485e47a8fb77df70b | c4c6fa40ec953959ef54a638c7661860e3ae2ded | /xformmatrix.cpp | 02d7dd2c4ad69bd8fe99bd3f91c60fc114e85943 | [] | no_license | sarahsterchele/ComputerGraphics | 51e9ccfc0fd3723e8e70e1a0a26fccadbcfb4556 | c51962cec9a1bdc6d24645b304ebb077338319aa | refs/heads/master | 2021-01-20T17:26:29.196570 | 2017-06-29T18:21:05 | 2017-06-29T18:21:05 | 95,748,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,330 | cpp | #include "xformmatrix.h"
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define PI 3.14159265358979323846264338327
float scaleX = 1;
float scaleY = 1;
float centerX = 0;
float centerY = 0;
XformMatrix::XformMatrix()
{
objectToWorldCTM.resize(4, std::vector<float>(4));
cameraToW... | [
"noreply@github.com"
] | sarahsterchele.noreply@github.com |
c8751ca40094bb42fc6e1b167116d1cfa0c3d459 | be0282afa8dd436619c71d6118c9db455eaf1a29 | /Intermediate/Build/Win64/Design3D/Inc/UnrealEd/ReplaceActorCommandlet.gen.cpp | 20ca52a8c27febe1f8d54ffb6038d85b8c8813fb | [] | no_license | Quant2017/Design3D | 0f915580b222af40ab911021cceef5c26375d7f9 | 94a22386be4aa37aa0f546354cc62958820a4bf6 | refs/heads/master | 2022-04-23T10:44:12.398772 | 2020-04-22T01:02:39 | 2020-04-22T01:02:39 | 262,966,755 | 1 | 0 | null | 2020-05-11T07:12:37 | 2020-05-11T07:12:36 | null | UTF-8 | C++ | false | false | 3,644 | cpp | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... | [
"Snake_Jenny@126.com"
] | Snake_Jenny@126.com |
1d6cfe0cc4af8943de7511e5425a3f16df102094 | 28d68af73c56375314efd07eaf6a1a9241a51ce3 | /aws-cpp-sdk-swf/source/model/DecisionTaskCompletedEventAttributes.cpp | fe44ccbe5f0732578183ba3e5e16837f77869259 | [
"JSON",
"MIT",
"Apache-2.0"
] | permissive | zeliard/aws-sdk-cpp | 93b560791fa359be25b201e9a6513bc3cb415046 | 14119f1f5bc159ce00a1332f86e117362afd3cb6 | refs/heads/master | 2021-01-16T22:49:18.731977 | 2016-01-04T01:54:38 | 2016-01-04T01:54:38 | 41,892,393 | 0 | 1 | null | 2015-09-04T01:35:43 | 2015-09-04T01:35:43 | null | UTF-8 | C++ | false | false | 2,417 | cpp | /*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | [
"henso@amazon.com"
] | henso@amazon.com |
9f119b0a096eb0b7ff209dd3f484955d5fc3e486 | 9abe61f09280bb0148d87273c382adf147a8cfb4 | /src/qt/sendcoinsentry.h | c3daafded116797ff26efe55ce346bae42f5e9de | [
"MIT"
] | permissive | homacoin-project/homacoin | a2d5d2f95a845773d5f8715cd2c6ec01ec588ef3 | 0cd5657ea97d193c1c034dde5659484e1d2f56d0 | refs/heads/master | 2021-01-20T21:34:48.702054 | 2017-08-29T14:31:19 | 2017-08-29T14:31:19 | 101,744,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,296 | h | #ifndef SENDCOINSENTRY_H
#define SENDCOINSENTRY_H
#include <QFrame>
namespace Ui {
class SendCoinsEntry;
}
class WalletModel;
class SendCoinsRecipient;
/** A single entry in the dialog for sending homacoins. */
class SendCoinsEntry : public QFrame
{
Q_OBJECT
public:
explicit SendCoinsEntry(QWidget *pare... | [
"debian@debian"
] | debian@debian |
4b56421e4d70ac4f39bc02783ec68807df11e9a0 | 695bf5d34ff57211da718b69a872e64bcef294db | /c_keccak/do_keccak.cpp | a6353a93391f24827a6739b6f5c25515e18af3c8 | [] | no_license | snow-flake/monero-cpu-miner | 8df4d35b7edab5e6051199bdf0f2a0dc55b88490 | 0259f7c25807ed968390ed66f5dcbb89c726baa9 | refs/heads/master | 2021-09-02T03:16:35.565906 | 2017-12-29T22:08:59 | 2017-12-29T22:08:59 | 115,757,327 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | //
// Created by Snow Flake on 12/28/17.
//
#include "do_keccak.hpp"
#include "c_keccak.hpp"
// compute a keccak hash (md) of given byte length from "in"
int do_keccak(const uint8_t *in, int inlen, uint8_t *md, int mdlen) {
return c_keccak::keccak(in, inlen, md, mdlen);
}
// update the state
void do_keccakf(uint64_... | [
"glenn+snow_flake@mercury-wireless.com"
] | glenn+snow_flake@mercury-wireless.com |
3ef7b8ad73691804e8a055f784e8e3e99beb0b4c | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/blink/renderer/core/testing/mock_hyphenation.cc | 8687f049ff14efcfd6c796d1355dcf6ac2973dd7 | [
"LGPL-2.0-only",
"BSD-2-Clause",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | C++ | false | false | 754 | 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 "third_party/blink/renderer/core/testing/mock_hyphenation.h"
namespace blink {
size_t MockHyphenation::LastHyphenLocation(const StringView& tex... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
3b8dfaf3631d4a46cb203564b7c2695a40858eaa | a4ac49a6d7f9726884cae2549796556721b8bc79 | /ESO207/PA3/Q2_revisited.cpp | 1a872f72ed3fe4243f1a6261829c3e9a27deb29a | [] | no_license | yadamit/ESO207 | 4d5ae339aa233dee005e522ced928b59d332e906 | 464c0b969e646d4222709083e5b90a7ede7c6728 | refs/heads/master | 2020-03-22T01:40:26.820519 | 2018-08-08T06:59:30 | 2018-08-08T06:59:30 | 139,321,662 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,330 | cpp | // 28th June 2018
// Practicing cpp-codes
// completed successfully on the same day
#include<iostream>
using namespace std;
typedef struct Node{
string w; //word
int l_count;
struct Node* left;
struct Node* right;
struct Node* parent;
}Node;
Node* createNode(string word){
Node* temp;
temp = (Node*)call... | [
"yamit@iitk.ac.in"
] | yamit@iitk.ac.in |
328b9ebb92ce0852e28b8e89dbc5c9bf82e112a6 | 086a72a391984a14feab432e484a66359925715b | /pscore/core/resource_manager.cc | 78a4ea5e91f953e151f2c359cfac6edba9013f70 | [] | no_license | Superjomn/pscore | 966e8dd25b098cf9d2e2b36ebb0c182494454463 | 0cbe6d3caab30ba73646d0af0e61dfed1ea9f333 | refs/heads/master | 2023-06-02T21:24:13.582567 | 2021-06-28T07:28:20 | 2021-06-28T07:28:20 | 377,822,009 | 0 | 0 | null | 2021-06-28T07:28:20 | 2021-06-17T12:24:44 | C++ | UTF-8 | C++ | false | false | 83 | cc | #include "pscore/core/resource_manager.h"
namespace pscore {} // namespace pscore | [
"yanchunwei@outlook.com"
] | yanchunwei@outlook.com |
e1bb81ac0bdb8d63904962de92ca6dd97684880e | 80befea69a606b439866f4ae2ca819ca528b0d04 | /primer/ch03/exercise/ex02_1.cc | d225a28c1ae5c78ac863232eb2feeafcbb16b625 | [
"BSD-3-Clause"
] | permissive | dantin/cpp-by-example | 9b76ccd40b70455d5faf4252687ea932512eddfa | 7b2295fa09785d23db4ba9e8c624a33ad439db00 | refs/heads/master | 2020-12-30T03:01:01.352116 | 2020-07-15T03:16:52 | 2020-07-15T03:16:52 | 238,839,483 | 0 | 0 | BSD-3-Clause | 2020-07-15T03:16:54 | 2020-02-07T03:56:26 | C++ | UTF-8 | C++ | false | false | 219 | cc | #include <string>
#include <iostream>
using std::string;
using std::cin;
using std::cout;
using std::endl;
int main() {
string word;
while (cin >> word) {
cout << word << endl;
}
return 0;
}
| [
"noreply@github.com"
] | dantin.noreply@github.com |
93d5e2d9825e207d51636d85924f71f6b2083701 | 548bbf24c513f4a21d5b40572b47893b68c4a92e | /ExpectationMaximizationModule/src/ExpectationMaximizationModuleMain.cpp | b7153f08e754033c90b539466b19240db77a459d | [] | no_license | vliedel/aim_modules | 2b7812fb5a568c9807b8a376745830405f028a0c | dcb755f21ff1efb029eb3570dc49caf44e816c21 | refs/heads/master | 2020-05-30T17:13:39.243658 | 2014-12-08T16:24:59 | 2014-12-08T16:24:59 | 10,838,505 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,779 | cpp | /**
* @file ExpectationMaximizationModuleMain.cpp
* @brief ...
*
* This file is created at Almende B.V. It is open-source software and part of the Common
* Hybrid Agent Platform (CHAP). A toolbox with a lot of open-source tools, ranging from
* thread pools and TCP/IP components to control architectures and lear... | [
"bart@dobots.nl"
] | bart@dobots.nl |
81a9374fe056eb3cdba4aa4c434d78335613c06f | 33035c05aad9bca0b0cefd67529bdd70399a9e04 | /src/boost_qvm_gen_mat_assign4.hpp | 2c9ce07ce6dc20f2904d6a16afd2dca528e07137 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | elvisbugs/BoostForArduino | 7e2427ded5fd030231918524f6a91554085a8e64 | b8c912bf671868e2182aa703ed34076c59acf474 | refs/heads/master | 2023-03-25T13:11:58.527671 | 2021-03-27T02:37:29 | 2021-03-27T02:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41 | hpp | #include <boost/qvm/gen/mat_assign4.hpp>
| [
"k@kekyo.net"
] | k@kekyo.net |
caf4832028344ea1fa971e7cd74e771261dcdb10 | 4255fcba4718c888eb32e4530b736ef037882d28 | /APIs_Drivers/DigitalInOut_ex_1/main.cpp | 24d85e25848892c495063a9dccb319140fa24d14 | [
"Apache-2.0"
] | permissive | ARMmbed/mbed-os-examples-docs_only | e2fb92478a847c2578c7950a510ae2730b3eccc4 | d955550449cc6ac7d1151550f2a058803a2986ee | refs/heads/master | 2023-07-05T06:05:59.974508 | 2021-09-19T22:47:14 | 2021-09-19T22:47:14 | 152,603,832 | 6 | 28 | Apache-2.0 | 2021-09-19T22:47:15 | 2018-10-11T14:19:44 | C++ | UTF-8 | C++ | false | false | 728 | cpp | /*
* Copyright (c) 2006-2020 Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*/
#include "mbed.h"
DigitalInOut mypin(LED1);
int main()
{
// check that mypin object is initialized and connected to a pin
if (mypin.is_connected()) {
printf("mypin is initialized and connected!\n\r");... | [
"maciej.bocianski@gmail.com"
] | maciej.bocianski@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.