blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 201 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 7 100 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 260
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 11.4k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 80
values | src_encoding stringclasses 28
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 8 9.86M | extension stringclasses 52
values | content stringlengths 8 9.86M | authors listlengths 1 1 | author stringlengths 0 119 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2a3bcdd144a08287a48cf6a5fadba2d8c8e4d81 | 2d5c49c5171055727b7d28fdcab3bfe96a376f92 | /uva/10071 - Back to High School Physics.cpp | 6a672c6f0fb5ca30fa9d2b6b0797ca06e1595231 | [] | no_license | mahfuzmohammad/ProblemSolving | 70dfe2b5f23e1934adcf3e96228e84a2abf89f75 | 324d02d0a81c3521833b9ed2670c084adad536f0 | refs/heads/master | 2021-01-10T07:48:40.895308 | 2015-07-24T22:52:17 | 2015-07-24T22:52:17 | 36,975,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 175 | cpp | #include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int v, t;
while(cin >> v >> t){
cout << (v * t * 2) << endl;
}
return 0;
}
| [
"mahfuz.discover@gmail.com"
] | mahfuz.discover@gmail.com |
484865420ebcb18a2302c851b744bbba31c713e9 | c7a4259e840d07a4a9739ecea0ff811866d6a44d | /projectsg/projectsg/main.hpp | f60f51079fa38453197f7af8d7460455912095e6 | [] | no_license | EliotVonEcklie/project-sg | cbb4b29b5e31ee2684cc57fc0eed51402f5e0674 | 09aab41c27001ffbe62233182d49312e52638a3b | refs/heads/main | 2023-03-10T07:24:39.680778 | 2021-02-22T23:04:58 | 2021-02-22T23:04:58 | 341,049,304 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 149 | hpp | #pragma once
#include <iostream>
#include <random>
#include <functional>
#include <projectsg/gui/gui.hpp>
#include <projectsg/physics/vectors.ipp>
| [
"josephhansdiaz30@gmail.com"
] | josephhansdiaz30@gmail.com |
f1a0a71339a64bf00f436f42bd3a049774658093 | 9c413d807c6ff456f6032636753d9f9246944cdf | /Calculator/Calculator.cpp | 0b856e668e268863b0deac2c04029708f2a3020c | [] | no_license | Deniska1323/Calculator-kursovik | 331859abf19f471405b217e6e1261300c968273a | cc8f421698d5d38143c8b27501925a78f0869f39 | refs/heads/master | 2022-07-19T06:14:59.544521 | 2020-05-25T09:47:33 | 2020-05-25T09:47:33 | 262,019,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | cpp | #include "pch.h"
#include <iostream>
#include "IncludeGuards.h"
using namespace std;
int main()
{
string s;
while (true)
{
system("cls");
cin >> s;
cout << check(s) << endl;
system("pause");
}
}
| [
"daimondhome@mail.ru"
] | daimondhome@mail.ru |
35eb369127517de65b96457f7886600ce0c646a5 | 52436fc6aab271ca8f80951f5805952b6dce9c97 | /0-N-knapsack.cpp | a38e650969eac462c543cd05413f88803dc2fd34 | [
"MIT"
] | permissive | rishavraj5/interview-prep | a6d8c2bea42936bc31e16c33e0590c55e5bc4264 | 3b72f5a750fffa3383d48b8fd1e74f0c9c49b645 | refs/heads/master | 2020-11-26T12:00:30.320357 | 2020-01-06T18:18:33 | 2020-01-06T18:18:33 | 229,065,461 | 1 | 0 | MIT | 2019-12-19T13:57:14 | 2019-12-19T13:57:13 | null | UTF-8 | C++ | false | false | 756 | cpp | #include<iostream>
using namespace std;
int weight[1001],value[1001],n;
int dp[1001][1001];
int knapsack(int W,int start)
{
if(start==n||W==0)
return 0;
if(dp[W][start]!=-1)
return dp[W][start];
if(weight[start]>W)
return dp[W][start]=knapsack(W,start+1);
return d... | [
"abc@gmail.com"
] | abc@gmail.com |
a126585c8e9359b4ffdc7a755b17f1337ea0c390 | 715c86bb9b3689cdc86300cf4fa824a3864b1b3f | /src/computinghurt/armyhurt.h | 54fc0c90c57f1433eed3fd5b289068f57e1d9694 | [] | no_license | Ivanhan2018/zsbbserver | cb94a2353453bd41ce237aa27865b491be04d9fd | 02a3827099b93f93a2e1aeb6460f6eede57ed8ee | refs/heads/master | 2022-01-30T07:48:41.497675 | 2022-01-15T01:04:28 | 2022-01-15T01:04:28 | 168,654,088 | 4 | 9 | null | null | null | null | GB18030 | C++ | false | false | 4,666 | h | // $Id: computingarmyhurt.h 2 2009-08-27 12:12:38 Zhangwenlong $
// @brief 部队伤害类
// 当部队攻击时,伤害值的计算如下:
// 攻击力的计算:攻击力包括英雄的和所有士兵的,公式如下:
// 总攻击力(T) = (士兵人数×武器攻击力×种族命中率+英雄攻击力)× (1+光环类效果)× 相克系数 × (地形影响+ 地形技能)
// 其中,英雄攻击力 = 敏捷或力量或智力(根据英雄各类的不同)x 5
// 还有部队所在的位置(如森林,陆地,它的攻击系数是不同的)来共同确定的)
//
// 英雄的物理减免率=(√英雄的物理防御力)/150
// 英雄的魔法减免... | [
"hanxiaohua85@163.com"
] | hanxiaohua85@163.com |
265068b115e948b196a7f1f2fd5421b7ca615088 | 35b184843b895637481960feb4925713494ad28c | /Student_Cuda/src/cpp/core/06_Histogramme/host/histogram.h | 3b8f04b013c88f4a93fdf08c4a5c6dbb7599d8b4 | [] | no_license | doytsujin/parallel-data-processing-class | 62076b46004cd00abb2fe02b22520fb87c47eff2 | f06fe961cd33d788beb7f29667a40e8f2f7674da | refs/heads/master | 2021-06-14T06:13:10.776883 | 2017-04-28T12:21:57 | 2017-04-28T12:21:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | h | #pragma once
#include "cudaTools.h"
#include "DataCreator.h"
class Histogram
{
public:
Histogram(const Grid& grid, int tabSize);
virtual ~Histogram(void);
public:
int *run();
private:
// Tools
int tabSize;
DataCreator *dataCreator;
int *ptrTabResult;
int *ptrTabData;
i... | [
"cyril.ruedin@he-arc.ch"
] | cyril.ruedin@he-arc.ch |
f10987297b5dc70e842c6aefcd8df889d05bcf89 | de4c6c24fdbc8c405d571260031101989f9d43ee | /dfs/andryusha_and_colored_balloons.cpp | b8eac0070a017df35405ebde64b537cae74e7ea8 | [] | no_license | weizesunsunweize/CodeforcesProblems | 8d99ca193220235b2a1b035df98c7c246dac135e | 590ef7e1450b786c059f463d6b0002ee7e080a6e | refs/heads/master | 2020-07-04T20:48:47.225262 | 2019-08-14T19:35:03 | 2019-08-14T19:35:03 | 202,412,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | cpp | /**
* http://codeforces.com/contest/780/problem/C
*/
#include<bits/stdc++.h>
using namespace std;
int n;
vector<int> e[200007], c(200007, 0);
void dfs(int u, int f) {
int j = 1;
for (int i = 0; i < e[u].size(); i++) {
if (e[u][i] == f) continue;
while (j == c[u] || j == c[f]) j++;
c[e[u][i]] =... | [
"weizes2@illinois.edu"
] | weizes2@illinois.edu |
8ee45265ee191ec75b88b61d2b475206f0de9188 | 04dc7cc05f9b33585228e649706dcb2fc1eb797b | /CODEFORCES/231/b.cpp | cfe21acb9f5ba29e6fb4060f678690c3974ca152 | [
"Apache-2.0"
] | permissive | henviso/contests | 4fc34cc86a42a3ff15e23e457a21bba10913f419 | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | refs/heads/master | 2016-09-14T19:14:29.266088 | 2016-05-12T00:02:59 | 2016-05-12T00:02:59 | 58,590,566 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,039 | cpp | #include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <stack>
#include <algorithm>
#include <cctype>
#include <vector>
#include <queue>
#include <tr1/unordered_map>
#include <cmath>
#include <map>
#include <bitset>
using namespace std;
typedef long long ll;
typedef unsig... | [
"henviso@gmail.com"
] | henviso@gmail.com |
9b0defe5f1d4e2373e19dd18cada53e1b02ed013 | c3b28d5134ff2151f1f70609288079dc00223632 | /src/db/Database.hpp | 47dedac18e49688b3818a6997504b05ae65242c3 | [
"Apache-2.0"
] | permissive | rrajpaul/retail-brand-service-cpp | db043d6c29c98908a18538d2d6e1ce0624ec3339 | b075909c8cf9e5dcbfd8ceca3cf86e8ec589678d | refs/heads/master | 2022-07-22T21:30:40.533532 | 2020-05-18T06:53:49 | 2020-05-18T06:53:49 | 260,760,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,430 | hpp | #ifndef Database_hpp
#define Database_hpp
#include <mongocxx/client.hpp>
#include <mongocxx/uri.hpp>
#include <mongocxx/instance.hpp>
#include <bsoncxx/types.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/uri.hpp>
#include <mongocxx/instance.hpp>
#include <bsoncxx/builder/basic/kvp.hpp>
#include <boost/optiona... | [
"rrajpaul@hotmail.com"
] | rrajpaul@hotmail.com |
dd671a197be43f6523ccab312c1d8bba1663ff89 | ca7ea4ae2a8472e6e67a0d4534935eac4227215e | /App/Il2CppOutputProject/Source/il2cppOutput/GenericMethods4.cpp | 175d4db5095f2e7d0dddb02c77364bb35791b0e3 | [] | no_license | DBKKH/MRTK-test | e892e65ee5ed72500d3ff783559965ce36500faa | 2a4e39c97ed5345910649b6821b4a99bb40e0c44 | refs/heads/master | 2022-04-11T19:00:43.354072 | 2020-01-18T11:36:26 | 2020-01-18T11:36:26 | 198,066,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,039,290 | cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... | [
"tanaka.kenji@synamon.jp"
] | tanaka.kenji@synamon.jp |
9e462abfe4f5de37d8c269cdc7bbb61840701e8f | 3e54595cb3634edb4c60eafdbe7cba0b867281d6 | /noiOpenJudge/3.9/3344_1.cpp | bbe796b6202488f6d07c0d32a14d7e4e90f44e0b | [] | no_license | Rainboylvx/pcs | 1666cc554903827b98d82689fdccc2d76bda8552 | 5dd54decfc75960194d415c09119d95bef7c27a9 | refs/heads/master | 2023-08-18T10:02:21.270507 | 2023-08-13T01:36:52 | 2023-08-13T01:36:52 | 219,274,550 | 0 | 0 | null | 2023-07-21T09:19:37 | 2019-11-03T09:56:59 | C++ | UTF-8 | C++ | false | false | 1,174 | cpp | #include <bits/stdc++.h>
using namespace std;
int n;
typedef map<int,int> M;
M m;
void set_m(int cnt,int id){
int val = m[cnt];
if(val == 0){
m[cnt] = id;
}
else {
m[cnt] = min(id,val);
}
}
int main(){
scanf("%d",&n);
int i,j,t1,t2;
m[1000000000] = 1;
M::iterator... | [
"rainboylvx@qq.com"
] | rainboylvx@qq.com |
26085a76b1e801179666c84ed59463099b118f49 | 559207eb5beae4ba9fd638d19bd3009cbe3a6d11 | /src/net/instaweb/util/public/pool_element.h | 8f0f5f431b3b88368e7e4e493078f93a8d7495ab | [
"Apache-2.0"
] | permissive | voku/mod-spdy | 2a8989668fe0c0f0de48c0b7ecd85b5b5b554ed1 | bcfb388cbc5415ee660c2b5dbcf61f6f43c2a5ca | refs/heads/master | 2023-04-05T09:50:46.847114 | 2015-03-19T17:58:09 | 2015-03-19T17:58:09 | 32,537,692 | 0 | 0 | NOASSERTION | 2023-04-04T01:40:41 | 2015-03-19T17:56:26 | C++ | UTF-8 | C++ | false | false | 1,669 | h | // Copyright 2011 Google Inc.
//
// 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... | [
"ptrck@blck.io"
] | ptrck@blck.io |
8387875f91d3feb642cd1463db6eed5c999349e4 | dcd404807089f8c7f898d0fdbd4eac8eddfba70d | /src/xamarin/sk_compatpaint.cpp | aa3a8ca24e8e6294cdd85a67f061b614af92b241 | [
"BSD-3-Clause"
] | permissive | mattleibow/skia | 3d52a7927fa733eedca9c3fd3235f9a905af7477 | 8e7a3aa31b76f3e16e561eead4c938a8fbbd520f | refs/heads/xamarin-mobile-bindings | 2023-03-16T18:06:35.333452 | 2022-05-31T18:20:40 | 2022-05-31T18:20:40 | 502,410,740 | 1 | 0 | BSD-3-Clause | 2022-06-11T17:14:30 | 2022-06-11T17:14:29 | null | UTF-8 | C++ | false | false | 2,119 | cpp | /*
* Copyright 2015 Xamarin Inc.
* Copyright 2017 Microsoft 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 "include/xamarin/SkCompatPaint.h"
#include "include/xamarin/sk_compatpaint.h"
#include "src/c/sk_types... | [
"mattleibow@live.com"
] | mattleibow@live.com |
e4b7519a8feb58030e644d9420b8aae987a658e8 | 74c1e11ac3939255edf3f84d3b3ef14f89bde454 | /torch/csrc/jit/symbolic_script.cpp | f091f9c5ce3c786216e896b818ece9c2ab633ed3 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | lia4/pytorch | af4d0fe17f5c126ef7e34a85ae25f4241881f03c | 8b349073ce4cc2082a634eecd4ee361dc7ca571e | refs/heads/master | 2020-06-30T20:17:15.716338 | 2019-08-06T22:58:52 | 2019-08-06T23:03:01 | 200,938,405 | 0 | 0 | NOASSERTION | 2019-08-06T23:37:07 | 2019-08-06T23:37:07 | null | UTF-8 | C++ | false | false | 55,274 | cpp | #include <torch/csrc/jit/symbolic_script.h>
#include <torch/csrc/jit/operator.h>
#include <torch/csrc/jit/script/compiler.h>
namespace torch {
namespace jit {
namespace {
std::mutex lock;
const std::vector<std::string> functions = {
R"(
#### HELPER FUNCTIONS ###
#### PREFIX: AD_ ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ef250c38c5c691ef9d93e68f5c75c96765ef0abf | d09945668f19bb4bc17087c0cb8ccbab2b2dd688 | /2012-2016/2013/joi/spring_day3/b.cpp | a4a7ca3940db1a1583688a27975ccca5623db359 | [] | no_license | kmjp/procon | 27270f605f3ae5d80fbdb28708318a6557273a57 | 8083028ece4be1460150aa3f0e69bdb57e510b53 | refs/heads/master | 2023-09-04T11:01:09.452170 | 2023-09-03T15:25:21 | 2023-09-03T15:25:21 | 30,825,508 | 23 | 2 | null | 2023-08-18T14:02:07 | 2015-02-15T11:25:23 | C++ | SHIFT_JIS | C++ | false | false | 1,871 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;
#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#... | [
"kmjp@users.noreply.github.com"
] | kmjp@users.noreply.github.com |
ab887704cd2d11a1e724fa4edb443f8f833d0b17 | edbe7b1161225c90bb07117a710652c1e7778c7d | /Wrestling.h | c88f40036be99097371dc482355f81de90436e27 | [] | no_license | AhmadrezaHadi/SamavarQt | 1895e576647a78933c97b735ed28b6a6662556d9 | d012892970176bca58b18ab4649026cf30e1403f | refs/heads/master | 2021-07-17T20:44:33.279503 | 2020-08-06T11:18:51 | 2020-08-06T11:18:51 | 194,386,440 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 763 | h | //
// Created by Jarvis on 5/9/2019.
//
#ifndef SAMAVAR_WRESTLING_H
#define SAMAVAR_WRESTLING_H
#include <QVector>
#include "Sport.h"
#include "shit.h"
class Wrestling : public Sport {
protected:
QVector<Tournament<int>> tours;
Wrestling(){}
public:
static Wrestling& getInstance(){
... | [
"noreply@github.com"
] | noreply@github.com |
fa9e34b7ff028ab4f84a88f50d792cc67c84899d | 26c55be2a2b7c1c5e23a3a565e4f13968c45a324 | /src/cudadecoderbin/batched-wav-nnet3-cuda2.cc | d748cc8bd1c81923c968069b7533c203f850d13d | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | SpeechColab/kaldi | 9f134fd5b59e273bc7c164a0d290404359def4b5 | 6d03736d09a5575125f2d278fc0f250c5541f6e4 | refs/heads/master | 2023-06-05T02:24:15.704954 | 2021-06-29T07:55:47 | 2021-06-29T07:55:47 | 347,869,738 | 6 | 4 | NOASSERTION | 2021-06-29T07:40:22 | 2021-03-15T07:04:53 | Shell | UTF-8 | C++ | false | false | 9,290 | cc | // cudadecoderbin/batched-wav-nnet3-cuda2.cc
//
// Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
// Hugo Braun
//
// 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
//
// ht... | [
"noreply@github.com"
] | noreply@github.com |
fe121b25cae7b88e82950ffb9ca002b1fc4d0a4e | 1e1b3f702bdf6c0544ae27a321c8ebe605434ee4 | /Chapter8/Sample197/DySplitterWnd/DySplitterWndDoc.h | 9170e782d50957d5b13c9aaab2d464d1285982d6 | [] | no_license | Aque1228556367/Visual_Cpp_By_Example | 63e3d67e734b7d95385a329e4a1641e7b1727084 | 41f903d8c9938e7800d89fcff31b182bfc1c4f45 | refs/heads/master | 2021-03-12T20:36:56.780300 | 2015-05-08T02:05:46 | 2015-05-08T02:05:46 | 35,171,152 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,495 | h | // DySplitterWndDoc.h : interface of the CDySplitterWndDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_DYSPLITTERWNDDOC_H__533568E9_09C4_4261_A689_54243EC7D3DE__INCLUDED_)
#define AFX_DYSPLITTERWNDDOC_H__533568E9_09C4_4261_A689_54243EC7D3DE__INCLUDED_
#if _M... | [
"1228556367@qq.com"
] | 1228556367@qq.com |
67dda643e3c2b9c414cc1935c1104df88bff4f7a | ad690ef89ca68c6d2784f406f3a0d5d0f719c9e9 | /sort/PISORT~1.BAK | 67b3146cabfbda12e8e26b775ec0f50f7139b98e | [] | no_license | Hits-95/Data_Structure | 0e501e2056af646f6a7879b1a374ddde811d8686 | e26d53b01b3253dbb97e162bdddd4c9db2f69aad | refs/heads/master | 2023-03-12T19:00:23.414914 | 2021-03-02T12:17:52 | 2021-03-02T12:17:52 | 322,358,911 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | bak | #include<stdio.h>
#include<conio.h>
void main() {
int x[10],i,j,n,key;
clrscr();
//INPUT
printf("\n Enter value of n = ");
scanf("%d",&n);
printf("Enter %d values ",n);
for(i=0;i<n;i++){
scanf("%d",&x[i]);
}
//PROCESS
for(i=1;i<n;i++){
key=x[i];
for(j... | [
"hbahire2014@gmail.com"
] | hbahire2014@gmail.com |
8c0b23b936f21a93079a2ff353be4b18276ea4bf | 78918391a7809832dc486f68b90455c72e95cdda | /boost_lib/boost/mpl/aux_/preprocessed/dmc/bind_fwd.hpp | 5f68bbfcdc1aea4105be5314a10278d0b7d5be44 | [
"MIT"
] | permissive | kyx0r/FA_Patcher | 50681e3e8bb04745bba44a71b5fd04e1004c3845 | 3f539686955249004b4483001a9e49e63c4856ff | refs/heads/master | 2022-03-28T10:03:28.419352 | 2020-01-02T09:16:30 | 2020-01-02T09:16:30 | 141,066,396 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | hpp |
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Preprocessed version of "boost/mpl/bind_fwd.hpp" header
// -- DO NOT modify by hand!
namespace boost
{
namespace... | [
"k.melekhin@gmail.com"
] | k.melekhin@gmail.com |
661a2c209820e3b2d1209ac5bcdd7f1a184dcf5d | f0ffbfedf511674c02d2258bfe27a9c0c974ffe3 | /CSCI6212/trapRainWater.cpp | 4bd5026457fb6819c671f5fc88793564d78e9064 | [] | no_license | swilliams9671/computerSystems | ed7af611dc881af7c843d16ba07fcd11e1790f0c | 863755bd4bbdb555d154bc26c8091c10ca84c47b | refs/heads/master | 2023-07-19T07:10:54.305213 | 2019-12-03T20:09:16 | 2019-12-03T20:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,025 | cpp | /* Author: Steven Williams
** Given an elevation map (with non-negative integers), compute how much water the terrain map will trap
** The map is shown below (x marks the elvation and - marks the trapped water)
** |
** | x
** | x---xx-x
** | x-xx-xxxxxx
** --------------
*/
#include<iostream>
#include<vector>
... | [
"mstevenwilliams@gmail.com"
] | mstevenwilliams@gmail.com |
5a83bd03ed99eaf0f6f30fe194a052ec5b5ef125 | b9ddbd77973d98c04485dff3694b06ee38a904e1 | /include/assimp/BaseProcess.h | 95c1af81538c14b76116aaf874dc63688acd0507 | [
"WTFPL"
] | permissive | wilkie/apsis | 64a6e9599dc22ae3efc8b9d57cb0c1ee6daf4691 | 9e6a37ad9dfc8931b25b9429d7e4a770b4e760bf | refs/heads/master | 2016-09-05T15:18:05.598538 | 2013-10-12T05:48:33 | 2013-10-12T05:49:00 | 3,038,052 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,188 | h | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2012, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... | [
"wilkie05@gmail.com"
] | wilkie05@gmail.com |
490f17cfd3abf116a88d5a436c7e29a6ed23efc1 | 2327e2435057da53b9caae2656113057a9118f0d | /include/motion.hpp | 7cacb381f814faca4843cba537c211e62309fe03 | [] | no_license | masaedw/zugagaga | 5696a3db3001521f3907189c96289a912d28ccc2 | e5ad5bcc7ff942dfeddd2356a5db04e9227b3682 | refs/heads/master | 2016-09-02T19:58:08.003900 | 2016-02-01T10:33:58 | 2016-02-01T10:33:58 | 122,791 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,640 | hpp | // last modified <2004/02/02 14:42:57 2004 JST>
#ifndef ZUGAGAGA_MOTION_HPP
#define ZUGAGAGA_MOTION_HPP
#include <vector>
namespace zu3ga {
/**
方向を表す定数
*/
namespace Direction {
enum t {
Dir1 = 0,
Dir2,
Dir3,
Dir4,
Dir6,
Dir7,
Dir8,
Dir9,
None,
... | [
"masa.edw@gmail.com"
] | masa.edw@gmail.com |
a9eb32c1b23f51d126970962bd5d2a65e460eb28 | 94b0916ec3d3ca7109d1ba9645f9791e41c305ea | /Subscriber.cc | 950e853121136d4c94115af048be9deb44b25c29 | [] | no_license | mujtaba65/Telecommunication-Center | f675afa6b08c57c9147ef8c582653e42dbb2f13f | 62cf9783f6a827bc534c1be7cc4cd027c8453ce3 | refs/heads/main | 2023-04-30T08:57:55.208732 | 2021-05-17T07:02:06 | 2021-05-17T07:02:06 | 368,087,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | cc | #include <iostream>
using namespace std;
#include "Subscriber.h"
#include "Array.h"
#include "Call.h"
Subscriber::Subscriber(string s)
{
phoneNumber = s;
}
Subscriber::~Subscriber()
{
//cout << "Subscriber Dtor" << endl;
}
void Subscriber::addIncoming(Call* c)
{
incomingCalls.add(c);
}
void Subscriber::addOutg... | [
"mujtaba.ehtesham335@gmail.com"
] | mujtaba.ehtesham335@gmail.com |
5321e3bcf53c6fea4039ac610cf92f10a6c2a1ce | 2a86e0c62688883e99d054b64f97c9ff93354c12 | /DelegateEx/main.cpp | faede944b184c17474d3504d37c68964c2609101 | [] | no_license | gaooooke/QtDemo | 563bdb955ef82cb92023e90d3449ed433bea2859 | faea0ab5ba42b0ee34db98c84a1e544e302d1037 | refs/heads/master | 2022-08-29T22:46:03.784863 | 2020-05-27T14:47:01 | 2020-05-27T14:47:01 | 266,265,850 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,179 | cpp | #include "mainwindow.h"
#include <QApplication>
#include <QStandardItemModel>
#include <QTableView>
#include <QFile>
#include <QFileDialog>
#include <QTextStream>
#include "datedelegate.h"
#include "combodelegate.h"
#include "spinboxdelegate.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Q... | [
"gaokechen@hotmail.com"
] | gaokechen@hotmail.com |
2a31ee7210afbf1f1348bc7b595c6c4faae74f4c | 4091a91a16e575b8052cc898790c925e263b2352 | /First-Semester/Assignments-Activities/TilesProblem.cpp | 419655492553719bf185b1cf5cbe216cd552f2d6 | [] | no_license | vmangahis/FirstYear-SourceCodes | 0de69762dd368787f0db5ae7f31df16de0e48b3d | cf972c1092ccec505f522949b31592b982fef571 | refs/heads/master | 2020-07-02T20:35:15.238556 | 2019-09-20T05:08:50 | 2019-09-20T05:08:50 | 201,656,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | cpp | #include <iostream>
using namespace std;
int main()
{
int numoftiles, exttiles;
float ltiles, wtiles, lfloor, wfloor, areafloor, areatiles;
cout << "This program will compute the number of tiles needed to the given length and width of floor and the tiles" << endl;
cout << "Enter the length of floor (in meters)" <... | [
"vince.baron092299@gmail.com"
] | vince.baron092299@gmail.com |
3faf64b3ffdf921c1a40f1c53253cd8b42e1bb54 | 19539541866bbe3ac5e93282562d327ae4ca8693 | /Source/ScriptCommands/Objects/ComponentScriptCommands.cpp | 1ad2bda73c11c440b4b13d6aeb812c3b6f132271 | [] | no_license | AlanWills/CelesteLua | 5910839969cf9e33301faba1120dd55da6787879 | 94fc9863d97248a06477e5f4166dec1f47d80c96 | refs/heads/master | 2021-05-22T16:32:28.402004 | 2020-04-22T22:23:54 | 2020-04-22T22:23:54 | 253,004,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | #include "ScriptCommands/Objects/ComponentScriptCommands.h"
#include "ScriptCommands/ScriptCommandUtils.h"
#include "sol/sol.hpp"
#include "Registries/ComponentRegistry.h"
#include "Objects/Component.h"
namespace sol
{
template <>
struct is_to_stringable<Celeste::Component> : std::false_type {};
}
namespace Cel... | [
"alawills@googlemail.com"
] | alawills@googlemail.com |
999548b772c696b11c2fc7ec0d97d09288256a33 | 05b4870fec1c8850288d701a082a70021901c1ef | /stars.hpp | f2b74698645f984c9b45b3c34989a08bad53fdb7 | [] | no_license | 1712656669/solarsystem | 37dfc14f5df96cf46737225bc8040f8e165059c9 | 580d996345331d86e255e497eb40ceaf2041795b | refs/heads/master | 2022-11-26T07:33:58.102557 | 2020-08-08T13:04:14 | 2020-08-08T13:04:14 | 258,441,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,141 | hpp | //
// stars.hpp
// solarsystem
//
//hpp,其实质就是将.cpp的实现代码混入.h头文件当中,定义与实现都包含在同一文件,
//则该类的调用者只需要include该hpp文件即可,无需再将cpp加入到project中进行编译
//
//#ifndef是if not define的简写,是一种宏定义判断,作用是防止多重定义
//在头文件中使用,防止头文件被多重调用
//比如你有两个C文件,这两个C文件都include了同一个头文件
//而编译时,这两个C文件要一同编译成一个可运行文件,于是问题来了,大量的声明冲突
#ifndef stars_hpp //先测试stars_... | [
"noreply@github.com"
] | noreply@github.com |
55cea9b7e6e927e8932b9d3b7d3a8019d78ee471 | 55df546c36e81bbd8786bb092e3be4cf2b2db065 | /shared_model/backend/protobuf/query_responses/proto_roles_response.hpp | cae8645cb31254a42055493d99fd777e63e962a2 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | NickMavronick/iroha | d9dacb651475ac8e2edb0c8fd7af129e08097ca4 | 4839bae80fbf5184af9df9600552fab12af1c513 | refs/heads/master | 2020-06-16T00:26:30.674709 | 2019-07-05T04:35:33 | 2019-07-05T05:21:30 | 195,431,244 | 1 | 0 | Apache-2.0 | 2019-07-05T15:27:13 | 2019-07-05T15:27:13 | null | UTF-8 | C++ | false | false | 1,083 | hpp | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_SHARED_MODEL_PROTO_ROLES_RESPONSE_HPP
#define IROHA_SHARED_MODEL_PROTO_ROLES_RESPONSE_HPP
#include "backend/protobuf/common_objects/trivial_proto.hpp"
#include "interfaces/query_responses/roles_response.... | [
"andrei@soramitsu.co.jp"
] | andrei@soramitsu.co.jp |
1690e600e18bc3a3948a7be89c946817157e4aa2 | c7bb17447090c359eb9ce240c58189bc934a19a2 | /ouzel/math/MathUtils.hpp | 4afb2a152087b4d0f44f5bf393525c9abb6fddb1 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | jaccen2007/ouzel | f06ee604c250d19f6ab23e4414b097ebbbd1e013 | 6981f79f6ddf5fb93d4cacf6e6357383a0cf7d2f | refs/heads/master | 2022-01-08T15:04:10.811120 | 2019-07-19T12:35:16 | 2019-07-19T12:35:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,072 | hpp | // Copyright 2015-2019 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_MATH_MATHUTILS_HPP
#define OUZEL_MATH_MATHUTILS_HPP
#include <cstdint>
#include <cmath>
#include <limits>
#include <type_traits>
#if defined(__ANDROID__)
# include <cpu-features.h>
#endif
namespace ouzel
{
#if defined(__ARM_NEON__)
# if de... | [
"elviss@elviss.lv"
] | elviss@elviss.lv |
decc84fc6138ad504e08ad49c9c8f6cf6ce19886 | 566028d67ccc31c15eceb12d99f4facca707b35d | /op25/gr-op25_repeater/include/op25_repeater/gardner_costas_cc.h | 524c5bceba6404622cfd903b61cc2fac3762da1a | [] | no_license | JoeGilkey/op25 | 3f97eed2df3f78530e5235f710c229fa00eb9e1f | a3f070260d007b230086783c08467b47808f2e2f | refs/heads/main | 2021-12-03T04:46:22.297242 | 2021-11-30T00:57:46 | 2021-11-30T00:57:46 | 227,921,328 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,157 | h | /* -*- c++ -*- */
/*
* Copyright 2013 <+YOU OR YOUR COMPANY+>.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This software i... | [
"JoeGilkey@users.noreply.github.com"
] | JoeGilkey@users.noreply.github.com |
4193b101f9ff3a7baef3ac1d5acf997e9e01a908 | 87f54a40c43244695aa82ae3c4c2a3c7cee03c55 | /src/cegis/genetic/program_individual_test_runner_helper.cpp | 0ea9532ec3e9d79cda69e536012e1bfddd01e046 | [
"BSD-2-Clause",
"BSD-4-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | smowton/cbmc | 6de9f78c3e56a2a73ab5361dc0ebbddcb29ed370 | ab1b9448517a18d23ac68099d8bf0260be1fefa4 | refs/heads/master | 2021-05-23T03:06:42.077145 | 2016-11-29T23:13:44 | 2016-11-29T23:13:44 | 75,178,953 | 1 | 1 | NOASSERTION | 2019-05-01T12:23:12 | 2016-11-30T11:02:38 | C++ | UTF-8 | C++ | false | false | 2,164 | cpp | #include <util/substitute.h>
#include <cegis/instrument/literals.h>
#include <cegis/genetic/program_individual_test_runner_helper.h>
void implement_program_individual_deserialise(std::string &source,
const bool danger)
{
source+=
"#include <string.h>\n\n"
"#define " CEGIS_PREFIX "next_arg() argv... | [
"pkesseli@dkr13.cs.ox.ac.uk"
] | pkesseli@dkr13.cs.ox.ac.uk |
22c317c58e9e01e9a6b5fbab7be98f966fdfba33 | 27b78a089fa389244eefcdd08d8d7e273a3bb3e8 | /bial/src/FilteringOptimalAnisotropicDiffusion.cpp | f69043498dbf6479dab8527873b56f2c7ca89eaf | [] | no_license | GIBIS-UNIFESP/BIAL | 651f3a7f44238df977be245b07a1391d2518f974 | eddd3d756b744b5caf8429acec7abe208b3a3bd1 | refs/heads/master | 2021-01-12T13:32:10.299904 | 2018-02-09T11:55:34 | 2018-02-09T11:55:34 | 69,836,560 | 11 | 6 | null | 2017-12-01T16:01:12 | 2016-10-03T02:55:05 | C++ | UTF-8 | C++ | false | false | 15,609 | cpp | /* Biomedical Image Analysis Library */
/* See README file in the root instalation directory for more information. */
/**
* @date 2013/Jul/12
* @brief Image filtering methods.
*/
#ifndef BIALFILTERINGOPTIMALANISOTROPICDIFFUSION_C
#define BIALFILTERINGOPTIMALANISOTROPICDIFFUSION_C
#include "FilteringOptimalAnisot... | [
"lucaslellis777@gmail.com"
] | lucaslellis777@gmail.com |
0148f1c675386cabec7f66b5ce643252ec61a7da | 31a72b5f4be46226742e25618266082c730d75b2 | /project12/inheritance.h | 6cf7e14a1e991d8c291804794cdbefde5223084b | [] | no_license | AlexKastanek/CS202 | 98bca048ab2271d86c0b92d36cbe2de6546b5b58 | 9ca77fc0104a07cc1a50e4e474ae67283d7839a3 | refs/heads/master | 2021-09-10T17:34:56.886512 | 2018-03-30T05:56:40 | 2018-03-30T05:56:40 | 119,608,730 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,820 | h | /********************************************************************/
/* BASE CLASS */
/********************************************************************/
class Shape
{
public:
virtual ~Shape() {}
virtual float calculateAreaOrVolume() = 0;
... | [
"akastanek@cox.net"
] | akastanek@cox.net |
b25126367908f04c4a2bf77ae10d1a1bedf42b38 | 38d55b09727eced4ba274f63709879f6cd3b0fcc | /roomModel.cpp | c8c37107a6ac75df0ce0f3156f8794e805a0fe77 | [] | no_license | LeKiwiDeBx/AH_Hunter | d66a5fada458b225498bf2583adcd2c1faa2add6 | 9712c06b6fb8064243ac8e4e1e44981af1a2a999 | refs/heads/AH_Hunter | 2020-04-14T20:34:50.296499 | 2019-11-08T10:23:11 | 2019-11-08T10:23:11 | 121,975,923 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,227 | cpp | #include "main.h"
/**
* @brief Construct a new room Model::room Model object
* ici on récupère les datas de configAHH.json
l * la roomModel doit être créée par une factory
* la roomModel demande à la roomData de se peupler des data de configAHH.json
* et obtient un pointeur sur la roomData
* @todo unique_pointer<> su... | [
"tatareau@free.fr"
] | tatareau@free.fr |
bfcfe4e0e42daf6eab0806a49de4cadce0eb3bc8 | ccf95341f16c892905eb31ed5ddd08d40f4168ef | /include/Ai/StateUtil.h | 5c64e9f16d7bb3470c2d9c3dc0fe672549a580be | [] | no_license | NicoHartl/astu | c3eac67d3b787b400a4f203390d02274e5028ed0 | 172f195c3c2b44cc92bdf5382a0d176bae3bafff | refs/heads/master | 2023-09-04T06:35:29.541150 | 2021-10-11T05:36:10 | 2021-10-11T05:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,872 | h | /*
* ASTU - AST Utilities
* A collection of Utilities for Applied Software Techniques (AST).
*
* Copyright (c) 2020, 2021 Roman Divotkey, Nora Loimayr. All rights reserved.
*/
#pragma once
// Local includes
#include "Ai/Quantizer.h"
// C++ Standard Library includes
#include <memory>
#include <vector>
namespac... | [
"roman.divotkey@gmail.com"
] | roman.divotkey@gmail.com |
cd5e5f948794c64a1dbc3ffec4fda31b187f273c | 0059414a7a9714fb69ad78b7c8eb824c4d09788b | /HgammaSandbox/util/runMCTRUTH0plots.cxx | 05bf2825623bed010ce0ca0b61859c95df39212e | [] | no_license | congpeng/HGamHTXScate | 1f7e7d531040d29e2d9887fd420194477e1c629c | de99cd8e8c27149c47b6e4dce13078d3f7e3ba4f | refs/heads/master | 2021-01-22T00:51:00.882852 | 2017-03-02T00:23:28 | 2017-03-02T00:23:28 | 83,581,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cxx | #include "HgammaSandbox/MCTRUTH0plots.h"
#include "HGamAnalysisFramework/RunUtils.h"
int main(int argc, char *argv[])
{
// Set up the job for xAOD access
xAOD::Init().ignore();
// Create our algorithm
MCTRUTH0plots *alg = new MCTRUTH0plots("MCTRUTH0plots");
// Use helper to start the job
HG::runJob(alg, ... | [
"cpeng@lxplus085.cern.ch"
] | cpeng@lxplus085.cern.ch |
2ca87bf655fc27a21be61ac01575aed076276139 | 222c3d2fd75c460e7c5cb9e01ee8af4a19f29804 | /aula_23/exercicio_aula23/Quadrado.hpp | 9af4d5b794c12ed0c97c674efa9c719954b8236e | [
"MIT"
] | permissive | matheusalanojoenck/aula_cpp | e4b8883317fd8af5f2dea256e164228d99bf73f1 | 039bd4f4b11a736f1d800cad97a530e212b30375 | refs/heads/master | 2022-12-15T05:26:21.139261 | 2020-09-11T15:51:20 | 2020-09-11T15:51:20 | 257,736,518 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 187 | hpp | #ifndef QUADRADO_HPP
#define QUADRADO_HPP
#include "Forma.hpp"
class Quadrado : public Forma
{
private:
float lado;
public:
Quadrado(float lado);
float getArea();
};
#endif | [
"matheusalanojoenck@gmail.com"
] | matheusalanojoenck@gmail.com |
dbb4535b41bf647fd78eb0221f40a7266fc0f5fc | 87b8b2a1fe6fabd0204c933877a3644cc0ca2ba1 | /src/Tree.cpp | ee20f120aaeb317428d9a4dc2a7ed5dd5638da51 | [] | no_license | GalYona21/SPLassignment1 | 54f91239bba8f420a894a750e8c250dd95ea3377 | b19ed71732b5ac839922cd6a243c9e02c47ae41c | refs/heads/main | 2023-03-17T02:34:00.482628 | 2021-02-28T07:07:03 | 2021-02-28T07:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,258 | cpp | //
// Created by spl211 on 03/11/2020.
//
#include "../include/Session.h"
#include "../include/Tree.h"
#include "iostream"
using namespace std;
Tree::Tree(int rootLabel) : node(rootLabel), children(){
}
Tree& Tree::operator=(const Tree &other) {//copy assignment operator
if(&other!=this){
clear();
... | [
"noreply@github.com"
] | noreply@github.com |
b7992cfe0f7f3d28393a0f9b70ea583cdaa9ffb6 | 86067b6b4f1a0223ea36f7c1e63b3837e63bbe4c | /visitormath.cpp | f0a3128962a380c5194af5bb6b1cfbfec0406f69 | [
"MIT"
] | permissive | uvguy/antlrmathwidget1 | 9528d057319ea846c767a2a7b9cf8fe84c50c4c9 | bf0d457bba78300caf9c8888ff39a78ed21ce479 | refs/heads/master | 2021-04-03T02:17:07.965035 | 2018-03-10T06:11:18 | 2018-03-10T06:11:18 | 124,623,449 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,708 | cpp | #include "visitormath.h"
VisitorMath::VisitorMath() :edit(nullptr){}
void VisitorMath::setWidgetDebug(QTextEdit *out)
{
edit=out;
}
antlrcpp::Any VisitorMath::visitProg(MathParser::ProgContext *context) {
for (auto m : context->stat()) {
visit(m);
}
QString msg;
msg.append(QObject::tr("\nresult %1")... | [
"kangjoni76@gmail.com"
] | kangjoni76@gmail.com |
d88bd5abfdc43589df82904ad931abd46bb10238 | 7d860affdeb45465951f1bca5b36bf8993248e79 | /Code/AndroidClient/Classes/UIFile/NASaleMenu.cpp | 85f5c3bf21d73c85a6e056b68069777957a9556e | [] | no_license | Zyl85385215/Resources | 88251abaaa44300c0ca0830d52e62cd13e7a4c5f | 1e2468d03deb7b46b892a870e89c3b4a5ca25aae | refs/heads/master | 2021-02-27T02:13:28.203996 | 2020-04-10T17:08:34 | 2020-04-10T17:08:34 | 245,569,447 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 28,632 | cpp | #include "MainMenu.h"
#include "UserData.h"
#include "NASaleMenu.h"
#include "ios_nasale_packet.h"
static int nItemClr[4][3] = {
{255,255,255},
{0,255,0},
{0,133,207},
{188,52,186},
};
static char* NASaleFilter1[] = {"不限","药品","装备","宠物技能书","怒气技能书","坐骑","强化石","其他"};
static char* NASaleFilter2[] = {"不限","战士","法师","枪... | [
"85385215go@163.com"
] | 85385215go@163.com |
978375973155eedb14d34b3e6a58f0bf34e05932 | b8f14bbbfed728ce879e3cc6a0b33cfdfe426e7a | /Nachos3/nachos-4.0/code/threads/scheduler.cc | 0a961a3fc36ff8fdbe9bdc1f7dada02d1aecf99a | [] | no_license | miamirobin/2018Fall_OperatingSystem | 0ccf2b17cd640f8c86d3b8ff810eafa5f4f6efd5 | e55cfe39159fa79ea0008c4d5017208ad8381480 | refs/heads/master | 2020-04-17T21:09:42.212528 | 2019-01-22T06:23:58 | 2019-01-22T06:23:58 | 166,936,627 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,111 | cc | // scheduler.cc
// Routines to choose the next thread to run, and to dispatch to
// that thread.
//
// These routines assume that interrupts are already disabled.
// If interrupts are disabled, we can assume mutual exclusion
// (since we are on a uniprocessor).
//
// NOTE: We can't use Locks to provide mutual exclus... | [
"miamirobin@gmail.com"
] | miamirobin@gmail.com |
cd0d8a35f0b18560a9018fc7b4904e0bced8194c | 407c96d904cf46a5f95217e44071f999783698a3 | /src/MultiversX/Serialization.h | 9105f82257748fe0e28eca5746a692ade233a271 | [
"BSD-3-Clause",
"LicenseRef-scancode-protobuf",
"LGPL-2.1-only",
"Swift-exception",
"MIT",
"BSL-1.0",
"Apache-2.0"
] | permissive | trustwallet/wallet-core | dfeb276ddf1e3faf46c82f0a0cda2551e9c873f6 | 0c8e2e58aa8eb1360e4a6b03df91fb2de97e3caa | refs/heads/master | 2023-08-21T11:58:43.983035 | 2023-08-18T10:51:13 | 2023-08-18T10:51:13 | 170,738,310 | 2,311 | 1,283 | Apache-2.0 | 2023-09-08T11:26:39 | 2019-02-14T18:25:54 | C++ | UTF-8 | C++ | false | false | 619 | h | // Copyright © 2017-2023 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#pragma once
#include "Data.h"
#include "Transaction.h"
#i... | [
"noreply@github.com"
] | noreply@github.com |
72e9b4624acaf191e1d5b56c376cafc4f7731c1a | 780a48c568afd83c74fe5666e2c890b0a697cd64 | /Dice.cpp | 37ede85327dbb983651310a735c6ae3c2de083b2 | [] | no_license | AliLashkari3375/Tamrin1- | aec4474e928b6e6df6c1f2ad6962694b57f12fe0 | c8abe711d9eb4d7d8d6ed67c5c5bab04fbdcae9b | refs/heads/main | 2023-08-15T18:29:59.601400 | 2021-10-15T16:13:20 | 2021-10-15T16:13:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | cpp | // Dice.cpp : This file contains the 'main' function. Program execution begins and ends there.
//Ali lashkari
#include <iostream>
#include<random>
using namespace std;
int main()
{
int a, r;
srand(time(0));
for (int i = 0; i < 10; i++)
{
r = rand() % 6 + 1;
cout << r << end... | [
"noreply@github.com"
] | noreply@github.com |
6086ef720abb99070a7e6aaaf922efd8a51840fb | a14ae93eee8f0fed85ef82f5d6e49e169e682f41 | /boneyard/examples/mune34.cpp | 0a82e5b8f24a61ce4e332faf6c174749d98e33de | [
"MIT"
] | permissive | rdpoor/mu | e860e8a38b85330c95b956166b8daaf2ed1b4c3d | 5cc59c55cb9878aa8d6ff6ff8d058d3bb3274f41 | refs/heads/master | 2020-12-24T14:36:41.651325 | 2016-11-07T05:58:00 | 2016-11-07T05:58:00 | 18,759,872 | 0 | 1 | null | 2015-01-23T23:39:29 | 2014-04-14T12:32:50 | C++ | UTF-8 | C++ | false | false | 9,847 | cpp | /*
* Sketch for a strummed, fretted instrument with a fixed number of
* strings. See also mune32 and mune23 for an earlier version.
*
* TODO:
*
* - Code up the intro to TNVM using this instrument. See also
* https://www.facebook.com/photo.php?v=10201180856748581
* (Thank you Bradley...)
*
* - per-string... | [
"rdpoor@gmail.com"
] | rdpoor@gmail.com |
7908b7882dbd7cf1009e55084a58f627511f2b91 | daffb5f31e4f2e1690f4725fad5df9f2382416e3 | /AtCoder/DP_Edu/Y/main.cpp | a79e6a7959a4236fd600f966ea6ed6c6d6b4ddf0 | [] | no_license | cuom1999/CP | 1ad159819fedf21a94c102d7089d12d22bb6bfa2 | 4e37e0d35c91545b3d916bfa1de5076a18f29a75 | refs/heads/master | 2023-06-02T01:57:00.252932 | 2021-06-21T03:41:34 | 2021-06-21T03:41:34 | 242,620,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,014 | cpp | #include <bits/stdc++.h>
#define ld long double
#define sf scanf
#define pf printf
#define pb push_back
#define mp make_pair
#define PI ( acos(-1.0) )
#define IN freopen("input.txt","r",stdin)
#define OUT freopen("output.txt","w",stdout)
#define FOR(i,a,b) for(int i=a ; i<=b ; i++)
#define FORD(i,a,b) for(int i=a ; i>... | [
"lephuocdinh99@gmail.com"
] | lephuocdinh99@gmail.com |
5df87bb485091ba399294c932a00252d6ec73010 | 5468b90e7d3718318e052c023776eb625ebb93d7 | /POO/Prova 3/questao2.cpp | 52db365bf1a9ba6fc6f794d75f3b1886e887207d | [
"GPL-3.0-only",
"Apache-2.0"
] | permissive | VGasparini/BCC | a708e3b79cb3d57733d749eab4a009c65bd7d404 | 5a7f635182b948069edd52a0f817fdb90bae366c | refs/heads/main | 2023-06-08T08:56:59.620081 | 2021-06-28T16:51:56 | 2021-06-28T16:51:56 | 308,941,940 | 10 | 2 | Apache-2.0 | 2021-06-28T16:51:57 | 2020-10-31T17:59:01 | Java | UTF-8 | C++ | false | false | 2,101 | cpp | // Vinicius Gasparini | Prova 3 - Questão 2
#include <bits/stdc++.h>
using namespace std;
class Complex {
private:
float a;
float b;
public:
Complex(float n, float img){
this->a = n;
this->b = img;
}
Complex(float n){
this->a = n;
this->b = 0;
}
float getReal... | [
"viniciuszeiko@gmail.com"
] | viniciuszeiko@gmail.com |
0100e07f50b44594a88555e21458a0a11c154294 | 9586f8160aeaf38abe766fc880a9af92a45c358c | /v1/implementation/Task 7/Main.cpp | 3dc5502517104928309caaae3e3ab419ead0c5f7 | [] | no_license | nithinr07/Data-Processing-ToolKit | 6218cf61667d7588e40cbe0e24c764c6a25112ad | 09dae23ddd5d9089a2a4c649a45dea695a9621ad | refs/heads/master | 2020-04-08T00:51:19.164132 | 2018-12-06T06:28:04 | 2018-12-06T06:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,412 | cpp | #include<iostream>
#include <fstream>
#include <sstream>
#include <iterator>
#include "ReorderingSSM.h"
using namespace std;
template<typename T>
ostream& operator<<(ostream& out,vector<T> const& v){
for(int i=0;i<v.size();i++)out<<v[i]<<' ';return out;}
vector<double> CommaSeparation(string init){
stringstream s... | [
"ronakvipul.doshi@iiitb.org"
] | ronakvipul.doshi@iiitb.org |
d50fba8c926de032f5c13c3b9fb74a531545578d | 412bf1c63d44a73b7881f1e4e9c2c3dab41dc673 | /src/masternodeconfig.h | 1585dc97aa9ddf2db42fe75ff37c661d5959f914 | [
"MIT"
] | permissive | NasdaCash/NSDC | 72ecdd22492d4f75a6b8a80a2ff8e2d2632600d7 | 2fcbb7075b5c4e6eaaf9419cdaa0cdbf75915e23 | refs/heads/master | 2022-12-15T21:53:37.247070 | 2020-09-18T02:59:52 | 2020-09-18T02:59:52 | 295,922,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,757 | h | // Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2019 The PIVX developers
// Copyright (c) 2020 The Nasda Cash developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SRC_MASTERNODECONFIG_H_
#d... | [
"71147574+NasdaCash@users.noreply.github.com"
] | 71147574+NasdaCash@users.noreply.github.com |
3f19c6251d42ab2ecdfca4a3b17f420e9cb82eed | f838c13620d97c0d7c48b3b6dd9d08c9d5f9d9f3 | /Transcriber/IPA/IpaDecode.h | e027fa122773280c5926671d942975cfebb38ace | [] | no_license | nikhil-chaturvedi/sanskrit-transliteration | 52fa9bb0dd4b8e8491f8ee820c192f004443828b | 4d7f05aef4fef69bbacfc06c12e2cca014da0df2 | refs/heads/master | 2021-08-23T20:02:22.943836 | 2017-12-06T09:56:56 | 2017-12-06T09:56:56 | 93,077,642 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | h | //
// Created by Nikhil Chaturvedi on 17/03/17.
//
#ifndef TRANSCRIBER_IPADECODE_H
#define TRANSCRIBER_IPADECODE_H
#include "../Resources/CodeMap.h"
#include "../Resources/Decode.h"
class IpaDecode: public Decode {
CodeMap* vyanjan;
CodeMap* swar;
CodeMap* maatra;
CodeMap* punctuation;
CodeMap* n... | [
"709nikhil@gmail.com"
] | 709nikhil@gmail.com |
dd640c6ddd611fdc976d4a54ff2bf75238b191d6 | 050c8a810d34fe125aecae582f9adfd0625356c6 | /ccc/level5.cpp | c5327eda3f44eab3c589c944886c7a82227359e7 | [] | no_license | georgerapeanu/c-sources | adff7a268121ae8c314e846726267109ba1c62e6 | af95d3ce726325dcd18b3d94fe99969006b8e138 | refs/heads/master | 2022-12-24T22:57:39.526205 | 2022-12-21T16:05:01 | 2022-12-21T16:05:01 | 144,864,608 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,315 | cpp | #include <bits/stdc++.h>
using namespace std;
const int NMAX = 1e3;
const int VMAX = 1e9;
const int KMAX = 1e5;
int n,m;
int t;
int a[NMAX + 5][NMAX + 5];
int col[NMAX + 5][NMAX + 5];
const int dx[] = {-1,0,1,0};
const int dy[] = {0,1,0,-1};
const long double eps = 1e-10;
int border[NMAX + 5];
bool is_border[NMAX ... | [
"alexandrurapeanu@yahoo.com"
] | alexandrurapeanu@yahoo.com |
438182fa12e2527965646ad40d1e506973812743 | 23378c451e396684f712fc9f9e2a65a53a61a8a8 | /BFS/802.Find-Eventual-Safe-States/802.Find-Eventual-Safe-States_BFS.cpp | 5ad92f2b01268634612f272e833947fd8f971911 | [] | no_license | wisdompeak/LeetCode | 25676a8bf606c0511dd9844d4e61388235de82f4 | f3d38bbe9e40ceb0ab9780a4cb0dec938eae578e | refs/heads/master | 2023-09-01T18:45:36.056015 | 2023-08-28T08:01:22 | 2023-08-28T08:01:22 | 83,542,585 | 5,153 | 1,209 | null | 2023-07-22T18:15:25 | 2017-03-01T10:30:52 | C++ | UTF-8 | C++ | false | false | 1,071 | cpp | class Solution {
public:
vector<int> eventualSafeNodes(vector<vector<int>>& graph)
{
int n = graph.size();
vector<int>outDegree(n,0);
vector<vector<int>>prev(n);
for (int i=0; i<n; i++)
for (auto j: graph[i])
{
prev[j].push_back(i)... | [
"noreply@github.com"
] | noreply@github.com |
00acbeac5ad79b0a6ef00f13aae6aadb9544edfa | 3fcff9628a53c506c409dcfd371edbc4fe68fd2c | /Audible_Altimeter/Audible_Altimeter.ino | f1fa164af303a3e19cab5d13143e407512ae0b03 | [] | no_license | glydrfreak/vSpeedVario-mini | 05f54ffa829463ac1c6c4c381755c35581898dcc | b75c79de3c6e205c46d31bc4c40e044534941724 | refs/heads/master | 2023-07-05T20:19:50.944145 | 2023-06-28T13:11:39 | 2023-06-28T13:11:39 | 132,998,928 | 19 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,135 | ino | #include "MS5611.h"
#include "FILTER.h"
#define BAUD_RATE 115200 // Serial Monitor baud rate
#define POT_UD A0
#define POT_INC A1
#define VOL_DOWN A2
#define VOL_UP A3
#define POT_CS ... | [
"noreply@github.com"
] | noreply@github.com |
8227c4b16192b6aa0d123cead163db495a9062c2 | 6531326f910d8947a068a372ff353f31bcd4b1dd | /de-la-Rosa-de-la-Rosa-Daniel-S4/main.cpp | b566bfed3d4dcf83e88cba2c4e03b011bf397c45 | [] | no_license | Dr4keps/p4pag | d69d7fae08191d8db95cfde9cdd4849484078f5e | 92aedb3a1ade74b04eb25748d8143356518431ff | refs/heads/master | 2021-07-24T16:15:34.603206 | 2017-10-23T11:49:51 | 2017-10-23T11:49:51 | 107,973,171 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 5,894 | cpp | #include <iostream>
#include <stdlib.h>
// - IMPORTANTE: El include de Glew debe llamarse siempre ANTES de llamar al de GLFW.
#include <GL\glew.h>
#include <GLFW\glfw3.h>
#include "PagRenderer.h"
// - Esta función callback será llamada cada vez que el área de dibujo
// OpenGL deba ser redibujada.
void window_refresh_c... | [
"Ordenador@DELAROSA"
] | Ordenador@DELAROSA |
09777c5c0e60efb0de002c79132d668458be36f5 | 50adc086e90f6e73c6ce4df279356538ba88fae5 | /HelloLightMap.cpp | 1834a3fb5b05b2c618b80b53b59bdfcbb555de07 | [] | no_license | qqlizhn/learnOpenGL | b5212077b67dcc1314688b040eb496e57ae6af72 | ad159f5f832a66dd1e8137afdbe16380b02174d2 | refs/heads/master | 2022-12-02T21:20:41.941611 | 2020-08-26T12:28:06 | 2020-08-26T12:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,886 | cpp | #include "HelloLightMap.h"
void HelloLightMap::OnInit()
{
glEnable(GL_DEPTH_TEST);
//Default_Init();
//Exercise2_Init();
//Exercise3_Init();
Exercise4_Init();
glGenVertexArrays(1, &containerVAO);
glGenBuffers(1, &VBO);
glBindBuffer(GL_ARRAY_BUFFER, VBO);
glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), v... | [
"2549366978@qq.com"
] | 2549366978@qq.com |
f5d65144c2fa2237bf1759c4edde22becc8601f1 | 58fc34324e28598d208f8abc61b1e15ef9606aaf | /DemoDirectX/GameObjects/Player/PlayerSpawningState.cpp | 4b763c0c2b435fb710a643eeaeacc78ebf9e397e | [] | no_license | txbac98/Megaman-X3---UIT--SE102 | 2708c5827a60f4e4f5d12bdbb289166130e24b91 | 3c6b08ac6cf927ea2b47f35106ba2b111a63bc94 | refs/heads/master | 2021-10-09T07:36:41.170754 | 2018-12-23T16:30:48 | 2018-12-23T16:30:48 | 160,013,872 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 428 | cpp | #include "PlayerSpawningState.h"
PlayerSpawningState::PlayerSpawningState(PlayerData * playerData)
{
}
PlayerSpawningState::~PlayerSpawningState()
{
}
void PlayerSpawningState::Update(float dt)
{
}
void PlayerSpawningState::HandleKeyboard()
{
}
void PlayerSpawningState::OnCollision(Entity * other, Entity::SideColl... | [
"txbac196@gmail.com"
] | txbac196@gmail.com |
9886a26f570d77923ecd97eae86c102c572521dd | 0c44da76a30138ebaee6700e2e33df5204ef21fc | /PSME/common/ipmi/include/ipmi/command/sdv/rsd/get_acpi_table_names.hpp | 8b421259f7dba9a111e2ca0729f6db565882c7c3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | rwleea/intelRSD | 263e4c86801792be88e528d30d5a1d3c85af3a62 | 8e404abc211211a2d49776b8e3bf07d108c4bd4b | refs/heads/master | 2023-02-20T22:26:07.222243 | 2022-08-04T22:08:00 | 2022-08-04T22:08:00 | 64,722,362 | 0 | 0 | null | 2016-08-02T03:49:59 | 2016-08-02T03:49:58 | null | UTF-8 | C++ | false | false | 3,118 | hpp | /*!
* @brief GetAcpiTableNames command interface.
*
* @copyright Copyright (c) 2018-2019 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licens... | [
"noreply@github.com"
] | noreply@github.com |
4aaa0946ba9eeda3e344e2e0fb045e8716badc7d | 45ba5c51e81a9c4fc7b820c2a60e6e6cf9b7529a | /1001.cpp | 412d3349659b1477261f87edc3c459cbb3011c25 | [] | no_license | LinxinKevin/-PAT | ca1920bb525353c2cd412ec14476d503b32756a4 | b0e7e3dc8a474e8413b4a87df932be7ca9f76f00 | refs/heads/master | 2021-05-08T05:08:31.050526 | 2017-10-27T04:37:42 | 2017-10-27T04:37:42 | 108,426,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 576 | cpp | #include <iostream>
#include <string>
using namespace std;
int main(){
int a,b;
std::cin >> a>>b;
int c = a+b;
string s = to_string(c);
if(c<0){
std::cout << "-";
s = s.substr(1,s.length()-1);
}
int length = s.length();
int others = length%3;
int i ;
for(i=0;i<oth... | [
"linxinkevin@gmail.com"
] | linxinkevin@gmail.com |
0e76464743192ef676f8b99ac951251bd62e201a | 19194c2f2c07ab3537f994acfbf6b34ea9b55ae7 | /android-30/android/icu/text/LocaleDisplayNames_DialectHandling.def.hpp | 790464fcf6be0ed612688a481e5c4cf266e6d92e | [
"GPL-3.0-only"
] | permissive | YJBeetle/QtAndroidAPI | e372609e9db0f96602da31b8417c9f5972315cae | ace3f0ea2678967393b5eb8e4edba7fa2ca6a50c | refs/heads/Qt6 | 2023-08-05T03:14:11.842336 | 2023-07-24T08:35:31 | 2023-07-24T08:35:31 | 249,539,770 | 19 | 4 | Apache-2.0 | 2022-03-14T12:15:32 | 2020-03-23T20:42:54 | C++ | UTF-8 | C++ | false | false | 855 | hpp | #pragma once
#include "../../../java/lang/Enum.def.hpp"
class JArray;
class JString;
namespace android::icu::text
{
class LocaleDisplayNames_DialectHandling : public java::lang::Enum
{
public:
// Fields
static android::icu::text::LocaleDisplayNames_DialectHandling DIALECT_NAMES();
static android::icu::text:... | [
"yjbeetle@gmail.com"
] | yjbeetle@gmail.com |
fbeb42481ea62a2b55bdc38299876503c1bfbb3c | b10933e7dd293dafd804417186163aa1483290b1 | /sphere.hpp | 8976539b35088b3a3898a6465b244f544fc190b1 | [] | no_license | asdredmitry/RayTracingCuda | c7dad69b9782c3deb2b2ecb28c8a8eb5103e9301 | 41ae5a3a8798bd5cfce49fc23c6a05f1f3899234 | refs/heads/master | 2020-05-15T15:48:18.226073 | 2019-05-21T07:06:30 | 2019-05-21T07:06:30 | 182,380,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,311 | hpp | #ifndef SPHERE_H
#define SPHERE_H
#include "hitable.hpp"
#include "materials.hpp"
class sphere: public hitable
{
public:
sphere() {}
sphere(vec3 cen, float r, material * mat1): center(cen), radius(r), mat(mat1) {};
virtual bool hit(const ray& r, float tmin, float tmax, hit_record& rec)cons... | [
"michalych2014@yandex.ru"
] | michalych2014@yandex.ru |
9a568f7b48c0473997d7152f5e8c00bb73a08656 | 32809f6f425bf5665fc19de2bc929bacc3eeb469 | /src/0930-Binary-Subarrays-With-Sum/0930.cpp | e8f163ce4792989d054fd436a0797985a9f15df0 | [] | no_license | luliyucoordinate/Leetcode | 9f6bf01f79aa680e2dff11e73e4d10993467f113 | bcc04d49969654cb44f79218a7ef2fd5c1e5449a | refs/heads/master | 2023-05-25T04:58:45.046772 | 2023-05-24T11:57:20 | 2023-05-24T11:57:20 | 132,753,892 | 1,575 | 569 | null | 2023-05-24T11:57:22 | 2018-05-09T12:30:59 | C++ | UTF-8 | C++ | false | false | 1,173 | cpp | #include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
using namespace std;
static int x = []() {std::ios::sync_with_stdio(false); cin.tie(0); return 0; }();
class Solution
{
public:
int numSubarraysWithSum(vector<int>& A, int S)
{
vector<int> zeros;
int result = 0, ... | [
"luliyucoordinate@outlook.com"
] | luliyucoordinate@outlook.com |
fb6ae42dd33ab6606d4932ee94ef29917398546c | bd5673632d9d65808d81e1e6f45ccd1899b4267a | /src/Ludum/State/State.cpp | 09be56dddf2042d29a11cb1c1271725c79a7ded3 | [] | no_license | gingerBill/LD-30 | 6b2676f5cb5ca45979bd5347cfb462ad2ef06b01 | 875dcc17cb4b87af08b22de0d5a7a8d3fb0e22cd | refs/heads/master | 2020-07-03T16:52:55.938626 | 2016-11-19T23:29:58 | 2016-11-19T23:29:58 | 74,241,619 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 497 | cpp | #include <Ludum/State/State.hpp>
#include <Ludum/State/StateStack.hpp>
namespace gb
{
State::State(StateStack& stack, Context context)
:m_stack(&stack)
,m_context(context)
{
}
State::~State()
{
}
void State::requestStackPush(States::ID stateID)
{
m_stack->pushState(stateID);
}
void State::requestS... | [
"noreply@github.com"
] | noreply@github.com |
45d7b3c0ea2945a6cfe9fecd39749e6c763ad0db | c94b20c900fa7773336d0095350dadcb846ce2da | /cpp/Mar/21_thread/producer_consumer/MutexLock.cc | 774f609bad1c17424def489ab864ec8c4735a59e | [] | no_license | gongjianc/Learn | bae6a4928291c702b95575b6935d3f2993a2ec8c | be772a70ed5e96b48ae2623c16c333c0250ed87e | refs/heads/master | 2020-12-12T14:12:59.107400 | 2018-05-25T03:14:38 | 2018-05-25T03:14:38 | 54,636,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 619 | cc | /*
** @file MutexLock.cc
** @author jaygong(gongjian0309@gmail.com)
** @date 2016-03-21 04:53:43
*/
#include "MutexLock.h"
#include <iostream>
using std::cout;
using std::endl;
namespace wd{
MutexLock::MutexLock()
: _isLocked(false)
{
pthread_mutex_init(&_mutex, NULL);
}
MutexLock::~MutexLock()
{
... | [
"gongjian0309@gmail.com"
] | gongjian0309@gmail.com |
358701bae9abebf6824f44c6c5a4fe5a90ceb8cf | 9b21d5b495a5318f349eab3c7c8c6e979fc5b77a | /Hackerrank/transform_string.cpp | cd60ad43d6a2d304e0160a9a7a0c0c4932314f57 | [] | no_license | raokartikkumar24/CodingCompetition | 95c52f916e624ec553ed6b7666f1478269c89cb1 | 3b77f72b81d833ed56f304e5cbac70fed27da5b3 | refs/heads/master | 2021-06-03T15:35:24.314843 | 2020-09-29T07:33:39 | 2020-09-29T07:33:39 | 23,706,876 | 1 | 1 | null | 2015-07-06T11:33:39 | 2014-09-05T14:55:44 | C++ | UTF-8 | C++ | false | false | 481 | cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <set>
#include <string>
typedef long long LL;
using namespace std;
int main() {
string input;
cin >> input;
int Q;
cin >> Q;
while( Q-- )
{
int a,b;
cin >> a >> b;
string::iterato... | [
"krao24@gmail.com"
] | krao24@gmail.com |
e75e0dfca661a3a591a026b89df5a6e20d100aab | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /src/plugins/intel_gpu/tests/unit/test_cases/batch_to_space_gpu_test.cpp | 36eb362a7034bbdb5a35c125f5ed977fd880237d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | C++ | false | false | 29,598 | cpp | // Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "test_utils.h"
#include <intel_gpu/primitives/input_layout.hpp>
#include <intel_gpu/primitives/batch_to_space.hpp>
#include <intel_gpu/primitives/data.hpp>
#include <cstddef>
using namespace cldnn;
using namespace ::test... | [
"noreply@github.com"
] | noreply@github.com |
78b2689d668835ab38a37df6dde74e0fe2553076 | 1abf985d2784efce3196976fc1b13ab91d6a2a9e | /opentracker/include/OpenTracker/input/GPSInfoSource.h | 93615e79c8bedaa61ab77cb0b00f23ca33ee4608 | [
"BSD-3-Clause"
] | permissive | dolphinking/mirror-studierstube | 2550e246f270eb406109d4c3a2af7885cd7d86d0 | 57249d050e4195982c5380fcf78197073d3139a5 | refs/heads/master | 2021-01-11T02:19:48.803878 | 2012-09-14T13:01:15 | 2012-09-14T13:01:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,286 | h | /* ========================================================================
* Copyright (c) 2006,
* Institute for Computer Graphics and Vision
* Graz University of Technology
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... | [
"s.astanin@gmail.com"
] | s.astanin@gmail.com |
8763bb659c3425f85b8ef4ca4f9dc5ae1e280055 | 156d7b3e35d249377df5923017cc8af52489f97f | /brlycmbd/CrdBrlyUsr/PnlBrlyUsr1NSession.cpp | a0ceac768f4cfc89e61b9dbcc759570c1933c223 | [
"MIT"
] | permissive | mpsitech/brly-BeamRelay | fa11efae1fdd34110505ac10dee9d2e96a5ea8bd | ade30cfa9285360618d9d8c717fe6591da0c8683 | refs/heads/master | 2022-09-30T21:12:35.188234 | 2022-09-12T20:46:24 | 2022-09-12T20:46:24 | 282,705,295 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,672 | cpp | /**
* \file PnlBrlyUsr1NSession.cpp
* job handler for job PnlBrlyUsr1NSession (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 11 Jan 2021
*/
// IP header --- ABOVE
#ifdef BRLYCMBD
#include <Brlycmbd.h>
#else
#include <Brlyd.... | [
"aw@mpsitech.com"
] | aw@mpsitech.com |
2b05df7031badc81299548409e646d5eb9c21665 | d33effaf17c65ae4d3df384fb8625554e7ee2768 | /src/cpp/main/common/tools/sparse_rating_splitter_tool.cpp | d01c4dae28e946ae948497a2598acb45de5c5c50 | [] | no_license | kisstom/cppdist | daa67112692305390752143b5d5c3ab577d7dd0f | 703950cda8fff00b0eeda9c089872c8ca9e9785d | refs/heads/master | 2021-01-15T19:28:12.199804 | 2015-02-26T10:10:51 | 2015-02-26T10:10:51 | 30,190,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | cpp | #include "../io/sparse_rating_splitter.h"
int main(int agc, char* argv[]) {
Util util;
SparseRatingSplitter splitter(string(argv[1]), util.stringToLong(argv[2]));
FILE* inputF;
FILE* configF;
inputF = fopen(argv[3], "r");
configF = fopen(argv[4], "w");
if (NULL == inputF || NULL == configF) {
fpri... | [
"tamkis1@gmail.com"
] | tamkis1@gmail.com |
4fcdb666429863a496f1c5625a6962b5408b5370 | 77fd5bf55a7c4c3a27eca0d5ee25bcb55a03639c | /IDCA/Classes/EffectManager.cpp | fa85099787b252e40fd2f8a9e7a3a385d5f9944d | [] | no_license | highfence/2016_3rd_gameproject | 44d2c72eb7438fbdbd338918c1c943eb102bc06c | b345337aa718cc8af4ac2d800362d6fa4352e9ec | refs/heads/master | 2020-12-30T12:44:24.181936 | 2017-01-09T16:16:39 | 2017-01-09T16:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,119 | cpp | #include "pch.h"
#include "EffectManager.h"
#include "Define.h"
void EffectManager::MakeEffect(int damage)
{
m_pEffect = Sprite::create(EFFECT_IMAGE);
m_pEffect->setPosition(Vec2(EFFECT_POSITION_X, EFFECT_POSITION_Y));
m_pEffect->setScale(EFFECT_SCALE);
addChild(m_pEffect);
auto damageStr = itoa(damage,da... | [
"qkfkathr42@naver.com"
] | qkfkathr42@naver.com |
d83229f1f57e5748be82277886ee76cfc687f026 | 8a57eb0993bdd61746246c815faae725b22e9547 | /src/httpserver.h | 1afd21de4ed8b71eb9ed98b78f52225858413733 | [
"MIT"
] | permissive | bastiencaillot/BitcoinCloud | 1596b9be8c8a3a5afba852dfbcc2d1dc89282978 | c519c4e87e80330fa23eb68d63c6a2d387507261 | refs/heads/master | 2022-02-13T23:21:16.217680 | 2019-07-23T12:52:20 | 2019-07-23T12:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,283 | h | // Copyright (c) 2015-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOINCLOUD_HTTPSERVER_H
#define BITCOINCLOUD_HTTPSERVER_H
#include <string>
#include <stdint.h>
#include <function... | [
"dev@bitcoincloud.email"
] | dev@bitcoincloud.email |
50d1f4d68c49498878abedb7644f63bb2636065c | a2111a80faf35749d74a533e123d9da9da108214 | /raw/pmsb13/pmsb13-data-20130530/sources/6ndbc4zuiueuaiyv/2013-04-11T10-07-38.176+0200/sandbox/my_sandbox/apps/index_a2/index_a2.cpp | c652bc0b62f3fcce3489a386cbbd54000f8dea9e | [
"MIT"
] | permissive | bkahlert/seqan-research | f2c550d539f511825842a60f6b994c1f0a3934c2 | 21945be863855077eec7cbdb51c3450afcf560a3 | refs/heads/master | 2022-12-24T13:05:48.828734 | 2015-07-01T01:56:22 | 2015-07-01T01:56:22 | 21,610,669 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 690 | cpp | #include <seqan/sequence.h>
#include <seqan/index.h>
using namespace seqan;
int main()
{
String<Dna5> genome = "TTATTAAGCGTATAGCCCTATAAATATAA";
Index<String<Dna5>, IndexEsa<> > esaIndex(genome);
Finder<Index<String<Dna5>, IndexEsa<> > > esaFinder(esaIndex);
StringSet< String<char> > patternSet;
... | [
"mail@bkahlert.com"
] | mail@bkahlert.com |
4dd453e11791fd862321c354bf0b07ab329d0353 | 215dd7f9c0ffdd3d7e9ed86f05eda4b184012d4e | /include/x3/char/literal_char.hpp | ed3405c012c698e2d5f7e9f7ce0923f45e76923f | [
"MIT"
] | permissive | 15831944/ECAD | 5050f09384bf5f0369d8aa4875723ae8e83fe71c | 9089253afd39adecd88f4a33056f91b646207e00 | refs/heads/master | 2022-01-22T13:40:30.868819 | 2019-07-27T23:59:31 | 2019-07-27T23:59:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,907 | hpp |
//from: "c:\cpp\boost_1_68_0\boost/spirit/home/x3\char\literal_char.hpp"
/*=============================================================================
Copyright (c) 2001-2014 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http... | [
"contest@lakeweb.net"
] | contest@lakeweb.net |
6cbd937a7b5693c1363939f1106f68379abef9bb | 04a21f3cf123bb04d27291348a4796770f5bd60c | /features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/test/nanostack/unittest/service_libs/fhss_channel/fhsschanneltest.cpp | d53f591f26b4837c97ef99eb64c4f4ff96688bb1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Wenchou01/mbed-os | f946b291aa54cc2356633ac466df5ffed626baa9 | 70e7b40468854d33431889a9cd415364c00a2501 | refs/heads/master | 2021-08-20T09:09:26.038479 | 2017-11-27T16:37:40 | 2017-11-27T16:37:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,841 | cpp | /*
* Copyright (c) 2016-2017, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/... | [
"arto.kinnunen@arm.com"
] | arto.kinnunen@arm.com |
30a76d5c52e8bf6e4d7148485a5e1f23e4c3968a | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/48/376de242e91741/main.cpp | 5b67af168efdf38e06030553d3ed40ceb127647d | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | cpp | #include <iostream>
using namespace std;
class Base
{
public:
virtual void fun ( int x = 0 )
{
cout << "Base::fun(), x = " << x << endl;
}
};
class Derived : public Base
{
public:
virtual void fun ( int x )
{
cout << "Derived::fun(), x = " << x << endl;
}
}... | [
"francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df"
] | francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df |
9eaa0211b32410f0e7da2ee73a1105485edc4021 | dddae6b0d7ef2ebbe19b1c0cf61b15ec352ff1b0 | /src/cMultiplayerSetup.h | a7930d604efa7a6d753beb826fdd736df36a7daf | [] | no_license | Wesxdz/Wrath-of-the-Crickets-vs-Brigham-Young | 39f9d5e65c8614a6eb91ecc532384ea0550a8482 | f19f3e344661187fd920e5c7b43b63bf23e0ba0a | refs/heads/master | 2022-03-04T14:31:01.902852 | 2022-02-05T17:35:26 | 2022-02-05T17:35:26 | 112,932,549 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 653 | h | #pragma once
#include "slComponent.h"
#include "HostSession.h"
#include "ClientSession.h"
#include "Gameplay.h"
class cMultiOptions;
class cMultiplayerSetup : public slComponent
{
public:
std::shared_ptr<HostSession> host;
std::shared_ptr<ClientSession> client;
cMultiOptions* options;
Gameplay* next = nullptr;... | [
"sirwesleybarlow@gmail.com"
] | sirwesleybarlow@gmail.com |
5bda2b02f26355cf8dfc9954fc0c66e4c9de75be | a4ff7cb6cab7810696a00863b79c059153008928 | /Classes/third_party_lib/boost/libs/mpl/test/at.cpp | aadac4e813f7266195390a2cf5699d9c468d1da6 | [
"BSL-1.0"
] | permissive | xuanyuantd/ToolsBuilder | d945faa4a5bb1907e497ef69495629cc8ae76a20 | 79b198166c41dd4fe4afc5708a290f37d8a033e3 | refs/heads/master | 2021-01-10T01:20:33.136861 | 2016-04-01T08:35:28 | 2016-04-01T08:40:01 | 55,213,813 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,075 | cpp |
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for documentation.
// $Id: at.cpp 49240 2008-10-10 09:21:07Z agurtovoy $
// $... | [
"tangdi_netbook@github.com"
] | tangdi_netbook@github.com |
66e72b71943a5d7b25110c4c7a00afa164cadcb3 | 7d24b70703af758efaa90ff0ceaa0fc7e5bdf4c8 | /code_full_filter/main.cpp | 2840394e1560b9559e3f71f1e55e1aae4979f937 | [] | no_license | foxliu/markov_filter | 1a7859f76d1acfd848007766ba916f5c5fa1a8db | c8bd243eca65ac04c02e108bdad23f7feac3123d | refs/heads/master | 2020-03-09T10:24:21.894900 | 2018-04-09T08:05:59 | 2018-04-09T08:05:59 | 128,736,375 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,838 | cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include "helpers.h"
using namespace std;
std::vector<float> initialize_priors(int map_size, std::vector<float> landmark_positions,
float control_stdev);
float motion_model(float pseudo_position, float movement, std::vect... | [
"liusonghui@bestpay.com.cn"
] | liusonghui@bestpay.com.cn |
94e8f6cf6dc773d58cbe4677b52e2f909af824b8 | 5a7e7a0ca3c86af3667fb5b24630e0768bd7d8f0 | /day1/kianana/data/std.cpp | c2c249f6e1ef1c49d18240bc48987a8afa0b1a00 | [] | no_license | DiamondJack/CCPC2018QHD | fc7192bf46a5a6f32b43ce2a1f04c1232aede64f | 259127541688fdfda3152b04b48dd50e95681457 | refs/heads/master | 2020-03-28T02:11:53.772920 | 2018-10-16T12:10:31 | 2018-10-16T12:10:31 | 147,554,313 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 16,232 | cpp | #include<cstdio>
#include<iostream>
#include<cmath>
#include<cstring>
#include<cstdlib>
#include<ctime>
#include<algorithm>
using namespace std;
inline int read()
{
int num=0,sgn=1;
char ch=getchar();
while (ch!='-'&&(ch<'0'||ch>'9'))ch=getchar();
if (ch=='-')sgn=-1,ch=getchar();
while (ch>='0'&&ch<='9')num*=10,nu... | [
"minehahata@outlook.com"
] | minehahata@outlook.com |
3dcf5298031bd1db4b46383bea2270595e10dab6 | 784883785e9bfdb7eb8031b1311321f2901e13bd | /C++ Codes/Fibeasy.cpp | 46f88e5fe733b159cff815bb0ecaefb9f20b9567 | [] | no_license | jaimittal1998/Competitive-Programming | 3a6cea7ce56ab3fae0dedd00212df84ec7212b9d | d2387e6de4c3e029ec7b87b6b98fb6607400a150 | refs/heads/master | 2022-11-10T03:44:49.209525 | 2020-06-22T12:40:36 | 2020-06-22T12:40:36 | 118,754,177 | 2 | 2 | null | 2018-10-06T17:27:40 | 2018-01-24T11:08:38 | C++ | UTF-8 | C++ | false | false | 385 | cpp | #include<bits/stdc++.h>
using namespace std;
int fib(int n) {
double phi = (1 + sqrt(5)) / 2;
return round(pow(phi, n) / sqrt(5));
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long T;
cin>>T;
while(T--)
{
long N;
cin>>N;
long p = (long)log2(N);
long i... | [
"30296016+jaimittal1998@users.noreply.github.com"
] | 30296016+jaimittal1998@users.noreply.github.com |
6002da773457fb481e52adb1b54cabfd5033e46c | 9f8d8a0107bce1431859a7660f02573f1f8f8dce | /Deck/Deck.h | 5ca0e7cde51f22731004512943e5a8d0e534305c | [] | no_license | PaulChu756/1stYear | 7cd880effcd1acff25885e49c449d017bf9b0255 | 212d471173d7134c0bbd0843e63fd30182c9bcab | refs/heads/master | 2021-03-22T00:37:25.643580 | 2016-09-15T21:13:28 | 2016-09-15T21:13:28 | 68,332,000 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 106 | h | #pragma once
#include <iostream>
class Deck
{
public:
int cards = 52;
int players;
int dealCards();
}; | [
"paulchu756@gmail.com"
] | paulchu756@gmail.com |
9f9ae09a8c4590ed97d004d0ed1aaa5538c385f6 | 69814c8bc7a132b09bd7d99d431fe0373e722c33 | /cubecodec/PictureBuffer.h | e064aaefd3b3f2756fbd6cb6f9dadf68a55adf34 | [] | no_license | korzec/Cube | ec278e98763f55f0553e66008b4a08f18cafd126 | 7a15995d038e29b5371d087c966fbcacea6a825c | refs/heads/master | 2021-01-19T09:29:08.833665 | 2011-11-10T20:50:19 | 2011-11-10T20:50:19 | 2,861,535 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | h | /*
* File: PictureBuffer.h
* Author: korzec
*
* Created on July 17, 2011, 3:30 PM
*/
#ifndef PICTUREBUFFER_H
#define PICTUREBUFFER_H
#include "types.h"
#include "Picture.h"
#include <vector>
///holds a vector of Picture
class PictureBuffer
{
size_t maxSize;
PictureVector pictures;
public:
/// ini... | [
"korzec@gmail.com"
] | korzec@gmail.com |
b4f8ec25270b04e0187b9a15fe9c9b77c39a3d71 | 428989cb9837b6fedeb95e4fcc0a89f705542b24 | /erle/ros2_ws/install/include/std_msgs/msg/dds_opensplice/float64__type_support.hpp | 4e1e375699862378285f173cc1d03d820cb7ab28 | [] | no_license | swift-nav/ros_rover | 70406572cfcf413ce13cf6e6b47a43d5298d64fc | 308f10114b35c70b933ee2a47be342e6c2f2887a | refs/heads/master | 2020-04-14T22:51:38.911378 | 2016-07-08T21:44:22 | 2016-07-08T21:44:22 | 60,873,336 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 121 | hpp | /home/erle/ros2_ws/build/std_msgs/rosidl_typesupport_opensplice_cpp/std_msgs/msg/dds_opensplice/float64__type_support.hpp | [
"igdoty@swiftnav.com"
] | igdoty@swiftnav.com |
990b63495dadd111ae7f2cc9935c113b8c51f269 | 44503210083fdc9ecf8d26bdd523c39ee05e6cd5 | /libs/activityManagerTools/src/ControlThread.cpp | 5a55728efd2b02d6dbc7990bf1e10dec2102688a | [] | no_license | traversaro/ocra-wbi-plugins | 17ec816ac0a4bd1bb7a5890463c0092267b57893 | 214cec3729132def1c1be90c0b17cedc02fde6e6 | refs/heads/master | 2021-01-18T00:40:26.533301 | 2016-01-18T22:41:13 | 2016-01-18T22:41:13 | 49,941,987 | 0 | 0 | null | 2016-01-19T09:36:09 | 2016-01-19T09:36:09 | null | UTF-8 | C++ | false | false | 9,340 | cpp | #include <activityManagerTools/ControlThread.h>
int ControlThread::threadId = 0;
ControlThread::ControlThread(int period, const std::string& taskRpcPortName):
RateThread(period),
taskRpcServerName(taskRpcPortName),
controlThreadPeriod(period),
weightDimension(0),
stateDimension(0),
closePortTimeout(5.0)
{
Contro... | [
"rlober@gmail.com"
] | rlober@gmail.com |
28028518b7a91475ab46008db4872b6e7118e4de | 1c102e6ec3b1f8926ef79fb2057419c20b5aa121 | /Exception3.cpp | fafb1427b7a7c5ee0c8af9f7ecf48718b04b4e94 | [] | no_license | amo-susi/robe_cpp | d0ac2c381138d61959406e00f65c5b61e1dc3c1c | 6f4f72dc6ccb92e52956c99c16ebe4e4fbbbcbcd | refs/heads/master | 2022-05-11T15:49:35.294442 | 2018-09-19T06:57:08 | 2018-09-19T06:57:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 369 | cpp | #include <iostream>
using namespace std;
void Error() {
try {
throw 1;
} catch(int error) {
throw "Error";
} catch(const char* error) {
cerr << "こっちでキャッチされるかな?" << endl;
}
}
int main() {
try {
Error();
} catch(const char* error) {
cerr << "それともこっちかな?" << endl;
}
}
... | [
"an74abc@gmail.com"
] | an74abc@gmail.com |
b4a8e26d7531a6e10bad210225695412923444af | fc450cfb9e517ae947bb54b1aa8c6e00dcdd276f | /Part_2_textures_and_sprites/include/game.h | a3f12ff83e558961932de33e0610b5dd7878d64e | [] | no_license | turbo-team-fv/sfml-course | 4f60ed7dfea41a19134ebede0b0d0f83c95a99e0 | 02d26ee5fabc64e82fb106332d9913a1c9e26086 | refs/heads/master | 2020-04-27T06:40:24.662120 | 2019-03-06T09:27:51 | 2019-03-06T09:27:51 | 174,115,177 | 0 | 0 | null | 2019-03-06T09:35:39 | 2019-03-06T09:35:38 | null | UTF-8 | C++ | false | false | 392 | h | #pragma once
#ifndef GAME_H
#define GAME_H
#include <SFML/Graphics.hpp>
using namespace sf;
class game
{
public:
// Constructor
game(int width, int height, std::string title);
void gameLoop();
void draw();
private:
RenderWindow * window1;
int fps;
... | [
"ramonmorcillocascales@gmail.com"
] | ramonmorcillocascales@gmail.com |
1809c201e4253590d562412dfa0d784a961e0c59 | 19765ddeccc56a2d6742b3361e02e395a523c78a | /src/sexp/Ast.cpp | 38cf495b73b52e348009488fbacdfd0e76773502 | [
"Apache-2.0"
] | permissive | KarlSchimpf/decompressor-prototype | d524c65b663763bc761263edb407b44d9a8dac40 | 72ef821ab7408fc9954a8ddb417614ded6b58481 | refs/heads/master | 2020-04-04T19:20:02.339744 | 2016-08-03T17:07:43 | 2016-08-03T17:07:43 | 60,622,859 | 0 | 0 | null | 2017-03-13T22:23:39 | 2016-06-07T15:05:32 | C++ | UTF-8 | C++ | false | false | 17,370 | cpp | /* -*- C++ -*- */
/*
* Copyright 2016 WebAssembly Community Group participants
*
* 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
*
* ... | [
"noreply@github.com"
] | noreply@github.com |
c2bf79d257cdbc5cbf0ad646bfcded28c07594be | 6f2b6e9d77fc4dd5e1dae8ba6e5a66eb7c7ae849 | /sstd_boost/sstd/boost/hana/union.hpp | bebb9c23624d86937a179097e06fdc9c5adde350 | [
"BSL-1.0"
] | permissive | KqSMea8/sstd_library | 9e4e622e1b01bed5de7322c2682539400d13dd58 | 0fcb815f50d538517e70a788914da7fbbe786ce1 | refs/heads/master | 2020-05-03T21:07:01.650034 | 2019-04-01T00:10:47 | 2019-04-01T00:10:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | hpp | /*!
@file
Defines `boost::hana::union`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_UNION_HPP
#define BOOST_HANA_UNION_HPP
#include <sstd/boost/hana/fwd/union.hpp>
... | [
"zhaixueqiang@hotmail.com"
] | zhaixueqiang@hotmail.com |
8071fea56cafb71ab18ef6a5a19051da4e0cac82 | a40ad4585fb8d7fd63cc0b5e2551dafa7eaa281f | /laser_emisor/laser_emisor.ino | 224bc1e4eb63fdc75c1c2441dc63003726a4c7c1 | [] | no_license | jmgimenezinf/teclado-binario-laser-arduino | 5a7e9df1660fda1fa2c25bcf96a158d8eaa6cc49 | c05f3ec412fdbd0265f8e7e6a4d7ea6dc90b4d4f | refs/heads/master | 2020-03-14T09:53:45.575803 | 2018-04-30T04:15:13 | 2018-04-30T04:15:13 | 131,554,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 419 | ino | #include <Morse.h>
#include <Wire.h>
#include <BH1750.h>
Morse morse(2);
String mensaje="0";
void setup() {
pinMode(2,OUTPUT);
Serial.begin(9600);
}
void loop() {
signal_envio();
morse.Write("h");
signal_end_transmission();
}
void signal_envio(){
digitalWrite(2,1);
delay(5000);
//digitalWrite(2,0);
}
voi... | [
"jm.gimenez.inf@gmail.com"
] | jm.gimenez.inf@gmail.com |
b1ad68ca255e196ad285ec25c452ff3346fc906a | 2948d1810269e81530db93fec1f790b8fbf80bdf | /redis_executor/redis_context_pool.h | 74798da37eac9c9359b97cb0bb8efed888ce328c | [] | no_license | kornwilliams/linux_server | eee94949fcb51088f58c203689b7f97a45cca967 | b4bf891574b6b2290fd60d67d9da5ee67d699718 | refs/heads/master | 2021-01-22T03:13:41.502127 | 2015-06-29T07:36:25 | 2015-06-29T07:36:25 | 38,231,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | h | #ifndef _REDIS_REDIS_CONTEXT_POOL_H_
#define _REDIS_REDIS_CONTEXT_POOL_H_
#include <hiredis/hiredis.h>
#include "base/object_pool.h"
namespace redis {
class RedisContextPool : public base::ObjectPool<redisContext> {
public:
RedisContextPool() : base::ObjectPool<redisContext>(0, 20, 0, 100) {
}
virtual ~Redis... | [
"yuanyin8688@gmail.com"
] | yuanyin8688@gmail.com |
b7462442a665887ed704c08082ab686affc3594c | c0cb4ffb337dc5e392d3bbafeb418f7580c05000 | /10900/10929.cpp | 87dcac929709bc7bd992dd1d4dd0b1f54cea0398 | [] | no_license | ghj0504520/UVA | b3a7d6b6ba308916681fd8a6e25932a55f7455b3 | 8e49a1424538e907f4bdbe5543cc6966d4ea5a4e | refs/heads/master | 2023-05-01T07:49:18.162394 | 2023-04-24T07:48:11 | 2023-04-24T07:48:11 | 38,348,555 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | cpp | #include<iostream>
#include<cstdio>
#include<string.h>
using namespace std;
int main()
{
char a[20000];
while(cin>>a )
{
if(a[0]=='0'&&a[1]=='\0')break;
int sum =strlen(a);
int odd=0, even =0;
for(int i=0;i<sum;i++)
{
i%2==0? even=even+(int)(a[i]-48) : odd=odd+(int)(a[i]-48);
}if(odd>even)
{... | [
"ghj0504520.cywjjy@gmail.com"
] | ghj0504520.cywjjy@gmail.com |
d3be66894005a5a9ed6c8bba5ec4edb9b66e356b | d2f30d9fb226185956c3da1e5372664aaa506312 | /atmosphere/ATM/ATMSpectralGrid.cpp | c24265a3431bf2d8e58eb0218444287aa08304b9 | [] | no_license | radio-astro/casasynthesis | 1e2fdacfcfc4313adde8f7524739a4dfd80d4c8f | 1cb9cd6a346d3ade9a6f563696d225c24654041c | refs/heads/master | 2021-01-17T05:22:01.380405 | 2019-01-08T10:43:34 | 2019-01-08T10:43:34 | 40,664,934 | 1 | 1 | null | 2022-12-16T13:17:36 | 2015-08-13T15:01:41 | C++ | UTF-8 | C++ | false | false | 25,452 | cpp | /*******************************************************************************
* ALMA - Atacama Large Millimiter Array
* (c) Instituto de Estructura de la Materia, 2009
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as pub... | [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
9c73181fd359a7c97bff8b81a150e36e282f5147 | 97ee22c2ffa7967a0321694b14b18be171e49008 | /Gyro/Arduino/MPU9250BasicAHRS_I2C_sendToOracle/src/MPU9250.h | dee574e052afad5e0a58ec23461926a5c7a1ce60 | [] | no_license | morfant/RFD | 9a1f2b9ca66a298b26c204152be463d0e586a2b7 | 2231a7fae2467947531c0951625f28c94789bbda | refs/heads/master | 2020-06-04T14:35:21.633090 | 2019-10-30T01:10:48 | 2019-10-30T01:10:48 | 192,063,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,890 | h | /*
Note: The MPU9250 is an I2C sensor and uses the Arduino Wire library.
Because the sensor is not 5V tolerant, we are using a 3.3 V 8 MHz Pro Mini or
a 3.3 V Teensy 3.1. We have disabled the internal pull-ups used by the Wire
library in the Wire.h/twi.c utility file. We are also using the 400 kHz fast
I2C mode by... | [
"giy.hands@gmail.com"
] | giy.hands@gmail.com |
af993a4cc79df5e6cc009d0d69bdede3dcc5df3b | 390cab55847ae1d7df771bfe0916f058097e6278 | /CreateMap/OutPutDlg.cpp | b492dde5ec1356c5babf3920ca6e828352ea05ea | [] | no_license | hwsmh/A-Search | 792bf3902f92cec093413de8cbe3f6dddf37646a | 61ca3d26ec19f34757b12130a0a618e57ede3629 | refs/heads/master | 2021-01-20T04:56:05.679118 | 2017-08-25T11:30:33 | 2017-08-25T11:30:33 | 101,397,724 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,261 | cpp | // OutPutDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "CreateMap.h"
#include "OutPutDlg.h"
#include "afxdialogex.h"
// COutPutDlg 对话框
IMPLEMENT_DYNAMIC(COutPutDlg, CDialogEx)
COutPutDlg::COutPutDlg(CListCtrl* list, int W, int H, CWnd* pParent /*=NULL*/)
: CDialogEx(IDD_DIALOG1, pParent)
,plist(list)
{
m_nH = ... | [
"929272671@qq.com"
] | 929272671@qq.com |
1cfe11ec6ad38a92678a746328d6f9c22ad06adc | 9a8073543bd0d027dc147d400845deb29f9d691c | /cpp/src/binary/jit/util/type.cpp | 0a43b7c8890ffe82f64ee2f3de24db3414da52e9 | [
"Apache-2.0"
] | permissive | VibhuJawa/cudf | 4615224a5a2ea6c404ead643dd7917bba0a7e010 | cda516e19fc49f30c1ad0a4c51051da24ba07f66 | refs/heads/branch-0.7 | 2023-09-01T03:22:41.053211 | 2019-05-08T00:41:33 | 2019-05-08T00:41:33 | 185,284,364 | 1 | 0 | Apache-2.0 | 2021-01-19T23:42:15 | 2019-05-06T23:09:29 | Cuda | UTF-8 | C++ | false | false | 4,614 | cpp | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Copyright 2018-2019 BlazingDB, Inc.
* Copyright 2018 Christian Noboa Mardini <christian@blazingdb.com>
*
* 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 co... | [
"dmakkar@nvidia.com"
] | dmakkar@nvidia.com |
cf5a4897e0d1fcd101d44e3fd69b4d8d607c8838 | af88029ba3ef854bc736fb150cc1eb6d80e9b305 | /Sprite.h | 3c627f050874b8fa592e866d0bc1afc4c100dcd6 | [] | no_license | XanMarta/alexa-game-engine | 11cc024696b8efeeaf4294adc740fe0703986d8f | 555dcba1dfde1a796524265ff1d603002c5ded55 | refs/heads/master | 2022-11-05T14:11:51.119109 | 2020-06-25T09:10:47 | 2020-06-25T09:10:47 | 263,297,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | h | #ifndef SPRITE_H_INCLUDED
#define SPRITE_H_INCLUDED
#include "CanvasItem.h"
#include "RenderPack.h"
class Sprite : public CanvasItem
{
public:
image_type image;
void fix_to_size(Vector2 new_size);
void _physics_process();
private:
void render();
};
#endif // SPRITE_H_... | [
"gmxancrazy24114@gmail.com"
] | gmxancrazy24114@gmail.com |
9efde2bccf92961062a4d409c00ca28a6fc171cc | 4b07a94c883d2ed87501ba6c8fbd47a0c9a8d0c5 | /src/test/cpp/integration/Syl2_2_Test.cpp | f428d1003d90a6787bc805157f00c8056436420b | [] | no_license | bcdev/s3-synergy | 2e46177a36be19b4df92d6cb20970e720e7acecf | f241ccc0840a451565bcd430f2854af24c8b4f01 | refs/heads/master | 2021-01-23T17:30:21.798975 | 2014-10-01T13:27:03 | 2014-10-01T13:27:03 | 1,068,661 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,719 | cpp | /*
* Copyright (C) 2012 Brockmann Consult GmbH (info@brockmann-consult.de)
*
* 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. This program is distributed in the hope it will
* be useful, b... | [
"ralf.quast@brockmann-consult.de"
] | ralf.quast@brockmann-consult.de |
0f432ad8894ce61443b887fdb2cca3c77af2704e | dcfa30f2e72377c66f907f002c52dd437de24d89 | /Visitor/cpp-source/rooms/LivingRoom.h | 3f9372da2136f0d78441b16a3a608a8cc29513f8 | [] | no_license | ghostrgk/PatternsCollection | 7fa9dad89e76c6702b227cf301b615ce1d7a8900 | bfd6fa1e6d63fe6759c5fff25d676706fd39c5c9 | refs/heads/master | 2022-09-11T08:50:54.455743 | 2020-05-24T14:23:48 | 2020-05-24T14:23:48 | 266,544,917 | 0 | 0 | null | 2020-05-24T13:18:53 | 2020-05-24T13:18:52 | null | UTF-8 | C++ | false | false | 222 | h | //
// Created by Pavel Akhtyamov on 2019-04-23.
//
#pragma once
#include "ElementRoom.h"
class LivingRoom : public ElementRoom {
public:
void Accept(Visitor *visitor) override;
std::string GetName() override;
};
| [
"akhtyamovpavel@gmail.com"
] | akhtyamovpavel@gmail.com |
49f8ef82d3ca2a105174b14a6b78d4a616eaa0a6 | 5d4bbc4ba9ab0ddf8a44034ad1a8f3cf0ee274a3 | /numberOfSubmatricesThatSumToTarget.cpp | 2e0b20bc292c967a1f43026286c99ef9ebc85790 | [] | no_license | a5batra/LeetCode-Solutions-in-C-plus-plus | eda25d641859d8da193825cf06fd7db845862224 | 2124763fce4b5f7c150c95578bf972fbba3d3b50 | refs/heads/master | 2021-12-08T21:41:11.234971 | 2021-08-11T20:43:13 | 2021-08-11T20:43:13 | 243,896,276 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,452 | cpp | //
// Created by Ankit Batra on 6/13/21.
//
/* Given a matrix and a target, return the number of non-empty submatrices that sum to target.
* A submatrix x1, y1, x2, y2 is the set of all cells matrix[x][y] with x1 <= x <= x2 and y1 <= y <= y2.
* Two submatrices (x1, y1, x2, y2) and (x1', y1', x2', y2') are different ... | [
"a5batra@ucsd.edu"
] | a5batra@ucsd.edu |
1eb60c423990fb71b6c0e48a810f465a0f9160a5 | bd18edfafeec1470d9776f5a696780cbd8c2e978 | /SlimDX/source/direct3d10/EffectMatrixVariable.h | bc47817f153d35d728ac8be313205845969764c6 | [
"MIT"
] | permissive | MogreBindings/EngineDeps | 1e37db6cd2aad791dfbdfec452111c860f635349 | 7d1b8ecaa2cbd8e8e21ec47b3ce3a5ab979bdde7 | refs/heads/master | 2023-03-30T00:45:53.489795 | 2020-06-30T10:48:12 | 2020-06-30T10:48:12 | 276,069,149 | 0 | 1 | null | 2021-04-05T16:05:53 | 2020-06-30T10:33:46 | C++ | UTF-8 | C++ | false | false | 1,631 | h | /*
* Copyright (c) 2007-2010 SlimDX Group
*
* 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, modify, merge, ... | [
"Michael@localhost"
] | Michael@localhost |
444c2ee09a3a63506c3c72010643c932e5edbc24 | 36b415892c074f32eb77c2b91a5689e4d3d50eef | /NodoClase.cpp | 9d430f6ee06f7f16d11c7efe5baa231b755c2690 | [] | no_license | JosephArayaM/Proyecto-2 | beae70ebf7e745869b8dd0d0677b8aee4f411f83 | eacfbbfcd4a68a6d0510bff4f59772d177c3b4f0 | refs/heads/master | 2020-09-06T06:08:38.246246 | 2019-11-12T20:40:34 | 2019-11-12T20:40:34 | 220,346,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 530 | cpp | #include "NodoClase.h"
NodoClase::NodoClase(){
}
NodoClase::NodoClase(Clase* clase, NodoClase* siguiente){
this->clase = clase;
this->siguiente = siguiente;
}
NodoClase::~NodoClase(){}
Clase* NodoClase::getClase() {
return clase;
}
NodoClase* NodoClase::getSiguiente() {
return siguiente;
}
... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.