blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 986
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 145
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 10.4M | extension stringclasses 122
values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e375e442f8f42c0c340f9783abdd32c0eccd9296 | c71c0c5d693bccd4cb64b2282cbedbac25b6e114 | /src/Magnum/FileCallback.h | 3769a0dec54de72491932aa4cf2329bebed7bdb8 | [
"MIT"
] | permissive | janbajana/magnum | 69287c6d4fc0be577e7b19078406131484f4c53f | 9870cd72c96a3e09d5d79cbcd838bb365f84abc6 | refs/heads/master | 2023-08-23T07:20:47.202851 | 2021-10-24T17:52:08 | 2021-10-24T18:17:34 | 269,671,008 | 1 | 0 | NOASSERTION | 2020-06-05T14:47:21 | 2020-06-05T14:47:20 | null | UTF-8 | C++ | false | false | 4,223 | h | #ifndef Magnum_FileCallback_h
#define Magnum_FileCallback_h
/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020, 2021 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
cop... | [
"mosra@centrum.cz"
] | mosra@centrum.cz |
40134d59db5a73cc0a244a21a4e9964f9acd4b1a | 41cba10790f27c72e451df91a1cf9df20f4e4bb7 | /app/include/client/Class/GameEntities/EntitySpriteManager.hpp | f912986de30828b172e8b55ddc119b3c05d0057a | [] | no_license | Shiranuit/RType | dfd169c796d63b5727bab421dc7e18fac480c8fb | a77db1dd55857b112099997a6f4913207c129717 | refs/heads/master | 2023-07-12T08:33:50.123128 | 2021-08-05T19:14:08 | 2021-08-05T19:14:08 | 393,146,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 810 | hpp | /*
** EPITECH PROJECT, 2020
** B-CPP-501-MPL-5-1-rtype-antoine.maillard
** File description:
** EntitySpriteManager
*/
#ifndef ENTITYSPRITEMANAGER_HPP_
#define ENTITYSPRITEMANAGER_HPP_
#include <unordered_map>
#include <memory>
#include <SFML/Graphics.hpp>
class EntitySpriteManager {
public:
EntitySprite... | [
"yannick.combes@epitech.eu"
] | yannick.combes@epitech.eu |
e49831b5ec0c0e3f7c597e2d383720482a6d94a9 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/chrome/browser/extensions/settings_api_bubble_delegate.cc | 26ac3da9c199b836e15b45a1de0f773173e857c1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | C++ | false | false | 9,041 | cc | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/settings_api_bubble_delegate.h"
#include "base/metrics/histogram.h"
#include "base/strings/utf_string_conversions.h"
... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
798985968a0e6fab8f5a7e040bac6758a2ba37e8 | 3424ea751ccf01db31a964fed83db37f936562f5 | /src/StageController/TEENSY41.h | 0d31f4a4229630db0d75bb94b3f617dbf9664df8 | [
"BSD-3-Clause"
] | permissive | janelia-arduino/StageController | 89b73c3a3176496d61f7a495134204d37aed1978 | 33a5edecd15d9f1aaba5d581489fee1e42ec4339 | refs/heads/master | 2022-03-15T10:17:16.004919 | 2022-02-22T23:34:24 | 2022-02-22T23:34:24 | 84,103,010 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 679 | h | // ----------------------------------------------------------------------------
// TEENSY41.h
//
//
// Authors:
// Peter Polidoro peter@polidoro.io
// ----------------------------------------------------------------------------
#ifndef STAGE_CONTROLLER_TEENSY41_CONSTANTS_H
#define STAGE_CONTROLLER_TEENSY41_CONSTANTS_H
... | [
"peter@polidoro.io"
] | peter@polidoro.io |
9b334a5b1b151e8b2213ac3a06c05614997f75d9 | 75b2ed9d809b58871c04cb508121e092e86e02b7 | /project/binaryreader.hpp | 172ac7f401f975e020b5f1c37c6c2ea6db59a40e | [] | no_license | AndersHqst/linhash | 7c39cfcce613e10c482ec4e083ae77f1b163a1c9 | 65f9b06baae6380a419efeee091bbefd712e55f4 | refs/heads/master | 2021-01-22T01:04:42.965488 | 2015-05-01T14:10:24 | 2015-05-01T14:10:24 | 14,393,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 583 | hpp | #ifndef BINARYREADERHEADERDEF
#define BINARYREADERHEADERDEF
#include <cstdint>
#include <cstring>
#include <fstream>
class BinaryReader
{
public:
BinaryReader(std::string filename, int buffersize);
BinaryReader(std::string filename, int buffersize, std::ifstream::pos_type pos);
~BinaryReader();
uint64_t nex... | [
"tobias@tobias-H81M-D2V.(none)"
] | tobias@tobias-H81M-D2V.(none) |
6dd0fc87bd92fdf1a0f4baaaaa93be70a701a950 | e8a4727f293db201f3ba7da578232a36caf828d9 | /scau-2/date-structure/8643-简单选择排序/a.cpp | 660dcb82c38d9c5ad80a05060e72b2f2ce905aca | [] | no_license | yinglongyhy/scau-code | ea854e493b7fc67302220308a9461b540b5e4af9 | 627b108de19b82ed8df97b344cbe889a2f34cd1a | refs/heads/master | 2020-03-21T03:05:28.818681 | 2018-10-28T08:54:43 | 2018-10-28T08:54:43 | 138,036,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,350 | cpp | /*
8643 简单选择排序
时间限制:1000MS 内存限制:1000K
提交次数:2235 通过次数:1301
题型: 编程题 语言: G++;GCC
Description
用函数实现简单选择排序,并输出每趟排序的结果
*/
#include <stdio.h>
#include <malloc.h>
void EasySort(int *a)
{
int t;
for(int i = 1; i < a[0]; ++i)
{
t = i;
for(int j = i + 1; j <= a[0]; ++j)
{
if(a[... | [
"yhy18218945272@outlook.com"
] | yhy18218945272@outlook.com |
6389c5bcd758b49dd8bb55fc6fb2b6d7301a6084 | 21b60622b20ed08874a606711b5a5f53ea663811 | /src/include/thrax/algo/prefix_tree.h | 6dfa78b4bb43f89bc9d3f88839fce5a500e4ecd4 | [
"Apache-2.0"
] | permissive | edobashira/thraxwin | 93ba1f191e0b84f0939514ec62ca801f39661c0b | 78c0700650871797c5b6e6b7525d66105206fa4d | refs/heads/master | 2021-01-01T18:11:31.083316 | 2011-05-26T10:03:37 | 2011-05-26T10:03:37 | 1,803,527 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,340 | h | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed ... | [
"paul@edobashira.com"
] | paul@edobashira.com |
6839716af7d50bdf42731c3a5a793d58a2980685 | a4a7fe2b6bebc044843d0c6f60cddb0d0894abb8 | /Chap7/Chap 7 UDP Client6/Chap 7 UDP Client6.cpp | 10e7bef7ff4939ce682b24e473c80b1601806a0a | [] | no_license | KU-t/Prac-Socket_Programming | 2daedb7d4e001bd0cb459dcde3792fba89d0fea4 | 9b9f5beef12dffe87724f9af38e23c6813b2bcaf | refs/heads/master | 2022-02-17T00:01:54.194735 | 2019-09-05T16:48:20 | 2019-09-05T16:48:20 | 201,425,228 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,648 | cpp | #pragma comment(lib, "ws2_32")
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#define SERVERIP "::1"
#define SERVERPORT 9000
#define BUFSIZE 512
// 소켓 함수 오류 출력 후 종료 - [프로그램 실행]
void err_quit(const char *msg) {
LPVOID lpMsgBuf;
// 오류메세지 얻기
FormatMessage(
// 오류메세지 저장 공간을 알아서 할... | [
"jhltk2426@naver.com"
] | jhltk2426@naver.com |
dbf0fd23d07cbfe7e520065429df30d0c1594d00 | 246b446c4aa82e693dd62e98bbe2b95b29650d3f | /Source/Model/BigCoinField.cpp | 4bd27d3ab0e1052dd2c4aa08163d341a7336a953 | [] | no_license | pawel-kieliszczyk/pacman | 83fad500307564cce4b556b3d8c296720802d773 | 09d351d59297ad5b9b5ce74d43d0f9ecbb9b45a5 | refs/heads/master | 2018-12-11T14:24:47.013725 | 2018-09-12T18:20:35 | 2018-09-12T18:20:35 | 17,524,972 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 630 | cpp | #include <Model/BigCoinField.hpp>
namespace Pacman
{
namespace Model
{
BigCoinField::BigCoinField(unsigned row, unsigned col)
: FieldBase(row, col),
visited(false)
{
}
bool BigCoinField::isVisitable() const
{
return true;
}
void BigCoinField::visit(IPac& pac)
{
if(visited)
return;
... | [
"pawel.kieliszczyk@gmail.com"
] | pawel.kieliszczyk@gmail.com |
e8ba1f7df92a4522ae2ee8f1979c49e2cdea839a | 751bdc3d365a64b18d78e8c2fb9f6ea00452764f | /axis/user/user/_.h | 515d8baa02760948709cfdc160d3adf24f8a31e8 | [] | no_license | ca2/app | b1de035566d9664aa7c5c9a94378cc352b1836ec | afdedd20df2f6dce81c63bc8a9db6de14503076e | refs/heads/main | 2023-08-27T07:19:45.584624 | 2023-08-26T12:28:28 | 2023-08-26T12:28:28 | 98,031,531 | 19 | 7 | null | 2017-08-14T11:13:14 | 2017-07-22T12:59:27 | C++ | UTF-8 | C++ | false | false | 203 | h | #pragma once
namespace user
{
class button;
class check_box;
class list_box;
class combo_box;
class slider;
class step_slider;
class line_layout;
} // namespace user
| [
"camilosasuketbs@gmail.com"
] | camilosasuketbs@gmail.com |
8983407bc3c7773cbbb3640e12ed3fbbb92462dd | 948f4e13af6b3014582909cc6d762606f2a43365 | /testcases/juliet_test_suite/testcases/CWE762_Mismatched_Memory_Management_Routines/s01/CWE762_Mismatched_Memory_Management_Routines__delete_array_int64_t_malloc_16.cpp | be32a42674566398d174ee456562a3f8df330bf0 | [] | no_license | junxzm1990/ASAN-- | 0056a341b8537142e10373c8417f27d7825ad89b | ca96e46422407a55bed4aa551a6ad28ec1eeef4e | refs/heads/master | 2022-08-02T15:38:56.286555 | 2022-06-16T22:19:54 | 2022-06-16T22:19:54 | 408,238,453 | 74 | 13 | null | 2022-06-16T22:19:55 | 2021-09-19T21:14:59 | null | UTF-8 | C++ | false | false | 3,315 | cpp | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_int64_t_malloc_16.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml
Template File: sources-sinks-16.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory M... | [
"yzhang0701@gmail.com"
] | yzhang0701@gmail.com |
5a871d1d4ec305311b37ed89b59b4e89467c9590 | e6dd2d5c23648874c35675f4b8c98d6dab9d07a0 | /aplcore/src/command/controlmediacommand.cpp | eb0d13f421998916eb3d17dd0848a39314d425d6 | [
"Apache-2.0"
] | permissive | arunjeetsingh/apl-core-library | 90fcf45dfaa6666f8d844c3a0e6a7b253e107789 | b1dd5cad90340cc2b29957752cce5d022ca44c5f | refs/heads/master | 2023-05-10T07:28:57.773485 | 2021-06-02T15:40:31 | 2021-06-04T15:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,774 | cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" ... | [
"bddufour@amazon.com"
] | bddufour@amazon.com |
5f6556d2c1c1473aff3fd0618e82030ebee2512a | b7f1b4df5d350e0edf55521172091c81f02f639e | /chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api_unittest.cc | a88874bd102cd148005c8e5755c5dfd9b66eb84b | [
"BSD-3-Clause"
] | permissive | blusno1/chromium-1 | f13b84547474da4d2702341228167328d8cd3083 | 9dd22fe142b48f14765a36f69344ed4dbc289eb3 | refs/heads/master | 2023-05-17T23:50:16.605396 | 2018-01-12T19:39:49 | 2018-01-12T19:39:49 | 117,339,342 | 4 | 2 | NOASSERTION | 2020-07-17T07:35:37 | 2018-01-13T11:48:57 | null | UTF-8 | C++ | false | false | 9,603 | cc | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.h"
#include <algorithm>
#include <set>
#include <string>
#include <ut... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
fd890f3e055123817907fa453893d496f8623a28 | c0805667925adcba356a09168e263ba7347f804e | /demo/demo.cpp | 0561b94cfa353e04ba9d608194d83af8f64b5eba | [] | no_license | quasar-team/UaoForQuasar | f42df7660814526d06831b2818bbe293018d656c | add5e5f96d3d2434ef1566bcbd9ce355cd7a6e89 | refs/heads/master | 2023-03-20T08:17:17.451328 | 2021-03-16T08:22:18 | 2021-03-16T08:22:18 | 107,385,355 | 3 | 3 | null | 2021-03-16T08:22:18 | 2017-10-18T09:15:54 | C++ | UTF-8 | C++ | false | false | 785 | cpp | /*
* demo.cpp
*
* Created on: 25 Oct 2017
* Author: pnikiel
*
* This is a small demo program
* that illustrates how you can use your
* generated client.
*/
// the following file is provided with UaoForQuasar
#include <ClientSessionFactory.h>
// the following comes from generation
// you might ... | [
"piotr@nikiel.info"
] | piotr@nikiel.info |
7bd2a650e27c4105f58f0db543173fc6c358ae4e | 1142a252973904e5ac5b8b0763af75e42095119b | /PlgnPE/pe_util.h | 4134cb748fde5f8a0317fa5f7c2ddc8220eaa6cd | [] | no_license | somma/spinjector | 19b57557aefc8556003c779179c76962b62e398a | c9b3634e79ff651b338d6bb718b0fcae2d772dc3 | refs/heads/master | 2021-01-01T18:17:56.005514 | 2009-04-20T08:31:13 | 2009-04-20T08:31:13 | 32,852,425 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,399 | h | /*-----------------------------------------------------------------------------
* pe_util.h
*-----------------------------------------------------------------------------
*
*-----------------------------------------------------------------------------
* All rights reserved by somma (fixbrain@gmail.com, unsor... | [
"fixBrain@71c39c02-2d83-11de-bfb9-e98281094dd5"
] | fixBrain@71c39c02-2d83-11de-bfb9-e98281094dd5 |
effe396ed76e14bcd34db1b002f781bf8f82ca84 | 2550a0de6c2285d94fd3f42b24f8f2a6696045c3 | /Normal/1081/C.cpp | a0fce257409f7bfd1a3a3ad29e14746081a966cd | [] | no_license | Mohd-3/Codeforces-Solutions | a2b26cf2072de7cdc0d2e754d7f0df0bad50174f | 97b0caf353a811f134a4c0206fd3c74fb4707149 | refs/heads/master | 2020-09-01T22:51:20.581848 | 2019-11-04T00:25:09 | 2019-11-04T00:25:09 | 219,078,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 677 | cpp | #include <bits/stdc++.h>
using namespace std;
#define add push_back
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define endl "\n";
typedef long long ll;
const int INF = 0x3f3f3f3f;
int n, m, k;
ll fact[10000001];
ll M = 998244353;
int main() {
IOS;
fact[0]= 1;
for (int i =... | [
"mohd@al-abdulhadi.com"
] | mohd@al-abdulhadi.com |
0d5fa6a6c1540a002c9d05b8c6eb112693f0d39d | 1db8d6b7b9ac26e8eea916430475d2dedcee3d4d | /Playlists Lab From CS142/Playlist.h | 3f6139ff8700f138218a2bf2360240a905f8ba73 | [] | no_license | matthoward123/Cpp | 17308a29ddc40c87fdcaef9f151ab1c792f2405e | 852db3c79271ec606542b379497a52d9a20366db | refs/heads/master | 2022-11-29T07:41:25.096160 | 2020-08-13T00:16:22 | 2020-08-13T00:16:22 | 238,977,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | h | #ifndef PLAYLIST_H
#define PLAYLIST_H
#include "Song.h"
#include <vector>
class Playlist {
private:
std::string playlistName;
std::vector<Song*> playlist;
public:
//constructor(s)
Playlist(std::string playlistName); //default constructor
//functions
void AddSong(Song* newSong);
void RemoveSong(i... | [
"noreply@github.com"
] | matthoward123.noreply@github.com |
5ca04657f80c9086c321bb9f7f5de5301e22be29 | 9b547fa706955d686e038c1e7792784349f6e8ab | /branches/next_ghost/game/interfac.h | e72ad128f3c03164271e666a74a2252f4637b1b2 | [] | no_license | svn2github/Brany_Skeldalu | 503c4907c8c9af1509ac58cb1065d80d71ce0d48 | 08a742215621060429628fb12bcf03f482c3c9de | refs/heads/master | 2023-09-03T08:16:00.564603 | 2013-10-30T22:52:07 | 2013-10-30T22:52:07 | 16,663,425 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,933 | h | /*
* This file is part of Skeldal project
*
* Skeldal is free software: you can redistribute
* it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* OpenSkeldal... | [
"next_ghost@27359af5-ae43-0410-a23f-8b0a9d901db5"
] | next_ghost@27359af5-ae43-0410-a23f-8b0a9d901db5 |
1f0a56b7c076d0cb2bea207fd9867c14cc2ce362 | abfd845716646e7c3074c890c211b805e65e5671 | /contrib/sip_proxy/filters/network/test/config_test.cc | 97b4a93d7446ac6c66275c55b7511e6bd825ff1f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | danzh2010/envoy | f094f0c7e8d2f8ebc5694c58f6956fe11e4f514d | 4239e739187f082aa974550cdc1229693f5e78df | refs/heads/master | 2023-08-05T06:10:02.361651 | 2022-06-24T18:07:05 | 2022-06-24T18:07:05 | 144,779,624 | 1 | 3 | Apache-2.0 | 2023-02-25T00:10:40 | 2018-08-14T22:48:20 | C++ | UTF-8 | C++ | false | false | 6,268 | cc | #include <memory>
#include "test/mocks/server/factory_context.h"
#include "test/test_common/registry.h"
#include "contrib/envoy/extensions/filters/network/sip_proxy/v3alpha/sip_proxy.pb.h"
#include "contrib/envoy/extensions/filters/network/sip_proxy/v3alpha/sip_proxy.pb.validate.h"
#include "contrib/sip_proxy/filters... | [
"noreply@github.com"
] | danzh2010.noreply@github.com |
a0b1c897221ed83d2c41aeb2d9ead1a0cbed9baf | 0914b23d1a2674b6692be3bec77304e105e38157 | /2013/tc/practice/WinterAndCandies/WinterAndCandies.cpp | 20c50a20fe06cdb8568f01930a7d4022f79abea1 | [] | no_license | sowrov/algo | 7da2e8ee79f5de54beaef5e550b9a0fa6eae1321 | 6c2529cc3a13a7a644dba08183622ed6e92a1e16 | refs/heads/master | 2020-12-11T06:17:49.051158 | 2020-05-29T07:44:06 | 2020-05-29T07:44:06 | 17,972,596 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,175 | cpp | #include "map"
#include "cmath"
#include "cassert"
#include "deque"
#include "bitset"
#include "sstream"
#include "ctime"
#include "iostream"
#include "set"
#include "utility"
#include "cstdio"
#include "fstream"
#include "cctype"
#include "numeric"
#include "algorithm"
#include "functional"
#include "vector"
#include ... | [
"sowrov@gmail.com"
] | sowrov@gmail.com |
d9c07ea8e1eec26e67ada9cd05e2b9fb5903abe6 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/49/b0ed1fc237f0d6/main.cpp | ae207c9718ea71f632d23dc8cfb1214cc43d2d40 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | #include <stdio.h>
void prev(int x)
{
printf( "%d\n", x-1 );
}
void next(int x)
{
printf( "%d\n", x+1 );
}
typedef void (*my_func_ptr_T)(int);
int main()
{
my_func_ptr_T foo;
foo = &prev;
foo( 5 );
return 0;
} | [
"francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df"
] | francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df |
79405fe0bbecf56b17764133236bc0d34c9c02da | f75485044a472796dc48566869464c8ce1a2eac5 | /browedit/RotateTool.cpp | 2b65557ad4be3a5bc1d38c9f8d0d10f52d7d73f6 | [] | no_license | tsan79/browedit | 215d92a86d663b9fe6db03ee4b6a227d040239d8 | 9cae73cd08b879c9f3c8e016db65a025ce8d2c98 | refs/heads/master | 2021-01-01T19:54:01.930646 | 2017-07-29T07:11:08 | 2017-07-29T07:11:08 | 98,715,566 | 1 | 0 | null | 2017-07-29T07:13:21 | 2017-07-29T07:13:21 | null | UTF-8 | C++ | false | false | 28,746 | cpp | #include "RotateTool.h"
#include "BrowEdit.h"
#include <blib/Shapes.h>
#include <blib/Shader.h>
#include <blib/Renderer.h>
#include <blib/linq.h>
#include <glm/gtc/matrix_transform.hpp>
RotatorTool::RotatorTool()
{
//// build up arrow
{
std::vector<glm::vec3> verts;
verts.push_back(glm::vec3(0... | [
"borfje@gmail.com"
] | borfje@gmail.com |
bb7d5a8ab411ff186bbb324bc9ef75369a79d0eb | 324f23af619b10fccc9e7e8fd63114d0fde96c14 | /src/objects/hitables/box.h | cfda6465aacd260fa2613e2b11073cd0c9ed56f3 | [
"MIT"
] | permissive | jdent02/RIFT_Renderer | e7c8908404b79ab955d1588810386930954ec655 | 936bac56e70930d45a28d7af24ba489faf475e46 | refs/heads/master | 2020-05-01T01:41:02.281871 | 2019-03-23T19:47:53 | 2019-03-23T19:48:55 | 172,733,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,612 | h | // Released under MIT License
// Copyright (c) 2018 Jonathan Dent.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use,... | [
"jdent02@hotmail.com"
] | jdent02@hotmail.com |
046fbb3c88c53d0bdbafbf299f1efe7c72406882 | 62d0ff2de41f373524c4822570b1ac01e00f0c37 | /algoritimo c++/desafio4.cpp | d4880f323357438127681b356c72e640df243012 | [
"MIT"
] | permissive | Lucas-MSF/Cpp | 9474c0d5f75f676c9ae4a5c0000a46b3e116d376 | 8eaac18aaef5edf6127a7b3da6af9cc6de7748d4 | refs/heads/main | 2023-08-18T04:00:31.579081 | 2021-09-29T01:50:05 | 2021-09-29T01:50:05 | 411,490,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | cpp | #include <iostream>
#include <stdlib.h>
using namespace std;
int potencia (int x, int y){
int resultado=1;
for(int i= 0;i<y;i++)
resultado=resultado*x;
return resultado;
}
int main (){
int num,expoente;
char resp;
bool loop=true;
do{
cout<<"informe um numero: ";
... | [
"lucasmasafi@gmail.com"
] | lucasmasafi@gmail.com |
cf5f8c7b32365f033f61ec63a14c35342843fb93 | 7ff7f36543662208dcc04c09ddd4cc2e95d04065 | /9550.cpp | c0f7bc1f2fff2277e6ac4b4f36ed4ce3fdbc8803 | [
"MIT"
] | permissive | jaemin2682/BAEKJOON_ONLINE_JUDGE | 2cb2e8709cf66dcfeac48b8b2bf88318a9bc4b25 | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | refs/heads/master | 2021-07-04T17:49:10.506298 | 2020-09-27T22:05:50 | 2020-09-27T22:05:50 | 177,923,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <memory.h>
#include <math.h>
#include <set>
using namespace std;
int main() {
int t;
cin >> t;
for (int i = 0; i < t; i++) {
int n, k, sum = 0;
cin >> n >> k;
for (int j = 0; j < n; j++) {
int num;
cin >> num;
sum ... | [
"46991162+jaemin2682@users.noreply.github.com"
] | 46991162+jaemin2682@users.noreply.github.com |
5141d892e7ea75b4a85e82f1a4fbd0d14d9abc33 | de832c497474fd4196bfe9a11eaee3c527f8d35a | /Unrest-iOS/Item.cpp | 3150eab597f5333b180577e573ed8789c8fabc04 | [
"MIT"
] | permissive | q4a/unrest | 779be2f39c0933f83871b00e7b6519d8ceba8201 | d89f20e95fbcdef37a47ab1454b2479522a0e43f | refs/heads/master | 2023-03-17T19:51:51.251457 | 2020-08-04T05:41:35 | 2020-08-04T05:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,819 | cpp | #include "stdafx.h"
#include "Item.h"
using namespace pyrodactyl::image;
using namespace pyrodactyl::item;
using namespace pyrodactyl::stat;
using namespace pyrodactyl::people;
//------------------------------------------------------------------------
// Purpose: Load
//-----------------------------------------------... | [
"arvindrajayadav@gmail.com"
] | arvindrajayadav@gmail.com |
f353fae13f321f4a3d77ea934ba81b91393f769a | 5d4620fa3066ddcee938899783d83a22f764fa6c | /DRAMSys/gem5/main.cpp | f18a74527f38c663b9d745722cf05ea82f1f562b | [
"BSD-3-Clause"
] | permissive | wangfeng012316/DRAMSys | 07ae293d12875b696e0869adcd9ac4874ee154ff | 460604aaec9b856e7010a20edbe4d22bc12e452a | refs/heads/master | 2023-04-22T04:26:04.151066 | 2021-05-17T08:33:35 | 2021-05-17T08:33:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,317 | cpp | /*
* Copyright (c) 2015, Technische Universität Kaiserslautern
* Copyright (c) 2016, Dresden University of Technology (TU Dresden)
* 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.... | [
"lsteiner@rhrk.uni-kl.de"
] | lsteiner@rhrk.uni-kl.de |
e254d9898d274cf4d018ed305eab1fba9b6b929d | 07389a36850b3ccf96cf80b2610d3a33ab9e4b81 | /Classic/TheBrain.h | c7af8506550071783a03c9aa5a29d73bbf5bc252 | [] | no_license | codedoglee/LeetCode | 692899719c290d9d6ec0652d50ab8041370531a4 | dce0fb888ab214d70cd2cedb6092f4c287741246 | refs/heads/master | 2021-09-03T04:38:06.306249 | 2018-01-05T16:18:05 | 2018-01-05T16:18:05 | 116,402,475 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,993 | h | #ifndef THEBRAIN_H_
#define THEBRAIN_H_
/*
* 小B乘火车和朋友们一起在N市到M市之间旅行。她在路途中时睡时醒。当她醒来观看窗外的风景时,注意到每个火车站都有一种特别颜色的旗帜,
* 但是她看到的旗帜仅仅是经过的一小部分。小B在乘车过程中有两次清醒的时间,她到达旅程终点时处于睡梦中。
* 出站时,她和朋友们谈论着一路的见闻,朋友们觉得很有意思,他们把N到和M之间经过车站的旗帜颜色依次列出来,
* 然后告诉你小B记得的旗帜颜色序列,让你判断小B究竟是从N和M之间哪些方向才能看到所说颜色的旗帜,还是根本就不可能看到?
* 颜色用字母代表,相同的字母代表相同的颜色,不同... | [
"noreply@github.com"
] | codedoglee.noreply@github.com |
abf89e8c56d02e552ab14dbef275186569321147 | 85586614a30fc15f9565ba1404f8df834ab6da64 | /domaca 4.cpp | 94f31a8116610cb760d8e5c7240577f413682ffc | [] | no_license | slavomircesla/Dom-ca-vyp-len- | 9416523ed7bc76b43808d8226a61b34b153db138 | 11d3c264f7b7b09d5cb8980810c4d8d25bb654a0 | refs/heads/master | 2021-09-05T01:24:27.231459 | 2018-01-23T11:09:13 | 2018-01-23T11:09:13 | 108,254,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,866 | cpp | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define N 20
int main()
{
srand(time(NULL));
int arr[N];
int s;
for(s=0;s<N;s++)
{
arr[s]=rand()%10000+10; //generovanie nahodnych cisel
}
for(s=0;s<N;s++)
{
printf("%d ", arr[s]); //vypiseme vygenerovane cisla
}
int count=0;
for(s=0;s<N;s++)
{
if(arr[s]%... | [
"slavomir.cesla@akademiasovy.sk"
] | slavomir.cesla@akademiasovy.sk |
9cff1b250d5c8fc53113aecce1d39b82a08023d1 | ba60552a47ed6fe30ce8e5f16267397cf49b0733 | /Utilities/Analyzer.cc | 9d6d0f1522a5474992fb7c5a583983bc25b1f791 | [] | no_license | sifuluo/WPrimeAnalysis_obs | 3c0d8f795884eca45f30da7949ecfd6bd1584c48 | d4ee23941754a708edee77bda7d2fdb2cf629550 | refs/heads/master | 2023-03-26T20:20:35.537356 | 2021-03-22T09:19:34 | 2021-03-22T09:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,639 | cc | #ifndef ANALYZER_CC
#define ANALYZER_CC
#include "Analyzer.hh"
Analyzer::Analyzer(int SampleType_, int irun_, double pt = 30) {
// gSystem->Load("libDelphes");
verbose = false;
SampleType = SampleType_;
irun = irun_;
vector<TString> fnames = SearchFiles(SampleType, irun, true);
chain_ = new TChain("Delphe... | [
"sifuluo@tamu.edu"
] | sifuluo@tamu.edu |
6e405beeb5cb97871ef1b2955154a82b8f44811b | 5f6e7a13485e2aad86a684193931f03080bf88f1 | /GraphicsStudy/Classes/funciton/layer/GraphicsLayer07.cpp | e6fd77b800a274f201c2f36249d63fe157e9a71d | [] | no_license | CanFengHome/Graphics | 0f20d032869720539c50ca7d729dc82e4e42ea17 | b86fd2fdfa1648d82246ad2fee3bf021777dc863 | refs/heads/master | 2021-03-31T22:41:11.420352 | 2016-08-02T09:42:30 | 2016-08-02T09:42:30 | 63,672,073 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,629 | cpp | //
// GraphicsLayer07.cpp
// GraphicsStudy
//
// Created by ccf on 16/7/28.
//
//
#include "GraphicsLayer07.h"
bool GraphicsLayer07::init()
{
if (!LayerColor::initWithColor(Color4B(GRAPHICS->getBgColor())))
{
return false;
}
GRAPHICS->inistallCanvas(this);
Size winSize = Director:... | [
"chencanfeng@microfunplus.com"
] | chencanfeng@microfunplus.com |
b7a43a2e008ea7bd83651c13ecebcf3585353f7b | 3b7b99420b202968c77e11e3099a56750b8b3925 | /pttest.cpp | ea19e36d19d2788bc7a8f2005e09a20e51c1fe06 | [] | no_license | ssi91/vkidcollector | 83f36f1b1bf2629789a65997c018c6e6cf663184 | 9076f15b8e6f75214ed42bd52941535cb5cb51f5 | refs/heads/master | 2021-01-10T03:44:02.740680 | 2015-10-09T09:18:22 | 2015-10-09T09:18:22 | 43,945,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 797 | cpp | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <pthread.h>
static void wait_thread(void)
{
time_t start_time = time(NULL);
while (time(NULL) == start_time)
{
/* do nothing except chew CPU slices for up to one second. */
}
}
static void *thread_func(void *vptr_args)
{
int i;
for (i = 0; i ... | [
"sergeev.s.i1991@gmail.com"
] | sergeev.s.i1991@gmail.com |
7818d6ce94d3ad31d783a8a17c60aafadd51002d | de1644ee4099a698e7f3d86f46c789fdf66d0a4d | /Code/Tools/ToolsFoundation/Reflection/Implementation/PhantomRtti.cpp | e5d3fa69a7e3a57d09cf24dd7be724c75ecb6d0b | [
"CC-BY-3.0"
] | permissive | eltld/ezEngine | 5cbe56c0f033763e1c9478c39e5979ac01430ec6 | 3230235249dd2769f166872b753efd6bd8347c98 | refs/heads/master | 2021-01-12T13:22:24.959311 | 2016-03-28T20:41:35 | 2016-03-28T20:41:35 | 72,212,613 | 0 | 1 | null | 2016-10-28T14:05:10 | 2016-10-28T14:05:10 | null | UTF-8 | C++ | false | false | 4,915 | cpp | #include <ToolsFoundation/PCH.h>
#include <ToolsFoundation/Reflection/PhantomRtti.h>
#include <ToolsFoundation/Reflection/PhantomProperty.h>
ezPhantomRTTI::ezPhantomRTTI(const char* szName, const ezRTTI* pParentType, ezUInt32 uiTypeSize, ezUInt32 uiTypeVersion, ezUInt32 uiVariantType, ezBitflags<ezTypeFlags> flags, co... | [
"jan@krassnigg.de"
] | jan@krassnigg.de |
2fe5cf0b04dd3898015b07e70265675e5661ada4 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/core/grappler/utils/functions.cc | d64cb497154d354ddb8479cbc1e8764238917d98 | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | C++ | false | false | 26,989 | cc | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
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 a... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
e019590933346b768a2fb5530016f7e2ce1ccf80 | 8bf9227210ffbe7138aacb552a5ba3596ae7688a | /src/shader/uniform/Uniform4fv.cpp | 0902f5300243bfd8383243c60650b6ad029bf3ca | [
"MIT"
] | permissive | qcoumes/mastercraft | d6704e5c6ca699c873f3adf9a45a5b4db44e563b | 5ee36fde6eab80d18075970eff47b4a5c45143f5 | refs/heads/master | 2023-02-16T01:05:27.290518 | 2021-01-12T17:06:08 | 2021-01-12T17:06:08 | 328,198,027 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | cpp | #include <shader/uniform/Uniform4fv.hpp>
namespace shader {
void Uniform4fv::load(const void *value) {
glUniform4fv(this->location, 1, static_cast<const GLfloat *>(value));
}
}
| [
"coumes.quentin@gmail.com"
] | coumes.quentin@gmail.com |
7723bc410599f3140238a2b07ace7ebc44073189 | 4a1c03ee67e46a0720a2c772be0b35e0a2c91407 | /WebradioV2/main.cpp | 25ffd57cc3ba8000fa838e0c802618082e321d3a | [] | no_license | maschinengeist/raspberrypiwebr | 9dd2b7a1575c6d3b0880c52ec1907e9d7c6b40a6 | 79d2ba0a6c219ba9b14588e1169d19e4d0665e73 | refs/heads/master | 2020-03-12T02:32:02.755335 | 2015-09-12T18:45:59 | 2015-09-12T18:45:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,382 | cpp | #include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "mytypes.h"
#include "debug.h"
#include "Init.h"
#include "Menue.h"
#include "mode.h"
#include "Dogm204.h"
#include "Dogm204_UserInterface.h"
/*************************************************************************
* D E F... | [
"sbrandt@ubuntu.ubuntu-domain"
] | sbrandt@ubuntu.ubuntu-domain |
f4d49b908801e06b70a9fe985f94b3d9de995f79 | bd5d2e32235a1f0bcacb9e9dd70f4e2118f360dd | /hw_8/src/leader.h | ff5dacd177220d25384ab8e9486d03b94fc0bcab | [] | no_license | lyen12/520-Assignments | 38df4d23c7ffa2cfc7e1fdcb814be25e653d0bd8 | 5f89c59ac611cdb6ca05686714836c4aef1ff9eb | refs/heads/master | 2020-12-08T09:55:57.485304 | 2020-03-05T05:33:27 | 2020-03-05T05:33:27 | 232,952,514 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | h | #ifndef __LEADER_AGENT__H
#define __LEADER_AGENT__H
#include "enviro.h"
using namespace enviro;
class Rotating : public State, public AgentInterface {
public:
Rotating();
void entry(const Event& e);
void during();
void exit(const Event& e);
private:
double init_angle;
double stop... | [
"lyen12@uw.edu"
] | lyen12@uw.edu |
78007203129d76493382bbb3d285aec49e20b465 | 31f70eb188d1ad6f354b3e0edee3aeec41534671 | /editsalesinvoice.cpp | 4240473a1f93d9ca7d85ec741b402d7d3efb573b | [
"MIT"
] | permissive | miantanveer/bizjust-erp | a25082916638e4fa518b1ec553c0b49203ca103b | d3291e212bf89ab6e753194127b3951afcd02548 | refs/heads/master | 2023-04-13T06:03:27.441353 | 2020-12-20T19:42:50 | 2020-12-20T19:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38,316 | cpp | #include "editsalesinvoice.h"
#include "ui_editsalesinvoice.h"
#include <QMapIterator>
EditSalesInvoice::EditSalesInvoice(QWidget *parent) :
QWidget(parent),
ui(new Ui::EditSalesInvoice)
{
ui->setupUi(this);
ui->stackedWidget->setCurrentIndex(0);
searchFormLoad();
editFormLoad();
}
EditSalesI... | [
"mr.tanveer007@gmail.com"
] | mr.tanveer007@gmail.com |
5c6c2515f773d3d72bb8b1d5d3461a5fd54ce942 | 7fb1765837defc5c6b640a10fc0b7efcfaa0994a | /01074Zcircular.cpp | eb8cede60aa4a54ca58a3ab43ed888d8213d80fb | [] | no_license | winnie-byun/baekjoon | 99d74cb69c6c3158fe96381dd57720c989277fc7 | eb4d10b4bead06d22beebbd38478005a774427db | refs/heads/master | 2021-09-29T03:18:03.926598 | 2018-11-23T08:02:21 | 2018-11-23T08:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,222 | cpp | #include <stdio.h>
#include <math.h>
long long int circular(int x, int y, int size) {
if (size == 1)
return 0;
int sizeX = size / (x+1);
int sizeY = size / (y+1);
//cout << x << " " << y << " " << size << " : " << sizeX << " " << sizeY << " ";
// up
if (sizeX >= 2) {
//cout << "U ";
// lef... | [
"joowon7508@gmail.com"
] | joowon7508@gmail.com |
51297a50a3e2adca5a011796036770a65d786d92 | 260e5dec446d12a7dd3f32e331c1fde8157e5cea | /Indi/SDK/Indi_Spacer_01_Var3_classes.hpp | bc08d715c2a1874d35d125654276e71a76dcecf0 | [] | no_license | jfmherokiller/TheOuterWorldsSdkDump | 6e140fde4fcd1cade94ce0d7ea69f8a3f769e1c0 | 18a8c6b1f5d87bb1ad4334be4a9f22c52897f640 | refs/heads/main | 2023-08-30T09:27:17.723265 | 2021-09-17T00:24:52 | 2021-09-17T00:24:52 | 407,437,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | hpp | #pragma once
// TheOuterWorlds SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "Indi_Spacer_01_Var3_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// Blue... | [
"peterpan0413@live.com"
] | peterpan0413@live.com |
8da2fa3c5f2c0802a6ffa866acb25a9f4bacba27 | 7999a9215654274215b59b543a641be6a3275c32 | /autonomy/include/msl/testing/udp_client.cpp | 41807ac053efef8da29501ed7ae2886da0af463e | [
"LicenseRef-scancode-public-domain"
] | permissive | UAFRMC/2020 | 715006903553150009a816f4aa9c6ea45feeaea3 | 9a828c82d74228f0209832b4296b36365883b60e | refs/heads/master | 2021-11-15T10:54:07.511760 | 2021-11-07T20:38:17 | 2021-11-07T20:38:17 | 209,660,861 | 4 | 3 | null | 2020-03-09T23:19:40 | 2019-09-19T22:45:01 | C++ | UTF-8 | C++ | false | false | 1,000 | cpp | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include "../socket.hpp"
#include "../time.hpp"
int main()
{
const size_t buffer_size=200;
const char filler='b';
//msl::udp_socket_t c("127.0.0.1:8080>127.0.0.1:8081",buffer_size);
msl::udp_socket_t c("127.0.0.1:8081>127.0.0.1... | [
"lawlor@alaska.edu"
] | lawlor@alaska.edu |
7072790ef47795c54e157ffccaff20171d4a4ac6 | 302e84437301465057cc1f196805bfe2389fb33a | /Add Binary/main.cpp | dba37fbb6980882a253f7a6156ada98eb902d50a | [] | no_license | MICHAEL-MAURICE/problem_solving_training | 7c0dbb075a1bd35e5ffcc5c3c6e7979bc559bdc5 | 28fcc8625e942007ebba3e6a8f24b0fcd37939df | refs/heads/main | 2023-03-05T19:02:18.210912 | 2021-02-19T12:49:15 | 2021-02-19T12:49:15 | 336,622,627 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 580 | cpp | #include <iostream>
using namespace std;
string addBinary(string a, string b) {
int carry = 0;
int i = a.length() - 1;
int j = b.length() - 1;
string ans;
while (i >= 0 || j >= 0) {
int s = (i >= 0 ? a[i--] - '0' : 0) +
(j >= 0 ? b[j--] - '0' :... | [
"52583744+MICHAEL-MAURICE@users.noreply.github.com"
] | 52583744+MICHAEL-MAURICE@users.noreply.github.com |
06e70a78fbb03dea09c2627332993ec80041f43d | a7a369fe4a73b2ee8a043b1ff15ed56ee1b1d292 | /src/server/scripts/Northrend/IcecrownCitadel/IcecrownCitadel/icecrown_citadel.cpp | 19c5de19a865cecd3ee248720b71c197b16b7958 | [] | no_license | cooler-SAI/ServerMythCore | de720f8143f14fb0e36c2b7291def52f660d9e1a | bd99985adca0698b7419094726bdbce13c18740c | refs/heads/master | 2020-04-04T21:27:04.974080 | 2015-06-22T14:06:42 | 2015-06-22T14:06:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80,018 | cpp | /*
* Copyright (C) 2008 - 2011 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2013 Myth Project <http://mythprojectnetwork.blogspot.com/>
*
* Myth Project's source is based on the Trinity Project source, you can find the
* link to that easily in Trinity Copyrights. Myth Project is a private commun... | [
"humbertohuanuco@gmail.com"
] | humbertohuanuco@gmail.com |
d668c2a7633fc34b618844d1f391d3e5714020bc | 904a9010b22eeb827eb0d78b9d9e97e4e7a23abf | /src/coincontrol.h | ecc07d018a18f320e404dbdb2d87e949f13152b8 | [
"MIT"
] | permissive | nintcoin/nintcoin | 694d5e0cd8e7f4f7b063cb87d2c03113305d6c1d | e2956988193a39e95b1b202686fbae51815c2354 | refs/heads/main | 2023-05-30T03:33:26.494429 | 2021-06-03T21:29:11 | 2021-06-03T21:29:11 | 373,645,702 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,235 | h | // Copyright (c) 2011-2013 The Bitcoin developers
// Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The nint developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-lice... | [
"nintcoin@gmail.com"
] | nintcoin@gmail.com |
337a75e02cd868df8c2a4df909a860bf761cef93 | 8f021f68cd0949afa8d119582c0b419b014919d8 | /SPOJ/senha.cpp | b1918dc227975859a53029e49085126ede90359d | [] | no_license | Jonatankk/codigos | b9c8426c2f33b5142460a84337480b147169b3e6 | 233ae668bdf6cdd12dbc9ef243fb4ccdab49c933 | refs/heads/master | 2022-07-22T11:09:27.271029 | 2020-05-09T20:57:42 | 2020-05-09T20:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 823 | cpp | /*
* Leonardo Deliyannis Constantin
* http://br.spoj.com/problems/SENHA/
*/
#include <stdio.h>
#include <map>
#include <algorithm>
#include <vector>
using namespace std;
typedef pair<int, int> ii;
bool mycomp(ii a, ii b){
return a.second < b.second;
}
int main(){
int N, i, c;
int teste = 0;
while(scanf("%d",... | [
"constantin.leo@gmail.com"
] | constantin.leo@gmail.com |
6fbaf7e6fe258ddcf346f46146779f78b235331c | 9eeb23f4941cd262bc302b39f3b2c9949aeed57a | /tp3/lib/Curves/StraightLine.cpp | 7ed5f9ee3d703b007815ceb2b9ca2522cd3c4ff5 | [] | no_license | Bloodclot24/crap | 541c4c0810fd80016e8ef37b44ebb348b0eaf00a | 8813a810ca0b1471f1318531d6d51645913496b7 | refs/heads/master | 2016-09-02T00:17:40.753705 | 2012-03-02T02:45:18 | 2012-03-02T02:45:18 | 32,809,093 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | cpp | #include "Curves/StraightLine.h"
StraightLine::StraightLine(btVector3 v0, btVector3 v1)
{
v0_ = v0;
v1_ = v1;
orientation_.setValue(0, 0, 1);
}
btVector3 StraightLine::getPoint(float t)
{
btVector3 point;
point = v0_ + (v1_ - v0_)*t;
return point;
}
btVector3 StraightLine::getNormal(float t... | [
"lucashpandolfo@gmail.com@57eeccb7-2dbe-dfe9-f1ce-6dd61f39e22f"
] | lucashpandolfo@gmail.com@57eeccb7-2dbe-dfe9-f1ce-6dd61f39e22f |
5a2d30a559db2fb8893b3b1c8b4bda78785d580c | 59a9cdbcfc8178fe2175e396d2fd172f4e6f904a | /Renderer-Vulkan/src/Pipeline.cpp | f68a72191ddccb99ab96e8e037f3d9dfb66ade1f | [
"MIT"
] | permissive | YousifKako/Renderer-Vulkan | e9f56ce4890fdb188617d20362b981f4d4a20dd6 | 085e3119009137558940a995973c44c278ef6d6d | refs/heads/master | 2023-09-03T17:22:05.586847 | 2021-09-06T20:48:34 | 2021-09-06T20:48:34 | 386,466,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,100 | cpp | #include <fstream>
#include <iostream>
#include <cassert>
#include <Pipeline.hpp>
#include <Device.hpp>
#include <Model.hpp>
Pipeline::Pipeline(Device& device, const std::string_view& vert_path, const std::string_view& frag_path, const PipelineConfigInfo& config) :
device(device)
{
this->createGraphicsPipelin... | [
"yousifsabah_2011@yahoo.com"
] | yousifsabah_2011@yahoo.com |
d53a9b5dd58f52fc53dcc750bdde2afa518cf920 | 311ef77bb72b198b1040101e981987bdf7614946 | /1/Task11/main.cpp | 0b33ab6d0bf44f1c3a579ea9e61b9177e722caf9 | [] | no_license | jvoveravicius/pagrindai | 7af9f639a7a8af890b7c444ee39f44f6db07e1c0 | 9969b7a9251fb966474961a129a8678413c3889e | refs/heads/master | 2021-01-01T18:03:44.846756 | 2018-09-17T21:34:54 | 2018-09-17T21:34:54 | 98,230,968 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,567 | cpp | #include <cstdlib>
#include <iostream>
#include <fstream>
#include <ctime>
#include <string>
/*
20. Duotas sveikuju skaiciu masyvas iš n elementu.
Pakeiskite masyvo elementus vietoj ju irašydami skaiciaus turimu skaitmenu kieki.
Jeigu masyvo elementas vienženklis skaicius, vietoj jo irašomas 1, jeigu masyvo elemen... | [
"juozas.voveravicius@gmail.com"
] | juozas.voveravicius@gmail.com |
24733e5de83331d1baad2664460b772bf2bae106 | 11348e739dee821e4bdd6ec0e4c6c041a01b0b59 | /resources/cs100/CS100unit3发布版/3-1.cpp | fbc832daa881ad957c889fd7eb60c0ec817fc041 | [] | no_license | Spartan859/Noip_Code | 580b1f022ca4b8bf3e77ff8d57d230340715a98d | 8efe9e7cc6f29cd864b9570944932f50115c3089 | refs/heads/master | 2022-11-18T15:09:19.500944 | 2020-07-11T13:36:21 | 2020-07-11T13:36:21 | 163,517,575 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | cpp | #include<string>
#include<iostream>
using namespace std;
int main(){
string str;
cin>>str;
for(int i=0;i<str.length();++i){
if(str[i]>=97&&str[i]<=122)
str[i]=str[i]-32;
else
continue;
}
cout << str << endl;
return 0;
}
| [
"36628376+Spartan859@users.noreply.github.com"
] | 36628376+Spartan859@users.noreply.github.com |
976a7cd6f6e984be33778477f71290f225f005ca | 38370ec6d3ba86570dd0efd1de8841f6ff5bad59 | /CrossApp/control/CABar.cpp | c95b2cf293c68920a6644467c72e2c737a641a92 | [] | no_license | RainbowMin/CrossApp | f3588907811cc5f3b9936439b95aade65eb29e5a | 45b5d4893fab0bb955089e1655694b189760608d | refs/heads/master | 2021-01-18T10:07:52.377093 | 2014-07-22T05:44:16 | 2014-07-22T05:44:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,956 | cpp | //
// CABar.cpp
// CrossApp
//
// Created by Li Yuanfeng on 14-4-14.
// Copyright (c) 2014 http://9miao.com All rights reserved.
//
#include "CABar.h"
#include "view/CAScale9ImageView.h"
#include "basics/CAApplication.h"
#include "view/CALabel.h"
#include "support/CCPointExtension.h"
#include "actions/CCActionInst... | [
"278688386@qq.com"
] | 278688386@qq.com |
5150ec7cf6f83c6046f0770adffe539463f117d4 | 26ac51b31b70cc9cffb6b01600a7e8b96d2b0780 | /Vcpp/Networks/customsolver/Visual_CPP/ConnectivitySymbolizer.h | 31dc7c6b7675ef09d8baaa6b822823a3302e545a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | esride-nik/arcobjects-sdk-community-samples | 188fd3df11a96e0fc338a5993b4e0d6077c004e3 | 5a5f9bf3da224ba5891a46dde0734efbaeb5546c | refs/heads/master | 2021-01-11T20:04:06.309842 | 2017-01-19T14:53:31 | 2017-01-19T14:53:31 | 79,463,193 | 0 | 0 | null | 2017-01-19T14:49:25 | 2017-01-19T14:49:25 | null | UTF-8 | C++ | false | false | 4,470 | h | /*
Copyright 2016 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | [
"arcgisprosdk@esri.com"
] | arcgisprosdk@esri.com |
ceb78d35566e32c07dd44632fd572cfe5f83dd86 | 0aaa072fdc32bfa260f19e32f253e03a37592307 | /scripts/ADMB/ADMBn2/CSIRO45/CSIRO45.cpp | 70a3d5eb27fce3c60e10cb27197edddcdca8c181 | [] | no_license | BenjaminHCCarr/Collapse | b0a9a4e228407b5820e621feaeef05628828169b | 1738c1271beefe6f307d28459c1db678e7021eee | refs/heads/master | 2020-04-09T15:27:06.368121 | 2014-08-25T22:53:58 | 2014-08-25T22:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,566 | cpp | #include <admodel.h>
#include <admodel.h>
#include <contrib.h>
extern "C" {
void ad_boundf(int i);
}
#include <CSIRO45.htp>
model_data::model_data(int argc,char * argv[]) : ad_comm(argc,argv)
{
nobs.allocate("nobs");
maxB.allocate("maxB");
data.allocate(1,nobs,1,2,"data");
landings.allocate(1,no... | [
"bencarr@bu.edu"
] | bencarr@bu.edu |
94698c5ebd693b7f22f1274d3d42abc580be6f27 | 10fadd9223d6dc713e1e2cd84ba4347a29966a33 | /MOs_algo.cpp | cf84736995637d4562f2090283e4b9ede91eb38c | [] | no_license | tajmaun/Competitive-Programming | c4db58c89a42d02976d1c4ea9e27e06f97d602d9 | d70d8b175b54690eeda46cc9f1b819925e935f85 | refs/heads/master | 2021-06-13T03:29:43.727724 | 2016-11-15T10:08:20 | 2016-11-15T10:08:20 | 21,784,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,236 | cpp | #include <cstdio>
#include <algorithm>
using namespace std;
#define N 311111
#define A 1111111
#define BLOCK 555 // ~sqrt(N)
int cnt[A], a[N], ans[N], answer = 0;
struct node {
int L, R, i;
}q[N];
bool cmp(node x, node y) {
if(x.L/BLOCK != y.L/BLOCK) {
return x.L/BLOCK < y.L/BLOCK;
}
return x.R < y.R;
}
voi... | [
"tajmaunkamal@gmail.com"
] | tajmaunkamal@gmail.com |
b66eea3660e15060e48c03217b21fa320c7db189 | 2c5095a43e9955d9ba48dde20e2207f286cbb5b7 | /3rd_programming_series/empire_heap.cpp | 9e5d0c1e3f0cafb2a22d436548fbc5e2cd872b39 | [] | no_license | mkatsa/Algorithms-and-Complexity | 45213945730438a139ef198af92561236ed0d71a | c67b496e2da77a6bbf746612e402b2a8bb4e5dc8 | refs/heads/master | 2021-06-22T18:41:36.790960 | 2017-09-03T22:12:59 | 2017-09-03T22:12:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,461 | cpp | /*
The functions and the structs for the execution of Prim's algorithm in a heap were taken and adjusted from this link:
http://www.geeksforgeeks.org/greedy-algorithms-set-5-prims-mst-for-adjacency-list-representation/
*/
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
// A structure to represent... | [
"noreply@github.com"
] | mkatsa.noreply@github.com |
ee4fee8a5fa3461b6e0b1d72e3802a82be24e10f | a349dbf18493cd9bbb2bc9288671f2c981aa8233 | /All Other Topics/Divisible by 8.cpp | c6c5312c83d7120aa1019e9eade6e2fd965970b3 | [] | no_license | Ashish-kumar7/geeks-for-geeks-solutions | dd67fb596162d866a8043460f07e2052dc38446d | 045dc4041323b4f912fcb50ae087eb5865fbacb3 | refs/heads/master | 2022-10-27T14:43:09.588551 | 2022-10-02T10:41:56 | 2022-10-02T10:41:56 | 228,147,267 | 38 | 50 | null | 2022-10-19T05:32:24 | 2019-12-15T07:40:36 | C++ | UTF-8 | C++ | false | false | 510 | cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
//code
int t;
cin>>t;
while(t--){
int n;
cin>>n;
string A=to_string(n);
sort(A.begin(),A.end());
int flag=0;
if(stoi(A)%8==0){
flag=1;
//break;
}
while( next_permutation( A.begin(... | [
"ashishkumar357ak@gmail.com"
] | ashishkumar357ak@gmail.com |
c1628753b5a97f1fa6d0e1051ca82b5261f36074 | d8decc0da74b655a4204884088c20d30d5ee501b | /2019.01.09/snowball.cpp | d28de49f762e542523297b4f21288ce4264e96c8 | [] | no_license | bobshih/competitive_coding | b002714d59a0e58811234994cf67f1a6fb9c89f1 | 2f0e6eb574a11cbe386d9457f6d80569391eb9a2 | refs/heads/master | 2020-04-14T23:40:57.330314 | 2019-01-10T17:09:25 | 2019-01-10T17:09:25 | 164,211,752 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 761 | cpp | #include <iostream>
#include <cstdio>
using namespace std;
int main(){
int ball_height, ball_weight;
int stone1_height, stone1_weight;
int stone2_height, stone2_weight;
scanf(" %d %d", &ball_weight, &ball_height);
scanf(" %d %d", &stone1_weight, &stone1_height);
scanf(" %d %d", &stone2_weight, &stone2_height... | [
"bobshih@hotmail.com"
] | bobshih@hotmail.com |
4418b8a11d1e8668578e9347f10bb080db86b328 | 87fc11e2f340f26dc3c772bf85db934107b13b6d | /Homework/4Month/200427/MainGame.cpp | 88d5dfc63d3322f2b990fd675304014829d65f55 | [] | no_license | KeiPro/Gyeongill | e8612a449dd0ec7023a659010f03551f540cdb28 | b9e604279fec8c0bec5bcb0ee8eefffd4ceb8bc5 | refs/heads/master | 2021-05-18T15:35:22.908938 | 2020-05-30T02:13:39 | 2020-05-30T02:13:39 | 251,299,700 | 0 | 0 | null | null | null | null | ISO-8859-7 | C++ | false | false | 1,714 | cpp | #include "MainGame.h"
#include "macroFunction.h"
#include "Tank.h"
#include "Enemy.h"
HRESULT MainGame::Init()
{
hTimer = (HANDLE)SetTimer(g_hWnd, 0, 10, NULL);
// ΕΚΕ©
tank = new Tank();
tank->Init();
tank->SetMainGame(this);
// Enemy
enemy = new Enemy[ENEMYCOUNT];
for (int i = 0; i < ENEMYCOUNT; i++)
{
... | [
"keiprogramo@gmail.com"
] | keiprogramo@gmail.com |
51aed7d4af3f42b3b8c861aefcc31e29d6262270 | 399d0b54ceb400e19cf9106f6c4ca13dc7d66052 | /A_star_algo/find_route.cpp | f3a98df755154f132c60ab34088ab92069e14a11 | [] | no_license | AbirRahmanOne/Artificial-Intelligence- | b1681706dedec7a04fe56d81c3579f6435160fdc | 526dc5612ed06068c4b7b91b7c7773cfb147b725 | refs/heads/master | 2020-07-16T21:05:00.011301 | 2019-09-02T14:23:22 | 2019-09-02T14:23:22 | 205,868,736 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,681 | cpp | #include<iostream>
#include<fstream>
#include<vector>
#include<queue>
#include <map>
#include<stack>
using namespace std ;
const int N = 100020 ;
const int inf = 9999999 ;
typedef pair<int,int> pii ;
vector<pii> graph[N] ;
int cost[N] ;
int path[N] ;
map<string,int> Hash ;
map<int,string> Hash2 ;
int n ;
void D... | [
"abir.talks@gmail.com"
] | abir.talks@gmail.com |
a7557831255f06004b39cc83bb100784b45f7e7f | 2d09e121c17b9c59b5676c870a5d251b57c99712 | /ALCUK-PracticeChecker.cpp | 449ca937d07608bc26e74f53fea588d39d24d839 | [] | no_license | hschoi1104/ALCUK-PracticeChecker2.0 | 408f496a1dcfa8ad77b879fbd7295a19bdbc4336 | aad0d5f6cdbb29790489186e9a87fa34398c5662 | refs/heads/master | 2020-05-01T09:28:09.905742 | 2019-08-16T16:50:47 | 2019-08-16T16:50:47 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,762 | cpp | #include <iostream>
#include <map>
#include <vector>
#include <string>
using namespace std;
struct node {
string name;
string ban;
int done;
};
map<string, node>m;
string s;
int probnum = 0, people = 0, t = 0;
int seniercutline = 0, senierbasiccutline = 0, juniercutline = 0, practicetype = 0;
void input() {
cout <... | [
"43382559+hschoi1104@users.noreply.github.com"
] | 43382559+hschoi1104@users.noreply.github.com |
7a22d21f9f4262081be060a87eb47b86f98925c7 | 347da83ba8eb3fc8633a45350a171e26a45ad99c | /src/datasync/messages/loginmessage.cpp | a5ec5f320c351678be32da6ec22a48d2706d1d89 | [
"BSD-3-Clause"
] | permissive | stlcours/QtDataSync | 4f4d63ba0eef84cc6ff765d2c4922a5d496b6af7 | 5dc8a4e11b785b7f7be09be7cbf1ff2429e20d6c | refs/heads/master | 2021-04-03T10:19:11.049547 | 2018-02-19T12:31:02 | 2018-02-19T12:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 317 | cpp | #include "loginmessage_p.h"
using namespace QtDataSync;
LoginMessage::LoginMessage(const QUuid &deviceId, const QString &deviceName, const QByteArray &nonce) :
InitMessage(nonce),
deviceId(deviceId),
deviceName(deviceName)
{}
const QMetaObject *LoginMessage::getMetaObject() const
{
return &staticMetaObject;
}
| [
"Skycoder42@users.noreply.github.com"
] | Skycoder42@users.noreply.github.com |
0d5f601eea2e430a07d598e9ad56103c403dc020 | 2609bfcc186b54b071e7f23e6034b211428e8ecf | /assignment-3/clock_face.hpp | 8f98a80bd3084f31ad182fa4b4814a121f94a01d | [] | no_license | koentjehh/cpse-1 | 6260e290d7a04d5fdea861dfb771b4a02710a6b8 | f4fd99f1571bdc972c6f28a741c237ae9dc9d60d | refs/heads/master | 2023-02-16T17:21:40.939198 | 2021-01-18T19:56:14 | 2021-01-18T19:56:14 | 296,319,124 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 73 | hpp | #include "hwlib.hpp"
class clock_face
{
\\
}
class clock_hours
{
\\
} | [
"eikelnboomkoen@gmail.com"
] | eikelnboomkoen@gmail.com |
bd6acfb06b479e40c49d29c7567fc2fb6fb30b2b | 084d70b984efaef702692eae55cafd812cdcd3f3 | /Lab6/MainWindow.cpp | 7acc7f3abe062468977e98928d71f328bf724df9 | [
"MIT"
] | permissive | kinpa200296/SP_labs | 76ae6f2575c7047b1b09a1fa2b428eff8b9f3de5 | cc2cd58f07b53ba6dce3913848686b1860d15a6a | refs/heads/master | 2020-05-18T15:41:08.117483 | 2015-09-18T18:10:37 | 2015-09-18T18:10:37 | 42,012,560 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,788 | cpp | #pragma once
#include "MainWindow.h"
#include <ctime>
namespace Lab6
{
bool MainWindow::ThreadsNeeded[THREADS_COUNT];
HWND MainWindow::MainWindowHWND;
POINT MainWindow::Points[THREADS_COUNT];
int MainWindow::ThreadsSpeed[THREADS_COUNT], MainWindow::StarSize, MainWindow::MainWindowHeight;
MainWindow::MainWindow... | [
"kinpa200296@yandex.ru"
] | kinpa200296@yandex.ru |
41f75319ce08f502659af7d9421afd7d953a21b2 | 6decafff028a2abc4befde9362a35643fea0dd38 | /d04/ex00/Victim.cpp | 59c4e69031650d570bde793b1fe6cc9903762bf8 | [] | no_license | vradchen/piscine-C- | 8656dc0792c81f24e4c2a7c9b2b2442dec5d922d | 60090deddf6b5b3a4868f955e1dc7eb2b113ab11 | refs/heads/master | 2022-01-08T10:51:14.984754 | 2019-06-26T14:23:56 | 2019-06-26T14:23:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | cpp | //
// Created by Vadym RADCHENKO on 10/5/18.
//
#include "Victim.hpp"
Victim::Victim() {
_name = "DefVictim";
std::cout<< "Some random victim called " << _name << " just popped !\n";
}
Victim::~Victim() {
std::cout << "Victim " << _name << " just died for no apparent reason !\n";
}
Victim::Victim(Victim const &v... | [
"radchenko.v@ukr.net"
] | radchenko.v@ukr.net |
798afb93544c8c9ea5602b41b9fb0f736dd62f21 | cd32e2dd742f2e50d941d438cb353c129585696d | /Object.cpp | 04917c75aa5748d32978a738416eb387aa98cf84 | [] | no_license | bwnuk/Searcher | 93ebb97da716b00776a0d06eda21b63e5452cdbc | 4f11b42bcd199275de952398216c7431f5b1b5cb | refs/heads/master | 2021-09-03T11:54:09.372581 | 2018-01-08T21:40:47 | 2018-01-08T21:40:47 | 112,512,372 | 0 | 0 | null | 2017-12-28T19:45:47 | 2017-11-29T18:29:17 | C++ | UTF-8 | C++ | false | false | 480 | cpp | #include "Object.h"
Object::Object(sf::Texture* t, sf::Vector2f s, sf::Vector2f p)
{
body.setSize(s);
body.setTexture(t);
body.setOrigin(s / 2.0f);
body.setPosition(p);
drawable = true;
}
Object::~Object()
{
}
int Object::Get_Type()
{
return type;
}
void Object::Set_Type(int t)
{
type = t;
}
bool Object::Ge... | [
"bartekwnuk13@gmail.com"
] | bartekwnuk13@gmail.com |
b163cfcdb4a7ff9e6a0cc1a4f23ebfea6382f88c | 949eb290baa025da4bf5966a7c7445cc6a7c3982 | /src/FalconEngine/Platform/Direct3D/Direct3DTexture2dArray.cpp | cbaac38a0dd2490cf255606af182918d2b603c75 | [
"MIT"
] | permissive | study-game-engines/falcon | 980f0edba5b4f2f5c89c8c7e1033781315c57920 | c4d1fed789218d1994908b8dbbcd6c01961f9ef2 | refs/heads/master | 2023-08-14T17:45:50.070647 | 2021-05-25T07:38:57 | 2021-05-25T07:38:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 648 | cpp | #include <FalconEngine/Platform/Direct3D/Direct3DTexture2dArray.h>
#if defined(FALCON_ENGINE_API_DIRECT3D)
#include <FalconEngine/Graphics/Renderer/Resource/Texture2dArray.h>
namespace FalconEngine
{
/************************************************************************/
/* Constructors and Destructor ... | [
"linwx_xin@hotmail.com"
] | linwx_xin@hotmail.com |
131bf98dac49c45f1e3c54f2d72fa91e33ad5309 | 86461a84aaf714ca241591e321a4b1b26a700723 | /test/UnitTests/GitAdminDirTest.cpp | e72056ce6a4bbcdefac573b26d6b2ccf5de505d0 | [] | no_license | yfdyh000/TortoiseGit | c7501d91b6bceba4dee526497e97c4c8c7af9f4a | 9b7ea7742c4a387446262ae4a2d96aa023b8bab1 | refs/heads/master | 2021-01-17T13:00:09.405314 | 2015-03-04T10:15:30 | 2015-03-05T21:09:05 | 31,762,008 | 0 | 0 | null | 2015-03-06T09:26:06 | 2015-03-06T09:26:06 | null | UTF-8 | C++ | false | false | 7,672 | cpp | // TortoiseGit - a Windows shell extension for easy version control
// Copyright (C) 2015 - TortoiseGit
// Copyright (C) 2003-2008 - TortoiseSVN
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software F... | [
"email@cs-ware.de"
] | email@cs-ware.de |
8c7d29d4b5e69c5ecae9c5cc16f5680d5542ded9 | 5dc40b935e5a60f3a6de9895273da0cb67fec4c3 | /Geeks For Geeks/Geek-onacci Number/Geek-onacci Number.cpp | 03a62d78894730bf85f34d331a0ed8351e33e64a | [] | no_license | murugan-k-0204/Competitive-Programming | 738d1b647f2c338869e8f2b1c756a25063b861c5 | 0834a6a5354b8c7cd2053aacb4dea541382004c0 | refs/heads/main | 2023-07-12T13:03:31.675446 | 2021-08-25T13:59:40 | 2021-08-25T13:59:40 | 363,007,681 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | #include<iostream>
using namespace std;
int main()
{
int t;
cin>>t;
for (int i = 0; i < t; i++)
{
int a,b,c,d;
cin>>a>>b>>c>>d;
int temp;
for (int i = 4; i < d+1; i++)
{
temp=a+b+c;
a=b;
b=c;
c=temp;
... | [
"noreply@github.com"
] | murugan-k-0204.noreply@github.com |
103b57f1670d48605da5f74f46a29d6b618431a6 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/curl/gumtree/curl_new_log_8610.cpp | 20cb5adb5b7b1276baa37c507a529835c0f550b2 | [] | 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 | 545 | cpp | fputs(
" (HTTP) This posts data, similar to the other --data options with\n"
" the exception that this performs URL-encoding. (Added in 7.18.0)\n"
" To be CGI-compliant, the <data> part should begin with a name\n"
" followed by a separator and a content specificat... | [
"993273596@qq.com"
] | 993273596@qq.com |
57b3fafb3c35ce9c7d79d14e69bed63d148ec9ed | cbbe2272dca965ceb3f5e651f77979b0e787f5b6 | /source/Library.Shared/Factory.inl | c5a19516285607272b8a476973c50b2ab3e3fdc8 | [] | no_license | satchitns/Data-Driven-Game-Engine | e31601470afd0bb7d3bb43307b059abe1ed06dfc | fa91d9ef4cb79129144b6f58a3cb735caa512e28 | refs/heads/master | 2021-04-09T12:59:32.394399 | 2018-04-21T00:16:52 | 2018-04-21T00:16:52 | 125,594,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | inl | #pragma once
namespace FieaGameEngine
{
template<typename T>
bool Factory<T>::Find(const std::string& name, const Factory<T>*& outFactory)
{
FactoryMap::Iterator iterator = sFactoryMap.Find(name);
if (iterator == sFactoryMap.end())
{
return false;
}
outFactory = iterator->second;
return true;
}
te... | [
"sns1227@gmail.com"
] | sns1227@gmail.com |
acd9e896d96de3bdc28a95f61b0c2f7709024a8a | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5644738749267968_0/C++/picasso92/deceitful.cpp | 8c47d26edd27689e5f0fd18e1e6f97531bfa169d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,671 | cpp | #include<cstdio>
#include<algorithm>
using namespace std;
int TC,N;
pair<float,int> Data[1000],Data2[1000];
pair<float,int> DataCopy[1000],DataCopy2[1000];
int a,b,c,status;
int countWar,countDWar;
int main()
{
scanf("%d",&TC);
for(a = 1; a <= TC; a++)
{
countWar = 0;
countDWar = 0;
scanf("%d",&... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
51cf85045e11d9f44b5b66739f8920b5b833c2d4 | c4f22a6d0cc2108c223df0869f00c1c5b53ac377 | /constantlearning/function1.cpp | 3ec5aa5eba810cbed28de3c173c2db6bf5ea830e | [] | no_license | a524631266/C- | 7d1b16e9c80eea2e71e84fe7a636d1b9a8e2b11f | 2f080e70b5c05bc3bfe5a023b317f4c582ecd4c9 | refs/heads/master | 2020-09-16T01:18:55.140545 | 2020-08-18T07:04:13 | 2020-08-18T07:04:13 | 223,607,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | #include <iostream>
using namespace std;
int add(int a = 9,int b = 10)
{
return a+ b;
}
// 错误add2 第一个参数有默认,其后的参数必须指定参数,否则报错
int add2(int a = 9,int b)
{
return a+ b;
}
int main(int argc, char const *argv[])
{
std::cout << add() << std::endl;// 19
std::cout << add(10) << std::endl; // 20
return 0;
}
| [
"524631266@qq.com"
] | 524631266@qq.com |
76885bdeef43addd69bf08da89bdc3e3ca76d6d7 | 774ceaeaaf31df44b3a0429c815d63c7aba015ae | /SrcBkup/Tile.h | 13eb5cd55417a23c4b5840e8a7ae5ab81279f25d | [] | no_license | hamencheez/CMPS164_Engine | 11bf12e2335058067ea5a5236f5e049461d4e817 | f837117a814ecc8472cf1bd9460ee42d9656f4fa | refs/heads/master | 2021-01-01T19:42:49.996529 | 2013-06-10T23:59:51 | 2013-06-10T23:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,583 | h | //Tile.h
#pragma once
#include <vector>
#include "Vector3.h"
using namespace std;
class Physics;
class Tile {
public:
int tileIndex;
int vertices;
Tile(void){};
~Tile(void){};
Vector3* tileNorm;
Vector3* downVec;
float slope;
vector<float> xVertex;
vector<float> yVertex;
ve... | [
"jbarrica@ucsc.edu"
] | jbarrica@ucsc.edu |
5b3aa24d415b8e425002bff0953e94b6e87a0d42 | 0d0e78c6262417fb1dff53901c6087b29fe260a0 | /tci/include/tencentcloud/tci/v20190318/model/LightStandard.h | 37c853bb0db5aa14fcbfab5ba7b1af7cf08061cd | [
"Apache-2.0"
] | permissive | li5ch/tencentcloud-sdk-cpp | ae35ffb0c36773fd28e1b1a58d11755682ade2ee | 12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4 | refs/heads/master | 2022-12-04T15:33:08.729850 | 2020-07-20T00:52:24 | 2020-07-20T00:52:24 | 281,135,686 | 1 | 0 | Apache-2.0 | 2020-07-20T14:14:47 | 2020-07-20T14:14:46 | null | UTF-8 | C++ | false | false | 3,445 | h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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
... | [
"zhiqiangfan@tencent.com"
] | zhiqiangfan@tencent.com |
e45eb63b0bf747efd516ec818946ca415a3970c0 | d911072bb624bfba8c802ba26505095677b64e78 | /React3D/Core/src/VertexBufferLayout.h | b277d70916b5b321b91a0be6b171817113ec7b83 | [
"MIT"
] | permissive | iCodeIN/React3D | 20c49336a8ea02262feac96bad19a8befa852ffb | a5874f3e600bef27c9ed7a346ed2ca0440dee5a5 | refs/heads/master | 2022-03-30T03:32:19.162788 | 2019-11-22T18:53:58 | 2019-11-22T18:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,364 | h | #pragma once
#include <vector>
#include <GL/glew.h>
#include "Renderer.h"
struct VertexBufferElement
{
unsigned int type;
unsigned int count;
unsigned char normalized;
static unsigned int GetSizeOfType(unsigned int type)
{
switch (type)
{
case GL_FLOAT: return 4;
case GL_UNSIGNED_INT: return 4;
... | [
"ankitpriyarup@gmail.com"
] | ankitpriyarup@gmail.com |
4dfb235f8292a9344ae802b795c38003216321d1 | 436623ee85c9d9444d700b56f2729b12b9f2c659 | /include/eepp/system.hpp | 6c88a508feea50c826933725d0bfb866a7aed1f6 | [
"MIT"
] | permissive | SpartanJ/eepp | 0bd271b33058ef119f5c34460ed94e44df882a25 | 9f64a2149f3a0842ced34b8b981ffe3a8efc6d13 | refs/heads/develop | 2023-09-01T01:17:30.155540 | 2023-08-27T20:58:19 | 2023-08-27T20:58:19 | 125,767,856 | 341 | 27 | MIT | 2023-04-01T20:10:26 | 2018-03-18T21:11:21 | C++ | UTF-8 | C++ | false | false | 1,565 | hpp | #ifndef EEPP_SYSTEM_HPP
#define EEPP_SYSTEM_HPP
#include <eepp/system/base64.hpp>
#include <eepp/system/bitop.hpp>
#include <eepp/system/clock.hpp>
#include <eepp/system/color.hpp>
#include <eepp/system/compression.hpp>
#include <eepp/system/condition.hpp>
#include <eepp/system/directorypack.hpp>
#include <eepp/system... | [
"spartanj@gmail.com"
] | spartanj@gmail.com |
51d52bef333ecaab4b86cd0cbd7d4f39e2db73fc | 6d7f2381b8f1c5c0e0d96156ae36cac12be3017b | /atcoder/typical90/030/main.cpp | c3272a2c245f6d11879d0d687aa8c49328f45d46 | [
"Unlicense"
] | permissive | Johniel/contests | 708ccf944d6aeb0ef0404eec47e8ff7819ea00f0 | 15d465b08cac56e394509bcf8f24764e3dc6ca7d | refs/heads/master | 2023-09-04T07:32:49.822786 | 2023-09-02T13:44:28 | 2023-09-02T13:44:50 | 48,701,889 | 0 | 0 | null | 2019-10-25T09:21:20 | 2015-12-28T16:38:38 | C++ | UTF-8 | C++ | false | false | 2,195 | cpp | // atcoder/typical90/030/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.firs... | [
"johniel.s.m@gmail.com"
] | johniel.s.m@gmail.com |
ed24b44a08c69d856652a436f2dbfc9c2ccb6e45 | 383513e0f782735e4ffb3e94b214172e3280363a | /AGC/021/A.cpp | 18312a73a8b975d6e327f55b73bc38aad94c680e | [] | no_license | face4/AtCoder | e07c123a604f56901b186c41aa318c93b115d8d1 | 9c81387cb0ee7f669b50d5cc591e05c87670ee36 | refs/heads/master | 2021-06-27T01:07:33.806176 | 2020-11-20T03:47:25 | 2020-11-20T03:47:25 | 137,498,533 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | cpp | #include<iostream>
using namespace std;
int just(string x){
int ret = 0;
for(int i = 0; i < x.length(); i++){
ret += x[i] - '0';
}
return ret;
}
int main(){
string s;
cin >> s;
cout << max(just(s), (s[0]-'0'-1) + 9*(int)((s.length()-1))) << endl;
return 0;
} | [
"s1611361@u.tsukuba.ac.jp"
] | s1611361@u.tsukuba.ac.jp |
7c4ec0b465d6dea888413ae01b04768622d09dbb | 8eae6774231f4a313e7aa8ac30d5c678dc1c2a42 | /SWUST OJ/0831-cpp.cpp | 1a05a4dfa88e354417c58e0e73de2cb7299ceb12 | [
"MIT"
] | permissive | windcry1/My-ACM-ICPC | c97b203e5e54d355168ed14db888f4a1b3e6c363 | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | refs/heads/master | 2021-09-06T20:47:56.525749 | 2021-08-22T14:06:10 | 2021-08-22T14:06:10 | 231,622,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,368 | cpp | #include <stdio.h>
#include <iostream>
#include <vector>
#include <math.h>
#include <algorithm>
#include <queue>
#include <string.h>
#include <set>
#include <stack>
#include <stdlib.h>
#include <time.h>
using namespace std;
struct Node
{
int d[2009];
int len;
Node() {memset(d, 0, sizeof(d));}
Node(ch... | [
"lanceyu120@gmail.com"
] | lanceyu120@gmail.com |
26bc84d22135badcfb835fe5836e718bcaade154 | d16985a72e39109c30b1e975007cc1cabe8a6ac8 | /Common/Packets/GCNewItem.h | d2717460eee802de7709bc8106f67daaa95decef | [] | no_license | uvbs/wx2Server | e878c3c5c27715a0a1044f6b3229960d36eff4b4 | 78a4b693ac018a4ae82e7919f6e29c97b92554ab | refs/heads/master | 2021-01-18T00:06:34.770227 | 2013-12-13T09:18:54 | 2013-12-13T09:18:54 | 43,288,843 | 2 | 3 | null | 2015-09-28T08:24:45 | 2015-09-28T08:24:44 | null | UTF-8 | C++ | false | false | 1,800 | h | #ifndef __GC_NEWITEM_INCLUDE__
#define __GC_NEWITEM_INCLUDE__
#include "Type.h"
#include "Packet.h"
#include "PacketFactory.h"
namespace Packets
{
class GCNewItem : public Packet
{
public:
GCNewItem( ){} ;
virtual ~GCNewItem( ){} ;
//公用继承接口
virtual BOOL Read( SocketInputStream& iStream ) ;
... | [
"tangming032@outlook.com"
] | tangming032@outlook.com |
e2aee6322387ee8df9bb17f785a27b90a3db9e1a | 8fce14425aa6d9ccebc4ee8559fd5f0ec935777a | /services/keyboard_native/keyboard_service_impl.cc | 02a805a0830dab4ec319ccff4255a47fcfcc18b0 | [
"BSD-3-Clause"
] | permissive | collinjackson/mojo | 2f1a58f6d329b27bb72b84dfe68e8a5f6680c0f8 | 2e9149e0793538ae69dde234aaf50157f265dcf0 | refs/heads/master | 2021-01-18T02:20:15.162413 | 2015-05-21T19:33:12 | 2015-05-21T19:33:12 | 35,981,668 | 0 | 0 | null | 2015-05-21T00:34:11 | 2015-05-21T00:34:10 | null | UTF-8 | C++ | false | false | 772 | cc | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/keyboard_native/keyboard_service_impl.h"
namespace keyboard {
KeyboardServiceImpl::KeyboardServiceImpl(
mojo::InterfaceRequest<Ke... | [
"anwilson@chromium.org"
] | anwilson@chromium.org |
63f4380edf90a4f0138fdb1e0c4f817ae1688b5e | ef3e5c3268b955babfe30a50224371dcbee555af | /source/lilc_matrix_find_level_set.h | 85ef89017b3687d59fc306806712a80be3c34c05 | [] | no_license | shiwenhe/matrix-factor | 88591e185e5ce1253086118860fa2c778ed5709d | 681fa2a612e9ccf88ab546d810dc84e43106f39b | refs/heads/master | 2020-12-25T04:35:42.414750 | 2012-08-09T08:22:37 | 2012-08-09T08:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | h | // -*- mode: c++ -*-
#ifndef _LILC_MATRIX_FIND_LEVEL_SET_H_
#define _LILC_MATRIX_FIND_LEVEL_SET_H_
template<class el_type>
inline bool lilc_matrix<el_type> :: find_level_set(vector<int>& lvl_set, vector<bool>& visited) {
vector<int> new_set;
for (auto node_it = lvl_set.begin(); node_it != lvl_set.end(); node_... | [
"paul.liu.ubc@gmail.com"
] | paul.liu.ubc@gmail.com |
ed7d810140e02af6ac00bbe3174f79902c07395e | e37bdad8eee22cf859d74c4a841011910c106f70 | /709/D - Recover the String.cpp | d6f83187b7162bde2b2967d8e95361cd27b6ba42 | [] | no_license | ashlamp08/Codeforces | be61c84afe78f0e349ca8793ba7e7e248dd2843f | bf310c2cf36402483517bf312a03b85669c5c4b6 | refs/heads/master | 2021-01-12T17:22:16.613992 | 2016-10-21T10:02:29 | 2016-10-21T10:02:29 | 71,550,410 | 0 | 1 | null | 2016-10-31T20:08:58 | 2016-10-21T09:21:43 | C++ | UTF-8 | C++ | false | false | 661 | cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
ll a00,a01,a10,a11;
cin>>a00>>a01>>a10>>a11;
ll zeroes = (1 + round(sqrt(1+8*a00)))/2;
ll ones = (1 + round(sqrt(1+8*a11)))/2;
if(a01==0 && a10==0)
{
if(a00 == 0)
zeroes = 0;
else
ones = 0;
}
... | [
"dhungana.ashok08@gmail.com"
] | dhungana.ashok08@gmail.com |
074e9cfe908bbc7a73d76d7dde5b4628acd29e87 | 78fb3a6412bd248e8d67b099d967a0b8aa7a76d3 | /src/LogicUnit.cpp | 6449b717b1d9dcb093e86396a0f6e957946ec117 | [
"MIT"
] | permissive | hamadaio/raspberrypi-sonar-car | f53d4a5b54e160a65457d25971ca208a6d60a360 | 91d349c07d6ecaf2448101ecbb5bf48dcf220f6b | refs/heads/main | 2023-04-01T19:11:20.387148 | 2021-04-04T11:16:39 | 2021-04-04T11:16:39 | 354,504,102 | 0 | 0 | null | 2021-04-04T11:16:10 | 2021-04-04T09:28:57 | C++ | UTF-8 | C++ | false | false | 3,043 | cpp | #include "LogicUnit.h"
#define FORWARD 1
#define BACKWARD 0
#define TURNDELAY 50
#define VALID 50
#define RANGEUPPERLIMIT 300
#define RANGELOWERLIMIT 10
#define TURN180 1500
LogicUnit::LogicUnit(){
wiringPiSetup();
startCar();
}
void LogicUnit::startCar(){
//skapa sonar och bil objekt
sona... | [
"hamada@cortex.local"
] | hamada@cortex.local |
3844303616a01c2694c640ded49f4443e66030b0 | d79e64f82fdf87d4337b98e05af4af9a54682feb | /lab_7/1/main.cpp | cfc6fcdf52eef582e17e8a89507578bbe79e9f9f | [
"MIT"
] | permissive | sonnymilton/cpp_labs | 75ebbe7975ac584d832cbc78cbe775cb4e294487 | ebe737cdddab42834af915517560d2020eb7469c | refs/heads/master | 2022-04-05T11:53:46.237566 | 2020-01-24T16:01:26 | 2020-01-24T16:01:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,780 | cpp | #include <iostream>
int main()
{
// 1
static int i = 5;
int *pointerI = &i;
int &refI = i;
static float f = 5.1;
float *pointerF = &f;
float &refF = f;
static char c = 'e';
char *pointerC = &c;
char &refC = c;
void *pointerV = &c;
i = *pointerI + refF;
refF = sta... | [
"sonny@milton.pro"
] | sonny@milton.pro |
39ecc1c3168099384cd5d61ed535ea7b791692f2 | b7836e67bf0c14651bf35015afba13ec5c367086 | /cbx-qt-pro-stub/samptestcao/src/moc/moc_qwt_scale_widget.cpp | c6bf195d294eb82edcf09aea634ed5e286c290e3 | [] | no_license | caobinxin/qt5 | c8e7fd95b8c2189ebb27c5f7d0dcadb979ef49d7 | cf9c04ba239bc6651662c2da9748392ccd496383 | refs/heads/master | 2020-06-16T15:51:37.475883 | 2019-09-28T03:24:02 | 2019-09-28T03:24:02 | 195,627,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,907 | cpp | /****************************************************************************
** Meta object code from reading C++ file 'qwt_scale_widget.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.7)
**
** WARNING! All changes made in this file will be lost!
****************************************************... | [
"caobinxin666@163.com"
] | caobinxin666@163.com |
c650292252c5a8d3dbb4036408ebdd9918972b38 | 7c5d7fb6a64df1a118a64bdf6087ecf395a3a722 | /data/open-Gold/sources/004228-open-2015-274-Gold.cpp | 7ead81a7007e2fd54ab7ac6ed42c6c8537a4f375 | [] | no_license | alexhein189/code-plagiarism-detector | e66df71c46cc5043b6825ef76a940b658c0e5015 | 68d21639d4b37bb2c801befe6f7ce0007d7eccc5 | refs/heads/master | 2023-03-18T06:02:45.508614 | 2016-05-04T14:29:57 | 2016-05-04T14:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,291 | cpp | #include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <stack>
#include <cmath>
#include <algorithm>
#define int unsigned long long int
using namespace std;
main()
{
ios::sync_with_stdio(false);
// cin.tie(NULL);
// ifstream cin("");
// ... | [
"shk.slava@gmail.com"
] | shk.slava@gmail.com |
01d0cc06853c51c8eeb5e0a1facf90e21de8cd51 | ddc94b55010b12be30b92cdc6147da4fc1c37287 | /Bio-Inspired/Project2/Methods.cpp | b3025110cc353f81cf939f1e6f3551104a69d1cd | [] | no_license | pirib/NTNU | 61e1c232b9c0092886f3b156239f0da4a0bfc35d | f71c482cefacab0fb1e30d79c8eb2236f5f00eec | refs/heads/master | 2023-05-03T20:40:37.593711 | 2021-05-24T16:55:13 | 2021-05-24T16:55:13 | 332,446,890 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,025 | cpp | #include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <chrono>
#include <thread>
#include "GA.h"
#include "gfun.h"
using namespace std;
using namespace gfun;
// Brings everything together
void GA::run(string file_name) {
// Reads the specified problem file
read_problem_file(file_na... | [
"212310@usn.no"
] | 212310@usn.no |
cf51ab29f571f17533f91f27156bf231d48acd2a | 1582d21d5246843348c992d8627a9ce939d9c226 | /chess_application/includes/History.h | eee1246b009ddb817d381d8c87d909d99e165131 | [] | no_license | bitdrain/ChessGame | ec18f743d97a8dd196577cdc17acf57c9b136286 | 1293b8b5bf426fb5cc5e68d3355403019b662e7f | refs/heads/master | 2020-04-23T00:07:10.632678 | 2019-02-16T14:35:15 | 2019-02-16T14:35:15 | 170,767,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 199 | h | /*
* History.h
*
* Created on: 16 Feb 2019
* Author: jperez
*/
#ifndef HISTORY_H_
#define HISTORY_H_
class History {
public:
History();
virtual ~History();
};
#endif /* HISTORY_H_ */
| [
"juan-d.perez@analog.com"
] | juan-d.perez@analog.com |
462bbbd20f40c3e486d9382a2be77bb92a064517 | 1c390cd4fd3605046914767485b49a929198b470 | /bzoj/2002.cpp | 8bcb21c34edc7fc9c0c2e25db328d8bc5602f848 | [] | no_license | wwwwodddd/Zukunft | f87fe736b53506f69ab18db674311dd60de04a43 | 03ffffee9a76e99f6e00bba6dbae91abc6994a34 | refs/heads/master | 2023-01-24T06:14:35.691292 | 2023-01-21T15:42:32 | 2023-01-21T15:42:32 | 163,685,977 | 7 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 832 | cpp | #include<stdio.h>
#include<iostream>
using namespace std;
const int b=700;
int n,i,k,x,y,z,a[200020],w[200020],t[200020],r[200020];
void mk(int x, int y)
{
t[x]=a[x]=y;
w[x]=1;
if(r[t[x]]==r[x])
{
w[x]+=w[t[x]];
t[x]=t[t[x]];
}
for(i=x-1;i>=0&&r[i]==r[x];i--)
if(r[a[i]]==r[x])
{
w[i]=1... | [
"wwwwodddd@gmail.com"
] | wwwwodddd@gmail.com |
e4bd06a5e35560b707b176d4d4dee22d14056c7b | 32b934cb3ef99474b7295da510420ca4a03d6017 | /GamosGeometry/src/GmParallelWorldCreator.cc | 48634516a22ce756f1e808ee1996f13479af00e1 | [] | no_license | ethanlarochelle/GamosCore | 450fc0eeb4a5a6666da7fdb75bcf5ee23a026238 | 70612e9a2e45b3b1381713503eb0f405530d44f0 | refs/heads/master | 2022-03-24T16:03:39.569576 | 2018-01-20T12:43:43 | 2018-01-20T12:43:43 | 116,504,426 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,063 | cc | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The GAMOS software is copyright of the Copyright Holders of *
// * the GAMOS Collaboration.... | [
"ethanlarochelle@gmail.com"
] | ethanlarochelle@gmail.com |
28a9362f1256f60bf56de800ec08542888570694 | 569aa3b02ea6e6bfa7b01701ecd2f7a31eb95310 | /tool/kodi-txupdate/src/ProjectHandler.cpp | 25ee287fe74035a453fa39e138d79eba6c8b6901 | [] | no_license | isabella232/translations-4 | fd333a767def4807eed66a55c75abea345806d82 | d96e67e0e9db0d1c7991f99303e9842b5848c065 | refs/heads/master | 2023-04-02T03:11:10.249429 | 2021-03-27T06:25:18 | 2021-03-27T06:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,613 | cpp | /*
* Copyright (C) 2014 Team Kodi
* http://www.xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* T... | [
"transifex.translator@gmail.com"
] | transifex.translator@gmail.com |
7777324a295e83182372368453ffb0546d6af4e5 | 09d4a5e0cdfca682a97071fdff92ad06fe6cf363 | /P144SUMA-src.cpp | 3a3c0926a38a876cbc17f5fae9baee2fa33c503f | [] | no_license | capcoders/SPOJ_PTIT | 026463ac24744b3a8116b0153855b1c4595409bb | 5c65a961132cca252642fd71f71f92eaf35282d9 | refs/heads/master | 2020-04-16T16:58:04.797328 | 2018-05-25T12:21:44 | 2018-05-25T12:21:44 | 165,757,372 | 1 | 0 | null | 2019-01-15T00:32:44 | 2019-01-15T00:32:43 | null | UTF-8 | C++ | false | false | 328 | cpp | #include<iostream>
#include<math.h>
#include<string.h>
using namespace std;
char s[2];
long a[100002],f[100002],n;
main()
{
cin>>n;
for (long i=1;i<=n;i++)
{
cin>>s;
if (strcmp(s,"10")==0) a[i]=1; else a[i]=2;
}
f[1]=1;;
for (long i=2;i<=n;i++)
if (a[i]==a[i-1]) f[i]=f[i-1];
else f[i]=f[i-1]+1;
cout<<... | [
"noreply@github.com"
] | capcoders.noreply@github.com |
3e87fdc4bd6890fe37e554bac23a83afbdc8f7d4 | e400052d225fed5ad737e2d6ec790098c2c89dd2 | /problem/146_LRU_Cache.cpp | 1b123ade213dc8a8a0fe1de92b8209f84a471756 | [] | no_license | abysmalocean/LeetCode | 748466ce438ab796f8b51546e8c1894362d08c74 | e10fd43cb77bcd1a550c97d313a5014ee4add571 | refs/heads/master | 2021-07-25T14:39:48.271073 | 2020-10-30T21:12:03 | 2020-10-30T21:12:03 | 222,604,608 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,998 | cpp | struct node
{
int val;
int key;
node* next;
node* prev;
node (int _val, int _key) :
val(_val), key(_key)
{
next = nullptr;
prev = nullptr;
}
};
class LRUCache {
unordered_map<int, node*> map;
node* head;
int cap = 0;
int size = 0;
node... | [
"liangxuav@gmail.com"
] | liangxuav@gmail.com |
ed01c5e16c0fdc539bfdcedd0519b70eda1aa064 | 4232a8fe282df76d500d0ba0aa9d6acf8d3c3169 | /.vim/tags/cpp_src/parallel/algorithmfwd.h | 04fdcc6a63f16fb522254b7d17cdac3e6c06e962 | [] | no_license | umbraclet16/MyLinuxConfig | cdb5f53ee7d8c89767dbce1ae2237e4cad5e875d | 24955a7bfda0f946fbd9d4969fafe052d1593d0f | refs/heads/master | 2021-01-12T12:41:25.224742 | 2017-10-26T05:54:10 | 2017-10-26T05:54:10 | 69,091,104 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,177 | h | // <parallel/algorithm> Forward declarations -*- C++ -*-
// Copyright (C) 2007-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the terms
// of the GNU General Public License as published by the Fre... | [
"448101470@qq.com"
] | 448101470@qq.com |
64bb88a61830773b05fca208df8609ea347be1d7 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/hunk_5839.cpp | 0b7e2b3623eba5091b7f370811982712e8a2209d | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 296 | cpp | if (S_ISLNK(st.st_mode)) {
struct strbuf sb = STRBUF_INIT;
if (strbuf_readlink(&sb, name, st.st_size) < 0)
- die("readlink(%s)", name);
+ die_errno("readlink(%s)", name);
prep_temp_blob(name, temp, sb.buf, sb.len,
(one->sha1_valid ?
one->sha1 : null_sha1),
| [
"993273596@qq.com"
] | 993273596@qq.com |
946d49ed9d019e5ce0226237e6d55e1d3db30092 | d215808c61ada571c5c5465b1e8db1bda4bcff96 | /src/gui/nanogui/popupbutton.cpp | 4500d01f8028f19577508f608de2d10f1388e05e | [] | no_license | Reymenta-Visuals/ciNanoGui | af811555a0046f0d165e26cfa88511e3fb6c70c0 | 12ac70f0a7c5a76b8da2424c85def9debda584cf | refs/heads/master | 2020-04-02T01:00:00.186157 | 2015-10-29T03:16:58 | 2015-10-29T03:16:58 | 45,169,628 | 1 | 0 | null | 2015-10-29T08:18:27 | 2015-10-29T08:18:27 | null | UTF-8 | C++ | false | false | 2,112 | cpp | /*
src/popupbutton.cpp -- Button which launches a popup widget
NanoGUI was developed by Wenzel Jakob <wenzel@inf.ethz.ch>.
The widget drawing code is based on the NanoVG demo application
by Mikko Mononen.
All rights reserved. Use of this source code is governed by a
BSD-style license that can be fou... | [
"github@hurleyworks.com"
] | github@hurleyworks.com |
8bdd6406fccd57a411c778e7add56155e9387949 | ca09f8b0ba7a5fd0b18243b244783520fc379aa3 | /schwarzwald/util/debug/ThroughputCounter.h | f3c674faae918f30b35564c090ab6494185e5437 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | AceBaby/schwarzwald | 48ec1d72af27da0c840cd3c318567d174d783783 | e3e041f87c93985394444ee056ce8ba7ae62194b | refs/heads/master | 2023-03-07T00:26:35.186443 | 2021-02-24T07:45:15 | 2021-02-24T07:45:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,119 | h | #pragma once
#include <chrono>
#include <list>
struct ThroughputCounter
{
void push_entry(size_t count,
std::chrono::high_resolution_clock::time_point timepoint =
std::chrono::high_resolution_clock::now());
double get_throughput_per_second() const;
private:
struct Entry
... | [
"pascal.bormann@igd.fraunhofer.de"
] | pascal.bormann@igd.fraunhofer.de |
371110b1125b1110aa806361124abffb4eacd865 | f741c2ecb0d2f131ddee85ed4787774dfe37c2d1 | /Project Euler/1.cpp | 3b6b69af39ea76e15f40bbcd7daf1948c51f1816 | [] | no_license | Shekharrajak/Online-Judge-Solutions | 06e16cf624a9bb712d42f7c7ff7aa419193c9457 | ae6104ee5b4bf6bb8ad216c18509e9c8a57254cf | refs/heads/master | 2021-01-24T19:51:46.485070 | 2014-11-22T21:33:48 | 2014-11-22T21:33:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 168 | cpp | #include <iostream>
using namespace std;
int main() {
int sum=0;
for(int i=1;i<1000;i++){
if(i%3==0 || i%5==0 ){
sum=sum+i;
}
}
cout<<sum;
return 0;
}
| [
"shekharstudy@ymail.com"
] | shekharstudy@ymail.com |
7cb5b17fc44249f8efd6c07cfa616e902d8c73ff | 4eeed332c03ce7586303d79119998d9ec6bbc5e2 | /item.cpp | fe8824b8f709b43d8fa0d4ff2df4d9072803e40b | [] | no_license | alexandre-solovyov/phv | 79df849ef64abb925555d99da820ba21c4c46b2b | cbce575939e0da7f2e57ad35df29f21ccde695c6 | refs/heads/master | 2020-04-05T09:13:43.056488 | 2018-11-09T08:08:45 | 2018-11-09T08:08:45 | 156,747,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,971 | cpp | #include <item.h>
#include <QPainter>
const double PI = 3.14159265;
void replaceHueI(QImage& theImage, int theHue, double theSatPart=1.0, double theLightPart=1.0)
{
QImage aNormalized = theImage.convertToFormat(QImage::Format_ARGB32);
int n = aNormalized.width() * aNormalized.height();
uchar* ptr0 = aNorm... | [
"alex"
] | alex |
e8d6b8f3b228f13b76ad49a1cfbf08a9cd0e1bc9 | 07b7b00568d9fa62c80dda7ae41fe8c1b8838c28 | /recsys/distributedVersion/recsys__3.cpp | 9210861ceda440db596390402ab5ee4ceeca1fbf | [] | no_license | chenyb59/Machine-learning | 65dda9c1c87f5d066d260e9b5909fe57eb1921cd | b2f9bb337d5083cd888a3e6e825e049fa53a615e | refs/heads/master | 2020-04-15T06:11:22.338122 | 2019-03-02T15:41:41 | 2019-03-02T15:41:41 | 164,451,712 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,268 | cpp | // this version is deprecated.
#include <algorithm>
#include <cmath>
#include <string>
#include <utility>
#include <vector>
#include <map>
#include "boost/tokenizer.hpp"
#include "core/engine.hpp"
#include "lib/ml/data_loader.hpp"
#include "lib/ml/feature_label.hpp"
using husky::lib::Aggregator;
using husky::lib::A... | [
"morreen_59@outlook.com"
] | morreen_59@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.