blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4340eb219680991567e1eb2ccb1af4ce71f5f75f | eb1257b41e4741fb2c458d763bf8346dcaf857b6 | /include/CGeomZBuffer.h | ffa0fc81bc78c2a66299d94e72aab4af7f4c1f32 | [
"MIT"
] | permissive | colinw7/CGeometry3D | a63b36d052dd463178976c495aa96416b5c5d737 | d33d06d33b9c42dc37b44e96453a19dcf19efa0e | refs/heads/master | 2023-04-12T23:06:02.530127 | 2023-04-03T15:58:57 | 2023-04-03T15:58:57 | 84,611,832 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,525 | h | CGeomZBuffer.h | #ifndef CGEOM_ZBUFFER_H
#define CGEOM_ZBUFFER_H
#include <CBresenham.h>
#include <CImage.h>
#include <CFont.h>
#include <CGeom3DRenderer.h>
#include <CMathGeom2D.h>
class CGeomFace3D;
class CGeom3DBresenham : public CBresenham {
public:
CGeom3DBresenham(CGeom3DRenderer *renderer) :
renderer_(renderer) {
}
... |
216e5374fb226bf5c92013c10e03dad42f7cac22 | 917160730f635aa67e533775a59a12bc3586a4e6 | /mjolnir/math/Vector.hpp | ca33a7705d2bb72fac13fe88efc34d7fd8c7dffa | [
"MIT"
] | permissive | 0h-n0/Mjolnir | 746ba7955d2da338642b1cb4de12babeb1a0fe6a | df27c7a3b1d2a651c69d7fcd83f43d3e327de66c | refs/heads/master | 2020-03-17T16:41:30.414971 | 2018-05-14T09:06:21 | 2018-05-14T09:06:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,162 | hpp | Vector.hpp | #ifndef MJOLNIR_MATH_VECTOR_H
#define MJOLNIR_MATH_VECTOR_H
#include <mjolnir/math/Matrix.hpp>
#include <mjolnir/math/quaternion.hpp>
#include <mjolnir/math/rsqrt.hpp>
#include <cmath>
namespace mjolnir
{
template<typename realT, std::size_t N>
using Vector = Matrix<realT, N, 1>;
// functions for vector 3d
template... |
b263529f62c78545319457f15b2c5c1403d7c909 | 133e172fcdab0aa07c11c1190fd1ca1f27f57260 | /whoi/Classes/Native/Assembly-CSharp.cpp | cb7cf0903e9adbac76a5a60ae573dd9a6348914a | [] | no_license | evandenmark/WHOI-AR | 154641d9274616e2f349d5c894169d48de5c1417 | aa82d98f84d360d1520a11bdc8fdd6ab2c815706 | refs/heads/master | 2022-07-12T09:58:17.123770 | 2020-05-17T18:59:54 | 2020-05-17T18:59:54 | 264,730,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 454,652 | cpp | Assembly-CSharp.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 "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
template ... |
dcee96a6d665f7e7abe6f8eabe924226c7220b6e | f5cf9c71112bfc5220dcc14f69799c4df1b33ef8 | /Chapter 2/Kattis/doctorkattis.cpp | dbc46cbc9a6e6fb2f628de89b7a1c6a98a403fd0 | [] | no_license | rthaper01/competitive-programming-4-solutions | 383b15461c6c58cd9d01e80fba9320f3a0e0e016 | c42f2f8e1cf0c217b8f4f5d7fb52e702f78ff19b | refs/heads/main | 2023-02-19T12:35:50.777389 | 2021-01-16T23:19:39 | 2021-01-16T23:19:39 | 316,351,989 | 3 | 0 | null | 2021-01-07T22:54:56 | 2020-11-26T22:52:20 | C++ | UTF-8 | C++ | false | false | 1,583 | cpp | doctorkattis.cpp | #include <iostream>
#include "stdio.h"
#include <vector>
#include <sstream>
#include <utility>
#include <set>
#include <map>
using namespace std;
void parse(map<pair<int, int>, string>& patients, map<string, pair<int, int>>& arrivals, int& pos) {
int command;
string name;
cin >> command;
switch (comma... |
5640515a795f8f2e8f1b129ab5bca8f410e97b02 | fb5da4878692c24c9a44c8ef829ce3fb86ea93f7 | /main.cpp | 965623b0876e54a9950e79cac6abe255958e6bd5 | [] | no_license | tuanhuynht1/Text_File_Compressor | 922ed9d6a83dbf81de5ffd81ccae906ac31cd5ae | 5001711651ac9fd13ce0f196442bba15032c5386 | refs/heads/master | 2022-02-27T17:09:19.093289 | 2019-11-06T19:39:50 | 2019-11-06T19:39:50 | 198,293,114 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,652 | cpp | main.cpp | #include "HeapQueue.hpp"
#include "HuffmanBase.hpp"
#include "HuffmanTree.hpp"
#include "FileIO.hpp"
#include <iostream>
using namespace std;
int main(int argc, char* argv[]){
//requires additional command line arguments
if (argc == 1){
cout << "Command line arguments required";
retu... |
492b5575eb84cae572c0b3566cec31abad85e65e | d1fc081702c50b72e75c01df0b68b1bac8369983 | /recognizer.h | 470876f5be44aa330fa4d5c4f813f9dd2387d555 | [] | no_license | ZhengWG/ZhongKong-Robot--Simple-object-recognition | f6b930b07f6b776c4c15edd109e28af69ca9d8cb | f4d43a65463975e2ac8f21adde0888a775b1595b | refs/heads/master | 2021-09-10T01:06:19.405824 | 2018-03-20T12:53:37 | 2018-03-20T12:53:37 | 126,014,352 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,577 | h | recognizer.h | #ifndef RECOGNIZER_H_
#define RECOGNIZER_H_
#include "cmhead.h"
#include "image.h"
using namespace std;
using namespace cv;
using namespace cv::gpu;
/*识别类,功能有:
匹配输入的ZKBImage_vector中的图像对象和frame图像对象*/
class ZKBRecognizer
{
public:
int count; //count保存识别几帧图片输出结果
uchar Recrst; //Recrst保存识别结果
ZKBRecognize... |
e99a64fd3be6747a8f9128bc708dc76bef5dadad | 0f87e1cec828fc4fc9b7adb90339e3c21d0e75d9 | /src/min_consumption.h | d72276a3646d5533ebd589ecbae6459e466af794 | [] | no_license | trollonos/RepairFirmDB | 63cc9ff13684ae6351d4d8076c2ea0ad7ed1a63d | 2e359ef91de036fe59c3d34c36f4310c46a24e22 | refs/heads/main | 2023-06-02T00:27:24.158530 | 2021-06-20T11:20:41 | 2021-06-20T11:20:41 | 367,009,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | h | min_consumption.h | #ifndef MIN_CONSUMPTION_H
#define MIN_CONSUMPTION_H
#include <QWidget>
#include <QMainWindow>
#include <QDebug>
#include <QtSql>
#include <QSqlDatabase>
#include <QFileInfo>
#include <QMessageBox>
#include <QSqlQuery>
#include <QFileDialog>
#include <QSqlTableModel>
namespace Ui {
class min_consumption... |
7a67194aace87cc9c6a6bf021278a021baf5ecaa | 1390ac2a007892b62acbbb26afc6fc490acc5161 | /Polish_Notation_Translater(Console)/Header.h | b77bb4469381ef110ddb495f3c5afb4e9d8d2307 | [] | no_license | Challanger524/Polish_Notation_Translater-Console- | 9b291679529139d4529f51b16e70090b511c9817 | 26c8042657aa02ecdc56a1c3794d27a0aebfd939 | refs/heads/master | 2021-08-09T17:37:32.520733 | 2020-09-24T12:20:52 | 2020-09-24T12:20:52 | 223,027,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,933 | h | Header.h | #pragma once
#include <iostream>
#include <string_view>
#include <stack>
#include <vector>
#include <thread>
#include <future>
#include <memory>
#include <algorithm>
using namespace std;
constexpr unsigned int G_SIZER = 128;
struct Timer {
Timer() : start{std::chrono::steady_clock::now()} {}
Timer(const Timer&) = ... |
205eee86327b16fe4d69098e5c7752ff538e7731 | f0c69db81d7c2d7d08aa5a42d4591dd79ca3f877 | /토마토(7569).cpp | ffa2e9ab19f4b3c42ff7bd540c2d7ec6219aa771 | [] | no_license | bjh6654/1D3S | d7131ca9e148a51434fd64be6317d8605827f3e4 | de287c6edb9af86cd10cf00802bed004ae2aea61 | refs/heads/master | 2022-11-18T10:20:55.799907 | 2020-07-14T14:53:18 | 2020-07-14T14:53:18 | 263,769,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | cpp | 토마토(7569).cpp | #include <iostream>
#include <queue>
using namespace std;
int N, M, H, count;
int map[101][101][101];
int p[6] = {-1, 0, 1, 0, 0, 0};
int q[6] = {0, 1, 0, -1, 0, 0};
int o[6] = {0, 0, 0, 0, -1, 1};
struct loc {
int r, c, h, d;
};
bool isRange(int r, int c, int h) {
if ( r >= 0 && r < M && c >= 0 && c < N && h >= ... |
a289eee3bfa851542720cd0cf27db7d5145b7ffc | 47955680db8ff6c3ac674bfeb9c6bdbb7db2f4d5 | /03_UDP广播.cpp | 515f568fc4d58a32bf6816aad01936495365c4ec | [] | no_license | 1340150899/Learn_Netprograming | dd267395622ad4e06d0adec975fa8d774669ac22 | 90a20ac6df5157812deec384a79ceb669b5cd961 | refs/heads/master | 2023-08-07T03:33:16.275340 | 2021-10-02T06:56:29 | 2021-10-02T06:56:29 | 412,704,929 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 659 | cpp | 03_UDP广播.cpp | #include<iostream>
#include<sys/socket.h>
#include<netinet/in.h>
#include<cstring>
#include<arpa/inet.h>
#include<unistd.h>
using namespace std;
int main()
{
int sockfd = socket(AF_INET, SOCK_DGRAM, 0);
int yes = 1;
setsockopt(sockfd, SOL_SOCKET, SO_BROADCAST, &yes, sizeof(yes));
struct sockaddr_in dst... |
3912a18a3278b078400fd493ac54112d3b643de2 | 9176b0fd29516d34cfd0b143e1c5c0f9e665c0ed | /CS_153_Data_Structures/assignment3/test_slist.cpp | 42e3092fc2e5dd508e8378286ff3fff1c0d52ea8 | [] | no_license | Mr-Anderson/james_mst_hw | 70dbde80838e299f9fa9c5fcc16f4a41eec8263a | 83db5f100c56e5bb72fe34d994c83a669218c962 | refs/heads/master | 2020-05-04T13:15:25.694979 | 2011-11-30T20:10:15 | 2011-11-30T20:10:15 | 2,639,602 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,744 | cpp | test_slist.cpp | //////////////////////////////////////////////////////////////////////
/// @file test_slist.cpp
/// @author James Anderson Section A
/// @brief Implementation file for test_slist class for assignment 3
//////////////////////////////////////////////////////////////////////
#include "test_slist.h"
CPPUNIT_TEST... |
9da9132e27b5ca32902cb9c0c88c5480d571bebf | b11a84d4f5603cf222419eb9a7bf0aece7939645 | /CannonsApplication/CannonsApplication/transformScene.cpp | 39ed85b246ae2d9ca8068801b1095430ef32ffa7 | [] | no_license | YvensFaos/CG_MSC_Discipline | 2615a279cd740498a79445fb667eb94629125083 | f1c9676b799e52465aac015f65061c0f235fd091 | refs/heads/master | 2021-05-27T17:07:57.671221 | 2014-12-16T13:44:28 | 2014-12-16T13:44:28 | 17,761,687 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,804 | cpp | transformScene.cpp | #include "transformScene.h"
#include "specialObjects.h"
void scaleOnXYZ(float elapsedTime, GObject* object)
{
GCube* cube = (GCube*)object;
object->floatCounter += (elapsedTime*0.5);
float factor = 1.0005f; //0.5f + sin(object->floatCounter);
printf("scale factor: %f\n", factor);
cube->scale(new EDPoint(1.0f,... |
81e695eb70f9bafea796a7399ad583f17eb4f82e | d3aafe095275adef7404788998a355414a227903 | /dnn_project/dnn/learning_rules/optimal_stdp.h | 46a9975e07c373da11d328dc7f5adf995a401743 | [
"MIT"
] | permissive | vvoZokk/dnn | 325964282587c56178dd82eab0e2cc688695f347 | 19490dd86234d2f7fa9a0de162ed4c2ab33be7d3 | refs/heads/master | 2021-01-18T07:41:14.848205 | 2018-01-28T22:36:51 | 2018-01-28T22:36:51 | 46,082,204 | 1 | 1 | null | 2015-11-20T12:41:37 | 2015-11-12T21:32:39 | C++ | UTF-8 | C++ | false | false | 2,207 | h | optimal_stdp.h | #pragma once
#include <dnn/protos/optimal_stdp.pb.h>
#include <dnn/io/serialize.h>
#include <dnn/util/fastapprox/fastexp.h>
#include <dnn/neurons/srm_neuron.h>
#include <dnn/sim/global_ctx.h>
#include <dnn/sim/sim_info.h>
#include <dnn/util/fastapprox/fastpow.h>
namespace dnn {
template <typename C, typename S, typ... |
98a502315048a5b48b970f2cba11f8c87fc4e780 | f6549f90d5d7ad7c4537df2ac4b20dcda28c8ab9 | /src.cpp/alox/log.cpp | 7fcc45b87e0baa0fdbac14fdc08846bd6debe948 | [
"MIT"
] | permissive | winsmith/ALox-Logging-Library | 1b9606b907f72a3272f2b494b20bbcab84774aa7 | 9e5224a73f0e5c7ddab52de6646721ad7b358835 | refs/heads/master | 2020-12-13T21:52:26.224953 | 2016-04-19T13:07:25 | 2016-04-19T13:07:25 | 56,597,074 | 0 | 0 | null | 2016-04-19T13:01:28 | 2016-04-19T13:01:27 | null | UTF-8 | C++ | false | false | 4,154 | cpp | log.cpp | // #################################################################################################
// aworx::lox - ALox Logging Library
//
// (c) 2013-2016 A-Worx GmbH, Germany
// Published under MIT License (Open Source License, see LICENSE.txt)
// ################################################################... |
307c26ede0cae4d85d84c57db86c6e0c429a4bf6 | a0977a28bf39fdd8c4a4cec4ba180c5770f01379 | /src/cs_hook/hook_function.h | 4062a3c21651fc426a513d793e781f14fa0b17fd | [] | no_license | shuhaoc/sogp2 | 092506e2b278f59f8d0f407b38d4e5ff0d8138f1 | 0f4a790ff5b7b79b9c7a8fe21761ccb0a9792578 | refs/heads/master | 2021-01-01T17:21:10.150787 | 2015-03-29T05:34:53 | 2015-03-29T05:34:53 | 33,062,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | h | hook_function.h | #pragma once
#include <Winsock2.h>
namespace cs_hook {
SOCKET __stdcall WSASocketA(int af, int type, int protocol, LPWSAPROTOCOL_INFOA lpProtocolInfo, GROUP p, DWORD dwFlags);
SOCKET __stdcall socket(int af, int type, int protocol);
int __stdcall WSAConnect(SOCKET s, const sockaddr* name, int namelen, LPWS... |
6f0a08c0d07af223bc4a5821e81f594d1612fff6 | 3159d77c2fc0828025bd0fb6f5d95c91fcbf4cd5 | /cpp/dll/libMath/Helpers.h | 8de2c9c51075a74e674f18bca1093c181038b89c | [] | no_license | jcmana/playground | 50384f4489a23c3a3bb6083bc619e95bd20b17ea | 8cf9b9402d38184f1767c4683c6954ae63d818b8 | refs/heads/master | 2023-09-01T11:26:07.231711 | 2023-08-21T16:30:16 | 2023-08-21T16:30:16 | 152,144,627 | 1 | 0 | null | 2023-08-21T16:21:29 | 2018-10-08T20:47:39 | C++ | UTF-8 | C++ | false | false | 74 | h | Helpers.h | #pragma once
namespace Math {
void Print(double d);
} // namespace Math |
ecbd4a81fb3065d101bd3737e3bef9d65bee8d55 | 67d1eba373b9afe9cd1f6bc8a52fde774207e6c7 | /TopCoder/testprograms/MergeStrings.cpp | a60f216d21b9c3c1d014a4425525ffc251b21d06 | [] | no_license | evan-hossain/competitive-programming | 879b8952df587baf906298a609b471971bdfd421 | 561ce1a6b4a4a6958260206a5d0252cc9ea80c75 | refs/heads/master | 2021-06-01T13:54:04.351848 | 2018-01-19T14:18:35 | 2018-01-19T14:18:35 | 93,148,046 | 2 | 3 | null | 2020-10-01T13:29:54 | 2017-06-02T09:04:50 | C++ | UTF-8 | C++ | false | false | 11,621 | cpp | MergeStrings.cpp | #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmat... |
ff21c78d6cd687cba783ae9b3eca7cb94144a35d | de7e050dd1e4052fbd79236455cd13b03d214950 | /network/middleware/package.cpp | ff24a9ee3e8d9bfda3fbf7b62c0438fd313ab92d | [] | no_license | Samuelchen85/ffnet | 5c4a7a2f4d445dcd2f08f9e6164fa12e0c671a48 | 3dfb578d29f3e709fbcc1e71878319e83ed0d9ee | refs/heads/master | 2020-03-23T14:54:41.329815 | 2015-08-01T01:23:59 | 2015-08-01T01:23:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | cpp | package.cpp | #include "package/package.h"
namespace ffnet
{
package::package(uint32_t typeID)
: m_iTypeID(typeID){}
package::~package(){}
}//end namespace ffnet
|
f94c5e50e8b458613b048b4b1021b482f7c0bc61 | 8e7ebfadebeca8b9c6fea4bda4298cb6a3e737be | /spanish-legacy/R/coding_challenge_3.cpp | be207f5a6d28642f1426abc9177c27d5d48ce812 | [] | no_license | Dk0958/youtube-scripts | 7057601f98347a46c6e8cf49460a2f01ea133645 | 55de6a809f4c7a2c603659fa31d1d2a82aaed446 | refs/heads/master | 2023-02-13T10:08:40.088503 | 2020-12-17T01:34:36 | 2020-12-17T01:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 572 | cpp | coding_challenge_3.cpp | #include<iostream>
#include<vector>
using namespace std;
void coding_challenge3(vector<int> x){
int count = 0;
int n = x.size();
for(int i=1;i<=n-2;i++){
if(x[i-1]==1 && x[i] == 1 && x[i+1]==0){
count++;
}
if(i==n-2 && x[i] == 1 && x[i+1] == 1){
count++;
}
}
cout << "Number of blocks ... |
b1486f3957bd02ba433f39619fded9bb9f86415e | d152b7706a665eb16bac8b4d4e92cf60b27152ee | /hdr/ImageLoader.h | 51e354a699181d8957e5076aca146a6abb398275 | [] | no_license | AnandSundar/Kitty-Pirateer | 971ea82a1527898803d51982d1870c5d1213cbdb | b35d4a7c778b9b16dbccf3caa96e4d7659fccb99 | refs/heads/master | 2021-01-16T22:03:22.905062 | 2016-03-01T21:35:25 | 2016-03-01T21:35:25 | 49,181,358 | 0 | 5 | null | 2016-02-24T20:50:09 | 2016-01-07T04:37:52 | C++ | UTF-8 | C++ | false | false | 776 | h | ImageLoader.h | #ifndef IMAGE_LOADER_H_
#define IMAGE_LOADER_H_
#include <GL/glut.h> /* glut.h includes gl.h and glu.h */
#include <GL/freeglut.h>
#include <SOIL/SOIL.h>
class ImageLoader {
private:
public:
static GLuint LoadTexture( const char * filename );
static void drawBox(GLfloat size, GLenum type, int x, in... |
73c0ed95eb86271e933b9f4b2296c72e082dc037 | ef5293888c681e234c476aada1e234098008d849 | /src/queryServer/corba/server/ServerInterface.cpp | 40658f0e002a97387e857daf76ebb597ae4a0dce | [
"MIT"
] | permissive | fmidev/smartmet-library-grid-content | 5a76dcf35e0bda79ab2b8da3c524ff2a2361103e | 71e4b24bab79a5f6238a163bb951091cac23f04e | refs/heads/master | 2023-08-04T06:45:03.732347 | 2023-08-03T07:32:36 | 2023-08-03T07:32:36 | 91,444,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,521 | cpp | ServerInterface.cpp | #include "ServerInterface.h"
#include "../convert/Converter.h"
#include "../../../contentServer/corba/convert/Converter.h"
#include <macgyver/Exception.h>
#include <grid-files/common/ShowFunction.h>
#define FUNCTION_TRACE FUNCTION_TRACE_OFF
namespace SmartMet
{
namespace QueryServer
{
namespace Corba
{
ServerInt... |
70bdf0e4dbdf580eb36b12efdc09293a17ec0941 | a65b1d944e0eff62c9a482238802ad62af3973c0 | /WB/w2/w2t11.cpp | e9e1ad8995b4383e1102b6b588c909851e9b1cf8 | [] | no_license | vlasove/programming | 8f632177c4e4752990495ca129838a9c4929254e | 50993694eab22611c962f6be65d4501ed72cf23b | refs/heads/master | 2020-09-29T05:24:11.283045 | 2019-12-14T21:19:08 | 2019-12-14T21:19:08 | 226,963,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,758 | cpp | w2t11.cpp | #include <iostream>
#include <map>
#include <string>
using namespace std;
void ChangerCap(map<string, string> &grossbuch, string country, string new_capital)
{
if (grossbuch.count(country) == 0)
{
grossbuch[country] = new_capital;
cout << "Introduce new country " << country << " with capital "... |
b4a1744a09180d5d889211e31ccdfbf3bc794f45 | 587a987f72a6a0b366fdd52a611a56e10972491a | /LeetCode/300_最长上升子序列.cpp | 04c5d8f71c6631c2bb0d1e90381279e00328e950 | [] | no_license | SeanCST/Algorithm_Problems | 18e4115dfd8d6b51cef6fad90b537d989123d655 | 03f7de3e4717677967d8b11ed4d7f0285debdb61 | refs/heads/master | 2023-07-27T22:33:56.783638 | 2023-07-17T14:13:49 | 2023-07-17T14:13:49 | 144,162,747 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,681 | cpp | 300_最长上升子序列.cpp | class Solution {
public:
int lengthOfLIS(vector<int>& nums) {
vector<int> dp(nums.size(), 0);
int maxLen = 0;
for(int num : nums) {
int l = 0, r = maxLen;
while(l < r) {
int mid = l + (r - l) / 2;
if(dp[mid] < num) {
... |
4bca293d06824518cfd2199948ef89356eb47fc1 | 6a6bad489b95f002485ce7b2d9ff2d09790f1536 | /Branch/glPro/glPro/Camera/glFirstPersonCamera.h | baef426d559438a8396f3867adcdd041346922d7 | [] | no_license | yura84/rts-game-engine | d53f67ddac9346b31f7930dc2b928ee21d56d314 | 797523cc5bb8fd9e0d7942e4e97b2b9e9678f78b | refs/heads/master | 2021-01-01T18:48:30.914812 | 2012-12-18T21:33:32 | 2012-12-18T21:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 916 | h | glFirstPersonCamera.h | /*
* glFirstPersonCamera.h
*
* Created on: Mar 6, 2012
* Author: iurii
*/
#ifndef GLFIRSTPERSONCAMERA_H_
#define GLFIRSTPERSONCAMERA_H_
#include "glCamera.h"
#define WIDTH 800
#define HEIGHT 600
class glFirstPersonCamera : public glCamera{
private:
float angleX;
bool moving[4];
bool _jump;
float dt... |
7bf1969875d6b0204ff9d152b03da371a91351c0 | 5e7098aa1d4cac17873f77a626d95e97f2d5c07b | /new 32codejam-14-1.cpp | 640a831dc9a5180a7dc0bcff1055393f182eec67 | [] | no_license | vartulbiet/uva | e73f82ae5f0b9d82baa9612be73322574919a91d | 85d3328185cbf9df8b0e18a1902b27dcd6b6eb68 | refs/heads/master | 2016-09-03T07:13:04.510472 | 2015-07-09T06:52:42 | 2015-07-09T06:52:42 | 38,802,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,954 | cpp | new 32codejam-14-1.cpp | #include<iostream>
#include<vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <string>
#include <queue>
#include <sstream>
#include <iostream>
#include<string... |
5f80dad8cd0a261fdc7510f5b42e11e2432c1432 | dd9dd8e79b35cefdd36911117c2858f3248452f5 | /src/test/objectstore/test_idempotent_sequence.cc | 7cf31fa92984537b4bb55d361eb09cafd50cb616 | [
"MIT"
] | permissive | SrinivasaBharath/ceph-1 | fed913cbf90c8d8ddffa156987d7b06464f19743 | 6a0747b6b79f5ca814afca6cefeb45f52fb9a509 | refs/heads/master | 2023-01-13T20:43:58.705726 | 2020-09-20T13:31:14 | 2020-09-20T13:31:14 | 298,234,477 | 0 | 0 | MIT | 2020-09-24T09:42:19 | 2020-09-24T09:42:18 | null | UTF-8 | C++ | false | false | 7,021 | cc | test_idempotent_sequence.cc | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2012 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version... |
d2621d60a2486f89dfd6ae9e1483ae1558046b23 | 17da681b73da0a2db1d0a15040f573834762ac32 | /qt-everywhere-opensource-src-4.7.3/src/gui/kernel/qeventdispatcher_gix_p.h | e53237d2509cfb3de8d529635f5dac5d57805cf0 | [] | no_license | easion/GoogleCodeImport | 652690592ad0e113ac60f807a937e50978cb3f64 | e7648d4fa4543520012b6e47a1d2fefed6f22d81 | refs/heads/master | 2021-01-25T05:35:28.584058 | 2015-03-14T07:59:22 | 2015-03-14T07:59:22 | 32,141,682 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 645 | h | qeventdispatcher_gix_p.h | #ifndef FEASOIFESWR
#define FEASOIFESWR
#include <private/qabstracteventdispatcher_p.h>
#include <private/qeventdispatcher_unix_p.h>
class QEventDispatcherGixPrivate;
class QEventDispatcherGix : public QEventDispatcherUNIX
{
//Q_OBJECT
Q_DECLARE_PRIVATE(QEventDispatcherGix)
public:
explicit QEventDispatcherGix(QO... |
6604650616ae23ed934cc0acf7249125aff2691e | 29a739d31b1cd10fb81cc98e21e147407646bc6e | /chrome/browser/task_manager/task_manager_browsertest_util.cc | d5b0aca85f62da49dcc001b4c3a58aab8db54fb0 | [
"BSD-3-Clause"
] | permissive | nemare/chromium | f3aab188290fedeb112d653d0fb42c04e25c2285 | b772275d9555449120cbc756bd11d0fceb4dd8cc | refs/heads/master | 2023-03-18T14:53:06.697612 | 2016-05-10T15:52:41 | 2016-05-10T15:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,250 | cc | task_manager_browsertest_util.cc | // 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.
#include "chrome/browser/task_manager/task_manager_browsertest_util.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/l... |
fc6c493192d9d52bafcda330b007af0426ced5a3 | 886d4aab75c1d77c2b979f7771f02aace66fb90b | /includes/Log.hpp | ccc6ffa1b214bb165ca4ccea028b44a67dd72e01 | [] | no_license | vccolombo/Gossip-membership-protocol | e004cb3a9bc41e1709327c5ab51db403991814a0 | 6e245a45ac856ad76ccde346864175bb31d4d5b0 | refs/heads/master | 2022-12-26T16:57:36.791762 | 2020-10-03T18:53:33 | 2020-10-03T18:59:46 | 286,344,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 293 | hpp | Log.hpp | #pragma once
#include <fstream>
#include <string>
#include "Address.hpp"
#include "Config.hpp"
class Log {
static Log* instance;
std::ofstream file;
Log() { remove(Config::LOG_FILE.c_str()); }
public:
static Log* getInstance();
void write(std::string message);
}; |
9f5cff1273a370565933c529f546b2505f7a8680 | 1a51f078d58741b09a5386b056a9a269f7b91909 | /project/MotorController/dk.ino | 8925fc76ef8c5f2abf6d1548b8dd73d603d29792 | [] | no_license | quangnuce/cleanerbot | cb0abde3cf51b12e8786b9d6507659233e155bf4 | af40cbfa5f825376003d745ccd94371526566a14 | refs/heads/master | 2020-04-10T03:48:44.898446 | 2019-06-29T11:54:17 | 2019-06-29T11:54:17 | 160,780,277 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,948 | ino | dk.ino | #include "ros.h"
#include "geometry_msgs/Twist.h"
#include <math.h>
#define INA 3
#define INB 4
#define INC 5
#define IND 6
#define ENA 8
#define ENB 9
float HR;
float Va,Vb,V,V0;
ros::NodeHandle nh;
void velCallback( const geometry_msgs::Twist& vel_cmd)
{
V0 = vel_cmd.linear.x/0.15;
HR = vel... |
f51efdf31f1014c8a7ae5b9d37316da4f63228ad | e03095f7e2ecc7e0e98d20ff55008e11e55d0d76 | /error/NotParsedError.h | 151bdd3dcafdbe8059866c20dc7f645f67bb1369 | [] | no_license | llylly/LapisParser | 9f1f5c33b4a48cb19057d41e9b640f790049b0b3 | 06dab89b6df60b98ebe899cb27ea0f6990386724 | refs/heads/master | 2021-05-16T05:10:06.060115 | 2017-12-20T14:33:48 | 2017-12-20T14:33:48 | 106,280,804 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | h | NotParsedError.h | //
// Created by lly on 01/08/2017.
//
#ifndef VPARSER_NOTPARSEDERROR_H
#define VPARSER_NOTPARSEDERROR_H
#include "Error.h"
class NotParsedError: public Error {
public:
NotParsedError() {
this->fileName = "";
this->line = 1;
this->col = 1;
this->errorType = NOT_PARSED;
thi... |
136473db1f9a99363f07a3d342b151e268786cde | 3a35b302ac0355dd5911bdd5f93546fd22766ed2 | /Library/GUI/WidgetList.h | cd6843955b8037084c3e58cb76753d5e582a87db | [] | no_license | kyoichi001/sarashina-yako | 86ec8e66e6a8d1b0751baf52bcdc29b9785b7419 | bcf25a24bc21bff1b450d69e94376e3e2d7170ab | refs/heads/master | 2023-02-01T21:08:27.135547 | 2020-12-16T02:36:52 | 2020-12-16T02:36:52 | 321,843,299 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,296 | h | WidgetList.h | #pragma once
#include "IWidget.h"
//#include "../../Class/Object/Effect/IEffect.h"
#include "../ObjectList/ObjectMap.h"
#include <string>
class IWidget;
class WidgetList {
protected:
std::unordered_map<std::string, std::unique_ptr<IWidget>> mMap;
IWidget* mBeforeWidget;
IWidget* mLastWidget;
public:
WidgetList()... |
c80608b6ac4ced2c4f12a392f90b176e27d67e19 | 1fd457df5375342d8510a3b7f734f34d041051bd | /C++ Concepts/modular.cpp | b15dcf719c7573591f8d9d4bb4ba960153267419 | [] | no_license | kavyashree1903/DSA-course-by-abdul-bari | 92b0befb84f1a6e1435a76fd12a10a59e0db13a4 | ef6310fe3e3a819789c4d861a2678b4821276ece | refs/heads/master | 2023-04-23T04:57:48.204796 | 2021-05-07T10:17:03 | 2021-05-07T10:17:03 | 323,089,073 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | cpp | modular.cpp | #include<iostream>
#include <stdio.h>
using namespace std;
int area(int length, int breadth){
return length*breadth;
}
int peri(int length, int breadth){
int p;
p=2*(length+breadth);
return p;
}
int main()
{
int length=0, breadth=0;
printf("Enter length and breadth");
cin>>length>>breadth;
int a=area(leng... |
b310120fec61ef6ed525dc24cc71d954dac8b3be | 8c7689767a949ecec2f75c754b5a7f69e496c660 | /inc/RayTracer_GPU.h | a5dc727f4dce85f736d2be9f653a0bf70e8d75dd | [] | no_license | jwasinger/raytracer | d5951833ae35da8dbf67a2386ebfb2cc14616189 | 634ceb73e09578ab4d32afd7133ac3d823ce3131 | refs/heads/master | 2021-05-28T15:54:54.417656 | 2015-03-20T07:29:48 | 2015-03-20T07:29:48 | 16,874,125 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,438 | h | RayTracer_GPU.h | #ifndef RAY_TRACER_H
#define RAY_TRACER_H
#include "Renderer.h"
#include "Vertex.h"
#include "log.h"
#define CS_OUTPUT_WIDTH 256
#define CS_OUTPUT_HEIGHT 256
#define LIGHT_DIRECTIONAL 1
#define LIGHT_POINT 0
namespace Core
{
struct Light
{
int type;
int padding[3];
Vector3 pos_direction;
};
struct Materi... |
cd22ab88412c992ca9c9fd59f4a9680cd94b4e2f | ddbabd0ef940e4d7389f7b14e292981b414272ce | /codec_test/NullCodec.cpp | 69cf6c8e7e6cf640ef3ea5a455f091867032ae10 | [] | no_license | miuk/dsp | 04e2871c4cacd91ba32666befe3cf69b25dd3d7f | dfd1ac0deb9297f633167afdbe46775b51f6a2f5 | refs/heads/master | 2020-12-24T16:31:46.987865 | 2019-09-13T01:38:53 | 2019-09-13T01:38:53 | 15,839,210 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,440 | cpp | NullCodec.cpp | #include "NullCodec.hxx"
#include "wav.hxx"
#include <string.h>
#include <iostream>
using namespace std;
NullCodec::NullCodec(void)
{
hz = 0;
type = WAVFmt::Type_pcm;
frame_size = 0;
}
const char*
NullCodec::getName(void) const
{
static const char* name = "Null";
return name;
}
void
NullCodec::i... |
4898274ef70fd913ec5c5548c2b537f6c31e4cb4 | ad6b1f83e5a8d6d6723a0d6e6a9e45fcb76826b2 | /Codeforces/307_2/contest.cpp | dd5e01aaad65a180133ce93c71363b81572a1988 | [] | no_license | VibhorKanojia/Programming | 3201b75886eb106cbc528f8b9ce9358b6af1584c | b677833dee2bd67b2683e692212b40b562b66d75 | refs/heads/master | 2021-03-27T08:42:53.672396 | 2015-09-11T19:12:56 | 2015-09-11T19:12:56 | 24,784,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 732 | cpp | contest.cpp | #include <bits/stdc++.h>
using namespace std;
bool compareFunction(int a, int b){
if (a > b) return 1;
else return 0;
}
int main(){
ios::sync_with_stdio(false);
int n;
cin >> n;
int array[n];
int sort_array[n];
for (int i = 0 ; i < n ; i++){
cin >> array[i];
sort_array[i] = array[i];
}
... |
487d979c1fc59d0d5fb1990e857228b782cb377d | dbcf311d97da672c49f2753cf927ec4eb93b5fc0 | /cpp01/ex03/ZombieHorde.hpp | 94adba92b7a445ad82b4c4c0e6a84924d3d05843 | [] | no_license | ekmbcd/Cpp_Piscine | fdbcd5b408ecba504e328f143caf9146fef838b6 | b8d4123229f362e0e50acc65020f1ded8d3d073a | refs/heads/main | 2023-05-01T06:05:11.494469 | 2021-05-12T16:20:22 | 2021-05-12T16:20:22 | 361,516,339 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | hpp | ZombieHorde.hpp | #ifndef ZOMBIEHORDE_HPP
# define ZOMBIEHORDE_HPP
# include <string>
# include <iostream>
# include <stdlib.h>
# include <time.h>
# include "Zombie.hpp"
class ZombieHorde
{
public:
ZombieHorde(int N);
~ZombieHorde();
void announce() const;
private:
Zombie* _zombies;
int _n;
};
#endif
|
8922229a8da630ad29c0949c79dc62f51aa5fef5 | 05b0c763ab92086e69a8d00ae6465009c596f6bc | /csrc/cpu/aten/FlashAttention.h | 8e8e39b908a48fb4b89bbf16c2c549e6868048eb | [
"Apache-2.0"
] | permissive | intel/intel-extension-for-pytorch | 60ce2af2ec3a1dacae0d0db13dd51a5b44512e61 | 7f9266789de7ca9d8bcf55606f3204f1a3640640 | refs/heads/master | 2023-09-01T09:13:16.866410 | 2023-08-31T08:00:37 | 2023-08-31T08:00:37 | 256,061,008 | 991 | 144 | Apache-2.0 | 2023-08-13T13:56:07 | 2020-04-15T23:35:29 | Python | UTF-8 | C++ | false | false | 577 | h | FlashAttention.h | #pragma once
#include <ATen/ATen.h>
#include <dyndisp/DispatchStub.h>
namespace torch_ipex {
namespace cpu {
namespace {
at::Tensor flash_attention(
at::Tensor query,
at::Tensor key,
at::Tensor value,
const double scale_attn,
at::Tensor attention_mask);
}
using flash_attention_kernel_fn = at::T... |
e1ab0f3a944a42d4d58a6fa1aabbaafc5d61d7af | 2a5db4d9e51d29445f72d1ffd3f98609523b082d | /media-driver/media_driver/agnostic/common/cm/cm_surface.cpp | 79d57b0600214b887359fb17493a9d146ca4170b | [
"BSD-3-Clause",
"MIT"
] | permissive | mintaka33/media | 19f26239aee1d889860867a536024ffc137c2776 | 4ab1435ef3b3269ff9c0fa71072c3f81275a4b9d | refs/heads/master | 2021-05-11T04:01:48.314310 | 2018-02-02T03:43:36 | 2018-02-02T03:43:36 | 117,930,190 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,052 | cpp | cm_surface.cpp | /*
* Copyright (c) 2017, Intel Corporation
*
* 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, publis... |
d8566a430b1c88e1d414f4a0749772fe4ec6407b | d14853c465ede75b0f18f3ee59654310580e2551 | /editor/old_wx_editor/dlgAbout.cpp | 03cd3bb6d5600aceb88524f1b09808d20a01a6f9 | [] | no_license | k3a/Panther3D-2 | dec2f4ef742c1b57da1f17e2b55c39d471e0309a | f906796e331d70ac963d0b899c4c83c50b71cdc0 | refs/heads/master | 2021-01-10T22:23:02.226127 | 2014-11-08T21:31:46 | 2014-11-08T21:31:46 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 561 | cpp | dlgAbout.cpp | /* Panther3D Engine © 2004-2008 Reversity Studios (www.reversity.org)
* This contents may be used and/or copied only with the written permission or
* terms and conditions stipulated in agreement/contract.
-----------------------------------------------------------------------------
Authors: kexik
*/
#include "pre... |
9e9423bee98a0e58eac68a6dcff11a9255a7d3ae | 64d7cc6e293d9f06f4f31f444a64d74420ef7b65 | /inet/src/linklayer/common/MACBase.cc | 8d9d46d98748140f566ba430c860bdc58a520a50 | [] | no_license | floxyz/veins-lte | 73ab1a1034c4f958177f72849ebd5b5ef6e5e4db | 23c9aa10aa5e31c6c61a0d376b380566e594b38d | refs/heads/master | 2021-01-18T02:19:59.365549 | 2020-11-16T06:05:49 | 2020-11-16T06:05:49 | 27,383,107 | 19 | 12 | null | 2016-10-26T06:05:52 | 2014-12-01T14:31:19 | C++ | UTF-8 | C++ | false | false | 3,884 | cc | MACBase.cc | //
// Copyright (C) 2013 Opensim Ltd.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser 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 i... |
8581c5d70019de177fa84fdaf11d420bf74ce97f | b4d2b42f94c72842ef8334ea3b763e56a1fb317f | /benchmark/hash_table_benchmark.cpp | a255953fa7a6676abc45488c3702c7f44f2fec14 | [
"MIT"
] | permissive | codingpotato/Lox-modern-cpp | 8194654b054c021e8103b0adfd22bb5606270600 | 7ddc0edb95ea171a3dc0baf33ddaab1aeb3a34c5 | refs/heads/master | 2020-12-04T21:51:26.334972 | 2020-05-17T09:46:30 | 2020-05-17T09:46:30 | 231,911,761 | 13 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 806 | cpp | hash_table_benchmark.cpp | #include <benchmark/benchmark.h>
#include <memory>
#include "hash_table.h"
#include "object.h"
static void hash_table(benchmark::State& state) {
while (state.KeepRunning()) {
lox::Hash_table table;
std::vector<std::unique_ptr<lox::String>> strings;
for (auto i = 0; i < 100; ++i) {
strings.emplace... |
c7f73459d535d91233b3f7f0c70f799bddddc8cd | b281afaacfd0a41a9086773d1a1b497f89d21f3b | /Yet Another Two Integers Problem.cpp | eb0a60a1cb8dfe71b9fbf1070624c3e4088e445b | [] | no_license | rishabhgupta03/c-plus-plus | 186090ffa630225cc12973d2166781b22e46bc75 | da31fd1d88489aaa601274f60bce55df1665d9b7 | refs/heads/master | 2022-12-15T06:28:44.821629 | 2020-09-15T21:39:49 | 2020-09-15T21:39:49 | 295,854,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,696 | cpp | Yet Another Two Integers Problem.cpp | #include<i>
using namespace std;
int main()
{
int a,b,n;
cin>>n;
for (int i=0;i<n;i++){
cin>>a>>b;
int diff = a-b;
int count = 0;
if (a==b){
cout<<0<<endl;
continue;
}
else if(abs(a-b)<=10){
cout<<1<<endl;... |
241f79ddb3ab29145986e70e81ce52876a6189f5 | 2c50e14d49a97c121c2d0e7bf5f2ede8f4bfc449 | /WirelessModuleCfg/WirelessModuleCfg/Protocol/ComPortExplorer.h | 77cb092e21975b9f3b41269508c77793a6c007f1 | [] | no_license | weiziyong/WirelessModule | 7d93dc9c6811d4a45532a39b63c19876cf944134 | c5ca8fa38a1e641a7d9ad22dc7b4cd3c9d516238 | refs/heads/master | 2020-12-03T01:44:27.360039 | 2017-10-16T15:06:47 | 2017-10-16T15:06:47 | 95,834,548 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 872 | h | ComPortExplorer.h | //
//
// Generated by StarUML(tm) C++ Add-In
//
// @ Project : Untitled
// @ File Name : CComPortExplorer.h
// @ Date : 2014/11/7 ÐÇÆÚÎå
// @ Author :
//
//
#if !defined(_CCOMPORTEXPORER_H)
#define _CCOMPORTEXPORER_H
#include "../stdafx.h"
#include "../../Com/CnComm.h"
class CComPortExplorer
{
public:
... |
51b1cf593a4c68ff04d2efa53c859b2ed30e6619 | 84f15bdd1d6e044583a20091653d9049b842f788 | /MessagingProgram/Source.cpp | 992494bcbc84e9fe66b9ccef0a5ac6480a4e58b7 | [] | no_license | Amuuo/MessagingProgram2_win32 | 32c6cf38c4494df32c31d9cd88b5bc0668287809 | 3ad4cbe98caaa6b196bdec332e7b68743eb09fac | refs/heads/master | 2020-03-25T04:25:32.381285 | 2018-08-28T08:54:03 | 2018-08-28T08:54:03 | 143,394,226 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,147 | cpp | Source.cpp | #include<iostream>
#include<string>
#include<sstream>
#include<Windows.h>
#include<Windowsx.h>
#include<tchar.h>
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
#define TESTRUN 1
#define clearScreen() system("cls")
using namespace std;
enum {USERNAMEDIALOG,
USERNAMEBUTTON,
MESSAGEBOX,
M... |
f84f86f2ce7a2615a25ca189c3f3eb4d34242fbc | 4321623e52a72f63debb78af5021fd5a47e57674 | /RTManager.cpp | 0b95ee6dafedad3d4ffecb11f7700269e4971726 | [] | no_license | jashingden/TCPForward | 81d7dc0ca59ba0610651c3b2dc2e130ef3c9dd9c | 452dccf8cd64638144ab767256e95ac51d1789a6 | refs/heads/master | 2020-05-14T23:30:43.657472 | 2020-04-13T10:33:19 | 2020-04-13T10:33:19 | 181,998,057 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,446 | cpp | RTManager.cpp | // RTManager.cpp
//
#include "RTManager.h"
#include "RTClient.h"
#include "DataSocket.h"
using namespace std;
//////////////////////////////////////////////////////////////////////////////////////
//
CRealtimeManager::CRealtimeManager()
{
m_pRTClient = NULL;
}
CRealtimeManager::~CRealtimeManager()
{
}
bool CRealt... |
5ae63a7c9455f9ab19fc5905eafc83f12abdd974 | 7aee96bffe5d0ba5edfcce401c379b0fd5abae51 | /821C - Okabe and Boxes.cpp | 2740d2dd8b0d47ff9306e77349dba6f1080bbfcf | [] | no_license | johnsourour/Codeforces-Solutions | 01ae61eb4fe5c6dd04b5f0adc99a9679861c7842 | 35e38200650a71950a3834362e8d617c47cb5e35 | refs/heads/master | 2021-01-25T08:27:39.675697 | 2017-06-30T14:24:05 | 2017-06-30T14:24:05 | 93,764,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 766 | cpp | 821C - Okabe and Boxes.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n, val,cnt=0,cur=1,last;
vector<int> st;
vector<int>::iterator it;
string s;
bool ok=false,was=false;
cin>>n;
while(cur<=n)
{
cin>>s;
if(s=="add")
{
ok=false;
cin>>val;
st.push_back(val);
if(val!=cur)was=false;
}
else
{
... |
5bc3fc9fabbb71f0775cc03b763a5040430dc63b | 6e9ec0e127b29603236df51701d45965b8fa7c2f | /src/animatedtransform.h | 3ae87fe4696e73bbc208e4af061efab9efb503ab | [
"MIT"
] | permissive | jammm/Langevin-MCMC | 8c4ee90fb2a913956fba828d6fbdbd844fb26482 | 06cadf6d0213e365c37cb39438bf1fef0e511912 | refs/heads/master | 2022-10-11T03:20:48.968894 | 2020-06-14T15:31:44 | 2020-06-14T21:50:03 | 271,672,514 | 1 | 0 | MIT | 2020-06-12T00:23:14 | 2020-06-12T00:23:13 | null | UTF-8 | C++ | false | false | 3,327 | h | animatedtransform.h | #pragma once
#include "commondef.h"
#include "quaternion.h"
#include "transform.h"
int GetAnimatedTransformSerializedSize();
void Decompose(const Matrix4x4 &m, Vector3 *t, Quaternion *r);
template <typename FloatType>
struct TAnimatedTransform {
FloatType isMoving;
TVector3<FloatType, Eigen::DontAlign> tran... |
c3dac8de7722e59e9df0796bbad7006e6214c6b0 | 58ced8170915bd6aae57827798f274f08e0fc021 | /gameobject.h | f07380a8c6d34fe7e88f1a01a4e9d73c462f6843 | [] | no_license | GitHoek/Invaders | 173e0de9a1ca971463c6e4bcb93244a43d83d828 | 87e8081556222edf9c85dd367adfa7482460db1d | refs/heads/master | 2021-07-03T18:35:29.533112 | 2017-09-25T11:07:05 | 2017-09-25T11:07:05 | 104,738,647 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 698 | h | gameobject.h | #ifndef GAMEOBJECT_H
#define GAMEOBJECT_H
class GameObject
{
public:
GameObject( int Position_X, int Position_Y, int Height, int Width,int Velocity_X, int Velocity_Y);
int GetHeight();
void SetHeight(int Height);
int GetWidth();
void SetWidth(int Width);
int GetPosition_X();
void SetPos... |
d11eeac09e6f3140b9818d092f4461fab2c8b0cd | 9cb14eaff82ba9cf75c6c99e34c9446ee9d7c17b | /codeforces/div3/pd.cpp | 75a1317ac3fea443e25ab6c5e07b631fbf12b09f | [] | no_license | rafa95359/programacionCOmpetitiva | fe7008e85a41e958517a0c336bdb5da9c8a5df83 | d471229758e9c4f3cac7459845e04c7056e2a1e0 | refs/heads/master | 2022-02-19T06:43:37.794325 | 2019-09-02T15:09:35 | 2019-09-02T15:09:35 | 183,834,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 978 | cpp | pd.cpp | #include <bits/stdc++.h>
using namespace std;
#define para(i,a,n) for(int i=a;i<n;i++)
#define N 1000000
typedef long long Long ;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
Long n,k;
cin>>n>>k;
string x;
cin>>x;
Long con=1,sum=0;
while(con!=k){
... |
b23a2cdfb01b8d4048d6a2f70c3b80817cdacd84 | 23819413de400fa78bb813e62950682e57bb4dc0 | /Random/1151B/backup.cpp | db777b736f2d45e1d8a1203648121f8a60b9ef2b | [] | no_license | Manzood/CodeForces | 56144f36d73cd35d2f8644235a1f1958b735f224 | 578ed25ac51921465062e4bbff168359093d6ab6 | refs/heads/master | 2023-08-31T16:09:55.279615 | 2023-08-20T13:42:49 | 2023-08-20T13:42:49 | 242,544,327 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,683 | cpp | backup.cpp | #include "bits/stdc++.h"
#ifdef local
#include "custom/debugger.h"
#else
#define debug(...) 42;
#endif
using namespace std;
#define int long long
const int MX_N = 20;
void solve([[maybe_unused]] int test) {
int n, m;
scanf("%lld%lld", &n, &m);
vector<vector<int>> a(n, vector<int>(m));
for (int i = 0... |
fbaf2f110352d8d54774562d674402f86e7cd094 | 3b8e1dc351d4c3217044a29828fe143cd143caa0 | /src/integrators/spssmlt/algo/algo_classic.h | 8d9e922df8178545050e31d54d95007fd8c171d1 | [] | no_license | beltegeuse/smcmc | 475c118f636aec70cf40636615b467f37df4e400 | 86969da4c8ddbca27c2190015c313f16da45f51a | refs/heads/master | 2023-05-24T23:59:35.188624 | 2023-05-23T00:44:05 | 2023-05-23T00:44:05 | 261,313,097 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,547 | h | algo_classic.h | #ifndef MITSUBA_ALGO_TILED_CLASSIC_H
#define MITSUBA_ALGO_TILED_CLASSIC_H
#include "algo.h"
MTS_NAMESPACE_BEGIN
/**
* Implementation of MH where no RE is performed
*/
class RenderingClassical : public Rendering {
public:
RenderingClassical(SPSSMLTConfiguration &config_,
Scene *scene, con... |
a52b35394cf4005abadd63f8e11961dec36f9444 | e17d187bcb92f3feac467cfe49d6a85b12eb06ed | /src/MortonSort.cpp | d29209dbdc086be83f7ee4679a00832bc0e88cf2 | [] | no_license | dlr1516/ars | 08fa4d7efcf3861a6f0a967d10e4ed335fd77706 | e7e73da3459cffbf842952e23bcfae03ff3462dc | refs/heads/master | 2023-03-16T03:45:02.262735 | 2023-03-13T22:53:41 | 2023-03-13T22:53:41 | 125,033,169 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,334 | cpp | MortonSort.cpp | #include <ars/MortonSort.h>
namespace ars {
// ---------------------------------------------------------------
// NUMBER OF LEADING ZEROS
// ---------------------------------------------------------------
// ---------------------------------------------------------------
// NUMBER OF ... |
9a2ea0942e9104f0a0c2db30cb82a34a27b03c66 | 67f7bd54773ca5a5d1ce530a978e5d99b529e02e | /stringstreamTesting/common.h | f064cd6382988f2f31215e61ae912ad8ddde1582 | [] | no_license | yuandaxing/Talk | 3d7463b0a9e6b5a095a9830084ef197512b84bd1 | 6a494a009c3557ca1e6268949bdb1c86252743bf | refs/heads/master | 2021-01-21T12:58:44.034695 | 2016-04-14T09:39:19 | 2016-04-14T09:39:19 | 45,820,814 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,841 | h | common.h | /*
* author: yuandx
* create: 2015-06-18
* email: yuandx@mvad.com
*/
#ifndef PUBLIC_COMMON_H_
#define PUBLIC_COMMON_H_
#include <pthread.h>
#include <string>
#include <iostream>
#include <vector>
#include <algorithm>
#include <sys/time.h>
#include <stdint.h>
namespace micro_ad
{
namespace utils
{
class MutexGuard... |
f10f9755d4c27ad155339b4c3889a87c26708069 | 2a27f87ec56988e404b499c59681e2cc78e5847f | /PAT-Basic Level/b1067.cpp | ae9d1a679989c6c043862faf8b9e29a05881e1bd | [] | no_license | Judenpech/BeginningAlgorithmContests | c38d741ec013330782dc6937cb832657184ca65e | c8b2b2e06627300dd2addca1baf25391205ee435 | refs/heads/master | 2021-09-20T21:27:23.457195 | 2018-08-15T12:27:05 | 2018-08-15T12:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cpp | b1067.cpp | #include <iostream>
#include <string>
using namespace std;
int main(){
string psw,tmp;
int n,count=0;
cin>>psw>>n;
cin.get();
while(getline(cin,tmp) && tmp!="#"){
count++;
if(tmp==psw && count<=n){
cout<<"Welcome in"<<endl;
return 0;
}
if(tmp!=psw){
cout<<"Wrong password: "<<tmp<<endl;
if(coun... |
cb02fd5d6bf3ae8a025a32d509b14ef90159e665 | 7d83df57b7cb4a98733c76ad8c6a9691b2ca7890 | /test/ese/src/devlibtest/resmgr/resmgrimpl/resmgrbeladysif/resmgrbeladysif.cxx | 4ebdbfbb3bda32eed7bcefe407062bd92f0131d2 | [
"MIT"
] | permissive | microsoft/Extensible-Storage-Engine | 30ab5bf8b5f8f2c2b5887b1dfa59b82c0588de70 | 933dc839b5a97b9a5b3e04824bdd456daf75a57d | refs/heads/main | 2023-08-13T11:53:52.563089 | 2022-07-29T17:16:38 | 2022-07-29T17:16:38 | 331,747,853 | 844 | 66 | MIT | 2023-06-15T11:57:35 | 2021-01-21T20:34:01 | C++ | UTF-8 | C++ | false | false | 6,654 | cxx | resmgrbeladysif.cxx | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// Header files.
#include "resmgrbeladysif.hxx"
// class PageEvictionAlgorithmBeladys.
PageEvictionAlgorithmBeladys::PageEvictionAlgorithmBeladys( const bool fBest ) :
IPageEvictionAlgorithmImplementation(),
m_lrutest(),
m_be... |
f743f8a50d293d33f02c999be14b6ae582297208 | 73caa69db639276fd30bb0aa28a4a2cce4e98311 | /include/server/modules/message_collector.h | 2a26d2bd0518f40bc96755a568b58698a3bf29e2 | [] | no_license | Luxan/ServerClientQTCrypto | e6078d5eaebb8cd8cd1e8f4806bc9623166c40f8 | 65e6029030e950b551d333f9d73cef60f7b6128c | refs/heads/master | 2020-09-25T21:34:17.421116 | 2016-11-16T23:12:25 | 2016-11-16T23:12:25 | 67,248,348 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,282 | h | message_collector.h | /**
\author Sergey Gorokh (ESEGORO)
*/
#pragma once
#include <map>
#include <list>
#include "../interfaces/interface_communication.h"
#include "../../shared/packages/package.h"
#include "../../shared/messages/message.h"
#include "../interfaces/interface_thread.h"
/**
\class
\brief
*/
//interface
class MessageCollect... |
579cac6a524f0a69b3c217196940af8256493d4c | 1a65adea801d4bbd2510006830d1f7573a5c9434 | /version1.5/sxEditor/EditorHUD.cpp | beadc72c41bd456102e0c69ce9e4424628e26caa | [] | no_license | seganx/old-engine | 4ed9d6165a6ed884b9e44cd10e2c451dc169d543 | e5b9fbc07632c870acb96b8448b5c9591111080c | refs/heads/master | 2020-08-08T21:23:26.885808 | 2019-10-09T13:18:03 | 2019-10-09T13:18:03 | 213,920,786 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | EditorHUD.cpp | #include "EditorHUD.h"
#include "MainEditor.h"
#include "EditorUI.h"
#include "EditorSettings.h"
//////////////////////////////////////////////////////////////////////////
// CLASS AND FUNCTION IMPLEMENTATION
//////////////////////////////////////////////////////////////////////////
void EditorHUD::Ini... |
40a5bce5583ccb1ebbfe1b0438bfeca5d7161e7a | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/termsrv/newclient/tsmmc/snapin/comp.h | 43985b335df4a880cd84eba4297109c7db18364f | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 3,418 | h | comp.h | // Comp.h : Declaration of the CComp
// The View class
//
// The view is per console
#ifndef __COMP_H_
#define __COMP_H_
#include <mmc.h>
class CConNode;
class CComp;
//
// Defered connection info
//
typedef struct tagTSSNAPIN_DEFER_CONNECT
{
CComp* pComponent;
CConNode... |
28f68087414415ad76417aff0a85b9859d5a27c7 | b449c5afb34d283c54988cb17c0daf1838b7e00d | /Bai Tap Stack Va Queue (BTH-6)/MinStack.cpp | eaa84f143e4307065d7b3ba01fe70b5370bb6ca4 | [] | no_license | hidang/ctrdl-gt | 9e877c29a02036b605d2994d327497d86b28ed34 | 8fe55602a871afad5ace9696f00d4323bda2b042 | refs/heads/master | 2023-01-24T18:34:11.199806 | 2020-12-12T11:23:17 | 2020-12-12T11:23:17 | 267,872,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,089 | cpp | MinStack.cpp | #include <iostream>
#include <stack>
using namespace std;
int main()
{
stack<int> Stack, MinStack;
int n;
cin >> n;
for (int i = 0; i < n; i++)
{
int mode;
cin >> mode;
if (mode == 1)
{
int temp;
cin >> temp;
Stack... |
257f0b4ad57aeccb266371e1621c0b19f7e55e29 | 8ca3a9b354907a5fe972124a6ff224a1d136f441 | /Estruturas_dados/Semana_6_Aula_18_Grafo_Matriz_Adjacencia/Grafo.h | 6e4701040e3b1e8360efbd47f1a1e15caa9425b7 | [] | no_license | jucelinoss/Estruturas_de_dados | 50e3ec3edcb5537f980309e9203ee9904f995edc | c44202a1b2dd4a9856be8ec917d4dc58ebef6394 | refs/heads/main | 2023-04-13T17:27:42.598509 | 2021-05-02T03:13:09 | 2021-05-02T03:13:09 | 363,526,711 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 665 | h | Grafo.h | #pragma once
#include <iostream>
#include <cstddef>
using namespace std;
typedef string TipoItem;
//grafo simples não direcionado ponderado
class Grafo
{
private:
int arestaNula = -1;
int maxQtdVertices;
int numVertices;
TipoItem* vertices;
int** matrizAdjacencia;// vetor de vetores do tipo inteiro
public:
Gr... |
5574123c2b4d057a59014f3328c5165c08d4b655 | e2bdb179231d5123c636905f173f58654df876c4 | /algorithms/cpp/substringWithConcatenationOfAllWords/substringWithConcatenationOfAllWords.cpp | 7abc70ee54d55ed55079fea64d60a416b22ece91 | [] | no_license | 410588896/leetcode | ba130c26be38a68d06b80fe7964b2bc874e39f06 | 14abd40fad66ae1585ad1564d8af6124f45eb4b3 | refs/heads/master | 2022-11-14T22:21:02.976222 | 2022-11-06T05:32:02 | 2022-11-06T05:32:02 | 291,714,180 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,947 | cpp | substringWithConcatenationOfAllWords.cpp | /*
* @lc app=leetcode id=30 lang=cpp
*
* [30] Substring with Concatenation of All Words
*/
/********************************************
*
* You are given a string s and an array of strings words of the same length. Return all starting indices of substring(s) in s that is a concatenation of each word in words exa... |
d9d6ae72301940d10305e797e54a98a1de2b2563 | 6c679bc5227e8dedcec85dadab43e7a96e308778 | /TimeMachine/preintegrate/BringUp.txt | 41ac72912638b2a11b96201bb81b3c5fa99c615f | [] | no_license | marshalltaylorSFE/ArduinoSynthLooper | b0cd8946cdfa59dfd09c3f87ebfda9d5af4e9c9b | 8b8bd58d4e1ce843c4d6f38b24c075aa389a475b | refs/heads/master | 2021-01-10T19:43:43.125958 | 2019-02-23T01:41:50 | 2019-02-23T01:41:50 | 39,349,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,649 | txt | BringUp.txt | #include <MIDI.h>
#include <midi_Defs.h>
#include <midi_Message.h>
#include <midi_Namespace.h>
#include <midi_Settings.h>
#include "timerModule.h"
#include "TimeCode.h"
#include "stdint.h"
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
//*******************************************************... |
344d129e24c74298d20add46a0e345d9193dca8b | 07f049d4b9dee0a35d524f08552302fa1664efd7 | /run/tutorials/incompressible/simpleFoam/pitzDailyNew/800/epsilon | 70f62a28a304d22cbbb40f15622e42582460b3ad | [] | no_license | crisefd/MyOpenfoam231 | 759913f01be33392e5f042e74114d4c195d91fd4 | 82974f3688b850f26b24dfecea4d5c1165d997cd | refs/heads/master | 2021-01-10T13:15:49.943263 | 2015-12-17T01:25:22 | 2015-12-17T01:25:22 | 45,358,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,275 | epsilon | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
... | |
a13a6825b3e116a0c7d15e0c439b3d850c6afa93 | 8a0458d96da032528319422f5ced046621efc3da | /networktables/include/networktables2/server/ServerAdapterManager.h | db723d991fa33e1ee197caee9acc2c5a8a448778 | [
"MIT"
] | permissive | warrenlp/2015VisionCode | c44a1bba9f4432553a2900f16b13b16b6c9453ec | 38a46724e2fbdc57baeeb7bf196327a106437f11 | refs/heads/master | 2021-01-18T02:19:24.809552 | 2015-12-30T02:10:05 | 2015-12-30T02:10:05 | 46,771,955 | 1 | 1 | null | 2015-12-30T02:10:05 | 2015-11-24T06:31:57 | C++ | UTF-8 | C++ | false | false | 692 | h | ServerAdapterManager.h | /*
* ServerAdapterManager.h
*
* Created on: Sep 26, 2012
* Author: Mitchell Wills
*/
#ifndef SERVERADAPTERMANAGER_H_
#define SERVERADAPTERMANAGER_H_
class ServerAdapterManager;
#include "networktables2/server/ServerConnectionAdapter.h"
/**
* A class that manages connections to a server
... |
a21b8a26df59db9c2f2c721b857a2e6a07d53901 | aaa20c0c80642821fe87e1ed00895b1a08966ec6 | /Aufgabe 4/OneDimObject.hpp | b185e9517c8f992f574951b523b0b5e59a4f609e | [] | no_license | HSE-SWB2-OOS/OOS-LB5 | 8a9cb475ea2972b9ac74adda794eefb4397203bb | 500547abfaa32f784257b7741f21a9beb385c068 | refs/heads/master | 2016-09-05T18:10:48.141339 | 2015-06-26T06:41:04 | 2015-06-26T06:41:04 | 37,471,060 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | hpp | OneDimObject.hpp | /* Uebungen zu OOP, Aufgabe 2.3
Erstersteller: Jan Binder, Matthias Geckeler, Thomas Günter
E-Mail: jabi00@hs-esslingen.de, matthias.geckeler@stud.hs-esslinge.de, Thomas.Guenter@stud.hs-esslingen.de
Datum: 03.06.2015
Version: 1.0
Zeitaufwand: 0,5h
Aenderungshistorie:
-------------------
Durchgefuehrte Aenderung | Aut... |
0b0ef7329799dcdd8442eba4edab015b2303e850 | 7c63a96fad4257f4959ffeba0868059fc96566fb | /cpp/std-14/s_meyers-effective_modern_cpp/code/ch_05-rvalue_refs/item_27-alternatives_to_overloading_on_universal_refs/case_2-tag_dispatching/main.cpp | 04423e13eb9cf0e4d3cfea4e5b9b2402d2b8e57d | [
"MIT"
] | permissive | ordinary-developer/education | b426148f5690f48e0ed4853adfc3740bd038b72c | 526e5cf86f90eab68063bb7c75744226f2c54b8d | refs/heads/master | 2023-08-31T14:42:37.237690 | 2023-08-30T18:15:18 | 2023-08-30T18:15:18 | 91,232,306 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,037 | cpp | main.cpp | #include <string>
#include <set>
#include <memory>
#include <type_traits>
#include <chrono>
class Logger {
public:
template <typename T>
void logAndAdd(T&& name)
{
logAndAddImpl(std::forward<T>(name),
std::is_integral<std::remove_reference_t<T>>());
... |
92697fa7800b1bbbbfdb643eaa34b573ff64e308 | 1f09440f2c51c53d0b192c9075d9e4856cf94f81 | /3-nishijima/glmm_poisson.cpp | 3f010281c414f43502749bbca6a8352e408a6e5d | [] | no_license | ichimomo/shigen_kensyu2019A | 1d6232161d3ecc378550cecf8982add5ce977405 | c14e3ac5cee37f0e106f1bc82ce63923cd7aa6a0 | refs/heads/master | 2020-06-26T23:06:27.498811 | 2020-04-07T02:50:10 | 2020-04-07T02:50:10 | 199,782,578 | 1 | 5 | null | 2019-10-07T15:44:13 | 2019-07-31T05:05:34 | HTML | UTF-8 | C++ | false | false | 639 | cpp | glmm_poisson.cpp | // glmm with Poisson distribution
#include <TMB.hpp>
#include <iostream>
template<class Type>
Type objective_function<Type>::operator() ()
{
// DATA //
DATA_VECTOR(Y);
DATA_VECTOR(X);
// PARAMETER //
PARAMETER_VECTOR(beta); // fixed effect
PARAMETER_VECTOR(epsilon); // random effect
vector<Type> ... |
0fe4dfd12c0137f9247235026ea399da1bd709c0 | d73cb2d4d045c23ffa3823ae1ccc8c505a563bfa | /c program/Project1/9w2.cpp | 1e676102030c08a19cab3d74bf6823c601708ab6 | [] | no_license | Kimchanghwan2/c- | 968a0dc182f3a790c72f37bde62ea1ffe6d7197a | 29fb2aeedc7d417fa3217a051659cb3c33eb072a | refs/heads/master | 2020-07-28T16:45:38.014010 | 2019-12-12T04:26:17 | 2019-12-12T04:26:17 | 209,470,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 226 | cpp | 9w2.cpp | #include <stdio.h>
int main(void)
{
int data[] = { 3,21,35,57,24,82,8 };
int size = sizeof(data) / sizeof(data[0]);
for (int i = 0; i < size; i++)
{
* (data + i) = 10 + data[i];
printf("%d\n", data[i]);
}
return 0;
} |
d10c1cb74f48c0dc081a3061d6d169b71d7eba6d | 2d06fc4558f40cb7420b69372d04b6ab9add0a3e | /Chapter-15/ex 06-07.cpp | b7f7eaeb98d1267044dcc9bd1742afca1a3f146a | [] | no_license | Naooki/stroustrup_ppp_exercises | f5724c64518448e92e4922d3bd6019b5d48902bf | 687af7594dd57399efdbc25c9cb20a4c1062e942 | refs/heads/master | 2021-01-12T13:07:33.062992 | 2017-01-31T06:53:37 | 2017-01-31T06:53:37 | 72,111,086 | 2 | 0 | null | 2016-11-05T23:14:20 | 2016-10-27T13:28:30 | C++ | UTF-8 | C++ | false | false | 612 | cpp | ex 06-07.cpp | #include "Simple_window.h"
int main()
{
Simple_window win(Point(100, 100), 1000, 600, "ex 6-7");
vector<double> vals = {14.88, 3.22, 5.56, 5.45};
Bar_graph bg(Point(100, 100),"MLG", vals, 800);
bg.set_color(Color::blue);
/*bg.rects[0].set_fill_color(Color::red);
bg.labels[0].set_label("\\o");
... |
adcd760605bbb24577dec6fd602b4903d975563d | f6cf00ddafb046887bd898844d403432be766bf7 | /Source/Biased/Private/BiasedBPLibrary.cpp | 9f760086a481278fa0d0b6592f4705d83f2333a8 | [] | no_license | TroyFerguson/Biased | b8abfcbec46dd750eb893d6a46c31a1ef57514c2 | bd5a26755bfbaab32908302238917769e9e8d67f | refs/heads/master | 2020-12-25T18:42:44.705051 | 2017-07-02T05:33:24 | 2017-07-02T05:33:24 | 93,976,903 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,884 | cpp | BiasedBPLibrary.cpp | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "BiasedPrivatePCH.h"
#include "BiasedBPLibrary.h"
DEFINE_LOG_CATEGORY(BiasedLog);
float UBiasedBPLibrary::FLOATING_POINT_TOLERANCE = 0.00001f;
const int32 UBiasedBPLibrary::ALIAS_NONE = 0;
const int32 UBiasedBPLibrary::INVALID_ROLL = 0;... |
0dbb96f5a875b029ff4647ed3e080b442df31b49 | 80aab0d9bc51d9ebe9228f05576895727a8413ec | /Shorya Kansal/question9/solution.cpp | aed99484105f43f77d061ba1bf7edc168b4f96ce | [] | no_license | shoryakansal/21DaysOfCode | 0e9d31653184999d7bc05a968fcb43d5564ffe9a | 894a9c1dc36ff9d90854bcc4406d4365e431499b | refs/heads/master | 2022-07-19T06:07:18.036727 | 2020-05-29T18:24:44 | 2020-05-29T18:24:44 | 259,675,123 | 0 | 0 | null | 2020-04-28T15:22:26 | 2020-04-28T15:22:25 | null | UTF-8 | C++ | false | false | 547 | cpp | solution.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
long long int n,i,max=0,c=0,f=1,t;
cin>>n;
long long int a[n];
stack <long long int> st;
for(i=0;i<n;i++)
{
cin>>a[i];
}
for(i=0;i<n;i++)
{
if(a[i]>0)
{
st.push(a[i]);
t++;
if(t>1)
c=0;
}
else if(a[i]<0 && i>0&&!st.empty())
{
... |
8185fb8d35841551c3e086d6bb5baa8967328d9e | b703cb4f590af7b5f138f4a383b2f6f31209993b | /mef02-c07/ensamb30.cpp | 1aad0e93efbebf69f1a59b54384c0f5e77879389 | [] | no_license | Beasalman/mef | 9d5e28a77d1dd25542174cd2e8a2289ec1167548 | cd08c3b3cf7050fb76c38b7cd74c7e553faca025 | refs/heads/master | 2020-05-29T21:50:22.841664 | 2019-05-31T12:20:08 | 2019-05-31T12:20:08 | 189,392,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,876 | cpp | ensamb30.cpp | #include "ensamb30.h"
/* -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- */
void ensamb30 (vector<int> ind, Matrix3d aelt, Vector3d belt, MatrixXd &a, VectorXd &b) {
/* ENSAMB30: Ensamblado de la matriz del sistema.
Matriz y vector elementales de... |
a5b0dbd2ba577e6c674a30037b8ace2a51277519 | 972c2641d6ac0ba06fcfe49b4e369701ddaa4b4b | /.svn/pristine/a5/a5b0dbd2ba577e6c674a30037b8ace2a51277519.svn-base | 6de8c24fcd6da8e378cee9ea14951f9cef00a0a2 | [] | no_license | mattrix27/moos-ivp-oyster | 65176f0ff78037a8c4b2b67a552de633fedcc0ec | b001c1a60f023165856ea2bca6a2a2d3e4293064 | refs/heads/main | 2023-05-25T22:08:05.843274 | 2021-05-27T17:45:44 | 2021-05-27T17:45:44 | 362,630,835 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,264 | a5b0dbd2ba577e6c674a30037b8ace2a51277519.svn-base | /*
* NMEAUtils.cpp
*
* Created on: Feb 3, 2014
* Author: Alon Yaari
*/
#include "NMEAUtils.h"
#include <stdlib.h> // Must explicitly include stdlib.h for clang to find abs()
#include <sstream>
#include <iomanip>
#include "MOOS/libMOOS/MOOSLib.h"
#include "MBUtils.h"
#include "NMEAutcTime.h"
#include "NM... | |
b040c2fe08a1177bc5d833e9de7140cfb45511fa | ba2163f47cf28811c078ac9e278346a0f725165b | /src/Player.cpp | 4c99a67f598f3ed94a50540664bde5859805c057 | [] | no_license | cmoylan/sdl-engine | 49f6931b769858943133f0333f2bb92e25c70583 | 126a2aa2ce0292a1f8073590dd0438d471787d9d | refs/heads/master | 2021-01-23T04:49:19.416398 | 2017-05-26T04:46:31 | 2017-05-26T05:19:16 | 80,394,717 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 852 | cpp | Player.cpp | #include "Player.h"
Player::Player()
{
}
Player::~Player()
{
// FIXME: need to unsubscribe events here
//messageCentre().
}
void Player::init()
{
messageCentre().subscribe("collision", _uuid, bind(
&Player::handleCollisionEvent, this, placeholders::_1)
... |
60b1ed036659c46d9736ad1e53ede38b64fae238 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/ce/d6db267e3488b0/main.cpp | 5e2e14b40fcdbbffc536ca126750498e938080b2 | [] | 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 | 126 | cpp | main.cpp | struct Foo {
int a; bool b;
};
class C {
Foo f;
public:
C(int i) : f{i, false}
{}
};
int main() {
C c{12};
}
|
d250fac96238e80627a227d0928b23aa83352fac | 368c2c66ce51919677ae6b29a04702af84e7e625 | /Practica 6 MP - Lukas/src/Main_Pareja.cpp | f852aad5238aa0701bd0e6c2728f7f76cf6cf2a8 | [] | no_license | cazajuegos/MP | e232fd2ca4a8b25b6a07d99274c27aed5188c7d1 | 89ec93e5a3d4e732760942cb6cc7850adb71b259 | refs/heads/master | 2020-12-30T14:55:22.400523 | 2017-06-12T23:03:46 | 2017-06-12T23:03:46 | 91,096,103 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 370 | cpp | Main_Pareja.cpp | #include<iostream>
#include "Pareja.h"
using namespace std;
int main(){
Precuencia secuencia;
char number[100];
cout << "Introduzca el numero: ";
cin.getline(number, 100);
int i = 0;
while(number[i] != '\0'){
int n = number[i] - '0', m = 1;
while(number[i + m] == number[i]) m++;
secuencia.setPa... |
bb5a8f3c1cb9c465521838eb373cfc33d8b15d57 | 6c5fac165ccdc5a1e9982b89b2bdd87b32ced4c9 | /bonsai/vertexfit.cc | 3b8fcc265b4068cf012b99328bf83d5c4c55dc32 | [] | no_license | marc1uk/hk-BONSAI | 12a0bd2fa33b1b3513656f2855c4631650201e13 | d1d2d23464ef78f74b9d20c002c1193a16b7153c | refs/heads/master | 2021-01-12T12:20:28.361892 | 2017-12-16T05:21:33 | 2017-12-16T05:21:33 | 72,444,763 | 1 | 0 | null | 2016-10-31T14:32:54 | 2016-10-31T14:32:54 | null | UTF-8 | C++ | false | false | 2,091 | cc | vertexfit.cc | #include <stdio.h>
#include <stdlib.h>
#include "vertexfit.h"
#include "binfile.h"
// hit selection parameter
#define TCLOSE 3. // timing difference to pass unchecked
#define TRES 3. // timing resolution
// *****************************************... |
eb11f6eed0f07894894b4c9e4ce40419c35221a7 | 1fa5b40ae5b52feeca986492d50548e1b2506047 | /src/PeopleDetection/PeopleDetection.cpp | d2a736a217f0a9dc3839eb818c64a67a7db74c20 | [] | no_license | malterik/VideoSystem | c16aee2e64f603693e1004a413c8791796e30396 | badbd322021ef415755c94ca6428f43e48a34125 | refs/heads/master | 2021-06-04T08:05:30.787346 | 2016-08-26T12:27:39 | 2016-08-26T12:27:39 | 50,796,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,664 | cpp | PeopleDetection.cpp | #include "PeopleDetection.hpp"
#include "../WindowManager/WindowManager.hpp"
#include "../json/json.hpp"
#include <iostream>
#include <fstream>
#include "../CameraInterface/CameraInterface.hpp"
#include "../Utils/print.hpp"
#include "../ImageWriter/ImageWriter.hpp"
using json = nlohmann::json;
PeopleDetection::People... |
364d4d56178d77f2d6053d5c02323dbdf581515f | d452a9c74124368643ac5fb5c9586dea84f5be5f | /engine/includes/Common.h | 5894105f5dfde25aca8d444311c6a40e4b4f0496 | [] | no_license | ribeiropdiogo/CG | 822f0bd2609a5aa60750688dd044bd8ea9bc33b2 | c9de752b9fb1a019f3ce3381ab1e158fedfa1d07 | refs/heads/master | 2022-09-16T08:42:28.690690 | 2020-05-30T11:42:41 | 2020-05-30T11:42:41 | 279,054,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | h | Common.h | /**
* Defines common functions and transversal to all mechanisms
* in the engine.
*/
#ifndef GENERATOR_COMMON_H
#define GENERATOR_COMMON_H
#include <string>
/**
* Verifies is a string is suffix of another.
*
* @param fullString Full string-
* @param ending Suffix to match with.
*
* @return true if the string... |
e8d8b45aa9e919934434d800464bc2c96d711f6a | 66d48cbca3584b43bdd74ca004d272f0d65e37f7 | /ui-doc-viewer/models/include/image_model.h | 0eb7aba427ac7e899be5482a72c2bdf56d694f29 | [] | no_license | pornosaur/stochastic-image-denoising | ebba18b7c3e69c805171643fd513a498220f5a81 | acfe42aa4d9e066c0ea41c172dc2f1aebc791b57 | refs/heads/main | 2023-01-31T13:59:24.180388 | 2020-12-13T01:32:51 | 2020-12-13T01:32:51 | 320,784,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,494 | h | image_model.h | //
// Created by Patrik Patera on 28/11/2019.
//
#ifndef STOCHASTIC_IMAGE_DENOISING_IMAGE_MODEL_H
#define STOCHASTIC_IMAGE_DENOISING_IMAGE_MODEL_H
#include <QObject>
#include <QImage>
#include <image_denoising.h>
#include <QtCore/QMap>
namespace qmodel {
class ImageModel : public QObject {
Q_OBJECT
pri... |
ea23145493e7c8b2bf0533461761be329a3be2ec | 13e3c317c9da3777e51dbca8f168cb5a50b35308 | /src/JobSystems/UserLevelJobSystem/AssistantKernelWorkerThread.h | 31d7afe4c880269fc4404bc4da586117df7a135b | [] | no_license | animet/BA2_JobSystems_Threads | 4c446ac1231116a7e92fa41f684cc69e2e8bd5b6 | dfea09108a7b571d046c7e272773322d408315bb | refs/heads/master | 2020-03-28T20:54:16.830921 | 2017-06-17T10:31:42 | 2017-06-17T10:31:42 | 94,615,900 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | h | AssistantKernelWorkerThread.h | //#pragma once
//
//#include "Fiber.h"
//class FiberScheduler;
//
//class AssistantKernelWorkerThread
//{
//public:
// AssistantKernelWorkerThread();
// ~AssistantKernelWorkerThread();
//
// //Kernel-Level
// HANDLE m_Thread;
// DWORD_PTR m_ProcessorAffinity;
// DWORD m_ThreadId;
// //Fiber
// void* m_AssistantFiberPoi... |
407164a2ca6f609597497e26910b6811e041ae3d | 8f8f87c0ffacf8509ee5f32f74447f64887ef501 | /problems/spoj-250/19-next-palindrome/util.hpp | 94e68f5fbea311b000c622290886587646dac5bd | [] | no_license | godcrampy/competitive | c32eb1baf355fa9697f4ea69bea1e8e2d346e14c | e42f3000296c7b40e6a4c368dd17241ebb678d18 | refs/heads/master | 2023-03-28T17:05:15.776334 | 2021-04-03T13:40:15 | 2021-04-03T13:40:15 | 206,922,544 | 6 | 3 | null | 2020-10-01T13:22:40 | 2019-09-07T05:51:30 | C++ | UTF-8 | C++ | false | false | 1,701 | hpp | util.hpp | #ifndef _UTIL_HPP_
#define _UTIL_HPP_
#include <math.h>
#include <algorithm>
#include <vector>
int length_of_number(long number) {
// works
if (!number) return 1;
return std::log10(number) + 1;
}
std::vector<int> number_to_vector(long number) {
std::vector<int> vector = {};
while (number != 0) {
vector... |
430df86d7a7a3cc28d0d623e776001d04f710b4b | 8dae84666530c848f7c3b9121e89cbcecb24a8cb | /src/compiler.h | 09850a7c8d5a1ac954a3683c90d402f2bf5eb42e | [
"MIT"
] | permissive | rikushoney/aavm | 798194ad17540867966165cb22013be0a1e85931 | 42e088078915b1973fae20ceb055680da5fbef6b | refs/heads/main | 2023-04-29T19:18:38.342544 | 2021-05-15T17:42:11 | 2021-05-15T17:42:11 | 299,420,576 | 1 | 0 | MIT | 2021-01-31T21:36:23 | 2020-09-28T20:11:33 | C++ | UTF-8 | C++ | false | false | 1,587 | h | compiler.h | #ifndef AAVM_COMPILER_H_
#define AAVM_COMPILER_H_
#if !(defined(AAVM_MSVC) && defined(AAVM_CLANG) && defined(AAVM_GCC) && \
defined(AAVM_WINDOWS) && defined(AAVM_LINUX) && defined(AAVM_MACOS))
#error "config error"
#endif
namespace aavm {
namespace compiler {
#if AAVM_MSVC
static constexpr auto msvc = t... |
f06d10223faba492c334d326543424ab74c86050 | 17cf96eac8698680b2b543a4f568bf9115cbd69e | /tools/datagenerator.cpp | 274944916c77bbca37c30a46e8ab1ea50cd8e38e | [] | no_license | GuiM0x/Mapox2D | 7b724d52f0cc566c736d3fb4ad75b44185ffc753 | 1085e6e648a211ecc22c24a355c4965414709cc9 | refs/heads/master | 2020-04-16T00:10:02.647657 | 2019-02-22T21:58:35 | 2019-02-22T21:58:35 | 165,128,537 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,879 | cpp | datagenerator.cpp | #include "datagenerator.h"
DataGenerator::DataGenerator(MapScene *mapScene)
: m_mapScene{mapScene}
{
assert(m_mapScene != nullptr);
}
void DataGenerator::generateDatas(const QString &path) const
{
const QString newFolderPath = path + "/MapDatas_gen_" + UtilityTools::createRandomKey(5);
qDebug() << "Da... |
4f114e20c6c08300be6c49da2374749c52857a07 | 2f7c02078e2dede90e5384de69a289acb3049f98 | /U TEST/test.cpp | fcb4d2769ca8ba6f328d91d6dd5fbdad5cbf7eff | [] | no_license | kittysammy123/INJECT | 7a97036a5b4780ad86b8c94347a1a07c8e0424b2 | 4044ada43ec2f3a35c477279c9955acc42ab2c54 | refs/heads/master | 2023-04-15T02:58:31.244560 | 2021-05-03T23:03:49 | 2021-05-03T23:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,982 | cpp | test.cpp | BOOL IsKeySz(PKEY_VALUE_PARTIAL_INFORMATION pkvpi)
{
ULONG DataLength = pkvpi->DataLength;
return (pkvpi->Type == REG_SZ || pkvpi->Type == REG_EXPAND_SZ) &&
(DataLength - 1 < MAXUSHORT) && !(DataLength & (sizeof(WCHAR) - 1)) &&
!((PWSTR)RtlOffsetToPointer(pkvpi->Data, DataLength))[-1];
}
NTSTATUS RegGetValue(
... |
196f100e60d9f767bd5d841b3943a1b20e19326b | 1262085a9b1c9ef235d09ed4124145bf6f87d66a | /USACO/2016 Season/February/Platinum/cbarn.cpp | e0d5fc10996e9fcfcc2dffe08a6851962827a4fa | [
"MIT"
] | permissive | nvichare/Programming_Contests | 992aaed05321e49cfad3e0e104fc4c32ee23f839 | f2a0470ace18ef3ee349bae74f02811e1e6ed7a7 | refs/heads/master | 2021-05-15T06:09:45.643731 | 2017-12-24T03:02:37 | 2017-12-24T03:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,958 | cpp | cbarn.cpp | #include <bits/stdc++.h>
#define SQ(a) (a)*(a)
#define F0R(i, a) for(int i = 0; i < (a); i++)
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define R0F(i, a) for(int i = (a) - 1; i >= 0; i--)
#define ROF(i, a, b) for(int i = (b) - 1; i >= (a); i--)
#define F first
#define S second
#define PB push_back
#define ... |
e81d0830dfc95f6ebddaf5c0cc4986981baa80d3 | 314053b20264b3dd4b4df57407fb01fe154b5300 | /dhcpserver.h | daabb6fd9697470becc2e32725e63d16260e1127 | [] | no_license | storyyey/tcp_server | 9fff070369aab07632acc78a3697dac4745f6f71 | ba2a58cdae6d22080fff464f9dcfd0600dd44faa | refs/heads/master | 2023-04-09T06:41:23.125686 | 2023-03-31T16:23:20 | 2023-03-31T16:23:20 | 265,773,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,272 | h | dhcpserver.h | #ifndef DHCPSERVER_H
#define DHCPSERVER_H
#include <QUdpSocket>
class DhcpServer : public QObject
{
Q_OBJECT
public:
struct dhcptu {
uint8_t op;
uint8_t htype;
uint8_t hlen;
uint8_t hops;
uint32_t xid;
uint16_t secs;
uint16_t flags;
... |
971112567ede3f4a21600aa0974ec018659a2d93 | 4fdd656e931354aa4c86506710734040f6dac620 | /include/simplemapreduce/ops/func.h | 0c97b8de6c844492f45ec30740df35ec0534c194 | [] | no_license | riomat13/simple-mapreduce | f868da73a456822bd46293e391edb30ab96b7520 | 88bcbb43ab028128c911a1776c616d9713bab06f | refs/heads/master | 2023-04-19T08:55:14.820678 | 2021-05-04T04:25:28 | 2021-05-04T04:25:28 | 333,633,551 | 0 | 1 | null | 2021-05-04T04:25:29 | 2021-01-28T03:24:13 | C++ | UTF-8 | C++ | false | false | 688 | h | func.h | #ifndef SIMPLEMAPREDUCE_OPS_FUNC_H_
#define SIMPLEMAPREDUCE_OPS_FUNC_H_
#include <functional>
#include <numeric>
namespace mapreduce {
#ifdef HAS_TBB
#include <execution>
// Macro to calculate sum using tbb
// This can be used for int, long, float, double
#define REDUCE_SUM(a) std::reduce(std::execution::par, a.cbe... |
8d127131c46c758108cc841e113a8a835c597dc5 | 77c4f4dd27b8d7497e66a7a5a87ad7ea83f2c4be | /cpp/src/arrow/compute/kernels/vector_selection_test.cc | 30e85c1f71089c27f349af1049bcc4e21c13d3cd | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause",
"ZPL-2.1",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"NTP",
"OpenSSL",
"CC-BY-4.0",
"LLVM-exception",
"Python-2.0",
"CC0-1.0",
"LicenseRef-scancode-protobuf",
"JSON",
"Zlib",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-licens... | permissive | apache/arrow | 0714bfbf6fd491e1f4ed4acf838845ce4b94ec3e | 59954225d4615f9b3bd7a3c266fb68761794229a | refs/heads/main | 2023-08-24T09:04:22.253199 | 2023-08-24T07:21:51 | 2023-08-24T07:21:51 | 51,905,353 | 12,955 | 3,585 | Apache-2.0 | 2023-09-14T20:45:56 | 2016-02-17T08:00:23 | C++ | UTF-8 | C++ | false | false | 100,208 | cc | vector_selection_test.cc | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
13498098f8604a4135e3d55e79258a25b5f1f6b5 | 06394bc34f4298ddc625ced2ac68530a257810c0 | /geeks/problems/CheckIfStringIsRotatedByTwoPlaces.cpp | a303ad87b0004b492dc58f57e90c68e8836fc9de | [] | no_license | dubeyalok7/problems | a052e5e06e009a4df40972eb48f204c2193aea3b | 6e2b74cf7188dcaa26c368ce847a0d0a873f15d0 | refs/heads/master | 2020-03-26T05:11:37.206457 | 2019-02-16T18:00:27 | 2019-02-16T20:18:52 | 144,542,942 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | CheckIfStringIsRotatedByTwoPlaces.cpp | /*
* CheckIfStringIsRotatedByTwoPlaces.cpp
*
* Created on: 11-Feb-2019
* Author: napster
*/
#if 0
#include <iostream>
using namespace std;
string leftRotate(string str)
{
string nstr;
for(unsigned int i =2; i< str.length(); i++)
nstr.push_back(str[i]);
nstr.push_back(str[0]);
nstr.push_back(str[1]);
... |
37d563b4f9c97cf4bf6e2d209b5dac1ed0017bf5 | b12b1d880e8a5f769091eafdd8b6fe9572cbd0a3 | /elasticSearchUI/http.h | a954a629748aeb4de87eed3f408f146956afec54 | [] | no_license | Holycute/ElasticSearchUI | d2a3366b074cd80fefa89f7a4abb3290772590bc | c3424d78b24d1646809b0c0ade696c27e6cb9fb5 | refs/heads/master | 2021-01-21T11:18:31.353878 | 2017-03-02T12:17:00 | 2017-03-02T12:17:00 | 83,547,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | h | http.h | #pragma once
#include <QtNetwork/qnetworkaccessmanager.h>
#include <QtCore/qstring.h>
#include <QtNetwork/qnetworkrequest.h>
#include <QtNetwork/qnetworkreply.h>
class HTTP: public QObject
{
Q_OBJECT;
QString host;
int port;
QNetworkAccessManager *qHttp;
private slots:
void finshedReply(QNetworkReply *);
public:... |
54f060f9dd9a9afb79eecaf6ff18b8d08fc18738 | bb1e4eef5423fb9ecc4af4b29a29c1ba2ad161ae | /tests/Input.cpp | 83ae24df103f19625d1ee0dacd8e56688c032516 | [
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | marcizhu/Units | b2045ee24b3d4f9d295bfcdcfc07a018b8f22909 | a15c1700593e4ee7da11f6b1870418b778733ef0 | refs/heads/master | 2021-12-15T03:10:19.054851 | 2021-11-29T13:43:37 | 2021-11-29T13:43:37 | 230,805,901 | 15 | 1 | MIT | 2021-02-22T08:27:27 | 2019-12-29T21:33:54 | C++ | UTF-8 | C++ | false | false | 2,612 | cpp | Input.cpp | #include "Units/Units.h"
#include "Units/IO.h"
#include "catch2/catch.hpp"
TEST_CASE("Unit input parsing", "[unit][input]")
{
Units::Unit temp = Units::Unit();
SECTION("Basic SI units")
{
temp = Units::to_unit("" ); CHECK(temp != Units::error); CHECK(temp == Units::none);
temp = Units::to_unit("m" ); CHECK... |
9473636106340b8890d610cc890a810685971eaf | 271a03c29ff5f74f2017cc3e978c0859b00c11c1 | /BarrageShooting/BarrageShooting/Player.cpp | c18fffa9e939e633261b7206a48202ca313055cf | [] | no_license | hakase0724/BarrageShooting | efc0bd56d8fd41df52dcb68fc36736326c7a3073 | 1b8442a21d6adb545582e6bb268f7d85ba7b2f9b | refs/heads/master | 2020-06-13T03:54:44.150522 | 2019-06-30T14:37:51 | 2019-06-30T14:37:51 | 194,525,646 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 5,596 | cpp | Player.cpp | #include "stdafx.h"
#include "Player.h"
#include "Mover.h"
#include <math.h>
#include "DXAnimation.h"
using namespace MyDirectX;
void Player::Initialize(DXGameObject * gameObject)
{
mGameObject = gameObject;
mDXInput = mGameObject->GetDXInput();
auto transform = mGameObject->GetTransform();
mId = mGameObject->Get... |
66e16f400c384e342bc03000aeda63e995a84fa0 | 671204099e6c8016b386303bea6ce79d5e2ae9d2 | /LightWeightBlackboard_Client/LightWeightBlackboard/roomDlg.h | 53cbee8f80f644cd204edec68cd0c83a9d897690 | [] | no_license | GGoMak/LightWeightBlackboard | b64e3c8876a80c0afd792fa683d0825bc69fcc3a | 26d21d624cd09242f2ef36e5acca1c1e237b534d | refs/heads/master | 2022-12-10T16:46:11.918661 | 2020-09-10T17:35:04 | 2020-09-10T17:35:04 | 294,045,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,244 | h | roomDlg.h | #pragma once
// roomDlg 대화 상자
class roomDlg : public CDialogEx
{
DECLARE_DYNAMIC(roomDlg)
public:
roomDlg(CWnd* pParent = nullptr); // 표준 생성자입니다.
virtual ~roomDlg();
// 대화 상자 데이터입니다.
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG2 };
#endif
protected:
virtual void DoDataExchange(CDataEx... |
335c39c3b602dbbbcb0b6eba718e15cb50b3960b | f743cbf6a802022af45ba99d7630d9ce9a931d05 | /src/AnalysisBase.cc | 61210e2e79e7a76894c7b45ced4e719595da4a87 | [] | no_license | Jphsx/KUEWKinoAnalysis | 993e78c6f823e183c13961f29cff94cb6d5cb44a | 9d0a719fc08477a9060e05ca716c40641edd5a96 | refs/heads/master | 2020-05-30T08:26:50.637409 | 2019-05-29T18:43:18 | 2019-05-29T18:43:18 | 189,620,560 | 0 | 0 | null | 2019-05-31T15:50:05 | 2019-05-31T15:50:05 | null | UTF-8 | C++ | false | false | 12,473 | cc | AnalysisBase.cc | #include <TH1D.h>
#include <iostream>
#include "AnalysisBase.hh"
#include "ParticleList.hh"
#include "TMatrixDSym.h"
#include "TVectorD.h"
#include "StopNtupleTree.hh"
using namespace std;
template <class Base>
AnalysisBase<Base>::AnalysisBase(TTree* tree)
: Base(tree)
{
m_Nsample = 0;
m_SampleIndex = 0;
m_D... |
a2ff22192b732e8d126ebc94cb59be1a7ad96293 | 3fd3387adf63c1f0918fe85e25151dd93dd5229e | /cpp/Part02/chapter04/Construct.cpp | a01e84ed27d74cc1f5671883000cabddefb17695 | [] | no_license | AhnWoojin-sys/Cstudy | d803dea90af5053827ce96f4f5c54ab735bc59f6 | c0bf51d0b4c082a919d02ff63759e549876c39f6 | refs/heads/main | 2023-01-31T17:43:35.906167 | 2020-11-17T10:32:11 | 2020-11-17T10:32:11 | 308,801,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | cpp | Construct.cpp | #include <iostream>
using namespace std;
class SimpleClass{
private:
int num1;
int num2;
public:
SimpleClass();
SimpleClass(int n1, int n2);
void ShowMembers();
};
SimpleClass::SimpleClass(){
num1 = 100;
num2 = 200;
}
SimpleClass::SimpleClass(int n1, int n2){
... |
9b83298189e17a6f14e8abe120432e172f4f5904 | 03220a7e03aff025b4b56fe0917877a7b6ceca69 | /code forces/688/C.cpp | 525cc4659c1916fba8725c8a080b4482e3b520a5 | [] | no_license | kaestro/algorithms_v2 | 8cce9f29b6a7d965e3dfd8a43616875168dff07f | 0659c00d087456b5c46092d14e1ff6982855cb73 | refs/heads/master | 2021-03-28T10:08:37.160829 | 2021-03-18T04:50:05 | 2021-03-18T04:50:05 | 247,856,011 | 0 | 0 | null | 2020-04-26T10:32:22 | 2020-03-17T01:54:42 | Python | UTF-8 | C++ | false | false | 4,236 | cpp | C.cpp | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;
class Points {
public:
Points(int num, int matSize) {
this->num = num;
pointsByRow = vvi(matSize);
pointsByCol = vvi(matSize);
pointsCnt... |
dd7411188a05d943d4a004c6c799142de3a8b5c8 | 17019d2108dc261bd6249425b4d57b1d4a56a3de | /GameMario/05-ScenceManager/IntroBackgroundSuper.h | 3b7bba223b8d011e0ad42bc61e07ef446c385cfc | [] | no_license | ducnpdev/gameSuperMario | 3b10662ffe4c6dc203a7562adde3539052384d2e | 7ae2c8452853e9d095046ca083b6cdc0e8eae862 | refs/heads/master | 2023-02-15T00:49:30.448549 | 2021-01-14T16:06:16 | 2021-01-14T16:06:16 | 321,370,113 | 1 | 0 | null | 2020-12-20T05:10:43 | 2020-12-14T14:17:37 | C++ | UTF-8 | C++ | false | false | 495 | h | IntroBackgroundSuper.h | #pragma once
#include "GameObject.h"
#include "Define.h"
#include "Utils.h"
#include "BrickFloor.h"
#include "IntroPlayerSecond.h"
class CIntroBackgroundSuper : public CGameObject
{
int type;
int breakPosY;
DWORD initTime;
public:
CIntroBackgroundSuper(int type, int breakPosY);
virtual void Update(DWORD dt, vector... |
deb463b936032d2ae6bc25a9cf6d7c2a5f9d05e4 | 518948e597be42fef377ccb7f18bd5957b0e2b37 | /src/test-scene-2.hpp | b752585286f674049c89e045bc5924558d4a2dcd | [] | no_license | forenoonwatch/new-engine | 11c20e1e75ecdc0e0f0f8a5f9ddc6f74061d0de7 | 090c3d36a3d47e0790151f8f8e25524f54e1c1c2 | refs/heads/master | 2023-08-18T22:17:19.613707 | 2021-10-12T15:51:14 | 2021-10-12T15:51:14 | 415,331,235 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | hpp | test-scene-2.hpp | #pragma once
#include "scene.hpp"
#include "gamecs/renderable-mesh.hpp"
#include "terrain/water.hpp"
class SpinSystem : public BaseECSSystem {
public:
SpinSystem(GameRenderContext& rc)
: BaseECSSystem()
, counter(0)
, rc(rc) {
addComponentType(TransformComponent::ID);
addComponentType(Renderable... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.