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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1919a44925f75d5b41c655c8431c8f78d7f8ba14 | af17c3fa0e3193ad6d12dbac99dee8bf4536a3d2 | /01basics/16bitwise.cpp | 4100211024a59114abbbedd1910727cfe395e4cb | [] | no_license | russellkoons/learning-c- | 54ceec762f002b958ce5c5adef5f5ce0e641f610 | 5c1c0a71d0e496dfdb1b2cf42ff36fb779bd7d97 | refs/heads/master | 2022-01-06T06:22:53.768270 | 2019-06-07T14:10:25 | 2019-06-07T14:10:25 | 184,575,554 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | cpp | 16bitwise.cpp | // & and
// | or
// ^ xor
// ~ not
// <<
// >>
#include <iostream>
using namespace std;
int main()
{
int x = 11, y = 7, z;
z = x ^ y;
char v = 5, u;
u = v << 1;
cout << z << " " << (int)u << endl;
} |
37c536c8a5b6649852223ac1ae6d89e3caed4b04 | e879e725a8eefed6fb0cb70d489f90d650247c50 | /firmware/library/newlib/newlib.cpp | b38ef53b472c4975f0abeefaf16fb77c504ca236 | [
"Apache-2.0"
] | permissive | znic1967/Khalils-Kids | 8137b196b77681504b393f770a107b6b494f59b9 | 4e8d744837c1ba63adf3ec3ec317a40860b463aa | refs/heads/master | 2020-05-18T11:00:09.968602 | 2019-05-10T00:42:16 | 2019-05-10T00:42:16 | 184,365,308 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,841 | cpp | newlib.cpp | #include "newlib/newlib.hpp"
#include <sys/stat.h>
#include <unistd.h>
#include <cstdint>
#include <cstdio>
#include "L0_LowLevel/ram.hpp"
#include "L1_Drivers/uart.hpp"
#include "utility/macros.hpp"
#if defined(HOST_TEST)
int HostWrite(int c)
{
int payload = c;
return static_cast<int>(write(1, &payload, 1));
}... |
55063ee4d7f44e2b361dffe042bfb4cce42d7e11 | 5a7f5e86a6a30906f126ece4ca83d8c4652664ab | /core/clocksync/run-local.cpp | d154303f3f49d938e85cc131cc3001ccb64a70a8 | [] | no_license | PrincetonUniversity/mallo | 2c976f532cf5dc18f52eec1f986de68d2a762d7b | 160bb5bc9051de5538f9bf2b1a8df504c2aef85e | refs/heads/master | 2020-12-30T09:57:59.310485 | 2015-04-17T18:40:09 | 2015-04-17T18:40:09 | 34,132,934 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,192 | cpp | run-local.cpp | //
// main.cpp
// clocksync
//
// Created by Zeyu Jin on 11/25/14.
// Copyright (c) 2014 Zeyu Jin. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctime>
#include "RmmApp.h"
int main() {
RmmApp relay("4664", "R0");
relay.start(false);
RmmApp server("7... |
a38687ad819035f36198d2d4767da21b85c90007 | 9f5aafb54f893b45aceaf2694489edcb418203e3 | /dev/kd_tree.cpp | 29c2749fe269a56d71be3228c392c8ae5444ccc8 | [
"MIT"
] | permissive | 22427/oflibs | 7f8f5fdfc4aa580b81d5c835fc3318aed5b432b0 | 9e84ad98835799584f88d117bf06116cedd68068 | refs/heads/master | 2020-05-21T18:02:03.326317 | 2017-02-28T13:40:29 | 2017-02-28T13:40:29 | 64,550,023 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 21 | cpp | kd_tree.cpp | #include "kd_tree.h"
|
a96ec586eb1f56bc87a5e9217e26431b51170616 | 230fb8845f39bef0f30f5d3541eff5dc0641de14 | /Connect3/Export/windows/obj/src/haxe/ui/components/_TabBar/TabBarButtonLayout.cpp | d7f693a6e75ed9e74d2798ba4e14f8cc010ff010 | [] | no_license | vhlk/AlgoritmoMinMax | 76abd62a6e2859ed229e5831264b6d8af27e318d | 40eded4948794ca48d50d16d2133a9ab21207768 | refs/heads/main | 2023-06-30T15:16:17.492478 | 2021-08-02T13:29:32 | 2021-08-02T13:29:32 | 390,493,745 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 9,039 | cpp | TabBarButtonLayout.cpp | // Generated by Haxe 4.2.0
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_ui_backend_ComponentBase
#include <haxe/ui/backend/ComponentBase.h>
#endif
#ifndef INCLUDED_haxe_ui_backend_ComponentImpl
#include <haxe/ui/backend/ComponentImpl.h>
#endif
#ifndef INCLUDED_haxe_ui_component... |
dc6907bb6c8a814897f8af41275d2affc743874a | a980ba973c6365b2b2f11a1af443191596ded453 | /lib/Secrets/plugininforequest_p.h | 036402f3b8cc449fe9d270fa6acc845cf9f02cc7 | [
"LicenseRef-scancode-free-unknown",
"BSD-3-Clause"
] | permissive | sailfishos/sailfish-secrets | 44f724f1470e7b4bbfbd4c0ab4cb481cbc54f2e0 | 303687d1e4e71cf741b6aec3b35dd78c033b1ede | refs/heads/master | 2023-04-07T06:44:07.878773 | 2023-03-21T10:41:41 | 2023-03-21T10:41:41 | 109,001,458 | 27 | 16 | BSD-3-Clause | 2023-08-31T14:14:11 | 2017-10-31T13:43:11 | C++ | UTF-8 | C++ | false | false | 1,259 | h | plugininforequest_p.h | /*
* Copyright (C) 2018 Jolla Ltd.
* Contact: Chris Adams <chris.adams@jollamobile.com>
* All rights reserved.
* BSD 3-Clause License, see LICENSE.
*/
#ifndef LIBSAILFISHSECRETS_PLUGININFOREQUEST_P_H
#define LIBSAILFISHSECRETS_PLUGININFOREQUEST_P_H
#include "Secrets/secretsglobal.h"
#include "Secrets/secretmanag... |
c0cf21faef209879bedc9a340679a2f5ce4a70c5 | 3a6018a0c82dc39c4e513da40dcd8cf5b1d23089 | /emperorlu/2498/3046499_AC_109MS_216K.cc | c4066c88198e301dfdfbd5d45f6d614da423f790 | [
"BSD-3-Clause"
] | permissive | lulyon/poj-archive | 2ff04082ff70e0afc997c7a49d23d3d31ce3ddbe | 7ba5569d1780f8619621bc8b1adc0501b0d7ec51 | refs/heads/master | 2020-06-01T23:29:51.532319 | 2013-09-14T08:14:08 | 2013-09-14T08:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | cc | 3046499_AC_109MS_216K.cc | #include<stdio.h>
#include<stdlib.h>
char a[10];
int main()
{
int t,i,j,cn=1;
scanf("%d",&t);
while(t--)
{
scanf("%s",a);
int sum = 0;
int s;
for(i=0;a[i];i++)
if(a[i]=='?')s=i;
i--;
int ai,m;
for(j=0;j<=i;j++)
... |
0cd76d906658f47e29797d5e5d8af8c0579304e0 | dd1d827a0b83c0146cf05de2f63de459bd8767ae | /12.cpp | fb805a43ea1a8a5c27bedabb7779f6521c517a35 | [] | no_license | JosueRS12/-poo- | 9204f805ab6def64157d3cfd7bde2799f4e77f94 | 55b3acb1c255c865807fdf065bdc78fc48361939 | refs/heads/master | 2022-05-01T10:16:35.347074 | 2022-03-23T06:16:14 | 2022-03-23T06:16:14 | 205,163,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,830 | cpp | 12.cpp | //ejemplo 12
#include<iostream>
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<string>
using namespace std;
int i;
class Estudiante{
public:
void promedio_est();
private:
int cta,j=0,est[100],mat[100][100],l=0,k=0,sumnot[100][100];
double notas[100],promest=0,aux=0,promgrup=0,prom... |
a4487557d853e39ac9b72af59039d962a538d17e | fb227e3635b5c06e49bad48928f7b6d3254c4dca | /codeforces/583/a.cpp | 736d149deef296ccb955b9866d9e8576990e430f | [] | no_license | BryanValeriano/marathon | 5be2ab354e49187c865f0296f7dfb5ab3c3d6c9b | 8dadfad7d1a6822f61ba5ed4a06e998541515634 | refs/heads/master | 2022-09-11T00:06:14.982588 | 2022-09-03T17:01:30 | 2022-09-03T17:01:30 | 141,581,750 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | cpp | a.cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define eb emplace_back
#define mk make_pair
#define fi first
#define se second
#define endl '\n'
typedef long long ll;
typedef pair<int,int> ii;
const int inf = 0x3f3f3f3f;
const double pi = acos(-1.0);
int main() {
ios_base::sync_with_stdio(fal... |
0b9f37f5327d0febb4723ec3ee3980664afae6a5 | 12840d008d17df59a37997691774fa87e5f227be | /training/2017_icpc/Beijing/E.cpp | edc27db6d2ee1015839457e59e06cbccc30f52c8 | [] | no_license | clatisus/ACM-ICPC-Team-Archive | 4b6c3d2dfb300f928f4f201ae156bde5f871a734 | 7410ddfa81de8750668d8ac2c334987b5af7e613 | refs/heads/master | 2022-07-21T13:03:22.768792 | 2020-01-04T11:30:43 | 2020-01-04T11:30:43 | 136,951,655 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 948 | cpp | E.cpp | #include <bits/stdc++.h>
#define MAXN (110)
int m, n, x;
int c[MAXN];
struct node {
int first, second;
bool operator < (const node &rhs) const {
return first == rhs.first ? c[second] < c[rhs.second] : first < rhs.first;
}
};
int main() {
while (~scanf("%d%d%d", &m, &n, &x)) {
std::mu... |
a3d8327c27b97275d4d63446dd006182dae4b29f | 3c6c684ae317ba74fd669f5cba9b64ea321bb586 | /Source/SIMPLib/Geometry/SharedTriOps.cpp | c9977055a643027cc12fe0a8b78612932a46c3d1 | [
"BSD-3-Clause"
] | permissive | imikejackson/SIMPL | 6bdbe330adda6fb41d2d73993463b1aeda55c0f5 | f61686691d977c234d23320be714e11243e72231 | refs/heads/develop | 2023-07-11T19:28:10.639852 | 2023-06-28T17:44:52 | 2023-06-28T17:44:52 | 89,543,705 | 0 | 1 | null | 2017-04-28T21:36:26 | 2017-04-27T01:49:05 | C++ | UTF-8 | C++ | false | false | 5,343 | cpp | SharedTriOps.cpp | /* ============================================================================
* Copyright (c) 2009-2016 BlueQuartz Software, LLC
*
* 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... |
47cbcf6804f1caf98851af527345d7d9e8458131 | 99f033249bc041542af5d31507704d7af3a8e8aa | /quest_4(string_sort).cpp | 5ffa587bcf56cb6b8cd3f48cb20181ef5121a678 | [] | no_license | tokarev-i-v/Programming_Quests | 268fafbc7f871a23b92e5ed7b3f3fbb47211d07e | f1dff6cd0ae11be5c1398936421b9063d70e96b1 | refs/heads/master | 2023-01-27T16:39:11.652260 | 2016-11-29T14:26:06 | 2016-11-29T14:26:06 | null | 0 | 0 | null | null | null | null | MacCyrillic | C++ | false | false | 2,430 | cpp | quest_4(string_sort).cpp | //–еализовать пузырьковую сортировку двумерного массива слов.
#include <locale.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
unsigned int stringsCount, maxStringSize;
void genStrings
(
unsigned int stringsCount,
unsigned int maxStringSize
);
void sortStrings (char **list);
int str... |
56c98e24cb720e399fdf14a1015d50b11b4891b0 | 0a36cb03e0faabc3e57f32f54c0a1a35b95c0599 | /old/libdeepcc/sourcespan.h | ea3f6259d5272ff9572dbde0eb1ef240f2d812f0 | [] | no_license | doytsujin/deepc | 0648de880b1db02a05979a39c932612d3a33c8b6 | 5f689b1a8df90941c23663f5e813b7f1a239cd6d | refs/heads/master | 2023-03-16T04:43:38.208286 | 2018-08-14T12:05:41 | 2018-08-14T12:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,771 | h | sourcespan.h | /**************************************************************************
*** ***
*** DeepC compiler ***
*** ***
*** ... |
d02a48d7f40fd13532ee65bd35dec1f5b5fa8fbd | 216398e30aca5f7874edfb8b72a13f95c22fbb5a | /CamMonitor/Client/Test/ConfigDlg.h | 3ca2e372715977b2e4eb8af6d43da11dd46a1dcc | [] | no_license | markisme/healthcare | 791813ac6ac811870f3f28d1d31c3d5a07fb2fa2 | 7ab5a959deba02e7637da02a3f3c681548871520 | refs/heads/master | 2021-01-10T07:18:42.195610 | 2009-09-09T13:00:10 | 2009-09-09T13:00:10 | 35,987,767 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 771 | h | ConfigDlg.h | #pragma once
#include "Resource.h"
#include <string>
class ConfigDlg : public CDialog
{
DECLARE_DYNAMIC(ConfigDlg)
public:
ConfigDlg(CWnd* pParent = NULL); // 표준 생성자입니다.
virtual ~ConfigDlg();
// 대화 상자 데이터입니다.
enum { IDD = IDD_CONFIG_DLG };
protected:
virtual void DoDataExchange(CDataExchang... |
20253af294a1be592a22ac9ef1d902f806553a0b | fe82289c0e86b90a27b31e10c26b055595798ed8 | /zsvd.cpp | 5cb6e07fd0ae96c435168ff88bf7248c89aaf14a | [] | no_license | chengyanlai/ArpackExample | bfb150f42dd0cebef1fd9d68cff9dbf2152eaafb | eb45ef6cc2e7f571f57702fa858c86e4341285d5 | refs/heads/master | 2021-05-04T11:14:30.731339 | 2016-09-20T17:45:55 | 2016-09-20T17:45:55 | 48,963,927 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,553 | cpp | zsvd.cpp | #include <iostream>
#include <cassert>
#include <vector>
#include <complex>
#include <Eigen/Dense>
#include "arpack.hpp"
#include "lapack/lapack.h"
/*
* This code shows how to use ARPACK to find a few of the
* largest singular values(sigma) and corresponding right singular
* vectors (v) for the the matrix ... |
cfa341ea717f76dd932b3947662e7cfcbc66ee8e | 11d0011d9d922d4c5269ee8f5512e225db609fc4 | /server/include/wave_riff.hpp | 9c016abc0b5f2f54d55600353d55685b49e07a2c | [] | no_license | Gabriele91/AndroidSilenceAudioRecording | ca54f2b9506ffa61cebc3916b40141be472b386c | c47101120d337fc79fde0c9c8cff1016a18115be | refs/heads/master | 2022-05-10T06:54:34.275681 | 2017-10-27T13:29:02 | 2017-10-27T13:29:02 | 59,752,587 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,106 | hpp | wave_riff.hpp | //
// Created by Gabriele on 29/05/16.
//
#pragma once
#include <cstdio>
#define BIG_ENDIAN 4321
#define LITTLE_ENDIAN 1234
#define BYTE_ORDER BIG_ENDIAN
struct input_meta_info
{
unsigned int m_channels;
unsigned int m_samples_per_sec;
unsigned int m_bits_per_sample;
//bytes per second
size_t get... |
5c8d0232d6575506a5a326daa1b2dec949169d84 | c5ee5028ab6972801f551f0e18a100c32ccb9e5b | /Niuke/jz49.cpp | 99c6ab5a700f7076c485bce51e56739823235a9d | [] | no_license | WALLIII/learn_Algorithmus | ad24d79b2d891baf9b83bbdf6a25bcd342e583bf | f8359ceb7e7b53c631da77ad69e6da747ede5eba | refs/heads/master | 2021-08-01T17:02:31.153542 | 2021-07-28T13:59:37 | 2021-07-28T13:59:37 | 248,995,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,721 | cpp | jz49.cpp | #include <string>
#include <iostream>
// leetcode上的要求,如1a23--->1
// int strToInt(std::string str)
// {
// int i = 0;
// while (str[i] == ' ')
// ++i;
// int res = 0, sign = 1, x = 0;
// if (str[i] == '-')
// {
// sign = -1;
// }
// // 如果是类似与'-+1'这样的字符串,是非法的,不会进入下面的while直接返回0.... |
6b96003b80d2fcfa04c3aa352b2367eedba61cb3 | 23c3df341be8937be40f7b6699821ab77b1d0f9f | /test/chive_test.cpp | 4bb91e96669b509af5d1b0ab8ed8772c47fe6701 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-mit-taylor-variant"
] | permissive | yogarajbaskaravel/koi | 4c1e326cb8d55767fc9af77fc9d1217f8bf009cc | 90b8244d2756f1c097bdc2af552f074d58cd43e5 | refs/heads/master | 2020-02-26T14:13:22.364353 | 2019-08-23T07:32:50 | 2019-08-23T07:32:50 | 17,897,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,126 | cpp | chive_test.cpp | /*
Copyright (c) 2012 by Procera Networks, Inc. ("PROCERA")
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all
copies.
THE SOFTWARE IS PROVIDED "AS IS" AND... |
d5693b38f32e3342fb66f7541c4fde9a5061e5f7 | 3520727c131a9947ffe1fce0048742415ec17ca9 | /test/common/utilities/utils.cpp | 6453173bb80eb7b2b4eb89be41c3b618197302ed | [
"BSD-2-Clause",
"LicenseRef-scancode-tcg-spec-license-v1"
] | permissive | lyjbupt/TPM2.0-TSS | f639f0763c8999649464591da476ada85a0ed04d | a10527ed2d1e5e94bee8d158499efeaa007bf0d1 | refs/heads/master | 2021-01-24T15:53:02.991900 | 2016-04-21T07:47:27 | 2016-04-21T07:47:27 | 56,750,195 | 0 | 0 | null | 2016-04-21T07:00:36 | 2016-04-21T07:00:36 | null | UTF-8 | C++ | false | false | 2,451 | cpp | utils.cpp | //**********************************************************************;
// Copyright (c) 2015, Intel Corporation
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of s... |
3a2021cd058f8ae30b8da409f185aa843c7e5601 | 5aa80aab7a75d76b0aa838bf8f74a276a12c876e | /src/vnsw/agent/oper/agent_route_walker.h | 3d8ee165b9b8b10b557d5b5a64948c8a72d40db4 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | tungstenfabric/tf-controller | 83b6d58afadb5697b540b5345711a5b2af90d201 | f825fde287f4eb2089aba2225ca73eeab3888040 | refs/heads/master | 2023-08-28T02:56:27.329584 | 2023-08-20T12:15:38 | 2023-08-20T12:31:34 | 231,070,970 | 55 | 29 | Apache-2.0 | 2023-07-23T01:38:17 | 2019-12-31T10:24:38 | C++ | UTF-8 | C++ | false | false | 8,536 | h | agent_route_walker.h | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#ifndef vnsw_agent_route_walker_hpp
#define vnsw_agent_route_walker_hpp
#include <boost/intrusive_ptr.hpp>
#include <boost/array.hpp>
#include <cmn/agent_cmn.h>
#include <cmn/agent.h>
#include <sandesh/sandesh_trace.h>
/**
* The infrastructur... |
9f0c19d7cc962a428596202cf7b4d59c3a598fd0 | 7b26026e845b3bb8363f769b2d55d114e07dd7b6 | /queue/queue.cpp | 1f964f4f5bce286ff8d82851ffb38f761b323af7 | [] | no_license | vitalik322/cppBench | d14fd11c5b131ca422e8a2c6d2b2d6ccd1d7e20f | 69cad2fb7d8d65b5ba4969ba04cf105359638436 | refs/heads/master | 2020-03-27T04:59:06.957135 | 2018-09-07T14:42:16 | 2018-09-07T14:42:16 | 145,985,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373 | cpp | queue.cpp | #include "queue.h"
//
// Array-based queue
//
void QueueArray::push(int elem) {
if (topIndex_ < QUEUE_SIZE - 1)
++topIndex_;
else
topIndex_ = 0;
arr_[topIndex_] = elem;
}
int QueueArray::pop() {
register int res = arr_[botIndex_];
if (botIndex_ < QUEUE_SIZE - 1)
++botIndex... |
d9789ff07084b971652600d2802392dba75fb44a | 79cd409b4b12f8ab76a31130750753e147c5dd4e | /wiselib.testing/util/pstl/vector_dynamic_set.h | 8c663988fe7bd0ea7656a36002016c297efd87d7 | [] | no_license | bjoerke/wiselib | d28eb39e9095c9bfcec6b4c635b773f5fcaf87fa | 183726cbf744be9d65f12dd01bece0f7fd842541 | refs/heads/master | 2020-12-28T20:30:40.829538 | 2014-08-18T14:10:42 | 2014-08-18T14:10:42 | 19,933,324 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,325 | h | vector_dynamic_set.h |
#ifndef VECTOR_DYNAMIC_SET_H
#define VECTOR_DYNAMIC_SET_H
#include "vector_dynamic.h"
namespace wiselib {
/**
* insert: O(1)
* find: O(n)
* erase: O(1)
*/
template<
typename OsModel_P,
typename Value_P
>
class vector_dynamic_set {
public:
typedef OsModel_P OsModel;
typedef Value_P value_typ... |
1869a6f56066e2e9f1585ee0aed8f8c81bb8d19b | 84044e3c9777c0309a597ef35568fbe6eeffb809 | /exam/Account.h | ea310a7c1a119646069bddaf0ec9310cc3aaaf44 | [] | no_license | aljuborimo/ma_info_450_spring_2020 | c7803c805d4aa24cd1f3123a7c641b65367adc28 | 403cb4bf2b1a91fa4ba9bb2852c37343f65ccdce | refs/heads/master | 2020-12-13T15:04:54.398056 | 2020-05-07T02:41:26 | 2020-05-07T02:41:26 | 234,452,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | h | Account.h | #include <iostream>
#include <string>
using namespace std;
#ifndef _Account_h_
#define _Account_h_
class Account{
private:
string name;
long taxID;
double balance;
protected:
int numdeposits;
int numwithdraws;
public:
void SetName(string name);
void SetTaxID(long taxID);
void Se... |
b8c9ba9f3282e9601feacc444550c76e55b8de0d | 08859bf8789d608c15fdd4691c634816f2c6cdcc | /MySquare.cpp | 9782a7f3716d76d9f679d7e83406b64b6d80199c | [] | no_license | galitzhaki/Paint | 1043d2bc35ea1dc310f28f5320a77bdacef04006 | 900922d7f5c93769b53aad138271914ac20e30c8 | refs/heads/master | 2020-07-19T19:29:44.925861 | 2019-09-05T07:27:47 | 2019-09-05T07:27:47 | 206,501,726 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | cpp | MySquare.cpp | #include "stdafx.h"
#include "MySquare.h"
MySquare::MySquare()
{
}
MySquare::~MySquare()
{
}
void MySquare::innerDraw(CDC *dc)
{
int width = end.x - start.x;
int height = end.y - start.y;
int w = (width > height) ? height : width;
if (w < 0)
w = (width < height) ? height : width;
dc->Rectangle(start.x, st... |
8318c6e728a9fdf2579d7733a6c1139d4f846a40 | a242edd332ed992359cf73eaecedb7fc5227ab48 | /src/engine/model/Mesh.cpp | 5baab77020b8582549fb7b663f8aaf2022bdee53 | [] | no_license | Spotlight0xff/render-ogl | 1ba060b16fc1f8c4db3b25a5addf2cd14de867f2 | 1a603e47c710ea0d94b3b99bcdc7f71413a1aff1 | refs/heads/master | 2021-01-11T23:01:53.602484 | 2017-01-27T20:54:15 | 2017-01-27T20:54:15 | 78,537,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,876 | cpp | Mesh.cpp | #include <GL/glew.h>
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <SOIL.h>
#include <fstream>
#include <sstream>
#include <iostream>
#include <vector>
#include <engine/Model.h>
#inc... |
7121d8f93e2f8874d7b67cbca183319b96f306ca | 08468a2bb58568b916492fe77128c5907d5577df | /setup_bins.cpp | 63284eb629475dbd84a8b5cf51ecce2ad7b9c369 | [
"Apache-2.0"
] | permissive | fgenolini/cod_200828_3 | c218775f555fd23d915cf8d1023c1a8e2cb28204 | b1653a6f6b35fca71e5839abb55ca6fe5c08db3a | refs/heads/master | 2022-12-12T07:31:58.827220 | 2020-08-31T13:40:20 | 2020-08-31T13:40:20 | 291,359,309 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 139 | cpp | setup_bins.cpp |
#include "setup_bins.h"
#include "large_arrays.h"
namespace frank::algo {
array_value bin_start[BIN_COUNT];
} // namespace frank::algo
|
637450a4dd791436e8bd465137cdd3ecb43c7a30 | aa2bc077ec19cb896f04fb533f15dd601187785e | /setting.h | 86766ce3895a0972162bf0dcfb28288a75ac60ef | [] | no_license | llong283/JobInfo | dc1e7bd1aa19f277479bf4a78d6906e6b0d2beeb | 2a1084b67559e9316feaafeefe6f3fc296088d4d | refs/heads/master | 2021-01-22T18:14:17.568622 | 2013-03-10T11:52:02 | 2013-03-10T11:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 884 | h | setting.h | #ifndef SETTING_H
#define SETTING_H
#include <QObject>
#include "config.h"
#define g_setting Setting::instance()
class Setting : public QObject
{
Q_OBJECT
public:
static Setting *instance();
void updateSetting();
inline bool getIsCloseMin() {
return m_isCloseMin;
}
inline bool ... |
fb9edaadacb85bd7301a0c385130c4d72fd165d1 | 98f73352ec281d83c0ee24bf9157e97c8c8dbe94 | /BounceSkill/src/Kernel/Collision/Detector/CollisionDetectorLineToLine.h | 7c9eae41eee9c923e4d08da9650261013f3c5b6d | [] | no_license | LAGx/BounceSkill | 0860c9e27a613bf041913dd1e9f5df14d72dae9b | e501a9948d75e4c92fa68b3d1f36c9ef9e304804 | refs/heads/master | 2022-12-10T18:46:09.818598 | 2020-08-27T22:01:32 | 2020-08-27T22:01:32 | 289,046,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | h | CollisionDetectorLineToLine.h | #pragma once
#include "ICollisionDetector.h"
#include "../Collider/ColliderLineTwoPoint.h"
class CollisionDetectorLineToLine : public ICollisionDetector {
public:
ClassColliderNickPair getSupportedNickPair() const override;
bool detectionMethod(const ICollider* colliderA, const ICollider* colliderB, CollisionInfo& i... |
df235813a0918e792fe0e82b1f0abb561dfb0774 | c640cb54a4f8ff48a30d10854621880fbd11223b | /testing/test_engine_API.h | c871a89bfb078410f0054173ebab3f4307b9f713 | [
"MIT"
] | permissive | tobiascr/four-in-a-row-cpp | 849d99d072ea750ead0042d1b69c0b2e6ad12e3c | 64d4cbe9d40b98dde66ba73ecff0a01b5baad1dc | refs/heads/master | 2023-03-30T15:59:03.094156 | 2021-04-05T18:30:51 | 2021-04-05T18:30:51 | 249,943,797 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,090 | h | test_engine_API.h | #ifndef TEST_ENGINE_API_H
#define TEST_ENGINE_API_H
#include <array>
#include <vector>
#include <random>
#include <unordered_map>
#include <string>
#include "test_game_state.h"
namespace TestEngine
{
class EngineAPI
{
public:
EngineAPI();
EngineAPI(unsigned int seed);
// This constructor take a random n... |
6ab135fe6f5baa88e8149d5d8352a2c252657395 | ff381c6e63026bdf54ca6f2b7058c4b5bf7a5d5a | /leetcode/SudokuSolver.cpp | d0307fd670ad9759eddfcb3de7cf983aef78a2f2 | [] | no_license | wind1900/exercise | 6e8380c9cec21668fc88a393106272b0f2dd3a4b | 30cb6ebbca5ddb3d5d758dee4ff5a537de2f0120 | refs/heads/master | 2021-01-23T11:50:28.418440 | 2014-08-17T05:38:03 | 2014-08-17T05:38:03 | 20,727,947 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,740 | cpp | SudokuSolver.cpp | class Solution {
public:
void solveSudoku(vector<vector<char> > &board) {
bool row[9][9];
bool col[9][9];
bool box[9][9];
bool done = false;
int i, j, n;
for (i = 0; i < 9; i++) {
for (j = 0; j < 9; j++) {
row[i][j] = false;
... |
dab11cb9b981e279e9b372d27bb7997b279486b8 | 115c5ee776f2bbeea89353d887bd27b02c7dd862 | /Internet AppWare Source Code/AW16_2/OBJECTS/W_LAYOUT/W_DATA.H | 8cec1ff3b59aeba6490f3be57f7c44fa34c29da7 | [] | no_license | benbucksch/AppWare | f9a894140d6bc95d2d27f5ed7d8df51fc57b9709 | 321ced6e94030c25ba36c781dc92ddb7c2508c09 | refs/heads/master | 2020-07-12T23:31:34.160706 | 2014-10-08T17:17:07 | 2014-10-08T17:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,088 | h | W_DATA.H | /////////////////////////////////////////////////////
// Private Header file for the window object ///////
/////////////////////////////////////////////////////
#ifndef W_DATA_H
#define W_DATA_H
#ifndef OP_WND_H
#include "op_wnd.h"
#endif
#ifndef __MEM_H
#include <mem.h>
#endif
#ifndef O_WND_H... |
2566a7e155fd47882359b4153c3db23da832f668 | 8e6d998054a6cb30307e658fda3b182fe61f606b | /source/vector3D.h | fc587cf5fc3987b8c655bb535e21ef2c21cc1258 | [] | no_license | KyleLangley/dan_gl | 80bc1bd26b066d3b2cd27e69a7b8907a876e5caa | e7b9e26d51407bec80c4d5937e78e54630fec0ec | refs/heads/master | 2022-12-14T16:33:19.878159 | 2020-09-07T19:37:32 | 2020-09-07T19:37:32 | 293,616,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 220 | h | vector3D.h | #pragma once
class vector3D
{
public:
vector3D() {};
vector3D(float _x, float _y, float _z) :x(_x), y(_y), z(_z) {};
private:
float x = 0.0f;
float y = 0.0f;
float z = 0.0f;
public:
float data[3]{ x, y, z };
};
|
c5117490096a3de9a21cc62d8141c177b1d68772 | 8311dd0324937a4a0235799a78cfc07c6cc212a0 | /Bezier Curve Editor/00-framework/src/main.cpp | a8fb6905964dbaf7ff22414a11f0fc5bbb1d6c4c | [] | no_license | kang235/Geometric-Modeling | 1fca76dc101ad8fc8d4dc91c0f3e4476e2fa9c7b | 5f85ed176233b31a426dc726466812c08e005ba0 | refs/heads/master | 2016-09-05T23:19:17.593155 | 2015-10-03T20:21:49 | 2015-10-03T20:21:49 | 41,818,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,970 | cpp | main.cpp | /**********************************/
/* Framework for CGT 581-G Geometric Modeling
(C) Bedrich Benes 2014
bbenes ~ at ~ purdue.edu */
/**********************************/
#include <algorithm>
#include <string>
#include <vector>
#include <fstream>
#include <sstream>
#include <exception>
#include <stdexcept>... |
b44d01d08568141e0120118e2215b4ccfa9a9b0d | 98e5fd588b356aff074e907c27aede0b609aae85 | /codechefTutorial/qn1.cpp | 74566b482f23d72fefaa8c6befa34bac7ae3dde6 | [] | no_license | ayushshukla92/algorithms | 060521612773e93bf4804abd5644fc35d4d32eb7 | a3d5baa3c71de5fa9a8049d436c802c75ad32cd2 | refs/heads/master | 2016-08-12T02:01:53.233754 | 2015-11-04T11:09:00 | 2015-11-04T11:09:00 | 45,024,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | cpp | qn1.cpp | #include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int arr[100001];
int c,n;
bool fun(int x)
{
int cowPlaced = 1;
int lastPos = arr[0];
for(int i=1;i<n;i++)
{
if(arr[i]-lastPos>=x)
{
cowPlaced++;
lastPos = arr[i];
if(cowPlaced==c)
return true;
}
}
return false;
}
int ... |
a24c26845652d095c97fb655804cdc1a508de8c9 | e03c44ce7ffd6b5cd3a95a07d088fa7f61e5214c | /ext/rts_api/basic_logging.h | 6aab2acafdf1010ffb1af451c7106c11f026e626 | [] | no_license | godrin/rts | 7ab2d98e88f826c5b881e28baf95a3bc4d7259b9 | 97b7bb04b38ce7b7bf9de811ff7aa9e0d821d300 | refs/heads/master | 2021-01-22T07:31:41.753162 | 2010-08-22T14:08:05 | 2010-08-22T14:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,913 | h | basic_logging.h | /*
* File: rk_logging.h
* Author: davidkamphausen
*
* Created on 16. Februar 2009, 17:47
*/
#ifndef _RK_LOGGING_H
#define _RK_LOGGING_H
// INCLUDE_SWIG - used to filter, which files are included in swig-interfacing
#include <basic_base.h>
#include <basic_singleton.h>
#include <fstream>
#include <sstream>
c... |
d932383a9ef64c06ed29dbf0d96445c82be24d8d | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/external_protocol/external_protocol_handler.h | 855e04455e167915021861142b9a298f48260177 | [
"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 | 8,502 | h | external_protocol_handler.h | // Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_
#define CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_
#include <string>
#include "base/f... |
1954fd459e7408c3b008929b82526e063e7d2e38 | 97287ccc3a3701574d9c11addd116827358349cc | /Dorc.cc | 931f0efbf449eced33fa08f2384b212ad75f4332 | [] | no_license | lanceencarnado/a5 | caf739cd08f8c445fff54214857ba1e34e5d1751 | 7ad2a7def9f6ba27a352775c895638d9c34a553f | refs/heads/master | 2020-06-04T22:05:45.071709 | 2015-04-07T01:22:23 | 2015-04-07T01:22:23 | 33,418,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | cc | Dorc.cc | #include "Dorc.h"
Dorc::Dorc()
{
id = nextId++;
space = random(3) + 4;
item = "swords";
}
void Dorc::loot() {
cout << "Dorc (" << id << ") steals " << item << endl;
}
|
d8cbffe1482c908b050c50d81f2100cf3ce77af9 | 511d7cd374cf8ecdc6a9d72223bed16a32d83c78 | /msdk/mscom/fastdb/fastdbdllremote/DBConnRemote.h | 5a4fcb10e51fedda903d428154d109d1f840e9a5 | [] | no_license | mynick777/msdk | 1818c718a181de772b9a3e2dd6d7b9a66296dc86 | 4ee669c60148ad72e1d8af9bea05e05019af79e6 | refs/heads/master | 2020-05-18T00:56:37.308774 | 2019-05-01T16:19:13 | 2019-05-01T16:19:13 | 184,075,465 | 0 | 0 | null | 2019-04-29T13:22:32 | 2019-04-29T13:22:32 | null | GB18030 | C++ | false | false | 3,199 | h | DBConnRemote.h | #pragma once
#include <database/genericdb.h>
#include "DBRecordSetRemote.h"
enum FastDBCmd
{
FDBC_Delete = 100 ,
FDBC_Insert ,
FDBC_Update ,
FDBC_CreateTable ,
};
enum FieldFlag
{
FF_default = 0,
FF_hashed = 1, /* field should be indexed usnig hash table */
FF_indexed = 2, /* field ... |
33184b9462b4daa2d44f2b2d7b7155342626c100 | 3647baba44ef30ef2eb5636247cccbd2191144fc | /CourierCompany/TabMap.cpp | 69f5ec9794ad8bcf4546d4ca02d80d37a4e8b3fb | [] | no_license | kkramek/CourierCompany | 71fee3aabddc19d209b76569ef3a4c30ff9dabe4 | 71caea65a1c727250159a6a9a9e99fd6910f9f56 | refs/heads/master | 2020-12-24T12:33:42.974528 | 2017-02-22T09:57:47 | 2017-02-22T09:57:47 | 72,985,050 | 1 | 0 | null | 2017-01-22T15:24:30 | 2016-11-06T11:02:38 | C++ | UTF-8 | C++ | false | false | 1,516 | cpp | TabMap.cpp | // TabMap.cpp : implementation file
//
#include "stdafx.h"
#include "CourierCompany.h"
#include "TabMap.h"
#include "afxdialogex.h"
#include "Game.h"
// CTabMap dialog
IMPLEMENT_DYNAMIC(CTabMap, CDialogEx)
CTabMap::CTabMap(CWnd* pParent /*=NULL*/)
: CDialogEx(CTabMap::IDD, pParent)
{
}
CTabM... |
572686f8dea7cc3a0fc648e5544973efcd1672c4 | 05bafec1c5bb9ab3fc435b6148386304575d6b44 | /applications/integrationtests/visualize/AverageHandler.cpp | e0832ba96eed0840414a84eaaebdc1856787496a | [
"BSL-1.0"
] | permissive | nutofem/nuto | 7b816b645b0a855bc393065798d999c5d14a59b2 | c416c4f1ac954e783a9f7e5bf0bb97758c75b6ee | refs/heads/develop | 2020-04-12T03:56:09.670125 | 2018-09-19T05:52:34 | 2018-09-19T05:52:34 | 63,241,285 | 20 | 7 | BSL-1.0 | 2018-09-19T05:52:35 | 2016-07-13T11:42:57 | C++ | UTF-8 | C++ | false | false | 511 | cpp | AverageHandler.cpp | #include "nuto/visualize/AverageHandler.h"
#include "nuto/visualize/Visualizer.h"
#include "nuto/visualize/XMLWriter.h"
#include "TestStructure.h"
using namespace NuTo;
using namespace NuTo::Visualize;
BOOST_AUTO_TEST_CASE(GroupAverage)
{
NuTo::Test::VisualizeTestStructure s;
auto cells = s.Cells();
std:... |
dd07d879abb295be4ba81f8ed5f54e8a82780057 | 8b5db457d9d928b60a4c1ff074cbbef2fb5f61f7 | /06-32-TemplatesTypeInference/main.cpp | ccb5aad1d882db30ef7114f617d2b6e6cf15c6b4 | [
"MIT"
] | permissive | NelsonBilber/cpp.udemy.advancedcpp | 605abdb06854e3eafbb8cee92710660c09a81641 | db0a4069bb08baaada2ae2bc325028ba9996875c | refs/heads/master | 2021-01-12T03:52:00.601638 | 2017-02-13T22:02:09 | 2017-02-13T22:02:09 | 78,277,106 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 487 | cpp | main.cpp | #include <iostream>
#include <string>
using namespace std;
template< class T>
void print(T n)
{
cout <<"Template version " << n << endl;
}
template< class T>
void show()
{
cout << T() << endl;
}
void print (int value)
{
cout <<"Non-Template version " << value << endl;
}
int main(int argc, const char *... |
e197882845860ea2a324b54f52fa0e148888ba43 | cfcf38816fa8cddc28e2125165c32fb2c3c00910 | /Source/FactorySkyline/Operators/FSPipelineSupportStkOperator.h | b126dcdf4c6a1e464c8c3c549791fbeecfc55784 | [
"MIT"
] | permissive | The1NdNly/FactorySkyline | 6dc79dd2605ed6e76e7db33d30690275046003fa | e9ee8750ed6417fc8e12328b0adb44a9e3baa739 | refs/heads/main | 2023-06-18T06:52:36.739400 | 2021-07-11T15:58:04 | 2021-07-11T15:58:04 | 378,999,048 | 3 | 6 | null | 2021-07-11T15:58:05 | 2021-06-21T16:42:35 | C++ | UTF-8 | C++ | false | false | 444 | h | FSPipelineSupportStkOperator.h | // ILikeBanas
#pragma once
#include "CoreMinimal.h"
#include "FactorySkyline/Operators/FSPipelineSupportOperator.h"
#include "FSPipelineSupportStkOperator.generated.h"
/**
*
*/
UCLASS()
class FACTORYSKYLINE_API UFSPipelineSupportStkOperator : public UFSPipelineSupportOperator
{
GENERATED_BODY()
pu... |
4b02333454319f321f1c66bfa4ec69ad176082d0 | 75593770082f839c23d9aaac7fb1e32d97c18a7b | /Core/Font.cpp | ea48c2009670268053781450a28c8dce39a48fc9 | [] | no_license | cn1504/Core | 51aa96ec802efe61c16d854e7a9e4024abf69236 | 11fbc8acfecc0eaeb69de3195f2823c26a8bb00e | refs/heads/master | 2020-04-05T23:07:34.178914 | 2014-06-18T19:45:11 | 2014-06-18T19:45:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 363 | cpp | Font.cpp | #include "Font.h"
namespace Core
{
Font::Font(Core::Texture* texture, float charWidth, float charHeight, int charsPerRow, float spacingWidth, float spacingHeight)
{
Texture = texture;
CharWidth = charWidth;
CharHeight = charHeight;
CharsPerRow = charsPerRow;
SpacingWidth = spacingWidth;
SpacingHeight = ... |
20d28e6cd748b3f88ff351bef86eaf3eb46fddec | ca5fd77cc2cc26e5c92c04dbf243ae220c6bc8ed | /test/class_define.cpp | 1e23c42ba9acaffb8071ef5dd34212b38eae990b | [] | no_license | luyao/reflectClass | c5b4eafa74c0098857e8900a15207775a0cd5c31 | ac05857b103c2153d162414694e036f99791a239 | refs/heads/master | 2021-01-01T05:43:15.657708 | 2014-03-11T08:08:45 | 2014-03-11T08:08:45 | 17,510,913 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 600 | cpp | class_define.cpp | /**
* @file class_define.cpp
* @Synopsis
* @author Yao lu
* @version 1.0
* @date 2014-03-08
*/
#include <iostream>
#include "class_define.h"
DEFINE_CLASS(Student);
void Student::eat()const{
cout<<"Student eat"<<endl;
}
void Student::talk()const{
using namespace std;
cout<<"Student talk"<<endl;... |
2bb4699e249425be227fa9b21d8873c41f65cf3a | 4c0568bcb1a7345482052dffedbd1b544cf432cf | /DES_GOBSTG/DES_GOBSTG/Core/ParserFunction.cpp | 852b0d7b4c265423f50cedb8e403c075b75d306b | [] | no_license | CBE7F1F65/aab67be7d1ea40a0bd5beca3a5dc1ebc | d8a4daf93caa9dd03628eaf89859e41f12214006 | a60f4e173f79e5fb232378f3d2e00882dfd8feef | refs/heads/master | 2021-01-22T02:53:08.710769 | 2013-03-07T00:15:45 | 2013-03-07T00:15:45 | 32,192,709 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,154 | cpp | ParserFunction.cpp | #include "../Header/Scripter.h"
//#include "../Header/processPrep.h"
void * Scripter::Value(vector<Script>::iterator * p, int i, BYTE force)
{
/*
if((*p)->type & SCR_TOKEN_VALUE)
{
if(force & SCR_FORCE_INT)
{
d[i].bfloat = false;
if((*p)->type & SCR_TOKEN_FLOAT)
{
idesc[... |
f00cfbc9b2d80946154e1793d2e3bbb1320bf072 | 8918c20d72698cd6f4ac316d04ebd2e956af9584 | /testing/fileInputTest/fileInput.cpp | a649aa9c17cf79d35ec7ba1f4fc835807089d24c | [] | no_license | forcedusername/csci104FinalProject | 3f6009562a1f9ca460ad0c9249c7a436d554093b | e0d643cb0f985ba4ec147e8af82e4efe078e76be | refs/heads/master | 2021-01-10T11:45:58.190856 | 2014-05-07T18:59:59 | 2014-05-07T18:59:59 | 36,704,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,792 | cpp | fileInput.cpp | #include <iostream>
#include <stdlib.h>
#include <fstream>
// Need algorithm to convert string to lowercase
#include <algorithm>
#include <string>
#include <vector>
// Structure which holds the advertiserBid and its components
struct advertiserBid {
std::string _company;
std::string _bidKeyword;
float _price;
};
... |
3d4001c6095ef4485df58d265d97ecc1ddc58e93 | 680440f5e59eb2157c1ecb41fd891880ac47c459 | /LUOGU/P1288/getNumberII.cpp | aad6727a0f7c06a90c1370f1a296c6f8cc9ff546 | [] | 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 | 569 | cpp | getNumberII.cpp | #include<bits/stdc++.h>
#define int long long
using namespace std;
inline int read(){
int ret=0,f=1;char ch=getchar();
while (ch<'0'||ch>'9') {if (ch=='-') f=-1;ch=getchar();}
while (ch>='0'&&ch<='9') ret=ret*10+ch-'0',ch=getchar();
return ret*f;
}
const int maxn=25;
int n;
int a[maxn];
int num1=-1,num2=-1;
s... |
47ff542aa3c860e75480a8d46456ad6d47693713 | 10db6f2eb356fdd1db8396be35b63d3ba0e5ebd9 | /MyImageEditor/MyImageEditor/include/myimageeditor/logger_defines.hpp | 8dca51d601e2f1bb6b50e27ffe37800b60056c37 | [] | no_license | Sedux/MyImageEditor_repo | 83b3c35cb12dce01c8c945ddc1c3289be1ed51b4 | 140c31849509753602de733d7fc0c7c70e35973f | refs/heads/master | 2016-08-04T10:09:36.261389 | 2013-09-21T19:34:06 | 2013-09-21T19:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | hpp | logger_defines.hpp |
#ifndef LOGGER_DEFINES_HPP
#define LOGGER_DEFINES_HPP
#include <QtGui\QtGui>
#define QDEBUG_MSG(MSG) qDebug() << QString::number(__LINE__) + QString("__LINE__") + QString(__FILE__) + QString("__FILE__") + QString(MSG)
#define QWARNING_MSG(MSG) qWarning() << QString::number(__LINE__) + QString("__LINE__") + QS... |
75949e09febb749c1bb26866758ca67419d26578 | b7df03ae05ffc2b282e169014de5a67c66bb4582 | /src/RcppExports.cpp | c72774b2989e38671952a7902165a19b7c531691 | [] | no_license | blosloos/depRec | 89680fabad57c2443fe0162e2fbc8e3ec4b750e2 | b4b148bd3c866864f69ecc424aeeed6993a56ed1 | refs/heads/master | 2020-05-30T23:47:05.981461 | 2019-06-03T14:36:01 | 2019-06-03T14:36:01 | 190,023,218 | 0 | 1 | null | 2020-03-04T14:26:37 | 2019-06-03T14:36:34 | C++ | UTF-8 | C++ | false | false | 17,735 | cpp | RcppExports.cpp | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
// getEIC_new
SEXP getEIC_new(SEXP mz, SEXP RT, SEXP intens, SEXP orderedint, SEXP orderedret, SEXP dmzdens, SEXP ppm2, SEXP drtdens, SEXP merged2);
... |
aefe5e02b20f218484a3d764eb9342e09298c615 | 06f9cf05bd194f150f1e8ab481cb4d8facbe2139 | /app/src/main/cpp/process_image.cpp | a0dc555954f5f542a4f62510ad38abdffb7143da | [] | no_license | alexandremgo/android-computer-vision | f25c16403f3a344ddf990572c73d72865b038163 | 6fe66c4e1a332653d66b3bf7d767be44e6ef6c19 | refs/heads/master | 2020-12-11T11:49:52.991613 | 2020-01-19T08:33:48 | 2020-01-19T08:35:04 | 233,841,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,943 | cpp | process_image.cpp | /*
* Copyright 2020 Alexandre Magaud
*
* 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 agr... |
37349d2dd7e09717cb70ce05938cc70de2219f4c | 79e437c0a98042d51e3445093e3fac8a24213b66 | /Exam/EarlyShopping.cpp | 65225a5488dfe9896cf4ad24cf47ac45730814a2 | [] | no_license | yayankov/Design-and-analysis-of-algorithms-practical | a44f1a8a7d2c106e20da49cf6940ab22e5b06c4a | fa67f780e1c5374d3180ce0bb1f19739e9628115 | refs/heads/main | 2023-03-12T02:13:00.903461 | 2021-03-04T13:10:52 | 2021-03-04T13:10:52 | 344,464,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,174 | cpp | EarlyShopping.cpp | #include <iostream>
#include <stdio.h>
#include <queue>
#include <vector>
#include <limits.h>
#include <list>
#include <unordered_map>
#include <algorithm>
using namespace std;
bool used[2000000];
vector<int> gr[2000000];
void dfs(int start)
{
used[start] = true;
for(int i : gr[start])
{
if(!used[i])
... |
ada3ed4805fdc534aa49f84986525b4bf206b5f5 | 22ad2ffe61066572fd3c09e0d242bf8e88391a34 | /ABCpath.cpp | de7fcacb8a72a42094be446c91f887cc167af9a4 | [] | no_license | rishi-hi-5/codes | 5e52e7c55dcda365f7daf9fb108fde62f2408065 | 9ab8b11a702fd7a39a694a3bfa3fa5641fe61400 | refs/heads/master | 2021-01-10T05:14:02.091265 | 2018-02-22T14:53:13 | 2018-02-22T14:53:13 | 52,864,061 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,412 | cpp | ABCpath.cpp | #include<cstdio>
#include<iostream>
#include<queue>
#define MAX 51
using namespace std;
int max_t,count;
int m,n;
struct coord{
int x;
int y;
};
queue<coord> q;
void visit(int x, int y ,int a[][MAX],int val){
coord c,temp;
if(x<0||x>=m||y<0||y>=n||a[x][y]!=val+1){
return;
}
else{
//cout<<"=="<<a[x][y]<<" "<<... |
b3d87a420a4de8dffbca3ce40f920f7bbc3ebee0 | e7af073f0013c1b63219cff9579e0f1029396e78 | /src/server/Disk.cpp | f93cbc007d0aa8674f6b0a7e79a1ef9e4a0cb1c7 | [
"BSD-2-Clause"
] | permissive | ms-building-blocks/credb | 703941337f86d6b212ed7d6fd9027c7ce599fa85 | 0956ee0b8d246d00a375fd978cbd2ea787688d98 | refs/heads/master | 2021-05-09T19:00:41.879431 | 2018-01-26T20:49:08 | 2018-01-26T20:49:08 | 119,178,204 | 1 | 0 | null | 2018-01-27T15:54:23 | 2018-01-27T15:54:22 | null | UTF-8 | C++ | false | false | 10,712 | cpp | Disk.cpp | #include <fstream>
#include <cstring>
#include "Disk.h"
#include "EnclaveHandle.h"
#ifdef FAKE_ENCLAVE
#include "FakeEnclave.h"
#else
#include "Enclave_u.h"
#endif
#include <glog/logging.h>
Disk::~Disk()
{
flush(false);
for(auto it : m_files)
{
delete it.second;
}
}
void Disk::remove(const ... |
0741f6ee7c1888cb8297d024a3702630d341c504 | b8d8c163cea4a612eb198d0c98086bcb1aecb093 | /experiment/output_container.h | 9f3d112dad005b4657087abfb04fb0a462884428 | [] | no_license | yinheng/wzq_utils | 5f6890c8283cd1ee251d1e2f19fcd8b82f135ec0 | 437d1d568a0f2339a32773b173b6adb04904797c | refs/heads/master | 2023-06-19T17:59:59.210092 | 2021-07-18T08:05:10 | 2021-07-18T08:05:10 | 387,123,715 | 0 | 0 | null | 2021-07-20T14:14:04 | 2021-07-18T08:07:16 | C++ | UTF-8 | C++ | false | false | 3,472 | h | output_container.h | #pragma once
#include <ostream> // std::ostream
#include <type_traits> // std::false_type/true_type/decay_t/is_same_v
#include <utility> // std::declval/pair
// Type trait to detect std::pair
template <typename T>
struct is_pair : std::false_type {};
template <typename T, typename U>
struct is_pair<std::pa... |
0eed864489f12c51229815dfb6c2fa1f3f13d187 | 7aa28217c567be0a87bdbd12d5f5ca4edaa634a5 | /zappy/zappy-2015-2014s-duval_q/src/client/src/.svn/text-base/main.cpp.svn-base | 8336ec131e8e0aa0097fda741e6f72b961952517 | [] | no_license | hallux4/SchoolProjects | 19b8f18f00673d50a420fa09253fd9e064fbb01b | 23797268ef19fc7c09be5406ea5b714b8bac984c | refs/heads/master | 2021-01-11T20:12:49.777237 | 2017-01-16T00:17:06 | 2017-01-16T00:17:06 | 79,068,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 704 | main.cpp.svn-base | #include <iostream>
#include <string>
#include <fstream>
#include "Player.hh"
#include "Network.hh"
#include "Request.hh"
#include "Parser.hh"
int main()
{
Socket s(TCP);
Request req;
ProducterStream stream;
ParserZappyClient parser(stream);
Player p(1, s, req, parser);
std::fstream streamIA("Zappy... | |
15547c8969b9ac183cd3663729f1b7e5c68023eb | 5d222e9eb564ae817816a562d6982c0167eca6b2 | /大三/LeetCode周赛/缀点成线.cpp | 577eada88f15576061db813328812f5be81c442f | [] | no_license | pure-xiaojie/acmCode | 00c811796de44d4a0316c22f1a7956d2dc868e19 | 5c1932ba5fa7c3d141ae7f5294004c862102a4b7 | refs/heads/master | 2021-02-14T19:55:02.546355 | 2020-08-11T13:54:09 | 2020-08-11T13:54:09 | 244,829,610 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,146 | cpp | 缀点成线.cpp | #include<bits/stdc++.h>
using namespace std;
bool checkStraightLine(vector<vector<int> >& coordinates) {
int len = coordinates.size();
double k;
if(coordinates[0][0] != coordinates[1][0]) {
k = (coordinates[1][1] - coordinates[0][1])*1.0/(coordinates[1][0] - coordinates[0][0]);
for(int i ... |
94f386c40109897bcbe93ddfa0ca1bae4f60f764 | 4ab0095796dfe59b9ecd923feeac1f061bf1c049 | /ComandoWhile.h | 188ed35f1045cc35872be2acfaaaf0ff6c6ef821 | [] | no_license | rodrigosts/interpretador-cpp | e0c2146a87d9f660d2f3b4adef4914ad148e1356 | 5a4f7454537d83e5711a9a36d3d0d8212c871ea4 | refs/heads/master | 2021-01-10T04:25:21.586897 | 2015-09-28T01:08:05 | 2015-09-28T01:08:05 | 43,186,342 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | h | ComandoWhile.h | #ifndef COMANDOWHILE_H
#define COMANDOWHILE_H
#include "Comando.h"
#include <string>
#include "TabelaHash.h"
#include "Variavel.h"
#include "VariavelInteira.h"
#include "VariavelString.h"
#include <cstdlib>
#include <vector>
class ComandoWhile : public Comando{
private:
string valor;
string valor2;
... |
ba5d206faabbc9e932550377c7190ea052f41420 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /GPU-Gems-Book-Source-Code/GPU-Gems-2-CD-Content/Simulation_and_Numerical_Algorithms/Ch_44_A_GPU_Framework_for_Solving_Systems_of_Linear_Equations/source/dx/clFramework/clPackedVector.h | 0910bc8a0e8433ae8c8bf141bf82f98335cff333 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | ISO-8859-2 | C++ | false | false | 2,399 | h | clPackedVector.h | /************************************************************
* *
* decr : RGBA ecnoded vector class *
* version : 1.2 *
* author : Jens Krüger *
* date : 16.09.2003 *
* modified : 10.06.2004 *
* e-mail : jens.krueger@in.tum.de *
* ... |
f45db5a53f405741c53d5b5a429f46b570dd08e8 | 7f7e2e7ed09fd4ff372ec60e2b3566163fe96dc4 | /PA8/BSTNode.cpp | 2576b1df42723cf27574b79b663e7a113fb01625 | [] | no_license | Ogieriakhi17/CPTS-122 | c8679786853d478be86988561f54e1f765427a8e | 782c61a4cd6ed5838195f8920ce8d8ed7fa6b307 | refs/heads/master | 2023-04-07T00:47:17.238584 | 2018-09-26T03:00:44 | 2018-09-26T03:00:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,851 | cpp | BSTNode.cpp | #include "BSTNode.h"
///////////////////////////////////////////////////////////////////////////////
/// \file BSTNode.cpp
/// \author Gal Zahavi
/// \date
/// \brief This application is a BST places data into BST tree ans sorts it
///
/// \function : Node()
///
/// REVISION HISTORY:
/... |
b680b2b2a5317f1888be493c2e1366b8eba326dd | ffc7cc818a3f4c0397232238fcf4afb293180afd | /ex1011_lambda.cpp | 0193eeedbe0d53fc39e8450cd8f42b0fd634187c | [] | no_license | TonyChouZJU/c---primer | e87cef617cca039739127a80986c7c4cb248bfe2 | aaa0c4e81fdffed07c32b331e6cb0f58955335f3 | refs/heads/master | 2016-08-04T23:58:30.493836 | 2015-06-24T05:53:24 | 2015-06-24T05:53:24 | 22,288,413 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,015 | cpp | ex1011_lambda.cpp | #include <vector>
#include <string>
#include <iostream>
#include <algorithm>
using namespace std;
bool isShorter(const string &s1, const string &s2)
{
return s1.size() < s2.size();
}
void vec_display(vector<string> &v)
{
//The first method uses iterator to traversal
for(vector<string>::const_iterator i = v.cbegin... |
f97593830fefb087d4f08d784a2e6256b0dc63c8 | 11635b52dd3a7bd86c01b9047023e5b2ffcf4c25 | /Project15-模板/Project15-模板/main.cpp | b8a5f2872172d48051502637f5dd1756be346e13 | [] | no_license | CatTeaCup/chuxiao.github.io | 96ab0684036565652c268b3e87c233c4546a184f | b488e5d8bd9b1876ba3ab6c83c59d908a886ca5c | refs/heads/master | 2023-09-03T01:40:55.900836 | 2021-11-13T01:59:19 | 2021-11-13T01:59:19 | 427,544,447 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 14,036 | cpp | main.cpp | #include<iostream>
#include<string>
#include"classmode.hpp"
#include"MyArray.hpp"
using namespace std;
//函数模板
void swapint(int& a, int& b)
{
int temp = a;
a = b;
b = temp;
}
void swapfloat(float& a, float& b)
{
float temp = a;
a = b;
b = temp;
}
template<typename T> //声明一个模板,后面代码中的T不要报错,T是一个通用数据类型。T代替了所有类型,可以是... |
b28621f402db530327c6f088807c663a07162f9a | 15d188a6a5a948628d0c1f7dee9439e6380595d6 | /src/GEL/HMesh/curvature.h | 774e2569352183c5ec8d5f8d7daa94bacc4bf5a8 | [] | no_license | janba/GEL | 5dcabf5a0addadaaabdffe8936c154750a07a4f3 | 1ccaf541385fadad5de51881fb884493b41ada75 | refs/heads/master | 2023-08-28T16:43:58.895144 | 2023-06-05T08:46:12 | 2023-06-05T08:46:12 | 21,777,529 | 78 | 25 | null | 2023-09-05T05:47:12 | 2014-07-12T22:06:29 | C | UTF-8 | C++ | false | false | 3,589 | h | curvature.h | /* ----------------------------------------------------------------------- *
* This file is part of GEL, http://www.imm.dtu.dk/GEL
* Copyright (C) the authors and DTU Informatics
* For license and list of authors, see ../../doc/intro.pdf
* ----------------------------------------------------------------------- */
... |
b926d200bbd7ee53a8fced1ae7c75b1a6e1ebc9e | fb2c81d6850653b55ce3cd71300357130df74b27 | /bootcamp_AVLTree.cpp | cd1d7baae7bc4b857aedb312dc6deff1abd0f2eb | [] | no_license | shadowprince10/bootcamp_DSexercises | b21e34a55f5d1155545fac80044c9dc69ad3a2bf | c88ecb0733ca53a3cfc70fae033d5960d3038ed9 | refs/heads/main | 2023-02-13T06:50:28.422404 | 2021-01-05T10:03:29 | 2021-01-05T10:03:29 | 323,034,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,344 | cpp | bootcamp_AVLTree.cpp | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
// AVL TREE
// 1. maksud rotate? Rotate untuk apa?
// 2. Balance Factor
// 3. di fungsi rotation -- kenapa rotate right, lalu return yang left dan sebaliknya?
// 4. Kenapa kita harus rotate untuk insert node di AVL Tree?
// 5. Function Delet... |
a3361c814ec4db5fba329254f7973b9edb63d86a | cfe35a116b31a929d2f57277047cb7689dce104c | /python/dartpy/dynamics/Shape.cpp | 3a021b4e0b3c41ea162c45b4ee1d431264e9e63c | [
"BSD-2-Clause"
] | permissive | dartsim/dart | b43fefc5ea0a5be46e88f939e7bb56ac49030205 | 78a6d822754525bd5fd645f30d269c357b499628 | refs/heads/main | 2023-08-31T01:19:00.075197 | 2023-08-22T19:51:58 | 2023-08-22T19:51:58 | 2,418,592 | 869 | 324 | BSD-2-Clause | 2023-09-05T23:08:14 | 2011-09-19T21:53:51 | C++ | UTF-8 | C++ | false | false | 45,140 | cpp | Shape.cpp | /*
* Copyright (c) 2011-2023, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
bddad87ce9415a3b06c9612e2459e197bfa9b20d | db8dfd7ef00432842d187335ca6598341edc1922 | /apps/regression/test/graph.cpp | cdc5282ab1b61636eb2912f480bae52405604280 | [] | no_license | EmilieNumworks/epsilon | a60746285ede5a603916e5dc9361a689926f0fbd | bb3baa7466f39f32b285f2d14b6dc1f28e22e7a5 | refs/heads/master | 2023-01-28T20:49:55.903580 | 2022-09-02T13:15:05 | 2022-09-02T13:15:05 | 102,631,554 | 1 | 0 | null | 2017-09-06T16:20:48 | 2017-09-06T16:20:48 | null | UTF-8 | C++ | false | false | 6,048 | cpp | graph.cpp | #include <quiz.h>
#include <string.h>
#include <assert.h>
#include "../model/model.h"
#include "../graph_controller.h"
#include "../store.h"
using namespace Poincare;
using namespace Regression;
void load_in_store(
Regression::Store * store,
double * x0, double * y0, int numberOfPoints0,
double * x1 = nul... |
7092f6446d97cb599b5f379ba8eed3cbe7a0101d | 88abe79d30d39ef23b97e9485a4a2312ab23411e | /MD5Extras.cpp | 63505c5010292ed808251217d523db04c5e38b0e | [] | no_license | Peter229/Ani | f2486b81b9b16cbc814284166ccdc127acd5c5fc | 8cb4a7c28e63c4b136e796bdfe7e2a9a8159e979 | refs/heads/master | 2021-07-22T01:16:55.320855 | 2020-07-20T21:34:49 | 2020-07-20T21:34:49 | 196,580,794 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | MD5Extras.cpp | #include "MD5Extras.h"
void RemoveQuotes(std::string& str) {
size_t n;
while ((n = str.find('\"')) != std::string::npos) str.erase(n, 1);
}
int GetFileLength(std::istream& file) {
int pos = file.tellg();
file.seekg(0, std::ios::end);
int length = file.tellg();
file.seekg(pos);
return length;
... |
9dccd22c633527d7bf141639d2777cf0f276f59b | bf0b03beeb326a36990d93f6e20d6ef123fccbe0 | /OpenGL/GraphicsSettings.h | c45ca9e95b08e358c80d23e842f7e36bf0248f6b | [] | no_license | Crawping/Cyclone | 451a4eccf0487d306fa8e0cb3880a8746e2857f3 | 410c80a965824039f53fd9afa9291b5084427915 | refs/heads/master | 2021-01-01T04:02:49.879405 | 2017-07-12T21:58:42 | 2017-07-12T21:58:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,203 | h | GraphicsSettings.h | /* CHANGELOG
* Written by Josh Grooms on 20160822
*/
#pragma once
#include "EnumerationsGL.h"
#include "GL/OpenGLAPI.h"
#include "Interfaces/IGraphicsSettings.h"
namespace Cyclone
{
namespace { using namespace Utilities; }
namespace Utilities { class ISpatialTransform; }
namespace OpenGL
{
... |
25202247a25270fe342b0ceffbfd2f0d1bedffbb | 0b79a22cc166cac39cf3008a9f8d6cf79d2cccfd | /Irrigation/test/Hardware/Valves/ZoneHandlerImplTest.cpp | 0000522267b266f143508c277efa47e80bb4804e | [] | no_license | gyengep/irrigation | 01f9fdb56cd67bb1fbfc7726cabeceae64b5f798 | e6643032010c69a80d70be4dc7b9ee1c2033c707 | refs/heads/master | 2023-08-10T19:46:04.360659 | 2023-07-26T20:12:44 | 2023-07-26T20:12:44 | 61,204,876 | 0 | 0 | null | 2020-08-31T21:15:29 | 2016-06-15T12:04:11 | C++ | UTF-8 | C++ | false | false | 3,873 | cpp | ZoneHandlerImplTest.cpp | #include <gmock/gmock.h>
#include <stdexcept>
#include "ZoneHandlerImplTest.h"
#include "Exceptions/Exceptions.h"
using namespace std;
using namespace testing;
///////////////////////////////////////////////////////////////////////////////
void ZoneHandlerImplTest::SetUp() {
mockValves = std::vector<std::shared_ptr... |
967a24bb4a24be9bbf08a21faccb19ac41aad42f | 096d59652a9fa3d161d5608890ab5af88419a5f8 | /src/Basic-04-ConstBuffers/triangle.h | 3ee3eb3376132094c4baf00a320a55a5cc7408fe | [] | no_license | byhj/DirectX12-Example | 7545e2de2af1cf157d5e6a5119c6fbbb106c5c5f | 562076b98fae36e270d90372d713d546d8d80cf1 | refs/heads/master | 2021-01-25T07:40:16.428974 | 2015-11-04T06:03:57 | 2015-11-04T06:03:57 | 40,741,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | h | triangle.h | #ifndef Triangle_H
#define Triangle_H
#include <d3d12.h>
#include <DirectXMath.h>
#include <wrl.h>
using namespace DirectX;
using namespace Microsoft::WRL;
namespace byhj
{
class Triangle
{
public:
void Init();
void Update(const XMFLOAT4X4 &World, const XMFLOAT4X4 &View, const XMFLOAT4X4 &Proj);
void Render(Com... |
8f0e775558cba0976efb01a96c2a0cb545246079 | 31745b176ee0d30f47fb6cbdf0e9c621d104d441 | /Library/Include/Quadrilateral.hpp | 00680e28cfb161d89901668de383cf16fdd00f62 | [] | no_license | BlenderCN-Org/GraphicalMiller | 8406dcc900a00c7457ebe1f2adcc59c1e2de1bcc | 59acabb386e462809d7b50b1250df2be53404570 | refs/heads/master | 2020-05-27T08:23:53.923312 | 2017-02-21T04:54:11 | 2017-02-21T04:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,475 | hpp | Quadrilateral.hpp | //***************************************************************************//
// Quadrilateral Class Interface
//
// Created: July 27, 2011
// By: Jeremy Michael Miller
//
// Copyright (c) 2011-2016 Jeremy Michael Miller.
// Author: = "Jeremy Michael Miller"
// Copyright: = "Copyright 2005-2016, Graphical Miller, A... |
830951bdd50de95eedbaca35fd9a95286145d0ce | 3da69696601b2b3ad7bc1285a5f0343c7eafea80 | /lc202.cpp | a674c4fabbfdd0597a8a41d8281975cc5a2eac5c | [] | no_license | GeorgyZhou/Leetcode-Problem | ee586463a2e4e75c910c095bdc057f1be70b5c1b | d6fac85a94a7188e93d4e202e67b6485562d12bd | refs/heads/master | 2021-06-30T15:58:04.698200 | 2020-12-18T22:55:49 | 2020-12-18T22:55:49 | 66,054,365 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 461 | cpp | lc202.cpp | class Solution {
public:
bool isHappy(int n) {
int slow = n, fast = n;
do {
slow = digitSquare(slow);
fast = digitSquare(digitSquare(fast));
} while (slow != fast);
return slow == 1;
}
private:
int digitSquare(int n) {
int sum = 0, digit;
... |
faf825efa303c9128e7b06fb7bde8fa46efccace | 9467e2502183e843a67736800199e31674b1d8f6 | /HybridCLRData/LocalIl2CppData-WindowsEditor/il2cpp/libil2cpp/icalls/mscorlib/System/Math.h | 009bfcfc95033c6df5bfec8a12412a5bdf6f07a6 | [
"Apache-2.0"
] | permissive | yimengfan/BDFramework.Core | 3a046fcd755a84ba55d648dd3ad52c37a1cc1a04 | 81380fce8e84367f912777717665b53f074ab617 | refs/heads/master | 2023-09-04T10:08:47.644992 | 2023-07-05T16:22:11 | 2023-07-05T16:22:11 | 85,928,537 | 2,421 | 497 | Apache-2.0 | 2023-03-21T06:56:21 | 2017-03-23T09:03:48 | C# | UTF-8 | C++ | false | false | 1,276 | h | Math.h | #pragma once
#include "il2cpp-config.h"
namespace il2cpp
{
namespace icalls
{
namespace mscorlib
{
namespace System
{
class LIBIL2CPP_CODEGEN_API Math
{
public:
static double Acos(double val);
static double Asin(double val);
static double Atan(double val);
s... |
8846f277c152364ce7061813a1fe7130199a3942 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/CapacityReservationTargetResponse.h | 03a100853324969e0d9d43d272ed806730bba0d9 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 5,217 | h | CapacityReservationTargetResponse.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{... |
2789151a4dd578b1920cad4f7a0a59bb4f6d9256 | d807a78666ceb840724a8c95e76033a356313aa9 | /binary_tree/230.cpp | e19b14501199a898f67984153b708268d2820a82 | [] | no_license | rafalstarypan/leetcode-c | 8879561b5e40f38d2e9e14727fe10c27b4531497 | 8508ccb320c335fe2917c03ff9ff2c4be8e5bf10 | refs/heads/master | 2023-08-31T16:44:52.429854 | 2021-10-28T09:40:16 | 2021-10-28T09:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | cpp | 230.cpp | // Problem link: https://leetcode.com/problems/kth-smallest-element-in-a-bst/
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(... |
3fb7b53465fe037d5d0befb2740d5c850d58b9b3 | 3e6a08391ff2b89ee9ad4b1140de9d4f6af1d81c | /293.cpp | 6e3bebfc596abf52646dd4f194114e93074775e6 | [] | no_license | wxping715/LeetCode | 5420a9539593c6e1a85b3156c5f5b461eb1e10cb | 6e635af9ba10a3b524d366bb81c87bae726f9d22 | refs/heads/master | 2020-05-21T15:22:06.556271 | 2020-03-24T12:29:50 | 2020-03-24T12:29:50 | 35,854,714 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,107 | cpp | 293.cpp | /*You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take turns to flip two consecutive "++" into "--". The game ends when a person can no longer make a move and therefore the other person will be the winner.
Write a function t... |
2e52d32359d5bd24b3748d525d8d1b96ddcf1395 | c3f18acac6fa91f2adfa4984b4abfe38cc42cc15 | /Functions.cpp | 9bf8452e235eac320da54acfb436b9d29632d01d | [] | no_license | SarcaCircus/Question4 | b4df049d117220e0a0a444fd2b6a6772769a5675 | f7148e609021c7244d744b5e4df325651162921a | refs/heads/master | 2021-05-01T21:57:31.401514 | 2018-02-10T03:57:56 | 2018-02-10T03:57:56 | 120,982,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cpp | Functions.cpp |
#include "Question4.h"
double convertToFahrenheit(double celsius) {
double fahrenheit = celsius * 1.8 + 32.0;
return fahrenheit;
}
double convertToCelsius(double fahrenheit) {
return (fahrenheit - 32.0) / 1.8;
} |
746580adb3627d7e0ca21be3e59f796f7ded2c27 | e0a2c0f12272482a19b0dbd78ab89c145ec3672f | /1번/src/main.cpp | 8ebc09ba021cb7c94313f0abec698c6dd2e65786 | [] | no_license | jaeyeong17/lap6_Web-Remote-Switch | d9cad75352b7accea35513a20bb5916b6c24d81f | 2198694b719a18861a6f9ca863866fcca95e0f8e | refs/heads/main | 2023-08-28T08:29:59.140540 | 2021-10-23T03:40:55 | 2021-10-23T03:40:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,044 | cpp | main.cpp | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ESP8266WebServer.h>
int mode;
const char* ssid = "iptime";
const char* password = "jhs2031%";
ESP8266WebServer server(80);
void on()
{
mode = 1;
digitalWrite(15, mode);
String message = "relay is on\n";
serv... |
97ac8464e97863acc221ab2ee6cbebcc147e4f01 | 068631b24bac4a43f650fa3ef51089f2843c160f | /src/mango/core/hook/concept/AfterAllHook.cpp | 5e09eb9c2492b6d0c2fb89f6c7b53e25f9d34c96 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | horance-liu/mango | 4a159db29d43919bc28ea3abcdf8a82617545cdc | 80a08c03a9448115d14e0a072f31ea6284fa644a | refs/heads/master | 2021-01-25T12:13:12.761596 | 2015-03-24T15:42:27 | 2015-03-24T15:42:27 | 40,846,908 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 229 | cpp | AfterAllHook.cpp | #include "mango/core/hook/concept/AfterAllHook.h"
#include "mango/core/runtime/Runtime.h"
MANGO_NS_BEGIN
AfterAllHook::AfterAllHook()
{
REGISTRY(AfterAllHookRegistry, registry);
registry.addHook(*this);
}
MANGO_NS_END
|
f181d8d342834213260e59fb2f83b09c4fdc2f0d | ac91419e1534dfed6a7d34b50e453cd780975429 | /stringmanipulate/jingdon.cpp | 40ef3764e4087649b8deacce7691c07b450c918a | [] | no_license | ranf999/Algorithm | 7f729511f31acf1db5fce0a3c597c652ceae261f | 532e6ad5b0a494a09c3e4e83a7a29cdce0087628 | refs/heads/master | 2021-01-19T10:16:48.501816 | 2017-12-04T21:18:57 | 2017-12-04T21:18:57 | 87,847,557 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | cpp | jingdon.cpp | #include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <iomanip>
#include <cstdio>
using namespace std;
double calcSum(double first, int n) {
double sum = first;
for(int i = 1; i < n; i++) {
first = sqrt(first);
sum = sum + first;
}
return sum;
}
int main(void)
{
... |
040e39ff4032a66f040cc2f05610d9cd4088b9ec | 70a770c0efe5a0c4bfb69997934aa77bddcd2b01 | /Task1 - RoamingForMines/ScarySound/ScarySound.ino | a1497fa8c66102b403e6dbdc86c83b8a41db39d8 | [] | no_license | dtbinh/autonomous_agents_boebot | 4696411326e2ec41861151686a914b1e02c021dd | 537e568a7e36688c234b87ff2e700213546db2e5 | refs/heads/master | 2021-01-19T09:09:26.217792 | 2014-05-11T13:57:39 | 2014-05-11T13:57:39 | 82,071,302 | 1 | 0 | null | 2017-02-15T14:48:55 | 2017-02-15T14:48:55 | null | UTF-8 | C++ | false | false | 416 | ino | ScarySound.ino | /*
* Make a scary sound
*/
void setup() // Built-in initialization block
{
tone(4, 1046, 500);
delay(500);
tone(4, 1245, 800);
delay(800);
for(int i=1;i<100;i++)
{
tone(4, 1175-i/2, 10);
delay(10);
tone(4, 1175+i/5, 10);
delay(10);
}
}
void loop() ... |
0005cd8d7b57104ac6eb14bfa50461ce0fb08ff4 | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/212/phia | 25323f4247bd28fc4667268e70a8633ba307a939 | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235,750 | phia | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
4f522fbc4fb1d54e7fcc1b920a56f09bdda2cb02 | a44558c976cc5d0d05138e1163e53e43f0e25ae4 | /BOJ/1342/1342.cpp | cb984ccf3d65b180514c2314fdd05259156d6a0f | [] | no_license | sangwon21/PS | 3c2c6e2cbcbd20a0ffea1558214561525700b6b8 | 568106658dfbdd0b028e0d8de1e311fdea4209f2 | refs/heads/master | 2023-01-27T17:10:52.896451 | 2023-01-10T07:21:30 | 2023-01-10T07:21:30 | 169,858,345 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,012 | cpp | 1342.cpp | #include <iostream>
#include <string>
char str[11];
int alphabets[26];
int length;
int answer = 0;
bool isValid(int index)
{
return str[index - 1] != str[index];
}
void dfs(int depth)
{
if (depth == length)
{
answer++;
return;
}
for (int i = 0; i < 26; i++)
{
if (alph... |
81b74511680e5be7245447eb2ace273da1bc69c0 | 49a1cca24f3b26203760d00013937bbd1acdf723 | /include/editor/tileChunk.cpp | a84424a56042e36865d77031afc31384e8657516 | [
"MIT",
"Zlib"
] | permissive | AlexAUT/Kroniax2-Mapeditor | 9adaab8376f7e07ccd2f29267ac24ac75669caea | 6ee19f7c34f318f0b66d685884a4225cd8ed5376 | refs/heads/master | 2016-09-05T18:23:14.343899 | 2015-01-17T16:08:05 | 2015-01-17T16:08:05 | 28,966,074 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,533 | cpp | tileChunk.cpp | #include "tileChunk.hpp"
#include <iostream>
#include <SFML/Graphics/Rect.hpp>
TileChunk::TileChunk()
{}
TileChunk::TileChunk(sf::Vector2f pos, sf::Vector2f tileSize) :
mPosition(pos), mTileSize(tileSize), mTiles(100*100)
{
mOffsetIndex.x = static_cast<int>(pos.x / mTileSize.x);
mOffsetIndex.y = static_cast<int... |
1556f498cd206e53d20519ee2e5902e3ccf65f4d | 1d001b1ddbf760a5eb2c33c15739c48b66ab264a | /PocketDungeon/src/MapManager/MapManager.cpp | a3d91ec2d9a8393f1c58cd6cfe63d85f711a675a | [] | no_license | TallineauHugo/Epitech_projects_TEK3 | b0e93f93dd3ec87ba09afbb74ca1fbe04fcfe227 | 4d9defd8c0d2ce6aab8bb2297a7800538afd69d3 | refs/heads/master | 2022-12-05T10:10:39.581211 | 2020-08-27T22:27:18 | 2020-08-27T22:27:18 | 290,886,179 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 85 | cpp | MapManager.cpp | #include "MapManager.hpp"
MapManager::MapManager()
{}
MapManager::~MapManager()
{}
|
50a9cbd8924f54a03f691056b61e951f552f2c6f | 38bd665e7a80f9aa8f3acac7317c7924ed3e745a | /src/server/gui/core/guis/GuiDetectDevice.cpp | 45d9a6bd23c1bc10bc1188d89c444a3eb498729e | [
"BSD-3-Clause"
] | permissive | MayaPosch/NymphCast | 855cb5e05a1b979a600a8b7baf62619f4cc431dd | 7ac8d5a86e1a1b4987092a3398d1fa1987f18eb6 | refs/heads/master | 2023-08-30T06:06:25.443885 | 2023-08-07T17:58:57 | 2023-08-07T17:58:57 | 169,604,606 | 2,405 | 89 | BSD-3-Clause | 2023-04-14T08:54:58 | 2019-02-07T16:38:44 | C++ | UTF-8 | C++ | false | false | 4,242 | cpp | GuiDetectDevice.cpp | #include "guis/GuiDetectDevice.h"
#include "components/TextComponent.h"
#include "guis/GuiInputConfig.h"
#include "utils/FileSystemUtil.h"
#include "utils/StringUtil.h"
#include "InputManager.h"
#include "PowerSaver.h"
#include "Window.h"
#define HOLD_TIME 1000
GuiDetectDevice::GuiDetectDevice(Window* window, bool f... |
85aa6bb2b6037778c6cb9bb5d7ca050f817d7688 | eb5969c40fb6c763acf44d29b7fbb919939ebd2d | /l9q6.cpp | e6f17d0d855c1680c5de52033c5d044fa54187b2 | [] | no_license | isha-dwivedi/lab9 | 062f902b934eaa9c1f32f4c8df0120532123462d | 94d1f011518ae6c36d0604b88830fb8492898a4d | refs/heads/master | 2020-04-02T18:35:47.922263 | 2018-11-01T05:27:46 | 2018-11-01T05:27:46 | 154,705,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 727 | cpp | l9q6.cpp | //Write a function countEven(int*, int) which receives an integer array and its size, and returns the number of even numbers in the array.
#include<iostream>
#include<string>
using namespace std;
int countEven(int *p,int b)//function to count even no.
{ int cnt=0;
int i=0;
while(i<b)
{int a=*p;//copying the valu... |
41a70bafe6fe4aeb1cfd8afdb5e632a6a629ef38 | 5fa590ba1a19c9eb9f000d652ff3d3a8a0cf1d64 | /CodeblockProject/TLIB/tlib/core/acomms/acomms.h | 920fd00e814569550e0c65ae1d872fdffd335ec3 | [] | no_license | liliang2008ll/Telesing | 416fb9c5d43e41888166fa83aa8fd9722b0ade88 | faca6a55e560a6eaba410c35612746cf120e43ef | refs/heads/master | 2021-01-10T08:10:07.344366 | 2015-12-25T10:47:50 | 2015-12-25T10:47:50 | 47,320,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 104 | h | acomms.h | #ifndef acomms_h
#define acomms_h
#include <stdio.h>
#include <string>
using namespace std;
#endif
|
d570094d06631baf2eb5d2c136578fe78340e822 | 269d9249a753ce0d29ad867ab030915267ae473f | /projetwassimbenfraj/horsservice.h | 9d945c3655578ee12522496697a66858c6a7431f | [
"Unlicense"
] | permissive | ahmed-debbech/b_fast | 0b206ddc0d2517f724c903c10e28305b9980a3e4 | 8497621ae2ff2fee7dd6d305a16cf1c123c9b074 | refs/heads/master | 2022-04-06T12:42:11.522985 | 2020-03-06T12:58:25 | 2020-03-06T12:58:25 | 224,606,565 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | h | horsservice.h | #ifndef HORSSERVICE_H
#define HORSSERVICE_H
#include <QDialog>
#include "bus.h"
namespace Ui {
class horsservice;
}
class horsservice : public QDialog
{
Q_OBJECT
public:
explicit horsservice(QWidget *parent = nullptr);
~horsservice();
private slots:
void on_pushButton_5_clicked()... |
72ec7c7617fd43afbbfc56e08d5d99dacfd8a322 | b30c7717acbcace38eaa9e8939b952dc3245ebd6 | /200-300/285.cpp | a168f6c985425577b3b9ff713e50e00605ddd217 | [
"MIT"
] | permissive | Thomaw/Project-Euler | e7dbfae93b26eb0d658c09e18fdaa932998d7a12 | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | refs/heads/main | 2023-09-06T08:16:35.045015 | 2021-10-07T18:44:42 | 2021-10-07T18:44:42 | 407,856,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | cpp | 285.cpp | // Euler285.cpp
#include <stdio.h>
#include <math.h>
#define FOR(a,b,c) for (int(a)=(b);(a)<=(c);(a)++)
int main(int argc, char* argv[])
{
double a = 0.0, b, t, s, r;
FOR (k,1,100000) {
FOR (m,0,k==1?0:1) {
r = 1.0+(0.5-m)/k;
b = sqrt(r*r-1.0/k/k)-1.0/k;
t = 2.0*asin(b/sqrt(2.0)/r);
s = 0.... |
dbb796e951c691a10130404c88f21ddc5155256d | b6d1df49c1ec621a02204b1100312ecbb3e76ad3 | /src/mains/Qt/Qt_course/course-material/examples/model-view/QSortFilterProxyModel/SortedTableView.h | 31541884dcbe1c817684d4589369d49c81168bfd | [] | no_license | flylong0204/projects | 5271acde325cf3947fac7433077353b52fa07bc4 | b1e5c918d4aeb34c36576dababc5509dbb89afd1 | refs/heads/master | 2017-12-06T06:35:20.926786 | 2017-01-24T23:53:13 | 2017-01-24T23:53:13 | 79,988,197 | 1 | 2 | null | 2017-01-25T06:11:23 | 2017-01-25T06:11:23 | null | UTF-8 | C++ | false | false | 573 | h | SortedTableView.h | #ifndef SORTEDTABLEVIEW_H
#define SORTEDTABLEVIEW_H
#include <QWidget>
class QLabel;
class QLineEdit;
class QTableView;
class QGridLayout;
class QAbstractItemModel;
class QSortFilterProxyModel;
class SortedTableView : public QWidget
{
Q_OBJECT
public:
explicit SortedTableView ( QWidget *parent = 0 );
v... |
709262e8929eb6fe0267265c235f5c4519319d0f | fc99a9cc71b63c53aa27a6efe02fcdb995671ff8 | /RandomGeneratorGrapher/cggRandom.cpp | c5e8908ee2c2b8f33dbfeab848732bbabbd3837c | [] | no_license | DVSProductions/Raytracer | 980c3911477f2faaf31fcd31a7a20fb89bea773f | 13c883b240537fba0dd6de086fdb8165a7fca8b2 | refs/heads/master | 2022-11-30T12:02:32.230941 | 2020-08-13T14:47:11 | 2020-08-13T14:47:11 | 287,290,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,437 | cpp | cggRandom.cpp | #include "cggRandom.h"
unsigned long long cggRandom::staffordMix13(unsigned long long z) {
z = (z ^ (z >> 30)) * 0xBF58476D1CE4E5B9L;
z = (z ^ (z >> 27)) * 0x94D049BB133111EBL;
return z ^ (z >> 31);
}
int cggRandom::staffordMix4Upper32(unsigned long long z) {
z = (z ^ (z >> 33)) * 0x62A9D9ED799705F5L;
return (i... |
9155d7f392bc998c364e7be92a551bf5c2734370 | 1133149ce3b01743f6f258593e7b4aae3e3156d7 | /Grayscale/main.cpp | 7bbcc0daaf06b73f3c62db6a50e2234b61e054c2 | [
"MIT"
] | permissive | hn5092/SimdIntroArticle | 648200c12d43bd09058108506e8310d5e4fecd6d | 608c9988fde7304cd4a29d11132632df6bff98e2 | refs/heads/master | 2022-04-04T08:38:20.070562 | 2020-02-14T17:04:39 | 2020-02-14T17:04:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 937 | cpp | main.cpp | #include "stdafx.h"
#include "grayscale.h"
static void printHelp()
{
printf( "Valid arguments:\n" );
for( uint8_t i = 0; i < (uint8_t)eGrayscaleAlgorithm::valuesCount; i++ )
printf( "%i: %s\n", (int)i, algorithmName( (eGrayscaleAlgorithm)i ) );
}
int main( int argc, const char* argv[] )
{
if( argc != 2 )
{
pr... |
af82329ebbf26e2586b6e18c6eca987c654abd7b | 0cddab604dc4ff7cb383d6c9ad9bf9280273f9ef | /M1ProgramDesign-PYQ/2017/Leaflets/Leaflet.h | 00432b8677a58f9a149008f33bf59b793dbd1903 | [
"MIT"
] | permissive | chowder/imperial-pyqs | bf7e2d176b3a3d6d076e469469c6e781bb8423d0 | 76edf454c5cd96a70a78698d61f3f3cf742d83ea | refs/heads/master | 2021-07-24T13:10:33.955943 | 2020-06-13T09:59:59 | 2020-06-13T09:59:59 | 183,113,197 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 459 | h | Leaflet.h | #ifndef LEAFLET_H
#define LEAFLET_H
#include <list>
class Sheet;
class Heading;
class Paragraph;
class Text;
class Leaflet {
const int CHAR_LIMIT = 1000;
const int uid;
int currentIndex = 1;
int characters = 0;
Sheet* sheet;
std::list<Text*> elements;
friend class Heading;
friend clas... |
c781e8a24d719ed54f565a6c79b95ca27a2ffc8e | 645c8a660c9fa9c8a0a05d357a60815c56b14f11 | /MySqlOO/includes/CLASS_Query.h | 8501b1e18eadf225c2980b73926a514fcb536880 | [] | no_license | andyvincent/Garry-s-Mod-Extensions | 706167ce0a20f8e17f732ca6ebb4dca13259d247 | 8b10f8fbd666471550fa0b7833ba048e266eb446 | refs/heads/master | 2020-04-05T23:25:02.972421 | 2010-05-26T16:18:23 | 2010-05-26T16:18:23 | 643,728 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,304 | h | CLASS_Query.h | #ifndef _CLASS_QUERY_H_
#define _CLASS_QUERY_H_
#include "CLASS_LuaObjectBase.h"
#include "LIBRARY_MySql.h"
class QueryThread;
class Database;
class DataRow;
enum
{
QUERY_NOT_RUNNING = 0,
QUERY_RUNNING,
QUERY_READING_DATA,
QUERY_COMPLETE,
QUERY_ABORTED,
};
enum
{
OPTION_NUMERIC_FIELDS = 1,
OPTION_NAME... |
a0eb0326ec7e4f0bf9a0aeb940371b4ad0f6860f | 579d1b8d7166bf800369b5c96c80642c6d4c187a | /tree/0112_hasPathSum.cpp | 2d87a03c0cf5d18f3b7ab3f806420fe53d27478f | [] | no_license | zephyr-bj/algorithm | bd1914d9d518ae2b8cccb0d6c3d1c9ba98dbe7bc | e2a52c533ba9bbd6d9530b672cb685ed3d9c4467 | refs/heads/master | 2022-10-14T01:41:45.221235 | 2022-09-26T08:47:51 | 2022-09-26T08:47:51 | 81,426,931 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 330 | cpp | 0112_hasPathSum.cpp | bool hasPathSum(TreeNode* root, int sum) {
if(root==NULL)return false;
if(root->left==NULL&&root->right==NULL){
return root->val==sum;
}
if(hasPathSum(root->left, sum-root->val))return true;
if(hasPathSum(root->right, sum-root->val))return true;
return fal... |
3eb8fb47f9c9e6ac1383cc0def3279951b686212 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/ThirdParty/FakeIt/2.0.2/include/mockutils/FakeObject.hpp | b109413f8af9d3120cb95b250f7cdd5302288a92 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 1,910 | hpp | FakeObject.hpp | /*
* FakeObject.hpp
* Copyright (c) 2014 Eran Pe'er.
*
* This program is made available under the terms of the MIT License.
*
* Created on Jun 8, 2014
*/
#pragma once
#include <new>
#ifdef _MSC_VER
#include "mockutils/mscpp/VirtualTable.hpp"
#else
#include "mockutils/gcc/VirtualTable.hpp"
#endif
namespace ... |
243dd29b8c562c2b992c46cd533be358173cfc0b | bc86f8754c37eb07f7a26aec3c0a90ebcc1ade4e | /src/GrammarAnalyzer.cpp | efada30b795308ac1a5fb8da4c69033c713d07da | [] | no_license | chozen-lev/masm-translator | 6c1f825d7b5d2818516323554e3a82eafcfcd113 | c58f94cf676d2e015fcd5a2cd6981b4b1bc3d368 | refs/heads/master | 2021-06-22T10:08:00.674344 | 2017-06-19T20:55:07 | 2017-06-19T20:55:07 | 92,203,062 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 55,797 | cpp | GrammarAnalyzer.cpp | #include "GrammarAnalyzer.h"
#include "Operand.h"
#include <algorithm>
#include <cstring>
void GrammarAnalyzer::analyzeStruct(Sentence *sentence, std::stack<Label*> &activeSegs, std::vector<Label*> &labels, std::vector<Label*> &segments)
{
if (sentence->m_Tokens.empty() || !sentence->m_Error.empty()) {
re... |
0fce706879f19ddf251d32b1d834ae792e094d72 | 6bb4508d3357ceb2d1f3e20205e7d347e64e9856 | /clickhouse/query.h | b338d69b930ef8a64f04cf2ca5b79cdf0c7000ef | [] | no_license | hzjiangm/clickhouse-cpp | a01858d460288eff39124fa8e5eb6d2a0e8929f3 | cb1371ab2da7e253b4d9e5ceb3a1f46b14efe333 | refs/heads/master | 2021-01-12T01:43:36.223241 | 2017-01-09T10:18:23 | 2017-01-09T10:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,876 | h | query.h | #pragma once
#include <cstdint>
#include <memory>
#include <string>
namespace clickhouse {
/**
* Settings of individual query.
*/
struct QuerySettings {
/// Максимальное количество потоков выполнения запроса. По-умолчанию - определять автоматически.
int max_threads = 0;
/// Считать минимумы и максимумы... |
005247ee50bbb64d473a3dd75773f42c57d62c1d | 9fe3e96e24f6f8b9745c78af93b1f7a3e772b590 | /OOP/project/CppND-System-Monitor/src/system.cpp | 715d3de2dc538c7139ade6559a68a6d00cdf7b66 | [
"MIT"
] | permissive | claudio-ICL/udacity_cpp | 1e02eb85c8ea22d35b33db9112dd7d80a0bd0af9 | 0424300df668dff9c49ba70aa61790835f966c34 | refs/heads/master | 2022-12-22T07:43:23.378456 | 2020-09-24T17:05:35 | 2020-09-24T17:05:35 | 281,153,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,344 | cpp | system.cpp | #include "system.h"
#include <algorithm>
System::System() {
kernel_ = LinuxParser::Kernel();
os_ = LinuxParser::OperatingSystem();
cpu_ = Processor();
UpdateProcesses();
}
Processor& System::Cpu() { return cpu_; }
void System::UpdateProcesses() {
pids_ = LinuxParser::Pids();
for (int& pid : pids_) {
//... |
440792b20a2896fcd7cc209a45ada6351381c8af | 6e25c49160136c226fb698da6da570cacdab1156 | /codeforces/112A.cpp | 6e24bc08d9a6e79346ca67515004bc1cff92c99d | [] | no_license | amitkvikram/COMPETITIVE-PROGRAMMING | 627627447f777192e092289989ebc60a8e67ae60 | cfa7ee44884e8739813e4f2779a0eb121bd3aa92 | refs/heads/master | 2021-10-22T11:07:19.763820 | 2019-03-10T03:42:43 | 2019-03-10T03:42:43 | 103,694,836 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | cpp | 112A.cpp | #include "bits/stdc++.h"
using namespace std;
int main(int argc, char const *argv[]) {
string str1, str2;
cin>>str1>>str2;
int flag =0;
for(int i = 0;i<str1.size(); i++){
str1[i] = tolower(str1[i]);
str2[i] = tolower(str2[i]);
if(str1[i]>str2[i]){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.