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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45767473f713ac356b90823f8c9ce1149194456a | 95e24c3032b0e6b45b3239e5e23d74e017a3ba11 | /Strings/Balanced Parenthesis problem.[Imp]/Balanced Parenthesis problem.[Imp].cpp | a1eb86a382cd706066a1aec1d50a0669715e3cad | [] | no_license | keshavjaiswal39/DSA-450-Questions-Love-Babbar-DataSheet | b167470f913b6d4e5e525583ecd1e7d070c335f7 | b6885254063427ddc6e7f7751512caaf788f1a83 | refs/heads/master | 2023-05-29T06:08:52.624084 | 2021-06-20T11:10:24 | 2021-06-20T11:10:24 | 347,831,521 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,264 | cpp | Balanced Parenthesis problem.[Imp].cpp | bool ispar(string e)
{
// Your code here
stack<char> s;
char x;
for(int i=0;i<e.size();i++)
{
if(e[i]=='(' || e[i]=='{' || e[i]=='[')
{
s.push(e[i]);
continue;
}
if(s.empty()... |
aa6b008662d92ed927cb162725196a6491597574 | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/include/functions/scalar/split_high.hpp | 657e1fc8b0d233c572871307a0439ba6dde224fb | [] | no_license | RcppCore/RcppNT2 | f156b58c08863243f259d1e609c9a7a8cf669990 | cd7e548daa2d679b6ccebe19744b9a36f1e9139c | refs/heads/master | 2021-01-10T16:15:16.861239 | 2016-02-02T22:18:25 | 2016-02-02T22:18:25 | 50,460,545 | 15 | 1 | null | 2019-11-15T22:08:50 | 2016-01-26T21:29:34 | C++ | UTF-8 | C++ | false | false | 191 | hpp | split_high.hpp | #ifndef NT2_INCLUDE_FUNCTIONS_SCALAR_SPLIT_HIGH_HPP_INCLUDED
#define NT2_INCLUDE_FUNCTIONS_SCALAR_SPLIT_HIGH_HPP_INCLUDED
#include <nt2/swar/include/functions/scalar/split_high.hpp>
#endif
|
59b343559603f14dbbf0faf3e788a4892a92a0d5 | bfb7da132ff44f801bcb38f793d0cf79366df9ed | /hw5/1a.cpp | f96a8f66b5d7ca144285eb5efcdba772d9ee01c6 | [] | no_license | maxim-kocheganov/homework | 9ce0d939e6bd0c755b8f582cdb834ee83045a4d8 | 2cbd5bfa4dcef0cf7b428b3833efabd7900ad19d | refs/heads/master | 2021-05-28T21:36:43.361213 | 2015-05-18T22:37:07 | 2015-05-18T22:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | cpp | 1a.cpp | #include <iostream>
#include <cstdlib>
using namespace std;
int inputNum();
const int max = 10;
const int err = -1;
int main()
{
int tvarp;
while (true)
{
tvarp = inputNum();
cout << "tvarp: " << tvarp << endl;
if (tvarp != err)
{
int tax = 0;
if (tvarp - 5000 > 0)
tax += ((tvarp - 5000) % 10000)... |
66f8b13655b21a9ec7a7f3520bf958fa2ed3cf58 | b783b2a661f721862aba4a3e607c87b9fd243434 | /eclipseWorkSpaces/corman/07_advancingArray_prj/src/main.cpp | 22d973859f2f9918684e06b81490933025f42461 | [] | no_license | thesellersab/sole | c8988b1f8ac139e1bc5e351435a8eac49543e8a0 | f9ede0c49df462c9bb654f4320e1bcbc4e8905bc | refs/heads/master | 2022-11-23T10:38:12.908567 | 2020-07-31T10:51:42 | 2020-07-31T10:51:42 | 264,410,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,009 | cpp | main.cpp | /*
* * * * * * * * * *
* * * * * * * * *
|| مصنف:موسیقار پروگرامر ||
* * * * * * * * *
* * * * * * * * * *
*/
/*
* main.cpp
*
* Created on: Jul 11, 2... |
54957e8bcdfd2d678cd999488c1c3b3bcadde1b8 | 80ed6942824dc76b11e988ec63458f30ed9ad69e | /examples/pb_sample.pb.h | 4415d86423816c37e9c7bd478e8f3cbae8fa61a0 | [] | no_license | Apsalar/cpp-parquet | 83083d3a674f20b0980ae668213fea4e1694fabe | 3250cd60eed11df9b07e1320811e376952ec20fa | refs/heads/master | 2021-01-24T15:24:51.563479 | 2016-03-09T01:27:55 | 2016-03-09T01:27:55 | 46,075,744 | 0 | 0 | null | 2015-11-12T19:27:41 | 2015-11-12T19:27:41 | null | UTF-8 | C++ | false | true | 27,221 | h | pb_sample.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pb_sample.proto
#ifndef PROTOBUF_pb_5fsample_2eproto__INCLUDED
#define PROTOBUF_pb_5fsample_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2005000
#error This file was generated by a n... |
dedc4af91a32bcd64d3e8358ab8147ca74f85526 | 7b633bd7d0872885644c0bd40c445edd03512748 | /beakjoon/beakjoon/step/all/4_1_10952.cpp | 10ef6bc3e572a69de82a30e7923ae4208951d7bf | [] | no_license | capple8230/Algorithm | 54cb10f00312bc255bdcdf97a078a110b9cb73bf | f57c8790c2299470c480c45fcefd87740218dcdc | refs/heads/main | 2023-05-05T05:07:18.035533 | 2021-05-29T06:05:47 | 2021-05-29T06:05:47 | 371,889,297 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 294 | cpp | 4_1_10952.cpp | #include <iostream>
int main()
{
int a = 0, b = 0;
while (1) {
std::cin >> a >> b;
if (a == 0 && b == 0)
break;
std::cout << a + b << "\n";
}
//int a = 1, b = 1;
//while (a != 0 && b != 0) {
// std::cin >> a >> b;
// if (a != 0 && b != 0) std::cout << a + b << "\n";
//}
} |
315cf272654837fb059ae08202c0d2d61e1932d9 | 1c8951c2c8ce98eec60e59403c8742706b9122c7 | /1/模擬題5.cpp | 7573fe3c0a495aad3d3832a44f486eb5b65d507d | [] | no_license | Evelyn05/1071-c-programming | 7d7a2594ee72994d213a438d463542680e331b4e | c47f18710701f212bff99ce347d85563828c764f | refs/heads/master | 2021-07-25T15:18:51.897204 | 2019-01-04T06:33:28 | 2019-01-04T06:33:28 | 149,092,496 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,498 | cpp | 模擬題5.cpp | #include <stdio.h>
int ari(int in1,int in2,int sum,int minus,int multi,int dev,int a){
sum=in1+in2;
minus=in1-in2;
multi=in1*in2;
dev=in1/in2;
a=in1%in2;
printf("%d+%d=%d\n",in1,in2,sum);
printf("%d-%d=%d\n",in1,in2,minus);
printf("%d*%d=%d\n",in1,in2,multi);
printf("%d/%... |
b04e8bcaac15441da60c8da83ee19c843f4fc82e | 55a0fe2065baad3f4b509389a7bf6e96723b2682 | /step1_五种数据结构/StString.cpp | 784262205fd085a71a469892feeb7595d4cd527f | [] | no_license | haohaoxuexi4/Learn_Redis | e98464b52eefa46d47cd24948a781950aaaca5b1 | dd5c014b2617671fbfb437e00101d5cc7bdb0785 | refs/heads/master | 2021-01-24T08:00:12.500384 | 2017-06-14T12:45:54 | 2017-06-14T12:45:54 | 93,368,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,981 | cpp | StString.cpp | //
// StString.cpp
// suitredies
//
// Created by 仙女 on 2017/5/23.
// Copyright © 2017年 仙女. All rights reserved.
//
#include "StString.hpp"
#include <assert.h>
#define MAXININSIZE 100
StString::StString()
{
data=new char[1];
data[0]='\0';
freelen=0;
usedlen=0;
}
StString::StString(const char* in... |
ee120dd1f30dbd8b21e39a722f86e0f607b1fc4b | 82a3e40b75d0cc4250998702c2bff873590d92db | /src/aera/TabFrame.cpp | ebad4e4f1ee81ded7b0b48d0973f96e34a620b69 | [] | no_license | PavelAmialiushka/Aera.demo | 12c7981d0883e8b832c2f3e72fee14234cdeb3b0 | 4beeb315a99da6f90a87ba0bb5b3dffa6c52bd2d | refs/heads/master | 2021-10-11T14:41:00.180456 | 2019-01-27T13:38:21 | 2019-01-27T13:38:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,462 | cpp | TabFrame.cpp | #include "stdafx.h"
#include "TabFrame.h"
#include "utilites/Localizator.h"
#include "resource.h"
#include "tileview/TVFrame.h"
LRESULT CTabbedChildWindowX::OnNotify(int id, LPNMHDR hdr)
{
if (hdr->code >= TVFN_FIRST && hdr->code <= TVFN_LAST)
{
return ::SendMessage(GetParent(), WM_NOTIFY, (WPARAM)id... |
270a619610c715517ade05269cd06a3dee4152cc | d4bd481b1f2fed4f532c8805bfb8b3bfdce73c41 | /src/system/main_control_loop.cpp | 5ee1806f65173feddf0952b682a461c8ab3d772e | [
"MIT"
] | permissive | unhuman-io/motor | 09b6875fc39370ac65320f8c61c89a2b846e56ba | b1a37f6fa851bc5d08ef0a1d94b9782b6a7c4233 | refs/heads/master | 2020-04-03T17:53:14.992725 | 2018-10-31T15:59:56 | 2018-10-31T15:59:56 | 155,462,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32 | cpp | main_control_loop.cpp |
#include "main_control_loop.h"
|
87e790ad866420658384d17d2ff49a3605576209 | 2095e4d95bb5140536bc97f63def5ca8b8a49b3c | /q3D2D.h | 200898f659c183ac36c7bfc95aea6ceb03b4297b | [] | no_license | IdeGelis/q3D2D | eecf63f5581ddb6c9bd6e6a2769bb31ee1548d37 | 2f40b36a152df9a485b4aaf76d80c55b0f91810c | refs/heads/master | 2021-09-17T06:53:10.878370 | 2018-06-28T23:19:20 | 2018-06-28T23:19:20 | 114,896,046 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,944 | h | q3D2D.h | //##########################################################################
//# #
//# CLOUDCOMPARE PLUGIN: q3D2D #
//# #
//# This pr... |
b7a02af21d3ae8da47ec52b14315ceba4b36e1c8 | 78054846318f3b4b962550816fa83daa05b7dcc8 | /nthTriangle/main.cpp | 253e5ed50943d244db5d11933fdfb96a92801b54 | [] | no_license | anmolduainter/cLionProjects | 2ee6563900ed294254d7014df6698149aa2ed332 | 8186f13b6a79de23b97e8f03bbf043c4b8222208 | refs/heads/master | 2021-05-16T00:37:01.518370 | 2017-10-21T06:40:58 | 2017-10-21T06:40:58 | 106,949,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | main.cpp | #include<bits/stdc++.h>
using namespace std;
int totient(int n){
float result=n;
for (int i = 2; i < sqrt(n) ; ++i) {
if (n%i==0){
while(n%i==0){
n/=i;
}
result*=(1.0-1.0/(float)i);
}
}
if(n>1){
result*=(1.0-1.0/(float)n)... |
68b090ee7c0dd57b153a7cdcac2455fbc477e765 | 62aecb16eb942d06983a43c9ec9e335b684a0a48 | /engine/src/vulkan/command/ClearScreenRecorder.hpp | 169423f7c1570865a62075b8919ab87567aec369 | [
"MIT"
] | permissive | Velikss/Bus-Simulator | 1a707a7cadb16d35eefe864e0a3de28777253d19 | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | refs/heads/master | 2022-11-06T12:06:59.054896 | 2020-06-15T12:42:58 | 2020-06-15T12:42:58 | 266,741,328 | 0 | 0 | MIT | 2020-06-15T12:31:43 | 2020-05-25T09:41:51 | C++ | UTF-8 | C++ | false | false | 1,979 | hpp | ClearScreenRecorder.hpp | #pragma once
#include <pch.hpp>
#include <vulkan/module/lighting/LightingRenderPass.hpp>
#include <vulkan/swapchain/SwapChain.hpp>
#include <vulkan/command/CommandBufferRecorder.hpp>
class cClearScreenRecorder : public iCommandBufferRecorder
{
private:
cRenderPass* ppRenderPass;
cSwapChain* ppSwapChain;
... |
bde7c06c10e0a36c98bd7399c8bd0255450c451d | eab1807e5f09e31a5cacc0ba1275eead24cea76e | /qt_GL/Widgets_SiTTuGAs/Plugins/welemento_aplugin.cpp | 59080b3c6f0d01dc866f79303aa804014bde7e89 | [] | no_license | mbravod/aeros | 8af48c0e3d1d9055195236915c951ddd730d219c | 239ba1fae4ab7a8f01aa58df4dfe627ac3f9e731 | refs/heads/master | 2016-09-05T12:40:15.205595 | 2014-01-09T21:29:49 | 2014-01-09T21:29:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,260 | cpp | welemento_aplugin.cpp | #include "welemento_a.h"
#include "welemento_aplugin.h"
#include <QtCore/QtPlugin>
wElemento_APlugin::wElemento_APlugin(QObject *parent)
: QObject(parent)
{
m_initialized = false;
}
void wElemento_APlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
if (m_initialized)
return;
... |
6a1d55026407e05f6c0e2597c7bd11bccaa99768 | 41495754cf8b951b23cece87b5c79a726748cff7 | /Solutions/UVA/10306.cpp | 7f2334d6def6da577c3fd6cc38a5f4cb63dc5e69 | [] | no_license | PedroAngeli/Competitive-Programming | 86ad490eced6980d7bc3376a49744832e470c639 | ff64a092023987d5e3fdd720f56c62b99ad175a6 | refs/heads/master | 2021-10-23T04:49:51.508166 | 2021-10-13T21:39:21 | 2021-10-13T21:39:21 | 198,916,501 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,818 | cpp | 10306.cpp | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define endl '\n'
#define f first
#define s second
#define ub upper_bound
#define lb lower_bound
#define pb push_back
#define all(c) (c).begin(), (c).end()
#define ... |
440e517fe0d36b7974591c786b5b4e3a94003b9a | 38bd1cf9e52ea23b43223d53d8139aad52bb1c70 | /cpp/iedriver/Browser.h | 23b0084b9a881617dbea8ba8a31ee6d5eaab255d | [
"Apache-2.0"
] | permissive | SeleniumHQ/selenium | 46d9553e3a45412a7540dd3f7d1f34be6ef42b1b | cc41a883b5138962c6b4408a0fdf4e932bd08071 | refs/heads/trunk | 2023-09-03T22:56:56.403484 | 2023-09-02T19:20:45 | 2023-09-02T19:20:45 | 7,613,257 | 30,383 | 9,671 | Apache-2.0 | 2023-09-14T18:47:42 | 2013-01-14T21:40:56 | Java | UTF-8 | C++ | false | false | 6,396 | h | Browser.h | // Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the "License");
// you may... |
94e0f353a128c5e805470c4f97b0124a43c01214 | 39bad846f4e8795e47f7ffef5d75faf4bfb7a5e2 | /calculator.cpp | 92a841ed115072cd51a3c5a4aa1f4699e1bbd4f4 | [] | no_license | kino6052/hubert | 1b61c4d044748c327ab6b71ee86ddcebbfca5f3b | bc880959eca4724d571e76e599e27b8eff473a98 | refs/heads/master | 2021-01-10T08:25:19.271524 | 2015-12-11T04:51:45 | 2015-12-11T04:51:45 | 47,732,598 | 0 | 0 | null | 2015-12-11T04:51:46 | 2015-12-10T02:27:30 | C++ | UTF-8 | C++ | false | false | 1,245 | cpp | calculator.cpp | #include "data.h"
#include "calculator.h"
#include <string>
using namespace std;
Calculator::Calculator(){arrayLength=0;};
void Calculator::addIdAndWeight(int idInput, int weightInput){
int counter=0;
while (counter<arrayLength){
if (idArray[counter] == idInput){ //if id is in the array
co... |
7fa8ad56079e95ced2d847537aeebc4a062e439f | aa34ffe019da12cac9dc41e1ec939de31bbf3134 | /gamecrash/src/GameCloud.cpp | 868aac29d265416995fe2088ab7539852276cbc7 | [] | no_license | alexeyqian/study | 1ce7e43bf9058e2624735380be7f0cb4024884b1 | 8995bae5aeaacb3a7da82022c65aa04b74a06f0a | refs/heads/master | 2023-06-26T12:21:43.304638 | 2021-08-01T08:21:24 | 2021-08-01T08:21:24 | 391,025,286 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | cpp | GameCloud.cpp | #include "./include/GameCloud.h"
#include <SFML/Graphics.hpp>
using namespace sf;
void GameCloud::setup() {
Texture textureCloud;
textureCloud.loadFromFile("../src/graphics/cloud.png");
for(int i = 0; i < DEFAULT_CLOUD_COUNT; i++){
Sprite cloud;
cloud.setTexture(textureCloud);
clo... |
91a9f310c8d3d6fb0e4663f7e62081e9a821c0c8 | f81124e4a52878ceeb3e4b85afca44431ce68af2 | /re20_2/processor44/5/phi | b9e28cea1db0ca8836fda0329b47fae85d44fc82 | [] | no_license | chaseguy15/coe-of2 | 7f47a72987638e60fd7491ee1310ee6a153a5c10 | dc09e8d5f172489eaa32610e08e1ee7fc665068c | refs/heads/master | 2023-03-29T16:59:14.421456 | 2021-04-06T23:26:52 | 2021-04-06T23:26:52 | 355,040,336 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,413 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
ae394e2d81b192a1692c2b8bd1d19425fe46130b | df7073074ff14a6854aac6ad64f996dee9237811 | /gzw_valueid.cpp | 7907caa72e6c55d2b6e87766690a8b7ae01e423f | [
"MIT"
] | permissive | aldrinleal/goopenzwave | 8931840f7b69aaaeb53b05a9c897b9ae829f9c2c | 04a0f3ef63288b302bd725c5382071e9f1b005c4 | refs/heads/master | 2020-05-31T06:14:30.622087 | 2019-06-04T06:10:18 | 2019-06-04T06:10:18 | 190,137,895 | 0 | 0 | MIT | 2019-06-04T05:52:26 | 2019-06-04T05:52:26 | null | UTF-8 | C++ | false | false | 3,409 | cpp | gzw_valueid.cpp | #include "gzw_valueid.h"
#include <value_classes/ValueID.h>
//
// Public member functions.
//
uint32_t valueid_getHomeId(valueid_t v)
{
OpenZWave::ValueID *valid = (OpenZWave::ValueID*)v;
return valid->GetHomeId();
}
uint8_t valueid_getNodeId(valueid_t v)
{
OpenZWave::ValueID *valid = (OpenZWave::ValueID... |
8347bfdcffe0bfca623d4392b992c1189845c588 | 9de18ef120a8ae68483b866c1d4c7b9c2fbef46e | /src/SessionSetup/ProcessItemModel.cpp | b0a4294396952666e2c8d1444273f865dfe56a99 | [
"BSD-2-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | google/orbit | 02a5b4556cd2f979f377b87c24dd2b0a90dff1e2 | 68c4ae85a6fe7b91047d020259234f7e4961361c | refs/heads/main | 2023-09-03T13:14:49.830576 | 2023-08-25T06:28:36 | 2023-08-25T06:28:36 | 104,358,587 | 2,680 | 325 | BSD-2-Clause | 2023-08-25T06:28:37 | 2017-09-21T14:28:35 | C++ | UTF-8 | C++ | false | false | 5,320 | cpp | ProcessItemModel.cpp | // Copyright (c) 2020 The Orbit 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 "SessionSetup/ProcessItemModel.h"
#include <QFlags>
#include <algorithm>
#include <functional>
#include <iterator>
#include "GrpcProtos/proces... |
b4729672ffd70e5393ba9764b1d1535bc186adc3 | 527cf55f84cfac6585130f20b0b50e887112322e | /inc/ktl/wdx.h | 7e97fac087c713a82277fdee9b9dac477d07956f | [
"MIT"
] | permissive | cnsuhao/ktl | 282ff3573f5e63096ccbb3536c35dfe34f1a0b08 | d0f9e354cf6ebcfb7568596aaee224d4bd9c9a2b | refs/heads/master | 2021-05-31T08:09:06.031181 | 2016-07-12T09:10:56 | 2016-07-12T09:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,807 | h | wdx.h | #pragma once
#include <wdf.h>
#include <utility>
#include <memory>
#include <cstdint>
#include <new>
#include "code_annotation.h"
namespace ktl
{
// WDF does not call our object's constructor for us, so we need to call it.
template<typename T>
class wdx_object_context
{
alignas(T) std::uint8_t buffer[sizeof(T)]... |
c8c107d6b2bdaea4f7a3818c496a9df6452c527a | 87d8af054e17e0c346b6f59636402883fbf0158d | /Cpp/SDK/SirensAnimation_classes.h | 7b1d9660235db8b3ff9fb67883e2d54c88420ca1 | [] | no_license | AthenaVision/SoT-SDK-2 | 53676d349bca171b5e48dc812fd7bb97b9a4f1d8 | 4a803206d707a081b86c89a4b866a1761119613d | refs/heads/main | 2023-03-20T10:48:21.491008 | 2021-03-10T21:55:10 | 2021-03-10T21:55:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,293 | h | SirensAnimation_classes.h | #pragma once
// Name: sot, Version: 4.2
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Classes
//----------------------------------------------------------------... |
caee339f1b38d05053c9a74188b5706fa0a13368 | 0d43fe5c5d119a733c47e3fc3a6c294e93ac7c3a | /Client.h | 106b9e39a614ebcc5d9d6ef7ca11d19a2a4a6edb | [] | no_license | DeltaHarbinger/OOPProject | fb409f04ff158146a92da7016fc5e229c482b1d1 | 77b3f97fff96230ace40d24abc5a3ecbefa54c60 | refs/heads/master | 2021-05-07T21:51:32.801943 | 2017-11-18T04:17:16 | 2017-11-18T04:17:16 | 109,067,986 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,118 | h | Client.h | //Created by Philip newman and Brandon Chung
#ifndef CLIENT_H
#define CLIENT_H
#include <string>
class Client
{
public:
Client()
{
this -> fName = "";
this -> lName = "";
this -> telephoneNo = "";
this -> address = "";
this -> email = "";
}
Client(std::string fName, std::string lName, std::string t... |
7b49133fabb87be2de052a97cca64a2ed74693b8 | c89e5dbdd73a6a0e1b9f299856d4ae3e8a463e83 | /include/Lz/detail/TakeEveryIterator.hpp | 29722715e3e64662992ad89c431bb3887cf2dc24 | [
"MIT"
] | permissive | ExternalRepositories/cpp-lazy | 208319bb21020eeb35d564e76988ec98168d390b | df9295a5a2a7f4c3ef4657f73d5e84b576fc82c3 | refs/heads/master | 2023-07-13T16:22:05.047584 | 2021-08-16T16:44:26 | 2021-08-16T16:44:26 | 375,169,594 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,499 | hpp | TakeEveryIterator.hpp | #pragma once
#ifndef LZ_TAKE_EVERY_ITERATOR_HPP
# define LZ_TAKE_EVERY_ITERATOR_HPP
# include "LzTools.hpp"
namespace lz {
namespace internal {
template<class Iterator>
class TakeEveryIterator {
using IterTraits = std::iterator_traits<Iterator>;
public:
using value_type = typename IterTr... |
f9781709b0be11b8d50e2e7597fc6d235acdc063 | e9fffeaa872969f9dc384fb44c245df34aae946c | /StarEngine/Glow.h | ff086038ba1b9e708e53190043b1a5d699d0a09f | [] | no_license | StarfighterDevTeam/StarFighter | ab4252ef886fadc3fa811de01da93737a59b5386 | 4c6b5c8f3b3f73104094cfb7c66b45b8d3864388 | refs/heads/master | 2022-10-28T09:08:57.837077 | 2016-10-04T16:18:00 | 2016-10-04T16:18:00 | 15,851,654 | 2 | 0 | null | 2015-08-16T08:52:00 | 2014-01-12T21:50:44 | HTML | UTF-8 | C++ | false | false | 740 | h | Glow.h | #ifndef GLOW_H_INCLUDED
#define GLOW_H_INCLUDED
#include "Globals.h"
#include "SEGame.h"
#include "GameObject.h"
class Glow : public GameObject
{
public :
Glow(GameObject* parent, sf::Color color);
Glow(GameObject* parent, sf::Color color, int glow_thickness, int stroke_size = 0);
Glow(GameObject* parent, sf::Colo... |
978c1b467557ddcb8cf3a61fc592df65d057c72d | 45aeb07ddc93ee8d1c3a2f3c65329ff98ba1d6eb | /libhttpserver/HTTPParser.cpp | 443c4633e392d6de83b9fb44be78d70e897b1fea | [
"MIT"
] | permissive | harsath/Asynchronous-HTTP-Framework-CPP | ef782d57c3eae81052227f477201bb5e1eba9c8a | 140fb59997e9049bb4ca89806df527556ed890a0 | refs/heads/master | 2023-03-10T08:18:38.213469 | 2021-02-25T06:06:22 | 2021-02-25T06:06:22 | 276,506,846 | 0 | 0 | MIT | 2021-02-21T15:26:18 | 2020-07-01T23:58:06 | C++ | UTF-8 | C++ | false | false | 18,287 | cpp | HTTPParser.cpp | #include "HTTPParser.hpp"
#include "HTTPMessage.hpp"
#include "HTTPHelpers.hpp"
#include "io/IOBuffer.hpp"
#include <cctype>
#include <memory>
#include <optional>
#include <string>
namespace {
#define str3cmp_macro(ptr, c0, c1, c2) *(ptr+0) == c0 && *(ptr+1) == c1 && *(ptr+2) == c2
static inline bool str3cmp(const cha... |
71c8f6f5a1d9da0936a5fb3dd7d95cf1c7e55fa4 | 9a266c4a101ce7174081debec864c38892c5003c | /CoffeeFW/ManualController.cpp | 74114caef9d76a3a7059a63dce952f759a483bac | [] | no_license | Tomek-Stolarczyk/CoffeeRoaster | 2e9c2528b788c3bff952c9253ccdc9f91872496d | e212fdbf811d43340d6ad24d34224032ffeb1f1c | refs/heads/master | 2020-03-20T19:10:37.091447 | 2019-11-29T04:50:40 | 2019-11-29T04:50:40 | 137,625,039 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 680 | cpp | ManualController.cpp | #include "ManualController.hpp"
Updateable* CreateManualController()
{
return new ManualController<Pins::kManualControllerEnable,
Pins::kManualControllerValue>();
}
template<AnalogPin enable, AnalogPin value>
bool const ManualController<enable, value>::IsOverrideEnabled() const
{
ret... |
6f93818ea3952eb2813e6179ca34833c76217356 | 2270ceeef5a852f6a457ad63efa9d4b0cda668e9 | /MCG_GFX_Framework/Sphere.cpp | 44e45c3e317220ddb7331c24489e808e5c2a68be | [] | no_license | BitRapture/MCG-Raytracer | d75af953dd410a0847f616b10434cc83bbcc27a2 | 44782a208120ee260e4a2eea8688784e83246629 | refs/heads/master | 2023-04-15T00:45:37.068119 | 2021-05-04T00:09:39 | 2021-05-04T00:09:39 | 360,754,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,571 | cpp | Sphere.cpp | #include "Sphere.h"
// Sphere
namespace MRT
{
bool Sphere::Intersect(Ray& _ray)
{
// Get ray origin and direction
glm::fvec3 rO = _ray.GetOrigin(), rD = _ray.GetDirection();
// Calculate vector from ray origin to sphere origin
glm::fvec3 lRO = position - rO;
// Project lRO length onto ray direction
floa... |
b993ce9ae935f5ce36a055be9434e2926d5f3c8a | 9296e9fde8d6d2342e4addbe2cdcb416c176b18a | /222/d.cpp | a08e7f3e2566cda983323a98af4d4ae0af6d0772 | [] | no_license | flxf/codeforces | cd816dcbd79e88b1884c72c3e091e516da069962 | f0c12bc81ac9dfeb816cfdfc9c57d29ad5a756f8 | refs/heads/master | 2016-09-05T16:23:37.239451 | 2014-02-17T07:26:57 | 2014-02-17T07:26:57 | 16,295,874 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 616 | cpp | d.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int a[100000];
int b[100000];
int main() {
int n, x;
cin >> n >> x;
for (int i = 0; i < n; i++) {
cin >> a[i];
}
for (int i = 0; i < n; i++) {
cin >> b[i];
}
sort(a,a+n);
reverse(a, a+n);
sort(b,b+n);
int wins = 0;
int sta... |
e0c1c711331e004e4f73328c3a87a80d3270ae6b | 964b754233ab5990b16b9d395ae7bb9fecbf91a0 | /src/xelect/xutil.h | b600e657d436c12fb5f2ebc25bb9346dfaafbb67 | [] | no_license | Yarkin/x-research-prototype | 351a2cea9a0dd5fdcb65ef353ec93b50c1112fe7 | 695c7d7f273e305c881d81d0a37e490714ea6665 | refs/heads/master | 2020-04-12T13:59:24.032176 | 2018-12-25T01:46:06 | 2018-12-25T01:46:06 | 162,538,417 | 1 | 0 | null | 2018-12-20T06:47:27 | 2018-12-20T06:47:27 | null | UTF-8 | C++ | false | false | 1,782 | h | xutil.h | #pragma once
#include "xdefine.h"
#include "xblock.h"
#include <time.h>
NS_BEG2(top, elect2)
class xutil {
public:
static std::string format_str(const std::string &fmt ...);
// for struct xelect_result
static std::string to_string(const xshard &shard);
static std::string to_string(const xzone &zone)... |
7733b64a7dbe7bbf674639739fe5c848dbcfc2a7 | 9d6b4a4a8a99775fa99c241230dfa3aca78d2ca2 | /StackSimulateQueue/main.cpp | fc32ec3904277d689e0d99044527d92fe2b9ed64 | [] | no_license | W-David/pat-learn-cpp | 65c6510d896ea86efb25b7b43570533ebfd238c6 | 86aa735d416951a217d190e277ec8896b8905ee3 | refs/heads/master | 2020-12-15T20:52:04.154230 | 2020-03-03T15:03:42 | 2020-03-03T15:03:42 | 235,250,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 837 | cpp | main.cpp | #include <iostream>
#include <stack>
using namespace std;
stack<int> s1,s2;
int main() {
int n,m; cin>>n>>m;
if(n < m) swap(n,m);
char c;
while(true){
cin>>c;
if(c == 'T') break;
else if(c == 'A'){
int i; cin>>i;
if(s2.size() == m && s1.size() == m) cout<<... |
91b8054df03a75fa92edc68c83eb07dfec570705 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/mutt/gumtree/mutt_repos_function_987_mutt-1.6.2.cpp | 636de5cde5a971b56404329b9ccdfe061fe2f6d8 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,655 | cpp | mutt_repos_function_987_mutt-1.6.2.cpp | static int external_body_handler (BODY *b, STATE *s)
{
const char *access_type;
const char *expiration;
time_t expire;
access_type = mutt_get_parameter ("access-type", b->parameter);
if (!access_type)
{
if (s->flags & M_DISPLAY)
{
state_mark_attach (s);
state_puts (_("[-- Error: message... |
bb57e4f288fcfb0483b6ebc0636fa58f486602eb | 875f360a9d075d1c165706f806eae3901eb7e366 | /src/Project.cpp | b6fddd8179af5f568236ba40600010a187be80e9 | [
"MIT"
] | permissive | lawadr/gridiron | d435483ecaac5d4d5f8f0f35bd873afed05480c2 | 950aa96a7574a825fb3eb56e802f54c311587413 | refs/heads/master | 2021-01-18T15:23:07.862350 | 2013-01-28T20:41:33 | 2020-04-18T19:46:38 | 7,512,138 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,580 | cpp | Project.cpp | /*
Copyright (c) 2012-2013 Lawrence Adranghi
See LICENSE in root directory.
*/
#include "Project.h"
#include <QtCore/qdir.h>
#include <QtCore/qtextstream.h>
#include <QtXml/qdom.h>
Project2::Project2() {
}
Project2::~Project2() {
}
bool Project2::open(const QString& fileName) {
QFile file(fileName);
if (!f... |
99950971e23b3d785a6f025cd2aa2297352af5e8 | 52ecc81aba92258924ff6bbe62e536e1ad85ff03 | /3d/pygame-soft3d/3d.build/__helpers.hpp | 86a6a4d0cf5efc05ddc49312465da50c4a37739f | [] | no_license | mdurrer/cgd | df02709a9b5db7d3696f82c521405f1ada67febf | bbbb2960e2c47531b464f888146d758ca96c5b64 | refs/heads/master | 2020-05-21T12:28:54.901920 | 2018-07-25T20:06:48 | 2018-07-25T20:06:48 | 52,598,365 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,638 | hpp | __helpers.hpp | #ifndef __NUITKA_TUPLES_H__
#define __NUITKA_TUPLES_H__
NUITKA_MAY_BE_UNUSED static PyObject *MAKE_TUPLE1( PyObject *element0 )
{
PyObject *result = PyTuple_New( 1 );
if (unlikely( result == NULL ))
{
throw PythonException();
}
assertObject( element0 );
PyTuple_SET_ITEM( result, 0, IN... |
7fb6096172958e337ee5d6674935246ab07fcf52 | 9c60aada9d6c0b7a9e128915546187481f5d0436 | /HK_FlippingBits.cpp | 6eba45b53a79de6fe8b48cba4a5d5151f4c6ac9f | [] | no_license | rukonfahim/hackerrank | 5975cc962a6d1b7e0bb25d7e621193201badff4e | b395983cec275ce1c4ced5a2674fd7a24763b911 | refs/heads/master | 2022-03-04T08:01:37.251500 | 2019-11-17T08:26:21 | 2019-11-17T08:26:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | cpp | HK_FlippingBits.cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int i;
string s;
cin >> s;// cout<<s[9]<<endl;
if (s[8] == 'P' || s[8] == 'p') {
i = (int)s[0] - 48;//cout << i << endl;
i = (int)s[1] - 48;//cout << i << endl;
if (i < 12) {
i += 12;
s[0] = (i / 10) +... |
acc3d08b3c5dde2a0ac68bbab322dd8170b5b44d | 5f3e48cbd471ff75f7ad93c4f27ef9c6ba2f2d72 | /motor_on/motor_on.ino | 9c80fe51a7bec35cd2e97362070f275e8fbc2493 | [] | no_license | seven320/-Target_on_with_Arduino | b96a5eda06c6c95f2fbbe0a2d31e7fe31d950253 | e4bda452244d2ab4e00d0cf472e002adc0007890 | refs/heads/master | 2023-08-07T18:50:02.660157 | 2023-07-29T02:29:58 | 2023-07-29T02:29:58 | 198,784,036 | 1 | 0 | null | 2020-03-12T03:04:24 | 2019-07-25T07:49:15 | C++ | UTF-8 | C++ | false | false | 891 | ino | motor_on.ino | #include <Stepper.h>
#define MOTOR_1 (4) // blue
#define MOTOR_2 (5) // pink
#define MOTOR_3 (6) // yellow
#define MOTOR_4 (7) // orange
#define SW (3)
#define MOTOR_STEPS (2048)
// ライブラリが想定している配線が異なるので2番、3番を入れ替える
Stepper myStepper(MOTOR_STEPS, MOTOR_1, MOTOR_3, MOTOR_2, MOTOR_4);
void setup() {
... |
b4dc7f57536aec3702dffd667cb913ee5a844bad | 6a99735bcda67e9ed2721c6ebecaa548096e3e38 | /最小栈/minStack.cpp | e909fe9faaf3a4631b588cbdf176f4fa45b6f38b | [] | no_license | ghworld/algorithm | 39a89f4cbfaa5fb0a3d8c8e2818af8020df2e2a5 | cfeb1557f8b42cf28313bd9d3f2aaa0f2e986e1c | refs/heads/master | 2021-01-23T10:20:26.731427 | 2018-09-02T07:53:56 | 2018-09-02T07:53:56 | 93,052,202 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 220 | cpp | minStack.cpp | //
// Created by guohao on 2/22/18.
//
//最小栈
#include <vector>
#include <iostream>
#include <stack>
typedef int ElemenType;
using namespace std;
class Solution {
void push(){};
ElemenType pop(){};
};
|
53286732cca62c3d7e9fc337419bb0ce9270521f | 5178f07f43c968f8fba0975558b8d07d268d1cb6 | /Core/src/Search.h | 8b4ac19152f7875dd6cef04db32ca0a22dc36350 | [] | no_license | dominichofer/Cassandra_new | 55adf1f487036f8b44875919e2d696222d96e51f | a85216f5e2658ebd0acd1dc40fe07f1fa42a4f62 | refs/heads/master | 2023-07-25T06:44:55.602042 | 2019-03-22T15:03:01 | 2019-03-22T15:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,032 | h | Search.h | #pragma once
#include "Position.h"
#include <chrono>
#include <cstdint>
#include <memory>
class Engine;
namespace Search
{
constexpr int infinity = +65;
struct CSpecification
{
int8_t depth;
uint8_t selectivity;
CSpecification(int8_t depth, uint8_t selectivity);
static CSpecification SolveExact(CPosition... |
de7e1efff8c99ea440e113b527056be05e61a497 | 41bcc244a2b1307ca4a15c6587cbdbb5bfc89690 | /WorldSkillKorea/HowToPlay.h | 248f3137079865ac18e139eb7d9cf24224bcb6b3 | [] | no_license | Dongjun-Jii/WorldSkillKorea_Daejeon | 427ab8fc935f5fcb997dda849a770e4fdc07a741 | 2c446d068c323cd0cd6576f8ea31cfa17762424f | refs/heads/master | 2023-01-24T13:05:01.940852 | 2017-05-19T06:50:42 | 2017-05-19T06:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | h | HowToPlay.h | #pragma once
#include "GameLevel.h"
#include "Background.h"
class HowToPlay : public GameLevel {
public:
HowToPlay() = delete;
HowToPlay(HowToPlay&) = delete;
HowToPlay(ID3D11Device* device);
virtual ~HowToPlay();
virtual void update(float deltaTime) override;
virtual void draw(ID3D11DeviceContext* deviceContex... |
08fd77555be8f96598d4ac00d12f8a2351325363 | b3e525a3c48800303019adac8f9079109c88004e | /nic/metaswitch/stubs/hals/pds_ms_rtr_mac.cc | bf728753cdf3f6d44a1da2e90f2e08b846ca6cde | [] | no_license | PsymonLi/sw | d272aee23bf66ebb1143785d6cb5e6fa3927f784 | 3890a88283a4a4b4f7488f0f79698445c814ee81 | refs/heads/master | 2022-12-16T21:04:26.379534 | 2020-08-27T07:57:22 | 2020-08-28T01:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | cc | pds_ms_rtr_mac.cc | //---------------------------------------------------------------
// {C} Copyright 2019 Pensando Systems Inc. All rights reserved
// Router MAC integration
//---------------------------------------------------------------
#include "nic/metaswitch/stubs/hals/pds_ms_rtr_mac.hpp"
#include <nar_fte.hpp>
#include <nar_arp_... |
b9f60da1da9e7449705eeeb12ee2b23c2d48b955 | dbe617f081a09df8698b70ec08af25dd827b3f2d | /algorithm/topology/Wedge/WMesh.cpp | 899ea221ad6aba516efe1bcdb6010ebf6939c0e6 | [] | no_license | kabukunz/meshlib | 827052ff3c11fea772deb85eb26ce934be79d12b | 329d405dd210b2dde05cfe480a79b9c15ac01ffe | refs/heads/main | 2023-06-16T00:44:54.397676 | 2021-07-09T10:31:15 | 2021-07-09T10:31:15 | 384,402,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,436 | cpp | WMesh.cpp | /*!
* \file WMesh.cpp
* \brief Implement CWMesh class
* \author David Gu
* \date Document 10/11/2010
*
* Slice a mesh along its sharp edges to form a new open mesh.
*
*/
#include "WMesh.h"
using namespace MeshLib::Topology;
/*! CWedge constructor
* \param half_edge the first corner of the wedge
... |
b78918081d4c281105e09cd90b9be8f410325d5e | ae7ec837eb954d7be7878f367aa7afb70d1a3897 | /litwindow/result.hpp | 1cd2f11177467a63a3f3cc9a46335381eaae3dee | [
"MIT",
"BSD-3-Clause"
] | permissive | hajokirchhoff/litwindow | 0387bd1e59200eddb77784c665ba921089589026 | 7f574d4e80ee8339ac11c35f075857c20391c223 | refs/heads/master | 2022-06-18T20:15:21.475921 | 2016-12-28T18:16:58 | 2016-12-28T18:16:58 | 77,551,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,025 | hpp | result.hpp | /*
* Copyright 2004, Hajo Kirchhoff - Lit Window Productions, http://www.litwindow.com
* This file is part of the Lit Window Library. All use of this material - copying
* in full or part, including in other works, using in non-profit or for-profit work
* and other uses - is governed by the licence contained in the Lit... |
2b80a0805ca2282b11de7c2c47ce91371d4d5313 | 377b1a9f30df8966e8b0f86500848465eb39d7f2 | /src/systems/Updater.cpp | 810125298e95fa7649737d99c4f56ecc0e721c74 | [] | no_license | mdzidko/Simple2DEngine | 08194eb35227687cc474a97be188ebe81117779e | 6ffad5df3498b3d1e1573ba1d844959be18096ec | refs/heads/master | 2021-04-06T00:37:17.662702 | 2018-08-13T20:15:26 | 2018-08-13T20:15:26 | 125,253,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | cpp | Updater.cpp | #include <algorithm>
#include "Updater.h"
void Updater::Refresh()
{
entities.erase(std::remove_if(entities.begin(), entities.end(),
[](Entity* ent) { return !ent->IsAlive(); }), entities.end());
}
void Updater::AddEntityToContainer(Entity *entity)
{
entities.push_back(entity);
} |
4a4259a206caa15b538b100211612d9d1b11cbfd | 2acbfdf0d2bb09ba535d71e5f00a2a41335bc6f5 | /headers/HighScoreSubmission.hpp | 70d124b8a2f572d99db4664896057c21f2e8472e | [] | no_license | Adikso/NecroDancerHeaders | d5ddc01df881d082230506ddc2bdfaf3e56c0df3 | 228e14c0e0420105366b552228e25a8b6a63b8c0 | refs/heads/master | 2020-04-02T23:03:05.824455 | 2018-11-16T20:00:27 | 2018-11-16T20:00:27 | 154,854,162 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,393 | hpp | HighScoreSubmission.hpp | // Generated automatically. Do not edit!
#ifndef _HighScoreSubmission_
#define _HighScoreSubmission_
class String;
#include "Object.hpp"
class HighScoreSubmission : public Object {
public:
String * pendingSubmitLeaderboard;
int submissionAttemptNumber;
bool submitted;
int pendingSubmitScore;
int p... |
69d4a93f7d52a68be27c9bc475e766c2e502e3f5 | 680440f5e59eb2157c1ecb41fd891880ac47c459 | /XJOI/Level1/XJOI1203 数组-密码破译/password.cpp | a01ab2f87388c1b20a982b7cb1235baf51c581ba | [] | no_license | Skywt2003/codes | a705dc3a4f5f79d47450179fc597bd92639f3d93 | 0e09198dc84e3f6907a11b117a068f5e0f55ca68 | refs/heads/master | 2020-03-29T09:29:54.014364 | 2019-11-15T12:39:47 | 2019-11-15T12:39:47 | 149,760,952 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | cpp | password.cpp | #include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
const int maxn=105;
int main(){
char ch=getchar();
while (ch!=-1){
if (ch>='a'&&ch<='z'){
if (ch=='z') putchar('a'); else putchar(ch+1);
} else putchar(ch);
ch=getchar();
}
return 0;
}
|
4403f48da3ac21b7f84a22bc7b1e846a4b46ff9f | 953f2b90c99d4dc305dd02c141efce2e0c308199 | /ardtool.cpp | 265dd270be03831c5a647d856aef3e786c53a4a8 | [] | no_license | Phitherek/ardtool | a8684cce976102001715314a631ba2eba27262d8 | 2887170292edbff289a05a0cc10585545bf409b5 | refs/heads/master | 2021-03-12T20:06:45.964557 | 2014-10-09T00:10:52 | 2014-10-09T00:11:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,809 | cpp | ardtool.cpp | #include "ConfigFile.h"
#include "Project.h"
#include "Exceptions.h"
#include <iostream>
#include <cstdlib>
#include <string>
#include <exception>
#include <unistd.h>
using namespace std;
using namespace ARDTool;
void show_help(int argc, char** argv) {
cout << "Usage: " << argv[0] << " <project_name|command>" << e... |
e908cabdbbe9d133109eb24ba4304cfae81daa30 | 7f25ac596812ed201f289248de52d8d616d81b93 | /Manjuska/light1215.cpp | 4401ec75d759769700c51fe0aeb3a799da50a40d | [] | no_license | AplusB/ACEveryDay | dc6ff890f9926d328b95ff536abf6510cef57eb7 | e958245213dcdba8c7134259a831bde8b3d511bb | refs/heads/master | 2021-01-23T22:15:34.946922 | 2018-04-07T01:45:20 | 2018-04-07T01:45:20 | 58,846,919 | 25 | 49 | null | 2016-07-14T10:38:25 | 2016-05-15T06:08:55 | C++ | UTF-8 | C++ | false | false | 618 | cpp | light1215.cpp | #include<stdio.h>
#include<string.h>
#include<iostream>
using namespace std;
long long gcd(long long a,long long b)
{
return b == 0 ? a : gcd(b, a%b);
}
long long lcm(long long a,long long b)
{
return a*b / gcd(a, b);
}
int main()
{
int T, num = 1;
cin >> T;
long long a, b, c, m, t, g, l;
while(T--)
{
cin >> a... |
0bf90fbc442fb427563862ab2fc086e4edddf60f | 986964448a8813d5b9116b4f984543db043b6224 | /src/ui/player_edit_view/music_slider.h | 689ff537b37b70dbec777ddb5036cf6848f5c694 | [] | no_license | Lenium37/SigLight | 3c34c25a3ab673012685b3d535467049bed90bcf | cdc639f7667a3ee082446925fd7c4b9c9e7315df | refs/heads/master | 2021-07-12T04:16:35.385565 | 2020-10-15T12:01:50 | 2020-10-15T12:01:50 | 213,935,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | h | music_slider.h | #ifndef MUSIC_SLIDER_H
#define MUSIC_SLIDER_H
#include <QObject>
#include <QGraphicsItem>
#include <QPainter>
class Music_slider : public QGraphicsItem
{
Q_INTERFACES(QGraphicsItem)
public:
Music_slider(int h);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsIte... |
f14e46d6cdc53c274deffde03773128c40d37d5c | 649242b5dc401b2626c1d2b8de09656867299b0e | /modules/segment-tree-app/src/segment_tree.cpp | b4fd51852e94d47264d99d76b0144d03595f02de | [
"CC-BY-4.0"
] | permissive | LuckyDmitry/devtools-course-practice | 45db4f988b38c08365ed8b96f2b6cf3ae8414ae6 | 2384acf591161b8a90c3548929b2425a72d93c50 | refs/heads/master | 2022-10-06T03:50:15.806822 | 2020-06-07T17:42:39 | 2020-06-07T17:42:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,191 | cpp | segment_tree.cpp | // Copyright 2020 Boganov Sergei
#include "include/segment_tree.h"
#include <vector>
#include <algorithm>
#include <string>
#include <climits>
SegmentTree::SegmentTree(int size) {
if (size <= 0) {
throw std::string("Cannot be negative or zero size");
} else {
_size = size;
tree.resize(... |
44e7b5aaef4f0da6d81926e8393a914b547455ee | 06c12a65e1c6c8dd67b27db1d8aabd9589c206dd | /FW/Project/GameEngine/Source/Core/Memory/Memory.cpp | b814ebed537809c5497a4c8cb718c01eefebed37 | [] | no_license | aik6980/GameFrameworkCpp | 2b64b9e49033199c6eb021a106e5d264c1e2044d | c7ce5efd63ab5251800d84477e4a5cfaf56119c3 | refs/heads/master | 2021-01-19T10:58:50.317980 | 2014-07-16T07:55:23 | 2014-07-16T07:55:23 | 7,741,813 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 215 | cpp | Memory.cpp | #include "stdafx.h"
#include "Memory.h"
void* operator new (size_t size, size_t alignment)
{
return _aligned_malloc(size, alignment);
}
void operator delete (void* ptr, size_t alignment)
{
_aligned_free(ptr);
} |
cfde13c637f6302864d7d3ff673bffa12564a262 | dbbee1b50e56ca17c48577062a36bc936dda72aa | /src/x509/error.cpp | 1399ed3347dd3db98a63b895f667057e1791c9ff | [] | no_license | robertblackwell/x509_certificate_library | 11afa79e610ed3837c9be9327c41633b409cd6d4 | 6efc7cd37ea020a8233b775907e81d27ba9fa430 | refs/heads/master | 2021-10-11T09:07:23.215115 | 2021-10-03T04:33:50 | 2021-10-03T04:33:50 | 240,992,929 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,765 | cpp | error.cpp | //
// error.cpp
// openssl_10_6
//
// Created by ROBERT BLACKWELL on 10/26/17.
// Copyright © 2017 Blackwellapps. All rights reserved.
//
#include <stdio.h>
#include <string>
#include <stdlib.h>
#include <malloc.h>
#include <sstream>
#include <openssl/bio.h>
#include <exception>
#include <openssl/err.h>
#include ... |
bb9dfd1ec2ba9d355834ca58fa389415aa8ec5f8 | dbc0e3582d65bcf9d8fba29d872d6407454f9e28 | /CodeForces/1263A.cpp | 0f079292b1ada41b6886e47bf0f39466432c0f2a | [] | no_license | sirAdarsh/CP-files | 0b7430e2146620535451e0ab8959f70047bd7ea2 | 8d411224293fec547a3caa2708eed351c977ebed | refs/heads/master | 2023-04-05T09:07:21.554361 | 2021-04-08T19:57:33 | 2021-04-08T19:57:33 | 297,582,418 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 789 | cpp | 1263A.cpp | /*----- || Hare Krishna || -----*/
/* "WHY DO WE FALL, BRUCE?" */
#include<bits/stdc++.h>
#define ll long long
#define endl '\n'
#define elif else if
#define PI 3.1415926535897932384
#define MOD 1000000007
using namespace std;
char alpha[26] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r... |
1140956fee57e95ad2eec357945a0a6325118ff1 | 3195a10dfa0cb342135634b7dfd539f4dc799c25 | /include/Entities/Sapheer.h | 6bc160e16477f9cf0c591837bff7e8a989c88ce4 | [] | no_license | antonioganea/CrystalDM | d5c04c4a4157498054701d156f10f561cea0422a | 46e3e6a898fe61efff39f622b153b00dd8eaf318 | refs/heads/master | 2021-01-16T17:58:43.127833 | 2017-10-21T18:13:39 | 2017-10-21T18:13:39 | 100,030,783 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,237 | h | Sapheer.h | #ifndef SAPHEER_H
#define SAPHEER_H
#include "Crystal.h"
#include "RubieLaser.h"
#include <SFML/Graphics/Sprite.hpp>
#include "Particle.h"
class Sapheer : public Crystal{
public:
Sapheer();
void draw();
void update( float dt );
bool isDead();
bool dead;
... |
2d25d4e4b193ae3fb3d0c4e1b61a8dd3d99ef057 | 5241a49fc86a3229e1127427146b5537b3dfd48f | /src/Sparrow/Tests/TimeDependent/CISTestCalculation.cpp | 302885b2d29f985da611f9139863da9be90d29aa | [
"BSD-3-Clause"
] | permissive | qcscine/sparrow | 05fb1e53ce0addc74e84251ac73d6871f0807337 | f1a1b149d7ada9ec9d5037c417fbd10884177cba | refs/heads/master | 2023-05-29T21:58:56.712197 | 2023-05-12T06:56:50 | 2023-05-12T06:56:50 | 191,568,488 | 68 | 14 | BSD-3-Clause | 2021-12-15T08:19:47 | 2019-06-12T12:39:30 | C++ | UTF-8 | C++ | false | false | 32,106 | cpp | CISTestCalculation.cpp | /**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* See LICENSE.txt for details.
*/
#include <Core/Interfaces/Calculator.h>
#include <Core/ModuleManager.h>
#include <Sparrow/Implementatio... |
d1085fb9185d1012c8344ca3d631a507b37d8081 | 95ae7b9dc4829d6d3af5a133beeabe0187c4a4e3 | /CrazyArcade/JumpObject.h | 766c6ac1c834a206d006c3abed348b59abfcb477 | [] | no_license | iamjungdamin/CrazyArcade | 2d8ca4ad6d682a1ed4196c6bd5d2ed408cb7f06a | 7899ef76e3661baf4cd3a10c4e83db0296d11978 | refs/heads/master | 2023-07-16T04:28:28.257856 | 2021-09-02T21:46:03 | 2021-09-02T21:46:03 | 378,920,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,276 | h | JumpObject.h | #pragma once
#include "Object.h"
enum STATE
{
jIDLE,
jPATROL,
jCHASE
};
class BulletManager;
class BubbleManager;
class WallManager;
class JumpObject : public Object
{
public:
JumpObject();
JumpObject(const string& textureFilePath);
JumpObject(const string& textureFilePath, const Vector2f& position);
virtual ... |
8c8a61c7706dbf843343811a6d5e0325c9e21f8a | 176225156d82830b69cde4355648daad373700c9 | /src/espros_nogui/src/interface.cpp | c513839f8fbe75b0603801ad7409499c89f31add | [] | no_license | MarbleInc/espros-driver | 99b7528af25d4eb523bcf542140c73dd0437c706 | 728b2174d92c72dddaca7b66187545e5407318e2 | refs/heads/master | 2021-04-29T18:17:53.944038 | 2018-03-14T21:36:52 | 2018-03-14T21:36:52 | 121,690,167 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,361 | cpp | interface.cpp | #include "espros_nogui/interface.h"
#include "espros_nogui/tcp_cmd_connection.h"
#include "espros_nogui/udp_data_connection.h"
#include "espros_nogui/data_header.h"
#include <QByteArray>
#include <QDebug>
#include <QtCore>
//commands GUI-->TOFCAM
typedef enum
{
TOFCAM_COMMAND_SET_INT_TIMES = 1,
TOFCAM_COMMAND_GET_... |
b3b34e08b28fdff3c83314253c8db620f0e93723 | 9de813a282cdf2ef3cb5c32a05b3428ac362746c | /src/casswrapper/casswrapper_impl.cpp | 8d4d9c87b9e8fc59c740bd94621d11c17d486b32 | [
"MIT"
] | permissive | m2osw/libcasswrapper | b9a88962d218ce4521acc68d6b854ddf3f40f228 | d1c56ad386acde738eb25243b4fefbce97459634 | refs/heads/main | 2023-08-20T07:46:55.785243 | 2021-11-13T02:13:13 | 2021-11-13T02:13:13 | 106,984,688 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 30,069 | cpp | casswrapper_impl.cpp | /*
* Text:
* src/casswrapper/casswrapper_impl.cpp
*
* Description:
* Handling of the CQL interface.
*
* Documentation:
* See each function below.
*
* License:
* Copyright (c) 2011-2019 Made to Order Software Corp. All Rights Reserved
*
* https://snapwebsites.org/
* contact@... |
f387063136c7ed8b62b82cf635faf28f33d9cf72 | 8ac181aa59bbc34aa457ed90273b56763269859d | /Additional/Matrix_Exponentiation.cpp | e58562a511a365fae44545ff0fb8e8468bf3dc6d | [] | no_license | mohitmp9107/Competitive-Programming- | d8a85d37ad6eccb1c70e065f592f46961bdb21cf | d42ef49bfcd80ebfc87a75b544cf9d7d5afcc968 | refs/heads/master | 2021-07-11T11:09:14.808893 | 2020-10-03T08:15:36 | 2020-10-03T08:15:36 | 206,331,473 | 0 | 4 | null | 2020-10-03T08:15:38 | 2019-09-04T13:54:46 | C++ | UTF-8 | C++ | false | false | 807 | cpp | Matrix_Exponentiation.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
void multiply(int A[2][2], int M[2][2])
{
int fvalue=A[0][0]*M[0][0]+A[0][1]*M[1][0];
int svalue=A[0][0]*M[0][1]+A[0][1]*M[1][1];
int tvalue=A[1][0]*M[0][0]+A[1][1]*M[1][0];
int lvalue=A[1][0]*M[0][1]+A[1][1]*M[1][1];
A[0][0]=fvalu... |
2b659bc65b1edcf00b08a3da40f5b16d88e577c5 | 19ded9a8a236bf86c4f39dc397b50adf94f4c1b3 | /ui/NovaFX/NovaVariables.h | 2f1ce73e52e5eb5d0077569c01ac97386d4eef7d | [
"MIT"
] | permissive | vakuras/moleculardynamics | 622b2dbe76279b79eac59f8dfb2539e64926f990 | f9c6b03db7df8e429f72fa17b5ccfd98d08ee272 | refs/heads/master | 2021-01-02T23:10:38.961894 | 2017-08-06T11:54:08 | 2017-08-06T11:54:08 | 99,483,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,275 | h | NovaVariables.h | ///
/// NovaFX Variables Header
///
/// Written by Vadim Kuras. 2010.
///
#ifndef NOVAVARS_H
#define NOVAVARS_H
#include <Windows.h>
#include <gl\GL.h>
#include <gl\GLU.h>
#include <cmath>
namespace NovaFX
{
struct Nfloat3
{
GLfloat x;
GLfloat y;
GLfloat z;
Nfloat3() {}
Nfloat3(GL... |
40d0305e77e4a5e18c4bf86bbd17c40ce3694c74 | 2f78e134c5b55c816fa8ee939f54bde4918696a5 | /code/physics/xmlinterfaces.h | 7c5bdd5c1dde5d5a88581bbe3b523a30a5ce333d | [] | no_license | narayanr7/HeavenlySword | b53afa6a7a6c344e9a139279fbbd74bfbe70350c | a255b26020933e2336f024558fefcdddb48038b2 | refs/heads/master | 2022-08-23T01:32:46.029376 | 2020-05-26T04:45:56 | 2020-05-26T04:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 40,951 | h | xmlinterfaces.h | //---------------------------------------------------------------------------------------------------------
//!
//! \file physics/system.h
//!
//! DYNAMICS COMPONENT:
//! The system encapsulate the physical representation of an entity.
//!
//! Author: Mustapha Bismi (mustapha.bismi@ninjatheory.com)
//! Created: 2005.... |
8be2146bb5bd3d0cfcc21adb73f8daa17ad0e056 | 20fc280069c03893e6dc1104694d78a9aa3884a5 | /test/compiletest/hypercomplex_test.cpp | 2102a79b713aec49be38c632f3f918b805d12432 | [
"BSD-2-Clause"
] | permissive | latte0/omniclid | b21122036f5b6aa5c4c104eed032e3b4b38fb2c9 | b83314a963fdac98e47f470d21178028b4bd2cc3 | refs/heads/master | 2021-01-10T09:14:47.292133 | 2017-10-23T08:33:39 | 2017-10-23T08:33:39 | 76,851,869 | 6 | 2 | null | 2017-02-01T15:58:30 | 2016-12-19T10:20:13 | C++ | UTF-8 | C++ | false | false | 2,319 | cpp | hypercomplex_test.cpp | #include "../../src/HyperComplex/HyperComplex.h"
#include "../../src/HyperComplex/imagine_map.h"
using namespace omniclid;
namespace{
constexpr std::pair<int,int> a = std::make_pair(2,4);
}
int main()
{
using R = typename decltype(make_hypercomplex<0,double>())::type;
using I = typename decltype(make_hypercomple... |
a9db82886c4cb32773bf949d1770ed1741e5ac6c | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/ash/power/auto_screen_brightness/utils.cc | 05dfb75d1ae4f03faf26c4302a0973e4a89086a4 | [
"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 | 844 | cc | utils.cc | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/power/auto_screen_brightness/utils.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/stringprintf.h"
namespace ash {
namespace ... |
a510b866d3d970ba75595c534f8c7229e860c286 | 5d4a4951c5720e9871a38fd87fec08be084e8dd2 | /Luke/SDL/SDLWindowImpl.cpp | 4920ded393dd6de3663cc04d994e3a8f8c1fe531 | [] | no_license | mokafolio/Luke | f24a3dfe43a5bf1e0bef2c500bbe893bf353781d | 330f2c4c76538cc107d3f10f063a33d4e969486d | refs/heads/master | 2021-05-16T12:47:19.650367 | 2019-06-14T00:08:19 | 2019-06-14T00:08:19 | 105,333,183 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,993 | cpp | SDLWindowImpl.cpp | #include <Luke/KeyEvents.hpp>
#include <Luke/SDL/SDLDisplayImpl.hpp>
#include <Luke/SDL/SDLInitializer.hpp>
#include <Luke/SDL/SDLWindowImpl.hpp>
#include <Luke/TextInputEvent.hpp>
#include <Luke/WindowEvents.hpp>
#include <Stick/Maybe.hpp>
#include <cmath> //for std::isnan
#include <GL/gl3w.h>
//@TODO Proper error ... |
1df115b729f0b9f643cb79bcff25fc0f73b28518 | 4fc4700061284933f67e8c5a710437342c53db9a | /queue/queue.tpp | c42d75928f352e1e11884d4961afb5350f5d1c76 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gefjon/data_structures | 99f0bbe1beb69f5aa8c93e953e554dfa72e0c767 | 9bf9f35272e168ffc7ffb30fa44e87761773b845 | refs/heads/master | 2020-03-20T21:37:21.041816 | 2018-06-24T16:19:37 | 2018-06-24T16:19:37 | 137,750,815 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,539 | tpp | queue.tpp | namespace Queue {
template< class T >
bool Queue< T >::head_is_defined() {
return (this->head_) ? true : false;
}
template< class T >
bool Queue< T >::tail_is_defined() {
return (this->tail_) ? true : false;
}
template< class T >
void Queue< T >::assert_defined() {
assert(this->head_is_def... |
7c11b67dd881651ae88749108592ea06c5aec19b | 36183993b144b873d4d53e7b0f0dfebedcb77730 | /GameDevelopment/Game Programming Gems 3/Source Code/02 Mathematics/05 Weber/CoralTree/ew/event.cc | 23b2f43c145b9be17970131495a8cdee4e27f3c7 | [
"Artistic-2.0",
"Intel",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alecnunn/bookresources | b95bf62dda3eb9b0ba0fb4e56025c5c7b6d605c0 | 4562f6430af5afffde790c42d0f3a33176d8003b | refs/heads/master | 2020-04-12T22:28:54.275703 | 2018-12-22T09:00:31 | 2018-12-22T09:00:31 | 162,790,540 | 20 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 15,320 | cc | event.cc | /******************************************************************************
Coral Tree ew/event.cc
Copyright (C) 1998 Infinite Monkeys Incorporated
This program is free software; you can redistribute it and/or modify
it under the terms of the Artistic License.
This program is distributed in the hope that it will... |
acd3d43aa6feae982c996aa2b8df18b6b86b6671 | 7a7b308f025070c29681c419f8a247451c7f1521 | /Recursion/src/towers.cpp | 307ce4255ad867703a5176334183cc79e85d71be | [] | no_license | arnottkid/CS140 | 15416ab29bcbb1da0498c7b2edde67ffc174309d | a2b37d02c8a2c9073d3854cb42d7a282cc119d0b | refs/heads/master | 2022-12-31T06:11:22.583466 | 2020-09-05T15:06:43 | 2020-09-05T15:06:43 | 305,836,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,584 | cpp | towers.cpp | #include "towers.hpp"
#include <cstdio>
#include <iostream>
using namespace std;
/* The constructor puts all of the disks onto tower 0.
The front of the deque is the top of the tower */
Towers::Towers(int n)
{
int i;
if (n <= 0) throw ((string) "Towers::Towers() - Bad value of n");
for (i = 1; i <= n; i++) ... |
06182deb237d934fb06015d5f402f8e9c8444763 | d20c13b335583458c5e6e668545a8cfa91dd732a | /Include/Media/Bmp.cpp | 6a7342a2a551508b46c4847d5dc755a49847b97b | [] | no_license | Litutu/LiongPlus | 2b9a122c68553165a84edffe59b7e8e914ad3b27 | 6eda1702b6c1bee214ff33fd7f6f447517d440bd | refs/heads/master | 2020-04-08T14:41:30.788602 | 2016-06-17T13:11:06 | 2016-06-17T13:11:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,642 | cpp | Bmp.cpp | // File: Bmp.cpp
// Author: Rendong Liang (Liong)
#include "Media/Bmp.hpp"
namespace LiongPlus
{
namespace Media
{
// Public
Bmp::Bmp(Image& instance)
: _Bitmap(instance.Interpret(PixelType::Bgr), instance.GetSize(), instance.GetPixelType())
{
}
Bmp::Bmp(Buffer& buffer)
: _Bitmap(Init(buffer))
{... |
e5e33f4e7d6f55d0f3d69b6e8eff7f8af7f42369 | 3dd6db3ad15c2c2738c512678bd274fff04e8c35 | /WatchDog/WatchDog.cpp | 37586870143079b6c9c76007d331c148116feda4 | [] | no_license | howardxu4/Wijet2 | 4935f1bb942cca5651e006cbd57c52c64ce73334 | a0e157302a0fd9b9d7dc1e8a4a40b115dd6b22c4 | refs/heads/master | 2021-01-19T19:35:40.031496 | 2015-05-18T21:03:38 | 2015-05-18T21:03:38 | 35,842,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,093 | cpp | WatchDog.cpp |
#include "WatchDog.h"
#include <pthread.h>
/**
* The WatchDog class
*
* @author Howard Xu
* @version 2.5
*/
void* syscall(void *p)
{
system((char*)p);
pthread_exit(0);
}
void* invoke(void *p)
{
WatchDog* wd = (WatchDog*)p;
wd->loop();
pthread_exit(0);
}
WatchDog::... |
772032e05a258d7144fec10ceb6364678abe5f85 | 9e679a417f0ebee7cb2c013aa6815d314dbcf530 | /programs/sensor_sound/sensor_sound.ino | b570f25530ceee93ed43d56f78972d71ca1c767d | [] | no_license | realgwyn/arduino | 3ad9339e925cd9a439d93a3b6dd7cd516312a765 | 1dde3cdc33668a244997e489a76020e06a4fd3f8 | refs/heads/master | 2021-01-21T13:26:38.445288 | 2016-04-19T19:31:14 | 2016-04-19T19:31:14 | 49,122,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,255 | ino | sensor_sound.ino | /*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at http:/... |
8819deebe821e7ba019de307695a398a2ce3d67a | 8832890474249f27a9a860f03217ecac3eac013e | /EP3/EixoEstatico.h | 97deef64b5937938071c99f219c939a62cc9bdfd | [] | no_license | doug-nicihoka/PCS3111-EP-Douglas-e-Andre | abeaa0b3f1d829e30f272fe5b66ce9455c991041 | 551cdf5d2fd676a3829eee5c9ed1ac3806e4d0f4 | refs/heads/master | 2021-08-19T22:36:47.585332 | 2017-11-27T16:29:14 | 2017-11-27T16:29:14 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 523 | h | EixoEstatico.h | #ifndef EIXOESTATICO_H
#define EIXOESTATICO_H
#include "Eixo.h"
class EixoEstatico : public Eixo {
public:
/**
* Cria um EixoEstatico informando o título, o mínimo, o máximo e
* a orientação (true se for horizontal e false se for vertical).
* @throw runtime_error caso o... |
4f0d17c6f5cde08a2f29177e66b7fb94a42ac5d0 | 7cadfb5dc49a7720a98cfca764aa163c41b20228 | /include/RegisteredObject.h | 166154c74e61a7e77a7471f12ec852fc0985c819 | [] | no_license | ricfehr3/glgameengine | 18f12862a4cbc23ba447720404f5184a87461ca1 | 8ac290e15734db87f64d44dbdde95bb2aa943179 | refs/heads/master | 2020-12-29T11:38:52.856056 | 2019-08-15T20:44:28 | 2019-08-15T20:44:28 | 238,594,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | h | RegisteredObject.h | #ifndef REGISTEREDOBJECT_H
#define REGISTEREDOBJECT_H
#include <string>
#include <exception>
#include <Logger.h>
class nonameexception : public std::exception
{
virtual const char* what() const throw()
{
return "Derived RegisteredObject name is empty";
}
};
class RegisteredObject
{
public:
s... |
01ea2ddec1a1fe38b2e99229c1b2d74edfd35e72 | 018290c372092183346172599757ee187192e771 | /libraries/SafetySam/SafetySam.h | c43dd7bdc2ef284a0a2b8f5f1051e64198ff4cc6 | [] | no_license | hugmehugyouorg/Hug-Community-Therapeutic-Companion | dfec028be783982cb98dfe0e0a3e72d56fc15dfe | 7d13fe4a95cbc79d7eae481b17b0152044eca9db | refs/heads/master | 2021-01-10T22:10:18.771566 | 2015-03-12T02:12:09 | 2015-03-12T02:12:09 | 14,120,759 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 998 | h | SafetySam.h | #ifndef SAFETY_SAM_H
#define SAFETY_SAM_H
#include <Arduino.h>
#include "../SafetySamVoice/SafetySamVoice.h"
#include "../Emotion/Emotion.h"
#include "../PlayMessages/PlayMessages.h"
#include "../ServerProxy/ServerProxy.h"
#include "../Battery/Battery.h"
class SafetySam {
public:
SafetySam(SafetySamVoice *voice,... |
a26e6d60ee27f9c9f9710540cfee0e4907dd3bcc | e4f8e759fc17876fa3f77f2055bc6b8bdf6df784 | /web/speller/edit/test.cc | 1bee9c181c16a8b68b808e57c8e87264cddc470f | [] | no_license | amumu/nokuno | df46e164a557ef00a467df27f56fd91d43186bd7 | 419fe65421c894d2e7bb2f3fae4c83c1b92029d8 | refs/heads/master | 2016-09-06T05:39:49.437244 | 2011-09-15T08:59:54 | 2011-09-15T08:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 142 | cc | test.cc | #include "edit.h"
#define LIMIT (100000)
int main() {
string line;
while (getline(cin, line)) {
run(line, LIMIT);
}
return 0;
}
|
2c5461268a96d73b84a10c325b66cc13a2c78667 | 49ceaa00d7ef126ca94aab0f6f667ae14f81ca1b | /src/EasyLog.cpp | 5662f547fb312dbe71ab8257a50b463b3aa63574 | [] | no_license | garfieldhahu/EasyLog | 0d78e0f8c6f091e2ec5c3e320df090682bbf2b96 | 11aee5a560e44940873ebaa2554e7f1ae565cb90 | refs/heads/master | 2021-07-23T03:57:43.824126 | 2018-10-20T06:37:39 | 2018-10-20T06:37:39 | 134,063,327 | 10 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,667 | cpp | EasyLog.cpp | #include <stdarg.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include "EasyLog.h"
namespace easylog
{
LogLevel EasyLog::log_level_ = INFO;
pthread_mutex_t EasyLog::mutex_ = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t EasyLog::cond_ = PTHREAD_COND_INITIALIZER;
EasyLog* Easy... |
28f89ca8befdf9593a360203dbdcd484a65ceefc | 0290c8cb8b9eff9349dd07644c6d1a1fc4cec142 | /C++ code/exp2/stdafx.h | 4dcc6e6d14985fb554e0d18e740fddb394e7db15 | [] | no_license | ivanliu1989/Helping-Santas-Helpers | c03799023952651be0e950fe77c4a31cd4303215 | 4287946489d2faa7d44297f6169d312b9a548f01 | refs/heads/master | 2021-01-02T09:33:26.783676 | 2015-01-03T23:41:37 | 2015-01-03T23:41:37 | 27,221,218 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 680 | h | stdafx.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#define _CRT_SECURE_NO_WARNINGS
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
#in... |
f3d0a710364b265a0c48b0108b580068b7b668ef | bfdde87839922ea0980365667f65fe3c0b75f566 | /homework/Assignment 4/Gaddis_8ThEd_chap5_prob6/main.cpp | dd1003b33d6954ef5f45bba38604edba68340294 | [] | no_license | nick625/Gamez_nicolas_csc5-_42829 | 085af3603a55c29ad9b1fa30a19aae0c9eb67b71 | d3dcbcd2672b839a991e13adb83aaa03711cd00b | refs/heads/master | 2021-01-21T04:53:47.888787 | 2016-06-06T14:47:45 | 2016-06-06T14:47:45 | 52,460,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | cpp | main.cpp | /*
* File: main.cpp
* Author: nicolas gamez
* Created on April 1, 2016, 6:45 PM
*/
//system libraries
#include <iostream>
using namespace std;
//user libraries
//Global constants
//function prototypes
//execution begins here
int main(int argc, char** argv) {
float speed;//how fasted
int time;//time ... |
80f2570fb3d2ce391c37850464969ca0b81dd313 | 6667ed48d4de491fb7fd333daa262b73ab84d13e | /Array/22_Factorial_of_Large_Number.cpp | 0f0cf8f2655b4eb668800b2c77e7a87fd8bcc351 | [] | no_license | DSA-Problems/Problem_Solving-1 | 7998cd14340360c78efed5c35f1532e744e35af0 | 0edbb7065b5fe36f7300ef5939192c2e1bd52bd3 | refs/heads/main | 2023-08-14T06:28:29.572766 | 2021-10-02T05:07:34 | 2021-10-02T05:07:34 | 412,695,882 | 1 | 0 | null | 2021-10-02T05:07:08 | 2021-10-02T05:07:07 | null | UTF-8 | C++ | false | false | 2,284 | cpp | 22_Factorial_of_Large_Number.cpp | #include<bits/stdc++.h>
using namespace std;
/*
|| Problem : Factorial Of large Number ||
factorial(n)
1) Create an array fac[]’ of MAX size where MAX is number of maximum digits in output.
2) Initialize value stored in ‘fac[]’ as 1 and initialize ‘fac_size’ (si... |
21d7446300f0c7ae2a9cf23c8dec481d757a69ad | f8f7fb205ffb21290f114f2b73a254cb6130c0e6 | /Cliente.cpp | 8a4a9bc7807b16226f51650a77d1581496c1ab70 | [] | no_license | Oswal-Fuentes/Oswal-Fuentes-Lab-9 | fb0df288cb84a965cec027e4660c3ad7efb2ef86 | 6ce999d31b992b64ca988831484c864f47632b89 | refs/heads/master | 2021-04-15T09:43:23.409936 | 2017-06-17T00:07:34 | 2017-06-17T00:07:34 | 94,573,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | cpp | Cliente.cpp | #include "Cliente.h"
Cliente::Cliente(string username,string contrasena,string membresia){
this->username=username;
this->contrasena=contrasena;
this->membresia=membresia;
}
Cliente::Cliente(){
}
void Cliente::setMembresia(string membresia){
this-> membresia=membresia;
}
string Cliente::getMembresia(){
return me... |
78817f8374e4b0c755dda2461578537e4fc973e4 | 5f5f02150cf6830ca4d0c6e2d4dd111e6baf9abe | /include/SearchAlgorithms.h | 9c17b541995488c043f1d4e5df851dd04f6b943c | [] | no_license | Italo-Vieira/ai-algorithms | 9d5ec1f83683926e29c133727e007e1a12095ceb | baaeee35a740526db6e362a3c084a89930693018 | refs/heads/master | 2021-05-14T01:53:40.282806 | 2018-02-14T18:07:34 | 2018-02-14T18:07:34 | 116,579,975 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | h | SearchAlgorithms.h | #include <iostream>
#include "State.h"
#include "Path.h"
#define lesser(X,Y) (X>Y) ? Y : X
typedef list<State*>::iterator iterator;
class SearchAlgorithms{
public:
static Path* BFS(State*);
static Path* DFS(State*);
private:
/*
Remove from 'from' any state that is also present in 'in'
*/
static void r... |
336b6dce52c65f115a641ef2b39245442fc4bc36 | ffdc77394c5b5532b243cf3c33bd584cbdc65cb7 | /mindspore/ccsrc/ps/core/communicator/tcp_client.cc | fa8367e5c78e4a3f49c44a693cba45ee79e1844a | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MPL-1.0",
"OpenSSL",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"MIT",
"MPL-2.0-no-copyleft-exception",
"NTP",
"BSD-3-Clause",
"GPL-1.0-or-later",
"0BSD",
"MPL-2.0",
"LicenseRef-scancode-f... | permissive | mindspore-ai/mindspore | ca7d5bb51a3451c2705ff2e583a740589d80393b | 54acb15d435533c815ee1bd9f6dc0b56b4d4cf83 | refs/heads/master | 2023-07-29T09:17:11.051569 | 2023-07-17T13:14:15 | 2023-07-17T13:14:15 | 239,714,835 | 4,178 | 768 | Apache-2.0 | 2023-07-26T22:31:11 | 2020-02-11T08:43:48 | C++ | UTF-8 | C++ | false | false | 13,624 | cc | tcp_client.cc | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
3641f69670a682edf35ee9b8cb51d68de82515f4 | 8c40662e9b551e04abffe7292ccf6e6a99f6d469 | /Insurgency/GameEntityActions.h | bb508005161644e3c40f5476c5e6b15bbf46c1d9 | [] | no_license | elliothatch/Insurgency | 62e9218532766fbd338c0f73cad76045db96f6cb | 53835081a99a712250145799b367df444b596a43 | refs/heads/master | 2021-01-10T19:19:30.001474 | 2013-10-18T20:34:47 | 2013-10-18T20:34:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,141 | h | GameEntityActions.h | #pragma once
#include <set>
#include <string>
struct EntityActionID
{
enum E
{
PickUp,
Drop,
Equip,
Unequip,
Count
};
};
class GameEntityActions
{
public:
GameEntityActions();
GameEntityActions(std::set<EntityActionID::E> inventoryActions, std::set<EntityActionID::E> equippedActions,
std::set<EntityA... |
50e3f24a1652affd24f13800a3eb684e71806734 | 16e130599e881b7c1782ae822f3c52d88eac5892 | /leetcode/singleElementInASortedArray/main.cpp | 648aec4861b14b64424e74fcfe77032763daf666 | [] | no_license | knightzf/review | 9b40221a908d8197a3288ba3774651aa31aef338 | 8c716b13b5bfba7eafc218f29e4f240700ae3707 | refs/heads/master | 2023-04-27T04:43:36.840289 | 2023-04-22T22:15:26 | 2023-04-22T22:15:26 | 10,069,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 810 | cpp | main.cpp | #include "header.h"
class Solution {
public:
int singleNonDuplicate(vector<int>& nums) {
int n = nums.size();
int startIdx = 0;
int endIdx = n - 1;
while(startIdx != endIdx)
{
int midIdx = (startIdx + endIdx) / 2;
if(nums[midIdx] == nums[mi... |
5f2b154a4dce8da480138875cadc4e4366827ce7 | d5a632c3abf23785f8d7de0b88abaac16d9b6861 | /servant/servant/Message.h | 80b81c7f7f01a5e59ba5dafbb38629d8f842bb31 | [
"BSD-3-Clause"
] | permissive | TarsCloud/TarsCpp | 423c317307c8839ab5bc3903702733e7de58c91c | 3ff6359173c087473032bff35ced648fbfaa0520 | refs/heads/master | 2023-09-04T11:34:16.804590 | 2023-09-02T14:24:32 | 2023-09-02T14:24:32 | 147,453,621 | 507 | 300 | BSD-3-Clause | 2023-08-25T02:35:58 | 2018-09-05T03:20:39 | C++ | UTF-8 | C++ | false | false | 7,127 | h | Message.h | /**
* Tencent is pleased to support the open source community by making Tars available.
*
* Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
* in compliance with the License. You may obtain a ... |
7959606c2851bc399f5bb41759a3d2b511f40c0a | 575731c1155e321e7b22d8373ad5876b292b0b2f | /examples/native/ios/Pods/boost-for-react-native/boost/fusion/container/list/detail/end_impl.hpp | 4f77b9b9f087a07e17152639fde9249f8ff0269d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | Nozbe/zacs | 802a84ffd47413a1687a573edda519156ca317c7 | c3d455426bc7dfb83e09fdf20781c2632a205c04 | refs/heads/master | 2023-06-12T20:53:31.482746 | 2023-06-07T07:06:49 | 2023-06-07T07:06:49 | 201,777,469 | 432 | 10 | MIT | 2023-01-24T13:29:34 | 2019-08-11T14:47:50 | JavaScript | UTF-8 | C++ | false | false | 1,448 | hpp | end_impl.hpp | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2005 Eric Niebler
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)... |
6e9c43a71d18d819455ceef54727a650c01e9984 | 0c27d8b8a9e3d10487fd7efba22db56859bc4233 | /StarCore/src/ShaderIO.h | 2f87b3e9114b47b3fdbbf63a895df3d7eede2b6a | [
"MIT"
] | permissive | NBurley93/Prometheus3D | f2552b46605e0ca1f79c3861d69ddfd372ffa04f | b09736bae108d0d0104f5fb6a1560219063008c7 | refs/heads/master | 2021-06-18T10:50:07.665150 | 2017-05-24T07:11:54 | 2017-05-24T07:11:54 | 92,260,094 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | h | ShaderIO.h | #pragma once
//Loads a .shader into memory
#include <string>
#include <fstream>
#include <sstream>
class ShaderIO {
public:
static void LoadFile(const std::string& filePath, std::string& attributeData, std::string& vertexData, std::string& fragmentData, std::string& geometryData);
}; |
c274db7af484d3bb34b87baf74969e8c25ceb18c | 18307e86c085a64e64fe0671edc1ab00ab9aa1be | /Engine/Plugins/UnrealCS/Source/MonoPlugin/Private/GeneratedScriptLibraries/SceneCapture_script.h | 8b9d635ad41feffd936abf8ee993f7025997818f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rob-ack/UnrealCS | b6e9fe433ba1d04094a6baa3f75a365d0dcc749c | 16d6f4989ef2f8622363009ebc6509b67c35a57e | refs/heads/master | 2021-08-04T13:50:00.090129 | 2017-09-06T20:58:36 | 2017-09-06T20:58:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | h | SceneCapture_script.h | //GENERATED: C++ Code
#pragma once
class ASceneCapture_
{
static UClass* _StaticClassForProxy(){return ASceneCapture::StaticClass();}
public:
static void BindFunctions()
{
mono_add_internal_call("UnrealEngine.ASceneCapture::StaticClass",(const void*)_StaticClassForProxy);
}
}
; |
4825659b855138fcfc062620db8ce035896b6905 | 7283ed93ab16726879969eaa629f80456c00bc64 | /src/staff.cpp | 849f128a6e43bb68915be952a2742e2db4b31097 | [] | no_license | takayuki0528/LammpsAnalysis-cpp | 8b8e4233e00e0b81ad62b56f1654e8fc74c5a53f | e19fd6c69ca339525903e5495440b52ff5e09e15 | refs/heads/master | 2021-01-23T08:09:33.679747 | 2017-04-09T06:16:44 | 2017-04-09T06:16:44 | 80,526,294 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,817 | cpp | staff.cpp | /* -----------------------------------------------------------------------------
Program Name: staff.cpp
Author: Takayuki Kobayashi
Date: Dec 31, 2016
Modified Date: --- by ***
Purpose: Property Calculation
----------------------------------------------------------------------------- */
#inc... |
2187d2309be10362b543957ac8a6806de961a33a | 2745b47783cd1b4ce249e1f14f5c5d43ed3df5db | /memory/main.cpp | c5937a3e178ad338fd950bf7e1e1e104d65f6075 | [] | no_license | Aaronlanni/OpSystem | 7fafccda13a9c19a6ffd640703e832489b134d97 | e20d1cc52726d6b3f6bfb1beaa0c9ad4c3f68558 | refs/heads/master | 2020-03-19T06:14:54.689977 | 2018-08-11T13:19:19 | 2018-08-11T13:19:19 | 136,003,648 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 219 | cpp | main.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#include"memory.h"
#include<Windows.h>
void test()
{
int* a = new int[8];
double* b = new double;
delete a;
delete b;
}
int main()
{
test();
//system("pause");
return 0;
}
|
cc595405c7d831c66bf69ac4a45ee7cbe5c62226 | 71e3cab41d04c9e4dbc25a29cd8d3322d4b17e49 | /XenonNui/Common/AtgSessionManager.cpp | 548d9806e7292bb0d615b1e34a938e2d39d982b7 | [] | no_license | 0xdeafcafe/Yrs2013 | 2ba9d5c4476cfe7a0bf76ade5d972c0b78f02872 | e6cd93e6cbb20b61e112a1f77cc875f746c0bc6f | refs/heads/master | 2020-04-30T05:16:46.253175 | 2013-08-10T09:14:42 | 2013-08-10T09:14:42 | 11,894,832 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 64,157 | cpp | AtgSessionManager.cpp | #include "stdafx.h"
#include "AtgUtil.h"
#include "AtgSessionManager.h"
#define DebugSpew ATG::DebugSpew
#define FatalError ATG::FatalError
#define XNKIDToInt64 ATG::XNKIDToInt64
//------------------------------------------------------------------------
// Name: SessionManager()
// Desc: Public constructor
//---------... |
0b8255503285fb82287ae9b0fc4fff5efde55006 | 63ed2deb4616e8d3b93a4aefccd21d327ba82245 | /Concurrent/RunWithGUIUpdate/RunWithGUIUpdate.cpp | 9a506542eba0d0f775c01bdead83d9f5f26f5573 | [] | no_license | drescherjm/QtExamples | 2f49cf85b04c08c011c2c0539862bfbf613f92a5 | 129a14dabb4cda84526d2780862d32156c75ec01 | refs/heads/master | 2020-12-25T06:12:05.772601 | 2012-03-19T00:40:40 | 2012-03-19T00:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cpp | RunWithGUIUpdate.cpp | #include <QApplication>
#include <QObject>
#include <QtConcurrentRun>
#include <iostream>
#include "form.h"
#include "LongFunction.h"
int main(int argc, char*argv[])
{
QApplication app(argc, argv);
Form form;
form.show();
MyClass myClass;
QObject::connect(&myClass, SIGNAL(Update()), &f... |
21e3c1ed2e2602f37d1648fb7b0c5d49f1944ec4 | e6ef858879c89b166ee839e5b143844ab9ceee4b | /enclave_tests/test_objects.cpp | 84445e84be77f2c8c24f253cb42e7e0f92c1adad | [] | no_license | trusted-dcr/sgx-win | d185b88b17c4400b7d2a888fe6e0998b8273fad1 | 3b07a6a142a1fa7bb9feefba8f6a7eb7fb66f5e9 | refs/heads/master | 2020-03-11T08:56:39.127560 | 2018-06-19T19:03:51 | 2018-06-19T19:03:51 | 129,896,814 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,230 | cpp | test_objects.cpp | #include "stdafx.h"
#include "test_objects.h"
//workflows:
dcr_event simple_event(uid_t id) {
dcr_event e;
e.id = id;
e.excluded = false;
e.executed = false;
e.pending = false;
return e;
}
dcr_workflow wf_simple_condition() {
dcr_workflow wf;
dcr_event e1 = simple_event({ 0,1 });
dcr_event e2 =... |
d919c879441eeff54cf7d386b8d3aa380e038711 | 632e44fad42d04b7235b6b44798d79d8a3ab016f | /SalaryAssignment/include/exeptions/InvalidSSNException.h | 90696a582e80729bab5a535099b5d9778a0a0f9f | [] | no_license | krilliman/hopur67 | 3424b6c355b6b890973aea9b6b3a43c05815170d | 8b32de897d0b4c08efa2f43ceaa66a8f03ea9558 | refs/heads/master | 2021-08-30T06:39:47.768689 | 2017-12-16T00:09:25 | 2017-12-16T00:09:25 | 112,739,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 124 | h | InvalidSSNException.h | #ifndef INVALIDSSNEXCEPTION_H
#define INVALIDSSNEXCEPTION_H
class InvalidSSNException{};
#endif // INVALIDSSNEXCEPTION_H
|
5ae1424c8809e18742cffb88ad72578bb6238fdb | 4fe8448ea1fffcf92343102a916e84d47897f065 | /XOOF/element.C | 4ebc9cf5f043863b5fdcee6a5a9136d5e873a0a9 | [] | no_license | usnistgov/OOF1 | 1a691b7aac20ab691415b4b5832d031cf86ba50c | dfaf20efffaf6b8973da673ca7e4094282bcc801 | refs/heads/master | 2020-06-29T06:17:17.469441 | 2015-01-21T19:07:01 | 2015-01-21T19:07:01 | 29,553,217 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,800 | c | element.C | // -*- C++ -*-
// $RCSfile: element.C,v $
// $Revision: 1.9 $
// $Author: langer $
// $Date: 2005-02-15 22:19:50 $
/* This software was produced by NIST, an agency of the U.S. government,
* and by statute is not subject to copyright in the United States.
* Recipients of this software assume all responsibilities asso... |
5f93d0622ca50f904776035cf67c934e4df4d8df | aa73b2ca43513f1eff53f7982f3ef2feffc0b52f | /qsbatch/qsbatch/Emitter.cpp | 0f22bb849591b7bc6ea20964bb399c1c8ce0ffe6 | [] | no_license | Qwerber/q-dev-libs | 9338d300584ee5ca95bb7358874d57e9db5cd8b2 | 56336b9eece6e23f799dd184eb9bfd72e453d4e9 | refs/heads/master | 2021-01-23T05:35:16.275988 | 2014-05-27T20:40:22 | 2014-05-27T20:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,254 | cpp | Emitter.cpp | #include "stdafx.h"
#include "Emitter.h"
#include <stdlib.h>
#include "glbatch.h"
#include <Windows.h>
namespace kc8
{
Emitter2D* createEmitter(int _maxParticles)
{
Emitter2D* ret = (Emitter2D*)malloc(sizeof(Emitter2D));
ret->numParticles = 0;
ret->insertionPoint = 0;
ret->maxParticles = _maxParticles;
r... |
e13680b0d715d6d80391df1b023ac8e8cf9d7053 | 2a7ae23b00e01b84c3a57db75c2727ffac916e8a | /editor/src/AssimpImporter.h | 291bbafae3f31d7ef8f9d9e49ad2dc41e8cc456b | [] | no_license | aavci1/SimpleGL | 0675e60f5c51ddd53d2b3b87c2c4e4d58d9e7a4b | 7f63198776eb039d8c5073966d4accfffbeac76e | refs/heads/master | 2021-05-05T20:48:31.394186 | 2017-12-21T03:49:22 | 2017-12-21T03:49:22 | 115,467,532 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 197 | h | AssimpImporter.h | #ifndef ASSIMPIMPORTER_H
#define ASSIMPIMPORTER_H
#include "Types.h"
namespace AssimpImporter {
SimpleGL::ModelPtr import(const string &name, const string &path);
}
#endif // ASSIMPIMPORTER_H
|
7ad6d7fa856e5542ccbf041987dc109ab9d3619e | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_1011_last_repos.cpp | 29c967b8193812575b6b31b8e429e139049a2bd4 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 959 | cpp | squid_repos_function_1011_last_repos.cpp | static void
peerGetAllParents(ps_state * ps)
{
CachePeer *p;
HttpRequest *request = ps->request;
/* Add all alive parents */
for (p = Config.peers; p; p = p->next) {
/* XXX: neighbors.c lacks a public interface for enumerating
* parents to a request so we have to dig some here..
... |
3a55173872ffab2db95d9d3d7f612cdbbfaf29ce | 86500db7a7f5b82602839c3365f2079ac6cbe8c1 | /lattice/lattice.cpp | 4cc7fcd6c7521dec5df8a999b8753c4131c9f143 | [] | no_license | friedvan/lattice | 53ee1f5a452a49b149529b6ff1ca67bd2c8d324e | 92839daab1814bad38bedca8633ef4ba7702b675 | refs/heads/master | 2016-09-06T06:31:59.771558 | 2014-01-14T08:33:32 | 2014-01-14T08:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,237 | cpp | lattice.cpp |
#include "lattice.h"
#include "visual.h"
node *A, *B;//[N][N], B[N][N];
node* init()
{
node *G = (node*)malloc(sizeof(node) * N * N);
if (G == NULL) {
printf("momory error\n");
exit(0);
}
for (int i=0; i<N; i++)
for (int j=0; j<N; j++) {
G[i * N + j].inter.x = i;
G[i * N + j].inter.y ... |
8cf245323d1690cc10d23f0dabf79c71c27bc156 | 98754ad9f9fe49a33eb370402f1bae77cf410741 | /Sourcestream/Hackerearth/Kriti and her Birthday Gift/source.cpp | ee8c7e6621a9f5b19dcd5010ae7c0b59f9c07a9d | [] | no_license | hitch-hiker42/hikes | 1e9d0ff767e9a53de52d510a8480644322fcab3c | e8b78a3d5ecfe63e9e48b97edaae3a101fd304ec | refs/heads/master | 2021-08-05T10:32:08.901447 | 2021-07-28T20:04:18 | 2021-07-28T20:04:18 | 242,496,162 | 4 | 3 | null | 2020-02-23T13:11:12 | 2020-02-23T10:21:14 | C++ | UTF-8 | C++ | false | false | 1,692 | cpp | source.cpp | //author: hitch_hiker42;
#include<bits/stdc++.h>
using namespace std;
//solution:
#define int int64_t
#define block(i) i / B
constexpr int N = 100'000, B = 316, p = 31, mod = 1000'000'009;
string a[N]; int ans[N];
struct query {
string s;
int lo, hi, idx;
query() {}
query(int lo, int hi, int idx): lo(... |
2aca597b04ac982880662a98dd2b0917e71b1bba | 89fc5b243d34612ba90e1d1649387907e29d90ac | /Laying Cables.cpp | 7dccf8346fd0019e9cb39cfa3caaabc3d22e778a | [] | no_license | Misaka233/exciting | 8a074bf0924476c067a1965c6ea9a6dc1ad77d75 | 069455bb92560ceee47add71e1743f0d36c8cd10 | refs/heads/master | 2020-04-12T09:01:27.313535 | 2017-02-03T08:28:37 | 2017-02-03T08:28:37 | 55,968,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,245 | cpp | Laying Cables.cpp | #include<bits/stdc++.h>
using namespace std;
const int N = 1e6+20, M = 1e6+10, mod = 1e9+7, inf = 2e9;
typedef long long ll;
int n,ans[N];
struct ss{long long x,p;int id;}a[N],lefts[N],rights[N];
vector<ss> G;
bool cmp(ss s1,ss s2) {return s1.x<s2.x;}
int main(){
scanf("%d",&n);
for(int i=1;i<=n;i++) scanf("%... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.