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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dcf03c9d728311d88d5f2c314fd17179391a17ad | a4817b1ce991a6caa5238c6e1ef99122f641132e | /skia/include/encode/SkWebpEncoder.h | 8d894a442ce7071185e644248a895ef30c07505a | [
"BSD-3-Clause"
] | permissive | muzammilhussnain14/Drawings | 56ee9aa7260bdafb5cf28d77d220fcac81f8f630 | 03fd3ff9aa33152d8b36be2affd903aac0990e2d | refs/heads/master | 2020-04-11T20:45:14.503946 | 2018-05-30T10:35:45 | 2018-05-30T10:35:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,141 | h | SkWebpEncoder.h | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkWebpEncoder_DEFINED
#define SkWebpEncoder_DEFINED
#include "SkEncoder.h"
class SkWStream;
namespace SkWebpEncoder {
struct SK_API Options {
/**
... |
1a30a8754c587b2cd2edff61ad4304d5c08dff3c | 8deddd66b422e0871e1f9856437a08d9c754c11d | /Solovyeva-AK/2 курс 1 семестр/Задача F/stack.h | c501b8d552e943366b0e67efe5fa26ab75eefc92 | [] | no_license | sergadin/109-2020 | f8c581526d4f2f0ba32d07aa7420b64726337b69 | c316e4cf88587bae84898c4279c91edbf25e95ce | refs/heads/master | 2023-04-07T20:07:57.448314 | 2023-03-29T19:14:07 | 2023-03-29T19:14:07 | 249,476,738 | 1 | 10 | null | 2023-03-29T19:31:52 | 2020-03-23T15:57:57 | C++ | UTF-8 | C++ | false | false | 6,395 | h | stack.h | #include <cstdio>
#include <iostream>
#include <math.h>
using namespace std;
template<typename T>
struct list_item{
list_item<T> *next;
T data;
};
template<typename T>
class stack {
private:
//list_item<T> *topElem_;
public:
list_item<T> *topElem_;
class Iterator {
... |
8fab76a63f1578818c65e0c8cbd559b7f9aa09c7 | 7118b25865c8722f1882b19d3ac2661a7314bda9 | /runtime/mini_db_backend.h | 2be26de46ffe1e089aff729b0b8e9647c8fd4a5a | [
"LLVM-exception",
"Apache-2.0"
] | permissive | sillycross/PochiVM | 8e6fb2130502a4be38d87ccccf926ae8b3a8e04c | 2e99da4cbd9b072726ab186f4171866aeef41b88 | refs/heads/master | 2023-07-23T12:41:05.110850 | 2021-09-09T02:35:23 | 2021-09-09T02:54:46 | 262,000,073 | 71 | 7 | null | 2021-07-13T07:47:31 | 2020-05-07T08:57:00 | C++ | UTF-8 | C++ | false | false | 8,713 | h | mini_db_backend.h | #pragma once
#include "pochivm/common.h"
#include "pochivm/global_codegen_memory_pool.h"
#include "pochivm/pochivm_function_pointer.h"
namespace MiniDbBackend
{
enum TpchTableName
{
TPCH_CUSTOMER,
TPCH_LINEITEM,
TPCH_NATION,
TPCH_ORDERS,
TPCH_PART,
TPCH_PARTSUPP,
TPCH_REGION,
TPCH_SU... |
234b72d1d10b091063cbdb874ad4c6cb1f8c548b | 8161aad70aa98da3694e6b0b0e17f87a7070bdbb | /Space Invaders/main.cpp | c656668517e873a55cd461407a668e676f652737 | [
"MIT"
] | permissive | christytom007/Space_Invaders | b6974dc5c8d6e6256cb234b506ad71ecd51d7ee1 | 9d0efffdda7b22557dc64f2953637d8b0e903171 | refs/heads/master | 2022-11-18T06:12:21.611573 | 2020-07-10T18:43:48 | 2020-07-10T18:43:48 | 210,430,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,756 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <string>
#include "UIKit.h"
#include "Menu.h"
#include "Game.h"
using namespace std;
void Help() { //Help Menu
string line;
ifstream gameLogo("gameLogo.txt"); //Opening Game Logo file
system("CLS");
UIKit::frame(0, 0, 118, 28, COLOR_BRIGHT_PURPLE); //creating a fr... |
356af86e0f0d43a6497bc7460f1d90655830291a | f240af0676b1fe47d88864390cd929fc72eff812 | /ClionProj/drawers/shaderdrawable.h | d2046740e9610bd7128cd899f5d3e91183e3d585 | [] | no_license | zhou-peter/GrblHost | 7efebf8c0d009bda1390f14cb1fd7f03b1f29954 | 8a22d759a2ab17485b8b5fabe23303dcc02c9e09 | refs/heads/main | 2023-04-30T15:45:18.306192 | 2021-05-26T02:22:32 | 2021-05-26T02:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,481 | h | shaderdrawable.h | #ifndef SHADERDRAWABLE_H
#define SHADERDRAWABLE_H
#include <QObject>
#include <QOpenGLFunctions>
#include <QOpenGLShaderProgram>
#include <QOpenGLBuffer>
#include <QOpenGLVertexArrayObject>
#include <QOpenGLTexture>
#include "utils/util.h"
#define sNan 65536.0
struct VertexData
{
QVector3D position;
QVector... |
8d5f3478b9ac824d2d1ea26f96d7ab3be7a2c3c7 | 9e600d25ae1b2d17c1be4030a5fa04547dffeff5 | /DrawSquare.cpp | be48a254233d562e0161853d3d70402a23e6923c | [] | no_license | vsg2608/OpenGl-RayTracer | cfc87041a40b33658b954d660c72c4186b1f80c2 | 5cd9df2a39fc15a3bfa696ef77c57d7085074ef9 | refs/heads/master | 2020-03-07T04:42:21.198070 | 2018-03-29T10:34:06 | 2018-03-29T10:34:06 | 127,273,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | DrawSquare.cpp | #include<GL/gl.h>
void drawSquare(){
glColor3f(1.0f, 0.0f, 0.0f);
glBegin(GL_QUADS);
glVertex3f(0.75f, 0.75f, 0.75f);
glVertex3f(0.75f, -0.75f, 0.75f);
glVertex3f(-0.75f, -0.75f, 0.75f);
glVertex3f(-0.75f, 0.75f, 0.75f);
glEnd();
glColor3f(0.0f, 0.0f, 0.0f);
}
|
b5ec7f8c032bf6dc22e1eb474c834a0b0eb4390f | f4618ea1b3f25504fc17217f8003ca9ee0ac5132 | /unit_tests/main.cpp | 12e943955dbb7042e0dafbca6c0097f9831bdcee | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | AudioProcessingFramework/apf | 5da2282da990bc5917d7bce2165a03f1671a365b | 1efdfcbc223c0bcbc16dbdcf826748a1837f0c87 | refs/heads/master | 2023-06-07T15:29:12.309629 | 2023-05-31T18:42:02 | 2023-05-31T18:42:02 | 11,150,395 | 31 | 10 | NOASSERTION | 2023-04-12T10:04:09 | 2013-07-03T12:29:50 | C++ | UTF-8 | C++ | false | false | 295 | cpp | main.cpp | // This is the main file for all unit tests using CATCH.
//
// The tests are compiled and executed with "make", further tests can be
// added in the Makefile.
//
// See also: https://github.com/philsquared/Catch/blob/master/docs/tutorial.md
#define CATCH_CONFIG_MAIN
#include "catch/catch.hpp"
|
bcc2a55993c09efc1e30f6fb60f04b9bbd066205 | a0ae5a53fe0d178047e085525d3e0f28ac864063 | /header/util/helper.h | 54281a5f2912c65ca74ab650444f8c4cfd233d32 | [
"WTFPL"
] | permissive | rebider/mt4-expander | 1680e6f35e61b8c7980b9b1dde6604ceb9f6183d | 446fb1a7672609c9a775669eff90447422fed4f7 | refs/heads/master | 2021-08-23T03:22:37.589444 | 2017-12-02T21:49:24 | 2017-12-02T21:49:24 | 119,948,846 | 1 | 0 | null | 2018-02-02T07:36:27 | 2018-02-02T07:36:27 | null | UTF-8 | C++ | false | false | 1,265 | h | helper.h | #pragma once
#include "expander.h"
#include <istream>
uint WINAPI GetBoolsAddress(const BOOL values[]);
uint WINAPI GetIntsAddress(const int values[]);
uint WINAPI GetDoublesAddress(const double values[]);
int WINAPI GetLastWin32Error();
BOOL WINAPI IsStdTimeframe(int tim... |
7d8796cdbd45d8ae5b66fe650d04c598dcbcb9e7 | 9879964c25f9a6f9ee4a94976d93b2f0ca268b5e | /200324_Shape/ConsoleApplication1/Rectancle.h | f06a74ea5292c5df8373124fd8012bda064efcaf | [] | no_license | HYEONe2/ComputerGraphics | f0fa9c499e403d299c18673ea819f1c114f634d1 | fa2307928b107d1f0d005847f367cc51ff6b087a | refs/heads/master | 2022-11-12T21:43:11.259618 | 2020-07-04T13:15:54 | 2020-07-04T13:15:54 | 267,822,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 247 | h | Rectancle.h | #pragma once
#include "Shape.h"
class CRectancle
: public CShape
{
public:
CRectancle();
CRectancle(float fX, float fY, float fW, float fH);
~CRectancle();
public:
virtual void Draw() const;
private:
float m_fW = 0;
float m_fH = 0;
};
|
abe16ccfab4c252f5b088851f384f791bd47bca8 | c60eff5cd42a85b7513898129d882207591f70f7 | /unittests/serialisation_test.cpp | deea2238b303039d0e8f9e2fa749fb6ef61789c0 | [] | no_license | lysevi/yaaf | 7596096776b20a276c698b45b891b09d72ebc361 | 6a2a3ef3f9a9aa2d69dbbbf14a4c0e0d0f0f4556 | refs/heads/master | 2020-04-16T13:56:50.498833 | 2019-04-09T13:30:13 | 2019-04-09T13:30:13 | 165,648,974 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,631 | cpp | serialisation_test.cpp | #include "helpers.h"
#ifdef YAAF_NETWORK_ENABLED
#include <libdialler/message.h>
#include <libyaaf/context.h>
#include <libyaaf/network/queries.h>
#include <libyaaf/serialization/serialization.h>
#include <libyaaf/utils/utils.h>
#include <numeric>
#include <algorithm>
#include <catch.hpp>
using namespace yaaf;
using n... |
b612fabbec780383a8c359b8942f1df7cafac7a7 | aae5e68bb01912d13f8117f3a50b39a9f8f9b1ed | /EngineBase/Camera.hpp | 4b45011ecdf8bc72f2f47768cb21c9c3fe86f6ec | [] | no_license | Ekozmaster/OpenGL-GLFW-Engine | 4b68ed1ad6e56cd7adc0e60ef24d8fa34da5d52b | 6422fcd97bbebcf6eec1a28cd2bc126ac3d242bc | refs/heads/master | 2020-04-05T13:40:07.721505 | 2017-07-02T15:29:15 | 2017-07-02T15:29:15 | 94,956,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 907 | hpp | Camera.hpp | #ifndef CAMERA_HPP
#define CAMERA_HPP
#include"Vector3.hpp"
#include"Behaviour.hpp"
#include"Input.hpp"
class Camera : public Behaviour{
public:
Vector3 eyePose;
Vector3 pivotPoint;
Vector3 upDirection;
Camera(Vector3 eye, Vector3 refPos, Vector3 upPose);
Camera();
... |
fd9133c6cdba482f3b22ac216453811a2848a3e7 | 7310f875853f0acef9fd767ba115141323db1fed | /OpenGlMinecraft/OpenGlMinecraft/Chunk.cpp | a67c4530315193a71ad2f322304acb0702cfd00c | [] | no_license | PatrykDemussMielczarek/MGL | b284d25c4892e80c2bf367987cdcbad73cf23a20 | 7dfcd5789ed92ea5120a567ec818c7f745e7b70c | refs/heads/master | 2020-04-10T14:45:59.033625 | 2018-12-10T00:54:07 | 2018-12-10T00:54:07 | 161,086,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,122 | cpp | Chunk.cpp | #include "stdafx.h"
#include "BlocksObjects.h"
#include "Chunk.h"
Chunk::Chunk()
{
for (int y = 0; y < ChunkSizeY; y++) {
for (int x = 0; x < ChunkSizeX; x++) {
for (int z = 0; z < ChunkSizeZ; z++) {
if (y < 64) {
ChunkBlocks[x][y][z] = BlocksObjects(ID_GrassDirt);
}
}
}
... |
ff56ee86adf5318ea184563c04c70011d4e16eca | 7fdd32699d708ce210b9cffb6108791121431af3 | /My_SenderApp1/SenderApp.cpp | 702e9a0b5e0245b3c99657142bec35062059150f | [] | no_license | AlexLai1990/P2P-Socket-based-communication-Channel | aa2ad1a1c65f7f459ba0458778da55d00d41c18f | 9d6adb5621e8e8846123ed18e06bc8f3a233ff77 | refs/heads/master | 2021-01-25T04:52:42.579693 | 2014-12-11T22:24:00 | 2014-12-11T22:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,362 | cpp | SenderApp.cpp | /////////////////////////////////////////////////////////////////////
// SenderApp.cpp - Demonstrates simple use of SocketCommunicator //
// Sends messages to ReceiverApp //
// ver 2.1 //
// Language: Visual C++, 2008 ... |
30dbeaad563dbf759155a793e799a0b1f8b66696 | 724c0ee36c0e6262f143d965f2e5f894a31cbb16 | /c,c++/euler/euler32.cpp | 0af4390e70cdbe770ac682c00a89a2c0adb26b35 | [] | no_license | amit-mittal/Programming-Questions-Practice | bf5fe47ba1b074960ad33eb2e525baaf99a85336 | 899995ff49cdf1ef77cc9327feb2fbed7b5c94fe | refs/heads/master | 2021-09-04T15:27:52.569111 | 2018-01-19T21:03:31 | 2018-01-19T21:03:31 | 117,618,138 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 838 | cpp | euler32.cpp | #include<iostream>
using namespace std;
int product(int n)
{int q,p=1,r,f=0;
q=n;
while(q>0)
{
r=q%10;
p=p*r;
q=q/10;
++f;
}
return p;
}
int digit(int n)
{int q,p=1,r,f=0;
q=n;
while(q>0)
{
r=q%10;
p=p*r;
q=q/10;
++f;
}
return f;
}
int sum(int n)
{int q,p=0,r,f=0;
q=n;
while(q>0)
{
r=q%10;
p=p+r;
q=... |
432e5d657539a8fdce9c27cb3165e76118171caa | a1e5bf687cebdff23fa991e36e1a0003b46deba1 | /MazeGame_Project/Source/Labirynt/LabiryntCharacter.h | 1a1fbf0dd944f201cc64972453c244d8d7ecc4c7 | [
"MIT"
] | permissive | MateuszKapusta/MazeGame | 17deb69396a75fc7026d55680aadaefc1a6122f8 | 58cd7b62dc801cc59decaf604349fb6c4928ab88 | refs/heads/master | 2020-04-08T07:41:36.074486 | 2018-12-09T11:44:55 | 2018-12-09T11:44:55 | 159,148,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,818 | h | LabiryntCharacter.h | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "GameFramework/Character.h"
#include "LabiryntCharacter.generated.h"
UCLASS(config=Game)
class ALabiryntCharacter : public ACharacter
{
GENERATED_BODY()
/** Camera boom positioning the camera behind the character */
UPROPERTY(Visibl... |
1dc361f7e9db15593180132b42fd7de7bd424109 | 20c9c11b8400c6605d869c84e69c41c5faa3f260 | /blmarket/2016/hackercup-qual/d.cc | def9202119a86c0f46f420e4a977dfb70b0befdf | [] | no_license | blmarket/icpc | 312ea2c667ec08d16864c1faa6fe75d3864dedbe | febfc2b758b7a4a4d6e5a6f05d24e3a964a3213a | refs/heads/master | 2021-07-23T20:20:19.780664 | 2021-05-15T13:39:04 | 2021-05-15T13:39:04 | 4,029,598 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,313 | cc | d.cc | #include <iostream>
#include <sys/wait.h>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <sstream>
#include <numeric>
#include <iterator>
#include <queue>
#include <set>
#include <map>
#include <vector>
#define mp make_pair
#define pb push_back
#define sqr(x) ((x)*(x))
#define foreach(it,c) for(typeo... |
304bd9f4e625a788850046e9cd01664574921628 | ee33b4ab65c8840cf37c4acb3037ea66dde12d91 | /test/backup/snapshot_instance.h | 12730b786eb089c7f36aa0c671e4bf32fbcbc6b8 | [
"Apache-2.0"
] | permissive | opencurve/curve | 36339c6377e7ac45ad2558d5cb67417b488094b4 | 6f5c85b1660aeb55d5c08e3d1eb354949ab7567a | refs/heads/master | 2023-08-31T04:52:54.707665 | 2023-08-05T14:04:44 | 2023-08-15T11:46:46 | 276,365,255 | 2,099 | 540 | Apache-2.0 | 2023-09-14T15:33:46 | 2020-07-01T11:57:25 | C++ | UTF-8 | C++ | false | false | 2,962 | h | snapshot_instance.h | /*
* Copyright (c) 2020 NetEase 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... |
ee24265b4cb1b4300fc29990cbb9bae63b2e50f5 | 56411cb7c898f7d24472d756c6bad68ab4108bdb | /RecordPlayerSoftWare/CDXGraph.h | c8801cf55e3fabc032cd14fe6d3a3085122434bf | [] | no_license | radtek/RecordPlayerSoftWare | 9424fb01237534fd6157450f3b1b3bfe9b3b35be | d69f4919a363321296d5f3e9df99623773877bd2 | refs/heads/master | 2020-06-08T21:44:32.421022 | 2017-03-23T02:50:53 | 2017-03-23T02:50:53 | 193,311,784 | 1 | 1 | null | 2019-06-23T05:54:17 | 2019-06-23T05:54:16 | null | GB18030 | C++ | false | false | 4,718 | h | CDXGraph.h | //
// CDXGraph.h
//
#ifndef __H_CDXGraph__
#define __H_CDXGraph__
#include <..//BaseClass//streams.h>
// Filter graph notification to the specified window
#define WM_GRAPHNOTIFY (WM_USER+20)
#include <initguid.h>
//3C78B8E2-6C4D-11D1-AEE2-0000F7754B98
DEFINE_GUID(CLSID_AACParser,0x3C78B8E2, 0x6C4D, 0x11D1, 0xAE, 0xE... |
d425f318751630805e65bfce2593ea859c19c273 | 00e20b210f3ae6d5c9ed2d724073c764a810551e | /FALL2019/game_programming_using_C++/stack_assignment_answer.cpp | fd279391b95a0b7bfcae003405726560da285a3d | [] | no_license | leventalbayrak/Levent_Development | 50c5d63dc0033fdadbfa7fa96465f4aa431979a2 | fd81cab83ada44a78b2e861b2e291e35fad16185 | refs/heads/master | 2021-06-17T04:42:16.815025 | 2021-02-28T08:04:54 | 2021-02-28T08:04:54 | 148,730,369 | 5 | 28 | null | 2018-10-28T19:40:54 | 2018-09-14T03:24:16 | C | UTF-8 | C++ | false | false | 1,089 | cpp | stack_assignment_answer.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#pragma warning(disable:4996)
namespace Stack
{
struct Stack
{
int n_data;
int array_size;
char *data;
};
}
namespace Stack
{
void init(Stack *s, int array_size)
{
s->n_data = 0;
s->array_size = array_size;
s->data = (char*)malloc(sizeof(cha... |
2afb8a6f230b735b039f4dadc7185be2be41881f | 041dccc25a60f4db7835e252e988accfb4e9c11d | /src/WaterHeightShader.cpp | db1356acb44bf8890d2be619dcfa7d84419df464 | [] | no_license | munro98/LandscapeWorld | d4bcf4e2db48d2283008c0b293eb61ff1ebbb18e | 4a095f11d4e5b6f1dc84837beb6785f67ab555d3 | refs/heads/master | 2020-12-30T11:27:39.716381 | 2018-01-26T05:25:05 | 2018-01-26T05:25:05 | 91,554,586 | 0 | 0 | null | 2017-06-20T06:02:47 | 2017-05-17T08:50:38 | C | UTF-8 | C++ | false | false | 1,287 | cpp | WaterHeightShader.cpp | #include "WaterHeightShader.hpp"
WaterHeightShader::WaterHeightShader(std::string name) : WaterHeightShader(name, name)
{
//getAllUniformLocations();
}
WaterHeightShader::WaterHeightShader(std::string name, std::string fragName) : Shader(name, fragName)
{
getAllUniformLocations();
}
WaterHeightShader::~WaterHeight... |
66c800f05f66ae83b130065653f0af3b353eaf61 | bbb9236f374b8a055b4404f0403ae204a8e55978 | /shadercache.h | 24c1fc0f8083cfa13b2a345c0a6d6de736751c04 | [] | no_license | stesim/vulkan-test | 8b091b28b2c751eded0a6f1c96b8177674c81507 | 8daccbb3ef15c31b2076f433dd3dd20f35435304 | refs/heads/master | 2021-07-18T22:39:39.497664 | 2017-10-26T22:44:58 | 2017-10-26T22:44:58 | 107,979,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 776 | h | shadercache.h | #ifndef SHADERCACHE_H
#define SHADERCACHE_H
#include "common.h"
#include "shader.h"
#include <vulkan/vulkan.h>
#include <unordered_map>
#include <string>
class ShaderCache
{
private:
typedef std::unordered_map<std::string, Shader*> map_type;
public:
ShaderCache( Renderer& renderer );
~ShaderCache();
void destr... |
0df30976afc9bc8bbbe10b8c2d23b250bae7dd7b | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /tools/clang/blink_gc_plugin/tests/class_requires_trace_method.h | 6e283a13a0c63649b8c10b734e832a202d7eab22 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 1,095 | h | class_requires_trace_method.h | // Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CLASS_REQUIRES_TRACE_METHOD_H_
#define CLASS_REQUIRES_TRACE_METHOD_H_
#include "heap/stubs.h"
namespace blink {
class HeapObject;
class PartObject {
DISALLOW_NE... |
105165a80ce6605bbc178cc9611c31dc8acd4d1c | c8f59dc8b723e56301d37670bb706435031d8fdc | /第88课/字母大小写转换.cpp | 919bd371342ba6e6d4131f3eb41f9199189d4de1 | [] | no_license | luomu123/github. | 92ab5300f1010f2365ce26820dd71fbec5b35ccd | 5cdb044fc0656bc625f19a5290f47500c5fd9b1c | refs/heads/master | 2020-06-21T07:11:53.049926 | 2019-07-17T11:21:58 | 2019-07-17T11:21:58 | 197,378,645 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 307 | cpp | 字母大小写转换.cpp | #include <Windows.h>
#include <iostream>
using namespace std;
int main(void){
char x;
cout << "ÇëÊäÈëÒ»¸ö×Ö·û: "<<endl;
cin >> x;
if( x >= 'a' && x <= 'z'){
x = x - 'a' + 'A';
}else if(x >= 'A' && x <= 'Z'){
x = x - 'A' + 'a';
}
cout << x <<endl;
system("pause");
return 0;
} |
82d67bd36072eef9cd16299654936e3eb706f58d | d7db098f4b1d1cd7d32952ebde8106e1f297252e | /AtCoder/soundhound2018/a.cpp | 451de3eed02dd3d8f0e1e3f6773d95f86b56928b | [] | no_license | monman53/online_judge | d1d3ce50f5a8a3364a259a78bb89980ce05b9419 | dec972d2b2b3922227d9eecaad607f1d9cc94434 | refs/heads/master | 2021-01-16T18:36:27.455888 | 2019-05-26T14:03:14 | 2019-05-26T14:03:14 | 25,679,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 831 | cpp | a.cpp | // header {{{
#include <bits/stdc++.h>
using namespace std;
// {U}{INT,LONG,LLONG}_{MAX,MIN}
#define INF INT_MAX/3
#define LLINF LLONG_MAX/3
#define MOD (1000000007LL)
#define MODA(a, b) a=((a)+(b))%MOD
#define MODP(a, b) a=((a)*(b))%MOD
#define inc(i, l, r) for(long long i=(l);i<(r);i++)
#de... |
6daafb587dbbb05cbc8afc4e2d9af3b5facaf689 | f06d8494186be9271e65d256680a60a143c3c595 | /src/Game.cpp | 8d8da77028e04160f4348b6dfbd4ed8936ac9050 | [] | no_license | Rosalila/IrrlichtTuto | 4903632ccb905d705ffc3515940ccb42385e61d4 | 82982883e28086de6101c396c95638b4335187ad | refs/heads/master | 2021-01-16T20:55:34.202073 | 2012-04-21T17:35:41 | 2012-04-21T17:35:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,952 | cpp | Game.cpp | #include "../include/Game.h"
Game::Game()
{
receiver=new InputReceiver();
painter=new Painter(receiver);
entidades.push_back((Entity*)new EntityBackground("images/bg.png",painter,receiver));
vector<stringw>up;
up.push_back("images/char/up/1.png");
up.push_back("images/char/up/2.png");
vec... |
f6a3c57851da6607b1880ea4bb4a231fd390b737 | 3d144a23e67c839a4df1c073c6a2c842508f16b2 | /lib/Serialization/SerializedModuleLoader.cpp | 8a6bebc374891815f37133e87ec4a0fa0f8321d7 | [
"Apache-2.0",
"Swift-exception"
] | permissive | apple/swift | c2724e388959f6623cf6e4ad6dc1cdd875fd0592 | 98ada1b200a43d090311b72eb45fe8ecebc97f81 | refs/heads/main | 2023-08-16T10:48:25.985330 | 2023-08-16T09:00:42 | 2023-08-16T09:00:42 | 44,838,949 | 78,897 | 15,074 | Apache-2.0 | 2023-09-14T21:19:23 | 2015-10-23T21:15:07 | C++ | UTF-8 | C++ | false | false | 67,255 | cpp | SerializedModuleLoader.cpp | //===--- SerializedModuleLoader.cpp - Import Swift modules ----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
a54f744ca127fad1b030cdaa9c7689cbf587b07e | e1700081b3e9fa1c74e6dd903da767a3fdeca7f5 | /libs/post/post3d/datamodel/post3dwindowparticlesbasetopdataitem.h | ead0efd2b6e747011a63332b57516bd082831244 | [
"MIT"
] | permissive | i-RIC/prepost-gui | 2fdd727625751e624245c3b9c88ca5aa496674c0 | 8de8a3ef8366adc7d489edcd500a691a44d6fdad | refs/heads/develop_v4 | 2023-08-31T09:10:21.010343 | 2023-08-31T06:54:26 | 2023-08-31T06:54:26 | 67,224,522 | 8 | 12 | MIT | 2023-08-29T23:04:45 | 2016-09-02T13:24:00 | C++ | UTF-8 | C++ | false | false | 1,456 | h | post3dwindowparticlesbasetopdataitem.h | #ifndef POST3DWINDOWPARTICLESBASETOPDATAITEM_H
#define POST3DWINDOWPARTICLESBASETOPDATAITEM_H
#include "../post3dwindowdataitem.h"
#include <unordered_set>
class ColorMapSettingContainerI;
class Post3dWindowParticlesBaseScalarGroupDataItem;
class Post3dWindowParticlesBaseVectorGroupTopDataItem;
class Post3dWindowZon... |
ec4ab3a4972537981469967da7e56da14f608a59 | fd80e0f106b3a111d8f80d9e25459867e39c67e1 | /slSig/Impressao/docs/XPSCardPrinterSDK74099/samples/cpp/smartcard_singlewire_mifare/MiFare_Command.h | d3c3dc29ca3e6f4cbb35ec1211d065f232106854 | [] | no_license | VB6Hobbyst7/sig | b9575e4d0746dd9533a68ea51e46e64686fedf56 | 543433016cdf1acd16d2c664cbe776a468c4f443 | refs/heads/master | 2022-04-25T06:34:07.525579 | 2020-04-28T17:15:16 | 2020-04-28T17:15:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,089 | h | MiFare_Command.h | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Datacard Corporation. All Rights Reserved.
//
// construct mifare commands for duali reader.
//
// see "CCID_Protocol_spec_120224_.pdf"
////////////////////////////////////////////////////////////////////////////////
#pra... |
79ef05d6c9fe6d9642e5ee00fd672a4ecd9a0a77 | f0eff310257441dd50c7a1b116f5bbacaa6e1832 | /2811_cw3 version2/the_list.h | e1725d864e5e8b6354f9ee0a165bc79ec7e37c55 | [] | no_license | Zhangtianjian/2811-cw3 | 9ddd521769626c5b1244a8c26dd08b9544e51c26 | 41bb329e6d0d0bcb0e49b890232075e85043ca99 | refs/heads/main | 2023-02-02T13:45:23.618096 | 2020-12-21T13:12:57 | 2020-12-21T13:12:57 | 322,009,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,752 | h | the_list.h | #ifndef THE_LIST_BUTTON_H
#define THE_LIST_BUTTON_H
#include<QString>
#include<QLabel>
#include"the_button.h"
#include<iostream>
#include<QLineEdit>
using namespace std;
class The_List : public QObject{
Q_OBJECT
private:
QString qs;
string str;
QLabel *ql;
TheButton *the_button;
... |
c48e55fd6e8cd236474758fa8c58e5ee8757700f | fbec58fa85c55f9278a72829db65c4845a394ad3 | /Shiny/Materials/Phong.cpp | f1c0d53f5f67e003ed5ee829e8682b11dd5dfcf8 | [] | no_license | ekalchev/Shiny | 02da492a469f1c57e2b6962102c9346984bc8525 | d0e2355bd80d355ff142d36c945bb08fca417d7a | refs/heads/master | 2021-01-10T21:59:47.168543 | 2014-12-01T18:13:44 | 2014-12-01T18:13:44 | 27,392,665 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,376 | cpp | Phong.cpp | ///////////////////////////////////////////////////////////////////////////////
// File: Phong.cpp
// Author: Emil Kalchev
// E-mail: developer@engineer.bg
///////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Phong.h"
#include "Lambertian.h"
#include "Wor... |
0dec46df019a96cc92e54c64cd5406f5c6a3f13f | 701ed3a5699bb7fbd38d42d1df7534242aaaf348 | /C++/Practice_Pad/source/CH1_Arrays_Strings/compress_string.h | 165b385f7450e64335af1047d098e430f754104f | [] | no_license | ansoncoding/CTCI | ba4c0efe51f47d8723717e2c337d48170126f11f | 67ca302eac51c88a1811271f5c989cf06eac521d | refs/heads/master | 2022-10-12T10:47:18.171427 | 2022-10-07T23:35:32 | 2022-10-07T23:35:32 | 236,885,102 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 152 | h | compress_string.h | #ifndef COMPRESS_STRING_H // include guard
#define COMPRESS_STRING_H
#include <string>
using namespace std;
string compress_string(string s);
#endif |
f839a9c27c05d1577f6780b54e0414bfc117cd02 | 4eaa1af84de5d15a9cc323a10a2f777151b046d8 | /hw/HWOutputStepper.h | f166dc9611305ceb12a9dc38441754ada3b6c2d6 | [] | no_license | atraber/RaspExt | f748b3a7b9d4e03bd3fff546b33957b231df9647 | b5eaf582e1d932baa817052254091a18f206e398 | refs/heads/master | 2016-09-10T11:42:58.078042 | 2013-06-03T13:48:40 | 2013-06-03T13:48:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,747 | h | HWOutputStepper.h | #ifndef HWOUTPUTSTEPPER_H
#define HWOUTPUTSTEPPER_H
#include "hw/HWOutput.h"
// This implementation is built for amis 30624, it will not work for other stepper motor drivers
class HWOutputStepper : public HWOutput
{
public:
/** This structure contains the response to GetFullStatus1 and GetFullStatus2 from the ste... |
4c95f3588889551a4c0f4243f0e1af82a5a0f788 | 4be0dc811a3eb7cf1ccb8156b8977484076e90c1 | /src/NetworkHandler/patNetworkElements.h | d95794c94e97430b8307f9b855b1eccb2d7cd19e | [
"MIT"
] | permissive | idaohang/smaroute | 27980b191b8a926a42211f9fd47da9e5b19be938 | e2ccc9492dff54c8ef5c74d5309d2b06758ba342 | refs/heads/master | 2021-01-22T12:54:08.171216 | 2013-07-15T05:47:44 | 2013-07-15T05:47:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,927 | h | patNetworkElements.h | /*
* patNetworkElements.h
*
* Created on: Jul 20, 2011
* Author: jchen
*
* The class stores basic elements (nodes, arcs and ways) of the network.
* Nodes are points in the network.
* Arcs are straight lines connecting two nodes.
* Ways are a collection of arcs, defined by OSM.
*/
#i... |
3889ece5944ba60e655c29b204b66aa560c09f6d | 629ea92b06cf64588b68862ff46f64314788a840 | /transfer_parameters.cpp | 4c57f4677b9d91f69688bf16c0c6d99d51c72ac6 | [] | no_license | vera-el/DynamicMemory | c0b3241f87d0da55ebd76c1168ce8f041c28a64a | e86da720ec2b74ea20f3c8eafb15e9430cd26253 | refs/heads/master | 2023-03-06T03:40:55.876117 | 2021-02-15T17:25:05 | 2021-02-15T17:25:05 | 339,151,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339 | cpp | transfer_parameters.cpp | #include <iostream>
using namespace std;
void Exchange (int& a, int& b);
int main()
{
setlocale (LC_ALL, "Russian");
int a=2 , b =3;
cout << a << b << endl;
Exchange (a,b);
cout << a << b << endl;
}
void Exchange (int& a, int& b)
{
int buffer = a;
a = b;
b = buffer;
cout << a <... |
a7e781d8295cd4fdbaa359a60ed963dc0fd8e040 | 04fee3ff94cde55400ee67352d16234bb5e62712 | /10.1/P3372.cpp | 3c0a54839efea63ad01801b2df4ca891f57344de | [] | no_license | zsq001/oi-code | 0bc09c839c9a27c7329c38e490c14bff0177b96e | 56f4bfed78fb96ac5d4da50ccc2775489166e47a | refs/heads/master | 2023-08-31T06:14:49.709105 | 2021-09-14T02:28:28 | 2021-09-14T02:28:28 | 218,049,685 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,283 | cpp | P3372.cpp | #include<iostream>
#include<cstdio>
using namespace std;
#define mmm 500000
typedef int int_;
#define int long long
int a[mmm],d[mmm],b[mmm];
void build(int l,int r,int p)
{
if(l==r)
{
d[p]=a[l];
return;
}
int mid=(l+r)>>1;
build(l,mid,p*2);
build(mid+1,r,p*2+1);
d[p]=d[p*2]+d[p*2+1];
}
int getsum(int l,int ... |
38d82fc274774430a00f7509ad94631f0a3fc439 | 88b677b09cc3988f84ad4f50cbf0a14cfd5802ae | /IspaniaUpdate/DirectUI/include/base/base_Throwable.h | 7815f0eb9049d63e91987ceb9adba52bee485380 | [] | no_license | SixShoot/RomClient | 23f02c30b7cfc656ee29ff7a022d46c8011c07d7 | 9a8c2d6e4f11119e0dce2327cc9baefd4465f99f | refs/heads/master | 2023-05-07T01:04:20.512677 | 2021-05-21T19:55:17 | 2021-05-21T19:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,219 | h | base_Throwable.h | #ifndef MING_BASE_THROWABLE_H
#define MING_BASE_THROWABLE_H
#include <base/base_base.h>
#include <base/base_Format.h>
#if defined(__SYMBIAN32__) || defined(_WIN32_WCE)
#include <stdio.h>
#define BASE_NOEXCEPTIONS
#else
#define BASE_EXCEPTIONS
#endif
namespace base
{
/**
* Base class for all exceptions.
*
* @i... |
07a636a86d279eb94841b879bc0147a44d39fec6 | 0f8bae48866ae99a7b712df74c4ae75103f25eaa | /Content/z_funct.cpp | 9fc9acdf87de2cb6b19a7a47c41c6f72f7d6e3fb | [] | no_license | akjapesh/Algorithms_Library | 2c1657f0c66c96934a160d2ee68a5361f1c13850 | ae786407294d075c68b59f1844dc37dc2bc15ee8 | refs/heads/master | 2023-03-23T00:44:24.483617 | 2021-01-11T13:17:53 | 2021-01-11T13:17:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | z_funct.cpp | vector<int> getZarr(string str)
{
int n = str.length();
int L, R, k;
vector<int> Z(n);
L = R = 0;
for (int i = 1; i < n; ++i)
{
if (i > R)
{
L = R = i;
while (R<n && str[R-L] == str[R])
R++;
Z[i] = R-L;
... |
e9c7293c1f1988bb23fdee87440da9191103babf | 898aba0ba23c7bfb1af1c0857ad56c814a6d32ba | /CppExamples/OperatorOverloading/Functor/main.cpp | c8b63cc4e7869f98bc2186a4d4a34fedec0f1a40 | [] | no_license | andrewbolster/cppqubmarch2013 | 735d4bdefc4e2413969a5bb7a3480969549281fe | cb033fc22f5262daba9f542062d2d0ac40b38f4a | refs/heads/master | 2016-09-05T19:03:32.343921 | 2013-03-22T13:41:27 | 2013-03-22T13:41:27 | 8,875,864 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 761 | cpp | main.cpp | #include<iostream>
using std::cout;
using std::endl;
class Accumulator {
int total;
public:
Accumulator();
void add(int p1);
void operator()(int * p1);
int operator()();
};
Accumulator::Accumulator() : total(0){}
void Accumulator::add(int p1) {
total += p1;
}
void Accumulator::operator()(int * p... |
6d2fb447f2242322e55572120b0d5da56902bbbd | df92ce6faadc533921e1a5b8438ebdc998353282 | /include/Pyros3D/Core/Projection/Projection.h | 6385ff74cffe9a40814b0a06d5c4bfce20ecde63 | [
"MIT"
] | permissive | Peixinho/Pyros3D | 5bf00eb8dba80176941a4fe2cf112182707b95d9 | 59d1663c212fbb45cde3a87ac46f9ff40c6aaffa | refs/heads/master | 2022-04-30T22:48:11.057181 | 2022-04-26T16:31:37 | 2022-04-26T16:31:37 | 48,172,013 | 21 | 4 | MIT | 2021-05-30T22:26:36 | 2015-12-17T12:02:21 | C++ | UTF-8 | C++ | false | false | 849 | h | Projection.h | //============================================================================
// Name : Projection.h
// Author : Duarte Peixinho
// Version :
// Copyright : ;)
// Description : Projection
//============================================================================
#ifndef PROJECTION_H
#define PROJ... |
c9c4f80c1c2454486bc5ce68cf1da66e36f31296 | a54f08944e4f8746fba1a6b0832952be214c5745 | /sensor/sensor-node/lib/prod-dbg/ProductDebug.cpp | 62b3f18a2f625634b64c21dae6f7f0d511959cdd | [
"MIT"
] | permissive | ERNICommunity/wissifluh17 | 0f4c2101ae0743145c2de06c3366f91f0ad35597 | 68ebb8c9bb67d96add9e70125ba88fd28016fc74 | refs/heads/master | 2021-06-02T20:45:02.371110 | 2020-10-20T14:41:13 | 2020-10-20T14:41:13 | 101,489,278 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 954 | cpp | ProductDebug.cpp | /*
* ProductDebug.cpp
*
* Created on: 14.06.2016
* Author: nid
*/
#include "ProductDebug.h"
#include <Arduino.h>
#include <Timer.h>
#include <SerialCommand.h>
#include <DbgCliNode.h>
#include <DbgCliTopic.h>
#include <DbgCliCommand.h>
#include <DbgTraceContext.h>
#include <DbgTracePort.h>
#include <DbgTrac... |
c14166a3651ff57457ac06000671be136d632793 | 2db68c0259e08bd854e64f9281233bba11b2db75 | /src/ic3/build_prob/g0en_cnf.cc | e6ad322b02c16b211ee98e8f9a6dbc22d360481a | [
"BSD-3-Clause"
] | permissive | diffblue/hw-cbmc | 772bb8270912489c9ac1fe94db32aff949942f45 | 975052e23a122438855ea37228db904dc3363c4d | refs/heads/master | 2022-03-28T07:03:27.731963 | 2020-01-24T11:09:48 | 2020-01-24T11:09:48 | 89,927,379 | 17 | 7 | NOASSERTION | 2023-09-14T21:51:12 | 2017-05-01T13:43:59 | C++ | UTF-8 | C++ | false | false | 5,109 | cc | g0en_cnf.cc | /******************************************************
Module: CNF Generation (Part 1)
Author: Eugene Goldberg, eu.goldberg@gmail.com
******************************************************/
#include <iostream>
#include <set>
#include <map>
#include <algorithm>
#include <queue>
#include "minisat/core/Solver.h"
#in... |
3d758b20c2f1313d8601084a913c5d626cdcd953 | 7a1db830956f014eb502d3fe6256d9c69a6cc082 | /include/CommListenerBase.h | 7685871c3fe8f62bb000e15122b15e602b429ff4 | [
"MIT"
] | permissive | ndevel/TCP2COM | d61228eed9ef0ddfc25106bce81ffc0963819733 | 3ec58dd62900ec832f8b7b73df621ce2ec52c44c | refs/heads/master | 2023-07-20T05:00:25.430491 | 2019-06-28T19:21:49 | 2019-06-28T19:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | h | CommListenerBase.h | #ifndef COMMLISTENERBASE_H
#define COMMLISTENERBASE_H
#include <wx/thread.h>
class CommListenerBase : public wxThread
{
public:
virtual ~CommListenerBase(){}
virtual wxThread::ExitCode Entry() = 0;
virtual void SetBrock(bool setQuit) = 0;
protected:
CommListenerBase():wxThread... |
2ef8b9fe70b4a53eba26aaef0d6c0a6a168c8d77 | 1411b640a20453e45ba7d89a455223abb4e03b67 | /src/MsgEvt.cpp | 2a69866c2c46929c5799c472c802c6ed11e7851a | [] | no_license | brandon515/UnamedProject | dc32e031bacb0e71a4d293c7c31abda33e00cd17 | 5c031a4245557eac0e034f36ca984ef4c138bdfe | refs/heads/master | 2021-01-01T17:47:50.267646 | 2014-06-08T02:50:46 | 2014-06-08T02:50:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | MsgEvt.cpp | #include "MsgEvt.h"
Evt_MsgData::Evt_MsgData(std::string name, std::string outputStr)
{
time_t curTime = time(NULL);
struct tm curDate = *localtime(&curTime);
char buf[256];
sprintf(buf, "[%02d/%02d/%d %02d:%02d:%02d] [%s]", curDate.tm_mon+1, curDate.tm_mday, curDate.tm_year+1900, curDate.tm_hour, curD... |
69312814f6d72f15f1cdaf0355864df55219a596 | a4d1882e4614ae05b18e3775c19f35218b8cf417 | /include/jnet/listener/listener.h | 8415521ff031d7013535221924e2363dfab8ec74 | [] | no_license | Jerling/jserver | ef1f4f0463efc8d65d9f135700ee10484705c67e | 8b5b1c83fab743fa55148f2a47147f8030a70005 | refs/heads/master | 2020-07-25T17:32:28.287704 | 2019-09-16T23:32:51 | 2019-09-16T23:32:51 | 208,368,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,266 | h | listener.h | #ifndef __LISTENER_H_
#define __LISTENER_H_
#include "jbase/utils/utils.h"
#include "jnet/connect/connect.h"
#include "jnet/poller/poller.h"
namespace jnet {
namespace listen {
using Poller = poller::Poller;
using Connect = conn::Connect;
static const JS_INT32 Default_Event = EPOLLIN | EPOLLOUT | EPOLLERR;
static con... |
d6c7f54d63ecf60a487295462527ad61c78c5ed0 | 29af718d33105bceddd488326e53dab24e1014ef | /Experimentation/Investigations/RamseyTheory/VanderWaerdenProblems/plans/VanderWaerden_3-3-3-k.hpp | 80f9ca285d2679540471f0882dee472ef055a631 | [] | no_license | OKullmann/oklibrary | d0f422847f134705c0cd1eebf295434fe5ffe7ed | c578d0460c507f23b97329549a874aa0c0b0541b | refs/heads/master | 2023-09-04T02:38:14.642785 | 2023-09-01T11:38:31 | 2023-09-01T11:38:31 | 38,629 | 21 | 64 | null | 2020-10-30T17:13:04 | 2008-07-30T18:20:06 | C++ | UTF-8 | C++ | false | false | 5,960 | hpp | VanderWaerden_3-3-3-k.hpp | // Oliver Kullmann, 22.4.2009 (Swansea)
/* Copyright 2009, 2010 Oliver Kullmann
This file is part of the OKlibrary. OKlibrary 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 and included in this library; either ver... |
2494fcc0dd40f83d9f2cd48aeefa438ee66d7a24 | fa55836d92c1ae986713696be41e92c5db0aedf7 | /src/objMesh/objMeshRender.h | 3beafd4803ea616b8859066dda750d654ea0317b | [] | no_license | xyuan/VegaFEM_lib | a5378f2d23798dca00770aa70e5c86fc00fa0b27 | df51513a440bbb9a40fdb6af811f11f0301d985d | refs/heads/master | 2021-01-23T13:59:20.936673 | 2012-10-03T21:09:00 | 2012-10-03T21:09:00 | 9,563,030 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,271 | h | objMeshRender.h | /*************************************************************************
* *
* Vega FEM Simulation Library Version 1.1 *
* *
* "objMesh" library... |
96e6f1f46b95d73068ed5cafe2c0c42db6ee0fbe | 751147d1e5afadfb2f0406cfcc91a96c03a9a004 | /Bai_tap_c++/contest-for-olympic47.cpp | d467481ce4c37c6220b05b22732c0cd692a92b58 | [] | no_license | mrhung1999vnvn/Exercise_c- | 7d0ad9b1abc48fab81fcb6b89df636e65b4b5745 | e55719720b8f3bda515f3b8fef593e2dba6af1b2 | refs/heads/master | 2020-04-09T02:20:42.301330 | 2018-12-01T11:39:47 | 2018-12-01T11:39:47 | 159,937,292 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214 | cpp | contest-for-olympic47.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
while(cin>>n && n!=0){
map<string,int>m;
for(int i=0;i<n;i++){
string line,loai;
getline(cin,line);
istringstream iss(line);
}
}
}
|
533ad2ba82e8217e194a30c51b89cc2e004096b3 | 18b21c320faea62eea14cf33591e66fc37ea2bd0 | /BinaryTree/BinaryTree/BinaryTree.h | c213ff029ace3cb120eb4daa6fd6fb82b08ec360 | [] | no_license | KenNyBoris/Programms | eb74d78e456635157c8b431b82ac358ae79bf6e9 | dfbe105d2bf39075f55b876a746186c30cc728b3 | refs/heads/master | 2020-04-08T12:55:19.167888 | 2018-11-27T16:42:47 | 2018-11-27T16:42:47 | 159,367,279 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 610 | h | BinaryTree.h | typedef double znach;
struct node
{
znach key;
node *left;
node *right;
};
class binary_tree
{
private:
node *root;
void ForPrint(node *t);
void AddElement(znach el, node *&t);
void for_VievWayToMax(node *t);
public:
binary_tree();
bool IsEmpty();
znach Search(znach searchedKey, node *&... |
914a69ec2059684ea56a8dae8be8a7a37ce8821a | 82a2be8e2f9ee82aae96d0a82bf77aa1a4db3a46 | /plugins/Substance/Include/substance/source/user.h | 713a253eefafd92908f98c04b672fcf9edcd273e | [] | no_license | JoelWaterworth/Mice | 38d35d4a4e9f71b3f5288a8982d326b2c8bd50b4 | c19cf172ee0fe88c2dbdf9e72a8dbb3265b967b4 | refs/heads/master | 2021-09-14T04:04:38.670168 | 2018-05-08T03:42:10 | 2018-05-08T03:42:10 | 106,102,739 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,454 | h | user.h | //! @file user.h
//! @brief Substance Source User Object
//! @author Josh Coyne - Allegorithmic
//! @copyright Allegorithmic. All rights reserved.
//!
//! Represents a logged in User
#ifndef _SUBSTANCE_SOURCE_USER_H_
#define _SUBSTANCE_SOURCE_USER_H_
#pragma once
namespace Alg
{
namespace Source
{
/**/
typedef Shared... |
0565976560264f42214f26ab7bc7922ed847a205 | 47866ee6b2ad02ae47bda14464f9411f49dc7873 | /Decors/Rock.cpp | 8774da1ff5e8055a72d540764fa3669857ab1170 | [] | no_license | fcvalise/AnOctonautOdyssey | dec5cceacc95ace316dac71c3dffd675c035a345 | c129e49d0725a8a6fa15ea50d92b23d01a30ca34 | refs/heads/master | 2021-03-27T19:43:45.834875 | 2015-09-26T15:50:49 | 2015-09-26T15:50:49 | 34,060,941 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,719 | cpp | Rock.cpp | #include "Rock.hpp"
#include "ABiome.hpp"
#include "Tile.hpp"
#include <Application.hpp>
#include <ResourceManager.hpp>
#include <AudioManager.hpp>
#include "ResourceDefinitions.hpp"
Rock::Rock() :
m_partCount(1u),
m_animator(1.f, 0.f, 3.f, 0.1f),
m_animation(1.f),
m_sound(true)
{
}
void Rock::createOctogon(sf::V... |
6cfdc39950205ae6013eeb725ab23976fd871d45 | 184193a5394f2ec79165dc82771dc34f9f5f52c1 | /libs/src/TAITbase/TAITactNtuRaw.hxx | a52990a133508c0b9f98ea3b6ce3526e8764f1d7 | [] | no_license | cfinck67/FOOT | af4bbda24dfa868052b7ef8d88b8d81293bd5197 | f6d3bf8d7773607b4f745b1e447b15b61a547c82 | refs/heads/master | 2020-06-07T00:45:16.699881 | 2019-01-24T15:15:31 | 2019-01-24T15:15:31 | 192,883,802 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,202 | hxx | TAITactNtuRaw.hxx | #ifndef _TAITactNtuRaw_HXX
#define _TAITactNtuRaw_HXX
/*!
\file
\version $Id: TAITactNtuRaw.hxx,v 1.4 2003/06/09 18:17:14 mueller Exp $
\brief Declaration of TAITactNtuRaw.
*/
/*------------------------------------------+---------------------------------*/
#include "TAGaction.hxx"
#include "TAGdataDsc.hxx"
#incl... |
ff0a66273ac13da647d6abfcd5ec0d4522f92232 | 77de028452b5e9e2fc74fdf36afe0d3df4056d4f | /Test/UltraSonic_Motors.ino | a19ed5c2067e0b6db8e88c703d3f6521f40cea7f | [] | no_license | MattTucker22689/R2D2 | 6a4314939d1c0de9554cc21d974c77a694d1a210 | 05a07271e025c65420eec6138a3d126ac1af9c81 | refs/heads/master | 2021-07-07T16:32:21.455585 | 2018-05-28T02:43:09 | 2018-05-28T02:43:09 | 96,569,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,462 | ino | UltraSonic_Motors.ino | /*
Author:
Matt Tucker
Description:
This is a test of the motors and ultrasonic sensor. It will return the distance between the sensor
and an object in serial, as well as control the motors. The bot will now respond at a basic level to
its enviroment.
*/
//***UltraSonic***//... |
0dd7f895f3f00c1166c98416186190dd1bc603c8 | e9c349c0fb5bdc7907f8a211150293c3414eb68e | /NTupleTools/interface/NTupleMixedSimHits.h | 840d16b0bba27d7a09835150227c8d9f47ad45ad | [] | no_license | sergojin/SLHCL1TrackTriggerSimulations | 606ce278f2c0f0eb054abede76140ef8ba9cba68 | 7540ce13ffa5af44878f07ba6f7a5a48f0192d0d | refs/heads/master | 2020-12-28T12:02:54.986645 | 2017-01-27T21:17:54 | 2017-01-27T21:17:54 | 46,527,031 | 0 | 9 | null | 2017-01-27T21:17:55 | 2015-11-19T23:37:10 | C++ | UTF-8 | C++ | false | false | 1,082 | h | NTupleMixedSimHits.h | #ifndef NTupleTools_NTupleMixedSimHits_h_
#define NTupleTools_NTupleMixedSimHits_h_
#include "SLHCL1TrackTriggerSimulations/NTupleTools/interface/NTupleCommon.h"
#include "Geometry/Records/interface/StackedTrackerGeometryRecord.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
class PSimHit;... |
ebcef3de1977a35004aed919b52c0c58474514e4 | c1e2a03d3404810fad75d63a2c8a2209b9894705 | /NacloEngine/MeshImporter.cpp | f725efe706bc3fd5394c68284c67f9bd0029240c | [
"MIT"
] | permissive | JoanValiente/NacloEngine | d053bda25dde67b6a0e3f639fc3d884dc1525413 | 44eb9901a9f5337d19f3fe3b5d061099ea4e7fa0 | refs/heads/master | 2020-03-28T23:46:39.959142 | 2018-12-23T23:06:03 | 2018-12-23T23:06:03 | 149,308,182 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,410 | cpp | MeshImporter.cpp | #include "MeshImporter.h"
#include "Assimp/include/scene.h"
#include "Assimp/include/postprocess.h"
#include "PanelInspector.h"
#include "Application.h"
#include "Globals.h"
#include "ModuleFileSystem.h"
#include "ModuleScene.h"
#include "GameObject.h"
#include "ComponentMesh.h"
#include "ComponentMaterial.h"
#includ... |
26ad3f1e19f9fc9d01d375f2e2c497d742bd4513 | 31f5cddb9885fc03b5c05fba5f9727b2f775cf47 | /thirdparty/physx/physx/source/physx/src/buffering/ScbConstraint.h | d947c293de395f8838c7c8a88ad3402325f0c287 | [
"MIT"
] | permissive | timi-liuliang/echo | 2935a34b80b598eeb2c2039d686a15d42907d6f7 | d6e40d83c86431a819c6ef4ebb0f930c1b4d0f24 | refs/heads/master | 2023-08-17T05:35:08.104918 | 2023-08-11T18:10:35 | 2023-08-11T18:10:35 | 124,620,874 | 822 | 102 | MIT | 2021-06-11T14:29:03 | 2018-03-10T04:07:35 | C++ | UTF-8 | C++ | false | false | 10,431 | h | ScbConstraint.h | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... |
de7819c30dc29eccb3e9852f65f999d3bfd3e089 | 2ec5bd42b4daf3d6ac632d4d2a1e906ae5e9fbf4 | /persistance/PersistanceEngine.cpp | 06705aeadf86aa6a1551ffe176cc268cd73f212b | [] | no_license | TheArtvertiser/TheArtvertiserCommon | 7fa7d2f80592d6c2aec8da156cf2f99e722b9672 | d2af6f647b9c0345682b74d0c8471825c7c679e5 | refs/heads/master | 2021-01-01T19:35:12.347916 | 2012-04-26T22:01:39 | 2012-04-26T22:01:39 | 2,136,698 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | PersistanceEngine.cpp | /*
* PersistanceEngine.cpp
*
* Created on: 19/04/2011
* Author: arturo
*/
#include "PersistanceEngine.h"
PersistanceEngine::PersistanceEngine() {
// TODO Auto-generated constructor stub
}
ofxXmlSettings & PersistanceEngine::artverts(){
static ofxXmlSettings * xml = new ofxXmlSettings("artverts.xml");
... |
15d5befe307a2d887c87ac98d0abfc7fd9541b79 | 4310036a12b24921c544b2272a9971af781c0151 | /src/util/point.hpp | 467abdb9ea26a36b6756c0c4cdb2fc1915b531a2 | [
"MIT"
] | permissive | tiagosr/pd-8 | 76a76af90cd4803d1008e996bcc318b99216f501 | 4911a82f399776731d3030234c731c15593f1910 | refs/heads/main | 2023-08-02T16:43:53.353024 | 2021-09-19T15:39:59 | 2021-09-19T15:39:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | hpp | point.hpp | #pragma once
#include <algorithm>
namespace util
{
struct Point
{
constexpr Point() = default;
constexpr Point(int x, int y) :
x(x), y(y)
{}
constexpr Point(const Point&) = default;
constexpr Point& operator=(const Point&) = default;
[[nodiscard]] constexpr Point max(Point other) c... |
3c56916678962d4b704eddbd4f5d55654ab48b23 | 40a696c004ad9477e5d7494f409ec7262b5bc12c | /system_timer_info.cpp | 0fe459752917f3052641c37be9ac363f0fcded40 | [] | no_license | delphisfang/StatusServer | 0a7aae5ab70f8f0836977d14e0f39812a868957a | 7ac5443e45f14795550b46572561241c87f84c3b | refs/heads/master | 2021-09-06T09:53:19.989426 | 2017-12-18T03:19:37 | 2017-12-18T03:19:37 | 112,442,012 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,486 | cpp | system_timer_info.cpp | #include "system_timer_info.h"
#include "statsvr_mcd_proc.h"
#include <algorithm>
using namespace statsvr;
#ifndef DISABLE_YIBOT_SESSION_CHECK
int YiBotOutTimer::do_next_step(string& req_data)
{
Json::Reader reader;
Json::Value data;
//LogDebug("req_data: %s", req_data.c_str());
if (!reader.parse(req_data, dat... |
02698511e9efedd76a51c92e5ca07064f182d66c | 1cc5deb61501e71c843cb46144f532e19d3c9417 | /PRUBALL.cpp | 105f441561b9494f079c149722a024990e16ac67 | [] | no_license | NilanjanaLodh/OnlineJudge | f6222b058a22314c0354a92abf345bd810e4b193 | 5fe48bebf03aaf0ebdc793db06e6ff52ea6af85d | refs/heads/master | 2020-05-22T01:32:06.737874 | 2016-10-29T10:47:58 | 2016-10-29T10:47:58 | 62,879,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,164 | cpp | PRUBALL.cpp | //problem URL : http://www.spoj.com/problems/PRUBALL/
// Nilanjana Lodh
// DP
#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
typedef vector<int> vi;
typedef vector<lli> vli;
const lli inf= 9000000000000;
const lli mod= 1000000007;
lli minimum(lli a, lli b)
{
if(a<b)return a;
return b... |
540f4797c7541ce95c72712f53fa676ccc034e63 | 86d6c3b6d3101e36835b06a720bcd3c9bc414ac0 | /UTC/LABORATOR 4/PROBLEMA1.cpp | b9c770e6f35632e980158c047f6dad72ca947038 | [] | no_license | efloare/CPP | 239a5337a8d1977bfb3310d89aae0e464e1b1819 | a72faf12b801bf1243ac16ed485b5d7ca4a6ce23 | refs/heads/master | 2021-01-10T12:28:20.952444 | 2016-04-05T23:26:08 | 2016-04-05T23:26:08 | 55,560,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 208 | cpp | PROBLEMA1.cpp | #include <iostream>
using namespace std;
void main()
{
int n;
int i;
cout << "introduceti <<n>> : ";
cin >> n;
i = 1;
while (i <= n)
{
cout << "Contor = " << i << endl;
i++;
}
system("pause");
} |
dfa86e15c2490a35a428d02e5285d653db57b966 | 423fd25117dbfdeb5d704fd9199d39151d197164 | /src/Object.cpp | 431c4c8ad21eac0b044d9bf4adc4345ae92ce656 | [] | no_license | nop90/Amphetamine | 98b9ed7bad1fd036a4e16ea610924b7aad8d71c7 | c464dc22572fb6f353216a5ea3ce5425d6a1c12a | refs/heads/master | 2020-12-02T20:59:03.433230 | 2017-07-07T10:03:54 | 2017-07-07T10:03:54 | 96,239,931 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,554 | cpp | Object.cpp | #include "Object.hpp"
#include "Appl.hpp"
#include "ConstVal.hpp"
#include <math.h>
enum {
kLeftTopCorner = 0,
kLeftBottomCorner = 1,
kRightTopCorner = 2,
kRightBottomCorner = 3
};
const double kCollisionThingDetectError = 3.0;
extern CApplication *gApplication;
extern CSystem *gSystem;
extern CLevel *gLeve... |
fb13f6d190632b85ca1965c75a36a9ded12a2516 | aa9c35a0332bfabed1c8184a145ecdd6daed4e5c | /main.cpp | e9cd3589b37e5fd107846b2643c70c318d6f8919 | [] | no_license | hameng/CPPUNIT_Lite | 46543615c493a2c875aa1774c3b757c9ed75f528 | 5271bde515c31f83c8db81ccd846cf86f045df71 | refs/heads/master | 2021-01-20T07:07:24.780834 | 2013-06-12T23:55:56 | 2013-06-12T23:57:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 790 | cpp | main.cpp |
#include "TestHarness.h"
#include "TestResultStdErr.h"
int main()
{
TestResultStdErr result;
//TestRegistry::runAllTests(result);
//return (result.getFailureCount());
//TestRegistry::runTestsbyFullName(result,"MyFixture","Test1");
///TestRegistry::runTestsbySuite(result,"MyFixture");
///TestRegistry... |
868b23d3373daff435d2f7591bccbeca96f09f34 | 4f0893333074ebad94334e35d70ffd6fca755405 | /Army/Sergeant.h | 567712bea9117d55910886dfded94beaabd47e43 | [] | no_license | kozinarov/OOP | ce519aebb994764c8c0cf5444e0e1d0e704afa80 | fcfd128c72bc1badf094e9de29551f76ff781770 | refs/heads/master | 2021-01-17T10:55:18.517766 | 2016-07-13T15:10:52 | 2016-07-13T15:10:52 | 63,102,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | h | Sergeant.h | #pragma once
#ifndef __Sergeant_HEADER__
#define __Sergeant_HEADER__
#include "Soldier.h"
class Sergeant : public Soldier
{
public:
Sergeant();
Sergeant(const char*, const int, const int, const int, const char*, const Soldier*, const size_t);
Sergeant(const Sergeant&);
Sergeant& operator=(const Sergeant... |
d17935d5bc449d4c89a2ec756df5019754cc7f8b | 525a79e74260ef3bc770e59ad8d8ad25d5a7fd61 | /ImageSegmentation/ImageSegmentation/NodeData.cpp | c79e2b1a3b2dc6a31abecce205d44d28d5ef9d40 | [] | no_license | reshmasivakumar/CSE-342-Data-Structures-And_Algorithms-In-CPP | b5b3e085ad5b64fd73a54ef80b647dc04be8241f | 490e17b94cdb428d266da4c9f262588ab03fb31c | refs/heads/master | 2021-03-16T05:09:12.911490 | 2017-09-13T02:48:40 | 2017-09-13T02:48:40 | 103,221,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,560 | cpp | NodeData.cpp | /*
Program 4: NodeData.cpp
Author: Reshma Maduri Sivakumar
Design Due Date: 03/08/2017
Purpose: This program contains the implementation of the methods in the NodeData header file.
*/
#include "NodeData.h"
#include <iostream>
#include <fstream>
using namespace std;
/*
NodeData: A default constructor with... |
b89ec5158510d38182b2e3c5f67b385492114acf | 85e754a7acf9edd4fb237672d0fa4a8a76822d2b | /trunk/source/render/ola_util.h | 60477351286308354cd79a7ca8079ee9024ae54d | [] | no_license | ylyking/olawork | f9d7d6143b5005fda8673f060cd4b9835378dfa2 | a09940e360181e032ea886566b4f86448f1429a1 | refs/heads/master | 2020-04-07T06:59:47.168776 | 2013-05-08T11:37:04 | 2013-05-08T11:37:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | h | ola_util.h | #ifndef _NV_UTILITY_H__
#define _NV_UTILITY_H__
#include <memory.h>
#include <stdlib.h>
#include <stdio.h>
//#if defined WIN32
#define LOGI(...) printf(__VA_ARGS__)
#define lg(...) printf(__VA_ARGS__)
//#elif defined __ANDROID_API__
//
//#include <jni.h>
//#include <android/log.h>
//#define LOG_TAG "GLRenderJ... |
8a3932c6ad3d91918659a20259033852af72f5f5 | 4c42cdc7a25015921f46c2ba999f0edd57a5a3dc | /src/tts_libspeechd/tts_libspeechd.h | abf5a0403681bb78c3a3ebb902cfe1334318e14d | [
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense"
] | permissive | bruvzg/godot_tts | 6519e50787338235d2dbcf8439126f4e7bca8526 | 55c352fddc66365a1769d51cc609d2141b69ec07 | refs/heads/master | 2022-06-25T20:28:44.689467 | 2022-05-30T11:49:05 | 2022-05-30T11:49:05 | 146,617,488 | 33 | 9 | Unlicense | 2021-08-10T16:51:38 | 2018-08-29T15:05:07 | C++ | UTF-8 | C++ | false | false | 946 | h | tts_libspeechd.h | /*************************************************************************/
/* tts_libspeechd.h */
/*************************************************************************/
#pragma once
#include "tts_driver.h"
#include <speech-dispatcher/libspeechd.h>
#include <... |
7ae371b6536260754e4c49d45e5df77d92bdb5bd | c809083f346c257b0b023a1177d866e28a0c3a3e | /PBREngine/Renderer.h | 2ee5bf1acd2f979ef962dd908917393c1f59f50e | [] | no_license | altazar0456/PBREngine | 9fe386ac6fae4cd72027b44766a37a05618d0a86 | 3ca862ca53a5d18aac013ec26c43b08b065f3d41 | refs/heads/master | 2022-11-22T21:03:16.462927 | 2020-07-27T11:15:07 | 2020-07-27T11:15:07 | 277,142,367 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,835 | h | Renderer.h | #pragma once
#include "QueueFamilyIndices.h"
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <string>
#include <vector>
class Renderer
{
public:
Renderer(VkDevice device, VkSwapchainKHR swapChain, const std::vector<VkImage>& swapChainImages, const std::vector<VkImageView>& swapChainImageViews, VkFo... |
da078294104e12279baa1331ec865b13f0a56d3e | dcebc9eba57f252874a336b4b396c1dea328e850 | /cpp/unique.cpp | bbe927102cc98aa998cff8556ca126e4432b286e | [
"Apache-2.0"
] | permissive | bcgov/diputils | d7408ceb7d02c1583bba75e515cb3f93e2e07a09 | caf510c81f7f43372d4a8e18f77eaa86cdede6a5 | refs/heads/master | 2022-05-15T01:02:13.289995 | 2022-05-08T22:02:54 | 2022-05-08T22:02:54 | 231,476,522 | 5 | 1 | Apache-2.0 | 2022-05-08T22:02:55 | 2020-01-02T23:31:46 | Python | UTF-8 | C++ | false | false | 3,461 | cpp | unique.cpp | /* 20190531 unique.cpp: filter for unique values of A) or B):
A) the record as a whole (default)
```unique input_data_file.csv```
This is the primary intended usage as tabular datasets often contain duplicated records. In this case de-duplication is necessary to ensure analytic measurements are as accurate as poss... |
a11ca2b3f2fb9cd3b2f7741c7a61457ad1e72525 | 4df2123fb596fa105447165e3bd6c796bae00511 | /src/Models/Coloseum.cpp | 26c67a56e23a2119b02524285600e0118047f71c | [] | no_license | Zgavra/coloseumcpp | 79d066dccc9ad1bdafdcb71d3e370e171c340fea | d15d5553531d4ef975560bd4fdaf783d3dbd6537 | refs/heads/master | 2020-05-16T22:48:49.342206 | 2015-05-21T19:19:07 | 2015-05-21T19:19:07 | 35,688,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,983 | cpp | Coloseum.cpp | #include <string>
#include "Coloseum.h"
#include "Bow.h"
#include "Spear.h"
#include "SwordAndShield.h"
#include "Gladiator.h"
#include "Weapon.h"
#include <iostream>
using namespace std;
Coloseum::Coloseum()
{
//ctor
/*Bow bow;
Spear spear;
SwordAndShield swordAndShield;*/
this->listWeapons.push... |
95f106d2608c95d5157310555285030021a368a8 | 1caa5e47fab729499276924e8dcc8e42f0f6e6f6 | /bwn-modules/console-tests/src/DistormWrapper.cpp | d77e7ff4ad5a88bf65f26d9fcd828aabd9efdc94 | [] | no_license | luedos/console-tests | 5de35fd30bf4ed22d47d004fbe53dc60705758d8 | 00925587507ce8f684d48d89f9f07f6863d8109e | refs/heads/master | 2020-08-10T05:43:38.605935 | 2019-12-04T13:51:55 | 2019-12-04T13:51:55 | 214,272,084 | 1 | 0 | null | 2019-11-26T20:57:29 | 2019-10-10T19:47:54 | C++ | UTF-8 | C++ | false | false | 1,973 | cpp | DistormWrapper.cpp | #include <stdexcept>
#include "DistormWrapper.h"
#include "mnemonics.h"
std::vector<_DInst> GetInstructions(const std::string& code, const std::vector<unsigned int>& relocs, size_t prologSize, size_t epilogSize)
{
if (code.size() <= epilogSize + prologSize) {
return {};
}
const size_t max_instruction... |
7d4c9dc770cbebb8f237fd45bdfb8fb1eb6fb1f0 | 3af0a15b5bef3e77dd5e1955a7b14a8b0573c48d | /LeetCode/Palindrome Partitioning/main.cpp | cd213f21a8f0092cf48968a22c6d187563d83313 | [] | no_license | tinglai/Algorithm-Practice | 7ef98585e52585d6deed92e669c3af767d3e8033 | e51831e43e00e935d19e2a8ca934eede9d1f6367 | refs/heads/master | 2021-01-25T10:29:19.107639 | 2015-06-02T13:09:04 | 2015-06-02T13:09:04 | 25,283,963 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,185 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <string>
using namespace std;
class Solution{
public:
vector<vector<string>> partition(string s){
vector<vector<string>> result;
if(s.empty()) return result;
int size = s.size();
vector<vector<int>> memo(s.size() + 1);
// following is a very useful strategy t... |
5125cc4a39e993b9ee93b402cf3b6402953dbccb | 063ec40f1bf8c156f84bf6dec5060e8f4427904b | /src/monosat/dgl/SteinerApprox.h | 74101109164e53fa0791eb1067657bdbcf521548 | [
"GPL-2.0-only",
"GPL-1.0-or-later",
"MIT"
] | permissive | sambayless/monosat | 10a6a8d8901529c070aa9cf11b3aea35d0e7f6db | cf9ab9c17de3b175059fbe38626021d010d65b0a | refs/heads/master | 2023-05-11T07:43:17.302876 | 2023-04-30T17:50:07 | 2023-04-30T17:50:07 | 29,748,191 | 104 | 42 | MIT | 2023-04-30T17:50:08 | 2015-01-23T19:05:46 | C++ | UTF-8 | C++ | false | false | 9,151 | h | SteinerApprox.h | /**************************************************************************************************
The MIT License (MIT)
Copyright (c) 2014, Sam Bayless
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 th... |
c09c9d84a99c6390b2219edb246920ce7d0d4701 | bbadd762fdd62e1c7ea7e6d16c0102e6838dcac7 | /include/TinyRTSPSession.h | ffcaa7bbf9dda4e8771c3b0ad3264dfdd587cae5 | [] | no_license | CreatorTsing/TinyRTSP | 8ef4dc3f79f1dac14f188cb6229614e56db6cf7c | 4a7ec4ab76cd60f493eca2995cd05fb8c2ee630b | refs/heads/master | 2016-09-13T19:40:46.575193 | 2016-04-20T13:50:16 | 2016-04-20T13:50:16 | 56,482,644 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | h | TinyRTSPSession.h |
class TinyRTSPSession
{
public:
TinyRTSPSession(char* url);
~TinyRTSPSession();
int ParseUrl(char * url);
int MakeSocketBlocking(int s,bool blocking);
int InitSession();
int SessionDescribe();
int SessionAnnounce();
int SessionGetParameter();
int SessionOptions();
int SessionPau... |
359b7a7ba650ed58122d66a9eaba926700b33987 | d9d118f4f1d626a750897babce33b3ce34f11575 | /x451/ProjectBase/Setup/CSetupMainListModel.h | 85718e2326ca8c82f0e5fa41921a174deade8db3 | [] | no_license | HNarayana-youCanDoIt/Testproject | 39af23d3ee4c2a413670c3dcd68dbd41424bbe91 | 226795327f50102989dfc8e12174823dddc2aa68 | refs/heads/master | 2023-03-26T05:57:57.044706 | 2021-03-31T11:14:53 | 2021-03-31T11:14:53 | 353,326,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,220 | h | CSetupMainListModel.h | /*****************************************************************
* Project Harman Car Multimedia System
* (c) copyright 2017
* Company Harman/Becker Automotive Systems GmbH
* All rights reserved
* Secrecy Level STRICTLY CONFIDENTIAL
************************************************... |
d25d8e0d58d7759af20777c3d89aa970aca49f4d | 4b04cd7bca06f42099117ba9d9d0af15c2ae60d1 | /CSExternal/Entity.cpp | f57e8f1974f2b2e0d5dc6701bf6f1ef69e796b3b | [] | no_license | CaneloJace/CSExternal | 6cd518000b5f8832642af4e4abc45f627c8899de | 3f47593fcf26fa88e50fd5be7473fe95f7059f63 | refs/heads/master | 2020-06-25T06:14:19.083382 | 2019-07-28T00:50:26 | 2019-07-28T00:50:26 | 199,226,931 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,813 | cpp | Entity.cpp | #include "Entity.h"
DWORD Entity::getEntBase(int index)
{
return Offsets.val.manager.readMem<DWORD>(Offsets.val.gameModule + Offsets.entityList + (index * 0x10));
}
int Entity::getEntHp(DWORD playerBase)
{
return Offsets.val.manager.readMem<int>(playerBase + Offsets.health);
}
bool Entity::isAlive(DWORD playerBase... |
d26b7cb75f919b6d76ca76d86ebcbc03b30a97b9 | 1d3a99aef7a8683dee5f834923ca831861311f78 | /library/include/ui/settings.hh | acafbaed205ecdf0fe9b48fdd298ba4655c255e3 | [] | no_license | daanhenke/scareware | 35f732757fbbddbccc3229f3a8572cba18304643 | a2e05fdede71f4572ff085b5a74b09714a6810eb | refs/heads/master | 2023-04-01T20:44:23.291249 | 2021-04-12T22:08:05 | 2021-04-12T22:08:05 | 324,032,755 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | hh | settings.hh | #pragma once
#include <string>
struct nk_colorf;
namespace sw::ui::settings
{
extern bool is_open;
enum class currenttab_t
{
TAB_MISC,
TAB_VISUALS,
TAB_SKINS,
TAB_MOVEMENT
};
extern currenttab_t current_tab;
void RenderColorPickerRow(nk_colorf* color, bool* enabled, std::string label_text);
void Re... |
ddc5a809fb14f03b5e1fc834cb8d992afff5f7e1 | bacb0dd13e7e6fd578095a8948e3831d4f47e805 | /own_circle.cpp | d9532431e69800d1a0ec1a7b604e8fd7067342c6 | [] | no_license | guluuu3/spoj | 95645bca27ec4163803cea99636f9877f79f930a | af273783470f7ac42c781e43949640026b455b69 | refs/heads/master | 2021-01-18T15:14:28.234260 | 2015-07-18T05:39:35 | 2015-07-18T05:39:35 | 39,065,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,273 | cpp | own_circle.cpp | #include<bits/stdc++.h>
#include<graphics.h>
void circlePlotPoints(int, int, int, int,int);
void circleMidpoint(int xCenter, int yCenter, int radius,int color)
{
int x = 0;
int y = radius;
int p = 1 - radius;
circlePlotPoints (xCenter, yCenter, x, y,color);
while (x < y) {
x++;
if (p<0)
p += 2*x+1;
else{
y--;
p += 2... |
985adebeaa63b324b67a3e8105c4def2a05fe439 | ce7a67334e51fbfbecc46a04300de04695506d7e | /Projects/TestBed/Classes/OldTests/FormatsTest.cpp | f8ae485e8babbb5c3d8ef3c7e06ed912aa2c04bd | [] | no_license | dava-bot/dava.framework | 2b2cd60d419fe3948a48da2ae43142ff24016ee2 | 295c279990b7302be8e7f91eb0899399c118b825 | refs/heads/development | 2020-12-24T19:18:09.877267 | 2015-03-13T15:07:03 | 2015-03-13T15:07:03 | 32,009,964 | 4 | 0 | null | 2015-03-11T09:48:13 | 2015-03-11T09:48:12 | null | UTF-8 | C++ | false | false | 4,477 | cpp | FormatsTest.cpp | /*==================================================================================
Copyright (c) 2008, binaryzebra
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions... |
c3e36d2fbc805561c711dc452cf5ca75000550b3 | 4bb29380d8644570e0d61b02bfa39be3e419ead1 | /enemyplane.cpp | 5aa0bd8e5483338280cbeb8f3b150511345133a0 | [] | no_license | zhicongsun/PlaneWar | 51e3910025dc72e0c23648ee31dfc2c23aa39076 | 56bd4b9c38b516cda6df0f09d1d6c500a6e72609 | refs/heads/master | 2022-09-01T01:41:08.196615 | 2020-04-04T12:39:42 | 2020-04-04T12:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 55 | cpp | enemyplane.cpp | #include "enemyplane.h"
EnemyPlane::EnemyPlane()
{
}
|
78c7e2c31c823af1dfb0f5b04f710f4ccb1f8769 | 5926c893a043424d00b62f34762e5f8b4e8cb8bb | /BackEnd/othello/one_step.cc | 8743ff3e252756d293d13337128476b47fde77af | [] | no_license | Wei-TianHao/Othello | 9348366902ed992c7222ba36e30409d0b730153a | f17e8949fa0b4509b3fde027545dccb82ae051a6 | refs/heads/master | 2020-03-19T07:25:04.269223 | 2018-06-08T16:17:27 | 2018-06-08T16:17:27 | 136,111,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,579 | cc | one_step.cc | #include<bits/stdc++.h>
#include<ctime>
#include "OthelloState.hpp"
#include "naive.hpp"
#include "cooper.hpp"
#include "roxanne.hpp"
#include "lethe.hpp"
using namespace std;
#define ULL unsigned long long
int main(int argc,char **argv) {
string board;
string player;
string version;
cin >> board;... |
d90888e8226ab5d6b52b2b96f135ccd7eaaf226c | 70441dcb7a8917a5574dd74c5afdeeaed3672a7a | /第三回 アルゴリズム実技検定/K - コンテナの移動/main.cpp | 77fbe4c68c8ce569847fb43dce9384d47567e781 | [] | no_license | tmyksj/atcoder | f12ecf6255b668792d83621369194195f06c10f6 | 419165e85d8a9a0614e5544232da371d8a2f2f85 | refs/heads/master | 2023-03-05T12:14:14.945257 | 2023-02-26T10:10:20 | 2023-02-26T10:10:20 | 195,034,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n, q;
cin >> n >> q;
vector<int> a(n), b(n);
for (int i = 0; i < n; i++) {
a[i] = i;
b[i] = -1;
}
for (int i = 0; i < q; i++) {
int f, t, x;
cin >> f >> t >> x;
int af = a[f -... |
0565bb7251f38ad89d92ed3427649cf6eb08db9f | 93069b6ec3f61bb4ef251407e6678c8cb171f2b5 | /libraries/LED/src/gpio.cpp | f4fe837e5745b21b7425e15268c769cb7e8350d8 | [
"Apache-2.0"
] | permissive | ningz7/arduino-imx6ull | 861a6e2414ac3f7d4bb24a2e603e34644d594d7e | e1dc0fa160cc9970b886b6fd4fa6e94eed3054cc | refs/heads/master | 2023-03-17T21:35:23.178746 | 2020-05-11T04:09:27 | 2020-05-11T04:09:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,222 | cpp | gpio.cpp |
#include "gpio.h"
GPIO::GPIO(void)
{
}
GPIO::GPIO(int pin) : m_iPin(pin)
{
this->setPath(pin);
}
void GPIO::setPin(int pin)
{
this->m_iPin = pin;
this->setPath(pin);
}
int GPIO::getPin(void)
{
return this->m_iPin;
}
void GPIO::setPath(int pin)
{
stringstream s;
s << "/sy... |
4950135e87ea4547e1142d33750dfb5c613f2333 | 20f84e2a2e8a1042d6142d41e6f99c7a973f2a8b | /example/example.cpp | 06b142d871487b74ce7ea4725f3da851d3c21f88 | [
"MIT"
] | permissive | waybeforenow/libvault | c78ae9f1801a8c741c17cb72a502372550bfb2d5 | e778af9cbdb40e3d5edbe2a73ef4d12109d2abfd | refs/heads/master | 2020-09-22T20:07:16.123930 | 2019-12-03T23:30:44 | 2019-12-03T23:30:44 | 225,312,235 | 0 | 0 | MIT | 2019-12-02T07:30:04 | 2019-12-02T07:30:03 | null | UTF-8 | C++ | false | false | 5,655 | cpp | example.cpp | #include <iostream>
#include "VaultClient.h"
template<typename T>
void print_response(std::optional<T> response) {
if (response) {
std::cout << response.value() << std::endl;
} else {
std::cout << "Error" << std::endl;
}
}
void kv1(VaultClient vaultClient) {
auto kv = KeyValue(vaultClient, KeyValue::V... |
493344484b1d41b1ec35a65d084ccd9ebfaefc68 | 497219d69e95da43b8713d71f89ff7e04a5f33f4 | /src/osgEarthBuildings/BuildingPager | 099daa23d29c48d89d59f9a27237b612c6879b67 | [
"MIT"
] | permissive | pelicanmapping/osgearth-buildings | 4eab500b5e3aa4f7a224e42388e3c609f9184fbf | 3932f7fd6bb332eb11475556db350dbd6bfc9555 | refs/heads/master | 2020-03-07T01:22:27.227535 | 2018-09-14T15:20:55 | 2018-09-14T15:20:55 | 127,182,099 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,216 | BuildingPager | /* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2016 Pelican Mapping
* http://osgearth.org
*
* osgEarth 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 Foundat... | |
cadf28c293cb1b5da8b781a6af612d67847037c4 | 175aa9134b6c0e7bf075a85e3901e46121d47a1c | /soapy/src/driver/BoostTcpClient.hpp | 48f97f1db7816c178ad13a8ea2b95c8fc2545abb | [
"BSD-3-Clause"
] | permissive | siglabsoss/s-modem | 63d3b2e65f83388e7cd636a360b14fdc592bd698 | 0a259b4f3207dd043c198b76a4bc18c8529bcf44 | refs/heads/master | 2023-06-16T08:58:07.127993 | 2021-07-04T12:42:45 | 2021-07-04T12:42:45 | 382,846,435 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,540 | hpp | BoostTcpClient.hpp | #pragma once
#include <iostream>
#include <istream>
#include <ostream>
#include <string>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include "3rd/json.hpp"
#include "HiggsSoapyDriver.hpp"
using boost::asio::ip::tcp;
class HiggsDriver;
class BoostTcpClient
{
public:
BoostTcpClient(boost::asio::io_service& ... |
bd30447dc6a61e25a467ef5d0cb992eab1700a16 | e32c544a703854b61203cfbc98743572bf9a7e47 | /rectangle.cpp | c7a1f38fe1b69cb0d3c345bbb967f089815345a4 | [] | no_license | OOP2019lab/lab12-muhammadhasham1239 | a66f78adc9ce84963a3d801f04fabedfb1640212 | f1fd7a7324f1dad9b14f7019f003b3f9fd84f9df | refs/heads/master | 2020-05-16T02:29:15.490173 | 2019-04-22T06:00:03 | 2019-04-22T06:00:03 | 182,632,011 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | rectangle.cpp | #pragma once
#include <iostream>
using namespace std;
#include "rectangle.h"
rectangle::rectangle(){
height = 0;
width = 0;
color="";
}
rectangle::rectangle(float h,float w,string a):shape(a){
height = h;
width = w;
}
float rectangle::area(){
float A=0;
A=height*width;
return A;
} |
7558b13e1a143db7d7ba9750e99da636e25ac0e7 | f02689b1979507a74ced179d43594a714b272e8d | /core/src/Worker.cpp | 8aa5d2328ce57a6278ce35e2284578c83c5b7f1d | [] | no_license | NiceTwice/HTTP-nginx-like-server | 5868c1907e445e2865fa9c86da4c589b9e804870 | 71027b35ac9e5ab8d38845dcd4455b597d8c6e96 | refs/heads/master | 2020-03-20T00:52:02.540936 | 2018-06-12T12:54:47 | 2018-06-12T12:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,427 | cpp | Worker.cpp | //
// Worker.cpp for cpp_zia in /home/lanquemar/rendu/cpp_zia
//
// Made by Adrien Vasseur
// Login <adrien.vasseur@epitech.eu>
//
// Started on Sat Jan 21 18:56:15 2017 Adrien Vasseur
// Last update Sat Jan 21 18:56:15 2017 Adrien Vasseur
//
#include <iostream>
#include "Worker.hpp"
Worker::Worker(int id, std::... |
5d9abae2b2e219e50056cd924cbebd3e611303d9 | 26802b1d5fc135203faa0d5d7aab2187f3aeb7cf | /src/log.cpp | 5e04e57886cc4832c592b5f0597aa56e344547b9 | [] | no_license | condy0919/ACProxy | 706a7501b1d9387eada3793e2567b4dd0160e833 | bfe5b3cf8bd27d73c01ce933b4093937755264ae | refs/heads/master | 2021-01-21T21:39:19.687054 | 2016-05-23T13:05:19 | 2016-05-23T13:05:19 | 37,732,478 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,555 | cpp | log.cpp | #include "log.hpp"
#include <mutex>
#include <ctime>
#include <string>
#include <cstdio>
#include <unistd.h>
#include <sys/syscall.h>
namespace {
struct ColorInfo {
const char* text;
char color;
};
ColorInfo infos[] = {
{"FATAL", '1'}, // Red
{"ERROR", '5'}, // Pink
{"WARNING", '3'}, // Yel... |
4c65f186ee257de81e9fb3d93d31fe92dd91e31d | 2f92499f783c7aea530c0d2b9a1449eef7b4366e | /selection_sort.cpp | 379b57dc20358c90078290a0f8ef557047dafba5 | [] | no_license | DebanjanBarman/DATA_STRUCTURE_PROGRAMS | e3917b620d9584abd545c98d44d6054bfed76964 | 7c860d60f7966b598f31dd8e3d73f99bf911e729 | refs/heads/master | 2020-09-20T17:43:06.797398 | 2019-11-29T05:17:39 | 2019-11-29T05:17:39 | 224,550,788 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 846 | cpp | selection_sort.cpp | #include <iostream>
using namespace std;
int main()
{
int a[20], temp, i = 0, j = 0, n, min = 0, pos = 0;
cout << "Enter the number of elements: ";
cin >> n;
cout << "Enter " << n << " Elements\n";
for (i = 0; i < n; i++)
{
cin >> a[i];
}
cout << "Before Sorting\n";
for (i... |
77b711f83759d221d25037ea3e19012d41f2c4ec | c5332c10775e9df3093dd2677babe34e02b05704 | /openframeworks/faceTracker/bowiecam/trunk/src/testApp.h | a60583c8a3ceafa91da1d89e78e75d9a9d60d4ea | [] | no_license | aurialLoop/julapy | bb1f7c458b2c1fefef6de6bdd512ee1ca781a6dc | 80ea9b32c6de7e34ad353416f75878551193d2a9 | refs/heads/master | 2021-10-08T13:46:46.279988 | 2021-09-29T05:59:03 | 2021-09-29T05:59:03 | 33,194,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,226 | h | testApp.h | #ifndef _TEST_APP
#define _TEST_APP
#define WIDTH 640
#define HEIGHT 480
#define SAMPLE_WIDTH 320
#define SAMPLE_HEIGHT 240
#include "ofMain.h"
//#define DEBUG_MODE
#include "ofxCvHaarFinder.h"
#include "ofxCvHaarTracker.h"
class testApp : public ofSimpleApp{
public:
void setup();
void update();
... |
53b050f59a9cb8b531479e91f0e087990811f674 | 1266254e5763ec1dbbd861fa2045bcef1edbcec6 | /SurgSim/Math/IntervalArithmetic.h | 24ef29a9183c40fbe9e13a95b80bcfc3df55e845 | [
"Bitstream-Vera",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | simquest/opensurgsim | 0a443f8e54b276f4e41ed991b2fcb3d2b0c0b5a7 | bd30629f2fd83f823632293959b7654275552fa9 | refs/heads/master | 2022-02-13T15:05:47.744267 | 2020-11-24T14:27:19 | 2020-11-24T14:27:19 | 24,512,532 | 30 | 11 | Apache-2.0 | 2022-02-03T20:18:01 | 2014-09-26T19:25:40 | C++ | UTF-8 | C++ | false | false | 21,881 | h | IntervalArithmetic.h | // This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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/LICE... |
2816a4e228d52986b6915427f096b4da8068db3c | 8534ee19486f91ad6418b636323c50d5b0e1b091 | /chap2/eol_2-18.cpp | 48223f64368eabcc4813a28eb4c863f239eddcbc | [] | no_license | jmhardison/cpplearn-howtoprogram | 168a410e729eadde6adb5a729d4cc62d340743a9 | 6c782f875b4b4e055322ce563a0bc7f8e60b90a7 | refs/heads/main | 2023-02-18T00:21:59.588619 | 2021-01-17T06:47:23 | 2021-01-17T06:47:23 | 324,908,568 | 0 | 0 | null | 2020-12-30T07:01:33 | 2020-12-28T04:08:13 | C++ | UTF-8 | C++ | false | false | 838 | cpp | eol_2-18.cpp | /*
comparing integers - write a program that asks the user to enter two integers, obtains the nubmers from the user. If the numbers are not equal print the message "these numbers are not equal"
then print the smaller number followed by the words "is smaller"
*/
#include <iostream>
using namespace std;
int main(){
... |
f95c17db34ce497ff9243a2cf41e0162b33f3677 | 722b5d6e1df51ad6617e64d39f1773955c0c9f3a | /Leetcode.Cpp/BinaryTree/SerializeandDeserializeBinaryTree.h | 2c2e8e344fb2847e3d314be72db3db6feea23cfa | [
"MIT"
] | permissive | metaplus/Algorithm | 99d10628ab0c560598eb0d63c94a091035d7c82e | 8b1911249be4d9899df4315206bc912721a73cf1 | refs/heads/master | 2021-04-30T15:17:28.022604 | 2019-09-14T12:38:18 | 2019-09-14T14:40:16 | 121,236,261 | 0 | 0 | MIT | 2021-03-31T21:36:24 | 2018-02-12T11:02:59 | C++ | UTF-8 | C++ | false | false | 3,357 | h | SerializeandDeserializeBinaryTree.h | #pragma once
namespace leetcode
{
namespace binary_tree
{
namespace serialize_deserialize
{
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
... |
7c7a921b97f9f5b1aae546a3310ae6d79b415480 | 3efc50ba20499cc9948473ee9ed2ccfce257d79a | /data/code-jam/files/3014486_rox_5158144455999488_0_extracted_C.cpp | f6234600c1e2e608cf7208ea71bfa9b63c305beb | [] | no_license | arthurherbout/crypto_code_detection | 7e10ed03238278690d2d9acaa90fab73e52bab86 | 3c9ff8a4b2e4d341a069956a6259bf9f731adfc0 | refs/heads/master | 2020-07-29T15:34:31.380731 | 2019-12-20T13:52:39 | 2019-12-20T13:52:39 | 209,857,592 | 9 | 4 | null | 2019-12-20T13:52:42 | 2019-09-20T18:35:35 | C | UTF-8 | C++ | false | false | 3,021 | cpp | 3014486_rox_5158144455999488_0_extracted_C.cpp | #include <cstdio>
#include <cstring>
#include <vector>
#include <queue>
using namespace std;
int w,h,b;
int g[555][111];
const int MAX_V = 2222222;
struct edge { int to,cap,rev; };
vector<edge> G[MAX_V];
int level[MAX_V];
int iter[MAX_V];
void add_edge(int f,int t,int cap)
{
G[f].push_back((edge){t,cap,(int)G[t].s... |
b3e616c4896a185a9aa7d529596994cf0e740a2a | ab0ca26759bb5914f254d1bab54d720043c70685 | /src/rRpg/Map/Manager.cpp | 74dfbc1dd02d44b01694268ae33544389b2ce895 | [] | no_license | rrpg/engine-sdl2 | 7d25fe336edc40cf9845c69b2684299ac95b10f7 | c4de95906352de3829e58217bfd08fdf4753c4ea | refs/heads/master | 2021-01-23T00:02:12.397255 | 2019-01-11T13:40:02 | 2019-01-11T13:40:02 | 85,689,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,323 | cpp | Manager.cpp | #include "Map/Manager.hpp"
#include "Map/Generator.hpp"
#include "Map/Parser.hpp"
#include "Utils.hpp"
#include <libgen.h>
#include <sys/stat.h>
#include <iostream>
void MapManager::_getMapPath(std::string mapName, char filePath[PATH_MAX]) {
sprintf(
filePath,
"%s/maps/%s.dat",
Utils::getDataPath().c_str(),
m... |
83bcc94b9af50f27c0639ab210166c0ee9ed0700 | e1ff993c7adad6c89a85d470bc904e7d852601d4 | /Operations/Block.h | 954a80823ebd2a7a55085248c62573ab27cf70a7 | [] | no_license | i2070p/R-nd | a3a2926e4f1c403c2d5b1361289550b49352cf33 | 7b870b6bf2ae87457357e47bad46d9eb0c2fa270 | refs/heads/master | 2021-01-19T05:09:56.630283 | 2015-05-24T23:09:32 | 2015-05-24T23:09:32 | 34,376,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 294 | h | Block.h | #pragma once
#include "ComplexOperation.h"
#include <sstream>
class Block : public ComplexOperation {
public:
Block(Operation * parent) : ComplexOperation(parent) {
}
protected:
void generate(SpimCodeContainer * spimCode) {
this->generateChildren(spimCode);
}
};
|
e23f996fa1c99a1359f685c261a4102909ea8d5a | 2e359b413caee4746e931e01807c279eeea18dca | /1039. Minimum Score Triangulation of Polygon.cpp | 7bb61386f8e4951a79d687be8d789409f8eb0db7 | [] | no_license | fsq/leetcode | 3a8826a11df21f8675ad1df3632d74bbbd758b71 | 70ea4138caaa48cc99bb6e6436afa8bcce370db3 | refs/heads/master | 2023-09-01T20:30:51.433499 | 2023-08-31T03:12:30 | 2023-08-31T03:12:30 | 117,914,925 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 574 | cpp | 1039. Minimum Score Triangulation of Polygon.cpp | class Solution {
public:
int n;
int f[51][51];
const int INF = 0x3f3f3f3f;
int dp(const vector<int>& a, int l, int r) {
if (l+2 > r) return 0;
if (l+2 == r) return a[l]*a[l+1]*a[r];
if (f[l][r]) return f[l][r];
f[l][r] = INF;
for (int k=l+1; k<r; ++k... |
b4b1442f416e8d981194196e06aad75e5ec2ee3b | 7f9afccbefe50869ab69cde62b8cdd0c380c23f3 | /Permutations_213.cpp | e3012c51731ae16d9a38b2d79e0a0995494d3807 | [] | no_license | Karan-MUJ/SPOJ_300 | 5b529bb9e8e5146fcc4726d4d156ab7557648fb8 | 47853b006dc9aa2a7bb1d7ead49c5f7e57155f10 | refs/heads/master | 2020-03-22T12:53:20.847739 | 2018-11-21T18:09:31 | 2018-11-21T18:09:31 | 140,068,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | cpp | Permutations_213.cpp | #include<iostream>
using namespace std;
int permut[13][100];
int main213()
{
int t, n, k;
for (int i = 0; i < 13; i++)
{
for (int j = 0; j < 100; j++)
{
permut[i][j] = 0;
}
}
permut[1][0] = 1;
for (int i = 1; i < 12; i++)
{
for (int j = 0; permut[i][j]; j++)
{
int val = pe... |
20caaca4d9d30fbd851fad526126c67a9542f55a | 55e796ccf4b7696e498efb127857d0e1cb0390c6 | /inc/SudokuSolver.hpp | c71bd02294044a1c8aefbabbcaebae50c6451111 | [] | no_license | mdsnlee/Sudoku-Solver | 1282b6d09ba56a10df160ad7e9ec6d3be70639dd | 22de1409f28c43ed805a09a5aaa6b03f9ec6bc0d | refs/heads/master | 2023-08-16T20:31:54.483187 | 2021-09-17T04:13:53 | 2021-09-17T04:13:53 | 407,400,124 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | hpp | SudokuSolver.hpp |
typedef struct t_coord
{
int x;
int y;
}t_coord;
class SudokuSolver
{
private:
//save board that was loaded
int _board[9][9];
int _solution[9][9];
int _numSolutions = 0;
public:
// SudokuSolver(void);
// SudokuSolver(const SudokuSolver &);
// ~SudokuSolver(void);
// SudokuSo... |
ecde4f1a33d7cb2fa84e5ffe17a1d8f2675d8028 | 64fecc400dd9d6b5ced83e356167611a93b9fe8e | /NNTC_dialog/NNTC/Registration.cpp | a5b60a64ace8fb3923d93ce03184a235645ef1cc | [] | no_license | sunmedi/SMC | 1a6fbdee784d2ac98ce588f421e4b7a98c68d65d | 5a9a8c6e1b6428e81662f05c01296a8823bb2a19 | refs/heads/master | 2020-03-28T05:48:34.789496 | 2018-09-10T04:51:31 | 2018-09-10T04:51:31 | 147,797,442 | 0 | 0 | null | 2018-09-10T04:51:32 | 2018-09-07T08:51:07 | null | UTF-8 | C++ | false | false | 4,010 | cpp | Registration.cpp |
#include "Registration.h"
#include <TableUserDelegate.h>
#include <QtSql>
Registration::Registration(QWidget *parent)
: QDialog(parent, Qt::FramelessWindowHint),
ui(new Ui::Registration)
{
ui->setupUi(this);
database = QSqlDatabase::addDatabase("QMYSQL");
database.setHostName("localhost");
database.setDataba... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.