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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
92f1c453bd6ae333579275bc8fa8048803761e16 | 36c31b485a5906ab514c964491b8f001a70a67f5 | /Codeforces/CF 1400 - 1499/CF1428/CF1428E.cpp | 58109619c24ee1054cca87e1fb35da1ce3dde274 | [] | no_license | SMiles02/CompetitiveProgramming | 77926918d5512824900384639955b31b0d0a5841 | 035040538c7e2102a88a2e3587e1ca984a2d9568 | refs/heads/master | 2023-08-18T22:14:09.997704 | 2023-08-13T20:30:42 | 2023-08-13T20:30:42 | 277,504,801 | 25 | 5 | null | 2022-11-01T01:34:30 | 2020-07-06T09:54:44 | C++ | UTF-8 | C++ | false | false | 821 | cpp | #include <bits/stdc++.h>
#define ll long long
#define pii pair<ll,int>
#define f first
#define s second
using namespace std;
ll sq(ll x)
{
return x*x;
}
ll calc(ll x, ll k)
{
return k*sq(x/k)+(x%k)*(sq(x/k+1)-sq(x/k));
}
ll calc_diff(ll x, ll k1, ll k2)
{
return calc(x,k1)-calc(x,k2);
}
int main()
{
... | [
"mahajan.suneet2002@gmail.com"
] | mahajan.suneet2002@gmail.com |
536fabad4e65d386b52472edd4c49054f33f418f | 8180be741e48a7f4e6fddb88a25a0aa55163abc0 | /history/2018/94_Binary_Tree_Inorder_Traversal.cpp | 18f454765fcc5c8d10145d50aa99fbe66a04dfa0 | [
"MIT"
] | permissive | CanftIn/leetcode | e386559b6ab7d4bb2607ee5e147b91b2daeb7384 | be24348e7401d30e10e57d8b65165f74cf73a193 | refs/heads/master | 2023-08-29T01:04:40.309214 | 2023-08-07T02:11:45 | 2023-08-07T02:11:45 | 106,363,072 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,579 | cpp |
TrinULL)1 {}
};
class Solution {
public:
vector<int> inorderTraversal(TreeNode* root) {
vector<int> res;
if(root == NULL) return res;
helper(res, root);
return res;
}
private:
void helper(vector<int>& res, TreeNode* root)
{
if(root == NULL) return ;
... | [
"wwc7033@gmail.com"
] | wwc7033@gmail.com |
2cecf58fe8dd27354d59baf222305c2326fcb63c | 6b84d7ef75086a7106e2a9e61ed9b5c26987fcea | /Code/Common/BoundingBox.cpp | ec77cb4de094b4a1d807c75e4059adcbdb2321fd | [] | no_license | astralis3d/DX11Framework | e53cacaebe09266f6321dd62d1015a9c60accdf3 | 002c7fb2fd9e50a4ced416fbed169c09b0659650 | refs/heads/master | 2020-03-20T06:02:59.863704 | 2018-06-13T16:20:23 | 2018-06-13T16:20:23 | 137,236,339 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,272 | cpp | #include "PCH.h"
#include "BoundingBox.h"
#include "Defines.h"
SBoundingBox::SBoundingBox()
: m_clrBox(1.f, 0.f, 0.f)
, m_clrDiagonal(0.f, 0.5f, 1.f)
, m_bDrawDiagonal(true)
{
}
void SBoundingBox::Init(const Vec3& vMin, const Vec3& vMax)
{
m_obb[0] = vMin; // xyz
m_obb[1] = Vec3(vMax.x, vMin.y, vMin.z); /... | [
"mnagorka96@gmail.com"
] | mnagorka96@gmail.com |
387b87687a47bdb649c211dd924c2aaebfd639fb | a9ba52226f0f2f40b123aaa3a7ed798006d0f2a3 | /对称轴(ACM Seoul 2004)/main.cpp | df66877799925ca2182f8e0cda4fb1d0c3fc2d2c | [] | no_license | Wu0409/NOIP_solution | 21dd9048ec45d7386c67050c75ecb2c9381b97fb | 23815f3863c483966e7ec062c1b2cab383da0b49 | refs/heads/master | 2023-08-08T01:39:50.919380 | 2020-03-30T14:22:35 | 2020-03-30T14:22:35 | 235,752,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,427 | cpp | //书本P135
//考察:STL
//QUESTION:找对称轴
#include <iostream>
#include <vector>
typedef struct point{
int x;
int y;
point(int a,int b):x(a),y(b){}
bool operator < (const point& other) const{
return x < other.x;
}
};
using namespace std;
int main() {
//point a(-2,5); point b(0,0); point c(2... | [
"872093177@qq.com"
] | 872093177@qq.com |
a4388136db5938ab2c468ecdaebb1f6560402142 | 4979915833a11a0306b66a25a91fadd009e7d863 | /src/devices/lib/driver2/test_base.h | d0d883d347c6fb5aaaadb3374395450d968fd383 | [
"BSD-2-Clause"
] | permissive | dreamboy9/fuchsia | 1f39918fb8fe71d785b43b90e0b3128d440bd33f | 4ec0c406a28f193fe6e7376ee7696cca0532d4ba | refs/heads/master | 2023-05-08T02:11:06.045588 | 2021-06-03T01:59:17 | 2021-06-03T01:59:17 | 373,352,924 | 0 | 0 | NOASSERTION | 2021-06-03T01:59:18 | 2021-06-03T01:58:57 | null | UTF-8 | C++ | false | false | 863 | h | // Copyright 2020 The Fuchsia 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 <fuchsia/io/cpp/fidl_test_base.h>
class TestDirectory : public fuchsia::io::testing::Directory_TestBase {
public:
using OpenHandler =
fi... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
e544d277bafdecc6648662caa1b5323c48bcbc88 | 37ddb323fccf83fb74a469b0b9e2bcb493cca307 | /code/客户端界面_逻辑代码/File/MyFile.cpp | 39f0014f9347f6a57b63c422ca6e768cee74f7de | [] | no_license | song19931111/CDNProject | e52dec64ddacc33fc38fbabc53a814f255d423c8 | 373c00523c33faf00a914fec0f813de40234b4ac | refs/heads/master | 2020-05-30T08:39:23.495196 | 2016-09-30T03:28:10 | 2016-09-30T03:28:10 | 69,630,209 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 26,293 | cpp | #include "MyFile.h"
long CMyFile::lMinLength = 4*sizeof(int)+4*sizeof(long)+sizeof(char *)+sizeof(__int64)+1*sizeof(DWORD);
CMyFile::CMyFile(const char *pAllPath):m_pFileBlockInfo(NULL),m_bOpenFileMap(false),m_handleMap(NULL),m_bLittleReadFlag(false),m_bLittleWriteFlag(false),m_Raddr(NULL),m_Waddr(NULL),m_i64WriteFileP... | [
"songxiang93@sina.com"
] | songxiang93@sina.com |
bc0b1033a5bc09a5d6514ef121576cc738046249 | 4bbac761f59a0c54c96c2d5ed879a5d9646a0377 | /C++ Programs/div_sum.cpp | d9eb91ac58781c9971e943647d462c9d4a9f2afa | [] | no_license | shamalI20/Jupyter-Notebook | dbbb1aad8bf2b02186ba5335ec4ac541368da03a | 863228f6d147f12a06a37ca8931ac4a64010db55 | refs/heads/main | 2023-07-03T11:07:25.343800 | 2021-08-04T14:04:08 | 2021-08-04T14:04:08 | 378,224,264 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 368 | cpp | #include<iostream>
using namespace std;
int main(){
int num, s;
cout <<"Enter a number: ";
cin>> s;
for(int i=0; i<s; i++){
if(i%3 ==0){
num = num+i;
cout<<i <<" ";
}
else if(i%5 == 0){
num = num +1;
cout << i;
}
cout <<... | [
"85833845+shamalI20@users.noreply.github.com"
] | 85833845+shamalI20@users.noreply.github.com |
42d63793d26febdb44f96cb33f43d759db01ef66 | a06e6356e425fc6836a20061d5bfde56582a3a3b | /MultiNetworkMonstrocity/Node.h | a31d59b486f5f2c59af9597efd099e812c3c39a3 | [] | no_license | Rariolu/MultiNetworkMonstrocity | b15c5a4434d0b7b0dd3ef2e5460032feed412723 | 8be7ec8a95e761115ebd3f9be9ee148d46c7e8b9 | refs/heads/master | 2020-04-27T11:43:59.250484 | 2019-03-07T08:44:33 | 2019-03-07T08:44:33 | 174,305,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,415 | h | #ifndef _NODE_H
#define _NODE_H
#include "Resources.h"
class Node
{
public:
class Link
{
public:
Link(Node* s, Node* d) : Link(s,d,Operations::randd->NextDouble(-10,10))
{
}
Link(Node* s, Node* d, double w) : source(s), destination(d), weight(w)
{
}
~Link()
{
}
Node*... | [
"rcoyneyr82011@gmail.com"
] | rcoyneyr82011@gmail.com |
594aeae68a2fb8ae3e110140fd493fc0e146ada1 | 7586457f3282ad0535042b0726b8d922034a3a7e | /libsysapi/reboot.h | 113d6cbf580bb3898284ca0004f73a9dc1f6cff0 | [] | no_license | gfv/initd | 461934c26b7bb899f1f679b57db8444a7ead6b24 | afe71ea6ad0653031268818eea293673cd93b614 | refs/heads/master | 2021-01-16T19:58:12.860232 | 2014-03-18T21:40:35 | 2014-03-18T21:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 105 | h | #ifndef REBOOT_H
#define REBOOT_H
namespace sysapi
{
void reboot();
void power_off();
}
#endif
| [
"sorokin@rain.ifmo.ru"
] | sorokin@rain.ifmo.ru |
d947969725b8a33e9f8b9188114d4af627a62883 | 5a080f19249d55ae05450a56941e63b4ff0c7fa0 | /LAB11/LAB11.6.cpp | 6a4895a7010fd066b82c8a50c27db40c6346e887 | [] | no_license | Lichitek/VVP | d86457b93311241e8ad33799726aad54c0f02e2b | 45e81515ccb8e987f661a68aa7f1d83e4dc5cdc9 | refs/heads/master | 2023-02-16T08:33:32.871168 | 2021-01-17T14:43:51 | 2021-01-17T14:43:51 | 296,854,984 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 732 | cpp | #include <stdio.h>
#include <locale.h>
int main()
{
int a;
setlocale(LC_ALL, "RUS");
scanf_s("%d", &a);
if (a < 10)
{
if (a % 2 == 0)
{
printf("чётное однозначное число");
}
else
{
printf("нечётное однозначное число");
}
}
if ((10 <= a)&&(a<100))
{
if (a % 2 == 0)
{
... | [
"noreply@github.com"
] | Lichitek.noreply@github.com |
ecedf1a9e5d13d77a9c22be4ad974a3a28e306d6 | f941477e317cfbc2e04946379f3d2c48427d5206 | /170411/1325.cpp | 5882a178a8d961fa1aa3a431d4f15274205a5ad5 | [] | no_license | SangHyeon/Algoritm-practice | 9167b90173dae3d1fd800eb037d0d0021e0022c0 | a435805198f20f001a8b3ba17d9f5d0dea84ed53 | refs/heads/master | 2020-12-29T02:44:39.873014 | 2017-04-13T13:39:14 | 2017-04-13T13:39:14 | 39,385,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,050 | cpp | #include<iostream>
#include<deque>
#include<vector>
#include<cstdio>
#include<cstring>
using namespace std;
vector<int> table[10005];
bool visited[10005];
unsigned short result[10005];
int main() {
int N,M;
int max_val = 0;
cin>>N>>M;
for(int i=0; i<M; i++) {
int a, b;
cin>>a>>b;
... | [
"sktkddusrj@naver.com"
] | sktkddusrj@naver.com |
2bb2a9fb6c1fd60f98403faf2fa06b18bcfff3cb | 094d51676ae6ef83fcc67381b5c9dfa92243cf3f | /Win32Project1/depthshaderclass.h | f65b8355fce740e220c5f1627d6ba77d53ee7602 | [] | no_license | jobsanta/LeapCalibration | e1ae0a4101646a154716cc008748ce80a4e0896a | cdc61c99b9d65f64663479a4dee8795d3c2600d9 | refs/heads/master | 2020-04-06T06:25:39.898449 | 2017-08-30T07:26:47 | 2017-08-30T07:26:47 | 73,818,076 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,469 | h | ////////////////////////////////////////////////////////////////////////////////
// Filename: depthshaderclass.h
////////////////////////////////////////////////////////////////////////////////
#ifndef _DEPTHSHADERCLASS_H_
#define _DEPTHSHADERCLASS_H_
//////////////
// INCLUDES //
//////////////
#include <d3d11.h>
#in... | [
"job.santawat@gmail.com"
] | job.santawat@gmail.com |
ae8afad0951f4f7387a18eb15e2018330361e9af | de83c50932934e107c0b1b8123ccd163c6f984c7 | /Client/addonefriend.h | c9be60c64cb2420625608352d511553bc59349d1 | [
"MIT"
] | permissive | sylar-cong/IM | 97fbedec8ded943bafa793d3b5824215dfaba13c | 3b55e4894258415ced17b3e46b4532eb5d3f4b40 | refs/heads/master | 2021-09-15T13:44:04.334445 | 2018-06-03T03:45:04 | 2018-06-03T03:45:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,084 | h | #ifndef ADDONEFRIEND_H
#define ADDONEFRIEND_H
#include <QAbstractSocket>
#include <QHostAddress>
#include <QPushButton>
#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QMouseEvent>
#include <QUdpSocket>
class AddOneFriend : public QWidget
{
Q_OBJECT
public:
explicit AddOn... | [
"1070474114@qq.com"
] | 1070474114@qq.com |
0aea3e845dac2ab44f3f670e83f35855ea65f503 | 9c1114c8aa924d44a147fe9cb6b51c3c674876f0 | /FSMNameDrived/Source/FSMEditor/Private/GraphEditor/FSMGraph.cpp | 87a32886106582448600de5ba57381e6d74811aa | [] | no_license | kongbawa/UE4_Plugin_FSMNameDrived | bfb87c74f3bb60a2a6e826dbba9084bd8791b668 | 3987c8375d2bc5fa141bd7199481c95e109f26d2 | refs/heads/master | 2022-02-23T09:33:42.681914 | 2019-10-08T07:32:21 | 2019-10-08T07:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | #include "GraphEditor/FSMGraph.h"
#include "FSM.h"
UFSM * UFSMGraph::GetFSM() const
{
//return CastChecked<UFSM>(GetOuter());
return GetTypedOuter<UFSM>();
}
bool UFSMGraph::Modify(bool bAlwaysMarkDirty)
{
if (!CanModify()) {
return false;
}
bool bSaved = Super::Modify(bAlwaysMarkDirty);
return bSaved;
}
| [
"1762757171@qq.com"
] | 1762757171@qq.com |
80a2bca5826bfa7fd6e96e4f9c504ad944b0e264 | 3cbdf4c7c15369610c22cccf7d2e84948ef73c73 | /kattis/addingwords/addingwords.cpp | 08feefe67917af7f5d0ebc9d1dc21acf71a25c33 | [] | no_license | tiuweehan/cppcp | 8840089b692c243dd31a879ab88c7594fe0dbdc2 | b3488061ed597b77359bbcf68a07a23d07eb204e | refs/heads/master | 2023-08-23T23:53:10.184000 | 2021-10-04T02:58:24 | 2021-10-04T02:58:24 | 193,793,229 | 0 | 0 | null | 2021-10-04T02:58:24 | 2019-06-25T22:47:01 | C++ | UTF-8 | C++ | false | false | 2,316 | cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define mst(a,b) memset((a),(b),sizeof(a))
#define mp(a,b) make_pair(a,b)
#define pi acos(-1)
#define pii pair<int,int>
#define pb push_back
#define IOSBASE ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
const int... | [
"deantiu56@gmail.com"
] | deantiu56@gmail.com |
51ae276b6a76807d77ce44f275db07e64fd9e530 | a9c155159a158a6e3df320e405fd88672cb88574 | /MemoryPool/MemoryPool/소스.cpp | daf653ed2424deb6d5c7de990894d53e7f8529e4 | [] | no_license | Jinsense/study | a8e6591ce8f0ba11b920ab2638113da20b99a3d8 | 75dff76deced24b63d823a1e8f7f6a61e2682f68 | refs/heads/master | 2021-05-12T12:51:43.402587 | 2018-02-23T10:08:43 | 2018-02-23T10:08:43 | 117,422,158 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,213 | cpp | #pragma comment(lib, "ws2_32")
#pragma comment(lib, "Winmm.lib")
#include <iostream>
#include <Windows.h>
#include <process.h>
#include <map>
#include <time.h>
#include "Profiling.h"
//#include "CCrashDump.h"
#include "ChatServer_MemoryPool.h"
using std::map;
using std::pair;
long g_order = 0;
int g_TEST_Count = 10... | [
"jhs9253@gmail.com"
] | jhs9253@gmail.com |
6088ef6c4c2105e9e77df59bc98fdd459823b0de | cf1d13e80dadf46e3a5af3f733ce6b2df00cca86 | /Items/src/SwordOneHand.cpp | 6bdf0a014bd886ceb91346f0cc4e54f6f8cd364e | [] | no_license | AlexPavlak/PoeItemCrafter | 2f7186507a8d1d3e6f521b34b61a3a0d0ced958e | 61678d61f641ebef3c7f3aa0403056c140a33430 | refs/heads/master | 2020-04-14T09:32:19.389698 | 2019-03-19T13:56:16 | 2019-03-19T13:56:16 | 163,762,388 | 0 | 0 | null | 2019-03-19T13:56:17 | 2019-01-01T19:52:14 | C++ | UTF-8 | C++ | false | false | 2,337 | cpp | #include "../Headers/SwordOneHand.h"
SwordOneHand::SwordOneHand(){
}
void SwordOneHand::fillPrefix(){
std::string currentLine;
std::string type;
float requiredLevel;
float lowerMin;
float lowerMax;
float upperMin;
float upperMax;
std::string name;
std::ifstream prefixes;
//... | [
"alexander.pavlak@mavs.uta.edu"
] | alexander.pavlak@mavs.uta.edu |
9526b5a96f92cf24bceed924199baeba687be1c0 | 0c8c91fc6b5557ad92a7870ab4784201693d4ebb | /1023A.cpp | 54c14aef90ed0a842977bd6ab9045e1427f7a7f0 | [] | no_license | AndreicaRadu/Infoarena-and-Codeforces-Problems | 0b477302fda0b1c77f74f30c1b9f2119045b7c22 | 05d3ae0328b29df109b9abd47776b83c899fcb5b | refs/heads/master | 2020-04-30T17:06:43.319351 | 2020-02-08T17:33:55 | 2020-02-08T17:33:55 | 176,969,172 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
string s1 , s2;
int l1 , l2;
cin >> l1 >> l2 >> s1 >> s2;
if(s1 == s2)
{
cout << "YES";
return 0;
}
if(l1 > l2+1)
{
cout << "NO";
return 0;
}
int i=0;
while(s1[i] != '*')... | [
"noreply@github.com"
] | AndreicaRadu.noreply@github.com |
899ebe5b0100af4b12423440c044dda3b820354f | 3d8060ce1aa7fffb2ac1cfa52427f478eba47c09 | /protocol_connection_module.cpp | f63e4729e6041e1a3502d23eb11efcbb07fdd05b | [] | no_license | Mike2208/Silkstring | c3d7f96c9f0c2edc79a638b938c383f4001bff39 | fb490779923d92a270eefd0d7fc25debf9b783d8 | refs/heads/master | 2021-05-15T15:51:33.272969 | 2017-10-18T15:23:03 | 2017-10-18T15:23:03 | 107,426,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,553 | cpp | #include "protocol_connection_module.h"
#include "error_exception.h"
namespace protocol_connection_module
{
using namespace error_exception;
constexpr decltype(ProtocolConnectionModule::ModuleID) ProtocolConnectionModule::ModuleID;
ProtocolConnectionModule::ProtocolConnectionModule(ProtocolNetworkConnection &Conn... | [
"mike09403@gmail.com"
] | mike09403@gmail.com |
96044e044032801dc6f408a0a4a099cc283af542 | 74ca0502be3ea74703928bfa458e87a4335866f9 | /isode++/code/iso/itu/osi/als/tsap/tpdu/TPCI.h | 8fef733d0f7788d46037f5c6dfcb85f022a87869 | [
"Apache-2.0"
] | permissive | Kampbell/ISODE | a80682dab1ee293a2711a687fc10660aae546933 | affd47713e792f7797150f237b10764577e5e067 | refs/heads/master | 2021-01-10T15:56:44.788906 | 2016-02-18T10:48:55 | 2016-02-18T10:48:55 | 52,000,870 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,160 | h | /*
* TPDU.h
*
* Created on: 29 juil. 2014
* Author: FrancisANDRE
*/
#ifndef ALS_TSAP_TPCI_TPCI_H_
#define ALS_TSAP_TPCI_TPCI_H_
#include <memory>
using std::unique_ptr;
#include "als/tsap/tsap.h"
#include "als/base/util/NetworkBuffer.h"
using namespace ALS::BASE::UTIL;
namespace ALS {
namespace TSAP {
n... | [
"zosrothko@orange.fr"
] | zosrothko@orange.fr |
8b2bbe49f79317749b964cf95003bfbb61ea43ad | 337186a71e9077bb7900c713b799ce2dfb0246a6 | /newcoder/手机键盘/Untitled2.cpp | f5c5ee43d492fa18beef492b66334d03b4b010f5 | [] | no_license | L1B0/Algorithm-Training | 907b388a8c7704bd25b6f00282671c79da822a43 | ed6c35e9a3bb0b6200bf8d85c643043fc03f203a | refs/heads/master | 2022-05-07T10:10:05.438550 | 2022-04-28T06:55:56 | 2022-04-28T06:55:56 | 195,180,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | #include<stdio.h>
#include<string.h>
int flag[26]={1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,6,7,7,7,8,8,8,8};
int main()
{
char s[101];
while(gets(s))
{
int num=0;
for(int i=0;i<strlen(s);i++)
{
if( s[i] < 'p' ) num += (s[i]-'a')%3+1;
else if( s[i] < 't' ) num += s[i]-'p'+1;
else if( s[i] ... | [
"noreply@github.com"
] | L1B0.noreply@github.com |
a4df5c954a3d90bc3b920e0aad9e8c0d2ba2d4c0 | 470fae08316b55246ab01675ac5013febfb13eee | /src/server/game/Server/Packets/ItemPackets.cpp | 7a0554204df556259f02c261a5af89f3c5aa766e | [] | no_license | adde13372/shadowcore | 8db6fb6ccc99821e6bd40237a0c284ce7cf543c2 | aa87944193ce02f6e99f7b35eceac5023abfca1b | refs/heads/main | 2023-04-01T07:38:39.359558 | 2021-04-03T07:54:17 | 2021-04-03T07:54:17 | 354,320,611 | 4 | 8 | null | 2021-04-03T15:02:49 | 2021-04-03T15:02:49 | null | UTF-8 | C++ | false | false | 8,815 | cpp | /*
* Copyright 2021 ShadowCore
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed... | [
"81566364+NemoPRM@users.noreply.github.com"
] | 81566364+NemoPRM@users.noreply.github.com |
6a5c2949ea9a3b55282cda87677b49c7501f6509 | fd57affc6d977378fc2bd4ba783272503079e6eb | /Product Management at Supermarket.cpp | 5ab87012ae7d70f9f43bab528cb2bb6d031a2fa8 | [] | no_license | DennoDenice/Product-Management-at-Supermarket | a40b5d8e99a1bfdd49b5c45d1a1ad3b5c68e5d0b | 7d7f3c00d1339d1fcb902fbb16fbddc6c16d7c29 | refs/heads/master | 2022-11-27T03:32:46.324026 | 2020-08-06T15:40:38 | 2020-08-06T15:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,251 | cpp | #include<fstream.h>
#include<conio.h>
#include<process.h>
#include<stdlib.h>
#include<stdio.h>
#include<iomanip.h>
#include<string.h>
#include<graphics.h>
#include<dos.h>
/*********************************************************
CLASS SHOP
*******************************************************... | [
"noreply@github.com"
] | DennoDenice.noreply@github.com |
cf0ad27c3a09e2a27913bd5b303ec00d322c50aa | 9025122c7acbda232fd29d9ace6a3a7fedb52cb3 | /Centipede/GameComponents/CentipedeBody.h | 3031f3d003788968b7e25f911040eb2d0069f8ef | [
"MIT"
] | permissive | anunez97/centipede | 23f3bd7f8d43040ab0a706ef4ceabab535570fe9 | 871bb505c7726dfa4b16caeb0f5b9c2d0e2660f8 | refs/heads/main | 2023-02-06T22:33:40.667941 | 2020-12-30T08:22:35 | 2020-12-30T08:22:35 | 325,490,466 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,381 | h | // Centipede Body
#ifndef _CentipedeBody
#define _CentipedeBody
#include "TEAL/CommonElements.h"
#include "Centipede.h"
class MushroomField;
class Blaster;
class Bullet;
class MoveState;
class CmdScore;
class CentipedeBody : public Centipede
{
public:
CentipedeBody();
CentipedeBody(CentipedeBody... | [
"noreply@github.com"
] | anunez97.noreply@github.com |
a7a3161367af4b4960f639ff26d9490db6bdc1ae | f62072e737805aa9156040a699365aace14140f1 | /aws-cpp-sdk-ec2/include/aws/ec2/model/InstanceMetadataOptionsResponse.h | 935937dfac24b3034001b6929582a397d2778796 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | neil-b/aws-sdk-cpp | 07e8e4e197cefff2ae60ab7d1b84bdb65be2c8f9 | 1602b75abbca880b770c12788f6d2bac0c87176a | refs/heads/master | 2022-11-20T16:50:19.236474 | 2020-07-08T19:05:34 | 2020-07-08T19:05:34 | 278,437,421 | 0 | 0 | Apache-2.0 | 2020-07-09T18:10:14 | 2020-07-09T18:10:14 | null | UTF-8 | C++ | false | false | 14,680 | h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/ec2/model/InstanceMetadataOptionsState.h>
#include <aws/ec2/model/HttpTokensState.h>
#in... | [
"aws-sdk-cpp-automation@github.com"
] | aws-sdk-cpp-automation@github.com |
acd22c4c854c1c9689a61f844b8c20ea72cb0987 | 6f07dc170402c744bb589cd43882175906c0a012 | /tests/ping.cc | aba6781ea8bddfba44b2d59881ce0e4bec999fcb | [] | no_license | pwidene/drift | 3c809c9eba36aaed2a36cdaf8372e9128bf25e03 | b661105533462ccfb1375633e57e7c38b293ca08 | refs/heads/master | 2021-01-10T04:44:36.407794 | 2017-11-20T22:48:26 | 2017-11-20T22:48:26 | 45,771,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,878 | cc | #include <iostream>
#include <fstream>
#include <boost/program_options.hpp>
extern "C" {
#include "evpath.h"
#include "atl.h"
}
#include "../src/formats.h"
using namespace std;
using namespace boost;
CManager cm;
int terminate_condition;
static
int
ping_handler( CManager cm, void* vevent, void* cdata, attr_list a... | [
"patrick.widener@sandia.gov"
] | patrick.widener@sandia.gov |
3e3869c7037632b4a5abf43117400d0a174bc141 | b42cdb5e1a7d1fb52a22330096d95faf583d81f0 | /camera.h | 4b816af7f2d23e68ce239f3d2f872e58ed91a44e | [] | no_license | tvieira99/apropengk | 89fab088406f3832e3bbe9de67080c026b56e062 | bbf3e5ce7fcf17462582f10eb3e1f06724a8db1b | refs/heads/master | 2022-11-16T00:37:36.191422 | 2020-06-30T23:35:09 | 2020-06-30T23:35:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | h | #ifndef CAMERA_H
#define CAMERA_H
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <math.h>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
class Camera
{
public:
bool firstMouse;
float lastX;
float lastY;
float yaw;
... | [
"noreply@github.com"
] | tvieira99.noreply@github.com |
0078154c45a8b14dee958c88cd08c98b81cccdbe | 93ee0186c389f7e57a6f97188049b79e91cde5b1 | /04 UnionFind/UnionFind/UnionFind/UnionFind1.h | 313ff884fc43c7b0f98d18e7a845ed3db492a09f | [] | no_license | BessieChen/Algorithms | e737c6a3a1152d6b3986d4504b292f7bc31b806b | 14ff4e4b53b3e23d2aebde14b8c92ef4fc7b9e27 | refs/heads/master | 2021-02-07T23:41:58.302326 | 2020-03-01T04:40:31 | 2020-03-01T04:40:31 | 244,088,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,155 | h | //
// UnionFind1.h
// UnionFind
//
// Created by 陈贝茜 on 2019/8/20.
// Copyright © 2019 Bessie Chen. All rights reserved.
//
#ifndef UnionFind1_h
#define UnionFind1_h
#include <cassert>
#include <iostream>
using namespace std;
namespace UF1
{
class UnionFind
{
private:
int* id;
int si... | [
"bchen372@gatech.edu"
] | bchen372@gatech.edu |
38ea4f7c117168cc2de1b9b4175baaf3748d736b | c02dfca3d12dc2f940cf70e2889ed4a0c9093c5c | /source-sdk/classes/c_usercmd.hpp | 1638251074450cf6c55b007be678db4074b59920 | [] | no_license | buuugs/VOLCANO | e193275e0aa2dbde50ed98a0b09dfa1f4319b7f1 | 268f9ddd9678d6bc031761fa4b70b249b56cb390 | refs/heads/master | 2022-11-26T15:43:08.706366 | 2020-08-03T23:28:11 | 2020-08-03T23:28:11 | 284,828,099 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 973 | hpp | #pragma once
enum cmd_buttons {
in_attack = (1 << 0),
in_jump = (1 << 1),
in_duck = (1 << 2),
in_forward = (1 << 3),
in_back = (1 << 4),
in_use = (1 << 5),
in_cancel = (1 << 6),
in_left = (1 << 7),
in_right = (1 << 8),
in_moveleft = (1 << 9),
in_moveright = (1 << 10),
in_attack2 = (1 << 11),
in_run = (1 <... | [
"noreply@github.com"
] | buuugs.noreply@github.com |
7cd0a5b99ced218c28f7de5087662f76e685fc08 | 6f1c943d5e53b41cb7fb7700b9de487c5528319c | /interface/TreeVariables.h | 1c17091951c2271ff261019f179233f7d9f3356a | [] | no_license | smshaheen/BTagReco | 7903984e8c6d72eac797523880753a20fead0ff5 | f38911168f379af25c748f71e9cdbd0ff6b54822 | refs/heads/master | 2021-01-10T03:34:27.804244 | 2016-03-16T03:16:11 | 2016-03-16T03:16:11 | 53,996,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,590 | h | //New class
#ifndef TREEVARIABLES
#define TREEVARIABLES
/////
// Headers
/////
#include <TTree.h>
#include <string>
#include <map>
#include <cmath>
#include <iostream>
/////
// Constants
/////
#define DEF_SIZE1D 100
#define DEF_VAL_INT -9999
#define DEF_VAL_FLOAT -9999.0f
#define DEF_VAL_DOUBLE -9999.0d
#define FLO... | [
"smshaheen@ihep.ac.cn"
] | smshaheen@ihep.ac.cn |
85229e130fb5d2fedcdd58287ee05409097780af | 12f9ecbb76b1a6b14bc1bad54b576492af238dc1 | /UnoMas/include/rat.h | 5aa51cfe188f2ca8c481656837533f2c51ce7a35 | [] | no_license | odiscious/javaExamples | 9b0972f1dd0a1a10364391a7a1b232a81d4aa3f4 | a4c387be7d04c6ff1417f3548bbe8886f6e788f8 | refs/heads/master | 2021-01-10T05:48:32.168215 | 2016-02-13T02:50:17 | 2016-02-13T02:50:17 | 45,599,897 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141 | h | #ifndef RAT_H
#define RAT_H
class rat
{
public:
rat();
virtual ~rat();
protected:
private:
};
#endif // RAT_H
| [
"oddozi@uw.edu"
] | oddozi@uw.edu |
9b0977666d69c99911bd645a2cdadacdc91b0ad6 | 8e1172fae4fdb0babe3713652fd5320a59c934cc | /16. 3Sum Closest.cpp | cc64329a76ece866474823689893d1ba466ff52f | [] | no_license | CTIN128/Leetcode | 36b539c5f40640b1bdc7959bb85c73564c4f39e2 | b9ec2237f1de2f5e8fc83c16660f9629da2801ba | refs/heads/master | 2020-04-15T14:36:58.026664 | 2016-11-02T07:30:53 | 2016-11-02T07:30:53 | 68,107,710 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,141 | cpp | /*
*题目大意:找出三个数字的和,这个和是最接近target或者就等于target
*
*
*题目在3sum加了些条件,只要进行一定的判断即可
*
*/
class Solution {
public:
int threeSumClosest(vector<int>& nums, int target) {
int close_target = nums[0]+nums[1]+nums[2];
sort(nums.begin(),nums.end());
for(size_t i = 0;i < nums.size()-2;++i)
... | [
"ctinson128@gmail.com"
] | ctinson128@gmail.com |
8063ff383cf0b07e466172d4ef6dbd641b04e12c | dbea2b79a1c3fabad776db894c99f45277344f35 | /src/Valid_Number.cpp | d053469aebc586b6c5acc8cf616bef13c49e2c81 | [] | no_license | Conglang/MyLeetCode | e60199899f310e7dccd2fa5808316eb2d2f1762b | 4bf95b2bff309361ba329177faf7714196085104 | refs/heads/master | 2020-12-24T08:56:48.224954 | 2020-05-23T06:28:35 | 2020-05-23T06:28:35 | 25,724,105 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,910 | cpp | //////////////////////////////////////////////////////
// Project: MyLeetCode
//
// Author: YanShicong
// Date: 2014/11/1
//////////////////////////////////////////////////////
/*--------------------------------------------------------------------------------------------------------------
* Validate if a given ... | [
"yanru.conglang@gmail.com"
] | yanru.conglang@gmail.com |
45be6de54c3a210050a0bdf4d001b214753b64af | 586bc45e055fcde814782a5820e189d2d225dff8 | /src/kokkos/describe.cpp | 584d7f2da1f17d9c231051ae7cc78304934f1e8a | [
"MIT"
] | permissive | Pennycook/everythingsreduced | fc8bb8327e22a048239bac7bd3e11ceb5f82643c | 02a3bee396f34d9c58bdcd6b1c61a27e1f26515a | refs/heads/main | 2023-07-24T05:10:18.319564 | 2021-08-26T15:45:46 | 2021-08-26T15:45:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,101 | cpp | // Copyright (c) 2021 Everything's Reduced authors
// SPDX-License-Identifier: MIT
#include <iostream>
#include <limits>
#include <Kokkos_Core.hpp>
#include "../describe.hpp"
struct describe::data {
Kokkos::View<double *> D;
};
describe::describe(long N_) : N(N_), pdata{std::make_unique<data>()} {
Kokkos::init... | [
"tom.deakin@bristol.ac.uk"
] | tom.deakin@bristol.ac.uk |
bd405270cea65191679225ec9598edc12c8a4e91 | cd4b24d1e2617dc6c940dbca047d342f8d924f40 | /TcpServer/debug/moc_MainWindow.cpp | 586c04a0a7d30dba12e51230f6e98b0336049ad0 | [] | no_license | Vstornzw/C-S-Host-Vdeo-Studio | bc1aec7af20b4f81594e90fc782c7c537d63afef | 177085cbfc4794471a430d08cdb78ad3797b3afa | refs/heads/master | 2021-05-21T17:02:50.226506 | 2020-05-01T09:46:06 | 2020-05-01T09:46:06 | 252,728,614 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,556 | cpp | /****************************************************************************
** Meta object code from reading C++ file 'MainWindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.8.0)
**
** WARNING! All changes made in this file will be lost!
**********************************************************... | [
"Vstornzw@163.com"
] | Vstornzw@163.com |
04f8f03d52463e755a131b1418602416cf5ffc07 | 220846e017a9992e596bd1ea806d527e3aeea243 | /165_Compare_Version_Numbers.cpp | 75c88828697fba2cb81ff70f1ea59c599276da36 | [] | no_license | anzhe-yang/Leetcode | bfa443b7a74ddbd441348c364ee00004173ddd86 | fe9eb16136035f25f31bddb37c6b4884cd7f6904 | refs/heads/master | 2020-04-08T14:49:04.781848 | 2019-10-25T02:39:22 | 2019-10-25T02:39:22 | 159,453,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,518 | cpp | /** 问题描述:
* 比较两个版本号数字,如果相差大于零返回 1 ,小于零返回 -1 ,否则返回 0 。
* 假设版本号字符串是非空的,仅包含数字和 . 。
* 其中字符 . 被用于分开数字版号。
* 版本号不以 . 开头或者结尾,且它们不会是两个连续的 . 。
*/
#include <iostream>
#include <string>
using namespace std;
int compareVersion(string version1, string version2)
{
/*
遇到.的时候,+1。
然后在区间内,将字符串转化为数字,保存起来。
... | [
"yaz951114@gmail.com"
] | yaz951114@gmail.com |
dfdc775af9dae99c178262b9d2a668fcdeb689ea | b703b3c4419c0ac9ef820452b81f689bc6d1e393 | /include/litesimd/shuffle.h | 924fd4afd9a96e67efe89e96b30bb11b75e89f3a | [
"MIT"
] | permissive | andrelrt/litesimd | 6a8d378f80629bcae496084e951baa75e5e899fe | c8f1ef437c0875f299c3d379b168cad5897dacb7 | refs/heads/master | 2020-03-24T12:15:42.593823 | 2018-10-29T16:49:51 | 2018-10-29T16:49:51 | 142,708,896 | 16 | 1 | MIT | 2018-10-29T16:49:53 | 2018-07-28T20:43:52 | C++ | UTF-8 | C++ | false | false | 7,200 | h | // MIT License
//
// Copyright (c) 2018 André Tupinambá
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mod... | [
"andrelrt@gmail.com"
] | andrelrt@gmail.com |
d680e194fb3ac05072e1ea8c41fa6672a2371f5b | fab665d61e6278e55c7a2d79318a4406a69373d6 | /lab 10.cpp | df4840c6cdc31c812cf07b865e0de9622575187d | [] | no_license | adhoc0909/object-oriented-programming-C-plus-plus | 00c3a8f997c21088e7e9293c2536741423051b6c | 12aa7b0e4eb47e6c301506d245af29b12ff36b34 | refs/heads/master | 2020-09-15T09:32:51.446239 | 2019-11-22T13:46:07 | 2019-11-22T13:46:07 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 6,964 | cpp | #include<iostream>
#include<string>
#include<vector>
using namespace std;
/*기초문제 1*/
/*
class Point {
private:
int x;
int y;
public:
Point() {}
Point(int _x, int _y)
{
x = _x;
y = _y;
}
void setXY(int _x, int _y)
{
x = _x;
y = _y;
}
int getX()
{
return x;
}
int... | [
"noreply@github.com"
] | adhoc0909.noreply@github.com |
30c5fd0b80b450093abdefd2da565e8afcb56478 | f78c2478363f8501cd554d66a480b814f322dd65 | /code/dynamic/grow_vector.h | e08c3b2f3334d3b5e817df7a7c4c3bc1f7f59091 | [] | no_license | chagaz/param_maxflow | 72655feea3192f49e0b245cb7d15445b05226f4b | 4b08b89239f57f111e4d74807d3b8e1363c1a100 | refs/heads/master | 2021-01-23T07:16:22.193500 | 2015-05-26T14:26:56 | 2015-05-26T14:26:56 | 33,881,135 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,117 | h | #ifndef grow_vectr_h
#define grow_vectr_h
#include <assert.h>
#include <memory>
namespace dynamic{
//! grow_vector implements (subset of) std::vector behaviour but has different allocation policy
/*!
*/
template<typename type, class Allocator = std::allocator<type> > class grow_vector{
private:
Allocator _al;
... | [
"chloe-agathe.azencott@mines-paristech.fr"
] | chloe-agathe.azencott@mines-paristech.fr |
b47f46e892ed79b993ba0df54f7b27cf24a566ad | 02ff1a859823d79a7667fa74aeef5d43dcb09a04 | /week2/Opdracht2.6/test.cpp | 55a59c9b0c5823746e500a9216d65ee5378be15a | [] | no_license | DylanGriffioenHU/CPSE1 | 372e3cc51db6fd1f0f50df9c8cec14b1c3069b71 | 8e8d21bcd3e573d2997741e102b46fd15d8d5bd3 | refs/heads/master | 2020-07-28T07:30:36.755833 | 2019-10-30T12:21:04 | 2019-10-30T12:21:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22 | cpp | class test_classe{
} | [
"dylan.d.griffioen@student.hu.nl"
] | dylan.d.griffioen@student.hu.nl |
d39df6492f32677b960c5b743e1324cdc5bc723e | 4101ff0bd5a7ded67d60e476afd785b53c8bed5b | /bakkesmodsdk/include/bakkesmod/wrappers/items/dbs/CertifiedStatDatabaseWrapper.h | 71a95fcd60bc712924e57095c4bde34c3c3725c2 | [
"MIT"
] | permissive | adamk33n3r/Deja-Vu | 260e1eac1b120c744271ac069f6a6b9019d15ba9 | ae211cb53bd2e2d93b273a90018d2bc31c303703 | refs/heads/master | 2023-07-25T11:47:50.652199 | 2023-07-21T00:41:23 | 2023-07-21T00:41:23 | 219,899,233 | 6 | 4 | MIT | 2023-07-21T00:13:49 | 2019-11-06T02:55:44 | C++ | UTF-8 | C++ | false | false | 535 | h | #pragma once
#include "../../Engine/ObjectWrapper.h"
class BAKKESMOD_PLUGIN_IMPORT CertifiedStatDatabaseWrapper : public ObjectWrapper {
public:
CONSTRUCTORS(CertifiedStatDatabaseWrapper)
//BEGIN SELF IMPLEMENTED
_NODISCARD bool IsNull() const;
explicit operator bool() const;
//END SELF IMPLEMENTED
//AUTO-GENE... | [
"adam.g.keenan@gmail.com"
] | adam.g.keenan@gmail.com |
57a56eb7b7558c69c82464a45199319f0bfc21ef | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /contest/1542587944.cpp | c42858f006a4a579ed8ec48a9038d895dfe59b09 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 955 | cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
string s1,s2,s3;
cin >> s1;
int n;
cin >> n;
s2="";
int flag=0;
for(int i=0;i<n;i++)
{
cin >> s3;
if((s3[0]==s1[0]&&s3[1]==s1[1])||s3[0]==s1[1]&&s3[1]==s1[0])
{
... | [
"harshitagar1907@gmail.com"
] | harshitagar1907@gmail.com |
a7e259c656ecdcac0675d973f7ef00a6fc89b4f0 | 16cce4a48dbff85739447efd5ec06efd9d919c46 | /lab3/Rparser.h | 19664185d2b5a8b753c0c09572570df9f8d9ca5a | [] | no_license | rita-lu/Resistor-Network-Simulator | f41a2ec51f3dec4ad5202d156bc0c1f928883655 | 7fd92960052abaeb384ceec2650d5ac4f2107db6 | refs/heads/master | 2022-03-27T02:10:18.526951 | 2020-01-09T22:55:30 | 2020-01-09T22:55:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 150 | h | #include <iostream>
#include <string>
#include "Resistor.h"
#include "Node.h"
using namespace std;
//Prototype for 'Rparser' function.
int Rparser(); | [
"rita@Ritas-iMac.local"
] | rita@Ritas-iMac.local |
4f06fdfc853a48535468c8e381fc5541f6a25826 | ba00580fc87524e795653b7578acbf73c0b27f15 | /41A.cpp | 8c84855ed4386d6c78e9be407a774069e6e1761f | [] | no_license | xorj/cpp | 72fb8db27311fa20fcfb66aae0ad2319e91dbde6 | 58aba90dc24d4880becc26766166d4019342177f | refs/heads/master | 2022-11-23T07:25:26.781296 | 2020-07-31T20:06:50 | 2020-07-31T20:06:50 | 278,128,228 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | cpp | #include <iostream>
using namespace std;
int main(){
string s, t;
cin >> s;
cin >> t;
string r = "YES";
for(int i = 0; i < s.length(); i++){
if(s[i] != t[s.length() - i - 1]){
r = "NO";
break;
}
}
cout << r;
return 0;
}
| [
"jorge.santos@dcomp.ufs.br"
] | jorge.santos@dcomp.ufs.br |
dd277d5ce9d1128b790290112eefd3cd34726b5b | 23a5b97133e0dbc866ae30d558d975e907e51d6a | /gaussian_blur.cpp | 3d0b5437b1f0036053a262b2922f25cbb04c1f48 | [] | no_license | anishmrao/AA_2018 | de5dba0795cca9177ff3700dd6c665425e036946 | 59834562ea3cb5d374f4f41d689ae66286cca58c | refs/heads/master | 2020-03-30T20:10:54.387638 | 2018-11-22T06:22:28 | 2018-11-22T06:22:28 | 151,576,784 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,666 | cpp | #include "BGR.hpp"
//Utility function to display the image
void display(BGR *source){
int size = source->height*source->width*source->components;
cout<<"Filename : "<<source->filename<<endl;
cout<<"Height : "<<source->height<<endl;
cout<<"Width : "<<source->width<<endl;
cout<<"Components : "<<sou... | [
"christyjacob4@gmail.com"
] | christyjacob4@gmail.com |
a30ede434df582af6a8d0499c55e1e829e14f7e5 | b7eab1bc2c0ffd9d6689df9d803db375326baf56 | /camerapostalgo/utils/test/Test_GrallocImageBufferHeap.cpp | 82142d438b1c7d810e757d6340519ca9e557071f | [] | no_license | cc-china/MTK_AS_Camera2 | 8e687aa319db7009faee103496a79bd60ffdadec | 9b3b73174047f0ea8d2f7860813c0a72f37a2d7a | refs/heads/master | 2022-03-09T08:21:11.948397 | 2019-11-14T09:37:30 | 2019-11-14T09:37:30 | 221,654,668 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,929 | cpp | /* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein is
* confidential and proprietary to MediaTek Inc. and/or its licensors. Without
* the prior written permission of MediaTek inc. and/or ... | [
"com_caoyun@163.com"
] | com_caoyun@163.com |
3bd85c95d04b209f6e435ad4cd8c5a2085b33cec | f7c4d1f849145d29fa722b9160638ef5faaf1a0e | /armnn_loader.hpp | 7aec105be9d5771dbede258d40e2a09d7031b0d3 | [
"MIT"
] | permissive | gustavsl/armnn_caffe | dbfed604f066aa9aa9ad1649a4d175459d9095e5 | 7a728870d71b3efa550a48c9451573bd3212fecf | refs/heads/master | 2020-03-29T23:33:48.833042 | 2018-06-30T07:57:39 | 2018-06-30T07:57:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,469 | hpp | /* 加载单张图片并解码得到其data */
#pragma once
#include<vector>
#include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
// Helper struct for loading a image
struct Image
{
unsigned int m_label;
std::vector<float> m_image;
};
// Load a single image
std::unique_ptr<Image> loadImage(std::... | [
"noreply@github.com"
] | gustavsl.noreply@github.com |
a24a07e904b6001be83039fe73759ec00e91be20 | 6e64f95b2349dc80c777a44463998d745303c13b | /liuhan333_GL/lhgl/gl_example/gl_example/gl_example_model_mx.cpp | 7cdb2dc251bd8a12802c5ab2fef68d72917d52c0 | [] | no_license | xx8086/OpenGL_LiuHan | 35ce0367a6ba1f689c15dd3b8f4debed7f1ec894 | 9fbcdfe84f36aca440fe61f64e268c8cc9c0fdfc | refs/heads/master | 2021-01-11T16:58:03.345618 | 2017-07-06T20:54:45 | 2017-07-06T20:54:45 | 79,706,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | cpp | #include "gl_example_model_mx.h"
namespace lh_gl {
void CRanderExModelMX::do_render()
{
CRender::do_render();
}
bool CRanderExModelMX::init()
{
set_shardes<lh_gl::CShardes>("..\\shardes\\shader.vs", "..\\shardes\\shader.fs");
set_main_camera(Vector3f(0.0f, 0.0f, -70.0f),
... | [
"liuhan333@126.com"
] | liuhan333@126.com |
d7a8d092aa39b3f65de96cb3e650f46b43f72f94 | f2861ba1a64f8d8b05b68b485beff2590de95b3c | /src/mod/physics.cpp | e2507a5cacb7c296896c682dbe25a10f7209e70a | [] | no_license | venid/liteng | 0cfd574deedd142544c08bd555005a3c6409c231 | c705b76b2f5f7acdbc6088fcfe31e47bf5a793ac | refs/heads/master | 2020-04-06T07:04:48.886632 | 2016-10-23T20:01:31 | 2016-10-23T20:01:31 | 40,650,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,549 | cpp | #include "physics.h"
#include "object.h"
#include "defs.h"
#include "manager.h"
#include "log.h"
#include "component.h"
#include "luastate.h"
#include "typevar.h"
META_METHODS(Physics,
METHOD(create, Physics::Create),
METHOD(clear, Physics::clear),
METHOD(add, Physics::add))
META_PROPERTY(Physics)
META_OBJECT(Physi... | [
"reversline@gmail.com"
] | reversline@gmail.com |
3a2737b72ceb11f0657d13e3dba08bcf680ff688 | 24cc750fa7532c54c4cc5d1a5877c6d6e9a54576 | /NeoML/Python/src/PyClustering.cpp | be5353c1bd8041acf672aa46e7a310504abf9e5f | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"NCSA",
"LicenseRef-scancode-protobuf",
"MIT",
"LicenseRef-scancode-arm-llvm-sga",
"Intel",
"LLVM-exception"
] | permissive | ZigRazor/neoml | a28fe014b723896047db40ee666e9ee8397fbf6d | 23e5f5f923f5e06a69f8ed4ba721a05b3fbd3734 | refs/heads/master | 2023-04-09T01:28:23.069388 | 2023-03-29T11:21:09 | 2023-03-29T11:25:21 | 273,449,494 | 0 | 0 | NOASSERTION | 2020-06-19T09:04:42 | 2020-06-19T09:04:41 | null | UTF-8 | C++ | false | false | 9,398 | cpp | /* Copyright © 2017-2021 ABBYY Production 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 agreed to in ... | [
"noreply@github.com"
] | ZigRazor.noreply@github.com |
c77e457e5456dc722e787305d6d77be6ae5aeb3b | d21f07f2c9169357d75f6b5ad230c93cf9bf19f6 | /06_UnitTesting/01_FactTest.cpp | 8d98388ca029e487d704454fdb96a1c234e1b84a | [] | no_license | sepideha/apnotes | a508f4109aa1fa64115a3b69bb236e146b7651b6 | e3b5da008d632ffc820badb85514a238a7ae2c42 | refs/heads/master | 2022-12-24T20:23:08.473069 | 2020-09-27T06:03:00 | 2020-09-27T06:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include <iostream>
#include "catch.hpp"
using namespace std;
unsigned int Factorial( unsigned int number ) {
return number <= 1 ? number : Factorial(number-1)*number;
}
TEST_CASE( "Factorials are computed", "[fact... | [
"ramtung@gmail.com"
] | ramtung@gmail.com |
3f068c7e642e9899848f836d64c3fe11904cb37b | d85b1f3ce9a3c24ba158ca4a51ea902d152ef7b9 | /testcases/CWE415_Double_Free/s01/CWE415_Double_Free__malloc_free_int_83_goodB2G.cpp | 206c19e8db8fa12e5dd3b133d3a0bd2d4d484072 | [] | no_license | arichardson/juliet-test-suite-c | cb71a729716c6aa8f4b987752272b66b1916fdaa | e2e8cf80cd7d52f824e9a938bbb3aa658d23d6c9 | refs/heads/master | 2022-12-10T12:05:51.179384 | 2022-11-17T15:41:30 | 2022-12-01T15:25:16 | 179,281,349 | 34 | 34 | null | 2022-12-01T15:25:18 | 2019-04-03T12:03:21 | null | UTF-8 | C++ | false | false | 1,345 | cpp | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE415_Double_Free__malloc_free_int_83_goodB2G.cpp
Label Definition File: CWE415_Double_Free__malloc_free.label.xml
Template File: sources-sinks-83_goodB2G.tmpl.cpp
*/
/*
* @description
* CWE: 415 Double Free
* BadSource: Allocate data using malloc() and Dealloc... | [
"Alexander.Richardson@cl.cam.ac.uk"
] | Alexander.Richardson@cl.cam.ac.uk |
6eb11d17cfaf8bc007bfde1384adf40bf12bdf35 | 7d3b7c05ea37933cabbfe680b5708a837ec24c2b | /4_lm35_mqtt.ino | 7734485cfdbacfb72457397693efd1aa92764d8c | [
"MIT"
] | permissive | Osawa-Yoshiki/lm35_mqtt | a5c2ba9eced453a34339a925550f633f49140410 | b450631777501003834c2522b957066b62de626f | refs/heads/master | 2021-08-30T14:57:04.575249 | 2017-12-18T10:45:34 | 2017-12-18T10:45:34 | 114,597,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,735 | ino | #define PIN1 A0 //温度センサー
#define PIN2 5 //モーター用その①
#define PIN3 6 //モーター用その②
#define PWM1 7 //モーター用その③
#define PIN4 2 //LED用
#define MEAN 100 //移動平均を出すまでのサンプリング数を指定します。
#include <ArduinoJson.h>
#include <Ethernet.h>
#include <PubSubClient.h> ... | [
"osawa.yoshiki@gmail.com"
] | osawa.yoshiki@gmail.com |
86ca12a2904c58443cc29bb2596ffe3e1505c002 | 115c5ee776f2bbeea89353d887bd27b02c7dd862 | /Internet AppWare Source Code/AW16_1/DEV/DT_LDI.CPP | 95fdd554278f1186f2c6bb8bf9d8fc1eb35b5bce | [] | no_license | benbucksch/AppWare | f9a894140d6bc95d2d27f5ed7d8df51fc57b9709 | 321ced6e94030c25ba36c781dc92ddb7c2508c09 | refs/heads/master | 2020-07-12T23:31:34.160706 | 2014-10-08T17:17:07 | 2014-10-08T17:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,036 | cpp | /*//////////////////////////////////////////////////////////////
//
// Copyright (c) Unpublished Work of Novell, Inc. All rights reserved.
//
// THIS WORK IS AN UNPUBLISHED WORK AND CONTAINS CONFIDENTIAL,
// PROPRIETARY, AND TRADE SECRET INFORMATION OF NOVELL, INC.
// ACCESS TO THIS WORK IS RESTRICTED TO (I) NOV... | [
"jpbrennecke@gmail.com"
] | jpbrennecke@gmail.com |
136dca0a10ff3ade7019c1a1a165f944ef96d513 | 7b0a12d6e9d9dce71244551c4c320dfa7b33f42e | /CCE-ALLOCATION/C/CCE_Allocation/schedulingmodel2.cpp | a533fe69a27a38b2e1d6e5964456386b662a14c5 | [] | no_license | matheusota/MO648 | 572d6423c626b8ee63e5819e52b1ad93759d2575 | 76bd855c3bf4c1e16c06252a1fed780d548a1d04 | refs/heads/master | 2020-03-28T14:59:36.816909 | 2019-10-23T17:55:24 | 2019-10-23T17:55:24 | 148,544,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,829 | cpp | #include "schedulingmodel2.h"
void SchedulingModel2::execute(vector<User> &users2, int R, int numberUsers, Measures &measures){
// copy users
vector<User> users(users2.begin(), users2.begin() + numberUsers);
// gurobi stuff
map<int, map<int, GRBVar>> x;
map<int, GRBVar> y;
GRBEnv env = GRBEnv(... | [
"matheusota@gmail.com"
] | matheusota@gmail.com |
922dadfe6c4b4caf4be972db1922d1a7b542a0d9 | 7482f00c4254c6bdc697f7e6cb770c93d4642d90 | /binary_search_tree/avl.h | eaf257833e3786180fa91eba92ff383ad6efc5a8 | [
"MIT"
] | permissive | jkulhanek/cpp-patterns | 2c4659d066e38806024cd5c5d9390b68eb44f195 | f7c95ba2b056393852ebbfc11bb77cfbb999ecf1 | refs/heads/master | 2020-04-09T20:44:04.509365 | 2020-01-31T19:38:57 | 2020-01-31T19:38:57 | 160,582,665 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,543 | h | #include <algorithm>
#include <functional>
#include <ostream>
#include <iomanip>
using namespace std;
struct TreeNode {
TreeNode(int value) : value(value), right_depth(0), left_depth(0), left(nullptr), right(nullptr) {};
TreeNode * left;
TreeNode * right;
int value;
int right_depth;
int left_depth;
... | [
"jonas.kulhanek@live.com"
] | jonas.kulhanek@live.com |
3c9bb55be781c6cf2193228ffc44be3d84fcfe8d | 4916ab1db76e4182ed13549f38fcfb371e8c4146 | /src/collectives/device/all_to_all.h | 48410e41096c49c74a646b31b27089138b3efd96 | [] | no_license | VictorYing/nccl-master | c0bff24b269d00dde7cb9cb60b9175b83fb73c0f | 99618215c208ef11b15e855fef56bb3bf4a8aff3 | refs/heads/master | 2023-06-20T07:03:54.558359 | 2021-07-09T04:38:25 | 2021-07-09T04:38:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,217 | h | /*************************************************************************
* Copyright (c) 2015-2020, NVIDIA CORPORATION. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#include "devcomm.h"
#include "primitives.h"
#include ... | [
"saemal@microsoft.com"
] | saemal@microsoft.com |
e5d551272f830fb12bee5fafe3c8c03eb1bdd157 | 91dc94bc9cb31f9b072353fcbb06e492afe5a880 | /Source/GT_IntroScene.cpp | 1d8cbceee7a0b47be2a8d0a3239c8a1efe935340 | [] | no_license | kduvnjak15/GLFWTraining | b47a8bce73ed56670f80a9978f74448a44a1230f | eeffd9d86ea5acc94c3d88b26eccc6081f3cc219 | refs/heads/master | 2021-01-19T13:46:53.027972 | 2020-02-15T10:21:10 | 2020-02-15T10:21:10 | 82,416,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,116 | cpp | #include "GT_IntroScene.h"
#include "GT_Locator.h"
#include "time.h"
GT_IntroScene::GT_IntroScene()
:GT_Scene(introScene)
{
wallpaper_ = new GT_Image("../Content/intro.jpg");
machina_ = new GT_Image("../Content/machina2.jpg");
start = 0;
machina_->setBrightness(0);
wallpaper_->setBrightne... | [
"kduvnjak15@gmail.com"
] | kduvnjak15@gmail.com |
a3045ea4b16be7467133dfbfadf44beb1a3b0541 | d090c1a4891223124f49f80ced1554c241e86f27 | /printer-dpi/4DPlugin.cpp | 564c8ecf1f50182f44160b95e65d222dc1345d35 | [] | no_license | vrosnet/4d-plugin-get-printer-dpi | ef6d01a4a9ce6d0ce38aecb81e7b2570e0af359c | 45e21cb844b838449265ab443868d5cc81d64f61 | refs/heads/master | 2020-12-26T01:03:08.207435 | 2016-03-08T11:51:26 | 2016-03-08T11:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,807 | cpp | /* --------------------------------------------------------------------------------
#
# 4DPlugin.cpp
# source generated by 4D Plugin Wizard
# Project : get-printer-dpi
# author : miyako
# 2016/03/07
#
# --------------------------------------------------------------------------------*/
#include "4DP... | [
"miyako@wakanda.jp"
] | miyako@wakanda.jp |
962c64dacf62c49bb248ccac55508c1e0241e39b | e33ceabb297a6b69a88c457ea66448e1d4468b7c | /antlr4_runtime/runtime/src/tree/ParseTree.h | 95a1ace9183f2ed178f4befe65a63c8bfaac7287 | [] | no_license | EvgenLeontev/Sheet | af19f1d883f0a533c7b8ff61915ec987d711555c | 99f7a15031de63a20d6d489f065c0497a695945b | refs/heads/main | 2023-06-21T14:53:41.753683 | 2021-08-06T16:00:26 | 2021-08-06T16:00:26 | 389,959,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,004 | h | /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
#pragma once
#include "support/Any.h"
namespace antlr4 {
namespace tree {
/// An interface to access the tree of <se... | [
"eu.leontev@gmail.com"
] | eu.leontev@gmail.com |
88d7855cf03204fec3078c6e85b45c2f1b5f2861 | 4751aff2814419bdecf7439a287b1309cfc134d3 | /Classes/AppDelegate.cpp | 5673c3f70a3c196e72824e925a588e44032d2bb5 | [] | no_license | solkar/LD29 | 75dc98b6646e772215c46841068eb73c8b90ee8f | 75fd5b43d0297c17647594a45ca4315cd42b9714 | refs/heads/master | 2020-04-01T18:09:34.985914 | 2014-05-09T06:15:39 | 2014-05-09T06:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,646 | cpp | #include "AppDelegate.h"
#include "MainMenu.hpp"
#include "MainScene.hpp"
#include "Macros.h"
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
auto director = Director::getInstance();
auto glview = d... | [
"karlos.zafra@gmail.com"
] | karlos.zafra@gmail.com |
0c66d6a1f0994a93e90faf8450b196da61cafbcb | 0dfc49969542e4a302cc16c61bd87c4c26397860 | /csgomeme/SkinChanger.cpp | 216e72f5b6ed6fb9103b02d38424be86b0addcd8 | [] | no_license | ReeceJones/STRAFE | 62423e80c18f9dd4489094c418a6d4a8f3e6386f | 46e5321cc18c6fa50d44200ae65a4f7b9576473a | refs/heads/master | 2020-03-14T00:59:51.874665 | 2018-04-28T03:22:11 | 2018-04-28T03:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,968 | cpp | #include "SkinChanger.h"
#include "Interfaces.h"
#include "Entity.h"
#include "Settings.h"
#include "Recv.h"
#include "NetvarManager.h"
#include <codecvt>
#include <string>
#include <xstring>
#include <comdef.h>
CSkinChanger* g_pSkinChanger = new CSkinChanger;
vecSkinInfo k_Skins;
vecSkinInfo k_Gloves;
CCStrike15It... | [
"reece_jones@icloud.com"
] | reece_jones@icloud.com |
a8577a5d2b00b234a3b034f40c86ae7164acf8bd | c048e0ccdd65583d1f8cf233d7b0f97bdb8a48ea | /PrisonBreakV6.3/UI_function.h | b0d90e9e62fdd957e2ab6c06fb8c8493a938d1e4 | [] | no_license | nikoc2016/prisionBreakEngine | 8f9de6ce5f4eb03e51cab1f7f5aaf01969c271c2 | ab8b7992220b4a4e43ed25930804481797b0a4cb | refs/heads/master | 2020-03-08T07:51:07.154700 | 2018-04-04T04:04:53 | 2018-04-04T04:04:53 | 128,005,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | h | #ifndef UI_FUNCTION_H
#define UI_FUNCTION_H
#include<iostream>
#include<string>
#include"Prison.h"
using namespace std;
void UI_operation_manage(Prison* &main_prison, DLinklist<Wantedperson>*&FBIWanted);
void UI_operation_GetPrisoners(Prison* thePrison, DLinklist<Wantedperson>* &FBIWanted, int count);
void UI_operati... | [
"nikoc2016@gmail.com"
] | nikoc2016@gmail.com |
4d18332d1ebc9fb7b9f068291950abcc7c2a1e22 | 1bb0afca18d12d718f6fe3290069c79c9e48ca08 | /10_het/ea10_forras/gepkocsi1.cpp | 864881f62478b78a1e8ce22528cbb375edd16b54 | [] | no_license | Pecneb/CodingStudies | 6c4e75d1f533c1146a0c2751deb96f9bed2c4733 | c71363ced8b59765f76fac956ad5a1291ee8216b | refs/heads/main | 2023-04-13T23:30:08.972465 | 2021-04-29T08:27:39 | 2021-04-29T08:27:39 | 334,973,586 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 203 | cpp | #include "gepkocsi1.h"
datum muszakiErvenyesseg(const gepkocsi* gk) {
datum lejar = gk->utolsoMuszaki;
if(gk->muszakiDb > 1) {
lejar.ev += 2;
} else {
lejar.ev += 4;
}
return lejar;
}
| [
"pecneb@pop-os.localdomain"
] | pecneb@pop-os.localdomain |
7ce6064554f73a4b77ba98be4f5aec79d5dfb9db | f092d996acab0f4536fef64b5c3dcf9e2573d843 | /ProjectFiles/Engine/_Projection.cpp | 00e7fad8af0ad1a971ab9d943ce608b095b08831 | [] | no_license | AlvaroRuizGallego/TestEnginePublic | 1be095d0d61c3cbae7981d9ce6f8dd45763a6065 | 74fa313edb3f278550bd93b41b272e4b61413dc3 | refs/heads/master | 2021-01-01T06:43:18.612273 | 2017-07-19T16:29:51 | 2017-07-19T16:29:51 | 97,495,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 650 | cpp | #include "_Projection.h"
#include "_PhysicsEngine.h"
_Projection::_Projection()
{
}
_Projection::_Projection(float min, float max)
{
this->min = min;
this->max = max;
}
bool _Projection::Overlaps(_Projection otherProjection)
{
return max >= otherProjection.min && min <= otherProjection.max;
}
bool _Projection... | [
"al286940@uji.es"
] | al286940@uji.es |
22882a523134bc2918b49145631acf909429efab | 3965ad179599951638c4521a956382c346dec668 | /week7/10004.cpp | 5bdfef6b23c11e14d60d35ba90c314e8bf520dc1 | [] | no_license | vincentcote87/CPSC3200Sets | f630084e9e89e6f8a849143d00baf3b8cb4c84fb | c609809fda94315ccb44762cbf79fd55b04371f6 | refs/heads/master | 2020-12-06T06:49:06.397206 | 2020-03-30T03:01:52 | 2020-03-30T03:01:52 | 232,377,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,590 | cpp | // Problem 10004 - Bicoloring
// Vincent Cote - CPSC 3200
// Approach - Start by building the graph using a matrix. Once graph is built, run through the graph starting at 0
// using breath first, get the neighbors of each vertex, if its colour is -1 then flip its colour to the oposite of
// the vertex. If the colour is... | [
"vincentcote87@gmail.com"
] | vincentcote87@gmail.com |
1cc35d9785b7549b45f240aa3738fb721f34465e | 455997dfce160f05e5862fbaee74bf699d1e9139 | /bigflow_python/common/side_input.h | 775cb13e9d2c321ba2f84bbb23acd66ad17fde62 | [
"Apache-2.0"
] | permissive | xiaomj/bigflow | bf7f21ddfe844891f4037a931e8761be939be9eb | fae5bc3c812cec605847b8e24bae1d03ad1fa777 | refs/heads/master | 2021-08-30T19:29:31.964868 | 2017-12-18T11:19:21 | 2017-12-19T06:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,073 | h | /***************************************************************************
*
* Copyright (c) 2017 Baidu, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | [
"zhangyuncong@baidu.com"
] | zhangyuncong@baidu.com |
763c5ebe75ea44de94de863ae4d0cc4472408367 | 98b35b7df1e77846b52d42811e4bf22ac1f39121 | /src/chainparams.cpp | 40dc987bb28dae5e2cf9a190aeb77b627918d0cd | [
"MIT"
] | permissive | Saci-de-bani/firelynxcoin | 58c9f9a4dc8b9d626c80986d8fe25926e0a90e2c | 0810289c9b26b320b4633579e862c6ac416e9d9f | refs/heads/master | 2020-03-22T20:40:24.703875 | 2018-07-12T02:27:37 | 2018-07-12T02:27:37 | 140,621,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,540 | cpp | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.h"
#include ... | [
"admin@firelynxcoin.org"
] | admin@firelynxcoin.org |
b6392d2097bc2ddb67b5d102eaa5c9ad878ae687 | 803f0fbc5973ff31fd5faca5c0f2981b2c52a591 | /C++/leetcode/14.longest-common-prefix.cpp | 9512829bf62c09a429802e0360c3b52eb8bb8018 | [] | no_license | MiohitoKiri5474/CodesBackUp | 00ab52bd55732b8164a42cffd664407878f4390e | 4247fa032c8e88259dcc3992a21c510b6f2e8850 | refs/heads/master | 2023-08-09T14:46:10.445697 | 2023-08-04T01:12:58 | 2023-08-04T01:12:58 | 126,162,563 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cpp | class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
string res;
int len = 200;
for ( auto i: strs )
len = min ( len, ( int ) i.size() );
for ( int i = 0 ; i < len ; i++ ) {
string swp;
for ( auto j: strs )
swp += j[i];
swp.erase ( unique ( swp.begin(), swp.end()... | [
"lltzpp@gmail.com"
] | lltzpp@gmail.com |
cf6b49d2827f5f7a2b735eb5c2eb637ea73b7684 | 3ee5b07b0fc87b5b2b7c28b14179fbe0724fcbf9 | /Codeforces/freymanlozanoq/1365/e/82860471.cpp | 290c1b5bbeda3ba91ce2c04c5718c852c9a7de0a | [] | no_license | Freym4n/Problemas-resueltos | fb8a33c34d4d252617667dddeca7db5354ce5dae | e0fd654a0079362f075269d1d1e70b6c50f1d8f4 | refs/heads/master | 2022-12-15T09:00:27.361423 | 2020-09-05T18:58:08 | 2020-09-05T18:58:08 | 284,178,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,002 | cpp |
#include <bits/stdc++.h>
using namespace std;
# define M_PI 3.14159265358979323846 /* pi */
void solve() {
int n;
cin >> n;
long long a[n];
for(int i = 0; i < n; i++) {
cin >> a[i];
}
set<int> s[n];
long long dp[n];
for(int i = 0; i <n; i++) {
dp[i] = a[i... | [
"55568702+Freym4n@users.noreply.github.com"
] | 55568702+Freym4n@users.noreply.github.com |
b24fd8a7117ae47655a5ca7abbedd853480e828a | 0858c94d96a111957c977cce036fa63e3e57ca59 | /Source/Allow.cpp | 97bfe776cc6193b7be7a2d4fd1ff56eb40aed1a5 | [] | no_license | Norcinu/1172Dev | f08358411e4ee62cbc5985483a8f8f428546563a | 79c8451a7be87553117068907da3d99b15af5390 | refs/heads/master | 2021-01-01T18:34:30.526089 | 2014-10-21T15:54:32 | 2014-10-21T15:54:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,452 | cpp | #include "PokerGame.h"
#include <ObjectHandler.h>
const unsigned char SuccessRateTab[] = {
53, // JACKS OR BETTER
70, // TWO PAIR
70, // THREE OF A KIND
70, // STRAIGHT
63, // FLUSH
... | [
"steven@projectcoin.co.uk"
] | steven@projectcoin.co.uk |
af5c27b9a0da7cfca77ec60701063b9f81a0704c | 383e7d7f7ef658896a76d89fa3a3d5fb215a0140 | /contrib/brl/bseg/bapl/pro/bapl_register.h | dd6f26ec91aeae6970902b6f248dc8fa17366c90 | [] | no_license | aliosmanulusoy/Probabilistic-Volumetric-3D-Reconstruction | f9abd69f278a85c0133c3474eaee1c59e2d4f3e2 | cdb08ed893f88c245bd3c9cff1081182a4eaced9 | refs/heads/master | 2021-06-01T23:21:59.861182 | 2016-05-31T09:38:48 | 2016-05-31T09:38:48 | 58,373,814 | 60 | 26 | null | null | null | null | UTF-8 | C++ | false | false | 184 | h | #ifndef bapl_register_h_
#define bapl_register_h_
class bapl_register
{
public:
static void register_datatype();
static void register_process();
};
#endif // bapl_register_h_
| [
"ozge@users.sourceforge.net"
] | ozge@users.sourceforge.net |
e2c7896550c4167d9f61cee142a269bcc12592a3 | 4cdb85b2ca55025a581600121d7e184dca6dc486 | /Shoot.ino | 6debb037e478b4c0604c2ce60233259b88bab7a7 | [] | no_license | etienne72230/DescentIntoHell | 443f2868293b111d1380e552a6d0fe916a416d6e | 9a1c92a3baf356af272aec3a3c7a45e3058dbc1c | refs/heads/master | 2021-05-29T19:14:19.454978 | 2015-07-22T14:13:23 | 2015-07-22T14:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,126 | ino | void initShoot(){
gb.sound.playTick();
for(byte i=0;i<MAX_SHOOT;i++){
if(shoot[i].on==false){
shoot[i].on=true;
shoot[i].vx=3;
shoot[i].vy=3;
shoot[i].orientation=player.orientation;
if(shoot[i].orientation==0){
shoot[i].x=player.x+1;
shoot[i].y=playe... | [
"team.72@hotmail.fr"
] | team.72@hotmail.fr |
83f54db147b1deedf299b5f8bcbc825a8ece21b0 | 5b00f4cf3f872afe4962e5b43458d06b49c42bb3 | /BOJProblem/p2667.cpp | 171f07008693609401ab2b8a33c051caefae98a8 | [] | no_license | AllisonLee0507/BOJProblem | 4e8884a104c6e4a770a1d1a979cc32b15fa39246 | cacb3fed3b6a7ad9be923d25fc876b0c65114202 | refs/heads/master | 2023-07-10T23:30:25.470586 | 2021-08-22T04:49:54 | 2021-08-22T04:49:54 | 398,716,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,869 | cpp | #if 0
#define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
bool check[30][30];
int n, arr[30][30], num[1010], cnt;
int dx[4] = { 0, 0, -1, 1 };
int dy[4] = { -1, 1, 0, 0 };
void dfs(int x, int y)
{
check[x][y] = true;
num[cnt]++;
f... | [
"65398946+AllisonLee0507@users.noreply.github.com"
] | 65398946+AllisonLee0507@users.noreply.github.com |
46e87a0ac42eafab474e61cbbb8f6e3bb70e8b8a | a72d01c6c8dfdd687e9cc9b9bf4f4959e9d74f5d | /PRINCIPLE/zeitgeist/source/windows/materialSetMatchBuilderWindow.cpp | d49d72d71f9b7d27d953f055bc58198eb3560a85 | [] | no_license | erinmaus/autonomaus | 8a3619f8380eae451dc40ba507b46661c5bc8247 | 9653f27f6ef0bbe14371a7077744a1fd8b97ae8d | refs/heads/master | 2022-10-01T01:24:23.028210 | 2018-05-09T21:59:26 | 2020-06-10T21:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,545 | cpp | // This file is a part of PRINCIPLE.
//
// Look, but don't touch.
//
// Copyright 2017 [bk]door.maus
#include <cstring>
#include <fstream>
#include "mantorok/io/datWriter.hpp"
#include "chomsky/io/world/query/materialSetMatch.hpp"
#include "chomsky/world/query/actorMaterialSetMatchExecutor.hpp"
#include "chomsky/world... | [
"squeak@erinmaus.com"
] | squeak@erinmaus.com |
14b10eaf6887b009b67b427f5ae1c47212488850 | a4caa787b227881a8cfb6533fe72acae8325c946 | /SUPOVR.cpp | d4541c623a3d5b03f53ae7490cfd608e4d8135c0 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Guarav/SPOJ | 7b5c61b1cca6da3fdfd370f8234be042ad196e98 | 2ef83481cdbc81bd6993308835a6e2e4419b1d68 | refs/heads/master | 2020-12-22T22:06:49.231659 | 2019-10-29T14:20:54 | 2019-10-29T14:20:54 | 13,019,241 | 1 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,374 | cpp | #include<iostream>
#include<stdio.h>
#include<string.h>
#define max 100
using namespace std;
void calculateOverSummary(char inputString[max], char overSummary[max])
{
int count = 0;
for(int i = 0;inputString[i] != '\0'; ++i)
{
if( inputString[i] != ' ' )
{
overSummary[count++] = ... | [
"gpgaurav.nsit@gmail.com"
] | gpgaurav.nsit@gmail.com |
86c851b2b5acd95aca4cea7667396f606f5c9678 | 546c63aae7ea4e1520815e223f1636188b9dd13a | /Code/src/UI/MyQuatTrackBall.cpp | f7fa271b3715ab1aac034a63ffcbcb894f8ebe29 | [] | no_license | oilandrust/implmod | 000921eac9e01f1588ccaf5122c1d8ee660a375c | ff687b249a1ec86524c1ace8f698cdf8bb42ec4f | refs/heads/master | 2021-01-10T05:50:35.269324 | 2020-02-27T06:07:36 | 2020-02-27T06:07:36 | 49,159,885 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,251 | cpp | #include <iostream>
#include <CGLA/CGLA.h>
#include "MyQuatTrackBall.h"
#include <GLGraphics/gel_glut.h>
#include "MyGLViewController.h"
using namespace std;
using namespace CGLA;
namespace GLGraphics
{
MyQuatTrackBall::MyQuatTrackBall(const Vec3f& _centre,
float _eye_dist,
unsigned _width,
u... | [
"o.rouiller@gmail.com"
] | o.rouiller@gmail.com |
7d30e62f4f710b3d2c04dee2482fd47b89c20fa7 | fa40c5ba0308f106ded7450caa38f97607f80c5a | /CodeForces/750C.cpp | c06b3fcf0518ace811cffa72741e8d42761588b8 | [] | no_license | ayushkr1999/Competitive-Programming | 2979718322e8a2eabd5ffa39b3274a70f5c46d44 | efa627d7c2e45180520a68b600bb4c4e621ce498 | refs/heads/master | 2020-12-12T07:42:20.949077 | 2020-06-25T18:29:39 | 2020-06-25T18:29:39 | 234,080,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,324 | cpp | #include<bits/stdc++.h>
using namespace std;
#define fastIO ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define ll long long
#define ld long double
#define lli long long int
#define pb push_back
#define INF 1000000000
#define mod 1000000007
#define MOD 1000000007
//#define mp make_pair
#define loop(n) fo... | [
"noreply@github.com"
] | ayushkr1999.noreply@github.com |
d2f3599a90df3d570a2f9575bb746142d36c52b3 | ae03ec412ab5c7450eab5e346aad0ba47dd88a88 | /E/submissions/accepted/solution.cpp | 0e693131e02bc53ff532a5a5af06594f8d668932 | [] | no_license | mzshieh/2019-nctu-annual | 7a5c1613a073409dc2b8260831d22abb112a36bc | 6083dc403a7848edffbbe84c95c6803b96a56c1c | refs/heads/master | 2020-06-19T18:46:15.386359 | 2019-09-04T15:29:38 | 2019-09-04T15:29:38 | 196,827,993 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,473 | cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
void dump(vector<vector<ll> >const& A){
for(int i=0;i<A.size();++i){
for(int j=0;j<A[i].size();++j)
cout << A[i][j]<<" ";
cout <<"\n";
}
cout <<"\n";
}
ll pow(ll a, int b, ll mod){
if(b==0) return 1LL;
if(b&1) return pow(a,b-1,mod)*a%mod;... | [
"mzshieh@nctu.edu.tw"
] | mzshieh@nctu.edu.tw |
5160405ac357471a88aef97196704edfc12cf326 | e99c4668fed033cf12b876b292500dc4268e285f | /数据结构实验/数据结构实验三.cpp | 1fbc2024b918968e07578ff7247076681aba0246 | [] | no_license | 1638401615/c-program | 6c5403d9e6d62d6b48bfb81722725759b212aa9d | edf9c751885d453f034456006b454e71e6a57354 | refs/heads/master | 2023-07-02T16:28:49.538953 | 2021-08-09T03:47:41 | 2021-08-09T03:47:41 | 366,742,279 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 22,696 | cpp | #include "stdio.h"
#include "stdlib.h"
#include "string.h"
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define INFEASIBLE -1
#define OVERFLOW -2
#define INCREMENT 10
#define INIT_SIZE 100
typedef int status;
typedef int KeyType;
typedef struct {
KeyType key;
char others[20];
} TE... | [
"1638401615@qq.com"
] | 1638401615@qq.com |
e8f114807268ea42e21f0c497bc0a3c00a2d32b7 | 5fb3b217a97d2c408f904d41c1cf6a8fcedfcf68 | /Arrays/array-ds.cpp | 1c667d721eb4bf543670499a9e12677ab8d3bde3 | [] | no_license | carooobregon/CodingProblems | 0c1758f6a4c18109be1d9eb5dcf1e13d012abcb8 | e48d7958dc70a3aecb577be426cc861780927404 | refs/heads/master | 2022-12-20T16:20:15.825042 | 2020-09-27T23:45:43 | 2020-09-27T23:45:43 | 290,127,270 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,085 | cpp | #include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Complete the reverseArray function below.
// Memory: O(1) (only using extra temp variable)
// Time: O(n) (runs through half array)
vector<int> reverseArray(vector<int> a) {
size_t starting = a.size()-1;
int backwardsCount... | [
"caroobregon@gmail.com"
] | caroobregon@gmail.com |
3d9cf4580afa10f31a5b99a8876bd2e59a6d4110 | dfa2288fcc0a60d032c1952c76464f330d7856df | /SPOJ-EKO.cpp | ced89f619d0e5949e893d094ca9461667577fb6f | [] | no_license | bansaljatin05/DSA-Problems | 384895149a93cbd1fc7ed0045f9ae65f37c29b05 | 87b8f420b3d7011310485d74adb5c201edc91f73 | refs/heads/master | 2022-11-28T14:41:48.272984 | 2020-08-09T14:59:38 | 2020-08-09T14:59:38 | 273,499,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | cpp | #include<bits/stdc++.h>
#define ll long long int
using namespace std;
ll arr[1000006];
ll M, N;
bool possible(ll key) {
ll required = 0;
for(int i = 0; i < N; i ++) {
if(arr[i] > key) {
required += (arr[i] - key);
}
}
if(required >= M) return true;
return false;
}
ll BinarySearch(int s, int e) {
ll an... | [
"58761492+bansaljatin05@users.noreply.github.com"
] | 58761492+bansaljatin05@users.noreply.github.com |
d8d71dc06e9a7aad601e157b75d57b53e4fb169f | 80b70f2b7fc6898f49049810781c6afda00868c7 | /Algorithms/Strings/Easy/Super-Reduced-String.cpp | 05e9c4065c101ba7b3ef735c69893fe06a53958b | [
"MIT"
] | permissive | Justin-Teng/HackerRank | b41552a35c611fa6b1687ade5b21d4afb8007d59 | bb501715d4fb0322ccffa70b75c4d6df1463a334 | refs/heads/master | 2020-03-25T00:47:38.140314 | 2019-06-13T15:24:33 | 2019-06-13T15:24:33 | 143,206,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | cpp | #include <bits/stdc++.h>
using namespace std;
string super_reduced_string(string s){
int i = 0;
bool flag = false;
while (i < s.size()-1) {
if (s.at(i) == s.at(i+1)) {
if (i < s.size()-1) {
if (i == 0) {
s = s.substr(i+2);
}
... | [
"noreply@github.com"
] | Justin-Teng.noreply@github.com |
dc2ef48421535bec8851091c7d4c230f351d3acb | d580766b5f7f9bed9714ba3ede817e8888bf047d | /B1022.cpp | b06b139a2e35f13775195263bde21f2cfe6d6b81 | [] | no_license | fyh9835/PTA- | 6fa240706b0896f6e318c326b9ec3670742efa83 | 0788d28782d96b9ee6264729cfcde616401f6896 | refs/heads/master | 2022-11-10T20:11:39.970705 | 2020-06-20T10:26:16 | 2020-06-20T10:26:16 | 273,522,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 213 | cpp | #include<iostream>
using namespace std;
int main(){
int a,b,d;
cin>>a>>b>>d;
int c=a+b;
int e[31];
int count=0;
do{
e[count++]=c%d;
c/=d;
}while(c);
while(count){
cout<<e[--count];
}
return 0;
}
| [
"1251414559.qq.com"
] | 1251414559.qq.com |
5a7c73b458389f267332ebe42845ed53568098b1 | c29407394bf37bd9b2ec0bd75e33219f4863552b | /dp/sg/renderer/rix/gl/TransparencyManagerOITClosestList.h | 3b2cc70ee690b7b1df30184268bcd45225d378c5 | [
"BSD-3-Clause"
] | permissive | getov/pipeline | 33d982de2fe92a10933a516927b23b8d867779d7 | 31b2d0f67a20203c9253ddb097eabc92c1f5079b | refs/heads/master | 2021-01-21T03:50:06.060618 | 2014-10-31T09:23:59 | 2014-10-31T11:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,784 | h | // Copyright NVIDIA Corporation 2011
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following d... | [
"matavenrath@nvidia.com"
] | matavenrath@nvidia.com |
488c10a9c0338b4ca3d42121e859b0e6ba14643f | 7864c40dc383ebe933c5460fea3ea291b411caaf | /BuilderPattern/Code/RestaurantExample/Pepsi.h | 5b0d4c1d8ff2f6fbd5afe3dd122c1fa607004951 | [] | no_license | shimon0505004/Design-Patterns | 1f10ba13e725492893e7e726d80164103e8a9699 | c45934b82d06650678b87ce062522c2d8d04b431 | refs/heads/master | 2021-01-09T06:22:57.810591 | 2017-02-06T06:23:41 | 2017-02-06T06:23:41 | 80,967,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 159 | h | #pragma once
#include "ColdDrink.h"
class Pepsi :
public ColdDrink
{
public:
Pepsi();
~Pepsi();
std::string name() override;
double price() override;
};
| [
"shimon0505004@gmail.com"
] | shimon0505004@gmail.com |
983c3efeb7048c67c17715dad8d0073f2fed50db | b8c71b0abfd9f1d1b59c9c41144ba58f138267c6 | /altacliente.cpp | cfba423d7da4102f3c6f0a8426b5c6a9d118b7c2 | [] | no_license | AdrianPrietoLozano/biblioteca | e61af191d5ea18ca1ad5185960cef1e78d6e4bc2 | 4498341718783d1665025e40949be2b28d4d447f | refs/heads/master | 2020-05-02T17:29:10.123244 | 2019-05-22T04:29:28 | 2019-05-22T04:29:28 | 178,100,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,064 | cpp | #include "altacliente.h"
#include "ui_altacliente.h"
#include <QMessageBox>
AltaCliente::AltaCliente(QWidget *parent, const QString &codigoCliente, int tipoVentana, const QString &texto, const QString &titulo) :
QDialog(parent),
ui(new Ui::AltaCliente)
{
ui->setupUi(this);
db = QSqlDatabase::database("... | [
"prietolozano.adrian@gmail.com"
] | prietolozano.adrian@gmail.com |
4d279b68641e79f292f8a4a168ded27ad682e864 | 03273358ecee9e1863c8ce2d4f06151ccc30f6d3 | /Krul/Interpreter/PushStringToStack.cpp | 89adbb73862c98ddfbf819ee9477635811f7efc2 | [] | no_license | SimonMTS/Krul | 81c71de82b576e4cd306f6173110cedb3c264a48 | 78ea784ec0b665c241f7ae2a75c56024a04e3339 | refs/heads/master | 2023-01-05T03:05:44.682288 | 2020-10-28T12:48:13 | 2020-10-28T12:48:13 | 299,639,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 602 | cpp | #include "pch.h"
#include "PushStringToStack.h"
PushStringToStack::PushStringToStack(std::string s) {
string = s;
}
int PushStringToStack::Do(MemoryData& data, int i) {
data.stack.push_back(string);
return i;
}
std::unique_ptr<Action> PushStringToStack::Match(MemoryData& data, int i, const std::string& ... | [
"info@simonstriekwold.nl"
] | info@simonstriekwold.nl |
4fcfb2b0381793f0a04b26bc1a9989b37af9425c | 0892a5eb32b8b026da31eeb4e7fd8c473a10078e | /ext-sort/bin2text.cpp | d38d1c5c335a9fe5a9d4c2656e7f137a1ed04a22 | [] | no_license | tanyatik/ext | 26d18d3a3dcfe99068e9d24d0c0cf006785deb1a | d5d7fe8a539b3e3a3671f6c9cddf6ccfefa781f3 | refs/heads/master | 2020-07-08T08:17:32.888746 | 2017-08-15T20:48:13 | 2017-08-15T20:48:13 | 39,442,813 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cpp | // Converts binary file with integers to text format.
#include <iostream>
#include <string>
#include <fstream>
int main(int, char **argv) {
using std::ifstream;
using std::ofstream;
using std::ios_base;
ifstream fin(argv[1], ios_base::in | ios_base::binary);
ofstream fout(argv[2], ios_base::out);
... | [
"tanyatik@yandex.ru"
] | tanyatik@yandex.ru |
188d532e37ce917ff93414f9e9324cc0e93ed0d2 | 9d364070c646239b2efad7abbab58f4ad602ef7b | /platform/external/chromium_org/chrome/installer/util/util_constants.h | 5a4dc829813726e89eafd126977c5a5dc86eba6c | [
"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 | 7,998 | h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_
#define CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_
#include "base/basictypes.h"
namespace installer {
... | [
"allegrant@mail.ru"
] | allegrant@mail.ru |
053a55a1e2b31dd43bf9f6c91a99a75c8153407e | 588c59ce0d31e9874dee2902e9f1cd87a909b74b | /QuickSort/QuickSort/源.cpp | 7f2986e0479dc70b13801472dd379c55c1b738b6 | [] | no_license | MemoryOfStars/rehab | e56da637a6ec89bb283b45498aea301cd14d9fb0 | d0eceaa3a48ee502268848d7c98c2d31e1aa5ed8 | refs/heads/master | 2020-08-29T00:24:37.635064 | 2019-12-01T07:17:29 | 2019-12-01T07:17:29 | 217,864,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,491 | cpp | /*
QuickSort:
>Regard the last element as a pivot element.
>go through the whole sequence and compare each element with pivot element.
>divide the whole sequence into two subsequences, one of which is smaller than pivot element while the other is bigger.
>these 3 steps processed above seems like having put the pivot el... | [
"38707974+MemoryOfStars@users.noreply.github.com"
] | 38707974+MemoryOfStars@users.noreply.github.com |
8eb8b01597a4d9b4b37e6e7a3325959fbbb1dbef | b599dfef0aa22dcc8bdc06f894232d263a578308 | /EUI/include/native/NativeMenu.h | 8cc008f975be363fb8856deb03eea5ee4814329c | [] | no_license | ENgineE777/EditorSteps | 531c963d5786f50abf2859690d8e04db2bb47ca1 | cd15c8f6c72c2c0c3af2db34e9e89b99deac288f | refs/heads/master | 2021-01-01T16:57:39.905228 | 2017-08-06T12:10:01 | 2017-08-06T12:12:14 | 97,959,463 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | h |
#pragma once
#ifdef PLATFORM_WIN
#include "native/win/WinWidget.h"
#else
#include "NativeWidget.h"
#define WinWidget NativeWidget
#endif
class NativeMenu : public WinWidget
{
public:
NativeMenu(EUIWidget* owner) : WinWidget(owner) {};
virtual void AddItem(int id, const char* name) = 0;
virtual void AddSeparator... | [
"enginee777@gmail.com"
] | enginee777@gmail.com |
37d9dad07d47066356b4e148e6fc070ed47eb798 | 94d39372fba35b661b1c3f9d8ace1c371a921cfe | /performance_tests/FastDDS/QA/LateJoiner2/src/HelloWorldPubSubTypes.cxx | 3db621eefe3568819b6260b5e2709e1c65ab9eb9 | [
"MIT"
] | permissive | krinii/dds-on-hardware | 7aa6648869b885066bd219cd64e5e3f66a9dd9e7 | 86905069493130679ad8a3b1bfd3465319106fd0 | refs/heads/master | 2023-02-04T01:29:48.592606 | 2020-12-18T18:46:43 | 2020-12-18T18:46:43 | 290,186,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,887 | cxx | // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | [
"krini15@student.sdu.dk"
] | krini15@student.sdu.dk |
490c91a492857f98fad68ec4b71f52109bfd01d8 | 85e5e67b0ddb32701b6aad5c3d2a428c768bb41c | /Engine/SceneManager.cpp | 97ba75cc382867dc663dcd6006a191b627aaa2a8 | [] | no_license | lim-james/Allure | a6ebca6b2ca1c70bc2108f8ae710c2a88117657d | 6d837a49254d181babf546d829fc871e468d66db | refs/heads/master | 2021-07-18T04:31:08.130059 | 2020-08-21T03:30:54 | 2020-08-21T03:30:54 | 205,639,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,874 | cpp | #include "SceneManager.h"
#include <Events/EventsManager.h>
SceneManager::SceneManager() {
EventsManager().Get()->Subscribe("PRESENT_SCENE", &SceneManager::PresentHandler, this);
EventsManager().Get()->Subscribe("DISMISS_SCENE", &SceneManager::DismissHandler, this);
}
SceneManager::~SceneManager() {
while (!scene... | [
"jameslimbj@gmail.com"
] | jameslimbj@gmail.com |
8b34104e1a118622035ed5be1d631d11ee7f25ac | 79372fece75f82c5a7a8e1abeb02da78c15c8ea1 | /week 6 - chaîne de caractères et structures/lettre1.cc | b76dbe37ff4c540c3b01a39601cd0282353d4d2f | [] | no_license | HermonAlfaro/Initiation-a-la-programmation-en-Cpp | 549d23d9ccc5943c52b3de99f82004c3fc06476d | 53be37f41bed85c4ab49be9dfe3cb4f6de973f78 | refs/heads/master | 2022-11-30T17:50:35.330053 | 2020-08-16T09:07:41 | 2020-08-16T09:07:41 | 287,906,015 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 509 | cc | #include <iostream>
using namespace std;
void genereLettre()
{
cout
<< "Bonjour chère Mireille," << endl
<< "Je vous écris à propos de votre cours." << endl
<< "Il faudrait que nous nous voyons le 18/12 pour en discuter." << endl
<< "Donnez-mo... | [
"haalfaro@uc.cl"
] | haalfaro@uc.cl |
837e4d5fcaa10193c2252ef07bd609f639ceee6e | 855f2fc42825bbbb2edbbb0c5d6d701a5440b664 | /trazenje-teksta/src/lib/boyer-moore/bcr.cpp | a2aa8b7738f67e3b1654f2bad2e999af1e6f2de8 | [
"MIT"
] | permissive | dragomir003/trazenje-teksta | 343372d3bdbb6adf3548b77440d4656b0a989292 | 14d21fbc94ce5de63581b3673c965ca85fa43f8b | refs/heads/main | 2023-04-27T05:33:36.798369 | 2021-05-12T15:31:38 | 2021-05-12T15:31:38 | 366,386,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | cpp | #include "./bcr.h"
auto create_bcr_table(const char* pattern) -> BcrTable {
BcrTable table;
const auto len = std::strlen(pattern);
auto assigned_to_last = false;
const auto last = *(pattern + len - 1);
for (int i = 0; i < len - 1; ++i) {
const auto c = pattern[i];
if (c == last)
assigned_to_last = true;... | [
"dragolekovic@gmail.com"
] | dragolekovic@gmail.com |
5ad724915e0c6770795cbf756fb8ff98dd488a3f | 4e2eb731822c0d920e0d7b04d64fda95dbd72195 | /Bataille_navale/game2joueurs.cpp | 4bf51087fff5ecc5d77dcf30150031a9c6d36570 | [] | no_license | AntoinePicot/Bataille_Navale_Qt | 8db7503e58136e465c97ce8c7ebf4589378040cb | 502c01f836d3e100c6a0f0a5521d36d1a8b1c467 | refs/heads/master | 2020-03-16T23:20:37.873632 | 2018-05-26T17:48:10 | 2018-05-26T17:48:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 147 | cpp | #include "game2joueurs.h"
Game2joueurs::Game2joueurs()
{
setWindowTitle(" Gravitrips - 2 JOUEURS");
setWindowIcon(QIcon("iconBN.jpg"));
}
| [
"teepix.teepix1@gmail.com"
] | teepix.teepix1@gmail.com |
775423eb979f77b835606c4c728da251b68d76d8 | 1ea17fb9415957a1bedd02f121627a094620ed52 | /Session 2/hy00nc/11651.cpp | ae6c111799fa9d95240b2c7660c287a1056795d6 | [] | no_license | gaonK/AlgorithmStudy | e5dd261537c8ec2bb3058d4c7fd05cda599aafc5 | 025f09bc7b18f2c84c5db24a66548c06f86f3d0b | refs/heads/master | 2021-07-09T12:38:13.777563 | 2019-03-07T22:29:49 | 2019-03-07T22:29:49 | 147,552,885 | 2 | 2 | null | 2019-03-07T22:29:50 | 2018-09-05T17:09:58 | C++ | UTF-8 | C++ | false | false | 385 | cpp | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main(){
cin.tie(NULL);
ios::sync_with_stdio(false);
int n;
cin>>n;
vector <pair<int,int>> a(n);
for(int i=0;i<n;i++){
cin>>a[i].second>>a[i].first;
}
sort(a.begin(),a.end());
for(int i=0;i<... | [
"chohy0555@gmail.com"
] | chohy0555@gmail.com |
1c86e705d5b4f2bc1c0496e4ab35d1906a9af479 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /net/quic/core/crypto/curve25519_key_exchange_test.cc | 7496bca828e58d149001faf55142f92640575ce4 | [
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | C++ | false | false | 1,423 | cc | // Copyright (c) 2013 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 "net/quic/core/crypto/curve25519_key_exchange.h"
#include <memory>
#include "net/quic/core/crypto/quic_random.h"
#include "net/quic/platfor... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com |
354026df37c04e1fc7eb19f8d764312bc2e3d619 | 8b24d3719e082e5710ceea6818238a1538efa132 | /Code/Engine/Renderer/RenderBuffer.cpp | 3f5ef8e5be2dd7a6f2b7b6ff5e808aec32b8a8aa | [] | no_license | pronaypeddiraju/LudemDare45Engine | 33c630ad2a993550a43d502b7386e18f284f02de | 8accde4d111c067592ce98a3b8ad1b9d8161c959 | refs/heads/master | 2022-03-03T00:41:58.798071 | 2019-10-06T02:38:20 | 2019-10-06T02:38:20 | 213,037,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,307 | cpp | //------------------------------------------------------------------------------------------------------------------------------
#include "Engine/Renderer/RenderBuffer.hpp"
#include "Engine/Renderer/RenderContext.hpp"
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// D3D11 STUFF
//=-=-=-=-=... | [
"pronay.y2k@gmail.com"
] | pronay.y2k@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.