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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
541cc7132775110dec219e5dc65eeebd54460569 | 0069bbe33092a7706d3f20778a289fb4977ee2af | /SonyCamera_Library/stdafx.cpp | dc8828b9dda6e1fba60506e334696ee97b7cf8b4 | [] | no_license | YangQun1/SonyCamera | c0560fd6a502d0405e36172a58cf964d2e00ee2f | c070b7c984f4bcc2dfa012d98b28ef1a68925a9b | refs/heads/master | 2020-03-22T23:33:33.311339 | 2018-11-16T08:48:02 | 2018-11-16T08:48:02 | 140,817,390 | 2 | 2 | null | null | null | null | GB18030 | C++ | false | false | 271 | cpp | // stdafx.cpp : 只包括标准包含文件的源文件
// SonyCamera_Library.pch 将作为预编译头
// stdafx.obj 将包含预编译类型信息
#include "stdafx.h"
// TODO: 在 STDAFX.H 中
// 引用任何所需的附加头文件,而不是在此文件中引用
| [
"1921296014@qq.com"
] | 1921296014@qq.com |
cba5ebca6e2c600f6567b6fcb7371bff60eaa2f3 | 96811480cd9a58340343eebc4768e08f517bfe52 | /Data Structures and Algorithms/Sorts/mergeSortManyVectors.cpp | b7029f09da306c7c40af3b73184d133b198ea1d4 | [] | no_license | vesk4000/Informatics | 1b34deadadc4d76196be6b460575a4366c39d059 | a3dbe2c94349ab6c5a0739e4309869aad5a4341a | refs/heads/master | 2022-03-30T10:15:31.831411 | 2022-02-05T17:11:26 | 2022-02-05T17:11:26 | 125,365,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,466 | cpp | #include <iostream>
#include <queue>
#include <vector>
using namespace std;
vector <int> msMerge(vector <int> q1, vector <int> q2)
{
vector <int> res;
while(q1.size() != 0 || q2.size() != 0)
{
if(q1.size() == 0)
{
res.push_back(q2.front());
q2.erase(q2.begin());
}
else if(q2.size() ==... | [
"veskmail@gmail.com"
] | veskmail@gmail.com |
1f95ff5c7e55f7642a318e81157fff8a0c3c056e | a9c65965f344b07b2d7982610542178d35d1eedc | /templates/main.cpp.log.tpl | f33a3fa176ea1be6f8caf136997b86fe65a940c2 | [] | no_license | iuyo5678/emacs_config | b788732e5b0d02a75023a9609336814ddd20d796 | ec9575cc20eb944fa71b028d545813d7098a61b8 | refs/heads/master | 2023-07-29T15:11:43.169290 | 2023-07-18T10:07:03 | 2023-07-18T10:07:03 | 13,983,356 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,815 | tpl | /* -*- C++ -*- */
// Time-stamp: <2013-09-06 00:42:33 Friday by zhangguhua>
/**
* @file (>>>FILE<<<)
* @author (>>>USER_NAME<<<)
*/
#include <stdlib.h>
#include <getopt.h>
#include <iostream>
#include <log4cxx/logger.h>
using namespace std;
using namespace log4cxx;
static void usage(int code = 1);
static Logg... | [
"iuyo5678@gmail.com"
] | iuyo5678@gmail.com |
236929f4ac20eac885750ca4f0351dbc04b5531b | 4af5c63f5801b8d5d356a53bca20178b7832317b | /JZO_ASCII_ROUGELIKE/src/Camera/Camera.cpp | 0a5ba8d6d60a914b3ef0487d951183574e819b2c | [] | no_license | Kacp3r3/ASCII_RPG | 31530c46e0e00f28f41240b9c9b44177d271befc | 91f1d6132a9d8b664e1f012682c058b2ce6c7bd2 | refs/heads/master | 2020-05-26T23:53:23.697341 | 2019-05-30T20:37:05 | 2019-05-30T20:37:05 | 188,416,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | cpp | #include "Camera.h"
Camera::Camera(double width, double height)
:
wFov(width,height)
{
}
Camera::~Camera()
{
}
Vec2d Camera::getFov()
{
return wFov;
}
void Camera::adjustFov(double w, double h)
{
if (wFov._x > w) wFov._x = w;
if (wFov._y > h) wFov._y = h;
}
| [
"kacper.sawicki.it@gmail.com"
] | kacper.sawicki.it@gmail.com |
af88fc5a7ff818db11b45ad5a05bf4fdc001a841 | bc997f47b4cffef395f0ce85d72f113ceb1466e6 | /KOI/koi09c.cpp | d0b7a916bf04ca4950715ecf39dabdce3b6f57d8 | [
"LicenseRef-scancode-public-domain"
] | permissive | koosaga/olympiad | 1f069dd480004c9df033b73d87004b765d77d622 | fcb87b58dc8b5715b3ae2fac788bd1b7cac9bffe | refs/heads/master | 2023-09-01T07:37:45.168803 | 2023-08-31T14:18:03 | 2023-08-31T14:18:03 | 45,691,895 | 246 | 49 | null | 2020-10-20T16:52:45 | 2015-11-06T16:01:57 | C++ | UTF-8 | C++ | false | false | 4,015 | cpp | #include <bits/stdc++.h>
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
using namespace std;
typedef long long lint;
typedef pair<lint, lint> pi;
const int mod = 1e9 + 7;
int n, k;
vector<vector<pi>> gph;
vector<int> deg;
vector<int> ans;
pi dfs(int x, int p = -1){
lint closest = 1e18;
lint f... | [
"koosaga@gmail.com"
] | koosaga@gmail.com |
94c97ff0388aca6005a7bbcde078c97e9b00d81b | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /tsf/src/v20180326/model/DescribeInvocationMetricScatterPlotRequest.cpp | aae356a63659c9ee12e94beb908cceb8f2ff17bb | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 6,025 | cpp | /*
* 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
... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
a9c7e77dd24a0570b1b1391c150550f806b3c652 | dff8a221638932704df714b30df53de003342571 | /code_modified_20150323/6/33.cpp | 2bb16f7fd42f7abd6c2a7b9eacd719ac8e51ed5a | [] | no_license | DevinChang/cpp | 1327da268cbbde4981c055c2e98301d63e9ca46b | f35ee6f7b2d9217bd2d40db55a697330aeffc7e8 | refs/heads/master | 2021-01-20T13:55:55.399888 | 2017-05-18T08:01:15 | 2017-05-18T08:01:15 | 90,538,499 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | cpp | #include <iostream>
#include <vector>
using namespace std;
//递归函数输出vector<int>的内容
void print(vector<int> vInt, unsigned index)
{
unsigned sz = vInt.size();
if (!vInt.empty() && index < sz)
{
cout << vInt[index] << endl;
print(vInt, index + 1);
}
}
int main()
{
vector<int> v = {1, 3... | [
"DevinChang@126.com"
] | DevinChang@126.com |
7bf2ba699a257803ada63097d99423bc0e542e0a | bae3cce507524b9d5b1f5fc5d3a3bb489f95b8df | /Contests/Codeforces/Ed-R-106/1499E.cpp | 2e0a36e7d3ffeb8e1bb7bf672d3937c793ca886d | [] | no_license | tauhrick/Competitive-Programming | 487e0221e29e8f28f1d5b65db06271f585541df8 | abcdb18c3e0c48ea576c8b37f7db80c7807cd04c | refs/heads/master | 2023-07-11T05:37:28.700431 | 2021-08-30T15:40:12 | 2021-08-30T15:40:12 | 193,487,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,553 | cpp | #ifndef LOCAL
#include <bits/stdc++.h>
using namespace std;
#define debug(...) 42
#else
#include "Debug.hpp"
#endif
template <uint32_t mod>
class Modular {
public:
Modular(int64_t _n = 0) : n(uint32_t((_n >= 0 ? _n : mod - (-_n) % mod) % mod)) {}
uint32_t get() const { return n; }
bool operator==(const Modular... | [
"chirag11032000@gmail.com"
] | chirag11032000@gmail.com |
dd07b2f25d2624469dfd58789a191a1844caec82 | 260e5dec446d12a7dd3f32e331c1fde8157e5cea | /Indi/SDK/Indi_0701_MardetReinforcements_classes.hpp | ae87ebb633b55baee99ecaf7843d9aa6a47c9f2a | [] | 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 | 720 | hpp | #pragma once
// TheOuterWorlds SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "Indi_0701_MardetReinforcements_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//-------------------------------------------------------------------------... | [
"peterpan0413@live.com"
] | peterpan0413@live.com |
901eb5e863a929b5781e8dd73efe03c5845c3daa | fcc170818be293fbf648e9301f39ac13631ed7cc | /AllInOne/PushFramework/include/BroadcastManager.h | db9a0c67b5c1844f422a5ab0b3ed9d5752d0f696 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zj19880805/HBnews | 92f933ca3b4e971af6b98c544b0f42f261e1d6ea | 8bdb29b85c2047f3d3709511b10b580b65b48756 | refs/heads/master | 2021-01-10T21:26:17.860116 | 2012-08-09T15:46:03 | 2012-08-09T15:46:03 | 5,325,350 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,191 | h | /********************************************************************
File : BroadcastManager.h
Creation date : 2010/6/27
License : Copyright 2010 Ahmed Charfeddine, http://www.pushframework.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in co... | [
"416671186@qq.com"
] | 416671186@qq.com |
7ba3513f3f12f7e9dd5899d544ddc1cc075e35a9 | d6659a87e978cd848a3c4c6825a807e6ff9c08ea | /src/XD75_Wireless_and_Trackball/XD75@Master/keymap.h | a9446dc7e6ddbfa3364076be5bf9c91f301a80da | [] | no_license | ogatatsu/Oreore-HID-Firmware | 67e37cba97f4f05727c3f8f91db7c941843a86d8 | 4055f1198786a4e047061a7959538844af969b06 | refs/heads/master | 2022-12-13T04:31:59.023265 | 2021-11-30T11:51:53 | 2021-11-30T11:51:53 | 187,301,696 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,257 | h | #include "BleCommandDsl.h"
#include "CommandDsl.h"
#include "KC.h"
using namespace hidpg;
/* ID
* ,--------------------------------------------------------------------------------------------------------.
* | 1 | 6 | 11 | 16 | 21 | 26 | 31 | 36 | 41 | 46 | 51 | 56 | 61 | 66 | 71 ... | [
"ogwrtty@gmail.com"
] | ogwrtty@gmail.com |
eb6fe0902aaed69b86a6adce063a659866c6e421 | db0c18d43ed13ecf36553adf083375658db3cc31 | /code_warehouse/Dinic.cpp | 60ee6f2513d625b4017a0837282e15c940d16f94 | [] | no_license | hjsjhn/sysconkonn.github.io | ad14cedcaa13ce83d91bfec43fe446195a2c9f54 | cad2ee611282c7f587175c6b18ce577676dbe0bb | refs/heads/master | 2021-09-10T23:25:28.698144 | 2018-04-04T07:04:21 | 2018-04-04T07:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,646 | cpp | #include <cstdio>
#include <algorithm>
#include <cstring>
#include <vector>
#include <queue>
#define MAX_N 10001
#define INF 10000001
using namespace std;
struct Edge {
int from, to, cap, flow;
Edge(int u, int v, int c, int f) : from(u), to(v), cap(c), flow(f) {}
};
vector<Edge> edges;
vector<int> G[MAX_N];
int N,... | [
"ssysccon@qq.com"
] | ssysccon@qq.com |
dabb41ffa82800db59ecd461f237ef5ff9126ef9 | e827a15379f8c9a273533c2599955dd550ddfd8d | /OSLab2/Process.h | 7cf7b0a9e7fe05e53fbae06f824f9be9b09663f3 | [] | no_license | yuhanzz/OSLabs | 51e567b0da76866e1b0122c489a6f4856bac465d | 469e935eb64f4e95a28ec09d14de5ca80ee963bf | refs/heads/main | 2023-02-02T20:52:43.665686 | 2020-12-21T02:35:13 | 2020-12-21T02:35:13 | 323,206,425 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | h | #ifndef PROCESS_H_
#define PROCESS_H_
#include <iostream>
extern int maxprio;
typedef enum
{
CREATED,
READY,
RUNNING,
BLOCKED
} ProcessState;
class Process
{
public:
// global for all processes
static int available_pid;
// static
int pid;
int static_priority;
int arrive_time... | [
"yuhan.zhou98@gmail.com"
] | yuhan.zhou98@gmail.com |
a12fa554ec3d11affcb2d3f90e73c9347b9744d8 | eab73a7acf3194b5d9f095aade9ca83ba2e9c5cb | /src/Pegasus/Security/UserManager/UserManager.h | 5cd417993d1aee7e68bed815b422d2eda0edda39 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | edwardt/Pegasus-2.5 | f1af8e7c546d1ae50bbcbd0b5af752b111b5d895 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | refs/heads/master | 2022-03-17T17:34:46.748653 | 2013-07-23T13:21:50 | 2013-07-23T13:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,691 | h | //%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Cor... | [
"ncultra@gmail.com"
] | ncultra@gmail.com |
3f6b48a9efa88e63b9b36ef585a19ec27cf8c882 | a1a8b69b2a24fd86e4d260c8c5d4a039b7c06286 | /build/iOS/Release/include/Fuse.Gestures.Scroller.h | 64361823763897c8c4eb1ce509a45006bd47d3f2 | [] | no_license | epireve/hikr-tute | df0af11d1cfbdf6e874372b019d30ab0541c09b7 | 545501fba7044b4cc927baea2edec0674769e22c | refs/heads/master | 2021-09-02T13:54:05.359975 | 2018-01-03T01:21:31 | 2018-01-03T01:21:31 | 115,536,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,962 | h | // This file was generated based on /usr/local/share/uno/Packages/Fuse.Controls.ScrollView/1.4.2/Scroller.uno.
// WARNING: Changes might be lost if you edit this file directly.
#pragma once
#include <Fuse.Behavior.h>
#include <Fuse.Binding.h>
#include <Fuse.INotifyUnrooted.h>
#include <Fuse.Input.IGesture.h>
#include ... | [
"i@firdaus.my"
] | i@firdaus.my |
8717f8100966c508cab82e8b980ca768c1f86303 | e520fdd4b01e2133b9951c3d4516e9cb95d67ca0 | /include/ecs/system/SystemUpdater.hpp | 4c90b791cbfed902beb855213268d1c94818ab45 | [] | no_license | Hazurl/ECS | 08444cbb89d2c09edea68089a6a425b385f0749a | 5caa25a21485c7b7431b284d0065308dcdb6a08d | refs/heads/master | 2021-04-26T08:47:00.920879 | 2017-11-20T17:10:03 | 2017-11-20T17:10:03 | 106,946,293 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,681 | hpp | #pragma once
#include <ecs/system/ArgsGetter.hpp>
#include <ecs/system/MethodCaller.hpp>
#include <ecs/Config.hpp>
#include <ecs/container/Tuple.hpp>
ECS_BEGIN_NS
template<typename _Systems, typename _EntityController, typename _TagController>
class SystemUpdater {
public:
using Systems = _Systems;
using Sy... | [
"ricoujules69@gmail.com"
] | ricoujules69@gmail.com |
e39d8be4b9f2d5c194c99a3b432e68d2553cc25b | 962213848e5f4989c2f1b692ef9baa604b2c3152 | /508.cpp | 725a6b35860b5b25bf1a3413f83ad85215841622 | [
"MIT"
] | permissive | BYOUINZAKA/LeetCodeNotes | bfc9634bf538b711edefcd7e38a383b625744bda | 48e1b4522c1f769eeec4944cfbd57abf1281d09a | refs/heads/master | 2022-12-02T14:12:14.855840 | 2020-08-22T10:41:06 | 2020-08-22T10:41:06 | 283,944,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 910 | cpp | /*
* @Author: Hata
* @Date: 2020-06-09 08:22:37
* @LastEditors: Hata
* @LastEditTime: 2020-06-09 08:42:34
* @FilePath: \LeetCode\508.cpp
* @Description: https://leetcode-cn.com/problems/most-frequent-subtree-sum/
*/
#include "leetcode.h"
class Solution
{
public:
std::vector<int> findFrequentTreeSum(TreeNode... | [
"2606675531@qq.com"
] | 2606675531@qq.com |
4389f67a31ac805784dd1f596c6b06d2169b9194 | 1a6736e0944be96eddbcc88f278352ce3f9eeac5 | /BZOJ4196.cpp | b5931e6ab03c3ad44582ff0ab8f859678440aec8 | [] | no_license | wxy-2015/Problems | 333c39490b29baf6471f080a4bac2717edde3339 | ef886faad2ee29c6ddba74067c95a4306b0768ef | refs/heads/master | 2021-01-21T12:59:29.550816 | 2016-05-03T01:51:26 | 2016-05-03T01:51:26 | 53,482,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,837 | cpp | #include <cstdio>
#include <cstdlib>
#define MAXN 100010
#define lson (n << 1)
#define rson (lson | 1)
#define ml ((l + r) >> 1)
#define mr (ml + 1)
static struct
{
int v, n;
} Gr[MAXN];
static int fa[MAXN], sz[MAXN], son[MAXN];
static int top[MAXN], end[MAXN], adr[MAXN];
static int head[MAXN], STr[4 * MAXN], tag[4 *... | [
"wxy_2015@yahoo.com"
] | wxy_2015@yahoo.com |
8b37a227371935c2572e0c646aeb3eb42f57c948 | 890960ef881e3da2f4486e56e33c1834bc64023c | /ur_rtde/include/ur_rtde/dashboard_client.h | ef5ac523099c264af6b7f7d7f1a0ddaf2c5a5766 | [
"MIT"
] | permissive | haukri/RobotSystemDesign | 0728c80d4ca392c467b1bfd22efe2ca467217c0b | 4627fbe606881e07a69eec084f76a44e83e7eeb9 | refs/heads/master | 2022-12-16T02:07:44.875986 | 2019-11-28T11:00:22 | 2019-11-28T11:00:22 | 209,637,321 | 1 | 0 | null | 2022-12-11T07:18:15 | 2019-09-19T19:52:28 | C++ | UTF-8 | C++ | false | false | 1,921 | h | #ifndef RTDE_DASHBOARD_CLIENT_H
#define RTDE_DASHBOARD_CLIENT_H
#include <ur_rtde/rtde_export.h>
#include <boost/array.hpp>
#include <boost/asio.hpp>
#include <string>
#include <ur_rtde/dashboard_enums.h>
namespace ur_rtde
{
class DashboardClient
{
public:
RTDE_EXPORT explicit DashboardClient(std::string hostname... | [
"haukzinn@gmail.com"
] | haukzinn@gmail.com |
4a6f4200b4168378a0b52b95cc83e3898dbf346f | f2a473b35198a8218246d6b064b497c6b74aea09 | /imx6u_pos/terminalProject/login.cpp | 50eaca4ad7a51f8da430ef9eac0c6546cb795839 | [] | no_license | mrj0123/imx6ul | 86d00c6737600d8bebc08d8d9a18415d1510c6c6 | 7dd9c9cee70c5566aa279c16f6e81160b98b834b | refs/heads/master | 2020-09-13T15:01:57.794923 | 2020-02-20T01:22:17 | 2020-02-20T01:22:17 | 222,823,423 | 0 | 0 | null | 2019-11-20T01:23:16 | 2019-11-20T01:23:15 | null | UTF-8 | C++ | false | false | 3,708 | cpp | #include "login.h"
#include "ui_login.h"
#include "qmessagebox.h"
#include <QTimer>
login::login(QWidget *parent) :
QDialog(parent),
ui(new Ui::login)
{
ui->setupUi(this);
ui->lineEdit_password_login->setEchoMode(QLineEdit::Password);//设置输入密码框
ui->label_erroNote->hide();//错误提示框
ui->lineEdit_pas... | [
"54297818+mrj0123@users.noreply.github.com"
] | 54297818+mrj0123@users.noreply.github.com |
e78aa9d71f5c5d1964757ee5a0489c2ec3c9f17f | 846a7668ac964632bdb6db639ab381be11c13b77 | /android/frameworks/base/cmds/bootanimation/bootanimation_main.cpp | fe711c6b78d3bfbc914bbfa77c4b295525e6f22c | [
"LicenseRef-scancode-unicode",
"Apache-2.0"
] | permissive | BPI-SINOVOIP/BPI-A64-Android8 | f2900965e96fd6f2a28ced68af668a858b15ebe1 | 744c72c133b9bf5d2e9efe0ab33e01e6e51d5743 | refs/heads/master | 2023-05-21T08:02:23.364495 | 2020-07-15T11:27:51 | 2020-07-15T11:27:51 | 143,945,191 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,278 | cpp | /*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... | [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
859b8aff10b7d31f621b1f05a44491d3eb7740b4 | 5bffd12f04f4323de6dd4059964da16ed3bca762 | /clients/email_sender/vmime/libvmime-0.9.1/src/utility/encoder/uuEncoder.cpp | dfb15c83bd03621499c76c49c6805ad258e85468 | [] | no_license | darknebuli/darknebuli-RM | 08b40b361d887f5c2a8f8a368d090559c2c9099b | a8b1eda47b03914a3f50d3a9d3c40cbefb2d1efc | refs/heads/master | 2016-09-06T13:13:43.134624 | 2012-11-08T20:39:38 | 2012-11-08T20:39:38 | 7,098,387 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,855 | cpp | U2FsdGVkX19hdzQ1S01qQhoPZfgXwSg1a7pooFbiVSGbyiSDhge9wSKz+ngmF0+9
+X1AeMAgrfzbqiNKUSy9BiaIaIyjk7KS4QcuJwMwfiie4sjfiBP8AznYx5vvDAQJ
zK6mXc45hoyd+OidcOWXFJxfoRW+IjTEve9Fy3UDfMkFINKKSZUomyPZMYs30hZp
ENN8GAbvLiQSzW/QrdyKvFaADzxQgYRWkL50zAG17cBZhLEC78OB13RR+2BPzSoY
gwqnVTsYIEcrb7PwdNwUvQuWc9jNqCoi+kZOCUC6Cetn0R8OJB7KlrUhuJT8... | [
"charles@rhizometric.com"
] | charles@rhizometric.com |
db4c738a2b26c83a1615aae4fbad7fd7ce0da2c8 | 3e693d5638100d0a2c9625de77641a96075726ab | /RobotControl/JyRobotControl/MovingTask_Edge_Along.cpp | f9b030732487ef9b7a11dce22bac6cad90433bfb | [] | no_license | zhengjs/JoYoung | a138d397f51a71319bbc9c29d9bf5665314fabf3 | 89f2a75686a0373a2121d5fe6e7450ca899fa834 | refs/heads/master | 2021-01-17T08:27:55.190372 | 2016-07-07T05:13:26 | 2016-07-07T05:13:26 | 62,122,801 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,264 | cpp | #include "stdafx.h"
#include "MovingTask_Edge_Along.h"
#include "MovingPlan_Base.h"
const static int Speed_Default = 120;
const static int Differential_Max = 12;
void MovingTask_Edge_Along::taskPlay()
{
JoyoungRobot* pRobot = m_pPlanParent->planManager()->robot();
if (!pRobot)
return;
... | [
"zheng_js@126.com"
] | zheng_js@126.com |
cd451031fa37b9814907bdbff2875c684f1f2439 | b3cebb6540be701d0df9a330fab5a4c9bfb24c6d | /cppProjects/cdr/cdr/src/cdr_converter.cpp | faad425001d0457dcb95bd6943cb8870291a9daf | [] | no_license | SivanTelTzur/projects | cd97662164127033a462c607cf2d295eee9341a1 | 8f49857c61fe64abecdf82bb84d82b4c0c83b3b9 | refs/heads/main | 2023-03-31T01:06:57.716591 | 2021-04-04T10:12:51 | 2021-04-04T10:12:51 | 344,538,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 827 | cpp | #include "cdr_converter.hpp"
#include <stdlib.h>
namespace advcpp
{
namespace cdr_converter
{
Subscriber CdrToSubscriber(const Cdr& a_cdr)
{
Subscriber newSub;
newSub.imsi = a_cdr.imsi;
newSub.msisdn = a_cdr.msisdn;
if (a_cdr.usageType == "MOC"){
newSub.voiceOut = std::strtol(a_cdr.durat... | [
"tz.sivan@gmail.com"
] | tz.sivan@gmail.com |
d64f37d7e6180b18bc7b609998663e00fd595599 | 0b472fce7b920d5b6e301dc1e26169ae6f08b070 | /303 Range Sum Query Immutable/RangeSumQuery-Immutable.cpp | ca82b15c3e1913d409de15de6836a24180958fd6 | [] | no_license | davidchai21/leetcode-solutions | 5cf9ff520910c8f28a300e3041e78c075c93e624 | 3b0b29e269214dd9c2660ddd81d73b4c96fdcb50 | refs/heads/master | 2021-01-19T09:04:49.975016 | 2018-02-06T06:14:16 | 2018-02-06T06:14:16 | 87,719,872 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | class NumArray {
public:
NumArray(vector<int> nums) {
a=nums;
for (int i=1;i<nums.size();i++)
{a[i]+=a[i-1];}
}
int sumRange(int i, int j) {
return a[j]-a[i-1];
}
private:
vector<int> a;
};
/**
* Your NumArray object will be instantiated and called as such:
* ... | [
"rchai@email.wm.edu"
] | rchai@email.wm.edu |
51beefedaa0439d96b84707a0605eccce40ec0ba | 41237f66892779bd7bd547df56c778cad9a65265 | /main.cpp | 600d6047d5b216cb23849749f62c6a54a698798b | [] | no_license | lijialin92/Cpp-Primer-5th-Ch13 | c9f422945d7e0f71b17d16f4f7a08a3ff5c6965f | 0c4d47a9ee4e7b9708dc732b672cf4ac4a922cff | refs/heads/dev | 2022-11-10T06:05:39.117455 | 2020-06-24T18:13:37 | 2020-06-24T18:13:37 | 272,928,336 | 0 | 0 | null | 2020-06-19T10:41:16 | 2020-06-17T09:08:39 | C++ | UTF-8 | C++ | false | false | 17,854 | cpp | #include <iostream>
#include <vector>
#include <memory>
#include <algorithm>
#include <set>
#include "StrVec.h"
/**exercise 13.1
* 拷贝构造函数的第一个参数是自身类类型的引用,之后的参数都要有默认值。
* 当需要拷贝初始化的时候用到它。以下5种行为会用到拷贝初始化:
* 1. 用=定义变量(String a = "aaa")
* 2. 传递对象作为实参给函数的非引用类型的形参的时候
* 3. 函数返回非引用类型的对象
* 4. 用花括号列表初始化数组中的元素或这一个聚合类中的成员。
* 5... | [
"lijialin990@gmail.com"
] | lijialin990@gmail.com |
d83f2d318024565d16ce28a531225f4f74d0e239 | 48179ca220a805d4ebd6dc1fdfa9c7fdae04ddc6 | /util/cleaner.hh | 5b1b61fc548c81154d71a3b17ac39c1f5cec7dad | [
"Apache-2.0"
] | permissive | lukas-ke/faint-graphics-editor | 45093d777acc097fd0d963b13718e08368e12908 | c475123c03311042877740d018f314cd667d10d5 | refs/heads/master | 2022-11-11T09:32:33.184403 | 2022-11-06T11:24:18 | 2022-11-06T11:24:18 | 15,910,961 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | hh | // -*- coding: us-ascii-unix -*-
// Copyright 2014 Lukas Kemmer
//
// 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 a... | [
"lukas.kemmer@gmail.com"
] | lukas.kemmer@gmail.com |
58362371c22b48da5a503b3aeb96d113c7f14e68 | afda04bc1b13f87275869fed69d8d4346d8930c8 | /src/main/cmigrator/src/data-formatter/csv/csvAttribute.cpp | 2cff1082d28081b861023ac8ba54b3a4bce923c4 | [
"BSD-3-Clause"
] | permissive | yanmendes/bigdawg | 6f294f33ec03a993972eb8f05d37b25395108129 | 79d8f770d18ca2acd3f5195760262c62fbf303d0 | refs/heads/master | 2022-11-28T00:37:24.372937 | 2020-08-02T15:14:11 | 2020-08-02T15:18:31 | 197,306,137 | 0 | 0 | BSD-3-Clause | 2020-07-19T20:30:24 | 2019-07-17T03:12:00 | TSQL | UTF-8 | C++ | false | false | 1,439 | cpp | #include "csvAttribute.h"
template<>
void CsvAttribute<char>::write(Attribute * attr) {
//printf("Write attribute for CSV char.\n");
char * value = static_cast<char*>(attr->getValue());
fprintf(this->fp, "%s", value);
handleLineEnd();
}
template<>
void CsvAttribute<double>::write(Attribute * attr) {
*(this->valu... | [
"adam.dziedzi@gmail.com"
] | adam.dziedzi@gmail.com |
95c44eab9a506398be0d5114074ac54956c8ee70 | ef4eae29b793a2beb87c9d157bfe04d9be92b8cc | /hw_02/src/Controller.cpp | 90966307f0fa88cab17fd2cae8443b8e9bc51a16 | [] | no_license | salkaevruslan/hse-cpp-homework | bfe53187ba7e707cbd0c031d6ad135e3f2176dc6 | 9e8af98595687d42e58aa8e6ad3cf203d0691d42 | refs/heads/main | 2022-12-22T09:10:13.168862 | 2020-10-03T10:23:42 | 2020-10-03T10:23:42 | 300,852,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 713 | cpp | #include "Controller.h"
Controller::Controller(BoardView &view, Board &board): view_(view), board_(board){
}
void Controller::runGame(){
Point p{0, 0};
Player player = Player::O;
view_.drawField(player, board_);
while (board_.getState() == GameState::Running){
p = view_.readCoordinates();
if(p.x == EXIT_COD... | [
"rsalkaev@gmail.com"
] | rsalkaev@gmail.com |
f09f64f36a036ddd98f66d52df5640e4f38b79ca | 295de345a0226ac1b3a294561064e6b3839ec0cd | /src/media/audio/audio_core/audio_driver_clock_unittest.cc | 816240de8967719b1957669b381bf814376c8b54 | [
"BSD-2-Clause"
] | permissive | shangzuoyan/fuchsia | bac4f07748ebf7c1c67007771455e6b34cdc9e6b | 2e5c3d22baa3a8f1e4b2bc48f664c75b51fe04a8 | refs/heads/master | 2023-02-19T04:26:39.678678 | 2021-01-22T09:21:00 | 2021-01-22T09:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,233 | cc | // Copyright 2019 The Fuchsia 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 <fbl/algorithm.h>
#include "src/media/audio/audio_core/audio_device_manager.h"
#include "src/media/audio/audio_core/audio_driver.h"
#include "src... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
84866cd0b7bdbd24e97f8d7e8d6c79129b73927b | 28ce9053cd66f613d844ba40801354553c7d4abb | /libtest/src/test_settings.hpp | 3f6ca1a329969af26c701f6246e10f44dc46169d | [
"MIT"
] | permissive | rvt/esp8266leds | 41d08c5a04640f4e96f4bb1be6e68e44129f28a2 | 71be0785d6867fef338e99631d1a3363e983f3e2 | refs/heads/master | 2021-04-09T15:38:26.773819 | 2020-08-04T18:08:29 | 2020-08-04T18:08:29 | 125,743,902 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,230 | hpp | #include <catch2/catch.hpp>
#include <stdint.h>
#include <iostream>
#include <settings.h>
#include "arduinostubs.hpp"
TEST_CASE("Should check for modifications", "[settings]") {
millisStubbed = 0;
bool calledModified = false;
Settings settings(
200,
1000,
[]() {},
[&calledModified](... | [
"github@rvt.dds.nl"
] | github@rvt.dds.nl |
9bc4627711e64896b043ebbc60e5dd372a44a662 | 5e8d200078e64b97e3bbd1e61f83cb5bae99ab6e | /main/source/src/protocols/simple_moves/WaterBoxMoverCreator.hh | fb0ba952f6dc5b2d5af9edd953ad39cdef2f30c3 | [] | no_license | MedicaicloudLink/Rosetta | 3ee2d79d48b31bd8ca898036ad32fe910c9a7a28 | 01affdf77abb773ed375b83cdbbf58439edd8719 | refs/heads/master | 2020-12-07T17:52:01.350906 | 2020-01-10T08:24:09 | 2020-01-10T08:24:09 | 232,757,729 | 2 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,117 | hh | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... | [
"36790013+MedicaicloudLink@users.noreply.github.com"
] | 36790013+MedicaicloudLink@users.noreply.github.com |
594d50660a53b8dba1e1d4291b5f3a4017f6b638 | eff7ed347564b3b5240daee8621f596065a901da | /51. N-Queens.cpp | 103c57e5a5fc2251a105bd357a72512bf8ce3737 | [] | no_license | liihhnm/leetcode | c455fcb9e8ad388a976f5cb863be75c86630cb0f | 53bb5a9ea95a51b23a6bfff0a9309edcfa2fd582 | refs/heads/master | 2021-01-17T08:22:22.056328 | 2017-03-23T16:48:56 | 2017-03-23T16:48:56 | 83,881,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,192 | cpp | //51. N-Queens
#include <vector>
#include <iostream>
#include <string>
#include <cmath>
#include <iterator>
using namespace std;
//time O(n! * n) space O(n)
//just dfs
class Solution {
public:
vector<vector<string>> solveNQueens(int n) {
vector< vector<string> > result;
vector<int> flag(n, -1);
... | [
"davididota@gmail.com"
] | davididota@gmail.com |
d2c1513fc44e0c4711734e8d5e293e3b7536a29b | 5506e4cb54fc0c9ef106ead94e5c08bc811e49ea | /FlowerExchangeSavindu/FlowerExchangeSavindu/Flower.h | c85cbb8dee62e840af7c863165459a827fd2e6cd | [] | no_license | SavinduHerath/Flower-Exchange | f4d2cfac777a5e8e3fdac364cbeefe75ec344320 | c528bdeeae148972b637228967d22c5164cbe0cf | refs/heads/master | 2020-08-14T18:55:49.168590 | 2019-10-15T05:58:51 | 2019-10-15T05:58:51 | 215,218,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 199 | h | #pragma once
#include <string>
#include <vector>
#include <fstream>
#include <vector>
#include <sstream>
using namespace std;
struct Flower
{
string symbol;
string displayName;
int lotSize;
};
| [
"savinduherath@gmail.com"
] | savinduherath@gmail.com |
122989ef296c149892f79b51aef2cb120977dafa | eb2d5561ff5acf67c33f50663d5836dd31ce71e0 | /include/http/content/httpcontent.h | 8ff497cf734f0102c88a900573a5826936591e45 | [] | no_license | gsandoval/tenochtitlan | 6d20c7d639af4f371b3df4c019d3894ce684b2b3 | b1697e8e50e63d2535530c915a18334af85c431f | refs/heads/master | 2016-09-11T02:09:56.709807 | 2014-10-08T13:11:41 | 2014-10-08T13:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 626 | h | #ifndef _HTTP_CONTENT_H_
#define _HTTP_CONTENT_H_
#include "socket/buffer.h"
#include <map>
#include <string>
#include <memory>
namespace tenochtitlan
{
namespace http
{
namespace content
{
class HttpContent
{
protected:
static std::map<std::string, std::string> MIME_TYPES;
std::shared_ptr<sock... | [
"gsandoval@darchitect.org"
] | gsandoval@darchitect.org |
26aab825f9560401eb8e11ebeab8ac4c866478a4 | babb10077d58ea8fc5170dc11a0552d9d13f954a | /implementation/src/agent.hpp | b28bf86a1061337e05adc6ec9c0bd95658ec55cd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | PingooLP/ElGA | a8711c644b9b3b9fbfcdc0b0ca42b57c456ff529 | cebf356f8c052abfe8fd5fdc43a9396e0daf3ff8 | refs/heads/master | 2023-08-30T09:35:48.597582 | 2021-11-17T05:33:45 | 2021-11-17T05:33:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,081 | hpp | /**
* ElGA agent to manage the graph
*
* This command is responsible for running an agent, which is responsible
* for both storing part of the graph and running local algorithms on that
* part.
*
* Author: Kasimir Gabert
*
* Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
* (NTESS). ... | [
"kasimir@gatech.edu"
] | kasimir@gatech.edu |
91b3d51c5555c78195aea3ed58e75c0b112ac642 | 2502943d23a18cce4b2cb169288ca08e2243ca4f | /HDOJcode/1321 2013-02-05 17 59 35.cpp | 74dda8968e2d916c13a9005ec9d1a9960d151a15 | [] | no_license | townboy/acm-algorithm | 27745db88cf8e3f84836f98a6c2dfa4a76ee4227 | 4999e15efcd7574570065088b085db4a7c185a66 | refs/heads/master | 2021-01-01T16:20:50.099324 | 2014-11-29T06:13:49 | 2014-11-29T06:13:49 | 18,025,712 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 603 | cpp | ******************************
Author : townboy
Submit time : 2013-02-05 17:59:35
Judge Status : Accepted
HDOJ Runid : 7596516
Problem id : 1321
Exe.time : 15MS
Exe.memory : 248K
https://github.com/townboy
******************************
#include<stdio.h>
#include<string.h>
char ch[... | [
"564690377@qq.com"
] | 564690377@qq.com |
fcdbeb3816aa0646cd748c307118c2a3e3033e74 | 06d765fd0b4f813b94a72aea143d69c21fce7c0a | /rpn_calc/stack.h | ab21e0a116debb85588d0ff6a8fe944f8701a216 | [] | no_license | sophian-a/cplusplus | 8a2a962b7b5b2d0377aff31e9f1de11b347ba4f2 | bd3dcf7992138e7ca93e9ece6a3b679fe7bd50e2 | refs/heads/master | 2023-03-21T15:45:19.850653 | 2021-01-24T22:33:03 | 2021-01-24T22:33:03 | 309,711,950 | 0 | 1 | null | 2021-03-20T11:56:47 | 2020-11-03T14:29:06 | C++ | UTF-8 | C++ | false | false | 184 | h | #include <iostream>
void push(int tab[], int &i, int x) ;
int pop(int tab[], int &i) ;
int* init_stack(int n) ;
void delete_stack(int stack[]) ;
void print_stack(int stack[], int i) ; | [
"sophian.akkari@mines-paristech.fr"
] | sophian.akkari@mines-paristech.fr |
6219f14ba15daf68a0e3edc8fe55f099a022bd5f | 11ce2a35293de26dd0121563cced3124d0f9da83 | /main.cpp | 6cf224caff62e6de454c06916a798c59e2d86353 | [] | no_license | eduardoRubioG/conway-game-of-life | 5a0889cf85043861e818f0c3f182205492b78f81 | 44030664ba3ab1a62c480d463bb054247adb63f4 | refs/heads/master | 2022-04-28T06:30:18.492643 | 2020-04-21T20:11:24 | 2020-04-21T20:11:24 | 257,698,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,722 | cpp | #include "inc.h"
#include "Simorg.h"
#define DIM 20
#define MAXGEN 100
using std::cout;
using std::endl;
/* Prototypes */
void buildEnv( const int dim, const double yield, Simorg& env );
void buildEnv( std::string filename, Simorg& env );
int main( int argc, char* argv[] ){
Simorg env( DIM );
double YIELD... | [
"eduardo.rubio.jr85@gmail.com"
] | eduardo.rubio.jr85@gmail.com |
1f6fb53a38d2cbb4c30eb38c0b58b02433e1ea55 | 092f83af8daf07844bef4f5c61b1ca7d298488b8 | /libs/lfd/include/lfd/animation.h | c2835014dab09cbc5f395c29acc66960989df4ec | [
"MIT"
] | permissive | tiaanl/red5 | 1fd0d1ab0f86f8f70fc27d8b7b072d1eb1e956ad | ea7593b38f61f64f8aeb7d58854106bd58c05736 | refs/heads/main | 2023-01-07T05:11:57.569662 | 2020-11-14T19:19:46 | 2020-11-14T19:19:46 | 305,490,400 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | h | #pragma once
#include "lfd/image.h"
class Animation : public Resource {
public:
~Animation() override;
const std::vector<Image>& frames() const {
return m_frames;
}
void read(base::InputStream* stream, MemSize size) override;
void write(base::OutputStream* stream) override;
private:
std::vector<Ima... | [
"tiaanl@gmail.com"
] | tiaanl@gmail.com |
3bfde5c48d2b3e77895ac0bcd4c4683b926ed861 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /content/browser/indexed_db/indexed_db_transaction.cc | 5040dddf49fdcabdb0bc06ff18177f95b312c7a2 | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 16,216 | cc | // Copyright (c) 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 "content/browser/indexed_db/indexed_db_transaction.h"
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
#include "... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
f42b7ea914b6018a16a6df26c8bcfa34de677c0a | ee928aed7cf3be766d12214ee5780ad7a24d4f1e | /src/time_series/tvsbvar_blocks.cpp | b995bf4442b25dbebf62ebc5c874594585cddf1b | [] | no_license | parb220/dsmh_npsol_package | d6442c75ad9a4d85775ec8c5afc38db20c256424 | f437828ebf6b6ebc587f69dc79e6c3680f548bc7 | refs/heads/master | 2020-12-25T11:32:09.757836 | 2016-04-15T18:25:33 | 2016-04-15T18:25:33 | 55,998,105 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,118 | cpp | #include <vector>
#include "dw_dense_matrix.hpp"
#include "tvsbvar.hpp"
using namespace std;
vector<TIndex > TVSBVAR:: ConstructBlocks(int block_scheme)
{
vector<TIndex >blocks;
switch (block_scheme)
{
case 0:
{ // no blocking
blocks.push_back( TIndex(0,NumberParameters()-1) );
break;
}
case 1:
... | [
"parb220@gmail.com"
] | parb220@gmail.com |
7afe852afee7999fa450cd593d4fbefd46bf5ce2 | 8576eb949054c802f3d48147e63612f15185a967 | /JGame_Hall_Qt/GeneratedFiles/ui_frminputbox.h | 6f9ff7aca73e28140183620fabc12c399bfa87b6 | [] | no_license | gamezoo/JGame_Hall_Qt | c21881549989c128decbc05678b6d052ba75dd63 | 2138ee7e009ae2ff3ddaf24f662c02d3fc6d3edd | refs/heads/master | 2020-06-04T05:06:31.603769 | 2019-02-22T03:57:03 | 2019-02-22T03:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,131 | h | /********************************************************************************
** Form generated from reading UI file 'frminputbox.ui'
**
** Created: Tue Jan 30 10:17:55 2018
** by: Qt User Interface Compiler version 4.8.4
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
*****... | [
"366322759@qq.com"
] | 366322759@qq.com |
86872b80a0b2ac744cf5d1be4bca293d1135a40e | f9edcaa4f52706cdda42e11c5b11fb3c05c18079 | /DSA/prime.cpp | b1e0110e671a6eb3434f0b9f31d28447aa0e31c6 | [] | no_license | monikapatidar27/loops-problems | 695708a45e8836c7fbea4f230d8cfa5bcd03b8e2 | f35ced1632fc881d736369db0d43c89bfcdf8018 | refs/heads/main | 2023-07-14T12:41:20.745997 | 2021-08-12T15:18:06 | 2021-08-12T15:18:06 | 395,359,695 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 363 | cpp | #include <iostream>
using namespace std ;
int main(){
int t; cin>>t;
while(t--){
int n;
cin>>n;
int i;
for(i=2;i<n;i++){
if(n%i==0){
cout<<"non prime"<<"\n";
break;
}
}
if(i==n){
cout<<"prime"<<"\n";
}
}
re... | [
"noreply@github.com"
] | monikapatidar27.noreply@github.com |
b945a5c2e662602e80136e10c8488fdc6070bf43 | c1d89ce276ccf3d2eeba4ab64d4dc2b049fbac85 | /include/trident/kb/querier.h | 605854c214df1081ca895a03a6b7388a41e8113e | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | jrbn/trident | c2720988411761d3986039c52a93cc869d04b7b1 | e56a4977054eea01cb3f716db92bde5d6a49bfb7 | refs/heads/master | 2021-01-13T03:58:39.973847 | 2017-11-12T19:23:03 | 2017-11-12T19:23:03 | 78,136,282 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,305 | h | /*
* Copyright 2017 Jacopo Urbani
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, V... | [
"jacopo@cs.vu.nl"
] | jacopo@cs.vu.nl |
e56008600d02018966811363c01026966fcd5428 | b112f67d606ae67790be66b789bb04318cc7b5a6 | /GUI2/items/caritem.h | f009c01a3fde826a5b14bedf5f7325dc382cbb40 | [] | no_license | moevm/gui-1h2018-21 | d2d2e72bd29e7d8945f75a4f281ddba9b0d1044e | facf3f8536a1d2f0d2213f0fc4a19ba88b2904b2 | refs/heads/master | 2021-01-25T11:34:23.510188 | 2018-05-10T20:00:36 | 2018-05-10T20:00:36 | 123,411,545 | 1 | 3 | null | 2018-05-10T19:05:38 | 2018-03-01T09:19:25 | C++ | UTF-8 | C++ | false | false | 343 | h | #ifndef CARITEM_H
#define CARITEM_H
#include <QGraphicsItem>
#include <QPixmap>
#include <QtCore>
#include <QtGui>
class CarItem : public QGraphicsPixmapItem
{
public:
CarItem();
virtual ~CarItem();
void setMovementSpeed(double speed);
double getMovementSpeed();
private:
double movementSpeed;
}... | [
"maskimgaskov@mail.ru"
] | maskimgaskov@mail.ru |
6e1ed5589ac2430f5e0a7943cab69ec50629dcbb | 2f064c6e284903060549e55d40213028d7476dfa | /LASS/src/AbstractIterator.h | d0861c2ba861c91a3d8b81f8af918d91546618e3 | [] | no_license | tomokos2/DISSCO-2.0.2 | 167fa2ed70f360e574d93a843290813ab7e098b7 | ee6c9ba0e12bf718bc6a73e80dfc2c23a742213b | refs/heads/master | 2023-02-17T08:17:16.322262 | 2020-07-15T21:36:59 | 2020-07-15T21:36:59 | 275,158,048 | 0 | 0 | null | 2020-06-26T13:06:23 | 2020-06-26T13:06:22 | null | UTF-8 | C++ | false | false | 1,861 | h | /*
LASS (additive sound synthesis library)
Copyright (C) 2005 Sever Tipei (s-tipei@uiuc.edu)
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
of the License, or (at your option) any ... | [
"xsun63@illinois.edu"
] | xsun63@illinois.edu |
40e975ec8cf045357946dbea277b2281c772fa2d | 912d38b91ffcdae2ddfa6ce2054f1f4002cf46a9 | /codechef_stack_4_compiler_second_solution.cpp | ba5a8781fd743c9c55f71cdc663904c49452065a | [] | no_license | anuragsinghjadon/data-structure | 4d6867e56f9184014ac921d94f2f1e5f49258f7a | 54e86933b3541deb0cd012e84d12dbd5a1f95f6f | refs/heads/master | 2021-04-07T14:48:29.495249 | 2021-02-12T16:44:14 | 2021-02-12T16:44:14 | 248,684,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 523 | cpp | #include<string>
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
long long int T;
cin>>T;
while(T--)
{
stack <char> s;
string a;
cin>>a;
int n,i,j,c; c=0;
n= a.length();
for(i=0;i<n;i++)
{
if(a[i]=='<')
s.push(a[i]);
i... | [
"anurags.jadon10@gmail.com"
] | anurags.jadon10@gmail.com |
918a82f928957d15c10550906d5939739ca0ad43 | 6f6f890c5bcd3c090386ff746689488cb1c638ee | /Arrays/Subsets.cpp | 1b5e8f8b0c5b0ec3003cd09bf33ed27c93c0edc5 | [] | no_license | sharnoor404/Competitive-Coding | 3068a5dc989dadfced7a22d57f7fbb92839aeafe | 5a9a66f1a4cdc78fdc3f454c7205e15aeed5b2bf | refs/heads/master | 2022-12-14T19:26:59.447441 | 2020-09-03T07:42:35 | 2020-09-03T07:42:35 | 268,509,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,048 | cpp | /*
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.
The solution set must not contain duplicate subsets.
Also, the subsets should be sorted in ascending ( lexicographic ) order.
The list is not necessarily sorted.
*/
int subsetsHelper(vector<... | [
"sharnoor404@gmail.com"
] | sharnoor404@gmail.com |
d90ab67aab44573bde5765e728638abcfd2d74e0 | 0db28bf724b7d7b54ab8426e2b376a418a2e6d57 | /CMC040/cmcfun/outp_36initfromfile.cc | a81c37d370b7209cb106bae018c524d0154323c1 | [
"MIT"
] | permissive | khandy21yo/aplus | 48ea413a26a4a5e23ab557e6dd3560c6a579aba5 | 3b4024a2a8315f5dcc78479a24100efa3c4a6504 | refs/heads/master | 2021-01-11T06:53:05.825792 | 2019-03-08T23:30:37 | 2019-03-08T23:30:37 | 72,404,068 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,855 | cc | //! \file
//! \brief Initilize REPORT Output Information
// %SBTTL "OUTP_36INITFROMFILE"
// %IDENT "V3.6a Calico"
//
// Source: ../../CMC030/cmcfun/source/outp_36initfromfile.bas
// Translated from Basic to C++ using btran
// on Thursday, January 04, 2018 at 12:53:35
//
#include <iostream>
#include <fstream>
#include ... | [
"khandy21yo@gmail.com"
] | khandy21yo@gmail.com |
4af47333d4d58b3619ec602e7a7d637b5d01b5d1 | db94cd0b996cf9fbc16519aacfa7a3cc83246ff4 | /binarySearchTree.hpp | d04050a928d8f00dd60685481fd451c6b80f10e5 | [] | no_license | mjaglarz/mapBST | a6cc0710213bd2b614f1617eec2c35ea84b922b2 | 11b2b0c7e9d1ef4efbb40f094251525ea770d520 | refs/heads/master | 2020-05-06T20:05:08.474031 | 2019-04-30T13:52:42 | 2019-04-30T13:52:42 | 180,221,104 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,082 | hpp | #ifndef BINARYSEARCHTREE_H
#define BINARYSEARCHTREE_H
#include <iostream>
template <typename T = int>
class BinarySearchTree{
public:
struct Node{
T key;
Node* left;
Node* right;
Node(T value):key(value), left(nullptr), right(nullptr){}
};
T* insert(const T& x){ return insert(root_, x); }
bo... | [
"noreply@github.com"
] | mjaglarz.noreply@github.com |
d9495416ff45d94310e06cace49b00015a14ce29 | 05042a6ec2764594be984be45f01edae5218c549 | /include/propria/traits/query_member.hpp | 591ab4f69a1706409aed29d13a5dfc73e8c467f1 | [
"BSL-1.0"
] | permissive | jaredhoberock/propria | 9a84fdd763e43f7fc8216376938367f905ba8dba | 7c46c8d2fcd0b16ad3de26835023e53d5c2c3750 | refs/heads/master | 2020-05-03T04:48:20.955755 | 2019-03-22T21:43:57 | 2019-03-22T21:50:09 | 178,432,109 | 0 | 0 | null | 2019-03-29T15:35:19 | 2019-03-29T15:35:18 | null | UTF-8 | C++ | false | false | 1,892 | hpp | //
// traits/query_member.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef PROPRIA_TRAIT... | [
"chris@kohlhoff.com"
] | chris@kohlhoff.com |
7428fc02b1d9b52935d7a4e1cbbea0a98d37a8df | 680b8a33887ecec6523c9ec4eea70f896d6daf50 | /GameEngine/GameEngine/src/Game/Renderer/SubTexture2D.h | 0bd16cb6f818811eb4b7b9c50bf06723e532b6cf | [] | no_license | LibertAntoine/GameEngine | 2940f649711802096566dd3b92c0f004034fcdde | 00fff8af0266baa87620abf205cd067a218b265d | refs/heads/master | 2022-12-22T15:45:17.654770 | 2020-10-05T12:41:39 | 2020-10-05T12:41:39 | 291,060,094 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | h | #pragma once
#include <glm/glm.hpp>
#include "Texture.h"
namespace GameEngine {
class SubTexture2D
{
public:
SubTexture2D(const Ref<Texture2D>& texture, const glm::vec2& min, const glm::vec2& max);
inline const Ref<Texture2D> GetTexture() const { return m_Texture; }
inline const glm::vec2* GetTexCoords() c... | [
"duncan-arrakis@hotmail.fr"
] | duncan-arrakis@hotmail.fr |
15f74e28f0e0894a24ff2c070d64e3a468f63786 | 9d6157bd515679c1628b3f1b0ceb9abb4175dbf3 | /DlgNetwork.h | f3567a1ce7b7a31f4368bf06acd2a55759dc2f2a | [] | no_license | salmingo/CamagentS | 34fbcaa6e012e7e1466780296542ec965c9ad8be | f90639043275b26791ae1a28d6ab7e1eac5da91c | refs/heads/master | 2023-08-25T08:37:16.948166 | 2021-10-13T02:06:56 | 2021-10-13T02:06:56 | 416,558,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 916 | h | #pragma once
#include "afxwin.h"
#include "Parameter.h"
// CDlgNetwork 对话框
class CDlgNetwork : public CDialogEx
{
DECLARE_DYNAMIC(CDlgNetwork)
public:
CDlgNetwork(Parameter* param, CWnd* pParent = nullptr); // 标准构造函数
virtual ~CDlgNetwork();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG_NETWORK };
... | [
"lxm@nao.cas.cn"
] | lxm@nao.cas.cn |
effaf5dbb14f38d33218a22e0a8c77ce9ef4b6c7 | 668ebb505f4d8932e67dfdd1b24a99edcd4d880e | /2523.cpp | 875343f47dab313c37beaa5a2fd5c67df315118b | [] | no_license | jpark1607/baekjoon_Cplusplus | 06df940723ffb18ad142b267bae636e78ac610d8 | 8a1f4749d946bc256998ef9903098c8da6da1926 | refs/heads/master | 2021-07-13T03:47:29.002547 | 2021-07-11T14:01:10 | 2021-07-11T14:01:10 | 51,923,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | cpp | #include <stdio.h>
int main(void) {
int N;
int i, j;
scanf("%d", &N);
for(i = 0; i < N; i++) {
for(j = 0; j <= i; j++) {
printf("*");
}
printf("\n");
}
for(i = N - 1; i > 0; i--) {
for(j = 0; j < i; j++) {
printf("*");
}
printf("\n");
}
return 0;
}
| [
"jpark1607@gmail.com"
] | jpark1607@gmail.com |
84b6b22c147c9ad69e4a734d104713daf12323d0 | f5b4d401e81eee81c53fff3ebe93706af1c92b87 | /src/public/src/fsgui3d/src/fsgui3dviewcontroldialog.cpp | 00aed126c953b577947aae01e7b3a946af8c6c5e | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | rothberg-cmu/rothberg-run | a6cd2665c9d2113ec6be2a64af995b891fe640dc | a42df5ca9fae97de77753864f60d05295d77b59f | refs/heads/master | 2020-04-27T18:41:16.879505 | 2019-05-01T17:26:52 | 2019-05-01T17:26:52 | 174,582,832 | 1 | 2 | MIT | 2019-05-01T17:26:53 | 2019-03-08T17:46:06 | C++ | UTF-8 | C++ | false | false | 19,007 | cpp | /* ////////////////////////////////////////////////////////////
File Name: fsgui3dviewcontroldialog.cpp
Copyright (c) 2017 Soji Yamakawa. All rights reserved.
http://www.ysflight.com
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions... | [
"minjunxu@andrew.cmu.edu"
] | minjunxu@andrew.cmu.edu |
99fdf625cc622c3b3bf1233af3fed0a454f46226 | 7d7b4d7ea5cb55665445b06a834778c0782115f1 | /itia_fir_planner/src/itia_fir_planner/velocity_profile.cpp | 03767158cd3921880c8f6ca8838892c270c9a65d | [
"BSD-3-Clause"
] | permissive | CNR-STIIMA-IRAS/itia_motion | cb3e49cdf03a446ff6e6f3e914ec85d4e15bd2ba | 1ffc2af3b5a3ddb4b7612eeb29a362bea8ae1680 | refs/heads/master | 2021-08-22T04:55:11.799081 | 2017-11-29T10:31:39 | 2017-11-29T10:31:39 | 109,697,964 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,239 | cpp |
// --------------------------------------------------------------------------------
// Copyright (c) 2017 CNR-ITIA <iras@itia.cnr.it>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
/... | [
"you@example.com"
] | you@example.com |
6ec5585cb5aaefbd1a934fb67a87f0efaf9457c2 | a89b501f384e8ad9969f37b44519c1850b807e26 | /ps4/e.cc | 31fb323a3ed83d6e3e430aecfa2de13933ad226d | [] | no_license | mayman99/algo | 9a368d3a8d770d8e2e2ca7efc3746e17e2ac9505 | 4b0f0ef6efc9c1ff0fc989a4427fb4f498754b85 | refs/heads/master | 2021-11-24T04:02:08.587372 | 2016-12-21T22:13:49 | 2016-12-21T22:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,289 | cc | #include <vector>
#include <iostream>
#include <numeric>
#include <string>
#include <stdio.h>
#include <algorithm>
#include <stack>
using namespace std;
int src[20000];
int dst[20000];
stack <int>s;
int main()
{
bool no,root,cycle=false;
int n,d,N,M,node,Nclone,m,i=0;
short roots=0;
while(cin >> N >> ... | [
"no.future2e1@gmail.com"
] | no.future2e1@gmail.com |
dd956b82db99613aaf10ae096a0afc52e2ca70de | f01605671c712a5136c18bead84a37d5259a0053 | /LinaEditor/include/Panels/ScenePanel.hpp | b6f560375a86425258148582a5beb7906fe6a409 | [
"MIT"
] | permissive | forkrp/LinaEngine | 14a3c64ddaa12143fb9e685efdd263af9ec5c781 | 4d2cd26b8f733e01763f1812b69f4a6b4aff655d | refs/heads/master | 2023-01-01T19:55:42.962888 | 2020-10-27T07:58:30 | 2020-10-27T07:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,215 | hpp | /*
This file is a part of: Lina Engine
https://github.com/inanevin/LinaEngine
Author: Inan Evin
http://www.inanevin.com
Copyright (c) [2018-2020] [Inan Evin]
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 ... | [
"inanevin@gmail.com"
] | inanevin@gmail.com |
e29bc9955a82dd038c87e22c692a35fa2e64a69b | 29ae1ac35646f9e4f2307ac7bac5a398c8d9bb62 | /Arduino/Lab1/PartH/PartH.ino | 3f2f255712d88e7e00f4a7626caf73b14f8a19db | [] | no_license | cbudo/CSSE435 | 7135a7d58115cb948b77362eb87cd0f12efb21f5 | 486752df73e77d68e9cb7bd55697efee72e39c0e | refs/heads/master | 2021-01-21T14:11:49.884603 | 2016-05-26T15:25:00 | 2016-05-26T15:25:00 | 53,685,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,750 | ino | /*
Name: PartH.ino
Created: 3/30/2016 1:45:21 PM
Author: drong, budo
*/
// include the library code:
#include <LiquidCrystal.h>
#define PIN_LED_1 64
#define PIN_LED_2 65
#define PIN_LED_3 66
#define PIN_LED_4 67
#define PIN_LED_5 68
#define PIN_LED_6 69
#define PIN_RIGHT_BUTTON 2
#define PIN_LEFT_BUTTON 3
#define ... | [
"lukedrong@gmail.com"
] | lukedrong@gmail.com |
a8553b108aa507ab20775506babf9ea42dd4aeac | c287f063100e0ddb29bcf27e9f901b914cca0f2e | /thirdparty/qt53/include/QtWidgets/5.3.0/QtWidgets/private/qwidgetitemdata_p.h | a8ab58174f4b74accc7d405ed26c808a56e2c6d6 | [
"MIT"
] | permissive | imzcy/JavaScriptExecutable | 803c55db0adce8b32fcbe0db81531d248a9420d0 | 723a13f433aafad84faa609f62955ce826063c66 | refs/heads/master | 2022-11-05T01:37:49.036607 | 2016-10-26T17:13:10 | 2016-10-26T17:13:10 | 20,448,619 | 3 | 1 | MIT | 2022-10-24T23:26:37 | 2014-06-03T15:37:09 | C++ | UTF-8 | C++ | false | false | 3,008 | h | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtWidgets module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licens... | [
"zcy920225@gmail.com"
] | zcy920225@gmail.com |
d3f7bddf876b8d10347bf9099af4dcbf67169518 | a06a28c5fe36c5cd480f49a9871d05f268c3cc5d | /jzzhu and sequences11.cpp | fbe5dde725238e5481d5de2e88951238a23989f0 | [] | no_license | niharika987/dev | f7f84ea55e246ce2843f02704d5d0f17a083da8b | b588b29092abca975a828fbb7217622305907c1f | refs/heads/master | 2020-03-29T07:13:49.934820 | 2018-09-20T19:23:34 | 2018-09-20T19:23:34 | 149,657,657 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | cpp | // on my way...................
#include<iostream>
using namespace std;
int x,y,x1,y1;
int fn (int n)
{
if(n==y1)
return y;
if(n==x1)
return x;
return fn(n-1)-fn(n-2);
}
using namespace std;
int main()
{
cin>>x>>y;
x1=1;
y1=2;
int n,k;
cin>>n;
k=fn(n);
if(k<0)
cout<<k+1000000007;
else
cout<<k;
ret... | [
"niharikasingh987@yahoo.com"
] | niharikasingh987@yahoo.com |
7a3c8318c7b72712726363a51533fd66f7ce416a | 98b1e51f55fe389379b0db00365402359309186a | /homework_7/problem_1/case_2/91/uniform/time | b6561bd2e88b923048d885ea337fad6a2fbf5719 | [] | no_license | taddyb/597-009 | f14c0e75a03ae2fd741905c4c0bc92440d10adda | 5f67e7d3910e3ec115fb3f3dc89a21dcc9a1b927 | refs/heads/main | 2023-01-23T08:14:47.028429 | 2020-12-03T13:24:27 | 2020-12-03T13:24:27 | 311,713,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 820 | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | [
"tbindas@pop-os.localdomain"
] | tbindas@pop-os.localdomain | |
ee36a6a57940792d8fa80ed88526bb5bc3b6f138 | a4fb81b2bf72403dfb804abd6f7f40bf0c530a29 | /Sorting and Searching/first_bad_version.cpp | 7de6880efc3dc4f3c0fb1ae4bd4a75acfeb0f57d | [] | no_license | Anjum219/LeetCode-Top-Interview-Questions-Easy-Collection- | 4446767074864538d48395c896c1dffa3df133e2 | 26ffc34e8956f49e407ab8bd7050f6253931bf32 | refs/heads/master | 2023-06-04T12:59:31.484486 | 2021-06-21T08:08:05 | 2021-06-21T08:08:05 | 326,961,958 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | cpp | #include<bits/stdc++.h>
#define ll long long int
using namespace std;
int firstBadVersion(int n) {
int left = 1;
int right = n;
while( left < right ){
int mid = left + (right - left)/2;
if( isBadVersion(mid) ){
right = mid;
}
else{
left = mid + 1;
... | [
"anjumhaz@gmail.com"
] | anjumhaz@gmail.com |
b8a0d6756f5bc6d0ece51f8c7183ba401517e82d | 66702ad401431b263ca996423830deb678de7e64 | /src/masternode.h | 828c6e2f36000bc086d03f1cc937353afc7de973 | [
"MIT"
] | permissive | apujhinuk/ZestCoin | 693f4121befdd41c67022ff9284a5f2a5edc139f | 14ca4407ac5275c7ce656175e4b9e4063e91061a | refs/heads/master | 2020-03-30T06:27:58.773111 | 2018-07-19T13:01:06 | 2018-07-19T13:01:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,970 | h | // Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef MASTERNODE_H
#define MASTERNODE_H
#include "base58.h"
#include "key.h"
#i... | [
"zestnet@protonmail.com"
] | zestnet@protonmail.com |
ded85de23265485e21739816bddd405921a0d13c | 94e5a9e157d3520374d95c43fe6fec97f1fc3c9b | /@DOC by DIPTA/dipta007_final/Geometry/ellipse.cpp | 7da8ec9690150a39a0b63e5db1d99858fae49744 | [
"MIT"
] | permissive | dipta007/Competitive-Programming | 0127c550ad523884a84eb3ea333d08de8b4ba528 | 998d47f08984703c5b415b98365ddbc84ad289c4 | refs/heads/master | 2021-01-21T14:06:40.082553 | 2020-07-06T17:40:46 | 2020-07-06T17:40:46 | 54,851,014 | 8 | 4 | null | 2020-05-02T13:14:41 | 2016-03-27T22:30:02 | C++ | UTF-8 | C++ | false | false | 1,146 | cpp | //(x/a)^2 + (y/b)^2 = 1;
inline double F (double x,double e) { return sqrt(1.0 - (e*e*sin(x)*sin(x))); }
double simpson (double a, double b,double e) {
double ret = 0;
double N = int (1e4); // N must be even
double h = (b - a) / N;
for (int i = 0; i <= N; ++i) {
double x = a + h * i;
... | [
"iamdipta@gmail.com"
] | iamdipta@gmail.com |
02cc2f9ff6c5e44b217988af18092c95301719b5 | cb6f7a0f76e481a1be405936843a6fe5afeb6003 | /include/character.hpp | febac2697020793ab14295ac6cb61d32a84a57e1 | [] | no_license | Mooksc/RTS-Engine | 6300264e780bd232291f81cbae8df90fb7da20b7 | ec6616b8b5ce817ed42c15b34f2bb280dad7d524 | refs/heads/master | 2020-05-15T05:18:35.148988 | 2019-04-18T14:33:01 | 2019-04-18T14:33:01 | 182,103,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 578 | hpp | void character(float characterPosX, float characterPosY) {
characterShape.setPosition(characterPosX, characterPosY);
window.draw(characterShape);
};
void newCharacterPos() {
characterShape.setPosition(newCharacterPosX, newCharacterPosY);
window.draw(characterShape);
};
void setCharacterPos(float x... | [
"noreply@github.com"
] | Mooksc.noreply@github.com |
3d2db083109ee57d81477fb3a4f77ad668c91540 | d35ec47116078b5e90048202708f0f0a010c7dfd | /gose-가운데_글자_가져오기.cpp | 066244b7338bc20fc6eb1318874a26705e8396f7 | [] | no_license | wkdnffla3/Practice_coding_test | 1b371c7c6d153aaca4d24fdc428435debe3125f0 | c0f576ecdcc3b34df74395d8985455e9b11c540b | refs/heads/master | 2020-06-13T23:18:47.239054 | 2019-07-02T10:44:05 | 2019-07-02T10:44:05 | 194,820,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 244 | cpp | #include <string>
#include <vector>
using namespace std;
string solution(string s) {
string answer = "";
answer += s[(s.size() - 1)/2];
if(s.size() % 2 == 0){
answer += s[s.size()/2];
}
return answer;
} | [
"noreply@github.com"
] | wkdnffla3.noreply@github.com |
0565a87fc952246c0c16026dc1af9daefaaca461 | a65c77b44164b2c69dfe4bfa2772d18ae8e0cce2 | /tioj/1905.cpp | 1e21d77abba23d6466f3690343aa3411fa7b2d9b | [] | no_license | dl8sd11/online-judge | 553422b55080e49e6bd9b38834ccf1076fb95395 | 5ef8e3c5390e54381683f62f88d03629e1355d1d | refs/heads/master | 2021-12-22T15:13:34.279988 | 2021-12-13T06:45:49 | 2021-12-13T06:45:49 | 111,268,306 | 1 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 3,828 | cpp | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast,unroll-loops,no-stack-protector")
using namespace std;
typedef unsigned int ll;
#define REP(i,n) for(int i=0;i<n;++i)
#define REP1(i,n) for(int i=1;i<=n;++i)
#define SZ(i) int(i.size())
#ifdef tmd
#define IOS()
#define debug(...) fprintf(stderr,"#%d: %s = ",__LINE__,... | [
"tmd910607@gmail.com"
] | tmd910607@gmail.com |
dbd2649704fc361c6d088747b8f67ee296cf802b | 267d4f163aaa4206ec36d88736ba7705f0de7346 | /include/llfio/revision.hpp | e4849b50a2d930b72e142bbf6284b6401ab59c0f | [
"BSL-1.0",
"Apache-2.0"
] | permissive | grassofsky/llfio | 80b48a62f86b5672e964fba8a49ddc9c49c10d73 | 8b27842c25c47fd49ab64209463fc23268270975 | refs/heads/master | 2022-10-03T17:23:03.474255 | 2020-06-08T06:55:44 | 2020-06-08T06:55:44 | 270,562,303 | 0 | 0 | Apache-2.0 | 2020-06-08T06:52:50 | 2020-06-08T06:52:50 | null | UTF-8 | C++ | false | false | 297 | hpp | // Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time
#define LLFIO_PREVIOUS_COMMIT_REF 17519e07a6022196e3e1de011f8e93b47e7eb587
#define LLFIO_PREVIOUS_COMMIT_DATE "2020-06-04 11:06:28 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE 17519e07
| [
"spamtrap@nedprod.com"
] | spamtrap@nedprod.com |
a5d8e898ffbe8e538f89f09b724b034f0c560700 | 24a34054e3399da3885243fc149eb6914e3f5e0d | /Week_09/917.仅仅反转字母.cpp | b3c69b3076d87d4fc4eaf879c84221253a67a5b8 | [] | no_license | cindycinthia/algorithm017 | aea660bc8ba7da2300e972a038645485c9d9bd5e | 4d0161c724b0c1b8e5d04305375bed13e8e0392e | refs/heads/master | 2023-02-05T12:09:46.843603 | 2020-12-13T14:30:26 | 2020-12-13T14:30:26 | 297,317,446 | 0 | 0 | null | 2020-09-21T11:22:28 | 2020-09-21T11:22:27 | null | UTF-8 | C++ | false | false | 506 | cpp | /*
* @lc app=leetcode.cn id=917 lang=cpp
*
* [917] 仅仅反转字母
*/
// @lc code=start
class Solution {
public:
string reverseOnlyLetters(string S) {
int begin = 0,end=S.length()-1;
while(begin<end)
{
if(!isalpha(S[begin]))
begin++;
if(!isalpha(S[end]))
... | [
"chenyu1_1@163.com"
] | chenyu1_1@163.com |
c6760d094bffdc15ff8c64f130b90ce73e5648bf | 81542bcacfd129f8baa8eb5c034544aced2e3538 | /arduino/ArduinoPusherTest_public_room/RobotExample/RobotExample.ino | 020d124eb733e096345536343faa753d2ba41b03 | [
"MIT"
] | permissive | augustozuniga/arisgames | 39d52825945826b24ff61b908e87307fc6995dcf | 1ccf8fcbd9083134972b80e429456dbd6e28aa3d | refs/heads/master | 2016-09-05T20:22:33.638733 | 2013-05-06T17:34:31 | 2013-05-06T17:34:31 | 35,673,192 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | ino | #include <SPI.h>
#include <Ethernet.h>
#include <PusherClient.h>
byte mac[] = { 0xAB, 0xCD, 0xE2, 0xFF, 0xFE, 0xED };
PusherClient client;
void setup() {
Serial.begin(9600);
Serial.println("Setup...");
if (Ethernet.begin(mac) == 0) {
Serial.println("Init Ethernet failed");
while(1);
}
else
Seria... | [
"pdougherty@wisc.edu@9a1de14e-70bd-11de-9e9f-05296fd93cd0"
] | pdougherty@wisc.edu@9a1de14e-70bd-11de-9e9f-05296fd93cd0 |
898a7ad3086c05c4487ab4ebcbea7ffc8d8f8342 | c13c121d96fdd8682982854f43e50be011863aa1 | /Code/Engine/gl-Renderer/GLRRQEntitySelection.cpp | cb1178b64b1ddb5e8db2c529416abd55ad29175b | [] | no_license | paksas/Tamy | 14fe8e2ff5633ced9b24c855c6e06776bf221c10 | 6e4bd2f14d54cc718ed12734a3ae0ad52337cf40 | refs/heads/master | 2020-06-03T08:06:09.511028 | 2015-03-21T20:37:03 | 2015-03-21T20:37:03 | 25,319,755 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,989 | cpp | #include "core-Renderer\RQEntitySelection.h"
#include "core-Renderer\Renderer.h"
#include "core-Renderer\RendererUtils.h"
#include "core\ListUtils.h"
#include "gl-Renderer\GLRDefinitions.h"
#include "gl-Renderer\GLRenderer.h"
#include "gl-Renderer\GLRErrorCheck.h"
#include "gl-Renderer\GLRRenderTarget2D.h"
//////////... | [
"ptrochim@gmail.com"
] | ptrochim@gmail.com |
4887ae94913a7e284e41e867b4234dab5126c08f | 3a64d611b73e036ad01d0a84986a2ad56f4505d5 | /device/fido/cable/v2_discovery.cc | e4ce5099681adf4d6579460f3234e794c3e86a81 | [
"BSD-3-Clause"
] | permissive | ISSuh/chromium | d32d1fccc03d7a78cd2fbebbba6685a3e16274a2 | e045f43a583f484cc4a9dfcbae3a639bb531cff1 | refs/heads/master | 2023-03-17T04:03:11.111290 | 2020-09-26T11:39:44 | 2020-09-26T11:39:44 | 298,805,518 | 0 | 0 | BSD-3-Clause | 2020-09-26T12:04:46 | 2020-09-26T12:04:46 | null | UTF-8 | C++ | false | false | 4,210 | cc | // Copyright 2020 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 "device/fido/cable/v2_discovery.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/strings/string_number_conversions.h"
#includ... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
d428ee6e6348dc98000db9529f7d45016f4adcf0 | 58e37a43d291d1884234f86b855b5f7da55725ef | /BitManipulation/Basics/printSubsets.cpp | 2c90f04e64928d5d03c4c06a7e98c63ee5543786 | [] | no_license | shashank9aug/DSA_CB | 74337f8fb5dde5b94b380512dcec39a13e643690 | 1301329e4f9fd5105b4cb3c9d0f5c5772ed890ce | refs/heads/master | 2023-08-18T05:35:42.946559 | 2021-10-15T10:04:52 | 2021-10-15T10:04:52 | 370,120,570 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 566 | cpp | /*
$ ./a.exe
abc
a
b
ab
c
ac
bc
abc
*/
#include<iostream>
#include<cstring>
using namespace std;
void filterChars(char a[],int n){
int j=0;
while(n>0){
int last_bit=(n&1);
if(last_bit==1){
cout<<a[j];
}
j++;
n=n>>1;
}
cout<<endl;
}
void printS... | [
"shekhar1245shashank@gmail.com"
] | shekhar1245shashank@gmail.com |
b4c843319830b6198a144bac5e72d23abe7189b1 | b1320eb7edd285f493a0e4473dc433842aaa9178 | /Blik2D/addon/openh264-1.6.0_for_blik/test/api/BaseEncoderTest.cpp | 6977649e43a4d42dfe6d732f9ad4267b45636933 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BonexGoo/Blik2D-SDK | 2f69765145ef4281ed0cc2532570be42f7ccc2c6 | 8e0592787e5c8e8a28682d0e1826b8223eae5983 | refs/heads/master | 2021-07-09T01:39:48.653968 | 2017-10-06T17:37:49 | 2017-10-06T17:37:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,971 | cpp | #include <fstream>
#include <gtest/gtest.h>
#include BLIK_OPENH264_U_codec_def_h //original-code:"codec_def.h"
#include "utils/BufferedData.h"
#include "utils/FileInputStream.h"
#include "BaseEncoderTest.h"
static int InitWithParam (ISVCEncoder* encoder, SEncParamExt* pEncParamExt) {
SliceModeEnum eSliceMode = pEnc... | [
"slacealic@gmail.com"
] | slacealic@gmail.com |
a66b499b0bd451230dcdf3d97331eb04c9b13c9f | 123cdb1d6a6956586dd91c86d02e0d1bacdcebae | /src/demo/pandora/level/Mission.h | 198662b496b8c3a2452e67c253a2c0d41008a38c | [
"BSD-2-Clause"
] | permissive | KCL-Planning/strategic-tactical-pandora | 1862f3240028d6eb5dbecf02350b9f295ec8f788 | aa609af26a59e756b25212fa57fa72be937766e7 | refs/heads/master | 2021-01-23T05:50:00.669556 | 2017-11-30T11:16:48 | 2017-11-30T11:16:48 | 102,473,151 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | h | #ifndef DEMO_PANDORA_LEVEL_MISSION_H
#define DEMO_PANDORA_LEVEL_MISSION_H
#include <string>
#include <vector>
#include <glm/glm.hpp>
class Goal;
class MissionSite;
class Mission
{
public:
Mission(MissionSite& mission_site);
const std::string& getId() const { return id_; }
void addGoal(Goal& goal);
const std::... | [
"bram.ridder@gmail.com"
] | bram.ridder@gmail.com |
681281a9587110fca8c3f1abcb3c447d6d698ddd | dc0bbacb1736c0ea01f15c983aee68870d61764a | /chinese_chess/SingleGame.h | f03f8db05f65af7e38296a73ecca105d2a88b8b8 | [] | no_license | guaiguaiduo/20200918team | afe43fedfe70e4606f511d1b1cf3a31bfab8e913 | 94d2d8f2067be802bb794ebf94d753663fa913bc | refs/heads/master | 2022-12-17T17:43:06.077828 | 2020-09-18T08:38:20 | 2020-09-18T08:38:20 | 296,563,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 751 | h | #ifndef SINGLEGAME_H
#define SINGLEGAME_H
#include "Board.h"
#include <Step.h>
#include <QPushButton>
class SingleGame : public Board
{
Q_OBJECT
public:
int _selectedid;
QPushButton b3;
Step _step1;
explicit SingleGame(QWidget *parent = 0);
bool judgesame(int i,int killed);
v... | [
"noreply@github.com"
] | guaiguaiduo.noreply@github.com |
38dc0de3840c4a5cb5fd78db2ed171cbc60c2b04 | 24103146706ab987a5617685e973aef970507378 | /src/bitmap/bitmap_filter.cpp | 9667fd35765d0a698d67e06f5dad4ad24affd234 | [
"MIT"
] | permissive | daramkun/libdseed | 27ca38318b5ade0931d761b2d7f6bd6f56086f51 | 7daabcbf2c6af88c92e2e504be437c37f1c434a5 | refs/heads/master | 2022-02-14T20:07:07.049654 | 2022-02-01T17:01:14 | 2022-02-01T17:01:14 | 189,190,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,154 | cpp | #include <dseed.h>
#include <map>
#include <cstring>
using namespace dseed::color;
dseed::bitmaps::bitmap_filter_mask::bitmap_filter_mask(float* mask, size_t width, size_t height)
: width(width), height(height)
{
memcpy(this->mask, mask, width * height * sizeof(float));
}
dseed::bitmaps::bitmap_filter_mask::bitma... | [
"daramkun@live.com"
] | daramkun@live.com |
cc2fcd483d06adf2ed7c59124f090b9e028d2bab | dc281e94e9b0d9b895867ec296ca90889d384675 | /Geeks for geeks/Algorithm/Dynamic/Hard/Minimum Sum Partition.cpp | 90158f6bb5dbbc9048b266e5459c8370de28cd77 | [] | no_license | shreyash184/c-codes | 70c494137c8a1224b0d688b22479667c6135a36d | 79a92ef066493d88afb1758d76e24d989e4c07c3 | refs/heads/master | 2023-02-02T12:32:32.018515 | 2020-05-01T04:28:09 | 2020-05-01T04:28:09 | 145,076,888 | 1 | 0 | null | 2023-02-01T11:52:36 | 2018-08-17T05:42:43 | C++ | UTF-8 | C++ | false | false | 844 | cpp | using namespace std;
int recur(int arr[], int n, int y, int sum){
int temp = sum/2;
int dp[n+1][temp+1];
for(int i=0;i<=n;i++){
for(int j=0;j<=temp;j++){
if(j==0||i==0){
dp[i][j]=0;
}
else if(j>=arr[i-1]){
... | [
"shreyashchavhan8@gmail.com"
] | shreyashchavhan8@gmail.com |
615831ea0733609f9acba8b6905792342084cc4f | 54a9c34c604249770c81f2f2b15af7f23448e8cb | /src/venus_net/protocol/22002_S2CTransferAccountsRsp.pb.h | 93e41f152f91ef3798e49a76dceb178d860cc34c | [
"Unlicense"
] | permissive | blueantst/zpublic | 3a51c1d1d5c0910d5ef5ad85feb4c617d6f5b049 | 17d798db89a9085200c2127e88ecf6b407393b3c | refs/heads/master | 2020-12-11T06:13:25.796413 | 2013-12-30T09:09:39 | 2013-12-30T09:09:39 | 15,559,862 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | true | 7,980 | h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: 22002_S2CTransferAccountsRsp.proto
#ifndef PROTOBUF_22002_5fS2CTransferAccountsRsp_2eproto__INCLUDED
#define PROTOBUF_22002_5fS2CTransferAccountsRsp_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBU... | [
"278998871@qq.com"
] | 278998871@qq.com |
209abf8543f3c248ec6ffc3d4eb193b12beb93c1 | 2c5698d1f0ff43b13aa2b3aeb90a03c4bb0119a8 | /ros_basic/src/moving_turtle_c++/position.cpp | ea4d4a75e1b76f7465d5f8b878cd3e5112d1c0bb | [] | no_license | suab321/ROS_Learning | 5867943e7f09762a31d24547de19d82cf055f4d0 | 5f812a82c5d43393dc1232996f3f9ed95bdb191a | refs/heads/master | 2020-04-24T19:44:31.711322 | 2019-03-24T22:08:45 | 2019-03-24T22:08:45 | 172,221,726 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | #include<ros/ros.h>
#include<turtlesim/Pose.h>
void show_pos(const turtlesim::Pose::ConstPtr &coor){
float x=coor->x;
float y=coor->y;
//float z=coor->z;
ROS_INFO("x is %uf; y is %uf",x,y);
}
int main(int argv,char **argc){
ros::init(argv,argc,"position");
ros::NodeHandle n;
ros::Su... | [
"adityasaha890@gmail.com"
] | adityasaha890@gmail.com |
230e7f53f713e099d4940941f7c4dfa9d6d16966 | e11931c9cdab9ce44c48c404f4381e364cc2be62 | /DadosAbertos/Vetor.cpp | 7724a908f813130b3d7d893fb0ed366eecdcc3e4 | [] | no_license | EvaCosta/DadosAbertos | c9442e77266c3fb4745a6e62d1ebb7eabc208794 | 2694e37b6926bfd4d8765768ea7a7fac55047723 | refs/heads/master | 2020-06-06T00:03:44.943603 | 2019-06-18T17:14:43 | 2019-06-18T17:14:43 | 192,581,606 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,357 | cpp | #include <iostream>
#include <stdio.h>
#include <conio.h>
#include "Vetor.h"
//Construtor default.
Vetor::Vetor(){}
//Adiciona o Objeto venda no final do vector.
bool Vetor::adicionarVendaString(string linha) {
venda.push_back(linha);
linhasArquivoVenda++;
return true;
}
//Adiciona o Objeto investi... | [
"evacosta.if@gmail.com"
] | evacosta.if@gmail.com |
a7b08f5ad5192b04a7af71028bfa6b8c593232fa | 844a0f94745998a2b8759299c64b03ef855acb2e | /DDM2DRectangulos/EjemploDeUso/MatrizInt.hpp | cd4fe6716dcd48c88542fabce88ec30f3cdc360f | [] | no_license | antoniocarrillo69/DDM-2D | d2fe0cf196f34044d4f054225d68f660b6d4c14d | e398c18541aef51294c1724dba9f2a077a81b6d8 | refs/heads/master | 2020-12-31T00:01:11.191942 | 2017-03-29T13:16:27 | 2017-03-29T13:16:27 | 86,583,069 | 1 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 6,278 | hpp | //////////////////////////////////////////////////////////////////////////////////////////////
// Clase para el trabajar con matrices con entradas enteras //
// //
// Análisis y Diseño y Programación... | [
"antonio@mmc.geofisica.unam.mx"
] | antonio@mmc.geofisica.unam.mx |
8133dc2e1e62cfe9b37f24834b3439c1a066e195 | 98b6c7cedf3ab2b09f16b854b70741475e07ab64 | /www.cplusplus.com-20180131/reference/istream/basic_istream/peek/peek.cpp | 3d3c6d0ea902396674d1ab8d611006d0c4909d42 | [] | no_license | yull2310/book-code | 71ef42766acb81dde89ce4ae4eb13d1d61b20c65 | 86a3e5bddbc845f33c5f163c44e74966b8bfdde6 | refs/heads/master | 2023-03-17T16:35:40.741611 | 2019-03-05T08:38:51 | 2019-03-05T08:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 715 | cpp | // basic_istream::peek example
#include <iostream> // std::cin, std::cout
#include <string> // std::string
#include <cctype> // std::isdigit
int main () {
std::cout << "Please, enter a number or a word: ";
std::cout.flush(); // ensure output is written
std::cin >> std::ws; // eat up any lea... | [
"zhongtao.chen@yourun.com"
] | zhongtao.chen@yourun.com |
48cdcc6d50359c6255f674a3590d7a203f9226cc | 77f27ab61c51af866cc9165bef6961a1322b7bd2 | /Source/src/GameEngine/CollisionManager.cpp | ccbb11d2872497428b8df910f5b80713670c5fd6 | [] | no_license | gramanicu/egc_tema2 | 911d7118ce334a8de7c8b04fd4cd94d12b4da386 | 1096b2fc6f74e1c783c3467c7fb060aa9927bdac | refs/heads/master | 2023-01-30T06:30:59.554722 | 2020-12-12T11:51:19 | 2020-12-12T11:51:19 | 317,217,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,317 | cpp | #include "CollisionManager.hpp"
std::vector<int> GameEngine::CollisionManager::getCollisions(const Collider& source, std::vector<Collider*> others)
{
std::vector<int> collided;
for (auto& other : others) {
if (isCollision(source, *other)) {
collided.push_back(other->getID());
}
... | [
"gramanicu@gmail.com"
] | gramanicu@gmail.com |
4c9443839c25f42c118b8957680bdb560c10bff4 | 16431718fe6aa13810ad92964d2f324d8200f188 | /gpuann/kernels/straightforward/simple.h | 039da2f1182abd00ee6e339f38af8c1aa5ff65e8 | [] | no_license | verybigbadboy/gpuann | 45dbc0011f1cb435f7b9d24b04c45e94a099aeab | 83203106b3ecd398da05442c76ac85ca52eb5031 | refs/heads/master | 2021-01-01T18:12:11.977284 | 2013-06-02T19:22:28 | 2013-06-02T19:22:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,588 | h | #include <fann.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <common/math.h>
#include <string>
#include <base/gpuannData.h>
#include <configuration.h>
template <unsigned int blockSize, unsigned int layerActivationFunction>
__global__ void gpuann_fann_run_gpu_kernel(const unsigned int neuronInputCoun... | [
"verybigbadboy@gmail.com"
] | verybigbadboy@gmail.com |
708a123a950eba6188debe460025f2f2cc893cdb | a4cafdae890bbbc0b5efb1ffd8a4f1fd4267dcc1 | /Animations/CaptainAmericaAnimations/CaptainAmericaWeakAirPunchAnimation.h | f24d3030592148c0a752f71271b7cb3fc4ee6171 | [] | no_license | tomiir/taller-marvel-capcom | 5aa8047350e67b2702d3d1a5ffa370c99f1ce5d0 | fcfea6e474d50d273bcdf16f6f329992fea7e78a | refs/heads/master | 2020-04-28T19:53:31.238073 | 2019-06-29T20:24:17 | 2019-06-29T20:24:17 | 175,525,464 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | h | //
// Created by arielpm on 12/06/19.
//
#ifndef TALLER_MARVEL_CAPCOM_CAPTAINAMERICAWEAKAIRPUNCHANIMATION_H
#define TALLER_MARVEL_CAPCOM_CAPTAINAMERICAWEAKAIRPUNCHANIMATION_H
#include "../Animation.h"
class CaptainAmericaWeakAirPunchAnimation: public Animation{
public:
CaptainAmericaWeakAirPunchAnimation();
... | [
"ariel.piro@hotmail.com"
] | ariel.piro@hotmail.com |
ec4866e8d15b0ef392af98a9f57bf493a17b95d9 | e550dd154304a163465a67e2de621b17a2327749 | /R732div2/a.cpp | 40e5daa2b4f3e2b5af2e49a096506a2d9418feba | [] | no_license | 1000ms/Codeforces-Solutions | ab7fffba0292994141c5cff0becb851dffc16584 | 615bb09e29dd38386c63dfe7312b16fa04c6a7b5 | refs/heads/master | 2023-06-19T11:35:50.567795 | 2021-07-14T10:33:46 | 2021-07-14T10:33:46 | 341,239,595 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,257 | cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define OJ \
freopen("input.txt", "r", stdin); \
freopen("output.txt", "w", stdout);
ll bp(ll a,ll b,ll mod=LONG_LONG_MAX){
a%=mod;
ll res=1;
while(b>0){
if(b&1) res=res*a%mod;
a=a*a%mod;
b/=2;
}
retur... | [
"utnoob420@gmail.com"
] | utnoob420@gmail.com |
e336eb53dd9d1eaa079b84666391c2fb92e65e31 | 1f2b2037c988af75f0b2735c29e1a8356bb44bfb | /final_task/ConcurrencySimulator/ConcurrencySimulator/Program.cpp | e6451c93af1737849a384727fc0c61d26f53ecac | [] | no_license | Anton7393/final_task | ec2d3e553f1e6603b58f00f300d0c989fb44f79c | 18477b227a945a54653125ebfd85196847ec7da4 | refs/heads/master | 2021-01-20T22:22:38.962527 | 2016-06-27T07:46:47 | 2016-06-27T07:46:47 | 61,700,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,020 | cpp | #include "stdafx.h"
#include "Program.h"
int Program::mNextId = 1;
Program::Program()
: mID(mNextId)
, mStatus(Status::ready)
, mRemainigTime(0)
{
++mNextId;
}
void Program::print(const std::map<char, int> & _variableContainer, char _name)
{
std::cout << mID << " : " << _variableContainer.at(_name) << std::endl... | [
"abaddon7393@gmail.com"
] | abaddon7393@gmail.com |
f51581b5300ea9af11b3fbff93f761dc61101e71 | 50e1f49ef3e6dac9b7bed410aab8de696a9571ad | /difficulty_0900/0337A_puzzles.cpp | 0f3f0bfc450712a43f60a874154260cc8596b762 | [] | no_license | johnescobia/codeforces | 88c155f67df60c2d211dff6965ff039b0d07a4c6 | c981ea33afb2eab06a4dae55b3a748e6e97c48b2 | refs/heads/main | 2023-01-29T14:33:10.918221 | 2020-12-14T13:33:22 | 2020-12-14T13:33:22 | 312,840,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | // https://codeforces.com/problemset/problem/337/A
#include <iostream>
#include <algorithm>
int main()
{
std::ios::sync_with_stdio(false);
std::cin.tie(NULL);
int student, puzzle;
std::cin >> student >> puzzle;
int arr[puzzle];
for(int i=0; i<puzzle; i++)
std::cin >> arr[i];
std::sort(arr, arr + puz... | [
"escobiajohn@gmail.com"
] | escobiajohn@gmail.com |
1f1db1ea60a959b8bd5609d15c1d51f59b3a84ce | dd949f215d968f2ee69bf85571fd63e4f085a869 | /tools/loquendo-ice/trunk/src/audiosource/RAWFileAudioSource.h | aee795ac3b2401130098bb41078e2a007485cafe | [] | no_license | marc-hanheide/cogx | a3fd395805f1b0ad7d713a05b9256312757b37a9 | cb9a9c9cdfeba02afac6a83d03b7c6bb778edb95 | refs/heads/master | 2022-03-16T23:36:21.951317 | 2013-12-10T23:49:07 | 2013-12-10T23:49:07 | 219,460,352 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,719 | h | #ifndef RAWFILEAUDIOSOURCE_H__
#define RAWFILEAUDIOSOURCE_H__ 1
// ----------------------------------------------------------------------------
// Copyright (C) 2010-2011 DFKI GmbH Talking Robots
// Miroslav Janicek (miroslav.janicek@dfki.de)
//
// This library is free software; you can redistribute it and/or
// mo... | [
"marc@hanheide.net"
] | marc@hanheide.net |
4a707eb3fcec958f7352771e1473ab56e29f7024 | 564aa35e8a29935c67d1a9a47545dee976551958 | /C++/Containers/associative Containers/multimap.cpp | 1be15fb694e2fae5411ed068046d3070ea521551 | [
"MIT"
] | permissive | alchemz/interview-algorithm-questions | 76f799f8d0a0da1fed716c2a47bb1330b3fc5994 | 34039fc0db2766cf7531668a9947779a3835ebf5 | refs/heads/master | 2021-05-05T06:58:33.742919 | 2018-03-10T06:58:12 | 2018-03-10T06:58:12 | 118,840,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | #include<iostream>
#include<map>
using namespace std;
int main()
{
multimap<char, int> mymultimap;
mymultimap.insert(pair<char, int>('a',1));
mymultimap.insert(pair<char, int>('b',2));
mymultimap.insert(pair<char,int>('c',20));
mymultimap.insert(pair<char,int>('d',100));
//show content
for(multimap<char,int>::... | [
"alchemxz@gmail.com"
] | alchemxz@gmail.com |
b8bc5d0d664bb14da2c08e66fc857ab4952b91b3 | 152c4845d2cc4d78d2cf6841843094fadf420ac1 | /UsbClient2ClientBridgeArduino/UsbClient2ClientBridgeArduino.ino | 0f9170877e2d56bc745d87d456f4bff18c3e6646 | [] | no_license | pragun/mouse-daw-controller | 7c8fb5d20a40e4109bb473597fbd1b0258626a28 | ddb04b4580d702f680ae962121f129f97813de5f | refs/heads/master | 2020-05-15T15:00:53.024821 | 2019-04-20T04:06:05 | 2019-04-20T04:06:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,610 | ino |
#include "Keyboard.h"
//#include "Mouse.h">
#include <Mouse_Alt.h>
#include "MIDIUSB.h"
#include <NeoHWSerial.h>
#define NEWLINE 10
#define RX_BUF_SIZE 8
const byte RX_Interrupt_Pin = 7;
//This is going to be our poor man's software interrupt pin number
uint8_t rxBuf1[RX_BUF_SIZE] = {};
uint8_t rxBuf2... | [
"pragun.goyal@gmail.com"
] | pragun.goyal@gmail.com |
9d477e5899e336fc8e770fd0664abdbef91c62b1 | 4d49d4d59c9517fe99884cd69ad88644265c6755 | /week6/Group4/boj15815_ei6540.cpp | 791499934a304f1aa79e3c79d63292bd4200a46c | [] | no_license | all1m-algorithm-study/2021-1-Algorithm-Study | 3f34655dc0a3d8765143f4230adaa96055d13626 | 73c7cac1824827cb6ed352d49c0ead7003532a35 | refs/heads/main | 2023-06-03T18:45:28.852381 | 2021-06-11T06:28:44 | 2021-06-11T06:28:44 | 348,433,854 | 8 | 16 | null | 2021-06-11T06:28:45 | 2021-03-16T17:23:37 | Python | UTF-8 | C++ | false | false | 923 | cpp | #include <iostream>
#include <string>
#include <stack>
#include <iomanip>
using namespace std;
void init() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
}
void solve() {
string postfix;
cin >> postfix;
// 후위표기식은 스택을 주로 사용한다.
stack<double> s;
for (char ch : postfix) {
// ch가 문자인 경우, 숫자를 계산해야함에 주의
//... | [
"ei654028@gmail.com"
] | ei654028@gmail.com |
79ea73404cbd1d2aea18af73ea98aa5e05315925 | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/ThirdParty/OpenSubdiv/3.0.2/opensubdiv/vtr/level.h | 2d3169e10f99f318a3af3afef2ca308367227303 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | 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 | 31,134 | h | //
// Copyright 2014 DreamWorks Animation LLC.
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted an... | [
"tungnt.rec@gmail.com"
] | tungnt.rec@gmail.com |
f4d3c80fccad89abdf7d9b3282db307167c33a23 | 5e8d200078e64b97e3bbd1e61f83cb5bae99ab6e | /main/source/src/core/pack/rotamers/StoredRotamerLibraryCreator.cc | 746bff97f5d0aaa09800835da9e09ccfe591de7a | [] | no_license | MedicaicloudLink/Rosetta | 3ee2d79d48b31bd8ca898036ad32fe910c9a7a28 | 01affdf77abb773ed375b83cdbbf58439edd8719 | refs/heads/master | 2020-12-07T17:52:01.350906 | 2020-01-10T08:24:09 | 2020-01-10T08:24:09 | 232,757,729 | 2 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 2,400 | cc | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... | [
"36790013+MedicaicloudLink@users.noreply.github.com"
] | 36790013+MedicaicloudLink@users.noreply.github.com |
0409a773597792e3bbedde1c95c5bdc21945b876 | 2349792cd2e91fc4012250fc060486f991704daf | /vtools/Sample/inc/Application.h | 6f0a7c637087ac65b45e6f04e50569f615097670 | [
"BSL-1.0",
"FTL"
] | permissive | SergeyStrukov/CCore-2-99 | e98d416372797eaee2101375f6adff3de4a55c4e | 1eca5b9b2de067bbab43326718b877465ae664fe | refs/heads/master | 2021-01-18T16:45:40.186844 | 2017-06-08T22:16:32 | 2017-06-08T22:16:32 | 58,191,022 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | h | /* Application.h */
//----------------------------------------------------------------------------------------
//
// Project: Sample 1.00
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// Copyright (c) 2017 Sergey... | [
"sshimnick@hotmail.com"
] | sshimnick@hotmail.com |
7501bee6afd6f144fb56c40c8abea218b0e85557 | cbbde022d9dd74b4577eb91f8947d8d140719cbe | /include/BetaCluster.h | 95ed328cc2fea0f354a97487ee844b334be12bb4 | [
"BSD-2-Clause"
] | permissive | jeremysalwen/HaliteClustering | e4774a9870b6f071bad5ee31290c6ae11d85291a | dc8702870c20486782300d2a00b6e4a2648f8392 | refs/heads/master | 2021-01-17T10:45:53.368354 | 2016-04-04T07:03:09 | 2016-05-10T02:24:49 | 19,996,852 | 1 | 3 | null | 2015-09-30T16:54:30 | 2014-05-20T20:43:12 | C++ | UTF-8 | C++ | false | false | 781 | h | // -*-c++-*-
#ifndef BETA_CLUSTER_H
#define BETA_CLUSTER_H
#include <vector>
#include <cstddef>
#include "Normalization.h"
namespace Halite {
template <typename D>
class BetaCluster {
public:
BetaCluster(int levl, int DIM): level(levl), cost(-1), correlationCluster(-1), relevantDimension(DIM, false), min(D... | [
"jeremysalwen@gmail.com"
] | jeremysalwen@gmail.com |
ba789fa5d982d3e2ff47554d89f8d3d373d8e4d3 | bd1fea86d862456a2ec9f56d57f8948456d55ee6 | /000/232/901/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_ncpy_33.cpp | 06b5d0bb6766287d7925937f3218f34074b5850e | [] | no_license | CU-0xff/juliet-cpp | d62b8485104d8a9160f29213368324c946f38274 | d8586a217bc94cbcfeeec5d39b12d02e9c6045a2 | refs/heads/master | 2021-03-07T15:44:19.446957 | 2020-03-10T12:45:40 | 2020-03-10T12:45:40 | 246,275,244 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,305 | cpp | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_ncpy_33.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.string.label.xml
Template File: sources-sink-33.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate usin... | [
"frank@fischer.com.mt"
] | frank@fischer.com.mt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.